@xatlas/rainbow-core 2.7.9 → 2.8.0

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.
@@ -14,5 +14,5 @@ t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?o-1:0,d=
14
14
  * @author Feross Aboukhadijeh <http://feross.org>
15
15
  * @license MIT
16
16
  */
17
- var r=n("1fb5"),o=n("9152"),i=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?v(e,t,n,r):"string"===typeof t?h(e,t,n):y(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,n,r){return f(t),t<=0?l(e,t):void 0!==n?"string"===typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}function p(e,t){if(f(t),e=l(e,t<0?0:0|g(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(t,n);e=l(e,r);var o=e.write(t,n);return o!==r&&(e=e.slice(0,o)),e}function m(e,t){var n=t.length<0?0:0|g(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function v(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=m(e,t),e}function y(e,t){if(c.isBuffer(t)){var n=0|g(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):m(e,t);if("Buffer"===t.type&&i(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(r)return Q(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function S(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function C(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function E(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function O(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function T(e,t,n,r){return ee(X(t),e,n,r)}function A(e,t,n,r){return T(e,t,n,r)}function x(e,t,n,r){return ee(J(t),e,n,r)}function N(e,t,n,r){return ee(Z(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function j(e,t,n){n=Math.min(e.length,n);var r=[],o=t;while(o<n){var i,a,s,l,c=e[o],u=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:i=e[o+1],128===(192&i)&&(l=(31&c)<<6|63&i,l>127&&(u=l));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return R(r)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return d(null,e,t,n)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?j(this,0,e):_.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),l=this.slice(r,o),u=e.slice(t,n),f=0;f<s;++f)if(l[f]!==u[f]){i=l[f],a=u[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function R(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function B(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=W(e[i]);return o}function M(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function U(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function V(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function q(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function K(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,i){return i||K(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,i){return i||K(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var r=this[e+--t],o=1;while(t>0&&(o*=256))r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var r=t,o=1,i=this[e+--r];while(r>0&&(o*=256))i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a<n&&(i*=256))this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var i=n-1,a=1;this[t+i]=255&e;while(--i>=0&&(a*=256))this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;this[t]=255&e;while(++i<n&&(a*=256))e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:Q(new c(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function z(e){if(e=Y(e).replace(G,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function Y(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function Q(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,r,o,i=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r)}return i}function J(e){return r.toByteArray(z(e))}function ee(e,t,n,r){for(var o=0;o<r;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,n("c8ba"))},b71b:function(e,t,n){var r=n("ebeb");n("bb01"),e.exports=r.log=r.log||{},r.log.levels=["none","error","warning","info","debug","verbose","max"];var o={},i=[],a=null;r.log.LEVEL_LOCKED=2,r.log.NO_LEVEL_CHECK=4,r.log.INTERPOLATE=8;for(var s=0;s<r.log.levels.length;++s){var l=r.log.levels[s];o[l]={index:s,name:l.toUpperCase()}}r.log.logMessage=function(e){for(var t=o[e.level].index,n=0;n<i.length;++n){var a=i[n];if(a.flags&r.log.NO_LEVEL_CHECK)a.f(e);else{var s=o[a.level].index;t<=s&&a.f(a,e)}}},r.log.prepareStandard=function(e){"standard"in e||(e.standard=o[e.level].name+" ["+e.category+"] "+e.message)},r.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]||!1),e.full=r.util.format.apply(this,t)}},r.log.prepareStandardFull=function(e){"standardFull"in e||(r.log.prepareStandard(e),e.standardFull=e.standard)};var c=["error","warning","info","debug","verbose"];for(s=0;s<c.length;++s)(function(e){r.log[e]=function(t,n){var o=Array.prototype.slice.call(arguments).slice(2),i={timestamp:new Date,level:e,category:t,message:n,arguments:o};r.log.logMessage(i)}})(c[s]);if(r.log.makeLogger=function(e){var t={flags:0,f:e};return r.log.setLevel(t,"none"),t},r.log.setLevel=function(e,t){var n=!1;if(e&&!(e.flags&r.log.LEVEL_LOCKED))for(var o=0;o<r.log.levels.length;++o){var i=r.log.levels[o];if(t==i){e.level=t,n=!0;break}}return n},r.log.lock=function(e,t){"undefined"===typeof t||t?e.flags|=r.log.LEVEL_LOCKED:e.flags&=~r.log.LEVEL_LOCKED},r.log.addLogger=function(e){i.push(e)},"undefined"!==typeof console&&"log"in console){var u;if(console.error&&console.warn&&console.info&&console.debug){var f={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},d=function(e,t){r.log.prepareStandard(t);var n=f[t.level],o=[t.standard];o=o.concat(t["arguments"].slice()),n.apply(console,o)};u=r.log.makeLogger(d)}else{d=function(e,t){r.log.prepareStandardFull(t),console.log(t.standardFull)};u=r.log.makeLogger(d)}r.log.setLevel(u,"debug"),r.log.addLogger(u),a=u}else console={log:function(){}};if(null!==a){var p=r.util.getQueryVariables();if("console.level"in p&&r.log.setLevel(a,p["console.level"].slice(-1)[0]),"console.lock"in p){var h=p["console.lock"].slice(-1)[0];"true"==h&&r.log.lock(a)}}r.log.consoleLogger=a},b7f9:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){return l(e)||s(e)||a(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return f(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),p=c.prototype=s.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,f(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,f(p,"constructor",c),f(c,"constructor",l),l.displayName="GeneratorFunction",f(c,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,r,(function(){return this})),f(p,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=g(e,"string");return"symbol"==r(t)?t:t+""}function g(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}t["a"]={model:{prop:"values",event:"change"},props:{action:{type:Object},columns:{type:Array},values:{type:Object},mode:{type:String,enum:["fully","normal","simple"],default:"normal"},layout:{type:String,enum:["horizontal","vertical","inline"],default:"horizontal"},params:{type:[Object],default:function(){return{}}},submited:{type:Number},continueText:{type:String},submitText:{type:String},resetText:{type:String},footer:{type:String},onContinue:{type:Function},onSubmit:{type:Function},onReset:{type:Function}},data:function(){return{actionModel:m({},this.values)||{},hasFile:!1}},created:function(){var e=this;if(this.defaultValues){var t=function(t){var n,r=e.columns.find((function(e){return e.name===t}))||void 0,o=(null===r||void 0===r?void 0:r.required)||!1;if(null!==r&&void 0!==r&&null!==(n=r.configs)&&void 0!==n&&n.length){var i=Object.fromEntries(r.configs.map((function(e){return[e.key,e.value]})));o=i&&i.required?"1"===i.required:null===r||void 0===r?void 0:r.required}(void 0===e.actionModel[t]||""===e.actionModel[t]&&o)&&e.$set(e.actionModel,t,e.defaultValues[t])};for(var n in this.defaultValues)t(n)}},computed:{defaultValues:function(){var e=this.columns?this.columns.filter((function(e){return!!e.value})).map((function(e){return[e.name,e.value]})):[];return e.length?Object.fromEntries(e):null},rules:function(){var e={};return this.columns.forEach((function(t){var n,r=["date","time","month","week","range","tree-suggest"].includes(t.control);(e[t.name]=[],t.required&&e[t.name].push({required:!0,message:"".concat(t.alias,"不能为空"),trigger:r?"change":"blur"}),t.maxLength&&t.minLength)&&(n=t.maxLength&&t.minLength?"长度在 ".concat(t.minLength," 到 ").concat(t.maxLength," 个字符"):t.maxLength?"长度不多于 ".concat(t.maxLength," 个字符"):"长度不少于 ".concat(t.minLength," 个字符"),e[t.name].push({min:t.minLength,max:t.maxLength,message:n,trigger:"blur"}))})),e},configs:function(){var e;return Object.fromEntries(((null===(e=this.action)||void 0===e?void 0:e.configs)||[]).map((function(e){return[e.key,e.value]})))}},provide:function(){return{form:this}},inject:["view"],methods:{setModel:function(e,t){this.actionModel[e]?this.actionModel[e]=t:this.$set(this.actionModel,e,t)},handleItemChange:function(e,t){var n=t.name;this.setModel(n,e)},handleItemFill:function(e){var t=this;e.forEach((function(e){return t.setModel(e.name,e.value)}))},handleSubmit:function(){var e=this;return p(u().m((function t(){return u().w((function(t){while(1)switch(t.n){case 0:if(!e.$refs.form){t.n=1;break}return t.n=1,e.$refs.form.validate();case 1:e.handleCommit();case 2:return t.a(2)}}),t)})))()},handleCommit:function(){var e=this;return p(u().m((function t(){var n,r,i,a,s;return u().w((function(t){while(1)switch(t.n){case 0:Array.isArray(e.actionModel)?n=e.actionModel:(r=e.params,i=void 0===r?{}:r,a=i.valuesName,s=a?[].concat(o(e.columns),[{name:a}]):e.columns,n=Object.fromEntries(s.map((function(t){var n=void 0===e.actionModel[t.name]?null:e.actionModel[t.name];return[t.name,n]})))),e.$emit("commit",n);case 1:return t.a(2)}}),t)})))()}},watch:{submited:function(){this.handleSubmit()},actionModel:{handler:function(e){this.$emit("change",e)},deep:!0},values:{handler:function(e){for(var t in e)this.setModel(t,e[t])},deep:!0}}}},b9aa:function(e,t,n){"use strict";n("0365")},ba06:function(e,t,n){},ba95:function(e,t,n){var r=n("ebeb");if(n("d6a3"),n("ea7c"),n("8d14"),n("4a75"),n("f564"),n("5fb7"),n("bb01"),"undefined"===typeof o)var o=r.jsbn.BigInteger;var i=r.util.isNodejs?n(0):null,a=r.asn1,s=r.util;r.pki=r.pki||{},e.exports=r.pki.rsa=r.rsa=r.rsa||{};var l=r.pki,c=[6,4,2,4,2,4,6,2],u={name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},f={name:"RSAPrivateKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},d={name:"RSAPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},p=r.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},h=function(e){var t;if(!(e.algorithm in l.oids)){var n=new Error("Unknown message digest algorithm.");throw n.algorithm=e.algorithm,n}t=l.oids[e.algorithm];var r=a.oidToDer(t).getBytes(),o=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]),i=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]);i.value.push(a.create(a.Class.UNIVERSAL,a.Type.OID,!1,r)),i.value.push(a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,""));var s=a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,e.digest().getBytes());return o.value.push(i),o.value.push(s),a.toDer(o).getBytes()},m=function(e,t,n){if(n)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);var i;t.dP||(t.dP=t.d.mod(t.p.subtract(o.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(o.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));do{i=new o(r.util.bytesToHex(r.random.getBytes(t.n.bitLength()/8)),16)}while(i.compareTo(t.n)>=0||!i.gcd(t.n).equals(o.ONE));e=e.multiply(i.modPow(t.e,t.n)).mod(t.n);var a=e.mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);while(a.compareTo(s)<0)a=a.add(t.p);var l=a.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return l=l.multiply(i.modInverse(t.n)).mod(t.n),l};function v(e,t,n){var o=r.util.createBuffer(),i=Math.ceil(t.n.bitLength()/8);if(e.length>i-11){var a=new Error("Message is too long for PKCS#1 v1.5 padding.");throw a.length=e.length,a.max=i-11,a}o.putByte(0),o.putByte(n);var s,l=i-3-e.length;if(0===n||1===n){s=0===n?0:255;for(var c=0;c<l;++c)o.putByte(s)}else while(l>0){var u=0,f=r.random.getBytes(l);for(c=0;c<l;++c)s=f.charCodeAt(c),0===s?++u:o.putByte(s);l=u}return o.putByte(0),o.putBytes(e),o}function y(e,t,n,o){var i=Math.ceil(t.n.bitLength()/8),a=r.util.createBuffer(e),s=a.getByte(),l=a.getByte();if(0!==s||n&&0!==l&&1!==l||!n&&2!=l||n&&0===l&&"undefined"===typeof o)throw new Error("Encryption block is invalid.");var c=0;if(0===l){c=i-3-o;for(var u=0;u<c;++u)if(0!==a.getByte())throw new Error("Encryption block is invalid.")}else if(1===l){c=0;while(a.length()>1){if(255!==a.getByte()){--a.read;break}++c}}else if(2===l){c=0;while(a.length()>1){if(0===a.getByte()){--a.read;break}++c}}var f=a.getByte();if(0!==f||c!==i-3-a.length())throw new Error("Encryption block is invalid.");return a.getBytes()}function g(e,t,n){"function"===typeof t&&(n=t,t={}),t=t||{};var i={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};function a(){s(e.pBits,(function(t,r){return t?n(t):(e.p=r,null!==e.q?c(t,e.q):void s(e.qBits,c))}))}function s(e,t){r.prime.generateProbablePrime(e,i,t)}function c(t,r){if(t)return n(t);if(e.q=r,e.p.compareTo(e.q)<0){var i=e.p;e.p=e.q,e.q=i}if(0!==e.p.subtract(o.ONE).gcd(e.e).compareTo(o.ONE))return e.p=null,void a();if(0!==e.q.subtract(o.ONE).gcd(e.e).compareTo(o.ONE))return e.q=null,void s(e.qBits,c);if(e.p1=e.p.subtract(o.ONE),e.q1=e.q.subtract(o.ONE),e.phi=e.p1.multiply(e.q1),0!==e.phi.gcd(e.e).compareTo(o.ONE))return e.p=e.q=null,void a();if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits)return e.q=null,void s(e.qBits,c);var u=e.e.modInverse(e.phi);e.keys={privateKey:l.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:l.rsa.setPublicKey(e.n,e.e)},n(null,e.keys)}"prng"in t&&(i.prng=t.prng),a()}function b(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var n=r.util.hexToBytes(t);return n.length>1&&(0===n.charCodeAt(0)&&0===(128&n.charCodeAt(1))||255===n.charCodeAt(0)&&128===(128&n.charCodeAt(1)))?n.substr(1):n}function w(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function _(e){return r.util.isNodejs&&"function"===typeof i[e]}function S(e){return"undefined"!==typeof s.globalScope&&"object"===typeof s.globalScope.crypto&&"object"===typeof s.globalScope.crypto.subtle&&"function"===typeof s.globalScope.crypto.subtle[e]}function C(e){return"undefined"!==typeof s.globalScope&&"object"===typeof s.globalScope.msCrypto&&"object"===typeof s.globalScope.msCrypto.subtle&&"function"===typeof s.globalScope.msCrypto.subtle[e]}function k(e){for(var t=r.util.hexToBytes(e.toString(16)),n=new Uint8Array(t.length),o=0;o<t.length;++o)n[o]=t.charCodeAt(o);return n}l.rsa.encrypt=function(e,t,n){var i,a=n,s=Math.ceil(t.n.bitLength()/8);!1!==n&&!0!==n?(a=2===n,i=v(e,t,n)):(i=r.util.createBuffer(),i.putBytes(e));var l=new o(i.toHex(),16),c=m(l,t,a),u=c.toString(16),f=r.util.createBuffer(),d=s-Math.ceil(u.length/2);while(d>0)f.putByte(0),--d;return f.putBytes(r.util.hexToBytes(u)),f.getBytes()},l.rsa.decrypt=function(e,t,n,i){var a=Math.ceil(t.n.bitLength()/8);if(e.length!==a){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=a,s}var l=new o(r.util.createBuffer(e).toHex(),16);if(l.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");var c=m(l,t,n),u=c.toString(16),f=r.util.createBuffer(),d=a-Math.ceil(u.length/2);while(d>0)f.putByte(0),--d;return f.putBytes(r.util.hexToBytes(u)),!1!==i?y(f.getBytes(),t,n):f.getBytes()},l.rsa.createKeyPairGenerationState=function(e,t,n){"string"===typeof e&&(e=parseInt(e,10)),e=e||2048,n=n||{};var i,a=n.prng||r.random,s={nextBytes:function(e){for(var t=a.getBytesSync(e.length),n=0;n<e.length;++n)e[n]=t.charCodeAt(n)}},l=n.algorithm||"PRIMEINC";if("PRIMEINC"!==l)throw new Error("Invalid key generation algorithm: "+l);return i={algorithm:l,state:0,bits:e,rng:s,eInt:t||65537,e:new o(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},i.e.fromInt(i.eInt),i},l.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var n=new o(null);n.fromInt(30);var r,i=0,a=function(e,t){return e|t},s=+new Date,u=0;while(null===e.keys&&(t<=0||u<t)){if(0===e.state){var f=null===e.p?e.pBits:e.qBits,d=f-1;0===e.pqState?(e.num=new o(f,e.rng),e.num.testBit(d)||e.num.bitwiseTo(o.ONE.shiftLeft(d),a,e.num),e.num.dAddOffset(31-e.num.mod(n).byteValue(),0),i=0,++e.pqState):1===e.pqState?e.num.bitLength()>f?e.pqState=0:e.num.isProbablePrime(w(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(c[i++%8],0):2===e.pqState?e.pqState=0===e.num.subtract(o.ONE).gcd(e.e).compareTo(o.ONE)?3:0:3===e.pqState&&(e.pqState=0,null===e.p?e.p=e.num:e.q=e.num,null!==e.p&&null!==e.q&&++e.state,e.num=null)}else if(1===e.state)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(2===e.state)e.p1=e.p.subtract(o.ONE),e.q1=e.q.subtract(o.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(3===e.state)0===e.phi.gcd(e.e).compareTo(o.ONE)?++e.state:(e.p=null,e.q=null,e.state=0);else if(4===e.state)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(5===e.state){var p=e.e.modInverse(e.phi);e.keys={privateKey:l.rsa.setPrivateKey(e.n,e.e,p,e.p,e.q,p.mod(e.p1),p.mod(e.q1),e.q.modInverse(e.p)),publicKey:l.rsa.setPublicKey(e.n,e.e)}}r=+new Date,u+=r-s,s=r}return null!==e.keys},l.rsa.generateKeyPair=function(e,t,n,o){if(1===arguments.length?"object"===typeof e?(n=e,e=void 0):"function"===typeof e&&(o=e,e=void 0):2===arguments.length?"number"===typeof e?"function"===typeof t?(o=t,t=void 0):"number"!==typeof t&&(n=t,t=void 0):(n=e,o=t,e=void 0,t=void 0):3===arguments.length&&("number"===typeof t?"function"===typeof n&&(o=n,n=void 0):(o=n,n=t,t=void 0)),n=n||{},void 0===e&&(e=n.bits||2048),void 0===t&&(t=n.e||65537),!r.options.usePureJavaScript&&!n.prng&&e>=256&&e<=16384&&(65537===t||3===t))if(o){if(_("generateKeyPair"))return i.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},(function(e,t,n){if(e)return o(e);o(null,{privateKey:l.privateKeyFromPem(n),publicKey:l.publicKeyFromPem(t)})}));if(S("generateKey")&&S("exportKey"))return s.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:k(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then((function(e){return s.globalScope.crypto.subtle.exportKey("pkcs8",e.privateKey)})).then(void 0,(function(e){o(e)})).then((function(e){if(e){var t=l.privateKeyFromAsn1(a.fromDer(r.util.createBuffer(e)));o(null,{privateKey:t,publicKey:l.setRsaPublicKey(t.n,t.e)})}}));if(C("generateKey")&&C("exportKey")){var c=s.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:k(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);return c.oncomplete=function(e){var t=e.target.result,n=s.globalScope.msCrypto.subtle.exportKey("pkcs8",t.privateKey);n.oncomplete=function(e){var t=e.target.result,n=l.privateKeyFromAsn1(a.fromDer(r.util.createBuffer(t)));o(null,{privateKey:n,publicKey:l.setRsaPublicKey(n.n,n.e)})},n.onerror=function(e){o(e)}},void(c.onerror=function(e){o(e)})}}else if(_("generateKeyPairSync")){var u=i.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:l.privateKeyFromPem(u.privateKey),publicKey:l.publicKeyFromPem(u.publicKey)}}var f=l.rsa.createKeyPairGenerationState(e,t,n);if(!o)return l.rsa.stepKeyPairGenerationState(f,0),f.keys;g(f,n,o)},l.setRsaPublicKey=l.rsa.setPublicKey=function(e,t){var n={n:e,e:t,encrypt:function(e,t,o){if("string"===typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===t)t={encode:function(e,t,n){return v(e,t,2).getBytes()}};else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={encode:function(e,t){return r.pkcs1.encode_rsa_oaep(t,e,o)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(t))t={encode:function(e){return e}};else if("string"===typeof t)throw new Error('Unsupported encryption scheme: "'+t+'".');var i=t.encode(e,n,!0);return l.rsa.encrypt(i,n,!0)},verify:function(e,t,r){"string"===typeof r?r=r.toUpperCase():void 0===r&&(r="RSASSA-PKCS1-V1_5"),"RSASSA-PKCS1-V1_5"===r?r={verify:function(e,t){t=y(t,n,!0);var r=a.fromDer(t);return e===r.value[1].value}}:"NONE"!==r&&"NULL"!==r&&null!==r||(r={verify:function(e,t){return t=y(t,n,!0),e===t}});var o=l.rsa.decrypt(t,n,!0,!1);return r.verify(e,o,n.n.bitLength())}};return n},l.setRsaPrivateKey=l.rsa.setPrivateKey=function(e,t,n,o,i,a,s,c){var u={n:e,e:t,d:n,p:o,q:i,dP:a,dQ:s,qInv:c,decrypt:function(e,t,n){"string"===typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5");var o=l.rsa.decrypt(e,u,!1,!1);if("RSAES-PKCS1-V1_5"===t)t={decode:y};else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={decode:function(e,t){return r.pkcs1.decode_rsa_oaep(t,e,n)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(t))throw new Error('Unsupported encryption scheme: "'+t+'".');t={decode:function(e){return e}}}return t.decode(o,u,!1)},sign:function(e,t){var n=!1;"string"===typeof t&&(t=t.toUpperCase()),void 0===t||"RSASSA-PKCS1-V1_5"===t?(t={encode:h},n=1):"NONE"!==t&&"NULL"!==t&&null!==t||(t={encode:function(){return e}},n=1);var r=t.encode(e,u.n.bitLength());return l.rsa.encrypt(r,u,n)}};return u},l.wrapRsaPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(l.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,a.toDer(e).getBytes())])},l.privateKeyFromAsn1=function(e){var t,n,i,s,c,d,p,h,m={},v=[];if(a.validate(e,u,m,v)&&(e=a.fromDer(r.util.createBuffer(m.privateKey))),m={},v=[],!a.validate(e,f,m,v)){var y=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw y.errors=v,y}return t=r.util.createBuffer(m.privateKeyModulus).toHex(),n=r.util.createBuffer(m.privateKeyPublicExponent).toHex(),i=r.util.createBuffer(m.privateKeyPrivateExponent).toHex(),s=r.util.createBuffer(m.privateKeyPrime1).toHex(),c=r.util.createBuffer(m.privateKeyPrime2).toHex(),d=r.util.createBuffer(m.privateKeyExponent1).toHex(),p=r.util.createBuffer(m.privateKeyExponent2).toHex(),h=r.util.createBuffer(m.privateKeyCoefficient).toHex(),l.setRsaPrivateKey(new o(t,16),new o(n,16),new o(i,16),new o(s,16),new o(c,16),new o(d,16),new o(p,16),new o(h,16))},l.privateKeyToAsn1=l.privateKeyToRSAPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.e)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.d)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.p)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.q)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.dP)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.dQ)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.qInv))])},l.publicKeyFromAsn1=function(e){var t={},n=[];if(a.validate(e,p,t,n)){var i=a.derToOid(t.publicKeyOid);if(i!==l.oids.rsaEncryption){var s=new Error("Cannot read public key. Unknown OID.");throw s.oid=i,s}e=t.rsaPublicKey}if(n=[],!a.validate(e,d,t,n)){s=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw s.errors=n,s}var c=r.util.createBuffer(t.publicKeyModulus).toHex(),u=r.util.createBuffer(t.publicKeyExponent).toHex();return l.setRsaPublicKey(new o(c,16),new o(u,16))},l.publicKeyToAsn1=l.publicKeyToSubjectPublicKeyInfo=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(l.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,!1,[l.publicKeyToRSAPublicKey(e)])])},l.publicKeyToRSAPublicKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.e))])}},bb01:function(e,t,n){(function(t,r,o){var i=n("ebeb"),a=n("aeca"),s=e.exports=i.util=i.util||{};function l(e){if(8!==e&&16!==e&&24!==e&&32!==e)throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}function c(e){if(this.data="",this.read=0,"string"===typeof e)this.data=e;else if(s.isArrayBuffer(e)||s.isArrayBufferView(e))if("undefined"!==typeof o&&e instanceof o)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch(r){for(var n=0;n<t.length;++n)this.putByte(t[n])}}else(e instanceof c||"object"===typeof e&&"string"===typeof e.data&&"number"===typeof e.read)&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}(function(){if("undefined"!==typeof t&&t.nextTick&&!t.browser)return s.nextTick=t.nextTick,void("function"===typeof setImmediate?s.setImmediate=setImmediate:s.setImmediate=s.nextTick);if("function"===typeof setImmediate)return s.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(s.nextTick=function(e){return setImmediate(e)});if(s.setImmediate=function(e){setTimeout(e,0)},"undefined"!==typeof window&&"function"===typeof window.postMessage){var e="forge.setImmediate",n=[];function r(t){if(t.source===window&&t.data===e){t.stopPropagation();var r=n.slice();n.length=0,r.forEach((function(e){e()}))}}s.setImmediate=function(t){n.push(t),1===n.length&&window.postMessage(e,"*")},window.addEventListener("message",r,!0)}if("undefined"!==typeof MutationObserver){var o=Date.now(),i=!0,a=document.createElement("div");n=[];new MutationObserver((function(){var e=n.slice();n.length=0,e.forEach((function(e){e()}))})).observe(a,{attributes:!0});var l=s.setImmediate;s.setImmediate=function(e){Date.now()-o>15?(o=Date.now(),l(e)):(n.push(e),1===n.length&&a.setAttribute("a",i=!i))}}s.nextTick=s.setImmediate})(),s.isNodejs="undefined"!==typeof t&&t.versions&&t.versions.node,s.globalScope=function(){return s.isNodejs?r:"undefined"===typeof self?window:self}(),s.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s.isArrayBuffer=function(e){return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer},s.isArrayBufferView=function(e){return e&&s.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},s.ByteBuffer=c,s.ByteStringBuffer=c;var u=4096;function f(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var n=s.isArrayBuffer(e),r=s.isArrayBufferView(e);if(n||r)return this.data=n?new DataView(e):new DataView(e.buffer,e.byteOffset,e.byteLength),void(this.write="writeOffset"in t?t.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!==e&&void 0!==e&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}s.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>u&&(this.data.substr(0,1),this._constructedStringLength=0)},s.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},s.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},s.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},s.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);var n=this.data;while(t>0)1&t&&(n+=e),t>>>=1,t>0&&(e+=e);return this.data=n,this._optimizeConstructedString(t),this},s.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},s.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(s.encodeUtf8(e))},s.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},s.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},s.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},s.ByteStringBuffer.prototype.putInt=function(e,t){l(t);var n="";do{t-=8,n+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(n)},s.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},s.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},s.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},s.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},s.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},s.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},s.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},s.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},s.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},s.ByteStringBuffer.prototype.getInt=function(e){l(e);var t=0;do{t=(t<<8)+this.data.charCodeAt(this.read++),e-=8}while(e>0);return t},s.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<<e-2;return t>=n&&(t-=n<<1),t},s.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.ByteStringBuffer.prototype.bytes=function(e){return"undefined"===typeof e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},s.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},s.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},s.ByteStringBuffer.prototype.copy=function(){var e=s.createBuffer(this.data);return e.read=this.read,e},s.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},s.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},s.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},s.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var n=this.data.charCodeAt(t);n<16&&(e+="0"),e+=n.toString(16)}return e},s.ByteStringBuffer.prototype.toString=function(){return s.decodeUtf8(this.bytes())},s.DataBuffer=f,s.DataBuffer.prototype.length=function(){return this.write-this.read},s.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},s.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var n=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),r=new Uint8Array(this.length()+t);return r.set(n),this.data=new DataView(r.buffer),this},s.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},s.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var n=0;n<t;++n)this.data.setUint8(e);return this},s.DataBuffer.prototype.putBytes=function(e,t){if(s.isArrayBufferView(e)){var n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r=n.byteLength-n.byteOffset;this.accommodate(r);var o=new Uint8Array(this.data.buffer,this.write);return o.set(n),this.write+=r,this}if(s.isArrayBuffer(e)){n=new Uint8Array(e);this.accommodate(n.byteLength);o=new Uint8Array(this.data.buffer);return o.set(n,this.write),this.write+=n.byteLength,this}if(e instanceof s.DataBuffer||"object"===typeof e&&"number"===typeof e.read&&"number"===typeof e.write&&s.isArrayBufferView(e.data)){n=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(n.byteLength);o=new Uint8Array(e.data.byteLength,this.write);return o.set(n),this.write+=n.byteLength,this}if(e instanceof s.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary","string"===typeof e){var i;if("hex"===t)return this.accommodate(Math.ceil(e.length/2)),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.hex.decode(e,i,this.write),this;if("base64"===t)return this.accommodate(3*Math.ceil(e.length/4)),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.base64.decode(e,i,this.write),this;if("utf8"===t&&(e=s.encodeUtf8(e),t="binary"),"binary"===t||"raw"===t)return this.accommodate(e.length),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.raw.decode(i),this;if("utf16"===t)return this.accommodate(2*e.length),i=new Uint16Array(this.data.buffer,this.write),this.write+=s.text.utf16.encode(i),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},s.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},s.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},s.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},s.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},s.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},s.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},s.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},s.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},s.DataBuffer.prototype.putInt=function(e,t){l(t),this.accommodate(t/8);do{t-=8,this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this},s.DataBuffer.prototype.putSignedInt=function(e,t){return l(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},s.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},s.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},s.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},s.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},s.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},s.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},s.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},s.DataBuffer.prototype.getInt=function(e){l(e);var t=0;do{t=(t<<8)+this.data.getInt8(this.read++),e-=8}while(e>0);return t},s.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<<e-2;return t>=n&&(t-=n<<1),t},s.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.DataBuffer.prototype.bytes=function(e){return"undefined"===typeof e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},s.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},s.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},s.DataBuffer.prototype.copy=function(){return new s.DataBuffer(this)},s.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},s.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},s.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},s.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var n=this.data.getUint8(t);n<16&&(e+="0"),e+=n.toString(16)}return e},s.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8","binary"===e||"raw"===e)return s.binary.raw.encode(t);if("hex"===e)return s.binary.hex.encode(t);if("base64"===e)return s.binary.base64.encode(t);if("utf8"===e)return s.text.utf8.decode(t);if("utf16"===e)return s.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},s.createBuffer=function(e,t){return t=t||"raw",void 0!==e&&"utf8"===t&&(e=s.encodeUtf8(e)),new s.ByteBuffer(e)},s.fillString=function(e,t){var n="";while(t>0)1&t&&(n+=e),t>>>=1,t>0&&(e+=e);return n},s.xorBytes=function(e,t,n){for(var r="",o="",i="",a=0,s=0;n>0;--n,++a)o=e.charCodeAt(a)^t.charCodeAt(a),s>=10&&(r+=i,i="",s=0),i+=String.fromCharCode(o),++s;return r+=i,r},s.hexToBytes=function(e){var t="",n=0;for(!0&e.length&&(n=1,t+=String.fromCharCode(parseInt(e[0],16)));n<e.length;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t},s.bytesToHex=function(e){return s.createBuffer(e).toHex()},s.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)};var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],h="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";s.encode64=function(e,t){var n,r,o,i="",a="",s=0;while(s<e.length)n=e.charCodeAt(s++),r=e.charCodeAt(s++),o=e.charCodeAt(s++),i+=d.charAt(n>>2),i+=d.charAt((3&n)<<4|r>>4),isNaN(r)?i+="==":(i+=d.charAt((15&r)<<2|o>>6),i+=isNaN(o)?"=":d.charAt(63&o)),t&&i.length>t&&(a+=i.substr(0,t)+"\r\n",i=i.substr(t));return a+=i,a},s.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var t,n,r,o,i="",a=0;while(a<e.length)t=p[e.charCodeAt(a++)-43],n=p[e.charCodeAt(a++)-43],r=p[e.charCodeAt(a++)-43],o=p[e.charCodeAt(a++)-43],i+=String.fromCharCode(t<<2|n>>4),64!==r&&(i+=String.fromCharCode((15&n)<<4|r>>2),64!==o&&(i+=String.fromCharCode((3&r)<<6|o)));return i},s.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},s.decodeUtf8=function(e){return decodeURIComponent(escape(e))},s.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:a.encode,decode:a.decode}},s.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},s.binary.raw.decode=function(e,t,n){var r=t;r||(r=new Uint8Array(e.length)),n=n||0;for(var o=n,i=0;i<e.length;++i)r[o++]=e.charCodeAt(i);return t?o-n:r},s.binary.hex.encode=s.bytesToHex,s.binary.hex.decode=function(e,t,n){var r=t;r||(r=new Uint8Array(Math.ceil(e.length/2))),n=n||0;var o=0,i=n;for(1&e.length&&(o=1,r[i++]=parseInt(e[0],16));o<e.length;o+=2)r[i++]=parseInt(e.substr(o,2),16);return t?i-n:r},s.binary.base64.encode=function(e,t){var n,r,o,i="",a="",s=0;while(s<e.byteLength)n=e[s++],r=e[s++],o=e[s++],i+=d.charAt(n>>2),i+=d.charAt((3&n)<<4|r>>4),isNaN(r)?i+="==":(i+=d.charAt((15&r)<<2|o>>6),i+=isNaN(o)?"=":d.charAt(63&o)),t&&i.length>t&&(a+=i.substr(0,t)+"\r\n",i=i.substr(t));return a+=i,a},s.binary.base64.decode=function(e,t,n){var r,o,i,a,s=t;s||(s=new Uint8Array(3*Math.ceil(e.length/4))),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=n||0;var l=0,c=n;while(l<e.length)r=p[e.charCodeAt(l++)-43],o=p[e.charCodeAt(l++)-43],i=p[e.charCodeAt(l++)-43],a=p[e.charCodeAt(l++)-43],s[c++]=r<<2|o>>4,64!==i&&(s[c++]=(15&o)<<4|i>>2,64!==a&&(s[c++]=(3&i)<<6|a));return t?c-n:s.subarray(0,c)},s.binary.base58.encode=function(e,t){return s.binary.baseN.encode(e,h,t)},s.binary.base58.decode=function(e,t){return s.binary.baseN.decode(e,h,t)},s.text={utf8:{},utf16:{}},s.text.utf8.encode=function(e,t,n){e=s.encodeUtf8(e);var r=t;r||(r=new Uint8Array(e.length)),n=n||0;for(var o=n,i=0;i<e.length;++i)r[o++]=e.charCodeAt(i);return t?o-n:r},s.text.utf8.decode=function(e){return s.decodeUtf8(String.fromCharCode.apply(null,e))},s.text.utf16.encode=function(e,t,n){var r=t;r||(r=new Uint8Array(2*e.length));var o=new Uint16Array(r.buffer);n=n||0;for(var i=n,a=n,s=0;s<e.length;++s)o[a++]=e.charCodeAt(s),i+=2;return t?i-n:r},s.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},s.deflate=function(e,t,n){if(t=s.decode64(e.deflate(s.encode64(t)).rval),n){var r=2,o=t.charCodeAt(1);32&o&&(r=6),t=t.substring(r,t.length-4)}return t},s.inflate=function(e,t,n){var r=e.inflate(s.encode64(t)).rval;return null===r?null:s.decode64(r)};var m=function(e,t,n){if(!e)throw new Error("WebStorage not available.");var r;if(null===n?r=e.removeItem(t):(n=s.encode64(JSON.stringify(n)),r=e.setItem(t,n)),"undefined"!==typeof r&&!0!==r.rval){var o=new Error(r.error.message);throw o.id=r.error.id,o.name=r.error.name,o}},v=function(e,t){if(!e)throw new Error("WebStorage not available.");var n=e.getItem(t);if(e.init)if(null===n.rval){if(n.error){var r=new Error(n.error.message);throw r.id=n.error.id,r.name=n.error.name,r}n=null}else n=n.rval;return null!==n&&(n=JSON.parse(s.decode64(n))),n},y=function(e,t,n,r){var o=v(e,t);null===o&&(o={}),o[n]=r,m(e,t,o)},g=function(e,t,n){var r=v(e,t);return null!==r&&(r=n in r?r[n]:null),r},b=function(e,t,n){var r=v(e,t);if(null!==r&&n in r){delete r[n];var o=!0;for(var i in r){o=!1;break}o&&(r=null),m(e,t,r)}},w=function(e,t){m(e,t,null)},_=function(e,t,n){var r,o=null;"undefined"===typeof n&&(n=["web","flash"]);var i=!1,a=null;for(var s in n){r=n[s];try{if("flash"===r||"both"===r){if(null===t[0])throw new Error("Flash local storage not available.");o=e.apply(this,t),i="flash"===r}"web"!==r&&"both"!==r||(t[0]=localStorage,o=e.apply(this,t),i=!0)}catch(l){a=l}if(i)break}if(!i)throw a;return o};s.setItem=function(e,t,n,r,o){_(y,arguments,o)},s.getItem=function(e,t,n,r){return _(g,arguments,r)},s.removeItem=function(e,t,n,r){_(b,arguments,r)},s.clearItems=function(e,t,n){_(w,arguments,n)},s.parseUrl=function(e){var t=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;t.lastIndex=0;var n=t.exec(e),r=null===n?null:{full:e,scheme:n[1],host:n[2],port:n[3],path:n[4]};return r&&(r.fullHost=r.host,r.port?(80!==r.port&&"http"===r.scheme||443!==r.port&&"https"===r.scheme)&&(r.fullHost+=":"+r.port):"http"===r.scheme?r.port=80:"https"===r.scheme&&(r.port=443),r.full=r.scheme+"://"+r.fullHost),r};var S=null;s.getQueryVariables=function(e){var t,n=function(e){for(var t={},n=e.split("&"),r=0;r<n.length;r++){var o,i,a=n[r].indexOf("=");a>0?(o=n[r].substring(0,a),i=n[r].substring(a+1)):(o=n[r],i=null),o in t||(t[o]=[]),o in Object.prototype||null===i||t[o].push(unescape(i))}return t};return"undefined"===typeof e?(null===S&&(S="undefined"!==typeof window&&window.location&&window.location.search?n(window.location.search.substring(1)):{}),t=S):t=n(e),t},s.parseFragment=function(e){var t=e,n="",r=e.indexOf("?");r>0&&(t=e.substring(0,r),n=e.substring(r+1));var o=t.split("/");o.length>0&&""===o[0]&&o.shift();var i=""===n?{}:s.getQueryVariables(n);return{pathString:t,queryString:n,path:o,query:i}},s.makeRequest=function(e){var t=s.parseFragment(e),n={path:t.pathString,query:t.queryString,getPath:function(e){return"undefined"===typeof e?t.path:t.path[e]},getQuery:function(e,n){var r;return"undefined"===typeof e?r=t.query:(r=t.query[e],r&&"undefined"!==typeof n&&(r=r[n])),r},getQueryLast:function(e,t){var r,o=n.getQuery(e);return r=o?o[o.length-1]:t,r}};return n},s.makeLink=function(e,t,n){e=jQuery.isArray(e)?e.join("/"):e;var r=jQuery.param(t||{});return n=n||"",e+(r.length>0?"?"+r:"")+(n.length>0?"#"+n:"")},s.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},s.format=function(e){var t,n,r=/%./g,o=0,i=[],a=0;while(t=r.exec(e)){n=e.substring(a,r.lastIndex-2),n.length>0&&i.push(n),a=r.lastIndex;var s=t[0][1];switch(s){case"s":case"o":o<arguments.length?i.push(arguments[1+o++]):i.push("<?>");break;case"%":i.push("%");break;default:i.push("<%"+s+"?>")}}return i.push(e.substring(a)),i.join("")},s.formatNumber=function(e,t,n,r){var o=e,i=isNaN(t=Math.abs(t))?2:t,a=void 0===n?",":n,s=void 0===r?".":r,l=o<0?"-":"",c=parseInt(o=Math.abs(+o||0).toFixed(i),10)+"",u=c.length>3?c.length%3:0;return l+(u?c.substr(0,u)+s:"")+c.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+s)+(i?a+Math.abs(o-c).toFixed(i).slice(2):"")},s.formatSize=function(e){return e=e>=1073741824?s.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?s.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?s.formatNumber(e/1024,0)+" KiB":s.formatNumber(e,0)+" bytes",e},s.bytesFromIP=function(e){return-1!==e.indexOf(".")?s.bytesFromIPv4(e):-1!==e.indexOf(":")?s.bytesFromIPv6(e):null},s.bytesFromIPv4=function(e){if(e=e.split("."),4!==e.length)return null;for(var t=s.createBuffer(),n=0;n<e.length;++n){var r=parseInt(e[n],10);if(isNaN(r))return null;t.putByte(r)}return t.getBytes()},s.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter((function(e){return 0===e.length&&++t,!0}));for(var n=2*(8-e.length+t),r=s.createBuffer(),o=0;o<8;++o)if(e[o]&&0!==e[o].length){var i=s.hexToBytes(e[o]);i.length<2&&r.putByte(0),r.putBytes(i)}else r.fillWithByte(0,n),n=0;return r.getBytes()},s.bytesToIP=function(e){return 4===e.length?s.bytesToIPv4(e):16===e.length?s.bytesToIPv6(e):null},s.bytesToIPv4=function(e){if(4!==e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t.join(".")},s.bytesToIPv6=function(e){if(16!==e.length)return null;for(var t=[],n=[],r=0,o=0;o<e.length;o+=2){var i=s.bytesToHex(e[o]+e[o+1]);while("0"===i[0]&&"0"!==i)i=i.substr(1);if("0"===i){var a=n[n.length-1],l=t.length;a&&l===a.end+1?(a.end=l,a.end-a.start>n[r].end-n[r].start&&(r=n.length-1)):n.push({start:l,end:l})}t.push(i)}if(n.length>0){var c=n[r];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),0===c.start&&t.unshift(""),7===c.end&&t.push(""))}return t.join(":")},s.estimateCores=function(e,t){if("function"===typeof e&&(t=e,e={}),e=e||{},"cores"in s&&!e.update)return t(null,s.cores);if("undefined"!==typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return s.cores=navigator.hardwareConcurrency,t(null,s.cores);if("undefined"===typeof Worker)return s.cores=1,t(null,s.cores);if("undefined"===typeof Blob)return s.cores=2,t(null,s.cores);var n=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",(function(e){var t=Date.now(),n=t+4;while(Date.now()<n);self.postMessage({st:t,et:n})}))}.toString(),")()"],{type:"application/javascript"}));function r(e,a,l){if(0===a){var c=Math.floor(e.reduce((function(e,t){return e+t}),0)/e.length);return s.cores=Math.max(1,c),URL.revokeObjectURL(n),t(null,s.cores)}o(l,(function(t,n){e.push(i(l,n)),r(e,a-1,l)}))}function o(e,t){for(var r=[],o=[],i=0;i<e;++i){var a=new Worker(n);a.addEventListener("message",(function(n){if(o.push(n.data),o.length===e){for(var i=0;i<e;++i)r[i].terminate();t(null,o)}})),r.push(a)}for(i=0;i<e;++i)r[i].postMessage(i)}function i(e,t){for(var n=[],r=0;r<e;++r)for(var o=t[r],i=n[r]=[],a=0;a<e;++a)if(r!==a){var s=t[a];(o.st>s.st&&o.st<s.et||s.st>o.st&&s.st<o.et)&&i.push(a)}return n.reduce((function(e,t){return Math.max(e,t.length)}),0)}r([],5,16)}}).call(this,n("4362"),n("c8ba"),n("b639").Buffer)},bb20:function(e,t,n){},bd28:function(e,t,n){"use strict";n("c0c2")},be91:function(e,t,n){(function(t){var r=n("ebeb");n("bb01");var o=null;!r.util.isNodejs||r.options.usePureJavaScript||t.versions["node-webkit"]||(o=n(0));var i=e.exports=r.prng=r.prng||{};i.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},n=e.md,i=new Array(32),a=0;a<32;++a)i[a]=n.create();function s(e){if(t.pools[0].messageLength>=32)return c(),e();var n=32-t.pools[0].messageLength<<5;t.seedFile(n,(function(n,r){if(n)return e(n);t.collect(r),c(),e()}))}function l(){if(t.pools[0].messageLength>=32)return c();var e=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(e)),c()}function c(){t.reseeds=4294967295===t.reseeds?0:t.reseeds+1;var e=t.plugin.md.create();e.update(t.keyBytes);for(var n=1,r=0;r<32;++r)t.reseeds%n===0&&(e.update(t.pools[r].digest().getBytes()),t.pools[r].start()),n<<=1;t.keyBytes=e.digest().getBytes(),e.start(),e.update(t.keyBytes);var o=e.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(o),t.generated=0}function u(e){var t=null,n=r.util.globalScope,o=n.crypto||n.msCrypto;o&&o.getRandomValues&&(t=function(e){return o.getRandomValues(e)});var i=r.util.createBuffer();if(t)while(i.length()<e){var a=Math.max(1,Math.min(e-i.length(),65536)/4),s=new Uint32Array(Math.floor(a));try{t(s);for(var l=0;l<s.length;++l)i.putInt32(s[l])}catch(p){if(!("undefined"!==typeof QuotaExceededError&&p instanceof QuotaExceededError))throw p}}if(i.length()<e){var c,u,f,d=Math.floor(65536*Math.random());while(i.length()<e){u=16807*(65535&d),c=16807*(d>>16),u+=(32767&c)<<16,u+=c>>15,u=(2147483647&u)+(u>>31),d=4294967295&u;for(l=0;l<3;++l)f=d>>>(l<<3),f^=Math.floor(256*Math.random()),i.putByte(String.fromCharCode(255&f))}}return i.getBytes(e)}return t.pools=i,t.pool=0,t.generate=function(e,n){if(!n)return t.generateSync(e);var o=t.plugin.cipher,i=t.plugin.increment,a=t.plugin.formatKey,l=t.plugin.formatSeed,c=r.util.createBuffer();function u(f){if(f)return n(f);if(c.length()>=e)return n(null,c.getBytes(e));if(t.generated>1048575&&(t.key=null),null===t.key)return r.util.nextTick((function(){s(u)}));var d=o(t.key,t.seed);t.generated+=d.length,c.putBytes(d),t.key=a(o(t.key,i(t.seed))),t.seed=l(o(t.key,t.seed)),r.util.setImmediate(u)}t.key=null,u()},t.generateSync=function(e){var n=t.plugin.cipher,o=t.plugin.increment,i=t.plugin.formatKey,a=t.plugin.formatSeed;t.key=null;var s=r.util.createBuffer();while(s.length()<e){t.generated>1048575&&(t.key=null),null===t.key&&l();var c=n(t.key,t.seed);t.generated+=c.length,s.putBytes(c),t.key=i(n(t.key,o(t.seed))),t.seed=a(n(t.key,t.seed))}return s.getBytes(e)},o?(t.seedFile=function(e,t){o.randomBytes(e,(function(e,n){if(e)return t(e);t(null,n.toString())}))},t.seedFileSync=function(e){return o.randomBytes(e).toString()}):(t.seedFile=function(e,t){try{t(null,u(e))}catch(n){t(n)}},t.seedFileSync=u),t.collect=function(e){for(var n=e.length,r=0;r<n;++r)t.pools[t.pool].update(e.substr(r,1)),t.pool=31===t.pool?0:t.pool+1},t.collectInt=function(e,n){for(var r="",o=0;o<n;o+=8)r+=String.fromCharCode(e>>o&255);t.collect(r)},t.registerWorker=function(e){if(e===self)t.seedFile=function(e,t){function n(e){var r=e.data;r.forge&&r.forge.prng&&(self.removeEventListener("message",n),t(r.forge.prng.err,r.forge.prng.bytes))}self.addEventListener("message",n),self.postMessage({forge:{prng:{needed:e}}})};else{var n=function(n){var r=n.data;r.forge&&r.forge.prng&&t.seedFile(r.forge.prng.needed,(function(t,n){e.postMessage({forge:{prng:{err:t,bytes:n}}})}))};e.addEventListener("message",n)}},t}}).call(this,n("4362"))},c0b9:function(e,t,n){var r=n("ebeb");function o(e,t){var n=function(){return new r.des.Algorithm(e,t)};r.cipher.registerAlgorithm(e,n)}n("858c"),n("9055"),n("bb01"),e.exports=r.des=r.des||{},r.des.startEncrypting=function(e,t,n,r){var o=m({key:e,output:n,decrypt:!1,mode:r||(null===t?"ECB":"CBC")});return o.start(t),o},r.des.createEncryptionCipher=function(e,t){return m({key:e,output:null,decrypt:!1,mode:t})},r.des.startDecrypting=function(e,t,n,r){var o=m({key:e,output:n,decrypt:!0,mode:r||(null===t?"ECB":"CBC")});return o.start(t),o},r.des.createDecryptionCipher=function(e,t){return m({key:e,output:null,decrypt:!0,mode:t})},r.des.Algorithm=function(e,t){var n=this;n.name=e,n.mode=new t({blockSize:8,cipher:{encrypt:function(e,t){return h(n._keys,e,t,!1)},decrypt:function(e,t){return h(n._keys,e,t,!0)}}}),n._init=!1},r.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=r.util.createBuffer(e.key);if(0===this.name.indexOf("3DES")&&24!==t.length())throw new Error("Invalid Triple-DES key size: "+8*t.length());this._keys=p(t),this._init=!0}},o("DES-ECB",r.cipher.modes.ecb),o("DES-CBC",r.cipher.modes.cbc),o("DES-CFB",r.cipher.modes.cfb),o("DES-OFB",r.cipher.modes.ofb),o("DES-CTR",r.cipher.modes.ctr),o("3DES-ECB",r.cipher.modes.ecb),o("3DES-CBC",r.cipher.modes.cbc),o("3DES-CFB",r.cipher.modes.cfb),o("3DES-OFB",r.cipher.modes.ofb),o("3DES-CTR",r.cipher.modes.ctr);var i=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],a=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],s=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],l=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],c=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],u=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],f=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],d=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function p(e){for(var t,n=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],o=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],a=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],s=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],l=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],u=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],f=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],p=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],v=e.length()>8?3:1,y=[],g=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],b=0,w=0;w<v;w++){var _=e.getInt32(),S=e.getInt32();t=252645135&(_>>>4^S),S^=t,_^=t<<4,t=65535&(S>>>-16^_),_^=t,S^=t<<-16,t=858993459&(_>>>2^S),S^=t,_^=t<<2,t=65535&(S>>>-16^_),_^=t,S^=t<<-16,t=1431655765&(_>>>1^S),S^=t,_^=t<<1,t=16711935&(S>>>8^_),_^=t,S^=t<<8,t=1431655765&(_>>>1^S),S^=t,_^=t<<1,t=_<<8|S>>>20&240,_=S<<24|S<<8&16711680|S>>>8&65280|S>>>24&240,S=t;for(var C=0;C<g.length;++C){g[C]?(_=_<<2|_>>>26,S=S<<2|S>>>26):(_=_<<1|_>>>27,S=S<<1|S>>>27),_&=-15,S&=-15;var k=n[_>>>28]|r[_>>>24&15]|o[_>>>20&15]|i[_>>>16&15]|a[_>>>12&15]|s[_>>>8&15]|l[_>>>4&15],E=c[S>>>28]|u[S>>>24&15]|f[S>>>20&15]|d[S>>>16&15]|p[S>>>12&15]|h[S>>>8&15]|m[S>>>4&15];t=65535&(E>>>16^k),y[b++]=k^t,y[b++]=E^t<<16}}return y}function h(e,t,n,r){var o,p,h=32===e.length?3:9;o=3===h?r?[30,-2,-2]:[0,32,2]:r?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var m=t[0],v=t[1];p=252645135&(m>>>4^v),v^=p,m^=p<<4,p=65535&(m>>>16^v),v^=p,m^=p<<16,p=858993459&(v>>>2^m),m^=p,v^=p<<2,p=16711935&(v>>>8^m),m^=p,v^=p<<8,p=1431655765&(m>>>1^v),v^=p,m^=p<<1,m=m<<1|m>>>31,v=v<<1|v>>>31;for(var y=0;y<h;y+=3){for(var g=o[y+1],b=o[y+2],w=o[y];w!=g;w+=b){var _=v^e[w],S=(v>>>4|v<<28)^e[w+1];p=m,m=v,v=p^(a[_>>>24&63]|l[_>>>16&63]|u[_>>>8&63]|d[63&_]|i[S>>>24&63]|s[S>>>16&63]|c[S>>>8&63]|f[63&S])}p=m,m=v,v=p}m=m>>>1|m<<31,v=v>>>1|v<<31,p=1431655765&(m>>>1^v),v^=p,m^=p<<1,p=16711935&(v>>>8^m),m^=p,v^=p<<8,p=858993459&(v>>>2^m),m^=p,v^=p<<2,p=65535&(m>>>16^v),v^=p,m^=p<<16,p=252645135&(m>>>4^v),v^=p,m^=p<<4,n[0]=m,n[1]=v}function m(e){e=e||{};var t,n=(e.mode||"CBC").toUpperCase(),o="DES-"+n;t=e.decrypt?r.cipher.createDecipher(o,e.key):r.cipher.createCipher(o,e.key);var i=t.start;return t.start=function(e,n){var o=null;n instanceof r.util.ByteBuffer&&(o=n,n={}),n=n||{},n.output=o,n.iv=e,i.call(t,n)},t}},c0c2:function(e,t,n){},c14c:function(e,t,n){"use strict";n("27af")},c246:function(e,t,n){"use strict";var r=function(){var e=this,t=e._self._c;return t("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!e.schema||e.actioning}},[e.schema?t("div",[e.actionViewVisible&&"block"===e.actionViewMode?e._e():t(e.layout,{tag:"component",attrs:{configs:e.configs,source:e.$attrs.isViewselection?"viewselect":"list"},scopedSlots:e._u([e.configs["list.header"]?{key:"header",fn:function(){return[t(e.configs["list.header"],{tag:"component",attrs:{config:e.configs}})]},proxy:!0}:null,e.configs["list.footer"]?{key:"footer",fn:function(){return[t(e.configs["list.footer"],{tag:"component"})]},proxy:!0}:null,e.configs["list.sider"]?{key:"sider",fn:function(){return[t(e.configs["list.sider"],{tag:"component"})]},proxy:!0}:null,{key:"pagination",fn:function(){return[e.data.size?[e.configs["list.pagination"]?t(e.configs["list.pagination"],{tag:"component",attrs:{total:e.data.count,current:Number(e.query.$limit),pageSize:Number(e.query._size),selections:e.selections,pageSizeOptions:["15","30","50","100"],"show-size-changer":""},on:{change:e.handlePaginationPageChange,showSizeChange:e.handleShowSizeChange}}):t("PaginationSize",{attrs:{total:e.data.count,current:Number(e.query.$limit),pageSize:Number(e.query._size),"show-total":function(t,n){return t?"当前页面 ".concat(n[0],"-").concat(n[1]," 项,选定 ").concat(e.selections.length," 项,共 ").concat(t," 项"):null},pageSizeOptions:["15","30","50","100"],"show-size-changer":""},on:{change:e.handlePaginationPageChange,showSizeChange:e.handleShowSizeChange}})]:e._e()]},proxy:!0},e.actions.length?{key:"actions-none",fn:function(){return[t("ActionGroup",{attrs:{configs:e.configs,actions:e.actions},on:{action:e.handleAction}}),t("a-button",{staticStyle:{"margin-top":"2px","margin-bottom":"2px","margin-right":"16px"},attrs:{type:"primary",icon:"robot"},on:{click:function(t){return e.handleAichatAction()}}},[e._v("AI")])]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[t("ActionGroup",{attrs:{configs:e.configs,actions:e.settingActions},on:{action:e.handleAction}})]},proxy:!0},e.filters.length?{key:"filters",fn:function(){return[t("FilterForm",{attrs:{columns:e.filters,params:{$parent:e.params.$parent}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}})]},proxy:!0}:null,e.treeFilters.length?{key:"tree-filters",fn:function(){return[t("FilterForm",{attrs:{columns:e.treeFilters,params:{$parent:e.params.$parent},layout:"vertical"},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}})]},proxy:!0}:null],null,!0)},[t("list-".concat(e.configs["list.widget"]||"table"),{tag:"component",attrs:{rowKey:e.idName,loading:e.loading,rowSelection:e.rowSelection,columns:e.columns,dataSource:e.dataSource,item:e.configs["list.item"],childrenColumnName:"_childList",rowClassName:e.listSeparateColor,scroll:{x:Number(e.configs["list.scrollX"])||null,y:Number(e.configs["list.scrollY"])||null},source:e.$attrs.isViewselection?"viewselect":"list"},on:{profile:function(t){return e.handleModelProfile(t)},"row-action":e.handleRowAction}})],1),e.actionViewVisible?t("Popup",{class:{"ant-modal-tip":e.actionParams.actionViewTip},attrs:{visible:e.actionViewVisible,title:e.action.name,type:e.actionViewMode,okButtonProps:e.actionOkButtonProps,cancelButtonProps:e.actionCancelButtonProps,width:e.configs["profile.popup.width"],footer:"_profile"===e.action.key||"hide"===e.actionParams.footer?null:void 0},on:{ok:e.submitActionView,close:e.closeActionView,cancel:e.closeActionView},scopedSlots:e._u([e.actionConfigs["form.footer"]?{key:"footer",fn:function(){return[t(e.actionConfigs["form.footer"],{tag:"component",attrs:{action:e.action,submited:e.actionSubmited,values:e.actionModel,modelViewType:e.actionViewType,widget:e.actionViewWidget,parentIds:e.parentIds,params:e.actionParams,commitResult:e.actionCommitResult,selections:e.selections,schema:e.schema},on:{ok:e.submitActionView,close:e.closeActionView}})]},proxy:!0}:null],null,!0)},[e.actionViewVisible?t("ActionView",{attrs:{action:e.action,submited:e.actionSubmited,values:e.actionModel,modelViewType:e.actionViewType,widget:e.actionViewWidget,parentIds:e.parentIds,params:e.actionParams,commitResult:e.actionCommitResult,selections:e.selections,schema:e.schema},on:{commit:e.commitActionView,profile:e.handleModelProfile,close:e.closeActionView}}):e._e(),e.action.params&&e.action.params.autofill?t("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[t("a-col",[t("a-checkbox",{on:{change:e.handleAutoFill}},[e._v(" 自动填充表单")])],1),t("a-col",[t("a-space",[t("a-button",{attrs:{icon:"close",disabled:e.committing},on:{click:e.closeActionView}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary",icon:"check",loading:e.committing},on:{click:e.submitActionView}},[e._v(" 确认 ")])],1)],1)],1):e._e()],1):e._e(),t("a-drawer",{attrs:{placement:"right",visible:e.aiVisible,width:"600"},on:{close:function(t){e.aiVisible=!1}}},[t("template",{slot:"title"},[e._v("AI")]),t("AichatForm")],2)],1):e._e()])},o=[],i={props:{pageKey:{type:String,required:!0},viewKey:{type:String,required:!0},type:{type:String,enum:["model-list","model-profile","model-form","model-sheet","report","nav","com","container","post-list","post-profile","post-form"]},widget:{type:[String,Object],enum:["list-normal","list-table","list-grid","list-menu","list-sheet","list-calendar","list-map","list-kanban","profile-tile","profile-group","form-normal","form-filter","form-setting","form-wizard","form-editor","report-chart","report-crosstab","report-com","report-map","report-canvas","nav-menu","nav-link","nav-flow"]},mode:{type:String,enum:["page","embed","picker","widget"]},title:String,subtitle:String,icon:String,description:String,params:{type:[Object,Array],default:function(){return{}}},options:Object,nestedLevel:{type:Number,default:0},delay:{type:Boolean,default:!1},defaultSelections:{type:[String],default:null}},inject:["page","view"],provide:function(){return{view:this}},activated:function(){},deactivated:function(){}},a={props:{modelId:{type:String},parentIds:Array,parentModel:Object},provide:function(){return{model:this.model}},data:function(){return{}},computed:{hide:function(){var e=this.configs.hide;return e?Array.isArray(e)?e:e.split(","):[]}},methods:{}},s=n("796d"),l=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return f(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),p=c.prototype=s.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,f(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,f(p,"constructor",c),f(c,"constructor",l),l.displayName="GeneratorFunction",f(c,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,r,(function(){return this})),f(p,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=g(e,"string");return"symbol"==c(t)?t:t+""}function g(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){return C(e)||S(e)||_(e)||w()}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function S(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return k(e)}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var E={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},schemaFuncQueue:[],unwatchQuery:null,autoRefreshTimer:null}},computed:{columns:function(){var e,t=this,n=this.$createElement,r=this.idName,o=this.hide,i=this.action,a=((null===(e=this.model)||void 0===e?void 0:e.attrs)||[]).filter((function(e){return!["all","list"].includes(e.hidden)&&!o.includes(e.name)&&e.name!==r&&"model"!==e.metaType&&"link"!==e.type})).filter((function(e){var n,r,o,i=null===(n=e.configs)||void 0===n?void 0:n.find((function(e){return"visibleWhenParent"===e.key}));if(null===(r=t.params)||void 0===r||!r.$parent||!i)return!0;var a=null===(o=t.params)||void 0===o?void 0:o.$parent,s=new Function(Object.keys(a),"return ".concat(i.value));return s.apply(void 0,b(Object.values(a)))})).map((function(e){var r=Object.fromEntries((e.configs||[]).map((function(e){return[e.key,e.value]})));return{dataIndex:e.name,key:e.name,title:e.alias,align:["Integer","Number"].includes(e.metaType)?"right":"left",schema:e,width:r["list.width"],fixed:r["list.fixed"]||!1,ellipsis:"true"===r["list.ellipsis"],customRender:function(r,o,a){return n("Cell",{on:{profile:function(){return t.handleModelProfile(o)},change:function(n){return t.handleCellChange(n,e.name,o)}},attrs:{value:r,row:m(m({},o),{},{$parent:t.params&&t.params.$parent?t.params.$parent:null}),schema:e,editable:t.editable(o,i,e),idName:t.idName,rowIndex:a}})}}})),s=[],l=null;return this.configs&&this.configs["list.collapse.action"]&&(isNaN(Number(this.configs["list.collapse.action"]))?s=this.configs["list.collapse.action"].split(","):l=Number(this.configs["list.collapse.action"])),this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&a.push({title:"操作",key:"_action",fixed:this.configs["list.scrollX"]?"right":null,customRender:function(e,r){var o=null;return o=s.length?[n("span",[t.rowActions(r).filter((function(e){return!s.includes(e.key)})).map((function(e,o){return[o?n("a-divider",{attrs:{type:"vertical"}}):"",n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])]}))]),t.rowActions(r).filter((function(e){return!s.includes(e.key)})).length?n("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(r).filter((function(e){return s.includes(e.key)})).length?n("a-dropdown",{attrs:{trigger:["click"]}},[n("a",{class:"ant-dropdown-link",on:{click:function(e){return e.preventDefault()}}},["更多 ",n("a-icon",{attrs:{type:"down"}})]),n("a-menu",{slot:"overlay"},[t.rowActions(r).filter((function(e){return s.includes(e.key)})).map((function(e,o){return n("a-menu-item",{key:e.id},[n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])])}))])]):""]:l?[n("span",[t.rowActions(r).slice(0,l).map((function(e,o){return[o?n("a-divider",{attrs:{type:"vertical"}}):"",n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])]}))]),t.rowActions(r).slice(0,l).length?n("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(r).slice(l).length?n("a-dropdown",{attrs:{trigger:["click"]}},[n("a",{class:"ant-dropdown-link",on:{click:function(e){return e.preventDefault()}}},["更多 ",n("a-icon",{attrs:{type:"down"}})]),n("a-menu",{slot:"overlay"},[t.rowActions(r).slice(l).map((function(e,o){return n("a-menu-item",{key:e.id},[n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])])}))])]):""]:t.rowActions(r).map((function(e,o){return[o?n("a-divider",{attrs:{type:"vertical"}}):"",n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])]})),{children:o}},actions:function(e){return t.rowActions(e)}}),a},configs:function(){return this.schema&&this.schema.configs&&this.schema.configs.length?Object.fromEntries(this.schema.configs.map((function(e){return[e.key,e.value]}))):null},filters:function(){var e=this;return this.model&&this.model.filters?this.model.filters.filter((function(t){return!e.hide.includes(t.name)&&!["tree-select"].includes(t.control)})).map((function(t){var n,r=null===(n=e.model)||void 0===n||null===(n=n.attrs)||void 0===n?void 0:n.find((function(e){return e.name===t.name}));return m(m({},r),t)})):[]},treeFilters:function(){var e=this;return this.model&&this.model.filters?this.model.filters.filter((function(t){return!e.hide.includes(t.name)&&["tree-select"].includes(t.control)})).map((function(t){var n,r=null===(n=e.model)||void 0===n||null===(n=n.attrs)||void 0===n?void 0:n.find((function(e){return e.name===t.name}));return m(m({},r),t)})):[]},filterValues:function(){var e=[].concat(b(this.filters),b(this.treeFilters)).filter((function(e){return!!e.value})).map((function(e){return[e.name,e.value]}));return m(m({},Object.fromEntries(e)),this.defaults)},dataSource:function(){var e=this,t=this.findAll;if(this.actionModel){var n=t.find((function(t){return t[e.idName]===e.actionModel[e.idName]}));for(var r in n)n[r]!==this.actionModel[r]&&(this.actionModel[r]=n[r])}return t},next:function(){var e=this,t=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[e.idName]===t}));return this.findAll[n+1]},previous:function(){var e=this,t=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[e.idName]===t}));return this.findAll[n-1]}},created:function(){var e=this;return p(u().m((function t(){var n;return u().w((function(t){while(1)switch(t.n){case 0:if(e.schema){t.n=2;break}return t.n=1,e.loadSchema();case 1:while(e.schemaFuncQueue.length>0)n=e.schemaFuncQueue.pop(),n();case 2:e.query=e.params.route&&e.params.route.query.close?m(m(m({},e.query),e.params.filters),e.filterValues):m(m(m(m({},e.query),e.params.filters),e.filterValues),e.$route.query);case 3:return t.a(2)}}),t)})))()},activated:function(){var e=this;this.schema?this.configs&&this.configs["auto-refresh"]&&(this.autoRefreshTimer=!0,this.autoRefresh(+this.configs["auto-refresh"])):this.schemaFuncQueue.push((function(){e.configs&&e.configs["auto-refresh"]&&(e.autoRefreshTimer=!0,e.autoRefresh(+e.configs["auto-refresh"]))})),this.parentIds||"page"!==this.mode||l.a.stringify(this.query)!==l.a.stringify(this.$route.query)&&(this.query=m(m({},this.query),this.$route.query),this.$router.push({query:this.query})),this.unwatchQuery=this.$watch("query",{handler:function(e,t){var n=Object.keys(e),r=Object.keys(t),o=n.some((function(t){return!r.includes(t)&&!e[t]}));o||(this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query}))},deep:!0})},deactivated:function(){this.autoRefreshTimer&&clearTimeout(this.autoRefreshTimer),this.autoRefreshTimer=null,this.unwatchQuery&&this.unwatchQuery()},methods:{autoRefresh:function(e){var t=this;return p(u().m((function n(){return u().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.handleRefresh();case 1:t.autoRefreshTimer&&(t.autoRefreshTimer=setTimeout((function(){return t.autoRefresh(e)}),e));case 2:return n.a(2)}}),n)})))()},load:function(){var e=arguments,t=this;return p(u().m((function n(){var r,o;return u().w((function(n){while(1)switch(n.n){case 0:return r=e.length>0&&void 0!==e[0]&&e[0],n.n=1,t.loadData({query:t.query,mute:r});case 1:return o=n.v,n.a(2,o)}}),n)})))()},handleNext:function(){this.actionModel=m({},this.next)},handlePrevious:function(){this.actionModel=m({},this.previous)},handleModelProfile:function(e){var t={name:this.titleName?String(this.formatter(e,e[this.titleName],this.titleSchema)):"详情",key:"_profile"};this.action=t,this.actionModel=m({},e),this.actionParams={$parent:this.params.$parent},this.handleProfile(t)},handleProfile:function(e){var t=this.actionModel;this.$store.commit("setSubView",!1),this.parentIds||"page"!==this.mode?(this.actionViewMode="drawer",this.actionViewType="Profile",this.showActionView()):this.$router.push("".concat(this.$route.path,"/").concat(t[this.idName]))},handleFilterChange:function(e,t){this.query[e]?this.query[e]=t:this.$set(this.query,e,t)},listSeparateColor:function(e,t){var n=this.configs["list.separateKey"]||null,r=this.configs["list.separateValue"]||null;return n&&r&&e[n]===r?"list-separate-color":""},onFileChange:function(e,t){var n=e.list?e.list:"file";this.handleAction(e,null,v({},n,t))},editable:function(e,t,n){var r,o=m({},this.configs);if(null!==t&&void 0!==t&&null!==(r=t.configs)&&void 0!==r&&r.length){var i=Object.fromEntries(t.configs.map((function(e){return[e.key,e.value]})));o=m(m({},o),i)}var a=o["list.actionRowNotEditing.key"]&&o["list.actionRowNotEditing.value"]?this.actionRowEditing&&!o["list.actionRowNotEditing.value"].split(",").includes(e[o["list.actionRowNotEditing.key"]]):this.actionRowEditing;if(null!==t&&void 0!==t&&t.list){var s=t.list.split(",");return a&&s.includes(n.name)}return a}}},O={props:{paginationMode:{type:String,default:"auto",enum:["front","server","auto"]},paginationType:{type:String,default:"size",enum:["size","node","time"]}},data:function(){return{query:{$limit:1,$page:1,_size:15}}},methods:{handlePaginationPageChange:function(e){this.query.$limit=e,this.clearSelection&&this.clearSelection()},handleShowSizeChange:function(e,t){this.query._size=t,this.clearSelection&&this.clearSelection()}}};function T(e){return I(e)||N(e)||x(e)||A()}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function N(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function I(e){if(Array.isArray(e))return j(e)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var P={props:{pickerMode:{type:String,enum:["single","multiple"],default:"multiple"}},data:function(){return{selections:[]}},computed:{rowSelection:function(){var e=this;return this.pickerMode&&this.schema.handle?!this.bulkActions.length&&!this.pickerMode||this.actionRowEditing?null:{selectedRowKeys:this.selections.map((function(t){return t[e.idName]})),onChange:this.handleSelectionChange,getCheckboxProps:function(t){var n=!0,r=e.configs["list.row.selectable"];if(r){var o=new Function(Object.keys(t),"return "+r);n=o.apply(void 0,T(Object.values(t)))}return{props:{disabled:!n}}},type:"single"===this.pickerMode?"radio":"checkbox"}:null}},methods:{getSelection:function(){},addSelection:function(){},removeSelection:function(){},clearSelection:function(){"picker"===this.mode&&"multiple"===this.pickerMode||(this.selections=[])},handleSelectionChange:function(e){var t=this.idName,n=this.dataSource,r=function(e,n){for(var o=0;o<e.length;o++){if(e[o][t]===n)return e[o];if(e[o]._childList){var i=r(e[o]._childList,n);if(i)return i}}return null};"picker"===this.mode&&"multiple"===this.pickerMode?(this.selections=[].concat(T(this.selections),T(e.map((function(e){return r(n,e)})).filter((function(e){return e})))),this.selections=Array.from(new Set(this.selections.map((function(e){return JSON.stringify(e)})))).map((function(e){return JSON.parse(e)})),this.selections=this.selections.filter((function(n){var r=e.findIndex((function(e){return e===n[t]}));return-1!==r}))):this.selections=e.map((function(e){return r(n,e)})),this.$emit("selected",this.selections)}}},R=n("cf8b"),D=n("c6e8");function B(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return L(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(L(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,L(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,L(f,"constructor",c),L(c,"constructor",l),l.displayName="GeneratorFunction",L(c,o,"GeneratorFunction"),L(f),L(f,o,"Generator"),L(f,r,(function(){return this})),L(f,"toString",(function(){return"[object Generator]"})),(B=function(){return{w:i,m:d}})()}function L(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}L=function(e,t,n,r){function i(t,n){L(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},L(e,t,n,r)}function M(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function U(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){M(i,r,o,a,s,"next",e)}function s(e){M(i,r,o,a,s,"throw",e)}a(void 0)}))}}var V=function(e,t){return q.apply(this,arguments)};function q(){return q=U(B().m((function e(t,n){var r,o,i,a,s,l,c,u;return B().w((function(e){while(1)switch(e.n){case 0:if("refresh"!==t){e.n=2;break}if("true"!==n.configs["flush-badges"]){e.n=1;break}return e.n=1,null===(i=window)||void 0===i||null===(i=i.sidebar)||void 0===i?void 0:i.setBadges();case 1:return e.a(2);case 2:if(a=null===t||void 0===t||null===(r=t.params)||void 0===r||null===(r=r.commit)||void 0===r?void 0:r.type,s=(null!==(o=n.storeNamespace.match(new RegExp(":id","g")))&&void 0!==o?o:[]).length,a&&["load","loadAll"].includes(a)&&n.load&&n.load(),!a||!["parent.load","parent.loadAll"].includes(a)){e.n=4;break}if(c=n.view&&n.view.load,!c){e.n=3;break}return e.n=3,n.view.load();case 3:s&&n.load&&n.load();case 4:if(a&&["loadSchema","loadAll"].includes(a)&&n.loadSchema&&n.loadSchema(),!a||!["parent.loadSchema","parent.loadAll"].includes(a)){e.n=6;break}if(u=n.view&&this.view.loadSchema,!u){e.n=5;break}return e.n=5,n.view.loadSchema();case 5:s&&n.loadSchema&&n.loadSchema();case 6:if("true"!==n.configs["flush-badges"]){e.n=7;break}return e.n=7,null===(l=window)||void 0===l||null===(l=l.sidebar)||void 0===l?void 0:l.setBadges();case 7:return e.a(2)}}),e,this)}))),q.apply(this,arguments)}function F(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return K(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(K(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,K(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,K(f,"constructor",c),K(c,"constructor",l),l.displayName="GeneratorFunction",K(c,o,"GeneratorFunction"),K(f),K(f,o,"Generator"),K(f,r,(function(){return this})),K(f,"toString",(function(){return"[object Generator]"})),(F=function(){return{w:i,m:d}})()}function K(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}K=function(e,t,n,r){function i(t,n){K(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},K(e,t,n,r)}function $(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$(i,r,o,a,s,"next",e)}function s(e){$(i,r,o,a,s,"throw",e)}a(void 0)}))}}var G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t?n&&n.viewMode&&"download"===n.viewMode?window.open("/file/getfile/".concat(t,"?_time=").concat((new Date).getTime(),"&viewMode=").concat(n.viewMode),"_blank"):window.open("/file/getfile/".concat(t,"?_time=").concat((new Date).getTime()),"_blank"):window.open("".concat(e,"/api/download?_time=").concat((new Date).getTime()),"_blank")},z={methods:{handleFile:function(e){var t=this;return H(F().m((function n(){var r,o,i,a;return F().w((function(n){while(1)switch(n.n){case 0:if(r=e.list?e.list:"file",o=new FormData,i=t.idName,t.actionModel[r]){n.n=1;break}return n.a(2);case 1:return o.append(r,t.actionModel[r][0]),t.actionModel[i]&&o.append(i,t.actionModel[i]),a=t.$message.loading("正在".concat(e.name,",请稍等..."),0),n.n=2,t.saveData({key:e.key,data:o});case 2:V(e,t),a();case 3:return n.a(2)}}),n)})))()},handleFilesUpload:function(e){var t=this;return H(F().m((function e(){return F().w((function(e){while(1)switch(e.n){case 0:t.actionViewWidget="upload-form",t.showActionView();case 1:return e.a(2)}}),e)})))()},handleDownload:function(e){var t=this;return H(F().m((function n(){var r,o;return F().w((function(n){while(1)switch(n.n){case 0:if(r=function(){var n=H(F().m((function n(){var r,o,i;return F().w((function(n){while(1)switch(n.n){case 0:return r=t.$message.loading("正在".concat(e.name,",请稍等..."),0),n.n=1,t.executeData({key:e.key,data:t.actionModel||t.selections[0]});case 1:o=n.v,r(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,G(t.apiBaseURL,i,{viewMode:"download"}));case 2:return n.a(2)}}),n)})));return function(){return n.apply(this,arguments)}}(),!e.params||!e.params.confirm){n.n=1;break}o=e.params.confirm,t.$confirm({title:o.title||e.name,content:o.content||"您确认要执行【".concat(e.name,"】操作吗?"),onOk:function(){r()}}),n.n=2;break;case 1:return n.n=2,r();case 2:return n.a(2)}}),n)})))()},handleExport:function(e){var t=arguments,n=this;return H(F().m((function r(){var o,i,a;return F().w((function(r){while(1)switch(r.n){case 0:if(o=t.length>1&&void 0!==t[1]&&t[1],i=function(){var t=H(F().m((function t(){var r,i,a;return F().w((function(t){while(1)switch(t.n){case 0:return r=n.$message.loading("正在".concat(e.name,",请稍等..."),0),t.n=1,n.executeData({key:e.key,data:n.selections.length?o?n.selections[0]:n.selections:n.actionModel||{}});case 1:i=t.v,r(),i instanceof Error||(a=i&&i.file_id?i.file_id:null,G(n.apiBaseURL,a));case 2:return t.a(2)}}),t)})));return function(){return t.apply(this,arguments)}}(),!e.params||!e.params.confirm){r.n=1;break}a=e.params.confirm,n.$confirm({title:a.title||e.name,content:a.content||"您确认要执行【".concat(e.name,"】操作吗?"),onOk:function(){i()}}),r.n=2;break;case 1:return r.n=2,i();case 2:return r.a(2)}}),r)})))()},handleExportFilter:function(e){var t=this;return H(F().m((function n(){var r,o;return F().w((function(n){while(1)switch(n.n){case 0:if(r=function(){var n=H(F().m((function n(){var r,o,i;return F().w((function(n){while(1)switch(n.n){case 0:return r=t.$message.loading("正在".concat(e.name,",请稍等..."),0),n.n=1,t.executeData({key:e.key,data:t.selections.length?t.selections:{},query:t.query});case 1:o=n.v,r(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,G(t.apiBaseURL,i));case 2:return n.a(2)}}),n)})));return function(){return n.apply(this,arguments)}}(),!e.params||!e.params.confirm){n.n=1;break}o=e.params.confirm,t.$confirm({title:o.title||e.name,content:o.content||"您确认要执行【".concat(e.name,"】操作吗?"),onOk:function(){r()}}),n.n=2;break;case 1:return n.n=2,r();case 2:return n.a(2)}}),n)})))()},handleExportOne:function(e){this.handleExport(e,!0)}}};function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e){var t=J(e,"string");return"symbol"==Y(t)?t:t+""}function J(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function ee(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return te(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(te(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,te(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,te(f,"constructor",c),te(c,"constructor",l),l.displayName="GeneratorFunction",te(c,o,"GeneratorFunction"),te(f),te(f,o,"Generator"),te(f,r,(function(){return this})),te(f,"toString",(function(){return"[object Generator]"})),(ee=function(){return{w:i,m:d}})()}function te(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}te=function(e,t,n,r){function i(t,n){te(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},te(e,t,n,r)}function ne(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function re(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ne(i,r,o,a,s,"next",e)}function s(e){ne(i,r,o,a,s,"throw",e)}a(void 0)}))}}var oe=n("9f89"),ie=/\${([\s\S]+?)}/g,ae={methods:{handleViewPicker:function(e){var t=this;return re(ee().m((function e(){return ee().w((function(e){while(1)switch(e.n){case 0:t.actionViewWidget="picker-view-form",t.showActionView();case 1:return e.a(2)}}),e)})))()},handleTreeSelect:function(e){var t=this;return re(ee().m((function n(){var r,o,i,a,s,l,c,u,f,d;return ee().w((function(n){while(1)switch(n.n){case 0:return r=e.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,l=r.valueName,c=r.valuesName,t.actioning=!0,u=Q(Q({},t.actionModel),{},{$parent:t.actionParams.$parent}),n.n=1,t.$api.get(oe(o,{reInterpolate:ie})(u));case 1:return f=n.v,n.n=2,t.$api.get(oe(i,{reInterpolate:ie})(u));case 2:d=n.v,t.actioning=!1,t.actionParams=Q(Q({},t.actionParams),{},{treeData:f.data&&f.data.collection,data:d.data&&d.data.collection,keyName:a,titleName:s,valueName:l,valuesName:c}),t.actionViewWidget="picker-tree-form",t.showActionView();case 3:return n.a(2)}}),n)})))()},handleTransferSelect:function(e){var t=this;return re(ee().m((function n(){var r,o,i,a,s,l,c,u,f,d,p;return ee().w((function(n){while(1)switch(n.n){case 0:return r=e.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,l=r.valueName,c=r.valuesName,u=r.selected,t.actioning=!0,f=Q(Q({},t.actionModel),{},{$parent:t.actionParams.$parent}),n.n=1,t.$api.get(oe(o,{reInterpolate:ie})(f));case 1:return d=n.v,n.n=2,t.$api.get(oe(i,{reInterpolate:ie})(f));case 2:p=n.v,t.actioning=!1,t.actionParams=Q(Q({},t.actionParams),{},{treeData:d.data&&d.data.collection,data:p.data&&p.data.collection,keyName:a,titleName:s,valueName:l,valuesName:c,selected:u}),t.actionViewWidget="picker-transfer-form",t.showActionView();case 3:return n.a(2)}}),n)})))()},handleAlgorithm:function(){var e=this;return re(ee().m((function t(){return ee().w((function(t){while(1)switch(t.n){case 0:e.actionViewWidget="algorithm-form",e.actionViewMode="fullscreen",e.showActionView();case 1:return t.a(2)}}),t)})))()},handleSelectViewPicker:function(e){var t=this;return re(ee().m((function n(){var r,o,i,a,s;return ee().w((function(n){while(1)switch(n.n){case 0:return r=e.params,o=r.treeUrl,i=r.valuesName,t.actioning=!0,a=Q(Q({},t.actionModel),{},{$parent:t.actionParams.$parent}),n.n=1,t.$api.get(oe(o,{reInterpolate:ie})(a));case 1:s=n.v,t.actioning=!1,t.actionParams=Q(Q({},t.actionParams),{},{treeData:s.data&&s.data.collection,valuesName:i}),t.showActionView();case 2:return n.a(2)}}),n)})))()}}};function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return fe(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(fe(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,fe(f,"constructor",c),fe(c,"constructor",l),l.displayName="GeneratorFunction",fe(c,o,"GeneratorFunction"),fe(f),fe(f,o,"Generator"),fe(f,r,(function(){return this})),fe(f,"toString",(function(){return"[object Generator]"})),(ue=function(){return{w:i,m:d}})()}function fe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fe=function(e,t,n,r){function i(t,n){fe(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},fe(e,t,n,r)}function de(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function pe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){de(i,r,o,a,s,"next",e)}function s(e){de(i,r,o,a,s,"throw",e)}a(void 0)}))}}function he(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e){var t=ve(e,"string");return"symbol"==se(t)?t:t+""}function ve(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ye={mixins:[z,ae],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(e){var t=Object.fromEntries((e.configs||[]).map((function(e){return[e.key,e.value]})));this.formMode="create","true"===(null===t||void 0===t?void 0:t.isNewLeafNode)&&this.parentIdName&&this.actionModel&&(this.actionModel=he({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(e){this.formMode="update",this.showActionView()},handleDelete:function(e){var t=this;return pe(ue().m((function n(){return ue().w((function(n){while(1)switch(n.n){case 0:t.$confirm({title:e.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var n=pe(ue().m((function n(){return ue().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.removeData({key:e.key,method:e.method||"delete",data:t.profile?[t.profile[t.idName]]:t.selections.length?t.selections.map((function(e){return e[t.idName]})):[t.actionModel[t.idName]]});case 1:t.selections=[],t.id?t.handleBack():t.findAll.length||t.load&&t.load(),V(e,t);case 2:return n.a(2)}}),n)})));function r(){return n.apply(this,arguments)}return r}()});case 1:return n.a(2)}}),n)})))()},handleBulkEdit:function(){this.bulkAction=ce({},this.action),this.actionRowEditing=!0},handleCancelEdit:function(){var e=this;return pe(ue().m((function t(){return ue().w((function(t){while(1)switch(t.n){case 0:e.editions.length?e.editions.length&&e.$confirm({title:"提示",content:"已编辑数据将无法保存, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){e.closeActionView()}}):e.closeActionView();case 1:return t.a(2)}}),t)})))()},handleSaveEdit:function(){var e=arguments,t=this;return pe(ue().m((function n(){return ue().w((function(n){while(1)switch(n.n){case 0:return e.length>0&&void 0!==e[0]?e[0]:t.formAction,t.actioning=!0,n.n=1,t.commitActionView(t.editions);case 1:t.actioning=!1;case 2:return n.a(2)}}),n)})))()},handleOne:function(e){var t=this;return pe(ue().m((function n(){return ue().w((function(n){while(1)switch(n.n){case 0:t.handleBulk(e,1);case 1:return n.a(2)}}),n)})))()},handleBulk:function(e){var t=arguments,n=this;return pe(ue().m((function r(){var o,i,a,s,l,c,u,f,d,p,h,m;return ue().w((function(r){while(1)switch(r.n){case 0:if(o=t.length>1&&void 0!==t[1]?t[1]:0,i=n.selections.length,a=n.action.params,s=void 0===a?{}:a,l=s.actionAfterDriver,c=void 0===l?{}:l,u=c.redirect,f=void 0!==u&&u,!(o&&i>o)){r.n=1;break}return r.a(2,n.$message.error("所选数据不允许超过 ".concat(o," 条")));case 1:d=i>1?" ".concat(i," 条"):"",p={method:e.method||"post",key:e.key,data:n.selections.length?n.selections:[n.actionModel],type:e.params&&e.params.commit?e.params.commit.type:""},h=function(){e.params&&e.params.commit&&"remove"===e.params.commit.type&&(n.id?n.handleBack():n.findAll.length||n.load&&n.load())},m=function(e){f&&e.redirectUrl&&n.$router.push(e.redirectUrl)},n.$confirm({title:e.name,content:"确认对选定的".concat(d,"数据进行【").concat(e.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:e.params&&e.params.sync?function(){var t=n.saveData(p);h(),V(e,n),m(t)}:pe(ue().m((function t(){var r;return ue().w((function(t){while(1)switch(t.n){case 0:return t.n=1,n.saveData(p);case 1:r=t.v,h(),V(e,n),m(r);case 2:return t.a(2)}}),t)})))});case 2:return r.a(2)}}),r)})))()},handleEver:function(e){var t=this;return pe(ue().m((function n(){var r;return ue().w((function(n){while(1)switch(n.n){case 0:return r=t.$message.loading("正在".concat(e.name,",请稍等..."),0),n.n=1,t.executeData({key:e.key,data:{},query:t.query?t.query:{}});case 1:r();case 2:return n.a(2)}}),n)})))()},handleRouter:function(e){var t=this;return pe(ue().m((function n(){var r;return ue().w((function(n){while(1)switch(n.n){case 0:r=e.legend,r=Object(D["a"])(r,ce({$parent:t.params.$parent,user:t.$store.state.user},t.actionModel)),t.$router.push(r);case 1:return n.a(2)}}),n)})))()},handleLink:function(e){var t=this;return pe(ue().m((function n(){var r;return ue().w((function(n){while(1)switch(n.n){case 0:r=e.legend,r=Object(D["a"])(r,ce({$parent:t.params.$parent,user:t.$store.state.user},t.actionModel)),window.open(r,"_blank");case 1:return n.a(2)}}),n)})))()},handleBlank:function(e){var t=this;this.$confirm({title:e.name,content:"确认对选定的数据进行【".concat(e.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var n=pe(ue().m((function n(){var r,o;return ue().w((function(n){while(1)switch(n.n){case 0:return r=e.key?"".concat(t.pageKey,"/").concat(e.key):e.id,n.n=1,t.$api[e.method.toLowerCase()||"post"]("api/".concat(r),t.selections.length?t.selections:[t.actionModel]);case 1:o=n.v,200===o.data.status?window.open(o.data.data.openNewUrl,"_blank"):t.$message.error(o.data.content);case 2:return n.a(2)}}),n)})));function r(){return n.apply(this,arguments)}return r}()})},handleRefresh:function(){var e=this;return pe(ue().m((function t(){var n,r;return ue().w((function(t){while(1)switch(t.n){case 0:if(!e.load){t.n=3;break}return t.n=1,e.load();case 1:return n=t.v,t.n=2,V("refresh",e);case 2:n instanceof Error&&(r=n.response.data.code,404===r&&e.handleBack());case 3:return t.a(2)}}),t)})))()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(e){this.defaultModel||(this.defaultModel=ce({},this.actionModel));var t=this.schema.id,n=e.target.checked,r=JSON.parse(localStorage.getItem("form_".concat(t)));if(r)for(var o in r)n?this.$set(this.actionModel,o,r[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function ge(e){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function be(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return we(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(we(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,we(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,we(f,"constructor",c),we(c,"constructor",l),l.displayName="GeneratorFunction",we(c,o,"GeneratorFunction"),we(f),we(f,o,"Generator"),we(f,r,(function(){return this})),we(f,"toString",(function(){return"[object Generator]"})),(be=function(){return{w:i,m:d}})()}function we(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}we=function(e,t,n,r){function i(t,n){we(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},we(e,t,n,r)}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e,t,n){return(t=ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){var t=Ee(e,"string");return"symbol"==ge(t)?t:t+""}function Ee(e,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Oe(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Te(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Oe(i,r,o,a,s,"next",e)}function s(e){Oe(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ae={methods:{handleFlowReport:function(e){var t=this;return Te(be().m((function n(){var r,o;return be().w((function(n){while(1)switch(n.n){case 0:return r=t.actionModel,t.actionConfirmMode=t.actioning=!0,n.n=1,t.saveData({key:e.key,data:Se({},r)});case 1:if(o=n.v,t.actionConfirmMode=t.actioning=!1,o.data){n.n=2;break}return n.a(2);case 2:t.actionModel=Se(Se({},r),{},{confirm:1,todo_actors:[]}),t.actionViewWidget=t.getActionWidget(e)||"workflow-report",t.actionParams.flow=o,t.actionViewVisible=!0;case 3:return n.a(2)}}),n)})))()},handleFlowCheck:function(e){var t=this;return Te(be().m((function n(){var r,o;return be().w((function(n){while(1)switch(n.n){case 0:return r=t.actionModel,t.actionConfirmMode=t.actioning=!0,n.n=1,t.saveData({key:e.key,data:Se({},r)});case 1:if(o=n.v,t.actionConfirmMode=t.actioning=!1,o.data){n.n=2;break}return n.a(2);case 2:t.actionViewWidget=t.getActionWidget(e)||"workflow-report",t.actionModel=Se(Se({},r),{},{data:Se({},o.data),confirm:1,deal_note:"",flow_action_name:"submit",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),t.actionParams.flow=o,t.actionViewVisible=!0;case 3:return n.a(2)}}),n)})))()},handleFlowReassign:function(e){var t=this;return Te(be().m((function n(){var r,o;return be().w((function(n){while(1)switch(n.n){case 0:return r=t.actionModel,t.actionConfirmMode=t.actioning=!0,n.n=1,t.saveData({key:e.key,data:Se({},r)});case 1:if(o=n.v,t.actionConfirmMode=t.actioning=!1,o.data){n.n=2;break}return n.a(2);case 2:t.actionViewWidget=t.getActionWidget(e)||"workflow-report",t.actionModel=Se(Se({},r),{},{data:Se({},o.data),confirm:1,deal_note:"",flow_action_name:"reassign",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),t.actionParams.flow=o,t.actionViewVisible=!0;case 3:return n.a(2)}}),n)})))()},handleFlowQuery:function(e){var t=this;return Te(be().m((function n(){var r,o;return be().w((function(n){while(1)switch(n.n){case 0:return r=t.actionModel,t.actionConfirmMode=t.actioning=!0,n.n=1,t.saveData({key:e.key,data:Se({},r)});case 1:if(o=n.v,t.actionConfirmMode=t.actioning=!1,o.data){n.n=2;break}return n.a(2);case 2:t.actionViewWidget=t.getActionWidget(e)||"workflow-report",t.actionParams.flow=o,t.actionViewVisible=!0;case 3:return n.a(2)}}),n)})))()},getActionWidget:function(e){var t,n=null;return null!==(t=e.configs)&&void 0!==t&&t.length&&(n=Object.fromEntries(e.configs.map((function(e){return[e.key,e.value]})))),n&&n["action.widget"]?n["action.widget"]:void 0}}};function xe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ne(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ne(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ne(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Ne(f,"constructor",c),Ne(c,"constructor",l),l.displayName="GeneratorFunction",Ne(c,o,"GeneratorFunction"),Ne(f),Ne(f,o,"Generator"),Ne(f,r,(function(){return this})),Ne(f,"toString",(function(){return"[object Generator]"})),(xe=function(){return{w:i,m:d}})()}function Ne(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ne=function(e,t,n,r){function i(t,n){Ne(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ne(e,t,n,r)}function Ie(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function je(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ie(i,r,o,a,s,"next",e)}function s(e){Ie(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Pe={methods:{commit:function(){return je(xe().m((function e(){return xe().w((function(e){while(1)switch(e.n){case 0:return e.a(2)}}),e)})))()}}},Re=n("8320");function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Be(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Le(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Le(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Le(f,"constructor",c),Le(c,"constructor",l),l.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,r,(function(){return this})),Le(f,"toString",(function(){return"[object Generator]"})),(Be=function(){return{w:i,m:d}})()}function Le(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,n,r){function i(t,n){Le(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Le(e,t,n,r)}function Me(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ue(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Me(i,r,o,a,s,"next",e)}function s(e){Me(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e,t,n){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e){var t=$e(e,"string");return"symbol"==De(t)?t:t+""}function $e(e,t){if("object"!=De(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var He={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Ge={none:function(e,t){return 0===e&&!t},single:function(e,t){return 1===e||t},somewhat:function(e,t){return e>0||t},mulpitle:function(e,t){return e>1&&!t}},ze={mixins:[ye,Ae,Pe,Re["a"]],data:function(){return{action:null,actioning:!1,submitting:!1,actionViewMode:"modal",actionViewType:"Form",actionViewWidget:"normal-form",actionViewVisible:!1,actionModel:null,actionParams:{},actionViewShowRules:[],actionSubmited:0,actionConfirmMode:!1,actionRowEditing:!1,actionCommitResult:{template:null,data:null},defaultModel:null,unwatchs:[],editions:[],bulkAction:null,preview:!1}},computed:{actions:function(){var e=this,t=this.model.actions;if(!t)return[];var n=this.selections.length||0,r=!!this.profile;return t.filter((function(t){var o=!0,i=t.selected,a=t.action;return i&&Ge[i]&&(o=Ge[i](n,r)),"single"===t.selected&&"profile"===a&&r&&(o=!1),o&&!e.actionRowEditing&&e.showAction(t)&&"GET"!==t.method}))},bulkActions:function(){var e=this.model.actions;return e?e.filter((function(e){return["somewhat","mulpitle"].includes(e.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return this.previous||this.next?[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]:[]},settingActions:function(){var e,t,n,r,o,i=[{key:(null===(e=this.bulkAction)||void 0===e?void 0:e.key)||"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1",list:(null===(t=this.bulkAction)||void 0===t?void 0:t.list)||null,configs:(null===(n=this.bulkAction)||void 0===n?void 0:n.configs)||[]},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1",list:(null===(r=this.bulkAction)||void 0===r?void 0:r.list)||null,configs:(null===(o=this.bulkAction)||void 0===o?void 0:o.configs)||[]}];return this.actionRowEditing?i:[{key:"_refresh",name:"",icon:"reload",action:"refresh"}]},inlineActions:function(){return this.model.actions&&this.model.actions.filter((function(e){return["single","somewhat"].includes(e.selected)}))},sheetActions:function(){},firstAction:function(){},lastAction:function(){},actionOkButtonProps:function(){return{props:{loading:this.committing,icon:"check"}}},actionCancelButtonProps:function(){return{props:{disabled:this.committing,icon:"close"}}}},methods:{rowActions:function(e){var t=this;return this.inlineActions.filter((function(n){return t.showAction(n,e)}))},showAction:function(e,t){var n=e.params&&!!e.params.show,r=e.params&&(e.params.show||e.params.hide),o=this.params||this,i=o.$parent;if(!r)return!0;var a=this.profile?[this.profile]:t?[t]:this.selections||[],s=n;return a.length?s=n?a.every((function(e){return Object(R["a"])(r,qe(qe({},e),{},{$parent:i}))})):a.some((function(e){return Object(R["a"])(r,qe(qe({},e),{},{$parent:i}))})):i&&(s=Object(R["a"])(r,{$parent:i})),n?s:!s},actionBeforeDriver:function(e){var t=this;return Ue(Be().m((function n(){var r,o,i,a,s,c,u,f;return Be().w((function(n){while(1)switch(n.p=n.n){case 0:return n.p=0,n.n=1,t.$api.get("/dataset/".concat(e,"?").concat(l.a.stringify(t.$store.state.user)));case 1:if(r=n.v,o=r.data.data,i=void 0===o?[]:o,!i.length){n.n=3;break}if("500"!==i[0].code){n.n=2;break}return t.$message.error(i[0].content),n.a(2,!1);case 2:if("200"!==i[0].code){n.n=3;break}return n.a(2,!0);case 3:n.n=5;break;case 4:n.p=4,f=n.v,f.response||t.$message.error("网络请求错误,请检查您的网络连接。"),a=f.response,s=a.status,c=a.data,u=c&&c.content||"系统错误请与管理员联系。",t.$message.error("".concat(s,", ").concat(u));case 5:return n.a(2)}}),n,null,[[0,4]])})))()},handleRowAction:function(e,t,n){var r=n.target.getElementsByTagName("input");if(this.selections=[t],"file"!==e.action)return this.handleAction(e,t);n.stopPropagation(),r[0]&&void 0===r[0].click()||n.path&&n.path[1].getElementsByTagName("input")[0].click()},handleAction:function(e,t,n){var r=this;return Ue(Be().m((function o(){var i,a,s,l,c;return Be().w((function(o){while(1)switch(o.n){case 0:if(r.action=e,i=r.action.params,a=void 0===i?{}:i,s=a.actionBeforeDriver,l=void 0===s?"":s,!l){o.n=2;break}return o.n=1,r.actionBeforeDriver(l);case 1:if(c=o.v,c){o.n=2;break}return o.a(2,!1);case 2:return t||(t=r.profile||r.selections[0]||{}),["modal","drawer","fullscreen"].includes(e.display)&&(r.actionViewMode=e.display),r.actionModel=qe(qe(qe({},t),n),r.defaults),r.actionParams=qe(qe({},e.params),{},{$parent:r.params.$parent}),"page"===e.display?r.routeAction(e):r.dispatchAction(e),o.a(2,r)}}),o)})))()},handleCellChange:function(e,t,n){var r=this.idName,o=this.editions.find((function(e){return e[r]===n[r]}));o||(o=qe({},n),this.editions.push(o)),o[t]=e},trigger:function(e){var t=this.actions.find((function(t){return t.key===e}));return this.dispatchAction(t),this},dispatchAction:function(e){var t={POST:"handleCreate",PUT:"handleUpdate",DELETE:"handleDelete","e.send-email":"handleSendMail","e.flow-report":"handleFlowReport","e.flow-query":"handleFlowQuery","e.flow-submit":"handleFlowCheck","e.flow-check":"handleFlowCheck","e.flow-open":"handleFlowCheck","e.flow-reassign":"handleFlowReassign",viewSelect:"handleViewPicker",algorithm:"handleAlgorithm"};try{if(e.action&&t[e.action])this[t[e.action]](e);else if(e.action){var n=e.action.replace(/^\S/,(function(e){return e.toUpperCase()}));this["handle".concat(n)](e)}else this[t[e.method]](e)}catch(r){this.$message.error("前端事件异常【".concat(e.name,"】"))}return this},routeAction:function(e){return this.$router.push({path:e.key}),this},showActionView:function(){this.actionViewVisible=!0},submitActionView:function(){this.submitting=!0,this.actionSubmited=(new Date).getTime()},commitActionView:function(e){var t=arguments,n=this;return Ue(Be().m((function r(){var o,i,a,s,l,c,u,f,d,p,h,m,v,y,g,b,w,_,S,C,k,E,O;return Be().w((function(r){while(1)switch(r.n){case 0:if(o=t.length>1&&void 0!==t[1]?t[1]:null,o&&(n.preview=o.preview),i=n.selections,a=n.actionModel,s=n.idName,l=n.editions,c=n.action,u=c.key,f=c.method,d=c.params,p=void 0===d?{}:d,h=p.commit,m=void 0===h?{}:h,v=m.type,y=m.redirectProfile,g=p.autofill,b=p.confirmActionDialog,w=void 0===b?null:b,_=n.schema,S=function(){var t=Ue(Be().m((function t(){var r,c,d,p,h,m,b;return Be().w((function(t){while(1)switch(t.n){case 0:return i.length>1?(delete e[s],e=i.map((function(t){return qe(qe({},t),e)}))):a&&!l.length&&(e=qe(qe({},a),e)),r=Object.keys(e).every((function(t){return!(e[t]instanceof File)&&!(e[t]&&e[t]instanceof Array&&e[t].some((function(e){return e instanceof File})))})),c={},d=Object.keys(e).find((function(t){return e[t]&&e[t]instanceof Array&&e[t].some((function(e){return e instanceof File}))}))?"1":"0","1"===d&&(c.multiple=d),r||(e=n.transformData(e)),t.n=1,n.saveData({data:e,key:u,method:f,query:c,type:v,params:o});case 1:if(p=t.v,p){if(g){for(b in h=qe({},p),m=n.filterColumns().map((function(e){return e.name})),h)m.includes(b)||delete h[b];localStorage.setItem("form_".concat(_.id),JSON.stringify(h))}n.actionCommitResult.data=function(){return{data:p}},y&&n.handleModelProfile&&n.handleModelProfile(p),n.id&&v&&"remove"===v&&n.handleBack()}V({params:{commit:{type:v}}},n);case 2:return t.a(2)}}),t)})));return function(){return t.apply(this,arguments)}}(),!w){r.n=1;break}C=/\$\{(\w+)\}/g,k=function(e){return w.content.replace(C,(function(t){var r=t.substring(2,t.length-1),o=n.columns.find((function(e){return e.key===r}))||null;return n.formatter(null,e[r],null===o||void 0===o?void 0:o.schema)}))},E=i.map((function(e){return k(e)})),O="summary"===w.type?E[0]:E.join(","),n.$confirm({title:"请再次确认以下信息,确认无误后提交!",content:"".concat(O,"。"),onOk:function(){return Ue(Be().m((function e(){return Be().w((function(e){while(1)switch(e.n){case 0:return e.n=1,S();case 1:return e.a(2)}}),e)})))()}}),r.n=2;break;case 1:return r.n=2,S();case 2:return r.a(2)}}),r)})))()},filterColumns:function(){var e=this.action,t=this.params,n=this.model,r=this.hide,o=this.formMode,i=e&&e.view?e.view.model.attrs:t&&t.attrs?t.attrs:n.attrs?n.attrs:[];if(e&&e.list){var a=this.action.list.split(",");return i.filter((function(e){return!r.includes(e.name)&&a.includes(e.name)}))}return i.filter((function(e){return He[o].includes(e.access)&&!r.includes(e.name)&&"collection"!==e.metaType&&"model"!==e.metaType&&"link"!==e.type}))},transformData:function(e){var t=new FormData;for(var n in e)if("object"!==De(e[n])||e[n]instanceof File)t.append("".concat(n),e[n]);else for(var r in e[n])Array.isArray(e[n])?t.append("".concat(n),e[n][r]instanceof File||"object"!==De(e[n][r])?e[n][r]:JSON.stringify(e[n][r])):t.append("".concat(n,".").concat(r),e[n][r]instanceof File||"object"!==De(e[n][r])?e[n][r]:JSON.stringify(e[n][r]));return t},closeActionView:function(e){return this.action=null,this.formModal=null,this.actionViewVisible=!1,this.submitting=!1,this.actionViewMode="modal",this.actionViewType="Form",this.actionViewWidget="normal-form",this.actionViewStoreNamespace=null,this.actionParams={},this.actionCommitResult={template:null,data:null},this.actionRowEditing=!1,this.editions=[],this.clearSelection&&this.clearSelection(),this.defaultModel=null,this},handleUpdateStatus:function(e){e>399&&this.message&&(this.$message.error(this.message),this.resetStatus())},handleUpdateMessage:function(e){var t=this.action&&this.action.configs,n=t&&t.find((function(e){return"result"===e.key}));200===this.status&&e&&(!this.actionConfirmMode&&this.$message.success(e),n?this.actionCommitResult.template=n.value:this.actionConfirmMode||!this.preview&&this.closeActionView()),this.resetStatus()}},activated:function(){this.unwatchs=[this.$watch("status",this.handleUpdateStatus),this.$watch("message",this.handleUpdateMessage)]},deactivated:function(){this.unwatchs.map((function(e){return e()})),this.unwatchs=[]}};function Ye(e){return Ze(e)||Xe(e)||Qe(e)||We()}function We(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qe(e,t){if(e){if("string"==typeof e)return Je(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}function Xe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ze(e){if(Array.isArray(e))return Je(e)}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var et=function(){var e=this,t=e._self._c;return e.$isMobile?t("a-spin",{attrs:{spinning:e.$attrs.loading}},[e.$attrs.dataSource.length?[e.hasChildren||e.isViewSelect?t("a-table",e._b({class:{"list-table-header-selection-checkbox":e.$attrs.rowSelection&&e.$attrs.rowSelection.type&&"checkbox"===e.$attrs.rowSelection.type&&e.showSelectionText},attrs:{columns:[].concat(Ye(e.prefixTitleColumns),[e.titleColumn],Ye(e.contentColumn),Ye(e.isViewSelect?[]:[e.actionColumn])),pagination:!1,size:"middle"}},"a-table",e.$attrs,!1)):t("div",{staticClass:"table"},e._l(e.$attrs.dataSource,(function(n,r){return t("div",{key:r,staticClass:"table-item",on:{click:function(t){return e.$emit("profile",n)}}},[t("div",{staticClass:"table-item-title"},[e._l(e.prefixTitleColumns,(function(e,r){return t("div",{key:r},[t({functional:!0,render:function(){return e.customRender(n[e.dataIndex],n,r)}},{tag:"component"})],1)})),t({functional:!0,render:function(){return e.titleColumn.customRender(n[e.titleColumn.dataIndex],n)}},{tag:"component"})],2),t("a-row",{attrs:{gutter:[16,12],type:"flex"}},e._l(e.contentColumn,(function(r,o){return t("a-col",{key:o,attrs:{span:12}},[t("div",{staticClass:"table-item-content-title"},[e._v(" "+e._s(r.title)+" ")]),t("div",{staticClass:"table-item-content-value"},[t({functional:!0,render:function(){return r.customRender(n[r.dataIndex],n,o)}},{tag:"component"})],1)])})),1)],1)})),0)]:t("a-empty")],2):t("a-table",e._b({class:{"list-table-header-selection-checkbox":e.$attrs.rowSelection&&e.$attrs.rowSelection.type&&"checkbox"===e.$attrs.rowSelection.type&&e.showSelectionText},attrs:{pagination:!1,size:"middle"}},"a-table",e.$attrs,!1))},tt=[];function nt(e){return at(e)||it(e)||ot(e)||rt()}function rt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ot(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}function it(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function at(e){if(Array.isArray(e))return st(e)}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var lt={computed:{isViewSelect:function(){return"viewselect"===this.$attrs.source},hasChildren:function(){var e;return(null===(e=this.$attrs.dataSource)||void 0===e?void 0:e.flatMap((function(e){return e._childList})).filter((function(e){return e})).length)>0},titleColumn:function(){var e=this.$attrs.columns.find((function(e){var t;return"title"===(null===(t=e.schema)||void 0===t?void 0:t.display)}));return null!==e&&void 0!==e?e:this.$attrs.columns[0]},prefixTitleColumns:function(){return this.$attrs.columns.filter((function(e){var t;return null===(t=e.schema)||void 0===t||null===(t=t.configs)||void 0===t?void 0:t.find((function(e){return"card-title-prefix"===e.key&&"true"===e.value}))}))},contentColumn:function(){var e,t=this,n=null!==(e=this.$attrs.columns.filter((function(e){var t;return null===(t=e.schema)||void 0===t||null===(t=t.configs)||void 0===t?void 0:t.find((function(e){return"card-content"===e.key&&"true"===e.value}))})))&&void 0!==e?e:[];return n.length?n:this.$attrs.columns.filter((function(e){return![t.titleColumn].concat(nt(t.prefixTitleColumns)).includes(e)})).slice(0,4)},actionColumn:function(){return this.$attrs.columns.find((function(e){return"_action"===e.key}))},showSelectionText:function(){var e;if(null!==(e=this.$store.state.app.config)&&void 0!==e&&e.length){var t=Object.fromEntries(this.$store.state.app.config.map((function(e){return[e.config_key,e.config_value]})));return"1"===t["show-selection-text"]||!1}return!1}}},ct=lt,ut=(n("4b57"),n("2877")),ft=Object(ut["a"])(ct,et,tt,!1,null,"84223432",null),dt=ft.exports,pt=function(){var e=this,t=e._self._c;return t("a-list",e._b({attrs:{itemLayout:"horizontal",pagination:!1,size:"default",split:!1},scopedSlots:e._u([{key:"renderItem",fn:function(n){var r=n.item;return[t("a-list-item",[t(e.component,{tag:"component",attrs:{item:r}})],1)]}}])},"a-list",e.$attrs,!1))},ht=[],mt={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},vt=mt,yt=Object(ut["a"])(vt,pt,ht,!1,null,null,null),gt=yt.exports,bt={ListTable:dt,ListNormal:gt},wt=function(){var e=this,t=e._self._c;return t("a-form-model",{attrs:{layout:e.layout}},[e._l(e.attrs,(function(n,r){return t("Item",{key:"".concat(r,"-").concat(n.name),style:{width:e.$isMobile?"100%":"auto"},attrs:{formModel:e.actionModel,prop:n.name,schema:n,params:e.params,labelType:!1,isFilter:""},on:{change:function(t){return e.handleItemChange(t,n)},fill:function(t){return e.handleItemFill(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[col.name]"}})})),e.view.configs["filters.collapse"]?t("a-form-model-item",[t("a-popover",{attrs:{trigger:"click",placement:"bottomRight"},scopedSlots:e._u([{key:"content",fn:function(){return e._l(e.columns.slice(e.view.configs["filters.collapse"]),(function(n,r){return t("Item",{key:"".concat(r,"-").concat(n.name),attrs:{formModel:e.actionModel,prop:n.name,schema:n,params:e.params,labelType:!1,isFilter:""},on:{change:function(t){return e.handleItemChange(t,n)},fill:function(t){return e.handleItemFill(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[col.name]"}})}))},proxy:!0}],null,!1,2124004358),model:{value:e.collapse,callback:function(t){e.collapse=t},expression:"collapse"}},[t("a-button",{attrs:{type:"link",icon:"filter"}},[e._v(" 更多筛选")])],1)],1):e._e()],2)},_t=[],St=n("b7f9"),Ct=n("7b4d"),kt={mixins:[St["a"]],components:{Item:Ct["a"]},props:{columns:{type:Array},layout:{type:String,default:"inline"}},computed:{attrs:function(){return this.view.configs["filters.collapse"]?this.columns.slice(0,this.view.configs["filters.collapse"]):this.columns}},data:function(){return{collapse:!1}}},Et=kt,Ot=Object(ut["a"])(Et,wt,_t,!1,null,null,null),Tt=Ot.exports,At=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"inline-block"}},e._l(e.groups,(function(n,r){var o;return t("a-button-group",{key:"group-".concat(r),staticStyle:{"margin-right":"16px","flex-wrap":"wrap"}},[null!==(o=e.$attrs)&&void 0!==o&&null!==(o=o.configs)&&void 0!==o&&o["list.collapse.action-none"]?[isNaN(Number(e.$attrs.configs["list.collapse.action-none"]))?[e._l(n.actions.filter((function(t){return e.$attrs.configs["list.collapse.action-none"].split(",").includes(t.key)})),(function(n){return t("a-button",{key:n.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:n.primary?"primary":"default",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])})),n.actions.filter((function(t){return!e.$attrs.configs["list.collapse.action-none"].split(",").includes(t.key)})).length?t("a-dropdown",{scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",e._l(n.actions.filter((function(t){return!e.$attrs.configs["list.collapse.action-none"].split(",").includes(t.key)})),(function(n){return t("a-menu-item",{key:n.id},[t("a-button",{attrs:{type:"link",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])],1)})),1)]},proxy:!0}],null,!0)},[t("a-button",{staticStyle:{"margin-top":"2px","border-radius":"0 10px 10px 0"}},[t("a-icon",{attrs:{type:"more"}})],1)],1):e._e()]:[e._l(n.actions.slice(0,+e.$attrs.configs["list.collapse.action-none"]),(function(n){return t("a-button",{key:n.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:n.primary?"primary":"default",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])})),n.actions.slice(+e.$attrs.configs["list.collapse.action-none"]).length?t("a-dropdown",{scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",e._l(n.actions.slice(5),(function(n){return t("a-menu-item",{key:n.id},[t("a-button",{attrs:{type:"link",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])],1)})),1)]},proxy:!0}],null,!0)},[t("a-button",{staticStyle:{"margin-top":"2px","border-radius":"0 10px 10px 0"}},[t("a-icon",{attrs:{type:"more"}})],1)],1):e._e()]]:e._l(n.actions,(function(n){return t("a-button",{key:n.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:n.primary?"primary":"default",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])}))],2)})),1)},xt=[];function Nt(e){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(e)}function It(e,t,n){return(t=jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e){var t=Pt(e,"string");return"symbol"==Nt(t)?t:t+""}function Pt(e,t){if("object"!=Nt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Rt={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var e=[];return this.actions.forEach((function(t,n){var r=e.length-1;t.group||!n?e.push({actions:[t]}):e[r].actions.push(t)})),e}},methods:{handleClick:function(e,t){var n=t.target.getElementsByTagName("input");"file"===e.action?(t.stopPropagation(),n[0]&&void 0===n[0].click()||t.path&&t.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",e)},onFileChange:function(e,t){var n=e.list?e.list:"file";this.$emit("action",e,null,It({},n,t))}}},Dt=Rt,Bt=Object(ut["a"])(Dt,At,xt,!1,null,null,null),Lt=Bt.exports,Mt=function(){var e=this,t=e._self._c;return t("div",[e.$attrs.params.actionViewTip?t("a-alert",{staticStyle:{margin:"0 -24px 8px","white-space":"pre-line"},attrs:{message:e.$attrs.params.actionViewTip,"show-icon":"",banner:""}}):e._e(),t(e.createView,e._g(e._b({tag:"component",attrs:{pageKey:e.page.pageKey,viewKey:e.action.key||e.action.method.toLowerCase(),delay:!0,action:e.action}},"component",e.$attrs,!1),e.$listeners))],1)},Ut=[],Vt=n("0959"),qt={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:Object(Vt["a"])(Ic["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Ft=qt,Kt=Object(ut["a"])(Ft,Mt,Ut,!1,null,null,null),$t=Kt.exports,Ht=function(){var e=this,t=e._self._c;return e.$isMobile?t("div",{staticStyle:{display:"flex","justify-content":"center"}},[t("div",{staticClass:"pagination-total"},[e._v("共 "+e._s(e.$attrs.total)+" 项")]),e.$attrs.total/e.$attrs.pageSize>=1?t("a-pagination",e._g({staticStyle:{"margin-left":"16px"},attrs:{total:e.$attrs.total,current:e.$attrs.current,pageSize:e.$attrs.pageSize,size:"small"}},e.$listeners)):e._e()],1):t("a-pagination",e._g(e._b({attrs:{"show-quick-jumper":""}},"a-pagination",e.$attrs,!1),e.$listeners))},Gt=[],zt=(n("2895"),{}),Yt=Object(ut["a"])(zt,Ht,Gt,!1,null,"04c48b65",null),Wt=Yt.exports,Qt=n("3aaf"),Xt=function(){var e=this,t=e._self._c;return t("span",[e.editable&&["write","updateonly"].includes(e.schema.access)?t("Item",{attrs:{formModel:e.editRow,prop:e.schema.name,schema:e.schema,params:{},labelType:!1},on:{change:function(t){return e.$emit("change",t)},fill:function(t){return e.$emit("fill",t)}},model:{value:e.editValue,callback:function(t){e.editValue=t},expression:"editValue"}}):e.component?t(e.component,e._b({tag:"component",attrs:{text:e.text}},"component",e.$props,!1)):e.script?t("span",{domProps:{innerHTML:e._s(e.text)}}):"title"===e.schema.display?t("a",{on:{click:function(t){return e.$emit("profile")}}},[e._v(" "+e._s(e.text)+" ")]):t("span",[e._v(e._s(e.text))])],1)},Zt=[];function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return(t=rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e){var t=on(e,"string");return"symbol"==Jt(t)?t:t+""}function on(e,t){if("object"!=Jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var an={mixins:[Re["a"]],components:{Item:Ct["a"]},props:["editable","value","row","schema","mode","viewURL","idName","vid","rowIndex"],data:function(){return{component:null,script:null,editValue:this.value}},computed:{text:function(){return this.formatter(this.row,this.value,this.schema)},editRow:function(){return tn({},this.row)}},created:function(){var e=this;if(this.schema&&this.schema.format){var t=this.schema.format.slice(0,8);"function"===t?this.script=this.schema.format:this.component={props:["editable","value","row","schema","mode","viewURL","idName","text","vid","rowIndex"],data:function(){return{model:{}}},methods:{profile:function(){e.$emit("profile")}},template:"title"===this.schema.display?'<a @click="profile">'.concat(this.schema.format,"</a> "):this.schema.format}}},watch:{value:function(e,t){e!==t&&(this.editValue=e)},editable:function(e){e&&this.editValue!==this.editRow[this.schema.name]&&(this.editValue=this.editRow[this.schema.name])}}},sn=an,ln=Object(ut["a"])(sn,Xt,Zt,!1,null,null,null),cn=ln.exports,un=function(){var e=this,t=e._self._c;return t("iframe",{attrs:{src:"".concat(e.origin,"/aichat#/?app_key=").concat(e.appKey,"&res_key=").concat(e.resKey),height:"100%",width:"100%",frameborder:"0",id:"ifmare"}})},fn=[],dn=n("8bbf"),pn=n.n(dn),hn=n("4e72");function mn(e){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return(t=bn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e){var t=wn(e,"string");return"symbol"==mn(t)?t:t+""}function wn(e,t){if("object"!=mn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Sn(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Sn(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Sn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Sn(f,"constructor",c),Sn(c,"constructor",l),l.displayName="GeneratorFunction",Sn(c,o,"GeneratorFunction"),Sn(f),Sn(f,o,"Generator"),Sn(f,r,(function(){return this})),Sn(f,"toString",(function(){return"[object Generator]"})),(_n=function(){return{w:i,m:d}})()}function Sn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Sn=function(e,t,n,r){function i(t,n){Sn(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Sn(e,t,n,r)}function Cn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function kn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Cn(i,r,o,a,s,"next",e)}function s(e){Cn(i,r,o,a,s,"throw",e)}a(void 0)}))}}var En={name:"aichat-form",components:{},mounted:function(){var e=this;return kn(_n().m((function t(){return _n().w((function(t){while(1)switch(t.n){case 0:e.setupIframe(),e.initButtons();case 1:return t.a(2)}}),t)})))()},beforeDestroy:function(){this._vueInstances&&Array.isArray(this._vueInstances)&&this._vueInstances.forEach((function(e){e.$destroy()}))},data:function(){var e;return{appKey:this.$store&&this.$store.state&&this.$store.state.app&&this.$store.state.app.app_key||"",resKey:this.$route&&this.$route.meta&&this.$route.meta.key?this.$route.meta.key.replace(/(\/)(.*)/,(function(e,t,n){return t+n.replace(/\//g,"-")})):"",childElement:null,origin:null===(e=window)||void 0===e||null===(e=e.location)||void 0===e?void 0:e.origin,legend:this.$attrs&&this.$attrs.action&&this.$attrs.action.legend||""}},computed:{},created:function(){},methods:{initButtons:function(){var e=this;this.$nextTick((function(){var t=document.querySelector(".ant-drawer-header");if(t){var n=new pn.a({methods:{handleCommit:function(){var e=document.getElementById("chatai");e&&e.contentWindow.postMessage({type:"customEvent",message:"Hello from parent"},"*")}},components:{Button:hn["Button"]},template:'\n <Button class="ant-btn" @click="handleCommit" style="position: absolute; left: 104px; top: 12px;" icon="plus">\n 开启新对话\n </Button>\n '}),r=new pn.a({methods:{handleHistoryCommit:function(){var e=document.getElementById("chatai");e&&e.contentWindow.postMessage({type:"customHistoryEvent",message:"Hello from parent"},"*")}},components:{Button:hn["Button"]},template:'\n <Button class="ant-btn" @click="handleHistoryCommit" style="position: absolute; left: 242px; top: 12px;" icon="message">\n 历史对话\n </Button>\n '});e._vueInstances=[n,r],t.appendChild(n.$mount().$el),t.appendChild(r.$mount().$el)}else console.warn("未找到 .ant-drawer-header 元素")}))},setupIframe:function(){this.childElement=document.getElementById("chatai"),this.childElement&&(this.childElement.parentNode.style.height="calc(100vh - 55px)",this.childElement.parentNode.style.padding="0")},handleCommit:function(){var e=yn({},this.actionModel);this.$emit("commit",e)}}},On=En,Tn=(n("2295"),Object(ut["a"])(On,un,fn,!1,null,"38b8eb2a",null)),An=Tn.exports;function xn(e){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(e)}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jn(e,t,n){return(t=Pn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e){var t=Rn(e,"string");return"symbol"==xn(t)?t:t+""}function Rn(e,t){if("object"!=xn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Dn={mixins:[i,a,P,ze,Re["a"],E,O],components:In(In(In({},bt),Ic),{},{FilterForm:Tt,ActionGroup:Lt,ActionView:$t,PaginationSize:Wt,Popup:Qt["a"],Cell:cn,AichatForm:An}),data:function(){return{aiVisible:!1}},computed:{actionConfigs:function(){var e,t;return this.action&&null!==(e=null===(t=this.action.configs)||void 0===t?void 0:t.reduce((function(e,t){return e[t.key]=t.value,e}),{}))&&void 0!==e?e:{}}},activated:function(){this.configs&&"true"===this.configs["profile.mode"]&&"Profile"!==this.actionViewType&&this.dataSource.length&&!this.$route.params.id&&this.handleModelProfile(this.dataSource[0])},mounted:function(){var e=this;if(this.configs&&"true"===this.configs["profile.mode"])var t=this.$watch("dataSource",(function(){"Profile"!==e.actionViewType&&e.dataSource.length&&!e.$route.params.id&&(e.handleModelProfile(e.dataSource[0]),t())}))},methods:{handleAichatAction:function(){this.aiVisible=!0}}},Bn=Dn,Ln=(n("284e"),Object(ut["a"])(Bn,r,o,!1,null,"52e689d4",null)),Mn=Ln.exports,Un=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.actioning}},[t(e.layout,{tag:"component",attrs:{source:"profile"},scopedSlots:e._u([e.$isMobile?{key:"mobile-header",fn:function(){var n,r;return[e.routeId&&!e.onlyProfile?t("a-button",{staticStyle:{color:"rgba(0, 0, 0, 0.9)"},attrs:{type:"link",icon:"left"},on:{click:function(t){return e.handleAction(e.backActions[0])}}}):e._e(),t("div",{staticStyle:{"font-size":"17px","font-weight":"500",flex:"1","text-align":"center"}},[e._v(" "+e._s(null===(n=e.profile)||void 0===n?void 0:n[null===(r=e.titleColumn)||void 0===r?void 0:r.name])+" ")]),t("a-button",{staticStyle:{color:"rgba(0, 0, 0, 0.9)"},attrs:{type:"link",icon:"menu"},on:{click:function(t){e.settingVisible=!0}}})]},proxy:!0}:null,e.$isMobile?{key:"actions-none",fn:function(){return[e.navActions.length?t("ActionGroup",{attrs:{actions:e.navActions},on:{action:e.handleAction}}):e._e()]},proxy:!0}:{key:"actions-none",fn:function(){return[e.routeId&&!e.onlyProfile?t("ActionGroup",{attrs:{actions:e.backActions},on:{action:e.handleAction}}):e._e(),e.navActions.length?t("ActionGroup",{attrs:{actions:e.navActions},on:{action:e.handleAction}}):e._e()]},proxy:!0},e.actions.length?{key:"actions-single",fn:function(){return[t("ActionGroup",{attrs:{actions:e.actions},on:{action:e.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[t("ActionGroup",{attrs:{actions:e.settingActions},on:{action:e.handleAction}})]},proxy:!0}],null,!0)},[t("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!e.profile}},[e.profile?t("profile-".concat(e.configs["profile.widget"]||(e.$isMobile?"tabs":"normal")),{tag:"component",attrs:{groups:e.groups,columns:e.columns,subviews:e.subviews,loading:e.loading,profile:e.profile,column:e.parentIds?1:2,configs:e.configs,source:"profile"},scopedSlots:e._u([{key:"cell",fn:function(n){var r=n.value,o=n.column;return[t("Cell",{attrs:{row:e.profile,schema:o,value:r}})]}},{key:"action",fn:function(){return[t("ActionGroup",{attrs:{actions:e.actions},on:{action:e.handleAction}})]},proxy:!0}],null,!1,1366521354)}):e._e()],1),e.actionViewVisible?t("Popup",{class:{"ant-modal-tip":e.actionParams.actionViewTip},attrs:{visible:e.actionViewVisible,title:e.action.name,type:e.actionViewMode,okButtonProps:e.actionOkButtonProps,cancelButtonProps:e.actionCancelButtonProps,footer:"hide"===e.actionParams.footer?null:void 0},on:{ok:e.submitActionView,close:e.closeActionView,cancel:e.closeActionView},scopedSlots:e._u([e.actionConfigs["form.footer"]?{key:"footer",fn:function(){return[t(e.actionConfigs["form.footer"],{tag:"component",attrs:{action:e.action,submited:e.actionSubmited,values:e.actionModel,modelViewType:e.actionViewType,widget:e.actionViewWidget,parentIds:e.parentIds,params:e.actionParams,commitResult:e.actionCommitResult,selections:e.selections,schema:e.schema},on:{ok:e.submitActionView,close:e.closeActionView}})]},proxy:!0}:null],null,!0)},[e.actionViewVisible?t("ActionView",{attrs:{action:e.action,submited:e.actionSubmited,values:e.actionModel,modelViewType:e.actionViewType,widget:e.actionViewWidget,parentIds:e.parentIds,params:e.actionParams,selections:e.profile,schema:e.schema,commitResult:e.actionCommitResult},on:{commit:e.commitActionView}}):e._e(),e.action.params&&e.action.params.autofill?t("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[t("a-col",[t("a-checkbox",{on:{change:e.handleAutoFill}},[e._v(" 自动填充表单 ")])],1),t("a-col",[t("a-space",[t("a-button",{attrs:{icon:"close",disabled:e.committing},on:{click:e.closeActionView}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary",icon:"check",loading:e.committing},on:{click:e.submitActionView}},[e._v(" 确认 ")])],1)],1)],1):e._e()],1):e._e()],1)],1)},Vn=[];function qn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Fn(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Fn(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Fn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Fn(f,"constructor",c),Fn(c,"constructor",l),l.displayName="GeneratorFunction",Fn(c,o,"GeneratorFunction"),Fn(f),Fn(f,o,"Generator"),Fn(f,r,(function(){return this})),Fn(f,"toString",(function(){return"[object Generator]"})),(qn=function(){return{w:i,m:d}})()}function Fn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fn=function(e,t,n,r){function i(t,n){Fn(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Fn(e,t,n,r)}function Kn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $n(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Kn(i,r,o,a,s,"next",e)}function s(e){Kn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Hn(e){return Wn(e)||Yn(e)||zn(e)||Gn()}function Gn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zn(e,t){if(e){if("string"==typeof e)return Qn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qn(e,t):void 0}}function Yn(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Wn(e){if(Array.isArray(e))return Qn(e)}function Qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Xn={props:{profileId:{type:String},values:{type:Object},hasList:{type:Boolean,default:!0},editMode:{type:String,default:"none",enum:["none","item","action","default"]},tileMode:{type:String,enum:["normal","portal","navigation"]},groupMode:{type:String,enum:["layout","tabs","steps"]},groupLayout:{type:String,enum:["horizontal","vertical"]},detailGroupName:{type:String,default:"详情"},detailLayout:{type:String,enum:["header","first-group","mix"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{setProfileID:null,routeId:null,unwatchRoute:null}},computed:{columns:function(){var e,t=this,n=((null===(e=this.model)||void 0===e?void 0:e.attrs)||[]).filter((function(e){var n=e.params,r=void 0===n?{}:n,o=r.show;return!["all"].includes(e.hidden)&&"model"!==e.metaType&&"link"!==e.type&&(!o||Object(R["a"])(o,t.profile))})).filter((function(e){var n,r,o,i=null===(n=e.configs)||void 0===n?void 0:n.find((function(e){return"visibleWhenParent"===e.key}));if(null===(r=t.params)||void 0===r||!r.$parent||!i)return!0;var a=null===(o=t.params)||void 0===o?void 0:o.$parent,s=new Function(Object.keys(a),"return ".concat(i.value));return s.apply(void 0,Hn(Object.values(a)))}));return n},subviews:function(){var e,t=this;return((null===(e=this.model)||void 0===e?void 0:e.attrs)||[]).filter((function(e){var n=e.params,r=void 0===n?{}:n,o=r.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!o||Object(R["a"])(o,t.profile))}))},groups:function(){var e=[];return this.columns.forEach((function(t,n){var r=e.length-1;t.group||!n?e.push({name:t.group,columns:[t]}):e[r].columns.push(t)})),e},layouts:function(){},id:function(){var e=this.values,t=this.idName,n=this.profileId,r=this.routeId,o=this.findAll;return e?e[t]:n||r||o[0]&&o[0][t]},profile:function(){var e=this.values||this.findOne(this.id)||null;return this.params.$parent&&(e.$parent=this.params.$parent),e},next:function(){var e=this,t=this.findAll.findIndex((function(t){return t[e.idName]===e.id}));return this.findAll[t+1]},previous:function(){var e=this,t=this.findAll.findIndex((function(t){return t[e.idName]===e.id}));return this.findAll[t-1]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"list"}]}},methods:{showColumn:function(){},navigationTo:function(e){this.parentIds||"page"!==this.mode?this.$emit("profile",e):this.$router.replace({params:{id:e[this.idName]}})},handleNext:function(){this.next&&this.navigationTo(this.next)},handlePrevious:function(){this.previous&&this.navigationTo(this.previous)},handleList:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.replace(this.$route.meta.key)},load:function(){var e=arguments,t=this;return $n(qn().m((function n(){var r,o,i;return qn().w((function(n){while(1)switch(n.n){case 0:return r=e.length>0&&void 0!==e[0]&&e[0],n.n=1,t.loadData({key:t.id,mute:r});case 1:if(o=n.v,!(o instanceof Error)){n.n=2;break}return i=o.response.data.code,404===i&&t.handleBack(),n.a(2);case 2:return n.a(2,o)}}),n)})))()}},created:function(){this.routeId=this.$route.params.id},activated:function(){var e=this;this.routeId=this.$route.params.id,!this.profile&&this.id&&this.load(),this.unwatchRoute=this.$watch("$route.params.id",(function(t){e.routeId=t}))},deactivated:function(){this.unwatchRoute&&this.unwatchRoute()}};function Zn(e){return nr(e)||tr(e)||er(e)||Jn()}function Jn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function er(e,t){if(e){if("string"==typeof e)return rr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rr(e,t):void 0}}function tr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function nr(e){if(Array.isArray(e))return rr(e)}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var or=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.loading}},e._l(e.groups,(function(n,r){return t("Descriptions",{key:"g-".concat(r),staticClass:"profile-normal-descriptions",staticStyle:{"margin-bottom":"16px"},attrs:{column:e.column,size:"small",bordered:"",profile:""}},[n.name?t("div",{attrs:{slot:"title"},slot:"title"},[t("strong",[e._v(e._s(n.name))])]):e._e(),e._l(n.columns,(function(n,o){return[!e.collapse||e.showDescItems["showDescItem".concat(r)]||o<e.collapse?t("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[e._t("cell",null,{value:e.profile[n.name],column:n})],2):e._e()]})),e.collapse?t("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[t("a",{staticClass:"showdesc-btn",on:{click:function(t){e.showDescItems["showDescItem".concat(r)]=!e.showDescItems["showDescItem".concat(r)]}}},[t("a-icon",{attrs:{type:e.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):e._e()],2)})),1),e.tabs.length?t("a-card",{attrs:{size:"small",type:"inner"}},[t("a-tabs",{attrs:{animated:!1,"default-active-key":e.activeTabKey,size:"small"},on:{change:e.handleChange}},e._l(e.tabs,(function(n,r){return t("a-tab-pane",{key:String(r),attrs:{tab:n.tab}},["link"===n.type?t("Frame",{attrs:{url:e.templateURL(n.value,e.profile),height:e.iframeHeight(n.value)}}):t("keep-alive",[t(e.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Zn(e.parentIds||[]),[e.id]),pageKey:e.pageKey,viewKey:n.name,params:{$parent:e.profile}}})],1)],1)})),1)],1):e._e()],1)},ir=[],ar=n("f24a"),sr=n("f765");function lr(e){return lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lr(e)}function cr(e){return pr(e)||dr(e)||fr(e)||ur()}function ur(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fr(e,t){if(e){if("string"==typeof e)return hr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hr(e,t):void 0}}function dr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function pr(e){if(Array.isArray(e))return hr(e)}function hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yr(e,t,n){return(t=gr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(e){var t=br(e,"string");return"symbol"==lr(t)?t:t+""}function br(e,t){if("object"!=lr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var wr,_r,Sr=ar["a"].DescriptionsItem,Cr={components:vr({Descriptions:ar["a"],DescriptionsItem:Sr,Frame:sr["a"]},Ic),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:cr(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&cr(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(e){this.activeTabKey=e},templateURL:function(e,t){return Object(D["a"])(e,t)},iframeHeight:function(e){var t;if(e&&e.split("?")[1]){var n=e.split("?")[1].split("&").find((function(e){return e.includes("height")}))||void 0;n&&(t=n.split("=")[1])}return t}},created:function(){var e=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(t,n){e.$set(e.showDescItems,"showDescItem".concat(n),!1)})),this.$route.query&&this.$route.query.activeTabKey){var t=this.tabs.find((function(t){return t.name===e.$route.query.activeTabKey}));t&&(this.activeTabKey=t.key)}},computed:{tabs:function(){return this.views.map((function(e,t){return vr(vr({},e),{},{key:String(t),tab:e.alias||e.name})}))},Views:function(){var e=this;return this.views.map((function(t){return{extends:Object(Vt["a"])(Ic.ModelList)("".concat(e.storeNamespace,"/:id/").concat(t.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=cr(this.subviews),this.id=this.view.id}}},kr=Cr,Er=(n("4927"),Object(ut["a"])(kr,or,ir,!1,null,null,null)),Or=Er.exports,Tr={},Ar=Object(ut["a"])(Tr,wr,_r,!1,null,null,null),xr=Ar.exports;function Nr(e){return Rr(e)||Pr(e)||jr(e)||Ir()}function Ir(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jr(e,t){if(e){if("string"==typeof e)return Dr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dr(e,t):void 0}}function Pr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Rr(e){if(Array.isArray(e))return Dr(e)}function Dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Br=function(){var e=this,t=e._self._c;return t("a-row",[e.view.configs["profile.tile.hideAnchor"]?e._e():t("a-col",{attrs:{span:3}},[t("a-anchor",{attrs:{affix:e.affix,getContainer:e.getContainer,offsetTop:e.view.configs["profile.tile.offsetTop"]&&Number(e.view.configs["profile.tile.offsetTop"])||0},on:{change:e.handleChange,click:e.handleClick}},[e._l(e.groups,(function(n,r){return t("a-anchor-link",{key:"anchor-g-".concat(r),attrs:{href:"#profile-tile-group-".concat(r),title:n.name},nativeOn:{click:function(t){return t.preventDefault(),e.scrollTo("profile-tile-group-".concat(r))}}})})),e._l(e.tabs,(function(n,r){return t("a-anchor-link",{key:"anchor-t-".concat(r),attrs:{href:"#profile-tile-tab-".concat(r),title:n.tab},nativeOn:{click:function(t){return t.preventDefault(),e.scrollTo("profile-tile-tab-".concat(r))}}})}))],2)],1),t("a-col",{attrs:{span:e.view.configs["profile.tile.hideAnchor"]?24:21}},[t("a-spin",{attrs:{spinning:e.loading}},e._l(e.groups,(function(n,r){return t("a-card",{key:"g-".concat(r),staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-".concat(r),title:n.name,bordered:!1,headStyle:{borderBottom:0}}},[e._e(),t("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:e.column,size:"small",bordered:"",profile:""}},[e._l(n.columns,(function(n,o){return[!e.collapse||e.showDescItems["showDescItem".concat(r)]||o<e.collapse?t("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[e._t("cell",null,{value:e.profile[n.name],column:n})],2):e._e()]})),e.collapse?t("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[t("a",{staticClass:"showdesc-btn",on:{click:function(t){e.showDescItems["showDescItem".concat(r)]=!e.showDescItems["showDescItem".concat(r)]}}},[t("a-icon",{attrs:{type:e.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):e._e()],2)],1)})),1),e._l(e.tabs,(function(n,r){return t("a-card",{key:String(r),staticClass:"gs-card",attrs:{tab:n.tab,size:"small",id:"profile-tile-tab-".concat(r),title:n.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===n.type?t("Frame",{attrs:{url:e.templateURL(n.value,e.profile),height:e.iframeHeight(n.value)}}):t("keep-alive",[t(e.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Nr(e.parentIds||[]),[e.id]),pageKey:e.pageKey,viewKey:n.name,params:{$parent:e.profile}}})],1)],1)}))],2)],1)},Lr=[];function Mr(e){return Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(e)}function Ur(e){return Kr(e)||Fr(e)||qr(e)||Vr()}function Vr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qr(e,t){if(e){if("string"==typeof e)return $r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(e,t):void 0}}function Fr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Kr(e){if(Array.isArray(e))return $r(e)}function $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zr(e,t,n){return(t=Yr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e){var t=Wr(e,"string");return"symbol"==Mr(t)?t:t+""}function Wr(e,t){if("object"!=Mr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Qr=ar["a"].DescriptionsItem,Xr={components:Gr({Descriptions:ar["a"],DescriptionsItem:Qr,Frame:sr["a"]},Ic),inject:["page","view","container"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Ur(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Ur(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,affix:!0,showDescItems:{}}},created:function(){var e=this;this.groups.length&&this.collapse&&this.groups.forEach((function(t,n){e.$set(e.showDescItems,"showDescItem".concat(n),!1)}))},methods:{handleChange:function(e){},templateURL:function(e,t){return Object(D["a"])(e,t)},handleClick:function(e,t){e.preventDefault()},scrollTo:function(e){document.getElementById(e)&&document.getElementById(e).scrollIntoView({behavior:"smooth",block:"start"})},getContainer:function(){var e=this.container&&this.container.$refs.container;return e&&e.$el||e||window},iframeHeight:function(e){var t;if(e&&e.split("?")[1]){var n=e.split("?")[1].split("&").find((function(e){return e.includes("height")}))||void 0;n&&(t=n.split("=")[1])}return t}},computed:{tabs:function(){return this.views.map((function(e,t){return Gr(Gr({},e),{},{key:String(t),tab:e.alias||e.name})}))},Views:function(){var e=this;return this.views.map((function(t){return{extends:Object(Vt["a"])(Ic.ModelList)("".concat(e.storeNamespace,"/:id/").concat(t.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=Ur(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Zr=Xr,Jr=(n("2124"),Object(ut["a"])(Zr,Br,Lr,!1,null,null,null)),eo=Jr.exports;function to(e){return io(e)||oo(e)||ro(e)||no()}function no(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ro(e,t){if(e){if("string"==typeof e)return ao(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ao(e,t):void 0}}function oo(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function io(e){if(Array.isArray(e))return ao(e)}function ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var so=function(){var e=this,t=e._self._c;return e.tabs.length?t("div",[e.basicAttrsColumns.length?t("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:e.column,size:"small",bordered:"",profile:""}},[e._l(e.basicAttrsColumns,(function(n){return[t("DescriptionsItem",{key:n.name,attrs:{span:e.$isMobile?2:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[e._t("cell",null,{value:e.profile[n.name],column:n})],2)]}))],2):e._e(),t("a-tabs",{attrs:{animated:!1,"default-active-key":e.activeTabKey},on:{change:e.handleChange}},e._l(e.tabs,(function(n,r){return t("a-tab-pane",{key:String(r),attrs:{tab:n.tab}},["profile"===n.type?t("a-spin",{attrs:{spinning:e.loading}},e._l(e.groups,(function(n,r){return t("Descriptions",{key:"g-".concat(r),staticStyle:{"margin-bottom":"16px"},attrs:{column:e.column,size:"small",bordered:"",profile:""}},[n.name?t("div",{attrs:{slot:"title"},slot:"title"},[t("strong",[e._v(e._s(n.name))])]):e._e(),e._l(e.subAttrsColumns(n.columns),(function(n,o){return[!e.collapse||e.showDescItems["showDescItem".concat(r)]||o<e.collapse?t("DescriptionsItem",{key:n.name,attrs:{span:e.$isMobile?2:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[e._t("cell",null,{value:e.profile[n.name],column:n})],2):e._e()]})),e.collapse?t("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[t("a",{staticClass:"showdesc-btn",on:{click:function(t){e.showDescItems["showDescItem".concat(r)]=!e.showDescItems["showDescItem".concat(r)]}}},[t("a-icon",{attrs:{type:e.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):e._e()],2)})),1):"link"===n.type?t("Frame",{attrs:{url:e.templateURL(n.value,e.profile),height:e.iframeHeight(n.value)}}):t("keep-alive",[t(e.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(to(e.parentIds||[]),[e.id]),pageKey:e.pageKey,viewKey:n.name,params:{$parent:e.profile}}})],1)],1)})),1)],1):e._e()},lo=[];function co(e){return co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},co(e)}function uo(e){return mo(e)||ho(e)||po(e)||fo()}function fo(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function po(e,t){if(e){if("string"==typeof e)return vo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vo(e,t):void 0}}function ho(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function mo(e){if(Array.isArray(e))return vo(e)}function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t,n){return(t=wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wo(e){var t=_o(e,"string");return"symbol"==co(t)?t:t+""}function _o(e,t){if("object"!=co(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var So=ar["a"].DescriptionsItem,Co={components:go({Descriptions:ar["a"],DescriptionsItem:So,Frame:sr["a"]},Ic),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1},configs:{type:Object}},data:function(){return{activeTabKey:"0",views:null,id:this.view.id,parentIds:this.view.parentIds&&uo(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(e){this.$store.commit("setSubView","0"!==e),this.activeTabKey=e},templateURL:function(e,t){return Object(D["a"])(e,t)},iframeHeight:function(e){var t;if(e&&e.split("?")[1]){var n=e.split("?")[1].split("&").find((function(e){return e.includes("height")}))||void 0;n&&(t=n.split("=")[1])}return t},subAttrsColumns:function(e){var t=this;return this.basicAttrs.length?e.filter((function(e){return!t.basicAttrs.includes(e.name)})):e}},created:function(){var e=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(t,n){e.$set(e.showDescItems,"showDescItem".concat(n),!1)})),this.$route.query&&this.$route.query.activeTabKey){var t=this.tabs.find((function(t){return t.name===e.$route.query.activeTabKey}));t&&(this.activeTabKey=t.key)}this.views=[this.profileTab].concat(uo(this.subviews))},computed:{tabs:function(){return this.views?this.views.map((function(e,t){return go(go({},e),{},{key:String(t),tab:e.alias||e.name})})):[]},Views:function(){var e=this;return this.views?this.views.map((function(t){return{extends:Object(Vt["a"])(Ic.ModelList)("".concat(e.storeNamespace,"/:id/").concat(t.name))}})):[]},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null},basicAttrs:function(){var e=[];return this.view.configs&&this.view.configs["profile.tabs.basicAttrs"]&&(e=this.view.configs["profile.tabs.basicAttrs"].split(",")),e},basicAttrsColumns:function(){var e=this;return this.basicAttrs.length?this.columns.filter((function(t){return e.basicAttrs.includes(t.name)})):[]},profileTab:function(){return{name:this.view.configs&&this.view.configs["profile.tabs.profileTitle"]?this.view.configs["profile.tabs.profileTitle"]:"详情",type:"profile"}}},watch:{profile:function(){this.views=[this.profileTab].concat(uo(this.subviews)),this.id=this.view.id}}},ko=Co,Eo=(n("b9aa"),Object(ut["a"])(ko,so,lo,!1,null,null,null)),Oo=Eo.exports,To={ProfileNormal:Or,ProfilePortal:xr,ProfileTile:eo,ProfileTabs:Oo};function Ao(e){return Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(e)}function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(n),!0).forEach((function(t){Io(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Io(e,t,n){return(t=jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jo(e){var t=Po(e,"string");return"symbol"==Ao(t)?t:t+""}function Po(e,t){if("object"!=Ao(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ro={mixins:[i,a,P,ze,Re["a"],Xn],components:No({ActionGroup:Lt,ActionView:$t,Popup:Qt["a"],Cell:cn},To),computed:{settingVisible:{get:function(){return this.$store.state.settingVisible},set:function(e){this.$store.commit("setSettingVisible",e)}},titleColumn:function(){var e=this.columns.find((function(e){return"title"===(null===e||void 0===e?void 0:e.display)}));return null!==e&&void 0!==e?e:this.columns[0]},onlyProfile:function(){return this.configs?"true"===this.configs["profile.mode"]:null},actionConfigs:function(){var e,t;return this.action&&null!==(e=null===(t=this.action.configs)||void 0===t?void 0:t.reduce((function(e,t){return e[t.key]=t.value,e}),{}))&&void 0!==e?e:{}}}},Do=Ro,Bo=(n("c6d6"),Object(ut["a"])(Do,Un,Vn,!1,null,null,null)),Lo=Bo.exports,Mo=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.schemaLoading}},[t("layout-view-blank",{tag:"component"},[e.commitResult.template&&e.commitResult.data?t("a-result",{attrs:{status:"success",title:e.message}},[t(e.commitResult,{tag:"component"})],1):t(e.formWidget||e.widget,e._g(e._b({tag:"component",attrs:{action:e.action,columns:e.columns,params:e.params}},"component",e.$attrs,!1),e.$listeners))],1)],1)},Uo=[];function Vo(e){return $o(e)||Ko(e)||Fo(e)||qo()}function qo(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fo(e,t){if(e){if("string"==typeof e)return Ho(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ho(e,t):void 0}}function Ko(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function $o(e){if(Array.isArray(e))return Ho(e)}function Ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Go={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},zo={model:{event:"change"},props:{value:{type:[Object,Array]},action:{type:Object},layout:{type:String,enum:["horizontal","vertical","inline","group"]},editType:{type:String,default:"create",enum:["create","update","bulk","save"]},submitType:{type:String,default:"submit",enum:["change","submit"]},allowUnsubmittedCache:{type:Boolean,default:!0},allowPreviousCache:{type:Boolean,default:!1},displayReadonly:{type:String,default:"none",enum:["none","readonly","all"]},isGroup:{type:Boolean,default:!1},commitResult:{type:Object},submitActions:{type:Array,default:function(){return[{name:"确定",icon:"",handle:"submit"},{name:"取消",icon:"",handle:"cancel"}]}}},created:function(){"create"===this.editType&&this.allowUnsubmittedCache&&this.getLocalStore()},mounted:function(){this.loadSchema()},computed:{viewSchema:function(){var e;return null===(e=this.$store.state[this.storeNamespace])||void 0===e?void 0:e.schema},schemaLoading:function(){return!this.viewSchema},columns:function(){var e,t,n,r,o,i,a=this,s=this.action,l=this.params,c=this.model,u=this.editType,f=this.hide,d=s&&s.view?null===(e=s.view)||void 0===e||null===(e=e.model)||void 0===e?void 0:e.attrs:l&&l.attrs?l.attrs:null!==c&&void 0!==c&&c.attrs?c.attrs:[],p=null===(t=this.viewSchema)||void 0===t||null===(t=t.model)||void 0===t||null===(t=t.actions)||void 0===t?void 0:t.find((function(e){var t;return e.id===(null===(t=a.action)||void 0===t?void 0:t.id)})),h=null!==(n=null===p||void 0===p||null===(r=p.view)||void 0===r||null===(r=r.model)||void 0===r?void 0:r.attrs)&&void 0!==n?n:null===(o=this.viewSchema)||void 0===o||null===(o=o.model)||void 0===o?void 0:o.attrs,m=null!==(i=null!==h&&void 0!==h?h:d)&&void 0!==i?i:[];if(s&&s.list){var v=this.action.list.split(",");return m.filter((function(e){return!f.includes(e.name)&&v.includes(e.name)}))}return m.filter((function(e){return Go[u].includes(e.access)&&!f.includes(e.name)&&"collection"!==e.metaType&&"model"!==e.metaType&&"link"!==e.type})).filter((function(e){var t,n,r,o=null===(t=e.configs)||void 0===t?void 0:t.find((function(e){return"visibleWhenParent"===e.key}));if(null===(n=a.params)||void 0===n||!n.$parent||!o)return!0;var i=null===(r=a.params)||void 0===r?void 0:r.$parent,s=new Function(Object.keys(i),"return ".concat(o.value));return s.apply(void 0,Vo(Object.values(i)))}))},rules:function(){},formWidget:function(){var e,t,n=Object.fromEntries(((null===(e=this.action)||void 0===e?void 0:e.configs)||[]).map((function(e){return[e.key,e.value]})))||[],r=n["form.widget"]||(null===(t=this.configs)||void 0===t?void 0:t["form.widget"])||null;return r}},methods:{setLocalStore:function(){},getLocalStore:function(){},reset:function(){},validate:function(){},handleChange:function(){this.$emit("change")},handleSubmit:function(){this.$emit("submited")},handleCommit:function(){this.$emit("commited")}}},Yo=function(){var e=this,t=e._self._c;return t("a-form-model",{ref:"form",attrs:{rules:e.rules,model:e.actionModel}},e._l(e.groupAttrs,(function(n,r){return t("div",{key:n.groupName},[t("a-row",{attrs:{gutter:24}},[t("div",{staticStyle:{padding:"0 12px"}},[r?t("a-divider",{staticClass:"divider"}):e._e()],1),t("a-col",{attrs:{span:24}},[t("div",{staticClass:"divider-title"},[e._v(e._s(n.groupName))])]),e._l(n.list,(function(n){return t("a-col",{key:n.name,staticStyle:{"min-height":"0"},attrs:{span:e.$isMobile?24:n.column||12}},[t("Item",{attrs:{formModel:e.actionModel,prop:n.name,schema:n,params:e.params},on:{change:function(t){return e.handleItemChange(t,n)},fill:function(t){return e.handleItemFill(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[col.name]"}})],1)}))],2)],1)})),0)},Wo=[];function Qo(e){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(e)}function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){Jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jo(e,t,n){return(t=ei(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e){var t=ti(e,"string");return"symbol"==Qo(t)?t:t+""}function ti(e,t){if("object"!=Qo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ni={mixins:[St["a"]],components:{Item:Ct["a"]},computed:{groupAttrs:function(){var e=null,t=[];return this.columns.forEach((function(n){var r=Zo({},n);r.group||(r.group=e||""),e=r.group;var o=t.find((function(e){return e.groupName===r.group}));o?o.list.push(r):t.push({list:[r],groupName:r.group})})),t}}},ri=ni,oi=(n("de3d"),Object(ut["a"])(ri,Yo,Wo,!1,null,"0f9313a1",null)),ii=oi.exports,ai=function(){var e=this,t=e._self._c;return t("div",[t("a-upload",{attrs:{multiple:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[t("a-button",[t("a-icon",{attrs:{type:"upload"}}),e._v(" 批量上传 ")],1)],1),e._l(e.fileList,(function(n,r){return t("div",{key:r,staticClass:"form-file-upload"},[t("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[t("a-col",["uploading"===n.status?t("a-icon",{attrs:{type:"loading"}}):"done"===n.status?t("a-icon",{attrs:{type:"paper-clip"}}):e._e(),e._v(" "+e._s(n.file.name)+" ")],1),t("a-col",[n.status?e._e():t("a-icon",{attrs:{type:"close"},on:{click:function(t){return e.handleRemove(r)}}})],1)],1)],1)}))],2)},si=[];function li(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return ci(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ci(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ci(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,ci(f,"constructor",c),ci(c,"constructor",l),l.displayName="GeneratorFunction",ci(c,o,"GeneratorFunction"),ci(f),ci(f,o,"Generator"),ci(f,r,(function(){return this})),ci(f,"toString",(function(){return"[object Generator]"})),(li=function(){return{w:i,m:d}})()}function ci(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ci=function(e,t,n,r){function i(t,n){ci(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ci(e,t,n,r)}function ui(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function fi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ui(i,r,o,a,s,"next",e)}function s(e){ui(i,r,o,a,s,"throw",e)}a(void 0)}))}}var di={mixins:[St["a"]],data:function(){return{fileList:[]}},methods:{handleRemove:function(e){var t=this.fileList.slice();t.splice(e,1),this.fileList=t},beforeUpload:function(e){return this.fileList.push({file:e,status:""}),!1},handleSubmit:function(){var e=this;return fi(li().m((function t(){var n;return li().w((function(t){while(1)switch(t.n){case 0:if(n=e.view.view.selections,0!==e.fileList.length){t.n=1;break}return t.a(2,e.$message.error("请选择文件"));case 1:if(!(n&&n.length>1)){t.n=2;break}return t.a(2,e.$message.error("请选择一条文件进行上传"));case 2:e.handleCommit();case 3:return t.a(2)}}),t)})))()},handleCommit:function(){var e=this;return fi(li().m((function t(){var n,r,o,i,a,s,l,c,u,f,d,p;return li().w((function(t){while(1)switch(t.n){case 0:p=function(){return p=fi(li().m((function e(t){var n,p,h;return li().w((function(e){while(1)switch(e.n){case 0:return t.status="uploading",n=o.key,p=o.method,h=new FormData,h.append("file",t.file),a&&h.append("data[".concat(i,"]"),a[i]),e.n=1,r({data:h,key:n,method:p,mute:!0});case 1:f++,t.status="done",f>=u.length?(s(),l(),c.success("上传完成")):d(u[f]);case 2:return e.a(2)}}),e)}))),p.apply(this,arguments)},d=function(e){return p.apply(this,arguments)},n=e.view.view,r=n.saveData,o=n.action,i=n.idName,a=n.actionModel,s=n.closeActionView,l=n.load,c=n.$message,u=e.fileList,f=0,d(u[f]);case 1:return t.a(2)}}),t)})))()}}},pi=di,hi=Object(ut["a"])(pi,ai,si,!1,null,null,null),mi=hi.exports,vi=function(){var e=this,t=e._self._c;return t("Picker",e._g(e._b({attrs:{viewKey:e.action.key||e.action.method.toLowerCase(),schema:e.action,params:{filters:e.pickerFilter},pickerMode:e.pickerMode},on:{selected:e.handleViewPickerSelected}},"Picker",e.$attrs,!1),e.$listeners))},yi=[],gi=n("3d8a");function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wi(Object(n),!0).forEach((function(t){Si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Si(e,t,n){return(t=Ci(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ci(e){var t=ki(e,"string");return"symbol"==bi(t)?t:t+""}function ki(e,t){if("object"!=bi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ei={mixins:[St["a"]],components:{Picker:gi["a"]},computed:{pickerFilter:function(){var e=this.action.params,t=e&&e.filters,n={};if(!t)return null;for(var r in t){var o=t[r].split(".").reduce((function(e,t){return e&&e[t]||void 0}),_i(_i({},this.params),this.actionModel));n[r]=void 0===o?t[r]:o}return n},pickerMode:function(){var e=this.action.params,t=void 0===e?{}:e,n=t.multiple,r=t.pickerMode;return"none"===r?null:n?"multiple":"single"}},methods:{handleSubmit:function(){if(!this.actionModel||!this.actionModel.length)return this.$message.error("请选择数据");this.handleCommit()},handleViewPickerSelected:function(e){var t=this.configs&&this.configs["picker.view.value"];if(!t){var n=this.schema.params&&this.schema.params.control;t=n&&n.realValue}var r=t;this.actionModel=r?e.map((function(e){return Si({},r,e[t])})):e}}},Oi=Ei,Ti=Object(ut["a"])(Oi,vi,yi,!1,null,null,null),Ai=Ti.exports,xi=function(){var e=this,t=e._self._c;return t("div",[t("a-steps",{attrs:{current:e.current}},e._l(e.steps,(function(n){return t("a-step",{key:n.title,attrs:{title:n.title}},["核心解读"===n.title?t("a-badge",{attrs:{slot:"subTitle","number-style":e.badgeStyle,count:e.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):e._e(),"描述解读"===n.title?t("a-badge",{attrs:{slot:"subTitle","number-style":e.badgeStyle,count:e.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):e._e(),"排盘数据"===n.title?t("a-badge",{attrs:{slot:"subTitle","number-style":e.badgeStyle,count:e.algorithmCount.paipanDataCount},slot:"subTitle"}):e._e(),"术数分析"===n.title?t("a-badge",{attrs:{slot:"subTitle","number-style":e.badgeStyle,count:e.algorithmCount.surgeryAnalysisCount},slot:"subTitle"}):e._e()],1)})),1),Object.keys(e.algorithmList).length&&e.current<e.steps.length-1?t("div",{staticClass:"algorithm-preview"},[t("strong",[e._v("算法集合预览:")]),e._v(e._s(e.algorithmList)+" ")]):e._e(),t("a-spin",{attrs:{spinning:e.loading}},[0===e.current?t("div",{staticClass:"steps-content"},[t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:e.nameKeyword,callback:function(t){e.nameKeyword="string"===typeof t?t.trim():t},expression:"nameKeyword"}}),t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:e.codeKeyword,callback:function(t){e.codeKeyword="string"===typeof t?t.trim():t},expression:"codeKeyword"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(" 搜索 ")]),e.algorithmData.length?[t("a-tabs",{attrs:{defaultActiveKey:"".concat(e.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},e._l(e.algorithmData[0].children,(function(n,r){return t("a-tab-pane",{key:n.name+r.toString()},[t("span",{attrs:{slot:"tab"},slot:"tab"},[e._v(" "+e._s(n.name)+" "),t("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":e.badgeStyle,count:e.algorithmTotal(n.children)}})],1),t("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:e.defaultCheckedList},on:{change:function(t){return e.handleChange(t,e.steps[e.current].title,n.name,r)}}})],1)})),1)]:t("a-empty")],2):e._e(),1===e.current?t("div",{staticClass:"steps-content"},[t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:e.nameKeyword,callback:function(t){e.nameKeyword="string"===typeof t?t.trim():t},expression:"nameKeyword"}}),t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:e.codeKeyword,callback:function(t){e.codeKeyword="string"===typeof t?t.trim():t},expression:"codeKeyword"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(" 搜索 ")]),e.algorithmData.length?[t("a-tabs",{attrs:{defaultActiveKey:"".concat(e.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},e._l(e.algorithmData[0].children,(function(n,r){return t("a-tab-pane",{key:n.name+r.toString()},[t("span",{attrs:{slot:"tab"},slot:"tab"},[e._v(" "+e._s(n.name)+" "),t("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":e.badgeStyle,count:e.algorithmTotal(n.children)}})],1),t("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:e.defaultCheckedList},on:{change:function(t){return e.handleChange(t,e.steps[e.current].title,n.name,r)}}})],1)})),1)]:t("a-empty")],2):e._e(),2===e.current?t("div",{staticClass:"steps-content"},[t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:e.nameKeyword,callback:function(t){e.nameKeyword="string"===typeof t?t.trim():t},expression:"nameKeyword"}}),t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:e.codeKeyword,callback:function(t){e.codeKeyword="string"===typeof t?t.trim():t},expression:"codeKeyword"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(" 搜索 ")]),e.algorithmData.length?[t("a-tabs",{attrs:{defaultActiveKey:"".concat(e.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},e._l(e.algorithmData[0].children,(function(n,r){return t("a-tab-pane",{key:n.name+r.toString()},[t("span",{attrs:{slot:"tab"},slot:"tab"},[e._v(" "+e._s(n.name)+" "),t("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":e.badgeStyle,count:e.algorithmTotal(n.children)}})],1),t("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:e.defaultCheckedList},on:{change:function(t){return e.handleChange(t,e.steps[e.current].title,n.name,r)}}})],1)})),1)]:t("a-empty")],2):e._e(),3===e.current?t("div",{staticClass:"steps-content"},[t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:e.nameKeyword,callback:function(t){e.nameKeyword="string"===typeof t?t.trim():t},expression:"nameKeyword"}}),t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:e.codeKeyword,callback:function(t){e.codeKeyword="string"===typeof t?t.trim():t},expression:"codeKeyword"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(" 搜索 ")]),e.algorithmData.length?[t("a-tabs",{attrs:{defaultActiveKey:"".concat(e.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},e._l(e.algorithmData[0].children,(function(n,r){return t("a-tab-pane",{key:n.name+r.toString()},[t("span",{attrs:{slot:"tab"},slot:"tab"},[e._v(" "+e._s(n.name)+" "),t("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":e.badgeStyle,count:e.algorithmTotal(n.children)}})],1),t("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:e.defaultCheckedList},on:{change:function(t){return e.handleChange(t,e.steps[e.current].title,n.name,r)}}})],1)})),1)]:t("a-empty")],2):e._e(),4===e.current?t("div",{staticClass:"steps-content"},[t("AlgorithmForm",{attrs:{algorithmList:e.algorithmList},on:{close:function(t){return e.$emit("close")}}})],1):e._e()]),t("div",{staticClass:"steps-action"},[e.current>0?t("a-button",{staticStyle:{"margin-right":"8px"},on:{click:e.prev}},[e._v(" 上一步 ")]):e._e(),e.current<e.steps.length-1?t("a-button",{attrs:{type:"primary"},on:{click:e.next}},[e._v(" 下一步 ")]):e._e()],1)],1)},Ni=[],Ii=n("5880"),ji=n("8c7f");function Pi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ri(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ri(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ri(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Ri(f,"constructor",c),Ri(c,"constructor",l),l.displayName="GeneratorFunction",Ri(c,o,"GeneratorFunction"),Ri(f),Ri(f,o,"Generator"),Ri(f,r,(function(){return this})),Ri(f,"toString",(function(){return"[object Generator]"})),(Pi=function(){return{w:i,m:d}})()}function Ri(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ri=function(e,t,n,r){function i(t,n){Ri(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ri(e,t,n,r)}function Di(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Bi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Di(i,r,o,a,s,"next",e)}function s(e){Di(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Li={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(e,t){e.loading=t},setData:function(e,t){var n=t.key,r=t.rows;e.data[n]?e.data[n]=r:pn.a.set(e.data,n,r)},setDistrict:function(e,t){e.district=t},setStatus:function(e,t){var n=t.status,r=t.message;e.status=n,e.message=r}},actions:{loadData:function(e){var t=arguments;return Bi(Pi().m((function n(){var r,o,i,a,s,c,u,f,d;return Pi().w((function(n){while(1)switch(n.p=n.n){case 0:return r=e.commit,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},a=i.methods,s=void 0===a?"get":a,c=i.key,u=i.query,r("setLoading",!0),n.p=1,n.n=2,ji["a"][s](u?"/api/".concat(c?"".concat(c):"","?").concat(l.a.stringify(u)):"/api/".concat(c?"".concat(c):""));case 2:f=n.v,f.data&&c&&r("setData",{rows:f.data,key:c}),n.n=4;break;case 3:n.p=3,d=n.v,o("handleError",d);case 4:return n.p=4,r("setLoading",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},loadDistrict:function(e){return Bi(Pi().m((function t(){var n,r,o,i,a;return Pi().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,r=e.dispatch,n("setLoading",!0),t.p=1,t.n=2,ji["a"].get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 2:o=t.v,i=o.data,i&&n("setDistrict",i.data),t.n=4;break;case 3:t.p=3,a=t.v,r("handleError",a);case 4:return t.p=4,n("setLoading",!1),t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},getResult:function(e){var t=arguments;return Bi(Pi().m((function n(){var r,o,i,a,s,l,c;return Pi().w((function(n){while(1)switch(n.p=n.n){case 0:return r=e.commit,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},a=i.key,s=i.params,r("setLoading",!0),n.p=1,n.n=2,ji["a"].post(a,s,{});case 2:if(l=n.v,!l||!l.data){n.n=3;break}return n.a(2,l.data);case 3:n.n=5;break;case 4:n.p=4,c=n.v,o("handleError",c);case 5:return n.p=5,r("setLoading",!1),n.f(5);case 6:return n.a(2)}}),n,null,[[1,4,5,6]])})))()},handleError:function(e,t){var n=e.commit;if(!t.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=t.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";n("setStatus",{status:o,message:a})}}};function Mi(e){return Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mi(e)}function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach((function(t){qi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qi(e,t,n){return(t=Fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fi(e){var t=Ki(e,"string");return"symbol"==Mi(t)?t:t+""}function Ki(e,t){if("object"!=Mi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}for(var $i=Object(Ii["createNamespacedHelpers"])("m-algorithm"),Hi=$i.mapState,Gi=$i.mapActions,zi=["loading","data","message"],Yi=["loadData","loadDistrict","getResult"],Wi={computed:Vi({},Hi(zi)),methods:Vi({},Gi(Yi)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",Li)}},Qi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"algorithm-checkbox"},[t("a-row",{staticStyle:{width:"100%",padding:"0 32px"},attrs:{gutter:24}},e._l(e.data,(function(n){return t("a-col",{key:n.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":n.checked},attrs:{span:6}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{span:20}},[t("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:n.checked},on:{change:function(t){return e.onCheckChange(t,n)}}},[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(n.name)+" ")]),e._v(" "+e._s(n.name)+" ")],2)],1)],1),t("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(t){return e.showDrawer(n.read_id)}}},[n.checked?t("a-icon",{staticClass:"algorithm-item-action",attrs:{type:"setting"}}):e._e()],1)],1)],1)})),1),t("a-drawer",{attrs:{title:"高级配置",placement:"right",visible:e.visible,width:"512",bodyStyle:{overflow:"auto"}},on:{close:function(t){e.visible=!1}}},[t("h3",{staticStyle:{"margin-bottom":"16px"}},[e._v("解读详情")]),t("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{size:"small",column:1,bordered:""}},[t("DescriptionsItem",{attrs:{label:"编码"}},[e._v(e._s(e.algorithmDetail.code))]),t("DescriptionsItem",{attrs:{label:"名称"}},[e._v(e._s(e.algorithmDetail.name))]),t("DescriptionsItem",{attrs:{label:"解读分类"}},[e._v(e._s(e.algorithmDetail.classify))]),t("DescriptionsItem",{attrs:{label:"算法类别"}},[e._v(e._s(e.algorithmDetail.type))]),t("DescriptionsItem",{attrs:{label:"作者"}},[e._v(e._s(e.algorithmDetail.author))]),t("DescriptionsItem",{attrs:{label:"标签"}},[e._v(e._s(e.algorithmDetail.core_basis))]),t("DescriptionsItem",{attrs:{label:"解读维度"}},[e._v(e._s(e.algorithmDetail.latitude))]),t("DescriptionsItem",{attrs:{label:"解读赋值"}},[e._v(e._s(e.algorithmDetail.app_product))])],1),t("h3",{staticStyle:{"margin-bottom":"16px"}},[e._v("参数配置")]),t("a-tabs",{attrs:{type:"editable-card"},on:{edit:e.onEdit},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.panes,(function(n,r){return t("a-tab-pane",{key:n.key,attrs:{tab:"".concat(n.title,"_").concat(r+1),closable:0!==r}},[t("AlgorithmParams",{attrs:{algorithmParams:n.algorithmParams,algorithmParamsKey:n.key},on:{submit:e.submitForm}})],1)})),1),t("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[t("a-button",{style:{marginRight:"8px"},on:{click:function(t){e.visible=!1}}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.submitParams(e.copyPaneParams)}}},[e._v(" 确定 ")])],1)],1)],1)},Xi=[],Zi=function(){var e=this,t=e._self._c;return t("a-form-model",{ref:"dynamicValidateForm",attrs:{model:e.dynamicValidateForm}},[e._l(e.dynamicValidateForm.algorithms,(function(n,r){return t("a-form-model-item",{key:n.key,attrs:{prop:"algorithms."+r+".value",rules:{required:!0,message:"请输入算法参数",trigger:"blur"}}},[t("a-input",{staticStyle:{width:"60%","margin-right":"8px"},attrs:{placeholder:"请输入算法参数"},on:{blur:function(t){return e.submitForm("dynamicValidateForm")}},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"domain.value"}}),t("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o",disabled:1===e.dynamicValidateForm.algorithms.length},on:{click:function(t){return e.removeDomain(n)}}})],1)})),t("a-form-model-item",[t("a-button",{staticStyle:{width:"60%"},attrs:{type:"dashed"},on:{click:e.addDomain}},[t("a-icon",{attrs:{type:"plus"}}),e._v(" 增加 ")],1)],1),t("a-form-model-item",[t("a-button",{on:{click:function(t){return e.resetForm("dynamicValidateForm")}}},[e._v(" 重置 ")])],1)],2)},Ji=[],ea={props:{algorithmParams:{type:Array,default:function(){return[]}},algorithmParamsKey:{type:[String,Number]}},data:function(){return{dynamicValidateForm:{algorithms:this.algorithmParams}}},methods:{submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.setParams()}))},setParams:function(){var e=this.dynamicValidateForm.algorithms.map((function(e){return e.value})),t={key:this.algorithmParamsKey,algorithmParams:e};this.$emit("submit",t)},resetForm:function(e){this.$refs[e].resetFields(),this.dynamicValidateForm.algorithms=[],this.setParams()},removeDomain:function(e){var t=this.dynamicValidateForm.algorithms.indexOf(e);-1!==t&&this.dynamicValidateForm.algorithms.splice(t,1),this.setParams()},addDomain:function(){this.dynamicValidateForm.algorithms.push({value:"",key:Date.now()})}},watch:{algorithmParams:function(e){this.dynamicValidateForm.algorithms=e}}},ta=ea,na=Object(ut["a"])(ta,Zi,Ji,!1,null,null,null),ra=na.exports,oa=ar["a"].DescriptionsItem,ia={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:ar["a"],DescriptionsItem:oa,AlgorithmParams:ra},data:function(){return{checkedList:this.defaultCheckedList||[],visible:!1,btnLoading:!1,algorithmId:null,algorithmParams:[],activeKey:0,panes:[],paneParams:{},copyPaneParams:{}}},computed:{algorithmDetail:function(){var e=this;return this.data.find((function(t){return t.read_id===e.algorithmId}))||{}}},methods:{onCheckChange:function(e,t){if(t.checked=e.target.checked,t.checked)this.checkedList.push(t);else{var n=this.checkedList.findIndex((function(e){return t.read_id===e.read_id}));this.checkedList.splice(n,1)}this.$emit("change",this.checkedList)},showDrawer:function(e){var t=this;this.algorithmId=e;var n=this.checkedList.find((function(t){return t.read_id===e})).values;if(n.length)this.panes=n.map((function(e,n){var r={key:"".concat(t.algorithmId).concat(n),title:"参数",algorithmParams:e.map((function(e,t){return{key:t,value:e}}))};return r}));else{var r={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(r),this.panes=[r]}this.activeKey=this.panes[0].key,this.visible=!0},submitForm:function(e){var t=e.key;this.paneParams[t]?this.paneParams[t]=e.algorithmParams:this.$set(this.paneParams,t,e.algorithmParams),this.setParams()},setParams:function(){for(var e in this.copyPaneParams=Object.assign({},this.paneParams),this.copyPaneParams)-1===e.indexOf(this.algorithmId)&&delete this.copyPaneParams[e]},submitParams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.btnLoading=!0;var n=this.checkedList.find((function(t){return t.read_id===e.algorithmId}));t&&(n.values=Object.values(t)),this.$emit("change",this.checkedList),this.visible=this.btnLoading=!1},onEdit:function(e,t){this[t](e)},add:function(){var e=this.panes,t=e.length?e.length:0,n="".concat(this.algorithmId).concat(t),r={title:"参数",algorithmParams:[],key:n};this.submitForm(r),this.panes.push(r),this.panes=e,this.activeKey=n},remove:function(e){delete this.paneParams[e],this.setParams();var t,n=this.activeKey;this.panes.forEach((function(n,r){n.key===e&&(t=r-1)}));var r=this.panes.filter((function(t){return t.key!==e}));r.length&&n===e&&(n=t>=0?r[t].key:r[0].key),this.panes=r,this.activeKey=n}},watch:{}},aa=ia,sa=(n("9897"),Object(ut["a"])(aa,Qi,Xi,!1,null,null,null)),la=sa.exports,ca=function(){var e=this,t=e._self._c;return t("div",[t("a-row",{attrs:{type:"flex"}},[t("a-col",{staticStyle:{padding:"24px","background-color":"#fafafa"},attrs:{span:12}},[t("div",{staticStyle:{"text-align":"center","margin-bottom":"24px"}},[e._v(" 可 "),t("a",{on:{click:function(t){e.pickerVisible=!0}}},[e._v(" 选择系统中现有命例 ")]),e._v(" ,快速填充命例信息。 ")]),t("a-form-model",{ref:"profileForm",attrs:{layout:e.formLayout,model:e.profile,rules:e.profileRules}},[t("a-form-model-item",{attrs:{label:"昵称",prop:"nick_name","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入昵称",allowClear:""},model:{value:e.profile.nick_name,callback:function(t){e.$set(e.profile,"nick_name",t)},expression:"profile.nick_name"}})],1),t("a-form-model-item",{attrs:{label:"性别","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{model:{value:e.profile.gender,callback:function(t){e.$set(e.profile,"gender",t)},expression:"profile.gender"}},[t("a-radio",{attrs:{value:"male"}},[e._v("男")]),t("a-radio",{attrs:{value:"female"}},[e._v("女")])],1)],1),t("a-form-model-item",{attrs:{label:"公历","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{on:{change:e.handleLunarChange},model:{value:e.profile.is_lunar,callback:function(t){e.$set(e.profile,"is_lunar",t)},expression:"profile.is_lunar"}},[t("a-radio",{attrs:{value:!1}},[e._v("公历")]),t("a-radio",{attrs:{value:!0}},[e._v("农历")])],1)],1),e.hasDaylight?t("a-form-model-item",{attrs:{label:"夏令时","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{model:{value:e.profile.is_day_light,callback:function(t){e.$set(e.profile,"is_day_light",t)},expression:"profile.is_day_light"}},[t("a-radio",{attrs:{value:!0}},[e._v("是")]),t("a-radio",{attrs:{value:!1}},[e._v("否")])],1)],1):e._e(),t("a-form-model-item",{attrs:{label:"出生日期",prop:"birthday","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("a-input",{attrs:{placeholder:"请选择出生日期",allowClear:""},model:{value:e.profile.birthday,callback:function(t){e.$set(e.profile,"birthday",t)},expression:"profile.birthday"}}),t("DateTimePicker",{attrs:{slot:"content",isLunar:e.profile.is_lunar},on:{change:e.handleDateTimeChange},slot:"content"})],1)],1),e.hasLeap?t("a-form-model-item",{attrs:{label:"是否为闰月","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{model:{value:e.profile.is_leap,callback:function(t){e.$set(e.profile,"is_leap",t)},expression:"profile.is_leap"}},[t("a-radio",{attrs:{value:!0}},[e._v("是")]),t("a-radio",{attrs:{value:!1}},[e._v("否")])],1)],1):e._e(),t("a-form-model-item",{attrs:{label:"是否为双胞胎","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{model:{value:e.profile.is_twins,callback:function(t){e.$set(e.profile,"is_twins",t)},expression:"profile.is_twins"}},[t("a-radio",{attrs:{value:!0}},[e._v("是")]),t("a-radio",{attrs:{value:!1}},[e._v("否")])],1),e.profile.is_twins?t("a-input",{attrs:{addonBefore:"第",addonAfter:"胎"},model:{value:e.profile.birth_num,callback:function(t){e.$set(e.profile,"birth_num",t)},expression:"profile.birth_num"}}):e._e()],1),t("a-form-model-item",{attrs:{label:"出生地",prop:"place","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-cascader",{attrs:{options:e.districts,allowClear:"",placeholder:"请选择出生地"},on:{change:e.handleDistrictChange},model:{value:e.profile.place,callback:function(t){e.$set(e.profile,"place",t)},expression:"profile.place"}})],1),t("a-form-model-item",{attrs:{label:"算法","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[e._v(" "+e._s(e.profile.code)+" ")]),t("a-form-model-item",{attrs:{label:"产品编码",prop:"productCode","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入产品编码",allowClear:""},model:{value:e.profile.productCode,callback:function(t){e.$set(e.profile,"productCode",t)},expression:"profile.productCode"}})],1),t("a-form-model-item",{attrs:{label:"产品名称",prop:"productName","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入产品名称",allowClear:""},model:{value:e.profile.productName,callback:function(t){e.$set(e.profile,"productName",t)},expression:"profile.productName"}})],1),e.showMore?e._e():t("p",{staticStyle:{"text-align":"center"}},[t("a-button",{attrs:{type:"link"},on:{click:function(t){e.showMore=!0}}},[e._v("更多设置")])],1),e.showMore?[t("a-form-model-item",{attrs:{label:"姓",prop:"first_name","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入真实姓",allowClear:""},model:{value:e.profile.first_name,callback:function(t){e.$set(e.profile,"first_name",t)},expression:"profile.first_name"}})],1),t("a-form-model-item",{attrs:{label:"名",prop:"last_name","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入真实名",allowClear:""},model:{value:e.profile.last_name,callback:function(t){e.$set(e.profile,"last_name",t)},expression:"profile.last_name"}})],1),t("a-form-model-item",{attrs:{label:"开始时间",prop:"begin_input_time","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:e.beginTimeVisible,callback:function(t){e.beginTimeVisible=t},expression:"beginTimeVisible"}},[t("a-input",{attrs:{placeholder:"请选择开始时间",allowClear:""},model:{value:e.profile.begin_input_time,callback:function(t){e.$set(e.profile,"begin_input_time",t)},expression:"profile.begin_input_time"}}),t("DateTimePicker",{attrs:{slot:"content"},on:{change:function(t){return e.profile.begin_input_time=t}},slot:"content"})],1)],1),t("a-form-model-item",{attrs:{label:"结束时间",prop:"end_input_time","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:e.endTimeVisible,callback:function(t){e.endTimeVisible=t},expression:"endTimeVisible"}},[t("a-input",{attrs:{placeholder:"请选择结束时间",allowClear:""},model:{value:e.profile.end_input_time,callback:function(t){e.$set(e.profile,"end_input_time",t)},expression:"profile.end_input_time"}}),t("DateTimePicker",{attrs:{slot:"content"},on:{change:function(t){return e.profile.end_input_time=t}},slot:"content"})],1)],1),t("a-form-model-item",{attrs:{label:"数字占卜",prop:"yicuojin","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入三个数字,以英文逗号分隔(例如:1, 2, 3)",allowClear:""},model:{value:e.profile.yicuojin,callback:function(t){e.$set(e.profile,"yicuojin",t)},expression:"profile.yicuojin"}})],1),t("a-form-model-item",{attrs:{label:"文王卦",prop:"wenwanggua","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入六个字符,以英文逗号分隔(例如:断, 连, 断, 断, 连, 断)",allowClear:""},model:{value:e.profile.wenwanggua,callback:function(t){e.$set(e.profile,"wenwanggua",t)},expression:"profile.wenwanggua"}})],1),t("a-form-model-item",{attrs:{label:"文王卦类型",prop:"wenwanggualeixing","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-select",{attrs:{placeholder:"请选择文王卦类型"},on:{change:function(t){return e.profile.wenwanggualeixing=t}}},e._l(e.wenwangguaType,(function(n){return t("a-select-option",{key:n,attrs:{value:n}},[e._v(" "+e._s(n)+" ")])})),1)],1),t("a-form-model-item",{attrs:{label:"大六壬占时",prop:"daliurenzhanshi","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入时辰(例如:子)",allowClear:""},model:{value:e.profile.daliurenzhanshi,callback:function(t){e.$set(e.profile,"daliurenzhanshi",t)},expression:"profile.daliurenzhanshi"}})],1),t("a-form-model-item",{attrs:{label:"当前时间",prop:"now_time","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:e.nowTimeVisible,callback:function(t){e.nowTimeVisible=t},expression:"nowTimeVisible"}},[t("a-input",{attrs:{placeholder:"请选择当前时间",allowClear:""},model:{value:e.profile.now_time,callback:function(t){e.$set(e.profile,"now_time",t)},expression:"profile.now_time"}}),t("DateTimePicker",{attrs:{slot:"content"},on:{change:function(t){return e.profile.now_time=t}},slot:"content"})],1)],1),t("a-form-model-item",{attrs:{label:"答题测试结果",prop:"test_result","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入测试结果(例如:分数或者 A、B、C、D)",allowClear:""},model:{value:e.profile.test_result,callback:function(t){e.$set(e.profile,"test_result",t)},expression:"profile.test_result"}})],1),t("a-form-model-item",{attrs:{label:"DISC 测试结果",prop:"disc_result","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入测试结果(例如:1,2,3,4)",allowClear:""},model:{value:e.profile.disc_result,callback:function(t){e.$set(e.profile,"disc_result",t)},expression:"profile.disc_result"}})],1)]:e._e()],2),t("div",{staticStyle:{"text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit("0")}}},[e._v("立即测算")])],1)],1),t("a-col",{attrs:{span:12}},[e.codeValue?t("CodeEditor",{attrs:{width:"100%",value:e.codeValue}}):t("div",{staticStyle:{border:"1px solid #eee",height:"100%",position:"relative"}},[t("a-empty",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"},attrs:{description:"暂无测试结果"}})],1)],1)],1),t("a-modal",{attrs:{title:"选择命例",width:720,bodyStyle:{maxHeight:"480px",overflow:"auto"}},on:{ok:e.confirm},model:{value:e.pickerVisible,callback:function(t){e.pickerVisible=t},expression:"pickerVisible"}},[t("ProfileSelect",{on:{select:e.handleProfileSelect}})],1),t("a-button",{staticStyle:{position:"fixed",bottom:"10px",left:"106px"},attrs:{type:"primary"},on:{click:function(t){return e.submit("1")}}},[e._v(" 发布产品 ")])],1)},ua=[],fa={computed:{districts:function(){var e=this.$store.state["m-algorithm"].district,t=e&&e.filter((function(e){return"1"===e.level})),n=e&&e.filter((function(e){return"2"===e.level})),r=e&&e.filter((function(e){return"3"===e.level}));return t.map((function(e){return{value:e.district_id,label:e.district_name,children:n.filter((function(t){return t.parent===e.district_id})).map((function(e){return{value:e.district_id,label:e.district_name,children:r.filter((function(t){return t.parent===e.district_id})).map((function(e){return{value:e.district_id,label:e.district_name,time_zone:e.time_zone}}))}}))}}))||[]}}},da=function(){var e=this,t=e._self._c;return t("div",{ref:"monaco",staticStyle:{border:"1px solid #e8e8e8"},style:{width:e.width,height:e.height}})},pa=[],ha=n("2364"),ma=null,va={props:{width:{type:String,default:"800px"},height:{type:String,default:"600px"},value:{type:[Array,String],default:function(){return["function x() {",'\tconsole.log("Hello world!");',"}"]}}},mounted:function(){this.getResult(this.value)},methods:{getResult:function(e){ma&&ma.dispose();var t=ha["Uri"].parse("json://grid/settings.json");ma=ha["editor"].create(this.$refs.monaco,{value:JSON.stringify(e,null,"\t"),language:"json",Uri:t})}},watch:{value:function(e){this.getResult(e)}}},ya=va,ga=Object(ut["a"])(ya,da,pa,!1,null,null,null),ba=ga.exports,wa=function(){var e=this,t=e._self._c;return t("a-row",{staticClass:"custom-datepicker",attrs:{type:"flex"}},[t("a-col",[t("ul",e._l(e.years,(function(n,r){return t("li",{key:r,class:{active:e.value.yearIndex===r},on:{click:function(t){return e.change("year",r)}}},[e._v(" "+e._s(n)+"年 ")])})),0)]),t("a-col",[t("ul",e._l(e.months,(function(n,r){return t("li",{key:n,class:{active:e.value.monthIndex===r},on:{click:function(t){return e.change("month",r)}}},[e._v(" "+e._s(n)+"月 ")])})),0)]),t("a-col",[t("ul",e._l(e.days,(function(n,r){return t("li",{key:n,class:{active:e.value.dayIndex===r},on:{click:function(t){return e.change("day",r)}}},[e._v(" "+e._s(n)+"日 ")])})),0)]),t("a-col",[t("ul",e._l(e.hours,(function(n,r){return t("li",{key:n,class:{active:e.value.hourIndex===r},on:{click:function(t){return e.change("hour",r)}}},[e._v(" "+e._s(n)+"时 ")])})),0)]),t("a-col",[t("ul",e._l(e.minutes,(function(n,r){return t("li",{key:n,class:{active:e.value.minuteIndex===r},on:{click:function(t){return e.change("minute",r)}}},[e._v(" "+e._s(n)+"分 ")])})),0)])],1)},_a=[],Sa=[],Ca=[],ka=[],Ea=[],Oa=1901;Oa<=2030;Oa++)Sa.push("".concat(Oa));for(var Ta=1;Ta<=12;Ta++)Ca.push(Ta<10?"0".concat(Ta):"".concat(Ta));for(var Aa=0;Aa<=23;Aa++)ka.push(Aa<10?"0".concat(Aa):"".concat(Aa));for(var xa=0;xa<=59;xa++)Ea.push(xa<10?"0".concat(xa):"".concat(xa));var Na={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Sa,year:"1901",months:Ca,month:"01",day:"01",hours:ka,hour:"00",minutes:Ea,minute:"00"}},computed:{days:function(){var e=[];if(this.isLunar)for(var t=1;t<=30;t++)e.push(t<10?"0".concat(t):"".concat(t));else if(["01","03","05","07","08","10","12"].includes(this.month))for(var n=1;n<=31;n++)e.push(n<10?"0".concat(n):"".concat(n));else if(["04","06","09","11"].includes(this.month))for(var r=1;r<=30;r++)e.push(r<10?"0".concat(r):"".concat(r));else if("02"===this.month)if(parseInt(this.year)%4===0&&parseInt(this.year)%100!==0||parseInt(this.year)%400===0)for(var o=1;o<=29;o++)e.push(o<10?"0".concat(o):"".concat(o));else for(var i=1;i<=28;i++)e.push(i<10?"0".concat(i):"".concat(i));return e},value:function(){var e=this.years.indexOf(this.year),t=this.months.indexOf(this.month),n=this.days.indexOf(this.day),r=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:e,monthIndex:t,dayIndex:n,hourIndex:r,minuteIndex:o}}},created:function(){},methods:{change:function(e,t){"year"===e?this.year=this.years[t]:"month"===e?this.month=this.months[t]:"day"===e?this.day=this.days[t]:"hour"===e?this.hour=this.hours[t]:"minute"===e&&(this.minute=this.minutes[t]);var n="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",n)}}},Ia=Na,ja=(n("6d57"),Object(ut["a"])(Ia,wa,_a,!1,null,null,null)),Pa=ja.exports,Ra=function(){var e=this,t=e._self._c;return t("div",[t("a-input",{staticStyle:{width:"200px","margin-bottom":"24px"},attrs:{placeholder:"昵称",allowClear:""},on:{change:e.handleNameChange},model:{value:e.nickName,callback:function(t){e.nickName=t},expression:"nickName"}}),t("a-table",{attrs:{columns:e.columns,loading:e.loading,"data-source":e.userCase(),rowSelection:e.rowSelection,pagination:{current:e.getPagination?parseInt(e.getPagination.current):1,total:e.getPagination?parseFloat(e.getPagination.count):0,defaultPageSize:15},rowKey:"profile_id"},on:{change:e.handleChange},scopedSlots:e._u([{key:"gender",fn:function(n){return t("span",{},[e._v(" "+e._s("female"===n?"女":"男")+" ")])}}])})],1)},Da=[],Ba=[{title:"昵称",dataIndex:"nick_name",key:"nick_name"},{title:"姓氏",dataIndex:"first_name",key:"first_name"},{title:"名字",dataIndex:"last_name",key:"last_name"},{title:"性别",dataIndex:"gender",key:"gender",scopedSlots:{customRender:"gender"}},{title:"生日",dataIndex:"birthday",key:"birthday"}],La={mixins:[Wi],data:function(){return{columns:Ba,rowSelection:{type:"radio",onSelect:this.onSelect},nickName:"",currentPage:1}},created:function(){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}})},computed:{getPagination:function(){return this.data["user-case"]?this.data["user-case"].pagination:null}},methods:{userCase:function(){return this.data["user-case"]?this.data["user-case"].collection:[]},onSelect:function(e){this.$emit("select",e)},handleChange:function(e){this.currentPage=e.current,this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}}),this.userCase()},handleNameChange:function(e){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage,nick_name:this.nickName}})}}},Ma=La,Ua=Object(ut["a"])(Ma,Ra,Da,!1,null,null,null),Va=Ua.exports;function qa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Fa(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Fa(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Fa(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Fa(f,"constructor",c),Fa(c,"constructor",l),l.displayName="GeneratorFunction",Fa(c,o,"GeneratorFunction"),Fa(f),Fa(f,o,"Generator"),Fa(f,r,(function(){return this})),Fa(f,"toString",(function(){return"[object Generator]"})),(qa=function(){return{w:i,m:d}})()}function Fa(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fa=function(e,t,n,r){function i(t,n){Fa(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Fa(e,t,n,r)}function Ka(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ka(i,r,o,a,s,"next",e)}function s(e){Ka(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ha=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],Ga={mixins:[Wi,fa],props:["algorithmList"],components:{CodeEditor:ba,DateTimePicker:Pa,ProfileSelect:Va},data:function(){return{visible:!1,beginTimeVisible:!1,endTimeVisible:!1,nowTimeVisible:!1,showMore:!1,formLayout:"horizontal",formItemLayout:{labelCol:{span:6},wrapperCol:{span:14}},codeValue:null,wenwangguaType:Ha,profile:{nick_name:"",gender:"male",is_lunar:!1,birthday:null,place:[],is_twins:!1,is_leap:!1,birth_num:0,time_zone:8,is_day_light:!1,province:"",city:"",district:"",code:JSON.stringify(this.algorithmList)||"",productCode:"",productName:"",is_submit:"",first_name:"",last_name:"",begin_input_time:"",end_input_time:"",yicuojin:"",wenwanggua:"",wenwanggualeixing:"",daliurenzhanshi:"",now_time:"",test_result:"",disc_result:""},systemProfile:{},profileRules:{productCode:[{required:!0,message:"请输入产品编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}]},hasLeap:!1,hasDaylight:!1,pickerVisible:!1}},created:function(){this.loadDistrict()},methods:{submit:function(e){var t=this;return $a(qa().m((function n(){return qa().w((function(n){while(1)switch(n.n){case 0:t.profile.is_submit=e,t.$refs.profileForm.validate(function(){var n=$a(qa().m((function n(r){var o;return qa().w((function(n){while(1)switch(n.n){case 0:if(!r){n.n=3;break}return n.n=1,t.getResult({key:"/api/algorithm-product/algorithm",params:t.profile});case 1:if(o=n.v,!o||!o.data||"0"!==e){n.n=2;break}return t.codeValue=[JSON.parse(o.data)],n.a(2);case 2:o?(t.$message.success("增加算法产品成功"),t.$emit("close")):t.$message.error(t.message),n.n=4;break;case 3:return n.a(2,!1);case 4:return n.a(2)}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:return n.a(2)}}),n)})))()},handleDistrictChange:function(e,t){t&&t.length?(this.profile.province=t[0].label,this.profile.city=t[1].label,this.profile.district=t[2].label,this.profile.time_zone=t[t.length-1].time_zone):(this.profile.province="",this.profile.city="",this.profile.district="",this.profile.time_zone=8)},handleDateTimeChange:function(e){this.profile.birthday=e,this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday)},handleLunarChange:function(){this.profile.birthday&&(this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday))},timeStamp:function(e){return new Date(e).getTime()},bindHasLunar:function(e){var t=e?e.substring(4,0):"",n=e?e.substring(5,7):"",r=this.lunarLeapMonthOfYear(t)<10?"0"+this.lunarLeapMonthOfYear(t).toString():this.lunarLeapMonthOfYear(t).toString();this.profile.is_lunar&&(n===r&&"00"!==r?(this.hasLeap=!0,this.profile.is_leap=!0):(this.hasLeap=!1,this.profile.is_leap=!1))},bindDaylight:function(e){if(""!==e){var t=e.replace(/-/g,"/"),n=this.timeStamp(t),r=[];r=this.profile.is_lunar?[{start:this.timeStamp("1986/03/26 02:00"),end:this.timeStamp("1986/08/11 02:00")},{start:this.timeStamp("1987/03/15 02:00"),end:this.timeStamp("1987/07/21 02:00")},{start:this.timeStamp("1988/02/24 02:00"),end:this.timeStamp("1988/08/01 02:00")},{start:this.timeStamp("1989/03/11 02:00"),end:this.timeStamp("1989/08/18 02:00")},{start:this.timeStamp("1990/03/20 02:00"),end:this.timeStamp("1990/07/28 02:00")},{start:this.timeStamp("1991/02/30 02:00"),end:this.timeStamp("1991/08/08 02:00")}]:[{start:this.timeStamp("1986/05/04 02:00"),end:this.timeStamp("1986/09/14 02:00")},{start:this.timeStamp("1987/04/12 02:00"),end:this.timeStamp("1987/09/13 02:00")},{start:this.timeStamp("1988/04/10 02:00"),end:this.timeStamp("1988/09/11 02:00")},{start:this.timeStamp("1989/04/16 02:00"),end:this.timeStamp("1989/09/17 02:00")},{start:this.timeStamp("1990/04/15 02:00"),end:this.timeStamp("1990/09/16 02:00")},{start:this.timeStamp("1991/04/14 02:00"),end:this.timeStamp("1991/09/15 02:00")}],r.length&&(n>=r[0].start&&n<=r[0].end||n>=r[1].start&&n<=r[1].end||n>=r[2].start&&n<=r[2].end||n>=r[3].start&&n<=r[3].end||n>=r[4].start&&n<=r[4].end||n>=r[5].start&&n<=r[5].end)?(this.hasDaylight=!0,this.profile.is_day_light=!0):(this.hasDaylight=!1,this.profile.is_day_light=!1)}},lunarLeapMonthOfYear:function(e){var t=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448];return 15&t[e-1900]},handleProfileSelect:function(e){this.systemProfile={},this.systemProfile=e},confirm:function(){this.profile.nick_name=this.systemProfile.nick_name||this.systemProfile.nick_name,this.profile.gender=this.systemProfile.gender||this.profile.gender,this.profile.is_lunar=this.systemProfile.is_lunar||this.profile.is_lunar,this.profile.birthday=this.systemProfile.birthday||this.profile.birthday,this.profile.province=this.systemProfile.province||this.profile.province,this.profile.city=this.systemProfile.city||this.profile.city,this.profile.district=this.systemProfile.district||this.profile.district,this.profile.place=this.checkProfilePlace(this.profile.province,this.profile.city,this.profile.district)||this.profile.district,this.profile.is_twins=!!(this.systemProfile.birth_num&&this.systemProfile.birth_num>0),this.profile.is_leap=this.systemProfile.is_leap||this.profile.is_leap,this.profile.birth_num=this.systemProfile.birth_num||this.profile.birth_num,this.profile.time_zone=this.systemProfile.time_zone||this.profile.time_zone,this.profile.is_day_light=this.systemProfile.is_day_light||this.profile.is_day_light,this.pickerVisible=!1},checkProfilePlace:function(e,t,n){var r=this.$store.state["m-algorithm"].district,o=r.find((function(t){return t.district_name===e}))?r.find((function(t){return t.district_name===e})).district_id:"",i=r.find((function(e){return e.district_name===t}))?r.find((function(e){return e.district_name===t})).district_id:"",a=r.find((function(e){return e.district_name===n}))?r.find((function(e){return e.district_name===n})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(e){this.profile.code=JSON.stringify(e)}}},za=Ga,Ya=Object(ut["a"])(za,ca,ua,!1,null,null,null),Wa=Ya.exports;function Qa(e){return Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(e)}function Xa(e){return ts(e)||es(e)||Ja(e)||Za()}function Za(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ja(e,t){if(e){if("string"==typeof e)return ns(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ns(e,t):void 0}}function es(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ts(e){if(Array.isArray(e))return ns(e)}function ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach((function(t){is(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function is(e,t,n){return(t=as(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function as(e){var t=ss(e,"string");return"symbol"==Qa(t)?t:t+""}function ss(e,t){if("object"!=Qa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ls={mixins:[Wi],components:{CheckboxGroup:la,AlgorithmForm:Wa},data:function(){return{current:0,steps:[{title:"核心解读"},{title:"描述解读"},{title:"排盘数据"},{title:"术数分析"},{title:"算法验证及发布"}],nameKeyword:"",codeKeyword:"",search:{nameKeyword:"",codeKeyword:""},type:"核心解读",showTime:{format:"HH:mm"},badgeStyle:{backgroundColor:"#8c8c8c"},pickerVisible:!1,defaultCheckedList:[]}},created:function(){this.loadData({key:"algorithm-read",query:{_size:9999}})},computed:{algorithmData:function(){var e=this,t=this.data["algorithm-read"]&&this.data["algorithm-read"].collection,n=t&&t.filter((function(t){return""!==e.search.nameKeyword||""!==e.search.codeKeyword?t.classify===e.type&&-1!==t.name.indexOf(e.search.nameKeyword)&&-1!==t.code.indexOf(e.search.codeKeyword):t.classify===e.type})).map((function(t){var n=os(os({},t),{},{values:[],checked:!1});return e.checkedList.length&&e.checkedList.forEach((function(t){t.read_id===n.read_id&&(e.$set(n,"values",t.values),e.$set(n,"checked",t.checked))})),n})),r=Xa(new Set(n&&n.map((function(e){return e.classify})))),o=r&&r.map((function(e){var t=n.filter((function(t){return t.classify===e})),r=Xa(new Set(t.map((function(e){return e.type})))),o=r.map((function(e){return{name:e,children:t.filter((function(t){return t.type===e}))}}));return{name:e,children:o}}));return o||[]},algorithmCount:function(){var e=this.defaultCheckedList,t=e.filter((function(e){return"核心解读"===e.classify})).length||0,n=e.filter((function(e){return"描述解读"===e.classify})).length||0,r=e.filter((function(e){return"排盘数据"===e.classify})).length||0,o=e.filter((function(e){return"术数分析"===e.classify})).length||0;return{coreAlgorithmCount:t,describeAlgorithmCount:n,paipanDataCount:r,surgeryAnalysisCount:o}},algorithmList:function(){var e=this.defaultCheckedList,t=[],n=[];return e.forEach((function(r){var o=r.code;n=r.values.length>1?r.values.map((function(e,t){var n=t+1,r=1===n?o:n<10?"".concat(o,"_0").concat(n):"".concat(o,"_").concat(n);return[r,e||[]]})):e.map((function(e){return[e.code,e.values.length?e.values[0]:[]]})),t=[].concat(Xa(t),Xa(n))})),Object.fromEntries(t)},checkedList:function(){return this.defaultCheckedList||[]}},methods:{next:function(){this.current++,this.type=this.steps[this.current].title},prev:function(){this.current--,this.type=this.steps[this.current].title},handleChange:function(e,t,n,r){var o=this;e.forEach((function(e){var t=o.defaultCheckedList.findIndex((function(t){return t.read_id===e.read_id}));-1===t?o.defaultCheckedList=[].concat(Xa(o.defaultCheckedList),[e]):o.defaultCheckedList[t]=e}))},onSearch:function(){this.search.nameKeyword=this.nameKeyword,this.search.codeKeyword=this.codeKeyword},algorithmTotal:function(e){var t=e.map((function(e){return e.read_id})),n=this.checkedList.map((function(e){return e.read_id}));return t.filter((function(e){return n.includes(e)})).length}},watch:{nameKeyword:function(e){""===e&&this.onSearch()},codeKeyword:function(e){""===e&&this.onSearch()}}},cs=ls,us=(n("4dd6"),Object(ut["a"])(cs,xi,Ni,!1,null,null,null)),fs=us.exports;function ds(e){return vs(e)||ms(e)||hs(e)||ps()}function ps(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hs(e,t){if(e){if("string"==typeof e)return ys(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ys(e,t):void 0}}function ms(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function vs(e){if(Array.isArray(e))return ys(e)}function ys(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gs=function(){var e=this,t=e._self._c;return t("div",[t("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":e.dataSource,"target-keys":e.checkedKeys,render:function(e){return e.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},showSearch:e.showSearch},on:{change:e.onChange,search:e.handleSearch},scopedSlots:e._u([{key:"children",fn:function(n){var r=n.props,o=r.direction,i=r.selectedKeys,a=n.on.itemSelect;return["left"===o?t("a-spin",{attrs:{spinning:e.leftLoding}},[t("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(ds(i),ds(e.checkedKeys)),treeData:e.filterTreeNodes},on:{check:function(t,n){e.onChecked(t,n,[].concat(ds(i),ds(e.checkedKeys)),a)},select:function(t,n){e.onChecked(t,n,[].concat(ds(i),ds(e.checkedKeys)),a)}}})],1):e._e()]}}])})],1)},bs=[];function ws(e){return ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(e)}function _s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ss(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ss(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ss(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Ss(f,"constructor",c),Ss(c,"constructor",l),l.displayName="GeneratorFunction",Ss(c,o,"GeneratorFunction"),Ss(f),Ss(f,o,"Generator"),Ss(f,r,(function(){return this})),Ss(f,"toString",(function(){return"[object Generator]"})),(_s=function(){return{w:i,m:d}})()}function Ss(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ss=function(e,t,n,r){function i(t,n){Ss(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ss(e,t,n,r)}function Cs(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ks(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Cs(i,r,o,a,s,"next",e)}function s(e){Cs(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){Ts(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ts(e,t,n){return(t=As(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function As(e){var t=xs(e,"string");return"symbol"==ws(t)?t:t+""}function xs(e,t){if("object"!=ws(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ws(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ns={mixins:[St["a"]],data:function(){var e=this;return{targetKeys:[],dataSource:[],checkedKeys:this.params.data?this.params.data.map((function(t){return t[e.params.valueName]})):[],treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valuesName:this.params.valuesName,selected:this.params.selected||null,unselected:this.params.unselected||null,inputValue:"",leftLoding:!1}},computed:{treeNodes:function(){var e=this.treeData,t=this.titleName,n=this.keyName,r=this.checkedKeys,o=this.selected,i=this.unselected,a=function(e){return e.map((function(e){var s;return e._childList&&(s=a(e._childList)),{title:e[t],key:e[n],children:s,disabled:r.includes(e[n])||o&&!Object(R["a"])(o,e)||i&&Object(R["a"])(i,e)}}))};return a(e)},filterTreeNodes:function(){var e=this;return this.inputValue?this.treeNodes.filter((function(t){return-1!==t.title.indexOf(e.inputValue)})):this.treeNodes},multiple:function(){return void 0===this.params.multiple||this.params.multiple},showSearch:function(){return void 0===this.params.showSearch||this.params.showSearch}},created:function(){this.treeNodes&&this.flatten(JSON.parse(JSON.stringify(this.treeNodes))),this.checkedKeys&&(this.actionModel=Os(Os({},this.actionModel),{},Ts({},this.valuesName,this.checkedKeys)))},methods:{onChange:function(e,t){if((this.checkedKeys.length>1||e.length>1)&&"right"===t&&!this.multiple)return this.$message.error("只能选择 1 个人!"),!1;this.checkedKeys=e,this.actionModel=Os(Os({},this.actionModel),{},Ts({},this.valuesName,this.checkedKeys))},isChecked:function(e,t){return-1!==e.indexOf(t)},onChecked:function(e,t,n,r){var o=t.node.eventKey;r(o,!this.isChecked(n,o))},flatten:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){e.dataSource.push({title:t.title,key:t.key}),t.children&&e.flatten(t.children)}))},handleSubmit:function(){var e=this;return ks(_s().m((function t(){return _s().w((function(t){while(1)switch(t.n){case 0:e.handleCommit();case 1:return t.a(2)}}),t)})))()},handleSearch:function(e,t){var n=this,r=null;"left"===e&&(this.leftLoding=!0,r=setTimeout((function(){r&&clearTimeout(r),n.inputValue=t,n.leftLoding=!1}),1e3))}}},Is=Ns,js=(n("2387"),Object(ut["a"])(Is,gs,bs,!1,null,"0ce5108d",null)),Ps=js.exports,Rs=function(){var e=this,t=e._self._c;return t("a-tree",{attrs:{checkable:"",autoExpandParent:e.autoExpandParent,defaultCheckedKeys:e.checkedKeys,treeData:e.treeNodes,checkStrictly:""},on:{check:e.handleCheck}})},Ds=[];function Bs(e){return Bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(e)}function Ls(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ms(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ms(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ms(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Ms(f,"constructor",c),Ms(c,"constructor",l),l.displayName="GeneratorFunction",Ms(c,o,"GeneratorFunction"),Ms(f),Ms(f,o,"Generator"),Ms(f,r,(function(){return this})),Ms(f,"toString",(function(){return"[object Generator]"})),(Ls=function(){return{w:i,m:d}})()}function Ms(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ms=function(e,t,n,r){function i(t,n){Ms(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ms(e,t,n,r)}function Us(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Vs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Us(i,r,o,a,s,"next",e)}function s(e){Us(i,r,o,a,s,"throw",e)}a(void 0)}))}}function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){Ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ks(e,t,n){return(t=$s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $s(e){var t=Hs(e,"string");return"symbol"==Bs(t)?t:t+""}function Hs(e,t){if("object"!=Bs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Bs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Gs={mixins:[St["a"]],data:function(){var e=this;return{autoExpandParent:!0,checkedKeys:this.params.data.map((function(t){return t[e.params.valueName]})),treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valueName:this.params.valueName,valuesName:this.params.valuesName}},computed:{treeNodes:function(){var e=this.treeData,t=this.titleName,n=this.keyName,r=function(e){return e.map((function(e){var o;return e._childList&&(o=r(e._childList)),{title:e[t],key:e[n],children:o}}))};return r(e)}},created:function(){this.checkedKeys&&(this.actionModel=Fs(Fs({},this.actionModel),{},Ks({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(e,t){var n=e.checked;if(n.includes(t.node.eventKey)){var r=t.node;while(r&&r.eventKey)n.includes(r.eventKey)||n.push(r.eventKey),r=r.$parent}this.actionModel=Fs(Fs({},this.actionModel),{},Ks({},this.valuesName,n))},handleSubmit:function(){var e=this;return Vs(Ls().m((function t(){return Ls().w((function(t){while(1)switch(t.n){case 0:e.handleCommit();case 1:return t.a(2)}}),t)})))()}}},zs=Gs,Ys=Object(ut["a"])(zs,Rs,Ds,!1,null,null,null),Ws=Ys.exports,Qs=function(){var e=this,t=e._self._c;return t("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:e.actionModel,rules:e.rules}},[t("a-tabs",{attrs:{"tab-position":"top",size:"small"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.actionModel.confirm?t("a-tab-pane",{key:"1",staticClass:"flow-approve-content",attrs:{tab:"上报/审批",bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[e.actionModel.flow_action_name?t("div",{staticStyle:{"margin-bottom":"15px"}},[t("a-form-model-item",{attrs:{prop:"flow_action_name",size:"small"}},[t("a-radio-group",{attrs:{defaultValue:"submit"},model:{value:e.actionModel.flow_action_name,callback:function(t){e.$set(e.actionModel,"flow_action_name",t)},expression:"actionModel.flow_action_name"}},[t("a-radio-button",{attrs:{value:"submit"}},[e._v("审批通过")]),e.allowBack?t("a-radio-button",{attrs:{value:"back"}},[e._v(" 审批退回 ")]):e._e(),e.allowReassign?t("a-radio-button",{attrs:{value:"reassign"}},[e._v(" 转办 ")]):e._e(),e.allowInvolve?t("a-radio-button",{attrs:{value:"involve"}},[e._v(" 加签 ")]):e._e()],1)],1),e._l(e.attrs,(function(n){return[!n.scope||n.scope.includes(e.actionModel.flow_action_name)?t("Item",{key:n.name,attrs:{formModel:e.actionModel,prop:n.name,schema:n,required:n.required,params:{}},on:{change:function(t){return e.handleItemChange(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[attr.name]"}}):e._e()]})),t("a-form-model-item",{attrs:{label:["reassign","involve"].includes(e.actionModel.flow_action_name)?"备注":"审批意见",prop:"deal_note",size:"small"}},[t("a-textarea",{attrs:{placeholder:"请输入".concat(["reassign","involve"].includes(e.actionModel.flow_action_name)?"备注":"审批或退回意见"),"auto-size":{minRows:4,maxRows:6}},model:{value:e.actionModel.deal_note,callback:function(t){e.$set(e.actionModel,"deal_note",t)},expression:"actionModel.deal_note"}})],1),"back"===e.actionModel.flow_action_name&&e.backs&&e.backs.length?t("a-form-model-item",{attrs:{label:"退回步骤",prop:"deal_note",size:"small"}},[t("a-select",{model:{value:e.actionModel.back_step,callback:function(t){e.$set(e.actionModel,"back_step",t)},expression:"actionModel.back_step"}},e._l(e.backs,(function(n){return t("a-select-option",{key:n.step_id,attrs:{value:n.step_id}},[e._v(" "+e._s(n.step_name)+" ")])})),1)],1):e._e(),e.allowOver?t("a-form-model-item",{attrs:{label:"结束工作流",prop:"allow_over",size:"small"}},[t("a-switch",{model:{value:e.actionModel.is_over,callback:function(t){e.$set(e.actionModel,"is_over",t)},expression:"actionModel.is_over"}})],1):e._e()],2):e._e(),e.actionModel.flow_action_name?e._e():t("a-card",{style:{marginBottom:e.actionModel.flow_action_name?"15px":"0"},attrs:{bordered:!!e.actionModel.flow_action_name}},e._l(e.attrs,(function(n){return t("Item",{key:n.name,attrs:{formModel:e.actionModel,prop:n.name,schema:n,params:{}},on:{change:function(t){return e.handleItemChange(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[attr.name]"}})})),1),e.todos.length&&!["back","reassign","involve"].includes(e.actionModel.flow_action_name)&&e.todos[0].todo_actors.length?e._l(e.todos,(function(n,r){return t("div",{key:n.todo_id},[e.actionModel.flow_action_name?t("h4",[e._v("后续步骤")]):e._e(),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-small workflow-table"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[t("thead",{staticClass:"ant-table-thead"},[t("tr",[t("th",{key:"no",attrs:{width:"10%"}},[t("span",[e._v("序号")])]),t("th",{key:"template_name"},[t("span",[e._v("下一步步骤名称")])]),t("th",{key:"template_desc"},[t("span",[e._v("下一步审批者")])])])]),t("tbody",{staticClass:"ant-table-tbody"},[t("tr",{staticClass:"ant-table-row ant-table-row-level-0"},[t("td",[t("p",{staticStyle:{padding:"12px 0"}},[e._v(e._s(r+1))])]),t("td",[t("p",{staticStyle:{padding:"12px 0"}},[e._v(" "+e._s(n.current_step.step_name)+" ")])]),t("td",[t("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"搜索姓名","enter-button":""},on:{search:function(t){return e.operatorNameValue=t}}}),t("a-table",{attrs:{dataSource:e.filterOperators(n.todo_actors.map((function(e){return e.operator}))),rowKey:"actor_id",rowSelection:e.rowSelection,pagination:!1,size:"middle"}},[t("a-table-column",{key:"actor_name",attrs:{title:"姓名",dataIndex:"actor_name"}}),t("a-table-column",{key:"actor_org_name",attrs:{title:"所在单位/部门",dataIndex:"actor_org_name"}})],1)],1)])])])])])])])})):e._e()],2):e._e(),t("a-tab-pane",{key:e.actionModel.confirm?"2":"1",attrs:{tab:"审批记录"}},[t("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[t("a-list",{attrs:{itemLayout:"horizontal",dataSource:e.logs},scopedSlots:e._u([{key:"renderItem",fn:function(n){return t("a-list-item",{},[t("a-list-item-meta",[t("div",{attrs:{slot:"title"},slot:"title"},[e._v(" "+e._s(n.step_name)+" - "+e._s(n.operator.actor_name)+" - "+e._s(n.operator.actor_org_name)+" ")]),e.$store.state.app.icon?t("a-avatar",{attrs:{slot:"avatar",src:e.$store.state.app.icon},slot:"avatar"}):t("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),t("div",{attrs:{slot:"description"},slot:"description"},[t("div",[e._v(" "+e._s(n.deal_desc)+" ")]),n.deal_note?t("div",[e._v(" 审批意见:"+e._s(n.deal_note)+" ")]):e._e(),t("div",[t("a-icon",{attrs:{type:"clock-circle-o"}}),e._v(" "+e._s(e.moment(n.deal_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1)],1)}}])})],1)],1),t("a-tab-pane",{key:"3",attrs:{tab:"工作流步骤"}},[t("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[t("a-timeline",e._l(e.steps,(function(n,r){return t("a-timeline-item",{key:n.step_id,attrs:{color:e.stepIndex>r?"blue":e.stepIndex===r?"green":"#999"}},[e._v(" "+e._s(r+1)+". "+e._s(n.step_name)+" "),e.stepIndex>r?t("span",[e._v(" "+e._s(n.operator?"(".concat(n.operator,")"):"")+" ")]):e._e(),e.stepIndex===r?t("span",[e._v(" "+e._s(e.operatorName)+" ")]):e._e()])})),1)],1)],1),t("a-tab-pane",{key:"4",attrs:{tab:"流程图",forceRender:""}},[t("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[t("div",{ref:"graph"})])],1)],1)],1)},Xs=[],Zs=n("336c"),Js=n.n(Zs);function el(e){return el="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},el(e)}function tl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return nl(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(nl(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nl(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,nl(f,"constructor",c),nl(c,"constructor",l),l.displayName="GeneratorFunction",nl(c,o,"GeneratorFunction"),nl(f),nl(f,o,"Generator"),nl(f,r,(function(){return this})),nl(f,"toString",(function(){return"[object Generator]"})),(tl=function(){return{w:i,m:d}})()}function nl(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}nl=function(e,t,n,r){function i(t,n){nl(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},nl(e,t,n,r)}function rl(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ol(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rl(i,r,o,a,s,"next",e)}function s(e){rl(i,r,o,a,s,"throw",e)}a(void 0)}))}}function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?il(Object(n),!0).forEach((function(t){sl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sl(e,t,n){return(t=ll(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(e){var t=cl(e,"string");return"symbol"==el(t)?t:t+""}function cl(e,t){if("object"!=el(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=el(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}Js.a.track(!1);var ul=n("019f"),fl={mixins:[St["a"]],components:{Item:Ct["a"]},data:function(){return{actionModel:al(al({},this.values),{},{is_over:!1})||{},todos:this.params.flow&&this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo.constructor===Array?this.params.flow.flow_data.todo:[this.params.flow.flow_data.todo],current:this.params.flow&&this.params.flow.flow_data.case,formItems:this.params.flow&&this.params.flow.flow_data.form_param||[],backs:this.params.flow&&this.params.flow.flow_data.back_step,allowBack:this.params.flow&&this.params.flow.flow_data.allow_back,allowReassign:this.params.flow&&this.params.flow.flow_data.allow_reassign,allowInvolve:this.params.flow&&this.params.flow.flow_data.allow_involve,allowOver:this.params.flow&&this.params.flow.flow_data.allow_over,caseSteps:this.params.flow&&this.params.flow.model.case_step,logs:this.params.flow&&this.params.flow.flow_data.logs,rowSelection:{onChange:this.handleSelectionChange,columnWidth:"35px",type:this.params&&this.params.rowSelectionType?this.params.rowSelectionType:"checkbox",selectedRowKeys:[]||!1},activeName:"1",operatorNameValue:""}},created:function(){var e=this;if(this.todos&&1===this.todos.length&&this.todos[0].todo_actors&&1===this.todos[0].todo_actors.length&&(this.rowSelection.selectedRowKeys=this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo[0]&&this.params.flow.flow_data.todo[0].todo_actors&&this.params.flow.flow_data.todo[0].todo_actors.map((function(e){return e.operator.actor_id})),this.actionModel.todo_actors=this.rowSelection.selectedRowKeys),this.todos&&this.todos.forEach((function(t){if(t.next_default_actor&&t.todo_actors){var n=t.todo_actors.map((function(e){return e.operator.actor_id}));e.rowSelection.selectedRowKeys=n.filter((function(e){return t.next_default_actor===e})),e.actionModel.todo_actors=e.rowSelection.selectedRowKeys}})),this.defaultValues)for(var t in this.defaultValues)void 0===this.actionModel[t]&&this.$set(this.actionModel,t,this.defaultValues[t])},mounted:function(){var e=this;setTimeout((function(){e.renderGraph()}),50)},methods:{handleSelectionChange:function(e){this.rowSelection.selectedRowKeys=this.actionModel.todo_actors=e},handleCommit:function(){var e=this;return ol(tl().m((function t(){return tl().w((function(t){while(1)switch(t.n){case 0:if(!e.todos[0].todo_actors.length||e.actionModel.todo_actors.length||["back","reassign","involve"].includes(e.actionModel.flow_action_name)||e.params.todoActorsNotRequired){t.n=1;break}return e.$message.error("请选择下一步审批者"),t.a(2);case 1:e.$emit("commit",e.actionModel);case 2:return t.a(2)}}),t)})))()},handleItemChange:function(e,t){var n=this;return ol(tl().m((function r(){var o,i,a,s;return tl().w((function(r){while(1)switch(r.n){case 0:if(o=t.name,!(e instanceof FileList)){r.n=4;break}if(!e[0]){r.n=2;break}return i=new FormData,i.append(o,e[0]),r.n=1,n.$api.post("/upload",i);case 1:a=r.v,e=a.data.data[o],r.n=3;break;case 2:e=null;case 3:r.n=5;break;case 4:e instanceof Date&&(e=n.moment(e).format("YYYY-MM-DD"));case 5:s=al({},n.actionModel.data),s[o]=e,n.actionModel.data=al({},s);case 6:return r.a(2)}}),r)})))()},renderGraph:function(){var e=this;Js.a.registerNode("rect",{getPath:function(e){var t=150,n=40;return Js.a.Util.getRectPath(-t/2,-n/2,t,n,10)}});var t={nodes:this.steps.map((function(e,t){return{id:e.step_id,name:e.step_name,stepIndex:t}})),edges:this.steps.slice(1).map((function(t){var n=e.steps.find((function(e){return e.step_id===t.before_step_id}))||e.steps.find((function(e){return e.after_step_id===t.step_id}));return{source:n&&n.step_id,target:t.step_id}}))},n=new Js.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new ul({ranksep:30})],defaultIntersectBox:"rect"});n.node({shape:"rect",label:function(e){return e.name},style:function(t){return{stroke:e.stepIndex>t.stepIndex?"#0285cd":e.stepIndex===t.stepIndex?"#52c41a":"#999",fill:"#999",fillOpacity:.3,lineWidth:2}}}),n.edge({style:{endArrow:!0}}),n.read(t)},filterOperators:function(e){var t=this;return this.operatorNameValue?e.filter((function(e){return e.actor_name.toString().toLowerCase().includes(t.operatorNameValue.toLowerCase())})):e}},computed:{lastStepID:function(){return this.logs&&this.logs.length>0&&this.current&&"on-going"===this.current.case_status&&this.todos&&this.todos.length>0?this.todos[0].current_step_id:this.current&&"success"===this.current.case_status?this.caseSteps[this.caseSteps.length-1].step_id:this.caseSteps[0].step_id},stepIndex:function(){var e=this,t=this.steps.findIndex((function(t){return e.lastStepID===t.step_id}));return-1===t?0:!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?t:t-1},steps:function(){return this.caseSteps.filter((function(e){return Number(e.valid)}))},attrs:function(){var e,t=this,n=this.formItems.map((function(e){return e.attr_name})),r=((null===(e=this.view)||void 0===e||null===(e=e.schema)||void 0===e||null===(e=e.model)||void 0===e?void 0:e.attrs)||[]).filter((function(e){return n.includes(e.name)})).map((function(e){var n=t.formItems.find((function(t){return t.attr_name===e.name}));return al(al({},e),n)}));return["reassign","involve"].includes(this.actionModel.flow_action_name)?r.filter((function(e){return e.attr_name===t.actionModel.flow_action_name})):r.filter((function(e){return!["reassign","involve"].includes(e.attr_name)}))},defaultValues:function(){var e=this.attrs?this.attrs.filter((function(e){return!!e.value})).map((function(e){return[e.name,e.value]})):[];return e.length?Object.fromEntries(e):null},operatorName:function(){var e=[];return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?this.logs&&this.logs.length>0&&this.todos&&this.todos.length>0&&this.todos[0].todo_actors?e=this.todos[0].todo_actors.filter((function(e){return"close"!==e.status})).map((function(e){return e.operator_name})):this.logs&&0===this.logs.length&&(e=[this.$store.state.user.name]):e=[this.$store.state.user.name],e.length>0?"(".concat(e.join("、"),")"):""}}},dl=fl,pl=(n("3971"),Object(ut["a"])(dl,Qs,Xs,!1,null,null,null)),hl=pl.exports,ml=function(){var e=this,t=e._self._c;return t("a-spin",{staticStyle:{height:"inherit"},attrs:{spinning:e.loading}},[t("a-spin",{staticStyle:{height:"inherit"},attrs:{spinning:!e.init}},[this.isError?e._e():t("div",{staticClass:"jjh",staticStyle:{"background-color":"red"}},[e.init?t("NodeContainer",{attrs:{"business-adapter":e.businessAdapter,"node-data":e.nodeData}}):e._e()],1),e.isError?t("div",[e._v("系统错误! 尝试关闭并重新打开")]):e._e()])],1)},vl=[],yl=n("ad54"),gl=n("a142");function bl(e){return bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bl(e)}function wl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return _l(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(_l(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_l(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,_l(f,"constructor",c),_l(c,"constructor",l),l.displayName="GeneratorFunction",_l(c,o,"GeneratorFunction"),_l(f),_l(f,o,"Generator"),_l(f,r,(function(){return this})),_l(f,"toString",(function(){return"[object Generator]"})),(wl=function(){return{w:i,m:d}})()}function _l(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_l=function(e,t,n,r){function i(t,n){_l(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_l(e,t,n,r)}function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach((function(t){kl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kl(e,t,n){return(t=Nl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function El(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ol(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){El(i,r,o,a,s,"next",e)}function s(e){El(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Tl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Al(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nl(r.key),r)}}function xl(e,t,n){return t&&Al(e.prototype,t),n&&Al(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nl(e){var t=Il(e,"string");return"symbol"==bl(t)?t:t+""}function Il(e,t){if("object"!=bl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function jl(e,t,n){Pl(e,t),t.set(e,n)}function Pl(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Rl(e,t){return e.get(Bl(e,t))}function Dl(e,t,n){return e.set(Bl(e,t),n),n}function Bl(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Ll=new WeakMap,Ml=new WeakMap,Ul=new WeakMap,Vl=function(){function e(t){Tl(this,e),jl(this,Ll,void 0),jl(this,Ml,void 0),jl(this,Ul,void 0),Dl(Ll,this,t),Dl(Ml,this,window.location.origin+"/ead"),Dl(Ul,this,window.location.origin+"/workflow")}return xl(e,[{key:"getComponent",value:function(){return Rl(Ll,this)}},{key:"setComponent",value:function(e){Dl(Ll,this,e)}},{key:"getCurrentViewSchema",value:function(){return Rl(Ll,this).$attrs.schema}},{key:"getCurrentUserName",value:function(){return Rl(Ll,this).$store.state.user.name}},{key:"getModelIdName",value:function(){return Rl(Ll,this).$attrs.schema.model.idName}},{key:"runCurrentAction",value:function(){var e=Ol(wl().m((function e(){var t,n,r,o,i,a,s,l,c;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,t=Rl(Ll,this).action,n=Rl(Ll,this).view.apiURL.replace(Rl(Ll,this).view.apiBaseURL+"/",""),r=t.key,o=t.method,e.n=1,Rl(Ll,this).$api[o.toLowerCase()]("".concat(n).concat(r?"/".concat(r):""),Cl({},Rl(Ll,this).actionModel));case 1:return i=e.v,a=i.data,e.a(2,a);case 2:return e.p=2,c=e.v,s=c.response.data,l=s&&s.content||"系统错误请与管理员联系。",Rl(Ll,this).$message.error(l),e.a(2,null);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getViewAttrs",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-viewattr?view_id=").concat(t));case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getViewSchema",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ul,this),"/api/viewschema/").concat(t));case 1:return n=e.v,r=n.data,e.a(2,r);case 2:e.p=2,a=e.v,o=a.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getUsers",value:function(){var e=Ol(wl().m((function e(){var t,n,r,o,i,a;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-user"));case 1:return t=e.v,n=t.data.collection,r=void 0===n?[]:n,e.a(2,r);case 2:e.p=2,a=e.v,o=a.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getRoles",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-role?app_key=")+t);case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getOrgs",value:function(){var e=Ol(wl().m((function e(){var t,n,r,o,i,a;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-org"));case 1:return t=e.v,n=t.data.collection,r=void 0===n?[]:n,e.a(2,r);case 2:e.p=2,a=e.v,o=a.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDataset",value:function(){var e=Ol(wl().m((function e(t,n){var r,o,i,a,s,l;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/dataset/").concat(t),{params:Cl({},n)});case 1:return r=e.v,o=r.data.data,i=void 0===o?[]:o,e.a(2,i);case 2:e.p=2,l=e.v,a=l.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getDatasetApi",value:function(){var e=Ol(wl().m((function e(t,n){var r,o,i,a,s,l;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/").concat(t),{params:Cl({},n)});case 1:return r=e.v,o=r.data.collection,i=void 0===o?[]:o,e.a(2,i);case 2:e.p=2,l=e.v,a=l.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getViews",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-view?name=")+t);case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getModels",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-model?name=")+t);case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDrivers",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-driver?name=")+t);case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSelections",value:function(){return Rl(Ll,this).$attrs.selections}},{key:"getUrl",value:function(){return Rl(Ll,this).$attrs.schema.url}},{key:"getValues",value:function(){return Rl(Ll,this).values}},{key:"getModelValues",value:function(){return Rl(Ll,this).actionModel}},{key:"getCurrentAction",value:function(){return Rl(Ll,this).action}}])}(),ql=Vl,Fl={name:"workflow-designer",mixins:[St["a"]],components:{NodeContainer:yl["default"]},setup:function(){Ct["a"],St["a"];var e=new ql,t=gl["a"].getBusinessAdapter();t.eadApi=e;var n=[],r=Object(dn["ref"])(null);return{nodeData:n,businessAdapter:t,eadApi:e,oldHandleCommit:r}},data:function(){return{init:!1,loading:!1,isError:!1,errorInfo:""}},computed:{nodeHandler:function(){return this.businessAdapter.nodeHandler}},methods:{validNodeData:function(){return this.nodeHandler.verify()},handleCommit:function(){if(this.validNodeData()){var e=this.nodeHandler.map(),t={};Object.keys(e).forEach((function(n){t[n]=Object.fromEntries(e[n])})),t=JSON.parse(JSON.stringify(t));var n=t.node;Object.keys(n).forEach((function(e){var t=n[e];t.data&&t.data.option_forms&&t.data.option_forms.length&&t.data.option_forms.forEach((function(e){delete e.schema}))})),this.actionModel.workflow_data=t,this.$emit("commit",this.actionModel)}else this.$message.error("校验未通过")}},mounted:function(){var e=this;this.eadApi.setComponent(this),this.nodeData=this.businessAdapter.getNodeData(),this.businessAdapter.init().then((function(){e.init=!0})).catch((function(t){e.isError=!0,e.init=!0,e.errorInfo=JSON.stringify(t),e.$message.error("系统错误,请联系管理员")}))}},Kl=Fl,$l=Object(ut["a"])(Kl,ml,vl,!1,null,"7cc8451f",null),Hl=$l.exports,Gl=function(){var e,t,n,r,o=this,i=this,a=i._self._c;return a("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:i.actionModel,rules:i.rules}},[a("a-spin",{attrs:{spinning:i.loading}},[a("a-tabs",{on:{change:function(){return o.$refs.nodeContainer.toMiddle()}},model:{value:i.paneKey,callback:function(e){i.paneKey=e},expression:"paneKey"}},[i.paneSet.has("1")&&this.currentNode?a("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[i.OPERATE.CHECK===i.workflowReq.operate?a("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(e){return i.loadTodo()}},model:{value:i.workflowReq.page_operate.action,callback:function(e){i.$set(i.workflowReq.page_operate,"action",e)},expression:"workflowReq.page_operate.action"}},["check"===i.currentNode.type?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.PASS}},[i._v(" "+i._s(null!==(e=i.currentNode.data.other_options)&&void 0!==e&&null!==(e=e.custom_action)&&void 0!==e&&e.pass?i.currentNode.data.other_options.custom_action.pass:"审批通过")+" ")]):i._e(),i.runtimeData.pageOperate.allowBack?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.BACK}},[i._v(" "+i._s(null!==(t=i.currentNode.data.other_options)&&void 0!==t&&null!==(t=t.custom_action)&&void 0!==t&&t.pass?i.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):i._e(),i.runtimeData.pageOperate.allowReassign?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.REASSIGN}},[i._v(" 转办 ")]):i._e(),i.runtimeData.pageOperate.allowInvolve?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.INVOLVE}},[i._v(" 加签 ")]):i._e(),i.runtimeData.pageOperate.allowEnd?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.END}},[i._v(" 结束 ")]):i._e()],1):i._e(),(i.workflowReq.operate===i.OPERATE.START||i.workflowReq.operate===i.OPERATE.CHECK&&[i.CHECK_ACTION.PASS,i.CHECK_ACTION.EXECUTE,i.CHECK_ACTION.PREEXECUTE].includes(i.workflowReq.page_operate.action))&&i.runtimeData.currentNodeFormItem&&i.runtimeData.currentNodeFormItem.length?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[i._l(i.runtimeData.currentNodeFormItem,(function(e){return[e?a("Item",{key:e.name,attrs:{formModel:i.actionModel,params:{},prop:e.name,required:e.required,schema:e},on:{change:function(t){return i.handleItemChange(t,e)}},model:{value:i.actionModel[e.name],callback:function(t){i.$set(i.actionModel,e.name,t)},expression:"actionModel[attr.name]"}}):i._e()]}))],2)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.runtimeData.pageOperate.needRemark?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.BACK].includes(i.workflowReq.page_operate.action)||"task"===i.currentNode.type?"备注":"审批意见",required:!![i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.BACK].includes(i.workflowReq.page_operate.action),size:"small"}},[a("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END].includes(i.workflowReq.page_operate.action)||"task"===i.currentNode.type?"备注":"审批或退回意见")},model:{value:i.workflowReq.page_operate.operate_content,callback:function(e){i.$set(i.workflowReq.page_operate,"operate_content",e)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):i._e(),i.isCustomBack&&i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[a("a-select",{model:{value:i.workflowReq.page_operate.custom_back_node_code,callback:function(e){i.$set(i.workflowReq.page_operate,"custom_back_node_code",e)},expression:"workflowReq.page_operate.custom_back_node_code"}},i._l(i.currentNode.data.custom_back_nodes,(function(e){return a("a-select-option",{key:e,attrs:{value:e}},[i._v(" "+i._s(i.nodeHandler.getNode(e).name)+" ")])})),1)],1)],1):i._e(),i.runtimeData.todos&&null!==(n=i.runtimeData.todos.filter((function(e){return i.availableTodo(e)})))&&void 0!==n&&n.length&&(i.OPERATE.START===i.workflowReq.operate||i.OPERATE.CHECK===i.workflowReq.operate&&(i.workflowReq.page_operate.action===i.CHECK_ACTION.PASS||i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK&&"bpmn"===i.currentNode.data.back_type))?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"后续步骤"}},[i.runtimeData.todos&&null!==(r=i.runtimeData.todos.filter((function(e){return i.availableTodo(e)})))&&void 0!==r&&r.length?a("a-tabs",{attrs:{"tab-position":"top"},model:{value:i.currentTodo,callback:function(e){i.currentTodo=e},expression:"currentTodo"}},[i._l(i.runtimeData.todos,(function(e){var t,n,r,o,s,l,c,u;return[i.availableTodo(e)?a("a-tab-pane",{key:e.node_code,attrs:{disabled:!i.availableTodo(e),tab:null!==(t=null===(n=i.nodeHandler.getNode(e.node_code))||void 0===n?void 0:n.name)&&void 0!==t?t:"-"}},[i.availableTodo(e)?a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.filterTodoItemActors(t,e)}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":e.actorsf.value,pagination:!1,"row-selection":null!==(r=e.optional)&&void 0!==r&&r.enable?{type:e.optional.multi?"checkbox":"radio",selectedRowKeys:e.selected,onChange:function(t){e.selected=t}}:null,rowKey:"uid",size:"middle"}})],1),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(o={queue:"依次",orsign:"或签",sign:"会签"}[null!==(s=e.optional)&&void 0!==s&&s.enable&&null!==(l=e.optional)&&void 0!==l&&l.multi||(null===(c=e.optional)||void 0===c||!c.enable)&&e.actorsf.value.length>=2?null===e||void 0===e?void 0:e.actor_check_mode:""])&&void 0!==o?o:"")+"执行人列表",size:"small"}},[a("draggable",{attrs:{disabled:!("queue"===(null===e||void 0===e?void 0:e.actor_check_mode)&&null!==(u=e.optional)&&void 0!==u&&u.enable),animation:"100",chosenClass:"chosen"},model:{value:e.selected,callback:function(t){i.$set(e,"selected",t)},expression:"item.selected"}},[a("transition-group",{attrs:{name:"flip-list",type:"transition"}},[e.selected&&null!==e&&void 0!==e&&e.selected.length?i._l(e.selected,(function(e){return a("div",{key:e,staticClass:"item"},[i._v(" "+i._s(i.userCache[e])+" ")])})):i._e()],2)],1)],1)],1):i._e()]):i._e()]}))],2):i._e()],1)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.REASSIGN?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"转办执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.reassign.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return i.reassignUserFilter=e}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.reassignUserFilter,i.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(e){i.runtimeData.reassign.selected=e}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.reassignUserPagination.current=1,i.handleTableChangeReassignUser(i.reassignUserPagination)}},model:{value:i.reassignUserFilter,callback:function(e){i.reassignUserFilter=e},expression:"reassignUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.reassignUserData,loading:i.loadingReassignUser,pagination:i.reassignUserPagination,"row-key":function(e){return e.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(e){o.reassignUserData.filter((function(t){return e.includes(t.uid)})).forEach((function(e){return i.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),i.runtimeData.reassign.selected=e}}},on:{change:i.handleTableChangeReassignUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.reassign.selected,callback:function(e){i.$set(i.runtimeData.reassign,"selected",e)},expression:"runtimeData.reassign.selected"}},[a("transition-group",i._l(i.runtimeData.reassign.selected,(function(e){return a("div",{key:e,staticClass:"item"},[i._v(" "+i._s(i.userCache[e])+" ")])})),0)],1)],1)],1)])],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.INVOLVE?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"加签执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.involve.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return i.involveUserFilter=e}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.involveUserFilter,i.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(e){i.runtimeData.involve.selected=e}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.involveUserPagination.current=1,i.handleTableChangeInvolveUser(i.involveUserPagination)}},model:{value:i.involveUserFilter,callback:function(e){i.involveUserFilter=e},expression:"involveUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.involveUserData,loading:i.loadingInvolveUser,pagination:i.involveUserPagination,"row-key":function(e){return e.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(e){o.involveUserData.filter((function(t){return e.includes(t.uid)})).forEach((function(e){return i.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),i.runtimeData.involve.selected=e}}},on:{change:i.handleTableChangeInvolveUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.involve.selected,callback:function(e){i.$set(i.runtimeData.involve,"selected",e)},expression:"runtimeData.involve.selected"}},[a("transition-group",i._l(i.runtimeData.involve.selected,(function(e){return a("div",{key:e,staticClass:"item"},[i._v(" "+i._s(i.userCache[e])+" ")])})),0)],1)],1)],1)])],1):i._e()],1):i._e(),i.paneSet.has("2")?a("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"操作记录"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:i._u([{key:"renderItem",fn:function(e){return a("a-list-item",{},[a("a-list-item-meta",[a("strong",{attrs:{slot:"title"},slot:"title"},[i._v(" "+i._s(e.node_name)+" "),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.operate_data,expression:"item.operate_data"}],attrs:{icon:"read",type:"link"},on:{click:function(t){return i.showOperateData(e)}}})],1),i.$store.state.app.icon?a("a-avatar",{attrs:{slot:"avatar",src:i.$store.state.app.icon},slot:"avatar"}):a("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),a("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[a("div",[i._v(i._s(e.operate_desc))]),e.operate_content?a("div",[[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.EXECUTE].includes(e.operate)?a("div",[i._v(" 备注:"+i._s(e.operate_content)+" ")]):a("div",[i._v(" 审批意见:"+i._s(e.operate_content)+" ")])]):i._e(),a("a-space",[a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),i._v(" "+i._s(i.moment(e.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),a("a-divider",{attrs:{type:"vertical"}}),a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),i._v(" "+i._s(e.operator.name)+"("+i._s(e.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,542072683)})],1)],1):i._e(),i.paneSet.has("3")?a("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("div",{staticStyle:{position:"absolute","z-index":"999"}},[a("a-button",{directives:[{name:"show",rawName:"v-show",value:!i.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:i.showFullScreenFlow}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:i.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer",staticStyle:{"max-height":"350px"},attrs:{"business-adapter":i.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData},on:{nodeHandlerReady:i.nodeHandlerReady,nodeHandlerChange:i.nodeHandlerChange}}):i._e()],1)],1):i._e()],1)],1),a("a-modal",{attrs:{title:"操作表单",visible:i.isShowOperateData,footer:null,width:"50%"},on:{cancel:i.hideOperateData}},[a("a-descriptions",{attrs:{bordered:"",column:{xxl:2,xl:2,lg:2,md:2,sm:2,xs:1}}},i._l(i.operateDataItems,(function(e){return a("a-descriptions-item",{key:e.id,attrs:{label:e.alias}},[i._v(" "+i._s(i.formatter(e,e.value,e))+" ")])})),1)],1),a("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:i.fullscreen,title:"流程图",width:"100%"},on:{cancel:i.hideFullScreenFlow}},[i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":i.businessAdapter,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData}}):i._e(),a("template",{slot:"footer"},[a("a-button",{key:"back",on:{click:i.hideFullScreenFlow}},[i._v("关闭")])],1)],2)],1)},zl=[],Yl=n("289a"),Wl=n.n(Yl);function Ql(e){return Ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ql(e)}function Xl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=nc(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Zl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Jl(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Jl(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Jl(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Jl(f,"constructor",c),Jl(c,"constructor",l),l.displayName="GeneratorFunction",Jl(c,o,"GeneratorFunction"),Jl(f),Jl(f,o,"Generator"),Jl(f,r,(function(){return this})),Jl(f,"toString",(function(){return"[object Generator]"})),(Zl=function(){return{w:i,m:d}})()}function Jl(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Jl=function(e,t,n,r){function i(t,n){Jl(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Jl(e,t,n,r)}function ec(e){return oc(e)||rc(e)||nc(e)||tc()}function tc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nc(e,t){if(e){if("string"==typeof e)return ic(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ic(e,t):void 0}}function rc(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function oc(e){if(Array.isArray(e))return ic(e)}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(n),!0).forEach((function(t){lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lc(e,t,n){return(t=cc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cc(e){var t=uc(e,"string");return"symbol"==Ql(t)?t:t+""}function uc(e,t){if("object"!=Ql(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ql(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function fc(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function dc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fc(i,r,o,a,s,"next",e)}function s(e){fc(i,r,o,a,s,"throw",e)}a(void 0)}))}}var pc={START:"start",CHECK:"check",QUERY:"query"},hc={PREVIEW:"preview",CONFIRM:"confirm"},mc={PASS:"pass",BACK:"back",REASSIGN:"reassign",INVOLVE:"involve",END:"end",EXECUTE:"execute",PREEXECUTE:"preexecute"},vc={name:"runtime-workflow",mixins:[St["a"],Re["a"]],components:{NodeContainer:yl["default"],Item:Ct["a"],draggable:Wl.a},data:function(){return{OPERATE:pc,OPERATE_MODE:hc,CHECK_ACTION:mc,nodeHandler:null,loading:!0,paneSet:new Set,initNodeContainer:!1,fullscreen:!1,fullscreenLoading:!1,isShowOperateData:!1,operateDataItems:[],nodeData:null,paneKey:"3",currentNode:null,currentTodo:null,runtimeData:{currentNodeCode:"审批人",currentNodeOptionForms:[],currentNodeFormItem:null,pageOperate:{allowBack:!0,allowReassign:!0,allowInvolve:!0,allowEnd:!0,needRemark:!0},customBackNodes:["上报人"],caseNodes:{"上报人":{status:"finish",operate_data_id:""},"审批人":{status:"ongoing",operate_data_id:""},"抄送人":{status:"finish",operate_data_id:""}},actorLogs:{"上报人":[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"reassign",operate_desc:"专办给 to xxx",create_time:1613241234123,sequent:[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"start",operate_desc:"接收专班;并上报",create_time:1613241244123}]},{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"involve",operate_desc:"加签 给 xxx",create_time:1613241234123,sequent:[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate_desc:"完成",operate:"start",create_time:1613241244123}],callback:{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"start",operate_desc:"接收到加签结果;继续处理",create_time:1613241234123}},{operator:{name:"jianghui",org_name:"部门"},status:"ongoing",operate_desc:"正在处理中"}],"审批人":[{operator:{name:"jianghui3",org_name:"部门"},status:"ongoing",operate_desc:"接收到加签结果;继续处理"}]},logList:[{node_name:"上报人",operate:"start",operate_desc:"由王盛发起流程",operate_content:"审批意见",create_time:1613241234123,operator:{name:"jianghui",org_name:"部门"}},{node_name:"上报人",operate_desc:"上报完成",operate_content:"审批意见",create_time:1613241234123,operator:{name:"jianghui",org_name:"部门"}}],todos:[{node_code:"审批人2",condition:"(true) && (true)",optional:{multi:!0,enable:!0},actor_check_mode:"queue",actors:[{uid:1,name:"jianghui0",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"},{uid:3,name:"jianghui2",org_name:"部门2"},{uid:4,name:"jianghui3",org_name:"部门3"},{uid:5,name:"jianghui4",org_name:"部门3"}],selected:[]},{node_code:"审批人3",actor_check_mode:"sign",optional:{multi:!0,enable:!0},actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}],selected:[]},{node_code:"审批人5",actor_check_mode:"",optional:{multi:!1,enable:!0},actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}],selected:[]},{node_code:"审批人4",actor_check_mode:"queue",optional:{multi:!1,enable:!1},selected:[1,2],actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}]}],involve:{selected:[]},reassign:{selected:[]}},isCustomBack:null,reassignUserFilter:"",loadingReassignUser:!1,reassignUserData:[],reassignUserPagination:{pageSizeOptions:["10","20"],current:1,pageSize:10},involveUserFilter:"",loadingInvolveUser:!1,involveUserData:[],involveUserPagination:{pageSizeOptions:["10","20"],current:1,pageSize:10},userCache:{},expressionError:!1,workflow:{},formAttrs:[],activityColumns:[]}},setup:function(e){var t=e.columns,n=new ql,r=gl["a"].getBusinessAdapter(),o={operate_mode:hc.PREVIEW,operate:pc.QUERY,page_operate:{action:mc.PASS,operate_content:"",custom_back_node_code:void 0,todos:void 0,involve:void 0,reassign:void 0,form_data:{}},model_id:null,data_id:null};return{columnsRef:Object(dn["ref"])(t),workflowReq:Object(dn["ref"])(o),eadApi:n,businessAdapter:r}},created:function(){},mounted:function(){var e=this;return dc(Zl().m((function t(){var n,r,o,i,a,s,l,c,u,f,d,p,h,m;return Zl().w((function(t){while(1)switch(t.n){case 0:return e.activityColumns=((null===(n=e.view)||void 0===n||null===(n=n.schema)||void 0===n||null===(n=n.model)||void 0===n?void 0:n.attrs)||[]).filter((function(e){return"none"!==e.access})).map((function(e){return e.name})),e.columnsRef=e.columnsRef.map((function(e){return sc({},e)})),e.eadApi.setComponent(e),e.businessAdapter.eadApi=e.eadApi,e.workflowReq.operate=null!==(r=pc[e.configs["workflow.operate"].toUpperCase()])&&void 0!==r?r:e.workflowReq.operate,e.workflowReq.data_id=e.eadApi.getModelValues()[e.eadApi.getModelIdName()],e.workflowReq.model_id=e.configs["workflow.id"],e.eadApi.getModelValues().workflow_req=e.workflowReq,t.n=1,e.eadApi.runCurrentAction();case 1:if(c=t.v,c){t.n=2;break}return e.loading=!1,e.$emit("close"),t.a(2);case 2:Object.keys(e.actionModel).forEach((function(t){Object.keys(c.data).includes(t)&&e.setModel(t,c.data[t])})),e.workflow=null===c||void 0===c||null===(o=c.data)||void 0===o?void 0:o.workflow,u=null===c||void 0===c||null===(i=c.data)||void 0===i||null===(i=i.workflow)||void 0===i?void 0:i.runtime_data,u&&Object.keys(u).length&&(e.runtimeData=u),"check"===u.currentNodeType?e.workflowReq.page_operate.action=mc.PASS:e.workflowReq.page_operate.action=mc.EXECUTE,e.runtimeData.logList||(e.runtimeData.logList=[]),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(e){(!e.optional||e.optional&&!e.optional.enable)&&(e.selected&&e.selected.length||(e.selected=e.actors.map((function(e){return e.uid})))),e.optional&&e.optional.enable&&!e.optional.multi&&(e.selected&&e.selected.length||(e.selected=[e.actors[0].uid]))})),e.runtimeData.actorLogs||(e.runtimeData.actorLogs={}),e.runtimeData.caseNodes&&e.runtimeData.caseNodes.length&&(f={},e.runtimeData.caseNodes.forEach((function(e){f[e.node_code]=sc({},e)})),e.runtimeData.caseNodes=f),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(e){e.actorfilter||(e.actorfilter=""),e.actorsf=Object(dn["ref"])(ec(e.actors))})),d=[],null!==(a=e.runtimeData)&&void 0!==a&&null!==(a=a.involve)&&void 0!==a&&a.actors&&d.push.apply(d,ec(e.runtimeData.involve.actors)),null!==(s=e.runtimeData)&&void 0!==s&&null!==(s=s.reassign)&&void 0!==s&&s.actors&&d.push.apply(d,ec(e.runtimeData.reassign.actors)),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(e){d.push.apply(d,ec(e.actors))})),d.forEach((function(t){e.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),p=null===c||void 0===c||null===(l=c.data)||void 0===l||null===(l=l.workflow)||void 0===l?void 0:l.node_json,h=p?null===p||void 0===p?void 0:p.node:null,e.nodeData=h?ec(Object.values(h)):[],m=e.paneSet,[pc.START,pc.CHECK].includes(e.workflowReq.operate)&&m.add("1"),m.add("2"),m.add("3"),e.initNodeContainer=!0,e.$nextTick((function(){e.paneKey=ec(m.values())[0]})),e.validExpression(),e.loadTodo(),e.actionModel.workflow_req=e.workflowReq,e.actionModel.workflow=e.workflow,e.loading=!1,e.workflowReq.operate===pc.CHECK&&(e.fetchInvolveUser(),e.fetchReassignUser());case 3:return t.a(2)}}),t)})))()},methods:{filterTodoItemActors:function(e,t){t.actorsf.value=this.filterActors(e,t.actors)},filterActors:function(e,t){return e?t.filter((function(t){return t.name.toString().toLowerCase().includes(e.toLowerCase())})):t},handleTableChangeReassignUser:function(e){var t=sc({},this.reassignUserPagination);t.current=e.current,this.reassignUserPagination=t,this.fetchReassignUser({userName:this.reassignUserFilter,pagination:{pageSize:e.pageSize,current:e.current}})},showOperateData:function(e){var t=this;return dc(Zl().m((function n(){var r,o,i;return Zl().w((function(n){while(1)switch(n.n){case 0:if(r=t.columns,!e.option_view_id){n.n=2;break}return n.n=1,t.eadApi.getViewSchema(e.option_view_id);case 1:o=n.v,r=null===o||void 0===o?void 0:o.model.attrs;case 2:i=JSON.parse(e.operate_data),t.operateDataItems=[],r.forEach((function(e){if(e.name in i){var n=sc({},e);n.value=i[e.name],t.operateDataItems.push(n)}})),t.isShowOperateData=!0;case 3:return n.a(2)}}),n)})))()},hideOperateData:function(){this.isShowOperateData=!1},fetchReassignUser:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userName:this.reassignUserFilter,pagination:this.reassignUserPagination};this.loadingReassignUser=!0,this.getAllUsers(t.userName,t.pagination).then((function(t){var n=sc({},e.reassignUserPagination);n.total=t.count,e.loadingReassignUser=!1,e.reassignUserData=t.results,e.reassignUserPagination=n}))},handleTableChangeInvolveUser:function(e){var t=sc({},this.involveUserPagination);t.current=e.current,this.involveUserPagination=t,this.fetchInvolveUser({userName:this.involveUserFilter,pagination:{pageSize:e.pageSize,current:e.current}})},fetchInvolveUser:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userName:this.involveUserFilter,pagination:this.involveUserPagination};this.loadingInvolveUser=!0,this.getAllUsers(t.userName,t.pagination).then((function(t){var n=sc({},e.involveUserPagination);n.total=t.count,e.loadingInvolveUser=!1,e.involveUserData=t.results,e.involveUserPagination=n}))},getAllUsers:function(e,t){var n=this;return dc(Zl().m((function r(){var o,i;return Zl().w((function(r){while(1)switch(r.n){case 0:return r.n=1,n.eadApi.getDatasetApi("flowdir-allusercount",{user_name:e});case 1:return o=r.v,r.n=2,n.eadApi.getDatasetApi("flowdir-alluser",{user_name:e,limit_index:(t.current-1)*t.pageSize,limit_num:t.pageSize});case 2:return i=r.v,r.a(2,{count:o[0].count,results:i})}}),r)})))()},handleCommit:function(){var e,t=this,n=!1;if(this.workflowReq.operate_mode=hc.CONFIRM,this.workflowReq.operate===pc.START){var r;if(null!==(r=this.runtimeData.todos)&&void 0!==r&&r.length){var o=this.getAvailableTodos(),i=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(e){return"end"===e.type}));if(!o.length&&!i)return void this.$message.error("无法匹配到符合条件的后续步骤。");this.workflowReq.page_operate.todos=o}var a=this.nodeHandler.map(),s={};Object.keys(a).forEach((function(e){s[e]=Object.fromEntries(a[e])})),this.workflowReq.node_json=s}if(this.workflowReq.operate===pc.CHECK){if(this.workflowReq.page_operate.action===mc.BACK){var l;if("bpmn"===this.currentNode.data.back_type&&(n=!0),this.runtimeData.pageOperate.needRemark&&!this.workflowReq.page_operate.operate_content)return void this.$message.error("请填写退回原因。");if(null!==(l=this.runtimeData.todos)&&void 0!==l&&l.length){var c=this.getAvailableTodos(),u=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(e){return"end"===e.type}));if(!c.length&&!u)return void this.$message.error("无法匹配到符合条件的后续步骤。");this.workflowReq.page_operate.todos=c}}var f;if(this.workflowReq.page_operate.action===mc.PASS)if(null!==(f=this.runtimeData.todos)&&void 0!==f&&f.length){var d=this.getAvailableTodos(),p=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(e){return"end"===e.type}));if(!d.length&&!p)return void this.$message.error("无法匹配到符合条件的后续步骤。");this.workflowReq.page_operate.todos=d}if(this.workflowReq.page_operate.action===mc.INVOLVE){var h;if(null===(h=this.runtimeData.involve)||void 0===h||null===(h=h.selected)||void 0===h||!h.length)return void this.$message.error("请选择加签人。");if(this.runtimeData.pageOperate.needRemark&&!this.workflowReq.page_operate.operate_content)return void this.$message.error("请填写加签原因。");this.workflowReq.page_operate.involve=this.runtimeData.involve}if(this.workflowReq.page_operate.action===mc.REASSIGN){var m;if(null===(m=this.runtimeData.reassign)||void 0===m||null===(m=m.selected)||void 0===m||!m.length)return void this.$message.error("请选择转办人。");if(this.runtimeData.pageOperate.needRemark&&!this.workflowReq.page_operate.operate_content)return void this.$message.error("请填写转办原因。");this.workflowReq.page_operate.reassign=this.runtimeData.reassign}}if(this.currentNode.data.other_options.assert&&this.currentNode.data.other_options.assert.length){var v,y=this.currentNode.data.other_options.assert.filter((function(e){return"all"===e.action||e.action===t.workflowReq.page_operate.action})).filter((function(e){return e.expression&&e.message})),g=Xl(y);try{var b,w=function(){var e=v.value;try{var n={};t.activityColumns.forEach((function(e){return n[e]=t.actionModel[e]}));var r=new Function(Object.keys(n),"return "+e.expression),o=r.apply(void 0,ec(Object.values(n)));if(!o)return t.$message.error(e.message),{v:void 0}}catch(i){return t.$message.error("断言表达式配置错误,"+e.message),{v:void 0}}};for(g.s();!(v=g.n()).done;)if(b=w(),b)return b.v}catch(S){g.e(S)}finally{g.f()}}this.runtimeData.currentNodeFormItem&&this.runtimeData.currentNodeFormItem.forEach((function(e){t.workflowReq.page_operate.form_data[e.name]=t.actionModel[e.name]})),this.actionModel.workflow=this.workflow,this.actionModel.workflow_req=this.workflowReq,"暂存"===(null===(e=this.action)||void 0===e||null===(e=e._tempdata)||void 0===e?void 0:e.workflow_footer_action)&&"task"===this.currentNode.type&&(this.workflowReq.page_operate.action=mc.PREEXECUTE);var _=sc({},this.actionModel);_.workflow_req=sc({},this.workflowReq),_.workflow_req.page_operate=sc({},this.workflowReq.page_operate),n&&(_.workflow_req.page_operate.action="BPMN_BACK"),this.$emit("commit",_)},nodeHandlerReady:function(e){var t=this;return dc(Zl().m((function n(){var r,o,i,a,s,l,c;return Zl().w((function(n){while(1)switch(n.n){case 0:if(t.nodeHandler=e,i=t.currentNode=e.getNode(t.runtimeData.currentNodeCode),!t.runtimeData.pageOperate&&null!==i&&void 0!==i&&null!==(r=i.data)&&void 0!==r&&r.page_options&&(t.runtimeData.pageOperate=i.data.page_options),a=t.columns,!i||!i.data.option_view_id){n.n=2;break}return n.n=1,t.eadApi.getViewSchema(i.data.option_view_id);case 1:s=n.v,a=null===s||void 0===s?void 0:s.model.attrs;case 2:l=null!==(o=t.runtimeData.currentNodeOptionForms)&&void 0!==o?o:null===i||void 0===i?void 0:i.data.option_forms,c=t.runtimeData.currentNodeOperateData,t.runtimeData.currentNodeFormItem=l.filter((function(e){return"none"!==e.access})).map((function(e){var n=a.find((function(t){return t.name===e.attrCode}));return n&&(n.params||(n.params={}),n.params.readonly="readonly"===e.access,n.required=e.required,i&&i.data.option_view_id&&(c?t.setModel(n.name,c[e.attrCode]):t.setModel(n.name,null))),n})).filter((function(e){return e})),t.isCustomBack="custom"===(null===i||void 0===i?void 0:i.data.back_type),t.isCustomBack&&(t.runtimeData.customBackNodes||(t.runtimeData.customBackNodes=ec(null===i||void 0===i?void 0:i.data.custom_back_nodes)),t.workflowReq.page_operate.custom_back_node_code=t.runtimeData.customBackNodes[0]);case 3:return n.a(2)}}),n)})))()},nodeHandlerChange:function(e){var t=this;return dc(Zl().m((function n(){var r,o,i,a,s,l,c,u,f;return Zl().w((function(n){while(1)switch(n.n){case 0:if(s=e.map(),s.node.size!==Object.keys(t.workflow.node_json.node).length){n.n=1;break}return n.a(2);case 1:return l={},Object.keys(s).forEach((function(e){l[e]=Object.fromEntries(s[e])})),t.workflowReq.node_json=l,t.eadApi.getModelValues().workflow_req=t.workflowReq,n.n=2,t.eadApi.runCurrentAction();case 2:if(c=n.v,c){n.n=3;break}return t.loading=!1,t.$emit("close"),n.a(2);case 3:t.workflow=null===c||void 0===c||null===(r=c.data)||void 0===r?void 0:r.workflow,u=null===c||void 0===c||null===(o=c.data)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.runtime_data,u&&Object.keys(u).length&&(t.runtimeData=u),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(e){(!e.optional||e.optional&&!e.optional.enable)&&(e.selected&&e.selected.length||(e.selected=e.actors.map((function(e){return e.uid})))),e.optional&&e.optional.enable&&!e.optional.multi&&(e.selected&&e.selected.length||(e.selected=[e.actors[0].uid]))})),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(e){e.actorfilter||(e.actorfilter=""),e.actorsf=Object(dn["ref"])(ec(e.actors))})),f=[],null!==(i=t.runtimeData)&&void 0!==i&&null!==(i=i.involve)&&void 0!==i&&i.actors&&f.push.apply(f,ec(t.runtimeData.involve.actors)),null!==(a=t.runtimeData)&&void 0!==a&&null!==(a=a.reassign)&&void 0!==a&&a.actors&&f.push.apply(f,ec(t.runtimeData.reassign.actors)),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(e){f.push.apply(f,ec(e.actors))})),t.userCache={},f.forEach((function(e){t.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),t.currentTodo=null,t.validExpression(),t.loadTodo();case 4:return n.a(2)}}),n)})))()},showFullScreenFlow:function(){var e=this;this.fullscreenLoading=!0,setTimeout((function(){e.$nextTick((function(){e.fullscreen=!0}))}),50)},hideFullScreenFlow:function(){this.fullscreenLoading=!1,this.fullscreen=!1},handleItemChange:function(e,t){var n=this;return dc(Zl().m((function r(){return Zl().w((function(r){while(1)switch(r.n){case 0:n.setModel(t.name,e),n.loadTodo();case 1:return r.a(2)}}),r)})))()},validExpression:function(){var e,t=Xl(this.runtimeData.todos);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(this.availableTodo(n),this.expressionError)return!1}}catch(r){t.e(r)}finally{t.f()}return!0},getAvailableTodos:function(){var e,t=[],n=Xl(this.runtimeData.todos);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.availableTodo(r)&&t.push({node_id:r.node_id,node_code:r.node_code,selected:r.selected})}}catch(o){n.e(o)}finally{n.f()}return t},loadTodo:function(){var e=this;if(this.runtimeData.todos)if(this.currentTodo)this.availableTodo(this.runtimeData.todos.find((function(t){return t.node_code===e.currentTodo})))||(this.currentTodo=null,this.loadTodo());else{var t,n=Xl(this.runtimeData.todos);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(this.availableTodo(r))return void(this.currentTodo=r.node_code)}}catch(o){n.e(o)}finally{n.f()}}},availableTodo:function(e){var t=this;if(this.expressionError)return!1;var n=null===e||void 0===e?void 0:e.condition;if(!n)return!0;try{var r={};this.activityColumns.forEach((function(e){return r[e]=t.actionModel[e]}));var o=new Function(Object.keys(r),"return "+n),i=o.apply(void 0,ec(Object.values(r)));return e.available=i,i}catch(a){this.expressionError=!0,this.$message.error("[".concat(e.node_code,"]表达式执行错误,请联系系统管理员!表达式:").concat(n))}return!1}}},yc=vc,gc=(n("e2aa"),Object(ut["a"])(yc,Gl,zl,!1,null,"64263955",null)),bc=gc.exports,wc=(n("1f51"),{NormalForm:ii,UploadForm:mi,PickerViewForm:Ai,AlgorithmForm:fs,PickerTransferForm:Ps,PickerTreeForm:Ws,WorkflowReport:hl,WorkflowDesigner:Hl,RuntimeWorkflow:bc});function _c(e){return _c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_c(e)}function Sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach((function(t){kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kc(e,t,n){return(t=Ec(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ec(e){var t=Oc(e,"string");return"symbol"==_c(t)?t:t+""}function Oc(e,t){if("object"!=_c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Tc={mixins:[i,a,zo],components:Cc({},wc)},Ac=Tc,xc=Object(ut["a"])(Ac,Mo,Uo,!1,null,null,null),Nc=xc.exports,Ic=t["a"]={ModelList:Mn,ModelProfile:Lo,ModelForm:Nc,AichatForm:An}},c32d:function(e,t){e.exports=u},c39f:function(e,t,n){},c44e:function(e,t,n){var r=n("ebeb");n("d6a3"),n("1385"),n("8d14"),n("712c"),n("53bb"),n("5fb7"),n("ba95"),n("6b34"),n("bb01"),n("7583");var o=r.asn1,i=r.pki,a=e.exports=r.pkcs12=r.pkcs12||{},s={name:"ContentInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},l={name:"PFX",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:!1,capture:"version"},s,{name:"PFX.macData",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:o.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},c={name:"SafeBag",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},u={name:"Attribute",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:!0,capture:"values"}]},f={name:"CertBag",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:o.Class.UNIVERSAL,type:o.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function d(e,t,n,r){for(var o=[],i=0;i<e.length;i++)for(var a=0;a<e[i].safeBags.length;a++){var s=e[i].safeBags[a];void 0!==r&&s.type!==r||(null!==t?void 0!==s.attributes[t]&&s.attributes[t].indexOf(n)>=0&&o.push(s):o.push(s))}return o}function p(e){if(e.composed||e.constructed){for(var t=r.util.createBuffer(),n=0;n<e.value.length;++n)t.putBytes(e.value[n].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function h(e,t,n,r){if(t=o.fromDer(t,n),t.tagClass!==o.Class.UNIVERSAL||t.type!==o.Type.SEQUENCE||!0!==t.constructed)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var a=0;a<t.value.length;a++){var l=t.value[a],c={},u=[];if(!o.validate(l,s,c,u)){var f=new Error("Cannot read ContentInfo.");throw f.errors=u,f}var d={encrypted:!1},h=null,y=c.content.value[0];switch(o.derToOid(c.contentType)){case i.oids.data:if(y.tagClass!==o.Class.UNIVERSAL||y.type!==o.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");h=p(y).value;break;case i.oids.encryptedData:h=m(y,r),d.encrypted=!0;break;default:f=new Error("Unsupported PKCS#12 contentType.");throw f.contentType=o.derToOid(c.contentType),f}d.safeBags=v(h,n,r),e.safeContents.push(d)}}function m(e,t){var n={},a=[];if(!o.validate(e,r.pkcs7.asn1.encryptedDataValidator,n,a)){var s=new Error("Cannot read EncryptedContentInfo.");throw s.errors=a,s}var l=o.derToOid(n.contentType);if(l!==i.oids.data){s=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw s.oid=l,s}l=o.derToOid(n.encAlgorithm);var c=i.pbe.getCipher(l,n.encParameter,t),u=p(n.encryptedContentAsn1),f=r.util.createBuffer(u.value);if(c.update(f),!c.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return c.output.getBytes()}function v(e,t,n){if(!t&&0===e.length)return[];if(e=o.fromDer(e,t),e.tagClass!==o.Class.UNIVERSAL||e.type!==o.Type.SEQUENCE||!0!==e.constructed)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var r=[],a=0;a<e.value.length;a++){var s=e.value[a],l={},u=[];if(!o.validate(s,c,l,u)){var d=new Error("Cannot read SafeBag.");throw d.errors=u,d}var p,h,m={type:o.derToOid(l.bagId),attributes:y(l.bagAttributes)};r.push(m);var v=l.bagValue.value[0];switch(m.type){case i.oids.pkcs8ShroudedKeyBag:if(v=i.decryptPrivateKeyInfo(v,n),null===v)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case i.oids.keyBag:try{m.key=i.privateKeyFromAsn1(v)}catch(g){m.key=null,m.asn1=v}continue;case i.oids.certBag:p=f,h=function(){if(o.derToOid(l.certId)!==i.oids.x509Certificate){var e=new Error("Unsupported certificate type, only X.509 supported.");throw e.oid=o.derToOid(l.certId),e}var n=o.fromDer(l.cert,t);try{m.cert=i.certificateFromAsn1(n,!0)}catch(g){m.cert=null,m.asn1=n}};break;default:d=new Error("Unsupported PKCS#12 SafeBag type.");throw d.oid=m.type,d}if(void 0!==p&&!o.validate(v,p,l,u)){d=new Error("Cannot read PKCS#12 "+p.name);throw d.errors=u,d}h()}return r}function y(e){var t={};if(void 0!==e)for(var n=0;n<e.length;++n){var r={},a=[];if(!o.validate(e[n],u,r,a)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=a,s}var l=o.derToOid(r.oid);if(void 0!==i.oids[l]){t[i.oids[l]]=[];for(var c=0;c<r.values.length;++c)t[i.oids[l]].push(r.values[c].value)}}return t}a.pkcs12FromAsn1=function(e,t,n){"string"===typeof t?(n=t,t=!0):void 0===t&&(t=!0);var s={},c=[];if(!o.validate(e,l,s,c)){var u=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw u.errors=u,u}var f={version:s.version.charCodeAt(0),safeContents:[],getBags:function(e){var t,n={};return"localKeyId"in e?t=e.localKeyId:"localKeyIdHex"in e&&(t=r.util.hexToBytes(e.localKeyIdHex)),void 0===t&&!("friendlyName"in e)&&"bagType"in e&&(n[e.bagType]=d(f.safeContents,null,null,e.bagType)),void 0!==t&&(n.localKeyId=d(f.safeContents,"localKeyId",t,e.bagType)),"friendlyName"in e&&(n.friendlyName=d(f.safeContents,"friendlyName",e.friendlyName,e.bagType)),n},getBagsByFriendlyName:function(e,t){return d(f.safeContents,"friendlyName",e,t)},getBagsByLocalKeyId:function(e,t){return d(f.safeContents,"localKeyId",e,t)}};if(3!==s.version.charCodeAt(0)){u=new Error("PKCS#12 PFX of version other than 3 not supported.");throw u.version=s.version.charCodeAt(0),u}if(o.derToOid(s.contentType)!==i.oids.data){u=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw u.oid=o.derToOid(s.contentType),u}var m=s.content.value[0];if(m.tagClass!==o.Class.UNIVERSAL||m.type!==o.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(m=p(m),s.mac){var v=null,y=0,g=o.derToOid(s.macAlgorithm);switch(g){case i.oids.sha1:v=r.md.sha1.create(),y=20;break;case i.oids.sha256:v=r.md.sha256.create(),y=32;break;case i.oids.sha384:v=r.md.sha384.create(),y=48;break;case i.oids.sha512:v=r.md.sha512.create(),y=64;break;case i.oids.md5:v=r.md.md5.create(),y=16;break}if(null===v)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+g);var b=new r.util.ByteBuffer(s.macSalt),w="macIterations"in s?parseInt(r.util.bytesToHex(s.macIterations),16):1,_=a.generateKey(n,b,3,w,y,v),S=r.hmac.create();S.start(v,_),S.update(m.value);var C=S.getMac();if(C.getBytes()!==s.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return h(f,m.value,t,n),f},a.toPkcs12Asn1=function(e,t,n,s){s=s||{},s.saltSize=s.saltSize||8,s.count=s.count||2048,s.algorithm=s.algorithm||s.encAlgorithm||"aes128","useMac"in s||(s.useMac=!0),"localKeyId"in s||(s.localKeyId=null),"generateLocalKeyId"in s||(s.generateLocalKeyId=!0);var l,c=s.localKeyId;if(null!==c)c=r.util.hexToBytes(c);else if(s.generateLocalKeyId)if(t){var u=r.util.isArray(t)?t[0]:t;"string"===typeof u&&(u=i.certificateFromPem(u));var f=r.md.sha1.create();f.update(o.toDer(i.certificateToAsn1(u)).getBytes()),c=f.digest().getBytes()}else c=r.random.getBytes(20);var d=[];null!==c&&d.push(o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.localKeyId).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SET,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,c)])])),"friendlyName"in s&&d.push(o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.friendlyName).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SET,!0,[o.create(o.Class.UNIVERSAL,o.Type.BMPSTRING,!1,s.friendlyName)])])),d.length>0&&(l=o.create(o.Class.UNIVERSAL,o.Type.SET,!0,d));var p=[],h=[];null!==t&&(h=r.util.isArray(t)?t:[t]);for(var m=[],v=0;v<h.length;++v){t=h[v],"string"===typeof t&&(t=i.certificateFromPem(t));var y=0===v?l:void 0,g=i.certificateToAsn1(t),b=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.certBag).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.x509Certificate).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,o.toDer(g).getBytes())])])]),y]);m.push(b)}if(m.length>0){var w=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,m),_=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,o.toDer(w).getBytes())])]);p.push(_)}var S=null;if(null!==e){var C=i.wrapRsaPrivateKey(i.privateKeyToAsn1(e));S=null===n?o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.keyBag).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[C]),l]):o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.pkcs8ShroudedKeyBag).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[i.encryptPrivateKeyInfo(C,n,s)]),l]);var k=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[S]),E=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,o.toDer(k).getBytes())])]);p.push(E)}var O,T=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,p);if(s.useMac){f=r.md.sha1.create();var A=new r.util.ByteBuffer(r.random.getBytes(s.saltSize)),x=s.count,N=(e=a.generateKey(n,A,3,x,20),r.hmac.create());N.start(f,e),N.update(o.toDer(T).getBytes());var I=N.getMac();O=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.sha1).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.NULL,!1,"")]),o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,I.getBytes())]),o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,A.getBytes()),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,!1,o.integerToDer(x).getBytes())])}return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,!1,o.integerToDer(3).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,o.toDer(T).getBytes())])]),O])},a.generateKey=r.pbe.generatePkcs12Key},c6d6:function(e,t,n){"use strict";n("794c")},c6e8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("9f89");function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return r(e,{reInterpolate:n})(t)}},c75f:function(e,t,n){"use strict";n("534c")},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},cebe:function(e,t){e.exports=f},cee7:function(e,t,n){var r=n("ebeb");n("f57a"),n("b71b"),n("bb01");var o="forge.task",i=0,a={},s=0;r.debug.set(o,"tasks",a);var l={};r.debug.set(o,"queues",l);var c="?",u=30,f=20,d="ready",p="running",h="blocked",m="sleeping",v="done",y="error",g="stop",b="start",w="block",_="unblock",S="sleep",C="wakeup",k="cancel",E="fail",O={};O[d]={},O[d][g]=d,O[d][b]=p,O[d][k]=v,O[d][E]=y,O[p]={},O[p][g]=d,O[p][b]=p,O[p][w]=h,O[p][_]=p,O[p][S]=m,O[p][C]=p,O[p][k]=v,O[p][E]=y,O[h]={},O[h][g]=h,O[h][b]=h,O[h][w]=h,O[h][_]=h,O[h][S]=h,O[h][C]=h,O[h][k]=v,O[h][E]=y,O[m]={},O[m][g]=m,O[m][b]=m,O[m][w]=m,O[m][_]=m,O[m][S]=m,O[m][C]=m,O[m][k]=v,O[m][E]=y,O[v]={},O[v][g]=v,O[v][b]=v,O[v][w]=v,O[v][_]=v,O[v][S]=v,O[v][C]=v,O[v][k]=v,O[v][E]=y,O[y]={},O[y][g]=y,O[y][b]=y,O[y][w]=y,O[y][_]=y,O[y][S]=y,O[y][C]=y,O[y][k]=y,O[y][E]=y;var T=function(e){this.id=-1,this.name=e.name||c,this.parent=e.parent||null,this.run=e.run,this.subtasks=[],this.error=!1,this.state=d,this.blocks=0,this.timeoutId=null,this.swapTime=null,this.userData=null,this.id=s++,a[this.id]=this,i>=1&&r.log.verbose(o,"[%s][%s] init",this.id,this.name,this)};T.prototype.debug=function(e){e=e||"",r.log.debug(o,e,"[%s][%s] task:",this.id,this.name,this,"subtasks:",this.subtasks.length,"queue:",l)},T.prototype.next=function(e,t){"function"===typeof e&&(t=e,e=this.name);var n=new T({run:t,name:e,parent:this});return n.state=p,n.type=this.type,n.successCallback=this.successCallback||null,n.failureCallback=this.failureCallback||null,this.subtasks.push(n),this},T.prototype.parallel=function(e,t){return r.util.isArray(e)&&(t=e,e=this.name),this.next(e,(function(n){var o=n;o.block(t.length);for(var i=function(e,n){r.task.start({type:e,run:function(e){t[n](e)},success:function(e){o.unblock()},failure:function(e){o.unblock()}})},a=0;a<t.length;a++){var s=e+"__parallel-"+n.id+"-"+a,l=a;i(s,l)}}))},T.prototype.stop=function(){this.state=O[this.state][g]},T.prototype.start=function(){this.error=!1,this.state=O[this.state][b],this.state===p&&(this.start=new Date,this.run(this),x(this,0))},T.prototype.block=function(e){e="undefined"===typeof e?1:e,this.blocks+=e,this.blocks>0&&(this.state=O[this.state][w])},T.prototype.unblock=function(e){return e="undefined"===typeof e?1:e,this.blocks-=e,0===this.blocks&&this.state!==v&&(this.state=p,x(this,0)),this.blocks},T.prototype.sleep=function(e){e="undefined"===typeof e?0:e,this.state=O[this.state][S];var t=this;this.timeoutId=setTimeout((function(){t.timeoutId=null,t.state=p,x(t,0)}),e)},T.prototype.wait=function(e){e.wait(this)},T.prototype.wakeup=function(){this.state===m&&(cancelTimeout(this.timeoutId),this.timeoutId=null,this.state=p,x(this,0))},T.prototype.cancel=function(){this.state=O[this.state][k],this.permitsNeeded=0,null!==this.timeoutId&&(cancelTimeout(this.timeoutId),this.timeoutId=null),this.subtasks=[]},T.prototype.fail=function(e){if(this.error=!0,N(this,!0),e)e.error=this.error,e.swapTime=this.swapTime,e.userData=this.userData,x(e,0);else{if(null!==this.parent){var t=this.parent;while(null!==t.parent)t.error=this.error,t.swapTime=this.swapTime,t.userData=this.userData,t=t.parent;N(t,!0)}this.failureCallback&&this.failureCallback(this)}};var A=function(e){e.error=!1,e.state=O[e.state][b],setTimeout((function(){e.state===p&&(e.swapTime=+new Date,e.run(e),x(e,0))}),0)},x=function(e,t){var n=t>u||+new Date-e.swapTime>f,r=function(t){if(t++,e.state===p)if(n&&(e.swapTime=+new Date),e.subtasks.length>0){var r=e.subtasks.shift();r.error=e.error,r.swapTime=e.swapTime,r.userData=e.userData,r.run(r),r.error||x(r,t)}else N(e),e.error||null!==e.parent&&(e.parent.error=e.error,e.parent.swapTime=e.swapTime,e.parent.userData=e.userData,x(e.parent,t))};n?setTimeout(r,0):r(t)},N=function(e,t){e.state=v,delete a[e.id],i>=1&&r.log.verbose(o,"[%s][%s] finish",e.id,e.name,e),null===e.parent&&(e.type in l?0===l[e.type].length?r.log.error(o,"[%s][%s] task queue empty [%s]",e.id,e.name,e.type):l[e.type][0]!==e?r.log.error(o,"[%s][%s] task not first in queue [%s]",e.id,e.name,e.type):(l[e.type].shift(),0===l[e.type].length?(i>=1&&r.log.verbose(o,"[%s][%s] delete queue [%s]",e.id,e.name,e.type),delete l[e.type]):(i>=1&&r.log.verbose(o,"[%s][%s] queue start next [%s] remain:%s",e.id,e.name,e.type,l[e.type].length),l[e.type][0].start())):r.log.error(o,"[%s][%s] task queue missing [%s]",e.id,e.name,e.type),t||(e.error&&e.failureCallback?e.failureCallback(e):!e.error&&e.successCallback&&e.successCallback(e)))};e.exports=r.task=r.task||{},r.task.start=function(e){var t=new T({run:e.run,name:e.name||c});t.type=e.type,t.successCallback=e.success||null,t.failureCallback=e.failure||null,t.type in l?l[e.type].push(t):(i>=1&&r.log.verbose(o,"[%s][%s] create queue [%s]",t.id,t.name,t.type),l[t.type]=[t],A(t))},r.task.cancel=function(e){e in l&&(l[e]=[l[e][0]])},r.task.createCondition=function(){var e={tasks:{},wait:function(t){t.id in e.tasks||(t.block(),e.tasks[t.id]=t)},notify:function(){var t=e.tasks;for(var n in e.tasks={},t)t[n].unblock()}};return e}},cf8b:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){return Object.keys(e).every((function(n){var i=e[n],a=n.split(".").reduce((function(e,t){return e&&Object.hasOwn(e,t)?e[t]:void 0}),t);if(a||""===a||null===a){if(Array.isArray(i))return i.includes(a);if("object"!==r(i)||1!==Object.keys(i).length)return"object"===r(i)&&Object.keys(i).length>1?o(i,t):i===a;if(i["!"]&&Array.isArray(i["!"]))return!i["!"].includes(a);if(i["!"])return i!==a;if(i[">"])return a>i[">"];if(i[">="])return a>=i[">="];if(i["<"])return a<i["<"];if(i["<="])return a<=i["<="]}}))}n.d(t,"a",(function(){return o}))},d6a3:function(e,t,n){var r=n("ebeb");n("bb01"),n("8d14");var o=e.exports=r.asn1=r.asn1||{};function i(e,t,n){if(n>t){var r=new Error("Too few bytes to parse DER.");throw r.available=e.length(),r.remaining=t,r.requested=n,r}}o.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},o.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},o.create=function(e,t,n,i,a){if(r.util.isArray(i)){for(var s=[],l=0;l<i.length;++l)void 0!==i[l]&&s.push(i[l]);i=s}var c={tagClass:e,type:t,constructed:n,composed:n||r.util.isArray(i),value:i};return a&&"bitStringContents"in a&&(c.bitStringContents=a.bitStringContents,c.original=o.copy(c)),c},o.copy=function(e,t){var n;if(r.util.isArray(e)){n=[];for(var i=0;i<e.length;++i)n.push(o.copy(e[i],t));return n}return"string"===typeof e?e:(n={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:o.copy(e.value,t)},t&&!t.excludeBitStringContents&&(n.bitStringContents=e.bitStringContents),n)},o.equals=function(e,t,n){if(r.util.isArray(e)){if(!r.util.isArray(t))return!1;if(e.length!==t.length)return!1;for(var i=0;i<e.length;++i)if(!o.equals(e[i],t[i]))return!1;return!0}if(typeof e!==typeof t)return!1;if("string"===typeof e)return e===t;var a=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&o.equals(e.value,t.value);return n&&n.includeBitStringContents&&(a=a&&e.bitStringContents===t.bitStringContents),a},o.getBerValueLength=function(e){var t=e.getByte();if(128!==t){var n,r=128&t;return n=r?e.getInt((127&t)<<3):t,n}};var a=function(e,t){var n=e.getByte();if(t--,128!==n){var r,o=128&n;if(o){var a=127&n;i(e,t,a),r=e.getInt(a<<3)}else r=n;if(r<0)throw new Error("Negative length: "+r);return r}};function s(e,t,n,r){var l;i(e,t,2);var c=e.getByte();t--;var u=192&c,f=31&c;l=e.length();var d,p,h=a(e,t);if(t-=l-e.length(),void 0!==h&&h>t){if(r.strict){var m=new Error("Too few bytes to read ASN.1 value.");throw m.available=e.length(),m.remaining=t,m.requested=h,m}h=t}var v=32===(32&c);if(v)if(d=[],void 0===h)for(;;){if(i(e,t,2),e.bytes(2)===String.fromCharCode(0,0)){e.getBytes(2),t-=2;break}l=e.length(),d.push(s(e,t,n+1,r)),t-=l-e.length()}else while(h>0)l=e.length(),d.push(s(e,h,n+1,r)),t-=l-e.length(),h-=l-e.length();if(void 0===d&&u===o.Class.UNIVERSAL&&f===o.Type.BITSTRING&&(p=e.bytes(h)),void 0===d&&r.decodeBitStrings&&u===o.Class.UNIVERSAL&&f===o.Type.BITSTRING&&h>1){var y=e.read,g=t,b=0;if(f===o.Type.BITSTRING&&(i(e,t,1),b=e.getByte(),t--),0===b)try{l=e.length();var w={verbose:r.verbose,strict:!0,decodeBitStrings:!0},_=s(e,t,n+1,w),S=l-e.length();t-=S,f==o.Type.BITSTRING&&S++;var C=_.tagClass;S!==h||C!==o.Class.UNIVERSAL&&C!==o.Class.CONTEXT_SPECIFIC||(d=[_])}catch(E){}void 0===d&&(e.read=y,t=g)}if(void 0===d){if(void 0===h){if(r.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");h=t}if(f===o.Type.BMPSTRING)for(d="";h>0;h-=2)i(e,t,2),d+=String.fromCharCode(e.getInt16()),t-=2;else d=e.getBytes(h)}var k=void 0===p?null:{bitStringContents:p};return o.create(u,f,v,d,k)}o.fromDer=function(e,t){return void 0===t&&(t={strict:!0,decodeBitStrings:!0}),"boolean"===typeof t&&(t={strict:t,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"string"===typeof e&&(e=r.util.createBuffer(e)),s(e,e.length(),0,t)},o.toDer=function(e){var t=r.util.createBuffer(),n=e.tagClass|e.type,i=r.util.createBuffer(),a=!1;if("bitStringContents"in e&&(a=!0,e.original&&(a=o.equals(e,e.original))),a)i.putBytes(e.bitStringContents);else if(e.composed){e.constructed?n|=32:i.putByte(0);for(var s=0;s<e.value.length;++s)void 0!==e.value[s]&&i.putBuffer(o.toDer(e.value[s]))}else if(e.type===o.Type.BMPSTRING)for(s=0;s<e.value.length;++s)i.putInt16(e.value.charCodeAt(s));else e.type===o.Type.INTEGER&&e.value.length>1&&(0===e.value.charCodeAt(0)&&0===(128&e.value.charCodeAt(1))||255===e.value.charCodeAt(0)&&128===(128&e.value.charCodeAt(1)))?i.putBytes(e.value.substr(1)):i.putBytes(e.value);if(t.putByte(n),i.length()<=127)t.putByte(127&i.length());else{var l=i.length(),c="";do{c+=String.fromCharCode(255&l),l>>>=8}while(l>0);t.putByte(128|c.length);for(s=c.length-1;s>=0;--s)t.putByte(c.charCodeAt(s))}return t.putBuffer(i),t},o.oidToDer=function(e){var t,n,o,i,a=e.split("."),s=r.util.createBuffer();s.putByte(40*parseInt(a[0],10)+parseInt(a[1],10));for(var l=2;l<a.length;++l){t=!0,n=[],o=parseInt(a[l],10);do{i=127&o,o>>>=7,t||(i|=128),n.push(i),t=!1}while(o>0);for(var c=n.length-1;c>=0;--c)s.putByte(n[c])}return s},o.derToOid=function(e){var t;"string"===typeof e&&(e=r.util.createBuffer(e));var n=e.getByte();t=Math.floor(n/40)+"."+n%40;var o=0;while(e.length()>0)n=e.getByte(),o<<=7,128&n?o+=127&n:(t+="."+(o+n),o=0);return t},o.utcTimeToDate=function(e){var t=new Date,n=parseInt(e.substr(0,2),10);n=n>=50?1900+n:2e3+n;var r=parseInt(e.substr(2,2),10)-1,o=parseInt(e.substr(4,2),10),i=parseInt(e.substr(6,2),10),a=parseInt(e.substr(8,2),10),s=0;if(e.length>11){var l=e.charAt(10),c=10;"+"!==l&&"-"!==l&&(s=parseInt(e.substr(10,2),10),c+=2)}if(t.setUTCFullYear(n,r,o),t.setUTCHours(i,a,s,0),c&&(l=e.charAt(c),"+"===l||"-"===l)){var u=parseInt(e.substr(c+1,2),10),f=parseInt(e.substr(c+4,2),10),d=60*u+f;d*=6e4,"+"===l?t.setTime(+t-d):t.setTime(+t+d)}return t},o.generalizedTimeToDate=function(e){var t=new Date,n=parseInt(e.substr(0,4),10),r=parseInt(e.substr(4,2),10)-1,o=parseInt(e.substr(6,2),10),i=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),s=parseInt(e.substr(12,2),10),l=0,c=0,u=!1;"Z"===e.charAt(e.length-1)&&(u=!0);var f=e.length-5,d=e.charAt(f);if("+"===d||"-"===d){var p=parseInt(e.substr(f+1,2),10),h=parseInt(e.substr(f+4,2),10);c=60*p+h,c*=6e4,"+"===d&&(c*=-1),u=!0}return"."===e.charAt(14)&&(l=1e3*parseFloat(e.substr(14),10)),u?(t.setUTCFullYear(n,r,o),t.setUTCHours(i,a,s,l),t.setTime(+t+c)):(t.setFullYear(n,r,o),t.setHours(i,a,s,l)),t},o.dateToUtcTime=function(e){if("string"===typeof e)return e;var t="",n=[];n.push((""+e.getUTCFullYear()).substr(2)),n.push(""+(e.getUTCMonth()+1)),n.push(""+e.getUTCDate()),n.push(""+e.getUTCHours()),n.push(""+e.getUTCMinutes()),n.push(""+e.getUTCSeconds());for(var r=0;r<n.length;++r)n[r].length<2&&(t+="0"),t+=n[r];return t+="Z",t},o.dateToGeneralizedTime=function(e){if("string"===typeof e)return e;var t="",n=[];n.push(""+e.getUTCFullYear()),n.push(""+(e.getUTCMonth()+1)),n.push(""+e.getUTCDate()),n.push(""+e.getUTCHours()),n.push(""+e.getUTCMinutes()),n.push(""+e.getUTCSeconds());for(var r=0;r<n.length;++r)n[r].length<2&&(t+="0"),t+=n[r];return t+="Z",t},o.integerToDer=function(e){var t=r.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var n=new Error("Integer too large; max is 32-bits.");throw n.integer=e,n},o.derToInteger=function(e){"string"===typeof e&&(e=r.util.createBuffer(e));var t=8*e.length();if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},o.validate=function(e,t,n,i){var a=!1;if(e.tagClass!==t.tagClass&&"undefined"!==typeof t.tagClass||e.type!==t.type&&"undefined"!==typeof t.type)i&&(e.tagClass!==t.tagClass&&i.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&i.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));else if(e.constructed===t.constructed||"undefined"===typeof t.constructed){if(a=!0,t.value&&r.util.isArray(t.value))for(var s=0,l=0;a&&l<t.value.length;++l)a=t.value[l].optional||!1,e.value[s]&&(a=o.validate(e.value[s],t.value[l],n,i),a?++s:t.value[l].optional&&(a=!0)),!a&&i&&i.push("["+t.name+'] Tag class "'+t.tagClass+'", type "'+t.type+'" expected value length "'+t.value.length+'", got "'+e.value.length+'"');if(a&&n)if(t.capture&&(n[t.capture]=e.value),t.captureAsn1&&(n[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(n[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e)if(e.bitStringContents.length<2)n[t.captureBitStringValue]="";else{var c=e.bitStringContents.charCodeAt(0);if(0!==c)throw new Error("captureBitStringValue only supported for zero unused bits");n[t.captureBitStringValue]=e.bitStringContents.slice(1)}}else i&&i.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');return a};var l=/[^\\u0000-\\u00ff]/;o.prettyPrint=function(e,t,n){var i="";t=t||0,n=n||2,t>0&&(i+="\n");for(var a="",s=0;s<t*n;++s)a+=" ";switch(i+=a+"Tag: ",e.tagClass){case o.Class.UNIVERSAL:i+="Universal:";break;case o.Class.APPLICATION:i+="Application:";break;case o.Class.CONTEXT_SPECIFIC:i+="Context-Specific:";break;case o.Class.PRIVATE:i+="Private:";break}if(e.tagClass===o.Class.UNIVERSAL)switch(i+=e.type,e.type){case o.Type.NONE:i+=" (None)";break;case o.Type.BOOLEAN:i+=" (Boolean)";break;case o.Type.INTEGER:i+=" (Integer)";break;case o.Type.BITSTRING:i+=" (Bit string)";break;case o.Type.OCTETSTRING:i+=" (Octet string)";break;case o.Type.NULL:i+=" (Null)";break;case o.Type.OID:i+=" (Object Identifier)";break;case o.Type.ODESC:i+=" (Object Descriptor)";break;case o.Type.EXTERNAL:i+=" (External or Instance of)";break;case o.Type.REAL:i+=" (Real)";break;case o.Type.ENUMERATED:i+=" (Enumerated)";break;case o.Type.EMBEDDED:i+=" (Embedded PDV)";break;case o.Type.UTF8:i+=" (UTF8)";break;case o.Type.ROID:i+=" (Relative Object Identifier)";break;case o.Type.SEQUENCE:i+=" (Sequence)";break;case o.Type.SET:i+=" (Set)";break;case o.Type.PRINTABLESTRING:i+=" (Printable String)";break;case o.Type.IA5String:i+=" (IA5String (ASCII))";break;case o.Type.UTCTIME:i+=" (UTC time)";break;case o.Type.GENERALIZEDTIME:i+=" (Generalized time)";break;case o.Type.BMPSTRING:i+=" (BMP String)";break}else i+=e.type;if(i+="\n",i+=a+"Constructed: "+e.constructed+"\n",e.composed){var c=0,u="";for(s=0;s<e.value.length;++s)void 0!==e.value[s]&&(c+=1,u+=o.prettyPrint(e.value[s],t+1,n),s+1<e.value.length&&(u+=","));i+=a+"Sub values: "+c+u}else{if(i+=a+"Value: ",e.type===o.Type.OID){var f=o.derToOid(e.value);i+=f,r.pki&&r.pki.oids&&f in r.pki.oids&&(i+=" ("+r.pki.oids[f]+") ")}if(e.type===o.Type.INTEGER)try{i+=o.derToInteger(e.value)}catch(p){i+="0x"+r.util.bytesToHex(e.value)}else if(e.type===o.Type.BITSTRING){if(e.value.length>1?i+="0x"+r.util.bytesToHex(e.value.slice(1)):i+="(none)",e.value.length>0){var d=e.value.charCodeAt(0);1==d?i+=" (1 unused bit shown)":d>1&&(i+=" ("+d+" unused bits shown)")}}else e.type===o.Type.OCTETSTRING?(l.test(e.value)||(i+="("+e.value+") "),i+="0x"+r.util.bytesToHex(e.value)):e.type===o.Type.UTF8?i+=r.util.decodeUtf8(e.value):e.type===o.Type.PRINTABLESTRING||e.type===o.Type.IA5String?i+=e.value:l.test(e.value)?i+="0x"+r.util.bytesToHex(e.value):0===e.value.length?i+="[null]":i+=e.value}return i}},daf6:function(e,t,n){var r=n("ebeb");n("a64b"),n("1385"),n("4a17"),n("6b34"),n("bb01");var o=e.exports=r.ssh=r.ssh||{};function i(e,t){var n=t.toString(16);n[0]>="8"&&(n="00"+n);var o=r.util.hexToBytes(n);e.putInt32(o.length),e.putBytes(o)}function a(e,t){e.putInt32(t.length),e.putString(t)}function s(){for(var e=r.md.sha1.create(),t=arguments.length,n=0;n<t;++n)e.update(arguments[n]);return e.digest()}o.privateKeyToPutty=function(e,t,n){n=n||"",t=t||"";var o="ssh-rsa",l=""===t?"none":"aes256-cbc",c="PuTTY-User-Key-File-2: "+o+"\r\n";c+="Encryption: "+l+"\r\n",c+="Comment: "+n+"\r\n";var u=r.util.createBuffer();a(u,o),i(u,e.e),i(u,e.n);var f=r.util.encode64(u.bytes(),64),d=Math.floor(f.length/66)+1;c+="Public-Lines: "+d+"\r\n",c+=f;var p,h=r.util.createBuffer();if(i(h,e.d),i(h,e.p),i(h,e.q),i(h,e.qInv),t){var m=h.length()+16-1;m-=m%16;var v=s(h.bytes());v.truncate(v.length()-m+h.length()),h.putBuffer(v);var y=r.util.createBuffer();y.putBuffer(s("\0\0\0\0",t)),y.putBuffer(s("\0\0\0",t));var g=r.aes.createEncryptionCipher(y.truncate(8),"CBC");g.start(r.util.createBuffer().fillWithByte(0,16)),g.update(h.copy()),g.finish();var b=g.output;b.truncate(16),p=r.util.encode64(b.bytes(),64)}else p=r.util.encode64(h.bytes(),64);d=Math.floor(p.length/66)+1,c+="\r\nPrivate-Lines: "+d+"\r\n",c+=p;var w=s("putty-private-key-file-mac-key",t),_=r.util.createBuffer();a(_,o),a(_,l),a(_,n),_.putInt32(u.length()),_.putBuffer(u),_.putInt32(h.length()),_.putBuffer(h);var S=r.hmac.create();return S.start("sha1",w),S.update(_.bytes()),c+="\r\nPrivate-MAC: "+S.digest().toHex()+"\r\n",c},o.publicKeyToOpenSSH=function(e,t){var n="ssh-rsa";t=t||"";var o=r.util.createBuffer();return a(o,n),i(o,e.e),i(o,e.n),n+" "+r.util.encode64(o.bytes())+" "+t},o.privateKeyToOpenSSH=function(e,t){return t?r.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):r.pki.privateKeyToPem(e)},o.getPublicKeyFingerprint=function(e,t){t=t||{};var n=t.md||r.md.md5.create(),o="ssh-rsa",s=r.util.createBuffer();a(s,o),i(s,e.e),i(s,e.n),n.start(),n.update(s.getBytes());var l=n.digest();if("hex"===t.encoding){var c=l.toHex();return t.delimiter?c.match(/.{2}/g).join(t.delimiter):c}if("binary"===t.encoding)return l.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".');return l}},de3d:function(e,t,n){"use strict";n("9089")},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,l=0;l<a;l++)if(o[l]!==i[l]){s=l;break}var c=[];for(l=s;l<o.length;l++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},dfe5:function(e,t,n){},e284:function(e,t,n){e.exports=n("9072"),n("4a17"),n("6b34"),n("62b2"),n("86a7")},e2aa:function(e,t,n){"use strict";n("bb20")},e39e:function(e,t){e.exports=d},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e7b1:function(e,t,n){},e915:function(e,t,n){},ea7c:function(e,t,n){var r,o=n("ebeb");e.exports=o.jsbn=o.jsbn||{};var i=0xdeadbeefcafe,a=15715070==(16777215&i);function s(e,t,n){this.data=[],null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function l(){return new s(null)}function c(e,t,n,r,o,i){while(--i>=0){var a=t*this.data[e++]+n.data[r]+o;o=Math.floor(a/67108864),n.data[r++]=67108863&a}return o}function u(e,t,n,r,o,i){var a=32767&t,s=t>>15;while(--i>=0){var l=32767&this.data[e],c=this.data[e++]>>15,u=s*l+c*a;l=a*l+((32767&u)<<15)+n.data[r]+(1073741823&o),o=(l>>>30)+(u>>>15)+s*c+(o>>>30),n.data[r++]=1073741823&l}return o}function f(e,t,n,r,o,i){var a=16383&t,s=t>>14;while(--i>=0){var l=16383&this.data[e],c=this.data[e++]>>14,u=s*l+c*a;l=a*l+((16383&u)<<14)+n.data[r]+o,o=(l>>28)+(u>>14)+s*c,n.data[r++]=268435455&l}return o}o.jsbn.BigInteger=s,"undefined"===typeof navigator?(s.prototype.am=f,r=28):a&&"Microsoft Internet Explorer"==navigator.appName?(s.prototype.am=u,r=30):a&&"Netscape"!=navigator.appName?(s.prototype.am=c,r=26):(s.prototype.am=f,r=28),s.prototype.DB=r,s.prototype.DM=(1<<r)-1,s.prototype.DV=1<<r;var d=52;s.prototype.FV=Math.pow(2,d),s.prototype.F1=d-r,s.prototype.F2=2*r-d;var p,h,m="0123456789abcdefghijklmnopqrstuvwxyz",v=new Array;for(p="0".charCodeAt(0),h=0;h<=9;++h)v[p++]=h;for(p="a".charCodeAt(0),h=10;h<36;++h)v[p++]=h;for(p="A".charCodeAt(0),h=10;h<36;++h)v[p++]=h;function y(e){return m.charAt(e)}function g(e,t){var n=v[e.charCodeAt(t)];return null==n?-1:n}function b(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function w(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function _(e){var t=l();return t.fromInt(e),t}function S(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;var r=e.length,o=!1,i=0;while(--r>=0){var a=8==n?255&e[r]:g(e,r);a<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==i?this.data[this.t++]=a:i+n>this.DB?(this.data[this.t-1]|=(a&(1<<this.DB-i)-1)<<i,this.data[this.t++]=a>>this.DB-i):this.data[this.t-1]|=a<<i,i+=n,i>=this.DB&&(i-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,i>0&&(this.data[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),o&&s.ZERO.subTo(this,this)}function C(){var e=this.s&this.DM;while(this.t>0&&this.data[this.t-1]==e)--this.t}function k(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,o=!1,i="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0){s<this.DB&&(n=this.data[a]>>s)>0&&(o=!0,i=y(n));while(a>=0)s<t?(n=(this.data[a]&(1<<s)-1)<<t-s,n|=this.data[--a]>>(s+=this.DB-t)):(n=this.data[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(o=!0),o&&(i+=y(n))}return o?i:"0"}function E(){var e=l();return s.ZERO.subTo(this,e),e}function O(){return this.s<0?this.negate():this}function T(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this.data[n]-e.data[n]))return t;return 0}function A(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function x(){return this.t<=0?0:this.DB*(this.t-1)+A(this.data[this.t-1]^this.s&this.DM)}function N(e,t){var n;for(n=this.t-1;n>=0;--n)t.data[n+e]=this.data[n];for(n=e-1;n>=0;--n)t.data[n]=0;t.t=this.t+e,t.s=this.s}function I(e,t){for(var n=e;n<this.t;++n)t.data[n-e]=this.data[n];t.t=Math.max(this.t-e,0),t.s=this.s}function j(e,t){var n,r=e%this.DB,o=this.DB-r,i=(1<<o)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t.data[n+a+1]=this.data[n]>>o|s,s=(this.data[n]&i)<<r;for(n=a-1;n>=0;--n)t.data[n]=0;t.data[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()}function P(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<<r)-1;t.data[0]=this.data[n]>>r;for(var a=n+1;a<this.t;++a)t.data[a-n-1]|=(this.data[a]&i)<<o,t.data[a-n]=this.data[a]>>r;r>0&&(t.data[this.t-n-1]|=(this.s&i)<<o),t.t=this.t-n,t.clamp()}}function R(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n<o)r+=this.data[n]-e.data[n],t.data[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this.data[n],t.data[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e.data[n],t.data[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t.data[n++]=this.DV+r:r>0&&(t.data[n++]=r),t.t=n,t.clamp()}function D(e,t){var n=this.abs(),r=e.abs(),o=n.t;t.t=o+r.t;while(--o>=0)t.data[o]=0;for(o=0;o<r.t;++o)t.data[o+n.t]=n.am(0,r.data[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&s.ZERO.subTo(t,t)}function B(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e.data[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t.data[n],e,2*n,0,1);(e.data[n+t.t]+=t.am(n+1,2*t.data[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e.data[n+t.t]-=t.DV,e.data[n+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(n,t.data[n],e,2*n,0,1)),e.s=0,e.clamp()}function L(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=l());var i=l(),a=this.s,c=e.s,u=this.DB-A(r.data[r.t-1]);u>0?(r.lShiftTo(u,i),o.lShiftTo(u,n)):(r.copyTo(i),o.copyTo(n));var f=i.t,d=i.data[f-1];if(0!=d){var p=d*(1<<this.F1)+(f>1?i.data[f-2]>>this.F2:0),h=this.FV/p,m=(1<<this.F1)/p,v=1<<this.F2,y=n.t,g=y-f,b=null==t?l():t;i.dlShiftTo(g,b),n.compareTo(b)>=0&&(n.data[n.t++]=1,n.subTo(b,n)),s.ONE.dlShiftTo(f,b),b.subTo(i,i);while(i.t<f)i.data[i.t++]=0;while(--g>=0){var w=n.data[--y]==d?this.DM:Math.floor(n.data[y]*h+(n.data[y-1]+v)*m);if((n.data[y]+=i.am(0,w,n,g,0,f))<w){i.dlShiftTo(g,b),n.subTo(b,n);while(n.data[y]<--w)n.subTo(b,n)}}null!=t&&(n.drShiftTo(f,t),a!=c&&s.ZERO.subTo(t,t)),n.t=f,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&s.ZERO.subTo(n,n)}}}function M(e){var t=l();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(s.ZERO)>0&&e.subTo(t,t),t}function U(e){this.m=e}function V(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function q(e){return e}function F(e){e.divRemTo(this.m,null,e)}function K(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function $(e,t){e.squareTo(t),this.reduce(t)}function H(){if(this.t<1)return 0;var e=this.data[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function G(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function z(e){var t=l();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(s.ZERO)>0&&this.m.subTo(t,t),t}function Y(e){var t=l();return e.copyTo(t),this.reduce(t),t}function W(e){while(e.t<=this.mt2)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e.data[t],r=n*this.mpl+((n*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e.data[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e.data[n]>=e.DV)e.data[n]-=e.DV,e.data[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function Q(e,t){e.squareTo(t),this.reduce(t)}function X(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function Z(){return 0==(this.t>0?1&this.data[0]:this.s)}function J(e,t){if(e>4294967295||e<1)return s.ONE;var n=l(),r=l(),o=t.convert(this),i=A(e)-1;o.copyTo(n);while(--i>=0)if(t.sqrTo(n,r),(e&1<<i)>0)t.mulTo(r,o,n);else{var a=n;n=r,r=a}return t.revert(n)}function ee(e,t){var n;return n=e<256||t.isEven()?new U(t):new G(t),this.exp(e,n)}function te(){var e=l();return this.copyTo(e),e}function ne(){if(this.s<0){if(1==this.t)return this.data[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this.data[0];if(0==this.t)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function re(){return 0==this.t?this.s:this.data[0]<<24>>24}function oe(){return 0==this.t?this.s:this.data[0]<<16>>16}function ie(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function ae(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1}function se(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=_(n),o=l(),i=l(),a="";this.divRemTo(r,o,i);while(o.signum()>0)a=(n+i.intValue()).toString(e).substr(1)+a,o.divRemTo(r,o,i);return i.intValue().toString(e)+a}function le(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),o=!1,i=0,a=0,l=0;l<e.length;++l){var c=g(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(a=t*a+c,++i>=n&&(this.dMultiply(r),this.dAddOffset(a,0),i=0,a=0))}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(a,0)),o&&s.ZERO.subTo(this,this)}function ce(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(s.ONE.shiftLeft(e-1),ye,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(t))this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(s.ONE.shiftLeft(e-1),this)}else{var r=new Array,o=7&e;r.length=1+(e>>3),t.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}}function ue(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0){r<this.DB&&(n=this.data[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this.data[e]&(1<<r)-1)<<8-r,n|=this.data[--e]>>(r+=this.DB-8)):(n=this.data[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n)}return t}function fe(e){return 0==this.compareTo(e)}function de(e){return this.compareTo(e)<0?this:e}function pe(e){return this.compareTo(e)>0?this:e}function he(e,t,n){var r,o,i=Math.min(e.t,this.t);for(r=0;r<i;++r)n.data[r]=t(this.data[r],e.data[r]);if(e.t<this.t){for(o=e.s&this.DM,r=i;r<this.t;++r)n.data[r]=t(this.data[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=i;r<e.t;++r)n.data[r]=t(o,e.data[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()}function me(e,t){return e&t}function ve(e){var t=l();return this.bitwiseTo(e,me,t),t}function ye(e,t){return e|t}function ge(e){var t=l();return this.bitwiseTo(e,ye,t),t}function be(e,t){return e^t}function we(e){var t=l();return this.bitwiseTo(e,be,t),t}function _e(e,t){return e&~t}function Se(e){var t=l();return this.bitwiseTo(e,_e,t),t}function Ce(){for(var e=l(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e}function ke(e){var t=l();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function Ee(e){var t=l();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function Oe(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Te(){for(var e=0;e<this.t;++e)if(0!=this.data[e])return e*this.DB+Oe(this.data[e]);return this.s<0?this.t*this.DB:-1}function Ae(e){var t=0;while(0!=e)e&=e-1,++t;return t}function xe(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Ae(this.data[n]^t);return e}function Ne(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this.data[t]&1<<e%this.DB)}function Ie(e,t){var n=s.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n}function je(e){return this.changeBit(e,ye)}function Pe(e){return this.changeBit(e,_e)}function Re(e){return this.changeBit(e,be)}function De(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n<o)r+=this.data[n]+e.data[n],t.data[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this.data[n],t.data[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e.data[n],t.data[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t.data[n++]=r:r<-1&&(t.data[n++]=this.DV+r),t.t=n,t.clamp()}function Be(e){var t=l();return this.addTo(e,t),t}function Le(e){var t=l();return this.subTo(e,t),t}function Me(e){var t=l();return this.multiplyTo(e,t),t}function Ue(e){var t=l();return this.divRemTo(e,t,null),t}function Ve(e){var t=l();return this.divRemTo(e,null,t),t}function qe(e){var t=l(),n=l();return this.divRemTo(e,t,n),new Array(t,n)}function Fe(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function Ke(e,t){if(0!=e){while(this.t<=t)this.data[this.t++]=0;this.data[t]+=e;while(this.data[t]>=this.DV)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function $e(){}function He(e){return e}function Ge(e,t,n){e.multiplyTo(t,n)}function ze(e,t){e.squareTo(t)}function Ye(e){return this.exp(e,new $e)}function We(e,t,n){var r,o=Math.min(this.t+e.t,t);n.s=0,n.t=o;while(o>0)n.data[--o]=0;for(r=n.t-this.t;o<r;++o)n.data[o+this.t]=this.am(0,e.data[o],n,o,0,this.t);for(r=Math.min(e.t,t);o<r;++o)this.am(0,e.data[o],n,o,0,t-o);n.clamp()}function Qe(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n.data[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n.data[this.t+r-t]=this.am(t-r,e.data[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)}function Xe(e){this.r2=l(),this.q3=l(),s.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function Ze(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=l();return e.copyTo(t),this.reduce(t),t}function Je(e){return e}function et(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function tt(e,t){e.squareTo(t),this.reduce(t)}function nt(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function rt(e,t){var n,r,o=e.bitLength(),i=_(1);if(o<=0)return i;n=o<18?1:o<48?3:o<144?4:o<768?5:6,r=o<8?new U(t):t.isEven()?new Xe(t):new G(t);var a=new Array,s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var f=l();r.sqrTo(a[1],f);while(s<=u)a[s]=l(),r.mulTo(f,a[s-2],a[s]),s+=2}var d,p,h=e.t-1,m=!0,v=l();o=A(e.data[h])-1;while(h>=0){o>=c?d=e.data[h]>>o-c&u:(d=(e.data[h]&(1<<o+1)-1)<<c-o,h>0&&(d|=e.data[h-1]>>this.DB+o-c)),s=n;while(0==(1&d))d>>=1,--s;if((o-=s)<0&&(o+=this.DB,--h),m)a[d].copyTo(i),m=!1;else{while(s>1)r.sqrTo(i,v),r.sqrTo(v,i),s-=2;s>0?r.sqrTo(i,v):(p=i,i=v,v=p),r.mulTo(v,a[d],i)}while(h>=0&&0==(e.data[h]&1<<o))r.sqrTo(i,v),p=i,i=v,v=p,--o<0&&(o=this.DB-1,--h)}return r.revert(i)}function ot(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return t;o<i&&(i=o),i>0&&(t.rShiftTo(i,t),n.rShiftTo(i,n));while(t.signum()>0)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n}function it(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this.data[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this.data[r])%e;return n}function at(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return s.ZERO;var n=e.clone(),r=this.clone(),o=_(1),i=_(0),a=_(0),l=_(1);while(0!=n.signum()){while(n.isEven())n.rShiftTo(1,n),t?(o.isEven()&&i.isEven()||(o.addTo(this,o),i.subTo(e,i)),o.rShiftTo(1,o)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);while(r.isEven())r.rShiftTo(1,r),t?(a.isEven()&&l.isEven()||(a.addTo(this,a),l.subTo(e,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);n.compareTo(r)>=0?(n.subTo(r,n),t&&o.subTo(a,o),i.subTo(l,i)):(r.subTo(n,r),t&&a.subTo(o,a),l.subTo(i,l))}return 0!=r.compareTo(s.ONE)?s.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l}U.prototype.convert=V,U.prototype.revert=q,U.prototype.reduce=F,U.prototype.mulTo=K,U.prototype.sqrTo=$,G.prototype.convert=z,G.prototype.revert=Y,G.prototype.reduce=W,G.prototype.mulTo=X,G.prototype.sqrTo=Q,s.prototype.copyTo=b,s.prototype.fromInt=w,s.prototype.fromString=S,s.prototype.clamp=C,s.prototype.dlShiftTo=N,s.prototype.drShiftTo=I,s.prototype.lShiftTo=j,s.prototype.rShiftTo=P,s.prototype.subTo=R,s.prototype.multiplyTo=D,s.prototype.squareTo=B,s.prototype.divRemTo=L,s.prototype.invDigit=H,s.prototype.isEven=Z,s.prototype.exp=J,s.prototype.toString=k,s.prototype.negate=E,s.prototype.abs=O,s.prototype.compareTo=T,s.prototype.bitLength=x,s.prototype.mod=M,s.prototype.modPowInt=ee,s.ZERO=_(0),s.ONE=_(1),$e.prototype.convert=He,$e.prototype.revert=He,$e.prototype.mulTo=Ge,$e.prototype.sqrTo=ze,Xe.prototype.convert=Ze,Xe.prototype.revert=Je,Xe.prototype.reduce=et,Xe.prototype.mulTo=nt,Xe.prototype.sqrTo=tt;var st=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],lt=(1<<26)/st[st.length-1];function ct(e){var t,n=this.abs();if(1==n.t&&n.data[0]<=st[st.length-1]){for(t=0;t<st.length;++t)if(n.data[0]==st[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<st.length){var r=st[t],o=t+1;while(o<st.length&&r<lt)r*=st[o++];r=n.modInt(r);while(t<o)if(r%st[t++]==0)return!1}return n.millerRabin(e)}function ut(e){var t=this.subtract(s.ONE),n=t.getLowestSetBit();if(n<=0)return!1;for(var r,o=t.shiftRight(n),i=ft(),a=0;a<e;++a){do{r=new s(this.bitLength(),i)}while(r.compareTo(s.ONE)<=0||r.compareTo(t)>=0);var l=r.modPow(o,this);if(0!=l.compareTo(s.ONE)&&0!=l.compareTo(t)){var c=1;while(c++<n&&0!=l.compareTo(t))if(l=l.modPowInt(2,this),0==l.compareTo(s.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0}function ft(){return{nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(256*Math.random())}}}s.prototype.chunkSize=ie,s.prototype.toRadix=se,s.prototype.fromRadix=le,s.prototype.fromNumber=ce,s.prototype.bitwiseTo=he,s.prototype.changeBit=Ie,s.prototype.addTo=De,s.prototype.dMultiply=Fe,s.prototype.dAddOffset=Ke,s.prototype.multiplyLowerTo=We,s.prototype.multiplyUpperTo=Qe,s.prototype.modInt=it,s.prototype.millerRabin=ut,s.prototype.clone=te,s.prototype.intValue=ne,s.prototype.byteValue=re,s.prototype.shortValue=oe,s.prototype.signum=ae,s.prototype.toByteArray=ue,s.prototype.equals=fe,s.prototype.min=de,s.prototype.max=pe,s.prototype.and=ve,s.prototype.or=ge,s.prototype.xor=we,s.prototype.andNot=Se,s.prototype.not=Ce,s.prototype.shiftLeft=ke,s.prototype.shiftRight=Ee,s.prototype.getLowestSetBit=Te,s.prototype.bitCount=xe,s.prototype.testBit=Ne,s.prototype.setBit=je,s.prototype.clearBit=Pe,s.prototype.flipBit=Re,s.prototype.add=Be,s.prototype.subtract=Le,s.prototype.multiply=Me,s.prototype.divide=Ue,s.prototype.remainder=Ve,s.prototype.divideAndRemainder=qe,s.prototype.modPow=rt,s.prototype.modInverse=at,s.prototype.pow=Ye,s.prototype.gcd=ot,s.prototype.isProbablePrime=ct},ebeb:function(e,t){e.exports={options:{usePureJavaScript:!1}}},ebfa:function(e,t,n){},ecf9:function(e,t,n){},f063:function(e,t,n){},f0b0:function(e,t,n){},f24a:function(e,t,n){"use strict";var r={DESCRIPTIONS_ITEM:!0,props:{label:String,span:{type:Number,default:1},align:{type:String,default:"left"},tooltip:{type:String,default:""}},render:function(){return this.$slots.default},renderError:function(){}},o=function(){var e=this,t=e._self._c;return t("tr",{staticClass:"ant-descriptions-row"},[e._t("default")],2)},i=[],a={},s=a,l=n("2877"),c=Object(l["a"])(s,o,i,!1,null,null,null),u=c.exports;function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=h(e,"string");return"symbol"==f(t)?t:t+""}function h(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=[],o=t,i=e.filter((function(e){var t=e.componentOptions||{Ctor:{}},n=t.Ctor.options;return!!n&&n.DESCRIPTIONS_ITEM}));return i.forEach((function(e,a){var s=e.componentOptions.propsData.span||1;if(a===i.length-1)return r.push(e),void n.push(r);s<o?(o-=s,r.push(e)):(r.push(e),n.push(r),o=t,r=[])})),n};t["a"]={DescriptionsItem:r,components:{Row:u},props:{title:String,bordered:{type:Boolean,default:!1},column:{type:[Number,Object],default:3},size:{type:[Boolean,String],default:!1,enum:["default","middle","small"]},layout:{type:String,default:"horizontal",enum:["horizontal","vertical"]},inline:{type:Boolean,default:!0},colon:{type:Boolean,default:!0},profile:{type:Boolean,default:!1}},render:function(e){var t=this.title,n=this.bordered,r=this.size,o=this.colon,i=this.layout,a=this.inline,s=this.column,l=this.$slots,c=this.profile,f=m(l.default,s);return e("div",{class:d(d(d({"ant-descriptions":!0},"ant-descriptions-".concat(r),!0),"ant-descriptions-bordered",!!n),"ant-descriptions-profile",!!c)},[t&&e("div",{class:"ant-descriptions-title"},[t]),!t&&l.title&&e("div",{class:"ant-descriptions-title"},[l.title]),e("div",{class:"ant-descriptions-view"},[e("table",[e("tbody",[f.map((function(t){return"vertical"===i?[e(u,[" ",t.map((function(t){var n=t.componentOptions.propsData,r=n.span,o=n.label,i=n.align,a=n.tooltip;return e("th",{class:"ant-descriptions-item-label",style:{"text-align":i},attrs:{colSpan:r}},a?[o,e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[e("span",[a])]),e("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o])}))," "]),e(u,[" ",t.map((function(t){var n=t.componentOptions.propsData,r=n.span,o=n.align;return e("td",{class:"ant-descriptions-item-content",style:{"text-align":o,"white-space":"pre-wrap"},attrs:{colSpan:r}},[t])}))," "])]:e(u,[" ",t.map((function(t){var r=t.componentOptions.propsData,i=r.label,s=r.span,l=r.align,c=r.tooltip;return n||!a?[e("th",{class:"ant-descriptions-item-label"},c?[i,e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[e("span",[c])]),e("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[i]),e("td",{class:"ant-descriptions-item-content",style:{"text-align":l,"white-space":"pre-wrap"},attrs:{colSpan:s?2*s-1:""}},[t])]:e("td",{class:"ant-descriptions-item",attrs:{colSpan:s},style:{"text-align":l}},c?[e("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":o}},[i,e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[e("span",[c])]),e("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]),e("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[t])]:[e("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":o}},[i]),e("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[t])])}))," "])}))])])]),l.footer&&e("div",[l.footer])])},renderError:function(){}}},f564:function(e,t,n){var r=n("ebeb");n("bb01"),n("ea7c"),n("5fb7"),function(){if(r.prime)e.exports=r.prime;else{var t=e.exports=r.prime=r.prime||{},n=r.jsbn.BigInteger,o=[6,4,2,4,2,4,6,2],i=new n(null);i.fromInt(30);var a=function(e,t){return e|t};t.generateProbablePrime=function(e,t,n){"function"===typeof t&&(n=t,t={}),t=t||{};var o=t.algorithm||"PRIMEINC";"string"===typeof o&&(o={name:o}),o.options=o.options||{};var i=t.prng||r.random,a={nextBytes:function(e){for(var t=i.getBytesSync(e.length),n=0;n<e.length;++n)e[n]=t.charCodeAt(n)}};if("PRIMEINC"===o.name)return s(e,a,o.options,n);throw new Error("Invalid prime generation algorithm: "+o.name)}}function s(e,t,n,r){return"workers"in n?u(e,t,n,r):l(e,t,n,r)}function l(e,t,n,r){var o=f(e,t),i=0,a=d(o.bitLength());"millerRabinTests"in n&&(a=n.millerRabinTests);var s=10;"maxBlockTime"in n&&(s=n.maxBlockTime),c(o,e,t,i,a,s,r)}function c(e,t,n,i,a,s,l){var u=+new Date;do{if(e.bitLength()>t&&(e=f(t,n)),e.isProbablePrime(a))return l(null,e);e.dAddOffset(o[i++%8],0)}while(s<0||+new Date-u<s);r.util.setImmediate((function(){c(e,t,n,i,a,s,l)}))}function u(e,t,o,i){if("undefined"===typeof Worker)return l(e,t,o,i);var a=f(e,t),s=o.workers,c=o.workLoad||100,u=30*c/8,d=o.workerScript||"forge/prime.worker.js";if(-1===s)return r.util.estimateCores((function(e,t){e&&(t=2),s=t-1,p()}));function p(){s=Math.max(1,s);for(var r=[],o=0;o<s;++o)r[o]=new Worker(d);for(o=0;o<s;++o)r[o].addEventListener("message",p);var l=!1;function p(o){if(!l){0;var s=o.data;if(s.found){for(var d=0;d<r.length;++d)r[d].terminate();return l=!0,i(null,new n(s.prime,16))}a.bitLength()>e&&(a=f(e,t));var p=a.toString(16);o.target.postMessage({hex:p,workLoad:c}),a.dAddOffset(u,0)}}}p()}function f(e,t){var r=new n(e,t),o=e-1;return r.testBit(o)||r.bitwiseTo(n.ONE.shiftLeft(o),a,r),r.dAddOffset(31-r.mod(i).byteValue(),0),r}function d(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}}()},f57a:function(e,t,n){var r=n("ebeb");e.exports=r.debug=r.debug||{},r.debug.storage={},r.debug.get=function(e,t){var n;return"undefined"===typeof e?n=r.debug.storage:e in r.debug.storage&&(n="undefined"===typeof t?r.debug.storage[e]:r.debug.storage[e][t]),n},r.debug.set=function(e,t,n){e in r.debug.storage||(r.debug.storage[e]={}),r.debug.storage[e][t]=n},r.debug.clear=function(e,t){"undefined"===typeof e?r.debug.storage={}:e in r.debug.storage&&("undefined"===typeof t?delete r.debug.storage[e]:delete r.debug.storage[e][t])}},f765:function(e,t,n){"use strict";var r=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,delay:50}},[t("iframe",{style:{height:e.height},attrs:{frameborder:"0",src:"".concat(e.url),width:"100%"},on:{load:e.handleLoad}})])},o=[],i={props:{url:String,query:Object,height:{type:[Number,String],default:"100vh"}},data:function(){return{loading:!0}},methods:{handleLoad:function(){this.loading=!1,this.$emit("load")}}},a=i,s=n("2877"),l=Object(s["a"])(a,r,o,!1,null,null,null);t["a"]=l.exports},f9a7:function(e,t,n){"use strict";var r=n("8c7f"),o=n("796d"),i=n.n(o),a=n("8bbf"),s=n.n(a);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=p(e,"string");return"symbol"==l(t)?t:t+""}function p(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return m(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(m(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,m(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,m(f,"constructor",c),m(c,"constructor",l),l.displayName="GeneratorFunction",m(c,o,"GeneratorFunction"),m(f),m(f,o,"Generator"),m(f,r,(function(){return this})),m(f,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:i,m:d}})()}function m(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}m=function(e,t,n,r){function i(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},m(e,t,n,r)}function v(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,s,"next",e)}function s(e){v(i,r,o,a,s,"throw",e)}a(void 0)}))}}function g(e,t){return C(e)||S(e,t)||w(e,t)||b()}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function C(e){if(Array.isArray(e))return e}var k=function(e,t,n){for(var r=0;r<e.length;r++){if(e[r][n]===t)return[e,r];if(e[r]._childList){var o=k(e[r]._childList,t,n);if(o)return o}}return null};function E(e,t,n,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=t.slice(2),d={namespaced:!0,state:function(){return{namespace:c,data:{rows:[],count:0,size:15},schema:null,wordbooks:{},expired:0,loading:!1,committing:!1,status:0,message:""}},mutations:{setSchema:function(e,t){e.schema=t},setStatus:function(e,t){var n=t.status,r=t.message;e.status=n,e.message=r},setLoading:function(e,t){e.loading=t},setCommitting:function(e,t){e.committing=t},setData:function(e,t){var n=t.rows,r=t.count,o=t.size;e.data.rows=n,e.data.count=r,e.data.size=o},appendData:function(e,t){var n=t.rows||[];e.data.rows=e.data.rows.concat(n)},saveData:function(e,t){var n=t.rows,r=t.idName,o=t.parentIdName;n=Array.isArray(n)?n:[n],n.forEach((function(t){var n=k(e.data.rows,t[r],r);if(n){n[0][n[1]]._childList&&(t._childList=n[0][n[1]]._childList);var i=n,a=g(i,2),l=a[0],c=a[1];o&&t[o]!==l[c][o]?(l.splice(c,1),n=null):s.a.set(l,c,t)}if(!n&&t[r]&&o&&t[o]){var u=k(e.data.rows,t[o],r);if(u){var f=u[0][u[1]];f._childList?f._childList.unshift(t):s.a.set(f,"_childList",[t])}else e.data.rows.unshift(t)}else!n&&t[r]&&e.data.rows.unshift(t)}))},removeData:function(e,t){var n=t.rows,r=t.idName;t.parentIdName;n=Array.isArray(n)?n:[n],n.forEach((function(t){var n=k(e.data.rows,t[r],r);if(n){var o=g(n,2),i=o[0],a=o[1];i.splice(a,1)}}))},setWordbook:function(e,t){var n=t.rows,r=t.key;e.wordbooks[r]?e.wordbooks[r]=n:s.a.set(e.wordbooks,r,n)},replaceNamespace:function(e,t){e.namespace=t.reduce((function(e,t){return e.replace(":id",t)}),c)},createSubViewStore:function(t,r){function o(t,r){var i;((null===(i=t.model)||void 0===i?void 0:i.attrs)||[]).filter((function(e){return"model"===e.metaType})).map((function(t){var i="".concat(r,"/:id/").concat(t.name);e.hasModule(i)||(E(e,i,n,t.name,!1,t.subView),t.subView&&o(t.subView,i))}))}o(r,"v-".concat(c))}},actions:{loadSchema:function(e,t){return y(h().m((function t(){var n,o,i,a,s,l,u,f,d;return h().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,e.state.namespace,n("setLoading",!0),t.p=1,t.n=2,r["a"].get("/schemas/".concat(c.replace(/\/:id/g,"")));case 2:o=t.v,i=o.data,a=o.status,n("createSubViewStore",i),n("setSchema",i),n("setStatus",{status:a}),t.n=5;break;case 3:if(t.p=3,d=t.v,d.response){t.n=4;break}return t.a(2,n("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 4:s=d.response,l=s.status,u=s.data,f=u&&u.content||"系统错误请与管理员联系。",n("setStatus",{status:l,message:f});case 5:return t.p=5,n("setLoading",!1),t.f(5);case 6:return t.a(2)}}),t,null,[[1,3,5,6]])})))()},loadData:function(e){var t=arguments;return y(h().m((function n(){var o,a,s,l,c,u,f,d,p,m,v,y,g,b,w,_,S,C,k,E,O,T,A,x,N,I,j;return h().w((function(n){while(1)switch(n.p=n.n){case 0:return o=e.commit,a=e.dispatch,s=e.getters,l=e.state.namespace,c=t.length>1&&void 0!==t[1]?t[1]:{},u=c.url,f=void 0===u?l:u,d=c.method,p=void 0===d?"get":d,m=c.data,v=void 0===m?null:m,y=c.key,g=c.query,b=c.options,w=c.mute,_=void 0!==w&&w,!_&&o("setLoading",!0),n.p=1,n.n=2,r["a"][p]("/api/".concat(f).concat(y?"/".concat(y):"","?").concat(i.a.stringify(g)),v,b);case 2:return S=n.v,C=S.data,k=C.collection,E=C.model,O=C.count,T=C.pagination,A=S.status,x=s.idName,N=s.parentIdName,I=s.nodeName,E?o("saveData",{rows:E,idName:x,parentIdName:N,nodeName:I}):o("setData",{rows:k||[],count:O,size:T&&T.size}),o("setStatus",{status:A,message:""}),n.a(2,k||E);case 3:return n.p=3,j=n.v,n.a(2,a("handleError",{error:j,mute:_}));case 4:return n.p=4,!_&&o("setLoading",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},loadWordBook:function(e){var t=arguments;return y(h().m((function n(){var o,a,s,l,c,u,f,d,p,m,v,y,g,b,w,_;return h().w((function(n){while(1)switch(n.p=n.n){case 0:return o=e.commit,a=e.dispatch,s=e.state.namespace,l=t.length>1&&void 0!==t[1]?t[1]:{},c=l.url,u=void 0===c?s:c,f=l.method,d=void 0===f?"get":f,p=l.data,m=void 0===p?null:p,v=l.key,y=l.query,g=l.options,n.p=1,n.n=2,r["a"][d.toLowerCase()]("/api/".concat(u).concat(v?"/".concat(v):"","?").concat(i.a.stringify(y)),m,g);case 2:return b=n.v,w=b.data,w.collection&&v&&o("setWordBook",{rows:w.collection,key:v}),n.a(2,w);case 3:return n.p=3,_=n.v,n.a(2,a("handleError",{error:_}))}}),n,null,[[1,3]])})))()},saveData:function(e){var t=arguments;return y(h().m((function n(){var o,a,s,l,c,u,f,d,p,m,v,y,g,b,w,_,S,C,k,E,O,T,A,x,N,I,j,P,R;return h().w((function(n){while(1)switch(n.p=n.n){case 0:return o=e.commit,a=e.dispatch,s=e.getters,l=e.state.namespace,c=t.length>1&&void 0!==t[1]?t[1]:{},u=c.url,f=void 0===u?l:u,d=c.type,p=void 0===d?"save":d,m=c.method,v=void 0===m?"post":m,y=c.data,g=void 0===y?null:y,b=c.key,w=c.query,_=c.options,S=c.mute,C=void 0!==S&&S,o("setCommitting",!0),n.p=1,n.n=2,r["a"][v.toLowerCase()]("/api/".concat(f).concat(b?"/".concat(b):"","?").concat(i.a.stringify(w)),g,_);case 2:return k=n.v,E=k.data,O=E.data,T=E.content,A=k.status,x=k.statusText,N=s.idName,I=s.parentIdName,j=s.nodeName,O&&(P="remove"===p?"removeData":"saveData",c.params&&c.params.mode&&"notUpdate"===c.params.mode||o(P,{rows:O.data||O,idName:N,parentIdName:I,nodeName:j})),o("setStatus",{status:A,message:C?"":T||x}),n.a(2,O);case 3:return n.p=3,R=n.v,n.a(2,a("handleError",{error:R}));case 4:return n.p=4,o("setCommitting",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},executeData:function(e,t){return y(h().m((function n(){var r,o,i;return h().w((function(n){while(1)switch(n.n){case 0:return r=e.dispatch,o=t.method,i=void 0===o?"post":o,n.n=1,r("saveData",u({type:"execute",method:i},t));case 1:return n.a(2,n.v)}}),n)})))()},removeData:function(e,t){return y(h().m((function n(){var r,o,i;return h().w((function(n){while(1)switch(n.n){case 0:return r=e.dispatch,o=t.method,i=void 0===o?"delete":o,n.n=1,r("saveData",u({type:"remove",method:i},t));case 1:return n.a(2,n.v)}}),n)})))()},handleError:function(e,t){var n=e.commit,r=t.error,o=t.mute;if(!r.response)return n("setStatus",{status:0,message:!o&&"网络请求错误,请检查您的网络连接。"});var i=r.response,a=i.status,s=i.data,l=o?null:s&&s.content||"系统错误请与管理员联系。";return n("setStatus",{status:a,message:l}),r},resetStatus:function(e){var t=e.commit;t("setStatus",{status:0,message:""})}},getters:{schema:function(e,t,r){return a||(r[n].views.find((function(e){return e.key===o}))||e.schema)},model:function(e,t){return t.schema?t.schema.model:null},idName:function(e,t){return t.model?t.model.idName:null},parentIdName:function(e,t){return t.model?t.model.parentIdName:null},nodeName:function(e,t){return t.model?t.model.nodeName:null},titleName:function(e,t){var n,r=null===(n=t.model)||void 0===n||null===(n=n.attrs)||void 0===n?void 0:n.find((function(e){return"title"===e.display}));return r?r.name:null},titleSchema:function(e,t){var n,r=null===(n=t.model)||void 0===n||null===(n=n.attrs)||void 0===n?void 0:n.find((function(e){return"title"===e.display}));return r||null},config:function(e,t){return function(e){var n;return t.schema&&t.schema.configs&&(n=t.schema.configs.find((function(t){return t.key===e}))),n?n.value:null}},wordbook:function(e){return function(t){return e.wordbooks[t]||[]}},find:function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=e.data;if(!n)return r;"object"!==l(n)&&(n=f({},t.idName,n));var o=Object.keys(n);return r.filter((function(e){return o.every((function(t){return e[t]===n[t]}))}))}},findOne:function(e,t,n){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=r||t.idName||"id",i=k(e.data.rows,n,o);return i?i[0][i[1]]:null}},findAll:function(e){var t=e.data.rows;return t},apiURL:function(e,t,n){var r=e.namespace,o=n.baseURL;return"".concat(o,"/api/").concat(r)},apiBaseURL:function(e,t,n){var r=n.baseURL;return r}}};e.registerModule(t,d)}function O(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return T(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(T(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,T(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,T(f,"constructor",c),T(c,"constructor",l),l.displayName="GeneratorFunction",T(c,o,"GeneratorFunction"),T(f),T(f,o,"Generator"),T(f,r,(function(){return this})),T(f,"toString",(function(){return"[object Generator]"})),(O=function(){return{w:i,m:d}})()}function T(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}T=function(e,t,n,r){function i(t,n){T(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},T(e,t,n,r)}function A(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){A(i,r,o,a,s,"next",e)}function s(e){A(i,r,o,a,s,"throw",e)}a(void 0)}))}}t["a"]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o={namespaced:!0,state:function(){return{namespace:t.slice(2),schema:null,views:[],actions:[],configs:[],params:[],rules:[],version:0,loading:!1,status:200,message:"",single:n}},mutations:{setSchema:function(e,t){e.schema=t},setViews:function(e,t){e.views=t},setStatus:function(e,t){var n=t.status,r=t.message;e.status=n,e.message=r},setLoading:function(e,t){e.loading=t},createViewStore:function(r,o){function i(r,o){var a;((null===(a=r.model)||void 0===a?void 0:a.attrs)||[]).filter((function(e){return"model"===e.metaType})).map((function(r){var a="".concat(o,"/:id/").concat(r.name);e.hasModule(a)||(E(e,a,t,r.name,n,r.subView),r.subView&&i(r.subView,a))}))}o.map((function(r){var o="v-".concat(t.slice(2)).concat(n?"":"-".concat(r.key));e.hasModule(o)||(E(e,o,t,r.key,n),i(r,o))}))},setViewData:function(e,t){}},actions:{loadSchema:function(e,t){return x(O().m((function t(){var o,i,a,s,l,c,u,f,d,p,h;return O().w((function(t){while(1)switch(t.p=t.n){case 0:return o=e.commit,i=e.state.namespace,o("setLoading",!0),t.p=1,t.n=2,r["a"].get("/schemas/".concat(i));case 2:a=t.v,s=a.data,l=a.status,c=a.statusText,o("createViewStore",n?[s]:s.views),o("setViews",n?[s]:s.views),delete s.views,o("setSchema",s),o("setStatus",{status:l,message:s.message||c}),t.n=5;break;case 3:if(t.p=3,h=t.v,h.response){t.n=4;break}return t.a(2,o("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 4:u=h.response,f=u.status,d=u.data,p=d&&d.content||"系统错误请与管理员联系。",o("setStatus",{status:f,message:p});case 5:return t.p=5,o("setLoading",!1),t.f(5);case 6:return t.a(2)}}),t,null,[[1,3,5,6]])})))()}},getters:{schema:function(e){return e.schema},views:function(e){return e.views},config:function(e){return function(t){return e.configs.find((function(e){return e.key===t}))}}}};e.registerModule(t,o)}},fa74:function(e,t,n){"use strict";n("191d")},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"App",(function(){return Ue})),n.d(t,"createStore",(function(){return St})),n.d(t,"create",(function(){return q["a"]})),n.d(t,"template",(function(){return Ct["a"]})),n.d(t,"WebRouters",(function(){return Ot})),n.d(t,"WebViews",(function(){return F["a"]})),n.d(t,"Descriptions",(function(){return Tt["a"]})),n.d(t,"Frame",(function(){return oe["a"]})),n.d(t,"Clipboard",(function(){return Pt})),n.d(t,"Collection",(function(){return rn})),n.d(t,"FormItem",(function(){return on["a"]})),n.d(t,"FormBase",(function(){return an["a"]})),n.d(t,"encryptWithParams",(function(){return Je})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.$store.state.loading}},[t("Router",{on:{routed:function(t){e.spinning=!1}}})],1)},s=[],l=function(){var e=this,t=e._self._c;return t("router-view")},c=[],u=n("5880"),f=n.n(u),d=n("f9a7");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return m(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(m(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,m(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,m(f,"constructor",c),m(c,"constructor",l),l.displayName="GeneratorFunction",m(c,o,"GeneratorFunction"),m(f),m(f,o,"Generator"),m(f,r,(function(){return this})),m(f,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:i,m:d}})()}function m(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}m=function(e,t,n,r){function i(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},m(e,t,n,r)}function v(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,s,"next",e)}function s(e){v(i,r,o,a,s,"throw",e)}a(void 0)}))}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=S(e,"string");return"symbol"==p(t)?t:t+""}function S(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var C=["loading","schema","status","message","single"],k=["loadSchema"],E=["views"],O=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(u["createNamespacedHelpers"])(e),r=n.mapState,o=n.mapActions,i=n.mapMutations,a=n.mapGetters;return{data:function(){return{storeNamespace:e}},computed:b(b({},r(C)),a(E)),methods:b(b({},o(k)),i(["setStatus"])),beforeCreate:function(){this.$store.hasModule(e)||Object(d["a"])(this.$store,e,t)},created:function(){var e=this;return y(h().m((function t(){var n;return h().w((function(t){while(1)switch(t.n){case 0:if(n=!e.schema,!n){t.n=1;break}return t.n=1,e.loadSchema();case 1:e.status>399&&e.message&&(e.$message.error(e.message),e.setStatus({status:0,message:""}));case 2:return t.a(2)}}),t)})))()},watch:{status:function(e){401===e&&(this.$router.push("/sign-in"),window.location.reload())}}}},T=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:e,mixins:[O("p-".concat(t),n)]}}},A=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,delay:50}},[e.loading?t("div",{staticStyle:{height:"50px"}}):e._e(),t("layout-page-".concat(e.layout),{tag:"component",scopedSlots:e._u([e._l(e.slots,(function(n){return{key:n,fn:function(){return[t("views",{key:"slot-".concat(n),attrs:{views:e.slotViews(n),modelViewType:e.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},x=[];function N(e){return R(e)||P(e)||j(e)||I()}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}function P(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return D(e)}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var B={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var e=["default","header","footer","sider","left","right"],t=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(e){return e.toUpperCase()})),"Layout")].slots;return t&&Array.from(new Set([].concat(N(t),e)))||[]}},methods:{slotViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(t){return t.slot===e||"default"===e&&!t.slot}))}},activated:function(){},deactivated:function(){}},L=function(){var e=this,t=e._self._c;return t("a-row",e._l(e.views,(function(n){return t("a-col",{key:n.key,attrs:{span:n.span||24}},[t("layout-view-".concat(n.layout||e.viewLayout),{tag:"component",attrs:{view:n}},[t("ViewBox",e._b({attrs:{view:n}},"ViewBox",e.$attrs,!1))],1)],1)})),1)},M=[],U=function(){var e=this,t=e._self._c;return t("keep-alive",[t(e.createView(),e._b({tag:"component",attrs:{pageKey:e.page.pageKey,viewKey:e.view.key,mode:"page",layout:"layout-view-model-list"}},"component",e.view,!1))],1)},V=[],q=n("0959"),F=n("c246"),K={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:Object(q["a"])(F["a"]["Model".concat(this.modelViewType)])(this.namespace)}}}},$=K,H=n("2877"),G=Object(H["a"])($,U,V,!1,null,null,null),z=G.exports,Y={components:{ViewBox:z},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},W=Y,Q=Object(H["a"])(W,L,M,!1,null,null,null),X=Q.exports,Z={mixins:[B],components:{Views:X}},J=Z,ee=Object(H["a"])(J,A,x,!1,null,null,null),te=ee.exports,ne=function(){var e=this,t=e._self._c;return t("layout-page-".concat(e.layout),{tag:"component"},[t("Frame",{attrs:{url:"".concat(e.url),height:e.height}})],1)},re=[],oe=n("f765"),ie={mixins:[B],components:{Frame:oe["a"]},props:{url:String,height:String},data:function(){return{loading:!0}}},ae=ie,se=Object(H["a"])(ae,ne,re,!1,null,null,null),le=se.exports,ce=function(){var e=this,t=e._self._c;return t("keep-alive",[t("router-view")],1)},ue=[],fe={},de=Object(H["a"])(fe,ce,ue,!1,null,null,null),pe=de.exports;function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function me(e){return be(e)||ge(e)||ye(e)||ve()}function ve(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ye(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function ge(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function be(e){if(Array.isArray(e))return we(e)}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e,t,n){return(t=ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){var t=Ee(e,"string");return"symbol"==he(t)?t:t+""}function Ee(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Oe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Te(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Te(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Te(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Te(f,"constructor",c),Te(c,"constructor",l),l.displayName="GeneratorFunction",Te(c,o,"GeneratorFunction"),Te(f),Te(f,o,"Generator"),Te(f,r,(function(){return this})),Te(f,"toString",(function(){return"[object Generator]"})),(Oe=function(){return{w:i,m:d}})()}function Te(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Te=function(e,t,n,r){function i(t,n){Te(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Te(e,t,n,r)}function Ae(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ae(i,r,o,a,s,"next",e)}function s(e){Ae(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ne=T(te),Ie=["catalog-tab","catalog"],je={data:function(){return{messageTimer:0}},created:function(){var e=this;return xe(Oe().m((function t(){return Oe().w((function(t){while(1)switch(t.n){case 0:return e.$router.addRoutes([{path:"/sign-in",component:e.$theme.pages.Signin,props:{layout:"wall"}}]),t.n=1,e.$store.dispatch("loadResources");case 1:"poll"===e.$store.state.config.message.type&&"1"===e.$store.state.app.remind&&e.startMessage();case 2:return t.a(2)}}),t)})))()},computed:Se(Se({},Object(u["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(me(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(e){var t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.$theme.layouts.router.Tabs;return e.map((function(e){var o,i="".concat(n,"/").concat(e.key),a=e.key,s={},l=null;switch(e.type){case"catalog-tab":o=r,s.resources=e.childs,s.parentPath=i;break;case"component":o=t.$theme.pages[e.key.replace(/^\S/,(function(e){return e.toUpperCase()}))],s.pageKey=e.url;break;case"iframe":if(o=le,s.pageKey=e.url,s.url=e.url,e.url&&e.url.split("?")[1]){var c=e.url.split("?")[1].split("&").find((function(e){return e.includes("height")}))||void 0;c&&(s.height=c.split("=")[1])}break;case"view":o=pe,s.pageKey=e.url;break;case"link":o={template:"<span></span>",activated:function(){e.url&&window.open(e.url,"_blank"),this.$router.back()}};break;default:o=pe;break}return"view"===e.type&&"standard"===e.viewType&&(l=[{path:"",component:{extends:Ne(e.url,!0)},props:{modelViewType:"profile"===e.catalogType?"Profile":"List",pageKey:e.url},meta:{name:e.name,key:i}},{path:":id",component:{extends:Ne(e.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:e.url}},meta:{name:e.name,key:i}}]),!l&&e.childs&&(l=t.resToRoute(e.childs,e,"".concat(n,"/").concat(a))),{name:l?null:e.url,path:a,redirect:Ie.includes(e.type)&&e.childs&&e.childs.length?"".concat(n,"/").concat(a,"/").concat(e.childs[0].key):null,children:l,component:o,props:s,meta:{name:"list"===e.type?null:e.name,key:i}}}))},modelPageRoute:function(){},startMessage:function(){var e=this;return xe(Oe().m((function t(){return Oe().w((function(t){while(1)switch(t.n){case 0:return t.n=1,e.$store.dispatch("loadMessages");case 1:e.messageTimer&&clearInterval(e.messageTimer),e.messageTimer=setInterval((function(){e.$store.dispatch("loadMessages")}),1e4);case 2:return t.a(2)}}),t)})))()}},watch:{status:function(e){401===e&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(e,t){!t.length&&this.addRoutes()}}},Pe=je,Re=Object(H["a"])(Pe,l,c,!1,null,null,null),De=Re.exports,Be={components:{Router:De},created:function(){}},Le=Be,Me=Object(H["a"])(Le,a,s,!1,null,null,null),Ue=Me.exports,Ve=n("8bbf"),qe=n.n(Ve),Fe=n("8c7f"),Ke=(n("e39e"),n("7cb4")),$e=n.n(Ke);function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}var Ge={method:"aes",padding:"RSAES-PKCS1-V1_5",hash:"sha256"};function ze(e){return null}function Ye(e){var t=String(e).trim();if(0===t.indexOf("-----BEGIN"))return t;var n=t.replace(/\s+/g,"");if(!/^[A-Za-z0-9+/]+={0,2}$/.test(n))throw new Error("RSA 公钥格式无效(params.cipherPublicKey):应为 PEM 或 base64 公钥");return"-----BEGIN PUBLIC KEY-----\n"+n+"\n-----END PUBLIC KEY-----"}function We(e){var t=Ye(e);try{return $e.a.pki.publicKeyFromPem(t)}catch(n){try{return $e.a.pki.publicKeyFromPem(t.replace(/ PUBLIC KEY/g," RSA PUBLIC KEY"))}catch(r){throw new Error("RSA 公钥解析失败(params.cipherPublicKey):请确认是有效的 RSA 公钥(PEM 或 base64)")}}}function Qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new Error("RSA 加密需要配置公钥(params.cipherPublicKey)");var r=n.padding||Ge.padding,o=n.hash||Ge.hash,i=We(t),a=$e.a.md[o]&&$e.a.md[o].create();if(!a)throw new Error("不支持的 RSA 摘要算法(params.cipherHash):".concat(o));var s=$e.a.util.encodeUtf8(String(e)),l=Math.ceil(i.n.bitLength()/8),c=-1!==String(r).toUpperCase().indexOf("OAEP"),u=c?l-2*a.digestLength-2:l-11;if(s.length>u)throw new Error("内容过长无法 RSA 加密:".concat(s.length," 字节,").concat(8*l," 位密钥上限 ").concat(u," 字节"));var f=i.encrypt(s,r,{md:a});return $e.a.util.encode64(f)}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=String(t.method||Ge.method).toLowerCase();return"rsa"===n?Qe(e,t.publicKey,t):ze(e)}function Ze(e){if(!e)return{};if("object"===He(e))return e;try{return JSON.parse(e)}catch(t){return{}}}function Je(e,t){var n=Ze(t);return n.cipherTransfer?Xe(e,{method:n.cipherMethod,publicKey:n.cipherPublicKey,padding:n.cipherPadding,hash:n.cipherHash}):e}function et(e){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}function tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return nt(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(nt(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,nt(f,"constructor",c),nt(c,"constructor",l),l.displayName="GeneratorFunction",nt(c,o,"GeneratorFunction"),nt(f),nt(f,o,"Generator"),nt(f,r,(function(){return this})),nt(f,"toString",(function(){return"[object Generator]"})),(tt=function(){return{w:i,m:d}})()}function nt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}nt=function(e,t,n,r){function i(t,n){nt(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},nt(e,t,n,r)}function rt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ot(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rt(i,r,o,a,s,"next",e)}function s(e){rt(i,r,o,a,s,"throw",e)}a(void 0)}))}}function it(e){return ct(e)||lt(e)||st(e)||at()}function at(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function st(e,t){if(e){if("string"==typeof e)return ut(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}function lt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ct(e){if(Array.isArray(e))return ut(e)}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t,n){return(t=ht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e){var t=mt(e,"string");return"symbol"==et(t)?t:t+""}function mt(e,t){if("object"!=et(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var vt=window.Rainbow,yt=vt.app,gt=yt.csrfToken,bt=yt.baseURL,wt=!1,_t={};function St(e){Fe["a"].setDefaults({baseURL:bt!==["/","{app.appKey}"].join("$")?bt:e,headers:_t}),qe.a.use(Fe["a"]),qe.a.use(f.a);var t=function(){return{resources:[],apps:[],authApps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:dt({},vt.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,isSubView:!1,settingVisible:!1,status:200,message:"",baseURL:Fe["a"].instance.defaults.baseURL}};return new f.a.Store({state:t(),strict:wt,plugins:[],mutations:{setResources:function(e,t){e.resources=t},setApp:function(e,t){e.app=dt(dt({},e.app),t)},setAuthApps:function(e,t){e.authApps=it(new Set([].concat(it(e.authApps),it(t))))},setUser:function(e,t){e.user=t},setToken:function(e,t){e.token=t},setMessages:function(e,t){e.messages=t},readMessages:function(e,t){if(t.length>1)e.messages=[];else if(1===t.length){var n=e.messages.findIndex((function(e){return t[0].message_id===e.message_id}));-1!==n&&e.messages.splice(n,1)}},clear:function(e){e.resources=e.apps=e.messages=[],e.user=null,localStorage.removeItem("signToken"),e.signToken=null},setStatus:function(e,t){var n=t.status,r=t.message;e.status=n,e.message=r},setLoading:function(e,t){e.loading=t},setCommitting:function(e,t){e.committing=t},setHistorys:function(e,t){var n=e.historys.findIndex((function(e){return e.key===t.key}));-1!==n?e.historys[n]=t:e.historys.push(t)},setSubView:function(e,t){e.isSubView=t},setSettingVisible:function(e,t){e.settingVisible=t},removeHistorys:function(e,t){var n=e.historys.findIndex((function(e){return e.key===t}));return-1!==n&&e.historys.splice(n,1),n}},actions:{loadResources:function(e){return ot(tt().m((function t(){var n,r,o,i,a,s,l,c,u;return tt().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,r=e.dispatch,n("setLoading",!0),t.p=1,t.n=2,Fe["a"].get("/api");case 2:o=t.v,i=o.data,a=i.resources,s=i.user,l=i.authApps,c=i.app,n("setResources",a),n("setUser",s),n("setApp",c),l&&l.length>0&&n("setAuthApps",l),t.n=4;break;case 3:t.p=3,u=t.v,r("handleError",u);case 4:return t.p=4,n("setLoading",!1),t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},loadMessages:function(e){return ot(tt().m((function t(){var n,r,o;return tt().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,t.p=1,t.n=2,Fe["a"].get("/api/sys-msg?status=unread");case 2:r=t.v,o=r.data.collection,n("setMessages",o),t.n=4;break;case 3:t.p=3,t.v;case 4:return t.a(2)}}),t,null,[[1,3]])})))()},readMessages:function(e,t){return ot(tt().m((function n(){var r;return tt().w((function(n){while(1)switch(n.n){case 0:return r=e.commit,n.n=1,Fe["a"].post("/api/sys-msg/read",t);case 1:r("readMessages",t);case 2:return n.a(2)}}),n)})))()},emptyMessages:function(e,t){return ot(tt().m((function n(){var r;return tt().w((function(n){while(1)switch(n.n){case 0:return r=e.commit,n.n=1,Fe["a"].post("/api/sys-msg/reads",t);case 1:r("readMessages",t);case 2:return n.a(2)}}),n)})))()},signin:function(e){var t=arguments;return ot(tt().m((function n(){var r,o,i,a,s,l,c,u,f;return tt().w((function(n){while(1)switch(n.p=n.n){case 0:return r=e.commit,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},r("setCommitting",!0),n.p=1,n.n=2,Fe["a"].post("/api/signin",i.data,{});case 2:return a=n.v,s=a.data,l=s.data,c=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:c}),n.a(2,l);case 3:n.p=3,f=n.v,o("handleError",f);case 4:return n.p=4,r("setCommitting",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},getSms:function(e){var t=arguments;return ot(tt().m((function n(){var r,o,i,a,s,l,c,u,f;return tt().w((function(n){while(1)switch(n.p=n.n){case 0:return r=e.commit,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},r("setCommitting",!0),n.p=1,n.n=2,Fe["a"].post("/api/sms",i.data,{});case 2:return a=n.v,s=a.data,l=s.data,c=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:c}),n.a(2,l);case 3:n.p=3,f=n.v,o("handleError",f);case 4:return n.p=4,r("setCommitting",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},signout:function(e,t){return ot(tt().m((function t(){var n,r,o,i,a,s,l,c;return tt().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,r=e.dispatch,n("setCommitting",!0),t.p=1,t.n=2,Fe["a"].post("/api/signout");case 2:return o=t.v,i=o.data,a=i.data,s=i.content,l=o.status,n("clear"),n("setStatus",{status:l,message:s}),t.a(2,a);case 3:t.p=3,c=t.v,r("handleError",c);case 4:return t.p=4,n("setCommitting",!1),t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},changePassword:function(e){var t=arguments;return ot(tt().m((function n(){var r,o,i,a,s,l,c,u,f,d,p,h,m,v;return tt().w((function(n){while(1)switch(n.p=n.n){case 0:o=e.commit,i=e.dispatch,a=e.state,s=t.length>1&&void 0!==t[1]?t[1]:{},l=null===(r=a.app)||void 0===r?void 0:r.params,c=dt({},s.data),n.p=1,c.newpassword=Je(c.newpassword,l),c.repassword=Je(c.repassword,l),c.password=Je(c.password,l),n.n=3;break;case 2:return n.p=2,m=n.v,o("setStatus",{status:500,message:m.message}),n.a(2);case 3:return o("setCommitting",!0),n.p=4,n.n=5,Fe["a"].post("/api/change-password",c,{});case 5:return u=n.v,f=u.data,d=f.data,p=f.content,h=u.status,o("clear"),o("setStatus",{status:h,message:p}),n.a(2,d);case 6:n.p=6,v=n.v,i("handleError",v);case 7:return n.p=7,o("setCommitting",!1),n.f(7);case 8:return n.a(2)}}),n,null,[[4,6,7,8],[1,2]])})))()},handleError:function(e,t){var n=e.commit;if(!t.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=t.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";return n("setStatus",{status:o,message:a}),t}},getters:{token:function(){},resources:function(){},app:function(e){return e.app},user:function(e){return e.user},config:function(e){return function(t){return e.config.find((function(e){return e.key===t}))}}}})}gt&&"${app.csrfToken}"!==gt&&(_t["x-csrf-token"]=gt);var Ct=n("c6e8"),kt=n("6389"),Et=n.n(kt);qe.a.use(Et.a);var Ot=new Et.a,Tt=n("f24a"),At=function(){var e=this,t=e._self._c;return t("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}]},[e._v(" "+e._s(e.text)+" ")])},xt=[],Nt={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(e){this.$message.success("复制成功")},onError:function(e){this.$message.error("复制失败")}}},It=Nt,jt=Object(H["a"])(It,At,xt,!1,null,null,null),Pt=jt.exports,Rt=function(){var e=this,t=e._self._c;return t(e.component,{tag:"component"},[e._t("default",null,{collection:e.dataSource,model:e.model,schema:e.schema,schemas:e.schemas,count:e.count}),e._t("empty"),e._t("error")],2)},Dt=[],Bt=n("796d"),Lt=n.n(Bt);function Mt(e){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(e)}function Ut(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Vt(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Vt(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Vt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Vt(f,"constructor",c),Vt(c,"constructor",l),l.displayName="GeneratorFunction",Vt(c,o,"GeneratorFunction"),Vt(f),Vt(f,o,"Generator"),Vt(f,r,(function(){return this})),Vt(f,"toString",(function(){return"[object Generator]"})),(Ut=function(){return{w:i,m:d}})()}function Vt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vt=function(e,t,n,r){function i(t,n){Vt(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Vt(e,t,n,r)}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $t(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Kt(i,r,o,a,s,"next",e)}function s(e){Kt(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ht(e,t,n){return(t=Gt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e){var t=zt(e,"string");return"symbol"==Mt(t)?t:t+""}function zt(e,t){if("object"!=Mt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Yt(e,t){return Jt(e)||Zt(e,t)||Qt(e,t)||Wt()}function Wt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qt(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zt(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Jt(e){if(Array.isArray(e))return e}var en={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var e=this.collection,t=this.filter,n=t?e.filter((function(e){return Object.keys(t).every((function(n){var r=t[n];return r&&!Array.isArray(r)&&(r=[r]),null===r||r.includes(e[n])}))})):e;return this.transform?n.map(this.transform):n},schemas:function(){var e,t=null!==(e=this.schema)&&void 0!==e&&null!==(e=e.model)&&void 0!==e&&e.attrs?this.schema.model.attrs.filter((function(e){return e.list||"wordbook"===e.dataType&&e.typeObject})):[],n=t.map((function(e){return e.list?[e.name,e.list.split(",").map((function(e){var t=e.split(":"),n=Yt(t,2),r=n[0],o=n[1];return o?Ht({},r,o):r}))]:[e.name,e.typeObject.data&&e.typeObject.data.collection||[]]}));return Object.fromEntries(n)}},methods:{load:function(){var e=this;return $t(Ut().m((function t(){var n,r,o,i,a,s,l,c,u,f,d,p,h,m,v,y;return Ut().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.name,r=e.query,o=e.limit,i=void 0===o?0:o,a=e.page,s=e.dataset,e.collection=[],e.model={},e.count=0,e.status=0,e.loading=!0,l=s?"dataset":"api",t.p=1,t.n=2,e.$api.get("/".concat(l,"/").concat(n,"?").concat(Lt.a.stringify(Ft(Ft({},r),{},{_size:i,$limit:a}))));case 2:c=t.v,u=c.data,f=u.collection,d=u.count,p=u.model,h=u.data,m=c.status,e.collection=f||h,e.model=p,e.count=d,e.status=m,t.n=4;break;case 3:return t.p=3,y=t.v,y.response?(v=y.response.status,e.status=v):e.status=-1,t.a(2,y);case 4:return t.p=4,e.loading=!1,t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},loadSchema:function(){var e=this;return $t(Ut().m((function t(){var n,r,o,i,a;return Ut().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.name,t.p=1,t.n=2,e.$api.get("/schemas/".concat(n));case 2:r=t.v,o=r.data,e.schema=o,t.n=4;break;case 3:return t.p=3,a=t.v,a.response?(i=a.response.status,e.status=i):e.status=-1,t.a(2,a);case 4:return t.p=4,e.loading=!1,t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()}},created:function(){var e=this;return $t(Ut().m((function t(){return Ut().w((function(t){while(1)switch(t.n){case 0:if("await"!==e.schemaMode){t.n=2;break}return t.n=1,e.loadSchema();case 1:e.load(),t.n=3;break;case 2:"async"===e.schemaMode?(e.loadSchema(),e.load()):e.schemaMode?e.loadSchema():e.load();case 3:return t.a(2)}}),t)})))()},watch:{name:function(e){this.load()},page:function(){this.load()}}},tn=en,nn=Object(H["a"])(tn,Rt,Dt,!1,null,null,null),rn=nn.exports,on=n("7b4d"),an=n("b7f9");n("517c"),n("aa23")},ff21:function(e,t,n){"use strict";n("e7b1")}})}));
17
+ var r=n("1fb5"),o=n("9152"),i=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?v(e,t,n,r):"string"===typeof t?h(e,t,n):y(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,n,r){return f(t),t<=0?l(e,t):void 0!==n?"string"===typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}function p(e,t){if(f(t),e=l(e,t<0?0:0|g(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(t,n);e=l(e,r);var o=e.write(t,n);return o!==r&&(e=e.slice(0,o)),e}function m(e,t){var n=t.length<0?0:0|g(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function v(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=m(e,t),e}function y(e,t){if(c.isBuffer(t)){var n=0|g(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):m(e,t);if("Buffer"===t.type&&i(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(r)return Q(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function S(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function C(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function E(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function O(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function T(e,t,n,r){return ee(X(t),e,n,r)}function A(e,t,n,r){return T(e,t,n,r)}function x(e,t,n,r){return ee(J(t),e,n,r)}function N(e,t,n,r){return ee(Z(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function j(e,t,n){n=Math.min(e.length,n);var r=[],o=t;while(o<n){var i,a,s,l,c=e[o],u=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:i=e[o+1],128===(192&i)&&(l=(31&c)<<6|63&i,l>127&&(u=l));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return R(r)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return d(null,e,t,n)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?j(this,0,e):_.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),l=this.slice(r,o),u=e.slice(t,n),f=0;f<s;++f)if(l[f]!==u[f]){i=l[f],a=u[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function R(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function B(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=W(e[i]);return o}function M(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function U(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function V(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function q(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function K(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,i){return i||K(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,i){return i||K(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var r=this[e+--t],o=1;while(t>0&&(o*=256))r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var r=this[e],o=1,i=0;while(++i<t&&(o*=256))r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var r=t,o=1,i=this[e+--r];while(r>0&&(o*=256))i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a<n&&(i*=256))this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var i=n-1,a=1;this[t+i]=255&e;while(--i>=0&&(a*=256))this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;this[t]=255&e;while(++i<n&&(a*=256))e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:Q(new c(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function z(e){if(e=Y(e).replace(G,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function Y(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function Q(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,r,o,i=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r)}return i}function J(e){return r.toByteArray(z(e))}function ee(e,t,n,r){for(var o=0;o<r;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,n("c8ba"))},b71b:function(e,t,n){var r=n("ebeb");n("bb01"),e.exports=r.log=r.log||{},r.log.levels=["none","error","warning","info","debug","verbose","max"];var o={},i=[],a=null;r.log.LEVEL_LOCKED=2,r.log.NO_LEVEL_CHECK=4,r.log.INTERPOLATE=8;for(var s=0;s<r.log.levels.length;++s){var l=r.log.levels[s];o[l]={index:s,name:l.toUpperCase()}}r.log.logMessage=function(e){for(var t=o[e.level].index,n=0;n<i.length;++n){var a=i[n];if(a.flags&r.log.NO_LEVEL_CHECK)a.f(e);else{var s=o[a.level].index;t<=s&&a.f(a,e)}}},r.log.prepareStandard=function(e){"standard"in e||(e.standard=o[e.level].name+" ["+e.category+"] "+e.message)},r.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]||!1),e.full=r.util.format.apply(this,t)}},r.log.prepareStandardFull=function(e){"standardFull"in e||(r.log.prepareStandard(e),e.standardFull=e.standard)};var c=["error","warning","info","debug","verbose"];for(s=0;s<c.length;++s)(function(e){r.log[e]=function(t,n){var o=Array.prototype.slice.call(arguments).slice(2),i={timestamp:new Date,level:e,category:t,message:n,arguments:o};r.log.logMessage(i)}})(c[s]);if(r.log.makeLogger=function(e){var t={flags:0,f:e};return r.log.setLevel(t,"none"),t},r.log.setLevel=function(e,t){var n=!1;if(e&&!(e.flags&r.log.LEVEL_LOCKED))for(var o=0;o<r.log.levels.length;++o){var i=r.log.levels[o];if(t==i){e.level=t,n=!0;break}}return n},r.log.lock=function(e,t){"undefined"===typeof t||t?e.flags|=r.log.LEVEL_LOCKED:e.flags&=~r.log.LEVEL_LOCKED},r.log.addLogger=function(e){i.push(e)},"undefined"!==typeof console&&"log"in console){var u;if(console.error&&console.warn&&console.info&&console.debug){var f={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},d=function(e,t){r.log.prepareStandard(t);var n=f[t.level],o=[t.standard];o=o.concat(t["arguments"].slice()),n.apply(console,o)};u=r.log.makeLogger(d)}else{d=function(e,t){r.log.prepareStandardFull(t),console.log(t.standardFull)};u=r.log.makeLogger(d)}r.log.setLevel(u,"debug"),r.log.addLogger(u),a=u}else console={log:function(){}};if(null!==a){var p=r.util.getQueryVariables();if("console.level"in p&&r.log.setLevel(a,p["console.level"].slice(-1)[0]),"console.lock"in p){var h=p["console.lock"].slice(-1)[0];"true"==h&&r.log.lock(a)}}r.log.consoleLogger=a},b7f9:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){return l(e)||s(e)||a(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return f(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),p=c.prototype=s.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,f(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,f(p,"constructor",c),f(c,"constructor",l),l.displayName="GeneratorFunction",f(c,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,r,(function(){return this})),f(p,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=g(e,"string");return"symbol"==r(t)?t:t+""}function g(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}t["a"]={model:{prop:"values",event:"change"},props:{action:{type:Object},columns:{type:Array},values:{type:Object},mode:{type:String,enum:["fully","normal","simple"],default:"normal"},layout:{type:String,enum:["horizontal","vertical","inline"],default:"horizontal"},params:{type:[Object],default:function(){return{}}},submited:{type:Number},continueText:{type:String},submitText:{type:String},resetText:{type:String},footer:{type:String},onContinue:{type:Function},onSubmit:{type:Function},onReset:{type:Function}},data:function(){return{actionModel:m({},this.values)||{},hasFile:!1}},created:function(){var e=this;if(this.defaultValues){var t=function(t){var n,r=e.columns.find((function(e){return e.name===t}))||void 0,o=(null===r||void 0===r?void 0:r.required)||!1;if(null!==r&&void 0!==r&&null!==(n=r.configs)&&void 0!==n&&n.length){var i=Object.fromEntries(r.configs.map((function(e){return[e.key,e.value]})));o=i&&i.required?"1"===i.required:null===r||void 0===r?void 0:r.required}(void 0===e.actionModel[t]||""===e.actionModel[t]&&o)&&e.$set(e.actionModel,t,e.defaultValues[t])};for(var n in this.defaultValues)t(n)}},computed:{defaultValues:function(){var e=this.columns?this.columns.filter((function(e){return!!e.value})).map((function(e){return[e.name,e.value]})):[];return e.length?Object.fromEntries(e):null},rules:function(){var e={};return this.columns.forEach((function(t){var n,r=["date","time","month","week","range","tree-suggest"].includes(t.control);(e[t.name]=[],t.required&&e[t.name].push({required:!0,message:"".concat(t.alias,"不能为空"),trigger:r?"change":"blur"}),t.maxLength&&t.minLength)&&(n=t.maxLength&&t.minLength?"长度在 ".concat(t.minLength," 到 ").concat(t.maxLength," 个字符"):t.maxLength?"长度不多于 ".concat(t.maxLength," 个字符"):"长度不少于 ".concat(t.minLength," 个字符"),e[t.name].push({min:t.minLength,max:t.maxLength,message:n,trigger:"blur"}))})),e},configs:function(){var e;return Object.fromEntries(((null===(e=this.action)||void 0===e?void 0:e.configs)||[]).map((function(e){return[e.key,e.value]})))}},provide:function(){return{form:this}},inject:["view"],methods:{setModel:function(e,t){this.actionModel[e]?this.actionModel[e]=t:this.$set(this.actionModel,e,t)},handleItemChange:function(e,t){var n=t.name;this.setModel(n,e)},handleItemFill:function(e){var t=this;e.forEach((function(e){return t.setModel(e.name,e.value)}))},handleSubmit:function(){var e=this;return p(u().m((function t(){return u().w((function(t){while(1)switch(t.n){case 0:if(!e.$refs.form){t.n=1;break}return t.n=1,e.$refs.form.validate();case 1:e.handleCommit();case 2:return t.a(2)}}),t)})))()},handleCommit:function(){var e=this;return p(u().m((function t(){var n,r,i,a,s;return u().w((function(t){while(1)switch(t.n){case 0:Array.isArray(e.actionModel)?n=e.actionModel:(r=e.params,i=void 0===r?{}:r,a=i.valuesName,s=a?[].concat(o(e.columns),[{name:a}]):e.columns,n=Object.fromEntries(s.map((function(t){var n=void 0===e.actionModel[t.name]?null:e.actionModel[t.name];return[t.name,n]})))),e.$emit("commit",n);case 1:return t.a(2)}}),t)})))()}},watch:{submited:function(){this.handleSubmit()},actionModel:{handler:function(e){this.$emit("change",e)},deep:!0},values:{handler:function(e){for(var t in e)this.setModel(t,e[t])},deep:!0}}}},b9aa:function(e,t,n){"use strict";n("0365")},ba06:function(e,t,n){},ba95:function(e,t,n){var r=n("ebeb");if(n("d6a3"),n("ea7c"),n("8d14"),n("4a75"),n("f564"),n("5fb7"),n("bb01"),"undefined"===typeof o)var o=r.jsbn.BigInteger;var i=r.util.isNodejs?n(0):null,a=r.asn1,s=r.util;r.pki=r.pki||{},e.exports=r.pki.rsa=r.rsa=r.rsa||{};var l=r.pki,c=[6,4,2,4,2,4,6,2],u={name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},f={name:"RSAPrivateKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},d={name:"RSAPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},p=r.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},h=function(e){var t;if(!(e.algorithm in l.oids)){var n=new Error("Unknown message digest algorithm.");throw n.algorithm=e.algorithm,n}t=l.oids[e.algorithm];var r=a.oidToDer(t).getBytes(),o=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]),i=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[]);i.value.push(a.create(a.Class.UNIVERSAL,a.Type.OID,!1,r)),i.value.push(a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,""));var s=a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,e.digest().getBytes());return o.value.push(i),o.value.push(s),a.toDer(o).getBytes()},m=function(e,t,n){if(n)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);var i;t.dP||(t.dP=t.d.mod(t.p.subtract(o.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(o.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));do{i=new o(r.util.bytesToHex(r.random.getBytes(t.n.bitLength()/8)),16)}while(i.compareTo(t.n)>=0||!i.gcd(t.n).equals(o.ONE));e=e.multiply(i.modPow(t.e,t.n)).mod(t.n);var a=e.mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);while(a.compareTo(s)<0)a=a.add(t.p);var l=a.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return l=l.multiply(i.modInverse(t.n)).mod(t.n),l};function v(e,t,n){var o=r.util.createBuffer(),i=Math.ceil(t.n.bitLength()/8);if(e.length>i-11){var a=new Error("Message is too long for PKCS#1 v1.5 padding.");throw a.length=e.length,a.max=i-11,a}o.putByte(0),o.putByte(n);var s,l=i-3-e.length;if(0===n||1===n){s=0===n?0:255;for(var c=0;c<l;++c)o.putByte(s)}else while(l>0){var u=0,f=r.random.getBytes(l);for(c=0;c<l;++c)s=f.charCodeAt(c),0===s?++u:o.putByte(s);l=u}return o.putByte(0),o.putBytes(e),o}function y(e,t,n,o){var i=Math.ceil(t.n.bitLength()/8),a=r.util.createBuffer(e),s=a.getByte(),l=a.getByte();if(0!==s||n&&0!==l&&1!==l||!n&&2!=l||n&&0===l&&"undefined"===typeof o)throw new Error("Encryption block is invalid.");var c=0;if(0===l){c=i-3-o;for(var u=0;u<c;++u)if(0!==a.getByte())throw new Error("Encryption block is invalid.")}else if(1===l){c=0;while(a.length()>1){if(255!==a.getByte()){--a.read;break}++c}}else if(2===l){c=0;while(a.length()>1){if(0===a.getByte()){--a.read;break}++c}}var f=a.getByte();if(0!==f||c!==i-3-a.length())throw new Error("Encryption block is invalid.");return a.getBytes()}function g(e,t,n){"function"===typeof t&&(n=t,t={}),t=t||{};var i={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};function a(){s(e.pBits,(function(t,r){return t?n(t):(e.p=r,null!==e.q?c(t,e.q):void s(e.qBits,c))}))}function s(e,t){r.prime.generateProbablePrime(e,i,t)}function c(t,r){if(t)return n(t);if(e.q=r,e.p.compareTo(e.q)<0){var i=e.p;e.p=e.q,e.q=i}if(0!==e.p.subtract(o.ONE).gcd(e.e).compareTo(o.ONE))return e.p=null,void a();if(0!==e.q.subtract(o.ONE).gcd(e.e).compareTo(o.ONE))return e.q=null,void s(e.qBits,c);if(e.p1=e.p.subtract(o.ONE),e.q1=e.q.subtract(o.ONE),e.phi=e.p1.multiply(e.q1),0!==e.phi.gcd(e.e).compareTo(o.ONE))return e.p=e.q=null,void a();if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits)return e.q=null,void s(e.qBits,c);var u=e.e.modInverse(e.phi);e.keys={privateKey:l.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:l.rsa.setPublicKey(e.n,e.e)},n(null,e.keys)}"prng"in t&&(i.prng=t.prng),a()}function b(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var n=r.util.hexToBytes(t);return n.length>1&&(0===n.charCodeAt(0)&&0===(128&n.charCodeAt(1))||255===n.charCodeAt(0)&&128===(128&n.charCodeAt(1)))?n.substr(1):n}function w(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function _(e){return r.util.isNodejs&&"function"===typeof i[e]}function S(e){return"undefined"!==typeof s.globalScope&&"object"===typeof s.globalScope.crypto&&"object"===typeof s.globalScope.crypto.subtle&&"function"===typeof s.globalScope.crypto.subtle[e]}function C(e){return"undefined"!==typeof s.globalScope&&"object"===typeof s.globalScope.msCrypto&&"object"===typeof s.globalScope.msCrypto.subtle&&"function"===typeof s.globalScope.msCrypto.subtle[e]}function k(e){for(var t=r.util.hexToBytes(e.toString(16)),n=new Uint8Array(t.length),o=0;o<t.length;++o)n[o]=t.charCodeAt(o);return n}l.rsa.encrypt=function(e,t,n){var i,a=n,s=Math.ceil(t.n.bitLength()/8);!1!==n&&!0!==n?(a=2===n,i=v(e,t,n)):(i=r.util.createBuffer(),i.putBytes(e));var l=new o(i.toHex(),16),c=m(l,t,a),u=c.toString(16),f=r.util.createBuffer(),d=s-Math.ceil(u.length/2);while(d>0)f.putByte(0),--d;return f.putBytes(r.util.hexToBytes(u)),f.getBytes()},l.rsa.decrypt=function(e,t,n,i){var a=Math.ceil(t.n.bitLength()/8);if(e.length!==a){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=a,s}var l=new o(r.util.createBuffer(e).toHex(),16);if(l.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");var c=m(l,t,n),u=c.toString(16),f=r.util.createBuffer(),d=a-Math.ceil(u.length/2);while(d>0)f.putByte(0),--d;return f.putBytes(r.util.hexToBytes(u)),!1!==i?y(f.getBytes(),t,n):f.getBytes()},l.rsa.createKeyPairGenerationState=function(e,t,n){"string"===typeof e&&(e=parseInt(e,10)),e=e||2048,n=n||{};var i,a=n.prng||r.random,s={nextBytes:function(e){for(var t=a.getBytesSync(e.length),n=0;n<e.length;++n)e[n]=t.charCodeAt(n)}},l=n.algorithm||"PRIMEINC";if("PRIMEINC"!==l)throw new Error("Invalid key generation algorithm: "+l);return i={algorithm:l,state:0,bits:e,rng:s,eInt:t||65537,e:new o(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},i.e.fromInt(i.eInt),i},l.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var n=new o(null);n.fromInt(30);var r,i=0,a=function(e,t){return e|t},s=+new Date,u=0;while(null===e.keys&&(t<=0||u<t)){if(0===e.state){var f=null===e.p?e.pBits:e.qBits,d=f-1;0===e.pqState?(e.num=new o(f,e.rng),e.num.testBit(d)||e.num.bitwiseTo(o.ONE.shiftLeft(d),a,e.num),e.num.dAddOffset(31-e.num.mod(n).byteValue(),0),i=0,++e.pqState):1===e.pqState?e.num.bitLength()>f?e.pqState=0:e.num.isProbablePrime(w(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(c[i++%8],0):2===e.pqState?e.pqState=0===e.num.subtract(o.ONE).gcd(e.e).compareTo(o.ONE)?3:0:3===e.pqState&&(e.pqState=0,null===e.p?e.p=e.num:e.q=e.num,null!==e.p&&null!==e.q&&++e.state,e.num=null)}else if(1===e.state)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(2===e.state)e.p1=e.p.subtract(o.ONE),e.q1=e.q.subtract(o.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(3===e.state)0===e.phi.gcd(e.e).compareTo(o.ONE)?++e.state:(e.p=null,e.q=null,e.state=0);else if(4===e.state)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(5===e.state){var p=e.e.modInverse(e.phi);e.keys={privateKey:l.rsa.setPrivateKey(e.n,e.e,p,e.p,e.q,p.mod(e.p1),p.mod(e.q1),e.q.modInverse(e.p)),publicKey:l.rsa.setPublicKey(e.n,e.e)}}r=+new Date,u+=r-s,s=r}return null!==e.keys},l.rsa.generateKeyPair=function(e,t,n,o){if(1===arguments.length?"object"===typeof e?(n=e,e=void 0):"function"===typeof e&&(o=e,e=void 0):2===arguments.length?"number"===typeof e?"function"===typeof t?(o=t,t=void 0):"number"!==typeof t&&(n=t,t=void 0):(n=e,o=t,e=void 0,t=void 0):3===arguments.length&&("number"===typeof t?"function"===typeof n&&(o=n,n=void 0):(o=n,n=t,t=void 0)),n=n||{},void 0===e&&(e=n.bits||2048),void 0===t&&(t=n.e||65537),!r.options.usePureJavaScript&&!n.prng&&e>=256&&e<=16384&&(65537===t||3===t))if(o){if(_("generateKeyPair"))return i.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},(function(e,t,n){if(e)return o(e);o(null,{privateKey:l.privateKeyFromPem(n),publicKey:l.publicKeyFromPem(t)})}));if(S("generateKey")&&S("exportKey"))return s.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:k(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then((function(e){return s.globalScope.crypto.subtle.exportKey("pkcs8",e.privateKey)})).then(void 0,(function(e){o(e)})).then((function(e){if(e){var t=l.privateKeyFromAsn1(a.fromDer(r.util.createBuffer(e)));o(null,{privateKey:t,publicKey:l.setRsaPublicKey(t.n,t.e)})}}));if(C("generateKey")&&C("exportKey")){var c=s.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:k(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);return c.oncomplete=function(e){var t=e.target.result,n=s.globalScope.msCrypto.subtle.exportKey("pkcs8",t.privateKey);n.oncomplete=function(e){var t=e.target.result,n=l.privateKeyFromAsn1(a.fromDer(r.util.createBuffer(t)));o(null,{privateKey:n,publicKey:l.setRsaPublicKey(n.n,n.e)})},n.onerror=function(e){o(e)}},void(c.onerror=function(e){o(e)})}}else if(_("generateKeyPairSync")){var u=i.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:l.privateKeyFromPem(u.privateKey),publicKey:l.publicKeyFromPem(u.publicKey)}}var f=l.rsa.createKeyPairGenerationState(e,t,n);if(!o)return l.rsa.stepKeyPairGenerationState(f,0),f.keys;g(f,n,o)},l.setRsaPublicKey=l.rsa.setPublicKey=function(e,t){var n={n:e,e:t,encrypt:function(e,t,o){if("string"===typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===t)t={encode:function(e,t,n){return v(e,t,2).getBytes()}};else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={encode:function(e,t){return r.pkcs1.encode_rsa_oaep(t,e,o)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(t))t={encode:function(e){return e}};else if("string"===typeof t)throw new Error('Unsupported encryption scheme: "'+t+'".');var i=t.encode(e,n,!0);return l.rsa.encrypt(i,n,!0)},verify:function(e,t,r){"string"===typeof r?r=r.toUpperCase():void 0===r&&(r="RSASSA-PKCS1-V1_5"),"RSASSA-PKCS1-V1_5"===r?r={verify:function(e,t){t=y(t,n,!0);var r=a.fromDer(t);return e===r.value[1].value}}:"NONE"!==r&&"NULL"!==r&&null!==r||(r={verify:function(e,t){return t=y(t,n,!0),e===t}});var o=l.rsa.decrypt(t,n,!0,!1);return r.verify(e,o,n.n.bitLength())}};return n},l.setRsaPrivateKey=l.rsa.setPrivateKey=function(e,t,n,o,i,a,s,c){var u={n:e,e:t,d:n,p:o,q:i,dP:a,dQ:s,qInv:c,decrypt:function(e,t,n){"string"===typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5");var o=l.rsa.decrypt(e,u,!1,!1);if("RSAES-PKCS1-V1_5"===t)t={decode:y};else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={decode:function(e,t){return r.pkcs1.decode_rsa_oaep(t,e,n)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(t))throw new Error('Unsupported encryption scheme: "'+t+'".');t={decode:function(e){return e}}}return t.decode(o,u,!1)},sign:function(e,t){var n=!1;"string"===typeof t&&(t=t.toUpperCase()),void 0===t||"RSASSA-PKCS1-V1_5"===t?(t={encode:h},n=1):"NONE"!==t&&"NULL"!==t&&null!==t||(t={encode:function(){return e}},n=1);var r=t.encode(e,u.n.bitLength());return l.rsa.encrypt(r,u,n)}};return u},l.wrapRsaPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(l.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,a.toDer(e).getBytes())])},l.privateKeyFromAsn1=function(e){var t,n,i,s,c,d,p,h,m={},v=[];if(a.validate(e,u,m,v)&&(e=a.fromDer(r.util.createBuffer(m.privateKey))),m={},v=[],!a.validate(e,f,m,v)){var y=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw y.errors=v,y}return t=r.util.createBuffer(m.privateKeyModulus).toHex(),n=r.util.createBuffer(m.privateKeyPublicExponent).toHex(),i=r.util.createBuffer(m.privateKeyPrivateExponent).toHex(),s=r.util.createBuffer(m.privateKeyPrime1).toHex(),c=r.util.createBuffer(m.privateKeyPrime2).toHex(),d=r.util.createBuffer(m.privateKeyExponent1).toHex(),p=r.util.createBuffer(m.privateKeyExponent2).toHex(),h=r.util.createBuffer(m.privateKeyCoefficient).toHex(),l.setRsaPrivateKey(new o(t,16),new o(n,16),new o(i,16),new o(s,16),new o(c,16),new o(d,16),new o(p,16),new o(h,16))},l.privateKeyToAsn1=l.privateKeyToRSAPrivateKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,a.integerToDer(0).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.e)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.d)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.p)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.q)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.dP)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.dQ)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.qInv))])},l.publicKeyFromAsn1=function(e){var t={},n=[];if(a.validate(e,p,t,n)){var i=a.derToOid(t.publicKeyOid);if(i!==l.oids.rsaEncryption){var s=new Error("Cannot read public key. Unknown OID.");throw s.oid=i,s}e=t.rsaPublicKey}if(n=[],!a.validate(e,d,t,n)){s=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw s.errors=n,s}var c=r.util.createBuffer(t.publicKeyModulus).toHex(),u=r.util.createBuffer(t.publicKeyExponent).toHex();return l.setRsaPublicKey(new o(c,16),new o(u,16))},l.publicKeyToAsn1=l.publicKeyToSubjectPublicKeyInfo=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(l.oids.rsaEncryption).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]),a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,!1,[l.publicKeyToRSAPublicKey(e)])])},l.publicKeyToRSAPublicKey=function(e){return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.n)),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,b(e.e))])}},bb01:function(e,t,n){(function(t,r,o){var i=n("ebeb"),a=n("aeca"),s=e.exports=i.util=i.util||{};function l(e){if(8!==e&&16!==e&&24!==e&&32!==e)throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}function c(e){if(this.data="",this.read=0,"string"===typeof e)this.data=e;else if(s.isArrayBuffer(e)||s.isArrayBufferView(e))if("undefined"!==typeof o&&e instanceof o)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch(r){for(var n=0;n<t.length;++n)this.putByte(t[n])}}else(e instanceof c||"object"===typeof e&&"string"===typeof e.data&&"number"===typeof e.read)&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}(function(){if("undefined"!==typeof t&&t.nextTick&&!t.browser)return s.nextTick=t.nextTick,void("function"===typeof setImmediate?s.setImmediate=setImmediate:s.setImmediate=s.nextTick);if("function"===typeof setImmediate)return s.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(s.nextTick=function(e){return setImmediate(e)});if(s.setImmediate=function(e){setTimeout(e,0)},"undefined"!==typeof window&&"function"===typeof window.postMessage){var e="forge.setImmediate",n=[];function r(t){if(t.source===window&&t.data===e){t.stopPropagation();var r=n.slice();n.length=0,r.forEach((function(e){e()}))}}s.setImmediate=function(t){n.push(t),1===n.length&&window.postMessage(e,"*")},window.addEventListener("message",r,!0)}if("undefined"!==typeof MutationObserver){var o=Date.now(),i=!0,a=document.createElement("div");n=[];new MutationObserver((function(){var e=n.slice();n.length=0,e.forEach((function(e){e()}))})).observe(a,{attributes:!0});var l=s.setImmediate;s.setImmediate=function(e){Date.now()-o>15?(o=Date.now(),l(e)):(n.push(e),1===n.length&&a.setAttribute("a",i=!i))}}s.nextTick=s.setImmediate})(),s.isNodejs="undefined"!==typeof t&&t.versions&&t.versions.node,s.globalScope=function(){return s.isNodejs?r:"undefined"===typeof self?window:self}(),s.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s.isArrayBuffer=function(e){return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer},s.isArrayBufferView=function(e){return e&&s.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},s.ByteBuffer=c,s.ByteStringBuffer=c;var u=4096;function f(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var n=s.isArrayBuffer(e),r=s.isArrayBufferView(e);if(n||r)return this.data=n?new DataView(e):new DataView(e.buffer,e.byteOffset,e.byteLength),void(this.write="writeOffset"in t?t.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!==e&&void 0!==e&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}s.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>u&&(this.data.substr(0,1),this._constructedStringLength=0)},s.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},s.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},s.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},s.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);var n=this.data;while(t>0)1&t&&(n+=e),t>>>=1,t>0&&(e+=e);return this.data=n,this._optimizeConstructedString(t),this},s.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},s.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(s.encodeUtf8(e))},s.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},s.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},s.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},s.ByteStringBuffer.prototype.putInt=function(e,t){l(t);var n="";do{t-=8,n+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(n)},s.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},s.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},s.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},s.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},s.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},s.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},s.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},s.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},s.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},s.ByteStringBuffer.prototype.getInt=function(e){l(e);var t=0;do{t=(t<<8)+this.data.charCodeAt(this.read++),e-=8}while(e>0);return t},s.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<<e-2;return t>=n&&(t-=n<<1),t},s.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.ByteStringBuffer.prototype.bytes=function(e){return"undefined"===typeof e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},s.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},s.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},s.ByteStringBuffer.prototype.copy=function(){var e=s.createBuffer(this.data);return e.read=this.read,e},s.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},s.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},s.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},s.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var n=this.data.charCodeAt(t);n<16&&(e+="0"),e+=n.toString(16)}return e},s.ByteStringBuffer.prototype.toString=function(){return s.decodeUtf8(this.bytes())},s.DataBuffer=f,s.DataBuffer.prototype.length=function(){return this.write-this.read},s.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},s.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var n=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),r=new Uint8Array(this.length()+t);return r.set(n),this.data=new DataView(r.buffer),this},s.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},s.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var n=0;n<t;++n)this.data.setUint8(e);return this},s.DataBuffer.prototype.putBytes=function(e,t){if(s.isArrayBufferView(e)){var n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r=n.byteLength-n.byteOffset;this.accommodate(r);var o=new Uint8Array(this.data.buffer,this.write);return o.set(n),this.write+=r,this}if(s.isArrayBuffer(e)){n=new Uint8Array(e);this.accommodate(n.byteLength);o=new Uint8Array(this.data.buffer);return o.set(n,this.write),this.write+=n.byteLength,this}if(e instanceof s.DataBuffer||"object"===typeof e&&"number"===typeof e.read&&"number"===typeof e.write&&s.isArrayBufferView(e.data)){n=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(n.byteLength);o=new Uint8Array(e.data.byteLength,this.write);return o.set(n),this.write+=n.byteLength,this}if(e instanceof s.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary","string"===typeof e){var i;if("hex"===t)return this.accommodate(Math.ceil(e.length/2)),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.hex.decode(e,i,this.write),this;if("base64"===t)return this.accommodate(3*Math.ceil(e.length/4)),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.base64.decode(e,i,this.write),this;if("utf8"===t&&(e=s.encodeUtf8(e),t="binary"),"binary"===t||"raw"===t)return this.accommodate(e.length),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.raw.decode(i),this;if("utf16"===t)return this.accommodate(2*e.length),i=new Uint16Array(this.data.buffer,this.write),this.write+=s.text.utf16.encode(i),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},s.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},s.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},s.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},s.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},s.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},s.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},s.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},s.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},s.DataBuffer.prototype.putInt=function(e,t){l(t),this.accommodate(t/8);do{t-=8,this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this},s.DataBuffer.prototype.putSignedInt=function(e,t){return l(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},s.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},s.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},s.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},s.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},s.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},s.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},s.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},s.DataBuffer.prototype.getInt=function(e){l(e);var t=0;do{t=(t<<8)+this.data.getInt8(this.read++),e-=8}while(e>0);return t},s.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<<e-2;return t>=n&&(t-=n<<1),t},s.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.DataBuffer.prototype.bytes=function(e){return"undefined"===typeof e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},s.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},s.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},s.DataBuffer.prototype.copy=function(){return new s.DataBuffer(this)},s.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},s.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},s.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},s.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var n=this.data.getUint8(t);n<16&&(e+="0"),e+=n.toString(16)}return e},s.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8","binary"===e||"raw"===e)return s.binary.raw.encode(t);if("hex"===e)return s.binary.hex.encode(t);if("base64"===e)return s.binary.base64.encode(t);if("utf8"===e)return s.text.utf8.decode(t);if("utf16"===e)return s.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},s.createBuffer=function(e,t){return t=t||"raw",void 0!==e&&"utf8"===t&&(e=s.encodeUtf8(e)),new s.ByteBuffer(e)},s.fillString=function(e,t){var n="";while(t>0)1&t&&(n+=e),t>>>=1,t>0&&(e+=e);return n},s.xorBytes=function(e,t,n){for(var r="",o="",i="",a=0,s=0;n>0;--n,++a)o=e.charCodeAt(a)^t.charCodeAt(a),s>=10&&(r+=i,i="",s=0),i+=String.fromCharCode(o),++s;return r+=i,r},s.hexToBytes=function(e){var t="",n=0;for(!0&e.length&&(n=1,t+=String.fromCharCode(parseInt(e[0],16)));n<e.length;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t},s.bytesToHex=function(e){return s.createBuffer(e).toHex()},s.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)};var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],h="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";s.encode64=function(e,t){var n,r,o,i="",a="",s=0;while(s<e.length)n=e.charCodeAt(s++),r=e.charCodeAt(s++),o=e.charCodeAt(s++),i+=d.charAt(n>>2),i+=d.charAt((3&n)<<4|r>>4),isNaN(r)?i+="==":(i+=d.charAt((15&r)<<2|o>>6),i+=isNaN(o)?"=":d.charAt(63&o)),t&&i.length>t&&(a+=i.substr(0,t)+"\r\n",i=i.substr(t));return a+=i,a},s.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var t,n,r,o,i="",a=0;while(a<e.length)t=p[e.charCodeAt(a++)-43],n=p[e.charCodeAt(a++)-43],r=p[e.charCodeAt(a++)-43],o=p[e.charCodeAt(a++)-43],i+=String.fromCharCode(t<<2|n>>4),64!==r&&(i+=String.fromCharCode((15&n)<<4|r>>2),64!==o&&(i+=String.fromCharCode((3&r)<<6|o)));return i},s.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},s.decodeUtf8=function(e){return decodeURIComponent(escape(e))},s.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:a.encode,decode:a.decode}},s.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},s.binary.raw.decode=function(e,t,n){var r=t;r||(r=new Uint8Array(e.length)),n=n||0;for(var o=n,i=0;i<e.length;++i)r[o++]=e.charCodeAt(i);return t?o-n:r},s.binary.hex.encode=s.bytesToHex,s.binary.hex.decode=function(e,t,n){var r=t;r||(r=new Uint8Array(Math.ceil(e.length/2))),n=n||0;var o=0,i=n;for(1&e.length&&(o=1,r[i++]=parseInt(e[0],16));o<e.length;o+=2)r[i++]=parseInt(e.substr(o,2),16);return t?i-n:r},s.binary.base64.encode=function(e,t){var n,r,o,i="",a="",s=0;while(s<e.byteLength)n=e[s++],r=e[s++],o=e[s++],i+=d.charAt(n>>2),i+=d.charAt((3&n)<<4|r>>4),isNaN(r)?i+="==":(i+=d.charAt((15&r)<<2|o>>6),i+=isNaN(o)?"=":d.charAt(63&o)),t&&i.length>t&&(a+=i.substr(0,t)+"\r\n",i=i.substr(t));return a+=i,a},s.binary.base64.decode=function(e,t,n){var r,o,i,a,s=t;s||(s=new Uint8Array(3*Math.ceil(e.length/4))),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=n||0;var l=0,c=n;while(l<e.length)r=p[e.charCodeAt(l++)-43],o=p[e.charCodeAt(l++)-43],i=p[e.charCodeAt(l++)-43],a=p[e.charCodeAt(l++)-43],s[c++]=r<<2|o>>4,64!==i&&(s[c++]=(15&o)<<4|i>>2,64!==a&&(s[c++]=(3&i)<<6|a));return t?c-n:s.subarray(0,c)},s.binary.base58.encode=function(e,t){return s.binary.baseN.encode(e,h,t)},s.binary.base58.decode=function(e,t){return s.binary.baseN.decode(e,h,t)},s.text={utf8:{},utf16:{}},s.text.utf8.encode=function(e,t,n){e=s.encodeUtf8(e);var r=t;r||(r=new Uint8Array(e.length)),n=n||0;for(var o=n,i=0;i<e.length;++i)r[o++]=e.charCodeAt(i);return t?o-n:r},s.text.utf8.decode=function(e){return s.decodeUtf8(String.fromCharCode.apply(null,e))},s.text.utf16.encode=function(e,t,n){var r=t;r||(r=new Uint8Array(2*e.length));var o=new Uint16Array(r.buffer);n=n||0;for(var i=n,a=n,s=0;s<e.length;++s)o[a++]=e.charCodeAt(s),i+=2;return t?i-n:r},s.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},s.deflate=function(e,t,n){if(t=s.decode64(e.deflate(s.encode64(t)).rval),n){var r=2,o=t.charCodeAt(1);32&o&&(r=6),t=t.substring(r,t.length-4)}return t},s.inflate=function(e,t,n){var r=e.inflate(s.encode64(t)).rval;return null===r?null:s.decode64(r)};var m=function(e,t,n){if(!e)throw new Error("WebStorage not available.");var r;if(null===n?r=e.removeItem(t):(n=s.encode64(JSON.stringify(n)),r=e.setItem(t,n)),"undefined"!==typeof r&&!0!==r.rval){var o=new Error(r.error.message);throw o.id=r.error.id,o.name=r.error.name,o}},v=function(e,t){if(!e)throw new Error("WebStorage not available.");var n=e.getItem(t);if(e.init)if(null===n.rval){if(n.error){var r=new Error(n.error.message);throw r.id=n.error.id,r.name=n.error.name,r}n=null}else n=n.rval;return null!==n&&(n=JSON.parse(s.decode64(n))),n},y=function(e,t,n,r){var o=v(e,t);null===o&&(o={}),o[n]=r,m(e,t,o)},g=function(e,t,n){var r=v(e,t);return null!==r&&(r=n in r?r[n]:null),r},b=function(e,t,n){var r=v(e,t);if(null!==r&&n in r){delete r[n];var o=!0;for(var i in r){o=!1;break}o&&(r=null),m(e,t,r)}},w=function(e,t){m(e,t,null)},_=function(e,t,n){var r,o=null;"undefined"===typeof n&&(n=["web","flash"]);var i=!1,a=null;for(var s in n){r=n[s];try{if("flash"===r||"both"===r){if(null===t[0])throw new Error("Flash local storage not available.");o=e.apply(this,t),i="flash"===r}"web"!==r&&"both"!==r||(t[0]=localStorage,o=e.apply(this,t),i=!0)}catch(l){a=l}if(i)break}if(!i)throw a;return o};s.setItem=function(e,t,n,r,o){_(y,arguments,o)},s.getItem=function(e,t,n,r){return _(g,arguments,r)},s.removeItem=function(e,t,n,r){_(b,arguments,r)},s.clearItems=function(e,t,n){_(w,arguments,n)},s.parseUrl=function(e){var t=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;t.lastIndex=0;var n=t.exec(e),r=null===n?null:{full:e,scheme:n[1],host:n[2],port:n[3],path:n[4]};return r&&(r.fullHost=r.host,r.port?(80!==r.port&&"http"===r.scheme||443!==r.port&&"https"===r.scheme)&&(r.fullHost+=":"+r.port):"http"===r.scheme?r.port=80:"https"===r.scheme&&(r.port=443),r.full=r.scheme+"://"+r.fullHost),r};var S=null;s.getQueryVariables=function(e){var t,n=function(e){for(var t={},n=e.split("&"),r=0;r<n.length;r++){var o,i,a=n[r].indexOf("=");a>0?(o=n[r].substring(0,a),i=n[r].substring(a+1)):(o=n[r],i=null),o in t||(t[o]=[]),o in Object.prototype||null===i||t[o].push(unescape(i))}return t};return"undefined"===typeof e?(null===S&&(S="undefined"!==typeof window&&window.location&&window.location.search?n(window.location.search.substring(1)):{}),t=S):t=n(e),t},s.parseFragment=function(e){var t=e,n="",r=e.indexOf("?");r>0&&(t=e.substring(0,r),n=e.substring(r+1));var o=t.split("/");o.length>0&&""===o[0]&&o.shift();var i=""===n?{}:s.getQueryVariables(n);return{pathString:t,queryString:n,path:o,query:i}},s.makeRequest=function(e){var t=s.parseFragment(e),n={path:t.pathString,query:t.queryString,getPath:function(e){return"undefined"===typeof e?t.path:t.path[e]},getQuery:function(e,n){var r;return"undefined"===typeof e?r=t.query:(r=t.query[e],r&&"undefined"!==typeof n&&(r=r[n])),r},getQueryLast:function(e,t){var r,o=n.getQuery(e);return r=o?o[o.length-1]:t,r}};return n},s.makeLink=function(e,t,n){e=jQuery.isArray(e)?e.join("/"):e;var r=jQuery.param(t||{});return n=n||"",e+(r.length>0?"?"+r:"")+(n.length>0?"#"+n:"")},s.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},s.format=function(e){var t,n,r=/%./g,o=0,i=[],a=0;while(t=r.exec(e)){n=e.substring(a,r.lastIndex-2),n.length>0&&i.push(n),a=r.lastIndex;var s=t[0][1];switch(s){case"s":case"o":o<arguments.length?i.push(arguments[1+o++]):i.push("<?>");break;case"%":i.push("%");break;default:i.push("<%"+s+"?>")}}return i.push(e.substring(a)),i.join("")},s.formatNumber=function(e,t,n,r){var o=e,i=isNaN(t=Math.abs(t))?2:t,a=void 0===n?",":n,s=void 0===r?".":r,l=o<0?"-":"",c=parseInt(o=Math.abs(+o||0).toFixed(i),10)+"",u=c.length>3?c.length%3:0;return l+(u?c.substr(0,u)+s:"")+c.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+s)+(i?a+Math.abs(o-c).toFixed(i).slice(2):"")},s.formatSize=function(e){return e=e>=1073741824?s.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?s.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?s.formatNumber(e/1024,0)+" KiB":s.formatNumber(e,0)+" bytes",e},s.bytesFromIP=function(e){return-1!==e.indexOf(".")?s.bytesFromIPv4(e):-1!==e.indexOf(":")?s.bytesFromIPv6(e):null},s.bytesFromIPv4=function(e){if(e=e.split("."),4!==e.length)return null;for(var t=s.createBuffer(),n=0;n<e.length;++n){var r=parseInt(e[n],10);if(isNaN(r))return null;t.putByte(r)}return t.getBytes()},s.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter((function(e){return 0===e.length&&++t,!0}));for(var n=2*(8-e.length+t),r=s.createBuffer(),o=0;o<8;++o)if(e[o]&&0!==e[o].length){var i=s.hexToBytes(e[o]);i.length<2&&r.putByte(0),r.putBytes(i)}else r.fillWithByte(0,n),n=0;return r.getBytes()},s.bytesToIP=function(e){return 4===e.length?s.bytesToIPv4(e):16===e.length?s.bytesToIPv6(e):null},s.bytesToIPv4=function(e){if(4!==e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t.join(".")},s.bytesToIPv6=function(e){if(16!==e.length)return null;for(var t=[],n=[],r=0,o=0;o<e.length;o+=2){var i=s.bytesToHex(e[o]+e[o+1]);while("0"===i[0]&&"0"!==i)i=i.substr(1);if("0"===i){var a=n[n.length-1],l=t.length;a&&l===a.end+1?(a.end=l,a.end-a.start>n[r].end-n[r].start&&(r=n.length-1)):n.push({start:l,end:l})}t.push(i)}if(n.length>0){var c=n[r];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),0===c.start&&t.unshift(""),7===c.end&&t.push(""))}return t.join(":")},s.estimateCores=function(e,t){if("function"===typeof e&&(t=e,e={}),e=e||{},"cores"in s&&!e.update)return t(null,s.cores);if("undefined"!==typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return s.cores=navigator.hardwareConcurrency,t(null,s.cores);if("undefined"===typeof Worker)return s.cores=1,t(null,s.cores);if("undefined"===typeof Blob)return s.cores=2,t(null,s.cores);var n=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",(function(e){var t=Date.now(),n=t+4;while(Date.now()<n);self.postMessage({st:t,et:n})}))}.toString(),")()"],{type:"application/javascript"}));function r(e,a,l){if(0===a){var c=Math.floor(e.reduce((function(e,t){return e+t}),0)/e.length);return s.cores=Math.max(1,c),URL.revokeObjectURL(n),t(null,s.cores)}o(l,(function(t,n){e.push(i(l,n)),r(e,a-1,l)}))}function o(e,t){for(var r=[],o=[],i=0;i<e;++i){var a=new Worker(n);a.addEventListener("message",(function(n){if(o.push(n.data),o.length===e){for(var i=0;i<e;++i)r[i].terminate();t(null,o)}})),r.push(a)}for(i=0;i<e;++i)r[i].postMessage(i)}function i(e,t){for(var n=[],r=0;r<e;++r)for(var o=t[r],i=n[r]=[],a=0;a<e;++a)if(r!==a){var s=t[a];(o.st>s.st&&o.st<s.et||s.st>o.st&&s.st<o.et)&&i.push(a)}return n.reduce((function(e,t){return Math.max(e,t.length)}),0)}r([],5,16)}}).call(this,n("4362"),n("c8ba"),n("b639").Buffer)},bb20:function(e,t,n){},bd28:function(e,t,n){"use strict";n("c0c2")},be91:function(e,t,n){(function(t){var r=n("ebeb");n("bb01");var o=null;!r.util.isNodejs||r.options.usePureJavaScript||t.versions["node-webkit"]||(o=n(0));var i=e.exports=r.prng=r.prng||{};i.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},n=e.md,i=new Array(32),a=0;a<32;++a)i[a]=n.create();function s(e){if(t.pools[0].messageLength>=32)return c(),e();var n=32-t.pools[0].messageLength<<5;t.seedFile(n,(function(n,r){if(n)return e(n);t.collect(r),c(),e()}))}function l(){if(t.pools[0].messageLength>=32)return c();var e=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(e)),c()}function c(){t.reseeds=4294967295===t.reseeds?0:t.reseeds+1;var e=t.plugin.md.create();e.update(t.keyBytes);for(var n=1,r=0;r<32;++r)t.reseeds%n===0&&(e.update(t.pools[r].digest().getBytes()),t.pools[r].start()),n<<=1;t.keyBytes=e.digest().getBytes(),e.start(),e.update(t.keyBytes);var o=e.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(o),t.generated=0}function u(e){var t=null,n=r.util.globalScope,o=n.crypto||n.msCrypto;o&&o.getRandomValues&&(t=function(e){return o.getRandomValues(e)});var i=r.util.createBuffer();if(t)while(i.length()<e){var a=Math.max(1,Math.min(e-i.length(),65536)/4),s=new Uint32Array(Math.floor(a));try{t(s);for(var l=0;l<s.length;++l)i.putInt32(s[l])}catch(p){if(!("undefined"!==typeof QuotaExceededError&&p instanceof QuotaExceededError))throw p}}if(i.length()<e){var c,u,f,d=Math.floor(65536*Math.random());while(i.length()<e){u=16807*(65535&d),c=16807*(d>>16),u+=(32767&c)<<16,u+=c>>15,u=(2147483647&u)+(u>>31),d=4294967295&u;for(l=0;l<3;++l)f=d>>>(l<<3),f^=Math.floor(256*Math.random()),i.putByte(String.fromCharCode(255&f))}}return i.getBytes(e)}return t.pools=i,t.pool=0,t.generate=function(e,n){if(!n)return t.generateSync(e);var o=t.plugin.cipher,i=t.plugin.increment,a=t.plugin.formatKey,l=t.plugin.formatSeed,c=r.util.createBuffer();function u(f){if(f)return n(f);if(c.length()>=e)return n(null,c.getBytes(e));if(t.generated>1048575&&(t.key=null),null===t.key)return r.util.nextTick((function(){s(u)}));var d=o(t.key,t.seed);t.generated+=d.length,c.putBytes(d),t.key=a(o(t.key,i(t.seed))),t.seed=l(o(t.key,t.seed)),r.util.setImmediate(u)}t.key=null,u()},t.generateSync=function(e){var n=t.plugin.cipher,o=t.plugin.increment,i=t.plugin.formatKey,a=t.plugin.formatSeed;t.key=null;var s=r.util.createBuffer();while(s.length()<e){t.generated>1048575&&(t.key=null),null===t.key&&l();var c=n(t.key,t.seed);t.generated+=c.length,s.putBytes(c),t.key=i(n(t.key,o(t.seed))),t.seed=a(n(t.key,t.seed))}return s.getBytes(e)},o?(t.seedFile=function(e,t){o.randomBytes(e,(function(e,n){if(e)return t(e);t(null,n.toString())}))},t.seedFileSync=function(e){return o.randomBytes(e).toString()}):(t.seedFile=function(e,t){try{t(null,u(e))}catch(n){t(n)}},t.seedFileSync=u),t.collect=function(e){for(var n=e.length,r=0;r<n;++r)t.pools[t.pool].update(e.substr(r,1)),t.pool=31===t.pool?0:t.pool+1},t.collectInt=function(e,n){for(var r="",o=0;o<n;o+=8)r+=String.fromCharCode(e>>o&255);t.collect(r)},t.registerWorker=function(e){if(e===self)t.seedFile=function(e,t){function n(e){var r=e.data;r.forge&&r.forge.prng&&(self.removeEventListener("message",n),t(r.forge.prng.err,r.forge.prng.bytes))}self.addEventListener("message",n),self.postMessage({forge:{prng:{needed:e}}})};else{var n=function(n){var r=n.data;r.forge&&r.forge.prng&&t.seedFile(r.forge.prng.needed,(function(t,n){e.postMessage({forge:{prng:{err:t,bytes:n}}})}))};e.addEventListener("message",n)}},t}}).call(this,n("4362"))},c0b9:function(e,t,n){var r=n("ebeb");function o(e,t){var n=function(){return new r.des.Algorithm(e,t)};r.cipher.registerAlgorithm(e,n)}n("858c"),n("9055"),n("bb01"),e.exports=r.des=r.des||{},r.des.startEncrypting=function(e,t,n,r){var o=m({key:e,output:n,decrypt:!1,mode:r||(null===t?"ECB":"CBC")});return o.start(t),o},r.des.createEncryptionCipher=function(e,t){return m({key:e,output:null,decrypt:!1,mode:t})},r.des.startDecrypting=function(e,t,n,r){var o=m({key:e,output:n,decrypt:!0,mode:r||(null===t?"ECB":"CBC")});return o.start(t),o},r.des.createDecryptionCipher=function(e,t){return m({key:e,output:null,decrypt:!0,mode:t})},r.des.Algorithm=function(e,t){var n=this;n.name=e,n.mode=new t({blockSize:8,cipher:{encrypt:function(e,t){return h(n._keys,e,t,!1)},decrypt:function(e,t){return h(n._keys,e,t,!0)}}}),n._init=!1},r.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=r.util.createBuffer(e.key);if(0===this.name.indexOf("3DES")&&24!==t.length())throw new Error("Invalid Triple-DES key size: "+8*t.length());this._keys=p(t),this._init=!0}},o("DES-ECB",r.cipher.modes.ecb),o("DES-CBC",r.cipher.modes.cbc),o("DES-CFB",r.cipher.modes.cfb),o("DES-OFB",r.cipher.modes.ofb),o("DES-CTR",r.cipher.modes.ctr),o("3DES-ECB",r.cipher.modes.ecb),o("3DES-CBC",r.cipher.modes.cbc),o("3DES-CFB",r.cipher.modes.cfb),o("3DES-OFB",r.cipher.modes.ofb),o("3DES-CTR",r.cipher.modes.ctr);var i=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],a=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],s=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],l=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],c=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],u=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],f=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],d=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function p(e){for(var t,n=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],o=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],a=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],s=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],l=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],u=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],f=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],p=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],v=e.length()>8?3:1,y=[],g=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],b=0,w=0;w<v;w++){var _=e.getInt32(),S=e.getInt32();t=252645135&(_>>>4^S),S^=t,_^=t<<4,t=65535&(S>>>-16^_),_^=t,S^=t<<-16,t=858993459&(_>>>2^S),S^=t,_^=t<<2,t=65535&(S>>>-16^_),_^=t,S^=t<<-16,t=1431655765&(_>>>1^S),S^=t,_^=t<<1,t=16711935&(S>>>8^_),_^=t,S^=t<<8,t=1431655765&(_>>>1^S),S^=t,_^=t<<1,t=_<<8|S>>>20&240,_=S<<24|S<<8&16711680|S>>>8&65280|S>>>24&240,S=t;for(var C=0;C<g.length;++C){g[C]?(_=_<<2|_>>>26,S=S<<2|S>>>26):(_=_<<1|_>>>27,S=S<<1|S>>>27),_&=-15,S&=-15;var k=n[_>>>28]|r[_>>>24&15]|o[_>>>20&15]|i[_>>>16&15]|a[_>>>12&15]|s[_>>>8&15]|l[_>>>4&15],E=c[S>>>28]|u[S>>>24&15]|f[S>>>20&15]|d[S>>>16&15]|p[S>>>12&15]|h[S>>>8&15]|m[S>>>4&15];t=65535&(E>>>16^k),y[b++]=k^t,y[b++]=E^t<<16}}return y}function h(e,t,n,r){var o,p,h=32===e.length?3:9;o=3===h?r?[30,-2,-2]:[0,32,2]:r?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var m=t[0],v=t[1];p=252645135&(m>>>4^v),v^=p,m^=p<<4,p=65535&(m>>>16^v),v^=p,m^=p<<16,p=858993459&(v>>>2^m),m^=p,v^=p<<2,p=16711935&(v>>>8^m),m^=p,v^=p<<8,p=1431655765&(m>>>1^v),v^=p,m^=p<<1,m=m<<1|m>>>31,v=v<<1|v>>>31;for(var y=0;y<h;y+=3){for(var g=o[y+1],b=o[y+2],w=o[y];w!=g;w+=b){var _=v^e[w],S=(v>>>4|v<<28)^e[w+1];p=m,m=v,v=p^(a[_>>>24&63]|l[_>>>16&63]|u[_>>>8&63]|d[63&_]|i[S>>>24&63]|s[S>>>16&63]|c[S>>>8&63]|f[63&S])}p=m,m=v,v=p}m=m>>>1|m<<31,v=v>>>1|v<<31,p=1431655765&(m>>>1^v),v^=p,m^=p<<1,p=16711935&(v>>>8^m),m^=p,v^=p<<8,p=858993459&(v>>>2^m),m^=p,v^=p<<2,p=65535&(m>>>16^v),v^=p,m^=p<<16,p=252645135&(m>>>4^v),v^=p,m^=p<<4,n[0]=m,n[1]=v}function m(e){e=e||{};var t,n=(e.mode||"CBC").toUpperCase(),o="DES-"+n;t=e.decrypt?r.cipher.createDecipher(o,e.key):r.cipher.createCipher(o,e.key);var i=t.start;return t.start=function(e,n){var o=null;n instanceof r.util.ByteBuffer&&(o=n,n={}),n=n||{},n.output=o,n.iv=e,i.call(t,n)},t}},c0c2:function(e,t,n){},c14c:function(e,t,n){"use strict";n("27af")},c246:function(e,t,n){"use strict";var r=function(){var e=this,t=e._self._c;return t("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!e.schema||e.actioning}},[e.schema?t("div",[e.actionViewVisible&&"block"===e.actionViewMode?e._e():t(e.layout,{tag:"component",attrs:{configs:e.configs,source:e.$attrs.isViewselection?"viewselect":"list"},scopedSlots:e._u([e.configs["list.header"]?{key:"header",fn:function(){return[t(e.configs["list.header"],{tag:"component",attrs:{config:e.configs}})]},proxy:!0}:null,e.configs["list.footer"]?{key:"footer",fn:function(){return[t(e.configs["list.footer"],{tag:"component"})]},proxy:!0}:null,e.configs["list.sider"]?{key:"sider",fn:function(){return[t(e.configs["list.sider"],{tag:"component"})]},proxy:!0}:null,{key:"pagination",fn:function(){return[e.data.size?[e.configs["list.pagination"]?t(e.configs["list.pagination"],{tag:"component",attrs:{total:e.data.count,current:Number(e.query.$limit),pageSize:Number(e.query._size),selections:e.selections,pageSizeOptions:["15","30","50","100"],"show-size-changer":""},on:{change:e.handlePaginationPageChange,showSizeChange:e.handleShowSizeChange}}):t("PaginationSize",{attrs:{total:e.data.count,current:Number(e.query.$limit),pageSize:Number(e.query._size),"show-total":function(t,n){return t?"当前页面 ".concat(n[0],"-").concat(n[1]," 项,选定 ").concat(e.selections.length," 项,共 ").concat(t," 项"):null},pageSizeOptions:["15","30","50","100"],"show-size-changer":""},on:{change:e.handlePaginationPageChange,showSizeChange:e.handleShowSizeChange}})]:e._e()]},proxy:!0},e.actions.length?{key:"actions-none",fn:function(){return[t("ActionGroup",{attrs:{configs:e.configs,actions:e.actions},on:{action:e.handleAction}}),t("a-button",{staticStyle:{"margin-top":"2px","margin-bottom":"2px","margin-right":"16px"},attrs:{type:"primary",icon:"robot"},on:{click:function(t){return e.handleAichatAction()}}},[e._v("AI")])]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[t("ActionGroup",{attrs:{configs:e.configs,actions:e.settingActions},on:{action:e.handleAction}})]},proxy:!0},e.filters.length?{key:"filters",fn:function(){return[t("FilterForm",{attrs:{columns:e.filters,params:{$parent:e.params.$parent}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}})]},proxy:!0}:null,e.treeFilters.length?{key:"tree-filters",fn:function(){return[t("FilterForm",{attrs:{columns:e.treeFilters,params:{$parent:e.params.$parent},layout:"vertical"},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}})]},proxy:!0}:null],null,!0)},[t("list-".concat(e.configs["list.widget"]||"table"),{tag:"component",attrs:{rowKey:e.idName,loading:e.loading,rowSelection:e.rowSelection,columns:e.columns,dataSource:e.dataSource,item:e.configs["list.item"],childrenColumnName:"_childList",rowClassName:e.listSeparateColor,scroll:{x:Number(e.configs["list.scrollX"])||null,y:Number(e.configs["list.scrollY"])||null},source:e.$attrs.isViewselection?"viewselect":"list"},on:{profile:function(t){return e.handleModelProfile(t)},"row-action":e.handleRowAction}})],1),e.actionViewVisible?t("Popup",{class:{"ant-modal-tip":e.actionParams.actionViewTip},attrs:{visible:e.actionViewVisible,title:e.action.name,type:e.actionViewMode,okButtonProps:e.actionOkButtonProps,cancelButtonProps:e.actionCancelButtonProps,width:e.configs["profile.popup.width"],footer:"_profile"===e.action.key||"hide"===e.actionParams.footer?null:void 0},on:{ok:e.submitActionView,close:e.closeActionView,cancel:e.closeActionView},scopedSlots:e._u([e.actionConfigs["form.footer"]?{key:"footer",fn:function(){return[t(e.actionConfigs["form.footer"],{tag:"component",attrs:{action:e.action,submited:e.actionSubmited,values:e.actionModel,modelViewType:e.actionViewType,widget:e.actionViewWidget,parentIds:e.parentIds,params:e.actionParams,commitResult:e.actionCommitResult,selections:e.selections,schema:e.schema},on:{ok:e.submitActionView,close:e.closeActionView}})]},proxy:!0}:null],null,!0)},[e.actionViewVisible?t("ActionView",{attrs:{action:e.action,submited:e.actionSubmited,values:e.actionModel,modelViewType:e.actionViewType,widget:e.actionViewWidget,parentIds:e.parentIds,params:e.actionParams,commitResult:e.actionCommitResult,selections:e.selections,schema:e.schema},on:{commit:e.commitActionView,profile:e.handleModelProfile,close:e.closeActionView}}):e._e(),e.action.params&&e.action.params.autofill?t("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[t("a-col",[t("a-checkbox",{on:{change:e.handleAutoFill}},[e._v(" 自动填充表单")])],1),t("a-col",[t("a-space",[t("a-button",{attrs:{icon:"close",disabled:e.committing},on:{click:e.closeActionView}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary",icon:"check",loading:e.committing},on:{click:e.submitActionView}},[e._v(" 确认 ")])],1)],1)],1):e._e()],1):e._e(),t("a-drawer",{attrs:{placement:"right",visible:e.aiVisible,width:"600"},on:{close:function(t){e.aiVisible=!1}}},[t("template",{slot:"title"},[e._v("AI")]),t("AichatForm")],2)],1):e._e()])},o=[],i={props:{pageKey:{type:String,required:!0},viewKey:{type:String,required:!0},type:{type:String,enum:["model-list","model-profile","model-form","model-sheet","report","nav","com","container","post-list","post-profile","post-form"]},widget:{type:[String,Object],enum:["list-normal","list-table","list-grid","list-menu","list-sheet","list-calendar","list-map","list-kanban","profile-tile","profile-group","form-normal","form-filter","form-setting","form-wizard","form-editor","report-chart","report-crosstab","report-com","report-map","report-canvas","nav-menu","nav-link","nav-flow"]},mode:{type:String,enum:["page","embed","picker","widget"]},title:String,subtitle:String,icon:String,description:String,params:{type:[Object,Array],default:function(){return{}}},options:Object,nestedLevel:{type:Number,default:0},delay:{type:Boolean,default:!1},defaultSelections:{type:[String],default:null}},inject:["page","view"],provide:function(){return{view:this}},activated:function(){},deactivated:function(){}},a={props:{modelId:{type:String},parentIds:Array,parentModel:Object},provide:function(){return{model:this.model}},data:function(){return{}},computed:{hide:function(){var e=this.configs.hide;return e?Array.isArray(e)?e:e.split(","):[]}},methods:{}},s=n("796d"),l=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return f(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(f(t={},r,(function(){return this})),t),p=c.prototype=s.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,f(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,f(p,"constructor",c),f(c,"constructor",l),l.displayName="GeneratorFunction",f(c,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,r,(function(){return this})),f(p,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:i,m:h}})()}function f(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f=function(e,t,n,r){function i(t,n){f(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},f(e,t,n,r)}function d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=g(e,"string");return"symbol"==c(t)?t:t+""}function g(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){return C(e)||S(e)||_(e)||w()}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function S(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return k(e)}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var E={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},schemaFuncQueue:[],unwatchQuery:null,autoRefreshTimer:null}},computed:{columns:function(){var e,t=this,n=this.$createElement,r=this.idName,o=this.hide,i=this.action,a=((null===(e=this.model)||void 0===e?void 0:e.attrs)||[]).filter((function(e){return!["all","list"].includes(e.hidden)&&!o.includes(e.name)&&e.name!==r&&"model"!==e.metaType&&"link"!==e.type})).filter((function(e){var n,r,o,i=null===(n=e.configs)||void 0===n?void 0:n.find((function(e){return"visibleWhenParent"===e.key}));if(null===(r=t.params)||void 0===r||!r.$parent||!i)return!0;var a=null===(o=t.params)||void 0===o?void 0:o.$parent,s=new Function(Object.keys(a),"return ".concat(i.value));return s.apply(void 0,b(Object.values(a)))})).map((function(e){var r=Object.fromEntries((e.configs||[]).map((function(e){return[e.key,e.value]})));return{dataIndex:e.name,key:e.name,title:e.alias,align:["Integer","Number"].includes(e.metaType)?"right":"left",schema:e,width:r["list.width"],fixed:r["list.fixed"]||!1,ellipsis:"true"===r["list.ellipsis"],customRender:function(r,o,a){return n("Cell",{on:{profile:function(){return t.handleModelProfile(o)},change:function(n){return t.handleCellChange(n,e.name,o)}},attrs:{value:r,row:m(m({},o),{},{$parent:t.params&&t.params.$parent?t.params.$parent:null}),schema:e,editable:t.editable(o,i,e),idName:t.idName,rowIndex:a}})}}})),s=[],l=null;return this.configs&&this.configs["list.collapse.action"]&&(isNaN(Number(this.configs["list.collapse.action"]))?s=this.configs["list.collapse.action"].split(","):l=Number(this.configs["list.collapse.action"])),this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&a.push({title:"操作",key:"_action",fixed:this.configs["list.scrollX"]?"right":null,customRender:function(e,r){var o=null;return o=s.length?[n("span",[t.rowActions(r).filter((function(e){return!s.includes(e.key)})).map((function(e,o){return[o?n("a-divider",{attrs:{type:"vertical"}}):"",n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])]}))]),t.rowActions(r).filter((function(e){return!s.includes(e.key)})).length?n("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(r).filter((function(e){return s.includes(e.key)})).length?n("a-dropdown",{attrs:{trigger:["click"]}},[n("a",{class:"ant-dropdown-link",on:{click:function(e){return e.preventDefault()}}},["更多 ",n("a-icon",{attrs:{type:"down"}})]),n("a-menu",{slot:"overlay"},[t.rowActions(r).filter((function(e){return s.includes(e.key)})).map((function(e,o){return n("a-menu-item",{key:e.id},[n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])])}))])]):""]:l?[n("span",[t.rowActions(r).slice(0,l).map((function(e,o){return[o?n("a-divider",{attrs:{type:"vertical"}}):"",n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])]}))]),t.rowActions(r).slice(0,l).length?n("a-divider",{attrs:{type:"vertical"}}):"",t.rowActions(r).slice(l).length?n("a-dropdown",{attrs:{trigger:["click"]}},[n("a",{class:"ant-dropdown-link",on:{click:function(e){return e.preventDefault()}}},["更多 ",n("a-icon",{attrs:{type:"down"}})]),n("a-menu",{slot:"overlay"},[t.rowActions(r).slice(l).map((function(e,o){return n("a-menu-item",{key:e.id},[n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])])}))])]):""]:t.rowActions(r).map((function(e,o){return[o?n("a-divider",{attrs:{type:"vertical"}}):"",n("a",{on:{click:function(n){return t.handleRowAction(e,r,n)}}},[e.name,"file"===e.action?n("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(n){t.onFileChange(e,n.target.files),n.target.value=""}}}):""])]})),{children:o}},actions:function(e){return t.rowActions(e)}}),a},configs:function(){return this.schema&&this.schema.configs&&this.schema.configs.length?Object.fromEntries(this.schema.configs.map((function(e){return[e.key,e.value]}))):null},filters:function(){var e=this;return this.model&&this.model.filters?this.model.filters.filter((function(t){return!e.hide.includes(t.name)&&!["tree-select"].includes(t.control)})).map((function(t){var n,r=null===(n=e.model)||void 0===n||null===(n=n.attrs)||void 0===n?void 0:n.find((function(e){return e.name===t.name}));return m(m({},r),t)})):[]},treeFilters:function(){var e=this;return this.model&&this.model.filters?this.model.filters.filter((function(t){return!e.hide.includes(t.name)&&["tree-select"].includes(t.control)})).map((function(t){var n,r=null===(n=e.model)||void 0===n||null===(n=n.attrs)||void 0===n?void 0:n.find((function(e){return e.name===t.name}));return m(m({},r),t)})):[]},filterValues:function(){var e=[].concat(b(this.filters),b(this.treeFilters)).filter((function(e){return!!e.value})).map((function(e){return[e.name,e.value]}));return m(m({},Object.fromEntries(e)),this.defaults)},dataSource:function(){var e=this,t=this.findAll;if(this.actionModel){var n=t.find((function(t){return t[e.idName]===e.actionModel[e.idName]}));for(var r in n)n[r]!==this.actionModel[r]&&(this.actionModel[r]=n[r])}return t},next:function(){var e=this,t=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[e.idName]===t}));return this.findAll[n+1]},previous:function(){var e=this,t=this.actionModel&&this.actionModel[this.idName],n=this.findAll.findIndex((function(n){return n[e.idName]===t}));return this.findAll[n-1]}},created:function(){var e=this;return p(u().m((function t(){var n;return u().w((function(t){while(1)switch(t.n){case 0:if(e.schema){t.n=2;break}return t.n=1,e.loadSchema();case 1:while(e.schemaFuncQueue.length>0)n=e.schemaFuncQueue.pop(),n();case 2:e.query=e.params.route&&e.params.route.query.close?m(m(m({},e.query),e.params.filters),e.filterValues):m(m(m(m({},e.query),e.params.filters),e.filterValues),e.$route.query);case 3:return t.a(2)}}),t)})))()},activated:function(){var e=this;this.schema?this.configs&&this.configs["auto-refresh"]&&(this.autoRefreshTimer=!0,this.autoRefresh(+this.configs["auto-refresh"])):this.schemaFuncQueue.push((function(){e.configs&&e.configs["auto-refresh"]&&(e.autoRefreshTimer=!0,e.autoRefresh(+e.configs["auto-refresh"]))})),this.parentIds||"page"!==this.mode||l.a.stringify(this.query)!==l.a.stringify(this.$route.query)&&(this.query=m(m({},this.query),this.$route.query),this.$router.push({query:this.query})),this.unwatchQuery=this.$watch("query",{handler:function(e,t){var n=Object.keys(e),r=Object.keys(t),o=n.some((function(t){return!r.includes(t)&&!e[t]}));o||(this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query}))},deep:!0})},deactivated:function(){this.autoRefreshTimer&&clearTimeout(this.autoRefreshTimer),this.autoRefreshTimer=null,this.unwatchQuery&&this.unwatchQuery()},methods:{autoRefresh:function(e){var t=this;return p(u().m((function n(){return u().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.handleRefresh();case 1:t.autoRefreshTimer&&(t.autoRefreshTimer=setTimeout((function(){return t.autoRefresh(e)}),e));case 2:return n.a(2)}}),n)})))()},load:function(){var e=arguments,t=this;return p(u().m((function n(){var r,o;return u().w((function(n){while(1)switch(n.n){case 0:return r=e.length>0&&void 0!==e[0]&&e[0],n.n=1,t.loadData({query:t.query,mute:r});case 1:return o=n.v,n.a(2,o)}}),n)})))()},handleNext:function(){this.actionModel=m({},this.next)},handlePrevious:function(){this.actionModel=m({},this.previous)},handleModelProfile:function(e){var t={name:this.titleName?String(this.formatter(e,e[this.titleName],this.titleSchema)):"详情",key:"_profile"};this.action=t,this.actionModel=m({},e),this.actionParams={$parent:this.params.$parent},this.handleProfile(t)},handleProfile:function(e){var t=this.actionModel;this.$store.commit("setSubView",!1),this.parentIds||"page"!==this.mode?(this.actionViewMode="drawer",this.actionViewType="Profile",this.showActionView()):this.$router.push("".concat(this.$route.path,"/").concat(t[this.idName]))},handleFilterChange:function(e,t){this.query[e]?this.query[e]=t:this.$set(this.query,e,t)},listSeparateColor:function(e,t){var n=this.configs["list.separateKey"]||null,r=this.configs["list.separateValue"]||null;return n&&r&&e[n]===r?"list-separate-color":""},onFileChange:function(e,t){var n=e.list?e.list:"file";this.handleAction(e,null,v({},n,t))},editable:function(e,t,n){var r,o=m({},this.configs);if(null!==t&&void 0!==t&&null!==(r=t.configs)&&void 0!==r&&r.length){var i=Object.fromEntries(t.configs.map((function(e){return[e.key,e.value]})));o=m(m({},o),i)}var a=o["list.actionRowNotEditing.key"]&&o["list.actionRowNotEditing.value"]?this.actionRowEditing&&!o["list.actionRowNotEditing.value"].split(",").includes(e[o["list.actionRowNotEditing.key"]]):this.actionRowEditing;if(null!==t&&void 0!==t&&t.list){var s=t.list.split(",");return a&&s.includes(n.name)}return a}}},O={props:{paginationMode:{type:String,default:"auto",enum:["front","server","auto"]},paginationType:{type:String,default:"size",enum:["size","node","time"]}},data:function(){return{query:{$limit:1,$page:1,_size:15}}},methods:{handlePaginationPageChange:function(e){this.query.$limit=e,this.clearSelection&&this.clearSelection()},handleShowSizeChange:function(e,t){this.query._size=t,this.clearSelection&&this.clearSelection()}}};function T(e){return I(e)||N(e)||x(e)||A()}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(e){if("string"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function N(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function I(e){if(Array.isArray(e))return j(e)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var P={props:{pickerMode:{type:String,enum:["single","multiple"],default:"multiple"}},data:function(){return{selections:[]}},computed:{rowSelection:function(){var e=this;return this.pickerMode&&this.schema.handle?!this.bulkActions.length&&!this.pickerMode||this.actionRowEditing?null:{selectedRowKeys:this.selections.map((function(t){return t[e.idName]})),onChange:this.handleSelectionChange,getCheckboxProps:function(t){var n=!0,r=e.configs["list.row.selectable"];if(r){var o=new Function(Object.keys(t),"return "+r);n=o.apply(void 0,T(Object.values(t)))}return{props:{disabled:!n}}},type:"single"===this.pickerMode?"radio":"checkbox"}:null}},methods:{getSelection:function(){},addSelection:function(){},removeSelection:function(){},clearSelection:function(){"picker"===this.mode&&"multiple"===this.pickerMode||(this.selections=[])},handleSelectionChange:function(e){var t=this.idName,n=this.dataSource,r=function(e,n){for(var o=0;o<e.length;o++){if(e[o][t]===n)return e[o];if(e[o]._childList){var i=r(e[o]._childList,n);if(i)return i}}return null};"picker"===this.mode&&"multiple"===this.pickerMode?(this.selections=[].concat(T(this.selections),T(e.map((function(e){return r(n,e)})).filter((function(e){return e})))),this.selections=Array.from(new Set(this.selections.map((function(e){return JSON.stringify(e)})))).map((function(e){return JSON.parse(e)})),this.selections=this.selections.filter((function(n){var r=e.findIndex((function(e){return e===n[t]}));return-1!==r}))):this.selections=e.map((function(e){return r(n,e)})),this.$emit("selected",this.selections)}}},R=n("cf8b"),D=n("c6e8");function B(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return L(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(L(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,L(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,L(f,"constructor",c),L(c,"constructor",l),l.displayName="GeneratorFunction",L(c,o,"GeneratorFunction"),L(f),L(f,o,"Generator"),L(f,r,(function(){return this})),L(f,"toString",(function(){return"[object Generator]"})),(B=function(){return{w:i,m:d}})()}function L(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}L=function(e,t,n,r){function i(t,n){L(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},L(e,t,n,r)}function M(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function U(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){M(i,r,o,a,s,"next",e)}function s(e){M(i,r,o,a,s,"throw",e)}a(void 0)}))}}var V=function(e,t){return q.apply(this,arguments)};function q(){return q=U(B().m((function e(t,n){var r,o,i,a,s,l,c,u;return B().w((function(e){while(1)switch(e.n){case 0:if("refresh"!==t){e.n=2;break}if("true"!==n.configs["flush-badges"]){e.n=1;break}return e.n=1,null===(i=window)||void 0===i||null===(i=i.sidebar)||void 0===i?void 0:i.setBadges();case 1:return e.a(2);case 2:if(a=null===t||void 0===t||null===(r=t.params)||void 0===r||null===(r=r.commit)||void 0===r?void 0:r.type,s=(null!==(o=n.storeNamespace.match(new RegExp(":id","g")))&&void 0!==o?o:[]).length,a&&["load","loadAll"].includes(a)&&n.load&&n.load(),!a||!["parent.load","parent.loadAll"].includes(a)){e.n=4;break}if(c=n.view&&n.view.load,!c){e.n=3;break}return e.n=3,n.view.load();case 3:s&&n.load&&n.load();case 4:if(a&&["loadSchema","loadAll"].includes(a)&&n.loadSchema&&n.loadSchema(),!a||!["parent.loadSchema","parent.loadAll"].includes(a)){e.n=6;break}if(u=n.view&&this.view.loadSchema,!u){e.n=5;break}return e.n=5,n.view.loadSchema();case 5:s&&n.loadSchema&&n.loadSchema();case 6:if("true"!==n.configs["flush-badges"]){e.n=7;break}return e.n=7,null===(l=window)||void 0===l||null===(l=l.sidebar)||void 0===l?void 0:l.setBadges();case 7:return e.a(2)}}),e,this)}))),q.apply(this,arguments)}function F(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return K(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(K(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,K(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,K(f,"constructor",c),K(c,"constructor",l),l.displayName="GeneratorFunction",K(c,o,"GeneratorFunction"),K(f),K(f,o,"Generator"),K(f,r,(function(){return this})),K(f,"toString",(function(){return"[object Generator]"})),(F=function(){return{w:i,m:d}})()}function K(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}K=function(e,t,n,r){function i(t,n){K(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},K(e,t,n,r)}function $(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$(i,r,o,a,s,"next",e)}function s(e){$(i,r,o,a,s,"throw",e)}a(void 0)}))}}var G=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t?n&&n.viewMode&&"download"===n.viewMode?window.open("/file/getfile/".concat(t,"?_time=").concat((new Date).getTime(),"&viewMode=").concat(n.viewMode),"_blank"):window.open("/file/getfile/".concat(t,"?_time=").concat((new Date).getTime()),"_blank"):window.open("".concat(e,"/api/download?_time=").concat((new Date).getTime()),"_blank")},z={methods:{handleFile:function(e){var t=this;return H(F().m((function n(){var r,o,i,a;return F().w((function(n){while(1)switch(n.n){case 0:if(r=e.list?e.list:"file",o=new FormData,i=t.idName,t.actionModel[r]){n.n=1;break}return n.a(2);case 1:return o.append(r,t.actionModel[r][0]),t.actionModel[i]&&o.append(i,t.actionModel[i]),a=t.$message.loading("正在".concat(e.name,",请稍等..."),0),n.n=2,t.saveData({key:e.key,data:o});case 2:V(e,t),a();case 3:return n.a(2)}}),n)})))()},handleFilesUpload:function(e){var t=this;return H(F().m((function e(){return F().w((function(e){while(1)switch(e.n){case 0:t.actionViewWidget="upload-form",t.showActionView();case 1:return e.a(2)}}),e)})))()},handleDownload:function(e){var t=this;return H(F().m((function n(){var r,o;return F().w((function(n){while(1)switch(n.n){case 0:if(r=function(){var n=H(F().m((function n(){var r,o,i;return F().w((function(n){while(1)switch(n.n){case 0:return r=t.$message.loading("正在".concat(e.name,",请稍等..."),0),n.n=1,t.executeData({key:e.key,data:t.actionModel||t.selections[0]});case 1:o=n.v,r(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,G(t.apiBaseURL,i,{viewMode:"download"}));case 2:return n.a(2)}}),n)})));return function(){return n.apply(this,arguments)}}(),!e.params||!e.params.confirm){n.n=1;break}o=e.params.confirm,t.$confirm({title:o.title||e.name,content:o.content||"您确认要执行【".concat(e.name,"】操作吗?"),onOk:function(){r()}}),n.n=2;break;case 1:return n.n=2,r();case 2:return n.a(2)}}),n)})))()},handleExport:function(e){var t=arguments,n=this;return H(F().m((function r(){var o,i,a;return F().w((function(r){while(1)switch(r.n){case 0:if(o=t.length>1&&void 0!==t[1]&&t[1],i=function(){var t=H(F().m((function t(){var r,i,a;return F().w((function(t){while(1)switch(t.n){case 0:return r=n.$message.loading("正在".concat(e.name,",请稍等..."),0),t.n=1,n.executeData({key:e.key,data:n.selections.length?o?n.selections[0]:n.selections:n.actionModel||{}});case 1:i=t.v,r(),i instanceof Error||(a=i&&i.file_id?i.file_id:null,G(n.apiBaseURL,a));case 2:return t.a(2)}}),t)})));return function(){return t.apply(this,arguments)}}(),!e.params||!e.params.confirm){r.n=1;break}a=e.params.confirm,n.$confirm({title:a.title||e.name,content:a.content||"您确认要执行【".concat(e.name,"】操作吗?"),onOk:function(){i()}}),r.n=2;break;case 1:return r.n=2,i();case 2:return r.a(2)}}),r)})))()},handleExportFilter:function(e){var t=this;return H(F().m((function n(){var r,o;return F().w((function(n){while(1)switch(n.n){case 0:if(r=function(){var n=H(F().m((function n(){var r,o,i;return F().w((function(n){while(1)switch(n.n){case 0:return r=t.$message.loading("正在".concat(e.name,",请稍等..."),0),n.n=1,t.executeData({key:e.key,data:t.selections.length?t.selections:{},query:t.query});case 1:o=n.v,r(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,G(t.apiBaseURL,i));case 2:return n.a(2)}}),n)})));return function(){return n.apply(this,arguments)}}(),!e.params||!e.params.confirm){n.n=1;break}o=e.params.confirm,t.$confirm({title:o.title||e.name,content:o.content||"您确认要执行【".concat(e.name,"】操作吗?"),onOk:function(){r()}}),n.n=2;break;case 1:return n.n=2,r();case 2:return n.a(2)}}),n)})))()},handleExportOne:function(e){this.handleExport(e,!0)}}};function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e){var t=J(e,"string");return"symbol"==Y(t)?t:t+""}function J(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function ee(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return te(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(te(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,te(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,te(f,"constructor",c),te(c,"constructor",l),l.displayName="GeneratorFunction",te(c,o,"GeneratorFunction"),te(f),te(f,o,"Generator"),te(f,r,(function(){return this})),te(f,"toString",(function(){return"[object Generator]"})),(ee=function(){return{w:i,m:d}})()}function te(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}te=function(e,t,n,r){function i(t,n){te(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},te(e,t,n,r)}function ne(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function re(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ne(i,r,o,a,s,"next",e)}function s(e){ne(i,r,o,a,s,"throw",e)}a(void 0)}))}}var oe=n("9f89"),ie=/\${([\s\S]+?)}/g,ae={methods:{handleViewPicker:function(e){var t=this;return re(ee().m((function e(){return ee().w((function(e){while(1)switch(e.n){case 0:t.actionViewWidget="picker-view-form",t.showActionView();case 1:return e.a(2)}}),e)})))()},handleTreeSelect:function(e){var t=this;return re(ee().m((function n(){var r,o,i,a,s,l,c,u,f,d;return ee().w((function(n){while(1)switch(n.n){case 0:return r=e.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,l=r.valueName,c=r.valuesName,t.actioning=!0,u=Q(Q({},t.actionModel),{},{$parent:t.actionParams.$parent}),n.n=1,t.$api.get(oe(o,{reInterpolate:ie})(u));case 1:return f=n.v,n.n=2,t.$api.get(oe(i,{reInterpolate:ie})(u));case 2:d=n.v,t.actioning=!1,t.actionParams=Q(Q({},t.actionParams),{},{treeData:f.data&&f.data.collection,data:d.data&&d.data.collection,keyName:a,titleName:s,valueName:l,valuesName:c}),t.actionViewWidget="picker-tree-form",t.showActionView();case 3:return n.a(2)}}),n)})))()},handleTransferSelect:function(e){var t=this;return re(ee().m((function n(){var r,o,i,a,s,l,c,u,f,d,p;return ee().w((function(n){while(1)switch(n.n){case 0:return r=e.params,o=r.treeUrl,i=r.dataUrl,a=r.keyName,s=r.titleName,l=r.valueName,c=r.valuesName,u=r.selected,t.actioning=!0,f=Q(Q({},t.actionModel),{},{$parent:t.actionParams.$parent}),n.n=1,t.$api.get(oe(o,{reInterpolate:ie})(f));case 1:return d=n.v,n.n=2,t.$api.get(oe(i,{reInterpolate:ie})(f));case 2:p=n.v,t.actioning=!1,t.actionParams=Q(Q({},t.actionParams),{},{treeData:d.data&&d.data.collection,data:p.data&&p.data.collection,keyName:a,titleName:s,valueName:l,valuesName:c,selected:u}),t.actionViewWidget="picker-transfer-form",t.showActionView();case 3:return n.a(2)}}),n)})))()},handleAlgorithm:function(){var e=this;return re(ee().m((function t(){return ee().w((function(t){while(1)switch(t.n){case 0:e.actionViewWidget="algorithm-form",e.actionViewMode="fullscreen",e.showActionView();case 1:return t.a(2)}}),t)})))()},handleSelectViewPicker:function(e){var t=this;return re(ee().m((function n(){var r,o,i,a,s;return ee().w((function(n){while(1)switch(n.n){case 0:return r=e.params,o=r.treeUrl,i=r.valuesName,t.actioning=!0,a=Q(Q({},t.actionModel),{},{$parent:t.actionParams.$parent}),n.n=1,t.$api.get(oe(o,{reInterpolate:ie})(a));case 1:s=n.v,t.actioning=!1,t.actionParams=Q(Q({},t.actionParams),{},{treeData:s.data&&s.data.collection,valuesName:i}),t.showActionView();case 2:return n.a(2)}}),n)})))()}}};function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return fe(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(fe(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,fe(f,"constructor",c),fe(c,"constructor",l),l.displayName="GeneratorFunction",fe(c,o,"GeneratorFunction"),fe(f),fe(f,o,"Generator"),fe(f,r,(function(){return this})),fe(f,"toString",(function(){return"[object Generator]"})),(ue=function(){return{w:i,m:d}})()}function fe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fe=function(e,t,n,r){function i(t,n){fe(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},fe(e,t,n,r)}function de(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function pe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){de(i,r,o,a,s,"next",e)}function s(e){de(i,r,o,a,s,"throw",e)}a(void 0)}))}}function he(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e){var t=ve(e,"string");return"symbol"==se(t)?t:t+""}function ve(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ye={mixins:[z,ae],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(e){var t=Object.fromEntries((e.configs||[]).map((function(e){return[e.key,e.value]})));this.formMode="create","true"===(null===t||void 0===t?void 0:t.isNewLeafNode)&&this.parentIdName&&this.actionModel&&(this.actionModel=he({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(e){this.formMode="update",this.showActionView()},handleDelete:function(e){var t=this;return pe(ue().m((function n(){return ue().w((function(n){while(1)switch(n.n){case 0:t.$confirm({title:e.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var n=pe(ue().m((function n(){return ue().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.removeData({key:e.key,method:e.method||"delete",data:t.profile?[t.profile[t.idName]]:t.selections.length?t.selections.map((function(e){return e[t.idName]})):[t.actionModel[t.idName]]});case 1:t.selections=[],t.id?t.handleBack():t.findAll.length||t.load&&t.load(),V(e,t);case 2:return n.a(2)}}),n)})));function r(){return n.apply(this,arguments)}return r}()});case 1:return n.a(2)}}),n)})))()},handleBulkEdit:function(){this.bulkAction=ce({},this.action),this.actionRowEditing=!0},handleCancelEdit:function(){var e=this;return pe(ue().m((function t(){return ue().w((function(t){while(1)switch(t.n){case 0:e.editions.length?e.editions.length&&e.$confirm({title:"提示",content:"已编辑数据将无法保存, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){e.closeActionView()}}):e.closeActionView();case 1:return t.a(2)}}),t)})))()},handleSaveEdit:function(){var e=arguments,t=this;return pe(ue().m((function n(){return ue().w((function(n){while(1)switch(n.n){case 0:return e.length>0&&void 0!==e[0]?e[0]:t.formAction,t.actioning=!0,n.n=1,t.commitActionView(t.editions);case 1:t.actioning=!1;case 2:return n.a(2)}}),n)})))()},handleOne:function(e){var t=this;return pe(ue().m((function n(){return ue().w((function(n){while(1)switch(n.n){case 0:t.handleBulk(e,1);case 1:return n.a(2)}}),n)})))()},handleBulk:function(e){var t=arguments,n=this;return pe(ue().m((function r(){var o,i,a,s,l,c,u,f,d,p,h,m;return ue().w((function(r){while(1)switch(r.n){case 0:if(o=t.length>1&&void 0!==t[1]?t[1]:0,i=n.selections.length,a=n.action.params,s=void 0===a?{}:a,l=s.actionAfterDriver,c=void 0===l?{}:l,u=c.redirect,f=void 0!==u&&u,!(o&&i>o)){r.n=1;break}return r.a(2,n.$message.error("所选数据不允许超过 ".concat(o," 条")));case 1:d=i>1?" ".concat(i," 条"):"",p={method:e.method||"post",key:e.key,data:n.selections.length?n.selections:[n.actionModel],type:e.params&&e.params.commit?e.params.commit.type:""},h=function(){e.params&&e.params.commit&&"remove"===e.params.commit.type&&(n.id?n.handleBack():n.findAll.length||n.load&&n.load())},m=function(e){f&&e.redirectUrl&&n.$router.push(e.redirectUrl)},n.$confirm({title:e.name,content:"确认对选定的".concat(d,"数据进行【").concat(e.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:e.params&&e.params.sync?function(){var t=n.saveData(p);h(),V(e,n),m(t)}:pe(ue().m((function t(){var r;return ue().w((function(t){while(1)switch(t.n){case 0:return t.n=1,n.saveData(p);case 1:r=t.v,h(),V(e,n),m(r);case 2:return t.a(2)}}),t)})))});case 2:return r.a(2)}}),r)})))()},handleEver:function(e){var t=this;return pe(ue().m((function n(){var r;return ue().w((function(n){while(1)switch(n.n){case 0:return r=t.$message.loading("正在".concat(e.name,",请稍等..."),0),n.n=1,t.executeData({key:e.key,data:{},query:t.query?t.query:{}});case 1:r();case 2:return n.a(2)}}),n)})))()},handleRouter:function(e){var t=this;return pe(ue().m((function n(){var r;return ue().w((function(n){while(1)switch(n.n){case 0:r=e.legend,r=Object(D["a"])(r,ce({$parent:t.params.$parent,user:t.$store.state.user},t.actionModel)),t.$router.push(r);case 1:return n.a(2)}}),n)})))()},handleLink:function(e){var t=this;return pe(ue().m((function n(){var r;return ue().w((function(n){while(1)switch(n.n){case 0:r=e.legend,r=Object(D["a"])(r,ce({$parent:t.params.$parent,user:t.$store.state.user},t.actionModel)),window.open(r,"_blank");case 1:return n.a(2)}}),n)})))()},handleBlank:function(e){var t=this;this.$confirm({title:e.name,content:"确认对选定的数据进行【".concat(e.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var n=pe(ue().m((function n(){var r,o;return ue().w((function(n){while(1)switch(n.n){case 0:return r=e.key?"".concat(t.pageKey,"/").concat(e.key):e.id,n.n=1,t.$api[e.method.toLowerCase()||"post"]("api/".concat(r),t.selections.length?t.selections:[t.actionModel]);case 1:o=n.v,200===o.data.status?window.open(o.data.data.openNewUrl,"_blank"):t.$message.error(o.data.content);case 2:return n.a(2)}}),n)})));function r(){return n.apply(this,arguments)}return r}()})},handleRefresh:function(){var e=this;return pe(ue().m((function t(){var n,r;return ue().w((function(t){while(1)switch(t.n){case 0:if(!e.load){t.n=3;break}return t.n=1,e.load();case 1:return n=t.v,t.n=2,V("refresh",e);case 2:n instanceof Error&&(r=n.response.data.code,404===r&&e.handleBack());case 3:return t.a(2)}}),t)})))()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(e){this.defaultModel||(this.defaultModel=ce({},this.actionModel));var t=this.schema.id,n=e.target.checked,r=JSON.parse(localStorage.getItem("form_".concat(t)));if(r)for(var o in r)n?this.$set(this.actionModel,o,r[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function ge(e){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function be(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return we(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(we(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,we(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,we(f,"constructor",c),we(c,"constructor",l),l.displayName="GeneratorFunction",we(c,o,"GeneratorFunction"),we(f),we(f,o,"Generator"),we(f,r,(function(){return this})),we(f,"toString",(function(){return"[object Generator]"})),(be=function(){return{w:i,m:d}})()}function we(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}we=function(e,t,n,r){function i(t,n){we(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},we(e,t,n,r)}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e,t,n){return(t=ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){var t=Ee(e,"string");return"symbol"==ge(t)?t:t+""}function Ee(e,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Oe(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Te(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Oe(i,r,o,a,s,"next",e)}function s(e){Oe(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ae={methods:{handleFlowReport:function(e){var t=this;return Te(be().m((function n(){var r,o;return be().w((function(n){while(1)switch(n.n){case 0:return r=t.actionModel,t.actionConfirmMode=t.actioning=!0,n.n=1,t.saveData({key:e.key,data:Se({},r)});case 1:if(o=n.v,t.actionConfirmMode=t.actioning=!1,o.data){n.n=2;break}return n.a(2);case 2:t.actionModel=Se(Se({},r),{},{confirm:1,todo_actors:[]}),t.actionViewWidget=t.getActionWidget(e)||"workflow-report",t.actionParams.flow=o,t.actionViewVisible=!0;case 3:return n.a(2)}}),n)})))()},handleFlowCheck:function(e){var t=this;return Te(be().m((function n(){var r,o;return be().w((function(n){while(1)switch(n.n){case 0:return r=t.actionModel,t.actionConfirmMode=t.actioning=!0,n.n=1,t.saveData({key:e.key,data:Se({},r)});case 1:if(o=n.v,t.actionConfirmMode=t.actioning=!1,o.data){n.n=2;break}return n.a(2);case 2:t.actionViewWidget=t.getActionWidget(e)||"workflow-report",t.actionModel=Se(Se({},r),{},{data:Se({},o.data),confirm:1,deal_note:"",flow_action_name:"submit",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),t.actionParams.flow=o,t.actionViewVisible=!0;case 3:return n.a(2)}}),n)})))()},handleFlowReassign:function(e){var t=this;return Te(be().m((function n(){var r,o;return be().w((function(n){while(1)switch(n.n){case 0:return r=t.actionModel,t.actionConfirmMode=t.actioning=!0,n.n=1,t.saveData({key:e.key,data:Se({},r)});case 1:if(o=n.v,t.actionConfirmMode=t.actioning=!1,o.data){n.n=2;break}return n.a(2);case 2:t.actionViewWidget=t.getActionWidget(e)||"workflow-report",t.actionModel=Se(Se({},r),{},{data:Se({},o.data),confirm:1,deal_note:"",flow_action_name:"reassign",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),t.actionParams.flow=o,t.actionViewVisible=!0;case 3:return n.a(2)}}),n)})))()},handleFlowQuery:function(e){var t=this;return Te(be().m((function n(){var r,o;return be().w((function(n){while(1)switch(n.n){case 0:return r=t.actionModel,t.actionConfirmMode=t.actioning=!0,n.n=1,t.saveData({key:e.key,data:Se({},r)});case 1:if(o=n.v,t.actionConfirmMode=t.actioning=!1,o.data){n.n=2;break}return n.a(2);case 2:t.actionViewWidget=t.getActionWidget(e)||"workflow-report",t.actionParams.flow=o,t.actionViewVisible=!0;case 3:return n.a(2)}}),n)})))()},getActionWidget:function(e){var t,n=null;return null!==(t=e.configs)&&void 0!==t&&t.length&&(n=Object.fromEntries(e.configs.map((function(e){return[e.key,e.value]})))),n&&n["action.widget"]?n["action.widget"]:void 0}}};function xe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ne(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ne(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ne(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Ne(f,"constructor",c),Ne(c,"constructor",l),l.displayName="GeneratorFunction",Ne(c,o,"GeneratorFunction"),Ne(f),Ne(f,o,"Generator"),Ne(f,r,(function(){return this})),Ne(f,"toString",(function(){return"[object Generator]"})),(xe=function(){return{w:i,m:d}})()}function Ne(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ne=function(e,t,n,r){function i(t,n){Ne(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ne(e,t,n,r)}function Ie(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function je(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ie(i,r,o,a,s,"next",e)}function s(e){Ie(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Pe={methods:{commit:function(){return je(xe().m((function e(){return xe().w((function(e){while(1)switch(e.n){case 0:return e.a(2)}}),e)})))()}}},Re=n("8320");function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Be(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Le(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Le(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Le(f,"constructor",c),Le(c,"constructor",l),l.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,r,(function(){return this})),Le(f,"toString",(function(){return"[object Generator]"})),(Be=function(){return{w:i,m:d}})()}function Le(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,n,r){function i(t,n){Le(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Le(e,t,n,r)}function Me(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ue(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Me(i,r,o,a,s,"next",e)}function s(e){Me(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e,t,n){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e){var t=$e(e,"string");return"symbol"==De(t)?t:t+""}function $e(e,t){if("object"!=De(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var He={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Ge={none:function(e,t){return 0===e&&!t},single:function(e,t){return 1===e||t},somewhat:function(e,t){return e>0||t},mulpitle:function(e,t){return e>1&&!t}},ze={mixins:[ye,Ae,Pe,Re["a"]],data:function(){return{action:null,actioning:!1,submitting:!1,actionViewMode:"modal",actionViewType:"Form",actionViewWidget:"normal-form",actionViewVisible:!1,actionModel:null,actionParams:{},actionViewShowRules:[],actionSubmited:0,actionConfirmMode:!1,actionRowEditing:!1,actionCommitResult:{template:null,data:null},defaultModel:null,unwatchs:[],editions:[],bulkAction:null,preview:!1}},computed:{actions:function(){var e=this,t=this.model.actions;if(!t)return[];var n=this.selections.length||0,r=!!this.profile;return t.filter((function(t){var o=!0,i=t.selected,a=t.action;return i&&Ge[i]&&(o=Ge[i](n,r)),"single"===t.selected&&"profile"===a&&r&&(o=!1),o&&!e.actionRowEditing&&e.showAction(t)&&"GET"!==t.method}))},bulkActions:function(){var e=this.model.actions;return e?e.filter((function(e){return["somewhat","mulpitle"].includes(e.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return this.previous||this.next?[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]:[]},settingActions:function(){var e,t,n,r,o,i=[{key:(null===(e=this.bulkAction)||void 0===e?void 0:e.key)||"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1",list:(null===(t=this.bulkAction)||void 0===t?void 0:t.list)||null,configs:(null===(n=this.bulkAction)||void 0===n?void 0:n.configs)||[]},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1",list:(null===(r=this.bulkAction)||void 0===r?void 0:r.list)||null,configs:(null===(o=this.bulkAction)||void 0===o?void 0:o.configs)||[]}];return this.actionRowEditing?i:[{key:"_refresh",name:"",icon:"reload",action:"refresh"}]},inlineActions:function(){return this.model.actions&&this.model.actions.filter((function(e){return["single","somewhat"].includes(e.selected)}))},sheetActions:function(){},firstAction:function(){},lastAction:function(){},actionOkButtonProps:function(){return{props:{loading:this.committing,icon:"check"}}},actionCancelButtonProps:function(){return{props:{disabled:this.committing,icon:"close"}}}},methods:{rowActions:function(e){var t=this;return this.inlineActions.filter((function(n){return t.showAction(n,e)}))},showAction:function(e,t){var n=e.params&&!!e.params.show,r=e.params&&(e.params.show||e.params.hide),o=this.params||this,i=o.$parent;if(!r)return!0;var a=this.profile?[this.profile]:t?[t]:this.selections||[],s=n;return a.length?s=n?a.every((function(e){return Object(R["a"])(r,qe(qe({},e),{},{$parent:i}))})):a.some((function(e){return Object(R["a"])(r,qe(qe({},e),{},{$parent:i}))})):i&&(s=Object(R["a"])(r,{$parent:i})),n?s:!s},actionBeforeDriver:function(e){var t=this;return Ue(Be().m((function n(){var r,o,i,a,s,c,u,f;return Be().w((function(n){while(1)switch(n.p=n.n){case 0:return n.p=0,n.n=1,t.$api.get("/dataset/".concat(e,"?").concat(l.a.stringify(t.$store.state.user)));case 1:if(r=n.v,o=r.data.data,i=void 0===o?[]:o,!i.length){n.n=3;break}if("500"!==i[0].code){n.n=2;break}return t.$message.error(i[0].content),n.a(2,!1);case 2:if("200"!==i[0].code){n.n=3;break}return n.a(2,!0);case 3:n.n=5;break;case 4:n.p=4,f=n.v,f.response||t.$message.error("网络请求错误,请检查您的网络连接。"),a=f.response,s=a.status,c=a.data,u=c&&c.content||"系统错误请与管理员联系。",t.$message.error("".concat(s,", ").concat(u));case 5:return n.a(2)}}),n,null,[[0,4]])})))()},handleRowAction:function(e,t,n){var r=n.target.getElementsByTagName("input");if(this.selections=[t],"file"!==e.action)return this.handleAction(e,t);n.stopPropagation(),r[0]&&void 0===r[0].click()||n.path&&n.path[1].getElementsByTagName("input")[0].click()},handleAction:function(e,t,n){var r=this;return Ue(Be().m((function o(){var i,a,s,l,c;return Be().w((function(o){while(1)switch(o.n){case 0:if(r.action=e,i=r.action.params,a=void 0===i?{}:i,s=a.actionBeforeDriver,l=void 0===s?"":s,!l){o.n=2;break}return o.n=1,r.actionBeforeDriver(l);case 1:if(c=o.v,c){o.n=2;break}return o.a(2,!1);case 2:return t||(t=r.profile||r.selections[0]||{}),["modal","drawer","fullscreen"].includes(e.display)&&(r.actionViewMode=e.display),r.actionModel=qe(qe(qe({},t),n),r.defaults),r.actionParams=qe(qe({},e.params),{},{$parent:r.params.$parent}),"page"===e.display?r.routeAction(e):r.dispatchAction(e),o.a(2,r)}}),o)})))()},handleCellChange:function(e,t,n){var r=this.idName,o=this.editions.find((function(e){return e[r]===n[r]}));o||(o=qe({},n),this.editions.push(o)),o[t]=e},trigger:function(e){var t=this.actions.find((function(t){return t.key===e}));return this.dispatchAction(t),this},dispatchAction:function(e){var t={POST:"handleCreate",PUT:"handleUpdate",DELETE:"handleDelete","e.send-email":"handleSendMail","e.flow-report":"handleFlowReport","e.flow-query":"handleFlowQuery","e.flow-submit":"handleFlowCheck","e.flow-check":"handleFlowCheck","e.flow-open":"handleFlowCheck","e.flow-reassign":"handleFlowReassign",viewSelect:"handleViewPicker",algorithm:"handleAlgorithm"};try{if(e.action&&t[e.action])this[t[e.action]](e);else if(e.action){var n=e.action.replace(/^\S/,(function(e){return e.toUpperCase()}));this["handle".concat(n)](e)}else this[t[e.method]](e)}catch(r){this.$message.error("前端事件异常【".concat(e.name,"】"))}return this},routeAction:function(e){return this.$router.push({path:e.key}),this},showActionView:function(){this.actionViewVisible=!0},submitActionView:function(){this.submitting=!0,this.actionSubmited=(new Date).getTime()},commitActionView:function(e){var t=arguments,n=this;return Ue(Be().m((function r(){var o,i,a,s,l,c,u,f,d,p,h,m,v,y,g,b,w,_,S,C,k,E,O;return Be().w((function(r){while(1)switch(r.n){case 0:if(o=t.length>1&&void 0!==t[1]?t[1]:null,o&&(n.preview=o.preview),i=n.selections,a=n.actionModel,s=n.idName,l=n.editions,c=n.action,u=c.key,f=c.method,d=c.params,p=void 0===d?{}:d,h=p.commit,m=void 0===h?{}:h,v=m.type,y=m.redirectProfile,g=p.autofill,b=p.confirmActionDialog,w=void 0===b?null:b,_=n.schema,S=function(){var t=Ue(Be().m((function t(){var r,c,d,p,h,m,b;return Be().w((function(t){while(1)switch(t.n){case 0:return i.length>1?(delete e[s],e=i.map((function(t){return qe(qe({},t),e)}))):a&&!l.length&&(e=qe(qe({},a),e)),r=Object.keys(e).every((function(t){return!(e[t]instanceof File)&&!(e[t]&&e[t]instanceof Array&&e[t].some((function(e){return e instanceof File})))})),c={},d=Object.keys(e).find((function(t){return e[t]&&e[t]instanceof Array&&e[t].some((function(e){return e instanceof File}))}))?"1":"0","1"===d&&(c.multiple=d),r||(e=n.transformData(e)),t.n=1,n.saveData({data:e,key:u,method:f,query:c,type:v,params:o});case 1:if(p=t.v,p){if(g){for(b in h=qe({},p),m=n.filterColumns().map((function(e){return e.name})),h)m.includes(b)||delete h[b];localStorage.setItem("form_".concat(_.id),JSON.stringify(h))}n.actionCommitResult.data=function(){return{data:p}},y&&n.handleModelProfile&&n.handleModelProfile(p),n.id&&v&&"remove"===v&&n.handleBack()}V({params:{commit:{type:v}}},n);case 2:return t.a(2)}}),t)})));return function(){return t.apply(this,arguments)}}(),!w){r.n=1;break}C=/\$\{(\w+)\}/g,k=function(e){return w.content.replace(C,(function(t){var r=t.substring(2,t.length-1),o=n.columns.find((function(e){return e.key===r}))||null;return n.formatter(null,e[r],null===o||void 0===o?void 0:o.schema)}))},E=i.map((function(e){return k(e)})),O="summary"===w.type?E[0]:E.join(","),n.$confirm({title:"请再次确认以下信息,确认无误后提交!",content:"".concat(O,"。"),onOk:function(){return Ue(Be().m((function e(){return Be().w((function(e){while(1)switch(e.n){case 0:return e.n=1,S();case 1:return e.a(2)}}),e)})))()}}),r.n=2;break;case 1:return r.n=2,S();case 2:return r.a(2)}}),r)})))()},filterColumns:function(){var e=this.action,t=this.params,n=this.model,r=this.hide,o=this.formMode,i=e&&e.view?e.view.model.attrs:t&&t.attrs?t.attrs:n.attrs?n.attrs:[];if(e&&e.list){var a=this.action.list.split(",");return i.filter((function(e){return!r.includes(e.name)&&a.includes(e.name)}))}return i.filter((function(e){return He[o].includes(e.access)&&!r.includes(e.name)&&"collection"!==e.metaType&&"model"!==e.metaType&&"link"!==e.type}))},transformData:function(e){var t=new FormData;for(var n in e)if("object"!==De(e[n])||e[n]instanceof File)t.append("".concat(n),e[n]);else for(var r in e[n])Array.isArray(e[n])?t.append("".concat(n),e[n][r]instanceof File||"object"!==De(e[n][r])?e[n][r]:JSON.stringify(e[n][r])):t.append("".concat(n,".").concat(r),e[n][r]instanceof File||"object"!==De(e[n][r])?e[n][r]:JSON.stringify(e[n][r]));return t},closeActionView:function(e){return this.action=null,this.formModal=null,this.actionViewVisible=!1,this.submitting=!1,this.actionViewMode="modal",this.actionViewType="Form",this.actionViewWidget="normal-form",this.actionViewStoreNamespace=null,this.actionParams={},this.actionCommitResult={template:null,data:null},this.actionRowEditing=!1,this.editions=[],this.clearSelection&&this.clearSelection(),this.defaultModel=null,this},handleUpdateStatus:function(e){e>399&&this.message&&(this.$message.error(this.message),this.resetStatus())},handleUpdateMessage:function(e){var t=this.action&&this.action.configs,n=t&&t.find((function(e){return"result"===e.key}));200===this.status&&e&&(!this.actionConfirmMode&&this.$message.success(e),n?this.actionCommitResult.template=n.value:this.actionConfirmMode||!this.preview&&this.closeActionView()),this.resetStatus()}},activated:function(){this.unwatchs=[this.$watch("status",this.handleUpdateStatus),this.$watch("message",this.handleUpdateMessage)]},deactivated:function(){this.unwatchs.map((function(e){return e()})),this.unwatchs=[]}};function Ye(e){return Ze(e)||Xe(e)||Qe(e)||We()}function We(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qe(e,t){if(e){if("string"==typeof e)return Je(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}function Xe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ze(e){if(Array.isArray(e))return Je(e)}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var et=function(){var e=this,t=e._self._c;return e.$isMobile?t("a-spin",{attrs:{spinning:e.$attrs.loading}},[e.$attrs.dataSource.length?[e.hasChildren||e.isViewSelect?t("a-table",e._b({class:{"list-table-header-selection-checkbox":e.$attrs.rowSelection&&e.$attrs.rowSelection.type&&"checkbox"===e.$attrs.rowSelection.type&&e.showSelectionText},attrs:{columns:[].concat(Ye(e.prefixTitleColumns),[e.titleColumn],Ye(e.contentColumn),Ye(e.isViewSelect?[]:[e.actionColumn])),pagination:!1,size:"middle"}},"a-table",e.$attrs,!1)):t("div",{staticClass:"table"},e._l(e.$attrs.dataSource,(function(n,r){return t("div",{key:r,staticClass:"table-item",on:{click:function(t){return e.$emit("profile",n)}}},[t("div",{staticClass:"table-item-title"},[e._l(e.prefixTitleColumns,(function(e,r){return t("div",{key:r},[t({functional:!0,render:function(){return e.customRender(n[e.dataIndex],n,r)}},{tag:"component"})],1)})),t({functional:!0,render:function(){return e.titleColumn.customRender(n[e.titleColumn.dataIndex],n)}},{tag:"component"})],2),t("a-row",{attrs:{gutter:[16,12],type:"flex"}},e._l(e.contentColumn,(function(r,o){return t("a-col",{key:o,attrs:{span:12}},[t("div",{staticClass:"table-item-content-title"},[e._v(" "+e._s(r.title)+" ")]),t("div",{staticClass:"table-item-content-value"},[t({functional:!0,render:function(){return r.customRender(n[r.dataIndex],n,o)}},{tag:"component"})],1)])})),1)],1)})),0)]:t("a-empty")],2):t("a-table",e._b({class:{"list-table-header-selection-checkbox":e.$attrs.rowSelection&&e.$attrs.rowSelection.type&&"checkbox"===e.$attrs.rowSelection.type&&e.showSelectionText},attrs:{pagination:!1,size:"middle"}},"a-table",e.$attrs,!1))},tt=[];function nt(e){return at(e)||it(e)||ot(e)||rt()}function rt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ot(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}function it(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function at(e){if(Array.isArray(e))return st(e)}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var lt={computed:{isViewSelect:function(){return"viewselect"===this.$attrs.source},hasChildren:function(){var e;return(null===(e=this.$attrs.dataSource)||void 0===e?void 0:e.flatMap((function(e){return e._childList})).filter((function(e){return e})).length)>0},titleColumn:function(){var e=this.$attrs.columns.find((function(e){var t;return"title"===(null===(t=e.schema)||void 0===t?void 0:t.display)}));return null!==e&&void 0!==e?e:this.$attrs.columns[0]},prefixTitleColumns:function(){return this.$attrs.columns.filter((function(e){var t;return null===(t=e.schema)||void 0===t||null===(t=t.configs)||void 0===t?void 0:t.find((function(e){return"card-title-prefix"===e.key&&"true"===e.value}))}))},contentColumn:function(){var e,t=this,n=null!==(e=this.$attrs.columns.filter((function(e){var t;return null===(t=e.schema)||void 0===t||null===(t=t.configs)||void 0===t?void 0:t.find((function(e){return"card-content"===e.key&&"true"===e.value}))})))&&void 0!==e?e:[];return n.length?n:this.$attrs.columns.filter((function(e){return![t.titleColumn].concat(nt(t.prefixTitleColumns)).includes(e)})).slice(0,4)},actionColumn:function(){return this.$attrs.columns.find((function(e){return"_action"===e.key}))},showSelectionText:function(){var e;if(null!==(e=this.$store.state.app.config)&&void 0!==e&&e.length){var t=Object.fromEntries(this.$store.state.app.config.map((function(e){return[e.config_key,e.config_value]})));return"1"===t["show-selection-text"]||!1}return!1}}},ct=lt,ut=(n("4b57"),n("2877")),ft=Object(ut["a"])(ct,et,tt,!1,null,"84223432",null),dt=ft.exports,pt=function(){var e=this,t=e._self._c;return t("a-list",e._b({attrs:{itemLayout:"horizontal",pagination:!1,size:"default",split:!1},scopedSlots:e._u([{key:"renderItem",fn:function(n){var r=n.item;return[t("a-list-item",[t(e.component,{tag:"component",attrs:{item:r}})],1)]}}])},"a-list",e.$attrs,!1))},ht=[],mt={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},vt=mt,yt=Object(ut["a"])(vt,pt,ht,!1,null,null,null),gt=yt.exports,bt={ListTable:dt,ListNormal:gt},wt=function(){var e=this,t=e._self._c;return t("a-form-model",{attrs:{layout:e.layout}},[e._l(e.attrs,(function(n,r){return t("Item",{key:"".concat(r,"-").concat(n.name),style:{width:e.$isMobile?"100%":"auto"},attrs:{formModel:e.actionModel,prop:n.name,schema:n,params:e.params,labelType:!1,isFilter:""},on:{change:function(t){return e.handleItemChange(t,n)},fill:function(t){return e.handleItemFill(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[col.name]"}})})),e.view.configs["filters.collapse"]?t("a-form-model-item",[t("a-popover",{attrs:{trigger:"click",placement:"bottomRight"},scopedSlots:e._u([{key:"content",fn:function(){return e._l(e.columns.slice(e.view.configs["filters.collapse"]),(function(n,r){return t("Item",{key:"".concat(r,"-").concat(n.name),attrs:{formModel:e.actionModel,prop:n.name,schema:n,params:e.params,labelType:!1,isFilter:""},on:{change:function(t){return e.handleItemChange(t,n)},fill:function(t){return e.handleItemFill(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[col.name]"}})}))},proxy:!0}],null,!1,2124004358),model:{value:e.collapse,callback:function(t){e.collapse=t},expression:"collapse"}},[t("a-button",{attrs:{type:"link",icon:"filter"}},[e._v(" 更多筛选")])],1)],1):e._e()],2)},_t=[],St=n("b7f9"),Ct=n("7b4d"),kt={mixins:[St["a"]],components:{Item:Ct["a"]},props:{columns:{type:Array},layout:{type:String,default:"inline"}},computed:{attrs:function(){return this.view.configs["filters.collapse"]?this.columns.slice(0,this.view.configs["filters.collapse"]):this.columns}},data:function(){return{collapse:!1}}},Et=kt,Ot=Object(ut["a"])(Et,wt,_t,!1,null,null,null),Tt=Ot.exports,At=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"inline-block"}},e._l(e.groups,(function(n,r){var o;return t("a-button-group",{key:"group-".concat(r),staticStyle:{"margin-right":"16px","flex-wrap":"wrap"}},[null!==(o=e.$attrs)&&void 0!==o&&null!==(o=o.configs)&&void 0!==o&&o["list.collapse.action-none"]?[isNaN(Number(e.$attrs.configs["list.collapse.action-none"]))?[e._l(n.actions.filter((function(t){return e.$attrs.configs["list.collapse.action-none"].split(",").includes(t.key)})),(function(n){return t("a-button",{key:n.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:n.primary?"primary":"default",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])})),n.actions.filter((function(t){return!e.$attrs.configs["list.collapse.action-none"].split(",").includes(t.key)})).length?t("a-dropdown",{scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",e._l(n.actions.filter((function(t){return!e.$attrs.configs["list.collapse.action-none"].split(",").includes(t.key)})),(function(n){return t("a-menu-item",{key:n.id},[t("a-button",{attrs:{type:"link",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])],1)})),1)]},proxy:!0}],null,!0)},[t("a-button",{staticStyle:{"margin-top":"2px","border-radius":"0 10px 10px 0"}},[t("a-icon",{attrs:{type:"more"}})],1)],1):e._e()]:[e._l(n.actions.slice(0,+e.$attrs.configs["list.collapse.action-none"]),(function(n){return t("a-button",{key:n.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:n.primary?"primary":"default",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])})),n.actions.slice(+e.$attrs.configs["list.collapse.action-none"]).length?t("a-dropdown",{scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",e._l(n.actions.slice(5),(function(n){return t("a-menu-item",{key:n.id},[t("a-button",{attrs:{type:"link",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])],1)})),1)]},proxy:!0}],null,!0)},[t("a-button",{staticStyle:{"margin-top":"2px","border-radius":"0 10px 10px 0"}},[t("a-icon",{attrs:{type:"more"}})],1)],1):e._e()]]:e._l(n.actions,(function(n){return t("a-button",{key:n.id,staticStyle:{"margin-top":"2px","margin-bottom":"2px"},attrs:{type:n.primary?"primary":"default",icon:n.icon,disabled:n.disabled},on:{click:function(t){return e.handleClick(n,t)}}},[e._v(" "+e._s(n.name)+" "),"file"===n.action?t("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(t){e.onFileChange(n,t.target.files),t.target.value=""}}}):e._e()])}))],2)})),1)},xt=[];function Nt(e){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(e)}function It(e,t,n){return(t=jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e){var t=Pt(e,"string");return"symbol"==Nt(t)?t:t+""}function Pt(e,t){if("object"!=Nt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Rt={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var e=[];return this.actions.forEach((function(t,n){var r=e.length-1;t.group||!n?e.push({actions:[t]}):e[r].actions.push(t)})),e}},methods:{handleClick:function(e,t){var n=t.target.getElementsByTagName("input");"file"===e.action?(t.stopPropagation(),n[0]&&void 0===n[0].click()||t.path&&t.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",e)},onFileChange:function(e,t){var n=e.list?e.list:"file";this.$emit("action",e,null,It({},n,t))}}},Dt=Rt,Bt=Object(ut["a"])(Dt,At,xt,!1,null,null,null),Lt=Bt.exports,Mt=function(){var e=this,t=e._self._c;return t("div",[e.$attrs.params.actionViewTip?t("a-alert",{staticStyle:{margin:"0 -24px 8px","white-space":"pre-line"},attrs:{message:e.$attrs.params.actionViewTip,"show-icon":"",banner:""}}):e._e(),t(e.createView,e._g(e._b({tag:"component",attrs:{pageKey:e.page.pageKey,viewKey:e.action.key||e.action.method.toLowerCase(),delay:!0,action:e.action}},"component",e.$attrs,!1),e.$listeners))],1)},Ut=[],Vt=n("0959"),qt={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:Object(Vt["a"])(Ic["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Ft=qt,Kt=Object(ut["a"])(Ft,Mt,Ut,!1,null,null,null),$t=Kt.exports,Ht=function(){var e=this,t=e._self._c;return e.$isMobile?t("div",{staticStyle:{display:"flex","justify-content":"center"}},[t("div",{staticClass:"pagination-total"},[e._v("共 "+e._s(e.$attrs.total)+" 项")]),e.$attrs.total/e.$attrs.pageSize>=1?t("a-pagination",e._g({staticStyle:{"margin-left":"16px"},attrs:{total:e.$attrs.total,current:e.$attrs.current,pageSize:e.$attrs.pageSize,size:"small"}},e.$listeners)):e._e()],1):t("a-pagination",e._g(e._b({attrs:{"show-quick-jumper":""}},"a-pagination",e.$attrs,!1),e.$listeners))},Gt=[],zt=(n("2895"),{}),Yt=Object(ut["a"])(zt,Ht,Gt,!1,null,"04c48b65",null),Wt=Yt.exports,Qt=n("3aaf"),Xt=function(){var e=this,t=e._self._c;return t("span",[e.editable&&["write","updateonly"].includes(e.schema.access)?t("Item",{attrs:{formModel:e.editRow,prop:e.schema.name,schema:e.schema,params:{},labelType:!1},on:{change:function(t){return e.$emit("change",t)},fill:function(t){return e.$emit("fill",t)}},model:{value:e.editValue,callback:function(t){e.editValue=t},expression:"editValue"}}):e.component?t(e.component,e._b({tag:"component",attrs:{text:e.text}},"component",e.$props,!1)):e.script?t("span",{domProps:{innerHTML:e._s(e.text)}}):"title"===e.schema.display?t("a",{on:{click:function(t){return e.$emit("profile")}}},[e._v(" "+e._s(e.text)+" ")]):t("span",[e._v(e._s(e.text))])],1)},Zt=[];function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return(t=rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e){var t=on(e,"string");return"symbol"==Jt(t)?t:t+""}function on(e,t){if("object"!=Jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var an={mixins:[Re["a"]],components:{Item:Ct["a"]},props:["editable","value","row","schema","mode","viewURL","idName","vid","rowIndex"],data:function(){return{component:null,script:null,editValue:this.value}},computed:{text:function(){return this.formatter(this.row,this.value,this.schema)},editRow:function(){return tn({},this.row)}},created:function(){var e=this;if(this.schema&&this.schema.format){var t=this.schema.format.slice(0,8);"function"===t?this.script=this.schema.format:this.component={props:["editable","value","row","schema","mode","viewURL","idName","text","vid","rowIndex"],data:function(){return{model:{}}},methods:{profile:function(){e.$emit("profile")}},template:"title"===this.schema.display?'<a @click="profile">'.concat(this.schema.format,"</a> "):this.schema.format}}},watch:{value:function(e,t){e!==t&&(this.editValue=e)},editable:function(e){e&&this.editValue!==this.editRow[this.schema.name]&&(this.editValue=this.editRow[this.schema.name])}}},sn=an,ln=Object(ut["a"])(sn,Xt,Zt,!1,null,null,null),cn=ln.exports,un=function(){var e=this,t=e._self._c;return t("iframe",{attrs:{src:"".concat(e.origin,"/aichat#/?app_key=").concat(e.appKey,"&res_key=").concat(e.resKey),height:"100%",width:"100%",frameborder:"0",id:"ifmare"}})},fn=[],dn=n("8bbf"),pn=n.n(dn),hn=n("4e72");function mn(e){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return(t=bn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e){var t=wn(e,"string");return"symbol"==mn(t)?t:t+""}function wn(e,t){if("object"!=mn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Sn(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Sn(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Sn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Sn(f,"constructor",c),Sn(c,"constructor",l),l.displayName="GeneratorFunction",Sn(c,o,"GeneratorFunction"),Sn(f),Sn(f,o,"Generator"),Sn(f,r,(function(){return this})),Sn(f,"toString",(function(){return"[object Generator]"})),(_n=function(){return{w:i,m:d}})()}function Sn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Sn=function(e,t,n,r){function i(t,n){Sn(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Sn(e,t,n,r)}function Cn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function kn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Cn(i,r,o,a,s,"next",e)}function s(e){Cn(i,r,o,a,s,"throw",e)}a(void 0)}))}}var En={name:"aichat-form",components:{},mounted:function(){var e=this;return kn(_n().m((function t(){return _n().w((function(t){while(1)switch(t.n){case 0:e.setupIframe(),e.initButtons();case 1:return t.a(2)}}),t)})))()},beforeDestroy:function(){this._vueInstances&&Array.isArray(this._vueInstances)&&this._vueInstances.forEach((function(e){e.$destroy()}))},data:function(){var e;return{appKey:this.$store&&this.$store.state&&this.$store.state.app&&this.$store.state.app.app_key||"",resKey:this.$route&&this.$route.meta&&this.$route.meta.key?this.$route.meta.key.replace(/(\/)(.*)/,(function(e,t,n){return t+n.replace(/\//g,"-")})):"",childElement:null,origin:null===(e=window)||void 0===e||null===(e=e.location)||void 0===e?void 0:e.origin,legend:this.$attrs&&this.$attrs.action&&this.$attrs.action.legend||""}},computed:{},created:function(){},methods:{initButtons:function(){var e=this;this.$nextTick((function(){var t=document.querySelector(".ant-drawer-header");if(t){var n=new pn.a({methods:{handleCommit:function(){var e=document.getElementById("chatai");e&&e.contentWindow.postMessage({type:"customEvent",message:"Hello from parent"},"*")}},components:{Button:hn["Button"]},template:'\n <Button class="ant-btn" @click="handleCommit" style="position: absolute; left: 104px; top: 12px;" icon="plus">\n 开启新对话\n </Button>\n '}),r=new pn.a({methods:{handleHistoryCommit:function(){var e=document.getElementById("chatai");e&&e.contentWindow.postMessage({type:"customHistoryEvent",message:"Hello from parent"},"*")}},components:{Button:hn["Button"]},template:'\n <Button class="ant-btn" @click="handleHistoryCommit" style="position: absolute; left: 242px; top: 12px;" icon="message">\n 历史对话\n </Button>\n '});e._vueInstances=[n,r],t.appendChild(n.$mount().$el),t.appendChild(r.$mount().$el)}else console.warn("未找到 .ant-drawer-header 元素")}))},setupIframe:function(){this.childElement=document.getElementById("chatai"),this.childElement&&(this.childElement.parentNode.style.height="calc(100vh - 55px)",this.childElement.parentNode.style.padding="0")},handleCommit:function(){var e=yn({},this.actionModel);this.$emit("commit",e)}}},On=En,Tn=(n("2295"),Object(ut["a"])(On,un,fn,!1,null,"38b8eb2a",null)),An=Tn.exports;function xn(e){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(e)}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jn(e,t,n){return(t=Pn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e){var t=Rn(e,"string");return"symbol"==xn(t)?t:t+""}function Rn(e,t){if("object"!=xn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Dn={mixins:[i,a,P,ze,Re["a"],E,O],components:In(In(In({},bt),Ic),{},{FilterForm:Tt,ActionGroup:Lt,ActionView:$t,PaginationSize:Wt,Popup:Qt["a"],Cell:cn,AichatForm:An}),data:function(){return{aiVisible:!1}},computed:{actionConfigs:function(){var e,t;return this.action&&null!==(e=null===(t=this.action.configs)||void 0===t?void 0:t.reduce((function(e,t){return e[t.key]=t.value,e}),{}))&&void 0!==e?e:{}}},activated:function(){this.configs&&"true"===this.configs["profile.mode"]&&"Profile"!==this.actionViewType&&this.dataSource.length&&!this.$route.params.id&&this.handleModelProfile(this.dataSource[0])},mounted:function(){var e=this;if(this.configs&&"true"===this.configs["profile.mode"])var t=this.$watch("dataSource",(function(){"Profile"!==e.actionViewType&&e.dataSource.length&&!e.$route.params.id&&(e.handleModelProfile(e.dataSource[0]),t())}))},methods:{handleAichatAction:function(){this.aiVisible=!0}}},Bn=Dn,Ln=(n("284e"),Object(ut["a"])(Bn,r,o,!1,null,"52e689d4",null)),Mn=Ln.exports,Un=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.actioning}},[t(e.layout,{tag:"component",attrs:{source:"profile"},scopedSlots:e._u([e.$isMobile?{key:"mobile-header",fn:function(){var n,r;return[e.routeId&&!e.onlyProfile?t("a-button",{staticStyle:{color:"rgba(0, 0, 0, 0.9)"},attrs:{type:"link",icon:"left"},on:{click:function(t){return e.handleAction(e.backActions[0])}}}):e._e(),t("div",{staticStyle:{"font-size":"17px","font-weight":"500",flex:"1","text-align":"center"}},[e._v(" "+e._s(null===(n=e.profile)||void 0===n?void 0:n[null===(r=e.titleColumn)||void 0===r?void 0:r.name])+" ")]),t("a-button",{staticStyle:{color:"rgba(0, 0, 0, 0.9)"},attrs:{type:"link",icon:"menu"},on:{click:function(t){e.settingVisible=!0}}})]},proxy:!0}:null,e.$isMobile?{key:"actions-none",fn:function(){return[e.navActions.length?t("ActionGroup",{attrs:{actions:e.navActions},on:{action:e.handleAction}}):e._e()]},proxy:!0}:{key:"actions-none",fn:function(){return[e.routeId&&!e.onlyProfile?t("ActionGroup",{attrs:{actions:e.backActions},on:{action:e.handleAction}}):e._e(),e.navActions.length?t("ActionGroup",{attrs:{actions:e.navActions},on:{action:e.handleAction}}):e._e()]},proxy:!0},e.actions.length?{key:"actions-single",fn:function(){return[t("ActionGroup",{attrs:{actions:e.actions},on:{action:e.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[t("ActionGroup",{attrs:{actions:e.settingActions},on:{action:e.handleAction}})]},proxy:!0}],null,!0)},[t("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!e.profile}},[e.profile?t("profile-".concat(e.configs["profile.widget"]||(e.$isMobile?"tabs":"normal")),{tag:"component",attrs:{groups:e.groups,columns:e.columns,subviews:e.subviews,loading:e.loading,profile:e.profile,column:e.parentIds?1:2,configs:e.configs,source:"profile"},scopedSlots:e._u([{key:"cell",fn:function(n){var r=n.value,o=n.column;return[t("Cell",{attrs:{row:e.profile,schema:o,value:r}})]}},{key:"action",fn:function(){return[t("ActionGroup",{attrs:{actions:e.actions},on:{action:e.handleAction}})]},proxy:!0}],null,!1,1366521354)}):e._e()],1),e.actionViewVisible?t("Popup",{class:{"ant-modal-tip":e.actionParams.actionViewTip},attrs:{visible:e.actionViewVisible,title:e.action.name,type:e.actionViewMode,okButtonProps:e.actionOkButtonProps,cancelButtonProps:e.actionCancelButtonProps,footer:"hide"===e.actionParams.footer?null:void 0},on:{ok:e.submitActionView,close:e.closeActionView,cancel:e.closeActionView},scopedSlots:e._u([e.actionConfigs["form.footer"]?{key:"footer",fn:function(){return[t(e.actionConfigs["form.footer"],{tag:"component",attrs:{action:e.action,submited:e.actionSubmited,values:e.actionModel,modelViewType:e.actionViewType,widget:e.actionViewWidget,parentIds:e.parentIds,params:e.actionParams,commitResult:e.actionCommitResult,selections:e.selections,schema:e.schema},on:{ok:e.submitActionView,close:e.closeActionView}})]},proxy:!0}:null],null,!0)},[e.actionViewVisible?t("ActionView",{attrs:{action:e.action,submited:e.actionSubmited,values:e.actionModel,modelViewType:e.actionViewType,widget:e.actionViewWidget,parentIds:e.parentIds,params:e.actionParams,selections:e.profile,schema:e.schema,commitResult:e.actionCommitResult},on:{commit:e.commitActionView}}):e._e(),e.action.params&&e.action.params.autofill?t("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[t("a-col",[t("a-checkbox",{on:{change:e.handleAutoFill}},[e._v(" 自动填充表单 ")])],1),t("a-col",[t("a-space",[t("a-button",{attrs:{icon:"close",disabled:e.committing},on:{click:e.closeActionView}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary",icon:"check",loading:e.committing},on:{click:e.submitActionView}},[e._v(" 确认 ")])],1)],1)],1):e._e()],1):e._e()],1)],1)},Vn=[];function qn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Fn(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Fn(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Fn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Fn(f,"constructor",c),Fn(c,"constructor",l),l.displayName="GeneratorFunction",Fn(c,o,"GeneratorFunction"),Fn(f),Fn(f,o,"Generator"),Fn(f,r,(function(){return this})),Fn(f,"toString",(function(){return"[object Generator]"})),(qn=function(){return{w:i,m:d}})()}function Fn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fn=function(e,t,n,r){function i(t,n){Fn(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Fn(e,t,n,r)}function Kn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $n(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Kn(i,r,o,a,s,"next",e)}function s(e){Kn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Hn(e){return Wn(e)||Yn(e)||zn(e)||Gn()}function Gn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zn(e,t){if(e){if("string"==typeof e)return Qn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qn(e,t):void 0}}function Yn(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Wn(e){if(Array.isArray(e))return Qn(e)}function Qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Xn={props:{profileId:{type:String},values:{type:Object},hasList:{type:Boolean,default:!0},editMode:{type:String,default:"none",enum:["none","item","action","default"]},tileMode:{type:String,enum:["normal","portal","navigation"]},groupMode:{type:String,enum:["layout","tabs","steps"]},groupLayout:{type:String,enum:["horizontal","vertical"]},detailGroupName:{type:String,default:"详情"},detailLayout:{type:String,enum:["header","first-group","mix"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{setProfileID:null,routeId:null,unwatchRoute:null}},computed:{columns:function(){var e,t=this,n=((null===(e=this.model)||void 0===e?void 0:e.attrs)||[]).filter((function(e){var n=e.params,r=void 0===n?{}:n,o=r.show;return!["all"].includes(e.hidden)&&"model"!==e.metaType&&"link"!==e.type&&(!o||Object(R["a"])(o,t.profile))})).filter((function(e){var n,r,o,i=null===(n=e.configs)||void 0===n?void 0:n.find((function(e){return"visibleWhenParent"===e.key}));if(null===(r=t.params)||void 0===r||!r.$parent||!i)return!0;var a=null===(o=t.params)||void 0===o?void 0:o.$parent,s=new Function(Object.keys(a),"return ".concat(i.value));return s.apply(void 0,Hn(Object.values(a)))}));return n},subviews:function(){var e,t=this;return((null===(e=this.model)||void 0===e?void 0:e.attrs)||[]).filter((function(e){var n=e.params,r=void 0===n?{}:n,o=r.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!o||Object(R["a"])(o,t.profile))}))},groups:function(){var e=[];return this.columns.forEach((function(t,n){var r=e.length-1;t.group||!n?e.push({name:t.group,columns:[t]}):e[r].columns.push(t)})),e},layouts:function(){},id:function(){var e=this.values,t=this.idName,n=this.profileId,r=this.routeId,o=this.findAll;return e?e[t]:n||r||o[0]&&o[0][t]},profile:function(){var e=this.values||this.findOne(this.id)||null;return this.params.$parent&&(e.$parent=this.params.$parent),e},next:function(){var e=this,t=this.findAll.findIndex((function(t){return t[e.idName]===e.id}));return this.findAll[t+1]},previous:function(){var e=this,t=this.findAll.findIndex((function(t){return t[e.idName]===e.id}));return this.findAll[t-1]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"list"}]}},methods:{showColumn:function(){},navigationTo:function(e){this.parentIds||"page"!==this.mode?this.$emit("profile",e):this.$router.replace({params:{id:e[this.idName]}})},handleNext:function(){this.next&&this.navigationTo(this.next)},handlePrevious:function(){this.previous&&this.navigationTo(this.previous)},handleList:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.replace(this.$route.meta.key)},load:function(){var e=arguments,t=this;return $n(qn().m((function n(){var r,o,i;return qn().w((function(n){while(1)switch(n.n){case 0:return r=e.length>0&&void 0!==e[0]&&e[0],n.n=1,t.loadData({key:t.id,mute:r});case 1:if(o=n.v,!(o instanceof Error)){n.n=2;break}return i=o.response.data.code,404===i&&t.handleBack(),n.a(2);case 2:return n.a(2,o)}}),n)})))()}},created:function(){this.routeId=this.$route.params.id},activated:function(){var e=this;this.routeId=this.$route.params.id,!this.profile&&this.id&&this.load(),this.unwatchRoute=this.$watch("$route.params.id",(function(t){e.routeId=t}))},deactivated:function(){this.unwatchRoute&&this.unwatchRoute()}};function Zn(e){return nr(e)||tr(e)||er(e)||Jn()}function Jn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function er(e,t){if(e){if("string"==typeof e)return rr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rr(e,t):void 0}}function tr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function nr(e){if(Array.isArray(e))return rr(e)}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var or=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.loading}},e._l(e.groups,(function(n,r){return t("Descriptions",{key:"g-".concat(r),staticClass:"profile-normal-descriptions",staticStyle:{"margin-bottom":"16px"},attrs:{column:e.column,size:"small",bordered:"",profile:""}},[n.name?t("div",{attrs:{slot:"title"},slot:"title"},[t("strong",[e._v(e._s(n.name))])]):e._e(),e._l(n.columns,(function(n,o){return[!e.collapse||e.showDescItems["showDescItem".concat(r)]||o<e.collapse?t("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[e._t("cell",null,{value:e.profile[n.name],column:n})],2):e._e()]})),e.collapse?t("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[t("a",{staticClass:"showdesc-btn",on:{click:function(t){e.showDescItems["showDescItem".concat(r)]=!e.showDescItems["showDescItem".concat(r)]}}},[t("a-icon",{attrs:{type:e.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):e._e()],2)})),1),e.tabs.length?t("a-card",{attrs:{size:"small",type:"inner"}},[t("a-tabs",{attrs:{animated:!1,"default-active-key":e.activeTabKey,size:"small"},on:{change:e.handleChange}},e._l(e.tabs,(function(n,r){return t("a-tab-pane",{key:String(r),attrs:{tab:n.tab}},["link"===n.type?t("Frame",{attrs:{url:e.templateURL(n.value,e.profile),height:e.iframeHeight(n.value)}}):t("keep-alive",[t(e.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Zn(e.parentIds||[]),[e.id]),pageKey:e.pageKey,viewKey:n.name,params:{$parent:e.profile}}})],1)],1)})),1)],1):e._e()],1)},ir=[],ar=n("f24a"),sr=n("f765");function lr(e){return lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lr(e)}function cr(e){return pr(e)||dr(e)||fr(e)||ur()}function ur(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fr(e,t){if(e){if("string"==typeof e)return hr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hr(e,t):void 0}}function dr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function pr(e){if(Array.isArray(e))return hr(e)}function hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yr(e,t,n){return(t=gr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(e){var t=br(e,"string");return"symbol"==lr(t)?t:t+""}function br(e,t){if("object"!=lr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var wr,_r,Sr=ar["a"].DescriptionsItem,Cr={components:vr({Descriptions:ar["a"],DescriptionsItem:Sr,Frame:sr["a"]},Ic),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:cr(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&cr(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(e){this.activeTabKey=e},templateURL:function(e,t){return Object(D["a"])(e,t)},iframeHeight:function(e){var t;if(e&&e.split("?")[1]){var n=e.split("?")[1].split("&").find((function(e){return e.includes("height")}))||void 0;n&&(t=n.split("=")[1])}return t}},created:function(){var e=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(t,n){e.$set(e.showDescItems,"showDescItem".concat(n),!1)})),this.$route.query&&this.$route.query.activeTabKey){var t=this.tabs.find((function(t){return t.name===e.$route.query.activeTabKey}));t&&(this.activeTabKey=t.key)}},computed:{tabs:function(){return this.views.map((function(e,t){return vr(vr({},e),{},{key:String(t),tab:e.alias||e.name})}))},Views:function(){var e=this;return this.views.map((function(t){return{extends:Object(Vt["a"])(Ic.ModelList)("".concat(e.storeNamespace,"/:id/").concat(t.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=cr(this.subviews),this.id=this.view.id}}},kr=Cr,Er=(n("4927"),Object(ut["a"])(kr,or,ir,!1,null,null,null)),Or=Er.exports,Tr={},Ar=Object(ut["a"])(Tr,wr,_r,!1,null,null,null),xr=Ar.exports;function Nr(e){return Rr(e)||Pr(e)||jr(e)||Ir()}function Ir(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jr(e,t){if(e){if("string"==typeof e)return Dr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dr(e,t):void 0}}function Pr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Rr(e){if(Array.isArray(e))return Dr(e)}function Dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Br=function(){var e=this,t=e._self._c;return t("a-row",[e.view.configs["profile.tile.hideAnchor"]?e._e():t("a-col",{attrs:{span:3}},[t("a-anchor",{attrs:{affix:e.affix,getContainer:e.getContainer,offsetTop:e.view.configs["profile.tile.offsetTop"]&&Number(e.view.configs["profile.tile.offsetTop"])||0},on:{change:e.handleChange,click:e.handleClick}},[e._l(e.groups,(function(n,r){return t("a-anchor-link",{key:"anchor-g-".concat(r),attrs:{href:"#profile-tile-group-".concat(r),title:n.name},nativeOn:{click:function(t){return t.preventDefault(),e.scrollTo("profile-tile-group-".concat(r))}}})})),e._l(e.tabs,(function(n,r){return t("a-anchor-link",{key:"anchor-t-".concat(r),attrs:{href:"#profile-tile-tab-".concat(r),title:n.tab},nativeOn:{click:function(t){return t.preventDefault(),e.scrollTo("profile-tile-tab-".concat(r))}}})}))],2)],1),t("a-col",{attrs:{span:e.view.configs["profile.tile.hideAnchor"]?24:21}},[t("a-spin",{attrs:{spinning:e.loading}},e._l(e.groups,(function(n,r){return t("a-card",{key:"g-".concat(r),staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-".concat(r),title:n.name,bordered:!1,headStyle:{borderBottom:0}}},[e._e(),t("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:e.column,size:"small",bordered:"",profile:""}},[e._l(n.columns,(function(n,o){return[!e.collapse||e.showDescItems["showDescItem".concat(r)]||o<e.collapse?t("DescriptionsItem",{key:n.name,attrs:{span:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[e._t("cell",null,{value:e.profile[n.name],column:n})],2):e._e()]})),e.collapse?t("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[t("a",{staticClass:"showdesc-btn",on:{click:function(t){e.showDescItems["showDescItem".concat(r)]=!e.showDescItems["showDescItem".concat(r)]}}},[t("a-icon",{attrs:{type:e.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):e._e()],2)],1)})),1),e._l(e.tabs,(function(n,r){return t("a-card",{key:String(r),staticClass:"gs-card",attrs:{tab:n.tab,size:"small",id:"profile-tile-tab-".concat(r),title:n.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===n.type?t("Frame",{attrs:{url:e.templateURL(n.value,e.profile),height:e.iframeHeight(n.value)}}):t("keep-alive",[t(e.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Nr(e.parentIds||[]),[e.id]),pageKey:e.pageKey,viewKey:n.name,params:{$parent:e.profile}}})],1)],1)}))],2)],1)},Lr=[];function Mr(e){return Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(e)}function Ur(e){return Kr(e)||Fr(e)||qr(e)||Vr()}function Vr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qr(e,t){if(e){if("string"==typeof e)return $r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(e,t):void 0}}function Fr(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Kr(e){if(Array.isArray(e))return $r(e)}function $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zr(e,t,n){return(t=Yr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e){var t=Wr(e,"string");return"symbol"==Mr(t)?t:t+""}function Wr(e,t){if("object"!=Mr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Qr=ar["a"].DescriptionsItem,Xr={components:Gr({Descriptions:ar["a"],DescriptionsItem:Qr,Frame:sr["a"]},Ic),inject:["page","view","container"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Ur(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Ur(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,affix:!0,showDescItems:{}}},created:function(){var e=this;this.groups.length&&this.collapse&&this.groups.forEach((function(t,n){e.$set(e.showDescItems,"showDescItem".concat(n),!1)}))},methods:{handleChange:function(e){},templateURL:function(e,t){return Object(D["a"])(e,t)},handleClick:function(e,t){e.preventDefault()},scrollTo:function(e){document.getElementById(e)&&document.getElementById(e).scrollIntoView({behavior:"smooth",block:"start"})},getContainer:function(){var e=this.container&&this.container.$refs.container;return e&&e.$el||e||window},iframeHeight:function(e){var t;if(e&&e.split("?")[1]){var n=e.split("?")[1].split("&").find((function(e){return e.includes("height")}))||void 0;n&&(t=n.split("=")[1])}return t}},computed:{tabs:function(){return this.views.map((function(e,t){return Gr(Gr({},e),{},{key:String(t),tab:e.alias||e.name})}))},Views:function(){var e=this;return this.views.map((function(t){return{extends:Object(Vt["a"])(Ic.ModelList)("".concat(e.storeNamespace,"/:id/").concat(t.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=Ur(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Zr=Xr,Jr=(n("2124"),Object(ut["a"])(Zr,Br,Lr,!1,null,null,null)),eo=Jr.exports;function to(e){return io(e)||oo(e)||ro(e)||no()}function no(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ro(e,t){if(e){if("string"==typeof e)return ao(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ao(e,t):void 0}}function oo(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function io(e){if(Array.isArray(e))return ao(e)}function ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var so=function(){var e=this,t=e._self._c;return e.tabs.length?t("div",[e.basicAttrsColumns.length?t("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:e.column,size:"small",bordered:"",profile:""}},[e._l(e.basicAttrsColumns,(function(n){return[t("DescriptionsItem",{key:n.name,attrs:{span:e.$isMobile?2:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[e._t("cell",null,{value:e.profile[n.name],column:n})],2)]}))],2):e._e(),t("a-tabs",{attrs:{animated:!1,"default-active-key":e.activeTabKey},on:{change:e.handleChange}},e._l(e.tabs,(function(n,r){return t("a-tab-pane",{key:String(r),attrs:{tab:n.tab}},["profile"===n.type?t("a-spin",{attrs:{spinning:e.loading}},e._l(e.groups,(function(n,r){return t("Descriptions",{key:"g-".concat(r),staticStyle:{"margin-bottom":"16px"},attrs:{column:e.column,size:"small",bordered:"",profile:""}},[n.name?t("div",{attrs:{slot:"title"},slot:"title"},[t("strong",[e._v(e._s(n.name))])]):e._e(),e._l(e.subAttrsColumns(n.columns),(function(n,o){return[!e.collapse||e.showDescItems["showDescItem".concat(r)]||o<e.collapse?t("DescriptionsItem",{key:n.name,attrs:{span:e.$isMobile?2:n.column?n.column/12:1,label:n.alias||n.name,tooltip:n.legend}},[e._t("cell",null,{value:e.profile[n.name],column:n})],2):e._e()]})),e.collapse?t("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[t("a",{staticClass:"showdesc-btn",on:{click:function(t){e.showDescItems["showDescItem".concat(r)]=!e.showDescItems["showDescItem".concat(r)]}}},[t("a-icon",{attrs:{type:e.showDescItems["showDescItem".concat(r)]?"double-left":"double-right"}})],1)]):e._e()],2)})),1):"link"===n.type?t("Frame",{attrs:{url:e.templateURL(n.value,e.profile),height:e.iframeHeight(n.value)}}):t("keep-alive",[t(e.Views[r],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(to(e.parentIds||[]),[e.id]),pageKey:e.pageKey,viewKey:n.name,params:{$parent:e.profile}}})],1)],1)})),1)],1):e._e()},lo=[];function co(e){return co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},co(e)}function uo(e){return mo(e)||ho(e)||po(e)||fo()}function fo(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function po(e,t){if(e){if("string"==typeof e)return vo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vo(e,t):void 0}}function ho(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function mo(e){if(Array.isArray(e))return vo(e)}function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t,n){return(t=wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wo(e){var t=_o(e,"string");return"symbol"==co(t)?t:t+""}function _o(e,t){if("object"!=co(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var So=ar["a"].DescriptionsItem,Co={components:go({Descriptions:ar["a"],DescriptionsItem:So,Frame:sr["a"]},Ic),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1},configs:{type:Object}},data:function(){return{activeTabKey:"0",views:null,id:this.view.id,parentIds:this.view.parentIds&&uo(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(e){this.$store.commit("setSubView","0"!==e),this.activeTabKey=e},templateURL:function(e,t){return Object(D["a"])(e,t)},iframeHeight:function(e){var t;if(e&&e.split("?")[1]){var n=e.split("?")[1].split("&").find((function(e){return e.includes("height")}))||void 0;n&&(t=n.split("=")[1])}return t},subAttrsColumns:function(e){var t=this;return this.basicAttrs.length?e.filter((function(e){return!t.basicAttrs.includes(e.name)})):e}},created:function(){var e=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(t,n){e.$set(e.showDescItems,"showDescItem".concat(n),!1)})),this.$route.query&&this.$route.query.activeTabKey){var t=this.tabs.find((function(t){return t.name===e.$route.query.activeTabKey}));t&&(this.activeTabKey=t.key)}this.views=[this.profileTab].concat(uo(this.subviews))},computed:{tabs:function(){return this.views?this.views.map((function(e,t){return go(go({},e),{},{key:String(t),tab:e.alias||e.name})})):[]},Views:function(){var e=this;return this.views?this.views.map((function(t){return{extends:Object(Vt["a"])(Ic.ModelList)("".concat(e.storeNamespace,"/:id/").concat(t.name))}})):[]},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null},basicAttrs:function(){var e=[];return this.view.configs&&this.view.configs["profile.tabs.basicAttrs"]&&(e=this.view.configs["profile.tabs.basicAttrs"].split(",")),e},basicAttrsColumns:function(){var e=this;return this.basicAttrs.length?this.columns.filter((function(t){return e.basicAttrs.includes(t.name)})):[]},profileTab:function(){return{name:this.view.configs&&this.view.configs["profile.tabs.profileTitle"]?this.view.configs["profile.tabs.profileTitle"]:"详情",type:"profile"}}},watch:{profile:function(){this.views=[this.profileTab].concat(uo(this.subviews)),this.id=this.view.id}}},ko=Co,Eo=(n("b9aa"),Object(ut["a"])(ko,so,lo,!1,null,null,null)),Oo=Eo.exports,To={ProfileNormal:Or,ProfilePortal:xr,ProfileTile:eo,ProfileTabs:Oo};function Ao(e){return Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(e)}function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(n),!0).forEach((function(t){Io(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Io(e,t,n){return(t=jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jo(e){var t=Po(e,"string");return"symbol"==Ao(t)?t:t+""}function Po(e,t){if("object"!=Ao(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ro={mixins:[i,a,P,ze,Re["a"],Xn],components:No({ActionGroup:Lt,ActionView:$t,Popup:Qt["a"],Cell:cn},To),computed:{settingVisible:{get:function(){return this.$store.state.settingVisible},set:function(e){this.$store.commit("setSettingVisible",e)}},titleColumn:function(){var e=this.columns.find((function(e){return"title"===(null===e||void 0===e?void 0:e.display)}));return null!==e&&void 0!==e?e:this.columns[0]},onlyProfile:function(){return this.configs?"true"===this.configs["profile.mode"]:null},actionConfigs:function(){var e,t;return this.action&&null!==(e=null===(t=this.action.configs)||void 0===t?void 0:t.reduce((function(e,t){return e[t.key]=t.value,e}),{}))&&void 0!==e?e:{}}}},Do=Ro,Bo=(n("c6d6"),Object(ut["a"])(Do,Un,Vn,!1,null,null,null)),Lo=Bo.exports,Mo=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.schemaLoading}},[t("layout-view-blank",{tag:"component"},[e.commitResult.template&&e.commitResult.data?t("a-result",{attrs:{status:"success",title:e.message}},[t(e.commitResult,{tag:"component"})],1):t(e.formWidget||e.widget,e._g(e._b({tag:"component",attrs:{action:e.action,columns:e.columns,params:e.params}},"component",e.$attrs,!1),e.$listeners))],1)],1)},Uo=[];function Vo(e){return $o(e)||Ko(e)||Fo(e)||qo()}function qo(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fo(e,t){if(e){if("string"==typeof e)return Ho(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ho(e,t):void 0}}function Ko(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function $o(e){if(Array.isArray(e))return Ho(e)}function Ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Go={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},zo={model:{event:"change"},props:{value:{type:[Object,Array]},action:{type:Object},layout:{type:String,enum:["horizontal","vertical","inline","group"]},editType:{type:String,default:"create",enum:["create","update","bulk","save"]},submitType:{type:String,default:"submit",enum:["change","submit"]},allowUnsubmittedCache:{type:Boolean,default:!0},allowPreviousCache:{type:Boolean,default:!1},displayReadonly:{type:String,default:"none",enum:["none","readonly","all"]},isGroup:{type:Boolean,default:!1},commitResult:{type:Object},submitActions:{type:Array,default:function(){return[{name:"确定",icon:"",handle:"submit"},{name:"取消",icon:"",handle:"cancel"}]}}},created:function(){"create"===this.editType&&this.allowUnsubmittedCache&&this.getLocalStore()},mounted:function(){this.loadSchema()},computed:{viewSchema:function(){var e;return null===(e=this.$store.state[this.storeNamespace])||void 0===e?void 0:e.schema},schemaLoading:function(){return!this.viewSchema},columns:function(){var e,t,n,r,o,i,a=this,s=this.action,l=this.params,c=this.model,u=this.editType,f=this.hide,d=s&&s.view?null===(e=s.view)||void 0===e||null===(e=e.model)||void 0===e?void 0:e.attrs:l&&l.attrs?l.attrs:null!==c&&void 0!==c&&c.attrs?c.attrs:[],p=null===(t=this.viewSchema)||void 0===t||null===(t=t.model)||void 0===t||null===(t=t.actions)||void 0===t?void 0:t.find((function(e){var t;return e.id===(null===(t=a.action)||void 0===t?void 0:t.id)})),h=null!==(n=null===p||void 0===p||null===(r=p.view)||void 0===r||null===(r=r.model)||void 0===r?void 0:r.attrs)&&void 0!==n?n:null===(o=this.viewSchema)||void 0===o||null===(o=o.model)||void 0===o?void 0:o.attrs,m=null!==(i=null!==h&&void 0!==h?h:d)&&void 0!==i?i:[];if(s&&s.list){var v=this.action.list.split(",");return m.filter((function(e){return!f.includes(e.name)&&v.includes(e.name)}))}return m.filter((function(e){return Go[u].includes(e.access)&&!f.includes(e.name)&&"collection"!==e.metaType&&"model"!==e.metaType&&"link"!==e.type})).filter((function(e){var t,n,r,o=null===(t=e.configs)||void 0===t?void 0:t.find((function(e){return"visibleWhenParent"===e.key}));if(null===(n=a.params)||void 0===n||!n.$parent||!o)return!0;var i=null===(r=a.params)||void 0===r?void 0:r.$parent,s=new Function(Object.keys(i),"return ".concat(o.value));return s.apply(void 0,Vo(Object.values(i)))}))},rules:function(){},formWidget:function(){var e,t,n=Object.fromEntries(((null===(e=this.action)||void 0===e?void 0:e.configs)||[]).map((function(e){return[e.key,e.value]})))||[],r=n["form.widget"]||(null===(t=this.configs)||void 0===t?void 0:t["form.widget"])||null;return r}},methods:{setLocalStore:function(){},getLocalStore:function(){},reset:function(){},validate:function(){},handleChange:function(){this.$emit("change")},handleSubmit:function(){this.$emit("submited")},handleCommit:function(){this.$emit("commited")}}},Yo=function(){var e=this,t=e._self._c;return t("a-form-model",{ref:"form",attrs:{rules:e.rules,model:e.actionModel}},e._l(e.groupAttrs,(function(n,r){return t("div",{key:n.groupName},[t("a-row",{attrs:{gutter:24}},[t("div",{staticStyle:{padding:"0 12px"}},[r?t("a-divider",{staticClass:"divider"}):e._e()],1),t("a-col",{attrs:{span:24}},[t("div",{staticClass:"divider-title"},[e._v(e._s(n.groupName))])]),e._l(n.list,(function(n){return t("a-col",{key:n.name,staticStyle:{"min-height":"0"},attrs:{span:e.$isMobile?24:n.column||12}},[t("Item",{attrs:{formModel:e.actionModel,prop:n.name,schema:n,params:e.params},on:{change:function(t){return e.handleItemChange(t,n)},fill:function(t){return e.handleItemFill(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[col.name]"}})],1)}))],2)],1)})),0)},Wo=[];function Qo(e){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(e)}function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){Jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jo(e,t,n){return(t=ei(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e){var t=ti(e,"string");return"symbol"==Qo(t)?t:t+""}function ti(e,t){if("object"!=Qo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ni={mixins:[St["a"]],components:{Item:Ct["a"]},computed:{groupAttrs:function(){var e=null,t=[];return this.columns.forEach((function(n){var r=Zo({},n);r.group||(r.group=e||""),e=r.group;var o=t.find((function(e){return e.groupName===r.group}));o?o.list.push(r):t.push({list:[r],groupName:r.group})})),t}}},ri=ni,oi=(n("de3d"),Object(ut["a"])(ri,Yo,Wo,!1,null,"0f9313a1",null)),ii=oi.exports,ai=function(){var e=this,t=e._self._c;return t("div",[t("a-upload",{attrs:{multiple:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[t("a-button",[t("a-icon",{attrs:{type:"upload"}}),e._v(" 批量上传 ")],1)],1),e._l(e.fileList,(function(n,r){return t("div",{key:r,staticClass:"form-file-upload"},[t("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[t("a-col",["uploading"===n.status?t("a-icon",{attrs:{type:"loading"}}):"done"===n.status?t("a-icon",{attrs:{type:"paper-clip"}}):e._e(),e._v(" "+e._s(n.file.name)+" ")],1),t("a-col",[n.status?e._e():t("a-icon",{attrs:{type:"close"},on:{click:function(t){return e.handleRemove(r)}}})],1)],1)],1)}))],2)},si=[];function li(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return ci(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ci(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ci(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,ci(f,"constructor",c),ci(c,"constructor",l),l.displayName="GeneratorFunction",ci(c,o,"GeneratorFunction"),ci(f),ci(f,o,"Generator"),ci(f,r,(function(){return this})),ci(f,"toString",(function(){return"[object Generator]"})),(li=function(){return{w:i,m:d}})()}function ci(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ci=function(e,t,n,r){function i(t,n){ci(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ci(e,t,n,r)}function ui(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function fi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ui(i,r,o,a,s,"next",e)}function s(e){ui(i,r,o,a,s,"throw",e)}a(void 0)}))}}var di={mixins:[St["a"]],data:function(){return{fileList:[]}},methods:{handleRemove:function(e){var t=this.fileList.slice();t.splice(e,1),this.fileList=t},beforeUpload:function(e){return this.fileList.push({file:e,status:""}),!1},handleSubmit:function(){var e=this;return fi(li().m((function t(){var n;return li().w((function(t){while(1)switch(t.n){case 0:if(n=e.view.view.selections,0!==e.fileList.length){t.n=1;break}return t.a(2,e.$message.error("请选择文件"));case 1:if(!(n&&n.length>1)){t.n=2;break}return t.a(2,e.$message.error("请选择一条文件进行上传"));case 2:e.handleCommit();case 3:return t.a(2)}}),t)})))()},handleCommit:function(){var e=this;return fi(li().m((function t(){var n,r,o,i,a,s,l,c,u,f,d,p;return li().w((function(t){while(1)switch(t.n){case 0:p=function(){return p=fi(li().m((function e(t){var n,p,h;return li().w((function(e){while(1)switch(e.n){case 0:return t.status="uploading",n=o.key,p=o.method,h=new FormData,h.append("file",t.file),a&&h.append("data[".concat(i,"]"),a[i]),e.n=1,r({data:h,key:n,method:p,mute:!0});case 1:f++,t.status="done",f>=u.length?(s(),l(),c.success("上传完成")):d(u[f]);case 2:return e.a(2)}}),e)}))),p.apply(this,arguments)},d=function(e){return p.apply(this,arguments)},n=e.view.view,r=n.saveData,o=n.action,i=n.idName,a=n.actionModel,s=n.closeActionView,l=n.load,c=n.$message,u=e.fileList,f=0,d(u[f]);case 1:return t.a(2)}}),t)})))()}}},pi=di,hi=Object(ut["a"])(pi,ai,si,!1,null,null,null),mi=hi.exports,vi=function(){var e=this,t=e._self._c;return t("Picker",e._g(e._b({attrs:{viewKey:e.action.key||e.action.method.toLowerCase(),schema:e.action,params:{filters:e.pickerFilter},pickerMode:e.pickerMode},on:{selected:e.handleViewPickerSelected}},"Picker",e.$attrs,!1),e.$listeners))},yi=[],gi=n("3d8a");function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wi(Object(n),!0).forEach((function(t){Si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Si(e,t,n){return(t=Ci(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ci(e){var t=ki(e,"string");return"symbol"==bi(t)?t:t+""}function ki(e,t){if("object"!=bi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ei={mixins:[St["a"]],components:{Picker:gi["a"]},computed:{pickerFilter:function(){var e=this.action.params,t=e&&e.filters,n={};if(!t)return null;for(var r in t){var o=t[r].split(".").reduce((function(e,t){return e&&e[t]||void 0}),_i(_i({},this.params),this.actionModel));n[r]=void 0===o?t[r]:o}return n},pickerMode:function(){var e=this.action.params,t=void 0===e?{}:e,n=t.multiple,r=t.pickerMode;return"none"===r?null:n?"multiple":"single"}},methods:{handleSubmit:function(){if(!this.actionModel||!this.actionModel.length)return this.$message.error("请选择数据");this.handleCommit()},handleViewPickerSelected:function(e){var t=this.configs&&this.configs["picker.view.value"];if(!t){var n=this.schema.params&&this.schema.params.control;t=n&&n.realValue}var r=t;this.actionModel=r?e.map((function(e){return Si({},r,e[t])})):e}}},Oi=Ei,Ti=Object(ut["a"])(Oi,vi,yi,!1,null,null,null),Ai=Ti.exports,xi=function(){var e=this,t=e._self._c;return t("div",[t("a-steps",{attrs:{current:e.current}},e._l(e.steps,(function(n){return t("a-step",{key:n.title,attrs:{title:n.title}},["核心解读"===n.title?t("a-badge",{attrs:{slot:"subTitle","number-style":e.badgeStyle,count:e.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):e._e(),"描述解读"===n.title?t("a-badge",{attrs:{slot:"subTitle","number-style":e.badgeStyle,count:e.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):e._e(),"排盘数据"===n.title?t("a-badge",{attrs:{slot:"subTitle","number-style":e.badgeStyle,count:e.algorithmCount.paipanDataCount},slot:"subTitle"}):e._e(),"术数分析"===n.title?t("a-badge",{attrs:{slot:"subTitle","number-style":e.badgeStyle,count:e.algorithmCount.surgeryAnalysisCount},slot:"subTitle"}):e._e()],1)})),1),Object.keys(e.algorithmList).length&&e.current<e.steps.length-1?t("div",{staticClass:"algorithm-preview"},[t("strong",[e._v("算法集合预览:")]),e._v(e._s(e.algorithmList)+" ")]):e._e(),t("a-spin",{attrs:{spinning:e.loading}},[0===e.current?t("div",{staticClass:"steps-content"},[t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:e.nameKeyword,callback:function(t){e.nameKeyword="string"===typeof t?t.trim():t},expression:"nameKeyword"}}),t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:e.codeKeyword,callback:function(t){e.codeKeyword="string"===typeof t?t.trim():t},expression:"codeKeyword"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(" 搜索 ")]),e.algorithmData.length?[t("a-tabs",{attrs:{defaultActiveKey:"".concat(e.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},e._l(e.algorithmData[0].children,(function(n,r){return t("a-tab-pane",{key:n.name+r.toString()},[t("span",{attrs:{slot:"tab"},slot:"tab"},[e._v(" "+e._s(n.name)+" "),t("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":e.badgeStyle,count:e.algorithmTotal(n.children)}})],1),t("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:e.defaultCheckedList},on:{change:function(t){return e.handleChange(t,e.steps[e.current].title,n.name,r)}}})],1)})),1)]:t("a-empty")],2):e._e(),1===e.current?t("div",{staticClass:"steps-content"},[t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:e.nameKeyword,callback:function(t){e.nameKeyword="string"===typeof t?t.trim():t},expression:"nameKeyword"}}),t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:e.codeKeyword,callback:function(t){e.codeKeyword="string"===typeof t?t.trim():t},expression:"codeKeyword"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(" 搜索 ")]),e.algorithmData.length?[t("a-tabs",{attrs:{defaultActiveKey:"".concat(e.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},e._l(e.algorithmData[0].children,(function(n,r){return t("a-tab-pane",{key:n.name+r.toString()},[t("span",{attrs:{slot:"tab"},slot:"tab"},[e._v(" "+e._s(n.name)+" "),t("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":e.badgeStyle,count:e.algorithmTotal(n.children)}})],1),t("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:e.defaultCheckedList},on:{change:function(t){return e.handleChange(t,e.steps[e.current].title,n.name,r)}}})],1)})),1)]:t("a-empty")],2):e._e(),2===e.current?t("div",{staticClass:"steps-content"},[t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:e.nameKeyword,callback:function(t){e.nameKeyword="string"===typeof t?t.trim():t},expression:"nameKeyword"}}),t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:e.codeKeyword,callback:function(t){e.codeKeyword="string"===typeof t?t.trim():t},expression:"codeKeyword"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(" 搜索 ")]),e.algorithmData.length?[t("a-tabs",{attrs:{defaultActiveKey:"".concat(e.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},e._l(e.algorithmData[0].children,(function(n,r){return t("a-tab-pane",{key:n.name+r.toString()},[t("span",{attrs:{slot:"tab"},slot:"tab"},[e._v(" "+e._s(n.name)+" "),t("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":e.badgeStyle,count:e.algorithmTotal(n.children)}})],1),t("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:e.defaultCheckedList},on:{change:function(t){return e.handleChange(t,e.steps[e.current].title,n.name,r)}}})],1)})),1)]:t("a-empty")],2):e._e(),3===e.current?t("div",{staticClass:"steps-content"},[t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:e.nameKeyword,callback:function(t){e.nameKeyword="string"===typeof t?t.trim():t},expression:"nameKeyword"}}),t("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:e.codeKeyword,callback:function(t){e.codeKeyword="string"===typeof t?t.trim():t},expression:"codeKeyword"}}),t("a-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(" 搜索 ")]),e.algorithmData.length?[t("a-tabs",{attrs:{defaultActiveKey:"".concat(e.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},e._l(e.algorithmData[0].children,(function(n,r){return t("a-tab-pane",{key:n.name+r.toString()},[t("span",{attrs:{slot:"tab"},slot:"tab"},[e._v(" "+e._s(n.name)+" "),t("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":e.badgeStyle,count:e.algorithmTotal(n.children)}})],1),t("CheckboxGroup",{attrs:{title:n.name,data:n.children,defaultCheckedList:e.defaultCheckedList},on:{change:function(t){return e.handleChange(t,e.steps[e.current].title,n.name,r)}}})],1)})),1)]:t("a-empty")],2):e._e(),4===e.current?t("div",{staticClass:"steps-content"},[t("AlgorithmForm",{attrs:{algorithmList:e.algorithmList},on:{close:function(t){return e.$emit("close")}}})],1):e._e()]),t("div",{staticClass:"steps-action"},[e.current>0?t("a-button",{staticStyle:{"margin-right":"8px"},on:{click:e.prev}},[e._v(" 上一步 ")]):e._e(),e.current<e.steps.length-1?t("a-button",{attrs:{type:"primary"},on:{click:e.next}},[e._v(" 下一步 ")]):e._e()],1)],1)},Ni=[],Ii=n("5880"),ji=n("8c7f");function Pi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ri(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ri(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ri(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Ri(f,"constructor",c),Ri(c,"constructor",l),l.displayName="GeneratorFunction",Ri(c,o,"GeneratorFunction"),Ri(f),Ri(f,o,"Generator"),Ri(f,r,(function(){return this})),Ri(f,"toString",(function(){return"[object Generator]"})),(Pi=function(){return{w:i,m:d}})()}function Ri(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ri=function(e,t,n,r){function i(t,n){Ri(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ri(e,t,n,r)}function Di(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Bi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Di(i,r,o,a,s,"next",e)}function s(e){Di(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Li={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(e,t){e.loading=t},setData:function(e,t){var n=t.key,r=t.rows;e.data[n]?e.data[n]=r:pn.a.set(e.data,n,r)},setDistrict:function(e,t){e.district=t},setStatus:function(e,t){var n=t.status,r=t.message;e.status=n,e.message=r}},actions:{loadData:function(e){var t=arguments;return Bi(Pi().m((function n(){var r,o,i,a,s,c,u,f,d;return Pi().w((function(n){while(1)switch(n.p=n.n){case 0:return r=e.commit,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},a=i.methods,s=void 0===a?"get":a,c=i.key,u=i.query,r("setLoading",!0),n.p=1,n.n=2,ji["a"][s](u?"/api/".concat(c?"".concat(c):"","?").concat(l.a.stringify(u)):"/api/".concat(c?"".concat(c):""));case 2:f=n.v,f.data&&c&&r("setData",{rows:f.data,key:c}),n.n=4;break;case 3:n.p=3,d=n.v,o("handleError",d);case 4:return n.p=4,r("setLoading",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},loadDistrict:function(e){return Bi(Pi().m((function t(){var n,r,o,i,a;return Pi().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,r=e.dispatch,n("setLoading",!0),t.p=1,t.n=2,ji["a"].get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 2:o=t.v,i=o.data,i&&n("setDistrict",i.data),t.n=4;break;case 3:t.p=3,a=t.v,r("handleError",a);case 4:return t.p=4,n("setLoading",!1),t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},getResult:function(e){var t=arguments;return Bi(Pi().m((function n(){var r,o,i,a,s,l,c;return Pi().w((function(n){while(1)switch(n.p=n.n){case 0:return r=e.commit,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},a=i.key,s=i.params,r("setLoading",!0),n.p=1,n.n=2,ji["a"].post(a,s,{});case 2:if(l=n.v,!l||!l.data){n.n=3;break}return n.a(2,l.data);case 3:n.n=5;break;case 4:n.p=4,c=n.v,o("handleError",c);case 5:return n.p=5,r("setLoading",!1),n.f(5);case 6:return n.a(2)}}),n,null,[[1,4,5,6]])})))()},handleError:function(e,t){var n=e.commit;if(!t.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=t.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";n("setStatus",{status:o,message:a})}}};function Mi(e){return Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mi(e)}function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach((function(t){qi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qi(e,t,n){return(t=Fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fi(e){var t=Ki(e,"string");return"symbol"==Mi(t)?t:t+""}function Ki(e,t){if("object"!=Mi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}for(var $i=Object(Ii["createNamespacedHelpers"])("m-algorithm"),Hi=$i.mapState,Gi=$i.mapActions,zi=["loading","data","message"],Yi=["loadData","loadDistrict","getResult"],Wi={computed:Vi({},Hi(zi)),methods:Vi({},Gi(Yi)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",Li)}},Qi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"algorithm-checkbox"},[t("a-row",{staticStyle:{width:"100%",padding:"0 32px"},attrs:{gutter:24}},e._l(e.data,(function(n){return t("a-col",{key:n.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":n.checked},attrs:{span:6}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{span:20}},[t("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:n.checked},on:{change:function(t){return e.onCheckChange(t,n)}}},[t("a-tooltip",[t("template",{slot:"title"},[e._v(" "+e._s(n.name)+" ")]),e._v(" "+e._s(n.name)+" ")],2)],1)],1),t("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(t){return e.showDrawer(n.read_id)}}},[n.checked?t("a-icon",{staticClass:"algorithm-item-action",attrs:{type:"setting"}}):e._e()],1)],1)],1)})),1),t("a-drawer",{attrs:{title:"高级配置",placement:"right",visible:e.visible,width:"512",bodyStyle:{overflow:"auto"}},on:{close:function(t){e.visible=!1}}},[t("h3",{staticStyle:{"margin-bottom":"16px"}},[e._v("解读详情")]),t("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{size:"small",column:1,bordered:""}},[t("DescriptionsItem",{attrs:{label:"编码"}},[e._v(e._s(e.algorithmDetail.code))]),t("DescriptionsItem",{attrs:{label:"名称"}},[e._v(e._s(e.algorithmDetail.name))]),t("DescriptionsItem",{attrs:{label:"解读分类"}},[e._v(e._s(e.algorithmDetail.classify))]),t("DescriptionsItem",{attrs:{label:"算法类别"}},[e._v(e._s(e.algorithmDetail.type))]),t("DescriptionsItem",{attrs:{label:"作者"}},[e._v(e._s(e.algorithmDetail.author))]),t("DescriptionsItem",{attrs:{label:"标签"}},[e._v(e._s(e.algorithmDetail.core_basis))]),t("DescriptionsItem",{attrs:{label:"解读维度"}},[e._v(e._s(e.algorithmDetail.latitude))]),t("DescriptionsItem",{attrs:{label:"解读赋值"}},[e._v(e._s(e.algorithmDetail.app_product))])],1),t("h3",{staticStyle:{"margin-bottom":"16px"}},[e._v("参数配置")]),t("a-tabs",{attrs:{type:"editable-card"},on:{edit:e.onEdit},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.panes,(function(n,r){return t("a-tab-pane",{key:n.key,attrs:{tab:"".concat(n.title,"_").concat(r+1),closable:0!==r}},[t("AlgorithmParams",{attrs:{algorithmParams:n.algorithmParams,algorithmParamsKey:n.key},on:{submit:e.submitForm}})],1)})),1),t("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[t("a-button",{style:{marginRight:"8px"},on:{click:function(t){e.visible=!1}}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.submitParams(e.copyPaneParams)}}},[e._v(" 确定 ")])],1)],1)],1)},Xi=[],Zi=function(){var e=this,t=e._self._c;return t("a-form-model",{ref:"dynamicValidateForm",attrs:{model:e.dynamicValidateForm}},[e._l(e.dynamicValidateForm.algorithms,(function(n,r){return t("a-form-model-item",{key:n.key,attrs:{prop:"algorithms."+r+".value",rules:{required:!0,message:"请输入算法参数",trigger:"blur"}}},[t("a-input",{staticStyle:{width:"60%","margin-right":"8px"},attrs:{placeholder:"请输入算法参数"},on:{blur:function(t){return e.submitForm("dynamicValidateForm")}},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"domain.value"}}),t("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o",disabled:1===e.dynamicValidateForm.algorithms.length},on:{click:function(t){return e.removeDomain(n)}}})],1)})),t("a-form-model-item",[t("a-button",{staticStyle:{width:"60%"},attrs:{type:"dashed"},on:{click:e.addDomain}},[t("a-icon",{attrs:{type:"plus"}}),e._v(" 增加 ")],1)],1),t("a-form-model-item",[t("a-button",{on:{click:function(t){return e.resetForm("dynamicValidateForm")}}},[e._v(" 重置 ")])],1)],2)},Ji=[],ea={props:{algorithmParams:{type:Array,default:function(){return[]}},algorithmParamsKey:{type:[String,Number]}},data:function(){return{dynamicValidateForm:{algorithms:this.algorithmParams}}},methods:{submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.setParams()}))},setParams:function(){var e=this.dynamicValidateForm.algorithms.map((function(e){return e.value})),t={key:this.algorithmParamsKey,algorithmParams:e};this.$emit("submit",t)},resetForm:function(e){this.$refs[e].resetFields(),this.dynamicValidateForm.algorithms=[],this.setParams()},removeDomain:function(e){var t=this.dynamicValidateForm.algorithms.indexOf(e);-1!==t&&this.dynamicValidateForm.algorithms.splice(t,1),this.setParams()},addDomain:function(){this.dynamicValidateForm.algorithms.push({value:"",key:Date.now()})}},watch:{algorithmParams:function(e){this.dynamicValidateForm.algorithms=e}}},ta=ea,na=Object(ut["a"])(ta,Zi,Ji,!1,null,null,null),ra=na.exports,oa=ar["a"].DescriptionsItem,ia={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:ar["a"],DescriptionsItem:oa,AlgorithmParams:ra},data:function(){return{checkedList:this.defaultCheckedList||[],visible:!1,btnLoading:!1,algorithmId:null,algorithmParams:[],activeKey:0,panes:[],paneParams:{},copyPaneParams:{}}},computed:{algorithmDetail:function(){var e=this;return this.data.find((function(t){return t.read_id===e.algorithmId}))||{}}},methods:{onCheckChange:function(e,t){if(t.checked=e.target.checked,t.checked)this.checkedList.push(t);else{var n=this.checkedList.findIndex((function(e){return t.read_id===e.read_id}));this.checkedList.splice(n,1)}this.$emit("change",this.checkedList)},showDrawer:function(e){var t=this;this.algorithmId=e;var n=this.checkedList.find((function(t){return t.read_id===e})).values;if(n.length)this.panes=n.map((function(e,n){var r={key:"".concat(t.algorithmId).concat(n),title:"参数",algorithmParams:e.map((function(e,t){return{key:t,value:e}}))};return r}));else{var r={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(r),this.panes=[r]}this.activeKey=this.panes[0].key,this.visible=!0},submitForm:function(e){var t=e.key;this.paneParams[t]?this.paneParams[t]=e.algorithmParams:this.$set(this.paneParams,t,e.algorithmParams),this.setParams()},setParams:function(){for(var e in this.copyPaneParams=Object.assign({},this.paneParams),this.copyPaneParams)-1===e.indexOf(this.algorithmId)&&delete this.copyPaneParams[e]},submitParams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.btnLoading=!0;var n=this.checkedList.find((function(t){return t.read_id===e.algorithmId}));t&&(n.values=Object.values(t)),this.$emit("change",this.checkedList),this.visible=this.btnLoading=!1},onEdit:function(e,t){this[t](e)},add:function(){var e=this.panes,t=e.length?e.length:0,n="".concat(this.algorithmId).concat(t),r={title:"参数",algorithmParams:[],key:n};this.submitForm(r),this.panes.push(r),this.panes=e,this.activeKey=n},remove:function(e){delete this.paneParams[e],this.setParams();var t,n=this.activeKey;this.panes.forEach((function(n,r){n.key===e&&(t=r-1)}));var r=this.panes.filter((function(t){return t.key!==e}));r.length&&n===e&&(n=t>=0?r[t].key:r[0].key),this.panes=r,this.activeKey=n}},watch:{}},aa=ia,sa=(n("9897"),Object(ut["a"])(aa,Qi,Xi,!1,null,null,null)),la=sa.exports,ca=function(){var e=this,t=e._self._c;return t("div",[t("a-row",{attrs:{type:"flex"}},[t("a-col",{staticStyle:{padding:"24px","background-color":"#fafafa"},attrs:{span:12}},[t("div",{staticStyle:{"text-align":"center","margin-bottom":"24px"}},[e._v(" 可 "),t("a",{on:{click:function(t){e.pickerVisible=!0}}},[e._v(" 选择系统中现有命例 ")]),e._v(" ,快速填充命例信息。 ")]),t("a-form-model",{ref:"profileForm",attrs:{layout:e.formLayout,model:e.profile,rules:e.profileRules}},[t("a-form-model-item",{attrs:{label:"昵称",prop:"nick_name","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入昵称",allowClear:""},model:{value:e.profile.nick_name,callback:function(t){e.$set(e.profile,"nick_name",t)},expression:"profile.nick_name"}})],1),t("a-form-model-item",{attrs:{label:"性别","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{model:{value:e.profile.gender,callback:function(t){e.$set(e.profile,"gender",t)},expression:"profile.gender"}},[t("a-radio",{attrs:{value:"male"}},[e._v("男")]),t("a-radio",{attrs:{value:"female"}},[e._v("女")])],1)],1),t("a-form-model-item",{attrs:{label:"公历","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{on:{change:e.handleLunarChange},model:{value:e.profile.is_lunar,callback:function(t){e.$set(e.profile,"is_lunar",t)},expression:"profile.is_lunar"}},[t("a-radio",{attrs:{value:!1}},[e._v("公历")]),t("a-radio",{attrs:{value:!0}},[e._v("农历")])],1)],1),e.hasDaylight?t("a-form-model-item",{attrs:{label:"夏令时","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{model:{value:e.profile.is_day_light,callback:function(t){e.$set(e.profile,"is_day_light",t)},expression:"profile.is_day_light"}},[t("a-radio",{attrs:{value:!0}},[e._v("是")]),t("a-radio",{attrs:{value:!1}},[e._v("否")])],1)],1):e._e(),t("a-form-model-item",{attrs:{label:"出生日期",prop:"birthday","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("a-input",{attrs:{placeholder:"请选择出生日期",allowClear:""},model:{value:e.profile.birthday,callback:function(t){e.$set(e.profile,"birthday",t)},expression:"profile.birthday"}}),t("DateTimePicker",{attrs:{slot:"content",isLunar:e.profile.is_lunar},on:{change:e.handleDateTimeChange},slot:"content"})],1)],1),e.hasLeap?t("a-form-model-item",{attrs:{label:"是否为闰月","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{model:{value:e.profile.is_leap,callback:function(t){e.$set(e.profile,"is_leap",t)},expression:"profile.is_leap"}},[t("a-radio",{attrs:{value:!0}},[e._v("是")]),t("a-radio",{attrs:{value:!1}},[e._v("否")])],1)],1):e._e(),t("a-form-model-item",{attrs:{label:"是否为双胞胎","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-radio-group",{model:{value:e.profile.is_twins,callback:function(t){e.$set(e.profile,"is_twins",t)},expression:"profile.is_twins"}},[t("a-radio",{attrs:{value:!0}},[e._v("是")]),t("a-radio",{attrs:{value:!1}},[e._v("否")])],1),e.profile.is_twins?t("a-input",{attrs:{addonBefore:"第",addonAfter:"胎"},model:{value:e.profile.birth_num,callback:function(t){e.$set(e.profile,"birth_num",t)},expression:"profile.birth_num"}}):e._e()],1),t("a-form-model-item",{attrs:{label:"出生地",prop:"place","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-cascader",{attrs:{options:e.districts,allowClear:"",placeholder:"请选择出生地"},on:{change:e.handleDistrictChange},model:{value:e.profile.place,callback:function(t){e.$set(e.profile,"place",t)},expression:"profile.place"}})],1),t("a-form-model-item",{attrs:{label:"算法","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[e._v(" "+e._s(e.profile.code)+" ")]),t("a-form-model-item",{attrs:{label:"产品编码",prop:"productCode","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入产品编码",allowClear:""},model:{value:e.profile.productCode,callback:function(t){e.$set(e.profile,"productCode",t)},expression:"profile.productCode"}})],1),t("a-form-model-item",{attrs:{label:"产品名称",prop:"productName","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入产品名称",allowClear:""},model:{value:e.profile.productName,callback:function(t){e.$set(e.profile,"productName",t)},expression:"profile.productName"}})],1),e.showMore?e._e():t("p",{staticStyle:{"text-align":"center"}},[t("a-button",{attrs:{type:"link"},on:{click:function(t){e.showMore=!0}}},[e._v("更多设置")])],1),e.showMore?[t("a-form-model-item",{attrs:{label:"姓",prop:"first_name","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入真实姓",allowClear:""},model:{value:e.profile.first_name,callback:function(t){e.$set(e.profile,"first_name",t)},expression:"profile.first_name"}})],1),t("a-form-model-item",{attrs:{label:"名",prop:"last_name","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入真实名",allowClear:""},model:{value:e.profile.last_name,callback:function(t){e.$set(e.profile,"last_name",t)},expression:"profile.last_name"}})],1),t("a-form-model-item",{attrs:{label:"开始时间",prop:"begin_input_time","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:e.beginTimeVisible,callback:function(t){e.beginTimeVisible=t},expression:"beginTimeVisible"}},[t("a-input",{attrs:{placeholder:"请选择开始时间",allowClear:""},model:{value:e.profile.begin_input_time,callback:function(t){e.$set(e.profile,"begin_input_time",t)},expression:"profile.begin_input_time"}}),t("DateTimePicker",{attrs:{slot:"content"},on:{change:function(t){return e.profile.begin_input_time=t}},slot:"content"})],1)],1),t("a-form-model-item",{attrs:{label:"结束时间",prop:"end_input_time","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:e.endTimeVisible,callback:function(t){e.endTimeVisible=t},expression:"endTimeVisible"}},[t("a-input",{attrs:{placeholder:"请选择结束时间",allowClear:""},model:{value:e.profile.end_input_time,callback:function(t){e.$set(e.profile,"end_input_time",t)},expression:"profile.end_input_time"}}),t("DateTimePicker",{attrs:{slot:"content"},on:{change:function(t){return e.profile.end_input_time=t}},slot:"content"})],1)],1),t("a-form-model-item",{attrs:{label:"数字占卜",prop:"yicuojin","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入三个数字,以英文逗号分隔(例如:1, 2, 3)",allowClear:""},model:{value:e.profile.yicuojin,callback:function(t){e.$set(e.profile,"yicuojin",t)},expression:"profile.yicuojin"}})],1),t("a-form-model-item",{attrs:{label:"文王卦",prop:"wenwanggua","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入六个字符,以英文逗号分隔(例如:断, 连, 断, 断, 连, 断)",allowClear:""},model:{value:e.profile.wenwanggua,callback:function(t){e.$set(e.profile,"wenwanggua",t)},expression:"profile.wenwanggua"}})],1),t("a-form-model-item",{attrs:{label:"文王卦类型",prop:"wenwanggualeixing","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-select",{attrs:{placeholder:"请选择文王卦类型"},on:{change:function(t){return e.profile.wenwanggualeixing=t}}},e._l(e.wenwangguaType,(function(n){return t("a-select-option",{key:n,attrs:{value:n}},[e._v(" "+e._s(n)+" ")])})),1)],1),t("a-form-model-item",{attrs:{label:"大六壬占时",prop:"daliurenzhanshi","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入时辰(例如:子)",allowClear:""},model:{value:e.profile.daliurenzhanshi,callback:function(t){e.$set(e.profile,"daliurenzhanshi",t)},expression:"profile.daliurenzhanshi"}})],1),t("a-form-model-item",{attrs:{label:"当前时间",prop:"now_time","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:e.nowTimeVisible,callback:function(t){e.nowTimeVisible=t},expression:"nowTimeVisible"}},[t("a-input",{attrs:{placeholder:"请选择当前时间",allowClear:""},model:{value:e.profile.now_time,callback:function(t){e.$set(e.profile,"now_time",t)},expression:"profile.now_time"}}),t("DateTimePicker",{attrs:{slot:"content"},on:{change:function(t){return e.profile.now_time=t}},slot:"content"})],1)],1),t("a-form-model-item",{attrs:{label:"答题测试结果",prop:"test_result","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入测试结果(例如:分数或者 A、B、C、D)",allowClear:""},model:{value:e.profile.test_result,callback:function(t){e.$set(e.profile,"test_result",t)},expression:"profile.test_result"}})],1),t("a-form-model-item",{attrs:{label:"DISC 测试结果",prop:"disc_result","label-col":e.formItemLayout.labelCol,"wrapper-col":e.formItemLayout.wrapperCol}},[t("a-input",{attrs:{placeholder:"请输入测试结果(例如:1,2,3,4)",allowClear:""},model:{value:e.profile.disc_result,callback:function(t){e.$set(e.profile,"disc_result",t)},expression:"profile.disc_result"}})],1)]:e._e()],2),t("div",{staticStyle:{"text-align":"center"}},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit("0")}}},[e._v("立即测算")])],1)],1),t("a-col",{attrs:{span:12}},[e.codeValue?t("CodeEditor",{attrs:{width:"100%",value:e.codeValue}}):t("div",{staticStyle:{border:"1px solid #eee",height:"100%",position:"relative"}},[t("a-empty",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"},attrs:{description:"暂无测试结果"}})],1)],1)],1),t("a-modal",{attrs:{title:"选择命例",width:720,bodyStyle:{maxHeight:"480px",overflow:"auto"}},on:{ok:e.confirm},model:{value:e.pickerVisible,callback:function(t){e.pickerVisible=t},expression:"pickerVisible"}},[t("ProfileSelect",{on:{select:e.handleProfileSelect}})],1),t("a-button",{staticStyle:{position:"fixed",bottom:"10px",left:"106px"},attrs:{type:"primary"},on:{click:function(t){return e.submit("1")}}},[e._v(" 发布产品 ")])],1)},ua=[],fa={computed:{districts:function(){var e=this.$store.state["m-algorithm"].district,t=e&&e.filter((function(e){return"1"===e.level})),n=e&&e.filter((function(e){return"2"===e.level})),r=e&&e.filter((function(e){return"3"===e.level}));return t.map((function(e){return{value:e.district_id,label:e.district_name,children:n.filter((function(t){return t.parent===e.district_id})).map((function(e){return{value:e.district_id,label:e.district_name,children:r.filter((function(t){return t.parent===e.district_id})).map((function(e){return{value:e.district_id,label:e.district_name,time_zone:e.time_zone}}))}}))}}))||[]}}},da=function(){var e=this,t=e._self._c;return t("div",{ref:"monaco",staticStyle:{border:"1px solid #e8e8e8"},style:{width:e.width,height:e.height}})},pa=[],ha=n("2364"),ma=null,va={props:{width:{type:String,default:"800px"},height:{type:String,default:"600px"},value:{type:[Array,String],default:function(){return["function x() {",'\tconsole.log("Hello world!");',"}"]}}},mounted:function(){this.getResult(this.value)},methods:{getResult:function(e){ma&&ma.dispose();var t=ha["Uri"].parse("json://grid/settings.json");ma=ha["editor"].create(this.$refs.monaco,{value:JSON.stringify(e,null,"\t"),language:"json",Uri:t})}},watch:{value:function(e){this.getResult(e)}}},ya=va,ga=Object(ut["a"])(ya,da,pa,!1,null,null,null),ba=ga.exports,wa=function(){var e=this,t=e._self._c;return t("a-row",{staticClass:"custom-datepicker",attrs:{type:"flex"}},[t("a-col",[t("ul",e._l(e.years,(function(n,r){return t("li",{key:r,class:{active:e.value.yearIndex===r},on:{click:function(t){return e.change("year",r)}}},[e._v(" "+e._s(n)+"年 ")])})),0)]),t("a-col",[t("ul",e._l(e.months,(function(n,r){return t("li",{key:n,class:{active:e.value.monthIndex===r},on:{click:function(t){return e.change("month",r)}}},[e._v(" "+e._s(n)+"月 ")])})),0)]),t("a-col",[t("ul",e._l(e.days,(function(n,r){return t("li",{key:n,class:{active:e.value.dayIndex===r},on:{click:function(t){return e.change("day",r)}}},[e._v(" "+e._s(n)+"日 ")])})),0)]),t("a-col",[t("ul",e._l(e.hours,(function(n,r){return t("li",{key:n,class:{active:e.value.hourIndex===r},on:{click:function(t){return e.change("hour",r)}}},[e._v(" "+e._s(n)+"时 ")])})),0)]),t("a-col",[t("ul",e._l(e.minutes,(function(n,r){return t("li",{key:n,class:{active:e.value.minuteIndex===r},on:{click:function(t){return e.change("minute",r)}}},[e._v(" "+e._s(n)+"分 ")])})),0)])],1)},_a=[],Sa=[],Ca=[],ka=[],Ea=[],Oa=1901;Oa<=2030;Oa++)Sa.push("".concat(Oa));for(var Ta=1;Ta<=12;Ta++)Ca.push(Ta<10?"0".concat(Ta):"".concat(Ta));for(var Aa=0;Aa<=23;Aa++)ka.push(Aa<10?"0".concat(Aa):"".concat(Aa));for(var xa=0;xa<=59;xa++)Ea.push(xa<10?"0".concat(xa):"".concat(xa));var Na={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Sa,year:"1901",months:Ca,month:"01",day:"01",hours:ka,hour:"00",minutes:Ea,minute:"00"}},computed:{days:function(){var e=[];if(this.isLunar)for(var t=1;t<=30;t++)e.push(t<10?"0".concat(t):"".concat(t));else if(["01","03","05","07","08","10","12"].includes(this.month))for(var n=1;n<=31;n++)e.push(n<10?"0".concat(n):"".concat(n));else if(["04","06","09","11"].includes(this.month))for(var r=1;r<=30;r++)e.push(r<10?"0".concat(r):"".concat(r));else if("02"===this.month)if(parseInt(this.year)%4===0&&parseInt(this.year)%100!==0||parseInt(this.year)%400===0)for(var o=1;o<=29;o++)e.push(o<10?"0".concat(o):"".concat(o));else for(var i=1;i<=28;i++)e.push(i<10?"0".concat(i):"".concat(i));return e},value:function(){var e=this.years.indexOf(this.year),t=this.months.indexOf(this.month),n=this.days.indexOf(this.day),r=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:e,monthIndex:t,dayIndex:n,hourIndex:r,minuteIndex:o}}},created:function(){},methods:{change:function(e,t){"year"===e?this.year=this.years[t]:"month"===e?this.month=this.months[t]:"day"===e?this.day=this.days[t]:"hour"===e?this.hour=this.hours[t]:"minute"===e&&(this.minute=this.minutes[t]);var n="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",n)}}},Ia=Na,ja=(n("6d57"),Object(ut["a"])(Ia,wa,_a,!1,null,null,null)),Pa=ja.exports,Ra=function(){var e=this,t=e._self._c;return t("div",[t("a-input",{staticStyle:{width:"200px","margin-bottom":"24px"},attrs:{placeholder:"昵称",allowClear:""},on:{change:e.handleNameChange},model:{value:e.nickName,callback:function(t){e.nickName=t},expression:"nickName"}}),t("a-table",{attrs:{columns:e.columns,loading:e.loading,"data-source":e.userCase(),rowSelection:e.rowSelection,pagination:{current:e.getPagination?parseInt(e.getPagination.current):1,total:e.getPagination?parseFloat(e.getPagination.count):0,defaultPageSize:15},rowKey:"profile_id"},on:{change:e.handleChange},scopedSlots:e._u([{key:"gender",fn:function(n){return t("span",{},[e._v(" "+e._s("female"===n?"女":"男")+" ")])}}])})],1)},Da=[],Ba=[{title:"昵称",dataIndex:"nick_name",key:"nick_name"},{title:"姓氏",dataIndex:"first_name",key:"first_name"},{title:"名字",dataIndex:"last_name",key:"last_name"},{title:"性别",dataIndex:"gender",key:"gender",scopedSlots:{customRender:"gender"}},{title:"生日",dataIndex:"birthday",key:"birthday"}],La={mixins:[Wi],data:function(){return{columns:Ba,rowSelection:{type:"radio",onSelect:this.onSelect},nickName:"",currentPage:1}},created:function(){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}})},computed:{getPagination:function(){return this.data["user-case"]?this.data["user-case"].pagination:null}},methods:{userCase:function(){return this.data["user-case"]?this.data["user-case"].collection:[]},onSelect:function(e){this.$emit("select",e)},handleChange:function(e){this.currentPage=e.current,this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}}),this.userCase()},handleNameChange:function(e){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage,nick_name:this.nickName}})}}},Ma=La,Ua=Object(ut["a"])(Ma,Ra,Da,!1,null,null,null),Va=Ua.exports;function qa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Fa(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Fa(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Fa(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Fa(f,"constructor",c),Fa(c,"constructor",l),l.displayName="GeneratorFunction",Fa(c,o,"GeneratorFunction"),Fa(f),Fa(f,o,"Generator"),Fa(f,r,(function(){return this})),Fa(f,"toString",(function(){return"[object Generator]"})),(qa=function(){return{w:i,m:d}})()}function Fa(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fa=function(e,t,n,r){function i(t,n){Fa(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Fa(e,t,n,r)}function Ka(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ka(i,r,o,a,s,"next",e)}function s(e){Ka(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ha=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],Ga={mixins:[Wi,fa],props:["algorithmList"],components:{CodeEditor:ba,DateTimePicker:Pa,ProfileSelect:Va},data:function(){return{visible:!1,beginTimeVisible:!1,endTimeVisible:!1,nowTimeVisible:!1,showMore:!1,formLayout:"horizontal",formItemLayout:{labelCol:{span:6},wrapperCol:{span:14}},codeValue:null,wenwangguaType:Ha,profile:{nick_name:"",gender:"male",is_lunar:!1,birthday:null,place:[],is_twins:!1,is_leap:!1,birth_num:0,time_zone:8,is_day_light:!1,province:"",city:"",district:"",code:JSON.stringify(this.algorithmList)||"",productCode:"",productName:"",is_submit:"",first_name:"",last_name:"",begin_input_time:"",end_input_time:"",yicuojin:"",wenwanggua:"",wenwanggualeixing:"",daliurenzhanshi:"",now_time:"",test_result:"",disc_result:""},systemProfile:{},profileRules:{productCode:[{required:!0,message:"请输入产品编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}]},hasLeap:!1,hasDaylight:!1,pickerVisible:!1}},created:function(){this.loadDistrict()},methods:{submit:function(e){var t=this;return $a(qa().m((function n(){return qa().w((function(n){while(1)switch(n.n){case 0:t.profile.is_submit=e,t.$refs.profileForm.validate(function(){var n=$a(qa().m((function n(r){var o;return qa().w((function(n){while(1)switch(n.n){case 0:if(!r){n.n=3;break}return n.n=1,t.getResult({key:"/api/algorithm-product/algorithm",params:t.profile});case 1:if(o=n.v,!o||!o.data||"0"!==e){n.n=2;break}return t.codeValue=[JSON.parse(o.data)],n.a(2);case 2:o?(t.$message.success("增加算法产品成功"),t.$emit("close")):t.$message.error(t.message),n.n=4;break;case 3:return n.a(2,!1);case 4:return n.a(2)}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:return n.a(2)}}),n)})))()},handleDistrictChange:function(e,t){t&&t.length?(this.profile.province=t[0].label,this.profile.city=t[1].label,this.profile.district=t[2].label,this.profile.time_zone=t[t.length-1].time_zone):(this.profile.province="",this.profile.city="",this.profile.district="",this.profile.time_zone=8)},handleDateTimeChange:function(e){this.profile.birthday=e,this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday)},handleLunarChange:function(){this.profile.birthday&&(this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday))},timeStamp:function(e){return new Date(e).getTime()},bindHasLunar:function(e){var t=e?e.substring(4,0):"",n=e?e.substring(5,7):"",r=this.lunarLeapMonthOfYear(t)<10?"0"+this.lunarLeapMonthOfYear(t).toString():this.lunarLeapMonthOfYear(t).toString();this.profile.is_lunar&&(n===r&&"00"!==r?(this.hasLeap=!0,this.profile.is_leap=!0):(this.hasLeap=!1,this.profile.is_leap=!1))},bindDaylight:function(e){if(""!==e){var t=e.replace(/-/g,"/"),n=this.timeStamp(t),r=[];r=this.profile.is_lunar?[{start:this.timeStamp("1986/03/26 02:00"),end:this.timeStamp("1986/08/11 02:00")},{start:this.timeStamp("1987/03/15 02:00"),end:this.timeStamp("1987/07/21 02:00")},{start:this.timeStamp("1988/02/24 02:00"),end:this.timeStamp("1988/08/01 02:00")},{start:this.timeStamp("1989/03/11 02:00"),end:this.timeStamp("1989/08/18 02:00")},{start:this.timeStamp("1990/03/20 02:00"),end:this.timeStamp("1990/07/28 02:00")},{start:this.timeStamp("1991/02/30 02:00"),end:this.timeStamp("1991/08/08 02:00")}]:[{start:this.timeStamp("1986/05/04 02:00"),end:this.timeStamp("1986/09/14 02:00")},{start:this.timeStamp("1987/04/12 02:00"),end:this.timeStamp("1987/09/13 02:00")},{start:this.timeStamp("1988/04/10 02:00"),end:this.timeStamp("1988/09/11 02:00")},{start:this.timeStamp("1989/04/16 02:00"),end:this.timeStamp("1989/09/17 02:00")},{start:this.timeStamp("1990/04/15 02:00"),end:this.timeStamp("1990/09/16 02:00")},{start:this.timeStamp("1991/04/14 02:00"),end:this.timeStamp("1991/09/15 02:00")}],r.length&&(n>=r[0].start&&n<=r[0].end||n>=r[1].start&&n<=r[1].end||n>=r[2].start&&n<=r[2].end||n>=r[3].start&&n<=r[3].end||n>=r[4].start&&n<=r[4].end||n>=r[5].start&&n<=r[5].end)?(this.hasDaylight=!0,this.profile.is_day_light=!0):(this.hasDaylight=!1,this.profile.is_day_light=!1)}},lunarLeapMonthOfYear:function(e){var t=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448];return 15&t[e-1900]},handleProfileSelect:function(e){this.systemProfile={},this.systemProfile=e},confirm:function(){this.profile.nick_name=this.systemProfile.nick_name||this.systemProfile.nick_name,this.profile.gender=this.systemProfile.gender||this.profile.gender,this.profile.is_lunar=this.systemProfile.is_lunar||this.profile.is_lunar,this.profile.birthday=this.systemProfile.birthday||this.profile.birthday,this.profile.province=this.systemProfile.province||this.profile.province,this.profile.city=this.systemProfile.city||this.profile.city,this.profile.district=this.systemProfile.district||this.profile.district,this.profile.place=this.checkProfilePlace(this.profile.province,this.profile.city,this.profile.district)||this.profile.district,this.profile.is_twins=!!(this.systemProfile.birth_num&&this.systemProfile.birth_num>0),this.profile.is_leap=this.systemProfile.is_leap||this.profile.is_leap,this.profile.birth_num=this.systemProfile.birth_num||this.profile.birth_num,this.profile.time_zone=this.systemProfile.time_zone||this.profile.time_zone,this.profile.is_day_light=this.systemProfile.is_day_light||this.profile.is_day_light,this.pickerVisible=!1},checkProfilePlace:function(e,t,n){var r=this.$store.state["m-algorithm"].district,o=r.find((function(t){return t.district_name===e}))?r.find((function(t){return t.district_name===e})).district_id:"",i=r.find((function(e){return e.district_name===t}))?r.find((function(e){return e.district_name===t})).district_id:"",a=r.find((function(e){return e.district_name===n}))?r.find((function(e){return e.district_name===n})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(e){this.profile.code=JSON.stringify(e)}}},za=Ga,Ya=Object(ut["a"])(za,ca,ua,!1,null,null,null),Wa=Ya.exports;function Qa(e){return Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(e)}function Xa(e){return ts(e)||es(e)||Ja(e)||Za()}function Za(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ja(e,t){if(e){if("string"==typeof e)return ns(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ns(e,t):void 0}}function es(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ts(e){if(Array.isArray(e))return ns(e)}function ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach((function(t){is(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function is(e,t,n){return(t=as(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function as(e){var t=ss(e,"string");return"symbol"==Qa(t)?t:t+""}function ss(e,t){if("object"!=Qa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ls={mixins:[Wi],components:{CheckboxGroup:la,AlgorithmForm:Wa},data:function(){return{current:0,steps:[{title:"核心解读"},{title:"描述解读"},{title:"排盘数据"},{title:"术数分析"},{title:"算法验证及发布"}],nameKeyword:"",codeKeyword:"",search:{nameKeyword:"",codeKeyword:""},type:"核心解读",showTime:{format:"HH:mm"},badgeStyle:{backgroundColor:"#8c8c8c"},pickerVisible:!1,defaultCheckedList:[]}},created:function(){this.loadData({key:"algorithm-read",query:{_size:9999}})},computed:{algorithmData:function(){var e=this,t=this.data["algorithm-read"]&&this.data["algorithm-read"].collection,n=t&&t.filter((function(t){return""!==e.search.nameKeyword||""!==e.search.codeKeyword?t.classify===e.type&&-1!==t.name.indexOf(e.search.nameKeyword)&&-1!==t.code.indexOf(e.search.codeKeyword):t.classify===e.type})).map((function(t){var n=os(os({},t),{},{values:[],checked:!1});return e.checkedList.length&&e.checkedList.forEach((function(t){t.read_id===n.read_id&&(e.$set(n,"values",t.values),e.$set(n,"checked",t.checked))})),n})),r=Xa(new Set(n&&n.map((function(e){return e.classify})))),o=r&&r.map((function(e){var t=n.filter((function(t){return t.classify===e})),r=Xa(new Set(t.map((function(e){return e.type})))),o=r.map((function(e){return{name:e,children:t.filter((function(t){return t.type===e}))}}));return{name:e,children:o}}));return o||[]},algorithmCount:function(){var e=this.defaultCheckedList,t=e.filter((function(e){return"核心解读"===e.classify})).length||0,n=e.filter((function(e){return"描述解读"===e.classify})).length||0,r=e.filter((function(e){return"排盘数据"===e.classify})).length||0,o=e.filter((function(e){return"术数分析"===e.classify})).length||0;return{coreAlgorithmCount:t,describeAlgorithmCount:n,paipanDataCount:r,surgeryAnalysisCount:o}},algorithmList:function(){var e=this.defaultCheckedList,t=[],n=[];return e.forEach((function(r){var o=r.code;n=r.values.length>1?r.values.map((function(e,t){var n=t+1,r=1===n?o:n<10?"".concat(o,"_0").concat(n):"".concat(o,"_").concat(n);return[r,e||[]]})):e.map((function(e){return[e.code,e.values.length?e.values[0]:[]]})),t=[].concat(Xa(t),Xa(n))})),Object.fromEntries(t)},checkedList:function(){return this.defaultCheckedList||[]}},methods:{next:function(){this.current++,this.type=this.steps[this.current].title},prev:function(){this.current--,this.type=this.steps[this.current].title},handleChange:function(e,t,n,r){var o=this;e.forEach((function(e){var t=o.defaultCheckedList.findIndex((function(t){return t.read_id===e.read_id}));-1===t?o.defaultCheckedList=[].concat(Xa(o.defaultCheckedList),[e]):o.defaultCheckedList[t]=e}))},onSearch:function(){this.search.nameKeyword=this.nameKeyword,this.search.codeKeyword=this.codeKeyword},algorithmTotal:function(e){var t=e.map((function(e){return e.read_id})),n=this.checkedList.map((function(e){return e.read_id}));return t.filter((function(e){return n.includes(e)})).length}},watch:{nameKeyword:function(e){""===e&&this.onSearch()},codeKeyword:function(e){""===e&&this.onSearch()}}},cs=ls,us=(n("4dd6"),Object(ut["a"])(cs,xi,Ni,!1,null,null,null)),fs=us.exports;function ds(e){return vs(e)||ms(e)||hs(e)||ps()}function ps(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hs(e,t){if(e){if("string"==typeof e)return ys(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ys(e,t):void 0}}function ms(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function vs(e){if(Array.isArray(e))return ys(e)}function ys(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gs=function(){var e=this,t=e._self._c;return t("div",[t("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":e.dataSource,"target-keys":e.checkedKeys,render:function(e){return e.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},showSearch:e.showSearch},on:{change:e.onChange,search:e.handleSearch},scopedSlots:e._u([{key:"children",fn:function(n){var r=n.props,o=r.direction,i=r.selectedKeys,a=n.on.itemSelect;return["left"===o?t("a-spin",{attrs:{spinning:e.leftLoding}},[t("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(ds(i),ds(e.checkedKeys)),treeData:e.filterTreeNodes},on:{check:function(t,n){e.onChecked(t,n,[].concat(ds(i),ds(e.checkedKeys)),a)},select:function(t,n){e.onChecked(t,n,[].concat(ds(i),ds(e.checkedKeys)),a)}}})],1):e._e()]}}])})],1)},bs=[];function ws(e){return ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(e)}function _s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ss(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ss(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ss(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Ss(f,"constructor",c),Ss(c,"constructor",l),l.displayName="GeneratorFunction",Ss(c,o,"GeneratorFunction"),Ss(f),Ss(f,o,"Generator"),Ss(f,r,(function(){return this})),Ss(f,"toString",(function(){return"[object Generator]"})),(_s=function(){return{w:i,m:d}})()}function Ss(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ss=function(e,t,n,r){function i(t,n){Ss(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ss(e,t,n,r)}function Cs(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ks(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Cs(i,r,o,a,s,"next",e)}function s(e){Cs(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){Ts(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ts(e,t,n){return(t=As(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function As(e){var t=xs(e,"string");return"symbol"==ws(t)?t:t+""}function xs(e,t){if("object"!=ws(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ws(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Ns={mixins:[St["a"]],data:function(){var e=this;return{targetKeys:[],dataSource:[],checkedKeys:this.params.data?this.params.data.map((function(t){return t[e.params.valueName]})):[],treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valuesName:this.params.valuesName,selected:this.params.selected||null,unselected:this.params.unselected||null,inputValue:"",leftLoding:!1}},computed:{treeNodes:function(){var e=this.treeData,t=this.titleName,n=this.keyName,r=this.checkedKeys,o=this.selected,i=this.unselected,a=function(e){return e.map((function(e){var s;return e._childList&&(s=a(e._childList)),{title:e[t],key:e[n],children:s,disabled:r.includes(e[n])||o&&!Object(R["a"])(o,e)||i&&Object(R["a"])(i,e)}}))};return a(e)},filterTreeNodes:function(){var e=this;return this.inputValue?this.treeNodes.filter((function(t){return-1!==t.title.indexOf(e.inputValue)})):this.treeNodes},multiple:function(){return void 0===this.params.multiple||this.params.multiple},showSearch:function(){return void 0===this.params.showSearch||this.params.showSearch}},created:function(){this.treeNodes&&this.flatten(JSON.parse(JSON.stringify(this.treeNodes))),this.checkedKeys&&(this.actionModel=Os(Os({},this.actionModel),{},Ts({},this.valuesName,this.checkedKeys)))},methods:{onChange:function(e,t){if((this.checkedKeys.length>1||e.length>1)&&"right"===t&&!this.multiple)return this.$message.error("只能选择 1 个人!"),!1;this.checkedKeys=e,this.actionModel=Os(Os({},this.actionModel),{},Ts({},this.valuesName,this.checkedKeys))},isChecked:function(e,t){return-1!==e.indexOf(t)},onChecked:function(e,t,n,r){var o=t.node.eventKey;r(o,!this.isChecked(n,o))},flatten:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){e.dataSource.push({title:t.title,key:t.key}),t.children&&e.flatten(t.children)}))},handleSubmit:function(){var e=this;return ks(_s().m((function t(){return _s().w((function(t){while(1)switch(t.n){case 0:e.handleCommit();case 1:return t.a(2)}}),t)})))()},handleSearch:function(e,t){var n=this,r=null;"left"===e&&(this.leftLoding=!0,r=setTimeout((function(){r&&clearTimeout(r),n.inputValue=t,n.leftLoding=!1}),1e3))}}},Is=Ns,js=(n("2387"),Object(ut["a"])(Is,gs,bs,!1,null,"0ce5108d",null)),Ps=js.exports,Rs=function(){var e=this,t=e._self._c;return t("a-tree",{attrs:{checkable:"",autoExpandParent:e.autoExpandParent,defaultCheckedKeys:e.checkedKeys,treeData:e.treeNodes,checkStrictly:""},on:{check:e.handleCheck}})},Ds=[];function Bs(e){return Bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(e)}function Ls(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Ms(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ms(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ms(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Ms(f,"constructor",c),Ms(c,"constructor",l),l.displayName="GeneratorFunction",Ms(c,o,"GeneratorFunction"),Ms(f),Ms(f,o,"Generator"),Ms(f,r,(function(){return this})),Ms(f,"toString",(function(){return"[object Generator]"})),(Ls=function(){return{w:i,m:d}})()}function Ms(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ms=function(e,t,n,r){function i(t,n){Ms(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ms(e,t,n,r)}function Us(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Vs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Us(i,r,o,a,s,"next",e)}function s(e){Us(i,r,o,a,s,"throw",e)}a(void 0)}))}}function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){Ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ks(e,t,n){return(t=$s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $s(e){var t=Hs(e,"string");return"symbol"==Bs(t)?t:t+""}function Hs(e,t){if("object"!=Bs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Bs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Gs={mixins:[St["a"]],data:function(){var e=this;return{autoExpandParent:!0,checkedKeys:this.params.data.map((function(t){return t[e.params.valueName]})),treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valueName:this.params.valueName,valuesName:this.params.valuesName}},computed:{treeNodes:function(){var e=this.treeData,t=this.titleName,n=this.keyName,r=function(e){return e.map((function(e){var o;return e._childList&&(o=r(e._childList)),{title:e[t],key:e[n],children:o}}))};return r(e)}},created:function(){this.checkedKeys&&(this.actionModel=Fs(Fs({},this.actionModel),{},Ks({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(e,t){var n=e.checked;if(n.includes(t.node.eventKey)){var r=t.node;while(r&&r.eventKey)n.includes(r.eventKey)||n.push(r.eventKey),r=r.$parent}this.actionModel=Fs(Fs({},this.actionModel),{},Ks({},this.valuesName,n))},handleSubmit:function(){var e=this;return Vs(Ls().m((function t(){return Ls().w((function(t){while(1)switch(t.n){case 0:e.handleCommit();case 1:return t.a(2)}}),t)})))()}}},zs=Gs,Ys=Object(ut["a"])(zs,Rs,Ds,!1,null,null,null),Ws=Ys.exports,Qs=function(){var e=this,t=e._self._c;return t("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:e.actionModel,rules:e.rules}},[t("a-tabs",{attrs:{"tab-position":"top",size:"small"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.actionModel.confirm?t("a-tab-pane",{key:"1",staticClass:"flow-approve-content",attrs:{tab:"上报/审批",bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[e.actionModel.flow_action_name?t("div",{staticStyle:{"margin-bottom":"15px"}},[t("a-form-model-item",{attrs:{prop:"flow_action_name",size:"small"}},[t("a-radio-group",{attrs:{defaultValue:"submit"},model:{value:e.actionModel.flow_action_name,callback:function(t){e.$set(e.actionModel,"flow_action_name",t)},expression:"actionModel.flow_action_name"}},[t("a-radio-button",{attrs:{value:"submit"}},[e._v("审批通过")]),e.allowBack?t("a-radio-button",{attrs:{value:"back"}},[e._v(" 审批退回 ")]):e._e(),e.allowReassign?t("a-radio-button",{attrs:{value:"reassign"}},[e._v(" 转办 ")]):e._e(),e.allowInvolve?t("a-radio-button",{attrs:{value:"involve"}},[e._v(" 加签 ")]):e._e()],1)],1),e._l(e.attrs,(function(n){return[!n.scope||n.scope.includes(e.actionModel.flow_action_name)?t("Item",{key:n.name,attrs:{formModel:e.actionModel,prop:n.name,schema:n,required:n.required,params:{}},on:{change:function(t){return e.handleItemChange(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[attr.name]"}}):e._e()]})),t("a-form-model-item",{attrs:{label:["reassign","involve"].includes(e.actionModel.flow_action_name)?"备注":"审批意见",prop:"deal_note",size:"small"}},[t("a-textarea",{attrs:{placeholder:"请输入".concat(["reassign","involve"].includes(e.actionModel.flow_action_name)?"备注":"审批或退回意见"),"auto-size":{minRows:4,maxRows:6}},model:{value:e.actionModel.deal_note,callback:function(t){e.$set(e.actionModel,"deal_note",t)},expression:"actionModel.deal_note"}})],1),"back"===e.actionModel.flow_action_name&&e.backs&&e.backs.length?t("a-form-model-item",{attrs:{label:"退回步骤",prop:"deal_note",size:"small"}},[t("a-select",{model:{value:e.actionModel.back_step,callback:function(t){e.$set(e.actionModel,"back_step",t)},expression:"actionModel.back_step"}},e._l(e.backs,(function(n){return t("a-select-option",{key:n.step_id,attrs:{value:n.step_id}},[e._v(" "+e._s(n.step_name)+" ")])})),1)],1):e._e(),e.allowOver?t("a-form-model-item",{attrs:{label:"结束工作流",prop:"allow_over",size:"small"}},[t("a-switch",{model:{value:e.actionModel.is_over,callback:function(t){e.$set(e.actionModel,"is_over",t)},expression:"actionModel.is_over"}})],1):e._e()],2):e._e(),e.actionModel.flow_action_name?e._e():t("a-card",{style:{marginBottom:e.actionModel.flow_action_name?"15px":"0"},attrs:{bordered:!!e.actionModel.flow_action_name}},e._l(e.attrs,(function(n){return t("Item",{key:n.name,attrs:{formModel:e.actionModel,prop:n.name,schema:n,params:{}},on:{change:function(t){return e.handleItemChange(t,n)}},model:{value:e.actionModel[n.name],callback:function(t){e.$set(e.actionModel,n.name,t)},expression:"actionModel[attr.name]"}})})),1),e.todos.length&&!["back","reassign","involve"].includes(e.actionModel.flow_action_name)&&e.todos[0].todo_actors.length?e._l(e.todos,(function(n,r){return t("div",{key:n.todo_id},[e.actionModel.flow_action_name?t("h4",[e._v("后续步骤")]):e._e(),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-small workflow-table"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[t("thead",{staticClass:"ant-table-thead"},[t("tr",[t("th",{key:"no",attrs:{width:"10%"}},[t("span",[e._v("序号")])]),t("th",{key:"template_name"},[t("span",[e._v("下一步步骤名称")])]),t("th",{key:"template_desc"},[t("span",[e._v("下一步审批者")])])])]),t("tbody",{staticClass:"ant-table-tbody"},[t("tr",{staticClass:"ant-table-row ant-table-row-level-0"},[t("td",[t("p",{staticStyle:{padding:"12px 0"}},[e._v(e._s(r+1))])]),t("td",[t("p",{staticStyle:{padding:"12px 0"}},[e._v(" "+e._s(n.current_step.step_name)+" ")])]),t("td",[t("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"搜索姓名","enter-button":""},on:{search:function(t){return e.operatorNameValue=t}}}),t("a-table",{attrs:{dataSource:e.filterOperators(n.todo_actors.map((function(e){return e.operator}))),rowKey:"actor_id",rowSelection:e.rowSelection,pagination:!1,size:"middle"}},[t("a-table-column",{key:"actor_name",attrs:{title:"姓名",dataIndex:"actor_name"}}),t("a-table-column",{key:"actor_org_name",attrs:{title:"所在单位/部门",dataIndex:"actor_org_name"}})],1)],1)])])])])])])])})):e._e()],2):e._e(),t("a-tab-pane",{key:e.actionModel.confirm?"2":"1",attrs:{tab:"审批记录"}},[t("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[t("a-list",{attrs:{itemLayout:"horizontal",dataSource:e.logs},scopedSlots:e._u([{key:"renderItem",fn:function(n){return t("a-list-item",{},[t("a-list-item-meta",[t("div",{attrs:{slot:"title"},slot:"title"},[e._v(" "+e._s(n.step_name)+" - "+e._s(n.operator.actor_name)+" - "+e._s(n.operator.actor_org_name)+" ")]),e.$store.state.app.icon?t("a-avatar",{attrs:{slot:"avatar",src:e.$store.state.app.icon},slot:"avatar"}):t("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),t("div",{attrs:{slot:"description"},slot:"description"},[t("div",[e._v(" "+e._s(n.deal_desc)+" ")]),n.deal_note?t("div",[e._v(" 审批意见:"+e._s(n.deal_note)+" ")]):e._e(),t("div",[t("a-icon",{attrs:{type:"clock-circle-o"}}),e._v(" "+e._s(e.moment(n.deal_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1)],1)}}])})],1)],1),t("a-tab-pane",{key:"3",attrs:{tab:"工作流步骤"}},[t("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[t("a-timeline",e._l(e.steps,(function(n,r){return t("a-timeline-item",{key:n.step_id,attrs:{color:e.stepIndex>r?"blue":e.stepIndex===r?"green":"#999"}},[e._v(" "+e._s(r+1)+". "+e._s(n.step_name)+" "),e.stepIndex>r?t("span",[e._v(" "+e._s(n.operator?"(".concat(n.operator,")"):"")+" ")]):e._e(),e.stepIndex===r?t("span",[e._v(" "+e._s(e.operatorName)+" ")]):e._e()])})),1)],1)],1),t("a-tab-pane",{key:"4",attrs:{tab:"流程图",forceRender:""}},[t("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[t("div",{ref:"graph"})])],1)],1)],1)},Xs=[],Zs=n("336c"),Js=n.n(Zs);function el(e){return el="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},el(e)}function tl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return nl(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(nl(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nl(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,nl(f,"constructor",c),nl(c,"constructor",l),l.displayName="GeneratorFunction",nl(c,o,"GeneratorFunction"),nl(f),nl(f,o,"Generator"),nl(f,r,(function(){return this})),nl(f,"toString",(function(){return"[object Generator]"})),(tl=function(){return{w:i,m:d}})()}function nl(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}nl=function(e,t,n,r){function i(t,n){nl(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},nl(e,t,n,r)}function rl(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ol(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rl(i,r,o,a,s,"next",e)}function s(e){rl(i,r,o,a,s,"throw",e)}a(void 0)}))}}function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?il(Object(n),!0).forEach((function(t){sl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sl(e,t,n){return(t=ll(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(e){var t=cl(e,"string");return"symbol"==el(t)?t:t+""}function cl(e,t){if("object"!=el(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=el(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}Js.a.track(!1);var ul=n("019f"),fl={mixins:[St["a"]],components:{Item:Ct["a"]},data:function(){return{actionModel:al(al({},this.values),{},{is_over:!1})||{},todos:this.params.flow&&this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo.constructor===Array?this.params.flow.flow_data.todo:[this.params.flow.flow_data.todo],current:this.params.flow&&this.params.flow.flow_data.case,formItems:this.params.flow&&this.params.flow.flow_data.form_param||[],backs:this.params.flow&&this.params.flow.flow_data.back_step,allowBack:this.params.flow&&this.params.flow.flow_data.allow_back,allowReassign:this.params.flow&&this.params.flow.flow_data.allow_reassign,allowInvolve:this.params.flow&&this.params.flow.flow_data.allow_involve,allowOver:this.params.flow&&this.params.flow.flow_data.allow_over,caseSteps:this.params.flow&&this.params.flow.model.case_step,logs:this.params.flow&&this.params.flow.flow_data.logs,rowSelection:{onChange:this.handleSelectionChange,columnWidth:"35px",type:this.params&&this.params.rowSelectionType?this.params.rowSelectionType:"checkbox",selectedRowKeys:[]||!1},activeName:"1",operatorNameValue:""}},created:function(){var e=this;if(this.todos&&1===this.todos.length&&this.todos[0].todo_actors&&1===this.todos[0].todo_actors.length&&(this.rowSelection.selectedRowKeys=this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo[0]&&this.params.flow.flow_data.todo[0].todo_actors&&this.params.flow.flow_data.todo[0].todo_actors.map((function(e){return e.operator.actor_id})),this.actionModel.todo_actors=this.rowSelection.selectedRowKeys),this.todos&&this.todos.forEach((function(t){if(t.next_default_actor&&t.todo_actors){var n=t.todo_actors.map((function(e){return e.operator.actor_id}));e.rowSelection.selectedRowKeys=n.filter((function(e){return t.next_default_actor===e})),e.actionModel.todo_actors=e.rowSelection.selectedRowKeys}})),this.defaultValues)for(var t in this.defaultValues)void 0===this.actionModel[t]&&this.$set(this.actionModel,t,this.defaultValues[t])},mounted:function(){var e=this;setTimeout((function(){e.renderGraph()}),50)},methods:{handleSelectionChange:function(e){this.rowSelection.selectedRowKeys=this.actionModel.todo_actors=e},handleCommit:function(){var e=this;return ol(tl().m((function t(){return tl().w((function(t){while(1)switch(t.n){case 0:if(!e.todos[0].todo_actors.length||e.actionModel.todo_actors.length||["back","reassign","involve"].includes(e.actionModel.flow_action_name)||e.params.todoActorsNotRequired){t.n=1;break}return e.$message.error("请选择下一步审批者"),t.a(2);case 1:e.$emit("commit",e.actionModel);case 2:return t.a(2)}}),t)})))()},handleItemChange:function(e,t){var n=this;return ol(tl().m((function r(){var o,i,a,s;return tl().w((function(r){while(1)switch(r.n){case 0:if(o=t.name,!(e instanceof FileList)){r.n=4;break}if(!e[0]){r.n=2;break}return i=new FormData,i.append(o,e[0]),r.n=1,n.$api.post("/upload",i);case 1:a=r.v,e=a.data.data[o],r.n=3;break;case 2:e=null;case 3:r.n=5;break;case 4:e instanceof Date&&(e=n.moment(e).format("YYYY-MM-DD"));case 5:s=al({},n.actionModel.data),s[o]=e,n.actionModel.data=al({},s);case 6:return r.a(2)}}),r)})))()},renderGraph:function(){var e=this;Js.a.registerNode("rect",{getPath:function(e){var t=150,n=40;return Js.a.Util.getRectPath(-t/2,-n/2,t,n,10)}});var t={nodes:this.steps.map((function(e,t){return{id:e.step_id,name:e.step_name,stepIndex:t}})),edges:this.steps.slice(1).map((function(t){var n=e.steps.find((function(e){return e.step_id===t.before_step_id}))||e.steps.find((function(e){return e.after_step_id===t.step_id}));return{source:n&&n.step_id,target:t.step_id}}))},n=new Js.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new ul({ranksep:30})],defaultIntersectBox:"rect"});n.node({shape:"rect",label:function(e){return e.name},style:function(t){return{stroke:e.stepIndex>t.stepIndex?"#0285cd":e.stepIndex===t.stepIndex?"#52c41a":"#999",fill:"#999",fillOpacity:.3,lineWidth:2}}}),n.edge({style:{endArrow:!0}}),n.read(t)},filterOperators:function(e){var t=this;return this.operatorNameValue?e.filter((function(e){return e.actor_name.toString().toLowerCase().includes(t.operatorNameValue.toLowerCase())})):e}},computed:{lastStepID:function(){return this.logs&&this.logs.length>0&&this.current&&"on-going"===this.current.case_status&&this.todos&&this.todos.length>0?this.todos[0].current_step_id:this.current&&"success"===this.current.case_status?this.caseSteps[this.caseSteps.length-1].step_id:this.caseSteps[0].step_id},stepIndex:function(){var e=this,t=this.steps.findIndex((function(t){return e.lastStepID===t.step_id}));return-1===t?0:!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?t:t-1},steps:function(){return this.caseSteps.filter((function(e){return Number(e.valid)}))},attrs:function(){var e,t=this,n=this.formItems.map((function(e){return e.attr_name})),r=((null===(e=this.view)||void 0===e||null===(e=e.schema)||void 0===e||null===(e=e.model)||void 0===e?void 0:e.attrs)||[]).filter((function(e){return n.includes(e.name)})).map((function(e){var n=t.formItems.find((function(t){return t.attr_name===e.name}));return al(al({},e),n)}));return["reassign","involve"].includes(this.actionModel.flow_action_name)?r.filter((function(e){return e.attr_name===t.actionModel.flow_action_name})):r.filter((function(e){return!["reassign","involve"].includes(e.attr_name)}))},defaultValues:function(){var e=this.attrs?this.attrs.filter((function(e){return!!e.value})).map((function(e){return[e.name,e.value]})):[];return e.length?Object.fromEntries(e):null},operatorName:function(){var e=[];return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?this.logs&&this.logs.length>0&&this.todos&&this.todos.length>0&&this.todos[0].todo_actors?e=this.todos[0].todo_actors.filter((function(e){return"close"!==e.status})).map((function(e){return e.operator_name})):this.logs&&0===this.logs.length&&(e=[this.$store.state.user.name]):e=[this.$store.state.user.name],e.length>0?"(".concat(e.join("、"),")"):""}}},dl=fl,pl=(n("3971"),Object(ut["a"])(dl,Qs,Xs,!1,null,null,null)),hl=pl.exports,ml=function(){var e=this,t=e._self._c;return t("a-spin",{staticStyle:{height:"inherit"},attrs:{spinning:e.loading}},[t("a-spin",{staticStyle:{height:"inherit"},attrs:{spinning:!e.init}},[this.isError?e._e():t("div",{staticClass:"jjh",staticStyle:{"background-color":"red"}},[e.init?t("NodeContainer",{attrs:{"business-adapter":e.businessAdapter,"node-data":e.nodeData}}):e._e()],1),e.isError?t("div",[e._v("系统错误! 尝试关闭并重新打开")]):e._e()])],1)},vl=[],yl=n("ad54"),gl=n("a142");function bl(e){return bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bl(e)}function wl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return _l(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(_l(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_l(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,_l(f,"constructor",c),_l(c,"constructor",l),l.displayName="GeneratorFunction",_l(c,o,"GeneratorFunction"),_l(f),_l(f,o,"Generator"),_l(f,r,(function(){return this})),_l(f,"toString",(function(){return"[object Generator]"})),(wl=function(){return{w:i,m:d}})()}function _l(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_l=function(e,t,n,r){function i(t,n){_l(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_l(e,t,n,r)}function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach((function(t){kl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kl(e,t,n){return(t=Nl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function El(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ol(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){El(i,r,o,a,s,"next",e)}function s(e){El(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Tl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Al(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nl(r.key),r)}}function xl(e,t,n){return t&&Al(e.prototype,t),n&&Al(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nl(e){var t=Il(e,"string");return"symbol"==bl(t)?t:t+""}function Il(e,t){if("object"!=bl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function jl(e,t,n){Pl(e,t),t.set(e,n)}function Pl(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Rl(e,t){return e.get(Bl(e,t))}function Dl(e,t,n){return e.set(Bl(e,t),n),n}function Bl(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Ll=new WeakMap,Ml=new WeakMap,Ul=new WeakMap,Vl=function(){function e(t){Tl(this,e),jl(this,Ll,void 0),jl(this,Ml,void 0),jl(this,Ul,void 0),Dl(Ll,this,t),Dl(Ml,this,window.location.origin+"/ead"),Dl(Ul,this,window.location.origin+"/workflow")}return xl(e,[{key:"getComponent",value:function(){return Rl(Ll,this)}},{key:"setComponent",value:function(e){Dl(Ll,this,e)}},{key:"getCurrentViewSchema",value:function(){return Rl(Ll,this).$attrs.schema}},{key:"getCurrentUserName",value:function(){return Rl(Ll,this).$store.state.user.name}},{key:"getModelIdName",value:function(){return Rl(Ll,this).$attrs.schema.model.idName}},{key:"runCurrentAction",value:function(){var e=Ol(wl().m((function e(){var t,n,r,o,i,a,s,l,c;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,t=Rl(Ll,this).action,n=Rl(Ll,this).view.apiURL.replace(Rl(Ll,this).view.apiBaseURL+"/",""),r=t.key,o=t.method,e.n=1,Rl(Ll,this).$api[o.toLowerCase()]("".concat(n).concat(r?"/".concat(r):""),Cl({},Rl(Ll,this).actionModel));case 1:return i=e.v,a=i.data,e.a(2,a);case 2:return e.p=2,c=e.v,s=c.response.data,l=s&&s.content||"系统错误请与管理员联系。",Rl(Ll,this).$message.error(l),e.a(2,null);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getViewAttrs",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-viewattr?view_id=").concat(t));case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getViewSchema",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ul,this),"/api/viewschema/").concat(t));case 1:return n=e.v,r=n.data,e.a(2,r);case 2:e.p=2,a=e.v,o=a.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getUsers",value:function(){var e=Ol(wl().m((function e(){var t,n,r,o,i,a;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-user"));case 1:return t=e.v,n=t.data.collection,r=void 0===n?[]:n,e.a(2,r);case 2:e.p=2,a=e.v,o=a.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getRoles",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-role?app_key=")+t);case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getOrgs",value:function(){var e=Ol(wl().m((function e(){var t,n,r,o,i,a;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-org"));case 1:return t=e.v,n=t.data.collection,r=void 0===n?[]:n,e.a(2,r);case 2:e.p=2,a=e.v,o=a.response.data,i=o&&o.content||"系统错误请与管理员联系。",this.$message.error(i);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDataset",value:function(){var e=Ol(wl().m((function e(t,n){var r,o,i,a,s,l;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/dataset/").concat(t),{params:Cl({},n)});case 1:return r=e.v,o=r.data.data,i=void 0===o?[]:o,e.a(2,i);case 2:e.p=2,l=e.v,a=l.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getDatasetApi",value:function(){var e=Ol(wl().m((function e(t,n){var r,o,i,a,s,l;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/").concat(t),{params:Cl({},n)});case 1:return r=e.v,o=r.data.collection,i=void 0===o?[]:o,e.a(2,i);case 2:e.p=2,l=e.v,a=l.response.data,s=a&&a.content||"系统错误请与管理员联系。",this.$message.error(s);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"getViews",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-view?name=")+t);case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getModels",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-model?name=")+t);case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getDrivers",value:function(){var e=Ol(wl().m((function e(t){var n,r,o,i,a,s;return wl().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Rl(Ll,this).$api.get("".concat(Rl(Ml,this),"/api/flowdir-driver?name=")+t);case 1:return n=e.v,r=n.data.collection,o=void 0===r?[]:r,e.a(2,o);case 2:e.p=2,s=e.v,i=s.response.data,a=i&&i.content||"系统错误请与管理员联系。",this.$message.error(a);case 3:return e.p=3,e.f(3);case 4:return e.a(2)}}),e,this,[[0,2,3,4]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getSelections",value:function(){return Rl(Ll,this).$attrs.selections}},{key:"getUrl",value:function(){return Rl(Ll,this).$attrs.schema.url}},{key:"getValues",value:function(){return Rl(Ll,this).values}},{key:"getModelValues",value:function(){return Rl(Ll,this).actionModel}},{key:"getCurrentAction",value:function(){return Rl(Ll,this).action}}])}(),ql=Vl,Fl={name:"workflow-designer",mixins:[St["a"]],components:{NodeContainer:yl["default"]},setup:function(){Ct["a"],St["a"];var e=new ql,t=gl["a"].getBusinessAdapter();t.eadApi=e;var n=[],r=Object(dn["ref"])(null);return{nodeData:n,businessAdapter:t,eadApi:e,oldHandleCommit:r}},data:function(){return{init:!1,loading:!1,isError:!1,errorInfo:""}},computed:{nodeHandler:function(){return this.businessAdapter.nodeHandler}},methods:{validNodeData:function(){return this.nodeHandler.verify()},handleCommit:function(){if(this.validNodeData()){var e=this.nodeHandler.map(),t={};Object.keys(e).forEach((function(n){t[n]=Object.fromEntries(e[n])})),t=JSON.parse(JSON.stringify(t));var n=t.node;Object.keys(n).forEach((function(e){var t=n[e];t.data&&t.data.option_forms&&t.data.option_forms.length&&t.data.option_forms.forEach((function(e){delete e.schema}))})),this.actionModel.workflow_data=t,this.$emit("commit",this.actionModel)}else this.$message.error("校验未通过")}},mounted:function(){var e=this;this.eadApi.setComponent(this),this.nodeData=this.businessAdapter.getNodeData(),this.businessAdapter.init().then((function(){e.init=!0})).catch((function(t){e.isError=!0,e.init=!0,e.errorInfo=JSON.stringify(t),e.$message.error("系统错误,请联系管理员")}))}},Kl=Fl,$l=Object(ut["a"])(Kl,ml,vl,!1,null,"7cc8451f",null),Hl=$l.exports,Gl=function(){var e,t,n,r,o=this,i=this,a=i._self._c;return a("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:i.actionModel,rules:i.rules}},[a("a-spin",{attrs:{spinning:i.loading}},[a("a-tabs",{on:{change:function(){return o.$refs.nodeContainer.toMiddle()}},model:{value:i.paneKey,callback:function(e){i.paneKey=e},expression:"paneKey"}},[i.paneSet.has("1")&&this.currentNode?a("a-tab-pane",{key:"1",attrs:{tab:"操作"}},[i.OPERATE.CHECK===i.workflowReq.operate?a("a-radio-group",{staticStyle:{"margin-bottom":"10px"},on:{change:function(e){return i.loadTodo()}},model:{value:i.workflowReq.page_operate.action,callback:function(e){i.$set(i.workflowReq.page_operate,"action",e)},expression:"workflowReq.page_operate.action"}},["check"===i.currentNode.type?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.PASS}},[i._v(" "+i._s(null!==(e=i.currentNode.data.other_options)&&void 0!==e&&null!==(e=e.custom_action)&&void 0!==e&&e.pass?i.currentNode.data.other_options.custom_action.pass:"审批通过")+" ")]):i._e(),i.runtimeData.pageOperate.allowBack?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.BACK}},[i._v(" "+i._s(null!==(t=i.currentNode.data.other_options)&&void 0!==t&&null!==(t=t.custom_action)&&void 0!==t&&t.pass?i.currentNode.data.other_options.custom_action.back:" 审批退回")+" ")]):i._e(),i.runtimeData.pageOperate.allowReassign?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.REASSIGN}},[i._v(" 转办 ")]):i._e(),i.runtimeData.pageOperate.allowInvolve?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.INVOLVE}},[i._v(" 加签 ")]):i._e(),i.runtimeData.pageOperate.allowEnd?a("a-radio-button",{attrs:{value:i.CHECK_ACTION.END}},[i._v(" 结束 ")]):i._e()],1):i._e(),(i.workflowReq.operate===i.OPERATE.START||i.workflowReq.operate===i.OPERATE.CHECK&&[i.CHECK_ACTION.PASS,i.CHECK_ACTION.EXECUTE,i.CHECK_ACTION.PREEXECUTE].includes(i.workflowReq.page_operate.action))&&i.runtimeData.currentNodeFormItem&&i.runtimeData.currentNodeFormItem.length?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[i._l(i.runtimeData.currentNodeFormItem,(function(e){return[e?a("Item",{key:e.name,attrs:{formModel:i.actionModel,params:{},prop:e.name,required:e.required,schema:e},on:{change:function(t){return i.handleItemChange(t,e)}},model:{value:i.actionModel[e.name],callback:function(t){i.$set(i.actionModel,e.name,t)},expression:"actionModel[attr.name]"}}):i._e()]}))],2)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.runtimeData.pageOperate.needRemark?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.BACK].includes(i.workflowReq.page_operate.action)||"task"===i.currentNode.type?"备注":"审批意见",required:!![i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.BACK].includes(i.workflowReq.page_operate.action),size:"small"}},[a("a-textarea",{attrs:{"auto-size":{minRows:4,maxRows:6},placeholder:"请输入".concat([i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END].includes(i.workflowReq.page_operate.action)||"task"===i.currentNode.type?"备注":"审批或退回意见")},model:{value:i.workflowReq.page_operate.operate_content,callback:function(e){i.$set(i.workflowReq.page_operate,"operate_content",e)},expression:"workflowReq.page_operate.operate_content"}})],1)],1):i._e(),i.isCustomBack&&i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-form-model-item",{attrs:{label:"退回步骤",prop:"xxx",size:"small"}},[a("a-select",{model:{value:i.workflowReq.page_operate.custom_back_node_code,callback:function(e){i.$set(i.workflowReq.page_operate,"custom_back_node_code",e)},expression:"workflowReq.page_operate.custom_back_node_code"}},i._l(i.currentNode.data.custom_back_nodes,(function(e){return a("a-select-option",{key:e,attrs:{value:e}},[i._v(" "+i._s(i.nodeHandler.getNode(e).name)+" ")])})),1)],1)],1):i._e(),i.runtimeData.todos&&null!==(n=i.runtimeData.todos.filter((function(e){return i.availableTodo(e)})))&&void 0!==n&&n.length&&(i.OPERATE.START===i.workflowReq.operate||i.OPERATE.CHECK===i.workflowReq.operate&&(i.workflowReq.page_operate.action===i.CHECK_ACTION.PASS||i.workflowReq.page_operate.action===i.CHECK_ACTION.BACK&&"bpmn"===i.currentNode.data.back_type))?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"后续步骤"}},[i.runtimeData.todos&&null!==(r=i.runtimeData.todos.filter((function(e){return i.availableTodo(e)})))&&void 0!==r&&r.length?a("a-tabs",{attrs:{"tab-position":"top"},model:{value:i.currentTodo,callback:function(e){i.currentTodo=e},expression:"currentTodo"}},[i._l(i.runtimeData.todos,(function(e){var t,n,r,o,s,l,c,u;return[i.availableTodo(e)?a("a-tab-pane",{key:e.node_code,attrs:{disabled:!i.availableTodo(e),tab:null!==(t=null===(n=i.nodeHandler.getNode(e.node_code))||void 0===n?void 0:n.name)&&void 0!==t?t:"-"}},[i.availableTodo(e)?a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(t){return i.filterTodoItemActors(t,e)}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":e.actorsf.value,pagination:!1,"row-selection":null!==(r=e.optional)&&void 0!==r&&r.enable?{type:e.optional.multi?"checkbox":"radio",selectedRowKeys:e.selected,onChange:function(t){e.selected=t}}:null,rowKey:"uid",size:"middle"}})],1),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{title:(null!==(o={queue:"依次",orsign:"或签",sign:"会签"}[null!==(s=e.optional)&&void 0!==s&&s.enable&&null!==(l=e.optional)&&void 0!==l&&l.multi||(null===(c=e.optional)||void 0===c||!c.enable)&&e.actorsf.value.length>=2?null===e||void 0===e?void 0:e.actor_check_mode:""])&&void 0!==o?o:"")+"执行人列表",size:"small"}},[a("draggable",{attrs:{disabled:!("queue"===(null===e||void 0===e?void 0:e.actor_check_mode)&&null!==(u=e.optional)&&void 0!==u&&u.enable),animation:"100",chosenClass:"chosen"},model:{value:e.selected,callback:function(t){i.$set(e,"selected",t)},expression:"item.selected"}},[a("transition-group",{attrs:{name:"flip-list",type:"transition"}},[e.selected&&null!==e&&void 0!==e&&e.selected.length?i._l(e.selected,(function(e){return a("div",{key:e,staticClass:"item"},[i._v(" "+i._s(i.userCache[e])+" ")])})):i._e()],2)],1)],1)],1):i._e()]):i._e()]}))],2):i._e()],1)],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.REASSIGN?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"转办执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.reassign.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return i.reassignUserFilter=e}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.reassignUserFilter,i.runtimeData.reassign.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(e){i.runtimeData.reassign.selected=e}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.reassignUserPagination.current=1,i.handleTableChangeReassignUser(i.reassignUserPagination)}},model:{value:i.reassignUserFilter,callback:function(e){i.reassignUserFilter=e},expression:"reassignUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.reassignUserData,loading:i.loadingReassignUser,pagination:i.reassignUserPagination,"row-key":function(e){return e.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.reassign.selected,onChange:function(e){o.reassignUserData.filter((function(t){return e.includes(t.uid)})).forEach((function(e){return i.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),i.runtimeData.reassign.selected=e}}},on:{change:i.handleTableChangeReassignUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"转办人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.reassign.selected,callback:function(e){i.$set(i.runtimeData.reassign,"selected",e)},expression:"runtimeData.reassign.selected"}},[a("transition-group",i._l(i.runtimeData.reassign.selected,(function(e){return a("div",{key:e,staticClass:"item"},[i._v(" "+i._s(i.userCache[e])+" ")])})),0)],1)],1)],1)])],1):i._e(),i.OPERATE.CHECK===i.workflowReq.operate&&i.workflowReq.page_operate.action===i.CHECK_ACTION.INVOLVE?a("div",{staticStyle:{"margin-bottom":"5px"}},[a("a-card",{attrs:{size:"small",title:"加签执行人"}},[a("div",{staticClass:"actors"},[a("div",{staticStyle:{width:"60%"}},[i.runtimeData.involve.actors?[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(e){return i.involveUserFilter=e}}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.filterActors(i.involveUserFilter,i.runtimeData.involve.actors),pagination:!1,"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(e){i.runtimeData.involve.selected=e}},rowKey:"uid",size:"middle"}})]:[a("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{"enter-button":"",placeholder:"搜索姓名"},on:{search:function(){i.involveUserPagination.current=1,i.handleTableChangeInvolveUser(i.involveUserPagination)}},model:{value:i.involveUserFilter,callback:function(e){i.involveUserFilter=e},expression:"involveUserFilter"}}),a("a-table",{attrs:{columns:[{title:"姓名",dataIndex:"name"},{title:"所在单位",dataIndex:"org_name"}],"data-source":i.involveUserData,loading:i.loadingInvolveUser,pagination:i.involveUserPagination,"row-key":function(e){return e.uid},"row-selection":{type:"radio",selectedRowKeys:i.runtimeData.involve.selected,onChange:function(e){o.involveUserData.filter((function(t){return e.includes(t.uid)})).forEach((function(e){return i.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),i.runtimeData.involve.selected=e}}},on:{change:i.handleTableChangeInvolveUser}})]],2),a("a-card",{staticStyle:{"margin-left":"5%",width:"35%"},attrs:{size:"small",title:"加签人"}},[a("draggable",{attrs:{disabled:!0,chosenClass:"chosen"},model:{value:i.runtimeData.involve.selected,callback:function(e){i.$set(i.runtimeData.involve,"selected",e)},expression:"runtimeData.involve.selected"}},[a("transition-group",i._l(i.runtimeData.involve.selected,(function(e){return a("div",{key:e,staticClass:"item"},[i._v(" "+i._s(i.userCache[e])+" ")])})),0)],1)],1)],1)])],1):i._e()],1):i._e(),i.paneSet.has("2")?a("a-tab-pane",{key:"2",attrs:{"force-render":"",tab:"操作记录"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("a-list",{attrs:{dataSource:this.runtimeData.logList},scopedSlots:i._u([{key:"renderItem",fn:function(e){return a("a-list-item",{},[a("a-list-item-meta",[a("strong",{attrs:{slot:"title"},slot:"title"},[i._v(" "+i._s(e.node_name)+" "),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.operate_data,expression:"item.operate_data"}],attrs:{icon:"read",type:"link"},on:{click:function(t){return i.showOperateData(e)}}})],1),i.$store.state.app.icon?a("a-avatar",{attrs:{slot:"avatar",src:i.$store.state.app.icon},slot:"avatar"}):a("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),a("a-space",{attrs:{slot:"description",direction:"vertical"},slot:"description"},[a("div",[i._v(i._s(e.operate_desc))]),e.operate_content?a("div",[[i.CHECK_ACTION.REASSIGN,i.CHECK_ACTION.INVOLVE,i.CHECK_ACTION.END,i.CHECK_ACTION.EXECUTE].includes(e.operate)?a("div",[i._v(" 备注:"+i._s(e.operate_content)+" ")]):a("div",[i._v(" 审批意见:"+i._s(e.operate_content)+" ")])]):i._e(),a("a-space",[a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"clock-circle-o"}}),i._v(" "+i._s(i.moment(e.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1),a("a-divider",{attrs:{type:"vertical"}}),a("span",{staticStyle:{color:"#18274a"}},[a("a-icon",{staticStyle:{color:"#31b7bc"},attrs:{type:"user"}}),i._v(" "+i._s(e.operator.name)+"("+i._s(e.operator.org_name)+") ")],1)],1)],1)],1)],1)}}],null,!1,542072683)})],1)],1):i._e(),i.paneSet.has("3")?a("a-tab-pane",{key:"3",attrs:{tab:"流程图"}},[a("a-card",{attrs:{bodyStyle:{"overflow-y":"auto",padding:"20px"}}},[a("div",{staticStyle:{position:"absolute","z-index":"999"}},[a("a-button",{directives:[{name:"show",rawName:"v-show",value:!i.fullscreenLoading,expression:"!fullscreenLoading"}],attrs:{icon:"arrows-alt",type:"link"},on:{click:i.showFullScreenFlow}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:i.fullscreenLoading,expression:"fullscreenLoading"}],attrs:{type:"loading-3-quarters"}})],1),i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer",staticStyle:{"max-height":"350px"},attrs:{"business-adapter":i.businessAdapter,"default-zoom-scale":70,"hide-zoom":!0,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData},on:{nodeHandlerReady:i.nodeHandlerReady,nodeHandlerChange:i.nodeHandlerChange}}):i._e()],1)],1):i._e()],1)],1),a("a-modal",{attrs:{title:"操作表单",visible:i.isShowOperateData,footer:null,width:"50%"},on:{cancel:i.hideOperateData}},[a("a-descriptions",{attrs:{bordered:"",column:{xxl:2,xl:2,lg:2,md:2,sm:2,xs:1}}},i._l(i.operateDataItems,(function(e){return a("a-descriptions-item",{key:e.id,attrs:{label:e.alias}},[i._v(" "+i._s(i.formatter(e,e.value,e))+" ")])})),1)],1),a("a-modal",{staticClass:"jjh-fullscreen",attrs:{bodyStyle:{height:"85vh","overflow-y":"scroll","padding-bottom":"0"},destroyOnClose:!0,"dialog-style":{top:"0px"},visible:i.fullscreen,title:"流程图",width:"100%"},on:{cancel:i.hideFullScreenFlow}},[i.initNodeContainer?a("NodeContainer",{ref:"nodeContainer1",attrs:{"business-adapter":i.businessAdapter,"is-preview":!0,"node-data":i.nodeData,"runtime-data":i.runtimeData}}):i._e(),a("template",{slot:"footer"},[a("a-button",{key:"back",on:{click:i.hideFullScreenFlow}},[i._v("关闭")])],1)],2)],1)},zl=[],Yl=n("289a"),Wl=n.n(Yl);function Ql(e){return Ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ql(e)}function Xl(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=nc(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Zl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Jl(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Jl(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Jl(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Jl(f,"constructor",c),Jl(c,"constructor",l),l.displayName="GeneratorFunction",Jl(c,o,"GeneratorFunction"),Jl(f),Jl(f,o,"Generator"),Jl(f,r,(function(){return this})),Jl(f,"toString",(function(){return"[object Generator]"})),(Zl=function(){return{w:i,m:d}})()}function Jl(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Jl=function(e,t,n,r){function i(t,n){Jl(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Jl(e,t,n,r)}function ec(e){return oc(e)||rc(e)||nc(e)||tc()}function tc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nc(e,t){if(e){if("string"==typeof e)return ic(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ic(e,t):void 0}}function rc(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function oc(e){if(Array.isArray(e))return ic(e)}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(n),!0).forEach((function(t){lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lc(e,t,n){return(t=cc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cc(e){var t=uc(e,"string");return"symbol"==Ql(t)?t:t+""}function uc(e,t){if("object"!=Ql(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ql(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function fc(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function dc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fc(i,r,o,a,s,"next",e)}function s(e){fc(i,r,o,a,s,"throw",e)}a(void 0)}))}}var pc={START:"start",CHECK:"check",QUERY:"query"},hc={PREVIEW:"preview",CONFIRM:"confirm"},mc={PASS:"pass",BACK:"back",REASSIGN:"reassign",INVOLVE:"involve",END:"end",EXECUTE:"execute",PREEXECUTE:"preexecute"},vc={name:"runtime-workflow",mixins:[St["a"],Re["a"]],components:{NodeContainer:yl["default"],Item:Ct["a"],draggable:Wl.a},data:function(){return{OPERATE:pc,OPERATE_MODE:hc,CHECK_ACTION:mc,nodeHandler:null,loading:!0,paneSet:new Set,initNodeContainer:!1,fullscreen:!1,fullscreenLoading:!1,isShowOperateData:!1,operateDataItems:[],nodeData:null,paneKey:"3",currentNode:null,currentTodo:null,runtimeData:{currentNodeCode:"审批人",currentNodeOptionForms:[],currentNodeFormItem:null,pageOperate:{allowBack:!0,allowReassign:!0,allowInvolve:!0,allowEnd:!0,needRemark:!0},customBackNodes:["上报人"],caseNodes:{"上报人":{status:"finish",operate_data_id:""},"审批人":{status:"ongoing",operate_data_id:""},"抄送人":{status:"finish",operate_data_id:""}},actorLogs:{"上报人":[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"reassign",operate_desc:"专办给 to xxx",create_time:1613241234123,sequent:[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"start",operate_desc:"接收专班;并上报",create_time:1613241244123}]},{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"involve",operate_desc:"加签 给 xxx",create_time:1613241234123,sequent:[{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate_desc:"完成",operate:"start",create_time:1613241244123}],callback:{operator:{name:"jianghui",org_name:"部门"},status:"finish",operate:"start",operate_desc:"接收到加签结果;继续处理",create_time:1613241234123}},{operator:{name:"jianghui",org_name:"部门"},status:"ongoing",operate_desc:"正在处理中"}],"审批人":[{operator:{name:"jianghui3",org_name:"部门"},status:"ongoing",operate_desc:"接收到加签结果;继续处理"}]},logList:[{node_name:"上报人",operate:"start",operate_desc:"由王盛发起流程",operate_content:"审批意见",create_time:1613241234123,operator:{name:"jianghui",org_name:"部门"}},{node_name:"上报人",operate_desc:"上报完成",operate_content:"审批意见",create_time:1613241234123,operator:{name:"jianghui",org_name:"部门"}}],todos:[{node_code:"审批人2",condition:"(true) && (true)",optional:{multi:!0,enable:!0},actor_check_mode:"queue",actors:[{uid:1,name:"jianghui0",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"},{uid:3,name:"jianghui2",org_name:"部门2"},{uid:4,name:"jianghui3",org_name:"部门3"},{uid:5,name:"jianghui4",org_name:"部门3"}],selected:[]},{node_code:"审批人3",actor_check_mode:"sign",optional:{multi:!0,enable:!0},actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}],selected:[]},{node_code:"审批人5",actor_check_mode:"",optional:{multi:!1,enable:!0},actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}],selected:[]},{node_code:"审批人4",actor_check_mode:"queue",optional:{multi:!1,enable:!1},selected:[1,2],actors:[{uid:1,name:"jianghui",org_name:"部门1"},{uid:2,name:"jianghui1",org_name:"部门2"}]}],involve:{selected:[]},reassign:{selected:[]}},isCustomBack:null,reassignUserFilter:"",loadingReassignUser:!1,reassignUserData:[],reassignUserPagination:{pageSizeOptions:["10","20"],current:1,pageSize:10},involveUserFilter:"",loadingInvolveUser:!1,involveUserData:[],involveUserPagination:{pageSizeOptions:["10","20"],current:1,pageSize:10},userCache:{},expressionError:!1,workflow:{},formAttrs:[],activityColumns:[]}},setup:function(e){var t=e.columns,n=new ql,r=gl["a"].getBusinessAdapter(),o={operate_mode:hc.PREVIEW,operate:pc.QUERY,page_operate:{action:mc.PASS,operate_content:"",custom_back_node_code:void 0,todos:void 0,involve:void 0,reassign:void 0,form_data:{}},model_id:null,data_id:null};return{columnsRef:Object(dn["ref"])(t),workflowReq:Object(dn["ref"])(o),eadApi:n,businessAdapter:r}},created:function(){},mounted:function(){var e=this;return dc(Zl().m((function t(){var n,r,o,i,a,s,l,c,u,f,d,p,h,m;return Zl().w((function(t){while(1)switch(t.n){case 0:return e.activityColumns=((null===(n=e.view)||void 0===n||null===(n=n.schema)||void 0===n||null===(n=n.model)||void 0===n?void 0:n.attrs)||[]).filter((function(e){return"none"!==e.access})).map((function(e){return e.name})),e.columnsRef=e.columnsRef.map((function(e){return sc({},e)})),e.eadApi.setComponent(e),e.businessAdapter.eadApi=e.eadApi,e.workflowReq.operate=null!==(r=pc[e.configs["workflow.operate"].toUpperCase()])&&void 0!==r?r:e.workflowReq.operate,e.workflowReq.data_id=e.eadApi.getModelValues()[e.eadApi.getModelIdName()],e.workflowReq.model_id=e.configs["workflow.id"],e.eadApi.getModelValues().workflow_req=e.workflowReq,t.n=1,e.eadApi.runCurrentAction();case 1:if(c=t.v,c){t.n=2;break}return e.loading=!1,e.$emit("close"),t.a(2);case 2:Object.keys(e.actionModel).forEach((function(t){Object.keys(c.data).includes(t)&&e.setModel(t,c.data[t])})),e.workflow=null===c||void 0===c||null===(o=c.data)||void 0===o?void 0:o.workflow,u=null===c||void 0===c||null===(i=c.data)||void 0===i||null===(i=i.workflow)||void 0===i?void 0:i.runtime_data,u&&Object.keys(u).length&&(e.runtimeData=u),"check"===u.currentNodeType?e.workflowReq.page_operate.action=mc.PASS:e.workflowReq.page_operate.action=mc.EXECUTE,e.runtimeData.logList||(e.runtimeData.logList=[]),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(e){(!e.optional||e.optional&&!e.optional.enable)&&(e.selected&&e.selected.length||(e.selected=e.actors.map((function(e){return e.uid})))),e.optional&&e.optional.enable&&!e.optional.multi&&(e.selected&&e.selected.length||(e.selected=[e.actors[0].uid]))})),e.runtimeData.actorLogs||(e.runtimeData.actorLogs={}),e.runtimeData.caseNodes&&e.runtimeData.caseNodes.length&&(f={},e.runtimeData.caseNodes.forEach((function(e){f[e.node_code]=sc({},e)})),e.runtimeData.caseNodes=f),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(e){e.actorfilter||(e.actorfilter=""),e.actorsf=Object(dn["ref"])(ec(e.actors))})),d=[],null!==(a=e.runtimeData)&&void 0!==a&&null!==(a=a.involve)&&void 0!==a&&a.actors&&d.push.apply(d,ec(e.runtimeData.involve.actors)),null!==(s=e.runtimeData)&&void 0!==s&&null!==(s=s.reassign)&&void 0!==s&&s.actors&&d.push.apply(d,ec(e.runtimeData.reassign.actors)),e.runtimeData.todos&&e.runtimeData.todos.forEach((function(e){d.push.apply(d,ec(e.actors))})),d.forEach((function(t){e.userCache[t.uid]="".concat(t.name,"(").concat(t.org_name,")")})),p=null===c||void 0===c||null===(l=c.data)||void 0===l||null===(l=l.workflow)||void 0===l?void 0:l.node_json,h=p?null===p||void 0===p?void 0:p.node:null,e.nodeData=h?ec(Object.values(h)):[],m=e.paneSet,[pc.START,pc.CHECK].includes(e.workflowReq.operate)&&m.add("1"),m.add("2"),m.add("3"),e.initNodeContainer=!0,e.$nextTick((function(){e.paneKey=ec(m.values())[0]})),e.validExpression(),e.loadTodo(),e.actionModel.workflow_req=e.workflowReq,e.actionModel.workflow=e.workflow,e.loading=!1,e.workflowReq.operate===pc.CHECK&&(e.fetchInvolveUser(),e.fetchReassignUser());case 3:return t.a(2)}}),t)})))()},methods:{filterTodoItemActors:function(e,t){t.actorsf.value=this.filterActors(e,t.actors)},filterActors:function(e,t){return e?t.filter((function(t){return t.name.toString().toLowerCase().includes(e.toLowerCase())})):t},handleTableChangeReassignUser:function(e){var t=sc({},this.reassignUserPagination);t.current=e.current,this.reassignUserPagination=t,this.fetchReassignUser({userName:this.reassignUserFilter,pagination:{pageSize:e.pageSize,current:e.current}})},showOperateData:function(e){var t=this;return dc(Zl().m((function n(){var r,o,i;return Zl().w((function(n){while(1)switch(n.n){case 0:if(r=t.columns,!e.option_view_id){n.n=2;break}return n.n=1,t.eadApi.getViewSchema(e.option_view_id);case 1:o=n.v,r=null===o||void 0===o?void 0:o.model.attrs;case 2:i=JSON.parse(e.operate_data),t.operateDataItems=[],r.forEach((function(e){if(e.name in i){var n=sc({},e);n.value=i[e.name],t.operateDataItems.push(n)}})),t.isShowOperateData=!0;case 3:return n.a(2)}}),n)})))()},hideOperateData:function(){this.isShowOperateData=!1},fetchReassignUser:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userName:this.reassignUserFilter,pagination:this.reassignUserPagination};this.loadingReassignUser=!0,this.getAllUsers(t.userName,t.pagination).then((function(t){var n=sc({},e.reassignUserPagination);n.total=t.count,e.loadingReassignUser=!1,e.reassignUserData=t.results,e.reassignUserPagination=n}))},handleTableChangeInvolveUser:function(e){var t=sc({},this.involveUserPagination);t.current=e.current,this.involveUserPagination=t,this.fetchInvolveUser({userName:this.involveUserFilter,pagination:{pageSize:e.pageSize,current:e.current}})},fetchInvolveUser:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{userName:this.involveUserFilter,pagination:this.involveUserPagination};this.loadingInvolveUser=!0,this.getAllUsers(t.userName,t.pagination).then((function(t){var n=sc({},e.involveUserPagination);n.total=t.count,e.loadingInvolveUser=!1,e.involveUserData=t.results,e.involveUserPagination=n}))},getAllUsers:function(e,t){var n=this;return dc(Zl().m((function r(){var o,i;return Zl().w((function(r){while(1)switch(r.n){case 0:return r.n=1,n.eadApi.getDatasetApi("flowdir-allusercount",{user_name:e});case 1:return o=r.v,r.n=2,n.eadApi.getDatasetApi("flowdir-alluser",{user_name:e,limit_index:(t.current-1)*t.pageSize,limit_num:t.pageSize});case 2:return i=r.v,r.a(2,{count:o[0].count,results:i})}}),r)})))()},handleCommit:function(){var e,t=this,n=!1;if(this.workflowReq.operate_mode=hc.CONFIRM,this.workflowReq.operate===pc.START){var r;if(null!==(r=this.runtimeData.todos)&&void 0!==r&&r.length){var o=this.getAvailableTodos(),i=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(e){return"end"===e.type}));if(!o.length&&!i)return void this.$message.error("无法匹配到符合条件的后续步骤。");this.workflowReq.page_operate.todos=o}var a=this.nodeHandler.map(),s={};Object.keys(a).forEach((function(e){s[e]=Object.fromEntries(a[e])})),this.workflowReq.node_json=s}if(this.workflowReq.operate===pc.CHECK){if(this.workflowReq.page_operate.action===mc.BACK){var l;if("bpmn"===this.currentNode.data.back_type&&(n=!0),this.runtimeData.pageOperate.needRemark&&!this.workflowReq.page_operate.operate_content)return void this.$message.error("请填写退回原因。");if(null!==(l=this.runtimeData.todos)&&void 0!==l&&l.length){var c=this.getAvailableTodos(),u=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(e){return"end"===e.type}));if(!c.length&&!u)return void this.$message.error("无法匹配到符合条件的后续步骤。");this.workflowReq.page_operate.todos=c}}var f;if(this.workflowReq.page_operate.action===mc.PASS)if(null!==(f=this.runtimeData.todos)&&void 0!==f&&f.length){var d=this.getAvailableTodos(),p=this.nodeHandler.getAllRoute(this.currentNode.code).find((function(e){return"end"===e.type}));if(!d.length&&!p)return void this.$message.error("无法匹配到符合条件的后续步骤。");this.workflowReq.page_operate.todos=d}if(this.workflowReq.page_operate.action===mc.INVOLVE){var h;if(null===(h=this.runtimeData.involve)||void 0===h||null===(h=h.selected)||void 0===h||!h.length)return void this.$message.error("请选择加签人。");if(this.runtimeData.pageOperate.needRemark&&!this.workflowReq.page_operate.operate_content)return void this.$message.error("请填写加签原因。");this.workflowReq.page_operate.involve=this.runtimeData.involve}if(this.workflowReq.page_operate.action===mc.REASSIGN){var m;if(null===(m=this.runtimeData.reassign)||void 0===m||null===(m=m.selected)||void 0===m||!m.length)return void this.$message.error("请选择转办人。");if(this.runtimeData.pageOperate.needRemark&&!this.workflowReq.page_operate.operate_content)return void this.$message.error("请填写转办原因。");this.workflowReq.page_operate.reassign=this.runtimeData.reassign}}if(this.currentNode.data.other_options.assert&&this.currentNode.data.other_options.assert.length){var v,y=this.currentNode.data.other_options.assert.filter((function(e){return"all"===e.action||e.action===t.workflowReq.page_operate.action})).filter((function(e){return e.expression&&e.message})),g=Xl(y);try{var b,w=function(){var e=v.value;try{var n={};t.activityColumns.forEach((function(e){return n[e]=t.actionModel[e]}));var r=new Function(Object.keys(n),"return "+e.expression),o=r.apply(void 0,ec(Object.values(n)));if(!o)return t.$message.error(e.message),{v:void 0}}catch(i){return t.$message.error("断言表达式配置错误,"+e.message),{v:void 0}}};for(g.s();!(v=g.n()).done;)if(b=w(),b)return b.v}catch(S){g.e(S)}finally{g.f()}}this.runtimeData.currentNodeFormItem&&this.runtimeData.currentNodeFormItem.forEach((function(e){t.workflowReq.page_operate.form_data[e.name]=t.actionModel[e.name]})),this.actionModel.workflow=this.workflow,this.actionModel.workflow_req=this.workflowReq,"暂存"===(null===(e=this.action)||void 0===e||null===(e=e._tempdata)||void 0===e?void 0:e.workflow_footer_action)&&"task"===this.currentNode.type&&(this.workflowReq.page_operate.action=mc.PREEXECUTE);var _=sc({},this.actionModel);_.workflow_req=sc({},this.workflowReq),_.workflow_req.page_operate=sc({},this.workflowReq.page_operate),n&&(_.workflow_req.page_operate.action="BPMN_BACK"),this.$emit("commit",_)},nodeHandlerReady:function(e){var t=this;return dc(Zl().m((function n(){var r,o,i,a,s,l,c;return Zl().w((function(n){while(1)switch(n.n){case 0:if(t.nodeHandler=e,i=t.currentNode=e.getNode(t.runtimeData.currentNodeCode),!t.runtimeData.pageOperate&&null!==i&&void 0!==i&&null!==(r=i.data)&&void 0!==r&&r.page_options&&(t.runtimeData.pageOperate=i.data.page_options),a=t.columns,!i||!i.data.option_view_id){n.n=2;break}return n.n=1,t.eadApi.getViewSchema(i.data.option_view_id);case 1:s=n.v,a=null===s||void 0===s?void 0:s.model.attrs;case 2:l=null!==(o=t.runtimeData.currentNodeOptionForms)&&void 0!==o?o:null===i||void 0===i?void 0:i.data.option_forms,c=t.runtimeData.currentNodeOperateData,t.runtimeData.currentNodeFormItem=l.filter((function(e){return"none"!==e.access})).map((function(e){var n=a.find((function(t){return t.name===e.attrCode}));return n&&(n.params||(n.params={}),n.params.readonly="readonly"===e.access,n.required=e.required,i&&i.data.option_view_id&&(c?t.setModel(n.name,c[e.attrCode]):t.setModel(n.name,null))),n})).filter((function(e){return e})),t.isCustomBack="custom"===(null===i||void 0===i?void 0:i.data.back_type),t.isCustomBack&&(t.runtimeData.customBackNodes||(t.runtimeData.customBackNodes=ec(null===i||void 0===i?void 0:i.data.custom_back_nodes)),t.workflowReq.page_operate.custom_back_node_code=t.runtimeData.customBackNodes[0]);case 3:return n.a(2)}}),n)})))()},nodeHandlerChange:function(e){var t=this;return dc(Zl().m((function n(){var r,o,i,a,s,l,c,u,f;return Zl().w((function(n){while(1)switch(n.n){case 0:if(s=e.map(),s.node.size!==Object.keys(t.workflow.node_json.node).length){n.n=1;break}return n.a(2);case 1:return l={},Object.keys(s).forEach((function(e){l[e]=Object.fromEntries(s[e])})),t.workflowReq.node_json=l,t.eadApi.getModelValues().workflow_req=t.workflowReq,n.n=2,t.eadApi.runCurrentAction();case 2:if(c=n.v,c){n.n=3;break}return t.loading=!1,t.$emit("close"),n.a(2);case 3:t.workflow=null===c||void 0===c||null===(r=c.data)||void 0===r?void 0:r.workflow,u=null===c||void 0===c||null===(o=c.data)||void 0===o||null===(o=o.workflow)||void 0===o?void 0:o.runtime_data,u&&Object.keys(u).length&&(t.runtimeData=u),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(e){(!e.optional||e.optional&&!e.optional.enable)&&(e.selected&&e.selected.length||(e.selected=e.actors.map((function(e){return e.uid})))),e.optional&&e.optional.enable&&!e.optional.multi&&(e.selected&&e.selected.length||(e.selected=[e.actors[0].uid]))})),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(e){e.actorfilter||(e.actorfilter=""),e.actorsf=Object(dn["ref"])(ec(e.actors))})),f=[],null!==(i=t.runtimeData)&&void 0!==i&&null!==(i=i.involve)&&void 0!==i&&i.actors&&f.push.apply(f,ec(t.runtimeData.involve.actors)),null!==(a=t.runtimeData)&&void 0!==a&&null!==(a=a.reassign)&&void 0!==a&&a.actors&&f.push.apply(f,ec(t.runtimeData.reassign.actors)),t.runtimeData.todos&&t.runtimeData.todos.forEach((function(e){f.push.apply(f,ec(e.actors))})),t.userCache={},f.forEach((function(e){t.userCache[e.uid]="".concat(e.name,"(").concat(e.org_name,")")})),t.currentTodo=null,t.validExpression(),t.loadTodo();case 4:return n.a(2)}}),n)})))()},showFullScreenFlow:function(){var e=this;this.fullscreenLoading=!0,setTimeout((function(){e.$nextTick((function(){e.fullscreen=!0}))}),50)},hideFullScreenFlow:function(){this.fullscreenLoading=!1,this.fullscreen=!1},handleItemChange:function(e,t){var n=this;return dc(Zl().m((function r(){return Zl().w((function(r){while(1)switch(r.n){case 0:n.setModel(t.name,e),n.loadTodo();case 1:return r.a(2)}}),r)})))()},validExpression:function(){var e,t=Xl(this.runtimeData.todos);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(this.availableTodo(n),this.expressionError)return!1}}catch(r){t.e(r)}finally{t.f()}return!0},getAvailableTodos:function(){var e,t=[],n=Xl(this.runtimeData.todos);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.availableTodo(r)&&t.push({node_id:r.node_id,node_code:r.node_code,selected:r.selected})}}catch(o){n.e(o)}finally{n.f()}return t},loadTodo:function(){var e=this;if(this.runtimeData.todos)if(this.currentTodo)this.availableTodo(this.runtimeData.todos.find((function(t){return t.node_code===e.currentTodo})))||(this.currentTodo=null,this.loadTodo());else{var t,n=Xl(this.runtimeData.todos);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(this.availableTodo(r))return void(this.currentTodo=r.node_code)}}catch(o){n.e(o)}finally{n.f()}}},availableTodo:function(e){var t=this;if(this.expressionError)return!1;var n=null===e||void 0===e?void 0:e.condition;if(!n)return!0;try{var r={};this.activityColumns.forEach((function(e){return r[e]=t.actionModel[e]}));var o=new Function(Object.keys(r),"return "+n),i=o.apply(void 0,ec(Object.values(r)));return e.available=i,i}catch(a){this.expressionError=!0,this.$message.error("[".concat(e.node_code,"]表达式执行错误,请联系系统管理员!表达式:").concat(n))}return!1}}},yc=vc,gc=(n("e2aa"),Object(ut["a"])(yc,Gl,zl,!1,null,"64263955",null)),bc=gc.exports,wc=(n("1f51"),{NormalForm:ii,UploadForm:mi,PickerViewForm:Ai,AlgorithmForm:fs,PickerTransferForm:Ps,PickerTreeForm:Ws,WorkflowReport:hl,WorkflowDesigner:Hl,RuntimeWorkflow:bc});function _c(e){return _c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_c(e)}function Sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach((function(t){kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kc(e,t,n){return(t=Ec(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ec(e){var t=Oc(e,"string");return"symbol"==_c(t)?t:t+""}function Oc(e,t){if("object"!=_c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Tc={mixins:[i,a,zo],components:Cc({},wc)},Ac=Tc,xc=Object(ut["a"])(Ac,Mo,Uo,!1,null,null,null),Nc=xc.exports,Ic=t["a"]={ModelList:Mn,ModelProfile:Lo,ModelForm:Nc,AichatForm:An}},c32d:function(e,t){e.exports=u},c39f:function(e,t,n){},c44e:function(e,t,n){var r=n("ebeb");n("d6a3"),n("1385"),n("8d14"),n("712c"),n("53bb"),n("5fb7"),n("ba95"),n("6b34"),n("bb01"),n("7583");var o=r.asn1,i=r.pki,a=e.exports=r.pkcs12=r.pkcs12||{},s={name:"ContentInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},l={name:"PFX",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:!1,capture:"version"},s,{name:"PFX.macData",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:o.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},c={name:"SafeBag",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},u={name:"Attribute",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:!0,capture:"values"}]},f={name:"CertBag",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:o.Class.UNIVERSAL,type:o.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function d(e,t,n,r){for(var o=[],i=0;i<e.length;i++)for(var a=0;a<e[i].safeBags.length;a++){var s=e[i].safeBags[a];void 0!==r&&s.type!==r||(null!==t?void 0!==s.attributes[t]&&s.attributes[t].indexOf(n)>=0&&o.push(s):o.push(s))}return o}function p(e){if(e.composed||e.constructed){for(var t=r.util.createBuffer(),n=0;n<e.value.length;++n)t.putBytes(e.value[n].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function h(e,t,n,r){if(t=o.fromDer(t,n),t.tagClass!==o.Class.UNIVERSAL||t.type!==o.Type.SEQUENCE||!0!==t.constructed)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var a=0;a<t.value.length;a++){var l=t.value[a],c={},u=[];if(!o.validate(l,s,c,u)){var f=new Error("Cannot read ContentInfo.");throw f.errors=u,f}var d={encrypted:!1},h=null,y=c.content.value[0];switch(o.derToOid(c.contentType)){case i.oids.data:if(y.tagClass!==o.Class.UNIVERSAL||y.type!==o.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");h=p(y).value;break;case i.oids.encryptedData:h=m(y,r),d.encrypted=!0;break;default:f=new Error("Unsupported PKCS#12 contentType.");throw f.contentType=o.derToOid(c.contentType),f}d.safeBags=v(h,n,r),e.safeContents.push(d)}}function m(e,t){var n={},a=[];if(!o.validate(e,r.pkcs7.asn1.encryptedDataValidator,n,a)){var s=new Error("Cannot read EncryptedContentInfo.");throw s.errors=a,s}var l=o.derToOid(n.contentType);if(l!==i.oids.data){s=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw s.oid=l,s}l=o.derToOid(n.encAlgorithm);var c=i.pbe.getCipher(l,n.encParameter,t),u=p(n.encryptedContentAsn1),f=r.util.createBuffer(u.value);if(c.update(f),!c.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return c.output.getBytes()}function v(e,t,n){if(!t&&0===e.length)return[];if(e=o.fromDer(e,t),e.tagClass!==o.Class.UNIVERSAL||e.type!==o.Type.SEQUENCE||!0!==e.constructed)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var r=[],a=0;a<e.value.length;a++){var s=e.value[a],l={},u=[];if(!o.validate(s,c,l,u)){var d=new Error("Cannot read SafeBag.");throw d.errors=u,d}var p,h,m={type:o.derToOid(l.bagId),attributes:y(l.bagAttributes)};r.push(m);var v=l.bagValue.value[0];switch(m.type){case i.oids.pkcs8ShroudedKeyBag:if(v=i.decryptPrivateKeyInfo(v,n),null===v)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case i.oids.keyBag:try{m.key=i.privateKeyFromAsn1(v)}catch(g){m.key=null,m.asn1=v}continue;case i.oids.certBag:p=f,h=function(){if(o.derToOid(l.certId)!==i.oids.x509Certificate){var e=new Error("Unsupported certificate type, only X.509 supported.");throw e.oid=o.derToOid(l.certId),e}var n=o.fromDer(l.cert,t);try{m.cert=i.certificateFromAsn1(n,!0)}catch(g){m.cert=null,m.asn1=n}};break;default:d=new Error("Unsupported PKCS#12 SafeBag type.");throw d.oid=m.type,d}if(void 0!==p&&!o.validate(v,p,l,u)){d=new Error("Cannot read PKCS#12 "+p.name);throw d.errors=u,d}h()}return r}function y(e){var t={};if(void 0!==e)for(var n=0;n<e.length;++n){var r={},a=[];if(!o.validate(e[n],u,r,a)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=a,s}var l=o.derToOid(r.oid);if(void 0!==i.oids[l]){t[i.oids[l]]=[];for(var c=0;c<r.values.length;++c)t[i.oids[l]].push(r.values[c].value)}}return t}a.pkcs12FromAsn1=function(e,t,n){"string"===typeof t?(n=t,t=!0):void 0===t&&(t=!0);var s={},c=[];if(!o.validate(e,l,s,c)){var u=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw u.errors=u,u}var f={version:s.version.charCodeAt(0),safeContents:[],getBags:function(e){var t,n={};return"localKeyId"in e?t=e.localKeyId:"localKeyIdHex"in e&&(t=r.util.hexToBytes(e.localKeyIdHex)),void 0===t&&!("friendlyName"in e)&&"bagType"in e&&(n[e.bagType]=d(f.safeContents,null,null,e.bagType)),void 0!==t&&(n.localKeyId=d(f.safeContents,"localKeyId",t,e.bagType)),"friendlyName"in e&&(n.friendlyName=d(f.safeContents,"friendlyName",e.friendlyName,e.bagType)),n},getBagsByFriendlyName:function(e,t){return d(f.safeContents,"friendlyName",e,t)},getBagsByLocalKeyId:function(e,t){return d(f.safeContents,"localKeyId",e,t)}};if(3!==s.version.charCodeAt(0)){u=new Error("PKCS#12 PFX of version other than 3 not supported.");throw u.version=s.version.charCodeAt(0),u}if(o.derToOid(s.contentType)!==i.oids.data){u=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw u.oid=o.derToOid(s.contentType),u}var m=s.content.value[0];if(m.tagClass!==o.Class.UNIVERSAL||m.type!==o.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(m=p(m),s.mac){var v=null,y=0,g=o.derToOid(s.macAlgorithm);switch(g){case i.oids.sha1:v=r.md.sha1.create(),y=20;break;case i.oids.sha256:v=r.md.sha256.create(),y=32;break;case i.oids.sha384:v=r.md.sha384.create(),y=48;break;case i.oids.sha512:v=r.md.sha512.create(),y=64;break;case i.oids.md5:v=r.md.md5.create(),y=16;break}if(null===v)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+g);var b=new r.util.ByteBuffer(s.macSalt),w="macIterations"in s?parseInt(r.util.bytesToHex(s.macIterations),16):1,_=a.generateKey(n,b,3,w,y,v),S=r.hmac.create();S.start(v,_),S.update(m.value);var C=S.getMac();if(C.getBytes()!==s.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return h(f,m.value,t,n),f},a.toPkcs12Asn1=function(e,t,n,s){s=s||{},s.saltSize=s.saltSize||8,s.count=s.count||2048,s.algorithm=s.algorithm||s.encAlgorithm||"aes128","useMac"in s||(s.useMac=!0),"localKeyId"in s||(s.localKeyId=null),"generateLocalKeyId"in s||(s.generateLocalKeyId=!0);var l,c=s.localKeyId;if(null!==c)c=r.util.hexToBytes(c);else if(s.generateLocalKeyId)if(t){var u=r.util.isArray(t)?t[0]:t;"string"===typeof u&&(u=i.certificateFromPem(u));var f=r.md.sha1.create();f.update(o.toDer(i.certificateToAsn1(u)).getBytes()),c=f.digest().getBytes()}else c=r.random.getBytes(20);var d=[];null!==c&&d.push(o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.localKeyId).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SET,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,c)])])),"friendlyName"in s&&d.push(o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.friendlyName).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SET,!0,[o.create(o.Class.UNIVERSAL,o.Type.BMPSTRING,!1,s.friendlyName)])])),d.length>0&&(l=o.create(o.Class.UNIVERSAL,o.Type.SET,!0,d));var p=[],h=[];null!==t&&(h=r.util.isArray(t)?t:[t]);for(var m=[],v=0;v<h.length;++v){t=h[v],"string"===typeof t&&(t=i.certificateFromPem(t));var y=0===v?l:void 0,g=i.certificateToAsn1(t),b=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.certBag).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.x509Certificate).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,o.toDer(g).getBytes())])])]),y]);m.push(b)}if(m.length>0){var w=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,m),_=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,o.toDer(w).getBytes())])]);p.push(_)}var S=null;if(null!==e){var C=i.wrapRsaPrivateKey(i.privateKeyToAsn1(e));S=null===n?o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.keyBag).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[C]),l]):o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.pkcs8ShroudedKeyBag).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[i.encryptPrivateKeyInfo(C,n,s)]),l]);var k=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[S]),E=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,o.toDer(k).getBytes())])]);p.push(E)}var O,T=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,p);if(s.useMac){f=r.md.sha1.create();var A=new r.util.ByteBuffer(r.random.getBytes(s.saltSize)),x=s.count,N=(e=a.generateKey(n,A,3,x,20),r.hmac.create());N.start(f,e),N.update(o.toDer(T).getBytes());var I=N.getMac();O=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.sha1).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.NULL,!1,"")]),o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,I.getBytes())]),o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,A.getBytes()),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,!1,o.integerToDer(x).getBytes())])}return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,!1,o.integerToDer(3).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,!0,[o.create(o.Class.UNIVERSAL,o.Type.OID,!1,o.oidToDer(i.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,!0,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,!1,o.toDer(T).getBytes())])]),O])},a.generateKey=r.pbe.generatePkcs12Key},c6d6:function(e,t,n){"use strict";n("794c")},c6e8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("9f89");function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return r(e,{reInterpolate:n})(t)}},c75f:function(e,t,n){"use strict";n("534c")},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},cebe:function(e,t){e.exports=f},cee7:function(e,t,n){var r=n("ebeb");n("f57a"),n("b71b"),n("bb01");var o="forge.task",i=0,a={},s=0;r.debug.set(o,"tasks",a);var l={};r.debug.set(o,"queues",l);var c="?",u=30,f=20,d="ready",p="running",h="blocked",m="sleeping",v="done",y="error",g="stop",b="start",w="block",_="unblock",S="sleep",C="wakeup",k="cancel",E="fail",O={};O[d]={},O[d][g]=d,O[d][b]=p,O[d][k]=v,O[d][E]=y,O[p]={},O[p][g]=d,O[p][b]=p,O[p][w]=h,O[p][_]=p,O[p][S]=m,O[p][C]=p,O[p][k]=v,O[p][E]=y,O[h]={},O[h][g]=h,O[h][b]=h,O[h][w]=h,O[h][_]=h,O[h][S]=h,O[h][C]=h,O[h][k]=v,O[h][E]=y,O[m]={},O[m][g]=m,O[m][b]=m,O[m][w]=m,O[m][_]=m,O[m][S]=m,O[m][C]=m,O[m][k]=v,O[m][E]=y,O[v]={},O[v][g]=v,O[v][b]=v,O[v][w]=v,O[v][_]=v,O[v][S]=v,O[v][C]=v,O[v][k]=v,O[v][E]=y,O[y]={},O[y][g]=y,O[y][b]=y,O[y][w]=y,O[y][_]=y,O[y][S]=y,O[y][C]=y,O[y][k]=y,O[y][E]=y;var T=function(e){this.id=-1,this.name=e.name||c,this.parent=e.parent||null,this.run=e.run,this.subtasks=[],this.error=!1,this.state=d,this.blocks=0,this.timeoutId=null,this.swapTime=null,this.userData=null,this.id=s++,a[this.id]=this,i>=1&&r.log.verbose(o,"[%s][%s] init",this.id,this.name,this)};T.prototype.debug=function(e){e=e||"",r.log.debug(o,e,"[%s][%s] task:",this.id,this.name,this,"subtasks:",this.subtasks.length,"queue:",l)},T.prototype.next=function(e,t){"function"===typeof e&&(t=e,e=this.name);var n=new T({run:t,name:e,parent:this});return n.state=p,n.type=this.type,n.successCallback=this.successCallback||null,n.failureCallback=this.failureCallback||null,this.subtasks.push(n),this},T.prototype.parallel=function(e,t){return r.util.isArray(e)&&(t=e,e=this.name),this.next(e,(function(n){var o=n;o.block(t.length);for(var i=function(e,n){r.task.start({type:e,run:function(e){t[n](e)},success:function(e){o.unblock()},failure:function(e){o.unblock()}})},a=0;a<t.length;a++){var s=e+"__parallel-"+n.id+"-"+a,l=a;i(s,l)}}))},T.prototype.stop=function(){this.state=O[this.state][g]},T.prototype.start=function(){this.error=!1,this.state=O[this.state][b],this.state===p&&(this.start=new Date,this.run(this),x(this,0))},T.prototype.block=function(e){e="undefined"===typeof e?1:e,this.blocks+=e,this.blocks>0&&(this.state=O[this.state][w])},T.prototype.unblock=function(e){return e="undefined"===typeof e?1:e,this.blocks-=e,0===this.blocks&&this.state!==v&&(this.state=p,x(this,0)),this.blocks},T.prototype.sleep=function(e){e="undefined"===typeof e?0:e,this.state=O[this.state][S];var t=this;this.timeoutId=setTimeout((function(){t.timeoutId=null,t.state=p,x(t,0)}),e)},T.prototype.wait=function(e){e.wait(this)},T.prototype.wakeup=function(){this.state===m&&(cancelTimeout(this.timeoutId),this.timeoutId=null,this.state=p,x(this,0))},T.prototype.cancel=function(){this.state=O[this.state][k],this.permitsNeeded=0,null!==this.timeoutId&&(cancelTimeout(this.timeoutId),this.timeoutId=null),this.subtasks=[]},T.prototype.fail=function(e){if(this.error=!0,N(this,!0),e)e.error=this.error,e.swapTime=this.swapTime,e.userData=this.userData,x(e,0);else{if(null!==this.parent){var t=this.parent;while(null!==t.parent)t.error=this.error,t.swapTime=this.swapTime,t.userData=this.userData,t=t.parent;N(t,!0)}this.failureCallback&&this.failureCallback(this)}};var A=function(e){e.error=!1,e.state=O[e.state][b],setTimeout((function(){e.state===p&&(e.swapTime=+new Date,e.run(e),x(e,0))}),0)},x=function(e,t){var n=t>u||+new Date-e.swapTime>f,r=function(t){if(t++,e.state===p)if(n&&(e.swapTime=+new Date),e.subtasks.length>0){var r=e.subtasks.shift();r.error=e.error,r.swapTime=e.swapTime,r.userData=e.userData,r.run(r),r.error||x(r,t)}else N(e),e.error||null!==e.parent&&(e.parent.error=e.error,e.parent.swapTime=e.swapTime,e.parent.userData=e.userData,x(e.parent,t))};n?setTimeout(r,0):r(t)},N=function(e,t){e.state=v,delete a[e.id],i>=1&&r.log.verbose(o,"[%s][%s] finish",e.id,e.name,e),null===e.parent&&(e.type in l?0===l[e.type].length?r.log.error(o,"[%s][%s] task queue empty [%s]",e.id,e.name,e.type):l[e.type][0]!==e?r.log.error(o,"[%s][%s] task not first in queue [%s]",e.id,e.name,e.type):(l[e.type].shift(),0===l[e.type].length?(i>=1&&r.log.verbose(o,"[%s][%s] delete queue [%s]",e.id,e.name,e.type),delete l[e.type]):(i>=1&&r.log.verbose(o,"[%s][%s] queue start next [%s] remain:%s",e.id,e.name,e.type,l[e.type].length),l[e.type][0].start())):r.log.error(o,"[%s][%s] task queue missing [%s]",e.id,e.name,e.type),t||(e.error&&e.failureCallback?e.failureCallback(e):!e.error&&e.successCallback&&e.successCallback(e)))};e.exports=r.task=r.task||{},r.task.start=function(e){var t=new T({run:e.run,name:e.name||c});t.type=e.type,t.successCallback=e.success||null,t.failureCallback=e.failure||null,t.type in l?l[e.type].push(t):(i>=1&&r.log.verbose(o,"[%s][%s] create queue [%s]",t.id,t.name,t.type),l[t.type]=[t],A(t))},r.task.cancel=function(e){e in l&&(l[e]=[l[e][0]])},r.task.createCondition=function(){var e={tasks:{},wait:function(t){t.id in e.tasks||(t.block(),e.tasks[t.id]=t)},notify:function(){var t=e.tasks;for(var n in e.tasks={},t)t[n].unblock()}};return e}},cf8b:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){return Object.keys(e).every((function(n){var i=e[n],a=n.split(".").reduce((function(e,t){return e&&Object.hasOwn(e,t)?e[t]:void 0}),t);if(a||""===a||null===a){if(Array.isArray(i))return i.includes(a);if("object"!==r(i)||1!==Object.keys(i).length)return"object"===r(i)&&Object.keys(i).length>1?o(i,t):i===a;if(i["!"]&&Array.isArray(i["!"]))return!i["!"].includes(a);if(i["!"])return i!==a;if(i[">"])return a>i[">"];if(i[">="])return a>=i[">="];if(i["<"])return a<i["<"];if(i["<="])return a<=i["<="]}}))}n.d(t,"a",(function(){return o}))},d6a3:function(e,t,n){var r=n("ebeb");n("bb01"),n("8d14");var o=e.exports=r.asn1=r.asn1||{};function i(e,t,n){if(n>t){var r=new Error("Too few bytes to parse DER.");throw r.available=e.length(),r.remaining=t,r.requested=n,r}}o.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},o.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},o.create=function(e,t,n,i,a){if(r.util.isArray(i)){for(var s=[],l=0;l<i.length;++l)void 0!==i[l]&&s.push(i[l]);i=s}var c={tagClass:e,type:t,constructed:n,composed:n||r.util.isArray(i),value:i};return a&&"bitStringContents"in a&&(c.bitStringContents=a.bitStringContents,c.original=o.copy(c)),c},o.copy=function(e,t){var n;if(r.util.isArray(e)){n=[];for(var i=0;i<e.length;++i)n.push(o.copy(e[i],t));return n}return"string"===typeof e?e:(n={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:o.copy(e.value,t)},t&&!t.excludeBitStringContents&&(n.bitStringContents=e.bitStringContents),n)},o.equals=function(e,t,n){if(r.util.isArray(e)){if(!r.util.isArray(t))return!1;if(e.length!==t.length)return!1;for(var i=0;i<e.length;++i)if(!o.equals(e[i],t[i]))return!1;return!0}if(typeof e!==typeof t)return!1;if("string"===typeof e)return e===t;var a=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&o.equals(e.value,t.value);return n&&n.includeBitStringContents&&(a=a&&e.bitStringContents===t.bitStringContents),a},o.getBerValueLength=function(e){var t=e.getByte();if(128!==t){var n,r=128&t;return n=r?e.getInt((127&t)<<3):t,n}};var a=function(e,t){var n=e.getByte();if(t--,128!==n){var r,o=128&n;if(o){var a=127&n;i(e,t,a),r=e.getInt(a<<3)}else r=n;if(r<0)throw new Error("Negative length: "+r);return r}};function s(e,t,n,r){var l;i(e,t,2);var c=e.getByte();t--;var u=192&c,f=31&c;l=e.length();var d,p,h=a(e,t);if(t-=l-e.length(),void 0!==h&&h>t){if(r.strict){var m=new Error("Too few bytes to read ASN.1 value.");throw m.available=e.length(),m.remaining=t,m.requested=h,m}h=t}var v=32===(32&c);if(v)if(d=[],void 0===h)for(;;){if(i(e,t,2),e.bytes(2)===String.fromCharCode(0,0)){e.getBytes(2),t-=2;break}l=e.length(),d.push(s(e,t,n+1,r)),t-=l-e.length()}else while(h>0)l=e.length(),d.push(s(e,h,n+1,r)),t-=l-e.length(),h-=l-e.length();if(void 0===d&&u===o.Class.UNIVERSAL&&f===o.Type.BITSTRING&&(p=e.bytes(h)),void 0===d&&r.decodeBitStrings&&u===o.Class.UNIVERSAL&&f===o.Type.BITSTRING&&h>1){var y=e.read,g=t,b=0;if(f===o.Type.BITSTRING&&(i(e,t,1),b=e.getByte(),t--),0===b)try{l=e.length();var w={verbose:r.verbose,strict:!0,decodeBitStrings:!0},_=s(e,t,n+1,w),S=l-e.length();t-=S,f==o.Type.BITSTRING&&S++;var C=_.tagClass;S!==h||C!==o.Class.UNIVERSAL&&C!==o.Class.CONTEXT_SPECIFIC||(d=[_])}catch(E){}void 0===d&&(e.read=y,t=g)}if(void 0===d){if(void 0===h){if(r.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");h=t}if(f===o.Type.BMPSTRING)for(d="";h>0;h-=2)i(e,t,2),d+=String.fromCharCode(e.getInt16()),t-=2;else d=e.getBytes(h)}var k=void 0===p?null:{bitStringContents:p};return o.create(u,f,v,d,k)}o.fromDer=function(e,t){return void 0===t&&(t={strict:!0,decodeBitStrings:!0}),"boolean"===typeof t&&(t={strict:t,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"string"===typeof e&&(e=r.util.createBuffer(e)),s(e,e.length(),0,t)},o.toDer=function(e){var t=r.util.createBuffer(),n=e.tagClass|e.type,i=r.util.createBuffer(),a=!1;if("bitStringContents"in e&&(a=!0,e.original&&(a=o.equals(e,e.original))),a)i.putBytes(e.bitStringContents);else if(e.composed){e.constructed?n|=32:i.putByte(0);for(var s=0;s<e.value.length;++s)void 0!==e.value[s]&&i.putBuffer(o.toDer(e.value[s]))}else if(e.type===o.Type.BMPSTRING)for(s=0;s<e.value.length;++s)i.putInt16(e.value.charCodeAt(s));else e.type===o.Type.INTEGER&&e.value.length>1&&(0===e.value.charCodeAt(0)&&0===(128&e.value.charCodeAt(1))||255===e.value.charCodeAt(0)&&128===(128&e.value.charCodeAt(1)))?i.putBytes(e.value.substr(1)):i.putBytes(e.value);if(t.putByte(n),i.length()<=127)t.putByte(127&i.length());else{var l=i.length(),c="";do{c+=String.fromCharCode(255&l),l>>>=8}while(l>0);t.putByte(128|c.length);for(s=c.length-1;s>=0;--s)t.putByte(c.charCodeAt(s))}return t.putBuffer(i),t},o.oidToDer=function(e){var t,n,o,i,a=e.split("."),s=r.util.createBuffer();s.putByte(40*parseInt(a[0],10)+parseInt(a[1],10));for(var l=2;l<a.length;++l){t=!0,n=[],o=parseInt(a[l],10);do{i=127&o,o>>>=7,t||(i|=128),n.push(i),t=!1}while(o>0);for(var c=n.length-1;c>=0;--c)s.putByte(n[c])}return s},o.derToOid=function(e){var t;"string"===typeof e&&(e=r.util.createBuffer(e));var n=e.getByte();t=Math.floor(n/40)+"."+n%40;var o=0;while(e.length()>0)n=e.getByte(),o<<=7,128&n?o+=127&n:(t+="."+(o+n),o=0);return t},o.utcTimeToDate=function(e){var t=new Date,n=parseInt(e.substr(0,2),10);n=n>=50?1900+n:2e3+n;var r=parseInt(e.substr(2,2),10)-1,o=parseInt(e.substr(4,2),10),i=parseInt(e.substr(6,2),10),a=parseInt(e.substr(8,2),10),s=0;if(e.length>11){var l=e.charAt(10),c=10;"+"!==l&&"-"!==l&&(s=parseInt(e.substr(10,2),10),c+=2)}if(t.setUTCFullYear(n,r,o),t.setUTCHours(i,a,s,0),c&&(l=e.charAt(c),"+"===l||"-"===l)){var u=parseInt(e.substr(c+1,2),10),f=parseInt(e.substr(c+4,2),10),d=60*u+f;d*=6e4,"+"===l?t.setTime(+t-d):t.setTime(+t+d)}return t},o.generalizedTimeToDate=function(e){var t=new Date,n=parseInt(e.substr(0,4),10),r=parseInt(e.substr(4,2),10)-1,o=parseInt(e.substr(6,2),10),i=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),s=parseInt(e.substr(12,2),10),l=0,c=0,u=!1;"Z"===e.charAt(e.length-1)&&(u=!0);var f=e.length-5,d=e.charAt(f);if("+"===d||"-"===d){var p=parseInt(e.substr(f+1,2),10),h=parseInt(e.substr(f+4,2),10);c=60*p+h,c*=6e4,"+"===d&&(c*=-1),u=!0}return"."===e.charAt(14)&&(l=1e3*parseFloat(e.substr(14),10)),u?(t.setUTCFullYear(n,r,o),t.setUTCHours(i,a,s,l),t.setTime(+t+c)):(t.setFullYear(n,r,o),t.setHours(i,a,s,l)),t},o.dateToUtcTime=function(e){if("string"===typeof e)return e;var t="",n=[];n.push((""+e.getUTCFullYear()).substr(2)),n.push(""+(e.getUTCMonth()+1)),n.push(""+e.getUTCDate()),n.push(""+e.getUTCHours()),n.push(""+e.getUTCMinutes()),n.push(""+e.getUTCSeconds());for(var r=0;r<n.length;++r)n[r].length<2&&(t+="0"),t+=n[r];return t+="Z",t},o.dateToGeneralizedTime=function(e){if("string"===typeof e)return e;var t="",n=[];n.push(""+e.getUTCFullYear()),n.push(""+(e.getUTCMonth()+1)),n.push(""+e.getUTCDate()),n.push(""+e.getUTCHours()),n.push(""+e.getUTCMinutes()),n.push(""+e.getUTCSeconds());for(var r=0;r<n.length;++r)n[r].length<2&&(t+="0"),t+=n[r];return t+="Z",t},o.integerToDer=function(e){var t=r.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var n=new Error("Integer too large; max is 32-bits.");throw n.integer=e,n},o.derToInteger=function(e){"string"===typeof e&&(e=r.util.createBuffer(e));var t=8*e.length();if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},o.validate=function(e,t,n,i){var a=!1;if(e.tagClass!==t.tagClass&&"undefined"!==typeof t.tagClass||e.type!==t.type&&"undefined"!==typeof t.type)i&&(e.tagClass!==t.tagClass&&i.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&i.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));else if(e.constructed===t.constructed||"undefined"===typeof t.constructed){if(a=!0,t.value&&r.util.isArray(t.value))for(var s=0,l=0;a&&l<t.value.length;++l)a=t.value[l].optional||!1,e.value[s]&&(a=o.validate(e.value[s],t.value[l],n,i),a?++s:t.value[l].optional&&(a=!0)),!a&&i&&i.push("["+t.name+'] Tag class "'+t.tagClass+'", type "'+t.type+'" expected value length "'+t.value.length+'", got "'+e.value.length+'"');if(a&&n)if(t.capture&&(n[t.capture]=e.value),t.captureAsn1&&(n[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(n[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e)if(e.bitStringContents.length<2)n[t.captureBitStringValue]="";else{var c=e.bitStringContents.charCodeAt(0);if(0!==c)throw new Error("captureBitStringValue only supported for zero unused bits");n[t.captureBitStringValue]=e.bitStringContents.slice(1)}}else i&&i.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');return a};var l=/[^\\u0000-\\u00ff]/;o.prettyPrint=function(e,t,n){var i="";t=t||0,n=n||2,t>0&&(i+="\n");for(var a="",s=0;s<t*n;++s)a+=" ";switch(i+=a+"Tag: ",e.tagClass){case o.Class.UNIVERSAL:i+="Universal:";break;case o.Class.APPLICATION:i+="Application:";break;case o.Class.CONTEXT_SPECIFIC:i+="Context-Specific:";break;case o.Class.PRIVATE:i+="Private:";break}if(e.tagClass===o.Class.UNIVERSAL)switch(i+=e.type,e.type){case o.Type.NONE:i+=" (None)";break;case o.Type.BOOLEAN:i+=" (Boolean)";break;case o.Type.INTEGER:i+=" (Integer)";break;case o.Type.BITSTRING:i+=" (Bit string)";break;case o.Type.OCTETSTRING:i+=" (Octet string)";break;case o.Type.NULL:i+=" (Null)";break;case o.Type.OID:i+=" (Object Identifier)";break;case o.Type.ODESC:i+=" (Object Descriptor)";break;case o.Type.EXTERNAL:i+=" (External or Instance of)";break;case o.Type.REAL:i+=" (Real)";break;case o.Type.ENUMERATED:i+=" (Enumerated)";break;case o.Type.EMBEDDED:i+=" (Embedded PDV)";break;case o.Type.UTF8:i+=" (UTF8)";break;case o.Type.ROID:i+=" (Relative Object Identifier)";break;case o.Type.SEQUENCE:i+=" (Sequence)";break;case o.Type.SET:i+=" (Set)";break;case o.Type.PRINTABLESTRING:i+=" (Printable String)";break;case o.Type.IA5String:i+=" (IA5String (ASCII))";break;case o.Type.UTCTIME:i+=" (UTC time)";break;case o.Type.GENERALIZEDTIME:i+=" (Generalized time)";break;case o.Type.BMPSTRING:i+=" (BMP String)";break}else i+=e.type;if(i+="\n",i+=a+"Constructed: "+e.constructed+"\n",e.composed){var c=0,u="";for(s=0;s<e.value.length;++s)void 0!==e.value[s]&&(c+=1,u+=o.prettyPrint(e.value[s],t+1,n),s+1<e.value.length&&(u+=","));i+=a+"Sub values: "+c+u}else{if(i+=a+"Value: ",e.type===o.Type.OID){var f=o.derToOid(e.value);i+=f,r.pki&&r.pki.oids&&f in r.pki.oids&&(i+=" ("+r.pki.oids[f]+") ")}if(e.type===o.Type.INTEGER)try{i+=o.derToInteger(e.value)}catch(p){i+="0x"+r.util.bytesToHex(e.value)}else if(e.type===o.Type.BITSTRING){if(e.value.length>1?i+="0x"+r.util.bytesToHex(e.value.slice(1)):i+="(none)",e.value.length>0){var d=e.value.charCodeAt(0);1==d?i+=" (1 unused bit shown)":d>1&&(i+=" ("+d+" unused bits shown)")}}else e.type===o.Type.OCTETSTRING?(l.test(e.value)||(i+="("+e.value+") "),i+="0x"+r.util.bytesToHex(e.value)):e.type===o.Type.UTF8?i+=r.util.decodeUtf8(e.value):e.type===o.Type.PRINTABLESTRING||e.type===o.Type.IA5String?i+=e.value:l.test(e.value)?i+="0x"+r.util.bytesToHex(e.value):0===e.value.length?i+="[null]":i+=e.value}return i}},daf6:function(e,t,n){var r=n("ebeb");n("a64b"),n("1385"),n("4a17"),n("6b34"),n("bb01");var o=e.exports=r.ssh=r.ssh||{};function i(e,t){var n=t.toString(16);n[0]>="8"&&(n="00"+n);var o=r.util.hexToBytes(n);e.putInt32(o.length),e.putBytes(o)}function a(e,t){e.putInt32(t.length),e.putString(t)}function s(){for(var e=r.md.sha1.create(),t=arguments.length,n=0;n<t;++n)e.update(arguments[n]);return e.digest()}o.privateKeyToPutty=function(e,t,n){n=n||"",t=t||"";var o="ssh-rsa",l=""===t?"none":"aes256-cbc",c="PuTTY-User-Key-File-2: "+o+"\r\n";c+="Encryption: "+l+"\r\n",c+="Comment: "+n+"\r\n";var u=r.util.createBuffer();a(u,o),i(u,e.e),i(u,e.n);var f=r.util.encode64(u.bytes(),64),d=Math.floor(f.length/66)+1;c+="Public-Lines: "+d+"\r\n",c+=f;var p,h=r.util.createBuffer();if(i(h,e.d),i(h,e.p),i(h,e.q),i(h,e.qInv),t){var m=h.length()+16-1;m-=m%16;var v=s(h.bytes());v.truncate(v.length()-m+h.length()),h.putBuffer(v);var y=r.util.createBuffer();y.putBuffer(s("\0\0\0\0",t)),y.putBuffer(s("\0\0\0",t));var g=r.aes.createEncryptionCipher(y.truncate(8),"CBC");g.start(r.util.createBuffer().fillWithByte(0,16)),g.update(h.copy()),g.finish();var b=g.output;b.truncate(16),p=r.util.encode64(b.bytes(),64)}else p=r.util.encode64(h.bytes(),64);d=Math.floor(p.length/66)+1,c+="\r\nPrivate-Lines: "+d+"\r\n",c+=p;var w=s("putty-private-key-file-mac-key",t),_=r.util.createBuffer();a(_,o),a(_,l),a(_,n),_.putInt32(u.length()),_.putBuffer(u),_.putInt32(h.length()),_.putBuffer(h);var S=r.hmac.create();return S.start("sha1",w),S.update(_.bytes()),c+="\r\nPrivate-MAC: "+S.digest().toHex()+"\r\n",c},o.publicKeyToOpenSSH=function(e,t){var n="ssh-rsa";t=t||"";var o=r.util.createBuffer();return a(o,n),i(o,e.e),i(o,e.n),n+" "+r.util.encode64(o.bytes())+" "+t},o.privateKeyToOpenSSH=function(e,t){return t?r.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):r.pki.privateKeyToPem(e)},o.getPublicKeyFingerprint=function(e,t){t=t||{};var n=t.md||r.md.md5.create(),o="ssh-rsa",s=r.util.createBuffer();a(s,o),i(s,e.e),i(s,e.n),n.start(),n.update(s.getBytes());var l=n.digest();if("hex"===t.encoding){var c=l.toHex();return t.delimiter?c.match(/.{2}/g).join(t.delimiter):c}if("binary"===t.encoding)return l.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".');return l}},de3d:function(e,t,n){"use strict";n("9089")},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,l=0;l<a;l++)if(o[l]!==i[l]){s=l;break}var c=[];for(l=s;l<o.length;l++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},dfe5:function(e,t,n){},e284:function(e,t,n){e.exports=n("9072"),n("4a17"),n("6b34"),n("62b2"),n("86a7")},e2aa:function(e,t,n){"use strict";n("bb20")},e39e:function(e,t){e.exports=d},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e7b1:function(e,t,n){},e915:function(e,t,n){},ea7c:function(e,t,n){var r,o=n("ebeb");e.exports=o.jsbn=o.jsbn||{};var i=0xdeadbeefcafe,a=15715070==(16777215&i);function s(e,t,n){this.data=[],null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function l(){return new s(null)}function c(e,t,n,r,o,i){while(--i>=0){var a=t*this.data[e++]+n.data[r]+o;o=Math.floor(a/67108864),n.data[r++]=67108863&a}return o}function u(e,t,n,r,o,i){var a=32767&t,s=t>>15;while(--i>=0){var l=32767&this.data[e],c=this.data[e++]>>15,u=s*l+c*a;l=a*l+((32767&u)<<15)+n.data[r]+(1073741823&o),o=(l>>>30)+(u>>>15)+s*c+(o>>>30),n.data[r++]=1073741823&l}return o}function f(e,t,n,r,o,i){var a=16383&t,s=t>>14;while(--i>=0){var l=16383&this.data[e],c=this.data[e++]>>14,u=s*l+c*a;l=a*l+((16383&u)<<14)+n.data[r]+o,o=(l>>28)+(u>>14)+s*c,n.data[r++]=268435455&l}return o}o.jsbn.BigInteger=s,"undefined"===typeof navigator?(s.prototype.am=f,r=28):a&&"Microsoft Internet Explorer"==navigator.appName?(s.prototype.am=u,r=30):a&&"Netscape"!=navigator.appName?(s.prototype.am=c,r=26):(s.prototype.am=f,r=28),s.prototype.DB=r,s.prototype.DM=(1<<r)-1,s.prototype.DV=1<<r;var d=52;s.prototype.FV=Math.pow(2,d),s.prototype.F1=d-r,s.prototype.F2=2*r-d;var p,h,m="0123456789abcdefghijklmnopqrstuvwxyz",v=new Array;for(p="0".charCodeAt(0),h=0;h<=9;++h)v[p++]=h;for(p="a".charCodeAt(0),h=10;h<36;++h)v[p++]=h;for(p="A".charCodeAt(0),h=10;h<36;++h)v[p++]=h;function y(e){return m.charAt(e)}function g(e,t){var n=v[e.charCodeAt(t)];return null==n?-1:n}function b(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function w(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function _(e){var t=l();return t.fromInt(e),t}function S(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;var r=e.length,o=!1,i=0;while(--r>=0){var a=8==n?255&e[r]:g(e,r);a<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==i?this.data[this.t++]=a:i+n>this.DB?(this.data[this.t-1]|=(a&(1<<this.DB-i)-1)<<i,this.data[this.t++]=a>>this.DB-i):this.data[this.t-1]|=a<<i,i+=n,i>=this.DB&&(i-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,i>0&&(this.data[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),o&&s.ZERO.subTo(this,this)}function C(){var e=this.s&this.DM;while(this.t>0&&this.data[this.t-1]==e)--this.t}function k(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,o=!1,i="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0){s<this.DB&&(n=this.data[a]>>s)>0&&(o=!0,i=y(n));while(a>=0)s<t?(n=(this.data[a]&(1<<s)-1)<<t-s,n|=this.data[--a]>>(s+=this.DB-t)):(n=this.data[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(o=!0),o&&(i+=y(n))}return o?i:"0"}function E(){var e=l();return s.ZERO.subTo(this,e),e}function O(){return this.s<0?this.negate():this}function T(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this.data[n]-e.data[n]))return t;return 0}function A(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function x(){return this.t<=0?0:this.DB*(this.t-1)+A(this.data[this.t-1]^this.s&this.DM)}function N(e,t){var n;for(n=this.t-1;n>=0;--n)t.data[n+e]=this.data[n];for(n=e-1;n>=0;--n)t.data[n]=0;t.t=this.t+e,t.s=this.s}function I(e,t){for(var n=e;n<this.t;++n)t.data[n-e]=this.data[n];t.t=Math.max(this.t-e,0),t.s=this.s}function j(e,t){var n,r=e%this.DB,o=this.DB-r,i=(1<<o)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t.data[n+a+1]=this.data[n]>>o|s,s=(this.data[n]&i)<<r;for(n=a-1;n>=0;--n)t.data[n]=0;t.data[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()}function P(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<<r)-1;t.data[0]=this.data[n]>>r;for(var a=n+1;a<this.t;++a)t.data[a-n-1]|=(this.data[a]&i)<<o,t.data[a-n]=this.data[a]>>r;r>0&&(t.data[this.t-n-1]|=(this.s&i)<<o),t.t=this.t-n,t.clamp()}}function R(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n<o)r+=this.data[n]-e.data[n],t.data[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this.data[n],t.data[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e.data[n],t.data[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t.data[n++]=this.DV+r:r>0&&(t.data[n++]=r),t.t=n,t.clamp()}function D(e,t){var n=this.abs(),r=e.abs(),o=n.t;t.t=o+r.t;while(--o>=0)t.data[o]=0;for(o=0;o<r.t;++o)t.data[o+n.t]=n.am(0,r.data[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&s.ZERO.subTo(t,t)}function B(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e.data[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t.data[n],e,2*n,0,1);(e.data[n+t.t]+=t.am(n+1,2*t.data[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e.data[n+t.t]-=t.DV,e.data[n+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(n,t.data[n],e,2*n,0,1)),e.s=0,e.clamp()}function L(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=l());var i=l(),a=this.s,c=e.s,u=this.DB-A(r.data[r.t-1]);u>0?(r.lShiftTo(u,i),o.lShiftTo(u,n)):(r.copyTo(i),o.copyTo(n));var f=i.t,d=i.data[f-1];if(0!=d){var p=d*(1<<this.F1)+(f>1?i.data[f-2]>>this.F2:0),h=this.FV/p,m=(1<<this.F1)/p,v=1<<this.F2,y=n.t,g=y-f,b=null==t?l():t;i.dlShiftTo(g,b),n.compareTo(b)>=0&&(n.data[n.t++]=1,n.subTo(b,n)),s.ONE.dlShiftTo(f,b),b.subTo(i,i);while(i.t<f)i.data[i.t++]=0;while(--g>=0){var w=n.data[--y]==d?this.DM:Math.floor(n.data[y]*h+(n.data[y-1]+v)*m);if((n.data[y]+=i.am(0,w,n,g,0,f))<w){i.dlShiftTo(g,b),n.subTo(b,n);while(n.data[y]<--w)n.subTo(b,n)}}null!=t&&(n.drShiftTo(f,t),a!=c&&s.ZERO.subTo(t,t)),n.t=f,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&s.ZERO.subTo(n,n)}}}function M(e){var t=l();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(s.ZERO)>0&&e.subTo(t,t),t}function U(e){this.m=e}function V(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function q(e){return e}function F(e){e.divRemTo(this.m,null,e)}function K(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function $(e,t){e.squareTo(t),this.reduce(t)}function H(){if(this.t<1)return 0;var e=this.data[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function G(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function z(e){var t=l();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(s.ZERO)>0&&this.m.subTo(t,t),t}function Y(e){var t=l();return e.copyTo(t),this.reduce(t),t}function W(e){while(e.t<=this.mt2)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e.data[t],r=n*this.mpl+((n*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e.data[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e.data[n]>=e.DV)e.data[n]-=e.DV,e.data[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function Q(e,t){e.squareTo(t),this.reduce(t)}function X(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function Z(){return 0==(this.t>0?1&this.data[0]:this.s)}function J(e,t){if(e>4294967295||e<1)return s.ONE;var n=l(),r=l(),o=t.convert(this),i=A(e)-1;o.copyTo(n);while(--i>=0)if(t.sqrTo(n,r),(e&1<<i)>0)t.mulTo(r,o,n);else{var a=n;n=r,r=a}return t.revert(n)}function ee(e,t){var n;return n=e<256||t.isEven()?new U(t):new G(t),this.exp(e,n)}function te(){var e=l();return this.copyTo(e),e}function ne(){if(this.s<0){if(1==this.t)return this.data[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this.data[0];if(0==this.t)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function re(){return 0==this.t?this.s:this.data[0]<<24>>24}function oe(){return 0==this.t?this.s:this.data[0]<<16>>16}function ie(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function ae(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1}function se(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=_(n),o=l(),i=l(),a="";this.divRemTo(r,o,i);while(o.signum()>0)a=(n+i.intValue()).toString(e).substr(1)+a,o.divRemTo(r,o,i);return i.intValue().toString(e)+a}function le(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),o=!1,i=0,a=0,l=0;l<e.length;++l){var c=g(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(a=t*a+c,++i>=n&&(this.dMultiply(r),this.dAddOffset(a,0),i=0,a=0))}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(a,0)),o&&s.ZERO.subTo(this,this)}function ce(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(s.ONE.shiftLeft(e-1),ye,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(t))this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(s.ONE.shiftLeft(e-1),this)}else{var r=new Array,o=7&e;r.length=1+(e>>3),t.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}}function ue(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0){r<this.DB&&(n=this.data[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this.data[e]&(1<<r)-1)<<8-r,n|=this.data[--e]>>(r+=this.DB-8)):(n=this.data[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n)}return t}function fe(e){return 0==this.compareTo(e)}function de(e){return this.compareTo(e)<0?this:e}function pe(e){return this.compareTo(e)>0?this:e}function he(e,t,n){var r,o,i=Math.min(e.t,this.t);for(r=0;r<i;++r)n.data[r]=t(this.data[r],e.data[r]);if(e.t<this.t){for(o=e.s&this.DM,r=i;r<this.t;++r)n.data[r]=t(this.data[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=i;r<e.t;++r)n.data[r]=t(o,e.data[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()}function me(e,t){return e&t}function ve(e){var t=l();return this.bitwiseTo(e,me,t),t}function ye(e,t){return e|t}function ge(e){var t=l();return this.bitwiseTo(e,ye,t),t}function be(e,t){return e^t}function we(e){var t=l();return this.bitwiseTo(e,be,t),t}function _e(e,t){return e&~t}function Se(e){var t=l();return this.bitwiseTo(e,_e,t),t}function Ce(){for(var e=l(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e}function ke(e){var t=l();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function Ee(e){var t=l();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function Oe(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Te(){for(var e=0;e<this.t;++e)if(0!=this.data[e])return e*this.DB+Oe(this.data[e]);return this.s<0?this.t*this.DB:-1}function Ae(e){var t=0;while(0!=e)e&=e-1,++t;return t}function xe(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Ae(this.data[n]^t);return e}function Ne(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this.data[t]&1<<e%this.DB)}function Ie(e,t){var n=s.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n}function je(e){return this.changeBit(e,ye)}function Pe(e){return this.changeBit(e,_e)}function Re(e){return this.changeBit(e,be)}function De(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n<o)r+=this.data[n]+e.data[n],t.data[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this.data[n],t.data[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e.data[n],t.data[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t.data[n++]=r:r<-1&&(t.data[n++]=this.DV+r),t.t=n,t.clamp()}function Be(e){var t=l();return this.addTo(e,t),t}function Le(e){var t=l();return this.subTo(e,t),t}function Me(e){var t=l();return this.multiplyTo(e,t),t}function Ue(e){var t=l();return this.divRemTo(e,t,null),t}function Ve(e){var t=l();return this.divRemTo(e,null,t),t}function qe(e){var t=l(),n=l();return this.divRemTo(e,t,n),new Array(t,n)}function Fe(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function Ke(e,t){if(0!=e){while(this.t<=t)this.data[this.t++]=0;this.data[t]+=e;while(this.data[t]>=this.DV)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function $e(){}function He(e){return e}function Ge(e,t,n){e.multiplyTo(t,n)}function ze(e,t){e.squareTo(t)}function Ye(e){return this.exp(e,new $e)}function We(e,t,n){var r,o=Math.min(this.t+e.t,t);n.s=0,n.t=o;while(o>0)n.data[--o]=0;for(r=n.t-this.t;o<r;++o)n.data[o+this.t]=this.am(0,e.data[o],n,o,0,this.t);for(r=Math.min(e.t,t);o<r;++o)this.am(0,e.data[o],n,o,0,t-o);n.clamp()}function Qe(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n.data[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n.data[this.t+r-t]=this.am(t-r,e.data[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)}function Xe(e){this.r2=l(),this.q3=l(),s.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function Ze(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=l();return e.copyTo(t),this.reduce(t),t}function Je(e){return e}function et(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function tt(e,t){e.squareTo(t),this.reduce(t)}function nt(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function rt(e,t){var n,r,o=e.bitLength(),i=_(1);if(o<=0)return i;n=o<18?1:o<48?3:o<144?4:o<768?5:6,r=o<8?new U(t):t.isEven()?new Xe(t):new G(t);var a=new Array,s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var f=l();r.sqrTo(a[1],f);while(s<=u)a[s]=l(),r.mulTo(f,a[s-2],a[s]),s+=2}var d,p,h=e.t-1,m=!0,v=l();o=A(e.data[h])-1;while(h>=0){o>=c?d=e.data[h]>>o-c&u:(d=(e.data[h]&(1<<o+1)-1)<<c-o,h>0&&(d|=e.data[h-1]>>this.DB+o-c)),s=n;while(0==(1&d))d>>=1,--s;if((o-=s)<0&&(o+=this.DB,--h),m)a[d].copyTo(i),m=!1;else{while(s>1)r.sqrTo(i,v),r.sqrTo(v,i),s-=2;s>0?r.sqrTo(i,v):(p=i,i=v,v=p),r.mulTo(v,a[d],i)}while(h>=0&&0==(e.data[h]&1<<o))r.sqrTo(i,v),p=i,i=v,v=p,--o<0&&(o=this.DB-1,--h)}return r.revert(i)}function ot(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return t;o<i&&(i=o),i>0&&(t.rShiftTo(i,t),n.rShiftTo(i,n));while(t.signum()>0)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n}function it(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this.data[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this.data[r])%e;return n}function at(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return s.ZERO;var n=e.clone(),r=this.clone(),o=_(1),i=_(0),a=_(0),l=_(1);while(0!=n.signum()){while(n.isEven())n.rShiftTo(1,n),t?(o.isEven()&&i.isEven()||(o.addTo(this,o),i.subTo(e,i)),o.rShiftTo(1,o)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);while(r.isEven())r.rShiftTo(1,r),t?(a.isEven()&&l.isEven()||(a.addTo(this,a),l.subTo(e,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);n.compareTo(r)>=0?(n.subTo(r,n),t&&o.subTo(a,o),i.subTo(l,i)):(r.subTo(n,r),t&&a.subTo(o,a),l.subTo(i,l))}return 0!=r.compareTo(s.ONE)?s.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l}U.prototype.convert=V,U.prototype.revert=q,U.prototype.reduce=F,U.prototype.mulTo=K,U.prototype.sqrTo=$,G.prototype.convert=z,G.prototype.revert=Y,G.prototype.reduce=W,G.prototype.mulTo=X,G.prototype.sqrTo=Q,s.prototype.copyTo=b,s.prototype.fromInt=w,s.prototype.fromString=S,s.prototype.clamp=C,s.prototype.dlShiftTo=N,s.prototype.drShiftTo=I,s.prototype.lShiftTo=j,s.prototype.rShiftTo=P,s.prototype.subTo=R,s.prototype.multiplyTo=D,s.prototype.squareTo=B,s.prototype.divRemTo=L,s.prototype.invDigit=H,s.prototype.isEven=Z,s.prototype.exp=J,s.prototype.toString=k,s.prototype.negate=E,s.prototype.abs=O,s.prototype.compareTo=T,s.prototype.bitLength=x,s.prototype.mod=M,s.prototype.modPowInt=ee,s.ZERO=_(0),s.ONE=_(1),$e.prototype.convert=He,$e.prototype.revert=He,$e.prototype.mulTo=Ge,$e.prototype.sqrTo=ze,Xe.prototype.convert=Ze,Xe.prototype.revert=Je,Xe.prototype.reduce=et,Xe.prototype.mulTo=nt,Xe.prototype.sqrTo=tt;var st=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],lt=(1<<26)/st[st.length-1];function ct(e){var t,n=this.abs();if(1==n.t&&n.data[0]<=st[st.length-1]){for(t=0;t<st.length;++t)if(n.data[0]==st[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<st.length){var r=st[t],o=t+1;while(o<st.length&&r<lt)r*=st[o++];r=n.modInt(r);while(t<o)if(r%st[t++]==0)return!1}return n.millerRabin(e)}function ut(e){var t=this.subtract(s.ONE),n=t.getLowestSetBit();if(n<=0)return!1;for(var r,o=t.shiftRight(n),i=ft(),a=0;a<e;++a){do{r=new s(this.bitLength(),i)}while(r.compareTo(s.ONE)<=0||r.compareTo(t)>=0);var l=r.modPow(o,this);if(0!=l.compareTo(s.ONE)&&0!=l.compareTo(t)){var c=1;while(c++<n&&0!=l.compareTo(t))if(l=l.modPowInt(2,this),0==l.compareTo(s.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0}function ft(){return{nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(256*Math.random())}}}s.prototype.chunkSize=ie,s.prototype.toRadix=se,s.prototype.fromRadix=le,s.prototype.fromNumber=ce,s.prototype.bitwiseTo=he,s.prototype.changeBit=Ie,s.prototype.addTo=De,s.prototype.dMultiply=Fe,s.prototype.dAddOffset=Ke,s.prototype.multiplyLowerTo=We,s.prototype.multiplyUpperTo=Qe,s.prototype.modInt=it,s.prototype.millerRabin=ut,s.prototype.clone=te,s.prototype.intValue=ne,s.prototype.byteValue=re,s.prototype.shortValue=oe,s.prototype.signum=ae,s.prototype.toByteArray=ue,s.prototype.equals=fe,s.prototype.min=de,s.prototype.max=pe,s.prototype.and=ve,s.prototype.or=ge,s.prototype.xor=we,s.prototype.andNot=Se,s.prototype.not=Ce,s.prototype.shiftLeft=ke,s.prototype.shiftRight=Ee,s.prototype.getLowestSetBit=Te,s.prototype.bitCount=xe,s.prototype.testBit=Ne,s.prototype.setBit=je,s.prototype.clearBit=Pe,s.prototype.flipBit=Re,s.prototype.add=Be,s.prototype.subtract=Le,s.prototype.multiply=Me,s.prototype.divide=Ue,s.prototype.remainder=Ve,s.prototype.divideAndRemainder=qe,s.prototype.modPow=rt,s.prototype.modInverse=at,s.prototype.pow=Ye,s.prototype.gcd=ot,s.prototype.isProbablePrime=ct},ebeb:function(e,t){e.exports={options:{usePureJavaScript:!1}}},ebfa:function(e,t,n){},ecf9:function(e,t,n){},f063:function(e,t,n){},f0b0:function(e,t,n){},f24a:function(e,t,n){"use strict";var r={DESCRIPTIONS_ITEM:!0,props:{label:String,span:{type:Number,default:1},align:{type:String,default:"left"},tooltip:{type:String,default:""}},render:function(){return this.$slots.default},renderError:function(){}},o=function(){var e=this,t=e._self._c;return t("tr",{staticClass:"ant-descriptions-row"},[e._t("default")],2)},i=[],a={},s=a,l=n("2877"),c=Object(l["a"])(s,o,i,!1,null,null,null),u=c.exports;function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=h(e,"string");return"symbol"==f(t)?t:t+""}function h(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=[],o=t,i=e.filter((function(e){var t=e.componentOptions||{Ctor:{}},n=t.Ctor.options;return!!n&&n.DESCRIPTIONS_ITEM}));return i.forEach((function(e,a){var s=e.componentOptions.propsData.span||1;if(a===i.length-1)return r.push(e),void n.push(r);s<o?(o-=s,r.push(e)):(r.push(e),n.push(r),o=t,r=[])})),n};t["a"]={DescriptionsItem:r,components:{Row:u},props:{title:String,bordered:{type:Boolean,default:!1},column:{type:[Number,Object],default:3},size:{type:[Boolean,String],default:!1,enum:["default","middle","small"]},layout:{type:String,default:"horizontal",enum:["horizontal","vertical"]},inline:{type:Boolean,default:!0},colon:{type:Boolean,default:!0},profile:{type:Boolean,default:!1}},render:function(e){var t=this.title,n=this.bordered,r=this.size,o=this.colon,i=this.layout,a=this.inline,s=this.column,l=this.$slots,c=this.profile,f=m(l.default,s);return e("div",{class:d(d(d({"ant-descriptions":!0},"ant-descriptions-".concat(r),!0),"ant-descriptions-bordered",!!n),"ant-descriptions-profile",!!c)},[t&&e("div",{class:"ant-descriptions-title"},[t]),!t&&l.title&&e("div",{class:"ant-descriptions-title"},[l.title]),e("div",{class:"ant-descriptions-view"},[e("table",[e("tbody",[f.map((function(t){return"vertical"===i?[e(u,[" ",t.map((function(t){var n=t.componentOptions.propsData,r=n.span,o=n.label,i=n.align,a=n.tooltip;return e("th",{class:"ant-descriptions-item-label",style:{"text-align":i},attrs:{colSpan:r}},a?[o,e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[e("span",[a])]),e("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o])}))," "]),e(u,[" ",t.map((function(t){var n=t.componentOptions.propsData,r=n.span,o=n.align;return e("td",{class:"ant-descriptions-item-content",style:{"text-align":o,"white-space":"pre-wrap"},attrs:{colSpan:r}},[t])}))," "])]:e(u,[" ",t.map((function(t){var r=t.componentOptions.propsData,i=r.label,s=r.span,l=r.align,c=r.tooltip;return n||!a?[e("th",{class:"ant-descriptions-item-label"},c?[i,e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[e("span",[c])]),e("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[i]),e("td",{class:"ant-descriptions-item-content",style:{"text-align":l,"white-space":"pre-wrap"},attrs:{colSpan:s?2*s-1:""}},[t])]:e("td",{class:"ant-descriptions-item",attrs:{colSpan:s},style:{"text-align":l}},c?[e("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":o}},[i,e("a-tooltip",{attrs:{placement:"right"}},[e("template",{slot:"title"},[e("span",[c])]),e("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]),e("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[t])]:[e("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":o}},[i]),e("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[t])])}))," "])}))])])]),l.footer&&e("div",[l.footer])])},renderError:function(){}}},f564:function(e,t,n){var r=n("ebeb");n("bb01"),n("ea7c"),n("5fb7"),function(){if(r.prime)e.exports=r.prime;else{var t=e.exports=r.prime=r.prime||{},n=r.jsbn.BigInteger,o=[6,4,2,4,2,4,6,2],i=new n(null);i.fromInt(30);var a=function(e,t){return e|t};t.generateProbablePrime=function(e,t,n){"function"===typeof t&&(n=t,t={}),t=t||{};var o=t.algorithm||"PRIMEINC";"string"===typeof o&&(o={name:o}),o.options=o.options||{};var i=t.prng||r.random,a={nextBytes:function(e){for(var t=i.getBytesSync(e.length),n=0;n<e.length;++n)e[n]=t.charCodeAt(n)}};if("PRIMEINC"===o.name)return s(e,a,o.options,n);throw new Error("Invalid prime generation algorithm: "+o.name)}}function s(e,t,n,r){return"workers"in n?u(e,t,n,r):l(e,t,n,r)}function l(e,t,n,r){var o=f(e,t),i=0,a=d(o.bitLength());"millerRabinTests"in n&&(a=n.millerRabinTests);var s=10;"maxBlockTime"in n&&(s=n.maxBlockTime),c(o,e,t,i,a,s,r)}function c(e,t,n,i,a,s,l){var u=+new Date;do{if(e.bitLength()>t&&(e=f(t,n)),e.isProbablePrime(a))return l(null,e);e.dAddOffset(o[i++%8],0)}while(s<0||+new Date-u<s);r.util.setImmediate((function(){c(e,t,n,i,a,s,l)}))}function u(e,t,o,i){if("undefined"===typeof Worker)return l(e,t,o,i);var a=f(e,t),s=o.workers,c=o.workLoad||100,u=30*c/8,d=o.workerScript||"forge/prime.worker.js";if(-1===s)return r.util.estimateCores((function(e,t){e&&(t=2),s=t-1,p()}));function p(){s=Math.max(1,s);for(var r=[],o=0;o<s;++o)r[o]=new Worker(d);for(o=0;o<s;++o)r[o].addEventListener("message",p);var l=!1;function p(o){if(!l){0;var s=o.data;if(s.found){for(var d=0;d<r.length;++d)r[d].terminate();return l=!0,i(null,new n(s.prime,16))}a.bitLength()>e&&(a=f(e,t));var p=a.toString(16);o.target.postMessage({hex:p,workLoad:c}),a.dAddOffset(u,0)}}}p()}function f(e,t){var r=new n(e,t),o=e-1;return r.testBit(o)||r.bitwiseTo(n.ONE.shiftLeft(o),a,r),r.dAddOffset(31-r.mod(i).byteValue(),0),r}function d(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}}()},f57a:function(e,t,n){var r=n("ebeb");e.exports=r.debug=r.debug||{},r.debug.storage={},r.debug.get=function(e,t){var n;return"undefined"===typeof e?n=r.debug.storage:e in r.debug.storage&&(n="undefined"===typeof t?r.debug.storage[e]:r.debug.storage[e][t]),n},r.debug.set=function(e,t,n){e in r.debug.storage||(r.debug.storage[e]={}),r.debug.storage[e][t]=n},r.debug.clear=function(e,t){"undefined"===typeof e?r.debug.storage={}:e in r.debug.storage&&("undefined"===typeof t?delete r.debug.storage[e]:delete r.debug.storage[e][t])}},f765:function(e,t,n){"use strict";var r=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,delay:50}},[t("iframe",{style:{height:e.height},attrs:{frameborder:"0",src:"".concat(e.url),width:"100%"},on:{load:e.handleLoad}})])},o=[],i={props:{url:String,query:Object,height:{type:[Number,String],default:"100vh"}},data:function(){return{loading:!0}},methods:{handleLoad:function(){this.loading=!1,this.$emit("load")}}},a=i,s=n("2877"),l=Object(s["a"])(a,r,o,!1,null,null,null);t["a"]=l.exports},f9a7:function(e,t,n){"use strict";var r=n("8c7f"),o=n("796d"),i=n.n(o),a=n("8bbf"),s=n.n(a);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=p(e,"string");return"symbol"==l(t)?t:t+""}function p(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return m(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(m(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,m(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,m(f,"constructor",c),m(c,"constructor",l),l.displayName="GeneratorFunction",m(c,o,"GeneratorFunction"),m(f),m(f,o,"Generator"),m(f,r,(function(){return this})),m(f,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:i,m:d}})()}function m(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}m=function(e,t,n,r){function i(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},m(e,t,n,r)}function v(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,s,"next",e)}function s(e){v(i,r,o,a,s,"throw",e)}a(void 0)}))}}function g(e,t){return C(e)||S(e,t)||w(e,t)||b()}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function C(e){if(Array.isArray(e))return e}var k=function(e,t,n){for(var r=0;r<e.length;r++){if(e[r][n]===t)return[e,r];if(e[r]._childList){var o=k(e[r]._childList,t,n);if(o)return o}}return null};function E(e,t,n,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=t.slice(2),d={namespaced:!0,state:function(){return{namespace:c,data:{rows:[],count:0,size:15},schema:null,wordbooks:{},expired:0,loading:!1,committing:!1,status:0,message:""}},mutations:{setSchema:function(e,t){e.schema=t},setStatus:function(e,t){var n=t.status,r=t.message;e.status=n,e.message=r},setLoading:function(e,t){e.loading=t},setCommitting:function(e,t){e.committing=t},setData:function(e,t){var n=t.rows,r=t.count,o=t.size;e.data.rows=n,e.data.count=r,e.data.size=o},appendData:function(e,t){var n=t.rows||[];e.data.rows=e.data.rows.concat(n)},saveData:function(e,t){var n=t.rows,r=t.idName,o=t.parentIdName;n=Array.isArray(n)?n:[n],n.forEach((function(t){var n=k(e.data.rows,t[r],r);if(n){n[0][n[1]]._childList&&(t._childList=n[0][n[1]]._childList);var i=n,a=g(i,2),l=a[0],c=a[1];o&&t[o]!==l[c][o]?(l.splice(c,1),n=null):s.a.set(l,c,t)}if(!n&&t[r]&&o&&t[o]){var u=k(e.data.rows,t[o],r);if(u){var f=u[0][u[1]];f._childList?f._childList.unshift(t):s.a.set(f,"_childList",[t])}else e.data.rows.unshift(t)}else!n&&t[r]&&e.data.rows.unshift(t)}))},removeData:function(e,t){var n=t.rows,r=t.idName;t.parentIdName;n=Array.isArray(n)?n:[n],n.forEach((function(t){var n=k(e.data.rows,t[r],r);if(n){var o=g(n,2),i=o[0],a=o[1];i.splice(a,1)}}))},setWordbook:function(e,t){var n=t.rows,r=t.key;e.wordbooks[r]?e.wordbooks[r]=n:s.a.set(e.wordbooks,r,n)},replaceNamespace:function(e,t){e.namespace=t.reduce((function(e,t){return e.replace(":id",t)}),c)},createSubViewStore:function(t,r){function o(t,r){var i;((null===(i=t.model)||void 0===i?void 0:i.attrs)||[]).filter((function(e){return"model"===e.metaType})).map((function(t){var i="".concat(r,"/:id/").concat(t.name);e.hasModule(i)||(E(e,i,n,t.name,!1,t.subView),t.subView&&o(t.subView,i))}))}o(r,"v-".concat(c))}},actions:{loadSchema:function(e,t){return y(h().m((function t(){var n,o,i,a,s,l,u,f,d;return h().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,e.state.namespace,n("setLoading",!0),t.p=1,t.n=2,r["a"].get("/schemas/".concat(c.replace(/\/:id/g,"")));case 2:o=t.v,i=o.data,a=o.status,n("createSubViewStore",i),n("setSchema",i),n("setStatus",{status:a}),t.n=5;break;case 3:if(t.p=3,d=t.v,d.response){t.n=4;break}return t.a(2,n("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 4:s=d.response,l=s.status,u=s.data,f=u&&u.content||"系统错误请与管理员联系。",n("setStatus",{status:l,message:f});case 5:return t.p=5,n("setLoading",!1),t.f(5);case 6:return t.a(2)}}),t,null,[[1,3,5,6]])})))()},loadData:function(e){var t=arguments;return y(h().m((function n(){var o,a,s,l,c,u,f,d,p,m,v,y,g,b,w,_,S,C,k,E,O,T,A,x,N,I,j;return h().w((function(n){while(1)switch(n.p=n.n){case 0:return o=e.commit,a=e.dispatch,s=e.getters,l=e.state.namespace,c=t.length>1&&void 0!==t[1]?t[1]:{},u=c.url,f=void 0===u?l:u,d=c.method,p=void 0===d?"get":d,m=c.data,v=void 0===m?null:m,y=c.key,g=c.query,b=c.options,w=c.mute,_=void 0!==w&&w,!_&&o("setLoading",!0),n.p=1,n.n=2,r["a"][p]("/api/".concat(f).concat(y?"/".concat(y):"","?").concat(i.a.stringify(g)),v,b);case 2:return S=n.v,C=S.data,k=C.collection,E=C.model,O=C.count,T=C.pagination,A=S.status,x=s.idName,N=s.parentIdName,I=s.nodeName,E?o("saveData",{rows:E,idName:x,parentIdName:N,nodeName:I}):o("setData",{rows:k||[],count:O,size:T&&T.size}),o("setStatus",{status:A,message:""}),n.a(2,k||E);case 3:return n.p=3,j=n.v,n.a(2,a("handleError",{error:j,mute:_}));case 4:return n.p=4,!_&&o("setLoading",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},loadWordBook:function(e){var t=arguments;return y(h().m((function n(){var o,a,s,l,c,u,f,d,p,m,v,y,g,b,w,_;return h().w((function(n){while(1)switch(n.p=n.n){case 0:return o=e.commit,a=e.dispatch,s=e.state.namespace,l=t.length>1&&void 0!==t[1]?t[1]:{},c=l.url,u=void 0===c?s:c,f=l.method,d=void 0===f?"get":f,p=l.data,m=void 0===p?null:p,v=l.key,y=l.query,g=l.options,n.p=1,n.n=2,r["a"][d.toLowerCase()]("/api/".concat(u).concat(v?"/".concat(v):"","?").concat(i.a.stringify(y)),m,g);case 2:return b=n.v,w=b.data,w.collection&&v&&o("setWordBook",{rows:w.collection,key:v}),n.a(2,w);case 3:return n.p=3,_=n.v,n.a(2,a("handleError",{error:_}))}}),n,null,[[1,3]])})))()},saveData:function(e){var t=arguments;return y(h().m((function n(){var o,a,s,l,c,u,f,d,p,m,v,y,g,b,w,_,S,C,k,E,O,T,A,x,N,I,j,P,R;return h().w((function(n){while(1)switch(n.p=n.n){case 0:return o=e.commit,a=e.dispatch,s=e.getters,l=e.state.namespace,c=t.length>1&&void 0!==t[1]?t[1]:{},u=c.url,f=void 0===u?l:u,d=c.type,p=void 0===d?"save":d,m=c.method,v=void 0===m?"post":m,y=c.data,g=void 0===y?null:y,b=c.key,w=c.query,_=c.options,S=c.mute,C=void 0!==S&&S,o("setCommitting",!0),n.p=1,n.n=2,r["a"][v.toLowerCase()]("/api/".concat(f).concat(b?"/".concat(b):"","?").concat(i.a.stringify(w)),g,_);case 2:return k=n.v,E=k.data,O=E.data,T=E.content,A=k.status,x=k.statusText,N=s.idName,I=s.parentIdName,j=s.nodeName,O&&(P="remove"===p?"removeData":"saveData",c.params&&c.params.mode&&"notUpdate"===c.params.mode||o(P,{rows:O.data||O,idName:N,parentIdName:I,nodeName:j})),o("setStatus",{status:A,message:C?"":T||x}),n.a(2,O);case 3:return n.p=3,R=n.v,n.a(2,a("handleError",{error:R}));case 4:return n.p=4,o("setCommitting",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},executeData:function(e,t){return y(h().m((function n(){var r,o,i;return h().w((function(n){while(1)switch(n.n){case 0:return r=e.dispatch,o=t.method,i=void 0===o?"post":o,n.n=1,r("saveData",u({type:"execute",method:i},t));case 1:return n.a(2,n.v)}}),n)})))()},removeData:function(e,t){return y(h().m((function n(){var r,o,i;return h().w((function(n){while(1)switch(n.n){case 0:return r=e.dispatch,o=t.method,i=void 0===o?"delete":o,n.n=1,r("saveData",u({type:"remove",method:i},t));case 1:return n.a(2,n.v)}}),n)})))()},handleError:function(e,t){var n=e.commit,r=t.error,o=t.mute;if(!r.response)return n("setStatus",{status:0,message:!o&&"网络请求错误,请检查您的网络连接。"});var i=r.response,a=i.status,s=i.data,l=o?null:s&&s.content||"系统错误请与管理员联系。";return n("setStatus",{status:a,message:l}),r},resetStatus:function(e){var t=e.commit;t("setStatus",{status:0,message:""})}},getters:{schema:function(e,t,r){return a||(r[n].views.find((function(e){return e.key===o}))||e.schema)},model:function(e,t){return t.schema?t.schema.model:null},idName:function(e,t){return t.model?t.model.idName:null},parentIdName:function(e,t){return t.model?t.model.parentIdName:null},nodeName:function(e,t){return t.model?t.model.nodeName:null},titleName:function(e,t){var n,r=null===(n=t.model)||void 0===n||null===(n=n.attrs)||void 0===n?void 0:n.find((function(e){return"title"===e.display}));return r?r.name:null},titleSchema:function(e,t){var n,r=null===(n=t.model)||void 0===n||null===(n=n.attrs)||void 0===n?void 0:n.find((function(e){return"title"===e.display}));return r||null},config:function(e,t){return function(e){var n;return t.schema&&t.schema.configs&&(n=t.schema.configs.find((function(t){return t.key===e}))),n?n.value:null}},wordbook:function(e){return function(t){return e.wordbooks[t]||[]}},find:function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=e.data;if(!n)return r;"object"!==l(n)&&(n=f({},t.idName,n));var o=Object.keys(n);return r.filter((function(e){return o.every((function(t){return e[t]===n[t]}))}))}},findOne:function(e,t,n){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=r||t.idName||"id",i=k(e.data.rows,n,o);return i?i[0][i[1]]:null}},findAll:function(e){var t=e.data.rows;return t},apiURL:function(e,t,n){var r=e.namespace,o=n.baseURL;return"".concat(o,"/api/").concat(r)},apiBaseURL:function(e,t,n){var r=n.baseURL;return r}}};e.registerModule(t,d)}function O(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return T(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(T(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,T(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,T(f,"constructor",c),T(c,"constructor",l),l.displayName="GeneratorFunction",T(c,o,"GeneratorFunction"),T(f),T(f,o,"Generator"),T(f,r,(function(){return this})),T(f,"toString",(function(){return"[object Generator]"})),(O=function(){return{w:i,m:d}})()}function T(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}T=function(e,t,n,r){function i(t,n){T(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},T(e,t,n,r)}function A(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){A(i,r,o,a,s,"next",e)}function s(e){A(i,r,o,a,s,"throw",e)}a(void 0)}))}}t["a"]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o={namespaced:!0,state:function(){return{namespace:t.slice(2),schema:null,views:[],actions:[],configs:[],params:[],rules:[],version:0,loading:!1,status:200,message:"",single:n}},mutations:{setSchema:function(e,t){e.schema=t},setViews:function(e,t){e.views=t},setStatus:function(e,t){var n=t.status,r=t.message;e.status=n,e.message=r},setLoading:function(e,t){e.loading=t},createViewStore:function(r,o){function i(r,o){var a;((null===(a=r.model)||void 0===a?void 0:a.attrs)||[]).filter((function(e){return"model"===e.metaType})).map((function(r){var a="".concat(o,"/:id/").concat(r.name);e.hasModule(a)||(E(e,a,t,r.name,n,r.subView),r.subView&&i(r.subView,a))}))}o.map((function(r){var o="v-".concat(t.slice(2)).concat(n?"":"-".concat(r.key));e.hasModule(o)||(E(e,o,t,r.key,n),i(r,o))}))},setViewData:function(e,t){}},actions:{loadSchema:function(e,t){return x(O().m((function t(){var o,i,a,s,l,c,u,f,d,p,h;return O().w((function(t){while(1)switch(t.p=t.n){case 0:return o=e.commit,i=e.state.namespace,o("setLoading",!0),t.p=1,t.n=2,r["a"].get("/schemas/".concat(i));case 2:a=t.v,s=a.data,l=a.status,c=a.statusText,o("createViewStore",n?[s]:s.views),o("setViews",n?[s]:s.views),delete s.views,o("setSchema",s),o("setStatus",{status:l,message:s.message||c}),t.n=5;break;case 3:if(t.p=3,h=t.v,h.response){t.n=4;break}return t.a(2,o("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 4:u=h.response,f=u.status,d=u.data,p=d&&d.content||"系统错误请与管理员联系。",o("setStatus",{status:f,message:p});case 5:return t.p=5,o("setLoading",!1),t.f(5);case 6:return t.a(2)}}),t,null,[[1,3,5,6]])})))()}},getters:{schema:function(e){return e.schema},views:function(e){return e.views},config:function(e){return function(t){return e.configs.find((function(e){return e.key===t}))}}}};e.registerModule(t,o)}},fa74:function(e,t,n){"use strict";n("191d")},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"App",(function(){return Ue})),n.d(t,"createStore",(function(){return wt})),n.d(t,"create",(function(){return q["a"]})),n.d(t,"template",(function(){return _t["a"]})),n.d(t,"WebRouters",(function(){return kt})),n.d(t,"WebViews",(function(){return F["a"]})),n.d(t,"Descriptions",(function(){return Et["a"]})),n.d(t,"Frame",(function(){return oe["a"]})),n.d(t,"Clipboard",(function(){return It})),n.d(t,"Collection",(function(){return tn})),n.d(t,"FormItem",(function(){return nn["a"]})),n.d(t,"FormBase",(function(){return rn["a"]})),n.d(t,"encryptWithParams",(function(){return Xe})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.$store.state.loading}},[t("Router",{on:{routed:function(t){e.spinning=!1}}})],1)},s=[],l=function(){var e=this,t=e._self._c;return t("router-view")},c=[],u=n("5880"),f=n.n(u),d=n("f9a7");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return m(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(m(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,m(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,m(f,"constructor",c),m(c,"constructor",l),l.displayName="GeneratorFunction",m(c,o,"GeneratorFunction"),m(f),m(f,o,"Generator"),m(f,r,(function(){return this})),m(f,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:i,m:d}})()}function m(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}m=function(e,t,n,r){function i(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},m(e,t,n,r)}function v(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,s,"next",e)}function s(e){v(i,r,o,a,s,"throw",e)}a(void 0)}))}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=S(e,"string");return"symbol"==p(t)?t:t+""}function S(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var C=["loading","schema","status","message","single"],k=["loadSchema"],E=["views"],O=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(u["createNamespacedHelpers"])(e),r=n.mapState,o=n.mapActions,i=n.mapMutations,a=n.mapGetters;return{data:function(){return{storeNamespace:e}},computed:b(b({},r(C)),a(E)),methods:b(b({},o(k)),i(["setStatus"])),beforeCreate:function(){this.$store.hasModule(e)||Object(d["a"])(this.$store,e,t)},created:function(){var e=this;return y(h().m((function t(){var n;return h().w((function(t){while(1)switch(t.n){case 0:if(n=!e.schema,!n){t.n=1;break}return t.n=1,e.loadSchema();case 1:e.status>399&&e.message&&(e.$message.error(e.message),e.setStatus({status:0,message:""}));case 2:return t.a(2)}}),t)})))()},watch:{status:function(e){401===e&&(this.$router.push("/sign-in"),window.location.reload())}}}},T=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:e,mixins:[O("p-".concat(t),n)]}}},A=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading,delay:50}},[e.loading?t("div",{staticStyle:{height:"50px"}}):e._e(),t("layout-page-".concat(e.layout),{tag:"component",scopedSlots:e._u([e._l(e.slots,(function(n){return{key:n,fn:function(){return[t("views",{key:"slot-".concat(n),attrs:{views:e.slotViews(n),modelViewType:e.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},x=[];function N(e){return R(e)||P(e)||j(e)||I()}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}function P(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return D(e)}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var B={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var e=["default","header","footer","sider","left","right"],t=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(e){return e.toUpperCase()})),"Layout")].slots;return t&&Array.from(new Set([].concat(N(t),e)))||[]}},methods:{slotViews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(t){return t.slot===e||"default"===e&&!t.slot}))}},activated:function(){},deactivated:function(){}},L=function(){var e=this,t=e._self._c;return t("a-row",e._l(e.views,(function(n){return t("a-col",{key:n.key,attrs:{span:n.span||24}},[t("layout-view-".concat(n.layout||e.viewLayout),{tag:"component",attrs:{view:n}},[t("ViewBox",e._b({attrs:{view:n}},"ViewBox",e.$attrs,!1))],1)],1)})),1)},M=[],U=function(){var e=this,t=e._self._c;return t("keep-alive",[t(e.createView(),e._b({tag:"component",attrs:{pageKey:e.page.pageKey,viewKey:e.view.key,mode:"page",layout:"layout-view-model-list"}},"component",e.view,!1))],1)},V=[],q=n("0959"),F=n("c246"),K={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:Object(q["a"])(F["a"]["Model".concat(this.modelViewType)])(this.namespace)}}}},$=K,H=n("2877"),G=Object(H["a"])($,U,V,!1,null,null,null),z=G.exports,Y={components:{ViewBox:z},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},W=Y,Q=Object(H["a"])(W,L,M,!1,null,null,null),X=Q.exports,Z={mixins:[B],components:{Views:X}},J=Z,ee=Object(H["a"])(J,A,x,!1,null,null,null),te=ee.exports,ne=function(){var e=this,t=e._self._c;return t("layout-page-".concat(e.layout),{tag:"component"},[t("Frame",{attrs:{url:"".concat(e.url),height:e.height}})],1)},re=[],oe=n("f765"),ie={mixins:[B],components:{Frame:oe["a"]},props:{url:String,height:String},data:function(){return{loading:!0}}},ae=ie,se=Object(H["a"])(ae,ne,re,!1,null,null,null),le=se.exports,ce=function(){var e=this,t=e._self._c;return t("keep-alive",[t("router-view")],1)},ue=[],fe={},de=Object(H["a"])(fe,ce,ue,!1,null,null,null),pe=de.exports;function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function me(e){return be(e)||ge(e)||ye(e)||ve()}function ve(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ye(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function ge(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function be(e){if(Array.isArray(e))return we(e)}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e,t,n){return(t=ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){var t=Ee(e,"string");return"symbol"==he(t)?t:t+""}function Ee(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Oe(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Te(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Te(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Te(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Te(f,"constructor",c),Te(c,"constructor",l),l.displayName="GeneratorFunction",Te(c,o,"GeneratorFunction"),Te(f),Te(f,o,"Generator"),Te(f,r,(function(){return this})),Te(f,"toString",(function(){return"[object Generator]"})),(Oe=function(){return{w:i,m:d}})()}function Te(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Te=function(e,t,n,r){function i(t,n){Te(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Te(e,t,n,r)}function Ae(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ae(i,r,o,a,s,"next",e)}function s(e){Ae(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ne=T(te),Ie=["catalog-tab","catalog"],je={data:function(){return{messageTimer:0}},created:function(){var e=this;return xe(Oe().m((function t(){return Oe().w((function(t){while(1)switch(t.n){case 0:return e.$router.addRoutes([{path:"/sign-in",component:e.$theme.pages.Signin,props:{layout:"wall"}}]),t.n=1,e.$store.dispatch("loadResources");case 1:"poll"===e.$store.state.config.message.type&&"1"===e.$store.state.app.remind&&e.startMessage();case 2:return t.a(2)}}),t)})))()},computed:Se(Se({},Object(u["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(me(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(e){var t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.$theme.layouts.router.Tabs;return e.map((function(e){var o,i="".concat(n,"/").concat(e.key),a=e.key,s={},l=null;switch(e.type){case"catalog-tab":o=r,s.resources=e.childs,s.parentPath=i;break;case"component":o=t.$theme.pages[e.key.replace(/^\S/,(function(e){return e.toUpperCase()}))],s.pageKey=e.url;break;case"iframe":if(o=le,s.pageKey=e.url,s.url=e.url,e.url&&e.url.split("?")[1]){var c=e.url.split("?")[1].split("&").find((function(e){return e.includes("height")}))||void 0;c&&(s.height=c.split("=")[1])}break;case"view":o=pe,s.pageKey=e.url;break;case"link":o={template:"<span></span>",activated:function(){e.url&&window.open(e.url,"_blank"),this.$router.back()}};break;default:o=pe;break}return"view"===e.type&&"standard"===e.viewType&&(l=[{path:"",component:{extends:Ne(e.url,!0)},props:{modelViewType:"profile"===e.catalogType?"Profile":"List",pageKey:e.url},meta:{name:e.name,key:i}},{path:":id",component:{extends:Ne(e.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:e.url}},meta:{name:e.name,key:i}}]),!l&&e.childs&&(l=t.resToRoute(e.childs,e,"".concat(n,"/").concat(a))),{name:l?null:e.url,path:a,redirect:Ie.includes(e.type)&&e.childs&&e.childs.length?"".concat(n,"/").concat(a,"/").concat(e.childs[0].key):null,children:l,component:o,props:s,meta:{name:"list"===e.type?null:e.name,key:i}}}))},modelPageRoute:function(){},startMessage:function(){var e=this;return xe(Oe().m((function t(){return Oe().w((function(t){while(1)switch(t.n){case 0:return t.n=1,e.$store.dispatch("loadMessages");case 1:e.messageTimer&&clearInterval(e.messageTimer),e.messageTimer=setInterval((function(){e.$store.dispatch("loadMessages")}),1e4);case 2:return t.a(2)}}),t)})))()}},watch:{status:function(e){401===e&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(e,t){!t.length&&this.addRoutes()}}},Pe=je,Re=Object(H["a"])(Pe,l,c,!1,null,null,null),De=Re.exports,Be={components:{Router:De},created:function(){}},Le=Be,Me=Object(H["a"])(Le,a,s,!1,null,null,null),Ue=Me.exports,Ve=n("8bbf"),qe=n.n(Ve),Fe=n("8c7f"),Ke=(n("e39e"),n("7cb4")),$e=n.n(Ke);function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}var Ge={method:"rsa",padding:"RSAES-PKCS1-V1_5",hash:"sha256"};function ze(e){var t=String(e).trim();if(0===t.indexOf("-----BEGIN"))return t;var n=t.replace(/\s+/g,"");if(!/^[A-Za-z0-9+/]+={0,2}$/.test(n))throw new Error("RSA 公钥格式无效(params.cipherPublicKey):应为 PEM 或 base64 公钥");return"-----BEGIN PUBLIC KEY-----\n"+n+"\n-----END PUBLIC KEY-----"}function Ye(e){var t=ze(e);try{return $e.a.pki.publicKeyFromPem(t)}catch(n){try{return $e.a.pki.publicKeyFromPem(t.replace(/ PUBLIC KEY/g," RSA PUBLIC KEY"))}catch(r){throw new Error("RSA 公钥解析失败(params.cipherPublicKey):请确认是有效的 RSA 公钥(PEM 或 base64)")}}}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new Error("RSA 加密需要配置公钥(params.cipherPublicKey)");var r=n.padding||Ge.padding,o=n.hash||Ge.hash,i=Ye(t),a=$e.a.md[o]&&$e.a.md[o].create();if(!a)throw new Error("不支持的 RSA 摘要算法(params.cipherHash):".concat(o));var s=$e.a.util.encodeUtf8(String(e)),l=Math.ceil(i.n.bitLength()/8),c=-1!==String(r).toUpperCase().indexOf("OAEP"),u=c?l-2*a.digestLength-2:l-11;if(s.length>u)throw new Error("内容过长无法 RSA 加密:".concat(s.length," 字节,").concat(8*l," 位密钥上限 ").concat(u," 字节"));var f=i.encrypt(s,r,{md:a});return $e.a.util.encode64(f)}function Qe(e){if(!e)return{};if("object"===He(e))return e;try{return JSON.parse(e)}catch(t){return{}}}function Xe(e,t){var n=Qe(t);if(!n.cipherTransfer)return e;var r=String(n.cipherMethod||Ge.method).toLowerCase();if("rsa"!==r)throw new Error("不支持的加密方式(params.cipherMethod):".concat(n.cipherMethod,'。AES 因密钥硬编码在前端已下线,请改为 "rsa" 并配置 cipherPublicKey'));return We(e,n.cipherPublicKey,{padding:n.cipherPadding,hash:n.cipherHash})}function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Je(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return et(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(et(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,et(f,"constructor",c),et(c,"constructor",l),l.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,r,(function(){return this})),et(f,"toString",(function(){return"[object Generator]"})),(Je=function(){return{w:i,m:d}})()}function et(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,n,r){function i(t,n){et(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},et(e,t,n,r)}function tt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function nt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){tt(i,r,o,a,s,"next",e)}function s(e){tt(i,r,o,a,s,"throw",e)}a(void 0)}))}}function rt(e){return st(e)||at(e)||it(e)||ot()}function ot(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function it(e,t){if(e){if("string"==typeof e)return lt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}function at(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function st(e){if(Array.isArray(e))return lt(e)}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e,t,n){return(t=dt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dt(e){var t=pt(e,"string");return"symbol"==Ze(t)?t:t+""}function pt(e,t){if("object"!=Ze(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ht=window.Rainbow,mt=ht.app,vt=mt.csrfToken,yt=mt.baseURL,gt=!1,bt={};function wt(e){Fe["a"].setDefaults({baseURL:yt!==["/","{app.appKey}"].join("$")?yt:e,headers:bt}),qe.a.use(Fe["a"]),qe.a.use(f.a);var t=function(){return{resources:[],apps:[],authApps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:ut({},ht.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,isSubView:!1,settingVisible:!1,status:200,message:"",baseURL:Fe["a"].instance.defaults.baseURL}};return new f.a.Store({state:t(),strict:gt,plugins:[],mutations:{setResources:function(e,t){e.resources=t},setApp:function(e,t){e.app=ut(ut({},e.app),t)},setAuthApps:function(e,t){e.authApps=rt(new Set([].concat(rt(e.authApps),rt(t))))},setUser:function(e,t){e.user=t},setToken:function(e,t){e.token=t},setMessages:function(e,t){e.messages=t},readMessages:function(e,t){if(t.length>1)e.messages=[];else if(1===t.length){var n=e.messages.findIndex((function(e){return t[0].message_id===e.message_id}));-1!==n&&e.messages.splice(n,1)}},clear:function(e){e.resources=e.apps=e.messages=[],e.user=null,localStorage.removeItem("signToken"),e.signToken=null},setStatus:function(e,t){var n=t.status,r=t.message;e.status=n,e.message=r},setLoading:function(e,t){e.loading=t},setCommitting:function(e,t){e.committing=t},setHistorys:function(e,t){var n=e.historys.findIndex((function(e){return e.key===t.key}));-1!==n?e.historys[n]=t:e.historys.push(t)},setSubView:function(e,t){e.isSubView=t},setSettingVisible:function(e,t){e.settingVisible=t},removeHistorys:function(e,t){var n=e.historys.findIndex((function(e){return e.key===t}));return-1!==n&&e.historys.splice(n,1),n}},actions:{loadResources:function(e){return nt(Je().m((function t(){var n,r,o,i,a,s,l,c,u;return Je().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,r=e.dispatch,n("setLoading",!0),t.p=1,t.n=2,Fe["a"].get("/api");case 2:o=t.v,i=o.data,a=i.resources,s=i.user,l=i.authApps,c=i.app,n("setResources",a),n("setUser",s),n("setApp",c),l&&l.length>0&&n("setAuthApps",l),t.n=4;break;case 3:t.p=3,u=t.v,r("handleError",u);case 4:return t.p=4,n("setLoading",!1),t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},loadMessages:function(e){return nt(Je().m((function t(){var n,r,o;return Je().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,t.p=1,t.n=2,Fe["a"].get("/api/sys-msg?status=unread");case 2:r=t.v,o=r.data.collection,n("setMessages",o),t.n=4;break;case 3:t.p=3,t.v;case 4:return t.a(2)}}),t,null,[[1,3]])})))()},readMessages:function(e,t){return nt(Je().m((function n(){var r;return Je().w((function(n){while(1)switch(n.n){case 0:return r=e.commit,n.n=1,Fe["a"].post("/api/sys-msg/read",t);case 1:r("readMessages",t);case 2:return n.a(2)}}),n)})))()},emptyMessages:function(e,t){return nt(Je().m((function n(){var r;return Je().w((function(n){while(1)switch(n.n){case 0:return r=e.commit,n.n=1,Fe["a"].post("/api/sys-msg/reads",t);case 1:r("readMessages",t);case 2:return n.a(2)}}),n)})))()},signin:function(e){var t=arguments;return nt(Je().m((function n(){var r,o,i,a,s,l,c,u,f;return Je().w((function(n){while(1)switch(n.p=n.n){case 0:return r=e.commit,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},r("setCommitting",!0),n.p=1,n.n=2,Fe["a"].post("/api/signin",i.data,{});case 2:return a=n.v,s=a.data,l=s.data,c=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:c}),n.a(2,l);case 3:n.p=3,f=n.v,o("handleError",f);case 4:return n.p=4,r("setCommitting",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},getSms:function(e){var t=arguments;return nt(Je().m((function n(){var r,o,i,a,s,l,c,u,f;return Je().w((function(n){while(1)switch(n.p=n.n){case 0:return r=e.commit,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},r("setCommitting",!0),n.p=1,n.n=2,Fe["a"].post("/api/sms",i.data,{});case 2:return a=n.v,s=a.data,l=s.data,c=s.content,u=a.status,r("clear"),r("setStatus",{status:u,message:c}),n.a(2,l);case 3:n.p=3,f=n.v,o("handleError",f);case 4:return n.p=4,r("setCommitting",!1),n.f(4);case 5:return n.a(2)}}),n,null,[[1,3,4,5]])})))()},signout:function(e,t){return nt(Je().m((function t(){var n,r,o,i,a,s,l,c;return Je().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.commit,r=e.dispatch,n("setCommitting",!0),t.p=1,t.n=2,Fe["a"].post("/api/signout");case 2:return o=t.v,i=o.data,a=i.data,s=i.content,l=o.status,n("clear"),n("setStatus",{status:l,message:s}),t.a(2,a);case 3:t.p=3,c=t.v,r("handleError",c);case 4:return t.p=4,n("setCommitting",!1),t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},changePassword:function(e){var t=arguments;return nt(Je().m((function n(){var r,o,i,a,s,l,c,u,f,d,p,h,m,v;return Je().w((function(n){while(1)switch(n.p=n.n){case 0:o=e.commit,i=e.dispatch,a=e.state,s=t.length>1&&void 0!==t[1]?t[1]:{},l=null===(r=a.app)||void 0===r?void 0:r.params,c=ut({},s.data),n.p=1,c.newpassword=Xe(c.newpassword,l),c.repassword=Xe(c.repassword,l),c.password=Xe(c.password,l),n.n=3;break;case 2:return n.p=2,m=n.v,o("setStatus",{status:500,message:m.message}),n.a(2);case 3:return o("setCommitting",!0),n.p=4,n.n=5,Fe["a"].post("/api/change-password",c,{});case 5:return u=n.v,f=u.data,d=f.data,p=f.content,h=u.status,o("clear"),o("setStatus",{status:h,message:p}),n.a(2,d);case 6:n.p=6,v=n.v,i("handleError",v);case 7:return n.p=7,o("setCommitting",!1),n.f(7);case 8:return n.a(2)}}),n,null,[[4,6,7,8],[1,2]])})))()},handleError:function(e,t){var n=e.commit;if(!t.response)return n("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var r=t.response,o=r.status,i=r.data,a=i&&i.content||"系统错误请与管理员联系。";return n("setStatus",{status:o,message:a}),t}},getters:{token:function(){},resources:function(){},app:function(e){return e.app},user:function(e){return e.user},config:function(e){return function(t){return e.config.find((function(e){return e.key===t}))}}}})}vt&&"${app.csrfToken}"!==vt&&(bt["x-csrf-token"]=vt);var _t=n("c6e8"),St=n("6389"),Ct=n.n(St);qe.a.use(Ct.a);var kt=new Ct.a,Et=n("f24a"),Ot=function(){var e=this,t=e._self._c;return t("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}]},[e._v(" "+e._s(e.text)+" ")])},Tt=[],At={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(e){this.$message.success("复制成功")},onError:function(e){this.$message.error("复制失败")}}},xt=At,Nt=Object(H["a"])(xt,Ot,Tt,!1,null,null,null),It=Nt.exports,jt=function(){var e=this,t=e._self._c;return t(e.component,{tag:"component"},[e._t("default",null,{collection:e.dataSource,model:e.model,schema:e.schema,schemas:e.schemas,count:e.count}),e._t("empty"),e._t("error")],2)},Pt=[],Rt=n("796d"),Dt=n.n(Rt);function Bt(e){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(e)}function Lt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Mt(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,d.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!f&&c&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),s=u,l=h;(t=s<2?e:l)||!f;){i||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Mt(t={},r,(function(){return this})),t),f=c.prototype=s.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Mt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=c,Mt(f,"constructor",c),Mt(c,"constructor",l),l.displayName="GeneratorFunction",Mt(c,o,"GeneratorFunction"),Mt(f),Mt(f,o,"Generator"),Mt(f,r,(function(){return this})),Mt(f,"toString",(function(){return"[object Generator]"})),(Lt=function(){return{w:i,m:d}})()}function Mt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mt=function(e,t,n,r){function i(t,n){Mt(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Mt(e,t,n,r)}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ft(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){qt(i,r,o,a,s,"next",e)}function s(e){qt(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Kt(e,t,n){return(t=$t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e){var t=Ht(e,"string");return"symbol"==Bt(t)?t:t+""}function Ht(e,t){if("object"!=Bt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Gt(e,t){return Xt(e)||Qt(e,t)||Yt(e,t)||zt()}function zt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yt(e,t){if(e){if("string"==typeof e)return Wt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wt(e,t):void 0}}function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qt(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Xt(e){if(Array.isArray(e))return e}var Zt={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var e=this.collection,t=this.filter,n=t?e.filter((function(e){return Object.keys(t).every((function(n){var r=t[n];return r&&!Array.isArray(r)&&(r=[r]),null===r||r.includes(e[n])}))})):e;return this.transform?n.map(this.transform):n},schemas:function(){var e,t=null!==(e=this.schema)&&void 0!==e&&null!==(e=e.model)&&void 0!==e&&e.attrs?this.schema.model.attrs.filter((function(e){return e.list||"wordbook"===e.dataType&&e.typeObject})):[],n=t.map((function(e){return e.list?[e.name,e.list.split(",").map((function(e){var t=e.split(":"),n=Gt(t,2),r=n[0],o=n[1];return o?Kt({},r,o):r}))]:[e.name,e.typeObject.data&&e.typeObject.data.collection||[]]}));return Object.fromEntries(n)}},methods:{load:function(){var e=this;return Ft(Lt().m((function t(){var n,r,o,i,a,s,l,c,u,f,d,p,h,m,v,y;return Lt().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.name,r=e.query,o=e.limit,i=void 0===o?0:o,a=e.page,s=e.dataset,e.collection=[],e.model={},e.count=0,e.status=0,e.loading=!0,l=s?"dataset":"api",t.p=1,t.n=2,e.$api.get("/".concat(l,"/").concat(n,"?").concat(Dt.a.stringify(Vt(Vt({},r),{},{_size:i,$limit:a}))));case 2:c=t.v,u=c.data,f=u.collection,d=u.count,p=u.model,h=u.data,m=c.status,e.collection=f||h,e.model=p,e.count=d,e.status=m,t.n=4;break;case 3:return t.p=3,y=t.v,y.response?(v=y.response.status,e.status=v):e.status=-1,t.a(2,y);case 4:return t.p=4,e.loading=!1,t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()},loadSchema:function(){var e=this;return Ft(Lt().m((function t(){var n,r,o,i,a;return Lt().w((function(t){while(1)switch(t.p=t.n){case 0:return n=e.name,t.p=1,t.n=2,e.$api.get("/schemas/".concat(n));case 2:r=t.v,o=r.data,e.schema=o,t.n=4;break;case 3:return t.p=3,a=t.v,a.response?(i=a.response.status,e.status=i):e.status=-1,t.a(2,a);case 4:return t.p=4,e.loading=!1,t.f(4);case 5:return t.a(2)}}),t,null,[[1,3,4,5]])})))()}},created:function(){var e=this;return Ft(Lt().m((function t(){return Lt().w((function(t){while(1)switch(t.n){case 0:if("await"!==e.schemaMode){t.n=2;break}return t.n=1,e.loadSchema();case 1:e.load(),t.n=3;break;case 2:"async"===e.schemaMode?(e.loadSchema(),e.load()):e.schemaMode?e.loadSchema():e.load();case 3:return t.a(2)}}),t)})))()},watch:{name:function(e){this.load()},page:function(){this.load()}}},Jt=Zt,en=Object(H["a"])(Jt,jt,Pt,!1,null,null,null),tn=en.exports,nn=n("7b4d"),rn=n("b7f9");n("517c"),n("aa23")},ff21:function(e,t,n){"use strict";n("e7b1")}})}));
18
18
  //# sourceMappingURL=core.umd.min.js.map