diff --git a/p__Classrooms__Lists__Attendance__index.js b/p__Classrooms__Lists__Attendance__index.js index 0c18d09afe..64ed12ce74 100644 --- a/p__Classrooms__Lists__Attendance__index.js +++ b/p__Classrooms__Lists__Attendance__index.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[36,5,14],{"+yKU":function(e,t){t.read=function(e,t,n,r,a){var o,i,s=8*a-r-1,c=(1<>1,l=-7,f=n?a-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(i=o&(1<<-l)-1,o>>=-l,l+=r;l>0;i=256*i+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return i?NaN:1/0*(p?-1:1);i+=Math.pow(2,r),o-=u}return(p?-1:1)*i*Math.pow(2,o-r)},t.write=function(e,t,n,r,a,o){var i,s,c,u=8*o-a-1,l=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),t+=i+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(i++,c/=2),i+f>=l?(s=0,i=l):i+f>=1?(s=(t*c-1)*Math.pow(2,a),i+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,a),i=0));a>=8;e[n+p]=255&s,p+=h,s/=256,a-=8);for(i=i<0;e[n+p]=255&i,p+=h,i/=256,u-=8);e[n+p-h]|=128*g}},"/6Vw":function(e,t){function n(e){if("string"!==typeof e)throw new Error("Param is not a string");var n=e.toLowerCase();switch(n){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return n(e)}catch(a){return r}}},"/UA6":function(e,t,n){"use strict";(function(e){var r=n("J82+"),a=n("+yKU"),o=n("Vxp6");function i(){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 u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),u.alloc(+e)}function v(e,t){if(u.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 W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return W(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 N(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function E(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function A(e,t,n,r,a){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=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:x(e,t,n,r,a);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):x(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function x(e,t,n,r,a){var o,i=1,s=e.length,c=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;i=2,s/=2,c/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;da&&(r=a)):r=a;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var i=0;i239?4:u>223?3:u>191?2:1;if(a+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:o=e[a+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=e[a+1],i=e[a+2],128===(192&o)&&128===(192&i)&&(c=(15&u)<<12|(63&o)<<6|63&i,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],128===(192&o)&&128===(192&i)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&i)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),a+=f}return M(r)}t.Buffer=u,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:i(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return d(null,e,t,n)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,a){if(!u.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===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var o=a-r,i=n-t,s=Math.min(o,i),c=this.slice(r,a),l=e.slice(t,n),f=0;fa)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return R(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function M(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var a="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,a,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function Y(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function H(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,o){return o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return o||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,r,52,8),n+8}u.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),t0&&(a*=256))r+=this[e+--t]*a;return r},u.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],a=1,o=0;while(++o=a&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,a=1,o=this[e+--r];while(r>0&&(a*=256))o+=this[e+--r]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var a=Math.pow(2,8*n)-1;U(this,e,t,n,a,0)}var o=1,i=0;this[t]=255&e;while(++i=0&&(i*=256))this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Y(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var o=0,i=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var o=n-1,i=1,s=0;this[t+o]=255&e;while(--o>=0&&(i*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Y(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},u.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=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=0;--a)e[a+t]=this[a+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var t=[],n=0;n>8,a=n%256,o.push(a),o.push(r)}return o}function $(e){return r.toByteArray(G(e))}function ee(e,t,n,r){for(var a=0;a=t.length||a>=e.length)break;t[a+n]=e[a]}return a}function te(e){return e!==e}}).call(this,n("UywP"))},"0s5T":function(e,t,n){var r=n("dDf0"),a=n("vjzt"),o=n("cKS8"),i=n("lqPQ"),s=n("3zmg"),c=n("iuEB"),u=n("apnk"),l=n("t8zF");function f(e){return unescape(encodeURIComponent(e)).length}function d(e,t,n){var r,a=[];while(null!==(r=e.exec(n)))a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function p(e){var t,n,a=d(c.NUMERIC,r.NUMERIC,e),o=d(c.ALPHANUMERIC,r.ALPHANUMERIC,e);u.isKanjiModeEnabled()?(t=d(c.BYTE,r.BYTE,e),n=d(c.KANJI,r.KANJI,e)):(t=d(c.BYTE_KANJI,r.BYTE,e),n=[]);var i=a.concat(o,t,n);return i.sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function g(e){return e.reduce((function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}function m(e){for(var t=[],n=0;n30?""+b(e,"yyyy-MM-dd"):s>1?s+"\u5929\u524d":1==s?"\u6628\u5929":c>=1?c+"\u5c0f\u65f6\u524d":u>=5?u+"\u5206\u949f\u524d":"\u521a\u521a",a},b=function(e,t){"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},r=[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]];for(var a in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,r[RegExp.$1.length-1][e.getDay()])),n)new RegExp("("+a+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return t},y=function(e){if(!e||e<0)return"0\u79d2";console.log("time:",e);var t=60,n=60*t,r=24*n,a=e/r,o=e/n,i=e/t;return a>=1?parseInt(a.toString())+"\u5929"+Math.floor(o%24)+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":o>1?parseInt(o.toString())+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":i>=1?parseInt(i.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":Math.ceil(e)+"\u79d2"},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0;if(e){n=e.length;for(var r=0;r=55296&&a<=56319&&(n--,r++)}}return n<=t},_=function(e,t,n){if(t){var r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,a=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,o=a.test(t),i=r.test(t);(!0===o||!0===i||t.length<2||t.length>=21)&&n("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}n()},E=function(e,t,n){if(t){var r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,a=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,o=a.test(t),i=r.test(t);(!0===o||!0===i||t.length<2||t.length>=11)&&n("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}n()},A=function(e){if(!e)return"";for(var t=e.length-1,n="",r=0;r0){n=!1;break}return n}var P,C=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t||void 0===t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},B=function(e){var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},I=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",e+":"+t},D=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",(new Date).toLocaleDateString().replace(/\//g,"-")+" "+e+":"+t};(function(e){e["Number"]="Number",e["String"]="String",e["Boolean"]="Boolean",e["Object"]="Object",e["Array"]="Array",e["Function"]="Function"})(P||(P={}));var N=function(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)},L=function(e){return N(e)===P.Array?0===e.length:N(e)===P.Object?0===Object.keys(e).length:!e},F=function(e,t){for(var n=[],r=e;r1&&void 0!==arguments[1]?arguments[1]:12,n=t/2-2,r=t/2+3;return e.length>t?e.substr(0,n)+"..."+e.substr(r,t):e},z=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},Y=function(e){return void 0===e||null===e};var H=function(e){switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(e.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(e.container_id));case"DealProject":return window.open("/projects/".concat(e.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(e.container_id));case"Poll":switch(e.parent_container_type){case"CommitPoll":return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));default:return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open("/projects/".concat(e.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(t=Object(i["t"])())||void 0===t?void 0:t.login,"/videos")):"";var t;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}}},"3zmg":function(e,t,n){var r=n("dDf0"),a=n("apnk");function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t;for(t=0;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},"4PsM":function(e,t,n){var r=n("e5e1");function a(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}function o(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}t.render=function(e,t,n){var i=n,s=t;"undefined"!==typeof i||t&&t.getContext||(i=t,t=void 0),t||(s=o()),i=r.getOptions(i);var c=r.getImageWidth(e.modules.size,i),u=s.getContext("2d"),l=u.createImageData(c,c);return r.qrToImageData(l.data,e,i),a(u,s,c),u.putImageData(l,0,0),s},t.renderToDataURL=function(e,n,r){var a=r;"undefined"!==typeof a||n&&n.getContext||(a=n,n=void 0),a||(a={});var o=t.render(e,n,a),i=a.type||"image/png",s=a.rendererOpts||{};return o.toDataURL(i,s.quality)}},"532y":function(e,t,n){e.exports={topStatistics:"topStatistics___1QNNN",tooltip:"tooltip___5CKvs",name:"name___1nnFB",filter:"filter___10bL9",daoke:"daoke___BNGuv",qingjia:"qingjia___xVHr-",kuangke:"kuangke___274Y9"}},"5qM2":function(e,t,n){var r=n("ehRm");function a(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}a.prototype.set=function(e,t,n,r){var a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)},a.prototype.get=function(e,t){return this.data[e*this.size+t]},a.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},a.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=a},"6r6i":function(e,t,n){var r=n("/6Vw"),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},BdwD:function(e,t,n){"use strict";var r=n("55MS"),a=n("ZZRV"),o=n.n(a),i=function(e){var t=e.styles,a=void 0===t?{}:t,i=e.customText;return o.a.createElement("section",{className:"tc animated fadeIn",style:Object(r["a"])(Object(r["a"])({},{color:"#999",margin:"200px auto"}),a)},o.a.createElement("img",{src:n("FOrL")}),o.a.createElement("p",{className:"mt20 font14"},i||"\u6682\u65f6\u8fd8\u6ca1\u6709\u76f8\u5173\u6570\u636e\u54e6!"))};t["a"]=i},FOrL:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCinAAAAAXNSR0IArs4c6QAAFq9JREFUeAHdnAl4VFWWx6sqlYWEkIRsJCRkJQECCXsIS0gAWWwQl1YQxQ2nRx0/u9We8etvpmf87LFt7XHs7mmXbhVEFESQdWRfwiKGXRYhkI0sQAIBAmQnqZrfKfMyZVGVqldLjL7vu9997757zz33/84995xzb5VG8xO/Fi1aNPTDDz/M7w7D1HcHJjzFAyCPNxgMi/V6/YOe6kMNXZ2ayj+mugsXLhSAFxqNxtmPPvroge7A+09Osj///HOvmzdvvoZET/D19Z04f/78i90BaOHhJwU20hx748aNZVqt9kR0dHTOnXfe2dxdgBY+tN2JGVd4QT8/gsp4GRovPfnkkytcoeWptj96ycbaiEdl/BWgEWjt+AULFlzwFFiu0v3RSvaGDRt8L168+CIALNDpdL99/PHHl7oKhqfbe3m6A3fTR4J1/fr1m88iuBxJPs8iOBdr45C7+/EEvR+NZIuVUVdX9wBg/wYgTnp7e//rI488UuoqKCyqv4FmK+rnj67Sste+2+vsjz/+OODWrVsiyb9iMIcAZh4L4El7A3PkPUA/Db2ZERERdzhS39U63RbsDz74YDBq4qmWlpZZ5GtIdz7xxBMlrg5YaY/18iuAnhsYGDht1qxZDUq5J/NuBTZSnIAUzwGEOYB7i/R3pO5f3AkGtHVI9BuAmkG644EHHrjpSYDNaf+gOvvQoUPe33zzTRYMTSVNB1xf0mfo4+V4fkXmjMr9p59+GtLU1CSSPpzHvcQ8NqK36y3r2Xpub7+M92UZGRnPjhw58patup4o71KwkahwgBqFXTyawUgS6RI9vBngNj/22GPFloNkukfTZjZ17iXl8L5jNlLexPMW8lU9e/Zcj5RetWyvPKOWsrl/HzPxTdTR35XyrszdBjZAaD/66KMgBh4KmGGkKAaSzHN/yXkv96IbD5If8PLyOpCWlnbUmnQtWbIkGV19jwBM3Uyh7efnp+nfv3/lmTNnYnx8fE7OnDkzrKioSFdYWBhx/fp1wayVurvIV/Ph1mAOnpfC9evX+1+6dOkVaEzmcb67FlehrfZyC9hI3wEG04/B1sLAFVINqYrnYsoLJfXq1asYyWu0xaDEndva2u6hjYA8ROohrW0pKSmlgCz3iRTpli1bpgHMvPvvvz9H6siFaqkuKSlp40NEX716VQMNI8US6dsCrQd5/gS18XtrH1bad9XlFrCdYRYQdIsXL84CYFEP90AjQegEBQU1p6amliYnJ/v06NFDyr7HozWwpZ1yNTc31+zZs6e1rKysj1IG2CfpYxWzaTWe5jdKeVfn3xuIpzuXBfH48eOTUDEC7t2kSOkzJCSkftCgQaXx8fGBqIs4KbN1dQK2ob6+fu+uXbt8/f39/bKysvwANxzQa8+ePdv3woULvkIT4M+RrSKtRnfv49nAfZdcHge73SmZzmhEPcwkD5KRhYeHXwPgsri4uFCsj1gpc+SyAnbNlStXjiDN0aGhoY1jxowJhN4AS1rMoNrz58/XnD59Ooo8AF6kSjVgr2XRXB0QELADNddi2c6dzw6DjbvcE3f5CZiMcZQB6qYwmKnkPaRNnz59qgcPHnw+JiYmCqmTBVT1JWADzm5sb92xY8dakdhE9HFlQkJCDDT7OUKQmXWTINbFgoKCyPLy8iCepZmssl8K8GpNSkf6lDoOgd2++5EPaCMdJWwirtVq+vbtW4bVcZlgfj8GEqGmvVndNgApQIIvbdy4MRcpbQLgIwMHDgxAr6dTz6FxmNHruIVuw+XLl8sBPrS0tDQc2qJqHDYpOwg5cOMQk1gKQ2DiuAP0hFFNfHz8WQCuxfsTc6+3I+3M6rTwUauwMCqR2pvo3J7V1dVxYWFhtUT7bh44cCAL0y9vzpw5OWZt3HXbxAc9h6rpiXUTgzcrdMWk3E2+ytykdKZDh8BeunRpWENDQyUdmBYZy45goo1pfAqAG9Gbqbw36WXLepbPqKV8pnH9tWvXfGtrawNZ4EKpo8dMvI5OvwS4BhbPSOgnS7m0b1cjngJbulCuFvgqYXH1wZ5P4OODucmkFOBnESVU7eZ3eGNKD9byefPm1SDdTzDl3kTqOkwqpS7T+Tg2bChqwmQfK+X2cnSsP/pbg5kni1oogxE1Izv+0od8tB/y8uFDJ2LjF7KveQ2h6M3YRTgnwufL5LJxoepySLLNKQL6HUjdFlb9OhhYcuTIEYlrJEkdQD82YsQIPwL6HgOqKyQbW73s1KlTLaRkkWjWhSYW9pPY/z2J5YSfPHkyCEEZjs1+whwbe/cOSbZCZOfOnfri4uK3ANqIuuhJenrYsGHHmGpvfvXVV+PQdWNIGqZ/0dixY+sxpyT28aO4mLXXEZ4LgBmP3o4DTJlxZ4YMGdKEozWIQZiMg9GjR9eBgZ6P8A6Snt2uWhwaoyqwWTR+ifucBsjmxDMok3QWa+rVzZs3D4bpWSQd9arHjx9/nsVNLAZVfZl34MH7Ntz7khMnTgQztnAAD8J6quIIRAFmqizut81QynpOnDjxwqZNm8Yzyx+Bt8WO8uewGpHoGwtVATEJMbdEr9q6ylnsFhEAimY1f5iv34MAfR0e3Rn080CY9bfV0JFyd6gRpPIicZTmb7/9Nr6xsVE82Ib09PRiFvkIJNrk1drjBaFqxjm6gceb+tBDD12zV1/eq5G2/4KhQIC2R7dfcHDwfxCPrmZQb6xdu1aP1fGLLVu2jICxVnT6MWZBLIupWpPQXr+dvkdq6wHnIo5QLKZkFOMw4sEWooe9uY+nsarFPTc3tx4rLZyP9Sptn+m08/aXDkk20yUHoHYi1Qa+fGdSba3Pawz07TVr1lxB4p9C0lNFH/LhCnBMenEfba2RrTKVkm0k/FpGPCYIPRsiNJOSkqro+wZ6WBZ1l04XMDOu5ufnBzNbMzEF7e7w6wnoxwLAW6ShdG4VSMAKY2EwOgG0jC8EKf63e++9t47799B1ryFhC44ePTqBJDHqCmi38jETpLI7Lon8EecWNdGXWRWP+qqbOnXqWfRwDLyIWXmb+epMv8yMXqgjHUL0LvhlAnqnQS09lZaQJnbWGQucJjEx0RS56ayenXc9ef/r6dOnN5Mv3Ldv35u4yPNwGO4DGC8AuYKVcwWJS7FDx+prxtCEx1mNFEeTh/Xu3bsNS6kUvoNYa0RlOUXXamfthYCrnzRpUs0XX3wxEqH9BcXvdVqfhe8GjAZ2Vmn27NmtAK5Gv3dGTnnXys1SzMaP9+7dexf3C+AjAAumAdDLxRqg7LY+LdUIDscF7N5APpo4Rhp0cBX2vgE9rEo9KUw5kyM4TZi8jcyaVMK2l23R8AJIUR9ptiogGRrccKvqxVYbB8uFZgbgPowEViLZv0TCCwkLZJAlAJ4RwIpYbP2RIG+FJsBqiNMgrPqmvLy8AMy2QKyJlnHjxl1CHQVGRUUJ6J0Kj0LLXTlBtlvM0sDW1tbwdevWrbVFV9seb36BCsOQLHNQk9HRaRLjJRjvY4uAm8s3wvDr7EEmsk6IO5xG0EmDBSNbY8FE5xq3bt0aLZE57OE2hOAiuWwi+7qZD9Xk8Ctqt23bJnuw/wSOVQoB7o0IxgnZzLZqjbR7it8MHTp0EAO1Wkch5qF8N3RfRQ+KtfAi/E5W+snMzKwaMGCAPwPopZR1lxzb21hZWWkNLwMf4SlzSe7gGW/qOaZwGmCLXv0hrmw63Yz+ex6TagqMfqEwwWzb1h2BFv4Ixl1Q+LTIdQjM726zM1ErEUzhVXh8OhbFDl1p0birHlcTnziJ2niXDk28Ijn9MbkE8P5dxYSdflrh70vi7Kzze+OpG2yjfu1tqz0No/kKAcQMdLjbrSw2t9WxQczdxWKzvs35kefgR1kzqrmPxNTqQ9i3gvcO7126mznolYHRpu3bt4diEc3iubN1o5nZ+aI1/aJBVw5Hul9lcZqOpaBBkgyYNVZVjgcGoZBcs2LFCjm9WgHAYqPLR1+ekBAfVVp6Lhu9vRgLZD5lXcmXCMAmXP4iQsvZYCSWnOxOFZDEsTkiz+YXak9+ElHAoaErVsFWKmODj+f+VQ7IZKOPxLFRXnVFPpmPns4A3sLm3l5VVSWL5PIZM6ZP3rFjZzMS3wev9BNMw0e7gJkqTNLVWBv6mpqa++FJVIVsl60lvcPassMRHjoFWyEA6FO5/090+CisAWNkZKRD7ZT2TuQnkeqhSHUxbaMmT550eNu27XIAU8CeQ/CH4yG7s5lsRUjMDQY8wok+7DURj3kHNv8hdPFQAJZTAsq436DPP7N421oQrdK+bYG0VgtDvZj0/pQpU2SjIANdFY4zYiSeoXRurZkrZb8lwJMMgQXh4aH/GxsbOwUnR+h9279/8mDWkXiOfXxJkD+LOMsuvEaZcopel3quXDXEVhYhxbu5JrDh/DNAltj2HlIthCWu8hBnBivVdqJq8aODNZwG7Q0DH1ZUVMgxMb/hw4e7G3SJDX9C2s3gjBkZw6wuPCkp/TPh4QyHJh+En7c47PO82sFb1N+NpbODKxXH6h8A2If+b6Jz/zZq1KjS3r2D79uwYdO3tHF690kV2ObMTZyYXVleXrGW6T6HraMYkkQF3SHpH6CrM+lrBLvseT4+3jJ9zbs23VMWzi7QUayBRKRQfsS0HnNQrAI1l4R/l6KTqjkzch80X5bGgHyKgNjirKzMQFQVMRtNVDsLhe3Et6Na5USunHVQ0lXuP0a1dPgE7XU7MqfBRoUkI10vpqam7C0oOGMCHSkPY2NAkHEW9Dbavs2g3xEOhw3LqOfeprUhH4LZtZQw57yVK1ca586de55mfaWtnSsfFbSGAz8xqAyxaIJI4sCtGDAgZUtiYvJ4o9HwCs++Vr4zxZok+JLc8roLQclhwdxl+UKenQZbIUan4wFc0leAvoYd6QewXHoRWFKqqMnXsVERgGTNwIM93qOH/x32GiclJU5BjRzkzMldhw8ffo3wwku0sfaBbogUf/3113ybMzPh+w9Cm74uIL1/YpZUBgT4y6+E3wdoe93afE/7XF56BmyzXscNGJA6jud9p08XlAD6fQy8BwupWRW7t3+hhsRCtEOHZojTkm6vBXUjJkyYcBBVUs/O+DMEp/7GrHvarN1hPsQytueCsGIep/yp9nd5RAsXEyns4+Wlk1+N9SOZNXP6dp+tli5LthXCYwcOHDAWxvMx/CsZ+GzUizfHGqxU/V7RCX65UEC7hzl3Uo79nOPo4PV6r58Rw36PD/wU8e5BnOfYDeWzgH8AaRf7/DWSN1Issfu/8kG2xMXFcqJWKyrL39F+FG6hs5N7UXneZqkBOqKztyj1LHNPgG3qA4bGpKUN0sDAfqbuFaRoGouoF16pJQ/K8/8QKniOBx/AOEW76coLR/L4+Lh7WeS2IL1T0Zuf0mYMNJ6UtvBygvTu5Mk5l/V633/UaIzPfifEzkkypudj/HCq3BG+zOt4DGylEwaZOWjQQA368iA7GvU4RBNZ1LToSaWK5FcJ5KwiL2Qg1yIjI0abv3TkHmAjsrOzGwhz1nD/EG3ESljODFnEgaEBGo0B9SQnt5wD2BEe7NXxONgKA4A7CutFdlkOA7qRBXQkp11Nr9kw3cDmrAAUggraTi5TX/Wl02nvRge/dPDgwRbCw/lRUX0ehMgKFrxA1cQ80KDLwFZ4xxYfkZiYoMFxOLp//34/AB/IZoUc5vk5H6S5b99om1t0Co3O8tDQ3q/MmDHtGMrjv6Gp7axuV7/73lzuys5xQIbFxsYMbGlpOobzchxg/DAf+YWX1tVjBmIbj+5uQAu2qiUb6WtB/2pY6c9zsrMV0OJc+UheXvoMzDxNRkZ6GbSzAMkVcp5uK56tzEqnmFQt2RwXXsWi915VVXWfrVu3xeEgFAD+RVdHCc04gFb98V3t15H2HKNrOn78hFg1idRfimkpnqrqS/XgMjOHpfDrh6zr12v/ed++/CklJaV3lpWVG7EwDsbF9WO113TpGT7VI1bRAFe+pbCwyIcAlQ+xkg0cyGnipMHrgO6Ui6lqAeEoQSBBeyJfxth2nvOLi0s+Jeb7JFKZgdkmh8YPYQVI/Fd2V9x2bdy4SWiZ4tluI2qDECDf4mygd0VFpSE4uNcGPGGDt7ePhFq9ALpcr/dO4/dCcpxO1aVKsgH612ZAS0djkpISSUnL8dQ+4WM8z/m98adP+9WwnXY4JCQIT9LkZali6oeqjC5uRZL1SLKORXvt5Mm5unaQZXfcxBZ5P/ZmwUHzslo+VYEN8bnWOzDOGTFi+N1arebtHTvyEIzm5/AaJ7KdVjxy5IgKpt5EmFQ1i6z345nS1ta2Vvk1AQdtNIC8Oicnx5uI4ix47gDZomex31+2KLP7qBJsY79OKIrJ9cKkSbmXm5ubfpeXtzuFE6SP5eXtSurdO+Qg8ZFbqJmxnbTv8lc4WG2ckfE6d67MCMgrOXPtx2EC+bsNWyC389gpDjbHoQpsJPcCgMqKbPOC0XAfH98/TJs29fTlyzXP8nv1u69evTZ1+/YdRs7hbR4yJC1Cp/MaZpNAF7zAejIQR9EBchsgr8rNzfFHEGTzQEuyy4HgYLeSlQqqwIYX4hdG0Vd2L5geGBYW+g4btFsJuT5z7ty5ZzjKO43f3TSyS78S130IRFLtEnJjBXgC5HM6gL6FdbGa3SY5hPlzyh0CWWHlOxyUJ8dzVXqUn0dEtrW1yt9JhDnehSnqZmCci/bvP1jADzklXt0HB+YS0b3NMTF9c6Fld6fBFWsEQTayX6ktKSnll1+9VuFEBeNMzRCQ1YxD6mKN1NB2MAG1atVt1Taorj4/BQdqPe381LaF0TqDoe0t9Lk3foKEU/2JlRSwiO7j8PrdPNu00Z0BGzBNBx0xTxsx4Vamp2eE85FVhW4txtik12tnRUb23WZR7tCj6i8rVDk+wHaVcTm3IQ71cnulyvr6hj9yVGA4r2QPUMeGwa6xY8cUsRX2IBjd9osylWAD8nkkuaRBFj5+Q8M6oXUFZBkBu/7aORxR3ioPzlxOgS0doXs5u2FYDDDZznQsbZD0QzgO73HAfR50JlFkYEdn5dixWc3oUgG9Y01xBGzoGREEURd1QocfSEUB8jRn+VPaQZdjFbpHWeDPKWXO5E6DrXTGoodkGl8BmHilTG3OYFYTe9gIUC9AZwDPjZy+Woi5yP+S6ORPYbSdgS0g8/G1RUXFN/nN5Yr09MGxgMPsc+2C7jlE4t/5ZcES1yh919plsIUMYHhXV1+Y39ZmFD3s1CEWzCnZWXl7z56vKrHPX4JmOM/VnIb6gEOUOfziYBzPt7nr1dWXNDgkN3CgPsesjAfkKdRz9TrGEZi/REZGLwFw4cstl1vANueEA5BjDIbWOUiEOAcJ5u8cvL+K8fC6HMXF55DjwrIQl5PEodqEKWnSvRxw1OBaXw8MDFg+ePAQCYA5tbtDO9MFqKWIzTqdTv8ZBznzlXJ35m4H25w5gB8M8LMpuwvwhwNchw42r2fjvrCurv4N/vspFyBEf5t4HT16lAZ1UYskf8aGcgptRdervqDJoRzTEV8BeB0An1BNRGUDj4Jtzgtg9cBOz0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"},HpTS:function(e,t,n){e.exports=n.p+"static/small_program.f74069ec.png"},"J82+":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=d,t.fromByteArray=g;for(var r=[],a=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=i.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=u(e),i=r[0],s=r[1],c=new o(f(e,i,s)),l=0,d=s>0?i-4:i;for(n=0;n>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=a[e.charCodeAt(n)]<<2|a[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=a[e.charCodeAt(n)]<<10|a[e.charCodeAt(n+1)]<<4|a[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,n){for(var r,a=[],o=t;oc?c:s+i));return 1===a?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},JEGk:function(e,t,n){var r=n("apnk").getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),a=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7],i=1;i=0&&s<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===s||6===s)||s>=2&&s<=4&&c>=2&&c<=4?e.set(o+s,i+c,!0,!0):e.set(o+s,i+c,!1,!0))}function y(e){for(var t=e.size,n=8;n>s&1),e.set(n,r,a,!0),e.set(r,n,a,!0)}function E(e,t,n){var r,a,o=e.size,i=h.getEncodedBits(t,n);for(r=0;r<15;r++)a=1===(i>>r&1),r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(o-15+r,8,a,!0),r<8?e.set(8,o-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(o-8,8,1,!0)}function A(e,t){for(var n=e.size,r=-1,a=n-1,o=7,i=0,s=n-1;s>0;s-=2){6===s&&s--;while(1){for(var c=0;c<2;c++)if(!e.isReserved(a,s-c)){var u=!1;i>>o&1)),e.set(a,s-c,u),o--,-1===o&&(i++,o=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}}function x(e,t,n){var r=new i;n.forEach((function(t){r.put(t.mode.bit,4),r.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(r)}));var o=a.getSymbolTotalCodewords(e),s=f.getTotalCodewordsCount(e,t),c=8*(o-s);r.getLengthInBits()+4<=c&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);for(var u=(c-r.getLengthInBits())/8,l=0;l=7&&_(h,t),A(h,f),isNaN(r)&&(r=l.getBestMask(h,E.bind(null,h,n))),l.applyMask(r,h),E(h,n,r),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");var n,r,i=o.M;return"undefined"!==typeof t&&(i=o.from(t.errorCorrectionLevel,o.M),n=p.from(t.version),r=l.from(t.maskPattern),t.toSJISFunc&&a.setToSJISFunction(t.toSJISFunc)),O(e,n,i,r)}},"QU/v":function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},RkyS:function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},"SQ+2":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},VhhD:function(e,t,n){var r=n("ax67"),a=n("Q0Ei"),o=n("4PsM"),i=n("pH4f");function s(e,t,n,o,i){var s=[].slice.call(arguments,1),c=s.length,u="function"===typeof s[c-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=o=void 0):2!==c||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,i){try{var s=a.create(n,o);r(e(s,t,o))}catch(c){i(c)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(i=n,n=t,t=o=void 0):3===c&&(t.getContext&&"undefined"===typeof i?(i=o,o=void 0):(i=o,o=n,n=t,t=void 0));try{var l=a.create(n,o);i(null,e(l,t,o))}catch(f){i(f)}}t.create=a.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return i.render(e,n)}))},VmvX:function(e,t,n){"use strict";n.r(t);n("2mHG");var r=n("KFRP"),a=(n("Rbwl"),n("hTF7")),o=(n("NE/W"),n("L7QV")),i=(n("XZgM"),n("TFeq")),s=(n("RXQH"),n("VgM2")),c=n("VBJJ"),u=n.n(c),l=n("V0hb"),f=n("z3+T"),d=(n("MPZO"),n("bnk9")),p=(n("X/R0"),n("M6G9")),h=(n("jpv3"),n("9rdS")),g=n("55MS"),m=n("GZha"),w=(n("GrpF"),n("Xc/e")),b=n("ZZRV"),y=n.n(b),v=n("q5+0"),_=n("9kvl"),E=(n("VmQ4"),n("QeCE")),A=n("BdwD"),x=n("jMyQ"),k=n.n(x),O=n("532y"),R=n.n(O),S=function(e){var t,n,r=e.classroomList,a=(e.globalSetting,e.loading,e.teachers,e.dispatch),o=Object(v["m"])(),c=(Object(v["l"])(),Object(b["useState"])("0")),u=Object(m["a"])(c,2);u[0],u[1];o["id"]=o["coursesId"];var l=r.detailAttendancesStatistic,f=r.courseGroups,d=function(){a({type:"classroomList/getClassroomAttendancesStatistic",payload:Object(g["a"])({},o)})};Object(b["useEffect"])((function(){d()}),[o["categoryId"]]);var p=function(){var e,t,n,r;return{tooltip:{trigger:"axis",formatter:function(e){var t=e[0].dataIndex,n=null===l||void 0===l?void 0:l.history_attendances[t];return console.log("param:",e),'
\n

').concat(n["name"]," ").concat(n["attendance_date"]," ").concat(n["start_time"],"-").concat(n["end_time"],'

\n

\u5230\u8bfe\u7387\uff1a').concat(Math.round(e[0].value),'%

\n

\u65f7\u8bfe\u7387\uff1a').concat(Math.round(e[1].value),'%

\n

\u8bf7\u5047\u7387\uff1a').concat(Math.round(e[2].value),"%

\n

")}},legend:{data:["\u5230\u8bfe\u7387","\u65f7\u8bfe\u7387","\u8bf7\u5047\u7387"],show:!1},xAxis:{type:"category",nameRotate:45,data:null===l||void 0===l||null===(e=l.history_attendances)||void 0===e?void 0:e.map((function(e,t){var n=e.name;return n.length>6&&(n=n.substr(0,6)+"..."),y.a.createElement("span",null,n)})),boundaryGap:!1,nameLocation:"start",axisLabel:{interval:0,rotate:"45",verticalAlign:"top",align:"left",margin:28,height:120,textStyle:{align:"center",color:"#999"}}},yAxis:{type:"value",axisLabel:{formatter:"{value}%"},splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"\u5230\u8bfe\u7387",data:null===l||void 0===l||null===(t=l.history_attendances)||void 0===t?void 0:t.map((function(e,t){return 100*e.normal_rate})),type:"line",smooth:!0,color:"#26C7C9"},{name:"\u65f7\u8bfe\u7387",data:null===l||void 0===l||null===(n=l.history_attendances)||void 0===n?void 0:n.map((function(e,t){return 100*e.absence_rate})),type:"line",smooth:!0,color:"#FF835C"},{name:"\u8bf7\u5047\u7387",data:null===l||void 0===l||null===(r=l.history_attendances)||void 0===r?void 0:r.map((function(e,t){return 100*e.leave_rate})),type:"line",smooth:!0,color:"#EDBA6F"},{name:"\u65f6\u95f4",data:[0,1,1,1,1,10,100],type:"line",smooth:!0,color:"#EDBA6F"}]}};return y.a.createElement("section",{className:"mt20 pb30"},y.a.createElement(i["a"],{className:R.a.topStatistics,justify:"space-between"},y.a.createElement(s["a"],{flex:"209px"},Math.round((null===l||void 0===l?void 0:l.all_history_count)||0)),y.a.createElement(s["a"],{flex:"209px"},y.a.createElement(y.a.Fragment,null,Math.round(100*((null===l||void 0===l?void 0:l.avg_normal_rate)||0)),"%")),y.a.createElement(s["a"],{flex:"209px"},y.a.createElement(y.a.Fragment,null,Math.round(100*((null===l||void 0===l?void 0:l.avg_absence_rate)||0)),"%")),y.a.createElement(s["a"],{flex:"209px"},y.a.createElement(y.a.Fragment,null,Math.round(100*((null===l||void 0===l?void 0:l.avg_leave_rate)||0)),"%"))),y.a.createElement("section",{className:"bg-white pl30 pr30 pt30 mt20 pb20"},y.a.createElement(i["a"],{gutter:[22,22],className:R.a.filter},y.a.createElement(s["a"],{flex:1},y.a.createElement("span",null,y.a.createElement("i",{className:[R.a.daoke,"mr10"].join(" ")}),"\u5230\u8bfe\u7387"),y.a.createElement("span",{className:"ml40"},y.a.createElement("i",{className:[R.a.kuangke,"mr10"].join(" ")}),"\u65f7\u8bfe\u7387"),y.a.createElement("span",{className:"ml40"},y.a.createElement("i",{className:[R.a.qingjia,"mr10"].join(" ")}),"\u8bf7\u5047\u7387")),y.a.createElement(s["a"],null,y.a.createElement("span",{className:"c-light-black mr5"},"\u663e\u793a\u6700\u8fd1\u5341\u6b21\u7b7e\u5230"),y.a.createElement(E["a"],{size:"large",defaultValue:"",onSelect:function(e){o["group_id"]=e,d()}},y.a.createElement(E["a"].Option,{value:""}," \u5168\u90e8\u5206\u73ed "),null===f||void 0===f||null===(t=f.course_groups)||void 0===t?void 0:t.map((function(e,t){return y.a.createElement(E["a"].Option,{value:e.id}," ",e.name," ")}))))),(null===l||void 0===l||null===(n=l.history_attendances)||void 0===n?void 0:n.length)?y.a.createElement(k.a,{option:p(),style:{height:370},opts:{renderer:"svg"}}):y.a.createElement(A["a"],{styles:{marginTop:50,paddingBottom:50}})))},T=Object(_["a"])((function(e){var t=e.classroomList,n=e.loading,r=e.teachers,a=e.globalSetting;return{classroomList:t,globalSetting:a,teachers:r,loading:n.effects}}))(S),j=(n("rjoL"),n("TMtJ")),P=n("ErOA"),C=function(e){var t=e.classroomList,n=e.dispatch,r=(e.cb,Object(v["m"])());return r["id"]=r["coursesId"],y.a.createElement(j["a"],{centered:!0,title:"\u63d0\u793a",visible:"\u5220\u9664"===t.actionTabs.key,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:Object(f["a"])(u.a.mark((function e(){var a,o;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="/api/weapps/attendances/".concat(t.actionTabs.selectArrs[0],".json"),e.next=3,Object(P["a"])(a,{method:"delete"});case 3:o=e.sent,0===o.status&&(p["b"].success("\u5220\u9664\u6210\u529f"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getClassroomAttendancesList",payload:Object(g["a"])({},t.actionTabs.params)}),n({type:"classroomList/getClassroomLeftMenus",payload:{id:r.coursesId}}));case 5:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})}},y.a.createElement("p",null,"\u662f\u5426\u786e\u8ba4\u5220\u9664\uff1f"))},B=Object(_["a"])((function(e){var t=e.classroomList;return{classroomList:t}}))(C),M=function(e){var t=e.classroomList,n=e.dispatch,r=(e.cb,Object(v["m"])());return r["id"]=r["coursesId"],y.a.createElement(j["a"],{centered:!0,title:"\u63d0\u793a",visible:"\u622a\u6b62"===t.actionTabs.key,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:Object(f["a"])(u.a.mark((function e(){var r;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=3,Object(P["a"])("/api/weapps/attendances/".concat(t.actionTabs.selectArrs[0],"/end.json"),{method:"post"});case 3:r=e.sent,0===r.status&&(p["b"].success("\u64cd\u4f5c\u6210\u529f"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getClassroomAttendancesList",payload:Object(g["a"])({},t.actionTabs.params)}));case 5:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})}},y.a.createElement("p",null,"\u662f\u5426\u786e\u8ba4\u622a\u6b62\uff1f"))},I=Object(_["a"])((function(e){var t=e.classroomList;return{classroomList:t}}))(M),D=(n("LC9H"),n("Mghg"),n("m0+X"),n("Eqs+")),N=n.n(D),L=n("mMqU"),F=n("b5WB"),U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?(r=Object(l["a"])(q),a=Object(l["a"])(r.filter((function(t){return t!=(null===e||void 0===e?void 0:e.id)}))),z(!1),V(a)):(i=q,i.push(null===e||void 0===e?void 0:e.id),z((null===i||void 0===i?void 0:i.length)===(null===P||void 0===P||null===(o=P.attendances)||void 0===o?void 0:o.length)),V(Object(l["a"])(i)));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),style:{marginTop:"4px"}}),y.a.createElement(s["a"],{span:20,className:"c-blue font16 blod"},e.name)),y.a.createElement(i["a"],{className:"mt20 c-light-black"},y.a.createElement(s["a"],null,"\u7b7e\u5230\u4eba\u6570"),y.a.createElement(s["a"],{flex:"200px",className:"ml20"},y.a.createElement(o["a"],{showInfo:!1,percent:Math.ceil(e.normal_count/e.all_count*100)})),y.a.createElement(s["a"],{flex:1,className:"ml20 c-blue"},"\u5df2\u7b7e\u5230 ",e.normal_count," / \u5e94\u7b7e\u5230 ",e.all_count)),y.a.createElement(i["a"],{className:"mt20 c-light-black"},y.a.createElement(s["a"],{flex:1},y.a.createElement(i["a"],null,y.a.createElement(s["a"],{flex:1},"\u7b7e\u5230\u53d1\u8d77\u4eba\uff1a",e.author.user_name),y.a.createElement(s["a"],{flex:1},"\u7b7e\u5230\u65b9\u5f0f\uff1a","QRCODE"===e.mode&&"\u4e8c\u7ef4\u7801\u7b7e\u5230","NUMBER"===e.mode&&"\u6570\u5b57\u7b7e\u5230","QUICK"===e.mode&&"\u5feb\u6377\u7b7e\u5230"),y.a.createElement(s["a"],{flex:1},"\u5f00\u59cb\u7ed3\u675f\u65f6\u95f4:",e.attendance_date," ",e.start_time,"~",e.end_time),y.a.createElement(s["a"],null,"NORMAL"===e.attendance_status&&Object(he["q"])()&&y.a.createElement(d["a"],{style:{width:100},className:"zcqiandao",type:"primary",size:"large",ghost:!0},"\u6b63\u5e38\u7b7e\u5230"),"LEAVE"===e.attendance_status&&Object(he["q"])()&&y.a.createElement(d["a"],{style:{width:100},type:"primary",size:"large",ghost:!0},"\u8bf7\u5047"),"ABSENCE"===e.attendance_status&&"1"==S&&Object(he["q"])()&&y.a.createElement(d["a"],{style:{width:100},className:"kkqiandao",size:"large",disabled:!0,type:"primary"},"\u65f7\u8bfe"),"ABSENCE"===e.attendance_status&&"0"==S&&Object(he["q"])()&&y.a.createElement(d["a"],{style:{width:100},size:"large",type:"primary",onClick:function(){return X(e)}},"\u7b7e\u5230")))),y.a.createElement(s["a"],null,Object(he["c"])()&&W.filter((function(t){return e.edit_auth?t:"\u7f16\u8f91"!=t})).filter((function(e){return"0"!=S?"\u622a\u6b62"!=e:e})).map((function(t,n){return y.a.createElement("span",{className:"c-blue ml20",key:n,onClick:function(n){n.stopPropagation(),N(e),c({type:"classroomList/setActionTabs",payload:{key:t,selectArrs:[e.id],params:k}})}},t)}))))))})),y.a.createElement("aside",{className:"tc mb50 mt30"},y.a.createElement(a["a"],{hideOnSinglePage:!0,pageSize:20,showSizeChanger:!1,onChange:Q,defaultCurrent:1,current:k.page||1,total:P.attendances_count})))),y.a.createElement(B,null),y.a.createElement(pe,null),y.a.createElement(oe,{data:D}),y.a.createElement(ce,null),y.a.createElement(I,null))};t["default"]=Object(_["a"])((function(e){var t=e.classroomList,n=e.loading,r=e.globalSetting;return{classroomList:t,globalSetting:r,loading:n.effects}}))(we)},Vxp6:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},ZFXT:function(e,t,n){var r=n("apnk"),a=1335,o=21522,i=r.getBCHDigit(a);t.getEncodedBits=function(e,t){var n=e.bit<<3|t,s=n<<10;while(r.getBCHDigit(s)-i>=0)s^=a<40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){var t=0;while(0!==e)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},ax67:function(e,t){e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},bpCz:function(e,t,n){var r=n("apnk"),a=n("6r6i"),o=n("/6Vw"),i=n("dDf0"),s=n("QU/v"),c=n("SQ+2"),u=7973,l=r.getBCHDigit(u);function f(e,n,r){for(var a=1;a<=40;a++)if(n<=t.getCapacity(a,r,e))return a}function d(e,t){return i.getCharCountIndicator(e,t)+4}function p(e,t){var n=0;return e.forEach((function(e){var r=d(e.mode,t);n+=r+e.getBitsLength()})),n}function h(e,n){for(var r=1;r<=40;r++){var a=p(e,r);if(a<=t.getCapacity(r,n,i.MIXED))return r}}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=i.BYTE);var o=r.getSymbolTotalCodewords(e),c=a.getTotalCodewordsCount(e,t),u=8*(o-c);if(n===i.MIXED)return u;var l=u-d(n,e);switch(n){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,t){var n,r=o.from(t,o.M);if(c(e)){if(e.length>1)return h(e,r);if(0===e.length)return 1;n=e[0]}else n=e;return f(n.mode,n.getLength(),r)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");var t=e<<12;while(r.getBCHDigit(t)-l>=0)t^=u<0){var c=r.alloc(this.degree);return i.copy(c,s),c}return i},e.exports=i},dDf0:function(e,t,n){var r=n("QU/v"),a=n("iuEB");function o(e){if("string"!==typeof e)throw new Error("Param is not a string");var n=e.toLowerCase();switch(n){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return o(e)}catch(r){return n}}},e5e1:function(e,t){function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var a=n.modules.size,o=n.modules.data,i=t.getScale(a,r),s=Math.floor((a+2*r.margin)*i),c=r.margin*i,u=[r.color.light,r.color.dark],l=0;l=c&&f>=c&&l=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function c(e){return e!==e}function u(e,t){var n;return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=i.prototype):(n=e,null===n&&(n=new i(t)),n.length=t),n}function l(e,t){var n=u(e,t<0?0:0|s(t));if(!i.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function m(e){if(i.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 t=e.length;return 0===t?0:g(e).length}function w(e,t,n,r){for(var a=0;a=t.length||a>=e.length)break;t[a+n]=e[a]}return a}function b(e,t,n,r){return w(g(t,e.length-n),e,n,r)}function y(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?p(e,t,n,r):"string"===typeof t?f(e,t,n):h(e,t)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"===typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return b(this,e,t,n)},i.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.length&&(t=e.length),t||(t=0),r>0&&r=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=0;--a)e[a+t]=this[a+n];else if(o<1e3||!i.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a=0){for(var o=n[0],i=0;i0&&u>0&&e[c-1]||(r+=i?o("M",u+n,.5+l+n):o("m",a,0),a=0,i=!1),u+1':"",f="',d='viewBox="0 0 '+u+" "+u+'"',p=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",h=''+l+f+"\n";return"function"===typeof n&&n(null,h),h}},s5zM:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n={N1:3,N2:3,N3:40,N4:10};function r(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,r=0,a=0,o=0,i=null,s=null,c=0;c=5&&(r+=n.N1+(a-5)),i=l,a=1),l=e.get(u,c),l===s?o++:(o>=5&&(r+=n.N1+(o-5)),s=l,o=1)}a>=5&&(r+=n.N1+(a-5)),o>=5&&(r+=n.N1+(o-5))}return r},t.getPenaltyN2=function(e){for(var t=e.size,r=0,a=0;a=10&&(1488===a||93===a)&&r++,o=o<<1&2047|e.get(s,i),s>=10&&(1488===o||93===o)&&r++}return r*n.N3},t.getPenaltyN4=function(e){for(var t=0,r=e.data.length,a=0;ad)&&(o[c]=d,g.push(c,d),a[c]=s));if("undefined"!==typeof n&&"undefined"===typeof o[n]){var m=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(m)}return a},extract_shortest_path_from_predecessor_list:function(e,t){var n=[],r=t;while(r)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var a=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(a,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,a={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(a[t]=n[t]);return a.queue=[],a.sorter=e.sorter||n.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},vjzt:function(e,t,n){var r=n("dDf0");function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var a=this.data.length-t;a>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*a+1))},e.exports=a},wM50:function(e,t,n){e.exports={flex_box_center:"flex_box_center___1y9WS",flex_space_between:"flex_space_between___o9sum",flex_box_vertical_center:"flex_box_vertical_center___3T_mb",flex_box_center_end:"flex_box_center_end___1hiQa",flex_box_column:"flex_box_column___ZfAW0",bg:"bg___gE5q3",menu:"menu___2KmQA",desc:"desc___2T-Kl",listItem:"listItem___2f9rs",info:"info___2sGWq",add:"add___1zAt5",addForm:"addForm___2GLW8"}},xKgJ:function(e,t,n){"use strict";n.d(t,"o",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"s",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"i",(function(){return w})),n.d(t,"j",(function(){return b})),n.d(t,"q",(function(){return y})),n.d(t,"h",(function(){return v})),n.d(t,"p",(function(){return _})),n.d(t,"a",(function(){return E})),n.d(t,"l",(function(){return A})),n.d(t,"m",(function(){return x})),n.d(t,"k",(function(){return k})),n.d(t,"n",(function(){return O})),n.d(t,"t",(function(){return R}));var r,a,o=n("9kvl");(function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["CertifiedTeacher"]=5]="CertifiedTeacher",e[e["TrainingProduction"]=8]="TrainingProduction",e[e["UncertifiedTeacher"]=12]="UncertifiedTeacher",e[e["Student"]=15]="Student"})(r||(r={})),function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["Admin"]=5]="Admin",e[e["Teacher"]=8]="Teacher",e[e["Assistant"]=12]="Assistant",e[e["Student"]=15]="Student"}(a||(a={}));var i=function(e){var t=Object(o["b"])()._store.getState(),n=t.user,r=n.userInfo;return e.some((function(e){return e==(null===r||void 0===r?void 0:r.role)}))},s=function(e){var t=Object(o["b"])()._store.getState(),n=t.user,r=n.userInfo;return!!(null===r||void 0===r?void 0:r.own)||e.some((function(e){var t;return e==(null===r||void 0===r||null===(t=r.course)||void 0===t?void 0:t.course_role)}))},c=function(){var e=Object(o["b"])()._store.getState(),t=e.user,n=t.userInfo;return n.main_site},u=function(){var e,t=Object(o["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_is_end},l=function(){return s([a.SuperAdmin,a.Operation,a.Admin,a.Teacher,a.Assistant])},f=function(){return s([a.SuperAdmin,a.Teacher,a.Admin,a.Assistant,a.Operation])},d=function(){return s([a.SuperAdmin,a.Teacher,a.Admin])},p=function(){return s([a.SuperAdmin])},h=function(){return s([a.SuperAdmin,a.Operation,a.Admin])},g=function(){return s([a.SuperAdmin,a.Operation])},m=function(){return s([a.SuperAdmin,a.Admin])},w=function(){return s([a.SuperAdmin,a.Operation,a.Admin,a.Teacher])},b=function(){return s([a.Assistant])},y=function(){return s([a.Student])},v=function(){return s([a.SuperAdmin,a.Operation,a.Admin,a.Teacher,a.Assistant,a.Student])},_=function(){var e,t=Object(o["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===(null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_role)},E=function(){return i([r.SuperAdmin,r.Operation,r.CertifiedTeacher,r.TrainingProduction])},A=function(){return i([r.SuperAdmin])},x=function(){return i([r.SuperAdmin,r.Operation])},k=function(){return i([r.Student])},O=function(){var e,t=Object(o["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.login)},R=function(){var e=Object(o["b"])()._store.getState(),t=e.user;return t.userInfo}}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[36,5,14],{"+yKU":function(e,t){t.read=function(e,t,n,r,a){var o,i,s=8*a-r-1,c=(1<>1,l=-7,f=n?a-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(i=o&(1<<-l)-1,o>>=-l,l+=r;l>0;i=256*i+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return i?NaN:1/0*(p?-1:1);i+=Math.pow(2,r),o-=u}return(p?-1:1)*i*Math.pow(2,o-r)},t.write=function(e,t,n,r,a,o){var i,s,c,u=8*o-a-1,l=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),t+=i+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(i++,c/=2),i+f>=l?(s=0,i=l):i+f>=1?(s=(t*c-1)*Math.pow(2,a),i+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,a),i=0));a>=8;e[n+p]=255&s,p+=h,s/=256,a-=8);for(i=i<0;e[n+p]=255&i,p+=h,i/=256,u-=8);e[n+p-h]|=128*g}},"/6Vw":function(e,t){function n(e){if("string"!==typeof e)throw new Error("Param is not a string");var n=e.toLowerCase();switch(n){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return n(e)}catch(a){return r}}},"/UA6":function(e,t,n){"use strict";(function(e){var r=n("J82+"),a=n("+yKU"),o=n("Vxp6");function i(){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 u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),u.alloc(+e)}function v(e,t){if(u.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 W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return W(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 N(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function E(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function A(e,t,n,r,a){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=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:x(e,t,n,r,a);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):x(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function x(e,t,n,r,a){var o,i=1,s=e.length,c=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;i=2,s/=2,c/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;da&&(r=a)):r=a;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var i=0;i239?4:u>223?3:u>191?2:1;if(a+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:o=e[a+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=e[a+1],i=e[a+2],128===(192&o)&&128===(192&i)&&(c=(15&u)<<12|(63&o)<<6|63&i,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],128===(192&o)&&128===(192&i)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&i)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),a+=f}return M(r)}t.Buffer=u,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:i(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return d(null,e,t,n)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,a){if(!u.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===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var o=a-r,i=n-t,s=Math.min(o,i),c=this.slice(r,a),l=e.slice(t,n),f=0;fa)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return R(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function M(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var a="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,a,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function Y(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function H(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,o){return o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return o||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,r,52,8),n+8}u.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),t0&&(a*=256))r+=this[e+--t]*a;return r},u.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],a=1,o=0;while(++o=a&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,a=1,o=this[e+--r];while(r>0&&(a*=256))o+=this[e+--r]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var a=Math.pow(2,8*n)-1;U(this,e,t,n,a,0)}var o=1,i=0;this[t]=255&e;while(++i=0&&(i*=256))this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Y(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var o=0,i=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var o=n-1,i=1,s=0;this[t+o]=255&e;while(--o>=0&&(i*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Y(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},u.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=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=0;--a)e[a+t]=this[a+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var t=[],n=0;n>8,a=n%256,o.push(a),o.push(r)}return o}function $(e){return r.toByteArray(G(e))}function ee(e,t,n,r){for(var a=0;a=t.length||a>=e.length)break;t[a+n]=e[a]}return a}function te(e){return e!==e}}).call(this,n("UywP"))},"0s5T":function(e,t,n){var r=n("dDf0"),a=n("vjzt"),o=n("cKS8"),i=n("lqPQ"),s=n("3zmg"),c=n("iuEB"),u=n("apnk"),l=n("t8zF");function f(e){return unescape(encodeURIComponent(e)).length}function d(e,t,n){var r,a=[];while(null!==(r=e.exec(n)))a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function p(e){var t,n,a=d(c.NUMERIC,r.NUMERIC,e),o=d(c.ALPHANUMERIC,r.ALPHANUMERIC,e);u.isKanjiModeEnabled()?(t=d(c.BYTE,r.BYTE,e),n=d(c.KANJI,r.KANJI,e)):(t=d(c.BYTE_KANJI,r.BYTE,e),n=[]);var i=a.concat(o,t,n);return i.sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function g(e){return e.reduce((function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}function m(e){for(var t=[],n=0;n30?""+b(e,"yyyy-MM-dd"):s>1?s+"\u5929\u524d":1==s?"\u6628\u5929":c>=1?c+"\u5c0f\u65f6\u524d":u>=5?u+"\u5206\u949f\u524d":"\u521a\u521a",a},b=function(e,t){"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},r=[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]];for(var a in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,r[RegExp.$1.length-1][e.getDay()])),n)new RegExp("("+a+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return t},y=function(e){if(!e||e<0)return"0\u79d2";console.log("time:",e);var t=60,n=60*t,r=24*n,a=e/r,o=e/n,i=e/t;return a>=1?parseInt(a.toString())+"\u5929"+Math.floor(o%24)+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":o>1?parseInt(o.toString())+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":i>=1?parseInt(i.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":Math.ceil(e)+"\u79d2"},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0;if(e){n=e.length;for(var r=0;r=55296&&a<=56319&&(n--,r++)}}return n<=t},_=function(e,t,n){if(t){var r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,a=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,o=a.test(t),i=r.test(t);(!0===o||!0===i||t.length<2||t.length>=21)&&n("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}n()},E=function(e,t,n){if(t){var r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,a=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,o=a.test(t),i=r.test(t);(!0===o||!0===i||t.length<2||t.length>=11)&&n("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}n()},A=function(e){if(!e)return"";for(var t=e.length-1,n="",r=0;r0){n=!1;break}return n}var P,C=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t||void 0===t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},B=function(e){var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},I=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",e+":"+t},D=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",(new Date).toLocaleDateString().replace(/\//g,"-")+" "+e+":"+t};(function(e){e["Number"]="Number",e["String"]="String",e["Boolean"]="Boolean",e["Object"]="Object",e["Array"]="Array",e["Function"]="Function"})(P||(P={}));var N=function(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)},L=function(e){return N(e)===P.Array?0===e.length:N(e)===P.Object?0===Object.keys(e).length:!e},F=function(e,t){for(var n=[],r=e;r1&&void 0!==arguments[1]?arguments[1]:12,n=t/2-2,r=t/2+3;return e.length>t?e.substr(0,n)+"..."+e.substr(r,t):e},z=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},Y=function(e){return void 0===e||null===e};var H=function(e){switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(e.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(e.container_id));case"DealProject":return window.open("/projects/".concat(e.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(e.container_id));case"Poll":switch(e.parent_container_type){case"CommitPoll":return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));default:return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open("/projects/".concat(e.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(t=Object(i["t"])())||void 0===t?void 0:t.login,"/videos")):"";var t;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}}},"3zmg":function(e,t,n){var r=n("dDf0"),a=n("apnk");function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t;for(t=0;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},"4PsM":function(e,t,n){var r=n("e5e1");function a(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}function o(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}t.render=function(e,t,n){var i=n,s=t;"undefined"!==typeof i||t&&t.getContext||(i=t,t=void 0),t||(s=o()),i=r.getOptions(i);var c=r.getImageWidth(e.modules.size,i),u=s.getContext("2d"),l=u.createImageData(c,c);return r.qrToImageData(l.data,e,i),a(u,s,c),u.putImageData(l,0,0),s},t.renderToDataURL=function(e,n,r){var a=r;"undefined"!==typeof a||n&&n.getContext||(a=n,n=void 0),a||(a={});var o=t.render(e,n,a),i=a.type||"image/png",s=a.rendererOpts||{};return o.toDataURL(i,s.quality)}},"532y":function(e,t,n){e.exports={topStatistics:"topStatistics___1QNNN",tooltip:"tooltip___5CKvs",name:"name___1nnFB",filter:"filter___10bL9",daoke:"daoke___BNGuv",qingjia:"qingjia___xVHr-",kuangke:"kuangke___274Y9"}},"5qM2":function(e,t,n){var r=n("ehRm");function a(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}a.prototype.set=function(e,t,n,r){var a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)},a.prototype.get=function(e,t){return this.data[e*this.size+t]},a.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},a.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=a},"6r6i":function(e,t,n){var r=n("/6Vw"),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},BdwD:function(e,t,n){"use strict";var r=n("55MS"),a=n("ZZRV"),o=n.n(a),i=function(e){var t=e.styles,a=void 0===t?{}:t,i=e.customText;return o.a.createElement("section",{className:"tc animated fadeIn",style:Object(r["a"])(Object(r["a"])({},{color:"#999",margin:"200px auto"}),a)},o.a.createElement("img",{src:n("FOrL")}),o.a.createElement("p",{className:"mt20 font14"},i||"\u6682\u65f6\u8fd8\u6ca1\u6709\u76f8\u5173\u6570\u636e\u54e6!"))};t["a"]=i},FOrL:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCinAAAAAXNSR0IArs4c6QAAFq9JREFUeAHdnAl4VFWWx6sqlYWEkIRsJCRkJQECCXsIS0gAWWwQl1YQxQ2nRx0/u9We8etvpmf87LFt7XHs7mmXbhVEFESQdWRfwiKGXRYhkI0sQAIBAmQnqZrfKfMyZVGVqldLjL7vu9997757zz33/84995xzb5VG8xO/Fi1aNPTDDz/M7w7D1HcHJjzFAyCPNxgMi/V6/YOe6kMNXZ2ayj+mugsXLhSAFxqNxtmPPvroge7A+09Osj///HOvmzdvvoZET/D19Z04f/78i90BaOHhJwU20hx748aNZVqt9kR0dHTOnXfe2dxdgBY+tN2JGVd4QT8/gsp4GRovPfnkkytcoeWptj96ycbaiEdl/BWgEWjt+AULFlzwFFiu0v3RSvaGDRt8L168+CIALNDpdL99/PHHl7oKhqfbe3m6A3fTR4J1/fr1m88iuBxJPs8iOBdr45C7+/EEvR+NZIuVUVdX9wBg/wYgTnp7e//rI488UuoqKCyqv4FmK+rnj67Sste+2+vsjz/+OODWrVsiyb9iMIcAZh4L4El7A3PkPUA/Db2ZERERdzhS39U63RbsDz74YDBq4qmWlpZZ5GtIdz7xxBMlrg5YaY/18iuAnhsYGDht1qxZDUq5J/NuBTZSnIAUzwGEOYB7i/R3pO5f3AkGtHVI9BuAmkG644EHHrjpSYDNaf+gOvvQoUPe33zzTRYMTSVNB1xf0mfo4+V4fkXmjMr9p59+GtLU1CSSPpzHvcQ8NqK36y3r2Xpub7+M92UZGRnPjhw58patup4o71KwkahwgBqFXTyawUgS6RI9vBngNj/22GPFloNkukfTZjZ17iXl8L5jNlLexPMW8lU9e/Zcj5RetWyvPKOWsrl/HzPxTdTR35XyrszdBjZAaD/66KMgBh4KmGGkKAaSzHN/yXkv96IbD5If8PLyOpCWlnbUmnQtWbIkGV19jwBM3Uyh7efnp+nfv3/lmTNnYnx8fE7OnDkzrKioSFdYWBhx/fp1wayVurvIV/Ph1mAOnpfC9evX+1+6dOkVaEzmcb67FlehrfZyC9hI3wEG04/B1sLAFVINqYrnYsoLJfXq1asYyWu0xaDEndva2u6hjYA8ROohrW0pKSmlgCz3iRTpli1bpgHMvPvvvz9H6siFaqkuKSlp40NEX716VQMNI8US6dsCrQd5/gS18XtrH1bad9XlFrCdYRYQdIsXL84CYFEP90AjQegEBQU1p6amliYnJ/v06NFDyr7HozWwpZ1yNTc31+zZs6e1rKysj1IG2CfpYxWzaTWe5jdKeVfn3xuIpzuXBfH48eOTUDEC7t2kSOkzJCSkftCgQaXx8fGBqIs4KbN1dQK2ob6+fu+uXbt8/f39/bKysvwANxzQa8+ePdv3woULvkIT4M+RrSKtRnfv49nAfZdcHge73SmZzmhEPcwkD5KRhYeHXwPgsri4uFCsj1gpc+SyAnbNlStXjiDN0aGhoY1jxowJhN4AS1rMoNrz58/XnD59Ooo8AF6kSjVgr2XRXB0QELADNddi2c6dzw6DjbvcE3f5CZiMcZQB6qYwmKnkPaRNnz59qgcPHnw+JiYmCqmTBVT1JWADzm5sb92xY8dakdhE9HFlQkJCDDT7OUKQmXWTINbFgoKCyPLy8iCepZmssl8K8GpNSkf6lDoOgd2++5EPaCMdJWwirtVq+vbtW4bVcZlgfj8GEqGmvVndNgApQIIvbdy4MRcpbQLgIwMHDgxAr6dTz6FxmNHruIVuw+XLl8sBPrS0tDQc2qJqHDYpOwg5cOMQk1gKQ2DiuAP0hFFNfHz8WQCuxfsTc6+3I+3M6rTwUauwMCqR2pvo3J7V1dVxYWFhtUT7bh44cCAL0y9vzpw5OWZt3HXbxAc9h6rpiXUTgzcrdMWk3E2+ytykdKZDh8BeunRpWENDQyUdmBYZy45goo1pfAqAG9Gbqbw36WXLepbPqKV8pnH9tWvXfGtrawNZ4EKpo8dMvI5OvwS4BhbPSOgnS7m0b1cjngJbulCuFvgqYXH1wZ5P4OODucmkFOBnESVU7eZ3eGNKD9byefPm1SDdTzDl3kTqOkwqpS7T+Tg2bChqwmQfK+X2cnSsP/pbg5kni1oogxE1Izv+0od8tB/y8uFDJ2LjF7KveQ2h6M3YRTgnwufL5LJxoepySLLNKQL6HUjdFlb9OhhYcuTIEYlrJEkdQD82YsQIPwL6HgOqKyQbW73s1KlTLaRkkWjWhSYW9pPY/z2J5YSfPHkyCEEZjs1+whwbe/cOSbZCZOfOnfri4uK3ANqIuuhJenrYsGHHmGpvfvXVV+PQdWNIGqZ/0dixY+sxpyT28aO4mLXXEZ4LgBmP3o4DTJlxZ4YMGdKEozWIQZiMg9GjR9eBgZ6P8A6Snt2uWhwaoyqwWTR+ifucBsjmxDMok3QWa+rVzZs3D4bpWSQd9arHjx9/nsVNLAZVfZl34MH7Ntz7khMnTgQztnAAD8J6quIIRAFmqizut81QynpOnDjxwqZNm8Yzyx+Bt8WO8uewGpHoGwtVATEJMbdEr9q6ylnsFhEAimY1f5iv34MAfR0e3Rn080CY9bfV0JFyd6gRpPIicZTmb7/9Nr6xsVE82Ib09PRiFvkIJNrk1drjBaFqxjm6gceb+tBDD12zV1/eq5G2/4KhQIC2R7dfcHDwfxCPrmZQb6xdu1aP1fGLLVu2jICxVnT6MWZBLIupWpPQXr+dvkdq6wHnIo5QLKZkFOMw4sEWooe9uY+nsarFPTc3tx4rLZyP9Sptn+m08/aXDkk20yUHoHYi1Qa+fGdSba3Pawz07TVr1lxB4p9C0lNFH/LhCnBMenEfba2RrTKVkm0k/FpGPCYIPRsiNJOSkqro+wZ6WBZ1l04XMDOu5ufnBzNbMzEF7e7w6wnoxwLAW6ShdG4VSMAKY2EwOgG0jC8EKf63e++9t47799B1ryFhC44ePTqBJDHqCmi38jETpLI7Lon8EecWNdGXWRWP+qqbOnXqWfRwDLyIWXmb+epMv8yMXqgjHUL0LvhlAnqnQS09lZaQJnbWGQucJjEx0RS56ayenXc9ef/r6dOnN5Mv3Ldv35u4yPNwGO4DGC8AuYKVcwWJS7FDx+prxtCEx1mNFEeTh/Xu3bsNS6kUvoNYa0RlOUXXamfthYCrnzRpUs0XX3wxEqH9BcXvdVqfhe8GjAZ2Vmn27NmtAK5Gv3dGTnnXys1SzMaP9+7dexf3C+AjAAumAdDLxRqg7LY+LdUIDscF7N5APpo4Rhp0cBX2vgE9rEo9KUw5kyM4TZi8jcyaVMK2l23R8AJIUR9ptiogGRrccKvqxVYbB8uFZgbgPowEViLZv0TCCwkLZJAlAJ4RwIpYbP2RIG+FJsBqiNMgrPqmvLy8AMy2QKyJlnHjxl1CHQVGRUUJ6J0Kj0LLXTlBtlvM0sDW1tbwdevWrbVFV9seb36BCsOQLHNQk9HRaRLjJRjvY4uAm8s3wvDr7EEmsk6IO5xG0EmDBSNbY8FE5xq3bt0aLZE57OE2hOAiuWwi+7qZD9Xk8Ctqt23bJnuw/wSOVQoB7o0IxgnZzLZqjbR7it8MHTp0EAO1Wkch5qF8N3RfRQ+KtfAi/E5W+snMzKwaMGCAPwPopZR1lxzb21hZWWkNLwMf4SlzSe7gGW/qOaZwGmCLXv0hrmw63Yz+ex6TagqMfqEwwWzb1h2BFv4Ixl1Q+LTIdQjM726zM1ErEUzhVXh8OhbFDl1p0birHlcTnziJ2niXDk28Ijn9MbkE8P5dxYSdflrh70vi7Kzze+OpG2yjfu1tqz0No/kKAcQMdLjbrSw2t9WxQczdxWKzvs35kefgR1kzqrmPxNTqQ9i3gvcO7126mznolYHRpu3bt4diEc3iubN1o5nZ+aI1/aJBVw5Hul9lcZqOpaBBkgyYNVZVjgcGoZBcs2LFCjm9WgHAYqPLR1+ekBAfVVp6Lhu9vRgLZD5lXcmXCMAmXP4iQsvZYCSWnOxOFZDEsTkiz+YXak9+ElHAoaErVsFWKmODj+f+VQ7IZKOPxLFRXnVFPpmPns4A3sLm3l5VVSWL5PIZM6ZP3rFjZzMS3wev9BNMw0e7gJkqTNLVWBv6mpqa++FJVIVsl60lvcPassMRHjoFWyEA6FO5/090+CisAWNkZKRD7ZT2TuQnkeqhSHUxbaMmT550eNu27XIAU8CeQ/CH4yG7s5lsRUjMDQY8wok+7DURj3kHNv8hdPFQAJZTAsq436DPP7N421oQrdK+bYG0VgtDvZj0/pQpU2SjIANdFY4zYiSeoXRurZkrZb8lwJMMgQXh4aH/GxsbOwUnR+h9279/8mDWkXiOfXxJkD+LOMsuvEaZcopel3quXDXEVhYhxbu5JrDh/DNAltj2HlIthCWu8hBnBivVdqJq8aODNZwG7Q0DH1ZUVMgxMb/hw4e7G3SJDX9C2s3gjBkZw6wuPCkp/TPh4QyHJh+En7c47PO82sFb1N+NpbODKxXH6h8A2If+b6Jz/zZq1KjS3r2D79uwYdO3tHF690kV2ObMTZyYXVleXrGW6T6HraMYkkQF3SHpH6CrM+lrBLvseT4+3jJ9zbs23VMWzi7QUayBRKRQfsS0HnNQrAI1l4R/l6KTqjkzch80X5bGgHyKgNjirKzMQFQVMRtNVDsLhe3Et6Na5USunHVQ0lXuP0a1dPgE7XU7MqfBRoUkI10vpqam7C0oOGMCHSkPY2NAkHEW9Dbavs2g3xEOhw3LqOfeprUhH4LZtZQw57yVK1ca586de55mfaWtnSsfFbSGAz8xqAyxaIJI4sCtGDAgZUtiYvJ4o9HwCs++Vr4zxZok+JLc8roLQclhwdxl+UKenQZbIUan4wFc0leAvoYd6QewXHoRWFKqqMnXsVERgGTNwIM93qOH/x32GiclJU5BjRzkzMldhw8ffo3wwku0sfaBbogUf/3113ybMzPh+w9Cm74uIL1/YpZUBgT4y6+E3wdoe93afE/7XF56BmyzXscNGJA6jud9p08XlAD6fQy8BwupWRW7t3+hhsRCtEOHZojTkm6vBXUjJkyYcBBVUs/O+DMEp/7GrHvarN1hPsQytueCsGIep/yp9nd5RAsXEyns4+Wlk1+N9SOZNXP6dp+tli5LthXCYwcOHDAWxvMx/CsZ+GzUizfHGqxU/V7RCX65UEC7hzl3Uo79nOPo4PV6r58Rw36PD/wU8e5BnOfYDeWzgH8AaRf7/DWSN1Issfu/8kG2xMXFcqJWKyrL39F+FG6hs5N7UXneZqkBOqKztyj1LHNPgG3qA4bGpKUN0sDAfqbuFaRoGouoF16pJQ/K8/8QKniOBx/AOEW76coLR/L4+Lh7WeS2IL1T0Zuf0mYMNJ6UtvBygvTu5Mk5l/V633/UaIzPfifEzkkypudj/HCq3BG+zOt4DGylEwaZOWjQQA368iA7GvU4RBNZ1LToSaWK5FcJ5KwiL2Qg1yIjI0abv3TkHmAjsrOzGwhz1nD/EG3ESljODFnEgaEBGo0B9SQnt5wD2BEe7NXxONgKA4A7CutFdlkOA7qRBXQkp11Nr9kw3cDmrAAUggraTi5TX/Wl02nvRge/dPDgwRbCw/lRUX0ehMgKFrxA1cQ80KDLwFZ4xxYfkZiYoMFxOLp//34/AB/IZoUc5vk5H6S5b99om1t0Co3O8tDQ3q/MmDHtGMrjv6Gp7axuV7/73lzuys5xQIbFxsYMbGlpOobzchxg/DAf+YWX1tVjBmIbj+5uQAu2qiUb6WtB/2pY6c9zsrMV0OJc+UheXvoMzDxNRkZ6GbSzAMkVcp5uK56tzEqnmFQt2RwXXsWi915VVXWfrVu3xeEgFAD+RVdHCc04gFb98V3t15H2HKNrOn78hFg1idRfimkpnqrqS/XgMjOHpfDrh6zr12v/ed++/CklJaV3lpWVG7EwDsbF9WO113TpGT7VI1bRAFe+pbCwyIcAlQ+xkg0cyGnipMHrgO6Ui6lqAeEoQSBBeyJfxth2nvOLi0s+Jeb7JFKZgdkmh8YPYQVI/Fd2V9x2bdy4SWiZ4tluI2qDECDf4mygd0VFpSE4uNcGPGGDt7ePhFq9ALpcr/dO4/dCcpxO1aVKsgH612ZAS0djkpISSUnL8dQ+4WM8z/m98adP+9WwnXY4JCQIT9LkZali6oeqjC5uRZL1SLKORXvt5Mm5unaQZXfcxBZ5P/ZmwUHzslo+VYEN8bnWOzDOGTFi+N1arebtHTvyEIzm5/AaJ7KdVjxy5IgKpt5EmFQ1i6z345nS1ta2Vvk1AQdtNIC8Oicnx5uI4ix47gDZomex31+2KLP7qBJsY79OKIrJ9cKkSbmXm5ubfpeXtzuFE6SP5eXtSurdO+Qg8ZFbqJmxnbTv8lc4WG2ckfE6d67MCMgrOXPtx2EC+bsNWyC389gpDjbHoQpsJPcCgMqKbPOC0XAfH98/TJs29fTlyzXP8nv1u69evTZ1+/YdRs7hbR4yJC1Cp/MaZpNAF7zAejIQR9EBchsgr8rNzfFHEGTzQEuyy4HgYLeSlQqqwIYX4hdG0Vd2L5geGBYW+g4btFsJuT5z7ty5ZzjKO43f3TSyS78S130IRFLtEnJjBXgC5HM6gL6FdbGa3SY5hPlzyh0CWWHlOxyUJ8dzVXqUn0dEtrW1yt9JhDnehSnqZmCci/bvP1jADzklXt0HB+YS0b3NMTF9c6Fld6fBFWsEQTayX6ktKSnll1+9VuFEBeNMzRCQ1YxD6mKN1NB2MAG1atVt1Taorj4/BQdqPe381LaF0TqDoe0t9Lk3foKEU/2JlRSwiO7j8PrdPNu00Z0BGzBNBx0xTxsx4Vamp2eE85FVhW4txtik12tnRUb23WZR7tCj6i8rVDk+wHaVcTm3IQ71cnulyvr6hj9yVGA4r2QPUMeGwa6xY8cUsRX2IBjd9osylWAD8nkkuaRBFj5+Q8M6oXUFZBkBu/7aORxR3ioPzlxOgS0doXs5u2FYDDDZznQsbZD0QzgO73HAfR50JlFkYEdn5dixWc3oUgG9Y01xBGzoGREEURd1QocfSEUB8jRn+VPaQZdjFbpHWeDPKWXO5E6DrXTGoodkGl8BmHilTG3OYFYTe9gIUC9AZwDPjZy+Woi5yP+S6ORPYbSdgS0g8/G1RUXFN/nN5Yr09MGxgMPsc+2C7jlE4t/5ZcES1yh919plsIUMYHhXV1+Y39ZmFD3s1CEWzCnZWXl7z56vKrHPX4JmOM/VnIb6gEOUOfziYBzPt7nr1dWXNDgkN3CgPsesjAfkKdRz9TrGEZi/REZGLwFw4cstl1vANueEA5BjDIbWOUiEOAcJ5u8cvL+K8fC6HMXF55DjwrIQl5PEodqEKWnSvRxw1OBaXw8MDFg+ePAQCYA5tbtDO9MFqKWIzTqdTv8ZBznzlXJ35m4H25w5gB8M8LMpuwvwhwNchw42r2fjvrCurv4N/vspFyBEf5t4HT16lAZ1UYskf8aGcgptRdervqDJoRzTEV8BeB0An1BNRGUDj4Jtzgtg9cBOz0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"},HpTS:function(e,t,n){e.exports=n.p+"static/small_program.f74069ec.png"},"J82+":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=d,t.fromByteArray=g;for(var r=[],a=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=i.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=u(e),i=r[0],s=r[1],c=new o(f(e,i,s)),l=0,d=s>0?i-4:i;for(n=0;n>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=a[e.charCodeAt(n)]<<2|a[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=a[e.charCodeAt(n)]<<10|a[e.charCodeAt(n+1)]<<4|a[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,n){for(var r,a=[],o=t;oc?c:s+i));return 1===a?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},JEGk:function(e,t,n){var r=n("apnk").getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),a=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7],i=1;i=0&&s<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===s||6===s)||s>=2&&s<=4&&c>=2&&c<=4?e.set(o+s,i+c,!0,!0):e.set(o+s,i+c,!1,!0))}function y(e){for(var t=e.size,n=8;n>s&1),e.set(n,r,a,!0),e.set(r,n,a,!0)}function E(e,t,n){var r,a,o=e.size,i=h.getEncodedBits(t,n);for(r=0;r<15;r++)a=1===(i>>r&1),r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(o-15+r,8,a,!0),r<8?e.set(8,o-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(o-8,8,1,!0)}function A(e,t){for(var n=e.size,r=-1,a=n-1,o=7,i=0,s=n-1;s>0;s-=2){6===s&&s--;while(1){for(var c=0;c<2;c++)if(!e.isReserved(a,s-c)){var u=!1;i>>o&1)),e.set(a,s-c,u),o--,-1===o&&(i++,o=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}}function x(e,t,n){var r=new i;n.forEach((function(t){r.put(t.mode.bit,4),r.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(r)}));var o=a.getSymbolTotalCodewords(e),s=f.getTotalCodewordsCount(e,t),c=8*(o-s);r.getLengthInBits()+4<=c&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);for(var u=(c-r.getLengthInBits())/8,l=0;l=7&&_(h,t),A(h,f),isNaN(r)&&(r=l.getBestMask(h,E.bind(null,h,n))),l.applyMask(r,h),E(h,n,r),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");var n,r,i=o.M;return"undefined"!==typeof t&&(i=o.from(t.errorCorrectionLevel,o.M),n=p.from(t.version),r=l.from(t.maskPattern),t.toSJISFunc&&a.setToSJISFunction(t.toSJISFunc)),O(e,n,i,r)}},"QU/v":function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},RkyS:function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},"SQ+2":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},VhhD:function(e,t,n){var r=n("ax67"),a=n("Q0Ei"),o=n("4PsM"),i=n("pH4f");function s(e,t,n,o,i){var s=[].slice.call(arguments,1),c=s.length,u="function"===typeof s[c-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=o=void 0):2!==c||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,i){try{var s=a.create(n,o);r(e(s,t,o))}catch(c){i(c)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(i=n,n=t,t=o=void 0):3===c&&(t.getContext&&"undefined"===typeof i?(i=o,o=void 0):(i=o,o=n,n=t,t=void 0));try{var l=a.create(n,o);i(null,e(l,t,o))}catch(f){i(f)}}t.create=a.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return i.render(e,n)}))},VmvX:function(e,t,n){"use strict";n.r(t);n("2mHG");var r=n("KFRP"),a=(n("Rbwl"),n("hTF7")),o=(n("NE/W"),n("L7QV")),i=(n("XZgM"),n("TFeq")),s=(n("RXQH"),n("VgM2")),c=n("VBJJ"),u=n.n(c),l=n("V0hb"),f=n("z3+T"),d=(n("MPZO"),n("bnk9")),p=(n("X/R0"),n("M6G9")),h=(n("jpv3"),n("9rdS")),g=n("55MS"),m=n("GZha"),w=(n("GrpF"),n("Xc/e")),b=n("ZZRV"),y=n.n(b),v=n("q5+0"),_=n("9kvl"),E=(n("VmQ4"),n("QeCE")),A=n("BdwD"),x=n("jMyQ"),k=n.n(x),O=n("532y"),R=n.n(O),S=function(e){var t,n,r=e.classroomList,a=(e.globalSetting,e.loading,e.teachers,e.dispatch),o=Object(v["m"])(),c=(Object(v["l"])(),Object(b["useState"])("0")),u=Object(m["a"])(c,2);u[0],u[1];o["id"]=o["coursesId"];var l=r.detailAttendancesStatistic,f=r.courseGroups,d=function(){a({type:"classroomList/getClassroomAttendancesStatistic",payload:Object(g["a"])({},o)})};Object(b["useEffect"])((function(){d()}),[o["categoryId"]]);var p=function(){var e,t,n,r;return{tooltip:{trigger:"axis",formatter:function(e){var t=e[0].dataIndex,n=null===l||void 0===l?void 0:l.history_attendances[t];return'
\n

').concat(n["name"]," ").concat(n["attendance_date"]," ").concat(n["start_time"],"-").concat(n["end_time"],'

\n

\u5230\u8bfe\u7387\uff1a').concat(Math.round(e[0].value),'%

\n

\u65f7\u8bfe\u7387\uff1a').concat(Math.round(e[1].value),'%

\n

\u8bf7\u5047\u7387\uff1a').concat(Math.round(e[2].value),"%

\n

")}},legend:{data:["\u5230\u8bfe\u7387","\u65f7\u8bfe\u7387","\u8bf7\u5047\u7387"],show:!1},xAxis:{type:"category",nameRotate:45,data:null===l||void 0===l||null===(e=l.history_attendances)||void 0===e?void 0:e.map((function(e,t){var n=e.name;return n.length>6&&(n=n.substr(0,6)+"..."),n})),boundaryGap:!1,nameLocation:"start",axisLabel:{interval:0,rotate:"45",verticalAlign:"top",align:"left",margin:28,height:120,textStyle:{align:"center",color:"#999"}}},yAxis:{type:"value",axisLabel:{formatter:"{value}%"},splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"\u5230\u8bfe\u7387",data:null===l||void 0===l||null===(t=l.history_attendances)||void 0===t?void 0:t.map((function(e,t){return 100*e.normal_rate})),type:"line",smooth:!0,color:"#26C7C9"},{name:"\u65f7\u8bfe\u7387",data:null===l||void 0===l||null===(n=l.history_attendances)||void 0===n?void 0:n.map((function(e,t){return 100*e.absence_rate})),type:"line",smooth:!0,color:"#FF835C"},{name:"\u8bf7\u5047\u7387",data:null===l||void 0===l||null===(r=l.history_attendances)||void 0===r?void 0:r.map((function(e,t){return 100*e.leave_rate})),type:"line",smooth:!0,color:"#EDBA6F"},{name:"\u65f6\u95f4",data:[0,1,1,1,1,10,100],type:"line",smooth:!0,color:"#EDBA6F"}]}};return y.a.createElement("section",{className:"mt20 pb30"},y.a.createElement(i["a"],{className:R.a.topStatistics,justify:"space-between"},y.a.createElement(s["a"],{flex:"209px"},Math.round((null===l||void 0===l?void 0:l.all_history_count)||0)),y.a.createElement(s["a"],{flex:"209px"},y.a.createElement(y.a.Fragment,null,Math.round(100*((null===l||void 0===l?void 0:l.avg_normal_rate)||0)),"%")),y.a.createElement(s["a"],{flex:"209px"},y.a.createElement(y.a.Fragment,null,Math.round(100*((null===l||void 0===l?void 0:l.avg_absence_rate)||0)),"%")),y.a.createElement(s["a"],{flex:"209px"},y.a.createElement(y.a.Fragment,null,Math.round(100*((null===l||void 0===l?void 0:l.avg_leave_rate)||0)),"%"))),y.a.createElement("section",{className:"bg-white pl30 pr30 pt30 mt20 pb20"},y.a.createElement(i["a"],{gutter:[22,22],className:R.a.filter},y.a.createElement(s["a"],{flex:1},y.a.createElement("span",null,y.a.createElement("i",{className:[R.a.daoke,"mr10"].join(" ")}),"\u5230\u8bfe\u7387"),y.a.createElement("span",{className:"ml40"},y.a.createElement("i",{className:[R.a.kuangke,"mr10"].join(" ")}),"\u65f7\u8bfe\u7387"),y.a.createElement("span",{className:"ml40"},y.a.createElement("i",{className:[R.a.qingjia,"mr10"].join(" ")}),"\u8bf7\u5047\u7387")),y.a.createElement(s["a"],null,y.a.createElement("span",{className:"c-light-black mr5"},"\u663e\u793a\u6700\u8fd1\u5341\u6b21\u7b7e\u5230"),y.a.createElement(E["a"],{size:"large",defaultValue:"",onSelect:function(e){o["group_id"]=e,d()}},y.a.createElement(E["a"].Option,{value:""}," \u5168\u90e8\u5206\u73ed "),null===f||void 0===f||null===(t=f.course_groups)||void 0===t?void 0:t.map((function(e,t){return y.a.createElement(E["a"].Option,{value:e.id}," ",e.name," ")}))))),(null===l||void 0===l||null===(n=l.history_attendances)||void 0===n?void 0:n.length)?y.a.createElement(k.a,{option:p(),style:{height:370},opts:{renderer:"svg"}}):y.a.createElement(A["a"],{styles:{marginTop:50,paddingBottom:50}})))},T=Object(_["a"])((function(e){var t=e.classroomList,n=e.loading,r=e.teachers,a=e.globalSetting;return{classroomList:t,globalSetting:a,teachers:r,loading:n.effects}}))(S),j=(n("rjoL"),n("TMtJ")),P=n("ErOA"),C=function(e){var t=e.classroomList,n=e.dispatch,r=(e.cb,Object(v["m"])());return r["id"]=r["coursesId"],y.a.createElement(j["a"],{centered:!0,title:"\u63d0\u793a",visible:"\u5220\u9664"===t.actionTabs.key,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:Object(f["a"])(u.a.mark((function e(){var a,o;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="/api/weapps/attendances/".concat(t.actionTabs.selectArrs[0],".json"),e.next=3,Object(P["a"])(a,{method:"delete"});case 3:o=e.sent,0===o.status&&(p["b"].success("\u5220\u9664\u6210\u529f"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getClassroomAttendancesList",payload:Object(g["a"])({},t.actionTabs.params)}),n({type:"classroomList/getClassroomLeftMenus",payload:{id:r.coursesId}}));case 5:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})}},y.a.createElement("p",null,"\u662f\u5426\u786e\u8ba4\u5220\u9664\uff1f"))},B=Object(_["a"])((function(e){var t=e.classroomList;return{classroomList:t}}))(C),M=function(e){var t=e.classroomList,n=e.dispatch,r=(e.cb,Object(v["m"])());return r["id"]=r["coursesId"],y.a.createElement(j["a"],{centered:!0,title:"\u63d0\u793a",visible:"\u622a\u6b62"===t.actionTabs.key,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:Object(f["a"])(u.a.mark((function e(){var r;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=3,Object(P["a"])("/api/weapps/attendances/".concat(t.actionTabs.selectArrs[0],"/end.json"),{method:"post"});case 3:r=e.sent,0===r.status&&(p["b"].success("\u64cd\u4f5c\u6210\u529f"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getClassroomAttendancesList",payload:Object(g["a"])({},t.actionTabs.params)}));case 5:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})}},y.a.createElement("p",null,"\u662f\u5426\u786e\u8ba4\u622a\u6b62\uff1f"))},I=Object(_["a"])((function(e){var t=e.classroomList;return{classroomList:t}}))(M),D=(n("LC9H"),n("Mghg"),n("m0+X"),n("Eqs+")),N=n.n(D),L=n("mMqU"),F=n("b5WB"),U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?(r=Object(l["a"])(q),a=Object(l["a"])(r.filter((function(t){return t!=(null===e||void 0===e?void 0:e.id)}))),z(!1),V(a)):(i=q,i.push(null===e||void 0===e?void 0:e.id),z((null===i||void 0===i?void 0:i.length)===(null===P||void 0===P||null===(o=P.attendances)||void 0===o?void 0:o.length)),V(Object(l["a"])(i)));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),style:{marginTop:"4px"}}),y.a.createElement(s["a"],{span:20,className:"c-blue font16 blod"},e.name)),y.a.createElement(i["a"],{className:"mt20 c-light-black"},y.a.createElement(s["a"],null,"\u7b7e\u5230\u4eba\u6570"),y.a.createElement(s["a"],{flex:"200px",className:"ml20"},y.a.createElement(o["a"],{showInfo:!1,percent:Math.ceil(e.normal_count/e.all_count*100)})),y.a.createElement(s["a"],{flex:1,className:"ml20 c-blue"},"\u5df2\u7b7e\u5230 ",e.normal_count," / \u5e94\u7b7e\u5230 ",e.all_count)),y.a.createElement(i["a"],{className:"mt20 c-light-black"},y.a.createElement(s["a"],{flex:1},y.a.createElement(i["a"],null,y.a.createElement(s["a"],{flex:1},"\u7b7e\u5230\u53d1\u8d77\u4eba\uff1a",e.author.user_name),y.a.createElement(s["a"],{flex:1},"\u7b7e\u5230\u65b9\u5f0f\uff1a","QRCODE"===e.mode&&"\u4e8c\u7ef4\u7801\u7b7e\u5230","NUMBER"===e.mode&&"\u6570\u5b57\u7b7e\u5230","QUICK"===e.mode&&"\u5feb\u6377\u7b7e\u5230"),y.a.createElement(s["a"],{flex:1},"\u5f00\u59cb\u7ed3\u675f\u65f6\u95f4:",e.attendance_date," ",e.start_time,"~",e.end_time),y.a.createElement(s["a"],null,"NORMAL"===e.attendance_status&&Object(he["q"])()&&y.a.createElement(d["a"],{style:{width:100},className:"zcqiandao",type:"primary",size:"large",ghost:!0},"\u6b63\u5e38\u7b7e\u5230"),"LEAVE"===e.attendance_status&&Object(he["q"])()&&y.a.createElement(d["a"],{style:{width:100},type:"primary",size:"large",ghost:!0},"\u8bf7\u5047"),"ABSENCE"===e.attendance_status&&"1"==S&&Object(he["q"])()&&y.a.createElement(d["a"],{style:{width:100},className:"kkqiandao",size:"large",disabled:!0,type:"primary"},"\u65f7\u8bfe"),"ABSENCE"===e.attendance_status&&"0"==S&&Object(he["q"])()&&y.a.createElement(d["a"],{style:{width:100},size:"large",type:"primary",onClick:function(){return X(e)}},"\u7b7e\u5230")))),y.a.createElement(s["a"],null,Object(he["c"])()&&W.filter((function(t){return e.edit_auth?t:"\u7f16\u8f91"!=t})).filter((function(e){return"0"!=S?"\u622a\u6b62"!=e:e})).map((function(t,n){return y.a.createElement("span",{className:"c-blue ml20",key:n,onClick:function(n){n.stopPropagation(),N(e),c({type:"classroomList/setActionTabs",payload:{key:t,selectArrs:[e.id],params:k}})}},t)}))))))})),y.a.createElement("aside",{className:"tc mb50 mt30"},y.a.createElement(a["a"],{hideOnSinglePage:!0,pageSize:20,showSizeChanger:!1,onChange:Q,defaultCurrent:1,current:k.page||1,total:P.attendances_count})))),y.a.createElement(B,null),y.a.createElement(pe,null),y.a.createElement(oe,{data:D}),y.a.createElement(ce,null),y.a.createElement(I,null))};t["default"]=Object(_["a"])((function(e){var t=e.classroomList,n=e.loading,r=e.globalSetting;return{classroomList:t,globalSetting:r,loading:n.effects}}))(we)},Vxp6:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},ZFXT:function(e,t,n){var r=n("apnk"),a=1335,o=21522,i=r.getBCHDigit(a);t.getEncodedBits=function(e,t){var n=e.bit<<3|t,s=n<<10;while(r.getBCHDigit(s)-i>=0)s^=a<40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){var t=0;while(0!==e)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},ax67:function(e,t){e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},bpCz:function(e,t,n){var r=n("apnk"),a=n("6r6i"),o=n("/6Vw"),i=n("dDf0"),s=n("QU/v"),c=n("SQ+2"),u=7973,l=r.getBCHDigit(u);function f(e,n,r){for(var a=1;a<=40;a++)if(n<=t.getCapacity(a,r,e))return a}function d(e,t){return i.getCharCountIndicator(e,t)+4}function p(e,t){var n=0;return e.forEach((function(e){var r=d(e.mode,t);n+=r+e.getBitsLength()})),n}function h(e,n){for(var r=1;r<=40;r++){var a=p(e,r);if(a<=t.getCapacity(r,n,i.MIXED))return r}}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=i.BYTE);var o=r.getSymbolTotalCodewords(e),c=a.getTotalCodewordsCount(e,t),u=8*(o-c);if(n===i.MIXED)return u;var l=u-d(n,e);switch(n){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,t){var n,r=o.from(t,o.M);if(c(e)){if(e.length>1)return h(e,r);if(0===e.length)return 1;n=e[0]}else n=e;return f(n.mode,n.getLength(),r)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");var t=e<<12;while(r.getBCHDigit(t)-l>=0)t^=u<0){var c=r.alloc(this.degree);return i.copy(c,s),c}return i},e.exports=i},dDf0:function(e,t,n){var r=n("QU/v"),a=n("iuEB");function o(e){if("string"!==typeof e)throw new Error("Param is not a string");var n=e.toLowerCase();switch(n){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return o(e)}catch(r){return n}}},e5e1:function(e,t){function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var a=n.modules.size,o=n.modules.data,i=t.getScale(a,r),s=Math.floor((a+2*r.margin)*i),c=r.margin*i,u=[r.color.light,r.color.dark],l=0;l=c&&f>=c&&l=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function c(e){return e!==e}function u(e,t){var n;return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=i.prototype):(n=e,null===n&&(n=new i(t)),n.length=t),n}function l(e,t){var n=u(e,t<0?0:0|s(t));if(!i.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function m(e){if(i.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 t=e.length;return 0===t?0:g(e).length}function w(e,t,n,r){for(var a=0;a=t.length||a>=e.length)break;t[a+n]=e[a]}return a}function b(e,t,n,r){return w(g(t,e.length-n),e,n,r)}function y(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?p(e,t,n,r):"string"===typeof t?f(e,t,n):h(e,t)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"===typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return b(this,e,t,n)},i.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.length&&(t=e.length),t||(t=0),r>0&&r=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=0;--a)e[a+t]=this[a+n];else if(o<1e3||!i.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a=0){for(var o=n[0],i=0;i0&&u>0&&e[c-1]||(r+=i?o("M",u+n,.5+l+n):o("m",a,0),a=0,i=!1),u+1':"",f="',d='viewBox="0 0 '+u+" "+u+'"',p=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",h=''+l+f+"\n";return"function"===typeof n&&n(null,h),h}},s5zM:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n={N1:3,N2:3,N3:40,N4:10};function r(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,r=0,a=0,o=0,i=null,s=null,c=0;c=5&&(r+=n.N1+(a-5)),i=l,a=1),l=e.get(u,c),l===s?o++:(o>=5&&(r+=n.N1+(o-5)),s=l,o=1)}a>=5&&(r+=n.N1+(a-5)),o>=5&&(r+=n.N1+(o-5))}return r},t.getPenaltyN2=function(e){for(var t=e.size,r=0,a=0;a=10&&(1488===a||93===a)&&r++,o=o<<1&2047|e.get(s,i),s>=10&&(1488===o||93===o)&&r++}return r*n.N3},t.getPenaltyN4=function(e){for(var t=0,r=e.data.length,a=0;ad)&&(o[c]=d,g.push(c,d),a[c]=s));if("undefined"!==typeof n&&"undefined"===typeof o[n]){var m=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(m)}return a},extract_shortest_path_from_predecessor_list:function(e,t){var n=[],r=t;while(r)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var a=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(a,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,a={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(a[t]=n[t]);return a.queue=[],a.sorter=e.sorter||n.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},vjzt:function(e,t,n){var r=n("dDf0");function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var a=this.data.length-t;a>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*a+1))},e.exports=a},wM50:function(e,t,n){e.exports={flex_box_center:"flex_box_center___1y9WS",flex_space_between:"flex_space_between___o9sum",flex_box_vertical_center:"flex_box_vertical_center___3T_mb",flex_box_center_end:"flex_box_center_end___1hiQa",flex_box_column:"flex_box_column___ZfAW0",bg:"bg___gE5q3",menu:"menu___2KmQA",desc:"desc___2T-Kl",listItem:"listItem___2f9rs",info:"info___2sGWq",add:"add___1zAt5",addForm:"addForm___2GLW8"}},xKgJ:function(e,t,n){"use strict";n.d(t,"o",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"s",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"i",(function(){return w})),n.d(t,"j",(function(){return b})),n.d(t,"q",(function(){return y})),n.d(t,"h",(function(){return v})),n.d(t,"p",(function(){return _})),n.d(t,"a",(function(){return E})),n.d(t,"l",(function(){return A})),n.d(t,"m",(function(){return x})),n.d(t,"k",(function(){return k})),n.d(t,"n",(function(){return O})),n.d(t,"t",(function(){return R}));var r,a,o=n("9kvl");(function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["CertifiedTeacher"]=5]="CertifiedTeacher",e[e["TrainingProduction"]=8]="TrainingProduction",e[e["UncertifiedTeacher"]=12]="UncertifiedTeacher",e[e["Student"]=15]="Student"})(r||(r={})),function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["Admin"]=5]="Admin",e[e["Teacher"]=8]="Teacher",e[e["Assistant"]=12]="Assistant",e[e["Student"]=15]="Student"}(a||(a={}));var i=function(e){var t=Object(o["b"])()._store.getState(),n=t.user,r=n.userInfo;return e.some((function(e){return e==(null===r||void 0===r?void 0:r.role)}))},s=function(e){var t=Object(o["b"])()._store.getState(),n=t.user,r=n.userInfo;return!!(null===r||void 0===r?void 0:r.own)||e.some((function(e){var t;return e==(null===r||void 0===r||null===(t=r.course)||void 0===t?void 0:t.course_role)}))},c=function(){var e=Object(o["b"])()._store.getState(),t=e.user,n=t.userInfo;return n.main_site},u=function(){var e,t=Object(o["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_is_end},l=function(){return s([a.SuperAdmin,a.Operation,a.Admin,a.Teacher,a.Assistant])},f=function(){return s([a.SuperAdmin,a.Teacher,a.Admin,a.Assistant,a.Operation])},d=function(){return s([a.SuperAdmin,a.Teacher,a.Admin])},p=function(){return s([a.SuperAdmin])},h=function(){return s([a.SuperAdmin,a.Operation,a.Admin])},g=function(){return s([a.SuperAdmin,a.Operation])},m=function(){return s([a.SuperAdmin,a.Admin])},w=function(){return s([a.SuperAdmin,a.Operation,a.Admin,a.Teacher])},b=function(){return s([a.Assistant])},y=function(){return s([a.Student])},v=function(){return s([a.SuperAdmin,a.Operation,a.Admin,a.Teacher,a.Assistant,a.Student])},_=function(){var e,t=Object(o["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===(null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_role)},E=function(){return i([r.SuperAdmin,r.Operation,r.CertifiedTeacher,r.TrainingProduction])},A=function(){return i([r.SuperAdmin])},x=function(){return i([r.SuperAdmin,r.Operation])},k=function(){return i([r.Student])},O=function(){var e,t=Object(o["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.login)},R=function(){var e=Object(o["b"])()._store.getState(),t=e.user;return t.userInfo}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__Exercise__Answer__index.js b/p__Classrooms__Lists__Exercise__Answer__index.js index b59162b3c2..490157d612 100644 --- a/p__Classrooms__Lists__Exercise__Answer__index.js +++ b/p__Classrooms__Lists__Exercise__Answer__index.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[52,4,5,6,7,9,10,12,14],{"1vsH":function(e,t,n){"use strict";n.d(t,"i",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"C",(function(){return g})),n.d(t,"B",(function(){return y})),n.d(t,"D",(function(){return v})),n.d(t,"E",(function(){return _})),n.d(t,"s",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"p",(function(){return E})),n.d(t,"o",(function(){return j})),n.d(t,"A",(function(){return S})),n.d(t,"j",(function(){return k})),n.d(t,"z",(function(){return N})),n.d(t,"u",(function(){return C})),n.d(t,"l",(function(){return A})),n.d(t,"x",(function(){return D})),n.d(t,"n",(function(){return M})),n.d(t,"d",(function(){return P})),n.d(t,"b",(function(){return L})),n.d(t,"t",(function(){return B})),n.d(t,"y",(function(){return F})),n.d(t,"w",(function(){return q})),n.d(t,"m",(function(){return U})),n.d(t,"v",(function(){return G})),n.d(t,"q",(function(){return X}));var r=n("zjzt"),o=n("ZZRV"),i=n.n(o),a=n("xKgJ"),s=n("vcnW"),c=n.n(s),u=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],l=function(e){var t,n=(t={},Object(r["a"])(t,-1,"\u91cd\u505a\u4e2d"),Object(r["a"])(t,0,"\u672a\u5f00\u542f"),Object(r["a"])(t,1,"\u672a\u901a\u5173"),Object(r["a"])(t,2,"\u6309\u65f6\u901a\u5173"),t);return n[e]||"\u8fdf\u4ea4\u901a\u5173"},f=function(e){var t,n,o,a=(t={},Object(r["a"])(t,-1,{name:"\u91cd\u505a\u4e2d",class:"c-orange"}),Object(r["a"])(t,0,{name:"\u672a\u5f00\u542f",class:"c-black"}),Object(r["a"])(t,1,{name:"\u672a\u901a\u5173",class:"c-red"}),Object(r["a"])(t,2,{name:"\u6309\u65f6\u901a\u5173",class:"c-green"}),Object(r["a"])(t,3,{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}),t);return i.a.createElement("span",{className:null===a||void 0===a||null===(n=a[e.status])||void 0===n?void 0:n["class"]},null===a||void 0===a||null===(o=a[e.status])||void 0===o?void 0:o["name"])},d=function(e){var t=e.status,n={0:{class:"tag-style bg-blue ml10",name:"\u5f85\u9009\u4e2d"},1:{class:"tag-style bg-blue ml10",name:"\u5f85\u786e\u8ba4"},2:{class:"tag-style bg-pink ml10",name:"\u5df2\u786e\u8ba4"}};try{return i.a.createElement("span",{className:n[t]["class"]},n[t]["name"])}catch(r){console.log("utils.StatusGraduationProjectTags",e.status)}},p={1:"\u672a\u53d1\u5e03",2:"\u8003\u8bd5\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},h={1:"\u672a\u53d1\u5e03",2:"\u63d0\u4ea4\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},m=function(e){var t={"\u5df2\u5f00\u542f\u9632\u4f5c\u5f0a":{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},"\u516c\u5f00":{class:"tag-style bg-blue ml10"},"\u5df2\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-green ml10"},"\u672a\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-pink ml10"},"\u672a\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u533f\u540d\u4f5c\u54c1":{class:"tag-style bg-cyan ml10"},"\u5df2\u9009\u62e9":{class:"tag-style bg-grey-ede ml10"},"\u5df2\u7ed3\u675f":{class:"tag-style bg-grey-ede ml10"},"\u63d0\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u533f\u8bc4\u4e2d":{class:"tag-style bg-blue ml10"},"\u7533\u8bc9\u4e2d":{class:"tag-style bg-blue ml10"},"\u8003\u8bd5\u4e2d":{class:"tag-style bg-light-blue ml10"},"\u8865\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u8bc4\u9605\u4e2d":{class:"tag-style bg-blue ml10"},"\u5f85\u9009\u4e2d":{class:"tag-style bg-blue ml10"},"\u4ea4\u53c9\u8bc4\u9605\u4e2d":{class:"tag-style bg-light-orange ml10"},"\u5df2\u5f00\u542f\u4ea4\u53c9\u8bc4\u9605":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u786e\u8ba4":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u5904\u7406":{class:"tag-style bg-lightblue-purple ml10"},"\u79c1\u6709":{class:"tag-style bg-lightblue-purple ml10"},"\u672a\u63d0\u4ea4":{class:"tag-style bg-lightblue-purple ml10"},"\u5df2\u786e\u8ba4":{class:"tag-style bg-light-pink ml10"},"\u5df2\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u5df2\u622a\u6b62":{class:"tag-style bg-light-pink ml10"},"\u5f00\u53d1\u8bfe\u7a0b":{class:"tag-style bg-orange ml10"},"\u5df2\u5f00\u64ad":{class:"tag-style-border border-green c-green ml10"},"\u672a\u5f00\u64ad":{class:"tag-style-border border-light-black ml10"},"\u6309\u65f6\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u8fdf\u4ea4\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u5f00\u542f":{class:"tag-style-border border-light-black ml10"}},n=[];e.is_random&&n.push(i.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((function(e,r){n.push(i.a.createElement("span",{key:r,className:t[e]&&t[e]["class"]},e))}))}catch(r){console.log("utils.status.tag:",r,e.status)}return n},b=function(e){var t,n,r={0:{name:"\u672a\u63d0\u4ea4",class:"c-black"},1:{name:"\u6309\u65f6\u63d0\u4ea4",class:"c-green"},2:{name:"\u5ef6\u65f6\u63d0\u4ea4",class:"c-red"}};return i.a.createElement("span",{className:null===(t=r[e.status])||void 0===t?void 0:t["class"]},null===(n=r[e.status])||void 0===n?void 0:n["name"])},g=function(e){e=new Date(e).getTime();var t=6e4,n=60*t,r=24*n,o="",i=(new Date).getTime(),a=i-e;if(a<0)return console.log("\u65f6\u95f4\u4e0d\u5bf9\u52b2,\u670d\u52a1\u5668\u521b\u5efa\u65f6\u95f4\u4e0e\u5f53\u524d\u65f6\u95f4\u4e0d\u540c\u6b65"),"\u521a\u521a";var s=parseInt(a/r,10),c=parseInt(a/n,10),u=parseInt(a/t,10);return o=s>30?""+y(e,"yyyy-MM-dd"):s>1?s+"\u5929\u524d":1==s?"\u6628\u5929":c>=1?c+"\u5c0f\u65f6\u524d":u>=5?u+"\u5206\u949f\u524d":"\u521a\u521a",o},y=function(e,t){"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},r=[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]];for(var o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,r[RegExp.$1.length-1][e.getDay()])),n)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return t},v=function(e){if(!e||e<0)return"0\u79d2";console.log("time:",e);var t=60,n=60*t,r=24*n,o=e/r,i=e/n,a=e/t;return o>=1?parseInt(o.toString())+"\u5929"+Math.floor(i%24)+"\u65f6"+Math.floor(a%60)+"\u5206"+Math.floor(e%60)+"\u79d2":i>1?parseInt(i.toString())+"\u65f6"+Math.floor(a%60)+"\u5206"+Math.floor(e%60)+"\u79d2":a>=1?parseInt(a.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":Math.ceil(e)+"\u79d2"},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0;if(e){n=e.length;for(var r=0;r=55296&&o<=56319&&(n--,r++)}}return n<=t},w=function(e,t,n){if(t){var r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,o=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,i=o.test(t),a=r.test(t);(!0===i||!0===a||t.length<2||t.length>=21)&&n("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}n()},x=function(e,t,n){if(t){var r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,o=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,i=o.test(t),a=r.test(t);(!0===i||!0===a||t.length<2||t.length>=11)&&n("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}n()},E=function(e){if(!e)return"";for(var t=e.length-1,n="",r=0;r0){n=!1;break}return n}var I,A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t||void 0===t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},D=function(e){var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},P=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",e+":"+t},L=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",(new Date).toLocaleDateString().replace(/\//g,"-")+" "+e+":"+t};(function(e){e["Number"]="Number",e["String"]="String",e["Boolean"]="Boolean",e["Object"]="Object",e["Array"]="Array",e["Function"]="Function"})(I||(I={}));var R=function(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)},B=function(e){return R(e)===I.Array?0===e.length:R(e)===I.Object?0===Object.keys(e).length:!e},F=function(e,t){for(var n=[],r=e;r1&&void 0!==arguments[1]?arguments[1]:12,n=t/2-2,r=t/2+3;return e.length>t?e.substr(0,n)+"..."+e.substr(r,t):e},U=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},G=function(e){return void 0===e||null===e};var X=function(e){switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(e.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(e.container_id));case"DealProject":return window.open("/projects/".concat(e.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(e.container_id));case"Poll":switch(e.parent_container_type){case"CommitPoll":return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));default:return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open("/projects/".concat(e.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(t=Object(a["t"])())||void 0===t?void 0:t.login,"/videos")):"";var t;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}}},"7ahc":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("55MS"),o=n("1gHQ"),i=(n("MPZO"),n("bnk9")),a=(n("EkPb"),n("7X0+")),s=n("GZha"),c=(n("VmQ4"),n("QeCE")),u=n("ZZRV"),l=n.n(u),f=n("M0ff"),d=n.n(f),p=(n("4X1q"),c["a"].Option),h={labelCol:{span:4},wrapperCol:{span:20}},m={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function b(e){var t=e.value,n=e.onChange,o=e.mode,i=e.options,a=void 0===i?{}:i,c=Object(u["useRef"])(),f=Object(u["useState"])(),p=Object(s["a"])(f,2),h=p[0],m=p[1];return Object(u["useEffect"])((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),Object(u["useEffect"])((function(){h&&h.setOption("mode",o)}),[h,o]),Object(u["useEffect"])((function(){h&&t!==h.getValue()&&h.setValue(t||"")}),[h,t]),Object(u["useEffect"])((function(){if(c.current&&!h){var e=d.a.fromTextArea(c.current,Object(r["a"])({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0},a));m(e)}}),[c.current,h]),l.a.createElement("div",{className:"my-codemirror-container"},l.a.createElement("textarea",{ref:c}))}t["b"]=function(e){var t=e.callback,n=e.onCancel,r=Object(u["useState"])("python"),f=Object(s["a"])(r,2),d=f[0],g=f[1];function y(e){g(m[e][1])}function v(e){t(e)}return l.a.createElement(a["a"],Object(o["a"])({},h,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:v}),l.a.createElement(a["a"].Item,{label:"\u4ee3\u7801\u8bed\u8a00",name:"language"},l.a.createElement(c["a"],{onChange:y},Object.keys(m).map((function(e){return l.a.createElement(p,{key:e,value:e},m[e][0])})))),l.a.createElement(a["a"].Item,{label:"\u4ee3\u7801\u5185\u5bb9",name:"content",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4ee3\u7801\u5185\u5bb9"}]},l.a.createElement(b,{mode:d})),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(i["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),l.a.createElement(i["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))}},"9Bee":function(e,t,n){"use strict";var r=n("ZZRV"),o=n.n(r),i=(n("Sawj"),n("GZha")),a=n("tVQ9"),s=n.n(a),c=n("PRXW");function u(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var n=Object(i["a"])(t,1),o=n[0];return o.length>=r.length?e.slice(r.length):e})).join("\n")}var l=[],f=["
    "],d=new s.a.Renderer,p=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function h(){l.length=0,f=["
      "]}function m(e,t,n,r){if(t>=e.length||e[t].level<=n)return t;var o=e[t];r.push("
    • "+o.text+""),t++;var i=[];return t=m(e,t,o.level,i),i.length>0&&(r.push("
        "),i.forEach((function(e){r.push(e)})),r.push("
      ")),r.push("
    • "),t=m(e,t,n,r),t}function b(){return m(l,0,0,f),f.push("
    "),f.join("")}var g={heading:function(e){var t=p.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=u(n,t[3]||""),o=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(o)>=0){var i=_(),a=r;r=i,w[i]={type:"block",expression:a}}return{type:"code",raw:n,lang:o,text:r}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,v=0,_=function(){return"__special_katext_id_".concat(v++,"__")},w={};function x(){return w}function E(){v=0,w={}}function j(e){return e=e.replace(y,(function(e,t){var n=_();return w[n]={type:"inline",expression:t},n})),e}var S=d.listitem;d.listitem=function(e){return S(j(e))};var T=d.paragraph;d.paragraph=function(e){return T(j(e))};var O=d.tablecell;d.tablecell=function(e,t){return O(j(e),t)},d.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];return r?["latex","katex","math"].indexOf(r)>=0?"

    ".concat(e,"

    "):'
    ').concat(n?e:Object(c["escape"])(e,!0),"
    \n"):'
    '+(n?e:Object(c["escape"])(e,!0))+"
    "},d.heading=function(e,t,n){var r=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return l.push({anchor:r,level:t,text:e}),"'+e+""},s.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),s.a.use({tokenizer:g,renderer:d});var k=s.a,N=(n("8+LE"),n("ZRDM")),C=n.n(N),I=n("saPB"),A=/]*>/g;function D(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}t["a"]=function(e){var t=e.value,n=void 0===t?"":t,i=e.className,a=e.style,s=void 0===a?{}:a,c=String(n),u=Object(r["useMemo"])((function(){var e=k(c),t=x();return c.match(/\[TOC\]/)&&(e=e.replace("

    [TOC]

    ",b()),h()),e=e.replace(/(__special_katext_id_\d+__)/g,(function(e,n){var r=t[n],o=r.type,i=r.expression;return Object(I["renderToString"])(D(i)||"",{displayMode:"block"===o,throwOnError:!1,output:"html"})})),e=e.replace(/\u2581/g,"\u2581\u2581\u2581"),E(),C.a.sanitize(e)}),[c]),l=Object(r["useRef"])();function f(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.startsWith("#")){e.preventDefault();var r=document.getElementById(n.replace("#",""));r&&r.scrollIntoView(!0)}}}return Object(r["useEffect"])((function(){if(l.current&&u&&u.match(A)&&window.PR.prettyPrint(),l.current)return l.current.addEventListener("click",f),function(){l.current.removeEventListener("click",f),E(),h()}}),[u,l.current,f]),o.a.createElement("div",{ref:l,style:s,className:"".concat(i||""," markdown-body"),dangerouslySetInnerHTML:{__html:u}})}},"9VGf":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ZZRV");function o(e,t){var n=Object(r["useRef"])();Object(r["useEffect"])((function(){n.current=e})),Object(r["useEffect"])((function(){function e(){n.current()}if(null!==t){var r=setInterval(e,t);return function(){return clearInterval(r)}}}),[t])}},BjJ7:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n("m3rI");function o(e){var t=!0;if(e.length>0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase();if(!F(n))throw TypeError("Stringified UUID is invalid");return n}var X=G;function V(e,t,n){e=e||{};var r=e.random||(e.rng||L)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return X(r)}var H=V,W=n("DR4n"),z=n.n(W),K=n("piNp"),Y=function(e,t){var n=e.split(","),r=n[0].match(/:(.*?);/)[1],o=atob(n[1]),i=o.length,a=new Uint8Array(i);while(i--)a[i]=o.charCodeAt(i);return new Blob([a],{type:r})},$=function(e){var t=e.time,n=e.number,r=e.supportCamera,o=(e.update,Object(_["useRef"])()),i=Object(_["useRef"])(),a=Object(x["m"])(),s=Object(_["useState"])([]),c=Object(g["a"])(s,2),u=c[0],l=c[1],d=Object(_["useState"])(0),p=Object(g["a"])(d,2),m=p[0],y=p[1],v=Object(_["useState"])(""),E=Object(g["a"])(v,2),j=(E[0],E[1]),S=Object(_["useState"])(),T=Object(g["a"])(S,2),O=T[0],k=T[1],N=Object(_["useState"])(0),C=Object(g["a"])(N,2),I=C[0],A=C[1];Object(_["useEffect"])((function(){return L(),function(){B(),M()}}),[]),Object(_["useEffect"])((function(){2===m&&t&&n>0&&(P(),A(1))}),[t]),Object(_["useEffect"])((function(){if(0!==I){if(2===I)clearInterval(O);else{var e=0,t=setInterval((function(){console.log("n:",e,O),u.includes(e)&&R(),e++}),1e3);k(t)}return function(){return clearInterval(O)}}}),[I]);var M=function(){A(2)},P=function(){var e=t/n,r=[];function o(e,t){return parseInt(Math.floor(Math.random()*(t-e+1))+e)}new Array(n).fill(0).map((function(t,n){r.push(o(e*n,e*(n+1)))})),u=r,l([].concat(r)),console.log(r)},L=function e(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return t?new Promise((function(n,r){t.call(navigator,e,n,r)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then((function(t){r&&r(2),y(2),"srcObject"in o.current?o.current.srcObject=t:o.current.src=window.URL.createObjectURL(t),console.log("stream:",t),o.current.onloadedmetadata=function(e){o.current.play()},o.current.addEventListener("ended",(function(){console.log("\u64ad\u653e\u7ed3\u675f"),M(),f["b"].error({content:"\u60a8\u5df2\u7ecf\u5173\u95ed\u4e86\u6444\u50cf\u5934\uff0c\u8bf7\u572810\u79d2\u949f\u5185\u6062\u590d\u6444\u50cf\u5934\uff0c\u5426\u5219\u5c06\u63a8\u51fa\u8003\u8bd5",duration:10,key:9998}),setTimeout((function(){e()}),1e4)}),!1)}))["catch"]((function(e){y(1),r&&r(1),"Permission denied"===e.message||"NotAllowedError"===e.name?f["b"].error("\u60a8\u5df2\u62d2\u7edd\u4e86\u83b7\u53d6\u6444\u50cf\u5934"):f["b"].error("\u6444\u50cf\u5934\u83b7\u53d6\u5931\u8d25\uff0c\u6216\u60a8\u5df2\u62d2\u7edd\u4e86\u83b7\u53d6\u6444\u50cf\u5934"),console.log("errname: "+e.name),console.log("err: "+e.message)}))},R=function(){try{i.current.width=o.current.videoWidth,i.current.height=o.current.videoHeight;var e=i.current.getContext("2d");e.drawImage(o.current,0,0,i.current.width,i.current.height),j(i.current.toDataURL("image/png")),F(i.current.toDataURL("image/png"))}catch(t){}},B=function(){try{var e=o.current.srcObject,t=e.getTracks();t.forEach((function(e){e.stop()})),o.current.srcObject=null}catch(n){}},F=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n,r,o,i,s,c,u,l,f,d,p,m;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("params:",a.login,a.categoryId),e.next=3,Object(D["a"])("/api/buckets/get_upload_token.json",{method:"get"});case 3:f=e.sent,d=H(),p=new K({endpoint:null===f||void 0===f||null===(n=f.data)||void 0===n?void 0:n.end_point,region:null===f||void 0===f||null===(r=f.data)||void 0===r?void 0:r.region,accessKeyId:null===f||void 0===f||null===(o=f.data)||void 0===o?void 0:o.access_key_id,accessKeySecret:null===f||void 0===f||null===(i=f.data)||void 0===i?void 0:i.access_key_secret,bucket:null===f||void 0===f||null===(s=f.data)||void 0===s?void 0:s.bucket,stsToken:null===f||void 0===f||null===(c=f.data)||void 0===c?void 0:c.security_token}),console.log("ENV.API_SERVER + res?.data?.callback_url:","https://"+document.domain+(null===f||void 0===f||null===(u=f.data)||void 0===u?void 0:u.callback_url),document.domain),m=Y(t,d),p.multipartUpload("".concat(d,".png"),m,{timeout:1e4,partSize:10485760,callback:{url:"https://"+document.domain+(null===f||void 0===f||null===(l=f.data)||void 0===l?void 0:l.callback_url),host:document.domain,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+a.login+"&exercise_id="+a.categoryId}}).then((function(e){console.log("result:",e)}))["catch"]((function(e){console.log("err:",e)}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return w.a.createElement(w.a.Fragment,null,3!==m&&w.a.createElement("aside",{className:z.a.video,id:"screenshot"},0===m&&w.a.createElement("span",null,"\u6b63\u5728\u5f00\u542f\u6444\u50cf\u5934..."),1===m&&w.a.createElement("span",null,"\u6444\u50cf\u5934\u5f00\u542f\u5931\u8d25"),2===m&&w.a.createElement("div",null,w.a.createElement("video",{width:"288",ref:o,autoPlay:!0}),w.a.createElement("canvas",{style:{display:"none"},ref:i}))))},J=$,Z=n("NfTp"),Q=n.n(Z),ee=n("V5fa"),te=n.n(ee),ne=n("1vsH"),re=n("xKgJ"),oe=n("V0Rq"),ie=n("9Bee"),ae=n("Ot1p"),se=function(e){var t,n,r,o,i=e.item,a=e.answerData,s=e.onBlur,c=void 0===s?function(){}:s,u=Object(_["useState"])(),l=Object(g["a"])(u,2),f=l[0],d=l[1],p=Object(_["useState"])(),h=Object(g["a"])(p,2),m=(h[0],h[1]);return Object(_["useEffect"])((function(){m(null===i||void 0===i?void 0:i.a_flag)}),[null===i||void 0===i?void 0:i.a_flag]),w.a.createElement("div",null,1===(null===a||void 0===a||null===(t=a.exercise)||void 0===t?void 0:t.user_exercise_status)?w.a.createElement("div",{className:te.a.simpleText},w.a.createElement(ie["a"],{value:null===i||void 0===i||null===(n=i.user_answer)||void 0===n?void 0:n[0]})):w.a.createElement("div",{className:i.user_score&&(i.user_score===i.question_score?"c-green":"c-red")},w.a.createElement(ae["a"],{height:150,defaultValue:null===i||void 0===i||null===(r=i.user_answer)||void 0===r?void 0:r[0],id:null===i||void 0===i?void 0:i.question_id,onChange:function(e){return d(e)},onBlur:function(){return c(f)}})),Object(re["q"])()&&(null===i||void 0===i?void 0:i.standard_answer)&&w.a.createElement("div",null,w.a.createElement("p",{className:"mb10 font16"},"\u53c2\u8003\u7b54\u6848\uff1a"),w.a.createElement(ie["a"],{value:null===i||void 0===i||null===(o=i.standard_answer)||void 0===o?void 0:o[0]})))},ce=se,ue=(n("uLqt"),n("/vd4")),le=(n("IIfR"),n("w3Ok")),fe=n("ZW9T"),de=n("o5mm"),pe=n.n(de),he=function(e){var t,n,r,o=e.item,i=e.answerData,a=Object(_["useState"])([]),s=Object(g["a"])(a,2),c=s[0],u=s[1],l=Object(_["useState"])([]),f=Object(g["a"])(l,2),d=f[0],p=f[1];Object(_["useEffect"])((function(){var e;if(null===o||void 0===o||null===(e=o.shixun_details)||void 0===e?void 0:e.length){for(var t=[],n=[],r=0;r<(null===o||void 0===o||null===(i=o.shixun_details)||void 0===i?void 0:i.length);r++){for(var i,a,s,c,l,f,d=0;d<(null===o||void 0===o?void 0:o.shixun_details[r].stage_list.length);d++){var h,b,g,y,v=null===o||void 0===o?void 0:o.shixun_details[r].stage_list[d];t.push(Object(m["a"])(Object(m["a"])({},v),{operation:null===o||void 0===o||null===(h=o.shixun_details)||void 0===h||null===(b=h[r])||void 0===b||null===(g=b.shixun_detail)||void 0===g||null===(y=g[0])||void 0===y?void 0:y.game_identifier}))}if(null===o||void 0===o||null===(a=o.shixun_details)||void 0===a||null===(s=a[r])||void 0===s?void 0:s.shixun_detail)n.push(null===o||void 0===o||null===(c=o.shixun_details)||void 0===c||null===(l=c[r])||void 0===l||null===(f=l.shixun_detail)||void 0===f?void 0:f[0])}p(n),u(t)}}),[null===o||void 0===o?void 0:o.shixun_details]);var h=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"name",key:"name",align:"center",render:function(e){return w.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:e&&e.length>25?e:""},e)}},{title:"\u8bc4\u6d4b\u6b21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(e,t){return w.a.createElement("span",null,t.evaluate_count?t.evaluate_count:w.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5b8c\u6210\u65f6\u95f4",key:"endTime",dataIndex:"endTime",align:"center",render:function(e,t){var n=!1;return t.finished_time&&(null===i||void 0===i?void 0:i.exercise)&&(null===i||void 0===i?void 0:i.exercise_answer_user)&&(n=-1===(null===i||void 0===i?void 0:i.exercise.time)?Q()(null===i||void 0===i?void 0:i.exercise.end_time).isBefore(t.finished_time):Q()(null===i||void 0===i?void 0:i.exercise_answer_user.start_at).add(null===i||void 0===i?void 0:i.exercise.time,"m").isBefore(t.finished_time)),w.a.createElement("span",null,t.finished_time||w.a.createElement("span",{className:"c-grey-999"},"--"),w.a.createElement("span",{className:"c-orange-ff9 "},n?"\uff08\u5df2\u8d85\u65f6\uff09":""))}},{title:"\u8017\u65f6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(e,t){return w.a.createElement("span",null,t.time_consuming||w.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67e5\u770b\u7b54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(e,t){return w.a.createElement("span",null,t.view_answer?"\u5df2\u67e5\u770b":"\u672a\u67e5\u770b")}},{title:"\u7ecf\u9a8c\u503c",dataIndex:"experience",key:"experience",align:"center",render:function(e,t){return w.a.createElement("span",null,w.a.createElement("span",{className:"c-green"},t.myself_experience),"/",t.experience)}},{title:"\u64cd\u4f5c",dataIndex:"operation",key:"operation",align:"center",render:function(e,t,n){return e?w.a.createElement(le["a"],{affix:!1,className:"mt10"},w.a.createElement(le["a"].Link,{href:"#challenge_".concat(null===o||void 0===o?void 0:o.question_id).concat(n),title:w.a.createElement("span",{style:{color:"#1890ff"}},"\u67e5\u770b")})):w.a.createElement("span",{className:"c-grey-999"},"--")}}],b={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return w.a.createElement("div",{className:"mt15 mb15"},0!==(null===i||void 0===i||null===(t=i.exercise)||void 0===t?void 0:t.student_commit_status)||0!==(null===i||void 0===i||null===(n=i.exercise)||void 0===n?void 0:n.user_exercise_status)?w.a.createElement(w.a.Fragment,null,w.a.createElement("div",null,w.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6bb5\u6210\u7ee9"),!!(null===c||void 0===c?void 0:c.length)&&w.a.createElement(ue["a"],{columns:h,dataSource:c,pagination:!1})),!!(null===d||void 0===d?void 0:d.length)&&w.a.createElement("div",null,w.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5b9e\u8bad\u8be6\u60c5"),null===d||void 0===d?void 0:d.map((function(e,t){return w.a.createElement("div",{id:"challenge_".concat(null===o||void 0===o?void 0:o.question_id).concat(t),className:"mt5"},w.a.createElement("div",null,w.a.createElement("span",{className:"font16 mr15"}," \u7b2c",e.position,"\u5173"),w.a.createElement(j["Link"],{className:"current c-black font16",to:"/tasks/".concat(e.game_identifier)},e.name)),0===(null===e||void 0===e?void 0:e.st)&&w.a.createElement("aside",{className:pe.a.shixunWrp},w.a.createElement("h2",null,"\u6700\u540e\u4e00\u6b21\u63d0\u4ea4\u7684\u4ee3\u7801",w.a.createElement("span",{className:"c-light-black"},e.path)),w.a.createElement(fe["b"],{height:300,language:"python",theme:"default",value:e.passed_code,options:b})))})))):w.a.createElement(w.a.Fragment,null,Object(re["q"])()&&w.a.createElement(ie["a"],{className:"c-grey-999 mt20 mb20",value:null===o||void 0===o?void 0:o.question_title}),null===o||void 0===o||null===(r=o.shixun)||void 0===r?void 0:r.map((function(e,t){return w.a.createElement("p",{className:"font16 c-grey-666 mb5"},w.a.createElement("span",{className:"mr20"},"\u7b2c",null===e||void 0===e?void 0:e.challenge_position,"\u5173 ",null===e||void 0===e?void 0:e.challenge_name),w.a.createElement("span",null,null===e||void 0===e?void 0:e.challenge_score,"\u5206"))}))))},me=he,be=n("LalF"),ge=function(e){var t=e.item,n=(e.answerData,Object(_["useState"])([])),r=Object(g["a"])(n,2),o=(r[0],r[1]);Object(_["useEffect"])((function(){var e,n;(null===t||void 0===t||null===(e=t.evaluate_codes)||void 0===e?void 0:e.length)>0?o(null===t||void 0===t||null===(n=t.evaluate_codes)||void 0===n?void 0:n.map((function(e,t){return{key:t+1,error_msg:(null===e||void 0===e?void 0:e.error_msg)?be["Base64"].decode(null===e||void 0===e?void 0:e.error_msg):""}}))):o([{key:"--",error_msg:"--"}])}),[null===t||void 0===t?void 0:t.evaluate_codes]);var i={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"mt15 mb15"},w.a.createElement(ie["a"],{value:null===t||void 0===t?void 0:t.description})),!!(null===t||void 0===t?void 0:t.user_answer.length)&&w.a.createElement("aside",{className:pe.a.shixunWrp},w.a.createElement("h3",null,"\u6700\u540e\u901a\u5173\u7684\u4ee3\u7801"),w.a.createElement(fe["b"],{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:(null===t||void 0===t?void 0:t.passed_code)?be["Base64"].decode(null===t||void 0===t?void 0:t.passed_code):"",options:i})))},ye=ge,ve=n("V0hb"),_e=(n("DHCt"),n("CRgH")),we=_e["a"].TextArea,xe=function(e){var t,n,r=e.item,o=e.answerData,i=e.onBlur,a=void 0===i?function(){}:i,s=Object(_["useState"])([]),c=Object(g["a"])(s,2),u=c[0],l=c[1];return Object(_["useEffect"])((function(){for(var e=[],t=0;t<(null===r||void 0===r?void 0:r.multi_count);t++)e.push(Object(m["a"])({},(null===r||void 0===r?void 0:r.user_answer[t])||{}));l(e)}),[null===r||void 0===r?void 0:r.user_answer]),w.a.createElement("div",null,null===u||void 0===u?void 0:u.map((function(e,t){var n;return w.a.createElement("div",null,w.a.createElement("span",null,"\u7b54\u6848\uff08\u586b\u7a7a",t+1,"\uff09:"),w.a.createElement("div",null,w.a.createElement(we,{rows:4,disabled:1===(null===o||void 0===o||null===(n=o.exercise)||void 0===n?void 0:n.user_exercise_status),value:null===e||void 0===e?void 0:e.answer_text,onChange:function(e){u[t].answer_text=e.target.value,l(Object(ve["a"])(u))},onBlur:function(n){return a(null===e||void 0===e?void 0:e.answer_text,t+1)},className:r.user_score&&(r.user_score===r.question_score?"c-green":"c-red")})))})),!!(null===r||void 0===r||null===(t=r.standard_answer)||void 0===t?void 0:t.length)&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===r||void 0===r||null===(n=r.standard_answer)||void 0===n?void 0:n.map((function(e,t){return w.a.createElement("div",null,w.a.createElement("span",null,"\u7b54\u6848\uff08\u586b\u7a7a",t+1,"\uff09:"),w.a.createElement("div",null,w.a.createElement(we,{rows:4,disabled:!0,value:null===e||void 0===e?void 0:e.answer_text[0]})))}))))},Ee=xe,je=v["a"].Countdown,Se=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Te=(te.a.flagActive,te.a.flagHalf,{0:"c-red-ee4",1:"c-green"}),Oe=["\u5355\u9009\u9898","\u591a\u9009\u9898","\u5224\u65ad\u9898","\u586b\u7a7a\u9898","\u7b80\u7b54\u9898","\u5b9e\u8bad\u9898","\u7f16\u7a0b\u9898"],ke=function(e){e.globalSetting,e.loading;var t,n,p,v,S,T,O,k,D,M,P,L,R,B,F,q,U,G,X,V,H,W,z,K,Y,$,Z,ee,ae,se,ue,le,fe,de,pe,he,be,ge=e.user,ve=(e.dispatch,Object(y["a"])(e,["globalSetting","loading","user","dispatch"])),_e=Object(x["m"])(),we=Object(_["useState"])({}),xe=Object(g["a"])(we,2),ke=xe[0],Ne=xe[1],Ce=Object(_["useState"])({}),Ie=Object(g["a"])(Ce,2),Ae=Ie[0],De=Ie[1],Me=Object(_["useState"])(!1),Pe=Object(g["a"])(Me,2),Le=Pe[0],Re=Pe[1],Be=Object(_["useState"])(!0),Fe=Object(g["a"])(Be,2),qe=Fe[0],Ue=Fe[1],Ge=Object(_["useState"])(!1),Xe=Object(g["a"])(Ge,2),Ve=Xe[0],He=Xe[1],We=Object(_["useState"])(),ze=Object(g["a"])(We,2),Ke=ze[0],Ye=ze[1];Object(_["useEffect"])((function(){Object(re["c"])()?Je():ge.userInfo.login&&$e()}),[_e.categoryId,ge.userInfo.login]);var $e=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["t"])(Object(m["a"])({},_e));case 2:t=e.sent,0==(null===t||void 0===t?void 0:t.status)&&(He(null===t||void 0===t?void 0:t.data.check_camera),(null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.check_camera)||Je());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Je=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n,r,o,i;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Re(!0),!Object(re["c"])()){e.next=8;break}return e.next=4,Object(oe["y"])({exerciseId:_e.categoryId,login:_e.login})["catch"]((function(){return Re(!1)}));case 4:t=e.sent,(null===(n=t)||void 0===n?void 0:n.exercise)&&(t.exercise.user_exercise_status=1),e.next=11;break;case 8:return e.next=10,Object(oe["r"])(Object(m["a"])({},_e))["catch"]((function(){return Re(!1)}));case 10:t=e.sent;case 11:Re(!1),t&&(t.exercise_types=(null===(r=t)||void 0===r?void 0:r.exercise_types)||(null===(o=t)||void 0===o||null===(i=o.exercise_scores)||void 0===i?void 0:i.exercise_types),Ne(t));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(_["useEffect"])((function(){var e,t,n;0===(null===(e=ke.exercise)||void 0===e?void 0:e.left_time)&&it(),(null===(t=ke.exercise)||void 0===t?void 0:t.left_time)&&Ye(Date.now()+1e3*(null===ke||void 0===ke||null===(n=ke.exercise)||void 0===n?void 0:n.left_time))}),[null===(t=ke.exercise)||void 0===t?void 0:t.left_time]);var Ze=function(){var e;3===(null===ke||void 0===ke||null===(e=ke.exercise)||void 0===e?void 0:e.exercise_status)?d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u622a\u6b62\u65f6\u95f4\u5df2\u5230\uff0c\u65e0\u6cd5\u6253\u56de\u8bd5\u5377",w.a.createElement("br",null),"\u8bf7\u5728\u4fee\u6539\u622a\u6b62\u65f6\u95f4\u540e\u518d\u64cd\u4f5c")}):d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u5b66\u751f\u5c06\u5f97\u5230\u4e00\u6b21\u91cd\u65b0\u7b54\u9898\u7684\u673a\u4f1a\uff0c\u73b0\u6709\u7684\u7b54\u9898\u60c5\u51b5\u5c06\u88ab\u6e05\u7a7a",w.a.createElement("br",null),"\u662f\u5426\u786e\u8ba4\u56de\u9000TA\u7684\u8bd5\u5377\u7b54\u9898"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["F"])({categoryId:_e.categoryId,user_ids:[null===ke||void 0===ke||null===(t=ke.exercise_answer_user)||void 0===t?void 0:t.user_id]});case 2:n=e.sent,n&&(f["b"].info(null===n||void 0===n?void 0:n.message),Qe());case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()})},Qe=function(){E["c"].push("/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail"))},et=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["J"])({categoryId:_e.categoryId,commit_method:2});case 2:t=e.sent,0===(null===t||void 0===t?void 0:t.status)&&(d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",content:w.a.createElement("div",{className:"tc font16"},"\u7b54\u9898\u7ed3\u675f\u4e86\uff0c\u7cfb\u7edf\u5df2\u81ea\u52a8\u63d0\u4ea4\u8bd5\u5377",w.a.createElement("br",null),"\u4e0d\u80fd\u518d\u4fee\u6539\u7b54\u9898"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Qe();case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}),f["b"].info(null===t||void 0===t?void 0:t.message)),-3===(null===t||void 0===t?void 0:t.status)&&(n=parseInt(null===t||void 0===t?void 0:t.message),ke.exercise.left_time=n,Ne(Object(m["a"])({},ke)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),tt=function(e){e.redo?d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",content:w.a.createElement("div",{className:"tc font16"},"\u60a8\u4e4b\u524d\u5df2\u7ecf\u6311\u6218\u8fc7\u8be5\u5b9e\u8bad\uff0c\u8003\u8bd5\u8fc7\u7a0b\u4e2d\u9700\u8981\u91cd\u65b0\u6311\u6218"),onOk:function(){var t=Object(b["a"])(h.a.mark((function t(){var n;return h.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(oe["G"])({id:e.myshixun_identifier});case 2:n=t.sent,n&&(Object(ne["x"])("/shixuns/".concat(e.shixun_identifier,"/challenges")),ke.exercise_questions.find((function(t){return t.question_id===e.question_id})).redo=!1,Ne(Object(m["a"])({},ke)));case 4:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()}):Object(ne["x"])("/shixuns/".concat(e.shixun_identifier,"/challenges"))},nt=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.hack_identifier){e.next=5;break}return e.next=3,Object(oe["I"])({id:t.hack_identifier});case 3:n=e.sent,0===(null===n||void 0===n?void 0:n.status)&&Object(ne["x"])("/myproblems/".concat(n.identifier,"?type=exercises"));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),rt=function(){var e=Object(b["a"])(h.a.mark((function e(t,n,r,o){var i;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return console.error("handleSave no questionId params"),e.abrupt("return");case 3:return e.next=5,Object(oe["K"])({questionId:t,exercise_choice_id:n,answer_text:r});case 5:i=e.sent,0===(null===i||void 0===i?void 0:i.status)&&o&&o();case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),ot=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n,r;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["d"])({id:_e.categoryId});case 2:if(n=e.sent,n){e.next=5;break}return e.abrupt("return");case 5:0!==n.question_undo||0!==n.oj_undo?(r="",0!==n.question_undo&&0!==n.oj_undo?r="\u6709 ".concat(n.question_undo," \u9898\u672a\u5b8c\u6210\uff0c\u5305\u542b ").concat(n.oj_undo," \u4e2a\u7f16\u7a0b\u9898"):0!==n.question_undo&&0===n.oj_undo?r="\u6709 ".concat(n.question_undo," \u9898\u672a\u5b8c\u6210"):0===n.question_undo&&0!==n.oj_undo&&(r="\u6709 ".concat(n.oj_undo," \u7f16\u7a0b\u9898\u672a\u5b8c\u6210")),d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},r,w.a.createElement("br",null),t?"\u5728".concat(Q()(n.end_time).format("YYYY-MM-DD HH:mm"),"\u4e4b\u524d\uff0c\u5141\u8bb8\u4fee\u6539\u7b54\u9898"):"\u63d0\u4ea4\u540e\u65e0\u6cd5\u518d\u4fee\u6539\u7b54\u9898\uff0c\u662f\u5426\u786e\u8ba4\u63d0\u4ea4\uff1f"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t?Qe():it();case 1:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})):d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u77e5\u9053\u5566",content:w.a.createElement("div",{className:"tc font16"},t?"\u5728".concat(Q()(n.end_time).format("YYYY-MM-DD HH:mm"),"\u4e4b\u524d\uff0c\u5141\u8bb8\u4fee\u6539\u7b54\u9898"):"\u63d0\u4ea4\u540e\u65e0\u6cd5\u518d\u4fee\u6539\u7b54\u9898\uff0c\u662f\u5426\u786e\u8ba4\u63d0\u4ea4\uff1f"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t?Qe():it();case 1:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),it=function(){var e=Object(b["a"])(h.a.mark((function e(){var t;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["J"])({categoryId:_e.categoryId,commit_method:1});case 2:t=e.sent,t&&(f["b"].success(null===t||void 0===t?void 0:t.message),Je(),He(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),at=function(e,t){rt(t,e,null,(function(){ke.question_status.find((function(e){return e.ques_id===t})).ques_status=e?1:0,ke.exercise_questions.find((function(e){return e.question_id===t})).user_answer[0]=e,Ne(Object(m["a"])({},ke))}))},st=function(e,t){rt(t,e,null,(function(){ke.question_status.find((function(e){return e.ques_id===t})).ques_status=(null===e||void 0===e?void 0:e.length)?1:0,Ne(Object(m["a"])({},ke))}))},ct=function(e,t,n){rt(n,t,e,(function(){ke.question_status.find((function(e){return e.ques_id===n})).ques_status=e?1:0,Ne(Object(m["a"])({},ke))}))},ut=function(e,t){rt(t,null,e,(function(){ke.question_status.find((function(e){return e.ques_id===t})).ques_status=e?1:0,Ne(Object(m["a"])({},ke))}))},lt=function(e,t){var n,r,o,i,a,s,c;return w.a.createElement("div",null,w.a.createElement(l["a"].Group,{disabled:1===(null===ke||void 0===ke||null===(n=ke.exercise)||void 0===n?void 0:n.user_exercise_status),value:null===e||void 0===e||null===(r=e.user_answer)||void 0===r?void 0:r[0],onChange:function(t){return at(t.target.value,null===e||void 0===e?void 0:e.question_id)},className:e.user_score&&"edu-radio-".concat(e.user_score===e.question_score?"green":"red")},null===e||void 0===e||null===(o=e.question_choices)||void 0===o?void 0:o.map((function(t,n){var r=2==e.question_type,o=r?"":"".concat(Se[n],".");return w.a.createElement("div",{className:te.a.answerWrap,key:n},w.a.createElement(l["a"],{value:null===t||void 0===t?void 0:t.choice_id},w.a.createElement("span",{className:"mr3"},o),w.a.createElement(ie["a"],{className:te.a.renderHtml,value:null===t||void 0===t?void 0:t.choice_text})))}))),Object(re["q"])()&&(null===ke||void 0===ke||null===(i=ke.exercise)||void 0===i?void 0:i.answer_open)&&(3==(null===ke||void 0===ke||null===(a=ke.exercise)||void 0===a?void 0:a.exercise_status)||1==(null===ke||void 0===ke||null===(s=ke.exercise)||void 0===s?void 0:s.user_exercise_status))&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===e||void 0===e||null===(c=e.standard_answer)||void 0===c?void 0:c.map((function(e,t){return w.a.createElement("span",null,Se[Number(e)-1])}))))},ft=function(e,t){var n,r,o,i,a;return w.a.createElement("div",null,w.a.createElement(u["a"].Group,{disabled:1===(null===ke||void 0===ke||null===(n=ke.exercise)||void 0===n?void 0:n.user_exercise_status),defaultValue:null===e||void 0===e?void 0:e.user_answer,onChange:function(t){return st(t,null===e||void 0===e?void 0:e.question_id)},className:e.user_score&&"edu-checkbox-".concat(e.user_score===e.question_score?"green":"red")},null===e||void 0===e||null===(r=e.question_choices)||void 0===r?void 0:r.map((function(e,t){var n="".concat(Se[t],".");return w.a.createElement("div",{className:te.a.answerWrap},w.a.createElement(u["a"],{value:null===e||void 0===e?void 0:e.choice_id},w.a.createElement("span",{className:"mr3"},n),w.a.createElement(ie["a"],{className:te.a.renderHtml,value:null===e||void 0===e?void 0:e.choice_text})))}))),Object(re["q"])()&&(null===ke||void 0===ke||null===(o=ke.exercise)||void 0===o?void 0:o.answer_open)&&3==(null===ke||void 0===ke||null===(i=ke.exercise)||void 0===i?void 0:i.exercise_status)&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===e||void 0===e||null===(a=e.standard_answer)||void 0===a?void 0:a.map((function(e,t){return w.a.createElement("span",null,Se[Number(e)-1])}))))},dt=function(e,t){return w.a.createElement(Ee,{item:e,answerData:ke,onBlur:function(t,n){return ct(t,n,null===e||void 0===e?void 0:e.question_id)}})},pt=function(e,t){return w.a.createElement(ce,{item:e,answerData:ke,onBlur:function(t){return ut(t,null===e||void 0===e?void 0:e.question_id)}})},ht=function(e,t){return w.a.createElement(me,{item:e,answerData:ke})},mt=function(e,t){return w.a.createElement(ye,{item:e,answerData:ke})},bt=function(e,t){var n;return w.a.createElement(w.a.Fragment,null,w.a.createElement("h1",{className:"font14 current",onClick:function(){Ae[t]=!Ae[t],De(Object(m["a"])({},Ae))}},!Ae[t]&&w.a.createElement(N,null),Ae[t]&&w.a.createElement(C["a"],null),w.a.createElement("span",{className:"ml5 c-grey-666"},e)),w.a.createElement("ul",{className:te.a.answerSheet,key:t},!Ae[t]&&(null===ke||void 0===ke||null===(n=ke.exercise_questions)||void 0===n?void 0:n.map((function(e,n){var r;if(e.question_type===t)return w.a.createElement("li",{onClick:function(){var t="Anchor_".concat(e.q_position-1),n=document.getElementById(t);n&&setTimeout((function(){return n.scrollIntoView({block:"start",behavior:"smooth"})}))},key:n,className:(null===ke||void 0===ke||null===(r=ke.question_status)||void 0===r?void 0:r.some((function(t){return t.ques_id===e.question_id&&!!t.ques_status})))&&te.a.active},e.q_position)})))))};return w.a.createElement(r["a"],{size:"large",spinning:Le},w.a.createElement("section",{className:"edu-container"},w.a.createElement("section",{className:"animated fadeIn"},w.a.createElement("aside",{className:"mt10"},w.a.createElement(c["a"],{separator:">"},w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(_e.coursesId,"/exercise")},null===(n=ge.userInfo)||void 0===n||null===(p=n.course)||void 0===p?void 0:p.course_name)),w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(_e.coursesId,"/exercise")},"\u8bd5\u5377")),w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail")},"\u8bd5\u5377\u8be6\u60c5")),w.a.createElement(c["a"].Item,null,null===(v=ge.userInfo)||void 0===v?void 0:v.real_name))),w.a.createElement("aside",{className:[te.a.title,"mt10"].join(" ")},w.a.createElement(i["a"],{style:{width:"100%"},align:"middle"},w.a.createElement(s["a"],{flex:"1"},w.a.createElement("div",{className:te.a.title},w.a.createElement(j["Link"],{to:"/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail")},w.a.createElement(I["a"],{className:"font16 c-black"})),w.a.createElement("strong",{className:"font24 ml5"},null===ke||void 0===ke||null===(S=ke.exercise)||void 0===S?void 0:S.exercise_name),(null===ke||void 0===ke||null===(T=ke.exercise)||void 0===T?void 0:T.is_random)&&w.a.createElement("span",{className:te.a.randomFlag},"\u968f\u673a"),w.a.createElement(ne["g"],{status:[ne["c"][null===ke||void 0===ke||null===(O=ke.exercise)||void 0===O?void 0:O.exercise_status]]}))),w.a.createElement(s["a"],null,Object(re["c"])()&&w.a.createElement(a["a"],{type:"primary",onClick:Ze},"\u6253\u56de\u91cd\u505a"),w.a.createElement(s["a"],null,(2==(null===ke||void 0===ke||null===(k=ke.exercise)||void 0===k?void 0:k.commit_status)||2!=(null===ke||void 0===ke||null===(D=ke.exercise)||void 0===D?void 0:D.commit_status)||0!=(null===ke||void 0===ke||null===(M=ke.exercise)||void 0===M?void 0:M.commit_status))&&Object(re["q"])()&&w.a.createElement(a["a"],{type:"primary",onClick:function(){return E["c"].push("/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/export/").concat(_e.login))}},w.a.createElement(A["a"],null),"\u5bfc\u51fa")),!(Object(re["c"])()||Object(re["q"])()&&1==(null===ke||void 0===ke||null===(P=ke.exercise)||void 0===P?void 0:P.user_exercise_status))&&!!(null===ke||void 0===ke||null===(L=ke.exercise)||void 0===L?void 0:L.left_time)&&w.a.createElement("aside",{className:te.a.countDown},"\u5269\u4f59\u65f6\u95f4:",w.a.createElement(je,{value:Ke,onFinish:et})))))),w.a.createElement(i["a"],{className:"mt10"},w.a.createElement(s["a"],{flex:qe?"316px":"16px"},w.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Ve&&w.a.createElement(J,{number:(null===ke||void 0===ke||null===(R=ke.exercise)||void 0===R?void 0:R.photo_count)-(null===ke||void 0===ke||null===(B=ke.exercise)||void 0===B?void 0:B.take_photo),time:null===(F=ke.exercise)||void 0===F?void 0:F.left_time,update:Je,supportCamera:function(e){2===e?Je():1===e&&setTimeout((function(){return ve.history.push("/")}),3e3)}}),w.a.createElement("div",{className:"relative",style:{minHeight:236}},qe&&w.a.createElement("aside",{className:"bg-white p16"},w.a.createElement(i["a"],null,w.a.createElement(s["a"],{span:8},w.a.createElement("span",{className:"font16 blod"},"\u7b54\u9898\u5361")),w.a.createElement(s["a"],{span:16},Object(re["q"])()&&w.a.createElement("div",{className:"tr"},w.a.createElement("span",{className:te.a.answerYes}),"\u5df2\u7b54",w.a.createElement("span",{className:"".concat(te.a.answerNo," ml10")}),"\u672a\u7b54"))),w.a.createElement("aside",{className:te.a.answerInfo},w.a.createElement(i["a"],null,Object(re["q"])()&&w.a.createElement(w.a.Fragment,null,w.a.createElement(s["a"],{span:12},"\u7b54\u9898\u8fdb\u5ea6"),w.a.createElement(s["a"],{span:12,className:"tr c-blue"},null===ke||void 0===ke||null===(q=ke.question_status)||void 0===q||null===(U=q.filter((function(e){return!!e.ques_status})))||void 0===U?void 0:U.length," / ",null===ke||void 0===ke||null===(G=ke.exercise_types)||void 0===G?void 0:G.q_counts),w.a.createElement(s["a"],{span:24},w.a.createElement(o["a"],{trailColor:"#c3ced2",percent:(null===ke||void 0===ke||null===(X=ke.question_status)||void 0===X||null===(V=X.filter((function(e){return!!e.ques_status})))||void 0===V?void 0:V.length)/(null===ke||void 0===ke||null===(H=ke.exercise_types)||void 0===H?void 0:H.q_counts)*100,showInfo:!1}))),w.a.createElement(s["a"],null,w.a.createElement("span",{className:"c-grey-333"},"\u5171 ",w.a.createElement("span",{className:"c-blue-4ca"},(null===ke||void 0===ke||null===(W=ke.exercise_types)||void 0===W?void 0:W.q_counts)||(null===ke||void 0===ke||null===(z=ke.exercise_scores)||void 0===z||null===(K=z.exercise_types)||void 0===K?void 0:K.q_counts))," \u9898\uff1a"),w.a.createElement("span",{className:"c-grey-333"},"\u6ee1\u5206 ",w.a.createElement("span",{className:"c-blue-4ca"},(null===ke||void 0===ke||null===(Y=ke.exercise_types)||void 0===Y?void 0:Y.q_scores)||(null===ke||void 0===ke||null===($=ke.exercise_scores)||void 0===$||null===(Z=$.exercise_types)||void 0===Z?void 0:Z.q_scores))," \u5206")))),w.a.createElement(i["a"],null,w.a.createElement(s["a"],{flex:"1"},w.a.createElement("aside",{className:te.a.cardList},(null===ke||void 0===ke||null===(ee=ke.exercise_types)||void 0===ee?void 0:ee.q_singles)>0&&bt("\u5355\u9009\u9898",0),(null===ke||void 0===ke||null===(ae=ke.exercise_types)||void 0===ae?void 0:ae.q_doubles)>0&&bt("\u591a\u9009\u9898",1),(null===ke||void 0===ke||null===(se=ke.exercise_types)||void 0===se?void 0:se.q_judges)>0&&bt("\u5224\u65ad\u9898",2),(null===ke||void 0===ke||null===(ue=ke.exercise_types)||void 0===ue?void 0:ue.q_nulls)>0&&bt("\u586b\u7a7a\u9898",3),(null===ke||void 0===ke||null===(le=ke.exercise_types)||void 0===le?void 0:le.q_mains)>0&&bt("\u7b80\u7b54\u9898",4),(null===ke||void 0===ke||null===(fe=ke.exercise_types)||void 0===fe?void 0:fe.q_shixuns)>0&&bt("\u5b9e\u8bad\u9898",5),(null===ke||void 0===ke||null===(de=ke.exercise_types)||void 0===de?void 0:de.q_pros)>0&&bt("\u7f16\u7a0b\u9898",6))))),w.a.createElement("div",{className:te.a.fold,onClick:function(){return Ue(!qe)}},qe&&w.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!qe&&w.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),w.a.createElement(s["a"],{flex:"1"},w.a.createElement("section",{className:[te.a.bg,"pt30","pl30","pr30","pb30","mb50","ml20"].join(" ")},w.a.createElement("div",null,null===ke||void 0===ke||null===(pe=ke.exercise_questions)||void 0===pe?void 0:pe.map((function(e,t){var n,r,o=5==e.question_type?e.shixun_name:e.question_title;return w.a.createElement("div",{className:te.a.questionItem,id:"Anchor_".concat(t)},w.a.createElement("div",{className:te.a.itemType},w.a.createElement(i["a"],null,w.a.createElement(s["a"],{flex:"1"},w.a.createElement("span",{className:"font16 c-blue mr5"},e.q_position,"\u3001",Oe[e.question_type]),w.a.createElement("span",{className:"c-grey-999 mr5"},"(",e.question_score,"\u5206)")),w.a.createElement(s["a"],null,e.question_type<3&&e.standard_answer_show&&w.a.createElement("span",{className:"font16 ml20"},"\u6b63\u786e\u7b54\u6848\uff1a",null===e||void 0===e?void 0:e.standard_answer_show),(Object(re["c"])()||Object(re["q"])()&&(null===ke||void 0===ke||null===(n=ke.exercise)||void 0===n?void 0:n.user_exercise_status)>0)&&w.a.createElement("span",{className:"font16 ml20"},e.user_score&&w.a.createElement("span",null,w.a.createElement("span",{className:Te[Number(null===e||void 0===e?void 0:e.answer_status)]||"c-orange-ff9"},e.user_score)," \u5206"),!e.user_score&&w.a.createElement("span",{className:"c-red"},"\u672a\u8bc4")),5==e.question_type&&w.a.createElement(a["a"],{type:"primary",className:"font16 ml20",onClick:function(){return tt(e)}},"\u8fdb\u5165\u7b54\u9898"),Object(re["q"])()&&0===(null===ke||void 0===ke||null===(r=ke.exercise)||void 0===r?void 0:r.user_exercise_status)&&6==e.question_type&&w.a.createElement(a["a"],{type:"primary",className:"font16 ml20",onClick:function(){return nt(e)}},"\u8fdb\u5165\u7b54\u9898")))),w.a.createElement("div",{className:""},w.a.createElement(ie["a"],{value:o})),0==e.question_type&<(e,t),2==e.question_type&<(e,t),1==e.question_type&&ft(e,t),3==e.question_type&&dt(e,t),4==e.question_type&&pt(e,t),5==e.question_type&&ht(e,t),6==e.question_type&&mt(e,t))})))),Object(re["q"])()&&0===(null===ke||void 0===ke||null===(he=ke.exercise)||void 0===he?void 0:he.user_exercise_status)&&w.a.createElement(i["a"],{className:"mt30 mb50"},w.a.createElement(s["a"],{flex:"1"}),w.a.createElement(s["a"],null,!!(null===ke||void 0===ke||null===(be=ke.exercise)||void 0===be?void 0:be.left_time)&&w.a.createElement("span",{className:"c-grey-999 font12 mr20"},"\u4fdd\u5b58\u6216\u8005\u79bb\u5f00\u9875\u9762\u540e\uff0c\u7cfb\u7edf\u5c06\u6301\u7eed\u8ba1\u65f6\uff0c\u5230\u8fbe\u65f6\u957f\u7cfb\u7edf\u5c06\u81ea\u52a8\u4ea4\u5377"),w.a.createElement(a["a"],{className:"".concat(te.a.submitButton," mr10"),type:"default",onClick:function(){return ot(!0)}},"\u4fdd\u5b58"),w.a.createElement(a["a"],{className:te.a.submitButton,type:"primary",onClick:function(){return ot(!1)}},"\u4ea4\u5377")))))))};t["default"]=Object(E["a"])((function(e){var t=e.loading,n=e.user,r=e.globalSetting;return{globalSetting:r,user:n,loading:t.effects}}))(ke)},Ot1p:function(e,t,n){"use strict";n("rjoL");var r=n("TMtJ"),o=n("Uu80"),i=n("GZha"),a=n("zjzt"),s=n("ZZRV"),c=n.n(s),u=n("M0ff"),l=n.n(u),f=n("BlUI"),d=(n("4X1q"),n("bwE0"),n("aPdX"),n("rnm6"),n("95/S"),n("kSUc"),n("9Bee")),p=n("1gHQ"),h=(n("dejd"),n("C+DQ"),[{title:"\u7c97\u4f53",icon:"icon-bold",actionName:"bold"},{title:"\u659c\u4f53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65e0\u5e8f\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5e8f\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884c\u5185\u4ee3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4ee3\u7801\u5757\uff08\u591a\u8bed\u8a00\u98ce\u683c\uff09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94fe\u63a5",icon:"icon-link",actionName:"link"},"|",{title:"\u884c\u5185\u516c\u5f0f",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591a\u884c\u516c\u5f0f",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6dfb\u52a0\u56fe\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683c",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884c",icon:"icon-minus",actionName:"line-break"},{title:"\u6e05\u7a7a",icon:"icon-eraser",actionName:"eraser"}]);function m(e){var t=e.onActionCallback,n=e.title,r=e.icon,o=e.actionName,i=e.className,a=void 0===i?"":i,s=e.children;function u(){t(o)}return c.a.createElement("a",{title:n,className:a,onClick:u},c.a.createElement("i",{className:"md-iconfont ".concat(r)}),s)}var b=function(e){var t=e.watch,n=e.showNullButton,r=e.onActionCallback,o=e.fullScreen,i=[].concat(h,[{title:"".concat(t?"\u5173\u95ed\u5b9e\u65f6\u9884\u89c8":"\u5f00\u542f\u5b9e\u65f6\u9884\u89c8"),icon:"".concat(t?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return c.a.createElement("ul",{className:"markdown-toolbar-container"},i.map((function(e,t){return c.a.createElement("li",{key:t},e.actionName?c.a.createElement(m,Object(p["a"])({},e,{onActionCallback:r})):c.a.createElement("span",{className:"v-line"}))})),n?c.a.createElement("li",null,c.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u589e\u52a0\u586b\u7a7a",actionName:"add-null-ch",onActionCallback:r},c.a.createElement("span",{className:"fill-tip"},"\u70b9\u51fb\u63d2\u5165\b\u586b\u7a7a\u9879"))):null,c.a.createElement("li",{className:"btn-full-screen"},c.a.createElement(m,{icon:"".concat(o?"icon-shrink":"icon-enlarge"),title:o?"\u5173\u95ed\u5168\u5c4f":"\u5f00\u542f\u5168\u5c4f",actionName:"trigger-full-screen",onActionCallback:r})))},g=n("M8RZ"),y=(n("MPZO"),n("bnk9")),v=(n("EkPb"),n("7X0+")),_=(n("DHCt"),n("CRgH")),w={labelCol:{span:4},wrapperCol:{span:20}},x=function(e){var t=e.callback,n=e.onCancel;function r(e){t(e)}return c.a.createElement(v["a"],Object(p["a"])({},w,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:r}),c.a.createElement(v["a"].Item,{label:"\u94fe\u63a5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u94fe\u63a5\u5730\u5740"}]},c.a.createElement(_["a"],null)),c.a.createElement(v["a"].Item,{label:"\u94fe\u63a5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u94fe\u63a5\u6807\u9898"}]},c.a.createElement(_["a"],null)),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))},E=n("7ahc"),j=(n("HmJG"),n("BjJ7")),S=v["a"].useForm,T={width:280,marginRight:10},O={labelCol:{span:5},wrapperCol:{span:19}},k=function(e){var t=e.callback,n=e.onCancel,r=S(),o=Object(i["a"])(r,1),a=o[0];function s(e){t(e)}function u(e){a.setFieldsValue({src:"/api/attachments/".concat(e.id)})}function l(e){var t=e.target.files[0];C(t,u)}return c.a.createElement(v["a"],Object(p["a"])({form:a},O,{className:"upload-image-panel",onFinish:s}),c.a.createElement(v["a"].Item,{label:"\u56fe\u7247\u5730\u5740",required:!0},c.a.createElement("div",{className:"flex-container"},c.a.createElement(v["a"].Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u56fe\u7247\u5730\u5740"}]},c.a.createElement(_["a"],{style:T})),c.a.createElement(N,{onFileChange:l}))),c.a.createElement(v["a"].Item,{label:"\u56fe\u7247\u63cf\u8ff0",name:"alt",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u56fe\u7247\u63cf\u8ff0"}]},c.a.createElement(_["a"],{style:{width:264}})),c.a.createElement(v["a"].Item,{style:{textAlign:"right"}},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))};function N(e){var t=e.onFileChange;return c.a.createElement("a",{className:"upload-button"},"\u672c\u5730\u4e0a\u4f20",c.a.createElement("input",{type:"file",accept:"image/*",onChange:t}))}function C(e,t){var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var r=new window.XMLHttpRequest;r.withCredentials=!0,r.addEventListener("load",(function(e){t(JSON.parse(e.target.responseText))}),!1),r.addEventListener("error",(function(e){console.error(e)}),!1),r.open("POST","".concat(j["a"],"/api/attachments.json")),r.send(n)}n("EYz/");var I,A,D=n("gwXo"),M=(n("9cas"),n("twZV")),P=M["a"].Group,L={margin:"0 8px"},R=function(e){var t=e.callback,n=e.onCancel;function r(e){t(e)}return c.a.createElement(v["a"],{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:r},c.a.createElement("div",{className:"flex-container"},c.a.createElement("span",{style:L},"\u5355\u5143\u683c\u6570\uff1a"),c.a.createElement("span",{style:L},"\u884c\u6570"),c.a.createElement(v["a"].Item,{name:"row",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u884c\u6570"}]},c.a.createElement(D["a"],null)),c.a.createElement("span",{style:L},"\u5217\u6570"),c.a.createElement(v["a"].Item,{name:"col",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5217\u6570"}]},c.a.createElement(D["a"],null))),c.a.createElement("div",{className:"flex-container",style:{marginTop:12}},c.a.createElement("span",{style:L},"\u5bf9\u9f50\u65b9\u5f0f\uff1a"),c.a.createElement(v["a"].Item,{name:"align"},c.a.createElement(P,null,c.a.createElement(M["a"],{value:"default"},c.a.createElement("i",{className:"fa fa-align-justify"})),c.a.createElement(M["a"],{value:"left"},c.a.createElement("i",{className:"fa fa-align-left"})),c.a.createElement(M["a"],{value:"center"},c.a.createElement("i",{className:"fa fa-align-center"})),c.a.createElement(M["a"],{value:"right"},c.a.createElement("i",{className:"fa fa-align-right"}))))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))},B=n("9kvl"),F="link",q="upload-image",U="code-block",G="add-table",X="------------",V={default:X,left:":".concat(X),center:":".concat(X,":"),right:"".concat(X,":")},H=n("9VGf");var W=0,z=10,K=1e4,Y="\u2581";function $(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var J=navigator.platform.toUpperCase().indexOf("MAC")>=0,Z=J?"Cmd":"Ctrl",Q=(I={},Object(a["a"])(I,Z+"-B","bold"),Object(a["a"])(I,Z+"-I","italic"),I),ee=(A={},Object(a["a"])(A,F,"\u6dfb\u52a0\u94fe\u63a5"),Object(a["a"])(A,U,"\u6dfb\u52a0\u4ee3\u7801\u5757"),Object(a["a"])(A,q,"\u6dfb\u52a0\u56fe\u7247"),Object(a["a"])(A,G,"\u6dfb\u52a0\u8868\u683c"),A);t["a"]=function(e){var t=e.defaultValue,n=void 0===t?"":t,u=e.onChange,p=e.width,h=void 0===p?"100%":p,m=e.height,y=void 0===m?400:m,v=e.miniToolbar,_=void 0!==v&&v,w=e.isFocus,j=void 0!==w&&w,S=e.watch,T=e.id,O=void 0===T?"markdown-editor-id":T,N=e.showResizeBar,I=void 0!==N&&N,A=e.noStorage,D=void 0!==A&&A,M=e.showNullButton,P=void 0!==M&&M,L=e.fullScreen,X=void 0!==L&&L,J=e.onBlur,Z=e.onCMBeforeChange,te=e.className,ne=void 0===te?"":te,re=e.placeholder,oe=void 0===re?"":re,ie=Object(s["useState"])(null),ae=Object(i["a"])(ie,2),se=ae[0],ce=ae[1],ue=Object(s["useState"])(n),le=Object(i["a"])(ue,2),fe=le[0],de=le[1],pe=Object(s["useState"])(S),he=Object(i["a"])(pe,2),me=he[0],be=he[1],ge=Object(s["useState"])(X),ye=Object(i["a"])(ge,2),ve=ye[0],_e=ye[1],we=Object(s["useState"])(""),xe=Object(i["a"])(we,2),Ee=xe[0],je=xe[1],Se=Object(s["useState"])(0),Te=Object(i["a"])(Se,2),Oe=Te[0],ke=Te[1],Ne=Object(s["useState"])(y),Ce=Object(i["a"])(Ne,2),Ie=Ce[0],Ae=Ce[1],De=Object(s["useState"])(!1),Me=Object(i["a"])(De,2),Pe=Me[0],Le=Me[1],Re=Object(s["useRef"])(),Be=Object(s["useRef"])(),Fe=Object(s["useRef"])(),qe=Object(s["useRef"])();Object(s["useEffect"])((function(){if(Re.current){var e=function(e,n){var r=n.clipboardData;if(r){var o=r.types.toString(),i=r.items;if("text/html,Files"!==o&&"Files"!==o)return!0;var a=i[1];"Files"===o&&(a=i[0]),"file"===a.kind&&a.type.match(/^image\//i)&&C(a.getAsFile(),(function(e){e.id?t.replaceSelection("![,](/api/attachments/".concat(e.id,")")):B["c"].replace("/user/login",{from:B["c"].location.pathname})}))}return!0},t=l.a.fromTextArea(Re.current,{mode:"markdown",inputStyle:"contenteditable",lineNumbers:!_,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("paste",e),ce(t),function(){t.off("paste",e)}}}),[]);var Ue=Object(s["useCallback"])((function(){if(Be.current)try{var e=Be.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,t=Be.current.getElementsByClassName("markdown-editor-body")[0];t.style.height=ve?"calc(100vh - ".concat(e,"px)"):"".concat(Ie-e,"px")}catch(n){console.log(n,"---- to set md editor body height")}}),[Ie,Be,ve]);Object(s["useEffect"])((function(){function e(){var e=new f["default"]((function(e){var t,n=Object(o["a"])(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&(Ue(),se.setSize("100%","100%"),se.refresh())}}catch(i){n.e(i)}finally{n.f()}}));return e.observe(Re.current.parentElement),e}if(se){var t=e();return function(){t.unobserve(Re.current.parentElement)}}}),[se,Ue]),Object(s["useEffect"])((function(){if(se){for(var e=[],t=function(){var t=r[n];s=Object(i["a"])(t,2);var o=s[0],c=s[1],u=Object(a["a"])({},o,(function(){Ge(c)}));e.push(u),se.addKeyMap(u)},n=0,r=Object.entries(Q);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(O);e>=Oe+K&&(!t||t!==fe)&&(window.sessionStorage.setItem(O,fe),Le(!0))}}),K),Object(s["useEffect"])((function(){be(S)}),[se,S]),Object(s["useEffect"])((function(){se&&j&&se.focus()}),[se,j]),Object(s["useEffect"])((function(){if(me&&se){var e=function(e){var t=e.target;qe.current&&(qe.current.scrollTop=qe.current.scrollHeight*t.scrollTop/t.scrollHeight)},t=se.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[se,me]),Object(s["useEffect"])((function(){if(se&&Z){var e=function(e,t){Z(e,t)};return se.on("beforeChange",e),function(){se.off("beforeChange",e)}}}),[se,Z]),Object(s["useEffect"])((function(){if(se&&J){var e=function(){J(se.getValue())};return se.on("blur",e),function(){se.off("blur",e)}}}),[se,J]),Object(s["useEffect"])((function(){if(se){var e=function(e){var t=e.getValue();clearTimeout(W),W=setTimeout((function(){de(t),ke((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),u&&u(t)}),z)};return se.on("change",e),function(){se.off("change",e)}}}),[se,u]),Object(s["useEffect"])((function(){se&&(null===n||void 0===n?(se.setValue(""),de("")):n!==se.getValue()&&(se.setValue(n),de(n)))}),[se,n]);var Ge=Object(s["useCallback"])((function(e){var t=se.getCursor(),n=se.getSelection(),r=n.split("\n");switch(e){case"bold":return se.replaceSelection("**"+n+"**"),""===n&&se.setCursor(t.line,t.ch+2),se.focus();case"italic":return se.replaceSelection("*"+n+"*"),""===n&&se.setCursor(t.line,t.ch+1),se.focus();case"code":return se.replaceSelection("`"+n+"`"),""===n&&se.setCursor(t.line,t.ch+1),se.focus();case"inline-latex":return se.replaceSelection("`$$"+n+"$$`"),""===n&&se.setCursor(t.line,t.ch+3),se.focus();case"latex":return se.replaceSelection("```latex\n"+n+"\n```"),se.setCursor(t.line+1,n.length+1),se.focus();case"line-break":return se.replaceSelection("
    \n"),se.focus();case"list-ul":return""===n?se.replaceSelection("- "+n):se.replaceSelection(r.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),se.focus();case"list-ol":return""===n?se.replaceSelection("1. "+n):se.replaceSelection(r.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),se.focus();case"add-null-ch":return""===n&&se.setCursor(t.line,t.ch+1),se.replaceSelection(Y),se.focus();case"eraser":return se.setValue(""),se.focus();case"trigger-watch":return be(!me),se.focus();case"trigger-full-screen":return _e(!ve),se.focus();case F:return void je(F);case U:return void je(U);case q:return void je(q);case G:return void je(G);default:throw new Error}}),[se,me,ve]),Xe=Object(s["useCallback"])((function(e){switch(je(""),Ee){case F:var t=e.title,n=e.link;return se.replaceSelection("[".concat(t,"](").concat(n,")")),se.focus();case U:var r=e.language,o=e.content;return se.replaceSelection(["```"+r,o,"```"].join("\n")),se.focus();case q:var i=e.src,a=e.alt;return se.replaceSelection("![ ".concat(a," ]( ").concat(i,' "').concat(a,'" )')),se.focus();case G:for(var s=e.row,c=e.col,u=e.align,l="\n",f=0;f300&&(t=300);var n=y+t+"px";Ae(n)}},r=Fe.current,o=!1,i=0;return r.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){r.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[se,Fe]),Object(s["useEffect"])((function(){Ae(y)}),[y]);var We=$(h),ze=$(Ie),Ke={width:We,height:ze},Ye=Object(s["useMemo"])((function(){if(Oe){var e=new Date(Oe),t=e.getHours(),n=e.getMinutes(),r=e.getSeconds();return t=t<10?"0"+t:t,n=n<10?"0"+n:n,r=r<10?"0"+r:r,"".concat(t,":").concat(n,":").concat(r)}return 0}),[Oe]);function $e(){window.sessionStorage.removeItem(O),Le(!1),ke(0)}function Je(){Le(!1),ke(0),se.setValue(window.sessionStorage.getItem(O))}return c.a.createElement(s["Fragment"],null,c.a.createElement("div",{className:"markdown-editor-wrapper",ref:Be},c.a.createElement("div",{className:"markdown-editor-container ".concat(ne," ").concat(me?"on-preview":""," ").concat(_?"mini":""," ").concat(ve?"full-screen":""),style:Ke},c.a.createElement(b,{watch:me,fullScreen:ve,showNullButton:P,onActionCallback:Ge}),c.a.createElement("div",{className:"markdown-editor-body"},c.a.createElement("div",{className:"codemirror-container"},c.a.createElement("textarea",{ref:Re,placeholder:oe})),me?c.a.createElement("div",{ref:qe,className:"preview-container"},c.a.createElement(d["a"],{value:fe})):null)),Pe?c.a.createElement("div",{className:"markdown-tip"},"\u60a8\u4e0a\u6b21\u6709\u5df2\u4fdd\u5b58\u7684\u6570\u636e\uff0c\u662f\u5426",c.a.createElement("a",{onClick:Je},"\u6062\u590d")," ? /",c.a.createElement("a",{onClick:$e},"\u4e0d\u6062\u590d")," \uff08\u6570\u636e\u5df2\u4e8e ",Ye," \u4fdd\u5b58\uff09"):null),I?c.a.createElement("a",{ref:Fe,className:"editor-resize"}):null,c.a.createElement(g["a"],null,ee[Ee]?c.a.createElement(r["a"],{centered:!0,title:ee[Ee],visible:!0,onCancel:He,footer:null},Ve):null))}},V5fa:function(e,t,n){e.exports={flex_box_center:"flex_box_center___1_S53",flex_space_between:"flex_space_between___1jn1m",flex_box_vertical_center:"flex_box_vertical_center___3ENQs",flex_box_center_end:"flex_box_center_end___1RjJf",flex_box_column:"flex_box_column___3-6wq",bg:"bg___3wGkV",title:"title___1QMPU",questionIcons:"questionIcons___2kqHA",green:"green___3sUty",orange:"orange___1IwUK",greenTip:"greenTip___2LD-4",redTip:"redTip___Ua25P",orangeTip:"orangeTip___1P_qu",pollDesc:"pollDesc___12pG2",answered:"answered___12rTH",unanswer:"unanswer___2WW2x",anchor:"anchor___K9-2U",answerFlag:"answerFlag___3jqRB",flagActive:"flagActive___38hkf",flagHalf:"flagHalf___1rgyT",answerStudentFlag:"answerStudentFlag___2zRLo",answerStudentActive:"answerStudentActive___2T-mu",questionItem:"questionItem___LqD7i",itemType:"itemType___1pbUF",itemFlag:"itemFlag___3xnGm",answerWrap:"answerWrap___13WPD",answerSubjective:"answerSubjective___BuIEZ",otherInput:"otherInput___3j4KI",submitButton:"submitButton___3lR03",randomFlag:"randomFlag___HVH41",answerTrue:"answerTrue___3EG1E",answerFalse:"answerFalse___zj_y6",answerHalf:"answerHalf___27vGH",renderHtml:"renderHtml___1U3SR",simpleText:"simpleText___1ljHF",answerYes:"answerYes___nDZ92",answerNo:"answerNo___1DhaR",answerInfo:"answerInfo___150u3",answerSheet:"answerSheet___1m3xL",active:"active___I4C3w",countDown:"countDown___1gxag",fold:"fold___1XoX9",cardList:"cardList___vfXeA"}},ZW9T:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("55MS"),o=n("Uu80"),i=n("GZha"),a=n("ZZRV"),s=n.n(a),c=n("BlUI");function u(e,t,n,o,i){var a=t.getWordUntilPosition(n),s={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:a.startColumn,endColumn:a.endColumn},c=o.map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Keyword,insertText:t,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:s}}));return i.map((function(e){c.push(Object(r["a"])(Object(r["a"])({},e),{},{range:s}))})),c}var l=function(e){var t={label:"ifelse",kind:e.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},n=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];e.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(r,o){var i=u(e,r,o,n,[t]);return{suggestions:i}}});var r=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];e.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(t,n){var o=[{label:"print",kind:e.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet}],i=u(e,t,n,r,o);return{suggestions:i}}});var o=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];e.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(n,r){var i=[t,{label:"main",kind:e.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {","\t$0","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:e.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet}],a=u(e,n,r,o,i);return{suggestions:a}}})};function f(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function d(){}var p=!1,h={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;if(Array.isArray(e)){for(var n=0;n0||r.target.offsetWidth>0)&&q.current.instance.layout()}}catch(i){n.e(i)}finally{n.f()}})),e.observe(F.current)),e}function W(){var e=q.current.instance;if(e){var t=e.getSelection(),n=q.current.pastePos||{},r=new b.Range(n.startLineNumber||t.endLineNumber,n.startColumn||t.endColumn,n.endLineNumber||t.endLineNumber,n.endColumn||t.endColumn);e.executeEdits("",[{range:r,text:""}])}}function z(e){(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&83==e.keyCode&&(e.preventDefault(),C())}Object(a["useEffect"])((function(){var e=q.current.instance;if(null!=y&&e&&X){var t=e.getModel();t&&y!==t.getValue()&&(p=!0,t.setValue(y),e.layout(),p=!1)}}),[y,X,q.current]),Object(a["useEffect"])((function(){F.current&&!X&&n.e(24).then(n.t.bind(null,"1lNs",7)).then((function(e){b=e,l(b),q.current.instance=b.editor.create(F.current,Object(r["a"])({value:y,language:m(_),theme:k},j),T);var t=q.current.instance;L(t,b),q.current.subscription=t.onDidChangeModelContent((function(e){p||M(t.getValue(),e)})),N&&t.onDidBlurEditorWidget((function(){N(t.getValue())})),B&&t.onDidFocusEditorText((function(){B(t.getValue())})),A&&(t.addCommand(b.KeyMod.CtrlCmd|b.KeyCode.KEY_V,(function(){return null})),t.onDidPaste((function(e){q.current.pastePos=e})),window.addEventListener("paste",W));var n=H();return V(!0),function(){var e=q.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),q.current.subscription&&q.current.subscription.dispose(),A&&window.removeEventListener("paste",W),n.unobserve(F.current)}}))}),[]),Object(a["useEffect"])((function(){var e=q.current.instance;if(e&&X)return document.addEventListener("keydown",z,!1),function(){document.removeEventListener("keydown",z)}}),[C,X]),Object(a["useEffect"])((function(){var e=q.current.instance;if(e&&X){var t=m(_);b.editor.setModelLanguage(e.getModel(),t)}}),[_,X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&b.editor.setTheme(k)}),[k,X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&e.updateOptions(j)}),[JSON.stringify(j),X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&e.layout()}),[u,g,X]);var K=f(u),Y=f(g),$=Object(r["a"])(Object(r["a"])({},x),{},{width:K,height:Y});return s.a.createElement("div",{className:"my-monaco-editor",ref:F,style:$})};function g(e){var t=e.width,u=void 0===t?"100%":t,l=e.height,d=void 0===l?"100%":l,p=e.original,h=e.modified,m=e.language,g=e.options,y=void 0===g?{}:g,v=Object(a["useRef"])(),_=Object(a["useState"])(null),w=Object(i["a"])(_,2),x=w[0],E=w[1];function j(e){var t;return v.current&&(t=new c["default"]((function(t){var n,r=Object(o["a"])(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&e.layout()}}catch(a){r.e(a)}finally{r.f()}})),t.observe(v.current)),t}Object(a["useEffect"])((function(){v.current&&n.e(24).then(n.t.bind(null,"1lNs",7)).then((function(e){b=e;var t=b.editor.createDiffEditor(v.current,Object(r["a"])({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},y));E(t);var n=j(t);return function(){t.dispose();var e=t.getModel();e&&e.dispose(),n.unobserve(v.current)}}))}),[]),Object(a["useEffect"])((function(){x&&x.setModel({original:b.editor.createModel(p,m),modified:b.editor.createModel(h,m)})}),[p,h,m,x]);var S=f(u),T=f(d),O={width:S,height:T};return s.a.createElement("div",{className:"my-diff-editor",ref:v,style:O})}},dejd:function(e,t,n){},kSUc:function(e,t,n){},o5mm:function(e,t,n){e.exports={flex_box_center:"flex_box_center___yMfGk",flex_space_between:"flex_space_between___3T4Rr",flex_box_vertical_center:"flex_box_vertical_center___2K9ch",flex_box_center_end:"flex_box_center_end___1GgKp",flex_box_column:"flex_box_column___2DSuN",shixunWrp:"shixunWrp___2_2ep"}},piNp:function(module,exports,__webpack_require__){(function(global){var require,require;(function(e){module.exports=e()})((function(){var define,module,exports;return function(){function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return require(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){var n=t[a][1][e];return o(n||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a0&&h(l).to(d),p=this._divideParts(i,s),m=p.length,b=!1,g=function(n,o){var i=this;return new a["default"]((function(a,s){var d,g,y,v;return c["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,n.isCancel()){i.next=18;break}return d=p[o-1],g={stream:n._createStream(r,d.start,d.end),size:d.end-d.start},i.next=6,c["default"].awrap(n._uploadPart(f,u,o,g));case 6:if(y=i.sent,n.isCancel()||b){i.next=15;break}if(e.doneParts.push({number:o,etag:y.res.headers.etag}),!t.progress){i.next=12;break}return i.next=12,c["default"].awrap(t.progress(l.length/m,e,y.res));case 12:a({number:o,etag:y.res.headers.etag}),i.next=16;break;case 15:a();case 16:i.next=19;break;case 18:a();case 19:i.next=30;break;case 21:i.prev=21,i.t0=i["catch"](0),v=new Error,v.name=i.t0.name,v.message=i.t0.message,v.stack=i.t0.stack,v.partNum=o,h(i.t0).to(v),s(v);case 30:case"end":return i.stop()}}),null,i,[[0,21]])}))},y=(0,o["default"])(new Array(m),(function(e,t){return t+1})),v=d.map((function(e){return e.number})),_=y.filter((function(e){return v.indexOf(e)<0})),w=5,x=t.parallel||w,j.next=17,c["default"].awrap(this._parallel(_,x,(function(e){return new a["default"]((function(t,r){g(n,e).then((function(e){e&&d.push(e),t()}))["catch"]((function(e){r(e)}))}))})));case 17:if(E=j.sent,b=!0,!this.isCancel()){j.next=22;break}throw g=null,this._makeCancelEvent();case 22:if(!(E&&E.length>0)){j.next=25;break}throw E[0].message="Failed to upload some parts with error: "+E[0].toString()+" part_num: "+E[0].partNum,E[0];case 25:return j.next=27,c["default"].awrap(this.completeMultipartUpload(f,u,d,t));case 27:return j.abrupt("return",j.sent);case 28:case"end":return j.stop()}}),null,this)},v._getFileSize=function(e){return c["default"].async((function(t){while(1)switch(t.prev=t.next){case 0:if(!l.buffer(e)){t.next=4;break}return t.abrupt("return",e.length);case 4:if(!b(e)&&!y(e)){t.next=6;break}return t.abrupt("return",e.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return t.stop()}}),null,this)};var _=e("stream"),w=_.Readable;function x(e,t){if(!(this instanceof x))return new x(e,t);w.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(x,w),x.prototype.readFileAndPush=function(e){if(this.fileBuffer){var t=!0;while(t&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:r,this.start=r,t=this.push(this.fileBuffer.slice(n,r))}}},x.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);var n=16384;e=e||n;var r=this;this.reader.onload=function(n){r.fileBuffer=t.from(new Uint8Array(n.target.result)),r.file=null,r.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},v._createStream=function(e,t,n){if(b(e)||y(e))return new x(e.slice(t,n));throw new Error("_createStream requires File/Blob.")},v._getPartSize=function(e,t){var n=1e4,r=1048576;return t?Math.max(Math.ceil(e/n),t):r},v._divideParts=function(e,t){for(var n=Math.ceil(e/t),r=[],o=0;o255)throw new Error("ID is composed of 255 bytes at most");if(""===e.prefix||void 0===e.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(e.status))throw new Error("Status must be Enabled or Disabled");if(e.transition){if(!["IA","Archive"].includes(e.transition.storageClass))throw new Error("StorageClass must be IA or Archive");x(e.transition,"Transition")}if(e.expiration)if(e.expiration.expiredObjectDeleteMarker){if(e.expiration.days||e.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else x(e.expiration,"Expiration");if(e.abortMultipartUpload&&x(e.abortMultipartUpload,"AbortMultipartUpload"),!e.expiration&&!e.abortMultipartUpload&&!e.transition&&!e.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(e.tag){if(e.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");E(e.tag)}}_.putBucketLifecycle=function(e,t,n){var r,i,a,c,l;return o["default"].async((function(f){while(1)switch(f.prev=f.next){case 0:if(s(e),u(t)){f.next=3;break}throw new Error("rules must be Array");case 3:return r=this._bucketRequestParams("PUT",e,"lifecycle",n),i=[],a={LifecycleConfiguration:{Rule:i}},t.forEach((function(e){w(e),j(e),e.id&&(e.ID=e.id,delete e.id),i.push(e)})),c=m(a,{headers:!0,firstUpperCase:!0}),r.content=c,r.mime="xml",r.successStatuses=[200],f.next=13,o["default"].awrap(this.request(r));case 13:return l=f.sent,f.abrupt("return",{res:l.res});case 15:case"end":return f.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/obj2xml"),u=c.obj2xml,l=n;l.putBucketVersioning=function(e,t){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:if(s(e),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return n=this._bucketRequestParams("PUT",e,"versioning",a),r={VersioningConfiguration:{Status:t}},n.mime="xml",n.content=u(r,{headers:!0}),c.next=9,o["default"].awrap(this.request(n));case 9:return i=c.sent,c.abrupt("return",{res:i.res,status:i.status});case 11:case"end":return c.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/obj2xml"),u=c.obj2xml,l=e("../utils/isArray"),f=l.isArray,d=n;d.putBucketWebsite=function(e){var t,n,r,i,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments[2];return o["default"].async((function(d){while(1)switch(d.prev=d.next){case 0:if(s(e),t=this._bucketRequestParams("PUT",e,"website",l),n={Suffix:c.index||"index.html"},r={IndexDocument:n},i={WebsiteConfiguration:r},c.supportSubDir&&(n.SupportSubDir=c.supportSubDir),c.type&&(n.Type=c.type),c.error&&(r.ErrorDocument={Key:c.error}),void 0===c.routingRules){d.next=12;break}if(f(c.routingRules)){d.next=11;break}throw new Error("RoutingRules must be Array");case 11:r.RoutingRules={RoutingRule:c.routingRules};case 12:return i=u(i),t.content=i,t.mime="xml",t.successStatuses=[200],d.next=18,o["default"].awrap(this.request(t));case 18:return a=d.sent,d.abrupt("return",{res:a.res});case 20:case"end":return d.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/core-js/json/stringify"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}n.encodeCallback=function(e,n){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&n.callback){var r={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};n.callback.host&&(r.callbackHost=n.callback.host),n.callback.contentType&&(r.callbackBodyType=n.callback.contentType);var i=t.from((0,a["default"])(r)).toString("base64");if(e.headers["x-oss-callback"]=i,n.callback.customValue){var s={};(0,o["default"])(n.callback.customValue).forEach((function(e){s["x:"+e]=n.callback.customValue[e]})),e.headers["x-oss-callback-var"]=t.from((0,a["default"])(s)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("humanize-ms"),s=e("url"),c=e("../utils/checkBucketName"),u=c.checkBucketName;function l(e,t){var n=s.parse(e);if(n.protocol||(n=s.parse("http"+(t?"s":"")+"://"+e)),"http:"!==n.protocol&&"https:"!==n.protocol)throw new Error("Endpoint protocol must be http or https.");return n}function f(e,t,n){var r=n?"https://":"http://",o=t?"-internal.aliyuncs.com":".aliyuncs.com",i="vpc100-oss-cn-";return e.substr(0,i.length)===i&&(o=".aliyuncs.com"),s.parse(r+e+o)}t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");e.bucket&&u(e.bucket);var t=(0,o["default"])({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=a(t.timeout)),t.endpoint)t.endpoint=l(t.endpoint,t.secure);else{if(!t.region)throw new Error("require options.endpoint or options.region");t.endpoint=f(t.region,t.internal,t.secure)}return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(e,t,n){"use strict";var r=e("merge-descriptors"),o=n;r(o,e("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("querystring"),u=e("js-base64"),l=u.Base64.encode,f=n;function d(e,t){if(!e)throw new Error(t+" is required");if("string"!==typeof e)throw new Error(t+" must be String")}f.processObjectSave=function(e,t,n,r){var i,a,u,f;return o["default"].async((function(p){while(1)switch(p.prev=p.next){case 0:return d(e,"sourceObject"),d(t,"targetObject"),d(n,"process"),t=this._objectName(t),r&&s(r),i=this._objectRequestParams("POST",e,{subres:"x-oss-process"}),a=r?",b_"+l(r):"",t=l(t),u={"x-oss-process":n+"|sys/saveas,o_"+t+a},i.content=c.stringify(u),p.next=12,o["default"].awrap(this.request(i));case 12:return f=p.sent,p.abrupt("return",{res:f.res,status:f.res.status});case 14:case"end":return p.stop()}}),null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("copy-to"),s=e("./callback"),c=e("./utils/deepCopy"),u=c.deepCopy,l=n;l.listUploads=function(e,t){var n,r,i,s;return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:return t=t||{},n={},a(t).to(n),n.subres="uploads",r=this._objectRequestParams("GET","",n),r.query=e,r.xmlResponse=!0,r.successStatuses=[200],c.next=10,o["default"].awrap(this.request(r));case 10:return i=c.sent,s=i.data.Upload||[],Array.isArray(s)||(s=[s]),s=s.map((function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}})),c.abrupt("return",{res:i.res,uploads:s,bucket:i.data.Bucket,nextKeyMarker:i.data.NextKeyMarker,nextUploadIdMarker:i.data.NextUploadIdMarker,isTruncated:"true"===i.data.IsTruncated});case 15:case"end":return c.stop()}}),null,this)},l.listParts=function(e,t,n,r){var i,s,c;return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return r=r||{},i={},a(r).to(i),i.subres={uploadId:t},s=this._objectRequestParams("GET",e,i),s.query=n,s.xmlResponse=!0,s.successStatuses=[200],u.next=10,o["default"].awrap(this.request(s));case 10:return c=u.sent,u.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return u.stop()}}),null,this)},l.abortMultipartUpload=function(e,t,n){var r,i,s;return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:return this._stop(),n=n||{},r={},a(n).to(r),r.subres={uploadId:t},i=this._objectRequestParams("DELETE",e,r),i.successStatuses=[204],c.next=9,o["default"].awrap(this.request(i));case 9:return s=c.sent,c.abrupt("return",{res:s.res});case 11:case"end":return c.stop()}}),null,this)},l.initMultipartUpload=function(e,t){var n,r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return t=t||{},n={},a(t).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(t.meta,n.headers),n.subres="uploads",r=this._objectRequestParams("POST",e,n),r.mime=t.mime,r.xmlResponse=!0,r.successStatuses=[200],s.next=12,o["default"].awrap(this.request(r));case 12:return i=s.sent,s.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return s.stop()}}),null,this)},l.uploadPart=function(e,t,n,r,i,a,s){var c;return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return c={stream:this._createStream(r,i,a),size:a-i},u.next=3,o["default"].awrap(this._uploadPart(e,t,n,c,s));case 3:return u.abrupt("return",u.sent);case 4:case"end":return u.stop()}}),null,this)},l.completeMultipartUpload=function(e,t,n,r){var i,a,c,l,f,d,p,h;return o["default"].async((function(m){while(1)switch(m.prev=m.next){case 0:for(i=n.concat().sort((function(e,t){return e.number-t.number})).filter((function(e,t,n){return!t||e.number!==n[t-1].number})),a='\n\n',c=0;c\n",a+=""+l.number+"\n",a+=""+l.etag+"\n",a+="\n";return a+="",r=r||{},f={},f=u(r),f.headers&&delete f.headers["x-oss-server-side-encryption"],f.subres={uploadId:t},d=this._objectRequestParams("POST",e,f),s.encodeCallback(d,f),d.mime="xml",d.content=a,d.headers&&d.headers["x-oss-callback"]||(d.xmlResponse=!0),d.successStatuses=[200],m.next=17,o["default"].awrap(this.request(d));case 17:return p=m.sent,h={res:p.res,bucket:d.bucket,name:e,etag:p.res.headers.etag},d.headers&&d.headers["x-oss-callback"]&&(h.data=JSON.parse(p.data.toString())),m.abrupt("return",h);case 21:case"end":return m.stop()}}),null,this)},l._uploadPart=function(e,t,n,r,i){var s,c,u;return o["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:return i=i||{},s={},a(i).to(s),s.headers={"Content-Length":r.size},s.subres={partNumber:n,uploadId:t},c=this._objectRequestParams("PUT",e,s),c.mime=s.mime,c.stream=r.stream,c.successStatuses=[200],l.next=11,o["default"].awrap(this.request(c));case 11:if(u=l.sent,u.res.headers.etag){l.next=14;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 14:return r.stream=null,c.stream=null,l.abrupt("return",{name:e,etag:u.res.headers.etag,res:u.res});case 17:case"end":return l.stop()}}),null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/helpers/typeof"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=e("../utils/checkBucketName"),f=l.checkBucketName,d=n;d.copy=function(e,t,n,r){var i,s,u;return o["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:return"object"===("undefined"===typeof n?"undefined":(0,c["default"])(n))&&(r=n),r=r||{},r.headers=r.headers||{},(0,a["default"])(r.headers).forEach((function(e){r.headers["x-oss-copy-source-"+e.toLowerCase()]=r.headers[e]})),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),t=this._getSourceName(t,n),r.versionId&&(t=t+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=t,i=this._objectRequestParams("PUT",e,r),i.xmlResponse=!0,i.successStatuses=[200,304],l.next=14,o["default"].awrap(this.request(i));case 14:return s=l.sent,u=s.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),l.abrupt("return",{data:u,res:s.res});case 18:case"end":return l.stop()}}),null,this)},d._getSourceName=function(e,t){return"string"===typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),f(t),e=encodeURI(e),e="/"+t+"/"+e,e}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c["delete"]=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectRequestParams("DELETE",e,r),t.successStatuses=[204],i.next=6,o["default"].awrap(this.request(t));case 6:return n=i.sent,i.abrupt("return",{res:n.res});case 8:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("utility"),u=e("../utils/obj2xml"),l=u.obj2xml,f=n;f.deleteMulti=function(e){var t,n,r,i,s,u,f,d,p,h,m,b,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(y){while(1)switch(y.prev=y.next){case 0:if(t=[],e&&e.length){y.next=3;break}throw new Error("names is required");case 3:for(n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),e=this._objectName(e),t=this._objectRequestParams("DELETE",e,r),t.successStatuses=[204],i.next=7,o["default"].awrap(this.request(t));case 7:return n=i.sent,i.abrupt("return",{status:n.status,res:n.res});case 9:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("fs"),u=e("is-type-of"),l=n;l.get=function(e,t){var n,r,i,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(f){while(1)switch(f.prev=f.next){case 0:return n=null,r=!1,u.writableStream(t)?n=t:u.string(t)?(n=c.createWriteStream(t),r=!0):l=t,l=l||{},l.subres=(0,a["default"])({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.process&&(l.subres["x-oss-process"]=l.process),i=void 0,f.prev=8,s=this._objectRequestParams("GET",e,l),s.writeStream=n,s.successStatuses=[200,206,304],f.next=14,o["default"].awrap(this.request(s));case 14:i=f.sent,r&&n.destroy(),f.next=25;break;case 18:if(f.prev=18,f.t0=f["catch"](8),!r){f.next=24;break}return n.destroy(),f.next=24,o["default"].awrap(this._deleteFileSafe(t));case 24:throw f.t0;case 25:return f.abrupt("return",{res:i.res,content:i.data});case 26:case"end":return f.stop()}}),null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getACL=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,r),t.successStatuses=[200],t.xmlResponse=!0,i.next=8,o["default"].awrap(this.request(t));case 8:return n=i.sent,i.abrupt("return",{acl:n.data.AccessControlList.Grant,owner:{id:n.data.Owner.ID,displayName:n.data.Owner.DisplayName},res:n.res});case 10:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=u(r),i=e("babel-runtime/regenerator"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=n,f=e("../utils/isObject"),d=f.isObject,p=e("../utils/isArray"),h=p.isArray;function m(){var e,t,n,r,o,i,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:if(!s.versionIdMarker||void 0!==s.keyMarker){l.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return u.subres=(0,c["default"])({versions:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),e=this._objectRequestParams("GET","",u),e.xmlResponse=!0,e.successStatuses=[200],e.query=g(s),l.next=10,a["default"].awrap(this.request(e));case 10:return t=l.sent,n=t.data.Version||[],r=t.data.DeleteMarker||[],o=this,n&&(Array.isArray(n)||(n=[n]),n=n.map((function(e){return{name:e.Key,url:o._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),r&&(h(r)||(r=[r]),r=r.map((function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),i=t.data.CommonPrefixes||null,i&&(h(i)||(i=[i]),i=i.map((function(e){return e.Prefix}))),l.abrupt("return",{res:t.res,objects:n,deleteMarker:r,prefixes:i,nextMarker:t.data.NextMarker||null,NextVersionIdMarker:t.data.NextVersionIdMarker||null,isTruncated:"true"===t.data.IsTruncated});case 19:case"end":return l.stop()}}),null,this)}function b(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return d(e)&&(0,o["default"])(e).forEach((function(n){t[b(n)]=e[n]})),t}l.getBucketVersions=m,l.listObjectVersions=m},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getObjectMeta=function(e,t){var n,r;return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return t=t||{},e=this._objectName(e),t.subres=(0,a["default"])({objectMeta:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),n=this._objectRequestParams("HEAD",e,t),n.successStatuses=[200],i.next=8,o["default"].awrap(this.request(n));case 8:return r=i.sent,i.abrupt("return",{status:r.status,res:r.res});case 10:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n,u=e("../utils/isObject"),l=u.isObject;c.getObjectTagging=function(e){var t,n,r,i,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return c.subres=(0,a["default"])({tagging:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,c),t.successStatuses=[200],u.next=7,o["default"].awrap(this.request(t));case 7:return n=u.sent,u.next=10,o["default"].awrap(this.parseXML(n.data));case 10:return r=u.sent,i=r.TagSet.Tag,i=i&&l(i)?[i]:i||[],s={},i.forEach((function(e){s[e.Key]=e.Value})),u.abrupt("return",{status:n.status,res:n.res,tag:s});case 16:case"end":return u.stop()}}),null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getSymlink=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return i.subres=(0,a["default"])({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,i),t.successStatuses=[200],s.next=7,o["default"].awrap(this.request(t));case 7:return n=s.sent,r=n.res.headers["x-oss-symlink-target"],s.abrupt("return",{targetName:decodeURIComponent(r),res:n.res});case 10:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=n;l.head=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return i.subres=(0,c["default"])({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),t=this._objectRequestParams("HEAD",e,i),t.successStatuses=[200,304],s.next=6,o["default"].awrap(this.request(t));case 6:return n=s.sent,r={meta:null,res:n.res,status:n.status},200===n.status&&(0,a["default"])(n.headers).forEach((function(e){0===e.indexOf("x-oss-meta-")&&(r.meta||(r.meta={}),r.meta[e.substring(11)]=n.headers[e])})),s.abrupt("return",r);case 10:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.putACL=function(e,t,n){var r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return n=n||{},n.subres=(0,a["default"])({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=t,e=this._objectName(e),r=this._objectRequestParams("PUT",e,n),r.successStatuses=[200],s.next=10,o["default"].awrap(this.request(r));case 10:return i=s.sent,s.abrupt("return",{res:i.res});case 12:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=e("../utils/obj2xml"),f=l.obj2xml,d=e("../utils/checkObjectTag"),p=d.checkObjectTag,h=n;h.putObjectTagging=function(e,t){var n,r,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return p(t),s.subres=(0,c["default"])({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),e=this._objectName(e),n=this._objectRequestParams("PUT",e,s),n.successStatuses=[200],t=(0,a["default"])(t).map((function(e){return{Key:e,Value:t[e]}})),r={Tagging:{TagSet:{Tag:t}}},n.mime="xml",n.content=f(r),u.next=12,o["default"].awrap(this.request(n));case 12:return i=u.sent,u.abrupt("return",{res:i.res,status:i.status});case 14:case"end":return u.stop()}}),null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.putSymlink=function(e,t,n){var r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return n=n||{},n.headers=n.headers||{},t=this._escape(this._objectName(t)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=t,n.subres=(0,a["default"])({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),e=this._objectName(e),r=this._objectRequestParams("PUT",e,n),r.successStatuses=[200],s.next=13,o["default"].awrap(this.request(r));case 13:return i=s.sent,s.abrupt("return",{res:i.res});case 15:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/promise"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c._parallelNode=function(e,t,n,r){var i,s,c,u,l,f,d,p;return o["default"].async((function(h){while(1)switch(h.prev=h.next){case 0:i=this,s=[],c=[],u=e.length/t,l=e.length%t,f=0===l?u:(e.length-l)/t+1,d=1,p=0;case 8:if(!(p0)return s=!0,void(c<=0&&o(i));c+=1,p(e.value,l(d))}u=!1}}))},c.cancel=function(e){this.options.cancelFlag=!0,e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},c.isCancel=function(){return this.options.cancelFlag},c.resetCancelFlag=function(){this.options.cancelFlag=!1},c._stop=function(){this.options.cancelFlag=!0},c._makeCancelEvent=function(){var e={status:0,name:"cancel"};return e}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/json/stringify"),o=s(r),i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./../../shims/crypto/crypto.js"),u=e("is-type-of");n.buildCanonicalizedResource=function(e,t){var n=""+e,r="?";if(u.string(t)&&""!==t.trim())n+=r+t;else if(u.array(t))t.sort(),n+=r+t.join("&");else if(t){var o=function(e,t){return e[0]>t[0]?1:e[0]1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],i=arguments[3],s={},c=n.subResource,u=void 0===c?{}:c;if(n.process){var l="x-oss-process";u[l]=n.process}if(n.trafficLimit){var f="x-oss-traffic-limit";u[f]=n.trafficLimit}if(n.response&&(0,a["default"])(n.response).forEach((function(e){var t="response-"+e.toLowerCase();u[t]=n.response[e]})),(0,a["default"])(n).forEach((function(e){var t=e.toLowerCase(),r=n[e];0===t.indexOf("x-oss-")?s[t]=r:(0===t.indexOf("content-md5")||0===t.indexOf("content-type"))&&(s[e]=r)})),Object.prototype.hasOwnProperty.call(n,"security-token")&&(u["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var d={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(d.callbackHost=n.callback.host),n.callback.contentType&&(d.callbackBodyType=n.callback.contentType),u.callback=t.from((0,o["default"])(d)).toString("base64"),n.callback.customValue){var p={};(0,a["default"])(n.callback.customValue).forEach((function(e){p["x:"+e]=n.callback.customValue[e]})),u["callback-var"]=t.from((0,o["default"])(p)).toString("base64")}}var h=this.buildCanonicalString(n.method,r,{headers:s,parameters:u},i.toString());return{Signature:this.computeSignature(e,h),subResource:u}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.checkBucketName=function(e,t){var n=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!n.test(e))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/entries"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var a=e("./checkValid"),s=a.checkValid,c=e("./isObject"),u=c.isObject,l=[{validator:function(e){if("string"!==typeof e)throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],f={key:[].concat(l,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(l,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function d(e){if(!u(e))throw new Error("tag must be Object");var t=(0,o["default"])(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];t.forEach((function(e){e.forEach((function(e,t){s(e,f[n[t]])}))}))}n.checkObjectTag=d},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(e,t,n){"use strict";function r(e,t){t.forEach((function(t){if(t.validator)t.validator(e);else if(t.pattern&&!t.pattern.test(e))throw new Error(t.msg)}))}Object.defineProperty(n,"__esModule",{value:!0}),n.checkValid=void 0,n.checkValid=r},{}],38:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/object/assign"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var a=e("./../../../shims/crypto/crypto.js"),s=e("debug")("ali-oss"),c=e("mime"),u=e("dateformat"),l=e("copy-to"),f=e("path");function d(e,t){return e[t]||e[t.toLowerCase()]}function p(e,t){delete e[t],delete e[t.toLowerCase()]}function h(e){var n=new Date;this.options.amendTimeSkewed&&(n=+new Date+this.options.amendTimeSkewed);var r={"x-oss-date":u(n,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(r["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,o["default"])(r,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(r["x-oss-security-token"]=this.options.stsToken),l(e.headers).to(r),d(r,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?r["Content-Type"]=e.mime:r["Content-Type"]=c.getType(e.mime||f.extname(e.object||""))),d(r,"Content-Type")||p(r,"Content-Type"),e.content&&(r["Content-Md5"]=a.createHash("md5").update(t.from(e.content,"utf8")).digest("base64"),r["Content-Length"]||(r["Content-Length"]=e.content.length));var i=this._getResource(e);r.authorization=this.authorization(e.method,i,e.subres,r);var h=this._getReqUrl(e);s("request %s %s, with headers %j, !!stream: %s",e.method,h,r,!!e.stream);var m=e.timeout||this.options.timeout,b={method:e.method,content:e.content,stream:e.stream,headers:r,timeout:m,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(b.agent=this.agent),this.httpsAgent&&(b.httpsAgent=this.httpsAgent),{url:h,params:b}}n.createRequest=h}).call(this,e("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/helpers/typeof"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopy=void 0,n.deepCopy=function(e){if(null===e||"object"!==("undefined"===typeof e?"undefined":(0,a["default"])(e)))return e;var t=Array.isArray(e)?[]:{};return(0,o["default"])(e).forEach((function(r){t[r]=n.deepCopy(e[r])})),t}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/helpers/typeof"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(null===e||"object"!==("undefined"===typeof e?"undefined":(0,a["default"])(e)))return e;var n=void 0;if(Array.isArray(e)){n=[];for(var r=0;r"+e[t]+"":"object"===s(e[t])?n+="<"+t+">"+c(e[t])+"":"array"===s(e[t])?n+=e[t].map((function(e){return"<"+t+">"+c(e)+""})).join(""):n+="<"+t+">"+e[t].toString()+""})):n+=e.toString(),n}n.obj2xml=c},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(e,t,n){function r(){}t.exports=r,t.exports.HttpsAgent=r},{}],49:[function(e,t,n){t.exports=e("./register")().Promise},{"./register":51}],50:[function(e,t,n){"use strict";var r="@@any-promise/REGISTRATION",o=null;t.exports=function(e,t){return function(n,i){n=n||null,i=i||{};var a=!1!==i.global;if(null===o&&a&&(o=e[r]||null),null!==o&&null!==n&&o.implementation!==n)throw new Error('any-promise already defined as "'+o.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return null===o&&(o=null!==n&&"undefined"!==typeof i.Promise?{Promise:i.Promise,implementation:n}:t(n),a&&(e[r]=o)),o}}},{}],51:[function(e,t,n){"use strict";function r(){if("undefined"===typeof window.Promise)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}t.exports=e("./loader")(window,r)},{"./loader":50}],52:[function(e,t,n){t.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(e,t,n){t.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(e,t,n){t.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(e,t,n){t.exports={default:e("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(e,t,n){t.exports={default:e("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("../core-js/symbol/iterator"),o=c(r),i=e("../core-js/symbol"),a=c(i),s="function"===typeof a["default"]&&"symbol"===typeof o["default"]?function(e){return typeof e}:function(e){return e&&"function"===typeof a["default"]&&e.constructor===a["default"]&&e!==a["default"].prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}n["default"]="function"===typeof a["default"]&&"symbol"===s(o["default"])?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a["default"]&&e.constructor===a["default"]&&e!==a["default"].prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(e,t,n){t.exports=e("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(e,t,n){"use strict";n.byteLength=l,n.toByteArray=d,n.fromByteArray=m;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=u(e),a=r[0],s=r[1],c=new i(f(e,a,s)),l=0,d=s>0?a-4:a;for(n=0;n>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,n){for(var r,o=[],i=t;ic?c:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],70:[function(e,t,n){!function(e,n,r){"undefined"!=typeof t&&t.exports?t.exports=r():"function"==typeof define&&define.amd?define(n,r):e[n]=r()}(this,"bowser",(function(){var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function r(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var o,a=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(t),c=!s&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),l=!u&&/nexus\s*[0-9]+/i.test(t),f=/CrOS/.test(t),d=/silk/i.test(t),p=/sailfish/i.test(t),h=/tizen/i.test(t),m=/(web|hpw)(o|0)s/i.test(t),b=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!b&&/windows/i.test(t)),y=!a&&!d&&/macintosh/i.test(t),v=!c&&!p&&!h&&!m&&/linux/i.test(t),_=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=n(/version\/(\d+(\.\d+)?)/i),x=/tablet/i.test(t)&&!/tablet pc/i.test(t),E=!x&&/[^-]mobi/i.test(t),j=/xbox/i.test(t);function S(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}/opera/i.test(t)?o={name:"Opera",opera:e,version:w||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?o={name:"Opera",opera:e,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?o={name:"Samsung Internet for Android",samsungBrowser:e,version:w||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?o={name:"NAVER Whale browser",whale:e,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?o={name:"MZ Browser",mzbrowser:e,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?o={name:"Opera Coast",coast:e,version:w||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?o={name:"Focus",focus:e,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?o={name:"Yandex Browser",yandexbrowser:e,version:w||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?o={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?o={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?o={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?o={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?o={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?o={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:b?(o={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},_?(o.msedge=e,o.version=_):(o.msie=e,o.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?o={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:f?o={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?o={name:"Microsoft Edge",msedge:e,version:_}:/vivaldi/i.test(t)?o={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||w}:p?o={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?o={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(o={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(o.firefoxos=e,o.osname="Firefox OS")):d?o={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?o={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?o={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?o={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:w||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(o={name:"WebOS",osname:"WebOS",webos:e,version:w||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(o.touchpad=e)):/bada/i.test(t)?o={name:"Bada",osname:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:h?o={name:"Tizen",osname:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?o={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?o={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?o={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:c?o={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(o={name:"Safari",safari:e},w&&(o.version=w)):a?(o={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},w&&(o.version=w)):o=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||w}:{name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!o.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(o.name=o.name||"Blink",o.blink=e):(o.name=o.name||"Webkit",o.webkit=e),!o.version&&w&&(o.version=w)):!o.opera&&/gecko\//i.test(t)&&(o.name=o.name||"Gecko",o.gecko=e,o.version=o.version||n(/gecko\/(\d+(\.\d+)?)/i)),o.windowsphone||!c&&!o.silk?!o.windowsphone&&a?(o[a]=e,o.ios=e,o.osname="iOS"):y?(o.mac=e,o.osname="macOS"):j?(o.xbox=e,o.osname="Xbox"):g?(o.windows=e,o.osname="Windows"):v&&(o.linux=e,o.osname="Linux"):(o.android=e,o.osname="Android");var T="";o.windows?T=S(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):o.windowsphone?T=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):o.mac?(T=n(/Mac OS X (\d+([_\.\s]\d+)*)/i),T=T.replace(/[_\s]/g,".")):a?(T=n(/os (\d+([_\s]\d+)*) like mac os x/i),T=T.replace(/[_\s]/g,".")):c?T=n(/android[ \/-](\d+(\.\d+)*)/i):o.webos?T=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):o.blackberry?T=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):o.bada?T=n(/bada\/(\d+(\.\d+)*)/i):o.tizen&&(T=n(/tizen[\/\s](\d+(\.\d+)*)/i)),T&&(o.osversion=T);var O=!o.windows&&T.split(".")[0];return x||l||"ipad"==a||c&&(3==O||O>=4&&!E)||o.silk?o.tablet=e:(E||"iphone"==a||"ipod"==a||c||u||o.blackberry||o.webos||o.bada)&&(o.mobile=e),o.msedge||o.msie&&o.version>=10||o.yandexbrowser&&o.version>=15||o.vivaldi&&o.version>=1||o.chrome&&o.version>=20||o.samsungBrowser&&o.version>=4||o.whale&&1===i([o.version,"1.0"])||o.mzbrowser&&1===i([o.version,"6.0"])||o.focus&&1===i([o.version,"1.0"])||o.firefox&&o.version>=20||o.safari&&o.version>=6||o.opera&&o.version>=10||o.ios&&o.osversion&&o.osversion.split(".")[0]>=6||o.blackberry&&o.version>=10.1||o.chromium&&o.version>=20?o.a=e:o.msie&&o.version<10||o.chrome&&o.version<20||o.firefox&&o.version<20||o.safari&&o.version<6||o.opera&&o.version<10||o.ios&&o.osversion&&o.osversion.split(".")[0]<6||o.chromium&&o.version<20?o.c=e:o.x=e,o}var n=t("undefined"!==typeof navigator&&navigator.userAgent||"");function r(e){return e.split(".").length}function o(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n=0){if(n[0][t]>n[1][t])return 1;if(n[0][t]!==n[1][t])return-1;if(0===t)return 0}}function a(e,r,o){var a=n;"string"===typeof r&&(o=r,r=void 0),void 0===r&&(r=!1),o&&(a=t(o));var s=""+a.version;for(var c in e)if(e.hasOwnProperty(c)&&a[c]){if("string"!==typeof e[c])throw new Error("Browser version in the minVersion map should be a string: "+c+": "+String(e));return i([s,e[c]])<0}return r}function s(e,t,n){return!a(e,t,n)}return n.test=function(e){for(var t=0;t=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var o=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,o),o-=this.charReceived),t+=e.toString(this.encoding,0,o);o=t.length-1,r=t.charCodeAt(o);if(r>=55296&&r<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,o)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t}},{buffer:73}],73:[function(e,t,n){(function(t,r){"use strict";var o=e("base64-js"),i=e("ieee754"),a=e("isarray");function s(){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 c(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(c()=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),r.alloc(+e)}function _(e,t){if(r.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 o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(o)return $(e).length;t=(""+t).toLowerCase(),o=!0}}function w(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 R(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,o,i){if(0===e.length)return-1;if("string"===typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=r.from(t,o)),r.isBuffer(t))return 0===t.length?-1:j(e,t,n,o,i);if("number"===typeof t)return t&=255,r.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):j(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function j(e,t,n,r,o){var i,a=1,s=e.length,c=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,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var f=!0,d=0;do&&(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;a239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:i=e[o+1],128===(192&i)&&(c=(31&u)<<6|63&i,c>127&&(l=c));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return M(r)}n.Buffer=r,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),n.kMaxLength=c(),r.poolSize=8192,r._augment=function(e){return e.__proto__=r.prototype,e},r.from=function(e,t,n){return l(null,e,t,n)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(e,t,n){return d(null,e,t,n)},r.allocUnsafe=function(e){return p(null,e)},r.allocUnsafeSlow=function(e){return p(null,e)},r.isBuffer=function(e){return!(null==e||!e._isBuffer)},r.compare=function(e,t){if(!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},r.prototype.compare=function(e,t,n,o,i){if(!r.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===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,s=n-t,c=Math.min(a,s),u=this.slice(o,i),l=e.slice(t,n),f=0;fo)&&(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 S(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return N(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function M(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,n,o,i,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function G(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function X(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 V(e,t,n,r,o){return o||X(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,o){return o||X(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}r.prototype.slice=function(e,t){var n,o=this.length;if(e=~~e,t=void 0===t?o:~~t,e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),t0&&(o*=256))r+=this[e+--t]*o;return r},r.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],o=1,i=0;while(++i=o&&(r-=Math.pow(2,8*t)),r},r.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(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},r.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;q(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+i]=e/a&255;return t+n},r.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,255,0),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},r.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},r.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):G(this,e,t,!0),t+4},r.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},r.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);q(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;this[t]=255&e;while(++i>0)-s&255;return t+n},r.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);q(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},r.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,127,-128),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},r.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},r.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):G(this,e,t,!0),t+4},r.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},r.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},r.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},r.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},r.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},r.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&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 J(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r)}return i}function Q(e){return o.toByteArray(z(e))}function ee(e,t,n,r){for(var o=0;o=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(e,t,n){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],75:[function(e,t,n){t.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(e,t,n){"use strict";var r=Array.prototype.slice;function o(e,t){if(!(this instanceof o))return new o(e,t);this.src=e,this._withAccess=t}function i(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}t.exports=o,o.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},o.prototype.pick=function(e){return Array.isArray(e)||(e=r.call(arguments)),e.length&&(this.keys=e),this},o.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var n=0;nl)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(e,t,n){var r=e("./_cof"),o=e("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":98,"./_wks":166}],98:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],99:[function(e,t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},{}],100:[function(e,t,n){"use strict";var r=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},{"./_object-dp":132,"./_property-desc":146}],101:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":92}],102:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],103:[function(e,t,n){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":108}],104:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,i=r(o)&&r(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":110,"./_is-object":119}],105:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n){var a,s=n(e),c=i.f,u=0;while(s.length>u)c.call(e,a=s[u++])&&t.push(a)}return t}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_ctx"),a=e("./_hide"),s=e("./_has"),c="prototype",u=function e(t,n,u){var l,f,d,p=t&e.F,h=t&e.G,m=t&e.S,b=t&e.P,g=t&e.B,y=t&e.W,v=h?o:o[n]||(o[n]={}),_=v[c],w=h?r:m?r[n]:(r[n]||{})[c];for(l in h&&(u=n),u)f=!p&&w&&void 0!==w[l],f&&s(v,l)||(d=f?w[l]:u[l],v[l]=h&&"function"!=typeof w[l]?u[l]:g&&f?i(d,r):y&&w[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(d):b&&"function"==typeof d?i(Function.call,d):d,b&&((v.virtual||(v.virtual={}))[l]=d,t&e.R&&_&&!_[l]&&a(_,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],109:[function(e,t,n){var r=e("./_ctx"),o=e("./_iter-call"),i=e("./_is-array-iter"),a=e("./_an-object"),s=e("./_to-length"),c=e("./core.get-iterator-method"),u={},l={};n=t.exports=function(e,t,n,f,d){var p,h,m,b,g=d?function(){return e}:c(e),y=r(n,f,t?2:1),v=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(p=s(e.length);p>v;v++)if(b=t?y(a(h=e[v])[0],h[1]):y(e[v]),b===u||b===l)return b}else for(m=g.call(e);!(h=m.next()).done;)if(b=o(m,y,h.value,t),b===u||b===l)return b};n.BREAK=u,n.RETURN=l},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],111:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],112:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":110}],114:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],116:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":98}],117:[function(e,t,n){var r=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},{"./_iterators":125,"./_wks":166}],118:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":98}],119:[function(e,t,n){t.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},{}],120:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw void 0!==i&&r(i.call(e)),a}}},{"./_an-object":95}],121:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),a={};e("./_hide")(a,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(e,t,n){"use strict";var r=e("./_library"),o=e("./_export"),i=e("./_redefine"),a=e("./_hide"),s=e("./_iterators"),c=e("./_iter-create"),u=e("./_set-to-string-tag"),l=e("./_object-gpo"),f=e("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",b=function(){return this};t.exports=function(e,t,n,g,y,v,_){c(n,t,g);var w,x,E,j=function(e){if(!d&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",T=y==m,O=!1,k=e.prototype,N=k[f]||k[p]||y&&k[y],C=N||j(y),I=y?T?j("entries"):C:void 0,A="Array"==t&&k.entries||N;if(A&&(E=l(A.call(new e)),E!==Object.prototype&&E.next&&(u(E,S,!0),r||"function"==typeof E[f]||a(E,f,b))),T&&N&&N.name!==m&&(O=!0,C=function(){return N.call(this)}),r&&!_||!d&&!O&&k[f]||a(k,f,C),s[t]=C,s[S]=b,y)if(w={values:T?C:j(m),keys:v?C:j(h),entries:I},_)for(x in w)x in k||i(k,x,w[x]);else o(o.P+o.F*(d||O),t,w);return w}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(e,t,n){var r=e("./_wks")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(a){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(a){}return n}},{"./_wks":166}],124:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],125:[function(e,t,n){t.exports={}},{}],126:[function(e,t,n){t.exports=!0},{}],127:[function(e,t,n){var r=e("./_uid")("meta"),o=e("./_is-object"),i=e("./_has"),a=e("./_object-dp").f,s=0,c=Object.isExtensible||function(){return!0},u=!e("./_fails")((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},p=function(e){return u&&h.NEED&&c(e)&&!i(e,r)&&l(e),e},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(e,t,n){var r=e("./_global"),o=e("./_task").set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==e("./_cof")(a);t.exports=function(){var e,t,n,u=function(){var r,o;c&&(r=a.domain)&&r.exit();while(e){o=e.fn,e=e.next;try{o()}catch(i){throw e?n():t=void 0,i}}t=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(u)}}else n=function(){o.call(r,u)};else{var f=!0,d=document.createTextNode("");new i(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(e,t,n){"use strict";var r=e("./_a-function");function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}t.exports.f=function(e){return new o(e)}},{"./_a-function":92}],130:[function(e,t,n){"use strict";var r=e("./_descriptors"),o=e("./_object-keys"),i=e("./_object-gops"),a=e("./_object-pie"),s=e("./_to-object"),c=e("./_iobject"),u=Object.assign;t.exports=!u||e("./_fails")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,l=1,f=i.f,d=a.f;while(u>l){var p,h=c(arguments[l++]),m=f?o(h).concat(f(h)):o(h),b=m.length,g=0;while(b>g)p=m[g++],r&&!d.call(h,p)||(n[p]=h[p])}return n}:u},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(e,t,n){var r=e("./_an-object"),o=e("./_object-dps"),i=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,n=e("./_dom-create")("iframe"),r=i.length,o="<",a=">";n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;while(r--)delete u[c][i[r]];return u()};t.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(e,t,n){var r=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),a=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(e,t,n){var r=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);var n,a=i(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(e,t,n){var r=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),a=e("./_to-primitive"),s=e("./_has"),c=e("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?u:function(e,t){if(e=i(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(t){return a.slice()}};t.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],138:[function(e,t,n){var r=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(e,t,n){var r=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),a=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],142:[function(e,t,n){var r=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(e,t,n){var r=e("./_descriptors"),o=e("./_object-keys"),i=e("./_to-iobject"),a=e("./_object-pie").f;t.exports=function(e){return function(t){var n,s=i(t),c=o(s),u=c.length,l=0,f=[];while(u>l)n=c[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},{}],145:[function(e,t,n){var r=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e),a=n.resolve;return a(t),n.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],147:[function(e,t,n){var r=e("./_hide");t.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},{"./_hide":112}],148:[function(e,t,n){t.exports=e("./_hide")},{"./_hide":112}],149:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_core"),i=e("./_object-dp"),a=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(e,t,n){var r=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(e,t,n){var r=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return r[e]||(r[e]=o(e))}},{"./_shared":152,"./_uid":162}],152:[function(e,t,n){var r=e("./_core"),o=e("./_global"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(e,t,n){var r=e("./_an-object"),o=e("./_a-function"),i=e("./_wks")("species");t.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(e,t,n){var r=e("./_to-integer"),o=e("./_defined");t.exports=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(e,t,n){var r,o,i,a=e("./_ctx"),s=e("./_invoke"),c=e("./_html"),u=e("./_dom-create"),l=e("./_global"),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,m=l.Dispatch,b=0,g={},y="onreadystatechange",v=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},_=function(e){v.call(e.data)};d&&p||(d=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return g[++b]=function(){s("function"==typeof e?e:Function(e),t)},r(b),b},p=function(e){delete g[e]},"process"==e("./_cof")(f)?r=function(e){f.nextTick(a(v,e,1))}:m&&m.now?r=function(e){m.now(a(v,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r=y in u("script")?function(e){c.appendChild(u("script"))[y]=function(){c.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),t.exports={set:d,clear:p}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(e,t,n){var r=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},{"./_to-integer":157}],157:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?o:r)(e)}},{}],158:[function(e,t,n){var r=e("./_iobject"),o=e("./_defined");t.exports=function(e){return r(o(e))}},{"./_defined":102,"./_iobject":116}],159:[function(e,t,n){var r=e("./_to-integer"),o=Math.min;t.exports=function(e){return e>0?o(r(e),9007199254740991):0}},{"./_to-integer":157}],160:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":102}],161:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+o).toString(36))}},{}],163:[function(e,t,n){var r=e("./_global"),o=r.navigator;t.exports=o&&o.userAgent||""},{"./_global":110}],164:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_library"),a=e("./_wks-ext"),s=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(e,t,n){n.f=e("./_wks")},{"./_wks":166}],166:[function(e,t,n){var r=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,a="function"==typeof i,s=t.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=r},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(e,t,n){var r=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(e,t,n){"use strict";var r=e("./_ctx"),o=e("./_export"),i=e("./_to-object"),a=e("./_iter-call"),s=e("./_is-array-iter"),c=e("./_to-length"),u=e("./_create-property"),l=e("./core.get-iterator-method");o(o.S+o.F*!e("./_iter-detect")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,b=void 0!==m,g=0,y=l(d);if(b&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(t=c(d.length),n=new p(t);t>g;g++)u(n,g,b?m(d[g],g):d[g]);else for(f=y.call(d),n=new p;!(o=f.next()).done;g++)u(n,g,b?a(f,m,[o.value,g],!0):o.value);return n.length=g,n}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),o=e("./_iter-step"),i=e("./_iterators"),a=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(e,t,n){"use strict";var r=e("./_is-object"),o=e("./_object-gpo"),i=e("./_wks")("hasInstance"),a=Function.prototype;i in a||e("./_object-dp").f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=o(e))if(this.prototype===e)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(e,t,n){var r=e("./_export");r(r.S+r.F,"Object",{assign:e("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(e,t,n){var r=e("./_export");r(r.S,"Object",{create:e("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(e,t,n){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(e,t,n){e("./_object-sap")("getOwnPropertyNames",(function(){return e("./_object-gopn-ext").f}))},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return o(r(e))}}))},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(e,t,n){arguments[4][71][0].apply(n,arguments)},{dup:71}],178:[function(e,t,n){"use strict";var r,o,i,a,s=e("./_library"),c=e("./_global"),u=e("./_ctx"),l=e("./_classof"),f=e("./_export"),d=e("./_is-object"),p=e("./_a-function"),h=e("./_an-instance"),m=e("./_for-of"),b=e("./_species-constructor"),g=e("./_task").set,y=e("./_microtask")(),v=e("./_new-promise-capability"),_=e("./_perform"),w=e("./_user-agent"),x=e("./_promise-resolve"),E="Promise",j=c.TypeError,S=c.process,T=S&&S.versions,O=T&&T.v8||"",k=c[E],N="process"==l(S),C=function(){},I=o=v.f,A=!!function(){try{var t=k.resolve(1),n=(t.constructor={})[e("./_wks")("species")]=function(e){e(C,C)};return(N||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof n&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),D=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,s=o?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(o||(2==e._h&&R(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?u(j("Promise-chain cycle")):(i=D(n))?i.call(n,c,u):c(n)):u(r)}catch(f){l&&!a&&l.exit(),u(f)}};while(n.length>i)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){g.call(c,(function(){var t,n,r,o=e._v,i=L(e);if(i&&(t=_((function(){N?S.emit("unhandledRejection",o,e):(n=c.onunhandledrejection)?n({promise:e,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=N||L(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){g.call(c,(function(){var t;N?S.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},B=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},F=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw j("Promise can't be resolved itself");(n=D(t))?y((function(){var o={_w:r,_d:!1};try{n.call(t,u(e,o,1),u(B,o,1))}catch(i){B.call(o,i)}})):(r._v=t,r._s=1,M(r,!1))}catch(o){B.call({_w:r,_d:!1},o)}}};A||(k=function(e){h(this,k,E,"_h"),p(e),r.call(this);try{e(u(F,this,1),u(B,this,1))}catch(t){B.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e("./_redefine-all")(k.prototype,{then:function(e,t){var n=I(b(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=u(F,e,1),this.reject=u(B,e,1)},v.f=I=function(e){return e===k||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!A,{Promise:k}),e("./_set-to-string-tag")(k,E),e("./_set-species")(E),a=e("./_core")[E],f(f.S+f.F*!A,E,{reject:function(e){var t=I(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(s||!A),E,{resolve:function(e){return x(s&&this===a?k:this,e)}}),f(f.S+f.F*!(A&&e("./_iter-detect")((function(e){k.all(e)["catch"](C)}))),E,{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;m(e,!1,(function(e){var s=i++,c=!1;n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(e,t,n){var r=e("./_export"),o=e("./_to-absolute-index"),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){var t,n=[],r=arguments.length,a=0;while(r>a){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":122,"./_string-at":154}],181:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_has"),i=e("./_descriptors"),a=e("./_export"),s=e("./_redefine"),c=e("./_meta").KEY,u=e("./_fails"),l=e("./_shared"),f=e("./_set-to-string-tag"),d=e("./_uid"),p=e("./_wks"),h=e("./_wks-ext"),m=e("./_wks-define"),b=e("./_enum-keys"),g=e("./_is-array"),y=e("./_an-object"),v=e("./_is-object"),_=e("./_to-object"),w=e("./_to-iobject"),x=e("./_to-primitive"),E=e("./_property-desc"),j=e("./_object-create"),S=e("./_object-gopn-ext"),T=e("./_object-gopd"),O=e("./_object-gops"),k=e("./_object-dp"),N=e("./_object-keys"),C=T.f,I=k.f,A=S.f,D=r.Symbol,M=r.JSON,P=M&&M.stringify,L="prototype",R=p("_hidden"),B=p("toPrimitive"),F={}.propertyIsEnumerable,q=l("symbol-registry"),U=l("symbols"),G=l("op-symbols"),X=Object[L],V="function"==typeof D&&!!O.f,H=r.QObject,W=!H||!H[L]||!H[L].findChild,z=i&&u((function(){return 7!=j(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=C(X,t);r&&delete X[t],I(e,t,n),r&&e!==X&&I(X,t,r)}:I,K=function(e){var t=U[e]=j(D[L]);return t._k=e,t},Y=V&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},$=function(e,t,n){return e===X&&$(G,t,n),y(e),t=x(t,!0),y(n),o(U,t)?(n.enumerable?(o(e,R)&&e[R][t]&&(e[R][t]=!1),n=j(n,{enumerable:E(0,!1)})):(o(e,R)||I(e,R,E(1,{})),e[R][t]=!0),z(e,t,n)):I(e,t,n)},J=function(e,t){y(e);var n,r=b(t=w(t)),o=0,i=r.length;while(i>o)$(e,n=r[o++],t[n]);return e},Z=function(e,t){return void 0===t?j(e):J(j(e),t)},Q=function(e){var t=F.call(this,e=x(e,!0));return!(this===X&&o(U,e)&&!o(G,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=w(e),t=x(t,!0),e!==X||!o(U,t)||o(G,t)){var n=C(e,t);return!n||!o(U,t)||o(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){var t,n=A(w(e)),r=[],i=0;while(n.length>i)o(U,t=n[i++])||t==R||t==c||r.push(t);return r},ne=function(e){var t,n=e===X,r=A(n?G:w(e)),i=[],a=0;while(r.length>a)!o(U,t=r[a++])||n&&!o(X,t)||i.push(U[t]);return i};V||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function t(n){this===X&&t.call(G,n),o(this,R)&&o(this[R],e)&&(this[R][e]=!1),z(this,e,E(1,n))};return i&&W&&z(X,e,{configurable:!0,set:t}),K(e)},s(D[L],"toString",(function(){return this._k})),T.f=ee,k.f=$,e("./_object-gopn").f=S.f=te,e("./_object-pie").f=Q,O.f=ne,i&&!e("./_library")&&s(X,"propertyIsEnumerable",Q,!0),h.f=function(e){return K(p(e))}),a(a.G+a.W+a.F*!V,{Symbol:D});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),oe=0;re.length>oe;)p(re[oe++]);for(var ie=N(p.store),ae=0;ie.length>ae;)m(ie[ae++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return o(q,e+="")?q[e]:q[e]=D(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!V,"Object",{create:Z,defineProperty:$,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){O.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(_(e))}}),M&&a(a.S+a.F*(!V||u((function(){var e=D();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],o=1;while(arguments.length>o)r.push(arguments[o++]);if(n=t=r[1],(v(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,P.apply(M,r)}}),D[L][B]||e("./_hide")(D[L],B,D[L].valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(e,t,n){var r=e("./_export"),o=e("./_object-to-array")(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},{"./_export":107,"./_object-to-array":143}],183:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_core"),i=e("./_global"),a=e("./_species-constructor"),s=e("./_promise-resolve");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_new-promise-capability"),i=e("./_perform");r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(e,t,n){e("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(e,t,n){e("./es6.array.iterator");for(var r=e("./_global"),o=e("./_hide"),i=e("./_iterators"),a=e("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c0?"-":"+")+i(100*Math.floor(Math.abs(x)/60)+Math.abs(x)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:E,N:j};return u.replace(e,(function(e){return e in S?S[e]:e.slice(1,e.length-1)}))}}();function i(e,t){e=String(e),t=t||2;while(e.length]/;function o(e){var t,n=""+e,o=r.exec(n);if(!o)return n;var i="",a=0,s=0;for(a=o.index;a0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)while(n.length)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[],t},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],193:[function(e,t,n){var r=e("http"),o=t.exports;for(var i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);o.request=function(e,t){return e||(e={}),e.scheme="https",e.protocol="https:",r.request.call(this,e,t)}},{http:231}],194:[function(e,t,n){"use strict";var r=e("util"),o=e("ms");t.exports=function(e){if("number"===typeof e)return e;var t=o(e);if(void 0===t){var n=new Error(r.format("humanize-ms(%j) result undefined",e));console.warn(n.stack)}return t}},{ms:204,util:243}],195:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},{}],196:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],197:[function(e,t,n){function r(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function o(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||o(e)||!!e._isBuffer)}},{}],198:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],199:[function(require,module,exports){(function(global){(function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(e):"function"===typeof define&&define.amd?define(t):t(e)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if("undefined"!==typeof module&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(err){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;n>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)];return r.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){var t="[object Uint8Array]"===Object.prototype.toString.call(e);return t?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return fromCharCode(55296+(n>>>10))+fromCharCode(56320+(1023&n));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"===typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function(e){return encode(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",noEnum((function(){return encode(this,!0)})))}}return global["Meteor"]&&(Base64=global.Base64),"undefined"!==typeof module&&module.exports?module.exports.Base64=global.Base64:"function"===typeof define&&define.amd&&define([],(function(){return global.Base64})),{Base64:global.Base64}}))}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],200:[function(e,t,n){"use strict";t.exports=o;var r=Object.prototype.hasOwnProperty;function o(e,t,n){if(!e)throw new TypeError("argument dest is required");if(!t)throw new TypeError("argument src is required");return void 0===n&&(n=!0),Object.getOwnPropertyNames(t).forEach((function(o){if(n||!r.call(e,o)){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,i)}})),e}},{}],201:[function(e,t,n){"use strict";function r(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),u=(t[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"weeks":case"week":case"w":return n*s;case"days":case"day":case"d":return n*a;case"hours":case"hour":case"hrs":case"hr":case"h":return n*i;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+"d":t>=i?Math.round(e/i)+"h":t>=o?Math.round(e/o)+"m":t>=r?Math.round(e/r)+"s":e+"ms"}function f(e){var t=Math.abs(e);return t>=a?d(e,t,a,"day"):t>=i?d(e,t,i,"hour"):t>=o?d(e,t,o,"minute"):t>=r?d(e,t,r,"second"):e+" ms"}function d(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return u(e);if("number"===n&&isFinite(e))return t["long"]?f(e):l(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],205:[function(e,t,n){(function(e){function t(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=-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&&(n=a+"/"+n,r="/"===a.charAt(0))}return n=t(o(n.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),a="/"===i(e,-1);return e=t(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c=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)},n.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},n.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,e("_process"))},{_process:208}],206:[function(e,t,n){(function(e){(function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,i=r[typeof n]&&n,a=r[typeof t]&&t&&!t.nodeType&&t,s=i&&a&&"object"==typeof e&&e;!s||s.global!==s&&s.window!==s&&s.self!==s||(o=s);var c=Math.pow(2,53)-1,u=/\bOpera/,l=Object.prototype,f=l.hasOwnProperty,d=l.toString;function p(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function h(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=b(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),e}function m(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=c)while(++n3?"WebKit":/\bOpera\b/.test(B)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(R)&&"WebKit"||!R&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==R&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(R=[a]),"IE"==B&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(B+=" Mobile",U="Windows Phone "+(/\+$/.test(a)?a:a+".x"),D.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(B="IE Mobile",U="Windows Phone 8.x",D.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=B&&"Trident"==R&&(a=/\brv:([\d.]+)/.exec(e))&&(B&&D.push("identifying as "+B+(L?" "+L:"")),B="IE",L=a[1]),P){if(v(t,"global"))if(S&&(a=S.lang.System,A=a.getProperty("os.arch"),U=U||a.getProperty("os.name")+" "+a.getProperty("os.version")),T){try{L=t.require("ringo/engine").version.join("."),B="RingoJS"}catch($){(a=t.system)&&a.global.system==t.system&&(B="Narwhal",U||(U=a[0].os||null))}B||(B="Rhino")}else"object"==typeof t.process&&!t.process.browser&&(a=t.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(D.push("Node "+a.versions.node),B="Electron",L=a.versions.electron):"string"==typeof a.versions.nw&&(D.push("Chromium "+L,"Node "+a.versions.node),B="NW.js",L=a.versions.nw)),B||(B="Node.js",A=a.arch,U=a.platform,L=/[\d.]+/.exec(a.version),L=L?L[0]:null));else y(a=t.runtime)==f?(B="Adobe AIR",U=a.flash.system.Capabilities.os):y(a=t.phantom)==j?(B="PhantomJS",L=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof N.documentMode&&(a=/\bTrident\/(\d+)/i.exec(e))?(L=[L,N.documentMode],(a=+a[1]+4)!=L[1]&&(D.push("IE "+L[1]+" mode"),R&&(R[1]=""),L[1]=a),L="IE"==B?String(L[1].toFixed(1)):L[0]):"number"==typeof N.documentMode&&/^(?:Chrome|Firefox)\b/.test(B)&&(D.push("masking as "+B+" "+L),B="IE",L="11.0",R=["Trident"],U="Windows");U=U&&b(U)}if(L&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(P&&r.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(M=/b/i.test(a)?"beta":"alpha",L=L.replace(RegExp(a+"\\+?$"),"")+("beta"==M?k:O)+(/\d+\+?/.exec(a)||"")),"Fennec"==B||"Firefox"==B&&/\b(?:Android|Firefox OS)\b/.test(U))B="Firefox Mobile";else if("Maxthon"==B&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(U=null),"Xbox 360"==F&&/\bIEMobile\b/.test(e)&&D.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(B)&&(!B||F||/Browser|Mobi/.test(B))||"Windows CE"!=U&&!/Mobi/i.test(e))if("IE"==B&&P)try{null===t.external&&D.unshift("platform preview")}catch($){D.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(e))&&(a=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||L)?(a=[a,/BB10/.test(e)],U=(a[1]?(F=null,q="BlackBerry"):"Device Software")+" "+a[0],L=null):this!=g&&"Wii"!=F&&(P&&C||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==B&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==B&&(U&&!/^Win/.test(U)&&L>5.5||/\bWindows XP\b/.test(U)&&L>8||8==L&&!/\bTrident\b/.test(e)))&&!u.test(a=E.call(g,e.replace(u,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),u.test(B)?(/\bIE\b/.test(a)&&"Mac OS"==U&&(U=null),a="identify"+a):(a="mask"+a,B=I?b(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(U=null),P||(L=null)),R=["Presto"],D.push(a));else B+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==B&&"+"==a[1].slice(-1)?(B="WebKit Nightly",M="alpha",L=a[1].slice(0,-1)):L!=a[1]&&L!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(L=null),a[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==R&&(R=["Blink"]),P&&(c||a[1])?(R&&(R[1]="like Chrome"),a=a[1]||(a=a[0],a<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=R?"27":"28")):(R&&(R[1]="like Safari"),a=a[0],a=a<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:"8"),R&&(R[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==B&&(!L||parseInt(L)>45)&&(L=a)),"Opera"==B&&(a=/\bzbov|zvav$/.exec(U))?(B+=" ",D.unshift("desktop mode"),"zvav"==a?(B+="Mini",L=null):B+="Mobile",U=U.replace(RegExp(" *"+a+"$"),"")):"Safari"==B&&/\bChrome\b/.exec(R&&R[1])&&(D.unshift("desktop mode"),B="Chrome Mobile",L=null,/\bOS X\b/.test(U)?(q="Apple",U="iOS 4.3+"):U=null),L&&0==L.indexOf(a=/[\d.]+$/.exec(U))&&e.indexOf("/"+a+"-")>-1&&(U=x(U.replace(a,""))),R&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||"Safari"!=B&&/^iOS/.test(U)&&/\bSafari\b/.test(R[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(B)&&R[1])&&(a=R[R.length-1])&&D.push(a),D.length&&(D=["("+D.join("; ")+")"]),q&&F&&F.indexOf(q)<0&&D.push("on "+q),F&&D.push((/^on /.test(D[D.length-1])?"":"on ")+F),U&&(a=/ ([\d.+]+)$/.exec(U),s=a&&"/"==U.charAt(U.length-a[0].length-1),U={architecture:32,family:a&&!s?U.replace(a[0],""):U,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!s?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+a),"")),B&&(/\bWOW64\b/i.test(e)||P&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(e))&&D.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==B&&parseFloat(L)>=39&&(U.architecture=64),e||(e=null);var Y={};return Y.description=e,Y.layout=R&&R[0],Y.manufacturer=q,Y.name=B,Y.prerelease=M,Y.product=F,Y.ua=e,Y.version=B&&L,Y.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},Y.parse=E,Y.toString=K,Y.version&&D.unshift(L),Y.name&&D.unshift(B),U&&B&&(U!=String(U).split(" ")[0]||U!=B.split(" ")[0]&&!F)&&D.push(F?"("+U+")":"on "+U),D.length&&(Y.description=D.join(" ")),Y}var j=E();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(o.platform=j,define((function(){return j}))):i&&a?g(j,(function(e,t){i[t]=e})):o.platform=j}).call(this)}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],207:[function(e,t,n){(function(e){"use strict";function n(t,n,r,o){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,o)}));default:i=new Array(s-1),a=0;while(a1)for(var n=1;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-f,E=Math.floor,j=String.fromCharCode;function S(e){throw new RangeError(w[e])}function T(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(_,".");var o=e.split("."),i=T(o,t).join(".");return r+i}function k(e){var t,n,r=[],o=0,i=e.length;while(o=55296&&t<=56319&&o65535&&(e-=65536,t+=j(e>>>10&1023|55296),e=56320|1023&e),t+=j(e),t})).join("")}function C(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?E(e/h):e>>1,e+=E(e/t);e>x*d>>1;r+=l)e=E(e/x);return E(r+(x+1)*e/(e+p))}function D(e){var t,n,r,o,i,a,s,c,p,h,y=[],v=e.length,_=0,w=b,x=m;for(n=e.lastIndexOf(g),n<0&&(n=0),r=0;r=128&&S("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=v&&S("invalid-input"),c=C(e.charCodeAt(o++)),(c>=l||c>E((u-_)/a))&&S("overflow"),_+=c*a,p=s<=x?f:s>=x+d?d:s-x,cE(u/h)&&S("overflow"),a*=h}t=y.length+1,x=A(_-i,t,0==i),E(_/t)>u-w&&S("overflow"),w+=E(_/t),_%=t,y.splice(_++,0,w)}return N(y)}function M(e){var t,n,r,o,i,a,s,c,p,h,y,v,_,w,x,T=[];for(e=k(e),v=e.length,t=b,n=0,i=m,a=0;a=t&&yE((u-n)/_)&&S("overflow"),n+=(s-t)*_,t=s,a=0;au&&S("overflow"),y==t){for(c=n,p=l;;p+=l){if(h=p<=i?f:p>=i+d?d:p-i,c0&&u>c&&(u=c);for(var l=0;l=0?(f=m.substr(0,b),d=m.substr(b+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?o(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],211:[function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?i(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0?("string"===typeof t||s.objectMode||(0,i["default"])(t)===h.prototype||(t=b(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):N(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?N(e,s,t,!1):B(e,s)):N(e,s,t,!1))):r||(s.reading=!1));return I(s)}function N(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&L(e)),B(e,t)}function C(e,t){var n;return g(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function I(e){return!e.ended&&(e.needReadable||e.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,L(e)}}function L(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?u.nextTick(R,e):R(e))}function R(e){_("emit readable"),e.emit("readable"),V(e)}function B(e,t){t.readingMore||(t.readingMore=!0,u.nextTick(F,e,t))}function F(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=W(e,t.buffer,t.decoder),n);var n}function W(e,t,n){var r;return ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),e-=a,0===e){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}function K(e,t){var n=h.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),e-=a,0===e){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}function Y(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,u.nextTick($,t,e))}function $(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function J(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Y(this):L(this),null;if(e=M(e,t),0===e&&t.ended)return 0===t.length&&Y(this),null;var r,o=t.needReadable;return _("need readable",o),(0===t.length||t.length-e0?H(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Y(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,_("pipe count=%d opts=%j",o.pipesCount,t);var i=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,a=i?c:v;function s(e,t){_("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){_("onend"),e.end()}o.endEmitted?u.nextTick(a):r.once("end",a),e.on("unpipe",s);var l=q(r);e.on("drain",l);var f=!1;function p(){_("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",b),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",m),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}var h=!1;function m(t){_("ondata"),h=!1;var n=e.write(t);!1!==n||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==J(o.pipes,e))&&!f&&(_("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function b(t){_("onerror",t),v(),e.removeListener("error",b),0===d(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),v()}function y(){_("onfinish"),e.removeListener("close",g),v()}function v(){_("unpipe"),r.unpipe(e)}return r.on("data",m),S(e,"error",b),e.once("close",g),e.once("finish",y),e.emit("pipe",r),o.flowing||(_("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1?p["default"]:m.nextTick;C.WritableState=N;var v=(0,f["default"])(e("core-util-is"));v.inherits=e("inherits");var _={deprecate:e("util-deprecate")},w=e("./internal/streams/stream"),x=e("safe-buffer").Buffer,E=r.Uint8Array||function(){};function j(e){return x.from(e)}function S(e){return x.isBuffer(e)||e instanceof E}var T,O=e("./internal/streams/destroy");function k(){}function N(t,n){g=g||e("./_stream_duplex"),t=t||{};var r=n instanceof g;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,i=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){B(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new b(this)}function C(t){if(g=g||e("./_stream_duplex"),!T.call(C,this)&&!(this instanceof g))return new C(t);this._writableState=new N(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t["final"]&&(this._final=t["final"])),w.call(this)}function I(e,t){var n=new Error("write after end");e.emit("error",n),m.nextTick(t,n)}function A(e,t,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),m.nextTick(r,i),o=!1),o}function D(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=x.from(t,n)),t}function M(e,t,n,r,o,i){if(!n){var a=D(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},C.prototype._writev=null,C.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||W(this,r,n)},Object.defineProperty(C.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=O.destroy,C.prototype._undestroy=O.undestroy,C.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e("safe-buffer").Buffer,i=e("util");function a(e,t,n){e.copy(t,n)}t.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;var t=o.allocUnsafe(e>>>0),n=this.head,r=0;while(n)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":228,util:71}],220:[function(e,t,n){"use strict";var r=e("process-nextick-args");function o(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return o||i?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}t.exports={destroy:o,undestroy:i}},{"process-nextick-args":207}],221:[function(e,t,n){"use strict";t.exports=e("events").EventEmitter},{events:192}],222:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":223}],223:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(e,t,n){t.exports=e("./readable").Transform},{"./readable":223}],225:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=e("./runtime"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(e,t,n){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"===typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{l=e.regeneratorRuntime=u?t.exports:{},l.wrap=_;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={},b={};b[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(A([])));y&&y!==r&&o.call(y,a)&&(b=y);var v=j.prototype=x.prototype=Object.create(b);E.prototype=v.constructor=j,j.constructor=E,j[c]=E.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(v),e},l.awrap=function(e){return{__await:e}},S(T.prototype),T.prototype[s]=function(){return this},l.AsyncIterator=T,l.async=function(e,t,n,r){var o=new T(_(e,t,n,r));return l.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(v),v[c]="Generator",v[a]=function(){return this},v.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=A,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function _(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new I(r||[]);return i._invoke=O(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function E(){}function j(){}function S(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(u).then((function(e){c.value=e,i(c)}),a)}a(s.arg)}var n;function r(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function O(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return D()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=w(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){while(++rt)switch(i[o]){case"textNode":L(e);break;case"cdata":P(e,"oncdata",e.cdata),e.cdata="";break;case"script":P(e,"onscript",e.script),e.script="";break;default:B(e,"Max buffer length exceeded: "+i[o])}r=Math.max(r,s)}var c=n.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=c+e.position}function f(e){for(var t=0,n=i.length;t"===e||O(e)}function C(e,t){return e.test(t)}function I(e,t){return!C(e,t)}var A=0;for(var D in n.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,d["default"])(n.ENTITIES).forEach((function(e){var t=n.ENTITIES[e],r="number"===typeof t?String.fromCharCode(t):t;n.ENTITIES[e]=r})),n.STATE)n.STATE[n.STATE[D]]=D;function M(e,t,n){e[t]&&e[t](n)}function P(e,t,n){e.textNode&&L(e),M(e,t,n)}function L(e){e.textNode=R(e.opt,e.textNode),e.textNode&&M(e,"ontext",e.textNode),e.textNode=""}function R(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function B(e,t){return L(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,M(e,"onerror",t),e}function F(e){return e.sawRoot&&!e.closedRoot&&q(e,"Unclosed root tag"),e.state!==A.BEGIN&&e.state!==A.BEGIN_WHITESPACE&&e.state!==A.TEXT&&B(e,"Unexpected end"),L(e),e.c="",e.closed=!0,M(e,"onend"),s.call(e,e.strict,e.opt),e}function q(e,t){if("object"!==("undefined"===typeof e?"undefined":(0,c["default"])(e))||!(e instanceof s))throw new Error("bad call to strictFail");e.strict&&B(e,t)}function U(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,P(e,"onopentagstart",n)}function G(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),o=r[0],i=r[1];return t&&"xmlns"===e&&(o="xmlns",i=""),{prefix:o,local:i}}function X(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=G(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==_)q(e,"xml: prefix must be bound to "+_+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==w)q(e,"xmlns: prefix must be bound to "+w+"\nActual: "+e.attribValue);else{var o=e.tag,i=e.tags[e.tags.length-1]||e;o.ns===i.ns&&(o.ns=(0,h["default"])(i.ns)),o.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,P(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function V(e,t){if(e.opt.xmlns){var n=e.tag,r=G(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(q(e,"Unbound namespace prefix: "+(0,a["default"])(e.tagName)),n.uri=r.prefix);var o=e.tags[e.tags.length-1]||e;n.ns&&o.ns!==n.ns&&(0,d["default"])(n.ns).forEach((function(t){P(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var i=0,s=e.attribList.length;i",e.tagName="",void(e.state=A.SCRIPT);P(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());var r=n;while(t--){var o=e.tags[t];if(o.name===r)break;q(e,"Unexpected close tag")}if(t<0)return q(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=A.TEXT);e.tagName=n;var i=e.tags.length;while(i-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,P(e,"onclosetag",e.tagName);var s={};for(var c in a.ns)s[c]=a.ns[c];var u=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==u.ns&&(0,d["default"])(a.ns).forEach((function(t){var n=a.ns[t];P(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=A.TEXT}function W(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),i=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),i=t.toString(10))),n=n.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==n?(q(e,"Invalid character entity"),"&"+e.entity+";"):(0,o["default"])(t))}function z(e,t){"<"===t?(e.state=A.OPEN_WAKA,e.startTagPosition=e.position):O(t)||(q(e,"Non-whitespace before first tag."),e.textNode=t,e.state=A.TEXT)}function K(e,t){var n="";return t"===r?(P(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=A.TEXT):k(r)?(t.state=A.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case A.SGML_DECL_QUOTED:r===t.q&&(t.state=A.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case A.DOCTYPE:">"===r?(t.state=A.TEXT,P(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=A.DOCTYPE_DTD:k(r)&&(t.state=A.DOCTYPE_QUOTED,t.q=r));continue;case A.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=A.DOCTYPE:k(r)&&(t.state=A.DOCTYPE_DTD_QUOTED,t.q=r);continue;case A.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=A.DOCTYPE_DTD,t.q="");continue;case A.COMMENT:"-"===r?t.state=A.COMMENT_ENDING:t.comment+=r;continue;case A.COMMENT_ENDING:"-"===r?(t.state=A.COMMENT_ENDED,t.comment=R(t.opt,t.comment),t.comment&&P(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=A.COMMENT);continue;case A.COMMENT_ENDED:">"!==r?(q(t,"Malformed comment"),t.comment+="--"+r,t.state=A.COMMENT):t.state=A.TEXT;continue;case A.CDATA:"]"===r?t.state=A.CDATA_ENDING:t.cdata+=r;continue;case A.CDATA_ENDING:"]"===r?t.state=A.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=A.CDATA);continue;case A.CDATA_ENDING_2:">"===r?(t.cdata&&P(t,"oncdata",t.cdata),P(t,"onclosecdata"),t.cdata="",t.state=A.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=A.CDATA);continue;case A.PROC_INST:"?"===r?t.state=A.PROC_INST_ENDING:O(r)?t.state=A.PROC_INST_BODY:t.procInstName+=r;continue;case A.PROC_INST_BODY:if(!t.procInstBody&&O(r))continue;"?"===r?t.state=A.PROC_INST_ENDING:t.procInstBody+=r;continue;case A.PROC_INST_ENDING:">"===r?(P(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=A.TEXT):(t.procInstBody+="?"+r,t.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:C(j,r)?t.tagName+=r:(U(t),">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:(O(r)||q(t,"Invalid character in tag name"),t.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:">"===r?(V(t,!0),H(t)):(q(t,"Forward-slash in opening tag not followed by >"),t.state=A.ATTRIB);continue;case A.ATTRIB:if(O(r))continue;">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:C(E,r)?(t.attribName=r,t.attribValue="",t.state=A.ATTRIB_NAME):q(t,"Invalid attribute name");continue;case A.ATTRIB_NAME:"="===r?t.state=A.ATTRIB_VALUE:">"===r?(q(t,"Attribute without value"),t.attribValue=t.attribName,X(t),V(t)):O(r)?t.state=A.ATTRIB_NAME_SAW_WHITE:C(j,r)?t.attribName+=r:q(t,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=A.ATTRIB_VALUE;else{if(O(r))continue;q(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",P(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?V(t):C(E,r)?(t.attribName=r,t.state=A.ATTRIB_NAME):(q(t,"Invalid attribute name"),t.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(O(r))continue;k(r)?(t.q=r,t.state=A.ATTRIB_VALUE_QUOTED):(q(t,"Unquoted attribute value"),t.state=A.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case A.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=A.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}X(t),t.q="",t.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:O(r)?t.state=A.ATTRIB:">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:C(E,r)?(q(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=A.ATTRIB_NAME):q(t,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(!N(r)){"&"===r?t.state=A.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}X(t),">"===r?V(t):t.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(t.tagName)">"===r?H(t):C(j,r)?t.tagName+=r:t.script?(t.script+=""===r?H(t):q(t,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var a,s;switch(t.state){case A.TEXT_ENTITY:a=A.TEXT,s="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:a=A.ATTRIB_VALUE_QUOTED,s="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:a=A.ATTRIB_VALUE_UNQUOTED,s="attribValue";break}";"===r?(t[s]+=W(t),t.entity="",t.state=a):C(t.entity.length?T:S,r)?t.entity+=r:(q(t,"Invalid character in entity name"),t[s]+="&"+t.entity+r,t.entity="",t.state=a);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&u(t),t}A=n.STATE,o["default"]||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,o=16384,i=[],a=-1,s=arguments.length;if(!s)return"";var c="";while(++a1114111||t(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,n=55296+(u>>10),r=u%1024+56320,i.push(n,r)),(a+1===s||i.length>o)&&(c+=e.apply(null,i),i.length=0)}return c};l["default"]?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})("undefined"===typeof n?(void 0).sax={}:n)}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(e,t,n){t.exports=i;var r=e("events").EventEmitter,o=e("inherits");function i(){r.call(this)}o(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(e,t,n){(function(t){var r=e("./lib/request"),o=e("./lib/response"),i=e("xtend"),a=e("builtin-status-codes"),s=e("url"),c=n;c.request=function(e,n){e="string"===typeof e?s.parse(e):i(e);var o=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||o,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},c.get=function(e,t){var n=c.request(e,t);return n.end(),n},c.ClientRequest=r,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(e,t,n){(function(e){"use strict";n.fetch=s(e.fetch)&&s(e.ReadableStream),n.writableStream=s(e.WritableStream),n.abortController=s(e.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(c){}var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(c){t=null}}else t=null;return t}function o(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(c){}return!1}var i="undefined"!==typeof e.ArrayBuffer,a=i&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"===typeof e}n.arraybuffer=n.fetch||i&&o("arraybuffer"),n.msstream=!n.fetch&&a&&o("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&i&&o("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!r()&&s(r().overrideMimeType),n.vbArray=s(e.VBArray),t=null}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],233:[function(e,t,n){(function(n,r,o){"use strict";var i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./capability"),u=e("inherits"),l=e("./response"),f=e("readable-stream"),d=e("to-arraybuffer"),p=l.IncomingMessage,h=l.readyStates;function m(e,t){return c.fetch&&t?"fetch":c.mozchunkedarraybuffer?"moz-chunked-arraybuffer":c.msstream?"ms-stream":c.arraybuffer&&e?"arraybuffer":c.vbArray&&e?"text:vbarray":"text"}var b=t.exports=function(e){var t,n=this;f.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+new o(e.auth).toString("base64")),(0,a["default"])(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!c.abortController)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!c.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=m(t,r),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};function g(e){try{var t=e.status;return null!==t&&0!==t}catch(n){return!1}}u(b,f.Writable),b.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===y.indexOf(r)&&(n._headers[r]={name:e,value:t})},b.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},b.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},b.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,i=e._headers,s=null;"GET"!==t.method&&"HEAD"!==t.method&&(s=c.arraybuffer?d(o.concat(e._body)):c.blobConstructor?new r.Blob(e._body.map((function(e){return d(e)})),{type:(i["content-type"]||{}).value||""}):o.concat(e._body).toString());var u=[];if((0,a["default"])(i).forEach((function(e){var t=i[e].name,n=i[e].value;Array.isArray(n)?n.forEach((function(e){u.push([t,e])})):u.push([t,n])})),"fetch"===e._mode){var l=null;if(c.abortController){var f=new AbortController;l=f.signal,e._fetchAbortController=f,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var p=e._xhr=new r.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(m){return void n.nextTick((function(){e.emit("error",m)}))}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(p.timeout=t.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){p.setRequestHeader(e[0],e[1])})),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case h.LOADING:case h.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(s)}catch(m){return void n.nextTick((function(){e.emit("error",m)}))}}}},b.prototype._onXHRProgress=function(){var e=this;g(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},b.prototype._connect=function(){var e=this;e._destroyed||(e._response=new p(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},b.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},b.prototype.abort=b.prototype.destroy=function(){var e=this;e._destroyed=!0,r.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},b.prototype.end=function(e,t,n){var r=this;"function"===typeof e&&(n=e,e=void 0),f.Writable.prototype.end.call(r,e,t,n)},b.prototype.flushHeaders=function(){},b.prototype.setTimeout=function(){},b.prototype.setNoDelay=function(){},b.prototype.setSocketKeepAlive=function(){};var y=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(e,t,n){(function(t,r,o){"use strict";var i=e("babel-runtime/core-js/promise"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./capability"),u=e("inherits"),l=e("readable-stream"),f=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d=n.IncomingMessage=function(e,n,i,s){var u=this;if(l.Readable.call(u),u._mode=i,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){t.nextTick((function(){u.emit("close")}))})),"fetch"===i){var f=function e(){p.read().then((function(t){if(!u._destroyed){if(t.done)return r.clearTimeout(s),void u.push(null);u.push(new o(t.value)),e()}}))["catch"]((function(e){r.clearTimeout(s),u._destroyed||u.emit("error",e)}))};if(u._fetchResponse=n,u.url=n.url,u.statusCode=n.status,u.statusMessage=n.statusText,n.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),c.writableStream){var d=new WritableStream({write:function(e){return new a["default"]((function(t,n){u._destroyed?n():u.push(new o(e))?t():u._resumeFetch=t}))},close:function(){r.clearTimeout(s),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{return void n.body.pipeTo(d)["catch"]((function(e){r.clearTimeout(s),u._destroyed||u.emit("error",e)}))}catch(g){}}var p=n.body.getReader();f()}else{u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText;var h=e.getAllResponseHeaders().split(/\r?\n/);if(h.forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===u.headers[n]&&(u.headers[n]=[]),u.headers[n].push(t[2])):void 0!==u.headers[n]?u.headers[n]+=", "+t[2]:u.headers[n]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!c.overrideMimeType){var m=u.rawHeaders["mime-type"];if(m){var b=m.match(/;\s*charset=([^;])(;|$)/);b&&(u._charset=b[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};u(d,l.Readable),d.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},d.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==f.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(u){}if(null!==n){e.push(new o(n));break}case"text":try{n=t.responseText}catch(u){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new o(i.length),s=0;se._pos&&(e.push(new o(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n);break}e._xhr.readyState===f.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!==typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:return this.write=y,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,n){var r=t.length-1;if(r=0?(o>0&&(e.lastNeed=o-1),o):--r=0?(o>0&&(e.lastNeed=o-2),o):--r=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}function l(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}function f(e){var t=this.lastTotal-this.lastNeed,n=l(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var n=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t}function h(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function b(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}n.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,o((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(e,t,n){var r=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"===typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(u),f=["'"].concat(l),d=["%","/","?",";","#"].concat(f),p=["/","?","#"],h=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=e("querystring");function w(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}function x(e){return o.isString(e)&&(e=w(e)),e instanceof i?e.format():i.prototype.format.call(e)}function E(e,t){return w(e,!1,!0).resolve(t)}function j(e,t){return e?w(e,!1,!0).resolveObject(t):t}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?P+="x":P+=M[L];if(!P.match(m)){var B=A.slice(0,N),F=A.slice(N+1),q=M.match(b);q&&(B.push(q[1]),F.unshift(q[2])),F.length&&(w="/"+F.join(".")+w),this.hostname=B.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+U,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!g[j])for(N=0,D=f.length;N0)&&n.host.split("@");S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,k=0,N=E.length;N>=0;N--)T=E[N],"."===T?E.splice(N,1):".."===T?(E.splice(N,1),k++):k&&(E.splice(N,1),k--);if(!w&&!x)for(;k--;k)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var C=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(j){n.hostname=n.host=C?"":E.length?E.shift():"";S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return w=w||n.host&&E.length,w&&!C&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":239,punycode:209,querystring:212}],239:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"===typeof e},isObject:function(e){return"object"===typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],240:[function(e,t,n){(function(e){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function o(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function r(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],241:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],242:[function(e,t,n){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],243:[function(e,t,n){(function(t,r){var o=/%[sdj%]/g;n.format=function(e){if(!x(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),j(r.showHidden)&&(r.showHidden=!1),j(r.depth)&&(r.depth=2),j(r.colors)&&(r.colors=!1),j(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,t,r){if(e.customInspect&&t&&N(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return x(o)||(o=f(e,o,r)),o}var i=d(e,t);if(i)return i;var a=Object.keys(t),s=l(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),k(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(t);if(0===a.length){if(N(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(O(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return p(t)}var u,y="",v=!1,_=["{","}"];if(g(t)&&(v=!0,_=["[","]"]),N(t)){var w=t.name?": "+t.name:"";y=" [Function"+w+"]"}return S(t)&&(y=" "+RegExp.prototype.toString.call(t)),O(t)&&(y=" "+Date.prototype.toUTCString.call(t)),k(t)&&(y=" "+p(t)),0!==a.length||v&&0!=t.length?r<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=v?h(e,t,r,s,a):a.map((function(n){return m(e,t,r,s,n,v)})),e.seen.pop(),b(u,y,_)):_[0]+y+_[1]}function d(e,t){if(j(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return w(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,o){for(var i=[],a=0,s=t.length;a-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),j(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function g(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function v(e){return null===e}function _(e){return null==e}function w(e){return"number"===typeof e}function x(e){return"string"===typeof e}function E(e){return"symbol"===typeof e}function j(e){return void 0===e}function S(e){return T(e)&&"[object RegExp]"===I(e)}function T(e){return"object"===typeof e&&null!==e}function O(e){return T(e)&&"[object Date]"===I(e)}function k(e){return T(e)&&("[object Error]"===I(e)||e instanceof Error)}function N(e){return"function"===typeof e}function C(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function I(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(j(i)&&(i=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=t.pid;a[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else a[e]=function(){};return a[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=g,n.isBoolean=y,n.isNull=v,n.isNullOrUndefined=_,n.isNumber=w,n.isString=x,n.isSymbol=E,n.isUndefined=j,n.isRegExp=S,n.isObject=T,n.isDate=O,n.isError=k,n.isFunction=N,n.isPrimitive=C,n.isBuffer=e("./support/isBuffer");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",M(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!T(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(e,t,n){"use strict";(function(){n.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(void 0)},{}],245:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/typeof"),o=s(r),i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}(function(){var t,r,i,s,c,u={}.hasOwnProperty;t=e("xmlbuilder"),r=e("./defaults").defaults,s=function(e){return"string"===typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},c=function(e){return""},i=function(e){return e.replace("]]>","]]]]>")},n.Builder=function(){function e(e){var t,n,o;for(t in this.options={},n=r["0.2"],n)u.call(n,t)&&(o=n[t],this.options[t]=o);for(t in e)u.call(e,t)&&(o=e[t],this.options[t]=o)}return e.prototype.buildObject=function(e){var n,i,l,f,d;return n=this.options.attrkey,i=this.options.charkey,1===(0,a["default"])(e).length&&this.options.rootName===r["0.2"].rootName?(d=(0,a["default"])(e)[0],e=e[d]):d=this.options.rootName,l=function(e){return function(t,r){var a,f,d,p,h,m;if("object"!==("undefined"===typeof r?"undefined":(0,o["default"])(r)))e.options.cdata&&s(r)?t.raw(c(r)):t.txt(r);else if(Array.isArray(r)){for(p in r)if(u.call(r,p))for(h in f=r[p],f)d=f[h],t=l(t.ele(h),d).up()}else for(h in r)if(u.call(r,h))if(f=r[h],h===n){if("object"===("undefined"===typeof f?"undefined":(0,o["default"])(f)))for(a in f)m=f[a],t=t.att(a,m)}else if(h===i)t=e.options.cdata&&s(f)?t.raw(c(f)):t.txt(f);else if(Array.isArray(f))for(p in f)u.call(f,p)&&(d=f[p],t="string"===typeof d?e.options.cdata&&s(d)?t.ele(h).raw(c(d)).up():t.ele(h,d).up():l(t.ele(h),d).up());else"object"===("undefined"===typeof f?"undefined":(0,o["default"])(f))?t=l(t.ele(h),f).up():"string"===typeof f&&e.options.cdata&&s(f)?t=t.ele(h).raw(c(f)).up():(null==f&&(f=""),t=t.ele(h,f.toString()).up());return t}}(this),f=t.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(f,e).end(this.options.renderOpts)},e}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(e,t,n){"use strict";(function(){n.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/promise"),o=f(r),i=e("babel-runtime/core-js/object/get-own-property-names"),a=f(i),s=e("babel-runtime/core-js/object/keys"),c=f(s),u=e("babel-runtime/helpers/typeof"),l=f(u);function f(e){return e&&e.__esModule?e:{default:e}}(function(){var t,r,i,s,u,f,d,p,h=function(e,t){return function(){return e.apply(t,arguments)}},m=function(e,t){for(var n in t)b.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},b={}.hasOwnProperty;d=e("sax"),i=e("events"),t=e("./bom"),f=e("./processors"),p=e("timers").setImmediate,r=e("./defaults").defaults,s=function(e){return"object"===("undefined"===typeof e?"undefined":(0,l["default"])(e))&&null!=e&&0===(0,c["default"])(e).length},u=function(e,t,n){var r,o,i;for(r=0,o=e.length;r0&&(f[e.options.childkey]=p),p=f;return r.length>0?e.assignOrPush(g,d,p):(e.options.explicitRoot&&(m=p,p={},p[d]=m),e.resultObject=p,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),n=function(e){return function(n){var o,i;if(i=r[r.length-1],i)return i[t]+=n,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(i[e.options.childkey]=i[e.options.childkey]||[],o={"#name":"__text__"},o[t]=n,e.options.normalize&&(o[t]=o[t].replace(/\s{2,}/g," ").trim()),i[e.options.childkey].push(o)),i}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(e){return function(e){var t;if(t=n(e),t)return t.cdata=!0}}()},i.prototype.parseString=function(e,n){var r;null!=n&&"function"===typeof n&&(this.on("end",(function(e){return this.reset(),n(null,e)})),this.on("error",(function(e){return this.reset(),n(e)})));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,p(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(o){if(r=o,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},i.prototype.parseStringPromise=function(e){return new o["default"](function(t){return function(n,r){return t.parseString(e,(function(e,t){return e?r(e):n(t)}))}}(this))},i}(i),n.parseString=function(e,t,r){var o,i,a;return null!=r?("function"===typeof r&&(o=r),"object"===("undefined"===typeof t?"undefined":(0,l["default"])(t))&&(i=t)):("function"===typeof t&&(o=t),i={}),a=new n.Parser(i),a.parseString(e,o)},n.parseStringPromise=function(e,t){var r,o;return"object"===("undefined"===typeof t?"undefined":(0,l["default"])(t))&&(r=t),o=new n.Parser(r),o.parseStringPromise(e)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(e,t,n){"use strict";(function(){var e;e=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(e){return e.toLowerCase()},n.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},n.stripPrefix=function(t){return t.replace(e,"")},n.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},n.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(void 0)},{}],249:[function(e,t,n){"use strict";(function(){var t,r,o,i,a=function(e,t){for(var n in t)s.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./defaults"),t=e("./builder"),o=e("./parser"),i=e("./processors"),n.defaults=r.defaults,n.processors=i,n.ValidationError=function(e){function t(e){this.message=e}return a(t,e),t}(Error),n.Builder=t.Builder,n.Parser=o.Parser,n.parseString=o.parseString,n.parseStringPromise=o.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(e,t,n){"use strict";(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(e,t,n){"use strict";(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/get-prototype-of"),o=u(r),i=e("babel-runtime/helpers/typeof"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}(function(){var e,n,r,i,s,u,l,f=[].slice,d={}.hasOwnProperty;e=function(){var e,t,n,r,o,i;if(i=arguments[0],o=2<=arguments.length?f.call(arguments,1):[],s(c["default"]))c["default"].apply(null,arguments);else for(e=0,n=o.length;e":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&(e.prefix===this.prefix&&(e.localName===this.localName&&e.value===this.value))},e}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=n.CData,this.value=this.stringify.cdata(r)}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.value=""}return r(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceData=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},t}(n)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=n.Comment,this.value=this.stringify.comment(r)}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/core-js/object/create"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r;n=e("./XMLDOMErrorHandler"),r=e("./XMLDOMStringList"),t.exports=function(){function e(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new n,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=(0,a["default"])(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new r((0,o["default"])(this.defaultParams))}}),e.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},e.prototype.canSetParameter=function(e,t){return!0},e.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},e}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(){}return e.prototype.handleError=function(e){throw new Error(e)},e}()}).call(void 0)},{}],260:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,n){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,n){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(void 0)},{}],261:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e}()}).call(void 0)},{}],262:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o,i,a,s){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==o)throw new Error("Missing DTD attribute name. "+this.debugInfo(r));if(!i)throw new Error("Missing DTD attribute type. "+this.debugInfo(r));if(!a)throw new Error("Missing DTD attribute default. "+this.debugInfo(r));if(0!==a.indexOf("#")&&(a="#"+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(r));if(s&&!a.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=n.AttributeDeclaration,this.attributeName=this.stringify.name(o),this.attributeType=this.stringify.dtdAttType(i),s&&(this.defaultValue=this.stringify.dtdAttDefault(s)),this.defaultValueType=a}return o(t,e),t.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD element name. "+this.debugInfo());o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.name(r),this.type=n.ElementDeclaration,this.value=this.stringify.dtdElementValue(o)}return o(t,e),t.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(e,t,n){"use strict";(function(){var n,r,o,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;o=e("./Utility").isObject,r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,i,a){if(t.__super__.constructor.call(this,e),null==i)throw new Error("Missing DTD entity name. "+this.debugInfo(i));if(null==a)throw new Error("Missing DTD entity value. "+this.debugInfo(i));if(this.pe=!!r,this.name=this.stringify.name(i),this.type=n.EntityDeclaration,o(a)){if(!a.pubID&&!a.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(i));if(a.pubID&&!a.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(i));if(this.internal=!1,null!=a.pubID&&(this.pubID=this.stringify.dtdPubID(a.pubID)),null!=a.sysID&&(this.sysID=this.stringify.dtdSysID(a.sysID)),null!=a.nData&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(i))}else this.value=this.stringify.dtdEntityValue(a),this.internal=!0}return i(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return null}}),t.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD notation name. "+this.debugInfo(r));if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(r));this.name=this.stringify.name(r),this.type=n.NotationDeclaration,null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return o(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),t.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(e,t,n){"use strict";(function(){var n,r,o,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;o=e("./Utility").isObject,r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,i,a){var s;t.__super__.constructor.call(this,e),o(r)&&(s=r,r=s.version,i=s.encoding,a=s.standalone),r||(r="1.0"),this.type=n.Declaration,this.version=this.stringify.xmlVersion(r),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=a&&(this.standalone=this.stringify.xmlStandalone(a))}return i(t,e),t.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l=function(e,t){for(var n in t)f.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;u=e("./Utility").isObject,c=e("./XMLNode"),n=e("./NodeType"),r=e("./XMLDTDAttList"),i=e("./XMLDTDEntity"),o=e("./XMLDTDElement"),a=e("./XMLDTDNotation"),s=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,r,o){var i,a,s,c,l,f;if(t.__super__.constructor.call(this,e),this.type=n.DocType,e.children)for(c=e.children,a=0,s=c.length;a=0)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var t,o,i,a;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==n.Element||(this.root=e),o="",e.type===n.Element){for(i in this.writerOptions.state=r.OpenTag,o=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,a=e.attribs,a)S.call(a,i)&&(t=a[i],o+=this.writer.attribute(t,this.writerOptions,this.currentLevel));o+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.InsideTag}else this.writerOptions.state=r.OpenTag,o=this.writer.indent(e,this.writerOptions,this.currentLevel)+""),o+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(o,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=r.CloseTag,t=e.type===n.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+""+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.None,this.onData(t,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.type=n.Dummy}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return""},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i,a,s,c,u,l,f=function(e,t){for(var n in t)d.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},d={}.hasOwnProperty;l=e("./Utility"),u=l.isObject,c=l.isFunction,s=l.getValue,a=e("./XMLNode"),n=e("./NodeType"),r=e("./XMLAttribute"),i=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,r,o){var i,a,s,c;if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(r),this.type=n.Element,this.attribs={},this.schemaTypeInfo=null,null!=o&&this.attribute(o),e.type===n.Document&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this,e.children))for(c=e.children,a=0,s=c.length;a=o;n=0<=o?++r:--r)if(!this.attribs[n].isEqualNode(e.attribs[n]))return!1;return!0},t}(a)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return(0,o["default"])(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[(0,o["default"])(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l,f,d,p,h,m,b,g,y,v={}.hasOwnProperty;y=e("./Utility"),g=y.isObject,b=y.isFunction,m=y.isEmpty,h=y.getValue,u=null,o=null,i=null,a=null,s=null,d=null,p=null,f=null,c=null,r=null,l=null,n=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=e("./XMLElement"),o=e("./XMLCData"),i=e("./XMLComment"),a=e("./XMLDeclaration"),s=e("./XMLDocType"),d=e("./XMLRaw"),p=e("./XMLText"),f=e("./XMLProcessingInstruction"),c=e("./XMLDummy"),r=e("./NodeType"),l=e("./XMLNodeList"),e("./XMLNamedNodeMap"),n=e("./DocumentPosition"))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var e,t,n,o,i;if(this.nodeType===r.Element||this.nodeType===r.DocumentFragment){for(i="",o=this.children,t=0,n=o.length;t":(null!=(n=this.parent)?n.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},t.prototype.ele=function(e,t,n){return this.element(e,t,n)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(e,t){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(e){var t,r;return t=this,t===e?0:this.document()!==e.document()?(r=n.Disconnected|n.ImplementationSpecific,Math.random()<.5?r|=n.Preceding:r|=n.Following,r):t.isAncestor(e)?n.Contains|n.Preceding:t.isDescendant(e)?n.Contains|n.Following:t.isPreceding(e)?n.Preceding:n.Following},t.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var t,n,r;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=n=0,r=this.children.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},t.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},t.prototype.isDescendant=function(e){var t,n,r,o,i;for(i=this.children,r=0,o=i.length;rn},t.prototype.treePosition=function(e){var t,n;return n=0,t=!1,this.foreachTreeNode(this.document(),(function(r){if(n++,!t&&r===e)return t=!0})),t?n:-1},t.prototype.foreachTreeNode=function(e,t){var n,r,o,i,a;for(e||(e=this.document()),i=e.children,r=0,o=i.length;r0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,n)),t.state=r.InsideTag,s=e.children,i=0,a=s.length;i"),this.stream.write(this.endline(e,t,n)),t.state=r.None,this.closeNode(e,t,n)},t.prototype.element=function(e,t,o){var i,s,c,u,l,f,d,p,h;for(d in o||(o=0),this.openNode(e,t,o),t.state=r.OpenTag,this.stream.write(this.indent(e,t,o)+"<"+e.name),p=e.attribs,p)a.call(p,d)&&(i=p[d],this.attribute(i,t,o));if(c=e.children.length,u=0===c?null:e.children[0],0===c||e.children.every((function(e){return(e.type===n.Text||e.type===n.Raw)&&""===e.value})))t.allowEmpty?(this.stream.write(">"),t.state=r.CloseTag,this.stream.write("")):(t.state=r.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==c||u.type!==n.Text&&u.type!==n.Raw||null==u.value){for(this.stream.write(">"+this.endline(e,t,o)),t.state=r.InsideTag,h=e.children,l=0,f=h.length;l")}else this.stream.write(">"),t.state=r.InsideTag,t.suppressPrettyCount++,!0,this.writeChildNode(u,t,o+1),t.suppressPrettyCount--,!1,t.state=r.CloseTag,this.stream.write("");return this.stream.write(this.endline(e,t,o)),t.state=r.None,this.closeNode(e,t,o)},t.prototype.processingInstruction=function(e,n,r){return this.stream.write(t.__super__.processingInstruction.call(this,e,n,r))},t.prototype.raw=function(e,n,r){return this.stream.write(t.__super__.raw.call(this,e,n,r))},t.prototype.text=function(e,n,r){return this.stream.write(t.__super__.text.call(this,e,n,r))},t.prototype.dtdAttList=function(e,n,r){return this.stream.write(t.__super__.dtdAttList.call(this,e,n,r))},t.prototype.dtdElement=function(e,n,r){return this.stream.write(t.__super__.dtdElement.call(this,e,n,r))},t.prototype.dtdEntity=function(e,n,r){return this.stream.write(t.__super__.dtdEntity.call(this,e,n,r))},t.prototype.dtdNotation=function(e,n,r){return this.stream.write(t.__super__.dtdNotation.call(this,e,n,r))},t}(o)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(e,t,n){"use strict";(function(){var n,r=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return r(t,e),t.prototype.document=function(e,t){var n,r,o,i,a;for(t=this.filterOptions(t),i="",a=e.children,r=0,o=a.length;r","]]]]>"),this.assertLegalChar(e))},t.prototype.comment=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},t.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},t.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.insValue=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},t.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},t.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},t.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t,n;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t))throw new Error("Invalid character in string: "+e+" at index "+n.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t)))throw new Error("Invalid character in string: "+e+" at index "+n.index);return e},t.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw new Error("Invalid character in name");return e},t.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(//g,">").replace(/\r/g," "))},t.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/0)?new Array(r).join(t.indent):""},e.prototype.endline=function(e,t,n){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,n){var r;return this.openAttribute(e,t,n),r=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,n),r},e.prototype.cdata=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.comment=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"\x3c!-- ",t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=" --\x3e"+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.declaration=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"",o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.docType=function(e,t,n){var o,i,a,s,c;if(n||(n=0),this.openNode(e,t,n),t.state=r.OpenTag,s=this.indent(e,t,n),s+="0){for(s+=" [",s+=this.endline(e,t,n),t.state=r.InsideTag,c=e.children,i=0,a=c.length;i",s+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),s},e.prototype.element=function(e,t,o){var a,s,c,u,l,f,d,p,h,m,b,g,y,v;for(h in o||(o=0),m=!1,b="",this.openNode(e,t,o),t.state=r.OpenTag,b+=this.indent(e,t,o)+"<"+e.name,g=e.attribs,g)i.call(g,h)&&(a=g[h],b+=this.attribute(a,t,o));if(c=e.children.length,u=0===c?null:e.children[0],0===c||e.children.every((function(e){return(e.type===n.Text||e.type===n.Raw)&&""===e.value})))t.allowEmpty?(b+=">",t.state=r.CloseTag,b+=""+this.endline(e,t,o)):(t.state=r.CloseTag,b+=t.spaceBeforeSlash+"/>"+this.endline(e,t,o));else if(!t.pretty||1!==c||u.type!==n.Text&&u.type!==n.Raw||null==u.value){if(t.dontPrettyTextNodes)for(y=e.children,l=0,d=y.length;l"+this.endline(e,t,o),t.state=r.InsideTag,v=e.children,f=0,p=v.length;f",m&&t.suppressPrettyCount--,b+=this.endline(e,t,o),t.state=r.None}else b+=">",t.state=r.InsideTag,t.suppressPrettyCount++,m=!0,b+=this.writeChildNode(u,t,o+1),t.suppressPrettyCount--,m=!1,t.state=r.CloseTag,b+=""+this.endline(e,t,o);return this.closeNode(e,t,o),b},e.prototype.writeChildNode=function(e,t,r){switch(e.type){case n.CData:return this.cdata(e,t,r);case n.Comment:return this.comment(e,t,r);case n.Element:return this.element(e,t,r);case n.Raw:return this.raw(e,t,r);case n.Text:return this.text(e,t,r);case n.ProcessingInstruction:return this.processingInstruction(e,t,r);case n.Dummy:return"";case n.Declaration:return this.declaration(e,t,r);case n.DocType:return this.docType(e,t,r);case n.AttributeDeclaration:return this.dtdAttList(e,t,r);case n.ElementDeclaration:return this.dtdElement(e,t,r);case n.EntityDeclaration:return this.dtdEntity(e,t,r);case n.NotationDeclaration:return this.dtdNotation(e,t,r);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"",o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.raw=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n),t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.text=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n),t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdAttList=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdElement=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdEntity=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdNotation=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.openNode=function(e,t,n){},e.prototype.closeNode=function(e,t,n){},e.prototype.openAttribute=function(e,t,n){},e.prototype.closeAttribute=function(e,t,n){},e}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l,f;f=e("./Utility"),u=f.assign,l=f.isFunction,o=e("./XMLDOMImplementation"),i=e("./XMLDocument"),a=e("./XMLDocumentCB"),c=e("./XMLStringWriter"),s=e("./XMLStreamWriter"),n=e("./NodeType"),r=e("./WriterState"),t.exports.create=function(e,t,n,r){var o,a;if(null==e)throw new Error("Root element needs a name.");return r=u({},t,n,r),o=new i(r),a=o.element(e),r.headless||(o.declaration(r),null==r.pubID&&null==r.sysID||o.dtd(r)),a},t.exports.begin=function(e,t,n){var r;return l(e)&&(r=[e,t],t=r[0],n=r[1],e={}),t?new a(e,t,n):new i(e)},t.exports.stringWriter=function(e){return new c(e)},t.exports.streamWriter=function(e,t){return new s(e,t)},t.exports.implementation=new o,t.exports.nodeType=n,t.exports.writerState=r}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(e,t,n){t.exports=o;var r=Object.prototype.hasOwnProperty;function o(){for(var e={},t=0;ts?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,f=0;f>16)+(t>>16)+(n>>16);return r<<16|65535&n}function f(e,t){return e<>>32-t}t.exports=function(e){return r.hash(e,o,16)}},{"./helpers":285}],287:[function(e,t,n){"use strict";var r=e("./helpers");function o(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n=Array(80),r=1732584193,o=-271733879,u=-1732584194,l=271733878,f=-1009589776,d=0;d>16)+(t>>16)+(n>>16);return r<<16|65535&n}function c(e,t){return e<>>32-t}t.exports=function(e){return r.hash(e,o,20,!0)}},{"./helpers":285}],288:[function(e,t,n){"use strict";t.exports=function(){return function(){}}},{}],289:[function(e,t,n){(function(n){"use strict";var r=e("babel-runtime/helpers/typeof"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("stream"),s=a.Stream,c=e("../lib/common/utils/isArray"),u=c.isArray;function l(e){return e instanceof s}t.exports.string=function(e){return"string"===typeof e},t.exports.array=u,t.exports.buffer=n.isBuffer,t.exports.writableStream=function(e){return l(e)&&"function"===typeof e._write&&"object"===(0,o["default"])(e._writableState)}}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(e,t,n){"use strict";n.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(t){return e}},n.escape=e("escape-html"),n.timestamp=function(e){if(e){var t=e;return"string"===typeof t&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(e,t,n){(function(t,r){"use strict";var o=e("babel-runtime/core-js/json/stringify"),i=c(o),a=e("babel-runtime/helpers/typeof"),s=c(a);function c(e){return e&&e.__esModule?e:{default:e}}var u,l=e("util"),f=e("url"),d=e("http"),p=e("https"),h=e("debug")("urllib"),m=e("humanize-ms"),b=0,g=Math.pow(2,31)-10,y=/^https?:\/\//i;function v(e,t){return void 0===e?t:e}function _(e,t){return function(n,r,o){if(n)return t(n);e({data:r,status:o.statusCode,headers:o.headers,res:o})}}n.TIMEOUTS=[m("300s"),m("300s")];var w=["json","text"];n.request=function(t,r,o){return 2===arguments.length&&"function"===typeof r&&(o=r,r=null),"function"===typeof o?n.requestWithCallback(t,r,o):(u||(u=e("any-promise")),new u((function(e,o){n.requestWithCallback(t,r,_(e,o))})))},n.requestWithCallback=function(o,a,c){if(!o||"string"!==typeof o&&"object"!==("undefined"===typeof o?"undefined":(0,s["default"])(o))){var u=l.format("expect request url to be a string or a http request options, but got %j",o);throw new Error(u)}2===arguments.length&&"function"===typeof a&&(c=a,a=null),a=a||{},b>=g&&(b=0);var _=++b;a.requestUrls=a.requestUrls||[];var x={requestId:_,url:o,args:a,ctx:a.ctx};a.emitter&&a.emitter.emit("request",x),a.timeout=a.timeout||n.TIMEOUTS,a.maxRedirects=a.maxRedirects||10,a.streaming=a.streaming||a.customResponse;var E,j=Date.now();"string"===typeof o?(y.test(o)||(o="http://"+o),E=f.parse(o)):E=o;var S=(a.type||a.method||E.method||"GET").toUpperCase(),T=E.port||80,O=d,k=v(a.agent,n.agent),N=a.fixJSONCtlChars;"https:"===E.protocol&&(O=p,k=v(a.httpsAgent,n.httpsAgent),E.port||(T=443));var C={host:E.hostname||E.host||"localhost",path:E.path||"/",method:S,port:T,agent:k,headers:a.headers||{},lookup:a.lookup};Array.isArray(a.timeout)?C.requestTimeout=a.timeout[a.timeout.length-1]:"undefined"!==typeof a.timeout&&(C.requestTimeout=a.timeout);for(var I=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],A=0;A=0)return h("Request#%d %s: got digest auth header WWW-Authenticate: %s",_,o,f),a.headers=a.headers||{},a.headers.Authorization=digestAuthHeader(C.method,C.path,f,a.digestAuth),h("Request#%d %s: auth with digest header: %s",_,o,a.headers.Authorization),s.headers["set-cookie"]&&(a.headers.Cookie=s.headers["set-cookie"].join(";")),n.requestWithCallback(o,a,u)}var d=Date.now()-j;$&&($.contentDownload=d),h("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",d,H,W,C.method,C.host,C.path,V,$);var p={status:W,statusCode:W,headers:l,size:H,aborted:z,rt:d,keepAliveSocket:V,data:r,requestUrls:a.requestUrls,timing:$,remoteAddress:K,remotePort:Y};if(e){var m="";k&&"function"===typeof k.getCurrentStatus&&(m=", agent status: "+(0,i["default"])(k.getCurrentStatus())),e.message+=", "+C.method+" "+o+" "+W+" (connected: "+X+", keepalive socket: "+V+m+")\nheaders: "+(0,i["default"])(l),e.data=r,e.path=C.path,e.status=W,e.headers=l,e.res=p}u(e,r,a.streaming?s:p),a.emitter&&(x.url=o,x.socket=oe&&oe.connection,x.options=C,x.size=B,a.emitter.emit("response",{requestId:_,error:e,ctx:a.ctx,req:x,res:p}))}function ee(e){var t=null;if(a.followRedirect&&statuses.redirect[e.statusCode]){a._followRedirectCount=(a._followRedirectCount||0)+1;var r=e.headers.location;if(r){if(!(a._followRedirectCount>a.maxRedirects)){var i=a.formatRedirectUrl?a.formatRedirectUrl(o,r):f.resolve(o,r);h("Request#%d %s: `redirected` from %s to %s",_,C.path,o,i),Z(),a.headers&&a.headers.Host&&y.test(r)&&(a.headers.Host=null);var s=c;return c=null,n.requestWithCallback(i,a,s),{redirect:!0,error:null}}t=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+o),t.name="MaxRedirectError"}else t=new Error("Got statusCode "+e.statusCode+" but cannot resolve next location from headers"),t.name="FollowRedirectError"}return{redirect:!1,error:t}}function te(e,t,n){var r=e.headers["content-encoding"];return n(null,t,r)}a.timing&&($={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),C.headers["User-Agent"]||C.headers["user-agent"]||(C.headers["User-Agent"]=navigator.userAgent),a.gzip&&(C.headers["Accept-Encoding"]||C.headers["accept-encoding"]||(C.headers["Accept-Encoding"]="gzip"));var ne,re,oe,ie=a.writeStream;function ae(e){if($&&($.waiting=Date.now()-j),h("Request#%d %s `req response` event emit: status %d, headers: %j",_,o,e.statusCode,e.headers),a.streaming){var t=ee(e);return t.redirect?void e.resume():t.error?(e.resume(),Q(t.error,null,e)):Q(null,null,e)}if(e.on("close",(function(){h("Request#%d %s: `res close` event emit, total size %d",_,o,H)})),e.on("error",(function(){h("Request#%d %s: `res error` event emit, total size %d",_,o,H)})),e.on("aborted",(function(){z=!0,h("Request#%d %s: `res aborted` event emit, total size %d",_,o,H)})),ie){t=ee(e);return t.redirect?void e.resume():t.error?(e.resume(),ie.end(),Q(t.error,null,e)):(!1===a.consumeWriteStream?e.on("end",Q.bind(null,null,null,e)):isNode010||isNode012?first([[ie,"close"],[e,"aborted"]],(function(t,n,r){h("Request#%d %s: writeStream or res %s event emitted",_,o,r),Q(G||null,null,e)})):ie.on("close",(function(){h("Request#%d %s: writeStream close event emitted",_,o),Q(G||null,null,e)})),e.pipe(ie))}var n=[];e.on("data",(function(e){h("Request#%d %s: `res data` event emit, size %d",_,o,e.length),H+=e.length,n.push(e)})),e.on("end",(function(){var t=r.concat(n,H);if(h("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",_,o,H,e._dumped),G)return Q(G,t,e);var i=ee(e);if(i.error)return Q(i.error,t,e);i.redirect||te(e,t,(function(n,r,i){if(n)return Q(n,t,e);if(!i&&w.indexOf(a.dataType)>=0){try{r=decodeBodyByCharset(r,e)}catch(c){return h("decodeBodyByCharset error: %s",c),Q(null,r,e)}if("json"===a.dataType)if(0===H)r=null;else{var s=parseJSON(r,N);s.error?n=s.error:r=s.data}}z&&h("Request#%d %s: Remote socket was terminated before `response.end()` was called",_,o),Q(n,r,e)}))}))}function se(){h("Connect timer ticking, timeout: %d",ne),q=setTimeout((function(){q=null,-1===W&&(W=-2);var e="Connect timeout for "+ne+"ms",t="ConnectionTimeoutError";oe.socket||(t="SocketAssignTimeoutError",e+=", working sockets is full"),G=new Error(e),G.name=t,G.requestId=_,h("ConnectTimeout: Request#%d %s %s: %s, connected: %s",_,o,G.name,e,X),ue()}),ne)}function ce(){h("Response timer ticking, timeout: %d",re),U=setTimeout((function(){U=null;var e="Response timeout for "+re+"ms",t="ResponseTimeoutError";G=new Error(e),G.name=t,G.requestId=_,h("ResponseTimeout: Request#%d %s %s: %s, connected: %s",_,o,G.name,e,X),ue()}),re)}h("Request#%d %s %s with headers %j, options.path: %s",_,S,o,C.headers,C.path),a.requestUrls.push(o),Array.isArray(a.timeout)?(ne=m(a.timeout[0]),re=m(a.timeout[1])):ne=re=m(a.timeout),h("ConnectTimeout: %d, ResponseTimeout: %d",ne,re),C.mode=a.mode?a.mode:"";try{oe=O.request(C,ae)}catch(le){return Q(le)}function ue(){h("Request#%d %s abort, connected: %s",_,o,X),oe.socket||(G.noSocket=!0,Q(G)),oe.abort()}return"undefined"===typeof window?se():oe.on("requestTimeout",(function(){-1===W&&(W=-2);var e="Connect timeout for "+ne+"ms",t="ConnectionTimeoutError";G=new Error(e),G.name=t,G.requestId=_,ue()})),$&&oe.on("finish",(function(){$.requestSent=Date.now()-j})),oe.once("socket",(function(e){$&&($.queuing=Date.now()-j),isNode010&&e.socket&&(e=e.socket);var t=e.readyState;if("opening"===t)return e.once("lookup",(function(e,t,n){h("Request#%d %s lookup: %s, %s, %s",_,o,e,t,n),$&&($.dnslookup=Date.now()-j),t&&(K=t)})),void e.once("connect",(function(){$&&($.connected=Date.now()-j),J(),ce(),h("Request#%d %s new socket connected",_,o),X=!0,K||(K=e.remoteAddress),Y=e.remotePort}));h("Request#%d %s reuse socket connected, readyState: %s",_,o,t),X=!0,V=!0,K||(K=e.remoteAddress),Y=e.remotePort,J(),ce()})),oe.on("error",(function(e){"Error"!==e.name&&"TypeError"!==e.name||(e.name=X?"ResponseError":"RequestError"),e.message+=' (req "error")',h("Request#%d %s `req error` event emit, %s: %s",_,o,e.name,e.message),Q(G||e)})),ie&&ie.once("error",(function(e){e.message+=' (writeStream "error")',G=e,h("Request#%d %s `writeStream error` event emit, %s: %s",_,o,e.name,e.message),ue()})),a.stream?(a.stream.pipe(oe),a.stream.once("error",(function(e){e.message+=' (stream "error")',G=e,h("Request#%d %s `readStream error` event emit, %s: %s",_,o,e.name,e.message),ue()}))):oe.end(P),oe.requestId=_,oe}}).call(this,e("_process"),e("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)}))}).call(this,__webpack_require__("UywP"))},xKgJ:function(e,t,n){"use strict";n.d(t,"o",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"s",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return y})),n.d(t,"q",(function(){return v})),n.d(t,"h",(function(){return _})),n.d(t,"p",(function(){return w})),n.d(t,"a",(function(){return x})),n.d(t,"l",(function(){return E})),n.d(t,"m",(function(){return j})),n.d(t,"k",(function(){return S})),n.d(t,"n",(function(){return T})),n.d(t,"t",(function(){return O}));var r,o,i=n("9kvl");(function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["CertifiedTeacher"]=5]="CertifiedTeacher",e[e["TrainingProduction"]=8]="TrainingProduction",e[e["UncertifiedTeacher"]=12]="UncertifiedTeacher",e[e["Student"]=15]="Student"})(r||(r={})),function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["Admin"]=5]="Admin",e[e["Teacher"]=8]="Teacher",e[e["Assistant"]=12]="Assistant",e[e["Student"]=15]="Student"}(o||(o={}));var a=function(e){var t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return e.some((function(e){return e==(null===r||void 0===r?void 0:r.role)}))},s=function(e){var t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return!!(null===r||void 0===r?void 0:r.own)||e.some((function(e){var t;return e==(null===r||void 0===r||null===(t=r.course)||void 0===t?void 0:t.course_role)}))},c=function(){var e=Object(i["b"])()._store.getState(),t=e.user,n=t.userInfo;return n.main_site},u=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_is_end},l=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant])},f=function(){return s([o.SuperAdmin,o.Teacher,o.Admin,o.Assistant,o.Operation])},d=function(){return s([o.SuperAdmin,o.Teacher,o.Admin])},p=function(){return s([o.SuperAdmin])},h=function(){return s([o.SuperAdmin,o.Operation,o.Admin])},m=function(){return s([o.SuperAdmin,o.Operation])},b=function(){return s([o.SuperAdmin,o.Admin])},g=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher])},y=function(){return s([o.Assistant])},v=function(){return s([o.Student])},_=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant,o.Student])},w=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===(null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_role)},x=function(){return a([r.SuperAdmin,r.Operation,r.CertifiedTeacher,r.TrainingProduction])},E=function(){return a([r.SuperAdmin])},j=function(){return a([r.SuperAdmin,r.Operation])},S=function(){return a([r.Student])},T=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.login)},O=function(){var e=Object(i["b"])()._store.getState(),t=e.user;return t.userInfo}}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[52,4,5,6,7,9,10,12,14],{"1vsH":function(e,t,n){"use strict";n.d(t,"i",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"C",(function(){return g})),n.d(t,"B",(function(){return y})),n.d(t,"D",(function(){return v})),n.d(t,"E",(function(){return _})),n.d(t,"s",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"p",(function(){return E})),n.d(t,"o",(function(){return j})),n.d(t,"A",(function(){return S})),n.d(t,"j",(function(){return k})),n.d(t,"z",(function(){return N})),n.d(t,"u",(function(){return C})),n.d(t,"l",(function(){return A})),n.d(t,"x",(function(){return D})),n.d(t,"n",(function(){return M})),n.d(t,"d",(function(){return P})),n.d(t,"b",(function(){return L})),n.d(t,"t",(function(){return B})),n.d(t,"y",(function(){return F})),n.d(t,"w",(function(){return q})),n.d(t,"m",(function(){return U})),n.d(t,"v",(function(){return G})),n.d(t,"q",(function(){return X}));var r=n("zjzt"),o=n("ZZRV"),i=n.n(o),a=n("xKgJ"),s=n("vcnW"),c=n.n(s),u=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],l=function(e){var t,n=(t={},Object(r["a"])(t,-1,"\u91cd\u505a\u4e2d"),Object(r["a"])(t,0,"\u672a\u5f00\u542f"),Object(r["a"])(t,1,"\u672a\u901a\u5173"),Object(r["a"])(t,2,"\u6309\u65f6\u901a\u5173"),t);return n[e]||"\u8fdf\u4ea4\u901a\u5173"},f=function(e){var t,n,o,a=(t={},Object(r["a"])(t,-1,{name:"\u91cd\u505a\u4e2d",class:"c-orange"}),Object(r["a"])(t,0,{name:"\u672a\u5f00\u542f",class:"c-black"}),Object(r["a"])(t,1,{name:"\u672a\u901a\u5173",class:"c-red"}),Object(r["a"])(t,2,{name:"\u6309\u65f6\u901a\u5173",class:"c-green"}),Object(r["a"])(t,3,{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}),t);return i.a.createElement("span",{className:null===a||void 0===a||null===(n=a[e.status])||void 0===n?void 0:n["class"]},null===a||void 0===a||null===(o=a[e.status])||void 0===o?void 0:o["name"])},d=function(e){var t=e.status,n={0:{class:"tag-style bg-blue ml10",name:"\u5f85\u9009\u4e2d"},1:{class:"tag-style bg-blue ml10",name:"\u5f85\u786e\u8ba4"},2:{class:"tag-style bg-pink ml10",name:"\u5df2\u786e\u8ba4"}};try{return i.a.createElement("span",{className:n[t]["class"]},n[t]["name"])}catch(r){console.log("utils.StatusGraduationProjectTags",e.status)}},p={1:"\u672a\u53d1\u5e03",2:"\u8003\u8bd5\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},h={1:"\u672a\u53d1\u5e03",2:"\u63d0\u4ea4\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},m=function(e){var t={"\u5df2\u5f00\u542f\u9632\u4f5c\u5f0a":{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},"\u516c\u5f00":{class:"tag-style bg-blue ml10"},"\u5df2\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-green ml10"},"\u672a\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-pink ml10"},"\u672a\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u533f\u540d\u4f5c\u54c1":{class:"tag-style bg-cyan ml10"},"\u5df2\u9009\u62e9":{class:"tag-style bg-grey-ede ml10"},"\u5df2\u7ed3\u675f":{class:"tag-style bg-grey-ede ml10"},"\u63d0\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u533f\u8bc4\u4e2d":{class:"tag-style bg-blue ml10"},"\u7533\u8bc9\u4e2d":{class:"tag-style bg-blue ml10"},"\u8003\u8bd5\u4e2d":{class:"tag-style bg-light-blue ml10"},"\u8865\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u8bc4\u9605\u4e2d":{class:"tag-style bg-blue ml10"},"\u5f85\u9009\u4e2d":{class:"tag-style bg-blue ml10"},"\u4ea4\u53c9\u8bc4\u9605\u4e2d":{class:"tag-style bg-light-orange ml10"},"\u5df2\u5f00\u542f\u4ea4\u53c9\u8bc4\u9605":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u786e\u8ba4":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u5904\u7406":{class:"tag-style bg-lightblue-purple ml10"},"\u79c1\u6709":{class:"tag-style bg-lightblue-purple ml10"},"\u672a\u63d0\u4ea4":{class:"tag-style bg-lightblue-purple ml10"},"\u5df2\u786e\u8ba4":{class:"tag-style bg-light-pink ml10"},"\u5df2\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u5df2\u622a\u6b62":{class:"tag-style bg-light-pink ml10"},"\u5f00\u53d1\u8bfe\u7a0b":{class:"tag-style bg-orange ml10"},"\u5df2\u5f00\u64ad":{class:"tag-style-border border-green c-green ml10"},"\u672a\u5f00\u64ad":{class:"tag-style-border border-light-black ml10"},"\u6309\u65f6\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u8fdf\u4ea4\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u5f00\u542f":{class:"tag-style-border border-light-black ml10"}},n=[];e.is_random&&n.push(i.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((function(e,r){n.push(i.a.createElement("span",{key:r,className:t[e]&&t[e]["class"]},e))}))}catch(r){console.log("utils.status.tag:",r,e.status)}return n},b=function(e){var t,n,r={0:{name:"\u672a\u63d0\u4ea4",class:"c-black"},1:{name:"\u6309\u65f6\u63d0\u4ea4",class:"c-green"},2:{name:"\u5ef6\u65f6\u63d0\u4ea4",class:"c-red"}};return i.a.createElement("span",{className:null===(t=r[e.status])||void 0===t?void 0:t["class"]},null===(n=r[e.status])||void 0===n?void 0:n["name"])},g=function(e){e=new Date(e).getTime();var t=6e4,n=60*t,r=24*n,o="",i=(new Date).getTime(),a=i-e;if(a<0)return console.log("\u65f6\u95f4\u4e0d\u5bf9\u52b2,\u670d\u52a1\u5668\u521b\u5efa\u65f6\u95f4\u4e0e\u5f53\u524d\u65f6\u95f4\u4e0d\u540c\u6b65"),"\u521a\u521a";var s=parseInt(a/r,10),c=parseInt(a/n,10),u=parseInt(a/t,10);return o=s>30?""+y(e,"yyyy-MM-dd"):s>1?s+"\u5929\u524d":1==s?"\u6628\u5929":c>=1?c+"\u5c0f\u65f6\u524d":u>=5?u+"\u5206\u949f\u524d":"\u521a\u521a",o},y=function(e,t){"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},r=[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]];for(var o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,r[RegExp.$1.length-1][e.getDay()])),n)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return t},v=function(e){if(!e||e<0)return"0\u79d2";console.log("time:",e);var t=60,n=60*t,r=24*n,o=e/r,i=e/n,a=e/t;return o>=1?parseInt(o.toString())+"\u5929"+Math.floor(i%24)+"\u65f6"+Math.floor(a%60)+"\u5206"+Math.floor(e%60)+"\u79d2":i>1?parseInt(i.toString())+"\u65f6"+Math.floor(a%60)+"\u5206"+Math.floor(e%60)+"\u79d2":a>=1?parseInt(a.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":Math.ceil(e)+"\u79d2"},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0;if(e){n=e.length;for(var r=0;r=55296&&o<=56319&&(n--,r++)}}return n<=t},w=function(e,t,n){if(t){var r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,o=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,i=o.test(t),a=r.test(t);(!0===i||!0===a||t.length<2||t.length>=21)&&n("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}n()},x=function(e,t,n){if(t){var r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,o=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,i=o.test(t),a=r.test(t);(!0===i||!0===a||t.length<2||t.length>=11)&&n("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}n()},E=function(e){if(!e)return"";for(var t=e.length-1,n="",r=0;r0){n=!1;break}return n}var I,A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t||void 0===t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},D=function(e){var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},P=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",e+":"+t},L=function(){var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",(new Date).toLocaleDateString().replace(/\//g,"-")+" "+e+":"+t};(function(e){e["Number"]="Number",e["String"]="String",e["Boolean"]="Boolean",e["Object"]="Object",e["Array"]="Array",e["Function"]="Function"})(I||(I={}));var R=function(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)},B=function(e){return R(e)===I.Array?0===e.length:R(e)===I.Object?0===Object.keys(e).length:!e},F=function(e,t){for(var n=[],r=e;r1&&void 0!==arguments[1]?arguments[1]:12,n=t/2-2,r=t/2+3;return e.length>t?e.substr(0,n)+"..."+e.substr(r,t):e},U=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},G=function(e){return void 0===e||null===e};var X=function(e){switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(e.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(e.container_id));case"DealProject":return window.open("/projects/".concat(e.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(e.container_id));case"Poll":switch(e.parent_container_type){case"CommitPoll":return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));default:return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open("/projects/".concat(e.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(t=Object(a["t"])())||void 0===t?void 0:t.login,"/videos")):"";var t;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}}},"7ahc":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("55MS"),o=n("1gHQ"),i=(n("MPZO"),n("bnk9")),a=(n("EkPb"),n("7X0+")),s=n("GZha"),c=(n("VmQ4"),n("QeCE")),u=n("ZZRV"),l=n.n(u),f=n("M0ff"),d=n.n(f),p=(n("4X1q"),c["a"].Option),h={labelCol:{span:4},wrapperCol:{span:20}},m={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function b(e){var t=e.value,n=e.onChange,o=e.mode,i=e.options,a=void 0===i?{}:i,c=Object(u["useRef"])(),f=Object(u["useState"])(),p=Object(s["a"])(f,2),h=p[0],m=p[1];return Object(u["useEffect"])((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),Object(u["useEffect"])((function(){h&&h.setOption("mode",o)}),[h,o]),Object(u["useEffect"])((function(){h&&t!==h.getValue()&&h.setValue(t||"")}),[h,t]),Object(u["useEffect"])((function(){if(c.current&&!h){var e=d.a.fromTextArea(c.current,Object(r["a"])({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0},a));m(e)}}),[c.current,h]),l.a.createElement("div",{className:"my-codemirror-container"},l.a.createElement("textarea",{ref:c}))}t["b"]=function(e){var t=e.callback,n=e.onCancel,r=Object(u["useState"])("python"),f=Object(s["a"])(r,2),d=f[0],g=f[1];function y(e){g(m[e][1])}function v(e){t(e)}return l.a.createElement(a["a"],Object(o["a"])({},h,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:v}),l.a.createElement(a["a"].Item,{label:"\u4ee3\u7801\u8bed\u8a00",name:"language"},l.a.createElement(c["a"],{onChange:y},Object.keys(m).map((function(e){return l.a.createElement(p,{key:e,value:e},m[e][0])})))),l.a.createElement(a["a"].Item,{label:"\u4ee3\u7801\u5185\u5bb9",name:"content",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4ee3\u7801\u5185\u5bb9"}]},l.a.createElement(b,{mode:d})),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(i["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),l.a.createElement(i["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))}},"9Bee":function(e,t,n){"use strict";var r=n("ZZRV"),o=n.n(r),i=(n("Sawj"),n("GZha")),a=n("tVQ9"),s=n.n(a),c=n("PRXW");function u(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var n=Object(i["a"])(t,1),o=n[0];return o.length>=r.length?e.slice(r.length):e})).join("\n")}var l=[],f=["
      "],d=new s.a.Renderer,p=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function h(){l.length=0,f=["
        "]}function m(e,t,n,r){if(t>=e.length||e[t].level<=n)return t;var o=e[t];r.push("
      • "+o.text+""),t++;var i=[];return t=m(e,t,o.level,i),i.length>0&&(r.push("
          "),i.forEach((function(e){r.push(e)})),r.push("
        ")),r.push("
      • "),t=m(e,t,n,r),t}function b(){return m(l,0,0,f),f.push("
      "),f.join("")}var g={heading:function(e){var t=p.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=u(n,t[3]||""),o=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(o)>=0){var i=_(),a=r;r=i,w[i]={type:"block",expression:a}}return{type:"code",raw:n,lang:o,text:r}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,v=0,_=function(){return"__special_katext_id_".concat(v++,"__")},w={};function x(){return w}function E(){v=0,w={}}function j(e){return e=e.replace(y,(function(e,t){var n=_();return w[n]={type:"inline",expression:t},n})),e}var S=d.listitem;d.listitem=function(e){return S(j(e))};var T=d.paragraph;d.paragraph=function(e){return T(j(e))};var O=d.tablecell;d.tablecell=function(e,t){return O(j(e),t)},d.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];return r?["latex","katex","math"].indexOf(r)>=0?"

      ".concat(e,"

      "):'
      ').concat(n?e:Object(c["escape"])(e,!0),"
      \n"):'
      '+(n?e:Object(c["escape"])(e,!0))+"
      "},d.heading=function(e,t,n){var r=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return l.push({anchor:r,level:t,text:e}),"'+e+""},s.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),s.a.use({tokenizer:g,renderer:d});var k=s.a,N=(n("8+LE"),n("ZRDM")),C=n.n(N),I=n("saPB"),A=/]*>/g;function D(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}t["a"]=function(e){var t=e.value,n=void 0===t?"":t,i=e.className,a=e.style,s=void 0===a?{}:a,c=String(n),u=Object(r["useMemo"])((function(){var e=k(c),t=x();return c.match(/\[TOC\]/)&&(e=e.replace("

      [TOC]

      ",b()),h()),e=e.replace(/(__special_katext_id_\d+__)/g,(function(e,n){var r=t[n],o=r.type,i=r.expression;return Object(I["renderToString"])(D(i)||"",{displayMode:"block"===o,throwOnError:!1,output:"html"})})),e=e.replace(/\u2581/g,"\u2581\u2581\u2581"),E(),C.a.sanitize(e)}),[c]),l=Object(r["useRef"])();function f(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.startsWith("#")){e.preventDefault();var r=document.getElementById(n.replace("#",""));r&&r.scrollIntoView(!0)}}}return Object(r["useEffect"])((function(){if(l.current&&u&&u.match(A)&&window.PR.prettyPrint(),l.current)return l.current.addEventListener("click",f),function(){l.current.removeEventListener("click",f),E(),h()}}),[u,l.current,f]),o.a.createElement("div",{ref:l,style:s,className:"".concat(i||""," markdown-body"),dangerouslySetInnerHTML:{__html:u}})}},"9VGf":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ZZRV");function o(e,t){var n=Object(r["useRef"])();Object(r["useEffect"])((function(){n.current=e})),Object(r["useEffect"])((function(){function e(){n.current()}if(null!==t){var r=setInterval(e,t);return function(){return clearInterval(r)}}}),[t])}},BjJ7:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n("m3rI");function o(e){var t=!0;if(e.length>0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase();if(!F(n))throw TypeError("Stringified UUID is invalid");return n}var X=G;function V(e,t,n){e=e||{};var r=e.random||(e.rng||L)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return X(r)}var H=V,W=n("DR4n"),z=n.n(W),K=n("piNp"),Y=function(e,t){var n=e.split(","),r=n[0].match(/:(.*?);/)[1],o=atob(n[1]),i=o.length,a=new Uint8Array(i);while(i--)a[i]=o.charCodeAt(i);return new Blob([a],{type:r})},$=function(e){var t=e.time,n=e.number,r=e.supportCamera,o=(e.update,Object(_["useRef"])()),i=Object(_["useRef"])(),a=Object(x["m"])(),s=Object(_["useState"])([]),c=Object(g["a"])(s,2),u=c[0],l=c[1],d=Object(_["useState"])(0),p=Object(g["a"])(d,2),m=p[0],y=p[1],v=Object(_["useState"])(""),E=Object(g["a"])(v,2),j=(E[0],E[1]),S=Object(_["useState"])(),T=Object(g["a"])(S,2),O=T[0],k=T[1],N=Object(_["useState"])(0),C=Object(g["a"])(N,2),I=C[0],A=C[1];Object(_["useEffect"])((function(){return L(),function(){B(),M()}}),[]),Object(_["useEffect"])((function(){2===m&&t&&n>0&&(P(),A(1))}),[t]),Object(_["useEffect"])((function(){if(0!==I){if(2===I)clearInterval(O);else{var e=0,t=setInterval((function(){console.log("n:",e,O),u.includes(e)&&R(),e++}),1e3);k(t)}return function(){return clearInterval(O)}}}),[I]);var M=function(){A(2)},P=function(){var e=t/n,r=[];function o(e,t){return parseInt(Math.floor(Math.random()*(t-e+1))+e)}new Array(n).fill(0).map((function(t,n){r.push(o(e*n,e*(n+1)))})),u=r,l([].concat(r)),console.log(r)},L=function e(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return t?new Promise((function(n,r){t.call(navigator,e,n,r)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then((function(t){r&&r(2),y(2),"srcObject"in o.current?o.current.srcObject=t:o.current.src=window.URL.createObjectURL(t),console.log("stream:",t),o.current.onloadedmetadata=function(e){o.current.play()},o.current.addEventListener("ended",(function(){console.log("\u64ad\u653e\u7ed3\u675f"),M(),f["b"].error({content:"\u60a8\u5df2\u7ecf\u5173\u95ed\u4e86\u6444\u50cf\u5934\uff0c\u8bf7\u572810\u79d2\u949f\u5185\u6062\u590d\u6444\u50cf\u5934\uff0c\u5426\u5219\u5c06\u63a8\u51fa\u8003\u8bd5",duration:10,key:9998}),setTimeout((function(){e()}),1e4)}),!1)}))["catch"]((function(e){y(1),r&&r(1),"Permission denied"===e.message||"NotAllowedError"===e.name?f["b"].error("\u60a8\u5df2\u62d2\u7edd\u4e86\u83b7\u53d6\u6444\u50cf\u5934"):f["b"].error("\u6444\u50cf\u5934\u83b7\u53d6\u5931\u8d25\uff0c\u6216\u60a8\u5df2\u62d2\u7edd\u4e86\u83b7\u53d6\u6444\u50cf\u5934"),console.log("errname: "+e.name),console.log("err: "+e.message)}))},R=function(){try{i.current.width=o.current.videoWidth,i.current.height=o.current.videoHeight;var e=i.current.getContext("2d");e.drawImage(o.current,0,0,i.current.width,i.current.height),j(i.current.toDataURL("image/png")),F(i.current.toDataURL("image/png"))}catch(t){}},B=function(){try{var e=o.current.srcObject,t=e.getTracks();t.forEach((function(e){e.stop()})),o.current.srcObject=null}catch(n){}},F=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n,r,o,i,s,c,u,l,f,d,p,m;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("params:",a.login,a.categoryId),e.next=3,Object(D["a"])("/api/buckets/get_upload_token.json",{method:"get"});case 3:f=e.sent,d=H(),p=new K({endpoint:null===f||void 0===f||null===(n=f.data)||void 0===n?void 0:n.end_point,region:null===f||void 0===f||null===(r=f.data)||void 0===r?void 0:r.region,accessKeyId:null===f||void 0===f||null===(o=f.data)||void 0===o?void 0:o.access_key_id,accessKeySecret:null===f||void 0===f||null===(i=f.data)||void 0===i?void 0:i.access_key_secret,bucket:null===f||void 0===f||null===(s=f.data)||void 0===s?void 0:s.bucket,stsToken:null===f||void 0===f||null===(c=f.data)||void 0===c?void 0:c.security_token}),console.log("ENV.API_SERVER + res?.data?.callback_url:","https://"+document.domain+(null===f||void 0===f||null===(u=f.data)||void 0===u?void 0:u.callback_url),document.domain),m=Y(t,d),p.multipartUpload("".concat(d,".png"),m,{timeout:1e4,partSize:10485760,callback:{url:"https://"+document.domain+(null===f||void 0===f||null===(l=f.data)||void 0===l?void 0:l.callback_url),host:document.domain,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+a.login+"&exercise_id="+a.categoryId}}).then((function(e){console.log("result:",e)}))["catch"]((function(e){console.log("err:",e)}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return w.a.createElement(w.a.Fragment,null,3!==m&&w.a.createElement("aside",{className:z.a.video,id:"screenshot"},0===m&&w.a.createElement("span",null,"\u6b63\u5728\u5f00\u542f\u6444\u50cf\u5934..."),1===m&&w.a.createElement("span",null,"\u6444\u50cf\u5934\u5f00\u542f\u5931\u8d25"),2===m&&w.a.createElement("div",null,w.a.createElement("video",{width:"288",ref:o,autoPlay:!0}),w.a.createElement("canvas",{style:{display:"none"},ref:i}))))},J=$,Z=n("NfTp"),Q=n.n(Z),ee=n("V5fa"),te=n.n(ee),ne=n("1vsH"),re=n("xKgJ"),oe=n("V0Rq"),ie=n("9Bee"),ae=n("Ot1p"),se=function(e){var t,n,r,o,i=e.item,a=e.answerData,s=e.onBlur,c=void 0===s?function(){}:s,u=Object(_["useState"])(),l=Object(g["a"])(u,2),f=l[0],d=l[1],p=Object(_["useState"])(),h=Object(g["a"])(p,2),m=(h[0],h[1]);return Object(_["useEffect"])((function(){m(null===i||void 0===i?void 0:i.a_flag)}),[null===i||void 0===i?void 0:i.a_flag]),w.a.createElement("div",null,1===(null===a||void 0===a||null===(t=a.exercise)||void 0===t?void 0:t.user_exercise_status)?w.a.createElement("div",{className:te.a.simpleText},w.a.createElement(ie["a"],{value:null===i||void 0===i||null===(n=i.user_answer)||void 0===n?void 0:n[0]})):w.a.createElement("div",{className:i.user_score&&(i.user_score===i.question_score?"c-green":"c-red")},w.a.createElement(ae["a"],{height:150,defaultValue:null===i||void 0===i||null===(r=i.user_answer)||void 0===r?void 0:r[0],id:null===i||void 0===i?void 0:i.question_id,onChange:function(e){return d(e)},onBlur:function(){return c(f)}})),Object(re["q"])()&&(null===i||void 0===i?void 0:i.standard_answer)&&w.a.createElement("div",null,w.a.createElement("p",{className:"mb10 font16"},"\u53c2\u8003\u7b54\u6848\uff1a"),w.a.createElement(ie["a"],{value:null===i||void 0===i||null===(o=i.standard_answer)||void 0===o?void 0:o[0]})))},ce=se,ue=(n("uLqt"),n("/vd4")),le=(n("IIfR"),n("w3Ok")),fe=n("ZW9T"),de=n("o5mm"),pe=n.n(de),he=function(e){var t,n,r,o=e.item,i=e.answerData,a=Object(_["useState"])([]),s=Object(g["a"])(a,2),c=s[0],u=s[1],l=Object(_["useState"])([]),f=Object(g["a"])(l,2),d=f[0],p=f[1];Object(_["useEffect"])((function(){var e;if(null===o||void 0===o||null===(e=o.shixun_details)||void 0===e?void 0:e.length){for(var t=[],n=[],r=0;r<(null===o||void 0===o||null===(i=o.shixun_details)||void 0===i?void 0:i.length);r++){for(var i,a,s,c,l,f,d=0;d<(null===o||void 0===o?void 0:o.shixun_details[r].stage_list.length);d++){var h,b,g,y,v=null===o||void 0===o?void 0:o.shixun_details[r].stage_list[d];t.push(Object(m["a"])(Object(m["a"])({},v),{operation:null===o||void 0===o||null===(h=o.shixun_details)||void 0===h||null===(b=h[r])||void 0===b||null===(g=b.shixun_detail)||void 0===g||null===(y=g[0])||void 0===y?void 0:y.game_identifier}))}if(null===o||void 0===o||null===(a=o.shixun_details)||void 0===a||null===(s=a[r])||void 0===s?void 0:s.shixun_detail)n.push(null===o||void 0===o||null===(c=o.shixun_details)||void 0===c||null===(l=c[r])||void 0===l||null===(f=l.shixun_detail)||void 0===f?void 0:f[0])}p(n),u(t)}}),[null===o||void 0===o?void 0:o.shixun_details]);var h=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"name",key:"name",align:"center",render:function(e){return w.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:e&&e.length>25?e:""},e)}},{title:"\u8bc4\u6d4b\u6b21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(e,t){return w.a.createElement("span",null,t.evaluate_count?t.evaluate_count:w.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5b8c\u6210\u65f6\u95f4",key:"endTime",dataIndex:"endTime",align:"center",render:function(e,t){var n=!1;return t.finished_time&&(null===i||void 0===i?void 0:i.exercise)&&(null===i||void 0===i?void 0:i.exercise_answer_user)&&(n=-1===(null===i||void 0===i?void 0:i.exercise.time)?Q()(null===i||void 0===i?void 0:i.exercise.end_time).isBefore(t.finished_time):Q()(null===i||void 0===i?void 0:i.exercise_answer_user.start_at).add(null===i||void 0===i?void 0:i.exercise.time,"m").isBefore(t.finished_time)),w.a.createElement("span",null,t.finished_time||w.a.createElement("span",{className:"c-grey-999"},"--"),w.a.createElement("span",{className:"c-orange-ff9 "},n?"\uff08\u5df2\u8d85\u65f6\uff09":""))}},{title:"\u8017\u65f6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(e,t){return w.a.createElement("span",null,t.time_consuming||w.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67e5\u770b\u7b54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(e,t){return w.a.createElement("span",null,t.view_answer?"\u5df2\u67e5\u770b":"\u672a\u67e5\u770b")}},{title:"\u7ecf\u9a8c\u503c",dataIndex:"experience",key:"experience",align:"center",render:function(e,t){return w.a.createElement("span",null,w.a.createElement("span",{className:"c-green"},t.myself_experience),"/",t.experience)}},{title:"\u64cd\u4f5c",dataIndex:"operation",key:"operation",align:"center",render:function(e,t,n){return e?w.a.createElement(le["a"],{affix:!1,className:"mt10"},w.a.createElement(le["a"].Link,{href:"#challenge_".concat(null===o||void 0===o?void 0:o.question_id).concat(n),title:w.a.createElement("span",{style:{color:"#1890ff"}},"\u67e5\u770b")})):w.a.createElement("span",{className:"c-grey-999"},"--")}}],b={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return w.a.createElement("div",{className:"mt15 mb15"},0!==(null===i||void 0===i||null===(t=i.exercise)||void 0===t?void 0:t.student_commit_status)||0!==(null===i||void 0===i||null===(n=i.exercise)||void 0===n?void 0:n.user_exercise_status)?w.a.createElement(w.a.Fragment,null,w.a.createElement("div",null,w.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6bb5\u6210\u7ee9"),!!(null===c||void 0===c?void 0:c.length)&&w.a.createElement(ue["a"],{columns:h,dataSource:c,pagination:!1})),!!(null===d||void 0===d?void 0:d.length)&&w.a.createElement("div",null,w.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5b9e\u8bad\u8be6\u60c5"),null===d||void 0===d?void 0:d.map((function(e,t){return w.a.createElement("div",{id:"challenge_".concat(null===o||void 0===o?void 0:o.question_id).concat(t),className:"mt5"},w.a.createElement("div",null,w.a.createElement("span",{className:"font16 mr15"}," \u7b2c",e.position,"\u5173"),w.a.createElement(j["Link"],{className:"current c-black font16",to:"/tasks/".concat(e.game_identifier)},e.name)),0===(null===e||void 0===e?void 0:e.st)&&w.a.createElement("aside",{className:pe.a.shixunWrp},w.a.createElement("h2",null,"\u6700\u540e\u4e00\u6b21\u63d0\u4ea4\u7684\u4ee3\u7801",w.a.createElement("span",{className:"c-light-black"},e.path)),w.a.createElement(fe["b"],{height:300,language:"python",theme:"default",value:e.passed_code,options:b})))})))):w.a.createElement(w.a.Fragment,null,Object(re["q"])()&&w.a.createElement(ie["a"],{className:"c-grey-999 mt20 mb20",value:null===o||void 0===o?void 0:o.question_title}),null===o||void 0===o||null===(r=o.shixun)||void 0===r?void 0:r.map((function(e,t){return w.a.createElement("p",{className:"font16 c-grey-666 mb5"},w.a.createElement("span",{className:"mr20"},"\u7b2c",null===e||void 0===e?void 0:e.challenge_position,"\u5173 ",null===e||void 0===e?void 0:e.challenge_name),w.a.createElement("span",null,null===e||void 0===e?void 0:e.challenge_score,"\u5206"))}))))},me=he,be=n("LalF"),ge=function(e){var t=e.item,n=(e.answerData,Object(_["useState"])([])),r=Object(g["a"])(n,2),o=(r[0],r[1]);Object(_["useEffect"])((function(){var e,n;(null===t||void 0===t||null===(e=t.evaluate_codes)||void 0===e?void 0:e.length)>0?o(null===t||void 0===t||null===(n=t.evaluate_codes)||void 0===n?void 0:n.map((function(e,t){return{key:t+1,error_msg:(null===e||void 0===e?void 0:e.error_msg)?be["Base64"].decode(null===e||void 0===e?void 0:e.error_msg):""}}))):o([{key:"--",error_msg:"--"}])}),[null===t||void 0===t?void 0:t.evaluate_codes]);var i={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:"mt15 mb15"},w.a.createElement(ie["a"],{value:null===t||void 0===t?void 0:t.description})),!!(null===t||void 0===t?void 0:t.user_answer.length)&&w.a.createElement("aside",{className:pe.a.shixunWrp},w.a.createElement("h3",null,"\u6700\u540e\u901a\u5173\u7684\u4ee3\u7801"),w.a.createElement(fe["b"],{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:(null===t||void 0===t?void 0:t.passed_code)?be["Base64"].decode(null===t||void 0===t?void 0:t.passed_code):"",options:i})))},ye=ge,ve=n("V0hb"),_e=(n("DHCt"),n("CRgH")),we=_e["a"].TextArea,xe=function(e){var t,n,r=e.item,o=e.answerData,i=e.onBlur,a=void 0===i?function(){}:i,s=Object(_["useState"])([]),c=Object(g["a"])(s,2),u=c[0],l=c[1];return Object(_["useEffect"])((function(){for(var e=[],t=0;t<(null===r||void 0===r?void 0:r.multi_count);t++)e.push(Object(m["a"])({},(null===r||void 0===r?void 0:r.user_answer[t])||{}));l(e)}),[null===r||void 0===r?void 0:r.user_answer]),w.a.createElement("div",null,null===u||void 0===u?void 0:u.map((function(e,t){var n;return w.a.createElement("div",null,w.a.createElement("span",null,"\u7b54\u6848\uff08\u586b\u7a7a",t+1,"\uff09:"),w.a.createElement("div",null,w.a.createElement(we,{rows:4,disabled:1===(null===o||void 0===o||null===(n=o.exercise)||void 0===n?void 0:n.user_exercise_status),value:null===e||void 0===e?void 0:e.answer_text,onChange:function(e){u[t].answer_text=e.target.value,l(Object(ve["a"])(u))},onBlur:function(n){return a(null===e||void 0===e?void 0:e.answer_text,t+1)},className:r.user_score&&(r.user_score===r.question_score?"c-green":"c-red")})))})),!!(null===r||void 0===r||null===(t=r.standard_answer)||void 0===t?void 0:t.length)&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===r||void 0===r||null===(n=r.standard_answer)||void 0===n?void 0:n.map((function(e,t){return w.a.createElement("div",null,w.a.createElement("span",null,"\u7b54\u6848\uff08\u586b\u7a7a",t+1,"\uff09:"),w.a.createElement("div",null,w.a.createElement(we,{rows:4,disabled:!0,value:null===e||void 0===e?void 0:e.answer_text[0]})))}))))},Ee=xe,je=v["a"].Countdown,Se=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Te=(te.a.flagActive,te.a.flagHalf,{0:"c-red-ee4",1:"c-green"}),Oe=["\u5355\u9009\u9898","\u591a\u9009\u9898","\u5224\u65ad\u9898","\u586b\u7a7a\u9898","\u7b80\u7b54\u9898","\u5b9e\u8bad\u9898","\u7f16\u7a0b\u9898"],ke=function(e){e.globalSetting,e.loading;var t,n,p,v,S,T,O,k,D,M,P,L,R,B,F,q,U,G,X,V,H,W,z,K,Y,$,Z,ee,ae,se,ue,le,fe,de,pe,he,be,ge=e.user,ve=(e.dispatch,Object(y["a"])(e,["globalSetting","loading","user","dispatch"])),_e=Object(x["m"])(),we=Object(_["useState"])({}),xe=Object(g["a"])(we,2),ke=xe[0],Ne=xe[1],Ce=Object(_["useState"])({}),Ie=Object(g["a"])(Ce,2),Ae=Ie[0],De=Ie[1],Me=Object(_["useState"])(!1),Pe=Object(g["a"])(Me,2),Le=Pe[0],Re=Pe[1],Be=Object(_["useState"])(!0),Fe=Object(g["a"])(Be,2),qe=Fe[0],Ue=Fe[1],Ge=Object(_["useState"])(!1),Xe=Object(g["a"])(Ge,2),Ve=Xe[0],He=Xe[1],We=Object(_["useState"])(),ze=Object(g["a"])(We,2),Ke=ze[0],Ye=ze[1];Object(_["useEffect"])((function(){Object(re["c"])()?Je():ge.userInfo.login&&$e()}),[_e.categoryId,ge.userInfo.login]);var $e=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["t"])(Object(m["a"])({},_e));case 2:t=e.sent,0==(null===t||void 0===t?void 0:t.status)&&(He(null===t||void 0===t?void 0:t.data.check_camera),(null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.check_camera)||Je());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Je=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n,r,o,i;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Re(!0),!Object(re["c"])()){e.next=8;break}return e.next=4,Object(oe["y"])({exerciseId:_e.categoryId,login:_e.login})["catch"]((function(){return Re(!1)}));case 4:t=e.sent,(null===(n=t)||void 0===n?void 0:n.exercise)&&(t.exercise.user_exercise_status=1),e.next=11;break;case 8:return e.next=10,Object(oe["r"])(Object(m["a"])({},_e))["catch"]((function(){return Re(!1)}));case 10:t=e.sent;case 11:Re(!1),t&&(t.exercise_types=(null===(r=t)||void 0===r?void 0:r.exercise_types)||(null===(o=t)||void 0===o||null===(i=o.exercise_scores)||void 0===i?void 0:i.exercise_types),Ne(t));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(_["useEffect"])((function(){var e,t,n;0===(null===(e=ke.exercise)||void 0===e?void 0:e.left_time)&&it(),(null===(t=ke.exercise)||void 0===t?void 0:t.left_time)&&Ye(Date.now()+1e3*(null===ke||void 0===ke||null===(n=ke.exercise)||void 0===n?void 0:n.left_time))}),[null===(t=ke.exercise)||void 0===t?void 0:t.left_time]);var Ze=function(){var e;3===(null===ke||void 0===ke||null===(e=ke.exercise)||void 0===e?void 0:e.exercise_status)?d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u622a\u6b62\u65f6\u95f4\u5df2\u5230\uff0c\u65e0\u6cd5\u6253\u56de\u8bd5\u5377",w.a.createElement("br",null),"\u8bf7\u5728\u4fee\u6539\u622a\u6b62\u65f6\u95f4\u540e\u518d\u64cd\u4f5c")}):d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},"\u5b66\u751f\u5c06\u5f97\u5230\u4e00\u6b21\u91cd\u65b0\u7b54\u9898\u7684\u673a\u4f1a\uff0c\u73b0\u6709\u7684\u7b54\u9898\u60c5\u51b5\u5c06\u88ab\u6e05\u7a7a",w.a.createElement("br",null),"\u662f\u5426\u786e\u8ba4\u56de\u9000TA\u7684\u8bd5\u5377\u7b54\u9898"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["F"])({categoryId:_e.categoryId,user_ids:[null===ke||void 0===ke||null===(t=ke.exercise_answer_user)||void 0===t?void 0:t.user_id]});case 2:n=e.sent,n&&(f["b"].info(null===n||void 0===n?void 0:n.message),Qe());case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()})},Qe=function(){E["c"].push("/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail"))},et=function(){var e=Object(b["a"])(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["J"])({categoryId:_e.categoryId,commit_method:2});case 2:t=e.sent,0===(null===t||void 0===t?void 0:t.status)&&(d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",content:w.a.createElement("div",{className:"tc font16"},"\u7b54\u9898\u7ed3\u675f\u4e86\uff0c\u7cfb\u7edf\u5df2\u81ea\u52a8\u63d0\u4ea4\u8bd5\u5377",w.a.createElement("br",null),"\u4e0d\u80fd\u518d\u4fee\u6539\u7b54\u9898"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Qe();case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}),f["b"].info(null===t||void 0===t?void 0:t.message)),-3===(null===t||void 0===t?void 0:t.status)&&(n=parseInt(null===t||void 0===t?void 0:t.message),ke.exercise.left_time=n,Ne(Object(m["a"])({},ke)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),tt=function(e){e.redo?d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",content:w.a.createElement("div",{className:"tc font16"},"\u60a8\u4e4b\u524d\u5df2\u7ecf\u6311\u6218\u8fc7\u8be5\u5b9e\u8bad\uff0c\u8003\u8bd5\u8fc7\u7a0b\u4e2d\u9700\u8981\u91cd\u65b0\u6311\u6218"),onOk:function(){var t=Object(b["a"])(h.a.mark((function t(){var n;return h.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(oe["G"])({id:e.myshixun_identifier});case 2:n=t.sent,n&&(Object(ne["x"])("/shixuns/".concat(e.shixun_identifier,"/challenges")),ke.exercise_questions.find((function(t){return t.question_id===e.question_id})).redo=!1,Ne(Object(m["a"])({},ke)));case 4:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()}):Object(ne["x"])("/shixuns/".concat(e.shixun_identifier,"/challenges"))},nt=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.hack_identifier){e.next=5;break}return e.next=3,Object(oe["I"])({id:t.hack_identifier});case 3:n=e.sent,0===(null===n||void 0===n?void 0:n.status)&&Object(ne["x"])("/myproblems/".concat(n.identifier,"?type=exercises"));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),rt=function(){var e=Object(b["a"])(h.a.mark((function e(t,n,r,o){var i;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return console.error("handleSave no questionId params"),e.abrupt("return");case 3:return e.next=5,Object(oe["K"])({questionId:t,exercise_choice_id:n,answer_text:r});case 5:i=e.sent,0===(null===i||void 0===i?void 0:i.status)&&o&&o();case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),ot=function(){var e=Object(b["a"])(h.a.mark((function e(t){var n,r;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["d"])({id:_e.categoryId});case 2:if(n=e.sent,n){e.next=5;break}return e.abrupt("return");case 5:0!==n.question_undo||0!==n.oj_undo?(r="",0!==n.question_undo&&0!==n.oj_undo?r="\u6709 ".concat(n.question_undo," \u9898\u672a\u5b8c\u6210\uff0c\u5305\u542b ").concat(n.oj_undo," \u4e2a\u7f16\u7a0b\u9898"):0!==n.question_undo&&0===n.oj_undo?r="\u6709 ".concat(n.question_undo," \u9898\u672a\u5b8c\u6210"):0===n.question_undo&&0!==n.oj_undo&&(r="\u6709 ".concat(n.oj_undo," \u7f16\u7a0b\u9898\u672a\u5b8c\u6210")),d["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:w.a.createElement("div",{className:"tc font16"},r,w.a.createElement("br",null),t?"\u5728".concat(Q()(n.end_time).format("YYYY-MM-DD HH:mm"),"\u4e4b\u524d\uff0c\u5141\u8bb8\u4fee\u6539\u7b54\u9898"):"\u63d0\u4ea4\u540e\u65e0\u6cd5\u518d\u4fee\u6539\u7b54\u9898\uff0c\u662f\u5426\u786e\u8ba4\u63d0\u4ea4\uff1f"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t?Qe():it();case 1:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})):d["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u77e5\u9053\u5566",content:w.a.createElement("div",{className:"tc font16"},t?"\u5728".concat(Q()(n.end_time).format("YYYY-MM-DD HH:mm"),"\u4e4b\u524d\uff0c\u5141\u8bb8\u4fee\u6539\u7b54\u9898"):"\u63d0\u4ea4\u540e\u65e0\u6cd5\u518d\u4fee\u6539\u7b54\u9898\uff0c\u662f\u5426\u786e\u8ba4\u63d0\u4ea4\uff1f"),onOk:function(){var e=Object(b["a"])(h.a.mark((function e(){return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t?Qe():it();case 1:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),it=function(){var e=Object(b["a"])(h.a.mark((function e(){var t;return h.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(oe["J"])({categoryId:_e.categoryId,commit_method:1});case 2:t=e.sent,t&&(f["b"].success(null===t||void 0===t?void 0:t.message),Je(),He(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),at=function(e,t){rt(t,e,null,(function(){ke.question_status.find((function(e){return e.ques_id===t})).ques_status=e?1:0,ke.exercise_questions.find((function(e){return e.question_id===t})).user_answer[0]=e,Ne(Object(m["a"])({},ke))}))},st=function(e,t){rt(t,e,null,(function(){ke.question_status.find((function(e){return e.ques_id===t})).ques_status=(null===e||void 0===e?void 0:e.length)?1:0,Ne(Object(m["a"])({},ke))}))},ct=function(e,t,n){rt(n,t,e,(function(){ke.question_status.find((function(e){return e.ques_id===n})).ques_status=e?1:0,Ne(Object(m["a"])({},ke))}))},ut=function(e,t){rt(t,null,e,(function(){ke.question_status.find((function(e){return e.ques_id===t})).ques_status=e?1:0,Ne(Object(m["a"])({},ke))}))},lt=function(e,t){var n,r,o,i,a,s,c;return w.a.createElement("div",null,w.a.createElement(l["a"].Group,{disabled:1===(null===ke||void 0===ke||null===(n=ke.exercise)||void 0===n?void 0:n.user_exercise_status),value:null===e||void 0===e||null===(r=e.user_answer)||void 0===r?void 0:r[0],onChange:function(t){return at(t.target.value,null===e||void 0===e?void 0:e.question_id)},className:e.user_score&&"edu-radio-".concat(e.user_score===e.question_score?"green":"red")},null===e||void 0===e||null===(o=e.question_choices)||void 0===o?void 0:o.map((function(t,n){var r=2==e.question_type,o=r?"":"".concat(Se[n],".");return w.a.createElement("div",{className:te.a.answerWrap,key:n},w.a.createElement(l["a"],{value:null===t||void 0===t?void 0:t.choice_id},w.a.createElement("span",{className:"mr3"},o),w.a.createElement(ie["a"],{className:te.a.renderHtml,value:null===t||void 0===t?void 0:t.choice_text})))}))),Object(re["q"])()&&(null===ke||void 0===ke||null===(i=ke.exercise)||void 0===i?void 0:i.answer_open)&&(3==(null===ke||void 0===ke||null===(a=ke.exercise)||void 0===a?void 0:a.exercise_status)||1==(null===ke||void 0===ke||null===(s=ke.exercise)||void 0===s?void 0:s.user_exercise_status))&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===e||void 0===e||null===(c=e.standard_answer)||void 0===c?void 0:c.map((function(e,t){return w.a.createElement("span",null,Se[Number(e)-1])}))))},ft=function(e,t){var n,r,o,i,a;return w.a.createElement("div",null,w.a.createElement(u["a"].Group,{disabled:1===(null===ke||void 0===ke||null===(n=ke.exercise)||void 0===n?void 0:n.user_exercise_status),defaultValue:null===e||void 0===e?void 0:e.user_answer,onChange:function(t){return st(t,null===e||void 0===e?void 0:e.question_id)},className:e.user_score&&"edu-checkbox-".concat(e.user_score===e.question_score?"green":"red")},null===e||void 0===e||null===(r=e.question_choices)||void 0===r?void 0:r.map((function(e,t){var n="".concat(Se[t],".");return w.a.createElement("div",{className:te.a.answerWrap},w.a.createElement(u["a"],{value:null===e||void 0===e?void 0:e.choice_id},w.a.createElement("span",{className:"mr3"},n),w.a.createElement(ie["a"],{className:te.a.renderHtml,value:null===e||void 0===e?void 0:e.choice_text})))}))),Object(re["q"])()&&(null===ke||void 0===ke||null===(o=ke.exercise)||void 0===o?void 0:o.answer_open)&&3==(null===ke||void 0===ke||null===(i=ke.exercise)||void 0===i?void 0:i.exercise_status)&&w.a.createElement("div",null,"\u53c2\u8003\u7b54\u6848\uff1a",null===e||void 0===e||null===(a=e.standard_answer)||void 0===a?void 0:a.map((function(e,t){return w.a.createElement("span",null,Se[Number(e)-1])}))))},dt=function(e,t){return w.a.createElement(Ee,{item:e,answerData:ke,onBlur:function(t,n){return ct(t,n,null===e||void 0===e?void 0:e.question_id)}})},pt=function(e,t){return w.a.createElement(ce,{item:e,answerData:ke,onBlur:function(t){return ut(t,null===e||void 0===e?void 0:e.question_id)}})},ht=function(e,t){return w.a.createElement(me,{item:e,answerData:ke})},mt=function(e,t){return w.a.createElement(ye,{item:e,answerData:ke})},bt=function(e,t){var n;return w.a.createElement(w.a.Fragment,null,w.a.createElement("h1",{className:"font14 current",onClick:function(){Ae[t]=!Ae[t],De(Object(m["a"])({},Ae))}},!Ae[t]&&w.a.createElement(N,null),Ae[t]&&w.a.createElement(C["a"],null),w.a.createElement("span",{className:"ml5 c-grey-666"},e)),w.a.createElement("ul",{className:te.a.answerSheet,key:t},!Ae[t]&&(null===ke||void 0===ke||null===(n=ke.exercise_questions)||void 0===n?void 0:n.map((function(e,n){var r;if(e.question_type===t)return w.a.createElement("li",{onClick:function(){var t="Anchor_".concat(e.q_position-1),n=document.getElementById(t);n&&setTimeout((function(){return n.scrollIntoView({block:"start",behavior:"smooth"})}))},key:n,className:(null===ke||void 0===ke||null===(r=ke.question_status)||void 0===r?void 0:r.some((function(t){return t.ques_id===e.question_id&&!!t.ques_status})))&&te.a.active},e.q_position)})))))};return w.a.createElement(r["a"],{size:"large",spinning:Le},w.a.createElement("section",{className:"edu-container"},w.a.createElement("section",{className:"animated fadeIn"},w.a.createElement("aside",{className:"mt10"},w.a.createElement(c["a"],{separator:">"},w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(_e.coursesId,"/exercise")},null===(n=ge.userInfo)||void 0===n||null===(p=n.course)||void 0===p?void 0:p.course_name)),w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(_e.coursesId,"/exercise")},"\u8bd5\u5377")),w.a.createElement(c["a"].Item,null,w.a.createElement(j["Link"],{to:"/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail")},"\u8bd5\u5377\u8be6\u60c5")),w.a.createElement(c["a"].Item,null,null===(v=ge.userInfo)||void 0===v?void 0:v.real_name))),w.a.createElement("aside",{className:[te.a.title,"mt10"].join(" ")},w.a.createElement(i["a"],{style:{width:"100%"},align:"middle"},w.a.createElement(s["a"],{flex:"1"},w.a.createElement("div",{className:te.a.title},w.a.createElement(j["Link"],{to:"/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/detail")},w.a.createElement(I["a"],{className:"font16 c-black"})),w.a.createElement("strong",{className:"font24 ml5"},null===ke||void 0===ke||null===(S=ke.exercise)||void 0===S?void 0:S.exercise_name),(null===ke||void 0===ke||null===(T=ke.exercise)||void 0===T?void 0:T.is_random)&&w.a.createElement("span",{className:te.a.randomFlag},"\u968f\u673a"),w.a.createElement(ne["g"],{status:[ne["c"][null===ke||void 0===ke||null===(O=ke.exercise)||void 0===O?void 0:O.exercise_status]]}))),w.a.createElement(s["a"],null,Object(re["c"])()&&w.a.createElement(a["a"],{type:"primary",onClick:Ze},"\u6253\u56de\u91cd\u505a"),w.a.createElement(s["a"],null,(2==(null===ke||void 0===ke||null===(k=ke.exercise)||void 0===k?void 0:k.commit_status)||2!=(null===ke||void 0===ke||null===(D=ke.exercise)||void 0===D?void 0:D.commit_status)&&0!=(null===ke||void 0===ke||null===(M=ke.exercise)||void 0===M?void 0:M.commit_status))&&Object(re["q"])()&&w.a.createElement(a["a"],{type:"primary",onClick:function(){return E["c"].push("/classrooms/".concat(_e.coursesId,"/exercise/").concat(_e.categoryId,"/export/").concat(_e.login))}},w.a.createElement(A["a"],null),"\u5bfc\u51fa")),!(Object(re["c"])()||Object(re["q"])()&&1==(null===ke||void 0===ke||null===(P=ke.exercise)||void 0===P?void 0:P.user_exercise_status))&&!!(null===ke||void 0===ke||null===(L=ke.exercise)||void 0===L?void 0:L.left_time)&&w.a.createElement("aside",{className:te.a.countDown},"\u5269\u4f59\u65f6\u95f4:",w.a.createElement(je,{value:Ke,onFinish:et})))))),w.a.createElement(i["a"],{className:"mt10"},w.a.createElement(s["a"],{flex:qe?"316px":"16px"},w.a.createElement("section",{style:{position:"sticky",top:0,zIndex:1}},Ve&&w.a.createElement(J,{number:(null===ke||void 0===ke||null===(R=ke.exercise)||void 0===R?void 0:R.photo_count)-(null===ke||void 0===ke||null===(B=ke.exercise)||void 0===B?void 0:B.take_photo),time:null===(F=ke.exercise)||void 0===F?void 0:F.left_time,update:Je,supportCamera:function(e){2===e?Je():1===e&&setTimeout((function(){return ve.history.push("/")}),3e3)}}),w.a.createElement("div",{className:"relative",style:{minHeight:236}},qe&&w.a.createElement("aside",{className:"bg-white p16"},w.a.createElement(i["a"],null,w.a.createElement(s["a"],{span:8},w.a.createElement("span",{className:"font16 blod"},"\u7b54\u9898\u5361")),w.a.createElement(s["a"],{span:16},Object(re["q"])()&&w.a.createElement("div",{className:"tr"},w.a.createElement("span",{className:te.a.answerYes}),"\u5df2\u7b54",w.a.createElement("span",{className:"".concat(te.a.answerNo," ml10")}),"\u672a\u7b54"))),w.a.createElement("aside",{className:te.a.answerInfo},w.a.createElement(i["a"],null,Object(re["q"])()&&w.a.createElement(w.a.Fragment,null,w.a.createElement(s["a"],{span:12},"\u7b54\u9898\u8fdb\u5ea6"),w.a.createElement(s["a"],{span:12,className:"tr c-blue"},null===ke||void 0===ke||null===(q=ke.question_status)||void 0===q||null===(U=q.filter((function(e){return!!e.ques_status})))||void 0===U?void 0:U.length," / ",null===ke||void 0===ke||null===(G=ke.exercise_types)||void 0===G?void 0:G.q_counts),w.a.createElement(s["a"],{span:24},w.a.createElement(o["a"],{trailColor:"#c3ced2",percent:(null===ke||void 0===ke||null===(X=ke.question_status)||void 0===X||null===(V=X.filter((function(e){return!!e.ques_status})))||void 0===V?void 0:V.length)/(null===ke||void 0===ke||null===(H=ke.exercise_types)||void 0===H?void 0:H.q_counts)*100,showInfo:!1}))),w.a.createElement(s["a"],null,w.a.createElement("span",{className:"c-grey-333"},"\u5171 ",w.a.createElement("span",{className:"c-blue-4ca"},(null===ke||void 0===ke||null===(W=ke.exercise_types)||void 0===W?void 0:W.q_counts)||(null===ke||void 0===ke||null===(z=ke.exercise_scores)||void 0===z||null===(K=z.exercise_types)||void 0===K?void 0:K.q_counts))," \u9898\uff1a"),w.a.createElement("span",{className:"c-grey-333"},"\u6ee1\u5206 ",w.a.createElement("span",{className:"c-blue-4ca"},(null===ke||void 0===ke||null===(Y=ke.exercise_types)||void 0===Y?void 0:Y.q_scores)||(null===ke||void 0===ke||null===($=ke.exercise_scores)||void 0===$||null===(Z=$.exercise_types)||void 0===Z?void 0:Z.q_scores))," \u5206")))),w.a.createElement(i["a"],null,w.a.createElement(s["a"],{flex:"1"},w.a.createElement("aside",{className:te.a.cardList},(null===ke||void 0===ke||null===(ee=ke.exercise_types)||void 0===ee?void 0:ee.q_singles)>0&&bt("\u5355\u9009\u9898",0),(null===ke||void 0===ke||null===(ae=ke.exercise_types)||void 0===ae?void 0:ae.q_doubles)>0&&bt("\u591a\u9009\u9898",1),(null===ke||void 0===ke||null===(se=ke.exercise_types)||void 0===se?void 0:se.q_judges)>0&&bt("\u5224\u65ad\u9898",2),(null===ke||void 0===ke||null===(ue=ke.exercise_types)||void 0===ue?void 0:ue.q_nulls)>0&&bt("\u586b\u7a7a\u9898",3),(null===ke||void 0===ke||null===(le=ke.exercise_types)||void 0===le?void 0:le.q_mains)>0&&bt("\u7b80\u7b54\u9898",4),(null===ke||void 0===ke||null===(fe=ke.exercise_types)||void 0===fe?void 0:fe.q_shixuns)>0&&bt("\u5b9e\u8bad\u9898",5),(null===ke||void 0===ke||null===(de=ke.exercise_types)||void 0===de?void 0:de.q_pros)>0&&bt("\u7f16\u7a0b\u9898",6))))),w.a.createElement("div",{className:te.a.fold,onClick:function(){return Ue(!qe)}},qe&&w.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!qe&&w.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))))),w.a.createElement(s["a"],{flex:"1"},w.a.createElement("section",{className:[te.a.bg,"pt30","pl30","pr30","pb30","mb50","ml20"].join(" ")},w.a.createElement("div",null,null===ke||void 0===ke||null===(pe=ke.exercise_questions)||void 0===pe?void 0:pe.map((function(e,t){var n,r,o=5==e.question_type?e.shixun_name:e.question_title;return w.a.createElement("div",{className:te.a.questionItem,id:"Anchor_".concat(t)},w.a.createElement("div",{className:te.a.itemType},w.a.createElement(i["a"],null,w.a.createElement(s["a"],{flex:"1"},w.a.createElement("span",{className:"font16 c-blue mr5"},e.q_position,"\u3001",Oe[e.question_type]),w.a.createElement("span",{className:"c-grey-999 mr5"},"(",e.question_score,"\u5206)")),w.a.createElement(s["a"],null,e.question_type<3&&e.standard_answer_show&&w.a.createElement("span",{className:"font16 ml20"},"\u6b63\u786e\u7b54\u6848\uff1a",null===e||void 0===e?void 0:e.standard_answer_show),(Object(re["c"])()||Object(re["q"])()&&(null===ke||void 0===ke||null===(n=ke.exercise)||void 0===n?void 0:n.user_exercise_status)>0)&&w.a.createElement("span",{className:"font16 ml20"},e.user_score&&w.a.createElement("span",null,w.a.createElement("span",{className:Te[Number(null===e||void 0===e?void 0:e.answer_status)]||"c-orange-ff9"},e.user_score)," \u5206"),!e.user_score&&w.a.createElement("span",{className:"c-red"},"\u672a\u8bc4")),5==e.question_type&&w.a.createElement(a["a"],{type:"primary",className:"font16 ml20",onClick:function(){return tt(e)}},"\u8fdb\u5165\u7b54\u9898"),Object(re["q"])()&&0===(null===ke||void 0===ke||null===(r=ke.exercise)||void 0===r?void 0:r.user_exercise_status)&&6==e.question_type&&w.a.createElement(a["a"],{type:"primary",className:"font16 ml20",onClick:function(){return nt(e)}},"\u8fdb\u5165\u7b54\u9898")))),w.a.createElement("div",{className:""},w.a.createElement(ie["a"],{value:o})),0==e.question_type&<(e,t),2==e.question_type&<(e,t),1==e.question_type&&ft(e,t),3==e.question_type&&dt(e,t),4==e.question_type&&pt(e,t),5==e.question_type&&ht(e,t),6==e.question_type&&mt(e,t))})))),Object(re["q"])()&&0===(null===ke||void 0===ke||null===(he=ke.exercise)||void 0===he?void 0:he.user_exercise_status)&&w.a.createElement(i["a"],{className:"mt30 mb50"},w.a.createElement(s["a"],{flex:"1"}),w.a.createElement(s["a"],null,!!(null===ke||void 0===ke||null===(be=ke.exercise)||void 0===be?void 0:be.left_time)&&w.a.createElement("span",{className:"c-grey-999 font12 mr20"},"\u4fdd\u5b58\u6216\u8005\u79bb\u5f00\u9875\u9762\u540e\uff0c\u7cfb\u7edf\u5c06\u6301\u7eed\u8ba1\u65f6\uff0c\u5230\u8fbe\u65f6\u957f\u7cfb\u7edf\u5c06\u81ea\u52a8\u4ea4\u5377"),w.a.createElement(a["a"],{className:"".concat(te.a.submitButton," mr10"),type:"default",onClick:function(){return ot(!0)}},"\u4fdd\u5b58"),w.a.createElement(a["a"],{className:te.a.submitButton,type:"primary",onClick:function(){return ot(!1)}},"\u4ea4\u5377")))))))};t["default"]=Object(E["a"])((function(e){var t=e.loading,n=e.user,r=e.globalSetting;return{globalSetting:r,user:n,loading:t.effects}}))(ke)},Ot1p:function(e,t,n){"use strict";n("rjoL");var r=n("TMtJ"),o=n("Uu80"),i=n("GZha"),a=n("zjzt"),s=n("ZZRV"),c=n.n(s),u=n("M0ff"),l=n.n(u),f=n("BlUI"),d=(n("4X1q"),n("bwE0"),n("aPdX"),n("rnm6"),n("95/S"),n("kSUc"),n("9Bee")),p=n("1gHQ"),h=(n("dejd"),n("C+DQ"),[{title:"\u7c97\u4f53",icon:"icon-bold",actionName:"bold"},{title:"\u659c\u4f53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65e0\u5e8f\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5e8f\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884c\u5185\u4ee3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4ee3\u7801\u5757\uff08\u591a\u8bed\u8a00\u98ce\u683c\uff09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94fe\u63a5",icon:"icon-link",actionName:"link"},"|",{title:"\u884c\u5185\u516c\u5f0f",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591a\u884c\u516c\u5f0f",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6dfb\u52a0\u56fe\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683c",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884c",icon:"icon-minus",actionName:"line-break"},{title:"\u6e05\u7a7a",icon:"icon-eraser",actionName:"eraser"}]);function m(e){var t=e.onActionCallback,n=e.title,r=e.icon,o=e.actionName,i=e.className,a=void 0===i?"":i,s=e.children;function u(){t(o)}return c.a.createElement("a",{title:n,className:a,onClick:u},c.a.createElement("i",{className:"md-iconfont ".concat(r)}),s)}var b=function(e){var t=e.watch,n=e.showNullButton,r=e.onActionCallback,o=e.fullScreen,i=[].concat(h,[{title:"".concat(t?"\u5173\u95ed\u5b9e\u65f6\u9884\u89c8":"\u5f00\u542f\u5b9e\u65f6\u9884\u89c8"),icon:"".concat(t?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return c.a.createElement("ul",{className:"markdown-toolbar-container"},i.map((function(e,t){return c.a.createElement("li",{key:t},e.actionName?c.a.createElement(m,Object(p["a"])({},e,{onActionCallback:r})):c.a.createElement("span",{className:"v-line"}))})),n?c.a.createElement("li",null,c.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u589e\u52a0\u586b\u7a7a",actionName:"add-null-ch",onActionCallback:r},c.a.createElement("span",{className:"fill-tip"},"\u70b9\u51fb\u63d2\u5165\b\u586b\u7a7a\u9879"))):null,c.a.createElement("li",{className:"btn-full-screen"},c.a.createElement(m,{icon:"".concat(o?"icon-shrink":"icon-enlarge"),title:o?"\u5173\u95ed\u5168\u5c4f":"\u5f00\u542f\u5168\u5c4f",actionName:"trigger-full-screen",onActionCallback:r})))},g=n("M8RZ"),y=(n("MPZO"),n("bnk9")),v=(n("EkPb"),n("7X0+")),_=(n("DHCt"),n("CRgH")),w={labelCol:{span:4},wrapperCol:{span:20}},x=function(e){var t=e.callback,n=e.onCancel;function r(e){t(e)}return c.a.createElement(v["a"],Object(p["a"])({},w,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:r}),c.a.createElement(v["a"].Item,{label:"\u94fe\u63a5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u94fe\u63a5\u5730\u5740"}]},c.a.createElement(_["a"],null)),c.a.createElement(v["a"].Item,{label:"\u94fe\u63a5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u94fe\u63a5\u6807\u9898"}]},c.a.createElement(_["a"],null)),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))},E=n("7ahc"),j=(n("HmJG"),n("BjJ7")),S=v["a"].useForm,T={width:280,marginRight:10},O={labelCol:{span:5},wrapperCol:{span:19}},k=function(e){var t=e.callback,n=e.onCancel,r=S(),o=Object(i["a"])(r,1),a=o[0];function s(e){t(e)}function u(e){a.setFieldsValue({src:"/api/attachments/".concat(e.id)})}function l(e){var t=e.target.files[0];C(t,u)}return c.a.createElement(v["a"],Object(p["a"])({form:a},O,{className:"upload-image-panel",onFinish:s}),c.a.createElement(v["a"].Item,{label:"\u56fe\u7247\u5730\u5740",required:!0},c.a.createElement("div",{className:"flex-container"},c.a.createElement(v["a"].Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u56fe\u7247\u5730\u5740"}]},c.a.createElement(_["a"],{style:T})),c.a.createElement(N,{onFileChange:l}))),c.a.createElement(v["a"].Item,{label:"\u56fe\u7247\u63cf\u8ff0",name:"alt",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u56fe\u7247\u63cf\u8ff0"}]},c.a.createElement(_["a"],{style:{width:264}})),c.a.createElement(v["a"].Item,{style:{textAlign:"right"}},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))};function N(e){var t=e.onFileChange;return c.a.createElement("a",{className:"upload-button"},"\u672c\u5730\u4e0a\u4f20",c.a.createElement("input",{type:"file",accept:"image/*",onChange:t}))}function C(e,t){var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var r=new window.XMLHttpRequest;r.withCredentials=!0,r.addEventListener("load",(function(e){t(JSON.parse(e.target.responseText))}),!1),r.addEventListener("error",(function(e){console.error(e)}),!1),r.open("POST","".concat(j["a"],"/api/attachments.json")),r.send(n)}n("EYz/");var I,A,D=n("gwXo"),M=(n("9cas"),n("twZV")),P=M["a"].Group,L={margin:"0 8px"},R=function(e){var t=e.callback,n=e.onCancel;function r(e){t(e)}return c.a.createElement(v["a"],{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:r},c.a.createElement("div",{className:"flex-container"},c.a.createElement("span",{style:L},"\u5355\u5143\u683c\u6570\uff1a"),c.a.createElement("span",{style:L},"\u884c\u6570"),c.a.createElement(v["a"].Item,{name:"row",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u884c\u6570"}]},c.a.createElement(D["a"],null)),c.a.createElement("span",{style:L},"\u5217\u6570"),c.a.createElement(v["a"].Item,{name:"col",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5217\u6570"}]},c.a.createElement(D["a"],null))),c.a.createElement("div",{className:"flex-container",style:{marginTop:12}},c.a.createElement("span",{style:L},"\u5bf9\u9f50\u65b9\u5f0f\uff1a"),c.a.createElement(v["a"].Item,{name:"align"},c.a.createElement(P,null,c.a.createElement(M["a"],{value:"default"},c.a.createElement("i",{className:"fa fa-align-justify"})),c.a.createElement(M["a"],{value:"left"},c.a.createElement("i",{className:"fa fa-align-left"})),c.a.createElement(M["a"],{value:"center"},c.a.createElement("i",{className:"fa fa-align-center"})),c.a.createElement(M["a"],{value:"right"},c.a.createElement("i",{className:"fa fa-align-right"}))))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(y["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),c.a.createElement(y["a"],{type:"ghost",onClick:n},"\u53d6\u6d88")))},B=n("9kvl"),F="link",q="upload-image",U="code-block",G="add-table",X="------------",V={default:X,left:":".concat(X),center:":".concat(X,":"),right:"".concat(X,":")},H=n("9VGf");var W=0,z=10,K=1e4,Y="\u2581";function $(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var J=navigator.platform.toUpperCase().indexOf("MAC")>=0,Z=J?"Cmd":"Ctrl",Q=(I={},Object(a["a"])(I,Z+"-B","bold"),Object(a["a"])(I,Z+"-I","italic"),I),ee=(A={},Object(a["a"])(A,F,"\u6dfb\u52a0\u94fe\u63a5"),Object(a["a"])(A,U,"\u6dfb\u52a0\u4ee3\u7801\u5757"),Object(a["a"])(A,q,"\u6dfb\u52a0\u56fe\u7247"),Object(a["a"])(A,G,"\u6dfb\u52a0\u8868\u683c"),A);t["a"]=function(e){var t=e.defaultValue,n=void 0===t?"":t,u=e.onChange,p=e.width,h=void 0===p?"100%":p,m=e.height,y=void 0===m?400:m,v=e.miniToolbar,_=void 0!==v&&v,w=e.isFocus,j=void 0!==w&&w,S=e.watch,T=e.id,O=void 0===T?"markdown-editor-id":T,N=e.showResizeBar,I=void 0!==N&&N,A=e.noStorage,D=void 0!==A&&A,M=e.showNullButton,P=void 0!==M&&M,L=e.fullScreen,X=void 0!==L&&L,J=e.onBlur,Z=e.onCMBeforeChange,te=e.className,ne=void 0===te?"":te,re=e.placeholder,oe=void 0===re?"":re,ie=Object(s["useState"])(null),ae=Object(i["a"])(ie,2),se=ae[0],ce=ae[1],ue=Object(s["useState"])(n),le=Object(i["a"])(ue,2),fe=le[0],de=le[1],pe=Object(s["useState"])(S),he=Object(i["a"])(pe,2),me=he[0],be=he[1],ge=Object(s["useState"])(X),ye=Object(i["a"])(ge,2),ve=ye[0],_e=ye[1],we=Object(s["useState"])(""),xe=Object(i["a"])(we,2),Ee=xe[0],je=xe[1],Se=Object(s["useState"])(0),Te=Object(i["a"])(Se,2),Oe=Te[0],ke=Te[1],Ne=Object(s["useState"])(y),Ce=Object(i["a"])(Ne,2),Ie=Ce[0],Ae=Ce[1],De=Object(s["useState"])(!1),Me=Object(i["a"])(De,2),Pe=Me[0],Le=Me[1],Re=Object(s["useRef"])(),Be=Object(s["useRef"])(),Fe=Object(s["useRef"])(),qe=Object(s["useRef"])();Object(s["useEffect"])((function(){if(Re.current){var e=function(e,n){var r=n.clipboardData;if(r){var o=r.types.toString(),i=r.items;if("text/html,Files"!==o&&"Files"!==o)return!0;var a=i[1];"Files"===o&&(a=i[0]),"file"===a.kind&&a.type.match(/^image\//i)&&C(a.getAsFile(),(function(e){e.id?t.replaceSelection("![,](/api/attachments/".concat(e.id,")")):B["c"].replace("/user/login",{from:B["c"].location.pathname})}))}return!0},t=l.a.fromTextArea(Re.current,{mode:"markdown",inputStyle:"contenteditable",lineNumbers:!_,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("paste",e),ce(t),function(){t.off("paste",e)}}}),[]);var Ue=Object(s["useCallback"])((function(){if(Be.current)try{var e=Be.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,t=Be.current.getElementsByClassName("markdown-editor-body")[0];t.style.height=ve?"calc(100vh - ".concat(e,"px)"):"".concat(Ie-e,"px")}catch(n){console.log(n,"---- to set md editor body height")}}),[Ie,Be,ve]);Object(s["useEffect"])((function(){function e(){var e=new f["default"]((function(e){var t,n=Object(o["a"])(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&(Ue(),se.setSize("100%","100%"),se.refresh())}}catch(i){n.e(i)}finally{n.f()}}));return e.observe(Re.current.parentElement),e}if(se){var t=e();return function(){t.unobserve(Re.current.parentElement)}}}),[se,Ue]),Object(s["useEffect"])((function(){if(se){for(var e=[],t=function(){var t=r[n];s=Object(i["a"])(t,2);var o=s[0],c=s[1],u=Object(a["a"])({},o,(function(){Ge(c)}));e.push(u),se.addKeyMap(u)},n=0,r=Object.entries(Q);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(O);e>=Oe+K&&(!t||t!==fe)&&(window.sessionStorage.setItem(O,fe),Le(!0))}}),K),Object(s["useEffect"])((function(){be(S)}),[se,S]),Object(s["useEffect"])((function(){se&&j&&se.focus()}),[se,j]),Object(s["useEffect"])((function(){if(me&&se){var e=function(e){var t=e.target;qe.current&&(qe.current.scrollTop=qe.current.scrollHeight*t.scrollTop/t.scrollHeight)},t=se.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[se,me]),Object(s["useEffect"])((function(){if(se&&Z){var e=function(e,t){Z(e,t)};return se.on("beforeChange",e),function(){se.off("beforeChange",e)}}}),[se,Z]),Object(s["useEffect"])((function(){if(se&&J){var e=function(){J(se.getValue())};return se.on("blur",e),function(){se.off("blur",e)}}}),[se,J]),Object(s["useEffect"])((function(){if(se){var e=function(e){var t=e.getValue();clearTimeout(W),W=setTimeout((function(){de(t),ke((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),u&&u(t)}),z)};return se.on("change",e),function(){se.off("change",e)}}}),[se,u]),Object(s["useEffect"])((function(){se&&(null===n||void 0===n?(se.setValue(""),de("")):n!==se.getValue()&&(se.setValue(n),de(n)))}),[se,n]);var Ge=Object(s["useCallback"])((function(e){var t=se.getCursor(),n=se.getSelection(),r=n.split("\n");switch(e){case"bold":return se.replaceSelection("**"+n+"**"),""===n&&se.setCursor(t.line,t.ch+2),se.focus();case"italic":return se.replaceSelection("*"+n+"*"),""===n&&se.setCursor(t.line,t.ch+1),se.focus();case"code":return se.replaceSelection("`"+n+"`"),""===n&&se.setCursor(t.line,t.ch+1),se.focus();case"inline-latex":return se.replaceSelection("`$$"+n+"$$`"),""===n&&se.setCursor(t.line,t.ch+3),se.focus();case"latex":return se.replaceSelection("```latex\n"+n+"\n```"),se.setCursor(t.line+1,n.length+1),se.focus();case"line-break":return se.replaceSelection("
      \n"),se.focus();case"list-ul":return""===n?se.replaceSelection("- "+n):se.replaceSelection(r.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),se.focus();case"list-ol":return""===n?se.replaceSelection("1. "+n):se.replaceSelection(r.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),se.focus();case"add-null-ch":return""===n&&se.setCursor(t.line,t.ch+1),se.replaceSelection(Y),se.focus();case"eraser":return se.setValue(""),se.focus();case"trigger-watch":return be(!me),se.focus();case"trigger-full-screen":return _e(!ve),se.focus();case F:return void je(F);case U:return void je(U);case q:return void je(q);case G:return void je(G);default:throw new Error}}),[se,me,ve]),Xe=Object(s["useCallback"])((function(e){switch(je(""),Ee){case F:var t=e.title,n=e.link;return se.replaceSelection("[".concat(t,"](").concat(n,")")),se.focus();case U:var r=e.language,o=e.content;return se.replaceSelection(["```"+r,o,"```"].join("\n")),se.focus();case q:var i=e.src,a=e.alt;return se.replaceSelection("![ ".concat(a," ]( ").concat(i,' "').concat(a,'" )')),se.focus();case G:for(var s=e.row,c=e.col,u=e.align,l="\n",f=0;f300&&(t=300);var n=y+t+"px";Ae(n)}},r=Fe.current,o=!1,i=0;return r.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){r.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[se,Fe]),Object(s["useEffect"])((function(){Ae(y)}),[y]);var We=$(h),ze=$(Ie),Ke={width:We,height:ze},Ye=Object(s["useMemo"])((function(){if(Oe){var e=new Date(Oe),t=e.getHours(),n=e.getMinutes(),r=e.getSeconds();return t=t<10?"0"+t:t,n=n<10?"0"+n:n,r=r<10?"0"+r:r,"".concat(t,":").concat(n,":").concat(r)}return 0}),[Oe]);function $e(){window.sessionStorage.removeItem(O),Le(!1),ke(0)}function Je(){Le(!1),ke(0),se.setValue(window.sessionStorage.getItem(O))}return c.a.createElement(s["Fragment"],null,c.a.createElement("div",{className:"markdown-editor-wrapper",ref:Be},c.a.createElement("div",{className:"markdown-editor-container ".concat(ne," ").concat(me?"on-preview":""," ").concat(_?"mini":""," ").concat(ve?"full-screen":""),style:Ke},c.a.createElement(b,{watch:me,fullScreen:ve,showNullButton:P,onActionCallback:Ge}),c.a.createElement("div",{className:"markdown-editor-body"},c.a.createElement("div",{className:"codemirror-container"},c.a.createElement("textarea",{ref:Re,placeholder:oe})),me?c.a.createElement("div",{ref:qe,className:"preview-container"},c.a.createElement(d["a"],{value:fe})):null)),Pe?c.a.createElement("div",{className:"markdown-tip"},"\u60a8\u4e0a\u6b21\u6709\u5df2\u4fdd\u5b58\u7684\u6570\u636e\uff0c\u662f\u5426",c.a.createElement("a",{onClick:Je},"\u6062\u590d")," ? /",c.a.createElement("a",{onClick:$e},"\u4e0d\u6062\u590d")," \uff08\u6570\u636e\u5df2\u4e8e ",Ye," \u4fdd\u5b58\uff09"):null),I?c.a.createElement("a",{ref:Fe,className:"editor-resize"}):null,c.a.createElement(g["a"],null,ee[Ee]?c.a.createElement(r["a"],{centered:!0,title:ee[Ee],visible:!0,onCancel:He,footer:null},Ve):null))}},V5fa:function(e,t,n){e.exports={flex_box_center:"flex_box_center___1_S53",flex_space_between:"flex_space_between___1jn1m",flex_box_vertical_center:"flex_box_vertical_center___3ENQs",flex_box_center_end:"flex_box_center_end___1RjJf",flex_box_column:"flex_box_column___3-6wq",bg:"bg___3wGkV",title:"title___1QMPU",questionIcons:"questionIcons___2kqHA",green:"green___3sUty",orange:"orange___1IwUK",greenTip:"greenTip___2LD-4",redTip:"redTip___Ua25P",orangeTip:"orangeTip___1P_qu",pollDesc:"pollDesc___12pG2",answered:"answered___12rTH",unanswer:"unanswer___2WW2x",anchor:"anchor___K9-2U",answerFlag:"answerFlag___3jqRB",flagActive:"flagActive___38hkf",flagHalf:"flagHalf___1rgyT",answerStudentFlag:"answerStudentFlag___2zRLo",answerStudentActive:"answerStudentActive___2T-mu",questionItem:"questionItem___LqD7i",itemType:"itemType___1pbUF",itemFlag:"itemFlag___3xnGm",answerWrap:"answerWrap___13WPD",answerSubjective:"answerSubjective___BuIEZ",otherInput:"otherInput___3j4KI",submitButton:"submitButton___3lR03",randomFlag:"randomFlag___HVH41",answerTrue:"answerTrue___3EG1E",answerFalse:"answerFalse___zj_y6",answerHalf:"answerHalf___27vGH",renderHtml:"renderHtml___1U3SR",simpleText:"simpleText___1ljHF",answerYes:"answerYes___nDZ92",answerNo:"answerNo___1DhaR",answerInfo:"answerInfo___150u3",answerSheet:"answerSheet___1m3xL",active:"active___I4C3w",countDown:"countDown___1gxag",fold:"fold___1XoX9",cardList:"cardList___vfXeA"}},ZW9T:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("55MS"),o=n("Uu80"),i=n("GZha"),a=n("ZZRV"),s=n.n(a),c=n("BlUI");function u(e,t,n,o,i){var a=t.getWordUntilPosition(n),s={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:a.startColumn,endColumn:a.endColumn},c=o.map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Keyword,insertText:t,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:s}}));return i.map((function(e){c.push(Object(r["a"])(Object(r["a"])({},e),{},{range:s}))})),c}var l=function(e){var t={label:"ifelse",kind:e.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},n=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];e.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(r,o){var i=u(e,r,o,n,[t]);return{suggestions:i}}});var r=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];e.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(t,n){var o=[{label:"print",kind:e.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet}],i=u(e,t,n,r,o);return{suggestions:i}}});var o=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];e.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(n,r){var i=[t,{label:"main",kind:e.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {","\t$0","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:e.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet}],a=u(e,n,r,o,i);return{suggestions:a}}})};function f(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function d(){}var p=!1,h={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;if(Array.isArray(e)){for(var n=0;n0||r.target.offsetWidth>0)&&q.current.instance.layout()}}catch(i){n.e(i)}finally{n.f()}})),e.observe(F.current)),e}function W(){var e=q.current.instance;if(e){var t=e.getSelection(),n=q.current.pastePos||{},r=new b.Range(n.startLineNumber||t.endLineNumber,n.startColumn||t.endColumn,n.endLineNumber||t.endLineNumber,n.endColumn||t.endColumn);e.executeEdits("",[{range:r,text:""}])}}function z(e){(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&83==e.keyCode&&(e.preventDefault(),C())}Object(a["useEffect"])((function(){var e=q.current.instance;if(null!=y&&e&&X){var t=e.getModel();t&&y!==t.getValue()&&(p=!0,t.setValue(y),e.layout(),p=!1)}}),[y,X,q.current]),Object(a["useEffect"])((function(){F.current&&!X&&n.e(24).then(n.t.bind(null,"1lNs",7)).then((function(e){b=e,l(b),q.current.instance=b.editor.create(F.current,Object(r["a"])({value:y,language:m(_),theme:k},j),T);var t=q.current.instance;L(t,b),q.current.subscription=t.onDidChangeModelContent((function(e){p||M(t.getValue(),e)})),N&&t.onDidBlurEditorWidget((function(){N(t.getValue())})),B&&t.onDidFocusEditorText((function(){B(t.getValue())})),A&&(t.addCommand(b.KeyMod.CtrlCmd|b.KeyCode.KEY_V,(function(){return null})),t.onDidPaste((function(e){q.current.pastePos=e})),window.addEventListener("paste",W));var n=H();return V(!0),function(){var e=q.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),q.current.subscription&&q.current.subscription.dispose(),A&&window.removeEventListener("paste",W),n.unobserve(F.current)}}))}),[]),Object(a["useEffect"])((function(){var e=q.current.instance;if(e&&X)return document.addEventListener("keydown",z,!1),function(){document.removeEventListener("keydown",z)}}),[C,X]),Object(a["useEffect"])((function(){var e=q.current.instance;if(e&&X){var t=m(_);b.editor.setModelLanguage(e.getModel(),t)}}),[_,X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&b.editor.setTheme(k)}),[k,X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&e.updateOptions(j)}),[JSON.stringify(j),X]),Object(a["useEffect"])((function(){var e=q.current.instance;e&&X&&e.layout()}),[u,g,X]);var K=f(u),Y=f(g),$=Object(r["a"])(Object(r["a"])({},x),{},{width:K,height:Y});return s.a.createElement("div",{className:"my-monaco-editor",ref:F,style:$})};function g(e){var t=e.width,u=void 0===t?"100%":t,l=e.height,d=void 0===l?"100%":l,p=e.original,h=e.modified,m=e.language,g=e.options,y=void 0===g?{}:g,v=Object(a["useRef"])(),_=Object(a["useState"])(null),w=Object(i["a"])(_,2),x=w[0],E=w[1];function j(e){var t;return v.current&&(t=new c["default"]((function(t){var n,r=Object(o["a"])(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&e.layout()}}catch(a){r.e(a)}finally{r.f()}})),t.observe(v.current)),t}Object(a["useEffect"])((function(){v.current&&n.e(24).then(n.t.bind(null,"1lNs",7)).then((function(e){b=e;var t=b.editor.createDiffEditor(v.current,Object(r["a"])({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},y));E(t);var n=j(t);return function(){t.dispose();var e=t.getModel();e&&e.dispose(),n.unobserve(v.current)}}))}),[]),Object(a["useEffect"])((function(){x&&x.setModel({original:b.editor.createModel(p,m),modified:b.editor.createModel(h,m)})}),[p,h,m,x]);var S=f(u),T=f(d),O={width:S,height:T};return s.a.createElement("div",{className:"my-diff-editor",ref:v,style:O})}},dejd:function(e,t,n){},kSUc:function(e,t,n){},o5mm:function(e,t,n){e.exports={flex_box_center:"flex_box_center___yMfGk",flex_space_between:"flex_space_between___3T4Rr",flex_box_vertical_center:"flex_box_vertical_center___2K9ch",flex_box_center_end:"flex_box_center_end___1GgKp",flex_box_column:"flex_box_column___2DSuN",shixunWrp:"shixunWrp___2_2ep"}},piNp:function(module,exports,__webpack_require__){(function(global){var require,require;(function(e){module.exports=e()})((function(){var define,module,exports;return function(){function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return require(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){var n=t[a][1][e];return o(n||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a0&&h(l).to(d),p=this._divideParts(i,s),m=p.length,b=!1,g=function(n,o){var i=this;return new a["default"]((function(a,s){var d,g,y,v;return c["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,n.isCancel()){i.next=18;break}return d=p[o-1],g={stream:n._createStream(r,d.start,d.end),size:d.end-d.start},i.next=6,c["default"].awrap(n._uploadPart(f,u,o,g));case 6:if(y=i.sent,n.isCancel()||b){i.next=15;break}if(e.doneParts.push({number:o,etag:y.res.headers.etag}),!t.progress){i.next=12;break}return i.next=12,c["default"].awrap(t.progress(l.length/m,e,y.res));case 12:a({number:o,etag:y.res.headers.etag}),i.next=16;break;case 15:a();case 16:i.next=19;break;case 18:a();case 19:i.next=30;break;case 21:i.prev=21,i.t0=i["catch"](0),v=new Error,v.name=i.t0.name,v.message=i.t0.message,v.stack=i.t0.stack,v.partNum=o,h(i.t0).to(v),s(v);case 30:case"end":return i.stop()}}),null,i,[[0,21]])}))},y=(0,o["default"])(new Array(m),(function(e,t){return t+1})),v=d.map((function(e){return e.number})),_=y.filter((function(e){return v.indexOf(e)<0})),w=5,x=t.parallel||w,j.next=17,c["default"].awrap(this._parallel(_,x,(function(e){return new a["default"]((function(t,r){g(n,e).then((function(e){e&&d.push(e),t()}))["catch"]((function(e){r(e)}))}))})));case 17:if(E=j.sent,b=!0,!this.isCancel()){j.next=22;break}throw g=null,this._makeCancelEvent();case 22:if(!(E&&E.length>0)){j.next=25;break}throw E[0].message="Failed to upload some parts with error: "+E[0].toString()+" part_num: "+E[0].partNum,E[0];case 25:return j.next=27,c["default"].awrap(this.completeMultipartUpload(f,u,d,t));case 27:return j.abrupt("return",j.sent);case 28:case"end":return j.stop()}}),null,this)},v._getFileSize=function(e){return c["default"].async((function(t){while(1)switch(t.prev=t.next){case 0:if(!l.buffer(e)){t.next=4;break}return t.abrupt("return",e.length);case 4:if(!b(e)&&!y(e)){t.next=6;break}return t.abrupt("return",e.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return t.stop()}}),null,this)};var _=e("stream"),w=_.Readable;function x(e,t){if(!(this instanceof x))return new x(e,t);w.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(x,w),x.prototype.readFileAndPush=function(e){if(this.fileBuffer){var t=!0;while(t&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:r,this.start=r,t=this.push(this.fileBuffer.slice(n,r))}}},x.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);var n=16384;e=e||n;var r=this;this.reader.onload=function(n){r.fileBuffer=t.from(new Uint8Array(n.target.result)),r.file=null,r.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},v._createStream=function(e,t,n){if(b(e)||y(e))return new x(e.slice(t,n));throw new Error("_createStream requires File/Blob.")},v._getPartSize=function(e,t){var n=1e4,r=1048576;return t?Math.max(Math.ceil(e/n),t):r},v._divideParts=function(e,t){for(var n=Math.ceil(e/t),r=[],o=0;o255)throw new Error("ID is composed of 255 bytes at most");if(""===e.prefix||void 0===e.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(e.status))throw new Error("Status must be Enabled or Disabled");if(e.transition){if(!["IA","Archive"].includes(e.transition.storageClass))throw new Error("StorageClass must be IA or Archive");x(e.transition,"Transition")}if(e.expiration)if(e.expiration.expiredObjectDeleteMarker){if(e.expiration.days||e.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else x(e.expiration,"Expiration");if(e.abortMultipartUpload&&x(e.abortMultipartUpload,"AbortMultipartUpload"),!e.expiration&&!e.abortMultipartUpload&&!e.transition&&!e.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(e.tag){if(e.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");E(e.tag)}}_.putBucketLifecycle=function(e,t,n){var r,i,a,c,l;return o["default"].async((function(f){while(1)switch(f.prev=f.next){case 0:if(s(e),u(t)){f.next=3;break}throw new Error("rules must be Array");case 3:return r=this._bucketRequestParams("PUT",e,"lifecycle",n),i=[],a={LifecycleConfiguration:{Rule:i}},t.forEach((function(e){w(e),j(e),e.id&&(e.ID=e.id,delete e.id),i.push(e)})),c=m(a,{headers:!0,firstUpperCase:!0}),r.content=c,r.mime="xml",r.successStatuses=[200],f.next=13,o["default"].awrap(this.request(r));case 13:return l=f.sent,f.abrupt("return",{res:l.res});case 15:case"end":return f.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/obj2xml"),u=c.obj2xml,l=n;l.putBucketVersioning=function(e,t){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:if(s(e),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return n=this._bucketRequestParams("PUT",e,"versioning",a),r={VersioningConfiguration:{Status:t}},n.mime="xml",n.content=u(r,{headers:!0}),c.next=9,o["default"].awrap(this.request(n));case 9:return i=c.sent,c.abrupt("return",{res:i.res,status:i.status});case 11:case"end":return c.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("../utils/obj2xml"),u=c.obj2xml,l=e("../utils/isArray"),f=l.isArray,d=n;d.putBucketWebsite=function(e){var t,n,r,i,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments[2];return o["default"].async((function(d){while(1)switch(d.prev=d.next){case 0:if(s(e),t=this._bucketRequestParams("PUT",e,"website",l),n={Suffix:c.index||"index.html"},r={IndexDocument:n},i={WebsiteConfiguration:r},c.supportSubDir&&(n.SupportSubDir=c.supportSubDir),c.type&&(n.Type=c.type),c.error&&(r.ErrorDocument={Key:c.error}),void 0===c.routingRules){d.next=12;break}if(f(c.routingRules)){d.next=11;break}throw new Error("RoutingRules must be Array");case 11:r.RoutingRules={RoutingRule:c.routingRules};case 12:return i=u(i),t.content=i,t.mime="xml",t.successStatuses=[200],d.next=18,o["default"].awrap(this.request(t));case 18:return a=d.sent,d.abrupt("return",{res:a.res});case 20:case"end":return d.stop()}}),null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/core-js/json/stringify"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}n.encodeCallback=function(e,n){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&n.callback){var r={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};n.callback.host&&(r.callbackHost=n.callback.host),n.callback.contentType&&(r.callbackBodyType=n.callback.contentType);var i=t.from((0,a["default"])(r)).toString("base64");if(e.headers["x-oss-callback"]=i,n.callback.customValue){var s={};(0,o["default"])(n.callback.customValue).forEach((function(e){s["x:"+e]=n.callback.customValue[e]})),e.headers["x-oss-callback-var"]=t.from((0,a["default"])(s)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/assign"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("humanize-ms"),s=e("url"),c=e("../utils/checkBucketName"),u=c.checkBucketName;function l(e,t){var n=s.parse(e);if(n.protocol||(n=s.parse("http"+(t?"s":"")+"://"+e)),"http:"!==n.protocol&&"https:"!==n.protocol)throw new Error("Endpoint protocol must be http or https.");return n}function f(e,t,n){var r=n?"https://":"http://",o=t?"-internal.aliyuncs.com":".aliyuncs.com",i="vpc100-oss-cn-";return e.substr(0,i.length)===i&&(o=".aliyuncs.com"),s.parse(r+e+o)}t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");e.bucket&&u(e.bucket);var t=(0,o["default"])({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=a(t.timeout)),t.endpoint)t.endpoint=l(t.endpoint,t.secure);else{if(!t.region)throw new Error("require options.endpoint or options.region");t.endpoint=f(t.region,t.internal,t.secure)}return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(e,t,n){"use strict";var r=e("merge-descriptors"),o=n;r(o,e("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("../utils/checkBucketName"),s=a.checkBucketName,c=e("querystring"),u=e("js-base64"),l=u.Base64.encode,f=n;function d(e,t){if(!e)throw new Error(t+" is required");if("string"!==typeof e)throw new Error(t+" must be String")}f.processObjectSave=function(e,t,n,r){var i,a,u,f;return o["default"].async((function(p){while(1)switch(p.prev=p.next){case 0:return d(e,"sourceObject"),d(t,"targetObject"),d(n,"process"),t=this._objectName(t),r&&s(r),i=this._objectRequestParams("POST",e,{subres:"x-oss-process"}),a=r?",b_"+l(r):"",t=l(t),u={"x-oss-process":n+"|sys/saveas,o_"+t+a},i.content=c.stringify(u),p.next=12,o["default"].awrap(this.request(i));case 12:return f=p.sent,p.abrupt("return",{res:f.res,status:f.res.status});case 14:case"end":return p.stop()}}),null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("copy-to"),s=e("./callback"),c=e("./utils/deepCopy"),u=c.deepCopy,l=n;l.listUploads=function(e,t){var n,r,i,s;return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:return t=t||{},n={},a(t).to(n),n.subres="uploads",r=this._objectRequestParams("GET","",n),r.query=e,r.xmlResponse=!0,r.successStatuses=[200],c.next=10,o["default"].awrap(this.request(r));case 10:return i=c.sent,s=i.data.Upload||[],Array.isArray(s)||(s=[s]),s=s.map((function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}})),c.abrupt("return",{res:i.res,uploads:s,bucket:i.data.Bucket,nextKeyMarker:i.data.NextKeyMarker,nextUploadIdMarker:i.data.NextUploadIdMarker,isTruncated:"true"===i.data.IsTruncated});case 15:case"end":return c.stop()}}),null,this)},l.listParts=function(e,t,n,r){var i,s,c;return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return r=r||{},i={},a(r).to(i),i.subres={uploadId:t},s=this._objectRequestParams("GET",e,i),s.query=n,s.xmlResponse=!0,s.successStatuses=[200],u.next=10,o["default"].awrap(this.request(s));case 10:return c=u.sent,u.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return u.stop()}}),null,this)},l.abortMultipartUpload=function(e,t,n){var r,i,s;return o["default"].async((function(c){while(1)switch(c.prev=c.next){case 0:return this._stop(),n=n||{},r={},a(n).to(r),r.subres={uploadId:t},i=this._objectRequestParams("DELETE",e,r),i.successStatuses=[204],c.next=9,o["default"].awrap(this.request(i));case 9:return s=c.sent,c.abrupt("return",{res:s.res});case 11:case"end":return c.stop()}}),null,this)},l.initMultipartUpload=function(e,t){var n,r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return t=t||{},n={},a(t).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(t.meta,n.headers),n.subres="uploads",r=this._objectRequestParams("POST",e,n),r.mime=t.mime,r.xmlResponse=!0,r.successStatuses=[200],s.next=12,o["default"].awrap(this.request(r));case 12:return i=s.sent,s.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return s.stop()}}),null,this)},l.uploadPart=function(e,t,n,r,i,a,s){var c;return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return c={stream:this._createStream(r,i,a),size:a-i},u.next=3,o["default"].awrap(this._uploadPart(e,t,n,c,s));case 3:return u.abrupt("return",u.sent);case 4:case"end":return u.stop()}}),null,this)},l.completeMultipartUpload=function(e,t,n,r){var i,a,c,l,f,d,p,h;return o["default"].async((function(m){while(1)switch(m.prev=m.next){case 0:for(i=n.concat().sort((function(e,t){return e.number-t.number})).filter((function(e,t,n){return!t||e.number!==n[t-1].number})),a='\n\n',c=0;c\n",a+=""+l.number+"\n",a+=""+l.etag+"\n",a+="\n";return a+="",r=r||{},f={},f=u(r),f.headers&&delete f.headers["x-oss-server-side-encryption"],f.subres={uploadId:t},d=this._objectRequestParams("POST",e,f),s.encodeCallback(d,f),d.mime="xml",d.content=a,d.headers&&d.headers["x-oss-callback"]||(d.xmlResponse=!0),d.successStatuses=[200],m.next=17,o["default"].awrap(this.request(d));case 17:return p=m.sent,h={res:p.res,bucket:d.bucket,name:e,etag:p.res.headers.etag},d.headers&&d.headers["x-oss-callback"]&&(h.data=JSON.parse(p.data.toString())),m.abrupt("return",h);case 21:case"end":return m.stop()}}),null,this)},l._uploadPart=function(e,t,n,r,i){var s,c,u;return o["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:return i=i||{},s={},a(i).to(s),s.headers={"Content-Length":r.size},s.subres={partNumber:n,uploadId:t},c=this._objectRequestParams("PUT",e,s),c.mime=s.mime,c.stream=r.stream,c.successStatuses=[200],l.next=11,o["default"].awrap(this.request(c));case 11:if(u=l.sent,u.res.headers.etag){l.next=14;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 14:return r.stream=null,c.stream=null,l.abrupt("return",{name:e,etag:u.res.headers.etag,res:u.res});case 17:case"end":return l.stop()}}),null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/helpers/typeof"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=e("../utils/checkBucketName"),f=l.checkBucketName,d=n;d.copy=function(e,t,n,r){var i,s,u;return o["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:return"object"===("undefined"===typeof n?"undefined":(0,c["default"])(n))&&(r=n),r=r||{},r.headers=r.headers||{},(0,a["default"])(r.headers).forEach((function(e){r.headers["x-oss-copy-source-"+e.toLowerCase()]=r.headers[e]})),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),t=this._getSourceName(t,n),r.versionId&&(t=t+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=t,i=this._objectRequestParams("PUT",e,r),i.xmlResponse=!0,i.successStatuses=[200,304],l.next=14,o["default"].awrap(this.request(i));case 14:return s=l.sent,u=s.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),l.abrupt("return",{data:u,res:s.res});case 18:case"end":return l.stop()}}),null,this)},d._getSourceName=function(e,t){return"string"===typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),f(t),e=encodeURI(e),e="/"+t+"/"+e,e}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c["delete"]=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectRequestParams("DELETE",e,r),t.successStatuses=[204],i.next=6,o["default"].awrap(this.request(t));case 6:return n=i.sent,i.abrupt("return",{res:n.res});case 8:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("utility"),u=e("../utils/obj2xml"),l=u.obj2xml,f=n;f.deleteMulti=function(e){var t,n,r,i,s,u,f,d,p,h,m,b,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(y){while(1)switch(y.prev=y.next){case 0:if(t=[],e&&e.length){y.next=3;break}throw new Error("names is required");case 3:for(n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),e=this._objectName(e),t=this._objectRequestParams("DELETE",e,r),t.successStatuses=[204],i.next=7,o["default"].awrap(this.request(t));case 7:return n=i.sent,i.abrupt("return",{status:n.status,res:n.res});case 9:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("fs"),u=e("is-type-of"),l=n;l.get=function(e,t){var n,r,i,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(f){while(1)switch(f.prev=f.next){case 0:return n=null,r=!1,u.writableStream(t)?n=t:u.string(t)?(n=c.createWriteStream(t),r=!0):l=t,l=l||{},l.subres=(0,a["default"])({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.process&&(l.subres["x-oss-process"]=l.process),i=void 0,f.prev=8,s=this._objectRequestParams("GET",e,l),s.writeStream=n,s.successStatuses=[200,206,304],f.next=14,o["default"].awrap(this.request(s));case 14:i=f.sent,r&&n.destroy(),f.next=25;break;case 18:if(f.prev=18,f.t0=f["catch"](8),!r){f.next=24;break}return n.destroy(),f.next=24,o["default"].awrap(this._deleteFileSafe(t));case 24:throw f.t0;case 25:return f.abrupt("return",{res:i.res,content:i.data});case 26:case"end":return f.stop()}}),null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getACL=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return r.subres=(0,a["default"])({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,r),t.successStatuses=[200],t.xmlResponse=!0,i.next=8,o["default"].awrap(this.request(t));case 8:return n=i.sent,i.abrupt("return",{acl:n.data.AccessControlList.Grant,owner:{id:n.data.Owner.ID,displayName:n.data.Owner.DisplayName},res:n.res});case 10:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=u(r),i=e("babel-runtime/regenerator"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=n,f=e("../utils/isObject"),d=f.isObject,p=e("../utils/isArray"),h=p.isArray;function m(){var e,t,n,r,o,i,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a["default"].async((function(l){while(1)switch(l.prev=l.next){case 0:if(!s.versionIdMarker||void 0!==s.keyMarker){l.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return u.subres=(0,c["default"])({versions:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),e=this._objectRequestParams("GET","",u),e.xmlResponse=!0,e.successStatuses=[200],e.query=g(s),l.next=10,a["default"].awrap(this.request(e));case 10:return t=l.sent,n=t.data.Version||[],r=t.data.DeleteMarker||[],o=this,n&&(Array.isArray(n)||(n=[n]),n=n.map((function(e){return{name:e.Key,url:o._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),r&&(h(r)||(r=[r]),r=r.map((function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),i=t.data.CommonPrefixes||null,i&&(h(i)||(i=[i]),i=i.map((function(e){return e.Prefix}))),l.abrupt("return",{res:t.res,objects:n,deleteMarker:r,prefixes:i,nextMarker:t.data.NextMarker||null,NextVersionIdMarker:t.data.NextVersionIdMarker||null,isTruncated:"true"===t.data.IsTruncated});case 19:case"end":return l.stop()}}),null,this)}function b(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return d(e)&&(0,o["default"])(e).forEach((function(n){t[b(n)]=e[n]})),t}l.getBucketVersions=m,l.listObjectVersions=m},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getObjectMeta=function(e,t){var n,r;return o["default"].async((function(i){while(1)switch(i.prev=i.next){case 0:return t=t||{},e=this._objectName(e),t.subres=(0,a["default"])({objectMeta:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),n=this._objectRequestParams("HEAD",e,t),n.successStatuses=[200],i.next=8,o["default"].awrap(this.request(n));case 8:return r=i.sent,i.abrupt("return",{status:r.status,res:r.res});case 10:case"end":return i.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n,u=e("../utils/isObject"),l=u.isObject;c.getObjectTagging=function(e){var t,n,r,i,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return c.subres=(0,a["default"])({tagging:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,c),t.successStatuses=[200],u.next=7,o["default"].awrap(this.request(t));case 7:return n=u.sent,u.next=10,o["default"].awrap(this.parseXML(n.data));case 10:return r=u.sent,i=r.TagSet.Tag,i=i&&l(i)?[i]:i||[],s={},i.forEach((function(e){s[e.Key]=e.Value})),u.abrupt("return",{status:n.status,res:n.res,tag:s});case 16:case"end":return u.stop()}}),null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.getSymlink=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return i.subres=(0,a["default"])({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),e=this._objectName(e),t=this._objectRequestParams("GET",e,i),t.successStatuses=[200],s.next=7,o["default"].awrap(this.request(t));case 7:return n=s.sent,r=n.res.headers["x-oss-symlink-target"],s.abrupt("return",{targetName:decodeURIComponent(r),res:n.res});case 10:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=n;l.head=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return i.subres=(0,c["default"])({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),t=this._objectRequestParams("HEAD",e,i),t.successStatuses=[200,304],s.next=6,o["default"].awrap(this.request(t));case 6:return n=s.sent,r={meta:null,res:n.res,status:n.status},200===n.status&&(0,a["default"])(n.headers).forEach((function(e){0===e.indexOf("x-oss-meta-")&&(r.meta||(r.meta={}),r.meta[e.substring(11)]=n.headers[e])})),s.abrupt("return",r);case 10:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.putACL=function(e,t,n){var r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return n=n||{},n.subres=(0,a["default"])({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=t,e=this._objectName(e),r=this._objectRequestParams("PUT",e,n),r.successStatuses=[200],s.next=10,o["default"].awrap(this.request(r));case 10:return i=s.sent,s.abrupt("return",{res:i.res});case 12:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=u(r),i=e("babel-runtime/core-js/object/keys"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var l=e("../utils/obj2xml"),f=l.obj2xml,d=e("../utils/checkObjectTag"),p=d.checkObjectTag,h=n;h.putObjectTagging=function(e,t){var n,r,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o["default"].async((function(u){while(1)switch(u.prev=u.next){case 0:return p(t),s.subres=(0,c["default"])({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),e=this._objectName(e),n=this._objectRequestParams("PUT",e,s),n.successStatuses=[200],t=(0,a["default"])(t).map((function(e){return{Key:e,Value:t[e]}})),r={Tagging:{TagSet:{Tag:t}}},n.mime="xml",n.content=f(r),u.next=12,o["default"].awrap(this.request(n));case 12:return i=u.sent,u.abrupt("return",{res:i.res,status:i.status});case 14:case"end":return u.stop()}}),null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/object/assign"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c.putSymlink=function(e,t,n){var r,i;return o["default"].async((function(s){while(1)switch(s.prev=s.next){case 0:return n=n||{},n.headers=n.headers||{},t=this._escape(this._objectName(t)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=t,n.subres=(0,a["default"])({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),e=this._objectName(e),r=this._objectRequestParams("PUT",e,n),r.successStatuses=[200],s.next=13,o["default"].awrap(this.request(r));case 13:return i=s.sent,s.abrupt("return",{res:i.res});case 15:case"end":return s.stop()}}),null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(e,t,n){"use strict";var r=e("babel-runtime/regenerator"),o=s(r),i=e("babel-runtime/core-js/promise"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=n;c._parallelNode=function(e,t,n,r){var i,s,c,u,l,f,d,p;return o["default"].async((function(h){while(1)switch(h.prev=h.next){case 0:i=this,s=[],c=[],u=e.length/t,l=e.length%t,f=0===l?u:(e.length-l)/t+1,d=1,p=0;case 8:if(!(p0)return s=!0,void(c<=0&&o(i));c+=1,p(e.value,l(d))}u=!1}}))},c.cancel=function(e){this.options.cancelFlag=!0,e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},c.isCancel=function(){return this.options.cancelFlag},c.resetCancelFlag=function(){this.options.cancelFlag=!1},c._stop=function(){this.options.cancelFlag=!0},c._makeCancelEvent=function(){var e={status:0,name:"cancel"};return e}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/json/stringify"),o=s(r),i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./../../shims/crypto/crypto.js"),u=e("is-type-of");n.buildCanonicalizedResource=function(e,t){var n=""+e,r="?";if(u.string(t)&&""!==t.trim())n+=r+t;else if(u.array(t))t.sort(),n+=r+t.join("&");else if(t){var o=function(e,t){return e[0]>t[0]?1:e[0]1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],i=arguments[3],s={},c=n.subResource,u=void 0===c?{}:c;if(n.process){var l="x-oss-process";u[l]=n.process}if(n.trafficLimit){var f="x-oss-traffic-limit";u[f]=n.trafficLimit}if(n.response&&(0,a["default"])(n.response).forEach((function(e){var t="response-"+e.toLowerCase();u[t]=n.response[e]})),(0,a["default"])(n).forEach((function(e){var t=e.toLowerCase(),r=n[e];0===t.indexOf("x-oss-")?s[t]=r:(0===t.indexOf("content-md5")||0===t.indexOf("content-type"))&&(s[e]=r)})),Object.prototype.hasOwnProperty.call(n,"security-token")&&(u["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var d={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(d.callbackHost=n.callback.host),n.callback.contentType&&(d.callbackBodyType=n.callback.contentType),u.callback=t.from((0,o["default"])(d)).toString("base64"),n.callback.customValue){var p={};(0,a["default"])(n.callback.customValue).forEach((function(e){p["x:"+e]=n.callback.customValue[e]})),u["callback-var"]=t.from((0,o["default"])(p)).toString("base64")}}var h=this.buildCanonicalString(n.method,r,{headers:s,parameters:u},i.toString());return{Signature:this.computeSignature(e,h),subResource:u}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.checkBucketName=function(e,t){var n=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!n.test(e))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/entries"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var a=e("./checkValid"),s=a.checkValid,c=e("./isObject"),u=c.isObject,l=[{validator:function(e){if("string"!==typeof e)throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],f={key:[].concat(l,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(l,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function d(e){if(!u(e))throw new Error("tag must be Object");var t=(0,o["default"])(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];t.forEach((function(e){e.forEach((function(e,t){s(e,f[n[t]])}))}))}n.checkObjectTag=d},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(e,t,n){"use strict";function r(e,t){t.forEach((function(t){if(t.validator)t.validator(e);else if(t.pattern&&!t.pattern.test(e))throw new Error(t.msg)}))}Object.defineProperty(n,"__esModule",{value:!0}),n.checkValid=void 0,n.checkValid=r},{}],38:[function(e,t,n){(function(t){"use strict";var r=e("babel-runtime/core-js/object/assign"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var a=e("./../../../shims/crypto/crypto.js"),s=e("debug")("ali-oss"),c=e("mime"),u=e("dateformat"),l=e("copy-to"),f=e("path");function d(e,t){return e[t]||e[t.toLowerCase()]}function p(e,t){delete e[t],delete e[t.toLowerCase()]}function h(e){var n=new Date;this.options.amendTimeSkewed&&(n=+new Date+this.options.amendTimeSkewed);var r={"x-oss-date":u(n,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(r["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,o["default"])(r,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(r["x-oss-security-token"]=this.options.stsToken),l(e.headers).to(r),d(r,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?r["Content-Type"]=e.mime:r["Content-Type"]=c.getType(e.mime||f.extname(e.object||""))),d(r,"Content-Type")||p(r,"Content-Type"),e.content&&(r["Content-Md5"]=a.createHash("md5").update(t.from(e.content,"utf8")).digest("base64"),r["Content-Length"]||(r["Content-Length"]=e.content.length));var i=this._getResource(e);r.authorization=this.authorization(e.method,i,e.subres,r);var h=this._getReqUrl(e);s("request %s %s, with headers %j, !!stream: %s",e.method,h,r,!!e.stream);var m=e.timeout||this.options.timeout,b={method:e.method,content:e.content,stream:e.stream,headers:r,timeout:m,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(b.agent=this.agent),this.httpsAgent&&(b.httpsAgent=this.httpsAgent),{url:h,params:b}}n.createRequest=h}).call(this,e("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/helpers/typeof"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopy=void 0,n.deepCopy=function(e){if(null===e||"object"!==("undefined"===typeof e?"undefined":(0,a["default"])(e)))return e;var t=Array.isArray(e)?[]:{};return(0,o["default"])(e).forEach((function(r){t[r]=n.deepCopy(e[r])})),t}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/helpers/typeof"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(null===e||"object"!==("undefined"===typeof e?"undefined":(0,a["default"])(e)))return e;var n=void 0;if(Array.isArray(e)){n=[];for(var r=0;r"+e[t]+"":"object"===s(e[t])?n+="<"+t+">"+c(e[t])+"":"array"===s(e[t])?n+=e[t].map((function(e){return"<"+t+">"+c(e)+""})).join(""):n+="<"+t+">"+e[t].toString()+""})):n+=e.toString(),n}n.obj2xml=c},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(e,t,n){function r(){}t.exports=r,t.exports.HttpsAgent=r},{}],49:[function(e,t,n){t.exports=e("./register")().Promise},{"./register":51}],50:[function(e,t,n){"use strict";var r="@@any-promise/REGISTRATION",o=null;t.exports=function(e,t){return function(n,i){n=n||null,i=i||{};var a=!1!==i.global;if(null===o&&a&&(o=e[r]||null),null!==o&&null!==n&&o.implementation!==n)throw new Error('any-promise already defined as "'+o.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return null===o&&(o=null!==n&&"undefined"!==typeof i.Promise?{Promise:i.Promise,implementation:n}:t(n),a&&(e[r]=o)),o}}},{}],51:[function(e,t,n){"use strict";function r(){if("undefined"===typeof window.Promise)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}t.exports=e("./loader")(window,r)},{"./loader":50}],52:[function(e,t,n){t.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(e,t,n){t.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(e,t,n){t.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(e,t,n){t.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(e,t,n){t.exports={default:e("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(e,t,n){t.exports={default:e("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(e,t,n){t.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("../core-js/symbol/iterator"),o=c(r),i=e("../core-js/symbol"),a=c(i),s="function"===typeof a["default"]&&"symbol"===typeof o["default"]?function(e){return typeof e}:function(e){return e&&"function"===typeof a["default"]&&e.constructor===a["default"]&&e!==a["default"].prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}n["default"]="function"===typeof a["default"]&&"symbol"===s(o["default"])?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a["default"]&&e.constructor===a["default"]&&e!==a["default"].prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(e,t,n){t.exports=e("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(e,t,n){"use strict";n.byteLength=l,n.toByteArray=d,n.fromByteArray=m;for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=u(e),a=r[0],s=r[1],c=new i(f(e,a,s)),l=0,d=s>0?a-4:a;for(n=0;n>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,n){for(var r,o=[],i=t;ic?c:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],70:[function(e,t,n){!function(e,n,r){"undefined"!=typeof t&&t.exports?t.exports=r():"function"==typeof define&&define.amd?define(n,r):e[n]=r()}(this,"bowser",(function(){var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function r(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var o,a=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(t),c=!s&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),l=!u&&/nexus\s*[0-9]+/i.test(t),f=/CrOS/.test(t),d=/silk/i.test(t),p=/sailfish/i.test(t),h=/tizen/i.test(t),m=/(web|hpw)(o|0)s/i.test(t),b=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!b&&/windows/i.test(t)),y=!a&&!d&&/macintosh/i.test(t),v=!c&&!p&&!h&&!m&&/linux/i.test(t),_=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=n(/version\/(\d+(\.\d+)?)/i),x=/tablet/i.test(t)&&!/tablet pc/i.test(t),E=!x&&/[^-]mobi/i.test(t),j=/xbox/i.test(t);function S(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}/opera/i.test(t)?o={name:"Opera",opera:e,version:w||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?o={name:"Opera",opera:e,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?o={name:"Samsung Internet for Android",samsungBrowser:e,version:w||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?o={name:"NAVER Whale browser",whale:e,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?o={name:"MZ Browser",mzbrowser:e,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?o={name:"Opera Coast",coast:e,version:w||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?o={name:"Focus",focus:e,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?o={name:"Yandex Browser",yandexbrowser:e,version:w||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?o={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?o={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?o={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?o={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?o={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?o={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:b?(o={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},_?(o.msedge=e,o.version=_):(o.msie=e,o.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?o={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:f?o={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?o={name:"Microsoft Edge",msedge:e,version:_}:/vivaldi/i.test(t)?o={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||w}:p?o={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?o={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(o={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(o.firefoxos=e,o.osname="Firefox OS")):d?o={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?o={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?o={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?o={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:w||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(o={name:"WebOS",osname:"WebOS",webos:e,version:w||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(o.touchpad=e)):/bada/i.test(t)?o={name:"Bada",osname:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:h?o={name:"Tizen",osname:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?o={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?o={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?o={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:c?o={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(o={name:"Safari",safari:e},w&&(o.version=w)):a?(o={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},w&&(o.version=w)):o=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||w}:{name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!o.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(o.name=o.name||"Blink",o.blink=e):(o.name=o.name||"Webkit",o.webkit=e),!o.version&&w&&(o.version=w)):!o.opera&&/gecko\//i.test(t)&&(o.name=o.name||"Gecko",o.gecko=e,o.version=o.version||n(/gecko\/(\d+(\.\d+)?)/i)),o.windowsphone||!c&&!o.silk?!o.windowsphone&&a?(o[a]=e,o.ios=e,o.osname="iOS"):y?(o.mac=e,o.osname="macOS"):j?(o.xbox=e,o.osname="Xbox"):g?(o.windows=e,o.osname="Windows"):v&&(o.linux=e,o.osname="Linux"):(o.android=e,o.osname="Android");var T="";o.windows?T=S(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):o.windowsphone?T=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):o.mac?(T=n(/Mac OS X (\d+([_\.\s]\d+)*)/i),T=T.replace(/[_\s]/g,".")):a?(T=n(/os (\d+([_\s]\d+)*) like mac os x/i),T=T.replace(/[_\s]/g,".")):c?T=n(/android[ \/-](\d+(\.\d+)*)/i):o.webos?T=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):o.blackberry?T=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):o.bada?T=n(/bada\/(\d+(\.\d+)*)/i):o.tizen&&(T=n(/tizen[\/\s](\d+(\.\d+)*)/i)),T&&(o.osversion=T);var O=!o.windows&&T.split(".")[0];return x||l||"ipad"==a||c&&(3==O||O>=4&&!E)||o.silk?o.tablet=e:(E||"iphone"==a||"ipod"==a||c||u||o.blackberry||o.webos||o.bada)&&(o.mobile=e),o.msedge||o.msie&&o.version>=10||o.yandexbrowser&&o.version>=15||o.vivaldi&&o.version>=1||o.chrome&&o.version>=20||o.samsungBrowser&&o.version>=4||o.whale&&1===i([o.version,"1.0"])||o.mzbrowser&&1===i([o.version,"6.0"])||o.focus&&1===i([o.version,"1.0"])||o.firefox&&o.version>=20||o.safari&&o.version>=6||o.opera&&o.version>=10||o.ios&&o.osversion&&o.osversion.split(".")[0]>=6||o.blackberry&&o.version>=10.1||o.chromium&&o.version>=20?o.a=e:o.msie&&o.version<10||o.chrome&&o.version<20||o.firefox&&o.version<20||o.safari&&o.version<6||o.opera&&o.version<10||o.ios&&o.osversion&&o.osversion.split(".")[0]<6||o.chromium&&o.version<20?o.c=e:o.x=e,o}var n=t("undefined"!==typeof navigator&&navigator.userAgent||"");function r(e){return e.split(".").length}function o(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n=0){if(n[0][t]>n[1][t])return 1;if(n[0][t]!==n[1][t])return-1;if(0===t)return 0}}function a(e,r,o){var a=n;"string"===typeof r&&(o=r,r=void 0),void 0===r&&(r=!1),o&&(a=t(o));var s=""+a.version;for(var c in e)if(e.hasOwnProperty(c)&&a[c]){if("string"!==typeof e[c])throw new Error("Browser version in the minVersion map should be a string: "+c+": "+String(e));return i([s,e[c]])<0}return r}function s(e,t,n){return!a(e,t,n)}return n.test=function(e){for(var t=0;t=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var o=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,o),o-=this.charReceived),t+=e.toString(this.encoding,0,o);o=t.length-1,r=t.charCodeAt(o);if(r>=55296&&r<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,o)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t}},{buffer:73}],73:[function(e,t,n){(function(t,r){"use strict";var o=e("base64-js"),i=e("ieee754"),a=e("isarray");function s(){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 c(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(c()=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),r.alloc(+e)}function _(e,t){if(r.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 o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(o)return $(e).length;t=(""+t).toLowerCase(),o=!0}}function w(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 R(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,o,i){if(0===e.length)return-1;if("string"===typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=r.from(t,o)),r.isBuffer(t))return 0===t.length?-1:j(e,t,n,o,i);if("number"===typeof t)return t&=255,r.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):j(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function j(e,t,n,r,o){var i,a=1,s=e.length,c=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,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var f=!0,d=0;do&&(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;a239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:i=e[o+1],128===(192&i)&&(c=(31&u)<<6|63&i,c>127&&(l=c));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return M(r)}n.Buffer=r,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),n.kMaxLength=c(),r.poolSize=8192,r._augment=function(e){return e.__proto__=r.prototype,e},r.from=function(e,t,n){return l(null,e,t,n)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(e,t,n){return d(null,e,t,n)},r.allocUnsafe=function(e){return p(null,e)},r.allocUnsafeSlow=function(e){return p(null,e)},r.isBuffer=function(e){return!(null==e||!e._isBuffer)},r.compare=function(e,t){if(!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},r.prototype.compare=function(e,t,n,o,i){if(!r.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===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,s=n-t,c=Math.min(a,s),u=this.slice(o,i),l=e.slice(t,n),f=0;fo)&&(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 S(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return N(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function M(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,n,o,i,a){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function G(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function X(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 V(e,t,n,r,o){return o||X(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,o){return o||X(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}r.prototype.slice=function(e,t){var n,o=this.length;if(e=~~e,t=void 0===t?o:~~t,e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),t0&&(o*=256))r+=this[e+--t]*o;return r},r.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],o=1,i=0;while(++i=o&&(r-=Math.pow(2,8*t)),r},r.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(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},r.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},r.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;q(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+i]=e/a&255;return t+n},r.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,255,0),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},r.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},r.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):G(this,e,t,!0),t+4},r.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},r.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);q(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;this[t]=255&e;while(++i>0)-s&255;return t+n},r.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);q(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},r.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,127,-128),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},r.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},r.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):G(this,e,t,!0),t+4},r.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},r.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},r.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},r.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},r.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},r.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&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 J(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r)}return i}function Q(e){return o.toByteArray(z(e))}function ee(e,t,n,r){for(var o=0;o=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(e,t,n){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],75:[function(e,t,n){t.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(e,t,n){"use strict";var r=Array.prototype.slice;function o(e,t){if(!(this instanceof o))return new o(e,t);this.src=e,this._withAccess=t}function i(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}t.exports=o,o.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},o.prototype.pick=function(e){return Array.isArray(e)||(e=r.call(arguments)),e.length&&(this.keys=e),this},o.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var n=0;nl)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(e,t,n){var r=e("./_cof"),o=e("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":98,"./_wks":166}],98:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],99:[function(e,t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},{}],100:[function(e,t,n){"use strict";var r=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},{"./_object-dp":132,"./_property-desc":146}],101:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":92}],102:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],103:[function(e,t,n){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":108}],104:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,i=r(o)&&r(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":110,"./_is-object":119}],105:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n){var a,s=n(e),c=i.f,u=0;while(s.length>u)c.call(e,a=s[u++])&&t.push(a)}return t}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_ctx"),a=e("./_hide"),s=e("./_has"),c="prototype",u=function e(t,n,u){var l,f,d,p=t&e.F,h=t&e.G,m=t&e.S,b=t&e.P,g=t&e.B,y=t&e.W,v=h?o:o[n]||(o[n]={}),_=v[c],w=h?r:m?r[n]:(r[n]||{})[c];for(l in h&&(u=n),u)f=!p&&w&&void 0!==w[l],f&&s(v,l)||(d=f?w[l]:u[l],v[l]=h&&"function"!=typeof w[l]?u[l]:g&&f?i(d,r):y&&w[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(d):b&&"function"==typeof d?i(Function.call,d):d,b&&((v.virtual||(v.virtual={}))[l]=d,t&e.R&&_&&!_[l]&&a(_,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],109:[function(e,t,n){var r=e("./_ctx"),o=e("./_iter-call"),i=e("./_is-array-iter"),a=e("./_an-object"),s=e("./_to-length"),c=e("./core.get-iterator-method"),u={},l={};n=t.exports=function(e,t,n,f,d){var p,h,m,b,g=d?function(){return e}:c(e),y=r(n,f,t?2:1),v=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(p=s(e.length);p>v;v++)if(b=t?y(a(h=e[v])[0],h[1]):y(e[v]),b===u||b===l)return b}else for(m=g.call(e);!(h=m.next()).done;)if(b=o(m,y,h.value,t),b===u||b===l)return b};n.BREAK=u,n.RETURN=l},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],111:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],112:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":110}],114:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],116:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":98}],117:[function(e,t,n){var r=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},{"./_iterators":125,"./_wks":166}],118:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":98}],119:[function(e,t,n){t.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},{}],120:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw void 0!==i&&r(i.call(e)),a}}},{"./_an-object":95}],121:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),a={};e("./_hide")(a,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(e,t,n){"use strict";var r=e("./_library"),o=e("./_export"),i=e("./_redefine"),a=e("./_hide"),s=e("./_iterators"),c=e("./_iter-create"),u=e("./_set-to-string-tag"),l=e("./_object-gpo"),f=e("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",b=function(){return this};t.exports=function(e,t,n,g,y,v,_){c(n,t,g);var w,x,E,j=function(e){if(!d&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",T=y==m,O=!1,k=e.prototype,N=k[f]||k[p]||y&&k[y],C=N||j(y),I=y?T?j("entries"):C:void 0,A="Array"==t&&k.entries||N;if(A&&(E=l(A.call(new e)),E!==Object.prototype&&E.next&&(u(E,S,!0),r||"function"==typeof E[f]||a(E,f,b))),T&&N&&N.name!==m&&(O=!0,C=function(){return N.call(this)}),r&&!_||!d&&!O&&k[f]||a(k,f,C),s[t]=C,s[S]=b,y)if(w={values:T?C:j(m),keys:v?C:j(h),entries:I},_)for(x in w)x in k||i(k,x,w[x]);else o(o.P+o.F*(d||O),t,w);return w}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(e,t,n){var r=e("./_wks")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(a){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(a){}return n}},{"./_wks":166}],124:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],125:[function(e,t,n){t.exports={}},{}],126:[function(e,t,n){t.exports=!0},{}],127:[function(e,t,n){var r=e("./_uid")("meta"),o=e("./_is-object"),i=e("./_has"),a=e("./_object-dp").f,s=0,c=Object.isExtensible||function(){return!0},u=!e("./_fails")((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},p=function(e){return u&&h.NEED&&c(e)&&!i(e,r)&&l(e),e},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(e,t,n){var r=e("./_global"),o=e("./_task").set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==e("./_cof")(a);t.exports=function(){var e,t,n,u=function(){var r,o;c&&(r=a.domain)&&r.exit();while(e){o=e.fn,e=e.next;try{o()}catch(i){throw e?n():t=void 0,i}}t=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(u)}}else n=function(){o.call(r,u)};else{var f=!0,d=document.createTextNode("");new i(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(e,t,n){"use strict";var r=e("./_a-function");function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}t.exports.f=function(e){return new o(e)}},{"./_a-function":92}],130:[function(e,t,n){"use strict";var r=e("./_descriptors"),o=e("./_object-keys"),i=e("./_object-gops"),a=e("./_object-pie"),s=e("./_to-object"),c=e("./_iobject"),u=Object.assign;t.exports=!u||e("./_fails")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,l=1,f=i.f,d=a.f;while(u>l){var p,h=c(arguments[l++]),m=f?o(h).concat(f(h)):o(h),b=m.length,g=0;while(b>g)p=m[g++],r&&!d.call(h,p)||(n[p]=h[p])}return n}:u},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(e,t,n){var r=e("./_an-object"),o=e("./_object-dps"),i=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,n=e("./_dom-create")("iframe"),r=i.length,o="<",a=">";n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;while(r--)delete u[c][i[r]];return u()};t.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(e,t,n){var r=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),a=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(e,t,n){var r=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);var n,a=i(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(e,t,n){var r=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),a=e("./_to-primitive"),s=e("./_has"),c=e("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?u:function(e,t){if(e=i(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(t){return a.slice()}};t.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],138:[function(e,t,n){var r=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(e,t,n){var r=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),a=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],142:[function(e,t,n){var r=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(e,t,n){var r=e("./_descriptors"),o=e("./_object-keys"),i=e("./_to-iobject"),a=e("./_object-pie").f;t.exports=function(e){return function(t){var n,s=i(t),c=o(s),u=c.length,l=0,f=[];while(u>l)n=c[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},{}],145:[function(e,t,n){var r=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e),a=n.resolve;return a(t),n.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],147:[function(e,t,n){var r=e("./_hide");t.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},{"./_hide":112}],148:[function(e,t,n){t.exports=e("./_hide")},{"./_hide":112}],149:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_core"),i=e("./_object-dp"),a=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(e,t,n){var r=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(e,t,n){var r=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return r[e]||(r[e]=o(e))}},{"./_shared":152,"./_uid":162}],152:[function(e,t,n){var r=e("./_core"),o=e("./_global"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(e,t,n){var r=e("./_an-object"),o=e("./_a-function"),i=e("./_wks")("species");t.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(e,t,n){var r=e("./_to-integer"),o=e("./_defined");t.exports=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(e,t,n){var r,o,i,a=e("./_ctx"),s=e("./_invoke"),c=e("./_html"),u=e("./_dom-create"),l=e("./_global"),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,m=l.Dispatch,b=0,g={},y="onreadystatechange",v=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},_=function(e){v.call(e.data)};d&&p||(d=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return g[++b]=function(){s("function"==typeof e?e:Function(e),t)},r(b),b},p=function(e){delete g[e]},"process"==e("./_cof")(f)?r=function(e){f.nextTick(a(v,e,1))}:m&&m.now?r=function(e){m.now(a(v,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r=y in u("script")?function(e){c.appendChild(u("script"))[y]=function(){c.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),t.exports={set:d,clear:p}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(e,t,n){var r=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},{"./_to-integer":157}],157:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?o:r)(e)}},{}],158:[function(e,t,n){var r=e("./_iobject"),o=e("./_defined");t.exports=function(e){return r(o(e))}},{"./_defined":102,"./_iobject":116}],159:[function(e,t,n){var r=e("./_to-integer"),o=Math.min;t.exports=function(e){return e>0?o(r(e),9007199254740991):0}},{"./_to-integer":157}],160:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":102}],161:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+o).toString(36))}},{}],163:[function(e,t,n){var r=e("./_global"),o=r.navigator;t.exports=o&&o.userAgent||""},{"./_global":110}],164:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_library"),a=e("./_wks-ext"),s=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(e,t,n){n.f=e("./_wks")},{"./_wks":166}],166:[function(e,t,n){var r=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,a="function"==typeof i,s=t.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=r},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(e,t,n){var r=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(e,t,n){"use strict";var r=e("./_ctx"),o=e("./_export"),i=e("./_to-object"),a=e("./_iter-call"),s=e("./_is-array-iter"),c=e("./_to-length"),u=e("./_create-property"),l=e("./core.get-iterator-method");o(o.S+o.F*!e("./_iter-detect")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,b=void 0!==m,g=0,y=l(d);if(b&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(t=c(d.length),n=new p(t);t>g;g++)u(n,g,b?m(d[g],g):d[g]);else for(f=y.call(d),n=new p;!(o=f.next()).done;g++)u(n,g,b?a(f,m,[o.value,g],!0):o.value);return n.length=g,n}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),o=e("./_iter-step"),i=e("./_iterators"),a=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(e,t,n){"use strict";var r=e("./_is-object"),o=e("./_object-gpo"),i=e("./_wks")("hasInstance"),a=Function.prototype;i in a||e("./_object-dp").f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=o(e))if(this.prototype===e)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(e,t,n){var r=e("./_export");r(r.S+r.F,"Object",{assign:e("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(e,t,n){var r=e("./_export");r(r.S,"Object",{create:e("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(e,t,n){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(e,t,n){e("./_object-sap")("getOwnPropertyNames",(function(){return e("./_object-gopn-ext").f}))},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return o(r(e))}}))},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(e,t,n){arguments[4][71][0].apply(n,arguments)},{dup:71}],178:[function(e,t,n){"use strict";var r,o,i,a,s=e("./_library"),c=e("./_global"),u=e("./_ctx"),l=e("./_classof"),f=e("./_export"),d=e("./_is-object"),p=e("./_a-function"),h=e("./_an-instance"),m=e("./_for-of"),b=e("./_species-constructor"),g=e("./_task").set,y=e("./_microtask")(),v=e("./_new-promise-capability"),_=e("./_perform"),w=e("./_user-agent"),x=e("./_promise-resolve"),E="Promise",j=c.TypeError,S=c.process,T=S&&S.versions,O=T&&T.v8||"",k=c[E],N="process"==l(S),C=function(){},I=o=v.f,A=!!function(){try{var t=k.resolve(1),n=(t.constructor={})[e("./_wks")("species")]=function(e){e(C,C)};return(N||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof n&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),D=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,s=o?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(o||(2==e._h&&R(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?u(j("Promise-chain cycle")):(i=D(n))?i.call(n,c,u):c(n)):u(r)}catch(f){l&&!a&&l.exit(),u(f)}};while(n.length>i)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){g.call(c,(function(){var t,n,r,o=e._v,i=L(e);if(i&&(t=_((function(){N?S.emit("unhandledRejection",o,e):(n=c.onunhandledrejection)?n({promise:e,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=N||L(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){g.call(c,(function(){var t;N?S.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},B=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},F=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw j("Promise can't be resolved itself");(n=D(t))?y((function(){var o={_w:r,_d:!1};try{n.call(t,u(e,o,1),u(B,o,1))}catch(i){B.call(o,i)}})):(r._v=t,r._s=1,M(r,!1))}catch(o){B.call({_w:r,_d:!1},o)}}};A||(k=function(e){h(this,k,E,"_h"),p(e),r.call(this);try{e(u(F,this,1),u(B,this,1))}catch(t){B.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e("./_redefine-all")(k.prototype,{then:function(e,t){var n=I(b(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=u(F,e,1),this.reject=u(B,e,1)},v.f=I=function(e){return e===k||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!A,{Promise:k}),e("./_set-to-string-tag")(k,E),e("./_set-species")(E),a=e("./_core")[E],f(f.S+f.F*!A,E,{reject:function(e){var t=I(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(s||!A),E,{resolve:function(e){return x(s&&this===a?k:this,e)}}),f(f.S+f.F*!(A&&e("./_iter-detect")((function(e){k.all(e)["catch"](C)}))),E,{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=_((function(){var n=[],i=0,a=1;m(e,!1,(function(e){var s=i++,c=!1;n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(e,t,n){var r=e("./_export"),o=e("./_to-absolute-index"),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){var t,n=[],r=arguments.length,a=0;while(r>a){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":122,"./_string-at":154}],181:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_has"),i=e("./_descriptors"),a=e("./_export"),s=e("./_redefine"),c=e("./_meta").KEY,u=e("./_fails"),l=e("./_shared"),f=e("./_set-to-string-tag"),d=e("./_uid"),p=e("./_wks"),h=e("./_wks-ext"),m=e("./_wks-define"),b=e("./_enum-keys"),g=e("./_is-array"),y=e("./_an-object"),v=e("./_is-object"),_=e("./_to-object"),w=e("./_to-iobject"),x=e("./_to-primitive"),E=e("./_property-desc"),j=e("./_object-create"),S=e("./_object-gopn-ext"),T=e("./_object-gopd"),O=e("./_object-gops"),k=e("./_object-dp"),N=e("./_object-keys"),C=T.f,I=k.f,A=S.f,D=r.Symbol,M=r.JSON,P=M&&M.stringify,L="prototype",R=p("_hidden"),B=p("toPrimitive"),F={}.propertyIsEnumerable,q=l("symbol-registry"),U=l("symbols"),G=l("op-symbols"),X=Object[L],V="function"==typeof D&&!!O.f,H=r.QObject,W=!H||!H[L]||!H[L].findChild,z=i&&u((function(){return 7!=j(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=C(X,t);r&&delete X[t],I(e,t,n),r&&e!==X&&I(X,t,r)}:I,K=function(e){var t=U[e]=j(D[L]);return t._k=e,t},Y=V&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},$=function(e,t,n){return e===X&&$(G,t,n),y(e),t=x(t,!0),y(n),o(U,t)?(n.enumerable?(o(e,R)&&e[R][t]&&(e[R][t]=!1),n=j(n,{enumerable:E(0,!1)})):(o(e,R)||I(e,R,E(1,{})),e[R][t]=!0),z(e,t,n)):I(e,t,n)},J=function(e,t){y(e);var n,r=b(t=w(t)),o=0,i=r.length;while(i>o)$(e,n=r[o++],t[n]);return e},Z=function(e,t){return void 0===t?j(e):J(j(e),t)},Q=function(e){var t=F.call(this,e=x(e,!0));return!(this===X&&o(U,e)&&!o(G,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=w(e),t=x(t,!0),e!==X||!o(U,t)||o(G,t)){var n=C(e,t);return!n||!o(U,t)||o(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){var t,n=A(w(e)),r=[],i=0;while(n.length>i)o(U,t=n[i++])||t==R||t==c||r.push(t);return r},ne=function(e){var t,n=e===X,r=A(n?G:w(e)),i=[],a=0;while(r.length>a)!o(U,t=r[a++])||n&&!o(X,t)||i.push(U[t]);return i};V||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function t(n){this===X&&t.call(G,n),o(this,R)&&o(this[R],e)&&(this[R][e]=!1),z(this,e,E(1,n))};return i&&W&&z(X,e,{configurable:!0,set:t}),K(e)},s(D[L],"toString",(function(){return this._k})),T.f=ee,k.f=$,e("./_object-gopn").f=S.f=te,e("./_object-pie").f=Q,O.f=ne,i&&!e("./_library")&&s(X,"propertyIsEnumerable",Q,!0),h.f=function(e){return K(p(e))}),a(a.G+a.W+a.F*!V,{Symbol:D});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),oe=0;re.length>oe;)p(re[oe++]);for(var ie=N(p.store),ae=0;ie.length>ae;)m(ie[ae++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return o(q,e+="")?q[e]:q[e]=D(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!V,"Object",{create:Z,defineProperty:$,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){O.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(_(e))}}),M&&a(a.S+a.F*(!V||u((function(){var e=D();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],o=1;while(arguments.length>o)r.push(arguments[o++]);if(n=t=r[1],(v(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,P.apply(M,r)}}),D[L][B]||e("./_hide")(D[L],B,D[L].valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(e,t,n){var r=e("./_export"),o=e("./_object-to-array")(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},{"./_export":107,"./_object-to-array":143}],183:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_core"),i=e("./_global"),a=e("./_species-constructor"),s=e("./_promise-resolve");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_new-promise-capability"),i=e("./_perform");r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(e,t,n){e("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(e,t,n){e("./es6.array.iterator");for(var r=e("./_global"),o=e("./_hide"),i=e("./_iterators"),a=e("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c0?"-":"+")+i(100*Math.floor(Math.abs(x)/60)+Math.abs(x)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:E,N:j};return u.replace(e,(function(e){return e in S?S[e]:e.slice(1,e.length-1)}))}}();function i(e,t){e=String(e),t=t||2;while(e.length]/;function o(e){var t,n=""+e,o=r.exec(n);if(!o)return n;var i="",a=0,s=0;for(a=o.index;a0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)while(n.length)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[],t},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],193:[function(e,t,n){var r=e("http"),o=t.exports;for(var i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);o.request=function(e,t){return e||(e={}),e.scheme="https",e.protocol="https:",r.request.call(this,e,t)}},{http:231}],194:[function(e,t,n){"use strict";var r=e("util"),o=e("ms");t.exports=function(e){if("number"===typeof e)return e;var t=o(e);if(void 0===t){var n=new Error(r.format("humanize-ms(%j) result undefined",e));console.warn(n.stack)}return t}},{ms:204,util:243}],195:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},{}],196:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],197:[function(e,t,n){function r(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function o(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||o(e)||!!e._isBuffer)}},{}],198:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],199:[function(require,module,exports){(function(global){(function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(e):"function"===typeof define&&define.amd?define(t):t(e)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if("undefined"!==typeof module&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(err){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;n>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)];return r.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){var t="[object Uint8Array]"===Object.prototype.toString.call(e);return t?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return fromCharCode(55296+(n>>>10))+fromCharCode(56320+(1023&n));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"===typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function(e){return encode(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",noEnum((function(){return encode(this,!0)})))}}return global["Meteor"]&&(Base64=global.Base64),"undefined"!==typeof module&&module.exports?module.exports.Base64=global.Base64:"function"===typeof define&&define.amd&&define([],(function(){return global.Base64})),{Base64:global.Base64}}))}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],200:[function(e,t,n){"use strict";t.exports=o;var r=Object.prototype.hasOwnProperty;function o(e,t,n){if(!e)throw new TypeError("argument dest is required");if(!t)throw new TypeError("argument src is required");return void 0===n&&(n=!0),Object.getOwnPropertyNames(t).forEach((function(o){if(n||!r.call(e,o)){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,i)}})),e}},{}],201:[function(e,t,n){"use strict";function r(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),u=(t[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"weeks":case"week":case"w":return n*s;case"days":case"day":case"d":return n*a;case"hours":case"hour":case"hrs":case"hr":case"h":return n*i;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+"d":t>=i?Math.round(e/i)+"h":t>=o?Math.round(e/o)+"m":t>=r?Math.round(e/r)+"s":e+"ms"}function f(e){var t=Math.abs(e);return t>=a?d(e,t,a,"day"):t>=i?d(e,t,i,"hour"):t>=o?d(e,t,o,"minute"):t>=r?d(e,t,r,"second"):e+" ms"}function d(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return u(e);if("number"===n&&isFinite(e))return t["long"]?f(e):l(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],205:[function(e,t,n){(function(e){function t(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=-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&&(n=a+"/"+n,r="/"===a.charAt(0))}return n=t(o(n.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),a="/"===i(e,-1);return e=t(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c=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)},n.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},n.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,e("_process"))},{_process:208}],206:[function(e,t,n){(function(e){(function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,i=r[typeof n]&&n,a=r[typeof t]&&t&&!t.nodeType&&t,s=i&&a&&"object"==typeof e&&e;!s||s.global!==s&&s.window!==s&&s.self!==s||(o=s);var c=Math.pow(2,53)-1,u=/\bOpera/,l=Object.prototype,f=l.hasOwnProperty,d=l.toString;function p(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function h(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=b(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),e}function m(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=c)while(++n3?"WebKit":/\bOpera\b/.test(B)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(R)&&"WebKit"||!R&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==R&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(R=[a]),"IE"==B&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(B+=" Mobile",U="Windows Phone "+(/\+$/.test(a)?a:a+".x"),D.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(B="IE Mobile",U="Windows Phone 8.x",D.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=B&&"Trident"==R&&(a=/\brv:([\d.]+)/.exec(e))&&(B&&D.push("identifying as "+B+(L?" "+L:"")),B="IE",L=a[1]),P){if(v(t,"global"))if(S&&(a=S.lang.System,A=a.getProperty("os.arch"),U=U||a.getProperty("os.name")+" "+a.getProperty("os.version")),T){try{L=t.require("ringo/engine").version.join("."),B="RingoJS"}catch($){(a=t.system)&&a.global.system==t.system&&(B="Narwhal",U||(U=a[0].os||null))}B||(B="Rhino")}else"object"==typeof t.process&&!t.process.browser&&(a=t.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(D.push("Node "+a.versions.node),B="Electron",L=a.versions.electron):"string"==typeof a.versions.nw&&(D.push("Chromium "+L,"Node "+a.versions.node),B="NW.js",L=a.versions.nw)),B||(B="Node.js",A=a.arch,U=a.platform,L=/[\d.]+/.exec(a.version),L=L?L[0]:null));else y(a=t.runtime)==f?(B="Adobe AIR",U=a.flash.system.Capabilities.os):y(a=t.phantom)==j?(B="PhantomJS",L=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof N.documentMode&&(a=/\bTrident\/(\d+)/i.exec(e))?(L=[L,N.documentMode],(a=+a[1]+4)!=L[1]&&(D.push("IE "+L[1]+" mode"),R&&(R[1]=""),L[1]=a),L="IE"==B?String(L[1].toFixed(1)):L[0]):"number"==typeof N.documentMode&&/^(?:Chrome|Firefox)\b/.test(B)&&(D.push("masking as "+B+" "+L),B="IE",L="11.0",R=["Trident"],U="Windows");U=U&&b(U)}if(L&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(P&&r.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(M=/b/i.test(a)?"beta":"alpha",L=L.replace(RegExp(a+"\\+?$"),"")+("beta"==M?k:O)+(/\d+\+?/.exec(a)||"")),"Fennec"==B||"Firefox"==B&&/\b(?:Android|Firefox OS)\b/.test(U))B="Firefox Mobile";else if("Maxthon"==B&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(U=null),"Xbox 360"==F&&/\bIEMobile\b/.test(e)&&D.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(B)&&(!B||F||/Browser|Mobi/.test(B))||"Windows CE"!=U&&!/Mobi/i.test(e))if("IE"==B&&P)try{null===t.external&&D.unshift("platform preview")}catch($){D.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(e))&&(a=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||L)?(a=[a,/BB10/.test(e)],U=(a[1]?(F=null,q="BlackBerry"):"Device Software")+" "+a[0],L=null):this!=g&&"Wii"!=F&&(P&&C||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==B&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==B&&(U&&!/^Win/.test(U)&&L>5.5||/\bWindows XP\b/.test(U)&&L>8||8==L&&!/\bTrident\b/.test(e)))&&!u.test(a=E.call(g,e.replace(u,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),u.test(B)?(/\bIE\b/.test(a)&&"Mac OS"==U&&(U=null),a="identify"+a):(a="mask"+a,B=I?b(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(U=null),P||(L=null)),R=["Presto"],D.push(a));else B+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==B&&"+"==a[1].slice(-1)?(B="WebKit Nightly",M="alpha",L=a[1].slice(0,-1)):L!=a[1]&&L!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(L=null),a[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==R&&(R=["Blink"]),P&&(c||a[1])?(R&&(R[1]="like Chrome"),a=a[1]||(a=a[0],a<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=R?"27":"28")):(R&&(R[1]="like Safari"),a=a[0],a=a<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:"8"),R&&(R[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==B&&(!L||parseInt(L)>45)&&(L=a)),"Opera"==B&&(a=/\bzbov|zvav$/.exec(U))?(B+=" ",D.unshift("desktop mode"),"zvav"==a?(B+="Mini",L=null):B+="Mobile",U=U.replace(RegExp(" *"+a+"$"),"")):"Safari"==B&&/\bChrome\b/.exec(R&&R[1])&&(D.unshift("desktop mode"),B="Chrome Mobile",L=null,/\bOS X\b/.test(U)?(q="Apple",U="iOS 4.3+"):U=null),L&&0==L.indexOf(a=/[\d.]+$/.exec(U))&&e.indexOf("/"+a+"-")>-1&&(U=x(U.replace(a,""))),R&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||"Safari"!=B&&/^iOS/.test(U)&&/\bSafari\b/.test(R[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(B)&&R[1])&&(a=R[R.length-1])&&D.push(a),D.length&&(D=["("+D.join("; ")+")"]),q&&F&&F.indexOf(q)<0&&D.push("on "+q),F&&D.push((/^on /.test(D[D.length-1])?"":"on ")+F),U&&(a=/ ([\d.+]+)$/.exec(U),s=a&&"/"==U.charAt(U.length-a[0].length-1),U={architecture:32,family:a&&!s?U.replace(a[0],""):U,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!s?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+a),"")),B&&(/\bWOW64\b/i.test(e)||P&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(e))&&D.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==B&&parseFloat(L)>=39&&(U.architecture=64),e||(e=null);var Y={};return Y.description=e,Y.layout=R&&R[0],Y.manufacturer=q,Y.name=B,Y.prerelease=M,Y.product=F,Y.ua=e,Y.version=B&&L,Y.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},Y.parse=E,Y.toString=K,Y.version&&D.unshift(L),Y.name&&D.unshift(B),U&&B&&(U!=String(U).split(" ")[0]||U!=B.split(" ")[0]&&!F)&&D.push(F?"("+U+")":"on "+U),D.length&&(Y.description=D.join(" ")),Y}var j=E();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(o.platform=j,define((function(){return j}))):i&&a?g(j,(function(e,t){i[t]=e})):o.platform=j}).call(this)}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],207:[function(e,t,n){(function(e){"use strict";function n(t,n,r,o){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,o)}));default:i=new Array(s-1),a=0;while(a1)for(var n=1;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-f,E=Math.floor,j=String.fromCharCode;function S(e){throw new RangeError(w[e])}function T(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(_,".");var o=e.split("."),i=T(o,t).join(".");return r+i}function k(e){var t,n,r=[],o=0,i=e.length;while(o=55296&&t<=56319&&o65535&&(e-=65536,t+=j(e>>>10&1023|55296),e=56320|1023&e),t+=j(e),t})).join("")}function C(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?E(e/h):e>>1,e+=E(e/t);e>x*d>>1;r+=l)e=E(e/x);return E(r+(x+1)*e/(e+p))}function D(e){var t,n,r,o,i,a,s,c,p,h,y=[],v=e.length,_=0,w=b,x=m;for(n=e.lastIndexOf(g),n<0&&(n=0),r=0;r=128&&S("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=v&&S("invalid-input"),c=C(e.charCodeAt(o++)),(c>=l||c>E((u-_)/a))&&S("overflow"),_+=c*a,p=s<=x?f:s>=x+d?d:s-x,cE(u/h)&&S("overflow"),a*=h}t=y.length+1,x=A(_-i,t,0==i),E(_/t)>u-w&&S("overflow"),w+=E(_/t),_%=t,y.splice(_++,0,w)}return N(y)}function M(e){var t,n,r,o,i,a,s,c,p,h,y,v,_,w,x,T=[];for(e=k(e),v=e.length,t=b,n=0,i=m,a=0;a=t&&yE((u-n)/_)&&S("overflow"),n+=(s-t)*_,t=s,a=0;au&&S("overflow"),y==t){for(c=n,p=l;;p+=l){if(h=p<=i?f:p>=i+d?d:p-i,c0&&u>c&&(u=c);for(var l=0;l=0?(f=m.substr(0,b),d=m.substr(b+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?o(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],211:[function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?i(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0?("string"===typeof t||s.objectMode||(0,i["default"])(t)===h.prototype||(t=b(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):N(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?N(e,s,t,!1):B(e,s)):N(e,s,t,!1))):r||(s.reading=!1));return I(s)}function N(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&L(e)),B(e,t)}function C(e,t){var n;return g(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function I(e){return!e.ended&&(e.needReadable||e.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,L(e)}}function L(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?u.nextTick(R,e):R(e))}function R(e){_("emit readable"),e.emit("readable"),V(e)}function B(e,t){t.readingMore||(t.readingMore=!0,u.nextTick(F,e,t))}function F(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=W(e,t.buffer,t.decoder),n);var n}function W(e,t,n){var r;return ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),e-=a,0===e){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}function K(e,t){var n=h.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),e-=a,0===e){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}function Y(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,u.nextTick($,t,e))}function $(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function J(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Y(this):L(this),null;if(e=M(e,t),0===e&&t.ended)return 0===t.length&&Y(this),null;var r,o=t.needReadable;return _("need readable",o),(0===t.length||t.length-e0?H(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Y(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,_("pipe count=%d opts=%j",o.pipesCount,t);var i=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,a=i?c:v;function s(e,t){_("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){_("onend"),e.end()}o.endEmitted?u.nextTick(a):r.once("end",a),e.on("unpipe",s);var l=q(r);e.on("drain",l);var f=!1;function p(){_("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",b),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",m),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}var h=!1;function m(t){_("ondata"),h=!1;var n=e.write(t);!1!==n||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==J(o.pipes,e))&&!f&&(_("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function b(t){_("onerror",t),v(),e.removeListener("error",b),0===d(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),v()}function y(){_("onfinish"),e.removeListener("close",g),v()}function v(){_("unpipe"),r.unpipe(e)}return r.on("data",m),S(e,"error",b),e.once("close",g),e.once("finish",y),e.emit("pipe",r),o.flowing||(_("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1?p["default"]:m.nextTick;C.WritableState=N;var v=(0,f["default"])(e("core-util-is"));v.inherits=e("inherits");var _={deprecate:e("util-deprecate")},w=e("./internal/streams/stream"),x=e("safe-buffer").Buffer,E=r.Uint8Array||function(){};function j(e){return x.from(e)}function S(e){return x.isBuffer(e)||e instanceof E}var T,O=e("./internal/streams/destroy");function k(){}function N(t,n){g=g||e("./_stream_duplex"),t=t||{};var r=n instanceof g;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,i=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){B(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new b(this)}function C(t){if(g=g||e("./_stream_duplex"),!T.call(C,this)&&!(this instanceof g))return new C(t);this._writableState=new N(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t["final"]&&(this._final=t["final"])),w.call(this)}function I(e,t){var n=new Error("write after end");e.emit("error",n),m.nextTick(t,n)}function A(e,t,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),m.nextTick(r,i),o=!1),o}function D(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=x.from(t,n)),t}function M(e,t,n,r,o,i){if(!n){var a=D(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},C.prototype._writev=null,C.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||W(this,r,n)},Object.defineProperty(C.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=O.destroy,C.prototype._undestroy=O.undestroy,C.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e("safe-buffer").Buffer,i=e("util");function a(e,t,n){e.copy(t,n)}t.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;var t=o.allocUnsafe(e>>>0),n=this.head,r=0;while(n)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":228,util:71}],220:[function(e,t,n){"use strict";var r=e("process-nextick-args");function o(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return o||i?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}t.exports={destroy:o,undestroy:i}},{"process-nextick-args":207}],221:[function(e,t,n){"use strict";t.exports=e("events").EventEmitter},{events:192}],222:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":223}],223:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(e,t,n){t.exports=e("./readable").Transform},{"./readable":223}],225:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=e("./runtime"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(e,t,n){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"===typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{l=e.regeneratorRuntime=u?t.exports:{},l.wrap=_;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={},b={};b[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(A([])));y&&y!==r&&o.call(y,a)&&(b=y);var v=j.prototype=x.prototype=Object.create(b);E.prototype=v.constructor=j,j.constructor=E,j[c]=E.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(v),e},l.awrap=function(e){return{__await:e}},S(T.prototype),T.prototype[s]=function(){return this},l.AsyncIterator=T,l.async=function(e,t,n,r){var o=new T(_(e,t,n,r));return l.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(v),v[c]="Generator",v[a]=function(){return this},v.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=A,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function _(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new I(r||[]);return i._invoke=O(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function E(){}function j(){}function S(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(u).then((function(e){c.value=e,i(c)}),a)}a(s.arg)}var n;function r(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function O(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return D()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=w(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){while(++rt)switch(i[o]){case"textNode":L(e);break;case"cdata":P(e,"oncdata",e.cdata),e.cdata="";break;case"script":P(e,"onscript",e.script),e.script="";break;default:B(e,"Max buffer length exceeded: "+i[o])}r=Math.max(r,s)}var c=n.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=c+e.position}function f(e){for(var t=0,n=i.length;t"===e||O(e)}function C(e,t){return e.test(t)}function I(e,t){return!C(e,t)}var A=0;for(var D in n.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,d["default"])(n.ENTITIES).forEach((function(e){var t=n.ENTITIES[e],r="number"===typeof t?String.fromCharCode(t):t;n.ENTITIES[e]=r})),n.STATE)n.STATE[n.STATE[D]]=D;function M(e,t,n){e[t]&&e[t](n)}function P(e,t,n){e.textNode&&L(e),M(e,t,n)}function L(e){e.textNode=R(e.opt,e.textNode),e.textNode&&M(e,"ontext",e.textNode),e.textNode=""}function R(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function B(e,t){return L(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,M(e,"onerror",t),e}function F(e){return e.sawRoot&&!e.closedRoot&&q(e,"Unclosed root tag"),e.state!==A.BEGIN&&e.state!==A.BEGIN_WHITESPACE&&e.state!==A.TEXT&&B(e,"Unexpected end"),L(e),e.c="",e.closed=!0,M(e,"onend"),s.call(e,e.strict,e.opt),e}function q(e,t){if("object"!==("undefined"===typeof e?"undefined":(0,c["default"])(e))||!(e instanceof s))throw new Error("bad call to strictFail");e.strict&&B(e,t)}function U(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,P(e,"onopentagstart",n)}function G(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),o=r[0],i=r[1];return t&&"xmlns"===e&&(o="xmlns",i=""),{prefix:o,local:i}}function X(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=G(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==_)q(e,"xml: prefix must be bound to "+_+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==w)q(e,"xmlns: prefix must be bound to "+w+"\nActual: "+e.attribValue);else{var o=e.tag,i=e.tags[e.tags.length-1]||e;o.ns===i.ns&&(o.ns=(0,h["default"])(i.ns)),o.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,P(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function V(e,t){if(e.opt.xmlns){var n=e.tag,r=G(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(q(e,"Unbound namespace prefix: "+(0,a["default"])(e.tagName)),n.uri=r.prefix);var o=e.tags[e.tags.length-1]||e;n.ns&&o.ns!==n.ns&&(0,d["default"])(n.ns).forEach((function(t){P(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var i=0,s=e.attribList.length;i",e.tagName="",void(e.state=A.SCRIPT);P(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());var r=n;while(t--){var o=e.tags[t];if(o.name===r)break;q(e,"Unexpected close tag")}if(t<0)return q(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=A.TEXT);e.tagName=n;var i=e.tags.length;while(i-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,P(e,"onclosetag",e.tagName);var s={};for(var c in a.ns)s[c]=a.ns[c];var u=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==u.ns&&(0,d["default"])(a.ns).forEach((function(t){var n=a.ns[t];P(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=A.TEXT}function W(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),i=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),i=t.toString(10))),n=n.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==n?(q(e,"Invalid character entity"),"&"+e.entity+";"):(0,o["default"])(t))}function z(e,t){"<"===t?(e.state=A.OPEN_WAKA,e.startTagPosition=e.position):O(t)||(q(e,"Non-whitespace before first tag."),e.textNode=t,e.state=A.TEXT)}function K(e,t){var n="";return t"===r?(P(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=A.TEXT):k(r)?(t.state=A.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case A.SGML_DECL_QUOTED:r===t.q&&(t.state=A.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case A.DOCTYPE:">"===r?(t.state=A.TEXT,P(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=A.DOCTYPE_DTD:k(r)&&(t.state=A.DOCTYPE_QUOTED,t.q=r));continue;case A.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=A.DOCTYPE:k(r)&&(t.state=A.DOCTYPE_DTD_QUOTED,t.q=r);continue;case A.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=A.DOCTYPE_DTD,t.q="");continue;case A.COMMENT:"-"===r?t.state=A.COMMENT_ENDING:t.comment+=r;continue;case A.COMMENT_ENDING:"-"===r?(t.state=A.COMMENT_ENDED,t.comment=R(t.opt,t.comment),t.comment&&P(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=A.COMMENT);continue;case A.COMMENT_ENDED:">"!==r?(q(t,"Malformed comment"),t.comment+="--"+r,t.state=A.COMMENT):t.state=A.TEXT;continue;case A.CDATA:"]"===r?t.state=A.CDATA_ENDING:t.cdata+=r;continue;case A.CDATA_ENDING:"]"===r?t.state=A.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=A.CDATA);continue;case A.CDATA_ENDING_2:">"===r?(t.cdata&&P(t,"oncdata",t.cdata),P(t,"onclosecdata"),t.cdata="",t.state=A.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=A.CDATA);continue;case A.PROC_INST:"?"===r?t.state=A.PROC_INST_ENDING:O(r)?t.state=A.PROC_INST_BODY:t.procInstName+=r;continue;case A.PROC_INST_BODY:if(!t.procInstBody&&O(r))continue;"?"===r?t.state=A.PROC_INST_ENDING:t.procInstBody+=r;continue;case A.PROC_INST_ENDING:">"===r?(P(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=A.TEXT):(t.procInstBody+="?"+r,t.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:C(j,r)?t.tagName+=r:(U(t),">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:(O(r)||q(t,"Invalid character in tag name"),t.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:">"===r?(V(t,!0),H(t)):(q(t,"Forward-slash in opening tag not followed by >"),t.state=A.ATTRIB);continue;case A.ATTRIB:if(O(r))continue;">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:C(E,r)?(t.attribName=r,t.attribValue="",t.state=A.ATTRIB_NAME):q(t,"Invalid attribute name");continue;case A.ATTRIB_NAME:"="===r?t.state=A.ATTRIB_VALUE:">"===r?(q(t,"Attribute without value"),t.attribValue=t.attribName,X(t),V(t)):O(r)?t.state=A.ATTRIB_NAME_SAW_WHITE:C(j,r)?t.attribName+=r:q(t,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=A.ATTRIB_VALUE;else{if(O(r))continue;q(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",P(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?V(t):C(E,r)?(t.attribName=r,t.state=A.ATTRIB_NAME):(q(t,"Invalid attribute name"),t.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(O(r))continue;k(r)?(t.q=r,t.state=A.ATTRIB_VALUE_QUOTED):(q(t,"Unquoted attribute value"),t.state=A.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case A.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=A.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}X(t),t.q="",t.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:O(r)?t.state=A.ATTRIB:">"===r?V(t):"/"===r?t.state=A.OPEN_TAG_SLASH:C(E,r)?(q(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=A.ATTRIB_NAME):q(t,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(!N(r)){"&"===r?t.state=A.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}X(t),">"===r?V(t):t.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(t.tagName)">"===r?H(t):C(j,r)?t.tagName+=r:t.script?(t.script+=""===r?H(t):q(t,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var a,s;switch(t.state){case A.TEXT_ENTITY:a=A.TEXT,s="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:a=A.ATTRIB_VALUE_QUOTED,s="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:a=A.ATTRIB_VALUE_UNQUOTED,s="attribValue";break}";"===r?(t[s]+=W(t),t.entity="",t.state=a):C(t.entity.length?T:S,r)?t.entity+=r:(q(t,"Invalid character in entity name"),t[s]+="&"+t.entity+r,t.entity="",t.state=a);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&u(t),t}A=n.STATE,o["default"]||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,o=16384,i=[],a=-1,s=arguments.length;if(!s)return"";var c="";while(++a1114111||t(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,n=55296+(u>>10),r=u%1024+56320,i.push(n,r)),(a+1===s||i.length>o)&&(c+=e.apply(null,i),i.length=0)}return c};l["default"]?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})("undefined"===typeof n?(void 0).sax={}:n)}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(e,t,n){t.exports=i;var r=e("events").EventEmitter,o=e("inherits");function i(){r.call(this)}o(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(e,t,n){(function(t){var r=e("./lib/request"),o=e("./lib/response"),i=e("xtend"),a=e("builtin-status-codes"),s=e("url"),c=n;c.request=function(e,n){e="string"===typeof e?s.parse(e):i(e);var o=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||o,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},c.get=function(e,t){var n=c.request(e,t);return n.end(),n},c.ClientRequest=r,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(e,t,n){(function(e){"use strict";n.fetch=s(e.fetch)&&s(e.ReadableStream),n.writableStream=s(e.WritableStream),n.abortController=s(e.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(c){}var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(c){t=null}}else t=null;return t}function o(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(c){}return!1}var i="undefined"!==typeof e.ArrayBuffer,a=i&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"===typeof e}n.arraybuffer=n.fetch||i&&o("arraybuffer"),n.msstream=!n.fetch&&a&&o("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&i&&o("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!r()&&s(r().overrideMimeType),n.vbArray=s(e.VBArray),t=null}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],233:[function(e,t,n){(function(n,r,o){"use strict";var i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./capability"),u=e("inherits"),l=e("./response"),f=e("readable-stream"),d=e("to-arraybuffer"),p=l.IncomingMessage,h=l.readyStates;function m(e,t){return c.fetch&&t?"fetch":c.mozchunkedarraybuffer?"moz-chunked-arraybuffer":c.msstream?"ms-stream":c.arraybuffer&&e?"arraybuffer":c.vbArray&&e?"text:vbarray":"text"}var b=t.exports=function(e){var t,n=this;f.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+new o(e.auth).toString("base64")),(0,a["default"])(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!c.abortController)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!c.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=m(t,r),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};function g(e){try{var t=e.status;return null!==t&&0!==t}catch(n){return!1}}u(b,f.Writable),b.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===y.indexOf(r)&&(n._headers[r]={name:e,value:t})},b.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},b.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},b.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,i=e._headers,s=null;"GET"!==t.method&&"HEAD"!==t.method&&(s=c.arraybuffer?d(o.concat(e._body)):c.blobConstructor?new r.Blob(e._body.map((function(e){return d(e)})),{type:(i["content-type"]||{}).value||""}):o.concat(e._body).toString());var u=[];if((0,a["default"])(i).forEach((function(e){var t=i[e].name,n=i[e].value;Array.isArray(n)?n.forEach((function(e){u.push([t,e])})):u.push([t,n])})),"fetch"===e._mode){var l=null;if(c.abortController){var f=new AbortController;l=f.signal,e._fetchAbortController=f,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var p=e._xhr=new r.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(m){return void n.nextTick((function(){e.emit("error",m)}))}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(p.timeout=t.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){p.setRequestHeader(e[0],e[1])})),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case h.LOADING:case h.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(s)}catch(m){return void n.nextTick((function(){e.emit("error",m)}))}}}},b.prototype._onXHRProgress=function(){var e=this;g(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},b.prototype._connect=function(){var e=this;e._destroyed||(e._response=new p(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},b.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},b.prototype.abort=b.prototype.destroy=function(){var e=this;e._destroyed=!0,r.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},b.prototype.end=function(e,t,n){var r=this;"function"===typeof e&&(n=e,e=void 0),f.Writable.prototype.end.call(r,e,t,n)},b.prototype.flushHeaders=function(){},b.prototype.setTimeout=function(){},b.prototype.setNoDelay=function(){},b.prototype.setSocketKeepAlive=function(){};var y=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(e,t,n){(function(t,r,o){"use strict";var i=e("babel-runtime/core-js/promise"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var c=e("./capability"),u=e("inherits"),l=e("readable-stream"),f=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d=n.IncomingMessage=function(e,n,i,s){var u=this;if(l.Readable.call(u),u._mode=i,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){t.nextTick((function(){u.emit("close")}))})),"fetch"===i){var f=function e(){p.read().then((function(t){if(!u._destroyed){if(t.done)return r.clearTimeout(s),void u.push(null);u.push(new o(t.value)),e()}}))["catch"]((function(e){r.clearTimeout(s),u._destroyed||u.emit("error",e)}))};if(u._fetchResponse=n,u.url=n.url,u.statusCode=n.status,u.statusMessage=n.statusText,n.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),c.writableStream){var d=new WritableStream({write:function(e){return new a["default"]((function(t,n){u._destroyed?n():u.push(new o(e))?t():u._resumeFetch=t}))},close:function(){r.clearTimeout(s),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{return void n.body.pipeTo(d)["catch"]((function(e){r.clearTimeout(s),u._destroyed||u.emit("error",e)}))}catch(g){}}var p=n.body.getReader();f()}else{u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText;var h=e.getAllResponseHeaders().split(/\r?\n/);if(h.forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===u.headers[n]&&(u.headers[n]=[]),u.headers[n].push(t[2])):void 0!==u.headers[n]?u.headers[n]+=", "+t[2]:u.headers[n]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!c.overrideMimeType){var m=u.rawHeaders["mime-type"];if(m){var b=m.match(/;\s*charset=([^;])(;|$)/);b&&(u._charset=b[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};u(d,l.Readable),d.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},d.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==f.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(u){}if(null!==n){e.push(new o(n));break}case"text":try{n=t.responseText}catch(u){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new o(i.length),s=0;se._pos&&(e.push(new o(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n);break}e._xhr.readyState===f.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!==typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:return this.write=y,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,n){var r=t.length-1;if(r=0?(o>0&&(e.lastNeed=o-1),o):--r=0?(o>0&&(e.lastNeed=o-2),o):--r=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}function l(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}function f(e){var t=this.lastTotal-this.lastNeed,n=l(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var n=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t}function h(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function b(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}n.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=c++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,o((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(e,t,n){var r=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"===typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(u),f=["'"].concat(l),d=["%","/","?",";","#"].concat(f),p=["/","?","#"],h=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=e("querystring");function w(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}function x(e){return o.isString(e)&&(e=w(e)),e instanceof i?e.format():i.prototype.format.call(e)}function E(e,t){return w(e,!1,!0).resolve(t)}function j(e,t){return e?w(e,!1,!0).resolveObject(t):t}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?P+="x":P+=M[L];if(!P.match(m)){var B=A.slice(0,N),F=A.slice(N+1),q=M.match(b);q&&(B.push(q[1]),F.unshift(q[2])),F.length&&(w="/"+F.join(".")+w),this.hostname=B.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+U,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!g[j])for(N=0,D=f.length;N0)&&n.host.split("@");S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,k=0,N=E.length;N>=0;N--)T=E[N],"."===T?E.splice(N,1):".."===T?(E.splice(N,1),k++):k&&(E.splice(N,1),k--);if(!w&&!x)for(;k--;k)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var C=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(j){n.hostname=n.host=C?"":E.length?E.shift():"";S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return w=w||n.host&&E.length,w&&!C&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":239,punycode:209,querystring:212}],239:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"===typeof e},isObject:function(e){return"object"===typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],240:[function(e,t,n){(function(e){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function o(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function r(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],241:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],242:[function(e,t,n){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],243:[function(e,t,n){(function(t,r){var o=/%[sdj%]/g;n.format=function(e){if(!x(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),j(r.showHidden)&&(r.showHidden=!1),j(r.depth)&&(r.depth=2),j(r.colors)&&(r.colors=!1),j(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,t,r){if(e.customInspect&&t&&N(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return x(o)||(o=f(e,o,r)),o}var i=d(e,t);if(i)return i;var a=Object.keys(t),s=l(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),k(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(t);if(0===a.length){if(N(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(O(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return p(t)}var u,y="",v=!1,_=["{","}"];if(g(t)&&(v=!0,_=["[","]"]),N(t)){var w=t.name?": "+t.name:"";y=" [Function"+w+"]"}return S(t)&&(y=" "+RegExp.prototype.toString.call(t)),O(t)&&(y=" "+Date.prototype.toUTCString.call(t)),k(t)&&(y=" "+p(t)),0!==a.length||v&&0!=t.length?r<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=v?h(e,t,r,s,a):a.map((function(n){return m(e,t,r,s,n,v)})),e.seen.pop(),b(u,y,_)):_[0]+y+_[1]}function d(e,t){if(j(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return w(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,o){for(var i=[],a=0,s=t.length;a-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),j(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function g(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function v(e){return null===e}function _(e){return null==e}function w(e){return"number"===typeof e}function x(e){return"string"===typeof e}function E(e){return"symbol"===typeof e}function j(e){return void 0===e}function S(e){return T(e)&&"[object RegExp]"===I(e)}function T(e){return"object"===typeof e&&null!==e}function O(e){return T(e)&&"[object Date]"===I(e)}function k(e){return T(e)&&("[object Error]"===I(e)||e instanceof Error)}function N(e){return"function"===typeof e}function C(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function I(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(j(i)&&(i=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=t.pid;a[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else a[e]=function(){};return a[e]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=g,n.isBoolean=y,n.isNull=v,n.isNullOrUndefined=_,n.isNumber=w,n.isString=x,n.isSymbol=E,n.isUndefined=j,n.isRegExp=S,n.isObject=T,n.isDate=O,n.isError=k,n.isFunction=N,n.isPrimitive=C,n.isBuffer=e("./support/isBuffer");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",M(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!T(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(e,t,n){"use strict";(function(){n.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(void 0)},{}],245:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/typeof"),o=s(r),i=e("babel-runtime/core-js/object/keys"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}(function(){var t,r,i,s,c,u={}.hasOwnProperty;t=e("xmlbuilder"),r=e("./defaults").defaults,s=function(e){return"string"===typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},c=function(e){return""},i=function(e){return e.replace("]]>","]]]]>")},n.Builder=function(){function e(e){var t,n,o;for(t in this.options={},n=r["0.2"],n)u.call(n,t)&&(o=n[t],this.options[t]=o);for(t in e)u.call(e,t)&&(o=e[t],this.options[t]=o)}return e.prototype.buildObject=function(e){var n,i,l,f,d;return n=this.options.attrkey,i=this.options.charkey,1===(0,a["default"])(e).length&&this.options.rootName===r["0.2"].rootName?(d=(0,a["default"])(e)[0],e=e[d]):d=this.options.rootName,l=function(e){return function(t,r){var a,f,d,p,h,m;if("object"!==("undefined"===typeof r?"undefined":(0,o["default"])(r)))e.options.cdata&&s(r)?t.raw(c(r)):t.txt(r);else if(Array.isArray(r)){for(p in r)if(u.call(r,p))for(h in f=r[p],f)d=f[h],t=l(t.ele(h),d).up()}else for(h in r)if(u.call(r,h))if(f=r[h],h===n){if("object"===("undefined"===typeof f?"undefined":(0,o["default"])(f)))for(a in f)m=f[a],t=t.att(a,m)}else if(h===i)t=e.options.cdata&&s(f)?t.raw(c(f)):t.txt(f);else if(Array.isArray(f))for(p in f)u.call(f,p)&&(d=f[p],t="string"===typeof d?e.options.cdata&&s(d)?t.ele(h).raw(c(d)).up():t.ele(h,d).up():l(t.ele(h),d).up());else"object"===("undefined"===typeof f?"undefined":(0,o["default"])(f))?t=l(t.ele(h),f).up():"string"===typeof f&&e.options.cdata&&s(f)?t=t.ele(h).raw(c(f)).up():(null==f&&(f=""),t=t.ele(h,f.toString()).up());return t}}(this),f=t.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(f,e).end(this.options.renderOpts)},e}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(e,t,n){"use strict";(function(){n.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/promise"),o=f(r),i=e("babel-runtime/core-js/object/get-own-property-names"),a=f(i),s=e("babel-runtime/core-js/object/keys"),c=f(s),u=e("babel-runtime/helpers/typeof"),l=f(u);function f(e){return e&&e.__esModule?e:{default:e}}(function(){var t,r,i,s,u,f,d,p,h=function(e,t){return function(){return e.apply(t,arguments)}},m=function(e,t){for(var n in t)b.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},b={}.hasOwnProperty;d=e("sax"),i=e("events"),t=e("./bom"),f=e("./processors"),p=e("timers").setImmediate,r=e("./defaults").defaults,s=function(e){return"object"===("undefined"===typeof e?"undefined":(0,l["default"])(e))&&null!=e&&0===(0,c["default"])(e).length},u=function(e,t,n){var r,o,i;for(r=0,o=e.length;r0&&(f[e.options.childkey]=p),p=f;return r.length>0?e.assignOrPush(g,d,p):(e.options.explicitRoot&&(m=p,p={},p[d]=m),e.resultObject=p,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),n=function(e){return function(n){var o,i;if(i=r[r.length-1],i)return i[t]+=n,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(i[e.options.childkey]=i[e.options.childkey]||[],o={"#name":"__text__"},o[t]=n,e.options.normalize&&(o[t]=o[t].replace(/\s{2,}/g," ").trim()),i[e.options.childkey].push(o)),i}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(e){return function(e){var t;if(t=n(e),t)return t.cdata=!0}}()},i.prototype.parseString=function(e,n){var r;null!=n&&"function"===typeof n&&(this.on("end",(function(e){return this.reset(),n(null,e)})),this.on("error",(function(e){return this.reset(),n(e)})));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,p(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(o){if(r=o,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},i.prototype.parseStringPromise=function(e){return new o["default"](function(t){return function(n,r){return t.parseString(e,(function(e,t){return e?r(e):n(t)}))}}(this))},i}(i),n.parseString=function(e,t,r){var o,i,a;return null!=r?("function"===typeof r&&(o=r),"object"===("undefined"===typeof t?"undefined":(0,l["default"])(t))&&(i=t)):("function"===typeof t&&(o=t),i={}),a=new n.Parser(i),a.parseString(e,o)},n.parseStringPromise=function(e,t){var r,o;return"object"===("undefined"===typeof t?"undefined":(0,l["default"])(t))&&(r=t),o=new n.Parser(r),o.parseStringPromise(e)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(e,t,n){"use strict";(function(){var e;e=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(e){return e.toLowerCase()},n.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},n.stripPrefix=function(t){return t.replace(e,"")},n.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},n.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(void 0)},{}],249:[function(e,t,n){"use strict";(function(){var t,r,o,i,a=function(e,t){for(var n in t)s.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./defaults"),t=e("./builder"),o=e("./parser"),i=e("./processors"),n.defaults=r.defaults,n.processors=i,n.ValidationError=function(e){function t(e){this.message=e}return a(t,e),t}(Error),n.Builder=t.Builder,n.Parser=o.Parser,n.parseString=o.parseString,n.parseStringPromise=o.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(e,t,n){"use strict";(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(e,t,n){"use strict";(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/get-prototype-of"),o=u(r),i=e("babel-runtime/helpers/typeof"),a=u(i),s=e("babel-runtime/core-js/object/assign"),c=u(s);function u(e){return e&&e.__esModule?e:{default:e}}(function(){var e,n,r,i,s,u,l,f=[].slice,d={}.hasOwnProperty;e=function(){var e,t,n,r,o,i;if(i=arguments[0],o=2<=arguments.length?f.call(arguments,1):[],s(c["default"]))c["default"].apply(null,arguments);else for(e=0,n=o.length;e":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&(e.prefix===this.prefix&&(e.localName===this.localName&&e.value===this.value))},e}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=n.CData,this.value=this.stringify.cdata(r)}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=e("./XMLNode"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.value=""}return r(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceData=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},t}(n)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=n.Comment,this.value=this.stringify.comment(r)}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=s(r),i=e("babel-runtime/core-js/object/create"),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r;n=e("./XMLDOMErrorHandler"),r=e("./XMLDOMStringList"),t.exports=function(){function e(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new n,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=(0,a["default"])(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new r((0,o["default"])(this.defaultParams))}}),e.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},e.prototype.canSetParameter=function(e,t){return!0},e.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},e}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(){}return e.prototype.handleError=function(e){throw new Error(e)},e}()}).call(void 0)},{}],260:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,n){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,n){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(void 0)},{}],261:[function(e,t,n){"use strict";(function(){t.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e}()}).call(void 0)},{}],262:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o,i,a,s){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==o)throw new Error("Missing DTD attribute name. "+this.debugInfo(r));if(!i)throw new Error("Missing DTD attribute type. "+this.debugInfo(r));if(!a)throw new Error("Missing DTD attribute default. "+this.debugInfo(r));if(0!==a.indexOf("#")&&(a="#"+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(r));if(s&&!a.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=n.AttributeDeclaration,this.attributeName=this.stringify.name(o),this.attributeType=this.stringify.dtdAttType(i),s&&(this.defaultValue=this.stringify.dtdAttDefault(s)),this.defaultValueType=a}return o(t,e),t.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD element name. "+this.debugInfo());o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.name(r),this.type=n.ElementDeclaration,this.value=this.stringify.dtdElementValue(o)}return o(t,e),t.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(e,t,n){"use strict";(function(){var n,r,o,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;o=e("./Utility").isObject,r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,i,a){if(t.__super__.constructor.call(this,e),null==i)throw new Error("Missing DTD entity name. "+this.debugInfo(i));if(null==a)throw new Error("Missing DTD entity value. "+this.debugInfo(i));if(this.pe=!!r,this.name=this.stringify.name(i),this.type=n.EntityDeclaration,o(a)){if(!a.pubID&&!a.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(i));if(a.pubID&&!a.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(i));if(this.internal=!1,null!=a.pubID&&(this.pubID=this.stringify.dtdPubID(a.pubID)),null!=a.sysID&&(this.sysID=this.stringify.dtdSysID(a.sysID)),null!=a.nData&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(i))}else this.value=this.stringify.dtdEntityValue(a),this.internal=!0}return i(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return null}}),t.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(e,t,n){"use strict";(function(){var n,r,o=function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,o){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD notation name. "+this.debugInfo(r));if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(r));this.name=this.stringify.name(r),this.type=n.NotationDeclaration,null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return o(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),t.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(e,t,n){"use strict";(function(){var n,r,o,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;o=e("./Utility").isObject,r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e,r,i,a){var s;t.__super__.constructor.call(this,e),o(r)&&(s=r,r=s.version,i=s.encoding,a=s.standalone),r||(r="1.0"),this.type=n.Declaration,this.version=this.stringify.xmlVersion(r),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=a&&(this.standalone=this.stringify.xmlStandalone(a))}return i(t,e),t.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},t}(r)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l=function(e,t){for(var n in t)f.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},f={}.hasOwnProperty;u=e("./Utility").isObject,c=e("./XMLNode"),n=e("./NodeType"),r=e("./XMLDTDAttList"),i=e("./XMLDTDEntity"),o=e("./XMLDTDElement"),a=e("./XMLDTDNotation"),s=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,r,o){var i,a,s,c,l,f;if(t.__super__.constructor.call(this,e),this.type=n.DocType,e.children)for(c=e.children,a=0,s=c.length;a=0)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var t,o,i,a;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==n.Element||(this.root=e),o="",e.type===n.Element){for(i in this.writerOptions.state=r.OpenTag,o=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,a=e.attribs,a)S.call(a,i)&&(t=a[i],o+=this.writer.attribute(t,this.writerOptions,this.currentLevel));o+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.InsideTag}else this.writerOptions.state=r.OpenTag,o=this.writer.indent(e,this.writerOptions,this.currentLevel)+""),o+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(o,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=r.CloseTag,t=e.type===n.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+""+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.None,this.onData(t,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===n.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i=function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=e("./XMLNode"),n=e("./NodeType"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.type=n.Dummy}return i(t,e),t.prototype.clone=function(){return(0,o["default"])(this)},t.prototype.toString=function(e){return""},t}(r)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/create"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){var n,r,i,a,s,c,u,l,f=function(e,t){for(var n in t)d.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},d={}.hasOwnProperty;l=e("./Utility"),u=l.isObject,c=l.isFunction,s=l.getValue,a=e("./XMLNode"),n=e("./NodeType"),r=e("./XMLAttribute"),i=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,r,o){var i,a,s,c;if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(r),this.type=n.Element,this.attribs={},this.schemaTypeInfo=null,null!=o&&this.attribute(o),e.type===n.Document&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this,e.children))for(c=e.children,a=0,s=c.length;a=o;n=0<=o?++r:--r)if(!this.attribs[n].isEqualNode(e.attribs[n]))return!1;return!0},t}(a)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/object/keys"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return(0,o["default"])(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[(0,o["default"])(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l,f,d,p,h,m,b,g,y,v={}.hasOwnProperty;y=e("./Utility"),g=y.isObject,b=y.isFunction,m=y.isEmpty,h=y.getValue,u=null,o=null,i=null,a=null,s=null,d=null,p=null,f=null,c=null,r=null,l=null,n=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=e("./XMLElement"),o=e("./XMLCData"),i=e("./XMLComment"),a=e("./XMLDeclaration"),s=e("./XMLDocType"),d=e("./XMLRaw"),p=e("./XMLText"),f=e("./XMLProcessingInstruction"),c=e("./XMLDummy"),r=e("./NodeType"),l=e("./XMLNodeList"),e("./XMLNamedNodeMap"),n=e("./DocumentPosition"))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var e,t,n,o,i;if(this.nodeType===r.Element||this.nodeType===r.DocumentFragment){for(i="",o=this.children,t=0,n=o.length;t":(null!=(n=this.parent)?n.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},t.prototype.ele=function(e,t,n){return this.element(e,t,n)},t.prototype.nod=function(e,t,n){return this.node(e,t,n)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},t.prototype.e=function(e,t,n){return this.element(e,t,n)},t.prototype.n=function(e,t,n){return this.node(e,t,n)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(e,t){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(e){var t,r;return t=this,t===e?0:this.document()!==e.document()?(r=n.Disconnected|n.ImplementationSpecific,Math.random()<.5?r|=n.Preceding:r|=n.Following,r):t.isAncestor(e)?n.Contains|n.Preceding:t.isDescendant(e)?n.Contains|n.Following:t.isPreceding(e)?n.Preceding:n.Following},t.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var t,n,r;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=n=0,r=this.children.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},t.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(e,t,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},t.prototype.isDescendant=function(e){var t,n,r,o,i;for(i=this.children,r=0,o=i.length;rn},t.prototype.treePosition=function(e){var t,n;return n=0,t=!1,this.foreachTreeNode(this.document(),(function(r){if(n++,!t&&r===e)return t=!0})),t?n:-1},t.prototype.foreachTreeNode=function(e,t){var n,r,o,i,a;for(e||(e=this.document()),i=e.children,r=0,o=i.length;r0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,n)),t.state=r.InsideTag,s=e.children,i=0,a=s.length;i"),this.stream.write(this.endline(e,t,n)),t.state=r.None,this.closeNode(e,t,n)},t.prototype.element=function(e,t,o){var i,s,c,u,l,f,d,p,h;for(d in o||(o=0),this.openNode(e,t,o),t.state=r.OpenTag,this.stream.write(this.indent(e,t,o)+"<"+e.name),p=e.attribs,p)a.call(p,d)&&(i=p[d],this.attribute(i,t,o));if(c=e.children.length,u=0===c?null:e.children[0],0===c||e.children.every((function(e){return(e.type===n.Text||e.type===n.Raw)&&""===e.value})))t.allowEmpty?(this.stream.write(">"),t.state=r.CloseTag,this.stream.write("")):(t.state=r.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==c||u.type!==n.Text&&u.type!==n.Raw||null==u.value){for(this.stream.write(">"+this.endline(e,t,o)),t.state=r.InsideTag,h=e.children,l=0,f=h.length;l")}else this.stream.write(">"),t.state=r.InsideTag,t.suppressPrettyCount++,!0,this.writeChildNode(u,t,o+1),t.suppressPrettyCount--,!1,t.state=r.CloseTag,this.stream.write("");return this.stream.write(this.endline(e,t,o)),t.state=r.None,this.closeNode(e,t,o)},t.prototype.processingInstruction=function(e,n,r){return this.stream.write(t.__super__.processingInstruction.call(this,e,n,r))},t.prototype.raw=function(e,n,r){return this.stream.write(t.__super__.raw.call(this,e,n,r))},t.prototype.text=function(e,n,r){return this.stream.write(t.__super__.text.call(this,e,n,r))},t.prototype.dtdAttList=function(e,n,r){return this.stream.write(t.__super__.dtdAttList.call(this,e,n,r))},t.prototype.dtdElement=function(e,n,r){return this.stream.write(t.__super__.dtdElement.call(this,e,n,r))},t.prototype.dtdEntity=function(e,n,r){return this.stream.write(t.__super__.dtdEntity.call(this,e,n,r))},t.prototype.dtdNotation=function(e,n,r){return this.stream.write(t.__super__.dtdNotation.call(this,e,n,r))},t}(o)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(e,t,n){"use strict";(function(){var n,r=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return r(t,e),t.prototype.document=function(e,t){var n,r,o,i,a;for(t=this.filterOptions(t),i="",a=e.children,r=0,o=a.length;r","]]]]>"),this.assertLegalChar(e))},t.prototype.comment=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},t.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},t.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.insValue=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},t.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},t.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},t.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t,n;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t))throw new Error("Invalid character in string: "+e+" at index "+n.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t)))throw new Error("Invalid character in string: "+e+" at index "+n.index);return e},t.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw new Error("Invalid character in name");return e},t.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(//g,">").replace(/\r/g," "))},t.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/0)?new Array(r).join(t.indent):""},e.prototype.endline=function(e,t,n){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,n){var r;return this.openAttribute(e,t,n),r=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,n),r},e.prototype.cdata=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.comment=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"\x3c!-- ",t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=" --\x3e"+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.declaration=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"",o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.docType=function(e,t,n){var o,i,a,s,c;if(n||(n=0),this.openNode(e,t,n),t.state=r.OpenTag,s=this.indent(e,t,n),s+="0){for(s+=" [",s+=this.endline(e,t,n),t.state=r.InsideTag,c=e.children,i=0,a=c.length;i",s+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),s},e.prototype.element=function(e,t,o){var a,s,c,u,l,f,d,p,h,m,b,g,y,v;for(h in o||(o=0),m=!1,b="",this.openNode(e,t,o),t.state=r.OpenTag,b+=this.indent(e,t,o)+"<"+e.name,g=e.attribs,g)i.call(g,h)&&(a=g[h],b+=this.attribute(a,t,o));if(c=e.children.length,u=0===c?null:e.children[0],0===c||e.children.every((function(e){return(e.type===n.Text||e.type===n.Raw)&&""===e.value})))t.allowEmpty?(b+=">",t.state=r.CloseTag,b+=""+this.endline(e,t,o)):(t.state=r.CloseTag,b+=t.spaceBeforeSlash+"/>"+this.endline(e,t,o));else if(!t.pretty||1!==c||u.type!==n.Text&&u.type!==n.Raw||null==u.value){if(t.dontPrettyTextNodes)for(y=e.children,l=0,d=y.length;l"+this.endline(e,t,o),t.state=r.InsideTag,v=e.children,f=0,p=v.length;f",m&&t.suppressPrettyCount--,b+=this.endline(e,t,o),t.state=r.None}else b+=">",t.state=r.InsideTag,t.suppressPrettyCount++,m=!0,b+=this.writeChildNode(u,t,o+1),t.suppressPrettyCount--,m=!1,t.state=r.CloseTag,b+=""+this.endline(e,t,o);return this.closeNode(e,t,o),b},e.prototype.writeChildNode=function(e,t,r){switch(e.type){case n.CData:return this.cdata(e,t,r);case n.Comment:return this.comment(e,t,r);case n.Element:return this.element(e,t,r);case n.Raw:return this.raw(e,t,r);case n.Text:return this.text(e,t,r);case n.ProcessingInstruction:return this.processingInstruction(e,t,r);case n.Dummy:return"";case n.Declaration:return this.declaration(e,t,r);case n.DocType:return this.docType(e,t,r);case n.AttributeDeclaration:return this.dtdAttList(e,t,r);case n.ElementDeclaration:return this.dtdElement(e,t,r);case n.EntityDeclaration:return this.dtdEntity(e,t,r);case n.NotationDeclaration:return this.dtdNotation(e,t,r);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+"",o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.raw=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n),t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.text=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n),t.state=r.InsideTag,o+=e.value,t.state=r.CloseTag,o+=this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdAttList=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdElement=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdEntity=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.dtdNotation=function(e,t,n){var o;return this.openNode(e,t,n),t.state=r.OpenTag,o=this.indent(e,t,n)+""+this.endline(e,t,n),t.state=r.None,this.closeNode(e,t,n),o},e.prototype.openNode=function(e,t,n){},e.prototype.closeNode=function(e,t,n){},e.prototype.openAttribute=function(e,t,n){},e.prototype.closeAttribute=function(e,t,n){},e}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(e,t,n){"use strict";(function(){var n,r,o,i,a,s,c,u,l,f;f=e("./Utility"),u=f.assign,l=f.isFunction,o=e("./XMLDOMImplementation"),i=e("./XMLDocument"),a=e("./XMLDocumentCB"),c=e("./XMLStringWriter"),s=e("./XMLStreamWriter"),n=e("./NodeType"),r=e("./WriterState"),t.exports.create=function(e,t,n,r){var o,a;if(null==e)throw new Error("Root element needs a name.");return r=u({},t,n,r),o=new i(r),a=o.element(e),r.headless||(o.declaration(r),null==r.pubID&&null==r.sysID||o.dtd(r)),a},t.exports.begin=function(e,t,n){var r;return l(e)&&(r=[e,t],t=r[0],n=r[1],e={}),t?new a(e,t,n):new i(e)},t.exports.stringWriter=function(e){return new c(e)},t.exports.streamWriter=function(e,t){return new s(e,t)},t.exports.implementation=new o,t.exports.nodeType=n,t.exports.writerState=r}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(e,t,n){t.exports=o;var r=Object.prototype.hasOwnProperty;function o(){for(var e={},t=0;ts?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,f=0;f>16)+(t>>16)+(n>>16);return r<<16|65535&n}function f(e,t){return e<>>32-t}t.exports=function(e){return r.hash(e,o,16)}},{"./helpers":285}],287:[function(e,t,n){"use strict";var r=e("./helpers");function o(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n=Array(80),r=1732584193,o=-271733879,u=-1732584194,l=271733878,f=-1009589776,d=0;d>16)+(t>>16)+(n>>16);return r<<16|65535&n}function c(e,t){return e<>>32-t}t.exports=function(e){return r.hash(e,o,20,!0)}},{"./helpers":285}],288:[function(e,t,n){"use strict";t.exports=function(){return function(){}}},{}],289:[function(e,t,n){(function(n){"use strict";var r=e("babel-runtime/helpers/typeof"),o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=e("stream"),s=a.Stream,c=e("../lib/common/utils/isArray"),u=c.isArray;function l(e){return e instanceof s}t.exports.string=function(e){return"string"===typeof e},t.exports.array=u,t.exports.buffer=n.isBuffer,t.exports.writableStream=function(e){return l(e)&&"function"===typeof e._write&&"object"===(0,o["default"])(e._writableState)}}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(e,t,n){"use strict";n.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(t){return e}},n.escape=e("escape-html"),n.timestamp=function(e){if(e){var t=e;return"string"===typeof t&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(e,t,n){(function(t,r){"use strict";var o=e("babel-runtime/core-js/json/stringify"),i=c(o),a=e("babel-runtime/helpers/typeof"),s=c(a);function c(e){return e&&e.__esModule?e:{default:e}}var u,l=e("util"),f=e("url"),d=e("http"),p=e("https"),h=e("debug")("urllib"),m=e("humanize-ms"),b=0,g=Math.pow(2,31)-10,y=/^https?:\/\//i;function v(e,t){return void 0===e?t:e}function _(e,t){return function(n,r,o){if(n)return t(n);e({data:r,status:o.statusCode,headers:o.headers,res:o})}}n.TIMEOUTS=[m("300s"),m("300s")];var w=["json","text"];n.request=function(t,r,o){return 2===arguments.length&&"function"===typeof r&&(o=r,r=null),"function"===typeof o?n.requestWithCallback(t,r,o):(u||(u=e("any-promise")),new u((function(e,o){n.requestWithCallback(t,r,_(e,o))})))},n.requestWithCallback=function(o,a,c){if(!o||"string"!==typeof o&&"object"!==("undefined"===typeof o?"undefined":(0,s["default"])(o))){var u=l.format("expect request url to be a string or a http request options, but got %j",o);throw new Error(u)}2===arguments.length&&"function"===typeof a&&(c=a,a=null),a=a||{},b>=g&&(b=0);var _=++b;a.requestUrls=a.requestUrls||[];var x={requestId:_,url:o,args:a,ctx:a.ctx};a.emitter&&a.emitter.emit("request",x),a.timeout=a.timeout||n.TIMEOUTS,a.maxRedirects=a.maxRedirects||10,a.streaming=a.streaming||a.customResponse;var E,j=Date.now();"string"===typeof o?(y.test(o)||(o="http://"+o),E=f.parse(o)):E=o;var S=(a.type||a.method||E.method||"GET").toUpperCase(),T=E.port||80,O=d,k=v(a.agent,n.agent),N=a.fixJSONCtlChars;"https:"===E.protocol&&(O=p,k=v(a.httpsAgent,n.httpsAgent),E.port||(T=443));var C={host:E.hostname||E.host||"localhost",path:E.path||"/",method:S,port:T,agent:k,headers:a.headers||{},lookup:a.lookup};Array.isArray(a.timeout)?C.requestTimeout=a.timeout[a.timeout.length-1]:"undefined"!==typeof a.timeout&&(C.requestTimeout=a.timeout);for(var I=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],A=0;A=0)return h("Request#%d %s: got digest auth header WWW-Authenticate: %s",_,o,f),a.headers=a.headers||{},a.headers.Authorization=digestAuthHeader(C.method,C.path,f,a.digestAuth),h("Request#%d %s: auth with digest header: %s",_,o,a.headers.Authorization),s.headers["set-cookie"]&&(a.headers.Cookie=s.headers["set-cookie"].join(";")),n.requestWithCallback(o,a,u)}var d=Date.now()-j;$&&($.contentDownload=d),h("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",d,H,W,C.method,C.host,C.path,V,$);var p={status:W,statusCode:W,headers:l,size:H,aborted:z,rt:d,keepAliveSocket:V,data:r,requestUrls:a.requestUrls,timing:$,remoteAddress:K,remotePort:Y};if(e){var m="";k&&"function"===typeof k.getCurrentStatus&&(m=", agent status: "+(0,i["default"])(k.getCurrentStatus())),e.message+=", "+C.method+" "+o+" "+W+" (connected: "+X+", keepalive socket: "+V+m+")\nheaders: "+(0,i["default"])(l),e.data=r,e.path=C.path,e.status=W,e.headers=l,e.res=p}u(e,r,a.streaming?s:p),a.emitter&&(x.url=o,x.socket=oe&&oe.connection,x.options=C,x.size=B,a.emitter.emit("response",{requestId:_,error:e,ctx:a.ctx,req:x,res:p}))}function ee(e){var t=null;if(a.followRedirect&&statuses.redirect[e.statusCode]){a._followRedirectCount=(a._followRedirectCount||0)+1;var r=e.headers.location;if(r){if(!(a._followRedirectCount>a.maxRedirects)){var i=a.formatRedirectUrl?a.formatRedirectUrl(o,r):f.resolve(o,r);h("Request#%d %s: `redirected` from %s to %s",_,C.path,o,i),Z(),a.headers&&a.headers.Host&&y.test(r)&&(a.headers.Host=null);var s=c;return c=null,n.requestWithCallback(i,a,s),{redirect:!0,error:null}}t=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+o),t.name="MaxRedirectError"}else t=new Error("Got statusCode "+e.statusCode+" but cannot resolve next location from headers"),t.name="FollowRedirectError"}return{redirect:!1,error:t}}function te(e,t,n){var r=e.headers["content-encoding"];return n(null,t,r)}a.timing&&($={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),C.headers["User-Agent"]||C.headers["user-agent"]||(C.headers["User-Agent"]=navigator.userAgent),a.gzip&&(C.headers["Accept-Encoding"]||C.headers["accept-encoding"]||(C.headers["Accept-Encoding"]="gzip"));var ne,re,oe,ie=a.writeStream;function ae(e){if($&&($.waiting=Date.now()-j),h("Request#%d %s `req response` event emit: status %d, headers: %j",_,o,e.statusCode,e.headers),a.streaming){var t=ee(e);return t.redirect?void e.resume():t.error?(e.resume(),Q(t.error,null,e)):Q(null,null,e)}if(e.on("close",(function(){h("Request#%d %s: `res close` event emit, total size %d",_,o,H)})),e.on("error",(function(){h("Request#%d %s: `res error` event emit, total size %d",_,o,H)})),e.on("aborted",(function(){z=!0,h("Request#%d %s: `res aborted` event emit, total size %d",_,o,H)})),ie){t=ee(e);return t.redirect?void e.resume():t.error?(e.resume(),ie.end(),Q(t.error,null,e)):(!1===a.consumeWriteStream?e.on("end",Q.bind(null,null,null,e)):isNode010||isNode012?first([[ie,"close"],[e,"aborted"]],(function(t,n,r){h("Request#%d %s: writeStream or res %s event emitted",_,o,r),Q(G||null,null,e)})):ie.on("close",(function(){h("Request#%d %s: writeStream close event emitted",_,o),Q(G||null,null,e)})),e.pipe(ie))}var n=[];e.on("data",(function(e){h("Request#%d %s: `res data` event emit, size %d",_,o,e.length),H+=e.length,n.push(e)})),e.on("end",(function(){var t=r.concat(n,H);if(h("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",_,o,H,e._dumped),G)return Q(G,t,e);var i=ee(e);if(i.error)return Q(i.error,t,e);i.redirect||te(e,t,(function(n,r,i){if(n)return Q(n,t,e);if(!i&&w.indexOf(a.dataType)>=0){try{r=decodeBodyByCharset(r,e)}catch(c){return h("decodeBodyByCharset error: %s",c),Q(null,r,e)}if("json"===a.dataType)if(0===H)r=null;else{var s=parseJSON(r,N);s.error?n=s.error:r=s.data}}z&&h("Request#%d %s: Remote socket was terminated before `response.end()` was called",_,o),Q(n,r,e)}))}))}function se(){h("Connect timer ticking, timeout: %d",ne),q=setTimeout((function(){q=null,-1===W&&(W=-2);var e="Connect timeout for "+ne+"ms",t="ConnectionTimeoutError";oe.socket||(t="SocketAssignTimeoutError",e+=", working sockets is full"),G=new Error(e),G.name=t,G.requestId=_,h("ConnectTimeout: Request#%d %s %s: %s, connected: %s",_,o,G.name,e,X),ue()}),ne)}function ce(){h("Response timer ticking, timeout: %d",re),U=setTimeout((function(){U=null;var e="Response timeout for "+re+"ms",t="ResponseTimeoutError";G=new Error(e),G.name=t,G.requestId=_,h("ResponseTimeout: Request#%d %s %s: %s, connected: %s",_,o,G.name,e,X),ue()}),re)}h("Request#%d %s %s with headers %j, options.path: %s",_,S,o,C.headers,C.path),a.requestUrls.push(o),Array.isArray(a.timeout)?(ne=m(a.timeout[0]),re=m(a.timeout[1])):ne=re=m(a.timeout),h("ConnectTimeout: %d, ResponseTimeout: %d",ne,re),C.mode=a.mode?a.mode:"";try{oe=O.request(C,ae)}catch(le){return Q(le)}function ue(){h("Request#%d %s abort, connected: %s",_,o,X),oe.socket||(G.noSocket=!0,Q(G)),oe.abort()}return"undefined"===typeof window?se():oe.on("requestTimeout",(function(){-1===W&&(W=-2);var e="Connect timeout for "+ne+"ms",t="ConnectionTimeoutError";G=new Error(e),G.name=t,G.requestId=_,ue()})),$&&oe.on("finish",(function(){$.requestSent=Date.now()-j})),oe.once("socket",(function(e){$&&($.queuing=Date.now()-j),isNode010&&e.socket&&(e=e.socket);var t=e.readyState;if("opening"===t)return e.once("lookup",(function(e,t,n){h("Request#%d %s lookup: %s, %s, %s",_,o,e,t,n),$&&($.dnslookup=Date.now()-j),t&&(K=t)})),void e.once("connect",(function(){$&&($.connected=Date.now()-j),J(),ce(),h("Request#%d %s new socket connected",_,o),X=!0,K||(K=e.remoteAddress),Y=e.remotePort}));h("Request#%d %s reuse socket connected, readyState: %s",_,o,t),X=!0,V=!0,K||(K=e.remoteAddress),Y=e.remotePort,J(),ce()})),oe.on("error",(function(e){"Error"!==e.name&&"TypeError"!==e.name||(e.name=X?"ResponseError":"RequestError"),e.message+=' (req "error")',h("Request#%d %s `req error` event emit, %s: %s",_,o,e.name,e.message),Q(G||e)})),ie&&ie.once("error",(function(e){e.message+=' (writeStream "error")',G=e,h("Request#%d %s `writeStream error` event emit, %s: %s",_,o,e.name,e.message),ue()})),a.stream?(a.stream.pipe(oe),a.stream.once("error",(function(e){e.message+=' (stream "error")',G=e,h("Request#%d %s `readStream error` event emit, %s: %s",_,o,e.name,e.message),ue()}))):oe.end(P),oe.requestId=_,oe}}).call(this,e("_process"),e("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)}))}).call(this,__webpack_require__("UywP"))},xKgJ:function(e,t,n){"use strict";n.d(t,"o",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"r",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"s",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return y})),n.d(t,"q",(function(){return v})),n.d(t,"h",(function(){return _})),n.d(t,"p",(function(){return w})),n.d(t,"a",(function(){return x})),n.d(t,"l",(function(){return E})),n.d(t,"m",(function(){return j})),n.d(t,"k",(function(){return S})),n.d(t,"n",(function(){return T})),n.d(t,"t",(function(){return O}));var r,o,i=n("9kvl");(function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["CertifiedTeacher"]=5]="CertifiedTeacher",e[e["TrainingProduction"]=8]="TrainingProduction",e[e["UncertifiedTeacher"]=12]="UncertifiedTeacher",e[e["Student"]=15]="Student"})(r||(r={})),function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["Admin"]=5]="Admin",e[e["Teacher"]=8]="Teacher",e[e["Assistant"]=12]="Assistant",e[e["Student"]=15]="Student"}(o||(o={}));var a=function(e){var t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return e.some((function(e){return e==(null===r||void 0===r?void 0:r.role)}))},s=function(e){var t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return!!(null===r||void 0===r?void 0:r.own)||e.some((function(e){var t;return e==(null===r||void 0===r||null===(t=r.course)||void 0===t?void 0:t.course_role)}))},c=function(){var e=Object(i["b"])()._store.getState(),t=e.user,n=t.userInfo;return n.main_site},u=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_is_end},l=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant])},f=function(){return s([o.SuperAdmin,o.Teacher,o.Admin,o.Assistant,o.Operation])},d=function(){return s([o.SuperAdmin,o.Teacher,o.Admin])},p=function(){return s([o.SuperAdmin])},h=function(){return s([o.SuperAdmin,o.Operation,o.Admin])},m=function(){return s([o.SuperAdmin,o.Operation])},b=function(){return s([o.SuperAdmin,o.Admin])},g=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher])},y=function(){return s([o.Assistant])},v=function(){return s([o.Student])},_=function(){return s([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant,o.Student])},w=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user,r=n.userInfo;return null===(null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_role)},x=function(){return a([r.SuperAdmin,r.Operation,r.CertifiedTeacher,r.TrainingProduction])},E=function(){return a([r.SuperAdmin])},j=function(){return a([r.SuperAdmin,r.Operation])},S=function(){return a([r.Student])},T=function(){var e,t=Object(i["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.login)},O=function(){var e=Object(i["b"])()._store.getState(),t=e.user;return t.userInfo}}}]); \ No newline at end of file