{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/assets/kinggrid/signature.all.min.js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/assets/kinggrid/signature.all.min.js","mtime":1725957645674},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/babel.config.js","mtime":1725957645200},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.array.fill\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.constructor\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.match\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.array.find\";\nimport \"core-js/modules/es6.string.fixed\";\nimport _typeof from \"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/@babel/runtime-corejs2/helpers/esm/typeof.js\";\nimport \"core-js/modules/es6.number.constructor\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.regexp.split\";\n/*\n artDialog v6.0.5 | https://github.com/aui/artDialog kgDialog*/\nvar $jscomp = $jscomp || {};\n$jscomp.scope = {};\n$jscomp.findInternal = function (a, b, c) {\n a instanceof String && (a = String(a));\n for (var d = a.length, e = 0; e < d; e++) {\n var f = a[e];\n if (b.call(c, f, e, a)) return {\n i: e,\n v: f\n };\n }\n return {\n i: -1,\n v: void 0\n };\n};\n$jscomp.ASSUME_ES5 = !1;\n$jscomp.ASSUME_NO_NATIVE_MAP = !1;\n$jscomp.ASSUME_NO_NATIVE_SET = !1;\n$jscomp.SIMPLE_FROUND_POLYFILL = !1;\n$jscomp.defineProperty = $jscomp.ASSUME_ES5 || \"function\" == typeof Object.defineProperties ? Object.defineProperty : function (a, b, c) {\n a != Array.prototype && a != Object.prototype && (a[b] = c.value);\n};\n$jscomp.getGlobal = function (a) {\n return \"undefined\" != typeof window && window === a ? a : \"undefined\" != typeof global && null != global ? global : a;\n};\n$jscomp.global = $jscomp.getGlobal(this);\n$jscomp.polyfill = function (a, b, c, d) {\n if (b) {\n c = $jscomp.global;\n a = a.split(\".\");\n for (d = 0; d < a.length - 1; d++) {\n var e = a[d];\n e in c || (c[e] = {});\n c = c[e];\n }\n a = a[a.length - 1];\n d = c[a];\n b = b(d);\n b != d && null != b && $jscomp.defineProperty(c, a, {\n configurable: !0,\n writable: !0,\n value: b\n });\n }\n};\n$jscomp.polyfill(\"Array.prototype.find\", function (a) {\n return a ? a : function (a, c) {\n return $jscomp.findInternal(this, a, c).v;\n };\n}, \"es6\", \"es3\");\n$jscomp.arrayIteratorImpl = function (a) {\n var b = 0;\n return function () {\n return b < a.length ? {\n done: !1,\n value: a[b++]\n } : {\n done: !0\n };\n };\n};\n$jscomp.arrayIterator = function (a) {\n return {\n next: $jscomp.arrayIteratorImpl(a)\n };\n};\n$jscomp.SYMBOL_PREFIX = \"jscomp_symbol_\";\n$jscomp.initSymbol = function () {\n $jscomp.initSymbol = function () {};\n $jscomp.global.Symbol || ($jscomp.global.Symbol = $jscomp.Symbol);\n};\n$jscomp.SymbolClass = function (a, b) {\n this.$jscomp$symbol$id_ = a;\n $jscomp.defineProperty(this, \"description\", {\n configurable: !0,\n writable: !0,\n value: b\n });\n};\n$jscomp.SymbolClass.prototype.toString = function () {\n return this.$jscomp$symbol$id_;\n};\n$jscomp.Symbol = function () {\n function a(c) {\n if (this instanceof a) throw new TypeError(\"Symbol is not a constructor\");\n return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX + (c || \"\") + \"_\" + b++, c);\n }\n var b = 0;\n return a;\n}();\n$jscomp.initSymbolIterator = function () {\n $jscomp.initSymbol();\n var a = $jscomp.global.Symbol.iterator;\n a || (a = $jscomp.global.Symbol.iterator = $jscomp.global.Symbol(\"Symbol.iterator\"));\n \"function\" != typeof Array.prototype[a] && $jscomp.defineProperty(Array.prototype, a, {\n configurable: !0,\n writable: !0,\n value: function value() {\n return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this));\n }\n });\n $jscomp.initSymbolIterator = function () {};\n};\n$jscomp.initSymbolAsyncIterator = function () {\n $jscomp.initSymbol();\n var a = $jscomp.global.Symbol.asyncIterator;\n a || (a = $jscomp.global.Symbol.asyncIterator = $jscomp.global.Symbol(\"Symbol.asyncIterator\"));\n $jscomp.initSymbolAsyncIterator = function () {};\n};\n$jscomp.iteratorPrototype = function (a) {\n $jscomp.initSymbolIterator();\n a = {\n next: a\n };\n a[$jscomp.global.Symbol.iterator] = function () {\n return this;\n };\n return a;\n};\n$jscomp.iteratorFromArray = function (a, b) {\n $jscomp.initSymbolIterator();\n a instanceof String && (a += \"\");\n var c = 0,\n d = {\n next: function next() {\n if (c < a.length) {\n var e = c++;\n return {\n value: b(e, a[e]),\n done: !1\n };\n }\n d.next = function () {\n return {\n done: !0,\n value: void 0\n };\n };\n return d.next();\n }\n };\n d[Symbol.iterator] = function () {\n return d;\n };\n return d;\n};\n$jscomp.polyfill(\"Array.prototype.values\", function (a) {\n return a ? a : function () {\n return $jscomp.iteratorFromArray(this, function (a, c) {\n return c;\n });\n };\n}, \"es8\", \"es3\");\n$jscomp.polyfill(\"Array.prototype.keys\", function (a) {\n return a ? a : function () {\n return $jscomp.iteratorFromArray(this, function (a) {\n return a;\n });\n };\n}, \"es6\", \"es3\");\n$jscomp.polyfill(\"Array.prototype.fill\", function (a) {\n return a ? a : function (a, c, d) {\n var b = this.length || 0;\n 0 > c && (c = Math.max(0, b + c));\n if (null == d || d > b) d = b;\n d = Number(d);\n 0 > d && (d = Math.max(0, b + d));\n for (c = Number(c || 0); c < d; c++) this[c] = a;\n return this;\n };\n}, \"es6\", \"es3\");\n!function () {\n function a(b) {\n b = c[b];\n return \"object\" == _typeof(b) ? b : (b.exports || (b.exports = {}, b.exports = b.call(b.exports, a, b.exports, b) || b.exports), b.exports);\n }\n function b(a, b) {\n c[a] = b;\n }\n var c = {};\n b(\"jquery\", function () {\n return jQuery;\n });\n b(\"popup\", function (a) {\n function b() {\n this.destroyed = !1;\n this.__popup = c(\"
\").css({\n display: \"none\",\n position: \"absolute\",\n outline: 0\n }).attr(\"tabindex\", \"-1\").html(this.innerHTML).appendTo(\"body\");\n this.__backdrop = this.__mask = c(\"
\").css({\n opacity: .7,\n background: \"#000\"\n });\n this.node = this.__popup[0];\n this.backdrop = this.__backdrop[0];\n d++;\n }\n var c = a(\"jquery\"),\n d = 0,\n h = !(\"minWidth\" in c(\"html\")[0].style),\n k = !h;\n return c.extend(b.prototype, {\n node: null,\n backdrop: null,\n fixed: !1,\n destroyed: !0,\n open: !1,\n returnValue: \"\",\n autofocus: !0,\n align: \"bottom left\",\n innerHTML: \"\",\n className: \"ui-popup\",\n show: function show(a) {\n if (this.destroyed) return this;\n var d = this.__popup,\n e = this.__backdrop;\n if (this.__activeElement = this.__getActive(), this.open = !0, this.follow = a || this.follow, !this.__ready) {\n if (d.addClass(this.className).attr(\"role\", this.modal ? \"alertdialog\" : \"dialog\").css(\"position\", this.fixed ? \"fixed\" : \"absolute\"), h || c(window).on(\"resize\", c.proxy(this.reset, this)), this.modal) a = {\n position: \"fixed\",\n left: 0,\n top: 0,\n width: \"100%\",\n height: \"100%\",\n overflow: \"hidden\",\n userSelect: \"none\",\n zIndex: this.zIndex || b.zIndex\n }, d.addClass(this.className + \"-modal\"), k || c.extend(a, {\n position: \"absolute\",\n width: c(window).width() + \"px\",\n height: c(document).height() + \"px\"\n }), e.css(a).attr({\n tabindex: \"0\"\n }).on(\"focus\", c.proxy(this.focus, this)), this.__mask = e.clone(!0).attr(\"style\", \"\").insertAfter(d), e.addClass(this.className + \"-backdrop\").insertBefore(d), this.__ready = !0;\n d.html() || d.html(this.innerHTML);\n }\n return d.addClass(this.className + \"-show\").show(), e.show(), this.reset().focus(), this.__dispatchEvent(\"show\"), this;\n },\n showModal: function showModal() {\n return this.modal = !0, this.show.apply(this, arguments);\n },\n close: function close(a) {\n return !this.destroyed && this.open && (void 0 !== a && (this.returnValue = a), this.__popup.hide().removeClass(this.className + \"-show\"), this.__backdrop.hide(), this.open = !1, this.blur(), this.__dispatchEvent(\"close\")), this;\n },\n remove: function remove() {\n if (this.destroyed) return this;\n this.__dispatchEvent(\"beforeremove\");\n b.current === this && (b.current = null);\n this.__popup.remove();\n this.__backdrop.remove();\n this.__mask.remove();\n h || c(window).off(\"resize\", this.reset);\n this.__dispatchEvent(\"remove\");\n for (var a in this) delete this[a];\n return this;\n },\n reset: function reset() {\n var a = this.follow;\n return a ? this.__follow(a) : this.__center(), this.__dispatchEvent(\"reset\"), this;\n },\n focus: function focus() {\n var a = this.node,\n d = this.__popup,\n e = b.current,\n f = this.zIndex = b.zIndex++;\n (e && e !== this && e.blur(!1), c.contains(a, this.__getActive())) || (e = d.find(\"[autofocus]\")[0], !this._autofocus && e ? this._autofocus = !0 : e = a, this.__focus(e));\n return d.css(\"zIndex\", f), b.current = this, d.addClass(this.className + \"-focus\"), this.__dispatchEvent(\"focus\"), this;\n },\n blur: function blur(a) {\n var b = this.__activeElement;\n return !1 !== a && this.__focus(b), this._autofocus = !1, this.__popup.removeClass(this.className + \"-focus\"), this.__dispatchEvent(\"blur\"), this;\n },\n addEventListener: function addEventListener(a, b) {\n return this.__getEventListener(a).push(b), this;\n },\n removeEventListener: function removeEventListener(a, b) {\n a = this.__getEventListener(a);\n for (var c = 0; c < a.length; c++) b === a[c] && a.splice(c--, 1);\n return this;\n },\n __getEventListener: function __getEventListener(a) {\n var b = this.__listener;\n return b || (b = this.__listener = {}), b[a] || (b[a] = []), b[a];\n },\n __dispatchEvent: function __dispatchEvent(a) {\n var b = this.__getEventListener(a);\n this[\"on\" + a] && this[\"on\" + a]();\n for (a = 0; a < b.length; a++) b[a].call(this);\n },\n __focus: function __focus(a) {\n try {\n this.autofocus && !/^iframe$/i.test(a.nodeName) && a.focus();\n } catch (m) {}\n },\n __getActive: function __getActive() {\n try {\n var a = document.activeElement,\n b = a.contentDocument;\n return b && b.activeElement || a;\n } catch (p) {}\n },\n __center: function __center() {\n var a = this.__popup,\n b = c(window),\n d = c(document),\n e = this.fixed,\n f = e ? 0 : d.scrollLeft();\n d = e ? 0 : d.scrollTop();\n e = b.width();\n var g = b.height();\n b = a.width();\n var h = a.height();\n g = 382 * (g - h) / 1E3 + d;\n a = a[0].style;\n a.left = Math.max(parseInt((e - b) / 2 + f), f) + \"px\";\n a.top = Math.max(parseInt(g), d) + \"px\";\n },\n __follow: function __follow(a) {\n var b = a.parentNode && c(a),\n d = this.__popup;\n if (this.__followSkin && d.removeClass(this.__followSkin), b) {\n var e = b.offset();\n if (0 > e.left * e.top) return this.__center();\n }\n var f = this.fixed,\n g = c(window);\n e = c(document);\n var h = g.width(),\n k = g.height(),\n l = e.scrollLeft(),\n x = e.scrollTop();\n e = d.width();\n g = d.height();\n var y = b ? b.outerWidth() : 0,\n z = b ? b.outerHeight() : 0,\n u = this.__offset(a);\n a = u.left;\n u = u.top;\n a = f ? a - l : a;\n u = f ? u - x : u;\n l = f ? 0 : l;\n f = f ? 0 : x;\n h = l + h - e;\n k = f + k - g;\n x = {};\n var w = this.align.split(\" \"),\n C = this.className + \"-\",\n G = {\n top: \"bottom\",\n bottom: \"top\",\n left: \"right\",\n right: \"left\"\n },\n t = {\n top: \"top\",\n bottom: \"top\",\n left: \"left\",\n right: \"left\"\n },\n F = [{\n top: u - g,\n bottom: u + z,\n left: a - e,\n right: a + y\n }, {\n top: u,\n bottom: u - g + z,\n left: a,\n right: a - e + y\n }];\n e = {\n left: a + y / 2 - e / 2,\n top: u + z / 2 - g / 2\n };\n var H = {\n left: [l, h],\n top: [f, k]\n };\n c.each(w, function (a, b) {\n F[a][b] > H[t[b]][1] && (b = w[a] = G[b]);\n F[a][b] < H[t[b]][0] && (w[a] = G[b]);\n });\n w[1] || (t[w[1]] = \"left\" === t[w[0]] ? \"top\" : \"left\", F[1][w[1]] = e[t[w[1]]]);\n this.__followSkin = C += w.join(\"-\") + \" \" + this.className + \"-follow\";\n b && d.addClass(C);\n x[t[w[0]]] = parseInt(F[0][w[0]]);\n x[t[w[1]]] = parseInt(F[1][w[1]]);\n d.css(x);\n },\n __offset: function __offset(a) {\n var b = a.parentNode,\n d = b ? c(a).offset() : {\n left: a.pageX,\n top: a.pageY\n };\n a = b ? a : a.target;\n b = a.ownerDocument;\n a = b.defaultView || b.parentWindow;\n if (a == window) return d;\n a = a.frameElement;\n var e = c(b);\n b = e.scrollLeft();\n e = e.scrollTop();\n a = c(a).offset();\n return {\n left: d.left + a.left - b,\n top: d.top + a.top - e\n };\n }\n }), b.zIndex = 1024, b.current = null, b;\n });\n b(\"dialog-config\", {\n backdropBackground: \"#000\",\n backdropOpacity: .7,\n content: 'Loading..',\n title: \"\",\n statusbar: \"\",\n button: null,\n ok: null,\n cancel: null,\n okValue: \"ok\",\n cancelValue: \"cancel\",\n cancelDisplay: !0,\n width: \"\",\n height: \"\",\n padding: \"\",\n skin: \"\",\n quickClose: !1,\n cssUri: \"../css/ui-dialog.css\",\n innerHTML: '
'\n });\n b(\"dialog\", function (a) {\n var b = a(\"jquery\"),\n c = a(\"popup\"),\n d = a(\"dialog-config\"),\n h = d.cssUri;\n h && (a = a[a.toUrl ? \"toUrl\" : \"resolve\"]) && (h = a(h), h = '', b(\"base\")[0] ? b(\"base\").before(h) : b(\"head\").append(h));\n var k = 0,\n l = new Date() - 0;\n h = !(\"minWidth\" in b(\"html\")[0].style);\n var m = \"createTouch\" in document && !(\"onmousemove\" in document) || /(iPhone|iPad|iPod)/i.test(navigator.userAgent),\n p = !h && !m,\n _n = function n(a, c, d) {\n var e = a = a || {};\n \"string\" != typeof a && 1 !== a.nodeType || (a = {\n content: a,\n fixed: !m\n });\n a = b.extend(!0, {}, _n.defaults, a);\n a.original = e;\n e = a.id = a.id || l + k;\n var f = _n.get(e);\n return f ? f.focus() : (p || (a.fixed = !1), a.quickClose && (a.modal = !0, a.backdropOpacity = 0), b.isArray(a.button) || (a.button = []), void 0 !== d && (a.cancel = d), a.cancel && a.button.push({\n id: \"cancel\",\n value: a.cancelValue,\n callback: a.cancel,\n display: a.cancelDisplay\n }), void 0 !== c && (a.ok = c), a.ok && a.button.push({\n id: \"ok\",\n value: a.okValue,\n callback: a.ok,\n autofocus: !0\n }), _n.list[e] = new _n.create(a));\n };\n h = function h() {};\n h.prototype = c.prototype;\n h = _n.prototype = new h();\n return _n.create = function (a) {\n var d = this;\n b.extend(this, new c());\n var e = (a.original, b(this.node).html(a.innerHTML)),\n f = b(this.backdrop);\n return this.options = a, this._popup = e, b.each(a, function (a, b) {\n \"function\" == typeof d[a] ? d[a](b) : d[a] = b;\n }), a.zIndex && (c.zIndex = a.zIndex), e.attr({\n \"aria-labelledby\": this._$(\"title\").attr(\"id\", \"title:\" + this.id).attr(\"id\"),\n \"aria-describedby\": this._$(\"content\").attr(\"id\", \"content:\" + this.id).attr(\"id\")\n }), this._$(\"close\").css(\"display\", !1 === this.cancel ? \"none\" : \"\").attr(\"title\", this.cancelValue).on(\"click\", function (a) {\n d._trigger(\"cancel\");\n a.preventDefault();\n }), this._$(\"dialog\").addClass(this.skin), this._$(\"body\").css(\"padding\", this.padding), a.quickClose && f.on(\"onmousedown\" in document ? \"mousedown\" : \"click\", function () {\n return d._trigger(\"cancel\"), !1;\n }), this.addEventListener(\"show\", function () {\n f.css({\n opacity: 0,\n background: a.backdropBackground\n }).animate({\n opacity: a.backdropOpacity\n }, 150);\n }), this._esc = function (a) {\n var b = a.target,\n e = b.nodeName,\n f = /^input|textarea$/i;\n a = a.keyCode;\n c.current !== d || f.test(e) && \"button\" !== b.type || 27 === a && d._trigger(\"cancel\");\n }, b(document).on(\"keydown\", this._esc), this.addEventListener(\"remove\", function () {\n b(document).off(\"keydown\", this._esc);\n delete _n.list[this.id];\n }), k++, _n.oncreate(this), this;\n }, _n.create.prototype = h, b.extend(h, {\n content: function content(a) {\n var c = this._$(\"content\");\n return \"object\" == _typeof(a) ? (a = b(a), c.empty(\"\").append(a.show()), this.addEventListener(\"beforeremove\", function () {\n b(\"body\").append(a.hide());\n })) : c.html(a), this.reset();\n },\n title: function title(a) {\n return this._$(\"title\").text(a), this._$(\"header\")[a ? \"show\" : \"hide\"](), this;\n },\n width: function width(a) {\n return this._$(\"content\").css(\"width\", a), this.reset();\n },\n height: function height(a) {\n return this._$(\"content\").css(\"height\", a), this.reset();\n },\n button: function button(a) {\n a = a || [];\n var c = this,\n d = \"\",\n e = 0;\n return this.callbacks = {}, \"string\" == typeof a ? (d = a, e++) : b.each(a, function (a, f) {\n var g = f.id = f.id || f.value;\n a = \"\";\n c.callbacks[g] = f.callback;\n !1 === f.display ? a = ' style=\"display:none\"' : e++;\n d += '\";\n c._$(\"button\").on(\"click\", \"[i-id=\" + g + \"]\", function (a) {\n b(this).attr(\"disabled\") || c._trigger(g);\n a.preventDefault();\n });\n }), this._$(\"button\").html(d), this._$(\"footer\")[e ? \"show\" : \"hide\"](), this;\n },\n statusbar: function statusbar(a) {\n return this._$(\"statusbar\").html(a)[a ? \"show\" : \"hide\"](), this;\n },\n _$: function _$(a) {\n return this._popup.find(\"[i=\" + a + \"]\");\n },\n _trigger: function _trigger(a) {\n a = this.callbacks[a];\n return \"function\" != typeof a || !1 !== a.call(this) ? this.close().remove() : this;\n }\n }), _n.oncreate = b.noop, _n.getCurrent = function () {\n return c.current;\n }, _n.get = function (a) {\n return void 0 === a ? _n.list : _n.list[a];\n }, _n.list = {}, _n.defaults = d, _n;\n });\n window.dialog = a(\"dialog\");\n}();\nvar maxTickDepth$$module$webapp$kinggrid$signature_all = 100,\n toString$$module$webapp$kinggrid$signature_all = Object.prototype.toString,\n nextTick$$module$webapp$kinggrid$signature_all = \"function\" === typeof setImmediate ? setImmediate : function (a) {\n setTimeout(a, 0);\n },\n isArray$$module$webapp$kinggrid$signature_all = Array.isArray || function (a) {\n return \"[object Array]\" === toString$$module$webapp$kinggrid$signature_all.call(a);\n };\nfunction slice$$module$webapp$kinggrid$signature_all(a, b) {\n var c = a.length,\n d = Array(c);\n for (b = b || 0; c-- > b;) d[c - b] = a[c];\n return d;\n}\nfunction carry$$module$webapp$kinggrid$signature_all(a, b) {\n try {\n b.apply(null, slice$$module$webapp$kinggrid$signature_all(arguments, 2));\n } catch (c) {\n a(c);\n }\n}\nfunction defer$$module$webapp$kinggrid$signature_all(a, b) {\n var c = slice$$module$webapp$kinggrid$signature_all(arguments, 2);\n nextTick$$module$webapp$kinggrid$signature_all(function () {\n try {\n b.apply(null, c);\n } catch (d) {\n a(d);\n }\n });\n}\nfunction Thenjs$$module$webapp$kinggrid$signature_all(a, b) {\n if (a instanceof Thenjs$$module$webapp$kinggrid$signature_all) return a;\n if (!(this instanceof Thenjs$$module$webapp$kinggrid$signature_all)) return new Thenjs$$module$webapp$kinggrid$signature_all(a, b);\n this._finally = this._error = this._fail = this._result = this._nextThen = this._chain = this._success = this._each = this._eachSeries = this._parallel = this._series = null;\n if (!arguments.length) return this;\n var c = genContinuation$$module$webapp$kinggrid$signature_all(this, b);\n try {\n \"function\" === typeof a ? a(c) : null == a ? c() : \"function\" === typeof a.toThunk ? a.toThunk()(c) : \"function\" === typeof a.then ? a.then(function (a) {\n c(null, a);\n }, c) : c(null, a);\n } catch (d) {\n c(d);\n }\n}\nThenjs$$module$webapp$kinggrid$signature_all.defer = defer$$module$webapp$kinggrid$signature_all;\nThenjs$$module$webapp$kinggrid$signature_all.each = function (a, b, c) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (c) {\n defer$$module$webapp$kinggrid$signature_all(c, each$$module$webapp$kinggrid$signature_all, c, a, b);\n }, null, c);\n};\nThenjs$$module$webapp$kinggrid$signature_all.eachSeries = function (a, b, c) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (c) {\n defer$$module$webapp$kinggrid$signature_all(c, eachSeries$$module$webapp$kinggrid$signature_all, c, a, b);\n }, null, c);\n};\nThenjs$$module$webapp$kinggrid$signature_all.parallel = function (a, b) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (b) {\n defer$$module$webapp$kinggrid$signature_all(b, parallel$$module$webapp$kinggrid$signature_all, b, a);\n }, null, b);\n};\nThenjs$$module$webapp$kinggrid$signature_all.series = function (a, b) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (b) {\n defer$$module$webapp$kinggrid$signature_all(b, series$$module$webapp$kinggrid$signature_all, b, a);\n }, null, b);\n};\nThenjs$$module$webapp$kinggrid$signature_all.nextTick = function (a) {\n var b = slice$$module$webapp$kinggrid$signature_all(arguments, 1);\n nextTick$$module$webapp$kinggrid$signature_all(function () {\n a.apply(null, b);\n });\n};\nThenjs$$module$webapp$kinggrid$signature_all.onerror = function (a) {\n throw a;\n};\nvar proto$$module$webapp$kinggrid$signature_all = Thenjs$$module$webapp$kinggrid$signature_all.prototype;\nproto$$module$webapp$kinggrid$signature_all.fin = proto$$module$webapp$kinggrid$signature_all.all = proto$$module$webapp$kinggrid$signature_all[\"finally\"] = function (a) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (b, c) {\n c._finally = wrapTaskHandler$$module$webapp$kinggrid$signature_all(b, a);\n }, this);\n};\nproto$$module$webapp$kinggrid$signature_all.then = function (a, b) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (c, d) {\n d._success = wrapTaskHandler$$module$webapp$kinggrid$signature_all(c, a);\n d._error = b && wrapTaskHandler$$module$webapp$kinggrid$signature_all(c, b);\n }, this);\n};\nproto$$module$webapp$kinggrid$signature_all.fail = proto$$module$webapp$kinggrid$signature_all[\"catch\"] = function (a) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (b, c) {\n c._fail = wrapTaskHandler$$module$webapp$kinggrid$signature_all(b, a);\n c._success = function () {\n b.apply(null, [null].concat(slice$$module$webapp$kinggrid$signature_all(arguments)));\n };\n }, this);\n};\nproto$$module$webapp$kinggrid$signature_all.each = function (a, b) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (c, d) {\n d._each = function (d, f) {\n each$$module$webapp$kinggrid$signature_all(c, a || d, b || f);\n };\n }, this);\n};\nproto$$module$webapp$kinggrid$signature_all.eachSeries = function (a, b) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (c, d) {\n d._eachSeries = function (d, f) {\n eachSeries$$module$webapp$kinggrid$signature_all(c, a || d, b || f);\n };\n }, this);\n};\nproto$$module$webapp$kinggrid$signature_all.parallel = function (a) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (b, c) {\n c._parallel = function (c) {\n parallel$$module$webapp$kinggrid$signature_all(b, a || c);\n };\n }, this);\n};\nproto$$module$webapp$kinggrid$signature_all.series = function (a) {\n return thenFactory$$module$webapp$kinggrid$signature_all(function (b, c) {\n c._series = function (c) {\n series$$module$webapp$kinggrid$signature_all(b, a || c);\n };\n }, this);\n};\nproto$$module$webapp$kinggrid$signature_all.toThunk = function () {\n var a = this;\n return function (b) {\n a._result ? (b.apply(null, a._result), a._result = !1) : !1 !== a._result && (a._finally = b);\n };\n};\nfunction continuation$$module$webapp$kinggrid$signature_all(a) {\n var b = this,\n c = arguments;\n if (!1 !== b._result) {\n !b._result && b._chain && b.debug.apply(b, [\"\\nChain \" + b._chain + \": \"].concat(slice$$module$webapp$kinggrid$signature_all(c)));\n b._result = !1;\n try {\n continuationExec$$module$webapp$kinggrid$signature_all(b, c, a);\n } catch (d) {\n nextTick$$module$webapp$kinggrid$signature_all(function () {\n continuationError$$module$webapp$kinggrid$signature_all(b, d, a);\n });\n }\n }\n}\nfunction continuationExec$$module$webapp$kinggrid$signature_all(a, b, c) {\n if (a._finally) return a._finally.apply(null, b);\n if (null != c) throw c;\n if (c = a._success || a._each || a._eachSeries || a._parallel || a._series) return c.apply(null, slice$$module$webapp$kinggrid$signature_all(b, 1));\n a._result = b;\n}\nfunction continuationError$$module$webapp$kinggrid$signature_all(a, b, c) {\n var d = a,\n e = a._error || a._fail;\n a._nextThen && null == c && (e = null, d = a._nextThen);\n for (; !e && d;) e = d._fail, d = d._nextThen;\n if (e) return e(b);\n if (Thenjs$$module$webapp$kinggrid$signature_all.onerror) return Thenjs$$module$webapp$kinggrid$signature_all.onerror(b);\n d._result = [b];\n}\nfunction genContinuation$$module$webapp$kinggrid$signature_all(a, b) {\n function c() {\n return continuation$$module$webapp$kinggrid$signature_all.apply(a, arguments);\n }\n c._isCont = !0;\n b && (proto$$module$webapp$kinggrid$signature_all.debug = \"function\" === typeof b ? b : defaultDebug$$module$webapp$kinggrid$signature_all, a._chain = 1);\n return c;\n}\nfunction thenFactory$$module$webapp$kinggrid$signature_all(a, b, c) {\n var d = new Thenjs$$module$webapp$kinggrid$signature_all();\n c = genContinuation$$module$webapp$kinggrid$signature_all(d, c);\n a(c, b);\n if (!b) return d;\n b._nextThen = d;\n b._chain && (d._chain = b._chain + 1);\n b._result && nextTick$$module$webapp$kinggrid$signature_all(function () {\n continuation$$module$webapp$kinggrid$signature_all.apply(b, b._result);\n });\n return d;\n}\nfunction wrapTaskHandler$$module$webapp$kinggrid$signature_all(a, b) {\n return b._isCont ? b : function () {\n b.apply(null, [a].concat(slice$$module$webapp$kinggrid$signature_all(arguments)));\n };\n}\nfunction parallelNext$$module$webapp$kinggrid$signature_all(a, b, c, d) {\n function e(e, g) {\n if (!c.finished) {\n if (null != e) return c.finished = !0, a(e);\n b[d] = g;\n return 0 > --c.i && a(null, b);\n }\n }\n e._isCont = !0;\n return e;\n}\nfunction each$$module$webapp$kinggrid$signature_all(a, b, c) {\n var d,\n e = [],\n f = {};\n if (!isArray$$module$webapp$kinggrid$signature_all(b)) return a(errorify$$module$webapp$kinggrid$signature_all(b, \"each\"));\n f.i = d = b.length - 1;\n if (0 > d) return a(null, e);\n for (var g = 0; g <= d; g++) c(parallelNext$$module$webapp$kinggrid$signature_all(a, e, f, g), b[g], g, b);\n}\nfunction parallel$$module$webapp$kinggrid$signature_all(a, b) {\n var c,\n d = [],\n e = {};\n if (!isArray$$module$webapp$kinggrid$signature_all(b)) return a(errorify$$module$webapp$kinggrid$signature_all(b, \"parallel\"));\n e.i = c = b.length - 1;\n if (0 > c) return a(null, d);\n for (var f = 0; f <= c; f++) b[f](parallelNext$$module$webapp$kinggrid$signature_all(a, d, e, f), f, b);\n}\nfunction eachSeries$$module$webapp$kinggrid$signature_all(a, b, c) {\n function d(l, m) {\n if (null != l) return a(l);\n f[e] = m;\n if (++e > k) return a(null, f);\n g = 0 < --h ? carry$$module$webapp$kinggrid$signature_all : (h = maxTickDepth$$module$webapp$kinggrid$signature_all, defer$$module$webapp$kinggrid$signature_all);\n g(a, c, d, b[e], e, b);\n }\n var e = 0,\n f = [],\n g,\n h = maxTickDepth$$module$webapp$kinggrid$signature_all;\n d._isCont = !0;\n if (!isArray$$module$webapp$kinggrid$signature_all(b)) return a(errorify$$module$webapp$kinggrid$signature_all(b, \"eachSeries\"));\n var k = b.length - 1;\n if (0 > k) return a(null, f);\n c(d, b[0], 0, b);\n}\nfunction series$$module$webapp$kinggrid$signature_all(a, b) {\n function c(k, l) {\n if (null != k) return a(k);\n e[d] = l;\n if (++d > h) return a(null, e);\n f = 0 < --g ? carry$$module$webapp$kinggrid$signature_all : (g = maxTickDepth$$module$webapp$kinggrid$signature_all, defer$$module$webapp$kinggrid$signature_all);\n f(a, b[d], c, d, b);\n }\n var d = 0,\n e = [],\n f,\n g = maxTickDepth$$module$webapp$kinggrid$signature_all;\n c._isCont = !0;\n if (!isArray$$module$webapp$kinggrid$signature_all(b)) return a(errorify$$module$webapp$kinggrid$signature_all(b, \"series\"));\n var h = b.length - 1;\n if (0 > h) return a(null, e);\n b[0](c, 0, b);\n}\nfunction defaultDebug$$module$webapp$kinggrid$signature_all() {}\nfunction errorify$$module$webapp$kinggrid$signature_all(a, b) {\n return Error(\"The argument \" + (a && a.toString()) + ' in \"' + b + '\" is not Array!');\n}\nThenjs$$module$webapp$kinggrid$signature_all.NAME = \"Thenjs\";\nThenjs$$module$webapp$kinggrid$signature_all.VERSION = \"1.3.4\";\nvar instance$$module$webapp$kinggrid$signature_all,\n root$$module$webapp$kinggrid$signature_all = window,\n KG$$module$webapp$kinggrid$signature_all = function KG$$module$webapp$kinggrid$signature_all() {\n function a(a, b) {\n var c = p.length,\n d = a.constructor;\n d = q.is(\"Function\", d) && d.prototype || ObjProto;\n var e = \"constructor\";\n for (q.has(a, e) && !_.contains(b, e) && b.push(e); c--;) e = p[c], e in a && a[e] !== d[e] && !_.contains(b, e) && b.push(e);\n }\n function b(a) {\n a = JSON.stringify(a);\n return e ? a.replace(/\\\\u([0-9a-fA-F]{2,4})/g, function (a, b) {\n return String.fromCharCode(parseInt(b, 16));\n }) : a;\n }\n function c() {\n var a = navigator.userAgent.toLowerCase();\n return \"micromessenger\" == a.match(/MicroMessenger/i) ? !1 : \"qq\" == a.match(/QQ/i) ? !1 : \"weibo\" == a.match(/WeiBo/i) ? !1 : null != a.match(/Android/i) ? null == a.match(/browser/i) : null != a.match(/iPhone/i) ? null == a.match(/safari/i) : null == a.match(/macintosh/i) && null == a.match(/windows/i);\n }\n function d(a) {\n for (var c = [], d = 0; d < a.length; d++) {\n var e = {};\n e.type = Q[Object.prototype.toString.call(a[d]).slice(8, -1)];\n e.value = a[d];\n c.push(e);\n }\n return b(c);\n }\n var e = !1;\n root$$module$webapp$kinggrid$signature_all.JSON && (e = \"{\\\"x\\\":\\\"\\u4E2D\\\"}\" !== root$$module$webapp$kinggrid$signature_all.JSON.stringify({\n x: \"\\u4E2D\"\n }));\n var f = function f(a, b) {\n a = this.words = a || [];\n this.sigBytes = void 0 != b ? b : 4 * a.length;\n };\n f.prototype = {\n clamp: function clamp() {\n var a = this.words,\n b = this.sigBytes;\n a[b >>> 2] &= 4294967295 << 32 - b % 4 * 8;\n a.length = Math.ceil(b / 4);\n },\n toString: function toString(a) {\n return (a || g).stringify(this);\n }\n };\n var g = {\n stringify: function stringify(a) {\n var b = a.words;\n a = a.sigBytes;\n for (var c = [], d = 0; d < a; d++) {\n var e = b[d >>> 2] >>> 24 - d % 4 * 8 & 255;\n c.push((e >>> 4).toString(16));\n c.push((e & 15).toString(16));\n }\n return c.join(\"\");\n },\n parse: function parse(a) {\n for (var b = a.length, c = [], d = 0; d < b; d += 2) c[d >>> 3] |= parseInt(a.substr(d, 2), 16) << 24 - d % 8 * 4;\n return new f.init(c, b / 2);\n }\n },\n h = {\n stringify: function stringify(a) {\n var b = a.words;\n a = a.sigBytes;\n for (var c = [], d = 0; d < a; d++) c.push(String.fromCharCode(b[d >>> 2] >>> 24 - d % 4 * 8 & 255));\n return c.join(\"\");\n },\n parse: function parse(a) {\n for (var b = a.length, c = [], d = 0; d < b; d++) c[d >>> 2] |= (a.charCodeAt(d) & 255) << 24 - d % 4 * 8;\n return new f(c, b);\n }\n },\n k = {\n stringify: function stringify(a) {\n try {\n return decodeURIComponent(escape(h.stringify(a)));\n } catch (K) {\n throw Error(\"Malformed UTF-8 data\");\n }\n },\n parse: function parse(a) {\n return h.parse(unescape(encodeURIComponent(a)));\n }\n },\n l = function l(a) {\n this.map = a;\n };\n l.map = {};\n l.of = function (a) {\n a = a || \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n var b = l.map[a];\n b || (b = new l(a));\n return b;\n };\n l.prototype = {\n decodeByte: function decodeByte(a) {\n var b = a.length,\n c = this.map,\n d = c.charAt(64);\n d && (d = a.indexOf(d), -1 != d && (b = d));\n d = [];\n for (var e = 0, g = 0; g < b; g++) if (g % 4) {\n var h = c.indexOf(a.charAt(g - 1)) << g % 4 * 2,\n I = c.indexOf(a.charAt(g)) >>> 6 - g % 4 * 2;\n d[e >>> 2] |= (h | I) << 24 - e % 4 * 8;\n e++;\n }\n return new f(d, e);\n },\n decode: function decode(a) {\n return k.stringify(this.decodeByte(a));\n },\n encode: function encode(a) {\n if (a) return this.encodeByte(k.parse(a));\n },\n encodeByte: function encodeByte(a) {\n var b = a.words,\n c = a.sigBytes,\n d = this.map;\n a.clamp();\n a = [];\n for (var e = 0; e < c; e += 3) for (var f = (b[e >>> 2] >>> 24 - e % 4 * 8 & 255) << 16 | (b[e + 1 >>> 2] >>> 24 - (e + 1) % 4 * 8 & 255) << 8 | b[e + 2 >>> 2] >>> 24 - (e + 2) % 4 * 8 & 255, g = 0; 4 > g && e + .75 * g < c; g++) a.push(d.charAt(f >>> 6 * (3 - g) & 63));\n if (b = d.charAt(64)) for (; a.length % 4;) a.push(b);\n return a.join(\"\");\n }\n };\n var m = !{\n toString: null\n }.propertyIsEnumerable(\"toString\"),\n p = \"valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString\".split(\" \"),\n n = function n(a, b) {\n var c = a.length,\n d = [];\n for (b = b || 0; c-- > b;) d[c - b] = a[c];\n return d;\n },\n r = function r() {},\n q = {\n Utf8: k,\n Base64: l,\n slice: n,\n boolean: function boolean(a, b, c) {\n return !(a.hasOwnProperty(b) ? !a[b] : !c);\n },\n rand: function rand(a) {\n return Math.ceil((9301 * new Date().getTime() + 49297) % 233280 / 233280 * a);\n },\n addEvent: function (a) {\n var b = c();\n return a ? function (a, b, c) {\n b = b.split(\" \");\n for (var d = 0; d < b.length; d++) a.attachEvent(\"on\" + b[d], function (b) {\n b.target = a;\n b.preventDefault = r;\n b.stopPropagation = r;\n c(b);\n });\n } : function (a, c, d) {\n void 0 === a.eventList && (a.eventList = {});\n for (var e = c.split(\" \"), f = 0; f < e.length; f++) {\n for (var g in a.eventList) if (g === e[f]) return;\n b ? a.addEventListener(e[f], d) : document.addEventListener.apply(a, [e[f]].concat(q.slice(arguments, 2)));\n a.eventList[e[f]] = !0;\n }\n };\n }(root$$module$webapp$kinggrid$signature_all.document.attachEvent),\n extend: function (a, b) {\n return function (c) {\n var d = arguments.length;\n if (2 > d || null == c) return c;\n for (var e = 1; e < d; e++) for (var f = arguments[e], g = a(f), h = g.length, K = 0; K < h; K++) {\n var I = g[K];\n b && void 0 !== c[I] || (c[I] = f[I]);\n }\n return c;\n };\n }(function (b) {\n if (!q.is(\"Object\", b)) return [];\n var c = [],\n d;\n for (d in b) c.push(d);\n m && a(b, c);\n return c;\n }),\n filter: function filter(a, b) {\n var c = {},\n d = b;\n if (q.is(\"String\", b)) {\n var e = q.slice(arguments, 1);\n d = function d(a) {\n for (var b = 0; b < e.length; b++) if (e[b] === a) return !1;\n return !0;\n };\n }\n for (var f in a) (e = d.call(a, f)) && (c[f] = a[f]);\n return c;\n },\n val: function val(a, b) {\n if (q.is(\"Function\", a)) {\n var c = 3 > arguments.length ? [] : [].slice.call(arguments).slice(2);\n return a.apply(b, c);\n }\n return a;\n },\n $: function $(a) {\n var b = document.getElementById(a);\n if (!b) {\n var c = document.getElementsByName(a);\n c && 0 < c.length && (b = c[0]);\n }\n b || (c = document.getElementsByTagName(a)) && 0 < c.length && (b = c[0]);\n return b;\n },\n keys: function keys(b) {\n if (!q.is(\"Object\", b)) return [];\n if (nativeKeys) return nativeKeys(b);\n var c = [],\n d;\n for (d in b) q.has(b, d) && c.push(d);\n m && a(b, c);\n return c;\n },\n contains: function contains(a, b, c) {\n var d = a && a.length;\n \"number\" == typeof d && 0 <= d && d <= MAX_ARRAY_INDEX || (a = _.values(a));\n return 0 <= _.indexOf(a, b, \"number\" == typeof c && c);\n },\n values: function values(a) {\n for (var b = _.keys(a), c = b.length, d = Array(c), e = 0; e < c; e++) d[e] = a[b[e]];\n return d;\n },\n has: function has(a, b) {\n return null != a && Object.prototype.hasOwnProperty.call(a, b);\n },\n inherit: function inherit(a, b) {\n var c = function c() {};\n c.prototype = b.prototype;\n a.prototype = new c();\n a.prototype.constructor = a;\n a.uber = b.prototype;\n },\n is: function is(a, b) {\n var c = Object.prototype.toString.call(b).slice(8, -1);\n return void 0 !== b && null !== b && c === a;\n },\n colorRgb: function colorRgb(a) {\n a = a.toLowerCase();\n var b = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;\n if (a && b.test(a)) {\n if (4 === a.length) {\n var c = \"#\";\n for (b = 1; 4 > b; b += 1) c += a.slice(b, b + 1).concat(a.slice(b, b + 1));\n a = c;\n }\n c = [];\n for (b = 1; 7 > b; b += 2) c.push(parseInt(\"0x\" + a.slice(b, b + 2)));\n return \"RGB(\" + c.join(\",\") + \")\";\n }\n return a;\n },\n colorHex: function colorHex(a) {\n if (/^(rgb|RGB)/.test(a)) {\n for (var b = a.replace(/(?:\\(|\\)|rgb|RGB)*/g, \"\").split(\",\"), c = \"#\", d = 0; d < b.length; d++) {\n var e = Number(b[d]).toString(16);\n \"0\" === e && (e += e);\n c += e;\n }\n 7 !== c.length && (c = a);\n return c.toUpperCase();\n }\n if (/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(a) && (b = a.replace(/#/, \"\").split(\"\"), 6 !== b.length && 3 === b.length)) for (a = \"#\", d = 0; d < b.length; d += 1) a += b[d] + b[d];\n return a.toUpperCase();\n },\n dateConvert: function dateConvert(a, b) {\n var c = [\"\\u96F6\\u4E00\\u4E8C\\u4E09\\u56DB\\u4E94\\u516D\\u4E03\\u516B\\u4E5D\".split(\"\"), \"\\u3007\\u4E00\\u4E8C\\u4E09\\u56DB\\u4E94\\u516D\\u4E03\\u516B\\u4E5D\".split(\"\")];\n a = a.match(/^(\\d{2}|\\d{4})(\\u5e74)(\\d{1,2})(\\u6708)(\\d{1,2})(\\u65e5)$/);\n var d = \"\";\n if (null != a) {\n for (var e = 1; e < a.length; e += 2) {\n var f = a[e];\n if (2 == f.length) f = \"1\" == f.charAt(0) ? \"0\" == f.charAt(1) ? \"\\u5341\" : \"\\u5341\" + c[b - 1][f.charAt(1)] : \"0\" == f.charAt(1) ? c[b - 1][f.charAt(0)] + \"\\u5341\" : c[b - 1][f.charAt(0)] + \"\\u5341\" + c[b - 1][f.charAt(1)];else {\n for (var g = \"\", h = 0; h < f.length; h++) g += c[b - 1][f.charAt(h)];\n f = g;\n }\n d += f + a[e + 1];\n }\n return d;\n }\n },\n formatDate: function formatDate(a, b) {\n var c = {\n MMM: \"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \")[a.getMonth()],\n \"M+\": a.getMonth() + 1,\n \"d+\": a.getDate(),\n \"h+\": a.getHours(),\n \"m+\": a.getMinutes(),\n \"s+\": a.getSeconds(),\n \"q+\": Math.floor((a.getMonth() + 3) / 3),\n S: a.getMilliseconds()\n };\n /(y+)/.test(b) && (b = b.replace(RegExp.$1, (a.getFullYear() + \"\").substr(4 - RegExp.$1.length)));\n for (var d in c) new RegExp(\"(\" + d + \")\").test(b) && (a = c[d], 2 == RegExp.$1.length && (a = (\"00\" + c[d]).substr((\"\" + c[d]).length)), b = b.replace(RegExp.$1, a));\n /[*]/gi.test(b) && (c = b.replace(/[*]/gi, \"\"), b = this.dateConvert(c, b.length - c.length));\n return b;\n },\n template: function template(a, b) {\n for (var c = /<%([^%>]+)?%>/g, d = /(^( )?(var|if|for|else|switch|case|break|{|}))(.*)?/g, e = \"var r=[];\\n\", f = 0, _g = function g(a, b) {\n b ? e += a.match(d) ? a + \"\\n\" : \"r.push(\" + a + \");\\n\" : e += \"\" != a ? 'r.push(\"' + a.replace(/\"/g, '\\\\\"') + '\");\\n' : \"\";\n return _g;\n }, h; h = c.exec(a);) _g(a.slice(f, h.index))(h[1], !0), f = h.index + h[0].length;\n _g(a.substr(f, a.length - f));\n e += 'return r.join(\"\");';\n return new Function(e.replace(/[\\r\\t\\n]/g, \"\")).apply(b, n(arguments, 2));\n },\n first: function first(a, b) {\n return a.substring(0, 1)[b ? \"toLowerCase\" : \"toUpperCase\"]() + a.substring(1);\n },\n html2Escape: function html2Escape(a) {\n return a.replace(/[<>&\"]/g, function (a) {\n return {\n \"<\": \"<\",\n \">\": \">\",\n \"&\": \"&\",\n '\"': \""\"\n }[a];\n });\n }\n },\n B = function B(a) {\n this.name = a;\n };\n B.prototype = {\n on: function on(a, b) {\n this.__getEventListener(a).push(b);\n return this;\n },\n off: function off(a, b) {\n a = this.__getEventListener(a);\n for (var c = 0; c < a.length; c++) b === a[c] && a.splice(c--, 1);\n return this;\n },\n clear: function clear(a) {\n 0 < this.__getEventListener(a).length && (this.__listener[a] = []);\n return this;\n },\n trigger: function trigger(a) {\n var b,\n c = this.__getEventListener(a),\n d = Array.prototype.slice.call(arguments);\n this[\"on\" + a] && (b = this[\"on\" + a].apply(this, d.slice(1)));\n for (var e = 0; e < c.length; e++) c[e].apply(this, d.slice(1));\n return b;\n },\n __getEventListener: function __getEventListener(a) {\n var b = this.__listener;\n b || (b = this.__listener = {});\n b[a] || (b[a] = []);\n return b[a];\n }\n };\n var v = function v(a, b) {\n var c = 0,\n d = \"\",\n e;\n for (e in a) {\n var f = a[e];\n if (void 0 != f) {\n var g = function g(a) {\n 0 < c && (d += b);\n d += e + \"=\" + a;\n c++;\n };\n if (q.is(\"Array\", f)) for (var h = 0; h < f.length; h++) g(f[h]);else g(f);\n }\n }\n D.trigger(\"formatData\", d);\n return d;\n },\n E = function E(a, b) {\n var c = \"\";\n b = b || \"\";\n if (q.is(\"Array\", a)) for (var d = 0; d < a.length; d++) 0 < d && (c += b), c += v(a[d], b);else c = v(a, b);\n return c;\n },\n x = {\n result: !1,\n errcode: \"interErr\"\n },\n y = {\n result: !1,\n errcode: \"responseErr\"\n },\n z = {\n result: !1,\n errcode: \"connectionErr\"\n },\n u = {\n result: !1,\n errcode: \"parseErr\"\n },\n w = {\n result: !1,\n errcode: \"timeoutErr\"\n },\n C = function C(a, b) {\n D.trigger.apply(D, [\"response\", b].concat(this));\n n(arguments, 1);\n a && a(b);\n },\n G = function G(a, b) {\n this.url = a;\n this.data = b;\n D.trigger(\"beforeJSONP\", a, b);\n },\n t = G.prototype;\n t.parseData = function () {\n var a = \"\",\n b = this.data;\n if (q.is(\"String\", b)) a = b;else if (q.is(\"Object\", b)) for (var c in b) b[c] && (a += \"&\" + c + \"=\" + encodeURIComponent(b[c]));else if (q.is(\"Array\", b)) for (var d = 0; d < b.length; d++) {\n var e = b[d];\n for (c in e) e[c] && (a += \"&\" + c + \"=\" + encodeURIComponent(e[c]));\n }\n a += \"&hookback=\" + this.name;\n a += \"&_=\" + new Date().getTime();\n a = a.substr(1);\n D.trigger(\"parseData\", a);\n return a;\n };\n t.getJSON = function (a) {\n var b = this,\n c = b.url,\n d = b.data,\n e = this.name = \"jsonp_\" + new Date().getTime() + \"_\" + q.rand(1E5);\n c = c + (-1 === c.indexOf(\"?\") ? \"?\" : \"&\") + this.parseData(d);\n var f = document.createElement(\"script\");\n f.type = \"text/javascript\";\n f.src = c;\n f.id = e;\n f.charset = \"utf-8\";\n var g = function g() {\n setTimeout(function () {\n clearTimeout(h);\n f.parentNode.removeChild(f);\n try {\n delete window[e];\n } catch (W) {}\n }, 1);\n };\n window[e] = function (c) {\n b._execed = !0;\n C.call(b, a, c);\n };\n f.onload = function () {\n g();\n b._execed || C.call(b, a, u);\n };\n f.onerror = function () {\n g();\n void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.isResponseErr && _Signature$$module$webapp$kinggrid$signature_all.options.isResponseErr || C.call(b, a, y);\n };\n var h = setTimeout(function () {\n g();\n C.call(b, a, w);\n }, A.options.timeout);\n (c = document.getElementsByTagName(\"head\")) && c[0] && c[0].appendChild(f);\n };\n var F = function F(a, b) {\n this.url = a;\n this.data = b;\n this.xdr = new XDomainRequest();\n };\n F.prototype.getJSON = function (a) {\n var b = this.xdr;\n b.onload = function () {\n try {\n var c = JSON.parse(b.responseText);\n } catch (T) {\n C.call(b, a, u);\n return;\n }\n C.call(b, a, c);\n };\n b.onerror = function () {\n C.call(b, a, z);\n };\n b.timeout = A.options.timeout;\n b.ontimeout = function () {\n C.call(b, a, w);\n };\n b.open(\"POST\", this.url);\n b.send(E(this.data, \"\\r\\n\") + \"\\r\\na=1\");\n };\n var H = function H(a, b) {\n if (window.XMLHttpRequest) var c = new XMLHttpRequest();else if (window.ActiveXObject) for (var d = 0; d < activexName.length; d++) try {\n c = new ActiveXObject(activexName[d]);\n break;\n } catch (U) {}\n this.xhr = c;\n this.url = a;\n this.data = b;\n };\n H.prototype.getJSON = function (a) {\n var b = this.xhr,\n c = !1;\n b.onreadystatechange = function () {\n if (4 == b.readyState) if (200 == b.status || 304 == b.status) try {\n var d = JSON.parse(b.responseText);\n C.call(b, a, d);\n } catch (V) {\n C.call(b, a, u);\n } else c && C.call(b, a, y);\n };\n b.open(\"POST\", this.url, !0);\n b.onerror = function () {\n C.call(b, a, z);\n };\n b.timeout = A.options.timeout;\n b.ontimeout = function () {\n c = !0;\n C.call(b, a, w);\n };\n b.setRequestHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\n var d = E(this.data, \"\\r\\n\");\n b.send(d);\n };\n var P = \"withCredentials\" in XMLHttpRequest.prototype ? !1 : \"undefined\" != typeof XDomainRequest ? !0 : !1,\n J = function J(a, b, c) {\n D.trigger.apply(D, [\"beforeAjax\"].concat(n(arguments)));\n return c ? new G(a, b) : P ? new F(a, b) : new H(a, b);\n },\n Q = {\n Boolean: \"BOOL\",\n String: \"BSTR\",\n Number: \"LONG\"\n },\n A = function A() {};\n A.errCode = {\n 1E4: \"\\u7CFB\\u7EDF\\u9519\\u8BEF\",\n 20001: \"\\u5BC6\\u94A5\\u76D8\\u4FE1\\u606F\\u9519\\u8BEF\",\n 20003: \"\\u5BC6\\u7801\\u9519\\u8BEF\\uFF0C\\u8BF7\\u8F93\\u5165\\u6B63\\u786E\\u5BC6\\u7801\",\n 20004: \"\\u8BF7\\u8F93\\u5165\\u5BC6\\u7801!\",\n 11100: \"\\u7B7E\\u7AE0\\u670D\\u52A1\\u5668\\u9519\\u8BEF\",\n 111001: \"\\u8BE5\\u7528\\u6237\\u6CA1\\u6709\\u516C\\u7AE0\",\n 111002: \"\\u8BE5\\u7528\\u6237\\u6CA1\\u6709\\u79C1\\u7AE0\",\n 111003: \"\\u8BE5\\u7528\\u6237\\u6CA1\\u6709\\u6CD5\\u4EBA\\u7AE0\",\n 111004: \"\\u8BE5\\u7528\\u6237\\u6CA1\\u6709\\u6CD5\\u4EBA\\u7B7E\\u540D\\u5370\\u7AE0\",\n 111005: \"\\u8BE5\\u7528\\u6237\\u6CA1\\u6709\\u624B\\u5199\\u7B7E\\u540D\\u5370\\u7AE0\",\n 11101: \"\\u5F53\\u524D\\u7528\\u6237\\u6CA1\\u6709\\u7B7E\\u7AE0\",\n 11102: \"\\u5370\\u7AE0\\u9519\\u8BEF\",\n 11103: \"\\u8BC1\\u4E66\\u8FC7\\u671F\",\n 11104: \"\\u5370\\u7AE0\\u8FC7\\u671F\",\n 11105: \"\\u83B7\\u53D6\\u7B7E\\u7AE0\\u4FE1\\u606F\\u5931\\u8D25!\",\n 11106: \"\\u83B7\\u53D6\\u8BC1\\u4E66\\u4FE1\\u606F\\u5931\\u8D25!\",\n 11107: \"\\u672A\\u641C\\u7D22\\u5230\\u60A8\\u8981\\u7684\\u7B7E\\u7AE0!\",\n 11108: \"\\u672A\\u8BBE\\u7F6E\\u7B7E\\u7AE0\\u5BC6\\u7801!\",\n 11109: \"\\u64CD\\u4F5C\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u52A9\\u624B\\u672A\\u542F\\u7528\\u6216\\u672A\\u6388\\u6743\",\n 11110: \"\\u64CD\\u4F5C\\u5931\\u8D25\\uFF0C\\u8BF7\\u62D4\\u6389\\u5F53\\u524D\\u94A5\\u5319\\u76D8\\u518D\\u8FDB\\u884C\\u64CD\\u4F5C\",\n 11111: \"\\u5141\\u8BB8\\u79FB\\u52A8\\u5931\\u8D25\\uFF0C\\u8BF7\\u4F7F\\u7528\\u539F\\u7B7E\\u7AE0\\u5BC6\\u94A5\\u5141\\u8BB8\\u79FB\\u52A8\\uFF01\",\n 11112: \"\\u5141\\u8BB8\\u79FB\\u52A8\\u5931\\u8D25\\uFF0C\\u8BE5\\u7B7E\\u7AE0\\u6570\\u636E\\u6CA1\\u6709\\u5141\\u8BB8\\u79FB\\u52A8\\u8BF7\\u6C42\\u6743\\u9650\\uFF01\",\n 11113: \"\\u60A8\\u7684\\u6D4F\\u89C8\\u5668\\u4E0D\\u652F\\u6301\\u624B\\u5199\\u7B7E\\u540D\\u3002\",\n none: \"\\u5BA2\\u6237\\u7AEF\\u672A\\u77E5\\u5F02\\u5E38!\",\n signErr: \"\\u7B7E\\u540D\\u5931\\u8D25\",\n serverErr: \"\\u8C03\\u7528\\u4EA7\\u54C1\\u7EC4\\u4EF6\\u5F02\\u5E38\",\n parseErr: \"\\u6570\\u636E\\u683C\\u5F0F\\u5F02\\u5E38\",\n responseErr: \"\\u4EA7\\u54C1\\u7EC4\\u4EF6\\u54CD\\u5E94\\u5F02\\u5E38\",\n connectionErr: \"\\u4EA7\\u54C1\\u7EC4\\u4EF6\\u8FDE\\u63A5\\u5F02\\u5E38\",\n timeoutErr: \"\\u8BF7\\u6C42\\u54CD\\u5E94\\u8D85\\u65F6\",\n interErr: \"\\u83B7\\u53D6\\u63A5\\u53E3\\u5F02\\u5E38\",\n \"-7\": \"\\u7B7E\\u540D\\u7EC4\\u4EF6\\u9519\\u8BEF\"\n };\n q.extend(A.errCode, {\n then: {\n \"-1\": \"\\u8BF7\\u5B89\\u88C5\\u5BA2\\u6237\\u7AEF\",\n \"-2\": \"\\u8BF7\\u63D2\\u5165\\u5F53\\u524D\\u7B7E\\u7AE0\\u6240\\u5C5E\\u7684\\u5BC6\\u94A5\\u76D8\",\n \"-3\": \"\\u672A\\u5B89\\u88C5\\u624B\\u673A\\u76FE\\u7EC4\\u4EF6\",\n \"-12\": \"\\u83B7\\u53D6\\u8BC1\\u4E66\\u5931\\u8D25\",\n \"-13\": \"\\u7B7E\\u540D\\u65F6\\uFF0C\\u52A0\\u8F7D\\u8BC1\\u4E66\\u5931\\u8D25\",\n \"-15\": \"\\u7B7E\\u540D\\u6570\\u636E\\u4E0D\\u80FD\\u4E3A\\u7A7A\",\n \"-16\": \"\\u5BC6\\u7801\\u4E0D\\u80FD\\u4E3A\\u7A7A\",\n \"-17\": \"\\u89E3\\u6790\\u8BC1\\u4E66\\u5931\\u8D25\",\n \"-18\": \"\\u672A\\u5B89\\u88C5\\u624B\\u673A\\u76FE\\u7EC4\\u4EF6\",\n \"-19\": \"\\u624B\\u673A\\u76FE\\u767B\\u5F55\\u5931\\u8D25\",\n 1: \"\\u6CA1\\u6709\\u68C0\\u6D4B\\u5230\\u5BC6\\u94A5\\u76D8\",\n 2: \"\\u5BC6\\u94A5\\u76D8\\u6CA1\\u6709\\u6B63\\u786E\\u521D\\u59CB\\u5316\",\n 3: \"\\u5BC6\\u94A5\\u76D8\\u9A71\\u52A8\\u672A\\u5B89\\u88C5\",\n 4: \"\\u53EA\\u80FD\\u63D2\\u5165\\u4E00\\u4E2A\\u5BC6\\u94A5\\u76D8\",\n 7: \"\\u5BC6\\u7801\\u9519\\u8BEF\\u6216\\u5BC6\\u94A5\\u76D8\\u88AB\\u9501\\u5B9A\",\n 8: \"\\u975E\\u6CD5\\u6388\\u6743\",\n 9: \"\\u7F51\\u7EDC\\u8FDE\\u63A5\\u5931\\u8D25\",\n 10: \"\\u624B\\u673A\\u76FE\\u767B\\u5F55\\u5931\\u8D25\",\n 11: \"\\u5F53\\u524D\\u5BC6\\u94A5\\u76D8\\u6CA1\\u6709\\u5370\\u7AE0\",\n 12: \"\\u83B7\\u53D6\\u5370\\u7AE0\\u4FE1\\u606F\\u5931\\u8D25\",\n 35: \"\\u94A5\\u5319\\u76D8\\u672A\\u751F\\u6548\\uFF0C\\u4E0D\\u80FD\\u7B7E\\u7AE0\\uFF01\",\n 36: \"\\u94A5\\u5319\\u76D8\\u5DF2\\u8FC7\\u671F\\uFF0C\\u4E0D\\u80FD\\u7B7E\\u7AE0\\uFF01\",\n 37: \"\\u6388\\u6743\\u4FE1\\u606F\\u7ED3\\u6784\\u975E\\u6CD5\\uFF01\",\n 38: \"\\u7B7E\\u7AE0\\u8BC1\\u4E66\\u5DF2\\u7ECF\\u8FC7\\u671F\\u6216\\u8FD8\\u672A\\u751F\\u6548\\uFF01\",\n 39: \"\\u7B7E\\u7AE0\\u8BC1\\u4E66\\u4E0D\\u53D7\\u9881\\u53D1\\u673A\\u6784\\u4FE1\\u4EFB\\uFF01\",\n 40: \"\\u7B7E\\u7AE0\\u8BC1\\u4E66\\u5DF2\\u88AB\\u540A\\u9500\\uFF01\",\n 41: \"\\u7B7E\\u7AE0\\u8BC1\\u4E66\\u6839\\u8BC1\\u4E66\\u672A\\u5B89\\u88C5\\u6216\\u65E0\\u6548\\u7684\\u6839\\u8BC1\\u4E66\\uFF01\",\n 42: \"\\u540A\\u9500\\u5217\\u8868\\u6587\\u4EF6\\u4E0D\\u5B58\\u5728\",\n 43: \"\\u672A\\u68C0\\u6D4B\\u5230\\u8BC1\\u4E66\",\n 44: \"\\u6839\\u8BC1\\u4E66\\u6587\\u4EF6\\u4E0D\\u5B58\\u5728\",\n 45: \"\\u6839\\u8BC1\\u4E66\\u548C\\u8BE5\\u8BC1\\u4E66\\u7684\\u6839\\u8BC1\\u4E66\\u4E0D\\u914D\\u5957\",\n 46: \"\\u540A\\u9500\\u5217\\u8868\\u548C\\u8BE5\\u8BC1\\u4E66\\u7684\\u540A\\u9500\\u5217\\u8868\\u4E0D\\u914D\\u5957\",\n \"-101\": \"\\u83B7\\u53D6\\u5BC6\\u94A5\\u76D8\\u6709\\u6548\\u671F\\u5F02\\u5E38\",\n \"-103\": \"\\u5BC6\\u94A5\\u76D8\\u672A\\u751F\\u6548\",\n \"-104\": \"\\u671F\\u9650\\u8BB8\\u53EF\\u5DF2\\u8FC7\\u671F\",\n \"-999\": \"\\u91D1\\u683C\\u7EC4\\u4EF6\\u672A\\u77E5\\u9519\\u8BEF\",\n \"30001@gm\": \"\\u9A8C\\u8BC1\\u7535\\u5B50\\u5370\\u7AE0\\u5931\\u8D25\\uFF1A\\u9A8C\\u8BC1\\u7535\\u5B50\\u5370\\u7AE0\\u7B7E\\u540D\\u503C\\u5931\\u8D25\\uFF01\",\n \"30002@gm\": \"\\u9A8C\\u8BC1\\u7535\\u5B50\\u5370\\u7AE0\\u5931\\u8D25\\uFF1A\\u9A8C\\u8BC1\\u7535\\u5B50\\u5370\\u7AE0\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u6709\\u6548\\u671F\\u5931\\u8D25\\uFF01\",\n \"30003@gm\": \"\\u9A8C\\u8BC1\\u7535\\u5B50\\u5370\\u7AE0\\u5931\\u8D25\\uFF1A\\u9A8C\\u8BC1\\u7535\\u5B50\\u5370\\u7AE0\\u7684\\u6709\\u6548\\u671F\\u5931\\u8D25\\uFF01\",\n \"30004@gm\": \"\\u9A8C\\u8BC1\\u7535\\u5B50\\u5370\\u7AE0\\u5931\\u8D25\\uFF1A\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u6709\\u6548\\u6027\\u5931\\u8D25\\uFF01\",\n \"30005@gm\": \"\\u9A8C\\u8BC1\\u7535\\u5B50\\u5370\\u7AE0\\u5931\\u8D25\\uFF1A\\u9A8C\\u8BC1\\u7535\\u5B50\\u7B7E\\u7AE0\\u6570\\u636E\\u5931\\u8D25\\uFF01\",\n \"-7@KGCrySignMessage\": \"\\u7B7E\\u540D\\u7EC4\\u4EF6\\u9519\\u8BEF\",\n \"8@KGVerifySign\": \"\\u9A8C\\u8BC1\\u5931\\u6548\",\n \"1@KGVerifySign\": \"\\u672A\\u5B89\\u88C5\\u7B7E\\u540D\\u7EC4\\u4EF6\",\n \"2@KGCrySignMessage\": \"\\u83B7\\u53D6\\u8BC1\\u4E66\\u5931\\u8D25\",\n \"3@KGCrySignMessage\": \"\\u7B7E\\u540D\\u65F6\\uFF0C\\u52A0\\u8F7D\\u8BC1\\u4E66\\u5931\\u8D25\",\n \"5@KGCrySignMessage\": \"\\u7B7E\\u540D\\u6570\\u636E\\u4E0D\\u80FD\\u4E3A\\u7A7A\",\n \"6@KGCrySignMessage\": \"\\u5BC6\\u7801\\u4E0D\\u80FD\\u4E3A\\u7A7A\",\n \"7@KGCrySignMessage\": \"\\u89E3\\u6790\\u8BC1\\u4E66\\u5931\\u8D25\"\n },\n KGRunFingerPrints: {\n \"-1\": \"\\u8BBE\\u5907\\u7C7B\\u578B\\u8BBE\\u7F6E\\u9519\\u8BEF\",\n \"-2\": \"\\u6CA1\\u6709\\u5B89\\u88C5\\u6307\\u7EB9\\u7EC4\\u4EF6\",\n \"-3\": \"\\u6307\\u7EB9\\u91C7\\u96C6\\u5931\\u8D25\"\n },\n KGRunHandWritten: {\n \"-1\": \"\\u8BBE\\u5907\\u7C7B\\u578B\\u8BBE\\u7F6E\\u9519\\u8BEF\",\n \"-2\": \"\\u6CA1\\u6709\\u5B89\\u88C5\\u624B\\u5199\\u7EC4\\u4EF6\",\n \"-3\": \"\\u6388\\u6743\\u7801\\u4E0D\\u6B63\\u786E\",\n \"-4\": \"\\u7B7E\\u540D\\u53D6\\u6D88\",\n \"-5\": \"\\u65E0\\u670D\\u52A1\\u53EF\\u7528\",\n \"-6\": \"\\u7B7E\\u540D\\u8BBE\\u5907\\u9519\\u8BEF\",\n \"-7\": \"\\u672A\\u77E5\\u9519\\u8BEF\"\n },\n KGGetTSWithDigest: {\n 1: \"\\u83B7\\u53D6\\u65F6\\u95F4\\u6233\\u5F02\\u5E38\",\n 2: \"\\u83B7\\u53D6\\u65F6\\u95F4\\u6233\\u5931\\u8D25\",\n 3: \"\\u54CD\\u5E94\\u6570\\u636E\\u4E3A\\u7A7A\"\n },\n KGGetTSURLInfo: {\n 1: \"\\u65F6\\u95F4\\u6233\\u672A\\u542F\\u7528\"\n },\n KGValidate_GM: {\n \"-1\": \"\\u6CA1\\u6709\\u5B89\\u88C5\\u7B7E\\u540D\\u7EC4\\u4EF6\",\n \"-2\": \"\\u6CA1\\u6709\\u516C\\u5171\\u6A21\\u5757\\u7EC4\\u4EF6\",\n \"-3\": \"KCL280 \\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u672A\\u77E5\\u539F\\u56E0\\u7684\\u9A8C\\u8BC1\\u5931\\u8D25\",\n 1: \"KCL272_\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5DF2\\u8FC7\\u671F\\u6216\\u672A\\u751F\\u6548\\uFF01\",\n 2: \"KCL274 \\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u6839\\u8BC1\\u4E66\\u9A8C\\u8BC1\\u672A\\u901A\\u8FC7!\",\n 3: \" KCL270_\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5DF2\\u88AB\\u540A\\u9500\\uFF01\",\n 4: \" KCL276 \\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u6839\\u8BC1\\u4E66\\u5B89\\u88C5\\u672A\\u6210\\u529F!\",\n 5: \" KCL266_\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u672A\\u68C0\\u6D4B\\u5230\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u540A\\u9500\\u5217\\u8868\\uFF01\",\n 6: \"KCL260_\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u672A\\u68C0\\u6D4B\\u5230\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\uFF01\",\n 7: \"KCL262_\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u6839\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u672A\\u68C0\\u6D4B\\u5230\\u7B7E\\u7AE0\\u4EBA\\u6839\\u8BC1\\u4E66\\uFF01\",\n 8: \"KCL264_\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u6839\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u4E0E\\u8BE5\\u8BC1\\u4E66\\u7684\\u6839\\u8BC1\\u4E66\\u4E0D\\u5339\\u914D\\uFF01\",\n 9: \"KCL268_\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u4E0E\\u8BE5\\u8BC1\\u4E66\\u540A\\u9500\\u5217\\u8868\\u4E0D\\u5339\\u914D\\uFF01\",\n 10: \"KCL273_\\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5DF2\\u8FC7\\u671F\\u6216\\u672A\\u751F\\u6548\",\n 11: \"KCL275 \\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u6839\\u8BC1\\u4E66\\u9A8C\\u8BC1\\u672A\\u901A\\u8FC7!\",\n 12: \"KCL271_\\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5DF2\\u88AB\\u540A\\u9500\\uFF01\",\n 13: \"KCL277_\\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u6839\\u8BC1\\u4E66\\u5B89\\u88C5\\u672A\\u6210\\u529F!\",\n 14: \"KCL267_\\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u672A\\u68C0\\u6D4B\\u5230\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u540A\\u9500\\u5217\\u8868\\uFF01\",\n 15: \"KCL281_\\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u672A\\u68C0\\u6D4B\\u5230\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\uFF01\",\n 16: \"KCL263_\\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u6839\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u672A\\u68C0\\u6D4B\\u5230\\u5236\\u7AE0\\u4EBA\\u6839\\u8BC1\\u4E66\\uFF01\",\n 17: \"KCL265_\\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u6839\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u4E0E\\u8BE5\\u8BC1\\u4E66\\u7684\\u6839\\u8BC1\\u4E66\\u4E0D\\u5339\\u914D\\uFF01\",\n 18: \"KCL269_\\u9A8C\\u8BC1\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u5236\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u4E0E\\u8BE5\\u8BC1\\u4E66\\u540A\\u9500\\u5217\\u8868\\u4E0D\\u5339\\u914D\\uFF01\",\n 19: \"KCL261_\\u9A8C\\u8BC1\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u4E0D\\u5728\\u5370\\u7AE0\\u7684\\u7B7E\\u7AE0\\u4EBA\\u8BC1\\u4E66\\u5217\\u8868\\u4E2D\\uFF01\",\n 20: \"KCL278_\\u9A8C\\u8BC1\\u5370\\u7AE0\\u5236\\u7AE0\\u65F6\\u95F4\\u5931\\u8D25\\uFF0C\\u5370\\u7AE0\\u672A\\u751F\\u6548\\uFF01\",\n 21: \"KCL279 \\u9A8C\\u8BC1\\u5370\\u7AE0\\u5236\\u7AE0\\u65F6\\u95F4\\u5931\\u8D25\\uFF0C\\u5370\\u7AE0\\u5DF2\\u7ECF\\u8FC7\\u671F\\uFF01\"\n },\n KGValidateCertificate: {\n \"-1\": \"\\u6CA1\\u6709\\u5B89\\u88C5\\u7B7E\\u540D\\u7EC4\\u4EF6\",\n \"-2\": \"\\u672A\\u77E5\\u9519\\u8BEF\",\n 1: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u8BC1\\u4E66\\u5DF2\\u7ECF\\u8FC7\\u671F\\u6216\\u8FD8\\u672A\\u751F\\u6548\\uFF01\",\n 2: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u8BC1\\u4E66\\u4E0D\\u53D7\\u9881\\u53D1\\u673A\\u6784\\u4FE1\\u4EFB\\uFF01\",\n 3: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u8BC1\\u4E66\\u5DF2\\u88AB\\u540A\\u9500\\uFF01\",\n 4: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u7B7E\\u7AE0\\u8BC1\\u4E66\\u6839\\u8BC1\\u4E66\\u672A\\u5B89\\u88C5\\u6216\\u65E0\\u6548\\u7684\\u6839\\u8BC1\\u4E66\\uFF01\",\n 5: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u540A\\u9500\\u5217\\u8868\\u6587\\u4EF6\\u4E0D\\u5B58\\u5728\\uFF01\",\n 6: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u672A\\u68C0\\u6D4B\\u5230\\u8BC1\\u4E66\\uFF01\",\n 7: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u6839\\u8BC1\\u4E66\\u6587\\u4EF6\\u4E0D\\u5B58\\u5728\\uFF01\",\n 8: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u6839\\u8BC1\\u4E66\\u548C\\u8BE5\\u8BC1\\u4E66\\u7684\\u6839\\u8BC1\\u4E66\\u4E0D\\u914D\\u5957\\uFF01\",\n 9: \"\\u9A8C\\u8BC1\\u5931\\u8D25\\uFF0C\\u540A\\u9500\\u5217\\u8868\\u548C\\u8BE5\\u8BC1\\u4E66\\u7684\\u540A\\u9500\\u5217\\u8868\\u4E0D\\u914D\\u5957\\uFF01\"\n },\n KG_MSG: {\n in_pwd_msg: \"\\u8BF7\\u8F93\\u5165\\u5BC6\\u7801\\uFF01\",\n timestamp_time: \"(\\u65F6\\u95F4\\u6765\\u6E90\\u4E8E\\u65F6\\u95F4\\u6233\\u670D\\u52A1\\u5668)\",\n server_time: \"(\\u65F6\\u95F4\\u6765\\u6E90\\u4E8E\\u7B7E\\u7AE0\\u670D\\u52A1\\u5668)\",\n local_time: \"(\\u65F6\\u95F4\\u6765\\u6E90\\u4E8E\\u672C\\u5730)\",\n modify_signdata: \"\\u7B7E\\u540D\\u6570\\u636E\\u88AB\\u7BE1\\u6539\",\n normal_signdata: \"\\u7B7E\\u540D\\u6570\\u636E\\u9A8C\\u8BC1\\u6B63\\u5E38\",\n success_signdata: \"\\u6570\\u5B57\\u7B7E\\u540D\\u6210\\u529F\\uFF01\",\n invalid_signdata: \"\\u7B7E\\u7AE0\\u65E0\\u6548\\uFF0C\\u4E0D\\u80FD\\u6267\\u884C\\u6570\\u5B57\\u7B7E\\u540D\\uFF01\",\n cannot_move: \"\\u8FD9\\u4E2A\\u5370\\u7AE0\\u4E0D\\u662F\\u4F60\\u5F53\\u524D\\u63D2\\u5165\\u7684key\\u7684\\u5370\\u7AE0\\uFF0C\\u4E0D\\u80FD\\u79FB\\u52A8\\uFF01\"\n },\n KG_TITLE: {\n SignatureMoveNot: \"\\u7981\\u6B62\\u79FB\\u52A8\",\n SignatureMoveDo: \"\\u5141\\u8BB8\\u79FB\\u52A8\",\n SignSignature: \"\\u6570\\u5B57\\u7B7E\\u540D\",\n SignVerify: \"\\u7B7E\\u540D\\u9A8C\\u8BC1\",\n SignatureVerify: \"\\u7B7E\\u7AE0\\u9A8C\\u8BC1\",\n RevokeSignature: \"\\u64A4\\u9500\\u7B7E\\u7AE0\",\n KinggridSignature: \"\\u7535\\u5B50\\u7B7E\\u7AE0\",\n DateSet: \"\\u65E5\\u671F\\u8BBE\\u7F6E\",\n HWSignature: \"\\u624B\\u5199\\u7B7E\\u540D\",\n scanBCSignature: \"\\u626B\\u7801\\u7B7E\\u7AE0\",\n moveSignature: \"\\u79FB\\u52A8\\u7B7E\\u7AE0\",\n ProtectedDataSet: \"\\u4FDD\\u62A4\\u9879\\u8BBE\\u7F6E\"\n },\n KGVerifyGBSealAction: {\n \"-1\": \"\\u670D\\u52A1\\u5668\\u901A\\u8BAF\\u5931\\u8D25\",\n 1: \"\\u5370\\u7AE0\\u7ED3\\u6784\\u4F53\\u4E3A\\u7A7A\",\n 2: \"\\u5370\\u7AE0\\u72B6\\u6001\\u65E0\\u6548\",\n 3: \"\\u89E3\\u6790\\u5F02\\u5E38\",\n 4: \"\\u5370\\u7AE0\\u5DF2\\u5220\\u9664\",\n 5: \"\\u5370\\u7AE0\\u672A\\u5236\\u4F5C\",\n 6: \"\\u5370\\u7AE0\\u5DF2\\u51BB\\u7ED3\"\n }\n });\n A.msg = function (a, b) {\n return A.errCode[a] || (b ? A.errCode[b][a] : A.errCode[a]) || a;\n };\n A.options = {\n _version: \"1.0\",\n timeout: 2E4\n };\n A.Utils = q;\n A.Listener = B;\n var R = function R(a, b) {\n D.trigger(\"ajaxRequest\", arguments);\n return A.ajax ? function (c) {\n new M(a, b).getJSON(function (a) {\n c(null, a);\n });\n } : function (c) {\n J(a, b, !1).getJSON(function (a) {\n c(null, a);\n });\n };\n },\n S = function S(a, b, c, d) {\n D.trigger(\"beforeProg\", arguments);\n var e = {\n value: '{\"GetInterface\":{\"progid\":\"' + b + '\",\"interface\":\"' + c + '\"},\"usercode\":\"' + d + '\"}'\n };\n return function (b) {\n J(a + \"/GetInterface\", e, !1).getJSON(function (a) {\n D.trigger(\"resonseProg\", a);\n \"none\" == a.type ? b(null, y) : \"0\" === a.value ? b(null, x) : b(null, a);\n });\n };\n },\n N = function N(a, b, c, e) {\n D.trigger(\"beforeMethod\", arguments);\n var f = Array.prototype.slice.call(arguments).slice(4);\n 0 == f.length ? f = '{\"MethodCall\":{\"caller\":\"' + b + '\",\"function\":\"' + e + '\"},\"usercode\":\"' + c + '\"}' : (f = '\"params\":' + d(f), f = '{\"MethodCall\":{\"caller\":\"' + b + '\",\"function\":\"' + e + '\",' + f + '},\"usercode\":\"' + c + '\"}');\n var g = {\n value: f\n };\n return function (b) {\n J(a + \"/MethodCall\", g, !1).getJSON(function (a) {\n D.trigger(\"responseMethod\", a);\n \"none\" != a.type && b(null, a.value ? a.value : a);\n });\n };\n },\n O = function O(a, b, c) {\n D.trigger(\"beforeAttr\", arguments);\n var e = Array.prototype.slice.call(arguments).slice(3);\n 0 == e.length ? e = '{\"PropertyCall\":{\"caller\":\"' + b + '\",\"property\":\"' + c + '\"}}' : (e = '\"params\":' + d(e), e = '{\"MethodCall\":{\"caller\":\"' + b + '\",\"property\":\"' + c + '\",' + e + \"}}\");\n var f = {\n value: e\n };\n return function (b) {\n J(a, f, !0).getJSON(function (a) {\n D.trigger(\"responseMethod\", a);\n \"none\" != a.type && b(null, a.value);\n });\n };\n },\n M = function M(a, b) {\n this.url = a;\n this.data = b;\n D.trigger(\"beforeAjaxJ\", a, b);\n };\n M.prototype.getJSON = function (a) {\n var b = this;\n $$$module$webapp$kinggrid$signature_all.ajax({\n url: this.url,\n contentType: \"text/plain;charset=utf-8\",\n type: \"POST\",\n data: E(this.data, \"\\r\\n\"),\n success: function success(c) {\n C.call(b, a, c);\n },\n error: function error(c, d, e) {\n C.call(b, a, z);\n }\n });\n };\n Thenjs$$module$webapp$kinggrid$signature_all.onerror = function (a) {\n if (q.is(\"String\", a)) alert(\"[error]\" + a);else throw a;\n };\n var L = function L(a) {\n this.serverUrl = a;\n this.thenjs = Thenjs$$module$webapp$kinggrid$signature_all(function (a) {\n a(null);\n });\n };\n t = L.prototype;\n t.init = function (a, b, c) {\n this.progid = a;\n this.interid = b;\n this.clientCode = c;\n return this;\n };\n t.fail = function (a) {\n var b = this;\n b.thenjs = b.thenjs.fail(function (c, d) {\n var e = a.call(b, c, d);\n c(b.respData(void 0 == e ? d : e));\n });\n return b;\n };\n t.fin = function (a) {\n var b = this;\n b.thenjs = b.thenjs.fin(function (c, d, e) {\n a.call(b, c, d, e);\n });\n return b;\n };\n t.then = function (a) {\n var b = this;\n b.thenjs = b.thenjs.then(function (c, d) {\n a.call(b, function (a, d) {\n b.respData(d);\n c(a, d);\n }, d);\n });\n return b;\n };\n t.series = function (a) {\n this.thenjs = this.thenjs.series(a);\n return this;\n };\n t.calArgs = function (a) {\n for (var b = this._data, c = [], d = 0; d < a.length; d++) {\n var e = a[d];\n q.is(\"Function\", e) && (e = e.call(this, b));\n q.is(\"Array\", e) ? c = c.concat(e) : c.push(e);\n }\n return c;\n };\n t.msg = function (a, b, c, d) {\n b = b || this._method;\n c = c || this.progid;\n d = A.errCode.then;\n D.trigger(\"msgArg\", a, b, c);\n return A.errCode[a] || d[a + \"@\" + b + \".\" + c] || d[a + \"@\" + b] || d[a] || a;\n };\n t.ret = function (a) {\n var b = this;\n this.then(function (c, d) {\n var e = a.call(b, d);\n c(null, b.respData(void 0 == e ? d : e));\n });\n return this;\n };\n t.respData = function (a) {\n a && (this._data = a);\n return this._data;\n };\n t.attr = function (a) {\n var b = this,\n c = n(arguments);\n b.series([function (a) {\n var d = b.calArgs(c);\n b._method = d[0];\n O.apply(null, [b.serverUrl, b.proid].concat(d))(a);\n }]).then(function (a, c) {\n a(null, b.respData(c[0]));\n });\n return this;\n };\n t.attrSeries = function () {\n var a = this,\n b = [];\n a.initProid();\n for (var c = 0; c < arguments.length; c++) b.push(function () {\n var b = a.calArgs(arguments);\n return function (c) {\n a._method = b[0];\n O.apply(null, [a.serverUrl, a.proid].concat(b))(c);\n };\n }.apply(null, arguments[c]));\n a.series(b).then(function (b, c) {\n a.respData(c);\n b(null, c);\n });\n return this;\n };\n t.initProid = function () {\n var a = this;\n this.series([S(a.serverUrl, a.progid, a.interid, a.clientCode)]).then(function (b, c) {\n c = c[0];\n D.trigger(\"initProid\", c);\n c.value ? (a.proid = c.value, b(null, c)) : b(c.errcode);\n });\n return this;\n };\n t.invokeSeries = function () {\n var a = this,\n b = [];\n a.initProid();\n for (var c = 0; c < arguments.length; c++) b.push(function () {\n var b = a.calArgs(arguments);\n return function (c) {\n a._method = b[0];\n N.apply(null, [a.serverUrl, a.proid, a.clientCode].concat(b))(c);\n };\n }.apply(null, arguments[c]));\n a.series(b).then(function (b, c) {\n a.respData(c);\n b(null, c);\n });\n return this;\n };\n t.invoke = function (a) {\n var b = this;\n b.initProid();\n var c = n(arguments);\n b.series([function (a) {\n var d = b.calArgs(c);\n b._method = d[0];\n N.apply(null, [b.serverUrl, b.proid, b.clientCode].concat(d))(a);\n }]).then(function (a, c) {\n b.respData(c[0]);\n a(null, c[0]);\n });\n return this;\n };\n t.request = function (a, b) {\n var c = this;\n c.series([R(c.serverUrl + a, b)]).then(function (a, b) {\n b = b[0];\n c.respData(b);\n a(null, b);\n });\n return this;\n };\n var D = new B(\"kgthen\");\n A.addRequestListener = function (a, b) {\n D.on(a, b);\n };\n A.surry = function (a, b, c, d) {\n return new L(a || \"http://127.0.0.1:9581\").init(b, c, d);\n };\n A.KgThen = L;\n return A;\n };\nfunction KGInstance$$module$webapp$kinggrid$signature_all() {\n null == instance$$module$webapp$kinggrid$signature_all && (instance$$module$webapp$kinggrid$signature_all = new KG$$module$webapp$kinggrid$signature_all());\n return instance$$module$webapp$kinggrid$signature_all;\n}\nroot$$module$webapp$kinggrid$signature_all.kinggrid = KGInstance$$module$webapp$kinggrid$signature_all();\nvar Utils$$module$webapp$kinggrid$signature_all = kinggrid.Utils,\n config$$module$webapp$kinggrid$signature_all = kinggrid.options,\n isIE8$$module$webapp$kinggrid$signature_all = !1;\nroot$$module$webapp$kinggrid$signature_all.JSON && (isIE8$$module$webapp$kinggrid$signature_all = \"{\\\"x\\\":\\\"\\u4E2D\\\"}\" !== root$$module$webapp$kinggrid$signature_all.JSON.stringify({\n x: \"\\u4E2D\"\n}));\nvar dialog$$module$webapp$kinggrid$signature_all = root$$module$webapp$kinggrid$signature_all.dialog;\ndialog$$module$webapp$kinggrid$signature_all && dialog$$module$webapp$kinggrid$signature_all.create && (dialog$$module$webapp$kinggrid$signature_all.create.prototype.button = function (a) {\n a = a || [];\n var b = this,\n c = \"\",\n d = 0;\n this.callbacks = {};\n \"string\" === typeof a ? (c = a, d++) : $$$module$webapp$kinggrid$signature_all.each(a, function (a, f) {\n var e = f.id = f.id || f.value;\n \"cancel\" == e && (f.value = \"\\u53D6\\u6D88\");\n a = \"\";\n b.callbacks[e] = f.callback;\n !1 === f.display ? a = ' style=\"display:none\"' : d++;\n c += '\";\n b._$(\"button\").on(\"click\", \"[i-id=\" + e + \"]\", function (a) {\n $$$module$webapp$kinggrid$signature_all(this).attr(\"disabled\") || b._trigger(e);\n a.preventDefault();\n });\n });\n this._$(\"button\").html(c);\n this._$(\"footer\")[d ? \"show\" : \"hide\"]();\n return this;\n});\nvar dialogConfig$$module$webapp$kinggrid$signature_all = {\n okValue: \"\\u786E\\u5B9A\",\n cancelValue: \"\\u5173\\u95ED\",\n modal: !0,\n fixed: !0,\n backdropOpacity: .2,\n skin: \"kg-ui-dialog\"\n },\n toBase64Img$$module$webapp$kinggrid$signature_all = function toBase64Img$$module$webapp$kinggrid$signature_all(a) {\n var b = a.imgdata;\n 0 == b.indexOf(a.signsn) && (b = a.imgdata.substring(65));\n return Utils$$module$webapp$kinggrid$signature_all.Base64.of().encodeByte(Utils$$module$webapp$kinggrid$signature_all.Base64.of(a.signsn).decodeByte(b));\n },\n dialogList$$module$webapp$kinggrid$signature_all = {},\n createDialog$$module$webapp$kinggrid$signature_all;\ncreateDialog$$module$webapp$kinggrid$signature_all = function createDialog$$module$webapp$kinggrid$signature_all(a, b) {\n b.id = a;\n return \"undefined\" != typeof root$$module$webapp$kinggrid$signature_all.iframeDialog && root$$module$webapp$kinggrid$signature_all.iframeDialog ? root$$module$webapp$kinggrid$signature_all.top.dialog(b) : root$$module$webapp$kinggrid$signature_all.dialog(b);\n};\nvar _kingDialog$$module$webapp$kinggrid$signature_all = function kingDialog$$module$webapp$kinggrid$signature_all(a, b) {\n var c = this;\n if (!(c instanceof _kingDialog$$module$webapp$kinggrid$signature_all)) return new _kingDialog$$module$webapp$kinggrid$signature_all(a, b);\n var d = Utils$$module$webapp$kinggrid$signature_all.extend({}, plus$$module$webapp$kinggrid$signature_all.dialogConfig, b),\n e = d.onOk;\n e && (delete d.onOk, d.ok = function () {\n return e.call(c);\n });\n var f = d.onCancel;\n f && (delete d.onCancel, d.cancel = function () {\n return f.call(c);\n });\n c.init(a, d);\n c.options = b;\n c.id = a;\n },\n dialogProto$$module$webapp$kinggrid$signature_all = _kingDialog$$module$webapp$kinggrid$signature_all.prototype;\ndialogProto$$module$webapp$kinggrid$signature_all.init = function (a, b) {\n this[0] = createDialog$$module$webapp$kinggrid$signature_all(a, b);\n return this;\n};\ndialogProto$$module$webapp$kinggrid$signature_all.on = function (a, b) {\n this[0][\"on\" + a] = b;\n};\ndialogProto$$module$webapp$kinggrid$signature_all.show = function (a) {\n this.options.iconClose && this[0]._$(\"close\").hide();\n this.options.onShow && this.options.onShow.call(this);\n this[0].show();\n return this;\n};\ndialogProto$$module$webapp$kinggrid$signature_all.remove = function () {\n this[0].remove();\n delete this[0];\n};\ndialogProto$$module$webapp$kinggrid$signature_all.close = function () {\n this[0].close();\n return this;\n};\ndialogProto$$module$webapp$kinggrid$signature_all.content = function (a) {\n this[0].content(a);\n return this;\n};\ndialogProto$$module$webapp$kinggrid$signature_all.find = function (a) {\n return this[0]._popup.find(a);\n};\nThenjs$$module$webapp$kinggrid$signature_all.onerror = function (a) {\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n if (Utils$$module$webapp$kinggrid$signature_all.is(\"String\", a)) \"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType && _Signature$$module$webapp$kinggrid$signature_all.options.isResponseErr && \"connectionErr\" == a ? void 0 : _Signature$$module$webapp$kinggrid$signature_all.options.errorCall ? _Signature$$module$webapp$kinggrid$signature_all.options.errorCall.call(null, {\n result: !1,\n errcode: a\n }) : plus$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(a, \"then\"), function () {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgOkCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgOkCall.call();\n }, function () {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall.call();\n });else throw a;\n};\nvar Switcher$$module$webapp$kinggrid$signature_all = function Switcher$$module$webapp$kinggrid$signature_all(a, b) {\n var c = this;\n c.target = $$$module$webapp$kinggrid$signature_all(a);\n b && $$$module$webapp$kinggrid$signature_all.each(b, function (a, b) {\n if (\"function\" === typeof c[a]) c[a](b);else c[a] = b;\n });\n c.init();\n};\nUtils$$module$webapp$kinggrid$signature_all.extend(Switcher$$module$webapp$kinggrid$signature_all.prototype, {\n running: !1,\n index: 0,\n animate: !0,\n init: function init() {\n var a = this.target,\n b = this.wrapper = a.find(\".kg-wrapper\"),\n c = this.guide = a.find(\".kg-guide\");\n a = b.children(\".kg-slide\");\n var d = parseInt(a.css(\"height\")),\n e = a.outerWidth(!0);\n b.css({\n height: d,\n width: a.length * e\n });\n this.count = a.length;\n b = parseFloat(this.index, 10) || 0;\n a.each(function (a) {\n this.setAttribute(\"index\", a);\n c.append('');\n });\n this._active(b);\n },\n _active: function _active(a) {\n var b = this.index;\n this.wrapper.children().eq(b).removeClass(\"active\");\n this.guide.children().eq(b).removeClass(\"active\");\n this.wrapper.children().eq(a).addClass(\"active\");\n this.guide.children().eq(a).addClass(\"active\");\n this.index = a;\n },\n to: function to(a) {\n var b = this;\n if (!b.running) {\n var c = a % this.count;\n c != b.index && (b.running = !0, a = b.wrapper.children().eq(c), a = -c * a.outerWidth(!0), this.animate ? this.wrapper.animate({\n left: a\n }, 100, function () {\n b._active(c);\n b.running = !1;\n }) : (this.wrapper.css({\n left: a\n }), b._active(c), b.running = !1));\n }\n },\n swipePrev: function swipePrev() {\n var a = this.index - 1;\n 0 > a && (a = this.wrapper.children().length - 1);\n this.to(a);\n },\n swipeNext: function swipeNext() {\n var a = this.index + 1,\n b = this.wrapper.children().length;\n a + 1 > b && (a = 0);\n this.to(a);\n }\n});\nUtils$$module$webapp$kinggrid$signature_all.Switcher = Switcher$$module$webapp$kinggrid$signature_all;\nvar Tab$$module$webapp$kinggrid$signature_all = function Tab$$module$webapp$kinggrid$signature_all(a) {\n this.target = a;\n var b = this.nav = this.target.find(\".kg-nav\");\n this.content = this.target.find(\".kg-tab-content\");\n a = b.children();\n b = b.children(\".active\");\n 0 == b.length && (b = a.eq(0));\n this.active(b);\n this.init();\n};\nTab$$module$webapp$kinggrid$signature_all.prototype = {\n active: function active(a) {\n this.activeLi && (this.activeContent.removeClass(\"active\"), this.activeLi.removeClass(\"active\"));\n a.addClass(\"active\");\n var b = a.children(\"a\").attr(\"kg-target\");\n b = this.target.find(\".\" + b);\n b.addClass(\"active\");\n this.activeLi = a;\n this.activeContent = b;\n },\n init: function init() {\n var a = this;\n this.target.find(\".kg-nav li\").click(function (b) {\n b.preventDefault();\n b = $$$module$webapp$kinggrid$signature_all(this);\n b.hasClass(\"active\") || a.active(b);\n });\n }\n};\nUtils$$module$webapp$kinggrid$signature_all.tab = function (a) {\n return new Tab$$module$webapp$kinggrid$signature_all(a);\n};\nvar plus$$module$webapp$kinggrid$signature_all = {\n dialogConfig: dialogConfig$$module$webapp$kinggrid$signature_all,\n alertConfig: {},\n loadingConfig: {}\n },\n showCacheDialog$$module$webapp$kinggrid$signature_all = function showCacheDialog$$module$webapp$kinggrid$signature_all(a, b, c) {\n var d = dialogList$$module$webapp$kinggrid$signature_all[a];\n if (!d) {\n var e = c.okCall;\n e && delete c.okCall;\n c = Utils$$module$webapp$kinggrid$signature_all.extend({\n onOk: function onOk() {\n var a = !0;\n e && (a = 0 == e.call(this) ? !1 : !0);\n a && this.close().remove();\n return !1;\n },\n cancel: !1\n }, c);\n d = dialogList$$module$webapp$kinggrid$signature_all[a] = plus$$module$webapp$kinggrid$signature_all.showDialog(a, c);\n }\n d.on(\"remove\", function () {\n delete dialogList$$module$webapp$kinggrid$signature_all[a];\n });\n d.content(b);\n return d;\n };\nplus$$module$webapp$kinggrid$signature_all.alert = function (a, b, c) {\n b = Utils$$module$webapp$kinggrid$signature_all.extend({\n title: \"\\u63D0\\u793A\",\n onShow: c,\n okCall: b\n }, plus$$module$webapp$kinggrid$signature_all.alertConfig);\n return showCacheDialog$$module$webapp$kinggrid$signature_all(\"alert\", '
' + a + \"
\", b);\n};\nplus$$module$webapp$kinggrid$signature_all.showLoading = function (a) {\n a = Utils$$module$webapp$kinggrid$signature_all.extend({\n onOk: !1\n }, plus$$module$webapp$kinggrid$signature_all.loadingConfig);\n return showCacheDialog$$module$webapp$kinggrid$signature_all(\"loading\", \"
\", a);\n};\nplus$$module$webapp$kinggrid$signature_all.hideLoading = function () {\n var a = dialogList$$module$webapp$kinggrid$signature_all.loading;\n a && a.close().remove();\n};\nplus$$module$webapp$kinggrid$signature_all.hideDialog = function (a) {\n (a = root$$module$webapp$kinggrid$signature_all.dialog.list[a]) && a.close().remove();\n};\nplus$$module$webapp$kinggrid$signature_all.showDialog = function (a, b) {\n a = _kingDialog$$module$webapp$kinggrid$signature_all(a, b);\n a.show();\n return a;\n};\nvar template$$module$webapp$kinggrid$signature_all = plus$$module$webapp$kinggrid$signature_all.template = {\n sealTpl_nopassword: \"
\\t
<% var seals = this.seals; %><% for(var i=0;i<%}%>
<% if(this.signDateIsCheck){ %>     <%}else{%>     <%}%><% if(this.showProtectedBtn){%> <%}%>
\",\n sealTpl: \"
\\t
<% var seals = this.seals; %><% for(var i=0;i<%}%>
<% if(this.signDateIsCheck){ %>  <%}else{%>  <%}%>
 <% if(this.showProtectedBtn){%> <%}%>
