wotokol-edm 1.1.69 → 1.1.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wotokol-edm",
3
- "version": "1.1.69",
3
+ "version": "1.1.71",
4
4
  "description": "",
5
5
  "main": "wotokol-edm.common.js",
6
6
  "scripts": {
@@ -91146,33 +91146,8 @@ var lib = __webpack_require__(6153);
91146
91146
 
91147
91147
 
91148
91148
  //注册skywalking
91149
- skywalking_client_js.register({
91150
- service: 'wotohubService',
91151
- //应用名称
91152
- serviceVersion: '10.1.0',
91153
- //应用版本号
91154
- traceSDKInternal: true,
91155
- //追踪sdk
91156
- pagePath: location.href,
91157
- //当前路由地址
91158
- useFmp: true,
91159
- //use first meaningful paint
91160
- collector: location.origin,
91161
- // report serve
91162
- jsErrors: true,
91163
- // vue, js and promise errors
91164
- apiErrors: true,
91165
- resourceErrors: true,
91166
- autoTracePerf: true,
91167
- // trace performance detail
91168
- enableSPA: true,
91169
- detailMode: true,
91170
- noTraceOrigins: [],
91171
- vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
91172
- });
91173
- //上报错误信息方法
91174
- function reportFrameErrors(error) {
91175
- skywalking_client_js.reportFrameErrors({
91149
+ if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
91150
+ skywalking_client_js.register({
91176
91151
  service: 'wotohubService',
91177
91152
  //应用名称
91178
91153
  serviceVersion: '10.1.0',
@@ -91194,41 +91169,72 @@ function reportFrameErrors(error) {
91194
91169
  enableSPA: true,
91195
91170
  detailMode: true,
91196
91171
  noTraceOrigins: [],
91197
- traceTimeInterval: 60000,
91198
- // 1min
91199
91172
  vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
91200
- }, error);
91173
+ });
91174
+ }
91175
+ //上报错误信息方法
91176
+ function reportFrameErrors(error) {
91177
+ if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
91178
+ skywalking_client_js.reportFrameErrors({
91179
+ service: 'wotohubService',
91180
+ //应用名称
91181
+ serviceVersion: '10.1.0',
91182
+ //应用版本号
91183
+ traceSDKInternal: true,
91184
+ //追踪sdk
91185
+ pagePath: location.href,
91186
+ //当前路由地址
91187
+ useFmp: true,
91188
+ //use first meaningful paint
91189
+ collector: location.origin,
91190
+ // report serve
91191
+ jsErrors: true,
91192
+ // vue, js and promise errors
91193
+ apiErrors: true,
91194
+ resourceErrors: true,
91195
+ autoTracePerf: true,
91196
+ // trace performance detail
91197
+ enableSPA: true,
91198
+ detailMode: true,
91199
+ noTraceOrigins: [],
91200
+ traceTimeInterval: 60000,
91201
+ // 1min
91202
+ vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
91203
+ }, error);
91204
+ }
91201
91205
  }
91202
91206
 
91203
91207
  //上报错误信息方法
91204
91208
  function setPerformance() {
91205
- //路由上报到skywalking
91206
- ClientMonitor.setPerformance({
91207
- service: 'wotohubService',
91208
- //应用名称
91209
- serviceVersion: '10.1.0',
91210
- //应用版本号
91211
- traceSDKInternal: true,
91212
- //追踪sdk
91213
- pagePath: location.href,
91214
- //当前路由地址
91215
- useFmp: true,
91216
- //use first meaningful paint
91217
- collector: location.origin,
91218
- // report serve
91219
- jsErrors: true,
91220
- // vue, js and promise errors
91221
- apiErrors: true,
91222
- resourceErrors: true,
91223
- autoTracePerf: true,
91224
- // trace performance detail
91225
- enableSPA: true,
91226
- detailMode: true,
91227
- noTraceOrigins: [],
91228
- traceTimeInterval: 60000,
91229
- // 1min
91230
- vue: Vue //vue实例
91231
- });
91209
+ if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
91210
+ //路由上报到skywalking
91211
+ ClientMonitor.setPerformance({
91212
+ service: 'wotohubService',
91213
+ //应用名称
91214
+ serviceVersion: '10.1.0',
91215
+ //应用版本号
91216
+ traceSDKInternal: true,
91217
+ //追踪sdk
91218
+ pagePath: location.href,
91219
+ //当前路由地址
91220
+ useFmp: true,
91221
+ //use first meaningful paint
91222
+ collector: location.origin,
91223
+ // report serve
91224
+ jsErrors: true,
91225
+ // vue, js and promise errors
91226
+ apiErrors: true,
91227
+ resourceErrors: true,
91228
+ autoTracePerf: true,
91229
+ // trace performance detail
91230
+ enableSPA: true,
91231
+ detailMode: true,
91232
+ noTraceOrigins: [],
91233
+ traceTimeInterval: 60000,
91234
+ // 1min
91235
+ vue: Vue //vue实例
91236
+ });
91237
+ }
91232
91238
  }
91233
91239
  ;// ./src/utils/request-login.js
91234
91240
 
Binary file
Binary file
@@ -91156,33 +91156,8 @@ var lib = __webpack_require__(6153);
91156
91156
 
91157
91157
 
91158
91158
  //注册skywalking
91159
- skywalking_client_js.register({
91160
- service: 'wotohubService',
91161
- //应用名称
91162
- serviceVersion: '10.1.0',
91163
- //应用版本号
91164
- traceSDKInternal: true,
91165
- //追踪sdk
91166
- pagePath: location.href,
91167
- //当前路由地址
91168
- useFmp: true,
91169
- //use first meaningful paint
91170
- collector: location.origin,
91171
- // report serve
91172
- jsErrors: true,
91173
- // vue, js and promise errors
91174
- apiErrors: true,
91175
- resourceErrors: true,
91176
- autoTracePerf: true,
91177
- // trace performance detail
91178
- enableSPA: true,
91179
- detailMode: true,
91180
- noTraceOrigins: [],
91181
- vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
91182
- });
91183
- //上报错误信息方法
91184
- function reportFrameErrors(error) {
91185
- skywalking_client_js.reportFrameErrors({
91159
+ if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
91160
+ skywalking_client_js.register({
91186
91161
  service: 'wotohubService',
91187
91162
  //应用名称
91188
91163
  serviceVersion: '10.1.0',
@@ -91204,41 +91179,72 @@ function reportFrameErrors(error) {
91204
91179
  enableSPA: true,
91205
91180
  detailMode: true,
91206
91181
  noTraceOrigins: [],
91207
- traceTimeInterval: 60000,
91208
- // 1min
91209
91182
  vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
91210
- }, error);
91183
+ });
91184
+ }
91185
+ //上报错误信息方法
91186
+ function reportFrameErrors(error) {
91187
+ if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
91188
+ skywalking_client_js.reportFrameErrors({
91189
+ service: 'wotohubService',
91190
+ //应用名称
91191
+ serviceVersion: '10.1.0',
91192
+ //应用版本号
91193
+ traceSDKInternal: true,
91194
+ //追踪sdk
91195
+ pagePath: location.href,
91196
+ //当前路由地址
91197
+ useFmp: true,
91198
+ //use first meaningful paint
91199
+ collector: location.origin,
91200
+ // report serve
91201
+ jsErrors: true,
91202
+ // vue, js and promise errors
91203
+ apiErrors: true,
91204
+ resourceErrors: true,
91205
+ autoTracePerf: true,
91206
+ // trace performance detail
91207
+ enableSPA: true,
91208
+ detailMode: true,
91209
+ noTraceOrigins: [],
91210
+ traceTimeInterval: 60000,
91211
+ // 1min
91212
+ vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
91213
+ }, error);
91214
+ }
91211
91215
  }
91212
91216
 
91213
91217
  //上报错误信息方法
