@xysfe/actui 1.5.72 → 1.5.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/BankSelect/index.js +1 -1
- package/es/Contact/index.js +1 -1
- package/es/ContactBook/index.js +1 -1
- package/es/CrmReserveInfoLayer/index.js +1 -1
- package/es/DeviceFingerprint/index.js +1 -1
- package/es/DiseaseSelect/index.js +1 -1
- package/es/DocPop/index.js +1 -1
- package/es/FaceRecognition/index.js +1 -1
- package/es/FigurePic/index.js +1 -1
- package/es/FileList/index.js +1 -1
- package/es/FileUpload/index.js +1 -1
- package/es/GoldAddressLayer/index.js +1 -1
- package/es/GoldAddressSelect/index.js +1 -1
- package/es/GoldAml/index.js +1 -1
- package/es/GoldAuroraSlots/index.js +1 -1
- package/es/GoldBankPayLimit/index.js +1 -1
- package/es/GoldBenefitDemo/index.js +1 -1
- package/es/GoldCareerLayer/index.js +1 -1
- package/es/GoldCompute/index.js +1 -1
- package/es/GoldComputeV2/index.js +1 -1
- package/es/GoldConclusion/index.js +1 -1
- package/es/GoldContact/index.js +1 -1
- package/es/GoldContactBook/index.js +1 -1
- package/es/GoldCost/index.js +1 -1
- package/es/GoldCostLayer/index.js +1 -1
- package/es/GoldCoupon/index.js +1 -1
- package/es/GoldDoorPlate/index.js +1 -1
- package/es/GoldFile/index.js +1 -1
- package/es/GoldFileAssess/index.js +1 -1
- package/es/GoldFinance/index.js +1 -1
- package/es/GoldFinanceChart/index.js +1 -1
- package/es/GoldFinanceChartV2/index.js +1 -1
- package/es/GoldFinanceV2/index.js +1 -1
- package/es/GoldInsureDuty/index.js +1 -1
- package/es/GoldMailPrecheck/index.js +1 -1
- package/es/GoldMailPrecheckV2/index.js +1 -1
- package/es/GoldModule/index.js +1 -1
- package/es/GoldNoticeTerms/index.js +1 -1
- package/es/GoldOcr/index.js +1 -1
- package/es/GoldPayLimitLayer/index.js +1 -1
- package/es/GoldPhoto/index.js +1 -1
- package/es/GoldQrcode/index.js +1 -1
- package/es/GoldReadTerms/index.js +1 -1
- package/es/GoldSelect/index.js +1 -1
- package/es/GoldSignature/index.js +1 -1
- package/es/GoldStepper/index.js +1 -1
- package/es/Jigsaw/index.js +1 -1
- package/es/JigsawVerifyCode/index.js +1 -1
- package/es/Keyframe/index.js +1 -1
- package/es/Login/index.js +1 -1
- package/es/LoginLayer/index.js +1 -1
- package/es/Marketing/index.js +1 -1
- package/es/MobileAuth/index.js +1 -1
- package/es/MobileAuthLayer/index.js +1 -1
- package/es/OcrLayer/index.js +1 -1
- package/es/Pdfjs/index.js +1 -1
- package/es/ProductLayer/index.js +1 -1
- package/es/QRCode/index.js +1 -1
- package/es/QrcodeLayer/index.js +1 -1
- package/es/Recognition/index.js +1 -1
- package/es/ReplayLayer/index.js +1 -1
- package/es/ResourcePreload/index.js +1 -1
- package/es/Signature/index.js +1 -1
- package/es/SlidePoster/index.js +1 -1
- package/es/Tab/index.js +1 -1
- package/es/Validator/index.js +1 -1
- package/es/index.js +1 -1
- package/es/toBase64/index.js +1 -1
- package/lib/GoldAddressLayer/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ResourcePreload=n():t.ResourcePreload=n()}("undefined"!=typeof self?self:this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="../es",n(n.s=1405)}({0:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},1:function(t,n,e){var r=e(27)("wks"),o=e(24),i=e(0).Symbol,c="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=r},10:function(t,n,e){var r=e(0),o=e(2),i=e(17),c=e(5),s=e(8),u=function(t,n,e){var a,f,l,p=t&u.F,h=t&u.G,v=t&u.S,d=t&u.P,y=t&u.B,m=t&u.W,g=h?o:o[n]||(o[n]={}),x=g.prototype,_=h?r:v?r[n]:(r[n]||{}).prototype;h&&(e=n);for(a in e)(f=!p&&_&&void 0!==_[a])&&s(g,a)||(l=f?_[a]:e[a],g[a]=h&&"function"!=typeof _[a]?e[a]:y&&f?i(l,r):m&&_[a]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((g.virtual||(g.virtual={}))[a]=l,t&u.R&&x&&!x[a]&&c(x,a,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},11:function(t,n){t.exports={}},12:function(t,n,e){var r=e(30),o=e(16);t.exports=function(t){return r(o(t))}},13:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},14:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},1405:function(t,n,e){"use strict";function r(t,n){return new u.a(function(e,r){var o=new Image;o.onload=function(){e(o)},o.onerror=o.onabort=function(){r("")},n&&(o.crossOrigin="Anonymous"),o.src=t})}function o(t,n){return new u.a(function(e,r){var o=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=1e4,n&&(i.crossOrigin="Anonymous"),i.onload=function(){e(i)},i.onerror=i.onabort=function(){o.removeChild(i),r("")},i.src=t,o.appendChild(i)})}Object.defineProperty(n,"__esModule",{value:!0});var i=e(145),c=e.n(i),s=e(62),u=e.n(s),a={jpeg:r,jpg:r,png:r,gif:r,js:o};Function.prototype.insertAfter=function(t){var n=this;return function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=n.apply(this,r);t.apply(this,[i])}};var f=function(){function t(n){var e=n.resourceList,r=n.limit,o=n.retry,i=n.crossOrigin,s=void 0!==i&&i;c()(this,t),this.resourceList=e,this.listLen=e.length||0,this.limit=r&&r>0?Math.ceil(r):this.listLen,this.retry=o&&o>0?Math.ceil(o):0,this.promiseList=[],this.Resolve="",this.events={},this.crossOrigin=s,this.retData={errmsg:"",success:0,fail:0,list:[]}}return t.prototype.load=function(t){var n=this;t&&this.reset(t);var e=this.handleErrData(),r=e.errType,o=e.errmsg,i=[];return i=this.resourceList.splice(0,this.limit),new u.a(function(t,e){r?(n.retData.errmsg=o,t(n.retData)):(n.Resolve=t,i.forEach(function(t){n.newEachItem(t)}))})},t.prototype.newEachItem=function(t){var n=this,e={type:"",state:0,downloadObj:"",url:t,resolve:"",_retry:this.retry};e.type=this.getResourceType(t);var r=new u.a(function(t,r){e.resolve=t,n.loadEachItem(e)});this.promiseList.push(r),this.promiseList.length===this.listLen&&u.a.all(this.promiseList).then(function(t){n.Resolve(n.retData)})},t.prototype.loadEachItem=function(t){var n=this,e=t.type.toLowerCase(),r=a[e],o=this.loadSuccess.insertAfter(this.loadFinal),i=this.loadFailed.insertAfter(this.loadFinal);r?r(t.url,this.crossOrigin).then(function(e){o.call(n,t,e)}).catch(function(e){t._retry<=0?i.call(n,t):(t._retry--,n.loadEachItem(t))}):i.call(this,t)},t.prototype.loadSuccess=function(t,n){return t.state=1,t.downloadObj=n,this.retData.success++,t},t.prototype.loadFailed=function(t){return t.state=0,t.downloadObj=null,this.retData.fail++,t},t.prototype.loadFinal=function(t){this.emit("loaded",this.retData.fail+this.retData.success,this.listLen);var n=t.resolve;if(delete t.resolve,delete t._retry,this.retData.list.push(t),this.resourceList.length>0){var e=this.resourceList.shift();this.newEachItem(e)}n(t)},t.prototype.handleErrData=function(){var t=0,n="";return"Array"!==Object.prototype.toString.call(this.resourceList).slice(8,-1)&&(t=1,n="resourceList requires an array!"),this.listLen||(t=2,n="resourceList has no item!"),{errType:t,errmsg:n}},t.prototype.on=function(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)},t.prototype.emit=function(t){for(var n=this,e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];this.events[t]&&this.events[t].forEach(function(t,e){t&&t.call.apply(t,[n].concat(r))})},t.prototype.off=function(t){delete this.events[t]},t.prototype.getResourceType=function(t){var n=t.match(/^data:image\/(\w+);/)||t.match(/\.(\w+)($|\?)/);return n?n[1]:""},t.prototype.reset=function(t){this.resourceList=t,this.listLen=t.length||0,this.promiseList=[],this.Resolve="",this.retData={errmsg:"",success:0,fail:0,list:[]}},t}();n.default=f},145:function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},15:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},16:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},17:function(t,n,e){var r=e(20);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},18:function(t,n){t.exports=!0},19:function(t,n,e){var r=e(27)("keys"),o=e(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},2:function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},20:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},22:function(t,n,e){var r=e(6),o=e(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},23:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},24:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},25:function(t,n,e){var r=e(9).f,o=e(8),i=e(1)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},26:function(t,n,e){var r=e(37),o=e(28);t.exports=Object.keys||function(t){return r(t,o)}},27:function(t,n,e){var r=e(2),o=e(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},28:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,n,e){var r=e(16);t.exports=function(t){return Object(r(t))}},3:function(t,n,e){t.exports=!e(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,n,e){var r=e(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},31:function(t,n,e){var r=e(15),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},33:function(t,n,e){"use strict";var r=e(18),o=e(10),i=e(46),c=e(5),s=e(11),u=e(49),a=e(25),f=e(51),l=e(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,v,d,y,m){u(e,n,v);var g,x,_,w=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},b=n+" Iterator",j="values"==d,L=!1,O=t.prototype,P=O[l]||O["@@iterator"]||d&&O[d],S=P||w(d),T=d?j?w("entries"):S:void 0,E="Array"==n?O.entries||P:P;if(E&&(_=f(E.call(new t)))!==Object.prototype&&_.next&&(a(_,b,!0),r||"function"==typeof _[l]||c(_,l,h)),j&&P&&"values"!==P.name&&(L=!0,S=function(){return P.call(this)}),r&&!m||!p&&!L&&O[l]||c(O,l,S),s[n]=S,s[b]=h,d)if(g={values:j?S:w("values"),keys:y?S:w("keys"),entries:T},m)for(x in g)x in O||i(O,x,g[x]);else o(o.P+o.F*(p||L),n,g);return g}},34:function(t,n,e){var r=e(6);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},36:function(t,n,e){t.exports=!e(3)&&!e(13)(function(){return 7!=Object.defineProperty(e(22)("div"),"a",{get:function(){return 7}}).a})},37:function(t,n,e){var r=e(8),o=e(12),i=e(40)(!1),c=e(19)("IE_PROTO");t.exports=function(t,n){var e,s=o(t),u=0,a=[];for(e in s)e!=c&&r(s,e)&&a.push(e);for(;n.length>u;)r(s,e=n[u++])&&(~i(a,e)||a.push(e));return a}},38:function(t,n,e){var r=e(0).document;t.exports=r&&r.documentElement},39:function(t,n,e){"use strict";function r(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=o(n),this.reject=o(e)}var o=e(20);t.exports.f=function(t){return new r(t)}},4:function(t,n,e){var r=e(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},40:function(t,n,e){var r=e(12),o=e(31),i=e(41);t.exports=function(t){return function(n,e,c){var s,u=r(n),a=o(u.length),f=i(c,a);if(t&&e!=e){for(;a>f;)if((s=u[f++])!=s)return!0}else for(;a>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}}},41:function(t,n,e){var r=e(15),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},42:function(t,n,e){var r=e(14),o=e(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=c(n=Object(t),o))?e:i?r(n):"Object"==(s=r(n))&&"function"==typeof n.callee?"Arguments":s}},43:function(t,n,e){"use strict";var r=e(48)(!0);e(33)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},45:function(t,n,e){var r=e(4),o=e(50),i=e(28),c=e(19)("IE_PROTO"),s=function(){},u=function(){var t,n=e(22)("iframe"),r=i.length;for(n.style.display="none",e(38).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,n){var e;return null!==t?(s.prototype=r(t),e=new s,s.prototype=null,e[c]=t):e=u(),void 0===n?e:o(e,n)}},46:function(t,n,e){t.exports=e(5)},47:function(t,n,e){e(59);for(var r=e(0),o=e(5),i=e(11),c=e(1)("toStringTag"),s="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(","),u=0;u<s.length;u++){var a=s[u],f=r[a],l=f&&f.prototype;l&&!l[c]&&o(l,c,a),i[a]=i.Array}},48:function(t,n,e){var r=e(15),o=e(16);t.exports=function(t){return function(n,e){var i,c,s=String(o(n)),u=r(e),a=s.length;return u<0||u>=a?t?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===a||(c=s.charCodeAt(u+1))<56320||c>57343?t?s.charAt(u):i:t?s.slice(u,u+2):c-56320+(i-55296<<10)+65536)}}},49:function(t,n,e){"use strict";var r=e(45),o=e(23),i=e(25),c={};e(5)(c,e(1)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(c,{next:o(1,e)}),i(t,n+" Iterator")}},5:function(t,n,e){var r=e(9),o=e(23);t.exports=e(3)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},50:function(t,n,e){var r=e(9),o=e(4),i=e(26);t.exports=e(3)?Object.defineProperties:function(t,n){o(t);for(var e,c=i(n),s=c.length,u=0;s>u;)r.f(t,e=c[u++],n[e]);return t}},51:function(t,n,e){var r=e(8),o=e(29),i=e(19)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},52:function(t,n,e){var r=e(42),o=e(1)("iterator"),i=e(11);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},54:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},55:function(t,n,e){var r=e(4),o=e(20),i=e(1)("species");t.exports=function(t,n){var e,c=r(t).constructor;return void 0===c||void 0==(e=r(c)[i])?n:o(e)}},56:function(t,n,e){var r,o,i,c=e(17),s=e(77),u=e(38),a=e(22),f=e(0),l=f.process,p=f.setImmediate,h=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var n=m[t];delete m[t],n()}},x=function(t){g.call(t.data)};p&&h||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),n)},r(y),y},h=function(t){delete m[t]},"process"==e(14)(l)?r=function(t){l.nextTick(c(g,t,1))}:d&&d.now?r=function(t){d.now(c(g,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r="onreadystatechange"in a("script")?function(t){u.appendChild(a("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:p,clear:h}},57:function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},58:function(t,n,e){var r=e(4),o=e(6),i=e(39);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t);return(0,e.resolve)(n),e.promise}},59:function(t,n,e){"use strict";var r=e(60),o=e(54),i=e(11),c=e(12);t.exports=e(33)(Array,"Array",function(t,n){this._t=c(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},6:function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,n){t.exports=function(){}},62:function(t,n,e){t.exports={default:e(75),__esModule:!0}},63:function(t,n){},67:function(t,n,e){var r=e(4);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},68:function(t,n,e){var r=e(11),o=e(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},69:function(t,n,e){var r=e(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:e=!0}},i[r]=function(){return c},t(i)}catch(t){}return e}},71:function(t,n,e){var r=e(17),o=e(67),i=e(68),c=e(4),s=e(31),u=e(52),a={},f={},n=t.exports=function(t,n,e,l,p){var h,v,d,y,m=p?function(){return t}:u(t),g=r(e,l,n?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=s(t.length);h>x;x++)if((y=n?g(c(v=t[x])[0],v[1]):g(t[x]))===a||y===f)return y}else for(d=m.call(t);!(v=d.next()).done;)if((y=o(d,g,v.value,n))===a||y===f)return y};n.BREAK=a,n.RETURN=f},72:function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},73:function(t,n,e){var r=e(5);t.exports=function(t,n,e){for(var o in n)e&&t[o]?t[o]=n[o]:r(t,o,n[o]);return t}},74:function(t,n,e){"use strict";var r=e(0),o=e(2),i=e(9),c=e(3),s=e(1)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:r[t];c&&n&&!n[s]&&i.f(n,s,{configurable:!0,get:function(){return this}})}},75:function(t,n,e){e(63),e(43),e(47),e(76),e(80),e(81),t.exports=e(2).Promise},76:function(t,n,e){"use strict";var r,o,i,c,s=e(18),u=e(0),a=e(17),f=e(42),l=e(10),p=e(6),h=e(20),v=e(72),d=e(71),y=e(55),m=e(56).set,g=e(78)(),x=e(39),_=e(57),w=e(79),b=e(58),j=u.TypeError,L=u.process,O=L&&L.versions,P=O&&O.v8||"",S=u.Promise,T="process"==f(L),E=function(){},M=o=x.f,A=!!function(){try{var t=S.resolve(1),n=(t.constructor={})[e(1)("species")]=function(t){t(E,E)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof n&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},k=function(t,n){if(!t._n){t._n=!0;var e=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;e.length>i;)!function(n){var e,i,c,s=o?n.ok:n.fail,u=n.resolve,a=n.reject,f=n.domain;try{s?(o||(2==t._h&&F(t),t._h=1),!0===s?e=r:(f&&f.enter(),e=s(r),f&&(f.exit(),c=!0)),e===n.promise?a(j("Promise-chain cycle")):(i=R(e))?i.call(e,u,a):u(e)):a(r)}catch(t){f&&!c&&f.exit(),a(t)}}(e[i++]);t._c=[],t._n=!1,n&&!t._h&&C(t)})}},C=function(t){m.call(u,function(){var n,e,r,o=t._v,i=D(t);if(i&&(n=_(function(){T?L.emit("unhandledRejection",o,t):(e=u.onunhandledrejection)?e({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=T||D(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){m.call(u,function(){var n;T?L.emit("rejectionHandled",t):(n=u.onrejectionhandled)&&n({promise:t,reason:t._v})})},I=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),k(n,!0))},N=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw j("Promise can't be resolved itself");(n=R(t))?g(function(){var r={_w:e,_d:!1};try{n.call(t,a(N,r,1),a(I,r,1))}catch(t){I.call(r,t)}}):(e._v=t,e._s=1,k(e,!1))}catch(t){I.call({_w:e,_d:!1},t)}}};A||(S=function(t){v(this,S,"Promise","_h"),h(t),r.call(this);try{t(a(N,this,1),a(I,this,1))}catch(t){I.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=e(73)(S.prototype,{then:function(t,n){var e=M(y(this,S));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=T?L.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&k(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=a(N,t,1),this.reject=a(I,t,1)},x.f=M=function(t){return t===S||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!A,{Promise:S}),e(25)(S,"Promise"),e(74)("Promise"),c=e(2).Promise,l(l.S+l.F*!A,"Promise",{reject:function(t){var n=M(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(s||!A),"Promise",{resolve:function(t){return b(s&&this===c?S:this,t)}}),l(l.S+l.F*!(A&&e(69)(function(t){S.all(t).catch(E)})),"Promise",{all:function(t){var n=this,e=M(n),r=e.resolve,o=e.reject,i=_(function(){var e=[],i=0,c=1;d(t,!1,function(t){var s=i++,u=!1;e.push(void 0),c++,n.resolve(t).then(function(t){u||(u=!0,e[s]=t,--c||r(e))},o)}),--c||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=M(n),r=e.reject,o=_(function(){d(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}})},77:function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},78:function(t,n,e){var r=e(0),o=e(56).set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,s=r.Promise,u="process"==e(14)(c);t.exports=function(){var t,n,e,a=function(){var r,o;for(u&&(r=c.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(u)e=function(){c.nextTick(a)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);e=function(){f.then(a)}}else e=function(){o.call(r,a)};else{var l=!0,p=document.createTextNode("");new i(a).observe(p,{characterData:!0}),e=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},79:function(t,n,e){var r=e(0),o=r.navigator;t.exports=o&&o.userAgent||""},8:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},80:function(t,n,e){"use strict";var r=e(10),o=e(2),i=e(0),c=e(55),s=e(58);r(r.P+r.R,"Promise",{finally:function(t){var n=c(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return s(n,t()).then(function(){return e})}:t,e?function(e){return s(n,t()).then(function(){throw e})}:t)}})},81:function(t,n,e){"use strict";var r=e(10),o=e(39),i=e(57);r(r.S,"Promise",{try:function(t){var n=o.f(this),e=i(t);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},9:function(t,n,e){var r=e(4),o=e(36),i=e(34),c=Object.defineProperty;n.f=e(3)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return c(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}}})});
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ResourcePreload=n():t.ResourcePreload=n()}("undefined"!=typeof self?self:this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="../es",n(n.s=1405)}({0:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},1:function(t,n,e){var r=e(27)("wks"),o=e(24),i=e(0).Symbol,c="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=r},10:function(t,n,e){var r=e(0),o=e(2),i=e(17),c=e(5),s=e(8),u=function(t,n,e){var a,f,l,p=t&u.F,h=t&u.G,v=t&u.S,d=t&u.P,y=t&u.B,m=t&u.W,g=h?o:o[n]||(o[n]={}),x=g.prototype,_=h?r:v?r[n]:(r[n]||{}).prototype;h&&(e=n);for(a in e)(f=!p&&_&&void 0!==_[a])&&s(g,a)||(l=f?_[a]:e[a],g[a]=h&&"function"!=typeof _[a]?e[a]:y&&f?i(l,r):m&&_[a]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((g.virtual||(g.virtual={}))[a]=l,t&u.R&&x&&!x[a]&&c(x,a,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},11:function(t,n){t.exports={}},12:function(t,n,e){var r=e(30),o=e(16);t.exports=function(t){return r(o(t))}},13:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},14:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},1405:function(t,n,e){"use strict";function r(t,n){return new u.a(function(e,r){var o=new Image;o.onload=function(){e(o)},o.onerror=o.onabort=function(){r("")},n&&(o.crossOrigin="Anonymous"),o.src=t})}function o(t,n){return new u.a(function(e,r){var o=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=1e4,n&&(i.crossOrigin="Anonymous"),i.onload=function(){e(i)},i.onerror=i.onabort=function(){o.removeChild(i),r("")},i.src=t,o.appendChild(i)})}Object.defineProperty(n,"__esModule",{value:!0});var i=e(145),c=e.n(i),s=e(62),u=e.n(s),a={jpeg:r,jpg:r,png:r,gif:r,js:o};Function.prototype.insertAfter=function(t){var n=this;return function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=n.apply(this,r);t.apply(this,[i])}};var f=function(){function t(n){var e=n.resourceList,r=n.limit,o=n.retry,i=n.crossOrigin,s=void 0!==i&&i;c()(this,t),this.resourceList=e,this.listLen=e.length||0,this.limit=r&&r>0?Math.ceil(r):this.listLen,this.retry=o&&o>0?Math.ceil(o):0,this.promiseList=[],this.Resolve="",this.events={},this.crossOrigin=s,this.retData={errmsg:"",success:0,fail:0,list:[]}}return t.prototype.load=function(t){var n=this;t&&this.reset(t);var e=this.handleErrData(),r=e.errType,o=e.errmsg,i=[];return i=this.resourceList.splice(0,this.limit),new u.a(function(t,e){r?(n.retData.errmsg=o,t(n.retData)):(n.Resolve=t,i.forEach(function(t){n.newEachItem(t)}))})},t.prototype.newEachItem=function(t){var n=this,e={type:"",state:0,downloadObj:"",url:t,resolve:"",_retry:this.retry};e.type=this.getResourceType(t);var r=new u.a(function(t,r){e.resolve=t,n.loadEachItem(e)});this.promiseList.push(r),this.promiseList.length===this.listLen&&u.a.all(this.promiseList).then(function(t){n.Resolve(n.retData)})},t.prototype.loadEachItem=function(t){var n=this,e=t.type.toLowerCase(),r=a[e],o=this.loadSuccess.insertAfter(this.loadFinal),i=this.loadFailed.insertAfter(this.loadFinal);r?r(t.url,this.crossOrigin).then(function(e){o.call(n,t,e)}).catch(function(e){t._retry<=0?i.call(n,t):(t._retry--,n.loadEachItem(t))}):i.call(this,t)},t.prototype.loadSuccess=function(t,n){return t.state=1,t.downloadObj=n,this.retData.success++,t},t.prototype.loadFailed=function(t){return t.state=0,t.downloadObj=null,this.retData.fail++,t},t.prototype.loadFinal=function(t){this.emit("loaded",this.retData.fail+this.retData.success,this.listLen);var n=t.resolve;if(delete t.resolve,delete t._retry,this.retData.list.push(t),this.resourceList.length>0){var e=this.resourceList.shift();this.newEachItem(e)}n(t)},t.prototype.handleErrData=function(){var t=0,n="";return"Array"!==Object.prototype.toString.call(this.resourceList).slice(8,-1)&&(t=1,n="resourceList requires an array!"),this.listLen||(t=2,n="resourceList has no item!"),{errType:t,errmsg:n}},t.prototype.on=function(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)},t.prototype.emit=function(t){for(var n=this,e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];this.events[t]&&this.events[t].forEach(function(t,e){t&&t.call.apply(t,[n].concat(r))})},t.prototype.off=function(t){delete this.events[t]},t.prototype.getResourceType=function(t){var n=t.match(/^data:image\/(\w+);/)||t.match(/\.(\w+)($|\?)/);return n?n[1]:""},t.prototype.reset=function(t){this.resourceList=t,this.listLen=t.length||0,this.promiseList=[],this.Resolve="",this.retData={errmsg:"",success:0,fail:0,list:[]}},t}();n.default=f},145:function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},15:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},16:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},17:function(t,n,e){var r=e(20);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},18:function(t,n){t.exports=!0},19:function(t,n,e){var r=e(27)("keys"),o=e(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},2:function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},20:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},22:function(t,n,e){var r=e(6),o=e(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},23:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},24:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},25:function(t,n,e){var r=e(9).f,o=e(8),i=e(1)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},26:function(t,n,e){var r=e(37),o=e(28);t.exports=Object.keys||function(t){return r(t,o)}},27:function(t,n,e){var r=e(2),o=e(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},28:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,n,e){var r=e(16);t.exports=function(t){return Object(r(t))}},3:function(t,n,e){t.exports=!e(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,n,e){var r=e(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},31:function(t,n,e){var r=e(15),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},33:function(t,n,e){"use strict";var r=e(18),o=e(10),i=e(46),c=e(5),s=e(11),u=e(50),a=e(25),f=e(52),l=e(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,v,d,y,m){u(e,n,v);var g,x,_,w=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},b=n+" Iterator",j="values"==d,L=!1,O=t.prototype,P=O[l]||O["@@iterator"]||d&&O[d],S=P||w(d),T=d?j?w("entries"):S:void 0,E="Array"==n?O.entries||P:P;if(E&&(_=f(E.call(new t)))!==Object.prototype&&_.next&&(a(_,b,!0),r||"function"==typeof _[l]||c(_,l,h)),j&&P&&"values"!==P.name&&(L=!0,S=function(){return P.call(this)}),r&&!m||!p&&!L&&O[l]||c(O,l,S),s[n]=S,s[b]=h,d)if(g={values:j?S:w("values"),keys:y?S:w("keys"),entries:T},m)for(x in g)x in O||i(O,x,g[x]);else o(o.P+o.F*(p||L),n,g);return g}},34:function(t,n,e){var r=e(6);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},36:function(t,n,e){t.exports=!e(3)&&!e(13)(function(){return 7!=Object.defineProperty(e(22)("div"),"a",{get:function(){return 7}}).a})},37:function(t,n,e){var r=e(8),o=e(12),i=e(40)(!1),c=e(19)("IE_PROTO");t.exports=function(t,n){var e,s=o(t),u=0,a=[];for(e in s)e!=c&&r(s,e)&&a.push(e);for(;n.length>u;)r(s,e=n[u++])&&(~i(a,e)||a.push(e));return a}},38:function(t,n,e){var r=e(0).document;t.exports=r&&r.documentElement},39:function(t,n,e){"use strict";function r(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=o(n),this.reject=o(e)}var o=e(20);t.exports.f=function(t){return new r(t)}},4:function(t,n,e){var r=e(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},40:function(t,n,e){var r=e(12),o=e(31),i=e(41);t.exports=function(t){return function(n,e,c){var s,u=r(n),a=o(u.length),f=i(c,a);if(t&&e!=e){for(;a>f;)if((s=u[f++])!=s)return!0}else for(;a>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}}},41:function(t,n,e){var r=e(15),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},42:function(t,n,e){var r=e(14),o=e(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=c(n=Object(t),o))?e:i?r(n):"Object"==(s=r(n))&&"function"==typeof n.callee?"Arguments":s}},44:function(t,n,e){"use strict";var r=e(49)(!0);e(33)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},45:function(t,n,e){var r=e(4),o=e(51),i=e(28),c=e(19)("IE_PROTO"),s=function(){},u=function(){var t,n=e(22)("iframe"),r=i.length;for(n.style.display="none",e(38).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,n){var e;return null!==t?(s.prototype=r(t),e=new s,s.prototype=null,e[c]=t):e=u(),void 0===n?e:o(e,n)}},46:function(t,n,e){t.exports=e(5)},47:function(t,n,e){e(59);for(var r=e(0),o=e(5),i=e(11),c=e(1)("toStringTag"),s="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(","),u=0;u<s.length;u++){var a=s[u],f=r[a],l=f&&f.prototype;l&&!l[c]&&o(l,c,a),i[a]=i.Array}},49:function(t,n,e){var r=e(15),o=e(16);t.exports=function(t){return function(n,e){var i,c,s=String(o(n)),u=r(e),a=s.length;return u<0||u>=a?t?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===a||(c=s.charCodeAt(u+1))<56320||c>57343?t?s.charAt(u):i:t?s.slice(u,u+2):c-56320+(i-55296<<10)+65536)}}},5:function(t,n,e){var r=e(9),o=e(23);t.exports=e(3)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},50:function(t,n,e){"use strict";var r=e(45),o=e(23),i=e(25),c={};e(5)(c,e(1)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(c,{next:o(1,e)}),i(t,n+" Iterator")}},51:function(t,n,e){var r=e(9),o=e(4),i=e(26);t.exports=e(3)?Object.defineProperties:function(t,n){o(t);for(var e,c=i(n),s=c.length,u=0;s>u;)r.f(t,e=c[u++],n[e]);return t}},52:function(t,n,e){var r=e(8),o=e(29),i=e(19)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},53:function(t,n,e){var r=e(42),o=e(1)("iterator"),i=e(11);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},54:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},55:function(t,n,e){var r=e(4),o=e(20),i=e(1)("species");t.exports=function(t,n){var e,c=r(t).constructor;return void 0===c||void 0==(e=r(c)[i])?n:o(e)}},56:function(t,n,e){var r,o,i,c=e(17),s=e(77),u=e(38),a=e(22),f=e(0),l=f.process,p=f.setImmediate,h=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var n=m[t];delete m[t],n()}},x=function(t){g.call(t.data)};p&&h||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),n)},r(y),y},h=function(t){delete m[t]},"process"==e(14)(l)?r=function(t){l.nextTick(c(g,t,1))}:d&&d.now?r=function(t){d.now(c(g,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r="onreadystatechange"in a("script")?function(t){u.appendChild(a("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:p,clear:h}},57:function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},58:function(t,n,e){var r=e(4),o=e(6),i=e(39);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t);return(0,e.resolve)(n),e.promise}},59:function(t,n,e){"use strict";var r=e(60),o=e(54),i=e(11),c=e(12);t.exports=e(33)(Array,"Array",function(t,n){this._t=c(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},6:function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,n){t.exports=function(){}},62:function(t,n,e){t.exports={default:e(75),__esModule:!0}},63:function(t,n){},67:function(t,n,e){var r=e(4);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},68:function(t,n,e){var r=e(11),o=e(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},69:function(t,n,e){var r=e(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:e=!0}},i[r]=function(){return c},t(i)}catch(t){}return e}},71:function(t,n,e){var r=e(17),o=e(67),i=e(68),c=e(4),s=e(31),u=e(53),a={},f={},n=t.exports=function(t,n,e,l,p){var h,v,d,y,m=p?function(){return t}:u(t),g=r(e,l,n?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=s(t.length);h>x;x++)if((y=n?g(c(v=t[x])[0],v[1]):g(t[x]))===a||y===f)return y}else for(d=m.call(t);!(v=d.next()).done;)if((y=o(d,g,v.value,n))===a||y===f)return y};n.BREAK=a,n.RETURN=f},72:function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},73:function(t,n,e){var r=e(5);t.exports=function(t,n,e){for(var o in n)e&&t[o]?t[o]=n[o]:r(t,o,n[o]);return t}},74:function(t,n,e){"use strict";var r=e(0),o=e(2),i=e(9),c=e(3),s=e(1)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:r[t];c&&n&&!n[s]&&i.f(n,s,{configurable:!0,get:function(){return this}})}},75:function(t,n,e){e(63),e(44),e(47),e(76),e(80),e(81),t.exports=e(2).Promise},76:function(t,n,e){"use strict";var r,o,i,c,s=e(18),u=e(0),a=e(17),f=e(42),l=e(10),p=e(6),h=e(20),v=e(72),d=e(71),y=e(55),m=e(56).set,g=e(78)(),x=e(39),_=e(57),w=e(79),b=e(58),j=u.TypeError,L=u.process,O=L&&L.versions,P=O&&O.v8||"",S=u.Promise,T="process"==f(L),E=function(){},M=o=x.f,A=!!function(){try{var t=S.resolve(1),n=(t.constructor={})[e(1)("species")]=function(t){t(E,E)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof n&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},k=function(t,n){if(!t._n){t._n=!0;var e=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;e.length>i;)!function(n){var e,i,c,s=o?n.ok:n.fail,u=n.resolve,a=n.reject,f=n.domain;try{s?(o||(2==t._h&&F(t),t._h=1),!0===s?e=r:(f&&f.enter(),e=s(r),f&&(f.exit(),c=!0)),e===n.promise?a(j("Promise-chain cycle")):(i=R(e))?i.call(e,u,a):u(e)):a(r)}catch(t){f&&!c&&f.exit(),a(t)}}(e[i++]);t._c=[],t._n=!1,n&&!t._h&&C(t)})}},C=function(t){m.call(u,function(){var n,e,r,o=t._v,i=D(t);if(i&&(n=_(function(){T?L.emit("unhandledRejection",o,t):(e=u.onunhandledrejection)?e({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=T||D(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){m.call(u,function(){var n;T?L.emit("rejectionHandled",t):(n=u.onrejectionhandled)&&n({promise:t,reason:t._v})})},I=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),k(n,!0))},N=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw j("Promise can't be resolved itself");(n=R(t))?g(function(){var r={_w:e,_d:!1};try{n.call(t,a(N,r,1),a(I,r,1))}catch(t){I.call(r,t)}}):(e._v=t,e._s=1,k(e,!1))}catch(t){I.call({_w:e,_d:!1},t)}}};A||(S=function(t){v(this,S,"Promise","_h"),h(t),r.call(this);try{t(a(N,this,1),a(I,this,1))}catch(t){I.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=e(73)(S.prototype,{then:function(t,n){var e=M(y(this,S));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=T?L.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&k(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=a(N,t,1),this.reject=a(I,t,1)},x.f=M=function(t){return t===S||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!A,{Promise:S}),e(25)(S,"Promise"),e(74)("Promise"),c=e(2).Promise,l(l.S+l.F*!A,"Promise",{reject:function(t){var n=M(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(s||!A),"Promise",{resolve:function(t){return b(s&&this===c?S:this,t)}}),l(l.S+l.F*!(A&&e(69)(function(t){S.all(t).catch(E)})),"Promise",{all:function(t){var n=this,e=M(n),r=e.resolve,o=e.reject,i=_(function(){var e=[],i=0,c=1;d(t,!1,function(t){var s=i++,u=!1;e.push(void 0),c++,n.resolve(t).then(function(t){u||(u=!0,e[s]=t,--c||r(e))},o)}),--c||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=M(n),r=e.reject,o=_(function(){d(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}})},77:function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},78:function(t,n,e){var r=e(0),o=e(56).set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,s=r.Promise,u="process"==e(14)(c);t.exports=function(){var t,n,e,a=function(){var r,o;for(u&&(r=c.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(u)e=function(){c.nextTick(a)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);e=function(){f.then(a)}}else e=function(){o.call(r,a)};else{var l=!0,p=document.createTextNode("");new i(a).observe(p,{characterData:!0}),e=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},79:function(t,n,e){var r=e(0),o=r.navigator;t.exports=o&&o.userAgent||""},8:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},80:function(t,n,e){"use strict";var r=e(10),o=e(2),i=e(0),c=e(55),s=e(58);r(r.P+r.R,"Promise",{finally:function(t){var n=c(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return s(n,t()).then(function(){return e})}:t,e?function(e){return s(n,t()).then(function(){throw e})}:t)}})},81:function(t,n,e){"use strict";var r=e(10),o=e(39),i=e(57);r(r.S,"Promise",{try:function(t){var n=o.f(this),e=i(t);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},9:function(t,n,e){var r=e(4),o=e(36),i=e(34),c=Object.defineProperty;n.f=e(3)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return c(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}}})});
|
package/es/Signature/index.js
CHANGED
|
@@ -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=1418)}({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}}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},1418:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21),i=n.n(r),o=n(1419);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createSignature=i()(o.a,t)},e.default=o.a},1419:function(t,e,n){"use strict";function r(t){a||n(1420)}var i=n(828),o=n(1421),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},1420:function(t,e){},1421: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){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(20);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,n){var r=n(27)("keys"),i=n(24);t.exports=function(t){return r[t]||(r[t]=i(t))}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return 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:"© 2020 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(46),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}},34: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(40)(!1),s=n(19)("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(20);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(12),i=n(31),o=n(41);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}}},41: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)}},42: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}},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})})},45:function(t,e,n){var r=n(4),i=n(50),o=n(28),s=n(19)("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){t.exports=n(5)},47:function(t,e,n){n(59);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}},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(45),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(19)("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(42),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)]}},54:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},55:function(t,e,n){var r=n(4),i=n(20),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(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}},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(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}},59:function(t,e,n){"use strict";var r=n(60),i=n(54),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")},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e){t.exports=function(){}},62:function(t,e,n){t.exports={default:n(75),__esModule:!0}},63:function(t,e){},67: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}}},68: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)}},69: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}},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},71:function(t,e,n){var r=n(17),i=n(67),o=n(68),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},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(63),n(43),n(47),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(42),h=n(10),l=n(6),v=n(20),p=n(72),d=n(71),x=n(55),g=n(56).set,y=n(78)(),m=n(39),_=n(57),w=n(79),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(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(69)(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(56).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(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)}})},81:function(t,e,n){"use strict";var r=n(10),i=n(39),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}})},828:function(t,e,n){"use strict";var r=n(62),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(34),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}}})});
|
|
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=1418)}({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}}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},1418:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21),i=n.n(r),o=n(1419);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createSignature=i()(o.a,t)},e.default=o.a},1419:function(t,e,n){"use strict";function r(t){a||n(1420)}var i=n(828),o=n(1421),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},1420:function(t,e){},1421: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){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(20);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,n){var r=n(27)("keys"),i=n(24);t.exports=function(t){return r[t]||(r[t]=i(t))}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return 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:"© 2020 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(46),s=n(5),a=n(11),c=n(50),u=n(25),f=n(52),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}},34: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(40)(!1),s=n(19)("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(20);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(12),i=n(31),o=n(41);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}}},41: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)}},42: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}},44:function(t,e,n){"use strict";var r=n(49)(!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})})},45:function(t,e,n){var r=n(4),i=n(51),o=n(28),s=n(19)("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){t.exports=n(5)},47:function(t,e,n){n(59);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}},49: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)}}},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){"use strict";var r=n(45),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")}},51: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}},52:function(t,e,n){var r=n(8),i=n(29),o=n(19)("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}},53:function(t,e,n){var r=n(42),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)]}},54:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},55:function(t,e,n){var r=n(4),i=n(20),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(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}},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(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}},59:function(t,e,n){"use strict";var r=n(60),i=n(54),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")},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e){t.exports=function(){}},62:function(t,e,n){t.exports={default:n(75),__esModule:!0}},63:function(t,e){},67: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}}},68: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)}},69: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}},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},71:function(t,e,n){var r=n(17),i=n(67),o=n(68),s=n(4),a=n(31),c=n(53),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},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(63),n(44),n(47),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(42),h=n(10),l=n(6),v=n(20),p=n(72),d=n(71),x=n(55),g=n(56).set,y=n(78)(),m=n(39),_=n(57),w=n(79),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(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(69)(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(56).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(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)}})},81:function(t,e,n){"use strict";var r=n(10),i=n(39),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}})},828:function(t,e,n){"use strict";var r=n(62),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(34),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}}})});
|