@xysfe/actui 1.5.31-beta.13 → 1.5.31-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/es/BScroll/index.js +1 -1
  2. package/es/BankSelect/index.js +1 -1
  3. package/es/BaseInput/index.js +1 -1
  4. package/es/Button/index.js +1 -1
  5. package/es/CascadePicker/index.js +1 -1
  6. package/es/CertifyLayer/index.js +1 -1
  7. package/es/Collapse/index.js +1 -1
  8. package/es/Contact/index.js +1 -1
  9. package/es/ContactBook/index.js +1 -1
  10. package/es/CountTo/index.js +1 -1
  11. package/es/CouponLayer/index.js +1 -1
  12. package/es/CouponLayer/style.css +1 -1
  13. package/es/CrmReserveInfoLayer/index.js +1 -1
  14. package/es/DatePicker/index.js +1 -1
  15. package/es/DeviceFingerprint/index.js +1 -1
  16. package/es/Dialog/index.js +1 -1
  17. package/es/DiseaseSelect/index.js +1 -1
  18. package/es/DiseaseSelectLayer/index.js +1 -1
  19. package/es/DocPop/index.js +1 -1
  20. package/es/ErrorInterceptors/index.js +1 -1
  21. package/es/FaceRecognition/index.js +1 -1
  22. package/es/FileList/index.js +1 -1
  23. package/es/FileUpload/index.js +1 -1
  24. package/es/FormLayer/index.js +1 -1
  25. package/es/GivenLayer/index.js +1 -1
  26. package/es/GivenLayer/style.css +1 -1
  27. package/es/GoldAddress/index.js +1 -1
  28. package/es/GoldAddressLayer/index.js +1 -1
  29. package/es/GoldAml/index.js +1 -1
  30. package/es/GoldAml/style.css +1 -1
  31. package/es/GoldArea/index.js +1 -1
  32. package/es/GoldAuroraSlots/index.js +1 -1
  33. package/es/GoldBankPayLimit/index.js +1 -1
  34. package/es/GoldBankPayLimit/style.css +1 -1
  35. package/es/GoldBenefitDemo/index.js +1 -1
  36. package/es/GoldCareer/index.js +1 -1
  37. package/es/GoldCareerLayer/index.js +1 -1
  38. package/es/GoldCommentList/index.js +1 -1
  39. package/es/GoldCompute/index.js +1 -1
  40. package/es/GoldCompute/style.css +1 -1
  41. package/es/GoldComputeV2/index.js +1 -1
  42. package/es/GoldComputeV2/style.css +1 -1
  43. package/es/GoldConclusion/index.js +1 -1
  44. package/es/GoldContact/index.js +1 -1
  45. package/es/GoldContactBook/index.js +1 -1
  46. package/es/GoldContactElement/index.js +1 -1
  47. package/es/GoldCost/index.js +1 -1
  48. package/es/GoldCostLayer/index.js +1 -1
  49. package/es/GoldCoupon/index.js +1 -1
  50. package/es/GoldCoupon/style.css +1 -1
  51. package/es/GoldDate/index.js +1 -1
  52. package/es/GoldDialog/index.js +1 -1
  53. package/es/GoldDisease/index.js +1 -1
  54. package/es/GoldDisease/style.css +0 -1
  55. package/es/GoldDocLayer/index.js +1 -1
  56. package/es/GoldElement/index.js +1 -1
  57. package/es/GoldElementGroup/index.js +1 -1
  58. package/es/GoldFacecheck/index.js +1 -1
  59. package/es/GoldFaq/index.js +1 -1
  60. package/es/GoldFile/index.js +1 -1
  61. package/es/GoldFileAssess/index.js +1 -1
  62. package/es/GoldFinance/index.js +1 -1
  63. package/es/GoldFinanceChart/index.js +1 -1
  64. package/es/GoldFinanceV2/index.js +1 -1
  65. package/es/GoldIndexBar/index.js +1 -1
  66. package/es/GoldIndexBar/style.css +0 -1
  67. package/es/GoldInput/index.js +1 -1
  68. package/es/GoldInsureDuty/index.js +1 -1
  69. package/es/GoldInsureNotice/index.js +1 -1
  70. package/es/GoldItem/index.js +1 -1
  71. package/es/GoldLattice/index.js +1 -1
  72. package/es/GoldLayer/index.js +1 -1
  73. package/es/GoldMailPrecheck/index.js +1 -1
  74. package/es/GoldMailPrecheckV2/index.js +1 -1
  75. package/es/GoldMobileLayer/index.js +1 -1
  76. package/es/GoldModule/index.js +1 -1
  77. package/es/GoldMulSelect/index.js +1 -1
  78. package/es/GoldMulSelect/style.css +1 -1
  79. package/es/GoldNoticeTerms/index.js +1 -1
  80. package/es/GoldOcr/index.js +1 -1
  81. package/es/GoldPayLimitLayer/index.js +1 -1
  82. package/es/GoldPhoto/index.js +1 -1
  83. package/es/GoldProtocol/index.js +1 -1
  84. package/es/GoldPureText/index.js +1 -1
  85. package/es/GoldQrcode/index.js +1 -1
  86. package/es/GoldReadTerms/index.js +1 -1
  87. package/es/GoldSelect/index.js +1 -1
  88. package/es/GoldSelect/style.css +1 -1
  89. package/es/GoldSignature/index.js +1 -1
  90. package/es/GoldStepper/index.js +1 -1
  91. package/es/GoldSwitch/index.js +1 -1
  92. package/es/GoldText/index.js +1 -1
  93. package/es/GoldTextarea/index.js +1 -1
  94. package/es/GoldUniversal/index.js +1 -1
  95. package/es/GoldVerifyCode/index.js +1 -1
  96. package/es/ImageLayer/index.js +1 -1
  97. package/es/ImagePreview/index.js +1 -1
  98. package/es/IndexBar/index.js +1 -1
  99. package/es/IndexList/index.js +1 -1
  100. package/es/Jigsaw/index.js +1 -1
  101. package/es/JigsawLayer/index.js +1 -1
  102. package/es/JigsawVerifyCode/index.js +1 -1
  103. package/es/Keyframe/index.js +1 -1
  104. package/es/Loading/index.js +1 -1
  105. package/es/Login/index.js +1 -1
  106. package/es/LoginLayer/index.js +1 -1
  107. package/es/Marketing/index.js +1 -1
  108. package/es/MobileAuth/index.js +1 -1
  109. package/es/MobileAuthLayer/index.js +1 -1
  110. package/es/MobileLayer/index.js +1 -1
  111. package/es/MobileLayer/style.css +1 -1
  112. package/es/MultiSelect/index.js +1 -1
  113. package/es/NoticeTips/index.js +1 -1
  114. package/es/NoticeTips/style.css +1 -1
  115. package/es/OcrLayer/index.js +1 -1
  116. package/es/PageLoading/index.js +1 -1
  117. package/es/Panel/index.js +1 -1
  118. package/es/PhotoBox/index.js +1 -1
  119. package/es/Picker/index.js +1 -1
  120. package/es/PosterLayer/index.js +1 -1
  121. package/es/PosterLayer/style.css +1 -1
  122. package/es/PrizeLayer/index.js +1 -1
  123. package/es/PrizeLayer/style.css +1 -1
  124. package/es/ProductLayer/index.js +1 -1
  125. package/es/QRCode/index.js +1 -1
  126. package/es/QrcodeLayer/index.js +1 -1
  127. package/es/Recognition/index.js +1 -1
  128. package/es/ReplayLayer/index.js +1 -1
  129. package/es/ResourcePreload/index.js +1 -1
  130. package/es/RowCascadePicker/index.js +1 -1
  131. package/es/Rule/index.js +1 -1
  132. package/es/Rule/style.css +1 -1
  133. package/es/Scroll/index.js +1 -1
  134. package/es/Signature/index.js +1 -1
  135. package/es/SlidePoster/index.js +1 -1
  136. package/es/Stepper/index.js +1 -1
  137. package/es/Sticky/index.js +1 -1
  138. package/es/Style/index.js +1 -1
  139. package/es/Swipe/index.js +1 -1
  140. package/es/Switch/index.js +1 -1
  141. package/es/Tab/index.js +1 -1
  142. package/es/Timeline/index.js +1 -1
  143. package/es/Timeline/style.css +1 -1
  144. package/es/Toast/index.js +1 -1
  145. package/es/Validator/index.js +1 -1
  146. package/es/assets/common/baseelement.js +1 -1
  147. package/es/assets/common/button.js +1 -1
  148. package/es/assets/common/dynamicform.js +1 -1
  149. package/es/assets/common/forminput.js +1 -1
  150. package/es/assets/common/goldlayer.js +1 -1
  151. package/es/assets/common/iconbank.js +1 -1
  152. package/es/assets/common/iconcontact.js +1 -1
  153. package/es/assets/common/iconphoto.js +1 -1
  154. package/es/assets/common/input.js +1 -1
  155. package/es/assets/common/layer.js +1 -1
  156. package/es/assets/common/popup.js +1 -1
  157. package/es/assets/common/scroll.js +1 -1
  158. package/es/assets/common/scrollZoom/components/bubble.js +1 -1
  159. package/es/assets/common/scrollZoom/components/scroll.js +1 -1
  160. package/es/assets/common/scrollZoom/index.js +1 -1
  161. package/es/assets/common/svgicon.js +1 -1
  162. package/es/assets/mixins/basic-picker.js +1 -1
  163. package/es/assets/mixins/bind-event.js +1 -1
  164. package/es/assets/mixins/dynamic-form.js +1 -1
  165. package/es/assets/mixins/fixed-input.js +1 -1
  166. package/es/assets/mixins/fontsize.js +1 -1
  167. package/es/assets/mixins/form-input.js +1 -1
  168. package/es/assets/mixins/gold-change.js +1 -1
  169. package/es/assets/mixins/gold-element.js +1 -1
  170. package/es/assets/mixins/gold-theme.js +1 -1
  171. package/es/assets/mixins/gold-visible.js +1 -1
  172. package/es/assets/mixins/mobile-layer.js +1 -1
  173. package/es/assets/mixins/noscroll.js +1 -1
  174. package/es/assets/mixins/picker.js +1 -1
  175. package/es/assets/mixins/popup.js +1 -1
  176. package/es/assets/mixins/poster-layer.js +1 -1
  177. package/es/assets/mixins/touch.js +1 -1
  178. package/es/assets/mixins/visible.js +1 -1
  179. package/es/assets/svgicon.js +1 -0
  180. package/es/assets/utils/BScroll/constants.js +1 -1
  181. package/es/assets/utils/app.js +1 -1
  182. package/es/assets/utils/assign.js +1 -1
  183. package/es/assets/utils/camelcase.js +1 -1
  184. package/es/assets/utils/create/index.js +1 -1
  185. package/es/assets/utils/create/instantiate-component.js +1 -1
  186. package/es/assets/utils/create/parse-render.js +1 -1
  187. package/es/assets/utils/date.js +1 -1
  188. package/es/assets/utils/dom.js +1 -1
  189. package/es/assets/utils/encrypt.js +1 -1
  190. package/es/assets/utils/event.js +1 -1
  191. package/es/assets/utils/helpers.js +1 -1
  192. package/es/assets/utils/polyfill/Array.prototype.includes.js +1 -1
  193. package/es/assets/utils/polyfill/Object.keys.js +1 -1
  194. package/es/assets/utils/position.js +1 -1
  195. package/es/assets/utils/post.js +1 -1
  196. package/es/assets/utils/raf.js +1 -1
  197. package/es/index.js +1 -1
  198. package/es/toBase64/index.js +1 -1
  199. package/lib/GoldFinanceChart/index.js +1 -1
  200. package/lib/index.js +1 -1
  201. package/package.json +1 -1
  202. package/es/GoldAddress/style.css +0 -1
  203. package/es/GoldArea/style.css +0 -1
  204. package/es/GoldCareer/style.css +0 -1
  205. package/es/GoldDate/style.css +0 -1
  206. package/es/GoldItem/style.css +0 -1
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js"],e):"object"==typeof exports?exports.Signature=e(require("@xysfe/actui/es/assets/utils/create/index.js")):t.Signature=e(t["@xysfe/actui/es/assets/utils/create/index.js"])}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1416)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var r=n(29)("wks"),i=n(26),o=n(0).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},10:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},11:function(t,e,n){var r=n(4),i=n(38),o=n(37),s=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},12:function(t,e,n){var r=n(0),i=n(2),o=n(19),s=n(7),a=n(10),c=function(t,e,n){var u,f,h,l=t&c.F,v=t&c.G,p=t&c.S,d=t&c.P,x=t&c.B,g=t&c.W,y=v?i:i[e]||(i[e]={}),m=y.prototype,_=v?r:p?r[e]:(r[e]||{}).prototype;v&&(n=e);for(u in n)(f=!l&&_&&void 0!==_[u])&&a(y,u)||(h=f?_[u]:n[u],y[u]=v&&"function"!=typeof _[u]?n[u]:x&&f?o(h,r):g&&_[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):d&&"function"==typeof h?o(Function.call,h):h,d&&((y.virtual||(y.virtual={}))[u]=h,t&c.R&&m&&!m[u]&&s(m,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},13:function(t,e){t.exports={}},14:function(t,e,n){var r=n(32),i=n(18);t.exports=function(t){return r(i(t))}},1416:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(23),i=n.n(r),o=n(1417);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createSignature=i()(o.a,t)},e.default=o.a},1417:function(t,e,n){"use strict";function r(t){a||n(1418)}var i=n(849),o=n(1419),s=n(8),a=!1,c=r,u=Object(s.a)(i.a,o.a,o.b,!1,c,"data-v-31195bd6",null);u.options.__file="src\\components\\Signature\\src\\index.vue",e.a=u.exports},1418:function(t,e){},1419:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"act-gold-popup-move"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-signature-wrap",attrs:{id:"act-signature"}},[n("div",{staticClass:"act-signature-box"},[n("div",{staticClass:"header-box"},[n("div",{staticClass:"text"},[t._v("\n 请完成签名\n ")]),t._v(" "),n("div",{staticClass:"close",on:{click:t.hide}})]),t._v(" "),t.$slots.header?t._e():n("div",{staticClass:"header",domProps:{innerHTML:t._s(t.headerText)}}),t._v(" "),t.$slots.header?t._t("header"):t._e(),t._v(" "),n("div",{ref:"box",staticClass:"canvasBox"},[n("canvas",{ref:"canvas",on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseup:t.mouseUp,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}})]),t._v(" "),n("div",{staticClass:"ctrl"},[n("div",{staticClass:"clearBtn",attrs:{type:"button"},on:{click:t.reset}},[t._v("\n "+t._s(t.clearBtnText)+"\n ")]),t._v(" "),n("div",{staticClass:"saveBtn",style:"background: "+t.color,attrs:{type:"button"},on:{click:t.save}},[t._v("\n "+t._s(t.saveBtnText)+"\n ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showErrtips,expression:"showErrtips"}],staticClass:"errtips"},[t._v("\n 请仔细签名\n ")])],2)])])},i=[];r._withStripped=!0},15:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},16:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},17:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},18:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},19:function(t,e,n){var r=n(21);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},2:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=!0},21:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},22:function(t,e,n){var r=n(29)("keys"),i=n(26);t.exports=function(t){return r[t]||(r[t]=i(t))}},23:function(e,n){e.exports=t},24:function(t,e,n){var r=n(9),i=n(0).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},25:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},26:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},27:function(t,e,n){var r=n(11).f,i=n(10),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},28:function(t,e,n){var r=n(39),i=n(30);t.exports=Object.keys||function(t){return r(t,i)}},29:function(t,e,n){var r=n(2),i=n(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(20)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},3:function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},31:function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},32:function(t,e,n){var r=n(16);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},33:function(t,e,n){var r=n(17),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},35:function(t,e,n){"use strict";var r=n(20),i=n(12),o=n(49),s=n(7),a=n(13),c=n(51),u=n(27),f=n(53),h=n(1)("iterator"),l=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,p,d,x,g){c(n,e,p);var y,m,_,w=function(t){if(!l&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},T=e+" Iterator",b="values"==d,S=!1,C=t.prototype,j=C[h]||C["@@iterator"]||d&&C[d],P=j||w(d),M=d?b?w("entries"):P:void 0,O="Array"==e?C.entries||j:j;if(O&&(_=f(O.call(new t)))!==Object.prototype&&_.next&&(u(_,T,!0),r||"function"==typeof _[h]||s(_,h,v)),b&&j&&"values"!==j.name&&(S=!0,P=function(){return j.call(this)}),r&&!g||!l&&!S&&C[h]||s(C,h,P),a[e]=P,a[T]=v,d)if(y={values:b?P:w("values"),keys:x?P:w("keys"),entries:M},g)for(m in y)m in C||o(C,m,y[m]);else i(i.P+i.F*(l||S),e,y);return y}},37:function(t,e,n){var r=n(9);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},38:function(t,e,n){t.exports=!n(3)&&!n(15)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},39:function(t,e,n){var r=n(10),i=n(14),o=n(43)(!1),s=n(22)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(u,n)||u.push(n));return u}},4:function(t,e,n){var r=n(9);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},40:function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},41:function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(21);t.exports.f=function(t){return new r(t)}},42:function(t,e,n){var r=n(16),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},43:function(t,e,n){var r=n(14),i=n(33),o=n(44);t.exports=function(t){return function(e,n,s){var a,c=r(e),u=i(c.length),f=o(s,u);if(t&&n!=n){for(;u>f;)if((a=c[f++])!=a)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},44:function(t,e,n){var r=n(17),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},45:function(t,e,n){"use strict";var r=n(50)(!0);n(35)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},46:function(t,e,n){var r=n(4),i=n(52),o=n(30),s=n(22)("IE_PROTO"),a=function(){},c=function(){var t,e=n(24)("iframe"),r=o.length;for(e.style.display="none",n(40).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},48:function(t,e,n){n(60);for(var r=n(0),i=n(7),o=n(13),s=n(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],f=r[u],h=f&&f.prototype;h&&!h[s]&&i(h,s,u),o[u]=o.Array}},49:function(t,e,n){t.exports=n(7)},50:function(t,e,n){var r=n(17),i=n(18);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),u=a.length;return c<0||c>=u?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},51:function(t,e,n){"use strict";var r=n(46),i=n(25),o=n(27),s={};n(7)(s,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},52:function(t,e,n){var r=n(11),i=n(4),o=n(28);t.exports=n(3)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},53:function(t,e,n){var r=n(10),i=n(31),o=n(22)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},54:function(t,e,n){var r=n(42),i=n(1)("iterator"),o=n(13);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},55:function(t,e,n){var r=n(4),i=n(21),o=n(1)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},56:function(t,e,n){var r,i,o,s=n(19),a=n(79),c=n(40),u=n(24),f=n(0),h=f.process,l=f.setImmediate,v=f.clearImmediate,p=f.MessageChannel,d=f.Dispatch,x=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},m=function(t){y.call(t.data)};l&&v||(l=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++x]=function(){a("function"==typeof t?t:Function(t),e)},r(x),x},v=function(t){delete g[t]},"process"==n(16)(h)?r=function(t){h.nextTick(s(y,t,1))}:d&&d.now?r=function(t){d.now(s(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,r=s(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:l,clear:v}},57:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},58:function(t,e,n){var r=n(4),i=n(9),o=n(41);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},59:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},60:function(t,e,n){"use strict";var r=n(61),i=n(59),o=n(13),s=n(14);t.exports=n(35)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},61:function(t,e){t.exports=function(){}},63:function(t,e,n){t.exports={default:n(77),__esModule:!0}},64:function(t,e){},7:function(t,e,n){var r=n(11),i=n(25);t.exports=n(3)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},70:function(t,e,n){var r=n(4);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},71:function(t,e,n){var r=n(13),i=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},72:function(t,e,n){var r=n(19),i=n(70),o=n(71),s=n(4),a=n(33),c=n(54),u={},f={},e=t.exports=function(t,e,n,h,l){var v,p,d,x,g=l?function(){return t}:c(t),y=r(n,h,e?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(v=a(t.length);v>m;m++)if((x=e?y(s(p=t[m])[0],p[1]):y(t[m]))===u||x===f)return x}else for(d=g.call(t);!(p=d.next()).done;)if((x=i(d,y,p.value,e))===u||x===f)return x};e.BREAK=u,e.RETURN=f},73:function(t,e,n){var r=n(1)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},74:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},75:function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},76:function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(11),s=n(3),a=n(1)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},77:function(t,e,n){n(64),n(45),n(48),n(78),n(82),n(83),t.exports=n(2).Promise},78:function(t,e,n){"use strict";var r,i,o,s,a=n(20),c=n(0),u=n(19),f=n(42),h=n(12),l=n(9),v=n(21),p=n(74),d=n(72),x=n(55),g=n(56).set,y=n(80)(),m=n(41),_=n(57),w=n(81),T=n(58),b=c.TypeError,S=c.process,C=S&&S.versions,j=C&&C.v8||"",P=c.Promise,M="process"==f(S),O=function(){},E=i=m.f,$=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(O,O)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,s,a=i?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{a?(i||(2==t._h&&A(t),t._h=1),!0===a?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),s=!0)),n===e.promise?u(b("Promise-chain cycle")):(o=L(n))?o.call(n,c,u):c(n)):u(r)}catch(t){f&&!s&&f.exit(),u(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&k(t)})}},k=function(t){g.call(c,function(){var e,n,r,i=t._v,o=D(t);if(o&&(e=_(function(){M?S.emit("unhandledRejection",i,t):(n=c.onunhandledrejection)?n({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=M||D(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},A=function(t){g.call(c,function(){var e;M?S.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},B=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw b("Promise can't be resolved itself");(e=L(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,u(I,r,1),u(B,r,1))}catch(t){B.call(r,t)}}):(n._v=t,n._s=1,R(n,!1))}catch(t){B.call({_w:n,_d:!1},t)}}};$||(P=function(t){p(this,P,"Promise","_h"),v(t),r.call(this);try{t(u(I,this,1),u(B,this,1))}catch(t){B.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(75)(P.prototype,{then:function(t,e){var n=E(x(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=M?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=u(I,t,1),this.reject=u(B,t,1)},m.f=E=function(t){return t===P||t===s?new o(t):i(t)}),h(h.G+h.W+h.F*!$,{Promise:P}),n(27)(P,"Promise"),n(76)("Promise"),s=n(2).Promise,h(h.S+h.F*!$,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!$),"Promise",{resolve:function(t){return T(a&&this===s?P:this,t)}}),h(h.S+h.F*!($&&n(73)(function(t){P.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,s=1;d(t,!1,function(t){var a=o++,c=!1;n.push(void 0),s++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,i=_(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},79:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},8:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId=o);var f;if(s?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=f):i&&(f=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),f)if(u.functional){u._injectStyles=f;var h=u.render;u.render=function(t,e){return f.call(e),h(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,f):[f]}return{exports:t,options:u}}e.a=r},80:function(t,e,n){var r=n(0),i=n(56).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(16)(s);t.exports=function(){var t,e,n,u=function(){var r,i;for(c&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);n=function(){f.then(u)}}else n=function(){i.call(r,u)};else{var h=!0,l=document.createTextNode("");new o(u).observe(l,{characterData:!0}),n=function(){l.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},81:function(t,e,n){var r=n(0),i=r.navigator;t.exports=i&&i.userAgent||""},82:function(t,e,n){"use strict";var r=n(12),i=n(2),o=n(0),s=n(55),a=n(58);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},83:function(t,e,n){"use strict";var r=n(12),i=n(41),o=n(57);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},849:function(t,e,n){"use strict";var r=n(63),i=n.n(r);e.a={name:"ActSignature",props:{color:{type:String,default:"#8c7fee"},clearBtnText:{type:String,default:"重置"},saveBtnText:{type:String,default:"保存"},headerText:{type:String,default:"请完成您的亲笔签名"}},data:function(){return{isVisible:!1,showErrtips:!1,lineWidth:3,lineColor:"#000000",bgColor:"#ffffff",isCrop:!1,hasDrew:!1,width:0,height:0,resultImg:"",points:{x:[],y:[]},canvasTxt:null,startX:0,startY:0,isDrawing:!1,sratio:1}},computed:{ratio:function(){return this.height/this.width},stageInfo:function(){return this.$refs.canvas.getBoundingClientRect()},myBg:function(){return this.bgColor?this.bgColor:"rgba(255, 255, 255, 0)"}},watch:{myBg:function(t){this.$refs.canvas.style.background=t},isVisible:function(t){var e=this;t&&setTimeout(function(){var t=e.$refs.canvas;e.height=e.$refs.box.offsetHeight,e.width=e.$refs.box.offsetWidth,t.height=e.height,t.width=e.width,t.style.background=e.myBg,e._resizeHandler()})}},mounted:function(){var t=this;document.onmouseup=function(){t.isDrawing=!1}},methods:{show:function(){this.isVisible=!0},hide:function(){this.reset(),this.isVisible=!1},_resizeHandler:function(){var t=this.$refs.canvas;t.style.width=this.width+"px";var e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.canvasTxt=t.getContext("2d"),this.canvasTxt.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.canvasTxt.scale(1/this.sratio,1/this.sratio)},mouseDown:function(t){t=t||event,t.preventDefault(),this.isDrawing=!0,this.hasDrew=!0;var e={x:t.offsetX,y:t.offsetY};this.drawStart(e)},mouseMove:function(t){if(t=t||event,t.preventDefault(),this.isDrawing){var e={x:t.offsetX,y:t.offsetY};this.drawMove(e)}},mouseUp:function(t){t=t||event,t.preventDefault();var e={x:t.offsetX,y:t.offsetY};this.drawEnd(e),this.isDrawing=!1},touchStart:function(t){if(t=t||event,t.preventDefault(),this.hasDrew=!0,1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawStart(e)}},touchMove:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawMove(e)}},touchEnd:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawEnd(e)}},drawStart:function(t){this.startX=t.x,this.startY=t.y,this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.x.push(t.x),this.points.y.push(t.y)},drawMove:function(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.strokeStyle=this.lineColor,this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.startY=t.y,this.startX=t.x,this.points.x.push(t.x),this.points.y.push(t.y)},drawEnd:function(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.x.push(t.x),this.points.y.push(t.y),this.points.x.push(-1),this.points.y.push(-1)},generate:function(){var t=this;return new i.a(function(e,n){var r=t.getMax(t.points.x,t.points.y);if(!t.hasDrew)return void n("Warning: Not Signned!");if(t.points.x.length<40||Math.abs(r.left-r.right)<40||Math.abs(r.top-r.bottom)<40)return void n("Warning: Not Signned!");var i=t.canvasTxt.getImageData(0,0,t.$refs.canvas.width,t.$refs.canvas.height);t.canvasTxt.globalCompositeOperation="destination-over",t.canvasTxt.fillStyle=t.myBg,t.canvasTxt.fillRect(0,0,t.$refs.canvas.width,t.$refs.canvas.height),t.resultImg=t.$refs.canvas.toDataURL();var o=t.resultImg;if(t.canvasTxt.clearRect(0,0,t.$refs.canvas.width,t.$refs.canvas.height),t.canvasTxt.putImageData(i,0,0),t.canvasTxt.globalCompositeOperation="source-over",t.isCrop){var s,a=t.getCropArea(i.data),c=document.createElement("canvas"),u=c.getContext("2d");c.width=a[2]-a[0],c.height=a[3]-a[1];var f=(s=t.canvasTxt).getImageData.apply(s,a);u.globalCompositeOperation="destination-over",u.putImageData(f,0,0),u.fillStyle=t.myBg,u.fillRect(0,0,c.width,c.height),o=c.toDataURL(),c=null}e(o)})},reset:function(){this.canvasTxt.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.$emit("update:bgColor",""),this.$refs.canvas.style.background=this.myBg,this.points={x:[],y:[]},this.hasDrew=!1,this.resultImg=""},getCropArea:function(t){for(var e=this.$refs.canvas.width,n=0,r=this.$refs.canvas.height,i=0,o=0;o<this.$refs.canvas.width;o++)for(var s=0;s<this.$refs.canvas.height;s++){var a=4*(o+this.$refs.canvas.width*s);(t[a]>0||t[a+1]>0||t[a+2]||t[a+3]>0)&&(i=Math.max(s,i),n=Math.max(o,n),r=Math.min(s,r),e=Math.min(o,e))}return e++,n++,r++,i++,[e,r,n,i]},getMax:function(t,e){var n={left:0,right:0,top:0,bottom:0};return"[object Array]"!=={}.toString.call(t)||"[object Array]"!=={}.toString.call(e)?n:(n.left=Math.min.apply(null,t),n.right=Math.max.apply(null,t),n.top=Math.min.apply(null,e),n.bottom=Math.max.apply(null,e),n)},save:function(){var t=this;this.generate().then(function(e){t.$emit("complete",e),t.hide()}).catch(function(e){console.log(e),t.showErrtips=!0,setTimeout(function(){t.showErrtips=!1},2e3)})}}}},9:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}}})});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js"],e):"object"==typeof exports?exports.Signature=e(require("@xysfe/actui/es/assets/utils/create/index.js")):t.Signature=e(t["@xysfe/actui/es/assets/utils/create/index.js"])}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1392)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var r=n(27)("wks"),i=n(24),o=n(0).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},10:function(t,e,n){var r=n(0),i=n(2),o=n(17),s=n(5),a=n(8),c=function(t,e,n){var u,f,h,l=t&c.F,v=t&c.G,p=t&c.S,d=t&c.P,x=t&c.B,g=t&c.W,y=v?i:i[e]||(i[e]={}),m=y.prototype,_=v?r:p?r[e]:(r[e]||{}).prototype;v&&(n=e);for(u in n)(f=!l&&_&&void 0!==_[u])&&a(y,u)||(h=f?_[u]:n[u],y[u]=v&&"function"!=typeof _[u]?n[u]:x&&f?o(h,r):g&&_[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):d&&"function"==typeof h?o(Function.call,h):h,d&&((y.virtual||(y.virtual={}))[u]=h,t&c.R&&m&&!m[u]&&s(m,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},11:function(t,e){t.exports={}},12:function(t,e,n){var r=n(30),i=n(16);t.exports=function(t){return r(i(t))}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1392:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21),i=n.n(r),o=n(1393);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createSignature=i()(o.a,t)},e.default=o.a},1393:function(t,e,n){"use strict";function r(t){a||n(1394)}var i=n(825),o=n(1395),s=n(7),a=!1,c=r,u=Object(s.a)(i.a,o.a,o.b,!1,c,"data-v-31195bd6",null);u.options.__file="src\\components\\Signature\\src\\index.vue",e.a=u.exports},1394:function(t,e){},1395:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"act-gold-popup-move"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-signature-wrap",attrs:{id:"act-signature"}},[n("div",{staticClass:"act-signature-box"},[n("div",{staticClass:"header-box"},[n("div",{staticClass:"text"},[t._v("\n 请完成签名\n ")]),t._v(" "),n("div",{staticClass:"close",on:{click:t.hide}})]),t._v(" "),t.$slots.header?t._e():n("div",{staticClass:"header",domProps:{innerHTML:t._s(t.headerText)}}),t._v(" "),t.$slots.header?t._t("header"):t._e(),t._v(" "),n("div",{ref:"box",staticClass:"canvasBox"},[n("canvas",{ref:"canvas",on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseup:t.mouseUp,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}})]),t._v(" "),n("div",{staticClass:"ctrl"},[n("div",{staticClass:"clearBtn",attrs:{type:"button"},on:{click:t.reset}},[t._v("\n "+t._s(t.clearBtnText)+"\n ")]),t._v(" "),n("div",{staticClass:"saveBtn",style:"background: "+t.color,attrs:{type:"button"},on:{click:t.save}},[t._v("\n "+t._s(t.saveBtnText)+"\n ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showErrtips,expression:"showErrtips"}],staticClass:"errtips"},[t._v("\n 请仔细签名\n ")])],2)])])},i=[];r._withStripped=!0},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},16:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},17:function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},2:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var r=n(27)("keys"),i=n(24);t.exports=function(t){return r[t]||(r[t]=i(t))}},21:function(e,n){e.exports=t},22:function(t,e,n){var r=n(6),i=n(0).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},25:function(t,e,n){var r=n(9).f,i=n(8),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},26:function(t,e,n){var r=n(37),i=n(28);t.exports=Object.keys||function(t){return r(t,i)}},27:function(t,e,n){var r=n(2),i=n(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},28:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},3:function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,n){var r=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},31:function(t,e,n){var r=n(15),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},33:function(t,e,n){"use strict";var r=n(18),i=n(10),o=n(47),s=n(5),a=n(11),c=n(49),u=n(25),f=n(51),h=n(1)("iterator"),l=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,p,d,x,g){c(n,e,p);var y,m,_,w=function(t){if(!l&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},T=e+" Iterator",b="values"==d,S=!1,C=t.prototype,j=C[h]||C["@@iterator"]||d&&C[d],P=j||w(d),M=d?b?w("entries"):P:void 0,O="Array"==e?C.entries||j:j;if(O&&(_=f(O.call(new t)))!==Object.prototype&&_.next&&(u(_,T,!0),r||"function"==typeof _[h]||s(_,h,v)),b&&j&&"values"!==j.name&&(S=!0,P=function(){return j.call(this)}),r&&!g||!l&&!S&&C[h]||s(C,h,P),a[e]=P,a[T]=v,d)if(y={values:b?P:w("values"),keys:x?P:w("keys"),entries:M},g)for(m in y)m in C||o(C,m,y[m]);else i(i.P+i.F*(l||S),e,y);return y}},35:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},36:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},37:function(t,e,n){var r=n(8),i=n(12),o=n(41)(!1),s=n(20)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(u,n)||u.push(n));return u}},38:function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},39:function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(19);t.exports.f=function(t){return new r(t)}},4:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},40:function(t,e,n){var r=n(14),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},41:function(t,e,n){var r=n(12),i=n(31),o=n(42);t.exports=function(t){return function(e,n,s){var a,c=r(e),u=i(c.length),f=o(s,u);if(t&&n!=n){for(;u>f;)if((a=c[f++])!=a)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},42:function(t,e,n){var r=n(15),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},43:function(t,e,n){"use strict";var r=n(48)(!0);n(33)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},44:function(t,e,n){var r=n(4),i=n(50),o=n(28),s=n(20)("IE_PROTO"),a=function(){},c=function(){var t,e=n(22)("iframe"),r=o.length;for(e.style.display="none",n(38).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},46:function(t,e,n){n(58);for(var r=n(0),i=n(5),o=n(11),s=n(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],f=r[u],h=f&&f.prototype;h&&!h[s]&&i(h,s,u),o[u]=o.Array}},47:function(t,e,n){t.exports=n(5)},48:function(t,e,n){var r=n(15),i=n(16);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),u=a.length;return c<0||c>=u?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},49:function(t,e,n){"use strict";var r=n(44),i=n(23),o=n(25),s={};n(5)(s,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},5:function(t,e,n){var r=n(9),i=n(23);t.exports=n(3)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},50:function(t,e,n){var r=n(9),i=n(4),o=n(26);t.exports=n(3)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},51:function(t,e,n){var r=n(8),i=n(29),o=n(20)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},52:function(t,e,n){var r=n(40),i=n(1)("iterator"),o=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},53:function(t,e,n){var r=n(4),i=n(19),o=n(1)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},54:function(t,e,n){var r,i,o,s=n(17),a=n(77),c=n(38),u=n(22),f=n(0),h=f.process,l=f.setImmediate,v=f.clearImmediate,p=f.MessageChannel,d=f.Dispatch,x=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},m=function(t){y.call(t.data)};l&&v||(l=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++x]=function(){a("function"==typeof t?t:Function(t),e)},r(x),x},v=function(t){delete g[t]},"process"==n(14)(h)?r=function(t){h.nextTick(s(y,t,1))}:d&&d.now?r=function(t){d.now(s(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,r=s(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:l,clear:v}},55:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},56:function(t,e,n){var r=n(4),i=n(6),o=n(39);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},57:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},58:function(t,e,n){"use strict";var r=n(59),i=n(57),o=n(11),s=n(12);t.exports=n(33)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},59:function(t,e){t.exports=function(){}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},61:function(t,e,n){t.exports={default:n(75),__esModule:!0}},62:function(t,e){},68:function(t,e,n){var r=n(4);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},69:function(t,e,n){var r=n(11),i=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},7:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId=o);var f;if(s?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=f):i&&(f=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),f)if(u.functional){u._injectStyles=f;var h=u.render;u.render=function(t,e){return f.call(e),h(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,f):[f]}return{exports:t,options:u}}e.a=r},70:function(t,e,n){var r=n(17),i=n(68),o=n(69),s=n(4),a=n(31),c=n(52),u={},f={},e=t.exports=function(t,e,n,h,l){var v,p,d,x,g=l?function(){return t}:c(t),y=r(n,h,e?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(v=a(t.length);v>m;m++)if((x=e?y(s(p=t[m])[0],p[1]):y(t[m]))===u||x===f)return x}else for(d=g.call(t);!(p=d.next()).done;)if((x=i(d,y,p.value,e))===u||x===f)return x};e.BREAK=u,e.RETURN=f},71:function(t,e,n){var r=n(1)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},72:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},73:function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},74:function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(9),s=n(3),a=n(1)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},75:function(t,e,n){n(62),n(43),n(46),n(76),n(80),n(81),t.exports=n(2).Promise},76:function(t,e,n){"use strict";var r,i,o,s,a=n(18),c=n(0),u=n(17),f=n(40),h=n(10),l=n(6),v=n(19),p=n(72),d=n(70),x=n(53),g=n(54).set,y=n(78)(),m=n(39),_=n(55),w=n(79),T=n(56),b=c.TypeError,S=c.process,C=S&&S.versions,j=C&&C.v8||"",P=c.Promise,M="process"==f(S),O=function(){},E=i=m.f,$=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(O,O)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,s,a=i?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{a?(i||(2==t._h&&A(t),t._h=1),!0===a?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),s=!0)),n===e.promise?u(b("Promise-chain cycle")):(o=L(n))?o.call(n,c,u):c(n)):u(r)}catch(t){f&&!s&&f.exit(),u(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&k(t)})}},k=function(t){g.call(c,function(){var e,n,r,i=t._v,o=D(t);if(o&&(e=_(function(){M?S.emit("unhandledRejection",i,t):(n=c.onunhandledrejection)?n({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=M||D(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},A=function(t){g.call(c,function(){var e;M?S.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},B=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw b("Promise can't be resolved itself");(e=L(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,u(I,r,1),u(B,r,1))}catch(t){B.call(r,t)}}):(n._v=t,n._s=1,R(n,!1))}catch(t){B.call({_w:n,_d:!1},t)}}};$||(P=function(t){p(this,P,"Promise","_h"),v(t),r.call(this);try{t(u(I,this,1),u(B,this,1))}catch(t){B.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(73)(P.prototype,{then:function(t,e){var n=E(x(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=M?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=u(I,t,1),this.reject=u(B,t,1)},m.f=E=function(t){return t===P||t===s?new o(t):i(t)}),h(h.G+h.W+h.F*!$,{Promise:P}),n(25)(P,"Promise"),n(74)("Promise"),s=n(2).Promise,h(h.S+h.F*!$,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!$),"Promise",{resolve:function(t){return T(a&&this===s?P:this,t)}}),h(h.S+h.F*!($&&n(71)(function(t){P.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,s=1;d(t,!1,function(t){var a=o++,c=!1;n.push(void 0),s++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,i=_(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},77:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},78:function(t,e,n){var r=n(0),i=n(54).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(14)(s);t.exports=function(){var t,e,n,u=function(){var r,i;for(c&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);n=function(){f.then(u)}}else n=function(){i.call(r,u)};else{var h=!0,l=document.createTextNode("");new o(u).observe(l,{characterData:!0}),n=function(){l.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},79:function(t,e,n){var r=n(0),i=r.navigator;t.exports=i&&i.userAgent||""},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},80:function(t,e,n){"use strict";var r=n(10),i=n(2),o=n(0),s=n(53),a=n(56);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},81:function(t,e,n){"use strict";var r=n(10),i=n(39),o=n(55);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},825:function(t,e,n){"use strict";var r=n(61),i=n.n(r);e.a={name:"ActSignature",props:{color:{type:String,default:"#8c7fee"},clearBtnText:{type:String,default:"重置"},saveBtnText:{type:String,default:"保存"},headerText:{type:String,default:"请完成您的亲笔签名"}},data:function(){return{isVisible:!1,showErrtips:!1,lineWidth:3,lineColor:"#000000",bgColor:"#ffffff",isCrop:!1,hasDrew:!1,width:0,height:0,resultImg:"",points:{x:[],y:[]},canvasTxt:null,startX:0,startY:0,isDrawing:!1,sratio:1}},computed:{ratio:function(){return this.height/this.width},stageInfo:function(){return this.$refs.canvas.getBoundingClientRect()},myBg:function(){return this.bgColor?this.bgColor:"rgba(255, 255, 255, 0)"}},watch:{myBg:function(t){this.$refs.canvas.style.background=t},isVisible:function(t){var e=this;t&&setTimeout(function(){var t=e.$refs.canvas;e.height=e.$refs.box.offsetHeight,e.width=e.$refs.box.offsetWidth,t.height=e.height,t.width=e.width,t.style.background=e.myBg,e._resizeHandler()})}},mounted:function(){var t=this;document.onmouseup=function(){t.isDrawing=!1}},methods:{show:function(){this.isVisible=!0},hide:function(){this.reset(),this.isVisible=!1},_resizeHandler:function(){var t=this.$refs.canvas;t.style.width=this.width+"px";var e=parseFloat(window.getComputedStyle(t).width);t.style.height=this.ratio*e+"px",this.canvasTxt=t.getContext("2d"),this.canvasTxt.scale(1*this.sratio,1*this.sratio),this.sratio=e/this.width,this.canvasTxt.scale(1/this.sratio,1/this.sratio)},mouseDown:function(t){t=t||event,t.preventDefault(),this.isDrawing=!0,this.hasDrew=!0;var e={x:t.offsetX,y:t.offsetY};this.drawStart(e)},mouseMove:function(t){if(t=t||event,t.preventDefault(),this.isDrawing){var e={x:t.offsetX,y:t.offsetY};this.drawMove(e)}},mouseUp:function(t){t=t||event,t.preventDefault();var e={x:t.offsetX,y:t.offsetY};this.drawEnd(e),this.isDrawing=!1},touchStart:function(t){if(t=t||event,t.preventDefault(),this.hasDrew=!0,1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawStart(e)}},touchMove:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawMove(e)}},touchEnd:function(t){if(t=t||event,t.preventDefault(),1===t.touches.length){var e={x:t.targetTouches[0].clientX-this.$refs.canvas.getBoundingClientRect().left,y:t.targetTouches[0].clientY-this.$refs.canvas.getBoundingClientRect().top};this.drawEnd(e)}},drawStart:function(t){this.startX=t.x,this.startY=t.y,this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.x.push(t.x),this.points.y.push(t.y)},drawMove:function(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.strokeStyle=this.lineColor,this.canvasTxt.lineWidth=this.lineWidth*this.sratio,this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.startY=t.y,this.startX=t.x,this.points.x.push(t.x),this.points.y.push(t.y)},drawEnd:function(t){this.canvasTxt.beginPath(),this.canvasTxt.moveTo(this.startX,this.startY),this.canvasTxt.lineTo(t.x,t.y),this.canvasTxt.lineCap="round",this.canvasTxt.lineJoin="round",this.canvasTxt.stroke(),this.canvasTxt.closePath(),this.points.x.push(t.x),this.points.y.push(t.y),this.points.x.push(-1),this.points.y.push(-1)},generate:function(){var t=this;return new i.a(function(e,n){var r=t.getMax(t.points.x,t.points.y);if(!t.hasDrew)return void n("Warning: Not Signned!");if(t.points.x.length<40||Math.abs(r.left-r.right)<40||Math.abs(r.top-r.bottom)<40)return void n("Warning: Not Signned!");var i=t.canvasTxt.getImageData(0,0,t.$refs.canvas.width,t.$refs.canvas.height);t.canvasTxt.globalCompositeOperation="destination-over",t.canvasTxt.fillStyle=t.myBg,t.canvasTxt.fillRect(0,0,t.$refs.canvas.width,t.$refs.canvas.height),t.resultImg=t.$refs.canvas.toDataURL();var o=t.resultImg;if(t.canvasTxt.clearRect(0,0,t.$refs.canvas.width,t.$refs.canvas.height),t.canvasTxt.putImageData(i,0,0),t.canvasTxt.globalCompositeOperation="source-over",t.isCrop){var s,a=t.getCropArea(i.data),c=document.createElement("canvas"),u=c.getContext("2d");c.width=a[2]-a[0],c.height=a[3]-a[1];var f=(s=t.canvasTxt).getImageData.apply(s,a);u.globalCompositeOperation="destination-over",u.putImageData(f,0,0),u.fillStyle=t.myBg,u.fillRect(0,0,c.width,c.height),o=c.toDataURL(),c=null}e(o)})},reset:function(){this.canvasTxt.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.$emit("update:bgColor",""),this.$refs.canvas.style.background=this.myBg,this.points={x:[],y:[]},this.hasDrew=!1,this.resultImg=""},getCropArea:function(t){for(var e=this.$refs.canvas.width,n=0,r=this.$refs.canvas.height,i=0,o=0;o<this.$refs.canvas.width;o++)for(var s=0;s<this.$refs.canvas.height;s++){var a=4*(o+this.$refs.canvas.width*s);(t[a]>0||t[a+1]>0||t[a+2]||t[a+3]>0)&&(i=Math.max(s,i),n=Math.max(o,n),r=Math.min(s,r),e=Math.min(o,e))}return e++,n++,r++,i++,[e,r,n,i]},getMax:function(t,e){var n={left:0,right:0,top:0,bottom:0};return"[object Array]"!=={}.toString.call(t)||"[object Array]"!=={}.toString.call(e)?n:(n.left=Math.min.apply(null,t),n.right=Math.max.apply(null,t),n.top=Math.min.apply(null,e),n.bottom=Math.max.apply(null,e),n)},save:function(){var t=this;this.generate().then(function(e){t.$emit("complete",e),t.hide()}).catch(function(e){console.log(e),t.showErrtips=!0,setTimeout(function(){t.showErrtips=!1},2e3)})}}}},9:function(t,e,n){var r=n(4),i=n(36),o=n(35),s=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}}})});