Files
standardnotes-app-web/dist/javascripts/app.js
2020-04-30 11:23:02 -05:00

15 lines
1.9 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=225)}([function(e,t,n){e.exports=n(101)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(module,exports,__webpack_require__){var t;window,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=196)}([function(e,t,n){e.exports=n(82)},function(e,t,n){"use strict";(function(e){n.d(t,"m",(function(){return b})),n.d(t,"i",(function(){return I})),n.d(t,"s",(function(){return w})),n.d(t,"l",(function(){return C})),n.d(t,"C",(function(){return B})),n.d(t,"f",(function(){return E})),n.d(t,"q",(function(){return _})),n.d(t,"o",(function(){return k})),n.d(t,"p",(function(){return Q})),n.d(t,"r",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"I",(function(){return D})),n.d(t,"J",(function(){return P})),n.d(t,"v",(function(){return M})),n.d(t,"j",(function(){return F})),n.d(t,"F",(function(){return O})),n.d(t,"A",(function(){return R})),n.d(t,"b",(function(){return T})),n.d(t,"k",(function(){return H})),n.d(t,"c",(function(){return j})),n.d(t,"e",(function(){return N})),n.d(t,"B",(function(){return U})),n.d(t,"d",(function(){return L})),n.d(t,"w",(function(){return K})),n.d(t,"E",(function(){return G})),n.d(t,"G",(function(){return $})),n.d(t,"u",(function(){return Y})),n.d(t,"y",(function(){return J})),n.d(t,"x",(function(){return V})),n.d(t,"t",(function(){return z})),n.d(t,"a",(function(){return q})),n.d(t,"h",(function(){return W})),n.d(t,"z",(function(){return X})),n.d(t,"g",(function(){return Z})),n.d(t,"H",(function(){return ee})),n.d(t,"D",(function(){return te}));var r=n(0),i=n.n(r),a=n(21),o=n.n(a),s=n(19),c=n.n(s),u=n(16),l=n.n(u),f=n(80),A=n.n(f),h=n(81),p=n.n(h),d=n(24),g=n.n(d);function y(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){y(a,r,i,o,s,"next",e)}function s(e){y(a,r,i,o,s,"throw",e)}o(void 0)}))}}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return"undefined"!=typeof window?window:void 0!==e?e:null}function I(e){return Object.keys(e).map((function(t){return e[t]}))}function w(){return null!==b()}function C(e,t,n){return e.find((function(e){return e[t]===n}))}function B(e,t){return c()(e,t)}function E(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];e=e.concat(o)}return e}function _(e){return null!==e&&("function"==typeof e||"object"===m(e))}function k(e){return null!==e&&"function"==typeof e}function Q(e){return null==e}function S(e){return"string"==typeof e||e instanceof String}function x(e,t){return e>t?e:t}function D(e,t,n){return p()(e.concat(t),(function(e,t){var r=!0,i=!1,a=void 0;try{for(var o,s=n[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;if(e[c]!==t[c])return!1}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return!0}))}function P(e){return g()(e)}function M(e){return e[e.length-1]}function F(e,t){var n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;e.push(s)}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}}function O(e,t){var n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;e.splice(e.indexOf(s),1)}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}}function R(e,t){e.splice(e.indexOf(t),1)}function T(e,t){(function(e,t){return e.indexOf(t)>=0})(e,t)||e.push(t)}function H(e,t){o()(e,t)}function j(e,t){return e.filter((function(e){return!t.includes(e)})).concat(t.filter((function(t){return!e.includes(t)})))}function N(e,t){return!(e&&!t||!e&&t)&&(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e instanceof String&&t instanceof String?e===t:$(e,t))}function U(e,t){e.splice(t,1)}function L(e,t){var n=e.slice();return U(n,t),n}function K(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t.push(e[i])}return t}function G(e){var t=Object.keys(e).sort(),n={},r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;n[c]=e[c]}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return q(n)}function $(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0,a=n;i<a.length;i++){var o=a[i];if(e[o]!==t[o])return!1}return!0}function Y(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],a=void 0;try{a=JSON.parse(e[i])}catch(t){a=e[i]}t[i]=a}return t}function J(e,t){if(e){var n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0)delete e[a.value]}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}}}function V(e,t){var n=Object.assign({},e),r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)delete n[o.value]}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e,t){return 0===t?e.trim().replace(/[\/]*$/g,""):e.trim().replace(/(^[\/]*|[\/]*$)/g,"")})).filter((function(e){return e.length})).join("/")}function q(e){return e instanceof Date?new Date(e):_(e)?JSON.parse(JSON.stringify(e)):e}function W(e,t){if(!e||!t)throw"Attempting to deepMerge with null values";return A()(e,t,(function(e,t){if(l()(e))return t})),e}function X(e,t){var n={},r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;n[c]=e[c]}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return q(n)}function Z(e){var t=Object.getOwnPropertyNames(e),n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value,c=e[s];c&&"object"===m(c)&&!Object.isFrozen(c)?e[s]=Z(c):e[s]=c}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return Object.freeze(e)}function ee(e,t){var n=t/4;return e.substring(0,n)}function te(e){return ne.apply(this,arguments)}function ne(){return(ne=v(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("Sleeping for",t),e.abrupt("return",new Promise((function(e,n){setTimeout((function(){e()}),t)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"e",(function(){return y})),n.d(t,"g",(function(){return v})),n.d(t,"d",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return B}));var r=n(30),i=n(3),a=n(9),o=n(1),s=n(5),c=[s.a.Uuid,s.a.ContentType,s.a.ItemsKeyId,s.a.EncItemKey,s.a.Content,s.a.CreatedAt,s.a.UpdatedAt,s.a.Deleted,s.a.Legacy003AuthHash,s.a.Legacy003AuthParams,s.a.Dirty,s.a.DirtiedDate,s.a.ErrorDecrypting,s.a.ErrorDecryptingChanged,s.a.WaitingForKey,s.a.LastSyncBegan,s.a.LastSyncEnd],u=[s.a.Uuid,s.a.ItemsKeyId,s.a.EncItemKey,s.a.Content,s.a.Legacy003AuthHash,s.a.ErrorDecrypting,s.a.ErrorDecryptingChanged,s.a.WaitingForKey],l=[s.a.Uuid,s.a.ContentType,s.a.ItemsKeyId,s.a.EncItemKey,s.a.Content,s.a.CreatedAt,s.a.UpdatedAt,s.a.Legacy003AuthHash],f=[s.a.Uuid,s.a.ContentType,s.a.ItemsKeyId,s.a.EncItemKey,s.a.Content,s.a.CreatedAt,s.a.UpdatedAt,s.a.Deleted,s.a.Legacy003AuthHash,s.a.Legacy003AuthParams,s.a.Dirty,s.a.DirtiedDate,s.a.ErrorDecrypting,s.a.WaitingForKey],A=[s.a.Uuid,s.a.ContentType,s.a.ItemsKeyId,s.a.EncItemKey,s.a.Content,s.a.CreatedAt,s.a.UpdatedAt,s.a.Deleted,s.a.Legacy003AuthHash],h=[s.a.Uuid,s.a.ContentType,s.a.Content,s.a.UpdatedAt],p=[s.a.Uuid,s.a.Content,s.a.CreatedAt],d=[s.a.Uuid,s.a.Content,s.a.ContentType,s.a.CreatedAt],g=[s.a.Uuid,s.a.ContentType,s.a.UpdatedAt,s.a.Deleted,s.a.Dirty,s.a.LastSyncEnd];function y(e,t){return w(e,c.slice(),void 0,t)}function v(e,t,n,r){var i={},a=n||t.fields,o=!0,s=!1,c=void 0;try{for(var u,l=a[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;i[f]=t[f]}}catch(e){s=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw c}}if(r)for(var A=0,h=Object.keys(r);A<h.length;A++){var p=h[A];i[p]=r[p]}return I(e,i)}function m(e,t,n){return w(e,function(e){if(e===a.a.FileEncrypted||e===a.a.FileDecrypted||e===a.a.FilePreferEncrypted)return l.slice();if(e===a.a.LocalStoragePreferEncrypted||e===a.a.LocalStorageDecrypted||e===a.a.LocalStorageEncrypted)return f.slice();if(e===a.a.Sync||e===a.a.SyncDecrypted)return A.slice();throw"No payload fields found for intent ".concat(e)}(t),i.a.Constructor,n)}function b(e,t,n){return w(e,function(e){if(e===i.a.FileImport)return l.slice();if(e===i.a.SessionHistory)return h.slice();if(e===i.a.ComponentRetrieved)return p.slice();if(e===i.a.ComponentCreated)return d.slice();if(e===i.a.LocalRetrieved||e===i.a.LocalChanged)return f.slice();if(e===i.a.RemoteRetrieved||e===i.a.ConflictData||e===i.a.ConflictUuid)return A.slice();if(e===i.a.LocalSaved||e===i.a.RemoteSaved)return g.slice();throw"No payload fields found for source ".concat(e)}(t),t,n)}function I(e,t){return w(e,e.fields,e.source,t)}function w(e,t,n,a){var s=Object(o.z)(e,t),c=a instanceof r.a?a.fields.slice():Object.keys(a||[]),u=!0,l=!1,f=void 0;try{for(var A,h=c[Symbol.iterator]();!(u=(A=h.next()).done);u=!0){var p=A.value,d=a[p];s[p]=d?Object(o.a)(d):d}}catch(e){l=!0,f=e}finally{try{u||null==h.return||h.return()}finally{if(l)throw f}}var g=Object(o.J)(t.concat(c));return new r.a(s,g,n||i.a.Constructor)}function C(e){return w(e,Object.keys(e))}function B(e,t){return w(e,u.slice(),void 0,t)}},function(e,t,n){"use strict";var r;function i(e){return[r.RemoteRetrieved,r.ComponentRetrieved,r.RemoteActionRetrieved].includes(e)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),function(e){e[e.RemoteRetrieved=1]="RemoteRetrieved",e[e.RemoteSaved=2]="RemoteSaved",e[e.LocalSaved=3]="LocalSaved",e[e.LocalRetrieved=4]="LocalRetrieved",e[e.LocalChanged=5]="LocalChanged",e[e.ComponentRetrieved=6]="ComponentRetrieved",e[e.DesktopInstalled=7]="DesktopInstalled",e[e.RemoteActionRetrieved=8]="RemoteActionRetrieved",e[e.FileImport=9]="FileImport",e[e.RemoteConflict=10]="RemoteConflict",e[e.ImportConflict=11]="ImportConflict",e[e.SavedOrSaving=12]="SavedOrSaving",e[e.DecryptedTransient=13]="DecryptedTransient",e[e.ConflictUuid=14]="ConflictUuid",e[e.ConflictData=15]="ConflictData",e[e.SessionHistory=16]="SessionHistory",e[e.Constructor=17]="Constructor",e[e.ComponentCreated=18]="ComponentCreated",e[e.PreSyncSave=19]="PreSyncSave"}(r||(r={}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}));var i,a="org.standardnotes.sn";function o(e){var t;return(r(t={},i.Note,"note"),r(t,i.Tag,"tag"),r(t,i.SmartTag,"smart tag"),r(t,i.ActionsExtension,"action-based extension"),r(t,i.Component,"component"),r(t,i.Editor,"editor"),r(t,i.Theme,"theme"),r(t,i.ServerExtension,"server extension"),r(t,i.Mfa,"two-factor authentication setting"),r(t,i.FilesafeCredentials,"FileSafe credential"),r(t,i.FilesafeFileMetadata,"FileSafe file"),r(t,i.FilesafeIntegration,"FileSafe integration"),t)[e]}!function(e){e.Any="*",e.Item="SF|Item",e.RootKey="SN|RootKey|NoSync",e.ItemsKey="SN|ItemsKey",e.EncryptedStorage="SN|EncryptedStorage",e.Note="Note",e.Tag="Tag",e.SmartTag="SN|SmartTag",e.Component="SN|Component",e.Editor="SN|Editor",e.ActionsExtension="Extension",e.UserPrefs="SN|UserPreferences",e.Privileges="SN|Privileges",e.HistorySession="SN|HistorySession",e.Theme="SN|Theme",e.Mfa="SF|MFA",e.ServerExtension="SF|Extension",e.FilesafeCredentials="SN|FileSafe|Credentials",e.FilesafeFileMetadata="SN|FileSafe|FileMetadata",e.FilesafeIntegration="SN|FileSafe|Integration",e.ExtensionRepo="SN|ExtensionRepo"}(i||(i={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Uuid="uuid",e.ContentType="content_type",e.ItemsKeyId="items_key_id",e.EncItemKey="enc_item_key",e.Content="content",e.CreatedAt="created_at",e.UpdatedAt="updated_at",e.Deleted="deleted",e.Legacy003AuthHash="auth_hash",e.Legacy003AuthParams="auth_params",e.Dirty="dirty",e.DirtiedDate="dirtiedDate",e.WaitingForKey="waitingForKey",e.ErrorDecrypting="errorDecrypting",e.ErrorDecryptingChanged="errorDecryptingValueChanged",e.LastSyncBegan="lastSyncBegan",e.LastSyncEnd="lastSyncEnd"}(r||(r={}))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return g})),n.d(t,"b",(function(){return y}));var r,i,a,o=n(10),s=n(14),c=n(2),u=n(1),l=n(15),f=n(4);function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.UserInteraction=1]="UserInteraction",e[e.Internal=2]="Internal",e[e.NonDirtying=3]="NonDirtying"}(r||(r={})),function(e){e.Pinned="pinned",e.Archived="archived",e.Locked="locked",e.UserModifiedDate="client_updated_at",e.DefaultEditor="defaultEditor",e.MobileRules="mobileRules",e.NotAvailableOnMobile="notAvailableOnMobile",e.MobileActive="mobileActive",e.LastSize="lastSize",e.PrefersPlainEditor="prefersPlainEditor",e.ComponentInstallError="installError"}(i||(i={})),function(e){e[e.KeepEarliest=1]="KeepEarliest"}(a||(a={}));var g=function(){function t(n){var r=this;if(A(this,t),d(this,"payload",void 0),d(this,"conflictOf",void 0),d(this,"createdAtString",void 0),d(this,"updatedAtString",void 0),d(this,"protected",!1),d(this,"trashed",!1),d(this,"pinned",!1),d(this,"archived",!1),d(this,"locked",!1),!n.uuid||!n.content_type)throw Error("Cannot create item without both uuid and content_type");if(n.format===o.a.DecryptedBareObject&&(n.enc_item_key||n.items_key_id||n.auth_hash))throw Error("Creating an item from a decrypted payload should not contain enc params");this.payload=n,this.conflictOf=n.safeContent.conflict_of,this.createdAtString=this.created_at&&this.dateToLocalizedString(this.created_at),n.format===o.a.DecryptedBareObject&&(this.updatedAtString=this.dateToLocalizedString(this.userModifiedDate),this.protected=this.payload.safeContent.protected,this.trashed=this.payload.safeContent.trashed,this.pinned=this.getAppDomainValue(i.Pinned),this.archived=this.getAppDomainValue(i.Archived),this.locked=this.getAppDomainValue(i.Locked)),e((function(){Object(u.g)(r)}))}return p(t,[{key:"payloadRepresentation",value:function(e){return Object(c.b)(this.payload,e)}},{key:"hasRelationshipWithItem",value:function(e){var t;return!!(null===(t=this.payload.safeContent.references)||void 0===t?void 0:t.find((function(t){return t.uuid===e.uuid})))}},{key:"getDomainData",value:function(e){var t=this.payload.safeContent.appData;if(t)return t[e]}},{key:"getAppDomainValue",value:function(e){return this.getDomainData(t.DefaultAppDomain())[e]}},{key:"contentKeysToIgnoreWhenCheckingEquality",value:function(){return["conflict_of"]}},{key:"appDataContentKeysToIgnoreWhenCheckingEquality",value:function(){return[i.UserModifiedDate]}},{key:"getContentCopy",value:function(){return JSON.parse(JSON.stringify(this.content))}},{key:"strategyWhenConflictingWithItem",value:function(e){return this.errorDecrypting?s.a.KeepLeftDuplicateRight:this.isSingleton?s.a.KeepLeft:this.deleted||e.deleted?s.a.KeepRight:v(this,e)?v(this,e,["references"])?s.a.KeepLeftDuplicateRight:s.a.KeepLeftMergeRefs:s.a.KeepRight}},{key:"isItemContentEqualWith",value:function(e){return m(this.payload.contentObject,e.payload.contentObject,this.contentKeysToIgnoreWhenCheckingEquality(),this.appDataContentKeysToIgnoreWhenCheckingEquality())}},{key:"satisfiesPredicate",value:function(e){return l.a.ItemSatisfiesPredicate(this,e)}},{key:"updatedAtTimestamp",value:function(){var e;return null===(e=this.updated_at)||void 0===e?void 0:e.getTime()}},{key:"dateToLocalizedString",value:function(e){if("undefined"!=typeof Intl&&Intl.DateTimeFormat){if(!t.sharedDateFormatter){var n=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language;t.sharedDateFormatter=new Intl.DateTimeFormat(n,{year:"numeric",month:"short",day:"2-digit",weekday:"long",hour:"2-digit",minute:"2-digit"})}return t.sharedDateFormatter.format(e)}return e.toDateString()+" "+e.toLocaleTimeString()}},{key:"uuid",get:function(){return this.payload.uuid}},{key:"content",get:function(){return this.payload.content}},{key:"safeContent",get:function(){return this.payload.safeContent}},{key:"references",get:function(){return this.payload.safeContent.references||[]}},{key:"deleted",get:function(){return this.payload.deleted}},{key:"content_type",get:function(){return this.payload.content_type}},{key:"created_at",get:function(){return this.payload.created_at}},{key:"updated_at",get:function(){return this.payload.updated_at}},{key:"userModifiedDate",get:function(){var e=this.getAppDomainValue(i.UserModifiedDate);return new Date(e||this.updated_at)}},{key:"dirtiedDate",get:function(){return this.payload.dirtiedDate}},{key:"dirty",get:function(){return this.payload.dirty}},{key:"errorDecrypting",get:function(){return this.payload.errorDecrypting}},{key:"waitingForKey",get:function(){return this.payload.waitingForKey}},{key:"errorDecryptingValueChanged",get:function(){return this.payload.errorDecryptingValueChanged}},{key:"lastSyncBegan",get:function(){return this.payload.lastSyncBegan}},{key:"lastSyncEnd",get:function(){return this.payload.lastSyncEnd}},{key:"auth_hash",get:function(){return this.payload.auth_hash}},{key:"auth_params",get:function(){return this.payload.auth_params}},{key:"neverSynced",get:function(){return!this.updated_at||0===this.updated_at.getTime()}},{key:"isSingleton",get:function(){return!1}},{key:"singletonPredicate",get:function(){throw"Must override SNItem.singletonPredicate"}},{key:"singletonStrategy",get:function(){return a.KeepEarliest}}],[{key:"DefaultAppDomain",value:function(){return f.b}}]),t}();d(g,"sharedDateFormatter",void 0);var y=function(){function e(t,n){A(this,e),d(this,"item",void 0),d(this,"type",void 0),d(this,"payload",void 0),d(this,"content",void 0),this.item=t,this.type=n,this.payload=t.payload,this.payload.content&&(this.content=Object(u.a)(this.payload.content))}return p(e,[{key:"getUuid",value:function(){return this.payload.uuid}},{key:"getItem",value:function(){return this.item}},{key:"getResult",value:function(){return this.type===r.NonDirtying?Object(c.b)(this.payload,{content:this.content}):(this.payload.deleted||(this.type===r.UserInteraction?this.userModifiedDate=new Date:this.item.userModifiedDate||(this.userModifiedDate=new Date(this.item.updated_at))),Object(c.b)(this.payload,{content:this.content,dirty:!0,dirtiedDate:new Date}))}},{key:"mergePayload",value:function(e){this.payload=Object(c.g)(this.payload,e),this.payload.content?this.content=Object(u.a)(this.payload.safeContent):this.content=void 0}},{key:"setContent",value:function(e){this.content=Object(u.a)(e)}},{key:"setDeleted",value:function(){this.content=void 0,this.payload=Object(c.b)(this.payload,{content:this.content,deleted:!0})}},{key:"setDomainData",value:function(e,t){this.payload.errorDecrypting||(this.content.appData||(this.content.appData={}),this.content.appData[t]=e)}},{key:"setDomainDataKey",value:function(e,t,n){if(!this.payload.errorDecrypting){this.content.appData||(this.content.appData={});var r=this.content.appData;r[n]||(r[n]={}),r[n][e]=t}}},{key:"setAppDataItem",value:function(e,t){this.setDomainDataKey(e,t,g.DefaultAppDomain())}},{key:"addItemAsRelationship",value:function(e){var t=this.content.references||[];t.find((function(t){return t.uuid===e.uuid}))||t.push({uuid:e.uuid,content_type:e.content_type}),this.content.references=t}},{key:"removeItemAsRelationship",value:function(e){var t=this.content.references||[];t=t.filter((function(t){return t.uuid!==e.uuid})),this.content.references=t}},{key:"lastSyncBegan",set:function(e){this.payload=Object(c.b)(this.payload,{content:this.content,lastSyncBegan:e})}},{key:"errorDecrypting",set:function(e){this.payload=Object(c.b)(this.payload,{content:this.content,errorDecrypting:e})}},{key:"updated_at",set:function(e){this.payload=Object(c.b)(this.payload,{updated_at:e})}},{key:"userModifiedDate",set:function(e){this.setAppDataItem(i.UserModifiedDate,e)}},{key:"conflictOf",set:function(e){this.content.conflict_of=e}},{key:"protected",set:function(e){this.content.protected=e}},{key:"trashed",set:function(e){this.content.trashed=e}},{key:"pinned",set:function(e){this.setAppDataItem(i.Pinned,e)}},{key:"archived",set:function(e){this.setAppDataItem(i.Archived,e)}},{key:"locked",set:function(e){this.setAppDataItem(i.Locked,e)}}]),e}();function v(e,t,n){return n||(n=[]),!m(e.content,t.content,e.contentKeysToIgnoreWhenCheckingEquality().concat(n),e.appDataContentKeysToIgnoreWhenCheckingEquality())}function m(e,t,n,r){if((e=Object(u.E)(e)).appData){var i=e.appData[f.b];Object(u.y)(i,r),i?0===Object.keys(i).length&&delete e.appData:delete e.appData}if(Object(u.y)(e,n),(t=Object(u.E)(t)).appData){var a=t.appData[f.b];Object(u.y)(a,r),a?0===Object.keys(a).length&&delete t.appData:delete t.appData}return Object(u.y)(t,n),JSON.stringify(e)===JSON.stringify(t)}}).call(this,n(78).setImmediate)},function(e,t,n){"use strict";var r;function i(e,t){return Number(e)-Number(t)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),function(e){e.V000Base64Decrypted="000",e.V001="001",e.V002="002",e.V003="003",e.V004="004",e[e.VersionLength=3]="VersionLength"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.FullSyncCompleted="sync =full-completed",e.SingleSyncCompleted="sync =single-completed",e.SyncWillBegin="sync =will-begin",e.DownloadFirstSyncCompleted="sync =download-first-completed",e.SyncTakingTooLong="sync =taking-too-long",e.SyncError="sync =error",e.InvalidSession="sync =invalid-session",e.MajorDataChange="major-data-change",e.LocalDataIncrementalLoad="local-data-incremental-load",e.LocalDataLoaded="local-data-loaded",e.EnterOutOfSync="enter-out-of-sync",e.ExitOutOfSync="exit-out-of-sync",e.StatusChanged="status-changed",e.DatabaseWriteError="database-write-error",e.DatabaseReadError="database-read-error"}(r||(r={}))},function(e,t,n){"use strict";var r;function i(e){return e===r.LocalStorageEncrypted||e===r.LocalStorageDecrypted||e===r.LocalStoragePreferEncrypted}function a(e){return e===r.FileEncrypted||e===r.FileDecrypted||e===r.FilePreferEncrypted}function o(e){return e===r.SyncDecrypted||e===r.LocalStorageDecrypted||e===r.FileDecrypted}function s(e){return e===r.Sync||e===r.LocalStorageEncrypted||e===r.FileEncrypted}n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),function(e){e[e.Sync=0]="Sync",e[e.SyncDecrypted=1]="SyncDecrypted",e[e.LocalStorageEncrypted=2]="LocalStorageEncrypted",e[e.LocalStorageDecrypted=3]="LocalStorageDecrypted",e[e.LocalStoragePreferEncrypted=4]="LocalStoragePreferEncrypted",e[e.FileEncrypted=5]="FileEncrypted",e[e.FileDecrypted=6]="FileDecrypted",e[e.FilePreferEncrypted=7]="FilePreferEncrypted"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.EncryptedString=0]="EncryptedString",e[e.DecryptedBareObject=1]="DecryptedBareObject",e[e.DecryptedBase64String=2]="DecryptedBase64String",e[e.Deleted=3]="Deleted"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(4);function i(e){return e.map((function(e){return e.uuid}))}function a(e){return e.references||(e.references=[]),e.appData||(e.appData={}),e.appData[r.b]||(e.appData[r.b]={}),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(0),i=n.n(r),a=n(1);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,c,"next",e)}function c(e){s(a,r,i,o,c,"throw",e)}o(void 0)}))}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"eventObservers",[]),l(this,"loggingEnabled",!1),l(this,"deviceInterface",void 0),l(this,"criticalPromises",[])}var t,n,r,s,f,A;return t=e,(n=[{key:"addEventObserver",value:function(e){var t=this;return this.eventObservers.push(e),function(){Object(a.A)(t.eventObservers,e)}}},{key:"notifyEvent",value:(A=c(i.a.mark((function e(t,n){var r,a,o,s,c,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!0,a=!1,o=void 0,e.prev=3,s=this.eventObservers[Symbol.iterator]();case 5:if(r=(c=s.next()).done){e.next=12;break}return u=c.value,e.next=9,u(t,n||{});case 9:r=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),a=!0,o=e.t0;case 18:e.prev=18,e.prev=19,r||null==s.return||s.return();case 21:if(e.prev=21,!a){e.next=24;break}throw o;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}}),e,this,[[3,14,18,26],[19,,21,25]])}))),function(e,t){return A.apply(this,arguments)})},{key:"blockDeinit",value:(f=c(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.criticalPromises);case 2:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"deinit",value:function(){this.eventObservers.length=0,this.deviceInterface=void 0}},{key:"executeCriticalFunction",value:(s=c(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t(),this.criticalPromises.push(n),e.abrupt("return",n);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"handleApplicationStage",value:(r=c(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"log",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.loggingEnabled){var i,a=new Date,s=a.toLocaleTimeString().replace(" PM","").replace(" AM",""),c="".concat(s,".").concat(a.getMilliseconds());n?(n=n.map((function(e){return Array.isArray(e)?e.slice():e})),(i=console).log.apply(i,[c,e].concat(o(n)))):console.log(c,e)}}}])&&u(t.prototype,n),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o}));var r,i=n(8);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t;return(t={},a(t,i.a.FullSyncCompleted,r.CompletedFullSync),a(t,i.a.SingleSyncCompleted,r.CompletedIncrementalSync),a(t,i.a.SyncError,r.FailedSync),a(t,i.a.SyncTakingTooLong,r.HighLatencySync),a(t,i.a.EnterOutOfSync,r.EnteredOutOfSync),a(t,i.a.ExitOutOfSync,r.ExitedOutOfSync),a(t,i.a.LocalDataLoaded,r.LocalDataLoaded),a(t,i.a.MajorDataChange,r.MajorDataChange),a(t,i.a.LocalDataIncrementalLoad,r.LocalDataIncrementalLoad),a(t,i.a.StatusChanged,r.SyncStatusChanged),a(t,i.a.SyncWillBegin,r.WillSync),a(t,i.a.InvalidSession,r.InvalidSyncSession),a(t,i.a.DatabaseReadError,r.LocalDatabaseReadError),a(t,i.a.DatabaseWriteError,r.LocalDatabaseWriteError),t)[e]}n.d(t,"b",(function(){return i.a})),function(e){e[e.SignedIn=2]="SignedIn",e[e.SignedOut=3]="SignedOut",e[e.CompletedFullSync=5]="CompletedFullSync",e[e.FailedSync=6]="FailedSync",e[e.HighLatencySync=7]="HighLatencySync",e[e.EnteredOutOfSync=8]="EnteredOutOfSync",e[e.ExitedOutOfSync=9]="ExitedOutOfSync",e[e.Started=10]="Started",e[e.Launched=11]="Launched",e[e.LocalDataLoaded=12]="LocalDataLoaded",e[e.KeyStatusChanged=13]="KeyStatusChanged",e[e.MajorDataChange=14]="MajorDataChange",e[e.CompletedRestart=15]="CompletedRestart",e[e.LocalDataIncrementalLoad=16]="LocalDataIncrementalLoad",e[e.SyncStatusChanged=17]="SyncStatusChanged",e[e.WillSync=18]="WillSync",e[e.InvalidSyncSession=19]="InvalidSyncSession",e[e.LocalDatabaseReadError=20]="LocalDatabaseReadError",e[e.LocalDatabaseWriteError=21]="LocalDatabaseWriteError",e[e.CompletedIncrementalSync=22]="CompletedIncrementalSync"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.KeepLeft=1]="KeepLeft",e[e.KeepRight=2]="KeepRight",e[e.KeepLeftDuplicateRight=3]="KeepLeftDuplicateRight",e[e.DuplicateLeftKeepRight=4]="DuplicateLeftKeepRight",e[e.KeepLeftMergeRefs=5]="KeepLeftMergeRefs"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"keypath",void 0),a(this,"operator",void 0),a(this,"value",void 0),this.keypath=t,this.operator=n,this.value=r,this.isRecursive()){var i=this.value;this.value=i.map((function(t){return Array.isArray(t)?e.FromArray(t):t}))}else"true"!==this.value&&"false"!==this.value||(this.value=JSON.parse(this.value))}var t,n,o;return t=e,o=[{key:"FromJson",value:function(t){return new e(t.keypath,t.operator,t.value)}},{key:"FromArray",value:function(t){return new e(t[0],t[1],t[2])}},{key:"CompoundPredicate",value:function(t){return new e("ignored","and",t)}},{key:"ObjectSatisfiesPredicate",value:function(e,t){if(Array.isArray(t)&&(t=this.FromArray(t)),t.isRecursive()){if("and"===t.operator){var n=!0,r=!1,i=void 0;try{for(var a,o=t.valueAsArray()[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(!this.ObjectSatisfiesPredicate(e,s))return!1}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return!0}if("or"===t.operator){var c=!0,u=!1,l=void 0;try{for(var f,A=t.valueAsArray()[Symbol.iterator]();!(c=(f=A.next()).done);c=!0){var h=f.value;if(this.ObjectSatisfiesPredicate(e,h))return!0}}catch(e){u=!0,l=e}finally{try{c||null==A.return||A.return()}finally{if(u)throw l}}return!1}}var p=t.value;"string"==typeof p&&p.includes(".ago")&&(p=this.DateFromString(p));var d=t.keypath.split(".").reduce((function(e,t){return e&&e[t]}),e),g=[!1,"",null,void 0,NaN];return void 0===d?"!="===t.operator?!g.includes(t.value):g.includes(t.value):"="===t.operator?Array.isArray(d)?JSON.stringify(d)===JSON.stringify(p):d===p:"!="===t.operator?Array.isArray(d)?JSON.stringify(d)!==JSON.stringify(p):d!==p:"<"===t.operator?d<p:">"===t.operator?d>p:"<="===t.operator?d<=p:">="===t.operator?d>=p:"startsWith"===t.operator?d.startsWith(p):"in"===t.operator?-1!==p.indexOf(d):"includes"===t.operator?this.resolveIncludesPredicate(d,p):"matches"===t.operator&&new RegExp(p).test(d)}},{key:"resolveIncludesPredicate",value:function(t,n){if(Object(r.r)(n))return t.includes(n);var i;i=Array.isArray(n)?e.FromArray(n):n;var a=!0,o=!1,s=void 0;try{for(var c,u=t[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var l=c.value;if(this.ObjectSatisfiesPredicate(l,i))return!0}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}return!1}},{key:"ItemSatisfiesPredicate",value:function(t,n){return Array.isArray(n)&&(n=e.FromArray(n)),this.ObjectSatisfiesPredicate(t,n)}},{key:"ItemSatisfiesPredicates",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(!this.ItemSatisfiesPredicate(e,s))return!1}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return!0}},{key:"DateFromString",value:function(e){var t=e.split("."),n=t[1],r=new Date,i=parseInt(t[0]);return"days"===n?r.setDate(r.getDate()-i):"hours"===n&&r.setHours(r.getHours()-i),r}}],(n=[{key:"isRecursive",value:function(){return["and","or"].includes(this.operator)}},{key:"arrayRepresentation",value:function(){return[this.keypath,this.operator,this.value]}},{key:"valueAsArray",value:function(){return this.value}}])&&i(t.prototype,n),o&&i(t,o),e}()},function(e,t){var n=Array.isArray;e.exports=n},function(module,exports,__webpack_require__){(function(module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,e;function _typeof2(e){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}window,e=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==_typeof2(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=166)}([function(e,t,n){e.exports=n(84)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(3),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n(86),i=n(87),a=n(43);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=A(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):A(e,t);if("Buffer"===t.type&&a(t.data))return A(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function A(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return N(e).length;t=(""+t).toLowerCase(),r=!0}}function d(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return Q(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var f=!0,A=0;A<c;A++)if(u(e,a+A)!==u(t,A)){f=!1;break}if(f)return a}return-1}function m(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function b(e,t,n,r){return L(N(t,e.length-n),e,n,r)}function I(e,t,n,r){return L(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return I(e,t,n,r)}function C(e,t,n,r){return L(U(t),e,n,r)}function B(e,t,n,r){return L(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function Q(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function S(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=j(e[a]);return i}function x(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function O(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,a){return a||O(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function T(e,t,n,r,a){return a||O(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):d.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return m(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return I(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return T(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return T(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:N(new c(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function N(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(8))},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}!function(e,r){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var s;"object"===t(e)?e.exports=o:r.BN=o,o.BN=o,o.wordSize=26;try{s=n(122).Buffer}catch(e){}function c(e,t,n){for(var r=0,i=Math.min(e.length,n),a=t;a<i;a++){var o=e.charCodeAt(a)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function u(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===t(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,n,r){if("number"==typeof e)return this._initNumber(e,n,r);if("object"===t(e))return this._initArray(e,n,r);"hex"===n&&(n=16),i(n===(0|n)&&n>=2&&n<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&a++,16===n?this._parseHex(e,a):this._parseBase(e,n,a),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),n,r)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,a=0;for(n=e.length-6,r=0;n>=t;n-=6)i=c(e,n,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=c(e,t,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,l=n;l<s;l+=r)c=u(e,l,l+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=u(e,l,e.length,t),l=0;l<o;l++)f*=t;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)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 l=["","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"],f=[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],A=[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 h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var l=c>>>26,f=67108863&c,A=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=A;h++){var p=u-h|0;l+=(o=(i=0|e.words[p])*(a=0|t.words[h])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<r|a)).toString(16);n=0!=(a=s>>>24-r&16777215)||o!==this.length-1?l[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],h=A[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var d=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?d+n:l[u-d.length]+d+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(a),l=this.clone();if(c){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[s]=o;for(;s<a;s++)u[s]=0}else{for(s=0;s<a-r;s++)u[s]=0;for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[a-s-1]=o}return u},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return i(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return i(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return i(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,u=0,l=0|o[0],f=8191&l,A=l>>>13,h=0|o[1],p=8191&h,d=h>>>13,g=0|o[2],y=8191&g,v=g>>>13,m=0|o[3],b=8191&m,I=m>>>13,w=0|o[4],C=8191&w,B=w>>>13,E=0|o[5],_=8191&E,k=E>>>13,Q=0|o[6],S=8191&Q,x=Q>>>13,D=0|o[7],P=8191&D,M=D>>>13,F=0|o[8],O=8191&F,R=F>>>13,T=0|o[9],H=8191&T,j=T>>>13,N=0|s[0],U=8191&N,L=N>>>13,K=0|s[1],G=8191&K,$=K>>>13,Y=0|s[2],J=8191&Y,V=Y>>>13,z=0|s[3],q=8191&z,W=z>>>13,X=0|s[4],Z=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,Ae=le>>>13,he=0|s[9],pe=8191&he,de=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,L))+Math.imul(A,U)|0))<<13)|0;u=((a=Math.imul(A,L))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,L))+Math.imul(d,U)|0,a=Math.imul(d,L);var ye=(u+(r=r+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(A,G)|0))<<13)|0;u=((a=a+Math.imul(A,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,U),i=(i=Math.imul(y,L))+Math.imul(v,U)|0,a=Math.imul(v,L),r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(d,G)|0,a=a+Math.imul(d,$)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(A,J)|0))<<13)|0;u=((a=a+Math.imul(A,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(b,U),i=(i=Math.imul(b,L))+Math.imul(I,U)|0,a=Math.imul(I,L),r=r+Math.imul(y,G)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(v,G)|0,a=a+Math.imul(v,$)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(d,J)|0,a=a+Math.imul(d,V)|0;var me=(u+(r=r+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(A,q)|0))<<13)|0;u=((a=a+Math.imul(A,W)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(C,U),i=(i=Math.imul(C,L))+Math.imul(B,U)|0,a=Math.imul(B,L),r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,$)|0,r=r+Math.imul(y,J)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,V)|0,r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(d,q)|0,a=a+Math.imul(d,W)|0;var be=(u+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(A,Z)|0))<<13)|0;u=((a=a+Math.imul(A,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,U),i=(i=Math.imul(_,L))+Math.imul(k,U)|0,a=Math.imul(k,L),r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,$)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,V)|0,r=r+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,q)|0,a=a+Math.imul(v,W)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(d,Z)|0,a=a+Math.imul(d,ee)|0;var Ie=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(A,ne)|0))<<13)|0;u=((a=a+Math.imul(A,re)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(S,U),i=(i=Math.imul(S,L))+Math.imul(x,U)|0,a=Math.imul(x,L),r=r+Math.imul(_,G)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(k,G)|0,a=a+Math.imul(k,$)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(B,J)|0,a=a+Math.imul(B,V)|0,r=r+Math.imul(b,q)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(I,q)|0,a=a+Math.imul(I,W)|0,r=r+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(v,Z)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(d,ne)|0,a=a+Math.imul(d,re)|0;var we=(u+(r=r+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(A,ae)|0))<<13)|0;u=((a=a+Math.imul(A,oe)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,L))+Math.imul(M,U)|0,a=Math.imul(M,L),r=r+Math.imul(S,G)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(x,G)|0,a=a+Math.imul(x,$)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,V)|0,r=r+Math.imul(C,q)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(B,q)|0,a=a+Math.imul(B,W)|0,r=r+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(I,Z)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(d,ae)|0,a=a+Math.imul(d,oe)|0;var Ce=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(A,ce)|0))<<13)|0;u=((a=a+Math.imul(A,ue)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(O,U),i=(i=Math.imul(O,L))+Math.imul(R,U)|0,a=Math.imul(R,L),r=r+Math.imul(P,G)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,$)|0,r=r+Math.imul(S,J)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,V)|0,r=r+Math.imul(_,q)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,W)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(B,Z)|0,a=a+Math.imul(B,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(I,ne)|0,a=a+Math.imul(I,re)|0,r=r+Math.imul(y,ae)|0,i=(i=i+Math.imul(y,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(d,ce)|0,a=a+Math.imul(d,ue)|0;var Be=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,Ae)|0)+Math.imul(A,fe)|0))<<13)|0;u=((a=a+Math.imul(A,Ae)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(H,U),i=(i=Math.imul(H,L))+Math.imul(j,U)|0,a=Math.imul(j,L),r=r+Math.imul(O,G)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(R,G)|0,a=a+Math.imul(R,$)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(M,J)|0,a=a+Math.imul(M,V)|0,r=r+Math.imul(S,q)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(x,q)|0,a=a+Math.imul(x,W)|0,r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(k,Z)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(B,ne)|0,a=a+Math.imul(B,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,ue)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,Ae)|0)+Math.imul(d,fe)|0,a=a+Math.imul(d,Ae)|0;var Ee=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(A,pe)|0))<<13)|0;u=((a=a+Math.imul(A,de)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(H,G),i=(i=Math.imul(H,$))+Math.imul(j,G)|0,a=Math.imul(j,$),r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,V)|0,r=r+Math.imul(P,q)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,W)|0,r=r+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(x,Z)|0,a=a+Math.imul(x,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(B,ae)|0,a=a+Math.imul(B,oe)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(I,ce)|0,a=a+Math.imul(I,ue)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,Ae)|0)+Math.imul(v,fe)|0,a=a+Math.imul(v,Ae)|0;var _e=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,de)|0)+Math.imul(d,pe)|0))<<13)|0;u=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(H,J),i=(i=Math.imul(H,V))+Math.imul(j,J)|0,a=Math.imul(j,V),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(R,q)|0,a=a+Math.imul(R,W)|0,r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(M,Z)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(x,ne)|0,a=a+Math.imul(x,re)|0,r=r+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,ue)|0)+Math.imul(B,ce)|0,a=a+Math.imul(B,ue)|0,r=r+Math.imul(b,fe)|0,i=(i=i+Math.imul(b,Ae)|0)+Math.imul(I,fe)|0,a=a+Math.imul(I,Ae)|0;var ke=(u+(r=r+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,de)|0)+Math.imul(v,pe)|0))<<13)|0;u=((a=a+Math.imul(v,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(H,q),i=(i=Math.imul(H,W))+Math.imul(j,q)|0,a=Math.imul(j,W),r=r+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,Z)|0,a=a+Math.imul(R,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(S,ae)|0,i=(i=i+Math.imul(S,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,r=r+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,ue)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,Ae)|0)+Math.imul(B,fe)|0,a=a+Math.imul(B,Ae)|0;var Qe=(u+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,de)|0)+Math.imul(I,pe)|0))<<13)|0;u=((a=a+Math.imul(I,de)|0)+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,r=Math.imul(H,Z),i=(i=Math.imul(H,ee))+Math.imul(j,Z)|0,a=Math.imul(j,ee),r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(R,ne)|0,a=a+Math.imul(R,re)|0,r=r+Math.imul(P,ae)|0,i=(i=i+Math.imul(P,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,ue)|0)+Math.imul(x,ce)|0,a=a+Math.imul(x,ue)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,Ae)|0)+Math.imul(k,fe)|0,a=a+Math.imul(k,Ae)|0;var Se=(u+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,de)|0)+Math.imul(B,pe)|0))<<13)|0;u=((a=a+Math.imul(B,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(H,ne),i=(i=Math.imul(H,re))+Math.imul(j,ne)|0,a=Math.imul(j,re),r=r+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,r=r+Math.imul(P,ce)|0,i=(i=i+Math.imul(P,ue)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,ue)|0,r=r+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,Ae)|0)+Math.imul(x,fe)|0,a=a+Math.imul(x,Ae)|0;var xe=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,de)|0)+Math.imul(k,pe)|0))<<13)|0;u=((a=a+Math.imul(k,de)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(H,ae),i=(i=Math.imul(H,oe))+Math.imul(j,ae)|0,a=Math.imul(j,oe),r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,ue)|0)+Math.imul(R,ce)|0,a=a+Math.imul(R,ue)|0,r=r+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,Ae)|0)+Math.imul(M,fe)|0,a=a+Math.imul(M,Ae)|0;var De=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,de)|0)+Math.imul(x,pe)|0))<<13)|0;u=((a=a+Math.imul(x,de)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(H,ce),i=(i=Math.imul(H,ue))+Math.imul(j,ce)|0,a=Math.imul(j,ue),r=r+Math.imul(O,fe)|0,i=(i=i+Math.imul(O,Ae)|0)+Math.imul(R,fe)|0,a=a+Math.imul(R,Ae)|0;var Pe=(u+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,de)|0)+Math.imul(M,pe)|0))<<13)|0;u=((a=a+Math.imul(M,de)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(H,fe),i=(i=Math.imul(H,Ae))+Math.imul(j,fe)|0,a=Math.imul(j,Ae);var Me=(u+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,de)|0)+Math.imul(R,pe)|0))<<13)|0;u=((a=a+Math.imul(R,de)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Fe=(u+(r=Math.imul(H,pe))|0)+((8191&(i=(i=Math.imul(H,de))+Math.imul(j,pe)|0))<<13)|0;return u=((a=Math.imul(j,de))+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,c[0]=ge,c[1]=ye,c[2]=ve,c[3]=me,c[4]=be,c[5]=Ie,c[6]=we,c[7]=Ce,c[8]=Be,c[9]=Ee,c[10]=_e,c[11]=ke,c[12]=Qe,c[13]=Se,c[14]=xe,c[15]=De,c[16]=Pe,c[17]=Me,c[18]=Fe,0!==u&&(c[19]=u,n.length++),n};function d(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),u=Math.max(0,a-e.length+1);u<=c;u++){var l=a-u,f=(0|e.words[l])*(0|t.words[u]),A=67108863&f;s=67108863&(A=A+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(A>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):d(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},g.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=c,A=u,h=0;h<o;h++){var p=n[l+h],d=r[l+h],g=n[l+h+o],y=r[l+h+o],v=f*g-A*y;y=f*y+A*g,g=v,n[l+h]=p+g,r[l+h]=d+y,n[l+h+o]=p-g,r[l+h+o]=d-y,h!==s&&(v=c*f-u*A,A=c*A+u*f,f=v)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,n,r){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<r;++o)n[o]=0;i(0===a),i(0==(-8192&a))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),u=new Array(r),l=new Array(r),f=new Array(r),A=n.words;A.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,u,r),this.transform(o,a,s,c,r,i),this.transform(u,a,l,f,r,i);for(var h=0;h<r;h++){var p=s[h]*l[h]-c[h]*f[h];c[h]=s[h]*f[h]+c[h]*l[h],s[h]=p}return this.conjugate(s,c,r),this.transform(s,c,A,a,r,i),this.conjugate(A,a,r),this.normalize13b(A,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),d(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,a=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(r-=o,r=Math.max(0,r),c){for(var u=0;u<o;u++)c.words[u]=this.words[u];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=r);u--){var f=0|this.words[u];this.words[u]=l<<26-a|f>>>a,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n||!(this.words[n]&r))},o.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var c=(0|e.words[r])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=r.clone()._ishlnsubmul(i,1,c);0===l.negative&&(r=l,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var A=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(A=Math.min(A/a|0,67108863),r._ishlnsubmul(i,A,f);0!==r.negative;)A--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=A)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var A=0,h=1;0==(t.words[0]&h)&&A<26;++A,h<<=1);if(A>0)for(t.iushrn(A);A-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(f)),r.iushrn(1),a.iushrn(1);for(var p=0,d=1;0==(n.words[0]&d)&&p<26;++p,d<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(s),a.isub(c)):(n.isub(t),s.isub(r),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,A=1;0==(n.words[0]&A)&&f<26;++f,A<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(r=0===t.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(e),r},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function B(e){C.call(this,e),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)}v.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(m,v),m.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},m.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},a(b,v),a(I,v),a(w,v),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new m;else if("p224"===e)t=new b;else if("p192"===e)t=new I;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return y[e]=t,t},C.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);i(!r.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,r),A=this.pow(e,r.addn(1).iushrn(1)),h=this.pow(e,r),p=a;0!==h.cmp(s);){for(var d=h,g=0;0!==d.cmp(s);g++)d=d.redSqr();i(g<p);var y=this.pow(f,new o(1).iushln(p-g-1));A=A.redMul(y),f=y.redSqr(),h=h.redMul(f),p=g}return A},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var f=u>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new B(e)},a(B,C),B.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},B.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},B.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},B.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},B.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(42)(e))},function(e,t,n){var r,i,a,o,s;function c(e){return(c="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}s="object"==c((o=this).sodium)&&"function"==typeof o.sodium.onload?o.sodium.onload:null,i=[t,n(85)],void 0!==(a="function"==typeof(r=function(e,t){"use strict";var n,r=t.ready.then((function(){function r(){if(0!==n._sodium_init())throw new Error("libsodium was not correctly initialized.");for(var t=["crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha512","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa208sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_version_string"],r=[w,C,B,E,_,k,Q,S,x,D,P,M,F,O,R,T,H,j,N,U,L,K,G,$,Y,J,V,z,q,W,X,Z,ee,te,ne,re,ie,ae,oe,se,ce,ue,le,fe,Ae,he,pe,de,ge,ye,ve,me,be,Ie,we,Ce,Be,Ee,_e,ke,Qe,Se,xe,De,Pe,Me,Fe,Oe,Re,Te,He,je,Ne,Ue,Le,Ke,Ge,$e,Ye,Je,Ve,ze,qe,We,Xe,Ze,et,tt,nt,rt,it,at,ot,st,ct,ut,lt,ft,At,ht,pt,dt,gt,yt,vt,mt,bt,It,wt,Ct,Bt,Et,_t,kt,Qt,St,xt,Dt,Pt,Mt,Ft,Ot,Rt,Tt,Ht,jt,Nt,Ut,Lt],i=0;i<r.length;i++)"function"==typeof n["_"+t[i]]&&(e[t[i]]=r[i]);var a=["SODIUM_LIBRARY_VERSION_MAJOR","SODIUM_LIBRARY_VERSION_MINOR","crypto_aead_chacha20poly1305_ABYTES","crypto_aead_chacha20poly1305_KEYBYTES","crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_NPUBBYTES","crypto_aead_chacha20poly1305_NSECBYTES","crypto_aead_chacha20poly1305_ietf_ABYTES","crypto_aead_chacha20poly1305_ietf_KEYBYTES","crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_ietf_NPUBBYTES","crypto_aead_chacha20poly1305_ietf_NSECBYTES","crypto_aead_xchacha20poly1305_ietf_ABYTES","crypto_aead_xchacha20poly1305_ietf_KEYBYTES","crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_ietf_NPUBBYTES","crypto_aead_xchacha20poly1305_ietf_NSECBYTES","crypto_auth_BYTES","crypto_auth_KEYBYTES","crypto_auth_hmacsha256_BYTES","crypto_auth_hmacsha256_KEYBYTES","crypto_auth_hmacsha512_BYTES","crypto_auth_hmacsha512_KEYBYTES","crypto_box_BEFORENMBYTES","crypto_box_MACBYTES","crypto_box_MESSAGEBYTES_MAX","crypto_box_NONCEBYTES","crypto_box_PUBLICKEYBYTES","crypto_box_SEALBYTES","crypto_box_SECRETKEYBYTES","crypto_box_SEEDBYTES","crypto_box_curve25519xchacha20poly1305_NONCEBYTES","crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES","crypto_core_hchacha20_CONSTBYTES","crypto_core_hchacha20_INPUTBYTES","crypto_core_hchacha20_KEYBYTES","crypto_core_hchacha20_OUTPUTBYTES","crypto_core_ristretto255_BYTES","crypto_core_ristretto255_HASHBYTES","crypto_core_ristretto255_NONREDUCEDSCALARBYTES","crypto_core_ristretto255_SCALARBYTES","crypto_generichash_BYTES","crypto_generichash_BYTES_MAX","crypto_generichash_BYTES_MIN","crypto_generichash_KEYBYTES","crypto_generichash_KEYBYTES_MAX","crypto_generichash_KEYBYTES_MIN","crypto_generichash_blake2b_BYTES","crypto_generichash_blake2b_BYTES_MAX","crypto_generichash_blake2b_BYTES_MIN","crypto_generichash_blake2b_KEYBYTES","crypto_generichash_blake2b_KEYBYTES_MAX","crypto_generichash_blake2b_KEYBYTES_MIN","crypto_generichash_blake2b_PERSONALBYTES","crypto_generichash_blake2b_SALTBYTES","crypto_hash_BYTES","crypto_hash_sha256_BYTES","crypto_hash_sha512_BYTES","crypto_kdf_BYTES_MAX","crypto_kdf_BYTES_MIN","crypto_kdf_CONTEXTBYTES","crypto_kdf_KEYBYTES","crypto_kx_PUBLICKEYBYTES","crypto_kx_SECRETKEYBYTES","crypto_kx_SEEDBYTES","crypto_kx_SESSIONKEYBYTES","crypto_onetimeauth_BYTES","crypto_onetimeauth_KEYBYTES","crypto_pwhash_ALG_ARGON2I13","crypto_pwhash_ALG_ARGON2ID13","crypto_pwhash_ALG_DEFAULT","crypto_pwhash_BYTES_MAX","crypto_pwhash_BYTES_MIN","crypto_pwhash_MEMLIMIT_INTERACTIVE","crypto_pwhash_MEMLIMIT_MAX","crypto_pwhash_MEMLIMIT_MIN","crypto_pwhash_MEMLIMIT_MODERATE","crypto_pwhash_MEMLIMIT_SENSITIVE","crypto_pwhash_OPSLIMIT_INTERACTIVE","crypto_pwhash_OPSLIMIT_MAX","crypto_pwhash_OPSLIMIT_MIN","crypto_pwhash_OPSLIMIT_MODERATE","crypto_pwhash_OPSLIMIT_SENSITIVE","crypto_pwhash_PASSWD_MAX","crypto_pwhash_PASSWD_MIN","crypto_pwhash_SALTBYTES","crypto_pwhash_STRBYTES","crypto_pwhash_STR_VERIFY","crypto_pwhash_scryptsalsa208sha256_BYTES_MAX","crypto_pwhash_scryptsalsa208sha256_BYTES_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_SALTBYTES","crypto_pwhash_scryptsalsa208sha256_STRBYTES","crypto_pwhash_scryptsalsa208sha256_STR_VERIFY","crypto_scalarmult_BYTES","crypto_scalarmult_SCALARBYTES","crypto_scalarmult_ristretto255_BYTES","crypto_scalarmult_ristretto255_SCALARBYTES","crypto_secretbox_KEYBYTES","crypto_secretbox_MACBYTES","crypto_secretbox_MESSAGEBYTES_MAX","crypto_secretbox_NONCEBYTES","crypto_secretstream_xchacha20poly1305_ABYTES","crypto_secretstream_xchacha20poly1305_HEADERBYTES","crypto_secretstream_xchacha20poly1305_KEYBYTES","crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretstream_xchacha20poly1305_MESSAGESBYTES_MAX","crypto_secretstream_xchacha20poly1305_NPUBBYTES","crypto_secretstream_xchacha20poly1305_TAG_FINAL","crypto_secretstream_xchacha20poly1305_TAG_MESSAGE","crypto_secretstream_xchacha20poly1305_TAG_PUSH","crypto_secretstream_xchacha20poly1305_TAG_REKEY","crypto_shorthash_BYTES","crypto_shorthash_KEYBYTES","crypto_shorthash_siphashx24_BYTES","crypto_shorthash_siphashx24_KEYBYTES","crypto_sign_BYTES","crypto_sign_MESSAGEBYTES_MAX","crypto_sign_PUBLICKEYBYTES","crypto_sign_SECRETKEYBYTES","crypto_sign_SEEDBYTES","crypto_stream_KEYBYTES","crypto_stream_MESSAGEBYTES_MAX","crypto_stream_NONCEBYTES","crypto_stream_chacha20_KEYBYTES","crypto_stream_chacha20_NONCEBYTES","crypto_stream_chacha20_ietf_KEYBYTES","crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX","crypto_stream_chacha20_ietf_NONCEBYTES","crypto_stream_xchacha20_KEYBYTES","crypto_stream_xchacha20_MESSAGEBYTES_MAX","crypto_stream_xchacha20_NONCEBYTES","randombytes_SEEDBYTES"];for(i=0;i<a.length;i++)"function"==typeof(s=n["_"+a[i].toLowerCase()])&&(e[a[i]]=s());var o=["SODIUM_VERSION_STRING","crypto_pwhash_STRPREFIX","crypto_pwhash_scryptsalsa208sha256_STRPREFIX"];for(i=0;i<o.length;i++){var s;"function"==typeof(s=n["_"+o[i].toLowerCase()])&&(e[o[i]]=n.UTF8ToString(s()))}}n=t;try{r();var i=new Uint8Array([98,97,108,108,115]),a=e.randombytes_buf(e.crypto_secretbox_NONCEBYTES),o=e.randombytes_buf(e.crypto_secretbox_KEYBYTES),s=e.crypto_secretbox_easy(i,a,o),c=e.crypto_secretbox_open_easy(s,a,o);if(e.memcmp(i,c))return}catch(e){if(null==n.useBackupModule)throw new Error("Both wasm and asm failed to load"+e)}n.useBackupModule(),r()}));function i(e){if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);e=unescape(encodeURIComponent(e));for(var t=new Uint8Array(e.length),n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}function a(e){if("function"==typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(e);var t=Math.ceil(e.length/8192);if(t<=1)try{return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}catch(e){throw new TypeError("The encoded data was not valid.")}for(var n="",r=0,i=0;i<t;i++){var o=Array.prototype.slice.call(e,8192*i+r,8192*(i+1)+r);if(0!=o.length){var s,c=o.length,u=0;do{var l=o[--c];l>=240?(u=4,s=!0):l>=224?(u=3,s=!0):l>=192?(u=2,s=!0):l<128&&(u=1,s=!0)}while(!s);for(var f=u-(o.length-c),A=0;A<f;A++)r--,o.pop();n+=a(o)}}return n}function o(e){e=I(null,e,"input");for(var t,n,r,i="",a=0;a<e.length;a++)r=87+(n=15&e[a])+(n-10>>8&-39)<<8|87+(t=e[a]>>>4)+(t-10>>8&-39),i+=String.fromCharCode(255&r)+String.fromCharCode(r>>>8);return i}var s={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function u(e){if(null==e)return s.URLSAFE_NO_PADDING;if(e!==s.ORIGINAL&&e!==s.ORIGINAL_NO_PADDING&&e!==s.URLSAFE&&e!=s.URLSAFE_NO_PADDING)throw new Error("unsupported base64 variant");return e}function l(e,t){t=u(t),e=I(i,e,"input");var r,i=[],o=0|Math.floor(e.length/3),s=e.length-3*o,c=4*o+(0!==s?0==(2&t)?4:2+(s>>>1):0),l=new p(c+1),f=d(e);return i.push(f),i.push(l.address),0===n._sodium_bin2base64(l.address,l.length,f,e.length,t)&&v(i,"conversion failed"),l.length=c,r=a(l.to_Uint8Array()),y(i),r}function f(e,t){var n=t||"uint8array";if(!A(n))throw new Error(n+" output format is not available");if(e instanceof p){if("uint8array"===n)return e.to_Uint8Array();if("text"===n)return a(e.to_Uint8Array());if("hex"===n)return o(e.to_Uint8Array());if("base64"===n)return l(e.to_Uint8Array(),s.URLSAFE_NO_PADDING);throw new Error('What is output format "'+n+'"?')}if("object"==c(e)){for(var r=Object.keys(e),i={},u=0;u<r.length;u++)i[r[u]]=f(e[r[u]],n);return i}if("string"==typeof e)return e;throw new TypeError("Cannot format output")}function A(e){for(var t=["uint8array","text","hex","base64"],n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function h(e){if(e){if("string"!=typeof e)throw new TypeError("When defined, the output format must be a string");if(!A(e))throw new Error(e+" is not a supported output format")}}function p(e){this.length=e,this.address=g(e)}function d(e){var t=g(e.length);return n.HEAPU8.set(e,t),t}function g(e){var t=n._malloc(e);if(0===t)throw{message:"_malloc() failed",length:e};return t}function y(e){if(e)for(var t=0;t<e.length;t++)r=e[t],n._free(r);var r}function v(e,t){throw y(e),new Error(t)}function m(e,t){throw y(e),new TypeError(t)}function b(e,t,n){null==t&&m(e,n+" cannot be null or undefined")}function I(e,t,n){return b(e,t,n),t instanceof Uint8Array?t:"string"==typeof t?i(t):void m(e,"unsupported input type for "+n)}function w(e,t,r,i,a,o){var s=[];h(o);var c=null;null!=e&&(c=d(e=I(s,e,"secret_nonce")),e.length,s.push(c)),t=I(s,t,"ciphertext");var u,l=n._crypto_aead_chacha20poly1305_abytes(),A=t.length;A<l&&m(s,"ciphertext is too short"),u=d(t),s.push(u);var g=null,b=0;null!=r&&(g=d(r=I(s,r,"additional_data")),b=r.length,s.push(g)),i=I(s,i,"public_nonce");var w,C=0|n._crypto_aead_chacha20poly1305_npubbytes();i.length!==C&&m(s,"invalid public_nonce length"),w=d(i),s.push(w),a=I(s,a,"key");var B,E=0|n._crypto_aead_chacha20poly1305_keybytes();a.length!==E&&m(s,"invalid key length"),B=d(a),s.push(B);var _=new p(A-n._crypto_aead_chacha20poly1305_abytes()|0),k=_.address;if(s.push(k),0===n._crypto_aead_chacha20poly1305_decrypt(k,null,c,u,A,0,g,b,0,w,B)){var Q=f(_,o);return y(s),Q}v(s,"ciphertext cannot be decrypted using that key")}function C(e,t,r,i,a,o,s){var c=[];h(s);var u=null;null!=e&&(u=d(e=I(c,e,"secret_nonce")),e.length,c.push(u));var l=d(t=I(c,t,"ciphertext")),A=t.length;c.push(l),r=I(c,r,"mac");var g,b=0|n._crypto_box_macbytes();r.length!==b&&m(c,"invalid mac length"),g=d(r),c.push(g);var w=null,C=0;null!=i&&(w=d(i=I(c,i,"additional_data")),C=i.length,c.push(w)),a=I(c,a,"public_nonce");var B,E=0|n._crypto_aead_chacha20poly1305_npubbytes();a.length!==E&&m(c,"invalid public_nonce length"),B=d(a),c.push(B),o=I(c,o,"key");var _,k=0|n._crypto_aead_chacha20poly1305_keybytes();o.length!==k&&m(c,"invalid key length"),_=d(o),c.push(_);var Q=new p(0|A),S=Q.address;if(c.push(S),0===n._crypto_aead_chacha20poly1305_decrypt_detached(S,u,l,A,0,g,w,C,0,B,_)){var x=f(Q,s);return y(c),x}v(c,"ciphertext cannot be decrypted using that key")}function B(e,t,r,i,a,o){var s=[];h(o);var c=d(e=I(s,e,"message")),u=e.length;s.push(c);var l=null,A=0;null!=t&&(l=d(t=I(s,t,"additional_data")),A=t.length,s.push(l));var g=null;null!=r&&(g=d(r=I(s,r,"secret_nonce")),r.length,s.push(g)),i=I(s,i,"public_nonce");var b,w=0|n._crypto_aead_chacha20poly1305_npubbytes();i.length!==w&&m(s,"invalid public_nonce length"),b=d(i),s.push(b),a=I(s,a,"key");var C,B=0|n._crypto_aead_chacha20poly1305_keybytes();a.length!==B&&m(s,"invalid key length"),C=d(a),s.push(C);var E=new p(u+n._crypto_aead_chacha20poly1305_abytes()|0),_=E.address;if(s.push(_),0===n._crypto_aead_chacha20poly1305_encrypt(_,null,c,u,0,l,A,0,g,b,C)){var k=f(E,o);return y(s),k}v(s,"invalid usage")}function E(e,t,r,i,a,o){var s=[];h(o);var c=d(e=I(s,e,"message")),u=e.length;s.push(c);var l=null,A=0;null!=t&&(l=d(t=I(s,t,"additional_data")),A=t.length,s.push(l));var g=null;null!=r&&(g=d(r=I(s,r,"secret_nonce")),r.length,s.push(g)),i=I(s,i,"public_nonce");var b,w=0|n._crypto_aead_chacha20poly1305_npubbytes();i.length!==w&&m(s,"invalid public_nonce length"),b=d(i),s.push(b),a=I(s,a,"key");var C,B=0|n._crypto_aead_chacha20poly1305_keybytes();a.length!==B&&m(s,"invalid key length"),C=d(a),s.push(C);var E=new p(0|u),_=E.address;s.push(_);var k=new p(0|n._crypto_aead_chacha20poly1305_abytes()),Q=k.address;if(s.push(Q),0===n._crypto_aead_chacha20poly1305_encrypt_detached(_,Q,null,c,u,0,l,A,0,g,b,C)){var S=f({ciphertext:E,mac:k},o);return y(s),S}v(s,"invalid usage")}function _(e,t,r,i,a,o){var s=[];h(o);var c=null;null!=e&&(c=d(e=I(s,e,"secret_nonce")),e.length,s.push(c)),t=I(s,t,"ciphertext");var u,l=n._crypto_aead_chacha20poly1305_ietf_abytes(),A=t.length;A<l&&m(s,"ciphertext is too short"),u=d(t),s.push(u);var g=null,b=0;null!=r&&(g=d(r=I(s,r,"additional_data")),b=r.length,s.push(g)),i=I(s,i,"public_nonce");var w,C=0|n._crypto_aead_chacha20poly1305_ietf_npubbytes();i.length!==C&&m(s,"invalid public_nonce length"),w=d(i),s.push(w),a=I(s,a,"key");var B,E=0|n._crypto_aead_chacha20poly1305_ietf_keybytes();a.length!==E&&m(s,"invalid key length"),B=d(a),s.push(B);var _=new p(A-n._crypto_aead_chacha20poly1305_ietf_abytes()|0),k=_.address;if(s.push(k),0===n._crypto_aead_chacha20poly1305_ietf_decrypt(k,null,c,u,A,0,g,b,0,w,B)){var Q=f(_,o);return y(s),Q}v(s,"ciphertext cannot be decrypted using that key")}function k(e,t,r,i,a,o,s){var c=[];h(s);var u=null;null!=e&&(u=d(e=I(c,e,"secret_nonce")),e.length,c.push(u));var l=d(t=I(c,t,"ciphertext")),A=t.length;c.push(l),r=I(c,r,"mac");var g,b=0|n._crypto_box_macbytes();r.length!==b&&m(c,"invalid mac length"),g=d(r),c.push(g);var w=null,C=0;null!=i&&(w=d(i=I(c,i,"additional_data")),C=i.length,c.push(w)),a=I(c,a,"public_nonce");var B,E=0|n._crypto_aead_chacha20poly1305_ietf_npubbytes();a.length!==E&&m(c,"invalid public_nonce length"),B=d(a),c.push(B),o=I(c,o,"key");var _,k=0|n._crypto_aead_chacha20poly1305_ietf_keybytes();o.length!==k&&m(c,"invalid key length"),_=d(o),c.push(_);var Q=new p(0|A),S=Q.address;if(c.push(S),0===n._crypto_aead_chacha20poly1305_ietf_decrypt_detached(S,u,l,A,0,g,w,C,0,B,_)){var x=f(Q,s);return y(c),x}v(c,"ciphertext cannot be decrypted using that key")}function Q(e,t,r,i,a,o){var s=[];h(o);var c=d(e=I(s,e,"message")),u=e.length;s.push(c);var l=null,A=0;null!=t&&(l=d(t=I(s,t,"additional_data")),A=t.length,s.push(l));var g=null;null!=r&&(g=d(r=I(s,r,"secret_nonce")),r.length,s.push(g)),i=I(s,i,"public_nonce");var b,w=0|n._crypto_aead_chacha20poly1305_ietf_npubbytes();i.length!==w&&m(s,"invalid public_nonce length"),b=d(i),s.push(b),a=I(s,a,"key");var C,B=0|n._crypto_aead_chacha20poly1305_ietf_keybytes();a.length!==B&&m(s,"invalid key length"),C=d(a),s.push(C);var E=new p(u+n._crypto_aead_chacha20poly1305_ietf_abytes()|0),_=E.address;if(s.push(_),0===n._crypto_aead_chacha20poly1305_ietf_encrypt(_,null,c,u,0,l,A,0,g,b,C)){var k=f(E,o);return y(s),k}v(s,"invalid usage")}function S(e,t,r,i,a,o){var s=[];h(o);var c=d(e=I(s,e,"message")),u=e.length;s.push(c);var l=null,A=0;null!=t&&(l=d(t=I(s,t,"additional_data")),A=t.length,s.push(l));var g=null;null!=r&&(g=d(r=I(s,r,"secret_nonce")),r.length,s.push(g)),i=I(s,i,"public_nonce");var b,w=0|n._crypto_aead_chacha20poly1305_ietf_npubbytes();i.length!==w&&m(s,"invalid public_nonce length"),b=d(i),s.push(b),a=I(s,a,"key");var C,B=0|n._crypto_aead_chacha20poly1305_ietf_keybytes();a.length!==B&&m(s,"invalid key length"),C=d(a),s.push(C);var E=new p(0|u),_=E.address;s.push(_);var k=new p(0|n._crypto_aead_chacha20poly1305_ietf_abytes()),Q=k.address;if(s.push(Q),0===n._crypto_aead_chacha20poly1305_ietf_encrypt_detached(_,Q,null,c,u,0,l,A,0,g,b,C)){var S=f({ciphertext:E,mac:k},o);return y(s),S}v(s,"invalid usage")}function x(e){var t=[];h(e);var r=new p(0|n._crypto_aead_chacha20poly1305_ietf_keybytes()),i=r.address;t.push(i),n._crypto_aead_chacha20poly1305_ietf_keygen(i);var a=f(r,e);return y(t),a}function D(e){var t=[];h(e);var r=new p(0|n._crypto_aead_chacha20poly1305_keybytes()),i=r.address;t.push(i),n._crypto_aead_chacha20poly1305_keygen(i);var a=f(r,e);return y(t),a}function P(e,t,r,i,a,o){var s=[];h(o);var c=null;null!=e&&(c=d(e=I(s,e,"secret_nonce")),e.length,s.push(c)),t=I(s,t,"ciphertext");var u,l=n._crypto_aead_xchacha20poly1305_ietf_abytes(),A=t.length;A<l&&m(s,"ciphertext is too short"),u=d(t),s.push(u);var g=null,b=0;null!=r&&(g=d(r=I(s,r,"additional_data")),b=r.length,s.push(g)),i=I(s,i,"public_nonce");var w,C=0|n._crypto_aead_xchacha20poly1305_ietf_npubbytes();i.length!==C&&m(s,"invalid public_nonce length"),w=d(i),s.push(w),a=I(s,a,"key");var B,E=0|n._crypto_aead_xchacha20poly1305_ietf_keybytes();a.length!==E&&m(s,"invalid key length"),B=d(a),s.push(B);var _=new p(A-n._crypto_aead_xchacha20poly1305_ietf_abytes()|0),k=_.address;if(s.push(k),0===n._crypto_aead_xchacha20poly1305_ietf_decrypt(k,null,c,u,A,0,g,b,0,w,B)){var Q=f(_,o);return y(s),Q}v(s,"ciphertext cannot be decrypted using that key")}function M(e,t,r,i,a,o,s){var c=[];h(s);var u=null;null!=e&&(u=d(e=I(c,e,"secret_nonce")),e.length,c.push(u));var l=d(t=I(c,t,"ciphertext")),A=t.length;c.push(l),r=I(c,r,"mac");var g,b=0|n._crypto_box_macbytes();r.length!==b&&m(c,"invalid mac length"),g=d(r),c.push(g);var w=null,C=0;null!=i&&(w=d(i=I(c,i,"additional_data")),C=i.length,c.push(w)),a=I(c,a,"public_nonce");var B,E=0|n._crypto_aead_xchacha20poly1305_ietf_npubbytes();a.length!==E&&m(c,"invalid public_nonce length"),B=d(a),c.push(B),o=I(c,o,"key");var _,k=0|n._crypto_aead_xchacha20poly1305_ietf_keybytes();o.length!==k&&m(c,"invalid key length"),_=d(o),c.push(_);var Q=new p(0|A),S=Q.address;if(c.push(S),0===n._crypto_aead_xchacha20poly1305_ietf_decrypt_detached(S,u,l,A,0,g,w,C,0,B,_)){var x=f(Q,s);return y(c),x}v(c,"ciphertext cannot be decrypted using that key")}function F(e,t,r,i,a,o){var s=[];h(o);var c=d(e=I(s,e,"message")),u=e.length;s.push(c);var l=null,A=0;null!=t&&(l=d(t=I(s,t,"additional_data")),A=t.length,s.push(l));var g=null;null!=r&&(g=d(r=I(s,r,"secret_nonce")),r.length,s.push(g)),i=I(s,i,"public_nonce");var b,w=0|n._crypto_aead_xchacha20poly1305_ietf_npubbytes();i.length!==w&&m(s,"invalid public_nonce length"),b=d(i),s.push(b),a=I(s,a,"key");var C,B=0|n._crypto_aead_xchacha20poly1305_ietf_keybytes();a.length!==B&&m(s,"invalid key length"),C=d(a),s.push(C);var E=new p(u+n._crypto_aead_xchacha20poly1305_ietf_abytes()|0),_=E.address;if(s.push(_),0===n._crypto_aead_xchacha20poly1305_ietf_encrypt(_,null,c,u,0,l,A,0,g,b,C)){var k=f(E,o);return y(s),k}v(s,"invalid usage")}function O(e,t,r,i,a,o){var s=[];h(o);var c=d(e=I(s,e,"message")),u=e.length;s.push(c);var l=null,A=0;null!=t&&(l=d(t=I(s,t,"additional_data")),A=t.length,s.push(l));var g=null;null!=r&&(g=d(r=I(s,r,"secret_nonce")),r.length,s.push(g)),i=I(s,i,"public_nonce");var b,w=0|n._crypto_aead_xchacha20poly1305_ietf_npubbytes();i.length!==w&&m(s,"invalid public_nonce length"),b=d(i),s.push(b),a=I(s,a,"key");var C,B=0|n._crypto_aead_xchacha20poly1305_ietf_keybytes();a.length!==B&&m(s,"invalid key length"),C=d(a),s.push(C);var E=new p(0|u),_=E.address;s.push(_);var k=new p(0|n._crypto_aead_xchacha20poly1305_ietf_abytes()),Q=k.address;if(s.push(Q),0===n._crypto_aead_xchacha20poly1305_ietf_encrypt_detached(_,Q,null,c,u,0,l,A,0,g,b,C)){var S=f({ciphertext:E,mac:k},o);return y(s),S}v(s,"invalid usage")}function R(e){var t=[];h(e);var r=new p(0|n._crypto_aead_xchacha20poly1305_ietf_keybytes()),i=r.address;t.push(i),n._crypto_aead_xchacha20poly1305_ietf_keygen(i);var a=f(r,e);return y(t),a}function T(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"key");var s,c=0|n._crypto_auth_keybytes();t.length!==c&&m(i,"invalid key length"),s=d(t),i.push(s);var u=new p(0|n._crypto_auth_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_auth(l,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function H(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"key");var s,c=0|n._crypto_auth_hmacsha256_keybytes();t.length!==c&&m(i,"invalid key length"),s=d(t),i.push(s);var u=new p(0|n._crypto_auth_hmacsha256_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_auth_hmacsha256(l,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function j(e){var t=[];h(e);var r=new p(0|n._crypto_auth_hmacsha256_keybytes()),i=r.address;t.push(i),n._crypto_auth_hmacsha256_keygen(i);var a=f(r,e);return y(t),a}function N(e,t,r){var i=[];e=I(i,e,"tag");var a,o=0|n._crypto_auth_hmacsha256_bytes();e.length!==o&&m(i,"invalid tag length"),a=d(e),i.push(a);var s=d(t=I(i,t,"message")),c=t.length;i.push(s),r=I(i,r,"key");var u,l=0|n._crypto_auth_hmacsha256_keybytes();r.length!==l&&m(i,"invalid key length"),u=d(r),i.push(u);var f=0==(0|n._crypto_auth_hmacsha256_verify(a,s,c,0,u));return y(i),f}function U(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"key");var s,c=0|n._crypto_auth_hmacsha512_keybytes();t.length!==c&&m(i,"invalid key length"),s=d(t),i.push(s);var u=new p(0|n._crypto_auth_hmacsha512_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_auth_hmacsha512(l,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function L(e){var t=[];h(e);var r=new p(0|n._crypto_auth_hmacsha512_keybytes()),i=r.address;t.push(i),n._crypto_auth_hmacsha512_keygen(i);var a=f(r,e);return y(t),a}function K(e,t,r){var i=[];e=I(i,e,"tag");var a,o=0|n._crypto_auth_hmacsha512_bytes();e.length!==o&&m(i,"invalid tag length"),a=d(e),i.push(a);var s=d(t=I(i,t,"message")),c=t.length;i.push(s),r=I(i,r,"key");var u,l=0|n._crypto_auth_hmacsha512_keybytes();r.length!==l&&m(i,"invalid key length"),u=d(r),i.push(u);var f=0==(0|n._crypto_auth_hmacsha512_verify(a,s,c,0,u));return y(i),f}function G(e){var t=[];h(e);var r=new p(0|n._crypto_auth_keybytes()),i=r.address;t.push(i),n._crypto_auth_keygen(i);var a=f(r,e);return y(t),a}function $(e,t,r){var i=[];e=I(i,e,"tag");var a,o=0|n._crypto_auth_bytes();e.length!==o&&m(i,"invalid tag length"),a=d(e),i.push(a);var s=d(t=I(i,t,"message")),c=t.length;i.push(s),r=I(i,r,"key");var u,l=0|n._crypto_auth_keybytes();r.length!==l&&m(i,"invalid key length"),u=d(r),i.push(u);var f=0==(0|n._crypto_auth_verify(a,s,c,0,u));return y(i),f}function Y(e,t,r){var i=[];h(r),e=I(i,e,"publicKey");var a,o=0|n._crypto_box_publickeybytes();e.length!==o&&m(i,"invalid publicKey length"),a=d(e),i.push(a),t=I(i,t,"privateKey");var s,c=0|n._crypto_box_secretkeybytes();t.length!==c&&m(i,"invalid privateKey length"),s=d(t),i.push(s);var u=new p(0|n._crypto_box_beforenmbytes()),l=u.address;if(i.push(l),0==(0|n._crypto_box_beforenm(l,a,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function J(e){var t=[];h(e);var r=new p(0|n._crypto_box_curve25519xchacha20poly1305_publickeybytes()),i=r.address;t.push(i);var a=new p(0|n._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),o=a.address;t.push(o),n._crypto_box_curve25519xchacha20poly1305_keypair(i,o);var s=f({publicKey:r,privateKey:a,keyType:"curve25519"},e);return y(t),s}function V(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"publicKey");var s,c=0|n._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==c&&m(i,"invalid publicKey length"),s=d(t),i.push(s);var u=new p(o+n._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),l=u.address;i.push(l),n._crypto_box_curve25519xchacha20poly1305_seal(l,a,o,0,s);var A=f(u,r);return y(i),A}function z(e,t,r,i){var a=[];h(i),e=I(a,e,"ciphertext");var o,s=n._crypto_box_curve25519xchacha20poly1305_sealbytes(),c=e.length;c<s&&m(a,"ciphertext is too short"),o=d(e),a.push(o),t=I(a,t,"publicKey");var u,l=0|n._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==l&&m(a,"invalid publicKey length"),u=d(t),a.push(u),r=I(a,r,"secretKey");var A,g=0|n._crypto_box_curve25519xchacha20poly1305_secretkeybytes();r.length!==g&&m(a,"invalid secretKey length"),A=d(r),a.push(A);var v=new p(c-n._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),b=v.address;a.push(b),n._crypto_box_curve25519xchacha20poly1305_seal_open(b,o,c,0,u,A);var w=f(v,i);return y(a),w}function q(e,t,r,i,a){var o=[];h(a);var s=d(e=I(o,e,"message")),c=e.length;o.push(s),t=I(o,t,"nonce");var u,l=0|n._crypto_box_noncebytes();t.length!==l&&m(o,"invalid nonce length"),u=d(t),o.push(u),r=I(o,r,"publicKey");var A,g=0|n._crypto_box_publickeybytes();r.length!==g&&m(o,"invalid publicKey length"),A=d(r),o.push(A),i=I(o,i,"privateKey");var b,w=0|n._crypto_box_secretkeybytes();i.length!==w&&m(o,"invalid privateKey length"),b=d(i),o.push(b);var C=new p(0|c),B=C.address;o.push(B);var E=new p(0|n._crypto_box_macbytes()),_=E.address;if(o.push(_),0==(0|n._crypto_box_detached(B,_,s,c,0,u,A,b))){var k=f({ciphertext:C,mac:E},a);return y(o),k}v(o,"invalid usage")}function W(e,t,r,i,a){var o=[];h(a);var s=d(e=I(o,e,"message")),c=e.length;o.push(s),t=I(o,t,"nonce");var u,l=0|n._crypto_box_noncebytes();t.length!==l&&m(o,"invalid nonce length"),u=d(t),o.push(u),r=I(o,r,"publicKey");var A,g=0|n._crypto_box_publickeybytes();r.length!==g&&m(o,"invalid publicKey length"),A=d(r),o.push(A),i=I(o,i,"privateKey");var b,w=0|n._crypto_box_secretkeybytes();i.length!==w&&m(o,"invalid privateKey length"),b=d(i),o.push(b);var C=new p(c+n._crypto_box_macbytes()|0),B=C.address;if(o.push(B),0==(0|n._crypto_box_easy(B,s,c,0,u,A,b))){var E=f(C,a);return y(o),E}v(o,"invalid usage")}function X(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"message")),s=e.length;a.push(o),t=I(a,t,"nonce");var c,u=0|n._crypto_box_noncebytes();t.length!==u&&m(a,"invalid nonce length"),c=d(t),a.push(c),r=I(a,r,"sharedKey");var l,A=0|n._crypto_box_beforenmbytes();r.length!==A&&m(a,"invalid sharedKey length"),l=d(r),a.push(l);var g=new p(s+n._crypto_box_macbytes()|0),b=g.address;if(a.push(b),0==(0|n._crypto_box_easy_afternm(b,o,s,0,c,l))){var w=f(g,i);return y(a),w}v(a,"invalid usage")}function Z(e){var t=[];h(e);var r=new p(0|n._crypto_box_publickeybytes()),i=r.address;t.push(i);var a=new p(0|n._crypto_box_secretkeybytes()),o=a.address;if(t.push(o),0==(0|n._crypto_box_keypair(i,o))){var s={publicKey:f(r,e),privateKey:f(a,e),keyType:"x25519"};return y(t),s}v(t,"internal error")}function ee(e,t,r,i,a,o){var s=[];h(o);var c=d(e=I(s,e,"ciphertext")),u=e.length;s.push(c),t=I(s,t,"mac");var l,A=0|n._crypto_box_macbytes();t.length!==A&&m(s,"invalid mac length"),l=d(t),s.push(l),r=I(s,r,"nonce");var g,b=0|n._crypto_box_noncebytes();r.length!==b&&m(s,"invalid nonce length"),g=d(r),s.push(g),i=I(s,i,"publicKey");var w,C=0|n._crypto_box_publickeybytes();i.length!==C&&m(s,"invalid publicKey length"),w=d(i),s.push(w),a=I(s,a,"privateKey");var B,E=0|n._crypto_box_secretkeybytes();a.length!==E&&m(s,"invalid privateKey length"),B=d(a),s.push(B);var _=new p(0|u),k=_.address;if(s.push(k),0==(0|n._crypto_box_open_detached(k,c,l,u,0,g,w,B))){var Q=f(_,o);return y(s),Q}v(s,"incorrect key pair for the given ciphertext")}function te(e,t,r,i,a){var o=[];h(a),e=I(o,e,"ciphertext");var s,c=n._crypto_box_macbytes(),u=e.length;u<c&&m(o,"ciphertext is too short"),s=d(e),o.push(s),t=I(o,t,"nonce");var l,A=0|n._crypto_box_noncebytes();t.length!==A&&m(o,"invalid nonce length"),l=d(t),o.push(l),r=I(o,r,"publicKey");var g,b=0|n._crypto_box_publickeybytes();r.length!==b&&m(o,"invalid publicKey length"),g=d(r),o.push(g),i=I(o,i,"privateKey");var w,C=0|n._crypto_box_secretkeybytes();i.length!==C&&m(o,"invalid privateKey length"),w=d(i),o.push(w);var B=new p(u-n._crypto_box_macbytes()|0),E=B.address;if(o.push(E),0==(0|n._crypto_box_open_easy(E,s,u,0,l,g,w))){var _=f(B,a);return y(o),_}v(o,"incorrect key pair for the given ciphertext")}function ne(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"ciphertext")),s=e.length;a.push(o),t=I(a,t,"nonce");var c,u=0|n._crypto_box_noncebytes();t.length!==u&&m(a,"invalid nonce length"),c=d(t),a.push(c),r=I(a,r,"sharedKey");var l,A=0|n._crypto_box_beforenmbytes();r.length!==A&&m(a,"invalid sharedKey length"),l=d(r),a.push(l);var g=new p(s-n._crypto_box_macbytes()|0),b=g.address;if(a.push(b),0==(0|n._crypto_box_open_easy_afternm(b,o,s,0,c,l))){var w=f(g,i);return y(a),w}v(a,"incorrect secret key for the given ciphertext")}function re(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"publicKey");var s,c=0|n._crypto_box_publickeybytes();t.length!==c&&m(i,"invalid publicKey length"),s=d(t),i.push(s);var u=new p(o+n._crypto_box_sealbytes()|0),l=u.address;if(i.push(l),0==(0|n._crypto_box_seal(l,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function ie(e,t,r,i){var a=[];h(i),e=I(a,e,"ciphertext");var o,s=n._crypto_box_sealbytes(),c=e.length;c<s&&m(a,"ciphertext is too short"),o=d(e),a.push(o),t=I(a,t,"publicKey");var u,l=0|n._crypto_box_publickeybytes();t.length!==l&&m(a,"invalid publicKey length"),u=d(t),a.push(u),r=I(a,r,"privateKey");var A,g=0|n._crypto_box_secretkeybytes();r.length!==g&&m(a,"invalid privateKey length"),A=d(r),a.push(A);var b=new p(c-n._crypto_box_sealbytes()|0),w=b.address;if(a.push(w),0==(0|n._crypto_box_seal_open(w,o,c,0,u,A))){var C=f(b,i);return y(a),C}v(a,"incorrect key pair for the given ciphertext")}function ae(e,t){var r=[];h(t),e=I(r,e,"seed");var i,a=0|n._crypto_box_seedbytes();e.length!==a&&m(r,"invalid seed length"),i=d(e),r.push(i);var o=new p(0|n._crypto_box_publickeybytes()),s=o.address;r.push(s);var c=new p(0|n._crypto_box_secretkeybytes()),u=c.address;if(r.push(u),0==(0|n._crypto_box_seed_keypair(s,u,i))){var l={publicKey:f(o,t),privateKey:f(c,t),keyType:"x25519"};return y(r),l}v(r,"invalid usage")}function oe(e,t,r){var i=[];h(r),e=I(i,e,"p");var a,o=0|n._crypto_core_ristretto255_bytes();e.length!==o&&m(i,"invalid p length"),a=d(e),i.push(a),t=I(i,t,"q");var s,c=0|n._crypto_core_ristretto255_bytes();t.length!==c&&m(i,"invalid q length"),s=d(t),i.push(s);var u=new p(0|n._crypto_core_ristretto255_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_core_ristretto255_add(l,a,s))){var A=f(u,r);return y(i),A}v(i,"inputs is invalid element")}function se(e,t){var r=[];h(t);var i=d(e=I(r,e,"r"));e.length,r.push(i);var a=new p(0|n._crypto_core_ristretto255_bytes()),o=a.address;if(r.push(o),0==(0|n._crypto_core_ristretto255_from_hash(o,i))){var s=f(a,t);return y(r),s}v(r,"invalid usage")}function ce(e,t){var r=[];h(t);var i=d(e=I(r,e,"point"));e.length,r.push(i);var a=1==(0|n._crypto_core_ristretto255_is_valid_point(i));return y(r),a}function ue(e){var t=[];h(e);var r=new p(0|n._crypto_core_ristretto255_bytes()),i=r.address;t.push(i),n._crypto_core_ristretto255_random(i);var a=f(r,e);return y(t),a}function le(e,t,r){var i=[];h(r),e=I(i,e,"x");var a,o=0|n._crypto_core_ristretto255_scalarbytes();e.length!==o&&m(i,"invalid x length"),a=d(e),i.push(a),t=I(i,t,"y");var s,c=0|n._crypto_core_ristretto255_scalarbytes();t.length!==c&&m(i,"invalid y length"),s=d(t),i.push(s);var u=new p(0|n._crypto_core_ristretto255_scalarbytes()),l=u.address;i.push(l),n._crypto_core_ristretto255_scalar_add(l,a,s);var A=f(u,r);return y(i),A}function fe(e,t){var r=[];h(t);var i=d(e=I(r,e,"s"));e.length,r.push(i);var a=new p(0|n._crypto_core_ristretto255_scalarbytes()),o=a.address;r.push(o),n._crypto_core_ristretto255_scalar_complement(o,i);var s=f(a,t);return y(r),s}function Ae(e,t){var r=[];h(t);var i=d(e=I(r,e,"s"));e.length,r.push(i);var a=new p(0|n._crypto_core_ristretto255_scalarbytes()),o=a.address;if(r.push(o),0==(0|n._crypto_core_ristretto255_scalar_invert(o,i))){var s=f(a,t);return y(r),s}v(r,"invalid reciprocate")}function he(e,t,r){var i=[];h(r),e=I(i,e,"x");var a,o=0|n._crypto_core_ristretto255_scalarbytes();e.length!==o&&m(i,"invalid x length"),a=d(e),i.push(a),t=I(i,t,"y");var s,c=0|n._crypto_core_ristretto255_scalarbytes();t.length!==c&&m(i,"invalid y length"),s=d(t),i.push(s);var u=new p(0|n._crypto_core_ristretto255_scalarbytes()),l=u.address;i.push(l),n._crypto_core_ristretto255_scalar_mul(l,a,s);var A=f(u,r);return y(i),A}function pe(e,t){var r=[];h(t);var i=d(e=I(r,e,"s"));e.length,r.push(i);var a=new p(0|n._crypto_core_ristretto255_scalarbytes()),o=a.address;r.push(o),n._crypto_core_ristretto255_scalar_negate(o,i);var s=f(a,t);return y(r),s}function de(e){var t=[];h(e);var r=new p(0|n._crypto_core_ristretto255_scalarbytes()),i=r.address;t.push(i),n._crypto_core_ristretto255_random(i);var a=f(r,e);return y(t),a}function ge(e,t){var r=[];h(t);var i=d(e=I(r,e,"sample"));e.length,r.push(i);var a=new p(0|n._crypto_core_ristretto255_scalarbytes()),o=a.address;r.push(o),n._crypto_core_ristretto255_scalar_reduce(o,i);var s=f(a,t);return y(r),s}function ye(e,t,r){var i=[];h(r),e=I(i,e,"x");var a,o=0|n._crypto_core_ristretto255_scalarbytes();e.length!==o&&m(i,"invalid x length"),a=d(e),i.push(a),t=I(i,t,"y");var s,c=0|n._crypto_core_ristretto255_scalarbytes();t.length!==c&&m(i,"invalid y length"),s=d(t),i.push(s);var u=new p(0|n._crypto_core_ristretto255_scalarbytes()),l=u.address;i.push(l),n._crypto_core_ristretto255_scalar_sub(l,a,s);var A=f(u,r);return y(i),A}function ve(e,t,r){var i=[];h(r),e=I(i,e,"p");var a,o=0|n._crypto_core_ristretto255_bytes();e.length!==o&&m(i,"invalid p length"),a=d(e),i.push(a),t=I(i,t,"q");var s,c=0|n._crypto_core_ristretto255_bytes();t.length!==c&&m(i,"invalid q length"),s=d(t),i.push(s);var u=new p(0|n._crypto_core_ristretto255_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_core_ristretto255_sub(l,a,s))){var A=f(u,r);return y(i),A}v(i,"inputs is invalid element")}function me(e,t,r,i){var a=[];h(i),b(a,e,"hash_length"),("number"!=typeof e||(0|e)!==e||e<0)&&m(a,"hash_length must be an unsigned integer");var o=d(t=I(a,t,"message")),s=t.length;a.push(o);var c=null,u=0;null!=r&&(c=d(r=I(a,r,"key")),u=r.length,a.push(c));var l=new p(e|=0),A=l.address;if(a.push(A),0==(0|n._crypto_generichash(A,e,o,s,0,c,u))){var g=f(l,i);return y(a),g}v(a,"invalid usage")}function be(e,t,r,i,a){var o=[];h(a),b(o,e,"subkey_len"),("number"!=typeof e||(0|e)!==e||e<0)&&m(o,"subkey_len must be an unsigned integer");var s=null,c=0;null!=t&&(s=d(t=I(o,t,"key")),c=t.length,o.push(s)),r=I(o,r,"id");var u,l=0|n._crypto_generichash_blake2b_saltbytes();r.length!==l&&m(o,"invalid id length"),u=d(r),o.push(u),i=I(o,i,"ctx");var A,g=0|n._crypto_generichash_blake2b_personalbytes();i.length!==g&&m(o,"invalid ctx length"),A=d(i),o.push(A);var w=new p(0|e),C=w.address;if(o.push(C),0==(0|n._crypto_generichash_blake2b_salt_personal(C,e,null,0,0,s,c,u,A))){var B=f(w,a);return y(o),B}v(o,"invalid usage")}function Ie(e,t,r){var i=[];h(r),b(i,e,"state_address"),b(i,t,"hash_length"),("number"!=typeof t||(0|t)!==t||t<0)&&m(i,"hash_length must be an unsigned integer");var a=new p(t|=0),o=a.address;if(i.push(o),0==(0|n._crypto_generichash_final(e,o,t))){var s=(n._free(e),f(a,r));return y(i),s}v(i,"invalid usage")}function we(e,t,r){var i=[];h(r);var a=null,o=0;null!=e&&(a=d(e=I(i,e,"key")),o=e.length,i.push(a)),b(i,t,"hash_length"),("number"!=typeof t||(0|t)!==t||t<0)&&m(i,"hash_length must be an unsigned integer");var s=new p(357).address;if(0==(0|n._crypto_generichash_init(s,a,o,t))){var c=s;return y(i),c}v(i,"invalid usage")}function Ce(e){var t=[];h(e);var r=new p(0|n._crypto_generichash_keybytes()),i=r.address;t.push(i),n._crypto_generichash_keygen(i);var a=f(r,e);return y(t),a}function Be(e,t,r){var i=[];h(r),b(i,e,"state_address");var a=d(t=I(i,t,"message_chunk")),o=t.length;i.push(a),0!=(0|n._crypto_generichash_update(e,a,o))&&v(i,"invalid usage"),y(i)}function Ee(e,t){var r=[];h(t);var i=d(e=I(r,e,"message")),a=e.length;r.push(i);var o=new p(0|n._crypto_hash_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_hash(s,i,a,0))){var c=f(o,t);return y(r),c}v(r,"invalid usage")}function _e(e,t){var r=[];h(t);var i=d(e=I(r,e,"message")),a=e.length;r.push(i);var o=new p(0|n._crypto_hash_sha256_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_hash_sha256(s,i,a,0))){var c=f(o,t);return y(r),c}v(r,"invalid usage")}function ke(e,t){var r=[];h(t);var i=d(e=I(r,e,"message")),a=e.length;r.push(i);var o=new p(0|n._crypto_hash_sha512_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_hash_sha512(s,i,a,0))){var c=f(o,t);return y(r),c}v(r,"invalid usage")}function Qe(e,t,r,a,o){var s=[];h(o),b(s,e,"subkey_len"),("number"!=typeof e||(0|e)!==e||e<0)&&m(s,"subkey_len must be an unsigned integer"),b(s,t,"subkey_id"),("number"!=typeof t||(0|t)!==t||t<0)&&m(s,"subkey_id must be an unsigned integer"),"string"!=typeof r&&m(s,"ctx must be a string");var c=d(r=i(r+"\0"));r.length,s.push(c),a=I(s,a,"key");var u,l=0|n._crypto_kdf_keybytes();a.length!==l&&m(s,"invalid key length"),u=d(a),s.push(u);var A=new p(0|e),g=A.address;s.push(g),n._crypto_kdf_derive_from_key(g,e,t,t>>>24>>>8,c,u);var v=f(A,o);return y(s),v}function Se(e){var t=[];h(e);var r=new p(0|n._crypto_kdf_keybytes()),i=r.address;t.push(i),n._crypto_kdf_keygen(i);var a=f(r,e);return y(t),a}function xe(e,t,r,i){var a=[];h(i),e=I(a,e,"clientPublicKey");var o,s=0|n._crypto_kx_publickeybytes();e.length!==s&&m(a,"invalid clientPublicKey length"),o=d(e),a.push(o),t=I(a,t,"clientSecretKey");var c,u=0|n._crypto_kx_secretkeybytes();t.length!==u&&m(a,"invalid clientSecretKey length"),c=d(t),a.push(c),r=I(a,r,"serverPublicKey");var l,A=0|n._crypto_kx_publickeybytes();r.length!==A&&m(a,"invalid serverPublicKey length"),l=d(r),a.push(l);var g=new p(0|n._crypto_kx_sessionkeybytes()),b=g.address;a.push(b);var w=new p(0|n._crypto_kx_sessionkeybytes()),C=w.address;if(a.push(C),0==(0|n._crypto_kx_client_session_keys(b,C,o,c,l))){var B=f({sharedRx:g,sharedTx:w},i);return y(a),B}v(a,"invalid usage")}function De(e){var t=[];h(e);var r=new p(0|n._crypto_kx_publickeybytes()),i=r.address;t.push(i);var a=new p(0|n._crypto_kx_secretkeybytes()),o=a.address;if(t.push(o),0==(0|n._crypto_kx_keypair(i,o))){var s={publicKey:f(r,e),privateKey:f(a,e),keyType:"x25519"};return y(t),s}v(t,"internal error")}function Pe(e,t){var r=[];h(t),e=I(r,e,"seed");var i,a=0|n._crypto_kx_seedbytes();e.length!==a&&m(r,"invalid seed length"),i=d(e),r.push(i);var o=new p(0|n._crypto_kx_publickeybytes()),s=o.address;r.push(s);var c=new p(0|n._crypto_kx_secretkeybytes()),u=c.address;if(r.push(u),0==(0|n._crypto_kx_seed_keypair(s,u,i))){var l={publicKey:f(o,t),privateKey:f(c,t),keyType:"x25519"};return y(r),l}v(r,"internal error")}function Me(e,t,r,i){var a=[];h(i),e=I(a,e,"serverPublicKey");var o,s=0|n._crypto_kx_publickeybytes();e.length!==s&&m(a,"invalid serverPublicKey length"),o=d(e),a.push(o),t=I(a,t,"serverSecretKey");var c,u=0|n._crypto_kx_secretkeybytes();t.length!==u&&m(a,"invalid serverSecretKey length"),c=d(t),a.push(c),r=I(a,r,"clientPublicKey");var l,A=0|n._crypto_kx_publickeybytes();r.length!==A&&m(a,"invalid clientPublicKey length"),l=d(r),a.push(l);var g=new p(0|n._crypto_kx_sessionkeybytes()),b=g.address;a.push(b);var w=new p(0|n._crypto_kx_sessionkeybytes()),C=w.address;if(a.push(C),0==(0|n._crypto_kx_server_session_keys(b,C,o,c,l))){var B=f({sharedRx:g,sharedTx:w},i);return y(a),B}v(a,"invalid usage")}function Fe(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"key");var s,c=0|n._crypto_onetimeauth_keybytes();t.length!==c&&m(i,"invalid key length"),s=d(t),i.push(s);var u=new p(0|n._crypto_onetimeauth_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_onetimeauth(l,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function Oe(e,t){var r=[];h(t),b(r,e,"state_address");var i=new p(0|n._crypto_onetimeauth_bytes()),a=i.address;if(r.push(a),0==(0|n._crypto_onetimeauth_final(e,a))){var o=(n._free(e),f(i,t));return y(r),o}v(r,"invalid usage")}function Re(e,t){var r=[];h(t);var i=null;null!=e&&(i=d(e=I(r,e,"key")),e.length,r.push(i));var a=new p(144).address;if(0==(0|n._crypto_onetimeauth_init(a,i))){var o=a;return y(r),o}v(r,"invalid usage")}function Te(e){var t=[];h(e);var r=new p(0|n._crypto_onetimeauth_keybytes()),i=r.address;t.push(i),n._crypto_onetimeauth_keygen(i);var a=f(r,e);return y(t),a}function He(e,t,r){var i=[];h(r),b(i,e,"state_address");var a=d(t=I(i,t,"message_chunk")),o=t.length;i.push(a),0!=(0|n._crypto_onetimeauth_update(e,a,o))&&v(i,"invalid usage"),y(i)}function je(e,t,r){var i=[];e=I(i,e,"hash");var a,o=0|n._crypto_onetimeauth_bytes();e.length!==o&&m(i,"invalid hash length"),a=d(e),i.push(a);var s=d(t=I(i,t,"message")),c=t.length;i.push(s),r=I(i,r,"key");var u,l=0|n._crypto_onetimeauth_keybytes();r.length!==l&&m(i,"invalid key length"),u=d(r),i.push(u);var f=0==(0|n._crypto_onetimeauth_verify(a,s,c,0,u));return y(i),f}function Ne(e,t,r,i,a,o,s){var c=[];h(s),b(c,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&m(c,"keyLength must be an unsigned integer");var u=d(t=I(c,t,"password")),l=t.length;c.push(u),r=I(c,r,"salt");var A,g=0|n._crypto_pwhash_saltbytes();r.length!==g&&m(c,"invalid salt length"),A=d(r),c.push(A),b(c,i,"opsLimit"),("number"!=typeof i||(0|i)!==i||i<0)&&m(c,"opsLimit must be an unsigned integer"),b(c,a,"memLimit"),("number"!=typeof a||(0|a)!==a||a<0)&&m(c,"memLimit must be an unsigned integer"),b(c,o,"algorithm"),("number"!=typeof o||(0|o)!==o||o<0)&&m(c,"algorithm must be an unsigned integer");var w=new p(0|e),C=w.address;if(c.push(C),0==(0|n._crypto_pwhash(C,e,0,u,l,0,A,i,0,a,o))){var B=f(w,s);return y(c),B}v(c,"invalid usage")}function Ue(e,t,r,i,a,o){var s=[];h(o),b(s,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&m(s,"keyLength must be an unsigned integer");var c=d(t=I(s,t,"password")),u=t.length;s.push(c),r=I(s,r,"salt");var l,A=0|n._crypto_pwhash_scryptsalsa208sha256_saltbytes();r.length!==A&&m(s,"invalid salt length"),l=d(r),s.push(l),b(s,i,"opsLimit"),("number"!=typeof i||(0|i)!==i||i<0)&&m(s,"opsLimit must be an unsigned integer"),b(s,a,"memLimit"),("number"!=typeof a||(0|a)!==a||a<0)&&m(s,"memLimit must be an unsigned integer");var g=new p(0|e),w=g.address;if(s.push(w),0==(0|n._crypto_pwhash_scryptsalsa208sha256(w,e,0,c,u,0,l,i,0,a))){var C=f(g,o);return y(s),C}v(s,"invalid usage")}function Le(e,t,r,i,a,o,s){var c=[];h(s);var u=d(e=I(c,e,"password")),l=e.length;c.push(u);var A=d(t=I(c,t,"salt")),g=t.length;c.push(A),b(c,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&m(c,"opsLimit must be an unsigned integer"),b(c,i,"r"),("number"!=typeof i||(0|i)!==i||i<0)&&m(c,"r must be an unsigned integer"),b(c,a,"p"),("number"!=typeof a||(0|a)!==a||a<0)&&m(c,"p must be an unsigned integer"),b(c,o,"keyLength"),("number"!=typeof o||(0|o)!==o||o<0)&&m(c,"keyLength must be an unsigned integer");var w=new p(0|o),C=w.address;if(c.push(C),0==(0|n._crypto_pwhash_scryptsalsa208sha256_ll(u,l,A,g,r,0,i,a,C,o))){var B=f(w,s);return y(c),B}v(c,"invalid usage")}function Ke(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"password")),s=e.length;a.push(o),b(a,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&m(a,"opsLimit must be an unsigned integer"),b(a,r,"memLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&m(a,"memLimit must be an unsigned integer");var c=new p(0|n._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(a.push(c),0==(0|n._crypto_pwhash_scryptsalsa208sha256_str(c,o,s,0,t,0,r))){var u=n.UTF8ToString(c);return y(a),u}v(a,"invalid usage")}function Ge(e,t,r){var a=[];h(r),"string"!=typeof e&&m(a,"hashed_password must be a string");var o=d(e=i(e+"\0"));e.length,a.push(o);var s=d(t=I(a,t,"password")),c=t.length;a.push(s);var u=0==(0|n._crypto_pwhash_scryptsalsa208sha256_str_verify(o,s,c,0));return y(a),u}function $e(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"password")),s=e.length;a.push(o),b(a,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&m(a,"opsLimit must be an unsigned integer"),b(a,r,"memLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&m(a,"memLimit must be an unsigned integer");var c=new p(0|n._crypto_pwhash_strbytes()).address;if(a.push(c),0==(0|n._crypto_pwhash_str(c,o,s,0,t,0,r))){var u=n.UTF8ToString(c);return y(a),u}v(a,"invalid usage")}function Ye(e,t,r){var a=[];h(r),"string"!=typeof e&&m(a,"hashed_password must be a string");var o=d(e=i(e+"\0"));e.length,a.push(o);var s=d(t=I(a,t,"password")),c=t.length;a.push(s);var u=0==(0|n._crypto_pwhash_str_verify(o,s,c,0));return y(a),u}function Je(e,t,r){var i=[];h(r),e=I(i,e,"privateKey");var a,o=0|n._crypto_scalarmult_scalarbytes();e.length!==o&&m(i,"invalid privateKey length"),a=d(e),i.push(a),t=I(i,t,"publicKey");var s,c=0|n._crypto_scalarmult_scalarbytes();t.length!==c&&m(i,"invalid publicKey length"),s=d(t),i.push(s);var u=new p(0|n._crypto_scalarmult_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_scalarmult(l,a,s))){var A=f(u,r);return y(i),A}v(i,"weak public key")}function Ve(e,t){var r=[];h(t),e=I(r,e,"privateKey");var i,a=0|n._crypto_scalarmult_scalarbytes();e.length!==a&&m(r,"invalid privateKey length"),i=d(e),r.push(i);var o=new p(0|n._crypto_scalarmult_scalarbytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_base(s,i))){var c=f(o,t);return y(r),c}v(r,"insecure scalar")}function ze(e,t,r){var i=[];h(r),e=I(i,e,"scalar");var a,o=0|n._crypto_scalarmult_ristretto255_scalarbytes();e.length!==o&&m(i,"invalid scalar length"),a=d(e),i.push(a),t=I(i,t,"privateKey");var s,c=0|n._crypto_scalarmult_ristretto255_bytes();t.length!==c&&m(i,"invalid privateKey length"),s=d(t),i.push(s);var u=new p(0|n._crypto_scalarmult_ristretto255_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_scalarmult_ristretto255(l,a,s))){var A=f(u,r);return y(i),A}v(i,"input is zero element")}function qe(e,t){var r=[];h(t);var i=d(e=I(r,e,"scalar"));e.length,r.push(i);var a=new p(0|n._crypto_core_ristretto255_bytes()),o=a.address;if(r.push(o),0==(0|n._crypto_scalarmult_ristretto255_base(o,i))){var s=f(a,t);return y(r),s}v(r,"scalar is 0")}function We(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"message")),s=e.length;a.push(o),t=I(a,t,"nonce");var c,u=0|n._crypto_secretbox_noncebytes();t.length!==u&&m(a,"invalid nonce length"),c=d(t),a.push(c),r=I(a,r,"key");var l,A=0|n._crypto_secretbox_keybytes();r.length!==A&&m(a,"invalid key length"),l=d(r),a.push(l);var g=new p(0|s),b=g.address;a.push(b);var w=new p(0|n._crypto_secretbox_macbytes()),C=w.address;if(a.push(C),0==(0|n._crypto_secretbox_detached(b,C,o,s,0,c,l))){var B=f({mac:w,cipher:g},i);return y(a),B}v(a,"invalid usage")}function Xe(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"message")),s=e.length;a.push(o),t=I(a,t,"nonce");var c,u=0|n._crypto_secretbox_noncebytes();t.length!==u&&m(a,"invalid nonce length"),c=d(t),a.push(c),r=I(a,r,"key");var l,A=0|n._crypto_secretbox_keybytes();r.length!==A&&m(a,"invalid key length"),l=d(r),a.push(l);var g=new p(s+n._crypto_secretbox_macbytes()|0),b=g.address;if(a.push(b),0==(0|n._crypto_secretbox_easy(b,o,s,0,c,l))){var w=f(g,i);return y(a),w}v(a,"invalid usage")}function Ze(e){var t=[];h(e);var r=new p(0|n._crypto_secretbox_keybytes()),i=r.address;t.push(i),n._crypto_secretbox_keygen(i);var a=f(r,e);return y(t),a}function et(e,t,r,i,a){var o=[];h(a);var s=d(e=I(o,e,"ciphertext")),c=e.length;o.push(s),t=I(o,t,"mac");var u,l=0|n._crypto_secretbox_macbytes();t.length!==l&&m(o,"invalid mac length"),u=d(t),o.push(u),r=I(o,r,"nonce");var A,g=0|n._crypto_secretbox_noncebytes();r.length!==g&&m(o,"invalid nonce length"),A=d(r),o.push(A),i=I(o,i,"key");var b,w=0|n._crypto_secretbox_keybytes();i.length!==w&&m(o,"invalid key length"),b=d(i),o.push(b);var C=new p(0|c),B=C.address;if(o.push(B),0==(0|n._crypto_secretbox_open_detached(B,s,u,c,0,A,b))){var E=f(C,a);return y(o),E}v(o,"wrong secret key for the given ciphertext")}function tt(e,t,r,i){var a=[];h(i),e=I(a,e,"ciphertext");var o,s=n._crypto_secretbox_macbytes(),c=e.length;c<s&&m(a,"ciphertext is too short"),o=d(e),a.push(o),t=I(a,t,"nonce");var u,l=0|n._crypto_secretbox_noncebytes();t.length!==l&&m(a,"invalid nonce length"),u=d(t),a.push(u),r=I(a,r,"key");var A,g=0|n._crypto_secretbox_keybytes();r.length!==g&&m(a,"invalid key length"),A=d(r),a.push(A);var b=new p(c-n._crypto_secretbox_macbytes()|0),w=b.address;if(a.push(w),0==(0|n._crypto_secretbox_open_easy(w,o,c,0,u,A))){var C=f(b,i);return y(a),C}v(a,"wrong secret key for the given ciphertext")}function nt(e,t,r){var i=[];h(r),e=I(i,e,"header");var a,o=0|n._crypto_secretstream_xchacha20poly1305_headerbytes();e.length!==o&&m(i,"invalid header length"),a=d(e),i.push(a),t=I(i,t,"key");var s,c=0|n._crypto_secretstream_xchacha20poly1305_keybytes();t.length!==c&&m(i,"invalid key length"),s=d(t),i.push(s);var u=new p(52).address;if(0==(0|n._crypto_secretstream_xchacha20poly1305_init_pull(u,a,s))){var l=u;return y(i),l}v(i,"invalid usage")}function rt(e,t){var r=[];h(t),e=I(r,e,"key");var i,a=0|n._crypto_secretstream_xchacha20poly1305_keybytes();e.length!==a&&m(r,"invalid key length"),i=d(e),r.push(i);var o=new p(52).address,s=new p(0|n._crypto_secretstream_xchacha20poly1305_headerbytes()),c=s.address;if(r.push(c),0==(0|n._crypto_secretstream_xchacha20poly1305_init_push(o,c,i))){var u={state:o,header:f(s,t)};return y(r),u}v(r,"invalid usage")}function it(e){var t=[];h(e);var r=new p(0|n._crypto_secretstream_xchacha20poly1305_keybytes()),i=r.address;t.push(i),n._crypto_secretstream_xchacha20poly1305_keygen(i);var a=f(r,e);return y(t),a}function at(e,t,r,i){var a=[];h(i),b(a,e,"state_address"),t=I(a,t,"cipher");var o,s=n._crypto_secretstream_xchacha20poly1305_abytes(),c=t.length;c<s&&m(a,"cipher is too short"),o=d(t),a.push(o);var u=null,l=0;null!=r&&(u=d(r=I(a,r,"ad")),l=r.length,a.push(u));var A=new p(c-n._crypto_secretstream_xchacha20poly1305_abytes()|0),v=A.address;a.push(v);var w,C=(w=g(1),a.push(w),(C=0===n._crypto_secretstream_xchacha20poly1305_pull(e,v,0,w,o,c,0,u,l)&&{tag:n.HEAPU8[w],message:A})&&{message:f(C.message,i),tag:C.tag});return y(a),C}function ot(e,t,r,i,a){var o=[];h(a),b(o,e,"state_address");var s=d(t=I(o,t,"message_chunk")),c=t.length;o.push(s);var u=null,l=0;null!=r&&(u=d(r=I(o,r,"ad")),l=r.length,o.push(u)),b(o,i,"tag"),("number"!=typeof i||(0|i)!==i||i<0)&&m(o,"tag must be an unsigned integer");var A=new p(c+n._crypto_secretstream_xchacha20poly1305_abytes()|0),g=A.address;if(o.push(g),0==(0|n._crypto_secretstream_xchacha20poly1305_push(e,g,0,s,c,0,u,l,0,i))){var w=f(A,a);return y(o),w}v(o,"invalid usage")}function st(e,t){var r=[];return h(t),b(r,e,"state_address"),n._crypto_secretstream_xchacha20poly1305_rekey(e),y(r),!0}function ct(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"key");var s,c=0|n._crypto_shorthash_keybytes();t.length!==c&&m(i,"invalid key length"),s=d(t),i.push(s);var u=new p(0|n._crypto_shorthash_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_shorthash(l,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function ut(e){var t=[];h(e);var r=new p(0|n._crypto_shorthash_keybytes()),i=r.address;t.push(i),n._crypto_shorthash_keygen(i);var a=f(r,e);return y(t),a}function lt(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"key");var s,c=0|n._crypto_shorthash_siphashx24_keybytes();t.length!==c&&m(i,"invalid key length"),s=d(t),i.push(s);var u=new p(0|n._crypto_shorthash_siphashx24_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_shorthash_siphashx24(l,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function ft(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"privateKey");var s,c=0|n._crypto_sign_secretkeybytes();t.length!==c&&m(i,"invalid privateKey length"),s=d(t),i.push(s);var u=new p(e.length+n._crypto_sign_bytes()|0),l=u.address;if(i.push(l),0==(0|n._crypto_sign(l,null,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function At(e,t,r){var i=[];h(r);var a=d(e=I(i,e,"message")),o=e.length;i.push(a),t=I(i,t,"privateKey");var s,c=0|n._crypto_sign_secretkeybytes();t.length!==c&&m(i,"invalid privateKey length"),s=d(t),i.push(s);var u=new p(0|n._crypto_sign_bytes()),l=u.address;if(i.push(l),0==(0|n._crypto_sign_detached(l,null,a,o,0,s))){var A=f(u,r);return y(i),A}v(i,"invalid usage")}function ht(e,t){var r=[];h(t),e=I(r,e,"edPk");var i,a=0|n._crypto_sign_publickeybytes();e.length!==a&&m(r,"invalid edPk length"),i=d(e),r.push(i);var o=new p(0|n._crypto_scalarmult_scalarbytes()),s=o.address;if(r.push(s),0==(0|n._crypto_sign_ed25519_pk_to_curve25519(s,i))){var c=f(o,t);return y(r),c}v(r,"invalid key")}function pt(e,t){var r=[];h(t),e=I(r,e,"edSk");var i,a=0|n._crypto_sign_secretkeybytes();e.length!==a&&m(r,"invalid edSk length"),i=d(e),r.push(i);var o=new p(0|n._crypto_scalarmult_scalarbytes()),s=o.address;if(r.push(s),0==(0|n._crypto_sign_ed25519_sk_to_curve25519(s,i))){var c=f(o,t);return y(r),c}v(r,"invalid key")}function dt(e,t){var r=[];h(t),e=I(r,e,"privateKey");var i,a=0|n._crypto_sign_secretkeybytes();e.length!==a&&m(r,"invalid privateKey length"),i=d(e),r.push(i);var o=new p(0|n._crypto_sign_publickeybytes()),s=o.address;if(r.push(s),0==(0|n._crypto_sign_ed25519_sk_to_pk(s,i))){var c=f(o,t);return y(r),c}v(r,"invalid key")}function gt(e,t){var r=[];h(t),e=I(r,e,"privateKey");var i,a=0|n._crypto_sign_secretkeybytes();e.length!==a&&m(r,"invalid privateKey length"),i=d(e),r.push(i);var o=new p(0|n._crypto_sign_seedbytes()),s=o.address;if(r.push(s),0==(0|n._crypto_sign_ed25519_sk_to_seed(s,i))){var c=f(o,t);return y(r),c}v(r,"invalid key")}function yt(e,t,r){var i=[];h(r),b(i,e,"state_address"),t=I(i,t,"privateKey");var a,o=0|n._crypto_sign_secretkeybytes();t.length!==o&&m(i,"invalid privateKey length"),a=d(t),i.push(a);var s=new p(0|n._crypto_sign_bytes()),c=s.address;if(i.push(c),0==(0|n._crypto_sign_final_create(e,c,null,a))){var u=(n._free(e),f(s,r));return y(i),u}v(i,"invalid usage")}function vt(e,t,r,i){var a=[];h(i),b(a,e,"state_address"),t=I(a,t,"signature");var o,s=0|n._crypto_sign_bytes();t.length!==s&&m(a,"invalid signature length"),o=d(t),a.push(o),r=I(a,r,"publicKey");var c,u=0|n._crypto_sign_publickeybytes();r.length!==u&&m(a,"invalid publicKey length"),c=d(r),a.push(c);var l=0==(0|n._crypto_sign_final_verify(e,o,c));return y(a),l}function mt(e){var t=[];h(e);var r=new p(208).address;if(0==(0|n._crypto_sign_init(r))){var i=r;return y(t),i}v(t,"internal error")}function bt(e){var t=[];h(e);var r=new p(0|n._crypto_sign_publickeybytes()),i=r.address;t.push(i);var a=new p(0|n._crypto_sign_secretkeybytes()),o=a.address;if(t.push(o),0==(0|n._crypto_sign_keypair(i,o))){var s={publicKey:f(r,e),privateKey:f(a,e),keyType:"ed25519"};return y(t),s}v(t,"internal error")}function It(e,t,r){var i=[];h(r),e=I(i,e,"signedMessage");var a,o=n._crypto_sign_bytes(),s=e.length;s<o&&m(i,"signedMessage is too short"),a=d(e),i.push(a),t=I(i,t,"publicKey");var c,u=0|n._crypto_sign_publickeybytes();t.length!==u&&m(i,"invalid publicKey length"),c=d(t),i.push(c);var l=new p(s-n._crypto_sign_bytes()|0),A=l.address;if(i.push(A),0==(0|n._crypto_sign_open(A,null,a,s,0,c))){var g=f(l,r);return y(i),g}v(i,"incorrect signature for the given public key")}function wt(e,t){var r=[];h(t),e=I(r,e,"seed");var i,a=0|n._crypto_sign_seedbytes();e.length!==a&&m(r,"invalid seed length"),i=d(e),r.push(i);var o=new p(0|n._crypto_sign_publickeybytes()),s=o.address;r.push(s);var c=new p(0|n._crypto_sign_secretkeybytes()),u=c.address;if(r.push(u),0==(0|n._crypto_sign_seed_keypair(s,u,i))){var l={publicKey:f(o,t),privateKey:f(c,t),keyType:"ed25519"};return y(r),l}v(r,"invalid usage")}function Ct(e,t,r){var i=[];h(r),b(i,e,"state_address");var a=d(t=I(i,t,"message_chunk")),o=t.length;i.push(a),0!=(0|n._crypto_sign_update(e,a,o))&&v(i,"invalid usage"),y(i)}function Bt(e,t,r){var i=[];e=I(i,e,"signature");var a,o=0|n._crypto_sign_bytes();e.length!==o&&m(i,"invalid signature length"),a=d(e),i.push(a);var s=d(t=I(i,t,"message")),c=t.length;i.push(s),r=I(i,r,"publicKey");var u,l=0|n._crypto_sign_publickeybytes();r.length!==l&&m(i,"invalid publicKey length"),u=d(r),i.push(u);var f=0==(0|n._crypto_sign_verify_detached(a,s,c,0,u));return y(i),f}function Et(e,t,r,i){var a=[];h(i),b(a,e,"outLength"),("number"!=typeof e||(0|e)!==e||e<0)&&m(a,"outLength must be an unsigned integer"),t=I(a,t,"key");var o,s=0|n._crypto_stream_chacha20_keybytes();t.length!==s&&m(a,"invalid key length"),o=d(t),a.push(o),r=I(a,r,"nonce");var c,u=0|n._crypto_stream_chacha20_noncebytes();r.length!==u&&m(a,"invalid nonce length"),c=d(r),a.push(c);var l=new p(0|e),A=l.address;a.push(A),n._crypto_stream_chacha20(A,e,0,c,o);var g=f(l,i);return y(a),g}function _t(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"input_message")),s=e.length;a.push(o),t=I(a,t,"nonce");var c,u=0|n._crypto_stream_chacha20_ietf_noncebytes();t.length!==u&&m(a,"invalid nonce length"),c=d(t),a.push(c),r=I(a,r,"key");var l,A=0|n._crypto_stream_chacha20_ietf_keybytes();r.length!==A&&m(a,"invalid key length"),l=d(r),a.push(l);var g=new p(0|s),b=g.address;if(a.push(b),0===n._crypto_stream_chacha20_ietf_xor(b,o,s,0,c,l)){var w=f(g,i);return y(a),w}v(a,"invalid usage")}function kt(e,t,r,i,a){var o=[];h(a);var s=d(e=I(o,e,"input_message")),c=e.length;o.push(s),t=I(o,t,"nonce");var u,l=0|n._crypto_stream_chacha20_ietf_noncebytes();t.length!==l&&m(o,"invalid nonce length"),u=d(t),o.push(u),b(o,r,"nonce_increment"),("number"!=typeof r||(0|r)!==r||r<0)&&m(o,"nonce_increment must be an unsigned integer"),i=I(o,i,"key");var A,g=0|n._crypto_stream_chacha20_ietf_keybytes();i.length!==g&&m(o,"invalid key length"),A=d(i),o.push(A);var w=new p(0|c),C=w.address;if(o.push(C),0===n._crypto_stream_chacha20_ietf_xor_ic(C,s,c,0,u,r,0,A)){var B=f(w,a);return y(o),B}v(o,"invalid usage")}function Qt(e){var t=[];h(e);var r=new p(0|n._crypto_stream_chacha20_keybytes()),i=r.address;t.push(i),n._crypto_stream_chacha20_keygen(i);var a=f(r,e);return y(t),a}function St(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"input_message")),s=e.length;a.push(o),t=I(a,t,"nonce");var c,u=0|n._crypto_stream_chacha20_noncebytes();t.length!==u&&m(a,"invalid nonce length"),c=d(t),a.push(c),r=I(a,r,"key");var l,A=0|n._crypto_stream_chacha20_keybytes();r.length!==A&&m(a,"invalid key length"),l=d(r),a.push(l);var g=new p(0|s),b=g.address;if(a.push(b),0===n._crypto_stream_chacha20_xor(b,o,s,0,c,l)){var w=f(g,i);return y(a),w}v(a,"invalid usage")}function xt(e,t,r,i,a){var o=[];h(a);var s=d(e=I(o,e,"input_message")),c=e.length;o.push(s),t=I(o,t,"nonce");var u,l=0|n._crypto_stream_chacha20_noncebytes();t.length!==l&&m(o,"invalid nonce length"),u=d(t),o.push(u),b(o,r,"nonce_increment"),("number"!=typeof r||(0|r)!==r||r<0)&&m(o,"nonce_increment must be an unsigned integer"),i=I(o,i,"key");var A,g=0|n._crypto_stream_chacha20_keybytes();i.length!==g&&m(o,"invalid key length"),A=d(i),o.push(A);var w=new p(0|c),C=w.address;if(o.push(C),0===n._crypto_stream_chacha20_xor_ic(C,s,c,0,u,r,0,A)){var B=f(w,a);return y(o),B}v(o,"invalid usage")}function Dt(e){var t=[];h(e);var r=new p(0|n._crypto_stream_keybytes()),i=r.address;t.push(i),n._crypto_stream_keygen(i);var a=f(r,e);return y(t),a}function Pt(e){var t=[];h(e);var r=new p(0|n._crypto_stream_xchacha20_keybytes()),i=r.address;t.push(i),n._crypto_stream_xchacha20_keygen(i);var a=f(r,e);return y(t),a}function Mt(e,t,r,i){var a=[];h(i);var o=d(e=I(a,e,"input_message")),s=e.length;a.push(o),t=I(a,t,"nonce");var c,u=0|n._crypto_stream_xchacha20_noncebytes();t.length!==u&&m(a,"invalid nonce length"),c=d(t),a.push(c),r=I(a,r,"key");var l,A=0|n._crypto_stream_xchacha20_keybytes();r.length!==A&&m(a,"invalid key length"),l=d(r),a.push(l);var g=new p(0|s),b=g.address;if(a.push(b),0===n._crypto_stream_xchacha20_xor(b,o,s,0,c,l)){var w=f(g,i);return y(a),w}v(a,"invalid usage")}function Ft(e,t,r,i,a){var o=[];h(a);var s=d(e=I(o,e,"input_message")),c=e.length;o.push(s),t=I(o,t,"nonce");var u,l=0|n._crypto_stream_xchacha20_noncebytes();t.length!==l&&m(o,"invalid nonce length"),u=d(t),o.push(u),b(o,r,"nonce_increment"),("number"!=typeof r||(0|r)!==r||r<0)&&m(o,"nonce_increment must be an unsigned integer"),i=I(o,i,"key");var A,g=0|n._crypto_stream_xchacha20_keybytes();i.length!==g&&m(o,"invalid key length"),A=d(i),o.push(A);var w=new p(0|c),C=w.address;if(o.push(C),0===n._crypto_stream_xchacha20_xor_ic(C,s,c,0,u,r,0,A)){var B=f(w,a);return y(o),B}v(o,"invalid usage")}function Ot(e,t){var r=[];h(t),b(r,e,"length"),("number"!=typeof e||(0|e)!==e||e<0)&&m(r,"length must be an unsigned integer");var i=new p(0|e),a=i.address;r.push(a),n._randombytes_buf(a,e);var o=f(i,t);return y(r),o}function Rt(e,t,r){var i=[];h(r),b(i,e,"length"),("number"!=typeof e||(0|e)!==e||e<0)&&m(i,"length must be an unsigned integer"),t=I(i,t,"seed");var a,o=0|n._randombytes_seedbytes();t.length!==o&&m(i,"invalid seed length"),a=d(t),i.push(a);var s=new p(0|e),c=s.address;i.push(c),n._randombytes_buf_deterministic(c,e,a);var u=f(s,r);return y(i),u}function Tt(e){h(e),n._randombytes_close()}function Ht(e){h(e);var t=n._randombytes_random()>>>0;return y([]),t}function jt(e,t){var r=[];h(t);for(var i=n._malloc(24),a=0;a<6;a++)n.setValue(i+4*a,n.Runtime.addFunction(e[["implementation_name","random","stir","uniform","buf","close"][a]]),"i32");0!=(0|n._randombytes_set_implementation(i))&&v(r,"unsupported implementation"),y(r)}function Nt(e){h(e),n._randombytes_stir()}function Ut(e,t){var r=[];h(t),b(r,e,"upper_bound"),("number"!=typeof e||(0|e)!==e||e<0)&&m(r,"upper_bound must be an unsigned integer");var i=n._randombytes_uniform(e)>>>0;return y(r),i}function Lt(){var e=n._sodium_version_string(),t=n.UTF8ToString(e);return y([]),t}return p.prototype.to_Uint8Array=function(){var e=new Uint8Array(this.length);return e.set(n.HEAPU8.subarray(this.address,this.address+this.length)),e},e.add=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can added");var n=e.length,r=0,i=0;if(t.length!=e.length)throw new TypeError("Arguments must have the same length");for(i=0;i<n;i++)r>>=8,r+=e[i]+t[i],e[i]=255&r},e.base64_variants=s,e.compare=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(e.length!==t.length)throw new TypeError("Only instances of identical length can be compared");for(var n=0,r=1,i=e.length;i-- >0;)n|=t[i]-e[i]>>8&r,r&=(t[i]^e[i])-1>>8;return n+n+r-1},e.from_base64=function(e,t){t=u(t);var r,i=[],a=new p(3*(e=I(i,e,"input")).length/4),o=d(e),s=g(4),c=g(4);return i.push(o),i.push(a.address),i.push(a.result_bin_len_p),i.push(a.b64_end_p),0!==n._sodium_base642bin(a.address,a.length,o,e.length,0,s,c,t)&&v(i,"invalid input"),n.getValue(c,"i32")-o!==e.length&&v(i,"incomplete input"),a.length=n.getValue(s,"i32"),r=a.to_Uint8Array(),y(i),r},e.from_hex=function(e){var t,r=[],i=new p((e=I(r,e,"input")).length/2),a=d(e),o=g(4);return r.push(a),r.push(i.address),r.push(i.hex_end_p),0!==n._sodium_hex2bin(i.address,i.length,a,e.length,0,0,o)&&v(r,"invalid input"),n.getValue(o,"i32")-a!==e.length&&v(r,"incomplete input"),t=i.to_Uint8Array(),y(r),t},e.from_string=i,e.increment=function(e){if(!(e instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be incremented");for(var t=256,n=0,r=e.length;n<r;n++)t>>=8,t+=e[n],e[n]=255&t},e.is_zero=function(e){if(!(e instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be checked");for(var t=0,n=0,r=e.length;n<r;n++)t|=e[n];return 0===t},e.libsodium=t,e.memcmp=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(e.length!==t.length)throw new TypeError("Only instances of identical length can be compared");for(var n=0,r=0,i=e.length;r<i;r++)n|=e[r]^t[r];return 0===n},e.memzero=function(e){if(!(e instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be wiped");for(var t=0,n=e.length;t<n;t++)e[t]=0},e.output_formats=function(){return["uint8array","text","hex","base64"]},e.pad=function(e,t){if(!(e instanceof Uint8Array))throw new TypeError("buffer must be a Uint8Array");if((t|=0)<=0)throw new Error("block size must be > 0");var r,i=[],a=g(4),o=1,s=0,c=0|e.length,u=new p(c+t);i.push(a),i.push(u.address);for(var l=u.address,f=u.address+c+t;l<f;l++)n.HEAPU8[l]=e[s],s+=o=1&~((65535&((c-=o)>>>48|c>>>32|c>>>16|c))-1>>16);return 0!==n._sodium_pad(a,u.address,e.length,t,u.length)&&v(i,"internal error"),u.length=n.getValue(a,"i32"),r=u.to_Uint8Array(),y(i),r},e.unpad=function(e,t){if(!(e instanceof Uint8Array))throw new TypeError("buffer must be a Uint8Array");if((t|=0)<=0)throw new Error("block size must be > 0");var r=[],i=d(e),a=g(4);return r.push(i),r.push(a),0!==n._sodium_unpad(a,i,e.length,t)&&v(r,"unsupported/invalid padding"),e=(e=new Uint8Array(e)).subarray(0,n.getValue(a,"i32")),y(r),e},e.ready=r,e.symbols=function(){return Object.keys(e).sort()},e.to_base64=l,e.to_hex=o,e.to_string=a,e})?r.apply(t,i):r)&&(e.exports=a),s&&o.sodium.ready.then((function(){s(o.sodium)}))},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(4),a=n(6),o=n(70);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,c=a.andln(i-1);a.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var a,o,s,c=e.andln(3)+r&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),a=0==(1&c)?0:3!=(s=e.andln(7)+r&7)&&5!==s||2!==u?c:-c,n[0].push(a),o=0==(1&u)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==c?u:-u,n[1].push(o),2*r===a+1&&(r=1-r),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,u=[],l=!1,f=-1;function A(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(A);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(6),i=n(1);function a(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=c(i.toString(16))}return n},t.zero2=s,t.zero8=c,t.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var o=new Array(a/4),s=0,c=t;s<o.length;s++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[s]=u>>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,a,o,s){var c=0,u=t;return c+=(u=u+r>>>0)<t?1:0,c+=(u=u+a>>>0)<a?1:0,e+n+i+o+(c+=(u=u+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,a,o,s,c,u){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+a>>>0)<a?1:0,l+=(f=f+s>>>0)<s?1:0,e+n+i+o+c+(l+=(f=f+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,a,o,s,c,u){return t+r+a+s+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){var r=n(2).Buffer,i=n(27).Transform,a=n(31).StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(1)(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=o},function(e,t,n){"use strict";var r=n(21),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var a=Object.create(n(16));a.inherits=n(1);var o=n(48),s=n(30);a.inherits(f,o);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",A)}function A(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";(function(t,r){var i=n(2).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var o=0;o<e;o+=65536)a.getRandomValues(n.slice(o,o+65536));else a.getRandomValues(n);return"function"==typeof t?r.nextTick((function(){t(null,n)})):n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(8),n(9))},function(e,t,n){var r=n(2).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%i,u=Math.min(a-s,i-c),l=0;l<u;l++)n[c+l]=e[s+l];s+=u,(o+=u)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(26),a=n(32),o=n(33),s=n(11);function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new c(o(e))}},function(e,t,n){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===n(e)&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),a=0;a<r;++a)i[a]=e[a]^n[a];return i}}).call(this,n(3).Buffer)},function(e,t,n){"use strict";var r=n(10),i=n(6);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},function(e,t,n){var r=t;r.bignum=n(4),r.define=n(147).define,r.base=n(20),r.constants=n(76),r.decoders=n(152),r.encoders=n(154)},function(e,t,n){var r=t;r.Reporter=n(149).Reporter,r.DecoderBuffer=n(75).DecoderBuffer,r.EncoderBuffer=n(75).EncoderBuffer,r.Node=n(150)},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,n(9))},function(e,t,n){var r=n(2).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var a,o,s,c,u=n[0],l=n[1],f=n[2],A=n[3],h=e[0]^t[0],p=e[1]^t[1],d=e[2]^t[2],g=e[3]^t[3],y=4,v=1;v<i;v++)a=u[h>>>24]^l[p>>>16&255]^f[d>>>8&255]^A[255&g]^t[y++],o=u[p>>>24]^l[d>>>16&255]^f[g>>>8&255]^A[255&h]^t[y++],s=u[d>>>24]^l[g>>>16&255]^f[h>>>8&255]^A[255&p]^t[y++],c=u[g>>>24]^l[h>>>16&255]^f[p>>>8&255]^A[255&d]^t[y++],h=a,p=o,d=s,g=c;return a=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[d>>>8&255]<<8|r[255&g])^t[y++],o=(r[p>>>24]<<24|r[d>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[y++],s=(r[d>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[y++],c=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&d])^t[y++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[o]=u,r[u]=o;var l=e[o],f=e[l],A=e[f],h=257*e[u]^16843008*u;i[0][o]=h<<24|h>>>8,i[1][o]=h<<16|h>>>16,i[2][o]=h<<8|h>>>24,i[3][o]=h,h=16843009*A^65537*f^257*l^16843008*o,a[0][u]=h<<24|h>>>8,a[1][u]=h<<16|h>>>16,a[2][u]=h<<8|h>>>24,a[3][u]=h,0===o?o=s=1:(o=l^e[e[e[A^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),i[a]=i[a-t]^o}for(var u=[],l=0;l<r;l++){var f=r-l,A=i[f-(l%4?0:4)];u[l]=l<4||f<=4?A:c.INV_SUB_MIX[0][c.SBOX[A>>>24]]^c.INV_SUB_MIX[1][c.SBOX[A>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[A>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&A]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},u.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=u},function(e,t,n){var r=n(2).Buffer,i=n(26);e.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),c=r.alloc(a||0),u=r.alloc(0);o>0||a>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var f=0;if(o>0){var A=s.length-o;f=Math.min(o,u.length),u.copy(s,A,0,f),o-=f}if(f<u.length&&a>0){var h=c.length-a,p=Math.min(a,u.length-f);u.copy(c,h,f,f+p),a-=p}}return u.fill(0),{key:s,iv:c}}},function(e,t,n){"use strict";var r=n(4),i=n(7),a=i.getNAF,o=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var o=[],c=0;c<r.length;c+=n.step){var u=0;for(t=c+n.step-1;t>=c;t--)u=(u<<1)+r[t];o.push(u)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),A=i;A>0;A--){for(c=0;c<o.length;c++)(u=o[c])===A?f=f.mixedAdd(n.points[c]):u===-A&&(f=f.mixedAdd(n.points[c].neg()));l=l.add(f)}return l.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),c=this.jpoint(null,null,null),u=o.length-1;u>=0;u--){for(t=0;u>=0&&0===o[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var l=o[u];s(0!==l),c="affine"===e.type?l>0?c.mixedAdd(i[l-1>>1]):c.mixedAdd(i[-l-1>>1].neg()):l>0?c.add(i[l-1>>1]):c.add(i[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){for(var s=this._wnafT1,c=this._wnafT2,u=this._wnafT3,l=0,f=0;f<r;f++){var A=(E=t[f])._getNAFPoints(e);s[f]=A.wnd,c[f]=A.points}for(f=r-1;f>=1;f-=2){var h=f-1,p=f;if(1===s[h]&&1===s[p]){var d=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(d[1]=t[h].add(t[p]),d[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(d[1]=t[h].toJ().mixedAdd(t[p]),d[2]=t[h].add(t[p].neg())):(d[1]=t[h].toJ().mixedAdd(t[p]),d[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=o(n[h],n[p]);l=Math.max(y[0].length,l),u[h]=new Array(l),u[p]=new Array(l);for(var v=0;v<l;v++){var m=0|y[0][v],b=0|y[1][v];u[h][v]=g[3*(m+1)+(b+1)],u[p][v]=0,c[h]=d}}else u[h]=a(n[h],s[h],this._bitLength),u[p]=a(n[p],s[p],this._bitLength),l=Math.max(u[h].length,l),l=Math.max(u[p].length,l)}var I=this.jpoint(null,null,null),w=this._wnafT4;for(f=l;f>=0;f--){for(var C=0;f>=0;){var B=!0;for(v=0;v<r;v++)w[v]=0|u[v][f],0!==w[v]&&(B=!1);if(!B)break;C++,f--}if(f>=0&&C++,I=I.dblp(C),f<0)break;for(v=0;v<r;v++){var E,_=w[v];0!==_&&(_>0?E=c[v][_-1>>1]:_<0&&(E=c[v][-_-1>>1].neg()),I="affine"===E.type?I.mixedAdd(E):I.add(E))}}for(f=0;f<r;f++)c[f]=null;return i?I:I.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(146),a=n(157),o=n(158),s=n(35),c=n(57),u=n(2).Buffer;function l(e){var t;"object"!==r(e)||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var n,l,f=o(e,t),A=f.tag,h=f.data;switch(A){case"CERTIFICATE":l=i.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=i.PublicKey.decode(h,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=i.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+A);case"ENCRYPTED PRIVATE KEY":h=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=a[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,f=parseInt(i.split("-")[1],10)/8,A=c.pbkdf2Sync(t,n,r,f,"sha1"),h=s.createDecipheriv(i,A,o),p=[];return p.push(h.update(l)),p.push(h.final()),u.concat(p)}(h=i.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(n=(l=i.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:i.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=i.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+A);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=i.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+A)}}e.exports=l,l.signature=i.signature},function(e,t,n){"use strict";var r=n(1),i=n(47),a=n(2).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function u(e,t,n,r,i,a,o){return c(e+(t&n|~t&r)+i+a|0,o)+t|0}function l(e,t,n,r,i,a,o){return c(e+(t&r|n&~r)+i+a|0,o)+t|0}function f(e,t,n,r,i,a,o){return c(e+(t^n^r)+i+a|0,o)+t|0}function A(e,t,n,r,i,a,o){return c(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=u(n,r,i,a,e[0],3614090360,7),a=u(a,n,r,i,e[1],3905402710,12),i=u(i,a,n,r,e[2],606105819,17),r=u(r,i,a,n,e[3],3250441966,22),n=u(n,r,i,a,e[4],4118548399,7),a=u(a,n,r,i,e[5],1200080426,12),i=u(i,a,n,r,e[6],2821735955,17),r=u(r,i,a,n,e[7],4249261313,22),n=u(n,r,i,a,e[8],1770035416,7),a=u(a,n,r,i,e[9],2336552879,12),i=u(i,a,n,r,e[10],4294925233,17),r=u(r,i,a,n,e[11],2304563134,22),n=u(n,r,i,a,e[12],1804603682,7),a=u(a,n,r,i,e[13],4254626195,12),i=u(i,a,n,r,e[14],2792965006,17),n=l(n,r=u(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=l(a,n,r,i,e[6],3225465664,9),i=l(i,a,n,r,e[11],643717713,14),r=l(r,i,a,n,e[0],3921069994,20),n=l(n,r,i,a,e[5],3593408605,5),a=l(a,n,r,i,e[10],38016083,9),i=l(i,a,n,r,e[15],3634488961,14),r=l(r,i,a,n,e[4],3889429448,20),n=l(n,r,i,a,e[9],568446438,5),a=l(a,n,r,i,e[14],3275163606,9),i=l(i,a,n,r,e[3],4107603335,14),r=l(r,i,a,n,e[8],1163531501,20),n=l(n,r,i,a,e[13],2850285829,5),a=l(a,n,r,i,e[2],4243563512,9),i=l(i,a,n,r,e[7],1735328473,14),n=f(n,r=l(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=f(a,n,r,i,e[8],2272392833,11),i=f(i,a,n,r,e[11],1839030562,16),r=f(r,i,a,n,e[14],4259657740,23),n=f(n,r,i,a,e[1],2763975236,4),a=f(a,n,r,i,e[4],1272893353,11),i=f(i,a,n,r,e[7],4139469664,16),r=f(r,i,a,n,e[10],3200236656,23),n=f(n,r,i,a,e[13],681279174,4),a=f(a,n,r,i,e[0],3936430074,11),i=f(i,a,n,r,e[3],3572445317,16),r=f(r,i,a,n,e[6],76029189,23),n=f(n,r,i,a,e[9],3654602809,4),a=f(a,n,r,i,e[12],3873151461,11),i=f(i,a,n,r,e[15],530742520,16),n=A(n,r=f(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=A(a,n,r,i,e[7],1126891415,10),i=A(i,a,n,r,e[14],2878612391,15),r=A(r,i,a,n,e[5],4237533241,21),n=A(n,r,i,a,e[12],1700485571,6),a=A(a,n,r,i,e[3],2399980690,10),i=A(i,a,n,r,e[10],4293915773,15),r=A(r,i,a,n,e[1],2240044497,21),n=A(n,r,i,a,e[8],1873313359,6),a=A(a,n,r,i,e[15],4264355552,10),i=A(i,a,n,r,e[6],2734768916,15),r=A(r,i,a,n,e[13],1309151649,21),n=A(n,r,i,a,e[4],4149444226,6),a=A(a,n,r,i,e[11],3174756917,10),i=A(i,a,n,r,e[2],718787259,15),r=A(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.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 e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){e.exports=i;var r=n(28).EventEmitter;function i(){r.call(this)}n(1)(i,r),i.Readable=n(29),i.Writable=n(95),i.Duplex=n(96),i.Transform=n(97),i.PassThrough=n(98),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i,a="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function f(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function A(e,t,n,r){var i,a,o,s;if(l(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=f(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return f(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var u=c.length,l=y(c,u);for(n=0;n<u;++n)o(l[n],this,t)}return!0},c.prototype.addListener=function(e,t){return A(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return A(this,e,t,!0)},c.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return d(this,e,!0)},c.prototype.rawListeners=function(e){return d(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},c.prototype.listenerCount=g,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){(t=e.exports=n(48)).Stream=t,t.Readable=t,t.Writable=n(30),t.Duplex=n(12),t.Transform=n(51),t.PassThrough=n(94)},function(e,t,n){"use strict";(function(t,r,i){var a=n(21);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:a.nextTick;v.WritableState=y;var u=Object.create(n(16));u.inherits=n(1);var l,f={deprecate:n(93)},A=n(49),h=n(2).Buffer,p=i.Uint8Array||function(){},d=n(50);function g(){}function y(e,t){s=s||n(12),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(B,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),B(e,t))}(e,n,r,t,i);else{var o=w(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||I(e,n),r?c(b,e,n,o,i):b(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function v(e){if(s=s||n(12),!(l.call(v,this)||this instanceof s))return new v(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),A.call(this)}function m(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function b(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),B(e,t)}function I(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,m(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(m(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),B(e,t)}))}function B(e,t){var n=w(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(v,A),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===v&&e&&e._writableState instanceof y}})):l=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,h.isBuffer(r)||r instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,s,r,i,a);return c}(this,i,s,e,t,n)),o},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||I(this,e))},v.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,B(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=d.destroy,v.prototype._undestroy=d.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(9),n(91).setImmediate,n(8))},function(e,t,n){"use strict";var r=n(2).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=A,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function A(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=o(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(3).Buffer,i=n(1),a=n(47),o=new Array(16),s=[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],c=[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],u=[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],l=[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],f=[0,1518500249,1859775393,2400959708,2840853838],A=[1352829926,1548603684,1836072691,2053994217,0];function h(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function d(e,t,n,r,i,a,o,s){return p(e+(t^n^r)+a+o|0,s)+i|0}function g(e,t,n,r,i,a,o,s){return p(e+(t&n|~t&r)+a+o|0,s)+i|0}function y(e,t,n,r,i,a,o,s){return p(e+((t|~n)^r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return p(e+(t&r|n&~r)+a+o|0,s)+i|0}function m(e,t,n,r,i,a,o,s){return p(e+(t^(n|~r))+a+o|0,s)+i|0}i(h,a),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,h=0|this._e,b=0|this._a,I=0|this._b,w=0|this._c,C=0|this._d,B=0|this._e,E=0;E<80;E+=1){var _,k;E<16?(_=d(n,r,i,a,h,e[s[E]],f[0],u[E]),k=m(b,I,w,C,B,e[c[E]],A[0],l[E])):E<32?(_=g(n,r,i,a,h,e[s[E]],f[1],u[E]),k=v(b,I,w,C,B,e[c[E]],A[1],l[E])):E<48?(_=y(n,r,i,a,h,e[s[E]],f[2],u[E]),k=y(b,I,w,C,B,e[c[E]],A[2],l[E])):E<64?(_=v(n,r,i,a,h,e[s[E]],f[3],u[E]),k=g(b,I,w,C,B,e[c[E]],A[3],l[E])):(_=m(n,r,i,a,h,e[s[E]],f[4],u[E]),k=d(b,I,w,C,B,e[c[E]],A[4],l[E])),n=h,h=a,a=p(i,10),i=r,r=_,b=B,B=C,C=p(w,10),w=I,I=k}var Q=this._b+i+C|0;this._b=this._c+a+B|0,this._c=this._d+h+b|0,this._d=this._e+n+I|0,this._e=this._a+r+w|0,this._a=Q},h.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 e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(99),t.sha1=n(100),t.sha224=n(101),t.sha256=n(52),t.sha384=n(102),t.sha512=n(53)},function(e,t,n){"use strict";var r=n(6);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,n){var r=n(111),i=n(119),a=n(65);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(a)}},function(e,t,n){var r={ECB:n(112),CBC:n(113),CFB:n(114),CFB8:n(115),CFB1:n(116),OFB:n(117),CTR:n(63),GCM:n(63)},i=n(65);for(var a in i)i[a].module=r[i[a].mode];e.exports=i},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i;function a(e){this.rand=e}if(e.exports=function(e){return i||(i=new a(null)),i.generate(e)},e.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":r(self)))self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":r(window))&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(123);if("function"!=typeof o.randomBytes)throw new Error("Not supported");a.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,n){(function(t){var r=n(4),i=n(13);function a(e,n){var i=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),a=n.modulus.byteLength(),s=(r.mont(n.modulus),new r(e).mul(i.blinder).umod(n.modulus)),c=s.toRed(r.mont(n.prime1)),u=s.toRed(r.mont(n.prime2)),l=n.coefficient,f=n.prime1,A=n.prime2,h=c.redPow(n.exponent1),p=u.redPow(n.exponent2);h=h.fromRed(),p=p.fromRed();var d=h.isub(p).imul(l).umod(f);return d.imul(A),p.iadd(d),new t(p.imul(i.unblinder).umod(n.modulus).toArray(!1,a))}function o(e){for(var t=e.modulus.byteLength(),n=new r(i(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(i(t));return n}e.exports=a,a.getr=o}).call(this,n(3).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(128).version,r.utils=n(7),r.rand=n(37),r.curve=n(71),r.curves=n(40),r.ec=n(139),r.eddsa=n(143)},function(e,t,n){"use strict";var r,i=t,a=n(41),o=n(71),s=n(7).assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(138)}catch(e){r=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(10),r.common=n(18),r.sha=n(132),r.ripemd=n(136),r.hmac=n(137),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c<o;c++)if(i[c]!==a[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(9))},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(13),t.createHash=t.Hash=n(15),t.createHmac=t.Hmac=n(54);var r=n(104),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var o=n(57);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(106);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=n(121);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(126);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(160);var l=n(161);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var f=n(164);t.randomFill=f.randomFill,t.randomFillSync=f.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.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(e,t,n){"use strict";var r=n(2).Buffer,i=n(27).Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(1)(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},function(e,t,n){"use strict";(function(t,r){var i=n(21);e.exports=m;var a,o=n(43);m.ReadableState=v,n(28).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(49),u=n(2).Buffer,l=t.Uint8Array||function(){},f=Object.create(n(16));f.inherits=n(1);var A=n(88),h=void 0;h=A&&A.debuglog?A.debuglog("stream"):function(){};var p,d=n(89),g=n(50);f.inherits(m,c);var y=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var r=t instanceof(a=a||n(12));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(31).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function m(e){if(a=a||n(12),!(this instanceof m))return new m(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function b(e,t,n,r,i){var a,o=e._readableState;return null===t?(o.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}}(e,o)):(i||(a=function(e,t){var n,r;return r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):I(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?I(e,o,t,!1):E(e,o)):I(e,o,t,!1))):r||(o.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function I(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),E(e,t)}function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(B,e):B(e))}function B(e){h("emit readable"),e.emit("readable"),S(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(_,e,t))}function _(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function k(e){h("readable nexttick read 0"),e.read(0)}function Q(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),S(e),t.flowing&&!t.reading&&e.read(0)}function S(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0==(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0==(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function D(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=g.destroy,m.prototype._undestroy=g.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),b(this,e,t,!1,n)},m.prototype.unshift=function(e){return b(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(e){return p||(p=n(31).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this},m.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):C(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&D(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=w(n,t))),null===(r=e>0?x(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&D(this)),null!==r&&this.emit("data",r),r},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var c=t&&!1===t.end||e===r.stdout||e===r.stderr?v:u;function u(){h("onend"),e.end()}a.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",(function t(r,i){h("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",p),f=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,S(e))}}(n);e.on("drain",l);var f=!1,A=!1;function p(t){h("ondata"),A=!1,!1!==e.write(t)||A||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==M(a.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,A=!0),n.pause())}function d(t){h("onerror",t),v(),e.removeListener("error",d),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),v()}function y(){h("onfinish"),e.removeListener("close",g),v()}function v(){h("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",g),e.once("finish",y),e.emit("pipe",n),a.flowing||(h("pipe resume"),n.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=M(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},m.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):i.nextTick(k,this))}return n},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(Q,e,t))}(this,e)),this},m.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<y.length;a++)e.on(y[a],this.emit.bind(this,y[a]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=x}).call(this,n(8),n(9))},function(e,t,n){e.exports=n(28).EventEmitter},function(e,t,n){"use strict";var r=n(21);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=o;var r=n(12),i=Object.create(n(16));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(1),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){var r=n(1),i=n(14),a=n(2).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function A(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,d=0|this._g,g=0|this._h,y=0;y<16;++y)n[y]=e.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((t=n[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[y-7]+h(n[y-15])+n[y-16];for(var v=0;v<64;++v){var m=g+A(c)+u(c,p,d)+o[v]+n[v]|0,b=f(r)+l(r,i,a)|0;g=d,d=p,p=c,c=s+m|0,s=a,a=i,i=r,r=m+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=d+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,n){var r=n(1),i=n(14),a=n(2).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function A(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,v=0|this._gh,m=0|this._hh,b=0|this._al,I=0|this._bl,w=0|this._cl,C=0|this._dl,B=0|this._el,E=0|this._fl,_=0|this._gl,k=0|this._hl,Q=0;Q<32;Q+=2)t[Q]=e.readInt32BE(4*Q),t[Q+1]=e.readInt32BE(4*Q+4);for(;Q<160;Q+=2){var S=t[Q-30],x=t[Q-30+1],D=h(S,x),P=p(x,S),M=d(S=t[Q-4],x=t[Q-4+1]),F=g(x,S),O=t[Q-14],R=t[Q-14+1],T=t[Q-32],H=t[Q-32+1],j=P+R|0,N=D+O+y(j,P)|0;N=(N=N+M+y(j=j+F|0,F)|0)+T+y(j=j+H|0,H)|0,t[Q]=N,t[Q+1]=j}for(var U=0;U<160;U+=2){N=t[U],j=t[U+1];var L=l(n,r,i),K=l(b,I,w),G=f(n,b),$=f(b,n),Y=A(s,B),J=A(B,s),V=o[U],z=o[U+1],q=u(s,c,v),W=u(B,E,_),X=k+J|0,Z=m+Y+y(X,k)|0;Z=(Z=(Z=Z+q+y(X=X+W|0,W)|0)+V+y(X=X+z|0,z)|0)+N+y(X=X+j|0,j)|0;var ee=$+K|0,te=G+L+y(ee,$)|0;m=v,k=_,v=c,_=E,c=s,E=B,s=a+Z+y(B=C+X|0,C)|0,a=i,C=w,i=r,w=I,r=n,I=b,n=Z+te+y(b=X+ee|0,X)|0}this._al=this._al+b|0,this._bl=this._bl+I|0,this._cl=this._cl+w|0,this._dl=this._dl+C|0,this._el=this._el+B|0,this._fl=this._fl+E|0,this._gl=this._gl+_|0,this._hl=this._hl+k|0,this._ah=this._ah+n+y(this._al,b)|0,this._bh=this._bh+r+y(this._bl,I)|0,this._ch=this._ch+i+y(this._cl,w)|0,this._dh=this._dh+a+y(this._dl,C)|0,this._eh=this._eh+s+y(this._el,B)|0,this._fh=this._fh+c+y(this._fl,E)|0,this._gh=this._gh+v+y(this._gl,_)|0,this._hh=this._hh+m+y(this._hl,k)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,n){"use strict";var r=n(1),i=n(103),a=n(11),o=n(2).Buffer,s=n(55),c=n(32),u=n(33),l=o.alloc(128);function f(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new c:u(e)).update(t).digest():t.length<n&&(t=o.concat([t,l],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new c:u(e),this._hash.update(r)}r(f,a),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:u(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(s,t):new f(e,t)}},function(e,t,n){var r=n(26);e.exports=function(e){return(new r).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,n){t.pbkdf2=n(105),t.pbkdf2Sync=n(60)},function(e,t,n){(function(t){var n=Math.pow(2,30)-1;function r(e,n){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(n+" must be a buffer or string")}e.exports=function(e,t,i,a){if(r(e,"Password"),r(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>n||a!=a)throw new TypeError("Bad key length")}}).call(this,n(3).Buffer)},function(e,t,n){(function(t){var n;n=t.browser||parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary",e.exports=n}).call(this,n(9))},function(e,t,n){var r=n(55),i=n(32),a=n(33),o=n(58),s=n(59),c=n(2).Buffer,u=c.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,n){var o=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:function(t){return a(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=o(t):t.length<s&&(t=c.concat([t,u],s));for(var f=c.allocUnsafe(s+l[e]),A=c.allocUnsafe(s+l[e]),h=0;h<s;h++)f[h]=54^t[h],A[h]=92^t[h];var p=c.allocUnsafe(s+n+4);f.copy(p,0,0,s),this.ipad1=p,this.ipad2=f,this.opad=A,this.alg=e,this.blocksize=s,this.hash=o,this.size=l[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,i){o(e,t,n,r),c.isBuffer(e)||(e=c.from(e,s)),c.isBuffer(t)||(t=c.from(t,s));var a=new f(i=i||"sha1",e,t.length),u=c.allocUnsafe(r),A=c.allocUnsafe(t.length+4);t.copy(A,0,0,t.length);for(var h=0,p=l[i],d=Math.ceil(r/p),g=1;g<=d;g++){A.writeUInt32BE(g,t.length);for(var y=a.run(A,a.ipad1),v=y,m=1;m<n;m++){v=a.run(v,a.ipad2);for(var b=0;b<p;b++)y[b]^=v[b]}y.copy(u,h),h+=p}return u}},function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},t.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var a=0,o=0,s=r.length>>>1,c=0;c<s;c++)a<<=1,a|=e>>>r[c]&1;for(c=s;c<r.length;c++)o<<=1,o|=t>>>r[c]&1;n[i+0]=a>>>0,n[i+1]=o>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=i[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)];return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(" ")}},function(e,t,n){"use strict";var r=n(6),i=n(1),a=n(61),o=n(34);function s(){this.tmp=new Array(2),this.keys=null}function c(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,o),e.exports=c,c.create=function(e){return new c(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=u[o>>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},c.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},c.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,n,r,i){for(var o=t,s=n,c=0;c<e.keys.length;c+=2){var u=e.keys[c],l=e.keys[c+1];a.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var f=a.substitute(u,l),A=s;s=(o^a.permute(f))>>>0,o=A}a.rip(s,o,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];a.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var f=a.substitute(u,l),A=o;o=(s^a.permute(f))>>>0,s=A}a.rip(o,s,r,i)}},function(e,t,n){var r=n(17),i=n(2).Buffer,a=n(64);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var c=o(e),u=a+16*s;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,l)}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,n){var r=n(22),i=n(2).Buffer,a=n(11),o=n(1),s=n(118),c=n(17),u=n(64);function l(e,t,n,o){a.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new s(l),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var c=8*a,l=i.alloc(8);l.writeUIntBE(c,0,8),r.update(l),e._finID=r.state;var f=i.from(e._finID);return u(f),f}(this,n,l),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(l,a),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=l},function(e,t,n){var r=n(22),i=n(2).Buffer,a=n(11);function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}n(1)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},function(e,t,n){var r=n(13);e.exports=y,y.simpleSieve=d,y.fermatTest=g;var i=n(4),a=new i(24),o=new(n(69)),s=new i(1),c=new i(2),u=new i(5),l=(new i(16),new i(8),new i(10)),f=new i(3),A=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function d(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return p=e,e}(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function g(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;n.mod(l).cmp(f);)n.iadd(h)}else for(;n.mod(a).cmp(A);)n.iadd(h);if(d(p=n.shrn(1))&&d(n)&&g(p)&&g(n)&&o.test(p)&&o.test(n))return n}}},function(e,t,n){var r=n(4),i=n(37);function a(e){this.rand=e||new i.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(a);t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var A=f.toRed(a).redPow(u);if(0!==A.cmp(o)&&0!==A.cmp(l)){for(var h=1;h<c;h++){if(0===(A=A.redSqr()).cmp(o))return!1;if(0===A.cmp(l))break}if(h===c)return!1}}return!0},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),u=o.toRed(i);t>0;t--){var l=this._randrange(new r(2),o),f=e.gcd(l);if(0!==f.cmpn(1))return f;var A=l.toRed(i).redPow(c);if(0!==A.cmp(a)&&0!==A.cmp(u)){for(var h=1;h<s;h++){if(0===(A=A.redSqr()).cmp(a))return A.fromRed().subn(1).gcd(e);if(0===A.cmp(u))break}if(h===s)return(A=A.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(24),r.short=n(129),r.mont=n(130),r.edwards=n(131)},function(e,t,n){"use strict";var r=n(10).rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(10),i=n(18),a=n(72),o=n(6),s=r.sum32,c=r.sum32_4,u=r.sum32_5,l=a.ch32,f=a.maj32,A=a.s0_256,h=a.s1_256,p=a.g0_256,d=a.g1_256,g=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(d(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],g=this.h[2],y=this.h[3],v=this.h[4],m=this.h[5],b=this.h[6],I=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var w=u(I,h(v),l(v,m,b),this.k[r],n[r]),C=s(A(i),f(i,a,g));I=b,b=m,m=v,v=s(y,w),y=g,g=a,a=i,i=s(w,C)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],m),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],I)},v.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(10),i=n(18),a=n(6),o=r.rotr64_hi,s=r.rotr64_lo,c=r.shr64_hi,u=r.shr64_lo,l=r.sum64,f=r.sum64_hi,A=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,d=r.sum64_5_hi,g=r.sum64_5_lo,y=i.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function m(){if(!(this instanceof m))return new m;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function b(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function I(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function w(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function C(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function B(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function _(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function k(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function Q(e,t){var n=o(e,t,1)^o(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function S(e,t){var n=s(e,t,1)^s(e,t,8)^u(e,t,7);return n<0&&(n+=4294967296),n}function x(e,t){var n=o(e,t,19)^o(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function D(e,t){var n=s(e,t,19)^s(t,e,29)^u(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(m,y),e.exports=m,m.blockSize=1024,m.outSize=512,m.hmacStrength=192,m.padLength=128,m.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=x(n[r-4],n[r-3]),a=D(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=Q(n[r-30],n[r-29]),u=S(n[r-30],n[r-29]),l=n[r-32],f=n[r-31];n[r]=h(i,a,o,s,c,u,l,f),n[r+1]=p(i,a,o,s,c,u,l,f)}},m.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],u=this.h[5],h=this.h[6],p=this.h[7],y=this.h[8],v=this.h[9],m=this.h[10],Q=this.h[11],S=this.h[12],x=this.h[13],D=this.h[14],P=this.h[15];a(this.k.length===n.length);for(var M=0;M<n.length;M+=2){var F=D,O=P,R=_(y,v),T=k(y,v),H=b(y,0,m,0,S),j=I(0,v,0,Q,0,x),N=this.k[M],U=this.k[M+1],L=n[M],K=n[M+1],G=d(F,O,R,T,H,j,N,U,L,K),$=g(F,O,R,T,H,j,N,U,L,K);F=B(r,i),O=E(r,i),R=w(r,0,o,0,c),T=C(0,i,0,s,0,u);var Y=f(F,O,R,T),J=A(F,O,R,T);D=S,P=x,S=m,x=Q,m=y,Q=v,y=f(h,p,G,$),v=A(p,p,G,$),h=c,p=u,c=o,u=s,o=r,s=i,r=f(G,$,Y,J),i=A(G,$,Y,J)}l(this.h,0,r,i),l(this.h,2,o,s),l(this.h,4,c,u),l(this.h,6,h,p),l(this.h,8,y,v),l(this.h,10,m,Q),l(this.h,12,S,x),l(this.h,14,D,P)},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(1),a=n(20).Reporter,o=n(3).Buffer;function s(e,t){a.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function c(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof c||(e=new c(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+r(e));this.value=e,this.length=e.length}}i(s,a),t.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,a.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new s(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=c,c.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,n){var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(151)},function(e,t,n){var r=n(1),i=n(19),a=i.base,o=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){a.Node.call(this,"der",e)}function l(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var a=n;for(n=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function f(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var a=0;a<i;a++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}e.exports=c,c.prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(u,a.Node),u.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},u.prototype._decodeTag=function(e,t,n){var r=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=f(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){var n=l(e,t);if(e.isError(n))return n;var r,i=f(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},u.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=n.decode(e,"der",r);if(e.isError(o)&&a)break;i.push(o)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(2*a));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},u.prototype._decodeObjid=function(e,t,n){for(var r,i=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(i.push(a),a=0)}128&o&&i.push(a);var s=i[0]/40|0,c=i[0]%40;if(r=n?i:[s,c].concat(i.slice(1)),t){var u=t[r.join(" ")];void 0===u&&(u=t[r.join(".")]),void 0!==u&&(r=u)}return r},u.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),i=0|n.slice(4,6),a=0|n.slice(6,8),o=0|n.slice(8,10),s=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),a=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),c=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,o,s,c,0)},u.prototype._decodeNull=function(e){return null},u.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){var n=e.raw(),r=new o(n);return t&&(r=t[r.toString(10)]||r),r},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){var r=n(1),i=n(3).Buffer,a=n(19),o=a.base,s=a.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(u,o.Node),u.prototype._encodeComposite=function(e,t,n,r){var a,o=function(e,t,n,r){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|s.tagClassByName[n||"universal"]<<6)}(e,t,n,this.reporter);if(r.length<128)return(a=new i(2))[0]=o,a[1]=r.length,this._createEncoderBuffer([a,r]);for(var c=1,u=r.length;u>=256;u>>=8)c++;(a=new i(2+c))[0]=o,a[1]=128|c,u=1+c;for(var l=r.length;l>0;u--,l>>=8)a[u]=255&l;return this._createEncoderBuffer([a,r])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e))for(e=e.slice(),r=0;r<e.length;r++)e[r]|=0;if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(r=0;r<e.length;r++){var o=e[r];for(a++;o>=128;o>>=7)a++}var s=new i(a),c=s.length-1;for(r=e.length-1;r>=0;r--)for(o=e[r],s[c--]=127&o;(o>>=7)>0;)s[c--]=128|127&o;return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[l(r.getFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[l(r.getFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new i(r);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var o=e;o>=256;o>>=8)r++;for(o=(a=new Array(r)).length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new i(a))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==i.defaultBuffer[r])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,n){var r=n(15),i=n(2).Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length<t;)n=a(s++),o=i.concat([o,r("sha1").update(e).update(n).digest()]);return o.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},function(e,t,n){var r=n(4),i=n(2).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(e,t,n){(function(t){var r=n(165).strict;e.exports=function(e){if(r(e)){var n=t.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(n=n.slice(e.byteOffset,e.byteOffset+e.byteLength)),n}return t.from(e)}}).call(this,n(3).Buffer)},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var n=function(e){"use strict";var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function A(){}function h(){}var p={};p[a]=function(){return this};var d=Object.getPrototypeOf,g=d&&d(d(B([])));g&&g!==n&&r.call(g,a)&&(p=g);var y=h.prototype=f.prototype=Object.create(p);function v(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function m(e,n){var i;this._invoke=function(a,o){function s(){return new n((function(i,s){!function i(a,o,s,c){var l=u(e[a],e,o);if("throw"!==l.type){var f=l.arg,A=f.value;return A&&"object"===t(A)&&r.call(A,"__await")?n.resolve(A.__await).then((function(e){i("next",e,s,c)}),(function(e){i("throw",e,s,c)})):n.resolve(A).then((function(e){f.value=e,s(f)}),(function(e){return i("throw",e,s,c)}))}c(l.arg)}(a,o,i,s)}))}return i=i?i.then(s,s):s()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function B(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return A.prototype=y.constructor=h,h.constructor=A,h[s]=A.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},v(m.prototype),m.prototype[o]=function(){return this},e.AsyncIterator=m,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new m(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},v(y),y[s]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=B,C.prototype={constructor:C,reset:function(e){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(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){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 a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:B(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(42)(e))},function(e,t,n){(function(r,i,a,o){var s,c;function u(e){return(u="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}void 0===(c="function"==typeof(s=function(t){"use strict";var s;void 0===(s=t)&&(s={});var c=s;"object"!=u(c.sodium)&&("object"==(void 0===r?"undefined":u(r))?c=r:"object"==("undefined"==typeof window?"undefined":u(window))&&(c=window)),"object"==u(c.sodium)&&"number"==typeof c.sodium.totalMemory&&(s.TOTAL_MEMORY=c.sodium.totalMemory);var l=s;return s.ready=new Promise((function(t,r){(c=l).onAbort=r,c.print=function(e){},c.printErr=function(e){},c.onRuntimeInitialized=function(){try{c._crypto_secretbox_keybytes(),t()}catch(e){r(e)}},c.useBackupModule=function(){var t,r=void 0!==(r={})?r:{},s={};for(t in r)r.hasOwnProperty(t)&&(s[t]=r[t]);var c,f,A,h,p=[],d=!1;c="object"==("undefined"==typeof window?"undefined":u(window)),f="function"==typeof importScripts,A="object"==(void 0===i?"undefined":u(i))&&"object"==u(i.versions)&&"string"==typeof i.versions.node,d=A&&!c&&!f,h=!c&&!d&&!f;var g,y,v,m,b,I="";d?(I=a+"/",g=function(e,t){var r;return(r=he(e))||(m||(m=n(44)),b||(b=n(45)),e=b.normalize(e),r=m.readFileSync(e)),t?r:r.toString()},v=function(e){var t=g(e,!0);return t.buffer||(t=new Uint8Array(t)),_(t.buffer),t},i.argv.length>1&&i.argv[1].replace(/\\/g,"/"),p=i.argv.slice(2),e.exports=r,i.on("unhandledRejection",W),r.inspect=function(){return"[Emscripten Module object]"}):h?("undefined"!=typeof read&&(g=function(e){var t=he(e);return t?fe(t):read(e)}),v=function(e){var t;return(t=he(e))?t:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(_("object"==u(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?p=scriptArgs:void 0!==arguments&&(p=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(c||f)&&(f?I=self.location.href:document.currentScript&&(I=document.currentScript.src),I=0!==I.indexOf("blob:")?I.substr(0,I.lastIndexOf("/")+1):"",g=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var n=he(e);if(n)return fe(n);throw t}},f&&(v=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var n=he(e);if(n)return n;throw t}}),y=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var i=he(e);i?t(i.buffer):n()}},r.onerror=n,r.send(null)});var w=r.print||void 0,C=r.printErr||void 0;for(t in s)s.hasOwnProperty(t)&&(r[t]=s[t]);s=null,r.arguments&&(p=r.arguments),r.thisProgram&&r.thisProgram,r.quit&&r.quit,new Array(8);var B=0;r.wasmBinary&&r.wasmBinary,r.noExitRuntime&&r.noExitRuntime;var E=!1;function _(e,t){e||W("Assertion failed: "+t)}var k,Q,S,x,D,P,M,F="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function O(e,t){return e?function(e,t,n){for(var r=t+n,i=t;e[i]&&!(i>=r);)++i;if(i-t>16&&e.subarray&&F)return F.decode(e.subarray(t,i));for(var a="";t<i;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|c:(7&o)<<18|s<<12|c<<6|63&e[t++])<65536)a+=String.fromCharCode(o);else{var u=o-65536;a+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else a+=String.fromCharCode((31&o)<<6|s)}else a+=String.fromCharCode(o)}return a}(S,e,t):""}function R(e,t){return e%t>0&&(e+=t-e%t),e}function T(e){k=e,r.HEAP8=Q=new Int8Array(e),r.HEAP16=x=new Int16Array(e),r.HEAP32=D=new Int32Array(e),r.HEAPU8=S=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=P=new Float32Array(e),r.HEAPF64=M=new Float64Array(e)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var H=r.TOTAL_MEMORY||16777216;function j(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?r.dynCall_v(n):r.dynCall_vi(n,t.arg):n(void 0===t.arg?null:t.arg)}else t()}}H=(k=r.buffer?r.buffer:new ArrayBuffer(H)).byteLength,T(k),D[8808]=5278304;var N=[],U=[],L=[],K=[],G=Math.abs,$=Math.ceil,Y=Math.floor,J=Math.min,V=0,z=null,q=null;function W(e){throw r.onAbort&&r.onAbort(e),w(e+=""),C(e),E=!0,"abort("+e+"). Build with -s ASSERTIONS=1 for more info."}r.preloadedImages={},r.preloadedAudios={};var X,Z,ee=null,te="data:application/octet-stream;base64,";function ne(e){return String.prototype.startsWith?e.startsWith(te):0===e.indexOf(te)}var re=[function(){return r.getRandomValue()},function(){if(void 0===r.getRandomValue)try{var e="object"==("undefined"==typeof window?"undefined":u(window))?window:self,t=void 0!==e.crypto?e.crypto:e.msCrypto,i=function(){var e=new Uint32Array(1);return t.getRandomValues(e),e[0]>>>0};i(),r.getRandomValue=i}catch(e){try{var a=n(46),o=function(){var e=a.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};o(),r.getRandomValue=o}catch(e){throw"No secure random number generator found"}}}];function ie(e){return e}function ae(e){return e.replace(/\b__Z[\w\d_]+/g,(function(e){return e==e?e:e+" ["+e+"]"}))}function oe(){var e=new Error;if(!e.stack){try{throw new Error(0)}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function se(){return Q.length}function ce(e){try{var t=new ArrayBuffer(e);if(t.byteLength!=e)return;return new Int8Array(t).set(Q),ye(t),T(t),1}catch(e){}}function ue(e){return r.___errno_location&&(D[r.___errno_location()>>2]=e),e}ee="data:application/octet-stream;base64,AAAAAAAAAAC2eFn/hXLTAL1uFf8PCmoAKcABAJjoef+8PKD/mXHO/wC34v60DUj/AAAAAAAAAACwoA7+08mG/54YjwB/aTUAYAy9AKfX+/+fTID+amXh/x78BACSDK4AAAAAAAAAAABZ8bL+CuWm/3vdKv4eFNQAUoADADDR8wB3eUD/MuOc/wBuxQFnG5AAAAAAAAAAAACFO4wBvfEk//glwwFg3DcAt0w+/8NCPQAyTKQB4aRM/0w9o/91Ph8AUZFA/3ZBDgCic9b/BoouAHzm9P8Kio8ANBrCALj0TACBjykBvvQT/3uqev9igUQAedWTAFZlHv+hZ5sAjFlD/+/lvgFDC7UAxvCJ/u5FvP9Dl+4AEyps/+V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70QuP5nA1//jekk/ikZC/8Vw6YAdvUtAEPVlf+fDBL/u6TjAaAZBQAMTsMBK8XhADCOKf7Emzz/38cSAZGInAD8dan+keLuAO8XawBttbz/5nAx/kmq7f/nt+P/UNwUAMJrfwF/zWUALjTFAdKrJP9YA1r/OJeNAGC7//8qTsgA/kZGAfR9qADMRIoBfNdGAGZCyP4RNOQAddyP/sv4ewA4Eq7/upek/zPo0AGg5Cv/+R0ZAUS+PwANAAAAAP8AAAAA9QAAAAAAAPsAAAAAAAD9AAAAAPMAAAAABwAAAAAAAwAAAADzAAAAAAUAAAAAAAAAAAsAAAAAAAsAAAAA8wAAAAAAAP0AAAAAAP8AAAAAAwAAAAD1AAAAAAAAAA8AAAAAAP8AAAAA/wAAAAAHAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACbolY/CsiewRcP0ifLvmPDV36wF08YzObE4AohtU/wFxxdqcD1N2E+6PAt2DRBnDyogU/osOczGTsf9d5KsA3rs////////////////////////////////////////f+3///////////////////////////////////////9/7v///////////////////////////////////////3/t0/VcGmMSWNac96Le+d4UAAAAAAAAAAAAAAAAAAAAEAjJvPNn5glqO6fKhIWuZ7sr+JT+cvNuPPE2HV869U+l0YLmrX9SDlEfbD4rjGgFm2u9Qfur2YMfeSF+ExnN4FsirijXmC+KQs1l7yORRDdxLztN7M/7wLW824mBpdu16Ti1SPNbwlY5GdAFtvER8VmbTxmvpII/khiBbdrVXhyrQgIDo5iqB9i+b3BFAVuDEoyy5E6+hTEk4rT/1cN9DFVviXvydF2+crGW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IHsgdHJ5IHsgdmFyIGNyeXB0byA9IHJlcXVpcmUoJ2NyeXB0bycpOyB2YXIgcmFuZG9tVmFsdWVOb2RlSlMgPSBmdW5jdGlvbigpIHsgdmFyIGJ1ZiA9IGNyeXB0b1sncmFuZG9tQnl0ZXMnXSg0KTsgcmV0dXJuIChidWZbMF0gPDwgMjQgfCBidWZbMV0gPDwgMTYgfCBidWZbMl0gPDwgOCB8IGJ1ZlszXSkgPj4+IDA7IH07IHJhbmRvbVZhbHVlTm9kZUpTKCk7IE1vZHVsZS5nZXRSYW5kb21WYWx1ZSA9IHJhbmRvbVZhbHVlTm9kZUpTOyB9IGNhdGNoIChlKSB7IHRocm93ICdObyBzZWN1cmUgcmFuZG9tIG51bWJlciBnZW5lcmF0b3IgZm91bmQnOyB9IH0gfSB9AExpYnNvZGl1bURSR2J1Zl9sZW4gPD0gU0laRV9NQVgAcmFuZG9tYnl0ZXMvcmFuZG9tYnl0ZXMuYwByYW5kb21ieXRlcwBiNjRfcG9zIDw9IGI2NF9sZW4Ac29kaXVtL2NvZGVjcy5jAHNvZGl1bV9iaW4yYmFzZTY0ADEuMC4xOA==";var le=!1;function fe(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r>255&&(le&&_(!1,"Character code "+r+" ("+String.fromCharCode(r)+") at offset "+n+" not in 0x00-0xFF."),r&=255),t.push(String.fromCharCode(r))}return t.join("")}var Ae="function"==typeof atob?atob:function(e){var t,n,r,i,a,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=s.indexOf(e.charAt(u++))<<2|(i=s.indexOf(e.charAt(u++)))>>4,n=(15&i)<<4|(a=s.indexOf(e.charAt(u++)))>>2,r=(3&a)<<6|(o=s.indexOf(e.charAt(u++))),c+=String.fromCharCode(t),64!==a&&(c+=String.fromCharCode(n)),64!==o&&(c+=String.fromCharCode(r))}while(u<e.length);return c};function he(e){if(ne(e))return function(e){if("boolean"==typeof d&&d){var t;try{t=o.from(e,"base64")}catch(n){t=new o(e,"base64")}return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}try{for(var n=Ae(e),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}catch(e){throw new Error("Converting base64 string to bytes failed.")}}(e.slice(te.length))}var pe,de,ge=function(e,t,n){var r=new e.Int8Array(n),i=new e.Int32Array(n),a=new e.Uint8Array(n),o=e.Math.imul,s=e.Math.clz32,c=t.b,u=t.c,l=t.d,f=t.f,A=t.g,h=t.h,p=t.i,d=t.j,g=t.k,y=35424;function v(e,t){e|=0,t|=0;var n,o,s,c,l,f,A=0,h=0,p=0,d=0,g=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0,E=0,_=0,k=0,Q=0,S=0,x=0,D=0,P=0,M=0,F=0,O=0,R=0,T=0,H=0,j=0,N=0,U=0,L=0,K=0,G=0,$=0,Y=0,J=0,V=0,z=0,q=0,W=0,X=0,Z=0,ee=0,te=0,ne=0,re=0,ie=0,ae=0,oe=0,se=0,ce=0,ue=0,le=0,fe=0,Ae=0,he=0,pe=0,de=0,ge=0,ye=0,ve=0;n=y,o=y=y+63&-64,y=y+256|0,A=0;do{d=0|Ut(t+(A<<3)|0),p=0|u(),i[(h=o+128+(A<<3)|0)>>2]=d,i[h+4>>2]=p,A=A+1|0}while(16!=(0|A));A=e,h=(t=o)+64|0;do{r[t>>0]=0|r[A>>0],t=t+1|0,A=A+1|0}while((0|t)<(0|h));for(i[o+88>>2]=1595750129,i[o+88+4>>2]=-1521486534,G=-1377402159^(a[e+64>>0]|a[e+64+1>>0]<<8|a[e+64+2>>0]<<16|a[e+64+3>>0]<<24),K=1359893119^(a[e+64+4>>0]|a[e+64+4+1>>0]<<8|a[e+64+4+2>>0]<<16|a[e+64+4+3>>0]<<24),P=725511199^(a[e+72>>0]|a[e+72+1>>0]<<8|a[e+72+2>>0]<<16|a[e+72+3>>0]<<24),M=-1694144372^(a[e+72+4>>0]|a[e+72+4+1>>0]<<8|a[e+72+4+2>>0]<<16|a[e+72+4+3>>0]<<24),C=-79577749^(a[e+80>>0]|a[e+80+1>>0]<<8|a[e+80+2>>0]<<16|a[e+80+3>>0]<<24),B=528734635^(a[e+80+4>>0]|a[e+80+4+1>>0]<<8|a[e+80+4+2>>0]<<16|a[e+80+4+3>>0]<<24),ee=327033209^(a[e+88>>0]|a[e+88+1>>0]<<8|a[e+88+2>>0]<<16|a[e+88+3>>0]<<24),Z=1541459225^(a[e+88+4>>0]|a[e+88+4+1>>0]<<8|a[e+88+4+2>>0]<<16|a[e+88+4+3>>0]<<24),m=0|i[o+32>>2],b=0|i[o+32+4>>2],b=0|Yt((t=0|Sn(0|(K=0|Yt((ge=0|Sn(0|(ye=0|Sn(0|($=0|i[o+128>>2]),0|(Y=0|i[o+128+4>>2]),0|m,0|b)),0|(ge=0|u()),0|i[o>>2],0|i[o+4>>2]))^G,(ye=0|u())^K,32)),0|(G=0|u()),-205731576,1779033703))^m,(d=0|u())^b,24),m=0|u(),te=0|i[o+128+8>>2],ne=0|i[o+128+8+4>>2],G=0|Yt((ye=0|Sn(0|(ye=0|Sn(0|b,0|m,0|ge,0|ye)),0|u(),0|te,0|ne))^K,(ge=0|u())^G,16),K=0|u(),i[o+96>>2]=G,i[o+96+4>>2]=K,d=0|Sn(0|G,0|K,0|t,0|d),t=0|u(),i[o+64>>2]=d,i[o+64+4>>2]=t,m=0|Yt(d^b,t^m,63),b=0|u(),i[o+32>>2]=m,i[o+32+4>>2]=b,q=0|i[o+40>>2],W=0|i[o+40+4>>2],W=0|Yt((v=0|Sn(0|(M=0|Yt((Ae=0|Sn(0|(fe=0|Sn(0|(h=0|i[o+128+16>>2]),0|(A=0|i[o+128+16+4>>2]),0|q,0|W)),0|(Ae=0|u()),0|i[o+8>>2],0|i[o+8+4>>2]))^P,(fe=0|u())^M,32)),0|(P=0|u()),-2067093701,-1150833019))^q,(I=0|u())^W,24),q=0|u(),w=0|i[o+128+24>>2],E=0|i[o+128+24+4>>2],P=0|Yt((fe=0|Sn(0|(fe=0|Sn(0|W,0|q,0|Ae,0|fe)),0|u(),0|w,0|E))^M,(Ae=0|u())^P,16),M=0|u(),i[o+104>>2]=P,i[o+104+4>>2]=M,I=0|Sn(0|P,0|M,0|v,0|I),v=0|u(),i[o+72>>2]=I,i[o+72+4>>2]=v,q=0|Yt(I^W,v^q,63),W=0|u(),N=0|i[o+48>>2],U=0|i[o+48+4>>2],U=0|Yt((z=0|Sn(0|(B=0|Yt((ue=0|Sn(0|(ce=0|Sn(0|(f=0|i[o+128+32>>2]),0|(he=0|i[o+128+32+4>>2]),0|N,0|U)),0|(ue=0|u()),0|i[o+16>>2],0|i[o+16+4>>2]))^C,(ce=0|u())^B,32)),0|(C=0|u()),-23791573,1013904242))^N,(X=0|u())^U,24),N=0|u(),s=0|i[o+128+40>>2],Q=0|i[o+128+40+4>>2],N=0|Yt((X=0|Sn(0|(C=0|Yt((ce=0|Sn(0|(ce=0|Sn(0|U,0|N,0|ue,0|ce)),0|u(),0|s,0|Q))^B,(ue=0|u())^C,16)),0|(B=0|u()),0|z,0|X))^U,(z=0|u())^N,63),U=0|u(),x=0|i[o+56>>2],S=0|i[o+56+4>>2],S=0|Yt((j=0|Sn(0|(Z=0|Yt((oe=0|Sn(0|(ae=0|Sn(0|(k=0|i[o+128+48>>2]),0|(_=0|i[o+128+48+4>>2]),0|x,0|S)),0|(oe=0|u()),0|i[o+24>>2],0|i[o+24+4>>2]))^ee,(ae=0|u())^Z,32)),0|(ee=0|u()),1595750129,-1521486534))^x,(L=0|u())^S,24),x=0|u(),D=0|i[o+128+56>>2],F=0|i[o+128+56+4>>2],x=0|Yt((L=0|Sn(0|(ee=0|Yt((ae=0|Sn(0|(ae=0|Sn(0|S,0|x,0|oe,0|ae)),0|u(),0|D,0|F))^Z,(oe=0|u())^ee,16)),0|(Z=0|u()),0|j,0|L))^S,(j=0|u())^x,63),S=0|u(),J=0|i[o+128+64>>2],V=0|i[o+128+64+4>>2],W=0|Yt((z=0|Sn(0|(Z=0|Yt((ge=0|Sn(0|(ge=0|Sn(0|q,0|W,0|ye,0|ge)),0|u(),0|J,0|V))^ee,(ye=0|u())^Z,32)),0|(ee=0|u()),0|X,0|z))^q,(X=0|u())^W,24),q=0|u(),l=0|i[o+128+72>>2],le=0|i[o+128+72+4>>2],ee=0|Yt((ye=0|Sn(0|(ye=0|Sn(0|W,0|q,0|ge,0|ye)),0|u(),0|l,0|le))^Z,(ge=0|u())^ee,16),Z=0|u(),i[o+120>>2]=ee,i[o+120+4>>2]=Z,X=0|Sn(0|ee,0|Z,0|z,0|X),z=0|u(),i[o+80>>2]=X,i[o+80+4>>2]=z,q=0|Yt(X^W,z^q,63),W=0|u(),re=0|i[o+128+80>>2],ie=0|i[o+128+80+4>>2],U=0|Yt((j=0|Sn(0|(K=0|Yt((Ae=0|Sn(0|(Ae=0|Sn(0|N,0|U,0|fe,0|Ae)),0|u(),0|re,0|ie))^G,(fe=0|u())^K,32)),0|(G=0|u()),0|L,0|j))^N,(L=0|u())^U,24),N=0|u(),O=0|i[o+128+88>>2],R=0|i[o+128+88+4>>2],N=0|Yt((L=0|Sn(0|(G=0|Yt((fe=0|Sn(0|(fe=0|Sn(0|U,0|N,0|Ae,0|fe)),0|u(),0|O,0|R))^K,(Ae=0|u())^G,16)),0|(K=0|u()),0|j,0|L))^U,(j=0|u())^N,63),U=0|u(),p=0|i[o+128+96>>2],g=0|i[o+128+96+4>>2],S=0|Yt((t=0|Sn(0|(M=0|Yt((ue=0|Sn(0|(ue=0|Sn(0|x,0|S,0|ce,0|ue)),0|u(),0|p,0|g))^P,(ce=0|u())^M,32)),0|(P=0|u()),0|d,0|t))^x,(d=0|u())^S,24),x=0|u(),c=0|i[o+128+104>>2],se=0|i[o+128+104+4>>2],x=0|Yt((d=0|Sn(0|(P=0|Yt((ce=0|Sn(0|(ce=0|Sn(0|S,0|x,0|ue,0|ce)),0|u(),0|c,0|se))^M,(ue=0|u())^P,16)),0|(M=0|u()),0|t,0|d))^S,(t=0|u())^x,63),S=0|u(),pe=0|i[o+128+112>>2],de=0|i[o+128+112+4>>2],b=0|Yt((v=0|Sn(0|(B=0|Yt((oe=0|Sn(0|(oe=0|Sn(0|ae,0|oe,0|m,0|b)),0|u(),0|pe,0|de))^C,(ae=0|u())^B,32)),0|(C=0|u()),0|I,0|v))^m,(I=0|u())^b,24),m=0|u(),T=0|i[o+128+120>>2],H=0|i[o+128+120+4>>2],m=0|Yt((I=0|Sn(0|(C=0|Yt((ae=0|Sn(0|(ae=0|Sn(0|b,0|m,0|oe,0|ae)),0|u(),0|T,0|H))^B,(oe=0|u())^C,16)),0|(B=0|u()),0|v,0|I))^b,(v=0|u())^m,63),b=0|u(),b=0|Yt((t=0|Sn(0|(K=0|Yt((ge=0|Sn(0|(ge=0|Sn(0|pe,0|de,0|ye,0|ge)),0|u(),0|m,0|b))^G,(ye=0|u())^K,32)),0|(G=0|u()),0|d,0|t))^m,(d=0|u())^b,24),m=0|u(),m=0|Yt((d=0|Sn(0|(G=0|Yt((ye=0|Sn(0|(ye=0|Sn(0|ge,0|ye,0|re,0|ie)),0|u(),0|b,0|m))^K,(ge=0|u())^G,16)),0|(K=0|u()),0|t,0|d))^b,(t=0|u())^m,63),b=0|u(),i[o+32>>2]=m,i[o+32+4>>2]=b,W=0|Yt((v=0|Sn(0|(M=0|Yt(P^(Ae=0|Sn(0|(ve=0|Sn(0|q,0|W,0|f,0|he)),0|u(),0|fe,0|Ae)),M^(fe=0|u()),32)),0|(P=0|u()),0|I,0|v))^q,(I=0|u())^W,24),q=0|u(),q=0|Yt((I=0|Sn(0|(P=0|Yt((fe=0|Sn(0|(fe=0|Sn(0|Ae,0|fe,0|J,0|V)),0|u(),0|W,0|q))^M,(Ae=0|u())^P,16)),0|(M=0|u()),0|v,0|I))^W,(v=0|u())^q,63),W=0|u(),U=0|Yt((z=0|Sn(0|(B=0|Yt(C^(ue=0|Sn(0|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20>>0])),0|u(),3),u(),ae=0|Wt(0|r[t+21>>0],0|r[t+22>>0],0|r[t+23>>0]),u(),J=0|An(0|(J=0|mt(t+23|0)),0|u(),5),u(),Be=0|An(0|(Be=0|Wt(0|r[t+26>>0],0|r[t+27>>0],0|r[t+28>>0])),0|u(),2),u(),Qe=0|An(0|(Qe=0|mt(t+28|0)),0|u(),7),Se=0|u(),Gt=0|Wt(0|r[n>>0],0|r[n+1>>0],0|r[n+2>>0]),u(),bt=0|An(0|(bt=0|mt(n+2|0)),0|u(),5),u(),nt=0|An(0|(nt=0|Wt(0|r[n+5>>0],0|r[n+6>>0],0|r[n+7>>0])),0|u(),2),u(),Q=0|An(0|(Q=0|mt(n+7|0)),0|u(),7),u(),S=0|An(0|(S=0|mt(n+10|0)),0|u(),4),u(),L=0|An(0|(L=0|Wt(0|r[n+13>>0],0|r[n+14>>0],0|r[n+15>>0])),0|u(),1),u(),ze=0|An(0|(ze=0|mt(n+15|0)),0|u(),6),u(),ve=0|An(0|(ve=0|Wt(0|r[n+18>>0],0|r[n+19>>0],0|r[n+20>>0])),0|u(),3),u(),He=0|Wt(0|r[n+21>>0],0|r[n+22>>0],0|r[n+23>>0]),u(),te=0|An(0|(te=0|mt(n+23|0)),0|u(),5),u(),jt=0|An(0|(jt=0|Wt(0|r[n+26>>0],0|r[n+27>>0],0|r[n+28>>0])),0|u(),2),u(),he=0|An(0|(he=0|mt(n+28|0)),0|u(),7),Ae=0|u(),Ue=0|Wt(0|r[i>>0],0|r[i+1>>0],0|r[i+2>>0]),u(),re=0|An(0|(re=0|mt(i+2|0)),0|u(),5),u(),Ke=0|An(0|(Ke=0|Wt(0|r[i+5>>0],0|r[i+6>>0],0|r[i+7>>0])),0|u(),2),u(),Oe=0|An(0|(Oe=0|mt(i+7|0)),0|u(),7),u(),Te=0|An(0|(Te=0|mt(i+10|0)),0|u(),4),u(),qe=0|An(0|(qe=0|Wt(0|r[i+13>>0],0|r[i+14>>0],0|r[i+15>>0])),0|u(),1),u(),kt=0|An(0|(kt=0|mt(i+15|0)),0|u(),6),u(),M=0|An(0|(M=0|Wt(0|r[i+18>>0],0|r[i+19>>0],0|r[i+20>>0])),0|u(),3),u(),lt=0|Wt(0|r[i+21>>0],0|r[i+22>>0],0|r[i+23>>0]),u(),Ye=0|An(0|(Ye=0|mt(i+23|0)),0|u(),5),u(),pe=0|An(0|(pe=0|Wt(0|r[i+26>>0],0|r[i+27>>0],0|r[i+28>>0])),0|u(),2),u(),wt=0|An(0|(wt=0|mt(i+28|0)),0|u(),7),Qt=0|u(),Ne=0|Sn(2097151&Ue|0,0,0|(Ne=0|Zt(2097151&Gt|0,0,2097151&ge|0,0)),0|u()),Ue=0|u(),I=0|Zt(2097151&bt|0,0,2097151&ge|0,0),b=0|u(),m=0|Zt(2097151&Gt|0,0,2097151&Mt|0,0),Ze=0|u(),X=0|Zt(2097151&nt|0,0,2097151&ge|0,0),Le=0|u(),Ke=0|Sn(0|(Le=0|Sn(0|(Fe=0|Sn(0|(W=0|Zt(2097151&bt|0,0,2097151&Mt|0,0)),0|u(),0|(Fe=0|Zt(2097151&Gt|0,0,2097151&Bt|0,0)),0|u())),0|u(),0|X,0|Le)),0|u(),2097151&Ke|0,0),Le=0|u(),X=0|Zt(2097151&Q|0,0,2097151&ge|0,0),Fe=0|u(),_=0|Zt(2097151&nt|0,0,2097151&Mt|0,0),W=0|u(),v=0|Zt(2097151&bt|0,0,2097151&Bt|0,0),y=0|u(),g=0|Zt(2097151&Gt|0,0,2097151&Pt|0,0),Bn=0|u(),fe=0|Zt(2097151&S|0,0,2097151&ge|0,0),Re=0|u(),mn=0|Zt(2097151&Q|0,0,2097151&Mt|0,0),We=0|u(),In=0|Zt(2097151&nt|0,0,2097151&Bt|0,0),T=0|u(),Te=0|Sn(0|(Re=0|Sn(0|(We=0|Sn(0|(T=0|Sn(0|(bn=0|Sn(0|(wn=0|Zt(2097151&bt|0,0,2097151&Pt|0,0)),0|u(),0|(bn=0|Zt(2097151&Gt|0,0,2097151&yt|0,0)),0|u())),0|u(),0|In,0|T)),0|u(),0|mn,0|We)),0|u(),0|fe,0|Re)),0|u(),2097151&Te|0,0),Re=0|u(),fe=0|Zt(2097151&L|0,0,2097151&ge|0,0),We=0|u(),mn=0|Zt(2097151&S|0,0,2097151&Mt|0,0),T=0|u(),In=0|Zt(2097151&Q|0,0,2097151&Bt|0,0),bn=0|u(),E=0|Zt(2097151&nt|0,0,2097151&Pt|0,0),wn=0|u(),d=0|Zt(2097151&bt|0,0,2097151&yt|0,0),p=0|u(),h=0|Zt(2097151&Gt|0,0,2097151&ie|0,0),Cn=0|u(),t=0|Zt(2097151&ze|0,0,2097151&ge|0,0),It=0|u(),un=0|Zt(2097151&L|0,0,2097151&Mt|0,0),x=0|u(),fn=0|Zt(2097151&S|0,0,2097151&Bt|0,0),P=0|u(),pn=0|Zt(2097151&Q|0,0,2097151&Pt|0,0),ln=0|u(),gn=0|Zt(2097151&nt|0,0,2097151&yt|0,0),hn=0|u(),kt=0|Sn(0|(It=0|Sn(0|(x=0|Sn(0|(P=0|Sn(0|(ln=0|Sn(0|(hn=0|Sn(0|(dn=0|Sn(0|(yn=0|Zt(2097151&bt|0,0,2097151&ie|0,0)),0|u(),0|(dn=0|Zt(2097151&Gt|0,0,2097151&Ie|0,0)),0|u())),0|u(),0|gn,0|hn)),0|u(),0|pn,0|ln)),0|u(),0|fn,0|P)),0|u(),0|un,0|x)),0|u(),0|t,0|It)),0|u(),2097151&kt|0,0),It=0|u(),t=0|Zt(2097151&ve|0,0,2097151&ge|0,0),x=0|u(),un=0|Zt(2097151&ze|0,0,2097151&Mt|0,0),P=0|u(),fn=0|Zt(2097151&L|0,0,2097151&Bt|0,0),ln=0|u(),pn=0|Zt(2097151&S|0,0,2097151&Pt|0,0),hn=0|u(),gn=0|Zt(2097151&Q|0,0,2097151&yt|0,0),dn=0|u(),B=0|Zt(2097151&nt|0,0,2097151&ie|0,0),yn=0|u(),A=0|Zt(2097151&bt|0,0,2097151&Ie|0,0),f=0|u(),l=0|Zt(2097151&Gt|0,0,2097151&k|0,0),vn=0|u(),Jt=0|Zt(2097151&He|0,0,2097151&ge|0,0),D=0|u(),Y=0|Zt(2097151&ve|0,0,2097151&Mt|0,0),ft=0|u(),$t=0|Zt(2097151&ze|0,0,2097151&Bt|0,0),Yt=0|u(),zt=0|Zt(2097151&L|0,0,2097151&Pt|0,0),$=0|u(),Xt=0|Zt(2097151&S|0,0,2097151&yt|0,0),Vt=0|u(),nn=0|Zt(2097151&Q|0,0,2097151&ie|0,0),qt=0|u(),an=0|Zt(2097151&nt|0,0,2097151&Ie|0,0),en=0|u(),lt=0|Sn(0|(ft=0|Sn(0|(D=0|Sn(0|(Yt=0|Sn(0|($=0|Sn(0|(Vt=0|Sn(0|(qt=0|Sn(0|(en=0|Sn(0|(rn=0|Sn(0|(on=0|Zt(2097151&bt|0,0,2097151&k|0,0)),0|u(),0|(rn=0|Zt(2097151&Gt|0,0,2097151&ae|0,0)),0|u())),0|u(),0|an,0|en)),0|u(),0|nn,0|qt)),0|u(),0|Xt,0|Vt)),0|u(),0|zt,0|$)),0|u(),0|$t,0|Yt)),0|u(),0|Jt,0|D)),0|u(),0|Y,0|ft)),0|u(),2097151&lt|0,0),ft=0|u(),Y=0|Zt(2097151&te|0,0,2097151&ge|0,0),D=0|u(),Jt=0|Zt(2097151&He|0,0,2097151&Mt|0,0),Yt=0|u(),$t=0|Zt(2097151&ve|0,0,2097151&Bt|0,0),$=0|u(),zt=0|Zt(2097151&ze|0,0,2097151&Pt|0,0),Vt=0|u(),Xt=0|Zt(2097151&L|0,0,2097151&yt|0,0),qt=0|u(),nn=0|Zt(2097151&S|0,0,2097151&ie|0,0),en=0|u(),an=0|Zt(2097151&Q|0,0,2097151&Ie|0,0),rn=0|u(),C=0|Zt(2097151&nt|0,0,2097151&k|0,0),on=0|u(),c=0|Zt(2097151&bt|0,0,2097151&ae|0,0),s=0|u(),o=0|Zt(2097151&Gt|0,0,2097151&J|0,0),sn=0|u(),ye=0|Zt(2097151&jt|0,0,2097151&ge|0,0),de=0|u(),q=0|Zt(2097151&te|0,0,2097151&Mt|0,0),z=0|u(),st=0|Zt(2097151&He|0,0,2097151&Bt|0,0),ot=0|u(),Rt=0|Zt(2097151&ve|0,0,2097151&Pt|0,0),Ot=0|u(),oe=0|Zt(2097151&ze|0,0,2097151&yt|0,0),O=0|u(),_t=0|Zt(2097151&L|0,0,2097151&ie|0,0),Et=0|u(),tt=0|Zt(2097151&S|0,0,2097151&Ie|0,0),et=0|u(),ht=0|Zt(2097151&Q|0,0,2097151&k|0,0),At=0|u(),V=0|Zt(2097151&nt|0,0,2097151&ae|0,0),i=0|u(),pe=0|Sn(0|(de=0|Sn(0|(z=0|Sn(0|(Ot=0|Sn(0|(ot=0|Sn(0|(O=0|Sn(0|(Et=0|Sn(0|(et=0|Sn(0|(At=0|Sn(0|(i=0|Sn(0|(Lt=0|Sn(0|Zt(2097151&bt|0,0,2097151&J|0,0),0|(Ut=0|u()),0|(Lt=0|Zt(2097151&Gt|0,0,2097151&Be|0,0)),0|u())),0|u(),0|V,0|i)),0|u(),0|ht,0|At)),0|u(),0|tt,0|et)),0|u(),0|_t,0|Et)),0|u(),0|oe,0|O)),0|u(),0|st,0|ot)),0|u(),0|Rt,0|Ot)),0|u(),0|q,0|z)),0|u(),0|ye,0|de)),0|u(),2097151&pe|0,0),de=0|u(),ge=0|Zt(0|he,0|Ae,2097151&ge|0,0),ye=0|u(),z=0|Zt(2097151&jt|0,0,2097151&Mt|0,0),q=0|u(),Ot=0|Zt(2097151&te|0,0,2097151&Bt|0,0),Rt=0|u(),ot=0|Zt(2097151&He|0,0,2097151&Pt|0,0),st=0|u(),O=0|Zt(2097151&ve|0,0,2097151&yt|0,0),oe=0|u(),Et=0|Zt(2097151&ze|0,0,2097151&ie|0,0),_t=0|u(),et=0|Zt(2097151&L|0,0,2097151&Ie|0,0),tt=0|u(),At=0|Zt(2097151&S|0,0,2097151&k|0,0),ht=0|u(),i=0|Zt(2097151&Q|0,0,2097151&ae|0,0),V=0|u(),Lt=0|Zt(2097151&nt|0,0,2097151&J|0,0),Ut=0|u(),w=0|Zt(2097151&bt|0,0,2097151&Be|0,0),a=0|u(),Gt=0|Zt(2097151&Gt|0,0,0|Qe,0|Se),Kt=0|u(),Mt=0|Zt(0|he,0|Ae,2097151&Mt|0,0),Ft=0|u(),me=0|Zt(2097151&jt|0,0,2097151&Bt|0,0),Ct=0|u(),Tt=0|Zt(2097151&te|0,0,2097151&Pt|0,0),j=0|u(),Ce=0|Zt(2097151&He|0,0,2097151&yt|0,0),le=0|u(),ue=0|Zt(2097151&ve|0,0,2097151&ie|0,0),Ht=0|u(),Pe=0|Zt(2097151&ze|0,0,2097151&Ie|0,0),U=0|u(),Ee=0|Zt(2097151&L|0,0,2097151&k|0,0),Me=0|u(),dt=0|Zt(2097151&S|0,0,2097151&ae|0,0),xe=0|u(),vt=0|Zt(2097151&Q|0,0,2097151&J|0,0),pt=0|u(),Ft=0|Sn(0|(Ct=0|Sn(0|(j=0|Sn(0|(Ht=0|Sn(0|(le=0|Sn(0|(U=0|Sn(0|(Me=0|Sn(0|(xe=0|Sn(0|(pt=0|Sn(0|(bt=0|Sn(0|(Dt=0|Zt(2097151&nt|0,0,2097151&Be|0,0)),0|(rt=0|u()),0|(bt=0|Zt(2097151&bt|0,0,0|Qe,0|Se)),0|u())),0|u(),0|vt,0|pt)),0|u(),0|dt,0|xe)),0|u(),0|Ee,0|Me)),0|u(),0|Pe,0|U)),0|u(),0|Ce,0|le)),0|u(),0|ue,0|Ht)),0|u(),0|Tt,0|j)),0|u(),0|me,0|Ct)),0|u(),0|Mt,0|Ft),Mt=0|u(),Bt=0|Zt(0|he,0|Ae,2097151&Bt|0,0),Ct=0|u(),me=0|Zt(2097151&jt|0,0,2097151&Pt|0,0),j=0|u(),Tt=0|Zt(2097151&te|0,0,2097151&yt|0,0),Ht=0|u(),ue=0|Zt(2097151&He|0,0,2097151&ie|0,0),le=0|u(),Ce=0|Zt(2097151&ve|0,0,2097151&Ie|0,0),U=0|u(),Pe=0|Zt(2097151&ze|0,0,2097151&k|0,0),Me=0|u(),Ee=0|Zt(2097151&L|0,0,2097151&ae|0,0),xe=0|u(),dt=0|Zt(2097151&S|0,0,2097151&J|0,0),pt=0|u(),vt=0|Zt(2097151&Q|0,0,2097151&Be|0,0),bt=0|u(),nt=0|Zt(2097151&nt|0,0,0|Qe,0|Se),rt=0|u(),Pt=0|Zt(0|he,0|Ae,2097151&Pt|0,0),Dt=0|u(),St=0|Zt(2097151&jt|0,0,2097151&yt|0,0),gt=0|u(),K=0|Zt(2097151&te|0,0,2097151&ie|0,0),xt=0|u(),Je=0|Zt(2097151&He|0,0,2097151&Ie|0,0),Z=0|u(),R=0|Zt(2097151&ve|0,0,2097151&k|0,0),n=0|u(),F=0|Zt(2097151&ze|0,0,2097151&ae|0,0),Xe=0|u(),we=0|Zt(2097151&L|0,0,2097151&J|0,0),be=0|u(),Dt=0|Sn(0|(gt=0|Sn(0|(xt=0|Sn(0|(n=0|Sn(0|(Z=0|Sn(0|(Xe=0|Sn(0|(be=0|Sn(0|(Q=0|Sn(0|(Nt=0|Zt(2097151&S|0,0,2097151&Be|0,0)),0|(N=0|u()),0|(Q=0|Zt(2097151&Q|0,0,0|Qe,0|Se)),0|u())),0|u(),0|we,0|be)),0|u(),0|F,0|Xe)),0|u(),0|Je,0|Z)),0|u(),0|R,0|n)),0|u(),0|K,0|xt)),0|u(),0|St,0|gt)),0|u(),0|Pt,0|Dt),Pt=0|u(),yt=0|Zt(0|he,0|Ae,2097151&yt|0,0),gt=0|u(),St=0|Zt(2097151&jt|0,0,2097151&ie|0,0),xt=0|u(),K=0|Zt(2097151&te|0,0,2097151&Ie|0,0),n=0|u(),R=0|Zt(2097151&He|0,0,2097151&k|0,0),Z=0|u(),Je=0|Zt(2097151&ve|0,0,2097151&ae|0,0),Xe=0|u(),F=0|Zt(2097151&ze|0,0,2097151&J|0,0),be=0|u(),we=0|Zt(2097151&L|0,0,2097151&Be|0,0),Q=0|u(),S=0|Zt(2097151&S|0,0,0|Qe,0|Se),N=0|u(),ie=0|Zt(0|he,0|Ae,2097151&ie|0,0),Nt=0|u(),at=0|Zt(2097151&jt|0,0,2097151&Ie|0,0),ne=0|u(),ke=0|Zt(2097151&te|0,0,2097151&k|0,0),it=0|u(),G=0|Zt(2097151&He|0,0,2097151&ae|0,0),se=0|u(),ce=0|Zt(2097151&ve|0,0,2097151&J|0,0),_e=0|u(),Nt=0|Sn(0|(ne=0|Sn(0|(it=0|Sn(0|(_e=0|Sn(0|(se=0|Sn(0|(L=0|Sn(0|(H=0|Zt(2097151&ze|0,0,2097151&Be|0,0)),0|(Ve=0|u()),0|(L=0|Zt(2097151&L|0,0,0|Qe,0|Se)),0|u())),0|u(),0|G,0|se)),0|u(),0|ce,0|_e)),0|u(),0|ke,0|it)),0|u(),0|at,0|ne)),0|u(),0|ie,0|Nt),ie=0|u(),Ie=0|Zt(0|he,0|Ae,2097151&Ie|0,0),ne=0|u(),at=0|Zt(2097151&jt|0,0,2097151&k|0,0),it=0|u(),ke=0|Zt(2097151&te|0,0,2097151&ae|0,0),_e=0|u(),ce=0|Zt(2097151&He|0,0,2097151&J|0,0),se=0|u(),G=0|Zt(2097151&ve|0,0,2097151&Be|0,0),L=0|u(),ze=0|Zt(2097151&ze|0,0,0|Qe,0|Se),Ve=0|u(),k=0|Zt(0|he,0|Ae,2097151&k|0,0),H=0|u(),Ge=0|Zt(2097151&jt|0,0,2097151&ae|0,0),ee=0|u(),ut=0|Zt(2097151&te|0,0,2097151&J|0,0),$e=0|u(),je=0|Zt(2097151&He|0,0,2097151&Be|0,0),ct=0|u(),H=0|Sn(0|(ee=0|Sn(0|($e=0|Sn(0|(ct=0|Sn(0|(ve=0|Zt(2097151&ve|0,0,0|Qe,0|Se)),0|u(),0|je,0|ct)),0|u(),0|ut,0|$e)),0|u(),0|Ge,0|ee)),0|u(),0|k,0|H),k=0|u(),ae=0|Zt(0|he,0|Ae,2097151&ae|0,0),ee=0|u(),Ge=0|Zt(2097151&jt|0,0,2097151&J|0,0),$e=0|u(),ut=0|Zt(2097151&te|0,0,2097151&Be|0,0),ct=0|u(),He=0|Zt(2097151&He|0,0,0|Qe,0|Se),je=0|u(),J=0|Zt(0|he,0|Ae,2097151&J|0,0),ve=0|u(),ve=0|Sn(0|(te=0|Sn(0|Zt(2097151&jt|0,0,2097151&Be|0,0),0|(De=0|u()),0|(te=0|Zt(2097151&te|0,0,0|Qe,0|Se)),0|u())),0|u(),0|J,0|ve),J=0|u(),jt=0|Sn(0|(Be=0|Zt(0|he,0|Ae,2097151&Be|0,0)),0|(te=0|u()),0|(jt=0|Zt(2097151&jt|0,0,0|Qe,0|Se)),0|u()),te=0|u(),Se=0|Zt(0|he,0|Ae,0|Qe,0|Se),Qe=0|u(),Be=0|An(0|(Ae=0|Sn(0|Ne,0|Ue,1048576,0)),0|(he=0|u()),21),De=0|u(),De=0|Sn(0|(re=0|Sn(0|(Ze=0|Sn(0|I,0|b,0|m,0|Ze)),0|u(),2097151&re|0,0)),0|u(),0|Be,0|De),Be=0|u(),he=0|Qn(0|Ne,0|Ue,-2097152&Ae|0,4095&he|0),Ae=0|u(),re=0|An(0|(Ue=0|Sn(0|Ke,0|Le,1048576,0)),0|(Ne=0|u()),21),Ze=0|u(),Ze=0|Sn(0|(Oe=0|Sn(0|(Fe=0|Sn(0|(W=0|Sn(0|(Bn=0|Sn(0|v,0|y,0|g,0|Bn)),0|u(),0|_,0|W)),0|u(),0|X,0|Fe)),0|u(),2097151&Oe|0,0)),0|u(),0|re,0|Ze),re=0|u(),X=0|tn(0|(Oe=0|Sn(0|Te,0|Re,1048576,0)),0|(Fe=0|u()),21),W=0|u(),W=0|Sn(0|(qe=0|Sn(0|(We=0|Sn(0|(T=0|Sn(0|(bn=0|Sn(0|(wn=0|Sn(0|(Cn=0|Sn(0|d,0|p,0|h,0|Cn)),0|u(),0|E,0|wn)),0|u(),0|In,0|bn)),0|u(),0|mn,0|T)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|u(),at=0|Sn(0|(ee=0|Sn(0|($e=0|Sn(0|(je=0|Sn(0|ut,0|ct,0|He,0|je)),0|u(),0|Ge,0|$e)),0|u(),0|ae,0|ee)),0|u(),0|it,0|at),it=0|u(),Ie=0|Qn(0|H,0|k,-2097152&ne|0,0|Ie),ne=0|u(),ee=0|Sn(0|jt,0|te,0|(ee=0|tn(0|(k=0|Sn(0|ve,0|J,1048576,0)),0|(H=0|u()),21)),0|u()),te=0|u(),H=0|Qn(0|ve,0|J,-2097152&k|0,0|H),k=0|u(),jt=0|tn(0|(J=0|Sn(0|Se,0|Qe,1048576,0)),0|(ve=0|u()),21),ae=0|u(),ve=0|Qn(0|Se,0|Qe,-2097152&J|0,0|ve),J=0|u(),$e=0|An(0|(Qe=0|Sn(0|De,0|Be,1048576,0)),0|(Se=0|u()),21),Ge=0|u(),Se=0|Qn(0|De,0|Be,-2097152&Qe|0,0|Se),Qe=0|u(),je=0|tn(0|(Be=0|Sn(0|Ze,0|re,1048576,0)),0|(De=0|u()),21),He=0|u(),De=0|Qn(0|Ze,0|re,-2097152&Be|0,0|De),Be=0|u(),ct=0|tn(0|(re=0|Sn(0|W,0|X,1048576,0)),0|(Ze=0|u()),21),ut=0|u(),Ze=0|Qn(0|W,0|X,-2097152&re|0,0|Ze),re=0|u(),_e=0|tn(0|(X=0|Sn(0|T,0|fe,1048576,0)),0|(W=0|u()),21),ke=0|u(),Ve=0|tn(0|(L=0|Sn(0|P,0|t,1048576,0)),0|(G=0|u()),21),ze=0|u(),n=0|tn(0|(se=0|Sn(0|$,0|Y,1048576,0)),0|(ce=0|u()),21),K=0|u(),Z=0|tn(0|(Xe=0|Sn(0|z,0|q,1048576,0)),0|(Je=0|u()),21),R=0|u(),N=0|tn(0|(be=0|Sn(0|me,0|j,1048576,0)),0|(F=0|u()),21),S=0|u(),ne=0|Sn(0|(Ht=0|tn(0|(Q=0|Sn(0|St,0|xt,1048576,0)),0|(we=0|u()),21)),0|u(),0|Ie,0|ne),Ie=0|u(),we=0|Qn(0|St,0|xt,-2097152&Q|0,0|we),Q=0|u(),k=0|Sn(0|(Ht=0|tn(0|(xt=0|Sn(0|at,0|it,1048576,0)),0|(St=0|u()),21)),0|u(),0|H,0|k),H=0|u(),St=0|Qn(0|at,0|it,-2097152&xt|0,0|St),xt=0|u(),J=0|Sn(0|(Ht=0|tn(0|(it=0|Sn(0|ee,0|te,1048576,0)),0|(at=0|u()),21)),0|u(),0|ve,0|J),ve=0|u(),at=0|Qn(0|ee,0|te,-2097152&it|0,0|at),it=0|u(),te=0|Zt(0|jt,0|ae,666643,0),ee=0|u(),Ht=0|Zt(0|jt,0|ae,470296,0),Tt=0|u(),U=0|Zt(0|jt,0|ae,654183,0),Ce=0|u(),le=0|Zt(0|jt,0|ae,-997805,-1),ue=0|u(),Me=0|Zt(0|jt,0|ae,136657,0),Pe=0|u(),S=0|Sn(0|(yt=0|Qn(0|(ae=0|Sn(0|Nt,0|ie,0|(ae=0|Zt(0|jt,0|ae,-683901,-1)),0|u())),0|u(),-2097152&gt|0,0|yt)),0|u(),0|N,0|S),N=0|u(),yt=0|Zt(0|J,0|ve,666643,0),gt=0|u(),ae=0|Zt(0|J,0|ve,470296,0),ie=0|u(),Nt=0|Zt(0|J,0|ve,654183,0),jt=0|u(),xe=0|Zt(0|J,0|ve,-997805,-1),Ee=0|u(),pt=0|Zt(0|J,0|ve,136657,0),dt=0|u(),ve=0|Zt(0|J,0|ve,-683901,-1),J=0|u(),rt=0|Zt(0|at,0|it,666643,0),nt=0|u(),bt=0|Zt(0|at,0|it,470296,0),vt=0|u(),ye=0|Zt(0|at,0|it,654183,0),ge=0|u(),Rt=0|Zt(0|at,0|it,-997805,-1),Ot=0|u(),oe=0|Zt(0|at,0|it,136657,0),O=0|u(),it=0|Zt(0|at,0|it,-683901,-1),at=0|u(),R=0|Sn(0|(Bt=0|Qn(0|(at=0|Sn(0|(dt=0|Sn(0|(ue=0|Sn(0|Dt,0|Pt,0|le,0|ue)),0|u(),0|pt,0|dt)),0|u(),0|it,0|at)),0|u(),-2097152&Ct|0,0|Bt)),0|u(),0|Z,0|R),Z=0|u(),Bt=0|Zt(0|k,0|H,666643,0),Ct=0|u(),at=0|Zt(0|k,0|H,470296,0),it=0|u(),dt=0|Zt(0|k,0|H,654183,0),pt=0|u(),ue=0|Zt(0|k,0|H,-997805,-1),le=0|u(),Pt=0|Zt(0|k,0|H,136657,0),Dt=0|u(),H=0|Zt(0|k,0|H,-683901,-1),k=0|u(),st=0|Zt(0|St,0|xt,666643,0),ot=0|u(),_t=0|Zt(0|St,0|xt,470296,0),Et=0|u(),tt=0|Zt(0|St,0|xt,654183,0),et=0|u(),ht=0|Zt(0|St,0|xt,-997805,-1),At=0|u(),V=0|Zt(0|St,0|xt,136657,0),i=0|u(),xt=0|Zt(0|St,0|xt,-683901,-1),St=0|u(),K=0|Sn(0|(wt=0|Qn(0|(St=0|Sn(0|(Dt=0|Sn(0|(Mt=0|Sn(0|(Ot=0|Sn(0|(Tt=0|Sn(0|Nt,0|jt,0|Ht,0|Tt)),0|u(),0|Rt,0|Ot)),0|u(),0|Ft,0|Mt)),0|u(),0|Pt,0|Dt)),0|u(),0|xt,0|St)),0|u(),-2097152&Qt|0,0|wt)),0|u(),0|n,0|K),n=0|u(),We=0|Qn(0|(ut=0|Sn(0|(wt=0|Sn(0|kt,0|It,0|(wt=0|Zt(0|ne,0|Ie,666643,0)),0|u())),0|u(),0|ct,0|ut)),0|u(),-2097152&qe|0,0|We),qe=0|u(),ut=0|Zt(0|ne,0|Ie,470296,0),ct=0|u(),wt=0|Zt(0|ne,0|Ie,654183,0),It=0|u(),ke=0|Sn(0|(x=0|Qn(0|(ft=0|Sn(0|(It=0|Sn(0|(Ct=0|Sn(0|_t,0|Et,0|Bt,0|Ct)),0|u(),0|wt,0|It)),0|u(),0|lt,0|ft)),0|u(),-2097152&M|0,0|x)),0|u(),0|_e,0|ke),_e=0|u(),x=0|Zt(0|ne,0|Ie,-997805,-1),M=0|u(),ft=0|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Q,0|we,666643,0)),0|u()),re=0|u(),Ze=0|Zt(0|Q,0|we,470296,0),Xe=0|u(),q=0|Zt(0|Q,0|we,654183,0),z=0|u(),k=0|Zt(0|Q,0|we,-997805,-1),H=0|u(),O=0|Zt(0|Q,0|we,136657,0),oe=0|u(),L=0|Qn(0|(Me=0|Sn(0|(we=0|Sn(0|D,0|Ye,0|(we=0|Zt(0|Q,0|we,-683901,-1)),0|u())),0|u(),0|Pe,0|Me)),0|u(),-2097152&G|0,0|L),G=0|u(),Me=0|Zt(0|Z,0|R,666643,0),Pe=0|u(),we=0|Sn(0|Je,0|re,0|(we=0|Zt(0|Z,0|R,470296,0)),0|u()),re=0|u(),Je=0|Zt(0|Z,0|R,654183,0),Ye=0|u(),D=0|Zt(0|Z,0|R,-997805,-1),Q=0|u(),Ce=0|Zt(0|Z,0|R,136657,0),U=0|u(),R=0|Zt(0|Z,0|R,-683901,-1),Z=0|u(),Ee=0|Sn(0|De,0|Be,0|(Ee=0|Zt(0|$,0|Y,666643,0)),0|u()),Be=0|u(),De=0|Zt(0|$,0|Y,470296,0),xe=0|u(),ne=0|Sn(0|we,0|re,0|(ne=0|Zt(0|$,0|Y,654183,0)),0|u()),re=0|u(),we=0|Zt(0|$,0|Y,-997805,-1),Ie=0|u(),i=0|Zt(0|$,0|Y,136657,0),V=0|u(),Y=0|Zt(0|$,0|Y,-683901,-1),$=0|u(),$=0|Sn(0|(U=0|Sn(0|(X=0|Qn(0|(be=0|Sn(0|(H=0|Sn(0|ke,0|_e,0|k,0|H)),0|u(),0|F,0|be)),0|u(),-2097152&W|0,0|X)),0|u(),0|Ce,0|U)),0|u(),0|Y,0|$),Y=0|u(),U=0|Zt(0|n,0|K,666643,0),Ce=0|u(),X=0|Zt(0|n,0|K,470296,0),W=0|u(),be=0|Zt(0|n,0|K,654183,0),F=0|u(),H=0|Zt(0|n,0|K,-997805,-1),k=0|u(),_e=0|Zt(0|n,0|K,136657,0),ke=0|u(),K=0|Zt(0|n,0|K,-683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1048576,0)),0|(j=0|u()),21),T=0|u(),Z=0|tn(0|(oe=0|Sn(0|le,0|ue,1048576,0)),0|(O=0|u()),21),R=0|u(),Q=0|Sn(0|M,0|x,0|(Q=0|tn(0|(V=0|Sn(0|X,0|W,1048576,0)),0|(i=0|u()),21)),0|u()),x=0|u(),S=0|Sn(0|P,0|t,0|(S=0|tn(0|(M=0|Sn(0|H,0|k,1048576,0)),0|(D=0|u()),21)),0|u()),t=0|u(),D=0|Qn(0|H,0|k,-2097152&M|0,0|D),M=0|u(),P=0|tn(0|(k=0|Sn(0|K,0|n,1048576,0)),0|(H=0|u()),21),N=0|u(),H=0|Qn(0|K,0|n,-2097152&k|0,0|H),k=0|u(),z=0|tn(0|(n=0|Sn(0|me,0|J,1048576,0)),0|(K=0|u()),21),q=0|u(),K=0|Qn(0|me,0|J,-2097152&n|0,0|K),n=0|u(),J=0|Sn(0|be,0|F,0|(J=0|Zt(0|z,0|q,666643,0)),0|u()),F=0|u(),be=0|Zt(0|z,0|q,470296,0),me=0|u(),de=0|Zt(0|z,0|q,654183,0),pe=0|u(),ce=0|Zt(0|z,0|q,-997805,-1),se=0|u(),re=0|Zt(0|z,0|q,136657,0),ne=0|u(),q=0|Zt(0|z,0|q,-683901,-1),z=0|u(),F=0|tn(0|J,0|F,21),U=0|u(),F=0|tn(0|(U=0|Sn(0|(j=0|Qn(0|(me=0|Sn(0|we,0|Ie,0|be,0|me)),0|u(),-2097152&ve|0,0|j)),0|u(),0|F,0|U)),0|u(),21),j=0|u(),F=0|tn(0|(j=0|Sn(0|(T=0|Sn(0|(Ae=0|Qn(0|(pe=0|Sn(0|ye,0|ge,0|de,0|pe)),0|u(),-2097152&he|0,0|Ae)),0|u(),0|fe,0|T)),0|u(),0|F,0|j)),0|u(),21),T=0|u(),F=0|tn(0|(T=0|Sn(0|(O=0|Qn(0|(se=0|Sn(0|le,0|ue,0|ce,0|se)),0|u(),-2097152&oe|0,0|O)),0|u(),0|F,0|T)),0|u(),21),O=0|u(),F=0|tn(0|(O=0|Sn(0|(R=0|Sn(0|(ee=0|Qn(0|(ne=0|Sn(0|ae,0|ie,0|re,0|ne)),0|u(),-2097152&te|0,0|ee)),0|u(),0|Z,0|R)),0|u(),0|F,0|O)),0|u(),21),R=0|u(),H=0|tn(0|(k=0|Sn(0|(t=0|tn(0|(D=0|Sn(0|S,0|t,0|(D=0|tn(0|(M=0|Sn(0|(x=0|tn(0|(F=0|Sn(0|Q,0|x,0|(F=0|tn(0|(R=0|Sn(0|(i=0|Qn(0|(z=0|Sn(0|X,0|W,0|q,0|z)),0|u(),-2097152&V|0,0|i)),0|u(),0|F,0|R)),0|u(),21)),0|u())),0|u(),21)),0|u(),0|D,0|M)),0|u(),21)),0|u())),0|u(),21)),0|u(),0|H,0|k)),0|u(),21),t=0|u(),J=0|Sn(0|($=0|Zt(0|(K=0|tn(0|(n=0|Sn(0|(H=0|tn(0|(t=0|Sn(0|($=0|Qn(0|(G=0|Sn(0|P,0|N,0|L,0|G)),0|u(),-2097152&Y|0,0|$)),0|u(),0|H,0|t)),0|u(),21)),0|u(),0|K,0|n)),0|u(),21)),0|(H=0|u()),666643,0)),0|u(),2097151&J|0,0),$=0|u(),U=0|Sn(0|(Y=0|Zt(0|K,0|H,470296,0)),0|u(),2097151&U|0,0),Y=0|u(),j=0|Sn(0|(G=0|Zt(0|K,0|H,654183,0)),0|u(),2097151&j|0,0),G=0|u(),T=0|Sn(0|(L=0|Zt(0|K,0|H,-997805,-1)),0|u(),2097151&T|0,0),L=0|u(),O=0|Sn(0|(N=0|Zt(0|K,0|H,136657,0)),0|u(),2097151&O|0,0),N=0|u(),n=0|Sn(0|(i=0|tn(0|(t=0|Sn(0|(Q=0|tn(0|(k=0|Sn(0|(x=0|tn(0|(D=0|Sn(0|(S=0|tn(0|(M=0|Sn(0|(P=0|tn(0|(F=0|Sn(0|(R=0|tn(0|(O=0|Sn(0|(R=0|Sn(0|(H=0|Zt(0|K,0|H,-683901,-1)),0|u(),2097151&R|0,0)),0|(H=0|u()),0|(O=0|tn(0|(T=0|Sn(0|O,0|N,0|(T=0|tn(0|(j=0|Sn(0|T,0|L,0|(j=0|tn(0|(U=0|Sn(0|j,0|G,0|(U=0|tn(0|(K=0|Sn(0|U,0|Y,0|(K=0|tn(0|J,0|$,21)),0|u())),0|(Y=0|u()),21)),0|u())),0|(G=0|u()),21)),0|u())),0|(L=0|u()),21)),0|u())),0|(N=0|u()),21)),0|u())),0|(H=0|u()),21)),0|u(),2097151&F|0,0)),0|(R=0|u()),21)),0|u(),2097151&M|0,0)),0|(P=0|u()),21)),0|u(),2097151&D|0,0)),0|(S=0|u()),21)),0|u(),2097151&k|0,0)),0|(x=0|u()),21)),0|u(),2097151&t|0,0)),0|(Q=0|u()),21)),0|u(),2097151&n|0,0),i=0|u(),r[e>>0]=J,V=0|An(0|J,0|$,8),u(),r[e+1>>0]=V,$=0|An(0|J,0|$,16),u(),J=0|cn(2097151&K|0,0,5),u(),r[e+2>>0]=J|31&$,$=0|An(0|K,0|Y,3),u(),r[e+3>>0]=$,Y=0|An(0|K,0|Y,11),u(),r[e+4>>0]=Y,K=0|An(2097151&K|0,0,19),Y=0|u(),$=0|cn(2097151&U|0,0,2),u(),r[e+5>>0]=$|K,G=0|An(0|U,0|G,6),u(),r[e+6>>0]=G,U=0|An(2097151&U|0,0,14),G=0|u(),K=0|cn(2097151&j|0,0,7),u(),r[e+7>>0]=K|U,U=0|An(0|j,0|L,1),u(),r[e+8>>0]=U,L=0|An(0|j,0|L,9),u(),r[e+9>>0]=L,j=0|An(2097151&j|0,0,17),L=0|u(),U=0|cn(2097151&T|0,0,4),u(),r[e+10>>0]=U|j,j=0|An(0|T,0|N,4),u(),r[e+11>>0]=j,N=0|An(0|T,0|N,12),u(),r[e+12>>0]=N,T=0|An(2097151&T|0,0,20),N=0|u(),j=0|cn(2097151&O|0,0,1),u(),r[e+13>>0]=j|T,H=0|An(0|O,0|H,7),u(),r[e+14>>0]=H,O=0|An(2097151&O|0,0,15),H=0|u(),T=0|cn(2097151&F|0,0,6),u(),r[e+15>>0]=T|O,O=0|An(0|F,0|R,2),u(),r[e+16>>0]=O,R=0|An(0|F,0|R,10),u(),r[e+17>>0]=R,F=0|An(2097151&F|0,0,18),R=0|u(),O=0|cn(0|M,0|P,3),u(),r[e+18>>0]=O|F,F=0|An(0|M,0|P,5),u(),r[e+19>>0]=F,P=0|An(0|M,0|P,13),u(),r[e+20>>0]=P,r[e+21>>0]=D,P=0|An(0|D,0|S,8),u(),r[e+22>>0]=P,S=0|An(0|D,0|S,16),u(),D=0|cn(2097151&k|0,0,5),u(),r[e+23>>0]=D|31&S,S=0|An(0|k,0|x,3),u(),r[e+24>>0]=S,x=0|An(0|k,0|x,11),u(),r[e+25>>0]=x,k=0|An(2097151&k|0,0,19),x=0|u(),S=0|cn(2097151&t|0,0,2),u(),r[e+26>>0]=S|k,Q=0|An(0|t,0|Q,6),u(),r[e+27>>0]=Q,t=0|An(2097151&t|0,0,14),Q=0|u(),k=0|cn(0|n,0|i,7),u(),r[e+28>>0]=k|t,t=0|An(0|n,0|i,1),u(),r[e+29>>0]=t,t=0|An(0|n,0|i,9),u(),r[e+30>>0]=t,i=0|tn(0|n,0|i,17),u(),r[e+31>>0]=i}function b(e,t,n,r){e|=0,r|=0;var a=0,o=0,s=0,c=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0,E=0,_=0,k=0,Q=0,S=0,x=0,D=0,P=0,M=0,F=0,O=0,R=0,T=0,H=0,j=0,N=0,U=0,L=0,K=0,G=0;!function(e,t){e|=0,t|=0;var n=0,r=0,a=0,o=0;n=0;do{o=0|Le(t+(n<<3)|0),a=0|u(),i[(r=e+(n<<3)|0)>>2]=o,i[r+4>>2]=a,n=n+1|0}while(16!=(0|n))}(n|=0,t|=0),a=e,o=(t=r)+64|0;do{i[t>>2]=i[a>>2],t=t+4|0,a=a+4|0}while((0|t)<(0|o));t=0|i[n>>2],a=0|i[n+4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:f;if((u=f+p|0)>>>0>f>>>0){o=0|i[f+24>>2],e=0|i[f+12>>2];do{if((0|e)==(0|f)){if(!(e=0|i[(n=f+20|0)>>2])&&!(e=0|i[(n=f+16|0)>>2])){n=0;break}for(;;)if(r=0|i[(a=e+20|0)>>2])e=r,n=a;else{if(!(r=0|i[(a=e+16|0)>>2]))break;e=r,n=a}i[n>>2]=0,n=e}else n=0|i[f+8>>2],i[n+12>>2]=e,i[e+8>>2]=n,n=e}while(0);do{if(0|o){if(e=0|i[f+28>>2],(0|f)==(0|i[35020+(e<<2)>>2])){if(i[35020+(e<<2)>>2]=n,!n){i[8680]=c&~(1<<e);break}}else if(i[((0|i[o+16>>2])==(0|f)?o+16|0:o+20|0)>>2]=n,!n)break;i[n+24>>2]=o,0|(e=0|i[f+16>>2])&&(i[n+16>>2]=e,i[e+24>>2]=n),0|(e=0|i[f+20>>2])&&(i[n+20>>2]=e,i[e+24>>2]=n)}}while(0);return l>>>0<16?(C=l+p|0,i[f+4>>2]=3|C,i[(C=f+C+4|0)>>2]=1|i[C>>2]):(i[f+4>>2]=3|p,i[u+4>>2]=1|l,i[u+l>>2]=l,0|h&&(r=0|i[8684],1<<(h>>>3)&A?(e=34756+(h>>>3<<1<<2)+8|0,n=0|i[34756+(h>>>3<<1<<2)+8>>2]):(i[8679]=1<<(h>>>3)|A,e=34756+(h>>>3<<1<<2)+8|0,n=34756+(h>>>3<<1<<2)|0),i[e>>2]=r,i[n+12>>2]=r,i[r+8>>2]=n,i[r+12>>2]=34756+(h>>>3<<1<<2)),i[8681]=l,i[8684]=u),y=t,0|f+8}}}}else if(e>>>0<=4294967231){if(p=e+11&-8,a=0|i[8680]){l=(e+11|0)>>>8?p>>>0>16777215?31:p>>>(7+(l=14-((520192+(l=(e+11|0)>>>8<<((1048320+((e+11|0)>>>8)|0)>>>16&8))|0)>>>16&4|(1048320+((e+11|0)>>>8)|0)>>>16&8|(245760+(l<<((l+520192|0)>>>16&4))|0)>>>16&2)+(l<<((l+520192|0)>>>16&4)<<((245760+(l<<((l+520192|0)>>>16&4))|0)>>>16&2)>>>15)|0)|0)&1|l<<1:0,e=0|i[35020+(l<<2)>>2];e:do{if(e)for(r=0-p|0,n=0,u=p<<(31==(0|l)?0:25-(l>>>1)|0),c=0;;){if((o=(-8&i[e+4>>2])-p|0)>>>0<r>>>0){if(!o){r=0,n=e,m=65;break e}r=o,c=e}if(n=0==(0|(m=0|i[e+20>>2]))|(0|m)==(0|(e=0|i[e+16+(u>>>31<<2)>>2]))?n:m,!e){e=c,m=61;break}u<<=1}else r=0-p|0,n=0,e=0,m=61}while(0);if(61==(0|m)){if(0==(0|n)&0==(0|e)){if(!(((e=2<<l)|0-e)&a))break;n=0|i[35020+(((h=((e|0-e)&a&0-((e|0-e)&a))-1|0)>>>(h>>>12&16)>>>5&8|h>>>12&16|(e=h>>>(h>>>12&16)>>>(h>>>(h>>>12&16)>>>5&8))>>>2&4|e>>>(e>>>2&4)>>>1&2|(n=e>>>(e>>>2&4)>>>(e>>>(e>>>2&4)>>>1&2))>>>1&1)+(n>>>(n>>>1&1))<<2)>>2],e=0}n?m=65:(c=r,u=e)}if(65==(0|m))for(;;){if(r=(o=(h=(-8&i[n+4>>2])-p|0)>>>0<r>>>0)?h:r,o=o?n:e,(e=0|i[n+16>>2])||(e=0|i[n+20>>2]),!e){c=r,u=o;break}n=e,e=o}if(0!=(0|u)&&c>>>0<((0|i[8681])-p|0)>>>0&&(f=u+p|0)>>>0>u>>>0){s=0|i[u+24>>2],e=0|i[u+12>>2];do{if((0|e)==(0|u)){if(!(e=0|i[(n=u+20|0)>>2])&&!(e=0|i[(n=u+16|0)>>2])){e=0;break}for(;;)if(r=0|i[(o=e+20|0)>>2])e=r,n=o;else{if(!(r=0|i[(o=e+16|0)>>2]))break;e=r,n=o}i[n>>2]=0}else C=0|i[u+8>>2],i[C+12>>2]=e,i[e+8>>2]=C}while(0);do{if(s){if(n=0|i[u+28>>2],(0|u)==(0|i[35020+(n<<2)>>2])){if(i[35020+(n<<2)>>2]=e,!e){i[8680]=a&~(1<<n),a&=~(1<<n);break}}else if(i[((0|i[s+16>>2])==(0|u)?s+16|0:s+20|0)>>2]=e,!e)break;i[e+24>>2]=s,0|(n=0|i[u+16>>2])&&(i[e+16>>2]=n,i[n+24>>2]=e),(n=0|i[u+20>>2])&&(i[e+20>>2]=n,i[n+24>>2]=e)}}while(0);e:do{if(c>>>0<16)C=c+p|0,i[u+4>>2]=3|C,i[(C=u+C+4|0)>>2]=1|i[C>>2];else{if(i[u+4>>2]=3|p,i[f+4>>2]=1|c,i[f+c>>2]=c,r=c>>>3,c>>>0<256){(e=0|i[8679])&1<<r?(e=34756+(r<<1<<2)+8|0,n=0|i[34756+(r<<1<<2)+8>>2]):(i[8679]=e|1<<r,e=34756+(r<<1<<2)+8|0,n=34756+(r<<1<<2)|0),i[e>>2]=f,i[n+12>>2]=f,i[f+8>>2]=n,i[f+12>>2]=34756+(r<<1<<2);break}if(e=35020+((r=(e=c>>>8)?c>>>0>16777215?31:c>>>(7+(r=14-((520192+(e<<((e+1048320|0)>>>16&8))|0)>>>16&4|(e+1048320|0)>>>16&8|(245760+(r=e<<((e+1048320|0)>>>16&8)<<((520192+(e<<((e+1048320|0)>>>16&8))|0)>>>16&4))|0)>>>16&2)+(r<<((r+245760|0)>>>16&2)>>>15)|0)|0)&1|r<<1:0)<<2)|0,i[f+28>>2]=r,i[f+16+4>>2]=0,i[f+16>>2]=0,!(a&(n=1<<r))){i[8680]=a|n,i[e>>2]=f,i[f+24>>2]=e,i[f+12>>2]=f,i[f+8>>2]=f;break}e=0|i[e>>2];t:do{if((-8&i[e+4>>2]|0)!=(0|c)){for(a=c<<(31==(0|r)?0:25-(r>>>1)|0);n=0|i[(r=e+16+(a>>>31<<2)|0)>>2];){if((-8&i[n+4>>2]|0)==(0|c)){e=n;break t}a<<=1,e=n}i[r>>2]=f,i[f+24>>2]=e,i[f+12>>2]=f,i[f+8>>2]=f;break e}}while(0);C=0|i[(w=e+8|0)>>2],i[C+12>>2]=f,i[w>>2]=f,i[f+8>>2]=C,i[f+12>>2]=e,i[f+24>>2]=0}}while(0);return y=t,0|u+8}}}else p=-1}while(0);if((r=0|i[8681])>>>0>=p>>>0)return n=r-p|0,e=0|i[8684],n>>>0>15?(C=e+p|0,i[8684]=C,i[8681]=n,i[C+4>>2]=1|n,i[e+r>>2]=n,i[e+4>>2]=3|p):(i[8681]=0,i[8684]=0,i[e+4>>2]=3|r,i[e+r+4>>2]=1|i[e+r+4>>2]),y=t,0|e+8;if((o=0|i[8682])>>>0>p>>>0)return I=o-p|0,i[8682]=I,w=(C=0|i[8685])+p|0,i[8685]=w,i[w+4>>2]=1|I,i[C+4>>2]=3|p,y=t,0|C+8;if(0|i[8797]?e=0|i[8799]:(i[8799]=4096,i[8798]=4096,i[8800]=-1,i[8801]=-1,i[8802]=0,i[8790]=0,i[8797]=-16&d^1431655768,e=4096),c=p+48|0,((f=e+(u=p+47|0)|0)&(l=0-e|0))>>>0<=p>>>0)return y=t,0;if(0|(e=0|i[8789])&&(((d=0|i[8787])+(f&l)|0)>>>0<=d>>>0||(d+(f&l)|0)>>>0>e>>>0))return y=t,0;e:do{if(4&i[8790])e=0,m=143;else{n=0|i[8685];t:do{if(n){for(r=35164;!((e=0|i[r>>2])>>>0<=n>>>0&&(e+(0|i[(v=r+4|0)>>2])|0)>>>0>n>>>0);){if(!(e=0|i[r+8>>2])){m=128;break t}r=e}if((f-o&l)>>>0<2147483647)if((0|(e=0|St(f-o&l)))==((0|i[r>>2])+(0|i[v>>2])|0)){if(-1!=(0|e)){c=e,s=f-o&l,m=145;break e}e=f-o&l}else a=e,r=f-o&l,m=136;else e=0}else m=128}while(0);do{if(128==(0|m))if(-1!=(0|(n=0|St(0)))&&(s=(0==((s=0|i[8798])-1&n|0)?0:(s+-1+n&0-s)-n|0)+(f&l)|0,g=0|i[8787],s>>>0>p>>>0&s>>>0<2147483647)){if(0|(v=0|i[8789])&&(s+g|0)>>>0<=g>>>0|(s+g|0)>>>0>v>>>0){e=0;break}if((0|(e=0|St(s)))==(0|n)){c=n,m=145;break e}a=e,r=s,m=136}else e=0}while(0);do{if(136==(0|m)){if(n=0-r|0,!(c>>>0>r>>>0&r>>>0<2147483647&-1!=(0|a))){if(-1==(0|a)){e=0;break}c=a,s=r,m=145;break e}if((e=u-r+(e=0|i[8799])&0-e)>>>0>=2147483647){c=a,s=r,m=145;break e}if(-1==(0|St(e))){St(n),e=0;break}c=a,s=e+r|0,m=145;break e}}while(0);i[8790]=4|i[8790],m=143}}while(0);if(143==(0|m)&&(f&l)>>>0<2147483647&&!(-1==(0|(b=0|St(f&l)))|1^(w=((I=0|St(0))-b|0)>>>0>(p+40|0)>>>0)|b>>>0<I>>>0&-1!=(0|b)&-1!=(0|I)^1)&&(c=b,s=w?I-b|0:e,m=145),145==(0|m)){e=(0|i[8787])+s|0,i[8787]=e,e>>>0>(0|i[8788])>>>0&&(i[8788]=e),l=0|i[8685];e:do{if(l){for(o=35164;;){if((0|c)==((e=0|i[o>>2])+(n=0|i[(a=o+4|0)>>2])|0)){m=154;break}if(!(r=0|i[o+8>>2]))break;o=r}if(154==(0|m)&&0==(8&i[o+12>>2]|0)&&c>>>0>l>>>0&e>>>0<=l>>>0){i[a>>2]=n+s,C=(0|i[8682])+s|0,w=0==(l+8&7|0)?0:0-(l+8)&7,i[8685]=l+w,i[8682]=C-w,i[l+w+4>>2]=C-w|1,i[l+C+4>>2]=40,i[8686]=i[8801];break}for(c>>>0<(0|i[8683])>>>0&&(i[8683]=c),r=c+s|0,n=35164;;){if((0|i[n>>2])==(0|r)){m=162;break}if(!(e=0|i[n+8>>2]))break;n=e}if(162==(0|m)&&0==(8&i[n+12>>2]|0)){i[n>>2]=c,i[(A=n+4|0)>>2]=(0|i[A>>2])+s,f=(A=c+(0==(7&(A=c+8|0)|0)?0:0-A&7)|0)+p|0,u=(e=r+(0==(r+8&7|0)?0:0-(r+8)&7)|0)-A-p|0,i[A+4>>2]=3|p;t:do{if((0|l)==(0|e))C=(0|i[8682])+u|0,i[8682]=C,i[8685]=f,i[f+4>>2]=1|C;else{if((0|i[8684])==(0|e)){C=(0|i[8681])+u|0,i[8681]=C,i[8684]=f,i[f+4>>2]=1|C,i[f+C>>2]=C;break}if(1==(3&(c=0|i[e+4>>2])|0)){n:do{if(c>>>0<256){if(n=0|i[e+8>>2],(0|(r=0|i[e+12>>2]))==(0|n)){i[8679]=i[8679]&~(1<<(c>>>3));break}i[n+12>>2]=r,i[r+8>>2]=n;break}s=0|i[e+24>>2],n=0|i[e+12>>2];do{if((0|n)==(0|e)){if(n=0|i[e+16+4>>2])r=e+16+4|0;else{if(!(n=0|i[e+16>>2])){n=0;break}r=e+16|0}for(;;)if(a=0|i[(o=n+20|0)>>2])n=a,r=o;else{if(!(a=0|i[(o=n+16|0)>>2]))break;n=a,r=o}i[r>>2]=0}else C=0|i[e+8>>2],i[C+12>>2]=n,i[n+8>>2]=C}while(0);if(!s)break;r=0|i[e+28>>2];do{if((0|i[35020+(r<<2)>>2])==(0|e)){if(i[35020+(r<<2)>>2]=n,0|n)break;i[8680]=i[8680]&~(1<<r);break n}if(i[((0|i[s+16>>2])==(0|e)?s+16|0:s+20|0)>>2]=n,!n)break n}while(0);if(i[n+24>>2]=s,0|(r=0|i[e+16>>2])&&(i[n+16>>2]=r,i[r+24>>2]=n),!(r=0|i[e+16+4>>2]))break;i[n+20>>2]=r,i[r+24>>2]=n}while(0);e=e+(-8&c)|0,o=(-8&c)+u|0}else o=u;if(i[(r=e+4|0)>>2]=-2&i[r>>2],i[f+4>>2]=1|o,i[f+o>>2]=o,r=o>>>3,o>>>0<256){(e=0|i[8679])&1<<r?(e=34756+(r<<1<<2)+8|0,n=0|i[34756+(r<<1<<2)+8>>2]):(i[8679]=e|1<<r,e=34756+(r<<1<<2)+8|0,n=34756+(r<<1<<2)|0),i[e>>2]=f,i[n+12>>2]=f,i[f+8>>2]=n,i[f+12>>2]=34756+(r<<1<<2);break}e=o>>>8;do{if(e){if(o>>>0>16777215){a=31;break}a=o>>>(7+(a=14-((520192+(e<<((e+1048320|0)>>>16&8))|0)>>>16&4|(e+1048320|0)>>>16&8|(245760+(a=e<<((e+1048320|0)>>>16&8)<<((520192+(e<<((e+1048320|0)>>>16&8))|0)>>>16&4))|0)>>>16&2)+(a<<((a+245760|0)>>>16&2)>>>15)|0)|0)&1|a<<1}else a=0}while(0);if(n=35020+(a<<2)|0,i[f+28>>2]=a,i[f+16+4>>2]=0,i[f+16>>2]=0,!((e=0|i[8680])&(r=1<<a))){i[8680]=e|r,i[n>>2]=f,i[f+24>>2]=n,i[f+12>>2]=f,i[f+8>>2]=f;break}e=0|i[n>>2];n:do{if((-8&i[e+4>>2]|0)!=(0|o)){for(a=o<<(31==(0|a)?0:25-(a>>>1)|0);n=0|i[(r=e+16+(a>>>31<<2)|0)>>2];){if((-8&i[n+4>>2]|0)==(0|o)){e=n;break n}a<<=1,e=n}i[r>>2]=f,i[f+24>>2]=e,i[f+12>>2]=f,i[f+8>>2]=f;break t}}while(0);C=0|i[(w=e+8|0)>>2],i[C+12>>2]=f,i[w>>2]=f,i[f+8>>2]=C,i[f+12>>2]=e,i[f+24>>2]=0}}while(0);return y=t,0|A+8}for(n=35164;!((e=0|i[n>>2])>>>0<=l>>>0&&(C=e+(0|i[n+4>>2])|0)>>>0>l>>>0);)n=0|i[n+8>>2];o=(o=C+-47+(0==(C+-47+8&7|0)?0:0-(C+-47+8)&7)|0)>>>0<(l+16|0)>>>0?l:o,e=s+-40|0,w=c+(I=0==(7&(I=c+8|0)|0)?0:0-I&7)|0,i[8685]=w,i[8682]=e-I,i[w+4>>2]=e-I|1,i[c+e+4>>2]=40,i[8686]=i[8801],i[o+4>>2]=27,i[o+8>>2]=i[8791],i[o+8+4>>2]=i[8792],i[o+8+8>>2]=i[8793],i[o+8+12>>2]=i[8794],i[8791]=c,i[8792]=s,i[8794]=0,i[8793]=o+8,e=o+24|0;do{w=e,i[(e=e+4|0)>>2]=7}while((w+8|0)>>>0<C>>>0);if((0|o)!=(0|l)){if(i[o+4>>2]=-2&i[o+4>>2],i[l+4>>2]=o-l|1,i[o>>2]=o-l,(o-l|0)>>>0<256){r=34756+((o-l|0)>>>3<<1<<2)|0,(e=0|i[8679])&1<<((o-l|0)>>>3)?(e=r+8|0,n=0|i[r+8>>2]):(i[8679]=e|1<<((o-l|0)>>>3),e=r+8|0,n=r),i[e>>2]=l,i[n+12>>2]=l,i[l+8>>2]=n,i[l+12>>2]=r;break}if(n=35020+((a=(o-l|0)>>>8?(o-l|0)>>>0>16777215?31:(o-l|0)>>>(7+(a=14-((520192+(a=(o-l|0)>>>8<<((1048320+((o-l|0)>>>8)|0)>>>16&8))|0)>>>16&4|(1048320+((o-l|0)>>>8)|0)>>>16&8|(245760+(a<<((a+520192|0)>>>16&4))|0)>>>16&2)+(a<<((a+520192|0)>>>16&4)<<((245760+(a<<((a+520192|0)>>>16&4))|0)>>>16&2)>>>15)|0)|0)&1|a<<1:0)<<2)|0,i[l+28>>2]=a,i[l+20>>2]=0,i[l+16>>2]=0,!((e=0|i[8680])&(r=1<<a))){i[8680]=e|r,i[n>>2]=l,i[l+24>>2]=n,i[l+12>>2]=l,i[l+8>>2]=l;break}e=0|i[n>>2];t:do{if((-8&i[e+4>>2]|0)!=(o-l|0)){for(a=o-l<<(31==(0|a)?0:25-(a>>>1)|0);n=0|i[(r=e+16+(a>>>31<<2)|0)>>2];){if((-8&i[n+4>>2]|0)==(o-l|0)){e=n;break t}a<<=1,e=n}i[r>>2]=l,i[l+24>>2]=e,i[l+12>>2]=l,i[l+8>>2]=l;break e}}while(0);C=0|i[(w=e+8|0)>>2],i[C+12>>2]=l,i[w>>2]=l,i[l+8>>2]=C,i[l+12>>2]=e,i[l+24>>2]=0}}else 0==(0|(C=0|i[8683]))|c>>>0<C>>>0&&(i[8683]=c),i[8791]=c,i[8792]=s,i[8794]=0,i[8688]=i[8797],i[8687]=-1,i[8692]=34756,i[8691]=34756,i[8694]=34764,i[8693]=34764,i[8696]=34772,i[8695]=34772,i[8698]=34780,i[8697]=34780,i[8700]=34788,i[8699]=34788,i[8702]=34796,i[8701]=34796,i[8704]=34804,i[8703]=34804,i[8706]=34812,i[8705]=34812,i[8708]=34820,i[8707]=34820,i[8710]=34828,i[8709]=34828,i[8712]=34836,i[8711]=34836,i[8714]=34844,i[8713]=34844,i[8716]=34852,i[8715]=34852,i[8718]=34860,i[8717]=34860,i[8720]=34868,i[8719]=34868,i[8722]=34876,i[8721]=34876,i[8724]=34884,i[8723]=34884,i[8726]=34892,i[8725]=34892,i[8728]=34900,i[8727]=34900,i[8730]=34908,i[8729]=34908,i[8732]=34916,i[8731]=34916,i[8734]=34924,i[8733]=34924,i[8736]=34932,i[8735]=34932,i[8738]=34940,i[8737]=34940,i[8740]=34948,i[8739]=34948,i[8742]=34956,i[8741]=34956,i[8744]=34964,i[8743]=34964,i[8746]=34972,i[8745]=34972,i[8748]=34980,i[8747]=34980,i[8750]=34988,i[8749]=34988,i[8752]=34996,i[8751]=34996,i[8754]=35004,i[8753]=35004,C=s+-40|0,w=c+(I=0==(7&(I=c+8|0)|0)?0:0-I&7)|0,i[8685]=w,i[8682]=C-I,i[w+4>>2]=C-I|1,i[c+C+4>>2]=40,i[8686]=i[8801]}while(0);if((e=0|i[8682])>>>0>p>>>0)return I=e-p|0,i[8682]=I,w=(C=0|i[8685])+p|0,i[8685]=w,i[w+4>>2]=1|I,i[C+4>>2]=3|p,y=t,0|C+8}return i[8678]=48,y=t,0}function w(e){var t,n,i,a,o=0,s=0,c=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0,E=0,_=0,k=0,Q=0,S=0,x=0,D=0,P=0,M=0,F=0,O=0,R=0,T=0,H=0,j=0,N=0,U=0,L=0,K=0,G=0,$=0,Y=0,J=0,V=0,z=0,q=0,W=0,X=0,Z=0,ee=0,te=0,ne=0,re=0,ie=0,ae=0,oe=0,se=0,ce=0,ue=0,le=0,fe=0,Ae=0,he=0,pe=0,de=0,ge=0,ye=0;$=0|Wt(0|r[(e|=0)>>0],0|r[e+1>>0],0|r[e+2>>0]),u(),V=0|An(0|(V=0|mt(e+2|0)),0|u(),5),u(),R=0|An(0|(R=0|Wt(0|r[e+5>>0],0|r[e+6>>0],0|r[e+7>>0])),0|u(),2),u(),y=0|An(0|(y=0|mt(e+7|0)),0|u(),7),u(),Y=0|An(0|(Y=0|mt(e+10|0)),0|u(),4),u(),X=0|An(0|(X=0|Wt(0|r[e+13>>0],0|r[e+14>>0],0|r[e+15>>0])),0|u(),1),u(),_=0|An(0|(_=0|mt(e+15|0)),0|u(),6),u(),ue=0|An(0|(ue=0|Wt(0|r[e+18>>0],0|r[e+19>>0],0|r[e+20>>0])),0|u(),3),u(),he=0|Wt(0|r[e+21>>0],0|r[e+22>>0],0|r[e+23>>0]),u(),oe=0|An(0|(oe=0|mt(e+23|0)),0|u(),5),u(),Ae=0|An(0|(Ae=0|Wt(0|r[e+26>>0],0|r[e+27>>0],0|r[e+28>>0])),0|u(),2),u(),ne=0|An(0|(ne=0|mt(e+28|0)),0|u(),7),u(),ge=0|An(0|(ge=0|mt(e+31|0)),0|u(),4),u(),x=0|An(0|(x=0|Wt(0|r[e+34>>0],0|r[e+35>>0],0|r[e+36>>0])),0|u(),1),u(),K=0|An(0|(K=0|mt(e+36|0)),0|u(),6),u(),w=0|An(0|(w=0|Wt(0|r[e+39>>0],0|r[e+40>>0],0|r[e+41>>0])),0|u(),3),u(),c=0|Wt(0|r[e+42>>0],0|r[e+43>>0],0|r[e+44>>0]),u(),U=0|An(0|(U=0|mt(e+44|0)),0|u(),5),u(),ie=0|An(0|(ie=0|Wt(0|r[e+47>>0],0|r[e+48>>0],0|r[e+49>>0])),0|u(),2),u(),ye=0|An(0|(ye=0|mt(e+49|0)),0|u(),7),u(),d=0|An(0|(d=0|mt(e+52|0)),0|u(),4),u(),Q=0|An(0|(Q=0|Wt(0|r[e+55>>0],0|r[e+56>>0],0|r[e+57>>0])),0|u(),1),u(),M=0|An(0|(M=0|mt(e+57|0)),0|u(),6),u(),h=0|Zt(0|(J=0|An(0|(J=0|mt(e+60|0)),0|u(),3)),0|(l=0|u()),666643,0),I=0|u(),fe=0|Zt(0|J,0|l,470296,0),C=0|u(),D=0|Zt(0|J,0|l,654183,0),f=0|u(),k=0|Zt(0|J,0|l,-997805,-1),p=0|u(),w=0|Sn(0|(o=0|Zt(0|J,0|l,136657,0)),0|u(),2097151&w|0,0),o=0|u(),c=0|Sn(0|(l=0|Zt(0|J,0|l,-683901,-1)),0|u(),2097151&c|0,0),l=0|u(),J=0|Zt(2097151&M|0,0,666643,0),L=0|u(),E=0|Zt(2097151&M|0,0,470296,0),te=0|u(),F=0|Zt(2097151&M|0,0,654183,0),s=0|u(),q=0|Zt(2097151&M|0,0,-997805,-1),z=0|u(),G=0|Zt(2097151&M|0,0,136657,0),b=0|u(),M=0|Sn(0|w,0|o,0|(M=0|Zt(2097151&M|0,0,-683901,-1)),0|u()),o=0|u(),w=0|Zt(2097151&Q|0,0,666643,0),W=0|u(),S=0|Zt(2097151&Q|0,0,470296,0),re=0|u(),N=0|Zt(2097151&Q|0,0,654183,0),A=0|u(),pe=0|Zt(2097151&Q|0,0,-997805,-1),le=0|u(),ee=0|Zt(2097151&Q|0,0,136657,0),O=0|u(),b=0|Sn(0|(p=0|Sn(0|(K=0|Sn(0|(Q=0|Zt(2097151&Q|0,0,-683901,-1)),0|u(),2097151&K|0,0)),0|u(),0|k,0|p)),0|u(),0|G,0|b),G=0|u(),p=0|Zt(2097151&d|0,0,666643,0),k=0|u(),K=0|Zt(2097151&d|0,0,470296,0),Q=0|u(),v=0|Zt(2097151&d|0,0,654183,0),Z=0|u(),T=0|Zt(2097151&d|0,0,-997805,-1),H=0|u(),a=0|Zt(2097151&d|0,0,136657,0),de=0|u(),d=0|Zt(2097151&d|0,0,-683901,-1),g=0|u(),m=0|Zt(2097151&ye|0,0,666643,0),P=0|u(),se=0|Zt(2097151&ye|0,0,470296,0),ce=0|u(),n=0|Zt(2097151&ye|0,0,654183,0),ae=0|u(),i=0|Zt(2097151&ye|0,0,-997805,-1),j=0|u(),t=0|Zt(2097151&ye|0,0,136657,0),B=0|u(),s=0|Sn(0|(C=0|Sn(0|(le=0|Sn(0|(de=0|Sn(0|(ge=0|Sn(0|(ye=0|Zt(2097151&ye|0,0,-683901,-1)),0|u(),2097151&ge|0,0)),0|u(),0|a,0|de)),0|u(),0|pe,0|le)),0|u(),0|fe,0|C)),0|u(),0|F,0|s),F=0|u(),_=0|Sn(0|(C=0|Zt(2097151&ie|0,0,666643,0)),0|u(),2097151&_|0,0),C=0|u(),fe=0|Zt(2097151&ie|0,0,470296,0),le=0|u(),k=0|Sn(0|(ce=0|Sn(0|(he=0|Sn(0|(pe=0|Zt(2097151&ie|0,0,654183,0)),0|u(),2097151&he|0,0)),0|u(),0|se,0|ce)),0|u(),0|p,0|k),p=0|u(),ce=0|Zt(2097151&ie|0,0,-997805,-1),se=0|u(),L=0|Sn(0|(re=0|Sn(0|(Z=0|Sn(0|(j=0|Sn(0|(Ae=0|Sn(0|(he=0|Zt(2097151&ie|0,0,136657,0)),0|u(),2097151&Ae|0,0)),0|u(),0|i,0|j)),0|u(),0|v,0|Z)),0|u(),0|S,0|re)),0|u(),0|J,0|L),J=0|u(),ie=0|Zt(2097151&ie|0,0,-683901,-1),re=0|u(),v=0|An(0|(S=0|Sn(0|_,0|C,1048576,0)),0|(Z=0|u()),21),j=0|u(),j=0|Sn(0|(P=0|Sn(0|(ue=0|Sn(0|fe,0|le,2097151&ue|0,0)),0|u(),0|m,0|P)),0|u(),0|v,0|j),v=0|u(),Z=0|Qn(0|_,0|C,-2097152&S|0,2047&Z|0),S=0|u(),P=0|An(0|(C=0|Sn(0|k,0|p,1048576,0)),0|(_=0|u()),21),m=0|u(),m=0|Sn(0|(W=0|Sn(0|(Q=0|Sn(0|(ae=0|Sn(0|(oe=0|Sn(0|ce,0|se,2097151&oe|0,0)),0|u(),0|n,0|ae)),0|u(),0|K,0|Q)),0|u(),0|w,0|W)),0|u(),0|P,0|m),P=0|u(),Q=0|tn(0|(W=0|Sn(0|L,0|J,1048576,0)),0|(w=0|u()),21),K=0|u(),K=0|Sn(0|(te=0|Sn(0|(I=0|Sn(0|(A=0|Sn(0|(H=0|Sn(0|(B=0|Sn(0|(ne=0|Sn(0|ie,0|re,2097151&ne|0,0)),0|u(),0|t,0|B)),0|u(),0|T,0|H)),0|u(),0|N,0|A)),0|u(),0|h,0|I)),0|u(),0|E,0|te)),0|u(),0|Q,0|K),Q=0|u(),I=0|tn(0|(te=0|Sn(0|s,0|F,1048576,0)),0|(E=0|u()),21),h=0|u(),h=0|Sn(0|(z=0|Sn(0|(f=0|Sn(0|(O=0|Sn(0|(x=0|Sn(0|d,0|g,2097151&x|0,0)),0|u(),0|ee,0|O)),0|u(),0|D,0|f)),0|u(),0|q,0|z)),0|u(),0|I,0|h),I=0|u(),E=0|Qn(0|s,0|F,-2097152&te|0,0|E),te=0|u(),z=0|Sn(0|M,0|o,0|(z=0|tn(0|(F=0|Sn(0|b,0|G,1048576,0)),0|(s=0|u()),21)),0|u()),o=0|u(),s=0|Qn(0|b,0|G,-2097152&F|0,0|s),F=0|u(),U=0|Sn(0|(M=0|tn(0|(G=0|Sn(0|c,0|l,1048576,0)),0|(b=0|u()),21)),0|u(),2097151&U|0,0),M=0|u(),b=0|Qn(0|c,0|l,-2097152&G|0,0|b),G=0|u(),q=0|An(0|(l=0|Sn(0|j,0|v,1048576,0)),0|(c=0|u()),21),f=0|u(),c=0|Qn(0|j,0|v,-2097152&l|0,0|c),l=0|u(),D=0|tn(0|(v=0|Sn(0|m,0|P,1048576,0)),0|(j=0|u()),21),O=0|u(),te=0|Sn(0|(g=0|tn(0|(ee=0|Sn(0|K,0|Q,1048576,0)),0|(x=0|u()),21)),0|u(),0|E,0|te),E=0|u(),x=0|Qn(0|K,0|Q,-2097152&ee|0,0|x),ee=0|u(),F=0|Sn(0|(g=0|tn(0|(Q=0|Sn(0|h,0|I,1048576,0)),0|(K=0|u()),21)),0|u(),0|s,0|F),s=0|u(),K=0|Qn(0|h,0|I,-2097152&Q|0,0|K),Q=0|u(),G=0|Sn(0|(g=0|tn(0|(I=0|Sn(0|z,0|o,1048576,0)),0|(h=0|u()),21)),0|u(),0|b,0|G),b=0|u(),h=0|Qn(0|z,0|o,-2097152&I|0,0|h),I=0|u(),X=0|Sn(0|(o=0|Zt(0|U,0|M,666643,0)),0|u(),2097151&X|0,0),o=0|u(),z=0|Sn(0|Z,0|S,0|(z=0|Zt(0|U,0|M,470296,0)),0|u()),S=0|u(),Z=0|Sn(0|c,0|l,0|(Z=0|Zt(0|U,0|M,654183,0)),0|u()),l=0|u(),c=0|Zt(0|U,0|M,-997805,-1),g=0|u(),d=0|Zt(0|U,0|M,136657,0),A=0|u(),w=0|Qn(0|(O=0|Sn(0|(J=0|Sn(0|(M=0|Zt(0|U,0|M,-683901,-1)),0|u(),0|L,0|J)),0|u(),0|D,0|O)),0|u(),-2097152&W|0,0|w),W=0|u(),Y=0|Sn(0|(O=0|Zt(0|G,0|b,666643,0)),0|u(),2097151&Y|0,0),O=0|u(),D=0|Sn(0|X,0|o,0|(D=0|Zt(0|G,0|b,470296,0)),0|u()),o=0|u(),X=0|Sn(0|z,0|S,0|(X=0|Zt(0|G,0|b,654183,0)),0|u()),S=0|u(),z=0|Sn(0|Z,0|l,0|(z=0|Zt(0|G,0|b,-997805,-1)),0|u()),l=0|u(),Z=0|Zt(0|G,0|b,136657,0),J=0|u(),b=0|Zt(0|G,0|b,-683901,-1),G=0|u(),y=0|Sn(0|(L=0|Zt(0|h,0|I,666643,0)),0|u(),2097151&y|0,0),L=0|u(),M=0|Sn(0|Y,0|O,0|(M=0|Zt(0|h,0|I,470296,0)),0|u()),O=0|u(),Y=0|Sn(0|D,0|o,0|(Y=0|Zt(0|h,0|I,654183,0)),0|u()),o=0|u(),D=0|Sn(0|X,0|S,0|(D=0|Zt(0|h,0|I,-997805,-1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,0|(V=0|Zt(0|te,0|E,654183,0)),0|u()),J=0|u(),F=0|Sn(0|R,0|L,0|(F=0|Zt(0|te,0|E,-997805,-1)),0|u()),L=0|u(),R=0|Sn(0|Z,0|O,0|(R=0|Zt(0|te,0|E,136657,0)),0|u()),O=0|u(),E=0|Sn(0|y,0|o,0|(E=0|Zt(0|te,0|E,-683901,-1)),0|u()),o=0|u(),Z=0|Sn(0|K,0|X,0|(Z=0|tn(0|(y=0|Sn(0|$,0|Y,1048576,0)),0|(te=0|u()),21)),0|u()),X=0|u(),te=0|Qn(0|$,0|Y,-2097152&y|0,0|te),y=0|u(),K=0|Sn(0|F,0|L,0|(K=0|tn(0|(Y=0|Sn(0|V,0|J,1048576,0)),0|($=0|u()),21)),0|u()),L=0|u(),D=0|Sn(0|E,0|o,0|(D=0|tn(0|(F=0|Sn(0|R,0|O,1048576,0)),0|(M=0|u()),21)),0|u()),o=0|u(),c=0|Sn(0|s,0|l,0|(c=0|tn(0|(E=0|Sn(0|Q,0|S,1048576,0)),0|(g=0|u()),21)),0|u()),l=0|u(),g=0|Qn(0|Q,0|S,-2097152&E|0,0|g),E=0|u(),s=0|tn(0|(S=0|Sn(0|h,0|I,1048576,0)),0|(Q=0|u()),21),_=0|u(),_=0|Sn(0|(G=0|Sn(0|(j=0|Qn(0|(P=0|Sn(0|d,0|A,0|m,0|P)),0|u(),-2097152&v|0,0|j)),0|u(),0|b,0|G)),0|u(),0|s,0|_),s=0|u(),Q=0|Qn(0|h,0|I,-2097152&S|0,0|Q),S=0|u(),ee=0|Sn(0|(G=0|tn(0|(I=0|Sn(0|w,0|W,1048576,0)),0|(h=0|u()),21)),0|u(),0|x,0|ee),x=0|u(),h=0|Qn(0|w,0|W,-2097152&I|0,0|h),I=0|u(),G=0|tn(0|(W=0|Sn(0|Z,0|X,1048576,0)),0|(w=0|u()),21),b=0|u(),P=0|tn(0|(j=0|Sn(0|K,0|L,1048576,0)),0|(v=0|u()),21),m=0|u(),C=0|Sn(0|g,0|E,0|(C=0|tn(0|(A=0|Sn(0|D,0|o,1048576,0)),0|(d=0|u()),21)),0|u()),E=0|u(),k=0|Sn(0|Q,0|S,0|(k=0|tn(0|(g=0|Sn(0|c,0|l,1048576,0)),0|(p=0|u()),21)),0|u()),S=0|u(),p=0|Qn(0|c,0|l,-2097152&g|0,0|p),g=0|u(),Q=0|Sn(0|h,0|I,0|(Q=0|tn(0|(l=0|Sn(0|_,0|s,1048576,0)),0|(c=0|u()),21)),0|u()),I=0|u(),c=0|Qn(0|_,0|s,-2097152&l|0,0|c),l=0|u(),h=0|tn(0|(s=0|Sn(0|ee,0|x,1048576,0)),0|(_=0|u()),21),f=0|u(),_=0|Qn(0|ee,0|x,-2097152&s|0,0|_),s=0|u(),x=0|Sn(0|te,0|y,0|(x=0|Zt(0|h,0|f,666643,0)),0|u()),y=0|u(),te=0|Zt(0|h,0|f,470296,0),ee=0|u(),q=0|Zt(0|h,0|f,654183,0),z=0|u(),U=0|Zt(0|h,0|f,-997805,-1),N=0|u(),H=0|Zt(0|h,0|f,136657,0),T=0|u(),f=0|Zt(0|h,0|f,-683901,-1),h=0|u(),y=0|tn(0|x,0|y,21),B=0|u(),y=0|tn(0|(B=0|Sn(0|(w=0|Qn(0|(X=0|Sn(0|te,0|ee,0|Z,0|X)),0|u(),-2097152&W|0,0|w)),0|u(),0|y,0|B)),0|u(),21),w=0|u(),y=0|tn(0|(w=0|Sn(0|(b=0|Sn(0|($=0|Qn(0|(J=0|Sn(0|q,0|z,0|V,0|J)),0|u(),-2097152&Y|0,0|$)),0|u(),0|G,0|b)),0|u(),0|y,0|w)),0|u(),21),b=0|u(),y=0|tn(0|(b=0|Sn(0|(v=0|Qn(0|(N=0|Sn(0|K,0|L,0|U,0|N)),0|u(),-2097152&j|0,0|v)),0|u(),0|y,0|b)),0|u(),21),v=0|u(),y=0|tn(0|(v=0|Sn(0|(m=0|Sn(0|(M=0|Qn(0|(O=0|Sn(0|H,0|T,0|R,0|O)),0|u(),-2097152&F|0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u())),0|(S=0|u()),21)),0|u())),0|(k=0|u()),21)),0|u())),0|(E=0|u()),21)),0|u())),0|(C=0|u()),21)),0|u())),0|(I=0|u()),21)),0|u(),2097151&y|0,0)),0|(m=0|u()),21)),0|u(),2097151&g|0,0)),0|(d=0|u()),21)),0|u(),2097151&p|0,0)),0|(A=0|u()),21)),0|u(),2097151&l|0,0)),0|(h=0|u()),21)),0|u(),2097151&c|0,0)),0|(f=0|u()),21)),0|u(),2097151&s|0,0),o=0|u(),r[e>>0]=x,D=0|An(0|x,0|Q,8),u(),r[e+1>>0]=D,Q=0|An(0|x,0|Q,16),u(),x=0|cn(2097151&_|0,0,5),u(),r[e+2>>0]=x|31&Q,Q=0|An(0|_,0|S,3),u(),r[e+3>>0]=Q,S=0|An(0|_,0|S,11),u(),r[e+4>>0]=S,_=0|An(2097151&_|0,0,19),S=0|u(),Q=0|cn(2097151&B|0,0,2),u(),r[e+5>>0]=Q|_,k=0|An(0|B,0|k,6),u(),r[e+6>>0]=k,B=0|An(2097151&B|0,0,14),k=0|u(),_=0|cn(2097151&w|0,0,7),u(),r[e+7>>0]=_|B,B=0|An(0|w,0|E,1),u(),r[e+8>>0]=B,E=0|An(0|w,0|E,9),u(),r[e+9>>0]=E,w=0|An(2097151&w|0,0,17),E=0|u(),B=0|cn(2097151&b|0,0,4),u(),r[e+10>>0]=B|w,w=0|An(0|b,0|C,4),u(),r[e+11>>0]=w,C=0|An(0|b,0|C,12),u(),r[e+12>>0]=C,b=0|An(2097151&b|0,0,20),C=0|u(),w=0|cn(2097151&v|0,0,1),u(),r[e+13>>0]=w|b,I=0|An(0|v,0|I,7),u(),r[e+14>>0]=I,v=0|An(2097151&v|0,0,15),I=0|u(),b=0|cn(2097151&y|0,0,6),u(),r[e+15>>0]=b|v,v=0|An(0|y,0|m,2),u(),r[e+16>>0]=v,m=0|An(0|y,0|m,10),u(),r[e+17>>0]=m,y=0|An(2097151&y|0,0,18),m=0|u(),v=0|cn(0|g,0|d,3),u(),r[e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et)<0)<<31>>31|0),Et=0|u(),p=0|Zt(0|Ct,((0|Ct)<0)<<31>>31|0,0|et,((0|et)<0)<<31>>31|0),ht=0|u(),et=0|Zt(0|je,((0|je)<0)<<31>>31|0,0|et,((0|et)<0)<<31>>31|0),Ze=0|u(),xn=0|Zt(0|ut,((0|ut)<0)<<31>>31|0,0|Je,((0|Je)<0)<<31>>31|0),Dn=0|u(),ae=0|Zt(0|Jn,((0|Jn)<0)<<31>>31|0,Je<<1|0,((Je<<1|0)<0)<<31>>31|0),ie=0|u(),H=0|Zt(0|kn,((0|kn)<0)<<31>>31|0,0|Je,((0|Je)<0)<<31>>31|0),Nt=0|u(),Ce=0|Zt(0|on,((0|on)<0)<<31>>31|0,Je<<1|0,((Je<<1|0)<0)<<31>>31|0),Rn=0|u(),ue=0|Zt(0|Ht,((0|Ht)<0)<<31>>31|0,0|Je,((0|Je)<0)<<31>>31|0),gn=0|u(),G=0|Zt(0|Mn,((0|Mn)<0)<<31>>31|0,Je<<1|0,((Je<<1|0)<0)<<31>>31|0),Yt=0|u(),E=0|Zt(0|hn,((0|hn)<0)<<31>>31|0,0|Je,((0|Je)<0)<<31>>31|0),_t=0|u(),d=0|Zt(0|Kt,((0|Kt)<0)<<31>>31|0,Je<<1|0,((Je<<1|0)<0)<<31>>31|0),pt=0|u(),r=0|Zt(0|Ct,((0|Ct)<0)<<31>>31|0,0|Je,((0|Je)<0)<<31>>31|0),tt=0|u(),Je=0|Zt(19*je|0,0|(ft=((19*je|0)<0)<<31>>31),Je<<1|0,((Je<<1|0)<0)<<31>>31|0),t=0|u(),re=0|Zt(0|ut,((0|ut)<0)<<31>>31|0,0|$e,((0|$e)<0)<<31>>31|0),cn=0|u(),U=0|Zt(0|Jn,((0|Jn)<0)<<31>>31|0,0|$e,((0|$e)<0)<<31>>31|0),N=0|u(),Be=0|Zt(0|kn,((0|kn)<0)<<31>>31|0,0|$e,((0|$e)<0)<<31>>31|0),Tn=0|u(),le=0|Zt(0|on,((0|on)<0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19*Mn|0,0|(Fn=((19*Mn|0)<0)<<31>>31),We<<1|0,((We<<1|0)<0)<<31>>31|0),Ln=0|u(),ye=0|Zt(19*hn|0,0|pn,0|We,((0|We)<0)<<31>>31|0),wn=0|u(),X=0|Zt(19*Kt|0,0|Gt,We<<1|0,((We<<1|0)<0)<<31>>31|0),Xt=0|u(),M=0|Zt(19*Ct|0,0|Bt,0|We,((0|We)<0)<<31>>31|0),Mt=0|u(),We=0|Zt(19*je|0,0|ft,We<<1|0,((We<<1|0)<0)<<31>>31|0),Ue=0|u(),V=0|Zt(0|ut,((0|ut)<0)<<31>>31|0,0|un,((0|un)<0)<<31>>31|0),qt=0|u(),P=0|Zt(0|Jn,((0|Jn)<0)<<31>>31|0,0|un,((0|un)<0)<<31>>31|0),D=0|u(),b=0|Zt(0|kn,((0|kn)<0)<<31>>31|0,0|un,((0|un)<0)<<31>>31|0),mt=0|u(),l=0|Zt(0|on,((0|on)<0)<<31>>31|0,0|un,((0|un)<0)<<31>>31|0),ot=0|u(),Fe=0|Zt(19*Ht|0,((19*Ht|0)<0)<<31>>31|0,0|un,((0|un)<0)<<31>>31|0),Kn=0|u(),ve=0|Zt(19*Mn|0,0|Fn,0|un,((0|un)<0)<<31>>31|0),Cn=0|u(),Z=0|Zt(19*hn|0,0|pn,0|un,((0|un)<0)<<31>>31|0),en=0|u(),F=0|Zt(19*Kt|0,0|Gt,0|un,((0|un)<0)<<31>>31|0),Ft=0|u(),Ve=0|Zt(19*Ct|0,0|Bt,0|un,((0|un)<0)<<31>>31|0),ze=0|u(),un=0|Zt(19*je|0,0|ft,0|un,((0|un)<0)<<31>>31|0),Ke=0|u(),x=0|Zt(0|ut,((0|ut)<0)<<31>>31|0,0|Ne,((0|Ne)<0)<<31>>31|0),Dt=0|u(),C=0|Zt(0|Jn,((0|Jn)<0)<<31>>31|0,Ne<<1|0,((Ne<<1|0)<0)<<31>>31|0),w=0|u(),f=0|Zt(0|kn,((0|kn)<0)<<31>>31|0,0|Ne,((0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|t)<<3)+4>>2],O=0|yt(0|i[a+1024+(t<<3)>>2],0|i[a+1024+(t<<3)+4>>2],s,c),j=0|u(),x=0|Yt(i[a+1024+((12|t)<<3)>>2]^O,i[a+1024+((12|t)<<3)+4>>2]^j,32),B=0|u(),B=0|Yt((j=0|yt(O,j,c=0|Yt((I=0|yt(0|i[a+1024+((8|t)<<3)>>2],0|i[a+1024+((8|t)<<3)+4>>2],x,B))^s,(b=0|u())^c,24),s=0|u()))^x,(O=0|u())^B,16),x=0|u(),i[a+1024+((12|t)<<3)>>2]=B,i[a+1024+((12|t)<<3)+4>>2]=x,b=0|yt(I,b,B,x),I=0|u(),i[a+1024+((8|t)<<3)>>2]=b,i[a+1024+((8|t)<<3)+4>>2]=I,s=0|Yt(b^c,I^s,63),c=0|u(),i[a+1024+((4|t)<<3)>>2]=s,i[a+1024+((4|t)<<3)+4>>2]=c,M=0|i[a+1024+((5|t)<<3)>>2],F=0|i[a+1024+((5|t)<<3)+4>>2],k=0|yt(0|i[a+1024+((1|t)<<3)>>2],0|i[a+1024+((1|t)<<3)+4>>2],M,F),D=0|u(),w=0|Yt(i[a+1024+((13|t)<<3)>>2]^k,i[a+1024+((13|t)<<3)+4>>2]^D,32),d=0|u(),f=0|yt(A=0|yt(0|i[a+1024+((9|t)<<3)>>2],0|i[a+1024+((9|t)<<3)+4>>2],w,d),f=0|u(),d=0|Yt((D=0|yt(k,D,F=0|Yt(A^M,f^F,24),M=0|u()))^w,(k=0|u())^d,16),w=0|u()),A=0|u(),i[a+1024+((9|t)<<3)>>2]=f,i[a+1024+((9|t)<<3)+4>>2]=A,M=0|Yt(f^F,A^M,63),F=0|u(),E=0|i[a+1024+((6|t)<<3)>>2],_=0|i[a+1024+((6|t)<<3)+4>>2],m=0|yt(0|i[a+1024+((2|t)<<3)>>2],0|i[a+1024+((2|t)<<3)+4>>2],E,_),C=0|u(),h=0|Yt(i[a+1024+((14|t)<<3)>>2]^m,i[a+1024+((14|t)<<3)+4>>2]^C,32),o=0|u(),E=0|Yt((R=0|yt(T=0|yt(0|i[a+1024+((10|t)<<3)>>2],0|i[a+1024+((10|t)<<3)+4>>2],h,o),R=0|u(),o=0|Yt((C=0|yt(m,C,_=0|Yt(T^E,R^_,24),E=0|u()))^h,(m=0|u())^o,16),h=0|u()))^_,(T=0|u())^E,63),_=0|u(),g=0|i[a+1024+((7|t)<<3)>>2],v=0|i[a+1024+((7|t)<<3)+4>>2],l=0|yt(0|i[a+1024+((3|t)<<3)>>2],0|i[a+1024+((3|t)<<3)+4>>2],g,v),p=0|u(),H=0|Yt(i[a+1024+((15|t)<<3)>>2]^l,i[a+1024+((15|t)<<3)+4>>2]^p,32),P=0|u(),g=0|Yt((Q=0|yt(S=0|yt(0|i[a+1024+((11|t)<<3)>>2],0|i[a+1024+((11|t)<<3)+4>>2],H,P),Q=0|u(),P=0|Yt((p=0|yt(l,p,v=0|Yt(S^g,Q^v,24),g=0|u()))^H,(l=0|u())^P,16),H=0|u()))^v,(S=0|u())^g,63),v=0|u(),j=0|yt(O=0|yt(j,O,M,F),j=0|u(),F=0|Yt((T=0|yt(R,T,H=0|Yt(O^P,j^H,32),P=0|u()))^M,(R=0|u())^F,24),M=0|u()),O=0|u(),i[a+1024+(t<<3)>>2]=j,i[a+1024+(t<<3)+4>>2]=O,P=0|Yt(j^H,O^P,16),O=0|u(),i[a+1024+((15|t)<<3)>>2]=P,i[a+1024+((15|t)<<3)+4>>2]=O,O=0|yt(T,R,P,O),P=0|u(),i[a+1024+((10|t)<<3)>>2]=O,i[a+1024+((10|t)<<3)+4>>2]=P,M=0|Yt(O^F,P^M,63),P=0|u(),i[a+1024+((5|t)<<3)>>2]=M,i[a+1024+((5|t)<<3)+4>>2]=P,D=0|yt(k=0|yt(D,k,E,_),D=0|u(),_=0|Yt((S=0|yt(Q,S,x=0|Yt(k^B,D^x,32),B=0|u()))^E,(Q=0|u())^_,24),E=0|u()),k=0|u(),i[a+1024+((1|t)<<3)>>2]=D,i[a+1024+((1|t)<<3)+4>>2]=k,B=0|Yt(D^x,k^B,16),k=0|u(),i[a+1024+((12|t)<<3)>>2]=B,i[a+1024+((12|t)<<3)+4>>2]=k,k=0|yt(S,Q,B,k),B=0|u(),i[a+1024+((11|t)<<3)>>2]=k,i[a+1024+((11|t)<<3)+4>>2]=B,E=0|Yt(k^_,B^E,63),B=0|u(),i[a+1024+((6|t)<<3)>>2]=E,i[a+1024+((6|t)<<3)+4>>2]=B,C=0|yt(m=0|yt(C,m,g,v),C=0|u(),v=0|Yt((I=0|yt(b,I,w=0|Yt(m^d,C^w,32),d=0|u()))^g,(b=0|u())^v,24),g=0|u()),m=0|u(),i[a+1024+((2|t)<<3)>>2]=C,i[a+1024+((2|t)<<3)+4>>2]=m,d=0|Yt(C^w,m^d,16),m=0|u(),i[a+1024+((13|t)<<3)>>2]=d,i[a+1024+((13|t)<<3)+4>>2]=m,m=0|yt(I,b,d,m),d=0|u(),i[a+1024+((8|t)<<3)>>2]=m,i[a+1024+((8|t)<<3)+4>>2]=d,g=0|Yt(m^v,d^g,63),d=0|u(),i[a+1024+((7|t)<<3)>>2]=g,i[a+1024+((7|t)<<3)+4>>2]=d,p=0|yt(l=0|yt(p,l,s,c),p=0|u(),c=0|Yt((A=0|yt(f,A,h=0|Yt(l^o,p^h,32),o=0|u()))^s,(f=0|u())^c,24),s=0|u()),l=0|u(),i[a+1024+((3|t)<<3)>>2]=p,i[a+1024+((3|t)<<3)+4>>2]=l,o=0|Yt(p^h,l^o,16),l=0|u(),i[a+1024+((14|t)<<3)>>2]=o,i[a+1024+((14|t)<<3)+4>>2]=l,l=0|yt(A,f,o,l),o=0|u(),i[a+1024+((9|t)<<3)>>2]=l,i[a+1024+((9|t)<<3)+4>>2]=o,s=0|Yt(l^c,o^s,63),o=0|u(),i[a+1024+((4|t)<<3)>>2]=s,i[a+1024+((4|t)<<3)+4>>2]=o,e=e+1|0}while(8!=(0|e));e=0;do{T=0|i[(R=a+1024+(32+(j=e<<1)<<3)|0)>>2],R=0|i[R+4>>2],l=0|yt(0|i[a+1024+(j<<3)>>2],0|i[a+1024+(j<<3)+4>>2],T,R),t=0|u(),d=0|Yt(i[(d=a+1024+(j+96<<3)|0)>>2]^l,i[d+4>>2]^t,32),I=0|u(),I=0|Yt((t=0|yt(l,t,R=0|Yt((E=0|yt(0|i[(E=a+1024+(j+64<<3)|0)>>2],0|i[E+4>>2],d,I))^T,(_=0|u())^R,24),T=0|u()))^d,(l=0|u())^I,16),d=0|u(),i[(h=a+1024+(j+96<<3)|0)>>2]=I,i[h+4>>2]=d,_=0|yt(E,_,I,d),E=0|u(),i[(h=a+1024+(j+64<<3)|0)>>2]=_,i[h+4>>2]=E,T=0|Yt(_^R,E^T,63),R=0|u(),i[(h=a+1024+(j+32<<3)|0)>>2]=T,i[h+4>>2]=R,f=0|i[(h=a+1024+(j+33<<3)|0)>>2],h=0|i[h+4>>2],m=0|yt(0|i[a+1024+((1|j)<<3)>>2],0|i[a+1024+((1|j)<<3)+4>>2],f,h),p=0|u(),B=0|Yt(i[(B=a+1024+(j+97<<3)|0)>>2]^m,i[B+4>>2]^p,32),S=0|u(),F=0|yt(M=0|yt(0|i[(M=a+1024+(j+65<<3)|0)>>2],0|i[M+4>>2],B,S),F=0|u(),S=0|Yt((p=0|yt(m,p,h=0|Yt(M^f,F^h,24),f=0|u()))^B,(m=0|u())^S,16),B=0|u()),M=0|u(),i[(k=a+1024+(j+65<<3)|0)>>2]=F,i[k+4>>2]=M,f=0|Yt(F^h,M^f,63),h=0|u(),k=a+1024+(j+16<<3)|0,b=0|i[(w=a+1024+(j+48<<3)|0)>>2],w=0|i[w+4>>2],k=0|yt(0|i[k>>2],0|i[k+4>>2],b,w),C=0|u(),P=0|Yt(i[(P=a+1024+(j+112<<3)|0)>>2]^k,i[P+4>>2]^C,32),H=0|u(),b=0|Yt((c=0|yt(s=0|yt(0|i[(s=a+1024+(j+80<<3)|0)>>2],0|i[s+4>>2],P,H),c=0|u(),H=0|Yt((C=0|yt(k,C,w=0|Yt(s^b,c^w,24),b=0|u()))^P,(k=0|u())^H,16),P=0|u()))^w,(s=0|u())^b,63),w=0|u(),O=a+1024+(j+17<<3)|0,Q=0|i[(x=a+1024+(j+49<<3)|0)>>2],x=0|i[x+4>>2],O=0|yt(0|i[O>>2],0|i[O+4>>2],Q,x),D=0|u(),o=0|Yt(i[(o=a+1024+(j+113<<3)|0)>>2]^O,i[o+4>>2]^D,32),A=0|u(),Q=0|Yt((v=0|yt(g=0|yt(0|i[(g=a+1024+(j+81<<3)|0)>>2],0|i[g+4>>2],o,A),v=0|u(),A=0|Yt((D=0|yt(O,D,x=0|Yt(g^Q,v^x,24),Q=0|u()))^o,(O=0|u())^A,16),o=0|u()))^x,(g=0|u())^Q,63),x=0|u(),t=0|yt(l=0|yt(t,l,f,h),t=0|u(),h=0|Yt((s=0|yt(c,s,o=0|Yt(l^A,t^o,32),A=0|u()))^f,(c=0|u())^h,24),f=0|u()),l=0|u(),i[a+1024+(j<<3)>>2]=t,i[a+1024+(j<<3)+4>>2]=l,A=0|Yt(t^o,l^A,16),l=0|u(),i[(o=a+1024+(j+113<<3)|0)>>2]=A,i[o+4>>2]=l,l=0|yt(s,c,A,l),A=0|u(),i[(c=a+1024+(j+80<<3)|0)>>2]=l,i[c+4>>2]=A,f=0|Yt(l^h,A^f,63),A=0|u(),i[(h=a+1024+(j+33<<3)|0)>>2]=f,i[h+4>>2]=A,p=0|yt(m=0|yt(p,m,b,w),p=0|u(),w=0|Yt((g=0|yt(v,g,d=0|Yt(m^I,p^d,32),I=0|u()))^b,(v=0|u())^w,24),b=0|u()),m=0|u(),i[a+1024+((1|j)<<3)>>2]=p,i[a+1024+((1|j)<<3)+4>>2]=m,I=0|Yt(p^d,m^I,16),m=0|u(),i[(d=a+1024+(j+96<<3)|0)>>2]=I,i[d+4>>2]=m,m=0|yt(g,v,I,m),I=0|u(),i[(v=a+1024+(j+81<<3)|0)>>2]=m,i[v+4>>2]=I,b=0|Yt(m^w,I^b,63),I=0|u(),i[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)+4>>2],O=0|yt(0|i[a+1024+(t<<3)>>2],0|i[a+1024+(t<<3)+4>>2],s,c),j=0|u(),x=0|Yt(i[a+1024+((12|t)<<3)>>2]^O,i[a+1024+((12|t)<<3)+4>>2]^j,32),B=0|u(),B=0|Yt((j=0|yt(O,j,c=0|Yt((I=0|yt(0|i[a+1024+((8|t)<<3)>>2],0|i[a+1024+((8|t)<<3)+4>>2],x,B))^s,(b=0|u())^c,24),s=0|u()))^x,(O=0|u())^B,16),x=0|u(),i[a+1024+((12|t)<<3)>>2]=B,i[a+1024+((12|t)<<3)+4>>2]=x,b=0|yt(I,b,B,x),I=0|u(),i[a+1024+((8|t)<<3)>>2]=b,i[a+1024+((8|t)<<3)+4>>2]=I,s=0|Yt(b^c,I^s,63),c=0|u(),i[a+1024+((4|t)<<3)>>2]=s,i[a+1024+((4|t)<<3)+4>>2]=c,M=0|i[a+1024+((5|t)<<3)>>2],F=0|i[a+1024+((5|t)<<3)+4>>2],k=0|yt(0|i[a+1024+((1|t)<<3)>>2],0|i[a+1024+((1|t)<<3)+4>>2],M,F),D=0|u(),w=0|Yt(i[a+1024+((13|t)<<3)>>2]^k,i[a+1024+((13|t)<<3)+4>>2]^D,32),d=0|u(),f=0|yt(A=0|yt(0|i[a+1024+((9|t)<<3)>>2],0|i[a+1024+((9|t)<<3)+4>>2],w,d),f=0|u(),d=0|Yt((D=0|yt(k,D,F=0|Yt(A^M,f^F,24),M=0|u()))^w,(k=0|u())^d,16),w=0|u()),A=0|u(),i[a+1024+((9|t)<<3)>>2]=f,i[a+1024+((9|t)<<3)+4>>2]=A,M=0|Yt(f^F,A^M,63),F=0|u(),E=0|i[a+1024+((6|t)<<3)>>2],_=0|i[a+1024+((6|t)<<3)+4>>2],m=0|yt(0|i[a+1024+((2|t)<<3)>>2],0|i[a+1024+((2|t)<<3)+4>>2],E,_),C=0|u(),h=0|Yt(i[a+1024+((14|t)<<3)>>2]^m,i[a+1024+((14|t)<<3)+4>>2]^C,32),o=0|u(),E=0|Yt((R=0|yt(T=0|yt(0|i[a+1024+((10|t)<<3)>>2],0|i[a+1024+((10|t)<<3)+4>>2],h,o),R=0|u(),o=0|Yt((C=0|yt(m,C,_=0|Yt(T^E,R^_,24),E=0|u()))^h,(m=0|u())^o,16),h=0|u()))^_,(T=0|u())^E,63),_=0|u(),g=0|i[a+1024+((7|t)<<3)>>2],v=0|i[a+1024+((7|t)<<3)+4>>2],l=0|yt(0|i[a+1024+((3|t)<<3)>>2],0|i[a+1024+((3|t)<<3)+4>>2],g,v),p=0|u(),H=0|Yt(i[a+1024+((15|t)<<3)>>2]^l,i[a+1024+((15|t)<<3)+4>>2]^p,32),P=0|u(),g=0|Yt((Q=0|yt(S=0|yt(0|i[a+1024+((11|t)<<3)>>2],0|i[a+1024+((11|t)<<3)+4>>2],H,P),Q=0|u(),P=0|Yt((p=0|yt(l,p,v=0|Yt(S^g,Q^v,24),g=0|u()))^H,(l=0|u())^P,16),H=0|u()))^v,(S=0|u())^g,63),v=0|u(),j=0|yt(O=0|yt(j,O,M,F),j=0|u(),F=0|Yt((T=0|yt(R,T,H=0|Yt(O^P,j^H,32),P=0|u()))^M,(R=0|u())^F,24),M=0|u()),O=0|u(),i[a+1024+(t<<3)>>2]=j,i[a+1024+(t<<3)+4>>2]=O,P=0|Yt(j^H,O^P,16),O=0|u(),i[a+1024+((15|t)<<3)>>2]=P,i[a+1024+((15|t)<<3)+4>>2]=O,O=0|yt(T,R,P,O),P=0|u(),i[a+1024+((10|t)<<3)>>2]=O,i[a+1024+((10|t)<<3)+4>>2]=P,M=0|Yt(O^F,P^M,63),P=0|u(),i[a+1024+((5|t)<<3)>>2]=M,i[a+1024+((5|t)<<3)+4>>2]=P,D=0|yt(k=0|yt(D,k,E,_),D=0|u(),_=0|Yt((S=0|yt(Q,S,x=0|Yt(k^B,D^x,32),B=0|u()))^E,(Q=0|u())^_,24),E=0|u()),k=0|u(),i[a+1024+((1|t)<<3)>>2]=D,i[a+1024+((1|t)<<3)+4>>2]=k,B=0|Yt(D^x,k^B,16),k=0|u(),i[a+1024+((12|t)<<3)>>2]=B,i[a+1024+((12|t)<<3)+4>>2]=k,k=0|yt(S,Q,B,k),B=0|u(),i[a+1024+((11|t)<<3)>>2]=k,i[a+1024+((11|t)<<3)+4>>2]=B,E=0|Yt(k^_,B^E,63),B=0|u(),i[a+1024+((6|t)<<3)>>2]=E,i[a+1024+((6|t)<<3)+4>>2]=B,C=0|yt(m=0|yt(C,m,g,v),C=0|u(),v=0|Yt((I=0|yt(b,I,w=0|Yt(m^d,C^w,32),d=0|u()))^g,(b=0|u())^v,24),g=0|u()),m=0|u(),i[a+1024+((2|t)<<3)>>2]=C,i[a+1024+((2|t)<<3)+4>>2]=m,d=0|Yt(C^w,m^d,16),m=0|u(),i[a+1024+((13|t)<<3)>>2]=d,i[a+1024+((13|t)<<3)+4>>2]=m,m=0|yt(I,b,d,m),d=0|u(),i[a+1024+((8|t)<<3)>>2]=m,i[a+1024+((8|t)<<3)+4>>2]=d,g=0|Yt(m^v,d^g,63),d=0|u(),i[a+1024+((7|t)<<3)>>2]=g,i[a+1024+((7|t)<<3)+4>>2]=d,p=0|yt(l=0|yt(p,l,s,c),p=0|u(),c=0|Yt((A=0|yt(f,A,h=0|Yt(l^o,p^h,32),o=0|u()))^s,(f=0|u())^c,24),s=0|u()),l=0|u(),i[a+1024+((3|t)<<3)>>2]=p,i[a+1024+((3|t)<<3)+4>>2]=l,o=0|Yt(p^h,l^o,16),l=0|u(),i[a+1024+((14|t)<<3)>>2]=o,i[a+1024+((14|t)<<3)+4>>2]=l,l=0|yt(A,f,o,l),o=0|u(),i[a+1024+((9|t)<<3)>>2]=l,i[a+1024+((9|t)<<3)+4>>2]=o,s=0|Yt(l^c,o^s,63),o=0|u(),i[a+1024+((4|t)<<3)>>2]=s,i[a+1024+((4|t)<<3)+4>>2]=o,e=e+1|0}while(8!=(0|e));e=0;do{T=0|i[(R=a+1024+(32+(j=e<<1)<<3)|0)>>2],R=0|i[R+4>>2],l=0|yt(0|i[a+1024+(j<<3)>>2],0|i[a+1024+(j<<3)+4>>2],T,R),t=0|u(),d=0|Yt(i[(d=a+1024+(j+96<<3)|0)>>2]^l,i[d+4>>2]^t,32),I=0|u(),I=0|Yt((t=0|yt(l,t,R=0|Yt((E=0|yt(0|i[(E=a+1024+(j+64<<3)|0)>>2],0|i[E+4>>2],d,I))^T,(_=0|u())^R,24),T=0|u()))^d,(l=0|u())^I,16),d=0|u(),i[(h=a+1024+(j+96<<3)|0)>>2]=I,i[h+4>>2]=d,_=0|yt(E,_,I,d),E=0|u(),i[(h=a+1024+(j+64<<3)|0)>>2]=_,i[h+4>>2]=E,T=0|Yt(_^R,E^T,63),R=0|u(),i[(h=a+1024+(j+32<<3)|0)>>2]=T,i[h+4>>2]=R,f=0|i[(h=a+1024+(j+33<<3)|0)>>2],h=0|i[h+4>>2],m=0|yt(0|i[a+1024+((1|j)<<3)>>2],0|i[a+1024+((1|j)<<3)+4>>2],f,h),p=0|u(),B=0|Yt(i[(B=a+1024+(j+97<<3)|0)>>2]^m,i[B+4>>2]^p,32),S=0|u(),F=0|yt(M=0|yt(0|i[(M=a+1024+(j+65<<3)|0)>>2],0|i[M+4>>2],B,S),F=0|u(),S=0|Yt((p=0|yt(m,p,h=0|Yt(M^f,F^h,24),f=0|u()))^B,(m=0|u())^S,16),B=0|u()),M=0|u(),i[(k=a+1024+(j+65<<3)|0)>>2]=F,i[k+4>>2]=M,f=0|Yt(F^h,M^f,63),h=0|u(),k=a+1024+(j+16<<3)|0,b=0|i[(w=a+1024+(j+48<<3)|0)>>2],w=0|i[w+4>>2],k=0|yt(0|i[k>>2],0|i[k+4>>2],b,w),C=0|u(),P=0|Yt(i[(P=a+1024+(j+112<<3)|0)>>2]^k,i[P+4>>2]^C,32),H=0|u(),b=0|Yt((c=0|yt(s=0|yt(0|i[(s=a+1024+(j+80<<3)|0)>>2],0|i[s+4>>2],P,H),c=0|u(),H=0|Yt((C=0|yt(k,C,w=0|Yt(s^b,c^w,24),b=0|u()))^P,(k=0|u())^H,16),P=0|u()))^w,(s=0|u())^b,63),w=0|u(),O=a+1024+(j+17<<3)|0,Q=0|i[(x=a+1024+(j+49<<3)|0)>>2],x=0|i[x+4>>2],O=0|yt(0|i[O>>2],0|i[O+4>>2],Q,x),D=0|u(),o=0|Yt(i[(o=a+1024+(j+113<<3)|0)>>2]^O,i[o+4>>2]^D,32),A=0|u(),Q=0|Yt((v=0|yt(g=0|yt(0|i[(g=a+1024+(j+81<<3)|0)>>2],0|i[g+4>>2],o,A),v=0|u(),A=0|Yt((D=0|yt(O,D,x=0|Yt(g^Q,v^x,24),Q=0|u()))^o,(O=0|u())^A,16),o=0|u()))^x,(g=0|u())^Q,63),x=0|u(),t=0|yt(l=0|yt(t,l,f,h),t=0|u(),h=0|Yt((s=0|yt(c,s,o=0|Yt(l^A,t^o,32),A=0|u()))^f,(c=0|u())^h,24),f=0|u()),l=0|u(),i[a+1024+(j<<3)>>2]=t,i[a+1024+(j<<3)+4>>2]=l,A=0|Yt(t^o,l^A,16),l=0|u(),i[(o=a+1024+(j+113<<3)|0)>>2]=A,i[o+4>>2]=l,l=0|yt(s,c,A,l),A=0|u(),i[(c=a+1024+(j+80<<3)|0)>>2]=l,i[c+4>>2]=A,f=0|Yt(l^h,A^f,63),A=0|u(),i[(h=a+1024+(j+33<<3)|0)>>2]=f,i[h+4>>2]=A,p=0|yt(m=0|yt(p,m,b,w),p=0|u(),w=0|Yt((g=0|yt(v,g,d=0|Yt(m^I,p^d,32),I=0|u()))^b,(v=0|u())^w,24),b=0|u()),m=0|u(),i[a+1024+((1|j)<<3)>>2]=p,i[a+1024+((1|j)<<3)+4>>2]=m,I=0|Yt(p^d,m^I,16),m=0|u(),i[(d=a+1024+(j+96<<3)|0)>>2]=I,i[d+4>>2]=m,m=0|yt(g,v,I,m),I=0|u(),i[(v=a+1024+(j+81<<3)|0)>>2]=m,i[v+4>>2]=I,b=0|Yt(m^w,I^b,63),I=0|u(),i[(w=a+1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ye)<0)<<31>>31|0,ae<<1|0,0|he),o=0|u(),z=0|Zt(38*te|0,0|(me=((38*te|0)<0)<<31>>31),ae<<1|0,0|he),nt=0|u(),O=0|Zt(19*ke|0,0|Te,ae<<1|0,0|he),qe=0|u(),he=0|Zt(38*Ie|0,0|be,ae<<1|0,0|he),ae=0|u(),A=0|Zt(0|De,((0|De)<0)<<31>>31|0,0|De,((0|De)<0)<<31>>31|0),Ee=0|u(),a=0|Zt(De<<1|0,((De<<1|0)<0)<<31>>31|0,0|Ae,((0|Ae)<0)<<31>>31|0),ve=0|u(),q=0|Zt(19*Ye|0,((19*Ye|0)<0)<<31>>31|0,De<<1|0,((De<<1|0)<0)<<31>>31|0),rt=0|u(),R=0|Zt(38*te|0,0|me,0|De,((0|De)<0)<<31>>31|0),We=0|u(),k=0|Zt(19*ke|0,0|Te,De<<1|0,((De<<1|0)<0)<<31>>31|0),Ue=0|u(),De=0|Zt(38*Ie|0,0|be,0|De,((0|De)<0)<<31>>31|0),re=0|u(),Z=0|Zt(38*Ae|0,((38*Ae|0)<0)<<31>>31|0,0|Ae,((0|Ae)<0)<<31>>31|0),X=0|u(),j=0|Zt(19*Ye|0,((19*Ye|0)<0)<<31>>31|0,Ae<<1|0,((Ae<<1|0)<0)<<31>>31|0),H=0|u(),Q=0|Zt(38*te|0,0|me,Ae<<1|0,((Ae<<1|0)<0)<<31>>31|0),Le=0|u(),b=0|Zt(19*ke|0,0|Te,Ae<<1|0,((Ae<<1|0)<0)<<31>>31|0),Pe=0|u(),Ae=0|Zt(38*Ie|0,0|be,Ae<<1|0,((Ae<<1|0)<0)<<31>>31|0),ne=0|u(),S=0|Zt(19*Ye|0,((19*Ye|0)<0)<<31>>31|0,0|Ye,((0|Ye)<0)<<31>>31|0),Ke=0|u(),I=0|Zt(38*te|0,0|me,0|Ye,((0|Ye)<0)<<31>>31|0),Me=0|u(),ue=0|Zt(19*ke|0,0|Te,Ye<<1|0,((Ye<<1|0)<0)<<31>>31|0),le=0|u(),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(),0|d,0|Qe)),0|u(),0|ke,0|_e)),0|u(),0|ie,0|re),ie=0|u(),ne=0|Qn(0|he,0|ae,-67108864&ne|0,0),u(),ce=0|Sn(0|(he=0|tn(0|(ae=0|Sn(0|t,0|te,16777216,0)),0|u(),25)),0|u(),0|ee,0|ce),ee=0|u(),ae=0|Qn(0|t,0|te,-33554432&ae|0,0),u(),t=0|tn(0|(te=0|Sn(0|re,0|ie,16777216,0)),0|u(),25),he=0|u(),he=0|Sn(0|(be=0|Sn(0|(we=0|Sn(0|(Ce=0|Sn(0|(Be=0|Sn(0|(Ee=0|Sn(0|p,0|h,0|A,0|Ee)),0|u(),0|f,0|Be)),0|u(),0|l,0|Ce)),0|u(),0|c,0|we)),0|u(),0|Ie,0|be)),0|u(),0|t,0|he),t=0|u(),te=0|Qn(0|re,0|ie,-33554432&te|0,0),u(),re=0|Sn(0|me,0|se,0|(re=0|An(0|(ie=0|Sn(0|ce,0|ee,33554432,0)),0|u(),26)),0|u()),u(),ie=0|Qn(0|ce,0|ee,-67108864&ie|0,0),u(),ce=0|tn(0|(ee=0|Sn(0|he,0|t,33554432,0)),0|u(),26),se=0|u(),se=0|Sn(0|(pe=0|Sn(0|(ge=0|Sn(0|(ye=0|Sn(0|(ve=0|Sn(0|s,0|o,0|a,0|ve)),0|u(),0|r,0|ye)),0|u(),0|n,0|ge)),0|u(),0|de,0|pe)),0|u(),0|ce,0|se),ce=0|u(),ee=0|Qn(0|he,0|t,-67108864&ee|0,0),u(),le=0|Sn(0|(he=0|Zt(0|(he=0|tn(0|(t=0|Sn(0|se,0|ce,16777216,0)),0|u(),25)),0|u(),19,0)),0|u(),0|ue,0|le),ue=0|u(),t=0|Qn(0|se,0|ce,-33554432&t|0,0),u(),se=0|Sn(0|Ae,0|fe,0|(se=0|An(0|(ce=0|Sn(0|le,0|ue,33554432,0)),0|u(),26)),0|u()),u(),ce=0|Qn(0|le,0|ue,-67108864&ce|0,0),u(),i[e>>2]=ce,i[e+4>>2]=se,i[e+8>>2]=oe,i[e+12>>2]=ae,i[e+16>>2]=ie,i[e+20>>2]=re,i[e+24>>2]=ne,i[e+28>>2]=te,i[e+32>>2]=ee,i[e+36>>2]=t}function k(e){var t=0,n=0,r=0,a=0,o=0,s=0,c=0,u=0,l=0;if(e|=0){t=0|i[8683],l=e+-8+(-8&(n=0|i[e+-4>>2]))|0;do{if(1&n)c=e+-8|0,u=e+-8|0,e=-8&n;else{if(r=0|i[e+-8>>2],!(3&n))return;if(s=r+(-8&n)|0,(o=e+-8+(0-r)|0)>>>0<t>>>0)return;if((0|i[8684])==(0|o)){if(3!=(3&(e=0|i[l+4>>2])|0)){c=o,u=o,e=s;break}return i[8681]=s,i[l+4>>2]=-2&e,i[o+4>>2]=1|s,void(i[o+s>>2]=s)}if(r>>>0<256){if(e=0|i[o+8>>2],(0|(t=0|i[o+12>>2]))==(0|e)){i[8679]=i[8679]&~(1<<(r>>>3)),c=o,u=o,e=s;break}i[e+12>>2]=t,i[t+8>>2]=e,c=o,u=o,e=s;break}a=0|i[o+24>>2],e=0|i[o+12>>2];do{if((0|e)==(0|o)){if(e=0|i[o+16+4>>2])t=o+16+4|0;else{if(!(e=0|i[o+16>>2])){e=0;break}t=o+16|0}for(;;)if(n=0|i[(r=e+20|0)>>2])e=n,t=r;else{if(!(n=0|i[(r=e+16|0)>>2]))break;e=n,t=r}i[t>>2]=0}else u=0|i[o+8>>2],i[u+12>>2]=e,i[e+8>>2]=u}while(0);if(a){if(t=0|i[o+28>>2],(0|i[35020+(t<<2)>>2])==(0|o)){if(i[35020+(t<<2)>>2]=e,!e){i[8680]=i[8680]&~(1<<t),c=o,u=o,e=s;break}}else if(i[((0|i[a+16>>2])==(0|o)?a+16|0:a+20|0)>>2]=e,!e){c=o,u=o,e=s;break}i[e+24>>2]=a,0|(t=0|i[o+16>>2])&&(i[e+16>>2]=t,i[t+24>>2]=e),(t=0|i[o+16+4>>2])?(i[e+20>>2]=t,i[t+24>>2]=e,c=o,u=o,e=s):(c=o,u=o,e=s)}else c=o,u=o,e=s}}while(0);if(!(c>>>0>=l>>>0)&&1&(n=0|i[l+4>>2])){if(2&n)i[l+4>>2]=-2&n,i[u+4>>2]=1|e,i[c+e>>2]=e,a=e;else{if((0|i[8685])==(0|l)){if(l=(0|i[8682])+e|0,i[8682]=l,i[8685]=u,i[u+4>>2]=1|l,(0|u)!=(0|i[8684]))return;return i[8684]=0,void(i[8681]=0)}if((0|i[8684])==(0|l))return l=(0|i[8681])+e|0,i[8681]=l,i[8684]=c,i[u+4>>2]=1|l,void(i[c+l>>2]=l);a=(-8&n)+e|0;do{if(n>>>0<256){if(t=0|i[l+8>>2],(0|(e=0|i[l+12>>2]))==(0|t)){i[8679]=i[8679]&~(1<<(n>>>3));break}i[t+12>>2]=e,i[e+8>>2]=t;break}o=0|i[l+24>>2],e=0|i[l+12>>2];do{if((0|e)==(0|l)){if(e=0|i[l+16+4>>2])t=l+16+4|0;else{if(!(e=0|i[l+16>>2])){t=0;break}t=l+16|0}for(;;)if(n=0|i[(r=e+20|0)>>2])e=n,t=r;else{if(!(n=0|i[(r=e+16|0)>>2]))break;e=n,t=r}i[t>>2]=0,t=e}else t=0|i[l+8>>2],i[t+12>>2]=e,i[e+8>>2]=t,t=e}while(0);if(0|o){if(e=0|i[l+28>>2],(0|i[35020+(e<<2)>>2])==(0|l)){if(i[35020+(e<<2)>>2]=t,!t){i[8680]=i[8680]&~(1<<e);break}}else if(i[((0|i[o+16>>2])==(0|l)?o+16|0:o+20|0)>>2]=t,!t)break;i[t+24>>2]=o,0|(e=0|i[l+16>>2])&&(i[t+16>>2]=e,i[e+24>>2]=t),0|(e=0|i[l+16+4>>2])&&(i[t+20>>2]=e,i[e+24>>2]=t)}}while(0);if(i[u+4>>2]=1|a,i[c+a>>2]=a,(0|u)==(0|i[8684]))return void(i[8681]=a)}if(n=a>>>3,a>>>0<256)return(e=0|i[8679])&1<<n?(e=34756+(n<<1<<2)+8|0,t=0|i[34756+(n<<1<<2)+8>>2]):(i[8679]=e|1<<n,e=34756+(n<<1<<2)+8|0,t=34756+(n<<1<<2)|0),i[e>>2]=u,i[t+12>>2]=u,i[u+8>>2]=t,void(i[u+12>>2]=34756+(n<<1<<2));t=35020+((r=(e=a>>>8)?a>>>0>16777215?31:a>>>(7+(r=14-((520192+(e<<((e+1048320|0)>>>16&8))|0)>>>16&4|(e+1048320|0)>>>16&8|(245760+(r=e<<((e+1048320|0)>>>16&8)<<((520192+(e<<((e+1048320|0)>>>16&8))|0)>>>16&4))|0)>>>16&2)+(r<<((r+245760|0)>>>16&2)>>>15)|0)|0)&1|r<<1:0)<<2)|0,i[u+28>>2]=r,i[u+20>>2]=0,i[u+16>>2]=0,e=0|i[8680],n=1<<r;e:do{if(e&n){e=0|i[t>>2];t:do{if((-8&i[e+4>>2]|0)!=(0|a)){for(r=a<<(31==(0|r)?0:25-(r>>>1)|0);t=0|i[(n=e+16+(r>>>31<<2)|0)>>2];){if((-8&i[t+4>>2]|0)==(0|a)){e=t;break t}r<<=1,e=t}i[n>>2]=u,i[u+24>>2]=e,i[u+12>>2]=u,i[u+8>>2]=u;break e}}while(0);l=0|i[(c=e+8|0)>>2],i[l+12>>2]=u,i[c>>2]=u,i[u+8>>2]=l,i[u+12>>2]=e,i[u+24>>2]=0}else i[8680]=e|n,i[t>>2]=u,i[u+24>>2]=t,i[u+12>>2]=u,i[u+8>>2]=u}while(0);if(l=(0|i[8687])-1|0,i[8687]=l,!(0|l)){for(e=35172;e=0|i[e>>2];)e=e+8|0;i[8687]=-1}}}}function Q(e,t){t|=0;var n=0,r=0,a=0,o=0,s=0,c=0,u=0;n=0|i[4+(e|=0)>>2];do{if(1&n)u=e,n=t;else{if(c=0|i[e>>2],!(3&n))return;if((0|i[8684])==(e+(0-c)|0)){if(3!=(3&(n=0|i[e+t+4>>2])|0)){u=e+(0-c)|0,n=c+t|0;break}return i[8681]=c+t,i[e+t+4>>2]=-2&n,i[e+(0-c)+4>>2]=c+t|1,void(i[e+t>>2]=c+t)}if(c>>>0<256){if(n=0|i[e+(0-c)+8>>2],(0|(r=0|i[e+(0-c)+12>>2]))==(0|n)){i[8679]=i[8679]&~(1<<(c>>>3)),u=e+(0-c)|0,n=c+t|0;break}i[n+12>>2]=r,i[r+8>>2]=n,u=e+(0-c)|0,n=c+t|0;break}s=0|i[e+(0-c)+24>>2],n=0|i[e+(0-c)+12>>2];do{if((0|n)==(e+(0-c)|0)){if(n=0|i[4+(r=e+(0-c)+16|0)>>2])r=r+4|0;else if(!(n=0|i[r>>2])){r=0;break}for(;;)if(a=0|i[(o=n+20|0)>>2])n=a,r=o;else{if(!(a=0|i[(o=n+16|0)>>2]))break;n=a,r=o}i[r>>2]=0,r=n}else r=0|i[e+(0-c)+8>>2],i[r+12>>2]=n,i[n+8>>2]=r,r=n}while(0);if(s){if(n=0|i[e+(0-c)+28>>2],(0|i[35020+(n<<2)>>2])==(e+(0-c)|0)){if(i[35020+(n<<2)>>2]=r,!r){i[8680]=i[8680]&~(1<<n),u=e+(0-c)|0,n=c+t|0;break}}else if(i[((0|i[s+16>>2])==(e+(0-c)|0)?s+16|0:s+20|0)>>2]=r,!r){u=e+(0-c)|0,n=c+t|0;break}i[r+24>>2]=s,0|(n=0|i[e+(0-c)+16>>2])&&(i[r+16>>2]=n,i[n+24>>2]=r),(n=0|i[e+(0-c)+16+4>>2])?(i[r+20>>2]=n,i[n+24>>2]=r,u=e+(0-c)|0,n=c+t|0):(u=e+(0-c)|0,n=c+t|0)}else u=e+(0-c)|0,n=c+t|0}}while(0);if(2&(a=0|i[e+t+4>>2]))i[e+t+4>>2]=-2&a,i[u+4>>2]=1|n,i[u+n>>2]=n,s=n;else{if((0|i[8685])==(e+t|0)){if(t=(0|i[8682])+n|0,i[8682]=t,i[8685]=u,i[u+4>>2]=1|t,(0|u)!=(0|i[8684]))return;return i[8684]=0,void(i[8681]=0)}if((0|i[8684])==(e+t|0))return t=(0|i[8681])+n|0,i[8681]=t,i[8684]=u,i[u+4>>2]=1|t,void(i[u+t>>2]=t);s=(-8&a)+n|0;do{if(a>>>0<256){if(r=0|i[e+t+8>>2],(0|(n=0|i[e+t+12>>2]))==(0|r)){i[8679]=i[8679]&~(1<<(a>>>3));break}i[r+12>>2]=n,i[n+8>>2]=r;break}c=0|i[e+t+24>>2],n=0|i[e+t+12>>2];do{if((0|n)==(e+t|0)){if(n=0|i[e+t+16+4>>2])r=e+t+16+4|0;else{if(!(n=0|i[e+t+16>>2])){r=0;break}r=e+t+16|0}for(;;)if(a=0|i[(o=n+20|0)>>2])n=a,r=o;else{if(!(a=0|i[(o=n+16|0)>>2]))break;n=a,r=o}i[r>>2]=0,r=n}else r=0|i[e+t+8>>2],i[r+12>>2]=n,i[n+8>>2]=r,r=n}while(0);if(0|c){if(n=0|i[e+t+28>>2],(0|i[35020+(n<<2)>>2])==(e+t|0)){if(i[35020+(n<<2)>>2]=r,!r){i[8680]=i[8680]&~(1<<n);break}}else if(i[((0|i[c+16>>2])==(e+t|0)?c+16|0:c+20|0)>>2]=r,!r)break;i[r+24>>2]=c,0|(n=0|i[e+t+16>>2])&&(i[r+16>>2]=n,i[n+24>>2]=r),0|(n=0|i[e+t+16+4>>2])&&(i[r+20>>2]=n,i[n+24>>2]=r)}}while(0);if(i[u+4>>2]=1|s,i[u+s>>2]=s,(0|u)==(0|i[8684]))return void(i[8681]=s)}if(a=s>>>3,s>>>0<256)return(n=0|i[8679])&1<<a?(n=34756+(a<<1<<2)+8|0,r=0|i[34756+(a<<1<<2)+8>>2]):(i[8679]=n|1<<a,n=34756+(a<<1<<2)+8|0,r=34756+(a<<1<<2)|0),i[n>>2]=u,i[r+12>>2]=u,i[u+8>>2]=r,void(i[u+12>>2]=34756+(a<<1<<2));if(r=35020+((o=(n=s>>>8)?s>>>0>16777215?31:s>>>(7+(o=14-((520192+(n<<((n+1048320|0)>>>16&8))|0)>>>16&4|(n+1048320|0)>>>16&8|(245760+(o=n<<((n+1048320|0)>>>16&8)<<((520192+(n<<((n+1048320|0)>>>16&8))|0)>>>16&4))|0)>>>16&2)+(o<<((o+245760|0)>>>16&2)>>>15)|0)|0)&1|o<<1:0)<<2)|0,i[u+28>>2]=o,i[u+20>>2]=0,i[u+16>>2]=0,!((n=0|i[8680])&(a=1<<o)))return i[8680]=n|a,i[r>>2]=u,i[u+24>>2]=r,i[u+12>>2]=u,void(i[u+8>>2]=u);n=0|i[r>>2];e:do{if((-8&i[n+4>>2]|0)!=(0|s)){for(o=s<<(31==(0|o)?0:25-(o>>>1)|0);r=0|i[(a=n+16+(o>>>31<<2)|0)>>2];){if((-8&i[r+4>>2]|0)==(0|s)){n=r;break e}o<<=1,n=r}return i[a>>2]=u,i[u+24>>2]=n,i[u+12>>2]=u,void(i[u+8>>2]=u)}}while(0);t=0|i[(e=n+8|0)>>2],i[t+12>>2]=u,i[e>>2]=u,i[u+8>>2]=t,i[u+12>>2]=n,i[u+24>>2]=0}function S(e,t,n,a,o){e|=0,t|=0,n|=0;var s,c,l=0,f=0,A=0,h=0,p=0,d=0,g=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0,E=0,_=0,k=0,Q=0,S=0,x=0,D=0,P=0,M=0,F=0,O=0,R=0,T=0,H=0,j=0,N=0,U=0,L=0,K=0,G=0,$=0,Y=0,J=0,V=0,z=0,q=0,W=0,X=0,Z=0,ee=0,te=0,ne=0,re=0,ie=0,ae=0,oe=0,se=0,ce=0,ue=0,le=0,fe=0,Ae=0,he=0;if(c=y,s=y=y+63&-64,y=y+64|0,!(0==(0|(a|=0))&0==(0|(o|=0)))){for(U=0|i[e>>2],L=0|i[e+4>>2],K=0|i[e+8>>2],G=0|i[e+12>>2],$=0|i[e+16>>2],P=0|i[e+20>>2],M=0|i[e+24>>2],F=0|i[e+28>>2],O=0|i[e+32>>2],R=0|i[e+36>>2],T=0|i[e+40>>2],H=0|i[e+44>>2],j=0|i[e+56>>2],N=0|i[e+60>>2],f=0,x=0|i[e+48>>2],D=0|i[e+52>>2],A=t;;){if(S=o>>>0<0|0==(0|o)&a>>>0<64){l=(t=s)+64|0;do{i[t>>2]=0,t=t+4|0}while((0|t)<(0|l));t=0;do{r[s+t>>0]=0|r[A+t>>0],t=t+1|0}while(o>>>0>0|0==(0|o)&a>>>0>t>>>0);Q=s,f=n,A=s}else Q=n;n=20,t=U,l=L,h=T,p=H,d=x,g=D,v=j,m=N,b=K,I=G,w=$,C=P,B=M,E=F,_=O,k=R;do{q=0|fr((ee=0|fr((Ae=0|fr((Z=(ee=0|fr((fe=t+w|0)^d,16))+_|0)^w,12))+fe^ee,8))+Z^Ae,7),he=0|fr((V=0|fr((ce=0|fr((J=(V=0|fr((se=l+C|0)^g,16))+k|0)^C,12))+se^V,8))+J^ce,7),ue=0|fr((z=0|fr((re=0|fr((te=(z=0|fr((ne=b+B|0)^v,16))+h|0)^B,12))+ne^z,8))+te^re,7),ie=0|fr((ae=0|fr((X=0|fr((Y=(ae=0|fr((W=I+E|0)^m,16))+p|0)^E,12))+W^ae,8))+Y^X,7),C=0|fr((h=(m=0|fr((t=(oe=0|fr((le=0|fr(ae^he+(Ae+fe),16))+(z+te)^he,12))+(he+(Ae+fe))|0)^le,8))+(le+(z+te))|0)^oe,7),B=0|fr((p=(d=0|fr((l=(te=0|fr((oe=0|fr(ue+(ce+se)^ee,16))+(ae+Y)^ue,12))+(ue+(ce+se))|0)^oe,8))+(oe+(ae+Y))|0)^te,7),E=0|fr((_=(g=0|fr((b=(Y=0|fr((te=0|fr(ie+(re+ne)^V,16))+(ee+Z)^ie,12))+(ie+(re+ne))|0)^te,8))+(te+(ee+Z))|0)^Y,7),w=0|fr((k=(v=0|fr((I=(Y=0|fr((z=0|fr(X+W+q^z,16))+(V+J)^q,12))+(X+W+q)|0)^z,8))+(z+(V+J))|0)^Y,7),n=n+-2|0}while(0!=(0|n));if(X=(0|Kn(A))^t+U,Z=(0|Kn(A+4|0))^l+L,ee=(0|Kn(A+8|0))^b+K,te=(0|Kn(A+12|0))^I+G,ne=(0|Kn(A+16|0))^w+$,re=(0|Kn(A+20|0))^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0|(_=0|Zt(0|_,0,0|c,0)),0|u(),0|h,0|E)),0|(h=0|u()),0|(B=0|Zt(0|B,0,0|s,0)),0|u())),0|(h=0|u()),0|(C=0|Zt(0|C,0,0|o,0)),0|u())),0|(h=0|u()),0|(g=0|Zt(0|g,0,0|b,0)),0|u()),h=0|u(),A=0|An(0|p,0|A,26),u(),y=0|An(0|(A=0|Sn(0|w,0|y,0|A,0)),0|u(),26),u(),v=0|An(0|(y=0|Sn(0|I,0|v,0|y,0)),0|u(),26),u(),m=0|An(0|(v=0|Sn(0|d,0|m,0|v,0)),0|u(),26),u(),h=0|An(0|(m=0|Sn(0|g,0|h,0|m,0)),0|u(),26),u(),n=0|Sn(0|n,0|a,-16,-1),!((a=0|u())>>>0>0|0==(0|a)&n>>>0>15)){n=(5*h|0)+(67108863&p)&67108863,d=(((5*h|0)+(67108863&p)|0)>>>26)+(67108863&A)|0,p=67108863&y,h=67108863&v,A=67108863&m;break}g=(5*h|0)+(67108863&p)&67108863,d=(((5*h|0)+(67108863&p)|0)>>>26)+(67108863&A)|0,p=67108863&y,h=67108863&v,A=67108863&m,t=t+16|0}else n=g;i[e+20>>2]=n,i[e+24>>2]=d,i[e+28>>2]=p,i[e+32>>2]=h,i[e+36>>2]=A}function D(e,t){e|=0;var n=0,a=0,o=0,s=0,c=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0,E=0;f=0|mt(t|=0),l=0|u(),C=0|cn(0|(C=0|Wt(0|r[t+4>>0],0|r[t+5>>0],0|r[t+6>>0])),0|u(),6),B=0|u(),c=0|cn(0|(c=0|Wt(0|r[t+7>>0],0|r[t+8>>0],0|r[t+9>>0])),0|u(),5),s=0|u(),I=0|cn(0|(I=0|Wt(0|r[t+10>>0],0|r[t+11>>0],0|r[t+12>>0])),0|u(),3),w=0|u(),o=0|cn(0|(o=0|Wt(0|r[t+13>>0],0|r[t+14>>0],0|r[t+15>>0])),0|u(),2),a=0|u(),m=0|mt(t+16|0),b=0|u(),A=0|cn(0|(A=0|Wt(0|r[t+20>>0],0|r[t+21>>0],0|r[t+22>>0])),0|u(),7),n=0|u(),h=0|cn(0|(h=0|Wt(0|r[t+23>>0],0|r[t+24>>0],0|r[t+25>>0])),0|u(),5),v=0|u(),p=0|cn(0|(p=0|Wt(0|r[t+26>>0],0|r[t+27>>0],0|r[t+28>>0])),0|u(),4),d=0|u(),g=0|cn(0|(g=0|Wt(0|r[t+29>>0],0|r[t+30>>0],0|r[t+31>>0])),0|u(),2),u(),E=0|Qn(0,0,0|(E=0|An(0|(y=0|Sn(33554428&g|0,0,16777216,0)),0|u(),25)),0|u()),u(),l=0|Sn(19&E|0,0,0|f,0|l),f=0|u(),y=0|Qn(33554428&g|0,0,33554432&y|0,0),g=0|u(),s=0|Sn(0|(t=0|tn(0|(E=0|Sn(0|C,0|B,16777216,0)),0|u(),25)),0|u(),0|c,0|s),c=0|u(),E=0|Qn(0|C,0|B,-33554432&E|0,0),B=0|u(),a=0|Sn(0|(t=0|tn(0|(C=0|Sn(0|I,0|w,16777216,0)),0|u(),25)),0|u(),0|o,0|a),o=0|u(),C=0|Qn(0|I,0|w,-33554432&C|0,0),w=0|u(),t=0|Sn(0|A,0|n,0|(t=0|tn(0|(I=0|Sn(0|m,0|b,16777216,0)),0|u(),25)),0|u()),n=0|u(),I=0|Qn(0|m,0|b,-33554432&I|0,0),b=0|u(),d=0|Sn(0|(A=0|tn(0|(m=0|Sn(0|h,0|v,16777216,0)),0|u(),25)),0|u(),0|p,0|d),p=0|u(),m=0|Qn(0|h,0|v,-33554432&m|0,0),v=0|u(),A=0|Sn(0|E,0|B,0|(A=0|An(0|(h=0|Sn(0|l,0|f,33554432,0)),0|u(),26)),0|u()),u(),h=0|Qn(0|l,0|f,-67108864&h|0,0),u(),l=0|Sn(0|C,0|w,0|(l=0|An(0|(f=0|Sn(0|s,0|c,33554432,0)),0|u(),26)),0|u()),u(),f=0|Qn(0|s,0|c,-67108864&f|0,0),u(),s=0|Sn(0|I,0|b,0|(s=0|An(0|(c=0|Sn(0|a,0|o,33554432,0)),0|u(),26)),0|u()),u(),c=0|Qn(0|a,0|o,-67108864&c|0,0),u(),a=0|Sn(0|m,0|v,0|(a=0|An(0|(o=0|Sn(0|t,0|n,33554432,0)),0|u(),26)),0|u()),u(),o=0|Qn(0|t,0|n,-67108864&o|0,0),u(),t=0|Sn(0|y,0|g,0|(t=0|An(0|(n=0|Sn(0|d,0|p,33554432,0)),0|u(),26)),0|u()),u(),n=0|Qn(0|d,0|p,-67108864&n|0,0),u(),i[e>>2]=h,i[e+4>>2]=A,i[e+8>>2]=f,i[e+12>>2]=l,i[e+16>>2]=c,i[e+20>>2]=s,i[e+24>>2]=o,i[e+28>>2]=a,i[e+32>>2]=n,i[e+36>>2]=t}function P(e,t){e|=0;var n=0,r=0,a=0,o=0,s=0,c=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0;l=0|i[(t|=0)>>2],w=0|i[t+4>>2],s=0|i[t+8>>2],b=0|i[t+12>>2],a=0|i[t+16>>2],v=0|i[t+20>>2],n=0|i[t+24>>2],A=0|i[t+28>>2],h=0|i[t+32>>2],B=0|i[t+36>>2],l=0|Zt(0|l,((0|l)<0)<<31>>31|0,121666,0),c=0|u(),w=0|Zt(0|w,((0|w)<0)<<31>>31|0,121666,0),C=0|u(),s=0|Zt(0|s,((0|s)<0)<<31>>31|0,121666,0),o=0|u(),b=0|Zt(0|b,((0|b)<0)<<31>>31|0,121666,0),I=0|u(),a=0|Zt(0|a,((0|a)<0)<<31>>31|0,121666,0),r=0|u(),v=0|Zt(0|v,((0|v)<0)<<31>>31|0,121666,0),m=0|u(),n=0|Zt(0|n,((0|n)<0)<<31>>31|0,121666,0),t=0|u(),A=0|Zt(0|A,((0|A)<0)<<31>>31|0,121666,0),y=0|u(),h=0|Zt(0|h,((0|h)<0)<<31>>31|0,121666,0),p=0|u(),c=0|Sn(0|(f=0|Zt(0|(f=0|tn(0|(g=0|Sn(0|(B=0|Zt(0|B,((0|B)<0)<<31>>31|0,121666,0)),0|(d=0|u()),16777216,0)),0|u(),25)),0|u(),19,0)),0|u(),0|l,0|c),l=0|u(),g=0|Qn(0|B,0|d,-33554432&g|0,0),d=0|u(),o=0|Sn(0|(f=0|tn(0|(B=0|Sn(0|w,0|C,16777216,0)),0|u(),25)),0|u(),0|s,0|o),s=0|u(),B=0|Qn(0|w,0|C,-33554432&B|0,0),C=0|u(),r=0|Sn(0|(f=0|tn(0|(w=0|Sn(0|b,0|I,16777216,0)),0|u(),25)),0|u(),0|a,0|r),a=0|u(),w=0|Qn(0|b,0|I,-33554432&w|0,0),I=0|u(),t=0|Sn(0|(f=0|tn(0|(b=0|Sn(0|v,0|m,16777216,0)),0|u(),25)),0|u(),0|n,0|t),n=0|u(),b=0|Qn(0|v,0|m,-33554432&b|0,0),m=0|u(),p=0|Sn(0|(f=0|tn(0|(v=0|Sn(0|A,0|y,16777216,0)),0|u(),25)),0|u(),0|h,0|p),h=0|u(),v=0|Qn(0|A,0|y,-33554432&v|0,0),y=0|u(),f=0|Sn(0|B,0|C,0|(f=0|An(0|(A=0|Sn(0|c,0|l,33554432,0)),0|u(),26)),0|u()),u(),A=0|Qn(0|c,0|l,-67108864&A|0,0),u(),c=0|Sn(0|w,0|I,0|(c=0|An(0|(l=0|Sn(0|o,0|s,33554432,0)),0|u(),26)),0|u()),u(),l=0|Qn(0|o,0|s,-67108864&l|0,0),u(),o=0|Sn(0|b,0|m,0|(o=0|An(0|(s=0|Sn(0|r,0|a,33554432,0)),0|u(),26)),0|u()),u(),s=0|Qn(0|r,0|a,-67108864&s|0,0),u(),r=0|Sn(0|v,0|y,0|(r=0|An(0|(a=0|Sn(0|t,0|n,33554432,0)),0|u(),26)),0|u()),u(),a=0|Qn(0|t,0|n,-67108864&a|0,0),u(),t=0|Sn(0|g,0|d,0|(t=0|An(0|(n=0|Sn(0|p,0|h,33554432,0)),0|u(),26)),0|u()),u(),n=0|Qn(0|p,0|h,-67108864&n|0,0),u(),i[e>>2]=A,i[e+4>>2]=f,i[e+8>>2]=l,i[e+12>>2]=c,i[e+16>>2]=s,i[e+20>>2]=o,i[e+24>>2]=a,i[e+28>>2]=r,i[e+32>>2]=n,i[e+36>>2]=t}function M(e,t,n){e|=0,t|=0;var i,o,s=0,c=0,u=0;if(o=y,i=y=y+63&-64,y=y+64|0,(n|=0)<<24>>24&&(255&n)<=64){if(0|function(e,t){return 1&(0!=(0|(e|=0))|0!=(0|(t|=0)))|0}(a[e+80>>0]|a[e+80+1>>0]<<8|a[e+80+2>>0]<<16|a[e+80+3>>0]<<24,a[e+80+4>>0]|a[e+80+4+1>>0]<<8|a[e+80+4+2>>0]<<16|a[e+80+4+3>>0]<<24))s=-1;else{s=a[e+352>>0]|a[e+352+1>>0]<<8|a[e+352+2>>0]<<16|a[e+352+3>>0]<<24;do{if(s>>>0>128){if(ue(e,128,0),v(e,e+96|0),s=(a[e+352>>0]|a[e+352+1>>0]<<8|a[e+352+2>>0]<<16|a[e+352+3>>0]<<24)-128|0,r[e+352>>0]=s,r[e+352+1>>0]=s>>8,r[e+352+2>>0]=s>>16,r[e+352+3>>0]=s>>24,s>>>0<129){te(e+96|0,e+224|0,0|s),c=a[e+352>>0]|a[e+352+1>>0]<<8|a[e+352+2>>0]<<16|a[e+352+3>>0]<<24,u=e+96|0;break}l(33456,33488,306,33533)}else c=s,u=e+96|0}while(0);ue(e,c,0),function(e){0|r[356+(e|=0)>>0]&&function(e){r[88+(e|=0)>>0]=-1,r[e+88+1>>0]=-1,r[e+88+2>>0]=-1,r[e+88+3>>0]=-1,r[e+88+4>>0]=-1,r[e+88+4+1>>0]=-1,r[e+88+4+2>>0]=-1,r[e+88+4+3>>0]=-1}(e),r[e+80>>0]=-1,r[e+80+1>>0]=-1,r[e+80+2>>0]=-1,r[e+80+3>>0]=-1,r[e+80+4>>0]=-1,r[e+80+4+1>>0]=-1,r[e+80+4+2>>0]=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>0]<<16|a[e+56+3>>0]<<24,a[e+56+4>>0]|a[e+56+4+1>>0]<<8|a[e+56+4+2>>0]<<16|a[e+56+4+3>>0]<<24),te(0|t,0|i,255&n|0),Et(e,64),Et(u,256),s=0}return y=o,0|s}return kr(),0}function F(e,t,n,a){e|=0,t|=0,n|=0;var o,s,c=0,u=0,l=0,f=0,A=0,h=0;switch(s=y,o=y=y+63&-64,y=y+16|0,0|(a|=0)){case 2:if(t>>>0<13)a=-31;else{c=33688,u=(a=e)+13|0;do{r[a>>0]=0|r[c>>0],a=a+1|0,c=c+1|0}while((0|a)<(0|u));e=e+12|0,u=t+-12|0,c=6}break;case 1:if(t>>>0<12)a=-31;else{c=33701,u=(a=e)+12|0;do{r[a>>0]=0|r[c>>0],a=a+1|0,c=c+1|0}while((0|a)<(0|u));e=e+11|0,u=t+-11|0,c=6}break;default:a=-31}do{if(6==(0|c)&&!(a=0|se(n))){if(at(o,19),c=e+(a=0|Ve(o))|0,f=u-a|0,u>>>0<=a>>>0){a=-31;break}if(te(0|e,0|o,a+1|0),f>>>0>=4){if(r[c>>0]=36,r[c+1>>0]=109,r[c+2>>0]=61,r[c+3>>0]=0,at(o,0|i[n+44>>2]),u=c+3+(e=0|Ve(o))|0,(f+-3|0)>>>0<=e>>>0){a=-31;break}if(te(c+3|0,0|o,e+1|0),(f+-3-e|0)>>>0>=4){if(r[u>>0]=44,r[u+1>>0]=116,r[u+2>>0]=61,r[u+3>>0]=0,at(o,0|i[n+40>>2]),t=u+3+(a=0|Ve(o))|0,l=f+-3-e-3-a|0,(f+-3-e-3|0)>>>0<=a>>>0){a=-31;break}if(te(u+3|0,0|o,a+1|0),l>>>0>=4){if(r[t>>0]=44,r[t+1>>0]=112,r[t+2>>0]=61,r[t+3>>0]=0,at(o,0|i[n+48>>2]),(l+-3|0)>>>0<=(c=0|Ve(o))>>>0){a=-31;break}if(te(t+3|0,0|o,c+1|0),a=t+3+c+1|0,(l+-3-c|0)>>>0>=2&&(r[t+3+c>>0]=36,r[t+3+c+1>>0]=0,$(a,l+-3-c-1|0,0|i[n+16>>2],0|i[n+20>>2],3),(h=l+-3-c-1-(A=0|Ve(a))|0)>>>0>=2))return r[a+A>>0]=36,r[a+A+1>>0]=0,$(a+A+1|0,h+-1|0,0|i[n>>2],0|i[n+4>>2],3),y=s,0;a=-31}else a=-31}else a=-31}else a=-31}}while(0);return y=s,0|a}function O(e,t,n,a){e|=0,t|=0,n|=0,a|=0;var o,s,c=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,v=0;s=y,o=y=y+63&-64,y=y+704|0;e:do{if(!(0==(0|n)&0==(0|a))){if(h=0|An(0|(v=0|i[e+72>>2]),0|(d=0|i[e+72+4>>2]),3),u(),p=0|cn(0|n,0|a,3),g=0|u(),f=0|An(0|n,0|a,61),A=0|u(),d=0|Sn(0|v,0|d,0|p,0|g),v=0|u(),i[e+72>>2]=d,i[e+72+4>>2]=v,c=0|i[e+64>>2],l=0|i[e+64+4>>2],v>>>0<g>>>0|(0|v)==(0|g)&d>>>0<p>>>0&&(c=0|Sn(0|c,0|l,1,0),l=0|u(),i[e+64>>2]=c,i[e+64+4>>2]=l),c=0|Sn(0|c,0|l,0|f,0|A),A=0|u(),i[e+64>>2]=c,i[e+64+4>>2]=A,A=0|Qn(128,0,127&h|0,0),(c=0|u())>>>0>a>>>0|(0|c)==(0|a)&A>>>0>n>>>0)for(c=0,l=0;;)if(g=0|r[t+c>>0],v=0|Sn(0|c,0|l,127&h|0,0),u(),r[e+80+v>>0]=g,c=0|Sn(0|c,0|l,1,0),!((l=0|u())>>>0<a>>>0|(0|l)==(0|a)&c>>>0<n>>>0))break e;if(!(0==(0|A)&0==(0|c))){l=0,f=0;do{g=0|r[t+l>>0],v=0|Sn(0|l,0|f,127&h|0,0),u(),r[e+80+v>>0]=g,l=0|Sn(0|l,0|f,1,0),f=0|u()}while(f>>>0<c>>>0|(0|f)==(0|c)&l>>>0<A>>>0)}if(b(e,e+80|0,o,o+640|0),c=0|Qn(0|n,0|a,0|A,0|c),(f=0|u())>>>0>0|0==(0|f)&c>>>0>127){l=t+A|0;do{b(e,l,o,o+640|0),l=l+128|0,c=0|Sn(0|c,0|f,-128,-1),f=0|u()}while(f>>>0>0|0==(0|f)&c>>>0>127)}else l=t+A|0;if(!(0==(0|(A=127&c))&!0)){c=0,f=0;do{r[e+80+c>>0]=0|r[l+c>>0],c=0|Sn(0|c,0|f,1,0),f=0|u()}while(f>>>0<0|0==(0|f)&c>>>0<A>>>0)}Et(o,704)}}while(0);y=s}function R(e,t,n){e|=0,t|=0;var r=0,i=0,a=0,o=0,s=0,c=0,u=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0,E=0,_=0,k=0,Q=0,S=0,x=0,D=0,P=0,M=0,F=0,O=0,R=0,T=0,H=0,j=0;i=0|Kn(n|=0),a=0|Kn(n+4|0),o=0|Kn(n+8|0),s=0|Kn(n+12|0),c=0|Kn(n+16|0),u=0|Kn(n+20|0),h=0|Kn(n+24|0),p=0|Kn(n+28|0),d=0|Kn(t),g=0|Kn(t+4|0),y=0|Kn(t+8|0),l=0,f=1634760805,A=857760878,n=0|Kn(t+12|0),t=2036477234,r=1797285236;do{w=0|fr((_=0|fr((H=0|fr((E=(_=0|fr(d^(T=i+f|0),16))+c|0)^i,12))+T^_,8))+E^H,7),j=0|fr((b=0|fr((F=0|fr((m=(b=0|fr(g^(M=a+A|0),16))+u|0)^a,12))+M^b,8))+m^F,7),O=0|fr((I=0|fr((S=0|fr((k=(I=0|fr(y^(Q=o+t|0),16))+h|0)^o,12))+Q^I,8))+k^S,7),x=0|fr((D=0|fr((B=0|fr((v=(D=0|fr(n^(C=s+r|0),16))+p|0)^s,12))+C^D,8))+v^B,7),a=0|fr((h=(n=0|fr((f=(P=0|fr((R=0|fr(D^j+(H+T),16))+(I+k)^j,12))+(j+(H+T))|0)^R,8))+(R+(I+k))|0)^P,7),o=0|fr((p=(d=0|fr((A=(k=0|fr((P=0|fr(O+(F+M)^_,16))+(D+v)^O,12))+(O+(F+M))|0)^P,8))+(P+(D+v))|0)^k,7),s=0|fr((c=(g=0|fr((t=(v=0|fr((k=0|fr(x+(S+Q)^b,16))+(_+E)^x,12))+(x+(S+Q))|0)^k,8))+(k+(_+E))|0)^v,7),i=0|fr((u=(y=0|fr((r=(v=0|fr((I=0|fr(B+C+w^I,16))+(b+m)^w,12))+(B+C+w)|0)^I,8))+(I+(b+m))|0)^v,7),l=l+1|0}while(10!=(0|l));Pn(e,f),Pn(e+4|0,A),Pn(e+8|0,t),Pn(e+12|0,r),Pn(e+16|0,d),Pn(e+20|0,g),Pn(e+24|0,y),Pn(e+28|0,n)}function T(e,t,n,i){e|=0,n|=0,i|=0;var a,o,s=0,c=0;for(a=y,o=y=y+63&-64,y=y+2272|0,de(o+1536|0,t|=0),de(o+1280|0,i),nn(o,n),rn(o+2112|0,n),en(o+1792|0,o+2112|0),Xe(o+2112|0,o+1792|0,o),en(o+1952|0,o+2112|0),nn(o+160|0,o+1952|0),Xe(o+2112|0,o+1792|0,o+160|0),en(o+1952|0,o+2112|0),nn(o+320|0,o+1952|0),Xe(o+2112|0,o+1792|0,o+320|0),en(o+1952|0,o+2112|0),nn(o+480|0,o+1952|0),Xe(o+2112|0,o+1792|0,o+480|0),en(o+1952|0,o+2112|0),nn(o+640|0,o+1952|0),Xe(o+2112|0,o+1792|0,o+640|0),en(o+1952|0,o+2112|0),nn(o+800|0,o+1952|0),Xe(o+2112|0,o+1792|0,o+800|0),en(o+1952|0,o+2112|0),nn(o+960|0,o+1952|0),Xe(o+2112|0,o+1792|0,o+960|0),en(o+1952|0,o+2112|0),nn(o+1120|0,o+1952|0),function(e){Hn(e|=0),kn(e+40|0),kn(e+80|0)}(e),n=255;;){if(0|r[o+1536+n>>0]){s=n,c=5;break}if(0|r[o+1280+n>>0]){s=n,c=5;break}if(!n)break;n=n+-1|0}if(5==(0|c)&&(0|s)>-1)for(;ot(o+2112|0,e),(n=0|r[o+1536+s>>0])<<24>>24<=0?n<<24>>24<0&&(en(o+1952|0,o+2112|0),We(o+2112|0,o+1952|0,o+(160*(((n<<24>>24)/-2|0)<<24>>24)|0)|0)):(en(o+1952|0,o+2112|0),Xe(o+2112|0,o+1952|0,o+(160*((255&n)>>>1&255)|0)|0)),(n=0|r[o+1280+s>>0])<<24>>24<=0?n<<24>>24<0&&(en(o+1952|0,o+2112|0),Ze(o+2112|0,o+1952|0,160+(120*(((n<<24>>24)/-2|0)<<24>>24)|0)|0)):(en(o+1952|0,o+2112|0),et(o+2112|0,o+1952|0,160+(120*((255&n)>>>1&255)|0)|0)),mn(e,o+2112|0),(0|s)>0;)s=s+-1|0;y=a}function H(e,t,n,a,o,s,c,u){e|=0,t|=0,n|=0,a|=0,o|=0,s|=0,c|=0,u|=0;var l,f,A=0,h=0,p=0,d=0,g=0,v=0,m=0;if(f=y,l=y=y+63&-64,y=y+16|0,i[l>>2]=0,tr(u),a){d=0,h=0,p=0,A=0;e:for(;;){for(v=A;A=0|r[n+v>>0],255==(0|(g=4&u?0|$e(A):0|Ye(A)));){if(!o){g=18;break e}if(!(0|Ln(o,A))){g=19;break e}if(!((A=v+1|0)>>>0<a>>>0)){g=17;break e}v=A}if(d=g+(d<<6)|0,(A=h+6|0)>>>0>7){if(h=h+-2|0,p>>>0>=t>>>0){g=13;break}r[e+p>>0]=d>>>h,p=p+1|0}else h=A;if((A=v+1|0)>>>0>=a>>>0){g=16;break}}13==(0|g)?(i[l>>2]=v,i[8678]=68,A=-1):16==(0|g)||17==(0|g)?(i[l>>2]=A,A=0):(18==(0|g)||19==(0|g))&&(i[l>>2]=v,A=0),h>>>0>4?(p=0,A=-1):g=21}else d=0,h=0,p=0,A=0,g=21;do{if(21==(0|g))if((1<<h)-1&d)p=0,A=-1;else if(A|2&u||(A=0|Te(n,a,l,o,h>>>1)),A)p=0;else if(0!=(0|o)&&(m=0|i[l>>2])>>>0<a>>>0){for(A=m;;){if(!(0|Ln(o,0|r[n+A>>0]))){g=31;break}if((A=A+1|0)>>>0>=a>>>0){g=30;break}}if(30==(0|g)){i[l>>2]=A,A=0;break}if(31==(0|g)){i[l>>2]=A,A=0;break}}else A=0}while(0);return h=0|i[l>>2],c?i[c>>2]=n+h:(0|h)!=(0|a)&&(i[8678]=28,A=-1),0|s&&(i[s>>2]=p),y=f,0|A}function j(e,t,n){t|=0,n|=0;var a,o,s,c=0,u=0,l=0;switch(s=y,o=y=y+63&-64,y=y+16|0,l=0|i[20+(e|=0)>>2],a=0|i[e+4>>2],i[e+20>>2]=0,i[e+4>>2]=0,0|n){case 2:0|it(t,33653,9)?t=-32:(t=t+9|0,u=4);break;case 1:0|it(t,33663,8)?t=-32:(t=t+8|0,u=4);break;default:t=-26}do{if(4==(0|u))if(0==(0|it(t,33672,3))&&0!=(0|(c=0|Ge(t+3|0,o+4|0))))if(19==(0|i[o+4>>2]))if(0|it(c,33676,3))t=-32;else{if(!(t=0|Ge(c+3|0,o+4|0))){t=-32;break}if(i[e+44>>2]=i[o+4>>2],0|it(t,33680,3))t=-32;else{if(!(t=0|Ge(t+3|0,o+4|0))){t=-32;break}if(i[e+40>>2]=i[o+4>>2],0|it(t,33684,3))t=-32;else{if(!(t=0|Ge(t+3|0,o+4|0))){t=-32;break}if(u=0|i[o+4>>2],i[e+48>>2]=u,i[e+52>>2]=u,t=(u=36==(0|r[t>>0]))?t+1|0:t,u){if(i[o+4>>2]=l,0|H(u=0|i[e+16>>2],l,t,0|Ve(t),0,o+4|0,o,3)){t=-32;break}if(i[e+20>>2]=i[o+4>>2],t=0|i[o>>2],t=(l=36==(0|r[t>>0]))?t+1|0:t,l){if(i[o+4>>2]=a,0|H(l=0|i[e>>2],a,t,0|Ve(t),0,o+4|0,o,3)){t=-32;break}i[e+4>>2]=i[o+4>>2],n=0|i[o>>2],(t=0|se(e))||(t=0==(0|r[n>>0])?0:-32)}else t=-32}else t=-32}}}else t=-26;else t=-32}while(0);return y=s,0|t}function N(e,t,n){e|=0,t|=0;var r=0,i=0,a=0,o=0,s=0,c=0,u=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0,E=0,_=0,k=0,Q=0,S=0,x=0,D=0,P=0,M=0;a=0|Kn(n|=0),A=0|Kn(n+4|0),h=0|Kn(n+8|0),p=0|Kn(n+12|0),s=0|Kn(n+16|0),c=0|Kn(n+20|0),u=0|Kn(n+24|0),l=0|Kn(n+28|0),g=0|Kn(t),y=0|Kn(t+4|0),v=0|Kn(t+8|0),r=20,i=1634760805,o=2036477234,f=1797285236,d=857760878,n=0|Kn(t+12|0);do{x=(0|fr((I=(0|fr((B=(0|fr((k=(0|fr(c+i|0,7))^p)+i|0,9))^v)+k|0,13))^c)+B|0,18))^i,_=(0|fr((M=(0|fr((b=(0|fr((C=(0|fr(d+a|0,7))^n)+d|0,9))^u)+C|0,13))^a)+b|0,18))^d,w=(0|fr((S=(0|fr((P=(0|fr((m=(0|fr(o+g|0,7))^l)+o|0,9))^A)+m|0,13))^g)+P|0,18))^o,t=(0|fr((E=(0|fr((Q=(0|fr((D=(0|fr(f+s|0,7))^h)+f|0,9))^y)+D|0,13))^s)+Q|0,18))^f,i=(0|fr((h=(0|fr((A=(0|fr((a=(0|fr(D+x|0,7))^M)+x|0,9))^P)+a|0,13))^D)+A|0,18))^x,d=(0|fr((p=(0|fr((y=(0|fr((g=(0|fr(_+k|0,7))^S)+_|0,9))^Q)+g|0,13))^k)+y|0,18))^_,o=(0|fr((n=(0|fr((v=(0|fr((s=(0|fr(w+C|0,7))^E)+w|0,9))^B)+s|0,13))^C)+v|0,18))^w,f=(0|fr((l=(0|fr((u=(0|fr((c=(0|fr(t+m|0,7))^I)+t|0,9))^b)+c|0,13))^m)+u|0,18))^t,r=r+-2|0}while(0!=(0|r));Pn(e,i),Pn(e+4|0,d),Pn(e+8|0,o),Pn(e+12|0,f),Pn(e+16|0,g),Pn(e+20|0,y),Pn(e+24|0,v),Pn(e+28|0,n)}function U(e,t,n,a){t|=0,n|=0,a|=0;var o=0,s=0,c=0,l=0,f=0,A=0,h=0,p=0;if(0==(0|(s=0|i[56+(e|=0)>>2]))&0==(0|(o=0|i[e+56+4>>2])))h=7;else{if(l=0|Qn(16,0,0|s,0|o),!(0==(0|(A=(f=0|u())>>>0>a>>>0|(0|f)==(0|a)&l>>>0>n>>>0?n:l))&0==(0|(f=f>>>0>a>>>0|(0|f)==(0|a)&l>>>0>n>>>0?a:f)))){l=0,c=0;do{p=0|r[t+l>>0],s=0|Sn(0|s,0|o,0|l,0|c),u(),r[e+64+s>>0]=p,l=0|Sn(0|l,0|c,1,0),c=0|u(),s=0|i[e+56>>2],o=0|i[e+56+4>>2]}while(c>>>0<f>>>0|(0|c)==(0|f)&l>>>0<A>>>0)}p=0|Sn(0|s,0|o,0|A,0|f),l=0|u(),i[e+56>>2]=p,i[e+56+4>>2]=l,l>>>0<0|0==(0|l)&p>>>0<16||(n=0|Qn(0|n,0|a,0|A,0|f),a=0|u(),x(e,e+64|0,16,0),i[e+56>>2]=0,i[e+56+4>>2]=0,t=t+A|0,h=7)}if(7==(0|h)&&(o=-16&n,a>>>0>0|0==(0|a)&n>>>0>15?(s=0|Qn(0|n,0|a,0|o,0|a),p=0|u(),x(e,t,o,a),a=p,t=t+o|0):s=n,!(0==(0|s)&0==(0|a)))){o=0,n=0;do{h=0|r[t+o>>0],p=0|Sn(0|i[e+56>>2],0|i[e+56+4>>2],0|o,0|n),u(),r[e+64+p>>0]=h,o=0|Sn(0|o,0|n,1,0),n=0|u()}while(n>>>0<a>>>0|(0|n)==(0|a)&o>>>0<s>>>0);h=0|Sn(0|i[e+56>>2],0|i[e+56+4>>2],0|s,0|a),p=0|u(),i[e+56>>2]=h,i[e+56+4>>2]=p}}function L(e,t){e|=0,t|=0;var n=0,s=0,c=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0;e:do{if(0|e){do{if(2==(0|i[e+36>>2])){if(0==(0|(n=0|i[t>>2]))&&(0|a[t+8>>0])<=1){s=6;break}p=0|i[e+4>>2],h=0}else s=6}while(0);if(6==(0|s)&&(re(e,t,p=0|i[e+4>>2]),n=0|i[t>>2],h=1),n=0==(0|n)&(c=0|r[t+8>>0])<<24>>24==0?2:0,s=0|i[e+24>>2],f=0|o(s,0|i[t+4>>2]),A=0|i[e+20>>2],c=f+n+(0|o(A,255&c))|0,n>>>0<A>>>0)for(l=s,A=c,s=(0==(0|(c>>>0)%(s>>>0))?s+-1|0:-1)+c|0;;){if(f=1==(0|(A>>>0)%(l>>>0))?A+-1|0:s,s=h?p+(n<<3)|0:(0|i[4+(0|i[e>>2])>>2])+(f<<10)|0,y=0|i[(l=s)>>2],l=0|Vt(0|i[l+4>>2],0,0|i[e+28>>2],0),c=0|u(),d=0|i[t>>2],s=0|r[t+8>>0],g=0|i[t+4>>2],l=0==(0|d)&s<<24>>24==0?g:l,i[t+12>>2]=n,c=0|ve(e,d,s,n,y,1&((0|l)==(0|g)?0==(0|(0==(0|d)&s<<24>>24==0?0:c)):0)),c=(s=0|i[4+(0|i[e>>2])>>2])+((0|o(0|i[e+24>>2],l))<<10)+(c<<10)|0,l=s+(A<<10)|0,d?B(s+(f<<10)|0,c,l):E(s+(f<<10)|0,c,l),(n=n+1|0)>>>0>=(0|i[e+20>>2])>>>0)break e;l=0|i[e+24>>2],A=A+1|0,s=f+1|0}}}while(0)}function K(e,t,n){var r,a;n|=0,r=y,a=y=y+63&-64,y=y+400|0,0==(0|(e|=0))|0==(0|(t|=0))||(vt(a,0,0,64),Pn(a+384|0,0|i[t+48>>2]),jn(a,a+384|0,4,0),Pn(a+384|0,0|i[t+4>>2]),jn(a,a+384|0,4,0),Pn(a+384|0,0|i[t+44>>2]),jn(a,a+384|0,4,0),Pn(a+384|0,0|i[t+40>>2]),jn(a,a+384|0,4,0),Pn(a+384|0,19),jn(a,a+384|0,4,0),Pn(a+384|0,n),jn(a,a+384|0,4,0),Pn(a+384|0,0|i[t+12>>2]),jn(a,a+384|0,4,0),0|(n=0|i[t+8>>2])&&(jn(a,n,0|i[t+12>>2],0),1&i[t+56>>2]|0)&&(Et(0|i[t+8>>2],0|i[t+12>>2]),i[t+12>>2]=0),Pn(a+384|0,0|i[t+20>>2]),jn(a,a+384|0,4,0),0|(n=0|i[t+16>>2])&&jn(a,n,0|i[t+20>>2],0),Pn(a+384|0,0|i[t+28>>2]),jn(a,a+384|0,4,0),0|(n=0|i[t+24>>2])&&(jn(a,n,0|i[t+28>>2],0),2&i[t+56>>2]|0)&&(Et(0|i[t+24>>2],0|i[t+28>>2]),i[t+28>>2]=0),Pn(a+384|0,0|i[t+36>>2]),jn(a,a+384|0,4,0),0|(n=0|i[t+32>>2])&&jn(a,n,0|i[t+36>>2],0),ln(a,e,64)),y=r}function G(e,t,n,a){e|=0,t|=0,n|=0,a|=0;var o,s,c=0,u=0,l=0;if(o=y,s=y=y+63&-64,y=y+528|0,i[s+512>>2]=0,Pn(s+512|0,t),t>>>0<65)(0|vt(s,0,0,t))>=0&&(jn(s,s+512|0,4,0),jn(s,n,a,0),ln(s,e,t));else e:do{if((0|vt(s,0,0,64))>=0&&(jn(s,s+512|0,4,0),jn(s,n,a,0),(0|ln(s,s+448|0,64))>=0)){u=s+448|0,l=(c=e)+32|0;do{r[c>>0]=0|r[u>>0],c=c+1|0,u=u+1|0}while((0|c)<(0|l));u=s+448|0,l=64+(c=s+384|0)|0;do{i[c>>2]=i[u>>2],c=c+4|0,u=u+4|0}while((0|c)<(0|l));if((t+-32|0)>>>0>64){a=e+32|0,n=t+-32|0;do{if((0|Nt(s+448|0,64,s+384|0,64,0,0,0))<0)break e;u=s+448|0,l=(c=a)+32|0;do{r[c>>0]=0|r[u>>0],c=c+1|0,u=u+1|0}while((0|c)<(0|l));n=n+-32|0,a=a+32|0,u=s+448|0,l=64+(c=s+384|0)|0;do{i[c>>2]=i[u>>2],c=c+4|0,u=u+4|0}while((0|c)<(0|l))}while(n>>>0>64)}else a=e+32|0,n=t+-32|0;(0|Nt(s+448|0,n,s+384|0,64,0,0,0))>=0&&te(0|a,s+448|0,0|n)}}while(0);Et(s,384),y=o}function $(e,t,n,i,s){e|=0,t|=0,n|=0,i|=0;var c=0,u=0,f=0,A=0,h=0,p=0;tr(s|=0),u=(0|o((i>>>0)/3|0,-3))+i|0,c=((i>>>0)/3|0)<<2;do{if(u){if(2&s){c=(2|c)+(u>>>1)|0;break}c=c+4|0;break}}while(0);if(c>>>0>=t>>>0&&kr(),4&s)if(0|i){A=0,s=0,u=0,h=0;do{if(p=h,h=h+1|0,A=A<<8|0|a[n+p>>0],(s=s+8|0)>>>0>5)for(;;){if(p=255&(0|Ht(A>>>(s=s+-6|0)&63)),f=u+1|0,r[e+u>>0]=p,!(s>>>0>5)){u=f;break}u=f}}while((0|h)!=(0|i));s&&(p=255&(0|Ht(A<<6-s&63)),r[e+u>>0]=p,u=u+1|0)}else u=0;else if(0|i){A=0,s=0,u=0,h=0;do{if(f=h,h=h+1|0,A=A<<8|0|a[n+f>>0],(s=s+8|0)>>>0>5)for(;;){if(p=255&(0|jt(A>>>(s=s+-6|0)&63)),f=u+1|0,r[e+u>>0]=p,!(s>>>0>5)){u=f;break}u=f}}while((0|h)!=(0|i));s&&(p=255&(0|jt(A<<6-s&63)),r[e+u>>0]=p,u=u+1|0)}else u=0;return c>>>0<u>>>0&&l(34564,34583,230,34599),c>>>0>u>>>0?ke(e+u|0,61,c-u|0):c=u,ke(e+c|0,0,((p=c+1|0)>>>0<t>>>0?t:p)-c|0),0|e}function Y(e,t,n,o,s,c,l,f){e|=0,t|=0,s|=0,c|=0,l|=0,f|=0;var A,h,p=0,d=0;if(A=y,h=y=y+63&-64,y=y+112|0,!(0==(0|(n|=0))&0==(0|(o|=0)))){p=(d=h)+32|0;do{r[d>>0]=0|r[f>>0],d=d+1|0,f=f+1|0}while((0|d)<(0|p));f=a[s+4>>0]|a[s+4+1>>0]<<8|a[s+4+2>>0]<<16|a[s+4+3>>0]<<24,i[h+96>>2]=a[s>>0]|a[s+1>>0]<<8|a[s+2>>0]<<16|a[s+3>>0]<<24,i[h+96+4>>2]=f,f=8;do{r[h+96+f>>0]=c,c=0|An(0|c,0|l,8),l=0|u(),f=f+1|0}while(16!=(0|f));if(o>>>0>0|0==(0|o)&n>>>0>63)for(c=o;;){nr(h+32|0,h+96|0,h),l=0;do{r[e+l>>0]=r[h+32+l>>0]^r[t+l>>0],l=l+1|0}while(64!=(0|l));for(f=8,l=1;l=l+(0|a[(o=h+96+f|0)>>0])|0,r[o>>0]=l,16!=(0|(f=f+1|0));)l>>>=8;if(l=0|Sn(0|n,0|c,-64,-1),e=e+64|0,t=t+64|0,!((f=0|u())>>>0>0|0==(0|f)&l>>>0>63)){c=l;break}n=l,c=f}else c=n,f=o;if(!(0==(0|c)&0==(0|f))&&(nr(h+32|0,h+96|0,h),0|c)){l=0;do{r[e+l>>0]=r[h+32+l>>0]^r[t+l>>0],l=l+1|0}while((0|l)!=(0|c))}Et(h+32|0,64),Et(h,32)}y=A}function J(e,t){t|=0;var n,a,o,s,c,l,f=0,A=0,h=0,p=0;0==(0|(A=0|i[56+(e|=0)>>2]))&0==(0|(f=0|i[e+56+4>>2]))||(r[e+64+A>>0]=1,f=0|Sn(0|A,0|f,1,0),(h=0|u())>>>0<0|0==(0|h)&f>>>0<16&&ke(e+64+f|0,0,14-A+1|0),r[e+80>>0]=1,x(e,e+64|0,16,0)),A=0|i[e+24>>2],p=(o=(-67108864|(a=((p=((h=(0|i[e+28>>2])+(A>>>26)|0)>>>26)+(0|i[e+32>>2])|0)>>>26)+(0|i[e+36>>2])|0))+((((((s=((l=(5*(a>>>26)|0)+(0|i[e+20>>2])|0)>>>26)+(67108863&A)+((5+(67108863&l)|0)>>>26)|0)>>>26)+(67108863&h)|0)>>>26)+(67108863&p)|0)>>>26)|0)>>31&67108863&p|(c=(o>>>31)-1&67108863)&(((s>>>26)+(67108863&h)|0)>>>26)+(67108863&p),n=0|Sn(o>>31&67108863&l|c&5+(67108863&l)|(o>>31&(l>>>26)+(67108863&A)|c&s)<<26|0,0,0|i[e+40>>2],0),f=0|u(),f=0|Sn(0|(A=0|Sn((o>>31&(l>>>26)+(67108863&A)|c&s)>>>6|(o>>31&67108863&h|c&(s>>>26)+(67108863&h))<<20|0,0,0|i[e+44>>2],0)),0|u(),0|f,0),A=0|u(),A=0|Sn(0|(h=0|Sn((o>>31&67108863&h|c&(s>>>26)+(67108863&h))>>>12|p<<14|0,0,0|i[e+48>>2],0)),0|u(),0|A,0),h=0|u(),h=0|Sn(0|(p=0|Sn(((o>>>31)-1&o|o>>31&a)<<8|p>>>18|0,0,0|i[e+52>>2],0)),0|u(),0|h,0),u(),Pn(t,n),Pn(t+4|0,f),Pn(t+8|0,A),Pn(t+12|0,h),Et(e,88)}function V(e,t){var n,r;e|=0,n=y,r=y=y+63&-64,y=y+192|0,_(r+144|0,t|=0),_(r+96|0,r+144|0),_(r+96|0,r+96|0),C(r+96|0,t,r+96|0),C(r+144|0,r+144|0,r+96|0),_(r+48|0,r+144|0),C(r+96|0,r+96|0,r+48|0),_(r+48|0,r+96|0),t=1;do{_(r+48|0,r+48|0),t=t+1|0}while(5!=(0|t));C(r+96|0,r+48|0,r+96|0),_(r+48|0,r+96|0),t=1;do{_(r+48|0,r+48|0),t=t+1|0}while(10!=(0|t));C(r+48|0,r+48|0,r+96|0),_(r,r+48|0),t=1;do{_(r,r),t=t+1|0}while(20!=(0|t));C(r+48|0,r,r+48|0),_(r+48|0,r+48|0),t=1;do{_(r+48|0,r+48|0),t=t+1|0}while(10!=(0|t));C(r+96|0,r+48|0,r+96|0),_(r+48|0,r+96|0),t=1;do{_(r+48|0,r+48|0),t=t+1|0}while(50!=(0|t));C(r+48|0,r+48|0,r+96|0),_(r,r+48|0),t=1;do{_(r,r),t=t+1|0}while(100!=(0|t));C(r+48|0,r,r+48|0),_(r+48|0,r+48|0),t=1;do{_(r+48|0,r+48|0),t=t+1|0}while(50!=(0|t));C(r+96|0,r+48|0,r+96|0),_(r+96|0,r+96|0),t=1;do{_(r+96|0,r+96|0),t=t+1|0}while(5!=(0|t));C(e,r+96|0,r+144|0),y=n}function z(e,t){e|=0;var n,i,a=0;for(n=y,i=y=y+63&-64,y=y+1760|0,nn(i,t|=0),rn(i+1600|0,t),en(i+1280|0,i+1600|0),Xe(i+1600|0,i+1280|0,i),en(i+1440|0,i+1600|0),nn(i+160|0,i+1440|0),Xe(i+1600|0,i+1280|0,i+160|0),en(i+1440|0,i+1600|0),nn(i+320|0,i+1440|0),Xe(i+1600|0,i+1280|0,i+320|0),en(i+1440|0,i+1600|0),nn(i+480|0,i+1440|0),Xe(i+1600|0,i+1280|0,i+480|0),en(i+1440|0,i+1600|0),nn(i+640|0,i+1440|0),Xe(i+1600|0,i+1280|0,i+640|0),en(i+1440|0,i+1600|0),nn(i+800|0,i+1440|0),Xe(i+1600|0,i+1280|0,i+800|0),en(i+1440|0,i+1600|0),nn(i+960|0,i+1440|0),Xe(i+1600|0,i+1280|0,i+960|0),en(i+1440|0,i+1600|0),nn(i+1120|0,i+1440|0),Yn(e),a=252;rn(i+1600|0,e),(t=0|r[31840+a>>0])<<24>>24<=0?t<<24>>24<0&&(en(i+1440|0,i+1600|0),We(i+1600|0,i+1440|0,i+(160*(((t<<24>>24)/-2|0)<<24>>24)|0)|0)):(en(i+1440|0,i+1600|0),Xe(i+1600|0,i+1440|0,i+(160*((255&t)>>>1&255)|0)|0)),en(e,i+1600|0),a;)a=a+-1|0;y=n}function q(e,t,n,r,a,o,s){e|=0,t|=0,n|=0,r|=0,a|=0;var c,l,f=0,A=0;return c=y,l=y=y+63&-64,y=y+352|0,N(l,o|=0,s|=0),e>>>0>n>>>0&&0<a>>>0|0==(0|a)&(e-n|0)>>>0<r>>>0||n>>>0>e>>>0&&0<a>>>0|0==(0|a)&(n-e|0)>>>0<r>>>0?A=5:f=n,5==(0|A)&&(Bt(0|e,0|n,0|r),f=e),i[l+32>>2]=0,i[l+32+4>>2]=0,i[l+32+8>>2]=0,i[l+32+12>>2]=0,i[l+32+16>>2]=0,i[l+32+20>>2]=0,i[l+32+24>>2]=0,i[l+32+28>>2]=0,0==(0|(s=a>>>0>0|0==(0|a)&r>>>0>32?32:r))&0==(0|(n=a>>>0>0|0==(0|a)&r>>>0>32?0:a))||te(l+32+32|0,0|f,-2-(A=~a>>>0>4294967295|-1==(0|~a)&~r>>>0>4294967263?~r:-33)+1|0),En(l+32|0,l+32|0,A=0|Sn(0|s,0|n,32,0),0|u(),o+16|0,l),Wn(l+96|0,l+32|0),0==(0|s)&0==(0|n)||te(0|e,l+32+32|0,-2-(A=~a>>>0>4294967295|-1==(0|~a)&~r>>>0>4294967263?~r:-33)+1|0),Et(l+32|0,64),a>>>0>0|0==(0|a)&r>>>0>32&&wn(e+s|0,f+s|0,A=0|Qn(0|r,0|a,0|s,0|n),0|u(),o+16|0,l),Et(l,32),xn(l+96|0,e,r,a),qn(l+96|0,t),Et(l+96|0,256),y=c,0}function W(e,t,n,i){e|=0,t|=0,n|=0,i|=0;var o=0,s=0,c=0,l=0;e:do{if(!(0==(0|n)&0==(0|i))){for(o=a[e+352>>0]|a[e+352+1>>0]<<8|a[e+352+2>>0]<<16|a[e+352+3>>0]<<24,c=t;t=e+96+o|0,i>>>0>0|0==(0|i)&n>>>0>(l=256-o|0)>>>0;){te(0|t,0|c,0|l),t=(a[e+352>>0]|a[e+352+1>>0]<<8|a[e+352+2>>0]<<16|a[e+352+3>>0]<<24)+l|0,r[e+352>>0]=t,r[e+352+1>>0]=t>>8,r[e+352+2>>0]=t>>16,r[e+352+3>>0]=t>>24,ue(e,128,0),v(e,e+96|0),o=e+224|0,s=128+(t=e+96|0)|0;do{r[t>>0]=0|r[o>>0],t=t+1|0,o=o+1|0}while((0|t)<(0|s));if(o=(a[e+352>>0]|a[e+352+1>>0]<<8|a[e+352+2>>0]<<16|a[e+352+3>>0]<<24)-128|0,r[e+352>>0]=o,r[e+352+1>>0]=o>>8,r[e+352+2>>0]=o>>16,r[e+352+3>>0]=o>>24,0==(0|(n=0|Qn(0|n,0|i,0|l,0)))&0==(0|(i=0|u())))break e;c=c+l|0}te(0|t,0|c,0|n),l=(a[e+352>>0]|a[e+352+1>>0]<<8|a[e+352+2>>0]<<16|a[e+352+3>>0]<<24)+n|0,r[e+352>>0]=l,r[e+352+1>>0]=l>>8,r[e+352+2>>0]=l>>16,r[e+352+3>>0]=l>>24}}while(0)}function X(e,t,n){var r,a,o,s,c,u,l,f,A,h,p,d,g,y,v,m,b,I,w,C;t|=0,n|=0,C=0|i[(e|=0)>>2],I=0|i[e+4>>2],m=0|i[e+8>>2],y=0|i[e+12>>2],d=0|i[e+16>>2],h=0|i[e+20>>2],f=0|i[e+24>>2],u=0|i[e+28>>2],s=0|i[e+32>>2],a=0|i[e+36>>2],w=0|i[t>>2],b=0|i[t+4>>2],v=0|i[t+8>>2],g=0|i[t+12>>2],p=0|i[t+16>>2],A=0|i[t+20>>2],l=0|i[t+24>>2],c=0|i[t+28>>2],o=0|i[t+32>>2],r=0|i[t+36>>2],i[e>>2]=(w^C)&0-n^C,i[e+4>>2]=(b^I)&0-n^I,i[e+8>>2]=(v^m)&0-n^m,i[e+12>>2]=(g^y)&0-n^y,i[e+16>>2]=(p^d)&0-n^d,i[e+20>>2]=(A^h)&0-n^h,i[e+24>>2]=(l^f)&0-n^f,i[e+28>>2]=(c^u)&0-n^u,i[e+32>>2]=(o^s)&0-n^s,i[e+36>>2]=(r^a)&0-n^a,i[t>>2]=(w^C)&0-n^w,i[t+4>>2]=(b^I)&0-n^b,i[t+8>>2]=(v^m)&0-n^v,i[t+12>>2]=(g^y)&0-n^g,i[t+16>>2]=(p^d)&0-n^p,i[t+20>>2]=(A^h)&0-n^A,i[t+24>>2]=(l^f)&0-n^l,i[t+28>>2]=(c^u)&0-n^c,i[t+32>>2]=(o^s)&0-n^o,i[t+36>>2]=(r^a)&0-n^r}function Z(e,t,n,o,s){e|=0,o|=0,s|=0;var c,l,f=0,A=0,h=0,p=0,d=0;if(c=y,l=y=y+63&-64,y=y+112|0,!(0==(0|(t|=0))&0==(0|(n|=0)))){f=(A=l)+32|0;do{r[A>>0]=0|r[s>>0],A=A+1|0,s=s+1|0}while((0|A)<(0|f));if(A=a[o+4>>0]|a[o+4+1>>0]<<8|a[o+4+2>>0]<<16|a[o+4+3>>0]<<24,i[l+96>>2]=a[o>>0]|a[o+1>>0]<<8|a[o+2>>0]<<16|a[o+3>>0]<<24,i[l+96+4>>2]=A,i[l+96+8>>2]=0,i[l+96+8+4>>2]=0,n>>>0>0|0==(0|n)&t>>>0>63){do{for(nr(e,l+96|0,l),f=8,s=1;s=s+(0|a[(A=l+96+f|0)>>0])|0,r[A>>0]=s,16!=(0|(f=f+1|0));)s>>>=8;t=0|Sn(0|t,0|n,-64,-1),n=0|u(),e=e+64|0}while(n>>>0>0|0==(0|n)&t>>>0>63);0==(0|t)&0==(0|n)||(p=e,d=t,h=8)}else p=e,d=t,h=8;if(8==(0|h)&&(nr(l+32|0,l+96|0,l),0|d)){s=0;do{r[p+s>>0]=0|r[l+32+s>>0],s=s+1|0}while((0|s)!=(0|d))}Et(l+32|0,64),Et(l,32)}y=c}function ee(e,t,n,r,i,a,o){e|=0,t|=0,n|=0,r|=0,i|=0;var s,c,l=0;return c=y,s=y=y+63&-64,y=y+96|0,N(s,a|=0,o|=0),function(e,t,n){Z(e|=0,32,0,t|=0,n|=0)}(s+32|0,a+16|0,s),0|function(e,t,n,r,i){return 0|function(e,t,n,r,i){var a,o;return e|=0,a=y,o=y=y+63&-64,y=y+16|0,function(e,t,n,r,i){var a,o;e|=0,t|=0,n|=0,r|=0,a=y,o=y=y+63&-64,y=y+96|0,Qe(o,i|=0),U(o,t,n,r),J(o,e),y=a}(o,t|=0,n|=0,r|=0,i|=0),i=0|ur(e,o),y=a,0|i}(e|=0,t|=0,n|=0,r|=0,i|=0)}(n,t,r,i,s+32|0)?(Et(s,32),t=-1):e?(t>>>0>=e>>>0&&0<i>>>0|0==(0|i)&(t-e|0)>>>0<r>>>0||e>>>0>=t>>>0&&0<i>>>0|0==(0|i)&(e-t|0)>>>0<r>>>0?l=8:n=t,8==(0|l)&&(Bt(0|e,0|t,0|r),n=e),0==(0|(t=i>>>0>0|0==(0|i)&r>>>0>32?32:r))&0==(0|(o=i>>>0>0|0==(0|i)&r>>>0>32?0:i))?En(s+32|0,s+32|0,32,0,a+16|0,s):(te(s+32+32|0,0|n,-2-(l=~i>>>0>4294967295|-1==(0|~i)&~r>>>0>4294967263?~r:-33)+1|0),En(s+32|0,s+32|0,0|Sn(0|t,0|o,32,0),0|u(),a+16|0,s),te(0|e,s+32+32|0,-2-l+1|0)),i>>>0>0|0==(0|i)&r>>>0>32&&wn(e+t|0,n+t|0,0|Qn(0|r,0|i,0|t,0|o),0|u(),a+16|0,s),Et(s,32),t=0):t=0,y=c,0|t}function te(e,t,n){e|=0,t|=0;var a,o,s=0;if((0|(n|=0))>=8192)return p(0|e,0|t,0|n),0|e;if(o=0|e,a=e+n|0,(3&e)==(3&t)){for(;3&e;){if(!n)return 0|o;r[e>>0]=0|r[t>>0],e=e+1|0,t=t+1|0,n=n-1|0}for(s=(n=-4&a|0)-64|0;(0|e)<=(0|s);)i[e>>2]=i[t>>2],i[e+4>>2]=i[t+4>>2],i[e+8>>2]=i[t+8>>2],i[e+12>>2]=i[t+12>>2],i[e+16>>2]=i[t+16>>2],i[e+20>>2]=i[t+20>>2],i[e+24>>2]=i[t+24>>2],i[e+28>>2]=i[t+28>>2],i[e+32>>2]=i[t+32>>2],i[e+36>>2]=i[t+36>>2],i[e+40>>2]=i[t+40>>2],i[e+44>>2]=i[t+44>>2],i[e+48>>2]=i[t+48>>2],i[e+52>>2]=i[t+52>>2],i[e+56>>2]=i[t+56>>2],i[e+60>>2]=i[t+60>>2],e=e+64|0,t=t+64|0;for(;(0|e)<(0|n);)i[e>>2]=i[t>>2],e=e+4|0,t=t+4|0}else for(n=a-4|0;(0|e)<(0|n);)r[e>>0]=0|r[t>>0],r[e+1>>0]=0|r[t+1>>0],r[e+2>>0]=0|r[t+2>>0],r[e+3>>0]=0|r[t+3>>0],e=e+4|0,t=t+4|0;for(;(0|e)<(0|a);)r[e>>0]=0|r[t>>0],e=e+1|0,t=t+1|0;return 0|o}function ne(e,t){e|=0;var n,a,o=0;n=y,a=y=y+63&-64,y=y+48|0,function(e,t){var n,r,a,o,s,c,u,l,f,A,h;e|=0,f=0|i[(t|=0)>>2],h=0|i[t+4>>2],u=0|i[t+8>>2],c=0|i[t+12>>2],s=0|i[t+16>>2],A=0|i[t+20>>2],a=0|i[t+24>>2],r=0|i[t+28>>2],n=0|i[t+32>>2],o=(((((l=((19*((((((((((((16777216+(19*(t=0|i[t+36>>2])|0)|0)>>>25)+f>>26)+h>>25)+u>>26)+c>>25)+s>>26)+A>>25)+a>>26)+r>>25)+n>>26)+t>>25)|0)+f>>26)+h|0)>>25)+u>>26)+c>>25)+s>>26)+A|0,i[e>>2]=(19*((((((((((((16777216+(19*t|0)|0)>>>25)+f>>26)+h>>25)+u>>26)+c>>25)+s>>26)+A>>25)+a>>26)+r>>25)+n>>26)+t>>25)|0)+f&67108863,i[e+4>>2]=33554431&l,i[e+8>>2]=(l>>25)+u&67108863,i[e+12>>2]=((l>>25)+u>>26)+c&33554431,i[e+16>>2]=(((l>>25)+u>>26)+c>>25)+s&67108863,i[e+20>>2]=33554431&o,i[e+24>>2]=(o>>25)+a&67108863,i[e+28>>2]=((o>>25)+a>>26)+r&33554431,i[e+32>>2]=(((o>>25)+a>>26)+r>>25)+n&67108863,i[e+36>>2]=((((o>>25)+a>>26)+r>>25)+n>>26)+t&33554431}(a,t|=0),t=0|i[a>>2],r[e>>0]=t,r[e+1>>0]=t>>>8,r[e+2>>0]=t>>>16,o=0|i[a+4>>2],r[e+3>>0]=o<<2|t>>>24,r[e+4>>0]=o>>>6,r[e+5>>0]=o>>>14,t=0|i[a+8>>2],r[e+6>>0]=t<<3|o>>>22,r[e+7>>0]=t>>>5,r[e+8>>0]=t>>>13,o=0|i[a+12>>2],r[e+9>>0]=o<<5|t>>>21,r[e+10>>0]=o>>>3,r[e+11>>0]=o>>>11,t=0|i[a+16>>2],r[e+12>>0]=t<<6|o>>>19,r[e+13>>0]=t>>>2,r[e+14>>0]=t>>>10,r[e+15>>0]=t>>>18,t=0|i[a+20>>2],r[e+16>>0]=t,r[e+17>>0]=t>>>8,r[e+18>>0]=t>>>16,o=0|i[a+24>>2],r[e+19>>0]=o<<1|t>>>24,r[e+20>>0]=o>>>7,r[e+21>>0]=o>>>15,t=0|i[a+28>>2],r[e+22>>0]=t<<3|o>>>23,r[e+23>>0]=t>>>5,r[e+24>>0]=t>>>13,o=0|i[a+32>>2],r[e+25>>0]=o<<4|t>>>21,r[e+26>>0]=o>>>4,r[e+27>>0]=o>>>12,t=0|i[a+36>>2],r[e+28>>0]=t<<6|o>>>20,r[e+29>>0]=t>>>2,r[e+30>>0]=t>>>10,r[e+31>>0]=t>>>18,y=n}function re(e,t,n){e|=0,t|=0,n|=0;var r,o,s=0,c=0,l=0;if(r=y,o=y=y+63&-64,y=y+4096|0,Ar(o+3072|0),Ar(o+2048|0),0!=(0|e)&0!=(0|t)&&(i[o+2048>>2]=i[t>>2],i[o+2048+4>>2]=0,i[o+2048+8>>2]=i[t+4>>2],i[o+2048+8+4>>2]=0,i[o+2048+16>>2]=a[t+8>>0],i[o+2048+16+4>>2]=0,i[o+2048+24>>2]=i[e+16>>2],i[o+2048+24+4>>2]=0,i[o+2048+32>>2]=i[e+8>>2],i[o+2048+32+4>>2]=0,i[o+2048+40>>2]=i[e+36>>2],i[o+2048+40+4>>2]=0,0|i[e+20>>2])){t=0;do{(s=127&t)||(l=0|Sn(0|i[o+2048+48>>2],0|i[o+2048+48+4>>2],1,0),c=0|u(),i[o+2048+48>>2]=l,i[o+2048+48+4>>2]=c,Ar(o),Ar(o+1024|0),B(o+3072|0,o+2048|0,o),B(o+3072|0,o,o+1024|0)),c=0|i[o+1024+(s<<3)+4>>2],i[(l=n+(t<<3)|0)>>2]=i[o+1024+(s<<3)>>2],i[l+4>>2]=c,t=t+1|0}while(t>>>0<(0|i[e+20>>2])>>>0)}y=r}function ie(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a,o,s,c,u=0,l=0,f=0;c=y,s=y=y+63&-64,y=y+64|0,l=52+(u=s+8|0)|0;do{i[u>>2]=0,u=u+4|0}while((0|u)<(0|l));u=0|Ve(e),i[s+36>>2]=u,i[s+20>>2]=u,i[s+4>>2]=u,l=0|I(u),i[s+32>>2]=l,a=0|I(u),i[s+16>>2]=a,o=0|I(u),i[s>>2]=o;do{if(0==(0|l)|0==(0|a)|0==(0|o))k(l),k(a),k(o),u=-22;else{if(!(f=0|I(u))){k(l),k(a),k(o),u=-22;break}if(0|(u=0|j(s,e,r))){k(0|i[s+32>>2]),k(0|i[s+16>>2]),k(0|i[s>>2]),k(f);break}r=0|le(0|i[s+40>>2],0|i[s+44>>2],0|i[s+52>>2],t,n,0|i[s+16>>2],0|i[s+20>>2],f,0|i[s+4>>2],0,0,r),k(0|i[s+32>>2]),k(0|i[s+16>>2]),u=0==(0|r)&&0==(0|tt(f,0|i[s>>2],0|i[s+4>>2]))?0:-35,k(f),k(0|i[s>>2])}}while(0);return y=c,0|u}function ae(e,t){e|=0,t|=0;var n,i,o=0,s=0,c=0;n=y,i=y=y+63&-64,y=y+464|0,o=0;do{c=0|r[t+o>>0],r[i+(s=o<<1)>>0]=15&c,r[i+(1|s)>>0]=(255&c)>>>4,o=o+1|0}while(32!=(0|o));t=0,o=0;do{t=134217728+((s=t+(0|a[(c=i+o|0)>>0])|0)<<24)>>28,r[c>>0]=s-(t<<4),o=o+1|0}while(63!=(0|o));r[i+63>>0]=t+(0|a[i+63>>0]),Yn(e),t=1;do{Vn(i+64|0,t>>>1,0|r[i+t>>0]),et(i+304|0,e,i+64|0),en(e,i+304|0),t=t+2|0}while(t>>>0<64);rn(i+304|0,e),mn(i+184|0,i+304|0),ot(i+304|0,i+184|0),mn(i+184|0,i+304|0),ot(i+304|0,i+184|0),mn(i+184|0,i+304|0),ot(i+304|0,i+184|0),en(e,i+304|0),t=0;do{Vn(i+64|0,t>>>1,0|r[i+t>>0]),et(i+304|0,e,i+64|0),en(e,i+304|0),t=t+2|0}while(t>>>0<64);y=n}function oe(e,t,n,r,i,a,o,s,c,l,f){var A;e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,o|=0,s|=0,c|=0,A=y,y=y+352|0,$t(A+16|0,64,0,l|=0,f|=0),Wn(A+80|0,A+16|0),Et(A+16|0,64),xn(A+80|0,o,s,c),t=0|Qn(0,0,0|s,0|c),u(),xn(A+80|0,34624,15&t,0),xn(A+80|0,n,r,i),t=0|Qn(0,0,0|r,0|i),u(),xn(A+80|0,34624,15&t,0),Ot(A+336|0,s,c),xn(A+80|0,A+336|0,8,0),Ot(A+336|0,r,i),xn(A+80|0,A+336|0,8,0),qn(A+80|0,A),Et(A+80|0,256),t=0|ur(A,a),Et(A,16);do{if(e){if(t){ke(0|e,0,0|r),t=-1;break}ct(e,n,r,i,l,1,f),t=0;break}}while(0);return y=A,0|t}function se(e){e|=0;var t=0,n=0;do{if(e)if(0|i[e>>2])if((0|i[e+4>>2])>>>0>=16){if(0==(0|i[e+8>>2])&&0|i[e+12>>2]){t=-18;break}if(t=0|i[e+20>>2],!(0|i[e+16>>2]))return 0|(0==(0|t)?-6:-19);if(t>>>0>=8){if(0==(0|i[e+24>>2])&&0|i[e+28>>2]){t=-20;break}if(0==(0|i[e+32>>2])&&0|i[e+36>>2]){t=-21;break}if((t=0|i[e+44>>2])>>>0>=8)if(t>>>0<=2097152)if(t>>>0>=(n=0|i[e+48>>2])<<3>>>0)if(0|i[e+40>>2])if(n){if(!(n>>>0>16777215))return 0|(0==(0|(e=0|i[e+52>>2]))?-28:e>>>0>16777215?-29:0);t=-17}else t=-16;else t=-12;else t=-14;else t=-15;else t=-14}else t=-6}else t=-2;else t=-1;else t=-25}while(0);return 0|t}function ce(e,t,n,a,o){var s,c;e|=0,n|=0,a|=0,o|=0,s=y,c=y=y+63&-64,y=y+192|0,((t|=0)-1&255)>63&&kr(),n||kr(),r[c+128>>0]=t,r[c+128+1>>0]=32,r[c+128+2>>0]=1,r[c+128+3>>0]=1,$n(c+128+4|0),Ot(c+128+8|0,0,0),i[c+128+16>>2]=0,i[c+128+16+4>>2]=0,i[c+128+16+8>>2]=0,i[c+128+16+12>>2]=0,a?function(e,t){t|=0;var n=0;e=16+(n=32+(e|=0)|0)|0;do{r[n>>0]=0|r[t>>0],n=n+1|0,t=t+1|0}while((0|n)<(0|e))}(c+128|0,a):(i[c+128+32>>2]=0,i[c+128+32+4>>2]=0,i[c+128+32+8>>2]=0,i[c+128+32+12>>2]=0),o?function(e,t){t|=0;var n=0;e=16+(n=48+(e|=0)|0)|0;do{r[n>>0]=0|r[t>>0],n=n+1|0,t=t+1|0}while((0|n)<(0|e))}(c+128|0,o):(i[c+128+48>>2]=0,i[c+128+48+4>>2]=0,i[c+128+48+8>>2]=0,i[c+128+48+12>>2]=0),Ue(e,c+128|0),o=96+(t=c+32|0)|0;do{i[t>>2]=0,t=t+4|0}while((0|t)<(0|o));o=(t=c)+32|0;do{r[t>>0]=0|r[n>>0],t=t+1|0,n=n+1|0}while((0|t)<(0|o));W(e,c,128,0),Et(c,128),y=s}function ue(e,t,n){var i,o;t|=0,n|=0,i=0|Sn(a[64+(e|=0)>>0]|a[e+64+1>>0]<<8|a[e+64+2>>0]<<16|a[e+64+3>>0]<<24|0,a[e+64+4>>0]|a[e+64+4+1>>0]<<8|a[e+64+4+2>>0]<<16|a[e+64+4+3>>0]<<24|0,0|t,0|n),o=0|u(),r[e+64>>0]=i,r[e+64+1>>0]=i>>8,r[e+64+2>>0]=i>>16,r[e+64+3>>0]=i>>24,r[e+64+4>>0]=o,r[e+64+4+1>>0]=o>>8,r[e+64+4+2>>0]=o>>16,r[e+64+4+3>>0]=o>>24,t=0|Sn(a[e+72>>0]|a[e+72+1>>0]<<8|a[e+72+2>>0]<<16|a[e+72+3>>0]<<24|0,a[e+72+4>>0]|a[e+72+4+1>>0]<<8|a[e+72+4+2>>0]<<16|a[e+72+4+3>>0]<<24|0,1&(o>>>0<n>>>0|(0|o)==(0|n)&i>>>0<t>>>0)|0,0),n=0|u(),r[e+72>>0]=t,r[e+72+1>>0]=t>>8,r[e+72+2>>0]=t>>16,r[e+72+3>>0]=t>>24,r[e+72+4>>0]=n,r[e+72+4+1>>0]=n>>8,r[e+72+4+2>>0]=n>>16,r[e+72+4+3>>0]=n>>24}function le(e,t,n,r,a,o,s,c,u,l,f,A){var h,p,d;e|=0,t|=0,n|=0,r|=0,a|=0,o|=0,s|=0,c|=0,l|=0,f|=0,A|=0,d=y,p=y=y+63&-64,y=y+64|0,h=0|I(u|=0);do{if(h){if(i[p>>2]=h,i[p+4>>2]=u,i[p+8>>2]=r,i[p+12>>2]=a,i[p+16>>2]=o,i[p+20>>2]=s,i[p+24>>2]=0,i[p+24+4>>2]=0,i[p+24+8>>2]=0,i[p+24+12>>2]=0,i[p+40>>2]=e,i[p+44>>2]=t,i[p+48>>2]=n,i[p+52>>2]=n,i[p+56>>2]=0,0|(t=0|be(p,A))){Et(h,u),k(h);break}if(0|c&&te(0|c,0|h,0|u),0!=(0|l)&0!=(0|f)&&0|F(l,f,p,A)){Et(h,u),Et(l,f),k(h),t=-31;break}Et(h,u),k(h),t=0}else t=-22}while(0);return y=d,0|t}function fe(e,t){var n,r,i=0;return r=y,n=y=y+63&-64,y=y+288|0,D(40+(e|=0)|0,t|=0),kn(e+80|0),_(n+240|0,e+40|0),C(n+192|0,n+240|0,16),Ce(n+240|0,n+240|0,e+80|0),Be(n+192|0,n+192|0,e+80|0),_(n+144|0,n+192|0),C(n+144|0,n+144|0,n+192|0),_(e,n+144|0),C(e,e,n+192|0),C(e,e,n+240|0),function(e,t){e|=0;var n,r,i=0;n=y,r=y=y+63&-64,y=y+144|0,_(r+96|0,t|=0),_(r+48|0,r+96|0),_(r+48|0,r+48|0),C(r+48|0,t,r+48|0),C(r+96|0,r+96|0,r+48|0),_(r+96|0,r+96|0),C(r+96|0,r+48|0,r+96|0),_(r+48|0,r+96|0),i=1;do{_(r+48|0,r+48|0),i=i+1|0}while(5!=(0|i));C(r+96|0,r+48|0,r+96|0),_(r+48|0,r+96|0),i=1;do{_(r+48|0,r+48|0),i=i+1|0}while(10!=(0|i));C(r+48|0,r+48|0,r+96|0),_(r,r+48|0),i=1;do{_(r,r),i=i+1|0}while(20!=(0|i));C(r+48|0,r,r+48|0),_(r+48|0,r+48|0),i=1;do{_(r+48|0,r+48|0),i=i+1|0}while(10!=(0|i));C(r+96|0,r+48|0,r+96|0),_(r+48|0,r+96|0),i=1;do{_(r+48|0,r+48|0),i=i+1|0}while(50!=(0|i));C(r+48|0,r+48|0,r+96|0),_(r,r+48|0),i=1;do{_(r,r),i=i+1|0}while(100!=(0|i));C(r+48|0,r,r+48|0),_(r+48|0,r+48|0),i=1;do{_(r+48|0,r+48|0),i=i+1|0}while(50!=(0|i));C(r+96|0,r+48|0,r+96|0),_(r+96|0,r+96|0),_(r+96|0,r+96|0),C(e,r+96|0,t),y=n}(e,e),C(e,e,n+144|0),C(e,e,n+240|0),_(n+96|0,e),C(n+96|0,n+96|0,n+192|0),Ce(n+48|0,n+96|0,n+240|0),0|an(n+48|0)?i=4:(Be(n,n+96|0,n+240|0),0|an(n)?(C(e,e,64),i=4):e=-1),4==(0|i)&&((0|(i=0|hn(e)))==((0|a[t+31>>0])>>>7|0)&&je(e,e),C(e+120|0,e,e+40|0),e=0),y=r,0|e}function Ae(e,t,n){var r,a,o,s,c,u,l,f,A,h,p,d,g,y,v,m,b,I,w;t|=0,n|=0,w=0|i[(e|=0)>>2],b=0|i[e+4>>2],v=0|i[e+8>>2],g=0|i[e+12>>2],p=0|i[e+16>>2],A=0|i[e+20>>2],l=0|i[e+24>>2],c=0|i[e+28>>2],o=0|i[e+32>>2],r=0|i[e+36>>2],I=(i[t+4>>2]^b)&0-n,m=(i[t+8>>2]^v)&0-n,y=(i[t+12>>2]^g)&0-n,d=(i[t+16>>2]^p)&0-n,h=(i[t+20>>2]^A)&0-n,f=(i[t+24>>2]^l)&0-n,u=(i[t+28>>2]^c)&0-n,s=(i[t+32>>2]^o)&0-n,a=(i[t+36>>2]^r)&0-n,i[e>>2]=(i[t>>2]^w)&0-n^w,i[e+4>>2]=I^b,i[e+8>>2]=m^v,i[e+12>>2]=y^g,i[e+16>>2]=d^p,i[e+20>>2]=h^A,i[e+24>>2]=f^l,i[e+28>>2]=u^c,i[e+32>>2]=s^o,i[e+36>>2]=a^r}function he(e,t,n,r,a,o,s,c,l,f,A,h){return e|=0,t|=0,n|=0,r|=0,a|=0,o|=0,s|=0,c|=0,l|=0,f|=0,f=y,y=y+336|0,$t(f,64,0,A|=0,h|=0),Wn(f+64|0,f),Et(f,64),xn(f+64|0,s,c,l),s=0|Qn(0,0,0|c,0|l),u(),xn(f+64|0,34624,15&s,0),ct(e,r,a,o,A,1,h),xn(f+64|0,e,a,o),A=0|Qn(0,0,0|a,0|o),u(),xn(f+64|0,34624,15&A,0),Ot(f+320|0,c,l),xn(f+64|0,f+320|0,8,0),Ot(f+320|0,a,o),xn(f+64|0,f+320|0,8,0),qn(f+64|0,t),Et(f+64|0,256),0|n&&(i[n>>2]=16,i[n+4>>2]=0),y=f,0}function pe(e){var t,n,o=0,s=0,c=0;t=y,n=y=y+63&-64,y=y+48|0,s=e|=0,c=(o=n)+32|0;do{r[o>>0]=0|r[s>>0],o=o+1|0,s=s+1|0}while((0|o)<(0|c));o=a[e+36+4>>0]|a[e+36+4+1>>0]<<8|a[e+36+4+2>>0]<<16|a[e+36+4+3>>0]<<24,i[n+32>>2]=a[e+36>>0]|a[e+36+1>>0]<<8|a[e+36+2>>0]<<16|a[e+36+3>>0]<<24,i[n+32+4>>2]=o,function(e,t,n,r){!function(e,t,n,r){ut(e|=0,t|=0,40,0,n|=0,0,r|=0)}(e|=0,t|=0,n|=0,r|=0)}(n,n,e+32|0,e),s=n,c=(o=e)+32|0;do{r[o>>0]=0|r[s>>0],o=o+1|0,s=s+1|0}while((0|o)<(0|c));s=0|i[n+32>>2],c=0|i[n+32+4>>2],r[e+36>>0]=s,r[e+36+1>>0]=s>>8,r[e+36+2>>0]=s>>16,r[e+36+3>>0]=s>>24,r[e+36+4>>0]=c,r[e+36+4+1>>0]=c>>8,r[e+36+4+2>>0]=c>>16,r[e+36+4+3>>0]=c>>24,_n(e),y=t}function de(e,t){e|=0,t|=0;var n=0,i=0,o=0,s=0,c=0;n=0;do{r[e+n>>0]=(0|a[t+(n>>>3)>>0])>>>(7&n)&1,n=n+1|0}while(256!=(0|n));c=0;do{o=e+c|0;e:do{if(0|r[o>>0]){s=1;do{if((n=s+c|0)>>>0>=256)break e;t=0|r[e+n>>0];t:do{if(t<<24>>24){if(((i=t<<24>>24<<s)+(t=0|r[o>>0])|0)<16){r[o>>0]=i+t,r[e+n>>0]=0;break}if((t-i|0)<-15)break e;for(r[o>>0]=t-i;0|r[(t=e+n|0)>>0];)if(r[t>>0]=0,(n=n+1|0)>>>0>=256)break t;r[t>>0]=1}}while(0);s=s+1|0}while(s>>>0<7)}}while(0);c=c+1|0}while(256!=(0|c))}function ge(e,t,n,r,i,a,o,s,c,u,l){var f;e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,o|=0,s|=0,c|=0,f=y,y=y+352|0,er(f+16|0,u|=0,l|=0),Wn(f+80|0,f+16|0),Et(f+16|0,64),xn(f+80|0,o,s,c),Ot(f+336|0,s,c),xn(f+80|0,f+336|0,8,0),xn(f+80|0,n,r,i),Ot(f+336|0,r,i),xn(f+80|0,f+336|0,8,0),qn(f+80|0,f),Et(f+80|0,256),t=0|ur(f,a),Et(f,16);do{if(e){if(t){ke(0|e,0,0|r),t=-1;break}Kt(e,n,r,i,u,l),t=0;break}}while(0);return y=f,0|t}function ye(e,t,n,r,a,o,s){var c,u;e|=0,t|=0,n|=0,r|=0,a|=0,o|=0,c=y,u=y=y+63&-64,y=y+560|0,Dn(u+192|0,s|=0),Pt(u+128|0,o,32,0),O(u+192|0,u+128+32|0,32,0),O(u+192|0,n,r,a),Lt(u+192|0,u+64|0),Bt(e+32|0,o+32|0,32),w(u+64|0),ae(u+400|0,u+64|0),At(e,u+400|0),Dn(u+192|0,s),O(u+192|0,e,64,0),O(u+192|0,n,r,a),Lt(u+192|0,u),w(u),Un(u+128|0),m(e+32|0,u,u+128|0,u+64|0),Et(u+128|0,64),Et(u+64|0,64),0|t&&(i[t>>2]=64,i[t+4>>2]=0),y=c}function ve(e,t,n,r,a,s){e|=0,t|=0,n|=0,r|=0,a|=0,s|=0;var c=0;do{if(t){if(c=(0|i[e+24>>2])-(0|i[e+20>>2])|0,s){c=r+-1+c|0;break}c=c+((0==(0|r))<<31>>31)|0;break}if(!(n<<24>>24)){c=r+-1|0;break}if(c=0|o(0|i[e+20>>2],255&n),s){c=r+-1+c|0;break}c=c+((0==(0|r))<<31>>31)|0;break}while(0);return Zt(0|a,0,0|a,0),Zt(0|u(),0,0|c,0),s=0|Qn(c+-1|0,0,0|u(),0),a=0|u(),0==(0|t)|n<<24>>24==3?(c=0,r=0):(c=0|o(0|i[e+20>>2],1+(255&n)|0),r=0),e=0|Vt(0|(t=0|Sn(0|s,0|a,0|c,0|r)),0|(n=0|u()),0|i[e+24>>2],0),u(),0|e}function me(e,t,n,r,a){r|=0,a|=0;var o,s,c,u=0;if(c=y,s=y=y+63&-64,y=y+64|0,(n|=0)>>>0>0|0==(0|n)&(t|=0)>>>0>4294967295|(o=0|Ve(e|=0))>>>0>127)i[8678]=28,n=-1;else{u=(n=s)+60|0;do{i[n>>2]=0,n=n+4|0}while((0|n)<(0|u));(u=0|function(e){var t;return(t=0|I(e|=0))&&3&i[t+-4>>2]?(ke(0|t,0,0|e),0|t):0|t}(o))?(i[s+16>>2]=u,i[s+8>>2]=u,i[s>>2]=u,i[s+20>>2]=o,i[s+12>>2]=o,i[s+4>>2]=o,i[s+24>>2]=0,i[s+24+4>>2]=0,i[s+24+8>>2]=0,i[s+24+12>>2]=0,0|j(s,e,a)?(i[8678]=28,n=-1):n=(0|i[s+40>>2])==(0|t)?(0|i[s+44>>2])!=(r>>>10|0)&1:1,k(u)):n=-1}return y=c,0|n}function be(e,t){t|=0;var n,r,a=0,s=0,c=0;if(r=y,n=y=y+63&-64,y=y+48|0,!(a=0|se(e|=0)))if((t+-1|0)>>>0<=1){if(s=0|i[e+44>>2],a=0|i[e+48>>2],c=0|o(s=((s>>>0<a<<3>>>0?a<<3:s)>>>0)/(a<<2>>>0)|0,a<<2),i[n>>2]=0,i[n+8>>2]=i[e+40>>2],i[n+12>>2]=-1,i[n+16>>2]=c,i[n+20>>2]=s,i[n+24>>2]=s<<2,i[n+28>>2]=a,i[n+32>>2]=i[e+52>>2],i[n+36>>2]=t,!(a=0|function(e,t){e|=0,t|=0;var n,r,a=0;r=y,n=y=y+63&-64,y=y+80|0;do{if(0==(0|e)|0==(0|t))a=-25;else{if(a=0|I(i[e+20>>2]<<3),i[e+4>>2]=a,a){if(a=0|Pe(e,0|i[e+16>>2])){vn(e,0|i[t+56>>2]);break}K(n,t,0|i[e+36>>2]),Et(n+64|0,8),Ne(n,e),Et(n,72),a=0;break}a=-22}}while(0);return y=r,0|a}(n,e))){if(0|i[n+8>>2]){a=0;do{xe(n,a),a=a+1|0}while(a>>>0<(0|i[n+8>>2])>>>0)}!function(e,t){var n,r,a=0,s=0;if(n=y,r=y=y+63&-64,y=y+2048|0,0!=(0|(e|=0))&0!=(0|(t|=0))){if(lr(r+1024|0,(0|i[4+(0|i[t>>2])>>2])+(i[t+24>>2]<<10)-1024|0),(0|i[t+28>>2])>>>0>1){a=1;do{s=(s=0|i[t+24>>2])-1+(0|o(s,a))|0,_t(r+1024|0,(0|i[4+(0|i[t>>2])>>2])+(s<<10)|0),a=a+1|0}while(a>>>0<(0|i[t+28>>2])>>>0)}!function(e,t){e|=0,t|=0;var n=0,r=0;n=0;do{Ot(e+(n<<3)|0,0|i[(r=t+(n<<3)|0)>>2],0|i[r+4>>2]),n=n+1|0}while(128!=(0|n))}(r,r+1024|0),G(0|i[e>>2],0|i[e+4>>2],r,1024),Et(r+1024|0,1024),Et(r,1024),vn(t,0|i[e+56>>2])}y=n}(e,n),a=0}}else a=-26;return y=r,0|a}function Ie(e,t,n,r,i,a){var o,s;return t|=0,n|=0,r|=0,i|=0,a|=0,s=y,o=y=y+63&-64,y=y+592|0,0!=(0|gt(32+(e|=0)|0))&&0==(0|Ee(e))&&0!=(0|Gt(i))&&0==(0|Ee(i))&&0==(0|fe(o+424|0,i))?(Dn(o+96|0,a),O(o+96|0,e,32,0),O(o+96|0,i,32,0),O(o+96|0,t,n,r),Lt(o+96|0,o+32|0),w(o+32|0),T(o+304|0,o+32|0,o+424|0,e+32|0),At(o,o+304|0),n=0|cr(o,e),n=0|((0|o)==(0|e)?-1:n)|tt(e,o,32)):n=-1,y=s,0|n}function we(e,t){t|=0;var n,a=0,o=0;n=y,y=y+192|0,Dt(e|=0),o=128+(a=n+64|0)|0;do{i[a>>2]=909522486,a=a+4|0}while((0|a)<(0|o));r[n+64>>0]=54^r[t>>0],a=1;do{r[(o=n+64+a|0)>>0]=r[o>>0]^r[t+a>>0],a=a+1|0}while(32!=(0|a));O(e,n+64|0,128,0),Dt(e+208|0),o=128+(a=n+64|0)|0;do{i[a>>2]=1549556828,a=a+4|0}while((0|a)<(0|o));r[n+64>>0]=92^r[t>>0],a=1;do{r[(o=n+64+a|0)>>0]=r[o>>0]^r[t+a>>0],a=a+1|0}while(32!=(0|a));O(e+208|0,n+64|0,128,0),Et(n+64|0,128),Et(n,64),y=n}function Ce(e,t,n){var r,a,o,s,c,u,l,f,A;e|=0,n|=0,A=(0|i[4+(t|=0)>>2])-(0|i[n+4>>2])|0,f=(0|i[t+8>>2])-(0|i[n+8>>2])|0,l=(0|i[t+12>>2])-(0|i[n+12>>2])|0,u=(0|i[t+16>>2])-(0|i[n+16>>2])|0,c=(0|i[t+20>>2])-(0|i[n+20>>2])|0,s=(0|i[t+24>>2])-(0|i[n+24>>2])|0,o=(0|i[t+28>>2])-(0|i[n+28>>2])|0,a=(0|i[t+32>>2])-(0|i[n+32>>2])|0,r=(0|i[t+36>>2])-(0|i[n+36>>2])|0,i[e>>2]=(0|i[t>>2])-(0|i[n>>2]),i[e+4>>2]=A,i[e+8>>2]=f,i[e+12>>2]=l,i[e+16>>2]=u,i[e+20>>2]=c,i[e+24>>2]=s,i[e+28>>2]=o,i[e+32>>2]=a,i[e+36>>2]=r}function Be(e,t,n){var r,a,o,s,c,u,l,f,A;e|=0,t|=0,A=(0|i[4+(n|=0)>>2])+(0|i[t+4>>2])|0,f=(0|i[n+8>>2])+(0|i[t+8>>2])|0,l=(0|i[n+12>>2])+(0|i[t+12>>2])|0,u=(0|i[n+16>>2])+(0|i[t+16>>2])|0,c=(0|i[n+20>>2])+(0|i[t+20>>2])|0,s=(0|i[n+24>>2])+(0|i[t+24>>2])|0,o=(0|i[n+28>>2])+(0|i[t+28>>2])|0,a=(0|i[n+32>>2])+(0|i[t+32>>2])|0,r=(0|i[n+36>>2])+(0|i[t+36>>2])|0,i[e>>2]=(0|i[n>>2])+(0|i[t>>2]),i[e+4>>2]=A,i[e+8>>2]=f,i[e+12>>2]=l,i[e+16>>2]=u,i[e+20>>2]=c,i[e+24>>2]=s,i[e+28>>2]=o,i[e+32>>2]=a,i[e+36>>2]=r}function Ee(e){e|=0;var t,n,i=0,o=0,s=0,c=0;t=y,n=y=y+63&-64,y=y+16|0,r[n>>0]=0,r[n+1>>0]=0,r[n+2>>0]=0,r[n+3>>0]=0,r[n+4>>0]=0,r[n+5>>0]=0,r[n+6>>0]=0,s=0;do{i=0|r[e+s>>0],o=0;do{r[(c=n+o|0)>>0]=r[c>>0]|r[32096+(o<<5)+s>>0]^i,o=o+1|0}while(7!=(0|o));s=s+1|0}while(31!=(0|s));i=127&r[e+31>>0],o=0;do{r[(c=n+o|0)>>0]=r[c>>0]|i^r[32096+(o<<5)+31>>0],o=o+1|0}while(7!=(0|o));i=0,o=0;do{o=(0|a[n+i>>0])-1|o,i=i+1|0}while(7!=(0|i));return y=t,o>>>8&1|0}function _e(e,t,n,r,a,o,s,c,u,l,f,A){return e|=0,t|=0,n|=0,r|=0,a|=0,o|=0,s|=0,c|=0,u|=0,l|=0,l=y,y=y+336|0,er(l,f|=0,A|=0),Wn(l+64|0,l),Et(l,64),xn(l+64|0,s,c,u),Ot(l+320|0,c,u),xn(l+64|0,l+320|0,8,0),Kt(e,r,a,o,f,A),xn(l+64|0,e,a,o),Ot(l+320|0,a,o),xn(l+64|0,l+320|0,8,0),qn(l+64|0,t),Et(l+64|0,256),0|n&&(i[n>>2]=16,i[n+4>>2]=0),y=l,0}function ke(e,t,n){t|=0;var a,o=0;if(a=(e|=0)+(n|=0)|0,t&=255,(0|n)>=67){for(;3&e;)r[e>>0]=t,e=e+1|0;for(o=t|t<<8|t<<16|t<<24;(0|e)<=((-4&a)-64|0);)i[e>>2]=o,i[e+4>>2]=o,i[e+8>>2]=o,i[e+12>>2]=o,i[e+16>>2]=o,i[e+20>>2]=o,i[e+24>>2]=o,i[e+28>>2]=o,i[e+32>>2]=o,i[e+36>>2]=o,i[e+40>>2]=o,i[e+44>>2]=o,i[e+48>>2]=o,i[e+52>>2]=o,i[e+56>>2]=o,i[e+60>>2]=o,e=e+64|0;for(;(0|e)<(-4&a|0);)i[e>>2]=o,e=e+4|0}for(;(0|e)<(0|a);)r[e>>0]=t,e=e+1|0;return a-n|0}function Qe(e,t){e|=0;var n=0;n=67108863&(0|Kn(t|=0)),i[e>>2]=n,n=(0|Kn(t+3|0))>>>2&67108611,i[e+4>>2]=n,n=(0|Kn(t+6|0))>>>4&67092735,i[e+8>>2]=n,n=(0|Kn(t+9|0))>>>6&66076671,i[e+12>>2]=n,n=(0|Kn(t+12|0))>>>8&1048575,i[e+16>>2]=n,i[e+20>>2]=0,i[e+20+4>>2]=0,i[e+20+8>>2]=0,i[e+20+12>>2]=0,i[e+20+16>>2]=0,n=0|Kn(t+16|0),i[e+40>>2]=n,n=0|Kn(t+20|0),i[e+44>>2]=n,n=0|Kn(t+24|0),i[e+48>>2]=n,t=0|Kn(t+28|0),i[e+52>>2]=t,i[e+56>>2]=0,i[e+56+4>>2]=0,r[e+80>>0]=0}function Se(e,t,n,r,a,o){e|=0,t|=0,n|=0,r|=0,a|=0,o|=0;var s=0,c=0,l=0;do{if(a>>>0<0|0==(0|a)&r>>>0<64||(s=0|Sn(0|r,0|a,-64,-1),(c=0|u())>>>0>0|0==(0|c)&s>>>0>4294967231))l=10;else{if(0|Bn(n,n+64|0,s,c,o)){if(!e){l=10;break}ke(0|e,0,0|s),l=10;break}0|t&&(i[t>>2]=s,i[t+4>>2]=c),e?(Bt(0|e,n+64|0,0|s),r=0):r=0}}while(0);return 10==(0|l)&&(t?(i[t>>2]=0,i[t+4>>2]=0,r=-1):r=-1),0|r}function xe(e,t){t|=0;var n,a,o=0,s=0;if(n=y,a=y=y+63&-64,y=y+32|0,0|(e|=0)&&0|(o=0|i[e+28>>2])){i[a>>2]=t,s=0;do{if(r[a+8>>0]=s,o){t=0;do{i[a+4>>2]=t,i[a+12>>2]=0,i[a+16>>2]=i[a>>2],i[a+16+4>>2]=i[a+4>>2],i[a+16+8>>2]=i[a+8>>2],i[a+16+12>>2]=i[a+12>>2],L(e,a+16|0),t=t+1|0,o=0|i[e+28>>2]}while(t>>>0<o>>>0)}else o=0;s=s+1|0}while(4!=(0|s))}y=n}function De(e,t,n,a){e|=0,n|=0,a|=0;var o,s,c=0;if(o=y,s=y=y+63&-64,y=y+192|0,((t|=0)-1&255)>63&&kr(),!((a+-1&255)>63|0==(0|n))){r[s+128>>0]=t,r[s+128+1>>0]=a,r[s+128+2>>0]=1,r[s+128+3>>0]=1,$n(s+128+4|0),Ot(s+128+8|0,0,0),c=48+(t=s+128+16|0)|0;do{i[t>>2]=0,t=t+4|0}while((0|t)<(0|c));return Ue(e,s+128|0),ke(s+(255&a)|0,0,128-(255&a)|0),te(0|s,0|n,255&a|0),W(e,s,128,0),Et(s,128),void(y=o)}kr()}function Pe(e,t){e|=0,t|=0;var n,r,a=0;r=y,n=y=y+63&-64,y=y+16|0;do{if(0!=(0|e)&&0!=(0|t)&&1024==(0|(t<<10>>>0)/(t>>>0))&&(a=0|I(12),i[e>>2]=a,0!=(0|a))){if(i[a+4>>2]=0,i[a>>2]=0,a=0|fn(n,t<<10),i[8678]=a,a)i[n>>2]=0;else if(0|(a=0|i[n>>2])){i[i[e>>2]>>2]=a,i[4+(0|i[e>>2])>>2]=a,i[8+(0|i[e>>2])>>2]=t<<10,a=0;break}k(0|i[e>>2]),i[e>>2]=0,a=-22}else a=-22}while(0);return y=r,0|a}function Me(e,t,n,r,o,s){var c,u,l;return e|=0,t|=0,n|=0,r|=0,s|=0,u=y,c=y=y+63&-64,y=y+32|0,l=a[4+(o|=0)>>0]|a[o+4+1>>0]<<8|a[o+4+2>>0]<<16|a[o+4+3>>0]<<24,i[c+16>>2]=a[o>>0]|a[o+1>>0]<<8|a[o+2>>0]<<16|a[o+3>>0]<<24,i[c+16+4>>2]=l,i[c+16+8>>2]=0,i[c+16+8+4>>2]=0,Ot(c,n,r),i[c+8>>2]=0,i[c+8+4>>2]=0,(t+-16|0)>>>0>48?(i[8678]=28,n=-1):n=0|function(e,t,n,r,i){return n|=0,((t|=0)-1|0)>>>0>63?n=-1:(function(e,t,n,r,i){var a,o;if(t|=0,n|=0,r|=0,i|=0,a=y,o=y=y+63&-64,y=y+368|0,(e|=0)||kr(),(n+-1&255)>63&&kr(),t)return ce(o,n,t,r,i),W(o,0,0,0),M(o,e,n),void(y=a);kr()}(e|=0,n,255&t,r|=0,i|=0),n=0),0|n}(e,t,s,c,c+16|0),y=u,0|n}function Fe(e,t,n,r,o,s,c,l,f,A,h){var p;return e|=0,t|=0,n|=0,r|=0,o|=0,s|=0,c|=0,l|=0,f|=0,A|=0,h|=0,p=y,y=y+48|0,i[p+32>>2]=0,R(p,A,h),t=a[A+16+4>>0]|a[A+16+4+1>>0]<<8|a[A+16+4+2>>0]<<16|a[A+16+4+3>>0]<<24,i[p+32+4>>2]=a[A+16>>0]|a[A+16+1>>0]<<8|a[A+16+2>>0]<<16|a[A+16+3>>0]<<24,i[p+32+4+4>>2]=t,t=0|function(e,t,n,r,i,a,o,s,c,l){var f;e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,o|=0,s|=0,f=y,y=y+352|0,qt(f+16|0,64,0,c|=0,l|=0),Wn(f+80|0,f+16|0),Et(f+16|0,64),xn(f+80|0,a,o,s),a=0|Qn(0,0,0|o,0|s),u(),xn(f+80|0,34640,15&a,0),xn(f+80|0,t,n,r),a=0|Qn(0,0,0|n,0|r),u(),xn(f+80|0,34640,15&a,0),Ot(f+336|0,o,s),xn(f+80|0,f+336|0,8,0),Ot(f+336|0,n,r),xn(f+80|0,f+336|0,8,0),qn(f+80|0,f),Et(f+80|0,256),o=0|ur(f,i),Et(f,16);do{if(e){if(o){ke(0|e,0,0|n),o=-1;break}Ft(e,t,n,r,c,1,l),o=0;break}}while(0);return y=f,0|o}(e,n,r,o,s,c,l,f,p+32|0,p),Et(p,32),y=p,0|t}function Oe(e,t,n,a,o,s,c){t|=0,n|=0,a|=0,o|=0,s|=0,c|=0;var u,l,f,A=0;f=y,u=y=y+63&-64,y=y+16|0,l=128+(A=e|=0)|0;do{r[A>>0]=0,A=A+1|0}while((0|A)<(0|l));do{if(!((s|a)>>>0>0|0==(s|a|0)&(o|n)>>>0>4294967295|c>>>0>2147483648)){if(s>>>0<0|0==(0|s)&o>>>0<3|c>>>0<8192){i[8678]=28,n=-1;break}Xt(u,16),n=(0!=(0|Cn(o,c>>>10,t,n,u,e)))<<31>>31;break}i[8678]=22,n=-1}while(0);return y=f,0|n}function Re(e,t,n,r,o,s,c,l,f,A,h,p){return e|=0,t|=0,n|=0,r|=0,o|=0,s|=0,c|=0,l|=0,f|=0,A|=0,h|=0,p|=0,A=y,y=y+48|0,i[A+32>>2]=0,R(A,h,p),p=a[h+16+4>>0]|a[h+16+4+1>>0]<<8|a[h+16+4+2>>0]<<16|a[h+16+4+3>>0]<<24,i[A+32+4>>2]=a[h+16>>0]|a[h+16+1>>0]<<8|a[h+16+2>>0]<<16|a[h+16+3>>0]<<24,i[A+32+4+4>>2]=p,function(e,t,n,r,a,o,s,c,l,f,A){var h;e|=0,t|=0,n|=0,r|=0,a|=0,o|=0,s|=0,c|=0,l|=0,h=y,y=y+336|0,qt(h,64,0,f|=0,A|=0),Wn(h+64|0,h),Et(h,64),xn(h+64|0,s,c,l),s=0|Qn(0,0,0|c,0|l),u(),xn(h+64|0,34640,15&s,0),Ft(e,r,a,o,f,1,A),xn(h+64|0,e,a,o),f=0|Qn(0,0,0|a,0|o),u(),xn(h+64|0,34640,15&f,0),Ot(h+320|0,c,l),xn(h+64|0,h+320|0,8,0),Ot(h+320|0,a,o),xn(h+64|0,h+320|0,8,0),qn(h+64|0,t),Et(h+64|0,256),0|n&&(i[n>>2]=16,i[n+4>>2]=0),y=h}(e,t,n,r,o,s,c,l,f,A+32|0,A),Et(A,32),y=A,0}function Te(e,t,n,a,o){e|=0,t|=0,n|=0,a|=0,o|=0;var s=0,c=0;e:do{if(o){for(c=0|i[n>>2];;){if(c>>>0>=t>>>0){s=4;break}if((s=0|r[e+c>>0])<<24>>24!=61){if(!a){s=9;break}if(!(0|Ln(a,s<<24>>24))){s=9;break}}else o=o+-1|0;if(c=c+1|0,i[n>>2]=c,!o){o=0;break e}}if(4==(0|s)){i[8678]=68,o=-1;break}if(9==(0|s)){i[8678]=28,o=-1;break}}else o=0}while(0);return 0|o}function He(e,t,n,a,o,s,c){t|=0,n|=0,a|=0,o|=0,s|=0,c|=0;var u,l,f,A=0;f=y,u=y=y+63&-64,y=y+16|0,l=128+(A=e|=0)|0;do{r[A>>0]=0,A=A+1|0}while((0|A)<(0|l));do{if(!((s|a)>>>0>0|0==(s|a|0)&(o|n)>>>0>4294967295|c>>>0>2147483648)){if(0==(0|o)&0==(0|s)|c>>>0<8192){i[8678]=28,n=-1;break}Xt(u,16),n=(0!=(0|In(o,c>>>10,t,n,u,e)))<<31>>31;break}i[8678]=22,n=-1}while(0);return y=f,0|n}function je(e,t){var n,r,a,o,s,c,u,l,f;e|=0,f=0-(0|i[4+(t|=0)>>2])|0,l=0-(0|i[t+8>>2])|0,u=0-(0|i[t+12>>2])|0,c=0-(0|i[t+16>>2])|0,s=0-(0|i[t+20>>2])|0,o=0-(0|i[t+24>>2])|0,a=0-(0|i[t+28>>2])|0,r=0-(0|i[t+32>>2])|0,n=0-(0|i[t+36>>2])|0,i[e>>2]=0-(0|i[t>>2]),i[e+4>>2]=f,i[e+8>>2]=l,i[e+12>>2]=u,i[e+16>>2]=c,i[e+20>>2]=s,i[e+24>>2]=o,i[e+28>>2]=a,i[e+32>>2]=r,i[e+36>>2]=n}function Ne(e,t){e|=0;var n,r,a=0;if(n=y,r=y=y+63&-64,y=y+1024|0,0|i[28+(t|=0)>>2]){a=0;do{Pn(e+64|0,0),Pn(e+68|0,a),G(r,1024,e,72),Rt((0|i[4+(0|i[t>>2])>>2])+((0|o(0|i[t+24>>2],a))<<10)|0,r),Pn(e+64|0,1),G(r,1024,e,72),Rt((0|i[4+(0|i[t>>2])>>2])+(1+(0|o(0|i[t+24>>2],a))<<10)|0,r),a=a+1|0}while(a>>>0<(0|i[t+28>>2])>>>0)}Et(r,1024),y=n}function Ue(e,t){t|=0;var n=0,i=0,o=0,s=0;!function(e){var t,n=0,i=0;i=32352,t=64+(n=e|=0)|0;do{r[n>>0]=0|r[i>>0],n=n+1|0,i=i+1|0}while((0|n)<(0|t));ke(e+64|0,0,293)}(e|=0),n=0;do{s=0|Ut(t+(n<<3)|0),o=0|u(),s=(a[(i=e+(n<<3)|0)>>0]|a[i+1>>0]<<8|a[i+2>>0]<<16|a[i+3>>0]<<24)^s,o=(a[i+4>>0]|a[i+4+1>>0]<<8|a[i+4+2>>0]<<16|a[i+4+3>>0]<<24)^o,r[i>>0]=s,r[i+1>>0]=s>>8,r[i+2>>0]=s>>16,r[i+3>>0]=s>>24,r[i+4>>0]=o,r[i+4+1>>0]=o>>8,r[i+4+2>>0]=o>>16,r[i+4+3>>0]=o>>24,n=n+1|0}while(8!=(0|n))}function Le(e){var t,n,r,i,o,s,l=0;return o=0|a[7+(e|=0)>>0],s=0|cn(0|a[e+6>>0],0,8),l=0|u(),i=0|cn(0|a[e+5>>0],0,16),l=0|l|u(),r=0|cn(0|a[e+4>>0],0,24),l=0|(l=0|l|u())|a[e+3>>0],n=0|cn(0|a[e+2>>0],0,40),l=0|l|u(),t=0|cn(0|a[e+1>>0],0,48),l=0|l|u(),e=0|cn(0|a[e>>0],0,56),c(0|l|u()|0),s|o|i|r|n|t|e|0}function Ke(e,t,n,r,a,o){t|=0,a|=0,o|=0;var s,c=0;return s=y,c=y=y+63&-64,y=y+16|0,Bt(64+(e|=0)|0,0|(n|=0),0|(r|=0)),bn(e,c,e+64|0,r,a,o),64==(0|i[c>>2])&0==(0|i[c+4>>2])?0|t?(c=0|Sn(0|r,0|a,64,0),r=0|u(),i[t>>2]=c,i[t+4>>2]=r,r=0):r=0:(0|t&&(i[t>>2]=0,i[t+4>>2]=0),ke(0|e,0,r+64|0),r=-1),y=s,0|r}function Ge(e,t){t|=0;var n,a=0,o=0,s=0,c=0;n=0|r[(e|=0)>>0];e:do{if((n+-48&255)<=9){for(o=n,s=0,c=e;;){if(!(s>>>0<429496730&((o=(o<<24>>24)-48|0)>>>0>~(a=10*s|0)>>>0^1))){a=0;break e}if(s=(o>>>0>~a>>>0?0:o)+a|0,((o=0|r[(a=c+1|0)>>0])-48&255)>9)break;c=a}(0|a)!=(0|e)&&(0|c)==(0|e)|n<<24>>24!=48?i[t>>2]=s:a=0}else a=0}while(0);return 0|a}function $e(e){return((0-((0-(95^(e|=0))|0)>>>8&63^63|(0-(45^e)|0)>>>8&62^62|((e+65439|0)>>>8^255)&e+185&((122-e|0)>>>8&255^255)|((e+-65|0)>>>8^255)&e+-65&((90-e|0)>>>8&255^255)|((e+65488|0)>>>8^255)&e+4&((57-e|0)>>>8&255^255))|0)>>>8&255^255)&(0-(65^e)|0)>>>8|(0-(95^e)|0)>>>8&63^63|(0-(45^e)|0)>>>8&62^62|((e+65439|0)>>>8^255)&e+185&((122-e|0)>>>8&255^255)|((e+-65|0)>>>8^255)&e+-65&((90-e|0)>>>8&255^255)|((e+65488|0)>>>8^255)&e+4&((57-e|0)>>>8&255^255)|0}function Ye(e){return((0-((0-(47^(e|=0))|0)>>>8&63^63|(0-(43^e)|0)>>>8&62^62|((e+65439|0)>>>8^255)&e+185&((122-e|0)>>>8&255^255)|((e+-65|0)>>>8^255)&e+-65&((90-e|0)>>>8&255^255)|((e+65488|0)>>>8^255)&e+4&((57-e|0)>>>8&255^255))|0)>>>8&255^255)&(0-(65^e)|0)>>>8|(0-(47^e)|0)>>>8&63^63|(0-(43^e)|0)>>>8&62^62|((e+65439|0)>>>8^255)&e+185&((122-e|0)>>>8&255^255)|((e+-65|0)>>>8^255)&e+-65&((90-e|0)>>>8&255^255)|((e+65488|0)>>>8^255)&e+4&((57-e|0)>>>8&255^255)|0}function Je(e,t){var n,r,a,o,s,c,u,l,f;e|=0,f=0|i[4+(t|=0)>>2],l=0|i[t+8>>2],u=0|i[t+12>>2],c=0|i[t+16>>2],s=0|i[t+20>>2],o=0|i[t+24>>2],a=0|i[t+28>>2],r=0|i[t+32>>2],n=0|i[t+36>>2],i[e>>2]=i[t>>2],i[e+4>>2]=f,i[e+8>>2]=l,i[e+12>>2]=u,i[e+16>>2]=c,i[e+20>>2]=s,i[e+24>>2]=o,i[e+28>>2]=a,i[e+32>>2]=r,i[e+36>>2]=n}function Ve(e){e|=0;var t=0,n=0,a=0;e:do{if(3&e)for(t=e,n=e;;){if(!(0|r[n>>0]))break e;if(!(3&(t=n=n+1|0))){t=n,a=5;break}}else t=e,a=5}while(0);if(5==(0|a)){for(;!((-2139062144&(n=0|i[t>>2])^-2139062144)&n+-16843009);)t=t+4|0;if((255&n)<<24>>24)do{t=t+1|0}while(0!=(0|r[t>>0]))}return t-e|0}function ze(e,t){t|=0;var n=0;i[(e|=0)>>2]=1634760805,i[e+4>>2]=857760878,i[e+8>>2]=2036477234,i[e+12>>2]=1797285236,n=0|Kn(t),i[e+16>>2]=n,n=0|Kn(t+4|0),i[e+20>>2]=n,n=0|Kn(t+8|0),i[e+24>>2]=n,n=0|Kn(t+12|0),i[e+28>>2]=n,n=0|Kn(t+16|0),i[e+32>>2]=n,n=0|Kn(t+20|0),i[e+36>>2]=n,n=0|Kn(t+24|0),i[e+40>>2]=n,t=0|Kn(t+28|0),i[e+44>>2]=t}function qe(e,t,n){t|=0,n|=0;var i=0;r[7+(e|=0)>>0]=t,i=0|An(0|t,0|n,8),u(),r[e+6>>0]=i,i=0|An(0|t,0|n,16),u(),r[e+5>>0]=i,i=0|An(0|t,0|n,24),u(),r[e+4>>0]=i,r[e+3>>0]=n,i=0|An(0|t,0|n,40),u(),r[e+2>>0]=i,i=0|An(0|t,0|n,48),u(),r[e+1>>0]=i,n=0|An(0|t,0|n,56),u(),r[e>>0]=n}function We(e,t,n){var r,i;n|=0,r=y,i=y=y+63&-64,y=y+48|0,Be(e|=0,40+(t|=0)|0,t),Ce(e+40|0,t+40|0,t),C(e+80|0,e,n+40|0),C(e+40|0,e+40|0,n),C(e+120|0,n+120|0,t+120|0),C(e,t+80|0,n+80|0),Be(i,e,e),Ce(e,e+80|0,e+40|0),Be(e+40|0,e+80|0,e+40|0),Ce(e+80|0,i,e+120|0),Be(e+120|0,i,e+120|0),y=r}function Xe(e,t,n){var r,i;n|=0,r=y,i=y=y+63&-64,y=y+48|0,Be(e|=0,40+(t|=0)|0,t),Ce(e+40|0,t+40|0,t),C(e+80|0,e,n),C(e+40|0,e+40|0,n+40|0),C(e+120|0,n+120|0,t+120|0),C(e,t+80|0,n+80|0),Be(i,e,e),Ce(e,e+80|0,e+40|0),Be(e+40|0,e+80|0,e+40|0),Be(e+80|0,i,e+120|0),Ce(e+120|0,i,e+120|0),y=r}function Ze(e,t,n){var r,i;n|=0,r=y,i=y=y+63&-64,y=y+48|0,Be(e|=0,40+(t|=0)|0,t),Ce(e+40|0,t+40|0,t),C(e+80|0,e,n+40|0),C(e+40|0,e+40|0,n),C(e+120|0,n+80|0,t+120|0),Be(i,t+80|0,t+80|0),Ce(e,e+80|0,e+40|0),Be(e+40|0,e+80|0,e+40|0),Ce(e+80|0,i,e+120|0),Be(e+120|0,i,e+120|0),y=r}function et(e,t,n){var r,i;n|=0,r=y,i=y=y+63&-64,y=y+48|0,Be(e|=0,40+(t|=0)|0,t),Ce(e+40|0,t+40|0,t),C(e+80|0,e,n),C(e+40|0,e+40|0,n+40|0),C(e+120|0,n+80|0,t+120|0),Be(i,t+80|0,t+80|0),Ce(e,e+80|0,e+40|0),Be(e+40|0,e+80|0,e+40|0),Be(e+80|0,i,e+120|0),Ce(e+120|0,i,e+120|0),y=r}function tt(e,t,n){var o,s;if(e|=0,t|=0,n|=0,o=y,s=y=y+63&-64,y=y+16|0,i[s+4>>2]=e,i[s>>2]=t,r[s+8>>0]=0,0|n){e=0;do{r[s+8>>0]=r[s+8>>0]|r[(0|i[s>>2])+e>>0]^r[(0|i[s+4>>2])+e>>0],e=e+1|0}while((0|e)!=(0|n))}return y=o,((511+(0|a[s+8>>0])|0)>>>8&1)-1|0}function nt(e,t){e|=0;var n,a,o=0;if(n=y,a=y=y+63&-64,y=y+64|0,!(((t|=0)-1&255)>63)){r[a>>0]=t,r[a+1>>0]=0,r[a+2>>0]=1,r[a+3>>0]=1,$n(a+4|0),Ot(a+8|0,0,0),o=48+(t=a+16|0)|0;do{i[t>>2]=0,t=t+4|0}while((0|t)<(0|o));return Ue(e,a),void(y=n)}kr()}function rt(e,t,n){var a,o;e|=0,t|=0,n|=0,a=y,o=y=y+63&-64,y=y+16|0,i[o+8>>2]=e,i[o+4>>2]=t,i[o>>2]=0,e=0;do{i[o>>2]=i[o>>2]|255&(r[(0|i[o+4>>2])+e>>0]^r[(0|i[o+8>>2])+e>>0]),e=e+1|0}while((0|e)!=(0|n));return y=a,((511+(0|i[o>>2])|0)>>>8&1)-1|0}function it(e,t,n){t|=0,n|=0;var i=0,o=0;i=0|r[(e|=0)>>0];e:do{if(i<<24>>24)for(;;){if(n=n+-1|0,!(i<<24>>24==(o=0|r[t>>0])<<24>>24&0!=(0|n)&o<<24>>24!=0))break e;if(t=t+1|0,!((i=0|r[(e=e+1|0)>>0])<<24>>24)){i=0;break}}else i=0}while(0);return(255&i)-(0|a[t>>0])|0}function at(e,t){e|=0,t|=0;var n,i,a=0,s=0,c=0,u=0;for(n=y,i=y=y+63&-64,y=y+16|0,s=10;u=255&((c=t)+(0|o(t=(t>>>0)/10|0,-10))|48),r[i+(a=s+-1|0)>>0]=u,c>>>0>9&0!=(0|a);)s=a;te(0|e,i+a|0,0|(u=11-s|0)),r[e+u>>0]=0,y=n}function ot(e,t){var n,r;n=y,r=y=y+63&-64,y=y+48|0,_(e|=0,t|=0),_(e+80|0,t+40|0),function(e,t){e|=0;var n,r,a,o,s,c,l,f,A,h,p,d,g,y,v,m,b,I,w,C,B,E,_,k,Q,S,x,D,P,M,F,O,R,T,H,j,N,U,L,K,G,$,Y,J,V,z,q,W,X,Z,ee,te,ne=0,re=0,ie=0,ae=0,oe=0,se=0,ce=0,ue=0,le=0,fe=0,Ae=0,he=0,pe=0,de=0,ge=0,ye=0,ve=0,me=0,be=0,Ie=0,we=0,Ce=0,Be=0,Ee=0,_e=0,ke=0,Qe=0,Se=0,xe=0,De=0,Pe=0,Me=0,Fe=0,Oe=0,Re=0,Te=0,He=0,je=0,Ne=0,Ue=0,Le=0,Ke=0,Ge=0,$e=0,Ye=0,Je=0,Ve=0,ze=0,qe=0,We=0,Xe=0,Ze=0,et=0,tt=0,nt=0,rt=0,it=0;ue=0|i[(t|=0)>>2],ge=0|i[t+4>>2],he=0|i[t+8>>2],Ie=0|i[t+12>>2],re=0|i[t+16>>2],we=0|i[t+20>>2],ye=0|i[t+24>>2],se=0|i[t+28>>2],oe=0|i[t+32>>2],t=0|i[t+36>>2],Z=0|Zt(0|ue,((0|ue)<0)<<31>>31|0,0|ue,((0|ue)<0)<<31>>31|0),it=0|u(),J=0|Zt(ue<<1|0,0|(le=((ue<<1|0)<0)<<31>>31),0|ge,((0|ge)<0)<<31>>31|0),et=0|u(),G=0|Zt(0|he,((0|he)<0)<<31>>31|0,ue<<1|0,0|le),K=0|u(),H=0|Zt(0|Ie,((0|Ie)<0)<<31>>31|0,ue<<1|0,0|le),T=0|u(),x=0|Zt(0|re,((0|re)<0)<<31>>31|0,ue<<1|0,0|le),Ke=0|u(),E=0|Zt(0|we,((0|we)<0)<<31>>31|0,ue<<1|0,0|le),He=0|u(),m=0|Zt(0|ye,((0|ye)<0)<<31>>31|0,ue<<1|0,0|le),Fe=0|u(),p=0|Zt(0|se,((0|se)<0)<<31>>31|0,ue<<1|0,0|le),Se=0|u(),s=0|Zt(0|oe,((0|oe)<0)<<31>>31|0,ue<<1|0,0|le),Ee=0|u(),le=0|Zt(0|t,((0|t)<0)<<31>>31|0,ue<<1|0,0|le),ue=0|u(),L=0|Zt(ge<<1|0,0|(ne=((ge<<1|0)<0)<<31>>31),0|ge,((0|ge)<0)<<31>>31|0),We=0|u(),R=0|Zt(ge<<1|0,0|ne,0|he,((0|he)<0)<<31>>31|0),Je=0|u(),M=0|Zt(Ie<<1|0,0|(ie=((Ie<<1|0)<0)<<31>>31),ge<<1|0,0|ne),P=0|u(),Q=0|Zt(0|re,((0|re)<0)<<31>>31|0,ge<<1|0,0|ne),k=0|u(),b=0|Zt(we<<1|0,((we<<1|0)<0)<<31>>31|0,ge<<1|0,0|ne),Oe=0|u(),d=0|Zt(0|ye,((0|ye)<0)<<31>>31|0,ge<<1|0,0|ne),xe=0|u(),c=0|Zt(se<<1|0,((se<<1|0)<0)<<31>>31|0,ge<<1|0,0|ne),_e=0|u(),fe=0|Zt(0|oe,((0|oe)<0)<<31>>31|0,ge<<1|0,0|ne),Ae=0|u(),ne=0|Zt(38*t|0,0|(de=((38*t|0)<0)<<31>>31),ge<<1|0,0|ne),ge=0|u(),D=0|Zt(0|he,((0|he)<0)<<31>>31|0,0|he,((0|he)<0)<<31>>31|0),Ge=0|u(),_=0|Zt(he<<1|0,((he<<1|0)<0)<<31>>31|0,0|Ie,((0|Ie)<0)<<31>>31|0),je=0|u(),I=0|Zt(0|re,((0|re)<0)<<31>>31|0,he<<1|0,((he<<1|0)<0)<<31>>31|0),Re=0|u(),v=0|Zt(0|we,((0|we)<0)<<31>>31|0,he<<1|0,((he<<1|0)<0)<<31>>31|0),y=0|u(),h=0|Zt(0|ye,((0|ye)<0)<<31>>31|0,he<<1|0,((he<<1|0)<0)<<31>>31|0),A=0|u(),n=0|Zt(0|se,((0|se)<0)<<31>>31|0,he<<1|0,((he<<1|0)<0)<<31>>31|0),Ce=0|u(),q=0|Zt(19*oe|0,0|(Me=((19*oe|0)<0)<<31>>31),he<<1|0,((he<<1|0)<0)<<31>>31|0),tt=0|u(),he=0|Zt(38*t|0,0|de,0|he,((0|he)<0)<<31>>31|0),ve=0|u(),C=0|Zt(Ie<<1|0,0|ie,0|Ie,((0|Ie)<0)<<31>>31|0),w=0|u(),g=0|Zt(Ie<<1|0,0|ie,0|re,((0|re)<0)<<31>>31|0),De=0|u(),l=0|Zt(we<<1|0,((we<<1|0)<0)<<31>>31|0,Ie<<1|0,0|ie),ke=0|u(),o=0|Zt(0|ye,((0|ye)<0)<<31>>31|0,Ie<<1|0,0|ie),a=0|u(),W=0|Zt(38*se|0,0|(Le=((38*se|0)<0)<<31>>31),Ie<<1|0,0|ie),nt=0|u(),$=0|Zt(19*oe|0,0|Me,Ie<<1|0,0|ie),Xe=0|u(),ie=0|Zt(38*t|0,0|de,Ie<<1|0,0|ie),Ie=0|u(),f=0|Zt(0|re,((0|re)<0)<<31>>31|0,0|re,((0|re)<0)<<31>>31|0),Qe=0|u(),r=0|Zt(re<<1|0,((re<<1|0)<0)<<31>>31|0,0|we,((0|we)<0)<<31>>31|0),Be=0|u(),X=0|Zt(19*ye|0,((19*ye|0)<0)<<31>>31|0,re<<1|0,((re<<1|0)<0)<<31>>31|0),rt=0|u(),Y=0|Zt(38*se|0,0|Le,0|re,((0|re)<0)<<31>>31|0),Ze=0|u(),j=0|Zt(19*oe|0,0|Me,re<<1|0,((re<<1|0)<0)<<31>>31|0),Ve=0|u(),re=0|Zt(38*t|0,0|de,0|re,((0|re)<0)<<31>>31|0),me=0|u(),te=0|Zt(38*we|0,((38*we|0)<0)<<31>>31|0,0|we,((0|we)<0)<<31>>31|0),ee=0|u(),z=0|Zt(19*ye|0,((19*ye|0)<0)<<31>>31|0,we<<1|0,((we<<1|0)<0)<<31>>31|0),V=0|u(),N=0|Zt(38*se|0,0|Le,we<<1|0,((we<<1|0)<0)<<31>>31|0),ze=0|u(),F=0|Zt(19*oe|0,0|Me,we<<1|0,((we<<1|0)<0)<<31>>31|0),$e=0|u(),we=0|Zt(38*t|0,0|de,we<<1|0,((we<<1|0)<0)<<31>>31|0),pe=0|u(),U=0|Zt(19*ye|0,((19*ye|0)<0)<<31>>31|0,0|ye,((0|ye)<0)<<31>>31|0),qe=0|u(),O=0|Zt(38*se|0,0|Le,0|ye,((0|ye)<0)<<31>>31|0),Ye=0|u(),S=0|Zt(19*oe|0,0|Me,ye<<1|0,((ye<<1|0)<0)<<31>>31|0),Ne=0|u(),ye=0|Zt(38*t|0,0|de,0|ye,((0|ye)<0)<<31>>31|0),ce=0|u(),Le=0|Zt(38*se|0,0|Le,0|se,((0|se)<0)<<31>>31|0),Ue=0|u(),B=0|Zt(19*oe|0,0|Me,se<<1|0,((se<<1|0)<0)<<31>>31|0),Te=0|u(),se=0|Zt(38*t|0,0|de,se<<1|0,((se<<1|0)<0)<<31>>31|0),be=0|u(),Me=0|Zt(19*oe|0,0|Me,0|oe,((0|oe)<0)<<31>>31|0),Pe=0|u(),oe=0|Zt(38*t|0,0|de,0|oe,((0|oe)<0)<<31>>31|0),ae=0|u(),t=0|Zt(38*t|0,0|de,0|t,((0|t)<0)<<31>>31|0),de=0|u(),ge=0|Sn(0|(tt=0|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=0|Sn(0|(Ee=0|Sn(0|(_e=0|Sn(0|(ke=0|Sn(0|(Qe=0|Sn(0|h,0|A,0|f,0|Qe)),0|u(),0|l,0|ke)),0|u(),0|c,0|_e)),0|u(),0|s,0|Ee)),0|u(),0|t,0|de),t=0|u(),ue=0|Sn(0|(Ae=0|Sn(0|(Ce=0|Sn(0|(Be=0|Sn(0|o,0|a,0|r,0|Be)),0|u(),0|n,0|Ce)),0|u(),0|fe,0|Ae)),0|u(),0|le,0|ue),le=0|u(),ne=0|cn(0|ge,0|ne,1),ge=0|u(),he=0|cn(0|ve,0|he,1),ve=0|u(),ie=0|cn(0|Ie,0|ie,1),Ie=0|u(),re=0|cn(0|me,0|re,1),me=0|u(),we=0|cn(0|pe,0|we,1),pe=0|u(),ye=0|cn(0|ce,0|ye,1),ce=0|u(),se=0|cn(0|be,0|se,1),be=0|u(),oe=0|cn(0|ae,0|oe,1),ae=0|u(),t=0|cn(0|de,0|t,1),de=0|u(),le=0|cn(0|ue,0|le,1),ue=0|u(),ve=0|Sn(0|(Ce=0|tn(0|(Ae=0|Sn(0|ne,0|ge,33554432,0)),0|(fe=0|u()),26)),0|u(),0|he,0|ve),he=0|u(),fe=0|Qn(0|ne,0|ge,-67108864&Ae|0,0|fe),Ae=0|u(),ce=0|Sn(0|(Ce=0|tn(0|(ge=0|Sn(0|we,0|pe,33554432,0)),0|(ne=0|u()),26)),0|u(),0|ye,0|ce),ye=0|u(),ne=0|Qn(0|we,0|pe,-67108864&ge|0,0|ne),ge=0|u(),Ie=0|Sn(0|(we=0|tn(0|(pe=0|Sn(0|ve,0|he,16777216,0)),0|u(),25)),0|u(),0|ie,0|Ie),ie=0|u(),pe=0|Qn(0|ve,0|he,-33554432&pe|0,0),he=0|u(),be=0|Sn(0|(we=0|tn(0|(ve=0|Sn(0|ce,0|ye,16777216,0)),0|u(),25)),0|u(),0|se,0|be),se=0|u(),ve=0|Qn(0|ce,0|ye,-33554432&ve|0,0),ye=0|u(),me=0|Sn(0|(we=0|tn(0|(ce=0|Sn(0|Ie,0|ie,33554432,0)),0|u(),26)),0|u(),0|re,0|me),re=0|u(),ce=0|Qn(0|Ie,0|ie,-67108864&ce|0,0),u(),ae=0|Sn(0|(Ie=0|tn(0|(ie=0|Sn(0|be,0|se,33554432,0)),0|u(),26)),0|u(),0|oe,0|ae),oe=0|u(),ie=0|Qn(0|be,0|se,-67108864&ie|0,0),u(),ge=0|Sn(0|(be=0|tn(0|(se=0|Sn(0|me,0|re,16777216,0)),0|u(),25)),0|u(),0|ne,0|ge),ne=0|u(),se=0|Qn(0|me,0|re,-33554432&se|0,0),u(),de=0|Sn(0|(me=0|tn(0|(re=0|Sn(0|ae,0|oe,16777216,0)),0|u(),25)),0|u(),0|t,0|de),t=0|u(),re=0|Qn(0|ae,0|oe,-33554432&re|0,0),u(),ae=0|Sn(0|ve,0|ye,0|(ae=0|An(0|(oe=0|Sn(0|ge,0|ne,33554432,0)),0|u(),26)),0|u()),u(),oe=0|Qn(0|ge,0|ne,-67108864&oe|0,0),u(),ue=0|Sn(0|(ge=0|tn(0|(ne=0|Sn(0|de,0|t,33554432,0)),0|u(),26)),0|u(),0|le,0|ue),le=0|u(),ne=0|Qn(0|de,0|t,-67108864&ne|0,0),u(),Ae=0|Sn(0|(de=0|Zt(0|(de=0|tn(0|(t=0|Sn(0|ue,0|le,16777216,0)),0|u(),25)),0|u(),19,0)),0|u(),0|fe,0|Ae),fe=0|u(),t=0|Qn(0|ue,0|le,-33554432&t|0,0),u(),ue=0|Sn(0|pe,0|he,0|(ue=0|An(0|(le=0|Sn(0|Ae,0|fe,33554432,0)),0|u(),26)),0|u()),u(),le=0|Qn(0|Ae,0|fe,-67108864&le|0,0),u(),i[e>>2]=le,i[e+4>>2]=ue,i[e+8>>2]=ce,i[e+12>>2]=se,i[e+16>>2]=oe,i[e+20>>2]=ae,i[e+24>>2]=ie,i[e+28>>2]=re,i[e+32>>2]=ne,i[e+36>>2]=t}(e+120|0,t+80|0),Be(e+40|0,t,t+40|0),_(r,e+40|0),Be(e+40|0,e+80|0,e),Ce(e+80|0,e+80|0,e),Ce(e,r,e+40|0),Ce(e+120|0,e+120|0,e+80|0),y=n}function st(e,t,n){var i,o;if(e|=0,t|=0,n|=0,o=y,i=y=y+63&-64,y=y+16|0,r[i>>0]=0,0|function(e,t,n){e|=0,t|=0;var i,o,s=0;if(o=y,i=y=y+63&-64,y=y+336|0,0|function(e){e|=0;var t,n,i=0,o=0,s=0,c=0;t=y,n=y=y+63&-64,y=y+16|0,r[n>>0]=0,r[n+1>>0]=0,r[n+2>>0]=0,r[n+3>>0]=0,r[n+4>>0]=0,r[n+5>>0]=0,r[n+6>>0]=0,s=0;do{i=0|r[e+s>>0],o=0;do{r[(c=n+o|0)>>0]=r[c>>0]|r[33184+(o<<5)+s>>0]^i,o=o+1|0}while(7!=(0|o));s=s+1|0}while(31!=(0|s));i=127&r[e+31>>0],o=0;do{r[(c=n+o|0)>>0]=r[c>>0]|i^r[33184+(o<<5)+31>>0],o=o+1|0}while(7!=(0|o));i=0,o=0;do{o=(0|a[n+i>>0])-1|o,i=i+1|0}while(7!=(0|i));return y=t,o>>>8&1|0}(n|=0))s=-1;else{s=0;do{r[e+s>>0]=0|r[t+s>>0],s=s+1|0}while(32!=(0|s));for(r[e>>0]=-8&r[e>>0],r[e+31>>0]=63&r[e+31>>0]|64,D(i+288|0,n),kn(i+240|0),Hn(i+192|0),Je(i+144|0,i+288|0),kn(i+96|0),s=254,t=0;n=t,X(i+240|0,i+144|0,n^=t=(0|a[e+(s>>>3)>>0])>>>(7&s)&1),X(i+192|0,i+96|0,n),Ce(i+48|0,i+144|0,i+96|0),Ce(i,i+240|0,i+192|0),Be(i+240|0,i+240|0,i+192|0),Be(i+192|0,i+144|0,i+96|0),C(i+96|0,i+48|0,i+240|0),C(i+192|0,i+192|0,i),_(i+48|0,i),_(i,i+240|0),Be(i+144|0,i+96|0,i+192|0),Ce(i+192|0,i+96|0,i+192|0),C(i+240|0,i,i+48|0),Ce(i,i,i+48|0),_(i+192|0,i+192|0),P(i+96|0,i),_(i+144|0,i+144|0),Be(i+48|0,i+48|0,i+96|0),C(i+96|0,i+288|0,i+192|0),C(i+192|0,i,i+48|0),s;)s=s+-1|0;X(i+240|0,i+144|0,t),X(i+192|0,i+96|0,t),V(i+192|0,i+192|0),C(i+240|0,i+240|0,i+192|0),ne(e,i+240|0),s=0}return y=o,0|s}(e,t,n))t=-1;else{t=0;do{r[i>>0]=r[i>>0]|r[e+t>>0],t=t+1|0}while(32!=(0|t));t=0-((511+(0|a[i>>0])|0)>>>8&1)|0}return y=o,0|t}function ct(e,t,n,r,i,a,o){e|=0,t|=0,i|=0,a|=0,o|=0;var s,c=0;c=0|Qn(0,1,0|(c=0|An(0|(c=0|Sn(0|(n|=0),0|(r|=0),63,0)),0|u(),6)),0|u()),(s=0|u())>>>0<0|0==(0|s)&c>>>0<a>>>0?kr():Ft(e,t,n,r,i,a,o)}function ut(e,t,n,r,i,a,o){var s,c;e|=0,t|=0,i|=0,o|=0,s=y,c=y=y+63&-64,y=y+80|0,0==(0|(n|=0))&0==(0|(r|=0))||(Pn(c+64|0,a|=0),ze(c,o),kt(c,i,c+64|0),S(c,t,e,n,r),Et(c,64)),y=s}function lt(e,t,n){var i,a;e|=0,i=y,a=y=y+63&-64,y=y+160|0,Pt(t|=0,n|=0,32,0),r[t>>0]=-8&r[t>>0],r[t+31>>0]=63&r[t+31>>0]|64,ae(a,t),At(e,a),Bt(0|t,0|n,32),Bt(t+32|0,0|e,32),y=i}function ft(e,t,n,r){e|=0,t|=0,n|=0,r|=0;e:do{if(r>>>0>0|0==(0|r)&n>>>0>4294967295)i[8678]=22,n=-1;else{switch(0|ir(e,t,n)){case 0:n=0;break e;case-35:i[8678]=28}n=-1}}while(0);return 0|n}function At(e,t){var n,i;e|=0,n=y,i=y=y+63&-64,y=y+144|0,V(i+96|0,80+(t|=0)|0),C(i+48|0,t,i+96|0),C(i,t+40|0,i+96|0),ne(e,i),t=(0|hn(i+48|0))<<7,r[e+31>>0]=t^(0|a[e+31>>0]),y=n}function ht(e,t,n,r){e|=0,t|=0,n|=0,r|=0;e:do{if(r>>>0>0|0==(0|r)&n>>>0>4294967295)i[8678]=22,n=-1;else{switch(0|ar(e,t,n)){case 0:n=0;break e;case-35:i[8678]=28}n=-1}}while(0);return 0|n}function pt(e,t,n,r,i,a,o,s){var c;return e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,c=y,y=y+32|0,0|Nn(c,o|=0,s|=0)?r=-1:(r=0|sn(e,t,n,r,i,a,c),Et(c,32)),y=c,0|r}function dt(e,t,n,r,i,a,o,s){var c;return e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,c=y,y=y+32|0,0|Nn(c,o|=0,s|=0)?r=-1:(un(e,t,n,r,i,a,c),Et(c,32),r=0),y=c,0|r}function gt(e){e|=0;var t=0,n=0,i=0,a=0,o=0;for(a=0,o=32,t=1;a=(255&(n=0|r[e+(o=o+-1|0)>>0]))-(255&(i=0|r[32320+o>>0]))>>8&(t&=255)|255&a,o;)t&=(65535+(255&(i^n))|0)>>>8;return 0!=(0|a)|0}function yt(e,t,n,r){return r=0|Sn(0|Sn(0|(n|=0),0|(r|=0),0|(e|=0),0|(t|=0)),0|u(),0|(r=0|Zt(-2&(r=0|cn(0|e,0|t,1))|0,1&(0|u())|0,0|n,0)),0|u()),c(0|u()),0|r}function vt(e,t,n,r){e|=0,t|=0,n|=0,r|=0;do{if(!(n>>>0>64|(r+-1|0)>>>0>63)){if(0==(0|t)|0==(0|n)){nt(e,255&r),t=0;break}De(e,255&r,t,255&n),t=0;break}t=-1}while(0);return 0|t}function mt(e){var t,n,r,i=0;return n=0|a[(e|=0)>>0],r=0|cn(0|a[e+1>>0],0,8),i=0|u(),t=0|cn(0|a[e+2>>0],0,16),i=0|i|u(),e=0|cn(0|a[e+3>>0],0,24),c(0|i|u()|0),r|n|t|e|0}function bt(e,t){e|=0,t|=0;var n,i,o=0;n=y,i=y=y+63&-64,y=y+16|0,r[i>>0]=0,o=0;do{r[i>>0]=r[i>>0]|r[e+o>>0],o=o+1|0}while((0|o)!=(0|t));return y=n,(511+(0|a[i>>0])|0)>>>8&1|0}function It(e,t,n){e|=0,t|=0;var r=0;(n|=0)?(r=0|Kn(n),i[e+48>>2]=r,n=0|Kn(n+4|0)):(i[e+48>>2]=0,n=0),i[e+52>>2]=n,r=0|Kn(t),i[e+56>>2]=r,r=0|Kn(t+4|0),i[e+60>>2]=r}function wt(e,t,n){var r,i;e|=0,t|=0,n|=0,r=y,i=y=y+63&-64,y=y+384|0,Rn(i,0,0,24),Mn(i,t,32,0),Mn(i,n,32,0),Gn(i,e,24),y=r}function Ct(e,t,n,r,i,a,o){return t|=0,i|=0,a|=0,o|=0,0|((r|=0)>>>0<0|0==(0|r)&(n|=0)>>>0<16?-1:0|pt(e|=0,t+16|0,t,n=0|Sn(0|n,0|r,-16,-1),0|u(),i,a,o))}function Bt(e,t,n){var i=0;if((0|(t|=0))<(0|(e|=0))&(0|e)<(t+(n|=0)|0)){for(i=e,t=t+n|0,e=e+n|0;(0|n)>0;)t=t-1|0,n=n-1|0,r[(e=e-1|0)>>0]=0|r[t>>0];e=i}else te(e,t,n);return 0|e}function Et(e,t){var n,a;if(e|=0,t|=0,n=y,a=y=y+63&-64,y=y+16|0,i[a>>2]=e,0|t){e=0;do{r[(0|i[a>>2])+e>>0]=0,e=e+1|0}while((0|e)!=(0|t))}y=n}function _t(e,t){e|=0,t|=0;var n=0,r=0,a=0,o=0;n=0;do{o=t+(n<<3)|0,a=i[4+(r=e+(n<<3)|0)>>2]^i[o+4>>2],i[r>>2]=i[r>>2]^i[o>>2],i[r+4>>2]=a,n=n+1|0}while(128!=(0|n))}function kt(e,t,n){e|=0,t|=0,n=(n|=0)?0|Kn(n):0,i[e+48>>2]=n,n=0|Kn(t),i[e+52>>2]=n,n=0|Kn(t+4|0),i[e+56>>2]=n,t=0|Kn(t+8|0),i[e+60>>2]=t}function Qt(e,t){var n,i;t|=0,i=y,y=y+64|0,function(e,t){var n;t|=0,n=y,y=y+64|0,Lt(e|=0,n),O(e+208|0,n,64,0),Lt(e+208|0,t),Et(n,64),y=n}(e|=0,i),e=i,n=t+32|0;do{r[t>>0]=0|r[e>>0],t=t+1|0,e=e+1|0}while((0|t)<(0|n));y=i}function St(e){var t;return e|=0,((t=0|i[8808])+e|0)>>>0>(0|h())>>>0&&0==(0|d(t+e|0))?(i[8678]=48,0|(e=-1)):(i[8808]=t+e,0|(e=t))}function xt(e,t,n,r,i){var a;e|=0,t|=0,n|=0,r|=0,a=y,y=y+416|0,function(e,t){we(e|=0,t|=0)}(a,i|=0),function(e,t,n,r){Tn(e|=0,t|=0,n|=0,r|=0)}(a,t,n,r),Qt(a,e),y=a}function Dt(e){var t,n=0;i[64+(e|=0)>>2]=0,i[e+64+4>>2]=0,i[e+64+8>>2]=0,i[e+64+12>>2]=0,n=32352,t=e+64|0;do{i[e>>2]=i[n>>2],e=e+4|0,n=n+4|0}while((0|e)<(0|t))}function Pt(e,t,n,r){var i,a;e|=0,t|=0,n|=0,r|=0,i=y,a=y=y+63&-64,y=y+208|0,Dt(a),O(a,t,n,r),Lt(a,e),y=i}function Mt(e,t,n){e|=0,t|=0;var r=0,a=0;if((n|=0)>>>3|0){r=0;do{qe(e+(r<<3)|0,0|i[(a=t+(r<<3)|0)>>2],0|i[a+4>>2]),r=r+1|0}while((0|r)!=(n>>>3|0))}}function Ft(e,t,n,r,i,a,o){e|=0,t|=0,i|=0,a|=0,o|=0,(r|=0)>>>0>0|0==(0|r)&(n|=0)>>>0>4294967295?kr():ut(e,t,n,r,i,a,o)}function Ot(e,t,n){t|=0,n|=0,r[(e|=0)>>0]=t,r[e+1>>0]=t>>8,r[e+2>>0]=t>>16,r[e+3>>0]=t>>24,r[e+4>>0]=n,r[e+4+1>>0]=n>>8,r[e+4+2>>0]=n>>16,r[e+4+3>>0]=n>>24}function Rt(e,t){e|=0,t|=0;var n=0,r=0,a=0,o=0;n=0;do{o=0|Ut(t+(n<<3)|0),a=0|u(),i[(r=e+(n<<3)|0)>>2]=o,i[r+4>>2]=a,n=n+1|0}while(128!=(0|n))}function Tt(e,t,n,r,i,a,o){return e|=0,t|=0,i|=0,a|=0,o|=0,(r|=0)>>>0>0|0==(0|r)&(n|=0)>>>0>4294967279?(kr(),0):0|dt(e+16|0,e,t,n,r,i,a,o)}function Ht(e){return(0-(62^(e|=0))|0)>>>8&45^45|(e+65510|0)>>>8&255&e+65|(0-(63^e)|0)>>>8&95^95|(e+65484|0)>>>8&e+71&((e+65510|0)>>>8&255^255)|(e+65474|0)>>>8&e+252&((e+65484|0)>>>8&255^255)|0}function jt(e){return(0-(62^(e|=0))|0)>>>8&43^43|(e+65510|0)>>>8&255&e+65|(0-(63^e)|0)>>>8&47^47|(e+65484|0)>>>8&e+71&((e+65510|0)>>>8&255^255)|(e+65474|0)>>>8&e+252&((e+65484|0)>>>8&255^255)|0}function Nt(e,t,n,r,i,a,o){return r|=0,((t|=0)-1|0)>>>0>63|(o|=0)>>>0>64?r=-1:(function(e,t,n,r,i,a,o){var s,c;e|=0,n|=0,r|=0,o|=0,s=y,c=y=y+63&-64,y=y+368|0,0==(0|(t|=0))&(0!=(0|(i|=0))|0!=(0|(a|=0)))&&kr(),e||kr(),(r+-1&255)>63&&kr(),0!=(0|n)|o<<24>>24==0||kr(),(255&o)>64&&kr(),o<<24>>24?De(c,r,n,o):nt(c,r),W(c,t,i,a),M(c,e,r),y=s}(e|=0,n|=0,a|=0,255&t,r,i|=0,255&o),r=0),0|r}function Ut(e){var t;return t=a[(e|=0)>>0]|a[e+1>>0]<<8|a[e+2>>0]<<16|a[e+3>>0]<<24,c(a[e+4>>0]|a[e+4+1>>0]<<8|a[e+4+2>>0]<<16|a[e+4+3>>0]<<24|0),0|t}function Lt(e,t){var n,r;t|=0,n=y,r=y=y+63&-64,y=y+704|0,function(e,t){t|=0;var n=0,r=0;if(n=0|An(0|i[72+(e|=0)>>2],0|i[e+72+4>>2],3),u(),(127&n)>>>0<112)112-(127&n)|0&&te(e+80+(127&n)|0,33056,112-(127&n)|0);else{128-(127&n)|0&&te(e+80+(127&n)|0,33056,128-(127&n)|0),b(e,e+80|0,t,t+640|0),r=112+(n=e+80|0)|0;do{i[n>>2]=0,n=n+4|0}while((0|n)<(0|r))}Mt(e+192|0,e+64|0,16),b(e,e+80|0,t,t+640|0)}(e|=0,r),Mt(t,e,64),Et(r,704),Et(e,208),y=n}function Kt(e,t,n,r,i,a){e|=0,t|=0,i|=0,a|=0,(r|=0)>>>0>0|0==(0|r)&(n|=0)>>>0>4294967295?kr():function(e,t,n,r,i,a,o,s){var c,u;e|=0,t|=0,i|=0,s|=0,c=y,u=y=y+63&-64,y=y+80|0,0==(0|(n|=0))&0==(0|(r|=0))||(Pn(u+64|0,1),Pn(u+64+4|0,0),ze(u,s),It(u,i,u+64|0),S(u,t,e,n,r),Et(u,64)),y=c}(e,t,n,r,i,0,0,a)}function Gt(e){var t=0,n=0;t=127&r[31+(e|=0)>>0]^127,n=30;do{t|=~r[e+n>>0],n=n+-1|0}while(0!=(0|n));return(236-(0|a[e>>0])&511+(255&t))>>>8&1^1|0}function $t(e,t,n,r,i){e|=0,r|=0,i|=0,(n|=0)>>>0>0|0==(0|n)&(t|=0)>>>0>4294967295?kr():qt(e,t,n,r,i)}function Yt(e,t,n){var r,i;return r=0|An(0|(e|=0),0|(t|=0),0|(n|=0)),i=0|u(),n=0|cn(0|e,0|t,64-n|0),c(0|u()|i|0),n|r|0}function Jt(e,t,n){var r,i;return r=0|cn(0|(e|=0),0|(t|=0),0|(n|=0)),i=0|u(),n=0|An(0|e,0|t,64-n|0),c(0|u()|i|0),n|r|0}function Vt(e,t,n,r){var a;return a=y,y=y+16|0,function(e,t,n,r,a){e|=0,n|=0,r|=0,a|=0;var o=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0,v=0;if(!(t|=0))return r?a?(i[a>>2]=0|e,i[a+4>>2]=0&t,a=0,0|(c(0|(r=0)),a)):(a=0,0|(c(0|(r=0)),a)):(0|a&&(i[a>>2]=(e>>>0)%(n>>>0),i[a+4>>2]=0),a=(e>>>0)/(n>>>0)>>>0,0|(c(0|(r=0)),a));do{if(n){if(0|r){if((l=(0|s(0|r))-(0|s(0|t))|0)>>>0<=31){g=l+1|0,f=e>>>((l+1|0)>>>0)&l-31>>31|t<<31-l,d=t>>>((l+1|0)>>>0)&l-31>>31,o=0,l=e<<31-l;break}return a?(i[a>>2]=0|e,i[a+4>>2]=t|0&t,a=0,0|(c(0|(r=0)),a)):(a=0,0|(c(0|(r=0)),a))}if(n-1&n|0){g=l=33+(0|s(0|n))-(0|s(0|t))|0,f=32-l-1>>31&t>>>((l-32|0)>>>0)|(t<<32-l|e>>>(l>>>0))&l-32>>31,d=l-32>>31&t>>>(l>>>0),o=e<<64-l&32-l>>31,l=(t<<64-l|e>>>((l-32|0)>>>0))&32-l>>31|e<<32-l&l-33>>31;break}return 0|a&&(i[a>>2]=n-1&e,i[a+4>>2]=0),1==(0|n)?(a=0|e,0|(c(0|(r=t|0&t)),a)):(r=t>>>((a=0|sr(0|n))>>>0)|0,a=t<<32-a|e>>>(a>>>0)|0,0|(c(0|r),a))}if(!r)return 0|a&&(i[a>>2]=(t>>>0)%(n>>>0),i[a+4>>2]=0),a=(t>>>0)/(n>>>0)>>>0,0|(c(0|(r=0)),a);if(!e)return 0|a&&(i[a>>2]=0,i[a+4>>2]=(t>>>0)%(r>>>0)),a=(t>>>0)/(r>>>0)>>>0,0|(c(0|(n=0)),a);if(!(r-1&r))return 0|a&&(i[a>>2]=0|e,i[a+4>>2]=r-1&t|0&t),n=0,a=t>>>((0|sr(0|r))>>>0),0|(c(0|n),a);if((l=(0|s(0|r))-(0|s(0|t))|0)>>>0<=30){g=l+1|0,f=t<<31-l|e>>>((l+1|0)>>>0),d=t>>>((l+1|0)>>>0),o=0,l=e<<31-l;break}return a?(i[a>>2]=0|e,i[a+4>>2]=t|0&t,a=0,0|(c(0|(r=0)),a)):(a=0,0|(c(0|(r=0)),a))}while(0);if(g){h=0|Sn(0|n,r|0&r|0,-1,-1),p=0|u(),A=l,t=d,e=g,l=0;do{v=A,A=o>>>31|A<<1,o=l|o<<1,Qn(0|h,0|p,0|(v=f<<1|v>>>31|0),0|(y=f>>>31|t<<1|0)),l=1&(d=(g=0|u())>>31|((0|g)<0?-1:0)<<1),f=0|Qn(0|v,0|y,d&(0|n)|0,(((0|g)<0?-1:0)>>31|((0|g)<0?-1:0)<<1)&(r|0&r)|0),t=0|u(),e=e-1|0}while(0!=(0|e));e=0}else A=l,t=d,e=0,l=0;0|a&&(i[a>>2]=f,i[a+4>>2]=t),v=-2&(o<<1|0)|l,c(0|(y=(0|o)>>>31|A<<1|0&(0|o>>>31)|e))}(e|=0,t|=0,n|=0,r|=0,0|a),y=a,0|(c(0|i[a+4>>2]),0|i[a>>2])}function zt(e){e|=0;var t=0,n=0,i=0;for(t=1,n=0;t=t+(0|a[(i=e+n|0)>>0])|0,r[i>>0]=t,4!=(0|(n=n+1|0));)t>>>=8}function qt(e,t,n,r,i){e|=0,r|=0,i|=0,(n|=0)>>>0>0|0==(0|n)&(t|=0)>>>0>4294967295?kr():function(e,t,n,r,i){var a,o;e|=0,r|=0,a=y,o=y=y+63&-64,y=y+64|0,0==(0|(t|=0))&0==(0|(n|=0))||(ze(o,i|=0),kt(o,r,0),ke(0|e,0,0|t),S(o,e,e,t,n),Et(o,64)),y=a}(e,t,n,r,i)}function Wt(e,t,n){var r;return e|=0,n|=0,t=0|cn(255&(t|=0)|0,0,8),r=0|u(),n=0|cn(255&n|0,0,16),c(0|r|u()|0),t|255&e|n|0}function Xt(e,t){e|=0;var n=0,i=0;if(0|(t|=0)){n=0;do{i=255&(0|dr()),r[e+n>>0]=i,n=n+1|0}while((0|n)!=(0|t))}}function Zt(e,t,n,r){var i,a;return t|=0,r|=0,i=0|function(e,t){var n,r,i;return i=((n=0|o(65535&(t|=0),65535&(e|=0)))>>>16)+(0|o(65535&t,e>>>16))|0,r=0|o(t>>>16,65535&e),0|(c((i>>>16)+(0|o(t>>>16,e>>>16))+(((65535&i)+r|0)>>>16)|0),i+r<<16|65535&n|0)}(e|=0,n|=0),a=0|u(),0|(c((0|o(t,n))+(0|o(r,e))+a|0&a|0),0|i)}function en(e,t){C(e|=0,t|=0,t+120|0),C(e+40|0,t+40|0,t+80|0),C(e+80|0,t+80|0,t+120|0),C(e+120|0,t,t+40|0)}function tn(e,t,n){return e|=0,t|=0,(0|(n|=0))<32?(c(t>>n|0),e>>>n|(t&(1<<n)-1)<<32-n):(c(0|((0|t)<0?-1:0)),t>>n-32|0)}function nn(e,t){Be(e|=0,40+(t|=0)|0,t),Ce(e+40|0,t+40|0,t),Je(e+80|0,t+80|0),C(e+120|0,t+120|0,112)}function rn(e,t){var n,r;e|=0,n=y,r=y=y+63&-64,y=y+128|0,function(e,t){Je(e|=0,t|=0),Je(e+40|0,t+40|0),Je(e+80|0,t+80|0)}(r,t|=0),ot(e,r),y=n}function an(e){var t,n;return t=y,n=y=y+63&-64,y=y+32|0,ne(n,e|=0),e=0|bt(n,32),y=t,0|e}function on(e,t){e|=0,t|=0;var n=0,i=0;n=0;do{r[(i=e+n|0)>>0]=r[i>>0]^r[t+n>>0],n=n+1|0}while(8!=(0|n))}function sn(e,t,n,r,i,a,o){return 0|ee(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,o|=0)}function cn(e,t,n){return e|=0,(0|(n|=0))<32?(c((t|=0)<<n|(e&(1<<n)-1<<32-n)>>>32-n|0),e<<n):(c(e<<n-32|0),0)}function un(e,t,n,r,i,a,o){return q(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,o|=0),0}function ln(e,t,n){return(n|=0)>>>0<256?0|M(e|=0,t|=0,255&n):(l(33547,33567,107,33620),0)}function fn(e,t){e|=0;var n=0;return(t|=0)>>>0<=4294967168&&0!=(0|(n=0|function(e){var t,n=0,r=0,a=0,o=0;if((e|=0)>>>0>=4294967168)return i[8678]=48,0;if(!(r=0|I(76+(t=e>>>0<11?16:e+11&-8)|0)))return 0;do{if(63&r){if(n=(a=((r+63&-64)-8-(r+-8)|0)>>>0>15?(r+63&-64)-8|0:56+(r+63&-64)|0)-(r+-8)|0,3&(e=0|i[r+-4>>2])){i[a+4>>2]=(-8&e)-n|1&i[a+4>>2]|2,i[a+((-8&e)-n)+4>>2]=1|i[a+((-8&e)-n)+4>>2],i[r+-4>>2]=n|1&i[r+-4>>2]|2,i[a+4>>2]=1|i[a+4>>2],Q(r+-8|0,n),o=a,e=a;break}i[a>>2]=(0|i[r+-8>>2])+n,i[a+4>>2]=(-8&e)-n,o=a,e=a;break}o=r+-8|0,e=r+-8|0}while(0);return 3&(e=0|i[(n=e+4|0)>>2])|0&&(-8&e)>>>0>(t+16|0)>>>0&&(a=o+t|0,i[n>>2]=t|1&e|2,i[a+4>>2]=(-8&e)-t|3,i[(r=o+(-8&e)+4|0)>>2]=1|i[r>>2],Q(a,(-8&e)-t|0)),0|o+8}(t)))?(i[e>>2]=n,t=0):t=48,0|t}function An(e,t,n){return e|=0,t|=0,(0|(n|=0))<32?(c(t>>>n|0),e>>>n|(t&(1<<n)-1)<<32-n):(c(0),t>>>n-32|0)}function hn(e){var t,n;return n=y,t=y=y+63&-64,y=y+32|0,ne(t,e|=0),y=n,1&r[t>>0]|0}function pn(e,t,n){Ae(e|=0,t|=0,255&(n|=0)),Ae(e+40|0,t+40|0,255&n),Ae(e+80|0,t+80|0,255&n)}function dn(e,t,n,r,i,a,o){return 0|Nt(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,o|=0)}function gn(e,t,n,r,i,a,o){return 0|le(e|=0,t|=0,1,n|=0,r|=0,i|=0,16,a|=0,o|=0,0,0,2)}function yn(e,t,n,r,i,a,o){return 0|le(e|=0,t|=0,1,n|=0,r|=0,i|=0,16,a|=0,o|=0,0,0,1)}function vn(e,t){(function(e,t){e|=0,0|(t|=0)&&(0|(t=0|i[e>>2])&&Et(0|i[t+4>>2],i[e+16>>2]<<10),0|(t=0|i[e+4>>2])&&Et(t,i[e+20>>2]<<3))})(e|=0,4&(t|=0)),k(0|i[e+4>>2]),i[e+4>>2]=0,function(e){var t=0;0|(e|=0)&&0|(t=0|i[e>>2])&&k(t),k(e)}(0|i[e>>2]),i[e>>2]=0}function mn(e,t){C(e|=0,t|=0,t+120|0),C(e+40|0,t+40|0,t+80|0),C(e+80|0,t+80|0,t+120|0)}function bn(e,t,n,r,i,a){ye(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,0)}function In(e,t,n,r,i,a){return 0|le(e|=0,t|=0,1,n|=0,r|=0,i|=0,16,0,32,a|=0,128,2)}function wn(e,t,n,r,i,a){Y(e|=0,t|=0,n|=0,r|=0,i|=0,1,0,a|=0)}function Cn(e,t,n,r,i,a){return 0|le(e|=0,t|=0,1,n|=0,r|=0,i|=0,16,0,32,a|=0,128,1)}function Bn(e,t,n,r,i){return 0|Ie(e|=0,t|=0,n|=0,r|=0,i|=0,0)}function En(e,t,n,r,i,a){Y(e|=0,t|=0,n|=0,r|=0,i|=0,0,0,a|=0)}function _n(e){r[32+(e|=0)>>0]=1,r[e+32+1>>0]=0,r[e+32+2>>0]=0,r[e+32+3>>0]=0}function kn(e){var t;i[(e|=0)>>2]=1,t=36+(e=e+4|0)|0;do{i[e>>2]=0,e=e+4|0}while((0|e)<(0|t))}function Qn(e,t,n,r){return 0|(c(0|(r=(t|=0)-(r|=0)-((n|=0)>>>0>(e|=0)>>>0|0)>>>0)),e-n>>>0|0)}function Sn(e,t,n,r){return 0|(c((t|=0)+(r|=0)+((e|=0)+(n|=0)>>>0>>>0<e>>>0|0)>>>0|0),e+n>>>0|0)}function xn(e,t,n,r){!function(e,t,n,r){U(e|=0,t|=0,n|=0,r|=0)}(e|=0,t|=0,n|=0,r|=0)}function Dn(e,t){t|=0,Dt(e|=0),0|t&&O(e,33408,34,0)}function Pn(e,t){t|=0,r[(e|=0)>>0]=t,r[e+1>>0]=t>>8,r[e+2>>0]=t>>16,r[e+3>>0]=t>>24}function Mn(e,t,n,r){return jn(e|=0,t|=0,n|=0,r|=0),0}function Fn(e,t,n,r){return 0|me(e|=0,t|=0,n|=0,r|=0,2)}function On(e,t,n,r){return 0|me(e|=0,t|=0,n|=0,r|=0,1)}function Rn(e,t,n,r){return 0|vt(e|=0,t|=0,n|=0,r|=0)}function Tn(e,t,n,r){O(e|=0,t|=0,n|=0,r|=0)}function Hn(e){var t;t=40+(e|=0)|0;do{i[e>>2]=0,e=e+4|0}while((0|e)<(0|t))}function jn(e,t,n,r){W(e|=0,t|=0,n|=0,r|=0)}function Nn(e,t,n){return 0|function(e,t,n){var r,i;return e|=0,i=y,r=y=y+63&-64,y=y+32|0,0|st(r,n|=0,t|=0)?e=-1:(N(e,34656,r),e=0),y=i,0|e}(e|=0,t|=0,n|=0)}function Un(e){r[(e|=0)>>0]=-8&r[e>>0],r[e+31>>0]=63&r[e+31>>0]|64}function Ln(e,t){return e=0|function(e,t){e|=0,t|=0;var n=0,a=0;e:do{if(255&t){if(3&e)do{if((a=0|r[e>>0])<<24>>24==0||a<<24>>24==(255&t)<<24>>24)break e;e=e+1|0}while(0!=(3&e|0));a=0|o(255&t,16843009),n=0|i[e>>2];t:do{if(!((-2139062144&n^-2139062144)&n+-16843009))do{if((-2139062144&(n^=a)^-2139062144)&n+-16843009|0)break t;n=0|i[(e=e+4|0)>>2]}while(!((-2139062144&n^-2139062144)&n+-16843009|0))}while(0);for(;(a=0|r[e>>0])<<24>>24!=0&&a<<24>>24!=(255&t)<<24>>24;)e=e+1|0}else e=e+(0|Ve(e))|0}while(0);return 0|e}(e|=0,t|=0),0|((0|r[e>>0])==(255&t)<<24>>24?e:0)}function Kn(e){return a[(e|=0)>>0]|a[e+1>>0]<<8|a[e+2>>0]<<16|a[e+3>>0]<<24|0}function Gn(e,t,n){return 0|ln(e|=0,t|=0,n|=0)}function $n(e){r[(e|=0)>>0]=0,r[e+1>>0]=0,r[e+2>>0]=0,r[e+3>>0]=0}function Yn(e){Hn(e|=0),kn(e+40|0),kn(e+80|0),Hn(e+120|0)}function Jn(e){i[(e|=0)>>2]=0,i[e+4>>2]=0,i[e+8>>2]=0,i[e+12>>2]=0}function Vn(e,t,n){!function(e,t,n){var r,i,a;e|=0,t|=0,r=y,a=y=y+63&-64,y=y+128|0,n=((n|=0)<<24>>24)-((0-(255&(i=0|function(e){return(255&(e|=0))>>>7|0}(n)))&n<<24>>24)<<1)&255,function(e){kn(e|=0),kn(e+40|0),Hn(e+80|0)}(e),pn(e,t,0|or(n,1)),pn(e,t+120|0,0|or(n,2)),pn(e,t+240|0,0|or(n,3)),pn(e,t+360|0,0|or(n,4)),pn(e,t+480|0,0|or(n,5)),pn(e,t+600|0,0|or(n,6)),pn(e,t+720|0,0|or(n,7)),pn(e,t+840|0,0|or(n,8)),Je(a,e+40|0),Je(a+40|0,e),je(a+80|0,e+80|0),pn(e,a,i),y=r}(e|=0,1120+(960*(t|=0)|0)|0,n|=0)}function zn(e,t){return 0|function(e,t){e|=0,t|=0;var n,i,a=0;n=y,i=y=y+63&-64,y=y+208|0,a=0;do{r[e+a>>0]=0|r[t+a>>0],a=a+1|0}while(32!=(0|a));return r[e>>0]=-8&r[e>>0],r[e+31>>0]=63&r[e+31>>0]|64,ae(i+40|0,e),function(e,t,n){var r,i;e|=0,r=y,i=y=y+63&-64,y=y+96|0,Be(i+48|0,n|=0,t|=0),Ce(i,n,t),V(i,i),C(e,i+48|0,i),y=r}(i,i+40+40|0,i+40+80|0),ne(e,i),y=n,0}(e|=0,t|=0)}function qn(e,t){!function(e,t){J(e|=0,t|=0)}(e|=0,t|=0)}function Wn(e,t){!function(e,t){Qe(e|=0,t|=0)}(e|=0,t|=0)}function Xn(e,t,n){return 0|st(e|=0,t|=0,n|=0)}function Zn(e,t){return 0|function(e,t){return e|=0,Xt(t|=0,32),0|zn(e,t)}(e|=0,t|=0)}function er(e,t,n){!function(e,t,n,r,i){var a,o;e|=0,r|=0,a=y,o=y=y+63&-64,y=y+64|0,0==(0|(t|=0))&0==(0|(n|=0))||(ze(o,i|=0),It(o,r,0),ke(0|e,0,64),S(o,e,e,64,0),Et(o,64)),y=a}(e|=0,64,0,t|=0,n|=0)}function tr(e){1!=(-7&(e|=0)|0)&&kr()}function nr(e,t,n){!function(e,t,n){e|=0,t|=0;var r,i,a,o,s,c,u,l,f,A,h,p=0,d=0,g=0,y=0,v=0,m=0,b=0,I=0,w=0,C=0,B=0,E=0,_=0,k=0,Q=0,S=0,x=0,D=0,P=0,M=0,F=0,O=0,R=0,T=0,H=0,j=0,N=0,U=0,L=0,K=0,G=0,$=0;h=0|Kn(n|=0),s=0|Kn(n+4|0),c=0|Kn(n+8|0),u=0|Kn(n+12|0),l=0|Kn(n+16|0),f=0|Kn(n+20|0),A=0|Kn(n+24|0),r=0|Kn(n+28|0),i=0|Kn(t),a=0|Kn(t+4|0),o=0|Kn(t+8|0),n=0|Kn(t+12|0),t=0,p=1634760805,d=h,g=2036477234,y=l,v=f,m=A,b=r,I=1797285236,w=s,C=c,B=u,E=857760878,_=i,k=a,Q=o,S=n;do{L=(0|fr((M=(0|fr((R=(0|fr((j=(0|fr(p+v|0,7))^B)+p|0,9))^Q)+j|0,13))^v)+R|0,18))^p,H=(0|fr(($=(0|fr((P=(0|fr((O=(0|fr(d+E|0,7))^S)+E|0,9))^m)+O|0,13))^d)+P|0,18))^E,F=(0|fr((U=(0|fr((G=(0|fr((D=(0|fr(_+g|0,7))^b)+g|0,9))^w)+D|0,13))^_)+G|0,18))^g,x=(0|fr((T=(0|fr((N=(0|fr((K=(0|fr(y+I|0,7))^C)+I|0,9))^k)+K|0,13))^y)+N|0,18))^I,p=(0|fr((C=(0|fr((w=(0|fr((d=(0|fr(K+L|0,7))^$)+L|0,9))^G)+d|0,13))^K)+w|0,18))^L,E=(0|fr((B=(0|fr((k=(0|fr((_=(0|fr(H+j|0,7))^U)+H|0,9))^N)+_|0,13))^j)+k|0,18))^H,g=(0|fr((S=(0|fr((Q=(0|fr((y=(0|fr(F+O|0,7))^T)+F|0,9))^R)+y|0,13))^O)+Q|0,18))^F,I=(0|fr((b=(0|fr((m=(0|fr((v=(0|fr(x+D|0,7))^M)+x|0,9))^P)+v|0,13))^D)+m|0,18))^x,t=t+2|0}while(t>>>0<20);Pn(e,p+1634760805|0),Pn(e+4|0,d+h|0),Pn(e+8|0,w+s|0),Pn(e+12|0,C+c|0),Pn(e+16|0,B+u|0),Pn(e+20|0,E+857760878|0),Pn(e+24|0,_+i|0),Pn(e+28|0,k+a|0),Pn(e+32|0,Q+o|0),Pn(e+36|0,S+n|0),Pn(e+40|0,g+2036477234|0),Pn(e+44|0,y+l|0),Pn(e+48|0,v+f|0),Pn(e+52|0,m+A|0),Pn(e+56|0,b+r|0),Pn(e+60|0,I+1797285236|0)}(e|=0,t|=0,n|=0)}function rr(e,t){return 0|zn(e|=0,t|=0)}function ir(e,t,n){return 0|ie(e|=0,t|=0,n|=0,2)}function ar(e,t,n){return 0|ie(e|=0,t|=0,n|=0,1)}function or(e,t){return((255&((t|=0)^(e|=0)))-1|0)>>>31&255|0}function sr(e){return 0|((e|=0)?31-(0|s(e^e-1))|0:32)}function cr(e,t){return 0|rt(e|=0,t|=0,32)}function ur(e,t){return 0|rt(e|=0,t|=0,16)}function lr(e,t){te(0|(e|=0),0|(t|=0),1024)}function fr(e,t){return(e|=0)>>>(32-(t|=0)|0)|e<<t|0}function Ar(e){ke(0|(e|=0),0,1024)}function hr(e){Xt(e|=0,32)}function pr(){A(1)}function dr(){return 0|A(0)}function gr(){return-17}function yr(){return 3}function vr(){return 2}function mr(){return-1}function br(){return 1}function Ir(){return 8}function wr(){return 24}function Cr(){return 16}function Br(){return 64}function Er(){return 32}function _r(){return 0}function kr(){f()}return{___errno_location:function(){return 34712},___muldi3:Zt,___uremdi3:Vt,_bitshift64Ashr:tn,_bitshift64Lshr:An,_bitshift64Shl:cn,_crypto_aead_chacha20poly1305_abytes:Cr,_crypto_aead_chacha20poly1305_decrypt:function(e,t,n,r,a,o,s,c,l,f,A){t|=0,n|=0,r|=0,s|=0,c|=0,l|=0,f|=0,A|=0;var h=0,p=0;return(o|=0)>>>0>0|0==(0|o)&(a|=0)>>>0>15?(o=0|ge(e|=0,0,r,n=0|Sn(0|a,0|o,-16,-1),h=0|u(),r+a+-16|0,s,c,l,f,A),t&&(a=0==(0|o)?n:0,n=0==(0|o)?h:0,p=4)):t?(a=0,n=0,o=-1,p=4):o=-1,4==(0|p)&&(i[t>>2]=a,i[t+4>>2]=n),0|o},_crypto_aead_chacha20poly1305_decrypt_detached:ge,_crypto_aead_chacha20poly1305_encrypt:function(e,t,n,r,a,o,s,c,l,f,A){return e|=0,t|=0,n|=0,o|=0,s|=0,c|=0,l|=0,f|=0,A|=0,(a|=0)>>>0>0|0==(0|a)&(r|=0)>>>0>4294967279&&kr(),_e(e,e+r|0,0,n,r,a,o,s,c,0,f,A),0|t&&(f=0|Sn(0|r,0|a,16,0),l=0|u(),i[t>>2]=f,i[t+4>>2]=l),0},_crypto_aead_chacha20poly1305_encrypt_detached:_e,_crypto_aead_chacha20poly1305_ietf_abytes:Cr,_crypto_aead_chacha20poly1305_ietf_decrypt:function(e,t,n,r,a,o,s,c,l,f,A){t|=0,n|=0,r|=0,s|=0,c|=0,l|=0,f|=0,A|=0;var h=0,p=0;return(o|=0)>>>0>0|0==(0|o)&(a|=0)>>>0>15?(o=0|oe(e|=0,0,r,n=0|Sn(0|a,0|o,-16,-1),h=0|u(),r+a+-16|0,s,c,l,f,A),t&&(a=0==(0|o)?n:0,n=0==(0|o)?h:0,p=4)):t?(a=0,n=0,o=-1,p=4):o=-1,4==(0|p)&&(i[t>>2]=a,i[t+4>>2]=n),0|o},_crypto_aead_chacha20poly1305_ietf_decrypt_detached:oe,_crypto_aead_chacha20poly1305_ietf_encrypt:function(e,t,n,r,a,o,s,c,l,f,A){return e|=0,t|=0,n|=0,o|=0,s|=0,c|=0,l|=0,f|=0,A|=0,(a|=0)>>>0>0|0==(0|a)&(r|=0)>>>0>4294967279&&kr(),he(e,e+r|0,0,n,r,a,o,s,c,0,f,A),0|t&&(f=0|Sn(0|r,0|a,16,0),l=0|u(),i[t>>2]=f,i[t+4>>2]=l),0},_crypto_aead_chacha20poly1305_ietf_encrypt_detached:he,_crypto_aead_chacha20poly1305_ietf_keybytes:Er,_crypto_aead_chacha20poly1305_ietf_keygen:hr,_crypto_aead_chacha20poly1305_ietf_messagebytes_max:gr,_crypto_aead_chacha20poly1305_ietf_npubbytes:function(){return 12},_crypto_aead_chacha20poly1305_ietf_nsecbytes:_r,_crypto_aead_chacha20poly1305_keybytes:Er,_crypto_aead_chacha20poly1305_keygen:hr,_crypto_aead_chacha20poly1305_messagebytes_max:gr,_crypto_aead_chacha20poly1305_npubbytes:Ir,_crypto_aead_chacha20poly1305_nsecbytes:_r,_crypto_aead_xchacha20poly1305_ietf_abytes:Cr,_crypto_aead_xchacha20poly1305_ietf_decrypt:function(e,t,n,r,a,o,s,c,l,f,A){t|=0,n|=0,r|=0,s|=0,c|=0,l|=0,f|=0,A|=0;var h=0,p=0;return(o|=0)>>>0>0|0==(0|o)&(a|=0)>>>0>15?(o=0|Fe(e|=0,0,r,n=0|Sn(0|a,0|o,-16,-1),h=0|u(),r+a+-16|0,s,c,l,f,A),t&&(a=0==(0|o)?n:0,n=0==(0|o)?h:0,p=4)):t?(a=0,n=0,o=-1,p=4):o=-1,4==(0|p)&&(i[t>>2]=a,i[t+4>>2]=n),0|o},_crypto_aead_xchacha20poly1305_ietf_decrypt_detached:Fe,_crypto_aead_xchacha20poly1305_ietf_encrypt:function(e,t,n,r,a,o,s,c,l,f,A){return e|=0,t|=0,n|=0,o|=0,s|=0,c|=0,l|=0,f|=0,A|=0,(a|=0)>>>0>0|0==(0|a)&(r|=0)>>>0>4294967279&&kr(),Re(e,e+r|0,0,n,r,a,o,s,c,0,f,A),0|t&&(f=0|Sn(0|r,0|a,16,0),l=0|u(),i[t>>2]=f,i[t+4>>2]=l),0},_crypto_aead_xchacha20poly1305_ietf_encrypt_detached:Re,_crypto_aead_xchacha20poly1305_ietf_keybytes:Er,_crypto_aead_xchacha20poly1305_ietf_keygen:hr,_crypto_aead_xchacha20poly1305_ietf_messagebytes_max:gr,_crypto_aead_xchacha20poly1305_ietf_npubbytes:wr,_crypto_aead_xchacha20poly1305_ietf_nsecbytes:_r,_crypto_auth:function(e,t,n,r,i){return xt(e|=0,t|=0,n|=0,r|=0,i|=0),0},_crypto_auth_bytes:Er,_crypto_auth_keybytes:Er,_crypto_auth_keygen:hr,_crypto_auth_verify:function(e,t,n,r,i){return 0|function(e,t,n,r,i){var a;return e|=0,a=y,y=y+32|0,xt(a,t|=0,n|=0,r|=0,i|=0),i=0|cr(e,a),i=0|((0|a)==(0|e)?-1:i)|tt(a,e,32),y=a,0|i}(e|=0,t|=0,n|=0,r|=0,i|=0)},_crypto_box_beforenm:Nn,_crypto_box_beforenmbytes:Er,_crypto_box_detached:dt,_crypto_box_detached_afternm:un,_crypto_box_easy:Tt,_crypto_box_easy_afternm:function(e,t,n,r,i,a){return e|=0,t|=0,i|=0,a|=0,(r|=0)>>>0>0|0==(0|r)&(n|=0)>>>0>4294967279?(kr(),0):(un(e+16|0,e,t,n,r,i,a),0)},_crypto_box_keypair:Zn,_crypto_box_macbytes:Cr,_crypto_box_messagebytes_max:gr,_crypto_box_noncebytes:wr,_crypto_box_open_detached:pt,_crypto_box_open_detached_afternm:sn,_crypto_box_open_easy:Ct,_crypto_box_open_easy_afternm:function(e,t,n,r,i,a){return t|=0,i|=0,a|=0,0|((r|=0)>>>0<0|0==(0|r)&(n|=0)>>>0<16?-1:0|sn(e|=0,t+16|0,t,n=0|Sn(0|n,0|r,-16,-1),0|u(),i,a))},_crypto_box_publickeybytes:Er,_crypto_box_seal:function(e,t,n,i,a){e|=0,t|=0,n|=0,i|=0,a|=0;var o,s=0,c=0,u=0;if(o=y,y=y+96|0,0|Zn(o+32|0,o))n=-1;else{c=o+32|0,u=(s=e)+32|0;do{r[s>>0]=0|r[c>>0],s=s+1|0,c=c+1|0}while((0|s)<(0|u));wt(o+64|0,o+32|0,a),n=0|Tt(e+32|0,t,n,i,o+64|0,a,o),Et(o,32),Et(o+32|0,32),Et(o+64|0,24)}return y=o,0|n},_crypto_box_seal_open:function(e,t,n,r,i,a){var o,s;return e|=0,t|=0,i|=0,a|=0,s=y,o=y=y+63&-64,y=y+32|0,(r|=0)>>>0<0|0==(0|r)&(n|=0)>>>0<48?n=-1:(r=0|Sn(0|n,0|r,-32,-1),n=0|u(),wt(o,t,i),n=0|Ct(e,t+32|0,r,n,o,t,a)),y=s,0|n},_crypto_box_sealbytes:function(){return 48},_crypto_box_secretkeybytes:Er,_crypto_box_seed_keypair:function(e,t,n){return 0|function(e,t,n){e|=0,t|=0;var i,a,o=0,s=0;a=y,s=y=y+63&-64,y=y+64|0,Pt(s,n|=0,32,0),o=s,i=(n=t)+32|0;do{r[n>>0]=0|r[o>>0],n=n+1|0,o=o+1|0}while((0|n)<(0|i));return Et(s,64),s=0|zn(e,t),y=a,0|s}(e|=0,t|=0,n|=0)},_crypto_box_seedbytes:Er,_crypto_generichash:dn,_crypto_generichash_bytes:Er,_crypto_generichash_bytes_max:Br,_crypto_generichash_bytes_min:Cr,_crypto_generichash_final:Gn,_crypto_generichash_init:Rn,_crypto_generichash_keybytes:Er,_crypto_generichash_keybytes_max:Br,_crypto_generichash_keybytes_min:Cr,_crypto_generichash_keygen:hr,_crypto_generichash_statebytes:function(){return 384},_crypto_generichash_update:Mn,_crypto_hash:function(e,t,n,r){return Pt(e|=0,t|=0,n|=0,r|=0),0},_crypto_hash_bytes:Br,_crypto_kdf_bytes_max:Br,_crypto_kdf_bytes_min:Cr,_crypto_kdf_contextbytes:Ir,_crypto_kdf_derive_from_key:function(e,t,n,r,i,a){return 0|Me(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0)},_crypto_kdf_keybytes:Er,_crypto_kdf_keygen:hr,_crypto_kx_client_session_keys:function(e,t,n,i,a){var o,s,c;if(t|=0,n|=0,i|=0,a|=0,c=y,s=y=y+63&-64,y=y+480|0,o=0==(0|(e|=0))?t:e,t=0==(0|t)?o:t,o||kr(),0|Xn(s+448|0,i,a))e=-1;else{Rn(s,0,0,64),Mn(s,s+448|0,32,0),Et(s+448|0,32),Mn(s,n,32,0),Mn(s,a,32,0),Gn(s,s+384|0,64),Et(s,384),e=0;do{r[o+e>>0]=0|r[s+384+e>>0],r[t+e>>0]=0|r[s+384+(e+32)>>0],e=e+1|0}while(32!=(0|e));Et(s+384|0,64),e=0}return y=c,0|e},_crypto_kx_keypair:function(e,t){return e|=0,Xt(t|=0,32),0|rr(e,t)},_crypto_kx_publickeybytes:Er,_crypto_kx_secretkeybytes:Er,_crypto_kx_seed_keypair:function(e,t,n){return e|=0,dn(t|=0,32,n|=0,32,0,0,0),0|rr(e,t)},_crypto_kx_seedbytes:Er,_crypto_kx_server_session_keys:function(e,t,n,i,a){var o,s,c;if(t|=0,n|=0,i|=0,a|=0,c=y,s=y=y+63&-64,y=y+480|0,o=0==(0|(e|=0))?t:e,t=0==(0|t)?o:t,o||kr(),0|Xn(s+448|0,i,a))e=-1;else{Rn(s,0,0,64),Mn(s,s+448|0,32,0),Et(s+448|0,32),Mn(s,a,32,0),Mn(s,n,32,0),Gn(s,s+384|0,64),Et(s,384),e=0;do{r[t+e>>0]=0|r[s+384+e>>0],r[o+e>>0]=0|r[s+384+(e+32)>>0],e=e+1|0}while(32!=(0|e));Et(s+384|0,64),e=0}return y=c,0|e},_crypto_kx_sessionkeybytes:Er,_crypto_pwhash:function(e,t,n,r,a,o,s,c,u,l,f){switch(e|=0,t|=0,n|=0,r|=0,a|=0,o|=0,s|=0,c|=0,u|=0,l|=0,0|(f|=0)){case 1:t=0|function(e,t,n,r,a,o,s,c,u,l){n|=0,r|=0,a|=0,o|=0,s|=0,c|=0,u|=0,l|=0,ke(0|(e|=0),0,0|(t|=0));do{if(!(n>>>0>0|0==(0|n)&t>>>0>4294967295)){if(n>>>0<0|0==(0|n)&t>>>0<16){i[8678]=28,t=-1;break}if((u|o)>>>0>0|0==(u|o|0)&(c|a)>>>0>4294967295|l>>>0>2147483648){i[8678]=22,t=-1;break}if(u>>>0<0|0==(0|u)&c>>>0<3|l>>>0<8192){i[8678]=28,t=-1;break}t=(0!=(0|yn(c,l>>>10,r,a,s,e,t)))<<31>>31;break}i[8678]=22,t=-1}while(0);return 0|t}(e,t,n,r,a,o,s,c,u,l);break;case 2:t=0|function(e,t,n,r,a,o,s,c,u,l){n|=0,r|=0,a|=0,o|=0,s|=0,c|=0,u|=0,l|=0,ke(0|(e|=0),0,0|(t|=0));do{if(!(n>>>0>0|0==(0|n)&t>>>0>4294967295)){if(n>>>0<0|0==(0|n)&t>>>0<16){i[8678]=28,t=-1;break}if((u|o)>>>0>0|0==(u|o|0)&(c|a)>>>0>4294967295|l>>>0>2147483648){i[8678]=22,t=-1;break}if(0==(0|c)&0==(0|u)|l>>>0<8192){i[8678]=28,t=-1;break}t=(0!=(0|gn(c,l>>>10,r,a,s,e,t)))<<31>>31;break}i[8678]=22,t=-1}while(0);return 0|t}(e,t,n,r,a,o,s,c,u,l);break;default:i[8678]=28,t=-1}return 0|t},_crypto_pwhash_alg_argon2i13:br,_crypto_pwhash_alg_argon2id13:vr,_crypto_pwhash_alg_default:vr,_crypto_pwhash_bytes_max:mr,_crypto_pwhash_bytes_min:Cr,_crypto_pwhash_memlimit_interactive:function(){return 67108864},_crypto_pwhash_memlimit_max:function(){return-2147483648},_crypto_pwhash_memlimit_min:function(){return 8192},_crypto_pwhash_memlimit_moderate:function(){return 268435456},_crypto_pwhash_memlimit_sensitive:function(){return 1073741824},_crypto_pwhash_opslimit_interactive:vr,_crypto_pwhash_opslimit_max:mr,_crypto_pwhash_opslimit_min:br,_crypto_pwhash_opslimit_moderate:yr,_crypto_pwhash_opslimit_sensitive:function(){return 4},_crypto_pwhash_passwd_max:mr,_crypto_pwhash_passwd_min:_r,_crypto_pwhash_saltbytes:Cr,_crypto_pwhash_str:function(e,t,n,r,i,a,o){return 0|He(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,o|=0)},_crypto_pwhash_str_alg:function(e,t,n,r,i,a,o,s){e|=0,t|=0,n|=0,r|=0,i|=0,a|=0,o|=0;var c=0;switch(0|(s|=0)){case 1:c=0|Oe(e,t,n,r,i,a,o);break;case 2:c=0|He(e,t,n,r,i,a,o);break;default:kr()}return 0|c},_crypto_pwhash_str_needs_rehash:function(e,t,n,r){e|=0,t|=0,n|=0,r|=0;do{if(0|it(e,33713,10)){if(0|it(e,33724,9)){i[8678]=28,t=-1;break}t=0|On(e,t,n,r);break}t=0|Fn(e,t,n,r)}while(0);return 0|t},_crypto_pwhash_str_verify:function(e,t,n,r){e|=0,t|=0,n|=0,r|=0;do{if(0|it(e,33713,10)){if(0|it(e,33724,9)){i[8678]=28,n=-1;break}n=0|ht(e,t,n,r);break}n=0|ft(e,t,n,r)}while(0);return 0|n},_crypto_pwhash_strbytes:function(){return 128},_crypto_pwhash_strprefix:function(){return 33713},_crypto_scalarmult:Xn,_crypto_scalarmult_base:rr,_crypto_scalarmult_bytes:Er,_crypto_scalarmult_scalarbytes:Er,_crypto_secretbox_detached:q,_crypto_secretbox_easy:function(e,t,n,r,i,a){return e|=0,t|=0,i|=0,a|=0,(r|=0)>>>0>0|0==(0|r)&(n|=0)>>>0>4294967279?(kr(),0):(q(e+16|0,e,t,n,r,i,a),0)},_crypto_secretbox_keybytes:Er,_crypto_secretbox_keygen:hr,_crypto_secretbox_macbytes:Cr,_crypto_secretbox_messagebytes_max:gr,_crypto_secretbox_noncebytes:wr,_crypto_secretbox_open_detached:ee,_crypto_secretbox_open_easy:function(e,t,n,r,i,a){return t|=0,i|=0,a|=0,0|((r|=0)>>>0<0|0==(0|r)&(n|=0)>>>0<16?-1:0|ee(e|=0,t+16|0,t,n=0|Sn(0|n,0|r,-16,-1),0|u(),i,a))},_crypto_secretstream_xchacha20poly1305_abytes:function(){return 17},_crypto_secretstream_xchacha20poly1305_headerbytes:wr,_crypto_secretstream_xchacha20poly1305_init_pull:function(e,t,n){var i;return R(e|=0,t|=0,n|=0),_n(e),i=a[t+16>>0]|a[t+16+1>>0]<<8|a[t+16+2>>0]<<16|a[t+16+3>>0]<<24,n=a[t+16+4>>0]|a[t+16+4+1>>0]<<8|a[t+16+4+2>>0]<<16|a[t+16+4+3>>0]<<24,r[e+36>>0]=i,r[e+36+1>>0]=i>>8,r[e+36+2>>0]=i>>16,r[e+36+3>>0]=i>>24,r[e+36+4>>0]=n,r[e+36+4+1>>0]=n>>8,r[e+36+4+2>>0]=n>>16,r[e+36+4+3>>0]=n>>24,r[e+44>>0]=0,r[e+44+1>>0]=0,r[e+44+2>>0]=0,r[e+44+3>>0]=0,r[e+44+4>>0]=0,r[e+44+4+1>>0]=0,r[e+44+4+2>>0]=0,r[e+44+4+3>>0]=0,0},_crypto_secretstream_xchacha20poly1305_init_push:function(e,t,n){return e|=0,n|=0,Xt(t|=0,24),R(e,t,n),_n(e),n=a[t+16>>0]|a[t+16+1>>0]<<8|a[t+16+2>>0]<<16|a[t+16+3>>0]<<24,t=a[t+16+4>>0]|a[t+16+4+1>>0]<<8|a[t+16+4+2>>0]<<16|a[t+16+4+3>>0]<<24,r[e+36>>0]=n,r[e+36+1>>0]=n>>8,r[e+36+2>>0]=n>>16,r[e+36+3>>0]=n>>24,r[e+36+4>>0]=t,r[e+36+4+1>>0]=t>>8,r[e+36+4+2>>0]=t>>16,r[e+36+4+3>>0]=t>>24,r[e+44>>0]=0,r[e+44+1>>0]=0,r[e+44+2>>0]=0,r[e+44+3>>0]=0,r[e+44+4>>0]=0,r[e+44+4+1>>0]=0,r[e+44+4+2>>0]=0,r[e+44+4+3>>0]=0,0},_crypto_secretstream_xchacha20poly1305_keybytes:Er,_crypto_secretstream_xchacha20poly1305_keygen:hr,_crypto_secretstream_xchacha20poly1305_messagebytes_max:function(){return-18},_crypto_secretstream_xchacha20poly1305_pull:function(e,t,n,a,o,s,c,l,f,A){e|=0,t|=0,a|=0,o|=0,s|=0,c|=0,l|=0,f|=0,A|=0;var h,p,d=0,g=0,v=0;p=y,h=y=y+63&-64,y=y+352|0,0|(n|=0)&&(i[n>>2]=0,i[n+4>>2]=0),0|a&&(r[a>>0]=-1);do{if(c>>>0<0|0==(0|c)&s>>>0<17)l=-1;else{g=0|Sn(0|s,0|c,-17,-1),(v=0|u())>>>0>0|0==(0|v)&g>>>0>4294967278&&kr(),$t(h+16|0,64,0,e+32|0,e),Wn(h+80|0,h+16|0),Et(h+16|0,64),xn(h+80|0,l,f,A),l=0|Qn(0,0,0|f,0|A),u(),xn(h+80|0,34672,15&l,0),d=64+(l=h+16|0)|0;do{i[l>>2]=0,l=l+4|0}while((0|l)<(0|d));if(r[h+16>>0]=0|r[o>>0],ct(h+16|0,h+16|0,64,0,e+32|0,1,e),l=0|r[h+16>>0],r[h+16>>0]=0|r[o>>0],xn(h+80|0,h+16|0,64,0),xn(h+80|0,o+1|0,g,v),d=0|Sn(0|s,0|c,15,0),u(),xn(h+80|0,34672,15&d,0),Ot(h+336|0,f,A),xn(h+80|0,h+336|0,8,0),Ot(h+336|0,A=0|Sn(0|s,0|c,47,0),0|u()),xn(h+80|0,h+336|0,8,0),qn(h+80|0,h),Et(h+80|0,256),0|tt(h,o+1+g|0,16)){Et(h,16),l=-1;break}ct(t,o+1|0,g,v,e+32|0,2,e),on(e+36|0,h),zt(e+32|0),(0!=(2&l)||0|bt(e+32|0,4))&&pe(e),0|n&&(i[n>>2]=g,i[n+4>>2]=v),0|a?(r[a>>0]=l,l=0):l=0}}while(0);return y=p,0|l},_crypto_secretstream_xchacha20poly1305_push:function(e,t,n,a,o,s,c,l,f,A){e|=0,t|=0,a|=0,o|=0,s|=0,c|=0,l|=0,f|=0,A|=0;var h,p,d=0;p=y,d=y=y+63&-64,y=y+336|0,0|(n|=0)&&(i[n>>2]=0,i[n+4>>2]=0),s>>>0>0|0==(0|s)&o>>>0>4294967278&&kr(),$t(d,64,0,e+32|0,e),Wn(d+64|0,d),Et(d,64),xn(d+64|0,c,l,f),c=0|Qn(0,0,0|l,0|f),u(),xn(d+64|0,34672,15&c,0),h=(c=d)+64|0;do{i[c>>2]=0,c=c+4|0}while((0|c)<(0|h));return r[d>>0]=A,ct(d,d,64,0,e+32|0,1,e),xn(d+64|0,d,64,0),r[t>>0]=0|r[d>>0],ct(t+1|0,a,o,s,e+32|0,2,e),xn(d+64|0,t+1|0,o,s),xn(d+64|0,34672,15&o,0),Ot(d+320|0,l,f),xn(d+64|0,d+320|0,8,0),Ot(d+320|0,a=0|Sn(0|o,0|s,64,0),0|u()),xn(d+64|0,d+320|0,8,0),qn(d+64|0,t+1+o|0),Et(d+64|0,256),on(e+36|0,t+1+o|0),zt(e+32|0),(0!=(2&A)||0|bt(e+32|0,4))&&pe(e),0|n&&(A=0|Sn(0|o,0|s,17,0),d=0|u(),i[n>>2]=A,i[n+4>>2]=d),y=p,0},_crypto_secretstream_xchacha20poly1305_rekey:pe,_crypto_secretstream_xchacha20poly1305_statebytes:function(){return 52},_crypto_secretstream_xchacha20poly1305_tag_final:yr,_crypto_secretstream_xchacha20poly1305_tag_message:_r,_crypto_secretstream_xchacha20poly1305_tag_push:br,_crypto_secretstream_xchacha20poly1305_tag_rekey:vr,_crypto_shorthash:function(e,t,n,r,i){return function(e,t,n,r,i){e|=0,t|=0,n|=0,r|=0;var o=0,s=0,c=0,l=0,f=0,A=0,h=0,p=0,d=0,g=0,y=0,v=0,m=0,b=0,I=0,w=0,C=0;if(A=0|Ut(i|=0),p=0|u(),o=0|Ut(i+8|0),s=0|u(),r=0|cn(0|n,0|r,56),i=0|u(),(t+n+(0-(7&n))|0)==(0|t))y=2037671283^o,c=1952801890^s,g=1886610805^A,h=1936682341^p,f=1852075885^o,l=1685025377^s,I=1852142177^A,o=1819895653^p,s=t;else for(b=2037671283^o,c=1952801890^s,y=1886610805^A,h=1936682341^p,f=1852075885^o,l=1685025377^s,s=1852142177^A,o=1819895653^p,g=t;;){if(C=(v=0|Ut(g))^b,c^=m=0|u(),I=0|Sn(0|y,0|h,0|f,0|l),b=0|u(),A=0|Jt(f,l,13),f=(0|u())^b,l=0|Jt(I,b,32),b=0|u(),p=0|Sn(0|C,0|c,0|s,0|o),d=0|u(),b=0|Sn((c=0|Jt(C,c,16))^p|0,0|(s=(0|u())^d),0|l,0|b),l=0|u(),s=0|Jt(c^p,s,21),c=l^(0|u()),d=0|Sn(0|p,0|d,A^I|0,0|f),p=0|u(),f=0|Jt(A^I,f,17),o=(0|u())^p,p=0|Jt(d,p,32),I=0|u(),l=0|Sn(f^d|0,0|o,0|b,0|l),A=0|u(),o=0|Jt(f^d,o,13),d=(0|u())^A,A=0|Jt(l,A,32),f=0|u(),I=0|Sn(0|p,0|I,b^s|0,0|c),p=0|u(),f=0|Sn((c=0|Jt(b^s,c,16))^I|0,0|(s=(0|u())^p),0|A,0|f),A=0|u(),s=0|Jt(c^I,s,21),c=A^(0|u()),p=0|Sn(o^l|0,0|d,0|I,0|p),I=0|u(),d=0|Jt(o^l,d,17),l=(0|u())^I,I=0|Jt(p,I,32),o=0|u(),(0|(g=g+8|0))==(t+n+(0-(7&n))|0)){y=f^s,g=f^v,h=A^m,f=d^p,s=t+n+(0-(7&n))|0;break}b=f^s,y=f^v,h=A^m,f=d^p,s=I}switch(7&n){case 7:w=0|cn(0|a[s+6>>0],0,48),i=0|u()|i,r|=w,w=6;break;case 6:w=6;break;case 5:w=7;break;case 4:w=8;break;case 3:w=9;break;case 2:w=10;break;case 1:w=11}6==(0|w)&&(C=0|cn(0|a[s+5>>0],0,40),i=0|u()|i,r|=C,w=7),7==(0|w)&&(i=0|a[s+4>>0]|i,w=8),8==(0|w)&&(r|=C=0|cn(0|a[s+3>>0],0,24),i=0|u()|i,w=9),9==(0|w)&&(r|=C=0|cn(0|a[s+2>>0],0,16),i=0|u()|i,w=10),10==(0|w)&&(r|=C=0|cn(0|a[s+1>>0],0,8),i=0|u()|i,w=11),11==(0|w)&&(r=0|r|a[s>>0]),n=r^y,m=i^c,g=0|Sn(0|g,0|h,0|f,0|l),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y=0|u(),v=0|Jt(b^w,v,17),w=(0|u())^y,y=0|Jt(g,y,32),b=0|u(),t=0|Sn(v^g|0,0|w,0|I,0|t),C=0|u(),w=0|Jt(v^g,w,13),g=(0|u())^C,C=0|Jt(t,C,32),v=0|u(),b=0|Sn(0|y,0|b,I^n|0,0|m),y=0|u(),v=0|Sn((m=0|Jt(I^n,m,16))^b|0,0|(n=(0|u())^y),0|C,0|v),C=0|u(),n=0|Jt(m^b,n,21),m=C^(0|u()),y=0|Sn(w^t|0,0|g,0|b,0|y),b=0|u(),g=0|Jt(w^t,g,17),t=(0|u())^b,b=0|Jt(y,b,32),w=0|u(),C=0|Sn(g^y|0,0|t,0|v,0|C),I=0|u(),t=0|Jt(g^y,t,13),I=(0|u())^I,w=0|Sn(0|b,0|w,v^n|0,0|m),b=0|u(),m=0|Jt((m=0|Jt(v^n,m,16))^w,(0|u())^b,21),n=0|u(),b=0|Sn(t^C|0,0|I,0|w,0|b),w=0|u(),I=0|Jt(t^C,I,17),C=0|u(),Ot(e,m^b^I^(t=0|Jt(b,w,32)),n^w^C^(0|u()))}(e|=0,t|=0,n|=0,r|=0,i|=0),0},_crypto_shorthash_bytes:Ir,_crypto_shorthash_keybytes:Cr,_crypto_shorthash_keygen:function(e){Xt(e|=0,16)},_crypto_sign:function(e,t,n,r,i,a){return 0|Ke(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0)},_crypto_sign_bytes:Br,_crypto_sign_detached:function(e,t,n,r,i,a){return bn(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0),0},_crypto_sign_ed25519_pk_to_curve25519:function(e,t){var n,r;return e|=0,r=y,n=y=y+63&-64,y=y+256|0,0==(0|Ee(t|=0))&&0==(0|fe(n+88|0,t))&&0!=(0|function(e){var t,n;return t=y,n=y=y+63&-64,y=y+160|0,z(n,e|=0),e=0|an(n),y=t,0|e}(n+88|0))?(kn(n),Ce(n,n,n+88+40|0),kn(n+48|0),Be(n+48|0,n+48|0,n+88+40|0),V(n,n),C(n+48|0,n+48|0,n),ne(e,n+48|0),e=0):e=-1,y=r,0|e},_crypto_sign_ed25519_sk_to_curve25519:function(e,t){var n,i,a;e|=0,i=y,a=y=y+63&-64,y=y+64|0,Pt(a,t|=0,32,0),r[a>>0]=-8&r[a>>0],r[a+31>>0]=63&r[a+31>>0]|64,t=a,n=e+32|0;do{r[e>>0]=0|r[t>>0],e=e+1|0,t=t+1|0}while((0|e)<(0|n));return Et(a,64),y=i,0},_crypto_sign_final_create:function(e,t,n,r){return function(e,t,n,r){var i,a;t|=0,n|=0,r|=0,i=y,a=y=y+63&-64,y=y+64|0,Lt(e|=0,a),ye(t,n,a,64,0,r,1),y=i}(e|=0,t|=0,n|=0,r|=0),0},_crypto_sign_final_verify:function(e,t,n){return 0|function(e,t,n){var r,i;return t|=0,n|=0,r=y,i=y=y+63&-64,y=y+64|0,Lt(e|=0,i),e=0|Ie(t,i,64,0,n,1),y=r,0|e}(e|=0,t|=0,n|=0)},_crypto_sign_init:function(e){return function(e){Dt(e|=0)}(e|=0),0},_crypto_sign_keypair:function(e,t){return function(e,t){var n,r;e|=0,t|=0,n=y,r=y=y+63&-64,y=y+32|0,Xt(r,32),lt(e,t,r),Et(r,32),y=n}(e|=0,t|=0),0},_crypto_sign_messagebytes_max:function(){return-65},_crypto_sign_open:function(e,t,n,r,i,a){return 0|Se(e|=0,t|=0,n|=0,r|=0,i|=0,a|=0)},_crypto_sign_publickeybytes:Er,_crypto_sign_secretkeybytes:Br,_crypto_sign_seed_keypair:function(e,t,n){return lt(e|=0,t|=0,n|=0),0},_crypto_sign_seedbytes:Er,_crypto_sign_statebytes:function(){return 208},_crypto_sign_update:function(e,t,n,r){return Tn(e|=0,t|=0,n|=0,r|=0),0},_crypto_sign_verify_detached:function(e,t,n,r,i){return 0|Bn(e|=0,t|=0,n|=0,r|=0,i|=0)},_emscripten_get_sbrk_ptr:function(){return 35232},_emscripten_replace_memory:function(e){return r=new Int8Array(e),a=new Uint8Array(e),i=new Int32Array(e),n=e,!0},_free:k,_i64Add:Sn,_i64Subtract:Qn,_malloc:I,_memcpy:te,_memmove:Bt,_memset:ke,_randombytes:function(e,t,n){(n|=0)>>>0<1|1==(0|n)&(t|=0)>>>0<0?Xt(e|=0,t):l(34506,34526,197,34552)},_randombytes_buf:Xt,_randombytes_buf_deterministic:function(e,t,n){$t(e|=0,t|=0,0,34494,n|=0)},_randombytes_close:_r,_randombytes_random:dr,_randombytes_seedbytes:Er,_randombytes_stir:pr,_randombytes_uniform:function(e){var t=0;if((e|=0)>>>0<2)t=0;else{do{t=0|dr()}while(t>>>0<(((0-e|0)>>>0)%(e>>>0)|0)>>>0);t=(t>>>0)%(e>>>0)|0}return 0|t},_sodium_base642bin:H,_sodium_base64_encoded_len:function(e,t){var n;return e|=0,tr(t|=0),(((e>>>0)/3|0)<<2|1)+(4-(3-(n=(0|o((e>>>0)/3|0,-3))+e|0)&0-(t>>>1&1))&0-(1&(n>>>1|n)))|0},_sodium_bin2base64:$,_sodium_bin2hex:function(e,t,n,i){e|=0,n|=0;var o=0,s=0;if((i|=0)>>>0<2147483647&i<<1>>>0<(t|=0)>>>0||kr(),i){t=0;do{s=0|a[n+t>>0],r[e+(o=t<<1)>>0]=87+(s>>>4)+((65526+(s>>>4)|0)>>>8&217),r[e+(1|o)>>0]=(22272+((15&s)<<8)+(65526+(15&s)&55552)|0)>>>8,t=t+1|0}while((0|t)!=(0|i));t=i<<1}else t=0;return r[e+t>>0]=0,0|e},_sodium_hex2bin:function(e,t,n,o,s,c,u){e|=0,t|=0,n|=0,o|=0,s|=0,c|=0,u|=0;var l=0,f=0,A=0,h=0,p=0,d=0,g=0;e:do{if(o){h=0,d=0,l=0,f=0;t:for(;;){for(;!(255&((p=(65526+(201+(223&(A=0|a[n+l>>0]))&255)^65520+(201+(223&A)&255))>>>8)|(65526+(48^A)|0)>>>8)|0);){if(!(0!=(0|s)&f<<24>>24==0)){A=0;break t}if(!(0|Ln(s,A))){f=h,g=17;break e}if(!((l=l+1|0)>>>0<o>>>0)){f=h,g=17;break e}f=0}if(A=p&201+(223&A)|(65526+(48^A)|0)>>>8&(48^A),h>>>0>=t>>>0){g=9;break}if(f<<24>>24?(r[e+h>>0]=A|255&d,h=h+1|0,A=d):A=A<<4&255,f=~f,!((l=l+1|0)>>>0<o>>>0)){A=0;break}d=A}if(9==(0|g)&&(i[8678]=68,A=-1),f<<24>>24){i[8678]=28,A=0,f=l+-1|0,l=-1;break}if(A){A=0,f=l,l=-1;break}f=h,g=17;break}f=0,l=0,g=17}while(0);return 17==(0|g)&&(A=f,f=l,l=0),u?i[u>>2]=n+f:(0|f)!=(0|o)&&(i[8678]=28,l=-1),0|c&&(i[c>>2]=A),0|l},_sodium_init:function(){var e=0;return 0|i[8676]?e=1:(function(){return e=y,t=y=y+63&-64,y=y+16|0,Jn(t),0|i[t>>2]&&Jn(t),void(y=e);var e,t}(),pr(),function(){var e=0;(0|(e=0|g(30)))>0?i[8677]=e:e=0|i[8677],e>>>0<16?kr():Xt(34688,16)}(),i[8676]=1,e=0),0|e},_sodium_library_minimal:br,_sodium_library_version_major:function(){return 10},_sodium_library_version_minor:yr,_sodium_pad:function(e,t,n,o,s){e|=0,t|=0,n|=0,s|=0;var c,u,l=0,f=0;if(u=y,c=y=y+63&-64,y=y+16|0,o|=0)if((f=o+-1-(l=o+-1&o?(n>>>0)%(o>>>0)|0:o+-1&n)|0)>>>0>=~n>>>0&&kr(),(f+n|0)>>>0<s>>>0){0|e&&(i[e>>2]=f+n+1),r[c>>0]=0,l=0;do{e=((l^f)-1|0)>>>24,r[(s=t+(f+n)+(0-l)|0)>>0]=128&e|r[c>>0]&r[s>>0]&255,r[c>>0]=0|e|a[c>>0],l=l+1|0}while((0|l)!=(0|o));l=0}else l=-1;else l=-1;return y=u,0|l},_sodium_unpad:function(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var o,s,c=0,u=0,l=0,f=0,A=0;if(s=y,o=y=y+63&-64,y=y+16|0,i[o>>2]=0,(r+-1|0)>>>0<n>>>0){for(c=0,l=0,f=0;c&=255,u=0|a[t+(n+-1)+(0-l)>>0],A=(511+(0|i[o>>2])&c+511&511+(128^u))>>>8&1,i[o>>2]=l&0-A|i[o>>2],f=A|255&f,(0|(l=l+1|0))!=(0|r);)c|=u;i[e>>2]=n+-1-(0|i[o>>2]),c=f+-1|0}else c=-1;return y=s,0|c},_sodium_version_string:function(){return 34617},establishStackSpace:function(e,t){y=e|=0},stackAlloc:function(e){var t;return t=y,y=15+(y=y+(e|=0)|0)&-16,0|t},stackRestore:function(e){y=e|=0},stackSave:function(){return 0|y}}}({Math:Math,Int8Array:Int8Array,Int32Array:Int32Array,Uint8Array:Uint8Array},{a:W,b:function(e){B=e},c:function(){return B},d:function(e,t,n,r){W("Assertion failed: "+O(e)+", at: "+[t?O(t):"unknown filename",n,r?O(r):"unknown function"])},e:ue,f:function(){W()},g:function(e){return re[e]()},h:se,i:function(e,t,n){S.set(S.subarray(t,t+n),e)},j:function(e){var t=se();if(e>2130706432)return!1;for(var n=Math.max(t,16777216);n<e;)n=n<=536870912?R(2*n,16777216):Math.min(R((3*n+2147483648)/4,16777216),2130706432);return!!ce(n)},k:function(e){switch(e){case 30:return 16384;case 85:return 130048;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==("undefined"==typeof navigator?"undefined":u(navigator))&&navigator.hardwareConcurrency||1}return ue(28),-1},l:function(e){W("OOM")},m:ie,n:ae,o:ce,p:oe,q:function(){var e=oe();return r.extraStackTrace&&(e+="\n"+r.extraStackTrace()),ae(e)},r:35408},k),ye=(r.___errno_location=ge.___errno_location,r.___muldi3=ge.___muldi3,r.___uremdi3=ge.___uremdi3,r._bitshift64Ashr=ge._bitshift64Ashr,r._bitshift64Lshr=ge._bitshift64Lshr,r._bitshift64Shl=ge._bitshift64Shl,r._crypto_aead_chacha20poly1305_abytes=ge._crypto_aead_chacha20poly1305_abytes,r._crypto_aead_chacha20poly1305_decrypt=ge._crypto_aead_chacha20poly1305_decrypt,r._crypto_aead_chacha20poly1305_decrypt_detached=ge._crypto_aead_chacha20poly1305_decrypt_detached,r._crypto_aead_chacha20poly1305_encrypt=ge._crypto_aead_chacha20poly1305_encrypt,r._crypto_aead_chacha20poly1305_encrypt_detached=ge._crypto_aead_chacha20poly1305_encrypt_detached,r._crypto_aead_chacha20poly1305_ietf_abytes=ge._crypto_aead_chacha20poly1305_ietf_abytes,r._crypto_aead_chacha20poly1305_ietf_decrypt=ge._crypto_aead_chacha20poly1305_ietf_decrypt,r._crypto_aead_chacha20poly1305_ietf_decrypt_detached=ge._crypto_aead_chacha20poly1305_ietf_decrypt_detached,r._crypto_aead_chacha20poly1305_ietf_encrypt=ge._crypto_aead_chacha20poly1305_ietf_encrypt,r._crypto_aead_chacha20poly1305_ietf_encrypt_detached=ge._crypto_aead_chacha20poly1305_ietf_encrypt_detached,r._crypto_aead_chacha20poly1305_ietf_keybytes=ge._crypto_aead_chacha20poly1305_ietf_keybytes,r._crypto_aead_chacha20poly1305_ietf_keygen=ge._crypto_aead_chacha20poly1305_ietf_keygen,r._crypto_aead_chacha20poly1305_ietf_messagebytes_max=ge._crypto_aead_chacha20poly1305_ietf_messagebytes_max,r._crypto_aead_chacha20poly1305_ietf_npubbytes=ge._crypto_aead_chacha20poly1305_ietf_npubbytes,r._crypto_aead_chacha20poly1305_ietf_nsecbytes=ge._crypto_aead_chacha20poly1305_ietf_nsecbytes,r._crypto_aead_chacha20poly1305_keybytes=ge._crypto_aead_chacha20poly1305_keybytes,r._crypto_aead_chacha20poly1305_keygen=ge._crypto_aead_chacha20poly1305_keygen,r._crypto_aead_chacha20poly1305_messagebytes_max=ge._crypto_aead_chacha20poly1305_messagebytes_max,r._crypto_aead_chacha20poly1305_npubbytes=ge._crypto_aead_chacha20poly1305_npubbytes,r._crypto_aead_chacha20poly1305_nsecbytes=ge._crypto_aead_chacha20poly1305_nsecbytes,r._crypto_aead_xchacha20poly1305_ietf_abytes=ge._crypto_aead_xchacha20poly1305_ietf_abytes,r._crypto_aead_xchacha20poly1305_ietf_decrypt=ge._crypto_aead_xchacha20poly1305_ietf_decrypt,r._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=ge._crypto_aead_xchacha20poly1305_ietf_decrypt_detached,r._crypto_aead_xchacha20poly1305_ietf_encrypt=ge._crypto_aead_xchacha20poly1305_ietf_encrypt,r._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=ge._crypto_aead_xchacha20poly1305_ietf_encrypt_detached,r._crypto_aead_xchacha20poly1305_ietf_keybytes=ge._crypto_aead_xchacha20poly1305_ietf_keybytes,r._crypto_aead_xchacha20poly1305_ietf_keygen=ge._crypto_aead_xchacha20poly1305_ietf_keygen,r._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=ge._crypto_aead_xchacha20poly1305_ietf_messagebytes_max,r._crypto_aead_xchacha20poly1305_ietf_npubbytes=ge._crypto_aead_xchacha20poly1305_ietf_npubbytes,r._crypto_aead_xchacha20poly1305_ietf_nsecbytes=ge._crypto_aead_xchacha20poly1305_ietf_nsecbytes,r._crypto_auth=ge._crypto_auth,r._crypto_auth_bytes=ge._crypto_auth_bytes,r._crypto_auth_keybytes=ge._crypto_auth_keybytes,r._crypto_auth_keygen=ge._crypto_auth_keygen,r._crypto_auth_verify=ge._crypto_auth_verify,r._crypto_box_beforenm=ge._crypto_box_beforenm,r._crypto_box_beforenmbytes=ge._crypto_box_beforenmbytes,r._crypto_box_detached=ge._crypto_box_detached,r._crypto_box_detached_afternm=ge._crypto_box_detached_afternm,r._crypto_box_easy=ge._crypto_box_easy,r._crypto_box_easy_afternm=ge._crypto_box_easy_afternm,r._crypto_box_keypair=ge._crypto_box_keypair,r._crypto_box_macbytes=ge._crypto_box_macbytes,r._crypto_box_messagebytes_max=ge._crypto_box_messagebytes_max,r._crypto_box_noncebytes=ge._crypto_box_noncebytes,r._crypto_box_open_detached=ge._crypto_box_open_detached,r._crypto_box_open_detached_afternm=ge._crypto_box_open_detached_afternm,r._crypto_box_open_easy=ge._crypto_box_open_easy,r._crypto_box_open_easy_afternm=ge._crypto_box_open_easy_afternm,r._crypto_box_publickeybytes=ge._crypto_box_publickeybytes,r._crypto_box_seal=ge._crypto_box_seal,r._crypto_box_seal_open=ge._crypto_box_seal_open,r._crypto_box_sealbytes=ge._crypto_box_sealbytes,r._crypto_box_secretkeybytes=ge._crypto_box_secretkeybytes,r._crypto_box_seed_keypair=ge._crypto_box_seed_keypair,r._crypto_box_seedbytes=ge._crypto_box_seedbytes,r._crypto_generichash=ge._crypto_generichash,r._crypto_generichash_bytes=ge._crypto_generichash_bytes,r._crypto_generichash_bytes_max=ge._crypto_generichash_bytes_max,r._crypto_generichash_bytes_min=ge._crypto_generichash_bytes_min,r._crypto_generichash_final=ge._crypto_generichash_final,r._crypto_generichash_init=ge._crypto_generichash_init,r._crypto_generichash_keybytes=ge._crypto_generichash_keybytes,r._crypto_generichash_keybytes_max=ge._crypto_generichash_keybytes_max,r._crypto_generichash_keybytes_min=ge._crypto_generichash_keybytes_min,r._crypto_generichash_keygen=ge._crypto_generichash_keygen,r._crypto_generichash_statebytes=ge._crypto_generichash_statebytes,r._crypto_generichash_update=ge._crypto_generichash_update,r._crypto_hash=ge._crypto_hash,r._crypto_hash_bytes=ge._crypto_hash_bytes,r._crypto_kdf_bytes_max=ge._crypto_kdf_bytes_max,r._crypto_kdf_bytes_min=ge._crypto_kdf_bytes_min,r._crypto_kdf_contextbytes=ge._crypto_kdf_contextbytes,r._crypto_kdf_derive_from_key=ge._crypto_kdf_derive_from_key,r._crypto_kdf_keybytes=ge._crypto_kdf_keybytes,r._crypto_kdf_keygen=ge._crypto_kdf_keygen,r._crypto_kx_client_session_keys=ge._crypto_kx_client_session_keys,r._crypto_kx_keypair=ge._crypto_kx_keypair,r._crypto_kx_publickeybytes=ge._crypto_kx_publickeybytes,r._crypto_kx_secretkeybytes=ge._crypto_kx_secretkeybytes,r._crypto_kx_seed_keypair=ge._crypto_kx_seed_keypair,r._crypto_kx_seedbytes=ge._crypto_kx_seedbytes,r._crypto_kx_server_session_keys=ge._crypto_kx_server_session_keys,r._crypto_kx_sessionkeybytes=ge._crypto_kx_sessionkeybytes,r._crypto_pwhash=ge._crypto_pwhash,r._crypto_pwhash_alg_argon2i13=ge._crypto_pwhash_alg_argon2i13,r._crypto_pwhash_alg_argon2id13=ge._crypto_pwhash_alg_argon2id13,r._crypto_pwhash_alg_default=ge._crypto_pwhash_alg_default,r._crypto_pwhash_bytes_max=ge._crypto_pwhash_bytes_max,r._crypto_pwhash_bytes_min=ge._crypto_pwhash_bytes_min,r._crypto_pwhash_memlimit_interactive=ge._crypto_pwhash_memlimit_interactive,r._crypto_pwhash_memlimit_max=ge._crypto_pwhash_memlimit_max,r._crypto_pwhash_memlimit_min=ge._crypto_pwhash_memlimit_min,r._crypto_pwhash_memlimit_moderate=ge._crypto_pwhash_memlimit_moderate,r._crypto_pwhash_memlimit_sensitive=ge._crypto_pwhash_memlimit_sensitive,r._crypto_pwhash_opslimit_interactive=ge._crypto_pwhash_opslimit_interactive,r._crypto_pwhash_opslimit_max=ge._crypto_pwhash_opslimit_max,r._crypto_pwhash_opslimit_min=ge._crypto_pwhash_opslimit_min,r._crypto_pwhash_opslimit_moderate=ge._crypto_pwhash_opslimit_moderate,r._crypto_pwhash_opslimit_sensitive=ge._crypto_pwhash_opslimit_sensitive,r._crypto_pwhash_passwd_max=ge._crypto_pwhash_passwd_max,r._crypto_pwhash_passwd_min=ge._crypto_pwhash_passwd_min,r._crypto_pwhash_saltbytes=ge._crypto_pwhash_saltbytes,r._crypto_pwhash_str=ge._crypto_pwhash_str,r._crypto_pwhash_str_alg=ge._crypto_pwhash_str_alg,r._crypto_pwhash_str_needs_rehash=ge._crypto_pwhash_str_needs_rehash,r._crypto_pwhash_str_verify=ge._crypto_pwhash_str_verify,r._crypto_pwhash_strbytes=ge._crypto_pwhash_strbytes,r._crypto_pwhash_strprefix=ge._crypto_pwhash_strprefix,r._crypto_scalarmult=ge._crypto_scalarmult,r._crypto_scalarmult_base=ge._crypto_scalarmult_base,r._crypto_scalarmult_bytes=ge._crypto_scalarmult_bytes,r._crypto_scalarmult_scalarbytes=ge._crypto_scalarmult_scalarbytes,r._crypto_secretbox_detached=ge._crypto_secretbox_detached,r._crypto_secretbox_easy=ge._crypto_secretbox_easy,r._crypto_secretbox_keybytes=ge._crypto_secretbox_keybytes,r._crypto_secretbox_keygen=ge._crypto_secretbox_keygen,r._crypto_secretbox_macbytes=ge._crypto_secretbox_macbytes,r._crypto_secretbox_messagebytes_max=ge._crypto_secretbox_messagebytes_max,r._crypto_secretbox_noncebytes=ge._crypto_secretbox_noncebytes,r._crypto_secretbox_open_detached=ge._crypto_secretbox_open_detached,r._crypto_secretbox_open_easy=ge._crypto_secretbox_open_easy,r._crypto_secretstream_xchacha20poly1305_abytes=ge._crypto_secretstream_xchacha20poly1305_abytes,r._crypto_secretstream_xchacha20poly1305_headerbytes=ge._crypto_secretstream_xchacha20poly1305_headerbytes,r._crypto_secretstream_xchacha20poly1305_init_pull=ge._crypto_secretstream_xchacha20poly1305_init_pull,r._crypto_secretstream_xchacha20poly1305_init_push=ge._crypto_secretstream_xchacha20poly1305_init_push,r._crypto_secretstream_xchacha20poly1305_keybytes=ge._crypto_secretstream_xchacha20poly1305_keybytes,r._crypto_secretstream_xchacha20poly1305_keygen=ge._crypto_secretstream_xchacha20poly1305_keygen,r._crypto_secretstream_xchacha20poly1305_messagebytes_max=ge._crypto_secretstream_xchacha20poly1305_messagebytes_max,r._crypto_secretstream_xchacha20poly1305_pull=ge._crypto_secretstream_xchacha20poly1305_pull,r._crypto_secretstream_xchacha20poly1305_push=ge._crypto_secretstream_xchacha20poly1305_push,r._crypto_secretstream_xchacha20poly1305_rekey=ge._crypto_secretstream_xchacha20poly1305_rekey,r._crypto_secretstream_xchacha20poly1305_statebytes=ge._crypto_secretstream_xchacha20poly1305_statebytes,r._crypto_secretstream_xchacha20poly1305_tag_final=ge._crypto_secretstream_xchacha20poly1305_tag_final,r._crypto_secretstream_xchacha20poly1305_tag_message=ge._crypto_secretstream_xchacha20poly1305_tag_message,r._crypto_secretstream_xchacha20poly1305_tag_push=ge._crypto_secretstream_xchacha20poly1305_tag_push,r._crypto_secretstream_xchacha20poly1305_tag_rekey=ge._crypto_secretstream_xchacha20poly1305_tag_rekey,r._crypto_shorthash=ge._crypto_shorthash,r._crypto_shorthash_bytes=ge._crypto_shorthash_bytes,r._crypto_shorthash_keybytes=ge._crypto_shorthash_keybytes,r._crypto_shorthash_keygen=ge._crypto_shorthash_keygen,r._crypto_sign=ge._crypto_sign,r._crypto_sign_bytes=ge._crypto_sign_bytes,r._crypto_sign_detached=ge._crypto_sign_detached,r._crypto_sign_ed25519_pk_to_curve25519=ge._crypto_sign_ed25519_pk_to_curve25519,r._crypto_sign_ed25519_sk_to_curve25519=ge._crypto_sign_ed25519_sk_to_curve25519,r._crypto_sign_final_create=ge._crypto_sign_final_create,r._crypto_sign_final_verify=ge._crypto_sign_final_verify,r._crypto_sign_init=ge._crypto_sign_init,r._crypto_sign_keypair=ge._crypto_sign_keypair,r._crypto_sign_messagebytes_max=ge._crypto_sign_messagebytes_max,r._crypto_sign_open=ge._crypto_sign_open,r._crypto_sign_publickeybytes=ge._crypto_sign_publickeybytes,r._crypto_sign_secretkeybytes=ge._crypto_sign_secretkeybytes,r._crypto_sign_seed_keypair=ge._crypto_sign_seed_keypair,r._crypto_sign_seedbytes=ge._crypto_sign_seedbytes,r._crypto_sign_statebytes=ge._crypto_sign_statebytes,r._crypto_sign_update=ge._crypto_sign_update,r._crypto_sign_verify_detached=ge._crypto_sign_verify_detached,r._emscripten_get_sbrk_ptr=ge._emscripten_get_sbrk_ptr,r._emscripten_replace_memory=ge._emscripten_replace_memory);if(r._free=ge._free,r._i64Add=ge._i64Add,r._i64Subtract=ge._i64Subtract,r._malloc=ge._malloc,r._memcpy=ge._memcpy,r._memmove=ge._memmove,r._memset=ge._memset,r._randombytes=ge._randombytes,r._randombytes_buf=ge._randombytes_buf,r._randombytes_buf_deterministic=ge._randombytes_buf_deterministic,r._randombytes_close=ge._randombytes_close,r._randombytes_random=ge._randombytes_random,r._randombytes_seedbytes=ge._randombytes_seedbytes,r._randombytes_stir=ge._randombytes_stir,r._randombytes_uniform=ge._randombytes_uniform,r._sodium_base642bin=ge._sodium_base642bin,r._sodium_base64_encoded_len=ge._sodium_base64_encoded_len,r._sodium_bin2base64=ge._sodium_bin2base64,r._sodium_bin2hex=ge._sodium_bin2hex,r._sodium_hex2bin=ge._sodium_hex2bin,r._sodium_init=ge._sodium_init,r._sodium_library_minimal=ge._sodium_library_minimal,r._sodium_library_version_major=ge._sodium_library_version_major,r._sodium_library_version_minor=ge._sodium_library_version_minor,r._sodium_pad=ge._sodium_pad,r._sodium_unpad=ge._sodium_unpad,r._sodium_version_string=ge._sodium_version_string,r.establishStackSpace=ge.establishStackSpace,r.stackAlloc=ge.stackAlloc,r.stackRestore=ge.stackRestore,r.stackSave=ge.stackSave,r.asm=ge,r.setValue=function(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":Q[e>>0]=t;break;case"i16":x[e>>1]=t;break;case"i32":D[e>>2]=t;break;case"i64":Z=[t>>>0,(X=t,+G(X)>=1?X>0?(0|J(+Y(X/4294967296),4294967295))>>>0:~~+$((X-+(~~X>>>0))/4294967296)>>>0:0)],D[e>>2]=Z[0],D[e+4>>2]=Z[1];break;case"float":P[e>>2]=t;break;case"double":M[e>>3]=t;break;default:W("invalid type for setValue: "+n)}},r.getValue=function(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return Q[e>>0];case"i16":return x[e>>1];case"i32":case"i64":return D[e>>2];case"float":return P[e>>2];case"double":return M[e>>3];default:W("invalid type for getValue: "+t)}return null},r.UTF8ToString=O,ee)if(ne(ee)||(pe=ee,ee=r.locateFile?r.locateFile(pe,I):I+pe),d||h){var ve=v(ee);S.set(ve,8)}else{V++,r.monitorRunDependencies&&r.monitorRunDependencies(V);var me=function(e){e.byteLength&&(e=new Uint8Array(e)),S.set(e,8),r.memoryInitializerRequest&&delete r.memoryInitializerRequest.response,function(e){if(V--,r.monitorRunDependencies&&r.monitorRunDependencies(V),0==V&&(null!==z&&(clearInterval(z),z=null),q)){var t=q;q=null,t()}}()},be=function(){y(ee,me,(function(){throw"could not load memory initializer "+ee}))},Ie=he(ee);if(Ie)me(Ie.buffer);else if(r.memoryInitializerRequest){var we=function(){var e=r.memoryInitializerRequest,t=e.response;if(200!==e.status&&0!==e.status){var n=he(r.memoryInitializerRequestURL);if(!n)return void be();t=n.buffer}me(t)};r.memoryInitializerRequest.response?setTimeout(we,0):r.memoryInitializerRequest.addEventListener("load",we)}else be()}function Ce(e){function t(){de||(de=!0,E||(j(U),j(L),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),K.unshift(e);var e;j(K)}()))}e=e||p,V>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),N.unshift(e);var e;j(N)}(),V>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}if(q=function e(){de||Ce(),de||(q=e)},r.run=Ce,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();Ce(),Object.keys(l).forEach((function(e){"getRandomValue"!==e&&delete l[e]})),Object.keys(r).forEach((function(e){l[e]=r[e]}))};var s,c=void 0!==c?c:{},f={};for(s in c)c.hasOwnProperty(s)&&(f[s]=c[s]);var A,h,p=[],d=!1,g=!1,y=!1;d="object"==("undefined"==typeof window?"undefined":u(window)),g="function"==typeof importScripts,A="object"==(void 0===i?"undefined":u(i))&&"object"==u(i.versions)&&"string"==typeof i.versions.node,y=A&&!d&&!g,h=!d&&!y&&!g;var v,m,b,I,w="";y?(w=a+"/",v=function(e,t){var r;return(r=pe(e))||(b||(b=n(44)),I||(I=n(45)),e=I.normalize(e),r=b.readFileSync(e)),t?r:r.toString()},m=function(e){var t=v(e,!0);return t.buffer||(t=new Uint8Array(t)),x(t.buffer),t},i.argv.length>1&&i.argv[1].replace(/\\/g,"/"),p=i.argv.slice(2),e.exports=c,i.on("unhandledRejection",te),c.inspect=function(){return"[Emscripten Module object]"}):h?("undefined"!=typeof read&&(v=function(e){var t=pe(e);return t?Ae(t):read(e)}),m=function(e){var t;return(t=pe(e))?t:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(x("object"==u(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?p=scriptArgs:void 0!==arguments&&(p=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(d||g)&&(g?w=self.location.href:document.currentScript&&(w=document.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",v=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var n=pe(e);if(n)return Ae(n);throw t}},g&&(m=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var n=pe(e);if(n)return n;throw t}}));var C=c.print||void 0,B=c.printErr||void 0;for(s in f)f.hasOwnProperty(s)&&(c[s]=f[s]);f=null,c.arguments&&(p=c.arguments),c.thisProgram&&c.thisProgram,c.quit&&c.quit;var E,_,k={"f64-rem":function(e,t){return e%t},debugger:function(){}};new Array(8),c.wasmBinary&&(E=c.wasmBinary),c.noExitRuntime&&c.noExitRuntime,"object"!=("undefined"==typeof WebAssembly?"undefined":u(WebAssembly))&&B("no native wasm support detected");var Q=new WebAssembly.Table({initial:0,maximum:0,element:"anyfunc"}),S=!1;function x(e,t){e||te("Assertion failed: "+t)}var D,P,M,F,O,R,T,H="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function j(e,t){return e?function(e,t,n){for(var r=t+n,i=t;e[i]&&!(i>=r);)++i;if(i-t>16&&e.subarray&&H)return H.decode(e.subarray(t,i));for(var a="";t<i;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|c:(7&o)<<18|s<<12|c<<6|63&e[t++])<65536)a+=String.fromCharCode(o);else{var u=o-65536;a+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else a+=String.fromCharCode((31&o)<<6|s)}else a+=String.fromCharCode(o)}return a}(M,e,t):""}function N(e,t){return e%t>0&&(e+=t-e%t),e}function U(e){D=e,c.HEAP8=P=new Int8Array(e),c.HEAP16=F=new Int16Array(e),c.HEAP32=O=new Int32Array(e),c.HEAPU8=M=new Uint8Array(e),c.HEAPU16=new Uint16Array(e),c.HEAPU32=new Uint32Array(e),c.HEAPF32=R=new Float32Array(e),c.HEAPF64=T=new Float64Array(e)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var L=c.TOTAL_MEMORY||16777216;function K(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?c.dynCall_v(n):c.dynCall_vi(n,t.arg):n(void 0===t.arg?null:t.arg)}else t()}}(_=c.wasmMemory?c.wasmMemory:new WebAssembly.Memory({initial:L/65536}))&&(D=_.buffer),L=D.byteLength,U(D),O[9312]=5280320;var G=[],$=[],Y=[],J=[],V=Math.abs,z=Math.ceil,q=Math.floor,W=Math.min,X=0,Z=null,ee=null;function te(e){throw c.onAbort&&c.onAbort(e),C(e+=""),B(e),S=!0,"abort("+e+"). Build with -s ASSERTIONS=1 for more info."}c.preloadedImages={},c.preloadedAudios={};var ne="data:application/octet-stream;base64,";function re(e){return String.prototype.startsWith?e.startsWith(ne):0===e.indexOf(ne)}var ie,ae,oe,se="data:application/octet-stream;base64,AGFzbQEAAAABxQM0YAR/f39/AGAAAGABfwF/YAABf2ADf39/AX9gAX8AYAJ/fwBgCX9/f39+f35/fwF/YAJ/fgBgCH9/f35/fn9/AX9gCH9/fn9/fn9/AX9gCX9/f39+f35/fwBgBH9/fn8AYAR/f35/AX9gAn9/AX9gBn9/f35/fwF/YAd/f39+f39/AX9gBX9/fn9/AX9gBn9/fn9/fwF/YAN/f38AYAF/AX5gA39/fwF+YAR/f39/AX9gA39/fgF/YAJ+fwF+YAN/f34AYAV/f39/fwBgBn9/f39+fwBgBX9/f39/AX9gBn9/f39/fwF/YAJ+fgF+YAx/f39/f39/f39/f38Bf2AHf35/fn9+fwF/YAV/f35+fwF/YAR/fn9/AX9gCH9+f35/fn9/AX9gBn9/fn5/fwF/YAN/fn8Bf2AIf39/f35/fn8Bf2AIf39/f39+f34Bf2AFf39/fn8Bf2AGf39/fn9/AGAFf39/fn8AYAV/f35/fwBgBH9+f38AYAZ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AALCQAgACABNgAAC8UJAg1/KX4gAigCBCIDrCEQIAIoAggiBKwhGCACKAIMIgWsIRsgAigCECIGrCEdIAIoAhQiB6whHyACKAIYIgisISYgAigCHCIJrCEtIAIoAiAiCqwhMCABKAIEIgusISAgASgCDCIMrCEhIAEoAhQiDawhIiABKAIcIg6sISMgASgCJCIPrCEkIA9BAXSsIicgA0ETbKx+IAEoAgCsIhEgAigCAKwiEn58IAEoAiCsIhMgBEETbKwiLn58IA5BAXSsIiggBUETbKwiKX58IAEoAhisIhQgBkETbKwiJX58IA1BAXSsIiogB0ETbKwiHn58IAEoAhCsIhUgCEETbKwiHH58IAxBAXSsIisgCUETbKwiGX58IApBE2ysIhcgASgCCKwiFn58IAtBAXSsIiwgAigCJCIBQRNsrCIafnwhMSAQIBR+IBIgI358IBggIn58IBUgG358IB0gIX58IBYgH358ICAgJn58IBEgLX58IBcgJH58IBMgGn58IBAgKn4gEiAUfnwgFSAYfnwgGyArfnwgFiAdfnwgHyAsfnwgESAmfnwgGSAnfnwgEyAXfnwgGiAofnwgECAVfiASICJ+fCAYICF+fCAWIBt+fCAdICB+fCARIB9+fCAcICR+fCATIBl+fCAXICN+fCAUIBp+fCAQICt+IBIgFX58IBYgGH58IBsgLH58IBEgHX58IB4gJ358IBMgHH58IBkgKH58IBQgF358IBogKn58Ii9CgICAEHwiM0Iah3wiNEKAgIAIfCI1QhmHfCI2QoCAgBB8IjdCGod8ITIgLyAzQoCAgGCDfSASICF+IBAgFn58IBggIH58IBEgG358ICQgJX58IBMgHn58IBwgI358IBQgGX58IBcgIn58IBUgGn58IBAgLH4gEiAWfnwgESAYfnwgJyApfnwgEyAlfnwgHiAofnwgFCAcfnwgGSAqfnwgFSAXfnwgGiArfnwgECARfiASICB+fCAkIC5+fCATICl+fCAjICV+fCAUIB5+fCAcICJ+fCAVIBl+fCAXICF+fCAWIBp+fCAxQoCAgBB8IhlCGod8IhxCgICACHwiHkIZh3wiJUKAgIAQfCIpQhqHfCIuQoCAgAh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JqICAgHCAhfHwgHUEIEAcgJSAdQgeIhYV8IiA3AwAgIkETEAchHCAiQT0QByAcICJCBoiFhSEcIAdBCWpBA3QgAmopAwAhJSAHQQFqQQN0IAJqKQMAIiJBARAHISYgB0EQakEDdCACaiAdICV8IBx8ICJBCBAHICYgIkIHiIWFfCIdNwMAICBBExAHIRwgIyAgQT0QByAcICBCBoiFhXwhHCAWKQMAIiBBARAHISUgFUEQakEDdCACaiAcICJ8ICBBCBAHICUgIEIHiIWFfCIiNwMAIB1BExAHIRwgHUE9EAcgHCAdQgaIhYUhHCAIQQlqQQN0IAJqKQMAISUgCEEBakEDdCACaikDACIdQQEQByEmIAhBEGpBA3QgAmogICAlfCAcfCAdQQgQByAmIB1CB4iFhXwiIDcDACAiQRMQByEcICJBPRAHIBwgIkIGiIWFISIgDUEJakEDdCACaikDACAifCEiIB5BARAHIRwgDUEQakEDdCACaiAdICJ8IB5BCBAHIBwgHkIHiIWFfCIdNwMAICBBExAHISIgIEE9EAcgIiAgQgaIhYUhIiAJQQlqQQN0IAJqKQMAIRwgCUEBakEDdCACaikDACIgQQEQByElIAlBEGpBA3QgAmogHCAefCAifCAgQQgQByAlICBCB4iFhXwiHjcDACAdQRMQByEiIB1BPRAHICIgHUIGiIWFIR0gDkEJakEDdCACaikDACAdfCEdIB9BARAHISIgDkEQakEDdCACaiAdICB8IB9BCBAHICIgH0IHiIWFfCIdNwMAIB5BExAHISAgHkE9EAcgICAeQgaIhYUhICAKQQlqQQN0IAJqKQMAISIgCkEBakEDdCACaikDACIeQQEQByEcIApBEGpBA3QgAmogHyAifCAgfCAeQQgQByAcIB5CB4iFhXwiHzcDACAdQRMQByEgIB1BPRAHICAgHUIGiIWFIR0gD0EJakEDdCACaikDACAdfCEdICFBARAHISAgD0EQakEDdCACaiAdIB58ICFBCBAHICAgIUIHiIWFfCIeNwMAIB9BExAHIR0gH0E9EAcgHSAfQgaIhYUhHSALQQlqQQN0IAJqKQMAISAgC0EBakEDdCACaikDACIfQQE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AggCHMiDmpBCRAIIANzIgMgAyAOakENEAggEXMiCGpBEhAIIAZzIQYgCiASakEHEAggAXMiECAKakEJEAggB3MiByAHIBBqQQ0QCCAScyIBakESEAggCnMhDCAFIBNqQQcQCCAJcyIJIAVqQQkQCCAVcyINIAkgDWpBDRAIIBNzIgpqQRIQCCAFcyEFIBRBfmoiFA0ACyAAIAQQCyAAQQRqIAYQCyAAQQhqIAwQCyAAQQxqIAUQCyAAQRBqIA4QCyAAQRRqIAMQCyAAQRhqIAcQCyAAQRxqIAEQCwveEwIIfx9+IAAsAAAgACwAASAAQQJqIgIsAAAQEEL///8AgyETAn4gAhARQgWIQv///wCDIScgACwABSAALAAGIABBB2oiAywAABAQQgKIQv///wCDIR8gAxARQgeIQv///wCDISAgAEEKaiIHEBFCBIhC////AIMhGSAALAANIAAsAA4gAEEPaiIELAAAEBBCAYhC////AIMhISAEEBFCBohC////AIMhFCAALAASIAAsABMgACwAFBAQQgOIQv///wCDIRogACwAFSAALAAWIABBF2oiBSwAABAQQv///wCDIRUgBRARQgWIQv///wCDIRsgACwAGiAALAAbIABBHGoiBiwAABAQQgKIQv///wCDIRYgBhARQgeIQv///wCDIRwgAEEfaiIIEBFCBIhC////AIMhECAALAAiIAAsACMgAEEkaiIBLAAAEBBCAYhC////AIMhESABEBFCBohC////AIMhEgJ+IAAsACcgACwAKCAALAApEBBCA4hC////AIMhJiAALAAqIAAsACsgAEEsaiIBLAAAEBBC////AIMhDCABEBFCBYhC////AIMhHSAALAAvIAAsADAgAEExaiIBLAAAEBBCAohC////AIMhCSABEBFCB4hC////AIMhCiAAQTRqEBFCBIhC////AIMhCyAALAA3IAAsADggAEE5aiIBLAAAEBBCAYhC////AIMhDSABEBFCBohC////AIMhDiAAQTxqEBFCA4giD0KDoVZ+IAx8IQwgC0KDoVZ+IBF8IA1C0asIfnwgD0Ln9id+fCAOQtOMQ358IApCg6FWfiAQfCALQtGrCH58IA1C04xDfnwgD0KY2hx+fCAOQuf2J358Ih5CgIB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QT9xEI4BOgAAIAVBBUsEfyAGIQQMAQUgBgsLIQQLIAlBAWoiCSADRw0ACyAFBH8gACAEaiAIQQYgBWt0QT9xEI4BOgAAIARBAWoFIAQLBUEACwsiBEkEQEH0lQJBh5YCQeYBQZeWAhACCyAHIARLBEAgACAEakE9IAcgBGsQGhogByEECyAAIARqQQAgASAEQQFqIgIgAiABSRsgBGsQGhogAAsPACAAQXlxQQFHBEAQAAsLEQAgACABIAIgA0IAIAQQiwELIAAgAkL/////D1YEQBAABSAAIAEgAiADIAQgBRCWAQsLHAAgAUL/////D1YEQBAABSAAIAEgAiADEJACCwsVACAAEDogAQRAIABB8IwCQiIQHQsLngEBA38CfyMAIQMjAEE/akFAcSQAIwAhASMAQTBqJAAgASAAKQAANwAAIAEgACkACDcACCABIAApABA3ABAgASAAKQAYNwAYIAEgACkAJDcDICABIAFCKCAAQSBqQQAgABCWASAAIAEpAAA3AAAgACABKQAINwAIIAAgASkAEDcAECAAIAEpABg3ABggACABKQMgNwAkIAAQZSADCyQACwkAIABBATYAIAuWAgIFfwJ+An8jACEKIwBBP2pBQHEkACMAIQYjAEHgAGokACAGIAQgBRBRIAZBIGoiBSAEQRBqIgQgBhD7ASACIAEgAyAFENMCBH8gBkEgEApBfwUgAARAIAEgAE9BACABIABrrSADVBsgACABT0EAIAAgAWutIANUG3IEQCAAIAEgA6cQLBogACEBC0IgIAMgA0IgViICGyILQgBRBEAgBSAFQiAgBCAGEGAFIAVBIGoiCCABQX8gA0J/hSIMQl8gDEJfVhunayIJEBgaIAUgBSALQiB8IAQgBhBgIAAgCCAJEBgaCyACBEAgACALpyICaiABIAJqIAMgC30gBCAGEJMBCyAGQSAQCgtBAAshACAKCyQAIAALxQICB38CfgJ/IwAhDCMAQT9qQUBxJAAjACEHIwBB4AJqJAAgB0EgaiEGIAciCCAEIAUQUSAAIAJLQQAgACIFIAIiCWutIANUGyACIABLQQAgCSAFa60gA1QbcgRAIAAgAiADpxAsGiAAIQILIAZCADcDACAGQgA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cSEGIA0gHH4gESAZfnwgEiAWfnwgECATfnwgDiAUfnwgF0IaiEL/////D4N8Ig2nQf///x9xIQcgDUIaiKdBBWwgGqdB////H3FqIgNB////H3EhBCAdp0H///8fcSADQRp2aiEDIAFBEGohASACQnB8IgJCD1YNAAsLIAAgBDYCFCAAIAM2AhggACAFNgIcIAAgBjYCICAAIAc2AiQLMAAgAUF/akE/SyAFQcAAS3IEf0F/BSAAIAIgBCABQf8BcSADIAVB/wFxEOECQQALC4QDAQd/IwAhByMAQT9qQUBxJAAjACEDIwBBQGskACACQf8BcQRAIAJB/wFxIQggAkH/AXFBwABMBEACfyAAKQBQQgBSBH9BfwUgACgA4AIiAkGAAUsEQCAAQoABEHQgACAAQeAAaiICEHcgACAAKADgAkGAf2oiBTYA4AIgBUGBAUkEQCACIABB4AFqIAUQGBogACgA4AIhBiACIQQFQaCNAkHAjQJBsgJB7Y0CEAILBSACIQYgAEHgAGohBAsgACAGrRB0IAAiAiwA5AIEQCACQn83AFgLIAJCfzcAUCAAKADgAiICIABB4ABqakEAQYACIAJrEBoaIAAgBBB3IAMgACkAABASIANBCGogACkACBASIANBEGogACkAEBASIANBGGogACkAGBASIANBIGogACkAIBASIANBKGogACkAKBASIANBMGogACkAMBASIANBOGogACkAOBASIAEgAyAIEBgaIABBwAAQCiAEQYACEApBAAshCSAHJAAgCQsPCwsQAEEACy0CAX8BfiABIABBQGsiAikAAHwhAyACIAM3AAAgACAAKQBIIAMgAVStfDcASAsJACAAQQA2AAALNgECfyAAEOMCA0AgAkEDdCAAaiIDIAEgAkEDdGopAAAgAykAAIU3AAAgAkEBaiICQQhHDQALC4s2AgV/In4CfyMAIQYjAEE/akFAcSQAIwAhAiMAQYACaiQAIAJBgAFqIQMDQCAEQQN0IANqIAEgBEEDdGopAAA3AwAgBEEBaiIEQRBHDQALIAIgACkAADcAACACIAApAAg3AAggAiAAKQAQNwAQIAIgACkAGDcAGCACIAApACA3ACAgAiAAKQAoNwAoIAIgACkAMDcAMCACI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AEgAhAPIAQgAhASIAkgBEIIEA8gCSAIECUgCUGAAhAKIAggAxBDIQMgCEEQEAogAARAIAMEfyAAQQAgAqcQGhpBfwUgACABIAIgBiAHEJcBQQALIQMLIAgkACADC2MBBX9BICEBQQEhAgNAIAJB/wFxIgIgACABQX9qIgFqLAAAIgRB/wFxIAFBsIQCaiwAACIFQf8BcWtBCHVxIANyIQMgBCAFc0H/AXFB//8DakEIdiACcSECIAENAAsgA0EARwvlIAIBfzd+IAEsAAAgASwAASABQQJqIgQsAAAQEEL///8AgyEFIAQQEUIFiEL///8AgyEGIAEsAAUgASwABiABQQdqIgQsAAAQEEICiEL///8AgyEOIAQQEUIHiEL///8AgyEPIAFBCmoQEUIEiEL///8AgyEKIAEsAA0gASwADiABQQ9qIgQsAAAQEEIBiEL///8AgyEHIAQQEUIGiEL///8AgyELIAEsABIgASwAEyABLAAUEBBCA4hC////AIMhDSABLAAVIAEsABYgAUEXaiIELAAAEBBC////AIMhCCAEEBFCBYhC////AIMhECABLAAaIAEsABsgAUEcaiIBLAAAEBBCAohC////AIMhDCABEBFCB4ghCSACLAAAIAIsAAEgAkECaiIBLAAAEBBC////AIMhGCABEBFCBYhC////AIMhGSACLAAFIAIsAAYgAkEHaiIBLAAAEBBCAohC////AIMhGyABEBFCB4hC////AIMhHCACQQpqEBFCBIhC////AIMhGiACLAANIAIsAA4gAkEPaiIBLAAAEBBCAYhC////AIMhFSABEBFCBohC////AIMhFiACLAASIAIsABMgAiwAFBAQQgOIQv///wCDIREgAiwAFSACLAAWIAJBF2oiASwAABAQQv///wCDIRMgARARQgWIQv///wCDIRQgAiwAGiACLAAbIAJBHGoiASwAABAQQgKIQv///wCDIRIgARARQgeIIRcgAywAACADLAABIANBAmoiASwAABAQQv///wCDIR0gARARQgWIQv///wCDIR4gAywABSADLAAGIANBB2oiASwAABAQQgKIQv///wCDITEgARARQgeIQv///wCDITIgA0EKahARQgSIQv///wCDITMgAywADSADLAAOIANBD2oiASwAABAQQgGIQv///wC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gBmosAAANASABIAdqLAAADQEgAUF/aiECIAEEQCACIQEMAQsLDAELIAFBf0oEQANAIAMgABA1IAEgBmosAAAiAkEASgRAIAQgAxAUIAMgBCACQf8BcUEBdkGgAWwgBWoQHAUgAkEASARAIAQgAxAUIAMgBCACQX5tQRh0QRh1QaABbCAFahB9CwsgASAHaiwAACICQQBKBEAgBCADEBQgAyAEIAJB/wFxQQF2QfgAbEGQCWoQVQUgAkEASARAIAQgAxAUIAMgBCACQX5tQRh0QRh1QfgAbEGQCWoQugELCyAAIAMQPiABQX9qIQIgAUEASgRAIAIhAQwBCwsLCyAJCyQACzsAIANC7////w9WBEAQAAsgACAAIAOnakEAIAIgAyAEIAUgBiAHEIIBGiABBEAgASADQhB8NwMAC0EAC4YDAQZ/An8jACEHIwBBP2pBQHEkACMAIQUjAEGQAWokACAFQeAAaiIDIAEQDSAFQTBqIgIgAxANIAIgAhANIAIgASACEAwgAyADIAIQDCADIAMQDSADIAIgAxAMIAIgAxANQQEhBANAIAIgAhANIARBAWoiBEEFRw0ACyADIAIgAxAMIAIgAxANQQEhBANAIAIgAhANIARBAWoiBEEKRw0ACyACIAIgAxAMIAUgAhANQQEhBANAIAUgBRANIARBAWoiBEEURw0ACyACIAUgAhAMIAIgAhANQQEhBANAIAIgAhANIARBAWoiBEEKRw0ACyADIAIgAxAMIAIgAxANQQEhBANAIAIgAhANIARBAWoiBEEyRw0ACyACIAIgAxAMIAUgAhANQQEhBANAIAUgBRANIARBAWoiBEHkAEcNAAsgAiAFIAIQDCACIAIQDUEBIQQDQCACIAIQDSAEQQFqIgRBMkcNAAsgAyACIAMQDCADIAMQDSADIAMQDSAAIAMgARAMIAcLJAAL0gIBCX8gASgCACICIAEoAiQiCiABKAIgIgMgASgCHCIEIAEoAhgiBSABKAIUIgYgASgCECIHIAEoAgwiCCABKAIIIgkgASgCBCIBIAIgCkETbEGAgIAIakEZdmpBGnVqQRl1akEadWpBGXVqQRp1akEZdWpBGnVqQRl1akEadWpBGXVBE2xqIQIgAyAEIAUgBiAHIAggCSABIAJBGnVqIgRBGXVqIgVBGnVqIgZBGXVqIgdBGnVqIghBGXVqIglBGnVqIgFBGXVqIQMgACACQf///x9xNgIAIAAgBEH///8PcTYCBCAAIAVB////H3E2AgggACAGQf///w9xNgIMIAAgB0H///8fcTYCECAAIAhB////D3E2AhQgACAJQf///x9xNgIYIAAgAUH///8PcTYCHCAAIANB////H3E2AiAgACAKIANBGnVqQf///w9xNgIkC0MBA38CfyMAIQUjAEE/akFAcSQAIwAhAyMAQSBqJAAgAyACIAEQoQEEf0F/BSAAQdCWAiADEFFBAAshACAFCyQAIAALZQEDfwJ/IwAhBSMAQT9qQUBxJAAjACEDIwBBQGskACADIAJCIBA5IAEgAykAADcAACABIAMpAAg3AAggASADKQAQNwAQIAEgAykAGDcAGCADQcAAEAogACABEGghACAFCyQAIAALBABBMAtRAQN/An8jACEHIwBBP2pBQHEkACMAIQUjAEEgaiQAIAJCMFQEf0F/BSAFIAEgAxCDASAAIAFBIGogAkJgfCAFIAEgBBCEAQshACAHCyQAIAALigEBBH8jACEFIwBB4ABqJAAgBUFAayEGIAVBIGoiBCAFIgcQiAEEQEF/IQAFIAAgBCkAADcAACAAIAQpAAg3AAggACAEKQAQNwAQIAAgBCkAGDcAGCAGIAQgAxCDASAAQSBqIAEgAiAGIAMgBxCGASEAIAdBIBAKIARBIBAKIAZBGBAKCyAFJAAgAAshACACQhBUBH9BfwUgACABQRBqIAEgAkJwfCADIAQQWQsLKAAgAkLv////D1YEQBAABSAAQRBqIAAgASACIAMgBBBaGkEADwtBAAszAQF+IAGtIAKtQiCGhCIDQoCAgIAQVARAIAAgA6cQHwVBupUCQc6VAkHFAUHolQIQAgsLFQAgACABIAKtIAOtQiCGhCAEEJsBCxQAIAAgASACrSADrUIghoQQHUEACxcAIAAgASACIAOtIAStQiCGhCAFEJQCCxkAIAAgASACIAOtIAStQiCGhCAFEJkBQQALFwAgACABIAIgA60gBK1CIIaEIAUQkwILFwAgACABIAKtIAOtQiCGhCAEEKICQQALJQAgACABIAIgAyAErSAFrUIghoQgBiAHrSAIrUIghoQgCRCpAgslACAAIAEgAiADIAQgBa0gBq1CIIaEIAcgCK0gCa1CIIaEEKcCCxcAIAAgASACrSADrUIghoQgBCAFEKwCCxgAIAAgASACIAOtIAStQiCGhCAFIAYQZgsXACAAIAEgAq0gA61CIIaEIAQgBRCtAgsYACAAIAEgAiADrSAErUIghoQgBSAGEGcLEwAgACABIAKtIAOtQiCGhBC0AgsTACAAIAGtIAKtQiCGhCADELMCCyEAIAAgASACrSADrUIghoQgBK0gBa1CIIaEIAYgBxC1AgsfACAAIAEgAq0gA61CIIaEIAStIAWtQiCGhCAGEKIBCy0AIAAgAa0gAq1CIIaEIAMgBK0gBa1CIIaEIAYgB60gCK1CIIaEIAkgChC2AgsXACAAIAEgAq0gA61CIIaEIAQgBRDZAgsUACAAIAEgAq0gA61CIIaEEDlBAAsSACAAIAEgAq0gA61CIIaEECcLGQAgACABIAIgA60gBK1CIIaEIAUgBhCvAQsXACAAIAEgAq0gA61CIIaEIAQgBRDCAQsVACAAIAEgAq0gA61CIIaEIAQQwwELFwAgACABIAKtIAOtQiCGhCAEIAUQxAELGQAgACABIAKtIAOtQiCGhCAEIAUgBhCEAQsYACAAIAEgAiADrSAErUIghoQgBSAGEFkLGwAgACABIAIgA60gBK1CIIaEIAUgBiAHEIUBCwsAIAAgASACEMABCxcAIAAgASACrSADrUIghoQgBCAFEMUBCxkAIAAgASACrSADrUIghoQgBCAFIAYQhgELGAAgACABIAIgA60gBK1CIIaEIAUgBhBaCxsAIAAgASACIAOtIAStQiCGhCAFIAYgBxCHAQsVACAAIAEgAq0gA61CIIaEIAQQ7QELFwAgACABIAKtIAOtQiCGhCAEEIkBQQALJwAgACABIAIgAyAErSAFrUIghoQgBiAHrSAIrUIghoQgCiALEKABCyUAIAAgASACIAOtIAStQiCGhCAFIAatIAetQiCGhCAJIAoQnwILJQAgACACIAOtIAStQiCGhCAFIAYgB60gCK1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aIAUgAkIgECcaIAUgBkHAABBPGiAFQYADEApBACEAA0AgACABaiAAIAZqLAAAOgAAIAAgB2ogAEEgaiAGaiwAADoAACAAQQFqIgBBIEcNAAsgBkHAABAKQQALIQAgCQskACAAC9oBAQV/An8jACEJIwBBP2pBQHEkACMAIQUjAEHgA2okACAAIAEgABsiB0UEQBAACyAFQYADaiEGIAEgByABGyEBIAVBwANqIgAgAyAEEGkEf0F/BSAFQQBBAEHAABBQGiAFIABCIBAnGiAAQSAQCiAFIAJCIBAnGiAFIARCIBAnGiAFIAZBwAAQTxogBUGAAxAKQQAhAANAIAAgB2ogACAGaiwAADoAACAAIAFqIABBIGogBmosAAA6AAAgAEEBaiIAQSBHDQALIAZBwAAQCkEACyEAIAkLJAAgAAsOACABQSAQHyAAIAEQagsYACABQSAgAkIgQQBBABCvARogACABEGoLcgEEfwJ/IwAhCCMAQT9qQUBxJAAjACEFIwBBIGokACAFQRBqIgYgAykAADcDACAGQgA3AwggBSIDIAI3AAAgBUIANwMIIAFBcGpBMEsEf0GIlwJBHDYCAEF/BSAAIAEgBCADIAYQ3wILIQAgCAskACAAC08AIAAgATwAByAAIAFCCIg8AAYgACABQhCIPAAFIAAgAUIYiDwABCAAIAFCIIg8AAMgACABQiiIPAACIAAgAUIwiDwAASAAIAFCOIg8AAAL8AEBAn8gACkDSEIDiKdB/wBxIgJB8ABJBEBB8AAgAmsiAwRAIAIgAEHQAGpqQZCKAiADEBgaCwVBgAEgAmsiAwRAIAIgAEHQAGpqQZCKAiADEBgaCyAAIABB0ABqIgIgASABQYAFahBMIAJCADcDACACQgA3AwggAkIANwMQIAJCADcDGCACQgA3AyAgAkIANwMoIAJCADcDMCACQgA3AzggAkFAa0IANwMAIAJCADcDSCACQgA3A1AgAkIANwNYIAJCADcDYCACQgA3A2gLIABBwAFqIABBQGtBEBCrASAAIABB0ABqIAEgAUGABWoQTAtOACAALQAHrSAALQAGrUIIhoQgAC0ABa1CEIaEIAAtAAStQhiGhCAALQADrUIgho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QCiAICyQAC28AIABB0IQCKQAANwAAIABB2IQCKQAANwAIIABB4IQCKQAANwAQIABB6IQCKQAANwAYIABB8IQCKQAANwAgIABB+IQCKQAANwAoIABBgIUCKQAANwAwIABBiIUCKQAANwA4IABBQGtBAEGlAhAaGgtgAQF+AkACQCADQg9WBEAgACACIANCcHwiCCACIAOnakFwaiAEIAUgBiAHELABIQBCACAIIAAbIQMgAQ0BBSABBH9CACEDQX8hAAwCBUF/CyEACwwBCyABIAM3AwALIAALBQBBgAMLiwYBIX8gAigACCEWIAIoAAwhF0Hl8MGLBiELIAIoAAAiGSEMQbLaiMsHIQ0gAigAECIaIQ4gAigAFCIbIQUgAigAGCIcIQogAigAHCIdIQZB9MqB2QYhDyACKAAEIh4hAiAWIQcgFyEQQe7IgZkDIQMgASgAACIfIREgASgABCIgIQQgASgACCIhIQggASgADCIiIQEDQCALIAUgC2pBBxAIIBBzIhJqQQkQCCAIcyIIIAggEmpBDRAIIAVzIgVqQRIQCCALcyEJIAMgAyAMakEHEAggAXMiE2pBCRAIIApzIhggEyAYakENEAggDHMiCmpBEhAIIANzIRQgDSANIBFqQQcQCCAGcyIVakEJEAggAnMiAiACIBVqQQ0QCCARcyIQakESEAggDXMhBiAPIA4gD2pBBxAIIAdzIgdqQQkQCCAEcyIEIAQgB2pBDRAIIA5zIgFqQRIQCCAPcyEDIAkgByAJakEHEAggCnMiDGpBCRAIIAJzIgIgAiAMakENEAggB3MiB2pBEhAIIAlzIQsgFCASIBRqQQcQCCAQcyIRakEJEAggBHMiCSAJIBFqQQ0QCCAScyIQakESEAggFHMhBCAGIBNqQQcQCCABcyIOIAZqQQkQCCAIcyIIIAggDmpBDRAIIBNzIgFqQRIQCCAGcyENIAMgFWpBBxAIIAVzIgUgA2pBCRAIIBhzIgogBSAKakENEAggFXMiBmpBEhAIIANzIQ8gI0ECaiIjQRRJBEAgBCEDIAkhBAwBCwsgACALQeXwwYsGahALIABBBGogDCAZahALIABBCGogAiAeahALIABBDGogByAWahAL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Z/9F4UIA4wdYAUusBgCpLeMBECRG/zICCf+LwRYAj7fn/tpFMgDsOKEB1YMqAIqRLP6I5Sj/MT8j/z2R9f9lwAL+6KdxAJhoJgF5udoAeYvT/nfwIwBBvdn+u7Oi/6C75gA++A7/PE5hAP/3o//hO1v/a0c6//EvIQEydewA27E//vRaswAjwtf/vUMy/xeHgQBovSX/uTnCACM+5//c+GwADOeyAI9QWwGDXWX/kCcCAf/6sgAFEez+iyAuAMy8Jv71czT/v3FJ/r9sRf8WRfUBF8uyAKpjqgBB+G8AJWyZ/0AlRQAAWD7+WZSQ/79E4AHxJzUAKcvt/5F+wv/dKv3/GWOXAGH93wFKczH/Bq9I/zuwywB8t/kB5ORjAIEMz/6owMP/zLAQ/pjqqwBNJVX/IXiH/47C4wEf1joA1bt9/+guPP++dCr+l7IT/zM+7f7M7MEAwug8AKwinf+9ELj+ZwNf/43pJP4pGQv/FcOmAHb1LQBD1ZX/nwwS/7uk4wGgGQUADE7DASvF4QAwjin+xJs8/9/HEgGRiJwA/HWp/pHi7gDvF2sAbbW8/+ZwMf5Jqu3/57fj/1DcFADCa38Bf81lAC40xQHSqyT/WANa/ziXjQBgu///Kk7IAP5GRgH0fagAzESKAXzXRgBmQsj+ETTkAHXcj/7L+HsAOBKu/7qXpP8z6NABoOQr//kdGQFEvj8ADQAAAAD/AAAAAPUAAAAAAAD7AAAAAAAA/QAAAADzAAAAAAcAAAAAAAMAAAAA8wAAAAAFAEGLgQILQAsAAAAAAAsAAAAA8wAAAAAAAP0AAAAAAP8AAAAAAwAAAAD1AAAAAAAAAA8AAAAAAP8AAAAA/wAAAAAHAAAAAAUAQcyCAgsBAQBB8IICCwEBAEGQgwILsAEm6JWPwrInsEXD9Iny75jw1d+sBdPGMzmxOAKIbVP8BccXanA9TdhPujwLdg0QZw8qIFP6LDnMxk7H/XeSrAN67P///////////////////////////////////////3/t////////////////////////////////////////f+7///////////////////////////////////////9/7dP1XBpjEljWnPei3vneFABBz4QCC8IFEAjJvPNn5glqO6fKhIWuZ7sr+JT+cvNuPPE2HV869U+l0YLmrX9SDlEfbD4rjGgFm2u9Qfur2YMfeSF+ExnN4FsirijXmC+KQs1l7yORRDdxLztN7M/7wLW824mBpdu16Ti1SPNbwlY5GdAFtvER8VmbTxmvpII/khiBbdrVXhyrQgIDo5iqB9i+b3BFAVuDEoyy5E6+hTEk4rT/1cN9DFVviXvydF2+crGWFjv+sd6ANRLHJacG3JuUJmnPdPGbwdJK8Z7BaZvk4yVPOIZHvu+11YyLxp3BD2WcrHfMoQwkdQIrWW8s6S2D5KZuqoR0StT7Qb3cqbBctVMRg9qI+Xar32buUlE+mBAytC1txjGoPyH7mMgnA7DkDu++x39Zv8KPqD3zC+DGJacKk0eRp9VvggPgUWPKBnBuDgpnKSkU/C/SRoUKtycmySZcOCEbLu0qxFr8bSxN37OVnRMNOFPeY6+LVHMKZaiydzy7Cmp25q7tRy7JwoE7NYIUhSxykmQD8Uyh6L+iATBCvEtmGqiRl/jQcItLwjC+VAajUWzHGFLv1hnoktEQqWVVJAaZ1iogcVeFNQ70uNG7MnCgahDI0NK4FsGkGVOrQVEIbDcemeuO30x3SCeoSJvhtbywNGNaycWzDBw5y4pB40qq2E5z42N3T8qcW6O4stbzby5o/LLvXe6Cj3RgLxdDb2OleHKr8KEUeMiE7DlkGggCx4woHmMj+v++kOm9gt7rbFCkFXnGsvej+b4rU3Lj8nhxxpxhJurOPifKB8LAIce4htEe6+DN1n3a6njRbu5/T331um8Xcqpn8AammMiixX1jCq4N+b4EmD8RG0ccEzULcRuEfQQj9XfbKJMkx0B7q8oyvL7JFQq+njxMDRCcxGcdQ7ZCPsu+1MVMKn5l/Jwpf1ns+tY6q2/LXxdYR0qMGURsgABBsIsCCwEBAEHQiwILwQHg63p8O0G4rhZW4/rxn8Rq2gmN65wysf2GYgUWX0m4AF+clbyjUIwksdCxVZyD71sERFzEWByOhtgiTt3QnxFX7P///////////////////////////////////////3/t////////////////////////////////////////f+7///////////////////////////////////////9/U2ln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KTsgdmFyIHJhbmRvbVZhbHVlTm9kZUpTID0gZnVuY3Rpb24oKSB7IHZhciBidWYgPSBjcnlwdG9bJ3JhbmRvbUJ5dGVzJ10oNCk7IHJldHVybiAoYnVmWzBdIDw8IDI0IHwgYnVmWzFdIDw8IDE2IHwgYnVmWzJdIDw8IDggfCBidWZbM10pID4+PiAwOyB9OyByYW5kb21WYWx1ZU5vZGVKUygpOyBNb2R1bGUuZ2V0UmFuZG9tVmFsdWUgPSByYW5kb21WYWx1ZU5vZGVKUzsgfSBjYXRjaCAoZSkgeyB0aHJvdyAnTm8gc2VjdXJlIHJhbmRvbSBudW1iZXIgZ2VuZXJhdG9yIGZvdW5kJzsgfSB9IH0gfQBMaWJzb2RpdW1EUkdidWZfbGVuIDw9IFNJWkVfTUFYAHJhbmRvbWJ5dGVzL3JhbmRvbWJ5dGVzLmMAcmFuZG9tYnl0ZXMAYjY0X3BvcyA8PSBiNjRfbGVuAHNvZGl1bS9jb2RlY3MuYwBzb2RpdW1fYmluMmJhc2U2NAAxLjAuMTg=";function ce(){try{if(E)return new Uint8Array(E);var e=pe(se);if(e)return e;if(m)return m(se);throw"both async and sync fetching of the wasm failed"}catch(e){te(e)}}re(se)||(ie=se,se=c.locateFile?c.locateFile(ie,w):w+ie),c.asm=function(){var e={env:ge,wasi_unstable:ge,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:k};function t(e,t){var n=e.exports;c.asm=n,function(e){if(X--,c.monitorRunDependencies&&c.monitorRunDependencies(X),0==X&&(null!==Z&&(clearInterval(Z),Z=null),ee)){var t=ee;ee=null,t()}}()}function n(e){t(e.instance)}function r(t){return(E||!d&&!g||"function"!=typeof fetch?new Promise((function(e,t){e(ce())})):fetch(se,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+se+"'";return e.arrayBuffer()})).catch((function(){return ce()}))).then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){B("failed to asynchronously prepare wasm: "+e),te(e)}))}if(X++,c.monitorRunDependencies&&c.monitorRunDependencies(X),c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(e){return B("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(E||"function"!=typeof WebAssembly.instantiateStreaming||re(se)||"function"!=typeof fetch)return r(n);fetch(se,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){B("wasm streaming compile failed: "+e),B("falling back to ArrayBuffer instantiation"),r(n)}))}))}(),{}};var ue=[function(){return c.getRandomValue()},function(){if(void 0===c.getRandomValue)try{var e="object"==("undefined"==typeof window?"undefined":u(window))?window:self,t=void 0!==e.crypto?e.crypto:e.msCrypto,r=function(){var e=new Uint32Array(1);return t.getRandomValues(e),e[0]>>>0};r(),c.getRandomValue=r}catch(e){try{var i=n(46),a=function(){var e=i.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a(),c.getRandomValue=a}catch(e){throw"No secure random number generator found"}}}];function le(){return P.length}var fe=!1;function Ae(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r>255&&(fe&&x(!1,"Character code "+r+" ("+String.fromCharCode(r)+") at offset "+n+" not in 0x00-0xFF."),r&=255),t.push(String.fromCharCode(r))}return t.join("")}var he="function"==typeof atob?atob:function(e){var t,n,r,i,a,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=s.indexOf(e.charAt(u++))<<2|(i=s.indexOf(e.charAt(u++)))>>4,n=(15&i)<<4|(a=s.indexOf(e.charAt(u++)))>>2,r=(3&a)<<6|(o=s.indexOf(e.charAt(u++))),c+=String.fromCharCode(t),64!==a&&(c+=String.fromCharCode(n)),64!==o&&(c+=String.fromCharCode(r))}while(u<e.length);return c};function pe(e){if(re(e))return function(e){if("boolean"==typeof y&&y){var t;try{t=o.from(e,"base64")}catch(n){t=new o(e,"base64")}return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}try{for(var n=he(e),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}catch(e){throw new Error("Converting base64 string to bytes failed.")}}(e.slice(ne.length))}var de,ge={c:function(e,t,n,r){te("Assertion failed: "+j(e)+", at: "+[t?j(t):"unknown filename",n,r?j(r):"unknown function"])},__memory_base:1024,__table_base:0,a:function(){te()},b:function(e){return ue[e]()},g:le,f:function(e,t,n){M.set(M.subarray(t,t+n),e)},e:function(e){var t=le();if(e>2147418112)return!1;for(var n=Math.max(t,16777216);n<e;)n=n<=536870912?N(2*n,65536):Math.min(N((3*n+2147483648)/4,65536),2147418112);return!!function(e){try{return _.grow(e-D.byteLength+65535>>16),U(_.buffer),1}catch(e){}}(n)},d:function(e){switch(e){case 30:return 16384;case 85:return 131068;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==("undefined"==typeof navigator?"undefined":u(navigator))&&navigator.hardwareConcurrency||1}return c.___errno_location&&(O[c.___errno_location()>>2]=28),-1},memory:_,table:Q},ye=c.asm({},ge,D);function ve(e){function t(){de||(de=!0,S||(K($),K(Y),c.onRuntimeInitialized&&c.onRuntimeInitialized(),function(){if(c.postRun)for("function"==typeof c.postRun&&(c.postRun=[c.postRun]);c.postRun.length;)e=c.postRun.shift(),J.unshift(e);var e;K(J)}()))}e=e||p,X>0||(function(){if(c.preRun)for("function"==typeof c.preRun&&(c.preRun=[c.preRun]);c.preRun.length;)e=c.preRun.shift(),G.unshift(e);var e;K(G)}(),X>0||(c.setStatus?(c.setStatus("Running..."),setTimeout((function(){setTimeout((function(){c.setStatus("")}),1),t()}),1)):t()))}if(c.asm=ye,c.___errno_location=function(){return c.asm.h.apply(null,arguments)},c._crypto_aead_chacha20poly1305_abytes=function(){return c.asm.i.apply(null,arguments)},c._crypto_aead_chacha20poly1305_decrypt=function(){return c.asm.j.apply(null,arguments)},c._crypto_aead_chacha20poly1305_decrypt_detached=function(){return c.asm.k.apply(null,arguments)},c._crypto_aead_chacha20poly1305_encrypt=function(){return c.asm.l.apply(null,arguments)},c._crypto_aead_chacha20poly1305_encrypt_detached=function(){return c.asm.m.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_abytes=function(){return c.asm.n.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_decrypt=function(){return c.asm.o.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_decrypt_detached=function(){return c.asm.p.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_encrypt=function(){return c.asm.q.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_encrypt_detached=function(){return c.asm.r.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_keybytes=function(){return c.asm.s.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_keygen=function(){return c.asm.t.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_messagebytes_max=function(){return c.asm.u.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_npubbytes=function(){return c.asm.v.apply(null,arguments)},c._crypto_aead_chacha20poly1305_ietf_nsecbytes=function(){return c.asm.w.apply(null,arguments)},c._crypto_aead_chacha20poly1305_keybytes=function(){return c.asm.x.apply(null,arguments)},c._crypto_aead_chacha20poly1305_keygen=function(){return c.asm.y.apply(null,arguments)},c._crypto_aead_chacha20poly1305_messagebytes_max=function(){return c.asm.z.apply(null,arguments)},c._crypto_aead_chacha20poly1305_npubbytes=function(){return c.asm.A.apply(null,arguments)},c._crypto_aead_chacha20poly1305_nsecbytes=function(){return c.asm.B.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_abytes=function(){return c.asm.C.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_decrypt=function(){return c.asm.D.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=function(){return c.asm.E.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_encrypt=function(){return c.asm.F.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=function(){return c.asm.G.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_keybytes=function(){return c.asm.H.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_keygen=function(){return c.asm.I.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=function(){return c.asm.J.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_npubbytes=function(){return c.asm.K.apply(null,arguments)},c._crypto_aead_xchacha20poly1305_ietf_nsecbytes=function(){return c.asm.L.apply(null,arguments)},c._crypto_auth=function(){return c.asm.M.apply(null,arguments)},c._crypto_auth_bytes=function(){return c.asm.N.apply(null,arguments)},c._crypto_auth_keybytes=function(){return c.asm.O.apply(null,arguments)},c._crypto_auth_keygen=function(){return c.asm.P.apply(null,arguments)},c._crypto_auth_verify=function(){return c.asm.Q.apply(null,arguments)},c._crypto_box_beforenm=function(){return c.asm.R.apply(null,arguments)},c._crypto_box_beforenmbytes=function(){return c.asm.S.apply(null,arguments)},c._crypto_box_detached=function(){return c.asm.T.apply(null,arguments)},c._crypto_box_detached_afternm=function(){return c.asm.U.apply(null,arguments)},c._crypto_box_easy=function(){return c.asm.V.apply(null,arguments)},c._crypto_box_easy_afternm=function(){return c.asm.W.apply(null,arguments)},c._crypto_box_keypair=function(){return c.asm.X.apply(null,arguments)},c._crypto_box_macbytes=function(){return c.asm.Y.apply(null,arguments)},c._crypto_box_messagebytes_max=function(){return c.asm.Z.apply(null,arguments)},c._crypto_box_noncebytes=function(){return c.asm._.apply(null,arguments)},c._crypto_box_open_detached=function(){return c.asm.$.apply(null,arguments)},c._crypto_box_open_detached_afternm=function(){return c.asm.aa.apply(null,arguments)},c._crypto_box_open_easy=function(){return c.asm.ba.apply(null,arguments)},c._crypto_box_open_easy_afternm=function(){return c.asm.ca.apply(null,arguments)},c._crypto_box_publickeybytes=function(){return c.asm.da.apply(null,arguments)},c._crypto_box_seal=function(){return c.asm.ea.apply(null,arguments)},c._crypto_box_seal_open=function(){return c.asm.fa.apply(null,arguments)},c._crypto_box_sealbytes=function(){return c.asm.ga.apply(null,arguments)},c._crypto_box_secretkeybytes=function(){return c.asm.ha.apply(null,arguments)},c._crypto_box_seed_keypair=function(){return c.asm.ia.apply(null,arguments)},c._crypto_box_seedbytes=function(){return c.asm.ja.apply(null,arguments)},c._crypto_generichash=function(){return c.asm.ka.apply(null,arguments)},c._crypto_generichash_bytes=function(){return c.asm.la.apply(null,arguments)},c._crypto_generichash_bytes_max=function(){return c.asm.ma.apply(null,arguments)},c._crypto_generichash_bytes_min=function(){return c.asm.na.apply(null,arguments)},c._crypto_generichash_final=function(){return c.asm.oa.apply(null,arguments)},c._crypto_generichash_init=function(){return c.asm.pa.apply(null,arguments)},c._crypto_generichash_keybytes=function(){return c.asm.qa.apply(null,arguments)},c._crypto_generichash_keybytes_max=function(){return c.asm.ra.apply(null,arguments)},c._crypto_generichash_keybytes_min=function(){return c.asm.sa.apply(null,arguments)},c._crypto_generichash_keygen=function(){return c.asm.ta.apply(null,arguments)},c._crypto_generichash_statebytes=function(){return c.asm.ua.apply(null,arguments)},c._crypto_generichash_update=function(){return c.asm.va.apply(null,arguments)},c._crypto_hash=function(){return c.asm.wa.apply(null,arguments)},c._crypto_hash_bytes=function(){return c.asm.xa.apply(null,arguments)},c._crypto_kdf_bytes_max=function(){return c.asm.ya.apply(null,arguments)},c._crypto_kdf_bytes_min=function(){return c.asm.za.apply(null,arguments)},c._crypto_kdf_contextbytes=function(){return c.asm.Aa.apply(null,arguments)},c._crypto_kdf_derive_from_key=function(){return c.asm.Ba.apply(null,arguments)},c._crypto_kdf_keybytes=function(){return c.asm.Ca.apply(null,arguments)},c._crypto_kdf_keygen=function(){return c.asm.Da.apply(null,arguments)},c._crypto_kx_client_session_keys=function(){return c.asm.Ea.apply(null,arguments)},c._crypto_kx_keypair=function(){return c.asm.Fa.apply(null,arguments)},c._crypto_kx_publickeybytes=function(){return c.asm.Ga.apply(null,arguments)},c._crypto_kx_secretkeybytes=function(){return c.asm.Ha.apply(null,arguments)},c._crypto_kx_seed_keypair=function(){return c.asm.Ia.apply(null,arguments)},c._crypto_kx_seedbytes=function(){return c.asm.Ja.apply(null,arguments)},c._crypto_kx_server_session_keys=function(){return c.asm.Ka.apply(null,arguments)},c._crypto_kx_sessionkeybytes=function(){return c.asm.La.apply(null,arguments)},c._crypto_pwhash=function(){return c.asm.Ma.apply(null,arguments)},c._crypto_pwhash_alg_argon2i13=function(){return c.asm.Na.apply(null,arguments)},c._crypto_pwhash_alg_argon2id13=function(){return c.asm.Oa.apply(null,arguments)},c._crypto_pwhash_alg_default=function(){return c.asm.Pa.apply(null,arguments)},c._crypto_pwhash_bytes_max=function(){return c.asm.Qa.apply(null,arguments)},c._crypto_pwhash_bytes_min=function(){return c.asm.Ra.apply(null,arguments)},c._crypto_pwhash_memlimit_interactive=function(){return c.asm.Sa.apply(null,arguments)},c._crypto_pwhash_memlimit_max=function(){return c.asm.Ta.apply(null,arguments)},c._crypto_pwhash_memlimit_min=function(){return c.asm.Ua.apply(null,arguments)},c._crypto_pwhash_memlimit_moderate=function(){return c.asm.Va.apply(null,arguments)},c._crypto_pwhash_memlimit_sensitive=function(){return c.asm.Wa.apply(null,arguments)},c._crypto_pwhash_opslimit_interactive=function(){return c.asm.Xa.apply(null,arguments)},c._crypto_pwhash_opslimit_max=function(){return c.asm.Ya.apply(null,arguments)},c._crypto_pwhash_opslimit_min=function(){return c.asm.Za.apply(null,arguments)},c._crypto_pwhash_opslimit_moderate=function(){return c.asm._a.apply(null,arguments)},c._crypto_pwhash_opslimit_sensitive=function(){return c.asm.$a.apply(null,arguments)},c._crypto_pwhash_passwd_max=function(){return c.asm.ab.apply(null,arguments)},c._crypto_pwhash_passwd_min=function(){return c.asm.bb.apply(null,arguments)},c._crypto_pwhash_saltbytes=function(){return c.asm.cb.apply(null,arguments)},c._crypto_pwhash_str=function(){return c.asm.db.apply(null,arguments)},c._crypto_pwhash_str_alg=function(){return c.asm.eb.apply(null,arguments)},c._crypto_pwhash_str_needs_rehash=function(){return c.asm.fb.apply(null,arguments)},c._crypto_pwhash_str_verify=function(){return c.asm.gb.apply(null,arguments)},c._crypto_pwhash_strbytes=function(){return c.asm.hb.apply(null,arguments)},c._crypto_pwhash_strprefix=function(){return c.asm.ib.apply(null,arguments)},c._crypto_scalarmult=function(){return c.asm.jb.apply(null,arguments)},c._crypto_scalarmult_base=function(){return c.asm.kb.apply(null,arguments)},c._crypto_scalarmult_bytes=function(){return c.asm.lb.apply(null,arguments)},c._crypto_scalarmult_scalarbytes=function(){return c.asm.mb.apply(null,arguments)},c._crypto_secretbox_detached=function(){return c.asm.nb.apply(null,arguments)},c._crypto_secretbox_easy=function(){return c.asm.ob.apply(null,arguments)},c._crypto_secretbox_keybytes=function(){return c.asm.pb.apply(null,arguments)},c._crypto_secretbox_keygen=function(){return c.asm.qb.apply(null,arguments)},c._crypto_secretbox_macbytes=function(){return c.asm.rb.apply(null,arguments)},c._crypto_secretbox_messagebytes_max=function(){return c.asm.sb.apply(null,arguments)},c._crypto_secretbox_noncebytes=function(){return c.asm.tb.apply(null,arguments)},c._crypto_secretbox_open_detached=function(){return c.asm.ub.apply(null,arguments)},c._crypto_secretbox_open_easy=function(){return c.asm.vb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_abytes=function(){return c.asm.wb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_headerbytes=function(){return c.asm.xb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_init_pull=function(){return c.asm.yb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_init_push=function(){return c.asm.zb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_keybytes=function(){return c.asm.Ab.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_keygen=function(){return c.asm.Bb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_messagebytes_max=function(){return c.asm.Cb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_pull=function(){return c.asm.Db.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_push=function(){return c.asm.Eb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_rekey=function(){return c.asm.Fb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_statebytes=function(){return c.asm.Gb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_tag_final=function(){return c.asm.Hb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_tag_message=function(){return c.asm.Ib.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_tag_push=function(){return c.asm.Jb.apply(null,arguments)},c._crypto_secretstream_xchacha20poly1305_tag_rekey=function(){return c.asm.Kb.apply(null,arguments)},c._crypto_shorthash=function(){return c.asm.Lb.apply(null,arguments)},c._crypto_shorthash_bytes=function(){return c.asm.Mb.apply(null,arguments)},c._crypto_shorthash_keybytes=function(){return c.asm.Nb.apply(null,arguments)},c._crypto_shorthash_keygen=function(){return c.asm.Ob.apply(null,arguments)},c._crypto_sign=function(){return c.asm.Pb.apply(null,arguments)},c._crypto_sign_bytes=function(){return c.asm.Qb.apply(null,arguments)},c._crypto_sign_detached=function(){return c.asm.Rb.apply(null,arguments)},c._crypto_sign_ed25519_pk_to_curve25519=function(){return c.asm.Sb.apply(null,arguments)},c._crypto_sign_ed25519_sk_to_curve25519=function(){return c.asm.Tb.apply(null,arguments)},c._crypto_sign_final_create=function(){return c.asm.Ub.apply(null,arguments)},c._crypto_sign_final_verify=function(){return c.asm.Vb.apply(null,arguments)},c._crypto_sign_init=function(){return c.asm.Wb.apply(null,arguments)},c._crypto_sign_keypair=function(){return c.asm.Xb.apply(null,arguments)},c._crypto_sign_messagebytes_max=function(){return c.asm.Yb.apply(null,arguments)},c._crypto_sign_open=function(){return c.asm.Zb.apply(null,arguments)},c._crypto_sign_publickeybytes=function(){return c.asm._b.apply(null,arguments)},c._crypto_sign_secretkeybytes=function(){return c.asm.$b.apply(null,arguments)},c._crypto_sign_seed_keypair=function(){return c.asm.ac.apply(null,arguments)},c._crypto_sign_seedbytes=function(){return c.asm.bc.apply(null,arguments)},c._crypto_sign_statebytes=function(){return c.asm.cc.apply(null,arguments)},c._crypto_sign_update=function(){return c.asm.dc.apply(null,arguments)},c._crypto_sign_verify_detached=function(){return c.asm.ec.apply(null,arguments)},c._free=function(){return c.asm.fc.apply(null,arguments)},c._malloc=function(){return c.asm.gc.apply(null,arguments)},c._randombytes=function(){return c.asm.hc.apply(null,arguments)},c._randombytes_buf=function(){return c.asm.ic.apply(null,arguments)},c._randombytes_buf_deterministic=function(){return c.asm.jc.apply(null,arguments)},c._randombytes_close=function(){return c.asm.kc.apply(null,arguments)},c._randombytes_random=function(){return c.asm.lc.apply(null,arguments)},c._randombytes_seedbytes=function(){return c.asm.mc.apply(null,arguments)},c._randombytes_stir=function(){return c.asm.nc.apply(null,arguments)},c._randombytes_uniform=function(){return c.asm.oc.apply(null,arguments)},c._sodium_base642bin=function(){return c.asm.pc.apply(null,arguments)},c._sodium_base64_encoded_len=function(){return c.asm.qc.apply(null,arguments)},c._sodium_bin2base64=function(){return c.asm.rc.apply(null,arguments)},c._sodium_bin2hex=function(){return c.asm.sc.apply(null,arguments)},c._sodium_hex2bin=function(){return c.asm.tc.apply(null,arguments)},c._sodium_init=function(){return c.asm.uc.apply(null,arguments)},c._sodium_library_minimal=function(){return c.asm.vc.apply(null,arguments)},c._sodium_library_version_major=function(){return c.asm.wc.apply(null,arguments)},c._sodium_library_version_minor=function(){return c.asm.xc.apply(null,arguments)},c._sodium_pad=function(){return c.asm.yc.apply(null,arguments)},c._sodium_unpad=function(){return c.asm.zc.apply(null,arguments)},c._sodium_version_string=function(){return c.asm.Ac.apply(null,arguments)},c.asm=ye,c.setValue=function(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":P[e>>0]=t;break;case"i16":F[e>>1]=t;break;case"i32":O[e>>2]=t;break;case"i64":oe=[t>>>0,(ae=t,+V(ae)>=1?ae>0?(0|W(+q(ae/4294967296),4294967295))>>>0:~~+z((ae-+(~~ae>>>0))/4294967296)>>>0:0)],O[e>>2]=oe[0],O[e+4>>2]=oe[1];break;case"float":R[e>>2]=t;break;case"double":T[e>>3]=t;break;default:te("invalid type for setValue: "+n)}},c.getValue=function(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return P[e>>0];case"i16":return F[e>>1];case"i32":case"i64":return O[e>>2];case"float":return R[e>>2];case"double":return T[e>>3];default:te("invalid type for getValue: "+t)}return null},c.UTF8ToString=j,ee=function e(){de||ve(),de||(ee=e)},c.run=ve,c.preInit)for("function"==typeof c.preInit&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();ve()})).catch((function(){l.useBackupModule()})),"object"==(void 0===i?"undefined":u(i))&&"function"==typeof i.removeAllListeners&&(i.removeAllListeners("uncaughtException"),i.removeAllListeners("unhandledRejection")),s})?s.apply(t,[t]):s)||(e.exports=c)}).call(this,n(8),n(9),"/",n(3).Buffer)},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),o=r[0],s=r[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),l=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(l(e,o,o+16383>s?s:o+16383));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,A=n?-1:1,h=e[t+f];for(f+=A,a=h&(1<<-l)-1,h>>=-l,l+=s;l>0;a=256*a+e[t+f],f+=A,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=r;l>0;o=256*o+e[t+f],f+=A,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=u}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,f=l>>1,A=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,p=r?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+f>=1?A/c:A*Math.pow(2,1-f))*c>=2&&(o++,c/=2),o+f>=l?(s=0,o=l):o+f>=1?(s=(t*c-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+h]=255&o,h+=p,o/=256,u-=8);e[n+h-p]|=128*d}},function(e,t){},function(e,t,n){"use strict";var r=n(2).Buffer,i=n(90);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i=r.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=i,n=o,a.data.copy(t,n),o+=a.data.length,a=a.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(92),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(8))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,c=1,u={},l=!1,f=e.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(e);A=A&&A.setTimeout?A:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)},A.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[c]=i,r(c),c++},A.clearImmediate=h}function h(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(8),n(9))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(8))},function(e,t,n){"use strict";e.exports=a;var r=n(51),i=Object.create(n(16));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=n(1),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(30)},function(e,t,n){e.exports=n(12)},function(e,t,n){e.exports=n(29).Transform},function(e,t,n){e.exports=n(29).PassThrough},function(e,t,n){var r=n(1),i=n(14),a=n(2).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=n[f-3]^n[f-8]^n[f-14]^n[f-16];for(var A=0;A<80;++A){var h=~~(A/20),p=0|((t=r)<<5|t>>>27)+l(h,i,a,s)+c+n[A]+o[h];c=s,s=a,a=u(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(1),i=n(14),a=n(2).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,A=0;A<16;++A)n[A]=e.readInt32BE(4*A);for(;A<80;++A)n[A]=(t=n[A-3]^n[A-8]^n[A-14]^n[A-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),d=u(r)+f(p,i,a,s)+c+n[h]+o[p]|0;c=s,s=a,a=l(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(1),i=n(52),a=n(14),o=n(2).Buffer,s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,n){var r=n(1),i=n(53),a=n(14),o=n(2).Buffer,s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,n){"use strict";var r=n(1),i=n(2).Buffer,a=n(11),o=i.alloc(128);function s(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,o],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,a),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=s},function(e,t,n){e.exports=n(56)},function(e,t,n){(function(t,r){var i,a=n(58),o=n(59),s=n(60),c=n(2).Buffer,u=t.crypto&&t.crypto.subtle,l={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"},f=[];function A(e,t,n,r,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return c.from(e)}))}e.exports=function(e,n,h,p,d,g){"function"==typeof d&&(g=d,d=void 0);var y=l[(d=d||"sha1").toLowerCase()];if(!y||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=s(e,n,h,p,d)}catch(e){return g(e)}g(null,t)}));if(a(e,n,h,p),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");c.isBuffer(e)||(e=c.from(e,o)),c.isBuffer(n)||(n=c.from(n,o)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var n=A(i=i||c.alloc(8),i,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=n,n}(y).then((function(t){return t?A(e,n,h,p,y):s(e,n,h,p,d)})),g)}}).call(this,n(8),n(9))},function(e,t,n){var r=n(107),i=n(35),a=n(36),o=n(120),s=n(23);function c(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function u(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return u(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},function(e,t,n){var r=n(11),i=n(108),a=n(1),o=n(2).Buffer,s={"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 c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var c=e.iv;o.isBuffer(c)||(c=o.from(c)),this._des=i.create({key:a,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=c,a(c,r),c.prototype._update=function(e){return o.from(this._des.update(e))},c.prototype._final=function(){return o.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(61),t.Cipher=n(34),t.DES=n(62),t.CBC=n(109),t.EDE=n(110)},function(e,t,n){"use strict";var r=n(6),i=n(1),a={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];for(a._update.call(this,o,0,n,r),s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{for(a._update.call(this,e,t,n,r),s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},function(e,t,n){"use strict";var r=n(6),i=n(1),a=n(34),o=n(62);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function c(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,a),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},function(e,t,n){var r=n(36),i=n(66),a=n(2).Buffer,o=n(67),s=n(11),c=n(22),u=n(23);function l(e,t,n){s.call(this),this._cache=new A,this._cipher=new c.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}n(1)(l,s),l.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var f=a.alloc(16,16);function A(){this.cache=a.allocUnsafe(0)}function h(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new l(s.module,t,n)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},A.prototype.add=function(e){this.cache=a.concat([this.cache,e])},A.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},A.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=u(t,!1,n.key,n.iv);return h(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,n){var r=n(17);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},function(e,t,n){var r=n(2).Buffer,i=n(17);function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},function(e,t,n){var r=n(2).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},function(e,t,n){var r=n(2).Buffer;function i(e,t,n){for(var r,i,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return s}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},function(e,t,n){(function(e){var r=n(17);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,i(t)]);var a=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,a)}}).call(this,n(3).Buffer)},function(e,t,n){var r=n(2).Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=o},function(e,t,n){var r=n(66),i=n(2).Buffer,a=n(36),o=n(67),s=n(11),c=n(22),u=n(23);function l(e,t,n){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function A(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new l(s.module,t,n)}n(1)(l,s),l.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=u(t,!1,n.key,n.iv);return A(e,r.key,r.iv)},t.createDecipheriv=A},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(68),i=n(124),a=n(125),o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new a(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,i,s,c){return e.isBuffer(i)||void 0===o[i]?t(n,"binary",i,s):(i=i||"binary",c=c||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,c)),"number"==typeof n?new a(r(n,s),s,!0):(e.isBuffer(n)||(n=new e(n,i)),new a(n,s,!0)))}}).call(this,n(3).Buffer)},function(e,t){},function(e,t){},function(e){e.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(e,t,n){(function(t){var r=n(4),i=new(n(69)),a=new r(24),o=new r(11),s=new r(10),c=new r(3),u=new r(7),l=n(68),f=n(13);function A(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=d;var p={};function d(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=A,this.setPrivateKey=h):this._primeCode=8}function g(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(d.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var f,A=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!i.test(e))return A+=1,A+="02"===n||"05"===n?8:4,p[r]=A,A;switch(i.test(e.shrn(1))||(A+=2),n){case"02":e.mod(a).cmp(o)&&(A+=8);break;case"05":(f=e.mod(s)).cmp(c)&&f.cmp(u)&&(A+=8);break;default:A+=4}return p[r]=A,A}(this.__prime,this.__gen)),this._primeCode}}),d.prototype.generateKeys=function(){return this._priv||(this._priv=new r(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},d.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(n.toArray()),a=this.getPrime();if(i.length<a.length){var o=new t(a.length-i.length);o.fill(0),i=t.concat([o,i])}return i},d.prototype.getPublicKey=function(e){return g(this._pub,e)},d.prototype.getPrivateKey=function(e){return g(this._priv,e)},d.prototype.getPrime=function(e){return g(this.__prime,e)},d.prototype.getGenerator=function(e){return g(this._gen,e)},d.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new r(e),this}}).call(this,n(3).Buffer)},function(e,t,n){(function(t){var r=n(15),i=n(27),a=n(1),o=n(127),s=n(159),c=n(56);function u(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function A(e){return new l(e)}Object.keys(c).forEach((function(e){c[e].id=new t(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),a(u,i.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=o(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(l,i.Writable),l.prototype._write=function(e,t,n){this._hash.update(e),n()},l.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},l.prototype.verify=function(e,n,r){"string"==typeof n&&(n=new t(n,r)),this.end();var i=this._hash.digest();return s(n,i,e,this._signType,this._tag)},e.exports={Sign:f,Verify:A,createSign:f,createVerify:A}}).call(this,n(3).Buffer)},function(e,t,n){(function(t){var r=n(54),i=n(38),a=n(39).ec,o=n(4),s=n(25),c=n(79);function u(e,n,i,a){if((e=new t(e.toArray())).length<n.byteLength()){var o=new t(n.byteLength()-e.length);o.fill(0),e=t.concat([o,e])}var s=i.length,c=function(e,n){e=(e=l(e,n)).mod(n);var r=new t(e.toArray());if(r.length<n.byteLength()){var i=new t(n.byteLength()-r.length);i.fill(0),r=t.concat([i,r])}return r}(i,n),u=new t(s);u.fill(1);var f=new t(s);return f.fill(0),f=r(a,f).update(u).update(new t([0])).update(e).update(c).digest(),u=r(a,f).update(u).digest(),{k:f=r(a,f).update(u).update(new t([1])).update(e).update(c).digest(),v:u=r(a,f).update(u).digest()}}function l(e,t){var n=new o(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function f(e,n,i){var a,o;do{for(a=new t(0);8*a.length<e.bitLength();)n.v=r(i,n.k).update(n.v).digest(),a=t.concat([a,n.v]);o=l(a,e),n.k=r(i,n.k).update(n.v).update(new t([0])).digest(),n.v=r(i,n.k).update(n.v).digest()}while(-1!==o.cmp(e));return o}function A(e,t,n,r){return e.toRed(o.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,n,r,h,p){var d=s(n);if(d.curve){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong private key type");return function(e,n){var r=c[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var i=new a(r).keyFromPrivate(n.privateKey).sign(e);return new t(i.toDER())}(e,d)}if("dsa"===d.type){if("dsa"!==h)throw new Error("wrong private key type");return function(e,n,r){for(var i,a=n.params.priv_key,s=n.params.p,c=n.params.q,h=n.params.g,p=new o(0),d=l(e,c).mod(c),g=!1,y=u(a,c,e,r);!1===g;)p=A(h,i=f(c,y,r),s,c),0===(g=i.invm(c).imul(d.add(a.mul(p))).mod(c)).cmpn(0)&&(g=!1,p=new o(0));return function(e,n){e=e.toArray(),n=n.toArray(),128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n));var r=[48,e.length+n.length+4,2,e.length];return r=r.concat(e,[2,n.length],n),new t(r)}(p,g)}(e,d,r)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong private key type");e=t.concat([p,e]);for(var g=d.modulus.byteLength(),y=[0,1];e.length+y.length+1<g;)y.push(255);y.push(0);for(var v=-1;++v<e.length;)y.push(e[v]);return i(y,d)},e.exports.getKey=u,e.exports.makeKey=f}).call(this,n(3).Buffer)},function(e){e.exports=JSON.parse('{"_args":[["elliptic@6.5.2","/Users/mo/Desktop/sn/dev/snjs"]],"_from":"elliptic@6.5.2","_id":"elliptic@6.5.2","_inBundle":false,"_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_location":"/sncrypto/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.2","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.2","saveSpec":null,"fetchSpec":"6.5.2"},"_requiredBy":["/sncrypto/browserify-sign","/sncrypto/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_spec":"6.5.2","_where":"/Users/mo/Desktop/sn/dev/snjs","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.2"}')},function(e,t,n){"use strict";var r=n(7),i=n(4),a=n(1),o=n(24),s=r.assert;function c(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.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(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(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 l(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,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}a(c,o),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,c,u,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=e,h=this.n.clone(),p=new i(1),d=new i(0),g=new i(0),y=new i(1),v=0;0!==A.cmpn(0);){var m=h.div(A);u=h.sub(m.mul(A)),l=g.sub(m.mul(p));var b=y.sub(m.mul(d));if(!r&&u.cmp(f)<0)t=c.neg(),n=p,r=u.neg(),a=l;else if(r&&2==++v)break;c=u,h=A,A=u,g=p,p=l,y=d,d=b}o=u.neg(),s=l;var I=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(I)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),c=i.mul(n.b),u=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*a]=s,r[2*a+1]=c,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var u=this._wnafMulAdd(1,r,i,2*a,n),l=0;l<2*a;l++)r[l]=null,i[l]=null;return u},a(u,o.BasePoint),c.prototype.point=function(e,t,n){return new u(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},u.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]},u.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},u.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)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},u.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(l,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new l(this,e,t,n)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),f=r.redMul(u),A=c.redSqr().redIAdd(l).redISub(f).redISub(f),h=c.redMul(f.redISub(A)).redISub(a.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(A,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),l=n.redMul(c),f=s.redSqr().redIAdd(u).redISub(l).redISub(l),A=s.redMul(l.redISub(f)).redISub(i.redMul(u)),h=this.z.redMul(o);return this.curve.jpoint(f,A,h)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),u=o.redAdd(o);for(n=0;n<e;n++){var l=a.redSqr(),f=u.redSqr(),A=f.redSqr(),h=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(c)),p=a.redMul(f),d=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(d),y=h.redMul(g);y=y.redIAdd(y).redISub(A);var v=u.redMul(s);n+1<e&&(c=c.redMul(A)),a=d,s=v,u=y}return this.curve.jpoint(a,u.redMul(i),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=s.redMul(o.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),A=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(l).redISub(A);h=h.redIAdd(h);var p=l.redAdd(l).redIAdd(l),d=p.redSqr(),g=A.redIAdd(A);g=(g=g.redIAdd(g)).redIAdd(g),e=d.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},l.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);e=c;var u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(o.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),A=this.x.redMul(f),h=this.x.redSub(l).redMul(this.x.redAdd(l));h=h.redAdd(h).redIAdd(h);var p=A.redIAdd(A),d=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(d),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(o),l=s.redSqr().redISub(u.redAdd(u)),f=u.redISub(l),A=o.redSqr();A=(A=(A=A.redIAdd(A)).redIAdd(A)).redIAdd(A);var h=s.redMul(f).redISub(A),p=n.redAdd(n).redMul(r);return this.curve.jpoint(l,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),l=t.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var A=this.y.redMul(u.redMul(c.redISub(u)).redISub(o.redMul(s)));A=(A=(A=A.redIAdd(A)).redIAdd(A)).redIAdd(A);var h=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,A,h)},l.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},l.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},l.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)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(4),i=n(1),a=n(24),o=n(7);function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.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)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(7),i=n(4),a=n(1),o=n(24),s=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,n,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(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(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,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()))))}a(c,o),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(u,o.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new u(this,e,t,n,r)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),c=i.redMul(o),u=a.redMul(s),l=i.redMul(s),f=o.redMul(a);return this.curve.point(c,u,f,l)},u.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(u=this.curve._mulA(i)).redAdd(a);if(this.zOne)e=r.redSub(i).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(u.redSub(a)),n=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),c=o.redSub(s).redISub(s);e=r.redSub(i).redISub(a).redMul(c),t=o.redMul(u.redSub(a)),n=o.redMul(c)}}else{var u=i.redAdd(a);s=this.curve._mulC(this.z).redSqr(),c=u.redSub(s).redSub(s),e=this.curve._mulC(r.redISub(u)).redMul(c),t=this.curve._mulC(u).redMul(i.redISub(a)),n=u.redMul(c)}return this.curve.point(e,t,n)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),u=a.redMul(o),l=s.redMul(c),f=a.redMul(c),A=o.redMul(s);return this.curve.point(u,l,A,f)},u.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),f=r.redMul(c).redMul(l);return this.curve.twisted?(t=r.redMul(u).redMul(o.redSub(this.curve._mulA(a))),n=c.redMul(u)):(t=r.redMul(u).redMul(o.redSub(a)),n=this.curve._mulC(c).redMul(u)),this.curve.point(f,t,n)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},u.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(e,t,n){"use strict";t.sha1=n(133),t.sha224=n(134),t.sha256=n(73),t.sha384=n(135),t.sha512=n(74)},function(e,t,n){"use strict";var r=n(10),i=n(18),a=n(72),o=r.rotl32,s=r.sum32,c=r.sum32_5,u=a.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(A,l),e.exports=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],l=this.h[2],A=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),d=c(o(i,5),u(p,a,l,A),h,n[r],f[p]);h=A,A=l,l=o(a,30),a=i,i=d}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],A),this.h[4]=s(this.h[4],h)},A.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(10),i=n(73);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(10),i=n(74);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(10),i=n(18),a=r.rotl32,o=r.sum32,s=r.sum32_3,c=r.sum32_4,u=i.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function A(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(l,u),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],u=this.h[3],l=this.h[4],v=n,m=r,b=i,I=u,w=l,C=0;C<80;C++){var B=o(a(c(n,f(C,r,i,u),e[p[C]+t],A(C)),g[C]),l);n=l,l=u,u=a(i,10),i=r,r=B,B=o(a(c(v,f(79-C,m,b,I),e[d[C]+t],h(C)),y[C]),w),v=w,w=I,I=a(b,10),b=m,m=B}B=s(this.h[1],i,I),this.h[1]=s(this.h[2],u,w),this.h[2]=s(this.h[3],l,v),this.h[3]=s(this.h[4],n,m),this.h[4]=s(this.h[0],r,b),this.h[0]=B},l.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.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],d=[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],g=[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(e,t,n){"use strict";var r=n(10),i=n(6);function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.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(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(4),a=n(140),o=n(7),s=n(40),c=n(37),u=o.assert,l=n(141),f=n(142);function A(e){if(!(this instanceof A))return new A(e);"string"==typeof e&&(u(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=A,A.prototype.keyPair=function(e){return new l(this,e)},A.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},A.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},A.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||c(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i(2));;){var o=new i(t.generate(n));if(!(o.cmp(r)>0))return o.iaddn(1),this.keyFromPrivate(o)}},A.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},A.prototype.sign=function(e,t,n,o){"object"===r(n)&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),c=t.getPrivate().toArray("be",s),u=e.toArray("be",s),l=new a({hash:this.hash,entropy:c,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),A=this.n.sub(new i(1)),h=0;;h++){var p=o.k?o.k(h):new i(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(A)>=0)){var d=this.g.mul(p);if(!d.isInfinity()){var g=d.getX(),y=g.umod(this.n);if(0!==y.cmpn(0)){var v=p.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==g.cmp(y)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),m^=1),new f({r:y,s:v,recoveryParam:m})}}}}}},A.prototype.verify=function(e,t,n,r){e=this._truncateToN(new i(e,16)),n=this.keyFromPublic(n,r);var a=(t=new f(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),u=c.mul(e).umod(this.n),l=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),l)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(u,n.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},A.prototype.recoverPubKey=function(e,t,n,r){u((3&n)===n,"The recovery param is more than two bits"),t=new f(t,r);var a=this.n,o=new i(e),s=t.r,c=t.s,l=1&n,A=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&A)throw new Error("Unable to find sencond key candinate");s=A?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var h=t.r.invm(a),p=a.sub(o).mul(h).umod(a),d=c.mul(h).umod(a);return this.g.mulAdd(p,s,d)},A.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new f(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(41),i=n(70),a=n(6);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);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(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},function(e,t,n){"use strict";var r=n(4),i=n(7).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(4),i=n(7),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o];return t.place=o,i}function u(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;if(c(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=c(e,n),o=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var u=c(e,n);if(e.length!==u+n.place)return!1;var l=e.slice(n.place,u+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===l[0]&&128&l[1]&&(l=l.slice(1)),this.r=new r(o),this.s=new r(l),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=u(t),n=u(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];l(r,t.length),(r=r.concat(t)).push(2),l(r,n.length);var a=r.concat(n),o=[48];return l(o,a.length),o=o.concat(a),i.encode(o,e)}},function(e,t,n){"use strict";var r=n(41),i=n(40),a=n(7),o=a.assert,s=a.parseBytes,c=n(144),u=n(145);function l(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},l.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return a.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(7),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(4),a=n(7),o=a.assert,s=a.cachedProperty,c=a.parseBytes;function u(e,t){this.eddsa=e,"object"!==r(t)&&(t=c(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},function(e,t,n){"use strict";var r=n(19);t.certificate=n(156);var i=r.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())}));t.RSAPrivateKey=i;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=o;var s=r.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())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var u=r.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())}));t.EncryptedPrivateKey=u;var l=r.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())}));t.DSAPrivateKey=l,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(A),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f;var A=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,n){var r=n(19),i=n(1);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=n(148).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),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(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(e),(function(t){n[t]=e[t]})),forEach(globals,(function(t){e[t]&&(n[t]=e[t])}));var a=Object_keys(n),o=r.call(n,this.code);return forEach(Object_keys(n),(function(t){(t in e||-1===indexOf(a,t))&&(e[t]=n[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,n[t])})),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return e&&forEach(Object_keys(t),(function(n){e[n]=t[n]})),n},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"===_typeof(e)&&forEach(Object_keys(e),(function(n){t[n]=e[n]})),t}},function(e,t,n){var r=n(1);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(20).Reporter,a=n(20).EncoderBuffer,o=n(20).DecoderBuffer,s=n(6),c=["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"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c);function l(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=l;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};f.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){var e=this._baseState;u.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==r(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),c.forEach((function(e){l.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(a=this._peekTag(e,c,n.any),e.isError(a))return a}else{var u=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(u)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var f=e.offset;if(null===n.use&&null===n.choice){n.any&&(u=e.save());var A=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(A))return A;n.any?i=e.raw(u):e=A}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),i=n.any?i:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){var o=e.save(),s=n.choice[a];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:a,value:c},i=!0}catch(t){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new a(e,this.reporter)},l.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},l.prototype._encodeValue=function(e,t,n){var a=this._baseState;if(null===a.parent)return a.children[0]._encode(e,t||new i);var o=null;if(this.reporter=t,a.optional&&void 0===e){if(null===a.default)return;e=a.default}var s=null,c=!1;if(a.any)o=this._createEncoderBuffer(e);else if(a.choice)o=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),c=!0;else if(a.children)s=a.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var i=t.enterKey(n._baseState.key);if("object"!==r(e))return t.error("Child expected, but input is not object");var a=n._encode(e[n._baseState.key],t,e);return t.leaveKey(i),a}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===a.tag||"setof"===a.tag){if(!a.args||1!==a.args.length)return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),u))}else null!==a.use?o=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),c=!0);if(!a.any&&null===a.choice){var l=null!==a.implicit?a.implicit:a.tag,f=null===a.implicit?"universal":"context";null===l?null===a.use&&t.error("Tag could be omitted only for .use()"):null===a.use&&(o=this._encodeComposite(l,c,f,s))}return null!==a.explicit&&(o=this._encodeComposite(a.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(76);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.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"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(77),r.pem=n(153)},function(e,t,n){var r=n(1),i=n(3).Buffer,a=n(77);function o(e){a.call(this,e),this.enc="pem"}r(o,a),e.exports=o,o.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u<n.length;u++){var l=n[u].match(o);if(null!==l&&l[2]===r){if(-1!==s){if("END"!==l[1])break;c=u;break}if("BEGIN"!==l[1])break;s=u}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);var f=n.slice(s+1,c).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var A=new i(f,"base64");return a.prototype.decode.call(this,A,t)}},function(e,t,n){var r=t;r.der=n(78),r.pem=n(155)},function(e,t,n){var r=n(1),i=n(78);function a(e){i.call(this,e),this.enc="pem"}r(a,i),e.exports=a,a.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],a=0;a<n.length;a+=64)r.push(n.slice(a,a+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},function(e,t,n){"use strict";var r=n(19),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),u=r.define("RDNSequence",(function(){this.seqof(c)})),l=r.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),A=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(A).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=p},function(e){e.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(e,t,n){var r=/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,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=n(23),s=n(35),c=n(2).Buffer;e.exports=function(e,t){var n,u=e.toString(),l=u.match(r);if(l){var f="aes"+l[1],A=c.from(l[2],"hex"),h=c.from(l[3].replace(/[\r\n]/g,""),"base64"),p=o(t,A.slice(0,8),parseInt(l[1],10)).key,d=[],g=s.createDecipheriv(f,p,A);d.push(g.update(h)),d.push(g.final()),n=c.concat(d)}else{var y=u.match(a);n=new c(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(i)[1],data:n}}},function(e,t,n){(function(t){var r=n(4),i=n(39).ec,a=n(25),o=n(79);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,n,c,u,l){var f=a(c);if("ec"===f.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=o[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new i(r),s=n.data.subjectPrivateKey.data;return a.verify(t,e,s)}(e,n,f)}if("dsa"===f.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var i=n.data.p,o=n.data.q,c=n.data.g,u=n.data.pub_key,l=a.signature.decode(e,"der"),f=l.s,A=l.r;s(f,o),s(A,o);var h=r.mont(i),p=f.invm(o);return 0===c.toRed(h).redPow(new r(t).mul(p).mod(o)).fromRed().mul(u.toRed(h).redPow(A.mul(p).mod(o)).fromRed()).mod(i).mod(o).cmp(A)}(e,n,f)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");n=t.concat([l,n]);for(var A=f.modulus.byteLength(),h=[1],p=0;n.length+h.length+2<A;)h.push(255),p++;h.push(0);for(var d=-1;++d<n.length;)h.push(n[d]);h=new t(h);var g=r.mont(f.modulus);e=(e=new r(e).toRed(g)).redPow(new r(f.publicExponent)),e=new t(e.fromRed().toArray());var y=p<8?1:0;for(A=Math.min(e.length,h.length),e.length!==h.length&&(y=1),d=-1;++d<A;)y|=e[d]^h[d];return 0===y}}).call(this,n(3).Buffer)},function(e,t,n){(function(t){var r=n(39),i=n(4);e.exports=function(e){return new o(e)};var a={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 o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,n,r){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(r&&i.length<r){var a=new t(r-i.length);a.fill(0),i=t.concat([a,i])}return n?i.toString(n):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(3).Buffer)},function(e,t,n){t.publicEncrypt=n(162),t.privateDecrypt=n(163),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){var r=n(25),i=n(13),a=n(15),o=n(80),s=n(81),c=n(4),u=n(82),l=n(38),f=n(2).Buffer;e.exports=function(e,t,n){var A;A=e.padding?e.padding:n?1:4;var h,p=r(e);if(4===A)h=function(e,t){var n=e.modulus.byteLength(),r=t.length,u=a("sha1").update(f.alloc(0)).digest(),l=u.length,A=2*l;if(r>n-A-2)throw new Error("message too long");var h=f.alloc(n-r-A-2),p=n-l-1,d=i(l),g=s(f.concat([u,h,f.alloc(1,1),t],p),o(d,p)),y=s(d,o(g,l));return new c(f.concat([f.alloc(1),y,g],n))}(p,t);else if(1===A)h=function(e,t,n){var r,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");return r=n?f.alloc(o-a-3,255):function(e){for(var t,n=f.allocUnsafe(e),r=0,a=i(2*e),o=0;r<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(n[r++]=t);return n}(o-a-3),new c(f.concat([f.from([0,n?1:2]),r,f.alloc(1),t],o))}(p,t,n);else{if(3!==A)throw new Error("unknown padding");if((h=new c(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?l(h,p):u(h,p)}},function(e,t,n){var r=n(25),i=n(80),a=n(81),o=n(4),s=n(38),c=n(15),u=n(82),l=n(2).Buffer;e.exports=function(e,t,n){var f;f=e.padding?e.padding:n?1:4;var A,h=r(e),p=h.modulus.byteLength();if(t.length>p||new o(t).cmp(h.modulus)>=0)throw new Error("decryption error");A=n?u(new o(t),h):s(t,h);var d=l.alloc(p-A.length);if(A=l.concat([d,A],p),4===f)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(l.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),u=t.slice(o+1),f=a(s,i(u,o)),A=a(u,i(f,n-o-1));if(function(e,t){e=l.from(e),t=l.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i<r;)n+=e[i]^t[i];return n}(r,A.slice(0,o)))throw new Error("decryption error");for(var h=o;0===A[h];)h++;if(1!==A[h++])throw new Error("decryption error");return A.slice(h)}(h,A);if(1===f)return function(e,t,n){for(var r=t.slice(0,2),i=2,a=0;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(i)}(0,A,n);if(3===f)return A;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=n(2),o=n(13),s=a.Buffer,c=a.kMaxLength,u=e.crypto||e.msCrypto,l=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function A(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function h(e,t,n,i){if(r.browser){var a=e.buffer,s=new Uint8Array(a,t,n);return u.getRandomValues(s),i?void r.nextTick((function(){i(null,e)})):e}if(!i)return o(n).copy(e,t),e;o(n,(function(n,r){if(n)return i(n);r.copy(e,t),i(null,e)}))}u&&u.getRandomValues||!r.browser?(t.randomFill=function(t,n,r,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)i=n,n=0,r=t.length;else if("function"==typeof r)i=r,r=t.length-n;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return f(n,t.length),A(r,n,t.length),h(t,n,r,i)},t.randomFillSync=function(t,n,r){if(void 0===n&&(n=0),!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(n,t.length),void 0===r&&(r=t.length-n),A(r,n,t.length),h(t,n,r)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,n(8),n(9))},function(e,t){e.exports=i,i.strict=a,i.loose=o;var n=Object.prototype.toString,r={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function i(e){return a(e)||o(e)}function a(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return r[n.call(e)]}},function(e,t,n){"use strict";n.r(t),n.d(t,"SNPureCrypto",(function(){return N})),n.d(t,"SNWebCrypto",(function(){return q})),n.d(t,"isWebCryptoAvailable",(function(){return s})),n.d(t,"Buffer",(function(){return h.Buffer})),n.d(t,"stringToArrayBuffer",(function(){return y})),n.d(t,"arrayBufferToString",(function(){return m})),n.d(t,"arrayBufferToHexString",(function(){return I})),n.d(t,"hexStringToArrayBuffer",(function(){return C})),n.d(t,"base64ToArrayBuffer",(function(){return E})),n.d(t,"arrayBufferToBase64",(function(){return k})),n.d(t,"hexToBase64",(function(){return S})),n.d(t,"base64ToHex",(function(){return D})),n.d(t,"base64Encode",(function(){return M})),n.d(t,"base64Decode",(function(){return O})),n.d(t,"toBuffer",(function(){return T}));var r={};n.r(r),n.d(r,"ready",(function(){return l.ready})),n.d(r,"crypto_pwhash",(function(){return l.crypto_pwhash})),n.d(r,"crypto_pwhash_ALG_DEFAULT",(function(){return l.crypto_pwhash_ALG_DEFAULT})),n.d(r,"crypto_aead_xchacha20poly1305_ietf_encrypt",(function(){return l.crypto_aead_xchacha20poly1305_ietf_encrypt})),n.d(r,"crypto_aead_xchacha20poly1305_ietf_decrypt",(function(){return l.crypto_aead_xchacha20poly1305_ietf_decrypt})),n.d(r,"to_base64",(function(){return l.to_base64})),n.d(r,"from_base64",(function(){return l.from_base64})),n.d(r,"base64_variants",(function(){return l.base64_variants})),n.d(r,"from_hex",(function(){return l.from_hex})),n.d(r,"to_hex",(function(){return l.to_hex})),n.d(r,"from_string",(function(){return l.from_string})),n.d(r,"to_string",(function(){return l.to_string}));var i=n(0),a=n.n(i);function o(){return window}function s(){return!("undefined"!=typeof document&&document.documentMode||/Edge/.test(navigator.userAgent))&&o().crypto&&!!o().crypto.subtle}function c(){var e=o(),t=e.crypto||e.msCrypto;if(t){var n=new Uint32Array(4);t.getRandomValues(n);var r=-1;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){r++;var t=n[r>>3]>>r%8*4&15;return("x"===e?t:3&t|8).toString(16)}))}var i=(new Date).getTime();return e.performance&&"function"==typeof e.performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"===e?t:3&t|8).toString(16)}))}var u,l=n(5),f=n(83),A=n.n(f),h=n(3);function p(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){p(a,r,i,o,s,"next",e)}function s(e){p(a,r,i,o,s,"throw",e)}o(void 0)}))}}function g(e){return"string"==typeof e||e instanceof String}function y(e){return v.apply(this,arguments)}function v(){return(v=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g(t)){e.next=2;break}throw Error("Attempting to convert non-string to arrayBuffer");case 2:return e.next=4,l.ready;case 4:return e.abrupt("return",Object(l.from_string)(t));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return b.apply(this,arguments)}function b(){return(b=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.to_string)(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return w.apply(this,arguments)}function w(){return(w=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.to_hex)(h.Buffer.from(t)));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return B.apply(this,arguments)}function B(){return(B=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.from_hex)(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return _.apply(this,arguments)}function _(){return(_=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.from_base64)(t,l.base64_variants.ORIGINAL));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return Q.apply(this,arguments)}function Q(){return(Q=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.to_base64)(h.Buffer.from(t),l.base64_variants.ORIGINAL));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return x.apply(this,arguments)}function x(){return(x=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.to_base64)(Object(l.from_hex)(t),l.base64_variants.ORIGINAL));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return P.apply(this,arguments)}function P(){return(P=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.to_hex)(Object(l.from_base64)(t,l.base64_variants.ORIGINAL)));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return F.apply(this,arguments)}function F(){return(F=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.to_base64)(t,l.base64_variants.ORIGINAL));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return R.apply(this,arguments)}function R(){return(R=d(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.ready;case 2:return e.abrupt("return",Object(l.to_string)(Object(l.from_base64)(t,l.base64_variants.ORIGINAL)));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e){return H.apply(this,arguments)}function H(){return(H=d(a.a.mark((function e(t){var n,r=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]?r[1]:u.Binary,!h.Buffer.isBuffer(t)){e.next=5;break}return e.abrupt("return",t);case 5:if(null!==t){e.next=9;break}return e.abrupt("return",null);case 9:if("string"!=typeof t){e.next=13;break}return e.abrupt("return",h.Buffer.from(t,n));case 13:if(!(t instanceof Uint8Array)){e.next=17;break}return e.abrupt("return",A()(t));case 17:throw new TypeError("Invalid type; string or buffer expected");case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}!function(e){e.Utf8="utf8",e.Base64="base64",e.Hex="hex",e.Binary="binary"}(u||(u={}));var N=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r,i;return t=e,(n=[{key:"deinit",value:function(){}},{key:"generateUUIDSync",value:function(){return c()}},{key:"generateUUID",value:(r=a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c());case 1:case"end":return e.stop()}}),e)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){j(a,n,i,o,s,"next",e)}function s(e){j(a,n,i,o,s,"throw",e)}o(void 0)}))},function(){return i.apply(this,arguments)})},{key:"timingSafeEqual",value:function(e,t){var n=String(e),r=String(t),i=n.length,a=0;i!==r.length&&(r=n,a=1);for(var o=0;o<i;o++)a|=n.charCodeAt(o)^r.charCodeAt(o);return 0===a}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),e}();function U(e){return(U="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}function L(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function K(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){L(a,r,i,o,s,"next",e)}function s(e){L(a,r,i,o,s,"throw",e)}o(void 0)}))}}function G(e,t,n){return(G="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var J,V,z=o().crypto?o().crypto.subtle:null;!function(e){e.AesCbc="AES-CBC",e.Sha512="SHA-512",e.Sha256="SHA-256",e.Pbkdf2="PBKDF2",e.Sha1="SHA-1",e.Hmac="HMAC"}(J||(J={})),function(e){e.DeriveBits="deriveBits",e.Encrypt="encrypt",e.Decrypt="decrypt",e.Sign="sign"}(V||(V={}));var q=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,$(t).call(this))).ready=l.ready,e}var n,i,s,c,f,A,h,p,d,g,v,b,w,B;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(t,e),n=t,(i=[{key:"deinit",value:function(){G($(t.prototype),"deinit",this).call(this),this.ready=null}},{key:"pbkdf2",value:(B=K(a.a.mark((function e(t,n,r,i){var o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(t);case 2:return o=e.sent,e.next=5,this.webCryptoImportKey(o,J.Pbkdf2,[V.DeriveBits]);case 5:if(s=e.sent){e.next=9;break}return console.error("Key is null, unable to continue"),e.abrupt("return",null);case 9:return e.abrupt("return",this.webCryptoDeriveBits(s,n,r,i));case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return B.apply(this,arguments)})},{key:"generateRandomKey",value:(w=K(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t/8,r=o().crypto.getRandomValues(new Uint8Array(n)),e.abrupt("return",I(r));case 3:case"end":return e.stop()}}),e)}))),function(e){return w.apply(this,arguments)})},{key:"aes256CbcEncrypt",value:(b=K(a.a.mark((function e(t,n,r){var i,o,s,c,u,l,f;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(r);case 2:return i=e.sent,e.next=5,C(n);case 5:return o=e.sent,s={name:J.AesCbc,iv:o},e.next=9,this.webCryptoImportKey(i,s.name,[V.Encrypt]);case 9:return c=e.sent,e.next=12,y(t);case 12:return u=e.sent,e.next=15,crypto.subtle.encrypt(s,c,u);case 15:return l=e.sent,e.next=18,k(l);case 18:return f=e.sent,e.abrupt("return",f);case 20:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return b.apply(this,arguments)})},{key:"aes256CbcDecrypt",value:(v=K(a.a.mark((function e(t,n,r){var i,o,s,c,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(r);case 2:return i=e.sent,e.next=5,C(n);case 5:return o=e.sent,s={name:J.AesCbc,iv:o},e.next=9,this.webCryptoImportKey(i,s.name,[V.Decrypt]);case 9:return c=e.sent,e.next=12,E(t);case 12:return u=e.sent,e.abrupt("return",crypto.subtle.decrypt(s,c,u).then(function(){var e=K(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",m(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return null})));case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return v.apply(this,arguments)})},{key:"hmac256",value:(g=K(a.a.mark((function e(t,n){var r,i,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(n);case 2:return r=e.sent,e.next=5,this.webCryptoImportKey(r,J.Hmac,[V.Sign],{name:J.Sha256});case 5:return i=e.sent,e.next=8,y(t);case 8:return o=e.sent,s={name:J.Hmac},e.abrupt("return",crypto.subtle.sign(s,i,o).then((function(e){return I(e)}),(function(e){return console.error("Error computing HMAC:",e),null})));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"sha256",value:(d=K(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(t);case 2:return n=e.sent,e.next=5,crypto.subtle.digest(J.Sha256,n);case 5:return r=e.sent,e.abrupt("return",I(r));case 7:case"end":return e.stop()}}),e)}))),function(e){return d.apply(this,arguments)})},{key:"unsafeSha1",value:(p=K(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(t);case 2:return n=e.sent,e.next=5,crypto.subtle.digest(J.Sha1,n);case 5:return r=e.sent,e.abrupt("return",I(r));case 7:case"end":return e.stop()}}),e)}))),function(e){return p.apply(this,arguments)})},{key:"webCryptoImportKey",value:(h=K(a.a.mark((function e(t,n,r,i){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",z.importKey("raw",t,{name:n,hash:i},!1,r).then((function(e){return e}),(function(e){return null})));case 1:case"end":return e.stop()}}),e)}))),function(e,t,n,r){return h.apply(this,arguments)})},{key:"webCryptoDeriveBits",value:(A=K(a.a.mark((function e(t,n,r,i){var o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=J.Pbkdf2,e.next=3,y(n);case 3:return e.t1=e.sent,e.t2=r,e.t3={name:J.Sha512},o={name:e.t0,salt:e.t1,iterations:e.t2,hash:e.t3},e.abrupt("return",z.deriveBits(o,t,i).then((function(e){return I(new Uint8Array(e))})));case 8:case"end":return e.stop()}}),e)}))),function(e,t,n,r){return A.apply(this,arguments)})},{key:"argon2",value:(f=K(a.a.mark((function e(t,n,i,o,s){var c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ready;case 2:return e.t0=r,e.t1=s,e.next=6,T(t,u.Binary);case 6:return e.t2=e.sent,e.next=9,T(n,u.Hex);case 9:return e.t3=e.sent,e.t4=i,e.t5=o,e.t6=l.crypto_pwhash_ALG_DEFAULT,c=e.t0.crypto_pwhash.call(e.t0,e.t1,e.t2,e.t3,e.t4,e.t5,e.t6,"hex"),e.abrupt("return",c);case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,i){return f.apply(this,arguments)})},{key:"xchacha20Encrypt",value:(c=K(a.a.mark((function e(t,n,i,o){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ready;case 2:if(48===n.length){e.next=4;break}throw"Nonce must be 24 bytes";case 4:return e.t0=r,e.next=7,T(t);case 7:return e.t1=e.sent,e.next=10,T(o);case 10:return e.t2=e.sent,e.next=13,T(n,u.Hex);case 13:return e.t3=e.sent,e.next=16,T(i,u.Hex);case 16:return e.t4=e.sent,e.abrupt("return",e.t0.crypto_aead_xchacha20poly1305_ietf_encrypt.call(e.t0,e.t1,e.t2,null,e.t3,e.t4,"base64"));case 18:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return c.apply(this,arguments)})},{key:"xchacha20Decrypt",value:(s=K(a.a.mark((function e(t,n,i,o){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ready;case 2:if(48===n.length){e.next=4;break}throw"Nonce must be 24 bytes";case 4:return e.prev=4,e.t0=r,e.next=8,T(t,u.Base64);case 8:return e.t1=e.sent,e.next=11,T(o);case 11:return e.t2=e.sent,e.next=14,T(n,u.Hex);case 14:return e.t3=e.sent,e.next=17,T(i,u.Hex);case 17:return e.t4=e.sent,e.abrupt("return",e.t0.crypto_aead_xchacha20poly1305_ietf_decrypt.call(e.t0,null,e.t1,e.t2,e.t3,e.t4,"text"));case 21:return e.prev=21,e.t5=e.catch(4),e.abrupt("return",null);case 24:case"end":return e.stop()}}),e,this,[[4,21]])}))),function(e,t,n,r){return s.apply(this,arguments)})}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,i),t}(N)}])},"object"==_typeof2(exports)&&"object"==_typeof2(module)?module.exports=e():(__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=e)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this,__webpack_require__(26)(module))},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(57),a="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,o=i||a||Function("return this")();e.exports=o},function(e,t,n){var r=n(158)(n(159));e.exports=r},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(40),i=n(153);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var a=-1,o=[],s=e.length;for(t=r(t,3);++a<s;){var c=e[a];t(c,a,e)&&(n.push(c),o.push(a))}return i(e,o),n}},function(e,t,n){var r=n(95),i=n(100);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==n(e)}},function(e,t,n){var r=n(77);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){var r=n(34),i=n(96),a=n(97),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(43),i=n(50);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(38);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(11),i=n(5),a=n(3),o=n(7),s=n(1),c=n(10);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(){function e(t,n,u){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"fields",void 0),l(this,"source",void 0),l(this,"uuid",void 0),l(this,"content_type",void 0),l(this,"content",void 0),l(this,"deleted",void 0),l(this,"items_key_id",void 0),l(this,"enc_item_key",void 0),l(this,"created_at",void 0),l(this,"updated_at",void 0),l(this,"dirtiedDate",void 0),l(this,"dirty",void 0),l(this,"errorDecrypting",void 0),l(this,"waitingForKey",void 0),l(this,"errorDecryptingValueChanged",void 0),l(this,"lastSyncBegan",void 0),l(this,"lastSyncEnd",void 0),l(this,"auth_hash",void 0),l(this,"auth_params",void 0),l(this,"format",void 0),l(this,"version",void 0),this.fields=n||Object.keys(t),this.source=u||a.a.Constructor,this.uuid=t.uuid,!this.uuid&&this.fields.includes(i.a.Uuid))throw Error("uuid is null, yet this payloads fields indicate it shouldnt be.");this.content_type=t.content_type,t.content&&(Object(s.q)(t.content)?this.content=Object(r.a)(t.content):this.content=t.content),this.deleted=t.deleted,this.items_key_id=t.items_key_id,this.enc_item_key=t.enc_item_key,this.created_at=new Date(t.created_at||new Date),this.updated_at=new Date(t.updated_at||new Date(0)),this.dirtiedDate=new Date(t.dirtiedDate),this.dirty=t.dirty,this.errorDecrypting=t.errorDecrypting,this.waitingForKey=t.waitingForKey,this.errorDecryptingValueChanged=t.errorDecryptingValueChanged,this.lastSyncBegan=t.lastSyncBegan?new Date(t.lastSyncBegan):void 0,this.lastSyncEnd=t.lastSyncEnd?new Date(t.lastSyncEnd):void 0,this.auth_hash=t.auth_hash,this.auth_params=t.auth_params,Object(s.r)(this.content)?this.content.startsWith(o.a.V000Base64Decrypted)?this.format=c.a.DecryptedBase64String:this.format=c.a.EncryptedString:Object(s.q)(this.content)?this.format=c.a.DecryptedBareObject:this.format=c.a.Deleted,Object(s.r)(this.content)?this.version=this.content.substring(0,o.a.VersionLength):this.content&&(this.version=this.content.version),Object(s.g)(this)}var t,n;return t=e,(n=[{key:"ejected",value:function(){var e=[i.a.Legacy003AuthHash,i.a.Deleted],t=[i.a.DirtiedDate,i.a.ErrorDecrypting,i.a.ErrorDecryptingChanged,i.a.WaitingForKey,i.a.LastSyncBegan,i.a.LastSyncEnd],n={},r=!0,a=!1,o=void 0;try{for(var c,u=this.fields[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){var l=c.value;if(!t.includes(l)){var f=this[l];Object(s.p)(f)&&e.includes(l)||(n[l]=f)}}}catch(e){a=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw o}}return n}},{key:"safeContent",get:function(){return this.format===c.a.DecryptedBareObject?this.content:{}}},{key:"references",get:function(){return this.safeReferences}},{key:"safeReferences",get:function(){return this.safeContent.references||[]}},{key:"contentObject",get:function(){if(this.format!==c.a.DecryptedBareObject)throw Error("Attempting to access non-object content as object");return this.content}},{key:"contentString",get:function(){if(this.format===c.a.DecryptedBareObject)throw Error("Attempting to access non-string content as string");return this.content}},{key:"discardable",get:function(){return this.deleted&&!this.dirty}}])&&u(t.prototype,n),e}()},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){var r=n(85),i=n(86),a=n(87),o=n(88),s=n(89);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(27);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(18).Symbol;e.exports=r},function(e,t,n){var r=n(22)(Object,"create");e.exports=r},function(e,t,n){var r=n(109);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=n(e);return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(25),a=n(23);e.exports=function(e){return"symbol"==r(e)||a(e)&&"[object Symbol]"==i(e)}},function(e,t,n){var r=n(70),i=n(76)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(83),a=n(139),o=n(55),s=n(16),c=n(150);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==r(e)?s(e)?a(e[0],e[1]):i(e):c(e)}},function(e,t,n){var r=n(32),i=n(90),a=n(91),o=n(92),s=n(93),c=n(94);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(22)(n(18),"Map");e.exports=r},function(e,t,n){var r=n(25),i=n(20);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(101),i=n(108),a=n(110),o=n(111),s=n(112);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(64),i=n(132),a=n(28);e.exports=function(e){return a(e)?r(e):i(e)}},function(e,t,n){var r=n(127),i=n(23),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(18),a=n(128),o="object"==r(t)&&t&&!t.nodeType&&t,s=o&&"object"==r(e)&&e&&!e.nodeType&&e,c=s&&s.exports===o?i.Buffer:void 0,u=(c?c.isBuffer:void 0)||a;e.exports=u}).call(this,n(26)(e))},function(e,t,n){var r=n(129),i=n(130),a=n(131),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(53),i=n(29);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(16),i=n(54),a=n(141),o=n(144);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(16),a=n(38),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(72);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(31))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(113),i=n(23);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},function(e,t,n){var r=n(61),i=n(116),a=n(62);e.exports=function(e,t,n,o,s,c){var u=1&n,l=e.length,f=t.length;if(l!=f&&!(u&&f>l))return!1;var A=c.get(e);if(A&&c.get(t))return A==t;var h=-1,p=!0,d=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var g=e[h],y=t[h];if(o)var v=u?o(y,g,h,t,e,c):o(g,y,h,e,t,c);if(void 0!==v){if(v)continue;p=!1;break}if(d){if(!i(t,(function(e,t){if(!a(d,t)&&(g===e||s(g,e,n,o,c)))return d.push(t)}))){p=!1;break}}else if(g!==y&&!s(g,y,n,o,c)){p=!1;break}}return c.delete(e),c.delete(t),p}},function(e,t,n){var r=n(44),i=n(114),a=n(115);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(18).Uint8Array;e.exports=r},function(e,t,n){var r=n(126),i=n(47),a=n(16),o=n(48),s=n(37),c=n(49),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&i(e),f=!n&&!l&&o(e),A=!n&&!l&&!f&&c(e),h=n||l||f||A,p=h?r(e.length,String):[],d=p.length;for(var g in e)!t&&!u.call(e,g)||h&&("length"==g||f&&("offset"==g||"parent"==g)||A&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,d))||p.push(g);return p}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(22)(n(18),"Set");e.exports=r},function(e,t,n){var r=n(20);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}},function(e,t,n){var r=n(41),i=n(71),a=n(163),o=n(165),s=n(20),c=n(75),u=n(74);e.exports=function e(t,n,l,f,A){t!==n&&a(n,(function(a,c){if(A||(A=new r),s(a))o(t,n,c,l,e,f,A);else{var h=f?f(u(t,c),a,c+"",t,n,A):void 0;void 0===h&&(h=a),i(t,c,h)}}),c)}},function(e,t,n){var r=n(56),i=n(27);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(22),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(65)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(64),i=n(177),a=n(28);e.exports=function(e){return a(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(179),i=n(186);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,o)}return t}))}},function(e,t,n){var r=n(61),i=n(187),a=n(191),o=n(62),s=n(192),c=n(45);e.exports=function(e,t,n){var u=-1,l=i,f=e.length,A=!0,h=[],p=h;if(n)A=!1,l=a;else if(f>=200){var d=t?null:s(e);if(d)return c(d);A=!1,l=o,p=new r}else p=t?[]:h;e:for(;++u<f;){var g=e[u],y=t?t(g):g;if(g=n||0!==g?g:0,A&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue e;t&&p.push(y),h.push(g)}else l(p,y,n)||(p!==h&&p.push(y),h.push(g))}return h}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(194),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(31))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(0),i=n.n(r),a=n(12),o=n(13);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){c(a,r,i,o,s,"next",e)}function s(e){c(a,r,i,o,s,"throw",e)}o(void 0)}))}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t,n){return(A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(t){function n(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=function(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?f(e):t}(this,h(n).call(this)),d(f(r),"application",void 0),d(f(r),"unsubApp",void 0),r.application=t,e((function(){r.addAppEventObserver()})),r}var r,a,c,g,y;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,t),r=n,(a=[{key:"deinit",value:function(){this.application=void 0,this.unsubApp(),this.unsubApp=void 0,A(h(n.prototype),"deinit",this).call(this)}},{key:"addAppEventObserver",value:function(){var e=this;this.application.isStarted()&&this.onAppStart(),this.application.isLaunched()&&this.onAppLaunch(),this.unsubApp=this.application.addEventObserver(function(){var t=u(i.a.mark((function t(n){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.onAppEvent(n),n!==o.a.Started){t.next=6;break}return t.next=4,e.onAppStart();case 4:t.next=12;break;case 6:if(n!==o.a.Launched){t.next=11;break}return t.next=9,e.onAppLaunch();case 9:t.next=12;break;case 11:n===o.a.CompletedFullSync?e.onAppFullSync():n===o.a.CompletedIncrementalSync?e.onAppIncrementalSync():n===o.a.KeyStatusChanged&&e.onAppKeyChange();case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"onAppEvent",value:function(e){}},{key:"onAppStart",value:(y=u(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return y.apply(this,arguments)})},{key:"onAppLaunch",value:(g=u(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return g.apply(this,arguments)})},{key:"onAppKeyChange",value:(c=u(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return c.apply(this,arguments)})},{key:"onAppIncrementalSync",value:function(){}},{key:"onAppFullSync",value:function(){}}])&&l(r.prototype,a),n}(a.a)}).call(this,n(78).setImmediate)},function(e,t,n){var r=n(70),i=n(76)((function(e,t,n,i){r(e,t,n,i)}));e.exports=i},function(e,t,n){var r=n(77);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=function(e){"use strict";var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function A(){}function h(){}var p={};p[a]=function(){return this};var d=Object.getPrototypeOf,g=d&&d(d(B([])));g&&g!==n&&r.call(g,a)&&(p=g);var y=h.prototype=f.prototype=Object.create(p);function v(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function m(e,n){var i;this._invoke=function(a,o){function s(){return new n((function(i,s){!function i(a,o,s,c){var l=u(e[a],e,o);if("throw"!==l.type){var f=l.arg,A=f.value;return A&&"object"===t(A)&&r.call(A,"__await")?n.resolve(A.__await).then((function(e){i("next",e,s,c)}),(function(e){i("throw",e,s,c)})):n.resolve(A).then((function(e){f.value=e,s(f)}),(function(e){return i("throw",e,s,c)}))}c(l.arg)}(a,o,i,s)}))}return i=i?i.then(s,s):s()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function B(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return A.prototype=y.constructor=h,h.constructor=A,h[s]=A.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},v(m.prototype),m.prototype[o]=function(){return this},e.AsyncIterator=m,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new m(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},v(y),y[s]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=B,C.prototype={constructor:C,reset:function(e){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(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){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 a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:B(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(26)(e))},function(e,t,n){var r=n(84),i=n(138),a=n(68);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(41),i=n(59);e.exports=function(e,t,n,a){var o=n.length,s=o,c=!a;if(null==e)return!s;for(e=Object(e);o--;){var u=n[o];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var l=(u=n[o])[0],f=e[l],A=u[1];if(c&&u[2]){if(void 0===f&&!(l in e))return!1}else{var h=new r;if(a)var p=a(f,A,l,e,t,h);if(!(void 0===p?i(A,f,3,a,h):p))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(33),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(33);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(33);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(33);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(32);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(32),i=n(42),a=n(44);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(43),i=n(98),a=n(20),o=n(58),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,A=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?A:s).test(o(e))}},function(e,t,n){var r=n(34),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(99),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(18)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(102),i=n(32),a=n(42);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(103),i=n(104),a=n(105),o=n(106),s=n(107);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(35);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(35),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(35),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(35);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(36);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){var t=n(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(36);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(36);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(36);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(41),i=n(60),a=n(117),o=n(119),s=n(134),c=n(16),u=n(48),l=n(49),f="[object Object]",A=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,p,d){var g=c(e),y=c(t),v=g?"[object Array]":s(e),m=y?"[object Array]":s(t),b=(v="[object Arguments]"==v?f:v)==f,I=(m="[object Arguments]"==m?f:m)==f,w=v==m;if(w&&u(e)){if(!u(t))return!1;g=!0,b=!1}if(w&&!b)return d||(d=new r),g||l(e)?i(e,t,n,h,p,d):a(e,t,v,n,h,p,d);if(!(1&n)){var C=b&&A.call(e,"__wrapped__"),B=I&&A.call(t,"__wrapped__");if(C||B){var E=C?e.value():e,_=B?t.value():t;return d||(d=new r),p(E,_,n,h,d)}}return!!w&&(d||(d=new r),o(e,t,n,h,p,d))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(34),i=n(63),a=n(27),o=n(60),s=n(118),c=n(45),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,A){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var d=A.get(e);if(d)return d==t;r|=2,A.set(e,t);var g=o(h(e),h(t),r,u,f,A);return A.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(120),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var f=l;f--;){var A=u[f];if(!(c?A in t:i.call(t,A)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var p=!0;s.set(e,t),s.set(t,e);for(var d=c;++f<l;){var g=e[A=u[f]],y=t[A];if(a)var v=c?a(y,g,A,t,e,s):a(g,y,A,e,t,s);if(!(void 0===v?g===y||o(g,y,n,a,s):v)){p=!1;break}d||(d="constructor"==A)}if(p&&!d){var m=e.constructor,b=t.constructor;m!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(p=!1)}return s.delete(e),s.delete(t),p}},function(e,t,n){var r=n(121),i=n(123),a=n(46);e.exports=function(e){return r(e,a,i)}},function(e,t,n){var r=n(122),i=n(16);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(124),i=n(125),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(25),i=n(23);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(25),i=n(50),a=n(23),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(57),a="object"==r(t)&&t&&!t.nodeType&&t,o=a&&"object"==r(e)&&e&&!e.nodeType&&e,s=o&&o.exports===a&&i.process,c=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=c}).call(this,n(26)(e))},function(e,t,n){var r=n(51),i=n(133),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(65)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(135),i=n(42),a=n(136),o=n(66),s=n(137),c=n(25),u=n(58),l=u(r),f=u(i),A=u(a),h=u(o),p=u(s),d=c;(r&&"[object DataView]"!=d(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=d(new i)||a&&"[object Promise]"!=d(a.resolve())||o&&"[object Set]"!=d(new o)||s&&"[object WeakMap]"!=d(new s))&&(d=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case A:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=d},function(e,t,n){var r=n(22)(n(18),"DataView");e.exports=r},function(e,t,n){var r=n(22)(n(18),"Promise");e.exports=r},function(e,t,n){var r=n(22)(n(18),"WeakMap");e.exports=r},function(e,t,n){var r=n(67),i=n(46);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},function(e,t,n){var r=n(59),i=n(140),a=n(147),o=n(54),s=n(67),c=n(68),u=n(29);e.exports=function(e,t){return o(e)&&s(t)?c(u(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},function(e,t,n){var r=n(52);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(142),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},function(e,t,n){var r=n(143);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(44);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(145);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(34),i=n(146),a=n(16),o=n(38),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(148),i=n(149);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(53),i=n(47),a=n(16),o=n(37),s=n(50),c=n(29);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,f=!1;++u<l;){var A=c(t[u]);if(!(f=null!=e&&n(e,A)))break;e=e[A]}return f||++u!=l?f:!!(l=null==e?0:e.length)&&s(l)&&o(A,l)&&(a(e)||i(e))}},function(e,t,n){var r=n(151),i=n(152),a=n(54),o=n(29);e.exports=function(e){return a(e)?r(o(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(52);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(154),i=n(37),a=Array.prototype.splice;e.exports=function(e,t){for(var n=e?t.length:0,o=n-1;n--;){var s=t[n];if(n==o||s!==c){var c=s;i(s)?a.call(e,s,1):r(e,s)}}return e}},function(e,t,n){var r=n(53),i=n(155),a=n(156),o=n(29);e.exports=function(e,t){return t=r(t,e),null==(e=a(e,t))||delete e[o(i(t))]}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(52),i=n(157);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}},function(e,t,n){var r=n(40),i=n(28),a=n(46);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!i(t)){var c=r(n,3);t=a(t),n=function(e){return c(s[e],e,s)}}var u=e(t,n,o);return u>-1?s[c?t[u]:u]:void 0}}},function(e,t,n){var r=n(69),i=n(40),a=n(160),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=o(s+c,0)),r(e,i(t,3),c)}},function(e,t,n){var r=n(161);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(162);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(20),i=n(38),a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){var r=n(164)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}},function(e,t,n){var r=n(71),i=n(166),a=n(167),o=n(169),s=n(170),c=n(47),u=n(16),l=n(172),f=n(48),A=n(43),h=n(20),p=n(173),d=n(49),g=n(74),y=n(174);e.exports=function(e,t,n,v,m,b,I){var w=g(e,n),C=g(t,n),B=I.get(C);if(B)r(e,n,B);else{var E=b?b(w,C,n+"",e,t,I):void 0,_=void 0===E;if(_){var k=u(C),Q=!k&&f(C),S=!k&&!Q&&d(C);E=C,k||Q||S?u(w)?E=w:l(w)?E=o(w):Q?(_=!1,E=i(C,!0)):S?(_=!1,E=a(C,!0)):E=[]:p(C)||c(C)?(E=w,c(w)?E=y(w):h(w)&&!A(w)||(E=s(C))):_=!1}_&&(I.set(C,E),m(E,C,v,b,I),I.delete(C)),r(e,n,E)}}},function(e,t,n){(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(18),a="object"==r(t)&&t&&!t.nodeType&&t,o=a&&"object"==r(e)&&e&&!e.nodeType&&e,s=o&&o.exports===a?i.Buffer:void 0,c=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(26)(e))},function(e,t,n){var r=n(168);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(63);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(171),i=n(73),a=n(51);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},function(e,t,n){var r=n(20),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){var r=n(28),i=n(23);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){var r=n(25),i=n(73),a=n(23),o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},function(e,t,n){var r=n(175),i=n(75);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(176),i=n(56);e.exports=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=a?a(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),o?i(n,u,l):r(n,u,l)}return n}},function(e,t,n){var r=n(56),i=n(27),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(20),i=n(51),a=n(178),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(55),i=n(180),a=n(182);e.exports=function(e,t){return a(i(e,t,r),e+"")}},function(e,t,n){var r=n(181),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=a[o];return u[t]=n(c),r(e,this,u)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(183),i=n(185)(r);e.exports=i},function(e,t,n){var r=n(184),i=n(72),a=n(55),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(27),a=n(28),o=n(37),s=n(20);e.exports=function(e,t,n){if(!s(n))return!1;var c=r(t);return!!("number"==c?a(n)&&o(t,n.length):"string"==c&&t in n)&&i(n[t],e)}},function(e,t,n){var r=n(188);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(69),i=n(189),a=n(190);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(66),i=n(193),a=n(45),o=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=o},function(e,t){e.exports=function(){}},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,c=1,u={},l=!1,f=e.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(e);A=A&&A.setTimeout?A:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)},A.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[c]=i,r(c),c++},A.clearImmediate=h}function h(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(31),n(195))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,u=[],l=!1,f=-1;function A(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(A);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t),n.d(t,"SNApplication",(function(){return $u})),n.d(t,"SNProtocolService",(function(){return Go})),n.d(t,"KeyMode",(function(){return Po})),n.d(t,"SNProtocolOperator001",(function(){return no})),n.d(t,"SNProtocolOperator002",(function(){return Ao})),n.d(t,"SNProtocolOperator003",(function(){return wo})),n.d(t,"SNProtocolOperator004",(function(){return Mo})),n.d(t,"DeviceInterface",(function(){return zu})),n.d(t,"SNItem",(function(){return g.d})),n.d(t,"ItemMutator",(function(){return g.b})),n.d(t,"AppDataField",(function(){return g.a})),n.d(t,"SNItemsKey",(function(){return kt})),n.d(t,"SNPredicate",(function(){return Q.a})),n.d(t,"SNNote",(function(){return dt})),n.d(t,"NoteMutator",(function(){return gt})),n.d(t,"SNTag",(function(){return Xe})),n.d(t,"SNSmartTag",(function(){return it})),n.d(t,"SNActionsExtension",(function(){return Le})),n.d(t,"Action",(function(){return Pe})),n.d(t,"SNTheme",(function(){return we})),n.d(t,"SNComponent",(function(){return fe})),n.d(t,"ComponentAction",(function(){return W})),n.d(t,"ComponentMutator",(function(){return Ae})),n.d(t,"SNEditor",(function(){return Qe})),n.d(t,"SNUserPrefs",(function(){return H})),n.d(t,"UserPrefsMutator",(function(){return j})),n.d(t,"WebPrefKey",(function(){return B})),n.d(t,"MutationType",(function(){return g.c})),n.d(t,"ComponentArea",(function(){return q})),n.d(t,"LiveItem",(function(){return Zu})),n.d(t,"SNComponentManager",(function(){return sr})),n.d(t,"HistorySession",(function(){return os})),n.d(t,"ItemHistory",(function(){return rs})),n.d(t,"ItemHistoryEntry",(function(){return Jo})),n.d(t,"SNPrivileges",(function(){return X})),n.d(t,"ProtectedAction",(function(){return R})),n.d(t,"PrivilegeCredential",(function(){return T})),n.d(t,"SNWebCrypto",(function(){return La.SNWebCrypto})),n.d(t,"PayloadManager",(function(){return Ci})),n.d(t,"ItemManager",(function(){return Ws})),n.d(t,"SNHttpService",(function(){return gr})),n.d(t,"ChallengeService",(function(){return Hu})),n.d(t,"ChallengeOrchestrator",(function(){return Ou})),n.d(t,"PureService",(function(){return Nt.a})),n.d(t,"ApplicationService",(function(){return el.a})),n.d(t,"SNStorageService",(function(){return qt})),n.d(t,"StoragePersistencePolicies",(function(){return Ot})),n.d(t,"StorageEncryptionPolicies",(function(){return Rt})),n.d(t,"StorageValueModes",(function(){return Tt})),n.d(t,"ValueModesKeys",(function(){return Ht})),n.d(t,"Challenge",(function(){return b})),n.d(t,"ChallengeReason",(function(){return d})),n.d(t,"ChallengeResponse",(function(){return w})),n.d(t,"ChallengeType",(function(){return p})),n.d(t,"challengeTypeToString",(function(){return C})),n.d(t,"ChallengeValue",(function(){return I})),n.d(t,"SNSyncService",(function(){return Cu})),n.d(t,"SyncSources",(function(){return fu})),n.d(t,"SyncModes",(function(){return lu})),n.d(t,"SyncQueueStrategy",(function(){return uu})),n.d(t,"SortPayloadsByRecentAndContentPriority",(function(){return Xs})),n.d(t,"SNSessionManager",(function(){return En})),n.d(t,"SNMigrationService",(function(){return Fa})),n.d(t,"SNAlertService",(function(){return an})),n.d(t,"SNHistoryManager",(function(){return ms})),n.d(t,"SNPrivilegesService",(function(){return Ps})),n.d(t,"SNSingletonManager",(function(){return Fi})),n.d(t,"SNApiService",(function(){return jn})),n.d(t,"Copy",(function(){return u.a})),n.d(t,"findInArray",(function(){return u.l})),n.d(t,"isNullOrUndefined",(function(){return u.p})),n.d(t,"deepMerge",(function(){return u.h})),n.d(t,"extendArray",(function(){return u.j})),n.d(t,"removeFromIndex",(function(){return u.B})),n.d(t,"subtractFromArray",(function(){return u.F})),n.d(t,"arrayByDifference",(function(){return u.c})),n.d(t,"uniqCombineObjArrays",(function(){return u.I})),n.d(t,"greaterOfTwoDates",(function(){return u.n})),n.d(t,"getGlobalScope",(function(){return u.m})),n.d(t,"removeFromArray",(function(){return u.A})),n.d(t,"addIfUnique",(function(){return u.b})),n.d(t,"dictToArray",(function(){return u.i})),n.d(t,"truncateHexString",(function(){return u.H})),n.d(t,"jsonParseEmbeddedKeys",(function(){return u.u})),n.d(t,"topLevelCompare",(function(){return u.G})),n.d(t,"Uuid",(function(){return h})),n.d(t,"EncryptionIntent",(function(){return jt.a})),n.d(t,"isLocalStorageIntent",(function(){return jt.e})),n.d(t,"isFileIntent",(function(){return jt.d})),n.d(t,"isDecryptedIntent",(function(){return jt.c})),n.d(t,"intentRequiresEncryption",(function(){return jt.b})),n.d(t,"ContentType",(function(){return E.a})),n.d(t,"CreateItemFromPayload",(function(){return Mt})),n.d(t,"Uuids",(function(){return s.b})),n.d(t,"FillItemContent",(function(){return s.a})),n.d(t,"ApplicationEvent",(function(){return c.a})),n.d(t,"Environment",(function(){return Tn})),n.d(t,"Platform",(function(){return Hn})),n.d(t,"isEnvironmentWebOrDesktop",(function(){return Vn})),n.d(t,"isEnvironmentMobile",(function(){return zn})),n.d(t,"platformFromString",(function(){return Jn})),n.d(t,"SyncEvent",(function(){return Bi.a})),n.d(t,"MutableCollection",(function(){return Qr})),n.d(t,"ImmutablePayloadCollection",(function(){return Tr})),n.d(t,"ItemCollection",(function(){return Ls})),n.d(t,"CollectionSort",(function(){return Ss})),n.d(t,"CreateMaxPayloadFromAnyObject",(function(){return _.e})),n.d(t,"CreateSourcedPayloadFromObject",(function(){return _.f})),n.d(t,"CreateIntentPayloadFromObject",(function(){return _.d})),n.d(t,"CreateEncryptionParameters",(function(){return _.c})),n.d(t,"PayloadByMerging",(function(){return _.g})),n.d(t,"CopyPayload",(function(){return _.b})),n.d(t,"PayloadSource",(function(){return k.a})),n.d(t,"isPayloadSourceRetrieved",(function(){return k.b})),n.d(t,"ProtocolVersion",(function(){return yt.a})),n.d(t,"PayloadFormat",(function(){return at.a})),n.d(t,"PurePayload",(function(){return tl.a})),n.d(t,"PayloadField",(function(){return Wr.a})),n.d(t,"StorageKey",(function(){return Dt})),n.d(t,"BaseMigration",(function(){return Ba})),n.d(t,"PrivilegeSessionLength",(function(){return vs}));var r={};n.r(r),n.d(r,"Migration20200115",(function(){return da}));var i,a=n(0),o=n.n(a),s=n(11);!function(e){e[e.PreparingForLaunch_0=0]="PreparingForLaunch_0",e[e.ReadyForLaunch_05=.5]="ReadyForLaunch_05",e[e.StorageDecrypted_09=.9]="StorageDecrypted_09",e[e.Launched_10=1]="Launched_10",e[e.LoadingDatabase_11=1.1]="LoadingDatabase_11",e[e.LoadedDatabase_12=1.2]="LoadedDatabase_12",e[e.FullSyncCompleted_13=1.3]="FullSyncCompleted_13",e[e.SignedIn_30=3]="SignedIn_30"}(i||(i={}));var c=n(13),u=n(1);function l(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r,i;return t=e,(n=[{key:"SetGenerators",value:function(e,t){this.syncUuidFunc=e,this.asyncUuidFunc=t}},{key:"canGenSync",value:function(){return!Object(u.p)(this.syncUuidFunc)}},{key:"GenerateUuid",value:(r=o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.syncUuidFunc){e.next=4;break}return e.abrupt("return",this.syncUuidFunc());case 4:return e.abrupt("return",this.asyncUuidFunc());case 5:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){l(a,n,i,o,s,"next",e)}function s(e){l(a,n,i,o,s,"throw",e)}o(void 0)}))},function(){return i.apply(this,arguments)})},{key:"GenerateUuidSynchronously",value:function(){return this.syncUuidFunc()}}])&&f(t,n),e}();A(h,"syncUuidFunc",void 0),A(h,"asyncUuidFunc",void 0);var p,d,g=n(6);function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.LocalPasscode=1]="LocalPasscode",e[e.AccountPassword=2]="AccountPassword",e[e.Biometric=3]="Biometric"}(p||(p={})),function(e){e[e.ApplicationUnlock=1]="ApplicationUnlock",e[e.ResaveRootKey=2]="ResaveRootKey",e[e.ProtocolUpgrade=3]="ProtocolUpgrade",e[e.Migration=4]="Migration"}(d||(d={}));var b=function e(t,n){v(this,e),m(this,"types",void 0),m(this,"reason",void 0),m(this,"id",void 0),this.types=t,this.reason=n,this.id=(new Date).getTime(),Object.freeze(this)},I=function e(t,n){v(this,e),m(this,"type",void 0),m(this,"value",void 0),this.type=t,this.value=n,Object.freeze(this)},w=function(){function e(t,n,r){v(this,e),m(this,"challenge",void 0),m(this,"values",void 0),m(this,"artifacts",void 0),this.challenge=t,this.values=n,this.artifacts=r,Object.freeze(this)}var t,n;return t=e,(n=[{key:"getValueForType",value:function(e){return this.values.find((function(t){return t.type===e}))}}])&&y(t.prototype,n),e}();function C(e){var t;return(m(t={},p.LocalPasscode,"application passcode"),m(t,p.AccountPassword,"account password"),m(t,p.Biometric,"biometrics"),t)[e]}var B,E=n(4),_=n(2),k=n(3),Q=n(15);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),e}function M(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}!function(e){e.TagsPanelWidth="tagsPanelWidth",e.NotesPanelWidth="notesPanelWidth",e.EditorWidth="editorWidth",e.EditorLeft="editorLeft",e.EditorMonospaceEnabled="monospaceFont",e.EditorSpellcheck="spellcheck",e.EditorResizersEnabled="marginResizersEnabled",e.SortNotesBy="sortBy",e.SortNotesReverse="sortReverse",e.NotesShowArchived="showArchived",e.NotesHidePinned="hidePinned",e.NotesHideNotePreview="hideNotePreview",e.NotesHideDate="hideDate"}(B||(B={}));var R,T,H=function(e){function t(){return x(this,t),M(this,F(t).apply(this,arguments))}return O(t,e),P(t,[{key:"getPref",value:function(e){return this.getAppDomainValue(e)}},{key:"isSingleton",get:function(){return!0}},{key:"singletonPredicate",get:function(){return new Q.a("content_type","=",this.content_type)}}]),t}(g.d),j=function(e){function t(){return x(this,t),M(this,F(t).apply(this,arguments))}return O(t,e),P(t,[{key:"setWebPref",value:function(e,t){this.setAppDataItem(e,t)}}]),t}(g.b);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t,n){return(U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Y(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e,t,n){return t&&K(e.prototype,t),n&&K(e,n),e}function $(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?J(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.ManageExtensions="ActionManageExtensions",e.ManageBackups="ActionManageBackups",e.ViewProtectedNotes="ActionViewProtectedNotes",e.ManagePrivileges="ActionManagePrivileges",e.ManagePasscode="ActionManagePasscode",e.DeleteNote="ActionDeleteNote"}(R||(R={})),function(e){e.AccountPassword="CredentialAccountPassword",e.LocalPasscode="CredentialLocalPasscode"}(T||(T={}));var q,W,X=function(e){function t(e){var n;return L(this,t),z(J(n=$(this,Y(t).call(this,e))),"privilegeMap",{}),n.privilegeMap=e.safeContent.desktopPrivileges||{},n}return V(t,e),G(t,[{key:"getCredentialsForAction",value:function(e){return this.privilegeMap[e]||[]}},{key:"isCredentialRequiredForAction",value:function(e,t){return this.getCredentialsForAction(e).includes(t)}},{key:"isSingleton",get:function(){return!0}},{key:"singletonPredicate",get:function(){return new Q.a("content_type","=",this.content_type)}}]),t}(g.d),Z=function(e){function t(e,n){var r;return L(this,t),z(J(r=$(this,Y(t).call(this,e,n))),"privileges",void 0),z(J(r),"privilegeMap",{}),r.privileges=e,r.privilegeMap=Object(u.a)(r.payload.safeContent.desktopPrivileges||{}),r}return V(t,e),G(t,[{key:"getResult",value:function(){return this.content&&(this.content.desktopPrivileges=this.privilegeMap),U(Y(t.prototype),"getResult",this).call(this)}},{key:"setCredentialsForAction",value:function(e,t){this.privilegeMap[e]=t}},{key:"toggleCredentialForAction",value:function(e,t){this.privileges.isCredentialRequiredForAction(e,t)?this.removeCredentialForAction(e,t):this.addCredentialForAction(e,t)}},{key:"removeCredentialForAction",value:function(e,t){Object(u.A)(this.privilegeMap[e],t)}},{key:"addCredentialForAction",value:function(e,t){var n=this.privileges.getCredentialsForAction(e).slice();n.push(t),this.setCredentialsForAction(e,n)}}]),t}(g.b),ee=n(14);function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),e}function ae(e,t){return!t||"object"!==te(t)&&"function"!=typeof t?oe(e):t}function oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function se(e,t,n){return(se="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ce(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ue(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Editor="editor-editor",e.Themes="themes",e.TagsList="tags-list",e.EditorStack="editor-stack",e.NoteTags="note-tags",e.Rooms="rooms",e.Modal="modal",e.Any="*"}(q||(q={})),function(e){e.SetSize="set-size",e.StreamItems="stream-items",e.StreamContextItem="stream-context-item",e.SaveItems="save-items",e.SelectItem="select-item",e.AssociateItem="associate-item",e.DeassociateItem="deassociate-item",e.ClearSelection="clear-selection",e.CreateItem="create-item",e.CreateItems="create-items",e.DeleteItems="delete-items",e.SetComponentData="set-component-data",e.InstallLocalComponent="install-local-component",e.ToggleActivateComponent="toggle-activate-component",e.RequestPermissions="request-permissions",e.PresentConflictResolution="present-conflict-resolution",e.DuplicateItem="duplicate-item",e.ComponentRegistered="component-registered",e.ActivateThemes="themes",e.Reply="reply",e.SaveSuccess="save-success",e.SaveError="save-error"}(W||(W={}));var fe=function(e){function t(e){var n;return ne(this,t),le(oe(n=ae(this,ce(t).call(this,e))),"componentData",void 0),le(oe(n),"disassociatedItemIds",void 0),le(oe(n),"associatedItemIds",void 0),le(oe(n),"local_url",void 0),le(oe(n),"hosted_url",void 0),le(oe(n),"offlineOnly",void 0),le(oe(n),"name",void 0),le(oe(n),"autoupdateDisabled",void 0),le(oe(n),"package_info",void 0),le(oe(n),"area",void 0),le(oe(n),"permissions",[]),le(oe(n),"valid_until",void 0),le(oe(n),"active",void 0),le(oe(n),"legacy_url",void 0),le(oe(n),"isMobileDefault",void 0),n.componentData=n.payload.safeContent.componentData||{},n.legacy_url=n.payload.safeContent.legacy_url,n.hosted_url=n.payload.safeContent.hosted_url||n.payload.safeContent.url,n.local_url=n.payload.safeContent.local_url,n.valid_until=new Date(n.payload.safeContent.valid_until),n.offlineOnly=n.payload.safeContent.offlineOnly,n.name=n.payload.safeContent.name,n.area=n.payload.safeContent.area,n.package_info=n.payload.safeContent.package_info,n.permissions=n.payload.safeContent.permissions||[],n.active=n.payload.safeContent.active,n.autoupdateDisabled=n.payload.safeContent.autoupdateDisabled,n.disassociatedItemIds=n.payload.safeContent.disassociatedItemIds||[],n.associatedItemIds=n.payload.safeContent.associatedItemIds||[],n.isMobileDefault=n.payload.safeContent.isMobileDefault,n.legacy_url=n.payload.safeContent.hosted_url?void 0:n.payload.safeContent.url,n}return ue(t,e),ie(t,[{key:"strategyWhenConflictingWithItem",value:function(e){return this.errorDecrypting?se(ce(t.prototype),"strategyWhenConflictingWithItem",this).call(this,e):ee.a.KeepLeft}},{key:"isEditor",value:function(){return this.area===q.Editor}},{key:"isTheme",value:function(){return this.content_type===E.a.Theme||this.area===q.Themes}},{key:"isDefaultEditor",value:function(){return!0===this.getAppDomainValue(g.a.DefaultEditor)}},{key:"getLastSize",value:function(){return this.getAppDomainValue(g.a.LastSize)}},{key:"acceptsThemes",value:function(){var e;return null===(e=this.payload.safeContent.package_info)||void 0===e?void 0:e.acceptsThemes}},{key:"getClientDataKey",value:function(){return this.legacy_url?this.legacy_url:this.uuid}},{key:"hasValidHostedUrl",value:function(){return this.hosted_url||this.legacy_url}},{key:"contentKeysToIgnoreWhenCheckingEquality",value:function(){return["active","disassociatedItemIds","associatedItemIds"].concat(se(ce(t.prototype),"contentKeysToIgnoreWhenCheckingEquality",this).call(this))}},{key:"isAssociative",value:function(){return t.associativeAreas().includes(this.area)}},{key:"isExplicitlyEnabledForItem",value:function(e){return-1!==this.associatedItemIds.indexOf(e)}},{key:"isExplicitlyDisabledForItem",value:function(e){return-1!==this.disassociatedItemIds.indexOf(e)}}],[{key:"associativeAreas",value:function(){return[q.Editor]}}]),t}(g.d),Ae=function(e){function t(){return ne(this,t),ae(this,ce(t).apply(this,arguments))}return ue(t,e),ie(t,[{key:"associateWithItem",value:function(e){var t=this.typedContent.associatedItemIds||[];Object(u.b)(t,e),this.typedContent.associatedItemIds=t}},{key:"disassociateWithItem",value:function(e){var t=this.typedContent.disassociatedItemIds||[];Object(u.b)(t,e),this.typedContent.disassociatedItemIds=t}},{key:"removeAssociatedItemId",value:function(e){Object(u.A)(this.typedContent.associatedItemIds||[],e)}},{key:"removeDisassociatedItemId",value:function(e){Object(u.A)(this.typedContent.disassociatedItemIds||[],e)}},{key:"setLastSize",value:function(e){this.setAppDataItem(g.a.LastSize,e)}},{key:"typedContent",get:function(){return this.content}},{key:"active",set:function(e){this.typedContent.active=e}},{key:"defaultEditor",set:function(e){this.setAppDataItem(g.a.DefaultEditor,e)}},{key:"componentData",set:function(e){this.typedContent.componentData=e}},{key:"package_info",set:function(e){this.typedContent.package_info=e}},{key:"local_url",set:function(e){this.typedContent.local_url=e}},{key:"hosted_url",set:function(e){this.typedContent.hosted_url=e}},{key:"permissions",set:function(e){this.typedContent.permissions=e}}]),t}(g.b);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t){return!t||"object"!==he(t)&&"function"!=typeof t?ye(e):t}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ve(e,t,n){return(ve="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=me(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function be(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=function(e){function t(){var e,n;pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Ie(ye(n=ge(this,(e=me(t)).call.apply(e,[this].concat(i)))),"area",q.Themes),n}return be(t,e),function(e,t,n){t&&de(e.prototype,t),n&&de(e,n)}(t,[{key:"isLayerable",value:function(){return this.package_info&&this.package_info.layerable}},{key:"strategyWhenConflictingWithItem",value:function(e){return this.errorDecrypting?ve(me(t.prototype),"strategyWhenConflictingWithItem",this).call(this,e):ee.a.KeepLeft}},{key:"getMobileRules",value:function(){return this.getAppDomainValue(g.a.MobileRules)||{constants:{},rules:{}}}},{key:"hasMobileRules",value:function(){return this.getAppDomainValue(g.a.MobileRules)}},{key:"getNotAvailOnMobile",value:function(){return this.getAppDomainValue(g.a.NotAvailableOnMobile)}},{key:"isMobileActive",value:function(){return this.getAppDomainValue(g.a.MobileActive)}}]),t}(fe);function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}g.b;var Qe=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Ce(t)&&"function"!=typeof t?Ee(e):t}(this,Be(t).call(this,e)),ke(Ee(n),"notes",[]),ke(Ee(n),"data",{}),ke(Ee(n),"url",void 0),ke(Ee(n),"name",void 0),ke(Ee(n),"isDefault",void 0),ke(Ee(n),"systemEditor",void 0),n.url=e.safeContent.url,n.name=e.safeContent.name,n.data=e.safeContent.data||{},n.isDefault=e.safeContent.default,n.systemEditor=e.safeContent.systemEditor,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}(t,e),t}(g.d),Se=n(39),xe=n.n(Se);function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pe=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),De(this,"label",void 0),De(this,"desc",void 0),De(this,"running",void 0),De(this,"error",void 0),De(this,"lastExecuted",void 0),De(this,"context",void 0),De(this,"verb",void 0),De(this,"url",void 0),De(this,"access_type",void 0),De(this,"subactions",void 0),De(this,"subrows",void 0),xe()(this,t),this.running=!1,this.error=!1,this.lastExecuted&&(this.lastExecuted=new Date(this.lastExecuted))};function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Re(e,t,n){return t&&Oe(e.prototype,t),n&&Oe(e,n),e}function Te(e,t){return!t||"object"!==Me(t)&&"function"!=typeof t?je(e):t}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=function(e){function t(e){var n;return Fe(this,t),Ue(je(n=Te(this,He(t).call(this,e))),"actions",[]),Ue(je(n),"description",void 0),Ue(je(n),"name",void 0),Ue(je(n),"url",void 0),Ue(je(n),"package_info",void 0),Ue(je(n),"supported_types",void 0),n.description=e.safeContent.description,n.url=e.safeContent.url,n.name=e.safeContent.name,n.package_info=e.safeContent.package_info,n.supported_types=e.safeContent.supported_types,e.safeContent.actions&&(n.actions=e.safeContent.actions.map((function(e){return new Pe(e)}))),n}return Ne(t,e),Re(t,[{key:"actionsWithContextForItem",value:function(e){return this.actions.filter((function(t){return t.context===e.content_type||"Item"===t.context}))}}]),t}(g.d),Ke=function(e){function t(){return Fe(this,t),Te(this,He(t).apply(this,arguments))}return Ne(t,e),Re(t,[{key:"description",set:function(e){this.content.description=e}},{key:"supported_types",set:function(e){this.content.supported_types=e}},{key:"actions",set:function(e){this.content.actions=e}}]),t}(g.b);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t,n){return t&&Ye(e.prototype,t),n&&Ye(e,n),e}function Ve(e,t){return!t||"object"!==Ge(t)&&"function"!=typeof t?qe(e):t}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}var Xe=function(e){function t(e){var n,r,i,a;return $e(this,t),a=void 0,(i="title")in(r=qe(n=Ve(this,ze(t).call(this,e))))?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,n.title=n.payload.safeContent.title,n}return We(t,e),Je(t,[{key:"isSmartTag",value:function(){return this.content_type===E.a.SmartTag}},{key:"noteCount",get:function(){return this.payload.safeReferences.length}},{key:"isAllTag",get:function(){return this.payload.safeContent.isAllTag}},{key:"isTrashTag",get:function(){return this.payload.safeContent.isTrashTag}},{key:"isArchiveTag",get:function(){return this.payload.safeContent.isArchiveTag}}],[{key:"arrayToDisplayString",value:function(e){return e.sort((function(e,t){return e.title>t.title?1:-1})).map((function(e){return"#"+e.title})).join(" ")}}]),t}(g.d),Ze=function(e){function t(){return $e(this,t),Ve(this,ze(t).apply(this,arguments))}return We(t,e),Je(t,[{key:"title",set:function(e){this.content.title=e}}]),t}(g.b);function et(e){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rt(e,t){return(rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var it=function(e){function t(e){var n,r,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==et(t)&&"function"!=typeof t?nt(e):t}(this,tt(t).call(this,e)),a=void 0,(i="predicate")in(r=nt(n))?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,e.safeContent.predicate&&(n.predicate=Q.a.FromJson(e.safeContent.predicate)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}(t,e),t}(Xe),at=n(10);function ot(e){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t,n){return t&&ct(e.prototype,t),n&&ct(e,n),e}function lt(e,t){return!t||"object"!==ot(t)&&"function"!=typeof t?At(e):t}function ft(e){return(ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function At(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=function(e){function t(e){var n;return st(this,t),pt(At(n=lt(this,ft(t).call(this,e))),"title",void 0),pt(At(n),"text",""),pt(At(n),"mobilePrefersPlainEditor",void 0),pt(At(n),"hidePreview",!1),pt(At(n),"preview_plain",void 0),pt(At(n),"preview_html",void 0),pt(At(n),"prefersPlainEditor",void 0),n.title=n.payload.safeContent.title,n.text=n.payload.safeContent.text,n.preview_plain=n.payload.safeContent.preview_plain,n.preview_html=n.payload.safeContent.preview_html,n.hidePreview=n.payload.safeContent.hidePreview,e.format===at.a.DecryptedBareObject&&(n.prefersPlainEditor=n.getAppDomainValue(g.a.PrefersPlainEditor)),Object(u.p)(n.payload.safeContent.mobilePrefersPlainEditor)||(n.mobilePrefersPlainEditor=n.payload.safeContent.mobilePrefersPlainEditor),n}return ht(t,e),ut(t,[{key:"safeText",value:function(){return this.text||""}},{key:"safeTitle",value:function(){return this.title||""}}]),t}(g.d),gt=function(e){function t(){return st(this,t),lt(this,ft(t).apply(this,arguments))}return ht(t,e),ut(t,[{key:"typedContent",get:function(){return this.content}},{key:"title",set:function(e){this.typedContent.title=e}},{key:"text",set:function(e){this.typedContent.text=e}},{key:"hidePreview",set:function(e){this.typedContent.hidePreview=e}},{key:"preview_plain",set:function(e){this.typedContent.preview_plain=e}},{key:"preview_html",set:function(e){this.typedContent.preview_html=e}},{key:"prefersPlainEditor",set:function(e){this.setAppDataItem(g.a.PrefersPlainEditor,e)}}]),t}(g.b),yt=n(7);function vt(e){return(vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function It(e,t,n){return t&&bt(e.prototype,t),n&&bt(e,n),e}function wt(e,t){return!t||"object"!==vt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ct(e,t,n){return(Ct="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Bt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Bt(e){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Et(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}var _t,kt=function(e){function t(){return mt(this,t),wt(this,Bt(t).apply(this,arguments))}return Et(t,e),It(t,[{key:"strategyWhenConflictingWithItem",value:function(e){return this.errorDecrypting?Ct(Bt(t.prototype),"strategyWhenConflictingWithItem",this).call(this,e):ee.a.KeepLeft}},{key:"version",get:function(){return this.payload.safeContent.version}},{key:"isItemsKey",get:function(){return!0}},{key:"isDefault",get:function(){return this.payload.safeContent.isDefault}},{key:"itemsKey",get:function(){return this.payload.safeContent.itemsKey}},{key:"dataAuthenticationKey",get:function(){if(this.version===yt.a.V004)throw"Attempting to access legacy data authentication key.";return this.payload.safeContent.dataAuthenticationKey}}]),t}(g.d),Qt=function(e){function t(){return mt(this,t),wt(this,Bt(t).apply(this,arguments))}return Et(t,e),It(t,[{key:"isDefault",set:function(e){this.content.isDefault=e}}]),t}(g.b);function St(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt,Dt,Pt=(St(_t={},E.a.Note,dt),St(_t,E.a.Tag,Xe),St(_t,E.a.ItemsKey,kt),St(_t,E.a.SmartTag,it),St(_t,E.a.ActionsExtension,Le),St(_t,E.a.Editor,Qe),St(_t,E.a.Theme,we),St(_t,E.a.Component,fe),St(_t,E.a.Privileges,X),St(_t,E.a.UserPrefs,H),_t);function Mt(e){return new(Pt[e.content_type]||g.d)(e)}function Ft(e,t){return e?"".concat(e,"-").concat(t):t}!function(e){e.StorageObject="storage",e.LastMigrationTimestamp="last_migration_timestamp"}(xt||(xt={})),function(e){e.RootKeyParams="ROOT_KEY_PARAMS",e.WrappedRootKey="WRAPPED_ROOT_KEY",e.RootKeyWrapperKeyParams="ROOT_KEY_WRAPPER_KEY_PARAMS",e.Session="session",e.User="user",e.ServerHost="server",e.LegacyUuid="uuid",e.LastSyncToken="syncToken",e.PaginationToken="cursorToken",e.BiometricPrefs="biometrics_prefs",e.MobilePasscodeTiming="passcode_timing",e.PrivilegesExpirey="SessionExpiresAtKey",e.PrivilegesSessionLength="SessionLengthKey",e.SessionHistoryPersistable="sessionHistory_persist",e.SessionHistoryRevisions="sessionHistory_revisions",e.SessionHistoryOptimize="sessionHistory_autoOptimize"}(Dt||(Dt={}));var Ot,Rt,Tt,Ht,jt=n(9),Nt=n(12);function Ut(e){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lt(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Kt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Lt(a,r,i,o,s,"next",e)}function s(e){Lt(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yt(e,t,n){return(Yt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Jt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Jt(e){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vt(e,t){return(Vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Default=1]="Default",e[e.Ephemeral=2]="Ephemeral"}(Ot||(Ot={})),function(e){e[e.Default=1]="Default",e[e.Disabled=2]="Disabled"}(Rt||(Rt={})),function(e){e[e.Default=1]="Default",e[e.Nonwrapped=2]="Nonwrapped"}(Tt||(Tt={})),function(e){e.Wrapped="wrapped",e.Unwrapped="unwrapped",e.Nonwrapped="nonwrapped"}(Ht||(Ht={}));var qt=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==Ut(t)&&"function"!=typeof t?$t(e):t}(this,Jt(t).call(this)),zt($t(r),"encryptionDelegate",void 0),zt($t(r),"namespace",void 0),zt($t(r),"storagePersistable",!1),zt($t(r),"persistencePolicy",void 0),zt($t(r),"encryptionPolicy",void 0),zt($t(r),"values",void 0),r.deviceInterface=e,r.namespace=n,r.setPersistencePolicy(Ot.Default),r.setEncryptionPolicy(Rt.Default),r}var n,r,a,s,c,l,f,A,p,d,g,y,v,m,b,I,w,C,B,k,Q,S,x;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vt(e,t)}(t,e),n=t,r=[{key:"deinit",value:function(){this.deviceInterface=void 0,this.encryptionDelegate=void 0,Yt(Jt(t.prototype),"deinit",this).call(this)}},{key:"handleApplicationStage",value:(x=Kt(o.a.mark((function e(n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yt(Jt(t.prototype),"handleApplicationStage",this).call(this,n);case 2:n===i.Launched_10&&(this.storagePersistable=!0);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"setPersistencePolicy",value:(S=Kt(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistencePolicy=t,this.persistencePolicy!==Ot.Ephemeral){e.next=6;break}return e.next=4,this.deviceInterface.removeAllRawStorageValues();case 4:return e.next=6,this.clearAllPayloads();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"setEncryptionPolicy",value:(Q=Kt(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.encryptionPolicy=t;case 1:case"end":return e.stop()}}),e,this)}))),function(e){return Q.apply(this,arguments)})},{key:"isEphemeralSession",value:function(){return this.persistencePolicy===Ot.Ephemeral}},{key:"initializeFromDisk",value:(k=Kt(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.deviceInterface.getRawStorageValue(this.getPersistenceKey());case 2:t=e.sent,n=t?JSON.parse(t):null,this.setInitialValues(n);case 5:case"end":return e.stop()}}),e,this)}))),function(){return k.apply(this,arguments)})},{key:"setInitialValues",value:function(e){e||(e=this.defaultValuesObject()),e[Ht.Unwrapped]||(e[Ht.Unwrapped]={}),this.values=e}},{key:"isStorageWrapped",value:function(){var e=this.values[Ht.Wrapped];return!Object(u.p)(e)&&Object.keys(e).length>0}},{key:"canDecryptWithKey",value:(B=Kt(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.values[Ht.Wrapped],e.next=3,this.decryptWrappedValue(n,t);case 3:return r=e.sent,e.abrupt("return",!r.errorDecrypting);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return B.apply(this,arguments)})},{key:"decryptWrappedValue",value:(C=Kt(o.a.mark((function e(t,n){var r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.content_type){e.next=2;break}throw"Attempting to decrypt nonexistent wrapped value";case 2:return r=Object(_.e)(t,{content_type:E.a.EncryptedStorage}),e.next=5,this.encryptionDelegate.payloadByDecryptingPayload(r,n);case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})},{key:"decryptStorage",value:(w=Kt(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.values[Ht.Wrapped],e.next=3,this.decryptWrappedValue(t);case 3:if(!(n=e.sent).errorDecrypting){e.next=6;break}throw"Unable to decrypt storage.";case 6:this.values[Ht.Unwrapped]=Object(u.a)(n.contentObject),delete this.values[Ht.Wrapped];case 8:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"generatePersistenceValue",value:(I=Kt(o.a.mark((function e(){var t,n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object.assign({},this.values),n=t[Ht.Unwrapped],e.t0=_.e,e.next=5,h.GenerateUuid();case 5:return e.t1=e.sent,e.t2=n,e.t3=E.a.EncryptedStorage,e.t4={uuid:e.t1,content:e.t2,content_type:e.t3},r=(0,e.t0)(e.t4),e.next=12,this.encryptionDelegate.payloadByEncryptingPayload(r,jt.a.LocalStoragePreferEncrypted);case 12:return i=e.sent,t[Ht.Wrapped]=i.ejected(),t[Ht.Unwrapped]=void 0,e.abrupt("return",t);case 16:case"end":return e.stop()}}),e,this)}))),function(){return I.apply(this,arguments)})},{key:"repersistToDisk",value:(b=Kt(o.a.mark((function e(){var t=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.storagePersistable){e.next=2;break}return e.abrupt("return");case 2:if(this.persistencePolicy!==Ot.Ephemeral){e.next=4;break}return e.abrupt("return");case 4:return e.abrupt("return",this.executeCriticalFunction(Kt(o.a.mark((function e(){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.generatePersistenceValue();case 2:return n=e.sent,t.values[Ht.Wrapped]=n[Ht.Wrapped],e.abrupt("return",t.deviceInterface.setRawStorageValue(t.getPersistenceKey(),JSON.stringify(n)));case 5:case"end":return e.stop()}}),e)})))));case 5:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"setValue",value:(m=Kt(o.a.mark((function e(t,n){var r,i=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=i.length>2&&void 0!==i[2]?i[2]:Tt.Default,this.values){e.next=3;break}throw"Attempting to set storage key ".concat(t," before loading local storage.");case 3:return this.values[this.domainKeyForMode(r)][t]=n,e.abrupt("return",this.repersistToDisk());case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return m.apply(this,arguments)})},{key:"getValue",value:(v=Kt(o.a.mark((function e(t){var n,r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]?r[1]:Tt.Default,this.values){e.next=3;break}throw"Attempting to get storage key ".concat(t," before loading local storage.");case 3:if(this.values[this.domainKeyForMode(n)]){e.next=5;break}throw"Storage domain mode not available ".concat(n," for key ").concat(t);case 5:return e.abrupt("return",this.values[this.domainKeyForMode(n)][t]);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"removeValue",value:(y=Kt(o.a.mark((function e(t){var n,r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]?r[1]:Tt.Default,this.values){e.next=3;break}throw"Attempting to remove storage key ".concat(t," before loading local storage.");case 3:return delete this.values[this.domainKeyForMode(n)][t],e.abrupt("return",this.repersistToDisk());case 5:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"getPersistenceKey",value:function(){return Ft(this.namespace,xt.StorageObject)}},{key:"defaultValuesObject",value:function(e,n,r){return t.defaultValuesObject(e,n,r)}},{key:"domainKeyForMode",value:function(e){if(e===Tt.Default)return Ht.Unwrapped;if(e===Tt.Nonwrapped)return Ht.Nonwrapped;throw"Invalid mode"}},{key:"clearValues",value:(g=Kt(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setInitialValues(),e.next=3,this.repersistToDisk();case 3:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"getAllRawPayloads",value:(d=Kt(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.deviceInterface.getAllRawDatabasePayloads());case 1:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"savePayload",value:(p=Kt(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.savePayloads([t]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"savePayloads",value:(A=Kt(o.a.mark((function e(t){var n,r,i,a,s,c,u,l,f=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistencePolicy!==Ot.Ephemeral){e.next=2;break}return e.abrupt("return");case 2:n=[],r=!0,i=!1,a=void 0,e.prev=6,s=t[Symbol.iterator]();case 8:if(r=(c=s.next()).done){e.next=24;break}if(!(u=c.value).discardable){e.next=15;break}return e.next=13,this.deletePayloadWithId(u.uuid);case 13:e.next=21;break;case 15:if(u.uuid){e.next=17;break}throw Error("Attempting to persist payload with no uuid");case 17:return e.next=19,this.encryptionDelegate.payloadByEncryptingPayload(u,this.encryptionPolicy===Rt.Default?jt.a.LocalStoragePreferEncrypted:jt.a.LocalStorageDecrypted);case 19:l=e.sent,n.push(l.ejected());case 21:r=!0,e.next=8;break;case 24:e.next=30;break;case 26:e.prev=26,e.t0=e.catch(6),i=!0,a=e.t0;case 30:e.prev=30,e.prev=31,r||null==s.return||s.return();case 33:if(e.prev=33,!i){e.next=36;break}throw a;case 36:return e.finish(33);case 37:return e.finish(30);case 38:return e.abrupt("return",this.executeCriticalFunction(Kt(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f.deviceInterface.saveRawDatabasePayloads(n));case 1:case"end":return e.stop()}}),e)})))));case 39:case"end":return e.stop()}}),e,this,[[6,26,30,38],[31,,33,37]])}))),function(e){return A.apply(this,arguments)})},{key:"deletePayloads",value:(f=Kt(o.a.mark((function e(t){var n,r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!0,r=!1,i=void 0,e.prev=3,a=t[Symbol.iterator]();case 5:if(n=(s=a.next()).done){e.next=12;break}return c=s.value,e.next=9,this.deletePayloadWithId(c.uuid);case 9:n=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),r=!0,i=e.t0;case 18:e.prev=18,e.prev=19,n||null==a.return||a.return();case 21:if(e.prev=21,!r){e.next=24;break}throw i;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}}),e,this,[[3,14,18,26],[19,,21,25]])}))),function(e){return f.apply(this,arguments)})},{key:"deletePayloadWithId",value:(l=Kt(o.a.mark((function e(t){var n=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.executeCriticalFunction(Kt(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.deviceInterface.removeRawDatabasePayloadWithId(t));case 1:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"clearAllPayloads",value:(c=Kt(o.a.mark((function e(){var t=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.executeCriticalFunction(Kt(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.deviceInterface.removeAllRawDatabasePayloads());case 1:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"clearAllData",value:(s=Kt(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all([this.clearValues(),this.clearAllPayloads()]));case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})}],a=[{key:"defaultValuesObject",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return zt(e={},Ht.Wrapped,t),zt(e,Ht.Unwrapped,n),zt(e,Ht.Nonwrapped,r),e}}],r&&Gt(n.prototype,r),a&&Gt(n,a),t}(Nt.a);function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Zt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Xt(a,r,i,o,s,"next",e)}function s(e){Xt(a,r,i,o,s,"throw",e)}o(void 0)}))}}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e,t,n){return(tn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nn(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function nn(e){return(nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var an=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Wt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,nn(t).call(this))).deviceInterface=e,n}var n,r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rn(e,t)}(t,e),n=t,(r=[{key:"deinit",value:function(){this.deviceInterface=void 0,tn(nn(t.prototype),"deinit",this).call(this)}},{key:"alert",value:(a=Zt(o.a.mark((function e(t,n){var r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.length>2&&void 0!==r[2]&&r[2],r.length>3&&r[3],e.abrupt("return",new Promise((function(e,n){window.alert(t),e()})));case 3:case"end":return e.stop()}}),e)}))),function(e,t){return a.apply(this,arguments)})},{key:"confirm",value:(i=Zt(o.a.mark((function e(t,n){var r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.length>2&&void 0!==r[2]&&r[2],r.length>3&&void 0!==r[3]&&r[3],r.length>4&&r[4],r.length>5&&r[5],r.length>6&&void 0!==r[6]&&r[6],e.abrupt("return",new Promise((function(e,n){window.confirm(t)?e():n()})));case 6:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})}])&&en(n.prototype,r),t}(Nt.a);function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var sn=function(){var e,t;function n(e){var t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r=void 0,(t="token")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this.token=e}return e=n,(t=[{key:"FromRaw",value:function(e){return new n(e.token)}}])&&on(e,t),n}(),cn="This version of the application does not support your\n newer account type. Please upgrade to the latest version\n of Standard Notes to sign in.",un="The protocol version associated with your account is\n outdated and no longer supported by this application.\n Please visit standardnotes.org/help/security for more\n information.",ln="The encryption version for your account is outdated and\n requires upgrade. You may proceed with login, but are\n advised to perform a security update using the web or\n desktop application. Please visit\n standardnotes.org/help/security for more information.",fn="Your account was created on a platform with higher security\n capabilities than this browser supports. If we attempted\n to generate your login keys here, it would take hours. Please\n use a browser with more up to date security capabilities,\n like Google Chrome or Firefox, to log in.",An="Unable to login due to insecure password parameters.\n Please visit standardnotes.org/help/security for\n more information.";function hn(e){return"\n Your password must be at least ".concat(e," characters in length.\n For your security, please choose a longer password or,\n ideally, a passphrase, and try again.\n ")}function pn(e,t){return"\n Strict Sign In has refused the server's sign-in parameters.\n The latest account version is ".concat(t,", but the server is reporting a \n version of ").concat(e," for your account. If you'd like to proceed\n with sign in anyway, please disable Strict Sign In and try again.\n ")}function dn(e){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function yn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){gn(a,r,i,o,s,"next",e)}function s(e){gn(a,r,i,o,s,"throw",e)}o(void 0)}))}}function vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bn(e,t,n){return(bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=In(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wn(e,t){return(wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn,En=function(e){function t(e,n,r,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=function(e,t){return!t||"object"!==dn(t)&&"function"!=typeof t?mn(e):t}(this,In(t).call(this)),Cn(mn(a),"storageService",void 0),Cn(mn(a),"apiService",void 0),Cn(mn(a),"alertService",void 0),Cn(mn(a),"protocolService",void 0),Cn(mn(a),"user",void 0),Cn(mn(a),"session",void 0),a.protocolService=i,a.storageService=e,a.apiService=n,a.alertService=r,a}var n,r,i,a,s,c,l,f,A;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(t,e),n=t,(r=[{key:"deinit",value:function(){this.protocolService=void 0,this.storageService=void 0,this.apiService=void 0,this.alertService=void 0,this.user=void 0,this.session=void 0,bn(In(t.prototype),"deinit",this).call(this)}},{key:"initializeFromDisk",value:(A=yn(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.getValue(Dt.User);case 2:if(this.user=e.sent,this.user){e.next=8;break}return e.next=6,this.storageService.getValue(Dt.LegacyUuid);case 6:(t=e.sent)&&(this.user={uuid:t});case 8:return e.next=10,this.storageService.getValue(Dt.Session);case 10:if(!(n=e.sent)){e.next=14;break}return e.next=14,this.setSession(sn.FromRaw(n));case 14:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"setSession",value:(f=yn(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.session=t,this.apiService.setSession(this.session);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"online",value:function(){return!this.offline()}},{key:"offline",value:function(){return Object(u.p)(this.session)}},{key:"getUser",value:function(){return this.user}},{key:"signOut",value:(l=yn(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.user=void 0,this.session=void 0;case 2:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"register",value:(c=yn(o.a.mark((function e(t,n){var r,i,a,s,c=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.length<8)){e.next=2;break}return e.abrupt("return",{response:this.apiService.createErrorResponse(hn(8))});case 2:return e.next=4,this.protocolService.createRootKey(t,n);case 4:return r=e.sent,i=r.key.serverPassword,a=r.keyParams,s=r.key,e.abrupt("return",this.apiService.register(t,i,a).then(function(){var e=yn(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.handleAuthResponse(t);case 2:return e.abrupt("return",{response:t,keyParams:a,rootKey:s});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"signIn",value:(s=yn(o.a.mark((function e(t,n){var r,i,a,s,c,u,l,f,A,h,p,d,g=this,y=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=y.length>2&&void 0!==y[2]&&y[2],i=y.length>3?y[3]:void 0,a=y.length>4?y[4]:void 0,e.next=5,this.apiService.getAccountKeyParams(t,i,a);case 5:if(!(s=e.sent).error){e.next=8;break}return e.abrupt("return",{response:s});case 8:if(c={pw_cost:s.pw_cost,pw_nonce:s.pw_nonce,identifier:s.identifier,email:s.email,pw_salt:s.pw_salt,version:s.version},(u=this.protocolService.createKeyParams(c))&&u.version){e.next=12;break}return e.abrupt("return",{response:this.apiService.createErrorResponse("Invalid email or password.")});case 12:if(this.protocolService.supportedVersions().includes(u.version)){e.next=18;break}if(!this.protocolService.isVersionNewerThanLibraryVersion(u.version)){e.next=17;break}return e.abrupt("return",{response:this.apiService.createErrorResponse(cn)});case 17:return e.abrupt("return",{response:this.apiService.createErrorResponse(un)});case 18:if(!this.protocolService.isProtocolVersionOutdated(u.version)){e.next=29;break}if(l=this.protocolService.costMinimumForVersion(u.version),!(u.kdfIterations<l)){e.next=22;break}return e.abrupt("return",{response:this.apiService.createErrorResponse(An)});case 22:return f=ln,e.next=26,this.alertService.confirm(f,"Update Recommended","Sign In").catch((function(){}));case 26:if(e.sent){e.next=29;break}return e.abrupt("return",{response:this.apiService.createErrorResponse("Invalid email or password.")});case 29:if(this.protocolService.platformSupportsKeyDerivation(u)){e.next=31;break}return e.abrupt("return",{response:this.apiService.createErrorResponse(fn)});case 31:if(!r){e.next=35;break}if(A=this.protocolService.getLatestVersion(),u.version===A){e.next=35;break}return e.abrupt("return",{response:this.apiService.createErrorResponse(pn(u.version,A))});case 35:return e.next=37,this.protocolService.computeRootKey(n,u).then((function(e){return{rootKey:e,serverPassword:e.serverPassword}}));case 37:return h=e.sent,p=h.rootKey,d=h.serverPassword,e.abrupt("return",this.apiService.signIn(t,d,i,a).then(function(){var e=yn(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.handleAuthResponse(t);case 2:return e.abrupt("return",{response:t,keyParams:u,rootKey:p});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 41:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"changePassword",value:(a=yn(o.a.mark((function e(t,n,r){var i,a,s,c,u,l,f=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.length<8)){e.next=2;break}return e.abrupt("return",{response:this.apiService.createErrorResponse(hn(8))});case 2:return e.next=4,this.protocolService.computeRootKey(t,n).then((function(e){return e.serverPassword}));case 4:return i=e.sent,a=this.user.email,e.next=8,this.protocolService.createRootKey(a,r).then((function(e){return{newRootKey:e.key,newServerPassword:e.key.serverPassword,newKeyParams:e.keyParams}}));case 8:return s=e.sent,c=s.newServerPassword,u=s.newRootKey,l=s.newKeyParams,e.abrupt("return",this.apiService.changePassword(i,c,l).then(function(){var e=yn(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f.handleAuthResponse(t);case 2:return e.abrupt("return",{response:t,keyParams:l,rootKey:u});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 13:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"handleAuthResponse",value:(i=yn(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.error){e.next=2;break}return e.abrupt("return");case 2:return n=t.user,this.user=n,e.next=6,this.storageService.setValue(Dt.User,n);case 6:return r=new sn(t.token),e.next=9,this.storageService.setValue(Dt.Session,r);case 9:return e.next=11,this.setSession(r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}])&&vn(n.prototype,r),t}(Nt.a);function _n(e){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function xn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Sn(a,r,i,o,s,"next",e)}function s(e){Sn(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mn(e,t,n){return(Mn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Fn(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function On(e,t){return(On=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.LastSyncToken="sync_token",e.PaginationToken="cursor_token",e.IntegrityCheck="compute_integrity",e.IntegrityResult="integrity_hash",e.SyncDlLimit="limit",e.SyncPayloads="items",e.ApiVersion="api"}(Bn||(Bn={}));var Tn,Hn,jn=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==_n(t)&&"function"!=typeof t?Pn(e):t}(this,Fn(t).call(this)),Rn(Pn(r),"httpService",void 0),Rn(Pn(r),"storageService",void 0),Rn(Pn(r),"host",void 0),Rn(Pn(r),"session",void 0),Rn(Pn(r),"registering",!1),Rn(Pn(r),"authenticating",!1),Rn(Pn(r),"changing",!1),r.httpService=e,r.storageService=n,r}var n,r,i,a,s,c,l,f,A,h,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&On(e,t)}(t,e),n=t,(r=[{key:"deinit",value:function(){this.httpService=void 0,this.storageService=void 0,this.host=void 0,this.session=void 0,Mn(Fn(t.prototype),"deinit",this).call(this)}},{key:"loadHost",value:(p=xn(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.getValue(Dt.ServerHost);case 2:t=e.sent,this.host=t||window._default_sync_server;case 4:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"setHost",value:(h=xn(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.host=t,e.next=3,this.storageService.setValue(Dt.ServerHost,t);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"getHost",value:(A=xn(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.host);case 1:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"setSession",value:function(e){this.session=e}},{key:"path",value:(f=xn(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getHost();case 2:if(n=e.sent){e.next=5;break}throw"Attempting to build path ".concat(t," with no host.");case 5:if(t){e.next=7;break}throw"Attempting to build path with null path.";case 7:return e.abrupt("return",Object(u.t)(n,t));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"params",value:function(e){return xe()(e,Rn({},Bn.ApiVersion,"20200115"))}},{key:"createErrorResponse",value:function(e){return{error:{message:e}}}},{key:"errorResponseWithFallbackMessage",value:function(e,t){return e.error.message||(e.error.message=t),e}},{key:"getAccountKeyParams",value:(l=xn(o.a.mark((function e(t,n,r){var i,a,s,c=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.path("/auth/params");case 2:return i=e.sent,a=this.params({email:t}),n&&(a[n]=r),e.next=7,this.httpService.getAbsolute(i,a).catch((function(e){return c.errorResponseWithFallbackMessage(e,"A server error occurred while trying to sign in. Please try again.")}));case 7:return s=e.sent,e.abrupt("return",s);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return l.apply(this,arguments)})},{key:"register",value:(c=xn(o.a.mark((function e(t,n,r){var i,a,s,c=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.registering){e.next=2;break}return e.abrupt("return",this.createErrorResponse("An existing registration request is already in progress."));case 2:return this.registering=!0,e.next=5,this.path("/auth");case 5:return i=e.sent,a=this.params(Qn({password:n,email:t},r.getPortableValue())),e.next=9,this.httpService.postAbsolute(i,a).catch((function(e){return c.errorResponseWithFallbackMessage(e,"A server error occurred while trying to register. Please try again.")}));case 9:return s=e.sent,this.registering=!1,e.abrupt("return",s);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"signIn",value:(s=xn(o.a.mark((function e(t,n,r,i){var a,s,c,u=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.authenticating){e.next=2;break}return e.abrupt("return",this.createErrorResponse("An existing sign in request is already in progress."));case 2:return this.authenticating=!0,e.next=5,this.path("/auth/sign_in");case 5:return a=e.sent,s=this.params({email:t,password:n}),r&&(s[r]=i),e.next=10,this.httpService.postAbsolute(a,s).catch((function(e){return u.errorResponseWithFallbackMessage(e,"A server error occurred while trying to sign in. Please try again.")}));case 10:return c=e.sent,this.authenticating=!1,e.abrupt("return",c);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return s.apply(this,arguments)})},{key:"changePassword",value:(a=xn(o.a.mark((function e(t,n,r){var i,a,s,c=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.changing){e.next=2;break}return e.abrupt("return",this.createErrorResponse("An existing change password request is already in progress."));case 2:return this.changing=!0,e.next=5,this.path("/auth/change_pw");case 5:return i=e.sent,a=Qn({current_password:t,new_password:n},r.getPortableValue()),e.next=9,this.httpService.postAbsolute(i,a,this.session.token).catch((function(e){return c.errorResponseWithFallbackMessage(e,"Something went wrong while changing your password.\n Your password was not changed. Please try again.")}));case 9:return s=e.sent,this.changing=!1,e.abrupt("return",s);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"sync",value:(i=xn(o.a.mark((function e(t,n,r,i){var a,s,c,u,l,f,A,h=this,p=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=p.length>4&&void 0!==p[4]&&p[4],c=p.length>5?p[5]:void 0,u=p.length>6?p[6]:void 0,e.next=5,this.path("/items/sync");case 5:return l=e.sent,f=this.params((Rn(a={},Bn.SyncPayloads,t.map((function(e){return e.ejected()}))),Rn(a,Bn.LastSyncToken,n),Rn(a,Bn.PaginationToken,r),Rn(a,Bn.IntegrityCheck,s),Rn(a,Bn.SyncDlLimit,i),Rn(a,"content_type",c),Rn(a,"event",u),a)),e.next=9,this.httpService.postAbsolute(l,f,this.session.token).catch((function(e){return h.errorResponseWithFallbackMessage(e,"Could not connect to server.")}));case 9:return A=e.sent,e.abrupt("return",A);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return i.apply(this,arguments)})}])&&Dn(n.prototype,r),t}(Nt.a),Nn=n(19),Un=n.n(Nn),Ln=n(24),Kn=n.n(Ln),Gn=n(21),$n=n.n(Gn);function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e){return{"mac-web":Hn.MacWeb,"mac-desktop":Hn.MacDesktop,"linux-web":Hn.LinuxWeb,"linux-desktop":Hn.LinuxDesktop,"windows-web":Hn.WindowsWeb,"windows-desktop":Hn.WindowsDesktop,ios:Hn.Ios,android:Hn.Android}[e]}function Vn(e){return e===Tn.Web||e===Tn.Desktop}function zn(e){return e===Tn.Mobile}function qn(e){return(qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wn(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Xn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Wn(a,r,i,o,s,"next",e)}function s(e){Wn(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e,t,n){return(tr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nr(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rr(e,t){return(rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Web=1]="Web",e[e.Desktop=2]="Desktop",e[e.Mobile=3]="Mobile"}(Tn||(Tn={})),function(e){e[e.Ios=1]="Ios",e[e.Android=2]="Android",e[e.MacWeb=3]="MacWeb",e[e.MacDesktop=4]="MacDesktop",e[e.WindowsWeb=5]="WindowsWeb",e[e.WindowsDesktop=6]="WindowsDesktop",e[e.LinuxWeb=7]="LinuxWeb",e[e.LinuxDesktop=8]="LinuxDesktop"}(Hn||(Hn={}));var ar,or="org.standardnotes.sn.components",sr=function(e){function t(e,n,r,i,a,o){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s=function(e,t){return!t||"object"!==qn(t)&&"function"!=typeof t?er(e):t}(this,nr(t).call(this)),ir(er(s),"itemManager",void 0),ir(er(s),"syncService",void 0),ir(er(s),"alertService",void 0),ir(er(s),"environment",void 0),ir(er(s),"platform",void 0),ir(er(s),"timeout",void 0),ir(er(s),"desktopManager",void 0),ir(er(s),"componentState",{}),ir(er(s),"removeItemObserver",void 0),ir(er(s),"streamObservers",[]),ir(er(s),"contextStreamObservers",[]),ir(er(s),"activeComponents",[]),ir(er(s),"permissionDialogs",[]),ir(er(s),"handlers",[]),ir(er(s),"detectFocusChange",(function(){var e=s.itemManager.findItems(s.activeComponents),t=!0,n=!1,r=void 0;try{for(var i,a=function(){var e=i.value;if(document.activeElement===s.iframeForComponent(e.uuid))return s.timeout((function(){s.focusChangedForComponent(e)})),"break"},o=e[Symbol.iterator]();!(t=(i=o.next()).done)&&"break"!==a();t=!0);}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}})),ir(er(s),"onWindowMessage",(function(e){e.data.sessionKey&&(s.log("Component manager received message",e.data),s.handleMessage(s.componentForSessionKey(e.data.sessionKey),e.data))})),s.timeout=o||setTimeout.bind(window),s.itemManager=e,s.syncService=n,s.alertService=r,s.environment=i,s.platform=a,s.configureForGeneralUsage(),i!==Tn.Mobile&&s.configureForNonMobileUsage(),s}var n,r,i,a,c,l,f,A,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rr(e,t)}(t,e),n=t,(r=[{key:"componentsForArea",value:function(e){return this.components.filter((function(t){return t.area===e}))}},{key:"deinit",value:function(){tr(nr(t.prototype),"deinit",this).call(this),this.streamObservers.length=0,this.contextStreamObservers.length=0,this.activeComponents.length=0,this.permissionDialogs.length=0,this.handlers.length=0,this.itemManager=void 0,this.syncService=void 0,this.alertService=void 0,this.removeItemObserver(),this.removeItemObserver=null,window&&(window.removeEventListener("focus",this.detectFocusChange,!0),window.removeEventListener("blur",this.detectFocusChange,!0),window.removeEventListener("message",this.onWindowMessage))}},{key:"setDesktopManager",value:function(e){this.desktopManager=e,this.configureForDesktop()}},{key:"configureForGeneralUsage",value:function(){var e=this;this.removeItemObserver=this.itemManager.addObserver(E.a.Any,(function(t,n,r,i,a){var o=Object(u.f)(t,n,r),s=o.filter((function(e){return e.content_type===E.a.Component||e.content_type===E.a.Theme}));s.length>0&&i!==k.a.RemoteSaved&&e.isDesktop&&e.desktopManager.syncComponentsInstallation(s);var c=!0,l=!1,f=void 0;try{for(var A,h=s[Symbol.iterator]();!(c=(A=h.next()).done);c=!0){var p=A.value,d=e.activeComponents.includes(p.uuid);!p.active||p.deleted||d?!p.active&&d&&e.deactivateComponent(p.uuid):e.activateComponent(p.uuid)}}catch(e){l=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw f}}i!==k.a.LocalChanged&&e.notifyStreamObservers(o,i,a)}))}},{key:"notifyStreamObservers",value:function(e,t,n){var r=this,i=!0,a=!1,o=void 0;try{for(var s,c=function(){var t=s.value;if(n&&n===t.componentUuid)return"continue";var i=e.filter((function(e){return-1!==t.contentTypes.indexOf(e.content_type)}));if(0===i.length)return"continue";var a=[{name:W.StreamItems,content_types:t.contentTypes.sort()}];r.runWithPermissions(t.componentUuid,a,(function(){r.sendItemsInReply(t.componentUuid,i,t.originalMessage)}))},u=this.streamObservers[Symbol.iterator]();!(i=(s=u.next()).done);i=!0)c()}catch(e){a=!0,o=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw o}}var l=[{name:W.StreamContextItem}],f=!0,A=!1,h=void 0;try{for(var p,d=function(){var i=p.value;if(n&&n===i.componentUuid)return"continue";var a=!0,o=!1,s=void 0;try{for(var c,u=r.handlers[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var f=c.value;if((f.areas.includes(i.area)||f.areas.includes(q.Any))&&f.contextRequestHandler){var A=f.contextRequestHandler(i.componentUuid);if(A&&"continue"===function(){var n=Un()(e,{uuid:A.uuid});if(n){if(n.deleted)return"continue";r.runWithPermissions(i.componentUuid,l,(function(){r.sendContextItemInReply(i.componentUuid,n,i.originalMessage,t)}))}}())continue}}}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}},g=this.contextStreamObservers[Symbol.iterator]();!(f=(p=g.next()).done);f=!0)d()}catch(e){A=!0,h=e}finally{try{f||null==g.return||g.return()}finally{if(A)throw h}}}},{key:"isNativeExtension",value:function(e){var t=[window._extensions_manager_location,window._batch_manager_location],n=e.hosted_url,r=e.local_url&&e.local_url.replace("sn://","");return t.includes(n)||t.includes(r)}},{key:"configureForNonMobileUsage",value:function(){window.addEventListener?window.addEventListener("focus",this.detectFocusChange,!0):window.attachEvent("onfocusout",this.detectFocusChange),window.addEventListener?window.addEventListener("blur",this.detectFocusChange,!0):window.attachEvent("onblur",this.detectFocusChange),window.addEventListener("message",this.onWindowMessage)}},{key:"configureForDesktop",value:function(){var e=this;this.desktopManager.registerUpdateObserver((function(t){t.active&&t.isTheme()&&e.postActiveThemesToAllComponents()}))}},{key:"postActiveThemesToAllComponents",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.components[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var a=r.value,o=this.findOrCreateDataForComponent(a);!a.isTheme()&&a.active&&o.window&&this.postActiveThemesToComponent(a)}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"getActiveThemes",value:function(){return this.componentsForArea(q.Themes).filter((function(e){return e.active}))}},{key:"urlsForActiveThemes",value:function(){var e=this.getActiveThemes(),t=[],n=!0,r=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value,c=this.urlForComponent(s);c&&t.push(c)}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return t}},{key:"postActiveThemesToComponent",value:function(e){var t={themes:this.urlsForActiveThemes()},n={action:W.ActivateThemes,data:t};this.sendMessageToComponent(e,n)}},{key:"contextItemDidChangeInArea",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,a=this.handlers[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;if(o.areas.includes(e)||o.areas.includes(q.Any)){var s=this.contextStreamObservers.filter((function(t){return t.area===e})),c=!0,u=!1,l=void 0;try{for(var f,A=s[Symbol.iterator]();!(c=(f=A.next()).done);c=!0){var h=f.value;if(o.contextRequestHandler){var p=o.contextRequestHandler(h.componentUuid);p&&this.sendContextItemInReply(h.componentUuid,p,h.originalMessage)}}}catch(e){u=!0,l=e}finally{try{c||null==A.return||A.return()}finally{if(u)throw l}}}}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}}},{key:"isComponentHidden",value:function(e){return this.findOrCreateDataForComponent(e).hidden}},{key:"setComponentHidden",value:function(e,t){var n=this.findOrCreateDataForComponent(e);if(t)n.hidden=!0;else if(n.hidden){n.hidden=!1;var r=Un()(this.contextStreamObservers,{identifier:e.uuid});r&&this.handleStreamContextItemMessage(e,r.originalMessage);var i=Un()(this.streamObservers,{identifier:e.uuid});i&&this.handleStreamItemsMessage(e,i.originalMessage)}}},{key:"jsonForItem",value:function(e,t,n){var r=n===k.a.RemoteSaved||n===k.a.LocalSaved,i=(e.getDomainData(or)||{})[t.getClientDataKey()]||{},a={uuid:e.uuid,content_type:e.content_type,created_at:e.created_at,updated_at:e.updated_at,deleted:e.deleted,isMetadataUpdate:r,content:e.content,clientData:i};return this.removePrivatePropertiesFromResponseItems([a],t),a}},{key:"sendItemsInReply",value:function(e,t,n,r){var i=this,a=this.itemManager.findItem(e);this.log("Component manager send items in reply",a,t,n);var o={},s=t.map((function(e){return i.jsonForItem(e,a,r)}));o.items=s,this.replyToMessage(a,n,o)}},{key:"sendContextItemInReply",value:function(e,t,n,r){var i=this.itemManager.findItem(e);this.log("Component manager send context item in reply",i,t,n);var a={item:this.jsonForItem(t,i,r)};this.replyToMessage(i,n,a)}},{key:"replyToMessage",value:function(e,t,n){var r={action:W.Reply,original:t,data:n};this.sendMessageToComponent(e,r)}},{key:"sendMessageToComponent",value:function(e,t){var n=[W.ComponentRegistered,W.ActivateThemes],r=this.findOrCreateDataForComponent(e);if(!r.hidden||n.includes(t.action)){this.log("Component manager send message to component",e,t);var i=this.urlForComponent(e);i&&r.window||this.alertService.alert("Standard Notes is trying to communicate with ".concat(e.name,", \n but an error is occurring. Please restart this extension and try again.")),i.startsWith("http")||i.startsWith("file")||(i=window.location.href+i),r.window.postMessage(this.isMobile?JSON.stringify(t):t,i)}else this.log("Component disabled for current item, ignoring messages.",e.name)}},{key:"urlForComponent",value:function(e){if(e.offlineOnly&&!this.isDesktop)return null;if(e.offlineOnly||this.isDesktop&&e.local_url)return e.local_url&&e.local_url.replace("sn://",this.desktopManager.getExtServerHost());var t=e.hosted_url||e.legacy_url;if(this.isMobile){var n=this.platform===Hn.Ios?"localhost":"10.0.2.2";t=t.replace("localhost",n).replace("sn.local",n)}return t}},{key:"componentForUrl",value:function(e){return this.components.filter((function(t){return t.hosted_url===e||t.legacy_url===e}))[0]}},{key:"sessionKeyForComponent",value:function(e){return this.findOrCreateDataForComponent(e).sessionKey}},{key:"componentForSessionKey",value:function(e){for(var t,n=this,r=function(){var r=a[i],o=n.componentState[r];if((null==o?void 0:o.sessionKey)===e)return t=n.components.find((function(e){return e.uuid===r})),"break"},i=0,a=Object.keys(this.componentState);i<a.length&&"break"!==r();i++);if(!t){var o=!0,s=!1,c=void 0;try{for(var u,l=this.handlers[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.componentForSessionKeyHandler&&(t=f.componentForSessionKeyHandler(e)))break}}catch(e){s=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw c}}}return t}},{key:"handleMessage",value:function(e,t){var n=this;if(!e)return this.log("Component not defined for message, returning",t),void this.alertService.alert("An extension is trying to communicate with Standard Notes,but there is an error establishing a bridge. Please restart the app and try again.");var r=[W.SaveItems,W.AssociateItem,W.DeassociateItem,W.CreateItem,W.CreateItems,W.DeleteItems,W.SetComponentData];if(this.getReadonlyStateForComponent(e).readonly&&r.includes(t.action))this.alertService.alert("The extension ".concat(e.name," is trying to save, but it is in a locked state and cannot accept changes."));else{if(t.action===W.StreamItems)this.handleStreamItemsMessage(e,t);else if(t.action===W.StreamContextItem)this.handleStreamContextItemMessage(e,t);else if(t.action===W.SetComponentData)this.handleSetComponentDataMessage(e,t);else if(t.action===W.DeleteItems)this.handleDeleteItemsMessage(e,t);else if(t.action===W.CreateItems||t.action===W.CreateItem)this.handleCreateItemsMessage(e,t);else if(t.action===W.SaveItems)this.handleSaveItemsMessage(e,t);else if(t.action===W.ToggleActivateComponent){var i=this.itemManager.findItem(t.data.uuid);this.handleToggleComponentMessage(i,t)}else t.action===W.RequestPermissions?this.handleRequestPermissionsMessage(e,t):t.action===W.InstallLocalComponent?this.handleInstallLocalComponentMessage(e,t):t.action===W.DuplicateItem&&this.handleDuplicateItemMessage(e,t);var a=!0,o=!1,s=void 0;try{for(var c,u=function(){var r=c.value;r.actionHandler&&(r.areas.includes(e.area)||r.areas.includes(q.Any))&&n.timeout((function(){r.actionHandler(e,t.action,t.data)}))},l=this.handlers[Symbol.iterator]();!(a=(c=l.next()).done);a=!0)u()}catch(e){o=!0,s=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw s}}}}},{key:"removePrivatePropertiesFromResponseItems",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||!this.isNativeExtension(t)){var r=["autoupdateDisabled","permissions","active"];n&&(r=r.concat(["url","hosted_url","local_url"]));var i=!0,a=!1,o=void 0;try{for(var s,c=e[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value,l=!0,f=!1,A=void 0;try{for(var h,p=r[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var d=h.value;delete u.content[d]}}catch(e){f=!0,A=e}finally{try{l||null==p.return||p.return()}finally{if(f)throw A}}}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}}}},{key:"handleStreamItemsMessage",value:function(e,t){var n=this,r=[{name:W.StreamItems,content_types:t.data.content_types.sort()}];this.runWithPermissions(e.uuid,r,(function(){Un()(n.streamObservers,{identifier:e.uuid})||n.streamObservers.push({identifier:e.uuid,componentUuid:e.uuid,area:e.area,originalMessage:t,contentTypes:t.data.content_types});var r=[],i=!0,a=!1,o=void 0;try{for(var s,c=t.data.content_types[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var l=s.value;Object(u.j)(r,n.itemManager.nonErroredItemsForContentType(l))}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}n.sendItemsInReply(e.uuid,r,t)}))}},{key:"handleStreamContextItemMessage",value:function(e,t){var n=this,r=[{name:W.StreamContextItem}];this.runWithPermissions(e.uuid,r,(function(){Un()(n.contextStreamObservers,{identifier:e.uuid})||n.contextStreamObservers.push({identifier:e.uuid,componentUuid:e.uuid,area:e.area,originalMessage:t});var r=!0,i=!1,a=void 0;try{for(var o,s=n.handlersForArea(e.area)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;if(c.contextRequestHandler){var u=c.contextRequestHandler(e.uuid);u&&n.sendContextItemInReply(e.uuid,u,t)}}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}}))}},{key:"isItemIdWithinComponentContextJurisdiction",value:function(e,t){return this.itemIdsInContextJurisdictionForComponent(t).includes(e)}},{key:"itemIdsInContextJurisdictionForComponent",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var a,o=this.handlersForArea(e.area)[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(s.contextRequestHandler){var c=s.contextRequestHandler(e.uuid);c&&t.push(c.uuid)}}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return t}},{key:"handlersForArea",value:function(e){return this.handlers.filter((function(t){return t.areas.includes(e)}))}},{key:"handleSaveItemsMessage",value:(p=Xn(o.a.mark((function e(t,n){var r,i,a,c,l,f,A,h,p,d,y,v=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data.items,i=[],a=this.itemIdsInContextJurisdictionForComponent(t),c=r.slice(),l=!0,f=!1,A=void 0,e.prev=7,h=r.slice()[Symbol.iterator]();case 9:if(l=(p=h.next()).done){e.next=18;break}if(d=p.value,!a.includes(d.uuid)){e.next=15;break}return i.push({name:W.StreamContextItem}),Object(u.A)(c,d),e.abrupt("break",18);case 15:l=!0,e.next=9;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(7),f=!0,A=e.t0;case 24:e.prev=24,e.prev=25,l||null==h.return||h.return();case 27:if(e.prev=27,!f){e.next=30;break}throw A;case 30:return e.finish(27);case 31:return e.finish(24);case 32:c.length>0&&(y=Kn()(c.map((function(e){return e.content_type}))).sort(),i.push({name:W.StreamItems,content_types:y})),this.runWithPermissions(t.uuid,i,Xn(o.a.mark((function e(){var i,a,c,l,f,A;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v.removePrivatePropertiesFromResponseItems(r,t,!0),i=Object(s.b)(r),a=v.itemManager.findItems(i,!0),c=0,a.forEach((function(e,n){if(e)e.locked&&($n()(r,{uuid:e.uuid}),c++);else{var i=r[n];v.alertService.alert("The extension ".concat(t.name," is trying to save an item with type ")+"".concat(i.content_type,", but that item does not exist .")+"Please restart this extension and try again.")}})),!(c>0)){e.next=10;break}return l=1===c?"item":"items",f=1===c?"is":"are",v.alertService.alert("".concat(c," ").concat(l," you are attempting to save ").concat(f," locked and cannot be edited."),"Items Locked"),e.abrupt("return");case 10:return A=r.map((function(e){return Object(_.f)(e,k.a.ComponentRetrieved)})),e.next=13,v.itemManager.changeItems(i,(function(e){var n=Object(u.C)(A,{uuid:e.getUuid()});e.mergePayload(n);var i=Object(u.C)(r,{uuid:e.getUuid()});if(i.clientData){var a=Object(u.a)(e.getItem().getDomainData(or)||{});a[t.getClientDataKey()]=i.clientData,e.setDomainData(a,or)}}),g.c.UserInteraction,k.a.ComponentRetrieved,t.uuid);case 13:v.syncService.sync().then((function(){var e=Object.assign({},n);e.action=W.SaveSuccess,v.replyToMessage(t,n,{}),v.handleMessage(t,e)})).catch((function(){var e=Object.assign({},n);e.action=W.SaveError,v.replyToMessage(t,n,{error:W.SaveError}),v.handleMessage(t,e)}));case 14:case"end":return e.stop()}}),e)}))));case 34:case"end":return e.stop()}}),e,this,[[7,20,24,32],[25,,27,31]])}))),function(e,t){return p.apply(this,arguments)})},{key:"handleDuplicateItemMessage",value:function(e,t){var n=this,r=t.data.item,i=this.itemManager.findItem(r.uuid),a=[{name:W.StreamItems,content_types:[i.content_type]}];this.runWithPermissions(e.uuid,a,Xn(o.a.mark((function r(){var a;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.itemManager.duplicateItem(i.uuid);case 2:a=r.sent,n.syncService.sync(),n.replyToMessage(e,t,{item:n.jsonForItem(a,e)});case 5:case"end":return r.stop()}}),r)}))))}},{key:"handleCreateItemsMessage",value:function(e,t){var n=this,r=t.data.item?[t.data.item]:t.data.items,i=Kn()(r.map((function(e){return e.content_type}))),a=[{name:W.StreamItems,content_types:i}];this.runWithPermissions(e.uuid,a,Xn(o.a.mark((function i(){var a,s,c,l,f,A,p,d;return o.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n.removePrivatePropertiesFromResponseItems(r,e),a=[],s=!0,c=!1,l=void 0,i.prev=5,f=o.a.mark((function t(){var r,i,s,c;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=p.value).uuid){t.next=5;break}return t.next=4,h.GenerateUuid();case 4:r.uuid=t.sent;case 5:return i=Object(_.f)(r,k.a.ComponentCreated),s=Mt(i),t.next=9,n.itemManager.insertItem(s);case 9:return c=t.sent,t.next=12,n.itemManager.changeItem(c.uuid,(function(t){if(r.clientData){var n=Object(u.a)(c.getDomainData(or)||{});n[e.getClientDataKey()]=r.clientData,t.setDomainData(n,or)}}),g.c.UserInteraction,k.a.ComponentCreated,e.uuid);case 12:a.push(c);case 13:case"end":return t.stop()}}),t)})),A=r[Symbol.iterator]();case 8:if(s=(p=A.next()).done){i.next=13;break}return i.delegateYield(f(),"t0",10);case 10:s=!0,i.next=8;break;case 13:i.next=19;break;case 15:i.prev=15,i.t1=i.catch(5),c=!0,l=i.t1;case 19:i.prev=19,i.prev=20,s||null==A.return||A.return();case 22:if(i.prev=22,!c){i.next=25;break}throw l;case 25:return i.finish(22);case 26:return i.finish(19);case 27:n.syncService.sync(),d=t.action===W.CreateItem?{item:n.jsonForItem(a[0],e)}:{items:a.map((function(t){return n.jsonForItem(t,e)}))},n.replyToMessage(e,t,d);case 30:case"end":return i.stop()}}),i,null,[[5,15,19,27],[20,,22,26]])}))))}},{key:"handleDeleteItemsMessage",value:function(e,t){var n=this,r=Kn()(t.data.items.map((function(e){return e.content_type}))).sort(),i=[{name:W.StreamItems,content_types:r}];this.runWithPermissions(e.uuid,i,Xn(o.a.mark((function r(){var i,a,s,c,u,l,f,A,h,p,d;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=t.data.items,a=1===i.length?"item":"items",s=null,c=!0,r.next=6,n.alertService.confirm("Are you sure you want to delete ".concat(i.length," ").concat(a,"?")).catch((function(){c=!1}));case 6:if(!c){r.next=44;break}u=!0,l=!1,f=void 0,r.prev=10,A=i[Symbol.iterator]();case 12:if(u=(h=A.next()).done){r.next=26;break}if(p=h.value,d=n.itemManager.findItem(p.uuid)){r.next=18;break}return n.alertService.alert("The item you are trying to delete cannot be found."),r.abrupt("continue",23);case 18:if(![E.a.Component,E.a.Theme].includes(d.content_type)){r.next=21;break}return r.next=21,n.deactivateComponent(d.uuid);case 21:return r.next=23,n.itemManager.setItemToBeDeleted(d.uuid);case 23:u=!0,r.next=12;break;case 26:r.next=32;break;case 28:r.prev=28,r.t0=r.catch(10),l=!0,f=r.t0;case 32:r.prev=32,r.prev=33,u||null==A.return||A.return();case 35:if(r.prev=35,!l){r.next=38;break}throw f;case 38:return r.finish(35);case 39:return r.finish(32);case 40:n.syncService.sync(),s={deleted:!0},r.next=45;break;case 44:s={deleted:!1};case 45:n.replyToMessage(e,t,s);case 46:case"end":return r.stop()}}),r,null,[[10,28,32,40],[33,,35,39]])}))))}},{key:"handleRequestPermissionsMessage",value:function(e,t){var n=this;this.runWithPermissions(e.uuid,t.data.permissions,(function(){n.replyToMessage(e,t,{approved:!0})}))}},{key:"handleSetComponentDataMessage",value:function(e,t){var n=this;this.runWithPermissions(e.uuid,[],Xn(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.itemManager.changeComponent(e.uuid,(function(e){e.componentData=t.data.componentData}));case 2:n.syncService.sync();case 3:case"end":return r.stop()}}),r)}))))}},{key:"handleToggleComponentMessage",value:function(e,t){this.toggleComponent(e)}},{key:"toggleComponent",value:(A=Xn(o.a.mark((function e(t){var n,r,i=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.area!==q.Modal){e.next=4;break}this.openModalComponent(t),e.next=19;break;case 4:if(!t.active){e.next=9;break}return e.next=7,this.deactivateComponent(t.uuid);case 7:e.next=19;break;case 9:if(t.content_type!==E.a.Theme){e.next=17;break}return n=t,r=this.getActiveThemes(),e.next=14,this.activateComponent(t.uuid);case 14:n.isLayerable()||setTimeout(Xn(o.a.mark((function e(){var t,n,a,s,c,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,n=!1,a=void 0,e.prev=3,s=r[Symbol.iterator]();case 5:if(t=(c=s.next()).done){e.next=13;break}if(!(u=c.value)||u.isLayerable()){e.next=10;break}return e.next=10,i.deactivateComponent(u.uuid);case 10:t=!0,e.next=5;break;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(3),n=!0,a=e.t0;case 19:e.prev=19,e.prev=20,t||null==s.return||s.return();case 22:if(e.prev=22,!n){e.next=25;break}throw a;case 25:return e.finish(22);case 26:return e.finish(19);case 27:case"end":return e.stop()}}),e,null,[[3,15,19,27],[20,,22,26]])}))),10),e.next=19;break;case 17:return e.next=19,this.activateComponent(t.uuid);case 19:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"handleInstallLocalComponentMessage",value:function(e,t){if(this.isNativeExtension(e)){var n=this.itemManager.findItem(t.data.uuid);this.desktopManager.installComponent(n)}}},{key:"runWithPermissions",value:function(e,t,n){var r=this.itemManager.findItem(e);t=Object(u.a)(t);var i=r.permissions,a=!0,s=!1,c=void 0;try{for(var l,f=function(){var e=l.value,n=i.find((function(t){return t.name===e.name}));if(!n)return"continue";var r=e.content_types;if(!r)return Object(u.k)(t,e),"continue";var a=!0,o=!1,s=void 0;try{for(var c,f=n.content_types[Symbol.iterator]();!(a=(c=f.next()).done);a=!0){var A=c.value;Object(u.A)(r,A)}}catch(e){o=!0,s=e}finally{try{a||null==f.return||f.return()}finally{if(o)throw s}}0===r.length&&Object(u.k)(t,e)},A=t.slice()[Symbol.iterator]();!(a=(l=A.next()).done);a=!0)f()}catch(e){s=!0,c=e}finally{try{a||null==A.return||A.return()}finally{if(s)throw c}}t.length>0?this.promptForPermissions(r,t,function(){var e=Xn(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&n();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):n()}},{key:"promptForPermissions",value:function(e,t,n){var r,i=this,a={component:e,permissions:t,permissionsString:this.permissionsStringForPermissions(t,e),actionBlock:n,callback:(r=Xn(o.a.mark((function n(r){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return i.log("Changing component to expand permissions",e),n.next=4,i.itemManager.changeItem(e.uuid,(function(n){var r=Object(u.a)(e.permissions),i=!0,a=!1,o=void 0;try{for(var s,c=function(){var e=s.value,t=r.find((function(t){return t.name===e.name}));if(t){var n=t.content_types||[];t.content_types=Kn()(n.concat(e.content_types))}else r.push(e)},l=t[Symbol.iterator]();!(i=(s=l.next()).done);i=!0)c()}catch(e){a=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw o}}n.permissions=r}));case 4:i.syncService.sync();case 5:i.permissionDialogs=i.permissionDialogs.filter((function(n){return n===a?(n.actionBlock&&n.actionBlock(r),!1):!!(n.component!==e||n.permissions!==t&&(i=t,n.permissions.some((function(e){return!i.find((function(t){return JSON.stringify(t)===JSON.stringify(e)}))}))))||(r&&n.actionBlock&&n.actionBlock(r),!1);var i})),i.permissionDialogs.length>0&&i.presentPermissionsDialog(i.permissionDialogs[0]);case 7:case"end":return n.stop()}}),n)}))),function(e){return r.apply(this,arguments)})},s=Un()(this.permissionDialogs,{component:e});this.permissionDialogs.push(a),s?this.log("Existing dialog, not presenting."):this.presentPermissionsDialog(a)}},{key:"presentPermissionsDialog",value:function(e){throw"Must override SNComponentManager.presentPermissionsDialog"}},{key:"openModalComponent",value:function(e){throw"Must override SNComponentManager.presentPermissionsDialog"}},{key:"registerHandler",value:function(e){var t=this;return this.handlers.push(e),function(){var n=Un()(t.handlers,{identifier:e.identifier});n?Object(u.A)(t.handlers,n):t.log("Attempting to deregister non-existing handler")}}},{key:"findOrCreateDataForComponent",value:function(e){var t=this.componentState[e.uuid];return t||(t={},this.componentState[e.uuid]=t),t}},{key:"setReadonlyStateForComponent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.findOrCreateDataForComponent(e);r.readonly=t,r.lockReadonly=n}},{key:"getReadonlyStateForComponent",value:function(e){var t=this.findOrCreateDataForComponent(e);return{readonly:t.readonly,lockReadonly:t.lockReadonly}}},{key:"registerComponentWindow",value:(f=Xn(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log("Register component window",t),(r=this.findOrCreateDataForComponent(t)).window===n&&this.log("Web|componentManager","attempting to re-register same component window."),this.log("Web|componentManager|registerComponentWindow",t),r.window=n,e.next=7,h.GenerateUuid();case 7:r.sessionKey=e.sent,this.sendMessageToComponent(t,{action:W.ComponentRegistered,sessionKey:r.sessionKey,componentData:t.componentData,data:{uuid:t.uuid,environment:(o=this.environment,(Yn(s={},Tn.Web,"web"),Yn(s,Tn.Desktop,"desktop"),Yn(s,Tn.Mobile,"mobile"),s)[o]),platform:(i=this.platform,(Yn(a={},Hn.MacWeb,"mac-web"),Yn(a,Hn.MacDesktop,"mac-desktop"),Yn(a,Hn.LinuxWeb,"linux-web"),Yn(a,Hn.LinuxDesktop,"linux-desktop"),Yn(a,Hn.WindowsWeb,"windows-web"),Yn(a,Hn.WindowsDesktop,"windows-desktop"),Yn(a,Hn.Ios,"ios"),Yn(a,Hn.Android,"android"),a)[i]),activeThemeUrls:this.urlsForActiveThemes()}}),this.postActiveThemesToComponent(t),this.desktopManager&&this.desktopManager.notifyComponentActivation(t);case 11:case"end":return e.stop()}var i,a,o,s}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"registerComponent",value:function(e){this.log("Registering component",e),Object(u.b)(this.activeComponents,e);var t=this.itemManager.findItem(e),n=!0,r=!1,i=void 0;try{for(var a,o=this.handlers[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;(s.areas.includes(t.area)||s.areas.includes(q.Any))&&s.activationHandler&&s.activationHandler(t)}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}t.area===q.Themes&&this.postActiveThemesToAllComponents()}},{key:"activateComponent",value:(l=Xn(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log("Activating component",t),(n=this.itemManager.findItem(t)).active){e.next=5;break}return e.next=5,this.itemManager.changeComponent(n.uuid,(function(e){e.active=!0}));case 5:this.registerComponent(t),this.syncService.sync();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"deregisterComponent",value:function(e){this.log("Degregistering component",e);var t=this.itemManager.findItem(e);Object(u.A)(this.activeComponents,e),delete this.componentState[t.uuid];var n=!0,r=!1,i=void 0;try{for(var a,o=this.handlers[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;(s.areas.includes(t.area)||s.areas.includes(q.Any))&&s.activationHandler&&s.activationHandler(t)}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}this.streamObservers=this.streamObservers.filter((function(t){return t.componentUuid!==e})),this.contextStreamObservers=this.contextStreamObservers.filter((function(t){return t.componentUuid!==e})),t.area===q.Themes&&this.postActiveThemesToAllComponents()}},{key:"deactivateComponent",value:(c=Xn(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log("Deactivating component",t),!(r=null===(n=this.itemManager)||void 0===n?void 0:n.findItem(t)).active){e.next=5;break}return e.next=5,this.itemManager.changeComponent(r.uuid,(function(e){e.active=!1}));case 5:this.findOrCreateDataForComponent(r).sessionKey=void 0,this.deregisterComponent(t),this.syncService.sync();case 8:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"reloadComponent",value:(a=Xn(o.a.mark((function e(t){var n,r,i=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log("Reloading component",t),r=null===(n=this.itemManager)||void 0===n?void 0:n.findItem(t),e.next=4,this.itemManager.changeComponent(r.uuid,(function(e){e.active=!1}));case 4:return this.deregisterComponent(r.uuid),e.abrupt("return",new Promise((function(e){i.timeout(Xn(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.itemManager.changeComponent(r.uuid,(function(e){e.active=!0}));case 2:i.registerComponent(r.uuid),e();case 4:case"end":return t.stop()}}),t)}))))})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"deleteComponent",value:(i=Xn(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.itemManager.setItemToBeDeleted(t);case 2:this.syncService.sync();case 3:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"isComponentActive",value:function(e){return e.active}},{key:"iframeForComponent",value:function(e){for(var t=0,n=Array.from(document.getElementsByTagName("iframe"));t<n.length;t++){var r=n[t];if(r.dataset.componentId===e)return r}}},{key:"focusChangedForComponent",value:function(e){var t=document.activeElement===this.iframeForComponent(e.uuid),n=!0,r=!1,i=void 0;try{for(var a,o=this.handlers[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;s.focusHandler&&s.focusHandler(e,t)}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}}},{key:"handleSetSizeEvent",value:function(e,t){var n=function(e,n){var r=Object(u.r)(n.width)?n.width:"".concat(t.width,"px"),i=Object(u.r)(n.height)?n.height:"".concat(t.height,"px");e&&e.setAttribute("style","width:".concat(r,"; height:").concat(i,";"))};if(e.area===q.Rooms||e.area===q.Modal){var r=e.area===q.Rooms?"inner":"outer",i=document.getElementById("component-content-".concat(r,"-").concat(e.uuid));i&&n(i,t)}else{var a=this.iframeForComponent(e.uuid);if(!a)return;if(n(a,t),e.area===q.EditorStack){var o=a.parentElement;o&&n(o,t)}}}},{key:"editorForNote",value:function(e){var t,n=this.componentsForArea(q.Editor),r=!0,i=!1,a=void 0;try{for(var o,s=n[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;if(c.isExplicitlyEnabledForItem(e.uuid))return c}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return this.isMobile?e.mobilePrefersPlainEditor||(t=this.getDefaultEditor()):e.prefersPlainEditor||(t=this.getDefaultEditor()),t&&!t.isExplicitlyDisabledForItem(e.uuid)?t:void 0}},{key:"getDefaultEditor",value:function(){var e=this.componentsForArea(q.Editor);return this.isMobile?e.filter((function(e){return e.isMobileDefault}))[0]:e.filter((function(e){return e.isDefaultEditor()}))[0]}},{key:"permissionsStringForPermissions",value:function(e,t){var n="",r=e.length,i=function(e,t){return e>0?e===t-1?2===t?" and ":", and ":", ":""};return e.forEach((function(e,a){if(e.name===W.StreamItems){for(var o=e.content_types.map((function(e){var t=Object(E.c)(e);return t?t+"s":"items of type "+e})),s="",c=0;c<o.length;c++){var u=o[c];s+=i(c,o.length+r-a-1),s+=u}n+=i(a,r),n+=s,o.length>=2&&a<r-1&&(n+=", ")}else if(e.name===W.StreamContextItem){var l,f=(ir(l={},q.EditorStack,"working note"),ir(l,q.NoteTags,"working note"),ir(l,q.Editor,"working note"),l);n+=i(a,r),n+=f[t.area]}})),n+"."}},{key:"isDesktop",get:function(){return this.environment===Tn.Desktop}},{key:"isMobile",get:function(){return this.environment===Tn.Mobile}},{key:"components",get:function(){return this.itemManager.getItems([E.a.Component,E.a.Theme])}}])&&Zn(n.prototype,r),t}(Nt.a);function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ur(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function lr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){ur(a,r,i,o,s,"next",e)}function s(e){ur(a,r,i,o,s,"throw",e)}o(void 0)}))}}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hr(e,t){return!t||"object"!==cr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dr(e,t){return(dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e.Get="get",e.Post="post",e.Patch="patch"}(ar||(ar={}));var gr=function(e){function t(){return fr(this,t),hr(this,pr(t).apply(this,arguments))}var n,r,i,a,s,c,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dr(e,t)}(t,e),n=t,(r=[{key:"getAbsolute",value:(u=lr(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.runHttp(ar.Get,t,n,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"postAbsolute",value:(c=lr(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.runHttp(ar.Post,t,n,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"patchAbsolute",value:(s=lr(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.runHttp(ar.Patch,t,n,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"runHttp",value:(a=lr(o.a.mark((function e(t,n,r,i){var a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.createRequest(t,n,r,i),e.abrupt("return",this.runRequest(a,t,r));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"createRequest",value:function(e,t,n,r){var i=new XMLHttpRequest;return n&&e===ar.Get&&Object.keys(n).length>0&&(t=this.urlForUrlAndParams(t,n)),i.open(e,t,!0),i.setRequestHeader("Content-type","application/json"),r&&i.setRequestHeader("Authorization","Bearer "+r),i}},{key:"runRequest",value:(i=lr(o.a.mark((function e(t,n,r){var i=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,a){t.onreadystatechange=function(){i.stateChangeHandlerForRequest(t,e,a)},n===ar.Post||n===ar.Patch?t.send(JSON.stringify(r)):t.send()})));case 1:case"end":return e.stop()}}),e)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"stateChangeHandlerForRequest",value:function(e,t,n){if(4===e.readyState){var r=e.status,i={status:r};try{var a=JSON.parse(e.responseText);Object.assign(i,a)}catch(e){}r>=200&&r<=299?t(i):(i.error||(i.error={status:r}),n(i))}}},{key:"urlForUrlAndParams",value:function(e,t){var n=Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e])})).join("&");return e.includes("?")?e+"&"+n:e+"?"+n}}])&&Ar(n.prototype,r),t}(Nt.a);function yr(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var br=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mr(this,"baseCollection",void 0),mr(this,"applyCollection",void 0),mr(this,"relatedCollectionSet",void 0),this.baseCollection=t,this.applyCollection=n,this.relatedCollectionSet=r}var t,n,r,i;return t=e,(n=[{key:"resultingCollection",value:(r=o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw"Must override PayloadDelta.resultingCollection.";case 1:case"end":return e.stop()}}),e)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){yr(a,n,i,o,s,"next",e)}function s(e){yr(a,n,i,o,s,"throw",e)}o(void 0)}))},function(){return i.apply(this,arguments)})},{key:"findBasePayload",value:function(e){return this.baseCollection.find(e)}},{key:"findRelatedPayload",value:function(e,t){var n,r=null===(n=this.relatedCollectionSet)||void 0===n?void 0:n.collectionForSource(t);return null==r?void 0:r.find(e)}}])&&vr(t.prototype,n),e}();function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wr(this,"directMap",{}),wr(this,"inverseMap",{})}var t,n;return t=e,(n=[{key:"makeCopy",value:function(){var t=new e;return t.directMap=Object.assign({},this.directMap),t.inverseMap=Object.assign({},this.inverseMap),t}},{key:"getDirectRelationships",value:function(e){return this.directMap[e]||[]}},{key:"getInverseRelationships",value:function(e){return this.inverseMap[e]||[]}},{key:"establishRelationship",value:function(e,t){this.establishDirectRelationship(e,t),this.establishInverseRelationship(e,t)}},{key:"deestablishRelationship",value:function(e,t){this.deestablishDirectRelationship(e,t),this.deestablishInverseRelationship(e,t)}},{key:"setAllRelationships",value:function(e,t){var n=this.directMap[e]||[];this.directMap[e]=t;var r=!0,i=!1,a=void 0;try{for(var o,s=n[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;this.deestablishInverseRelationship(e,c)}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}var u=!0,l=!1,f=void 0;try{for(var A,h=t[Symbol.iterator]();!(u=(A=h.next()).done);u=!0){var p=A.value;this.establishInverseRelationship(e,p)}}catch(e){l=!0,f=e}finally{try{u||null==h.return||h.return()}finally{if(l)throw f}}}},{key:"removeFromMap",value:function(e){var t=this.directMap[e]||[],n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;Object(u.A)(this.inverseMap[s]||[],e)}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}delete this.directMap[e];var c=this.inverseMap[e]||[],l=!0,f=!1,A=void 0;try{for(var h,p=c[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var d=h.value;Object(u.A)(this.directMap[d]||[],e)}}catch(e){f=!0,A=e}finally{try{l||null==p.return||p.return()}finally{if(f)throw A}}delete this.inverseMap[e]}},{key:"establishDirectRelationship",value:function(e,t){var n=this.directMap[e]||[];Object(u.b)(n,t),this.directMap[e]=n}},{key:"establishInverseRelationship",value:function(e,t){var n=this.inverseMap[t]||[];Object(u.b)(n,e),this.inverseMap[t]=n}},{key:"deestablishDirectRelationship",value:function(e,t){var n=this.directMap[e]||[];Object(u.A)(n,t),this.directMap[e]=n}},{key:"deestablishInverseRelationship",value:function(e,t){var n=this.inverseMap[t]||[];Object(u.A)(n,e),this.inverseMap[t]=n}}])&&Ir(t.prototype,n),e}();function Br(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qr=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;Er(this,e),kr(this,"map",{}),kr(this,"typedMap",(Br(t={}),t)),kr(this,"dirtyIndex",new Set),kr(this,"invalidsIndex",new Set),kr(this,"nondeletedIndex",new Set),kr(this,"referenceMap",void 0),kr(this,"conflictMap",void 0),n?(this.map=r,this.typedMap=i,this.referenceMap=a,this.conflictMap=o):(this.referenceMap=new Cr,this.conflictMap=new Cr)}var t,n;return t=e,(n=[{key:"uuids",value:function(){return Object.keys(this.map)}},{key:"all",value:function(e){var t=this;if(e){if(Array.isArray(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;Object(u.j)(n,this.typedMap[c]||[])}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}var l;return(null===(l=this.typedMap[e])||void 0===l?void 0:l.slice())||[]}return Object.keys(this.map).map((function(e){return t.map[e]}))}},{key:"find",value:function(e){return this.map[e]}},{key:"dirtyElements",value:function(){var e=Array.from(this.dirtyIndex);return this.findAll(e)}},{key:"invalidElements",value:function(){var e=Array.from(this.invalidsIndex);return this.findAll(e)}},{key:"nondeletedElements",value:function(){var e=Array.from(this.nondeletedIndex);return this.findAll(e)}},{key:"findAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value,u=this.map[c];(u||t)&&n.push(u)}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}},{key:"set",value:function(e){if(0!==(e=Array.isArray(e)?e:[e]).length){var t=!0,n=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;if(this.map[o.uuid]=o,this.setToTypedMap(o),o.dirty?this.dirtyIndex.add(o.uuid):this.dirtyIndex.delete(o.uuid),o.errorDecrypting||o.waitingForKey?this.invalidsIndex.add(o.uuid):this.invalidsIndex.delete(o.uuid),o.deleted)this.referenceMap.removeFromMap(o.uuid),this.nondeletedIndex.delete(o.uuid);else{this.nondeletedIndex.add(o.uuid);var s=o.safeContent.conflict_of;s&&this.conflictMap.establishRelationship(s,o.uuid),this.referenceMap.setAllRelationships(o.uuid,o.references.map((function(e){return e.uuid})))}}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}}else console.warn("Attempting to set 0 elements onto collection")}},{key:"discard",value:function(e){e=Array.isArray(e)?e:[e];var t=!0,n=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;this.conflictMap.removeFromMap(o.uuid),this.referenceMap.removeFromMap(o.uuid),this.deleteFromTypedMap(o),delete this.map[o.uuid]}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}}},{key:"setToTypedMap",value:function(e){var t=this.typedMap[e.content_type]||[];$n()(t,{uuid:e.uuid}),t.push(e),this.typedMap[e.content_type]=t}},{key:"deleteFromTypedMap",value:function(e){var t=this.typedMap[e.content_type]||[];$n()(t,{uuid:e.uuid}),this.typedMap[e.content_type]=t}},{key:"uuidsThatReferenceUuid",value:function(e){if(!Object(u.r)(e))throw Error("Must use uuid string");return this.referenceMap.getInverseRelationships(e)}},{key:"elementsReferencingElement",value:function(e){var t=this.uuidsThatReferenceUuid(e.uuid);return this.findAll(t)}},{key:"conflictsOf",value:function(e){var t=this.conflictMap.getDirectRelationships(e);return this.findAll(t)}}])&&_r(t.prototype,n),e}();function Sr(e){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pr(e,t){return!t||"object"!==Sr(t)&&"function"!=typeof t?Fr(e):t}function Mr(e){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Or(e,t){return(Or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tr=function(e){function t(){var e,n;xr(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Rr(Fr(n=Pr(this,(e=Mr(t)).call.apply(e,[this].concat(i)))),"source",void 0),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Or(e,t)}(t,e),n=t,i=[{key:"WithPayloads",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=new t;return r.source=n,e.length>0&&r.set(e),Object.freeze(r),r}},{key:"FromCollection",value:function(e){var n=new t(!0,Object.freeze(Object.assign({},e.map)),Object.freeze(Object.assign({},e.typedMap)),Object.freeze(e.referenceMap.makeCopy()),Object.freeze(e.conflictMap.makeCopy()));return Object.freeze(n),n}}],(r=[{key:"payloads",get:function(){return this.all()}}])&&Dr(n.prototype,r),i&&Dr(n,i),t}(Qr);function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nr(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ur(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Nr(a,r,i,o,s,"next",e)}function s(e){Nr(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kr=Lr({},E.a.Note,(function(e,t,n){var r=n.all(E.a.Component).map((function(e){return Mt(e)})).filter((function(e){return e.area===q.Editor})).find((function(t){return t.isExplicitlyEnabledForItem(e.uuid)}));if(r){var i=new Ae(r,g.c.Internal);return i.associateWithItem(t.uuid),[i.getResult()]}}));function Gr(e,t,n){return $r.apply(this,arguments)}function $r(){return($r=Ur(o.a.mark((function e(t,n,r){var i,a,s,c,l,f,A;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=[],e.next=3,h.GenerateUuid();case 3:return e.t0=e.sent,e.t1=new Date,a={uuid:e.t0,dirty:!0,dirtiedDate:e.t1,lastSyncBegan:null,lastSyncEnd:null},r&&(a.content=jr({},t.safeContent,{conflict_of:t.uuid})),s=Object(_.b)(t,a),i.push(s),c=n.elementsReferencingElement(t),e.next=12,Vr(c,[{uuid:s.uuid,content_type:s.content_type}]);case 12:return l=e.sent,Object(u.j)(i,l),(f=Kr[t.content_type])&&(A=f(t,s,n))&&Object(u.j)(i,A),e.abrupt("return",i);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yr(e,t){return Jr.apply(this,arguments)}function Jr(){return(Jr=Ur(o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],e.t0=_.b,e.t1=t,e.next=5,h.GenerateUuid();case 5:return e.t2=e.sent,e.t3=new Date,e.t4={uuid:e.t2,dirty:!0,dirtiedDate:e.t3,lastSyncBegan:null,lastSyncEnd:null},i=(0,e.t0)(e.t1,e.t4),r.push(i),a=n.elementsReferencingElement(t),e.next=13,Vr(a,[{uuid:i.uuid,content_type:i.content_type}],[t.uuid]);case 13:return s=e.sent,Object(u.j)(r,s),c=Object(_.b)(t,{deleted:!0,dirty:!1,content:void 0}),r.push(c),e.abrupt("return",r);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vr(e,t,n){return zr.apply(this,arguments)}function zr(){return(zr=Ur(o.a.mark((function e(t,n,r){var i,a,s,c,u,l,f,A,h,p,d,g,y,v,m,b,I,w,C,B,E;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=[],a=!0,s=!1,c=void 0,e.prev=4,u=t[Symbol.iterator]();case 6:if(a=(l=u.next()).done){e.next=54;break}if(f=l.value,A=f.contentObject.references.slice(),!n){e.next=29;break}for(h=!0,p=!1,d=void 0,e.prev=13,g=n[Symbol.iterator]();!(h=(y=g.next()).done);h=!0)v=y.value,A.push(v);e.next=21;break;case 17:e.prev=17,e.t0=e.catch(13),p=!0,d=e.t0;case 21:e.prev=21,e.prev=22,h||null==g.return||g.return();case 24:if(e.prev=24,!p){e.next=27;break}throw d;case 27:return e.finish(24);case 28:return e.finish(21);case 29:if(!r){e.next=49;break}for(m=!0,b=!1,I=void 0,e.prev=33,w=r[Symbol.iterator]();!(m=(C=w.next()).done);m=!0)B=C.value,$n()(A,{uuid:B});e.next=41;break;case 37:e.prev=37,e.t1=e.catch(33),b=!0,I=e.t1;case 41:e.prev=41,e.prev=42,m||null==w.return||w.return();case 44:if(e.prev=44,!b){e.next=47;break}throw I;case 47:return e.finish(44);case 48:return e.finish(41);case 49:E=Object(_.b)(f,{dirty:!0,dirtiedDate:new Date,content:jr({},f.safeContent,{references:A})}),i.push(E);case 51:a=!0,e.next=6;break;case 54:e.next=60;break;case 56:e.prev=56,e.t2=e.catch(4),s=!0,c=e.t2;case 60:e.prev=60,e.prev=61,a||null==u.return||u.return();case 63:if(e.prev=63,!s){e.next=66;break}throw c;case 66:return e.finish(63);case 67:return e.finish(60);case 68:return e.abrupt("return",i);case 69:case"end":return e.stop()}}),e,null,[[4,56,60,68],[13,17,21,29],[22,,24,28],[33,37,41,49],[42,,44,48],[61,,63,67]])})))).apply(this,arguments)}function qr(e,t){var n=Mt(e),r=Mt(t);return n.isItemContentEqualWith(r)}var Wr=n(5);function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ti(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){ei(a,r,i,o,s,"next",e)}function s(e){ei(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ri(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ii=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ri(this,"baseCollection",void 0),ri(this,"basePayload",void 0),ri(this,"applyPayload",void 0),ri(this,"source",void 0),this.baseCollection=t,this.basePayload=n,this.applyPayload=r,this.source=i}var t,n,r,i;return t=e,(n=[{key:"resultingCollection",value:(i=ti(o.a.mark((function e(){var t,n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Mt(this.basePayload),n=Mt(this.applyPayload),r=t.strategyWhenConflictingWithItem(n),e.next=5,this.payloadsByHandlingStrategy(r);case 5:return i=e.sent,e.abrupt("return",Tr.WithPayloads(i,this.source));case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"payloadsByHandlingStrategy",value:(r=ti(o.a.mark((function e(t){var n,r,i,a,s,c,l,f,A,h,p,d;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.baseCollection.conflictsOf(this.applyPayload.uuid)[0])||!qr(n,this.applyPayload)){e.next=3;break}return e.abrupt("return",[]);case 3:if(t!==ee.a.KeepLeft){e.next=7;break}return r=Object(u.n)(this.basePayload.updated_at,this.applyPayload.updated_at),i=Object(_.b)(this.basePayload,{updated_at:r,dirty:!0,dirtiedDate:new Date}),e.abrupt("return",[i]);case 7:if(t!==ee.a.KeepRight){e.next=10;break}return a=Object(_.g)(this.applyPayload,this.basePayload,[Wr.a.LastSyncBegan],{lastSyncEnd:new Date}),e.abrupt("return",[a]);case 10:if(t!==ee.a.KeepLeftDuplicateRight){e.next=17;break}return s=Object(u.n)(this.basePayload.updated_at,this.applyPayload.updated_at),c=Object(_.b)(this.basePayload,{updated_at:s,dirty:!0,dirtiedDate:new Date}),e.next=15,Gr(this.applyPayload,this.baseCollection,!0);case 15:return l=e.sent,e.abrupt("return",[c].concat(l));case 17:if(t!==ee.a.DuplicateLeftKeepRight){e.next=23;break}return e.next=20,Gr(this.basePayload,this.baseCollection,!0);case 20:return f=e.sent,A=Object(_.g)(this.applyPayload,this.basePayload,[Wr.a.LastSyncBegan],{lastSyncEnd:new Date}),e.abrupt("return",f.concat([A]));case 23:if(t!==ee.a.KeepLeftMergeRefs){e.next=28;break}return h=Object(u.I)(this.basePayload.contentObject.references,this.applyPayload.contentObject.references,["uuid","content_type"]),p=Object(u.n)(this.basePayload.updated_at,this.applyPayload.updated_at),d=Object(_.b)(this.basePayload,{updated_at:p,dirty:!0,dirtiedDate:new Date,content:Zr({},this.basePayload.safeContent,{references:h})}),e.abrupt("return",[d]);case 28:throw"Unhandled strategy";case 29:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}])&&ni(t.prototype,n),e}();function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oi(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function si(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){oi(a,r,i,o,s,"next",e)}function s(e){oi(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function li(e,t){return!t||"object"!==ai(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fi(e){return(fi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ai(e,t){return(Ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hi=function(e){function t(){return ci(this,t),li(this,fi(t).apply(this,arguments))}var n,r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ai(e,t)}(t,e),n=t,(r=[{key:"resultingCollection",value:(a=si(o.a.mark((function e(){var t,n,r,i,a,s,c,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=!0,r=!1,i=void 0,e.prev=4,a=this.applyCollection.all()[Symbol.iterator]();case 6:if(n=(s=a.next()).done){e.next=16;break}return c=s.value,e.next=10,this.payloadsByHandlingPayload(c,t);case 10:l=e.sent,f=l.map((function(e){return Object(_.b)(e,{dirty:!0,dirtiedDate:new Date,deleted:!1})})),Object(u.j)(t,f);case 13:n=!0,e.next=6;break;case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(4),r=!0,i=e.t0;case 22:e.prev=22,e.prev=23,n||null==a.return||a.return();case 25:if(e.prev=25,!r){e.next=28;break}throw i;case 28:return e.finish(25);case 29:return e.finish(22);case 30:return e.abrupt("return",Tr.WithPayloads(t,k.a.FileImport));case 31:case"end":return e.stop()}}),e,this,[[4,18,22,30],[23,,25,29]])}))),function(){return a.apply(this,arguments)})},{key:"payloadsByHandlingPayload",value:(i=si(o.a.mark((function e(t,n){var r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=n.find((function(e){return e.contentObject.conflict_of===t.uuid})))||(r=n.find((function(e){return e.uuid===t.uuid}))),r||(r=this.findBasePayload(t.uuid)),r){e.next=5;break}return e.abrupt("return",[t]);case 5:return i=new ii(this.baseCollection,r,t,k.a.FileImport),e.next=8,i.resultingCollection();case 8:return a=e.sent,e.abrupt("return",a.all());case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}])&&ui(n.prototype,r),t}(br);function pi(e){return(pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function di(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function gi(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){di(a,r,i,o,s,"next",e)}function s(e){di(a,r,i,o,s,"throw",e)}o(void 0)}))}}function yi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mi(e,t,n){return(mi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bi(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function bi(e){return(bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ii(e,t){return(Ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ci=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==pi(t)&&"function"!=typeof t?vi(e):t}(this,bi(t).call(this)),wi(vi(e),"changeObservers",[]),wi(vi(e),"collection",void 0),wi(vi(e),"emitQueue",[]),e.collection=new Qr,e}var n,r,i,a,c,l,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ii(e,t)}(t,e),n=t,(r=[{key:"getMasterCollection",value:function(){return Tr.FromCollection(this.collection)}},{key:"deinit",value:function(){mi(bi(t.prototype),"deinit",this).call(this),this.changeObservers.length=0,this.resetState()}},{key:"resetState",value:function(){this.collection=new Qr}},{key:"find",value:function(e){return this.collection.findAll(e)}},{key:"emitCollection",value:(f=gi(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.emitPayloads(t.all(),t.source,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"emitPayload",value:(l=gi(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.emitPayloads([t],n,r);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return l.apply(this,arguments)})},{key:"emitPayloads",value:(c=gi(o.a.mark((function e(t,n,r){var i=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 0===t.length&&console.warn("Attempting to emit 0 payloads."),e.abrupt("return",new Promise((function(e){i.emitQueue.push({payloads:t,source:n,sourceKey:r,resolve:e}),1===i.emitQueue.length&&i.popQueue()})));case 2:case"end":return e.stop()}}),e)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"popQueue",value:(a=gi(o.a.mark((function e(){var t,n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.emitQueue[0],n=this.mergePayloadsOntoMaster(t.payloads),r=n.changed,i=n.inserted,a=n.discarded,this.notifyChangeObservers(r,i,a,t.source,t.sourceKey),Object(u.A)(this.emitQueue,t),t.resolve(),this.emitQueue.length>0&&this.popQueue();case 6:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"mergePayloadsOntoMaster",value:function(e){var t=[],n=[],r=[],i=!0,a=!1,o=void 0;try{for(var s,c=e[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value;if(u.uuid&&u.content_type){var l=this.collection.find(u.uuid),f=l?Object(_.g)(l,u):u;f.discardable?(this.collection.discard(f),r.push(f)):(this.collection.set(f),l?t.push(f):n.push(f))}else console.error("Payload is corrupt:",u)}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}return{changed:t,inserted:n,discarded:r}}},{key:"addObserver",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Array.isArray(e)||(e=[e]);var i={types:e,priority:r,callback:t};return this.changeObservers.push(i),function(){Object(u.A)(n.changeObservers,i)}}},{key:"notifyChangeObservers",value:function(e,t,n,r,i){var a=this.changeObservers.slice().sort((function(e,t){return e.priority<t.priority?-1:1})),o=function(e,t){return t.includes(E.a.Any)?e.slice():e.slice().filter((function(e){return t.includes(e.content_type)}))},s=!0,c=!1,u=void 0;try{for(var l,f=a[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var A=l.value;A.callback(o(e,A.types),o(t,A.types),o(n,A.types),r,i)}}catch(e){c=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(c)throw u}}}},{key:"importPayloads",value:(i=gi(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new hi(this.getMasterCollection(),Tr.WithPayloads(t,k.a.FileImport)),e.next=3,n.resultingCollection();case 3:return r=e.sent,e.next=6,this.emitCollection(r);case 6:return e.abrupt("return",Object(s.b)(r.payloads));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"removePayloadLocally",value:function(e){this.collection.discard(e)}}])&&yi(n.prototype,r),t}(Nt.a),Bi=n(8);function Ei(e){return(Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _i(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ki(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){_i(a,r,i,o,s,"next",e)}function s(e){_i(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xi(e,t,n){return(xi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Di(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Di(e){return(Di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pi(e,t){return(Pi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fi=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==Ei(t)&&"function"!=typeof t?Si(e):t}(this,Di(t).call(this)),Mi(Si(r),"itemManager",void 0),Mi(Si(r),"syncService",void 0),Mi(Si(r),"resolveQueue",[]),Mi(Si(r),"registeredPredicates",[]),Mi(Si(r),"removeItemObserver",void 0),Mi(Si(r),"removeSyncObserver",void 0),r.itemManager=e,r.syncService=n,r.addObservers(),r}var n,r,i,a,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pi(e,t)}(t,e),n=t,(r=[{key:"deinit",value:function(){this.syncService=void 0,this.itemManager=void 0,this.resolveQueue.length=0,this.registeredPredicates.length=0,this.removeItemObserver(),this.removeItemObserver=void 0,this.removeSyncObserver(),this.removeSyncObserver=void 0,xi(Di(t.prototype),"deinit",this).call(this)}},{key:"popResolveQueue",value:function(){var e=this.resolveQueue.slice();return this.resolveQueue=[],e}},{key:"addObservers",value:function(){var e=this;this.removeItemObserver=this.itemManager.addObserver(E.a.Any,(function(t,n){n.length>0&&(e.resolveQueue=e.resolveQueue.concat(n))})),this.removeSyncObserver=this.syncService.addEventObserver(function(){var t=ki(o.a.mark((function t(n){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n!==Bi.a.DownloadFirstSyncCompleted&&n!==Bi.a.FullSyncCompleted){t.next=3;break}return t.next=3,e.resolveSingletonsForItems(e.popResolveQueue(),n);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"registerPredicate",value:function(e){this.registeredPredicates.push(e)}},{key:"validItemsMatchingPredicate",value:function(e){return this.itemManager.itemsMatchingPredicate(e).filter((function(e){return!e.errorDecrypting}))}},{key:"resolveSingletonsForItems",value:(c=ki(o.a.mark((function e(t,n){var r,i,a,s,c,l,f,A,h,p,d,g=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=function(e){var t=!0,n=!1,r=void 0;try{for(var i,a=g.registeredPredicates[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;if(e.satisfiesPredicate(o))return g.validItemsMatchingPredicate(o)}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}},i=function(e){return e.isSingleton?g.validItemsMatchingPredicate(e.singletonPredicate):null},a=function(e){var t=i(e);return t&&t.length>0?t:r(e)},s=[],c=!0,l=!1,f=void 0,e.prev=7,A=t[Symbol.iterator]();case 9:if(c=(h=A.next()).done){e.next=22;break}if(p=h.value,!s.includes(p)){e.next=13;break}return e.abrupt("continue",19);case 13:if(d=a(p),Object(u.j)(s,d||[]),d&&!(d.length<=1)){e.next=17;break}return e.abrupt("continue",19);case 17:return e.next=19,this.handleStrategy(d,p.singletonStrategy);case 19:c=!0,e.next=9;break;case 22:e.next=28;break;case 24:e.prev=24,e.t0=e.catch(7),l=!0,f=e.t0;case 28:e.prev=28,e.prev=29,c||null==A.return||A.return();case 31:if(e.prev=31,!l){e.next=34;break}throw f;case 34:return e.finish(31);case 35:return e.finish(28);case 36:s.length>0&&n===Bi.a.FullSyncCompleted&&setTimeout((function(){g.syncService.sync()}));case 37:case"end":return e.stop()}}),e,this,[[7,24,28,36],[29,,31,35]])}))),function(e,t){return c.apply(this,arguments)})},{key:"handleStrategy",value:(a=ki(o.a.mark((function e(t,n){var r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n===g.e.KeepEarliest){e.next=2;break}throw"Unhandled singleton strategy";case 2:return r=t.sort((function(e,t){return e.errorDecrypting?1:t.errorDecrypting||e.created_at<t.created_at?-1:1})),i=Object(u.d)(r,0),e.next=6,this.itemManager.setItemsToBeDeleted(Object(s.b)(i));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"findOrCreateSingleton",value:(i=ki(o.a.mark((function e(t,n,r){var i=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=ki(o.a.mark((function e(a){var c,u,l,f,A,p,d;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((c=i.validItemsMatchingPredicate(t)).length>0)){e.next=3;break}return e.abrupt("return",a(c[0]));case 3:if(i.syncService.getLastSyncDate()){e.next=14;break}return u=!1,l=i.itemManager.addObserver(n,(function(e,n){if(n.length>0){var r=i.itemManager.subItemsMatchingPredicates(n,[t]);r.length>0&&(u=!0,a(r[0]))}})),e.next=8,i.syncService.sync();case 8:if(l(),!u){e.next=11;break}return e.abrupt("return");case 11:if(!((f=i.validItemsMatchingPredicate(t)).length>0)){e.next=14;break}return e.abrupt("return",a(f[0]));case 14:return A=i.itemManager.itemsMatchingPredicate(t).filter((function(e){return e.errorDecrypting})),e.next=17,i.itemManager.setItemsToBeDeleted(Object(s.b)(A));case 17:return e.t0=_.e,e.next=20,h.GenerateUuid();case 20:return e.t1=e.sent,e.t2=n,e.t3=r,e.t4=new Date,e.t5={uuid:e.t1,content_type:e.t2,content:e.t3,dirty:!0,dirtiedDate:e.t4},p=(0,e.t0)(e.t5),e.next=28,i.itemManager.emitItemFromPayload(p);case 28:if(d=e.sent){e.next=31;break}throw Error("Created singleton item should not be null ".concat(n));case 31:return e.next=33,i.syncService.sync();case 33:return e.abrupt("return",a(d));case 34:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e,t,n){return i.apply(this,arguments)})}])&&Qi(n.prototype,r),t}(Nt.a);function Oi(e){return(Oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ri(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ti(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Ri(a,r,i,o,s,"next",e)}function s(e){Ri(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Hi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ji(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ni(e,t,n){return(Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ui(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Ui(e){return(Ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Li(e,t){return(Li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gi=function(e){function t(e,n,r,i,a,o,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c=function(e,t){return!t||"object"!==Oi(t)&&"function"!=typeof t?ji(e):t}(this,Ui(t).call(this)),Ki(ji(c),"alertService",void 0),Ki(ji(c),"httpService",void 0),Ki(ji(c),"modelManager",void 0),Ki(ji(c),"itemManager",void 0),Ki(ji(c),"protocolService",void 0),Ki(ji(c),"syncService",void 0),Ki(ji(c),"previousPasswords",[]),c.itemManager=e,c.alertService=n,c.deviceInterface=r,c.httpService=i,c.modelManager=a,c.protocolService=o,c.syncService=s,c.previousPasswords=[],c}var n,r,i,a,s,c,u,l,f,A,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Li(e,t)}(t,e),n=t,(r=[{key:"deinit",value:function(){this.itemManager=void 0,this.alertService=void 0,this.deviceInterface=void 0,this.httpService=void 0,this.modelManager=void 0,this.protocolService=void 0,this.syncService=void 0,this.previousPasswords.length=0,Ni(Ui(t.prototype),"deinit",this).call(this)}},{key:"getExtensions",value:function(){return this.itemManager.nonErroredItemsForContentType(E.a.ActionsExtension)}},{key:"extensionsInContextOfItem",value:function(e){return this.getExtensions().filter((function(t){return t.supported_types.includes(e.content_type)||t.actionsWithContextForItem(e).length>0}))}},{key:"loadExtensionInContextOfItem",value:(h=Ti(o.a.mark((function e(t,n){var r,i=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={content_type:n.content_type,item_uuid:n.uuid},e.abrupt("return",this.httpService.getAbsolute(t.url,r).then((function(e){var n=e.description||t.description,r=e.supported_types||t.supported_types,a=e.actions?e.actions.map((function(e){return new Pe(e)})):[];return i.itemManager.changeActionsExtension(t.uuid,(function(e){e.description=n,e.supported_types=r,e.actions=a})),t})).catch((function(e){return console.error("Error loading extension",e),null})));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"runAction",value:(A=Ti(o.a.mark((function e(t,n,r){var i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.running=!0,e.t0=t.verb,e.next="get"===e.t0?4:"render"===e.t0?8:"show"===e.t0?12:"post"===e.t0?16:20;break;case 4:return e.next=6,this.handleGetAction(t,r);case 6:return i=e.sent,e.abrupt("break",21);case 8:return e.next=10,this.handleRenderAction(t,r);case 10:return i=e.sent,e.abrupt("break",21);case 12:return e.next=14,this.handleShowAction(t);case 14:return i=e.sent,e.abrupt("break",21);case 16:return e.next=18,this.handlePostAction(t,n);case 18:return i=e.sent,e.abrupt("break",21);case 20:return e.abrupt("break",21);case 21:return t.lastExecuted=new Date,t.running=!1,e.abrupt("return",i);case 24:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return A.apply(this,arguments)})},{key:"handleGetAction",value:(f=Ti(o.a.mark((function e(t,n){var r=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){r.alertService.confirm("Are you sure you want to replace the current note contents with this action's results?",void 0,void 0,void 0,(function(){r.runConfirmedGetAction(t,n).then((function(t){e(t)}))}))})));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return f.apply(this,arguments)})},{key:"runConfirmedGetAction",value:(l=Ti(o.a.mark((function e(t,n){var r,i,a=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.httpService.getAbsolute(t.url).catch((function(e){var n=e&&e.error||{message:"An issue occurred while processing this action. Please try again."};return a.alertService.alert(n.message),t.error=!0,{error:n}}));case 2:if(!(r=e.sent).error){e.next=5;break}return e.abrupt("return",{response:r});case 5:return t.error=!1,e.next=8,this.payloadByDecryptingResponse(r,n);case 8:return i=e.sent,e.next=11,this.modelManager.emitPayload(Object(_.b)(i,{dirty:!0,dirtiedDate:new Date}),k.a.RemoteActionRetrieved);case 11:return this.syncService.sync(),e.abrupt("return",{response:r,item:r.item});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"handleRenderAction",value:(u=Ti(o.a.mark((function e(t,n){var r,i=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.httpService.getAbsolute(t.url).then(function(){var e=Ti(o.a.mark((function e(r){var a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.error=!1,e.next=3,i.payloadByDecryptingResponse(r,n);case 3:if(!(a=e.sent)){e.next=7;break}return s=i.itemManager.createItem(a.content_type,a.contentObject),e.abrupt("return",{response:r,item:s});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){var n=e&&e.error||{message:"An issue occurred while processing this action. Please try again."};return i.alertService.alert(n.message),t.error=!0,{error:n}}));case 2:return r=e.sent,e.abrupt("return",{response:r});case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"payloadByDecryptingResponse",value:(c=Ti(o.a.mark((function e(t,n,r){var i,a,s,c,u,l,f,A,h,p,d,g;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Object(_.e)(t.item),e.next=3,this.protocolService.payloadByDecryptingPayload(i,r);case 3:if((a=e.sent).errorDecrypting){e.next=6;break}return e.abrupt("return",a);case 6:if(t.auth_params){e.next=9;break}return this.alertService.alert("We were unable to decrypt this revision using your current keys, \n and this revision is missing metadata that would allow us to try different \n keys to decrypt it. This can likely be fixed with some manual intervention. \n Please email hello@standardnotes.org for assistance."),e.abrupt("return",void 0);case 9:s=[],c=!0,u=!1,l=void 0,e.prev=13,f=this.previousPasswords[Symbol.iterator]();case 15:if(c=(A=f.next()).done){e.next=33;break}if(h=A.value,!s.includes(h)){e.next=19;break}return e.abrupt("continue",30);case 19:return s.push(h),e.next=22,this.protocolService.computeRootKey(h,t.auth_params);case 22:if(p=e.sent){e.next=25;break}return e.abrupt("continue",30);case 25:return e.next=27,this.payloadByDecryptingResponse(t,n,p);case 27:if(!(d=e.sent)){e.next=30;break}return e.abrupt("return",d);case 30:c=!0,e.next=15;break;case 33:e.next=39;break;case 35:e.prev=35,e.t0=e.catch(13),u=!0,l=e.t0;case 39:e.prev=39,e.prev=40,c||null==f.return||f.return();case 42:if(e.prev=42,!u){e.next=45;break}throw l;case 45:return e.finish(42);case 46:return e.finish(39);case 47:return e.next=49,n();case 49:return g=e.sent,this.previousPasswords.push(g),e.abrupt("return",this.payloadByDecryptingResponse(t,n,r));case 52:case"end":return e.stop()}}),e,this,[[13,35,39,47],[40,,42,46]])}))),function(e,t,n){return c.apply(this,arguments)})},{key:"handlePostAction",value:(s=Ti(o.a.mark((function e(t,n){var r,i,a,s=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="decrypted"===t.access_type,e.next=3,this.outgoingPayloadForItem(n,r);case 3:return i=e.sent,a={items:[i]},e.abrupt("return",this.httpService.postAbsolute(t.url,a).then((function(e){return t.error=!1,{response:e}})).catch((function(e){return t.error=!0,console.error("Action error response:",e),s.alertService.alert("An issue occurred while processing this action. Please try again."),{response:e}})));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"handleShowAction",value:(a=Ti(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.deviceInterface.openUrl(t.url),e.abrupt("return",{response:void 0});case 2:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"outgoingPayloadForItem",value:(i=Ti(o.a.mark((function e(t){var n,r,i,a=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]&&a[1],r=n?jt.a.FileDecrypted:jt.a.FileEncrypted,e.next=4,this.protocolService.payloadByEncryptingPayload(t.payloadRepresentation(),r);case 4:return i=e.sent,e.abrupt("return",i.ejected());case 6:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}])&&Hi(n.prototype,r),t}(Nt.a);function $i(e){return($i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yi(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ji(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zi(e,t){return!t||"object"!==$i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qi(e){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wi(e,t){return(Wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xi=function(e){function t(){return Ji(this,t),zi(this,qi(t).apply(this,arguments))}var n,r,i,a,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wi(e,t)}(t,e),n=t,r=[{key:"compare",value:function(e){if(this.version!==e.version)return!1;var t=this.serverPassword&&e.serverPassword;return this.masterKey===e.masterKey&&(!t||this.serverPassword===e.serverPassword)}},{key:"getPersistableValue",value:function(){var e={version:this.version};return this.masterKey&&(e.masterKey=this.masterKey),this.dataAuthenticationKey&&(e.dataAuthenticationKey=this.dataAuthenticationKey),e}},{key:"version",get:function(){if(!this.payload.safeContent.version)throw"Attempting to create key without version.";return this.payload.safeContent.version}},{key:"isRootKey",get:function(){return!0}},{key:"itemsKey",get:function(){return this.masterKey}},{key:"masterKey",get:function(){return this.payload.safeContent.masterKey}},{key:"serverPassword",get:function(){return this.payload.safeContent.serverPassword}},{key:"dataAuthenticationKey",get:function(){return this.payload.safeContent.dataAuthenticationKey}}],i=[{key:"Create",value:(a=o.a.mark((function e(n,r){var i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=4;break}return e.next=3,h.GenerateUuid();case 3:r=e.sent;case 4:return n.version||(n.dataAuthenticationKey?n.version=yt.a.V002:n.version=yt.a.V001),i=Object(_.e)({uuid:r,content_type:E.a.RootKey,content:Object(s.a)(n)}),e.abrupt("return",new t(i));case 7:case"end":return e.stop()}}),e)})),c=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=a.apply(e,t);function o(e){Yi(i,n,r,o,s,"next",e)}function s(e){Yi(i,n,r,o,s,"throw",e)}o(void 0)}))},function(e,t){return c.apply(this,arguments)})}],r&&Vi(n.prototype,r),i&&Vi(n,i),t}(g.d);function Zi(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ea(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Zi(a,r,i,o,s,"next",e)}function s(e){Zi(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ta(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ra=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),na(this,"services",void 0),na(this,"challengeResponder",void 0),na(this,"stageHandlers",{}),na(this,"onDoneHandler",void 0),this.services=t,this.challengeResponder=n,this.registerStageHandlers()}var t,n,r,i,a;return t=e,n=[{key:"registerStageHandler",value:function(e,t){this.stageHandlers[e]=t}},{key:"markDone",value:function(){this.onDoneHandler&&this.onDoneHandler(),this.onDoneHandler=void 0}},{key:"onDone",value:function(e){this.onDoneHandler=e}},{key:"handleStage",value:(a=ea(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.stageHandlers[t])){e.next=4;break}return e.next=4,n();case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"requestChallengeResponse",value:(i=ea(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.challengeResponder(t,n,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})}],r=[{key:"timestamp",value:function(){throw"Must override"}}],n&&ta(t.prototype,n),r&&ta(t,r),e}();function ia(e){return(ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aa(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function oa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sa(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ca(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){sa(a,r,i,o,s,"next",e)}function s(e){sa(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function la(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fa(e,t){return!t||"object"!==ia(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Aa(e){return(Aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ha(e,t){return(ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var pa={WebPasscodeParamsKey:"offlineParams",MobilePasscodeParamsKey:"pc_params",AllAccountKeyParamsKey:"auth_params",WebEncryptedStorageKey:"encryptedStorage",MobileWrappedRootKeyKey:"encrypted_account_keys",AllMigrations:"migrations"},da=function(e){function t(){return ua(this,t),fa(this,Aa(t).apply(this,arguments))}var n,r,a,c,l,f,A,g,y,v,m,I,w;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ha(e,t)}(t,e),n=t,r=[{key:"registerStageHandlers",value:function(){var e=this;this.registerStageHandler(i.PreparingForLaunch_0,ca(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Vn(e.services.environment)){t.next=4;break}return t.abrupt("return",e.migrateStorageStructureForWebDesktop());case 4:if(!zn(e.services.environment)){t.next=6;break}return t.abrupt("return",e.migrateStorageStructureForMobile());case 6:case"end":return t.stop()}}),t)})))),this.registerStageHandler(i.StorageDecrypted_09,ca(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.migrateArbitraryRawStorageToManagedStorageAllPlatforms();case 2:return t.next=4,e.migrateSessionStorage();case 4:return t.next=6,e.deleteLegacyStorageValues();case 6:case"end":return t.stop()}}),t)})))),this.registerStageHandler(i.LoadingDatabase_11,ca(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.createDefaultItemsKeyForAllPlatforms();case 2:e.markDone();case 3:case"end":return t.stop()}}),t)}))))}},{key:"migrateStorageStructureForWebDesktop",value:(w=ca(o.a.mark((function e(){var t,n,r,i,a,s,c,l,f,A,h,p,d,g,y,v,m,b,I;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.services.deviceInterface,oa(t={},Ht.Wrapped,{}),oa(t,Ht.Unwrapped,{}),oa(t,Ht.Nonwrapped,{}),r=t,e.next=4,n.getJsonParsedStorageValue(pa.AllAccountKeyParamsKey);case 4:return(i=e.sent)&&(r.nonwrapped[Dt.RootKeyParams]=i),e.next=8,n.getJsonParsedStorageValue(pa.WebEncryptedStorageKey);case 8:if(!(a=e.sent)){e.next=36;break}return s=Object(_.e)(a),e.next=13,this.webDesktopHelperGetPasscodeKeyAndDecryptEncryptedStorage(s);case 13:if(c=e.sent,l=c.key,f=c.decryptedStoragePayload,A=c.keyParams,r.nonwrapped[Dt.RootKeyWrapperKeyParams]=A.getPortableValue(),h=Object(u.a)(f.contentObject.storage),p=Object(u.u)(h),r.nonwrapped[Dt.RootKeyParams]=p[pa.AllAccountKeyParamsKey],d=l,Object(u.p)(p.mk)){e.next=31;break}return e.next=26,this.webDesktopHelperExtractAndWrapAccountKeysFromValueStore(l,p);case 26:g=e.sent,y=g.accountKey,v=g.wrappedKey,d=y,r.nonwrapped[Dt.WrappedRootKey]=v;case 31:return e.next=33,this.webDesktopHelperEncryptStorage(d,f,p);case 33:r.wrapped=e.sent,e.next=55;break;case 36:return e.next=38,this.services.deviceInterface.getRawStorageValue("ak");case 38:return m=e.sent,b=Object(u.p)(m)?yt.a.V002:yt.a.V003,e.t0=Xi,e.next=43,this.services.deviceInterface.getRawStorageValue("mk");case 43:return e.t1=e.sent,e.next=46,this.services.deviceInterface.getRawStorageValue("pw");case 46:return e.t2=e.sent,e.t3=m,e.t4=b,e.t5={masterKey:e.t1,serverPassword:e.t2,dataAuthenticationKey:e.t3,version:e.t4},e.next=52,e.t0.Create.call(e.t0,e.t5);case 52:return I=e.sent,e.next=55,this.services.deviceInterface.setKeychainValue(I.getPersistableValue());case 55:return e.next=57,this.allPlatformHelperSetStorageStructure(r);case 57:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"allPlatformHelperSetStorageStructure",value:(I=ca(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=qt.defaultValuesObject(t.wrapped,t.unwrapped,t.nonwrapped))[Ht.Unwrapped]=void 0,e.next=4,this.services.deviceInterface.setRawStorageValue(Ft(this.services.namespace,xt.StorageObject),JSON.stringify(n));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"webDesktopHelperGetPasscodeKeyAndDecryptEncryptedStorage",value:(m=ca(o.a.mark((function e(t){var n,r,i,a,s,c,u,l,f,A;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.deviceInterface.getJsonParsedStorageValue(pa.WebPasscodeParamsKey);case 2:n=e.sent,r=this.services.protocolService.createKeyParams(n),a=!0,c=new b([p.LocalPasscode],d.Migration);case 6:if(!a){e.next=23;break}return u={},e.next=10,this.requestChallengeResponse(c,!1,u);case 10:return l=e.sent,f=l.getValueForType(p.LocalPasscode),A=f.value,e.next=15,this.services.protocolService.computeRootKey(A,r);case 15:return s=e.sent,e.next=18,this.services.protocolService.payloadByDecryptingPayload(t,s);case 18:i=e.sent,a=i.errorDecrypting,u.orchestrator.setValidationStatus(f,!i.errorDecrypting),e.next=6;break;case 23:return e.abrupt("return",{decryptedStoragePayload:i,key:s,keyParams:r});case 24:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"webDesktopHelperExtractAndWrapAccountKeysFromValueStore",value:(v=ca(o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.ak?yt.a.V003:yt.a.V002,e.next=3,Xi.Create({masterKey:n.mk,serverPassword:n.pw,dataAuthenticationKey:n.ak,version:i});case 3:if(a=e.sent,delete n.mk,delete n.pw,delete n.ak,s=Object(_.e)(a),!t){e.next=12;break}return e.next=11,this.services.protocolService.payloadByEncryptingPayload(s,jt.a.LocalStorageEncrypted,t);case 11:c=e.sent;case 12:return e.abrupt("return",{accountKey:a,wrappedKey:null===(r=c)||void 0===r?void 0:r.ejected()});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"webDesktopHelperEncryptStorage",value:(y=ca(o.a.mark((function e(t,n,r){var i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.protocolService.payloadByEncryptingPayload(Object(_.b)(n,{content_type:E.a.EncryptedStorage,content:r}),jt.a.LocalStoragePreferEncrypted,t);case 2:return i=e.sent,e.abrupt("return",i.ejected());case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return y.apply(this,arguments)})},{key:"migrateStorageStructureForMobile",value:(g=ca(o.a.mark((function e(){var t,n,r,i,a,c,l,f,A,g,y,v,m,I,w,C,B,k,Q,S,x,D=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.deviceInterface.getJsonParsedStorageValue(pa.MobileWrappedRootKeyKey);case 2:return r=e.sent,e.next=5,this.services.deviceInterface.getJsonParsedStorageValue(pa.AllAccountKeyParamsKey);case 5:return i=e.sent,e.next=8,this.services.deviceInterface.getJsonParsedStorageValue(pa.MobilePasscodeParamsKey);case 8:return a=e.sent,oa(n={},Ht.Nonwrapped,(oa(t={},Dt.WrappedRootKey,r),oa(t,Dt.RootKeyWrapperKeyParams,a),oa(t,Dt.RootKeyParams,i),t)),oa(n,Ht.Unwrapped,{}),oa(n,Ht.Wrapped,{}),c=n,e.next=12,this.services.deviceInterface.getKeychainValue();case 12:if(l=e.sent,!a){e.next=56;break}if(f=this.services.protocolService.createKeyParams(a),A=function(){var e=ca(o.a.mark((function e(){var t,n,r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l.offline.pw,r=new b([p.LocalPasscode],d.Migration),i={};case 3:if(n&&n.serverPassword===t){e.next=15;break}return e.next=6,D.requestChallengeResponse(r,!1,i);case 6:return a=e.sent,s=a.getValueForType(p.LocalPasscode),c=s.value,e.next=11,D.services.protocolService.computeRootKey(c,f);case 11:n=e.sent,i.orchestrator.setValidationStatus(s,n.serverPassword===t),e.next=3;break;case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=l.offline.timing,c.unwrapped[Dt.MobilePasscodeTiming]=g,!r){e.next=36;break}return e.next=21,A();case 21:return y=e.sent,e.next=24,this.services.protocolService.payloadByDecryptingPayload(Object(_.e)(r),y);case 24:return v=e.sent,m=v.contentObject.accountKeys,I=Object(u.p)(m.ak)?yt.a.V002:yt.a.V003,w=Object(_.b)(v,{content:{masterKey:m.mk,serverPassword:m.pw,dataAuthenticationKey:m.ak,version:m.version||I,accountKeys:null}}),e.next=30,this.services.protocolService.payloadByEncryptingPayload(w,jt.a.LocalStoragePreferEncrypted,y);case 30:return C=e.sent,c.nonwrapped[Dt.WrappedRootKey]=C.ejected(),e.next=34,this.services.deviceInterface.clearKeychainValue();case 34:e.next=54;break;case 36:if(r){e.next=54;break}return e.next=39,A();case 39:return B=e.sent,e.t0=_.e,e.next=43,h.GenerateUuid();case 43:return e.t1=e.sent,e.t2=Object(s.a)(c.unwrapped),e.t3=E.a.EncryptedStorage,e.t4={uuid:e.t1,content:e.t2,content_type:e.t3},k=(0,e.t0)(e.t4),e.next=50,this.services.protocolService.payloadByEncryptingPayload(k,jt.a.LocalStoragePreferEncrypted,B);case 50:return Q=e.sent,c.wrapped=Q.ejected(),e.next=54,this.services.deviceInterface.clearKeychainValue();case 54:e.next=64;break;case 56:if(!l||!l.mk){e.next=64;break}return S=Object(u.p)(l.ak)?yt.a.V002:yt.a.V003,e.next=61,Xi.Create({masterKey:l.mk,serverPassword:l.pw,dataAuthenticationKey:l.ak,version:l.version||S});case 61:return x=e.sent,e.next=64,this.services.deviceInterface.setKeychainValue(x.getPersistableValue());case 64:return e.next=66,this.allPlatformHelperSetStorageStructure(c);case 66:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"migrateArbitraryRawStorageToManagedStorageAllPlatforms",value:(A=ca(o.a.mark((function e(){var t,n,r,i,a,s,c,l,f,A,h,p,d,g;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.deviceInterface.getAllRawStorageKeyValues();case 2:t=e.sent,n=Object(u.w)(pa),r=function(e){try{return JSON.parse(e)}catch(t){return e}},i=this.services.namespace,a=!0,s=!1,c=void 0,e.prev=9,l=t[Symbol.iterator]();case 11:if(a=(f=l.next()).done){e.next=25;break}if(A=f.value,h=A.key,p=A.value,d=i&&i.length>0&&h.startsWith(i),!n.includes(h)&&!d){e.next=18;break}return e.abrupt("continue",22);case 18:if(Object(u.p)(p)){e.next=22;break}return g=r(p),e.next=22,this.services.storageService.setValue(h,g);case 22:a=!0,e.next=11;break;case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(9),s=!0,c=e.t0;case 31:e.prev=31,e.prev=32,a||null==l.return||l.return();case 34:if(e.prev=34,!s){e.next=37;break}throw c;case 37:return e.finish(34);case 38:return e.finish(31);case 39:case"end":return e.stop()}}),e,this,[[9,27,31,39],[32,,34,38]])}))),function(){return A.apply(this,arguments)})},{key:"deleteLegacyStorageValues",value:(f=ca(o.a.mark((function e(){var t,n,r,i,a,s,c,l;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=["mk","ak","jwt","ephemeral","cachedThemes"],n=[].concat(aa(Object(u.w)(Dt)),aa(Object(u.w)(pa)),t),r=!0,i=!1,a=void 0,e.prev=5,s=n[Symbol.iterator]();case 7:if(r=(c=s.next()).done){e.next=14;break}return l=c.value,e.next=11,this.services.deviceInterface.removeRawStorageValue(l);case 11:r=!0,e.next=7;break;case 14:e.next=20;break;case 16:e.prev=16,e.t0=e.catch(5),i=!0,a=e.t0;case 20:e.prev=20,e.prev=21,r||null==s.return||s.return();case 23:if(e.prev=23,!i){e.next=26;break}throw a;case 26:return e.finish(23);case 27:return e.finish(20);case 28:case"end":return e.stop()}}),e,this,[[5,16,20,28],[21,,23,27]])}))),function(){return f.apply(this,arguments)})},{key:"migrateSessionStorage",value:(l=ca(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.services.storageService.getValue("jwt");case 3:if(t=e.sent){e.next=6;break}return e.abrupt("return");case 6:return n=new sn(t),e.next=9,this.services.storageService.setValue(Dt.Session,n);case 9:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"createDefaultItemsKeyForAllPlatforms",value:(c=ca(o.a.mark((function e(){var t,n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.protocolService.getRootKey();case 2:if(!(t=e.sent)){e.next=19;break}return e.next=6,this.services.protocolService.getRootKeyParams();case 6:return n=e.sent,e.t0=_.e,e.next=10,h.GenerateUuid();case 10:return e.t1=e.sent,e.t2=E.a.ItemsKey,e.t3=Object(s.a)({itemsKey:t.masterKey,dataAuthenticationKey:t.dataAuthenticationKey,version:n.version}),e.t4=new Date,e.t5={uuid:e.t1,content_type:e.t2,content:e.t3,dirty:!0,dirtiedDate:e.t4},r=(0,e.t0)(e.t5),i=Mt(r),e.next=19,this.services.itemManager.emitItemFromPayload(i.payloadRepresentation(),k.a.LocalChanged);case 19:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})}],a=[{key:"timestamp",value:function(){return new Date("2020-01-15").getTime()}}],r&&la(n.prototype,r),a&&la(n,a),t}(ra);function ga(e){return(ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ya(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function va(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){ya(a,r,i,o,s,"next",e)}function s(e){ya(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ia(e,t){return!t||"object"!==ga(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wa(e){return(wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ca(e,t){return(Ca=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ba=function(e){function t(){return ma(this,t),Ia(this,wa(t).apply(this,arguments))}var n,r,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ca(e,t)}(t,e),n=t,r=[{key:"registerStageHandlers",value:function(){var e=this;this.registerStageHandler(i.PreparingForLaunch_0,va(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.migrateMigrationTimestampAllPlatforms();case 2:e.markDone();case 3:case"end":return t.stop()}}),t)}))))}},{key:"migrateMigrationTimestampAllPlatforms",value:(s=va(o.a.mark((function e(){var t,n,r,i,a,s,c,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!1,n=0,r=["migrations","ephemeral","user","cachedThemes","syncToken","encryptedStorage"];case 3:if(!(n<r.length)){e.next=14;break}return i=r[n],e.next=7,this.services.deviceInterface.getRawStorageValue(i);case 7:if(!e.sent){e.next=11;break}return t=!0,e.abrupt("break",14);case 11:n++,e.next=3;break;case 14:return a=Ft(this.services.namespace,xt.LastMigrationTimestamp),e.next=17,this.services.deviceInterface.getRawStorageValue(a);case 17:if(s=e.sent,(c=!Object(u.p)(s))||!t){e.next=25;break}return l=new Date(0).getTime(),e.next=23,this.services.deviceInterface.setRawStorageValue(a,l);case 23:e.next=32;break;case 25:if(c||t){e.next=31;break}return f=(new Date).getTime(),e.next=29,this.services.deviceInterface.setRawStorageValue(a,f);case 29:e.next=32;break;case 31:case 32:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})}],a=[{key:"timestamp",value:function(){return new Date("2020-01-01").getTime()}}],r&&ba(n.prototype,r),a&&ba(n,a),t}(ra);function Ea(e){return(Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _a(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ka(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){_a(a,r,i,o,s,"next",e)}function s(e){_a(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Qa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(e,t,n){return(xa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Da(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Da(e){return(Da=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fa=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==Ea(t)&&"function"!=typeof t?Sa(e):t}(this,Da(t).call(this)),Ma(Sa(r),"challengeResponder",void 0),Ma(Sa(r),"activeMigrations",void 0),Ma(Sa(r),"services",void 0),Ma(Sa(r),"handledFullSyncStage",!1),r.services=e,r.challengeResponder=n,r}var n,a,s,l,f,A,h,p,d,g;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pa(e,t)}(t,e),n=t,(a=[{key:"deinit",value:function(){this.services=void 0,this.challengeResponder=void 0,this.activeMigrations&&(this.activeMigrations.length=0),xa(Da(t.prototype),"deinit",this).call(this)}},{key:"initialize",value:(g=ka(o.a.mark((function e(){var t,n=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.runBaseMigration();case 2:return e.next=4,this.getRequiredMigrations();case 4:this.activeMigrations=e.sent,this.activeMigrations.length>0&&(t=Object(u.v)(this.activeMigrations)).onDone(ka(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.saveLastMigrationTimestamp(t.constructor.timestamp());case 2:case"end":return e.stop()}}),e)}))));case 6:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"handleApplicationStage",value:(d=ka(o.a.mark((function e(n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xa(Da(t.prototype),"handleApplicationStage",this).call(this,n);case 2:return e.next=4,this.handleStage(n);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"handleApplicationEvent",value:(p=ka(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==c.a.SignedIn){e.next=5;break}return e.next=3,this.handleStage(i.SignedIn_30);case 3:e.next=10;break;case 5:if(t!==c.a.CompletedFullSync){e.next=10;break}if(this.handledFullSyncStage){e.next=10;break}return this.handledFullSyncStage=!0,e.next=10,this.handleStage(i.FullSyncCompleted_13);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"runBaseMigration",value:(h=ka(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Ba(this.services),e.next=3,t.handleStage(i.PreparingForLaunch_0);case 3:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"getRequiredMigrations",value:(A=ka(o.a.mark((function e(){var t,n,i,a,s,c,u,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getLastMigrationTimestamp();case 2:for(t=e.sent,n=[],i=Object.keys(r).map((function(e){return r[e]})).sort((function(e,t){var n=e.timestamp(),r=t.timestamp();return n<r?-1:n>r?1:0})),a=!0,s=!1,c=void 0,e.prev=8,u=i[Symbol.iterator]();!(a=(l=u.next()).done);a=!0)(f=l.value).timestamp()>t&&n.push(new f(this.services,this.challengeResponder));e.next=16;break;case 12:e.prev=12,e.t0=e.catch(8),s=!0,c=e.t0;case 16:e.prev=16,e.prev=17,a||null==u.return||u.return();case 19:if(e.prev=19,!s){e.next=22;break}throw c;case 22:return e.finish(19);case 23:return e.finish(16);case 24:return e.abrupt("return",n);case 25:case"end":return e.stop()}}),e,this,[[8,12,16,24],[17,,19,23]])}))),function(){return A.apply(this,arguments)})},{key:"getTimeStampKey",value:function(){return Ft(this.services.namespace,xt.LastMigrationTimestamp)}},{key:"getLastMigrationTimestamp",value:(f=ka(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.deviceInterface.getRawStorageValue(this.getTimeStampKey());case 2:if(t=e.sent,!Object(u.p)(t)){e.next=5;break}throw"Timestamp should not be null. Be sure to run base migration first.";case 5:return e.abrupt("return",JSON.parse(t));case 6:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"saveLastMigrationTimestamp",value:(l=ka(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.deviceInterface.setRawStorageValue(this.getTimeStampKey(),JSON.stringify(t));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"handleStage",value:(s=ka(o.a.mark((function e(t){var n,r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!0,r=!1,i=void 0,e.prev=3,a=this.activeMigrations[Symbol.iterator]();case 5:if(n=(s=a.next()).done){e.next=12;break}return c=s.value,e.next=9,c.handleStage(t);case 9:n=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),r=!0,i=e.t0;case 18:e.prev=18,e.prev=19,n||null==a.return||a.return();case 21:if(e.prev=21,!r){e.next=24;break}throw i;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}}),e,this,[[3,14,18,26],[19,,21,25]])}))),function(e){return s.apply(this,arguments)})}])&&Qa(n.prototype,a),t}(Nt.a);function Oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ra(e){return new Ua(e)}var Ta,Ha,ja,Na,Ua=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=void 0,(n="content")in this?Object.defineProperty(this,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[n]=r,this.content=t}var t,n;return t=e,(n=[{key:"getPortableValue",value:function(){return Object(yt.b)(this.version,yt.a.V003)>=0?Object(u.x)(this.content,["pw_cost"]):this.content}},{key:"isKeyParamsObject",get:function(){return!0}},{key:"kdfIterations",get:function(){return this.content.pw_cost}},{key:"seed",get:function(){return this.content.pw_nonce}},{key:"identifier",get:function(){return this.content.identifier||this.content.email}},{key:"salt",get:function(){return this.content.pw_salt}},{key:"version",get:function(){return this.content.version}}])&&Oa(t.prototype,n),e}();!function(e){e[e.SaltSeedLength=128]="SaltSeedLength",e[e.PbkdfMinCost=3e3]="PbkdfMinCost",e[e.PbkdfOutputLength=512]="PbkdfOutputLength",e[e.EncryptionKeyLength=256]="EncryptionKeyLength"}(Ta||(Ta={})),function(e){e[e.SaltSeedLength=128]="SaltSeedLength",e[e.PbkdfMinCost=3e3]="PbkdfMinCost",e[e.PbkdfOutputLength=768]="PbkdfOutputLength",e[e.EncryptionKeyLength=256]="EncryptionKeyLength",e[e.EncryptionIvLength=128]="EncryptionIvLength"}(Ha||(Ha={})),function(e){e[e.SaltSeedLength=256]="SaltSeedLength",e[e.PbkdfCost=11e4]="PbkdfCost",e[e.PbkdfOutputLength=768]="PbkdfOutputLength",e[e.EncryptionKeyLength=256]="EncryptionKeyLength",e[e.EncryptionIvLength=128]="EncryptionIvLength"}(ja||(ja={})),function(e){e[e.ArgonSaltSeedLength=256]="ArgonSaltSeedLength",e[e.ArgonSaltLength=128]="ArgonSaltLength",e[e.ArgonIterations=5]="ArgonIterations",e[e.ArgonMemLimit=67108864]="ArgonMemLimit",e[e.ArgonOutputKeyBytes=64]="ArgonOutputKeyBytes",e[e.EncryptionKeyLength=256]="EncryptionKeyLength",e[e.EncryptionNonceLength=192]="EncryptionNonceLength"}(Na||(Na={}));var La=n(17);function Ka(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ga(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Ka(a,r,i,o,s,"next",e)}function s(e){Ka(a,r,i,o,s,"throw",e)}o(void 0)}))}}function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ya(e){return(Ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ja(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Va(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Ja(a,r,i,o,s,"next",e)}function s(e){Ja(a,r,i,o,s,"throw",e)}o(void 0)}))}}function za(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wa(e,t){return!t||"object"!==Ya(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xa(e,t,n){return(Xa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Za(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Za(e){return(Za=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eo(e,t){return(eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var to="00000000000000000000000000000000",no=function(e){function t(){return za(this,t),Wa(this,Za(t).apply(this,arguments))}var n,r,i,a,s,c,u,l,f,A;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eo(e,t)}(t,e),n=t,(r=[{key:"generateNewItemsKeyContent",value:(A=Va(o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ta.EncryptionKeyLength,e.next=3,this.crypto.generateRandomKey(t);case 3:return n=e.sent,r={itemsKey:n,version:this.version},e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"createRootKey",value:(f=Va(o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ta.PbkdfMinCost,e.next=3,this.crypto.generateRandomKey(Ta.SaltSeedLength);case 3:return i=e.sent,e.next=6,this.crypto.unsafeSha1(t+"SN"+i);case 6:return a=e.sent,e.next=9,this.deriveKey(n,a,r);case 9:return s=e.sent,c=Ra({email:t,pw_cost:r,pw_nonce:i,pw_salt:a,version:this.version}),e.abrupt("return",{key:s,keyParams:c});case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"computeRootKey",value:(l=Va(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.deriveKey(t,n.salt,n.kdfIterations);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"decryptString",value:(u=Va(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.crypto.aes256CbcDecrypt(t,to,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"encryptString",value:(c=Va(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.crypto.aes256CbcEncrypt(t,to,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"generateEncryptedParameters",value:(s=Va(o.a.mark((function e(n,r,i){var a,s,c,u,l,f,A;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r!==at.a.DecryptedBareObject&&r!==at.a.DecryptedBase64String){e.next=2;break}return e.abrupt("return",Xa(Za(t.prototype),"generateEncryptedParameters",this).call(this,n,r,i));case 2:if(r===at.a.EncryptedString){e.next=4;break}throw"Unsupport format for generateEncryptedParameters ".concat(r);case 4:if(i){e.next=6;break}throw"Attempting to generateEncryptedParameters with no itemsKey.";case 6:return e.next=8,this.crypto.generateRandomKey(2*Ta.EncryptionKeyLength);case 8:return a=e.sent,e.next=11,this.encryptString(a,i.itemsKey);case 11:return s=e.sent,e.next=14,this.firstHalfOfKey(a);case 14:return c=e.sent,e.next=17,this.secondHalfOfKey(a);case 17:return u=e.sent,e.next=20,this.encryptString(JSON.stringify(n.content),c);case 20:return l=e.sent,f=i.version+l,e.next=24,this.crypto.hmac256(f,u);case 24:return A=e.sent,e.abrupt("return",Object(_.c)({uuid:n.uuid,items_key_id:i instanceof kt?i.uuid:void 0,content:f,enc_item_key:s,auth_hash:A}));case 26:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"generateDecryptedParameters",value:(a=Va(o.a.mark((function e(n,r){var i,a,s,c,u,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=n.format)!==at.a.DecryptedBareObject&&i!==at.a.DecryptedBase64String){e.next=3;break}return e.abrupt("return",Xa(Za(t.prototype),"generateDecryptedParameters",this).call(this,n,r));case 3:if(n.enc_item_key){e.next=6;break}return console.error("Missing item encryption key, skipping decryption."),e.abrupt("return",n);case 6:return a=n.enc_item_key,a=this.version+a,s=this.encryptionComponentsFromString(a,r.itemsKey),e.next=11,this.decryptString(s.ciphertext,s.key);case 11:if(c=e.sent){e.next=15;break}return console.error("Error decrypting parameters",n),e.abrupt("return",Object(_.a)(n,{errorDecrypting:!0,errorDecryptingValueChanged:!n.errorDecrypting}));case 15:return e.next=17,this.firstHalfOfKey(c);case 17:return u=e.sent,l=this.encryptionComponentsFromString(n.contentString,u),e.next=21,this.decryptString(l.ciphertext,l.key);case 21:if(f=e.sent){e.next=26;break}return e.abrupt("return",Object(_.a)(n,{errorDecrypting:!0,errorDecryptingValueChanged:!n.errorDecrypting}));case 26:return e.abrupt("return",Object(_.a)(n,{content:JSON.parse(f),items_key_id:void 0,enc_item_key:void 0,errorDecrypting:!1,errorDecryptingValueChanged:!0===n.errorDecrypting,waitingForKey:!1}));case 27:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"encryptionComponentsFromString",value:function(e,t){var n=e.substring(0,yt.a.VersionLength);return{ciphertext:e.substring(yt.a.VersionLength,e.length),version:n,key:t}}},{key:"deriveKey",value:(i=Va(o.a.mark((function e(t,n,r){var i,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.crypto.pbkdf2(t,n,r,Ta.PbkdfOutputLength);case 2:return i=e.sent,e.next=5,this.splitKey(i,2);case 5:return a=e.sent,e.next=8,Xi.Create({serverPassword:a[0],masterKey:a[1],version:this.version});case 8:return s=e.sent,e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"version",get:function(){return yt.a.V001}}])&&qa(n.prototype,r),t}(function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=void 0,(n="crypto")in this?Object.defineProperty(this,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[n]=r,this.crypto=t}var t,n,r,i,a,c,u;return t=e,(n=[{key:"firstHalfOfKey",value:(u=Ga(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.substring(0,t.length/2));case 1:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})},{key:"secondHalfOfKey",value:(c=Ga(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.substring(t.length/2,t.length));case 1:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})},{key:"splitKey",value:function(e,t){for(var n=e.length/t,r=[],i=0;i<t;i++){var a=e.slice(n*i,n*(i+1));r.push(a)}return r}},{key:"createItemsKey",value:(a=Ga(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.generateNewItemsKeyContent();case 2:return t=e.sent,e.t0=_.e,e.next=6,h.GenerateUuid();case 6:return e.t1=e.sent,e.t2=E.a.ItemsKey,e.t3=Object(s.a)(t),e.t4={uuid:e.t1,content_type:e.t2,content:e.t3},n=(0,e.t0)(e.t4),e.abrupt("return",Mt(n));case 12:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"generateEncryptedParameters",value:(i=Ga(o.a.mark((function e(t,n,r){var i,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n!==at.a.DecryptedBareObject){e.next=4;break}return e.abrupt("return",Object(_.c)({content:t.content}));case 4:if(n!==at.a.DecryptedBase64String){e.next=13;break}return i=JSON.stringify(t.content),e.next=8,Object(La.base64Encode)(i);case 8:return a=e.sent,s=yt.a.V000Base64Decrypted+a,e.abrupt("return",Object(_.c)({content:s}));case 13:throw"Must override generateEncryptedParameters to handle format ".concat(n,".");case 14:case"end":return e.stop()}}),e)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"generateDecryptedParameters",value:(r=Ga(o.a.mark((function e(t,n){var r,i,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.format)!==at.a.DecryptedBareObject){e.next=5;break}return e.abrupt("return",t);case 5:if(r!==at.a.DecryptedBase64String){e.next=20;break}return i=t.contentString.substring(yt.a.VersionLength,t.contentString.length),e.prev=7,e.next=10,Object(La.base64Decode)(i);case 10:s=e.sent,a=JSON.parse(s),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),a=t.content;case 17:return e.abrupt("return",Object(_.a)(t,{content:a}));case 20:throw"Must override generateDecryptedParameters to handle format ".concat(r,".");case 21:case"end":return e.stop()}}),e,null,[[7,14]])}))),function(e,t){return r.apply(this,arguments)})}])&&$a(t.prototype,n),e}());function ro(e){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function io(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ao(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){io(a,r,i,o,s,"next",e)}function s(e){io(a,r,i,o,s,"throw",e)}o(void 0)}))}}function oo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function so(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function co(e,t){return!t||"object"!==ro(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uo(e,t,n){return(uo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=lo(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function lo(e){return(lo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fo(e,t){return(fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ao=function(e){function t(){return oo(this,t),co(this,lo(t).apply(this,arguments))}var n,r,i,a,s,c,u,l,f,A,h,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fo(e,t)}(t,e),n=t,(r=[{key:"generateNewItemsKeyContent",value:(p=ao(o.a.mark((function e(){var t,n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ha.EncryptionKeyLength,e.next=3,this.crypto.generateRandomKey(t);case 3:return n=e.sent,e.next=6,this.crypto.generateRandomKey(t);case 6:return r=e.sent,i={itemsKey:n,dataAuthenticationKey:r,version:this.version},e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"createRootKey",value:(h=ao(o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ha.PbkdfMinCost,e.next=3,this.crypto.generateRandomKey(Ha.SaltSeedLength);case 3:return i=e.sent,e.next=6,this.crypto.unsafeSha1(t+":"+i);case 6:return a=e.sent,e.next=9,this.deriveKey(n,a,r);case 9:return s=e.sent,c=Ra({email:t,pw_cost:r,pw_nonce:i,pw_salt:a,version:this.version}),e.abrupt("return",{key:s,keyParams:c});case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"computeRootKey",value:(A=ao(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.deriveKey(t,n.salt,n.kdfIterations);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"decryptString002",value:(f=ao(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.crypto.aes256CbcDecrypt(t,r,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return f.apply(this,arguments)})},{key:"encryptString002",value:(l=ao(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.crypto.aes256CbcEncrypt(t,r,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return l.apply(this,arguments)})},{key:"encryptTextParams",value:(u=ao(o.a.mark((function e(t,n,r,i,a){var s,c,u,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.crypto.generateRandomKey(Ha.EncryptionIvLength);case 2:return s=e.sent,e.next=5,this.encryptString002(t,n,s);case 5:return c=e.sent,u=[a,i,s,c].join(":"),e.next=9,this.crypto.hmac256(u,r);case 9:return l=e.sent,f=[a,l,i,s,c].join(":"),e.abrupt("return",f);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,i){return u.apply(this,arguments)})},{key:"decryptTextParams",value:(c=ao(o.a.mark((function e(t,n,r,i,a,s){var c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}throw"Attempting to decryptTextParams with null encryptionKey";case 2:return e.next=4,this.crypto.hmac256(t,s);case 4:if(c=e.sent,!1!==this.crypto.timingSafeEqual(a,c)){e.next=8;break}return console.error("Auth hash does not match, returning null."),e.abrupt("return",null);case 8:return e.abrupt("return",this.decryptString002(n,r,i));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,i,a){return c.apply(this,arguments)})},{key:"generateEncryptedParameters",value:(s=ao(o.a.mark((function e(n,r,i){var a,s,c,u,l;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r!==at.a.DecryptedBareObject&&r!==at.a.DecryptedBase64String){e.next=2;break}return e.abrupt("return",uo(lo(t.prototype),"generateEncryptedParameters",this).call(this,n,r,i));case 2:if(r===at.a.EncryptedString){e.next=4;break}throw"Unsupport format for generateEncryptedParameters ".concat(r);case 4:if(i&&i.itemsKey){e.next=6;break}throw"Attempting to generateEncryptedParameters with no itemsKey.";case 6:return e.next=8,this.crypto.generateRandomKey(2*Ha.EncryptionKeyLength);case 8:return a=e.sent,e.next=11,this.encryptTextParams(a,i.itemsKey,i.dataAuthenticationKey,n.uuid,i.version);case 11:return s=e.sent,e.next=14,this.firstHalfOfKey(a);case 14:return c=e.sent,e.next=17,this.secondHalfOfKey(a);case 17:return u=e.sent,e.next=20,this.encryptTextParams(JSON.stringify(n.content),c,u,n.uuid,i.version);case 20:return l=e.sent,e.abrupt("return",Object(_.c)({uuid:n.uuid,items_key_id:i instanceof kt?i.uuid:void 0,content:l,enc_item_key:s}));case 22:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"generateDecryptedParameters",value:(a=ao(o.a.mark((function e(n,r){var i,a,s,c,u,l,f,A,h;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=n.format)!==at.a.DecryptedBareObject&&i!==at.a.DecryptedBase64String){e.next=3;break}return e.abrupt("return",uo(lo(t.prototype),"generateDecryptedParameters",this).call(this,n,r));case 3:if(n.enc_item_key){e.next=6;break}return console.error("Missing item encryption key, skipping decryption."),e.abrupt("return",n);case 6:if(r&&r.itemsKey){e.next=8;break}throw"Attempting to generateDecryptedParameters with no itemsKey.";case 8:return a=n.enc_item_key,s=this.encryptionComponentsFromString002(a,r.itemsKey,r.dataAuthenticationKey),e.next=12,this.decryptTextParams(s.ciphertextToAuth,s.contentCiphertext,s.encryptionKey,s.iv,s.authHash,s.authKey);case 12:if(c=e.sent){e.next=16;break}return console.error("Error decrypting item_key parameters",n),e.abrupt("return",Object(_.a)(n,{errorDecrypting:!0,errorDecryptingValueChanged:!n.errorDecrypting}));case 16:return e.next=18,this.firstHalfOfKey(c);case 18:return u=e.sent,e.next=21,this.secondHalfOfKey(c);case 21:return l=e.sent,f=this.encryptionComponentsFromString002(n.contentString,u,l),e.next=25,this.decryptTextParams(f.ciphertextToAuth,f.contentCiphertext,f.encryptionKey,f.iv,f.authHash,f.authKey);case 25:if(A=e.sent){e.next=30;break}return e.abrupt("return",Object(_.a)(n,{errorDecrypting:!0,errorDecryptingValueChanged:!n.errorDecrypting}));case 30:return e.prev=30,e.t0=JSON,e.next=34,Object(La.base64Decode)(f.authParams);case 34:e.t1=e.sent,h=e.t0.parse.call(e.t0,e.t1),e.next=40;break;case 38:e.prev=38,e.t2=e.catch(30);case 40:return e.abrupt("return",Object(_.a)(n,{content:JSON.parse(A),items_key_id:void 0,enc_item_key:void 0,auth_params:h,errorDecrypting:!1,errorDecryptingValueChanged:!0===n.errorDecrypting,waitingForKey:!1}));case 41:case"end":return e.stop()}}),e,this,[[30,38]])}))),function(e,t){return a.apply(this,arguments)})},{key:"deriveKey",value:(i=ao(o.a.mark((function e(t,n,r){var i,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.crypto.pbkdf2(t,n,r,Ha.PbkdfOutputLength);case 2:return i=e.sent,e.next=5,this.splitKey(i,3);case 5:return a=e.sent,e.next=8,Xi.Create({serverPassword:a[0],masterKey:a[1],dataAuthenticationKey:a[2],version:this.version});case 8:return s=e.sent,e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"encryptionComponentsFromString002",value:function(e,t,n){var r=e.split(":");return{encryptionVersion:r[0],authHash:r[1],uuid:r[2],iv:r[3],contentCiphertext:r[4],authParams:r[5],ciphertextToAuth:[r[0],r[2],r[3],r[4]].join(":"),encryptionKey:t,authKey:n}}},{key:"version",get:function(){return yt.a.V002}}])&&so(n.prototype,r),t}(no);function ho(e){return(ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function po(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function go(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){po(a,r,i,o,s,"next",e)}function s(e){po(a,r,i,o,s,"throw",e)}o(void 0)}))}}function yo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mo(e,t){return!t||"object"!==ho(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bo(e){return(bo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Io(e,t){return(Io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wo=function(e){function t(){return yo(this,t),mo(this,bo(t).apply(this,arguments))}var n,r,i,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Io(e,t)}(t,e),n=t,(r=[{key:"computeRootKey",value:(s=go(o.a.mark((function e(t,n){var r,i,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ja.PbkdfCost,i=this.version,e.next=4,this.generateSalt(n.identifier,i,r,n.seed);case 4:return a=e.sent,e.next=7,this.deriveKey(t,a,r);case 7:return s=e.sent,e.abrupt("return",s);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"createRootKey",value:(a=go(o.a.mark((function e(t,n){var r,i,a,s,c,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.version,i=ja.PbkdfCost,e.next=4,this.crypto.generateRandomKey(ja.SaltSeedLength);case 4:return a=e.sent,e.next=7,this.generateSalt(t,r,i,a);case 7:return s=e.sent,e.next=10,this.deriveKey(n,s,i);case 10:return c=e.sent,u=Ra({identifier:t,pw_cost:i,pw_nonce:a,version:r}),e.abrupt("return",{key:c,keyParams:u});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"generateSalt",value:(i=go(o.a.mark((function e(t,n,r,i){var a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.crypto.sha256([t,"SF",n,r,i].join(":"));case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return i.apply(this,arguments)})},{key:"version",get:function(){return yt.a.V003}}])&&vo(n.prototype,r),t}(Ao);function Co(e){return(Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bo(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Eo(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Bo(a,r,i,o,s,"next",e)}function s(e){Bo(a,r,i,o,s,"throw",e)}o(void 0)}))}}function _o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qo(e,t){return!t||"object"!==Co(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function So(e,t,n){return(So="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xo(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function xo(e){return(xo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Po,Mo=function(e){function t(){return _o(this,t),Qo(this,xo(t).apply(this,arguments))}var n,r,i,a,s,c,l,f,A,h,p,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(t,e),n=t,(r=[{key:"generateNewItemsKeyContent",value:(d=Eo(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.crypto.generateRandomKey(Na.EncryptionKeyLength);case 2:return t=e.sent,n={itemsKey:t,version:this.version},e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"generateSalt004",value:(p=Eo(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.crypto.sha256([t,n].join(":"));case 2:return r=e.sent,e.abrupt("return",Object(u.H)(r,Na.ArgonSaltLength));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"computeRootKey",value:(h=Eo(o.a.mark((function e(t,n){var r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.generateSalt004(n.identifier,n.seed);case 2:return r=e.sent,e.next=5,this.deriveKey(t,r,Na.ArgonIterations);case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"createRootKey",value:(A=Eo(o.a.mark((function e(t,n){var r,i,a,s,c,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.version,i=Na.ArgonIterations,e.next=4,this.crypto.generateRandomKey(Na.ArgonSaltSeedLength);case 4:return a=e.sent,e.next=7,this.generateSalt004(t,a);case 7:return s=e.sent,e.next=10,this.deriveKey(n,s,i);case 10:return c=e.sent,u=Ra({identifier:t,pw_cost:i,pw_nonce:a,version:r}),e.abrupt("return",{key:c,keyParams:u});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"encryptString004",value:(f=Eo(o.a.mark((function e(t,n,r,i){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}throw"encryptString null nonce";case 2:if(n){e.next=4;break}throw"encryptString null rawKey";case 4:return e.abrupt("return",this.crypto.xchacha20Encrypt(t,r,n,JSON.stringify(i)));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return f.apply(this,arguments)})},{key:"decryptString004",value:(l=Eo(o.a.mark((function e(t,n,r,i){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.crypto.xchacha20Decrypt(t,r,n,JSON.stringify(i)));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return l.apply(this,arguments)})},{key:"generateEncryptedProtocolString",value:(c=Eo(o.a.mark((function e(t,n,r){var i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.crypto.generateRandomKey(Na.EncryptionNonceLength);case 2:return i=e.sent,a=this.version,e.next=6,this.encryptString004(t,n,i,{u:r,v:a});case 6:return s=e.sent,c=[a,i,s].join(":"),e.abrupt("return",c);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"generateEncryptedParameters",value:(s=Eo(o.a.mark((function e(n,r,i){var a,s,c,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r!==at.a.DecryptedBareObject&&r!==at.a.DecryptedBase64String){e.next=2;break}return e.abrupt("return",So(xo(t.prototype),"generateEncryptedParameters",this).call(this,n,r,i));case 2:if(r===at.a.EncryptedString){e.next=4;break}throw"Unsupport format for generateEncryptedParameters ".concat(r);case 4:if(n.uuid){e.next=6;break}throw"payload.uuid cannot be null";case 6:if(i&&i.itemsKey){e.next=8;break}throw"Attempting to generateEncryptedParameters with no itemsKey.";case 8:return e.next=10,this.crypto.generateRandomKey(Na.EncryptionKeyLength);case 10:return a=e.sent,s=JSON.stringify(n.content),e.next=14,this.generateEncryptedProtocolString(s,a,n.uuid);case 14:return c=e.sent,e.next=17,this.generateEncryptedProtocolString(a,i.itemsKey,n.uuid);case 17:return u=e.sent,e.abrupt("return",Object(_.c)({uuid:n.uuid,items_key_id:i instanceof kt?i.uuid:void 0,content:c,enc_item_key:u}));case 19:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"generateDecryptedParameters",value:(a=Eo(o.a.mark((function e(n,r){var i,a,s,c,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=n.format)!==at.a.DecryptedBareObject&&i!==at.a.DecryptedBase64String){e.next=3;break}return e.abrupt("return",So(xo(t.prototype),"generateDecryptedParameters",this).call(this,n,r));case 3:if(n.uuid){e.next=5;break}throw"encryptedParameters.uuid cannot be null";case 5:if(r&&r.itemsKey){e.next=7;break}throw"Attempting to generateDecryptedParameters with no itemsKey.";case 7:return a=this.deconstructEncryptedPayloadString(n.enc_item_key),e.next=10,this.decryptString004(a.ciphertext,r.itemsKey,a.nonce,{u:n.uuid,v:a.version});case 10:if(s=e.sent){e.next=14;break}return console.error("Error decrypting itemKey parameters",n),e.abrupt("return",Object(_.a)(n,{errorDecrypting:!0,errorDecryptingValueChanged:!n.errorDecrypting}));case 14:return c=this.deconstructEncryptedPayloadString(n.contentString),e.next=17,this.decryptString004(c.ciphertext,s,c.nonce,{u:n.uuid,v:c.version});case 17:if(u=e.sent){e.next=22;break}return e.abrupt("return",Object(_.a)(n,{errorDecrypting:!0,errorDecryptingValueChanged:!n.errorDecrypting}));case 22:return e.abrupt("return",Object(_.a)(n,{content:JSON.parse(u),items_key_id:void 0,enc_item_key:void 0,errorDecrypting:!1,errorDecryptingValueChanged:!0===n.errorDecrypting,waitingForKey:!1}));case 23:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"deconstructEncryptedPayloadString",value:function(e){var t=e.split(":");return{version:t[0],nonce:t[1],ciphertext:t[2]}}},{key:"deriveKey",value:(i=Eo(o.a.mark((function e(t,n,r){var i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.crypto.argon2(t,n,r,Na.ArgonMemLimit,Na.ArgonOutputKeyBytes);case 2:return i=e.sent,a=this.splitKey(i,2),s=a[0],c=a[1],e.abrupt("return",Xi.Create({masterKey:s,serverPassword:c,version:this.version}));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"version",get:function(){return yt.a.V004}}])&&ko(n.prototype,r),t}(wo);function Fo(e){return(Fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oo(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ro(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Oo(a,r,i,o,s,"next",e)}function s(e){Oo(a,r,i,o,s,"throw",e)}o(void 0)}))}}function To(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jo(e,t,n){return(jo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=No(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function No(e){return(No=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Uo(e,t){return(Uo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.RootKeyNone=0]="RootKeyNone",e[e.RootKeyOnly=1]="RootKeyOnly",e[e.RootKeyPlusWrapper=2]="RootKeyPlusWrapper",e[e.WrapperOnly=3]="WrapperOnly"}(Po||(Po={}));var Ko=yt.a.V003,Go=function(e){function t(e,n,r,i,a){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==Fo(t)&&"function"!=typeof t?Ho(e):t}(this,No(t).call(this)),Lo(Ho(o),"itemManager",void 0),Lo(Ho(o),"modelManager",void 0),Lo(Ho(o),"storageService",void 0),Lo(Ho(o),"crypto",void 0),Lo(Ho(o),"operators",{}),Lo(Ho(o),"keyMode",Po.RootKeyNone),Lo(Ho(o),"keyObservers",[]),Lo(Ho(o),"rootKey",void 0),Lo(Ho(o),"removeItemsObserver",void 0),o.itemManager=e,o.modelManager=n,o.deviceInterface=r,o.storageService=i,o.crypto=a,!o.crypto&&Object(u.s)()&&Object(La.isWebCryptoAvailable)()&&(o.crypto=new La.SNWebCrypto),h.SetGenerators(o.crypto.generateUUIDSync,o.crypto.generateUUID),Object.defineProperty(Ho(o),"rootKey",{enumerable:!1,writable:!0}),o.removeItemsObserver=o.itemManager.addObserver([E.a.ItemsKey],(function(e,t){t.length>0&&o.decryptErroredItems()})),o}var n,r,i,a,l,f,A,p,d,g,y,v,m,b,I,w,C,B,Q,S,x,D,P,M,F,O,R,T,H,j,N,U,L,K,G,$,Y,J,V,z,q,W,X,Z,ee;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Uo(e,t)}(t,e),n=t,(r=[{key:"deinit",value:function(){this.itemManager=void 0,this.modelManager=void 0,this.deviceInterface=void 0,this.storageService=void 0,this.crypto.deinit(),this.crypto=void 0,this.operators={},this.keyObservers.length=0,this.removeItemsObserver(),this.removeItemsObserver=null,this.rootKey=void 0,jo(No(t.prototype),"deinit",this).call(this)}},{key:"initialize",value:(ee=Ro(o.a.mark((function e(){var t,n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getWrappedRootKey();case 2:return t=e.sent,e.next=5,this.getAccountKeyParams();case 5:return n=e.sent,e.next=8,this.hasRootKeyWrapper();case 8:if(r=e.sent,i=!Object(u.p)(t)||!Object(u.p)(n),!r||!i){e.next=14;break}this.keyMode=Po.RootKeyPlusWrapper,e.next=27;break;case 14:if(!r||i){e.next=18;break}this.keyMode=Po.WrapperOnly,e.next=27;break;case 18:if(r||!i){e.next=22;break}this.keyMode=Po.RootKeyOnly,e.next=27;break;case 22:if(r||i){e.next=26;break}this.keyMode=Po.RootKeyNone,e.next=27;break;case 26:throw"Invalid key mode condition";case 27:if(this.keyMode!==Po.RootKeyOnly){e.next=33;break}return e.next=30,this.getRootKeyFromKeychain();case 30:return this.rootKey=e.sent,e.next=33,this.notifyObserversOfKeyChange();case 33:case"end":return e.stop()}}),e,this)}))),function(){return ee.apply(this,arguments)})},{key:"getLatestVersion",value:function(){return yt.a.V004}},{key:"getUserVersion",value:(Z=Ro(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountKeyParams();case 2:return t=e.sent,e.abrupt("return",t&&t.version);case 4:case"end":return e.stop()}}),e,this)}))),function(){return Z.apply(this,arguments)})},{key:"upgradeAvailable",value:(X=Ro(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.accountUpgradeAvailable();case 2:return t=e.sent,e.next=5,this.passcodeUpgradeAvailable();case 5:return n=e.sent,e.abrupt("return",t||n);case 7:case"end":return e.stop()}}),e,this)}))),function(){return X.apply(this,arguments)})},{key:"accountUpgradeAvailable",value:(W=Ro(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getUserVersion();case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.abrupt("return",t!==this.getLatestVersion());case 6:case"end":return e.stop()}}),e,this)}))),function(){return W.apply(this,arguments)})},{key:"passcodeUpgradeAvailable",value:(q=Ro(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRootKeyWrapperKeyParams();case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.abrupt("return",t.version!==this.getLatestVersion());case 6:case"end":return e.stop()}}),e,this)}))),function(){return q.apply(this,arguments)})},{key:"platformSupportsKeyDerivation",value:function(e){return Object(yt.b)(e.version,yt.a.V004)>=0||!!Object(La.isWebCryptoAvailable)()}},{key:"supportedVersions",value:function(){return[yt.a.V001,yt.a.V002,yt.a.V003,yt.a.V004]}},{key:"isVersionNewerThanLibraryVersion",value:function(e){var t=this.getLatestVersion();return 1===Object(yt.b)(e,t)}},{key:"isProtocolVersionOutdated",value:function(e){var t,n=(Lo(t={},yt.a.V001,Date.parse("2018-01-01")),Lo(t,yt.a.V002,Date.parse("2020-01-01")),t)[e];return!!n&&(new Date).getTime()>n}},{key:"costMinimumForVersion",value:function(e){if(Object(yt.b)(e,yt.a.V003)>=0)throw"Cost minimums only apply to versions <= 002";if(e===yt.a.V001)return Ta.PbkdfMinCost;if(e===yt.a.V002)return Ha.PbkdfMinCost;throw"Invalid version for cost minimum: ".concat(e)}},{key:"createOperatorForLatestVersion",value:function(){return this.createOperatorForVersion(this.getLatestVersion())}},{key:"createOperatorForVersion",value:function(e){if(e===yt.a.V001)return new no(this.crypto);if(e===yt.a.V002)return new Ao(this.crypto);if(e===yt.a.V003)return new wo(this.crypto);if(e===yt.a.V004)return new Mo(this.crypto);if(e===yt.a.V000Base64Decrypted)return this.createOperatorForLatestVersion();throw"Unable to find operator for version ".concat(e)}},{key:"operatorForVersion",value:function(e){var t=e,n=this.operators[t];return n||(n=this.createOperatorForVersion(e),this.operators[t]=n),n}},{key:"defaultOperator",value:function(){return this.operatorForVersion(this.getLatestVersion())}},{key:"computeRootKey",value:(z=Ro(o.a.mark((function e(t,n){var r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.version,i=this.operatorForVersion(r),e.abrupt("return",i.computeRootKey(t,n));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return z.apply(this,arguments)})},{key:"createRootKey",value:(V=Ro(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.defaultOperator(),e.abrupt("return",r.createRootKey(t,n));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return V.apply(this,arguments)})},{key:"payloadContentFormatForIntent",value:function(e,t){if(t){if(e===jt.a.Sync||e===jt.a.FileEncrypted||e===jt.a.FilePreferEncrypted||e===jt.a.LocalStorageEncrypted||e===jt.a.LocalStoragePreferEncrypted)return at.a.EncryptedString;throw"Unhandled encrypted case in protocolService.payloadContentFormatForIntent."}if(e===jt.a.LocalStorageDecrypted||e===jt.a.LocalStoragePreferEncrypted||e===jt.a.FileDecrypted||e===jt.a.FilePreferEncrypted)return at.a.DecryptedBareObject;if(e===jt.a.SyncDecrypted)return at.a.DecryptedBase64String;throw"Unhandled decrypted case in protocolService.payloadContentFormatForIntent."}},{key:"payloadByEncryptingPayload",value:(J=Ro(o.a.mark((function e(t,n,r){var i,a,s,c,l;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.errorDecrypting){e.next=2;break}return e.abrupt("return",t);case 2:if(!t.deleted){e.next=4;break}return e.abrupt("return",t);case 4:if(!Object(u.p)(n)){e.next=6;break}throw"Attempting to encrypt payload with null intent";case 6:if(r||Object(jt.c)(n)){e.next=10;break}return e.next=9,this.keyToUseForEncryptionOfPayload(t,n);case 9:r=e.sent;case 10:if(r||!Object(jt.b)(n)){e.next=12;break}throw"Attempting to generate encrypted payload with no key.";case 12:if(t.format===at.a.DecryptedBareObject){e.next=14;break}throw"Attempting to encrypt already encrypted payload.";case 14:if(t.content){e.next=16;break}throw"Attempting to encrypt payload with no content.";case 16:if(t.uuid){e.next=18;break}throw"Attempting to encrypt payload with no uuid.";case 18:return i=r?r.version:this.getLatestVersion(),a=this.payloadContentFormatForIntent(n,r),s=this.operatorForVersion(i),e.next=23,s.generateEncryptedParameters(t,a,r);case 23:if(c=e.sent){e.next=26;break}throw"Unable to generate encryption parameters";case 26:return l=Object(_.d)(t,n,c),e.abrupt("return",l);case 28:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return J.apply(this,arguments)})},{key:"payloadsByEncryptingPayloads",value:(Y=Ro(o.a.mark((function e(t,n){var r,i,a,s,c,l,f,A,h;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],i=!0,a=!1,s=void 0,e.prev=4,c=t[Symbol.iterator]();case 6:if(i=(l=c.next()).done){e.next=16;break}return f=l.value,A=Object(u.o)(n)?n(f):n,e.next=11,this.payloadByEncryptingPayload(f,A);case 11:h=e.sent,r.push(h);case 13:i=!0,e.next=6;break;case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(4),a=!0,s=e.t0;case 22:e.prev=22,e.prev=23,i||null==c.return||c.return();case 25:if(e.prev=25,!a){e.next=28;break}throw s;case 28:return e.finish(25);case 29:return e.finish(22);case 30:return e.abrupt("return",r);case 31:case"end":return e.stop()}}),e,this,[[4,18,22,30],[23,,25,29]])}))),function(e,t){return Y.apply(this,arguments)})},{key:"payloadByDecryptingPayload",value:($=Ro(o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.content){e.next=2;break}throw"Attempting to decrypt payload that has no content.";case 2:if((r=t.format)!==at.a.DecryptedBareObject){e.next=5;break}return e.abrupt("return",t);case 5:if(n||r!==at.a.EncryptedString){e.next=11;break}return e.next=8,this.keyToUseForDecryptionOfPayload(t);case 8:if(n=e.sent){e.next=11;break}return e.abrupt("return",Object(_.e)(t,{waitingForKey:!0,errorDecrypting:!0}));case 11:return i=t.version,a=this.operatorForVersion(i),s=Object(_.c)(t),e.next=16,a.generateDecryptedParameters(s,n);case 16:return c=e.sent,e.abrupt("return",Object(_.e)(t,c));case 18:case"end":return e.stop()}}),e,this)}))),function(e,t){return $.apply(this,arguments)})},{key:"payloadsByDecryptingPayloads",value:(G=Ro(o.a.mark((function e(t,n){var r,i,a,s,c,l,f,A;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],i=!0,a=!1,s=void 0,e.prev=4,c=t[Symbol.iterator]();case 6:if(i=(l=c.next()).done){e.next=32;break}if(f=l.value){e.next=11;break}return r.push(f),e.abrupt("continue",29);case 11:if(!0!==f.deleted||!Object(u.p)(f.content)){e.next=14;break}return r.push(f),e.abrupt("continue",29);case 14:if(Object(u.r)(f.content)){e.next=18;break}return r.push(f),e.abrupt("continue",29);case 18:return e.prev=18,e.next=21,this.payloadByDecryptingPayload(f,n);case 21:A=e.sent,r.push(A),e.next=29;break;case 25:e.prev=25,e.t0=e.catch(18),r.push(Object(_.e)(f,{errorDecrypting:!0,errorDecryptingValueChanged:!f.errorDecrypting})),console.error("Error decrypting payload",f,e.t0);case 29:i=!0,e.next=6;break;case 32:e.next=38;break;case 34:e.prev=34,e.t1=e.catch(4),a=!0,s=e.t1;case 38:e.prev=38,e.prev=39,i||null==c.return||c.return();case 41:if(e.prev=41,!a){e.next=44;break}throw s;case 44:return e.finish(41);case 45:return e.finish(38);case 46:return e.abrupt("return",r);case 47:case"end":return e.stop()}}),e,this,[[4,34,38,46],[18,25],[39,,41,45]])}))),function(e,t){return G.apply(this,arguments)})},{key:"decryptErroredItems",value:(K=Ro(o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(t=this.itemManager.invalidItems).length){e.next=3;break}return e.abrupt("return");case 3:return n=t.map((function(e){return e.payloadRepresentation()})),e.next=6,this.payloadsByDecryptingPayloads(n);case 6:return r=e.sent,e.next=9,this.modelManager.emitPayloads(r,k.a.LocalChanged);case 9:case"end":return e.stop()}}),e,this)}))),function(){return K.apply(this,arguments)})},{key:"payloadsByDecryptingBackupFile",value:(L=Ro(o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.keyParams||t.auth_params,i=t.items,a=i.map((function(e){return Object(_.f)(e,k.a.FileImport)})),!r){e.next=12;break}return e.next=6,this.computeRootKey(n,r);case 6:return c=e.sent,e.next=9,this.payloadsByDecryptingPayloads(a,c);case 9:s=e.sent,e.next=13;break;case 12:s=a;case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}}),e,this)}))),function(e,t){return L.apply(this,arguments)})},{key:"createKeyParams",value:function(e){return e.version||(e.version=yt.a.V002),Ra(e)}},{key:"createBackupFile",value:(U=Ro(o.a.mark((function e(t){var n,r,i,a,s,c,u,l,f,A,h,p,d,g,y,v=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=v.length>1&&void 0!==v[1]?v[1]:jt.a.FilePreferEncrypted,r=v.length>2&&void 0!==v[2]&&v[2],i=t||this.itemManager.items,!r||0!==i.length){e.next=5;break}return e.abrupt("return",void 0);case 5:a=[],s=!0,c=!1,u=void 0,e.prev=9,l=i[Symbol.iterator]();case 11:if(s=(f=l.next()).done){e.next=25;break}if(!(A=f.value).errorDecrypting){e.next=17;break}a.push(A.payload),e.next=22;break;case 17:return h=Object(_.f)(A.payload,k.a.FileImport),e.next=20,this.payloadByEncryptingPayload(h,n);case 20:p=e.sent,a.push(p);case 22:s=!0,e.next=11;break;case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(9),c=!0,u=e.t0;case 31:e.prev=31,e.prev=32,s||null==l.return||l.return();case 34:if(e.prev=34,!c){e.next=37;break}throw u;case 37:return e.finish(34);case 38:return e.finish(31);case 39:return d={items:a.map((function(e){return e.ejected()}))},e.next=42,this.getRootKeyParams();case 42:return(g=e.sent)&&n!==jt.a.FileDecrypted&&(d.keyParams=g.getPortableValue()),y=2,e.abrupt("return",JSON.stringify(d,null,y));case 46:case"end":return e.stop()}}),e,this,[[9,27,31,39],[32,,34,38]])}))),function(e){return U.apply(this,arguments)})},{key:"onKeyStatusChange",value:function(e){var t=this;return this.keyObservers.push(e),function(){Object(u.A)(t.keyObservers,e)}}},{key:"notifyObserversOfKeyChange",value:(N=Ro(o.a.mark((function e(){var t,n,r,i,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,n=!1,r=void 0,e.prev=3,i=this.keyObservers[Symbol.iterator]();case 5:if(t=(a=i.next()).done){e.next=12;break}return s=a.value,e.next=9,s();case 9:t=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),n=!0,r=e.t0;case 18:e.prev=18,e.prev=19,t||null==i.return||i.return();case 21:if(e.prev=21,!n){e.next=24;break}throw r;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}}),e,this,[[3,14,18,26],[19,,21,25]])}))),function(){return N.apply(this,arguments)})},{key:"getRootKeyFromKeychain",value:(j=Ro(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.deviceInterface.getKeychainValue();case 2:if(t=e.sent,!Object(u.p)(t)){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.next=7,Xi.Create(t);case 7:return n=e.sent,e.abrupt("return",n);case 9:case"end":return e.stop()}}),e,this)}))),function(){return j.apply(this,arguments)})},{key:"saveRootKeyToKeychain",value:(H=Ro(o.a.mark((function e(){var t,n=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(u.p)(this.rootKey)){e.next=2;break}throw"Attempting to non-existent root key to the keychain.";case 2:if(this.keyMode===Po.RootKeyOnly){e.next=4;break}throw"Should not be persisting wrapped key to keychain.";case 4:return t=this.rootKey.getPersistableValue(),e.abrupt("return",this.executeCriticalFunction((function(){return n.deviceInterface.setKeychainValue(t)})));case 6:case"end":return e.stop()}}),e,this)}))),function(){return H.apply(this,arguments)})},{key:"hasRootKeyWrapper",value:(T=Ro(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRootKeyWrapperKeyParams();case 2:return t=e.sent,e.abrupt("return",!Object(u.p)(t));case 4:case"end":return e.stop()}}),e,this)}))),function(){return T.apply(this,arguments)})},{key:"hasPasscode",value:function(){return this.keyMode===Po.WrapperOnly||this.keyMode===Po.RootKeyPlusWrapper}},{key:"rootKeyNeedsUnwrapping",value:(R=Ro(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.hasRootKeyWrapper();case 2:if(e.t0=e.sent,!e.t0){e.next=5;break}e.t0=Object(u.p)(this.rootKey);case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"getRootKeyWrapperKeyParams",value:(O=Ro(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.getValue(Dt.RootKeyWrapperKeyParams,Tt.Nonwrapped);case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.createKeyParams(t));case 6:case"end":return e.stop()}}),e,this)}))),function(){return O.apply(this,arguments)})},{key:"getWrappedRootKey",value:(F=Ro(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.storageService.getValue(Dt.WrappedRootKey,Tt.Nonwrapped));case 1:case"end":return e.stop()}}),e,this)}))),function(){return F.apply(this,arguments)})},{key:"getRootKeyParams",value:(M=Ro(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.keyMode!==Po.WrapperOnly){e.next=4;break}return e.abrupt("return",this.getRootKeyWrapperKeyParams());case 4:if(this.keyMode!==Po.RootKeyOnly&&this.keyMode!==Po.RootKeyPlusWrapper){e.next=8;break}return e.abrupt("return",this.getAccountKeyParams());case 8:if(this.keyMode!==Po.RootKeyNone){e.next=12;break}return e.abrupt("return",void 0);case 12:throw"Unhandled key mode for getRootKeyParams ".concat(this.keyMode);case 13:case"end":return e.stop()}}),e,this)}))),function(){return M.apply(this,arguments)})},{key:"getAccountKeyParams",value:(P=Ro(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.getValue(Dt.RootKeyParams,Tt.Nonwrapped);case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.createKeyParams(t));case 6:case"end":return e.stop()}}),e,this)}))),function(){return P.apply(this,arguments)})},{key:"validateWrappingKey",value:(D=Ro(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getWrappedRootKey();case 2:if(n=e.sent,this.keyMode!==Po.WrapperOnly){e.next=7;break}return e.abrupt("return",this.storageService.canDecryptWithKey(t));case 7:if(this.keyMode!==Po.RootKeyOnly&&this.keyMode!==Po.RootKeyPlusWrapper){e.next=15;break}return r=Object(_.e)(n),e.next=11,this.payloadByDecryptingPayload(r,t);case 11:return i=e.sent,e.abrupt("return",!i.errorDecrypting);case 15:throw"Unhandled case in validateWrappingKey";case 16:case"end":return e.stop()}}),e,this)}))),function(e){return D.apply(this,arguments)})},{key:"computeWrappingKey",value:(x=Ro(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRootKeyWrapperKeyParams();case 2:return n=e.sent,e.next=5,this.computeRootKey(t,n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"unwrapRootKey",value:(S=Ro(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.keyMode!==Po.WrapperOnly){e.next=3;break}return this.rootKey=t,e.abrupt("return");case 3:if(this.keyMode===Po.RootKeyPlusWrapper){e.next=5;break}throw"Invalid key mode condition for unwrapping.";case 5:return e.next=7,this.getWrappedRootKey();case 7:return n=e.sent,r=Object(_.e)(n),e.next=11,this.payloadByDecryptingPayload(r,t);case 11:if(!(i=e.sent).errorDecrypting){e.next=16;break}throw Error("Unable to decrypt root key with provided wrapping key.");case 16:return e.next=18,Xi.Create(i.contentObject,i.uuid);case 18:return this.rootKey=e.sent,e.next=21,this.notifyObserversOfKeyChange();case 21:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"setNewRootKeyWrapper",value:(Q=Ro(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.keyMode!==Po.RootKeyNone){e.next=4;break}this.keyMode=Po.WrapperOnly,e.next=9;break;case 4:if(this.keyMode!==Po.RootKeyOnly){e.next=8;break}this.keyMode=Po.RootKeyPlusWrapper,e.next=9;break;case 8:throw"Attempting to set wrapper on already wrapped key.";case 9:return e.next=11,this.deviceInterface.clearKeychainValue();case 11:if(this.keyMode!==Po.WrapperOnly&&this.keyMode!==Po.RootKeyPlusWrapper){e.next=26;break}if(this.keyMode!==Po.WrapperOnly){e.next=18;break}return this.rootKey=t,e.next=16,this.reencryptItemsKeys();case 16:e.next=20;break;case 18:return e.next=20,this.wrapAndPersistRootKey(t);case 20:return e.next=22,this.storageService.setValue(Dt.RootKeyWrapperKeyParams,n.getPortableValue(),Tt.Nonwrapped);case 22:return e.next=24,this.notifyObserversOfKeyChange();case 24:e.next=27;break;case 26:throw"Invalid keyMode on setNewRootKeyWrapper";case 27:case"end":return e.stop()}}),e,this)}))),function(e,t){return Q.apply(this,arguments)})},{key:"wrapAndPersistRootKey",value:(B=Ro(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(_.e)(this.rootKey,{content:this.rootKey.getPersistableValue()}),e.next=3,this.payloadByEncryptingPayload(n,jt.a.LocalStorageEncrypted,t);case 3:return r=e.sent,e.next=6,this.storageService.setValue(Dt.WrappedRootKey,r.ejected(),Tt.Nonwrapped);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return B.apply(this,arguments)})},{key:"removeRootKeyWrapper",value:(C=Ro(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.keyMode===Po.WrapperOnly||this.keyMode===Po.RootKeyPlusWrapper){e.next=2;break}throw"Attempting to remove root key wrapper on unwrapped key.";case 2:return this.keyMode===Po.WrapperOnly?(this.keyMode=Po.RootKeyNone,this.rootKey=void 0):this.keyMode===Po.RootKeyPlusWrapper&&(this.keyMode=Po.RootKeyOnly),e.next=5,this.storageService.removeValue(Dt.WrappedRootKey,Tt.Nonwrapped);case 5:return e.next=7,this.storageService.removeValue(Dt.RootKeyWrapperKeyParams,Tt.Nonwrapped);case 7:if(this.keyMode!==Po.RootKeyOnly){e.next=10;break}return e.next=10,this.saveRootKeyToKeychain();case 10:return e.next=12,this.notifyObserversOfKeyChange();case 12:case"end":return e.stop()}}),e,this)}))),function(){return C.apply(this,arguments)})},{key:"setNewRootKey",value:(w=Ro(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}throw"keyParams must be supplied if setting root key.";case 2:if(this.rootKey!==t){e.next=4;break}throw"Attempting to set root key as same current value.";case 4:if(this.keyMode!==Po.WrapperOnly){e.next=8;break}this.keyMode=Po.RootKeyPlusWrapper,e.next=16;break;case 8:if(this.keyMode!==Po.RootKeyNone){e.next=12;break}this.keyMode=Po.RootKeyOnly,e.next=16;break;case 12:if(this.keyMode!==Po.RootKeyOnly&&this.keyMode!==Po.RootKeyPlusWrapper){e.next=15;break}e.next=16;break;case 15:throw"Unhandled key mode for setNewRootKey ".concat(this.keyMode);case 16:return this.rootKey=t,e.next=19,this.storageService.setValue(Dt.RootKeyParams,n.getPortableValue(),Tt.Nonwrapped);case 19:if(this.keyMode!==Po.RootKeyOnly){e.next=24;break}return e.next=22,this.saveRootKeyToKeychain();case 22:e.next=29;break;case 24:if(this.keyMode!==Po.RootKeyPlusWrapper){e.next=29;break}if(r){e.next=27;break}throw Error("wrappingKey must be supplied");case 27:return e.next=29,this.wrapAndPersistRootKey(r);case 29:return e.next=31,this.notifyObserversOfKeyChange();case 31:return e.next=33,this.reencryptItemsKeys();case 33:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return w.apply(this,arguments)})},{key:"getRootKey",value:(I=Ro(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.rootKey);case 1:case"end":return e.stop()}}),e,this)}))),function(){return I.apply(this,arguments)})},{key:"clearLocalKeyState",value:(b=Ro(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.deviceInterface.clearKeychainValue();case 2:return e.next=4,this.storageService.removeValue(Dt.WrappedRootKey,Tt.Nonwrapped);case 4:return e.next=6,this.storageService.removeValue(Dt.RootKeyWrapperKeyParams,Tt.Nonwrapped);case 6:return e.next=8,this.storageService.removeValue(Dt.RootKeyParams,Tt.Nonwrapped);case 8:return this.keyMode=Po.RootKeyNone,this.rootKey=void 0,e.next=12,this.notifyObserversOfKeyChange();case 12:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"validateAccountPassword",value:(m=Ro(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRootKeyParams();case 2:return n=e.sent,e.next=5,this.computeRootKey(t,n);case 5:if(r=e.sent,!(i=r.compare(this.rootKey))){e.next=11;break}return e.abrupt("return",{valid:i,artifacts:{rootKey:r}});case 11:return e.abrupt("return",{valid:!1});case 12:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"validatePasscode",value:(v=Ro(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRootKeyWrapperKeyParams();case 2:return n=e.sent,e.next=5,this.computeRootKey(t,n);case 5:return r=e.sent,e.next=8,this.validateWrappingKey(r);case 8:if(!(i=e.sent)){e.next=13;break}return e.abrupt("return",{valid:i,artifacts:{wrappingKey:r}});case 13:return e.abrupt("return",{valid:!1});case 14:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"contentTypeUsesRootKeyEncryption",value:function(e){return e===E.a.ItemsKey||e===E.a.EncryptedStorage}},{key:"keyToUseForEncryptionOfPayload",value:(y=Ro(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(u.p)(n)){e.next=2;break}throw"Intent must be supplied when looking up key for encryption of item.";case 2:if(!this.contentTypeUsesRootKeyEncryption(t.content_type)){e.next=15;break}return e.next=5,this.getRootKey();case 5:if(r=e.sent){e.next=12;break}if(!Object(jt.b)(n)){e.next=11;break}throw"Root key encryption is required but no root key is available.";case 11:return e.abrupt("return",void 0);case 12:return e.abrupt("return",r);case 15:return e.abrupt("return",this.getDefaultItemsKey());case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"keyToUseForDecryptionOfPayload",value:(g=Ro(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.contentTypeUsesRootKeyEncryption(t.content_type)){e.next=2;break}return e.abrupt("return",this.getRootKey());case 2:if(!t.items_key_id){e.next=5;break}return n=this.itemsKeyForPayload(t),e.abrupt("return",n);case 5:if((r=t.version)!==this.getLatestVersion()){e.next=8;break}throw"No associated key found for item encrypted with latest protocol version.";case 8:return e.abrupt("return",this.defaultItemsKeyForItemVersion(r));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"onSyncEvent",value:(d=Ro(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==c.b.FullSyncCompleted){e.next=3;break}return e.next=3,this.handleFullSyncCompletion();case 3:if(t!==c.b.DownloadFirstSyncCompleted){e.next=6;break}return e.next=6,this.handleDownloadFirstSyncCompletion();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"handleDownloadFirstSyncCompletion",value:(p=Ro(o.a.mark((function e(){var t,n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.itemsKeys,n=t.filter((function(e){return e.neverSynced})),r=t.find((function(e){return!e.neverSynced&&e.isDefault})),Object(u.p)(r)){e.next=9;break}return e.next=7,this.itemManager.setItemsToBeDeleted(Object(s.b)(n));case 7:e.next=20;break;case 9:return e.next=11,this.getRootKey();case 11:if(!(i=e.sent)){e.next=20;break}if(!((a=n.filter((function(e){return e.version!==i.version}))).length>0)){e.next=17;break}return e.next=17,this.itemManager.setItemsToBeDeleted(Object(s.b)(a));case 17:if(0!==t.length){e.next=20;break}return e.next=20,this.createNewDefaultItemsKey();case 20:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"handleFullSyncCompletion",value:(A=Ro(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.getDefaultItemsKey()){e.next=6;break}return e.next=4,this.createNewDefaultItemsKey();case 4:if(this.keyMode!==Po.WrapperOnly){e.next=6;break}return e.abrupt("return",this.repersistAllItems());case 6:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"repersistAllItems",value:(f=Ro(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.itemManager.items,n=t.map((function(e){return Object(_.e)(e)})),e.abrupt("return",this.storageService.savePayloads(n));case 3:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"itemsKeyForPayload",value:function(e){return this.itemsKeys.find((function(t){return t.uuid===e.items_key_id}))}},{key:"getDefaultItemsKey",value:function(){return 1===this.itemsKeys.length?this.itemsKeys[0]:this.itemsKeys.find((function(e){return e.isDefault}))}},{key:"reencryptItemsKeys",value:(l=Ro(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=this.itemsKeys).length>0)){e.next=4;break}return e.next=4,this.itemManager.setItemsDirty(Object(s.b)(t));case 4:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"defaultItemsKeyForItemVersion",value:(a=Ro(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.itemsKeys.find((function(e){return e.version===t})));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"createNewDefaultItemsKey",value:(i=Ro(o.a.mark((function e(){var t,n,r,i,a,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRootKey();case 2:if(t=e.sent,n=t?t.version:this.getLatestVersion(),!(Object(yt.b)(n,Ko)<=0)){e.next=16;break}return e.t0=_.e,e.next=8,h.GenerateUuid();case 8:e.t1=e.sent,e.t2=E.a.ItemsKey,e.t3=Object(s.a)({itemsKey:t.masterKey,dataAuthenticationKey:t.dataAuthenticationKey,version:n}),e.t4={uuid:e.t1,content_type:e.t2,content:e.t3},i=(0,e.t0)(e.t4),r=Mt(i),e.next=19;break;case 16:return e.next=18,this.operatorForVersion(n).createItemsKey();case 18:r=e.sent;case 19:if(!(a=this.getDefaultItemsKey())){e.next=23;break}return e.next=23,this.itemManager.changeItemsKey(a.uuid,(function(e){e.isDefault=!1}));case 23:return e.next=25,this.itemManager.insertItem(r);case 25:return c=e.sent,e.next=28,this.itemManager.changeItemsKey(c.uuid,(function(e){e.isDefault=!0}));case 28:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"itemsKeys",get:function(){return this.itemManager.itemsKeys}}])&&To(n.prototype,r),t}(Nt.a);function $o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Yo(this,"payload",void 0),Yo(this,"defaultContentKeyToDiffOn","text"),Yo(this,"textCharDiffLength",0),Yo(this,"hasPreviousEntry",!1);var n=t.updated_at;Object(u.r)(n)&&(n=new Date(n)),this.payload=Object(_.b)(t,{updated_at:n})}var t,n;return t=e,(n=[{key:"setPreviousEntry",value:function(e){this.hasPreviousEntry=null!=e,this.payload.contentObject[this.defaultContentKeyToDiffOn]&&(this.textCharDiffLength=e?this.payload.contentObject[this.defaultContentKeyToDiffOn].length-e.payload.contentObject[this.defaultContentKeyToDiffOn].length:this.payload.contentObject[this.defaultContentKeyToDiffOn].length)}},{key:"operationVector",value:function(){return void 0!==this.textCharDiffLength?this.hasPreviousEntry&&0!==this.textCharDiffLength?this.textCharDiffLength<0?-1:1:0:1}},{key:"deltaSize",value:function(){return void 0!==this.textCharDiffLength?Math.abs(this.textCharDiffLength):1}},{key:"isSameAsEntry",value:function(e){if(!e)return!1;var t=Mt(this.payload),n=Mt(e.payload);return t.isItemContentEqualWith(n)}}])&&$o(t.prototype,n),e}();function Vo(e){return(Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wo(e,t){return!t||"object"!==Vo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xo(e){return(Xo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zo(e,t){return(Zo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var es=function(e){function t(){return zo(this,t),Wo(this,Xo(t).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zo(e,t)}(t,e),n=t,(r=[{key:"previewTitle",value:function(){return this.payload.updated_at.toLocaleString()}},{key:"previewSubTitle",value:function(){return this.hasPreviousEntry?this.textCharDiffLength<0?"".concat(-1*this.textCharDiffLength," characters removed"):this.textCharDiffLength>0?"".concat(this.textCharDiffLength," characters added"):"Title or metadata changed":"".concat(this.textCharDiffLength," characters loaded")}}])&&qo(n.prototype,r),t}(Jo);function ts(e){var t,n,r,i=(t={},n=E.a.Note,r=es,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)[e[Wr.a.ContentType]];if(!i)throw"Invalid item history class";return new i(e)}function ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var rs=function(){function e(t){var n,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=[],(n="entries")in this?Object.defineProperty(this,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[n]=r,t){var i=!0,a=!1,o=void 0;try{for(var s,c=t[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value;u.setPreviousEntry(this.getLastEntry()),this.entries.push(u)}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}}}var t,n,r;return t=e,r=[{key:"FromJson",value:function(t){return new e(t.entries.map((function(e){return ts(e.payload)})))}}],(n=[{key:"getLastEntry",value:function(){return this.entries[this.entries.length-1]}},{key:"addHistoryEntryForItem",value:function(e){var t=ts(e),n=this.getLastEntry();if(t.setPreviousEntry(n),!t.isSameAsEntry(n))return this.entries.push(t),t}},{key:"clear",value:function(){this.entries.length=0}},{key:"optimize",value:function(){var e=this,t=[],n=function(e){return e.deltaSize()>15},r=function(r,i,a){if(a)t.push(r);else{var o=t.indexOf(r);-1!==o&&t.splice(o,1)}if(a&&n(r)&&-1===r.operationVector()){var s=e.entries[i-1];s&&t.push(s)}};this.entries.forEach((function(t,i){if(0===i||i===e.entries.length-1)r(t,i,!0);else{var a=n(t);r(t,i,a)}})),this.entries=this.entries.filter((function(e,n){return-1!==t.indexOf(e)}))}}])&&ns(t.prototype,n),r&&ns(t,r),e}();function is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function as(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var os=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),as(this,"content",void 0),as(this,"itemRevisionThreshold",60),this.content=t,this.content||(this.content={itemUUIDToItemHistoryMapping:{}})}var t,n,r;return t=e,r=[{key:"FromJson",value:function(t){if(t){var n=t.content;return Object.keys(n.itemUUIDToItemHistoryMapping).forEach((function(e){var t=n.itemUUIDToItemHistoryMapping[e];n.itemUUIDToItemHistoryMapping[e]=rs.FromJson(t)})),new e(n)}return new e}}],(n=[{key:"addEntryForPayload",value:function(e){return this.historyForItem(e.uuid).addHistoryEntryForItem(e)}},{key:"historyForItem",value:function(e){var t=this.content.itemUUIDToItemHistoryMapping[e];return t||(t=new rs,this.content.itemUUIDToItemHistoryMapping[e]=t),t}},{key:"clearItemHistory",value:function(e){this.historyForItem(e.uuid).clear()}},{key:"clearAllHistory",value:function(){this.content.itemUUIDToItemHistoryMapping={}}},{key:"setItemRevisionThreshold",value:function(e){this.itemRevisionThreshold=e}},{key:"optimizeHistoryForItem",value:function(e){var t=this.historyForItem(e);t.entries.length>this.itemRevisionThreshold&&t.optimize()}}])&&is(t.prototype,n),r&&is(t,r),e}();function ss(e){return(ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cs(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function us(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){cs(a,r,i,o,s,"next",e)}function s(e){cs(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function As(e,t,n){return(As="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hs(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function hs(e){return(hs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ps(e,t){return(ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ds(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gs,ys,vs,ms=function(e){function t(e,n,r,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=function(e,t){return!t||"object"!==ss(t)&&"function"!=typeof t?fs(e):t}(this,hs(t).call(this)),ds(fs(a),"itemManager",void 0),ds(fs(a),"storageService",void 0),ds(fs(a),"contentTypes",[]),ds(fs(a),"timeout",void 0),ds(fs(a),"historySession",void 0),ds(fs(a),"removeChangeObserver",void 0),ds(fs(a),"persistable",!1),ds(fs(a),"autoOptimize",!1),ds(fs(a),"saveTimeout",void 0),a.itemManager=e,a.storageService=n,a.contentTypes=r,a.timeout=i,a}var n,r,i,a,s,c,l,f,A;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ps(e,t)}(t,e),n=t,(r=[{key:"deinit",value:function(){this.itemManager=void 0,this.storageService=void 0,this.contentTypes.length=0,this.historySession=void 0,this.timeout=null,this.removeChangeObserver&&(this.removeChangeObserver(),this.removeChangeObserver=null),As(hs(t.prototype),"deinit",this).call(this)}},{key:"initializeFromDisk",value:(A=us(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.getValue(Dt.SessionHistoryPersistable);case 2:return this.persistable=e.sent,e.next=5,this.storageService.getValue(Dt.SessionHistoryRevisions).then((function(e){return os.FromJson(e)}));case 5:return this.historySession=e.sent,e.next=8,this.storageService.getValue(Dt.SessionHistoryOptimize);case 8:t=e.sent,Object(u.p)(t)?this.autoOptimize=!0:this.autoOptimize=t,this.addChangeObserver();case 11:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"addChangeObserver",value:function(){var e=this;this.removeChangeObserver=this.itemManager.addObserver(this.contentTypes,(function(t,n,r,i){var a=Object(u.f)(t,n,r);if(i!==k.a.LocalChanged){var o=!0,s=!1,c=void 0;try{for(var l,f=a[Symbol.iterator]();!(o=(l=f.next()).done);o=!0){var A=l.value;try{A.deleted||A.errorDecrypting||e.addHistoryEntryForItem(A)}catch(e){console.error("Unable to add item history entry:",e)}}}catch(e){s=!0,c=e}finally{try{o||null==f.return||f.return()}finally{if(s)throw c}}}}))}},{key:"isDiskEnabled",value:function(){return this.persistable}},{key:"isAutoOptimizeEnabled",value:function(){return this.autoOptimize}},{key:"saveToDisk",value:(f=us(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistable){e.next=2;break}return e.abrupt("return");case 2:this.storageService.setValue(Dt.SessionHistoryRevisions,this.historySession);case 3:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"setSessionItemRevisionThreshold",value:function(e){this.historySession.setItemRevisionThreshold(e)}},{key:"addHistoryEntryForItem",value:(l=us(o.a.mark((function e(t){var n,r,i=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Object(_.f)(t,k.a.SessionHistory),r=this.historySession.addEntryForPayload(n),this.autoOptimize&&this.historySession.optimizeHistoryForItem(t.uuid),r&&this.persistable&&(this.saveTimeout&&(this.timeout.hasOwnProperty("cancel")?this.timeout.cancel(this.saveTimeout):clearTimeout(this.saveTimeout)),this.saveTimeout=this.timeout((function(){i.saveToDisk()}),2e3));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"historyForItem",value:function(e){return this.historySession.historyForItem(e.uuid)}},{key:"clearHistoryForItem",value:(c=us(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.historySession.clearItemHistory(t),e.abrupt("return",this.saveToDisk());case 2:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"clearAllHistory",value:(s=us(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.historySession.clearAllHistory(),e.abrupt("return",this.storageService.removeValue(Dt.SessionHistoryRevisions));case 2:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"toggleDiskSaving",value:(a=us(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistable=!this.persistable,!this.persistable){e.next=6;break}this.storageService.setValue(Dt.SessionHistoryPersistable,!0),this.saveToDisk(),e.next=8;break;case 6:return this.storageService.setValue(Dt.SessionHistoryPersistable,!1),e.abrupt("return",this.storageService.removeValue(Dt.SessionHistoryRevisions));case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"toggleAutoOptimize",value:(i=us(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.autoOptimize=!this.autoOptimize,this.autoOptimize?this.storageService.setValue(Dt.SessionHistoryOptimize,!0):this.storageService.setValue(Dt.SessionHistoryOptimize,!1);case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})}])&&ls(n.prototype,r),t}(Nt.a);function bs(e){return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Is(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ws(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Is(a,r,i,o,s,"next",e)}function s(e){Is(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Cs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Es(e,t,n){return(Es="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_s(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _s(e){return(_s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ks(e,t){return(ks=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.None=0]="None",e[e.FiveMinutes=300]="FiveMinutes",e[e.OneHour=3600]="OneHour",e[e.OneWeek=604800]="OneWeek"}(vs||(vs={}));var Ss,xs=(Qs(gs={},T.AccountPassword,{label:"Account Password",prompt:"Please enter your account password."}),Qs(gs,T.LocalPasscode,{label:"Local Passcode",prompt:"Please enter your local passcode."}),gs),Ds=(Qs(ys={},R.ManageExtensions,{label:"Manage Extensions"}),Qs(ys,R.ManageBackups,{label:"Download/Import Backups"}),Qs(ys,R.ViewProtectedNotes,{label:"View Protected Notes"}),Qs(ys,R.ManagePrivileges,{label:"Manage Privileges"}),Qs(ys,R.ManagePasscode,{label:"Manage Passcode"}),Qs(ys,R.DeleteNote,{label:"Delete Notes"}),ys),Ps=function(e){function t(e,n,r,i,a,o){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s=function(e,t){return!t||"object"!==bs(t)&&"function"!=typeof t?Bs(e):t}(this,_s(t).call(this)),Qs(Bs(s),"itemManager",void 0),Qs(Bs(s),"syncService",void 0),Qs(Bs(s),"singletonManager",void 0),Qs(Bs(s),"protocolService",void 0),Qs(Bs(s),"storageService",void 0),Qs(Bs(s),"sessionManager",void 0),Qs(Bs(s),"availableActions",[]),Qs(Bs(s),"availableCredentials",[]),s.itemManager=e,s.syncService=n,s.singletonManager=r,s.protocolService=i,s.storageService=a,s.sessionManager=o,s.loadDefaults(),s}var n,r,i,a,c,u,l,f,A,h,p,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ks(e,t)}(t,e),n=t,(r=[{key:"deinit",value:function(){this.itemManager=void 0,this.syncService=void 0,this.singletonManager=void 0,this.protocolService=void 0,this.storageService=void 0,this.sessionManager=void 0,Es(_s(t.prototype),"deinit",this).call(this)}},{key:"loadDefaults",value:function(){this.availableActions=Object.keys(R).map((function(e){return R[e]})),this.availableCredentials=[T.AccountPassword,T.LocalPasscode]}},{key:"getAvailableActions",value:function(){return this.availableActions}},{key:"getAvailableCredentials",value:function(){return this.availableCredentials}},{key:"netCredentialsForAction",value:(d=ws(o.a.mark((function e(t){var n,r,i,a,s,c,u,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getPrivileges();case 2:n=e.sent,r=n.getCredentialsForAction(t),i=[],a=!0,s=!1,c=void 0,e.prev=8,u=r[Symbol.iterator]();case 10:if(a=(l=u.next()).done){e.next=27;break}if((f=l.value)!==T.AccountPassword){e.next=19;break}return e.next=15,this.sessionManager.online();case 15:e.sent&&i.push(f),e.next=24;break;case 19:if(f!==T.LocalPasscode){e.next=24;break}return e.next=22,this.protocolService.hasRootKeyWrapper();case 22:e.sent&&i.push(f);case 24:a=!0,e.next=10;break;case 27:e.next=33;break;case 29:e.prev=29,e.t0=e.catch(8),s=!0,c=e.t0;case 33:e.prev=33,e.prev=34,a||null==u.return||u.return();case 36:if(e.prev=36,!s){e.next=39;break}throw c;case 39:return e.finish(36);case 40:return e.finish(33);case 41:return e.abrupt("return",i);case 42:case"end":return e.stop()}}),e,this,[[8,29,33,41],[34,,36,40]])}))),function(e){return d.apply(this,arguments)})},{key:"getPrivileges",value:(p=ws(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=E.a.Privileges,n=new Q.a("content_type","=",t),e.abrupt("return",this.singletonManager.findOrCreateSingleton(n,t,Object(s.a)({})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"setSessionLength",value:(h=ws(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t,i=void 0,(i=new Date).setSeconds(i.getSeconds()+r),n=i,e.next=4,this.storageService.setValue(Dt.PrivilegesExpirey,n);case 4:return e.next=6,this.storageService.setValue(Dt.PrivilegesSessionLength,t);case 6:case"end":return e.stop()}var r,i}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"clearSession",value:(A=ws(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.setSessionLength(vs.None));case 1:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"getSelectedSessionLength",value:(f=ws(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.getValue(Dt.PrivilegesSessionLength);case 2:if(!(t=e.sent)){e.next=7;break}return e.abrupt("return",t);case 7:return e.abrupt("return",vs.None);case 8:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"getSessionExpirey",value:(l=ws(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.getValue(Dt.PrivilegesExpirey);case 2:if(!(t=e.sent)){e.next=7;break}return e.abrupt("return",new Date(t));case 7:return e.abrupt("return",new Date);case 8:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"actionHasPrivilegesConfigured",value:(u=ws(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.netCredentialsForAction(t);case 2:return e.t0=e.sent.length,e.abrupt("return",e.t0>0);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"actionRequiresPrivilege",value:(c=ws(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getSessionExpirey();case 2:if(!(e.sent>new Date)){e.next=5;break}return e.abrupt("return",!1);case 5:return e.next=7,this.netCredentialsForAction(t);case 7:return n=e.sent,e.abrupt("return",n.length>0);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"authenticateAction",value:(a=ws(o.a.mark((function e(t,n){var r,i,a,s,c,u,l,f,A;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.netCredentialsForAction(t);case 2:r=e.sent,i=[],a=[],s=!0,c=!1,u=void 0,e.prev=8,l=r[Symbol.iterator]();case 10:if(s=(f=l.next()).done){e.next=19;break}return A=f.value,e.next=14,this.verifyAuthenticationParameters(A,n[A]);case 14:e.sent?i.push(A):a.push(A);case 16:s=!0,e.next=10;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(8),c=!0,u=e.t0;case 25:e.prev=25,e.prev=26,s||null==l.return||l.return();case 28:if(e.prev=28,!c){e.next=31;break}throw u;case 31:return e.finish(28);case 32:return e.finish(25);case 33:return e.abrupt("return",{success:0===a.length,successfulCredentials:i,failedCredentials:a});case 34:case"end":return e.stop()}}),e,this,[[8,21,25,33],[26,,28,32]])}))),function(e,t){return a.apply(this,arguments)})},{key:"verifyAuthenticationParameters",value:(i=ws(o.a.mark((function e(t,n){var r,i,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==T.AccountPassword){e.next=8;break}return e.next=3,this.protocolService.validateAccountPassword(n);case 3:return r=e.sent,i=r.valid,e.abrupt("return",i);case 8:if(t!==T.LocalPasscode){e.next=14;break}return e.next=11,this.protocolService.validatePasscode(n);case 11:return a=e.sent,s=a.valid,e.abrupt("return",s);case 14:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"displayInfoForCredential",value:function(e){return xs[e]}},{key:"displayInfoForAction",value:function(e){return Ds[e]}},{key:"getSessionLengthOptions",value:function(){return[{value:vs.None,label:"Don't Remember"},{value:vs.FiveMinutes,label:"5 Minutes"},{value:vs.OneHour,label:"1 Hour"},{value:vs.OneWeek,label:"1 Week"}]}}])&&Cs(n.prototype,r),t}(Nt.a);function Ms(e){return(Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rs(e,t){return!t||"object"!==Ms(t)&&"function"!=typeof t?Ts(e):t}function Ts(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hs(e,t,n){return(Hs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=js(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function js(e){return(js=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ns(e,t){return(Ns=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Us(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.CreatedAt="created_at",e.UpdatedAt="userModifiedDate",e.Title="title"}(Ss||(Ss={}));var Ls=function(e){function t(){var e,n;Fs(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Us(Ts(n=Rs(this,(e=js(t)).call.apply(e,[this].concat(i)))),"displaySortBy",{}),Us(Ts(n),"displayFilter",{}),Us(Ts(n),"filteredMap",{}),Us(Ts(n),"sortedMap",{}),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ns(e,t)}(t,e),n=t,(r=[{key:"set",value:function(e){e=Array.isArray(e)?e:[e],Hs(js(t.prototype),"set",this).call(this,e),this.filterSortElements(e)}},{key:"discard",value:function(e){e=Array.isArray(e)?e:[e],Hs(js(t.prototype),"discard",this).call(this,e),this.filterSortElements(e)}},{key:"setDisplayOptions",value:function(e,t,n,r){var i=this.displaySortBy[e],a=this.displayFilter[e];if(!i||i.key!==t||i.dir!==n||a||r){this.displaySortBy[e]=t?{key:t,dir:n}:void 0,this.displayFilter[e]=r,this.filteredMap[e]={},this.sortedMap[e]=[];var o=this.all(e);o.length>0&&this.filterSortElements(o)}}},{key:"displayElements",value:function(e){var t=this.sortedMap[e];if(!t)throw Error("Attempting to access display elements for \n non-configured content type ".concat(e));return t.slice()}},{key:"filterSortElements",value:function(e){if(0!==Object.keys(this.displaySortBy).length){var t=new Set,n=!0,r=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value,c=s.content_type,l=this.displaySortBy[c];if(l){var f=this.displayFilter[c],A=this.filteredMap[c],h=this.sortedMap[c],p=!(s.deleted||!this.map[s.uuid])&&(!f||f(s)),d=A[s.uuid];if(p)if(Object(u.p)(d))h.push(s),t.add(c);else{var g=h[d],y=g[l.key],v=s[l.key];h[d]=s;var m=g.pinned!==s.pinned;Object(u.e)(y,v)&&!m||t.add(c)}else Object(u.p)(d)||(delete A[s.uuid],h[d]=void 0,t.add(c))}}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}var b=!0,I=!1,w=void 0;try{for(var C,B=t.values()[Symbol.iterator]();!(b=(C=B.next()).done);b=!0){var E=C.value;this.resortContentType(E)}}catch(e){I=!0,w=e}finally{try{b||null==B.return||B.return()}finally{if(I)throw w}}}}},{key:"resortContentType",value:function(e){var t=this.sortedMap[e],n=this.displaySortBy[e],r=this.filteredMap[e],i=t.sort((function(e,t){return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t)return-1;if(!r)return 1;if(!i){if(t.pinned&&r.pinned)return e(t,r,!0);if(t.pinned)return-1;if(r.pinned)return 1}var a=t[n.key]||"",o=r[n.key]||"",s=1;if("asc"===n.dir&&(s*=-1),n.key===Ss.Title){if(a=a.toLowerCase(),o=o.toLowerCase(),0===a.length&&0===o.length)return 0;if(0===a.length&&0!==o.length)return 1*s;if(0!==a.length&&0===o.length)return-1*s;s*=-1}return a>o?-1*s:a<o?1*s:0}(e,t)})),a=[],o=0,s=!0,c=!1,u=void 0;try{for(var l,f=i[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var A=l.value;A&&(a.push(A),r[A.uuid]=o,o++)}}catch(e){c=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(c)throw u}}this.sortedMap[e]=a}}])&&Os(n.prototype,r),t}(Qr);function Ks(e){return(Ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gs(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function $s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Gs(a,r,i,o,s,"next",e)}function s(e){Gs(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Ys(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Js(e){return(Js=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zs(e,t){return(zs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ws=function(e){function t(e){var n,r,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Ks(t)&&"function"!=typeof t?Vs(e):t}(this,Js(t).call(this)),qs(Vs(n),"modelManager",void 0),qs(Vs(n),"unsubChangeObserver",void 0),qs(Vs(n),"observers",[]),qs(Vs(n),"collection",void 0),qs(Vs(n),"systemSmartTags",void 0),n.modelManager=e,n.createCollection(),n.unsubChangeObserver=n.modelManager.addObserver(E.a.Any,n.onPayloadChange.bind(Vs(n))),n.systemSmartTags=(r=Object(_.e)({uuid:"all-notes",content_type:E.a.SmartTag,content:Object(s.a)({title:"All notes",isSystemTag:!0,isAllTag:!0,predicate:Q.a.FromArray(["content_type","=",E.a.Note])})}),i=Object(_.e)({uuid:"archived-notes",content_type:E.a.SmartTag,content:Object(s.a)({title:"Archived",isSystemTag:!0,isArchiveTag:!0,predicate:Q.a.FromArray(["archived","=",JSON.stringify(!0)])})}),a=Object(_.e)({uuid:"trashed-notes",content_type:E.a.SmartTag,content:Object(s.a)({title:"Trash",isSystemTag:!0,isTrashTag:!0,predicate:Q.a.FromArray(["trashed","=",JSON.stringify(!0)])})}),[Mt(r),Mt(i),Mt(a)]),n}var n,r,i,a,c,l,f,A,p,d,y,v,m,b,I,w,C,B,S,x,D,P,M,F,O;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zs(e,t)}(t,e),n=t,(r=[{key:"setDisplayOptions",value:function(e,t,n,r){this.collection.setDisplayOptions(e,t,n,r)}},{key:"getDisplayableItems",value:function(e){return this.collection.displayElements(e)}},{key:"deinit",value:function(){this.unsubChangeObserver(),this.unsubChangeObserver=void 0,this.modelManager=void 0,this.collection=void 0}},{key:"resetState",value:function(){this.createCollection()}},{key:"createCollection",value:function(){this.collection=new Ls,this.collection.setDisplayOptions(E.a.Note,Ss.CreatedAt,"dsc"),this.collection.setDisplayOptions(E.a.Tag,Ss.Title,"asc"),this.collection.setDisplayOptions(E.a.ItemsKey,Ss.CreatedAt,"asc"),this.collection.setDisplayOptions(E.a.Component,Ss.CreatedAt,"asc"),this.collection.setDisplayOptions(E.a.SmartTag,Ss.Title,"asc")}},{key:"findItem",value:function(e){return this.collection.find(e)}},{key:"findItems",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.collection.findAll(e,t)}},{key:"addObserver",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]);var r={contentType:e,callback:t};return this.observers.push(r),function(){Object(u.A)(n.observers,r)}}},{key:"itemsReferencingItem",value:function(e){if(!Object(u.r)(e))throw Error("Must use uuid string");var t=this.collection.uuidsThatReferenceUuid(e);return this.findItems(t)}},{key:"referencesForItem",value:function(e){if(!Object(u.r)(e))throw Error("Must use uuid string");var t=this.findItem(e).references.map((function(e){return e.uuid}));return this.findItems(t)}},{key:"onPayloadChange",value:(O=$s(o.a.mark((function e(t,n,r,i,a){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.setPayloads(t,n,r,i,a));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,i){return O.apply(this,arguments)})},{key:"setPayloads",value:(F=$s(o.a.mark((function e(t,n,r,i,a){var s,c,u,l,f,A,h,p,d,g;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s=t.map((function(e){return Mt(e)})),c=n.map((function(e){return Mt(e)})),(u=s.concat(c)).length>0&&this.collection.set(u),l=r.map((function(e){return Mt(e)})),f=!0,A=!1,h=void 0,e.prev=8,p=l[Symbol.iterator]();!(f=(d=p.next()).done);f=!0)g=d.value,this.collection.discard(g);e.next=16;break;case 12:e.prev=12,e.t0=e.catch(8),A=!0,h=e.t0;case 16:e.prev=16,e.prev=17,f||null==p.return||p.return();case 19:if(e.prev=19,!A){e.next=22;break}throw h;case 22:return e.finish(19);case 23:return e.finish(16);case 24:return e.next=26,this.notifyObservers(s,c,l,i,a);case 26:case"end":return e.stop()}}),e,this,[[8,12,16,24],[17,,19,23]])}))),function(e,t,n,r,i){return F.apply(this,arguments)})},{key:"notifyObservers",value:(M=$s(o.a.mark((function e(t,n,r,i,a){var s,c,u,l,f,A,h,p,d,g,y;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=function(e,t){return e.filter((function(e){return t.includes(E.a.Any)||t.includes(e.content_type)}))},c=this.observers.slice(),u=!0,l=!1,f=void 0,e.prev=5,A=c[Symbol.iterator]();case 7:if(u=(h=A.next()).done){e.next=19;break}if(p=h.value,d=s(t,p.contentType),g=s(n,p.contentType),y=s(r,p.contentType),0!==d.length||0!==g.length||0!==y.length){e.next=14;break}return e.abrupt("continue",16);case 14:return e.next=16,p.callback(d,g,y,i,a);case 16:u=!0,e.next=7;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(5),l=!0,f=e.t0;case 25:e.prev=25,e.prev=26,u||null==A.return||A.return();case 28:if(e.prev=28,!l){e.next=31;break}throw f;case 31:return e.finish(28);case 32:return e.finish(25);case 33:case"end":return e.stop()}}),e,this,[[5,21,25,33],[26,,28,32]])}))),function(e,t,n,r,i){return M.apply(this,arguments)})},{key:"changeItem",value:(P=$s(o.a.mark((function e(t,n){var r,i,a,s,c=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>2&&void 0!==c[2]?c[2]:g.c.UserInteraction,i=c.length>3&&void 0!==c[3]?c[3]:k.a.LocalChanged,a=c.length>4?c[4]:void 0,Object(u.r)(t)){e.next=5;break}throw Error("Invalid uuid for changeItem");case 5:return e.next=7,this.changeItems([t],n,r,i,a);case 7:return s=e.sent,e.abrupt("return",s[0]);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return P.apply(this,arguments)})},{key:"createMutatorForItem",value:function(e,t){return e.content_type===E.a.Note?new gt(e,t):e.content_type===E.a.Tag?new Ze(e,t):e.content_type===E.a.Component?new Ae(e,t):e.content_type===E.a.ActionsExtension?new Ke(e,t):e.content_type===E.a.ItemsKey?new Qt(e,t):e.content_type===E.a.Privileges?new Z(e,t):e.content_type===E.a.UserPrefs?new j(e,t):new g.b(e,t)}},{key:"changeItems",value:(D=$s(o.a.mark((function e(t,n){var r,i,a,s,c,u,l,f,A,h,p,d,y,v,m=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=m.length>2&&void 0!==m[2]?m[2]:g.c.UserInteraction,i=m.length>3&&void 0!==m[3]?m[3]:k.a.LocalChanged,a=m.length>4?m[4]:void 0,s=this.findItems(t,!0),c=[],u=!0,l=!1,f=void 0,e.prev=8,A=s[Symbol.iterator]();case 10:if(u=(h=A.next()).done){e.next=21;break}if(p=h.value){e.next=14;break}throw Error("Attempting to change non-existant item");case 14:d=this.createMutatorForItem(p,r),n&&n(d),y=d.getResult(),c.push(y);case 18:u=!0,e.next=10;break;case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(8),l=!0,f=e.t0;case 27:e.prev=27,e.prev=28,u||null==A.return||A.return();case 30:if(e.prev=30,!l){e.next=33;break}throw f;case 33:return e.finish(30);case 34:return e.finish(27);case 35:return e.next=37,this.modelManager.emitPayloads(c,i,a);case 37:return v=this.findItems(c.map((function(e){return e.uuid}))),e.abrupt("return",v);case 39:case"end":return e.stop()}}),e,this,[[8,23,27,35],[28,,30,34]])}))),function(e,t){return D.apply(this,arguments)})},{key:"changeNote",value:(x=$s(o.a.mark((function e(t,n){var r,i,a,s,c,u=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:g.c.UserInteraction,i=u.length>3&&void 0!==u[3]?u[3]:k.a.LocalChanged,a=u.length>4?u[4]:void 0,s=this.findItem(t)){e.next=6;break}throw Error("Attempting to change non-existant note");case 6:return c=new gt(s,r),e.abrupt("return",this.applyTransform(c,n,i,a));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return x.apply(this,arguments)})},{key:"changeComponent",value:(S=$s(o.a.mark((function e(t,n){var r,i,a,s,c,u=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:g.c.UserInteraction,i=u.length>3&&void 0!==u[3]?u[3]:k.a.LocalChanged,a=u.length>4?u[4]:void 0,s=this.findItem(t)){e.next=6;break}throw Error("Attempting to change non-existant component");case 6:return c=new Ae(s,r),e.abrupt("return",this.applyTransform(c,n,i,a));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return S.apply(this,arguments)})},{key:"changeActionsExtension",value:(B=$s(o.a.mark((function e(t,n){var r,i,a,s,c,u=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:g.c.UserInteraction,i=u.length>3&&void 0!==u[3]?u[3]:k.a.LocalChanged,a=u.length>4?u[4]:void 0,s=this.findItem(t)){e.next=6;break}throw Error("Attempting to change non-existant extension");case 6:return c=new Ke(s,r),e.abrupt("return",this.applyTransform(c,n,i,a));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return B.apply(this,arguments)})},{key:"changeItemsKey",value:(C=$s(o.a.mark((function e(t,n){var r,i,a,s,c,u=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:g.c.UserInteraction,i=u.length>3&&void 0!==u[3]?u[3]:k.a.LocalChanged,a=u.length>4?u[4]:void 0,s=this.findItem(t)){e.next=6;break}throw Error("Attempting to change non-existant itemsKey");case 6:return c=new Qt(s,r),e.abrupt("return",this.applyTransform(c,n,i,a));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})},{key:"applyTransform",value:(w=$s(o.a.mark((function e(t,n){var r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]?s[2]:k.a.LocalChanged,i=s.length>3?s[3]:void 0,n(t),a=t.getResult(),e.abrupt("return",this.modelManager.emitPayload(a,r,i));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"setItemDirty",value:(I=$s(o.a.mark((function e(t){var n,r,i=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],Object(u.r)(t)){e.next=3;break}throw Error("Must use uuid when setting item dirty");case 3:return e.next=5,this.setItemsDirty([t],n);case 5:return r=e.sent,e.abrupt("return",r[0]);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"setItemsDirty",value:(b=$s(o.a.mark((function e(t){var n,r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],Object(u.r)(t[0])){e.next=3;break}throw Error("Must use uuid when setting item dirty");case 3:return e.abrupt("return",this.changeItems(t,void 0,n?g.c.UserInteraction:g.c.Internal));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"getDirtyItems",value:function(){return this.collection.dirtyElements().filter((function(e){return!e.errorDecrypting||e.deleted}))}},{key:"insertItem",value:(m=$s(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.payload,e.next=3,this.emitItemFromPayload(n);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"duplicateItem",value:(v=$s(o.a.mark((function e(t){var n,r,i,a,s,c=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>1&&void 0!==c[1]&&c[1],r=this.findItem(t),i=Object(_.e)(r),e.next=5,Gr(i,this.modelManager.getMasterCollection(),n);case 5:return a=e.sent,e.next=8,this.modelManager.emitPayloads(a,k.a.LocalChanged);case 8:return s=this.findItem(a[0].uuid),e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"createItem",value:(y=$s(o.a.mark((function e(t,n){var r,i,a,c=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>2&&void 0!==c[2]&&c[2],i=c.length>3?c[3]:void 0,t){e.next=4;break}throw"Attempting to create item with no contentType";case 4:return e.t0=_.e,e.next=7,h.GenerateUuid();case 7:return e.t1=e.sent,e.t2=t,e.t3=n?Object(s.a)(n):void 0,e.t4=r,e.t5={uuid:e.t1,content_type:e.t2,content:e.t3,dirty:e.t4},e.t6=i,a=(0,e.t0)(e.t5,e.t6),e.next=16,this.modelManager.emitPayload(a,k.a.Constructor);case 16:return e.abrupt("return",this.findItem(a.uuid));case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"createTemplateItem",value:(d=$s(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=_.e,e.next=3,h.GenerateUuid();case 3:return e.t1=e.sent,e.t2=t,e.t3=Object(s.a)(n||{}),e.t4={uuid:e.t1,content_type:e.t2,content:e.t3},r=(0,e.t0)(e.t4),e.abrupt("return",Mt(r));case 9:case"end":return e.stop()}}),e)}))),function(e,t){return d.apply(this,arguments)})},{key:"emitItemFromPayload",value:(p=$s(o.a.mark((function e(t){var n,r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:k.a.Constructor,e.next=3,this.modelManager.emitPayload(t,n);case 3:return e.abrupt("return",this.findItem(t.uuid));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"emitItemsFromPayloads",value:(A=$s(o.a.mark((function e(t){var n,r,i=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:k.a.Constructor,e.next=3,this.modelManager.emitPayloads(t,n);case 3:return r=Object(s.b)(t),e.abrupt("return",this.findItems(r));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"setItemToBeDeleted",value:(f=$s(o.a.mark((function e(t){var n,r,i,a,s,c,u,l,f,A;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.collection.uuidsThatReferenceUuid(t),r=this.findItem(t),e.next=4,this.changeItem(t,(function(e){e.setDeleted()}));case 4:i=e.sent,a=!0,s=!1,c=void 0,e.prev=8,u=n[Symbol.iterator]();case 10:if(a=(l=u.next()).done){e.next=19;break}if(f=l.value,!(A=this.findItem(f))){e.next=16;break}return e.next=16,this.changeItem(A.uuid,(function(e){e.removeItemAsRelationship(r)}));case 16:a=!0,e.next=10;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(8),s=!0,c=e.t0;case 25:e.prev=25,e.prev=26,a||null==u.return||u.return();case 28:if(e.prev=28,!s){e.next=31;break}throw c;case 31:return e.finish(28);case 32:return e.finish(25);case 33:return e.abrupt("return",i);case 34:case"end":return e.stop()}}),e,this,[[8,21,25,33],[26,,28,32]])}))),function(e){return f.apply(this,arguments)})},{key:"setItemsToBeDeleted",value:(l=$s(o.a.mark((function e(t){var n,r,i,a,s,c,u,l;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=!0,i=!1,a=void 0,e.prev=4,s=t[Symbol.iterator]();case 6:if(r=(c=s.next()).done){e.next=15;break}return u=c.value,e.next=10,this.setItemToBeDeleted(u);case 10:l=e.sent,n.push(l);case 12:r=!0,e.next=6;break;case 15:e.next=21;break;case 17:e.prev=17,e.t0=e.catch(4),i=!0,a=e.t0;case 21:e.prev=21,e.prev=22,r||null==s.return||s.return();case 24:if(e.prev=24,!i){e.next=27;break}throw a;case 27:return e.finish(24);case 28:return e.finish(21);case 29:return e.abrupt("return",n);case 30:case"end":return e.stop()}}),e,this,[[4,17,21,29],[22,,24,28]])}))),function(e){return l.apply(this,arguments)})},{key:"getItems",value:function(e){return this.collection.all(e)}},{key:"nonErroredItemsForContentType",value:function(e){return this.collection.all(e).filter((function(e){return!e.errorDecrypting&&!e.waitingForKey}))}},{key:"itemsMatchingPredicate",value:function(e){return this.itemsMatchingPredicates([e])}},{key:"itemsMatchingPredicates",value:function(e){return this.subItemsMatchingPredicates(this.items,e)}},{key:"subItemsMatchingPredicates",value:function(e,t){return e.filter((function(e){if(e.deleted)return!1;var n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(!e.satisfiesPredicate(s))return!1}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return!0}))}},{key:"findTagByTitle",value:function(e){return Object(u.C)(this.tags,{title:e})}},{key:"findOrCreateTagByTitle",value:(c=$s(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.findTagByTitle(t),e.t0=n,e.t0){e.next=6;break}return e.next=5,this.createItem(E.a.Tag,Object(s.a)({title:t}),!0);case 5:e.t0=e.sent;case 6:return e.abrupt("return",e.t0);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"notesMatchingSmartTag",value:function(e){var t=[new Q.a("content_type","=",E.a.Note),e.predicate];if(!e.isTrashTag){var n=new Q.a("content.trashed","=",!1);t.push(n)}return this.itemsMatchingPredicates(t)}},{key:"emptyTrash",value:(a=$s(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.trashedItems,e.abrupt("return",this.setItemsToBeDeleted(Object(s.b)(t)));case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getSmartTags",value:function(){var e=this.collection.displayElements(E.a.SmartTag);return this.systemSmartTags.concat(e)}},{key:"removeAllItemsFromMemory",value:(i=$s(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(s.b)(this.items),e.next=3,this.changeItems(t,(function(e){e.setDeleted()}),g.c.NonDirtying);case 3:this.resetState(),this.modelManager.resetState();case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"removeItemLocally",value:function(e){this.collection.discard(e),this.modelManager.removePayloadLocally(e.payload)}},{key:"items",get:function(){return this.collection.all()}},{key:"nonDeletedItems",get:function(){return this.collection.nondeletedElements()}},{key:"invalidItems",get:function(){return this.collection.invalidElements()}},{key:"itemsKeys",get:function(){return this.collection.displayElements(E.a.ItemsKey)}},{key:"notes",get:function(){return this.collection.displayElements(E.a.Note)}},{key:"tags",get:function(){return this.collection.displayElements(E.a.Tag)}},{key:"components",get:function(){return this.collection.displayElements(E.a.Component)}},{key:"trashSmartTag",get:function(){return this.systemSmartTags.find((function(e){return e.isTrashTag}))}},{key:"trashedItems",get:function(){return this.notesMatchingSmartTag(this.trashSmartTag)}},{key:"noteCount",get:function(){return this.collection.all(E.a.Note).length}}])&&Ys(n.prototype,r),t}(Nt.a);function Xs(e,t){return e.sort((function(e,n){var r=new Date(n.updated_at).getTime()-new Date(e.updated_at).getTime(),i=0,a=0;return t&&(i=t.indexOf(e.content_type),a=t.indexOf(n.content_type),-1===i&&(i=t.length),-1===a&&(a=t.length)),i===a?r:i<a?-1:1}))}function Zs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tc=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ec(this,"interval",void 0),ec(this,"receiver",void 0),ec(this,"inProgress",!1),ec(this,"completedUpload",0),ec(this,"totalUpload",0),ec(this,"downloaded",0),ec(this,"databaseLoadCurrent",0),ec(this,"databaseLoadTotal",0),ec(this,"databaseLoadDone",!1),ec(this,"syncing",!1),ec(this,"syncStart",void 0),ec(this,"syncEnd",void 0),ec(this,"timingMonitor",void 0),ec(this,"error",void 0),this.interval=t,this.receiver=n}var t,n;return t=e,(n=[{key:"deinit",value:function(){this.stopTimingMonitor()}},{key:"setSyncInProgress",value:function(e){this.inProgress=!0}},{key:"setUploadStatus",value:function(e,t){this.completedUpload=e,this.totalUpload=t,this.receiver(Bi.a.StatusChanged)}},{key:"setDownloadStatus",value:function(e){this.downloaded+=e,this.receiver(Bi.a.StatusChanged)}},{key:"setDatabaseLoadStatus",value:function(e,t,n){this.databaseLoadCurrent=e,this.databaseLoadTotal=t,this.databaseLoadDone=n,n?this.receiver(Bi.a.LocalDataLoaded):this.receiver(Bi.a.LocalDataIncrementalLoad)}},{key:"getStats",value:function(){return{uploadCompletionCount:this.completedUpload,uploadTotalCount:this.totalUpload,downloadCount:this.downloaded,localDataDone:this.databaseLoadDone,localDataCurrent:this.databaseLoadCurrent,localDataTotal:this.databaseLoadTotal}}},{key:"setDidBegin",value:function(){this.syncing=!0,this.syncStart=new Date}},{key:"setDidEnd",value:function(){this.syncing=!1,this.syncEnd=new Date}},{key:"startTimingMonitor",value:function(){var e=this;this.timingMonitor&&this.stopTimingMonitor(),this.timingMonitor=this.interval((function(){e.secondsSinceSyncStart>5&&(e.receiver(Bi.a.SyncTakingTooLong),e.stopTimingMonitor())}),500)}},{key:"stopTimingMonitor",value:function(){Object.prototype.hasOwnProperty.call(this.interval,"cancel")?this.interval.cancel(this.timingMonitor):clearInterval(this.timingMonitor),this.timingMonitor=null}},{key:"hasError",value:function(){return!!this.error}},{key:"setError",value:function(e){this.error=e}},{key:"clearError",value:function(){this.error=null}},{key:"reset",value:function(){this.downloaded=0,this.completedUpload=0,this.totalUpload=0,this.inProgress=!1,this.syncing=!1,this.error=null,this.stopTimingMonitor(),this.receiver(Bi.a.StatusChanged)}},{key:"syncInProgress",get:function(){return!0===this.syncing}},{key:"secondsSinceSyncStart",get:function(){return((new Date).getTime()-this.syncStart.getTime())/1e3}}])&&Zs(t.prototype,n),e}();function nc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function rc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ac=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ic(this,"lastPreSyncSave",void 0),ic(this,"lastSyncDate",void 0),ic(this,"receiver",void 0),ic(this,"discordance",0),ic(this,"maxDiscordance",void 0),ic(this,"outOfSync",!1),ic(this,"lastClientHash",void 0),ic(this,"lastServerHash",void 0),this.receiver=t,this.maxDiscordance=n,this.reset()}var t,n,r,i;return t=e,(n=[{key:"isOutOfSync",value:function(){return this.outOfSync}},{key:"reset",value:function(){this.lastPreSyncSave=void 0,this.lastSyncDate=void 0,this.discordance=0,this.outOfSync=!1}},{key:"getLastClientIntegrityHash",value:function(){return this.lastClientHash}},{key:"clearIntegrityHashes",value:function(){this.lastClientHash=void 0,this.lastServerHash=void 0}},{key:"setIntegrityHashes",value:(r=o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.lastClientHash=t,this.lastServerHash=n,n&&0!==n.length&&t&&t!==n?(this.discordance++,this.discordance>=this.maxDiscordance&&!this.outOfSync&&(this.outOfSync=!0,this.receiver(Bi.a.EnterOutOfSync))):(this.outOfSync&&(this.outOfSync=!1,this.receiver(Bi.a.ExitOutOfSync)),this.discordance=0);case 4:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){nc(a,n,i,o,s,"next",e)}function s(e){nc(a,n,i,o,s,"throw",e)}o(void 0)}))},function(e,t){return i.apply(this,arguments)})},{key:"needsSync",get:function(){return this.discordance>0&&this.discordance<this.maxDiscordance}}])&&rc(t.prototype,n),e}();function oc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function sc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uc=function(){function e(t,n,r,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cc(this,"apiService",void 0),cc(this,"protocolService",void 0),cc(this,"contentType",void 0),cc(this,"customEvent",void 0),cc(this,"limit",void 0),cc(this,"progress",void 0),this.apiService=t,this.protocolService=n,this.contentType=r,this.customEvent=i,this.limit=a,this.progress={retrievedPayloads:[]}}var t,n,r,i;return t=e,(n=[{key:"run",value:(r=o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.apiService.sync([],this.progress.lastSyncToken,this.progress.paginationToken,this.limit||500,!1,this.contentType,this.customEvent);case 2:return t=e.sent,n=t.retrieved_items.map((function(e){return Object(_.f)(e,k.a.RemoteRetrieved)})),e.next=6,this.protocolService.payloadsByDecryptingPayloads(n);case 6:if(r=e.sent,this.progress.retrievedPayloads=this.progress.retrievedPayloads.concat(r),this.progress.lastSyncToken=t.sync_token,this.progress.paginationToken=t.cursor_token,!t.cursor_token){e.next=14;break}return e.abrupt("return",this.run());case 14:return e.abrupt("return",this.progress.retrievedPayloads);case 15:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){oc(a,n,i,o,s,"next",e)}function s(e){oc(a,n,i,o,s,"throw",e)}o(void 0)}))},function(){return i.apply(this,arguments)})}])&&sc(t.prototype,n),e}();function lc(e){return(lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ac(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){fc(a,r,i,o,s,"next",e)}function s(e){fc(a,r,i,o,s,"throw",e)}o(void 0)}))}}function hc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dc(e,t){return!t||"object"!==lc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gc(e){return(gc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yc(e,t){return(yc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vc=function(e){function t(){return hc(this,t),dc(this,gc(t).apply(this,arguments))}var n,r,i,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yc(e,t)}(t,e),n=t,(r=[{key:"resultingCollection",value:(s=Ac(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.applyCollection.source!==k.a.ConflictUuid){e.next=4;break}return e.abrupt("return",this.collectionsByHandlingUuidConflicts());case 4:if(this.applyCollection.source!==k.a.ConflictData){e.next=8;break}return e.abrupt("return",this.collectionsByHandlingDataConflicts());case 8:throw"Unhandled conflict type ".concat(this.applyCollection.source);case 9:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"collectionsByHandlingDataConflicts",value:(a=Ac(o.a.mark((function e(){var t,n,r,i,a,s,c,l,f,A,h,p;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=!0,r=!1,i=void 0,e.prev=4,a=this.applyCollection.all()[Symbol.iterator]();case 6:if(n=(s=a.next()).done){e.next=27;break}if(c=s.value,l=this.findBasePayload(c.uuid)){e.next=12;break}return t.push(c),e.abrupt("continue",24);case 12:if(f=this.findRelatedPayload(c.uuid,k.a.DecryptedTransient)){e.next=18;break}if(c.deleted){e.next=16;break}throw"Unable to find decrypted counterpart for data conflict.";case 16:return t.push(c),e.abrupt("continue",24);case 18:return A=new ii(this.baseCollection,l,f,k.a.ConflictData),e.next=21,A.resultingCollection();case 21:h=e.sent,p=h.all(),Object(u.j)(t,p);case 24:n=!0,e.next=6;break;case 27:e.next=33;break;case 29:e.prev=29,e.t0=e.catch(4),r=!0,i=e.t0;case 33:e.prev=33,e.prev=34,n||null==a.return||a.return();case 36:if(e.prev=36,!r){e.next=39;break}throw i;case 39:return e.finish(36);case 40:return e.finish(33);case 41:return e.abrupt("return",Tr.WithPayloads(t,k.a.RemoteRetrieved));case 42:case"end":return e.stop()}}),e,this,[[4,29,33,41],[34,,36,40]])}))),function(){return a.apply(this,arguments)})},{key:"collectionsByHandlingUuidConflicts",value:(i=Ac(o.a.mark((function e(){var t,n,r,i,a,s,c,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=!0,r=!1,i=void 0,e.prev=4,a=this.applyCollection.all()[Symbol.iterator]();case 6:if(n=(s=a.next()).done){e.next=16;break}return c=s.value,l=this.findRelatedPayload(c.uuid,k.a.DecryptedTransient),e.next=11,Yr(l,this.baseCollection);case 11:f=e.sent,Object(u.j)(t,f);case 13:n=!0,e.next=6;break;case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(4),r=!0,i=e.t0;case 22:e.prev=22,e.prev=23,n||null==a.return||a.return();case 25:if(e.prev=25,!r){e.next=28;break}throw i;case 28:return e.finish(25);case 29:return e.finish(22);case 30:return e.abrupt("return",Tr.WithPayloads(t,k.a.RemoteRetrieved));case 31:case"end":return e.stop()}}),e,this,[[4,18,22,30],[23,,25,29]])}))),function(){return i.apply(this,arguments)})}])&&pc(n.prototype,r),t}(br);function mc(e){return(mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cc(e,t){return!t||"object"!==mc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bc(e){return(Bc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ec(e,t){return(Ec=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _c=function(e){function t(){return Ic(this,t),Cc(this,Bc(t).apply(this,arguments))}var n,r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ec(e,t)}(t,e),n=t,(r=[{key:"resultingCollection",value:(i=o.a.mark((function e(){var t,n,r,i,a,s,c,u,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=[],n=!0,r=!1,i=void 0,e.prev=4,a=this.applyCollection.all()[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)c=s.value,u=this.findBasePayload(c.uuid),l=u?u.deleted:c.deleted,f=Object(_.f)(c,k.a.RemoteSaved,{lastSyncEnd:new Date,deleted:l}),t.push(f);e.next=12;break;case 8:e.prev=8,e.t0=e.catch(4),r=!0,i=e.t0;case 12:e.prev=12,e.prev=13,n||null==a.return||a.return();case 15:if(e.prev=15,!r){e.next=18;break}throw i;case 18:return e.finish(15);case 19:return e.finish(12);case 20:return e.abrupt("return",Tr.WithPayloads(t,k.a.RemoteSaved));case 21:case"end":return e.stop()}}),e,this,[[4,8,12,20],[13,,15,19]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var a=i.apply(e,t);function o(e){bc(a,n,r,o,s,"next",e)}function s(e){bc(a,n,r,o,s,"throw",e)}o(void 0)}))},function(){return a.apply(this,arguments)})}])&&wc(n.prototype,r),t}(br);function kc(e){return(kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dc(e,t){return!t||"object"!==kc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pc(e){return(Pc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mc(e,t){return(Mc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Fc=function(e){function t(){return Sc(this,t),Dc(this,Pc(t).apply(this,arguments))}var n,r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mc(e,t)}(t,e),n=t,(r=[{key:"resultingCollection",value:(i=o.a.mark((function e(){var t,n,r,i,a,s,c,l,f,A,h,p,d,g,y,v,m,b,I,w;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=[],r=!0,i=!1,a=void 0,e.prev=5,s=this.applyCollection.all()[Symbol.iterator]();case 7:if(r=(c=s.next()).done){e.next=27;break}if(l=c.value,f=this.findRelatedPayload(l.uuid,k.a.SavedOrSaving),A=this.findRelatedPayload(l.uuid,k.a.DecryptedTransient)){e.next=16;break}if(l.deleted){e.next=14;break}throw"Cannot find decrypted for non-deleted payload.";case 14:return t.push(l),e.abrupt("continue",24);case 16:if(!f){e.next=19;break}return n.push(A),e.abrupt("continue",24);case 19:if(!(h=this.findBasePayload(l.uuid))||!h.dirty){e.next=23;break}return n.push(A),e.abrupt("continue",24);case 23:t.push(A);case 24:r=!0,e.next=7;break;case 27:e.next=33;break;case 29:e.prev=29,e.t0=e.catch(5),i=!0,a=e.t0;case 33:e.prev=33,e.prev=34,r||null==s.return||s.return();case 36:if(e.prev=36,!i){e.next=39;break}throw a;case 39:return e.finish(36);case 40:return e.finish(33);case 41:p=[],d=0,g=n;case 43:if(!(d<g.length)){e.next=60;break}if(y=g[d],v=this.findRelatedPayload(y.uuid,k.a.DecryptedTransient)){e.next=48;break}return e.abrupt("continue",57);case 48:if(m=this.findBasePayload(y.uuid)){e.next=51;break}return e.abrupt("continue",57);case 51:return b=new ii(this.baseCollection,m,v,k.a.ConflictData),e.next=54,b.resultingCollection();case 54:I=e.sent,w=I.all(),Object(u.j)(p,w);case 57:d++,e.next=43;break;case 60:return e.abrupt("return",Tr.WithPayloads(t.concat(p),k.a.RemoteRetrieved));case 61:case"end":return e.stop()}}),e,this,[[5,29,33,41],[34,,36,40]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var a=i.apply(e,t);function o(e){Qc(a,n,r,o,s,"next",e)}function s(e){Qc(a,n,r,o,s,"throw",e)}o(void 0)}))},function(){return a.apply(this,arguments)})}])&&xc(n.prototype,r),t}(br);function Oc(e){return e===k.a.RemoteRetrieved?Fc:e===k.a.RemoteSaved?_c:e===k.a.ConflictData||e===k.a.ConflictUuid?vc:void 0}function Rc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Tc=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=void 0,(n="collections")in this?Object.defineProperty(this,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[n]=r,this.collections=t,Object.freeze(this)}var t,n;return t=e,(n=[{key:"collectionForSource",value:function(e){return this.collections.find((function(t){return t.source===e}))}}])&&Rc(t.prototype,n),e}();function Hc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function jc(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Hc(a,r,i,o,s,"next",e)}function s(e){Hc(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lc,Kc=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Uc(this,"response",void 0),Uc(this,"baseCollection",void 0),Uc(this,"relatedCollectionSet",void 0),this.response=t,this.baseCollection=r,this.relatedCollectionSet=new Tc([Tr.WithPayloads(n,k.a.DecryptedTransient),Tr.WithPayloads(i,k.a.SavedOrSaving)])}var t,n,r,i;return t=e,(n=[{key:"collectionsByProcessingResponse",value:(i=jc(o.a.mark((function e(){var t,n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.next=3,this.collectionByProcessingPayloads(this.response.retrievedPayloads,k.a.RemoteRetrieved);case 3:return(n=e.sent).all().length>0&&t.push(n),e.next=7,this.collectionByProcessingPayloads(this.response.savedPayloads,k.a.RemoteSaved);case 7:if((r=e.sent).all().length>0&&t.push(r),!(this.response.uuidConflictPayloads.length>0)){e.next=14;break}return e.next=12,this.collectionByProcessingPayloads(this.response.uuidConflictPayloads,k.a.ConflictUuid);case 12:(i=e.sent).all().length>0&&t.push(i);case 14:if(!(this.response.dataConflictPayloads.length>0)){e.next=19;break}return e.next=17,this.collectionByProcessingPayloads(this.response.dataConflictPayloads,k.a.ConflictData);case 17:(a=e.sent).all().length>0&&t.push(a);case 19:return e.abrupt("return",t);case 20:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"collectionByProcessingPayloads",value:(r=jc(o.a.mark((function e(t,n){var r,i,a,s,c,u=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Tr.WithPayloads(t,n),i=Oc(n),a=new i(this.baseCollection,r,this.relatedCollectionSet),e.next=5,a.resultingCollection();case 5:return s=e.sent,c=s.all().map((function(e){var t=u.finalDirtyStateForPayload(e);return Object(_.b)(e,{dirty:t,dirtiedDate:t?new Date:void 0})})),e.abrupt("return",Tr.WithPayloads(c,n));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"finalDirtyStateForPayload",value:function(e){var t=this.baseCollection.find(e.uuid);return t?e.dirtiedDate&&e.dirtiedDate>t.dirtiedDate?e.dirty:t.dirtiedDate>t.lastSyncBegan:e.dirty}}])&&Nc(t.prototype,n),e}();function Gc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.ConflictingData="sync_conflict",e.UuidConflict="uuid_conflict"}(Lc||(Lc={}));var Yc,Jc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),$c(this,"rawResponse",void 0),$c(this,"savedPayloads",void 0),$c(this,"retrievedPayloads",void 0),$c(this,"uuidConflictPayloads",void 0),$c(this,"dataConflictPayloads",void 0),$c(this,"deletedPayloads",void 0),this.rawResponse=t,this.savedPayloads=this.filterRawItemArray(t.saved_items).map((function(e){return Object(_.f)(e,k.a.RemoteSaved)})),this.retrievedPayloads=this.filterRawItemArray(t.retrieved_items).map((function(e){return Object(_.f)(e,k.a.RemoteRetrieved)})),this.dataConflictPayloads=this.filterRawItemArray(this.rawDataConflictItems).map((function(e){return Object(_.f)(e,k.a.ConflictData)})),this.uuidConflictPayloads=this.filterRawItemArray(this.rawUuidConflictItems).map((function(e){return Object(_.f)(e,k.a.ConflictUuid)})),this.deletedPayloads=this.allProcessedPayloads.filter((function(e){return e.discardable})),Object(u.g)(this)}var t,n;return t=e,(n=[{key:"filterRawItemArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((function(e){return!!e.uuid}))}},{key:"error",get:function(){return this.rawResponse.error}},{key:"status",get:function(){return this.rawResponse.status}},{key:"lastSyncToken",get:function(){return this.rawResponse[Bn.LastSyncToken]}},{key:"paginationToken",get:function(){return this.rawResponse[Bn.PaginationToken]}},{key:"integrityHash",get:function(){return this.rawResponse[Bn.IntegrityResult]}},{key:"checkIntegrity",get:function(){return this.integrityHash&&!this.paginationToken}},{key:"numberOfItemsInvolved",get:function(){return this.allProcessedPayloads.length}},{key:"allProcessedPayloads",get:function(){return this.savedPayloads.concat(this.retrievedPayloads).concat(this.dataConflictPayloads).concat(this.uuidConflictPayloads)}},{key:"rawUuidConflictItems",get:function(){return this.rawConflictObjects.filter((function(e){return e.type===Lc.UuidConflict})).map((function(e){return e.unsaved_item||e.item}))}},{key:"rawDataConflictItems",get:function(){return this.rawConflictObjects.filter((function(e){return e.type===Lc.ConflictingData})).map((function(e){return e.server_item||e.item}))}},{key:"rawConflictObjects",get:function(){var e=this.rawResponse.conflicts||[],t=this.rawResponse.unsaved||[];return e.concat(t)}},{key:"hasError",get:function(){return!Object(u.p)(this.rawResponse.error)}}])&&Gc(t.prototype,n),e}();function Vc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function zc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Response=1]="Response",e[e.StatusChanged=2]="StatusChanged"}(Yc||(Yc={}));var Wc=function(){function e(t,n,r,i,a,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),qc(this,"payloads",void 0),qc(this,"receiver",void 0),qc(this,"lastSyncToken",void 0),qc(this,"paginationToken",void 0),qc(this,"checkIntegrity",void 0),qc(this,"apiService",void 0),qc(this,"pendingPayloads",void 0),qc(this,"responses",[]),this.payloads=t,this.lastSyncToken=r,this.paginationToken=i,this.checkIntegrity=a,this.apiService=o,this.receiver=n,this.pendingPayloads=t}var t,n,r,i;return t=e,(n=[{key:"popPayloads",value:function(e){var t=this.pendingPayloads.slice(0,e);return Object(u.F)(this.pendingPayloads,t),t}},{key:"run",value:(r=o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.popPayloads(this.upLimit),e.next=3,this.apiService.sync(t,this.lastSyncToken,this.paginationToken,this.downLimit,this.checkIntegrity,void 0,void 0);case 3:return n=e.sent,r=new Jc(n),this.responses.push(r),this.lastSyncToken=r.lastSyncToken,this.paginationToken=r.paginationToken,e.next=10,this.receiver(Yc.Response,r);case 10:if(this.done){e.next=12;break}return e.abrupt("return",this.run());case 12:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){Vc(a,n,i,o,s,"next",e)}function s(e){Vc(a,n,i,o,s,"throw",e)}o(void 0)}))},function(){return i.apply(this,arguments)})},{key:"pendingUploadCount",value:function(){return this.pendingPayloads.length}},{key:"totalUploadCount",value:function(){return this.payloads.length}},{key:"payloadsSavedOrSaving",get:function(){return Object(u.c)(this.payloads,this.pendingPayloads)}},{key:"done",get:function(){return 0===this.pendingPayloads.length&&!this.paginationToken}},{key:"upLimit",get:function(){return 150}},{key:"downLimit",get:function(){return 150}},{key:"numberOfItemsInvolved",get:function(){var e=0,t=!0,n=!1,r=void 0;try{for(var i,a=this.responses[Symbol.iterator]();!(t=(i=a.next()).done);t=!0)e+=i.value.numberOfItemsInvolved}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}}])&&zc(t.prototype,n),e}();function Xc(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Zc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tu=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),eu(this,"payloads",void 0),eu(this,"receiver",void 0),this.payloads=t,this.receiver=n}var t,n,r,i;return t=e,(n=[{key:"run",value:(r=o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.payloads.map((function(e){return Object(_.f)(e,k.a.LocalSaved,{dirty:!1,lastSyncEnd:new Date})})),n=Object(u.a)(t),r=new Jc({saved_items:n}),e.next=5,this.receiver(Yc.Response,r);case 5:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){Xc(a,n,i,o,s,"next",e)}function s(e){Xc(a,n,i,o,s,"throw",e)}o(void 0)}))},function(){return i.apply(this,arguments)})}])&&Zc(t.prototype,n),e}();function nu(e){return(nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ru(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function iu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ou(e,t){return!t||"object"!==nu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function su(e){return(su=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cu(e,t){return(cu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var uu,lu,fu,Au=function(e){function t(){return iu(this,t),ou(this,su(t).apply(this,arguments))}var n,r,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cu(e,t)}(t,e),n=t,(r=[{key:"resultingCollection",value:(i=o.a.mark((function e(){var t,n,r,i,a,s,c,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=!0,r=!1,i=void 0,e.prev=4,a=this.applyCollection.all()[Symbol.iterator]();case 6:if(n=(s=a.next()).done){e.next=22;break}if(c=s.value,t.push(c),l=this.findBasePayload(c.uuid)){e.next=12;break}return e.abrupt("continue",19);case 12:if(!qr(c,l)){e.next=15;break}return e.abrupt("continue",19);case 15:return e.next=17,Gr(l,this.baseCollection,!0);case 17:f=e.sent,Object(u.j)(t,f);case 19:n=!0,e.next=6;break;case 22:e.next=28;break;case 24:e.prev=24,e.t0=e.catch(4),r=!0,i=e.t0;case 28:e.prev=28,e.prev=29,n||null==a.return||a.return();case 31:if(e.prev=31,!r){e.next=34;break}throw i;case 34:return e.finish(31);case 35:return e.finish(28);case 36:return e.abrupt("return",Tr.WithPayloads(t,k.a.RemoteRetrieved));case 37:case"end":return e.stop()}}),e,this,[[4,24,28,36],[29,,31,35]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var a=i.apply(e,t);function o(e){ru(a,n,r,o,s,"next",e)}function s(e){ru(a,n,r,o,s,"throw",e)}o(void 0)}))},function(){return a.apply(this,arguments)})}])&&au(n.prototype,r),t}(br);function hu(e){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function du(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function gu(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){du(a,r,i,o,s,"next",e)}function s(e){du(a,r,i,o,s,"throw",e)}o(void 0)}))}}function yu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mu(e,t,n){return(mu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bu(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function bu(e){return(bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Iu(e,t){return(Iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.ResolveOnNext=1]="ResolveOnNext",e[e.ForceSpawnNew=2]="ForceSpawnNew"}(uu||(uu={})),function(e){e[e.Default=1]="Default",e[e.DownloadFirst=2]="DownloadFirst"}(lu||(lu={})),function(e){e[e.External=1]="External",e[e.SpawnQueue=2]="SpawnQueue",e[e.ResolveQueue=3]="ResolveQueue",e[e.MoreDirtyItems=4]="MoreDirtyItems",e[e.AfterDownloadFirst=5]="AfterDownloadFirst",e[e.IntegrityCheck=6]="IntegrityCheck",e[e.ResolveOutOfSync=7]="ResolveOutOfSync"}(fu||(fu={}));var Cu=function(e){function t(e,n,r,i,a,o,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c=function(e,t){return!t||"object"!==hu(t)&&"function"!=typeof t?vu(e):t}(this,bu(t).call(this)),wu(vu(c),"sessionManager",void 0),wu(vu(c),"protocolService",void 0),wu(vu(c),"storageService",void 0),wu(vu(c),"modelManager",void 0),wu(vu(c),"itemManager",void 0),wu(vu(c),"apiService",void 0),wu(vu(c),"interval",void 0),wu(vu(c),"state",void 0),wu(vu(c),"opStatus",void 0),wu(vu(c),"resolveQueue",[]),wu(vu(c),"spawnQueue",[]),wu(vu(c),"completedOnlineDownloadFirstSync",!1),wu(vu(c),"majorChangeThreshold",15),wu(vu(c),"maxDiscordance",5),wu(vu(c),"locked",!1),wu(vu(c),"databaseLoaded",!1),wu(vu(c),"syncToken",void 0),wu(vu(c),"cursorToken",void 0),wu(vu(c),"syncLock",void 0),wu(vu(c),"_simulate_latency",void 0),wu(vu(c),"localLoadPriorty",[E.a.ItemsKey,E.a.UserPrefs,E.a.Privileges,E.a.Component,E.a.Theme]),wu(vu(c),"nonEncryptedTypes",[E.a.Mfa,E.a.ServerExtension]),c.itemManager=e,c.sessionManager=n,c.protocolService=r,c.modelManager=a,c.storageService=i,c.apiService=o,c.interval=s,c.initializeStatus(),c.initializeState(),c}var n,r,i,a,c,l,f,A,h,p,d,y,v,m,b,I,w,C,B,Q,S,x,D,P,M,F,O,R;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Iu(e,t)}(t,e),n=t,(r=[{key:"onNewDatabaseCreated",value:(R=gu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getLastSyncToken();case 2:if(!e.sent){e.next=5;break}return e.next=5,this.clearSyncPositionTokens();case 5:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"deinit",value:function(){this.sessionManager=void 0,this.itemManager=void 0,this.protocolService=void 0,this.modelManager=void 0,this.storageService=void 0,this.apiService=void 0,this.interval=void 0,this.state.reset(),this.opStatus.reset(),this.state=void 0,this.opStatus=void 0,this.resolveQueue.length=0,this.spawnQueue.length=0,mu(bu(t.prototype),"deinit",this).call(this)}},{key:"initializeStatus",value:function(){var e=this;this.opStatus=new tc(this.interval,(function(t){e.notifyEvent(t)}))}},{key:"initializeState",value:function(){var e=this;this.state=new ac((function(t){t===Bi.a.EnterOutOfSync?e.notifyEvent(Bi.a.EnterOutOfSync):t===Bi.a.ExitOutOfSync&&e.notifyEvent(Bi.a.ExitOutOfSync)}),this.maxDiscordance)}},{key:"lockSyncing",value:function(){this.locked=!0}},{key:"unlockSyncing",value:function(){this.locked=!1}},{key:"isOutOfSync",value:function(){return this.state.isOutOfSync()}},{key:"getLastSyncDate",value:function(){return this.state.lastSyncDate}},{key:"getStatus",value:function(){return this.opStatus}},{key:"resetSyncState",value:function(){this.state.reset()}},{key:"isDatabaseLoaded",value:function(){return this.databaseLoaded}},{key:"getDatabasePayloads",value:(O=gu(o.a.mark((function e(){var t=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.storageService.getAllRawPayloads().catch((function(e){throw t.notifyEvent(Bi.a.DatabaseReadError,e),e})));case 1:case"end":return e.stop()}}),e,this)}))),function(){return O.apply(this,arguments)})},{key:"loadDatabasePayloads",value:(F=gu(o.a.mark((function e(t){var n,r,i,a,s,c,l,f,A,h,p;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.databaseLoaded){e.next=2;break}throw"Attempting to initialize already initialized local database.";case 2:if(0!==t.length){e.next=6;break}return this.databaseLoaded=!0,this.opStatus.setDatabaseLoadStatus(0,0,!0),e.abrupt("return");case 6:return n=t.map((function(e){return Object(_.e)(e)})),r=Xs(n,this.localLoadPriorty),i=r.filter((function(e){return e.content_type===E.a.ItemsKey})),Object(u.F)(r,i),e.next=12,this.protocolService.payloadsByDecryptingPayloads(i);case 12:return a=e.sent,e.next=15,this.modelManager.emitPayloads(a,k.a.LocalRetrieved);case 15:s=r.length,c=100,l=Math.ceil(s/c),f=0;case 19:if(!(f<l)){e.next=32;break}return A=f*c,h=r.slice(A,A+c),e.next=24,this.protocolService.payloadsByDecryptingPayloads(h);case 24:return p=e.sent,e.next=27,this.modelManager.emitPayloads(p,k.a.LocalRetrieved);case 27:this.notifyEvent(Bi.a.LocalDataIncrementalLoad),this.opStatus.setDatabaseLoadStatus(A,s,!1);case 29:f++,e.next=19;break;case 32:this.databaseLoaded=!0,this.opStatus.setDatabaseLoadStatus(0,0,!0);case 34:case"end":return e.stop()}}),e,this)}))),function(e){return F.apply(this,arguments)})},{key:"setLastSyncToken",value:(M=gu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.syncToken=t,e.abrupt("return",this.storageService.setValue(Dt.LastSyncToken,t));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return M.apply(this,arguments)})},{key:"setPaginationToken",value:(P=gu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.cursorToken=t,!t){e.next=5;break}return e.abrupt("return",this.storageService.setValue(Dt.PaginationToken,t));case 5:return e.abrupt("return",this.storageService.removeValue(Dt.PaginationToken));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"getLastSyncToken",value:(D=gu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.syncToken){e.next=4;break}return e.next=3,this.storageService.getValue(Dt.LastSyncToken);case 3:this.syncToken=e.sent;case 4:return e.abrupt("return",this.syncToken);case 5:case"end":return e.stop()}}),e,this)}))),function(){return D.apply(this,arguments)})},{key:"getPaginationToken",value:(x=gu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.cursorToken){e.next=4;break}return e.next=3,this.storageService.getValue(Dt.PaginationToken);case 3:this.cursorToken=e.sent;case 4:return e.abrupt("return",this.cursorToken);case 5:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"clearSyncPositionTokens",value:(S=gu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.syncToken=void 0,this.cursorToken=void 0,e.next=4,this.storageService.removeValue(Dt.LastSyncToken);case 4:return e.next=6,this.storageService.removeValue(Dt.PaginationToken);case 6:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"itemsNeedingSync",value:(Q=gu(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.itemManager.getDirtyItems(),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e,this)}))),function(){return Q.apply(this,arguments)})},{key:"alternateUuidForItem",value:(B=gu(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.itemManager.findItem(t),r=Object(_.e)(n),e.next=4,Yr(r,this.modelManager.getMasterCollection());case 4:return i=e.sent,e.next=7,this.modelManager.emitPayloads(i,k.a.LocalChanged);case 7:return e.next=9,this.persistPayloads(i);case 9:return e.abrupt("return",this.itemManager.findItem(i[0].uuid));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return B.apply(this,arguments)})},{key:"markAllItemsAsNeedingSync",value:(C=gu(o.a.mark((function e(t){var n,r,i,a,s,c,u,l,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log("Marking all items as needing sync"),!t){e.next=29;break}n=this.itemManager.items.filter((function(e){return!e.errorDecrypting})).slice(),r=!0,i=!1,a=void 0,e.prev=6,s=n[Symbol.iterator]();case 8:if(r=(c=s.next()).done){e.next=15;break}return u=c.value,e.next=12,this.alternateUuidForItem(u.uuid);case 12:r=!0,e.next=8;break;case 15:e.next=21;break;case 17:e.prev=17,e.t0=e.catch(6),i=!0,a=e.t0;case 21:e.prev=21,e.prev=22,r||null==s.return||s.return();case 24:if(e.prev=24,!i){e.next=27;break}throw a;case 27:return e.finish(24);case 28:return e.finish(21);case 29:return l=this.itemManager.items,f=l.map((function(e){return Object(_.e)(e,{dirty:!0,dirtiedDate:new Date})})),e.next=33,this.modelManager.emitPayloads(f,k.a.LocalChanged);case 33:return e.next=35,this.persistPayloads(f);case 35:case"end":return e.stop()}}),e,this,[[6,17,21,29],[22,,24,28]])}))),function(e){return C.apply(this,arguments)})},{key:"popPayloadsNeedingPreSyncSave",value:(w=gu(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.state.lastPreSyncSave){e.next=3;break}return e.abrupt("return",t);case 3:return r=t.filter((function(e){return!e.dirtiedDate||e.dirtiedDate>n})),this.state.lastPreSyncSave=new Date,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"queueStrategyResolveOnNext",value:function(){var e=this;return new Promise((function(t,n){e.resolveQueue.push({resolve:t,reject:n})}))}},{key:"queueStrategyForceSpawnNew",value:function(e){var t=this;return new Promise((function(n,r){t.spawnQueue.push({resolve:n,reject:r,options:e})}))}},{key:"popSpawnQueue",value:function(){if(0===this.spawnQueue.length)return null;var e=this.spawnQueue[0];return Object(u.B)(this.spawnQueue,0),this.log("Syncing again from spawn queue"),this.sync(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){wu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({queueStrategy:uu.ForceSpawnNew,source:fu.SpawnQueue},e.options)).then((function(){e.resolve()})).catch((function(){e.reject()}))}},{key:"payloadsByPreparingForServer",value:(I=gu(o.a.mark((function e(t){var n=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.protocolService.payloadsByEncryptingPayloads(t,(function(e){return n.nonEncryptedTypes.includes(e.content_type)?jt.a.SyncDecrypted:jt.a.Sync})));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"sync",value:(b=gu(o.a.mark((function e(){var t,n,r,i,a,c,l,f,A,h,p,d,y,v,m,b,I,w,C,B,E,_,Q,S,x,D=this,P=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=P.length>0&&void 0!==P[0]?P[0]:{},!this.locked){e.next=4;break}return this.log("Sync Locked"),e.abrupt("return");case 4:return n=function(){return D.syncLock},r=function(){D.syncLock=!0},i=function(){D.syncLock=!1},a=this.opStatus.syncInProgress,c=this.databaseLoaded,(l=!n())&&c&&!a&&r(),t.source||(t.source=fu.External),e.next=14,this.itemsNeedingSync();case 14:return f=e.sent,A=f.filter((function(e){return e.neverSynced&&e.deleted})),Object(u.F)(f,A),h=f.map((function(e){return e.payloadRepresentation()})),e.next=20,this.popPayloadsNeedingPreSyncSave(h);case 20:return p=e.sent,e.next=23,this.persistPayloads(p);case 23:if(d=this.resolveQueue.slice(),y=Object(u.p)(t.queueStrategy)?uu.ResolveOnNext:t.queueStrategy,!a&&c&&l){e.next=36;break}if(this.log(l?a?"Attempting to sync while existing sync in progress.":"Attempting to sync before local database has loaded.":"Another function call has begun preparing for sync."),y!==uu.ResolveOnNext){e.next=31;break}return e.abrupt("return",this.queueStrategyResolveOnNext());case 31:if(y!==uu.ForceSpawnNew){e.next=35;break}return e.abrupt("return",this.queueStrategyForceSpawnNew({mode:t.mode,checkIntegrity:t.checkIntegrity,source:t.source}));case 35:throw"Unhandled timing strategy ".concat(y);case 36:if(this.opStatus.setDidBegin(),this.notifyEvent(Bi.a.SyncWillBegin),Object(u.F)(this.resolveQueue,d),v=new Date,!(f.length>0)){e.next=43;break}return e.next=43,this.itemManager.changeItems(Object(s.b)(f),(function(e){e.lastSyncBegan=v}),g.c.NonDirtying,k.a.PreSyncSave);case 43:if(m=this.sessionManager.online(),o=t.mode,b=m&&!D.completedOnlineDownloadFirstSync?lu.DownloadFirst:Object(u.p)(o)?lu.Default:o,I=[],b!==lu.Default){e.next=58;break}if(!m||this.completedOnlineDownloadFirstSync){e.next=49;break}throw"Attempting to default mode sync without having completed initial.";case 49:if(!m){e.next=55;break}return e.next=52,this.payloadsByPreparingForServer(h);case 52:I=e.sent,e.next=56;break;case 55:I=h;case 56:e.next=59;break;case 58:b===lu.DownloadFirst&&(I=[]);case 59:if(!m){e.next=65;break}return e.next=62,this.syncOnlineOperation(I,t.checkIntegrity,t.source,b);case 62:w=e.sent,e.next=68;break;case 65:return e.next=67,this.syncOfflineOperation(I,t.source,b);case 67:w=e.sent;case 68:return e.next=70,w.run();case 70:if(this.opStatus.setDidEnd(),i(),!this.opStatus.hasError()){e.next=74;break}return e.abrupt("return");case 74:if(this.opStatus.reset(),this.state.lastSyncDate=new Date,w instanceof Wc&&w.numberOfItemsInvolved>=this.majorChangeThreshold&&this.notifyEvent(Bi.a.MajorDataChange),!(A.length>0)){e.next=80;break}return e.next=80,this.handleNeverSyncedDeleted(A);case 80:if(b===lu.DownloadFirst){e.next=83;break}return e.next=83,this.notifyEvent(Bi.a.FullSyncCompleted,{source:t.source});case 83:if(b!==lu.DownloadFirst){e.next=91;break}return m&&(this.completedOnlineDownloadFirstSync=!0),e.next=87,this.notifyEvent(Bi.a.DownloadFirstSyncCompleted);case 87:return e.next=89,this.sync({source:fu.AfterDownloadFirst,checkIntegrity:!0,awaitAll:t.awaitAll});case 89:e.next=117;break;case 91:if(this.popSpawnQueue()||!(this.resolveQueue.length>0)){e.next=99;break}if(this.log("Syncing again from resolve queue"),C=this.sync({source:fu.ResolveQueue,checkIntegrity:t.checkIntegrity}),!t.awaitAll){e.next=97;break}return e.next=97,C;case 97:e.next=117;break;case 99:return e.next=101,this.itemsNeedingSync();case 101:if(e.t0=e.sent.length,!(e.t0>0)){e.next=107;break}return e.next=105,this.sync({source:fu.MoreDirtyItems,checkIntegrity:t.checkIntegrity,awaitAll:t.awaitAll});case 105:e.next=117;break;case 107:if(!(w instanceof Wc&&w.checkIntegrity)){e.next=116;break}if(!this.state.needsSync||!w.done){e.next=114;break}if(this.log("Syncing again from integrity check"),B=this.sync({checkIntegrity:!0,queueStrategy:uu.ForceSpawnNew,source:fu.IntegrityCheck,awaitAll:t.awaitAll}),!t.awaitAll){e.next=114;break}return e.next=114,B;case 114:e.next=117;break;case 116:this.state.clearIntegrityHashes();case 117:for(E=!0,_=!1,Q=void 0,e.prev=120,S=d[Symbol.iterator]();!(E=(x=S.next()).done);E=!0)x.value.resolve();e.next=128;break;case 124:e.prev=124,e.t1=e.catch(120),_=!0,Q=e.t1;case 128:e.prev=128,e.prev=129,E||null==S.return||S.return();case 131:if(e.prev=131,!_){e.next=134;break}throw Q;case 134:return e.finish(131);case 135:return e.finish(128);case 136:case"end":return e.stop()}var o}),e,this,[[120,124,128,136],[129,,131,135]])}))),function(){return b.apply(this,arguments)})},{key:"syncOnlineOperation",value:(m=gu(o.a.mark((function e(t,n,r,i){var a,s=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log("Syncing online user","source:",r,"integrity check",n,"mode:",i,"payloads:",t),e.t0=Wc,e.t1=t,e.t2=function(){var e=gu(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==Yc.Response){e.next=10;break}if(!n.hasError){e.next=6;break}return e.next=4,s.handleErrorServerResponse(n);case 4:e.next=8;break;case 6:return e.next=8,s.handleSuccessServerResponse(a,n);case 8:e.next=13;break;case 10:if(t!==Yc.StatusChanged){e.next=13;break}return e.next=13,s.handleStatusChange(a);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),e.next=6,this.getLastSyncToken();case 6:return e.t3=e.sent,e.next=9,this.getPaginationToken();case 9:return e.t4=e.sent,e.t5=n,e.t6=this.apiService,a=new e.t0(e.t1,e.t2,e.t3,e.t4,e.t5,e.t6),e.abrupt("return",a);case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return m.apply(this,arguments)})},{key:"syncOfflineOperation",value:(v=gu(o.a.mark((function e(t,n,r){var i,a=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log("Syncing offline user","source:",n,"mode:",r,"payloads:",t),i=new tu(t,function(){var e=gu(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==Yc.Response){e.next=3;break}return e.next=3,a.handleOfflineResponse(n);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),e.abrupt("return",i);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return v.apply(this,arguments)})},{key:"handleStatusChange",value:(y=gu(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.pendingUploadCount(),r=t.totalUploadCount(),i=r-n,this.opStatus.setUploadStatus(i,r);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"handleOfflineResponse",value:(d=gu(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log("Offline Sync Response",t.rawResponse),!((n=t.savedPayloads).length>0)){e.next=8;break}return e.next=5,this.modelManager.emitPayloads(n,k.a.LocalSaved);case 5:return r=this.modelManager.find(Object(s.b)(n)),e.next=8,this.persistPayloads(r);case 8:if(!((i=t.deletedPayloads).length>0)){e.next=12;break}return e.next=12,this.deletePayloads(i);case 12:return this.opStatus.clearError(),this.opStatus.setDownloadStatus(t.retrievedPayloads.length),e.next=16,this.notifyEvent(Bi.a.SingleSyncCompleted,t);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"handleErrorServerResponse",value:(p=gu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.log("Sync Error",t),401===t.status&&this.notifyEvent(Bi.a.InvalidSession),this.opStatus.setError(t.error),this.notifyEvent(Bi.a.SyncError,t.error);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"handleSuccessServerResponse",value:(h=gu(o.a.mark((function e(t,n){var r,i,a,s,c,l,f,A,h,p,d,g,y,v,m,b,I,w,C,B;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._simulate_latency){e.next=3;break}return e.next=3,Object(u.D)(this._simulate_latency.latency);case 3:this.log("Online Sync Response",n.rawResponse),this.setLastSyncToken(n.lastSyncToken),this.setPaginationToken(n.paginationToken),this.opStatus.clearError(),this.opStatus.setDownloadStatus(n.retrievedPayloads.length),r=[],i=!0,a=!1,s=void 0,e.prev=12,c=n.allProcessedPayloads[Symbol.iterator]();case 14:if(i=(l=c.next()).done){e.next=25;break}if(!(f=l.value).deleted&&f.fields.includes(Wr.a.Content)){e.next=18;break}return e.abrupt("continue",22);case 18:return e.next=20,this.protocolService.payloadByDecryptingPayload(f);case 20:A=e.sent,r.push(A);case 22:i=!0,e.next=14;break;case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(12),a=!0,s=e.t0;case 31:e.prev=31,e.prev=32,i||null==c.return||c.return();case 34:if(e.prev=34,!a){e.next=37;break}throw s;case 37:return e.finish(34);case 38:return e.finish(31);case 39:return h=this.modelManager.getMasterCollection(),p=new Kc(n,r,h,t.payloadsSavedOrSaving),e.next=43,p.collectionsByProcessingResponse();case 43:d=e.sent,g=!0,y=!1,v=void 0,e.prev=47,m=d[Symbol.iterator]();case 49:if(g=(b=m.next()).done){e.next=59;break}return I=b.value,e.next=53,this.modelManager.emitCollection(I);case 53:return w=this.modelManager.find(I.uuids()),e.next=56,this.persistPayloads(w);case 56:g=!0,e.next=49;break;case 59:e.next=65;break;case 61:e.prev=61,e.t1=e.catch(47),y=!0,v=e.t1;case 65:e.prev=65,e.prev=66,g||null==m.return||m.return();case 68:if(e.prev=68,!y){e.next=71;break}throw v;case 71:return e.finish(68);case 72:return e.finish(65);case 73:if(!((C=n.deletedPayloads).length>0)){e.next=77;break}return e.next=77,this.deletePayloads(C);case 77:return e.next=79,this.notifyEvent(Bi.a.SingleSyncCompleted,n);case 79:if(!n.checkIntegrity){e.next=85;break}return e.next=82,this.computeDataIntegrityHash();case 82:return B=e.sent,e.next=85,this.state.setIntegrityHashes(B,n.integrityHash);case 85:case"end":return e.stop()}}),e,this,[[12,27,31,39],[32,,34,38],[47,61,65,73],[66,,68,72]])}))),function(e,t){return h.apply(this,arguments)})},{key:"handleNeverSyncedDeleted",value:(A=gu(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map((function(e){return e.payloadRepresentation({dirty:!1})})),e.next=3,this.modelManager.emitPayloads(n,k.a.LocalChanged);case 3:return e.next=5,this.persistPayloads(n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"persistPayloads",value:(f=gu(o.a.mark((function e(t){var n=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",this.storageService.savePayloads(t).catch((function(e){throw n.notifyEvent(Bi.a.DatabaseWriteError,e),e})));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"deletePayloads",value:(l=gu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.persistPayloads(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"computeDataIntegrityHash",value:(c=gu(o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.itemManager.nonDeletedItems.sort((function(e,t){return t.updated_at.getTime()-e.updated_at.getTime()})),n=t.map((function(e){return e.updatedAtTimestamp()})),r=n.join(","),e.abrupt("return",this.protocolService.crypto.sha256(r));case 7:return e.prev=7,e.t0=e.catch(0),console.error("Error computing data integrity hash",e.t0),e.abrupt("return",void 0);case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return c.apply(this,arguments)})},{key:"resolveOutOfSync",value:(a=gu(o.a.mark((function e(){var t,n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new uc(this.apiService,this.protocolService,void 0,"resolve-out-of-sync"),e.next=3,t.run();case 3:return n=e.sent,r=new Au(this.modelManager.getMasterCollection(),Tr.WithPayloads(n,k.a.RemoteRetrieved)),e.next=7,r.resultingCollection();case 7:return i=e.sent,e.next=10,this.modelManager.emitCollection(i);case 10:return e.next=12,this.persistPayloads(i.payloads);case 12:return e.abrupt("return",this.sync({checkIntegrity:!0,source:fu.ResolveOutOfSync}));case 13:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"statelessDownloadAllItems",value:(i=gu(o.a.mark((function e(t,n){var r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new uc(this.apiService,this.protocolService,t,n),e.next=3,r.run();case 3:return i=e.sent,e.abrupt("return",i.map((function(e){return Mt(e)})));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"ut_setDatabaseLoaded",value:function(e){this.databaseLoaded=e}},{key:"ut_clearLastSyncDate",value:function(){this.state.lastSyncDate=void 0}},{key:"ut_beginLatencySimulator",value:function(e){this._simulate_latency={latency:e||1e3,enabled:!0}}},{key:"ut_endLatencySimulator",value:function(){this._simulate_latency=null}}])&&yu(n.prototype,r),t}(Nt.a);function Bu(e){return(Bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eu(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function _u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Eu(a,r,i,o,s,"next",e)}function s(e){Eu(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ku(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qu(e,t,n){return(Qu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Su(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Su(e){return(Su=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xu(e,t){return(xu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Du(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mu(e,t,n){return t&&Pu(e.prototype,t),n&&Pu(e,n),e}function Fu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ou=function(){function e(t,n,r,i){Du(this,e),Fu(this,"setClientFunctions",void 0),Fu(this,"submitValues",void 0),Fu(this,"setValidationStatus",void 0),Fu(this,"cancel",void 0),this.setClientFunctions=t,this.submitValues=n,this.setValidationStatus=r,this.cancel=i}return Mu(e,[{key:"setCallbacks",value:function(e,t,n,r){this.setClientFunctions(e,t,n,r)}}]),e}(),Ru=function e(t,n,r,i){Du(this,e),Fu(this,"onValidValue",void 0),Fu(this,"onInvalidValue",void 0),Fu(this,"onComplete",void 0),Fu(this,"onCancel",void 0),this.onValidValue=t||function(e){},this.onInvalidValue=n||function(e){},this.onComplete=r||function(){},this.onCancel=i||function(){}},Tu=function(){function e(t,n){Du(this,e),Fu(this,"challenge",void 0),Fu(this,"validate",void 0),Fu(this,"validValues",[]),Fu(this,"invalidValues",[]),Fu(this,"artifacts",{}),Fu(this,"client",void 0),Fu(this,"resolve",void 0),Fu(this,"orchestrator",void 0),this.challenge=t,this.validate=n}return Mu(e,[{key:"setResolver",value:function(e){this.resolve=e}},{key:"complete",value:function(e){var t;e||(e=new w(this.challenge,this.validValues,this.artifacts)),this.resolve(e),null===(t=this.client)||void 0===t||t.onComplete()}},{key:"cancel",value:function(){var e;this.resolve(null),null===(e=this.client)||void 0===e||e.onCancel()}},{key:"isFinished",value:function(){return this.validValues.length===this.challenge.types.length}},{key:"setOrchestratorFunctions",value:function(e,t,n,r){this.orchestrator=new Ou(e,n,t,r)}},{key:"setValueStatus",value:function(e,t,n){var r,i,a=t?this.validValues:this.invalidValues,o=a.find((function(t){return t.type===e.type}));o&&Object(u.A)(a,o),a.push(e),t?this.validValues=a:this.invalidValues=a,Object.assign(this.artifacts,n),this.isFinished()?this.complete():t?null===(r=this.client)||void 0===r||r.onValidValue(e):null===(i=this.client)||void 0===i||i.onInvalidValue(e)}}]),e}(),Hu=function(e){function t(e,n){var r;return Du(this,t),r=function(e,t){return!t||"object"!==Bu(t)&&"function"!=typeof t?ku(e):t}(this,Su(t).call(this)),Fu(ku(r),"storageService",void 0),Fu(ku(r),"protocolService",void 0),Fu(ku(r),"challengeOperations",{}),Fu(ku(r),"challengeHandler",void 0),r.storageService=e,r.protocolService=n,r}var n,r,i,a,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xu(e,t)}(t,e),Mu(t,[{key:"deinit",value:function(){this.storageService=void 0,this.protocolService=void 0,this.challengeHandler=void 0,Qu(Su(t.prototype),"deinit",this).call(this)}},{key:"promptForChallengeResponse",value:(s=_u(o.a.mark((function e(t){var n,r,i,a,s=this,c=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!(c.length>1&&void 0!==c[1])||c[1],r=c.length>2?c[2]:void 0,i=this.getChallengeOperation(t),a=!i,i||(i=this.createChallengeOperation(t,n)),r&&(r.orchestrator=i.orchestrator),e.abrupt("return",new Promise((function(e){i.setResolver(e),a&&s.challengeHandler(t,i.orchestrator)})));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"validateChallengeValue",value:(a=_u(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.type!==p.LocalPasscode){e.next=4;break}return e.abrupt("return",this.protocolService.validatePasscode(t.value));case 4:if(t.type!==p.AccountPassword){e.next=8;break}return e.abrupt("return",this.protocolService.validateAccountPassword(t.value));case 8:if(t.type!==p.Biometric){e.next=10;break}return e.abrupt("return",{valid:!0===t.value});case 10:throw"Cannot validate challenge type ".concat(t.type);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getLaunchChallenge",value:(i=_u(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],this.protocolService.hasPasscode()&&t.push(p.LocalPasscode),e.next=5,this.storageService.getValue(Dt.BiometricPrefs,Tt.Nonwrapped);case 5:if((n=e.sent)&&n.enabled&&t.push(p.Biometric),!(t.length>0)){e.next=12;break}return e.abrupt("return",new b(t,d.ApplicationUnlock));case 12:return e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"isPasscodeLocked",value:function(){return this.protocolService.rootKeyNeedsUnwrapping()}},{key:"enableBiometrics",value:(r=_u(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.setValue(Dt.BiometricPrefs,{enabled:!0},Tt.Nonwrapped);case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"createChallengeOperation",value:function(e,t){var n=this,r=new Tu(e,t);return r.setOrchestratorFunctions((function(e,t,n,i){var a=new Ru(e,t,n,i);r.client=a}),(function(t,r,i){n.setValidationStatusForChallenge(e,t,r,i)}),(function(t){n.submitValuesForChallenge(e,t)}),(function(){n.cancelChallenge(e)})),this.setChallengeOperation(r),r}},{key:"getChallengeOperation",value:function(e){return this.challengeOperations[e.id]}},{key:"setChallengeOperation",value:function(e){this.challengeOperations[e.challenge.id]=e}},{key:"deleteChallengeOperation",value:function(e){delete this.challengeOperations[e.challenge.id]}},{key:"cancelChallenge",value:function(e){var t=this.challengeOperations[e.id];t.cancel(),this.deleteChallengeOperation(t)}},{key:"submitValuesForChallenge",value:(n=_u(o.a.mark((function e(t,n){var r,i,a,s,c,u,l,f,A,h,p;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==n.length){e.next=2;break}throw Error("Attempting to submit 0 values for challenge");case 2:if(!(r=this.getChallengeOperation(t)).validate){e.next=36;break}i=!0,a=!1,s=void 0,e.prev=7,c=n[Symbol.iterator]();case 9:if(i=(u=c.next()).done){e.next=20;break}return l=u.value,e.next=13,this.validateChallengeValue(l);case 13:f=e.sent,A=f.valid,h=f.artifacts,this.setValidationStatusForChallenge(t,l,A,h);case 17:i=!0,e.next=9;break;case 20:e.next=26;break;case 22:e.prev=22,e.t0=e.catch(7),a=!0,s=e.t0;case 26:e.prev=26,e.prev=27,i||null==c.return||c.return();case 29:if(e.prev=29,!a){e.next=32;break}throw s;case 32:return e.finish(29);case 33:return e.finish(26);case 34:e.next=38;break;case 36:p=new w(t,n),r.complete(p);case 38:case"end":return e.stop()}}),e,this,[[7,22,26,34],[27,,29,33]])}))),function(e,t){return n.apply(this,arguments)})},{key:"setValidationStatusForChallenge",value:function(e,t,n,r){var i=this.getChallengeOperation(e);i.setValueStatus(t,n,r),i.isFinished()&&this.deleteChallengeOperation(i)}}]),t}(Nt.a);function ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ju(Object(n),!0).forEach((function(t){Gu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uu(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Lu(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Uu(a,r,i,o,s,"next",e)}function s(e){Uu(a,r,i,o,s,"throw",e)}o(void 0)}))}}function Ku(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $u=function(){function e(t,n,r,i,a,o,s){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Gu(this,"environment",void 0),Gu(this,"platform",void 0),Gu(this,"namespace",void 0),Gu(this,"swapClasses",void 0),Gu(this,"skipClasses",void 0),Gu(this,"crypto",void 0),Gu(this,"deviceInterface",void 0),Gu(this,"migrationService",void 0),Gu(this,"alertService",void 0),Gu(this,"httpService",void 0),Gu(this,"modelManager",void 0),Gu(this,"protocolService",void 0),Gu(this,"storageService",void 0),Gu(this,"apiService",void 0),Gu(this,"sessionManager",void 0),Gu(this,"syncService",void 0),Gu(this,"challengeService",void 0),Gu(this,"singletonManager",void 0),Gu(this,"componentManager",void 0),Gu(this,"privilegesService",void 0),Gu(this,"actionsManager",void 0),Gu(this,"historyManager",void 0),Gu(this,"itemManager",void 0),Gu(this,"eventHandlers",[]),Gu(this,"services",[]),Gu(this,"streamRemovers",[]),Gu(this,"serviceObservers",[]),Gu(this,"managedSubscribers",[]),Gu(this,"autoSyncInterval",void 0),Gu(this,"createdNewDatabase",!1),Gu(this,"started",!1),Gu(this,"launched",!1),Gu(this,"dealloced",!1),!r)throw"Device Interface must be supplied.";if(!t)throw"Environment must be supplied when creating an application.";if(!n)throw"Platform must be supplied when creating an application.";this.environment=t,this.platform=n,this.namespace=i||"",this.deviceInterface=r,this.crypto=a,this.swapClasses=o,this.skipClasses=s,this.constructServices()}var t,n,r,a,l,f,A,y,v,m,I,w,C,B,Q,S,x,D,P,M,F,O,R,T,H,j,N,U,L,K,G,$,Y,J,V,z,q,W,X,Z,ee,te,ne,re,ie,ae,oe,se,ce,ue,le,fe,Ae,he;return t=e,(n=[{key:"prepareForLaunch",value:(he=Lu(o.a.mark((function e(t){var n,r=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setLaunchCallback(t),e.next=3,this.deviceInterface.openDatabase().catch((function(e){r.notifyEvent(c.a.LocalDatabaseReadError,e)}));case 3:return n=e.sent,this.createdNewDatabase=(null==n?void 0:n.isNewDatabase)||!1,e.next=7,this.migrationService.initialize();case 7:return e.next=9,this.handleStage(i.PreparingForLaunch_0);case 9:return e.next=11,this.storageService.initializeFromDisk();case 11:return e.next=13,this.protocolService.initialize();case 13:return e.next=15,this.handleStage(i.ReadyForLaunch_05);case 15:return this.started=!0,e.next=18,this.notifyEvent(c.a.Started);case 18:case"end":return e.stop()}}),e,this)}))),function(e){return he.apply(this,arguments)})},{key:"setLaunchCallback",value:function(e){this.challengeService.challengeHandler=e.receiveChallenge}},{key:"launch",value:(Ae=Lu(o.a.mark((function e(){var t,n,r,a,s,u=this,l=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]&&l[0],this.launched=!1,e.next=4,this.challengeService.getLaunchChallenge();case 4:if(!(n=e.sent)){e.next=11;break}return e.next=8,this.challengeService.promptForChallengeResponse(n);case 8:return r=e.sent,e.next=11,this.handleLaunchChallengeResponse(r);case 11:if(!this.storageService.isStorageWrapped()){e.next=14;break}return e.next=14,this.storageService.decryptStorage();case 14:return e.next=16,this.handleStage(i.StorageDecrypted_09);case 16:return e.next=18,this.apiService.loadHost();case 18:return e.next=20,this.sessionManager.initializeFromDisk();case 20:return this.historyManager.initializeFromDisk(),this.launched=!0,e.next=24,this.notifyEvent(c.a.Launched);case 24:return e.next=26,this.handleStage(i.Launched_10);case 26:return e.next=28,this.syncService.getDatabasePayloads();case 28:return a=e.sent,e.next=31,this.handleStage(i.LoadingDatabase_11);case 31:if(!this.createdNewDatabase){e.next=34;break}return e.next=34,this.syncService.onNewDatabaseCreated();case 34:if(s=this.syncService.loadDatabasePayloads(a).then(Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.dealloced){e.next=2;break}throw"Application has been destroyed.";case 2:return e.next=4,u.handleStage(i.LoadedDatabase_12);case 4:return u.beginAutoSyncTimer(),e.abrupt("return",u.syncService.sync({mode:lu.DownloadFirst}));case 6:case"end":return e.stop()}}),e)})))),!t){e.next=38;break}return e.next=38,s;case 38:case"end":return e.stop()}}),e,this)}))),function(){return Ae.apply(this,arguments)})},{key:"handleLaunchChallengeResponse",value:(fe=Lu(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.challenge.types.includes(p.LocalPasscode)){e.next=9;break}if(n=t.artifacts.wrappingKey){e.next=7;break}return r=t.getValueForType(p.LocalPasscode),e.next=6,this.protocolService.computeWrappingKey(r.value);case 6:n=e.sent;case 7:return e.next=9,this.protocolService.unwrapRootKey(n);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return fe.apply(this,arguments)})},{key:"beginAutoSyncTimer",value:function(){var e=this;this.autoSyncInterval=this.deviceInterface.interval((function(){e.syncService.log("Syncing from autosync"),e.sync()}),3e4)}},{key:"getMigrationChallengeResponder",value:function(){var e=this;return function(){var t=Lu(o.a.mark((function t(n,r,i){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.challengeService.promptForChallengeResponse(n,r,i));case 1:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()}},{key:"handleStage",value:(le=Lu(o.a.mark((function e(t){var n,r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!0,r=!1,i=void 0,e.prev=3,a=this.services[Symbol.iterator]();case 5:if(n=(s=a.next()).done){e.next=12;break}return c=s.value,e.next=9,c.handleApplicationStage(t);case 9:n=!0,e.next=5;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),r=!0,i=e.t0;case 18:e.prev=18,e.prev=19,n||null==a.return||a.return();case 21:if(e.prev=21,!r){e.next=24;break}throw i;case 24:return e.finish(21);case 25:return e.finish(18);case 26:case"end":return e.stop()}}),e,this,[[3,14,18,26],[19,,21,25]])}))),function(e){return le.apply(this,arguments)})},{key:"addEventObserver",value:function(e,t){var n=this,r={callback:e,singleEvent:t};return this.eventHandlers.push(r),function(){Object(u.A)(n.eventHandlers,r)}}},{key:"addSingleEventObserver",value:function(e,t){var n=function(){var n=Lu(o.a.mark((function n(r){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r===e&&t(e);case 1:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return this.addEventObserver(n,e)}},{key:"notifyEvent",value:(ue=Lu(o.a.mark((function e(t,n){var r,i,a,s,c,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!0,i=!1,a=void 0,e.prev=3,s=this.eventHandlers.slice()[Symbol.iterator]();case 5:if(r=(c=s.next()).done){e.next=18;break}if(!(u=c.value).singleEvent||u.singleEvent!==t){e.next=12;break}return e.next=10,u.callback(t,n||{});case 10:e.next=15;break;case 12:if(u.singleEvent){e.next=15;break}return e.next=15,u.callback(t,n||{});case 15:r=!0,e.next=5;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(3),i=!0,a=e.t0;case 24:e.prev=24,e.prev=25,r||null==s.return||s.return();case 27:if(e.prev=27,!i){e.next=30;break}throw a;case 30:return e.finish(27);case 31:return e.finish(24);case 32:this.migrationService.handleApplicationEvent(t);case 33:case"end":return e.stop()}}),e,this,[[3,20,24,32],[25,,27,31]])}))),function(e,t){return ue.apply(this,arguments)})},{key:"isDatabaseLoaded",value:function(){return this.syncService.isDatabaseLoaded()}},{key:"savePayload",value:(ce=Lu(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(_.b)(t,{dirty:!0,dirtiedDate:new Date}),e.next=3,this.modelManager.emitPayload(n,k.a.LocalChanged);case 3:return e.next=5,this.syncService.sync();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return ce.apply(this,arguments)})},{key:"findItem",value:function(e){return this.itemManager.findItem(e)}},{key:"allItems",value:function(){return this.itemManager.items}},{key:"findItems",value:function(e){return this.itemManager.itemsMatchingPredicate(e)}},{key:"getAll",value:function(e){return this.itemManager.findItems(e)}},{key:"mergeItem",value:(se=Lu(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.itemManager.emitItemFromPayload(t.payloadRepresentation(),n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return se.apply(this,arguments)})},{key:"createManagedItem",value:(oe=Lu(o.a.mark((function e(t,n){var r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]&&s[2],i=s.length>3?s[3]:void 0,e.next=4,this.itemManager.createItem(t,n,r,i);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return oe.apply(this,arguments)})},{key:"createTemplateItem",value:(ae=Lu(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.itemManager.createTemplateItem(t,n);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return ae.apply(this,arguments)})},{key:"createItemFromPayload",value:function(e){return Mt(e)}},{key:"createPayloadFromObject",value:function(e){return Object(_.e)(e)}},{key:"getLastSyncDate",value:function(){return this.syncService.getLastSyncDate()}},{key:"getSyncStatus",value:function(){return this.syncService.getStatus()}},{key:"setItemNeedsSync",value:(ie=Lu(o.a.mark((function e(t){var n,r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],e.abrupt("return",this.itemManager.setItemDirty(t.uuid,n));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return ie.apply(this,arguments)})},{key:"setItemsNeedsSync",value:(re=Lu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.itemManager.setItemsDirty(Object(s.b)(t)));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return re.apply(this,arguments)})},{key:"deleteItem",value:(ne=Lu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.itemManager.setItemToBeDeleted(t.uuid);case 2:return e.abrupt("return",this.sync());case 3:case"end":return e.stop()}}),e,this)}))),function(e){return ne.apply(this,arguments)})},{key:"deleteItemLocally",value:(te=Lu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.itemManager.removeItemLocally(t);case 1:case"end":return e.stop()}}),e,this)}))),function(e){return te.apply(this,arguments)})},{key:"emptyTrash",value:(ee=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.itemManager.emptyTrash();case 2:return e.abrupt("return",this.sync());case 3:case"end":return e.stop()}}),e,this)}))),function(){return ee.apply(this,arguments)})},{key:"getTrashedItems",value:function(){return this.itemManager.trashedItems}},{key:"setDisplayOptions",value:function(e,t,n,r){this.itemManager.setDisplayOptions(e,t,n,r)}},{key:"getDisplayableItems",value:function(e){return this.itemManager.getDisplayableItems(e)}},{key:"insertItem",value:(Z=Lu(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.itemManager.insertItem(t);case 2:return n=e.sent,e.next=5,this.itemManager.changeItems([n.uuid]);case 5:return e.abrupt("return",this.findItem(t.uuid));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return Z.apply(this,arguments)})},{key:"saveItem",value:(X=Lu(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.itemManager.findItem(t)){e.next=3;break}throw Error("Attempting to save non-inserted item");case 3:if(n.dirty){e.next=6;break}return e.next=6,this.itemManager.changeItem(t);case 6:return e.next=8,this.syncService.sync();case 8:case"end":return e.stop()}}),e,this)}))),function(e){return X.apply(this,arguments)})},{key:"changeAndSaveItem",value:(W=Lu(o.a.mark((function e(t,n){var r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>2&&void 0!==s[2]&&s[2],i=s.length>3?s[3]:void 0,a=s.length>4?s[4]:void 0,Object(u.r)(t)){e.next=5;break}throw Error("Must use uuid to change item");case 5:return e.next=7,this.itemManager.changeItems([t],n,r?g.c.UserInteraction:void 0,i);case 7:return e.next=9,this.syncService.sync(a);case 9:return e.abrupt("return",this.findItem(t));case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return W.apply(this,arguments)})},{key:"changeAndSaveItems",value:(q=Lu(o.a.mark((function e(t,n){var r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]&&s[2],i=s.length>3?s[3]:void 0,a=s.length>4?s[4]:void 0,e.next=5,this.itemManager.changeItems(t,n,r?g.c.UserInteraction:void 0,i);case 5:return e.next=7,this.syncService.sync(a);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return q.apply(this,arguments)})},{key:"changeItem",value:(z=Lu(o.a.mark((function e(t,n){var r,i=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=i.length>2&&void 0!==i[2]&&i[2],Object(u.r)(t)){e.next=3;break}throw Error("Must use uuid to change item");case 3:return e.next=5,this.itemManager.changeItems([t],n,r?g.c.UserInteraction:void 0);case 5:return e.abrupt("return",this.findItem(t));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return z.apply(this,arguments)})},{key:"changeItems",value:(V=Lu(o.a.mark((function e(t,n){var r,i=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>2&&void 0!==i[2]&&i[2],e.abrupt("return",this.itemManager.changeItems(t,n,r?g.c.UserInteraction:void 0));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return V.apply(this,arguments)})},{key:"getItems",value:function(e){return this.itemManager.getItems(e)}},{key:"notesMatchingSmartTag",value:function(e){return this.itemManager.notesMatchingSmartTag(e)}},{key:"referencesForItem",value:function(e,t){var n=this.itemManager.referencesForItem(e.uuid);return t&&(n=n.filter((function(e){return(null==e?void 0:e.content_type)===t}))),n}},{key:"referencingForItem",value:function(e,t){var n=this.itemManager.itemsReferencingItem(e.uuid);return t&&(n=n.filter((function(e){return(null==e?void 0:e.content_type)===t}))),n}},{key:"findTagByTitle",value:function(e){return this.itemManager.findTagByTitle(e)}},{key:"findOrCreateTag",value:(J=Lu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.itemManager.findOrCreateTagByTitle(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return J.apply(this,arguments)})},{key:"getSmartTags",value:function(){return this.itemManager.getSmartTags()}},{key:"getNoteCount",value:function(){return this.itemManager.noteCount}},{key:"streamItems",value:function(e,t){var n=this,r=this.itemManager.addObserver(e,(function(e,n,r,i){var a=e.concat(n).concat(r);t(a,i)})),i=this.itemManager.getItems(e);return i.length>0&&t(i),this.streamRemovers.push(r),function(){r(),Object(u.A)(n.streamRemovers,r)}}},{key:"setHost",value:(Y=Lu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.apiService.setHost(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return Y.apply(this,arguments)})},{key:"getHost",value:($=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.apiService.getHost());case 1:case"end":return e.stop()}}),e,this)}))),function(){return $.apply(this,arguments)})},{key:"getUser",value:function(){if(!this.launched)throw"Attempting to access user before application unlocked";return this.sessionManager.getUser()}},{key:"getUserVersion",value:(G=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.protocolService.getUserVersion());case 1:case"end":return e.stop()}}),e,this)}))),function(){return G.apply(this,arguments)})},{key:"protocolUpgradeAvailable",value:(K=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.protocolService.upgradeAvailable());case 1:case"end":return e.stop()}}),e,this)}))),function(){return K.apply(this,arguments)})},{key:"isEncryptionAvailable",value:(L=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!Object(u.p)(this.getUser())||this.hasPasscode());case 1:case"end":return e.stop()}}),e,this)}))),function(){return L.apply(this,arguments)})},{key:"upgradeProtocolVersion",value:(U=Lu(o.a.mark((function e(){var t,n,r,i,a,s,c,u,l,f,A;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.hasPasscode(),n=!this.noAccount(),r=[],t&&r.push(p.LocalPasscode),n&&r.push(p.AccountPassword),i=new b(r,d.ProtocolUpgrade),e.next=8,this.challengeService.promptForChallengeResponse(i);case 8:if(a=e.sent){e.next=11;break}return e.abrupt("return");case 11:if(s=[],!t){e.next=17;break}return u=a.getValueForType(p.LocalPasscode),c=u.value,e.next=17,this.changePasscode(c);case 17:if(!n){e.next=24;break}return l=a.getValueForType(p.AccountPassword),f=l.value,e.next=22,this.changePassword(f,f,c);case 22:(null==(A=e.sent)?void 0:A.error)&&s.push(A.error);case 24:return e.abrupt("return",s);case 25:case"end":return e.stop()}}),e,this)}))),function(){return U.apply(this,arguments)})},{key:"noAccount",value:function(){var e=this.getUser();return Object(u.p)(e)}},{key:"importData",value:(N=Lu(o.a.mark((function e(t,n){var r,i,a,s,c,u,l=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>2&&void 0!==l[2]&&l[2],e.next=3,this.protocolService.payloadsByDecryptingBackupFile(t,n);case 3:return i=e.sent,a=i.filter((function(e){return!e.errorDecrypting})).map((function(e){return e.content_type===E.a.Component&&e.safeContent.active?Object(_.b)(e,{content:Nu({},e.safeContent,{active:!1})}):e})),e.next=7,this.modelManager.importPayloads(a);case 7:if(s=e.sent,c=this.sync(),!r){e.next=12;break}return e.next=12,c;case 12:return u=this.getAll(s),e.abrupt("return",{affectedItems:u,errorCount:i.length-a.length});case 14:case"end":return e.stop()}}),e,this)}))),function(e,t){return N.apply(this,arguments)})},{key:"createBackupFile",value:(j=Lu(o.a.mark((function e(t,n){var r,i=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>2&&void 0!==i[2]&&i[2],e.abrupt("return",this.protocolService.createBackupFile(t,n,r));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return j.apply(this,arguments)})},{key:"isEphemeralSession",value:function(){return this.storageService.isEphemeralSession()}},{key:"lockSyncing",value:function(){this.syncService.lockSyncing()}},{key:"unlockSyncing",value:function(){this.syncService.unlockSyncing()}},{key:"sync",value:(H=Lu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.syncService.sync(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return H.apply(this,arguments)})},{key:"isOutOfSync",value:(T=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.syncService.isOutOfSync());case 1:case"end":return e.stop()}}),e,this)}))),function(){return T.apply(this,arguments)})},{key:"resolveOutOfSync",value:(R=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.syncService.resolveOutOfSync());case 1:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"setValue",value:(O=Lu(o.a.mark((function e(t,n,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.storageService.setValue(t,n,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return O.apply(this,arguments)})},{key:"getValue",value:(F=Lu(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.storageService.getValue(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return F.apply(this,arguments)})},{key:"removeValue",value:(M=Lu(o.a.mark((function e(t,n){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.storageService.removeValue(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return M.apply(this,arguments)})},{key:"clearDatabase",value:(P=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.storageService.clearAllPayloads());case 1:case"end":return e.stop()}}),e,this)}))),function(){return P.apply(this,arguments)})},{key:"rewriteItemsKeys",value:(D=Lu(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.protocolService.itemsKeys,n=t.map((function(e){return e.payloadRepresentation()})),e.next=4,this.storageService.deletePayloads(n);case 4:return e.next=6,this.syncService.persistPayloads(n);case 6:case"end":return e.stop()}}),e,this)}))),function(){return D.apply(this,arguments)})},{key:"prepareForDeinit",value:(x=Lu(o.a.mark((function e(){var t,n,r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:0,n=Promise.all(this.services.map((function(e){return e.blockDeinit()}))),0!==t){e.next=7;break}return e.next=5,n;case 5:e.next=9;break;case 7:return e.next=9,Promise.race([n,Object(u.D)(t)]);case 9:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"deinit",value:function(){clearInterval(this.autoSyncInterval);var e=!0,t=!1,n=void 0;try{for(var r,i=this.serviceObservers[Symbol.iterator]();!(e=(r=i.next()).done);e=!0)(0,r.value)()}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}var a=!0,o=!1,s=void 0;try{for(var c,u=this.managedSubscribers[Symbol.iterator]();!(a=(c=u.next()).done);a=!0)(0,c.value)()}catch(e){o=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw s}}var l=!0,f=!1,A=void 0;try{for(var h,p=this.services[Symbol.iterator]();!(l=(h=p.next()).done);l=!0)h.value.deinit()}catch(e){f=!0,A=e}finally{try{l||null==p.return||p.return()}finally{if(f)throw A}}this.deviceInterface.deinit(),this.deviceInterface=void 0,this.crypto=void 0,this.createdNewDatabase=!1,this.services.length=0,this.serviceObservers.length=0,this.managedSubscribers.length=0,this.streamRemovers.length=0,this.clearServices(),this.dealloced=!0,this.started=!1}},{key:"getWrappingKeyIfNecessary",value:(S=Lu(o.a.mark((function e(t){var n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasPasscode()){e.next=2;break}return e.abrupt("return",{});case 2:if(t){e.next=11;break}return n=new b([p.LocalPasscode],d.ResaveRootKey),e.next=6,this.challengeService.promptForChallengeResponse(n);case 6:if(r=e.sent){e.next=9;break}return e.abrupt("return",{canceled:!0});case 9:i=r.getValueForType(p.LocalPasscode),t=i.value;case 11:return e.next=13,this.protocolService.computeWrappingKey(t);case 13:return a=e.sent,e.abrupt("return",{wrappingKey:a});case 15:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"register",value:(Q=Lu(o.a.mark((function e(t,n){var r,i,a,s,u,l=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>2&&void 0!==l[2]&&l[2],i=!(l.length>3&&void 0!==l[3])||l[3],e.next=4,this.getWrappingKeyIfNecessary();case 4:if(a=e.sent,s=a.wrappingKey,!a.canceled){e.next=9;break}return e.abrupt("return");case 9:return this.lockSyncing(),e.next=12,this.sessionManager.register(t,n);case 12:if((u=e.sent).response.error){e.next=35;break}return e.next=16,this.protocolService.setNewRootKey(u.rootKey,u.keyParams,s);case 16:return this.syncService.resetSyncState(),e.next=19,this.storageService.setPersistencePolicy(r?Ot.Ephemeral:Ot.Default);case 19:if(!i){e.next=24;break}return e.next=22,this.syncService.markAllItemsAsNeedingSync(!0);case 22:e.next=27;break;case 24:return this.itemManager.removeAllItemsFromMemory(),e.next=27,this.clearDatabase();case 27:return e.next=29,this.notifyEvent(c.a.SignedIn);case 29:return this.unlockSyncing(),e.next=32,this.syncService.sync({mode:lu.DownloadFirst,queueStrategy:uu.ForceSpawnNew});case 32:this.protocolService.decryptErroredItems(),e.next=36;break;case 35:this.unlockSyncing();case 36:return e.abrupt("return",u.response);case 37:case"end":return e.stop()}}),e,this)}))),function(e,t){return Q.apply(this,arguments)})},{key:"signIn",value:(B=Lu(o.a.mark((function e(t,n){var r,i,a,s,u,l,f,A,h,p,d=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=d.length>2&&void 0!==d[2]&&d[2],i=d.length>3&&void 0!==d[3]&&d[3],a=d.length>4?d[4]:void 0,s=d.length>5?d[5]:void 0,u=!(d.length>6&&void 0!==d[6])||d[6],l=d.length>7&&void 0!==d[7]&&d[7],e.next=8,this.getWrappingKeyIfNecessary();case 8:if(f=e.sent,A=f.wrappingKey,!f.canceled){e.next=13;break}return e.abrupt("return");case 13:return this.lockSyncing(),e.next=16,this.sessionManager.signIn(t,n,r,a,s);case 16:if((h=e.sent).response.error){e.next=41;break}return e.next=20,this.protocolService.setNewRootKey(h.rootKey,h.keyParams,A);case 20:return this.syncService.resetSyncState(),e.next=23,this.storageService.setPersistencePolicy(i?Ot.Ephemeral:Ot.Default);case 23:if(!u){e.next=28;break}return e.next=26,this.syncService.markAllItemsAsNeedingSync(!0);case 26:e.next=31;break;case 28:return this.itemManager.removeAllItemsFromMemory(),e.next=31,this.clearDatabase();case 31:return e.next=33,this.notifyEvent(c.a.SignedIn);case 33:if(this.unlockSyncing(),p=this.syncService.sync({mode:lu.DownloadFirst,checkIntegrity:!0,queueStrategy:uu.ForceSpawnNew}),!l){e.next=38;break}return e.next=38,p;case 38:this.protocolService.decryptErroredItems(),e.next=42;break;case 41:this.unlockSyncing();case 42:return e.abrupt("return",h.response);case 43:case"end":return e.stop()}}),e,this)}))),function(e,t){return B.apply(this,arguments)})},{key:"changePassword",value:(C=Lu(o.a.mark((function e(t,n,r){var i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getWrappingKeyIfNecessary(r);case 2:if(i=e.sent,a=i.wrappingKey,!i.canceled){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.protocolService.getRootKeyParams();case 9:return s=e.sent,this.lockSyncing(),e.next=13,this.sessionManager.changePassword(t,s,n);case 13:if((c=e.sent).response.error){e.next=24;break}return e.next=17,this.protocolService.setNewRootKey(c.rootKey,c.keyParams,a);case 17:return e.next=19,this.protocolService.createNewDefaultItemsKey();case 19:return this.unlockSyncing(),e.next=22,this.syncService.sync();case 22:e.next=25;break;case 24:this.unlockSyncing();case 25:return e.abrupt("return",c.response);case 26:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return C.apply(this,arguments)})},{key:"signOut",value:(w=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sessionManager.signOut();case 2:return e.next=4,this.protocolService.clearLocalKeyState();case 4:return e.next=6,this.storageService.clearAllData();case 6:return e.next=8,this.notifyEvent(c.a.SignedOut);case 8:return e.next=10,this.prepareForDeinit();case 10:this.deinit();case 11:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"validateAccountPassword",value:(I=Lu(o.a.mark((function e(t){var n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.protocolService.validateAccountPassword(t);case 2:return n=e.sent,r=n.valid,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"isStarted",value:function(){return this.started}},{key:"isLaunched",value:function(){return this.launched}},{key:"hasPasscode",value:function(){return this.protocolService.hasPasscode()}},{key:"isLocked",value:(m=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.started){e.next=2;break}return e.abrupt("return",!0);case 2:return e.abrupt("return",this.challengeService.isPasscodeLocked());case 3:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"lock",value:(v=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.prepareForDeinit(500);case 3:return e.abrupt("return",this.deinit());case 4:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"setPasscode",value:(y=Lu(o.a.mark((function e(t){var n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.generateUuid();case 2:return n=e.sent,e.next=5,this.protocolService.createRootKey(n,t);case 5:return r=e.sent,i=r.key,a=r.keyParams,e.next=10,this.protocolService.setNewRootKeyWrapper(i,a);case 10:return e.next=12,this.rewriteItemsKeys();case 12:return e.next=14,this.syncService.sync();case 14:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"removePasscode",value:(A=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.protocolService.removeRootKeyWrapper();case 2:return e.next=4,this.rewriteItemsKeys();case 4:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"changePasscode",value:(f=Lu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.removePasscode();case 2:return e.abrupt("return",this.setPasscode(t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"setStorageEncryptionPolicy",value:(l=Lu(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageService.setEncryptionPolicy(t);case 2:return e.abrupt("return",this.protocolService.repersistAllItems());case 3:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"generateUuid",value:(a=Lu(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",h.GenerateUuid());case 1:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"changeDeviceInterface",value:(r=Lu(o.a.mark((function e(t){var n,r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(this.deviceInterface=t,n=!0,r=!1,i=void 0,e.prev=4,a=this.services[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)(c=s.value).deviceInterface&&(c.deviceInterface=t);e.next=12;break;case 8:e.prev=8,e.t0=e.catch(4),r=!0,i=e.t0;case 12:e.prev=12,e.prev=13,n||null==a.return||a.return();case 15:if(e.prev=15,!r){e.next=18;break}throw i;case 18:return e.finish(15);case 19:return e.finish(12);case 20:case"end":return e.stop()}}),e,this,[[4,8,12,20],[13,,15,19]])}))),function(e){return r.apply(this,arguments)})},{key:"constructServices",value:function(){this.createModelManager(),this.createItemManager(),this.createStorageManager(),this.createProtocolService();var e={payloadByEncryptingPayload:this.protocolService.payloadByEncryptingPayload.bind(this.protocolService),payloadByDecryptingPayload:this.protocolService.payloadByDecryptingPayload.bind(this.protocolService)};this.storageService.encryptionDelegate=e,this.createMigrationService(),this.createAlertManager(),this.createHttpManager(),this.createApiService(),this.createSessionManager(),this.createSyncManager(),this.createChallengeService(),this.createSingletonManager(),this.createComponentManager(),this.createPrivilegesService(),this.createHistoryManager(),this.createActionsManager()}},{key:"clearServices",value:function(){this.migrationService=void 0,this.alertService=void 0,this.httpService=void 0,this.modelManager=void 0,this.protocolService=void 0,this.storageService=void 0,this.apiService=void 0,this.sessionManager=void 0,this.syncService=void 0,this.challengeService=void 0,this.singletonManager=void 0,this.componentManager=void 0,this.privilegesService=void 0,this.actionsManager=void 0,this.historyManager=void 0,this.itemManager=void 0,this.services=[]}},{key:"createMigrationService",value:function(){this.migrationService=new Fa({protocolService:this.protocolService,deviceInterface:this.deviceInterface,storageService:this.storageService,itemManager:this.itemManager,environment:this.environment,namespace:this.namespace},this.getMigrationChallengeResponder()),this.services.push(this.migrationService)}},{key:"createAlertManager",value:function(){this.shouldSkipClass(an)||(this.alertService=new(this.getClass(an))(this.deviceInterface),this.services.push(this.alertService))}},{key:"createApiService",value:function(){this.apiService=new jn(this.httpService,this.storageService),this.services.push(this.apiService)}},{key:"createItemManager",value:function(){this.itemManager=new Ws(this.modelManager),this.services.push(this.itemManager)}},{key:"createComponentManager",value:function(){this.shouldSkipClass(sr)||(this.componentManager=new sr(this.itemManager,this.syncService,this.alertService,this.environment,this.platform,this.deviceInterface.timeout),this.services.push(this.componentManager))}},{key:"createHttpManager",value:function(){this.httpService=new gr,this.services.push(this.httpService)}},{key:"createModelManager",value:function(){this.modelManager=new Ci,this.services.push(this.modelManager)}},{key:"createSingletonManager",value:function(){this.singletonManager=new Fi(this.itemManager,this.syncService),this.services.push(this.singletonManager)}},{key:"createStorageManager",value:function(){this.storageService=new qt(this.deviceInterface,this.namespace),this.services.push(this.storageService)}},{key:"createProtocolService",value:function(){var e=this;this.protocolService=new Go(this.itemManager,this.modelManager,this.deviceInterface,this.storageService,this.crypto),this.protocolService.onKeyStatusChange(Lu(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.notifyEvent(c.a.KeyStatusChanged);case 2:case"end":return t.stop()}}),t)})))),this.services.push(this.protocolService)}},{key:"createSessionManager",value:function(){this.sessionManager=new En(this.storageService,this.apiService,this.alertService,this.protocolService),this.services.push(this.sessionManager)}},{key:"createSyncManager",value:function(){var e=this;this.syncService=new Cu(this.itemManager,this.sessionManager,this.protocolService,this.storageService,this.modelManager,this.apiService,this.deviceInterface.interval);var t=function(){var t=Lu(o.a.mark((function t(n){var r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=Object(c.c)(n))){t.next=4;break}return t.next=4,e.notifyEvent(r);case 4:return t.next=6,e.protocolService.onSyncEvent(n);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),n=this.syncService.addEventObserver(t);this.serviceObservers.push(n),this.services.push(this.syncService)}},{key:"createChallengeService",value:function(){this.challengeService=new Hu(this.storageService,this.protocolService),this.services.push(this.challengeService)}},{key:"createPrivilegesService",value:function(){this.privilegesService=new Ps(this.itemManager,this.syncService,this.singletonManager,this.protocolService,this.storageService,this.sessionManager),this.services.push(this.privilegesService)}},{key:"createHistoryManager",value:function(){this.historyManager=new ms(this.itemManager,this.storageService,[E.a.Note],this.deviceInterface.timeout),this.services.push(this.historyManager)}},{key:"createActionsManager",value:function(){this.actionsManager=new Gi(this.itemManager,this.alertService,this.deviceInterface,this.httpService,this.modelManager,this.protocolService,this.syncService),this.services.push(this.actionsManager)}},{key:"shouldSkipClass",value:function(e){return this.skipClasses&&this.skipClasses.includes(e)}},{key:"getClass",value:function(e){var t=this.swapClasses&&this.swapClasses.find((function(t){return t.swap===e}));return t?t.with:e}}])&&Ku(t.prototype,n),e}();function Yu(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zu=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Vu(this,"timeout",void 0),Vu(this,"interval",void 0),Vu(this,"namespace",void 0),this.namespace=t,this.timeout=n||setTimeout.bind(Object(u.m)()),this.interval=r||setInterval.bind(Object(u.m)())}var t,n,r,i;return t=e,(n=[{key:"deinit",value:function(){this.timeout=null,this.interval=null}},{key:"getJsonParsedStorageValue",value:(r=o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRawStorageValue(t);case 2:return n=e.sent,e.abrupt("return",n?JSON.parse(n):n);case 4:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){Yu(a,n,i,o,s,"next",e)}function s(e){Yu(a,n,i,o,s,"throw",e)}o(void 0)}))},function(e){return i.apply(this,arguments)})}])&&Ju(t.prototype,n),e}();function qu(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zu=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xu(this,"item",void 0),Xu(this,"removeObserver",void 0),this.item=n.findItem(t),r&&r(this.item),this.removeObserver=n.streamItems(this.item.content_type,function(){var e,n=(e=o.a.mark((function e(n){var a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(a=n.find((function(e){return e.uuid===t})))&&(i.item=a,r&&r(i.item));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){qu(a,r,i,o,s,"next",e)}function s(e){qu(a,r,i,o,s,"throw",e)}o(void 0)}))});return function(e){return n.apply(this,arguments)}}())}var t,n;return t=e,(n=[{key:"deinit",value:function(){this.removeObserver(),this.removeObserver=void 0}}])&&Wu(t.prototype,n),e}(),el=n(79),tl=n(30)}])},module.exports=t()},function(e,t){function n(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,c,"next",e)}function c(e){n(o,i,a,s,c,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(102),i=n(4);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){var r=n(104);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(103);function i(t,n,a){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}},i(t,n,a||t)}e.exports=i},function(e,t,n){"use strict";function r(e){return null==e}function i(){try{var e=navigator.platform.toLowerCase(),t="";return-1!==e.indexOf("mac")?t="mac":-1!==e.indexOf("win")&&(t="windows"),-1!==e.indexOf("linux")&&(t="linux"),t+(c()?"-desktop":"-web")}catch(e){return"unknown-platform"}}var a;function o(e){if("undefined"!=typeof Intl&&Intl.DateTimeFormat){if(!a){var t=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language;a=new Intl.DateTimeFormat(t,{year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit"})}return a.format(e)}return e.toDateString()+" "+e.toLocaleTimeString()}function s(e,t){var n,r=arguments,i=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(){var o=i,s=r,c=a&&!n;clearTimeout(n),n=setTimeout((function(){n=null,a||e.apply(o,s)}),t),c&&e.apply(o,s)}}function c(){return window.isElectron}n.d(t,"e",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var i,a,o=0|t,s=Math.max(o>=0?o:r-Math.abs(o),0);for(;s<r;){if((i=n[s])===(a=e)||"number"==typeof i&&"number"==typeof a&&isNaN(i)&&isNaN(a))return!0;s++}return!1}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return m}));var r,i,a=n(0),o=n.n(a),s=n(3),c=n.n(s),u=n(6),l=n.n(u),f=n(7),A=n.n(f),h=n(1),p=n.n(h),d=n(11),g=n(64),y=n.n(g),v=n(2);!function(e){e[e.TagChanged=1]="TagChanged",e[e.ActiveEditorChanged=2]="ActiveEditorChanged",e[e.PreferencesChanged=3]="PreferencesChanged",e[e.PanelResized=4]="PanelResized",e[e.EditorFocused=5]="EditorFocused",e[e.BeganBackupDownload=6]="BeganBackupDownload",e[e.EndedBackupDownload=7]="EndedBackupDownload",e[e.DesktopExtsReady=8]="DesktopExtsReady",e[e.WindowDidFocus=9]="WindowDidFocus",e[e.WindowDidBlur=10]="WindowDidBlur"}(r||(r={})),function(e){e[e.UserInteraction=1]="UserInteraction",e[e.Script=2]="Script"}(i||(i={}));var m=function(){function e(t,n,i){var a=this;l()(this,e),p()(this,"$rootScope",void 0),p()(this,"$timeout",void 0),p()(this,"application",void 0),p()(this,"observers",[]),p()(this,"locked",!0),p()(this,"unsubApp",void 0),p()(this,"rootScopeCleanup1",void 0),p()(this,"rootScopeCleanup2",void 0),p()(this,"onVisibilityChange",void 0),p()(this,"selectedTag",void 0),p()(this,"userPreferences",void 0),p()(this,"multiEditorEnabled",!1),this.$timeout=n,this.$rootScope=t,this.application=i,this.registerVisibilityObservers(),this.addAppEventObserver(),this.streamNotesAndTags();this.onVisibilityChange=function(){var e="visible"===document.visibilityState?r.WindowDidFocus:r.WindowDidBlur;a.notifyEvent(e)}.bind(this)}var t,n;return e.$inject=["$rootScope","$timeout","application"],A()(e,[{key:"deinit",value:function(){this.unsubApp(),this.unsubApp=void 0,this.observers.length=0,this.rootScopeCleanup1&&(this.rootScopeCleanup1(),this.rootScopeCleanup2(),this.rootScopeCleanup1=void 0,this.rootScopeCleanup2=void 0),document.removeEventListener("visibilitychange",this.onVisibilityChange),this.onVisibilityChange=void 0}},{key:"createEditor",value:function(e){var t=this.getActiveEditor();!t||this.multiEditorEnabled?this.application.editorGroup.createEditor(void 0,e):t.reset(e)}},{key:"openEditor",value:(n=c()(o.a.mark((function e(t){var n,i,a=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.application.findItem(t),i=function(){var e=c()(o.a.mark((function e(){var i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(i=a.getActiveEditor())||a.multiEditorEnabled?a.application.editorGroup.createEditor(t):i.setNote(n),e.next=4,a.notifyEvent(r.ActiveEditorChanged);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.t0=n&&n.safeContent.protected,!e.t0){e.next=7;break}return e.next=6,this.application.privilegesService.actionRequiresPrivilege(v.ProtectedAction.ViewProtectedNotes);case 6:e.t0=e.sent;case 7:if(!e.t0){e.next=11;break}return e.abrupt("return",new Promise((function(e){a.application.presentPrivilegesModal(v.ProtectedAction.ViewProtectedNotes,(function(){i().then(e)}))})));case 11:return e.abrupt("return",i());case 12:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getActiveEditor",value:function(){return this.application.editorGroup.editors[0]}},{key:"getEditors",value:function(){return this.application.editorGroup.editors}},{key:"closeEditor",value:function(e){this.application.editorGroup.closeEditor(e)}},{key:"closeActiveEditor",value:function(){this.application.editorGroup.closeActiveEditor()}},{key:"closeAllEditors",value:function(){this.application.editorGroup.closeAllEditors()}},{key:"editorForNote",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,a=this.getEditors()[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;if(o.note.uuid===e.uuid)return o}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}}},{key:"streamNotesAndTags",value:function(){var e=this;this.application.streamItems([v.ContentType.Note,v.ContentType.Tag],function(){var t=c()(o.a.mark((function t(n,r){var i,a,s,c,u,l,f,A,h,p,d;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r!==v.PayloadSource.PreSyncSave){t.next=30;break}i=n.filter((function(e){return e.content_type===v.ContentType.Note})),a=!0,s=!1,c=void 0,t.prev=5,u=i[Symbol.iterator]();case 7:if(a=(l=u.next()).done){t.next=16;break}if(h=l.value,p=e.editorForNote(h)){t.next=12;break}return t.abrupt("continue",13);case 12:(h.deleted||h.trashed&&!(null===(f=e.selectedTag)||void 0===f?void 0:f.isTrashTag)||h.archived&&!(null===(A=e.selectedTag)||void 0===A?void 0:A.isArchiveTag))&&e.closeEditor(p);case 13:a=!0,t.next=7;break;case 16:t.next=22;break;case 18:t.prev=18,t.t0=t.catch(5),s=!0,c=t.t0;case 22:t.prev=22,t.prev=23,a||null==u.return||u.return();case 25:if(t.prev=25,!s){t.next=28;break}throw c;case 28:return t.finish(25);case 29:return t.finish(22);case 30:e.selectedTag&&(d=n.find((function(t){return t.uuid===e.selectedTag.uuid})))&&(e.selectedTag=d);case 31:case"end":return t.stop()}}),t,null,[[5,18,22,30],[23,,25,29]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"addAppEventObserver",value:function(){var e=this;this.unsubApp=this.application.addEventObserver(function(){var t=c()(o.a.mark((function t(n){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n===v.ApplicationEvent.Started?e.locked=!0:n===v.ApplicationEvent.Launched&&(e.locked=!1);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"isLocked",value:function(){return this.locked}},{key:"registerVisibilityObservers",value:function(){var e=this;Object(d.d)()?(this.rootScopeCleanup1=this.$rootScope.$on("window-lost-focus",(function(){e.notifyEvent(r.WindowDidBlur)})),this.rootScopeCleanup2=this.$rootScope.$on("window-gained-focus",(function(){e.notifyEvent(r.WindowDidFocus)}))):document.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"addObserver",value:function(e){var t=this;return this.observers.push(e),function(){y()(t.observers,e)}}},{key:"notifyEvent",value:(t=c()(o.a.mark((function e(t,n){var r=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){r.$timeout(c()(o.a.mark((function i(){var a,s,c,u,l,f;return o.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:a=!0,s=!1,c=void 0,i.prev=3,u=r.observers[Symbol.iterator]();case 5:if(a=(l=u.next()).done){i.next=12;break}return f=l.value,i.next=9,f(t,n);case 9:a=!0,i.next=5;break;case 12:i.next=18;break;case 14:i.prev=14,i.t0=i.catch(3),s=!0,c=i.t0;case 18:i.prev=18,i.prev=19,a||null==u.return||u.return();case 21:if(i.prev=21,!s){i.next=24;break}throw c;case 24:return i.finish(21);case 25:return i.finish(18);case 26:e();case 27:case"end":return i.stop()}}),i,null,[[3,14,18,26],[19,,21,25]])}))))})));case 1:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"setSelectedTag",value:function(e){if(this.selectedTag!==e){var t=this.selectedTag;this.selectedTag=e,this.notifyEvent(r.TagChanged,{tag:e,previousTag:t})}}},{key:"getNoteTags",value:function(e){return this.application.referencingForItem(e).filter((function(e){return e.content_type===v.ContentType.Tag}))}},{key:"getTagNotes",value:function(e){return e.isSmartTag()?this.application.notesMatchingSmartTag(e):this.application.referencesForItem(e).filter((function(e){return e.content_type===v.ContentType.Note}))}},{key:"getSelectedTag",value:function(){return this.selectedTag}},{key:"setUserPreferences",value:function(e){this.userPreferences=e,this.notifyEvent(r.PreferencesChanged)}},{key:"panelDidResize",value:function(e,t){this.notifyEvent(r.PanelResized,{panel:e,collapsed:t})}},{key:"editorDidFocus",value:function(e){this.notifyEvent(r.EditorFocused,{eventSource:e})}},{key:"beganBackupDownload",value:function(){this.notifyEvent(r.BeganBackupDownload)}},{key:"endedBackupDownload",value:function(e){this.notifyEvent(r.EndedBackupDownload,{success:e})}},{key:"desktopExtensionsReady",value:function(){this.notifyEvent(r.DesktopExtsReady)}}]),e}()},function(e,t,n){n(93),e.exports=angular},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r=n(0),i=n.n(r),a=n(3),o=n.n(a),s=n(6),c=n.n(s),u=n(7),l=n.n(u),f=n(1),A=n.n(f),h=n(2),p=function(){function t(n){var r=this;c()(this,t),A()(this,"$timeout",void 0),A()(this,"application",void 0),A()(this,"props",{}),A()(this,"state",{}),A()(this,"unsubApp",void 0),A()(this,"unsubState",void 0),A()(this,"stateTimeout",void 0),this.$timeout=n,e((function(){r.state=r.getInitialState()}))}var n,r,a,s,u,f;return t.$inject=["$timeout"],l()(t,[{key:"$onInit",value:function(){this.addAppEventObserver(),this.addAppStateObserver()}},{key:"deinit",value:function(){this.unsubApp(),this.unsubState(),this.unsubApp=void 0,this.unsubState=void 0,this.application=void 0,this.stateTimeout&&this.$timeout.cancel(this.stateTimeout)}},{key:"$onDestroy",value:function(){this.deinit()}},{key:"resetState",value:(f=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.state=this.getInitialState(),e.next=3,this.setState(this.state);case 3:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"getInitialState",value:function(){return{}}},{key:"setState",value:(u=o()(i.a.mark((function e(t){var n=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.$timeout){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){n.stateTimeout=n.$timeout((function(){n.state=Object.freeze(Object.assign({},n.state,t)),e()}))})));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"updateUI",value:(s=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.$timeout(t);case 1:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"initProps",value:function(e){if(Object.keys(this.props).length>0)throw"Already init-ed props.";this.props=Object.freeze(Object.assign({},this.props,e))}},{key:"addAppStateObserver",value:function(){var e=this;this.unsubState=this.application.getAppState().addObserver(function(){var t=o()(i.a.mark((function t(n,r){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.onAppStateEvent(n,r);case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"onAppStateEvent",value:function(e,t){}},{key:"addAppEventObserver",value:function(){var e=this;this.application.isStarted()&&this.onAppStart(),this.application.isLaunched()&&this.onAppLaunch(),this.unsubApp=this.application.addEventObserver(function(){var t=o()(i.a.mark((function t(n){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.onAppEvent(n),n!==h.ApplicationEvent.Started){t.next=6;break}return t.next=4,e.onAppStart();case 4:t.next=12;break;case 6:if(n!==h.ApplicationEvent.Launched){t.next=11;break}return t.next=9,e.onAppLaunch();case 9:t.next=12;break;case 11:n===h.ApplicationEvent.CompletedIncrementalSync?e.onAppIncrementalSync():n===h.ApplicationEvent.CompletedFullSync?e.onAppFullSync():n===h.ApplicationEvent.KeyStatusChanged&&e.onAppKeyChange();case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"onAppEvent",value:function(e){}},{key:"onAppStart",value:(a=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.resetState();case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"onAppLaunch",value:(r=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"onAppKeyChange",value:(n=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"onAppIncrementalSync",value:function(){}},{key:"onAppFullSync",value:function(){}},{key:"appState",get:function(){return this.application.getAppState()}}]),t}()}).call(this,n(21).setImmediate)},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return Array.isArray(e)?function(e,t){for(var n,r="",a="",o=Array.isArray(t),s=0;s<e.length;s++)(n=i(e[s]))&&(o&&t[s]&&(n=c(n)),r=r+a+n,a=" ");return r}(e,t):e&&"object"==typeof e?function(e){var t="",n="";for(var i in e)i&&e[i]&&r.call(e,i)&&(t=t+n+i,n=" ");return t}(e):e||""}function a(e){if(!e)return"";if("object"==typeof e){var t="";for(var n in e)r.call(e,n)&&(t=t+n+":"+e[n]+";");return t}return e+""}function o(e,t,n,r){if(!1===t||null==t||!t&&("class"===e||"style"===e))return"";if(!0===t)return" "+(r?e:e+'="'+e+'"');var i=typeof t;return"object"!==i&&"function"!==i||"function"!=typeof t.toJSON||(t=t.toJSON()),"string"==typeof t||(t=JSON.stringify(t),n||-1===t.indexOf('"'))?(n&&(t=c(t))," "+e+'="'+t+'"'):" "+e+"='"+t.replace(/'/g,"&#39;")+"'"}t.merge=function e(t,n){if(1===arguments.length){for(var r=t[0],i=1;i<t.length;i++)r=e(r,t[i]);return r}for(var o in n)if("class"===o){var s=t[o]||[];t[o]=(Array.isArray(s)?s:[s]).concat(n[o]||[])}else if("style"===o){s=(s=a(t[o]))&&";"!==s[s.length-1]?s+";":s;var c=a(n[o]);c=c&&";"!==c[c.length-1]?c+";":c,t[o]=s+c}else t[o]=n[o];return t},t.classes=i,t.style=a,t.attr=o,t.attrs=function(e,t){var n="";for(var s in e)if(r.call(e,s)){var c=e[s];if("class"===s){c=i(c),n=o(s,c,!1,t)+n;continue}"style"===s&&(c=a(c)),n+=o(s,c,!1,t)}return n};var s=/["&<>]/;function c(e){var t=""+e,n=s.exec(t);if(!n)return e;var r,i,a,o="";for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;case 62:a="&gt;";break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i!==r?o+t.substring(i,r):o}t.escape=c,t.rethrow=function e(t,r,i,a){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&r||a))throw t.message+=" on line "+i,t;try{a=a||n(127).readFileSync(r,"utf8")}catch(n){e(t,null,i)}var o=3,s=a.split("\n"),c=Math.max(i-o,0),u=Math.min(s.length,i+o);o=s.slice(c,u).map((function(e,t){var n=t+c+1;return(n==i?" > ":" ")+n+"| "+e})).join("\n");throw t.path=r,t.message=(r||"Pug")+":"+i+"\n"+o+"\n\n"+t.message,t}},function(e,t,n){var r=n(41),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(112),i=n(117);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(22),i=n(113),a=n(114),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(99),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(31))},function(e,t,n){var r=n(16).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(133),i=n(134),a=n(135),o=n(136),s=n(137);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(48);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(18)(Object,"create");e.exports=r},function(e,t,n){var r=n(151);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(19),i=n(20);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(28);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(0),i=n.n(r),a=n(3),o=n.n(a),s=n(6),c=n.n(s),u=n(7),l=n.n(u),f=n(8),A=n.n(f),h=n(5),p=n.n(h),d=n(9),g=n.n(d),y=n(2),v=n(38),m=function(e){function t(){return c()(this,t),A()(this,p()(t).apply(this,arguments))}var n,r;return g()(t,e),l()(t,[{key:"alert",value:(r=o()(i.a.mark((function e(t,n){var r,a,s=this,c=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:"OK",a=c.length>3?c[3]:void 0,e.abrupt("return",new Promise((function(e){var c,u=[{text:r,style:"neutral",action:(c=o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a&&s.deviceInterface.timeout(a),e(!0);case 2:case"end":return t.stop()}}),t)}))),function(){return c.apply(this,arguments)})}];new v.SKAlert({title:n,text:t,buttons:u}).present()})));case 3:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"confirm",value:(n=o()(i.a.mark((function e(t,n){var r,a,s,c,u,l=this,f=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=f.length>2&&void 0!==f[2]?f[2]:"Confirm",a=f.length>3&&void 0!==f[3]?f[3]:"Cancel",s=f.length>4?f[4]:void 0,c=f.length>5?f[5]:void 0,u=f.length>6&&void 0!==f[6]&&f[6],e.abrupt("return",new Promise((function(e,f){var A,h,p=[{text:a,style:"neutral",action:(h=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c&&l.deviceInterface.timeout(c),f(!1);case 2:case"end":return e.stop()}}),e)}))),function(){return h.apply(this,arguments)})},{text:r,style:u?"danger":"info",action:(A=o()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s&&l.deviceInterface.timeout(s),e(!0);case 2:case"end":return t.stop()}}),t)}))),function(){return A.apply(this,arguments)})}];new v.SKAlert({title:n,text:t,buttons:p}).present()})));case 6:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})}]),t}(y.SNAlertService)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(18)(n(16),"Map");e.exports=r},function(e,t,n){var r=n(143),i=n(150),a=n(152),o=n(153),s=n(154);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(172),i=n(178),a=n(56);e.exports=function(e){return a(e)?r(e):i(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(17),i=n(28),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r;window,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(t);var i=function(){function e(t){var n,r,i,a=this,o=t.title,s=t.text,c=t.buttons;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=function(e){if("Enter"===e.key){var t=a.primaryButton();t.action&&t.action(),a.dismiss()}},(r="keyupListener")in(n=this)?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,this.title=o,this.text=s,this.buttons=c}var t,n,i;return t=e,(n=[{key:"buttonsString",value:function(){var e=this.buttons.map((function(e,t){return function(e,t){return"\n <div id='button-".concat(t,"' class='sk-button ").concat(e.style,"'>\n <div class='sk-label'>").concat(e.text,"</div>\n </div>\n ")}(e,t)})).join("");return"\n <div class='sk-button-group'>\n ".concat(e,"\n </div>\n ")}},{key:"templateString",value:function(){var e=this.buttonsString(),t=this.title?"<div class='sk-h3 sk-panel-section-title'>".concat(this.title,"</div>"):"",n=this.text?"<p class='sk-p'>".concat(this.text,"</p>"):"";return'\n <div class="sk-modal">\n <div class="sk-modal-background"></div>\n <div class="sk-modal-content">\n <div class="sn-component">\n <div class="sk-panel" style=\'max-width: 500px;\'>\n <div class="sk-panel-content">\n <div class="sk-panel-section">\n '.concat(t,'\n\n <div class="sk-panel-row">\n ').concat(n,"\n </div>\n\n <div class=\"sk-panel-row\" style='margin-top: 8px;'>\n ").concat(e,"\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n ")}},{key:"dismiss",value:function(){this.onElement.removeChild(this.element),document.removeEventListener("keyup",this.keyupListener)}},{key:"primaryButton",value:function(){var e=this.buttons.find((function(e){return!0===e.primary}));return e||(e=this.buttons[this.buttons.length-1]),e}},{key:"present",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.onElement;n||(n=document.body),this.onElement=n,this.element=document.createElement("div"),this.element.className="sn-component",this.element.innerHTML=this.templateString().trim(),document.addEventListener("keyup",this.keyupListener),this.buttons.forEach((function(t,n){e.element.querySelector("#button-".concat(n)).onclick=function(){t.action&&t.action(),e.dismiss()}})),n.appendChild(this.element)}}])&&r(t.prototype,n),i&&r(t,i),e}();n.d(t,"SKAlert",(function(){return i}))}])},e.exports=r()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var r=n(0),i=n.n(r),a=n(3),o=n.n(a),s=n(6),c=n.n(s),u=n(7),l=n.n(u),f=n(1),A=n.n(f),h=n(11),p=n(12),d=function(){function t(n){var r=this;c()(this,t),A()(this,"application",void 0),A()(this,"unsubState",void 0),A()(this,"pollFocusInterval",void 0),A()(this,"lastFocusState",void 0),A()(this,"lockAfterDate",void 0),A()(this,"lockTimeout",void 0),this.application=n,e((function(){r.observeVisibility()}))}var n,r,a,s;return l()(t,[{key:"observeVisibility",value:function(){var e=this;this.unsubState=this.application.getAppState().addObserver(function(){var t=o()(i.a.mark((function t(n){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n===p.b.WindowDidBlur?e.documentVisibilityChanged(!1):n===p.b.WindowDidFocus&&e.documentVisibilityChanged(!0);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Object(h.d)()||this.beginWebFocusPolling()}},{key:"deinit",value:function(){this.unsubState(),this.pollFocusInterval&&clearInterval(this.pollFocusInterval)}},{key:"setAutoLockInterval",value:(s=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.application.setValue("AutoLockIntervalKey",t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"getAutoLockInterval",value:(a=o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.getValue("AutoLockIntervalKey");case 2:if(!(t=e.sent)){e.next=7;break}return e.abrupt("return",t);case 7:return e.abrupt("return",0);case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"beginWebFocusPolling",value:function(){var e=this;this.pollFocusInterval=setInterval((function(){var t=document.hasFocus();t&&"hidden"===e.lastFocusState?e.documentVisibilityChanged(!0):t||"visible"!==e.lastFocusState||e.documentVisibilityChanged(!1),e.lastFocusState=t?"visible":"hidden"}),1e3)}},{key:"getAutoLockIntervalOptions",value:function(){return[{value:0,label:"Off"},{value:1,label:"Immediately"},{value:6e4,label:"1m"},{value:3e5,label:"5m"},{value:36e5,label:"1h"}]}},{key:"documentVisibilityChanged",value:(r=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=8;break}return e.next=3,this.application.isLocked();case 3:!e.sent&&this.lockAfterDate&&new Date>this.lockAfterDate&&this.application.lock(),this.cancelAutoLockTimer(),e.next=9;break;case 8:this.beginAutoLockTimer();case 9:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"beginAutoLockTimer",value:(n=o()(i.a.mark((function e(){var t,n,r=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAutoLockInterval();case 2:if(0!==(t=e.sent)){e.next=5;break}return e.abrupt("return");case 5:n=function(e){var t=new Date;return t.setSeconds(t.getSeconds()+e),t},this.lockAfterDate=n(t/1e3),this.lockTimeout=setTimeout((function(){r.cancelAutoLockTimer(),r.application.lock(),r.lockAfterDate=void 0}),t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"cancelAutoLockTimer",value:function(){clearTimeout(this.lockTimeout),this.lockAfterDate=void 0}}]),t}()}).call(this,n(21).setImmediate)},function(e,t,n){var r=n(19),i=n(23);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(31))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(131),i=n(188),a=n(32),o=n(17),s=n(198);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(24),i=n(138),a=n(139),o=n(140),s=n(141),c=n(142);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(155),i=n(20);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},function(e,t,n){var r=n(156),i=n(159),a=n(160);e.exports=function(e,t,n,o,s,c){var u=1&n,l=e.length,f=t.length;if(l!=f&&!(u&&f>l))return!1;var A=c.get(e);if(A&&c.get(t))return A==t;var h=-1,p=!0,d=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var g=e[h],y=t[h];if(o)var v=u?o(y,g,h,t,e,c):o(g,y,h,e,t,c);if(void 0!==v){if(v)continue;p=!1;break}if(d){if(!i(t,(function(e,t){if(!a(d,t)&&(g===e||s(g,e,n,o,c)))return d.push(t)}))){p=!1;break}}else if(g!==y&&!s(g,y,n,o,c)){p=!1;break}}return c.delete(e),c.delete(t),p}},function(e,t,n){var r=n(174),i=n(20),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(16),i=n(175),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(this,n(53)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(176),i=n(45),a=n(177),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},function(e,t,n){var r=n(40),i=n(36);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(23);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(60),i=n(29);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(17),i=n(37),a=n(190),o=n(193);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},function(e,t,n){"use strict";(function(e){function r(t){return{restrict:"A",link:function(n,r){r.on("focus",(function(){if(!t.getSelection().toString()){var n=r[0];e((function(){n.setSelectionRange(0,n.value.length)}))}}))}}}n.d(t,"a",(function(){return r})),r.$inject=["$window"]}).call(this,n(21).setImmediate)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return D}));var r=n(0),i=n.n(r),a=n(3),o=n.n(a),s=n(6),c=n.n(s),u=n(7),l=n.n(u),f=n(8),A=n.n(f),h=n(4),p=n.n(h),d=n(5),g=n.n(d),y=n(10),v=n.n(y),m=n(9),b=n.n(m),I=n(1),w=n.n(I),C=n(63),B=n(89),E=n(2),_=n(13),k=n.n(_),Q=n(11),S=n(30),x=n(90),D=function(t){function n(e,t,r,i){var a;c()(this,n);var o=new x.a("",t);return a=A()(this,g()(n).call(this,E.Environment.Web,Object(E.platformFromString)(Object(Q.c)()),o,"",void 0,[{swap:E.SNAlertService,with:S.a}])),w()(p()(a),"$compile",void 0),w()(p()(a),"scope",void 0),w()(p()(a),"onDeinit",void 0),w()(p()(a),"webServices",void 0),w()(p()(a),"currentAuthenticationElement",void 0),w()(p()(a),"editorGroup",void 0),w()(p()(a),"componentGroup",void 0),a.$compile=e,a.scope=r,a.onDeinit=i,o.setApplication(p()(a)),a.editorGroup=new B.a(p()(a)),a.componentGroup=new C.a(p()(a)),a}var r,a,s;return n.$inject=["$compile","$timeout","scope","onDeinit"],b()(n,t),l()(n,[{key:"deinit",value:function(){for(var t=this,r=0,i=Object.keys(this.webServices);r<i.length;r++){var a=i[r],o=this.webServices[a];o.deinit&&o.deinit(),o.application=void 0}this.webServices={},this.onDeinit(this),this.onDeinit=void 0,this.$compile=void 0,this.editorGroup.deinit(),this.componentGroup.deinit(),this.scope.application=void 0,this.scope.$destroy(),this.scope=void 0,e((function(){v()(g()(n.prototype),"deinit",t).call(t)}))}},{key:"setWebServices",value:function(e){this.webServices=e}},{key:"getAppState",value:function(){return this.webServices.appState}},{key:"getDesktopService",value:function(){return this.webServices.desktopService}},{key:"getLockService",value:function(){return this.webServices.lockService}},{key:"getArchiveService",value:function(){return this.webServices.archiveService}},{key:"getNativeExtService",value:function(){return this.webServices.nativeExtService}},{key:"getStatusService",value:function(){return this.webServices.statusService}},{key:"getThemeService",value:function(){return this.webServices.themeService}},{key:"getPrefsService",value:function(){return this.webServices.prefsService}},{key:"getKeyboardService",value:function(){return this.webServices.keyboardService}},{key:"checkForSecurityUpdate",value:(s=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.protocolUpgradeAvailable());case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"presentPasswordWizard",value:function(e){var t=this.scope.$new(!0);t.type=e,t.application=this;var n=this.$compile("<password-wizard application='application' type='type'></password-wizard>")(t);k.a.element(document.body).append(n)}},{key:"promptForChallenge",value:function(e,t){var n=this.scope.$new(!0);n.challenge=e,n.orchestrator=t,n.application=this;var r=this.$compile("<challenge-modal class='sk-modal' application='application' challenge='challenge' orchestrator='orchestrator'></challenge-modal>")(n);k.a.element(document.body).append(r)}},{key:"performProtocolUpgrade",value:(a=o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.upgradeProtocolVersion();case 2:(t=e.sent)&&0!==t.length?this.alertService.alert("Unable to upgrade encryption version. Please try again."):this.alertService.alert("Success! Your encryption version has been upgraded. You'll be asked to enter your credentials again on other devices you're signed into.");case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"presentPrivilegesModal",value:(r=o()(i.a.mark((function e(t,n,r){var a,s,c,u,l=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.authenticationInProgress()){e.next=3;break}return r&&r(),e.abrupt("return");case 3:a=function(){var e=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n,!e.t0){e.next=4;break}return e.next=4,n();case 4:l.currentAuthenticationElement=void 0;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=r,!e.t0){e.next=4;break}return e.next=4,r();case 4:l.currentAuthenticationElement=void 0;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),(c=this.scope.$new(!0)).action=t,c.onSuccess=a,c.onCancel=s,c.application=this,u=this.$compile("\n <privileges-auth-modal application='application' action='action' on-success='onSuccess' \n on-cancel='onCancel' class='sk-modal'></privileges-auth-modal>\n ")(c),k.a.element(document.body).append(u),this.currentAuthenticationElement=u;case 13:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"presentPrivilegesManagementModal",value:function(){var e=this.scope.$new(!0);e.application=this;var t=this.$compile("<privileges-management-modal application='application' class='sk-modal'></privileges-management-modal>")(e);k.a.element(document.body).append(t)}},{key:"authenticationInProgress",value:function(){return null!=this.currentAuthenticationElement}},{key:"presentPasswordModal",value:function(e){var t=this.scope.$new(!0);t.type="password",t.title="Decryption Assistance",t.message="Unable to decrypt this item with your current keys. \n Please enter your account password at the time of this revision.",t.callback=e;var n=this.$compile("<input-modal type='type' message='message' \n title='title' callback='callback()'></input-modal>")(t);k.a.element(document.body).append(n)}},{key:"presentRevisionPreviewModal",value:function(e,t){var n=this.scope.$new(!0);n.uuid=e,n.content=t,n.application=this;var r=this.$compile("<revision-preview-modal application='application' uuid='uuid' content='content' \n class='sk-modal'></revision-preview-modal>")(n);k.a.element(document.body).append(r)}}]),n}(E.SNApplication)}).call(this,n(21).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(0),i=n.n(r),a=n(3),o=n.n(a),s=n(6),c=n.n(s),u=n(7),l=n.n(u),f=n(1),A=n.n(f),h=n(2),p=[h.ComponentArea.Editor,h.ComponentArea.NoteTags,h.ComponentArea.TagsList],d=function(){function e(t){c()(this,e),A()(this,"application",void 0),A()(this,"changeObservers",[]),A()(this,"activeComponents",[]),this.application=t}var t,n,r;return l()(e,[{key:"deinit",value:function(){this.application=void 0}},{key:"activateComponent",value:(r=o()(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.activeComponents.includes(t.uuid)){e.next=2;break}return e.abrupt("return");case 2:if(!p.includes(t.area)){e.next=7;break}if(!(n=this.activeComponentForArea(t.area))){e.next=7;break}return e.next=7,this.deactivateComponent(n,!1);case 7:return Object(h.addIfUnique)(this.activeComponents,t.uuid),e.next=10,this.componentManager.activateComponent(t.uuid);case 10:this.notifyObservers();case 11:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"deactivateComponent",value:(n=o()(i.a.mark((function e(t){var n,r=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(r.length>1&&void 0!==r[1])||r[1],this.activeComponents.includes(t.uuid)){e.next=3;break}return e.abrupt("return");case 3:if(Object(h.removeFromArray)(this.activeComponents,t.uuid),!this.componentManager){e.next=8;break}return e.next=7,this.componentManager.deactivateComponent(t.uuid);case 7:n&&this.notifyObservers();case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"deactivateComponentForArea",value:(t=o()(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.activeComponentForArea(t))){e.next=3;break}return e.abrupt("return",this.deactivateComponent(n));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"activeComponentForArea",value:function(e){return this.activeComponentsForArea(e)[0]}},{key:"activeComponentsForArea",value:function(e){return this.allActiveComponents().filter((function(t){return t.area===e}))}},{key:"allComponentsForArea",value:function(e){return this.componentManager.componentsForArea(e)}},{key:"allActiveComponents",value:function(){return this.application.getAll(this.activeComponents)}},{key:"addChangeObserver",value:function(e){var t=this;return this.changeObservers.push(e),e(),function(){Object(h.removeFromArray)(t.changeObservers,e)}}},{key:"notifyObservers",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.changeObservers[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){(0,r.value)()}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"componentManager",get:function(){var e;return null===(e=this.application)||void 0===e?void 0:e.componentManager}}]),e}()},function(e,t,n){var r=n(105)(n(119));e.exports=r},function(e,t,n){var r=n(126);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(128);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(129);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(130)(n(201));e.exports=r},function(e,t,n){var r=n(205);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(206);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(207);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(208);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(209);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(210);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(211);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(212);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(213);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(214);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(215);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(216);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(217);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(218);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(219);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(220);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(221);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(222);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(223);e.exports=(r.default||r).apply(r,[])},function(e,t,n){var r=n(224);e.exports=(r.default||r).apply(r,[])},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(6),i=n.n(r),a=n(7),o=n.n(a),s=n(1),c=n.n(s),u=n(2),l=n(0),f=n.n(l),A=n(3),h=n.n(A),p=function(){function e(t,n,r){var a=this;i()(this,e),c()(this,"note",void 0),c()(this,"application",void 0),c()(this,"_onNoteChange",void 0),c()(this,"_onNoteValueChange",void 0),c()(this,"removeStreamObserver",void 0),c()(this,"isTemplateNote",!1),this.application=t,n?this.note=t.findItem(n):this.reset(r),this.removeStreamObserver=this.application.streamItems(u.ContentType.Note,function(){var e=h()(f.a.mark((function e(t,n){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.handleNoteStream(t,n);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}var t,n,r;return o()(e,[{key:"deinit",value:function(){this.removeStreamObserver(),this.removeStreamObserver=void 0,this._onNoteChange=void 0,this.application=void 0,this._onNoteChange=void 0,this._onNoteValueChange=void 0}},{key:"handleNoteStream",value:(r=h()(f.a.mark((function e(t,n){var r,i=this;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=t.find((function(e){return e.uuid===i.note.uuid})))&&(this.isTemplateNote=!1,this.note=r,this._onNoteValueChange&&this._onNoteValueChange(r,n));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"insertTemplatedNote",value:(n=h()(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.application.insertItem(this.note));case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:(t=h()(f.a.mark((function e(t){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.createTemplateItem(u.ContentType.Note,{text:"",title:t||"",references:[]});case 2:n=e.sent,this.isTemplateNote=!0,this.setNote(n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"onNoteChange",value:function(e){this._onNoteChange=e,this.note&&e()}},{key:"onNoteValueChange",value:function(e){this._onNoteValueChange=e}},{key:"setNote",value:function(e){this.note=e,this._onNoteChange&&this._onNoteChange()}}]),e}(),d=function(){function e(t){i()(this,e),c()(this,"editors",[]),c()(this,"application",void 0),c()(this,"changeObservers",[]),this.application=t}return o()(e,[{key:"deinit",value:function(){this.application=void 0;var e=!0,t=!1,n=void 0;try{for(var r,i=this.editors[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var a=r.value;this.deleteEditor(a)}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"createEditor",value:function(e,t){var n=new p(this.application,e,t);this.editors.push(n),this.notifyObservers()}},{key:"deleteEditor",value:function(e){e.deinit(),Object(u.removeFromArray)(this.editors,e)}},{key:"closeEditor",value:function(e){this.deleteEditor(e),this.notifyObservers()}},{key:"closeActiveEditor",value:function(){var e=this.activeEditor;e&&this.deleteEditor(e)}},{key:"closeAllEditors",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.editors[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var a=r.value;this.deleteEditor(a)}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"addChangeObserver",value:function(e){var t=this;return this.changeObservers.push(e),this.activeEditor&&e(),function(){Object(u.removeFromArray)(t.changeObservers,e)}}},{key:"notifyObservers",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.changeObservers[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){(0,r.value)()}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"activeEditor",get:function(){return this.editors[0]}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(0),i=n.n(r),a=n(3),o=n.n(a),s=n(6),c=n.n(s),u=n(7),l=n.n(u),f=n(8),A=n.n(f),h=n(4),p=n.n(h),d=n(5),g=n.n(d),y=n(10),v=n.n(y),m=n(9),b=n.n(m),I=n(1),w=n.n(I),C=n(2),B=function(){function e(){c()(this,e),w()(this,"locked",!0),w()(this,"alertService",void 0),w()(this,"db",void 0)}var t,n,r,a,s,u,f;return l()(e,[{key:"deinit",value:function(){this.alertService=void 0,this.db=void 0}},{key:"setAlertService",value:function(e){this.alertService=e}},{key:"unlock",value:function(){this.locked=!1}},{key:"openDatabase",value:(f=o()(i.a.mark((function e(t){var n,r=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.locked){e.next=2;break}throw Error("Attempting to open locked database");case 2:if(!this.db){e.next=4;break}return e.abrupt("return",this.db);case 4:return n=window.indexedDB.open("standardnotes",1),e.abrupt("return",new Promise((function(e,i){n.onerror=function(e){var t=e.target;t.errorCode?r.showAlert("Offline database issue: "+t.errorCode):r.displayOfflineAlert(),i(new Error("Unable to open db"))},n.onblocked=function(e){i(Error("IndexedDB open request blocked"))},n.onsuccess=function(t){var n=t.target.result;n.onversionchange=function(){n.close()},n.onerror=function(e){var t=null==e?void 0:e.target;throw Error("Database error: "+t.errorCode)},r.db=n,e(n)},n.onupgradeneeded=function(e){var n=e.target.result;n.onversionchange=function(){n.close()};var r=n.createObjectStore("items",{keyPath:"uuid"});r.createIndex("uuid","uuid",{unique:!0}),r.transaction.oncomplete=function(){1===n.version&&t&&t&&t()}}})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"getAllPayloads",value:(u=o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.openDatabase();case 2:return t=e.sent,e.abrupt("return",new Promise((function(e){var n=t.transaction("items").objectStore("items"),r=[];n.openCursor().onsuccess=function(t){var n=t.target.result;n?(r.push(n.value),n.continue()):e(r)}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"savePayload",value:(s=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.savePayloads([t]));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"savePayloads",value:(a=o()(i.a.mark((function e(t){var n,r,a=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.openDatabase();case 4:return n=e.sent,r=n.transaction("items","readwrite"),e.abrupt("return",new Promise((function(e,n){r.oncomplete=function(){},r.onerror=function(e){var t=e.target;a.showGenericError(t.error)},r.onabort=function(e){var t=e.target.error;"QuotaExceededError"===t.name?a.showAlert("Unable to save changes locally because your device is out of space. Please free up some disk space and try again, otherwise, your data may end up in an inconsistent state."):a.showGenericError(t),n(t)};var i=r.objectStore("items");a.putItems(i,t).then(e)})));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"putItems",value:(r=o()(i.a.mark((function e(t,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(n.map((function(e){return new Promise((function(n){var r=t.put(e);r.onerror=n,r.onsuccess=n}))})));case 2:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"deletePayload",value:(n=o()(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.openDatabase();case 2:return n=e.sent,e.abrupt("return",new Promise((function(e,r){var i=n.transaction("items","readwrite").objectStore("items").delete(t);i.onsuccess=function(){e()},i.onerror=r})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"clearAllPayloads",value:(t=o()(i.a.mark((function e(){var t,n=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.indexedDB.deleteDatabase("standardnotes"),e.abrupt("return",new Promise((function(e,r){t.onerror=function(){r(Error("Error deleting database."))},t.onsuccess=function(){n.db=void 0,e()},t.onblocked=function(e){n.showAlert("Your browser is blocking Standard Notes from deleting the local database. Make sure there are no other open windows of this app and try again. If the issue persists, please manually delete app data to sign out."),r(Error("Delete request blocked"))}})));case 2:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"showAlert",value:function(e){this.alertService.alert(e)}},{key:"showGenericError",value:function(e){var t="Unable to save changes locally due to an unknown system issue. "+"Issue Code: ".concat(e.code," Issue Name: ").concat(e.name,".");this.showAlert(t)}},{key:"displayOfflineAlert",value:function(){this.alertService.alert("There was an issue loading your offline database. This could happen for two reasons:\n\n1. You're in a private window in your browser. We can't save your data without access to the local database. Please use a non-private window.\n\n2. You have two windows of the app open at the same time. Please close any other app instances and reload the page.")}}]),e}(),E=function(e){function t(e,n){var r;return c()(this,t),r=A()(this,g()(t).call(this,e,n||setTimeout.bind(Object(C.getGlobalScope)()),setInterval.bind(Object(C.getGlobalScope)()))),w()(p()(r),"database",void 0),r.database=new B,r}var n,r,a,s,u,f,h,d,y,m,I,E,_,k;return b()(t,e),l()(t,[{key:"setApplication",value:function(e){this.database.setAlertService(e.alertService)}},{key:"deinit",value:function(){v()(g()(t.prototype),"deinit",this).call(this),this.database.deinit()}},{key:"getRawStorageValue",value:(k=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",localStorage.getItem(t));case 1:case"end":return e.stop()}}),e)}))),function(e){return k.apply(this,arguments)})},{key:"getAllRawStorageKeyValues",value:(_=o()(i.a.mark((function e(){var t,n,r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=[],n=0,r=Object.keys(localStorage);n<r.length;n++)a=r[n],t.push({key:a,value:localStorage[a]});return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)}))),function(){return _.apply(this,arguments)})},{key:"setRawStorageValue",value:(E=o()(i.a.mark((function e(t,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:localStorage.setItem(t,n);case 1:case"end":return e.stop()}}),e)}))),function(e,t){return E.apply(this,arguments)})},{key:"removeRawStorageValue",value:(I=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:localStorage.removeItem(t);case 1:case"end":return e.stop()}}),e)}))),function(e){return I.apply(this,arguments)})},{key:"removeAllRawStorageValues",value:(m=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:localStorage.clear();case 1:case"end":return e.stop()}}),e)}))),function(){return m.apply(this,arguments)})},{key:"openDatabase",value:(y=o()(i.a.mark((function e(){var t=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.database.unlock(),e.abrupt("return",new Promise((function(e,n){t.database.openDatabase((function(){e({isNewDatabase:!0})})).then((function(){e({isNewDatabase:!1})})).catch((function(e){n(e)}))})));case 2:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"getDatabaseKeyPrefix",value:function(){return this.namespace?"".concat(this.namespace,"-item-"):"item-"}},{key:"keyForPayloadId",value:function(e){return"".concat(this.getDatabaseKeyPrefix()).concat(e)}},{key:"getAllRawDatabasePayloads",value:(d=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.database.getAllPayloads());case 1:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"saveRawDatabasePayload",value:(h=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.database.savePayload(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"saveRawDatabasePayloads",value:(f=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.database.savePayloads(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"removeRawDatabasePayloadWithId",value:(u=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.database.deletePayload(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"removeAllRawDatabasePayloads",value:(s=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.database.clearAllPayloads());case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"getKeychainValue",value:(a=o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=localStorage.getItem("keychain"))){e.next=3;break}return e.abrupt("return",JSON.parse(t));case 3:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"setKeychainValue",value:(r=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:localStorage.setItem("keychain",JSON.stringify(t));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"clearKeychainValue",value:(n=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:localStorage.removeItem("keychain");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"openUrl",value:function(e){var t=window.open(e,"_blank");t&&t.focus()}}]),t}(C.DeviceInterface)},function(e,t,n){},function(e,t,n){},function(e,t){
/**
* @license AngularJS v1.7.9
* (c) 2010-2018 Google, Inc. http://angularjs.org
* License: MIT
*/
!function(e){"use strict";var t={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(e){if(!j(e))return t;H(e.objectMaxDepth)&&(t.objectMaxDepth=r(e.objectMaxDepth)?e.objectMaxDepth:NaN),H(e.urlErrorParamsEnabled)&&q(e.urlErrorParamsEnabled)&&(t.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function r(e){return L(e)&&e>0}function i(e,n){n=n||Error;var r="https://errors.angularjs.org/1.7.9/",i=r.replace(".","\\.")+"[\\s\\S]*",a=new RegExp(i,"g");return function(){var i,o,s=arguments[0],c=arguments[1],u="["+(e?e+":":"")+s+"] ",l=fe(arguments,2).map((function(e){return Le(e,t.objectMaxDepth)}));if(u+=c.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t<l.length?l[t].replace(a,""):e})),u+="\n"+r+(e?e+"/":"")+s,t.urlErrorParamsEnabled)for(o=0,i="?";o<l.length;o++,i="&")u+=i+"p"+o+"="+encodeURIComponent(l[o]);return new n(u)}}var a,o,s,c,u=/^\/(.+)\/([a-z]*)$/,l=Object.prototype.hasOwnProperty,f=function(e){return U(e)?e.toLowerCase():e},A=function(e){return U(e)?e.toUpperCase():e},h=[].slice,p=[].splice,d=[].push,g=Object.prototype.toString,y=Object.getPrototypeOf,v=i("ng"),m=e.angular||(e.angular={}),b=0;function I(e){if(null==e||V(e))return!1;if(G(e)||U(e)||o&&e instanceof o)return!0;var t="length"in Object(e)&&e.length;return L(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function w(e,t,n){var r,i;if(e)if(Y(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(G(e)||I(e)){var a="object"!=typeof e;for(r=0,i=e.length;r<i;r++)(a||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==w)e.forEach(t,n,e);else if(N(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)l.call(e,r)&&t.call(n,e[r],r,e);return e}function C(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function B(e){return function(t,n){e(n,t)}}function E(){return++b}function _(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function k(e,t,n){for(var r=e.$$hashKey,i=0,a=t.length;i<a;++i){var o=t[i];if(j(o)||Y(o))for(var s=Object.keys(o),c=0,u=s.length;c<u;c++){var l=s[c],f=o[l];n&&j(f)?K(f)?e[l]=new Date(f.valueOf()):J(f)?e[l]=new RegExp(f):f.nodeName?e[l]=f.cloneNode(!0):te(f)?e[l]=f.clone():"__proto__"!==l&&(j(e[l])||(e[l]=G(f)?[]:{}),k(e[l],[f],!0)):e[l]=f}}return _(e,r),e}function Q(e){return k(e,h.call(arguments,1),!1)}function S(e){return k(e,h.call(arguments,1),!0)}function x(e){return parseInt(e,10)}a=e.document.documentMode;var D=Number.isNaN||function(e){return e!=e};function P(e,t){return Q(Object.create(e),t)}function M(){}function F(e){return e}function O(e){return function(){return e}}function R(e){return Y(e.toString)&&e.toString!==g}function T(e){return void 0===e}function H(e){return void 0!==e}function j(e){return null!==e&&"object"==typeof e}function N(e){return null!==e&&"object"==typeof e&&!y(e)}function U(e){return"string"==typeof e}function L(e){return"number"==typeof e}function K(e){return"[object Date]"===g.call(e)}function G(e){return Array.isArray(e)||e instanceof Array}function $(e){switch(g.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function Y(e){return"function"==typeof e}function J(e){return"[object RegExp]"===g.call(e)}function V(e){return e&&e.window===e}function z(e){return e&&e.$evalAsync&&e.$watch}function q(e){return"boolean"==typeof e}function W(e){return e&&Y(e.then)}M.$inject=[],F.$inject=[];var X=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var Z=function(e){return U(e)?e.trim():e},ee=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function te(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function ne(e){return f(e.nodeName||e[0]&&e[0].nodeName)}function re(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function ie(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function ae(e,t,n){var i,a,o=[],s=[];if(n=r(n)?n:NaN,t){if((a=t)&&L(a.length)&&X.test(g.call(a))||(i=t,"[object ArrayBuffer]"===g.call(i)))throw v("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw v("cpi","Can't copy! Source and destination are identical.");return G(t)?t.length=0:w(t,(function(e,n){"$$hashKey"!==n&&delete t[n]})),o.push(e),s.push(t),c(e,t,n)}return u(e,n);function c(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(G(e))for(var a=0,o=e.length;a<o;a++)t.push(u(e[a],n));else if(N(e))for(r in e)t[r]=u(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=u(e[r],n));else for(r in e)l.call(e,r)&&(t[r]=u(e[r],n));return _(t,i),t}function u(e,t){if(!j(e))return e;var n=o.indexOf(e);if(-1!==n)return s[n];if(V(e)||z(e))throw v("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(e){switch(g.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(u(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(Y(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===i&&(i=G(e)?[]:Object.create(y(e)),r=!0),o.push(e),s.push(i),r?c(e,i,t):i}}function oe(e,t){return e===t||e!=e&&t!=t}function se(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,a=typeof e;if(a===typeof t&&"object"===a){if(!G(e)){if(K(e))return!!K(t)&&oe(e.getTime(),t.getTime());if(J(e))return!!J(t)&&e.toString()===t.toString();if(z(e)||z(t)||V(e)||V(t)||G(t)||K(t)||J(t))return!1;for(r in i=He(),e)if("$"!==r.charAt(0)&&!Y(e[r])){if(!se(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&H(t[r])&&!Y(t[r]))return!1;return!0}if(!G(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!se(e[r],t[r]))return!1;return!0}}return!1}var ce=function(){if(!H(ce.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");ce.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else ce.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return ce.rules},ue=function(){if(H(ue.name_))return ue.name_;var t,n,r,i,a=Ee.length;for(n=0;n<a;++n)if(r=Ee[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return ue.name_=i};function le(e,t,n){return e.concat(h.call(t,n))}function fe(e,t){return h.call(e,t||0)}function Ae(e,t){var n=arguments.length>2?fe(arguments,2):[];return!Y(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,le(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function he(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:V(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":z(n)&&(r="$SCOPE"),r}function pe(e,t){if(!T(e))return L(t)||(t=t?2:null),JSON.stringify(e,he,t)}function de(e){return U(e)?JSON.parse(e):e}var ge=/:/g;function ye(e,t){e=e.replace(ge,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return D(n)?t:n}function ve(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function me(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return ve(e,n*(ye(t,r)-r))}function be(e){e=o(e).clone().empty();var t=o("<div></div>").append(e).html();try{return e[0].nodeType===Ne?f(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(e,t){return"<"+f(t)}))}catch(e){return f(t)}}function Ie(e){try{return decodeURIComponent(e)}catch(e){}}function we(e){var t={};return w((e||"").split("&"),(function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),H(r=Ie(r))&&(i=!H(i)||Ie(i),l.call(t,r)?G(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))})),t}function Ce(e){return Be(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Be(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var Ee=["ng-","data-ng-","ng:","x-ng-"];var _e=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every((function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(e.document);function ke(t,n){var r,i,a={};if(w(Ee,(function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))})),w(Ee,(function(e){var n,a=e+"app";!r&&(n=t.querySelector("["+a.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(a))})),r){if(!_e)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==function(e,t){var n,r,i=Ee.length;for(r=0;r<i;++r)if(n=Ee[r]+t,U(n=e.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],a)}}function Qe(t,n,r){j(r)||(r={});r=Q({strictDi:!1},r);var i=function(){if((t=o(t)).injector()){var i=t[0]===e.document?"document":be(t);throw v("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var a=Yt(n,r.strictDi);return a.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply((function(){t.data("$injector",r),n(t)(e)}))}]),a},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),m.resumeBootstrap=function(e){return w(e,(function(e){n.push(e)})),i()},Y(m.resumeDeferredBootstrap)&&m.resumeDeferredBootstrap()}function Se(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function xe(e){var t=m.element(e).injector();if(!t)throw v("test","no injector found for element argument to getTestability");return t.get("$$testability")}var De=/[A-Z]/g;function Pe(e,t){return t=t||"_",e.replace(De,(function(e,n){return(n?t:"")+e.toLowerCase()}))}var Me=!1;function Fe(e,t,n){if(!e)throw v("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function Oe(e,t,n){return n&&G(e)&&(e=e[e.length-1]),Fe(Y(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function Re(e,t){if("hasOwnProperty"===e)throw v("badname","hasOwnProperty is not a valid {0} name",t)}function Te(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=o(h.call(e,0,i))),t.push(n));return t||e}function He(){return Object.create(null)}function je(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!R(e)||G(e)||K(e)?pe(e):e.toString()}return e}var Ne=3;function Ue(e,t){if(G(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(j(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function Le(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):T(e)?"undefined":"string"!=typeof e?function(e,t){var n=[];return r(t)&&(e=m.copy(e,null,t)),JSON.stringify(e,(function(e,t){if(j(t=he(e,t))){if(n.indexOf(t)>=0)return"...";n.push(t)}return t}))}(e,t):e}var Ke={full:"1.7.9",major:1,minor:7,dot:9,codeName:"pollution-eradication"};st.expando="ng339";var Ge=st.cache={},$e=1;st._data=function(e){return this.cache[e[this.expando]]||{}};var Ye=/-([a-z])/g,Je=/^-ms-/,Ve={mouseleave:"mouseout",mouseenter:"mouseover"},ze=i("jqLite");function qe(e,t){return t.toUpperCase()}function We(e){return e.replace(Ye,qe)}var Xe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ze=/<|&#?\w+;/,et=/<([\w:-]+)/,tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function rt(e){return!Ze.test(e)}function it(e){var t=e.nodeType;return 1===t||!t||9===t}function at(e,t){var n,r,i,a,o=t.createDocumentFragment(),s=[];if(rt(e))s.push(t.createTextNode(e));else{for(n=o.appendChild(t.createElement("div")),r=(et.exec(e)||["",""])[1].toLowerCase(),i=nt[r]||nt._default,n.innerHTML=i[1]+e.replace(tt,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;s=le(s,n.childNodes),(n=o.firstChild).textContent=""}return o.textContent="",o.innerHTML="",w(s,(function(e){o.appendChild(e)})),o}nt.optgroup=nt.option,nt.tbody=nt.tfoot=nt.colgroup=nt.caption=nt.thead,nt.th=nt.td;var ot=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function st(t){if(t instanceof st)return t;var n,r,i,a;if(U(t)&&(t=Z(t),n=!0),!(this instanceof st)){if(n&&"<"!==t.charAt(0))throw ze("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new st(t)}n?mt(this,(r=t,i=i||e.document,(a=Xe.exec(r))?[i.createElement(a[1])]:(a=at(r,i))?a.childNodes:[])):Y(t)?Bt(t):mt(this,t)}function ct(e){return e.cloneNode(!0)}function ut(e,t){!t&&it(e)&&o.cleanData([e]),e.querySelectorAll&&o.cleanData(e.querySelectorAll("*"))}function lt(e){var t;for(t in e)return!1;return!0}function ft(e){var t=e.ng339,n=t&&Ge[t],r=n&&n.events,i=n&&n.data;i&&!lt(i)||r&&!lt(r)||(delete Ge[t],e.ng339=void 0)}function At(e,t,n,r){if(H(r))throw ze("offargs","jqLite#off() does not support the `selector` argument");var i=pt(e),a=i&&i.events,o=i&&i.handle;if(o){if(t){var s=function(t){var r=a[t];H(n)&&ie(r||[],n),H(n)&&r&&r.length>0||(e.removeEventListener(t,o),delete a[t])};w(t.split(" "),(function(e){s(e),Ve[e]&&s(Ve[e])}))}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,o),delete a[t];ft(e)}}function ht(e,t){var n=e.ng339,r=n&&Ge[n];r&&(t?delete r.data[t]:r.data={},ft(e))}function pt(e,t){var n=e.ng339,r=n&&Ge[n];return t&&!r&&(e.ng339=n=++$e,r=Ge[n]={events:{},data:{},handle:void 0}),r}function dt(e,t,n){if(it(e)){var r,i=H(n),a=!i&&t&&!j(t),o=!t,s=pt(e,!a),c=s&&s.data;if(i)c[We(t)]=n;else{if(o)return c;if(a)return c&&c[We(t)];for(r in t)c[We(r)]=t[r]}}}function gt(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function yt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;w(t.split(" "),(function(e){e=Z(e),r=r.replace(" "+e+" "," ")})),r!==n&&e.setAttribute("class",Z(r))}}function vt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;w(t.split(" "),(function(e){e=Z(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")})),r!==n&&e.setAttribute("class",Z(r))}}function mt(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function bt(e,t){return It(e,"$"+(t||"ngController")+"Controller")}function It(e,t,n){9===e.nodeType&&(e=e.documentElement);for(var r=G(t)?t:[t];e;){for(var i=0,a=r.length;i<a;i++)if(H(n=o.data(e,r[i])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function wt(e){for(ut(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ct(e,t){t||ut(e);var n=e.parentNode;n&&n.removeChild(e)}function Bt(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}var Et=st.prototype={ready:Bt,toString:function(){var e=[];return w(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return o(e>=0?this[e]:this[this.length+e])},length:0,push:d,sort:[].sort,splice:[].splice},_t={};w("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){_t[f(e)]=e}));var kt={};w("input,select,option,textarea,button,form,details".split(","),(function(e){kt[e]=!0}));var Qt={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function St(e,t){var n=_t[t.toLowerCase()];return n&&kt[ne(e)]&&n}function xt(e,t,n){n.call(e,t)}function Dt(e,t,n){var r=t.relatedTarget;r&&(r===e||ot.call(e,r))||n.call(e,t)}function Pt(){this.$get=function(){return Q(st,{hasClass:function(e,t){return e.attr&&(e=e[0]),gt(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),vt(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),yt(e,t)}})}}function Mt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||E)():r+":"+e}w({data:dt,removeData:ht,hasData:function(e){for(var t in Ge[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)ht(e[t]),At(e[t])}},(function(e,t){st[t]=e})),w({data:dt,inheritedData:It,scope:function(e){return o.data(e,"$scope")||It(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return o.data(e,"$isolateScope")||o.data(e,"$isolateScopeNoTemplate")},controller:bt,injector:function(e){return It(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:gt,css:function(e,t,n){if(t=function(e){return We(e.replace(Je,"ms-"))}(t),!H(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Ne&&2!==i&&8!==i&&e.getAttribute){var a=f(t),o=_t[a];if(!H(n))return r=e.getAttribute(t),o&&null!==r&&(r=a),null===r?void 0:r;null===n||!1===n&&o?e.removeAttribute(t):e.setAttribute(t,o?a:n)}},prop:function(e,t,n){if(!H(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(T(t)){var n=e.nodeType;return 1===n||n===Ne?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(T(t)){if(e.multiple&&"select"===ne(e)){var n=[];return w(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),n}return e.value}e.value=t},html:function(e,t){if(T(t))return e.innerHTML;ut(e,!0),e.innerHTML=t},empty:wt},(function(e,t){st.prototype[t]=function(t,n){var r,i,a=this.length;if(e!==wt&&T(2===e.length&&e!==gt&&e!==bt?t:n)){if(j(t)){for(r=0;r<a;r++)if(e===dt)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var o=e.$dv,s=T(o)?Math.min(a,1):a,c=0;c<s;c++){var u=e(this[c],t,n);o=o?o+u:u}return o}for(r=0;r<a;r++)e(this[r],t,n);return this}})),w({removeData:ht,on:function(e,t,n,r){if(H(r))throw ze("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(it(e)){var i=pt(e,!0),a=i.events,o=i.handle;o||(o=i.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],a=i?i.length:0;if(a){if(T(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),o&&o.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||xt;a>1&&(i=Ue(i));for(var c=0;c<a;c++)n.isImmediatePropagationStopped()||s(e,n,i[c])}};return n.elem=e,n}(e,a));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],c=s.length,u=function(t,r,i){var s=a[t];s||((s=a[t]=[]).specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,o)),s.push(n)};c--;)t=s[c],Ve[t]?(u(Ve[t],Dt),u(t,void 0,!0)):u(t)}},off:At,one:function(e,t,n){(e=o(e)).on(t,(function r(){e.off(t,n),e.off(t,r)})),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;ut(e),w(new st(t),(function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t}))},children:function(e){var t=[];return w(e.childNodes,(function(e){1===e.nodeType&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(1===n||11===n)for(var r=0,i=(t=new st(t)).length;r<i;r++){var a=t[r];e.appendChild(a)}},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;w(new st(t),(function(t){e.insertBefore(t,n)}))}},wrap:function(e,t){var n,r,i;n=e,r=o(t).eq(0).clone()[0],(i=n.parentNode)&&i.replaceChild(r,n),r.appendChild(n)},remove:Ct,detach:function(e){Ct(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,a=(t=new st(t)).length;i<a;i++){var o=t[i];r.insertBefore(o,n.nextSibling),n=o}},addClass:vt,removeClass:yt,toggleClass:function(e,t,n){t&&w(t.split(" "),(function(t){var r=n;T(r)&&(r=!gt(e,t)),(r?vt:yt)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:ct,triggerHandler:function(e,t,n){var r,i,a,o=t.type||t,s=pt(e),c=s&&s.events,u=c&&c[o];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:M,type:o,target:e},t.type&&(r=Q(r,t)),i=Ue(u),a=n?[r].concat(n):[r],w(i,(function(t){r.isImmediatePropagationStopped()||t.apply(e,a)})))}},(function(e,t){st.prototype[t]=function(t,n,r){for(var i,a=0,s=this.length;a<s;a++)T(i)?H(i=e(this[a],t,n,r))&&(i=o(i)):mt(i,e(this[a],t,n,r));return H(i)?i:this}})),st.prototype.bind=st.prototype.on,st.prototype.unbind=st.prototype.off;var Ft=Object.create(null);function Ot(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Ot.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return D(e)?Ft:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Rt=Ot,Tt=[function(){this.$get=[function(){return Rt}]}],Ht=/^([^(]+?)=>/,jt=/^[^(]*\(\s*([^)]*)\)/m,Nt=/,/,Ut=/^\s*(_?)(\S+?)\1\s*$/,Lt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Kt=i("$injector");function Gt(e){return Function.prototype.toString.call(e)}function $t(e){var t=Gt(e).replace(Lt,"");return t.match(Ht)||t.match(jt)}function Yt(e,t){t=!0===t;var n={},r=[],i=new Rt,o={$provide:{provider:h(p),factory:h(g),service:h((function(e,t){return g(e,["$injector",function(e){return e.instantiate(t)}])})),value:h((function(e,t){return g(e,O(t),!1)})),constant:h((function(e,t){Re(e,"constant"),o[e]=t,u[e]=t})),decorator:function(e,t){var n=s.get(e+"Provider"),r=n.$get;n.$get=function(){var e=f.invoke(r,n);return f.invoke(t,null,{$delegate:e})}}}},s=o.$injector=v(o,(function(e,t){throw m.isString(t)&&r.push(t),Kt("unpr","Unknown provider: {0}",r.join(" <- "))})),u={},l=v(u,(function(e,t){var n=s.get(e+"Provider",t);return f.invoke(n.$get,n,void 0,e)})),f=l;o.$injectorProvider={$get:O(l)},f.modules=s.modules=He();var A=y(e);return(f=l.get("$injector")).strictDi=t,w(A,(function(e){e&&f.invoke(e)})),f.loadNewModules=function(e){w(y(e),(function(e){e&&f.invoke(e)}))},f;function h(e){return function(t,n){if(!j(t))return e(t,n);w(t,B(e))}}function p(e,t){if(Re(e,"service"),(Y(t)||G(t))&&(t=s.instantiate(t)),!t.$get)throw Kt("pget","Provider '{0}' must define $get factory method.",e);return o[e+"Provider"]=t}function d(e,t){return function(){var n=f.invoke(t,this);if(T(n))throw Kt("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function g(e,t,n){return p(e,{$get:!1!==n?d(e,t):t})}function y(e){Fe(T(e)||G(e),"modulesToLoad","not an array");var t,n=[];return w(e,(function(e){if(!i.get(e)){i.set(e,!0);try{U(e)?(t=c(e),f.modules[e]=t,n=n.concat(y(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):Y(e)||G(e)?n.push(s.invoke(e)):Oe(e,"module")}catch(t){throw G(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Kt("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=s.get(r[0]);i[r[1]].apply(i,r[2])}}})),n}function v(e,i){function s(t,a){if(e.hasOwnProperty(t)){if(e[t]===n)throw Kt("cdep","Circular dependency found: {0}",t+" <- "+r.join(" <- "));return e[t]}try{return r.unshift(t),e[t]=n,e[t]=i(t,a),e[t]}catch(r){throw e[t]===n&&delete e[t],r}finally{r.shift()}}function c(e,n,r){for(var i=[],a=Yt.$$annotate(e,t,r),o=0,c=a.length;o<c;o++){var u=a[o];if("string"!=typeof u)throw Kt("itkn","Incorrect injection token! Expected service name as string, got {0}",u);i.push(n&&n.hasOwnProperty(u)?n[u]:s(u,r))}return i}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var i=c(e,n,r);return G(e)&&(e=e[e.length-1]),function(e){if(a||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return q(t)||(t=e.$$ngIsClass=/^class\b/.test(Gt(e))),t}(e)?(i.unshift(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)},instantiate:function(e,t,n){var r=G(e)?e[e.length-1]:e,i=c(e,t,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:s,annotate:Yt.$$annotate,has:function(t){return o.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}}function Jt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var a=n.document;function s(e){if(e){e.scrollIntoView();var t=function(){var e=c.yOffset;if(Y(e))e=e();else if(te(e)){var t=e[0];e="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else L(e)||(e=0);return e}();if(t){var r=e.getBoundingClientRect().top;n.scrollBy(0,r-t)}}else n.scrollTo(0,0)}function c(e){var t,n,i;(e=U(e)?e:L(e)?e.toString():r.hash())?(t=a.getElementById(e))?s(t):(n=a.getElementsByName(e),i=null,Array.prototype.some.call(n,(function(e){if("a"===ne(e))return i=e,!0})),(t=i)?s(t):"top"===e&&s(null)):s(null)}return t&&i.$watch((function(){return r.hash()}),(function(t,n){var r,a;t===n&&""===t||(r=function(){i.$evalAsync(c)},"complete"===(a=a||e).document.readyState?a.setTimeout(r):o(a).on("load",r))})),c}]}Yt.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw U(n)&&n||(n=e.name||function(e){var t=$t(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Kt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);w($t(e)[1].split(Nt),(function(e){e.replace(Ut,(function(e,t,n){r.push(n)}))}))}e.$inject=r}}else G(e)?(Oe(e[i=e.length-1],"fn"),r=e.slice(0,i)):Oe(e,"fn",!0);return r};var Vt=i("$animate");function zt(e,t){return e||t?e?t?(G(e)&&(e=e.join(" ")),G(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function qt(e){return j(e)?e:{}}var Wt=function(){this.$get=M},Xt=function(){var e=new Rt,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:M,on:M,off:M,pin:M,push:function(o,s,c,u){u&&u(),(c=c||{}).from&&o.css(c.from),c.to&&o.css(c.to),(c.addClass||c.removeClass)&&function(n,o,s){var c=e.get(n)||{},u=i(c,o,!0),l=i(c,s,!1);(u||l)&&(e.set(n,c),t.push(n),1===t.length&&r.$$postDigest(a))}(o,c.addClass,c.removeClass);var l=new n;return l.complete(),l}};function i(e,t,n){var r=!1;return t&&w(t=U(t)?t.split(" "):G(t)?t:[],(function(t){t&&(r=!0,e[t]=n)})),r}function a(){w(t,(function(t){var n=e.get(t);if(n){var r=function(e){U(e)&&(e=e.split(" "));var t=He();return w(e,(function(e){e.length&&(t[e]=!0)})),t}(t.attr("class")),i="",a="";w(n,(function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)})),w(t,(function(e){i&&vt(e,i),a&&yt(e,a)})),e.delete(t)}})),t.length=0}}]},Zt=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Vt("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=Y(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){var t=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(t.test(n.toString()))throw n=null,Vt("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,a){return r=r&&o(r),i=i&&o(i),t(n,r=r||i.parent(),i),e.push(n,"enter",qt(a))},move:function(n,r,i,a){return r=r&&o(r),i=i&&o(i),t(n,r=r||i.parent(),i),e.push(n,"move",qt(a))},leave:function(t,n){return e.push(t,"leave",qt(n),(function(){t.remove()}))},addClass:function(t,n,r){return(r=qt(r)).addClass=zt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=qt(r)).removeClass=zt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=qt(i)).addClass=zt(i.addClass,n),i.removeClass=zt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,a){return(a=qt(a)).from=a.from?Q(a.from,n):n,a.to=a.to?Q(a.to,r):r,i=i||"ng-inline-animate",a.tempClasses=zt(a.tempClasses,i),e.push(t,"animate",a)}}}]}],en=function(){this.$get=["$$rAF",function(e){var t=[];function n(n){t.push(n),t.length>1||e((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var e=!1;return n((function(){e=!0})),function(t){e?t():n(t)}}}]},tn=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){r()?function(e){i(e,0,!1)}(e):t(e)},this._state=0}return a.chain=function(e,t){var n=0;!function r(){if(n===e.length)return void t(!0);e[n]((function(e){!1!==e?(n++,r()):t(!1)}))}()},a.all=function(e,t){var n=0,r=!0;function i(i){r=r&&i,++n===e.length&&t(r)}w(e,(function(e){e.done(i)}))},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:M,getPromise:function(){if(!this.promise){var t=this;this.promise=e((function(e,n){t.done((function(t){!1===t?n():e()}))}))}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick((function(){t._resolve(e)})))},_resolve:function(e){2!==this._state&&(w(this._doneCallbacks,(function(t){t(e)})),this._doneCallbacks.length=0,this._state=2)}},a}]},nn=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){var i=r||{};i.$$prepared||(i=ae(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(t.css(i.from),i.from=null);var a,o=new n;return{start:s,end:s};function s(){return e((function(){!function(){i.addClass&&(t.addClass(i.addClass),i.addClass=null);i.removeClass&&(t.removeClass(i.removeClass),i.removeClass=null);i.to&&(t.css(i.to),i.to=null)}(),a||o.complete(),a=!0})),o}}}]};function rn(e,t,n,r,i){var a=this,s=e.location,c=e.history,u=e.setTimeout,l=e.clearTimeout,f={},A=i(n);a.isMock=!1,a.$$completeOutstandingRequest=A.completeTask,a.$$incOutstandingRequestCount=A.incTaskCount,a.notifyWhenNoOutstandingRequests=A.notifyWhenNoPendingTasks;var h,p,d=s.href,g=t.find("base"),y=null,v=r.history?function(){try{return c.state}catch(e){}}:M;B(),a.url=function(t,n,i){if(T(i)&&(i=null),s!==e.location&&(s=e.location),c!==e.history&&(c=e.history),t){var o=p===i;if(t=ri(t).href,d===t&&(!r.history||o))return a;var u=d&&nr(d)===nr(t);return d=t,p=i,!r.history||u&&o?(u||(y=t),n?s.replace(t):u?s.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):s.href=t,s.href!==t&&(y=t)):(c[n?"replaceState":"pushState"](i,"",t),B()),y&&(y=t),a}return function(e){return e.replace(/#$/,"")}(y||s.href)},a.state=function(){return h};var m=[],b=!1;function I(){y=null,E()}var C=null;function B(){se(h=T(h=v())?null:h,C)&&(h=C),C=h,p=h}function E(){var e=p;B(),d===a.url()&&e===h||(d=a.url(),p=h,w(m,(function(e){e(a.url(),h)})))}a.onUrlChange=function(t){return b||(r.history&&o(e).on("popstate",I),o(e).on("hashchange",I),b=!0),m.push(t),t},a.$$applicationDestroyed=function(){o(e).off("hashchange popstate",I)},a.$$checkUrlChange=E,a.baseHref=function(){var e=g.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},a.defer=function(e,t,n){var r;return t=t||0,n=n||A.DEFAULT_TASK_TYPE,A.incTaskCount(n),r=u((function(){delete f[r],A.completeTask(e,n)}),t),f[r]=n,r},a.defer.cancel=function(e){if(f.hasOwnProperty(e)){var t=f[e];return delete f[e],l(e),A.completeTask(M,t),!0}return!1}}function an(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new rn(e,r,t,n,i)}]}function on(){this.$get=function(){var e={};function t(t,n){if(t in e)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var r=0,a=Q({},n,{id:t}),o=He(),s=n&&n.capacity||Number.MAX_VALUE,c=He(),u=null,l=null;return e[t]={put:function(e,t){if(!T(t)){if(s<Number.MAX_VALUE)f(c[e]||(c[e]={key:e}));return e in o||r++,o[e]=t,r>s&&this.remove(l.key),t}},get:function(e){if(s<Number.MAX_VALUE){var t=c[e];if(!t)return;f(t)}return o[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=c[e];if(!t)return;t===u&&(u=t.p),t===l&&(l=t.n),A(t.n,t.p),delete c[e]}e in o&&(delete o[e],r--)},removeAll:function(){o=He(),r=0,c=He(),u=l=null},destroy:function(){o=null,a=null,c=null,delete e[t]},info:function(){return Q({},a,{size:r})}};function f(e){e!==u&&(l?l===e&&(l=e.n):l=e,A(e.n,e.p),A(e,u),(u=e).n=null)}function A(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return w(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function sn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var cn=i("$compile");var un=new function(){};function ln(t,n){var r={},i=/^\s*directive:\s*([\w-]+)\s+(.*)$/,s=/(([\w-]+)(?::([^;]+))?;?)/,c=function(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),u=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,A=/^(on[a-z]+|formaction)$/,h=He();function p(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=He();return w(e,(function(e,a){if((e=e.trim())in h)i[a]=h[e];else{var o=e.match(r);if(!o)throw cn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,a,e,n?"controller bindings definition":"isolate scope definition");i[a]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||a},o[4]&&(h[e]=i[a])}})),i}function d(e,t){var n={isolateScope:null,bindToController:null};if(j(e.scope)&&(!0===e.bindToController?(n.bindToController=p(e.scope,t,!0),n.isolateScope={}):n.isolateScope=p(e.scope,t,!1)),j(e.bindToController)&&(n.bindToController=p(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw cn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(n,i){return Fe(n,"name"),Re(n,"directive"),U(n)?(!function(e){var t=e.charAt(0);if(!t||t!==f(t))throw cn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw cn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),Fe(i,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],t.factory(n+"Directive",["$injector","$exceptionHandler",function(e,t){var i=[];return w(r[n],(function(r,a){try{var o=e.invoke(r);Y(o)?o={compile:O(o)}:!o.compile&&o.link&&(o.compile=O(o.link)),o.priority=o.priority||0,o.index=a,o.name=o.name||n,o.require=function(e){var t=e.require||e.controller&&e.name;return!G(t)&&j(t)&&w(t,(function(e,n){var r=e.match(u);e.substring(r[0].length)||(t[n]=r[0]+n)})),t}(o),o.restrict=function(e,t){if(e&&(!U(e)||!/[EACM]/.test(e)))throw cn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(o.restrict,n),o.$$moduleName=r.$$moduleName,i.push(o)}catch(e){t(e)}})),i}])),r[n].push(i)):w(n,B(e)),this},this.component=function e(t,n){if(!U(t))return w(t,B(Ae(this,e))),this;var r=n.controller||function(){};function i(e){function t(t){return Y(t)||G(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=n.template||n.templateUrl?n.template:"",a={controller:r,controllerAs:mn(n.controller)||n.controllerAs||"$ctrl",template:t(i),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return w(n,(function(e,t){"$"===t.charAt(0)&&(a[t]=e)})),a}return w(n,(function(e,t){"$"===t.charAt(0)&&(i[t]=e,Y(r)&&(r[t]=e))})),i.$inject=["$injector"],this.directive(t,i)},this.aHrefSanitizationWhitelist=function(e){return H(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return H(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var y=!0;this.debugInfoEnabled=function(e){return H(e)?(y=e,this):y};var v=!1;this.strictComponentBindingsEnabled=function(e){return H(e)?(v=e,this):v};var m=10;this.onChangesTtl=function(e){return arguments.length?(m=e,this):m};var b=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(b=e,this):b};var I=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(I=e,this):I};var C=He();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in C&&C[r]!==n)throw cn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,C[r],n);return C[r]=n,this},function(){function e(e,t){w(t,(function(t){C[t.toLowerCase()]=e}))}e(jr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(jr.CSS,["*|style"]),e(jr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(jr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(jr.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,h,p,B,E,_,k,S){var x,D=/^\w/,O=e.document.createElement("div"),R=b,H=I,N=m;function L(){try{if(!--N)throw x=void 0,cn("infchng","{0} $onChanges() iterations reached. Aborting!\n",m);_.$apply((function(){for(var e=0,t=x.length;e<t;++e)try{x[e]()}catch(e){h(e)}x=void 0}))}finally{N++}}function K(e,t){if(!e)return e;if(!U(e))throw cn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Z(e),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,a=r.split(i),o=Math.floor(a.length/2),s=0;s<o;s++){var c=2*s;n+=k.getTrustedMediaUrl(Z(a[c])),n+=" "+Z(a[c+1])}var u=Z(a[2*s]).split(/\s/);return n+=k.getTrustedMediaUrl(Z(u[0])),2===u.length&&(n+=" "+Z(u[1])),n}function J(e,t){if(t){var n,r,i,a=Object.keys(t);for(n=0,r=a.length;n<r;n++)this[i=a[n]]=t[i]}else this.$attr={};this.$$element=e}function V(e,t){try{e.addClass(t)}catch(e){}}J.prototype={$normalize:pn,$addClass:function(e){e&&e.length>0&&S.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&S.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=dn(e,t);n&&n.length&&S.addClass(this.$$element,n);var r=dn(t,e);r&&r.length&&S.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i=St(this.$$element[0],e),a=Qt[e],o=e;i?(this.$$element.prop(e,t),r=i):a&&(this[a]=t,o=a),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=Pe(e,"-")),"img"===ne(this.$$element)&&"srcset"===e&&(this[e]=t=K(t,"$set('srcset', value)")),!1!==n&&(null===t||T(t)?this.$$element.removeAttr(r):D.test(r)?i&&!1===t?this.$$element.removeAttr(r):this.$$element.attr(r,t):function(e,t,n){O.innerHTML="<span "+t+">";var r=O.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}(this.$$element[0],r,t));var s=this.$$observers;s&&w(s[o],(function(e){try{e(t)}catch(e){h(e)}}))},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=He()),i=r[e]||(r[e]=[]);return i.push(t),_.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(e)||T(n[e])||t(n[e])})),function(){ie(i,t)}}};var W=n.startSymbol(),X=n.endSymbol(),ee="{{"===W&&"}}"===X?F:function(e){return e.replace(/\{\{/g,W).replace(/}}/g,X)},te=/^ng(Attr|Prop|On)([A-Z].*)$/,re=/^(.+)Start$/;return ae.$$addBindingInfo=y?function(e,t){var n=e.data("$binding")||[];G(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:M,ae.$$addBindingClass=y?function(e){V(e,"ng-binding")}:M,ae.$$addScopeInfo=y?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:M,ae.$$addScopeClass=y?function(e,t){V(e,t?"ng-isolate-scope":"ng-scope")}:M,ae.$$createComment=function(t,n){var r="";return y&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},ae;function ae(e,t,n,r,i){e instanceof o||(e=o(e));var a=ce(e,t,e,n,r,i);ae.$$addScopeClass(e);var s=null;return function(t,n,r){if(!e)throw cn("multilink","This element has already been linked.");Fe(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var c,u,l,f=(r=r||{}).parentBoundTranscludeFn,A=r.transcludeControllers,h=r.futureParentElement;if(f&&f.$$boundTransclude&&(f=f.$$boundTransclude),s||(u=(c=h)&&c[0],s=u&&"foreignobject"!==ne(u)&&g.call(u).match(/SVG/)?"svg":"html"),l="html"!==s?o(ke(s,o("<div></div>").append(e).html())):n?Et.clone.call(e):e,A)for(var p in A)l.data("$"+p+"Controller",A[p].instance);return ae.$$addScopeInfo(l,t),n&&n(l,t),a&&a(t,l,l,f),n||(e=a=null),l}}function ce(e,t,n,r,i,s){for(var c,u,l,f,A,h,p,d=[],g=G(e)||e instanceof o,y=0;y<e.length;y++)c=new J,11===a&&ue(e,y,g),(l=(u=he(e[y],[],c,0===y?r:void 0,i)).length?ye(u,e[y],c,t,n,null,[],[],s):null)&&l.scope&&ae.$$addScopeClass(c.$$element),A=l&&l.terminal||!(f=e[y].childNodes)||!f.length?null:ce(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||A)&&(d.push(y,l,A),h=!0,p=p||l),s=null;return h?function(e,n,r,i){var a,s,c,u,l,f,A,h,g;if(p){var y=n.length;for(g=new Array(y),l=0;l<d.length;l+=3)A=d[l],g[A]=n[A]}else g=n;for(l=0,f=d.length;l<f;)c=g[d[l++]],a=d[l++],s=d[l++],a?(a.scope?(u=e.$new(),ae.$$addScopeInfo(o(c),u)):u=e,h=a.transcludeOnThisElement?le(e,a.transclude,i):!a.templateOnThisElement&&i?i:!i&&t?le(e,t):null,a(s,u,c,r,h)):s&&s(e,c.childNodes,void 0,i)}:null}function ue(e,t,n){var r,i=e[t],a=i.parentNode;if(i.nodeType===Ne)for(;(r=a?i.nextSibling:e[t+1])&&r.nodeType===Ne;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function le(e,t,n){function r(r,i,a,o,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:a,futureParentElement:o})}var i=r.$$slots=He();for(var a in t.$$slots)t.$$slots[a]?i[a]=le(e,t.$$slots[a],n):i[a]=null;return r}function he(e,t,r,a,o){var c,u,l,f=e.nodeType,A=r.$attr;switch(f){case 1:Ie(t,pn(u=ne(e)),"E",a,o);for(var h,p,d,g,y,v=e.attributes,m=0,b=v&&v.length;m<b;m++){var I,w=!1,C=!1,B=!1,E=!1,_=!1;p=(h=v[m]).name,g=h.value,(y=(d=pn(p.toLowerCase())).match(te))?(B="Attr"===y[1],E="Prop"===y[1],_="On"===y[1],p=p.replace(An,"").toLowerCase().substr(4+y[1].length).replace(/_(.)/g,(function(e,t){return t.toUpperCase()}))):(I=d.match(re))&&we(I[1])&&(w=p,C=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6)),E||_?(r[d]=g,A[d]=h.name,E?Se(e,t,d,p):xe(t,d,p)):(A[d=pn(p.toLowerCase())]=p,!B&&r.hasOwnProperty(d)||(r[d]=g,St(e,d)&&(r[d]=!0)),De(e,t,g,d,B),Ie(t,d,"A",a,o,w,C))}if("input"===u&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!H)break;if(j(l=e.className)&&(l=l.animVal),U(l)&&""!==l)for(;c=s.exec(l);)Ie(t,d=pn(c[2]),"C",a,o)&&(r[d]=Z(c[3])),l=l.substr(c.index+c[0].length);break;case Ne:!function(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&ae.$$addBindingClass(t),function(e,t){var i=t.parent();n||ae.$$addBindingClass(i),ae.$$addBindingInfo(i,r.expressions),e.$watch(r,(function(e){t[0].nodeValue=e}))}}})}(t,e.nodeValue);break;case 8:if(!R)break;!function(e,t,n,r,a){try{var o=i.exec(e.nodeValue);if(o){var s=pn(o[1]);Ie(t,s,"M",r,a)&&(n[s]=Z(o[2]))}}catch(e){}}(e,t,r,a,o)}return t.sort(Ee),t}function pe(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw cn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1===e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return o(r)}function de(e,t,n){return function(r,i,a,o,s){return i=pe(i[0],t,n),e(r,i,a,o,s)}}function ge(e,t,n,r,i,a){var o;return e?ae(t,n,r,i,a):function(){return o||(o=ae(t,n,r,i,a),t=n=a=null),o.apply(this,arguments)}}function ye(t,n,r,i,a,s,c,u,l){l=l||{};for(var f,A,p,d,g,y=-Number.MAX_VALUE,v=l.newScopeDirective,m=l.controllerDirectives,b=l.newIsolateScopeDirective,I=l.templateDirective,C=l.nonTlbTranscludeDirective,B=!1,_=!1,k=l.hasElementTranscludeDirective,S=r.$$element=o(n),x=s,D=i,P=!1,M=!1,F=0,O=t.length;F<O;F++){var R=(f=t[F]).$$start,H=f.$$end;if(R&&(S=pe(n,R,H)),p=void 0,y>f.priority)break;if((g=f.scope)&&(f.templateUrl||(j(g)?(_e("new/isolated scope",b||v,f,S),b=f):_e("new/isolated scope",b,f,S)),v=v||f),A=f.name,!P&&(f.replace&&(f.templateUrl||f.template)||f.transclude&&!f.$$tlb)){for(var N,U=F+1;N=t[U++];)if(N.transclude&&!N.$$tlb||N.replace&&(N.templateUrl||N.template)){M=!0;break}P=!0}if(!f.templateUrl&&f.controller&&(m=m||He(),_e("'"+A+"' controller",m[A],f,S),m[A]=f),g=f.transclude)if(B=!0,f.$$tlb||(_e("transclusion",C,f,S),C=f),"element"===g)k=!0,y=f.priority,p=S,S=r.$$element=o(ae.$$createComment(A,r[A])),n=S[0],Me(a,fe(p),n),D=ge(M,p,i,y,x&&x.name,{nonTlbTranscludeDirective:C});else{var L=He();if(j(g)){p=e.document.createDocumentFragment();var K=He(),$=He();for(var V in w(g,(function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,K[e]=t,L[t]=null,$[t]=n})),w(S.contents(),(function(t){var n=K[pn(ne(t))];n?($[n]=!0,L[n]=L[n]||e.document.createDocumentFragment(),L[n].appendChild(t)):p.appendChild(t)})),w($,(function(e,t){if(!e)throw cn("reqslot","Required transclusion slot `{0}` was not filled.",t)})),L)if(L[V]){var q=o(L[V].childNodes);L[V]=ge(M,q,i)}p=o(p.childNodes)}else p=o(ct(n)).contents();S.empty(),(D=ge(M,p,i,void 0,void 0,{needsNewScope:f.$$isolateScope||f.$$newScope})).$$slots=L}if(f.template)if(_=!0,_e("template",I,f,S),I=f,g=Y(f.template)?f.template(S,r):f.template,g=ee(g),f.replace){if(x=f,p=rt(g)?[]:gn(ke(f.templateNamespace,Z(g))),n=p[0],1!==p.length||1!==n.nodeType)throw cn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",A,"");Me(a,S,n);var W={$attr:{}},X=he(n,[],W),te=t.splice(F+1,t.length-(F+1));(b||v)&&me(X,b,v),t=t.concat(X).concat(te),Ce(r,W),O=t.length}else S.html(g);if(f.templateUrl)_=!0,_e("template",I,f,S),I=f,f.replace&&(x=f),oe=Be(t.splice(F,t.length-F),S,r,a,B&&D,c,u,{controllerDirectives:m,newScopeDirective:v!==f&&v,newIsolateScopeDirective:b,templateDirective:I,nonTlbTranscludeDirective:C}),O=t.length;else if(f.compile)try{d=f.compile(S,r,D);var re=f.$$originalDirective||f;Y(d)?ie(null,Ae(re,d),R,H):d&&ie(Ae(re,d.pre),Ae(re,d.post),R,H)}catch(e){h(e,be(S))}f.terminal&&(oe.terminal=!0,y=Math.max(y,f.priority))}return oe.scope=v&&!0===v.scope,oe.transcludeOnThisElement=B,oe.templateOnThisElement=_,oe.transclude=D,l.hasElementTranscludeDirective=k,oe;function ie(e,t,n,r){e&&(n&&(e=de(e,n,r)),e.require=f.require,e.directiveName=A,(b===f||f.$$isolateScope)&&(e=Oe(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=de(t,n,r)),t.require=f.require,t.directiveName=A,(b===f||f.$$isolateScope)&&(t=Oe(t,{isolateScope:!0})),u.push(t))}function oe(e,t,i,a,s){var l,f,A,p,d,g,y,C,B,_;for(var S in n===i?(B=r,C=r.$$element):B=new J(C=o(i),r),d=t,b?p=t.$new(!0):v&&(d=t.$parent),s&&((y=function(e,t,n,r){var i;z(e)||(r=n,n=t,t=e,e=void 0);k&&(i=g);n||(n=k?C.parent():C);if(!r)return s(e,t,i,n,M);var a=s.$$slots[r];if(a)return a(e,t,i,n,M);if(T(a))throw cn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,be(C))}).$$boundTransclude=s,y.isSlotFilled=function(e){return!!s.$$slots[e]}),m&&(g=function(e,t,n,r,i,a,o){var s=He();for(var c in r){var u=r[c],l={$scope:u===o||u.$$isolateScope?i:a,$element:e,$attrs:t,$transclude:n},f=u.controller;"@"===f&&(f=t[u.name]);var A=E(f,l,!0,u.controllerAs);s[u.name]=A,e.data("$"+u.name+"Controller",A.instance)}return s}(C,B,y,m,p,t,b)),b&&(ae.$$addScopeInfo(C,p,!0,!(I&&(I===b||I===b.$$originalDirective))),ae.$$addScopeClass(C,!0),p.$$isolateBindings=b.$$isolateBindings,(_=je(t,B,p,p.$$isolateBindings,b)).removeWatches&&p.$on("$destroy",_.removeWatches)),g){var x=m[S],D=g[S],P=x.$$bindings.bindToController;D.instance=D(),C.data("$"+x.name+"Controller",D.instance),D.bindingInfo=je(d,B,D.instance,P,x)}for(w(m,(function(e,t){var n=e.require;e.bindToController&&!G(n)&&j(n)&&Q(g[t].instance,ve(t,n,C,g))})),w(g,(function(e){var t=e.instance;if(Y(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){h(e)}if(Y(t.$onInit))try{t.$onInit()}catch(e){h(e)}Y(t.$doCheck)&&(d.$watch((function(){t.$doCheck()})),t.$doCheck()),Y(t.$onDestroy)&&d.$on("$destroy",(function(){t.$onDestroy()}))})),l=0,f=c.length;l<f;l++)Re(A=c[l],A.isolateScope?p:t,C,B,A.require&&ve(A.directiveName,A.require,C,g),y);var M=t;for(b&&(b.template||null===b.templateUrl)&&(M=p),e&&e(M,i.childNodes,void 0,s),l=u.length-1;l>=0;l--)Re(A=u[l],A.isolateScope?p:t,C,B,A.require&&ve(A.directiveName,A.require,C,g),y);w(g,(function(e){var t=e.instance;Y(t.$postLink)&&t.$postLink()}))}}function ve(e,t,n,r){var i;if(U(t)){var a=t.match(u),o=t.substring(a[0].length),s=a[1]||a[3],c="?"===a[2];if("^^"===s?n=n.parent():i=(i=r&&r[o])&&i.instance,!i){var l="$"+o+"Controller";i="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(l):n.data(l)}if(!i&&!c)throw cn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,e)}else if(G(t)){i=[];for(var f=0,A=t.length;f<A;f++)i[f]=ve(e,t[f],n,r)}else j(t)&&(i={},w(t,(function(t,a){i[a]=ve(e,t,n,r)})));return i||null}function me(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=P(e[r],{$$isolateScope:t,$$newScope:n})}function Ie(e,n,i,a,o,s,c){if(n===o)return null;var u=null;if(r.hasOwnProperty(n))for(var l,f=t.get(n+"Directive"),A=0,h=f.length;A<h;A++)if(l=f[A],(T(a)||a>l.priority)&&-1!==l.restrict.indexOf(i)){if(s&&(l=P(l,{$$start:s,$$end:c})),!l.$$bindings){var p=l.$$bindings=d(l,l.name);j(p.isolateScope)&&(l.$$isolateBindings=p.isolateScope)}e.push(l),u=l}return u}function we(e){if(r.hasOwnProperty(e))for(var n=t.get(e+"Directive"),i=0,a=n.length;i<a;i++)if(n[i].multiElement)return!0;return!1}function Ce(e,t){var n=t.$attr,r=e.$attr;w(e,(function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))})),w(t,(function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function Be(e,t,n,r,i,a,s,c){var u,l,f=[],A=t[0],d=e.shift(),g=P(d,{templateUrl:null,transclude:null,replace:null,$$originalDirective:d}),y=Y(d.templateUrl)?d.templateUrl(t,n):d.templateUrl,v=d.templateNamespace;return t.empty(),p(y).then((function(h){var p,m,b,I;if(h=ee(h),d.replace){if(b=rt(h)?[]:gn(ke(v,Z(h))),p=b[0],1!==b.length||1!==p.nodeType)throw cn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",d.name,y);m={$attr:{}},Me(r,t,p);var C=he(p,[],m);j(d.scope)&&me(C,!0),e=C.concat(e),Ce(n,m)}else p=A,t.html(h);for(e.unshift(g),u=ye(e,p,n,i,t,d,a,s,c),w(r,(function(e,n){e===p&&(r[n]=t[0])})),l=ce(t[0].childNodes,i);f.length;){var B=f.shift(),E=f.shift(),_=f.shift(),k=f.shift(),Q=t[0];if(!B.$$destroyed){if(E!==A){var S=E.className;c.hasElementTranscludeDirective&&d.replace||(Q=ct(p)),Me(_,o(E),Q),V(o(Q),S)}I=u.transcludeOnThisElement?le(B,u.transclude,k):k,u(l,B,Q,r,I)}}f=null})).catch((function(e){$(e)&&h(e)})),function(e,t,n,r,i){var a=i;t.$$destroyed||(f?f.push(t,n,r,a):(u.transcludeOnThisElement&&(a=le(t,u.transclude,i)),u(l,t,n,r,a)))}}function Ee(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function _e(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw cn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,be(r))}function ke(t,n){switch(t=f(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function Qe(e){return K(k.valueOf(e),"ng-prop-srcset")}function Se(e,t,n,r){if(A.test(r))throw cn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=ne(e),a=function(e,t){var n=t.toLowerCase();return C[e+"|"+n]||C["*|"+n]}(i,r),o=F;"srcset"!==r||"img"!==i&&"source"!==i?a&&(o=k.getTrusted.bind(k,a)):o=Qe,t.push({priority:100,compile:function(e,t){var i=B(t[n]),a=B(t[n],(function(e){return k.valueOf(e)}));return{pre:function(e,t){function n(){var n=i(e);t[0][r]=o(n)}n(),e.$watch(a,n)}}}})}function xe(e,t,n){e.push(_a(B,_,h,t,n,!1))}function De(e,t,r,i,a){var o=ne(e),s=function(e,t){return"srcdoc"===t?k.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?k.RESOURCE_URL:k.MEDIA_URL:"xlinkHref"===t?"image"===e?k.MEDIA_URL:"a"===e?k.URL:k.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?k.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:k.URL}(o,i),u=!a,l=c[i]||a,f=n(r,u,s,l);if(f){if("multiple"===i&&"select"===o)throw cn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",be(e));if(A.test(i))throw cn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,a){var o=a.$$observers||(a.$$observers=He()),c=a[i];c!==r&&(f=c&&n(c,!0,s,l),r=c),f&&(a[i]=f(e),(o[i]||(o[i]=[])).$$inter=!0,(a.$$observers&&a.$$observers[i].$$scope||e).$watch(f,(function(e,t){"class"===i&&e!==t?a.$updateClass(e,t):a.$set(i,e)})))}}}})}}function Me(t,n,r){var i,a,s=n[0],c=n.length,u=s.parentNode;if(t)for(i=0,a=t.length;i<a;i++)if(t[i]===s){t[i++]=r;for(var l=i,f=l+c-1,A=t.length;l<A;l++,f++)f<A?t[l]=t[f]:delete t[l];t.length-=c-1,t.context===s&&(t.context=r);break}u&&u.replaceChild(r,s);var h=e.document.createDocumentFragment();for(i=0;i<c;i++)h.appendChild(n[i]);for(o.hasData(s)&&(o.data(r,o.data(s)),o(s).off("$destroy")),o.cleanData(h.querySelectorAll("*")),i=1;i<c;i++)delete n[i];n[0]=r,n.length=1}function Oe(e,t){return Q((function(){return e.apply(null,arguments)}),e,t)}function Re(e,t,n,r,i,a){try{e(t,n,r,i,a)}catch(e){h(e,be(n))}}function Te(e,t){if(v)throw cn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function je(e,t,r,i,a){var o,s=[],c={};function u(t,n,i){Y(r.$onChanges)&&!oe(n,i)&&(x||(e.$$postDigest(L),x=[]),o||(o={},x.push(f)),o[t]&&(i=o[t].previousValue),o[t]=new fn(i,n))}function f(){r.$onChanges(o),o=void 0}return w(i,(function(i,o){var f,A,h,p,d,g=i.attrName,y=i.optional;switch(i.mode){case"@":y||l.call(t,g)||(Te(g,a.name),r[o]=t[g]=void 0),d=t.$observe(g,(function(e){if(U(e)||q(e)){var t=r[o];u(o,e,t),r[o]=e}})),t.$$observers[g].$$scope=e,U(f=t[g])?r[o]=n(f)(e):q(f)&&(r[o]=f),c[o]=new fn(un,r[o]),s.push(d);break;case"=":if(!l.call(t,g)){if(y)break;Te(g,a.name),t[g]=void 0}if(y&&!t[g])break;A=B(t[g]),p=A.literal?se:oe,h=A.assign||function(){throw f=r[o]=A(e),cn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[g],g,a.name)},f=r[o]=A(e);var v=function(t){return p(t,r[o])||(p(t,f)?h(e,t=r[o]):r[o]=t),f=t};v.$stateful=!0,d=i.collection?e.$watchCollection(t[g],v):e.$watch(B(t[g],v),null,A.literal),s.push(d);break;case"<":if(!l.call(t,g)){if(y)break;Te(g,a.name),t[g]=void 0}if(y&&!t[g])break;var m=(A=B(t[g])).literal,b=r[o]=A(e);c[o]=new fn(un,r[o]),d=e[i.collection?"$watchCollection":"$watch"](A,(function(e,t){if(t===e){if(t===b||m&&se(t,b))return;t=b}u(o,e,t),r[o]=e})),s.push(d);break;case"&":if(y||l.call(t,g)||Te(g,a.name),(A=t.hasOwnProperty(g)?B(t[g]):M)===M&&y)break;r[o]=function(t){return A(e,t)}}})),{initialChanges:c,removeWatches:s.length&&function(){for(var e=0,t=s.length;e<t;++e)s[e]()}}}}]}function fn(e,t){this.previousValue=e,this.currentValue=t}ln.$inject=["$provide","$$sanitizeUriProvider"],fn.prototype.isFirstChange=function(){return this.previousValue===un};var An=/^((?:x|data)[:\-_])/i,hn=/[:\-_]+(.)/g;function pn(e){return e.replace(An,"").replace(hn,(function(e,t,n){return n?t.toUpperCase():t}))}function dn(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var a=0;a<r.length;a++){for(var o=r[a],s=0;s<i.length;s++)if(o===i[s])continue e;n+=(n.length>0?" ":"")+o}return n}function gn(e){var t=(e=o(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(8===n.nodeType||n.nodeType===Ne&&""===n.nodeValue.trim())&&p.call(e,t,1)}return e}var yn=i("$controller"),vn=/^(\S+)(\s+as\s+([\w$]+))?$/;function mn(e,t){if(t&&U(t))return t;if(U(e)){var n=vn.exec(e);if(n)return n[3]}}function bn(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){Re(t,"controller"),j(t)?Q(e,t):e[t]=n},this.$get=["$injector",function(t){return function(r,i,a,o){var s,c,u,l;if(a=!0===a,o&&U(o)&&(l=o),U(r)){if(!(c=r.match(vn)))throw yn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(u=c[1],l=l||c[3],!(r=e.hasOwnProperty(u)?e[u]:function(e,t,n){if(!t)return e;for(var r,i=t.split("."),a=e,o=i.length,s=0;s<o;s++)r=i[s],e&&(e=(a=e)[r]);return!n&&Y(e)?Ae(a,e):e}(i.$scope,u,!0)))throw yn("ctrlreg","The controller with the name '{0}' is not registered.",u);Oe(r,u,!0)}if(a){var f=(G(r)?r[r.length-1]:r).prototype;return s=Object.create(f||null),l&&n(i,l,s,u||r.name),Q((function(){var e=t.invoke(r,s,i,u);return e!==s&&(j(e)||Y(e))&&(s=e,l&&n(i,l,s,u||r.name)),s}),{instance:s,identifier:l})}return s=t.instantiate(r,i,u),l&&n(i,l,s,u||r.name),s};function n(e,t,n,r){if(!e||!j(e.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n}}]}function In(){this.$get=["$window",function(e){return o(e.document)}]}function wn(){this.$get=["$document","$rootScope",function(e,t){var n=e[0],r=n&&n.hidden;function i(){r=n.hidden}return e.on("visibilitychange",i),t.$on("$destroy",(function(){e.off("visibilitychange",i)})),function(){return r}}]}function Cn(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var Bn=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof o&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},En={"Content-Type":"application/json;charset=utf-8"},_n=/^\[|^\{(?!\{)/,kn={"[":/]$/,"{":/}$/},Qn=/^\)]\}',?\n/,Sn=i("$http");function xn(e){return j(e)?K(e)?e.toISOString():pe(e):e}function Dn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return C(e,(function(e,n){null===e||T(e)||Y(e)||(G(e)?w(e,(function(e){t.push(Be(n)+"="+Be(xn(e)))})):t.push(Be(n)+"="+Be(xn(e))))})),t.join("&")}}}function Pn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,r,i){G(n)?w(n,(function(t,n){e(t,r+"["+(j(t)?n:"")+"]")})):j(n)&&!K(n)?C(n,(function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))})):(Y(n)&&(n=n()),t.push(Be(r)+"="+(null==n?"":Be(xn(n)))))}(e,"",!0),t.join("&")}}}function Mn(e,t){if(U(e)){var n=e.replace(Qn,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf("application/json");if(i||(o=(a=n).match(_n))&&kn[o[0]].test(a))try{e=de(n)}catch(t){if(!i)return e;throw Sn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var a,o;return e}function Fn(e){var t,n=He();function r(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return U(e)?w(e.split("\n"),(function(e){t=e.indexOf(":"),r(f(Z(e.substr(0,t))),Z(e.substr(t+1)))})):j(e)&&w(e,(function(e,t){r(f(t),Z(e))})),n}function On(e){var t;return function(n){if(t||(t=Fn(e)),n){var r=t[f(n)];return void 0===r&&(r=null),r}return t}}function Rn(e,t,n,r){return Y(r)?r(e,t,n):(w(r,(function(r){e=r(e,t,n)})),e)}function Tn(e){return 200<=e&&e<300}function Hn(){var e=this.defaults={transformResponse:[Mn],transformRequest:[function(e){return!j(e)||(t=e,"[object File]"===g.call(t))||function(e){return"[object Blob]"===g.call(e)}(e)||function(e){return"[object FormData]"===g.call(e)}(e)?e:pe(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ue(En),put:Ue(En),patch:Ue(En)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return H(e)?(t=!!e,this):t};var n=this.interceptors=[],r=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(a,o,s,c,u,l,h,p){var d=c("$http");e.paramSerializer=U(e.paramSerializer)?h.get(e.paramSerializer):e.paramSerializer;var g=[];w(n,(function(e){g.unshift(U(e)?h.get(e):h.invoke(e))}));var y,v=(y=[ti].concat(r.map(ri)),function(e){var t=ri(e);return y.some(ii.bind(null,t))});function m(n){if(!j(n))throw i("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!U(p.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var r=Q({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);r.headers=function(t){var n,r,i,a=e.headers,o=Q({},t.headers);a=Q({},a.common,a[f(t.method)]);e:for(n in a){for(i in r=f(n),o)if(f(i)===r)continue e;o[n]=a[n]}return function(e,t){var n,r={};return w(e,(function(e,i){Y(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e})),r}(o,Ue(t))}(n),r.method=A(r.method),r.paramSerializer=U(r.paramSerializer)?h.get(r.paramSerializer):r.paramSerializer,a.$$incOutstandingRequestCount("$http");var c=[],y=[],b=l.resolve(r);return w(g,(function(e){(e.request||e.requestError)&&c.unshift(e.request,e.requestError),(e.response||e.responseError)&&y.push(e.response,e.responseError)})),b=I(b,c),b=(b=I(b=b.then((function(n){var r=n.headers,i=Rn(n.data,On(r),void 0,n.transformRequest);T(i)&&w(r,(function(e,t){"content-type"===f(t)&&delete r[t]}));T(n.withCredentials)&&!T(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,r){var i,a,c=l.defer(),A=c.promise,h=n.headers,g="jsonp"===f(n.method),y=n.url;g?y=p.getTrustedResourceUrl(y):U(y)||(y=p.valueOf(y));y=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}(y,n.paramSerializer(n.params)),g&&(y=function(e,t){var n=e.split("?");if(n.length>2)throw Sn("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return w(we(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw Sn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw Sn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)})),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(y,n.jsonpCallbackParam));m.pendingRequests.push(n),A.then(E,E),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=j(n.cache)?n.cache:j(e.cache)?e.cache:d);i&&(H(a=i.get(y))?W(a)?a.then(B,B):G(a)?C(a[1],a[0],Ue(a[2]),a[3],a[4]):C(a,200,{},"OK","complete"):i.put(y,A));if(T(a)){var b=v(n.url)?s()[n.xsrfCookieName||e.xsrfCookieName]:void 0;b&&(h[n.xsrfHeaderName||e.xsrfHeaderName]=b),o(n.method,y,r,(function(e,n,r,a,o){i&&(Tn(e)?i.put(y,[e,n,Fn(r),a,o]):i.remove(y));function s(){C(n,e,r,a,o)}t?u.$applyAsync(s):(s(),u.$$phase||u.$apply())}),h,n.timeout,n.withCredentials,n.responseType,I(n.eventHandlers),I(n.uploadEventHandlers))}return A;function I(e){if(e){var n={};return w(e,(function(e,r){n[r]=function(n){function r(){e(n)}t?u.$applyAsync(r):u.$$phase?r():u.$apply(r)}})),n}}function C(e,t,r,i,a){(Tn(t=t>=-1?t:0)?c.resolve:c.reject)({data:e,status:t,headers:On(r),config:n,statusText:i,xhrStatus:a})}function B(e){C(e.data,e.status,Ue(e.headers()),e.statusText,e.xhrStatus)}function E(){var e=m.pendingRequests.indexOf(n);-1!==e&&m.pendingRequests.splice(e,1)}}(n,i).then(C,C)})),y)).finally((function(){a.$$completeOutstandingRequest(M,"$http")}));function I(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],a=t[n++];e=e.then(i,a)}return t.length=0,e}function C(e){var t=Q({},e);return t.data=Rn(e.data,e.headers,e.status,r.transformResponse),Tn(e.status)?t:l.reject(t)}}return m.pendingRequests=[],function(e){w(arguments,(function(e){m[e]=function(t,n){return m(Q({},n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){w(arguments,(function(e){m[e]=function(t,n,r){return m(Q({},r||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),m.defaults=e,m}]}function jn(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Nn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return function(e,t,n,r,i){return function(a,o,s,c,u,l,A,h,p,d){if(o=o||e.url(),"jsonp"===f(a))var g=r.createCallback(o),y=function(e,t,n){e=e.replace("JSON_CALLBACK",t);var a=i.createElement("script"),o=null;return a.type="text/javascript",a.src=e,a.async=!0,o=function(e){a.removeEventListener("load",o),a.removeEventListener("error",o),i.body.removeChild(a),a=null;var s=-1,c="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),c=e.type,s="error"===e.type?404:200),n&&n(s,c)},a.addEventListener("load",o),a.addEventListener("error",o),i.body.appendChild(a),o}(o,g,(function(e,t){var n=200===e&&r.getResponse(g);C(c,e,n,"",t,"complete"),r.removeCallback(g)}));else{var v=t(a,o),m=!1;v.open(a,o,!0),w(u,(function(e,t){H(e)&&v.setRequestHeader(t,e)})),v.onload=function(){var e=v.statusText||"",t="response"in v?v.response:v.responseText,n=1223===v.status?204:v.status;0===n&&(n=t?200:"file"===ri(o).protocol?404:0),C(c,n,t,v.getAllResponseHeaders(),e,"complete")};if(v.onerror=function(){C(c,-1,null,null,"","error")},v.ontimeout=function(){C(c,-1,null,null,"","timeout")},v.onabort=function(){C(c,-1,null,null,"",m?"timeout":"abort")},w(p,(function(e,t){v.addEventListener(t,e)})),w(d,(function(e,t){v.upload.addEventListener(t,e)})),A&&(v.withCredentials=!0),h)try{v.responseType=h}catch(e){if("json"!==h)throw e}v.send(T(s)?null:s)}if(l>0)var b=n((function(){I("timeout")}),l);else W(l)&&l.then((function(){I(H(l.$$timeoutId)?"timeout":"abort")}));function I(e){m="timeout"===e,y&&y(),v&&v.abort()}function C(e,t,r,i,a,o){H(b)&&n.cancel(b),y=v=null,e(t,r,i,a,o)}}}(e,r,e.defer,t,n[0])}]}var Un=m.$interpolateMinErr=i("$interpolate");function Ln(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var a=e.length,o=t.length,s=new RegExp(e.replace(/./g,u),"g"),c=new RegExp(t.replace(/./g,u),"g");function u(e){return"\\\\\\"+e}function l(n){return n.replace(s,e).replace(c,t)}function f(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function A(s,c,u,A){var h=u===i.URL||u===i.MEDIA_URL;if(!s.length||-1===s.indexOf(e)){if(c)return;var p=l(s);h&&(p=i.getTrusted(u,p));var d=O(p);return d.exp=s,d.expressions=[],d.$$watchDelegate=f,d}A=!!A;for(var g,y,v,m,b,I=0,w=[],C=s.length,B=[],E=[];I<C;){if(-1===(g=s.indexOf(e,I))||-1===(y=s.indexOf(t,g+a))){I!==C&&B.push(l(s.substring(I)));break}I!==g&&B.push(l(s.substring(I,g))),m=s.substring(g+a,y),w.push(m),I=y+o,E.push(B.length),B.push("")}b=1===B.length&&1===E.length;var _=h&&b?void 0:function(e){try{return e=u&&!h?i.getTrusted(u,e):i.valueOf(e),A&&!H(e)?e:je(e)}catch(e){r(Un.interr(s,e))}};if(v=w.map((function(e){return n(e,_)})),!c||w.length){var k=function(e){for(var t=0,n=w.length;t<n;t++){if(A&&T(e[t]))return;B[E[t]]=e[t]}return h?i.getTrusted(u,b?B[0]:B.join("")):(u&&B.length>1&&Un.throwNoconcat(s),B.join(""))};return Q((function(e){var t=0,n=w.length,i=new Array(n);try{for(;t<n;t++)i[t]=v[t](e);return k(i)}catch(e){r(Un.interr(s,e))}}),{exp:s,expressions:w,$$watchDelegate:function(e,t){var n;return e.$watchGroup(v,(function(r,i){var a=k(r);t.call(this,a,r!==i?n:a,e),n=a}))}})}}return A.startSymbol=function(){return e},A.endSymbol=function(){return t},A}]}Un.throwNoconcat=function(e){throw Un("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},Un.interr=function(e,t){return Un("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Kn=i("$interval");function Gn(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e){t.clearInterval(e),delete n[e]},i=e((function(e,r,i){var a=t.setInterval(e,r);return n[a]=i,a}),r);return i.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Kn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,i=n[t];return Fr(i.promise),i.reject("canceled"),r(t),!0},i}]}function $n(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,a){return function(o,s,c,u){var l=arguments.length>4,f=l?fe(arguments,4):[],A=0,h=H(u)&&!u,p=(h?n:t).defer(),d=p.promise;function g(){l?o.apply(null,f):o(A)}function y(){h?e.defer(g):r.$evalAsync(g),p.notify(A++),c>0&&A>=c&&(p.resolve(A),a(d.$$intervalId)),h||r.$apply()}return c=H(c)?c:0,d.$$intervalId=i(y,s,p,h),d}}}]}var Yn=function(){this.$get=function(){var e=m.callbacks,t={};return{createCallback:function(n){var r="_"+(e.$$counter++).toString(36),i="angular.callbacks."+r,a=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(r);return t[i]=e[r]=a,i},wasCalled:function(e){return t[e].called},getResponse:function(e){return t[e].data},removeCallback:function(n){var r=t[n];delete e[r.id],delete t[n]}}}},Jn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Vn={http:80,https:443,ftp:21},zn=i("$location");function qn(e,t,n){var r,i=(r=[],w(t,(function(e,t){G(e)?w(e,(function(e){r.push(Be(t,!0)+(!0===e?"":"="+Be(e,!0)))})):r.push(Be(t,!0)+(!0===e?"":"="+Be(e,!0)))})),r.length?r.join("&"):""),a=n?"#"+Ce(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Ce(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(i?"?"+i:"")+a}function Wn(e,t){var n=ri(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=x(n.port)||Vn[n.protocol]||null}var Xn=/^\s*[\\/]{2,}/;function Zn(e,t,n){if(Xn.test(e))throw zn("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=ri(e),a=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=function(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(a,n),t.$$search=we(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function er(e,t){return e.slice(0,t.length)===t}function tr(e,t){if(er(t,e))return t.substr(e.length)}function nr(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function rr(e,t,n){this.$$html5=!0,n=n||"",Wn(e,this),this.$$parse=function(e){var n=tr(t,e);if(!U(n))throw zn("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Zn(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(H(a=tr(e,r))?(o=a,s=n&&H(a=tr(n,a))?t+(tr("/",a)||a):e+o):H(a=tr(t,r))?s=t+a:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s);var a,o,s}}function ir(e,t,n){Wn(e,this),this.$$parse=function(r){var i,a=tr(e,r)||tr(t,r);T(a)||"#"!==a.charAt(0)?this.$$html5?i=a:(i="",T(a)&&(e=r,this.replace())):T(i=tr(n,a))&&(i=a),Zn(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;er(t,n)&&(t=t.replace(n,""));if(i.exec(t))return e;return(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return nr(e)===nr(t)&&(this.$$parse(t),!0)}}function ar(e,t,n){this.$$html5=!0,ir.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e===nr(r)?a=r:(o=tr(t,r))?a=e+n+o:t===r+"/"&&(a=t),a&&this.$$parse(a),!!a);var a,o},this.$$normalizeUrl=function(t){return e+n+t}}var or={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=qn(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:sr("$$absUrl"),url:function(e){if(T(e))return this.$$url;var t=Jn.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:sr("$$protocol"),host:sr("$$host"),port:sr("$$port"),path:cr("$$path",(function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e})),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(U(e)||L(e))e=e.toString(),this.$$search=we(e);else{if(!j(e))throw zn("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");w(e=ae(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:T(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:cr("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};function sr(e){return function(){return this[e]}}function cr(e,t){return function(n){return T(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function ur(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return H(t)?(e=t,this):e},this.html5Mode=function(e){return q(e)?(t.enabled=e,this):j(e)?(q(e.enabled)&&(t.enabled=e.enabled),q(e.requireBase)&&(t.requireBase=e.requireBase),(q(e.rewriteLinks)||U(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,a,s){var c,u,l,f,A=r.baseHref(),h=r.url();if(t.enabled){if(!A&&t.requireBase)throw zn("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(f=h).substring(0,f.indexOf("/",f.indexOf("//")+2))+(A||"/"),u=i.history?rr:ar}else l=nr(h),u=ir;var p=function(e){return e.substr(0,nr(e).lastIndexOf("/")+1)}(l);(c=new u(l,p,"#"+e)).$$parseLinkUrl(h,h),c.$$state=r.state();var d=/^\s*(javascript|mailto):/i;function g(e,t,n){var i=c.url(),a=c.$$state;try{r.url(e,t,n),c.$$state=r.state()}catch(e){throw c.url(i),c.$$state=a,e}}a.on("click",(function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=o(e.target);"a"!==ne(s[0]);)if(s[0]===a[0]||!(s=s.parent())[0])return;if(!U(i)||!T(s.attr(i))){var u=s.prop("href"),l=s.attr("href")||s.attr("xlink:href");j(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=ri(u.animVal).href),d.test(u)||!u||s.attr("target")||e.isDefaultPrevented()||c.$$parseLinkUrl(u,l)&&(e.preventDefault(),c.absUrl()!==r.url()&&n.$apply())}}})),c.absUrl()!==h&&r.url(c.absUrl(),!0);var y=!0;return r.onUrlChange((function(e,t){er(e,p)?(n.$evalAsync((function(){var r,i=c.absUrl(),a=c.$$state;c.$$parse(e),c.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,a).defaultPrevented,c.absUrl()===e&&(r?(c.$$parse(i),c.$$state=a,g(i,!1,a)):(y=!1,v(i,a)))})),n.$$phase||n.$digest()):s.location.href=e})),n.$watch((function(){if(y||c.$$urlUpdatedByLocation){c.$$urlUpdatedByLocation=!1;var e=r.url(),t=c.absUrl(),a=r.state(),o=c.$$replace,s=!((u=e)===(l=t)||ri(u).href===ri(l).href)||c.$$html5&&i.history&&a!==c.$$state;(y||s)&&(y=!1,n.$evalAsync((function(){var t=c.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,c.$$state,a).defaultPrevented;c.absUrl()===t&&(r?(c.$$parse(e),c.$$state=a):(s&&g(t,o,a===c.$$state?null:c.$$state),v(e,a)))})))}var u,l;c.$$replace=!1})),c;function v(e,t){n.$broadcast("$locationChangeSuccess",c.absUrl(),e,c.$$state,t)}}]}function lr(){var e=!0,t=this;this.debugEnabled=function(t){return H(t)?(e=t,this):e},this.$get=["$window",function(n){var r,i=a||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:s("log"),info:s("info"),warn:s("warn"),error:s("error"),debug:(r=s("debug"),function(){e&&r.apply(t,arguments)})};function o(e){return $(e)&&(e.stack&&i?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function s(e){var t=n.console||{},r=t[e]||t.log||M;return function(){var e=[];return w(arguments,(function(t){e.push(o(t))})),Function.prototype.apply.call(r,t,e)}}}]}w([ar,ir,rr],(function(e){e.prototype=Object.create(or),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==rr||!this.$$html5)throw zn("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=T(t)?null:t,this.$$urlUpdatedByLocation=!0,this}}));var fr=i("$parse"),Ar={}.constructor.prototype.valueOf;function hr(e){return e+""}var pr=He();w("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(e){pr[e]=!0}));var dr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},gr=function(e){this.options=e};gr.prototype={constructor:gr,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=pr[t],a=pr[n],o=pr[r];if(i||a||o){var s=o?r:a?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=H(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw fr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=f(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var a=this.text.charAt(this.index);if(r+=a,i){if("u"===a){var o=this.text.substring(this.index+1,this.index+5);o.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))}else{n+=dr[a]||a}i=!1}else if("\\"===a)i=!0;else{if(a===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=a}this.index++}this.throwError("Unterminated quote",t)}};var yr=function(e,t){this.lexer=e,this.options=t};function vr(e,t){return void 0!==e?e:t}function mr(e,t){return void 0===e?t:void 0===t?e:e+t}yr.Program="Program",yr.ExpressionStatement="ExpressionStatement",yr.AssignmentExpression="AssignmentExpression",yr.ConditionalExpression="ConditionalExpression",yr.LogicalExpression="LogicalExpression",yr.BinaryExpression="BinaryExpression",yr.UnaryExpression="UnaryExpression",yr.CallExpression="CallExpression",yr.MemberExpression="MemberExpression",yr.Identifier="Identifier",yr.Literal="Literal",yr.ArrayExpression="ArrayExpression",yr.Property="Property",yr.ObjectExpression="ObjectExpression",yr.ThisExpression="ThisExpression",yr.LocalsExpression="LocalsExpression",yr.NGValueParameter="NGValueParameter",yr.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:yr.Program,body:e}},expressionStatement:function(){return{type:yr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!wr(e))throw fr("lval","Trying to assign a value to a non l-value");e={type:yr.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:yr.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:yr.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:yr.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:yr.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:yr.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:yr.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:yr.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:yr.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=ae(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:yr.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:yr.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:yr.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:yr.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:yr.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:yr.Identifier,name:e.text}},constant:function(){return{type:yr.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:yr.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:yr.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:yr.ObjectExpression,properties:t}},throwError:function(e,t){throw fr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw fr("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw fr("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var a=this.tokens[e],o=a.text;if(o===t||o===n||o===r||o===i||!t&&!n&&!r&&!i)return a}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:yr.ThisExpression},$locals:{type:yr.LocalsExpression}}};function br(e,t,n){var r,i,a,o=e.isPure=function(e,t){switch(e.type){case yr.MemberExpression:if(e.computed)return!1;break;case yr.UnaryExpression:return 1;case yr.BinaryExpression:return"+"!==e.operator&&1;case yr.CallExpression:return!1}return void 0===t?2:t}(e,n);switch(e.type){case yr.Program:r=!0,w(e.body,(function(e){br(e.expression,t,o),r=r&&e.expression.constant})),e.constant=r;break;case yr.Literal:e.constant=!0,e.toWatch=[];break;case yr.UnaryExpression:br(e.argument,t,o),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case yr.BinaryExpression:br(e.left,t,o),br(e.right,t,o),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case yr.LogicalExpression:br(e.left,t,o),br(e.right,t,o),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case yr.ConditionalExpression:br(e.test,t,o),br(e.alternate,t,o),br(e.consequent,t,o),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case yr.Identifier:e.constant=!1,e.toWatch=[e];break;case yr.MemberExpression:br(e.object,t,o),e.computed&&br(e.property,t,o),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case yr.CallExpression:a=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),r=a,i=[],w(e.arguments,(function(e){br(e,t,o),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=a?i:[e];break;case yr.AssignmentExpression:br(e.left,t,o),br(e.right,t,o),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case yr.ArrayExpression:r=!0,i=[],w(e.elements,(function(e){br(e,t,o),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=i;break;case yr.ObjectExpression:r=!0,i=[],w(e.properties,(function(e){br(e.value,t,o),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(br(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))})),e.constant=r,e.toWatch=i;break;case yr.ThisExpression:case yr.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Ir(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}}function wr(e){return e.type===yr.Identifier||e.type===yr.MemberExpression}function Cr(e){if(1===e.body.length&&wr(e.body[0].expression))return{type:yr.AssignmentExpression,left:e.body[0].expression,right:{type:yr.NGValueParameter},operator:"="}}function Br(e){this.$filter=e}function Er(e){this.$filter=e}function _r(e,t,n){this.ast=new yr(e,n),this.astCompiler=n.csp?new Er(t):new Br(t)}function kr(e){return Y(e.valueOf)?e.valueOf():Ar.call(e)}function Qr(){var e,t,n=He(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){var a={csp:ce().noUnsafeEval,literals:ae(r),isIdentifierStart:Y(e)&&e,isIdentifierContinue:Y(t)&&t};return o.$$getAst=function(e){return new _r(new gr(a),i,a).getAst(e).ast},o;function o(e,t){var r,o;switch(typeof e){case"string":if(e=e.trim(),!(r=n[o=e]))r=new _r(new gr(a),i,a).parse(e),n[o]=A(r);return h(r,t);case"function":return h(e,t);default:return h(M,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=kr(e))&&!n)&&(e===t||e!=e&&t!=t)}function c(e,t,n,r,i){var a,o=r.inputs;if(1===o.length){var c=s;return o=o[0],e.$watch((function(e){var t=o(e);return s(t,c,o.isPure)||(a=r(e,void 0,void 0,[t]),c=t&&kr(t)),a}),t,n,i)}for(var u=[],l=[],f=0,A=o.length;f<A;f++)u[f]=s,l[f]=null;return e.$watch((function(e){for(var t=!1,n=0,i=o.length;n<i;n++){var c=o[n](e);(t||(t=!s(c,u[n],o[n].isPure)))&&(l[n]=c,u[n]=c&&kr(c))}return t&&(a=r(e,void 0,void 0,l)),a}),t,n,i)}function u(e,t,n,r,i){var a,o,s=r.literal?l:H,c=r.$$intercepted||r,u=r.$$interceptor||F,f=r.inputs&&!c.inputs;return p.literal=r.literal,p.constant=r.constant,p.inputs=r.inputs,A(p),a=e.$watch(p,t,n,i);function h(){s(o)&&a()}function p(e,t,n,r){return o=f&&r?r[0]:c(e,t,n,r),s(o)&&e.$$postDigest(h),u(o)}}function l(e){var t=!0;return w(e,(function(e){H(e)||(t=!1)})),t}function f(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function A(e){return e.constant?e.$$watchDelegate=f:e.oneTime?e.$$watchDelegate=u:e.inputs&&(e.$$watchDelegate=c),e}function h(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,a,o){var s=n&&o?o[0]:e(r,i,a,o);return t(s)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map((function(e){return 2===e.isPure?function(t){return e(t)}:e})))),A(r)}}]}function Sr(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Dr((function(e){t.$evalAsync(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return H(t)?(e=t,this):e}}function xr(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Dr((function(e){t.defer(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return H(t)?(e=t,this):e}}function Dr(e,t,n){var r=i("$q",TypeError),a=0,o=[];function s(){return new c}function c(){var e=this.promise=new u;this.resolve=function(t){A(e,t)},this.reject=function(t){h(e,t)},this.notify=function(t){d(e,t)}}function u(){this.$$state={status:0}}function l(){for(;!a&&o.length;){var e=o.shift();if(!Pr(e)){Mr(e);var n="Possibly unhandled rejection: "+Le(e.value);$(e.value)?t(e.value,n):t(n)}}}function f(r){!n||r.pending||2!==r.status||Pr(r)||(0===a&&0===o.length&&e(l),o.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++a,e((function(){!function(r){var i,o,s;s=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var c=0,u=s.length;c<u;++c){Mr(r),o=s[c][0],i=s[c][r.status];try{Y(i)?A(o,i(r.value)):1===r.status?A(o,r.value):h(o,r.value)}catch(e){h(o,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--a,n&&0===a&&e(l)}}(r)})))}function A(e,t){e.$$state.status||(t===e?p(e,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):function e(t,n){var r,i=!1;try{(j(n)||Y(n))&&(r=n.then),Y(r)?(t.$$state.status=-1,r.call(n,a,o,(function(e){d(t,e)}))):(t.$$state.value=n,t.$$state.status=1,f(t.$$state))}catch(e){o(e)}function a(n){i||(i=!0,e(t,n))}function o(e){i||(i=!0,p(t,e))}}(e,t))}function h(e,t){e.$$state.status||p(e,t)}function p(e,t){e.$$state.value=t,e.$$state.status=2,f(e.$$state)}function d(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&e((function(){for(var e,n,a=0,o=i.length;a<o;a++){n=i[a][0],e=i[a][3];try{d(n,Y(e)?e(r):r)}catch(e){t(e)}}}))}function g(e){var t=new u;return h(t,e),t}function y(e,t,n){var r=null;try{Y(n)&&(r=n())}catch(e){return g(e)}return W(r)?r.then((function(){return t(e)}),g):t(e)}function v(e,t,n,r){var i=new u;return A(i,e),i.then(t,n,r)}Q(u.prototype,{then:function(e,t,n){if(T(e)&&T(t)&&T(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&f(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return y(t,m,e)}),(function(t){return y(t,g,e)}),t)}});var m=v;function b(e){if(!Y(e))throw r("norslvr","Expected resolverFn, got '{0}'",e);var t=new u;return e((function(e){A(t,e)}),(function(e){h(t,e)})),t}return b.prototype=u.prototype,b.defer=s,b.reject=g,b.when=v,b.resolve=m,b.all=function(e){var t=new u,n=0,r=G(e)?[]:{};return w(e,(function(e,i){n++,v(e).then((function(e){r[i]=e,--n||A(t,r)}),(function(e){h(t,e)}))})),0===n&&A(t,r),t},b.race=function(e){var t=s();return w(e,(function(e){v(e).then(t.resolve,t.reject)})),t.promise},b}function Pr(e){return!!e.pur}function Mr(e){e.pur=!0}function Fr(e){e.$$state&&Mr(e.$$state)}function Or(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,a=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return a.supported=i,a}]}function Rr(){var e=10,t=i("$rootScope"),n=null,r=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(i,o,s){function c(e){e.currentScope.$$destroyed=!0}function u(){this.$id=E(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}u.prototype={constructor:u,$new:function(e,t){var n;return t=t||this,e?(n=new u).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=E(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",c),n},$watch:function(e,t,r,i){var a=o(e),s=Y(t)?t:M;if(a.$$watchDelegate)return a.$$watchDelegate(this,s,r,a,e);var c=this,u=c.$$watchers,l={fn:s,last:b,get:a,exp:i||e,eq:!!r};return n=null,u||((u=c.$$watchers=[]).$$digestWatchIndex=-1),u.unshift(l),u.$$digestWatchIndex++,v(this,1),function(){var e=ie(u,l);e>=0&&(v(c,-1),e<u.$$digestWatchIndex&&u.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){var n=new Array(e.length),r=new Array(e.length),i=[],a=this,o=!1,s=!0;if(!e.length){var c=!0;return a.$evalAsync((function(){c&&t(r,r,a)})),function(){c=!1}}if(1===e.length)return this.$watch(e[0],(function(e,i,a){r[0]=e,n[0]=i,t(r,e===i?r:n,a)}));function u(){o=!1;try{s?(s=!1,t(r,r,a)):t(r,n,a)}finally{for(var i=0;i<e.length;i++)n[i]=r[i]}}return w(e,(function(e,t){var n=a.$watch(e,(function(e){r[t]=e,o||(o=!0,a.$evalAsync(u))}));i.push(n)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(e,t){d.$$pure=o(e).literal,d.$stateful=!d.$$pure;var n,r,i,a=this,s=t.length>1,c=0,u=o(e,d),f=[],A={},h=!0,p=0;function d(e){var t,i,a,o;if(!T(n=e)){if(j(n))if(I(n)){r!==f&&(p=(r=f).length=0,c++),t=n.length,p!==t&&(c++,r.length=p=t);for(var s=0;s<t;s++)o=r[s],a=n[s],o!=o&&a!=a||o===a||(c++,r[s]=a)}else{for(i in r!==A&&(r=A={},p=0,c++),t=0,n)l.call(n,i)&&(t++,a=n[i],o=r[i],i in r?o!=o&&a!=a||o===a||(c++,r[i]=a):(p++,r[i]=a,c++));if(p>t)for(i in c++,r)l.call(n,i)||(p--,delete r[i])}else r!==n&&(r=n,c++);return c}}return this.$watch(u,(function(){if(h?(h=!1,t(n,n,a)):t(n,i,a),s)if(j(n))if(I(n)){i=new Array(n.length);for(var e=0;e<n.length;e++)i[e]=n[e]}else for(var r in i={},n)l.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var a,o,c,u,l,p,v,m,I,w=e,B=A.length?f:this,E=[];g("$digest"),s.$$checkUrlChange(),this===f&&null!==r&&(s.defer.cancel(r),C()),n=null;do{l=!1,v=B;for(var _=0;_<A.length;_++){try{(0,(I=A[_]).fn)(I.scope,I.locals)}catch(e){i(e)}n=null}A.length=0;e:do{if(u=!v.$$suspended&&v.$$watchers)for(u.$$digestWatchIndex=u.length;u.$$digestWatchIndex--;)try{if(a=u[u.$$digestWatchIndex])if((o=(0,a.get)(v))===(c=a.last)||(a.eq?se(o,c):D(o)&&D(c))){if(a===n){l=!1;break e}}else l=!0,n=a,a.last=a.eq?ae(o,null):o,(0,a.fn)(o,c===b?o:c,v),w<5&&(E[m=4-w]||(E[m]=[]),E[m].push({msg:Y(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:o,oldVal:c}))}catch(e){i(e)}if(!(p=!v.$$suspended&&v.$$watchersCount&&v.$$childHead||v!==B&&v.$$nextSibling))for(;v!==B&&!(p=v.$$nextSibling);)v=v.$parent}while(v=p);if((l||A.length)&&!w--)throw y(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,E)}while(l||A.length);for(y();d<h.length;)try{h[d++]()}catch(e){i(e)}h.length=d=0,s.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===f&&s.$$applicationDestroyed(),v(this,-this.$$watchersCount),this.$$listenerCount)m(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=M,this.$on=this.$watch=this.$watchGroup=function(){return M},this.$$listeners={},this.$$nextSibling=null,function e(t){9===a&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return o(e)(this,t)},$evalAsync:function(e,t){f.$$phase||A.length||s.defer((function(){A.length&&f.$digest()}),null,"$evalAsync"),A.push({scope:this,fn:o(e),locals:t})},$$postDigest:function(e){h.push(e)},$apply:function(e){try{g("$apply");try{return this.$eval(e)}finally{y()}}catch(e){i(e)}finally{try{f.$digest()}catch(e){throw i(e),e}}},$applyAsync:function(e){var t=this;e&&p.push((function(){t.$eval(e)})),e=o(e),null===r&&(r=s.defer((function(){f.$apply(C)}),null,"$applyAsync"))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],m(i,1,e))}},$emit:function(e,t){var n,r,a,o=[],s=this,c=!1,u={name:e,targetScope:s,stopPropagation:function(){c=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=le([u],arguments,1);do{for(n=s.$$listeners[e]||o,u.currentScope=s,r=0,a=n.length;r<a;r++)if(n[r])try{n[r].apply(null,l)}catch(e){i(e)}else n.splice(r,1),r--,a--;if(c)break;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(e,t){var n=this,r=n,a=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return o;for(var s,c,u,l=le([o],arguments,1);r=a;){for(o.currentScope=r,c=0,u=(s=r.$$listeners[e]||[]).length;c<u;c++)if(s[c])try{s[c].apply(null,l)}catch(e){i(e)}else s.splice(c,1),c--,u--;if(!(a=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(a=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var f=new u,A=f.$$asyncQueue=[],h=f.$$postDigestQueue=[],p=f.$$applyAsyncQueue=[],d=0;return f;function g(e){if(f.$$phase)throw t("inprog","{0} already in progress",f.$$phase);f.$$phase=e}function y(){f.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function m(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function b(){}function C(){for(;p.length;)try{p.shift()()}catch(e){i(e)}r=null}}]}function Tr(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return H(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return H(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,a=ri(n&&n.trim()).href;return""===a||a.match(i)?n:"unsafe:"+a}}}Br.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},br(e,t.$filter);var n,r="";if(this.stage="assign",n=Cr(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var a=Ir(e.body);t.stage="inputs",w(a,(function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(e);var o='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",o)(this.$filter,hr,vr,mr);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return w(t,(function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")})),t.length&&e.push("fn.inputs=["+t.map((function(e){return e.name})).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return w(this.state.filters,(function(n,r){e.push(n+"=$filter("+t.escape(r)+")")})),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,a){var o,s,c,u,l,f=this;if(r=r||M,!a&&H(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case yr.Program:w(e.body,(function(t,n){f.recurse(t.expression,void 0,void 0,(function(e){s=e})),n!==e.body.length-1?f.current().body.push(s,";"):f.return_(s)}));break;case yr.Literal:u=this.escape(e.value),this.assign(t,u),r(t||u);break;case yr.UnaryExpression:this.recurse(e.argument,void 0,void 0,(function(e){s=e})),u=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,u),r(u);break;case yr.BinaryExpression:this.recurse(e.left,void 0,void 0,(function(e){o=e})),this.recurse(e.right,void 0,void 0,(function(e){s=e})),u="+"===e.operator?this.plus(o,s):"-"===e.operator?this.ifDefined(o,0)+e.operator+this.ifDefined(s,0):"("+o+")"+e.operator+"("+s+")",this.assign(t,u),r(u);break;case yr.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),r(t);break;case yr.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),r(t);break;case yr.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){i&&1!==i&&f.if_(f.isNull(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))}))}),t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),r(t);break;case yr.MemberExpression:o=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,o,void 0,(function(){f.if_(f.notNull(o),(function(){e.computed?(s=f.nextId(),f.recurse(e.property,s),f.getStringValue(s),i&&1!==i&&f.if_(f.not(f.computedMember(o,s)),f.lazyAssign(f.computedMember(o,s),"{}")),u=f.computedMember(o,s),f.assign(t,u),n&&(n.computed=!0,n.name=s)):(i&&1!==i&&f.if_(f.isNull(f.nonComputedMember(o,e.property.name)),f.lazyAssign(f.nonComputedMember(o,e.property.name),"{}")),u=f.nonComputedMember(o,e.property.name),f.assign(t,u),n&&(n.computed=!1,n.name=e.property.name))}),(function(){f.assign(t,"undefined")})),r(t)}),!!i);break;case yr.CallExpression:t=t||this.nextId(),e.filter?(s=f.filter(e.callee.name),c=[],w(e.arguments,(function(e){var t=f.nextId();f.recurse(e,t),c.push(t)})),u=s+"("+c.join(",")+")",f.assign(t,u),r(t)):(s=f.nextId(),o={},c=[],f.recurse(e.callee,s,o,(function(){f.if_(f.notNull(s),(function(){w(e.arguments,(function(t){f.recurse(t,e.constant?void 0:f.nextId(),void 0,(function(e){c.push(e)}))})),u=o.name?f.member(o.context,o.name,o.computed)+"("+c.join(",")+")":s+"("+c.join(",")+")",f.assign(t,u)}),(function(){f.assign(t,"undefined")})),r(t)})));break;case yr.AssignmentExpression:s=this.nextId(),o={},this.recurse(e.left,void 0,o,(function(){f.if_(f.notNull(o.context),(function(){f.recurse(e.right,s),u=f.member(o.context,o.name,o.computed)+e.operator+s,f.assign(t,u),r(t||u)}))}),1);break;case yr.ArrayExpression:c=[],w(e.elements,(function(t){f.recurse(t,e.constant?void 0:f.nextId(),void 0,(function(e){c.push(e)}))})),u="["+c.join(",")+"]",this.assign(t,u),r(t||u);break;case yr.ObjectExpression:c=[],l=!1,w(e.properties,(function(e){e.computed&&(l=!0)})),l?(t=t||this.nextId(),this.assign(t,"{}"),w(e.properties,(function(e){e.computed?(o=f.nextId(),f.recurse(e.key,o)):o=e.key.type===yr.Identifier?e.key.name:""+e.key.value,s=f.nextId(),f.recurse(e.value,s),f.assign(f.member(t,o,e.computed),s)}))):(w(e.properties,(function(t){f.recurse(t.value,e.constant?void 0:f.nextId(),void 0,(function(e){c.push(f.escape(t.key.type===yr.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),u="{"+c.join(",")+"}",this.assign(t,u)),r(t||u);break;case yr.ThisExpression:this.assign(t,"s"),r(t||"s");break;case yr.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case yr.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,a){var o=this;return function(){o.recurse(e,t,n,r,i,a)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(U(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(L(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw fr("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Er.prototype={compile:function(e){var t,n,r=this;br(e,r.$filter),(t=Cr(e))&&(n=this.recurse(t));var i,a=Ir(e.body);a&&(i=[],w(a,(function(e,t){var n=r.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t})));var o=[];w(e.body,(function(e){o.push(r.recurse(e.expression))}));var s=0===e.body.length?M:1===e.body.length?o[0]:function(e,t){var n;return w(o,(function(r){n=r(e,t)})),n};return n&&(s.assign=function(e,t,r){return n(e,r,t)}),i&&(s.inputs=i),s},recurse:function(e,t,n){var r,i,a,o=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case yr.Literal:return this.value(e.value,t);case yr.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case yr.BinaryExpression:case yr.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case yr.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case yr.Identifier:return o.identifier(e.name,t,n);case yr.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case yr.CallExpression:return a=[],w(e.arguments,(function(e){a.push(o.recurse(e))})),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],c=0;c<a.length;++c)s.push(a[c](e,n,r,o));var u=i.apply(void 0,s,o);return t?{context:void 0,name:void 0,value:u}:u}:function(e,n,r,o){var s,c=i(e,n,r,o);if(null!=c.value){for(var u=[],l=0;l<a.length;++l)u.push(a[l](e,n,r,o));s=c.value.apply(c.context,u)}return t?{value:s}:s};case yr.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,a,o){var s=r(e,n,a,o),c=i(e,n,a,o);return s.context[s.name]=c,t?{value:c}:c};case yr.ArrayExpression:return a=[],w(e.elements,(function(e){a.push(o.recurse(e))})),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case yr.ObjectExpression:return a=[],w(e.properties,(function(e){e.computed?a.push({key:o.recurse(e.key),computed:!0,value:o.recurse(e.value)}):a.push({key:e.key.type===yr.Identifier?e.key.name:""+e.key.value,computed:!1,value:o.recurse(e.value)})})),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case yr.ThisExpression:return function(e){return t?{value:e}:e};case yr.LocalsExpression:return function(e,n){return t?{value:n}:n};case yr.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,a){var o=e(n,r,i,a);return o=H(o)?+o:0,t?{value:o}:o}},"unary-":function(e,t){return function(n,r,i,a){var o=e(n,r,i,a);return o=H(o)?-o:-0,t?{value:o}:o}},"unary!":function(e,t){return function(n,r,i,a){var o=!e(n,r,i,a);return t?{value:o}:o}},"binary+":function(e,t,n){return function(r,i,a,o){var s=mr(e(r,i,a,o),t(r,i,a,o));return n?{value:s}:s}},"binary-":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o),c=t(r,i,a,o),u=(H(s)?s:0)-(H(c)?c:0);return n?{value:u}:u}},"binary*":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)*t(r,i,a,o);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)/t(r,i,a,o);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)%t(r,i,a,o);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)===t(r,i,a,o);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)!==t(r,i,a,o);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)==t(r,i,a,o);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)!=t(r,i,a,o);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)<t(r,i,a,o);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)>t(r,i,a,o);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)<=t(r,i,a,o);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)>=t(r,i,a,o);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)&&t(r,i,a,o);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)||t(r,i,a,o);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,a,o,s){var c=e(i,a,o,s)?t(i,a,o,s):n(i,a,o,s);return r?{value:c}:c}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,a,o){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var c=s?s[e]:void 0;return t?{context:s,name:e,value:c}:c}},computedMember:function(e,t,n,r){return function(i,a,o,s){var c,u,l=e(i,a,o,s);return null!=l&&(c=hr(c=t(i,a,o,s)),r&&1!==r&&l&&!l[c]&&(l[c]={}),u=l[c]),n?{context:l,name:c,value:u}:u}},nonComputedMember:function(e,t,n,r){return function(i,a,o,s){var c=e(i,a,o,s);r&&1!==r&&c&&null==c[t]&&(c[t]={});var u=null!=c?c[t]:void 0;return n?{context:c,name:t,value:u}:u}},inputs:function(e,t){return function(n,r,i,a){return a?a[t]:e(n,r,i)}}},_r.prototype={constructor:_r,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=function(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===yr.Literal||e.body[0].expression.type===yr.ArrayExpression||e.body[0].expression.type===yr.ObjectExpression)}(t.ast),n.constant=function(e){return e.constant}(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var Hr=i("$sce"),jr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Nr=/_([a-z])/g;function Ur(e){return e.replace(Nr,qe)}function Lr(e){var t=[];return H(e)&&w(e,(function(e){t.push(function(e){if("self"===e)return e;if(U(e)){if(e.indexOf("***")>-1)throw Hr("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=ee(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(J(e))return new RegExp("^"+e.source+"$");throw Hr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function Kr(){this.SCE_CONTEXTS=jr;var t=["self"],n=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Lr(e)),t},this.resourceUrlBlacklist=function(e){return arguments.length&&(n=Lr(e)),n},this.$get=["$injector","$$sanitizeUri",function(r,i){var a=function(e){throw Hr("unsafe","Attempting to use an unsafe value in a safe context.")};function o(t,n){return"self"===t?ii(n,ti)||function(t){return ii(t,function(){if(e.document.baseURI)return e.document.baseURI;Zr||((Zr=e.document.createElement("a")).href=".",Zr=Zr.cloneNode(!1));return Zr.href}())}(n):!!t.exec(n.href)}function s(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}r.has("$sanitize")&&(a=r.get("$sanitize"));var c=s(),u={};return u[jr.HTML]=s(c),u[jr.CSS]=s(c),u[jr.MEDIA_URL]=s(c),u[jr.URL]=s(u[jr.MEDIA_URL]),u[jr.JS]=s(c),u[jr.RESOURCE_URL]=s(u[jr.URL]),{trustAs:function(e,t){var n=u.hasOwnProperty(e)?u[e]:null;if(!n)throw Hr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||T(t)||""===t)return t;if("string"!=typeof t)throw Hr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,r){if(null===r||T(r)||""===r)return r;var s=u.hasOwnProperty(e)?u[e]:null;if(s&&r instanceof s)return r.$$unwrapTrustedValue();if(Y(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),e===jr.MEDIA_URL||e===jr.URL)return i(r.toString(),e===jr.MEDIA_URL);if(e===jr.RESOURCE_URL){if(function(e){var r,i,a=ri(e.toString()),s=!1;for(r=0,i=t.length;r<i;r++)if(o(t[r],a)){s=!0;break}if(s)for(r=0,i=n.length;r<i;r++)if(o(n[r],a)){s=!1;break}return s}(r))return r;throw Hr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",r.toString())}if(e===jr.HTML)return a(r);throw Hr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof c?e.$$unwrapTrustedValue():e}}}]}function Gr(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&a<8)throw Hr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=Ue(jr);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=F),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,(function(t){return r.getTrusted(e,t)}))};var i=r.parseAs,o=r.getTrusted,s=r.trustAs;return w(jr,(function(e,t){var n=f(t);r[Ur("parse_as_"+n)]=function(t){return i(e,t)},r[Ur("get_trusted_"+n)]=function(t){return o(e,t)},r[Ur("trust_as_"+n)]=function(t){return s(e,t)}})),r}]}function $r(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=x((/android (\d+)/.exec(f((e.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},c=s.body&&s.body.style,u=!1,l=!1;return c&&(u=!!("transition"in c||"webkitTransition"in c),l=!!("animation"in c||"webkitAnimation"in c)),{history:!(!r||i<4||o),hasEvent:function(e){if("input"===e&&a)return!1;if(T(n[e])){var t=s.createElement("div");n[e]="on"+e in t}return n[e]},csp:ce(),transitions:u,animations:l,android:i}}]}function Yr(){this.$get=O((function(e){return new Jr(e)}))}function Jr(e){var t={},n=[],r=this.ALL_TASKS_TYPE="$$all$$",i=this.DEFAULT_TASK_TYPE="$$default$$";function a(){var e=n.pop();return e&&e.cb}function o(e){for(var t=n.length-1;t>=0;--t){var r=n[t];if(r.type===e)return n.splice(t,1),r.cb}}this.completeTask=function(n,s){s=s||i;try{n()}finally{!function(e){t[e=e||i]&&(t[e]--,t[r]--)}(s);var c=t[s],u=t[r];if(!u||!c)for(var l,f=u?o:a;l=f(s);)try{l()}catch(t){e.error(t)}}},this.incTaskCount=function(e){t[e=e||i]=(t[e]||0)+1,t[r]=(t[r]||0)+1},this.notifyWhenNoPendingTasks=function(e,i){t[i=i||r]?n.push({type:i,cb:e}):e()}}var Vr=i("$templateRequest");function zr(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,a){function o(s,c){o.totalPendingRequests++,U(s)&&!T(n.get(s))||(s=a.getTrustedResourceUrl(s));var u=r.defaults&&r.defaults.transformResponse;return G(u)?u=u.filter((function(e){return e!==Mn})):u===Mn&&(u=null),r.get(s,Q({cache:n,transformResponse:u},e)).finally((function(){o.totalPendingRequests--})).then((function(e){return n.put(s,e.data)}),(function(e){c||(e=Vr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e));return i.reject(e)}))}return o.totalPendingRequests=0,o}]}function qr(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={findBindings:function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return w(r,(function(e){var r=m.element(e).data("$binding");r&&w(r,(function(r){n?new RegExp("(^|\\s)"+ee(t)+"(\\s|\\||$)").test(r)&&i.push(e):-1!==r.indexOf(t)&&i.push(e)}))})),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var a="["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]',o=e.querySelectorAll(a);if(o.length)return o}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return r}]}var Wr=i("$timeout");function Xr(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){var a={};function o(o,s,c){Y(o)||(c=s,s=o,o=M);var u,l=fe(arguments,3),f=H(c)&&!c,A=(f?r:n).defer(),h=A.promise;return u=t.defer((function(){try{A.resolve(o.apply(null,l))}catch(e){A.reject(e),i(e)}finally{delete a[h.$$timeoutId]}f||e.$apply()}),s,"$timeout"),h.$$timeoutId=u,a[u]=A,h}return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw Wr("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!a.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=a[n];return Fr(r.promise),r.reject("canceled"),delete a[n],t.defer.cancel(n)},o}]}var Zr,ei=e.document.createElement("a"),ti=ri(e.location.href);ei.href="http://[::1]";var ni="[::1]"===ei.hostname;function ri(e){if(!U(e))return e;var t=e;a&&(ei.setAttribute("href",t),t=ei.href),ei.setAttribute("href",t);var n=ei.hostname;return!ni&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:ei.href,protocol:ei.protocol?ei.protocol.replace(/:$/,""):"",host:ei.host,search:ei.search?ei.search.replace(/^\?/,""):"",hash:ei.hash?ei.hash.replace(/^#/,""):"",hostname:n,port:ei.port,pathname:"/"===ei.pathname.charAt(0)?ei.pathname:"/"+ei.pathname}}function ii(e,t){return e=ri(e),t=ri(t),e.protocol===t.protocol&&e.host===t.host}function ai(){this.$get=O(e)}function oi(e){var t=e[0]||{},n={},r="";function i(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var e,a,o,s,c,u=function(e){try{return e.cookie||""}catch(e){return""}}(t);if(u!==r)for(e=(r=u).split("; "),n={},o=0;o<e.length;o++)(s=(a=e[o]).indexOf("="))>0&&(c=i(a.substring(0,s)),T(n[c])&&(n[c]=i(a.substring(s+1))));return n}}function si(){this.$get=oi}function ci(e){function t(n,r){if(j(n)){var i={};return w(n,(function(e,n){i[n]=t(n,e)})),i}return e.factory(n+"Filter",r)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",Ai),t("date",Bi),t("filter",ui),t("json",Ei),t("limitTo",Qi),t("lowercase",_i),t("number",hi),t("orderBy",xi),t("uppercase",ki)}function ui(){return function(e,t,n,r){if(!I(e)){if(null==e)return e;throw i("filter")("notarray","Expected array but received: {0}",e)}var a,o;switch(r=r||"$",fi(t)){case"function":a=t;break;case"boolean":case"null":case"number":case"string":o=!0;case"object":a=function(e,t,n,r){var i=j(e)&&n in e;!0===t?t=se:Y(t)||(t=function(e,t){return!T(e)&&(null===e||null===t?e===t:!(j(t)||j(e)&&!R(e))&&(e=f(""+e),t=f(""+t),-1!==e.indexOf(t)))});return function(a){return i&&!j(a)?li(a,e[n],t,n,!1):li(a,e,t,n,r)}}(t,n,r,o);break;default:return e}return Array.prototype.filter.call(e,a)}}function li(e,t,n,r,i,a){var o=fi(e),s=fi(t);if("string"===s&&"!"===t.charAt(0))return!li(e,t.substring(1),n,r,i);if(G(e))return e.some((function(e){return li(e,t,n,r,i)}));switch(o){case"object":var c;if(i){for(c in e)if(c.charAt&&"$"!==c.charAt(0)&&li(e[c],t,n,r,!0))return!0;return!a&&li(e,t,n,r,!1)}if("object"===s){for(c in t){var u=t[c];if(!Y(u)&&!T(u)){var l=c===r;if(!li(l?e:e[c],u,n,r,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function fi(e){return null===e?"null":typeof e}oi.$inject=["$document"],ci.$inject=["$provide"];function Ai(e){var t=e.NUMBER_FORMATS;return function(e,n,r){T(n)&&(n=t.CURRENCY_SYM),T(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:pi(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function hi(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:pi(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function pi(e,t,n,r,i){if(!U(e)&&!L(e)||isNaN(e))return"";var a,o=!isFinite(e),s=!1,c=Math.abs(e)+"",u="";if(o)u="∞";else{(function(e,t,n,r){var i=e.d,a=i.length-e.i,o=(t=T(t)?Math.min(Math.max(n,a),r):+t)+e.i,s=i[o];if(o>0){i.splice(Math.max(e.i,o));for(var c=o;c<i.length;c++)i[c]=0}else{a=Math.max(0,a),e.i=1,i.length=Math.max(1,o=t+1),i[0]=0;for(var u=1;u<o;u++)i[u]=0}if(s>=5)if(o-1<0){for(var l=0;l>o;l--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[o-1]++;for(;a<Math.max(0,t);a++)i.push(0);var f=i.reduceRight((function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)}),0);f&&(i.unshift(f),e.i++)})(a=function(e){var t,n,r,i,a,o=0;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;"0"===e.charAt(r);r++);if(r===(a=e.length))t=[0],n=1;else{for(a--;"0"===e.charAt(a);)a--;for(n-=r,t=[],i=0;r<=a;r++,i++)t[i]=+e.charAt(r)}return n>22&&(t=t.splice(0,21),o=n-1,n=1),{d:t,e:o,i:n}}(c),i,t.minFrac,t.maxFrac);var l=a.d,f=a.i,A=a.e,h=[];for(s=l.reduce((function(e,t){return e&&!t}),!0);f<0;)l.unshift(0),f++;f>0?h=l.splice(f,l.length):(h=l,l=[0]);var p=[];for(l.length>=t.lgSize&&p.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)p.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&p.unshift(l.join("")),u=p.join(n),h.length&&(u+=r+h.join("")),A&&(u+="e+"+A)}return e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function di(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),i+e}function gi(e,t,n,r,i){return n=n||0,function(a){var o=a["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12===n&&(o=12),di(o,t,r,i)}}function yi(e,t,n){return function(r,i){var a=r["get"+e]();return i[A((n?"STANDALONE":"")+(t?"SHORT":"")+e)][a]}}function vi(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function mi(e){return function(t){var n,r=vi(t.getFullYear()),i=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return di(1+Math.round(i/6048e5),e)}}function bi(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}Ai.$inject=["$locale"],hi.$inject=["$locale"];var Ii={yyyy:gi("FullYear",4,0,!1,!0),yy:gi("FullYear",2,0,!0,!0),y:gi("FullYear",1,0,!1,!0),MMMM:yi("Month"),MMM:yi("Month",!0),MM:gi("Month",2,1),M:gi("Month",1,1),LLLL:yi("Month",!1,!0),dd:gi("Date",2),d:gi("Date",1),HH:gi("Hours",2),H:gi("Hours",1),hh:gi("Hours",2,-12),h:gi("Hours",1,-12),mm:gi("Minutes",2),m:gi("Minutes",1),ss:gi("Seconds",2),s:gi("Seconds",1),sss:gi("Milliseconds",3),EEEE:yi("Day"),EEE:yi("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=di(Math[r>0?"floor":"ceil"](r/60),2)+di(Math.abs(r%60),2)},ww:mi(2),w:mi(1),G:bi,GG:bi,GGG:bi,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},wi=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Ci=/^-?\d+$/;function Bi(e){var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,o,s="",c=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,U(n)&&(n=Ci.test(n)?x(n):function(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,a=0,o=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=x(n[9]+n[10]),a=x(n[9]+n[11])),o.call(r,x(n[1]),x(n[2])-1,x(n[3]));var c=x(n[4]||0)-i,u=x(n[5]||0)-a,l=x(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(r,c,u,l,f),r}return e}(n)),L(n)&&(n=new Date(n)),!K(n)||!isFinite(n.getTime()))return n;for(;r;)(o=wi.exec(r))?r=(c=le(c,o,1)).pop():(c.push(r),r=null);var u=n.getTimezoneOffset();return i&&(u=ye(i,u),n=me(n,i,!0)),w(c,(function(t){s+=(a=Ii[t])?a(n,e.DATETIME_FORMATS,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Ei(){return function(e,t){return T(t)&&(t=2),pe(e,t)}}Bi.$inject=["$locale"];var _i=O(f),ki=O(A);function Qi(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):x(t),D(t)?e:(L(e)&&(e=e.toString()),I(e)?(n=(n=!n||isNaN(n)?0:x(n))<0?Math.max(0,e.length+n):n,t>=0?Si(e,n,n+t):0===n?Si(e,t,e.length):Si(e,Math.max(0,n+t),n)):e)}}function Si(e,t,n){return U(e)?e.slice(t,n):h.call(e,t,n)}function xi(e){return function(r,a,o,s){if(null==r)return r;if(!I(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);G(a)||(a=[a]),0===a.length&&(a=["+"]);var c=a.map((function(t){var n=1,r=F;if(Y(t))r=t;else if(U(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})),u=o?-1:1,l=Y(s)?s:n,f=Array.prototype.map.call(r,(function(e,n){return{value:e,tieBreaker:{value:n,type:"number",index:n},predicateValues:c.map((function(r){return function(e,n){var r=typeof e;null===e?r="null":"object"===r&&(e=function(e){if(Y(e.valueOf)&&t(e=e.valueOf()))return e;if(R(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:r,index:n}}(r.get(e),n)}))}}));return f.sort((function(e,t){for(var r=0,i=c.length;r<i;r++){var a=l(e.predicateValues[r],t.predicateValues[r]);if(a)return a*c[r].descending*u}return(l(e.tieBreaker,t.tieBreaker)||n(e.tieBreaker,t.tieBreaker))*u})),r=f.map((function(e){return e.value}))};function t(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function n(e,t){var n=0,r=e.type,i=t.type;if(r===i){var a=e.value,o=t.value;"string"===r?(a=a.toLowerCase(),o=o.toLowerCase()):"object"===r&&(j(a)&&(a=e.index),j(o)&&(o=t.index)),a!==o&&(n=a<o?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function Di(e){return Y(e)&&(e={link:e}),e.restrict=e.restrict||"AC",O(e)}xi.$inject=["$parse"];var Pi=O({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===g.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Mi={};w(_t,(function(e,t){if("multiple"!==e){var n=pn("ng-"+t),r=i;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[n]&&i(e,0,r)}),Mi[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(e,r,i){e.$watch(i[n],(function(e){i.$set(t,!!e)}))}})),w(Qt,(function(e,t){Mi[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(u);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],(function(e){r.$set(t,e)}))}}}})),w(["src","srcset","href"],(function(e){var t=pn("ng-"+e);Mi[t]=["$sce",function(n){return{priority:99,link:function(r,i,o){var s=e,c=e;"href"===e&&"[object SVGAnimatedString]"===g.call(i.prop("href"))&&(c="xlinkHref",o.$attr[c]="xlink:href",s=null),o.$set(t,n.getTrustedMediaUrl(o[t])),o.$observe(t,(function(t){t?(o.$set(c,t),a&&s&&i.prop(s,o[c])):"href"===e&&o.$set(c,null)}))}}}]}));var Fi={$addControl:M,$getControls:O([]),$$renameControl:function(e,t){e.$name=t},$removeControl:M,$setValidity:M,$setDirty:M,$setPristine:M,$setSubmitted:M,$$setSubmitted:M};function Oi(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Fi,this.$$element=e,this.$$animate=r,ji(this)}Oi.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Oi.prototype={$rollbackViewValue:function(){w(this.$$controls,(function(e){e.$rollbackViewValue()}))},$commitViewValue:function(){w(this.$$controls,(function(e){e.$commitViewValue()}))},$addControl:function(e){Re(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return Ue(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],w(this.$pending,(function(t,n){this.$setValidity(n,null,e)}),this),w(this.$error,(function(t,n){this.$setValidity(n,null,e)}),this),w(this.$$success,(function(t,n){this.$setValidity(n,null,e)}),this),ie(this.$$controls,e),e.$$parentForm=Fi},$setDirty:function(){this.$$animate.removeClass(this.$$element,Fa),this.$$animate.addClass(this.$$element,Oa),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Fa,Oa+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,w(this.$$controls,(function(e){e.$setPristine()}))},$setUntouched:function(){w(this.$$controls,(function(e){e.$setUntouched()}))},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Fi;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,w(this.$$controls,(function(e){e.$$setSubmitted&&e.$$setSubmitted()}))}},Ni({clazz:Oi,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(ie(r,n),0===r.length&&delete e[t])}});var Ri=function(e){return["$timeout","$parse",function(t,n){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Oi,compile:function(n,i){n.addClass(Fa).addClass(Pa);var a=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,o){var s=o[0];if(!("action"in i)){var c=function(t){e.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),t.preventDefault()};n[0].addEventListener("submit",c),n.on("$destroy",(function(){t((function(){n[0].removeEventListener("submit",c)}),0,!1)}))}(o[1]||s.$$parentForm).$addControl(s);var u=a?r(s.$name):M;a&&(u(e,s),i.$observe(a,(function(t){s.$name!==t&&(u(e,void 0),s.$$parentForm.$$renameControl(s,t),(u=r(s.$name))(e,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),u(e,void 0),Q(s,Fi)}))}}}};function r(e){return""===e?n('this[""]').assign:n(e).assign||M}}]},Ti=Ri(),Hi=Ri(!0);function ji(e){e.$$classCache={},e.$$classCache[Ma]=!(e.$$classCache[Pa]=e.$$element.hasClass(Pa))}function Ni(e){var t=e.clazz,n=e.set,r=e.unset;function i(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function a(e,t,n){t=t?"-"+Pe(t,"-"):"",i(e,Pa+t,!0===n),i(e,Ma+t,!1===n)}t.prototype.$setValidity=function(e,t,o){var s;T(t)?function(e,t,r,i){e[t]||(e[t]={});n(e[t],r,i)}(this,"$pending",e,o):function(e,t,n,i){e[t]&&r(e[t],n,i);Ui(e[t])&&(e[t]=void 0)}(this,"$pending",e,o),q(t)?t?(r(this.$error,e,o),n(this.$$success,e,o)):(n(this.$error,e,o),r(this.$$success,e,o)):(r(this.$error,e,o),r(this.$$success,e,o)),this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(i(this,"ng-pending",!1),this.$valid=Ui(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),a(this,e,s=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,s,this)}}function Ui(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var Li=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Ki=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Gi=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,$i=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Yi=/^(\d{4,})-(\d{2})-(\d{2})$/,Ji=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Vi=/^(\d{4,})-W(\d\d)$/,zi=/^(\d{4,})-(\d\d)$/,qi=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Wi=He();w("date,datetime-local,month,time,week".split(","),(function(e){Wi[e]=!0}));var Xi={text:function(e,t,n,r,i,a){ea(e,t,n,r,i,a),Zi(r)},date:na("date",Yi,ta(Yi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":na("datetimelocal",Ji,ta(Ji,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:na("time",qi,ta(qi,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:na("week",Vi,(function(e,t){if(K(e))return e;if(U(e)){Vi.lastIndex=0;var n=Vi.exec(e);if(n){var r=+n[1],i=+n[2],a=0,o=0,s=0,c=0,u=vi(r),l=7*(i-1);return t&&(a=t.getHours(),o=t.getMinutes(),s=t.getSeconds(),c=t.getMilliseconds()),new Date(r,0,u.getDate()+l,a,o,s,c)}}return NaN}),"yyyy-Www"),month:na("month",zi,ta(zi,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,a,o,s){var c;if(ra(e,t,n,r,"number"),ia(r),ea(e,t,n,r,i,a),H(n.min)||n.ngMin){var u=n.min||s(n.ngMin)(e);c=aa(u),r.$validators.min=function(e,t){return r.$isEmpty(t)||T(c)||t>=c},n.$observe("min",(function(e){e!==u&&(c=aa(e),u=e,r.$validate())}))}if(H(n.max)||n.ngMax){var l=n.max||s(n.ngMax)(e),f=aa(l);r.$validators.max=function(e,t){return r.$isEmpty(t)||T(f)||t<=f},n.$observe("max",(function(e){e!==l&&(f=aa(e),l=e,r.$validate())}))}if(H(n.step)||n.ngStep){var A=n.step||s(n.ngStep)(e),h=aa(A);r.$validators.step=function(e,t){return r.$isEmpty(t)||T(h)||ca(t,c||0,h)},n.$observe("step",(function(e){e!==A&&(h=aa(e),A=e,r.$validate())}))}},url:function(e,t,n,r,i,a){ea(e,t,n,r,i,a),Zi(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Ki.test(n)}},email:function(e,t,n,r,i,a){ea(e,t,n,r,i,a),Zi(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Gi.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==Z(n.ngTrim);T(n.name)&&t.attr("name",E());t.on("change",(function(e){var a;t[0].checked&&(a=n.value,i&&(a=Z(a)),r.$setViewValue(a,e&&e.type))})),r.$render=function(){var e=n.value;i&&(e=Z(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,a){ra(e,t,n,r,"range"),ia(r),ea(e,t,n,r,i,a);var o=r.$$hasNativeValidators&&"range"===t[0].type,s=o?0:void 0,c=o?100:void 0,u=o?1:void 0,l=t[0].validity,f=H(n.min),A=H(n.max),h=H(n.step),p=r.$render;r.$render=o&&H(l.rangeUnderflow)&&H(l.rangeOverflow)?function(){p(),r.$setViewValue(t.val())}:p,f&&(s=aa(n.min),r.$validators.min=o?function(){return!0}:function(e,t){return r.$isEmpty(t)||T(s)||t>=s},d("min",(function(e){if(s=aa(e),D(r.$modelValue))return;if(o){var n=t.val();s>n&&(n=s,t.val(n)),r.$setViewValue(n)}else r.$validate()})));A&&(c=aa(n.max),r.$validators.max=o?function(){return!0}:function(e,t){return r.$isEmpty(t)||T(c)||t<=c},d("max",(function(e){if(c=aa(e),D(r.$modelValue))return;if(o){var n=t.val();c<n&&(t.val(c),n=c<s?s:c),r.$setViewValue(n)}else r.$validate()})));h&&(u=aa(n.step),r.$validators.step=o?function(){return!l.stepMismatch}:function(e,t){return r.$isEmpty(t)||T(u)||ca(t,s||0,u)},d("step",(function(e){if(u=aa(e),D(r.$modelValue))return;o?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate()})));function d(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,(function(e){e!==i&&(i=e,r(e))}))}},checkbox:function(e,t,n,r,i,a,o,s){var c=ua(s,e,"ngTrueValue",n.ngTrueValue,!0),u=ua(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",(function(e){r.$setViewValue(t[0].checked,e&&e.type)})),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push((function(e){return se(e,c)})),r.$parsers.push((function(e){return e?c:u}))},hidden:M,button:M,submit:M,reset:M,file:M};function Zi(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function ea(e,t,n,r,i,a){var o,s=f(t[0].type);if(!i.android){var c=!1;t.on("compositionstart",(function(){c=!0})),t.on("compositionupdate",(function(e){(T(e.data)||""===e.data)&&(c=!1)})),t.on("compositionend",(function(){c=!1,u()}))}var u=function(e){if(o&&(a.defer.cancel(o),o=null),!c){var i=t.val(),u=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=Z(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))t.on("input",u);else{var l=function(e,t,n){o||(o=a.defer((function(){o=null,t&&t.value===n||u(e)})))};t.on("keydown",(function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||l(e,this,this.value)})),i.hasEvent("paste")&&t.on("paste cut drop",l)}t.on("change",u),Wi[s]&&r.$$hasNativeValidators&&s===n.type&&t.on("keydown wheel mousedown",(function(e){if(!o){var t=this.validity,n=t.badInput,r=t.typeMismatch;o=a.defer((function(){o=null,t.badInput===n&&t.typeMismatch===r||u(e)}))}})),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function ta(e,t){return function(n,r){var i,a;if(K(n))return n;if(U(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Li.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},w(i,(function(e,n){n<t.length&&(a[t[n]]=+e)}));var o=new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0);return a.yyyy<100&&o.setFullYear(a.yyyy),o}}return NaN}}function na(e,t,n,r){return function(i,a,o,s,c,u,l,f){ra(i,a,o,s,e),ea(0,a,o,s,c,u);var A,h,p="time"===e||"datetimelocal"===e;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:t.test(n)?I(n,A):void(s.$$parserName=e)})),s.$formatters.push((function(e){if(e&&!K(e))throw Ra("datefmt","Expected `{0}` to be a date",e);if(m(e)){A=e;var t=s.$options.getOption("timezone");return t&&(h=t,A=me(A,t,!0)),function(e,t){var n=r;p&&U(s.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=l("date")(e,n,t);p&&s.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,""));return i}(e,t)}return A=null,h=null,""})),H(o.min)||o.ngMin){var d=o.min||f(o.ngMin)(i),g=b(d);s.$validators.min=function(e){return!m(e)||T(g)||n(e)>=g},o.$observe("min",(function(e){e!==d&&(g=b(e),d=e,s.$validate())}))}if(H(o.max)||o.ngMax){var y=o.max||f(o.ngMax)(i),v=b(y);s.$validators.max=function(e){return!m(e)||T(v)||n(e)<=v},o.$observe("max",(function(e){e!==y&&(v=b(e),y=e,s.$validate())}))}function m(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function b(e){return H(e)&&!K(e)?I(e)||void 0:e}function I(e,t){var r=s.$options.getOption("timezone");h&&h!==r&&(t=ve(t,ye(h)));var i=n(e,t);return!isNaN(i)&&r&&(i=me(i,r)),i}}}function ra(e,t,n,r,i){var a=t[0];(r.$$hasNativeValidators=j(a.validity))&&r.$parsers.push((function(e){var n=t.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return e;r.$$parserName=i}))}function ia(e){e.$parsers.push((function(t){return e.$isEmpty(t)?null:$i.test(t)?parseFloat(t):void(e.$$parserName="number")})),e.$formatters.push((function(t){if(!e.$isEmpty(t)){if(!L(t))throw Ra("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}))}function aa(e){return H(e)&&!L(e)&&(e=parseFloat(e)),D(e)?void 0:e}function oa(e){return(0|e)===e}function sa(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function ca(e,t,n){var r=Number(e),i=!oa(r),a=!oa(t),o=!oa(n);if(i||a||o){var s=i?sa(r):0,c=a?sa(t):0,u=o?sa(n):0,l=Math.max(s,c,u),f=Math.pow(10,l);r*=f,t*=f,n*=f,i&&(r=Math.round(r)),a&&(t=Math.round(t)),o&&(n=Math.round(n))}return(r-t)%n==0}function ua(e,t,n,r,i){var a;if(H(r)){if(!(a=e(r)).constant)throw Ra("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return a(t)}return i}var la=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,a,o,s){s[0]&&(Xi[f(o.type)]||Xi.text)(i,a,o,s[0],t,e,n,r)}}}}],fa=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===f(n.type))return{pre:function(t,n,r,i){var a=n[0];a.parentNode&&a.parentNode.insertBefore(a,a.nextSibling),Object.defineProperty&&Object.defineProperty(a,"value",e)}}}}},Aa=/^(true|false|\d+)$/,ha=function(){function e(e,t,n){var r=H(n)?n:9===a?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Aa.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,(function(t){e(n,r,t)}))}}}},pa=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,(function(e){n.textContent=je(e)}))}}}}],da=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var a=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,a.expressions),r=r[0],i.$observe("ngBindTemplate",(function(e){r.textContent=T(e)?"":e}))}}}}],ga=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var a=t(i.ngBindHtml),o=t(i.ngBindHtml,(function(t){return e.valueOf(t)}));return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(o,(function(){var n=a(t);r.html(e.getTrustedHtml(n)||"")}))}}}}],ya=O({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}});function va(e,t){var n;return e="ngClass"+e,["$parse",function(o){return{restrict:"AC",link:function(s,c,u){var l,f=c.data("$classCounts"),A=!0;function h(e,t){var n=[];return w(e,(function(e){(t>0||f[e])&&(f[e]=(f[e]||0)+t,f[e]===+(t>0)&&n.push(e))})),n.join(" ")}f||(f=He(),c.data("$classCounts",f)),"ngClass"!==e&&(n||(n=o("$index",(function(e){return 1&e}))),s.$watch(n,(function(e){e===t?(n=h(i(n=l),1),u.$addClass(n)):function(e){e=h(i(e),-1),u.$removeClass(e)}(l);var n;A=e}))),s.$watch(o(u[e],a),(function(e){A===t&&function(e,t){var n=i(e),a=i(t),o=r(n,a),s=r(a,n),c=h(o,-1),l=h(s,1);u.$addClass(l),u.$removeClass(c)}(l,e);l=e}))}}}];function r(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],a=0;a<t.length;a++)if(i===t[a])continue e;n.push(i)}return n}function i(e){return e&&e.split(" ")}function a(e){if(!e)return e;var t=e;return G(e)?t=e.map(a).join(" "):j(e)?t=Object.keys(e).filter((function(t){return e[t]})).join(" "):U(e)||(t=e+""),t}}var ma=va("",!0),ba=va("Odd",0),Ia=va("Even",1),wa=Di({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Ca=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ba={},Ea={blur:!0,focus:!0};function _a(e,t,n,r,i,a){return{restrict:"A",compile:function(o,s){var c=e(s[r]);return function(e,r){r.on(i,(function(r){var i=function(){c(e,{$event:r})};if(t.$$phase)if(a)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)}))}}}}w("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=pn("ng-"+e);Ba[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return _a(n,r,i,t,e,Ea[e])}]}));var ka=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,a,o){var s,c,u;n.$watch(i.ngIf,(function(n){n?c||o((function(n,a){c=a,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)})):(u&&(u.remove(),u=null),c&&(c.$destroy(),c=null),s&&(u=Te(s.clone),e.leave(u).done((function(e){!1!==e&&(u=null)})),s=null))}))}}}],Qa=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:m.noop,compile:function(r,i){var a=i.ngInclude||i.src,o=i.onload||"",s=i.autoscroll;return function(r,i,c,u,l){var f,A,h,p=0,d=function(){A&&(A.remove(),A=null),f&&(f.$destroy(),f=null),h&&(n.leave(h).done((function(e){!1!==e&&(A=null)})),A=h,h=null)};r.$watch(a,(function(a){var c=function(e){!1===e||!H(s)||s&&!r.$eval(s)||t()},A=++p;a?(e(a,!0).then((function(e){if(!r.$$destroyed&&A===p){var t=r.$new();u.template=e;var s=l(t,(function(e){d(),n.enter(e,null,i).done(c)}));h=s,(f=t).$emit("$includeContentLoaded",a),r.$eval(o)}}),(function(){r.$$destroyed||A===p&&(d(),r.$emit("$includeContentError",a))})),r.$emit("$includeContentRequested",a)):(d(),u.template=null)}))}}}}],Sa=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,a){if(g.call(r[0]).match(/SVG/))return r.empty(),void t(at(a.template,e.document).childNodes)(n,(function(e){r.append(e)}),{futureParentElement:r});r.html(a.template),t(r.contents())(n)}}}],xa=Di({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Da=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,o=a?Z(i):i;r.$parsers.push((function(e){if(!T(e)){var t=[];return e&&w(e.split(o),(function(e){e&&t.push(a?Z(e):e)})),t}})),r.$formatters.push((function(e){if(G(e))return e.join(i)})),r.$isEmpty=function(e){return!e||!e.length}}}},Pa="ng-valid",Ma="ng-invalid",Fa="ng-pristine",Oa="ng-dirty",Ra=i("ngModel");function Ta(e,t,n,r,i,a,o,s,c){var u;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(e),this.$$parentForm=Fi,this.$options=Ha,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=a,this.$$timeout=o,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,ji(this),(u=this).$$scope.$watch((function(e){var t=u.$$ngModelGet(e);return t===u.$modelValue||u.$modelValue!=u.$modelValue&&t!=t||u.$$setModelValue(t),t}))}Ta.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Ta.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return Y(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){Y(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Ra("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,be(this.$$element))},$render:M,$isEmpty:function(e){return T(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Oa),this.$$animate.addClass(this.$$element,Fa)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Fa),this.$$animate.addClass(this.$$element,Oa),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!D(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),a=this;this.$$runValidators(t,e,(function(e){i||n===e||(a.$modelValue=e?t:void 0,a.$modelValue!==r&&a.$$writeModelToScope())}))}},$$runValidators:function(e,t,n){this.$$currentValidationRunId++;var r,i,a=this.$$currentValidationRunId,o=this;(function(){var e=o.$$parserName;if(!T(o.$$parserValid))return o.$$parserValid||(w(o.$validators,(function(e,t){s(t,null)})),w(o.$asyncValidators,(function(e,t){s(t,null)}))),s(e,o.$$parserValid),o.$$parserValid;s(e,null);return!0})()?!function(){var n=!0;if(w(o.$validators,(function(r,i){var a=Boolean(r(e,t));n=n&&a,s(i,a)})),!n)return w(o.$asyncValidators,(function(e,t){s(t,null)})),!1;return!0}()?c(!1):(r=[],i=!0,w(o.$asyncValidators,(function(n,a){var o=n(e,t);if(!W(o))throw Ra("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",o);s(a,void 0),r.push(o.then((function(){s(a,!0)}),(function(){i=!1,s(a,!1)})))})),r.length?o.$$q.all(r).then((function(){c(i)}),M):c(!0)):c(!1);function s(e,t){a===o.$$currentValidationRunId&&o.$setValidity(e,t)}function c(e){a===o.$$currentValidationRunId&&n(e)}},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!T(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(T(e=this.$parsers[n](e))){this.$$parserValid=!1;break}D(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function a(){t.$modelValue!==r&&t.$$writeModelToScope()}this.$$rawModelValue=e,i&&(this.$modelValue=e,a()),this.$$runValidators(e,this.$$lastCommittedViewValue,(function(n){i||(t.$modelValue=n?e:void 0,a())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),w(this.$viewChangeListeners,(function(e){try{e()}catch(e){this.$$exceptionHandler(e)}}),this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");L(t[e])?t=t[e]:L(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:L(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,M))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Ni({clazz:Ta,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Ha,ja=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ta,priority:1,compile:function(t){return t.addClass(Fa).addClass("ng-untouched").addClass(Pa),{pre:function(e,t,n,r){var i=r[0],a=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),a.$addControl(i),n.$observe("name",(function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)})),e.$on("$destroy",(function(){i.$$parentForm.$removeControl(i)}))},post:function(t,n,r,i){var a=i[0];function o(){a.$setTouched()}a.$$setUpdateOnEvents(),n.on("blur",(function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))}))}}}}}],Na=/(\s+|^)default(\s+|$)/;function Ua(e){this.$$options=e}Ua.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return w(e=Q({},e),(function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Z(n.replace(Na,(function(){return e.updateOnDefault=!0," "}))))}),this),t&&(delete e["*"],Ka(e,this.$$options)),Ka(e,Ha.$$options),new Ua(e)}},Ha=new Ua({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var La=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:Ha,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function Ka(e,t){w(t,(function(t,n){H(e[n])||(e[n]=t)}))}var Ga=Di({terminal:!0,priority:1e3}),$a=i("ngOptions"),Ya=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Ja=["$compile","$document","$parse",function(t,n,r){var i=e.document.createElement("option"),a=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=M},post:function(e,s,c,u){for(var l=u[0],f=u[1],A=c.multiple,h=0,p=s.children(),d=p.length;h<d;h++)if(""===p[h].value){l.hasEmptyOption=!0,l.emptyOption=p.eq(h);break}s.empty();var g,y=!!l.emptyOption;o(i.cloneNode(!1)).val("?");var v=function(e,t,n){var i=e.match(Ya);if(!i)throw $a("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,be(t));var a=i[5]||i[7],o=i[6],s=/ as /.test(i[0])&&i[1],c=i[9],u=r(i[2]?i[1]:a),l=s&&r(s)||u,f=c&&r(c),A=c?function(e,t){return f(n,t)}:function(e){return Mt(e)},h=function(e,t){return A(e,m(e,t))},p=r(i[2]||i[1]),d=r(i[3]||""),g=r(i[4]||""),y=r(i[8]),v={},m=o?function(e,t){return v[o]=t,v[a]=e,v}:function(e){return v[a]=e,v};function b(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function w(e){var t;if(!o&&I(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}return{trackBy:c,getTrackByValue:h,getWatchables:r(y,(function(e){for(var t=[],r=w(e=e||[]),a=r.length,o=0;o<a;o++){var s=e===r?o:r[o],c=e[s],u=m(c,s),l=A(c,u);if(t.push(l),i[2]||i[1]){var f=p(n,u);t.push(f)}if(i[4]){var h=g(n,u);t.push(h)}}return t})),getOptions:function(){for(var e=[],t={},r=y(n)||[],i=w(r),a=i.length,o=0;o<a;o++){var s=r===i?o:i[o],u=r[s],f=m(u,s),v=l(n,f),I=A(v,f),C=new b(I,v,p(n,f),d(n,f),g(n,f));e.push(C),t[I]=C}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[h(e)]},getViewValueFromOption:function(e){return c?ae(e.viewValue):e.viewValue}}}}}(c.ngOptions,s,e),m=n[0].createDocumentFragment();function b(e,t){var n=i.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label);t.value=e.selectValue}(e,n)}function C(e){var t=g.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}l.generateUnknownOptionValue=function(e){return"?"},A?(l.writeValue=function(e){if(g){var t=e&&e.map(C)||[];g.items.forEach((function(e){e.element.selected&&!re(t,e)&&(e.element.selected=!1)}))}},l.readValue=function(){var e=s.val()||[],t=[];return w(e,(function(e){var n=g.selectValueMap[e];n&&!n.disabled&&t.push(g.getViewValueFromOption(n))})),t},v.trackBy&&e.$watchCollection((function(){if(G(f.$viewValue))return f.$viewValue.map((function(e){return v.getTrackByValue(e)}))}),(function(){f.$render()}))):(l.writeValue=function(e){if(g){var t=s[0].options[s[0].selectedIndex],n=g.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(l.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):l.selectUnknownOrEmptyOption(e)}},l.readValue=function(){var e=g.selectValueMap[s.val()];return e&&!e.disabled?(l.unselectEmptyOption(),l.removeUnknownOption(),g.getViewValueFromOption(e)):null},v.trackBy&&e.$watch((function(){return v.getTrackByValue(f.$viewValue)}),(function(){f.$render()}))),y&&(t(l.emptyOption)(e),s.prepend(l.emptyOption),8===l.emptyOption[0].nodeType?(l.hasEmptyOption=!1,l.registerOption=function(e,t){""===t.val()&&(l.hasEmptyOption=!0,l.emptyOption=t,l.emptyOption.removeClass("ng-scope"),f.$render(),t.on("$destroy",(function(){var e=l.$isEmptyOptionSelected();l.hasEmptyOption=!1,l.emptyOption=void 0,e&&f.$render()})))}):l.emptyOption.removeClass("ng-scope")),e.$watchCollection(v.getWatchables,(function(){var e=g&&l.readValue();if(g)for(var t=g.items.length-1;t>=0;t--){var n=g.items[t];H(n.group)?Ct(n.element.parentNode):Ct(n.element)}g=v.getOptions();var r={};if(g.items.forEach((function(e){var t;H(e.group)?((t=r[e.group])||(t=a.cloneNode(!1),m.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),b(e,t)):b(e,m)})),s[0].appendChild(m),f.$render(),!f.$isEmpty(e)){var i=l.readValue();(v.trackBy||A?se(e,i):e===i)||(f.$setViewValue(i),f.$render())}}))}}}}],Va=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,o,s){var c,u=s.count,l=s.$attr.when&&o.attr(s.$attr.when),A=s.offset||0,h=a.$eval(l)||{},p={},d=t.startSymbol(),g=t.endSymbol(),y=d+u+"-"+A+g,v=m.noop;function b(e){o.text(e||"")}w(s,(function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+f(n[2]);h[r]=o.attr(s.$attr[t])}})),w(h,(function(e,n){p[n]=t(e.replace(r,y))})),a.$watch(u,(function(t){var r=parseFloat(t),i=D(r);if(i||r in h||(r=e.pluralCat(r-A)),!(r===c||i&&D(c))){v();var o=p[r];T(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+l),v=M,b()):v=a.$watch(o,b),c=r}}))}}}],za=i("ngRef"),qa=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=pn(ne(t)),i=e(n.ngRef),a=i.assign||function(){throw za("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,o){var s;if(o.hasOwnProperty("ngRefRead")){if("$element"===o.ngRefRead)s=t;else if(!(s=t.data("$"+o.ngRefRead+"Controller")))throw za("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else s=t.data("$"+r+"Controller");a(e,s=s||t),t.on("$destroy",(function(){i(e)===s&&a(e,null)}))}}}}],Wa=["$parse","$animate","$compile",function(e,t,n){var r=i("ngRepeat"),a=function(e,t,n,r,i,a,o){e[n]=r,i&&(e[i]=a),e.$index=t,e.$first=0===t,e.$last=t===o-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},o=function(e){return e.clone[0]},s=function(e){return e.clone[e.clone.length-1]},c=function(e,t,n){return Mt(n)},u=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,f){var A=f.ngRepeat,h=n.$$createComment("end ngRepeat",A),p=A.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",A);var d=p[1],g=p[2],y=p[3],v=p[4];if(!(p=d.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",d);var m,b=p[3]||p[1],C=p[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);if(v){var B={$id:Mt},E=e(v);m=function(e,t,n,r){return C&&(B[C]=t),B[b]=n,B.$index=r,E(e,B)}}return function(e,n,i,f,p){var d=He();e.$watchCollection(g,(function(i){var f,g,v,E,_,k,Q,S,x,D,P,M,F=n[0],O=He();if(y&&(e[y]=i),I(i))x=i,S=m||c;else for(var R in S=m||u,x=[],i)l.call(i,R)&&"$"!==R.charAt(0)&&x.push(R);for(E=x.length,P=new Array(E),f=0;f<E;f++)if(_=i===x?f:x[f],k=i[_],Q=S(e,_,k,f),d[Q])D=d[Q],delete d[Q],O[Q]=D,P[f]=D;else{if(O[Q])throw w(P,(function(e){e&&e.scope&&(d[e.id]=e)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",A,Q,k);P[f]={id:Q,scope:void 0,clone:void 0},O[Q]=!0}for(var T in B&&(B[b]=void 0),d){if(M=Te((D=d[T]).clone),t.leave(M),M[0].parentNode)for(f=0,g=M.length;f<g;f++)M[f].$$NG_REMOVED=!0;D.scope.$destroy()}for(f=0;f<E;f++)if(_=i===x?f:x[f],k=i[_],(D=P[f]).scope){v=F;do{v=v.nextSibling}while(v&&v.$$NG_REMOVED);o(D)!==v&&t.move(Te(D.clone),null,F),F=s(D),a(D.scope,f,b,k,C,_,E)}else p((function(e,n){D.scope=n;var r=h.cloneNode(!1);e[e.length++]=r,t.enter(e,null,F),F=r,D.clone=e,O[D.id]=D,a(D.scope,f,b,k,C,_,E)}));d=O}))}}}}],Xa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,(function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],Za=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,(function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],eo=Di((function(e,t,n){e.$watchCollection(n.ngStyle,(function(e,n){n&&e!==n&&w(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}))})),to=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var o=i.ngSwitch||i.on,s=[],c=[],u=[],l=[],f=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(o,(function(n){for(var r,i;u.length;)e.cancel(u.pop());for(r=0,i=l.length;r<i;++r){var o=Te(c[r].clone);l[r].$destroy(),(u[r]=e.leave(o)).done(f(u,r))}c.length=0,l.length=0,(s=a.cases["!"+n]||a.cases["?"])&&w(s,(function(n){n.transclude((function(r,i){l.push(i);var a=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var o={clone:r};c.push(o),e.enter(r,a.parent(),a)}))}))}))}}}],no=Di({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){w(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(e,t,n){return n[t-1]!==e})),(function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})}))}}),ro=Di({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),io=i("ngTransclude"),ao=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,a){if(!a)throw io("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",be(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var o=r.ngTransclude||r.ngTranscludeSlot;function s(){n(e,(function(e){t.append(e)}))}a((function(e,n){e.length&&function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==Ne||r.nodeValue.trim())return!0}}(e)?t.append(e):(s(),n.$destroy())}),null,o),o&&!a.isSlotFilled(o)&&s()}}}}],oo=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],so={$setViewValue:M,$render:M};function co(e,t){e.prop("selected",t),e.attr("selected",t)}var uo=["$element","$scope",function(t,n){var r=this,i=new Rt;r.selectValueMap={},r.ngModelCtrl=so,r.multiple=!1,r.unknownOption=o(e.document.createElement("option")),r.hasEmptyOption=!1,r.emptyOption=void 0,r.renderUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),t.prepend(r.unknownOption),co(r.unknownOption,!0),t.val(n)},r.updateUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),co(r.unknownOption,!0),t.val(n)},r.generateUnknownOptionValue=function(e){return"? "+Mt(e)+" ?"},r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.selectEmptyOption=function(){r.emptyOption&&(t.val(""),co(r.emptyOption,!0))},r.unselectEmptyOption=function(){r.hasEmptyOption&&co(r.emptyOption,!1)},n.$on("$destroy",(function(){r.renderUnknownOption=M})),r.readValue=function(){var e=t.val(),n=e in r.selectValueMap?r.selectValueMap[e]:e;return r.hasOption(n)?n:null},r.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&co(o(n),!1),r.hasOption(e)){r.removeUnknownOption();var i=Mt(e);t.val(i in r.selectValueMap?i:e);var a=t[0].options[t[0].selectedIndex];co(o(a),!0)}else r.selectUnknownOrEmptyOption(e)},r.addOption=function(e,t){if(8!==t[0].nodeType){Re(e,'"option value"'),""===e&&(r.hasEmptyOption=!0,r.emptyOption=t);var n=i.get(e)||0;i.set(e,n+1),s()}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.delete(e),""===e&&(r.hasEmptyOption=!1,r.emptyOption=void 0)):i.set(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.$hasEmptyOption=function(){return r.hasEmptyOption},r.$isUnknownOptionSelected=function(){return t[0].options[0]===r.unknownOption[0]},r.$isEmptyOptionSelected=function(){return r.hasEmptyOption&&t[0].options[t[0].selectedIndex]===r.emptyOption[0]},r.selectUnknownOrEmptyOption=function(e){null==e&&r.emptyOption?(r.removeUnknownOption(),r.selectEmptyOption()):r.unknownOption.parent().length?r.updateUnknownOption(e):r.renderUnknownOption(e)};var a=!1;function s(){a||(a=!0,n.$$postDigest((function(){a=!1,r.ngModelCtrl.$render()})))}var c=!1;function u(e){c||(c=!0,n.$$postDigest((function(){n.$$destroyed||(c=!1,r.ngModelCtrl.$setViewValue(r.readValue()),e&&r.ngModelCtrl.$render())})))}r.registerOption=function(e,t,n,i,a){var o,c;n.$attr.ngValue?n.$observe("value",(function(e){var n,i=t.prop("selected");H(c)&&(r.removeOption(o),delete r.selectValueMap[c],n=!0),c=Mt(e),o=e,r.selectValueMap[c]=e,r.addOption(e,t),t.attr("value",c),n&&i&&u()})):i?n.$observe("value",(function(e){var n;r.readValue();var i=t.prop("selected");H(o)&&(r.removeOption(o),n=!0),o=e,r.addOption(e,t),n&&i&&u()})):a?e.$watch(a,(function(e,i){n.$set("value",e);var a=t.prop("selected");i!==e&&r.removeOption(i),r.addOption(e,t),i&&a&&u()})):r.addOption(n.value,t);n.$observe("disabled",(function(e){("true"===e||e&&t.prop("selected"))&&(r.multiple?u(!0):(r.ngModelCtrl.$setViewValue(null),r.ngModelCtrl.$render()))})),t.on("$destroy",(function(){var e=r.readValue(),t=n.value;r.removeOption(t),s(),(r.multiple&&e&&-1!==e.indexOf(t)||e===t)&&u(!0)}))}}],lo=function(){return{restrict:"E",require:["select","?ngModel"],controller:uo,priority:1,link:{pre:function(e,t,n,r){var i=r[0],a=r[1];if(!a)return void(i.registerOption=M);if(i.ngModelCtrl=a,t.on("change",(function(){i.removeUnknownOption(),e.$apply((function(){a.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return w(t.find("option"),(function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),e},i.writeValue=function(e){w(t.find("option"),(function(t){var n=!!e&&(re(e,t.value)||re(e,i.selectValueMap[t.value]));n!==t.selected&&co(o(t),n)}))};var s,c=NaN;e.$watch((function(){c!==a.$viewValue||se(s,a.$viewValue)||(s=Ue(a.$viewValue),a.$render()),c=a.$viewValue})),a.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,r){var i=r[1];if(!i)return;var a=r[0];i.$render=function(){a.writeValue(i.$viewValue)}}}}},fo=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return H(n.ngValue)||(H(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var a=t.parent(),o=a.data("$selectController")||a.parent().data("$selectController");o&&o.registerOption(e,t,n,r,i)}}}}],Ao=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var a=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!a||!i.$isEmpty(t)},r.$observe("required",(function(e){a!==e&&(a=e,i.$validate())}))}}}}],ho=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&u.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,a){if(a){var o=n.pattern;n.ngPattern?o=i(e):r=n.pattern;var s=yo(o,r,t);n.$observe("pattern",(function(e){var n=s;s=yo(e,r,t),(n&&n.toString())!==(s&&s.toString())&&a.$validate()})),a.$validators.pattern=function(e,t){return a.$isEmpty(t)||T(s)||s.test(t)}}}}}}],po=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var a=r.maxlength||e(r.ngMaxlength)(t),o=vo(a);r.$observe("maxlength",(function(e){a!==e&&(o=vo(e),a=e,i.$validate())})),i.$validators.maxlength=function(e,t){return o<0||i.$isEmpty(t)||t.length<=o}}}}}],go=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var a=r.minlength||e(r.ngMinlength)(t),o=vo(a)||-1;r.$observe("minlength",(function(e){a!==e&&(o=vo(e)||-1,a=e,i.$validate())})),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=o}}}}}];function yo(e,t,n){if(e){if(U(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,be(n));return e}}function vo(e){var t=x(e);return D(t)?-1:t}e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var t;if(!Me){var n=ue();(s=T(n)?e.jQuery:n?e[n]:void 0)&&s.fn.on?(o=s,Q(s.fn,{scope:Et.scope,isolateScope:Et.isolateScope,controller:Et.controller,injector:Et.injector,inheritedData:Et.inheritedData})):o=st,t=o.cleanData,o.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(o._data(r)||{}).events)&&n.$destroy&&o(r).triggerHandler("$destroy");t(e)},m.element=o,Me=!0}}(),function(t){Q(t,{errorHandlingConfig:n,bootstrap:Qe,copy:ae,extend:Q,merge:S,equals:se,element:o,forEach:w,injector:Yt,noop:M,bind:Ae,toJson:pe,fromJson:de,identity:F,isUndefined:T,isDefined:H,isString:U,isFunction:Y,isObject:j,isNumber:L,isElement:te,isArray:G,version:Ke,isDate:K,callbacks:{$$counter:0},getTestability:xe,reloadWithDebugInfo:Se,$$minErr:i,$$csp:ce,$$encodeUriSegment:Ce,$$encodeUriQuery:Be,$$lowercase:f,$$stringify:je,$$uppercase:A}),(c=function(e){var t=i("$injector"),n=i("ng");function r(e,t,n){return e[t]||(e[t]=n())}var a=r(e,"angular",Object);return a.$$minErr=a.$$minErr||i,r(a,"module",(function(){var e={};return function(i,a,o){var s={};return function(e,t){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid {0} name",t)}(i,"module"),a&&e.hasOwnProperty(i)&&(e[i]=null),r(e,i,(function(){if(!a)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var e=[],r=[],c=[],u=f("$injector","invoke","push",r),l={_invokeQueue:e,_configBlocks:r,_runBlocks:c,info:function(e){if(H(e)){if(!j(e))throw n("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:a,name:i,provider:A("$provide","provider"),factory:A("$provide","factory"),service:A("$provide","service"),value:f("$provide","value"),constant:f("$provide","constant","unshift"),decorator:A("$provide","decorator",r),animation:A("$animateProvider","register"),filter:A("$filterProvider","register"),controller:A("$controllerProvider","register"),directive:A("$compileProvider","directive"),component:A("$compileProvider","component"),config:u,run:function(e){return c.push(e),this}};return o&&u(o),l;function f(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),l}}function A(t,n,r){return r||(r=e),function(e,a){return a&&Y(a)&&(a.$$moduleName=i),r.push([t,n,arguments]),l}}}))}}))}(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Tr}),e.provider("$compile",ln).directive({a:Pi,input:la,textarea:la,form:Ti,script:oo,select:lo,option:fo,ngBind:pa,ngBindHtml:ga,ngBindTemplate:da,ngClass:ma,ngClassEven:Ia,ngClassOdd:ba,ngCloak:wa,ngController:Ca,ngForm:Hi,ngHide:Za,ngIf:ka,ngInclude:Qa,ngInit:xa,ngNonBindable:Ga,ngPluralize:Va,ngRef:qa,ngRepeat:Wa,ngShow:Xa,ngStyle:eo,ngSwitch:to,ngSwitchWhen:no,ngSwitchDefault:ro,ngOptions:Ja,ngTransclude:ao,ngModel:ja,ngList:Da,ngChange:ya,pattern:ho,ngPattern:ho,required:Ao,ngRequired:Ao,minlength:go,ngMinlength:go,maxlength:po,ngMaxlength:po,ngValue:ha,ngModelOptions:La}).directive({ngInclude:Sa,input:fa}).directive(Mi).directive(Ba),e.provider({$anchorScroll:Jt,$animate:Zt,$animateCss:nn,$$animateJs:Wt,$$animateQueue:Xt,$$AnimateRunner:tn,$$animateAsyncRun:en,$browser:an,$cacheFactory:on,$controller:bn,$document:In,$$isDocumentHidden:wn,$exceptionHandler:Cn,$filter:ci,$$forceReflow:Bn,$interpolate:Ln,$interval:Gn,$$intervalFactory:$n,$http:Hn,$httpParamSerializer:Dn,$httpParamSerializerJQLike:Pn,$httpBackend:Nn,$xhrFactory:jn,$jsonpCallbacks:Yn,$location:ur,$log:lr,$parse:Qr,$rootScope:Rr,$q:Sr,$$q:xr,$sce:Gr,$sceDelegate:Kr,$sniffer:$r,$$taskTrackerFactory:Yr,$templateCache:sn,$templateRequest:zr,$$testability:qr,$timeout:Xr,$window:ai,$$rAF:Or,$$jqLite:Pt,$$Map:Tt,$$cookieReader:si})}]).info({angularVersion:"1.7.9"})}(m),m.module("ngLocale",[],["$provide",function(e){var t="one",n="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,r){var i=0|e,a=function(e,t){var n=t;void 0===n&&(n=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3));var r=Math.pow(10,n);return{v:n,f:(e*r|0)%r}}(e,r);return 1==i&&0==a.v?t:n}})}]),o((function(){ke(e.document,Qe)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>')},function(e,t,n){"use strict";var r,i,a,o,s,c,u,l,f,A=angular.$$minErr("$sanitize");angular.module("ngSanitize",[]).provider("$sanitize",(function(){var e=!1,t=!1;this.$get=["$$sanitizeUri",function(n){return e=!0,t&&i(w,b),function(e){var t=[];return l(e,f(t,(function(e,t){return!/^unsafe:/.test(n(e,t))}))),t.join("")}}],this.enableSvg=function(e){return s(e)?(t=e,this):t},this.addValidElements=function(t){return e||(o(t)&&(t={htmlElements:t}),S(b,t.svgElements),S(p,t.htmlVoidElements),S(w,t.htmlVoidElements),S(w,t.htmlElements)),this},this.addValidAttrs=function(t){return e||i(_,Q(t,!0)),this},r=angular.bind,i=angular.extend,a=angular.forEach,o=angular.isArray,s=angular.isDefined,c=angular.$$lowercase,angular.noop,l=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var n=x(e);if(!n)return"";var r=5;do{if(0===r)throw A("uinput","Failed to sanitize html because the input is unstable");r--,e=n.innerHTML,n=x(e)}while(e!==n.innerHTML);var i=n.firstChild;for(;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),D(i.attributes));break;case 3:t.chars(i.textContent)}var a;if(!((a=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),a=F("nextSibling",i))))for(;null==a&&(i=F("parentNode",i))!==n;)a=F("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=a}for(;i=n.firstChild;)n.removeChild(i)},f=function(e,t){var n=!1,i=r(e,e.push);return{start:function(e,r){e=c(e),!n&&I[e]&&(n=e),n||!0!==w[e]||(i("<"),i(e),a(r,(function(n,r){var a=c(r),o="img"===e&&"src"===a||"background"===a;!0!==_[a]||!0===C[a]&&!t(n,o)||(i(" "),i(r),i('="'),i(P(n)),i('"'))})),i(">"))},end:function(e){e=c(e),n||!0!==w[e]||!0===p[e]||(i("</"),i(e),i(">")),e==n&&(n=!1)},chars:function(e){n||i(P(e))}}},u=window.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=/([^#-~ |!])/g,p=k("area,br,col,hr,img,wbr"),d=k("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),g=k("rp,rt"),y=i({},g,d),v=i({},d,k("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul,progress")),m=i({},g,k("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),b=k("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),I=k("script,style"),w=i({},p,v,m,y),C=k("background,cite,href,longdesc,src,xlink:href,xml:base"),B=k("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width,style"),E=k("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),_=i({},C,E,B);function k(e,t){return Q(e.split(","),t)}function Q(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?c(e[n]):e[n]]=!0;return r}function S(e,t){t&&t.length&&i(e,Q(t))}var x=function(e,t){var n;if(!t||!t.implementation)throw A("noinert","Can't create an inert html document");var r=((n=t.implementation.createHTMLDocument("inert")).documentElement||n.getDocumentElement()).querySelector("body");return r.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',r.querySelector("svg")?(r.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',r.querySelector("svg img")?function(t){t="<remove></remove>"+t;try{var n=(new e.DOMParser).parseFromString(t,"text/html").body;return n.firstChild.remove(),n}catch(e){return}}:function(e){r.innerHTML=e,t.documentMode&&M(r);return r}):function(t){t="<remove></remove>"+t;try{t=encodeURI(t)}catch(e){return}var n=new e.XMLHttpRequest;n.responseType="document",n.open("GET","data:text/html;charset=utf-8,"+t,!1),n.send(null);var r=n.response.body;return r.firstChild.remove(),r}}(window,window.document);function D(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function P(e){return e.replace(/&/g,"&amp;").replace(n,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(h,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function M(e){for(;e;){if(e.nodeType===window.Node.ELEMENT_NODE)for(var t=e.attributes,n=0,r=t.length;n<r;n++){var i=t[n],a=i.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(e.removeAttributeNode(i),n--,r--)}var o=e.firstChild;o&&M(o),e=F("nextSibling",e)}}function F(e,t){var n=t[e];if(n&&u.call(t,n))throw A("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}})).info({angularVersion:'"NG_VERSION_FULL"'})},function(e,t){!function(e){"use strict";var t=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function n(){var e=this;function t(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.build_tree=function(n){var r,i,a,o=e.dyn_tree,s=e.stat_desc.static_tree,c=e.stat_desc.elems,u=-1;for(n.heap_len=0,n.heap_max=573,r=0;r<c;r++)0!==o[2*r]?(n.heap[++n.heap_len]=u=r,n.depth[r]=0):o[2*r+1]=0;for(;n.heap_len<2;)o[2*(a=n.heap[++n.heap_len]=u<2?++u:0)]=1,n.depth[a]=0,n.opt_len--,s&&(n.static_len-=s[2*a+1]);for(e.max_code=u,r=Math.floor(n.heap_len/2);r>=1;r--)n.pqdownheap(o,r);a=c;do{r=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(o,1),i=n.heap[1],n.heap[--n.heap_max]=r,n.heap[--n.heap_max]=i,o[2*a]=o[2*r]+o[2*i],n.depth[a]=Math.max(n.depth[r],n.depth[i])+1,o[2*r+1]=o[2*i+1]=a,n.heap[1]=a++,n.pqdownheap(o,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],function(t){var n,r,i,a,o,s,c=e.dyn_tree,u=e.stat_desc.static_tree,l=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,A=e.stat_desc.max_length,h=0;for(a=0;a<=15;a++)t.bl_count[a]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(a=c[2*c[2*(r=t.heap[n])+1]+1]+1)>A&&(a=A,h++),c[2*r+1]=a,r>e.max_code||(t.bl_count[a]++,o=0,r>=f&&(o=l[r-f]),s=c[2*r],t.opt_len+=s*(a+o),u&&(t.static_len+=s*(u[2*r+1]+o)));if(0!==h){do{for(a=A-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[A]--,h-=2}while(h>0);for(a=A;0!==a;a--)for(r=t.bl_count[a];0!==r;)(i=t.heap[--n])>e.max_code||(c[2*i+1]!=a&&(t.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(n),function(e,n,r){var i,a,o,s=[],c=0;for(i=1;i<=15;i++)s[i]=c=c+r[i-1]<<1;for(a=0;a<=n;a++)0!==(o=e[2*a+1])&&(e[2*a]=t(s[o]++,o))}(o,e.max_code,n.bl_count)}}function r(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i}n._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],n.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],n.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],n.d_code=function(e){return e<256?t[e]:t[256+(e>>>7)]},n.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],n.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],n.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],n.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],r.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],r.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],r.static_l_desc=new r(r.static_ltree,n.extra_lbits,257,286,15),r.static_d_desc=new r(r.static_dtree,n.extra_dbits,0,30,15),r.static_bl_desc=new r(null,n.extra_blbits,0,19,7);function i(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var a=[new i(0,0,0,0,0),new i(4,4,8,4,1),new i(4,5,16,8,1),new i(4,6,32,32,1),new i(4,4,16,16,2),new i(8,16,32,32,2),new i(8,16,128,128,2),new i(8,32,128,256,2),new i(32,128,258,1024,2),new i(32,258,258,4096,2)],o=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function s(e,t,n,r){var i=e[2*t],a=e[2*n];return i<a||i==a&&r[t]<=r[n]}function c(){var e,t,i,c,u,l,f,A,h,p,d,g,y,v,m,b,I,w,C,B,E,_,k,Q,S,x,D,P,M,F,O,R,T,H,j,N,U,L,K,G,$,Y=this,J=new n,V=new n,z=new n;function q(){var e;for(e=0;e<286;e++)O[2*e]=0;for(e=0;e<30;e++)R[2*e]=0;for(e=0;e<19;e++)T[2*e]=0;O[512]=1,Y.opt_len=Y.static_len=0,N=L=0}function W(e,t){var n,r,i=-1,a=e[1],o=0,s=7,c=4;for(0===a&&(s=138,c=3),e[2*(t+1)+1]=65535,n=0;n<=t;n++)r=a,a=e[2*(n+1)+1],++o<s&&r==a||(o<c?T[2*r]+=o:0!==r?(r!=i&&T[2*r]++,T[32]++):o<=10?T[34]++:T[36]++,o=0,i=r,0===a?(s=138,c=3):r==a?(s=6,c=3):(s=7,c=4))}function X(e){Y.pending_buf[Y.pending++]=e}function Z(e){X(255&e),X(e>>>8&255)}function ee(e,t){var n,r=t;$>16-r?(Z(G|=(n=e)<<$&65535),G=n>>>16-$,$+=r-16):(G|=e<<$&65535,$+=r)}function te(e,t){var n=2*e;ee(65535&t[n],65535&t[n+1])}function ne(e,t){var n,r,i=-1,a=e[1],o=0,s=7,c=4;for(0===a&&(s=138,c=3),n=0;n<=t;n++)if(r=a,a=e[2*(n+1)+1],!(++o<s&&r==a)){if(o<c)do{te(r,T)}while(0!=--o);else 0!==r?(r!=i&&(te(r,T),o--),te(16,T),ee(o-3,2)):o<=10?(te(17,T),ee(o-3,3)):(te(18,T),ee(o-11,7));o=0,i=r,0===a?(s=138,c=3):r==a?(s=6,c=3):(s=7,c=4)}}function re(){16==$?(Z(G),G=0,$=0):$>=8&&(X(255&G),G>>>=8,$-=8)}function ie(e,t){var r,i,a;if(Y.pending_buf[U+2*N]=e>>>8&255,Y.pending_buf[U+2*N+1]=255&e,Y.pending_buf[H+N]=255&t,N++,0===e?O[2*t]++:(L++,e--,O[2*(n._length_code[t]+256+1)]++,R[2*n.d_code(e)]++),0==(8191&N)&&D>2){for(r=8*N,i=E-I,a=0;a<30;a++)r+=R[2*a]*(5+n.extra_dbits[a]);if(r>>>=3,L<Math.floor(N/2)&&r<Math.floor(i/2))return!0}return N==j-1}function ae(e,t){var r,i,a,o,s=0;if(0!==N)do{r=Y.pending_buf[U+2*s]<<8&65280|255&Y.pending_buf[U+2*s+1],i=255&Y.pending_buf[H+s],s++,0===r?te(i,e):(te((a=n._length_code[i])+256+1,e),0!==(o=n.extra_lbits[a])&&ee(i-=n.base_length[a],o),r--,te(a=n.d_code(r),t),0!==(o=n.extra_dbits[a])&&ee(r-=n.base_dist[a],o))}while(s<N);te(256,e),K=e[513]}function oe(){$>8?Z(G):$>0&&X(255&G),G=0,$=0}function se(e,t,n){ee(0+(n?1:0),3),function(e,t,n){oe(),K=8,n&&(Z(t),Z(~t)),Y.pending_buf.set(A.subarray(e,e+t),Y.pending),Y.pending+=t}(e,t,!0)}function ce(e,t,i){var a,o,s=0;D>0?(J.build_tree(Y),V.build_tree(Y),s=function(){var e;for(W(O,J.max_code),W(R,V.max_code),z.build_tree(Y),e=18;e>=3&&0===T[2*n.bl_order[e]+1];e--);return Y.opt_len+=3*(e+1)+5+5+4,e}(),a=Y.opt_len+3+7>>>3,(o=Y.static_len+3+7>>>3)<=a&&(a=o)):a=o=t+5,t+4<=a&&-1!=e?se(e,t,i):o==a?(ee(2+(i?1:0),3),ae(r.static_ltree,r.static_dtree)):(ee(4+(i?1:0),3),function(e,t,r){var i;for(ee(e-257,5),ee(t-1,5),ee(r-4,4),i=0;i<r;i++)ee(T[2*n.bl_order[i]+1],3);ne(O,e-1),ne(R,t-1)}(J.max_code+1,V.max_code+1,s+1),ae(O,R)),q(),i&&oe()}function ue(t){ce(I>=0?I:-1,E-I,t),I=E,e.flush_pending()}function le(){var t,n,r,i;do{if(0===(i=h-k-E)&&0===E&&0===k)i=u;else if(-1==i)i--;else if(E>=u+u-262){A.set(A.subarray(u,u+u),0),_-=u,E-=u,I-=u,r=t=y;do{n=65535&d[--r],d[r]=n>=u?n-u:0}while(0!=--t);r=t=u;do{n=65535&p[--r],p[r]=n>=u?n-u:0}while(0!=--t);i+=u}if(0===e.avail_in)return;t=e.read_buf(A,E+k,i),(k+=t)>=3&&(g=((g=255&A[E])<<b^255&A[E+1])&m)}while(k<262&&0!==e.avail_in)}function fe(e){var t,n,r=S,i=E,a=Q,o=E>u-262?E-(u-262):0,s=F,c=f,l=E+258,h=A[i+a-1],d=A[i+a];Q>=M&&(r>>=2),s>k&&(s=k);do{if(A[(t=e)+a]==d&&A[t+a-1]==h&&A[t]==A[i]&&A[++t]==A[i+1]){i+=2,t++;do{}while(A[++i]==A[++t]&&A[++i]==A[++t]&&A[++i]==A[++t]&&A[++i]==A[++t]&&A[++i]==A[++t]&&A[++i]==A[++t]&&A[++i]==A[++t]&&A[++i]==A[++t]&&i<l);if(n=258-(l-i),i=l-258,n>a){if(_=e,a=n,n>=s)break;h=A[i+a-1],d=A[i+a]}}}while((e=65535&p[e&c])>o&&0!=--r);return a<=k?a:k}function Ae(e){return e.total_in=e.total_out=0,e.msg=null,Y.pending=0,Y.pending_out=0,t=113,c=0,J.dyn_tree=O,J.stat_desc=r.static_l_desc,V.dyn_tree=R,V.stat_desc=r.static_d_desc,z.dyn_tree=T,z.stat_desc=r.static_bl_desc,G=0,$=0,K=8,q(),function(){var e;for(h=2*u,d[y-1]=0,e=0;e<y-1;e++)d[e]=0;x=a[D].max_lazy,M=a[D].good_length,F=a[D].nice_length,S=a[D].max_chain,E=0,I=0,k=0,w=Q=2,B=0,g=0}(),0}Y.depth=[],Y.bl_count=[],Y.heap=[],O=[],R=[],T=[],Y.pqdownheap=function(e,t){for(var n=Y.heap,r=n[t],i=t<<1;i<=Y.heap_len&&(i<Y.heap_len&&s(e,n[i+1],n[i],Y.depth)&&i++,!s(e,r,n[i],Y.depth));)n[t]=n[i],t=i,i<<=1;n[t]=r},Y.deflateInit=function(e,t,n,r,a,o){return r||(r=8),a||(a=8),o||(o=0),e.msg=null,-1==t&&(t=6),a<1||a>9||8!=r||n<9||n>15||t<0||t>9||o<0||o>2?-2:(e.dstate=Y,f=(u=1<<(l=n))-1,m=(y=1<<(v=a+7))-1,b=Math.floor((v+3-1)/3),A=new Uint8Array(2*u),p=[],d=[],j=1<<a+6,Y.pending_buf=new Uint8Array(4*j),i=4*j,U=Math.floor(j/2),H=3*j,D=t,P=o,255&r,Ae(e))},Y.deflateEnd=function(){return 42!=t&&113!=t&&666!=t?-2:(Y.pending_buf=null,d=null,p=null,A=null,Y.dstate=null,113==t?-3:0)},Y.deflateParams=function(e,t,n){var r=0;return-1==t&&(t=6),t<0||t>9||n<0||n>2?-2:(a[D].func!=a[t].func&&0!==e.total_in&&(r=e.deflate(1)),D!=t&&(x=a[D=t].max_lazy,M=a[D].good_length,F=a[D].nice_length,S=a[D].max_chain),P=n,r)},Y.deflateSetDictionary=function(e,n,r){var i,a=r,o=0;if(!n||42!=t)return-2;if(a<3)return 0;for(a>u-262&&(o=r-(a=u-262)),A.set(n.subarray(o,o+a),0),E=a,I=a,g=((g=255&A[0])<<b^255&A[1])&m,i=0;i<=a-3;i++)g=(g<<b^255&A[i+2])&m,p[i&f]=d[g],d[g]=i;return 0},Y.deflate=function(n,s){var h,v,S,M,F,O;if(s>4||s<0)return-2;if(!n.next_out||!n.next_in&&0!==n.avail_in||666==t&&4!=s)return n.msg=o[4],-2;if(0===n.avail_out)return n.msg=o[7],-5;if(e=n,M=c,c=s,42==t&&(v=8+(l-8<<4)<<8,(S=(D-1&255)>>1)>3&&(S=3),v|=S<<6,0!==E&&(v|=32),t=113,X((O=v+=31-v%31)>>8&255),X(255&O)),0!==Y.pending){if(e.flush_pending(),0===e.avail_out)return c=-1,0}else if(0===e.avail_in&&s<=M&&4!=s)return e.msg=o[7],-5;if(666==t&&0!==e.avail_in)return n.msg=o[7],-5;if(0!==e.avail_in||0!==k||0!=s&&666!=t){switch(F=-1,a[D].func){case 0:F=function(t){var n,r=65535;for(r>i-5&&(r=i-5);;){if(k<=1){if(le(),0===k&&0==t)return 0;if(0===k)break}if(E+=k,k=0,n=I+r,(0===E||E>=n)&&(k=E-n,E=n,ue(!1),0===e.avail_out))return 0;if(E-I>=u-262&&(ue(!1),0===e.avail_out))return 0}return ue(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(s);break;case 1:F=function(t){for(var n,r=0;;){if(k<262){if(le(),k<262&&0==t)return 0;if(0===k)break}if(k>=3&&(g=(g<<b^255&A[E+2])&m,r=65535&d[g],p[E&f]=d[g],d[g]=E),0!==r&&(E-r&65535)<=u-262&&2!=P&&(w=fe(r)),w>=3)if(n=ie(E-_,w-3),k-=w,w<=x&&k>=3){w--;do{E++,g=(g<<b^255&A[E+2])&m,r=65535&d[g],p[E&f]=d[g],d[g]=E}while(0!=--w);E++}else E+=w,w=0,g=((g=255&A[E])<<b^255&A[E+1])&m;else n=ie(0,255&A[E]),k--,E++;if(n&&(ue(!1),0===e.avail_out))return 0}return ue(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(s);break;case 2:F=function(t){for(var n,r,i=0;;){if(k<262){if(le(),k<262&&0==t)return 0;if(0===k)break}if(k>=3&&(g=(g<<b^255&A[E+2])&m,i=65535&d[g],p[E&f]=d[g],d[g]=E),Q=w,C=_,w=2,0!==i&&Q<x&&(E-i&65535)<=u-262&&(2!=P&&(w=fe(i)),w<=5&&(1==P||3==w&&E-_>4096)&&(w=2)),Q>=3&&w<=Q){r=E+k-3,n=ie(E-1-C,Q-3),k-=Q-1,Q-=2;do{++E<=r&&(g=(g<<b^255&A[E+2])&m,i=65535&d[g],p[E&f]=d[g],d[g]=E)}while(0!=--Q);if(B=0,w=2,E++,n&&(ue(!1),0===e.avail_out))return 0}else if(0!==B){if((n=ie(0,255&A[E-1]))&&ue(!1),E++,k--,0===e.avail_out)return 0}else B=1,E++,k--}return 0!==B&&(n=ie(0,255&A[E-1]),B=0),ue(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(s)}if(2!=F&&3!=F||(t=666),0==F||2==F)return 0===e.avail_out&&(c=-1),0;if(1==F){if(1==s)ee(2,3),te(256,r.static_ltree),re(),1+K+10-$<9&&(ee(2,3),te(256,r.static_ltree),re()),K=7;else if(se(0,0,!1),3==s)for(h=0;h<y;h++)d[h]=0;if(e.flush_pending(),0===e.avail_out)return c=-1,0}}return 4!=s?0:1}}function u(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}u.prototype={deflateInit:function(e,t){return this.dstate=new c,t||(t=15),this.dstate.deflateInit(this,e,t)},deflate:function(e){return this.dstate?this.dstate.deflate(this,e):-2},deflateEnd:function(){if(!this.dstate)return-2;var e=this.dstate.deflateEnd();return this.dstate=null,e},deflateParams:function(e,t){return this.dstate?this.dstate.deflateParams(this,e,t):-2},deflateSetDictionary:function(e,t){return this.dstate?this.dstate.deflateSetDictionary(this,e,t):-2},read_buf:function(e,t,n){var r=this.avail_in;return r>n&&(r=n),0===r?0:(this.avail_in-=r,e.set(this.next_in.subarray(this.next_in_index,this.next_in_index+r),t),this.next_in_index+=r,this.total_in+=r,r)},flush_pending:function(){var e=this.dstate.pending;e>this.avail_out&&(e=this.avail_out),0!==e&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+e),this.next_out_index),this.next_out_index+=e,this.dstate.pending_out+=e,this.total_out+=e,this.avail_out-=e,this.dstate.pending-=e,0===this.dstate.pending&&(this.dstate.pending_out=0))}};var l=e.zip||e;l.Deflater=l._jzlib_Deflater=function(e){var t=new u,n=new Uint8Array(512),r=e?e.level:-1;void 0===r&&(r=-1),t.deflateInit(r),t.next_out=n,this.append=function(e,r){var i,a=[],o=0,s=0,c=0;if(e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=512,0!=t.deflate(0))throw new Error("deflating: "+t.msg);t.next_out_index&&(512==t.next_out_index?a.push(new Uint8Array(n)):a.push(new Uint8Array(n.subarray(0,t.next_out_index)))),c+=t.next_out_index,r&&t.next_in_index>0&&t.next_in_index!=o&&(r(t.next_in_index),o=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return i=new Uint8Array(c),a.forEach((function(e){i.set(e,s),s+=e.length})),i}},this.flush=function(){var e,r,i=[],a=0,o=0;do{if(t.next_out_index=0,t.avail_out=512,1!=(e=t.deflate(4))&&0!=e)throw new Error("deflating: "+t.msg);512-t.avail_out>0&&i.push(new Uint8Array(n.subarray(0,t.next_out_index))),o+=t.next_out_index}while(t.avail_in>0||0===t.avail_out);return t.deflateEnd(),r=new Uint8Array(o),i.forEach((function(e){r.set(e,a),a+=e.length})),r}}}(this)},function(e,t){!function(e){"use strict";var t=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],n=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],r=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function c(){var e,t,n,r,c,u;function l(e,t,i,a,o,s,l,f,A,h,p){var d,g,y,v,m,b,I,w,C,B,E,_,k,Q,S;B=0,m=i;do{n[e[t+B]]++,B++,m--}while(0!==m);if(n[0]==i)return l[0]=-1,f[0]=0,0;for(w=f[0],b=1;b<=15&&0===n[b];b++);for(I=b,w<b&&(w=b),m=15;0!==m&&0===n[m];m--);for(y=m,w>m&&(w=m),f[0]=w,Q=1<<b;b<m;b++,Q<<=1)if((Q-=n[b])<0)return-3;if((Q-=n[m])<0)return-3;for(n[m]+=Q,u[1]=b=0,B=1,k=2;0!=--m;)u[k]=b+=n[B],k++,B++;m=0,B=0;do{0!==(b=e[t+B])&&(p[u[b]++]=m),B++}while(++m<i);for(i=u[y],u[0]=m=0,B=0,v=-1,_=-w,c[0]=0,E=0,S=0;I<=y;I++)for(d=n[I];0!=d--;){for(;I>_+w;){if(v++,S=(S=y-(_+=w))>w?w:S,(g=1<<(b=I-_))>d+1&&(g-=d+1,k=I,b<S))for(;++b<S&&!((g<<=1)<=n[++k]);)g-=n[k];if(S=1<<b,h[0]+S>1440)return-3;c[v]=E=h[0],h[0]+=S,0!==v?(u[v]=m,r[0]=b,r[1]=w,b=m>>>_-w,r[2]=E-c[v-1]-b,A.set(r,3*(c[v-1]+b))):l[0]=E}for(r[1]=I-_,B>=i?r[0]=192:p[B]<a?(r[0]=p[B]<256?0:96,r[2]=p[B++]):(r[0]=s[p[B]-a]+16+64,r[2]=o[p[B++]-a]),g=1<<I-_,b=m>>>_;b<S;b+=g)A.set(r,3*(E+b));for(b=1<<I-1;0!=(m&b);b>>>=1)m^=b;for(m^=b,C=(1<<_)-1;(m&C)!=u[v];)v--,C=(1<<(_-=w))-1}return 0!==Q&&1!=y?-5:0}function f(i){var a;for(e||(e=[],t=[],n=new Int32Array(16),r=[],c=new Int32Array(15),u=new Int32Array(16)),t.length<i&&(t=[]),a=0;a<i;a++)t[a]=0;for(a=0;a<16;a++)n[a]=0;for(a=0;a<3;a++)r[a]=0;c.set(n.subarray(0,15),0),u.set(n.subarray(0,16),0)}this.inflate_trees_bits=function(n,r,i,a,o){var s;return f(19),e[0]=0,-3==(s=l(n,0,19,19,null,null,i,r,a,e,t))?o.msg="oversubscribed dynamic bit lengths tree":-5!=s&&0!==r[0]||(o.msg="incomplete dynamic bit lengths tree",s=-3),s},this.inflate_trees_dynamic=function(n,r,c,u,A,h,p,d,g){var y;return f(288),e[0]=0,0!=(y=l(c,0,n,257,i,a,h,u,d,e,t))||0===u[0]?(-3==y?g.msg="oversubscribed literal/length tree":-4!=y&&(g.msg="incomplete literal/length tree",y=-3),y):(f(288),0!=(y=l(c,n,r,0,o,s,p,A,d,e,t))||0===A[0]&&n>257?(-3==y?g.msg="oversubscribed distance tree":-5==y?(g.msg="incomplete distance tree",y=-3):-4!=y&&(g.msg="empty distance tree with lengths",y=-3),y):0)}}c.inflate_trees_fixed=function(e,t,i,a){return e[0]=9,t[0]=5,i[0]=n,a[0]=r,0};function u(){var e,n,r,i,a=0,o=0,s=0,c=0,u=0,l=0,f=0,A=0,h=0,p=0;function d(e,n,r,i,a,o,s,c){var u,l,f,A,h,p,d,g,y,v,m,b,I,w,C,B;d=c.next_in_index,g=c.avail_in,h=s.bitb,p=s.bitk,v=(y=s.write)<s.read?s.read-y-1:s.end-y,m=t[e],b=t[n];do{for(;p<20;)g--,h|=(255&c.read_byte(d++))<<p,p+=8;if(0!==(A=(l=r)[B=3*((f=i)+(u=h&m))]))for(;;){if(h>>=l[B+1],p-=l[B+1],0!=(16&A)){for(A&=15,I=l[B+2]+(h&t[A]),h>>=A,p-=A;p<15;)g--,h|=(255&c.read_byte(d++))<<p,p+=8;for(A=(l=a)[B=3*((f=o)+(u=h&b))];;){if(h>>=l[B+1],p-=l[B+1],0!=(16&A)){for(A&=15;p<A;)g--,h|=(255&c.read_byte(d++))<<p,p+=8;if(w=l[B+2]+(h&t[A]),h>>=A,p-=A,v-=I,y>=w)y-(C=y-w)>0&&2>y-C?(s.window[y++]=s.window[C++],s.window[y++]=s.window[C++],I-=2):(s.window.set(s.window.subarray(C,C+2),y),y+=2,C+=2,I-=2);else{C=y-w;do{C+=s.end}while(C<0);if(I>(A=s.end-C)){if(I-=A,y-C>0&&A>y-C)do{s.window[y++]=s.window[C++]}while(0!=--A);else s.window.set(s.window.subarray(C,C+A),y),y+=A,C+=A,A=0;C=0}}if(y-C>0&&I>y-C)do{s.window[y++]=s.window[C++]}while(0!=--I);else s.window.set(s.window.subarray(C,C+I),y),y+=I,C+=I,I=0;break}if(0!=(64&A))return c.msg="invalid distance code",g+=I=p>>3<(I=c.avail_in-g)?p>>3:I,d-=I,p-=I<<3,s.bitb=h,s.bitk=p,c.avail_in=g,c.total_in+=d-c.next_in_index,c.next_in_index=d,s.write=y,-3;u+=l[B+2],A=l[B=3*(f+(u+=h&t[A]))]}break}if(0!=(64&A))return 0!=(32&A)?(g+=I=p>>3<(I=c.avail_in-g)?p>>3:I,d-=I,p-=I<<3,s.bitb=h,s.bitk=p,c.avail_in=g,c.total_in+=d-c.next_in_index,c.next_in_index=d,s.write=y,1):(c.msg="invalid literal/length code",g+=I=p>>3<(I=c.avail_in-g)?p>>3:I,d-=I,p-=I<<3,s.bitb=h,s.bitk=p,c.avail_in=g,c.total_in+=d-c.next_in_index,c.next_in_index=d,s.write=y,-3);if(u+=l[B+2],0===(A=l[B=3*(f+(u+=h&t[A]))])){h>>=l[B+1],p-=l[B+1],s.window[y++]=l[B+2],v--;break}}else h>>=l[B+1],p-=l[B+1],s.window[y++]=l[B+2],v--}while(v>=258&&g>=10);return g+=I=p>>3<(I=c.avail_in-g)?p>>3:I,d-=I,p-=I<<3,s.bitb=h,s.bitk=p,c.avail_in=g,c.total_in+=d-c.next_in_index,c.next_in_index=d,s.write=y,0}this.init=function(t,a,o,s,c,u){e=0,f=t,A=a,r=o,h=s,i=c,p=u,n=null},this.proc=function(g,y,v){var m,b,I,w,C,B,E,_=0,k=0,Q=0;for(Q=y.next_in_index,w=y.avail_in,_=g.bitb,k=g.bitk,B=(C=g.write)<g.read?g.read-C-1:g.end-C;;)switch(e){case 0:if(B>=258&&w>=10&&(g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,v=d(f,A,r,h,i,p,g,y),Q=y.next_in_index,w=y.avail_in,_=g.bitb,k=g.bitk,B=(C=g.write)<g.read?g.read-C-1:g.end-C,0!=v)){e=1==v?7:9;break}s=f,n=r,o=h,e=1;case 1:for(m=s;k<m;){if(0===w)return g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);v=0,w--,_|=(255&y.read_byte(Q++))<<k,k+=8}if(_>>>=n[(b=3*(o+(_&t[m])))+1],k-=n[b+1],0===(I=n[b])){c=n[b+2],e=6;break}if(0!=(16&I)){u=15&I,a=n[b+2],e=2;break}if(0==(64&I)){s=I,o=b/3+n[b+2];break}if(0!=(32&I)){e=7;break}return e=9,y.msg="invalid literal/length code",v=-3,g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);case 2:for(m=u;k<m;){if(0===w)return g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);v=0,w--,_|=(255&y.read_byte(Q++))<<k,k+=8}a+=_&t[m],_>>=m,k-=m,s=A,n=i,o=p,e=3;case 3:for(m=s;k<m;){if(0===w)return g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);v=0,w--,_|=(255&y.read_byte(Q++))<<k,k+=8}if(_>>=n[(b=3*(o+(_&t[m])))+1],k-=n[b+1],0!=(16&(I=n[b]))){u=15&I,l=n[b+2],e=4;break}if(0==(64&I)){s=I,o=b/3+n[b+2];break}return e=9,y.msg="invalid distance code",v=-3,g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);case 4:for(m=u;k<m;){if(0===w)return g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);v=0,w--,_|=(255&y.read_byte(Q++))<<k,k+=8}l+=_&t[m],_>>=m,k-=m,e=5;case 5:for(E=C-l;E<0;)E+=g.end;for(;0!==a;){if(0===B&&(C==g.end&&0!==g.read&&(B=(C=0)<g.read?g.read-C-1:g.end-C),0===B&&(g.write=C,v=g.inflate_flush(y,v),B=(C=g.write)<g.read?g.read-C-1:g.end-C,C==g.end&&0!==g.read&&(B=(C=0)<g.read?g.read-C-1:g.end-C),0===B)))return g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);g.window[C++]=g.window[E++],B--,E==g.end&&(E=0),a--}e=0;break;case 6:if(0===B&&(C==g.end&&0!==g.read&&(B=(C=0)<g.read?g.read-C-1:g.end-C),0===B&&(g.write=C,v=g.inflate_flush(y,v),B=(C=g.write)<g.read?g.read-C-1:g.end-C,C==g.end&&0!==g.read&&(B=(C=0)<g.read?g.read-C-1:g.end-C),0===B)))return g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);v=0,g.window[C++]=c,B--,e=0;break;case 7:if(k>7&&(k-=8,w++,Q--),g.write=C,v=g.inflate_flush(y,v),B=(C=g.write)<g.read?g.read-C-1:g.end-C,g.read!=g.write)return g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);e=8;case 8:return v=1,g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);case 9:return v=-3,g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v);default:return v=-2,g.bitb=_,g.bitk=k,y.avail_in=w,y.total_in+=Q-y.next_in_index,y.next_in_index=Q,g.write=C,g.inflate_flush(y,v)}},this.free=function(){}}var l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function f(e,n){var r,i=this,a=0,o=0,s=0,f=0,A=[0],h=[0],p=new u,d=0,g=new Int32Array(4320),y=new c;i.bitk=0,i.bitb=0,i.window=new Uint8Array(n),i.end=n,i.read=0,i.write=0,i.reset=function(e,t){t&&(t[0]=0),6==a&&p.free(e),a=0,i.bitk=0,i.bitb=0,i.read=i.write=0},i.reset(e,null),i.inflate_flush=function(e,t){var n,r,a;return r=e.next_out_index,(n=((a=i.read)<=i.write?i.write:i.end)-a)>e.avail_out&&(n=e.avail_out),0!==n&&-5==t&&(t=0),e.avail_out-=n,e.total_out+=n,e.next_out.set(i.window.subarray(a,a+n),r),r+=n,(a+=n)==i.end&&(a=0,i.write==i.end&&(i.write=0),(n=i.write-a)>e.avail_out&&(n=e.avail_out),0!==n&&-5==t&&(t=0),e.avail_out-=n,e.total_out+=n,e.next_out.set(i.window.subarray(a,a+n),r),r+=n,a+=n),e.next_out_index=r,i.read=a,t},i.proc=function(e,n){var u,v,m,b,I,w,C,B;for(b=e.next_in_index,I=e.avail_in,v=i.bitb,m=i.bitk,C=(w=i.write)<i.read?i.read-w-1:i.end-w;;)switch(a){case 0:for(;m<3;){if(0===I)return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);n=0,I--,v|=(255&e.read_byte(b++))<<m,m+=8}switch(d=1&(u=7&v),u>>>1){case 0:v>>>=3,v>>>=u=7&(m-=3),m-=u,a=1;break;case 1:var E=[],_=[],k=[[]],Q=[[]];c.inflate_trees_fixed(E,_,k,Q),p.init(E[0],_[0],k[0],0,Q[0],0),v>>>=3,m-=3,a=6;break;case 2:v>>>=3,m-=3,a=3;break;case 3:return v>>>=3,m-=3,a=9,e.msg="invalid block type",n=-3,i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n)}break;case 1:for(;m<32;){if(0===I)return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);n=0,I--,v|=(255&e.read_byte(b++))<<m,m+=8}if((~v>>>16&65535)!=(65535&v))return a=9,e.msg="invalid stored block lengths",n=-3,i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);o=65535&v,v=m=0,a=0!==o?2:0!==d?7:0;break;case 2:if(0===I)return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);if(0===C&&(w==i.end&&0!==i.read&&(C=(w=0)<i.read?i.read-w-1:i.end-w),0===C&&(i.write=w,n=i.inflate_flush(e,n),C=(w=i.write)<i.read?i.read-w-1:i.end-w,w==i.end&&0!==i.read&&(C=(w=0)<i.read?i.read-w-1:i.end-w),0===C)))return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);if(n=0,(u=o)>I&&(u=I),u>C&&(u=C),i.window.set(e.read_buf(b,u),w),b+=u,I-=u,w+=u,C-=u,0!=(o-=u))break;a=0!==d?7:0;break;case 3:for(;m<14;){if(0===I)return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);n=0,I--,v|=(255&e.read_byte(b++))<<m,m+=8}if(s=u=16383&v,(31&u)>29||(u>>5&31)>29)return a=9,e.msg="too many length or distance symbols",n=-3,i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);if(u=258+(31&u)+(u>>5&31),!r||r.length<u)r=[];else for(B=0;B<u;B++)r[B]=0;v>>>=14,m-=14,f=0,a=4;case 4:for(;f<4+(s>>>10);){for(;m<3;){if(0===I)return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);n=0,I--,v|=(255&e.read_byte(b++))<<m,m+=8}r[l[f++]]=7&v,v>>>=3,m-=3}for(;f<19;)r[l[f++]]=0;if(A[0]=7,0!=(u=y.inflate_trees_bits(r,A,h,g,e)))return-3==(n=u)&&(r=null,a=9),i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);f=0,a=5;case 5:for(;!(f>=258+(31&(u=s))+(u>>5&31));){var S,x;for(u=A[0];m<u;){if(0===I)return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);n=0,I--,v|=(255&e.read_byte(b++))<<m,m+=8}if(u=g[3*(h[0]+(v&t[u]))+1],(x=g[3*(h[0]+(v&t[u]))+2])<16)v>>>=u,m-=u,r[f++]=x;else{for(B=18==x?7:x-14,S=18==x?11:3;m<u+B;){if(0===I)return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);n=0,I--,v|=(255&e.read_byte(b++))<<m,m+=8}if(m-=u,S+=(v>>>=u)&t[B],v>>>=B,m-=B,(B=f)+S>258+(31&(u=s))+(u>>5&31)||16==x&&B<1)return r=null,a=9,e.msg="invalid bit length repeat",n=-3,i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);x=16==x?r[B-1]:0;do{r[B++]=x}while(0!=--S);f=B}}h[0]=-1;var D=[],P=[],M=[],F=[];if(D[0]=9,P[0]=6,u=s,0!=(u=y.inflate_trees_dynamic(257+(31&u),1+(u>>5&31),r,D,P,M,F,g,e)))return-3==u&&(r=null,a=9),n=u,i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);p.init(D[0],P[0],g,M[0],g,F[0]),a=6;case 6:if(i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,1!=(n=p.proc(i,e,n)))return i.inflate_flush(e,n);if(n=0,p.free(e),b=e.next_in_index,I=e.avail_in,v=i.bitb,m=i.bitk,C=(w=i.write)<i.read?i.read-w-1:i.end-w,0===d){a=0;break}a=7;case 7:if(i.write=w,n=i.inflate_flush(e,n),C=(w=i.write)<i.read?i.read-w-1:i.end-w,i.read!=i.write)return i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);a=8;case 8:return n=1,i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);case 9:return n=-3,i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n);default:return n=-2,i.bitb=v,i.bitk=m,e.avail_in=I,e.total_in+=b-e.next_in_index,e.next_in_index=b,i.write=w,i.inflate_flush(e,n)}},i.free=function(e){i.reset(e,null),i.window=null,g=null},i.set_dictionary=function(e,t,n){i.window.set(e.subarray(t,t+n),0),i.read=i.write=n},i.sync_point=function(){return 1==a?1:0}}var A=[0,0,255,255];function h(){var e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):-2}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=function(t){return e.blocks&&e.blocks.free(t),e.blocks=null,0},e.inflateInit=function(n,r){return n.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(n),-2):(e.wbits=r,n.istate.blocks=new f(n,1<<r),t(n),0)},e.inflate=function(e,t){var n,r;if(!e||!e.istate||!e.next_in)return-2;for(t=4==t?-5:0,n=-5;;)switch(e.istate.mode){case 0:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,8!=(15&(e.istate.method=e.read_byte(e.next_in_index++)))){e.istate.mode=13,e.msg="unknown compression method",e.istate.marker=5;break}if(8+(e.istate.method>>4)>e.istate.wbits){e.istate.mode=13,e.msg="invalid window size",e.istate.marker=5;break}e.istate.mode=1;case 1:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,r=255&e.read_byte(e.next_in_index++),((e.istate.method<<8)+r)%31!=0){e.istate.mode=13,e.msg="incorrect header check",e.istate.marker=5;break}if(0==(32&r)){e.istate.mode=7;break}e.istate.mode=2;case 2:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,e.istate.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,e.istate.mode=3;case 3:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,e.istate.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,e.istate.mode=4;case 4:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,e.istate.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,e.istate.mode=5;case 5:return 0===e.avail_in?n:(n=t,e.avail_in--,e.total_in++,e.istate.need+=255&e.read_byte(e.next_in_index++),e.istate.mode=6,2);case 6:return e.istate.mode=13,e.msg="need dictionary",e.istate.marker=0,-2;case 7:if(-3==(n=e.istate.blocks.proc(e,n))){e.istate.mode=13,e.istate.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,e.istate.blocks.reset(e,e.istate.was),e.istate.mode=12;case 12:return 1;case 13:return-3;default:return-2}},e.inflateSetDictionary=function(e,t,n){var r=0,i=n;return e&&e.istate&&6==e.istate.mode?(i>=1<<e.istate.wbits&&(r=n-(i=(1<<e.istate.wbits)-1)),e.istate.blocks.set_dictionary(t,r,i),e.istate.mode=7,0):-2},e.inflateSync=function(e){var n,r,i,a,o;if(!e||!e.istate)return-2;if(13!=e.istate.mode&&(e.istate.mode=13,e.istate.marker=0),0===(n=e.avail_in))return-5;for(r=e.next_in_index,i=e.istate.marker;0!==n&&i<4;)e.read_byte(r)==A[i]?i++:i=0!==e.read_byte(r)?0:4-i,r++,n--;return e.total_in+=r-e.next_in_index,e.next_in_index=r,e.avail_in=n,e.istate.marker=i,4!=i?-3:(a=e.total_in,o=e.total_out,t(e),e.total_in=a,e.total_out=o,e.istate.mode=7,0)},e.inflateSyncPoint=function(e){return e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():-2}}function p(){}p.prototype={inflateInit:function(e){return this.istate=new h,e||(e=15),this.istate.inflateInit(this,e)},inflate:function(e){return this.istate?this.istate.inflate(this,e):-2},inflateEnd:function(){if(!this.istate)return-2;var e=this.istate.inflateEnd(this);return this.istate=null,e},inflateSync:function(){return this.istate?this.istate.inflateSync(this):-2},inflateSetDictionary:function(e,t){return this.istate?this.istate.inflateSetDictionary(this,e,t):-2},read_byte:function(e){return this.next_in.subarray(e,e+1)[0]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}};var d=e.zip||e;d.Inflater=d._jzlib_Inflater=function(){var e=new p,t=new Uint8Array(512),n=!1;e.inflateInit(),e.next_out=t,this.append=function(r,i){var a,o,s=[],c=0,u=0,l=0;if(0!==r.length){e.next_in_index=0,e.next_in=r,e.avail_in=r.length;do{if(e.next_out_index=0,e.avail_out=512,0!==e.avail_in||n||(e.next_in_index=0,n=!0),a=e.inflate(0),n&&-5===a){if(0!==e.avail_in)throw new Error("inflating: bad input")}else if(0!==a&&1!==a)throw new Error("inflating: "+e.msg);if((n||1===a)&&e.avail_in===r.length)throw new Error("inflating: bad input");e.next_out_index&&(512===e.next_out_index?s.push(new Uint8Array(t)):s.push(new Uint8Array(t.subarray(0,e.next_out_index)))),l+=e.next_out_index,i&&e.next_in_index>0&&e.next_in_index!=c&&(i(e.next_in_index),c=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return o=new Uint8Array(l),s.forEach((function(e){o.set(e,u),u+=e.length})),o}},this.flush=function(){e.inflateEnd()}}}(this)},function(e,t){!function(e){"use strict";var t,n="File format is not recognized.",r="Error while reading zip file.";try{t=0===new Blob([new DataView(new ArrayBuffer(0))]).size}catch(e){}function i(){this.crc=-1}function a(){}function o(e,t){var n,r;return n=new ArrayBuffer(e),r=new Uint8Array(n),t&&r.set(t,0),{buffer:n,array:r,view:new DataView(n)}}function s(){}function c(e){var t,n=this;n.size=0,n.init=function(r,i){var a=new Blob([e],{type:"text/plain"});(t=new l(a)).init((function(){n.size=t.size,r()}),i)},n.readUint8Array=function(e,n,r,i){t.readUint8Array(e,n,r,i)}}function u(t){var n,r=this;r.size=0,r.init=function(e){for(var i=t.length;"="==t.charAt(i-1);)i--;n=t.indexOf(",")+1,r.size=Math.floor(.75*(i-n)),e()},r.readUint8Array=function(r,i,a){var s,c=o(i),u=4*Math.floor(r/3),l=4*Math.ceil((r+i)/3),f=e.atob(t.substring(u+n,l+n)),A=r-3*Math.floor(u/4);for(s=A;s<A+i;s++)c.array[s-A]=f.charCodeAt(s);a(c.array)}}function l(e){var t=this;t.size=0,t.init=function(n){t.size=e.size,n()},t.readUint8Array=function(t,n,r,i){var a=new FileReader;a.onload=function(e){r(new Uint8Array(e.target.result))},a.onerror=i;try{a.readAsArrayBuffer(function(e,t,n){if(t<0||n<0||t+n>e.size)throw new RangeError("offset:"+t+", length:"+n+", size:"+e.size);return e.slice?e.slice(t,t+n):e.webkitSlice?e.webkitSlice(t,t+n):e.mozSlice?e.mozSlice(t,t+n):e.msSlice?e.msSlice(t,t+n):void 0}(e,t,n))}catch(e){i(e)}}}function f(){}function A(e){var n;this.init=function(e){n=new Blob([],{type:"text/plain"}),e()},this.writeUint8Array=function(e,r){n=new Blob([n,t?e:e.buffer],{type:"text/plain"}),r()},this.getData=function(t,r){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=r,i.readAsText(n,e)}}function h(t){var n="",r="";this.init=function(e){n+="data:"+(t||"")+";base64,",e()},this.writeUint8Array=function(t,i){var a,o=r.length,s=r;for(r="",a=0;a<3*Math.floor((o+t.length)/3)-o;a++)s+=String.fromCharCode(t[a]);for(;a<t.length;a++)r+=String.fromCharCode(t[a]);s.length>2?n+=e.btoa(s):r=s,i()},this.getData=function(t){t(n+e.btoa(r))}}function p(e){var n;this.init=function(t){n=new Blob([],{type:e}),t()},this.writeUint8Array=function(r,i){n=new Blob([n,t?r:r.buffer],{type:e}),i()},this.getData=function(e){e(n)}}function d(e,t,n,r,i,a,o,s,c,u){var l,f,A,h=0,p=t.sn;function d(){e.removeEventListener("message",g,!1),s(f,A)}function g(t){var n=t.data,i=n.data,s=n.error;if(s)return s.toString=function(){return"Error: "+this.message},void c(s);if(n.sn===p)switch("number"==typeof n.codecTime&&(e.codecTime+=n.codecTime),"number"==typeof n.crcTime&&(e.crcTime+=n.crcTime),n.type){case"append":i?(f+=i.length,r.writeUint8Array(i,(function(){y()}),u)):y();break;case"flush":A=n.crc,i?(f+=i.length,r.writeUint8Array(i,(function(){d()}),u)):d();break;case"progress":o&&o(l+n.loaded,a);break;case"importScripts":case"newTask":case"echo":break;default:console.warn("zip.js:launchWorkerProcess: unknown message: ",n)}}function y(){(l=524288*h)<=a?n.readUint8Array(i+l,Math.min(524288,a-l),(function(n){o&&o(l,a);var r=0===l?t:{sn:p};r.type="append",r.data=n;try{e.postMessage(r,[n.buffer])}catch(t){e.postMessage(r)}h++}),c):e.postMessage({sn:p,type:"flush"})}f=0,e.addEventListener("message",g,!1),y()}function g(e,t,n,r,a,o,s,c,u,l){var f,A=0,h=0,p="input"===o,d="output"===o,g=new i;!function i(){var o;if((f=524288*A)<a)t.readUint8Array(r+f,Math.min(524288,a-f),(function(t){var r;try{r=e.append(t,(function(e){s&&s(f+e,a)}))}catch(e){return void u(e)}r?(h+=r.length,n.writeUint8Array(r,(function(){A++,setTimeout(i,1)}),l),d&&g.append(r)):(A++,setTimeout(i,1)),p&&g.append(t),s&&s(f,a)}),u);else{try{o=e.flush()}catch(e){return void u(e)}o?(d&&g.append(o),h+=o.length,n.writeUint8Array(o,(function(){c(h,g.get())}),l)):c(h,g.get())}}()}function y(t,n,r,i,o,s,c,u,l,f,A){e.zip.useWebWorkers&&c?d(t,{sn:n,codecClass:"NOOP",crcType:"input"},r,i,o,s,l,u,f,A):g(new a,r,i,o,s,"input",l,u,f,A)}function v(e){var t,n,r="",i=["Ç","ü","é","â","ä","à","å","ç","ê","ë","è","ï","î","ì","Ä","Å","É","æ","Æ","ô","ö","ò","û","ù","ÿ","Ö","Ü","ø","£","Ø","×","ƒ","á","í","ó","ú","ñ","Ñ","ª","º","¿","®","¬","½","¼","¡","«","»","_","_","_","¦","¦","Á","Â","À","©","¦","¦","+","+","¢","¥","+","+","-","-","+","-","+","ã","Ã","+","+","-","-","¦","-","+","¤","ð","Ð","Ê","Ë","È","i","Í","Î","Ï","+","+","_","_","¦","Ì","_","Ó","ß","Ô","Ò","õ","Õ","µ","þ","Þ","Ú","Û","Ù","ý","Ý","¯","´","­","±","_","¾","¶","§","÷","¸","°","¨","·","¹","³","²","_"," "];for(t=0;t<e.length;t++)r+=(n=255&e.charCodeAt(t))>127?i[n-128]:String.fromCharCode(n);return r}function m(e){return decodeURIComponent(escape(e))}function b(e){var t,n="";for(t=0;t<e.length;t++)n+=String.fromCharCode(e[t]);return n}function I(e,t,n,r,i){e.version=t.view.getUint16(n,!0),e.bitFlag=t.view.getUint16(n+2,!0),e.compressionMethod=t.view.getUint16(n+4,!0),e.lastModDateRaw=t.view.getUint32(n+6,!0),e.lastModDate=function(e){var t=(4294901760&e)>>16,n=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}(e.lastModDateRaw),1!=(1&e.bitFlag)?((r||8!=(8&e.bitFlag))&&(e.crc32=t.view.getUint32(n+10,!0),e.compressedSize=t.view.getUint32(n+14,!0),e.uncompressedSize=t.view.getUint32(n+18,!0)),4294967295!==e.compressedSize&&4294967295!==e.uncompressedSize?(e.filenameLength=t.view.getUint16(n+22,!0),e.extraFieldLength=t.view.getUint16(n+24,!0)):i("File is using Zip64 (4gb+ file size).")):i("File contains encrypted entry.")}function w(t,i,a){var s=0;function c(){}c.prototype.getData=function(r,i,c,u){var l=this;function f(e,t){u&&!function(e){var t=o(4);return t.view.setUint32(0,e),l.crc32==t.view.getUint32(0)}(t)?a("CRC failed."):r.getData((function(e){i(e)}))}function A(e){a(e||"Error while reading file data.")}function h(e){a(e||"Error while writing file data.")}t.readUint8Array(l.offset,30,(function(i){var p,v=o(i.length,i);1347093252==v.view.getUint32(0)?(I(l,v,4,!1,a),p=l.offset+30+l.filenameLength+l.extraFieldLength,r.init((function(){0===l.compressionMethod?y(l._worker,s++,t,r,p,l.compressedSize,u,f,c,A,h):function(t,n,r,i,a,o,s,c,u,l,f){var A=s?"output":"none";e.zip.useWebWorkers?d(t,{sn:n,codecClass:"Inflater",crcType:A},r,i,a,o,u,c,l,f):g(new e.zip.Inflater,r,i,a,o,A,u,c,l,f)}(l._worker,s++,t,r,p,l.compressedSize,u,f,c,A,h)}),h)):a(n)}),A)};var u={getEntries:function(e){var i=this._worker;!function(e){if(t.size<22)a(n);else{i(22,(function(){i(Math.min(65558,t.size),(function(){a(n)}))}))}function i(n,i){t.readUint8Array(t.size-n,n,(function(t){for(var n=t.length-22;n>=0;n--)if(80===t[n]&&75===t[n+1]&&5===t[n+2]&&6===t[n+3])return void e(new DataView(t.buffer,n,22));i()}),(function(){a(r)}))}}((function(s){var u,l;u=s.getUint32(16,!0),l=s.getUint16(8,!0),u<0||u>=t.size?a(n):t.readUint8Array(u,t.size-u,(function(t){var r,s,u,f,A=0,h=[],p=o(t.length,t);for(r=0;r<l;r++){if((s=new c)._worker=i,1347092738!=p.view.getUint32(A))return void a(n);I(s,p,A+6,!0,a),s.commentLength=p.view.getUint16(A+32,!0),s.directory=16==(16&p.view.getUint8(A+38)),s.offset=p.view.getUint32(A+42,!0),u=b(p.array.subarray(A+46,A+46+s.filenameLength)),s.filename=2048==(2048&s.bitFlag)?m(u):v(u),s.directory||"/"!=s.filename.charAt(s.filename.length-1)||(s.directory=!0),f=b(p.array.subarray(A+46+s.filenameLength+s.extraFieldLength,A+46+s.filenameLength+s.extraFieldLength+s.commentLength)),s.comment=2048==(2048&s.bitFlag)?m(f):v(f),h.push(s),A+=46+s.filenameLength+s.extraFieldLength+s.commentLength}e(h)}),(function(){a(r)}))}))},close:function(e){this._worker&&(this._worker.terminate(),this._worker=null),e&&e()},_worker:null};e.zip.useWebWorkers?k("inflater",(function(e){u._worker=e,i(u)}),(function(e){a(e)})):i(u)}function C(e){return unescape(encodeURIComponent(e))}function B(e){var t,n=[];for(t=0;t<e.length;t++)n.push(e.charCodeAt(t));return n}function E(t,n,r,i){var a={},s=[],c=0,u=0;function l(e){r(e||"Error while writing zip file.")}function f(e){r(e||"Error while reading file data.")}var A={add:function(n,A,h,p,v){var m,b,I,w=this._worker;function E(e,n){var r=o(16);c+=e||0,r.view.setUint32(0,1347094280),void 0!==n&&(m.view.setUint32(10,n,!0),r.view.setUint32(4,n,!0)),A&&(r.view.setUint32(8,e,!0),m.view.setUint32(14,e,!0),r.view.setUint32(12,A.size,!0),m.view.setUint32(18,A.size,!0)),t.writeUint8Array(r.array,(function(){c+=16,h()}),l)}function _(){v=v||{},n=n.trim(),v.directory&&"/"!=n.charAt(n.length-1)&&(n+="/"),a.hasOwnProperty(n)?r("File already exists."):(b=B(C(n)),s.push(n),function(e){var r;I=v.lastModDate||new Date,m=o(26),a[n]={headerArray:m.array,directory:v.directory,filename:b,offset:c,comment:B(C(v.comment||""))},m.view.setUint32(0,335546376),v.version&&m.view.setUint8(0,v.version),i||0===v.level||v.directory||m.view.setUint16(4,2048),m.view.setUint16(6,(I.getHours()<<6|I.getMinutes())<<5|I.getSeconds()/2,!0),m.view.setUint16(8,(I.getFullYear()-1980<<4|I.getMonth()+1)<<5|I.getDate(),!0),m.view.setUint16(22,b.length,!0),(r=o(30+b.length)).view.setUint32(0,1347093252),r.array.set(m.array,4),r.array.set(b,30),c+=r.array.length,t.writeUint8Array(r.array,e,l)}((function(){A?i||0===v.level?y(w,u++,A,t,0,A.size,!0,E,p,f,l):function(t,n,r,i,a,o,s,c,u){e.zip.useWebWorkers?d(t,{sn:n,options:{level:a},codecClass:"Deflater",crcType:"input"},r,i,0,r.size,s,o,c,u):g(new e.zip.Deflater,r,i,0,r.size,"input",s,o,c,u)}(w,u++,A,t,v.level,E,p,f,l):E()})))}A?A.init(_,f):_()},close:function(e){this._worker&&(this._worker.terminate(),this._worker=null);var n,r,i,u=0,f=0;for(r=0;r<s.length;r++)u+=46+(i=a[s[r]]).filename.length+i.comment.length;for(n=o(u+22),r=0;r<s.length;r++)i=a[s[r]],n.view.setUint32(f,1347092738),n.view.setUint16(f+4,5120),n.array.set(i.headerArray,f+6),n.view.setUint16(f+32,i.comment.length,!0),i.directory&&n.view.setUint8(f+38,16),n.view.setUint32(f+42,i.offset,!0),n.array.set(i.filename,f+46),n.array.set(i.comment,f+46+i.filename.length),f+=46+i.filename.length+i.comment.length;n.view.setUint32(f,1347093766),n.view.setUint16(f+8,s.length,!0),n.view.setUint16(f+10,s.length,!0),n.view.setUint32(f+12,u,!0),n.view.setUint32(f+16,c,!0),t.writeUint8Array(n.array,(function(){t.getData(e)}),l)},_worker:null};e.zip.useWebWorkers?k("deflater",(function(e){A._worker=e,n(A)}),(function(e){r(e)})):n(A)}i.prototype.append=function(e){for(var t=0|this.crc,n=this.table,r=0,i=0|e.length;r<i;r++)t=t>>>8^n[255&(t^e[r])];this.crc=t},i.prototype.get=function(){return~this.crc},i.prototype.table=function(){var e,t,n,r=[];for(e=0;e<256;e++){for(n=e,t=0;t<8;t++)1&n?n=n>>>1^3988292384:n>>>=1;r[e]=n}return r}(),a.prototype.append=function(e,t){return e},a.prototype.flush=function(){},c.prototype=new s,c.prototype.constructor=c,u.prototype=new s,u.prototype.constructor=u,l.prototype=new s,l.prototype.constructor=l,f.prototype.getData=function(e){e(this.data)},A.prototype=new f,A.prototype.constructor=A,h.prototype=new f,h.prototype.constructor=h,p.prototype=new f,p.prototype.constructor=p;var _={deflater:["z-worker.js","deflate.js"],inflater:["z-worker.js","inflate.js"]};function k(t,n,r){if(null===e.zip.workerScripts||null===e.zip.workerScriptsPath){var i,a,o;if(e.zip.workerScripts){if(i=e.zip.workerScripts[t],!Array.isArray(i))return void r(new Error("zip.workerScripts."+t+" is not an array!"));a=i,o=document.createElement("a"),i=a.map((function(e){return o.href=e,o.href}))}else(i=_[t].slice(0))[0]=(e.zip.workerScriptsPath||"")+i[0];var s=new Worker(i[0]);s.codecTime=s.crcTime=0,s.postMessage({type:"importScripts",scripts:i.slice(1)}),s.addEventListener("message",(function e(t){var i=t.data;if(i.error)return s.terminate(),void r(i.error);"importScripts"===i.type&&(s.removeEventListener("message",e),s.removeEventListener("error",c),n(s))})),s.addEventListener("error",c)}else r(new Error("Either zip.workerScripts or zip.workerScriptsPath may be set, not both."));function c(e){s.terminate(),r(e)}}function Q(e){console.error(e)}e.zip={Reader:s,Writer:f,BlobReader:l,Data64URIReader:u,TextReader:c,BlobWriter:p,Data64URIWriter:h,TextWriter:A,createReader:function(e,t,n){n=n||Q,e.init((function(){w(e,t,n)}),n)},createWriter:function(e,t,n,r){n=n||Q,r=!!r,e.init((function(){E(e,t,n,r)}),n)},useWebWorkers:!0,workerScriptsPath:null,workerScripts:null}}(this)},function(e,t){!function(e){"use strict";if(e.zWorkerInitialized)throw new Error("z-worker.js should be run only once");e.zWorkerInitialized=!0,addEventListener("message",(function(e){var n=e.data,r=n.type,i=n.sn,a=t[r];if(a)try{a(n)}catch(e){!function(e,t,n){var r={type:e,sn:t,error:o(n)};postMessage(r)}(r,i,e)}}));var t={importScripts:function(e){e.scripts&&e.scripts.length>0&&importScripts.apply(void 0,e.scripts);postMessage({type:"importScripts"})},newTask:r,append:a,flush:a},n={};function r(t){var r=e[t.codecClass],i=t.sn;if(n[i])throw Error("duplicated sn");n[i]={codec:new r(t.options),crcInput:"input"===t.crcType,crcOutput:"output"===t.crcType,crc:new s},postMessage({type:"newTask",sn:i})}var i=e.performance?e.performance.now.bind(e.performance):Date.now;function a(e){var t=e.sn,a=e.type,o=e.data,s=n[t];!s&&e.codecClass&&(r(e),s=n[t]);var c,u="append"===a,l=i();if(u)try{c=s.codec.append(o,(function(e){postMessage({type:"progress",sn:t,loaded:e})}))}catch(e){throw delete n[t],e}else delete n[t],c=s.codec.flush();var f=i()-l;l=i(),o&&s.crcInput&&s.crc.append(o),c&&s.crcOutput&&s.crc.append(c);var A=i()-l,h={type:a,sn:t,codecTime:f,crcTime:A},p=[];c&&(h.data=c,p.push(c.buffer)),u||!s.crcInput&&!s.crcOutput||(h.crc=s.crc.get());try{postMessage(h,p)}catch(e){postMessage(h)}}function o(e){return{message:e.message,stack:e.stack}}function s(){this.crc=-1}function c(){}s.prototype.append=function(e){for(var t=0|this.crc,n=this.table,r=0,i=0|e.length;r<i;r++)t=t>>>8^n[255&(t^e[r])];this.crc=t},s.prototype.get=function(){return~this.crc},s.prototype.table=function(){var e,t,n,r=[];for(e=0;e<256;e++){for(n=e,t=0;t<8;t++)1&n?n=n>>>1^3988292384:n>>>=1;r[e]=n}return r}(),e.NOOP=c,c.prototype.append=function(e,t){return e},c.prototype.flush=function(){}}(this)},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,c=1,u={},l=!1,f=e.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(e);A=A&&A.setTimeout?A:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}),A.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[c]=i,r(c),c++},A.clearImmediate=h}function h(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(31),n(100))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,u=[],l=!1,f=-1;function A(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(A);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof l?t:l,a=Object.create(i.prototype),o=new w(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return B()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=m(o,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function l(){}function f(){}function A(){}var h={};h[i]=function(){return this};var p=Object.getPrototypeOf,d=p&&p(p(C([])));d&&d!==t&&n.call(d,i)&&(h=d);var g=A.prototype=l.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function v(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var u=c(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,s)}))}s(u.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function m(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,m(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:B}}function B(){return{value:void 0,done:!0}}return f.prototype=g.constructor=A,A.constructor=f,A[o]=f.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(v.prototype),v.prototype[a]=function(){return this},e.AsyncIterator=v,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new v(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(g),g[o]="Generator",g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,w.prototype={constructor:w,reset:function(e){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(I),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){var r=n(5);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){var r=n(32),i=n(106),a=n(108);e.exports=function(e,t){return a(i(e,t,r),e+"")}},function(e,t,n){var r=n(107),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=a[o];return u[t]=n(c),r(e,this,u)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(109),i=n(118)(r);e.exports=i},function(e,t,n){var r=n(110),i=n(111),a=n(32),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(18),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(40),i=n(115),a=n(23),o=n(42),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,A=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?A:s).test(o(e))}},function(e,t,n){var r=n(22),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(116),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(16)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(120);e.exports=function(e,t){return e&&e.length&&t&&t.length?r(e,t):e}},function(e,t,n){var r=n(43),i=n(121),a=n(124),o=n(45),s=n(125),c=Array.prototype.splice;e.exports=function(e,t,n,u){var l=u?a:i,f=-1,A=t.length,h=e;for(e===t&&(t=s(t)),n&&(h=r(e,o(n)));++f<A;)for(var p=0,d=t[f],g=n?n(d):d;(p=l(h,g,p,u))>-1;)h!==e&&c.call(h,p,1),c.call(e,p,1);return e}},function(e,t,n){var r=n(44),i=n(122),a=n(123);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<application-view ng-repeat="application in self.applications" application="application"></application-view>'}},function(e,t){},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="main-ui-view" ng-class="self.platformString"><div class="app" id="app" ng-class="self.state.appClass" ng-if="!self.state.needsUnlock &amp;&amp; self.state.ready"><tags-view application="self.application"></tags-view><notes-view application="self.application"></notes-view><editor-group-view application="self.application"></editor-group-view></div><footer-view ng-if="!self.state.needsUnlock &amp;&amp; self.state.ready" application="self.application"></footer-view></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<editor-view ng-repeat="editor in self.editors" application="self.application" editor="editor"></editor-view>'}},function(e,t,n){var r=n(46),i=n(56),a=n(35);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!i(t)){var c=r(n,3);t=a(t),n=function(e){return c(s[e],e,s)}}var u=e(t,n,o);return u>-1?s[c?t[u]:u]:void 0}}},function(e,t,n){var r=n(132),i=n(187),a=n(58);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(47),i=n(49);e.exports=function(e,t,n,a){var o=n.length,s=o,c=!a;if(null==e)return!s;for(e=Object(e);o--;){var u=n[o];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var l=(u=n[o])[0],f=e[l],A=u[1];if(c&&u[2]){if(void 0===f&&!(l in e))return!1}else{var h=new r;if(a)var p=a(f,A,l,e,t,h);if(!(void 0===p?i(A,f,3,a,h):p))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(25),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(25);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(25);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(25);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(24);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(24),i=n(33),a=n(34);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(144),i=n(24),a=n(33);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(145),i=n(146),a=n(147),o=n(148),s=n(149);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(26);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(26),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(26),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(26);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(27);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(27);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(27);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(27);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(47),i=n(50),a=n(161),o=n(165),s=n(182),c=n(17),u=n(52),l=n(55),f="[object Object]",A=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,p,d){var g=c(e),y=c(t),v=g?"[object Array]":s(e),m=y?"[object Array]":s(t),b=(v="[object Arguments]"==v?f:v)==f,I=(m="[object Arguments]"==m?f:m)==f,w=v==m;if(w&&u(e)){if(!u(t))return!1;g=!0,b=!1}if(w&&!b)return d||(d=new r),g||l(e)?i(e,t,n,h,p,d):a(e,t,v,n,h,p,d);if(!(1&n)){var C=b&&A.call(e,"__wrapped__"),B=I&&A.call(t,"__wrapped__");if(C||B){var E=C?e.value():e,_=B?t.value():t;return d||(d=new r),p(E,_,n,h,d)}}return!!w&&(d||(d=new r),o(e,t,n,h,p,d))}},function(e,t,n){var r=n(34),i=n(157),a=n(158);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(22),i=n(162),a=n(48),o=n(50),s=n(163),c=n(164),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,A){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var d=A.get(e);if(d)return d==t;r|=2,A.set(e,t);var g=o(h(e),h(t),r,u,f,A);return A.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t,n){var r=n(16).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(166),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var f=l;f--;){var A=u[f];if(!(c?A in t:i.call(t,A)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var p=!0;s.set(e,t),s.set(t,e);for(var d=c;++f<l;){var g=e[A=u[f]],y=t[A];if(a)var v=c?a(y,g,A,t,e,s):a(g,y,A,e,t,s);if(!(void 0===v?g===y||o(g,y,n,a,s):v)){p=!1;break}d||(d="constructor"==A)}if(p&&!d){var m=e.constructor,b=t.constructor;m!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(p=!1)}return s.delete(e),s.delete(t),p}},function(e,t,n){var r=n(167),i=n(169),a=n(35);e.exports=function(e){return r(e,a,i)}},function(e,t,n){var r=n(168),i=n(17);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(170),i=n(171),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(173),i=n(51),a=n(17),o=n(52),s=n(54),c=n(55),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&i(e),f=!n&&!l&&o(e),A=!n&&!l&&!f&&c(e),h=n||l||f||A,p=h?r(e.length,String):[],d=p.length;for(var g in e)!t&&!u.call(e,g)||h&&("length"==g||f&&("offset"==g||"parent"==g)||A&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,d))||p.push(g);return p}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(19),i=n(20);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(19),i=n(36),a=n(20),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},function(e,t,n){(function(e){var r=n(41),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}).call(this,n(53)(e))},function(e,t,n){var r=n(179),i=n(180),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(181)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(183),i=n(33),a=n(184),o=n(185),s=n(186),c=n(19),u=n(42),l=u(r),f=u(i),A=u(a),h=u(o),p=u(s),d=c;(r&&"[object DataView]"!=d(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=d(new i)||a&&"[object Promise]"!=d(a.resolve())||o&&"[object Set]"!=d(new o)||s&&"[object WeakMap]"!=d(new s))&&(d=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case A:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=d},function(e,t,n){var r=n(18)(n(16),"DataView");e.exports=r},function(e,t,n){var r=n(18)(n(16),"Promise");e.exports=r},function(e,t,n){var r=n(18)(n(16),"Set");e.exports=r},function(e,t,n){var r=n(18)(n(16),"WeakMap");e.exports=r},function(e,t,n){var r=n(57),i=n(35);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},function(e,t,n){var r=n(49),i=n(189),a=n(195),o=n(37),s=n(57),c=n(58),u=n(29);e.exports=function(e,t){return o(e)&&s(t)?c(u(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},function(e,t,n){var r=n(59);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(191),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},function(e,t,n){var r=n(192);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(34);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(194);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(22),i=n(43),a=n(17),o=n(28),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(196),i=n(197);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(60),i=n(51),a=n(17),o=n(54),s=n(36),c=n(29);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,f=!1;++u<l;){var A=c(t[u]);if(!(f=null!=e&&n(e,A)))break;e=e[A]}return f||++u!=l?f:!!(l=null==e?0:e.length)&&s(l)&&o(A,l)&&(a(e)||i(e))}},function(e,t,n){var r=n(199),i=n(200),a=n(37),o=n(29);e.exports=function(e){return a(e)?r(o(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(59);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(44),i=n(46),a=n(202),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=o(s+c,0)),r(e,i(t,3),c)}},function(e,t,n){var r=n(203);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(204);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(23),i=n(28),a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="section editor sn-component" id="editor-column" aria-label="Note"><div class="sn-component"><div class="sk-app-bar no-edges" ng-if="self.noteLocked" ng-init="self.lockText = \'Note Locked\'" ng-mouseleave="self.lockText = \'Note Locked\'" ng-mouseover="self.lockText = \'Unlock\'"><div class="left"><div class="sk-app-bar-item" ng-click="self.toggleLockNote()"><div class="sk-label warning"><i class="icon ion-locked"></i>{{self.lockText}}</div></div></div></div></div><div class="section-title-bar" id="editor-title-bar" ng-class="{\'locked\' : self.noteLocked}" ng-show="self.note &amp;&amp; !self.note.errorDecrypting"><div class="title"><input class="input" id="note-title-editor" ng-blur="self.onTitleBlur()" ng-change="self.onTitleChange()" ng-disabled="self.noteLocked" ng-focus="self.onTitleFocus()" ng-keyup="$event.keyCode == 13 &amp;&amp; self.onTitleEnter($event)" ng-model="self.editorValues.title" select-on-focus="true" spellcheck="false"></div><div id="save-status"><div class="message" ng-class="{\'warning sk-bold\': self.state.syncTakingTooLong, \'danger sk-bold\': self.state.saveError}">{{self.state.noteStatus.message}}</div><div class="desc" ng-show="self.state.noteStatus.desc">{{self.state.noteStatus.desc}}</div></div><div class="editor-tags"><div id="note-tags-component-container" ng-if="self.activeTagsComponent"><component-view class="component-view" component-uuid="self.activeTagsComponent.uuid" ng-class="{\'locked\' : self.noteLocked}" ng-style="self.noteLocked &amp;&amp; {\'pointer-events\' : \'none\'}" application="self.application"></component-view></div><input class="tags-input" ng-blur="self.onTagsInputBlur()" ng-disabled="self.noteLocked" ng-if="!self.activeTagsComponent" ng-keyup="$event.keyCode == 13 &amp;&amp; $event.target.blur();" ng-model="self.editorValues.tagsInputValue" placeholder="#tags" spellcheck="false" type="text"></div></div><div class="sn-component" ng-if="self.note"><div class="sk-app-bar no-edges" id="editor-menu-bar"><div class="left"><div class="sk-app-bar-item" click-outside="self.setMenuState(\'showOptionsMenu\', false)" is-open="self.state.showOptionsMenu" ng-class="{\'selected\' : self.state.showOptionsMenu}" ng-click="self.toggleMenu(\'showOptionsMenu\')"><div class="sk-label">Options</div><div class="sk-menu-panel dropdown-menu" ng-if="self.state.showOptionsMenu"><div class="sk-menu-panel-section"><div class="sk-menu-panel-header"><div class="sk-menu-panel-header-title">Note Options</div></div><menu-row action="self.selectedMenuItem(true); self.togglePin()" desc="\'Pin or unpin a note from the top of your list\'" label="self.note.pinned ? \'Unpin\' : \'Pin\'"></menu-row><menu-row action="self.selectedMenuItem(true); self.toggleArchiveNote()" desc="\'Archive or unarchive a note from your Archived system tag\'" label="self.note.archived ? \'Unarchive\' : \'Archive\'"></menu-row><menu-row action="self.selectedMenuItem(true); self.toggleLockNote()" desc="\'Locking notes prevents unintentional editing\'" label="self.noteLocked ? \'Unlock\' : \'Lock\'"></menu-row><menu-row action="self.selectedMenuItem(true); self.toggleProtectNote()" desc="\'Protecting a note will require credentials to view \n it (Manage Privileges via Account menu)\'" label="self.note.protected ? \'Unprotect\' : \'Protect\'"></menu-row><menu-row action="self.selectedMenuItem(true); self.toggleNotePreview()" circle="self.note.hidePreview ? \'danger\' : \'success\'" circle-align="\'right\'" desc="\'Hide or unhide the note preview from the list of notes\'" label="\'Preview\'"></menu-row><menu-row action="self.selectedMenuItem(); self.deleteNote()" desc="\'Send this note to the trash\'" label="\'Move to Trash\'" ng-show="!self.state.altKeyDown &amp;&amp; !self.note.trashed &amp;&amp; !self.note.errorDecrypting" stylekit-class="\'warning\'"></menu-row><menu-row action="self.selectedMenuItem(); self.deleteNotePermanantely()" desc="\'Delete this note permanently from all your devices\'" label="\'Delete Permanently\'" ng-show="!self.note.trashed &amp;&amp; self.note.errorDecrypting" stylekit-class="\'danger\'"></menu-row></div><div ng-if="self.note.trashed || self.state.altKeyDown"><menu-row action="self.selectedMenuItem(true); self.restoreTrashedNote()" desc="\'Undelete this note and restore it back into your notes\'" label="\'Restore\'" ng-show="self.note.trashed" stylekit-class="\'info\'"></menu-row><menu-row action="self.selectedMenuItem(true); self.deleteNotePermanantely()" desc="\'Delete this note permanently from all your devices\'" label="\'Delete Permanently\'" stylekit-class="\'danger\'"></menu-row><menu-row action="self.selectedMenuItem(true); self.emptyTrash()" desc="\'Permanently delete all notes in the trash\'" label="\'Empty Trash\'" ng-show="self.note.trashed || !self.state.altKeyDown" stylekit-class="\'danger\'" subtitle="self.getTrashCount() + \' notes in trash\'"></menu-row></div><div class="sk-menu-panel-section"><div class="sk-menu-panel-header"><div class="sk-menu-panel-header-title">Global Display</div></div><menu-row action="self.selectedMenuItem(true); self.toggleWebPrefKey(self.prefKeyMonospace)" circle="self.state.monospaceEnabled ? \'success\' : \'neutral\'" desc="\'Toggles the font style for the default editor\'" disabled="self.activeEditorComponent" label="\'Monospace Font\'" subtitle="self.activeEditorComponent ? \'Not available with editor extensions\' : null"></menu-row><menu-row action="self.selectedMenuItem(true); self.toggleWebPrefKey(self.prefKeySpellcheck)" circle="self.state.spellcheck ? \'success\' : \'neutral\'" desc="\'Toggles spellcheck for the default editor\'" disabled="self.activeEditorComponent" label="\'Spellcheck\'" subtitle="\n self.activeEditorComponent \n ? \'Not available with editor extensions\' \n : (self.state.isDesktop ? \'May degrade editor performance\' : null)\n "></menu-row><menu-row action="self.selectedMenuItem(true); self.toggleWebPrefKey(self.prefKeyMarginResizers)" circle="self.state.marginResizersEnabled ? \'success\' : \'neutral\'" desc="\'Allows for editor left and right margins to be resized\'" faded="!self.state.marginResizersEnabled" label="\'Margin Resizers\'"></menu-row></div></div></div><div class="sk-app-bar-item" click-outside="self.setMenuState(\'showEditorMenu\', false)" is-open="self.state.showEditorMenu" ng-class="{\'selected\' : self.state.showEditorMenu}" ng-click="self.toggleMenu(\'showEditorMenu\')"><div class="sk-label">Editor</div><editor-menu callback="self.editorMenuOnSelect" current-item="self.note" ng-if="self.state.showEditorMenu" selected-editor-uuid="self.activeEditorComponent &amp;&amp; self.activeEditorComponent.uuid" application="self.application"></editor-menu></div><div class="sk-app-bar-item" click-outside="self.setMenuState(\'showExtensions\', false)" is-open="self.state.showExtensions" ng-class="{\'selected\' : self.state.showExtensions}" ng-click="self.toggleMenu(\'showExtensions\')"><div class="sk-label">Actions</div><actions-menu item="self.note" ng-if="self.state.showExtensions" application="self.application"></actions-menu></div><div class="sk-app-bar-item" click-outside="self.setMenuState(\'showSessionHistory\', false)" is-open="self.state.showSessionHistory" ng-click="self.toggleMenu(\'showSessionHistory\')"><div class="sk-label">Session History</div><session-history-menu item="self.note" ng-if="self.state.showSessionHistory" application="self.application"></session-history-menu></div></div></div></div><div class="editor-content" id="editor-content" ng-if="!self.note.errorDecrypting"><panel-resizer class="left" control="self.leftPanelPuppet" hoverable="true" min-width="300" ng-if="self.state.marginResizersEnabled" on-resize-finish="self.onPanelResizeFinish" panel-id="\'editor-content\'" property="\'left\'"></panel-resizer><component-view class="component-view" component-uuid="self.activeEditorComponent.uuid" ng-if="self.activeEditorComponent &amp;&amp; !self.state.editorComponentUnloading" on-load="self.onEditorLoad" application="self.application"></component-view><textarea class="editable" id="note-text-editor" dir="auto" ng-attr-spellcheck="{{self.state.spellcheck}}" ng-change="self.contentChanged()" ng-click="self.clickedTextArea()" ng-focus="self.onContentFocus()" ng-if="!self.activeEditorComponent &amp;&amp; !self.state.textareaUnloading" ng-model="self.editorValues.text" ng-model-options="{ debounce: self.state.editorDebounce}" ng-readonly="self.noteLocked" ng-trim="false">{{self.onSystemEditorLoad()}}</textarea><panel-resizer control="self.rightPanelPuppet" hoverable="true" min-width="300" ng-if="self.state.marginResizersEnabled" on-resize-finish="self.onPanelResizeFinish" panel-id="\'editor-content\'" property="\'right\'"></panel-resizer></div><div class="section" ng-show="self.note.errorDecrypting"><p class="medium-padding" style="padding-top: 0 !important;">There was an error decrypting this item. Ensure you are running the \nlatest version of this app, then sign out and sign back in to try again.</p></div><div id="editor-pane-component-stack" ng-show="self.note"><div class="sk-app-bar no-edges" id="component-stack-menu-bar" ng-if="self.state.allStackComponents.length"><div class="left"><div class="sk-app-bar-item" ng-repeat="component in self.state.allStackComponents track by component.uuid" ng-click="self.toggleStackComponentForCurrentItem(component)"><div class="sk-app-bar-item-column"><div class="sk-circle small" ng-class="{\'info\' : !self.stackComponentHidden(component) &amp;&amp; component.active, \'neutral\' : self.stackComponentHidden(component) || !component.active}"></div></div><div class="sk-app-bar-item-column"><div class="sk-label">{{component.name}}</div></div></div></div></div><div class="sn-component"><component-view class="component-view component-stack-item" ng-repeat="component in self.state.activeStackComponents track by component.uuid" component-uuid="component.uuid" manual-dealloc="true" ng-show="!self.stackComponentHidden(component)" application="self.application"></component-view></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component"><div class="sk-app-bar no-edges no-bottom-edge" id="footer-bar"><div class="left"><div class="sk-app-bar-item" click-outside="ctrl.clickOutsideAccountMenu()" is-open="ctrl.showAccountMenu" ng-click="ctrl.accountMenuPressed()"><div class="sk-app-bar-item-column"><div class="sk-circle small" ng-class="ctrl.hasError ? \'danger\' : (ctrl.user ? \'info\' : \'neutral\')"></div></div><div class="sk-app-bar-item-column"><div class="sk-label title" ng-class="{red: ctrl.hasError}">Account</div></div><account-menu close-function="ctrl.closeAccountMenu()" ng-click="$event.stopPropagation()" ng-if="ctrl.showAccountMenu" application="ctrl.application"></account-menu></div><div class="sk-app-bar-item"><a class="no-decoration sk-label title" href="https://standardnotes.org/help" rel="noopener" target="_blank">Help</a></div><div class="sk-app-bar-item border"></div><div class="sk-app-bar-item" ng-repeat="room in ctrl.rooms track by room.uuid"><div class="sk-app-bar-item-column" ng-click="ctrl.selectRoom(room)"><div class="sk-label">{{room.name}}</div></div><component-modal component-uuid="room.uuid" ng-if="ctrl.roomShowState[room.uuid]" on-dismiss="ctrl.onRoomDismiss(room)" application="ctrl.application"></component-modal></div></div><div class="center"><div class="sk-app-bar-item" ng-if="ctrl.arbitraryStatusMessage"><div class="sk-app-bar-item-column"><span class="neutral sk-label">{{ctrl.arbitraryStatusMessage}}</span></div></div></div><div class="right"><div class="sk-app-bar-item" ng-click="ctrl.openSecurityUpdate()" ng-if="ctrl.state.dataUpgradeAvailable"><span class="success sk-label">Encryption upgrade available.</span></div><div class="sk-app-bar-item" ng-click="ctrl.clickedNewUpdateAnnouncement()" ng-if="ctrl.newUpdateAvailable == true"><span class="info sk-label">New update available.</span></div><div class="sk-app-bar-item no-pointer" ng-if="ctrl.lastSyncDate &amp;&amp; !ctrl.isRefreshing"><div class="sk-label subtle">Last refreshed {{ctrl.lastSyncDate}}</div></div><div class="sk-app-bar-item" ng-click="ctrl.toggleSyncResolutionMenu()" ng-if="(ctrl.state.outOfSync &amp;&amp; !ctrl.isRefreshing) || ctrl.showSyncResolution"><div class="sk-label warning" ng-if="ctrl.state.outOfSync">Potentially Out of Sync</div><sync-resolution-menu close-function="ctrl.toggleSyncResolutionMenu()" ng-click="$event.stopPropagation();" ng-if="ctrl.showSyncResolution" application="ctrl.application"></sync-resolution-menu></div><div class="sk-app-bar-item" ng-if="ctrl.lastSyncDate &amp;&amp; ctrl.isRefreshing"><div class="sk-spinner small"></div></div><div class="sk-app-bar-item" ng-if="ctrl.offline"><div class="sk-label">Offline</div></div><div class="sk-app-bar-item" ng-click="ctrl.refreshData()" ng-if="!ctrl.offline"><div class="sk-label">Refresh</div></div><div class="sk-app-bar-item border" ng-if="ctrl.dockShortcuts.length &gt; 0"></div><div class="sk-app-bar-item dock-shortcut" ng-repeat="shortcut in ctrl.dockShortcuts"><div class="sk-app-bar-item-column" ng-class="{\'underline\': shortcut.component.active}" ng-click="ctrl.selectShortcut(shortcut)"><div class="div" ng-if="shortcut.icon.type == \'circle\'" title="{{shortcut.name}}"><div class="sk-circle small" ng-style="{\'background-color\': shortcut.icon.background_color, \'border-color\': shortcut.icon.border_color}"></div></div><div class="div" ng-if="shortcut.icon.type == \'svg\'" title="{{shortcut.name}}"><div class="svg-item" elem-ready="ctrl.initSvgForShortcut(shortcut)" ng-attr-id="dock-svg-{{shortcut.component.uuid}}"></div></div></div></div><div class="sk-app-bar-item border" ng-if="ctrl.state.hasPasscode"></div><div class="sk-app-bar-item" id="lock-item" ng-click="ctrl.lockApp()" ng-if="ctrl.state.hasPasscode" title="Locks application and wipes unencrypted data from memory."><div class="sk-label"><i class="icon ion-locked" id="footer-lock-icon"></i></div></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component section notes" id="notes-column" aria-label="Notes"><div class="content"><div class="section-title-bar" id="notes-title-bar"><div class="padded"><div class="section-title-bar-header"><div class="title">{{self.state.panelTitle}}</div><div class="sk-button contrast wide" ng-click="self.createNewNote()" title="Create a new note in the selected tag"><div class="sk-label"><i class="icon ion-plus add-button"></i></div></div></div><div class="filter-section" role="search"><input class="filter-bar" id="search-bar" ng-blur="self.onFilterEnter()" ng-change="self.filterTextChanged()" ng-keyup="$event.keyCode == 13 &amp;&amp; self.onFilterEnter();" ng-model="self.state.noteFilter.text" placeholder="Search" select-on-focus="true" title="Searches notes in the currently selected tag"><div id="search-clear-button" ng-click="self.clearFilterText();" ng-show="self.state.noteFilter.text">✕</div></div></div><div class="sn-component" id="notes-menu-bar"><div class="sk-app-bar no-edges"><div class="left"><div class="sk-app-bar-item" ng-class="{\'selected\' : self.state.mutable.showMenu}" ng-click="self.state.mutable.showMenu = !self.state.mutable.showMenu"><div class="sk-app-bar-item-column"><div class="sk-label">Options</div></div><div class="sk-app-bar-item-column"><div class="sk-sublabel">{{self.optionsSubtitle()}}</div></div></div><div class="sk-menu-panel dropdown-menu" id="notes-options-menu" ng-show="self.state.mutable.showMenu"><div class="sk-menu-panel-header"><div class="sk-menu-panel-header-title">Sort By</div><a class="info sk-h5" ng-click="self.toggleReverseSort()">{{self.state.sortReverse === true ? \'Disable Reverse Sort\' : \'Enable Reverse Sort\'}}</a></div><menu-row action="self.selectedMenuItem(); self.selectedSortByCreated()" circle="self.state.sortBy == \'created_at\' &amp;&amp; \'success\'" desc="\'Sort notes by newest first\'" label="\'Date Added\'"></menu-row><menu-row action="self.selectedMenuItem(); self.selectedSortByUpdated()" circle="self.state.sortBy == \'userModifiedDate\' &amp;&amp; \'success\'" desc="\'Sort notes with the most recently updated first\'" label="\'Date Modified\'"></menu-row><menu-row action="self.selectedMenuItem(); self.selectedSortByTitle()" circle="self.state.sortBy == \'title\' &amp;&amp; \'success\'" desc="\'Sort notes alphabetically by their title\'" label="\'Title\'"></menu-row><div class="sk-menu-panel-section"><div class="sk-menu-panel-header"><div class="sk-menu-panel-header-title">Display</div></div><menu-row action="self.selectedMenuItem(); self.toggleWebPrefKey(\'showArchived\')" circle="self.state.showArchived ? \'success\' : \'danger\'" desc="\'Archived notes are usually hidden.\n You can explicitly show them with this option.\'" faded="!self.state.showArchived" label="\'Archived Notes\'"></menu-row><menu-row action="self.selectedMenuItem(); self.toggleWebPrefKey(\'hidePinned\')" circle="self.state.hidePinned ? \'danger\' : \'success\'" desc="\'Pinned notes always appear on top. You can hide them temporarily\n with this option so you can focus on other notes in the list.\'" faded="self.state.hidePinned" label="\'Pinned Notes\'"></menu-row><menu-row action="self.selectedMenuItem(); self.toggleWebPrefKey(\'hideNotePreview\')" circle="self.state.hideNotePreview ? \'danger\' : \'success\'" desc="\'Hide the note preview for a more condensed list of notes\'" faded="self.state.hideNotePreview" label="\'Note Preview\'"></menu-row><menu-row action="self.selectedMenuItem(); self.toggleWebPrefKey(\'hideDate\')" circle="self.state.hideDate ? \'danger\' : \'success\'" desc="\'Hide the date displayed in each row\'" faded="self.state.hideDate" label="\'Date\'"></menu-row></div></div></div></div></div></div><div class="scrollable"><div class="infinite-scroll" id="notes-scrollable" can-load="true" infinite-scroll="self.paginate()" threshold="200"><div class="note" ng-repeat="note in self.state.renderedNotes track by note.uuid" ng-class="{\'selected\' : self.activeEditorNote.uuid == note.uuid}" ng-click="self.selectNote(note)"><div class="note-flags" ng-show="self.noteFlags[note.uuid].length &gt; 0"><div class="flag" ng-class="flag.class" ng-repeat="flag in self.noteFlags[note.uuid]"><div class="label">{{flag.text}}</div></div></div><div class="name" ng-show="note.title">{{note.title}}</div><div class="note-preview" ng-if="\n !self.state.hideNotePreview &amp;&amp;\n !note.hidePreview &amp;&amp;\n !note.protected"><div class="html-preview" ng-bind-html="note.preview_html" ng-show="note.preview_html"></div><div class="plain-preview" ng-show="!note.preview_html &amp;&amp; note.preview_plain">{{note.preview_plain}}</div><div class="default-preview" ng-show="!note.preview_html &amp;&amp; !note.preview_plain">{{note.text}}</div></div><div class="date faded" ng-show="!self.state.hideDate"><span ng-show="self.state.sortBy == \'userModifiedDate\'">Modified {{note.updatedAtString || \'Now\'}}</span><span ng-show="self.state.sortBy != \'userModifiedDate\'">{{note.createdAtString || \'Now\'}}</span></div></div></div></div></div><panel-resizer collapsable="true" control="self.panelPuppet" default-width="300" hoverable="true" on-resize-finish="self.onPanelResize" panel-id="\'notes-column\'"></panel-resizer></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component section tags" id="tags-column" aria-label="Tags"><div class="component-view-container" ng-if="self.component.active"><component-view class="component-view" component-uuid="self.component.uuid" application="self.application"></component-view></div><div class="content" id="tags-content" ng-if="!(self.component &amp;&amp; self.component.active)"><div class="tags-title-section section-title-bar"><div class="section-title-bar-header"><div class="sk-h3 title"><span class="sk-bold">Views</span></div><div class="sk-button sk-secondary-contrast wide" ng-click="self.clickedAddNewTag()" title="Create a new tag"><div class="sk-label"><i class="icon ion-plus add-button"></i></div></div></div></div><div class="scrollable"><div class="infinite-scroll"><div class="tag" ng-class="{\'selected\' : self.state.selectedTag == tag, \'faded\' : !tag.isAllTag}" ng-click="self.selectTag(tag)" ng-repeat="tag in self.state.smartTags track by tag.uuid"><div class="tag-info"><input class="title" ng-disabled="true" ng-change="self.onTagTitleChange(tag)" ng-model="tag.title"><div class="count" ng-show="tag.isAllTag">{{self.state.noteCounts[tag.uuid]}}</div></div></div><div class="tags-title-section section-title-bar"><div class="section-title-bar-header"><div class="sk-h3 title"><span class="sk-bold">Tags</span></div></div></div><div class="tag" ng-class="{\'selected\' : self.state.selectedTag == tag}" ng-click="self.selectTag(tag)" ng-repeat="tag in self.state.tags track by tag.uuid"><div class="tag-info"><div class="tag-icon">#</div><input class="title" ng-attr-id="tag-{{tag.uuid}}" ng-blur="self.saveTag($event, tag)" ng-change="self.onTagTitleChange(tag)" ng-model="self.titles[tag.uuid]" ng-class="{\'editing\' : self.state.editingTag == tag}" ng-click="self.selectTag(tag)" ng-keyup="$event.keyCode == 13 &amp;&amp; $event.target.blur()" should-focus="self.state.templateTag || self.state.editingTag == tag" sn-autofocus="true" spellcheck="false"><div class="count">{{self.state.noteCounts[tag.uuid]}}</div></div><div class="danger small-text bold" ng-show="tag.conflictOf">Conflicted Copy</div><div class="danger small-text bold" ng-show="tag.errorDecrypting &amp;&amp; !tag.waitingForKey">Missing Keys</div><div class="info small-text bold" ng-show="tag.errorDecrypting &amp;&amp; tag.waitingForKey">Waiting For Keys</div><div class="menu" ng-show="self.state.selectedTag == tag"><a class="item" ng-click="self.selectedRenameTag(tag)" ng-show="!self.state.editingTag">Rename</a><a class="item" ng-click="self.saveTag($event, tag)" ng-show="self.state.editingTag">Save</a><a class="item" ng-click="self.selectedDeleteTag(tag)">Delete</a></div></div><div class="no-tags-placeholder" ng-show="self.state.tags.length == 0">No tags. Create one using the add button above.</div></div></div></div><panel-resizer collapsable="true" control="self.panelPuppet" default-width="150" hoverable="true" on-resize-finish="self.onPanelResize" panel-id="\'tags-column\'"></panel-resizer></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sk-modal-background" ng-click="ctrl.cancel()"></div><div class="sk-modal-content" id="privileges-modal"><div class="sn-component"><div class="sk-panel"><div class="sk-panel-header"><div class="sk-panel-header-title">Authentication Required</div><a class="close-button info" ng-if="ctrl.cancelable" ng-click="ctrl.cancel()">Cancel</a></div><div class="sk-panel-content"><div class="sk-panel-section"><div ng-repeat="type in ctrl.state.types"><div class="sk-p sk-bold sk-panel-row"><strong>{{ctrl.promptForChallenge(type)}}</strong></div><div class="sk-panel-row"><input class="sk-input contrast" ng-model="ctrl.state.values[type].value" should-focus="$index == 0" sn-autofocus="true" sn-enter="ctrl.submit()" ng-change="ctrl.onTextValueChange(type)" type="password"></div><div class="sk-panel-row"><label class="sk-label danger" ng-if="ctrl.state.values[type].invalid">Invalid authentication. Please try again.</label></div></div><div class="sk-panel-row"></div></div></div><div class="sk-panel-footer extra-padding"><div class="sk-button info big block bold" ng-click="ctrl.submit()" ng-class="{\'info\' : !ctrl.state.processing, \'neutral\': ctrl.state.processing}" ng-disabled="ctrl.state.processing"><div class="sk-label">{{ctrl.state.processing ? \'Generating Keys...\' : \'Submit\'}} </div></div></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component"><div class="sk-panel" id="account-panel"><div class="sk-panel-header"><div class="sk-panel-header-title">Account</div><a class="sk-a info close-button" ng-click="self.close()">Close</a></div><div class="sk-panel-content"><div class="sk-panel-section sk-panel-hero" ng-if="\n !self.state.user &amp;&amp; \n !self.state.formData.showLogin &amp;&amp; \n !self.state.formData.showRegister &amp;&amp; \n !self.state.formData.mfa"><div class="sk-panel-row"><div class="sk-h1">Sign in or register to enable sync and end-to-end encryption.</div></div><div class="sk-panel-row"><div class="sk-button-group stretch"><div class="sk-button info featured" ng-click="self.state.formData.showLogin = true"><div class="sk-label">Sign In</div></div><div class="sk-button info featured" ng-click="self.state.formData.showRegister = true"><div class="sk-label">Register</div></div></div></div><div class="sk-panel-row sk-p">Standard Notes is free on every platform, and comes \nstandard with sync and encryption.</div></div><div class="sk-panel-section" ng-if="\n self.state.formData.showLogin || \n self.state.formData.showRegister"><div class="sk-panel-section-title">{{self.state.formData.showLogin ? "Sign In" : "Register"}}</div><form class="sk-panel-form" ng-submit="self.submitAuthForm()"><div class="sk-panel-section"><input class="sk-input contrast" name="email" ng-model="self.state.formData.email" ng-model-options="{allowInvalid: true}" placeholder="Email" required="" should-focus="true" sn-autofocus="true" spellcheck="false" type="email"><input class="sk-input contrast" name="password" ng-model="self.state.formData.user_password" placeholder="Password" required="" sn-enter="self.submitAuthForm()" type="password"><input class="sk-input contrast" name="password_conf" ng-if="self.state.formData.showRegister" ng-model="self.state.formData.password_conf" placeholder="Confirm Password" required="" sn-enter="self.submitAuthForm()" type="password"><div class="sk-panel-row"></div><a class="sk-panel-row sk-bold" ng-click="\n self.state.formData.showAdvanced = !self.state.formData.showAdvanced\n ">Advanced Options</a></div><div class="sk-notification unpadded contrast advanced-options sk-panel-row" ng-if="self.state.formData.showAdvanced"><div class="sk-panel-column stretch"><div class="sk-notification-title sk-panel-row padded-row">Advanced Options</div><div class="bordered-row padded-row"><label class="sk-label">Sync Server Domain</label><input class="sk-input mt-5 sk-base" name="server" ng-model="self.state.formData.url" ng-change="self.onHostInputChange()" placeholder="Server URL" required="" type="text"></div><label class="sk-label padded-row sk-panel-row justify-left" ng-if="self.state.formData.showLogin"><div class="sk-horizontal-group tight"><input class="sk-input" ng-model="self.state.formData.strictSignin" type="checkbox"><p class="sk-p">Use strict sign in</p><span><a class="info" href="https://standardnotes.org/help/security" rel="noopener" target="_blank">(Learn more)</a></span></div></label></div></div><div class="sk-panel-section form-submit" ng-if="!self.state.formData.authenticating"><div class="sk-button-group stretch"><div class="sk-button info featured" ng-click="self.submitAuthForm()" ng-disabled="self.state.formData.authenticating"><div class="sk-label">{{self.state.formData.showLogin ? "Sign In" : "Register"}}</div></div></div></div><div class="sk-notification neutral" ng-if="self.state.formData.showRegister"><div class="sk-notification-title">No Password Reset.</div><div class="sk-notification-text">Because your notes are encrypted using your password, \nStandard Notes does not have a password reset option. \nYou cannot forget your password.</div></div><div class="sk-panel-section no-bottom-pad" ng-if="self.state.formData.status"><div class="sk-horizontal-group"><div class="sk-spinner small neutral"></div><div class="sk-label">{{self.state.formData.status}}</div></div></div><div class="sk-panel-section no-bottom-pad" ng-if="!self.state.formData.authenticating"><label class="sk-panel-row justify-left"><div class="sk-horizontal-group tight"><input ng-false-value="true" ng-model="self.state.formData.ephemeral" ng-true-value="false" type="checkbox"><p class="sk-p">Stay signed in</p></div></label><label class="sk-panel-row justify-left" ng-if="self.notesAndTagsCount() &gt; 0"><div class="sk-horizontal-group tight"><input ng-bind="true" ng-change="self.mergeLocalChanged()" ng-model="self.state.formData.mergeLocal" type="checkbox"><p class="sk-p">Merge local data ({{self.notesAndTagsCount()}} notes and tags)</p></div></label></div></form></div><div class="sk-panel-section" ng-if="self.state.formData.mfa"><form class="sk-panel-form" ng-submit="self.submitMfaForm()"><div class="sk-p sk-panel-row">{{self.state.formData.mfa.message}}</div><div class="sk-panel-row"><input class="sk-input contrast" autofocus="true" name="mfa" ng-model="self.state.formData.userMfaCode" placeholder="Enter Code" required="" should-focus="true" sn-autofocus="true"></div><div class="sk-button-group stretch sk-panel-row form-submit" ng-if="!self.state.formData.status"><button class="sk-button info featured" type="submit"><div class="sk-label">Sign In</div></button></div></form><div class="sk-panel-section no-bottom-pad" ng-if="self.state.formData.status"><div class="sk-panel-row"></div><div class="sk-panel-row"></div><div class="sk-horizontal-group"><div class="sk-spinner small neutral"></div><div class="sk-label">{{self.state.formData.status}}</div></div></div></div><div ng-if="\n !self.state.formData.showLogin &amp;&amp; \n !self.state.formData.showRegister &amp;&amp; \n !self.state.formData.mfa"><div class="sk-panel-section" ng-if="self.state.user"><div class="sk-notification danger" ng-if="self.syncStatus.error"><div class="sk-notification-title">Sync Unreachable</div><div class="sk-notification-text">Hmm...we can\'t seem to sync your account. \nThe reason: {{self.syncStatus.error.message}}</div><a class="sk-a info-contrast sk-bold sk-panel-row" href="https://standardnotes.org/help" rel="noopener" target="_blank">Need help?</a></div><div class="sk-panel-row"><div class="sk-panel-column"><div class="sk-h1 sk-bold wrap">{{self.state.user.email}}</div><div class="sk-subtitle subtle normal">{{self.state.server}}</div></div><div class="sk-horizontal-group" delay="1000" delay-hide="true" show="self.syncStatus.syncOpInProgress || self.syncStatus.needsMoreSync"><div class="sk-spinner small info"></div><div class="sk-sublabel">{{"Syncing" + (self.syncStatus.total > 0 ? ":" : "")}}<span ng-if="self.syncStatus.total &gt; 0">{{self.syncStatus.current}}/{{self.syncStatus.total}}</span></div></div></div><div class="sk-panel-row"></div><a class="sk-a info sk-panel-row condensed" ng-click="self.openPasswordWizard()">Change Password</a><a class="sk-a info sk-panel-row condensed" ng-click="self.openPrivilegesModal(\'\')" ng-show="self.state.user">Manage Privileges</a></div><div class="sk-panel-section"><div class="sk-panel-section-title">Encryption</div><div class="sk-panel-section-subtitle info" ng-if="self.state.encryptionEnabled">{{self.encryptionStatusForNotes()}}</div><p class="sk-p">{{self.state.encryptionStatusString}}</p></div><div class="sk-panel-section"><div class="sk-panel-section-title">Passcode Lock</div><div ng-if="!self.state.hasPasscode"><div ng-if="self.state.canAddPasscode"><div class="sk-panel-row" ng-if="!self.state.formData.showPasscodeForm"><div class="sk-button info" ng-click="self.addPasscodeClicked(); $event.stopPropagation();"><div class="sk-label">Add Passcode</div></div></div><p class="sk-p"> Add a passcode to lock the application and \nencrypt on-device key storage.</p></div><div ng-if="!self.state.canAddPasscode"><p class="sk-p">Adding a passcode is not supported in temporary sessions. Please sign \nout, then sign back in with the "Stay signed in" option checked.</p></div></div><form class="sk-panel-form" ng-if="self.state.formData.showPasscodeForm" ng-submit="self.submitPasscodeForm()"><div class="sk-panel-row"></div><input class="sk-input contrast" ng-model="self.state.formData.passcode" placeholder="Passcode" should-focus="true" sn-autofocus="true" type="password"><input class="sk-input contrast" ng-model="self.state.formData.confirmPasscode" placeholder="Confirm Passcode" type="password"><div class="sk-button-group stretch sk-panel-row form-submit"><button class="sk-button info" type="submit"><div class="sk-label">Set Passcode</div></button></div><a class="neutral sk-a sk-panel-row" ng-click="self.state.formData.showPasscodeForm = false">Cancel</a></form><div ng-if="self.state.hasPasscode &amp;&amp; !self.state.formData.showPasscodeForm"><div class="sk-p">Passcode lock is enabled.</div><div class="sk-notification contrast"><div class="sk-notification-title">Options</div><div class="sk-notification-text"><div class="sk-panel-row"><div class="sk-horizontal-group"><div class="sk-h4 sk-bold">Autolock</div><a class="sk-a info" ng-class="{\n \'boxed\' : option.value == self.state.selectedAutoLockInterval\n }" ng-click="self.selectAutoLockInterval(option.value)" ng-repeat="option in self.state.passcodeAutoLockOptions">{{option.label}}</a></div></div><div class="sk-p">The autolock timer begins when the window or tab loses focus.</div><div class="sk-panel-row"></div><a class="sk-a info sk-panel-row condensed" ng-click="self.openPrivilegesModal(\'\')" ng-show="!self.state.user">Manage Privileges</a><a class="sk-a info sk-panel-row condensed" ng-click="self.changePasscodePressed()">Change Passcode</a><a class="sk-a danger sk-panel-row condensed" ng-click="self.removePasscodePressed()">Remove Passcode</a></div></div></div></div><div class="sk-panel-section" ng-if="!self.state.importData.loading"><div class="sk-panel-section-title">Data Backups</div><div class="sk-p">Download a backup of all your data.</div><div class="sk-panel-row"></div><form class="sk-panel-form sk-panel-row" ng-if="self.state.encryptionEnabled"><div class="sk-input-group"><label class="sk-horizontal-group tight"><input ng-change="self.state.mutable.backupEncrypted = true" ng-model="self.state.mutable.backupEncrypted" ng-value="true" type="radio"><p class="sk-p">Encrypted</p></label><label class="sk-horizontal-group tight"><input ng-change="self.state.mutable.backupEncrypted = false" ng-model="self.state.mutable.backupEncrypted" ng-value="false" type="radio"><p class="sk-p">Decrypted</p></label></div></form><div class="sk-panel-row"></div><div class="sk-button-group sk-panel-row justify-left"><div class="sk-button info" ng-click="self.downloadDataArchive()"><div class="sk-label">Download Backup</div></div><label class="sk-button info"><input file-change="-&gt;" handler="self.importFileSelected(files)" style="display: none;" type="file"><div class="sk-label">Import Backup</div></label></div><span ng-if="self.isDesktopApplication()">Backups are automatically created on desktop and can be managed \nvia the "Backups" top-level menu.</span><div id="import-password-request" ng-if="self.state.importData.requestPassword"><form class="sk-panel-form stretch" ng-submit="self.submitImportPassword()"><p>Enter the account password associated with the import file.</p><input class="sk-input contrast mt-5" autofocus="true" ng-model="self.state.importData.password" placeholder="Enter File Account Password" type="password"><div class="sk-button-group stretch sk-panel-row form-submit"><button class="sk-button info" type="submit"><div class="sk-label">Decrypt & Import</div></button></div><p>Importing from backup will not overwrite existing data, \nbut instead create a duplicate of any differing data.</p><p>If you\'d like to import only a selection of items instead of \nthe whole file, please use the Batch Manager extension.</p></form></div><div class="sk-panel-row"><div class="sk-spinner small info" ng-if="self.state.importData.loading"></div></div></div></div></div><div class="sk-panel-footer"><div class="sk-panel-row"><div class="sk-p left neutral faded">{{self.state.appVersion}}</div><a class="sk-a right" ng-click="self.hidePasswordForm()" ng-if="self.state.formData.showLogin || self.state.formData.showRegister">Cancel</a><a class="sk-a right danger" ng-click="self.destroyLocalData()" ng-if="\n !self.state.formData.showLogin &amp;&amp; \n !self.state.formData.showRegister">{{ self.state.user ? "Sign out and clear local data" : "Clear all local data" }}</a></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component"><div class="sk-menu-panel dropdown-menu"><a class="no-decoration" href="https://standardnotes.org/extensions" ng-if="self.state.extensions.length == 0" rel="noopener" target="blank"><menu-row label="\'Download Actions\'"></menu-row></a><div ng-repeat="extension in self.state.extensions track by extension.uuid"><div class="sk-menu-panel-header" ng-click="extension.hide = !extension.hide; $event.stopPropagation();"><div class="sk-menu-panel-column"><div class="sk-menu-panel-header-title">{{extension.name}}</div><div class="sk-spinner small loading" ng-if="self.loadingState[extension.uuid]"></div><div ng-if="extension.hide">…</div></div></div><menu-row action="self.executeAction(action, extension);" label="action.label" ng-if="!extension.hide" ng-repeat="action in extension.actionsWithContextForItem(self.props.item)" spinner-class="action.running ? \'info\' : null" sub-rows="action.subrows" subtitle="action.desc"><div class="sk-sublabel" ng-if="action.access_type">Uses <strong>{{action.access_type}}</strong> access to this note.</div></menu-row><menu-row faded="true" label="\'No Actions Available\'" ng-if="extension.actionsWithContextForItem(self.props.item).length == 0"></menu-row></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sk-modal-background" ng-click="ctrl.dismiss()"></div><div class="sk-modal-content" ng-attr-id="component-content-outer-{{ctrl.component.uuid}}"><div class="sn-component"><div class="sk-panel" ng-attr-id="component-content-inner-{{ctrl.component.uuid}}"><div class="sk-panel-header"><div class="sk-panel-header-title">{{ctrl.component.name}}</div><a class="sk-a info close-button" ng-click="ctrl.dismiss()">Close</a></div><component-view class="component-view" ng-if="ctrl.component.active" component-uuid="ctrl.component.uuid" application="ctrl.application"></component-view></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component" ng-if="ctrl.issueLoading"><div class="sk-app-bar no-edges no-top-edge dynamic-height"><div class="left"><div class="sk-app-bar-item"><div class="sk-label warning">There was an issue loading {{ctrl.component.name}}.</div></div></div><div class="right"><div class="sk-app-bar-item" ng-click="ctrl.reloadIframe()"><div class="sk-button info"><div class="sk-label">Reload</div></div></div></div></div></div><div class="sn-component" ng-if="ctrl.expired"><div class="sk-app-bar no-edges no-top-edge dynamic-height"><div class="left"><div class="sk-app-bar-item"><div class="sk-app-bar-item-column"><div class="sk-circle danger small"></div></div><div class="sk-app-bar-item-column"><div><a class="sk-label sk-base" href="https://dashboard.standardnotes.org" rel="noopener" target="_blank">Your Extended subscription expired on \n{{ctrl.component.dateToLocalizedString(ctrl.component.valid_until)}}.</a><div class="sk-p">Extensions are in a read-only state.</div></div></div></div></div><div class="right"><div class="sk-app-bar-item" ng-click="ctrl.reloadComponent()"><div class="sk-button info"><div class="sk-label">Reload</div></div></div><div class="sk-app-bar-item"><div class="sk-app-bar-item-column"><div class="sk-button warning"><a class="sk-label" href="https://standardnotes.org/help/41/expired" rel="noopener" target="_blank">Help</a></div></div></div></div></div></div><div class="sn-component" ng-if="ctrl.error == \'offline-restricted\'"><div class="sk-panel static"><div class="sk-panel-content"><div class="sk-panel-section stretch"><div class="sk-panel-column"></div><div class="sk-h1 sk-bold">You have restricted this extension to be used offline only.</div><div class="sk-subtitle">Offline extensions are not available in the Web app.</div><div class="sk-panel-row"></div><div class="sk-panel-row"><div class="sk-panel-column"><div class="sk-p">You can either:</div><ul><li class="sk-p"><strong>Enable the Hosted option</strong> for this extension by opening the \'Extensions\' menu and \ntoggling \'Use hosted when local is unavailable\' under this \nextension\'s options. Then press Reload below.</li><li class="sk-p"><strong>Use the Desktop application.</strong></li></ul></div></div><div class="sk-panel-row"><div class="sk-button info" ng-click="ctrl.reloadStatus()" ng-if="!ctrl.reloading"><div class="sk-label">Reload</div></div><div class="sk-spinner info small" ng-if="ctrl.reloading"></div></div></div></div></div></div><div class="sn-component" ng-if="ctrl.error == \'url-missing\'"><div class="sk-panel static"><div class="sk-panel-content"><div class="sk-panel-section stretch"><div class="sk-panel-section-title">This extension is not installed correctly.</div><p>Please uninstall {{ctrl.component.name}}, then re-install it.</p><p>This issue can occur if you access Standard Notes using an older \nversion of the app.\nEnsure you are running at least version 2.1 on all platforms.</p></div></div></div></div><iframe data-component-id="{{ctrl.componentUuid}}" frameborder="0" ng-init="ctrl.onIframeInit()" ng-attr-id="component-iframe-{{ctrl.componentUuid}}" ng-if="ctrl.componentUuid &amp;&amp; !ctrl.reloading &amp;&amp; ctrl.componentValid" ng-src="{{ctrl.getUrl() | trusted}}" sandbox="allow-scripts allow-top-navigation-by-user-activation allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-modals allow-forms">Loading</iframe><div class="loading-overlay" ng-if="ctrl.loading"></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component"><div class="sk-menu-panel dropdown-menu"><div class="sk-menu-panel-section"><div class="sk-menu-panel-header"><div class="sk-menu-panel-header-title">Note Editor</div></div><menu-row action="self.selectComponent(null)" circle="!self.selectedEditorUuid &amp;&amp; \'success\'" label="\'Plain Editor\'"></menu-row><menu-row ng-repeat="editor in self.state.editors track by editor.uuid" action="self.selectComponent(editor)" button-action="self.toggleDefaultForEditor(editor)" button-class="self.isEditorSelected(editor) ? \'warning\' : \'info\'" button-text="self.isEditorDefault(editor) ? \'Undefault\' : \'Set Default\'" circle="self.isEditorSelected(editor) &amp;&amp; \'success\'" has-button="self.isEditorSelected(editor) || isEditorDefault(editor)" label="editor.name"><div class="sk-menu-panel-column" ng-if="editor.conflictOf"><div class="info" ng-if="editor.conflictOf">Conflicted copy</div></div></menu-row><a class="no-decoration" href="https://standardnotes.org/extensions" ng-if="self.state.editors.length == 0" rel="noopener" target="blank"><menu-row label="\'Download More Editors\'"></menu-row></a></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component"><div class="sk-modal small auto-height"><div class="sk-modal-background"></div><div class="sk-modal-content"><div class="sn-component"><div class="sk-panel"><div class="sk-panel-header"><div class="sk-h1 sk-panel-header-title">{{ctrl.title}}</div><a class="sk-a info close-button" ng-click="ctrl.dismiss()">Close</a></div><div class="sk-panel-content"><div class="sk-panel-section"><div class="sk-p sk-panel-row">{{ctrl.message}}</div><div class="sk-panel-row"><div class="sk-panel-column stretch"><form ng-submit="ctrl.submit()"><input class="sk-input contrast" ng-model="ctrl.formData.input" should-focus="true" sn-autofocus="true" type="{{ctrl.type}}"></form></div></div></div></div><div class="sk-panel-footer"><a class="sk-a info right" ng-click="ctrl.submit()">Submit</a></div></div></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sk-menu-panel-row row" ng-attr-title="{{ctrl.desc}}" ng-click="ctrl.onClick($event)"><div class="sk-menu-panel-column"><div class="left"><div class="sk-menu-panel-column" ng-if="\n ctrl.circle &amp;&amp; \n (!ctrl.circleAlign || ctrl.circleAlign == \'left\')\n "><div class="sk-circle small" ng-class="ctrl.circle"></div></div><div class="sk-menu-panel-column" ng-class="{\'faded\' : ctrl.faded || ctrl.disabled}"><div class="sk-label" ng-class="ctrl.stylekitClass">{{ctrl.label}}</div><div class="sk-sublabel" ng-if="ctrl.subtitle">{{ctrl.subtitle}}</div><ng-transclude></ng-transclude></div></div><div class="sk-menu-panel-subrows" ng-if="ctrl.subRows &amp;&amp; ctrl.subRows.length &gt; 0"><menu-row ng-repeat="row in ctrl.subRows" action="row.onClick()" label="row.label" spinner-class="row.spinnerClass" subtitle="row.subtitle"></menu-row></div></div><div class="sk-menu-panel-column" ng-if="ctrl.circle &amp;&amp; ctrl.circleAlign == \'right\'"><div class="sk-circle small" ng-class="ctrl.circle"></div></div><div class="sk-menu-panel-column" ng-if="ctrl.hasButton"><div class="sk-button" ng-class="ctrl.buttonClass" ng-click="ctrl.clickAccessoryButton($event)"><div class="sk-label">{{ctrl.buttonText}}</div></div></div><div class="sk-menu-panel-column" ng-if="ctrl.spinnerClass"><div class="sk-spinner small" ng-class="ctrl.spinnerClass"></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="panel-resizer-column"></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component"><div class="sk-modal small auto-height" id="password-wizard"><div class="sk-modal-background"></div><div class="sk-modal-content"><div class="sn-component"><div class="sk-panel"><div class="sk-panel-header"><div class="sk-panel-header-title">{{ctrl.state.title}}</div><a class="sk-a info close-button" ng-click="ctrl.dismiss()">Close</a></div><div class="sk-panel-content"><div class="sk-panel-section" ng-if="ctrl.state.step == 1"><div class="sk-panel-row"><div class="sk-panel-column stretch"><form class="sk-panel-form"><input class="sk-input contrast" ng-model="ctrl.state.formData.currentPassword" placeholder="Current Password" should-focus="true" sn-autofocus="true" type="password"><input class="sk-input contrast" ng-if="ctrl.props.changePassword" ng-model="ctrl.state.formData.newPassword" placeholder="New Password" type="password"><input class="sk-input contrast" ng-if="ctrl.props.changePassword" ng-model="ctrl.state.formData.newPasswordConfirmation" placeholder="Confirm New Password" type="password"></form></div></div></div><div class="sk-panel-section" ng-if="ctrl.state.step == 2"><div ng-if="ctrl.props.changePassword"><p class="sk-p sk-panel-row info-i">Your password has been successfully changed.</p></div><div ng-if="ctrl.props.securityUpdate"><p class="sk-p sk-panel-row info-i">The account update has been successfully applied to your account.</p></div><p class="sk-p sk-panel-row">Please ensure you are running the latest version of Standard Notes \non all platforms to ensure maximum compatibility.</p></div></div><div class="sk-panel-footer"><div class="empty"></div><a class="sk-a info right" ng-click="ctrl.nextStep()" ng-disabled="ctrl.state.lockContinue"><div class="sk-spinner small inline info mr-5" ng-if="ctrl.state.showSpinner"></div>{{ctrl.state.continueTitle}}</a></div></div></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sk-modal-background" ng-click="ctrl.deny()"></div><div class="sk-modal-content" id="permissions-modal"><div class="sn-component"><div class="sk-panel"><div class="sk-panel-header"><div class="sk-panel-header-title">Activate Extension</div><a class="sk-a info close-button" ng-click="ctrl.deny()">Cancel</a></div><div class="sk-panel-content"><div class="sk-panel-section"><div class="sk-panel-row"><div class="sk-h2"><strong>{{ctrl.component.name}}</strong> would like to interact with your\n {{ctrl.permissionsString}}</div></div><div class="sk-panel-row"><p class="sk-p">Extensions use an offline messaging system to communicate. Learn more at <a class="sk-a info" href="https://standardnotes.org/permissions" rel="noopener" target="_blank">https://standardnotes.org/permissions.</a></p></div></div></div><div class="sk-panel-footer"><div class="sk-button info big block bold" ng-click="ctrl.accept()"><div class="sk-label">Continue</div></div></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sk-modal-background" ng-click="ctrl.cancel()"></div><div class="sk-modal-content" id="privileges-modal"><div class="sn-component"><div class="sk-panel"><div class="sk-panel-header"><div class="sk-panel-header-title">Authentication Required</div><a class="close-button info" ng-click="ctrl.cancel()">Cancel</a></div><div class="sk-panel-content"><div class="sk-panel-section"><div ng-repeat="credential in ctrl.requiredCredentials"><div class="sk-p sk-bold sk-panel-row"><strong>{{ctrl.promptForCredential(credential)}}</strong></div><div class="sk-panel-row"><input class="sk-input contrast" ng-model="ctrl.authParameters[credential]" should-focus="$index == 0" sn-autofocus="true" sn-enter="ctrl.submit()" type="password"></div><div class="sk-panel-row"><label class="sk-label danger" ng-if="ctrl.isCredentialInFailureState(credential)">Invalid authentication. Please try again.</label></div></div><div class="sk-panel-row"></div><div class="sk-panel-row"><div class="sk-horizontal-group"><div class="sk-p sk-bold">Remember For</div><a class="sk-a info" ng-repeat="option in ctrl.sessionLengthOptions" ng-class="{\'boxed\' : option.value == ctrl.selectedSessionLength}" ng-click="ctrl.selectSessionLength(option.value)">{{option.label}}</a></div></div></div></div><div class="sk-panel-footer extra-padding"><div class="sk-button info big block bold" ng-click="ctrl.submit()"><div class="sk-label">Submit</div></div></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sk-modal-background" ng-click="ctrl.cancel()"></div><div class="sk-modal-content" id="privileges-modal"><div class="sn-component"><div class="sk-panel"><div class="sk-panel-header"><div class="sk-panel-header-title">Manage Privileges</div><a class="sk-a close-button info" ng-click="ctrl.cancel()">Done</a></div><div class="sk-panel-content"><div class="sk-panel-section"><table class="sk-table"><thead><tr><th></th><th ng-repeat="cred in ctrl.availableCredentials"><div class="priv-header"><strong>{{ctrl.credentialDisplayInfo[cred].label}}</strong><div class="sk-p font-small" ng-show="!ctrl.credentialDisplayInfo[cred].availability" style="margin-top: 2px">Not Configured</div></div></th></tr></thead><tbody><tr ng-repeat="action in ctrl.availableActions"><td><div class="sk-p">{{ctrl.displayInfoForAction(action)}}</div></td><th ng-repeat="credential in ctrl.availableCredentials"><input ng-checked="ctrl.isCredentialRequiredForAction(action, credential)" ng-click="ctrl.checkboxValueChanged(action, credential)" ng-disabled="!ctrl.credentialDisplayInfo[credential].availability" type="checkbox"></th></tr></tbody></table></div><div class="sk-panel-section" ng-if="ctrl.sessionExpirey &amp;&amp; !ctrl.sessionExpired"><div class="sk-p sk-panel-row"> You will not be asked to authenticate until {{ctrl.sessionExpirey}}.</div><a class="sk-a sk-panel-row info" ng-click="ctrl.clearSession()">Clear Session</a></div></div><div class="sk-panel-footer"><div class="sk-h2 sk-bold">About Privileges</div><div class="sk-panel-section no-bottom-pad"><div class="sk-panel-row"><div class="text-content"><div class="sk-p">Privileges represent interface level authentication for accessing \ncertain items and features. Note that when your application is unlocked,\nyour data exists in temporary memory in an unencrypted state.\nPrivileges are meant to protect against unwanted access in the event of\nan unlocked application, but do not affect data encryption state.</div><p class="sk-p">Privileges sync across your other devices; however, note that if you \nrequire an "Application Passcode" privilege, and another device does not have \nan application passcode set up, the application passcode requirement will be ignored \non that device.</p></div></div></div></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component"><div class="sk-modal medium" id="item-preview-modal"><div class="sk-modal-background"></div><div class="sk-modal-content"><div class="sn-component"><div class="sk-panel"><div class="sk-panel-header"><div class="sk-panel-header-title">Preview</div><div class="sk-horizontal-group"><a class="sk-a info close-button" ng-click="ctrl.restore(false)">Restore</a><a class="sk-a info close-button" ng-click="ctrl.restore(true)">Restore as copy</a><a class="sk-a info close-button" ng-click="ctrl.dismiss(); $event.stopPropagation()">Close</a></div></div><div class="sk-panel-content selectable" ng-if="!ctrl.editor"><div class="sk-h2">{{ctrl.content.title}}</div><p class="normal sk-p" style="white-space: pre-wrap; font-size: 16px;">{{ctrl.content.text}}</p></div><component-view class="component-view" component-uuid="ctrl.editor.uuid" ng-if="ctrl.editor" application="ctrl.application"></component-view></div></div></div></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component" id="session-history-menu"><div class="sk-menu-panel dropdown-menu"><div class="sk-menu-panel-header"><div class="sk-menu-panel-header-title">{{ctrl.history.entries.length || \'No\'}} revisions</div><a class="sk-a info sk-h5" ng-click="ctrl.showOptions = !ctrl.showOptions; $event.stopPropagation();">Options</a></div><div ng-if="ctrl.showOptions"><menu-row action="ctrl.clearItemHistory()" label="\'Clear note local history\'"></menu-row><menu-row action="ctrl.clearAllHistory()" label="\'Clear all local history\'"></menu-row><menu-row action="ctrl.toggleAutoOptimize()" label="(ctrl.autoOptimize ? \'Disable\' : \'Enable\') + \' auto cleanup\'"><div class="sk-sublabel">Automatically cleans up small revisions to conserve space.</div></menu-row><menu-row action="ctrl.toggleDiskSaving()" label="(ctrl.diskEnabled ? \'Disable\' : \'Enable\') + \' saving history to disk\'"><div class="sk-sublabel">Saving to disk is not recommended. Decreases performance and increases app \nloading time and memory footprint.</div></menu-row></div><menu-row ng-repeat="revision in ctrl.entries" action="ctrl.openRevision(revision);" label="revision.previewTitle()"><div class="sk-sublabel opaque" ng-class="ctrl.classForRevision(revision)">{{revision.previewSubTitle()}}</div></menu-row></div></div>'}},function(e,t,n){n(15);e.exports=function(e){var t="";return t+='<div class="sn-component"><div class="sk-panel sk-panel-right" id="sync-resolution-menu"><div class="sk-panel-header"><div class="sk-panel-header-title">Out of Sync</div><a class="sk-a info close-button" ng-click="ctrl.close()">Close</a></div><div class="sk-panel-content"><div class="sk-panel-section"><div class="sk-panel-row sk-p">We\'ve detected that the data on the server may not match \nthe data in the current application session.</div><div class="sk-p sk-panel-row"><div class="sk-panel-column"><strong class="sk-panel-row">Option 1 — Restart App:</strong><div class="sk-p"> Quit the application and re-open it. \nSometimes, this may resolve the issue.</div></div></div><div class="sk-p sk-panel-row"><div class="sk-panel-column"><strong class="sk-panel-row">Option 2 (recommended) — Sign Out:</strong><div class="sk-p">Sign out of your account, then sign back in. \nThis will ensure your data is consistent with the server.</div>Be sure to download a backup of your data before doing so.</div></div><div class="sk-p sk-panel-row"><div class="sk-panel-column"><strong class="sk-panel-row">Option 3 — Sync Resolution:</strong><div class="sk-p">We can attempt to reconcile changes by downloading all data from the \nserver. No existing data will be overwritten. If the local contents of \nan item differ from what the server has, a conflicted copy will be created.</div></div></div><div ng-if="!ctrl.status.backupFinished"><div class="sk-p sk-panel-row">Please download a backup before we attempt to \nperform a full account sync resolution.</div><div class="sk-panel-row"><div class="sk-button-group"><div class="sk-button info" ng-click="ctrl.downloadBackup(true)"><div class="sk-label">Encrypted</div></div><div class="sk-button info" ng-click="ctrl.downloadBackup(false)"><div class="sk-label">Decrypted</div></div><div class="sk-button danger" ng-click="ctrl.skipBackup()"><div class="sk-label">Skip</div></div></div></div></div><div ng-if="ctrl.status.backupFinished"><div class="sk-panel-row" ng-if="!ctrl.status.resolving &amp;&amp; !ctrl.status.attemptedResolution"><div class="sk-button info" ng-click="ctrl.performSyncResolution()"><div class="sk-label">Perform Sync Resolution</div></div></div><div class="sk-panel-row justify-left" ng-if="ctrl.status.resolving"><div class="sk-horizontal-group"><div class="sk-spinner small info"></div><div class="sk-label">Attempting sync resolution...</div></div></div><div class="sk-panel-column" ng-if="ctrl.status.fail"><div class="sk-panel-row sk-label danger">Sync Resolution Failed</div><div class="sk-p sk-panel-row">We attempted to reconcile local content and server content, but were \nunable to do so. At this point, we recommend signing out of your account \nand signing back in. You may wish to download a data backup before doing so.</div></div><div class="sk-panel-column" ng-if="ctrl.status.success"><div class="sk-panel-row sk-label success">Sync Resolution Success</div><div class="sk-p sk-panel-row">Your local data is now in sync with the server. You may close this window.</div></div></div></div></div></div></div>'}},function(e,t,n){"use strict";n.r(t);n(91),n(92);var r=n(13),i=n.n(r),a=(n(94),n(95),n(96),n(97),n(98),n(11));function o(e){Object(a.d)()?e.html5Mode(!1):window.history&&window.history.pushState&&e.html5Mode({enabled:!0,requireBase:!1})}o.$inject=["$locationProvider"];var s,c,u,l=n(6),f=n.n(l),A=n(7),h=n.n(A),p=n(1),d=n.n(p),g=n(62),y=n(2),v=(n(30),n(0)),m=n.n(v),b=n(3),I=n.n(b),w=function(){function e(t){f()(this,e),d()(this,"application",void 0),d()(this,"textFile",void 0),this.application=t}var t,n,r,i,a;return h()(e,[{key:"downloadBackup",value:(a=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.downloadBackupOfItems(this.application.allItems(),t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"downloadBackupOfItems",value:(i=I()(m.a.mark((function e(t,n){var r,i=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(){var e=I()(m.a.mark((function e(){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n?y.EncryptionIntent.FileEncrypted:y.EncryptionIntent.FileDecrypted,i.itemsData(t,r).then((function(e){var r=n?"Encrypted":"Decrypted";i.downloadData(e,"Standard Notes ".concat(r," Backup - ").concat(i.formattedDate(),".txt")),n||i.downloadZippedItems(t)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=3,this.application.privilegesService.actionRequiresPrivilege(y.ProtectedAction.ManageBackups);case 3:if(!e.sent){e.next=7;break}this.application.presentPrivilegesModal(y.ProtectedAction.ManageBackups,(function(){r()})),e.next=8;break;case 7:r();case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"formattedDate",value:function(){var e="".concat(new Date),t=e.match(/^(.*?) \(/);return t&&t.length>=2?t[1]:e}},{key:"itemsData",value:(r=I()(m.a.mark((function e(t,n){var r,i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.createBackupFile(t,n);case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return i=new Blob([r],{type:"text/json"}),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"loadZip",value:(n=I()(m.a.mark((function e(){var t,n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.zip){e.next=2;break}return e.abrupt("return");case 2:return(t=document.createElement("script")).src="/assets/zip/zip.js",t.async=!1,document.getElementsByTagName("head")[0].appendChild(t),e.abrupt("return",new Promise((function(e){t.onload=function(){n.zip.workerScriptsPath="assets/zip/",e()}})));case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"downloadZippedItems",value:(t=I()(m.a.mark((function e(t){var n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadZip();case 2:this.zip.createWriter(new this.zip.BlobWriter("application/zip"),(function(e){var r=0;!function i(){var a,o,s=t[r];if(s.content_type===y.ContentType.Note){var c=s;a=c.title,o=c.text}else a=s.content_type,o=JSON.stringify(s.content,null,2);a||(a="");var u=new Blob([o],{type:"text/plain"}),l=a.replace(/\//g,"").replace(/\\+/g,""),f="-".concat(s.uuid.split("-")[0],".txt");l=l.slice(0,255-f.length);var A="".concat(s.content_type,"/").concat(l).concat(f);e.add(A,new n.zip.BlobReader(u),(function(){++r<t.length?i():e.close((function(t){n.downloadData(t,"Standard Notes Backup - ".concat(n.formattedDate(),".zip")),e=null}))}))}()}),onerror);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"hrefForData",value:function(e){return this.textFile&&window.URL.revokeObjectURL(this.textFile),this.textFile=window.URL.createObjectURL(e),this.textFile}},{key:"downloadData",value:function(e,t){var n=document.createElement("a");n.setAttribute("download",t),n.href=this.hrefForData(e),document.body.appendChild(n),n.click(),n.remove()}},{key:"zip",get:function(){return window.zip}}]),e}(),C=n(8),B=n.n(C),E=n(4),_=n.n(E),k=n(5),Q=n.n(k),S=n(10),x=n.n(S),D=n(9),P=n.n(D),M=function(e){function t(e,n,r){var i;return f()(this,t),i=B()(this,Q()(t).call(this,r)),d()(_()(i),"$rootScope",void 0),d()(_()(i),"$timeout",void 0),d()(_()(i),"componentActivationObservers",[]),d()(_()(i),"updateObservers",[]),d()(_()(i),"isDesktop",Object(a.d)()),d()(_()(i),"dataLoaded",!1),d()(_()(i),"dataLoadHandler",void 0),d()(_()(i),"majorDataChangeHandler",void 0),d()(_()(i),"extServerHost",void 0),d()(_()(i),"installationSyncHandler",void 0),d()(_()(i),"installComponentHandler",void 0),d()(_()(i),"lastSearchedText",void 0),d()(_()(i),"searchHandler",void 0),i.$rootScope=e,i.$timeout=n,i}var n,r,i,o,s,c;return P()(t,e),h()(t,[{key:"deinit",value:function(){this.componentActivationObservers.length=0,this.updateObservers.length=0,x()(Q()(t.prototype),"deinit",this).call(this)}},{key:"onAppEvent",value:(c=I()(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppEvent",this).call(this,n),n===y.ApplicationEvent.LocalDataLoaded?(this.dataLoaded=!0,this.dataLoadHandler&&this.dataLoadHandler()):n===y.ApplicationEvent.MajorDataChange&&this.majorDataChangeHandler&&this.majorDataChangeHandler();case 2:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"saveBackup",value:function(){this.majorDataChangeHandler&&this.majorDataChangeHandler()}},{key:"getExtServerHost",value:function(){return console.assert(this.extServerHost,"extServerHost is null"),this.extServerHost}},{key:"convertComponentForTransmission",value:(s=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.application.protocolService.payloadByEncryptingPayload(t.payloadRepresentation(),y.EncryptionIntent.FileDecrypted));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"syncComponentsInstallation",value:function(e){var t=this;this.isDesktop&&Promise.all(e.map((function(e){return t.convertComponentForTransmission(e)}))).then((function(e){t.installationSyncHandler(e)}))}},{key:"installComponent",value:(o=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=this,e.next=3,this.convertComponentForTransmission(t);case 3:e.t1=e.sent,e.t0.installComponentHandler.call(e.t0,e.t1);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"registerUpdateObserver",value:function(e){var t=this,n={callback:e};return this.updateObservers.push(n),function(){Object(y.removeFromArray)(t.updateObservers,n)}}},{key:"searchText",value:function(e){this.isDesktop&&(this.lastSearchedText=e,this.searchHandler&&this.searchHandler(e))}},{key:"redoSearch",value:function(){this.lastSearchedText&&this.searchText(this.lastSearchedText)}},{key:"desktop_setSearchHandler",value:function(e){this.searchHandler=e}},{key:"desktop_windowGainedFocus",value:function(){this.$rootScope.$broadcast("window-gained-focus")}},{key:"desktop_windowLostFocus",value:function(){this.$rootScope.$broadcast("window-lost-focus")}},{key:"desktop_onComponentInstallationComplete",value:(i=I()(m.a.mark((function e(t,n){var r,i,a=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.application.findItem(t.uuid)){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.application.changeAndSaveItem(r.uuid,(function(e){var r=e;n?r.setAppDataItem(y.AppDataField.ComponentInstallError,n):(r.local_url=t.content.local_url,r.package_info=t.content.package_info,r.setAppDataItem(y.AppDataField.ComponentInstallError,void 0))}));case 5:i=e.sent,this.$timeout((function(){var e=!0,t=!1,n=void 0;try{for(var r,o=a.updateObservers[Symbol.iterator]();!(e=(r=o.next()).done);e=!0)r.value.callback(i)}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}}));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"desktop_registerComponentActivationObserver",value:function(e){var t={id:"".concat(Math.random),callback:e};return this.componentActivationObservers.push(t),t}},{key:"desktop_deregisterComponentActivationObserver",value:function(e){Object(y.removeFromArray)(this.componentActivationObservers,e)}},{key:"notifyComponentActivation",value:(r=I()(m.a.mark((function e(t){var n,r=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.convertComponentForTransmission(t);case 2:n=e.sent,this.$timeout((function(){var e=!0,t=!1,i=void 0;try{for(var a,o=r.componentActivationObservers[Symbol.iterator]();!(e=(a=o.next()).done);e=!0)a.value.callback(n)}catch(e){t=!0,i=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw i}}}));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"desktop_setExtServerHost",value:function(e){this.extServerHost=e,this.webApplication.getAppState().desktopExtensionsReady()}},{key:"desktop_setComponentInstallationSyncHandler",value:function(e){this.installationSyncHandler=e}},{key:"desktop_setInstallComponentHandler",value:function(e){this.installComponentHandler=e}},{key:"desktop_setInitialDataLoadHandler",value:function(e){this.dataLoadHandler=e,this.dataLoaded&&this.dataLoadHandler()}},{key:"desktop_requestBackupFile",value:(n=I()(m.a.mark((function e(t){var n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.createBackupFile(void 0,void 0,!0);case 2:n=e.sent,t(n);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"desktop_setMajorDataChangeHandler",value:function(e){this.majorDataChangeHandler=e}},{key:"desktop_didBeginBackup",value:function(){this.webApplication.getAppState().beganBackupDownload()}},{key:"desktop_didFinishBackup",value:function(e){this.webApplication.getAppState().endedBackupDownload(e)}},{key:"webApplication",get:function(){return this.application}}]),t}(y.ApplicationService);!function(e){e.Tab="Tab",e.Backspace="Backspace",e.Up="ArrowUp",e.Down="ArrowDown"}(s||(s={})),function(e){e.Shift="Shift",e.Ctrl="Control",e.Meta="Meta",e.Alt="Alt"}(c||(c={})),function(e){e.Down="KeyEventDown",e.Up="KeyEventUp"}(u||(u={}));var F,O=function(){function e(){var t=this;f()(this,e),d()(this,"observers",[]),d()(this,"handleKeyDown",void 0),d()(this,"handleKeyUp",void 0),this.handleKeyDown=function(e){t.notifyObserver(e,u.Down)},this.handleKeyUp=function(e){t.notifyObserver(e,u.Up)},window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp)}return h()(e,[{key:"deinit",value:function(){this.observers.length=0,window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),this.handleKeyDown=void 0,this.handleKeyUp=void 0}},{key:"modifiersForEvent",value:function(e){return Object.values(c).filter((function(t){return(e.ctrlKey||e.key===c.Ctrl)&&t===c.Ctrl||(e.metaKey||e.key===c.Meta)&&t===c.Meta||(e.altKey||e.key===c.Alt)&&t===c.Alt||(e.shiftKey||e.key===c.Shift)&&t===c.Shift}))}},{key:"eventMatchesKeyAndModifiers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=this.modifiersForEvent(e);if(r.length!==n.length)return!1;var i=!0,a=!1,o=void 0;try{for(var s,c=n[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value;if(!r.includes(u))return!1}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}return!t||t.toLowerCase()===e.key.toLowerCase()}},{key:"notifyObserver",value:function(e,t){var n=e.target,r=!0,i=!1,a=void 0;try{for(var o,s=this.observers[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;if((!c.element||e.target===c.element)&&((!c.elements||c.elements.includes(n))&&(!c.notElement||c.notElement!==e.target)&&(!c.notElementIds||!c.notElementIds.includes(n.id))&&this.eventMatchesKeyAndModifiers(e,c.key,c.modifiers))){var l=t===u.Down?c.onKeyDown:c.onKeyUp;l&&l(e)}}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}}},{key:"addKeyObserver",value:function(e){var t=this;return this.observers.push(e),function(){Object(y.removeFromArray)(t.observers,e)}}}]),e}(),R=n(39),T=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=B()(this,(e=Q()(t)).call.apply(e,[this].concat(i))),d()(_()(n),"extManagerId","org.standardnotes.extensions-manager"),d()(_()(n),"batchManagerId","org.standardnotes.batch-manager"),n}var n,r,i;return P()(t,e),h()(t,[{key:"onAppLaunch",value:(i=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.reload();case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"reload",value:function(){this.application.singletonManager.registerPredicate(this.extManagerPred),this.application.singletonManager.registerPredicate(this.batchManagerPred),this.resolveExtensionsManager(),this.resolveBatchManager()}},{key:"resolveExtensionsManager",value:(r=I()(m.a.mark((function e(){var t,n,r,i,o=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.singletonManager.findOrCreateSingleton(this.extManagerPred,y.ContentType.Component,this.extensionsManagerTemplateContent());case 2:if(t=e.sent,n=!1,!Object(a.d)()){e.next=11;break}if(t.local_url){e.next=9;break}return e.next=8,this.application.changeItem(t.uuid,(function(e){e.local_url=o.extMgrUrl}));case 8:n=!0;case 9:e.next=15;break;case 11:if(t.hosted_url){e.next=15;break}return e.next=14,this.application.changeItem(t.uuid,(function(e){e.hosted_url=o.extMgrUrl}));case 14:n=!0;case 15:if(r=Object(y.Copy)(t.permissions),!(i=r.find((function(e){return e.name===y.ComponentAction.StreamItems})))||i.content_types.includes(y.ContentType.ExtensionRepo)){e.next=22;break}return i.content_types.push(y.ContentType.ExtensionRepo),e.next=21,this.application.changeItem(t.uuid,(function(e){e.permissions=r}));case 21:n=!0;case 22:n&&this.application.saveItem(t.uuid);case 23:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"extensionsManagerTemplateContent",value:function(){if(!this.extMgrUrl)throw Error("this.extMgrUrl must be set.");var e={name:"Extensions",identifier:this.extManagerId},t=Object(y.FillItemContent)({name:e.name,area:"rooms",package_info:e,permissions:[{name:y.ComponentAction.StreamItems,content_types:[y.ContentType.Component,y.ContentType.Theme,y.ContentType.ServerExtension,y.ContentType.ActionsExtension,y.ContentType.Mfa,y.ContentType.Editor,y.ContentType.ExtensionRepo]}]});return Object(a.d)()?t.local_url=this.extMgrUrl:t.hosted_url=this.extMgrUrl,t}},{key:"resolveBatchManager",value:(n=I()(m.a.mark((function e(){var t,n,r,i,o=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.singletonManager.findOrCreateSingleton(this.batchManagerPred,y.ContentType.Component,this.batchManagerTemplateContent());case 2:if(t=e.sent,n=!1,!Object(a.d)()){e.next=11;break}if(t.local_url){e.next=9;break}return e.next=8,this.application.changeItem(t.uuid,(function(e){e.local_url=o.batchMgrUrl}));case 8:n=!0;case 9:e.next=15;break;case 11:if(t.hosted_url){e.next=15;break}return e.next=14,this.application.changeItem(t.uuid,(function(e){e.hosted_url=o.batchMgrUrl}));case 14:n=!0;case 15:if(r=Object(y.Copy)(t.permissions),!(i=r.find((function(e){return e.name===y.ComponentAction.StreamItems})))||i.content_types.includes(y.ContentType.ExtensionRepo)){e.next=22;break}return i.content_types.push(y.ContentType.ExtensionRepo),e.next=21,this.application.changeItem(t.uuid,(function(e){e.permissions=r}));case 21:n=!0;case 22:n&&this.application.saveItem(t.uuid);case 23:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"batchManagerTemplateContent",value:function(){if(!this.batchMgrUrl)throw Error("window._batch_manager_location must be set.");var e={name:"Batch Manager",identifier:this.batchManagerId},t=Object(y.dictToArray)(y.ContentType),n=Object(y.FillItemContent)({name:e.name,area:"modal",package_info:e,permissions:[{name:y.ComponentAction.StreamItems,content_types:t}]});return Object(a.d)()?n.local_url=this.batchMgrUrl:n.hosted_url=this.batchMgrUrl,n}},{key:"extManagerPred",get:function(){return y.SNPredicate.CompoundPredicate([new y.SNPredicate("content_type","=",y.ContentType.Component),new y.SNPredicate("package_info.identifier","=","org.standardnotes.extensions-manager")])}},{key:"batchManagerPred",get:function(){return y.SNPredicate.CompoundPredicate([new y.SNPredicate("content_type","=",y.ContentType.Component),new y.SNPredicate("package_info.identifier","=","org.standardnotes.batch-manager")])}},{key:"extMgrUrl",get:function(){return window._extensions_manager_location}},{key:"batchMgrUrl",get:function(){return window._batch_manager_location}}]),t}(y.ApplicationService),H=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=B()(this,(e=Q()(t)).call.apply(e,[this].concat(i))),d()(_()(n),"userPreferences",void 0),d()(_()(n),"loadingPrefs",!1),n}var n,r,i;return P()(t,e),h()(t,[{key:"onAppLaunch",value:(i=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.streamPreferences();case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"streamPreferences",value:function(){var e=this;this.application.streamItems(y.ContentType.UserPrefs,(function(){e.loadSingleton()}))}},{key:"loadSingleton",value:(r=I()(m.a.mark((function e(){var t,n,r,i,a;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.loadingPrefs){e.next=2;break}return e.abrupt("return");case 2:return this.loadingPrefs=!0,r=y.ContentType.UserPrefs,i=new y.SNPredicate("content_type","=",r),a=this.userPreferences,e.next=8,this.application.singletonManager.findOrCreateSingleton(i,r,Object(y.FillItemContent)({}));case 8:this.userPreferences=e.sent,this.loadingPrefs=!1,(!a||(null===(t=this.userPreferences.lastSyncBegan)||void 0===t?void 0:t.getTime())!==(null==a||null===(n=a.lastSyncBegan)||void 0===n?void 0:n.getTime()))&&this.webApplication.getAppState().setUserPreferences(this.userPreferences);case 12:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"syncUserPreferences",value:function(){this.userPreferences&&this.application.saveItem(this.userPreferences.uuid)}},{key:"getValue",value:function(e,t){if(!this.userPreferences)return t;var n=this.userPreferences.getPref(e);return null!=n?n:t}},{key:"setUserPrefValue",value:(n=I()(m.a.mark((function e(t,n){var r,i=arguments;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>2&&void 0!==i[2]&&i[2],e.next=3,this.application.changeItem(this.userPreferences.uuid,(function(e){e.setWebPref(t,n)}));case 3:r&&this.syncUserPreferences();case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"webApplication",get:function(){return this.application}}]),t}(y.ApplicationService),j=function(){function e(){f()(this,e),d()(this,"statuses",[]),d()(this,"observers",[])}return h()(e,[{key:"statusFromString",value:function(e){return{string:e}}},{key:"replaceStatusWithString",value:function(e,t){return this.removeStatus(e),this.addStatusFromString(t)}},{key:"addStatusFromString",value:function(e){return this.addStatus(this.statusFromString(e))}},{key:"addStatus",value:function(e){return this.statuses.push(e),this.notifyObservers(),e}},{key:"removeStatus",value:function(e){Object(y.removeFromArray)(this.statuses,e),this.notifyObservers()}},{key:"getStatusString",value:function(){var e="";return this.statuses.forEach((function(t,n){n>0&&(e+=" "),e+=t.string})),e}},{key:"notifyObservers",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.observers[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){(0,r.value)(this.getStatusString())}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"addStatusObserver",value:function(e){var t=this;return this.observers.push(e),function(){Object(y.removeFromArray)(t.observers,e)}}}]),e}(),N=n(12),U=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=B()(this,(e=Q()(t)).call.apply(e,[this].concat(i))),d()(_()(n),"activeThemes",[]),d()(_()(n),"unsubState",void 0),d()(_()(n),"unregisterDesktop",void 0),d()(_()(n),"unregisterComponent",void 0),n}var n,r,i,a,o,s;return P()(t,e),h()(t,[{key:"onAppLaunch",value:(s=I()(m.a.mark((function e(){var n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.unsubState=this.webApplication.getAppState().addObserver(function(){var e=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t===N.b.DesktopExtsReady&&n.activateCachedThemes();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"onAppEvent",value:function(e){x()(Q()(t.prototype),"onAppEvent",this).call(this,e),e===y.ApplicationEvent.SignedOut&&this.deactivateAllThemes()}},{key:"deinit",value:function(){this.unsubState(),this.unsubState=void 0,this.activeThemes.length=0,this.unregisterDesktop(),this.unregisterComponent(),this.unregisterDesktop=void 0,this.unregisterComponent=void 0,x()(Q()(t.prototype),"deinit",this).call(this)}},{key:"onAppStart",value:(o=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppStart",this).call(this),this.registerObservers(),this.webApplication.getDesktopService().isDesktop||this.activateCachedThemes();case 3:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"activateCachedThemes",value:(a=I()(m.a.mark((function e(){var t,n,r,i,a,o,s;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getCachedThemes();case 2:for(t=e.sent,n=!0,r=!1,i=void 0,e.prev=7,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)s=o.value,this.activateTheme(s,!1);e.next=15;break;case 11:e.prev=11,e.t0=e.catch(7),r=!0,i=e.t0;case 15:e.prev=15,e.prev=16,n||null==a.return||a.return();case 18:if(e.prev=18,!r){e.next=21;break}throw i;case 21:return e.finish(18);case 22:return e.finish(15);case 23:case"end":return e.stop()}}),e,this,[[7,11,15,23],[16,,18,22]])}))),function(){return a.apply(this,arguments)})},{key:"registerObservers",value:function(){var e=this;this.unregisterDesktop=this.webApplication.getDesktopService().registerUpdateObserver((function(t){t.active&&t.isTheme()&&(e.deactivateTheme(t.uuid),setTimeout((function(){e.activateTheme(t)}),10))})),this.unregisterComponent=this.application.componentManager.registerHandler({identifier:"themeManager",areas:[y.ComponentArea.Themes],activationHandler:function(t){t.active?e.activateTheme(t):e.deactivateTheme(t.uuid)}})}},{key:"deactivateAllThemes",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.activeThemes[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var a=r.value;this.deactivateTheme(a,!1)}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}this.activeThemes=[],this.decacheThemes()}},{key:"activateTheme",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.activeThemes.find((function(t){return t===e.uuid}))){this.activeThemes.push(e.uuid);var n=this.application.componentManager.urlForComponent(e),r=document.createElement("link");r.href=n,r.type="text/css",r.rel="stylesheet",r.media="screen,print",r.id=e.uuid,document.getElementsByTagName("head")[0].appendChild(r),t&&this.cacheThemes()}}},{key:"deactivateTheme",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=document.getElementById(e);n&&(n.disabled=!0,n.parentNode.removeChild(n)),Object(y.removeFromArray)(this.activeThemes,e),t&&this.cacheThemes()}},{key:"cacheThemes",value:(i=I()(m.a.mark((function e(){var t,n,r=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.application.getAll(this.activeThemes),e.next=3,Promise.all(t.map(function(){var e=I()(m.a.mark((function e(t){var n,i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.payloadRepresentation(),e.next=3,r.application.protocolService.payloadByEncryptingPayload(n,y.EncryptionIntent.LocalStorageDecrypted);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 3:return n=e.sent,e.abrupt("return",this.application.setValue("cachedThemes",n,y.StorageValueModes.Nonwrapped));case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"decacheThemes",value:(r=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.application){e.next=2;break}return e.abrupt("return",this.application.removeValue("cachedThemes",y.StorageValueModes.Nonwrapped));case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getCachedThemes",value:(n=I()(m.a.mark((function e(){var t,n,r,i,a,o,s,c,u,l;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.getValue("cachedThemes",y.StorageValueModes.Nonwrapped);case 2:if(!(t=e.sent)){e.next=27;break}for(n=[],r=!0,i=!1,a=void 0,e.prev=8,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0)c=s.value,u=this.application.createPayloadFromObject(c),l=this.application.createItemFromPayload(u),n.push(l);e.next=16;break;case 12:e.prev=12,e.t0=e.catch(8),i=!0,a=e.t0;case 16:e.prev=16,e.prev=17,r||null==o.return||o.return();case 19:if(e.prev=19,!i){e.next=22;break}throw a;case 22:return e.finish(19);case 23:return e.finish(16);case 24:return e.abrupt("return",n);case 27:return e.abrupt("return",[]);case 28:case"end":return e.stop()}}),e,this,[[8,12,16,24],[17,,19,23]])}))),function(){return n.apply(this,arguments)})},{key:"webApplication",get:function(){return this.application}}]),t}(y.ApplicationService),L=function(){function e(t,n,r){f()(this,e),d()(this,"$compile",void 0),d()(this,"$rootScope",void 0),d()(this,"$timeout",void 0),d()(this,"applications",[]),d()(this,"changeObservers",[]),d()(this,"activeApplication",void 0),this.$compile=t,this.$timeout=r,this.$rootScope=n,this.onApplicationDeinit=this.onApplicationDeinit.bind(this),this.createDefaultApplication()}return e.$inject=["$compile","$rootScope","$timeout"],h()(e,[{key:"createDefaultApplication",value:function(){this.activeApplication=this.createNewApplication(),this.applications.push(this.activeApplication),this.notifyObserversOfAppChange()}},{key:"onApplicationDeinit",value:function(e){Object(y.removeFromArray)(this.applications,e),this.activeApplication===e&&(this.activeApplication=void 0),0===this.applications.length&&this.createDefaultApplication(),this.notifyObserversOfAppChange()}},{key:"createNewApplication",value:function(){var e=this.$rootScope.$new(!0),t=new g.a(this.$compile,this.$timeout,e,this.onApplicationDeinit),n=new N.a(this.$rootScope,this.$timeout,t),r=new w(t),i=new M(this.$rootScope,this.$timeout,t),a=new O,o=new R.a(t),s=new T(t),c=new H(t),u=new j,l=new U(t);return t.setWebServices({appState:n,archiveService:r,desktopService:i,keyboardService:a,lockService:o,nativeExtService:s,prefsService:c,statusService:u,themeService:l}),t}},{key:"getApplications",value:function(){return this.applications.slice()}},{key:"addApplicationChangeObserver",value:function(e){this.changeObservers.push(e),this.application&&e()}},{key:"notifyObserversOfAppChange",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.changeObservers[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){(0,r.value)()}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"application",get:function(){return this.activeApplication}}]),e}(),K=n(14),G=function e(){f()(this,e),d()(this,"controller",void 0),d()(this,"controllerAs",void 0),d()(this,"bindToController",void 0),d()(this,"restrict",void 0),d()(this,"replace",void 0),d()(this,"scope",void 0),d()(this,"template",void 0),d()(this,"transclude",void 0)};!function(e){e[e.ChangePassword=1]="ChangePassword",e[e.AccountUpgrade=2]="AccountUpgrade"}(F||(F={}));var $=n(65),Y=n.n($),J=function(){function e(t,n){var r=this;f()(this,e),d()(this,"$timeout",void 0),d()(this,"applicationGroup",void 0),d()(this,"applications",[]),this.$timeout=t,this.applicationGroup=n,this.applicationGroup.addApplicationChangeObserver((function(){r.reload()}))}return e.$inject=["$timeout","mainApplicationGroup"],h()(e,[{key:"reload",value:function(){var e=this;this.$timeout((function(){e.applications=e.applicationGroup.getApplications()}))}}]),e}(),V=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).template=Y.a,e.controller=J,e.replace=!0,e.controllerAs="self",e.bindToController=!0,e}return P()(t,e),t}(G),z=n(66),q=n.n(z);var W="The note you are attempting to edit has been deleted, and is awaiting sync. Changes you make will be disregarded.",X="The note you are attempting to save can not be found or has been deleted. Changes you make will not be synced. Please copy this note's text and start a new note.";function Z(e,t){return t?"Are you sure you want to permanently delete ".concat(e,"?"):"Are you sure you want to move ".concat(e," to the trash?")}function ee(e){return"Import complete. ".concat(e," items were not imported because there was an error decrypting them. Make sure the password is correct and try again.")}var te,ne=function(e){function t(e,n,r,i){var o;return f()(this,t),o=B()(this,Q()(t).call(this,i)),d()(_()(o),"$compile",void 0),d()(_()(o),"$location",void 0),d()(_()(o),"$rootScope",void 0),d()(_()(o),"platformString",void 0),d()(_()(o),"completedInitialSync",!1),d()(_()(o),"syncStatus",void 0),d()(_()(o),"notesCollapsed",!1),d()(_()(o),"tagsCollapsed",!1),d()(_()(o),"showingDownloadStatus",!1),d()(_()(o),"uploadSyncStatus",void 0),d()(_()(o),"lastAlertShownDate",void 0),o.$location=n,o.$rootScope=r,o.$compile=e,o.platformString=Object(a.c)(),o.state={appClass:""},o.onDragDrop=o.onDragDrop.bind(_()(o)),o.onDragOver=o.onDragOver.bind(_()(o)),o.openModalComponent=o.openModalComponent.bind(_()(o)),o.presentPermissionsDialog=o.presentPermissionsDialog.bind(_()(o)),o.addDragDropHandlers(),o}var n,r,o,s,c,u;return t.$inject=["$compile","$location","$rootScope","$timeout"],P()(t,e),h()(t,[{key:"deinit",value:function(){this.$location=void 0,this.$rootScope=void 0,this.$compile=void 0,this.application=void 0,window.removeEventListener("dragover",this.onDragOver,!0),window.removeEventListener("drop",this.onDragDrop,!0),this.onDragDrop=void 0,this.onDragOver=void 0,this.openModalComponent=void 0,this.presentPermissionsDialog=void 0,x()(Q()(t.prototype),"deinit",this).call(this)}},{key:"$onInit",value:function(){x()(Q()(t.prototype),"$onInit",this).call(this),this.loadApplication()}},{key:"loadApplication",value:(u=I()(m.a.mark((function e(){var t=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.prepareForLaunch({receiveChallenge:function(){var e=I()(m.a.mark((function e(n,r){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.application.promptForChallenge(n,r);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()});case 2:return e.next=4,this.application.launch();case 4:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"onAppStart",value:(c=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppStart",this).call(this),this.overrideComponentManagerFunctions(),this.application.componentManager.setDesktopManager(this.application.getDesktopService()),this.setState({ready:!0,needsUnlock:this.application.hasPasscode()});case 4:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"onAppLaunch",value:(s=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.setState({needsUnlock:!1}),this.handleAutoSignInFromParams();case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"onUpdateAvailable",value:function(){this.$rootScope.$broadcast("new-update-available")}},{key:"onAppEvent",value:(o=I()(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppEvent",this).call(this,n),n===y.ApplicationEvent.LocalDataIncrementalLoad?this.updateLocalDataStatus():n===y.ApplicationEvent.SyncStatusChanged||n===y.ApplicationEvent.FailedSync?this.updateSyncStatus():n===y.ApplicationEvent.LocalDataLoaded?this.updateLocalDataStatus():n===y.ApplicationEvent.WillSync?this.completedInitialSync||(this.syncStatus=this.application.getStatusService().replaceStatusWithString(this.syncStatus,"Syncing...")):n===y.ApplicationEvent.CompletedFullSync?this.completedInitialSync||(this.syncStatus=this.application.getStatusService().removeStatus(this.syncStatus),this.completedInitialSync=!0):n===y.ApplicationEvent.InvalidSyncSession?this.showInvalidSessionAlert():n===y.ApplicationEvent.LocalDatabaseReadError?this.application.alertService.alert("Unable to load local database. Please restart the app and try again."):n===y.ApplicationEvent.LocalDatabaseWriteError&&this.application.alertService.alert("Unable to write to local database. Please restart the app and try again.");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"onAppStateEvent",value:(r=I()(m.a.mark((function e(t,n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==N.b.PanelResized){e.next=9;break}"notes"===n.panel&&(this.notesCollapsed=n.collapsed),"tags"===n.panel&&(this.tagsCollapsed=n.collapsed),r="",this.notesCollapsed&&(r+="collapsed-notes"),this.tagsCollapsed&&(r+=" collapsed-tags"),this.setState({appClass:r}),e.next=14;break;case 9:if(t!==N.b.WindowDidFocus){e.next=14;break}return e.next=12,this.application.isLocked();case 12:if(e.sent){e.next=14;break}this.application.sync();case 14:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"updateLocalDataStatus",value:function(){var e=this.application.getSyncStatus().getStats(),t=this.application.isEncryptionAvailable();if(e.localDataDone)this.syncStatus=this.application.getStatusService().removeStatus(this.syncStatus);else{var n="".concat(e.localDataCurrent,"/").concat(e.localDataTotal," items..."),r=t?"Decrypting ".concat(n):"Loading ".concat(n);this.syncStatus=this.application.getStatusService().replaceStatusWithString(this.syncStatus,r)}}},{key:"updateSyncStatus",value:function(){var e=this,t=this.application.getSyncStatus(),n=t.getStats();if(t.hasError())this.syncStatus=this.application.getStatusService().replaceStatusWithString(this.syncStatus,"Unable to Sync");else if(n.downloadCount>20){var r="Downloading ".concat(n.downloadCount," items. Keep app open.");this.syncStatus=this.application.getStatusService().replaceStatusWithString(this.syncStatus,r),this.showingDownloadStatus=!0}else if(this.showingDownloadStatus){this.showingDownloadStatus=!1;this.syncStatus=this.application.getStatusService().replaceStatusWithString(this.syncStatus,"Download Complete."),setTimeout((function(){e.syncStatus=e.application.getStatusService().removeStatus(e.syncStatus)}),2e3)}else n.uploadTotalCount>20?this.uploadSyncStatus=this.application.getStatusService().replaceStatusWithString(this.uploadSyncStatus,"Syncing ".concat(n.uploadCompletionCount,"/").concat(n.uploadTotalCount," items...")):(this.syncStatus&&(this.syncStatus=this.application.getStatusService().removeStatus(this.syncStatus)),this.uploadSyncStatus&&(this.uploadSyncStatus=this.application.getStatusService().removeStatus(this.uploadSyncStatus)))}},{key:"openModalComponent",value:function(e){var t=this.$rootScope.$new(!0);t.componentUuid=e.uuid,t.application=this.application;var n=this.$compile("<component-modal application='application' component-uuid='componentUuid' class='sk-modal'></component-modal>")(t);i.a.element(document.body).append(n)}},{key:"presentPermissionsDialog",value:function(e){var t=this.$rootScope.$new(!0);t.permissionsString=e.permissionsString,t.component=e.component,t.callback=e.callback;var n=this.$compile("<permissions-modal component='component' permissions-string='permissionsString' callback='callback' class='sk-modal'></permissions-modal>")(t);i.a.element(document.body).append(n)}},{key:"overrideComponentManagerFunctions",value:function(){this.application.componentManager.openModalComponent=this.openModalComponent,this.application.componentManager.presentPermissionsDialog=this.presentPermissionsDialog}},{key:"showInvalidSessionAlert",value:function(){var e=this;(!this.lastAlertShownDate||((new Date).getTime()-this.lastAlertShownDate.getTime())/1e3>30)&&(this.lastAlertShownDate=new Date,setTimeout((function(){e.application.alertService.alert("Your session has expired. New changes will not be pulled in. Please sign out and sign back in to refresh your session.")}),500))}},{key:"addDragDropHandlers",value:function(){window.addEventListener("dragover",this.onDragOver,!0),window.addEventListener("drop",this.onDragDrop,!0)}},{key:"onDragOver",value:function(e){e.dataTransfer.files.length>0&&e.preventDefault()}},{key:"onDragDrop",value:function(e){e.dataTransfer.files.length>0&&(e.preventDefault(),this.application.alertService.alert("Please use FileSafe or the Bold Editor to attach images and files. Learn more at standardnotes.org/filesafe."))}},{key:"handleAutoSignInFromParams",value:(n=I()(m.a.mark((function e(){var t,n,r,i,a;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.$location.search(),n=t.server,r=t.email,i=t.pw,n&&r&&i){e.next=6;break}return e.abrupt("return");case 6:if(!(a=this.application.getUser())){e.next=21;break}if(e.t0=a.email===r,!e.t0){e.next=15;break}return e.next=12,this.application.getHost();case 12:e.t1=e.sent,e.t2=n,e.t0=e.t1===e.t2;case 15:if(!e.t0){e.next=19;break}return e.abrupt("return");case 19:return e.next=21,this.application.signOut();case 21:return e.next=23,this.application.setHost(n);case 23:this.application.signIn(r,i);case 24:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),t}(K.a),re=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).template=q.a,e.controller=ne,e.replace=!0,e.controllerAs="self",e.bindToController=!0,e.scope={application:"="},e}return P()(t,e),t}(G),ie=n(67),ae=n.n(ie),oe=function(){function e(){f()(this,e),d()(this,"application",void 0),d()(this,"editors",[])}return h()(e,[{key:"$onInit",value:function(){var e=this;this.application.editorGroup.addChangeObserver((function(){e.editors=e.application.editorGroup.editors}))}}]),e}(),se=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).template=ae.a,e.controller=oe,e.replace=!0,e.controllerAs="self",e.bindToController=!0,e.scope={application:"="},e}return P()(t,e),t}(G),ce=n(68),ue=n.n(ce),le=n(69),fe=n.n(le),Ae="note-text-editor",he="note-title-editor",pe="editor-content",de="note-tags-component-container",ge="Menlo,Consolas,'DejaVu Sans Mono',monospace",ye="monospace",ve="inherit",me=function(e){function t(e){var n;return f()(this,t),n=B()(this,Q()(t).call(this,e)),d()(_()(n),"application",void 0),d()(_()(n),"editor",void 0),d()(_()(n),"leftPanelPuppet",void 0),d()(_()(n),"rightPanelPuppet",void 0),d()(_()(n),"unregisterComponent",void 0),d()(_()(n),"saveTimeout",void 0),d()(_()(n),"statusTimeout",void 0),d()(_()(n),"lastEditorFocusEventSource",void 0),d()(_()(n),"editorValues",{}),d()(_()(n),"onEditorLoad",void 0),d()(_()(n),"removeAltKeyObserver",void 0),d()(_()(n),"removeTrashKeyObserver",void 0),d()(_()(n),"removeDeleteKeyObserver",void 0),d()(_()(n),"removeTabObserver",void 0),d()(_()(n),"removeComponentGroupObserver",void 0),d()(_()(n),"removeTagsObserver",void 0),d()(_()(n),"removeComponentsObserver",void 0),d()(_()(n),"prefKeyMonospace",void 0),d()(_()(n),"prefKeySpellcheck",void 0),d()(_()(n),"prefKeyMarginResizers",void 0),n.leftPanelPuppet={onReady:function(){return n.reloadPreferences()}},n.rightPanelPuppet={onReady:function(){return n.reloadPreferences()}},n.prefKeyMonospace=y.WebPrefKey.EditorMonospaceEnabled,n.prefKeySpellcheck=y.WebPrefKey.EditorSpellcheck,n.prefKeyMarginResizers=y.WebPrefKey.EditorResizersEnabled,n.editorMenuOnSelect=n.editorMenuOnSelect.bind(_()(n)),n.onPanelResizeFinish=n.onPanelResizeFinish.bind(_()(n)),n.onEditorLoad=function(){n.application.getDesktopService().redoSearch()},n}var n,r,o,u,l,A,p,g,v,b,w,C,E,k;return t.$inject=["$timeout"],P()(t,e),h()(t,[{key:"deinit",value:function(){this.removeTagsObserver(),this.removeComponentsObserver(),this.removeTagsObserver=void 0,this.removeComponentsObserver=void 0,this.removeComponentGroupObserver(),this.removeComponentGroupObserver=void 0,this.removeAltKeyObserver(),this.removeAltKeyObserver=void 0,this.removeTrashKeyObserver(),this.removeTrashKeyObserver=void 0,this.removeDeleteKeyObserver(),this.removeDeleteKeyObserver=void 0,this.removeTabObserver&&this.removeTabObserver(),this.removeTabObserver=void 0,this.leftPanelPuppet=void 0,this.rightPanelPuppet=void 0,this.onEditorLoad=void 0,this.unregisterComponent(),this.unregisterComponent=void 0,this.saveTimeout=void 0,this.statusTimeout=void 0,this.onPanelResizeFinish=void 0,this.editorMenuOnSelect=void 0,x()(Q()(t.prototype),"deinit",this).call(this)}},{key:"getState",value:function(){return this.state}},{key:"$onInit",value:function(){var e=this;x()(Q()(t.prototype),"$onInit",this).call(this),this.registerKeyboardShortcuts(),this.editor.onNoteChange((function(){e.handleEditorNoteChange()})),this.editor.onNoteValueChange((function(t,n){Object(y.isPayloadSourceRetrieved)(n)&&(e.editorValues.title=t.title,e.editorValues.text=t.text,e.reloadTagsString()),t.lastSyncBegan&&t.lastSyncEnd&&(t.lastSyncBegan.getTime()>t.lastSyncEnd.getTime()?e.showSavingStatus():t.lastSyncEnd.getTime()>t.lastSyncBegan.getTime()&&e.showAllChangesSavedStatus())})),this.removeComponentGroupObserver=this.componentGroup.addChangeObserver(I()(m.a.mark((function t(){var n,r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.activeEditorComponent,r=e.componentGroup.activeComponentForArea(y.ComponentArea.Editor),!n||!r||n.uuid===r.uuid){t.next=5;break}return t.next=5,e.setEditorState({editorComponentUnloading:!0});case 5:return t.next=7,e.setEditorState({activeEditorComponent:r,activeTagsComponent:e.componentGroup.activeComponentForArea(y.ComponentArea.NoteTags),activeStackComponents:e.componentGroup.activeComponentsForArea(y.ComponentArea.EditorStack)});case 7:return t.next=9,e.setEditorState({editorComponentUnloading:!1});case 9:case"end":return t.stop()}}),t)}))))}},{key:"getInitialState",value:function(){return{allStackComponents:[],activeStackComponents:[],editorDebounce:100,isDesktop:Object(a.d)(),spellcheck:!0,mutable:{tagsString:""}}}},{key:"setEditorState",value:(k=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.setState(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"onAppLaunch",value:(E=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x()(Q()(t.prototype),"onAppLaunch",this).call(this);case 2:this.streamItems(),this.registerComponentHandler();case 4:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"onAppStateEvent",value:function(e,t){e===N.b.PreferencesChanged&&this.reloadPreferences()}},{key:"onAppEvent",value:function(e){if(e===y.ApplicationEvent.HighLatencySync)this.setEditorState({syncTakingTooLong:!0});else if(e===y.ApplicationEvent.CompletedFullSync){this.setEditorState({syncTakingTooLong:!1});var t=this.getState().saveError;!this.note.dirty&&t&&this.showAllChangesSavedStatus()}else e===y.ApplicationEvent.FailedSync?this.note.dirty&&this.showErrorStatus():e===y.ApplicationEvent.LocalDatabaseWriteError&&this.showErrorStatus({message:"Offline Saving Issue",desc:"Changes not saved"})}},{key:"handleEditorNoteChange",value:(C=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.cancelPendingSetStatus(),e.next=3,this.setEditorState({showExtensions:!1,showOptionsMenu:!1,showEditorMenu:!1,showSessionHistory:!1,altKeyDown:!1,noteStatus:void 0});case 3:return t=this.editor.note,this.editorValues.title=t.title,this.editorValues.text=t.text,e.next=8,this.reloadComponentEditorState();case 8:this.reloadTagsString(),this.reloadPreferences(),this.reloadComponentContext(),0===t.safeText().length&&this.focusTitle();case 12:case"end":return e.stop()}}),e,this)}))),function(){return C.apply(this,arguments)})},{key:"reloadComponentEditorState",value:(w=I()(m.a.mark((function e(){var t,n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.application.componentManager.editorForNote(this.note)){e.next=8;break}if(r=!1,!this.activeEditorComponent){e.next=7;break}return e.next=6,this.componentGroup.deactivateComponentForArea(y.ComponentArea.Editor);case 6:r=!0;case 7:return e.abrupt("return",{editor:void 0,changed:r});case 8:if(n.uuid!==(null===(t=this.activeEditorComponent)||void 0===t?void 0:t.uuid)){e.next=10;break}return e.abrupt("return",{editor:n,changed:!1});case 10:return e.next=12,this.componentGroup.activateComponent(n);case 12:return e.abrupt("return",{editor:n,changed:!0});case 13:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"streamItems",value:function(){var e=this;this.removeTagsObserver=this.application.streamItems(y.ContentType.Tag,(function(t){if(e.note){var n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(!e.editorValues.tagsInputValue||s.deleted||s.hasRelationshipWithItem(e.note)){e.reloadTagsString();break}}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}}})),this.removeComponentsObserver=this.application.streamItems(y.ContentType.Component,function(){var t=I()(m.a.mark((function t(n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n,e.note){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,e.reloadComponentStack();case 5:if(0!==r.filter((function(e){return e.isEditor()})).length){t.next=8;break}return t.abrupt("return");case 8:e.reloadComponentEditorState().then((function(t){var n=t.editor,r=t.changed;!n&&r&&e.reloadFont()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"setMenuState",value:function(e,t){this.setEditorState(d()({},e,t)),this.closeAllMenus(e)}},{key:"toggleMenu",value:function(e){this.setMenuState(e,!this.state[e])}},{key:"closeAllMenus",value:function(e){for(var t={},n=0,r=["showOptionsMenu","showEditorMenu","showExtensions","showSessionHistory"];n<r.length;n++){var i=r[n];i!==e&&(t[i]=!1)}this.setEditorState(t)}},{key:"editorMenuOnSelect",value:(b=I()(m.a.mark((function e(t){var n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.setMenuState("showEditorMenu",!1),t){e.next=13;break}if(this.note.prefersPlainEditor){e.next=5;break}return e.next=5,this.application.changeItem(this.note.uuid,(function(e){e.prefersPlainEditor=!0}));case 5:if(!(null===(n=this.activeEditorComponent)||void 0===n?void 0:n.isExplicitlyEnabledForItem(this.note.uuid))){e.next=8;break}return e.next=8,this.disassociateComponentWithCurrentNote(this.activeEditorComponent);case 8:return e.next=10,this.reloadComponentEditorState();case 10:this.reloadFont(),e.next=31;break;case 13:if(t.area!==y.ComponentArea.Editor){e.next=28;break}if(!(r=this.activeEditorComponent)||t===r){e.next=18;break}return e.next=18,this.disassociateComponentWithCurrentNote(r);case 18:if(!this.note.prefersPlainEditor){e.next=22;break}return e.next=22,this.application.changeItem(this.note.uuid,(function(e){e.prefersPlainEditor=!1}));case 22:return e.next=24,this.associateComponentWithCurrentNote(t);case 24:return e.next=26,this.reloadComponentEditorState();case 26:e.next=31;break;case 28:if(t.area!==y.ComponentArea.EditorStack){e.next=31;break}return e.next=31,this.toggleStackComponentForCurrentItem(t);case 31:this.application.sync();case 32:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"hasAvailableExtensions",value:function(){return this.application.actionsManager.extensionsInContextOfItem(this.note).length>0}},{key:"performFirefoxPinnedTabFix",value:function(){document.hidden&&window.location.reload()}},{key:"saveNote",value:(v=I()(m.a.mark((function e(){var t,n,r,i,a,o,s,c,u,l=this,f=arguments;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]&&f[0],n=f.length>1&&void 0!==f[1]&&f[1],r=f.length>2&&void 0!==f[2]&&f[2],i=f.length>3?f[3]:void 0,a=f.length>4&&void 0!==f[4]&&f[4],this.performFirefoxPinnedTabFix(),!(o=this.note).deleted){e.next=10;break}return this.application.alertService.alert(W),e.abrupt("return");case 10:if(!this.editor.isTemplateNote){e.next=16;break}return e.next=13,this.editor.insertTemplatedNote();case 13:if(!1!==(null===(s=this.appState.selectedTag)||void 0===s?void 0:s.isSmartTag())){e.next=16;break}return e.next=16,this.application.changeItem(this.appState.selectedTag.uuid,(function(e){e.addItemAsRelationship(o)}));case 16:if(this.application.findItem(o.uuid)){e.next=19;break}return this.application.alertService.alert(X),e.abrupt("return");case 19:return e.next=21,this.application.changeItem(o.uuid,(function(e){var t=e;if(i&&i(t),t.title=l.editorValues.title,t.text=l.editorValues.text,!r){var n=l.editorValues.text||"",a=n.length>80,o=n.substring(0,80)+(a?"...":"");t.preview_plain=o,t.preview_html=void 0}}),n);case 21:this.saveTimeout&&this.$timeout.cancel(this.saveTimeout),c=t||this.application.noAccount(),u=c?100:350,this.saveTimeout=this.$timeout((function(){l.application.sync(),a&&l.appState.closeEditor(l.editor)}),u);case 25:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"showSavingStatus",value:function(){this.setStatus({message:"Saving..."},!1)}},{key:"showAllChangesSavedStatus",value:function(){this.setEditorState({saveError:!1,syncTakingTooLong:!1}),this.setStatus({message:"All changes saved"})}},{key:"showErrorStatus",value:function(e){e||(e={message:"Sync Unreachable",desc:"Changes saved offline"}),this.setEditorState({saveError:!0,syncTakingTooLong:!1}),this.setStatus(e)}},{key:"setStatus",value:function(e){var t,n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t=this.state.noteStatus&&this.state.noteStatus.date?400-((new Date).getTime()-this.state.noteStatus.date.getTime()):0,(!r||t<0)&&(t=0),this.statusTimeout&&this.$timeout.cancel(this.statusTimeout),this.statusTimeout=this.$timeout((function(){e.date=new Date,n.setEditorState({noteStatus:e})}),t)}},{key:"cancelPendingSetStatus",value:function(){this.statusTimeout&&this.$timeout.cancel(this.statusTimeout)}},{key:"contentChanged",value:function(){this.saveNote(!1,!0)}},{key:"onTitleEnter",value:function(e){e.target.blur(),this.onTitleChange(),this.focusEditor()}},{key:"onTitleChange",value:function(){this.saveNote(!1,!0,!0)}},{key:"focusEditor",value:function(){var e=document.getElementById(Ae);e&&(this.lastEditorFocusEventSource=N.c.Script,e.focus())}},{key:"focusTitle",value:function(){document.getElementById(he).focus()}},{key:"clickedTextArea",value:function(){this.setMenuState("showOptionsMenu",!1)}},{key:"onTitleFocus",value:function(){}},{key:"onTitleBlur",value:function(){}},{key:"onContentFocus",value:function(){this.application.getAppState().editorDidFocus(this.lastEditorFocusEventSource),this.lastEditorFocusEventSource=void 0}},{key:"selectedMenuItem",value:function(e){e&&this.setMenuState("showOptionsMenu",!1)}},{key:"deleteNote",value:(g=I()(m.a.mark((function e(t){var n,r=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.editor.isTemplateNote){e.next=3;break}return this.application.alertService.alert("This note is a placeholder and cannot be deleted. To remove from your list, simply navigate to a different note."),e.abrupt("return");case 3:return n=function(){if(r.note.locked)r.application.alertService.alert("This note is locked. If you'd like to delete it, unlock it, and try again.");else{var e=Z(r.note.safeTitle().length?"'".concat(r.note.title,"'"):"this note",t);r.application.alertService.confirm(e,void 0,void 0,void 0,(function(){t?r.performNoteDeletion(r.note):r.saveNote(!0,!1,!0,(function(e){e.trashed=!0}))}),void 0,!0)}},e.next=6,this.application.privilegesService.actionRequiresPrivilege(y.ProtectedAction.DeleteNote);case 6:e.sent?this.application.presentPrivilegesModal(y.ProtectedAction.DeleteNote,(function(){n()})):n();case 8:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"performNoteDeletion",value:function(e){this.application.deleteItem(e)}},{key:"restoreTrashedNote",value:function(){this.saveNote(!0,!1,!0,(function(e){e.trashed=!1}),!0)}},{key:"deleteNotePermanantely",value:function(){this.deleteNote(!0)}},{key:"getTrashCount",value:function(){return this.application.getTrashedItems().length}},{key:"emptyTrash",value:function(){var e=this,t=this.getTrashCount();this.application.alertService.confirm(function(e){return"Are you sure you want to permanently delete ".concat(e," note(s)?")}(t),void 0,void 0,void 0,(function(){e.application.emptyTrash(),e.application.sync()}),void 0,!0)}},{key:"togglePin",value:function(){var e=this;this.saveNote(!0,!1,!0,(function(t){t.pinned=!e.note.pinned}))}},{key:"toggleLockNote",value:function(){var e=this;this.saveNote(!0,!1,!0,(function(t){t.locked=!e.note.locked}))}},{key:"toggleProtectNote",value:function(){var e=this;this.saveNote(!0,!1,!0,(function(t){t.protected=!e.note.protected})),this.application.privilegesService.actionHasPrivilegesConfigured(y.ProtectedAction.ViewProtectedNotes).then((function(t){t||e.application.presentPrivilegesManagementModal()}))}},{key:"toggleNotePreview",value:function(){var e=this;this.saveNote(!0,!1,!0,(function(t){t.hidePreview=!e.note.hidePreview}))}},{key:"toggleArchiveNote",value:function(){var e,t=this;this.saveNote(!0,!1,!0,(function(e){e.archived=!t.note.archived}),this.note.archived&&(null===(e=this.appState.selectedTag)||void 0===e?void 0:e.isArchiveTag))}},{key:"reloadTagsString",value:function(){var e=this,t=this.appState.getNoteTags(this.note),n=y.SNTag.arrayToDisplayString(t);this.updateUI((function(){e.editorValues.tagsInputValue=n}))}},{key:"addTag",value:function(e){var t=this.appState.getNoteTags(this.note).map((function(e){return e.title}));t.push(e.title),this.saveTagsFromStrings(t)}},{key:"removeTag",value:function(e){var t=this.appState.getNoteTags(this.note).map((function(e){return e.title})).filter((function(t){return t!==e.title}));this.saveTagsFromStrings(t)}},{key:"onTagsInputBlur",value:function(){this.saveTagsFromStrings(),this.focusEditor()}},{key:"saveTagsFromStrings",value:(p=I()(m.a.mark((function e(t){var n,r,i,a,o,s,c,u,l,f,A,h,p,d,g,v,b,I,w;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||this.editorValues.tagsInputValue!==this.getState().tagsAsStrings){e.next=2;break}return e.abrupt("return");case 2:for(t||(t=this.editorValues.tagsInputValue.split("#").filter((function(e){return e.length>0})).map((function(e){return e.trim()}))),n=this.note,r=this.appState.getNoteTags(n),i=[],a=!0,o=!1,s=void 0,e.prev=9,c=r[Symbol.iterator]();!(a=(u=c.next()).done);a=!0)l=u.value,-1===t.indexOf(l.title)&&i.push(l);e.next=17;break;case 13:e.prev=13,e.t0=e.catch(9),o=!0,s=e.t0;case 17:e.prev=17,e.prev=18,a||null==c.return||c.return();case 20:if(e.prev=20,!o){e.next=23;break}throw s;case 23:return e.finish(20);case 24:return e.finish(17);case 25:f=0,A=i;case 26:if(!(f<A.length)){e.next=33;break}return h=A[f],e.next=30,this.application.changeItem(h.uuid,(function(e){e.removeItemAsRelationship(n)}));case 30:f++,e.next=26;break;case 33:p=[],d=!0,g=!1,v=void 0,e.prev=37,b=t[Symbol.iterator]();case 39:if(d=(I=b.next()).done){e.next=51;break}if(w=I.value,ue()(r,{title:w})){e.next=48;break}return e.t1=p,e.next=46,this.application.findOrCreateTag(w);case 46:e.t2=e.sent,e.t1.push.call(e.t1,e.t2);case 48:d=!0,e.next=39;break;case 51:e.next=57;break;case 53:e.prev=53,e.t3=e.catch(37),g=!0,v=e.t3;case 57:e.prev=57,e.prev=58,d||null==b.return||b.return();case 60:if(e.prev=60,!g){e.next=63;break}throw v;case 63:return e.finish(60);case 64:return e.finish(57);case 65:if(!(p.length>0)){e.next=68;break}return e.next=68,this.application.changeItems(Object(y.Uuids)(p),(function(e){e.addItemAsRelationship(n)}));case 68:this.application.sync(),this.reloadTagsString();case 70:case"end":return e.stop()}}),e,this,[[9,13,17,25],[18,,20,24],[37,53,57,65],[58,,60,64]])}))),function(e){return p.apply(this,arguments)})},{key:"onPanelResizeFinish",value:(A=I()(m.a.mark((function e(t,n,r){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=5;break}return e.next=3,this.application.getPrefsService().setUserPrefValue(y.WebPrefKey.EditorWidth,null);case 3:e.next=9;break;case 5:if(null==t){e.next=9;break}return e.next=8,this.application.getPrefsService().setUserPrefValue(y.WebPrefKey.EditorWidth,t);case 8:this.leftPanelPuppet.setWidth(t);case 9:if(null==n){e.next=13;break}return e.next=12,this.application.getPrefsService().setUserPrefValue(y.WebPrefKey.EditorLeft,n);case 12:this.rightPanelPuppet.setLeft(n);case 13:this.application.getPrefsService().syncUserPreferences();case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return A.apply(this,arguments)})},{key:"reloadPreferences",value:function(){var e=this.application.getPrefsService().getValue(y.WebPrefKey.EditorMonospaceEnabled,!0),t=this.application.getPrefsService().getValue(y.WebPrefKey.EditorSpellcheck,!0),n=this.application.getPrefsService().getValue(y.WebPrefKey.EditorResizersEnabled,!0);if(this.setEditorState({monospaceEnabled:e,spellcheck:t,marginResizersEnabled:n}),document.getElementById(pe)&&(this.reloadFont(),this.getState().marginResizersEnabled&&this.leftPanelPuppet.ready&&this.rightPanelPuppet.ready)){var r=this.application.getPrefsService().getValue(y.WebPrefKey.EditorWidth,null);null!=r&&(this.leftPanelPuppet.setWidth(r),this.rightPanelPuppet.setWidth(r));var i=this.application.getPrefsService().getValue(y.WebPrefKey.EditorLeft,null);null!=i&&(this.leftPanelPuppet.setLeft(i),this.rightPanelPuppet.setLeft(i))}}},{key:"reloadFont",value:function(){var e=document.getElementById(Ae);e&&(this.getState().monospaceEnabled?this.getState().isDesktop?e.style.fontFamily=ge:e.style.fontFamily=ye:e.style.fontFamily=ve)}},{key:"toggleWebPrefKey",value:(l=I()(m.a.mark((function e(t){var n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this[t]=!this[t],this.application.getPrefsService().setUserPrefValue(t,this[t],!0),this.reloadFont(),t!==y.WebPrefKey.EditorSpellcheck){e.next=10;break}return e.next=6,this.setEditorState({textareaUnloading:!1});case 6:this.setEditorState({textareaUnloading:!0}),this.reloadFont(),e.next=11;break;case 10:t===y.WebPrefKey.EditorResizersEnabled&&!0===this[t]&&this.$timeout((function(){n.leftPanelPuppet.flash(),n.rightPanelPuppet.flash()}));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"registerComponentHandler",value:function(){var e=this;this.unregisterComponent=this.application.componentManager.registerHandler({identifier:"editor",areas:[y.ComponentArea.NoteTags,y.ComponentArea.EditorStack,y.ComponentArea.Editor],contextRequestHandler:function(t){var n,r=e.activeEditorComponent;if(t===(null==r?void 0:r.uuid)||t===(null===(n=e.activeTagsComponent)||void 0===n?void 0:n.uuid)||Object(y.Uuids)(e.getState().activeStackComponents).includes(t))return e.note},focusHandler:function(t,n){t.isEditor()&&n&&e.closeAllMenus()},actionHandler:function(t,n,r){if(n===y.ComponentAction.SetSize){if("container"===r.type&&t.area===y.ComponentArea.NoteTags){var i=document.getElementById(de);s=i,u="string"==typeof(c=r).width?c.width:"".concat(r.width,"px"),l="string"==typeof c.height?c.height:"".concat(r.height,"px"),s.setAttribute("style","width: ".concat(u,"; height: ").concat(l,";"))}}else if(n===y.ComponentAction.AssociateItem){if(r.item.content_type===y.ContentType.Tag){var a=e.application.findItem(r.item.uuid);e.addTag(a)}}else if(n===y.ComponentAction.DeassociateItem){var o=e.application.findItem(r.item.uuid);e.removeTag(o)}var s,c,u,l}})}},{key:"reloadComponentStack",value:(u=I()(m.a.mark((function e(){var t,n,r,i,a,o,s;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.application.componentManager.componentsForArea(y.ComponentArea.EditorStack).sort((function(e,t){return e.name.toLowerCase()<t.name.toLowerCase()?-1:1})),e.next=3,this.setEditorState({allStackComponents:t});case 3:for(this.reloadComponentContext(),n=!0,r=!1,i=void 0,e.prev=7,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)(s=o.value).active&&this.componentGroup.activateComponent(s);e.next=15;break;case 11:e.prev=11,e.t0=e.catch(7),r=!0,i=e.t0;case 15:e.prev=15,e.prev=16,n||null==a.return||a.return();case 18:if(e.prev=18,!r){e.next=21;break}throw i;case 21:return e.finish(18);case 22:return e.finish(15);case 23:case"end":return e.stop()}}),e,this,[[7,11,15,23],[16,,18,22]])}))),function(){return u.apply(this,arguments)})},{key:"reloadComponentContext",value:function(){if(this.note){var e=!0,t=!1,n=void 0;try{for(var r,i=this.getState().allStackComponents[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var a=r.value;a.active&&this.application.componentManager.setComponentHidden(a,!a.isExplicitlyEnabledForItem(this.note.uuid))}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}this.application.componentManager.contextItemDidChangeInArea(y.ComponentArea.NoteTags),this.application.componentManager.contextItemDidChangeInArea(y.ComponentArea.EditorStack),this.application.componentManager.contextItemDidChangeInArea(y.ComponentArea.Editor)}},{key:"stackComponentHidden",value:function(e){var t;return null===(t=this.application.componentManager)||void 0===t?void 0:t.isComponentHidden(e)}},{key:"toggleStackComponentForCurrentItem",value:(o=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.application.componentManager.isComponentHidden(t)&&t.active){e.next=9;break}return this.application.componentManager.setComponentHidden(t,!1),e.next=5,this.associateComponentWithCurrentNote(t);case 5:t.active||this.componentGroup.activateComponent(t),this.application.componentManager.contextItemDidChangeInArea(y.ComponentArea.EditorStack),e.next=12;break;case 9:return this.application.componentManager.setComponentHidden(t,!0),e.next=12,this.disassociateComponentWithCurrentNote(t);case 12:this.application.sync();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"disassociateComponentWithCurrentNote",value:(r=I()(m.a.mark((function e(t){var n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.note,e.abrupt("return",this.application.changeItem(t.uuid,(function(e){var t=e;t.removeAssociatedItemId(n.uuid),t.disassociateWithItem(n.uuid)})));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"associateComponentWithCurrentNote",value:(n=I()(m.a.mark((function e(t){var n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.note,e.abrupt("return",this.application.changeItem(t.uuid,(function(e){var t=e;t.removeDisassociatedItemId(n.uuid),t.associateWithItem(n.uuid)})));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"registerKeyboardShortcuts",value:function(){var e=this;this.removeAltKeyObserver=this.application.getKeyboardService().addKeyObserver({modifiers:[c.Alt],onKeyDown:function(){e.setEditorState({altKeyDown:!0})},onKeyUp:function(){e.setEditorState({altKeyDown:!1})}}),this.removeTrashKeyObserver=this.application.getKeyboardService().addKeyObserver({key:s.Backspace,notElementIds:[Ae,he],modifiers:[c.Meta],onKeyDown:function(){e.deleteNote(!1)}}),this.removeDeleteKeyObserver=this.application.getKeyboardService().addKeyObserver({key:s.Backspace,modifiers:[c.Meta,c.Shift,c.Alt],onKeyDown:function(t){t.preventDefault(),e.deleteNote(!0)}})}},{key:"onSystemEditorLoad",value:function(){var e=this;if(!this.removeTabObserver){var t=document.getElementById(Ae);this.removeTabObserver=this.application.getKeyboardService().addKeyObserver({element:t,key:s.Tab,onKeyDown:function(n){if(!e.note.locked&&!n.shiftKey){if(n.preventDefault(),!document.execCommand("insertText",!1,"\t")){var r=t.selectionStart,i=t.selectionEnd;t.value=t.value.substring(0,r)+" "+t.value.substring(i),t.selectionStart=t.selectionEnd=r+4}e.editorValues.text=t.value,e.saveNote(!0)}}}),i.a.element(t).one("$destroy",(function(){e.removeTabObserver(),e.removeTabObserver=void 0}))}}},{key:"note",get:function(){return this.editor.note}},{key:"activeEditorComponent",get:function(){return this.getState().activeEditorComponent}},{key:"activeTagsComponent",get:function(){return this.getState().activeTagsComponent}},{key:"componentGroup",get:function(){return this.application.componentGroup}},{key:"noteLocked",get:function(){return!(!this.note||this.note.deleted)&&this.note.locked}}]),t}(K.a),be=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.scope={editor:"=",application:"="},e.template=fe.a,e.replace=!0,e.controller=me,e.controllerAs="self",e.bindToController=!0,e}return P()(t,e),t}(G),Ie=n(70),we=n.n(Ie),Ce=function(e){function t(e,n){var r;return f()(this,t),r=B()(this,Q()(t).call(this,n)),d()(_()(r),"$rootScope",void 0),d()(_()(r),"rooms",[]),d()(_()(r),"themesWithIcons",[]),d()(_()(r),"showSyncResolution",!1),d()(_()(r),"unregisterComponent",void 0),d()(_()(r),"rootScopeListener1",void 0),d()(_()(r),"rootScopeListener2",void 0),d()(_()(r),"arbitraryStatusMessage",void 0),d()(_()(r),"user",void 0),d()(_()(r),"backupStatus",void 0),d()(_()(r),"offline",!0),d()(_()(r),"showAccountMenu",!1),d()(_()(r),"didCheckForOffline",!1),d()(_()(r),"queueExtReload",!1),d()(_()(r),"reloadInProgress",!1),d()(_()(r),"hasError",!1),d()(_()(r),"isRefreshing",!1),d()(_()(r),"lastSyncDate",void 0),d()(_()(r),"newUpdateAvailable",!1),d()(_()(r),"dockShortcuts",[]),d()(_()(r),"roomShowState",{}),r.$rootScope=e,r.addRootScopeListeners(),r.toggleSyncResolutionMenu=r.toggleSyncResolutionMenu.bind(_()(r)),r.closeAccountMenu=r.closeAccountMenu.bind(_()(r)),r}var n,r,i,o;return t.$inject=["$rootScope","$timeout"],P()(t,e),h()(t,[{key:"deinit",value:function(){this.rooms.length=0,this.themesWithIcons.length=0,this.unregisterComponent(),this.unregisterComponent=void 0,this.rootScopeListener1(),this.rootScopeListener2(),this.rootScopeListener1=void 0,this.rootScopeListener2=void 0,this.closeAccountMenu=void 0,this.toggleSyncResolutionMenu=void 0,x()(Q()(t.prototype),"deinit",this).call(this)}},{key:"$onInit",value:function(){var e=this;x()(Q()(t.prototype),"$onInit",this).call(this),this.application.getStatusService().addStatusObserver((function(t){e.$timeout((function(){e.arbitraryStatusMessage=t}))}))}},{key:"getInitialState",value:function(){return{hasPasscode:!1}}},{key:"reloadUpgradeStatus",value:function(){var e=this;this.application.checkForSecurityUpdate().then((function(t){e.setState({dataUpgradeAvailable:t})}))}},{key:"onAppLaunch",value:(o=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.reloadPasscodeStatus(),this.reloadUser(),this.reloadUpgradeStatus(),this.updateOfflineStatus(),this.findErrors(),this.streamItems(),this.registerComponentHandler();case 8:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"reloadUser",value:function(){this.user=this.application.getUser()}},{key:"reloadPasscodeStatus",value:(i=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.application.hasPasscode(),this.setState({hasPasscode:t});case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"addRootScopeListeners",value:function(){var e=this;this.rootScopeListener1=this.$rootScope.$on("reload-ext-data",(function(){e.reloadExtendedData()})),this.rootScopeListener2=this.$rootScope.$on("new-update-available",(function(){e.$timeout((function(){e.onNewUpdateAvailable()}))}))}},{key:"onAppStateEvent",value:function(e,t){var n=this;e===N.b.EditorFocused?t.eventSource===N.c.UserInteraction&&(this.closeAllRooms(),this.closeAccountMenu()):e===N.b.BeganBackupDownload?this.backupStatus=this.application.getStatusService().addStatusFromString("Saving local backup..."):e===N.b.EndedBackupDownload&&(t.success?this.backupStatus=this.application.getStatusService().replaceStatusWithString(this.backupStatus,"Successfully saved backup."):this.backupStatus=this.application.getStatusService().replaceStatusWithString(this.backupStatus,"Unable to save local backup."),this.$timeout((function(){n.backupStatus=n.application.getStatusService().removeStatus(n.backupStatus)}),2e3))}},{key:"onAppKeyChange",value:(r=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppKeyChange",this).call(this),this.reloadPasscodeStatus();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onAppEvent",value:function(e){e===y.ApplicationEvent.KeyStatusChanged?this.reloadUpgradeStatus():e===y.ApplicationEvent.EnteredOutOfSync?this.setState({outOfSync:!0}):e===y.ApplicationEvent.ExitedOutOfSync?this.setState({outOfSync:!1}):e===y.ApplicationEvent.CompletedFullSync?(this.didCheckForOffline||(this.didCheckForOffline=!0,this.offline&&0===this.application.getNoteCount()&&(this.showAccountMenu=!0)),this.syncUpdated(),this.findErrors(),this.updateOfflineStatus()):e===y.ApplicationEvent.FailedSync?(this.findErrors(),this.updateOfflineStatus()):e!==y.ApplicationEvent.SignedIn&&e!==y.ApplicationEvent.SignedOut||this.reloadUser()}},{key:"streamItems",value:function(){var e=this;this.application.setDisplayOptions(y.ContentType.Theme,y.CollectionSort.Title,"asc",(function(e){return e.package_info&&e.package_info.dock_icon})),this.application.streamItems(y.ContentType.Component,I()(m.a.mark((function t(){var n;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.application.getItems(y.ContentType.Component),e.rooms=n.filter((function(e){return e.area===y.ComponentArea.Rooms&&!e.deleted})),e.queueExtReload&&(e.queueExtReload=!1,e.reloadExtendedData());case 3:case"end":return t.stop()}}),t)})))),this.application.streamItems(y.ContentType.Theme,I()(m.a.mark((function t(){var n;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.application.getDisplayableItems(y.ContentType.Theme),e.themesWithIcons=n,e.reloadDockShortcuts();case 3:case"end":return t.stop()}}),t)}))))}},{key:"registerComponentHandler",value:function(){var e=this;this.unregisterComponent=this.application.componentManager.registerHandler({identifier:"room-bar",areas:[y.ComponentArea.Rooms,y.ComponentArea.Modal],activationHandler:function(){},actionHandler:function(t,n,r){n===y.ComponentAction.SetSize&&(Object(y.topLevelCompare)(t.getLastSize(),r)||e.application.changeItem(t.uuid,(function(e){e.setLastSize(r)})))},focusHandler:function(t,n){t.isEditor()&&n&&(e.closeAllRooms(),e.closeAccountMenu())}})}},{key:"reloadExtendedData",value:function(){var e=this;if(!this.reloadInProgress){this.reloadInProgress=!0;var t=this.rooms.find((function(t){return t.package_info.identifier===e.application.getNativeExtService().extManagerId}));if(!t)return this.queueExtReload=!0,void(this.reloadInProgress=!1);this.selectRoom(t),this.$timeout((function(){e.selectRoom(t),e.reloadInProgress=!1,e.$rootScope.$broadcast("ext-reload-complete")}),2e3)}}},{key:"updateOfflineStatus",value:function(){this.offline=this.application.noAccount()}},{key:"openSecurityUpdate",value:function(){this.application.performProtocolUpgrade()}},{key:"findErrors",value:function(){this.hasError=this.application.getSyncStatus().hasError()}},{key:"accountMenuPressed",value:function(){this.showAccountMenu=!this.showAccountMenu,this.closeAllRooms()}},{key:"toggleSyncResolutionMenu",value:function(){this.showSyncResolution=!this.showSyncResolution}},{key:"closeAccountMenu",value:function(){this.showAccountMenu=!1}},{key:"lockApp",value:function(){this.application.lock()}},{key:"refreshData",value:function(){var e=this;this.isRefreshing=!0,this.application.sync({queueStrategy:y.SyncQueueStrategy.ForceSpawnNew,checkIntegrity:!0}).then((function(t){e.$timeout((function(){e.isRefreshing=!1}),200),t&&t.error?e.application.alertService.alert("There was an error syncing. Please try again. If all else fails, try signing out and signing back in."):e.syncUpdated()}))}},{key:"syncUpdated",value:function(){this.lastSyncDate=Object(a.a)(this.application.getLastSyncDate())}},{key:"onNewUpdateAvailable",value:function(){this.newUpdateAvailable=!0}},{key:"clickedNewUpdateAnnouncement",value:function(){this.newUpdateAvailable=!1,this.application.alertService.alert("A new update is ready to install. Please use the top-level 'Updates' menu to manage installation.")}},{key:"reloadDockShortcuts",value:function(){var e=[],t=!0,n=!1,r=void 0;try{for(var i,a=this.themesWithIcons[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value,s=o.package_info.name,c=o.package_info.dock_icon;c&&e.push({name:s,component:o,icon:c})}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}this.dockShortcuts=e.sort((function(e,t){var n=e.icon.type,r=t.icon.type;return n===r?0:"circle"===n&&"svg"===r?-1:"circle"===r&&"svg"===n?1:0}))}},{key:"initSvgForShortcut",value:function(e){var t="dock-svg-"+e.component.uuid,n=document.getElementById(t),r=new DOMParser,i=e.component.package_info.dock_icon.source,a=r.parseFromString(i,"image/svg+xml");n.appendChild(a.documentElement)}},{key:"selectShortcut",value:function(e){this.application.componentManager.toggleComponent(e.component)}},{key:"onRoomDismiss",value:function(e){this.roomShowState[e.uuid]=!1}},{key:"closeAllRooms",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.rooms[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var a=r.value;this.roomShowState[a.uuid]=!1}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"selectRoom",value:(n=I()(m.a.mark((function e(t){var n,r=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){r.$timeout((function(){r.roomShowState[t.uuid]=!r.roomShowState[t.uuid]}))},this.roomShowState[t.uuid]){e.next=8;break}return e.next=4,this.application.privilegesService.actionRequiresPrivilege(y.ProtectedAction.ManageExtensions);case 4:e.sent?this.application.presentPrivilegesModal(y.ProtectedAction.ManageExtensions,n):n(),e.next=9;break;case 8:n();case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"clickOutsideAccountMenu",value:function(){this.application&&this.application.authenticationInProgress()||(this.showAccountMenu=!1)}}]),t}(K.a),Be=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=we.a,e.controller=Ce,e.replace=!0,e.controllerAs="ctrl",e.bindToController=!0,e.scope={application:"="},e}return P()(t,e),t}(G),Ee=n(71),_e=n.n(Ee);function ke(e,t,n,r,i){var a=n,o=!r;return!(!t.isTrashTag&&e.trashed)&&(t.isSmartTag()&&(a=a||t.isArchiveTag||t.isTrashTag),!(e.archived&&!a||e.pinned&&!o)&&function(e,t){if(0===t.length)return!0;var n=e.safeTitle().toLowerCase(),r=e.safeText().toLowerCase(),i=t.toLowerCase(),a=function(e){var t=e.match(/"(.*?)"/);return t?t[1]:null}(i);if(a)return n.includes(a)||r.includes(a);if(function(e){return!!e.match(/\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b/)}(i))return e.uuid===i;var o=i.split(" "),s=o.every((function(e){return n.indexOf(e)>=0})),c=o.every((function(e){return r.indexOf(e)>=0}));return s||c}(e,i))}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.CreatedAt="created_at",e.UserUpdatedAt="userModifiedDate",e.Title="title",e.UpdatedAt="updated_at",e.ClientUpdatedAt="client_updated_at"}(te||(te={}));var xe=function(e){function t(e){var n;return f()(this,t),n=B()(this,Q()(t).call(this,e)),d()(_()(n),"panelPuppet",void 0),d()(_()(n),"reloadNotesPromise",void 0),d()(_()(n),"notesToDisplay",0),d()(_()(n),"pageSize",0),d()(_()(n),"searchSubmitted",!1),d()(_()(n),"newNoteKeyObserver",void 0),d()(_()(n),"nextNoteKeyObserver",void 0),d()(_()(n),"previousNoteKeyObserver",void 0),d()(_()(n),"searchKeyObserver",void 0),d()(_()(n),"noteFlags",{}),d()(_()(n),"unsubEditorChange",void 0),n.resetPagination(),n}var n,r,i,a,o,u,l,A,p,g,v,b,w,C,E,k;return t.$inject=["$timeout"],P()(t,e),h()(t,[{key:"$onInit",value:function(){var e=this;x()(Q()(t.prototype),"$onInit",this).call(this),this.panelPuppet={onReady:function(){return e.reloadPanelWidth()}},this.onWindowResize=this.onWindowResize.bind(this),this.onPanelResize=this.onPanelResize.bind(this),window.addEventListener("resize",this.onWindowResize,!0),this.registerKeyboardShortcuts()}},{key:"onWindowResize",value:function(){this.resetPagination(!0)}},{key:"deinit",value:function(){this.panelPuppet.onReady=void 0,this.panelPuppet=void 0,window.removeEventListener("resize",this.onWindowResize,!0),this.onWindowResize=void 0,this.onPanelResize=void 0,this.newNoteKeyObserver(),this.nextNoteKeyObserver(),this.previousNoteKeyObserver(),this.searchKeyObserver(),this.newNoteKeyObserver=void 0,this.nextNoteKeyObserver=void 0,this.previousNoteKeyObserver=void 0,this.searchKeyObserver=void 0,x()(Q()(t.prototype),"deinit",this).call(this)}},{key:"getState",value:function(){return this.state}},{key:"setNotesState",value:(k=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.setState(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"getInitialState",value:function(){return{notes:[],renderedNotes:[],mutable:{showMenu:!1},noteFilter:{text:""}}}},{key:"onAppLaunch",value:(E=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.streamNotesAndTags(),this.reloadPreferences();case 3:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"onAppStateEvent",value:function(e,t){e===N.b.TagChanged?this.handleTagChange(this.application.getAppState().getSelectedTag()):e===N.b.ActiveEditorChanged?this.handleEditorChange():e===N.b.PreferencesChanged?this.reloadPreferences():e===N.b.EditorFocused&&this.setShowMenuFalse()}},{key:"onAppEvent",value:(C=I()(m.a.mark((function e(t){var n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t===y.ApplicationEvent.SignedIn?(this.appState.closeAllEditors(),this.selectFirstNote()):t===y.ApplicationEvent.CompletedFullSync&&this.getMostValidNotes().then((function(e){0===e.length&&n.createPlaceholderNote()}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return C.apply(this,arguments)})},{key:"getPossiblyStaleNotes",value:function(){return this.getState().notes}},{key:"getMostValidNotes",value:(w=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.reloadNotesPromise;case 2:return e.abrupt("return",this.getPossiblyStaleNotes());case 3:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"createPlaceholderNote",value:(b=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this.application.getAppState().getSelectedTag()).isSmartTag()||t.isAllTag){e.next=3;break}return e.abrupt("return");case 3:return e.abrupt("return",this.createNewNote());case 4:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"streamNotesAndTags",value:function(){var e=this;this.application.streamItems([y.ContentType.Note],function(){var t=I()(m.a.mark((function t(n){var r,i,a,o,s,c,u,l;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=n,i=!0,a=!1,o=void 0,t.prev=4,s=r[Symbol.iterator]();case 6:if(i=(c=s.next()).done){t.next=14;break}if(!(u=c.value).deleted){t.next=10;break}return t.abrupt("continue",11);case 10:e.loadFlagsForNote(u);case 11:i=!0,t.next=6;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(4),a=!0,o=t.t0;case 20:t.prev=20,t.prev=21,i||null==s.return||s.return();case 23:if(t.prev=23,!a){t.next=26;break}throw o;case 26:return t.finish(23);case 27:return t.finish(20);case 28:return t.next=30,e.reloadNotes();case 30:(l=e.activeEditorNote)?(l.deleted||l.trashed)&&e.selectNextOrCreateNew():e.selectFirstNote();case 32:case"end":return t.stop()}}),t,null,[[4,16,20,28],[21,,23,27]])})));return function(e){return t.apply(this,arguments)}}()),this.application.streamItems([y.ContentType.Tag],function(){var t=I()(m.a.mark((function t(n){var r,i;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n,e.reloadNotesDisplayOptions(),t.next=4,e.reloadNotes();case 4:Object(y.findInArray)(i,"uuid",null===(r=e.appState.selectedTag)||void 0===r?void 0:r.uuid)&&e.reloadPanelTitle();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"selectNote",value:(v=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.appState.openEditor(t.uuid);case 1:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"createNewNote",value:(g=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t="Note ".concat(this.getState().notes.length+1),this.isFiltering()&&(t=this.getState().noteFilter.text),this.appState.createEditor(t);case 3:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"handleTagChange",value:(p=I()(m.a.mark((function e(t){var n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.resetScrollPosition(),this.setShowMenuFalse(),e.next=4,this.setNoteFilterText("");case 4:return this.application.getDesktopService().searchText(),this.resetPagination(),n=this.application.isDatabaseLoaded(),this.reloadNotesDisplayOptions(),e.next=10,this.reloadNotes();case 10:this.getState().notes.length>0?this.selectFirstNote():n&&(!t.isSmartTag()||t.isAllTag?this.createPlaceholderNote():this.activeEditorNote&&!this.getState().notes.includes(this.activeEditorNote)&&this.appState.closeActiveEditor());case 11:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"resetScrollPosition",value:function(){var e=document.getElementById("notes-scrollable");e&&(e.scrollTop=0,e.scrollLeft=0)}},{key:"removeNoteFromList",value:(A=I()(m.a.mark((function e(t){var n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getState().notes,Object(y.removeFromArray)(n,t),e.next=4,this.setNotesState({notes:n,renderedNotes:n.slice(0,this.notesToDisplay)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"reloadNotes",value:(l=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.reloadNotesPromise=this.performPeloadNotes(),e.abrupt("return",this.reloadNotesPromise);case 2:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"reloadNotesDisplayOptions",value:function(){var e=this,t=this.appState.selectedTag;this.application.setDisplayOptions(y.ContentType.Note,this.getState().sortBy,this.getState().sortReverse?"asc":"dsc",(function(n){return(t.isSmartTag()?n.satisfiesPredicate(t.predicate):t.hasRelationshipWithItem(n))&&ke(n,e.appState.selectedTag,e.getState().showArchived,e.getState().hidePinned,e.getState().noteFilter.text.toLowerCase())}))}},{key:"performPeloadNotes",value:(u=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.appState.selectedTag){e.next=3;break}return e.abrupt("return");case 3:return t=this.application.getDisplayableItems(y.ContentType.Note),e.next=6,this.setNotesState({notes:t,renderedNotes:t.slice(0,this.notesToDisplay)});case 6:this.reloadPanelTitle();case 7:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"setShowMenuFalse",value:function(){this.setNotesState({mutable:Se({},this.getState().mutable,{showMenu:!1})})}},{key:"handleEditorChange",value:(o=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=this.appState.getActiveEditor().note)&&t.conflictOf&&this.application.changeAndSaveItem(t.uuid,(function(e){e.conflictOf=void 0})),this.isFiltering()&&this.application.getDesktopService().searchText(this.getState().noteFilter.text);case 3:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"reloadPreferences",value:(a=I()(m.a.mark((function e(){var t,n,r,i,a;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=this.getState().sortBy,(r=this.application.getPrefsService().getValue(y.WebPrefKey.SortNotesBy,te.CreatedAt))!==te.UpdatedAt&&r!==te.ClientUpdatedAt||(r=te.UserUpdatedAt),t.sortBy=r,t.sortReverse=this.application.getPrefsService().getValue(y.WebPrefKey.SortNotesReverse,!1),t.showArchived=this.application.getPrefsService().getValue(y.WebPrefKey.NotesShowArchived,!1),t.hidePinned=this.application.getPrefsService().getValue(y.WebPrefKey.NotesHidePinned,!1),t.hideNotePreview=this.application.getPrefsService().getValue(y.WebPrefKey.NotesHideNotePreview,!1),t.hideDate=this.application.getPrefsService().getValue(y.WebPrefKey.NotesHideDate,!1),i=this.getState(),a=t.sortBy!==i.sortBy||t.sortReverse!==i.sortReverse||t.hidePinned!==i.hidePinned||t.showArchived!==i.showArchived,e.next=14,this.setNotesState(Se({},t));case 14:return this.reloadPanelWidth(),a&&this.reloadNotesDisplayOptions(),e.next=18,this.reloadNotes();case 18:n&&n!==r&&this.selectFirstNote();case 19:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"reloadPanelWidth",value:function(){var e=this.application.getPrefsService().getValue(y.WebPrefKey.NotesPanelWidth);e&&this.panelPuppet.ready&&(this.panelPuppet.setWidth(e),this.panelPuppet.isCollapsed()&&this.application.getAppState().panelDidResize("notes",this.panelPuppet.isCollapsed()))}},{key:"onPanelResize",value:function(e,t,n,r){this.application.getPrefsService().setUserPrefValue(y.WebPrefKey.NotesPanelWidth,e,!0),this.application.getAppState().panelDidResize("notes",r)}},{key:"paginate",value:function(){this.notesToDisplay+=this.pageSize,this.reloadNotes(),this.searchSubmitted&&this.application.getDesktopService().searchText(this.getState().noteFilter.text)}},{key:"resetPagination",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.documentElement.clientHeight;this.pageSize=Math.ceil(t/51),0===this.pageSize&&(this.pageSize=20),e&&this.notesToDisplay>this.pageSize||(this.notesToDisplay=this.pageSize)}},{key:"reloadPanelTitle",value:function(){var e;if(this.isFiltering()){var t=this.getState().notes.length;e="".concat(t," search results")}else this.appState.selectedTag&&(e="".concat(this.appState.selectedTag.title));this.setNotesState({panelTitle:e})}},{key:"optionsSubtitle",value:function(){var e="";return this.getState().sortBy===te.CreatedAt?e+=" Date Added":this.getState().sortBy===te.UserUpdatedAt?e+=" Date Modified":this.getState().sortBy===te.Title&&(e+=" Title"),this.getState().showArchived&&(e+=" | + Archived"),this.getState().hidePinned&&(e+=" | Pinned"),this.getState().sortReverse&&(e+=" | Reversed"),e}},{key:"loadFlagsForNote",value:function(e){var t=[];e.pinned&&t.push({text:"Pinned",class:"info"}),e.archived&&t.push({text:"Archived",class:"warning"}),e.protected&&t.push({text:"Protected",class:"success"}),e.locked&&t.push({text:"Locked",class:"neutral"}),e.trashed&&t.push({text:"Deleted",class:"danger"}),e.conflictOf&&t.push({text:"Conflicted Copy",class:"danger"}),e.errorDecrypting&&(e.waitingForKey?t.push({text:"Waiting For Keys",class:"info"}):t.push({text:"Missing Keys",class:"danger"})),e.deleted&&t.push({text:"Deletion Pending Sync",class:"danger"}),this.noteFlags[e.uuid]=t}},{key:"displayableNotes",value:function(){return this.getState().notes}},{key:"getFirstNonProtectedNote",value:function(){for(var e=this.displayableNotes(),t=0,n=e[t];n&&n.protected&&!(++t>=e.length);)n=e[t];return n}},{key:"selectFirstNote",value:function(){var e=this.getFirstNonProtectedNote();e&&this.selectNote(e)}},{key:"selectNextNote",value:function(){var e=this,t=this.displayableNotes(),n=t.findIndex((function(t){return t.uuid===e.activeEditorNote.uuid}));n+1<t.length&&this.selectNote(t[n+1])}},{key:"selectNextOrCreateNew",value:function(){var e=this.getFirstNonProtectedNote();e?this.selectNote(e):this.appState.selectedTag&&this.appState.selectedTag.isSmartTag()?this.appState.closeActiveEditor():this.createPlaceholderNote()}},{key:"selectPreviousNote",value:function(){var e=this.displayableNotes(),t=e.indexOf(this.activeEditorNote);return t-1>=0&&(this.selectNote(e[t-1]),!0)}},{key:"isFiltering",value:function(){return this.getState().noteFilter.text&&this.getState().noteFilter.text.length>0}},{key:"setNoteFilterText",value:(i=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setNotesState({noteFilter:Se({},this.getState().noteFilter,{text:t})});case 2:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"clearFilterText",value:(r=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setNoteFilterText("");case 2:this.onFilterEnter(),this.filterTextChanged(),this.resetPagination();case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"filterTextChanged",value:(n=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.searchSubmitted&&(this.searchSubmitted=!1),this.reloadNotesDisplayOptions(),e.next=4,this.reloadNotes();case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onFilterEnter",value:function(){this.searchSubmitted=!0,this.application.getDesktopService().searchText(this.getState().noteFilter.text)}},{key:"selectedMenuItem",value:function(){this.setShowMenuFalse()}},{key:"toggleWebPrefKey",value:function(e){this.application.getPrefsService().setUserPrefValue(e,!this.state[e],!0)}},{key:"selectedSortByCreated",value:function(){this.setSortBy(te.CreatedAt)}},{key:"selectedSortByUpdated",value:function(){this.setSortBy(te.ClientUpdatedAt)}},{key:"selectedSortByTitle",value:function(){this.setSortBy(te.Title)}},{key:"toggleReverseSort",value:function(){this.selectedMenuItem(),this.application.getPrefsService().setUserPrefValue(y.WebPrefKey.SortNotesReverse,!this.getState().sortReverse,!0)}},{key:"setSortBy",value:function(e){this.application.getPrefsService().setUserPrefValue(y.WebPrefKey.SortNotesBy,e,!0)}},{key:"getSearchBar",value:function(){return document.getElementById("search-bar")}},{key:"registerKeyboardShortcuts",value:function(){var e=this;this.newNoteKeyObserver=this.application.getKeyboardService().addKeyObserver({key:"n",modifiers:[c.Meta,c.Ctrl],onKeyDown:function(t){t.preventDefault(),e.createNewNote()}}),this.nextNoteKeyObserver=this.application.getKeyboardService().addKeyObserver({key:s.Down,elements:[document.body,this.getSearchBar()],onKeyDown:function(t){var n=e.getSearchBar();n===document.activeElement&&n.blur(),e.selectNextNote()}}),this.previousNoteKeyObserver=this.application.getKeyboardService().addKeyObserver({key:s.Up,element:document.body,onKeyDown:function(t){e.selectPreviousNote()}}),this.searchKeyObserver=this.application.getKeyboardService().addKeyObserver({key:"f",modifiers:[c.Meta,c.Shift],onKeyDown:function(t){var n=e.getSearchBar();n&&n.focus()}})}},{key:"activeEditorNote",get:function(){var e;return null===(e=this.appState.getActiveEditor())||void 0===e?void 0:e.note}},{key:"editorNotes",get:function(){return this.appState.getEditors().map((function(e){return e.note}))}}]),t}(K.a),De=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).template=_e.a,e.replace=!0,e.controller=xe,e.controllerAs="self",e.bindToController=!0,e.scope={application:"="},e}return P()(t,e),t}(G),Pe=n(72),Me=n.n(Pe),Fe=function(e){function t(e){var n;return f()(this,t),n=B()(this,Q()(t).call(this,e)),d()(_()(n),"application",void 0),d()(_()(n),"panelPuppet",void 0),d()(_()(n),"unregisterComponent",void 0),d()(_()(n),"component",void 0),d()(_()(n),"editingOriginalName",void 0),d()(_()(n),"formData",{}),d()(_()(n),"titles",{}),d()(_()(n),"removeTagsObserver",void 0),d()(_()(n),"onPanelResize",(function(e,t,r,i){n.application.getPrefsService().setUserPrefValue(y.WebPrefKey.TagsPanelWidth,e,!0),n.application.getAppState().panelDidResize("tags",i)})),n.panelPuppet={onReady:function(){return n.loadPreferences()}},n}var n,r,i,a,o,s,c,u,l,A;return t.$inject=["$timeout"],P()(t,e),h()(t,[{key:"deinit",value:function(){this.removeTagsObserver(),this.removeTagsObserver=void 0,this.unregisterComponent(),this.unregisterComponent=void 0,x()(Q()(t.prototype),"deinit",this).call(this)}},{key:"getInitialState",value:function(){return{tags:[],smartTags:[],noteCounts:{}}}},{key:"getState",value:function(){return this.state}},{key:"setTagState",value:(A=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.setState(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"onAppStart",value:(l=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppStart",this).call(this),this.registerComponentHandler();case 2:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"onAppLaunch",value:(u=I()(m.a.mark((function e(){var n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.loadPreferences(),this.beginStreamingItems(),n=this.application.getSmartTags(),this.setTagState({smartTags:n}),this.selectTag(n[0]);case 6:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"onAppIncrementalSync",value:function(){x()(Q()(t.prototype),"onAppIncrementalSync",this).call(this),this.reloadNoteCounts()}},{key:"getMappedTags",value:function(){return this.application.getItems(y.ContentType.Tag).sort((function(e,t){return e.title<t.title?-1:1}))}},{key:"beginStreamingItems",value:function(){var e=this;this.removeTagsObserver=this.application.streamItems(y.ContentType.Tag,function(){var t=I()(m.a.mark((function t(n){var r;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setTagState({tags:e.getMappedTags(),smartTags:e.application.getSmartTags()});case 2:e.reloadTitles(n),e.reloadNoteCounts(),e.getState().selectedTag&&(r=n.find((function(t){return t.uuid===e.getState().selectedTag.uuid})))&&(r.deleted?e.selectTag(e.getState().smartTags[0]):e.setTagState({selectedTag:r}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"reloadTitles",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;this.titles[o.uuid]=o.title}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}}},{key:"onAppStateEvent",value:function(e,t){e===N.b.PreferencesChanged?this.loadPreferences():e===N.b.TagChanged&&this.setTagState({selectedTag:this.application.getAppState().getSelectedTag()})}},{key:"onAppEvent",value:(c=I()(m.a.mark((function e(n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppEvent",this).call(this,n),n===y.ApplicationEvent.LocalDataIncrementalLoad&&this.reloadNoteCounts();case 2:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"reloadNoteCounts",value:function(){var e=[];this.getState().tags&&(e=e.concat(this.getState().tags)),this.getState().smartTags&&(e=e.concat(this.getState().smartTags));var t={},n=!0,r=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(s.isSmartTag()){if(s.isAllTag){var c=this.application.notesMatchingSmartTag(s).filter((function(e){return!e.archived&&!e.trashed}));t[s.uuid]=c.length}}else{var u=this.application.referencesForItem(s,y.ContentType.Note).filter((function(e){return!e.archived&&!e.trashed}));t[s.uuid]=u.length}}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}this.setTagState({noteCounts:t})}},{key:"loadPreferences",value:function(){if(this.panelPuppet.ready){var e=this.application.getPrefsService().getValue(y.WebPrefKey.TagsPanelWidth);e&&(this.panelPuppet.setWidth(e),this.panelPuppet.isCollapsed()&&this.application.getAppState().panelDidResize("tags",this.panelPuppet.isCollapsed()))}}},{key:"registerComponentHandler",value:function(){var e=this;this.unregisterComponent=this.application.componentManager.registerHandler({identifier:"tags",areas:[y.ComponentArea.TagsList],activationHandler:function(t){e.component=t},contextRequestHandler:function(){},actionHandler:function(t,n,r){if(n===y.ComponentAction.SelectItem)if(r.item.content_type===y.ContentType.Tag){var i=e.application.findItem(r.item.uuid);i&&e.selectTag(i)}else r.item.content_type===y.ContentType.SmartTag&&e.application.createTemplateItem(y.ContentType.SmartTag,r.item.content).then((function(t){e.selectTag(t)}));else n===y.ComponentAction.ClearSelection&&e.selectTag(e.getState().smartTags[0])}})}},{key:"selectTag",value:(s=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.conflictOf&&this.application.changeAndSaveItem(t.uuid,(function(e){e.conflictOf=void 0})),this.application.getAppState().setSelectedTag(t);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"clickedAddNewTag",value:(o=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.getState().editingTag){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.application.createTemplateItem(y.ContentType.Tag);case 4:t=e.sent,this.setTagState({tags:[t].concat(this.getState().tags),previousTag:this.getState().selectedTag,selectedTag:t,editingTag:t,templateTag:t});case 6:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"onTagTitleChange",value:function(e){this.setTagState({editingTag:e})}},{key:"saveTag",value:(a=I()(m.a.mark((function e(t,n){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.target.blur(),!this.getState().templateTag){e.next=5;break}return e.abrupt("return",this.saveNewTag());case 5:return e.abrupt("return",this.saveTagRename(n));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"saveTagRename",value:(i=I()(m.a.mark((function e(t){var n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(n=this.titles[t.uuid]||"").length){e.next=5;break}return this.titles[t.uuid]=this.editingOriginalName,this.editingOriginalName=void 0,e.abrupt("return");case 5:if(!(r=this.application.findTagByTitle(n))||r.uuid===t.uuid){e.next=9;break}return this.application.alertService.alert("A tag with this name already exists."),e.abrupt("return");case 9:return e.next=12,this.application.changeAndSaveItem(t.uuid,(function(e){e.title=n}));case 12:return e.next=14,this.setTagState({editingTag:void 0});case 14:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"saveNewTag",value:(r=I()(m.a.mark((function e(){var t,n,r,i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getState().templateTag,0!==(n=this.titles[t.uuid]||"").length){e.next=6;break}return e.next=5,this.setTagState({templateTag:void 0});case 5:return e.abrupt("return");case 6:if(!this.application.findTagByTitle(n)){e.next=10;break}return this.application.alertService.alert("A tag with this name already exists."),e.abrupt("return");case 10:return e.next=13,this.application.insertItem(t);case 13:return r=e.sent,e.next=16,this.application.changeItem(r.uuid,(function(e){e.title=n}));case 16:return i=e.sent,e.next=19,this.setTagState({templateTag:void 0,editingTag:void 0});case 19:return this.selectTag(i),e.next=22,this.application.saveItem(i.uuid);case 22:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"selectedRenameTag",value:(n=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.editingOriginalName=t.title,e.next=3,this.setTagState({editingTag:t});case 3:document.getElementById("tag-"+t.uuid).focus();case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"selectedDeleteTag",value:function(e){this.removeTag(e)}},{key:"removeTag",value:function(e){var t=this;this.application.alertService.confirm("Are you sure you want to delete this tag? Note: deleting a tag will not delete its notes.",void 0,void 0,void 0,(function(){t.application.deleteItem(e),t.selectTag(t.getState().smartTags[0])}),void 0,!0)}}]),t}(K.a),Oe=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.scope={application:"="},e.template=Me.a,e.replace=!0,e.controller=Fe,e.controllerAs="self",e.bindToController=!0,e}return P()(t,e),t}(G),Re=n(73),Te=n.n(Re),He=function(e){function t(e,n){var r;return f()(this,t),r=B()(this,Q()(t).call(this,n)),d()(_()(r),"$element",void 0),d()(_()(r),"processingTypes",[]),d()(_()(r),"application",void 0),d()(_()(r),"challenge",void 0),d()(_()(r),"orchestrator",void 0),r.$element=e,r}var n;return t.$inject=["$element","$timeout"],P()(t,e),h()(t,[{key:"getState",value:function(){return this.state}},{key:"$onInit",value:function(){var e=this;x()(Q()(t.prototype),"$onInit",this).call(this);var n={},r=this.challenge.types,i=!0,a=!1,o=void 0;try{for(var s,c=r[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){n[s.value]={value:"",invalid:!1}}}catch(e){a=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}this.setState({types:r,values:n,processing:!1}),this.orchestrator.setCallbacks((function(t){e.getState().values[t.type].invalid=!1,Object(y.removeFromArray)(e.processingTypes,t.type),e.reloadProcessingStatus()}),(function(t){e.getState().values[t.type].invalid=!0,Object(y.removeFromArray)(e.processingTypes,t.type),e.reloadProcessingStatus()}),(function(){e.dismiss()}))}},{key:"deinit",value:function(){this.application=void 0,this.orchestrator=void 0,this.challenge=void 0,x()(Q()(t.prototype),"deinit",this).call(this)}},{key:"reloadProcessingStatus",value:function(){this.setState({processing:this.processingTypes.length>0})}},{key:"promptForChallenge",value:function(e){return e===y.ChallengeType.LocalPasscode?"Enter your application passcode":"Enter your account password"}},{key:"cancel",value:function(){this.dismiss()}},{key:"onTextValueChange",value:function(e){var t=this.getState().values;t[e].invalid=!1,this.setState({values:t})}},{key:"validate",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.getState().types[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var a=r.value,o=this.getState().values[a];o&&0!==o.value.length||(this.getState().values[a].invalid=!0)}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}return 0===[].length}},{key:"submit",value:(n=I()(m.a.mark((function e(){var t,n,r,i,a,o,s;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.validate()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.setState({processing:!0});case 4:t=[],n=0,r=Object.keys(this.getState().values);case 6:if(!(n<r.length)){e.next=17;break}if(i=r[n],a=Number(i),!this.getState().values[a].invalid){e.next=11;break}return e.abrupt("continue",14);case 11:o=this.getState().values[a].value,s=new y.ChallengeValue(a,o),t.push(s);case 14:n++,e.next=6;break;case 17:this.processingTypes=t.map((function(e){return e.type})),this.orchestrator.submitValues(t);case 19:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this.$element;e.scope().$destroy(),e.remove()}}]),t}(K.a),je=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=Te.a,e.controller=He,e.controllerAs="ctrl",e.bindToController=!0,e.scope={challenge:"=",orchestrator:"=",application:"="},e}return P()(t,e),t}(G);function Ne(e){return{restrict:"A",scope:{shouldFocus:"="},link:function(t,n){e((function(){t.shouldFocus&&n[0].focus()}))}}}function Ue(e){return{restrict:"A",replace:!1,link:function(e,t,n){}}}function Le(e){return{restrict:"A",scope:{show:"=",delay:"@"},link:function(t,n){var r=this,a=t,o=function(e){e?n.css({display:""}):n.css({display:"none"})},s=function(){var e=parseInt(a.delay);return i.a.isNumber(e)?e:200};o(!1),t.$watch("show",(function(t){t?(a.hidePromise&&(e.cancel(a.hidePromise),a.hidePromise=null),o(!0)):a.hidePromise=e(o.bind(r,!1),s())}))}}}function Ke(e){return{restrict:"A",link:function(t,n,r){n.ready((function(){t.$apply((function(){e(r.elemReady)(t)}))}))}}}Ne.$inject=["$timeout"],Ue.$inject=["$document"],Le.$inject=["$timeout"],Ke.$inject=["$parse"];var Ge=n(61);var $e=n(74),Ye=n.n($e);function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze,qe,We,Xe=function(e){function t(e,n){var r;return f()(this,t),r=B()(this,Q()(t).call(this,e)),d()(_()(r),"appVersion",void 0),d()(_()(r),"syncStatus",void 0),d()(_()(r),"closeFunction",void 0),r.appVersion=n,r}var n,r,i,o,s,c,u,l,A,p,g,v,b,w,C,E,k,S;return t.$inject=["$timeout","appVersion"],P()(t,e),h()(t,[{key:"getInitialState",value:function(){return{appVersion:"v"+(window.electronAppVersion||this.appVersion),passcodeAutoLockOptions:this.application.getLockService().getAutoLockIntervalOptions(),user:this.application.getUser(),formData:{mergeLocal:!0,ephemeral:!1},mutable:{}}}},{key:"getState",value:function(){return this.state}},{key:"onAppKeyChange",value:(S=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppKeyChange",this).call(this),this.setState(this.refreshedCredentialState());case 2:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"onAppLaunch",value:(k=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.setState(this.refreshedCredentialState()),this.loadHost(),this.reloadAutoLockInterval(),this.loadBackupsAvailability();case 5:case"end":return e.stop()}}),e,this)}))),function(){return k.apply(this,arguments)})},{key:"refreshedCredentialState",value:function(){return{user:this.application.getUser(),canAddPasscode:!this.application.isEphemeralSession(),hasPasscode:this.application.hasPasscode(),showPasscodeForm:!1}}},{key:"$onInit",value:function(){x()(Q()(t.prototype),"$onInit",this).call(this),this.initProps({closeFunction:this.closeFunction}),this.syncStatus=this.application.getSyncStatus()}},{key:"close",value:function(){var e=this;this.$timeout((function(){e.props.closeFunction()}))}},{key:"loadHost",value:(E=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.getHost();case 2:t=e.sent,this.setState({server:t,formData:Ve({},this.getState().formData,{url:t})});case 4:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"onHostInputChange",value:function(){var e=this.getState().formData.url;this.application.setHost(e)}},{key:"loadBackupsAvailability",value:(C=I()(m.a.mark((function e(){var t,n,r,i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=function(){return t?"End-to-end encryption is enabled. Your data is encrypted on your device first, then synced to your private cloud.":n?"Encryption is enabled. Your data is encrypted using your passcode before it is saved to your device storage.":"Encryption is not enabled. Sign in, register, or add a passcode lock to enable encryption."},t=!Object(a.e)(this.application.getUser()),n=this.application.hasPasscode(),r=t||n,this.setState({encryptionStatusString:i(),encryptionEnabled:r,mutable:Ve({},this.getState().mutable,{backupEncrypted:r})});case 5:case"end":return e.stop()}}),e,this)}))),function(){return C.apply(this,arguments)})},{key:"submitMfaForm",value:function(){this.login()}},{key:"blurAuthFields",value:function(){for(var e=0,t=["email","password","password_conf"];e<t.length;e++){var n=t[e],r=document.getElementsByName(n)[0];r&&r.blur()}}},{key:"submitAuthForm",value:function(){this.getState().formData.email&&this.getState().formData.user_password&&(this.blurAuthFields(),this.getState().formData.showLogin?this.login():this.register())}},{key:"setFormDataState",value:(w=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.setState({formData:Ve({},this.getState().formData,{},t)}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"login",value:(b=I()(m.a.mark((function e(){var t,n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setFormDataState({status:"Generating Login Keys...",authenticating:!0});case 2:return t=this.getState().formData,e.next=5,this.application.signIn(t.email,t.user_password,t.strictSignin,t.ephemeral,t.mfa&&t.mfa.payload.mfa_key,t.userMfaCode,t.mergeLocal);case 5:if(!(n=e.sent)||n.error){e.next=12;break}return e.next=10,this.setFormDataState({authenticating:!1,user_password:void 0});case 10:return this.close(),e.abrupt("return");case 12:if("mfa-required"!==(r=n?n.error:{message:"An unknown error occured."}).tag&&"mfa-invalid"!==r.tag){e.next=18;break}return e.next=16,this.setFormDataState({showLogin:!1,mfa:r,status:void 0});case 16:e.next=21;break;case 18:return e.next=20,this.setFormDataState({showLogin:!0,mfa:void 0,status:void 0,user_password:void 0});case 20:r.message&&this.application.alertService.alert(r.message);case 21:return e.next=23,this.setFormDataState({authenticating:!1});case 23:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"register",value:(v=I()(m.a.mark((function e(){var t,n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.getState().formData.password_conf===this.getState().formData.user_password){e.next=4;break}return this.application.alertService.alert("The two passwords you entered do not match. Please try again."),e.abrupt("return");case 4:return e.next=6,this.setFormDataState({confirmPassword:!1,status:"Generating Account Keys...",authenticating:!0});case 6:return e.next=8,this.application.register(this.getState().formData.email,this.getState().formData.user_password,this.getState().formData.ephemeral,this.getState().formData.mergeLocal);case 8:if((t=e.sent)&&!t.error){e.next=18;break}return e.next=12,this.setFormDataState({status:void 0});case 12:return n=t?t.error:{message:"An unknown error occured."},e.next=15,this.setFormDataState({authenticating:!1});case 15:this.application.alertService.alert(n.message),e.next=21;break;case 18:return e.next=20,this.setFormDataState({authenticating:!1});case 20:this.close();case 21:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"mergeLocalChanged",value:function(){var e=this;this.getState().formData.mergeLocal||this.application.alertService.confirm("Unchecking this option means any of the notes you have written while you were signed out will be deleted. Are you sure you want to discard these notes?",void 0,void 0,void 0,void 0,(function(){e.setFormDataState({mergeLocal:!0})}),!0)}},{key:"openPasswordWizard",value:function(){this.close(),this.application.presentPasswordWizard(F.ChangePassword)}},{key:"openPrivilegesModal",value:(g=I()(m.a.mark((function e(){var t,n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(){n.application.presentPrivilegesManagementModal(),n.close()},e.next=3,this.application.privilegesService.actionRequiresPrivilege(y.ProtectedAction.ManagePrivileges);case 3:e.sent?this.application.presentPrivilegesModal(y.ProtectedAction.ManagePrivileges,(function(){t()})):t();case 5:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"destroyLocalData",value:function(){var e=this;this.application.alertService.confirm("Are you sure you want to end your session? This will delete all local items and extensions.",void 0,void 0,void 0,I()(m.a.mark((function t(){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.application.signOut();case 2:case"end":return t.stop()}}),t)}))),void 0,!0)}},{key:"submitImportPassword",value:(p=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.performImport(this.getState().importData.data,this.getState().importData.password);case 2:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"readFile",value:(A=I()(m.a.mark((function e(t){var n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var r=new FileReader;r.onload=function(t){try{var r=JSON.parse(t.target.result);e(r)}catch(t){n.application.alertService.alert("Unable to open file. Ensure it is a proper JSON file and try again.")}},r.readAsText(t)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return A.apply(this,arguments)})},{key:"importFileSelected",value:(l=I()(m.a.mark((function e(t){var n,r=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(){var e=I()(m.a.mark((function e(){var n,i,a;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t[0],e.next=3,r.readFile(n);case 3:if(i=e.sent){e.next=6;break}return e.abrupt("return");case 6:if(!i.auth_params){e.next=13;break}return e.next=9,r.setState({importData:Ve({},r.getState().importData,{requestPassword:!0,data:i})});case 9:(a=document.getElementById("import-password-request"))&&a.scrollIntoView(!1),e.next=15;break;case 13:return e.next=15,r.performImport(i,void 0);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=3,this.application.privilegesService.actionRequiresPrivilege(y.ProtectedAction.ManageBackups);case 3:e.sent?this.application.presentPrivilegesModal(y.ProtectedAction.ManageBackups,n):n();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"performImport",value:(u=I()(m.a.mark((function e(t,n){var r,i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setState({importData:Ve({},this.getState().importData,{loading:!0})});case 2:return e.next=4,this.importJSONData(t,n);case 4:r=e.sent,this.setState({importData:null}),r>0?(i=ee(r),this.application.alertService.alert(i)):this.application.alertService.alert("Your data has been successfully imported.");case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"importJSONData",value:(c=I()(m.a.mark((function e(t,n){var r,i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.importData(t,n);case 2:return r=e.sent,i=r.errorCount,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"downloadDataArchive",value:(s=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.application.getArchiveService().downloadBackup(this.getState().mutable.backupEncrypted);case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"notesAndTagsCount",value:function(){return this.application.getItems([y.ContentType.Note,y.ContentType.Tag]).length}},{key:"encryptionStatusForNotes",value:function(){var e=this.notesAndTagsCount();return e+"/"+e+" notes and tags encrypted"}},{key:"reloadAutoLockInterval",value:(o=I()(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.getLockService().getAutoLockInterval();case 2:t=e.sent,this.setState({selectedAutoLockInterval:t});case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"selectAutoLockInterval",value:(i=I()(m.a.mark((function e(t){var n,r=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(){var e=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.application.getLockService().setAutoLockInterval(t);case 2:r.reloadAutoLockInterval();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=3,this.application.privilegesService.actionRequiresPrivilege(y.ProtectedAction.ManagePasscode);case 3:e.sent?this.application.presentPrivilegesModal(y.ProtectedAction.ManagePasscode,(function(){n()})):n();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"hidePasswordForm",value:function(){this.setFormDataState({showLogin:!1,showRegister:!1,user_password:void 0,password_conf:void 0})}},{key:"hasPasscode",value:function(){return this.application.hasPasscode()}},{key:"addPasscodeClicked",value:function(){this.setFormDataState({showPasscodeForm:!0})}},{key:"submitPasscodeForm",value:function(){var e=this,t=this.getState().formData.passcode;t===this.getState().formData.confirmPasscode?(this.getState().formData.changingPasscode?this.application.changePasscode(t):this.application.setPasscode(t)).then((function(){e.setFormDataState({passcode:void 0,confirmPasscode:void 0,showPasscodeForm:!1})})):this.application.alertService.alert("The two passcodes you entered do not match. Please try again.")}},{key:"changePasscodePressed",value:(r=I()(m.a.mark((function e(){var t,n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(){n.getState().formData.changingPasscode=!0,n.addPasscodeClicked()},e.next=3,this.application.privilegesService.actionRequiresPrivilege(y.ProtectedAction.ManagePasscode);case 3:e.sent?this.application.presentPrivilegesModal(y.ProtectedAction.ManagePasscode,t):t();case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"removePasscodePressed",value:(n=I()(m.a.mark((function e(){var t,n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(){var e=I()(m.a.mark((function e(){var t,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.e,e.next=3,n.application.getUser();case 3:e.t1=e.sent,t=!(0,e.t0)(e.t1),r="Are you sure you want to remove your application passcode?",t||(r+=" This will remove encryption from your local data."),n.application.alertService.confirm(r,void 0,void 0,void 0,(function(){n.application.removePasscode()}),void 0,!0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=3,this.application.privilegesService.actionRequiresPrivilege(y.ProtectedAction.ManagePasscode);case 3:e.sent?this.application.presentPrivilegesModal(y.ProtectedAction.ManagePasscode,t):t();case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"isDesktopApplication",value:function(){return Object(a.d)()}}]),t}(K.a),Ze=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=Ye.a,e.controller=Xe,e.controllerAs="self",e.bindToController=!0,e.scope={closeFunction:"&",application:"="},e}return P()(t,e),t}(G),et=n(75),tt=n.n(et),nt=function(e){function t(e){var n;return f()(this,t),n=B()(this,Q()(t).call(this,e)),d()(_()(n),"application",void 0),d()(_()(n),"item",void 0),d()(_()(n),"loadingState",{}),n.state={extensions:[]},n}var n,r;return t.$inject=["$timeout"],P()(t,e),h()(t,[{key:"$onInit",value:function(){x()(Q()(t.prototype),"$onInit",this).call(this),this.initProps({item:this.item}),this.loadExtensions()}},{key:"loadExtensions",value:(r=I()(m.a.mark((function e(){var t,n,r,i,a,o,s;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.application.actionsManager.getExtensions().sort((function(e,t){return e.name.toLowerCase()<t.name.toLowerCase()?-1:1})),n=!0,r=!1,i=void 0,e.prev=4,a=t[Symbol.iterator]();case 6:if(n=(o=a.next()).done){e.next=15;break}return s=o.value,this.loadingState[s.uuid]=!0,e.next=11,this.application.actionsManager.loadExtensionInContextOfItem(s,this.props.item);case 11:this.loadingState[s.uuid]=!1;case 12:n=!0,e.next=6;break;case 15:e.next=21;break;case 17:e.prev=17,e.t0=e.catch(4),r=!0,i=e.t0;case 21:e.prev=21,e.prev=22,n||null==a.return||a.return();case 24:if(e.prev=24,!r){e.next=27;break}throw i;case 27:return e.finish(24);case 28:return e.finish(21);case 29:this.setState({extensions:t});case 30:case"end":return e.stop()}}),e,this,[[4,17,21,29],[22,,24,28]])}))),function(){return r.apply(this,arguments)})},{key:"executeAction",value:(n=I()(m.a.mark((function e(t,n){var r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nested"!==t.verb){e.next=3;break}return t.subrows?t.subrows=void 0:t.subrows=this.subRowsForAction(t,n),e.abrupt("return");case 3:return t.running=!0,e.next=6,this.application.actionsManager.runAction(t,this.props.item,I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}}),e)}))));case 6:if(r=e.sent,!t.error){e.next=9;break}return e.abrupt("return");case 9:return t.running=!1,this.handleActionResponse(t,r),e.next=13,this.application.actionsManager.loadExtensionInContextOfItem(n,this.props.item);case 13:this.setState({extensions:this.state.extensions});case 14:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"handleActionResponse",value:function(e,t){switch(e.verb){case"render":var n=t.item;this.application.presentRevisionPreviewModal(n.uuid,n.content)}}},{key:"subRowsForAction",value:function(e,t){var n=this;if(e.subactions)return e.subactions.map((function(e){return{onClick:function(){n.executeAction(e,t)},label:e.label,subtitle:e.desc,spinnerClass:e.running?"info":void 0}}))}}]),t}(K.a),rt=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=tt.a,e.replace=!0,e.controller=nt,e.controllerAs="self",e.bindToController=!0,e.scope={item:"=",application:"="},e}return P()(t,e),t}(G),it=n(76),at=n.n(it),ot=function(){function e(t){f()(this,e),d()(this,"$element",void 0),d()(this,"componentUuid",void 0),d()(this,"onDismiss",void 0),d()(this,"application",void 0),d()(this,"liveComponent",void 0),d()(this,"component",void 0),this.$element=t}return e.$inject=["$element"],h()(e,[{key:"$onInit",value:function(){var e=this;this.liveComponent=new y.LiveItem(this.componentUuid,this.application,(function(t){e.component=t})),this.application.componentGroup.activateComponent(this.component)}},{key:"$onDestroy",value:function(){this.application.componentGroup.deactivateComponent(this.component),this.liveComponent.deinit()}},{key:"dismiss",value:function(){this.onDismiss&&this.onDismiss();var e=this.$element;e.scope().$destroy(),e.remove()}}]),e}(),st=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=at.a,e.controller=ot,e.controllerAs="ctrl",e.bindToController=!0,e.scope={componentUuid:"=",onDismiss:"&",application:"="},e}return P()(t,e),t}(G),ct=n(77),ut=n.n(ct),lt=function(){function e(t,n,r){var i=this;f()(this,e),d()(this,"onLoad",void 0),d()(this,"componentUuid",void 0),d()(this,"application",void 0),d()(this,"liveComponent",void 0),d()(this,"$rootScope",void 0),d()(this,"$timeout",void 0),d()(this,"componentValid",!0),d()(this,"cleanUpOn",void 0),d()(this,"unregisterComponentHandler",void 0),d()(this,"unregisterDesktopObserver",void 0),d()(this,"issueLoading",!1),d()(this,"reloading",!1),d()(this,"expired",!1),d()(this,"loading",!1),d()(this,"didAttemptReload",!1),d()(this,"error",void 0),d()(this,"loadTimeout",void 0),this.$rootScope=n,this.$timeout=r,this.cleanUpOn=t.$on("ext-reload-complete",(function(){i.reloadStatus(!1)})),this.onVisibilityChange=this.onVisibilityChange.bind(this)}var t,n;return e.$inject=["$scope","$rootScope","$timeout"],h()(e,[{key:"$onDestroy",value:function(){this.cleanUpOn(),this.cleanUpOn=void 0,this.unregisterComponentHandler(),this.unregisterComponentHandler=void 0,this.unregisterDesktopObserver(),this.unregisterDesktopObserver=void 0,this.liveComponent.deinit(),this.liveComponent=void 0,this.application=void 0,this.onVisibilityChange=void 0,this.onLoad=void 0,document.removeEventListener("visibilitychange",this.onVisibilityChange)}},{key:"$onInit",value:function(){this.liveComponent=new y.LiveItem(this.componentUuid,this.application),this.registerComponentHandlers(),this.registerPackageUpdateObserver()}},{key:"onIframeInit",value:function(){var e=this;this.$timeout((function(){e.loadComponent()}))}},{key:"loadComponent",value:function(){var e=this;if(!this.component)throw"Component view is missing component";if(!this.component.active)throw"Component view component must be active";var t=this.application.componentManager.iframeForComponent(this.componentUuid);t&&(this.loading=!0,this.loadTimeout&&this.$timeout.cancel(this.loadTimeout),this.loadTimeout=this.$timeout((function(){e.handleIframeLoadTimeout()}),4e3),t.onload=function(){e.reloadStatus(),e.handleIframeLoad(t)})}},{key:"registerPackageUpdateObserver",value:function(){var e=this;this.unregisterDesktopObserver=this.application.getDesktopService().registerUpdateObserver((function(t){t.uuid===e.component.uuid&&t.active&&e.reloadIframe()}))}},{key:"registerComponentHandlers",value:function(){var e=this;this.unregisterComponentHandler=this.application.componentManager.registerHandler({identifier:"component-view-"+Math.random(),areas:[this.component.area],actionHandler:function(t,n,r){n===y.ComponentAction.SetSize&&e.application.componentManager.handleSetSizeEvent(t,r)}})}},{key:"reloadIframe",value:function(){var e=this;this.$timeout((function(){e.reloading=!0,e.$timeout((function(){e.reloading=!1}))}))}},{key:"onVisibilityChange",value:function(){"hidden"!==document.visibilityState&&this.issueLoading&&this.reloadIframe()}},{key:"reloadStatus",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.component,n=t.offlineOnly&&!Object(a.d)(),r=Object(a.d)()?!t.local_url&&!t.hasValidHostedUrl():!t.hasValidHostedUrl();this.expired=t.valid_until&&t.valid_until<=new Date;var i=this.application.componentManager.getReadonlyStateForComponent(t);i.lockReadonly||this.application.componentManager.setReadonlyStateForComponent(t,this.expired),this.componentValid=!n&&!r,this.componentValid||(this.loading=!1),this.error=n?"offline-restricted":r?"url-missing":void 0,this.expired&&e&&this.$rootScope.$broadcast("reload-ext-dat")}},{key:"handleIframeLoadTimeout",value:(n=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.loading&&(this.loading=!1,this.issueLoading=!0,this.didAttemptReload?document.addEventListener("visibilitychange",this.onVisibilityChange):(this.didAttemptReload=!0,this.reloadIframe()));case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleIframeLoad",value:(t=I()(m.a.mark((function e(t){var n,r=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,Object(a.d)())try{t.contentWindow.origin&&"null"!==t.contentWindow.origin||(n=!0)}catch(e){}return this.$timeout.cancel(this.loadTimeout),e.next=5,this.application.componentManager.registerComponentWindow(this.component,t.contentWindow);case 5:this.$timeout((function(){r.loading=!1,r.issueLoading=!!n,r.onLoad&&r.onLoad(r.component)}),7);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getUrl",value:function(){return this.application.componentManager.urlForComponent(this.component)}},{key:"component",get:function(){var e;return null===(e=this.liveComponent)||void 0===e?void 0:e.item}}]),e}(),ft=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=ut.a,e.scope={componentUuid:"=",onLoad:"=?",application:"="},e.controller=lt,e.controllerAs="ctrl",e.bindToController=!0,e}return P()(t,e),t}(G),At=n(78),ht=n.n(At),pt=function(e){function t(e){var n;return f()(this,t),n=B()(this,Q()(t).call(this,e)),d()(_()(n),"callback",void 0),d()(_()(n),"selectedEditorUuid",void 0),d()(_()(n),"currentItem",void 0),d()(_()(n),"application",void 0),n.state={isDesktop:Object(a.d)()},n}return t.$inject=["$timeout"],P()(t,e),h()(t,[{key:"isEditorSelected",value:function(e){return!!this.selectedEditorUuid&&this.selectedEditorUuid===e.uuid}},{key:"isEditorDefault",value:function(e){var t;return(null===(t=this.state.defaultEditor)||void 0===t?void 0:t.uuid)===e.uuid}},{key:"$onInit",value:function(){x()(Q()(t.prototype),"$onInit",this).call(this);var e=this.application.componentManager.componentsForArea(y.ComponentArea.Editor).sort((function(e,t){return e.name.toLowerCase()<t.name.toLowerCase()?-1:1})),n=e.filter((function(e){return e.isDefaultEditor()}))[0];this.setState({editors:e,defaultEditor:n})}},{key:"selectComponent",value:function(e){var t=this;e&&e.conflictOf&&this.application.changeAndSaveItem(e.uuid,(function(e){e.conflictOf=void 0})),this.$timeout((function(){t.callback()(e)}))}},{key:"toggleDefaultForEditor",value:function(e){this.state.defaultEditor===e?this.removeEditorDefault(e):this.makeEditorDefault(e)}},{key:"offlineAvailableForComponent",value:function(e){return e.local_url&&this.state.isDesktop}},{key:"makeEditorDefault",value:function(e){var t=this.application.componentManager.componentsForArea(y.ComponentArea.Editor).filter((function(e){return e.isDefaultEditor()}))[0];t&&this.application.changeItem(t.uuid,(function(e){e.defaultEditor=!1})),this.application.changeAndSaveItem(e.uuid,(function(e){e.defaultEditor=!0})),this.setState({defaultEditor:e})}},{key:"removeEditorDefault",value:function(e){this.application.changeAndSaveItem(e.uuid,(function(e){e.defaultEditor=!1})),this.setState({defaultEditor:null})}}]),t}(K.a),dt=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=ht.a,e.controller=pt,e.controllerAs="self",e.bindToController=!0,e.scope={callback:"&",selectedEditorUuid:"=",currentItem:"=",application:"="},e}return P()(t,e),t}(G),gt=n(79),yt=n.n(gt),vt=function(){function e(t){f()(this,e),d()(this,"$element",void 0),d()(this,"type",void 0),d()(this,"title",void 0),d()(this,"message",void 0),d()(this,"callback",void 0),d()(this,"formData",{input:""}),this.$element=t}return e.$inject=["$element"],h()(e,[{key:"dismiss",value:function(){var e=this.$element;e.scope().$destroy(),e.remove()}},{key:"submit",value:function(){this.callback(this.formData.input),this.dismiss()}}]),e}(),mt=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=yt.a,e.controller=vt,e.controllerAs="ctrl",e.bindToController=!0,e.scope={type:"=",title:"=",message:"=",callback:"&"},e}return P()(t,e),t}(G),bt=n(80),It=n.n(bt),wt=function(){function e(){f()(this,e),d()(this,"disabled",void 0),d()(this,"action",void 0),d()(this,"buttonAction",void 0)}return h()(e,[{key:"onClick",value:function(e){this.disabled||(e.stopPropagation(),this.action())}},{key:"clickAccessoryButton",value:function(e){this.disabled||(e.stopPropagation(),this.buttonAction())}}]),e}(),Ct=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.transclude=!0,e.template=It.a,e.controller=wt,e.controllerAs="ctrl",e.bindToController=!0,e.scope={action:"&",buttonAction:"&",buttonClass:"=",buttonText:"=",desc:"=",disabled:"=",circle:"=",circleAlign:"=",faded:"=",hasButton:"=",label:"=",spinnerClass:"=",stylekitClass:"=",subRows:"=",subtitle:"="},e}return P()(t,e),t}(G),Bt=n(81),Et=n.n(Bt);!function(e){e.Right="right",e.Left="left"}(ze||(ze={})),function(e){e.Move="mousemove",e.Down="mousedown",e.Up="mouseup"}(qe||(qe={})),function(e){e.Hoverable="hoverable",e.AlwaysVisible="always-visible",e.Dragging="dragging",e.NoSelection="no-selection",e.Collapsed="collapsed",e.AnimateOpacity="animate-opacity"}(We||(We={}));var _t=function(){function e(t,n,r){f()(this,e),d()(this,"alwaysVisible",void 0),d()(this,"collapsable",void 0),d()(this,"control",void 0),d()(this,"defaultWidth",void 0),d()(this,"hoverable",void 0),d()(this,"index",void 0),d()(this,"minWidth",void 0),d()(this,"onResizeFinish",void 0),d()(this,"panelId",void 0),d()(this,"property",void 0),d()(this,"$compile",void 0),d()(this,"$element",void 0),d()(this,"$timeout",void 0),d()(this,"panel",void 0),d()(this,"resizerColumn",void 0),d()(this,"currentMinWidth",0),d()(this,"pressed",!1),d()(this,"startWidth",0),d()(this,"lastDownX",0),d()(this,"collapsed",!1),d()(this,"lastWidth",0),d()(this,"startLeft",0),d()(this,"lastLeft",0),d()(this,"appFrame",void 0),d()(this,"widthBeforeLastDblClick",0),d()(this,"overlay",void 0),this.$compile=t,this.$element=n,this.$timeout=r,this.handleResize=Object(a.b)(this.handleResize.bind(this),250),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onMouseDown=this.onMouseDown.bind(this)}return e.$inject=["$compile","$element","$timeout"],h()(e,[{key:"$onInit",value:function(){this.configureDefaults(),this.reloadDefaultValues(),this.configureControl(),this.addDoubleClickHandler(),this.resizerColumn.addEventListener(qe.Down,this.onMouseDown),document.addEventListener(qe.Move,this.onMouseMove),document.addEventListener(qe.Up,this.onMouseUp)}},{key:"$onDestroy",value:function(){this.onResizeFinish=void 0,this.control=void 0,window.removeEventListener("resize",this.handleResize),document.removeEventListener(qe.Move,this.onMouseMove),document.removeEventListener(qe.Up,this.onMouseUp),this.resizerColumn.removeEventListener(qe.Down,this.onMouseDown),this.handleResize=void 0,this.onMouseMove=void 0,this.onMouseUp=void 0,this.onMouseDown=void 0}},{key:"configureControl",value:function(){var e=this;this.control.setWidth=function(t){e.setWidth(t,!0)},this.control.setLeft=function(t){e.setLeft(t)},this.control.flash=function(){e.flash()},this.control.isCollapsed=function(){return e.isCollapsed()},this.control.ready=!0,this.control.onReady()}},{key:"configureDefaults",value:function(){this.panel=document.getElementById(this.panelId),this.panel?(this.resizerColumn=this.$element[0],this.currentMinWidth=this.minWidth||this.resizerColumn.offsetWidth,this.pressed=!1,this.startWidth=this.panel.scrollWidth,this.lastDownX=0,this.collapsed=!1,this.lastWidth=this.startWidth,this.startLeft=this.panel.offsetLeft,this.lastLeft=this.startLeft,this.appFrame=void 0,this.widthBeforeLastDblClick=0,this.property===ze.Right&&this.configureRightPanel(),this.alwaysVisible&&this.resizerColumn.classList.add(We.AlwaysVisible),this.hoverable&&this.resizerColumn.classList.add(We.Hoverable)):console.error("Panel not found for",this.panelId)}},{key:"configureRightPanel",value:function(){window.addEventListener("resize",this.handleResize)}},{key:"handleResize",value:function(){var e=this;this.reloadDefaultValues(),this.handleWidthEvent(),this.$timeout((function(){e.finishSettingWidth()}))}},{key:"getParentRect",value:function(){return this.panel.parentNode.getBoundingClientRect()}},{key:"reloadDefaultValues",value:function(){this.startWidth=this.isAtMaxWidth()?this.getParentRect().width:this.panel.scrollWidth,this.lastWidth=this.startWidth,this.appFrame=document.getElementById("app").getBoundingClientRect()}},{key:"addDoubleClickHandler",value:function(){var e=this;this.resizerColumn.ondblclick=function(){e.$timeout((function(){var t=e.isCollapsed();t?e.setWidth(e.widthBeforeLastDblClick||e.defaultWidth):(e.widthBeforeLastDblClick=e.lastWidth,e.setWidth(e.currentMinWidth)),e.finishSettingWidth();var n=!t;e.onResizeFinish()(e.lastWidth,e.lastLeft,e.isAtMaxWidth(),n)}))}}},{key:"onMouseDown",value:function(e){this.addInvisibleOverlay(),this.pressed=!0,this.lastDownX=e.clientX,this.startWidth=this.panel.scrollWidth,this.startLeft=this.panel.offsetLeft,this.panel.classList.add(We.NoSelection),this.hoverable&&this.resizerColumn.classList.add(We.Dragging)}},{key:"onMouseUp",value:function(){if(this.removeInvisibleOverlay(),this.pressed){this.pressed=!1,this.resizerColumn.classList.remove(We.Dragging),this.panel.classList.remove(We.NoSelection);var e=this.isAtMaxWidth();this.onResizeFinish&&this.onResizeFinish()(this.lastWidth,this.lastLeft,e,this.isCollapsed()),this.finishSettingWidth()}}},{key:"onMouseMove",value:function(e){this.pressed&&(e.preventDefault(),this.property&&this.property===ze.Left?this.handleLeftEvent(e):this.handleWidthEvent(e))}},{key:"handleWidthEvent",value:function(e){var t;e?t=e.clientX:(t=0,this.lastDownX=0);var n=t-this.lastDownX,r=this.startWidth+n;this.setWidth(r,!1)}},{key:"handleLeftEvent",value:function(e){var t=this.panel.getBoundingClientRect(),n=(e.clientX||t.x)-this.lastDownX,r=this.startLeft+n;r<0&&(r=0,n=-this.startLeft);var i=this.getParentRect(),a=this.startWidth-n;a<this.currentMinWidth&&(a=this.currentMinWidth),a>i.width&&(a=i.width),r+a>i.width&&(r=i.width-a),this.setLeft(r),this.setWidth(a,!1)}},{key:"isAtMaxWidth",value:function(){return Math.round(this.lastWidth+this.lastLeft)===Math.round(this.getParentRect().width)}},{key:"isCollapsed",value:function(){return this.lastWidth<=this.currentMinWidth}},{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e<this.currentMinWidth&&(e=this.currentMinWidth);var n=this.getParentRect();e>n.width&&(e=n.width);var r=this.appFrame.width-this.panel.getBoundingClientRect().x;e>r&&(e=r),Math.round(e+this.lastLeft)===Math.round(n.width)?(this.panel.style.width="calc(100% - ".concat(this.lastLeft,"px)"),this.panel.style.flexBasis="calc(100% - ".concat(this.lastLeft,"px)")):(this.panel.style.flexBasis=e+"px",this.panel.style.width=e+"px"),this.lastWidth=e,t&&this.finishSettingWidth()}},{key:"setLeft",value:function(e){this.panel.style.left=e+"px",this.lastLeft=e}},{key:"finishSettingWidth",value:function(){this.collapsable&&(this.collapsed=this.isCollapsed(),this.collapsed?this.resizerColumn.classList.add(We.Collapsed):this.resizerColumn.classList.remove(We.Collapsed))}},{key:"addInvisibleOverlay",value:function(){this.overlay||(this.overlay=this.$compile("<div id='resizer-overlay'></div>")(this),i.a.element(document.body).prepend(this.overlay))}},{key:"removeInvisibleOverlay",value:function(){this.overlay&&(this.overlay.remove(),this.overlay=void 0)}},{key:"flash",value:function(){var e=this;this.resizerColumn.classList.add(We.AnimateOpacity),this.$timeout((function(){e.resizerColumn.classList.remove(We.AnimateOpacity)}),3e3)}}]),e}(),kt=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=Et.a,e.controller=_t,e.controllerAs="ctrl",e.bindToController=!0,e.scope={alwaysVisible:"=",collapsable:"=",control:"=",defaultWidth:"=",hoverable:"=",index:"=",minWidth:"=",onResizeFinish:"&",panelId:"=",property:"="},e}return P()(t,e),t}(G),Qt=n(82),St=n.n(Qt);function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pt=1,Mt=2,Ft=function(e){function t(e,n){var r;return f()(this,t),r=B()(this,Q()(t).call(this,n)),d()(_()(r),"$element",void 0),d()(_()(r),"application",void 0),d()(_()(r),"type",void 0),d()(_()(r),"isContinuing",!1),r.$element=e,r.registerWindowUnloadStopper(),r}var n,r,i,a;return t.$inject=["$element","$timeout"],P()(t,e),h()(t,[{key:"$onInit",value:function(){x()(Q()(t.prototype),"$onInit",this).call(this),this.initProps({type:this.type,changePassword:this.type===F.ChangePassword,securityUpdate:this.type===F.AccountUpgrade}),this.setState({formData:{},continueTitle:"Continue",step:Pt,title:this.props.changePassword?"Change Password":"Account Update"})}},{key:"$onDestroy",value:function(){x()(Q()(t.prototype),"$onDestroy",this).call(this),window.onbeforeunload=null}},{key:"registerWindowUnloadStopper",value:function(){window.onbeforeunload=function(){return!0}}},{key:"resetContinueState",value:function(){this.setState({showSpinner:!1,continueTitle:"Continue"}),this.isContinuing=!1}},{key:"nextStep",value:(a=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.state.lockContinue&&!this.isContinuing){e.next=2;break}return e.abrupt("return");case 2:if(this.state.step!==Mt){e.next=5;break}return this.dismiss(),e.abrupt("return");case 5:return this.isContinuing=!0,this.setState({showSpinner:!0,continueTitle:"Generating Keys..."}),e.next=9,this.validateCurrentPassword();case 9:if(e.sent){e.next=13;break}return this.resetContinueState(),e.abrupt("return");case 13:return e.next=15,this.processPasswordChange();case 15:if(e.sent){e.next=19;break}return this.resetContinueState(),e.abrupt("return");case 19:this.isContinuing=!1,this.setState({showSpinner:!1,continueTitle:"Finish",step:Mt});case 21:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"setFormDataState",value:(i=I()(m.a.mark((function e(t){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.setState({formData:Dt({},this.state.formData,{},t)}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"validateCurrentPassword",value:(r=I()(m.a.mark((function e(){var t,n,r,i;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.state.formData.currentPassword,r=this.props.securityUpdate?n:this.state.formData.newPassword,n&&0!==n.length){e.next=5;break}return this.application.alertService.alert("Please enter your current password."),e.abrupt("return",!1);case 5:if(!this.props.changePassword){e.next=13;break}if(r&&0!==r.length){e.next=9;break}return this.application.alertService.alert("Please enter a new password."),e.abrupt("return",!1);case 9:if(r===this.state.formData.newPasswordConfirmation){e.next=13;break}return this.application.alertService.alert("Your new password does not match its confirmation."),this.state.formData.status=null,e.abrupt("return",!1);case 13:if(null===(t=this.application.getUser())||void 0===t?void 0:t.email){e.next=17;break}return this.application.alertService.alert("We don't have your email stored. Please log out then log back in to fix this issue."),this.state.formData.status=null,e.abrupt("return",!1);case 17:return e.next=19,this.application.validateAccountPassword(this.state.formData.currentPassword);case 19:return(i=e.sent)||this.application.alertService.alert("The current password you entered is not correct. Please try again."),e.abrupt("return",i);case 22:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"processPasswordChange",value:(n=I()(m.a.mark((function e(){var t,n,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({lockContinue:!0,processing:!0}),this.setFormDataState({status:"Processing encryption keys..."}),t=this.props.securityUpdate?this.state.formData.currentPassword:this.state.formData.newPassword,e.next=5,this.application.changePassword(this.state.formData.currentPassword,t);case 5:return n=e.sent,r=!n||!n.error,this.setFormDataState({statusError:!r,processing:r}),r?this.setState({lockContinue:!1,formData:Dt({},this.state.formData,{status:this.props.changePassword?"Successfully changed password.":"Successfully performed account update."})}):(this.application.alertService.alert(n.error.message?n.error.message:"There was an error changing your password. Please try again."),this.setFormDataState({status:"Unable to process your password. Please try again."})),e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"dismiss",value:function(){if(this.state.lockContinue)this.application.alertService.alert("Cannot close window until pending tasks are complete.");else{var e=this.$element;e.scope().$destroy(),e.remove()}}}]),t}(K.a),Ot=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=St.a,e.controller=Ft,e.controllerAs="ctrl",e.bindToController=!0,e.scope={type:"=",application:"="},e}return P()(t,e),t}(G),Rt=n(83),Tt=n.n(Rt),Ht=function(){function e(t){f()(this,e),d()(this,"$element",void 0),d()(this,"callback",void 0),this.$element=t}return e.$inject=["$element"],h()(e,[{key:"dismiss",value:function(){var e=this.$element;e.scope().$destroy(),e.remove()}},{key:"accept",value:function(){this.callback(!0),this.dismiss()}},{key:"deny",value:function(){this.callback(!1),this.dismiss()}}]),e}(),jt=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=Tt.a,e.controller=Ht,e.controllerAs="ctrl",e.bindToController=!0,e.scope={show:"=",component:"=",permissionsString:"=",callback:"="},e}return P()(t,e),t}(G),Nt=n(84),Ut=n.n(Nt),Lt=function(){function e(t,n){f()(this,e),d()(this,"$element",void 0),d()(this,"$timeout",void 0),d()(this,"application",void 0),d()(this,"action",void 0),d()(this,"onSuccess",void 0),d()(this,"onCancel",void 0),d()(this,"authParameters",{}),d()(this,"sessionLengthOptions",void 0),d()(this,"selectedSessionLength",void 0),d()(this,"requiredCredentials",void 0),d()(this,"failedCredentials",void 0),this.$element=t,this.$timeout=n}var t;return e.$inject=["$element","$timeout"],h()(e,[{key:"$onInit",value:function(){var e=this;this.sessionLengthOptions=this.application.privilegesService.getSessionLengthOptions(),this.application.privilegesService.getSelectedSessionLength().then((function(t){e.$timeout((function(){e.selectedSessionLength=t}))})),this.application.privilegesService.netCredentialsForAction(this.action).then((function(t){e.$timeout((function(){e.requiredCredentials=t.sort()}))}))}},{key:"selectSessionLength",value:function(e){this.selectedSessionLength=e}},{key:"promptForCredential",value:function(e){return this.application.privilegesService.displayInfoForCredential(e).prompt}},{key:"cancel",value:function(){this.dismiss(),this.onCancel&&this.onCancel()}},{key:"isCredentialInFailureState",value:function(e){return!!this.failedCredentials&&null!=this.failedCredentials.find((function(t){return t===e}))}},{key:"validate",value:function(){var e=[],t=!0,n=!1,r=void 0;try{for(var i,a=this.requiredCredentials[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value,s=this.authParameters[o];s&&0!==s.length||e.push(o)}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return this.failedCredentials=e,0===e.length}},{key:"submit",value:(t=I()(m.a.mark((function e(){var t,n=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.validate()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.application.privilegesService.authenticateAction(this.action,this.authParameters);case 4:t=e.sent,this.$timeout((function(){t.success?(n.application.privilegesService.setSessionLength(n.selectedSessionLength),n.onSuccess(),n.dismiss()):n.failedCredentials=t.failedCredentials}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this.$element;e.scope().$destroy(),e.remove()}}]),e}(),Kt=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=Ut.a,e.controller=Lt,e.controllerAs="ctrl",e.bindToController=!0,e.scope={action:"=",onSuccess:"=",onCancel:"=",application:"="},e}return P()(t,e),t}(G),Gt=n(85),$t=n.n(Gt),Yt=function(e){function t(e,n){var r;return f()(this,t),r=B()(this,Q()(t).call(this,e)),d()(_()(r),"hasPasscode",!1),d()(_()(r),"hasAccount",!1),d()(_()(r),"$element",void 0),d()(_()(r),"application",void 0),d()(_()(r),"privileges",void 0),d()(_()(r),"availableActions",void 0),d()(_()(r),"availableCredentials",void 0),d()(_()(r),"sessionExpirey",void 0),d()(_()(r),"sessionExpired",!0),d()(_()(r),"credentialDisplayInfo",{}),d()(_()(r),"onCancel",void 0),r.$element=n,r}var n,r,i;return t.$inject=["$timeout","$element"],P()(t,e),h()(t,[{key:"onAppLaunch",value:(i=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x()(Q()(t.prototype),"onAppLaunch",this).call(this),this.hasPasscode=this.application.hasPasscode(),this.hasAccount=!this.application.noAccount(),this.reloadPrivileges();case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"displayInfoForCredential",value:function(e){var t=this.application.privilegesService.displayInfoForCredential(e);return e===y.PrivilegeCredential.LocalPasscode?t.availability=this.hasPasscode:e===y.PrivilegeCredential.AccountPassword?t.availability=this.hasAccount:t.availability=!0,t}},{key:"displayInfoForAction",value:function(e){return this.application.privilegesService.displayInfoForAction(e).label}},{key:"isCredentialRequiredForAction",value:function(e,t){return!!this.privileges&&this.privileges.isCredentialRequiredForAction(e,t)}},{key:"clearSession",value:(r=I()(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.privilegesService.clearSession();case 2:this.reloadPrivileges();case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"reloadPrivileges",value:(n=I()(m.a.mark((function e(){var t,n,r,i,a,o,s,c,u=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.availableActions=this.application.privilegesService.getAvailableActions(),this.availableCredentials=this.application.privilegesService.getAvailableCredentials(),e.next=4,this.application.privilegesService.getSessionExpirey();case 4:for(t=e.sent,this.sessionExpirey=t.toLocaleString(),this.sessionExpired=new Date>=t,n=!0,r=!1,i=void 0,e.prev=10,a=this.availableCredentials[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)s=o.value,this.credentialDisplayInfo[s]=this.displayInfoForCredential(s);e.next=18;break;case 14:e.prev=14,e.t0=e.catch(10),r=!0,i=e.t0;case 18:e.prev=18,e.prev=19,n||null==a.return||a.return();case 21:if(e.prev=21,!r){e.next=24;break}throw i;case 24:return e.finish(21);case 25:return e.finish(18);case 26:return e.next=28,this.application.privilegesService.getPrivileges();case 28:c=e.sent,this.$timeout((function(){u.privileges=c}));case 30:case"end":return e.stop()}}),e,this,[[10,14,18,26],[19,,21,25]])}))),function(){return n.apply(this,arguments)})},{key:"checkboxValueChanged",value:function(e,t){this.application.changeAndSaveItem(this.privileges.uuid,(function(n){n.toggleCredentialForAction(e,t)}))}},{key:"cancel",value:function(){this.dismiss(),this.onCancel&&this.onCancel()}},{key:"dismiss",value:function(){var e=this.$element;e.scope().$destroy(),e.remove()}}]),t}(K.a),Jt=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=$t.a,e.controller=Yt,e.controllerAs="ctrl",e.bindToController=!0,e.scope={application:"="},e}return P()(t,e),t}(G),Vt=n(86),zt=n.n(Vt),qt=function(){function e(t,n){f()(this,e),d()(this,"$element",void 0),d()(this,"$timeout",void 0),d()(this,"uuid",void 0),d()(this,"content",void 0),d()(this,"application",void 0),d()(this,"unregisterComponent",void 0),d()(this,"note",void 0),d()(this,"editor",void 0),this.$element=t,this.$timeout=n}var t;return e.$inject=["$element","$timeout"],h()(e,[{key:"$onInit",value:function(){this.configure()}},{key:"$onDestroy",value:function(){this.unregisterComponent&&(this.unregisterComponent(),this.unregisterComponent=void 0)}},{key:"configure",value:(t=I()(m.a.mark((function e(){var t,n,r,i=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.application.createTemplateItem(y.ContentType.Note,this.content);case 2:if(this.note=e.sent,t=this.application.findItem(this.uuid),!(n=this.componentManager.editorForNote(t))){e.next=12;break}return e.next=8,this.application.createTemplateItem(y.ContentType.Component,n.safeContent);case 8:r=e.sent,this.componentManager.setReadonlyStateForComponent(r,!0,!0),this.unregisterComponent=this.componentManager.registerHandler({identifier:r.uuid,areas:[y.ComponentArea.Editor],contextRequestHandler:function(e){var t;if(e===(null===(t=i.editor)||void 0===t?void 0:t.uuid))return i.note},componentForSessionKeyHandler:function(e){if(e===i.componentManager.sessionKeyForComponent(i.editor))return i.editor}}),this.editor=r;case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"restore",value:function(e){var t=this,n=function(){var n=I()(m.a.mark((function n(){var r;return m.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=7;break}return(r=Object.assign({},t.content)).title&&(r.title+=" (copy)"),n.next=5,t.application.createManagedItem(y.ContentType.Note,r,!0);case 5:n.next=8;break;case 7:t.application.changeAndSaveItem(t.uuid,(function(e){e.setContent(t.content)}),!0,y.PayloadSource.RemoteActionRetrieved);case 8:t.dismiss();case 9:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();e?n():this.application.alertService.confirm("Are you sure you want to replace the current note's contents with what you see in this preview?",void 0,void 0,void 0,n,void 0,!0)}},{key:"dismiss",value:function(){var e=this.$element;e.scope().$destroy(),e.remove()}},{key:"componentManager",get:function(){return this.application.componentManager}}]),e}(),Wt=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=zt.a,e.controller=qt,e.controllerAs="ctrl",e.bindToController=!0,e.scope={uuid:"=",content:"=",application:"="},e}return P()(t,e),t}(G),Xt=n(87),Zt=n.n(Xt),en=function(){function e(t){f()(this,e),d()(this,"$timeout",void 0),d()(this,"diskEnabled",!1),d()(this,"autoOptimize",!1),d()(this,"application",void 0),d()(this,"item",void 0),d()(this,"entries",void 0),d()(this,"history",void 0),this.$timeout=t}return e.$inject=["$timeout"],h()(e,[{key:"$onInit",value:function(){this.reloadHistory(),this.diskEnabled=this.application.historyManager.isDiskEnabled(),this.autoOptimize=this.application.historyManager.isAutoOptimizeEnabled()}},{key:"reloadHistory",value:function(){var e=this.application.historyManager.historyForItem(this.item);this.entries=e.entries.slice(0).sort((function(e,t){return e.payload.updated_at<t.payload.updated_at?1:-1})),this.history=e}},{key:"openRevision",value:function(e){this.application.presentRevisionPreviewModal(e.payload.uuid,e.payload.content)}},{key:"classForRevision",value:function(e){var t=e.operationVector();return 0===t?"default":1===t?"success":-1===t?"danger":void 0}},{key:"clearItemHistory",value:function(){var e=this;this.application.alertService.confirm("Are you sure you want to delete the local session history for this note?",void 0,void 0,void 0,(function(){e.application.historyManager.clearHistoryForItem(e.item).then((function(){e.$timeout((function(){e.reloadHistory()}))}))}),void 0,!0)}},{key:"clearAllHistory",value:function(){var e=this;this.application.alertService.confirm("Are you sure you want to delete the local session history for all notes?",void 0,void 0,void 0,(function(){e.application.historyManager.clearAllHistory().then((function(){e.$timeout((function(){e.reloadHistory()}))}))}),void 0,!0)}},{key:"toggleDiskSaving",value:function(){var e=this,t=function(){e.application.historyManager.toggleDiskSaving().then((function(){e.$timeout((function(){e.diskEnabled=e.application.historyManager.isDiskEnabled()}))}))};this.application.historyManager.isDiskEnabled()?t():this.application.alertService.confirm("Are you sure you want to save history to disk? This will decrease general \n performance, especially as you type. You are advised to disable this feature \n if you experience any lagging.",void 0,void 0,void 0,t,void 0,!0)}},{key:"toggleAutoOptimize",value:function(){var e=this;this.application.historyManager.toggleAutoOptimize().then((function(){e.$timeout((function(){e.autoOptimize=e.application.historyManager.autoOptimize}))}))}}]),e}(),tn=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=Zt.a,e.controller=en,e.controllerAs="ctrl",e.bindToController=!0,e.scope={item:"=",application:"="},e}return P()(t,e),t}(G),nn=n(88),rn=n.n(nn),an=function(){function e(t){f()(this,e),d()(this,"closeFunction",void 0),d()(this,"application",void 0),d()(this,"$timeout",void 0),d()(this,"status",{}),this.$timeout=t}var t;return e.$inject=["$timeout"],h()(e,[{key:"downloadBackup",value:function(e){this.application.getArchiveService().downloadBackup(e),this.status.backupFinished=!0}},{key:"skipBackup",value:function(){this.status.backupFinished=!0}},{key:"performSyncResolution",value:(t=I()(m.a.mark((function e(){var t=this;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.status.resolving=!0,e.next=3,this.application.resolveOutOfSync();case 3:this.$timeout((function(){t.status.resolving=!1,t.status.attemptedResolution=!0,t.application.isOutOfSync()?t.status.fail=!0:t.status.success=!0}));case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"close",value:function(){var e=this;this.$timeout((function(){e.closeFunction()}))}}]),e}(),on=function(e){function t(){var e;return f()(this,t),(e=B()(this,Q()(t).call(this))).restrict="E",e.template=rn.a,e.controller=an,e.controllerAs="ctrl",e.bindToController=!0,e.scope={closeFunction:"&",application:"="},e}return P()(t,e),t}(G);function sn(e){return function(t){return e.trustAsResourceUrl(t)}}sn.$inject=["$sce"],i.a.module("app",["ngSanitize"]),i.a.module("app").config(o).constant("appVersion","3.5.0"),i.a.module("app").directive("applicationGroupView",(function(){return new V})).directive("applicationView",(function(){return new re})).directive("editorGroupView",(function(){return new se})).directive("editorView",(function(){return new be})).directive("tagsView",(function(){return new Oe})).directive("notesView",(function(){return new De})).directive("footerView",(function(){return new Be})),i.a.module("app").directive("snAutofocus",["$timeout",Ne]).directive("clickOutside",["$document",Ue]).directive("delayHide",Le).directive("elemReady",Ke).directive("fileChange",(function(){return{restrict:"A",scope:{handler:"&"},link:function(e,t){t.on("change",(function(t){e.$apply((function(){var n=t.target.files;e.handler({files:n})}))}))}}})).directive("infiniteScroll",[function(){return{link:function(e,t,n){var r=e,i=parseInt(n.threshold)||0,o=t[0];r.paginate=Object(a.b)((function(){e.$apply(n.infiniteScroll)}),10),r.onScroll=function(){e.$eval(n.canLoad)&&o.scrollTop+o.offsetHeight>=o.scrollHeight-i&&r.paginate()},t.on("scroll",r.onScroll),e.$on("$destroy",(function(){t.off("scroll",r.onScroll)}))}}}]).directive("lowercase",(function(){return{require:"ngModel",link:function(e,t,n,r){var i=function(e){void 0===e&&(e="");var t=e.toLowerCase();return t!==e&&(r.$setViewValue(t),r.$render()),t};r.$parsers.push(i),i(e[n.ngModel])}}})).directive("selectOnFocus",["$window",Ge.a]).directive("snEnter",(function(){return function(e,t,n){t.bind("keydown keypress",(function(t){13===t.which&&(e.$apply((function(){e.$eval(n.snEnter,{event:t})})),t.preventDefault())}))}})),i.a.module("app").directive("accountMenu",(function(){return new Ze})).directive("actionsMenu",(function(){return new rt})).directive("challengeModal",(function(){return new je})).directive("componentModal",(function(){return new st})).directive("componentView",(function(){return new ft})).directive("editorMenu",(function(){return new dt})).directive("inputModal",(function(){return new mt})).directive("menuRow",(function(){return new Ct})).directive("panelResizer",(function(){return new kt})).directive("passwordWizard",(function(){return new Ot})).directive("permissionsModal",(function(){return new jt})).directive("privilegesAuthModal",(function(){return new Kt})).directive("privilegesManagementModal",(function(){return new Jt})).directive("revisionPreviewModal",(function(){return new Wt})).directive("sessionHistoryMenu",(function(){return new tn})).directive("syncResolutionMenu",(function(){return new on})),i.a.module("app").filter("trusted",["$sce",sn]),i.a.module("app").service("mainApplicationGroup",L)}]);
//# sourceMappingURL=app.js.map