91214
91218
  function setPerformance() {
91215
- //路由上报到skywalking
91216
- ClientMonitor.setPerformance({
91217
- service: 'wotohubService',
91218
- //应用名称
91219
- serviceVersion: '10.1.0',
91220
- //应用版本号
91221
- traceSDKInternal: true,
91222
- //追踪sdk
91223
- pagePath: location.href,
91224
- //当前路由地址
91225
- useFmp: true,
91226
- //use first meaningful paint
91227
- collector: location.origin,
91228
- // report serve
91229
- jsErrors: true,
91230
- // vue, js and promise errors
91231
- apiErrors: true,
91232
- resourceErrors: true,
91233
- autoTracePerf: true,
91234
- // trace performance detail
91235
- enableSPA: true,
91236
- detailMode: true,
91237
- noTraceOrigins: [],
91238
- traceTimeInterval: 60000,
91239
- // 1min
91240
- vue: Vue //vue实例
91241
- });
91219
+ if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
91220
+ //路由上报到skywalking
91221
+ ClientMonitor.setPerformance({
91222
+ service: 'wotohubService',
91223
+ //应用名称
91224
+ serviceVersion: '10.1.0',
91225
+ //应用版本号
91226
+ traceSDKInternal: true,
91227
+ //追踪sdk
91228
+ pagePath: location.href,
91229
+ //当前路由地址
91230
+ useFmp: true,
91231
+ //use first meaningful paint
91232
+ collector: location.origin,
91233
+ // report serve
91234
+ jsErrors: true,
91235
+ // vue, js and promise errors
91236
+ apiErrors: true,
91237
+ resourceErrors: true,
91238
+ autoTracePerf: true,
91239
+ // trace performance detail
91240
+ enableSPA: true,
91241
+ detailMode: true,
91242
+ noTraceOrigins: [],
91243
+ traceTimeInterval: 60000,
91244
+ // 1min
91245
+ vue: Vue //vue实例
91246
+ });
91247
+ }
91242
91248
  }
91243
91249
  ;// ./src/utils/request-login.js
91244
91250
 