\",\n passwordTpl: \"
 
\"\n },\n font$$module$webapp$kinggrid$signature_all = plus$$module$webapp$kinggrid$signature_all.fontTemplate = {\n fontFormat: \"yyyy-M-d;yyyy.M.d;yyyy/M/d;yyyy\\u5E74M\\u6708d\\u65E5;yy/M/d;yy.M.d;yyyy-MM-dd;yyyy/MM/dd;yyyy.MM.dd;yyyy\\u5E74M\\u6708d\\u65E5*;yyyy\\u5E74M\\u6708d\\u65E5**;MM/dd;MM.dd;M/d;M.d;d-MMM-yyyy;d-MMM-yy;yyyy-M-d hh:mm:ss\".split(\";\"),\n fontFamily: \"@Arial Unicode MS;@Fixedsys;@Malgun Gothic;@Malgun Gothic Semilight;@Meiryo;@Meiryo UI;@Microsoft JhengHei;@Microsoft JhengHei Light;@Microsoft JhengHei UI;@Microsoft JhengHei UI Light;@Microsoft YaHei UI;@Microsoft YaHei UI Light;@MingLiU_HKSCS-ExtB;@MingLiU-ExtB;@MS Gothic;@MS PGothic;@MS UI Gothic;@PMingLiU-ExtB;@SimSun-ExtB;@System;@Terminal;@Yu Gothic;@Yu Gothic Light;@Yu Gothic Medium;@Yu Gothic UI;@Yu Gothic UI Light;@Yu Gothic UI Semibold;@Yu Gothic UI Semilight;@\\u7B49\\u7EBF;@\\u7B49\\u7EBF Light;@\\u65B9\\u6B63\\u5170\\u4EAD\\u8D85\\u7EC6\\u9ED1\\u7B80\\u4F53;@\\u65B9\\u6B63\\u8212\\u4F53;@\\u65B9\\u6B63\\u59DA\\u4F53;@\\u4EFF\\u5B8B;@\\u9ED1\\u4F53;@\\u534E\\u6587\\u5F69\\u4E91;@\\u534E\\u6587\\u4EFF\\u5B8B;@\\u534E\\u6587\\u884C\\u6977;@\\u534E\\u6587\\u7425\\u73C0;@\\u534E\\u6587\\u6977\\u4F53;@\\u534E\\u6587\\u96B6\\u4E66;@\\u534E\\u6587\\u5B8B\\u4F53;@\\u534E\\u6587\\u7EC6\\u9ED1;@\\u534E\\u6587\\u65B0\\u9B4F;@\\u534E\\u6587\\u4E2D\\u5B8B;@\\u6977\\u4F53;@\\u96B6\\u4E66;@\\u5B8B\\u4F53;@\\u5FAE\\u8F6F\\u96C5\\u9ED1;@\\u5FAE\\u8F6F\\u96C5\\u9ED1 Light;@\\u65B0\\u5B8B\\u4F53;@\\u5E7C\\u5706;ADMUI3Lg;ADMUI3Sm;Agency FB;Algerian;Arial;Arial Black;Arial Narrow;Arial Rounded MT Bold;Arial Unicode MS;Axure Handwriting;Baskerville Old Face;Bauhaus 93;Bell MT;Berlin Sans FB;Berlin Sans FB Demi;Bernard MT Condensed;Blackadder ITC;Bodoni MT;Bodoni MT Black;Bodoni MT Condensed;Bodoni MT Poster Compressed;Book Antiqua;Bookman Old Style;Bookshelf Symbol 7;Bradley Hand ITC;Britannic Bold;Broadway;Brush Script MT;Calibri;Calibri Light;Californian FB;Calisto MT;Cambria;Cambria Math;Candara;Castellar;Centaur;Century;Century Gothic;Century Schoolbook;Chiller;Colonna MT;Comic Sans MS;Consolas;Constantia;Cooper Black;Copperplate Gothic Bold;Copperplate Gothic Light;Corbel;Courier;Courier New;Curlz MT;Default;Ebrima;Edwardian Script ITC;Elephant;Engravers MT;Eras Bold ITC;Eras Demi ITC;Eras Light ITC;Eras Medium ITC;Euro Sign;Felix Titling;Fixedsys;Footlight MT Light;Forte;Franklin Gothic Book;Franklin Gothic Demi;Franklin Gothic Demi Cond;Franklin Gothic Heavy;Franklin Gothic Medium;Franklin Gothic Medium Cond;Freestyle Script;French Script MT;Gabriola;Gadugi;Garamond;Georgia;Gigi;Gill Sans MT;Gill Sans MT Condensed;Gill Sans MT Ext Condensed Bold;Gill Sans Ultra Bold;Gill Sans Ultra Bold Condensed;Gloucester MT Extra Condensed;Goudy Old Style;Goudy Stout;Haettenschweiler;Harlow Solid Italic;Harrington;High Tower Text;Impact;Imprint MT Shadow;Informal Roman;Javanese Text;Jokerman;Juice ITC;Kristen ITC;Kunstler Script;Leelawadee UI;Leelawadee UI Semilight;Lucida Bright;Lucida Calligraphy;Lucida Console;Lucida Fax;Lucida Handwriting;Lucida Sans;Lucida Sans Typewriter;Lucida Sans Unicode;Magneto;Maiandra GD;Malgun Gothic;Malgun Gothic Semilight;Marlett;Matura MT Script Capitals;Meiryo;Meiryo UI;Microsoft Himalaya;Microsoft JhengHei;Microsoft JhengHei Light;Microsoft JhengHei UI;Microsoft JhengHei UI Light;Microsoft New Tai Lue;Microsoft PhagsPa;Microsoft Sans Serif;Microsoft Tai Le;Microsoft YaHei UI;Microsoft YaHei UI Light;Microsoft Yi Baiti;MingLiU_HKSCS-ExtB;MingLiU-ExtB;Mistral;Modern;Modern No. 20;Mongolian Baiti;Monotype Corsiva;MS Gothic;MS Outlook;MS PGothic;MS Reference Sans Serif;MS Reference Specialty;MS Sans Serif;MS Serif;MS UI Gothic;MT Extra;MV Boli;Myanmar Text;Niagara Engraved;Niagara Solid;Nirmala UI;Nirmala UI Semilight;OCR A Extended;Old English Text MT;Onyx;Palace Script MT;Palatino Linotype;Papyrus;Parchment;Perpetua;Perpetua Titling MT;Playbill;PMingLiU-ExtB;Poor Richard;Pristina;Rage Italic;Ravie;Rockwell;Rockwell Condensed;Rockwell Extra Bold;Roman;Script;Script MT Bold;Segoe MDL2 Assets;Segoe Print;Segoe Script;Segoe UI;Segoe UI Black;Segoe UI Emoji;Segoe UI Historic;Segoe UI Light;Segoe UI Semibold;Segoe UI Semilight;Segoe UI Symbol;Showcard Gothic;SimSun-ExtB;Sitka Banner;Sitka Display;Sitka Heading;Sitka Small;Sitka Subheading;Sitka Text;Small Fonts;Snap ITC;Stencil;Sylfaen;Symbol;System;Tahoma;TeamViewer11;Tempus Sans ITC;Terminal;Times New Roman;Trebuchet MS;Tw Cen MT;Tw Cen MT Condensed;Tw Cen MT Condensed Extra Bold;Verdana;Viner Hand ITC;Vivaldi;Vladimir Script;Webdings;Wide Latin;Wingdings;Wingdings 2;Wingdings 3;Yu Gothic;Yu Gothic Light;Yu Gothic Medium;Yu Gothic UI;Yu Gothic UI Light;Yu Gothic UI Semibold;Yu Gothic UI Semilight;ZWAdobeF;\\u7B49\\u7EBF;\\u7B49\\u7EBF Light;\\u65B9\\u6B63\\u5170\\u4EAD\\u8D85\\u7EC6\\u9ED1\\u7B80\\u4F53;\\u65B9\\u6B63\\u8212\\u4F53;\\u65B9\\u6B63\\u59DA\\u4F53;\\u4EFF\\u5B8B;\\u9ED1\\u4F53;\\u534E\\u6587\\u5F69\\u4E91;\\u534E\\u6587\\u4EFF\\u5B8B;\\u534E\\u6587\\u884C\\u6977;\\u534E\\u6587\\u7425\\u73C0;\\u534E\\u6587\\u6977\\u4F53;\\u534E\\u6587\\u96B6\\u4E66;\\u534E\\u6587\\u5B8B\\u4F53;\\u534E\\u6587\\u7EC6\\u9ED1;\\u534E\\u6587\\u65B0\\u9B4F;\\u534E\\u6587\\u4E2D\\u5B8B;\\u6977\\u4F53;\\u96B6\\u4E66;\\u5B8B\\u4F53;\\u5FAE\\u8F6F\\u96C5\\u9ED1;\\u5FAE\\u8F6F\\u96C5\\u9ED1 Light;\\u65B0\\u5B8B\\u4F53;\\u5E7C\\u5706\".split(\";\"),\n fontSize: [8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72],\n fontColor: \"#000000 #800000 #008000 #808000 #000080 #800080 #008080 #808080 #C0C0C0 #FFFFFF #FF0000 #00FF00 #FFFF00 #0000FF #FF00FF #00FFFF\".split(\" \"),\n fontPosition: [[\"center\", \"middle\", \"inside\", \"\", \"\"], [\"center\", \"bottom\", \"inside\", \"\", \"\"], [\"right\", \"middle\", \"inside\", \"\", \"\"], [\"right\", \"bottom\", \"inside\", \"\", \"\"], [\"right\", \"top\", \"outside\", \"left\", \"\"], [\"center\", \"top\", \"outside\", \"\", \"below\"], [\"left\", \"middle\", \"outside\", \"right\", \"\"], [\"right\", \"top\", \"outside\", \"\", \"below\"], [\"left\", \"bottom\", \"outside\", \"right\", \"\"], [\"left\", \"top\", \"outside\", \"right\", \"below\"]],\n position: \"\\u5C45\\u4E2D \\u5C45\\u4E2D\\u4E0B(\\u7AE0\\u5185) \\u5C45\\u53F3\\u4E2D(\\u7AE0\\u5185) \\u5C45\\u53F3\\u4E0B(\\u7AE0\\u5185) \\u5C45\\u5DE6\\u4E0A(\\u7AE0\\u5916) \\u5C45\\u4E2D\\u4E0B(\\u7AE0\\u5916) \\u5C45\\u53F3\\u4E2D(\\u7AE0\\u5916) \\u5C45\\u53F3\\u4E0B(\\u7AE0\\u4E0B) \\u5C45\\u53F3\\u4E0B(\\u7AE0\\u53F3) \\u5C45\\u53F3\\u4E0B(\\u7AE0\\u53F3\\u4E0B)\".split(\" \")\n },\n dafaultDate$$module$webapp$kinggrid$signature_all = plus$$module$webapp$kinggrid$signature_all.dafaultDate = \"2017/01/01 12:00:00\",\n defaultFont$$module$webapp$kinggrid$signature_all = plus$$module$webapp$kinggrid$signature_all.defaultFont = {\n fontFormat: plus$$module$webapp$kinggrid$signature_all.fontTemplate.fontFormat[0],\n fontFamily: \"\\u5B8B\\u4F53\",\n fontSize: 12,\n fontColor: \"#000000\",\n position: plus$$module$webapp$kinggrid$signature_all.fontTemplate.position[0]\n };\nplus$$module$webapp$kinggrid$signature_all.kgFont = function (a) {\n var b = {};\n b.fontFormat = a.fontFormat ? a.fontFormat : plus$$module$webapp$kinggrid$signature_all.defaultFont.fontFormat;\n b.fontFamily = a.fontFamily ? a.fontFamily : plus$$module$webapp$kinggrid$signature_all.defaultFont.fontFamily;\n b.fontSize = a.fontSize ? a.fontSize : plus$$module$webapp$kinggrid$signature_all.defaultFont.fontSize;\n b.fontColor = a.fontColor ? a.fontColor : plus$$module$webapp$kinggrid$signature_all.defaultFont.fontColor;\n null != a.position ? (a = jQuery.inArray(a.position, plus$$module$webapp$kinggrid$signature_all.fontTemplate.position), b.fontPosition = plus$$module$webapp$kinggrid$signature_all.fontTemplate.fontPosition[a]) : a.fontPositionIndex ? b.fontPosition = plus$$module$webapp$kinggrid$signature_all.fontTemplate.fontPosition[a.fontPositionIndex] : (a = jQuery.inArray(plus$$module$webapp$kinggrid$signature_all.defaultFont.position, plus$$module$webapp$kinggrid$signature_all.fontTemplate.position), b.fontPosition = plus$$module$webapp$kinggrid$signature_all.fontTemplate.fontPosition[a]);\n return b;\n};\nvar formatArgs$$module$webapp$kinggrid$signature_all = function formatArgs$$module$webapp$kinggrid$signature_all(a) {\n var b = [a],\n c = Utils$$module$webapp$kinggrid$signature_all.slice(arguments, 1),\n d;\n if (0 < c.length) {\n var e = c[0];\n 1 < c.length && (d = c.slice(1));\n }\n b.push(e);\n return b.concat(d);\n};\nplus$$module$webapp$kinggrid$signature_all.showTplDialog = function (a, b, c) {\n var d = Utils$$module$webapp$kinggrid$signature_all.slice(arguments, 2),\n e = Utils$$module$webapp$kinggrid$signature_all.extend({\n content: function content() {\n return Utils$$module$webapp$kinggrid$signature_all.template.apply(null, [template$$module$webapp$kinggrid$signature_all[a]].concat(d));\n }\n }, b);\n return plus$$module$webapp$kinggrid$signature_all.showDialog(a, e);\n};\nplus$$module$webapp$kinggrid$signature_all.showTemplateDialog = function (a) {\n var b = formatArgs$$module$webapp$kinggrid$signature_all.apply(null, Utils$$module$webapp$kinggrid$signature_all.slice(arguments));\n return plus$$module$webapp$kinggrid$signature_all.showTplDialog.apply(plus$$module$webapp$kinggrid$signature_all, b);\n};\nplus$$module$webapp$kinggrid$signature_all.create = function (a) {\n Utils$$module$webapp$kinggrid$signature_all.extend(this, plus$$module$webapp$kinggrid$signature_all);\n this.king = a;\n};\nvar noop$$module$webapp$kinggrid$signature_all = function noop$$module$webapp$kinggrid$signature_all() {\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n return !0;\n};\nproto$$module$webapp$kinggrid$signature_all = plus$$module$webapp$kinggrid$signature_all.create.prototype;\nvar kingPlus$$module$webapp$kinggrid$signature_all = function kingPlus$$module$webapp$kinggrid$signature_all(a) {\n return 0 == arguments.length ? plus$$module$webapp$kinggrid$signature_all : new plus$$module$webapp$kinggrid$signature_all.create(a);\n};\nkingPlus$$module$webapp$kinggrid$signature_all.changeSkin = function (a) {\n Utils$$module$webapp$kinggrid$signature_all.extend(_kingDialog$$module$webapp$kinggrid$signature_all.prototype, a);\n};\nroot$$module$webapp$kinggrid$signature_all.kingPlus = kingPlus$$module$webapp$kinggrid$signature_all;\nvar CryptoJS$$module$webapp$kinggrid$signature_all = CryptoJS$$module$webapp$kinggrid$signature_all || function (a, b) {\n var c = {},\n d = c.lib = {},\n e = d.Base = function () {\n function a() {}\n return {\n extend: function extend(b) {\n a.prototype = this;\n var c = new a();\n b && c.mixIn(b);\n c.hasOwnProperty(\"init\") || (c.init = function () {\n c.$super.init.apply(this, arguments);\n });\n c.init.prototype = c;\n c.$super = this;\n return c;\n },\n create: function create() {\n var a = this.extend();\n a.init.apply(a, arguments);\n return a;\n },\n init: function init() {},\n mixIn: function mixIn(a) {\n for (var b in a) a.hasOwnProperty(b) && (this[b] = a[b]);\n a.hasOwnProperty(\"toString\") && (this.toString = a.toString);\n },\n clone: function clone() {\n return this.init.prototype.extend(this);\n }\n };\n }(),\n f = d.WordArray = e.extend({\n init: function init(a, c) {\n a = this.words = a || [];\n this.sigBytes = c != b ? c : 4 * a.length;\n },\n toString: function toString(a) {\n return (a || h).stringify(this);\n },\n concat: function concat(a) {\n var b = this.words,\n c = a.words,\n d = this.sigBytes;\n a = a.sigBytes;\n this.clamp();\n if (d % 4) for (var e = 0; e < a; e++) b[d + e >>> 2] |= (c[e >>> 2] >>> 24 - e % 4 * 8 & 255) << 24 - (d + e) % 4 * 8;else if (65535 < c.length) for (e = 0; e < a; e += 4) b[d + e >>> 2] = c[e >>> 2];else b.push.apply(b, c);\n this.sigBytes += a;\n return this;\n },\n clamp: function clamp() {\n var b = this.words,\n c = this.sigBytes;\n b[c >>> 2] &= 4294967295 << 32 - c % 4 * 8;\n b.length = a.ceil(c / 4);\n },\n clone: function clone() {\n var a = e.clone.call(this);\n a.words = this.words.slice(0);\n return a;\n },\n random: function random(b) {\n for (var c = [], d = 0; d < b; d += 4) c.push(4294967296 * a.random() | 0);\n return new f.init(c, b);\n }\n }),\n g = c.enc = {},\n h = g.Hex = {\n stringify: function stringify(a) {\n var b = a.words;\n a = a.sigBytes;\n for (var c = [], d = 0; d < a; d++) {\n var e = b[d >>> 2] >>> 24 - d % 4 * 8 & 255;\n c.push((e >>> 4).toString(16));\n c.push((e & 15).toString(16));\n }\n return c.join(\"\");\n },\n parse: function parse(a) {\n for (var b = a.length, c = [], d = 0; d < b; d += 2) c[d >>> 3] |= parseInt(a.substr(d, 2), 16) << 24 - d % 8 * 4;\n return new f.init(c, b / 2);\n }\n },\n k = g.Latin1 = {\n stringify: function stringify(a) {\n var b = a.words;\n a = a.sigBytes;\n for (var c = [], d = 0; d < a; d++) c.push(String.fromCharCode(b[d >>> 2] >>> 24 - d % 4 * 8 & 255));\n return c.join(\"\");\n },\n parse: function parse(a) {\n for (var b = a.length, c = [], d = 0; d < b; d++) c[d >>> 2] |= (a.charCodeAt(d) & 255) << 24 - d % 4 * 8;\n return new f.init(c, b);\n }\n },\n l = g.Utf8 = {\n stringify: function stringify(a) {\n try {\n return decodeURIComponent(escape(k.stringify(a)));\n } catch (r) {\n throw Error(\"Malformed UTF-8 data\");\n }\n },\n parse: function parse(a) {\n return k.parse(unescape(encodeURIComponent(a)));\n }\n },\n m = d.BufferedBlockAlgorithm = e.extend({\n reset: function reset() {\n this._data = new f.init();\n this._nDataBytes = 0;\n },\n _append: function _append(a) {\n \"string\" == typeof a && (a = l.parse(a));\n this._data.concat(a);\n this._nDataBytes += a.sigBytes;\n },\n _process: function _process(b) {\n var c = this._data,\n d = c.words,\n e = c.sigBytes,\n g = this.blockSize,\n h = e / (4 * g);\n h = b ? a.ceil(h) : a.max((h | 0) - this._minBufferSize, 0);\n b = h * g;\n e = a.min(4 * b, e);\n if (b) {\n for (var m = 0; m < b; m += g) this._doProcessBlock(d, m);\n m = d.splice(0, b);\n c.sigBytes -= e;\n }\n return new f.init(m, e);\n },\n clone: function clone() {\n var a = e.clone.call(this);\n a._data = this._data.clone();\n return a;\n },\n _minBufferSize: 0\n });\n d.Hasher = m.extend({\n cfg: e.extend(),\n init: function init(a) {\n this.cfg = this.cfg.extend(a);\n this.reset();\n },\n reset: function reset() {\n m.reset.call(this);\n this._doReset();\n },\n update: function update(a) {\n this._append(a);\n this._process();\n return this;\n },\n finalize: function finalize(a) {\n a && this._append(a);\n return this._doFinalize();\n },\n blockSize: 16,\n _createHelper: function _createHelper(a) {\n return function (b, c) {\n return new a.init(c).finalize(b);\n };\n },\n _createHmacHelper: function _createHmacHelper(a) {\n return function (b, c) {\n return new p.HMAC.init(a, c).finalize(b);\n };\n }\n });\n var p = c.algo = {};\n return c;\n}(Math);\n(function () {\n var a = CryptoJS$$module$webapp$kinggrid$signature_all,\n b = a.lib,\n c = b.WordArray,\n d = b.Hasher,\n e = [];\n b = a.algo.SHA1 = d.extend({\n _doReset: function _doReset() {\n this._hash = new c.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);\n },\n _doProcessBlock: function _doProcessBlock(a, b) {\n for (var c = this._hash.words, d = c[0], f = c[1], g = c[2], p = c[3], n = c[4], r = 0; 80 > r; r++) {\n if (16 > r) e[r] = a[b + r] | 0;else {\n var q = e[r - 3] ^ e[r - 8] ^ e[r - 14] ^ e[r - 16];\n e[r] = q << 1 | q >>> 31;\n }\n q = (d << 5 | d >>> 27) + n + e[r];\n q = 20 > r ? q + ((f & g | ~f & p) + 1518500249) : 40 > r ? q + ((f ^ g ^ p) + 1859775393) : 60 > r ? q + ((f & g | f & p | g & p) - 1894007588) : q + ((f ^ g ^ p) - 899497514);\n n = p;\n p = g;\n g = f << 30 | f >>> 2;\n f = d;\n d = q;\n }\n c[0] = c[0] + d | 0;\n c[1] = c[1] + f | 0;\n c[2] = c[2] + g | 0;\n c[3] = c[3] + p | 0;\n c[4] = c[4] + n | 0;\n },\n _doFinalize: function _doFinalize() {\n var a = this._data,\n b = a.words,\n c = 8 * this._nDataBytes,\n d = 8 * a.sigBytes;\n b[d >>> 5] |= 128 << 24 - d % 32;\n b[(d + 64 >>> 9 << 4) + 14] = Math.floor(c / 4294967296);\n b[(d + 64 >>> 9 << 4) + 15] = c;\n a.sigBytes = 4 * b.length;\n this._process();\n return this._hash;\n },\n clone: function clone() {\n var a = d.clone.call(this);\n a._hash = this._hash.clone();\n return a;\n }\n });\n a.SHA1 = d._createHelper(b);\n a.HmacSHA1 = d._createHmacHelper(b);\n})(this);\nvar $$$module$webapp$kinggrid$signature_all = window.jQuery;\nkingPlus$$module$webapp$kinggrid$signature_all = window.kingPlus;\nisIE8$$module$webapp$kinggrid$signature_all = !1;\nroot$$module$webapp$kinggrid$signature_all.JSON && (isIE8$$module$webapp$kinggrid$signature_all = \"{\\\"x\\\":\\\"\\u4E2D\\\"}\" !== root$$module$webapp$kinggrid$signature_all.JSON.stringify({\n x: \"\\u4E2D\"\n}));\nvar canCanvas$$module$webapp$kinggrid$signature_all = !0;\ntry {\n root$$module$webapp$kinggrid$signature_all.document.createElement(\"canvas\").getContext(\"2d\");\n} catch (a) {\n canCanvas$$module$webapp$kinggrid$signature_all = !1;\n}\nfunction stringify$$module$webapp$kinggrid$signature_all(a) {\n a = JSON.stringify(a);\n return isIE8$$module$webapp$kinggrid$signature_all ? a.replace(/\\\\u([0-9a-fA-F]{2,4})/g, function (a, c) {\n return String.fromCharCode(parseInt(c, 16));\n }) : a;\n}\nvar now$$module$webapp$kinggrid$signature_all = function now$$module$webapp$kinggrid$signature_all() {\n return new Date().getTime();\n};\nfunction rnd$$module$webapp$kinggrid$signature_all(a) {\n return (9301 * a + 49297) % 233280 / 233280;\n}\nfunction rand$$module$webapp$kinggrid$signature_all() {\n var a = \"\" + Math.ceil(99999 * rnd$$module$webapp$kinggrid$signature_all(new Date().getTime())),\n b = 5 - a.length;\n if (0 < b) for (var c = 0; c < b; c++) a = \"0\" + a;\n return a;\n}\nUtils$$module$webapp$kinggrid$signature_all = kinggrid.Utils;\nvar $window$$module$webapp$kinggrid$signature_all = $$$module$webapp$kinggrid$signature_all(window),\n $document$$module$webapp$kinggrid$signature_all = $$$module$webapp$kinggrid$signature_all(document),\n html$$module$webapp$kinggrid$signature_all = document.documentElement,\n isIE6$$module$webapp$kinggrid$signature_all = !(\"minWidth\" in html$$module$webapp$kinggrid$signature_all.style),\n isLosecapture$$module$webapp$kinggrid$signature_all = !isIE6$$module$webapp$kinggrid$signature_all && \"onlosecapture\" in html$$module$webapp$kinggrid$signature_all,\n isSetCapture$$module$webapp$kinggrid$signature_all = \"setCapture\" in html$$module$webapp$kinggrid$signature_all,\n isTouch$$module$webapp$kinggrid$signature_all,\n EventTypes$$module$webapp$kinggrid$signature_all,\n getEvent$$module$webapp$kinggrid$signature_all = function getEvent$$module$webapp$kinggrid$signature_all(a) {\n isTouch$$module$webapp$kinggrid$signature_all && (a = a.originalEvent ? a.originalEvent.touches.item(0) : a.touches.item(0));\n return a;\n },\n Drag$$module$webapp$kinggrid$signature_all = function Drag$$module$webapp$kinggrid$signature_all(a) {\n this.start = $$$module$webapp$kinggrid$signature_all.proxy(this.start, this);\n this.over = $$$module$webapp$kinggrid$signature_all.proxy(this.over, this);\n this.end = $$$module$webapp$kinggrid$signature_all.proxy(this.end, this);\n this.onstart = this.onover = this.onend = $$$module$webapp$kinggrid$signature_all.noop;\n EventTypes$$module$webapp$kinggrid$signature_all || (isTouch$$module$webapp$kinggrid$signature_all = \"mousedown\" != a.type, EventTypes$$module$webapp$kinggrid$signature_all = {\n start: isTouch$$module$webapp$kinggrid$signature_all ? \"touchstart\" : \"mousedown\",\n over: isTouch$$module$webapp$kinggrid$signature_all ? \"touchmove\" : \"mousemove\",\n end: isTouch$$module$webapp$kinggrid$signature_all ? \"touchend\" : \"mouseup\"\n });\n };\nDrag$$module$webapp$kinggrid$signature_all.prototype = {\n start: function start(a) {\n a = this.startFix(a);\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"dragStart\", this, a);\n $document$$module$webapp$kinggrid$signature_all.on(EventTypes$$module$webapp$kinggrid$signature_all.over, this.over).on(EventTypes$$module$webapp$kinggrid$signature_all.end, this.end);\n this.onstart(a);\n return !1;\n },\n over: function over(a) {\n a = this.overFix(a);\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"dragOver\", this, a);\n this.onover(a);\n return !1;\n },\n end: function end(a) {\n a = this.endFix(a);\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"dragEnd\", this, a);\n $document$$module$webapp$kinggrid$signature_all.off(EventTypes$$module$webapp$kinggrid$signature_all.over, this.over).off(EventTypes$$module$webapp$kinggrid$signature_all.end, this.end);\n this.onend(a);\n return !1;\n },\n startFix: function startFix(a) {\n a = getEvent$$module$webapp$kinggrid$signature_all(a);\n this.target = $$$module$webapp$kinggrid$signature_all(a.target);\n this.selectstart = function () {\n return !1;\n };\n $document$$module$webapp$kinggrid$signature_all.on(\"selectstart\", this.selectstart).on(\"dblclick\", this.end);\n if (isLosecapture$$module$webapp$kinggrid$signature_all) this.target.on(\"losecapture\", this.end);else $window$$module$webapp$kinggrid$signature_all.on(\"blur\", this.end);\n isSetCapture$$module$webapp$kinggrid$signature_all && this.target[0].setCapture();\n return a;\n },\n overFix: function overFix(a) {\n return a = getEvent$$module$webapp$kinggrid$signature_all(a);\n },\n endFix: function endFix(a) {\n a = getEvent$$module$webapp$kinggrid$signature_all(a);\n $document$$module$webapp$kinggrid$signature_all.off(\"selectstart\", this.selectstart).off(\"dblclick\", this.end);\n isLosecapture$$module$webapp$kinggrid$signature_all ? this.target.off(\"losecapture\", this.end) : $window$$module$webapp$kinggrid$signature_all.off(\"blur\", this.end);\n isSetCapture$$module$webapp$kinggrid$signature_all && this.target[0].releaseCapture();\n return a;\n }\n};\nDrag$$module$webapp$kinggrid$signature_all.create = function (a, b, c) {\n var d = $$$module$webapp$kinggrid$signature_all(a),\n e = new Drag$$module$webapp$kinggrid$signature_all(b),\n f = EventTypes$$module$webapp$kinggrid$signature_all.start,\n g = function g() {},\n h = a.className.replace(/^\\s|\\s.*/g, \"\") + \"-drag-start\",\n k = d[0].style,\n l,\n m,\n p,\n n,\n r = 0,\n q = 0,\n B = parseInt(k.left),\n v = parseInt(k.top),\n E = B,\n x = v,\n y = B,\n z = v;\n c && (E = parseInt(k.marginLeft), x = parseInt(k.marginTop), y = E, z = x);\n var u = {\n onstart: g,\n onover: g,\n onend: g,\n off: function off() {\n d.off(f, e.start);\n }\n },\n w = {\n scale: function scale() {\n var a = 1,\n b = d.parents(\".kg-translate\");\n null != b && (b = b.css(\"transform\"), null != b && (b = b.split(\"(\")[1].split(\")\")[0].split(\",\"), a = b[0], b = b[3], a = Math.max(Math.sqrt(a * a), Math.sqrt(b * b))));\n return a;\n }\n };\n e.onstart = function (b) {\n var c = \"fixed\" === d.css(\"position\"),\n e = $document$$module$webapp$kinggrid$signature_all.scrollLeft(),\n f = $document$$module$webapp$kinggrid$signature_all.scrollTop(),\n g = d.width(),\n k = d.height();\n g *= w.scale();\n k *= w.scale();\n m = l = 0;\n p = c ? $window$$module$webapp$kinggrid$signature_all.width() - g + l : $document$$module$webapp$kinggrid$signature_all.width() - g;\n n = c ? $window$$module$webapp$kinggrid$signature_all.height() - k + m : $document$$module$webapp$kinggrid$signature_all.height() - k;\n k = d.offset();\n g = this.startLeft = c ? k.left - e : k.left;\n c = this.startTop = c ? k.top - f : k.top;\n this.clientX = b.clientX;\n this.clientY = b.clientY;\n k = d.parent();\n k.is(\"body\") || (r = k[0].getBoundingClientRect().left + e, q = k[0].getBoundingClientRect().top + f);\n d.addClass(h);\n u.onstart.call(a, b, g, c);\n };\n e.onover = function (b) {\n var e = b.clientX - this.clientX + this.startLeft,\n f = b.clientY - this.clientY + this.startTop,\n g = d[0].style;\n e = Math.max(l, Math.min(p, e));\n f = Math.max(m, Math.min(n, f));\n c ? (e = g.marginLeft = (e - r - B) / w.scale() + \"px\", f = g.marginTop = (f - q - v) / w.scale() + \"px\") : (e = g.left = (e - r) / w.scale() + \"px\", f = g.top = (f - q) / w.scale() + \"px\");\n y = parseInt(e);\n z = parseInt(f);\n u.onover.call(a, b, e, f);\n };\n e.onend = function (b) {\n var e = d.position(),\n f = e.left;\n e = e.top;\n d.removeClass(h);\n var g = d[0].style,\n m = !0;\n 6 > Math.abs(y - E) && 6 > Math.abs(z - x) && (m = !1);\n c ? u.onend.call(a, b, m, g.marginLeft, g.marginTop) : (void 0, u.onend.call(a, b, m, f, e));\n };\n e.off = function () {\n d.off(f, e.start);\n };\n if (b) e.start(b);else d.on(f, e.start);\n return u;\n};\nvar Listener$$module$webapp$kinggrid$signature_all = kinggrid.Listener,\n Service$$module$webapp$kinggrid$signature_all = function Service$$module$webapp$kinggrid$signature_all() {};\n$$$module$webapp$kinggrid$signature_all.extend(Service$$module$webapp$kinggrid$signature_all.prototype, Listener$$module$webapp$kinggrid$signature_all.prototype);\nvar SealService$$module$webapp$kinggrid$signature_all = function SealService$$module$webapp$kinggrid$signature_all() {};\nSealService$$module$webapp$kinggrid$signature_all.className = SealService$$module$webapp$kinggrid$signature_all.name || \"SealService\";\nUtils$$module$webapp$kinggrid$signature_all.inherit(SealService$$module$webapp$kinggrid$signature_all, Service$$module$webapp$kinggrid$signature_all);\n$$$module$webapp$kinggrid$signature_all.extend(SealService$$module$webapp$kinggrid$signature_all.prototype, {\n loadSeal: function loadSeal() {\n throw Error(\"must impl\");\n },\n saveLog: function saveLog() {},\n verifyPwd: function verifyPwd() {\n throw Error(\"must impl\");\n }\n});\nvar CertService$$module$webapp$kinggrid$signature_all = function CertService$$module$webapp$kinggrid$signature_all() {};\nCertService$$module$webapp$kinggrid$signature_all.className = CertService$$module$webapp$kinggrid$signature_all.name || \"CertService\";\nUtils$$module$webapp$kinggrid$signature_all.inherit(CertService$$module$webapp$kinggrid$signature_all, Service$$module$webapp$kinggrid$signature_all);\n$$$module$webapp$kinggrid$signature_all.extend(CertService$$module$webapp$kinggrid$signature_all.prototype, {\n sign: function sign() {\n throw Error(\"must impl\");\n },\n verifySign: function verifySign() {\n throw Error(\"must impl\");\n }\n});\nvar KgObject$$module$webapp$kinggrid$signature_all = function KgObject$$module$webapp$kinggrid$signature_all() {};\n$$$module$webapp$kinggrid$signature_all.extend(KgObject$$module$webapp$kinggrid$signature_all.prototype, {\n getAttr: function getAttr(a) {\n return this[a];\n },\n setAttr: function setAttr(a) {\n var b = this;\n $$$module$webapp$kinggrid$signature_all.each(a, function (a, d) {\n if (\"function\" === typeof b[a]) b[a](d);else b[a] = d;\n });\n },\n removeAttr: function removeAttr(a) {\n delete this[a];\n }\n});\nvar _Signature$$module$webapp$kinggrid$signature_all = function Signature$$module$webapp$kinggrid$signature_all(a, b) {\n var c = this;\n c.signatureid = a;\n c.setSignatureData(b);\n c.on(\"load\", function () {\n _Signature$$module$webapp$kinggrid$signature_all.list[a] = this;\n });\n c.on(\"remove\", function (a) {\n a = c._getLogInfo(Utils$$module$webapp$kinggrid$signature_all.extend(a || {}, {\n LOGTYPE: \"00\",\n LOGSORT: \"14\",\n LOGMEMO: \"\\u64A4\\u9500\\u7B7E\\u7AE0\\u6210\\u529F\"\n }));\n c.sealService.saveLog(a);\n delete _Signature$$module$webapp$kinggrid$signature_all.list[c.signatureid];\n });\n c.on(\"update\", function (a) {\n \"signMeta\" === c._item && (a = c._getLogInfo(Utils$$module$webapp$kinggrid$signature_all.extend(a || {}, {\n LOGTYPE: \"00\",\n LOGSORT: \"304\",\n LOGMEMO: \"\\u6570\\u5B57\\u7B7E\\u540D\\u6210\\u529F\"\n })), c.sealService.saveLog(a));\n });\n c.on(\"fireremove\", function () {\n _Signature$$module$webapp$kinggrid$signature_all.removeList.push(c.signatureid);\n });\n c.on(\"fireupdate\", function () {\n for (var a = !1, b = 0; b < _Signature$$module$webapp$kinggrid$signature_all.updateList.length; b++) if (_Signature$$module$webapp$kinggrid$signature_all.updateList[b] === c) {\n a = !0;\n break;\n }\n a || _Signature$$module$webapp$kinggrid$signature_all.updateList.push(c);\n });\n for (var d in _Signature$$module$webapp$kinggrid$signature_all) _Signature$$module$webapp$kinggrid$signature_all.hasOwnProperty(d) && 0 == d.indexOf(\"on\") && (this[d] = _Signature$$module$webapp$kinggrid$signature_all[d]);\n return this;\n },\n blankImg$$module$webapp$kinggrid$signature_all = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVR42mNgAAIAAAUAAen63NgAAAAASUVORK5CYII=\",\n blackImg$$module$webapp$kinggrid$signature_all = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR42mNoaGgAAAMEAYF1LgG8AAAAAElFTkSuQmCC\",\n createImg$$module$webapp$kinggrid$signature_all = function createImg$$module$webapp$kinggrid$signature_all(a, b, c) {\n if (canCanvas$$module$webapp$kinggrid$signature_all) {\n var d = root$$module$webapp$kinggrid$signature_all.document.createElement(\"canvas\");\n d.height = c;\n d.width = b;\n var e = d.getContext(\"2d\"),\n f = new Image();\n f.src = a;\n f.onload = function () {\n e.drawImage(f, 0, 0, b, c);\n };\n } else d = root$$module$webapp$kinggrid$signature_all.document.createElement(\"img\"), d.style.width = b + \"px\", d.style.height = c + \"px\", d.setAttribute(\"src\", a);\n return d;\n };\nUtils$$module$webapp$kinggrid$signature_all.inherit(_Signature$$module$webapp$kinggrid$signature_all, KgObject$$module$webapp$kinggrid$signature_all);\n$$$module$webapp$kinggrid$signature_all.extend(_Signature$$module$webapp$kinggrid$signature_all.prototype, Listener$$module$webapp$kinggrid$signature_all.prototype);\n$$$module$webapp$kinggrid$signature_all.extend(_Signature$$module$webapp$kinggrid$signature_all.prototype, {\n hashAlg: \"sha1\",\n encryptAlg: \"RSA\",\n _init: function _init() {},\n _getLogInfo: function _getLogInfo(a) {\n var b = decodeURIComponent(window.location.href),\n c = this.signatureData;\n return Utils$$module$webapp$kinggrid$signature_all.extend(a || {}, {\n KEYSN: c.gbOvalue && \"\" != c.gbOvalue ? c.gbOvalue : c.keysn,\n SIGNSN: c.seal.signsn,\n DOCUMENTID: c.documentid,\n DOCUMENTNAME: c.documentname,\n APPVERSION: version$$module$webapp$kinggrid$signature_all.name,\n APPTYPE: \"HTML\",\n APPCODE: this.appcode,\n EXTPARAM2: b\n });\n },\n error: function error(a, b, c, d) {\n c = a;\n Utils$$module$webapp$kinggrid$signature_all.is(\"Object\", a) && (c = a.errcode && \"511\" != a.errcode ? a.errcode : a.errmsg);\n c || (c = \"-999\");\n b = Utils$$module$webapp$kinggrid$signature_all.is(\"String\", b) ? b : \"then\";\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n _Signature$$module$webapp$kinggrid$signature_all.options.errorCall ? _Signature$$module$webapp$kinggrid$signature_all.options.errorCall.call(null, a, b) : plus$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(c, b), function () {\n d && d._beginDlgOkCall && 1 == d._beginDlgOkCall || _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgOkCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgOkCall.call();\n }, function () {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall.call();\n });\n },\n load: function load(a) {\n this.trigger(\"beforeLoad\");\n this.setAttr(a);\n this.certService = new _Signature$$module$webapp$kinggrid$signature_all.factory.cert[_Signature$$module$webapp$kinggrid$signature_all.options.certType](a, this.signatureData);\n var b = this.signatureData;\n if (void 0 !== a.extra && null !== a.extra && void 0 !== a.extra[this.signatureid]) {\n if (void 0 !== a.extra[this.signatureid].scaleImage && null !== a.extra[this.signatureid].scaleImage && (b.seal.height *= a.extra[this.signatureid].scaleImage, b.seal.width *= a.extra[this.signatureid].scaleImage), void 0 != a.extra[this.signatureid].position) {\n var c = $$$module$webapp$kinggrid$signature_all.extend({}, b.position),\n d = \"\",\n e;\n for (e in c) d = e;\n this.removeItem(b.position);\n this.updatePos(a.extra[this.signatureid].position, {\n marginLeft: null == a.extra[this.signatureid].offsetX ? c[d].marginLeft : a.extra[this.signatureid].offsetX,\n marginTop: null == a.extra[this.signatureid].offsetY ? c[d].marginTop : a.extra[this.signatureid].offsetY\n });\n }\n } else void 0 !== a.scaleImage && null !== a.scaleImage && (b.seal.height *= a.scaleImage, b.seal.width *= a.scaleImage);\n this.sealService = new _Signature$$module$webapp$kinggrid$signature_all.factory.seal[_Signature$$module$webapp$kinggrid$signature_all.options.sealType](a, b);\n this._init();\n this.trigger(\"load\");\n return this;\n },\n toBase64Img: function toBase64Img(a) {\n var b = a.imgdata,\n c = b.indexOf(a.signsn);\n if (-1 == c) return b;\n b = a.imgdata.substring(c + 65);\n return Utils$$module$webapp$kinggrid$signature_all.Base64.of().encodeByte(Utils$$module$webapp$kinggrid$signature_all.Base64.of(a.signsn).decodeByte(b));\n },\n clearImg: function clearImg() {\n if (this.imgEles) for (var a in this.imgEles) this.trigger(\"removeAt\", this.imgEles[a][0]), this.imgEles[a].remove();\n this.imgEles = {};\n },\n repaint: function repaint() {\n this.clearImg();\n this.verify();\n },\n getUpdateType: function getUpdateType() {\n return this._item;\n },\n updatePos: function updatePos(a, b) {\n var c = this.signatureData.position[a];\n this._item = \"position\";\n this.signatureData.position[a] = Utils$$module$webapp$kinggrid$signature_all.extend({}, c, b);\n },\n updateItem: function updateItem(a, b) {\n this._item = a;\n this.signatureData[a] = b;\n },\n removeItem: function removeItem(a) {\n for (var b in a) delete a[b];\n },\n fireUpdate: function fireUpdate(a) {\n var b = this,\n c = function c(_c) {\n a && a(_c);\n b[_c ? \"update\" : \"restore\"]();\n delete b._item;\n };\n _Signature$$module$webapp$kinggrid$signature_all.asyn.update ? _Signature$$module$webapp$kinggrid$signature_all.asyn.update.call(b, c) : (this.trigger(\"fireupdate\"), c(!0));\n return this;\n },\n restore: function restore() {\n this.setSignatureData(this.oriSignatureData);\n this.repaint();\n },\n update: function update() {\n this.setSignatureData(this.signatureData);\n this.repaint();\n this.trigger(\"update\");\n return this;\n },\n remove: function remove() {\n this.clearImg();\n this.trigger(\"remove\");\n for (var a in this) delete this[a];\n return this;\n },\n fireRemove: function fireRemove(a) {\n var b = this,\n c = function c(_c2) {\n a && a(_c2);\n _c2 && b.remove();\n };\n _Signature$$module$webapp$kinggrid$signature_all.asyn.remove ? _Signature$$module$webapp$kinggrid$signature_all.asyn.remove.call(b, c) : (this.trigger(\"fireremove\"), c(!0));\n return this;\n },\n hide: function hide() {\n if (this.imgEles) for (var a in this.imgEles) this.imgEles[a].hide();\n },\n createImg: function createImg() {\n var a = this.signatureData,\n b = $$$module$webapp$kinggrid$signature_all(document.createElement(\"img\")),\n c = blankImg$$module$webapp$kinggrid$signature_all;\n this.broken || (c = \"data:image/\" + a.seal.imgext + \";base64,\" + this.toBase64Img(a.seal));\n b.css({\n width: Math.ceil(9600 * parseFloat(a.seal.width) / 254),\n height: Math.ceil(9600 * parseFloat(a.seal.height) / 254)\n }).attr({\n src: c\n });\n return b;\n },\n show: function show() {\n var a = this.signatureData.position,\n b = this.imgEles = this.imgEles || {},\n c;\n for (c in a) {\n var d = \"kg-img-div-\" + this.signatureid + \"-\" + c,\n e = b[d];\n e || (e = b[d] = this.showAt(c, a[c]));\n this._handleImg(e);\n }\n this.trigger(\"show\");\n },\n showAt: function showAt(a, b) {\n this.trigger(\"beforeShowAt\", a, b);\n var c = Utils$$module$webapp$kinggrid$signature_all.$(a),\n d = $$$module$webapp$kinggrid$signature_all(c);\n this.extra && this.extra[this.signatureid] && (c = this.extra[this.signatureid].scopePosition) && (d = c instanceof Object ? c.find(\"#\" + a) : $$$module$webapp$kinggrid$signature_all(Utils$$module$webapp$kinggrid$signature_all.$(c)).find(\"#\" + a));\n if (0 == d.length) if (_Signature$$module$webapp$kinggrid$signature_all.options.defaultPos) a = _Signature$$module$webapp$kinggrid$signature_all.options.defaultPos, d = $$$module$webapp$kinggrid$signature_all(Utils$$module$webapp$kinggrid$signature_all.$(a));else throw Error(\"no find position:\" + a + \" signatureid=\" + this.signatureid);\n var e = this.createImg();\n e.addClass(\"kg-img\").attr(\"id\", \"kg-img-\" + this.signatureid);\n c = $$$module$webapp$kinggrid$signature_all(document.createElement(\"div\")).addClass(\"kg-img-div\").addClass(\"kg-img-div-\" + a).attr({\n id: \"kg-img-div-\" + this.signatureid + \"-\" + a,\n elemid: a,\n signatureid: this.signatureid\n });\n c.append(e);\n c.css({\n width: e.width(),\n height: e.height()\n });\n var f = 0,\n g = 0,\n h = this.signatureData.dateTime;\n null != h && h.isCheck && h.fontDate && (this.addDateToImg(h.fontDate, this.signatureData.timestamp.time, c), null != this.imageAndDate && this.imageAndDate && \"outside\" == h.fontDate.fontPosition[2] && (\"right\" == h.fontDate.fontPosition[3] ? f += c.width() : \"left\" == h.fontDate.fontPosition[3] && (f += c.width()), \"below\" == h.fontDate.fontPosition[4] && (g += c.height())));\n c.css({\n width: e.width() + f,\n height: e.height() + g\n });\n e = c;\n f = \"kg-default\";\n if (h = d.attr(\"display\")) d.addClass(\"display-\" + h), f = \"kg-\" + h, g = d, e = document.getElementById(\"kg-img-container-\" + a), e || (e = document.createElement(\"div\"), e.setAttribute(\"id\", \"kg-img-container-\" + a)), e = $$$module$webapp$kinggrid$signature_all(e).addClass(f + \"-container\"), e.append(c), c.attr(\"kg-display\", !0);else if (g = d.offsetParent(), \"html\" == g[0].tagName.toLowerCase() || \"relative\" == g[0].style.position) g = $$$module$webapp$kinggrid$signature_all(\"body\");\n c.addClass(f);\n g.append(e);\n if (h) {\n if (\"landscape\" === h) {\n d = e.children();\n f = e.parent().width();\n var k = 0;\n d.each(function () {\n k += parseInt($$$module$webapp$kinggrid$signature_all(this).width()) + 1;\n });\n e.width(k > f ? k : f);\n }\n } else this.calSealPos(d, c, e, b);\n this.trigger(\"showAt\", c[0], a, b);\n return c;\n },\n calSealPos: function calSealPos(a, b, c, d) {\n var e = a.offsetParent();\n c = c || b;\n if (\"html\" == e[0].tagName.toLowerCase() || \"relative\" == e[0].style.position) e = $$$module$webapp$kinggrid$signature_all(\"body\");\n a = a.offset();\n var f = e.offset();\n e.is(\"body\") && (f = {\n top: 0,\n left: 0\n });\n c.css({\n top: a.top - f.top,\n left: a.left - f.left\n });\n d ? (e = d.marginLeft, d = d.marginTop) : (e = b.css(\"marginLeft\"), d = b.css(\"marginTop\"));\n b.css({\n marginLeft: e || 0,\n marginTop: d || 0\n });\n },\n addDateToImg: function addDateToImg(a, b, c) {\n b = kinggrid.Utils.formatDate(new Date(b), a.fontFormat);\n var d = $$$module$webapp$kinggrid$signature_all(document.createElement(\"div\")).addClass(\"kg-date\"),\n e = 0,\n f = 0;\n \"outside\" == a.fontPosition[2] && (\"right\" == a.fontPosition[3] ? e += c.width() : \"left\" == a.fontPosition[3] && (e -= c.width()), \"below\" == a.fontPosition[4] && (f += c.height()));\n d.css({\n width: c.width(),\n height: c.height(),\n top: f,\n left: e\n });\n e = $$$module$webapp$kinggrid$signature_all(document.createElement(\"div\")).addClass(\"kg-date-tmb\").css({\n width: c.width(),\n top: \"0px\"\n });\n f = $$$module$webapp$kinggrid$signature_all(document.createElement(\"div\")).addClass(\"kg-date-lcr\").css({\n \"text-align\": a.fontPosition[0],\n \"font-family\": a.fontFamily,\n \"font-size\": a.fontSize + \"px\",\n color: a.fontColor\n });\n \"bottom\" == a.fontPosition[1] ? e.css({\n bottom: 0\n }) : \"middle\" == a.fontPosition[1] && f.css({\n \"line-height\": c.height() + \"px\"\n });\n f.html(b);\n e.html(f);\n d.html(e);\n c.append(d);\n },\n canSign: function canSign() {\n return !this.modified && !_Signature$$module$webapp$kinggrid$signature_all.options.readonly && _Signature$$module$webapp$kinggrid$signature_all.options.signable && !this.signatureData.signMeta;\n },\n canMove: function canMove(a) {\n (a = !_Signature$$module$webapp$kinggrid$signature_all.options.readonly && this.signatureData.moveable && _Signature$$module$webapp$kinggrid$signature_all.options.moveable && !$$$module$webapp$kinggrid$signature_all(a).attr(\"kg-display\")) && _Signature$$module$webapp$kinggrid$signature_all.options.moveable_self && (a = this.signatureData.keysn == _Signature$$module$webapp$kinggrid$signature_all.options.keysn);\n return a;\n },\n canDelete: function canDelete() {\n return !_Signature$$module$webapp$kinggrid$signature_all.options.readonly;\n },\n _handleImg: function _handleImg(a) {\n a.show();\n if (0 == a.children(\".kg-shade\").length) {\n var b = $$$module$webapp$kinggrid$signature_all(document.createElement(\"div\")).addClass(\"kg-shade\");\n b.append(createImg$$module$webapp$kinggrid$signature_all(blankImg$$module$webapp$kinggrid$signature_all, a.width(), a.height()));\n a.append(b);\n }\n this._invalid(a);\n this.trigger(\"handleImg\", a[0]);\n },\n setSignatureData: function setSignatureData(a) {\n Utils$$module$webapp$kinggrid$signature_all.is(\"String\", a) ? this.signatureData = JSON.parse(Utils$$module$webapp$kinggrid$signature_all.Base64.of().decode(a)) : this.signatureData = a;\n this.oriSignatureData = JSON.parse(JSON.stringify(this.signatureData));\n },\n getSignatureid: function getSignatureid() {\n return this.signatureid;\n },\n getSignatureData: function getSignatureData() {\n var a = JSON.stringify(this.signatureData);\n return Utils$$module$webapp$kinggrid$signature_all.Base64.of().encode(a);\n },\n getBase64Image: function getBase64Image(a, b, c, d) {\n c = \"kg-img-div-\" + a + \"-\" + c;\n c = document.getElementById(c);\n null != c && (isIE8$$module$webapp$kinggrid$signature_all ? d(this, \"\", a, b) : html2canvas(c).then(function (c) {\n c = c.toDataURL(\"image/png\").split(\",\");\n d(this, c, a, b);\n }));\n },\n _invalid: function _invalid(a) {\n var b = a.children(\".kg-invalid\");\n if (0 == b.length) {\n b = $$$module$webapp$kinggrid$signature_all(document.createElement(\"div\")).addClass(\"kg-hide\").addClass(\"kg-invalid\");\n a.append(b);\n var c = a.height() / 3;\n b.css({\n top: c,\n height: c\n });\n c /= 3;\n for (var d = a.width(), e = 0; 3 > e; e++) {\n var f = $$$module$webapp$kinggrid$signature_all(document.createElement(\"div\")).height(c);\n 0 == e % 2 && (f.addClass(\"kg-invalid-item\"), f.append(createImg$$module$webapp$kinggrid$signature_all(blackImg$$module$webapp$kinggrid$signature_all, d, c)));\n b.append(f);\n }\n }\n if (this.modified) {\n c = \"\";\n for (d = 0; d < this.modifiedItems.length; d++) e = this.modifiedItems[d], c += e.desc + \"[\" + e.field + \"]\\u7531{\" + e.orivalue + \"}\\u66F4\\u6539\\u4E3A{\" + e.newvalue + \"};\";\n a.attr(\"modified\", c).addClass(\"error\");\n b.removeClass(\"kg-hide\");\n } else a.removeAttr(\"modified\").removeClass(\"error\"), b.addClass(\"kg-hide\");\n },\n _verify: function _verify(a, b) {\n this.trigger(\"before_verify\");\n a = this.verifyProtectedData(a);\n if (!b || b && b.batchVerify || null == this.oriSignatureData.timestamp.timestampInfo) return this.show(), this.trigger(\"_verify\"), !a;\n var c = this;\n this.getVerifyTimeStamp(this.oriSignatureData.timestamp.timestampInfo, function (a) {\n c.timeVerify = a;\n c.show();\n c.trigger(\"_verify\");\n b && b.sucCall && b.sucCall.call(c);\n });\n },\n verify: function verify(a, b) {\n this.trigger(\"beforeVerify\");\n a = this._verify(a, b);\n this.trigger(\"verify\");\n return a;\n },\n getVerifyProtectedItems: function getVerifyProtectedItems(a, b) {\n for (var c in a) if (void 0 != a[c] && null != a[c]) {\n var d = a[c];\n if (d.field == b) return d;\n }\n return null;\n },\n getVerifyProtectedData: function getVerifyProtectedData() {\n for (var a = this.validatedData, b = this.signatureData.protectedData, c = {}, d = 0; d < b.length; d++) if (void 0 != b[d] && null != b[d]) {\n var e = b[d],\n f = e.field,\n g = a && (a[f] || this.getVerifyProtectedItems(a, f) && this.getVerifyProtectedItems(a, f).value);\n if (null == g) {\n var h = Utils$$module$webapp$kinggrid$signature_all.$(f);\n if (h) {\n if (g = h.getAttribute(\"kg-value\") || h.value, void 0 === g || null === g) g = h.innerHTML || h.innerText;\n } else g = void 0 != e.name && null != e.name ? document.getElementById(e.name).value : \"\";\n }\n e = Utils$$module$webapp$kinggrid$signature_all.val(g, this);\n e = this._formatValue(e);\n c[f] = e;\n }\n return c;\n },\n getSignTimeStamp: function getSignTimeStamp(a) {\n for (var b = {}, c = 0; c < a.length; c++) b[a[c].field] = a[c].value;\n return Utils$$module$webapp$kinggrid$signature_all.Base64.of().encode(stringify$$module$webapp$kinggrid$signature_all(b));\n },\n getValidatedTimeStamp: function getValidatedTimeStamp() {\n var a = this.getVerifyProtectedData();\n a = stringify$$module$webapp$kinggrid$signature_all(a);\n return Utils$$module$webapp$kinggrid$signature_all.Base64.of().encode(a);\n },\n getVerifyTimeStamp: function getVerifyTimeStamp(a, b) {\n var c = this.getValidatedTimeStamp(),\n d = a.CertData,\n e = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n e.invoke(\"SetParamByName\", \"TSCERTDATA\", Utils$$module$webapp$kinggrid$signature_all.Base64.of().encode(d)).ret(function () {\n e.invoke(\"KGVerifyTSWithReq\", a.TimeStampResponse, a.TimeStampResult, \"\", c, a.TimeStr, \"\").ret(function (a) {\n b.call(this, a.result);\n });\n });\n },\n getH5SignData: function getH5SignData() {\n var a = this.hashAlg,\n b = this.encryptAlg,\n c = CryptoJS$$module$webapp$kinggrid$signature_all.SHA1(this.getSignData()).toString();\n return [{\n hashAlg: a,\n encryptAlg: b,\n signdata: c\n }];\n },\n verifyProtectedData: function verifyProtectedData(a) {\n a && (this.validatedData = a);\n a = {};\n $$$module$webapp$kinggrid$signature_all.extend(!0, a, this.signatureData.protectedData);\n _Signature$$module$webapp$kinggrid$signature_all.verifyData && (this.validatedData = _Signature$$module$webapp$kinggrid$signature_all.verifyData(a));\n a = [];\n for (var b = this.getVerifyProtectedData(), c = this.signatureData.protectedData, d = 0; d < c.length; d++) if (void 0 != c[d] && null != c[d]) {\n var e = c[d],\n f = b[c[d].field];\n f !== e.value && a.push({\n field: e.field,\n desc: e.desc,\n orivalue: e.value,\n newvalue: f\n });\n }\n this.modified = 0 < a.length;\n this.modifiedItems = a;\n return this.modified;\n },\n verifySignData: function verifySignData(a) {\n var b = this;\n plus$$module$webapp$kinggrid$signature_all.showLoading();\n var c = this.certService;\n if (this.signatureData.signMeta.html2sign) {\n c instanceof ServerCert$$module$webapp$kinggrid$signature_all || (c = new ServerCert$$module$webapp$kinggrid$signature_all(_Signature$$module$webapp$kinggrid$signature_all.options), c.sData = b.signatureData);\n var d = b.getVerifyProtectedData();\n for (var e = this.signatureData.protectedData, f = [], g = 0; g < e.length; g++) {\n var h = e[g],\n k = {},\n l;\n for (l in h) h.hasOwnProperty(l) && (k[l] = h[l]);\n k.value = d[h.field];\n f.push(k);\n }\n d = stringify$$module$webapp$kinggrid$signature_all(f);\n } else d = this.getValidatedSignData();\n c.verifySign($$$module$webapp$kinggrid$signature_all.extend({\n seal: this.signatureData.seal,\n signeddata: this.signatureData.signMeta.signeddata,\n crtdata: this.signatureData.signMeta.certinfo.crtdata,\n keysn: this.signatureData.keysn,\n signsn: this.signatureData.seal.signsn,\n signdata: d\n }, {\n successCall: function successCall(c) {\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n if (!c.errcode) {\n b.signModified = !c.result;\n var d = b.verify(null, {\n sucCall: function sucCall() {\n a && a(c);\n }\n });\n }\n null != d && a && a(c);\n }\n }));\n },\n _renderValue: function _renderValue(a) {\n return a.replace(/\\r\\n/ig, \"
\");\n },\n _formatValue: function _formatValue(a, b) {\n a && (a = a.replace(/\\r\\n/ig, \"\\n\"), a = a.replace(/\\n/ig, \"\\r\\n\"));\n return a;\n },\n getItemVal: function getItemVal(a) {\n var b;\n if (b = Utils$$module$webapp$kinggrid$signature_all.is(\"String\", a) ? Utils$$module$webapp$kinggrid$signature_all.$(a) : a) return a = b.tagName.toLowerCase(), \"input\" === a || \"textarea\" === a || \"select\" === a ? b.getAttribute(\"kg-value\") || b.value : b.getAttribute(\"kg-value\") || (isIE8$$module$webapp$kinggrid$signature_all ? b.innerText : b.textContent);\n throw Error(\"No find protectedItem:\" + a + \" signatureid=\" + this.signatureid);\n },\n getProtectedData: function getProtectedData(a) {\n var b = this,\n c = [],\n d = function d(a) {\n var c = Utils$$module$webapp$kinggrid$signature_all.$(a);\n if (c) {\n var d = {\n field: a\n };\n d.desc = c.getAttribute(\"kg-desc\") || a;\n d.value = b.getItemVal(c);\n return d;\n }\n throw Error(\"No find protectedItem:\" + a + \" signatureid=\" + this.signatureid);\n },\n e = function e(a) {\n if (Utils$$module$webapp$kinggrid$signature_all.is(\"String\", a)) a = d(a);else if (!Utils$$module$webapp$kinggrid$signature_all.is(\"Object\", a) || !a.field) throw Error(\"Unsupported protectedItems:\" + a.toString);\n Utils$$module$webapp$kinggrid$signature_all.is(\"Function\", a.value) && (a.value = a.value.call(b, a.field, a.desc));\n a.value = b._formatValue(a.value);\n return a;\n };\n if (a) if (Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", a)) for (var f = 0, g = a.length; f < g; f++) c.push(e(a[f]));else c.push(e(a));\n return c;\n },\n __findSignedData: function __findSignedData(a) {\n if (Utils$$module$webapp$kinggrid$signature_all.is(\"String\", a)) return a.split(\";\")[0];\n if (Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", a)) return a[0];\n throw Error(\"error signeddata: \" + a);\n },\n getValidatedSignData: function getValidatedSignData() {\n var a = this.getVerifyProtectedData();\n a = stringify$$module$webapp$kinggrid$signature_all(a);\n a = Utils$$module$webapp$kinggrid$signature_all.Base64.of().encode(a);\n return CryptoJS$$module$webapp$kinggrid$signature_all.SHA1(a).toString();\n },\n getSignData: function getSignData(a) {\n a = (a || this.signatureData).protectedData;\n for (var b = {}, c = 0; c < a.length; c++) b[a[c].field] = a[c].value;\n return Utils$$module$webapp$kinggrid$signature_all.Base64.of().encode(stringify$$module$webapp$kinggrid$signature_all(b));\n },\n showSignSignatureDialog: function showSignSignatureDialog(a) {\n var b = {\n target: Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", a.target) ? a.target : [a.target],\n title: kinggrid.msg(\"SignSignature\", \"KG_TITLE\"),\n onCancel: function onCancel() {\n _Signature$$module$webapp$kinggrid$signature_all.options.dlgCancelCall && _Signature$$module$webapp$kinggrid$signature_all.options.dlgCancelCall.call();\n },\n onShow: function onShow() {\n var a = this;\n setTimeout(function () {\n a.find(\"#kg-password\").focus();\n }, 40);\n a.find(\"#kg-password\").keydown(function (b) {\n 13 == b.keyCode && a.options.onOk.call(a);\n });\n },\n onOk: function onOk() {\n var b = this.find(\"#kg-password\");\n if (!b.val()) return plus$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(\"in_pwd_msg\", \"KG_MSG\"), function () {\n b.focus();\n }), !1;\n a._onOk.call(this, b.val());\n return !1;\n }\n };\n return this.showDialog(\"signSignatureBtl\", b);\n },\n changeMoveAble: function changeMoveAble(a, b) {\n this.signatureData.moveable = a;\n this.fireUpdate();\n b && b();\n },\n signSignature: function signSignature(a) {\n var b = this,\n c = {\n target: b,\n _onOk: function _onOk(c) {\n var d = this,\n f = b.getH5SignData();\n b.runSign(f, c, function (c) {\n c.result ? b.fireUpdate(function (a) {\n a && d.remove();\n }) : b.error(c, null, null, {\n _beginDlgOkCall: !0\n });\n a && a(c);\n });\n }\n };\n if (b.signatureData.phoneshield) \"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType && b.sealService.getPhoneShieldLic({}, function (a) {\n \"1\" == a.phoneshield || \"3\" == a.phoneshield ? (kinggrid.options.timeout = 1E3 * (a.validatetime + 10), c._onOk(\"\")) : \"2\" == a.phoneshield ? b.error({\n errcode: \"11110\"\n }, \"then\") : b.error({\n errcode: \"11109\"\n }, \"then\");\n });else return b.showSignSignatureDialog(c);\n },\n showRevokeSignatureDialog: function showRevokeSignatureDialog(a) {\n var b = {\n target: Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", a.target) ? a.target : [a.target],\n title: kinggrid.msg(\"RevokeSignature\", \"KG_TITLE\"),\n quickClose: void 0 == _Signature$$module$webapp$kinggrid$signature_all.options.quickClose ? !0 : _Signature$$module$webapp$kinggrid$signature_all.options.quickClose,\n onCancel: function onCancel() {\n _Signature$$module$webapp$kinggrid$signature_all.options.dlgCancelCall && _Signature$$module$webapp$kinggrid$signature_all.options.dlgCancelCall.call();\n },\n onShow: function onShow() {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall.call();\n var a = this;\n setTimeout(function () {\n a.find(\"#kg-password\").focus();\n }, 40);\n a.find(\"#kg-password\").keydown(function (b) {\n 13 == b.keyCode && a.options.onOk.call(a);\n });\n },\n onOk: function onOk() {\n var b = this.find(\"#kg-password\");\n if (!b.val()) return plus$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(\"in_pwd_msg\", \"KG_MSG\"), function () {\n b.focus();\n }), !1;\n a._onOk.call(this, b.val());\n return !1;\n }\n };\n return this.showDialog(\"revokeSignatureBtl\", b);\n },\n revokeSignature: function revokeSignature(a) {\n var b = this,\n c = {\n target: b,\n _onOk: function _onOk(c) {\n var d = this;\n plus$$module$webapp$kinggrid$signature_all.showLoading();\n b.sealService.verifyPwd({\n pwd: c,\n keysn: b.signatureData.keysn,\n successCall: function successCall(c) {\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n c.result && (void 0 != c.delkeysn ? c.delkeysn == b.signatureData.keysn : 1) ? void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.delCallBack && _Signature$$module$webapp$kinggrid$signature_all.options.delCallBack ? _Signature$$module$webapp$kinggrid$signature_all.options.delCallBack(b.signatureid, b.signatureData) && b.fireRemove(function (a) {\n a && (d.remove ? d.remove() : b.remove());\n }) : b.fireRemove(function (a) {\n a && (d.remove ? d.remove() : b.remove());\n }) : b.error(c, null, null, {\n _beginDlgOkCall: !0\n });\n a && a(c);\n },\n phoneshield: b.signatureData.phoneshield\n });\n }\n };\n if (b.signatureData.phoneshield && \"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType) b.sealService.getPhoneShieldLic({}, function (a) {\n \"1\" == a.phoneshield || \"3\" == a.phoneshield ? (kinggrid.options.timeout = 1E3 * (a.validatetime + 10), c._onOk(\"\")) : \"2\" == a.phoneshield ? b.error({\n errcode: \"11110\"\n }, \"then\") : b.error({\n errcode: \"11109\"\n }, \"then\");\n });else if (_Signature$$module$webapp$kinggrid$signature_all.options.showNoPW && \"server\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType) c._onOk(_Signature$$module$webapp$kinggrid$signature_all.options.password);else return b.showRevokeSignatureDialog(c);\n },\n showDialog: function showDialog(a, b) {\n var c = Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", b.target) ? b.target : [b.target],\n d = {\n title: kinggrid.msg(\"KinggridSignature\", \"KG_TITLE\"),\n onShow: function onShow() {\n var a = this;\n setTimeout(function () {\n a.find(\"#kg-password\").focus();\n }, 40);\n a.find(\"#kg-password\").keydown(function (b) {\n 13 == b.keyCode && a.options.onOk.call(a);\n });\n },\n onCancel: b.errCall || function () {\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n return !0;\n },\n content: function content() {\n var b = [_Signature$$module$webapp$kinggrid$signature_all.options.template[a]].concat(c);\n return Utils$$module$webapp$kinggrid$signature_all.template.apply(null, b);\n }\n };\n b = Utils$$module$webapp$kinggrid$signature_all.extend(d, b);\n var e = plus$$module$webapp$kinggrid$signature_all.showDialog(a, b);\n if (\"showSealsBtl\" === a) {\n var f = e.find(\"#sealTpl-dialog\"),\n g = !1,\n h = 0,\n k = 0,\n l = 0,\n m = 0;\n f.prevObject[0].onmousedown = function (a) {\n g = !0;\n a = a || event;\n null != a && (h = a.clientX, k = a.clientY, l = parseInt(f.prevObject[0].style.top), m = parseInt(f.prevObject[0].style.left));\n };\n f.prevObject[0].onmousemove = function (a) {\n if (g && (a = a || event, null != a)) {\n var b = m + a.clientX - h;\n a = l + a.clientY - k;\n 0 < b && 0 < a && (f.prevObject[0].style.left = b + \"px\", f.prevObject[0].style.top = a + \"px\");\n }\n };\n f.prevObject[0].onmouseup = function (a) {\n g && (g = !1, m = l = k = h = 0);\n };\n }\n \"signatureInfoBtl\" != a && \"signInfoBtl\" != a || e.find(\".ui-dialog-close\").click(function () {\n e.close();\n _Signature$$module$webapp$kinggrid$signature_all.options.dlgCancelCall && _Signature$$module$webapp$kinggrid$signature_all.options.dlgCancelCall.call();\n });\n return e;\n },\n runMove: function runMove(a, b, c) {\n var d = this;\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"startMove\", d, a, b);\n return \"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType && _Signature$$module$webapp$kinggrid$signature_all.options.moveable_self && d.keysn != d.signatureData.keysn ? (_Signature$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(\"cannot_move\", \"KG_MSG\")), !1) : function (a, b, c) {\n b = Drag$$module$webapp$kinggrid$signature_all.create(b, a, !0);\n b.onend = function (a, b, e, f) {\n c && c(b, e, f);\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"endMove\", d, a, e, f);\n b && (a = $$$module$webapp$kinggrid$signature_all(this), d.updatePos(a.attr(\"elemid\"), {\n marginLeft: e,\n marginTop: f\n }), d.fireUpdate());\n };\n a.preventDefault();\n return b;\n }(a, b, c);\n },\n runSign: function runSign(a, b, c) {\n var d = this,\n e = d.signatureData;\n plus$$module$webapp$kinggrid$signature_all.showLoading();\n d.certService.sign({\n seal: this.signatureData.seal,\n keysn: this.signatureData.keysn,\n signsn: this.signatureData.seal.signsn,\n password: b,\n phoneshield: this.signatureData.phoneshield,\n signMeta: a,\n successCall: function successCall(b) {\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n b.result && (b.signeddata ? (b.certinfo.algName = b.certinfo.algName.toUpperCase(), d.updateItem(\"signMeta\", {\n hashAlg: a[0].hashAlg,\n encryptAlg: a[0].encryptAlg,\n signdata: a[0].signdata,\n signeddata: d.__findSignedData(b.signeddata),\n certinfo: b.certinfo\n })) : (b.result = !1, b.errcode = \"signErr\"), e.certType = _Signature$$module$webapp$kinggrid$signature_all.options.certType);\n c && c(b);\n }\n });\n }\n});\nplus$$module$webapp$kinggrid$signature_all = kingPlus$$module$webapp$kinggrid$signature_all();\n_Signature$$module$webapp$kinggrid$signature_all.options = $$$module$webapp$kinggrid$signature_all.extend({\n b64Url: \"/iWebSignature_base64\",\n imageUrl: \"/iWebSignature_image\"\n}, kinggrid.options, {\n dialogConfig: {\n okValue: \"\\u786E \\u5B9A\",\n cancelValue: \"\\u53D6 \\u6D88\",\n fixed: !0,\n backdropOpacity: .2,\n modal: !0\n },\n template: {}\n}, window.KGCONFIG);\n_Signature$$module$webapp$kinggrid$signature_all.addProvider = function (a, b, c) {\n _Signature$$module$webapp$kinggrid$signature_all.factory[a][b] = c;\n};\nvar aisleKing$$module$webapp$kinggrid$signature_all;\n_Signature$$module$webapp$kinggrid$signature_all.init = function (a, b) {\n this.Seals = {};\n Utils$$module$webapp$kinggrid$signature_all.extend(_Signature$$module$webapp$kinggrid$signature_all.options, a);\n var c = _Signature$$module$webapp$kinggrid$signature_all.options;\n b = b ? b : a.okCall;\n c.serverUrl && (c.b64Url = \"_signature_b64\", c.imageUrl = \"_signature_image\", 0 < c.serverUrl.indexOf(\"?\") ? c.serverUrl += \"&action=rest\" : c.serverUrl += \"?action=rest\");\n \"client\" == c.sealType ? (c.clientUrl = c.https, aisleKing$$module$webapp$kinggrid$signature_all = _Signature$$module$webapp$kinggrid$signature_all.aisleKing = kinggrid.surry(c.clientUrl ? c.clientUrl : \"http://127.0.0.1:9581\", \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode)) : aisleKing$$module$webapp$kinggrid$signature_all = _Signature$$module$webapp$kinggrid$signature_all.aisleKing = kinggrid.surry(c.serverUrl || c.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n (a = c.clientConfig) && \"client\" === c.sealType ? _Signature$$module$webapp$kinggrid$signature_all.AXI(\"SetParamByName\", a, b) : b && b.call();\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"init\");\n};\n_Signature$$module$webapp$kinggrid$signature_all.factory = {\n cert: {},\n seal: {}\n};\n_Signature$$module$webapp$kinggrid$signature_all.SealService = SealService$$module$webapp$kinggrid$signature_all;\n_Signature$$module$webapp$kinggrid$signature_all.CertService = CertService$$module$webapp$kinggrid$signature_all;\n_Signature$$module$webapp$kinggrid$signature_all.asyn = {};\n_Signature$$module$webapp$kinggrid$signature_all._create = function (a) {\n var b = this;\n b.setAttr(a);\n b.certService = new _Signature$$module$webapp$kinggrid$signature_all.factory.cert[b.certType](a);\n b.sealService = new _Signature$$module$webapp$kinggrid$signature_all.factory.seal[b.sealType](a);\n b.on(\"createSignature\", function (a, d, e) {\n a = [];\n var c = b._getLogInfo({\n LOGTYPE: \"00\",\n LOGSORT: \"13\",\n LOGMEMO: \"\\u76D6\\u7AE0\\u6210\\u529F\",\n LOGSORTSUBCLASS: \"1301\"\n });\n a.push(Utils$$module$webapp$kinggrid$signature_all.extend(d || {}, c));\n e && a.push(b._getLogInfo({\n LOGTYPE: \"00\",\n LOGSORT: \"304\",\n LOGMEMO: \"\\u6570\\u5B57\\u7B7E\\u540D\\u6210\\u529F\"\n }));\n b.sealService.saveLog(a);\n });\n return this;\n};\nvar signature$$module$webapp$kinggrid$signature_all = function signature$$module$webapp$kinggrid$signature_all() {};\nsignature$$module$webapp$kinggrid$signature_all.prototype = _Signature$$module$webapp$kinggrid$signature_all.prototype;\nvar prototype$$module$webapp$kinggrid$signature_all = new signature$$module$webapp$kinggrid$signature_all();\n_Signature$$module$webapp$kinggrid$signature_all._create.prototype = prototype$$module$webapp$kinggrid$signature_all;\n$$$module$webapp$kinggrid$signature_all.extend(prototype$$module$webapp$kinggrid$signature_all, {\n keyData: null,\n sealExpired: function sealExpired(a, b, c, d, e) {\n var f = this,\n g = !0;\n if (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.valid || null === _Signature$$module$webapp$kinggrid$signature_all.options.valid || !1 === _Signature$$module$webapp$kinggrid$signature_all.options.valid) return f.certExpired(b, c, d);\n if (void 0 !== a.endata && null !== a.endata) {\n var h = a.endata;\n e = parseInt(c.substr(0, 4));\n a = parseInt(c.substr(5, 2));\n g = parseInt(c.substr(8, 2));\n var k = parseInt(h.substr(0, 4)),\n l = parseInt(h.substr(5, 2));\n h = parseInt(h.substr(8, 2));\n e > k ? (f.errorCallback({\n errcode: \"11104\"\n }, b.errorCall), g = !1) : e == k ? a > l ? (f.errorCallback({\n errcode: \"11104\"\n }, b.errorCall), g = !1) : a == l ? g > h ? (f.errorCallback({\n errcode: \"11104\"\n }, b.errorCall), g = !1) : g = !0 : g = !0 : g = !0;\n } else return a = _Signature$$module$webapp$kinggrid$signature_all.options.serverUrl + \"_key_sealIsExpired\", e = (parseInt(e) + 1).toString(), $$$module$webapp$kinggrid$signature_all.ajax({\n url: a,\n type: \"POST\",\n data: {\n keysn: f.keyData.keysn,\n year: new Date().getFullYear(),\n month: new Date().getMonth(),\n date: new Date().getDate(),\n index: e\n },\n async: !1,\n success: function success(a) {\n if (a.error) return f.errorCallback({\n errcode: \"11105\"\n }, b.errorCall), !1;\n if (0 == a.result) return f.certExpired(b, c, d);\n f.errorCallback({\n errcode: \"11104\"\n }, b.errorCall);\n return !1;\n },\n error: function error(a) {\n f.errorCallback({\n errcode: \"11105\"\n }, b.errorCall);\n }\n }), !1;\n return g ? f.certExpired(b, c, d) : g;\n },\n certExpired: function certExpired(a, b, c) {\n var d = this,\n e = !1;\n if (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.valid || null === _Signature$$module$webapp$kinggrid$signature_all.options.valid || !1 === _Signature$$module$webapp$kinggrid$signature_all.options.valid) return !0;\n kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode).invoke(\"KGGetCerInfo\", \"\").ret(function (f) {\n var g = parseInt(b.substr(0, 4)),\n h = parseInt(b.substr(5, 2)),\n k = parseInt(b.substr(8, 2));\n if (f.result) {\n f = f.certinfo.notAfter;\n var l = parseInt(f.substr(0, 4)),\n m = parseInt(f.substr(4, 1));\n m = 0 == m ? parseInt(f.substr(5, 1)) : parseInt(f.substr(4, 2));\n var p = parseInt(f.substr(6, 1));\n p = 0 == p ? parseInt(f.substr(7, 1)) : parseInt(f.substr(6, 2));\n g > l ? d.errorCallback({\n errcode: \"11103\"\n }, a.errorCall) : g == l ? h > m ? d.errorCallback({\n errcode: \"11103\"\n }, a.errorCall) : h == m ? k > p ? d.errorCallback({\n errcode: \"11103\"\n }, a.errorCall) : e = !0 : e = !0 : e = !0;\n } else d.errorCallback({\n errcode: \"11106\"\n }, a.errorCall);\n void 0 !== c && null !== c && c(e);\n });\n return e;\n },\n errorCallback: function errorCallback(a, b, c, d) {\n b ? (plus$$module$webapp$kinggrid$signature_all.hideLoading(), b.call(null, a, c)) : this.error(a, c, null, d);\n },\n runHW: function runHW(a, b) {\n var c = this;\n plus$$module$webapp$kinggrid$signature_all.showLoading();\n \"undefined\" != typeof a.imageData && null != a.imageData && (void 0 !== a.beginCall && a.beginCall && a.beginCall.call(c), c.sealService.loadSeal({\n data: a.imageData,\n successCall: function successCall(d) {\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n if (d.result && d.seals) {\n for (var e in d.seals) {\n d.seals = [{\n width: a.width,\n height: a.height,\n imgext: d.seals[e].imgext,\n signname: a.name,\n signsn: d.seals[e].signsn,\n username: d.seals[e].username,\n imgdata: a.imageData,\n headinfoex: d.seals[e].headinfoex\n }];\n break;\n }\n c.keyData = d;\n c.showSeals(b);\n } else c.errorCallback(d, a.errorCall);\n },\n errorCall: function errorCall(b) {\n c.errorCallback(b, a.errorCall);\n }\n }));\n },\n run: function run(a) {\n var b = this;\n b.keyData ? b.showSeals(a) : (plus$$module$webapp$kinggrid$signature_all.showLoading(), void 0 !== a.beginCall && a.beginCall && a.beginCall.call(b), b.sealService.loadSeal({\n successCall: function successCall(c) {\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n c.result ? c.seals && c.seals.length ? (b.keyData = c, void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && void 0 === c.ServerTime ? void 0 !== b.serverUrl && null !== b.serverUrl ? (c = {\n usercode: b.usercode,\n keysn: b.keyData.keysn,\n signname: b.signname,\n authcode: _Signature$$module$webapp$kinggrid$signature_all.authcode\n }, kinggrid.surry(b.serverUrl).request(\"_key_load\", c).ret(function (c) {\n c.result ? (b.curDate = c.ServerTime, b.keyData = c, b.showSeals(a)) : b.errorCallback(c, a.errorCall);\n })) : (b.curDate = new Date().toLocaleString(), b.showSeals(a)) : (b.curDate = c.ServerTime, b.showSeals(a))) : b.errorCallback({\n errcode: \"11100\" + _Signature$$module$webapp$kinggrid$signature_all.options.imgtag\n }, a.errorCall) : b.errorCallback(c, a.errorCall);\n },\n errorCall: function errorCall(c) {\n b.errorCallback(c, a.errorCall);\n }\n }));\n return this;\n },\n getSealsByKeysn: function getSealsByKeysn(a, b, c) {\n var d = this;\n d.sealService.loadSeal({\n successCall: function successCall(a) {\n if (a.result) {\n var c = [];\n if (void 0 !== b && null != b) {\n for (var e = 0; e < a.seals.length; ++e) c[e] = d.toBase64Img(a.seals[e]);\n b(c);\n }\n }\n },\n errorCall: function errorCall(a) {\n d.errorCallback(a, c.errorCall);\n }\n });\n },\n loadSeals: function loadSeals(a, b) {\n var c = this;\n c.sealService.loadSeal({\n successCall: function successCall(b) {\n void 0 !== a && null !== a && null !== b && void 0 !== b.seals && null !== b.seals && a(b);\n },\n errorCall: function errorCall(a) {\n c.errorCallback(a, b && b.errorCall ? b.errorCall : null);\n }\n });\n },\n runSS: function runSS(a, b) {\n var c = this;\n null !== b && (c.keyData = b, null == b.seals || 0 == b.seals.length ? c.errorCallback({\n errcode: \"11107\"\n }, a.errorCall) : void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && void 0 === b.ServerTime ? void 0 !== c.serverUrl && null !== c.serverUrl ? (b = {\n usercode: c.usercode,\n keysn: c.keyData.keysn,\n signname: c.signname,\n authcode: _Signature$$module$webapp$kinggrid$signature_all.authcode\n }, kinggrid.surry(c.serverUrl).request(\"_key_load\", b).ret(function (b) {\n b.result ? (c.curDate = b.ServerTime, c.keyData = b, c.showSeals(a)) : c.errorCallback(b, a.errorCall);\n })) : (c.curDate = new Date().toLocaleString(), c.showSeals(a)) : (c.curDate = b.ServerTime, c.showSeals(a)));\n },\n formatPos: function formatPos(a, b, c) {\n var d = {};\n if (a) {\n var e = function e(a) {\n var e = a.elemid || a[0].id;\n e || (e = \"body\");\n d[e] = void 0 != b && void 0 != c ? {\n marginLeft: b,\n marginTop: c\n } : Utils$$module$webapp$kinggrid$signature_all.filter(a, e);\n };\n if (Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", a)) for (var f = 0; f < a.length; f++) e(a[f]);else Utils$$module$webapp$kinggrid$signature_all.is(\"String\", a) ? d[a] = void 0 != b && void 0 != c ? {\n marginLeft: b,\n marginTop: c\n } : {} : e(a);\n } else d.body = {};\n return d;\n },\n exec: function exec(a, b, c, d, e, f) {\n var g = this;\n delete g.signatureData;\n var h = null != a.protectedItemsType && \"1\" == a.protectedItemsType ? a.protectedItems : g.getProtectedData(a.protectedItems);\n h = {\n timestamp: {\n time: void 0 == a.signtime ? new Date().getTime() : new Date(Date.parse(a.signtime.replace(/-/g, \"/\"))).getTime(),\n signtime: void 0 == a.showtime ? a.signtime : a.showtime,\n timestampInfo: a.timestampInfo\n },\n appname: navigator.userAgent,\n documentid: void 0 == a.documentid ? g.documentid : a.documentid,\n documentname: void 0 == a.documentname ? g.documentname : a.documentname,\n moveable: Utils$$module$webapp$kinggrid$signature_all.boolean(a, \"moveable\", _Signature$$module$webapp$kinggrid$signature_all.options.moveable),\n keysn: g.keyData.keysn,\n orgname: g.keyData.orgname,\n usercode: g.keyData.usercode,\n username: g.keyData.username || c.username,\n phoneshield: _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield ? !0 : !1,\n gbOvalue: g.keyData.gbOvalue,\n seal: c,\n protectedData: h,\n sealType: a.sealType || g.sealType,\n extparam: a.extparam,\n ver: _Signature$$module$webapp$kinggrid$signature_all.version,\n dateTime: a.datetime\n };\n g.signatureData = h;\n g.certService.sData = g.signatureData;\n g.sealService.sData = g.signatureData;\n plus$$module$webapp$kinggrid$signature_all.showLoading();\n var k = a.autoCert || g.autoCert || _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield && \"1\" != _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone,\n l = function l(a) {\n var b = g.signatureData;\n if (a && a.position) {\n if (a.offsetX && a.offsetY) a.changeOffsetXY && a.changeOffsetXY(a), b.position = g.formatPos(a.position, a.offsetX, a.offsetY);else if (a.changeOffsetXY) {\n var d = {\n width: Math.ceil(9600 * parseFloat(c.width) / 254),\n height: Math.ceil(9600 * parseFloat(c.height) / 254)\n };\n d = a.changeOffsetXY(d);\n b.position = g.formatPos(a.position, d.offsetX, d.offsetY);\n } else b.position = g.formatPos(a.position);\n d = a.signatureid || g.genId();\n a && a.scopePosition && (void 0 == _Signature$$module$webapp$kinggrid$signature_all.options.extra && (_Signature$$module$webapp$kinggrid$signature_all.options.extra = {}), _Signature$$module$webapp$kinggrid$signature_all.options.extra[d] = {\n scopePosition: a.scopePosition\n });\n b.timeid = new Date().getTime();\n var e = new _Signature$$module$webapp$kinggrid$signature_all(d, b).load(_Signature$$module$webapp$kinggrid$signature_all.options);\n a.okCall && (b = {\n name: c.signname,\n height: c.height,\n width: c.width,\n imgdata: g.toBase64Img(c)\n }, a.isBatchSignature ? a.okCall.call(e, function (a) {}, a.documentid) : a.okCall.call(e, function (b) {\n g.trigger(\"createSignature\", e, a.logMeta, k);\n b && e.show();\n }, b));\n plus$$module$webapp$kinggrid$signature_all.hideLoading();\n } else throw Error(\"no set position\");\n };\n if (k) {\n g.getSignData(h);\n h = g.getH5SignData();\n if (a.signMeta) h[Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", a.signMeta) ? \"concat\" : \"push\"](a.signMeta);\n a.beforeSignCall && a.beforeSignCall.call(g, h);\n e ? \"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType ? g.runSign(h, d, function (h) {\n h.result && (l(a), f && 1 < f.batchSignature.length && (a.documentid = f.batchSignature[f.batchSignature.length - 1].documentid, a.documentname = f.batchSignature[f.batchSignature.length - 1].documentname, a.position = f.batchSignature[f.batchSignature.length - 1].position, a.protectedItems = f.batchSignature[f.batchSignature.length - 1].protectedItems, --f.batchSignature.length, g.exec(a, b, c, d, e, f)));\n b(h);\n }) : g.runSign(h, d, function (c) {\n c.result && l(a);\n b(c);\n }) : g.runSign(h, d, function (c) {\n c.result && l(a);\n b(c);\n });\n } else e ? l(a) : g.sealService.verifyPwd({\n pwd: d,\n keysn: h.keysn,\n successCall: function successCall(c) {\n c.result && l(a);\n b(c);\n }\n });\n },\n runPwd: function runPwd(a) {\n var b = this;\n b.showPwdDialog({\n cancelCall: a.cancelCall,\n _onOk: function _onOk(c) {\n _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW = !0;\n _Signature$$module$webapp$kinggrid$signature_all.options.password = c;\n var d = this.find(\"#kg-remenberPwd\").is(\":checked\");\n b.trigger(\"execSuccess\", this, c, d);\n b.run($$$module$webapp$kinggrid$signature_all.extend(a, {\n beginCancalCall: function beginCancalCall() {\n _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW = !1;\n _Signature$$module$webapp$kinggrid$signature_all.options.password = \"\";\n }\n }));\n }\n });\n },\n showPwdDialog: function showPwdDialog(a) {\n var b = this,\n c = a._onOk;\n b.showDialog(\"passwordTpl\", {\n onCancel: a.cancelCall,\n onShow: function onShow() {\n var a = this;\n b.trigger(\"showSealsDialog_PW\", a);\n setTimeout(function () {\n a.find(\"#kg-password\").focus();\n }, 40);\n a.find(\"#kg-password\").keydown(function (b) {\n 13 == b.keyCode && a.options.onOk.call(a);\n });\n },\n onOk: function onOk() {\n var a = this.find(\"#kg-password\"),\n b = a.val();\n b ? (c.call(this, b), this.remove()) : plus$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(\"in_pwd_msg\", \"KG_MSG\"), function () {\n a.focus();\n });\n return !1;\n },\n content: function content() {\n return Utils$$module$webapp$kinggrid$signature_all.template.apply(null, [plus$$module$webapp$kinggrid$signature_all.template.passwordTpl]);\n }\n });\n },\n getPassCheck: function getPassCheck(a, b, c) {\n if (a && 1 == a) return a;\n if (void 0 === c || !0 === c || \"auto\" === c) try {\n return b.find(\"#kg-remenberPwd\").is(\":checked\");\n } catch (d) {}\n return !1;\n },\n showSeals: function showSeals(a) {\n var b = this,\n c = {\n errorCall: a.errorCall,\n cancelCall: a.cancelCall,\n beginCancalCall: a.beginCancalCall,\n protectedItems: a.protectedItems,\n protectedItemsType: a.protectedItemsType,\n protectedItemsCheckedAll: void 0 == a.protectedItemsCheckedAll ? !0 : a.protectedItemsCheckedAll,\n _onOk: function _onOk(c, d, e, f, m, p) {\n var g = this,\n h = new plus$$module$webapp$kinggrid$signature_all.kgFont(null == g.fontSel ? null == b.signdate ? {} : b.signdate : g.fontSel),\n k = g.isCheck;\n !1 !== _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg && b.autoDlg || !_Signature$$module$webapp$kinggrid$signature_all.options.signdate || !_Signature$$module$webapp$kinggrid$signature_all.options.signdate.ischeck || (k = _Signature$$module$webapp$kinggrid$signature_all.options.signdate.ischeck);\n a.protectedItems = null == g.proItems ? 0 == a.protectedItemsCheckedAll ? [] : a.protectedItems : g.proItems;\n a.datetime = {\n isCheck: k,\n fontDate: h\n };\n void 0 != f && null != f ? (a.signtime = f, void 0 != m && null != m ? (a.showtime = (f + \" (\" + m.TimeExt + \")\").replace(/-/g, \"/\"), a.showtime += kinggrid.msg(\"timestamp_time\", \"KG_MSG\"), a.timestampInfo = m) : (a.showtime = new Date(Date.parse(f.replace(/-/g, \"/\"))).toLocaleString(), a.showtime += kinggrid.msg(\"server_time\", \"KG_MSG\"))) : (a.signtime = void 0, a.showtime = new Date().toLocaleString(), a.showtime += kinggrid.msg(\"local_time\", \"KG_MSG\"));\n p = b.getPassCheck(p, g, _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg);\n void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.valid || null === _Signature$$module$webapp$kinggrid$signature_all.options.valid || !1 === _Signature$$module$webapp$kinggrid$signature_all.options.valid ? a.batchSignature ? b.sealService.verifyPwd({\n pwd: d,\n usercode: void 0 == a.usercode ? \"\" : a.usercode,\n keysn: b.keyData.keysn,\n successCall: function successCall(e) {\n if (e.result) {\n for (e = 0; e < a.batchSignature.length && (a.batchSignature[e].signtime = a.signtime, a.batchSignature[e].showtime = a.showtime, null != a.position && (a.batchSignature[e].position = a.position), a.batchSignature[e].autoCert = a.autoCert, a.batchSignature[e].okCall = a.okCall, a.batchSignature[e].cancelCall = a.cancelCall, a.batchSignature[e].beginCall = a.beginCall, a.batchSignature[e].endCall = a.endCall, null != a.protectedItems && (a.batchSignature[e].protectedItems = a.protectedItems), a.batchSignature[e].protectedItemsType = a.protectedItemsType, a.batchSignature[e].datetime = a.datetime, a.batchSignature[e].offsetX = a.offsetX, a.batchSignature[e].offsetY = a.offsetY, a.batchSignature[e].changeOffsetXY = a.changeOffsetXY, a.batchSignature[e].isBatchSignature = !0, b.exec(a.batchSignature[e], function (c) {\n c.result ? void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW ? void 0 !== a.beginCancalCall && a.beginCancalCall && a.beginCancalCall.call(b) : (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || b.autoDlg) && b.trigger(\"execSuccess\", g, d, p) : b.errorCallback(c, a.errorCall);\n }, c, d, !0, a), void 0 !== a.batchSignature[e].endCall && a.batchSignature[e].endCall && a.batchSignature[e].endCall.call(b), \"client\" != _Signature$$module$webapp$kinggrid$signature_all.options.sealType || !a.autoCert); ++e);\n void 0 !== a.beginCancalCall && a.beginCancalCall && a.beginCancalCall.call(b);\n (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || b.autoDlg) && g.remove();\n } else b.errorCallback(e, a.errorCall);\n }\n }) : (b.exec(a, function (c) {\n c.result ? (void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield ? void 0 !== a.beginCancalCall && a.beginCancalCall && a.beginCancalCall.call(b) : (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || b.autoDlg) && b.trigger(\"execSuccess\", g, d, p), g.remove()) : b.errorCallback(c, a.errorCall, null, {\n _beginDlgOkCall: !0\n });\n }, c, d), void 0 !== a.endCall && a.endCall && a.endCall.call(b)) : void 0 !== b.curDate && null !== b.curDate && b.sealExpired(c, a, b.curDate, function (e) {\n e ? a.batchSignature ? b.sealService.verifyPwd({\n pwd: d,\n keysn: b.keyData.keysn,\n successCall: function successCall(e) {\n if (e.result) {\n for (e = 0; e < a.batchSignature.length && (a.batchSignature[e].signtime = a.signtime, a.batchSignature[e].showtime = a.showtime, null != a.position && (a.batchSignature[e].position = a.position), a.batchSignature[e].autoCert = a.autoCert, a.batchSignature[e].okCall = a.okCall, a.batchSignature[e].cancelCall = a.cancelCall, a.batchSignature[e].beginCall = a.beginCall, a.batchSignature[e].endCall = a.endCall, null != a.protectedItems && (a.batchSignature[e].protectedItems = a.protectedItems), a.batchSignature[e].protectedItemsType = a.protectedItemsType, a.batchSignature[e].datetime = a.datetime, a.batchSignature[e].offsetX = a.offsetX, a.batchSignature[e].offsetY = a.offsetY, a.batchSignature[e].changeOffsetXY = a.changeOffsetXY, a.batchSignature[e].isBatchSignature = !0, b.exec(a.batchSignature[e], function (c) {\n c.result ? void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield ? void 0 !== a.beginCancalCall && a.beginCancalCall && a.beginCancalCall.call(b) : (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || b.autoDlg) && b.trigger(\"execSuccess\", g, d, p) : b.errorCallback(c, a.errorCall);\n }, c, d, !0), void 0 !== a.batchSignature[e].endCall && a.batchSignature[e].endCall && a.batchSignature[e].endCall.call(b), \"client\" != _Signature$$module$webapp$kinggrid$signature_all.options.sealType || !a.autoCert); ++e);\n void 0 !== a.beginCancalCall && a.beginCancalCall && a.beginCancalCall.call(b);\n (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || b.autoDlg) && g.remove();\n } else b.errorCallback(e, a.errorCall);\n }\n }) : (b.exec(a, function (c) {\n c.result ? (void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield ? void 0 !== a.beginCancalCall && a.beginCancalCall && a.beginCancalCall.call(b) : (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || !0 === _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg || b.autoDlg) && b.trigger(\"execSuccess\", g, d, p), g.remove()) : b.errorCallback(c, a.errorCall, null, {\n _beginDlgOkCall: !0\n });\n }, c, d), void 0 !== a.endCall && a.endCall && a.endCall.call(b)) : b.errorCallback({\n errcode: \"11103\"\n }, a.errorCall);\n }, e);\n }\n };\n if (void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg) {\n var d = !0;\n if (\"auto\" == _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg) {\n var e = b.keyData;\n e.seals && 1 == e.seals.length && (d = !1);\n }\n b.autoDlg = d;\n if (!1 !== _Signature$$module$webapp$kinggrid$signature_all.options.showSealsDlg && d) this.showSealsDialog(c);else if (void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.password && void 0 !== b.password && (_Signature$$module$webapp$kinggrid$signature_all.options.password = b.password), void 0 === _Signature$$module$webapp$kinggrid$signature_all.options.password) b.errorCallback({\n errcode: \"11108\"\n }, a.errorCall);else if (void 0 != _Signature$$module$webapp$kinggrid$signature_all.options.timestamp && 1 == _Signature$$module$webapp$kinggrid$signature_all.options.timestamp) {\n if (\"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType) {\n var f = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n f.invoke(\"KGGetTSURLInfo\").ret(function (d) {\n d.result ? f.invoke(\"KGGetTSWithDigest\", d.TimeStampUrl, d.TimeStampUserName, d.TimeStampPassword, b.getSignTimeStamp(b.getProtectedData(a.protectedItems)), \"\").ret(function (d) {\n d.result ? c._onOk.call(b, b.keyData.seals[0], _Signature$$module$webapp$kinggrid$signature_all.options.password, 0, d.TimeStr, d) : (b.errorCallback(d, a.errorCall, \"KGGetTSWithDigest\"), c._onOk.call(b, e.seals[0], pwdVal, 0));\n }) : (b.errorCallback(d, a.errorCall, \"KGGetTSURLInfo\"), c._onOk.call(b, e.seals[0], pwdVal, 0));\n });\n } else $$$module$webapp$kinggrid$signature_all.ajax({\n url: _Signature$$module$webapp$kinggrid$signature_all.options.serverUrl + \"_key_getTimeStamp\",\n type: \"POST\",\n data: {\n keysn: b.keyData.keysn\n },\n async: !1,\n success: function success(a) {\n a.result ? c._onOk.call(b, b.keyData.seals[0], _Signature$$module$webapp$kinggrid$signature_all.options.password, 0, a.timestamp) : c._onOk.call(b, b.keyData.seals[0], _Signature$$module$webapp$kinggrid$signature_all.options.password, 0);\n },\n error: function error(a) {\n c._onOk.call(b, b.keyData.seals[0], _Signature$$module$webapp$kinggrid$signature_all.options.password, 0);\n }\n });\n } else c._onOk.call(b, b.keyData.seals[0], _Signature$$module$webapp$kinggrid$signature_all.options.password, 0);\n } else this.showSealsDialog(c);\n },\n showSealsDialog: function showSealsDialog(a) {\n var b = this,\n c = b.keyData;\n null != b.signdate && (c.signDateIsCheck = b.signdate.ischeck);\n var d = null != a.protectedItemsType && \"1\" == a.protectedItemsType ? a.protectedItems : b.getProtectedData(a.protectedItems);\n c.showProtectedBtn = d && 0 < d.length && _Signature$$module$webapp$kinggrid$signature_all.options.showProtectedBtn;\n for (var e = a.protectedItemsCheckedAll, f = [], g = 0; d && g < d.length; g++) f[g] = d[g], f[g].isChecked = e;\n c.newProItems = f;\n var h = [c],\n k = a._onOk,\n l = a.beginCancalCall;\n d = {\n onCancel: a.cancelCall,\n onShow: function onShow() {\n var d = this,\n e = d.find(\".kg-switcher\");\n if (e.length) {\n var f = new Utils$$module$webapp$kinggrid$signature_all.Switcher(e[0], b.switcher || {});\n e.find(\".arrow-right\").click(function (a) {\n a.preventDefault();\n f.swipeNext();\n });\n e.find(\".arrow-left\").click(function (a) {\n a.preventDefault();\n f.swipePrev();\n });\n e.find(\".kg-guide span\").click(function (a) {\n a.preventDefault();\n f.to(+this.getAttribute(\"index\"));\n });\n b.switcher = f;\n }\n d.find(\"#kg-dateSet\").click(function (a) {\n b.showFontDialog(d);\n });\n setTimeout(function () {\n d.find(\"#kg-password\").focus();\n }, 40);\n b.trigger(\"showSealsDialog\", d);\n _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW && _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield || b.trigger(\"showSealsDialog_PW\", d);\n d.find(\"#kg-password\").keydown(function (a) {\n 13 == a.keyCode && d.options.onOk.call(d);\n });\n d.find(\"#kg-protectedDataSet\").click(function (e) {\n b.showProtectedDataDialog(d, a, c);\n });\n },\n onOk: function onOk() {\n var d = this,\n e = d.find(\"#kg-password\"),\n f = e.val() || _Signature$$module$webapp$kinggrid$signature_all.options.password;\n if (!_Signature$$module$webapp$kinggrid$signature_all.options.phoneshield && !f) return plus$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(\"in_pwd_msg\", \"KG_MSG\"), function () {\n setTimeout(function () {\n e.focus();\n }, 100);\n }), !1;\n var g = d.find(\".kg-wrapper .active\");\n d.isCheck = d.find(\"#kg-addDate\").is(\":checked\");\n var h = d.find(\"#kg-remenberPwd\").is(\":checked\"),\n l = b.keyData.seals[g.attr(\"index\")].SealTag || b.keyData.seals[g.attr(\"index\")].sealtag;\n if (\"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType && l && \"GM\" == l) {\n var v = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n l = b.keyData.seals[g.attr(\"index\")].SealCert || b.keyData.seals[g.attr(\"index\")].signercert;\n var E = b.keyData.seals[g.attr(\"index\")].ValidStart || b.keyData.seals[g.attr(\"index\")].validstart,\n x = b.keyData.seals[g.attr(\"index\")].ValidEnd || b.keyData.seals[g.attr(\"index\")].validend,\n y = b.keyData.seals[g.attr(\"index\")].CertList || b.keyData.seals[g.attr(\"index\")].certlist;\n v.invoke(\"KGValidate_GM\", \"\", l, E, x, y, \"\").ret(function (e) {\n if (e.result) {\n if (void 0 != _Signature$$module$webapp$kinggrid$signature_all.options.timestamp && 1 == _Signature$$module$webapp$kinggrid$signature_all.options.timestamp) {\n var l = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n l.invoke(\"KGGetTSURLInfo\").ret(function (e) {\n e.result ? l.invoke(\"KGGetTSWithDigest\", e.TimeStampUrl, e.TimeStampUserName, e.TimeStampPassword, b.getSignTimeStamp(b.getProtectedData(a.protectedItems)), \"\").ret(function (e) {\n e.result ? k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\"), e.TimeStr, e, h ? !0 : !1) : (b.errorCallback(e, a.errorCall, \"KGGetTSWithDigest\"), k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\"), void 0, void 0, h ? !0 : !1));\n }) : (b.errorCallback(e, a.errorCall, \"KGGetTSWithDigest\"), k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\"), void 0, void 0, h ? !0 : !1));\n });\n } else k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\"), void 0, void 0, h ? !0 : !1);\n } else return b.errorCallback(e, a.errorCall, \"KGValidate_GM\"), !1;\n });\n } else if (\"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType && b.keyData.seals[g.attr(\"index\")].sealtag && \"GB\" == b.keyData.seals[g.attr(\"index\")].sealtag) {\n v = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n var z = b.keyData.seals[g.attr(\"index\")];\n v.invoke(\"KGVerifyGBSealAction\", z.sesealinfo, z.signsn).ret(function (c) {\n if (c.result) b.keyData.gbOvalue = c.ovalue, k.call(d, z, f, g.attr(\"index\"), void 0, void 0, h ? !0 : !1);else return b.errorCallback(c, a.errorCall, \"KGVerifyGBSealAction\"), !1;\n });\n } else return g = d.find(\".kg-wrapper .active\"), d.isCheck = d.find(\"#kg-addDate\").is(\":checked\"), void 0 != _Signature$$module$webapp$kinggrid$signature_all.options.timestamp && 1 == _Signature$$module$webapp$kinggrid$signature_all.options.timestamp ? \"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType ? (v = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode), v.invoke(\"KGGetTSURLInfo\").ret(function (e) {\n e.result ? v.invoke(\"KGGetTSWithDigest\", e.TimeStampUrl, e.TimeStampUserName, e.TimeStampPassword, b.getSignTimeStamp(b.getProtectedData(a.protectedItems)), \"\").ret(function (e) {\n e.result ? k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\"), e.TimeStr, e) : (b.errorCallback(e, a.errorCall, \"KGGetTSWithDigest\"), k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\")));\n }) : (b.errorCallback(e, a.errorCall, \"KGGetTSURLInfo\"), k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\")));\n })) : $$$module$webapp$kinggrid$signature_all.ajax({\n url: _Signature$$module$webapp$kinggrid$signature_all.options.serverUrl + \"_key_getTimeStamp\",\n type: \"POST\",\n data: {\n keysn: b.keyData.keysn\n },\n async: !1,\n success: function success(a) {\n a.result ? k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\"), a.timestamp) : k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\"));\n },\n error: function error(a) {\n k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\"));\n }\n }) : k.call(d, c.seals[g.attr(\"index\")], f, g.attr(\"index\")), !1;\n },\n content: function content() {\n h.push(b.toBase64Img);\n var a = [_Signature$$module$webapp$kinggrid$signature_all.options.template.showSealsBtl].concat(h);\n if (_Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield) a = [_Signature$$module$webapp$kinggrid$signature_all.options.template.showSealsBtl_nopassword].concat(h);\n return Utils$$module$webapp$kinggrid$signature_all.template.apply(null, a);\n }\n };\n void 0 !== l && l && (d = Utils$$module$webapp$kinggrid$signature_all.extend({\n onCancel: function onCancel() {\n void 0 !== l && l && l.call(b);\n this.close();\n }\n }, d));\n _Signature$$module$webapp$kinggrid$signature_all.options.showNoPW || _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield ? b.showDialog(\"showSealsBtl_nopassword\", d) : b.showDialog(\"showSealsBtl\", d);\n _Signature$$module$webapp$kinggrid$signature_all.options.showSignExpirePrompt && null != c.currenttime && void 0 != c.currenttime && null != c.overdate && void 0 != c.overdate && (d = new Date(c.currenttime), e = Math.floor((new Date(c.overdate).getTime() - d.getTime()) / 864E5), e <= c.hintdays && 0 <= e && (localStorage.getItem(\"lastAlertDate\") && null != localStorage.getItem(\"lastAlertDate\") && \"\" != localStorage.getItem(\"lastAlertDate\") ? (f = localStorage.getItem(\"lastAlertDate\"), f = new Date(f), 0 < d.getTime() - f.getTime() && b.showExpirtDialog(\"\\u5F53\\u524D\\u7528\\u6237\\u8FD8\\u6709\" + e + \"\\u5929\\u8FC7\\u671F\\uFF0C\\u8BF7\\u53CA\\u65F6\\u66F4\\u65B0\\uFF01\", c.currenttime)) : b.showExpirtDialog(\"\\u5F53\\u524D\\u7528\\u6237\\u8FD8\\u6709\" + e + \"\\u5929\\u8FC7\\u671F\\uFF0C\\u8BF7\\u53CA\\u65F6\\u66F4\\u65B0\\uFF01\", c.currenttime)));\n },\n showProtectedDataDialog: function showProtectedDataDialog(a, b, c) {\n var d = [{\n newProData: c.newProItems,\n proItemsCheckedAll: b.protectedItemsCheckedAll\n }],\n e = {\n title: kinggrid.msg(\"ProtectedDataSet\", \"KG_TITLE\"),\n content: function content() {\n d.push(Utils$$module$webapp$kinggrid$signature_all.html2Escape);\n var a = [_Signature$$module$webapp$kinggrid$signature_all.options.template.protectedDataSetBtl].concat(d);\n return Utils$$module$webapp$kinggrid$signature_all.template.apply(null, a);\n },\n onOk: function onOk() {\n for (var d = 0; d < c.newProItems.length; d++) f.find(\"input[name='kg-proItem']\").each(function (a, b) {\n if (f.find(\"input[name='kg-proItem']\")[a].checked && $$$module$webapp$kinggrid$signature_all(this).val() == c.newProItems[d].field) return c.newProItems[d].isChecked = !0, !1;\n c.newProItems[d].isChecked = !1;\n });\n var e = [];\n if (null != b.protectedItemsType && \"1\" == b.protectedItemsType) for (var k = 0; k < c.newProItems.length; k++) c.newProItems[k].isChecked && e.push(c.newProItems[k]);else for (k = 0; k < c.newProItems.length; k++) c.newProItems[k].isChecked && e.push(c.newProItems[k].field);\n a.proItems = e;\n }\n },\n f = plus$$module$webapp$kinggrid$signature_all.showDialog(\"protectedDataSetBtl\", e);\n f.find(\"#kg-proData-items\").on(\"click\", function (a) {\n \"LABEL\" == a.target.tagName && f.find(\"#kg-selectedProData\").text($$$module$webapp$kinggrid$signature_all(a.target).text().split(\"]\")[1]);\n if (\"checkbox\" == a.target.type) if ($$$module$webapp$kinggrid$signature_all(a.target).is(\":checked\")) {\n a = !0;\n for (var c = f.find(\"input[name='kg-proItem']\"), d = 0; d < c.length; d++) if (!c[d].checked) {\n a = !1;\n break;\n }\n a && (f.find(\"input[name='selectAll']\")[0].checked = !0, b.protectedItemsCheckedAll = !0);\n } else f.find(\"input[name='selectAll']\")[0].checked = !1, b.protectedItemsCheckedAll = !1;\n });\n f.find(\"#kg-selectBox\").on(\"click\", function (a) {\n if ($$$module$webapp$kinggrid$signature_all(a.target).is(\":checked\")) {\n b.protectedItemsCheckedAll = !0;\n a = f.find(\"input[name='kg-proItem']\");\n for (var d = 0; d < a.length; d++) a[d].checked = !0, c.newProItems[d].isChecked = !0;\n } else for (b.protectedItemsCheckedAll = !1, a = f.find(\"input[name='kg-proItem']\"), d = 0; d < a.length; d++) a[d].checked = !1, c.newProItems[d].isChecked = !1;\n });\n return f;\n },\n showFontDialog: function showFontDialog(a) {\n var b = this,\n c = plus$$module$webapp$kinggrid$signature_all.dafaultDate,\n d = null == b.signdate ? {} : b.signdate,\n e = plus$$module$webapp$kinggrid$signature_all.defaultFont;\n b = this;\n b = null == d.fontFormat ? e.fontFormat : d.fontFormat;\n var f = null == d.fontFamily ? e.fontFamily : d.fontFamily,\n g = null == d.fontSize ? e.fontSize : d.fontSize,\n h = e.fontColor;\n null != d.fontColor && /^#([0-9a-fA-f]{6})$/.test(d.fontColor) && (h = d.fontColor.toUpperCase());\n d = null == d.position ? e.position : d.position;\n null != a.fontSel && (b = a.fontSel.fontFormat, f = a.fontSel.fontFamily, g = a.fontSel.fontSize, h = a.fontSel.fontColor, d = plus$$module$webapp$kinggrid$signature_all.fontTemplate.position[a.fontSel.fontPositionIndex]);\n var k = this.getArrayPush(_Signature$$module$webapp$kinggrid$signature_all.options.fontTemplate.fontFormat, b),\n l = [{\n fontFormat: this.getFormatDate(k, c),\n fontFamily: this.getArrayPush(_Signature$$module$webapp$kinggrid$signature_all.options.fontTemplate.fontFamily, f),\n fontSize: this.getArrayPush(_Signature$$module$webapp$kinggrid$signature_all.options.fontTemplate.fontSize, g),\n fontColor: this.getArrayPush(_Signature$$module$webapp$kinggrid$signature_all.options.fontTemplate.fontColor, h),\n fontPosition: _Signature$$module$webapp$kinggrid$signature_all.options.fontTemplate.position,\n dFontFormat: kinggrid.Utils.formatDate(new Date(c), b),\n dFontFamily: f,\n dFontSize: g,\n dFontColor: h,\n dFontPosition: d\n }];\n c = {\n title: kinggrid.msg(\"DateSet\", \"KG_TITLE\"),\n content: function content() {\n var a = [_Signature$$module$webapp$kinggrid$signature_all.options.template.dateSetBtl].concat(l);\n return Utils$$module$webapp$kinggrid$signature_all.template.apply(null, a);\n },\n onOk: function onOk() {\n var b = this.find(\"#kg-fontFormat\").get(0).selectedIndex;\n a.fontSel = {\n fontFormat: k[b],\n fontFamily: this.find(\"#kg-fontFamily\").val(),\n fontSize: this.find(\"#kg-fontSize\").val(),\n fontColor: kinggrid.Utils.colorHex(this.find(\"#kg-select-color\").css(\"backgroundColor\")),\n fontPositionIndex: this.find(\"#kg-fontPosition\").get(0).selectedIndex\n };\n }\n };\n var m = plus$$module$webapp$kinggrid$signature_all.showDialog(\"dateSetBtl\", c);\n m.find(\"#kg-select-color\").on(\"click\", function () {\n \"block\" == m.find(\".kg-color-div\").css(\"display\") ? (m.find(\".kg-color-div\").css(\"display\", \"none\"), m.find(\"#kg-color-ul\").css(\"display\", \"none\")) : (m.find(\".kg-color-div\").css(\"display\", \"block\"), m.find(\"#kg-color-ul\").css(\"display\", \"block\"));\n });\n m.find(\"#kg-color-ul li a\").click(function () {\n m.find(\"#kg-select-color\").css(\"backgroundColor\", $$$module$webapp$kinggrid$signature_all(this).css(\"backgroundColor\"));\n m.find(\".kg-color-div\").css(\"display\", \"none\");\n m.find(\"#kg-color-ul\").css(\"display\", \"none\");\n });\n m.find(\".kg-color-div\").on(\"mouseover\", function (a) {\n this.contains(a.fromElement || a.relatedTarget) || $$$module$webapp$kinggrid$signature_all(this).show();\n });\n m.find(\".kg-color-div\").on(\"mouseout\", function (a) {\n this.contains(a.toElement || a.relatedTarget) || $$$module$webapp$kinggrid$signature_all(this).hide();\n });\n return m;\n },\n getArrayPush: function getArrayPush(a, b) {\n -1 == jQuery.inArray(b, a) && a.push(b);\n return a;\n },\n getFormatDate: function getFormatDate(a, b) {\n for (var c = [], d = 0; d < a.length; d++) c[d] = kinggrid.Utils.formatDate(new Date(b), a[d]);\n return c;\n },\n genId: function genId() {\n return now$$module$webapp$kinggrid$signature_all() + rand$$module$webapp$kinggrid$signature_all();\n },\n getSeal: function getSeal(a) {\n return this.keyData.seals[a];\n },\n saveSignature: function saveSignature(a, b, c, d) {\n var e = this;\n void 0 != a && void 0 != b && void 0 != c && (a = void 0 != _Signature$$module$webapp$kinggrid$signature_all.options.cache_path && null != _Signature$$module$webapp$kinggrid$signature_all.options.cache_path ? {\n documentId: a,\n signatureId: b,\n signaturedata: c,\n cachepath: _Signature$$module$webapp$kinggrid$signature_all.options.cache_path\n } : {\n documentId: a,\n signatureId: b,\n signaturedata: c,\n cachepath: \"\"\n }, kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.serverUrl).request(\"_signature_saveHtmlSignature\", a).ret(function (a) {\n void 0 !== d && null !== d && d.call(e, a);\n }));\n },\n removeSignature: function removeSignature(a, b, c) {\n var d = this;\n void 0 != a && void 0 != b && (a = {\n documentId: a,\n signatureId: b\n }, kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.serverUrl).request(\"_signature_reomveHtmlSignature\", a).ret(function (a) {\n void 0 !== c && null !== c && c.call(d, a);\n }));\n },\n getSaveSignatures: function getSaveSignatures(a, b, c) {\n void 0 != a && kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.serverUrl).request(\"_signature_getHtmlSignature\", {\n documentId: a\n }).ret(function (a) {\n a.result ? b(a.sign) : c && c(a.result);\n });\n },\n showExpirtDialog: function showExpirtDialog(a, b) {\n plus$$module$webapp$kinggrid$signature_all.showDialog(\"showExpirtDialog\", {\n content: '
' + a + \"
 
\",\n onOk: function onOk() {\n this.find(\"#kg-noMorePrompts\").is(\":checked\") && localStorage.setItem(\"lastAlertDate\", b);\n },\n onCancel: function onCancel() {}\n });\n }\n});\n$$$module$webapp$kinggrid$signature_all.extend(_Signature$$module$webapp$kinggrid$signature_all.options, {\n certType: \"client\",\n sealType: \"client\",\n clientUrl: \"http://127.0.0.1:9581\",\n moveable: !0,\n signable: !0,\n fontTemplate: plus$$module$webapp$kinggrid$signature_all.fontTemplate,\n template: {\n showSealsBtl: plus$$module$webapp$kinggrid$signature_all.template.sealTpl,\n showSealsBtl_nopassword: plus$$module$webapp$kinggrid$signature_all.template.sealTpl_nopassword,\n signSignatureBtl: \"
\",\n revokeSignatureBtl: \"

<%this.signatureData.seal.signname%>

\",\n protectedDataSetBtl: \"
<% var newProData = this.newProData; %><% var isAllChecked = this.proItemsCheckedAll; %>
<% for(var i=0;i
<% var proId = \\\"proItem\\\"+i; %><% var filedd = newProData[i].desc && newProData[i].desc != \\\"\\\" ? newProData[i].desc : newProData[i].field; %><% var content = \\\"[\\\" + filedd+\\\"]\\\" + arguments[0](newProData[i].value); %><% if(newProData[i].isChecked){ %>\\\" value=\\\"<% newProData[i].field%>\\\" class=\\\"kg-dialog-checkbox\\\">  <% } %><% else{ isAllChecked = false; %>\\\" value=\\\"<% newProData[i].field%>\\\" class=\\\"kg-dialog-checkbox\\\">  <% } %>
<%}%>
<% if(isAllChecked){ %>  <% } else{ %>  <% } %>
\",\n dateSetBtl: \"
<% var fontColor = this.fontColor; %>
\\\"/>
    <% for(var i=0;i
  • \\\">
  • <%}%>
\"\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.list = {};\n_Signature$$module$webapp$kinggrid$signature_all.updateList = [];\n_Signature$$module$webapp$kinggrid$signature_all.removeList = [];\nfunction formartSignatureData$$module$webapp$kinggrid$signature_all(a, b, c) {\n var d = [],\n e = {};\n for (k in a) {\n var f = {},\n g = a[k];\n Utils$$module$webapp$kinggrid$signature_all.is(\"String\", g) && 0 != g.indexOf(\"ey\") ? (f[\"b64_\" + k] = a[k], d.push(f)) : e[k] = g;\n }\n var h = [];\n (function (a) {\n for (var b in a) h.push(new _Signature$$module$webapp$kinggrid$signature_all(b, a[b]).load(_Signature$$module$webapp$kinggrid$signature_all.options));\n })(e);\n if (a = d.length) {\n e = _Signature$$module$webapp$kinggrid$signature_all.options.signSize || 5;\n var k = Math.ceil(a / e);\n for (f = 1; f <= k; f++) {\n g = e * (f - 1);\n var l = e * f > a ? a : e * f;\n aisleKing$$module$webapp$kinggrid$signature_all = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.serverUrl);\n aisleKing$$module$webapp$kinggrid$signature_all.request(_Signature$$module$webapp$kinggrid$signature_all.options.b64Url, d.slice(g, l)).ret(function (a) {\n if (a.result) for (var b in a) {\n if (0 == b.indexOf(\"b64_\")) {\n var c = a[b];\n Utils$$module$webapp$kinggrid$signature_all.is(\"String\", c) && (c = JSON.parse(c));\n h.push(new _Signature$$module$webapp$kinggrid$signature_all(b.substring(4), c).load(_Signature$$module$webapp$kinggrid$signature_all.options));\n }\n } else _Signature$$module$webapp$kinggrid$signature_all.prototype.error.call(null, a);\n });\n }\n }\n aisleKing$$module$webapp$kinggrid$signature_all.fin(function (a, d, e) {\n b && b(1 == h.length ? h[0] : h);\n c && c();\n });\n}\n_Signature$$module$webapp$kinggrid$signature_all.loadSignature = function (a, b, c, d) {\n var e = {};\n void 0 == _Signature$$module$webapp$kinggrid$signature_all.options.extra && (_Signature$$module$webapp$kinggrid$signature_all.options.extra = {});\n e[a] = b;\n void 0 !== e.extra && null !== e.extra && (_Signature$$module$webapp$kinggrid$signature_all.options.extra[e.signatureid] = e.extra);\n formartSignatureData$$module$webapp$kinggrid$signature_all(e, c || function (a) {\n _Signature$$module$webapp$kinggrid$signature_all.verify();\n }, d);\n};\n_Signature$$module$webapp$kinggrid$signature_all.loadSignatures = function (a, b, c) {\n var d = {};\n void 0 == _Signature$$module$webapp$kinggrid$signature_all.options.extra && (_Signature$$module$webapp$kinggrid$signature_all.options.extra = {});\n if (Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", a)) for (var e = 0; e < a.length; e++) {\n var f = a[e];\n d[f.signatureid] = f.signatureData;\n void 0 !== f.extra && null !== f.extra && (_Signature$$module$webapp$kinggrid$signature_all.options.extra[f.signatureid] = f.extra);\n } else for (e in a) d[e] = a[e];\n formartSignatureData$$module$webapp$kinggrid$signature_all(d, b || function () {\n _Signature$$module$webapp$kinggrid$signature_all.verify();\n }, c);\n};\n_Signature$$module$webapp$kinggrid$signature_all.resetSignaturePos = function (a) {\n void 0 == _Signature$$module$webapp$kinggrid$signature_all.options.extra && (_Signature$$module$webapp$kinggrid$signature_all.options.extra = {});\n if (Utils$$module$webapp$kinggrid$signature_all.is(\"Array\", a)) for (var b = 0; b < a.length; b++) {\n var c = a[b];\n void 0 !== c.extra && null !== c.extra && (_Signature$$module$webapp$kinggrid$signature_all.options.extra[c.signatureid] = c.extra);\n } else for (b in a) _Signature$$module$webapp$kinggrid$signature_all.options.extra[b] = a[b];\n};\n_Signature$$module$webapp$kinggrid$signature_all.clearRPW = function () {\n delCookie$$module$webapp$kinggrid$signature_all(\"ksn\");\n delCookie$$module$webapp$kinggrid$signature_all(\"pwd\");\n delCookie$$module$webapp$kinggrid$signature_all(\"ck\");\n};\nvar globalLisenter$$module$webapp$kinggrid$signature_all = new Listener$$module$webapp$kinggrid$signature_all(\"Signature\");\n_Signature$$module$webapp$kinggrid$signature_all.addLiseter = function (a, b) {\n globalLisenter$$module$webapp$kinggrid$signature_all.on(a, b);\n};\n_Signature$$module$webapp$kinggrid$signature_all.verify = function () {\n var a = _Signature$$module$webapp$kinggrid$signature_all.list,\n b = [];\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"beforeVerify\", d);\n for (var c in a) {\n var d = a[c];\n d._verify(null, {\n batchVerify: !0\n }) || b.push(d);\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"eachVerify\", d);\n }\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"verify\", d);\n return b;\n};\n_Signature$$module$webapp$kinggrid$signature_all.verifySignByList = function (a) {\n var b = [];\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"beforeVerify\", d);\n for (var c in a) {\n var d = a[c],\n e = d._verify(null, {\n batchVerify: !0\n }),\n f = d.signatureData,\n g = {};\n g.appname = f.appname;\n g.documentid = f.documentid;\n g.documentname = f.documentname;\n g.keysn = f.keysn;\n g.orgname = f.orgname;\n g.timestamp = f.timestamp;\n g.usercode = f.usercode;\n g.username = f.username;\n g.signname = f.seal.signname;\n g.signsn = f.seal.signsn;\n e || (g.modifiedItems = d.modifiedItems);\n b.push(g);\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"eachVerify\", d);\n }\n globalLisenter$$module$webapp$kinggrid$signature_all.trigger(\"verify\", d);\n return b;\n};\n_Signature$$module$webapp$kinggrid$signature_all.bind = function (a) {\n Utils$$module$webapp$kinggrid$signature_all.extend(_Signature$$module$webapp$kinggrid$signature_all.asyn, a);\n};\n_Signature$$module$webapp$kinggrid$signature_all.show = function () {\n var a = _Signature$$module$webapp$kinggrid$signature_all.list,\n b;\n for (b in a) a[b].show();\n};\n_Signature$$module$webapp$kinggrid$signature_all.hide = function () {\n var a = _Signature$$module$webapp$kinggrid$signature_all.list,\n b;\n for (b in a) a[b].hide();\n};\n_Signature$$module$webapp$kinggrid$signature_all.AXI = function (a, b, c) {\n _Signature$$module$webapp$kinggrid$signature_all.authcode = f;\n var d = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode),\n e;\n for (e in b) {\n var f = b[e];\n \"\" !== e && \"\" !== f ? d.invoke(a, e, f) : null !== e && \"\" !== e ? d.invoke(a, e) : d.invoke(a);\n }\n d.ret(function (a) {\n a.result && (_Signature$$module$webapp$kinggrid$signature_all.options.moveable_self ? (_Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && d.invoke(\"SetParamByName\", \"FJRSISPHONE\", _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone), d.invoke(\"KGGetKeyOtherInfo\", \"0\").ret(function (b) {\n b.result && (b = b.Res.substring(1, b.Res.length - 1), _Signature$$module$webapp$kinggrid$signature_all.options.keysn = b);\n void 0 !== c && null !== c && c(a);\n })) : void 0 !== c && null !== c && c(a));\n });\n return d;\n};\n_Signature$$module$webapp$kinggrid$signature_all.showAndHideBySignatureId = function (a, b) {\n var c = _Signature$$module$webapp$kinggrid$signature_all.list,\n d;\n for (d in c) 0 <= d.indexOf(a) && (b ? c[d].show() : c[d].hide());\n};\n_Signature$$module$webapp$kinggrid$signature_all.addIcon = function (a) {\n var b = _Signature$$module$webapp$kinggrid$signature_all.options.icons || [];\n b.push(a);\n _Signature$$module$webapp$kinggrid$signature_all.options.icons = b;\n};\n_Signature$$module$webapp$kinggrid$signature_all.create = function (a) {\n var b = $$$module$webapp$kinggrid$signature_all.extend({}, _Signature$$module$webapp$kinggrid$signature_all.options, a);\n void 0 !== a && void 0 !== a.imgtag && (_Signature$$module$webapp$kinggrid$signature_all.options.imgtag = a.imgtag);\n return new _Signature$$module$webapp$kinggrid$signature_all._create(b);\n};\n$$$module$webapp$kinggrid$signature_all.extend(_Signature$$module$webapp$kinggrid$signature_all.prototype, {\n saveSignatures: function saveSignatures() {},\n getSignatures: function getSignatures() {}\n});\nvar ClientSeal$$module$webapp$kinggrid$signature_all = function ClientSeal$$module$webapp$kinggrid$signature_all(a) {\n var b = this;\n $$$module$webapp$kinggrid$signature_all.each(a, function (a, d) {\n if (\"function\" === typeof b[a]) b[a](d);else b[a] = d;\n });\n};\nUtils$$module$webapp$kinggrid$signature_all.inherit(ClientSeal$$module$webapp$kinggrid$signature_all, _Signature$$module$webapp$kinggrid$signature_all.SealService);\nvar ClientCert$$module$webapp$kinggrid$signature_all = function ClientCert$$module$webapp$kinggrid$signature_all(a) {\n var b = this;\n $$$module$webapp$kinggrid$signature_all.each(a, function (a, d) {\n if (\"function\" === typeof b[a]) b[a](d);else b[a] = d;\n });\n};\nUtils$$module$webapp$kinggrid$signature_all.inherit(ClientCert$$module$webapp$kinggrid$signature_all, _Signature$$module$webapp$kinggrid$signature_all.CertService);\n$$$module$webapp$kinggrid$signature_all.extend(ClientSeal$$module$webapp$kinggrid$signature_all.prototype, {\n saveLog: function saveLog(a) {\n var b = [];\n Utils$$module$webapp$kinggrid$signature_all.is(\"Object\", a) ? b.push(a) : b = a;\n a = stringify$$module$webapp$kinggrid$signature_all({\n MSG: b\n });\n kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode).invoke(\"SetParamByName\", \"SAVEMSG\", a);\n },\n loadSeal: function loadSeal(a) {\n var b = this,\n c = a.successCall,\n d = a.errorCall,\n e = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n b.appcode ? e.invoke(\"SetParamByName\", \"APPCODE\", b.appcode) : b.appcode = \"\";\n _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && e.invoke(\"SetParamByName\", \"FJRSISPHONE\", _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone);\n e.invoke(\"KGGetKeyInfo\").ret(function (e) {\n if (e.result) {\n _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && localStorage.setItem(\"fjrsToken\", e.fjrs_token);\n _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield = !e.phoneshield || \"1\" != e.phoneshield && \"3\" != e.phoneshield ? !1 : !0;\n _Signature$$module$webapp$kinggrid$signature_all.options.phoneshield && (kinggrid.options.timeout = 1E3 * (e.validatetime + 10));\n if (\"\" == e.seals) {\n if (null != a.data) e.seals = {}, e.seals[0] = {\n signname: \"\",\n width: \"\",\n signsn: null,\n height: \"\",\n imgdata: \"\",\n imgext: \".png\"\n };else {\n d.call(b, {\n result: !1,\n errcode: \"11\"\n });\n return;\n }\n } else if (void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && null !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag) {\n var f = [],\n h;\n for (h in e.seals) {\n var k = e.seals[h];\n void 0 !== k && parseInt(k.imgtag) == _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && (void 0 != e.fjrs_sealname ? e.fjrs_sealname == e.seals[h].signname && (f[f.length] = e.seals[h]) : f[f.length] = e.seals[h]);\n }\n e.seals = f;\n }\n c.call(b, e);\n } else d.call(b, e);\n });\n },\n verifyPwd: function verifyPwd(a) {\n var b = this,\n c = a.pwd,\n d = a.phoneshield ? \"1\" : \"0\",\n e = a.successCall;\n null == c && (c = \"\");\n var f = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n f.invoke(\"SetParamByName\", \"ISPHONE\", d);\n _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && (f.invoke(\"SetParamByName\", \"FJRSISPHONE\", _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone), f.invoke(\"SetParamByName\", \"FJRSDELKEYSN\", a.keysn));\n f.invoke(\"KGVerifyPin\", c, a.keysn).ret(function (a) {\n e.call(b, a);\n });\n },\n getKeysn: function getKeysn(a, b) {\n a = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && (a.invoke(\"SetParamByName\", \"FJRSISPHONE\", _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone), a.invoke(\"SetParamByName\", \"FJRSTOKEN\", localStorage.getItem(\"fjrsToken\")));\n a.invoke(\"KGGetKeyOtherInfo\", \"0\").ret(function (a) {\n a.result ? (a = a.Res.substring(1, a.Res.length - 1), b(a)) : plus$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(a.errcode, \"then\"), function () {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgOkCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgOkCall.call();\n }, function () {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall.call();\n });\n });\n },\n getPhoneShieldLic: function getPhoneShieldLic(a, b) {\n a = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && a.invoke(\"SetParamByName\", \"FJRSISPHONE\", _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone);\n a.invoke(\"KGPhoneShieldLic\").ret(function (a) {\n b(a);\n });\n }\n});\n$$$module$webapp$kinggrid$signature_all.extend(ClientCert$$module$webapp$kinggrid$signature_all.prototype, {\n verifySign: function verifySign(a) {\n var b = this,\n c = a.successCall,\n d = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n a.seal && a.seal.sealtag && \"GB\" == a.seal.sealtag && d.invoke(\"SetParamByName\", \"GBSIGNSN\", a.seal.signsn);\n _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && d.invoke(\"SetParamByName\", \"FJRSISPHONE\", _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone);\n d.invoke(\"KGVerifySignMessage\", \"123456\", a.signdata, a.signeddata).ret(function (e) {\n var f = e.result || \"-8\" !== e.errcode ? e : {\n result: !1\n };\n f.result && a.seal && \"GB\" == a.seal.sealtag ? d.invoke(\"KGVerifyGBStampAction\", a.signeddata).ret(function (a) {\n a.result || (f = {\n result: !1\n });\n c.call(b, f);\n }) : c.call(b, f);\n });\n a.seal && a.seal.sealtag && \"GB\" == a.seal.sealtag && d.invoke(\"SetParamByName\", \"GBSIGNSN\", \"\");\n },\n parseDate: function parseDate(a) {\n var b = new Date();\n b.setFullYear(a.substring(0, 4), +a.substring(4, 6) - 1, a.substring(6, 8));\n b.setHours(a.substring(8, 10), a.substring(10, 12), a.substring(12, 14), 0);\n return b.getTime();\n },\n sign: function sign(a) {\n var b = this,\n c = a.successCall,\n d = a.signMeta,\n e = [],\n f = [],\n g = a.seal,\n h = a.phoneshield ? \"1\" : \"0\";\n a = a.password;\n null == a && (a = \"\");\n for (var k = 0; k < d.length; k++) {\n var l = d[k];\n e.push(l.signdata);\n f.push(\"\" + l.signdata.length);\n }\n d = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode);\n d.invoke(\"SetParamByName\", \"ISPHONE\", h);\n g && g.sealtag && (\"GB\" == g.sealtag && (h = g.sesealinfo, d.invoke(\"SetParamByName\", \"CLEARGBSESEALINFO\", \"\"), d.invoke(\"SetParamByName\", \"GBSESEALINFO\", h), d.invoke(\"SetParamByName\", \"GBSIGNSN\", g.signsn)), \"GM\" == g.sealtag && d.invoke(\"SetParamByName\", \"ISGM\", \"1\"));\n _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && (d.invoke(\"SetParamByName\", \"FJRSISPHONE\", _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone), d.invoke(\"SetParamByName\", \"FJRSTOKEN\", localStorage.getItem(\"fjrsToken\")));\n d.invoke(\"KGCrySignMessage\", a, e.join(\";\"), +f[0]).ret(function (a) {\n a = $$$module$webapp$kinggrid$signature_all.extend({}, a);\n a.result && (a.certinfo.notAfter = b.parseDate(a.certinfo.notAfter), a.certinfo.notBefore = b.parseDate(a.certinfo.notBefore));\n c.call(b, a);\n });\n g && g.sealtag && \"GB\" == g.sealtag && (d.invoke(\"SetParamByName\", \"CLEARGBSESEALINFO\", \"\"), d.invoke(\"SetParamByName\", \"GBSIGNSN\", \"\"));\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addProvider(\"cert\", \"client\", ClientCert$$module$webapp$kinggrid$signature_all);\n_Signature$$module$webapp$kinggrid$signature_all.addProvider(\"seal\", \"client\", ClientSeal$$module$webapp$kinggrid$signature_all);\nvar ServerSeal$$module$webapp$kinggrid$signature_all = function ServerSeal$$module$webapp$kinggrid$signature_all(a, b) {\n var c = this;\n c.sData = b;\n $$$module$webapp$kinggrid$signature_all.each(a, function (a, b) {\n if (\"function\" === typeof c[a]) c[a](b);else c[a] = b;\n });\n};\nUtils$$module$webapp$kinggrid$signature_all.inherit(ServerSeal$$module$webapp$kinggrid$signature_all, _Signature$$module$webapp$kinggrid$signature_all.SealService);\nvar ServerCert$$module$webapp$kinggrid$signature_all = function ServerCert$$module$webapp$kinggrid$signature_all(a, b) {\n var c = this;\n c.sData = b;\n $$$module$webapp$kinggrid$signature_all.each(a, function (a, b) {\n if (\"function\" === typeof c[a]) c[a](b);else c[a] = b;\n });\n};\nUtils$$module$webapp$kinggrid$signature_all.inherit(ServerCert$$module$webapp$kinggrid$signature_all, _Signature$$module$webapp$kinggrid$signature_all.CertService);\n$$$module$webapp$kinggrid$signature_all.extend(ServerSeal$$module$webapp$kinggrid$signature_all.prototype, {\n getSealsUrl: \"_key_load\",\n verifyPwdUrl: \"_key_verify\",\n saveLogUrl: \"_signature_saveLog\",\n saveLog: function saveLog(a) {\n a = stringify$$module$webapp$kinggrid$signature_all(a);\n kinggrid.surry(this.serverUrl).request(this.saveLogUrl, {\n loginfo: a\n }).ret(function (a) {\n a.result || _Signature$$module$webapp$kinggrid$signature_all.prototype.error.call(null, a);\n });\n },\n getPwdSaveTime: function getPwdSaveTime(a, b) {\n kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.serverUrl).request(\"_signature_getPwdSaveTime\").ret(function (c) {\n a(c.result ? c.pwdTime : b);\n });\n },\n loadSeal: function loadSeal(a) {\n var b = this,\n c = a.successCall,\n d = a.errorCall,\n e = {\n usercode: b.usercode,\n keysn: b.keysn,\n signname: b.signname,\n authcode: b.authcode,\n password: _Signature$$module$webapp$kinggrid$signature_all.options.password,\n sealTag: _Signature$$module$webapp$kinggrid$signature_all.options.sealTag,\n certContext: _Signature$$module$webapp$kinggrid$signature_all.options.cert\n };\n kinggrid.surry(b.serverUrl).request(b.getSealsUrl, e).ret(function (e) {\n if (e.result) {\n if (\"\" == e.seals) {\n if (null != a.data) e.seals = {}, e.seals[0] = {\n signname: \"\",\n width: \"\",\n signsn: null,\n height: \"\",\n imgdata: \"\",\n imgext: \".png\"\n };else {\n d.call(b, {\n result: !1,\n errcode: \"11101\"\n });\n return;\n }\n } else if (void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && null !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.imgtag) {\n var f = [],\n h;\n for (h in e.seals) {\n var k = e.seals[h];\n void 0 !== k && parseInt(k.imgtag) == _Signature$$module$webapp$kinggrid$signature_all.options.imgtag && (f[f.length] = e.seals[h]);\n }\n e.seals = f;\n }\n c.call(b, e);\n } else d.call(b, e);\n });\n },\n verifyPwd: function verifyPwd(a) {\n var b = this,\n c = a.successCall;\n a = {\n usercode: void 0 == b.sData ? a.usercode : b.sData.usercode,\n keysn: void 0 == b.sData ? a.keysn : b.sData.keysn,\n password: a.pwd\n };\n kinggrid.surry(b.serverUrl).request(b.verifyPwdUrl, a).ret(function (a) {\n c.call(b, a);\n });\n }\n});\n$$$module$webapp$kinggrid$signature_all.extend(ServerCert$$module$webapp$kinggrid$signature_all.prototype, {\n signUrl: \"_sign\",\n verifySignUrl: \"_sign_verify\",\n verifySign: function verifySign(a) {\n var b = this,\n c = b.sData,\n d = a.successCall;\n kinggrid.surry(b.serverUrl).request(b.verifySignUrl, {\n certType: c.certType,\n isUTF8: c.isUTF8,\n signsn: c.seal.signsn,\n html2sign: c.signMeta.html2sign,\n keysn: c.keysn,\n signdata: a.signdata,\n signeddata: c.signMeta.signeddata,\n crtdata: c.signMeta.certinfo.crtdata,\n sealTag: c.seal.sealTag\n }).ret(function (a) {\n d.call(b, a);\n });\n },\n sign: function sign(a) {\n for (var b = this, c = a.signMeta, d = a.successCall, e = [], f = 0; f < c.length; f++) {\n var g = c[f];\n \"GM\" == b.sealTag && (g.hashAlg = \"SM3\", g.encryptAlg = \"SM2\");\n e.push(\"$\" + (g.hashAlg || b.hashAlg) + \"|\" + (g.encryptAlg || b.encryptAlg) + \"$\" + g.signdata);\n }\n a = {\n keysn: a.keysn,\n password: a.password,\n signdata: e.join(\";\"),\n signsn: a.signsn,\n sealTag: b.sealTag\n };\n kinggrid.surry(b.serverUrl).request(b.signUrl, a).ret(function (a) {\n a.result && (a.certinfo.algName = a.certinfo.algName.replace(\"with\", \"\"));\n d.call(b, a);\n });\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addProvider(\"cert\", \"server\", ServerCert$$module$webapp$kinggrid$signature_all);\n_Signature$$module$webapp$kinggrid$signature_all.addProvider(\"seal\", \"server\", ServerSeal$$module$webapp$kinggrid$signature_all);\n_Signature$$module$webapp$kinggrid$signature_all.alert = plus$$module$webapp$kinggrid$signature_all.alert;\nvar version$$module$webapp$kinggrid$signature_all = _Signature$$module$webapp$kinggrid$signature_all.version = {\n name: \"1.0.20\",\n code: 100\n};\nroot$$module$webapp$kinggrid$signature_all.Signature = _Signature$$module$webapp$kinggrid$signature_all;\n\"use strict\";\nisIE8$$module$webapp$kinggrid$signature_all = !1;\nroot$$module$webapp$kinggrid$signature_all.JSON && (isIE8$$module$webapp$kinggrid$signature_all = \"{\\\"x\\\":\\\"\\u4E2D\\\"}\" !== root$$module$webapp$kinggrid$signature_all.JSON.stringify({\n x: \"\\u4E2D\"\n}));\nUtils$$module$webapp$kinggrid$signature_all = kinggrid.Utils;\nvar options$$module$webapp$kinggrid$signature_all = _Signature$$module$webapp$kinggrid$signature_all.options;\nUtils$$module$webapp$kinggrid$signature_all.extend(_Signature$$module$webapp$kinggrid$signature_all.options.template, {\n signInfoBtl: \"
<%var modified = this.signModified;%><%var timeVerify = this.timeVerify;%>
\\\">\\u68C0\\u6D4B\\u7ED3\\u679C\\uFF1A\\u7B7E\\u540D\\u6570\\u636E\\u9A8C\\u8BC1\\u6B63\\u5E38\\uFF01<%if(timeVerify!=null){%>\\\"><%timeVerify==true?\\\"(\\u65F6\\u95F4\\u6233\\u53EF\\u4FE1\\u4EFB)\\\":\\\"(\\u65F6\\u95F4\\u6233\\u4E0D\\u53EF\\u4FE1\\u4EFB)\\\"%><%}%>
\\\">\\u68C0\\u6D4B\\u7ED3\\u679C\\uFF1A\\u7B7E\\u540D\\u6570\\u636E\\u88AB\\u7BE1\\u6539\\uFF01<%if(timeVerify!=null){%>\\\"><%timeVerify==true?\\\"(\\u65F6\\u95F4\\u6233\\u53EF\\u4FE1\\u4EFB)\\\":\\\"(\\u65F6\\u95F4\\u6233\\u4E0D\\u53EF\\u4FE1\\u4EFB)\\\"%><%}%>
<%var certinfo = this.signatureData.signMeta.certinfo; %>
V<%certinfo.version%>
<%certinfo.serialNumber%>
<%certinfo.algName%>
<%certinfo.issuerDN%>
<%certinfo.subjectDN%>
<%kinggrid.Utils.formatDate(new Date(certinfo.notBefore) , \\\"yyyy-MM-dd hh:mm:ss\\\")%>
<%kinggrid.Utils.formatDate(new Date(certinfo.notAfter) , \\\"yyyy-MM-dd hh:mm:ss\\\")%>
\",\n signatureInfoBtl: \"
<%var modified = this.modified;%><%var timeVerify = this.timeVerify;%><%var sealType = Signature.options.sealType;%>
\\\">\\u68C0\\u6D4B\\u7ED3\\u679C\\uFF1A\\u4FDD\\u62A4\\u6570\\u636E\\u6B63\\u5E38\\uFF01<%if(timeVerify!=null){%>\\\"><%timeVerify==true?\\\"(\\u65F6\\u95F4\\u6233\\u53EF\\u4FE1\\u4EFB)\\\":\\\"(\\u65F6\\u95F4\\u6233\\u4E0D\\u53EF\\u4FE1\\u4EFB)\\\"%><%}%>
\\\">\\u68C0\\u6D4B\\u7ED3\\u679C\\uFF1A\\u4FDD\\u62A4\\u6570\\u636E\\u88AB\\u7BE1\\u6539\\uFF01<%if(timeVerify!=null){%>\\\"><%timeVerify==true?\\\"(\\u65F6\\u95F4\\u6233\\u53EF\\u4FE1\\u4EFB)\\\":\\\"(\\u65F6\\u95F4\\u6233\\u4E0D\\u53EF\\u4FE1\\u4EFB)\\\"%><%}%>
signatureinfo\\\"><% var SDATA = this.signatureData; %><% var modifiedItems = this.modifiedItems; %>
<%timeVerify%><%SDATA.appname%>
<%SDATA.orgname%>
<%SDATA.username%>
<%SDATA.keysn%>
<%SDATA.seal.signname%>
<%SDATA.seal.signsn%>
<%SDATA.timestamp.signtime%>
<%if(sealType == \\\"client\\\" && SDATA.seal.headinfoex){%>
<%SDATA.seal.headinfoex.sealProducer%>
<%SDATA.seal.headinfoex.sealMakingTime%>
<%}%>
<%if(modified){%><%var modifiedItems = this.modifiedItems;%><% for(var i=0;i<% var item = modifiedItems[i]; %>
\\\">
<%this[\\\"_renderValue\\\"](this[\\\"html2Escape\\\"](item.orivalue)) %>
<%this[\\\"_renderValue\\\"](this[\\\"html2Escape\\\"](item.newvalue))%>
<%}%><%}%>
\",\n handwritedlg: \"
px;\\\" id=\\\"kg-handwrite\\\" unselectable=\\\"on\\\" onselectstart=\\\"return false;\\\" style=\\\"-moz-user-select:none;\\\">\\u540D\\u79F0:   \\u989C\\u8272:   \\u7B14\\u5BBD: height=<% this.canvasHeight%>>
            
\",\n barcodedlg: \"


\",\n scanBCdlg: '

'\n});\nplus$$module$webapp$kinggrid$signature_all = kingPlus$$module$webapp$kinggrid$signature_all();\nvar _borken$$module$webapp$kinggrid$signature_all, _borkenReq$$module$webapp$kinggrid$signature_all;\n_Signature$$module$webapp$kinggrid$signature_all.addLiseter(\"init\", function () {\n aisleKing$$module$webapp$kinggrid$signature_all = _Signature$$module$webapp$kinggrid$signature_all.aisleKing;\n for (var a = _Signature$$module$webapp$kinggrid$signature_all.options.icons, b = 0; b < a.length; ++b) {\n var c = a[b];\n switch (c.iconClass) {\n case \"kg-icon-move-\":\n null != _Signature$$module$webapp$kinggrid$signature_all.options.icon_move_donot && 0 == _Signature$$module$webapp$kinggrid$signature_all.options.icon_move_donot && (c.enable = !1);\n break;\n case \"kg-icon-move\":\n null != _Signature$$module$webapp$kinggrid$signature_all.options.icon_move && 0 == _Signature$$module$webapp$kinggrid$signature_all.options.icon_move && (c.enable = !1);\n break;\n case \"kg-icon-remove\":\n null != _Signature$$module$webapp$kinggrid$signature_all.options.icon_remove && 0 == _Signature$$module$webapp$kinggrid$signature_all.options.icon_remove && (c.enable = !1);\n break;\n case \"kg-icon-sign\":\n null != _Signature$$module$webapp$kinggrid$signature_all.options.icon_sign && 0 == _Signature$$module$webapp$kinggrid$signature_all.options.icon_sign && (c.enable = !1);\n break;\n case \"kg-icon-signverify\":\n null != _Signature$$module$webapp$kinggrid$signature_all.options.icon_signverify && 0 == _Signature$$module$webapp$kinggrid$signature_all.options.icon_signverify && (c.enable = !1);\n break;\n case \"kg-icon-sealinfo\":\n null != _Signature$$module$webapp$kinggrid$signature_all.options.icon_sealinfo && 0 == _Signature$$module$webapp$kinggrid$signature_all.options.icon_sealinfo && (c.enable = !1);\n }\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addLiseter(\"beforeVerify\", function () {\n _borken$$module$webapp$kinggrid$signature_all = [];\n _borkenReq$$module$webapp$kinggrid$signature_all = {\n signsn: [],\n sealImg: []\n };\n});\n_Signature$$module$webapp$kinggrid$signature_all.addLiseter(\"eachVerify\", function (a) {\n a.broken && (_borken$$module$webapp$kinggrid$signature_all.push(a), _borkenReq$$module$webapp$kinggrid$signature_all.signsn.push(a.signatureData.seal.signsn), _borkenReq$$module$webapp$kinggrid$signature_all.sealImg.push(a.signatureData.seal.imgdata));\n});\n_Signature$$module$webapp$kinggrid$signature_all.addLiseter(\"startMove\", function (a, b, c) {\n \"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType && _Signature$$module$webapp$kinggrid$signature_all.options.moveable_self && (b = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode), _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone && (b.invoke(\"SetParamByName\", \"FJRSISPHONE\", _Signature$$module$webapp$kinggrid$signature_all.options.fjrsIsphone), b.invoke(\"SetParamByName\", \"FJRSTOKEN\", localStorage.getItem(\"fjrsToken\"))), b.invoke(\"KGGetKeyOtherInfo\", \"0\").ret(function (b) {\n b.result ? (b = b.Res.substring(1, b.Res.length - 1), a.keysn = b, a.keysn != a.signatureData.keysn && _Signature$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(\"cannot_move\", \"KG_MSG\"))) : _Signature$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(b.errcode, \"then\"));\n }));\n});\n_Signature$$module$webapp$kinggrid$signature_all.addLiseter(\"verify\", function () {});\nvar resizeSeal$$module$webapp$kinggrid$signature_all = {},\n resizeTime$$module$webapp$kinggrid$signature_all;\n$$$module$webapp$kinggrid$signature_all(window).resize(function () {\n resizeTime$$module$webapp$kinggrid$signature_all && clearTimeout(resizeTime$$module$webapp$kinggrid$signature_all);\n resizeTime$$module$webapp$kinggrid$signature_all = setTimeout(function () {\n for (var a in resizeSeal$$module$webapp$kinggrid$signature_all) {\n var b = $$$module$webapp$kinggrid$signature_all(resizeSeal$$module$webapp$kinggrid$signature_all[a]),\n c = $$$module$webapp$kinggrid$signature_all(Utils$$module$webapp$kinggrid$signature_all.$(b.attr(\"elemid\")));\n _Signature$$module$webapp$kinggrid$signature_all.prototype.calSealPos.call(null, c, b);\n }\n }, 200);\n});\nUtils$$module$webapp$kinggrid$signature_all.extend(_Signature$$module$webapp$kinggrid$signature_all.prototype, {\n _init: function _init() {\n var a = this;\n a.on(\"showAt\", function (a) {\n Utils$$module$webapp$kinggrid$signature_all.$(a.getAttribute(\"elemid\")).getAttribute(\"display\") || (resizeSeal$$module$webapp$kinggrid$signature_all[a.id] = a);\n });\n a.on(\"removeAt\", function (a) {\n delete resizeSeal$$module$webapp$kinggrid$signature_all[a.id];\n });\n a.on(\"beforeShowAt\", function (a) {\n 3960 < this.signatureData.seal.imgdata.length && isIE8$$module$webapp$kinggrid$signature_all && (this.brokenImgDiv = a);\n });\n a.on(\"showAt\", function (b) {\n if (a.brokenImgDiv) {\n var c = a.signatureData.seal,\n d = c.signsn;\n aisleKing$$module$webapp$kinggrid$signature_all && (aisleKing$$module$webapp$kinggrid$signature_all = kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.serverUrl), aisleKing$$module$webapp$kinggrid$signature_all.request(a.imageUrl, {\n signsn: d,\n sealImg: c.imgdata,\n sid: a.signatureid\n }).ret(function (c) {\n c.result && (c = c.imageUrl || a.imageUrl + \"_\", $$$module$webapp$kinggrid$signature_all(b).find(\".kg-img\").attr({\n src: _Signature$$module$webapp$kinggrid$signature_all.options.serverUrl + c + \"&a0=0&sid=\" + a.signatureid\n }), delete a.brokenImgDiv);\n }));\n }\n });\n a.on(\"showAt\", function (b) {\n b = $$$module$webapp$kinggrid$signature_all(b);\n if (0 <= $$$module$webapp$kinggrid$signature_all().jquery.indexOf(\"1.4\")) b.live(\"click\", function () {\n var b = a._verify(null, {\n sucCall: function sucCall() {\n a.signatureInfo();\n }\n });\n void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo && _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo && _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo(a.modified, a.modifiedItems, a.signatureData) || null != b && a.signatureInfo();\n });else b.on(\"click\", function () {\n var b = a._verify(null, {\n sucCall: function sucCall() {\n a.signatureInfo();\n }\n });\n void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo && _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo && _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo(a.modified, a.modifiedItems, a.signatureData) || null != b && a.signatureInfo();\n });\n b.append('
');\n });\n a.on(\"handleImg\", function (b) {\n var c = $$$module$webapp$kinggrid$signature_all(b);\n c.find(\".kg-img-icon\").remove();\n if (options$$module$webapp$kinggrid$signature_all.icons) {\n c = c.children(\".kg-img-icons\");\n for (var d = options$$module$webapp$kinggrid$signature_all.icons.length - 1; 0 <= d; d--) {\n var e = options$$module$webapp$kinggrid$signature_all.icons[d];\n if (Utils$$module$webapp$kinggrid$signature_all.val(e.enable, a, b)) {\n \"doornotmove\" == e.id && (a.signatureData.moveable ? (e.iconClass = e.iconClass.substring(0, 13) + \"not\", e.title = kinggrid.msg(\"SignatureMoveNot\", \"KG_TITLE\"), e.value = \"0\") : (e.iconClass = e.iconClass.substring(0, 13) + \"do\", e.title = kinggrid.msg(\"SignatureMoveDo\", \"KG_TITLE\"), e.value = \"1\"));\n if (\"moveSignature\" == e.id && !a.signatureData.moveable) break;\n var f = $$$module$webapp$kinggrid$signature_all('');\n e.value && (f = $$$module$webapp$kinggrid$signature_all(''));\n c.append(f);\n e.exec && e.exec.call(a, b);\n (function (b, c, d) {\n f.click(function (c) {\n c.imgDiv = b;\n d.call(a, c, b);\n });\n })(b, f, e.click || function (a) {\n a.preventDefault();\n a.stopPropagation();\n });\n }\n }\n }\n });\n },\n signatureInfo: function signatureInfo() {\n this.html2Escape = Utils$$module$webapp$kinggrid$signature_all.html2Escape;\n return this.showDialog(\"signatureInfoBtl\", {\n target: this,\n onCancel: !1,\n onShow: function onShow() {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall.call();\n var a = this.find(\".kg-tab\");\n this.tab = Utils$$module$webapp$kinggrid$signature_all.tab(a);\n }\n });\n },\n signInfo: function signInfo() {\n var a = {\n title: kinggrid.msg(\"SignVerify\", \"KG_TITLE\"),\n target: this,\n onCancel: !1,\n onShow: function onShow() {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall.call();\n }\n };\n return this.showDialog(\"signInfoBtl\", a);\n },\n handWriteDlg: function handWriteDlg(a, b) {\n this.canvasHeight = a.canvas_height || 500;\n this.canvasWidth = a.canvas_width || 670;\n var c = {\n title: kinggrid.msg(\"HWSignature\", \"KG_TITLE\"),\n target: this,\n onCancel: !1\n },\n d = this.showDialog(\"handwritedlg\", c),\n e = d.find(\"#canvasId\")[0];\n a.penColor = d.find(\"#hw_color\").val();\n a.minWidth = .5;\n a.maxWidth = 4.5;\n if (e.getContext) {\n var f = new SignaturePad$$module$webapp$kinggrid$signature_all(e, a);\n e.onmouseleave = function (a) {\n f.simulate_mouseevent(e, \"mouseup\");\n f.simulate_mouseevent(d.find(\"#kg-handwrite\")[0], \"mouseup\");\n };\n d.find(\"#hw_color\").click(function () {\n var a = d.find(\"#hw_color\").val();\n f.penColor = a;\n });\n d.find(\"#hw_width\").click(function () {\n switch (d.find(\"#hw_width\").val()) {\n case \"1\":\n f.minWidth = .5;\n f.maxWidth = 2.5;\n break;\n case \"2\":\n f.minWidth = .5;\n f.maxWidth = 4.5;\n break;\n case \"3\":\n f.minWidth = 1;\n f.maxWidth = 6;\n break;\n case \"4\":\n f.minWidth = 1;\n f.maxWidth = 8;\n break;\n case \"5\":\n f.minWidth = 2.5;\n f.maxWidth = 10;\n break;\n case \"6\":\n f.minWidth = 3;\n f.maxWidth = 12;\n break;\n default:\n f.minWidth = .5, f.maxWidth = 2.5;\n }\n });\n c = d.find(\"#clearid\");\n var g = d.find(\"#okid\");\n c.click(function () {\n f.clear();\n });\n g.click(function () {\n d.close();\n var c = f.toDataURL().replace(/^data:image\\/\\w+;base64,/, \"\");\n c && (c = {\n height: a.image_height || \"5.00\",\n width: a.image_width || \"6.70\",\n imageData: c,\n name: d.find(\"#nameid\").val()\n }, b(c), d.remove());\n });\n d.find(\".ui-dialog-close\").click(function () {\n d.close();\n a.onCancel && a.onCancel.call();\n });\n } else d.close(), a.onError ? a.onError.call() : this.error({\n errcode: \"11113\"\n }, \"then\");\n },\n fingerPrintsDevice: function fingerPrintsDevice(a, b) {\n var c = this;\n kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode).invoke(\"KGRunFingerPrints\", a.device_type || \"0\", a.image_type || \"gif\", \"JSComServer\", \"\", \"\").ret(function (d) {\n if (d.result) {\n var e = d.FingerPrintsMap,\n f = parseFloat(254 * d.ImageWidth / 9600).toFixed(2);\n d = parseFloat(254 * d.ImageHeight / 9600).toFixed(2);\n b({\n width: a.image_height || f,\n height: a.image_width || d,\n imageData: e,\n name: \"\\u6307\\u7EB9\\u7B7E\\u540D\"\n });\n } else c.errorCallback(d, a.errorCall, \"KGRunFingerPrints\");\n });\n },\n handWriteDevice: function handWriteDevice(a, b) {\n var c = this;\n void 0 != a.copy_right && null != a.copy_right && kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode).invoke(\"KGRunHandWritten\", a.device_type || \"0\", a.copy_right, \"JSComServer\", \"\", \"\").ret(function (d) {\n if (d.result) {\n var e = d.HandWrittenValue,\n f = parseFloat(254 * d.ImageWidth / 9600).toFixed(2);\n d = parseFloat(254 * d.ImageHeight / 9600).toFixed(2);\n b({\n width: a.image_height || f,\n height: a.image_width || d,\n imageData: e,\n name: \"\\u624B\\u5199\\u7B7E\\u540D\"\n });\n } else c.errorCallback(d, a.errorCall, \"KGRunHandWritten\");\n });\n },\n eqpHandWriter: function eqpHandWriter(a, b) {\n var c = this;\n void 0 != a.Value && null != a.Value && kinggrid.surry(_Signature$$module$webapp$kinggrid$signature_all.options.clientUrl, \"IWEBASSIST.iWebAssistCtrl.1\", \"4240FB41-A213-42B6-8CB5E6705C99B319\", _Signature$$module$webapp$kinggrid$signature_all.options.clientCode).invoke(\"KGEQPHandWriter\", a.Value, a.DllName, \"JSComServer\").ret(function (d) {\n if (d.result) {\n var e = d.imagedata,\n f = parseFloat(254 * d.imagewidth / 9600).toFixed(2);\n d = parseFloat(254 * d.imageheight / 9600).toFixed(2);\n b({\n width: a.image_height || f,\n height: a.image_width || d,\n imageData: e,\n name: \"\\u624B\\u5199\\u5C4F\\u7B7E\\u540D\"\n });\n } else c.errorCallback(d, a.errorCall, \"KGEQPHandWriter\");\n });\n },\n barCodeDlg: function barCodeDlg(a, b) {\n if (void 0 != a.content && null != a.content) {\n var c = $$$module$webapp$kinggrid$signature_all(\"#output\").qrcode(a.content);\n b({\n height: a.image_height || \"5\",\n width: a.image_width || \"5\",\n imageData: c,\n name: \"\\u4E8C\\u7EF4\\u7801\"\n });\n }\n },\n scanBCDlg: function scanBCDlg(a, b) {\n var c = {\n title: kinggrid.msg(\"scanBCSignature\", \"KG_TITLE\"),\n target: this,\n onCancel: !1\n },\n d = this.showDialog(\"scanBCdlg\", c);\n try {\n var e = document.getElementById(\"canvas_scanBC\").getContext(\"2d\"),\n f = document.getElementById(\"video\");\n c = {\n video: !0,\n audio: !1\n };\n var g = !0,\n h = function h(a) {\n g = !1;\n a.PERMISSION_DENIED ? alert(\"\\u7528\\u6237\\u62D2\\u7EDD\\u4E86\\u6D4F\\u89C8\\u5668\\u8BF7\\u6C42\\u5A92\\u4F53\\u7684\\u6743\\u9650\", \"\\u63D0\\u793A\") : a.NOT_SUPPORTED_ERROR ? alert(\"\\u5BF9\\u4E0D\\u8D77\\uFF0C\\u60A8\\u7684\\u6D4F\\u89C8\\u5668\\u4E0D\\u652F\\u6301\\u62CD\\u7167\\u529F\\u80FD\\uFF0C\\u8BF7\\u4F7F\\u7528\\u5176\\u4ED6\\u6D4F\\u89C8\\u5668\", \"\\u63D0\\u793A\") : a.MANDATORY_UNSATISFIED_ERROR ? alert(\"\\u6307\\u5B9A\\u7684\\u5A92\\u4F53\\u7C7B\\u578B\\u672A\\u63A5\\u6536\\u5230\\u5A92\\u4F53\\u6D41\", \"\\u63D0\\u793A\") : alert(\"\\u7CFB\\u7EDF\\u672A\\u80FD\\u83B7\\u53D6\\u5230\\u6444\\u50CF\\u5934\\uFF0C\\u8BF7\\u786E\\u4FDD\\u6444\\u50CF\\u5934\\u5DF2\\u6B63\\u786E\\u5B89\\u88C5\\u3002\\u6216\\u5C1D\\u8BD5\\u5237\\u65B0\\u9875\\u9762\\uFF0C\\u91CD\\u8BD5\", \"\\u63D0\\u793A\");\n };\n if (navigator.getUserMedia) {\n if (-1 < navigator.userAgent.indexOf(\"MQQBrowser\")) return alert(\"\\u5BF9\\u4E0D\\u8D77\\uFF0C\\u60A8\\u7684\\u6D4F\\u89C8\\u5668\\u4E0D\\u652F\\u6301\\u62CD\\u7167\\u529F\\u80FD\\uFF0C\\u8BF7\\u4F7F\\u7528\\u5176\\u4ED6\\u6D4F\\u89C8\\u5668\", \"\\u63D0\\u793A\"), !1;\n navigator.getUserMedia(c, function (a) {\n f.src = a;\n f.play();\n }, h);\n } else if (navigator.webkitGetUserMedia) navigator.webkitGetUserMedia(c, function (a) {\n f.src = window.webkitURL.createObjectURL(a);\n f.play();\n }, h);else if (navigator.mozGetUserMedia) navigator.mozGetUserMedia(c, function (a) {\n f.src = window.URL.createObjectURL(a);\n f.play();\n }, h);else if (navigator.msGetUserMedia) navigator.msGetUserMedia(c, function (a) {\n $$$module$webapp$kinggrid$signature_all(document).scrollTop($$$module$webapp$kinggrid$signature_all(window).height());\n f.src = window.URL.createObjectURL(a);\n f.play();\n }, h);else return alert(\"\\u5BF9\\u4E0D\\u8D77\\uFF0C\\u60A8\\u7684\\u6D4F\\u89C8\\u5668\\u4E0D\\u652F\\u6301\\u62CD\\u7167\\u529F\\u80FD\\uFF0C\\u8BF7\\u4F7F\\u7528\\u5176\\u4ED6\\u6D4F\\u89C8\\u5668\"), !1;\n g && alert(\"\\u4E3A\\u4E86\\u83B7\\u5F97\\u66F4\\u51C6\\u786E\\u7684\\u6D4B\\u8BD5\\u7ED3\\u679C\\uFF0C\\u8BF7\\u5C3D\\u91CF\\u5C06\\u4E8C\\u7EF4\\u7801\\u7F6E\\u4E8E\\u6846\\u4E2D\\uFF0C\\u7136\\u540E\\u8FDB\\u884C\\u62CD\\u6444\\u3001\\u626B\\u63CF\\u3002 \\u8BF7\\u786E\\u4FDD\\u6D4F\\u89C8\\u5668\\u6709\\u6743\\u9650\\u4F7F\\u7528\\u6444\\u50CF\\u529F\\u80FD\");\n var k = setTimeout(function () {\n e && (e.drawImage(f, 0, 0, 320, 320), $$$module$webapp$kinggrid$signature_all(\"#contentHolder\").html5_qrcode(function (c) {\n $$$module$webapp$kinggrid$signature_all(\"#read\").html(c);\n d.close();\n alert(c);\n a.content = c;\n barCodeDlg(a, b);\n window.clearInterval(k);\n }, function (a) {\n $$$module$webapp$kinggrid$signature_all(\"#read_error\").html(a);\n d.close();\n window.clearInterval(k);\n }, function (a) {\n $$$module$webapp$kinggrid$signature_all(\"#vid_error\").html(a);\n d.close();\n window.clearInterval(k);\n }));\n }, 200);\n } catch (l) {\n printHtml(\"\\u6D4F\\u89C8\\u5668\\u4E0D\\u652F\\u6301HTML5 CANVAS\");\n }\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addIcon({\n iconClass: \"kg-icon-move\",\n title: kinggrid.msg(\"moveSignature\", \"KG_TITLE\"),\n id: \"moveSignature\",\n enable: function enable(a) {\n return this.canMove(a);\n },\n exec: function exec(a) {\n var b = this;\n (function (a, d) {\n 0 <= $$$module$webapp$kinggrid$signature_all().jquery.indexOf(\"1.4\") ? ($$$module$webapp$kinggrid$signature_all(d).live(\"touchstart mousedown\", \".kg-icon-move\", function (c) {\n a && b.runMove(c, d);\n }), $$$module$webapp$kinggrid$signature_all(d).live(\"touchstart mouseover\", \".kg-icon-move\", function (b) {\n void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.extra && (b = d.attributes.signatureid.nodeValue) && void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.extra[b] && _Signature$$module$webapp$kinggrid$signature_all.options.extra[b].icon_move && (a = _Signature$$module$webapp$kinggrid$signature_all.options.extra[b].icon_move());\n })) : ($$$module$webapp$kinggrid$signature_all(d).on(\"touchstart mousedown\", \".kg-icon-move\", function (c) {\n a && b.runMove(c, d);\n }), $$$module$webapp$kinggrid$signature_all(d).on(\"touchstart mouseover\", \".kg-icon-move\", function (b) {\n void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.extra && (b = d.attributes.signatureid.nodeValue) && void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.extra[b] && _Signature$$module$webapp$kinggrid$signature_all.options.extra[b].icon_move && (a = _Signature$$module$webapp$kinggrid$signature_all.options.extra[b].icon_move());\n }));\n })(!0, a);\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addIcon({\n iconClass: \"kg-icon-move-\",\n title: kinggrid.msg(\"SignatureMoveNot\", \"KG_TITLE\"),\n id: \"doornotmove\",\n enable: !0,\n click: function click(a) {\n var b = this;\n a.preventDefault();\n a.stopPropagation();\n var c = a.target.parentElement,\n d = function d(a) {\n $$$module$webapp$kinggrid$signature_all(a).attr(\"extval\") && \"0\" == $$$module$webapp$kinggrid$signature_all(a).attr(\"extval\") ? b.changeMoveAble(!1) : b.changeMoveAble(!0);\n };\n b.signatureData.html2 ? b.error({\n errcode: \"11112\"\n }, \"then\") : \"server\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType ? _Signature$$module$webapp$kinggrid$signature_all.options.keysn == b.signatureData.keysn ? d(c) : b.error({\n errcode: \"11111\"\n }, \"then\") : \"client\" == _Signature$$module$webapp$kinggrid$signature_all.options.sealType && b.sealService.getKeysn({}, function (a) {\n a == b.signatureData.keysn ? d(c) : b.error({\n errcode: \"11111\"\n }, \"then\");\n });\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addIcon({\n iconClass: \"kg-icon-remove\",\n title: kinggrid.msg(\"RevokeSignature\", \"KG_TITLE\"),\n id: \"revokeSignature\",\n enable: function enable() {\n return this.canDelete();\n },\n click: function click(a) {\n a.preventDefault();\n a.stopPropagation();\n this.revokeSignature();\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addIcon({\n iconClass: \"kg-icon-sign\",\n title: kinggrid.msg(\"SignSignature\", \"KG_TITLE\"),\n id: \"sign\",\n enable: function enable() {\n return this.canSign();\n },\n click: function click(a) {\n a.preventDefault();\n a.stopPropagation();\n a = this._verify(null, {\n sucCall: function sucCall() {\n this.signSignature();\n }\n });\n null != a && (a ? this.signSignature() : _Signature$$module$webapp$kinggrid$signature_all.alert(kinggrid.msg(\"invalid_signdata\", \"KG_MSG\"), function () {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgOkCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgOkCall.call();\n }, function () {\n _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall && _Signature$$module$webapp$kinggrid$signature_all.options.beginDlgShowCall.call();\n }));\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addIcon({\n iconClass: \"kg-icon-signverify\",\n title: kinggrid.msg(\"SignVerify\", \"KG_TITLE\"),\n id: \"verifysign\",\n enable: function enable() {\n return this.signatureData.signMeta;\n },\n click: function click(a) {\n a.preventDefault();\n a.stopPropagation();\n var b = this;\n b.verifySignData(function (a) {\n a.errcode ? b.error(a) : b.signInfo();\n });\n }\n});\n_Signature$$module$webapp$kinggrid$signature_all.addIcon({\n iconClass: \"kg-icon-sealinfo\",\n title: kinggrid.msg(\"SignatureVerify\", \"KG_TITLE\"),\n id: \"signatureInfo\",\n enable: !0,\n click: function click(a) {\n a.preventDefault();\n a.stopPropagation();\n a = this._verify(null, {\n sucCall: function sucCall() {\n this.signatureInfo();\n }\n });\n void 0 !== _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo && _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo && _Signature$$module$webapp$kinggrid$signature_all.options.verifySignatureInfo(this.modified, this.modifiedItems, this.signatureData) || null != a && this.signatureInfo();\n }\n});\nvar getsec$$module$webapp$kinggrid$signature_all = function getsec$$module$webapp$kinggrid$signature_all(a) {\n var b = 1 * a.substring(1, a.length);\n a = a.substring(0, 1);\n if (\"s\" == a) return 1E3 * b;\n if (\"h\" == a) return 36E5 * b;\n if (\"d\" == a) return 864E5 * b;\n },\n setCookie$$module$webapp$kinggrid$signature_all = function setCookie$$module$webapp$kinggrid$signature_all(a, b, c) {\n c = getsec$$module$webapp$kinggrid$signature_all(c);\n var d = new Date();\n d.setTime(d.getTime() + 1 * c);\n document.cookie = a + \"=\" + escape(b) + \";expires=\" + d.toGMTString();\n },\n getCookie$$module$webapp$kinggrid$signature_all = function getCookie$$module$webapp$kinggrid$signature_all(a) {\n var b;\n return (b = document.cookie.match(new RegExp(\"(^| )\" + a + \"=([^;]*)(;|$)\"))) ? unescape(b[2]) : null;\n },\n delCookie$$module$webapp$kinggrid$signature_all = function delCookie$$module$webapp$kinggrid$signature_all(a) {\n var b = new Date();\n b.setTime(b.getTime() - 1);\n var c = getCookie$$module$webapp$kinggrid$signature_all(a);\n null != c && (document.cookie = a + \"=\" + c + \";expires=\" + b.toGMTString());\n };\n_Signature$$module$webapp$kinggrid$signature_all.prototype.onshowSealsDialog_PW = function (a) {\n var b = this.keysn || this.keyData.keysn;\n \"true\" == getCookie$$module$webapp$kinggrid$signature_all(\"ck\") && a.find(\"#kg-remenberPwd\").attr(\"checked\", \"checked\");\n if (a.find(\"#kg-remenberPwd\").is(\":checked\")) {\n var c = getCookie$$module$webapp$kinggrid$signature_all(\"ksn\");\n b == c && (a = a.find(\"#kg-password\"), b = getCookie$$module$webapp$kinggrid$signature_all(\"pwd\"), _Signature$$module$webapp$kinggrid$signature_all.options.pw_enc_save && (b = Utils$$module$webapp$kinggrid$signature_all.Base64.of().decode(b)), null != b ? a.val(b) : a.val(\"123\"));\n }\n};\n_Signature$$module$webapp$kinggrid$signature_all.prototype.onexecSuccess = function (a, b, c) {\n var d = this.keysn || this.keyData.keysn;\n if (c) {\n var e = getCookie$$module$webapp$kinggrid$signature_all(\"ksn\");\n a = _Signature$$module$webapp$kinggrid$signature_all.options.pw_timeout;\n c = function c(a) {\n if (d != e) {\n if (\"undefined\" == typeof a || 0 > a.indexOf(\"s\") && 0 > a.indexOf(\"h\") && 0 > a.indexOf(\"d\")) a = \"s1800\";\n _Signature$$module$webapp$kinggrid$signature_all.options.pw_enc_save && (b = Utils$$module$webapp$kinggrid$signature_all.Base64.of().encode(b));\n setCookie$$module$webapp$kinggrid$signature_all(\"ksn\", d, a);\n setCookie$$module$webapp$kinggrid$signature_all(\"pwd\", b, a);\n setCookie$$module$webapp$kinggrid$signature_all(\"ck\", \"true\", a);\n }\n };\n _Signature$$module$webapp$kinggrid$signature_all.options.pw_server_timeout ? this.sealService.getPwdSaveTime(c, a) : c(a);\n } else delCookie$$module$webapp$kinggrid$signature_all(\"ksn\"), delCookie$$module$webapp$kinggrid$signature_all(\"pwd\"), delCookie$$module$webapp$kinggrid$signature_all(\"ck\");\n};\nfunction Queue$$module$webapp$kinggrid$signature_all(a) {\n var b = [];\n this.push = function (c) {\n if (null == c) return !1;\n null == a || isNaN(a) || b.length == a && this.pop();\n b.unshift(c);\n return !0;\n };\n this.pop = function () {\n return b.pop();\n };\n this.size = function () {\n return b.length;\n };\n this.quere = function () {\n return b;\n };\n}\nvar SignaturePad$$module$webapp$kinggrid$signature_all = function (a) {\n var b = function b(a, _b) {\n var c = this;\n _b = _b || {};\n this.velocityFilterWeight = _b.velocityFilterWeight || .7;\n this.minWidth = _b.minWidth || .5;\n this.maxWidth = _b.maxWidth || 2.5;\n this.dotSize = _b.dotSize || function () {\n return (this.minWidth + this.maxWidth) / 2;\n };\n this.penColor = _b.penColor || \"black\";\n this.backgroundColor = _b.backgroundColor || \"rgba(0,0,0,0)\";\n this.onEnd = _b.onEnd;\n this.onBegin = _b.onBegin;\n this._canvas = a;\n this._ctx = a.getContext(\"2d\");\n this._ctx.lineJoin = \"round\";\n this._ctx.lineCap = \"round\";\n this.count = 0;\n this.clear();\n this.ptQueue = new Queue$$module$webapp$kinggrid$signature_all(6);\n this.testTimer = function () {};\n this.funcCompleteListener = function () {\n for (var a = c.maxWidth; 0 < c.ptQueue.size();) {\n var b = c.ptQueue.pop();\n this.curPos = b;\n c._drawLine(a);\n this.oldPos = b;\n a -= a / 10;\n }\n };\n this._handleMouseDown = function (a) {\n 1 === a.which && (c._mouseButtonDown = !0, c._strokeBegin(a));\n };\n this._handleMouseMove = function (a) {\n c._mouseButtonDown && c._strokeUpdate(a);\n };\n this._handleMouseUp = function (a) {\n 1 === a.which && c._mouseButtonDown && (c._mouseButtonDown = !1, c._strokeEnd(a));\n };\n this._handleTouchStart = function (a) {\n 1 == a.targetTouches.length && c._strokeBegin(a.changedTouches[0]);\n };\n this._handleTouchMove = function (a) {\n a.preventDefault();\n c._strokeUpdate(a.targetTouches[0]);\n };\n this._handleTouchEnd = function (a) {\n a.target === c._canvas && (a.preventDefault(), c._strokeEnd(a));\n };\n this._handleTouchCancel = function (a) {\n a.target === c._canvas && (a.preventDefault(), c._strokeEnd(a));\n };\n this._handleMouseEvents();\n this._handleTouchEvents();\n };\n b.prototype.simulate_mouseevent = function (b, c) {\n if (void 0 !== b && null !== b) if (a.all) b.fireEvent(\"on\" + c);else {\n var d = a.createEvent(\"MouseEvents\");\n d.initEvent(c, !0, !0);\n b.dispatchEvent(d);\n }\n };\n b.prototype.clear = function () {\n var a = this._ctx,\n b = this._canvas;\n a.fillStyle = this.backgroundColor;\n a.clearRect(0, 0, b.width, b.height);\n a.fillRect(0, 0, b.width, b.height);\n this._reset();\n };\n b.prototype.toDataURL = function (a, b) {\n var c = this._canvas;\n return c.toDataURL.apply(c, arguments);\n };\n b.prototype.fromDataURL = function (a) {\n var b = this,\n c = new Image(),\n d = window.devicePixelRatio || 1,\n e = this._canvas.width / d,\n l = this._canvas.height / d;\n this._reset();\n c.src = a;\n c.onload = function () {\n b._ctx.drawImage(c, 0, 0, e, l);\n };\n this._isEmpty = !1;\n };\n b.prototype._strokeUpdate = function (a) {\n a = this._createPoint(a);\n this._ctx.fillStyle = this.penColor;\n this._ctx.strokeStyle = this.penColor;\n this.curPos = a;\n this._drawLine();\n this.oldPos = this.curPos;\n };\n b.prototype._strokeBegin = function (a) {\n for (this._reset(); 0 < this.ptQueue.size();) this.ptQueue.pop();\n this.oldPos = this._createPoint(a);\n self.oldPos = self.curPos;\n this.penPress = 0;\n this.LstTrans = .1;\n this.LstSize = 0;\n this._ctx.fillStyle = this.penColor;\n this._ctx.strokeStyle = this.penColor;\n this.count = 0;\n if (\"function\" === typeof this.onBegin) this.onBegin(a);\n };\n b.prototype._strokeDraw = function (a) {\n var b = this._ctx,\n c = \"function\" === typeof this.dotSize ? this.dotSize() : this.dotSize;\n b.beginPath();\n this._drawPoint(a.x, a.y, c);\n b.closePath();\n b.fill();\n };\n b.prototype._strokeEnd = function (a) {\n this.penPress = 0;\n this.oldPos = this.curPos;\n if (\"function\" === typeof this.onEnd) this.onEnd(a);\n };\n b.prototype._handleMouseEvents = function () {\n this._mouseButtonDown = !1;\n this._canvas.addEventListener(\"mousedown\", this._handleMouseDown);\n this._canvas.addEventListener(\"mousemove\", this._handleMouseMove);\n this._canvas.addEventListener(\"mouseup\", this._handleMouseUp);\n };\n b.prototype._handleTouchEvents = function () {\n this._canvas.style.msTouchAction = \"none\";\n this._canvas.style.touchAction = \"none\";\n this._canvas.addEventListener(\"touchstart\", this._handleTouchStart);\n this._canvas.addEventListener(\"touchmove\", this._handleTouchMove);\n this._canvas.addEventListener(\"touchend\", this._handleTouchEnd);\n this._canvas.addEventListener(\"touchcancel\", this._handleTouchCancel);\n };\n b.prototype.on = function () {\n this._handleMouseEvents();\n this._handleTouchEvents();\n };\n b.prototype.off = function () {\n this._canvas.removeEventListener(\"mousedown\", this._handleMouseDown);\n this._canvas.removeEventListener(\"mousemove\", this._handleMouseMove);\n this._canvas.removeEventListener(\"mouseup\", this._handleMouseUp);\n this._canvas.removeEventListener(\"touchstart\", this._handleTouchStart);\n this._canvas.removeEventListener(\"touchmove\", this._handleTouchMove);\n this._canvas.removeEventListener(\"touchend\", this._handleTouchEnd);\n this._canvas.removeEventListener(\"touchcancel\", this._handleTouchCancel);\n };\n b.prototype.isEmpty = function () {\n return this._isEmpty;\n };\n b.prototype._reset = function () {\n this.points = [];\n this._lastVelocity = 0;\n this._lastWidth = (this.minWidth + this.maxWidth) / 2;\n this._isEmpty = !0;\n this._ctx.fillStyle = this.penColor;\n };\n b.prototype._createPoint = function (a) {\n var b = this._canvas.getBoundingClientRect();\n return new c(a.clientX - b.left, a.clientY - b.top);\n };\n b.prototype._addPoint = function (a) {\n var b = this.points;\n b.push(a);\n if (2 < b.length) {\n 3 === b.length && b.unshift(b[0]);\n var c = this._calculateCurveControlPoints(b[0], b[1], b[2]);\n a = c.c2;\n c = this._calculateCurveControlPoints(b[1], b[2], b[3]);\n c = c.c1;\n a = new d(b[1], a, c, b[2]);\n this._addCurve(a);\n b.shift();\n }\n };\n b.prototype._calculateCurveControlPoints = function (a, b, d) {\n var e = a.x - b.x,\n f = a.y - b.y,\n g = b.x - d.x,\n m = b.y - d.y,\n p = (a.x + b.x) / 2;\n a = (a.y + b.y) / 2;\n var n = (b.x + d.x) / 2;\n d = (b.y + d.y) / 2;\n g = Math.sqrt(g * g + m * m);\n f = g / (Math.sqrt(e * e + f * f) + g);\n e = b.x - (n + (p - n) * f);\n b = b.y - (d + (a - d) * f);\n return {\n c1: new c(p + e, a + b),\n c2: new c(n + e, d + b)\n };\n };\n b.prototype._addCurve = function (a) {\n var b = a.endPoint.velocityFrom(a.startPoint);\n b = this.velocityFilterWeight * b + (1 - this.velocityFilterWeight) * this._lastVelocity;\n var c = this._strokeWidth(b);\n this._drawCurve(a, this._lastWidth, c);\n this._lastVelocity = b;\n this._lastWidth = c;\n };\n b.prototype._drawPoint = function (a, b, c) {\n var d = this._ctx;\n d.moveTo(a, b);\n d.arc(a, b, c, 0, 2 * Math.PI, !1);\n this._isEmpty = !1;\n };\n b.prototype._drawCurve = function (a, b, c) {\n var d = this._ctx;\n c -= b;\n var e;\n var f = Math.floor(a.length());\n d.beginPath();\n for (e = 0; e < f; e++) {\n var g = e / f;\n var p = g * g;\n var n = p * g;\n var r = 1 - g;\n var q = r * r;\n var B = q * r;\n var v = B * a.startPoint.x;\n v += 3 * q * g * a.control1.x;\n v += 3 * r * p * a.control2.x;\n v += n * a.endPoint.x;\n B *= a.startPoint.y;\n B += 3 * q * g * a.control1.y;\n B += 3 * r * p * a.control2.y;\n B += n * a.endPoint.y;\n g = b + n * c;\n this._drawPoint(v, B, g);\n }\n d.closePath();\n d.fill();\n };\n b.prototype._drawLine = function (a) {\n var b;\n var c = a || this.maxWidth;\n 0 == this.curPos.x - this.oldPos.x && (this.curPos.x += .1);\n 0 == this.curPos.y - this.oldPos.y && (this.curPos.y += .1);\n a = this.curPos.x - this.oldPos.x;\n var d = this.curPos.y - this.oldPos.y;\n this.penPress = Math.round(this.penPress + (Math.max((1024 - 5 * Math.pow(a * a + d * d, .5)) / 10, 5) - this.penPress) / 3);\n d = this.penPress / 100;\n a = 1 * d;\n c = d * c * 2;\n 1 < a ? a = 1 : .2 > a && (a = .2);\n d = this.curPos.x - this.oldPos.x;\n var e = this.curPos.y - this.oldPos.y;\n var l = c - this.LstSize;\n var m = a - this.LstTrans;\n if (Math.abs(d) >= Math.abs(e) && 0 < Math.abs(d)) {\n var p = Math.abs(d);\n var n = 0 < d ? 1 : -1;\n var r = e / p;\n var q = l / p;\n var B = m / p;\n var v = this.oldPos.x;\n var E = this.oldPos.y;\n for (b = 0; b <= p; b++) {\n var x = this.oldPos.x + n * b;\n var y = this.oldPos.y + r * b;\n var z = this.LstSize + q * b;\n var u = this.LstTrans + B * b;\n this._ctx.globalAlpha = Math.max(u, .85);\n this._ctx.lineWidth = Math.max(z, 1);\n this._ctx.beginPath();\n this._ctx.moveTo(Math.round(v - .1 * n), Math.round(E - .1 * n));\n this._ctx.lineTo(Math.round(x + .1 * n), Math.round(y + .1 * n));\n this._ctx.stroke();\n this._ctx.closePath();\n v = x;\n E = y;\n }\n }\n if (Math.abs(e) >= Math.abs(d) && 0 < Math.abs(e)) for (p = Math.abs(e), n = 0 < e ? 1 : -1, r = d / p, q = l / p, B = m / p, v = this.oldPos.x, E = this.oldPos.y, b = 0; b <= p; b++) x = this.oldPos.x + r * b, y = this.oldPos.y + n * b, z = this.LstSize + q * b, u = this.LstTrans + B * b, this._ctx.globalAlpha = Math.max(u, .85), this._ctx.lineWidth = Math.max(z, 1), this._ctx.beginPath(), this._ctx.moveTo(Math.round(v - .1 * n), Math.round(E - .1 * n)), this._ctx.lineTo(Math.round(x + .1 * n), Math.round(y + .1 * n)), this._ctx.stroke(), this._ctx.closePath(), v = x, E = y;\n this.LstTrans = a;\n this.LstSize = c;\n };\n b.prototype._strokeWidth = function (a) {\n return Math.max(this.maxWidth / (a + 1), this.minWidth);\n };\n var c = function c(a, b, _c3) {\n this.x = a;\n this.y = b;\n this.time = _c3 || new Date().getTime();\n };\n c.prototype.velocityFrom = function (a) {\n return this.time !== a.time ? this.distanceTo(a) / (this.time - a.time) : 1;\n };\n c.prototype.distanceTo = function (a) {\n return Math.sqrt(Math.pow(this.x - a.x, 2) + Math.pow(this.y - a.y, 2));\n };\n var d = function d(a, b, c, _d) {\n this.startPoint = a;\n this.control1 = b;\n this.control2 = c;\n this.endPoint = _d;\n };\n d.prototype.length = function () {\n var a = 0,\n b;\n for (b = 0; 10 >= b; b++) {\n var c = b / 10;\n var d = this._point(c, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);\n c = this._point(c, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);\n if (0 < b) {\n var k = d - k;\n var l = c - l;\n a += Math.sqrt(k * k + l * l);\n }\n k = d;\n l = c;\n }\n return a;\n };\n d.prototype._point = function (a, b, c, d, k) {\n return b * (1 - a) * (1 - a) * (1 - a) + 3 * c * (1 - a) * (1 - a) * a + 3 * d * (1 - a) * a * a + k * a * a * a;\n };\n return b;\n }(document),\n $jscompDefaultExport$$module$webapp$kinggrid$signature_all = _Signature$$module$webapp$kinggrid$signature_all,\n module$webapp$kinggrid$signature_all = {};\nmodule$webapp$kinggrid$signature_all.default = $jscompDefaultExport$$module$webapp$kinggrid$signature_all;\n// V2.0.0.388\nexport default Signature;",null]}