Binary file
@@ -64,7 +64,7 @@ function o(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;va
64
64
  */
65
65
  function Gn(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var Kn="undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:{},Xn=Kn.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Zn(e){Xn&&(e._devtoolHook=Xn,Xn.emit("vuex:init",e),Xn.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){Xn.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){Xn.emit("vuex:action",e,t)}),{prepend:!0}))}function Jn(e,t){return e.filter(t)[0]}function Qn(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=Jn(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=Qn(e[n],t)})),i}function ei(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function ti(e){return null!==e&&"object"===typeof e}function ni(e){return e&&"function"===typeof e.then}function ii(e,t){return function(){return e(t)}}var ri=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},oi={namespaced:{configurable:!0}};oi.namespaced.get=function(){return!!this._rawModule.namespaced},ri.prototype.addChild=function(e,t){this._children[e]=t},ri.prototype.removeChild=function(e){delete this._children[e]},ri.prototype.getChild=function(e){return this._children[e]},ri.prototype.hasChild=function(e){return e in this._children},ri.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},ri.prototype.forEachChild=function(e){ei(this._children,e)},ri.prototype.forEachGetter=function(e){this._rawModule.getters&&ei(this._rawModule.getters,e)},ri.prototype.forEachAction=function(e){this._rawModule.actions&&ei(this._rawModule.actions,e)},ri.prototype.forEachMutation=function(e){this._rawModule.mutations&&ei(this._rawModule.mutations,e)},Object.defineProperties(ri.prototype,oi);var ai=function(e){this.register([],e,!1)};function si(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;si(e.concat(i),t.getChild(i),n.modules[i])}}ai.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},ai.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},ai.prototype.update=function(e){si([],this.root,e)},ai.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new ri(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&ei(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},ai.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},ai.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var li;var ci=function(e){var t=this;void 0===e&&(e={}),!li&&"undefined"!==typeof window&&window.Vue&&xi(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ai(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new li,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,a=o.dispatch,s=o.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,n){return s.call(r,e,t,n)},this.strict=i;var l=this._modules.root.state;fi(this,l,[],this._modules.root),pi(this,l),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:li.config.devtools;c&&Zn(this)},ui={state:{configurable:!0}};function di(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function hi(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;fi(e,n,[],e._modules.root,!0),pi(e,n,t)}function pi(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};ei(r,(function(t,n){o[n]=ii(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=li.config.silent;li.config.silent=!0,e._vm=new li({data:{$$state:t},computed:o}),li.config.silent=a,e.strict&&wi(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),li.nextTick((function(){return i.$destroy()})))}function fi(e,t,n,i,r){var o=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!o&&!r){var s=_i(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){li.set(s,l,i.state)}))}var c=i.context=mi(e,a,n);i.forEachMutation((function(t,n){var i=a+n;vi(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:a+n,r=t.handler||t;yi(e,i,r,c)})),i.forEachGetter((function(t,n){var i=a+n;bi(e,i,t,c)})),i.forEachChild((function(i,o){fi(e,t,n.concat(o),i,r)}))}function mi(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=Ci(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,r){var o=Ci(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return gi(e,t)}},state:{get:function(){return _i(e.state,n)}}}),r}function gi(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function vi(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function yi(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return ni(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function bi(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function wi(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function _i(e,t){return t.reduce((function(e,t){return e[t]}),e)}function Ci(e,t,n){return ti(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function xi(e){li&&e===li||(li=e,Gn(li))}ui.state.get=function(){return this._vm._data.$$state},ui.state.set=function(e){0},ci.prototype.commit=function(e,t,n){var i=this,r=Ci(e,t,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},ci.prototype.dispatch=function(e,t){var n=this,i=Ci(e,t),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(oh){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(oh){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(oh){0}t(e)}))}))}},ci.prototype.subscribe=function(e,t){return di(e,this._subscribers,t)},ci.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return di(n,this._actionSubscribers,t)},ci.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},ci.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},ci.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),fi(this,this.state,e,this._modules.get(e),n.preserveState),pi(this,this.state)},ci.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=_i(t.state,e.slice(0,-1));li.delete(n,e[e.length-1])})),hi(this)},ci.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},ci.prototype.hotUpdate=function(e){this._modules.update(e),hi(this,!0)},ci.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ci.prototype,ui);var Si=Ii((function(e,t){var n={};return Oi(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=Pi(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),ki=Ii((function(e,t){var n={};return Oi(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=Pi(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),Ei=Ii((function(e,t){var n={};return Oi(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||Pi(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),Di=Ii((function(e,t){var n={};return Oi(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=Pi(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),Ai=function(e){return{mapState:Si.bind(null,e),mapGetters:Ei.bind(null,e),mapMutations:ki.bind(null,e),mapActions:Di.bind(null,e)}};function Oi(e){return Ti(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Ti(e){return Array.isArray(e)||ti(e)}function Ii(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Pi(e,t,n){var i=e._modulesNamespaceMap[n];return i}function Fi(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var u=Qn(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,o){var a=Qn(o);if(n(e,u,a)){var s=Ni(),l=r(e),d="mutation "+e.type+s;$i(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(u)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",i(a)),Bi(c)}u=a})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var i=Ni(),r=a(e),s="action "+e.type+i;$i(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",r),Bi(c)}})))}}function $i(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(oh){e.log(t)}}function Bi(e){try{e.groupEnd()}catch(oh){e.log("—— log end ——")}}function Ni(){var e=new Date;return" @ "+Ri(e.getHours(),2)+":"+Ri(e.getMinutes(),2)+":"+Ri(e.getSeconds(),2)+"."+Ri(e.getMilliseconds(),3)}function Mi(e,t){return new Array(t+1).join(e)}function Ri(e,t){return Mi("0",t-e.toString().length)+e}var ji={Store:ci,install:xi,version:"3.6.2",mapState:Si,mapMutations:ki,mapGetters:Ei,mapActions:Di,createNamespacedHelpers:Ai,createLogger:Fi},Li=ji,zi={namespaced:!0,state:{persistData:{theme:null}},getters:{currentTheme:e=>e.persistData.theme},mutations:{changeTheme(e,t){e.persistData.theme=t}},actions:{changeTheme({commit:e},t){e("changeTheme",t)}}};Yn().use(Li);var Vi=new Li.Store({state:{theme:"#5E72F4"},getters:{},mutations:{},actions:{},modules:{Theme:zi}});
66
66
  /*! js-cookie v3.0.5 | MIT */
67
- function Hi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var Ui={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Wi(e,t){function n(n,i,r){if("undefined"!==typeof document){r=Hi({},t,r),"number"===typeof r.expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in r)r[a]&&(o+="; "+a,!0!==r[a]&&(o+="="+r[a].split(";")[0]));return document.cookie=n+"="+e.write(i,n)+o}}function i(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var o=n[r].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(i[s]=e.read(a,s),t===s)break}catch(oh){}}return t?i[t]:i}}return Object.create({set:n,get:i,remove:function(e,t){n(e,"",Hi({},t,{expires:-1}))},withAttributes:function(e){return Wi(this.converter,Hi({},this.attributes,e))},withConverter:function(e){return Wi(Hi({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var qi=Wi(Ui,{path:"/"});const Yi="userToken";function Gi(){return qi.get(Yi)}function Ki(e){return qi.set(Yi,e)}i(6153);var Xi=ClientMonitor;function Zi(e){Xi.reportFrameErrors({service:"wotohubService",serviceVersion:"10.1.0",traceSDKInternal:!0,pagePath:location.href,useFmp:!0,collector:location.origin,jsErrors:!0,apiErrors:!0,resourceErrors:!0,autoTracePerf:!0,enableSPA:!0,detailMode:!0,noTraceOrigins:[],traceTimeInterval:6e4,vue:Yn()},e)}Xi.register({service:"wotohubService",serviceVersion:"10.1.0",traceSDKInternal:!0,pagePath:location.href,useFmp:!0,collector:location.origin,jsErrors:!0,apiErrors:!0,resourceErrors:!0,autoTracePerf:!0,enableSPA:!0,detailMode:!0,noTraceOrigins:[],vue:Yn()});const Ji=Sn.create({baseURL:"https://dss-apis.kuku.info"});Ji.interceptors.request.use((e=>{if(e.data)for(const t in e.data)er(e.data[t])&&delete e.data[t];if(e.params)for(const t in e.params)er(e.params[t])&&delete e.params[t];return Vi.getters.token&&(e.headers["Authorization"]="Bearer "+Gi()),e}),(e=>Promise.reject(e))),Ji.interceptors.response.use((e=>{const t=e.data;try{if("object"===typeof e.data&&e.data.hasOwnProperty("code")&&0!=e.data.code){const t=JSON.parse(localStorage.getItem("user_info")||"{}"),n=t.user_id?t.user_id+"_":"";throw new Error(n+e.request.responseURL+e.request.responseText||e.data.code)}}catch(cl){console.error("An error occurred:",cl),Zi(cl)}return Promise.resolve(t)}),(e=>(100003===e.response.data.code?(0,Wn.Message)({message:e.response.data.message,type:"error",duration:5e3}):(0,Wn.Message)({message:e.response.data.message?e.response.data.message:"网络错误,请稍后再试~",type:"error",duration:5e3}),Promise.reject(e))));var Qi=Ji;function er(e){return"undefined"===typeof e||null===e||""===e}var tr="0123456789abcdefghijklmnopqrstuvwxyz";function nr(e){return tr.charAt(e)}function ir(e,t){return e&t}function rr(e,t){return e|t}function or(e,t){return e^t}function ar(e,t){return e&~t}function sr(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function lr(e){var t=0;while(0!=e)e&=e-1,++t;return t}var cr,ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dr="=";function hr(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=ur.charAt(n>>6)+ur.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=ur.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=ur.charAt(n>>2)+ur.charAt((3&n)<<4));while((3&i.length)>0)i+=dr;return i}function pr(e){var t,n="",i=0,r=0;for(t=0;t<e.length;++t){if(e.charAt(t)==dr)break;var o=ur.indexOf(e.charAt(t));o<0||(0==i?(n+=nr(o>>2),r=3&o,i=1):1==i?(n+=nr(r<<2|o>>4),r=15&o,i=2):2==i?(n+=nr(r),n+=nr(o>>2),r=3&o,i=3):(n+=nr(r<<2|o>>4),n+=nr(15&o),i=0))}return 1==i&&(n+=nr(r<<2)),n}var fr,mr={decode:function(e){var t;if(void 0===cr){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(cr={},t=0;t<16;++t)cr[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)cr[n.charAt(t)]=t;for(t=0;t<i.length;++t)cr[i.charAt(t)]=-1}var r=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=cr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=2?(r[r.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},gr={decode:function(e){var t;if(void 0===fr){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="= \f\n\r\t \u2028\u2029";for(fr=Object.create(null),t=0;t<64;++t)fr[n.charAt(t)]=t;for(fr["-"]=62,fr["_"]=63,t=0;t<i.length;++t)fr[i.charAt(t)]=-1}var r=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=fr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=4?(r[r.length]=o>>16,r[r.length]=o>>8&255,r[r.length]=255&o,o=0,a=0):o<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=o>>10;break;case 3:r[r.length]=o>>16,r[r.length]=o>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=gr.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return gr.decode(e)}},vr=1e13,yr=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,i,r=this.buf,o=r.length;for(n=0;n<o;++n)i=r[n]*e+t,i<vr?t=0:(t=0|i/vr,i-=t*vr),r[n]=i;t>0&&(r[n]=t)},e.prototype.sub=function(e){var t,n,i=this.buf,r=i.length;for(t=0;t<r;++t)n=i[t]-e,n<0?(n+=vr,e=1):e=0,i[t]=n;while(0===i[i.length-1])i.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),i=t.length-2;i>=0;--i)n+=(vr+t[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*vr+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),br="…",wr=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,_r=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Cr(e,t){return e.length>t&&(e=e.substring(0,t)+br),e}var xr,Sr=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"===typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var i="",r=e;r<t;++r)if(i+=this.hexByte(this.get(r)),!0!==n)switch(15&r){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",i=e;i<t;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",i=e;i<t;){var r=this.get(i++);n+=r<128?String.fromCharCode(r):r>191&&r<224?String.fromCharCode((31&r)<<6|63&this.get(i++)):String.fromCharCode((15&r)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,i,r="",o=e;o<t;)n=this.get(o++),i=this.get(o++),r+=String.fromCharCode(n<<8|i);return r},e.prototype.parseTime=function(e,t,n){var i=this.parseStringISO(e,t),r=(n?wr:_r).exec(i);return r?(n&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC","Z"!=r[8]&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(e,t){var n,i=this.get(e),r=i>127,o=r?255:0,a="";while(i==o&&++e<t)i=this.get(e);if(n=t-e,0===n)return r?-1:0;if(n>4){a=i,n<<=3;while(0==(128&(+a^o)))a=+a<<1,--n;a="("+n+" bit)\n"}r&&(i-=256);for(var s=new yr(i),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var i=this.get(e),r=(t-e-1<<3)-i,o="("+r+" bit)\n",a="",s=e+1;s<t;++s){for(var l=this.get(s),c=s==t-1?i:0,u=7;u>=c;--u)a+=l>>u&1?"1":"0";if(a.length>n)return o+Cr(a,n)}return o+a},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return Cr(this.parseStringISO(e,t),n);var i=t-e,r="("+i+" byte)\n";n/=2,i>n&&(t=e+n);for(var o=e;o<t;++o)r+=this.hexByte(this.get(o));return i>n&&(r+=br),r},e.prototype.parseOID=function(e,t,n){for(var i="",r=new yr,o=0,a=e;a<t;++a){var s=this.get(a);if(r.mulAdd(128,127&s),o+=7,!(128&s)){if(""===i)if(r=r.simplify(),r instanceof yr)r.sub(80),i="2."+r.toString();else{var l=r<80?r<40?0:1:2;i=l+"."+(r-40*l)}else i+="."+r.toString();if(i.length>n)return Cr(i,n);r=new yr,o=0}}return o>0&&(i+=".incomplete"),i},e}(),kr=function(){function e(e,t,n,i,r){if(!(i instanceof Er))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=r}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Cr(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return Cr(this.stream.parseStringISO(t,t+n),e);case 30:return Cr(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var i=0;i<n;++i)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof Sr?t:new Sr(t,0);var i=new Sr(n),r=new Er(n),o=e.decodeLength(n),a=n.pos,s=a-i.pos,l=null,c=function(){var t=[];if(null!==o){var i=a+o;while(n.pos<i)t[t.length]=e.decode(n);if(n.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var r=e.decode(n);if(r.tag.isEOC())break;t[t.length]=r}o=a-n.pos}catch(oh){throw new Error("Exception while decoding undefined length content: "+oh)}return t};if(r.tagConstructed)l=c();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(oh){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(i,s,o,r,l)},e}(),Er=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!==(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new yr;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Dr=0xdeadbeefcafe,Ar=15715070==(16777215&Dr),Or=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Tr=(1<<26)/Or[Or.length-1],Ir=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,i=(1<<t)-1,r=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0){s<this.DB&&(n=this[a]>>s)>0&&(r=!0,o=nr(n));while(a>=0)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&i,s<=0&&(s+=this.DB,--a)),n>0&&(r=!0),r&&(o+=nr(n))}return r?o:"0"},e.prototype.negate=function(){var t=Nr();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Wr(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=Nr();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new Fr(t):new $r(t),this.exp(e,n)},e.prototype.clone=function(){var e=Nr();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,i=this.DB-e*this.DB%8,r=0;if(e-- >0){i<this.DB&&(n=this[e]>>i)!=(this.s&this.DM)>>i&&(t[r++]=n|this.s<<this.DB-i);while(e>=0)i<8?(n=(this[e]&(1<<i)-1)<<8-i,n|=this[--e]>>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(t[r++]=n)}return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Nr();return this.bitwiseTo(e,ir,t),t},e.prototype.or=function(e){var t=Nr();return this.bitwiseTo(e,rr,t),t},e.prototype.xor=function(e){var t=Nr();return this.bitwiseTo(e,or,t),t},e.prototype.andNot=function(e){var t=Nr();return this.bitwiseTo(e,ar,t),t},e.prototype.not=function(){for(var e=Nr(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Nr();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Nr();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+sr(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=lr(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,rr)},e.prototype.clearBit=function(e){return this.changeBit(e,ar)},e.prototype.flipBit=function(e){return this.changeBit(e,or)},e.prototype.add=function(e){var t=Nr();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Nr();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Nr();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Nr();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Nr();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Nr(),n=Nr();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,i,r=e.bitLength(),o=Ur(1);if(r<=0)return o;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new Fr(t):t.isEven()?new Br(t):new $r(t);var a=[],s=3,l=n-1,c=(1<<n)-1;if(a[1]=i.convert(this),n>1){var u=Nr();i.sqrTo(a[1],u);while(s<=c)a[s]=Nr(),i.mulTo(u,a[s-2],a[s]),s+=2}var d,h,p=e.t-1,f=!0,m=Nr();r=Wr(e[p])-1;while(p>=0){r>=l?d=e[p]>>r-l&c:(d=(e[p]&(1<<r+1)-1)<<l-r,p>0&&(d|=e[p-1]>>this.DB+r-l)),s=n;while(0==(1&d))d>>=1,--s;if((r-=s)<0&&(r+=this.DB,--p),f)a[d].copyTo(o),f=!1;else{while(s>1)i.sqrTo(o,m),i.sqrTo(m,o),s-=2;s>0?i.sqrTo(o,m):(h=o,o=m,m=h),i.mulTo(m,a[d],o)}while(p>=0&&0==(e[p]&1<<r))i.sqrTo(o,m),h=o,o=m,m=h,--r<0&&(r=this.DB-1,--p)}return i.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;var i=t.clone(),r=this.clone(),o=Ur(1),a=Ur(0),s=Ur(0),l=Ur(1);while(0!=i.signum()){while(i.isEven())i.rShiftTo(1,i),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);while(r.isEven())r.rShiftTo(1,r),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);i.compareTo(r)>=0?(i.subTo(r,i),n&&o.subTo(s,o),a.subTo(l,a)):(r.subTo(i,r),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=r.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new Pr)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var r=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;r<o&&(o=r),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));while(t.signum()>0)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=Or[Or.length-1]){for(t=0;t<Or.length;++t)if(n[0]==Or[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<Or.length){var i=Or[t],r=t+1;while(r<Or.length&&i<Tr)i*=Or[r++];i=n.modInt(i);while(t<r)if(i%Or[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(t,n);i=2}this.t=0,this.s=0;var r=t.length,o=!1,a=0;while(--r>=0){var s=8==i?255&+t[r]:Hr(t,r);s<0?"-"==t.charAt(r)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+i>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,a+=i,a>=this.DB&&(a-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,i=this.DB-n,r=(1<<i)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>i|a,a=(this[s]&r)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,r=this.DB-i,o=(1<<i)-1;t[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<r,t[a-n]=this[a]>>i;i>0&&(t[this.t-n-1]|=(this.s&o)<<r),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){var n=0,i=0,r=Math.min(e.t,this.t);while(n<r)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){i-=e.s;while(n<this.t)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<e.t)i-=e[n],t[n++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var i=this.abs(),r=t.abs(),o=i.t;n.t=o+r.t;while(--o>=0)n[o]=0;for(o=0;o<r.t;++o)n[o+i.t]=i.am(0,r[o],n,o,0,i.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,i){var r=t.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=n&&n.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=Nr());var a=Nr(),s=this.s,l=t.s,c=this.DB-Wr(r[r.t-1]);c>0?(r.lShiftTo(c,a),o.lShiftTo(c,i)):(r.copyTo(a),o.copyTo(i));var u=a.t,d=a[u-1];if(0!=d){var h=d*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),p=this.FV/h,f=(1<<this.F1)/h,m=1<<this.F2,g=i.t,v=g-u,y=null==n?Nr():n;a.dlShiftTo(v,y),i.compareTo(y)>=0&&(i[i.t++]=1,i.subTo(y,i)),e.ONE.dlShiftTo(u,y),y.subTo(a,a);while(a.t<u)a[a.t++]=0;while(--v>=0){var b=i[--g]==d?this.DM:Math.floor(i[g]*p+(i[g-1]+m)*f);if((i[g]+=a.am(0,b,i,v,0,u))<b){a.dlShiftTo(v,y),i.subTo(y,i);while(i[g]<--b)i.subTo(y,i)}}null!=n&&(i.drShiftTo(u,n),s!=l&&e.ZERO.subTo(n,n)),i.t=u,i.clamp(),c>0&&i.rShiftTo(c,i),s<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var i=Nr(),r=Nr(),o=n.convert(this),a=Wr(t)-1;o.copyTo(i);while(--a>=0)if(n.sqrTo(i,r),(t&1<<a)>0)n.mulTo(r,o,i);else{var s=i;i=r,r=s}return n.revert(i)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=Ur(n),r=Nr(),o=Nr(),a="";this.divRemTo(i,r,o);while(r.signum()>0)a=(n+o.intValue()).toString(e).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),r=Math.pow(n,i),o=!1,a=0,s=0,l=0;l<t.length;++l){var c=Hr(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=i&&(this.dMultiply(r),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),rr,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}else{var r=[],o=7&t;r.length=1+(t>>3),n.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(e,t,n){var i,r,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=t(this[i],e[i]);if(e.t<this.t){for(r=e.s&this.DM,i=o;i<this.t;++i)n[i]=t(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=o;i<e.t;++i)n[i]=t(r,e[i]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var i=e.ONE.shiftLeft(t);return this.bitwiseTo(i,n,i),i},e.prototype.addTo=function(e,t){var n=0,i=0,r=Math.min(e.t,this.t);while(n<r)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){i+=e.s;while(n<this.t)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<e.t)i+=e[n],t[n++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);n.s=0,n.t=i;while(i>0)n[--i]=0;for(var r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var i=n.t=this.t+e.t-t;n.s=0;while(--i>=0)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var r=n.shiftRight(i);t=t+1>>1,t>Or.length&&(t=Or.length);for(var o=Nr(),a=0;a<t;++a){o.fromInt(Or[Math.floor(Math.random()*Or.length)]);var s=o.modPow(r,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){var l=1;while(l++<i&&0!=s.compareTo(n))if(s=s.modPowInt(2,this),0==s.compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=Nr();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(s,0):(a>0&&i.lShiftTo(a,i),setTimeout((function(){t(i)}),0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,i,r){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),rr,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){r()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),Pr=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Fr=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),$r=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=Nr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Ir.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Nr();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],i=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,i,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Br=function(){function e(e){this.m=e,this.r2=Nr(),this.q3=Nr(),Ir.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Nr();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Nr(){return new Ir(null)}function Mr(e,t){return new Ir(e,t)}var Rr="undefined"!==typeof navigator;Rr&&Ar&&"Microsoft Internet Explorer"==navigator.appName?(Ir.prototype.am=function(e,t,n,i,r,o){var a=32767&t,s=t>>15;while(--o>=0){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;l=a*l+((32767&u)<<15)+n[i]+(1073741823&r),r=(l>>>30)+(u>>>15)+s*c+(r>>>30),n[i++]=1073741823&l}return r},xr=30):Rr&&Ar&&"Netscape"!=navigator.appName?(Ir.prototype.am=function(e,t,n,i,r,o){while(--o>=0){var a=t*this[e++]+n[i]+r;r=Math.floor(a/67108864),n[i++]=67108863&a}return r},xr=26):(Ir.prototype.am=function(e,t,n,i,r,o){var a=16383&t,s=t>>14;while(--o>=0){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;l=a*l+((16383&u)<<14)+n[i]+r,r=(l>>28)+(u>>14)+s*c,n[i++]=268435455&l}return r},xr=28),Ir.prototype.DB=xr,Ir.prototype.DM=(1<<xr)-1,Ir.prototype.DV=1<<xr;var jr=52;Ir.prototype.FV=Math.pow(2,jr),Ir.prototype.F1=jr-xr,Ir.prototype.F2=2*xr-jr;var Lr,zr,Vr=[];for(Lr="0".charCodeAt(0),zr=0;zr<=9;++zr)Vr[Lr++]=zr;for(Lr="a".charCodeAt(0),zr=10;zr<36;++zr)Vr[Lr++]=zr;for(Lr="A".charCodeAt(0),zr=10;zr<36;++zr)Vr[Lr++]=zr;function Hr(e,t){var n=Vr[e.charCodeAt(t)];return null==n?-1:n}function Ur(e){var t=Nr();return t.fromInt(e),t}function Wr(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}Ir.ZERO=Ur(0),Ir.ONE=Ur(1);var qr=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();function Yr(){return new qr}var Gr,Kr,Xr=256,Zr=null;if(null==Zr){Zr=[],Kr=0;var Jr=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var Qr=new Uint32Array(256);for(window.crypto.getRandomValues(Qr),Jr=0;Jr<Qr.length;++Jr)Zr[Kr++]=255&Qr[Jr]}var eo=0,to=function(e){if(eo=eo||0,eo>=256||Kr>=Xr)window.removeEventListener?window.removeEventListener("mousemove",to,!1):window.detachEvent&&window.detachEvent("onmousemove",to);else try{var t=e.x+e.y;Zr[Kr++]=255&t,eo+=1}catch(oh){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",to,!1):window.attachEvent&&window.attachEvent("onmousemove",to))}function no(){if(null==Gr){Gr=Yr();while(Kr<Xr){var e=Math.floor(65536*Math.random());Zr[Kr++]=255&e}for(Gr.init(Zr),Kr=0;Kr<Zr.length;++Kr)Zr[Kr]=0;Kr=0}return Gr.next()}var io=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=no()},e}();function ro(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,i="",r=0;r<n;r+=2)i+="ff";var o="0001"+i+"00"+e;return Mr(o,16)}function oo(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;var n=[],i=e.length-1;while(i>=0&&t>0){var r=e.charCodeAt(i--);r<128?n[--t]=r:r>127&&r<2048?(n[--t]=63&r|128,n[--t]=r>>6|192):(n[--t]=63&r|128,n[--t]=r>>6&63|128,n[--t]=r>>12|224)}n[--t]=0;var o=new io,a=[];while(t>2){a[0]=0;while(0==a[0])o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new Ir(n)}var ao=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Mr(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=oo(e,t);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var r=i.toString(16),o=r.length,a=0;a<2*t-o;a++)r="0"+r;return r},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Mr(e,16),this.e=parseInt(t,16),this.d=Mr(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,i,r,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Mr(e,16),this.e=parseInt(t,16),this.d=Mr(n,16),this.p=Mr(i,16),this.q=Mr(r,16),this.dmp1=Mr(o,16),this.dmq1=Mr(a,16),this.coeff=Mr(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new io,i=e>>1;this.e=parseInt(t,16);for(var r=new Ir(t,16);;){for(;;)if(this.p=new Ir(e-i,1,n),0==this.p.subtract(Ir.ONE).gcd(r).compareTo(Ir.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new Ir(i,1,n),0==this.q.subtract(Ir.ONE).gcd(r).compareTo(Ir.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(Ir.ONE),s=this.q.subtract(Ir.ONE),l=a.multiply(s);if(0==l.gcd(r).compareTo(Ir.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=Mr(e,16),n=this.doPrivate(t);return null==n?null:so(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var i=new io,r=e>>1;this.e=parseInt(t,16);var o=new Ir(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(Ir.ONE),i=a.q.subtract(Ir.ONE),r=t.multiply(i);0==r.gcd(o).compareTo(Ir.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(r),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(i),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=Nr(),a.q.fromNumberAsync(r,1,i,(function(){a.q.subtract(Ir.ONE).gcda(o,(function(e){0==e.compareTo(Ir.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){a.p=Nr(),a.p.fromNumberAsync(e-r,1,i,(function(){a.p.subtract(Ir.ONE).gcda(o,(function(e){0==e.compareTo(Ir.ONE)&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var i=co(n),r=i+t(e).toString(),o=ro(r,this.n.bitLength()/4);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;var s=a.toString(16);return 0==(1&s.length)?s:"0"+s},e.prototype.verify=function(e,t,n){var i=Mr(t,16),r=this.doPublic(i);if(null==r)return null;var o=r.toString(16).replace(/^1f+00/,""),a=uo(o);return a==n(e).toString()},e}();function so(e,t){var n=e.toByteArray(),i=0;while(i<n.length&&0==n[i])++i;if(n.length-i!=t-1||2!=n[i])return null;++i;while(0!=n[i])if(++i>=n.length)return null;var r="";while(++i<n.length){var o=255&n[i];o<128?r+=String.fromCharCode(o):o>191&&o<224?(r+=String.fromCharCode((31&o)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&o)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}var lo={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function co(e){return lo[e]||""}function uo(e){for(var t in lo)if(lo.hasOwnProperty(t)){var n=lo[t],i=n.length;if(e.substr(0,i)==n)return e.substr(i)}return e}
67
+ function Hi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var Ui={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Wi(e,t){function n(n,i,r){if("undefined"!==typeof document){r=Hi({},t,r),"number"===typeof r.expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in r)r[a]&&(o+="; "+a,!0!==r[a]&&(o+="="+r[a].split(";")[0]));return document.cookie=n+"="+e.write(i,n)+o}}function i(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var o=n[r].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(i[s]=e.read(a,s),t===s)break}catch(oh){}}return t?i[t]:i}}return Object.create({set:n,get:i,remove:function(e,t){n(e,"",Hi({},t,{expires:-1}))},withAttributes:function(e){return Wi(this.converter,Hi({},this.attributes,e))},withConverter:function(e){return Wi(Hi({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var qi=Wi(Ui,{path:"/"});const Yi="userToken";function Gi(){return qi.get(Yi)}function Ki(e){return qi.set(Yi,e)}i(6153);var Xi=ClientMonitor;function Zi(e){"dev"!=={NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_ENV&&Xi.reportFrameErrors({service:"wotohubService",serviceVersion:"10.1.0",traceSDKInternal:!0,pagePath:location.href,useFmp:!0,collector:location.origin,jsErrors:!0,apiErrors:!0,resourceErrors:!0,autoTracePerf:!0,enableSPA:!0,detailMode:!0,noTraceOrigins:[],traceTimeInterval:6e4,vue:Yn()},e)}"dev"!=={NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_ENV&&Xi.register({service:"wotohubService",serviceVersion:"10.1.0",traceSDKInternal:!0,pagePath:location.href,useFmp:!0,collector:location.origin,jsErrors:!0,apiErrors:!0,resourceErrors:!0,autoTracePerf:!0,enableSPA:!0,detailMode:!0,noTraceOrigins:[],vue:Yn()});const Ji=Sn.create({baseURL:"https://dss-apis.kuku.info"});Ji.interceptors.request.use((e=>{if(e.data)for(const t in e.data)er(e.data[t])&&delete e.data[t];if(e.params)for(const t in e.params)er(e.params[t])&&delete e.params[t];return Vi.getters.token&&(e.headers["Authorization"]="Bearer "+Gi()),e}),(e=>Promise.reject(e))),Ji.interceptors.response.use((e=>{const t=e.data;try{if("object"===typeof e.data&&e.data.hasOwnProperty("code")&&0!=e.data.code){const t=JSON.parse(localStorage.getItem("user_info")||"{}"),n=t.user_id?t.user_id+"_":"";throw new Error(n+e.request.responseURL+e.request.responseText||e.data.code)}}catch(cl){console.error("An error occurred:",cl),Zi(cl)}return Promise.resolve(t)}),(e=>(100003===e.response.data.code?(0,Wn.Message)({message:e.response.data.message,type:"error",duration:5e3}):(0,Wn.Message)({message:e.response.data.message?e.response.data.message:"网络错误,请稍后再试~",type:"error",duration:5e3}),Promise.reject(e))));var Qi=Ji;function er(e){return"undefined"===typeof e||null===e||""===e}var tr="0123456789abcdefghijklmnopqrstuvwxyz";function nr(e){return tr.charAt(e)}function ir(e,t){return e&t}function rr(e,t){return e|t}function or(e,t){return e^t}function ar(e,t){return e&~t}function sr(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function lr(e){var t=0;while(0!=e)e&=e-1,++t;return t}var cr,ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dr="=";function hr(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=ur.charAt(n>>6)+ur.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=ur.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=ur.charAt(n>>2)+ur.charAt((3&n)<<4));while((3&i.length)>0)i+=dr;return i}function pr(e){var t,n="",i=0,r=0;for(t=0;t<e.length;++t){if(e.charAt(t)==dr)break;var o=ur.indexOf(e.charAt(t));o<0||(0==i?(n+=nr(o>>2),r=3&o,i=1):1==i?(n+=nr(r<<2|o>>4),r=15&o,i=2):2==i?(n+=nr(r),n+=nr(o>>2),r=3&o,i=3):(n+=nr(r<<2|o>>4),n+=nr(15&o),i=0))}return 1==i&&(n+=nr(r<<2)),n}var fr,mr={decode:function(e){var t;if(void 0===cr){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(cr={},t=0;t<16;++t)cr[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)cr[n.charAt(t)]=t;for(t=0;t<i.length;++t)cr[i.charAt(t)]=-1}var r=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=cr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=2?(r[r.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},gr={decode:function(e){var t;if(void 0===fr){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="= \f\n\r\t \u2028\u2029";for(fr=Object.create(null),t=0;t<64;++t)fr[n.charAt(t)]=t;for(fr["-"]=62,fr["_"]=63,t=0;t<i.length;++t)fr[i.charAt(t)]=-1}var r=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=fr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=4?(r[r.length]=o>>16,r[r.length]=o>>8&255,r[r.length]=255&o,o=0,a=0):o<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=o>>10;break;case 3:r[r.length]=o>>16,r[r.length]=o>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=gr.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return gr.decode(e)}},vr=1e13,yr=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,i,r=this.buf,o=r.length;for(n=0;n<o;++n)i=r[n]*e+t,i<vr?t=0:(t=0|i/vr,i-=t*vr),r[n]=i;t>0&&(r[n]=t)},e.prototype.sub=function(e){var t,n,i=this.buf,r=i.length;for(t=0;t<r;++t)n=i[t]-e,n<0?(n+=vr,e=1):e=0,i[t]=n;while(0===i[i.length-1])i.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),i=t.length-2;i>=0;--i)n+=(vr+t[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*vr+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),br="…",wr=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,_r=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Cr(e,t){return e.length>t&&(e=e.substring(0,t)+br),e}var xr,Sr=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"===typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var i="",r=e;r<t;++r)if(i+=this.hexByte(this.get(r)),!0!==n)switch(15&r){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",i=e;i<t;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",i=e;i<t;){var r=this.get(i++);n+=r<128?String.fromCharCode(r):r>191&&r<224?String.fromCharCode((31&r)<<6|63&this.get(i++)):String.fromCharCode((15&r)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,i,r="",o=e;o<t;)n=this.get(o++),i=this.get(o++),r+=String.fromCharCode(n<<8|i);return r},e.prototype.parseTime=function(e,t,n){var i=this.parseStringISO(e,t),r=(n?wr:_r).exec(i);return r?(n&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC","Z"!=r[8]&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(e,t){var n,i=this.get(e),r=i>127,o=r?255:0,a="";while(i==o&&++e<t)i=this.get(e);if(n=t-e,0===n)return r?-1:0;if(n>4){a=i,n<<=3;while(0==(128&(+a^o)))a=+a<<1,--n;a="("+n+" bit)\n"}r&&(i-=256);for(var s=new yr(i),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var i=this.get(e),r=(t-e-1<<3)-i,o="("+r+" bit)\n",a="",s=e+1;s<t;++s){for(var l=this.get(s),c=s==t-1?i:0,u=7;u>=c;--u)a+=l>>u&1?"1":"0";if(a.length>n)return o+Cr(a,n)}return o+a},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return Cr(this.parseStringISO(e,t),n);var i=t-e,r="("+i+" byte)\n";n/=2,i>n&&(t=e+n);for(var o=e;o<t;++o)r+=this.hexByte(this.get(o));return i>n&&(r+=br),r},e.prototype.parseOID=function(e,t,n){for(var i="",r=new yr,o=0,a=e;a<t;++a){var s=this.get(a);if(r.mulAdd(128,127&s),o+=7,!(128&s)){if(""===i)if(r=r.simplify(),r instanceof yr)r.sub(80),i="2."+r.toString();else{var l=r<80?r<40?0:1:2;i=l+"."+(r-40*l)}else i+="."+r.toString();if(i.length>n)return Cr(i,n);r=new yr,o=0}}return o>0&&(i+=".incomplete"),i},e}(),kr=function(){function e(e,t,n,i,r){if(!(i instanceof Er))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=r}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Cr(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return Cr(this.stream.parseStringISO(t,t+n),e);case 30:return Cr(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var i=0;i<n;++i)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof Sr?t:new Sr(t,0);var i=new Sr(n),r=new Er(n),o=e.decodeLength(n),a=n.pos,s=a-i.pos,l=null,c=function(){var t=[];if(null!==o){var i=a+o;while(n.pos<i)t[t.length]=e.decode(n);if(n.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var r=e.decode(n);if(r.tag.isEOC())break;t[t.length]=r}o=a-n.pos}catch(oh){throw new Error("Exception while decoding undefined length content: "+oh)}return t};if(r.tagConstructed)l=c();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(oh){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(i,s,o,r,l)},e}(),Er=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!==(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new yr;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Dr=0xdeadbeefcafe,Ar=15715070==(16777215&Dr),Or=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Tr=(1<<26)/Or[Or.length-1],Ir=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,i=(1<<t)-1,r=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0){s<this.DB&&(n=this[a]>>s)>0&&(r=!0,o=nr(n));while(a>=0)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&i,s<=0&&(s+=this.DB,--a)),n>0&&(r=!0),r&&(o+=nr(n))}return r?o:"0"},e.prototype.negate=function(){var t=Nr();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Wr(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=Nr();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new Fr(t):new $r(t),this.exp(e,n)},e.prototype.clone=function(){var e=Nr();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,i=this.DB-e*this.DB%8,r=0;if(e-- >0){i<this.DB&&(n=this[e]>>i)!=(this.s&this.DM)>>i&&(t[r++]=n|this.s<<this.DB-i);while(e>=0)i<8?(n=(this[e]&(1<<i)-1)<<8-i,n|=this[--e]>>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(t[r++]=n)}return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Nr();return this.bitwiseTo(e,ir,t),t},e.prototype.or=function(e){var t=Nr();return this.bitwiseTo(e,rr,t),t},e.prototype.xor=function(e){var t=Nr();return this.bitwiseTo(e,or,t),t},e.prototype.andNot=function(e){var t=Nr();return this.bitwiseTo(e,ar,t),t},e.prototype.not=function(){for(var e=Nr(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Nr();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Nr();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+sr(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=lr(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,rr)},e.prototype.clearBit=function(e){return this.changeBit(e,ar)},e.prototype.flipBit=function(e){return this.changeBit(e,or)},e.prototype.add=function(e){var t=Nr();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Nr();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Nr();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Nr();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Nr();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Nr(),n=Nr();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,i,r=e.bitLength(),o=Ur(1);if(r<=0)return o;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new Fr(t):t.isEven()?new Br(t):new $r(t);var a=[],s=3,l=n-1,c=(1<<n)-1;if(a[1]=i.convert(this),n>1){var u=Nr();i.sqrTo(a[1],u);while(s<=c)a[s]=Nr(),i.mulTo(u,a[s-2],a[s]),s+=2}var d,h,p=e.t-1,f=!0,m=Nr();r=Wr(e[p])-1;while(p>=0){r>=l?d=e[p]>>r-l&c:(d=(e[p]&(1<<r+1)-1)<<l-r,p>0&&(d|=e[p-1]>>this.DB+r-l)),s=n;while(0==(1&d))d>>=1,--s;if((r-=s)<0&&(r+=this.DB,--p),f)a[d].copyTo(o),f=!1;else{while(s>1)i.sqrTo(o,m),i.sqrTo(m,o),s-=2;s>0?i.sqrTo(o,m):(h=o,o=m,m=h),i.mulTo(m,a[d],o)}while(p>=0&&0==(e[p]&1<<r))i.sqrTo(o,m),h=o,o=m,m=h,--r<0&&(r=this.DB-1,--p)}return i.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;var i=t.clone(),r=this.clone(),o=Ur(1),a=Ur(0),s=Ur(0),l=Ur(1);while(0!=i.signum()){while(i.isEven())i.rShiftTo(1,i),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);while(r.isEven())r.rShiftTo(1,r),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);i.compareTo(r)>=0?(i.subTo(r,i),n&&o.subTo(s,o),a.subTo(l,a)):(r.subTo(i,r),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=r.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new Pr)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var r=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;r<o&&(o=r),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));while(t.signum()>0)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=Or[Or.length-1]){for(t=0;t<Or.length;++t)if(n[0]==Or[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<Or.length){var i=Or[t],r=t+1;while(r<Or.length&&i<Tr)i*=Or[r++];i=n.modInt(i);while(t<r)if(i%Or[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(t,n);i=2}this.t=0,this.s=0;var r=t.length,o=!1,a=0;while(--r>=0){var s=8==i?255&+t[r]:Hr(t,r);s<0?"-"==t.charAt(r)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+i>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,a+=i,a>=this.DB&&(a-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,i=this.DB-n,r=(1<<i)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>i|a,a=(this[s]&r)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,r=this.DB-i,o=(1<<i)-1;t[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<r,t[a-n]=this[a]>>i;i>0&&(t[this.t-n-1]|=(this.s&o)<<r),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){var n=0,i=0,r=Math.min(e.t,this.t);while(n<r)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){i-=e.s;while(n<this.t)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<e.t)i-=e[n],t[n++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var i=this.abs(),r=t.abs(),o=i.t;n.t=o+r.t;while(--o>=0)n[o]=0;for(o=0;o<r.t;++o)n[o+i.t]=i.am(0,r[o],n,o,0,i.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,i){var r=t.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=n&&n.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=Nr());var a=Nr(),s=this.s,l=t.s,c=this.DB-Wr(r[r.t-1]);c>0?(r.lShiftTo(c,a),o.lShiftTo(c,i)):(r.copyTo(a),o.copyTo(i));var u=a.t,d=a[u-1];if(0!=d){var h=d*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),p=this.FV/h,f=(1<<this.F1)/h,m=1<<this.F2,g=i.t,v=g-u,y=null==n?Nr():n;a.dlShiftTo(v,y),i.compareTo(y)>=0&&(i[i.t++]=1,i.subTo(y,i)),e.ONE.dlShiftTo(u,y),y.subTo(a,a);while(a.t<u)a[a.t++]=0;while(--v>=0){var b=i[--g]==d?this.DM:Math.floor(i[g]*p+(i[g-1]+m)*f);if((i[g]+=a.am(0,b,i,v,0,u))<b){a.dlShiftTo(v,y),i.subTo(y,i);while(i[g]<--b)i.subTo(y,i)}}null!=n&&(i.drShiftTo(u,n),s!=l&&e.ZERO.subTo(n,n)),i.t=u,i.clamp(),c>0&&i.rShiftTo(c,i),s<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var i=Nr(),r=Nr(),o=n.convert(this),a=Wr(t)-1;o.copyTo(i);while(--a>=0)if(n.sqrTo(i,r),(t&1<<a)>0)n.mulTo(r,o,i);else{var s=i;i=r,r=s}return n.revert(i)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=Ur(n),r=Nr(),o=Nr(),a="";this.divRemTo(i,r,o);while(r.signum()>0)a=(n+o.intValue()).toString(e).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),r=Math.pow(n,i),o=!1,a=0,s=0,l=0;l<t.length;++l){var c=Hr(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=i&&(this.dMultiply(r),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),rr,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}else{var r=[],o=7&t;r.length=1+(t>>3),n.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(e,t,n){var i,r,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=t(this[i],e[i]);if(e.t<this.t){for(r=e.s&this.DM,i=o;i<this.t;++i)n[i]=t(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=o;i<e.t;++i)n[i]=t(r,e[i]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var i=e.ONE.shiftLeft(t);return this.bitwiseTo(i,n,i),i},e.prototype.addTo=function(e,t){var n=0,i=0,r=Math.min(e.t,this.t);while(n<r)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){i+=e.s;while(n<this.t)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<e.t)i+=e[n],t[n++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);n.s=0,n.t=i;while(i>0)n[--i]=0;for(var r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var i=n.t=this.t+e.t-t;n.s=0;while(--i>=0)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var r=n.shiftRight(i);t=t+1>>1,t>Or.length&&(t=Or.length);for(var o=Nr(),a=0;a<t;++a){o.fromInt(Or[Math.floor(Math.random()*Or.length)]);var s=o.modPow(r,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){var l=1;while(l++<i&&0!=s.compareTo(n))if(s=s.modPowInt(2,this),0==s.compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=Nr();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(s,0):(a>0&&i.lShiftTo(a,i),setTimeout((function(){t(i)}),0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,i,r){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),rr,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){r()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),Pr=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Fr=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),$r=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=Nr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Ir.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Nr();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],i=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,i,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Br=function(){function e(e){this.m=e,this.r2=Nr(),this.q3=Nr(),Ir.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Nr();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Nr(){return new Ir(null)}function Mr(e,t){return new Ir(e,t)}var Rr="undefined"!==typeof navigator;Rr&&Ar&&"Microsoft Internet Explorer"==navigator.appName?(Ir.prototype.am=function(e,t,n,i,r,o){var a=32767&t,s=t>>15;while(--o>=0){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;l=a*l+((32767&u)<<15)+n[i]+(1073741823&r),r=(l>>>30)+(u>>>15)+s*c+(r>>>30),n[i++]=1073741823&l}return r},xr=30):Rr&&Ar&&"Netscape"!=navigator.appName?(Ir.prototype.am=function(e,t,n,i,r,o){while(--o>=0){var a=t*this[e++]+n[i]+r;r=Math.floor(a/67108864),n[i++]=67108863&a}return r},xr=26):(Ir.prototype.am=function(e,t,n,i,r,o){var a=16383&t,s=t>>14;while(--o>=0){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;l=a*l+((16383&u)<<14)+n[i]+r,r=(l>>28)+(u>>14)+s*c,n[i++]=268435455&l}return r},xr=28),Ir.prototype.DB=xr,Ir.prototype.DM=(1<<xr)-1,Ir.prototype.DV=1<<xr;var jr=52;Ir.prototype.FV=Math.pow(2,jr),Ir.prototype.F1=jr-xr,Ir.prototype.F2=2*xr-jr;var Lr,zr,Vr=[];for(Lr="0".charCodeAt(0),zr=0;zr<=9;++zr)Vr[Lr++]=zr;for(Lr="a".charCodeAt(0),zr=10;zr<36;++zr)Vr[Lr++]=zr;for(Lr="A".charCodeAt(0),zr=10;zr<36;++zr)Vr[Lr++]=zr;function Hr(e,t){var n=Vr[e.charCodeAt(t)];return null==n?-1:n}function Ur(e){var t=Nr();return t.fromInt(e),t}function Wr(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}Ir.ZERO=Ur(0),Ir.ONE=Ur(1);var qr=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();function Yr(){return new qr}var Gr,Kr,Xr=256,Zr=null;if(null==Zr){Zr=[],Kr=0;var Jr=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var Qr=new Uint32Array(256);for(window.crypto.getRandomValues(Qr),Jr=0;Jr<Qr.length;++Jr)Zr[Kr++]=255&Qr[Jr]}var eo=0,to=function(e){if(eo=eo||0,eo>=256||Kr>=Xr)window.removeEventListener?window.removeEventListener("mousemove",to,!1):window.detachEvent&&window.detachEvent("onmousemove",to);else try{var t=e.x+e.y;Zr[Kr++]=255&t,eo+=1}catch(oh){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",to,!1):window.attachEvent&&window.attachEvent("onmousemove",to))}function no(){if(null==Gr){Gr=Yr();while(Kr<Xr){var e=Math.floor(65536*Math.random());Zr[Kr++]=255&e}for(Gr.init(Zr),Kr=0;Kr<Zr.length;++Kr)Zr[Kr]=0;Kr=0}return Gr.next()}var io=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=no()},e}();function ro(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,i="",r=0;r<n;r+=2)i+="ff";var o="0001"+i+"00"+e;return Mr(o,16)}function oo(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;var n=[],i=e.length-1;while(i>=0&&t>0){var r=e.charCodeAt(i--);r<128?n[--t]=r:r>127&&r<2048?(n[--t]=63&r|128,n[--t]=r>>6|192):(n[--t]=63&r|128,n[--t]=r>>6&63|128,n[--t]=r>>12|224)}n[--t]=0;var o=new io,a=[];while(t>2){a[0]=0;while(0==a[0])o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new Ir(n)}var ao=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Mr(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=oo(e,t);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var r=i.toString(16),o=r.length,a=0;a<2*t-o;a++)r="0"+r;return r},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Mr(e,16),this.e=parseInt(t,16),this.d=Mr(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,i,r,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Mr(e,16),this.e=parseInt(t,16),this.d=Mr(n,16),this.p=Mr(i,16),this.q=Mr(r,16),this.dmp1=Mr(o,16),this.dmq1=Mr(a,16),this.coeff=Mr(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new io,i=e>>1;this.e=parseInt(t,16);for(var r=new Ir(t,16);;){for(;;)if(this.p=new Ir(e-i,1,n),0==this.p.subtract(Ir.ONE).gcd(r).compareTo(Ir.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new Ir(i,1,n),0==this.q.subtract(Ir.ONE).gcd(r).compareTo(Ir.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(Ir.ONE),s=this.q.subtract(Ir.ONE),l=a.multiply(s);if(0==l.gcd(r).compareTo(Ir.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=Mr(e,16),n=this.doPrivate(t);return null==n?null:so(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var i=new io,r=e>>1;this.e=parseInt(t,16);var o=new Ir(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(Ir.ONE),i=a.q.subtract(Ir.ONE),r=t.multiply(i);0==r.gcd(o).compareTo(Ir.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(r),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(i),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=Nr(),a.q.fromNumberAsync(r,1,i,(function(){a.q.subtract(Ir.ONE).gcda(o,(function(e){0==e.compareTo(Ir.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){a.p=Nr(),a.p.fromNumberAsync(e-r,1,i,(function(){a.p.subtract(Ir.ONE).gcda(o,(function(e){0==e.compareTo(Ir.ONE)&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var i=co(n),r=i+t(e).toString(),o=ro(r,this.n.bitLength()/4);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;var s=a.toString(16);return 0==(1&s.length)?s:"0"+s},e.prototype.verify=function(e,t,n){var i=Mr(t,16),r=this.doPublic(i);if(null==r)return null;var o=r.toString(16).replace(/^1f+00/,""),a=uo(o);return a==n(e).toString()},e}();function so(e,t){var n=e.toByteArray(),i=0;while(i<n.length&&0==n[i])++i;if(n.length-i!=t-1||2!=n[i])return null;++i;while(0!=n[i])if(++i>=n.length)return null;var r="";while(++i<n.length){var o=255&n[i];o<128?r+=String.fromCharCode(o):o>191&&o<224?(r+=String.fromCharCode((31&o)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&o)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}var lo={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function co(e){return lo[e]||""}function uo(e){for(var t in lo)if(lo.hasOwnProperty(t)){var n=lo[t],i=n.length;if(e.substr(0,i)==n)return e.substr(i)}return e}
68
68
  /*!
69
69
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
70
70
  Code licensed under the BSD License:
Binary file