aicfe-answer-card 0.1.77 → 0.1.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/card.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/card.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="4089")}({"00ee":function(t,e,n){var i=n("b622"),r=i("toStringTag"),a={};a[r]="z",t.exports="[object z]"===String(a)},"0366":function(t,e,n){var i=n("4625"),r=n("59ed"),a=n("40d5"),o=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},"04f8":function(t,e,n){var i=n("2d00"),r=n("d039"),a=n("da84"),o=a.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"06cf":function(t,e,n){var i=n("83ab"),r=n("c65b"),a=n("d1e7"),o=n("5c6c"),s=n("fc6a"),c=n("a04b"),l=n("1a2d"),u=n("0cfb"),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=c(e),u)try{return d(t,e)}catch(n){}if(l(t,e))return o(!r(a.f,t,e),t[e])}},"07fa":function(t,e,n){var i=n("50c4");t.exports=function(t){return i(t.length)}},"0cfb":function(t,e,n){var i=n("83ab"),r=n("d039"),a=n("cc12");t.exports=!i&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var i=n("e330"),r=Error,a=i("".replace),o=function(t){return String(r(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(o);t.exports=function(t,e){if(c&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=a(t,s,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"13d2":function(t,e,n){var i=n("e330"),r=n("d039"),a=n("1626"),o=n("1a2d"),s=n("83ab"),c=n("5e77").CONFIGURABLE,l=n("8925"),u=n("69f3"),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,g=i("".slice),y=i("".replace),m=i([].join),v=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===g(f(e),0,7)&&(e="["+y(f(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||c&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&o(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=d(t);return o(i,"source")||(i.source=m(_,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return a(this)&&h(this).source||l(this)}),"toString")},"13d5":function(t,e,n){"use strict";var i=n("23e7"),r=n("d58f").left,a=n("a640"),o=n("2d00"),s=n("605d"),c=!s&&o>79&&o<83,l=c||!a("reduce");i({target:"Array",proto:!0,forced:l},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},"13ed":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mark-point"},[e("div",{staticClass:"mark-point__top-left",style:3===t.layout&&{top:"20px",left:"20px"},attrs:{"data-export_name":"左上标志点","data-scan-type":"absolute"}},[e("div",{staticClass:"mark-point__box"},t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})),0)]),e("div",{staticClass:"mark-point__top-right",style:3===t.layout&&{top:"20px",right:"20px"},attrs:{"data-export_name":"右上标志点","data-scan-type":"absolute"}},[0===t.subjectiveReviewType?e("div",{staticClass:"mark-point__box mark-point__half"}):e("div",{staticClass:"mark-point__box"},t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})),0)]),e("div",{staticClass:"mark-point__bottom-left",style:3===t.layout&&{bottom:"20px",left:"20px"},attrs:{"data-export_name":"左下标志点","data-scan-type":"absolute"}},[0===t.subjectiveReviewType?e("div",{staticClass:"mark-point__box mark-point__half",staticStyle:{transform:"rotate(180deg)"}}):e("div",{staticClass:"mark-point__box"},t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})),0)]),e("div",{staticClass:"mark-point__bottom-center",style:3===t.layout&&{bottom:"20px"},attrs:{"data-export_name":"底部中心标志点_".concat(t.pageIndex),"data-scan-type":"absolute"}},[0===t.subjectiveReviewType?t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})):e("div",{staticClass:"mark-point__full"})],2),e("div",{staticClass:"mark-point__bottom-right",style:3===t.layout&&{bottom:"20px",right:"20px"},attrs:{"data-export_name":"右下标志点","data-scan-type":"absolute"}},[0===t.subjectiveReviewType?e("div",{staticClass:"mark-point__box mark-point__half",staticStyle:{transform:"rotate(90deg)"}}):e("div",{staticClass:"mark-point__box"},t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})),0)]),1===t.layout?[0===t.subjectiveReviewType?e("div",{staticClass:"mark-point__top-center__one mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}):[e("div",{staticClass:"mark-point__top-left__one mark-point__full",attrs:{"data-export_name":"顶部左侧标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__top-right__one mark-point__full",attrs:{"data-export_name":"顶部右侧标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}})]]:t._e(),2===t.layout?e("div",[e("div",{staticClass:"mark-point__center-left__two mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-right__two mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_1"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-zero mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_1"),"data-scan-type":"absolute"}})]):t._e(),3===t.layout?e("div",[e("div",{staticClass:"mark-point__center-left__three mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-right__three mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_1"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-center__three mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_2"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-three__zero mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-three__left mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_1"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-three__right mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_2"),"data-scan-type":"absolute"}})]):t._e(),e("div",{staticClass:"mark-point__left-one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__left-two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__right-one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__right-two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),2===t.layout?e("div",[e("div",{staticClass:"mark-point__center-one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}})]):t._e(),3===t.layout?e("div",[e("div",{staticClass:"mark-point__center-left_one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-left_two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-right_one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-right_two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}})]):t._e()],2)},r=[],a={name:"AcMarkPoint",props:{pageIndex:{type:Number}},computed:{pageShiftBinary:function(){var t=this.pageIndex.toString(2).padStart(4,"0");return t.split("")},layout:function(){return this.$store.getters["AC/layout"]},positionStyle:function(){var t={"--coords":3===this.layout?"20px":"30px"};return t},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null),l=c.exports;l.install=function(t){t.component(l.name,l)};e["default"]=l},"14d9":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),a=n("07fa"),o=n("3a34"),s=n("3511"),c=n("d039"),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=l||!u();i({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=r(this),n=a(e),i=arguments.length;s(n+i);for(var c=0;c<i;c++)e[n]=arguments[c],n++;return o(e,n),n}})},1626:function(t,e,n){var i=n("8ea1"),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},"182d":function(t,e,n){var i=n("f8cd"),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw r("Wrong offset");return n}},"19aa":function(t,e,n){var i=n("3a9b"),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw r("Incorrect invocation")}},"1a2d":function(t,e,n){var i=n("e330"),r=n("7b0b"),a=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(r(t),e)}},"1d02":function(t,e,n){"use strict";var i=n("ebb5"),r=n("a258").findLastIndex,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("findLastIndex",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},"1d80":function(t,e,n){var i=n("7234"),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},"1fb5":function(t,e,n){"use strict";e.byteLength=u,e.toByteArray=h,e.fromByteArray=g;for(var i=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)i[s]=o[s],r[o.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function u(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function d(t,e,n){return 3*(e+n)/4-n}function h(t){var e,n,i=l(t),o=i[0],s=i[1],c=new a(d(t,o,s)),u=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function f(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function p(t,e,n){for(var i,r=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),r.push(f(i));return r.join("")}function g(t){for(var e,n=t.length,r=n%3,a=[],o=16383,s=0,c=n-r;s<c;s+=o)a.push(p(t,s,s+o>c?c:s+o));return 1===r?(e=t[n-1],a.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],a.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"21a6":function(t,e,n){(function(n){var i,r,a;(function(n,o){r=[],i=o,a="function"===typeof i?i.apply(e,r):i,void 0===a||(t.exports=a)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function i(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){c(i.response,e,n)},i.onerror=function(){},i.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(i){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=o.URL||o.webkitURL,c=document.createElement("a");e=e||t.name||"download",c.download=e,c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?a(c):r(c.href)?i(t,e,n):a(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){a(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),n);else if(r(t))i(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){a(s)}))}}:function(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return i(t,e,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=c.saveAs=c,t.exports=c}))}).call(this,n("c8ba"))},"23cb":function(t,e,n){var i=n("5926"),r=Math.max,a=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):a(n,e)}},"23e7":function(t,e,n){var i=n("da84"),r=n("06cf").f,a=n("9112"),o=n("cb2d"),s=n("6374"),c=n("e893"),l=n("94ca");t.exports=function(t,e){var n,u,d,h,f,p,g=t.target,y=t.global,m=t.stat;if(u=y?i:m?i[g]||s(g,{}):(i[g]||{}).prototype,u)for(d in e){if(f=e[d],t.dontCallGetSet?(p=r(u,d),h=p&&p.value):h=u[d],n=l(y?d:g+(m?".":"#")+d,t.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(t.sham||h&&h.sham)&&a(f,"sham",!0),o(u,d,f,t)}}},"241c":function(t,e,n){var i=n("ca84"),r=n("7839"),a=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,a)}},2638:function(t,e,n){"use strict";function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)}var r=["attrs","props","domProps"],a=["class","style","directives"],o=["on","nativeOn"],s=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==r.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==a.indexOf(n)){var s=t[n]instanceof Array?t[n]:[t[n]],l=e[n]instanceof Array?e[n]:[e[n]];t[n]=[].concat(s,l)}else if(-1!==o.indexOf(n))for(var u in e[n])if(t[n][u]){var d=t[n][u]instanceof Array?t[n][u]:[t[n][u]],h=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=[].concat(d,h)}else t[n][u]=e[n][u];else if("hook"===n)for(var f in e[n])t[n][f]=t[n][f]?c(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t}),{})},c=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=s},2834:function(t,e,n){"use strict";var i=n("ebb5"),r=n("e330"),a=n("59ed"),o=n("dfb9"),s=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,u=r(i.TypedArrayPrototype.sort);l("toSorted",(function(t){void 0!==t&&a(t);var e=s(this),n=o(c(e),e);return u(n,t)}))},2877:function(t,e,n){"use strict";function i(t,e,n,i,r,a,o,s){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return i}))},"2b16":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],style:{"--layout":t.layout},attrs:{visible:t.currentVisible,"custom-class":"ac-preview",top:"20px"},on:{"update:visible":function(e){t.currentVisible=e},opened:t.handleOpen,close:function(e){t.imgList=[]}}},[t._l(t.imgList,(function(t,n){return e("img",{key:n,staticClass:"ac-preview__item",attrs:{src:t}})})),t.imgList.length?e("i",{staticClass:"el-icon-circle-close",attrs:{slot:"footer"},on:{click:function(e){t.currentVisible=!1}},slot:"footer"}):t._e()],2)},r=[],a=n("5dcc"),o={name:"AcPreview",props:{visible:{type:Boolean,default:!1},selector:{type:String,required:!0}},computed:{currentVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}},layout:function(){return this.$store.getters["AC/layout"]}},data:function(){return{imgList:[],loading:!1}},methods:{handleOpen:function(){var t=this,e=$(this.selector);e.length&&(this.loading=!0,Object(a["d"])(e).then((function(e){t.imgList=e,t.loading=!1})).catch((function(){t.loading=!1})))}}},s=o,c=n("2877"),l=Object(c["a"])(s,i,r,!1,null,null,null),u=l.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},"2ba4":function(t,e,n){var i=n("40d5"),r=Function.prototype,a=r.apply,o=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(a):function(){return o.apply(a,arguments)})},"2d00":function(t,e,n){var i,r,a=n("da84"),o=n("342f"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},"342f":function(t,e){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3511:function(t,e){var n=TypeError,i=9007199254740991;t.exports=function(t){if(t>i)throw n("Maximum allowed index exceeded");return t}},"3a34":function(t,e,n){"use strict";var i=n("83ab"),r=n("e8b5"),a=TypeError,o=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!o(t,"length").writable)throw a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){var i=n("e330");t.exports=i({}.isPrototypeOf)},"3bbe":function(t,e,n){var i=n("1626"),r=String,a=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+r(t)+" as a prototype")}},"3c5d":function(t,e,n){"use strict";var i=n("da84"),r=n("c65b"),a=n("ebb5"),o=n("07fa"),s=n("182d"),c=n("7b0b"),l=n("d039"),u=i.RangeError,d=i.Int8Array,h=d&&d.prototype,f=h&&h.set,p=a.aTypedArray,g=a.exportTypedArrayMethod,y=!l((function(){var t=new Uint8ClampedArray(2);return r(f,t,{length:1,0:3},1),3!==t[1]})),m=y&&a.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var t=new d(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){p(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=c(t);if(y)return r(f,this,n,e);var i=this.length,a=o(n),l=0;if(a+e>i)throw u("Wrong length");while(l<a)this[e+l]=n[l++]}),!y||m)},4089:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-card"},[e("div",{staticClass:"ac-card__left"},[e("div",{staticClass:"ac-card__content",style:{width:"".concat(1===t.layout?980:1960,"px"),position:t.noPaperModePreview&&"relative"}},[t.noPaperModePreview?e("div",{staticClass:"ac-card__mantle"}):t._e(),t.paperTree.length?[1===t.acMode?e("ac-lattice",{ref:"latticeCard"}):e("ac-sweep",{ref:"sweepCard",on:{"build-failed":t.buildFailed}})]:t._e()],2)]),t.showConfig?e("ac-answer-config",t._b({on:{"before-download":t.beforeDownload,download:t.download,save:t.save,"view-paper":t.viewPaper},scopedSlots:t._u([{key:"paperStructure",fn:function(){return[t._t("paperStructure")]},proxy:!0},{key:"eduPeriodSelect",fn:function(){return[t._t("eduPeriodSelect")]},proxy:!0},{key:"quoteAnswerCard",fn:function(){return[t._t("quoteAnswerCard")]},proxy:!0},{key:"addTopic",fn:function(){return[t._t("addTopic")]},proxy:!0},{key:"configSuffix",fn:function(){return[t._t("configSuffix")]},proxy:!0}],null,!0)},"ac-answer-config",t.config,!1)):t._e()],1)},r=[];n("14d9");function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function o(t){if(Array.isArray(t))return a(t)}function s(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function c(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}n("d9e2");function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t){return o(t)||s(t)||c(t)||l()}var d=n("639e"),h=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-lattice"},[e("ac-virtual",{on:{change:t.setDomList}}),e("ac-panel",{attrs:{"dom-list":t.domList}})],1)},f=[],p=(n("b7ef"),n("907a"),n("986a"),n("1d02"),n("3c5d"),n("6ce5"),n("2834"),n("4ea1"),n("a38e"));function g(t,e,n){return e=Object(p["a"])(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v=n("53ca");function _(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
_=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var a=e&&e.prototype instanceof h?e:h,o=Object.create(a.prototype),s=new E(r||[]);return i(o,"_invoke",{value:A(t,n,s)}),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var g={};c(g,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(S([])));m&&m!==e&&n.call(m,a)&&(g=m);var b=p.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(i,a,o,s){var c=u(t[i],t,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==Object(v["a"])(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(d).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(t,e,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return I()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=u(t,e,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function x(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return f.prototype=p,i(b,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:f,configurable:!0}),f.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(C.prototype),c(C.prototype,o,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,i,r,a){void 0===a&&(a=Promise);var o=new C(l(e,n,i,r),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return o.type="throw",o.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function b(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(i,r)}function w(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){b(a,i,r,o,s,"next",t)}function s(t){b(a,i,r,o,s,"throw",t)}o(void 0)}))}}var C=n("d4ec"),A=n("bee2"),x=n("4e0a"),T=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-question ck-content",attrs:{"data-key":t.dataKey}},[(t.formatChoices.length||"hand"===t.readType)&&t.showAnswerBox?e("div",{staticClass:"ac-question__prefix"},[e("ac-answer-box",{attrs:{label:t.formatChoices.length?t.showQuestion?"答案":t.plainTitle:"得分",direction:t.formatChoices.length?"column":"row",width:t.formatChoices.length&&!t.showQuestion?144:128}})],1):t._e(),!t.formatChoices.length||t.showQuestion?e("div",{staticClass:"ac-question__content"},[t.formatTitle||t.formatPrefix?e("div",{staticClass:"ac-question__title",style:t.titleAlign?{"text-align":t.titleAlign}:""},[t.formatPrefix?e("div",{staticClass:"ac-question__title-prefix",class:{"is-float":!!t.formatTitle,"is-bold":t.showQuestion},domProps:{innerHTML:t._s(t.formatPrefix)}}):t._e(),t.formatTitle?e("div",{staticClass:"ac-question__title-inner",domProps:{innerHTML:t._s(t.formatTitle)}}):t._e()]):t._e(),t.formatChoices.length?e("ac-choice",{attrs:{list:t.formatChoices,wrap:t.choiceWrap}}):t._e()],1):t._e()])},k=[],E=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-choice"},[t.wrap?[e("div",{staticClass:"ac-choice__list"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1),t.list.length%2?t._e():e("div",{staticClass:"ac-choice__list--half"},t._l(Array(t.list.length/2).fill(""),(function(n,i){return e("div",{key:i,staticClass:"row-direction"},t._l(t.list.slice(2*i,2*i+2),(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)})),0),e("div",{staticClass:"ac-choice__list--all"},[e("div",{staticClass:"row-direction"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)])]:e("div",{staticClass:"ac-choice__list--nowrap"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)],2)},S=[],I=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-choice__item"},[t.identifier?e("div",{staticClass:"ac-choice__prefix"},[t._v(t._s(t.identifier)+".")]):t._e(),t.content?e("div",{staticClass:"ac-choice__content",domProps:{innerHTML:t._s(t.content)}}):t._e()])},O=[],P={name:"AcChoiceItem",props:{identifier:{type:String,default:""},content:{type:String,default:""}}},B=P,j=n("2877"),L=Object(j["a"])(B,I,O,!1,null,null,null),R=L.exports,M={name:"AcChoice",components:{AcChoiceItem:R},props:{list:{type:Array,default:function(){return[]}},wrap:{type:Boolean,default:!0}}},N=M,z=Object(j["a"])(N,E,S,!1,null,null,null),D=z.exports,U=n("fbd7"),H={name:"AcQuestion",components:{AcChoice:D,AcAnswerBox:U["default"]},props:{title:{type:String,default:""},titleEditable:{type:Boolean,default:!0},titleAlign:{type:String,default:""},prefix:{type:String,default:""},prefixEditable:{type:Boolean,default:!1},choices:{type:Array,default:function(){return[]}},choiceEditable:{type:Boolean,default:!0},choiceWrap:{type:Boolean,default:!0},dataKey:{type:String,default:""},plainTitle:{type:String,default:""},showAnswerBox:{type:Boolean,default:!0}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},formatTitle:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||(this.showQuestion?this.title:"")},formatPrefix:function(){var t,e=this;return(null===(t=this.editTitleList.find((function(t){return t.dataKey===e.dataKey})))||void 0===t?void 0:t.prefix)||(this.showQuestion?this.prefix:this.plainTitle)},formatChoices:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).choices||this.choices||[]},readType:function(){return this.$store.getters["AC/readType"]},showQuestion:function(){return this.$store.getters["AC/showQuestion"]}}},F=H,K=Object(j["a"])(F,T,k,!1,null,null,null),W=K.exports;W.install=function(t){t.component(W.name,W)};var V=W,Y=n("8f60"),Z=n("e6c4"),G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-question-material ck-content",attrs:{"data-key":t.dataKey}},[e("div",{staticClass:"ac-question-material__inner",domProps:{innerHTML:t._s(t.material)}})])},q=[],Q={name:"AcQuestionMaterial",props:{dataKey:{type:String,default:""},material:{type:String,default:""}},computed:{showQuestion:function(){return this.$store.getters["AC/showQuestion"]}}},X=Q,J=Object(j["a"])(X,G,q,!1,null,null,null),tt=J.exports,et=function(){window.MathJax&&(window.MathJax.Hub.Config({showProcessingMessages:!1,messageStyle:"none",jax:["input/TeX","output/HTML-CSS"],tex2jax:{inlineMath:[["\\(","\\)"],["\\[","\\]"]],displayMath:[],skipTags:["script","noscript","style","textarea","pre"]},"HTML-CSS":{showMathMenu:!1}}),window.isAcMathJaxConfig=!0)},nt=function(t){if(window.MathJax)return window.isAcMathJaxConfig||et(),new Promise((function(e){window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub,document.getElementById(t)]),window.MathJax.Hub.Queue((function(){e()}))}))},it=n("5dcc"),rt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-mark-box",class:"mark-".concat(t.type)},[t._v(" "+t._s(t.title)+" "),e("div",{staticClass:"check-box"})])},at=[],ot={name:"AcMarkBox",props:{title:{type:String,default:""},type:{type:String,default:""}}},st=ot,ct=Object(j["a"])(st,rt,at,!1,null,null,null),lt=ct.exports;lt.install=function(t){t.component(lt.name,lt)};var ut,dt,ht=lt,ft={name:"AcVirtual",components:{AcEssay:x["default"],AcQuestion:V,AcAnswerBox:U["default"],AcGraffiti:Y["default"],AcBasicInfo:Z["default"],AcQuestionMaterial:tt,AcMarkBox:ht},data:function(){return{continueObjectiveCount:0}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},showQuestion:function(){return this.$store.getters["AC/showQuestion"]},readType:function(){return this.$store.getters["AC/readType"]},paperTree:function(){return this.$store.getters["AC/paperTree"]}},updated:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},mounted:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},methods:{handleLatex:function(){return nt("math-virtual")||Promise.resolve()},getEditedTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},splitDom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="",i=0,r=0,a=[],o=[];if(t){if(t.childNodes.length){var s=t.childNodes[t.childNodes.length-1];t.childNodes.length>1&&(2!==t.childNodes.length||"\n"!==s.textContent)?o=t.childNodes:t.childNodes[0].childNodes.length&&"FIGURE"!==t.childNodes[0].nodeName&&(o=t.childNodes[0].childNodes)}o.length||(o=t.childNodes)}for(var c=0;c<o.length;c++){var l=o[c];if(-1===["P","DIV","IMG","FIGURE"].indexOf(l.nodeName))try{"#text"===l.nodeName?n+=l.textContent:n+=l.outerHTML}catch(g){}else{var u=getComputedStyle(l),d=Number(u.marginTop.replace("px",""))||0,h=Number(u.marginBottom.replace("px",""))||0,f=Object(it["e"])(l);a.length&&(f-=r),n+=l.outerHTML,i+=f+$(l).outerHeight()+d+h,a.push({type:e,content:n,height:i}),n="",i=0,r=Object(it["e"])(l)+$(l).outerHeight()+d+h}}if(n){var p=$(t).outerHeight();a.push({type:e,content:n,height:a.length?p-r:p})}return a},getDomList:function(){var t=this,e=function(e,n,r,a){if(e.material&&t.showQuestion){var o=n.find(".ac-question-material__inner")[0],s=t.splitDom(o,"questionMaterialItem");s.length&&(s[0].height+=16),i.push({children:s})}var c={dataKey:r,children:[],updatePage:e.updatePage,updatePiece:e.updatePiece},l=null,u=0;if((e.title||e.prefix)&&(t.showQuestion||!e.choices)){var d=n.find(".ac-question__title")[0],h=n.find(".ac-question__title-inner")[0],f=n.find(".ac-question__title-prefix")[0],p=n.find(".ac-answer-box")[0],g=getComputedStyle(d),y=Number(g.paddingTop.replace("px",""))||0,m=Number(g.paddingBottom.replace("px",""))||0,v=[];if(h?(v=t.splitDom(h,"questionTitleItem"),v.length&&(p&&(u=$(p).outerHeight(),v[0].answerBoxHeight=u,e.showAnswerBox&&(v[0].needAnswerBox=!0),l=v[0]),v[0].prefix=(null===f||void 0===f?void 0:f.outerHTML)||"",v[0].height+=y,v[v.length-1].height+=m,v.forEach((function(t){t.hasChoice=e.choices&&e.choices.length,t.titleAlign=e.titleAlign})))):f&&(v=[{type:"questionTitleItem",prefix:f.outerHTML,height:Math.max($(f).outerHeight()+y+m,p?$(p).outerHeight():0),content:"",needAnswerBox:!!p&&e.showAnswerBox}]),v.length){var _={children:v};c.children.push(_)}}if(e.choices)if(t.showQuestion){var b={},w=n.find(".ac-choice")[0];if(!1===e.choiceWrap)Object.assign(b,{type:"choiceItem",height:$(w).outerHeight(),content:w.outerHTML});else{var C=$(w).outerWidth(),A=$(w).find(".ac-choice__list").outerWidth();if(C>=A*e.choices.length)Object.assign(b,{type:"choiceItem",height:$(w).find(".ac-choice__list--all").outerHeight(),content:$(w).find(".ac-choice__list--all")[0].outerHTML});else{b.children=[];var x=$(w).find(".ac-choice__list .ac-choice__item"),T="ac-choice__list";!(e.choices.length%2)&&C>=2*A&&(T="ac-choice__list--half",x=$(w).find(".ac-choice__list--half .row-direction")),Array.from(x).forEach((function(t){b.children.push({type:"choiceItem",height:$(t).outerHeight(),content:t.outerHTML,wrapperClass:T})}))}}c.children.push(b)}else{var k=n.find(".ac-answer-box")[0];c.children.push({type:"plainBox",boxContent:e.plainTitle,height:t.continueObjectiveCount%5===0?$(k).outerHeight():0}),t.continueObjectiveCount++}else t.continueObjectiveCount=0;if(l){var E=0,S=function t(e){e.forEach((function(e){e.children?t(e.children):E+=e.height}))};S(c.children),u-E>0&&(l.height+=u-E)}if(i.push(c),e.essay){var I={type:"essay",essay:Object.assign({rowCount:4},e.essay),dataKey:r};if(a&&(a.essayRowCount=I.essay.rowCount,i.push(Object.assign({},a,{subtype:"beforeEssay"}))),e.essay.title){var O=n.find(".ac-essay__title")[0];I.essay.titleChildren=t.splitDom(O)}i.push(I)}},n=function n(a){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];a.forEach((function(a,s){var c=[].concat(u(o),[a[a.idProp||"id"]||s]),l=r.find(".ac-virtual__section[data-key=".concat(c.join("_"),"]"));if(Array.isArray(a.children)&&a.children.length){t.continueObjectiveCount=0;var d=l.find(".ac-virtual__title")[0];if(d||"complex"===a.code){var h={};if("complex"===a.code){var f=l.find(".ac-material__title-prefix")[0],p=l.find(".ac-material__title-inner")[0],g=[];p?(g=t.splitDom(p,"materialItem"),g.length&&(g[0].prefix=(null===f||void 0===f?void 0:f.outerHTML)||"",g[0].height+=16)):f&&(g=[{type:"materialItem",prefix:f.outerHTML,height:$(f).outerHeight()+16,content:""}]),h={dataKey:c.join("_"),children:g}}else h={dataKey:c.join("_"),height:$(d).outerHeight(),content:d.innerHTML,updatePage:a.updatePage,updatePiece:a.updatePiece};i.push(h)}if(a.prefixMarker){var y=l.find(".ac-mark-box.mark-prefix")[0];i.push({dataKey:c.join("_"),height:$(y).outerHeight(),content:y.outerHTML,type:"prefixMarker"})}if(n(a.children,c),a.suffixMarker){var m=l.find(".ac-mark-box.mark-suffix")[0];i.push({dataKey:c.join("_"),height:$(m).outerHeight(),content:m.outerHTML,type:"suffixMarker"})}}else{var v=null;if("graffiti"===t.readType){var _=l.find(".ac-graffiti__wrapper")[0];_&&(v={type:"graffiti",dataKey:c.join("_"),height:$(_).outerHeight(),content:_.innerHTML,subtype:"beforeTitle"},i.push(v))}e(a,l,c.join("_"),v)}}))},i=[],r=$(".ac-virtual"),a=r.find(".ac-basicInfo");if(a){var o=a.find(".ac-basicInfo__title"),s=a.find(".ac-attention"),c=a.find(".ac-basic-info__edu");i.push({type:"basicInfo",headHeight:null===o||void 0===o?void 0:o.outerHeight(),attentionHeight:null===s||void 0===s?void 0:s.outerHeight(),eduHeight:null===c||void 0===c?void 0:c.outerHeight()})}n(this.paperTree),this.$emit("change",i)},getTitle:function(t,e){var n=this.$createElement,i=t.title,r=t.prefix,a=t.plainTitle,o=t.code,s=this.editTitleList.find((function(t){return t.dataKey===e})),c=s||{},l=c.title,u=c.editKey,d=s?l:this.showQuestion||"complex"!==o?i:"",h=this.showQuestion?r:a;return d||h?n("div",{class:"ac-".concat("complex"===o?"material":"virtual","__title")},[h?n("div",{class:"ac-".concat("complex"===o?"material":"virtual","__title-prefix").concat(this.showQuestion?" is-bold":"").concat(d?" is-float":"")},[h]):null,d?n("div",{key:"virtual_title_".concat(u),class:"ac-".concat("complex"===o?"material":"virtual","__title-inner ck-content"),domProps:{innerHTML:d}}):null]):null},getList:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.$createElement;return t.map((function(t,r){var a=[].concat(u(n),[t[t.idProp||"id"]||r]);return i("div",{key:"".concat(r,"_").concat(t[t.idProp||"id"]||""),class:"ac-virtual__section",attrs:{"data-key":a.join("_")}},[Array.isArray(t.children)&&t.children.length?i("div",[e.getTitle(t,a.join("_")),t.prefixMarker?i("ac-mark-box",{attrs:{type:"prefix",title:t.prefixMarker.title}}):null,e.getList(t.children,a),t.suffixMarker?i("ac-mark-box",{attrs:{type:"suffix",title:t.suffixMarker.title}}):null]):i("div",["graffiti"!==e.readType||t.choices?null:i("ac-graffiti",{attrs:{scanName:t.scanName,score:t.score}}),t.material?i("ac-question-material",{key:"virtual_question_material_".concat(e.getEditedKey(a.join("_"))),props:m({},{dataKey:a.join("_"),material:t.material})}):null,i("ac-question",{key:"virtual_question_".concat(e.getEditedKey(a.join("_"))),props:m({},Object.assign({dataKey:a.join("_")},t))}),t.essay?i("ac-essay",{props:m({},Object.assign(t.essay,{title:e.getEssayTitle(a.join("_"),t.essay.title)}))}):null])])}))}},render:function(){var t=arguments[0];return t("div",{class:"ac-virtual",attrs:{id:"math-virtual"},key:"virtual_"+this.readType},[t("ac-basic-info"),this.getList(this.paperTree)])}},pt=ft,gt=Object(j["a"])(pt,ut,dt,!1,null,null,null),yt=gt.exports;yt.install=function(t){t.component(yt.name,yt)};var mt=yt,vt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-panel"},[t._l(t.formatPanelList,(function(n,i){return e("div",{key:i,staticClass:"ac-panel__item"},[e("div",{staticClass:"ac-piece__wrapper",style:{width:1===t.layout?"980px":"1960px"},attrs:{"data-page":i+1}},[t._l(n,(function(n,r){return e("ac-piece",{key:r,attrs:{"data-piece":i*t.layout+r,"data-page":i,list:n},on:{edit:t.handleEdit}})})),t.layout-n.length&&t.needRestrict?e("div",{staticClass:"ac-piece"},[e("ac-restrict")],1):t._e(),"graffiti"===t.readType?e("ac-mark-point",{attrs:{"page-index":i}}):t._e(),e("div",{staticClass:"ac-piece__footer"},[t._v(" "+t._s("第".concat(i+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")])],2)])})),e("ac-editor",{attrs:{visible:t.visible,content:t.editing.content||"",title:t.editorTitle},on:{"update:visible":function(e){t.visible=e},submit:t.handleSubmit}})],2)},_t=[],bt=(n("13d5"),function(){var t=this,e=t._self._c;return e("div",{ref:"restrictRef",class:["ac-restrict",t.lastOneClass],style:{width:t.$store.getters["AC/layout"]>2?"580px":"868px",height:t.realHeight,marginTop:"".concat(t.marginTop,"px")}},[t.isEntranceExams?e("div",{class:["entrance-border",t.layout>2&&"three-column_border",(1250===t.height||"100%"===t.height||t.isFirst)&&"show-border_top",t.isShowTipWord&&"show-border_word-top"]}):t._e(),t.isEntranceExams?e("div",{class:["entrance-outline",t.layout>2&&"three-column_outline",(1250===t.height||"100%"===t.height||t.isFirst)&&"show-outline_top",t.isShowTipWord&&"show-border_word-top"]}):t._e(),e("div",{staticClass:"ac-restrict__header"}),e("div",{staticClass:"ac-restrict__footer"})])}),wt=[],Ct={name:"AcRestrict",inject:["paddingBlock"],props:{height:{type:[Number,String],default:"100%"},marginTop:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isShowTipWord:{type:Boolean,default:!1},isLastOne:{type:Boolean,default:!1},lastOneClass:{type:String,default:""}},data:function(){return{realHeight:"100%"}},computed:{isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},layout:function(){return this.$store.getters["AC/layout"]}},watch:{height:function(){var t=this;this.$nextTick((function(){return t.updateHeight()}))}},mounted:function(){this.updateHeight()},methods:{updateHeight:function(){var t=this;if("number"===typeof this.height){if(1250!==this.height){var e=this.$refs.restrictRef,n=this.$parent.$el,i=n.clientHeight-(Object(it["e"])(e)+this.height);this.realHeight="".concat(i<68&&this.height+(i-68)>0?this.height+(i-68):this.height,"px")}else this.realHeight="".concat(this.height-5,"px");this.lastOneClass&&this.$nextTick((function(){return t.getDistanceToParentBottom()}))}else this.realHeight=this.height},getDistanceToParentBottom:function(){var t=document.getElementsByClassName(this.lastOneClass)[0],e=Object(it["c"])(t);this.realHeight="".concat(parseInt(this.realHeight)+e,"px")}}},At=Ct,xt=Object(j["a"])(At,bt,wt,!1,null,null,null),Tt=xt.exports;Tt.install=function(t){t.component(Tt.name,Tt)};var kt,Et,St=Tt,It={name:"AcPiece",components:{AcEssay:x["default"],AcAnswerBox:U["default"],AcBasicInfo:Z["default"],AcRestrict:St},props:{list:{type:Array,default:function(){return[]}}},inject:["paddingBlock","moveCallback","deleteCallback","editType","editCallback"],computed:{paperTree:function(){return this.$store.getters["AC/paperTree"]},readType:function(){return this.$store.getters["AC/readType"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},sizeType:function(){return this.$store.getters["AC/sizeType"]},pieceHeight:function(){return"K"===this.sizeType?"1357px":"1386px"},piecePadding:function(){return"number"===typeof this.paddingBlock?"".concat(this.paddingBlock,"px 0px"):"".concat(this.paddingBlock[0]||0,"px 0px ").concat(this.paddingBlock[1]||0,"px")}},methods:{getPlainTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},isWithSpace:function(t){var e=!1,n=t.split("_"),i=this.paperTree||[];return n.forEach((function(t,r){var a=i.find((function(e,n){return(e[e.idProp||"id"]||n).toString()===t}))||{};i=a.children||[],r===n.length-1&&(e=a.choices&&a.choices.length&&a.showAnswerBox)})),e},getSourceNode:function(t){var e=null,n=function n(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=0;a<i.length;a++){var o,s=i[a],c=[].concat(u(r),[s[s.idProp||"id"]||a]);if(t===c.join("_")){e=s;break}null!==(o=s.children)&&void 0!==o&&o.length&&n(s.children,c)}};return n(this.paperTree||[]),e},handleClick:function(t,e){var n;"text"===this.editType?null===(n=this.editCallback)||void 0===n||n.call(this,this.getSourceNode(t)):this.$emit("edit",t,e)},handleMove:function(t,e){var n;null===(n=this.moveCallback)||void 0===n||n.call(this,t,this.getSourceNode(e))},handleDelete:function(t){var e;null===(e=this.deleteCallback)||void 0===e||e.call(this,this.getSourceNode(t))},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})},getOperation:function(t){var e;return(null===(e=this.getSourceNode(t))||void 0===e?void 0:e.operation)||{}},getContent:function(t,e){var n,i=this,r=this.$createElement,a=null,o=this.getOperation(t.dataKey),s=o.editable,c=o.editLabel,l=o.moveUp,u=o.moveDown,d=o.deletable;switch(t.type){case"question":a=r("div",{key:"question_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-question ck-content"},[t.answerBoxType?r("div",{class:"ac-question__prefix"},[r("ac-answer-box",{attrs:{label:"answer"===t.answerBoxType?"答案":"得分",direction:"answer"===t.answerBoxType?"column":"row"}})]):null,r("div",{class:"ac-question__content"+("hand"!==this.readType&&!this.isWithSpace(t.dataKey)||t.answerBoxType?"":" with-space")},[s&&!t.following?r("el-button",{attrs:{type:"primary",size:"small"},class:"ac-question__edit",on:{click:function(){return i.handleClick(t.dataKey,c)}}},[c]):null,(l||u||d)&&!t.following?r("div",{class:"ac-question__operation"},[l?r("i",{class:"el-icon-top",on:{click:function(){return i.handleMove("up",t.dataKey)}}}):null,u?r("i",{class:"el-icon-bottom",on:{click:function(){return i.handleMove("down",t.dataKey)}}}):null,d?r("i",{class:"el-icon-delete",on:{click:function(){return i.handleDelete(t.dataKey)}}}):null]):null,null===(n=t.content)||void 0===n?void 0:n.map((function(t){return"string"===typeof t?r("div",{domProps:{innerHTML:t}}):t}))])]);break;case"essay":a=r("ac-essay",{key:"essay_".concat(e),attrs:{"data-key":t.dataKey||""},props:m({},t.content[0])});break;case"material":a=r("div",{key:"material_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-material ck-content"},[s&&!t.following?r("el-button",{class:"ac-material__edit",attrs:{type:"primary",size:"small"},on:{click:function(){return i.handleClick(t.dataKey,c)}}},[c]):null,r("div",{domProps:{innerHTML:t.content.join("")}})]);break;case"questionMaterial":a=r("div",{key:"question-material_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ck-content ac-question-material"},[r("div",{domProps:{innerHTML:t.content.join("")}})]);break;case"plainBox":a=r("div",{key:"question_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-question is-box".concat(t.isFollowBox?" is-follow":"")},[r("div",{class:"ac-question__prefix"},[r("ac-answer-box",{attrs:{label:this.getPlainTitle(t.dataKey)||t.boxContent,width:144,editable:!0,dataKey:t.dataKey}})])]);break;case"graffiti":a=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-graffiti__wrapper".concat("beforeEssay"===t.subtype?" is-bottom":""),domProps:{innerHTML:t.content}});break;case"basicInfo":a=r("ac-basic-info",{props:m({},t)});break;case"restrict":a=r("ac-restrict",{attrs:{height:t.height,marginTop:20}});break;case"prefixMarker":a=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-prefix-marker"},[r("div",{domProps:{innerHTML:t.content}})]);break;case"suffixMarker":a=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-suffix-marker"},[r("div",{domProps:{innerHTML:t.content}})]);break;default:a=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-piece__section"},[s&&"text"===this.editType?r("el-button",{attrs:{type:"primary",size:"small"},class:"ac-section__edit",on:{click:function(){return i.handleClick(t.dataKey)}}},[c]):null,(l||u||d)&&!t.following?r("div",{class:"ac-section__operation"},[l?r("i",{class:"el-icon-top",on:{click:function(){return i.handleMove("up",t.dataKey)}}}):null,u?r("i",{class:"el-icon-bottom",on:{click:function(){return i.handleMove("down",t.dataKey)}}}):null,d?r("i",{class:"el-icon-delete",on:{click:function(){return i.handleDelete(t.dataKey)}}}):null]):null,r("div",{attrs:{contenteditable:s&&"editor"===this.editType},domProps:{innerHTML:t.content},on:{blur:function(e){return"editor"===i.editType&&i.handleBlur(e,t.dataKey)}}})])}return a}},render:function(){var t=this,e=arguments[0];return e("div",{class:"ac-piece",style:{height:this.pieceHeight,padding:this.piecePadding}},[this.list.map((function(e,n){return t.getContent(e,n)}))])}},Ot=It,Pt=Object(j["a"])(Ot,kt,Et,!1,null,null,null),Bt=Pt.exports;Bt.install=function(t){t.component(Bt.name,Bt)};var jt=Bt,Lt=n("6bdf"),Rt=n("13ed"),Mt={name:"AcPanel",components:{AcPiece:jt,AcEditor:Lt["default"],AcMarkPoint:Rt["default"],AcRestrict:St},props:{domList:{type:Array,default:function(){return[]}}},inject:["showStudentInfo","paddingBlock","needRestrict"],data:function(){return{panelList:[],visible:!1,editing:{},headHeight:0,attentionHeight:0,eduHeight:0,editorTitle:"编辑题目"}},computed:{formatPanelList:function(){var t=this,e=[];return this.panelList.forEach((function(n,i){i%t.layout===0?e.push([n]):e[e.length-1].push(n)})),e},paperTree:function(){return this.$store.getters["AC/paperTree"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},showAttention:function(){return this.$store.getters["AC/showAttention"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},readType:function(){return this.$store.getters["AC/readType"]},layout:function(){return this.$store.getters["AC/layout"]},latticeAttention:function(){return this.$store.getters["AC/latticeAttention"]},stuInfoLength:function(){return this.$store.getters["AC/studentInfo"].length},eduIdLength:function(){return this.$store.getters["AC/educationIdValue"]},registrationType:function(){return this.$store.getters["AC/registrationNumberType"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},pieceHeight:function(){var t="number"===typeof this.paddingBlock?2*this.paddingBlock:this.paddingBlock.reduce((function(t,e){return t+e}),0);return("K"===this.sizeType?1357:1386)-(t+10)},rowConfig:function(){return this.$store.getters["AC/rowConfig"]}},watch:{domList:function(t){t.length&&this.getPanelList()},panelFlag:function(){this.getPanelList()}},methods:{getRowCount:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.row?n.row:e},getBgType:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.bgType?n.bgType:e},handleEdit:function(t,e){var n={dataKey:t,content:"",hasChoice:!1},i=this.editTitleList.find((function(e){return e.dataKey===t}));if(null!==i&&void 0!==i&&i.title){var r=i.title,a=void 0===r?"":r,o=i.choices,s=void 0===o?[]:o;n.content+=a||"",s.length&&(n.hasChoice=!0,n.content+=s.map((function(t){return"<div class='ac-editor__choice'>".concat(t.identifier,".").concat(t.content,"</div>")})).join(""))}else{var c=t.split("_"),l=this.paperTree||[];c.forEach((function(t,e){var i=l.find((function(e,n){return(e[e.idProp||"id"]||n).toString()===t}))||{};l=i.children||[],e===c.length-1&&(n.content+=i.title||"",i.choices&&i.choices.length&&(n.hasChoice=!0,n.content+=i.choices.map((function(t){return"<div class='ac-editor__choice'>".concat(t.identifier,".").concat(t.content,"</div>")})).join("")))}))}this.editing=n,this.editorTitle=e,this.visible=!0},handleSubmit:function(t){var e=this.editing,n=e.dataKey,i=e.hasChoice,r={dataKey:n};if(i){var a=t.match(/<(p.*?\/p|figure.*?\/figure)>/g),o=/>[A-O]{1}[.\s.、]{0,1}/,s="",c=[],l=null;a.forEach((function(t){var e=t.match(o);if(e){var n=t.replace(o,">");l={identifier:e[0][1],content:"<p></p>"===n?"":n},c.push(l)}else l?l.content+=t:s+=t})),Object.assign(r,{title:s,choices:c})}else r.title=t;this.$store.dispatch("AC/paper/setEditTitle",r)},getBasicInfo:function(t){var e=null;return t?"graffiti"!==this.readType||t%(this.patchwork?4:2*this.layout)||(e={hideStudentInfo:!this.showStudentInfo,hideTitle:!0,hideAttention:!0,height:this.eduHeight}):e={hideStudentInfo:!this.showStudentInfo,hideAttention:!this.showAttention,height:this.headHeight+(this.showAttention?this.attentionHeight:0)+this.eduHeight},e},getPanelList:function(){var t=this,e=this.$createElement,n=[],i=0;n[i]=[];var r=this.pieceHeight,a=n[i],o=[],s=function(){var e=t.getBasicInfo(i);e&&(r-=e.height,a.push(Object.assign({type:"basicInfo"},e)))},c=function(){var e=n[i];if(i++,n[i]=[],r=t.pieceHeight,a=n[i],s(),"graffiti"===e[e.length-1].type){var o=e[e.length-1];e.pop(),a.push(o),r-=o.height}},l=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,a=["","inner"].includes(i)?0:30,o=r-(n?32:0)-a;return Math.floor((o+e)/(t+e))},u=function(n,i,r){var o=!1,s="",c="",l=!1,u=n.map((function(n){var a="";switch(n.type){case"choice":a="<div class=".concat(n.className,">").concat(n.children.join(""),"</div>");break;case"questionTitle":var u;o=n.isFirst,n.needAnswerBox&&(s="score"),n.hasChoice&&n.needAnswerBox&&(s="answer");var d=n.children.join(""),h=!(null===(u=n.prefix)||void 0===u||!u.match(/class="([^"]*?)is-float([^"]*?)"/));a=e("div",{class:"ac-question__title",style:n.titleAlign?"text-align: ".concat(n.titleAlign):""},[n.prefix?e("div",{attrs:{contentEditable:!0},domProps:{innerHTML:n.prefix},style:h?"float: left; position: relative; z-index: 1;":"",on:{blur:function(e){return t.handleTitlePrefixBlur(e,i)}}}):null,d?e("div",{class:"ac-question__title-inner",domProps:{innerHTML:d}}):null]);break;case"essayArea":a=n.essayConfig;break;case"material":o=n.isFirst,r="material";var f=n.children.join("");a="<div class='ac-material__title'>".concat(n.prefix||"").concat(f?"<div class='ac-material__title-inner'>".concat(f,"</div>"):"","</div>");break;case"questionMaterial":r="questionMaterial";var p=n.children.join("");a="<div class='ac-question-material__inner'>".concat(p,"</div>");break;case"plainBox":r="plainBox",c=n.boxContent,l=n.isFollow;break;default:a=n.content}return a}));n.length=0,a.push({type:r,dataKey:i,content:u,answerBoxType:s,boxContent:c,isFollowBox:l,following:!o})},d=function(e,n,i){var a=e.rowHeight,o=e.rowGap,s=e.titleChildren,d=e.borderType,h=t.getRowCount(n,e.rowCount),f=t.getBgType(n,e.bgType),p=t.rowConfig[f]||{};a="number"===typeof a?a:p.rowHeight||0,o="number"===typeof o?o:p.rowGap||0,r<30&&c();var g={type:"essayArea"};if(s){var y="";s.forEach((function(t,a){r>=t.height+(a?0:32)?(y+=t.content,r-=t.height+(a?0:32)):(y&&i.push({type:"essayArea",essayConfig:Object.assign({},e,{row:0,title:y,rowCount:h,bgType:f})}),i.length&&u(i,n,"essay"),c(),y=t.content,r-=t.height+32)})),y?Object.assign(g,{essayConfig:Object.assign({},e,{row:0,title:y,rowCount:h})}):g=null}else g=null;if(!h)return g?i.push(g):(i.push({type:"essayArea",essayConfig:Object.assign({},e,{rowCount:0,row:0,bgType:f})}),r-=30),void u(i,n,"essay");var m=h;while(m){var v=l(a,o,!g,d);if(v<1)g&&(i.push(g),g=null),i.length&&u(i,n,"essay"),c();else if(v<m)i.push({type:"essayArea",essayConfig:Object.assign({},e,{startRow:h-m,row:v,rowCount:h,bgType:f,title:g&&g.essayConfig?g.essayConfig.title:""})}),g&&(g=null),u(i,n,"essay"),c(),m-=v;else{i.push({type:"essayArea",essayConfig:Object.assign({},e,{startRow:h-m,row:m,rowCount:h,bgType:f,title:g&&g.essayConfig?g.essayConfig.title:""})});var _=["","inner"].includes(d)?0:30;r-=m*(a+o)-o+(g?0:32)+_,m=0,g&&(g=null)}}},h=function t(e,n,i){e.forEach((function(e,a){if(e.children)t(e.children,n,i);else{var o=e.height;if(!a&&e.answerBoxHeight&&(o=Math.max(o,e.answerBoxHeight)),r<o&&(i.length&&u(i,n,"question"),c(),["questionTitleItem","materialItem","questionMaterialItem"].includes(e.type)&&a&&(e.height+=16)),r>=e.height){switch(e.type){case"choiceItem":i.length&&"choice"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"choice",className:e.wrapperClass,children:[e.content]});break;case"questionTitleItem":i.length&&"questionTitle"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"questionTitle",prefix:e.prefix,children:[e.content],isFirst:!a,hasChoice:e.hasChoice,needAnswerBox:e.needAnswerBox,titleAlign:e.titleAlign});break;case"questionMaterialItem":i.length&&"questionMaterial"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"questionMaterial",children:[e.content]});break;case"materialItem":i.length&&"material"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"material",prefix:e.prefix,children:[e.content],isFirst:!a});break;case"plainBox":i.push({type:"plainBox",isFollow:!e.height,boxContent:e.boxContent});break;default:i.push(e.content)}r-=e.height}}}))},f=JSON.parse(JSON.stringify(this.domList));f.forEach((function(e){if(e){if(e.updatePiece)c();else if(e.updatePage)for(var i=2*t.layout,l=i-(n.length%i||i)+1,f=0;f<l;f++)c();if(e.children)e.children&&(h(e.children,e.dataKey,o),o.length&&u(o,e.dataKey,"question"));else switch(e.type){case"essay":d(e.essay,e.dataKey,o),o.length&&u(o,e.dataKey,"essay");break;case"basicInfo":t.headHeight=e.headHeight||0,t.attentionHeight=t.latticeAttention.height||e.attentionHeight||0,t.showStudentInfo&&(t.showEducationId?t.eduHeight=t.eduIdLength>10&&0!==t.registrationType?48*Math.ceil(t.stuInfoLength/3)+30+310:310:t.eduHeight=48*Math.ceil(t.stuInfoLength/3)),s();break;case"graffiti":var p=t.getRowCount(e.dataKey,e.essayRowCount||0);if(e.subtype===(p?"beforeTitle":"beforeEssay"))break;default:r<e.height&&c(),r>=e.height&&(a.push({type:e.type||"",dataKey:e.dataKey,content:e.content,height:e.height,subtype:e.subtype}),r-=e.height)}}})),this.needRestrict&&r>44&&n[n.length-1].push({type:"restrict",height:r-10}),this.panelList=n},handleTitlePrefixBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{prefix:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})}}},$t=Mt,Nt=Object(j["a"])($t,vt,_t,!1,null,null,null),zt=Nt.exports;zt.install=function(t){t.component(zt.name,zt)};var Dt=zt,Ut=n("cf03"),Ht=n.n(Ut),Ft=n("c4e3"),Kt=n.n(Ft),Wt=n("21a6"),Vt=n.n(Wt),Yt={name:"AcLattice",components:{AcVirtual:mt,AcPanel:Dt},inject:["uploadOss","paperTitle","needEssayBg"],data:function(){return{domList:[],bgUrlList:[],scanZipUrl:""}},computed:{educationIdValue:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},candidateNumColor:function(){return this.$store.getters["AC/candidateNumColor"]},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},paperTree:function(){return this.$store.getters["AC/paperTree"]},readType:function(){return this.$store.getters["AC/readType"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},UploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(C["a"])(this,e),this.file=t}return Object(A["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,i){t(e.file,n)}))}}]),e}()}},methods:{setDomList:function(t){this.domList=t},getPageImage:function(){return new Promise((function(t,e){var n=$(".ac-panel .ac-piece__wrapper");Object(it["d"])(n).then((function(e){return t(e)})).catch((function(){return t([])}))}))},download:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("graffiti"!==t.readType){e.next=8;break}if(!($(".ac-piece__wrapper").length>16)){e.next=4;break}return t.$message({showClose:!0,message:"涂点形式答题卡不能超过16页,请更换调整作答区域或更换试卷",type:"error"}),e.abrupt("return");case 4:return e.next=6,t.getZipContent();case 6:n=e.sent,t.scanZipUrl=n||"";case 8:if(!t.needEssayBg){e.next=11;break}return e.next=11,t.getAreaImages();case 11:return e.next=13,t.getPositionData();case 13:return i=e.sent,e.next=16,t.getPageImage();case 16:return r=e.sent,a="K"===t.sizeType?1===t.layout?[552.76,765.35]:[765.35,1105.51]:1===t.layout?"a4":"a3",o=new Ht.a(1===t.layout?"p":"l","pt",a),r.forEach((function(e,n){var i=1===t.layout?"K"===t.sizeType?552.76:595.28:"K"===t.sizeType?1105.51:1190.55,a="K"===t.sizeType?765.35:841.89;o.addImage(e,"JPEG",0,0,i,a),n!==r.length-1&&o.addPage()})),s="".concat(t.$store.getters["AC/title"].replace(/\n/g,"")),c=o.output("blob"),l="".concat(("K"===t.sizeType?195:210)*t.layout,"mm*").concat("K"===t.sizeType?270:297,"mm"),u={file:c,positionList:i,paperSize:l,pageImgs:r,pdfName:s},t.scanZipUrl&&(u.scanZipUrl=t.scanZipUrl),e.abrupt("return",u);case 26:case"end":return e.stop()}}),e)})))()},getPositionData:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],i=function(e,n,i){var r=i||$(e).parents(".ac-piece__wrapper"),a=r.offset(),o=a.left,s=a.top,c=$(e).offset(),l=c.left,u=c.top,d=l-o,h=d+$(e).outerWidth(),f=u-s,p=f+$(e).outerHeight(),g={page_left_top:"(".concat(t.pxToAU(d),",").concat(t.pxToAU(f),")"),page_right_bottom:"(".concat(t.pxToAU(h),",").concat(t.pxToAU(p),")"),question_page:r.data("page")};if("hand"===t.readType&&n){var y=$(e).find(".ac-answer-box")[0];if(y){var m=$(y).offset(),v=m.left,_=m.top;Object.assign(g,{mark_left_top:"(".concat(t.pxToAU(v-o),",").concat(t.pxToAU(_-s),")"),mark_right_bottom:"(".concat(t.pxToAU(v-o+$(y).outerWidth()),",").concat(t.pxToAU(_-s+$(y).outerHeight()),")")})}}return g},r=function(e){var n=[];return e.forEach((function(t){var e=$(t).parents(".ac-piece__wrapper"),i=e.data("page"),r=e.offset(),a=r.left,o=r.top,s=$(t).offset(),c=s.left,l=s.top,u=c-a,d=u+$(t).outerWidth(),h=l-o,f=h+$(t).outerHeight(),p=n.find((function(t){return t.question_page===i}));p?(p.leftPosition=Math.min(p.leftPosition,u),p.rightPosition=Math.max(p.rightPosition,d),p.topPosition=Math.min(p.topPosition,h),p.bottomPosition=Math.max(p.bottomPosition,f)):n.push({question_page:i,leftPosition:u,rightPosition:d,topPosition:h,bottomPosition:f})})),n.map((function(e){var n=e.leftPosition,i=e.rightPosition,r=e.topPosition,a=e.bottomPosition,o=e.question_page;return{page_left_top:"(".concat(t.pxToAU(n),",").concat(t.pxToAU(r),")"),page_right_bottom:"(".concat(t.pxToAU(i),",").concat(t.pxToAU(a),")"),question_page:o}}))},a=function(t,e){var a=e.join("_"),o=$(".ac-panel"),s=u(o.find("div[data-key=".concat(a,"]"))),c=[],l={},d={};if(t.prefixMarker){var h=o.find(".ac-prefix-marker[data-key=".concat(a,"]"));Object.assign(l,i(h))}if(t.suffixMarker){var f=o.find(".ac-suffix-marker[data-key=".concat(a,"]"));Object.assign(d,i(f))}var p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=[];return e.forEach((function(e,a){var s=[],l=[].concat(u(n),[a]),d=o.find('div[data-key="'.concat(l.join("_"),'"]'));if(s.push.apply(s,u(d)),e.children&&s.push.apply(s,u(t(e.children,l))),e.positionInfo){var h=r(s);c.push.apply(c,u(h.map((function(t){return m(m({},t),e.positionInfo)}))))}i.push.apply(i,s)})),i};s.push.apply(s,u(p(t.children,e)));var g=r(s);n.push.apply(n,u(g.map((function(e){return m(m({subQuestionPositions:c,prefixMarkerInfo:l,suffixMarkerInfo:d},e),t.positionInfo)}))))},o=function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];r.forEach((function(r,s){var c=[].concat(u(o),[r[r.idProp||"id"]||s]);if(r.prefixMarker||r.suffixMarker)a(r,c);else if(Array.isArray(r.children)&&r.children.length)e(r.children,c);else{var l=c.join("_"),d=$(".ac-panel");if(r.choices){var h=d.find(".ac-question[data-key=".concat(l,"] .ac-answer-box"))[0];h&&n.push(Object.assign(i(h),r.positionInfo||{}))}else if(r.essay){var f=t.editEssayList.find((function(t){return t.dataKey===l}))||{},p="number"===typeof f.row?0===f.row:0===r.essay.rowCount,g=f.title||r.essay.title,y=[];if(p){var m=g?".ac-essay__wrapper[data-key=".concat(l,"]"):".ac-question[data-key=".concat(l,"]");y=d.find(m)}else y=d.find("".concat("hand"===t.readType?".ac-question[data-key=".concat(l,"],"):"",".ac-essay__wrapper[data-key=").concat(l,"]").concat("area"===r.essay.range?" .ac-essay__area":""));for(var v=(t.bgUrlList.find((function(t){return t.dataKey===l}))||{}).bgUrls||[],_=0;_<y.length;_++){var b=i(y[_],!0);v[_]&&(b.backGroundImage=v[_]),n.push(Object.assign(b,r.positionInfo||{}))}}else for(var w=d.find(".ac-question[data-key=".concat(l,"]")),C=0;C<w.length;C++){var A=i(w[C],!0);n.push(Object.assign(A,r.positionInfo||{}))}}}))},o(t.paperTree),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))()},pxToAU:function(t){var e="K"===this.sizeType?195:210;return Math.floor(t*e*8/294*100)/100},getAreaImages:function(){var t=this;return w(_().mark((function e(){var n,i,r,a;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],i=$(".ac-panel"),r=function e(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];r.forEach((function(r,o){var s=[].concat(u(a),[r[r.idProp||"id"]||o]);if(Array.isArray(r.children)&&r.children)e(r.children,s);else if(r.essay){var c=s.join("_"),l=t.editEssayList.find((function(t){return t.dataKey===c}))||{},d="number"===typeof l.row?0===l.row:0===r.essay.rowCount,h=l.title||r.essay.title;d?n.push({dataKey:c,domArr:i.find(".ac-question[data-key=".concat(c,"]"))}):h&&n.push({dataKey:c,domArr:i.find("".concat("hand"===t.readType?".ac-question[data-key=".concat(c,"],"):"",".ac-essay__wrapper[data-key=").concat(c,"]"))})}}))},r(t.paperTree),a=[],n.forEach((function(e){e.domArr.length&&a.push(new Promise((function(n,i){Object(it["d"])(e.domArr,4,"K"===t.sizeType?5200:5600).then((function(i){var r=i.map((function(t){return Object(it["a"])(t)})),a=[];r.forEach((function(e){var n=new t.UploadAdapter(e);a.push(n.upload())})),Promise.allSettled(a).then((function(t){t.forEach((function(t,e){var n;i[e]="fulfilled"===t.status?"https://".concat(null===t||void 0===t||null===(n=t.value)||void 0===n?void 0:n.url):""})),e.bgUrls=i,n()}))})).catch((function(){return n()}))})))})),e.next=8,Promise.allSettled(a);case 8:t.bgUrlList=n;case 9:case"end":return e.stop()}}),e)})))()},getZipContent:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u,d,h,f;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),i=$(".ac-piece__wrapper"),r=1===t.registrationNumberType,a=new Kt.a,o="".concat(n,"模板_").concat(n,"_").concat(2===t.layout?"A3":"A4","_").concat("#000000"===t.candidateNumColor?"黑白":"彩色","_").concat(i.length,"_").concat(r?"涂点":"条码","_").concat(r?"10":"-1","_").concat(r?t.educationIdValue:"-1","_涂点_涂点.xml"),a.file(o,t.getXMLData()),s=[],Array.from(i).forEach((function(t,e){s.push({dom:t,name:"".concat(e+1,".png")}),e%2||(s.push({dom:$(t).find(".mark-point__top-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoshang.jpg")}),s.push({dom:$(t).find(".mark-point__top-right .mark-point__box")[0],name:"第".concat(e+1,"页_youshang.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoxia.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-right .mark-point__box")[0],name:"第".concat(e+1,"页_youxia.jpg")}))})),e.next=10,Object(it["d"])(s.map((function(t){return t.dom})),1);case 10:return c=e.sent,c.forEach((function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),o=r.length,c=new Uint8Array(o);while(o--)c[o]=r.charCodeAt(o);a.file(s[e].name,new Blob([c],{type:i}),{base64:!0})})),e.next=14,a.generateAsync({type:"blob"});case 14:return l=e.sent,u="".concat(n,"模板.zip"),d=new File([l],u,{type:"zip"}),Vt()(l,u),h=new t.UploadAdapter(d),e.next=21,h.upload();case 21:return f=e.sent,e.abrupt("return","https://"+f.url);case 23:case"end":return e.stop()}}),e)})))()},getXMLData:function(){var t=this,e=[],n=$(".ac-piece__wrapper"),i=function(n,i){var r=$(n).offset(),a=r.left,o=r.top,s=$(n).find(".mark-point__top-left")[0],c=$(s).offset(),l=c.left,u=c.top,d=$(n).find("[data-export_name]");Array.from(d).forEach((function(n){var r=$(n),s="absolute"===r.data("scan-type"),c={Type:"AnswerArea",Name:r.data("export_name"),Page:i,X:Math.floor(r.offset().left-(s?a:l)),Y:Math.floor(r.offset().top-(s?o:u)),Width:Math.ceil(r.outerWidth()),Height:Math.ceil(r.outerHeight())};"考号"===r.data("export_name")&&(c.Rows=10,c.Columns=t.educationIdValue),e.push(c)}))},r=function(t,n){var i=$(t).find(".mark-point__top-left")[0],r=$(i).offset(),a=r.left,o=r.top,s=$(t).find("[data-scan-type=review]");Array.from(s).forEach((function(t){var i=$(t),r={Type:"ReviewArea",Name:i.data("scan-name"),Page:n,X:i.offset().left-a,Y:i.offset().top-o,Width:i.outerWidth(),Height:i.outerHeight(),MaxScore:i.data("scan-score")};String(r.X).indexOf(".")>-1&&(r.X=Math.floor(r.X),r.Width+=1),String(r.Y).indexOf(".")>-1&&(r.Y=Math.floor(r.Y),r.Height+=1),r.Width=Math.ceil(r.Width),r.Height=Math.ceil(r.Height),e.push(r)}))};Array.from(n).forEach((function(t,e){i(t,"第".concat(e+1,"页")),r(t,"第".concat(e+1,"页"))}));var a='<?xml version="1.0" encoding="utf-8"?>';return a+='<answerSheet isNew="true" isYcProject="true" isYCLattice="true" layout="'.concat(this.layout,'" ').concat(this.readType&&'readType="2"',">"),a+=this.getXMLStringFromArray(e),a+="</answerSheet>",a},getXMLStringFromArray:function(t){var e=function(t){return Object.keys(t).map((function(e){return"Type"!==e?"<".concat(e,">").concat(t[e],"</").concat(e,">"):""})).join("")};return t.map((function(t){return"<".concat(t.Type,">").concat(e(t),"</").concat(t.Type,">")})).join("")}}},Zt=Yt,Gt=Object(j["a"])(Zt,h,f,!1,null,null,null),qt=Gt.exports,Qt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-sweep"},[e("ac-sweep-virtual",{attrs:{tree:t.sweepPaperTree},on:{change:t.setDomList,"build-failed":t.buildFailed}}),e("ac-sweep-panel",{attrs:{"dom-list":t.domList}})],1)},Xt=[],Jt=function(){var t=this,e=t._self._c;return e("div",{class:["ac-sweep__choice",t.showBorder&&"is-border",t.isShowBorderBottom&&"is-border-bottom"],attrs:{"data-key":t.dataKey}},[Array.isArray(t.listData)?t._l(t.listData,(function(n,i){return e("div",{key:i,staticClass:"ac-sweep__choice-wrapper"},[e("ul",{class:["ac-sweep__choice-box"],style:{gridTemplateColumns:"repeat(".concat(n.questionsWidth.length,", auto)"),gridTemplateRows:"repeat(".concat(Math.ceil(n.questions.length/n.questionsWidth.length),", auto)"),gridAutoFlow:t.objectiveOrder}},t._l(n.questions,(function(n,r){return e("li",{key:"".concat(i,"_").concat(r),ref:"choiceEach_".concat(i,"_").concat(r),refInFor:!0,staticClass:"ac-sweep__choice-each"},[e("span",{staticClass:"choice-title",style:{width:t.isComplex?"50px":"20px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,"".concat(i,"_").concat(r))}}},[t._v(" "+t._s(t.getBeforeChinese(n.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item",staticStyle:{width:"100px",height:"100%","border-bottom":"1px solid #333"}})])})),0)])})):[e("div",{staticClass:"ac-sweep__choice-wrapper"},[e("ul",{staticClass:"ac-sweep__choice-box"},[e("li",[e("span",{staticClass:"choice-title",attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,"0")}}},[t._v(" "+t._s(t.getBeforeChinese(t.list.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item",staticStyle:{width:"100px",height:"100%","border-bottom":"1px solid #333"}})])])])]],2)},te=[],ee={name:"AcSweepChoice",components:{},props:{list:{type:[Array,Object]},showBorder:{type:Boolean,default:!0},isShowBorderBottom:{type:Boolean,default:!1},isComplex:{type:Boolean,default:!1},dataKey:{type:[String,Number]}},computed:{layout:function(){return this.$store.getters["AC/layout"]},objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]}},watch:{objectiveOrder:function(t){this.convertTree(this.list)}},mounted:function(){this.convertTree(this.list)},data:function(){return{listData:null}},methods:{getBeforeChinese:function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);return-1===n?t:t.slice(0,n)}},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:"".concat(this.dataKey,"_").concat(e)})},convertTree:function(t){if(Array.isArray(t)){for(var e=[],n=["single_choice","multiple_choice","judgment"],i=0;i<t.length;i++){var r=t[i];n.includes(r.code)&&(0!==i&&n.includes(t[i-1].code)||e.push({questions:[],questionsWidth:[]}),e[e.length-1].questions.push(r))}this.listData=e,this.getChoiceWidth(this.listData)}},getChoiceWidth:function(t){var e=this;t.forEach((function(t){t.questions.forEach((function(n){t.questionsWidth.push(100+(e.isComplex?50:20)+28)}))})),this.listData.forEach((function(t){t.questionsWidth=e.designLayout(e.objectiveOrder,t.questionsWidth)}))},designLayout:function(t,e){var n=$(".ac-sweep__choice").innerWidth()-64,i=function(t){return t.reduce((function(t,e){return Math.max(t,e)}),0)},r=function(t){return t.reduce((function(t,e){return Math.min(t,e)}),n)},a=function(t,i){var r=[];return e.forEach((function(n,a){var o="row"===i?a%t:Math.floor(a/Math.ceil(e.length/t));r[o]=Math.max(r[o]||0,n)})),n-r.reduce((function(t,e){return t+e}),0)},o=i(e),s=r(e),c=Math.floor(n/o),l=c,u=!0;while(u){var d=a(l,t);d<s||l>=e.length?(u=!1,d<0&&(l-=1)):l+=1}var h=Array(l).fill("").map((function(n,i){return e.filter((function(n,r){if("row"===t)return r%l===i;var a=Math.ceil(e.length/l);return r<(i+1)*a&&r>=i*a}))}));return h}}},ne=ee,ie=Object(j["a"])(ne,Jt,te,!1,null,null,null),re=ie.exports;re.install=function(t){t.component(re.name,re)};var ae=re,oe=function(){var t=this,e=t._self._c;return e("div",{class:["ac-sweep__composite",t.lastOneClass,t.showBorder&&"is-border",t.isShowBorderBottom&&"is-border-bottom",t.isHideBorderTop&&"hide-border-top",t.isPaddingTop&&"is-padding-top",0===t.answerMode&&"is-scan"],style:{paddingBottom:"".concat(t.additionalPadding,"px"),paddingRight:1===t.subjectiveReviewType?"112px":"32px"},attrs:{"data-key":t.dataKey,type:"composite","page-index":t.pageIndex}},[0===t.answerMode&&1===t.subjectiveReviewType?e("div",{staticClass:"score-box"}):t._e(),e("div",{ref:"compositeContent",staticClass:"ac-sweep__composite-title",class:{"with-padding":0===t.answerMode&&1===t.subjectiveReviewType},staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(t.getTitle)}}),t.isEntranceExams?e("div",{class:["entrance-border",t.layout>2&&"three-column_border",t.isFirst&&"show-border_top",t.isShowTipWord&&"show-border_word-top",t.isLastOne&&"show-border_bottom"]}):t._e(),t.isEntranceExams?e("div",{class:["entrance-outline",t.layout>2&&"three-column_outline",t.isFirst&&"show-outline_top",t.isShowTipWord&&"show-outline_word-top",t.isLastOne&&"show-outline_bottom"]}):t._e(),e("el-button",{staticClass:"edit-btn",attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v(" 编辑答题区 ")]),e("ac-editor",{attrs:{visible:t.editorVisible,content:t.editContent,title:"编辑答题区","editor-id":"essay-editor_".concat(Date.now().toString(36))},on:{"update:visible":function(e){t.editorVisible=e},submit:t.handleSubmit}})],1)},se=[],ce={name:"AcSweepComposite",components:{AcEditor:Lt["default"]},inject:["paddingBlock"],props:{title:{type:String,default:""},blankNum:{type:Number,default:0},showBorder:{type:Boolean,default:!0},isShowBorderBottom:{type:Boolean,default:!1},isHideBorderTop:{type:Boolean,default:!1},dataKey:{type:String,default:""},isComplex:{type:Boolean,default:!1},isPaddingTop:{type:Boolean,default:!1},pageIndex:{type:Number,default:0},ctnType:{type:String,default:"virtual"},isFirst:{type:Boolean,default:!1},isShowTipWord:{type:Boolean,default:!1},isLastOne:{type:Boolean,default:!1},lastOneClass:{type:String,default:""},height:{type:Number,default:0},lineWidth:{type:Array,default:function(){return[]}}},computed:{answerMode:function(){return this.$store.getters["AC/answerCardMode"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},layout:function(){return this.$store.getters["AC/layout"]},getTitle:function(){var t=this;if("piece"===this.ctnType)return this.title;var e=this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{},n=new Array(this.blankNum).fill("").map((function(e,n){return'<span style="display: inline; line-height: 40px; vertical-align: text-top; overflow-wrap: anywhere; '.concat(t.isEntranceExams&&"color: #EB617E;",'"><u>').concat(" ".repeat(t.lineWidth[n]),"</u></span>")}));return e.title||'<span style="white-space: nowrap;">'.concat(this.title,"</span>").concat(n.join('<span style="line-height: 40px; vertical-align: text-top;">、</span>'))},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]}},watch:{lastOneClass:{immediate:!0,handler:function(t,e){var n=this;!t&&e&&(this.additionalPadding=0,this.lastAdditionPadding=0),t&&this.$nextTick((function(){return n.getDistanceToParentBottom()}))}}},mounted:function(){},data:function(){return{editorVisible:!1,editContent:"",additionalPadding:void 0,lastAdditionPadding:0}},methods:{getFullTitle:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.$refs.compositeContent.innerHTML},handleEdit:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/paper/setEditTitle",{dataKey:this.dataKey,title:t}),this.$store.dispatch("AC/paper/resetPanel")},getDistanceToParentBottom:function(){var t=document.getElementsByClassName(this.lastOneClass)[0],e=Object(it["c"])(t)+this.lastAdditionPadding;this.lastAdditionPadding=Math.max(e,0),this.additionalPadding=e>0?e:0}}},le=ce,ue=Object(j["a"])(le,oe,se,!1,null,null,null),de=ue.exports;de.install=function(t){t.component(de.name,de)};var he,fe,pe=de,ge={name:"AcSweepComplex",components:{AcSweepChoice:ae,AcSweepCompletion:pe,AcEssay:x["default"],AcEditor:Lt["default"]},props:{list:{type:[Array,Object]},isShowBorderBottom:{type:Boolean,default:!1},dataKey:{type:String,default:""}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title}},watch:{list:function(){this.init()}},created:function(){this.init()},data:function(){return{listTree:null,editorVisible:!1,editContent:""}},methods:{init:function(){this.listTree=this.convertTree(this.list)},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},convertTree:function(t){for(var e=t.children,n=[],i=0;i<e.length;i++){var r=e[i];("single_choice"===r.code||"multiple_choice"===r.code||"judgment"===r.code)&&i<e.length-1&&("single_choice"===e[i+1].code||"multiple_choice"===e[i+1].code||"judgment"===e[i+1].code)?(n.push([r,e[i+1]]),i++):n.push(r)}return t.children=n,t},getFullTitle:function(){var t=this;return(this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.listTree.title},editTitle:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.editorVisible=!1},getList:function(t){var e=this,n=this.$createElement;return t.map((function(t,i){return n("div",{key:"".concat(i,"_").concat(t[t.idProp||"id"]||""),class:!t.code&&!Array.isArray(t)&&"ac-sweep__virtual-section",attrs:{"data-key":t.dataKey,"question-code":t.code}},[Array.isArray(t.children)&&t.children.length&&"complex"!==t.code?n("div",{class:"ac-sweep__virtual-box"},[!t.code&&e.getTitle(t,t.dataKey),e.getList(t.children)]):n("div",[Array.isArray(t)||"single_choice"===t.code||"multiple_choice"===t.code||"judgment"===t.code?n("ac-sweep-choice",{props:m({},{list:t,showBorder:!1,dataKey:t.dataKey,isComplex:!0})}):null,"completion"===t.code?n("ac-sweep-completion",{key:"virtual_question_".concat(e.getEditedKey(t.dataKey)),props:m({},Object.assign(t,{dataKey:t.dataKey,isComplex:!0,showBorder:!0}))}):null,"subjectivity"===t.code?n("ac-essay",{props:m({},Object.assign(t.essay,{title:e.getEssayTitle(t.dataKey,t.title),hiddenBorderBoth:!1}))}):null,"complex"===t.code?n("ac-sweep-complex",{props:m({},{list:t,dataKey:t.dataKey})}):null])])}))}},render:function(){var t=arguments[0];return t("div",{class:"ac-sweep__complex ".concat(this.isShowBorderBottom&&"is-border-bottom")},[this.listTree.title?t("p",{class:"ac-sweep__complex-title",on:{click:this.editTitle},domProps:{innerHTML:this.getLiContent?this.getLiContent:this.listTree.title}}):null,this.getList(this.listTree.children),t("ac-editor",{attrs:{visible:this.editorVisible,content:this.editContent,title:"编辑答题区",editorId:"essay-editor_".concat(Date.now().toString(36))},on:{submit:this.handleSubmit}})])}},ye=ge,me=Object(j["a"])(ye,he,fe,!1,null,null,null),ve=me.exports;ve.install=function(t){t.component(ve.name,ve)};var _e,be,we=ve,Ce={name:"AcSweepVirtual",components:{AcSweepChoice:ae,AcSweepCompletion:pe,AcSweepComplex:we,AcEssay:x["default"],AcBasicInfo:Z["default"]},props:{tree:{type:Array,default:function(){return[]}}},computed:{sweepPaperTree:function(){return this.$store.getters["AC/sweepPaperTree"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]},layout:function(){return this.$store.getters["AC/layout"]},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},readType:function(){return this.$store.getters["AC/readType"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]},choiceConfig:function(){return this.$store.state.AC.sweep.choice},plainChoiceConfig:function(){return this.$store.state.AC.sweep.plainChoice},choiceHeight:function(){return 1===this.objectiveAnswerType?this.choiceConfig.itemHeight:this.plainChoiceConfig.itemHeight}},watch:{panelFlag:function(){var t=this;this.$nextTick((function(){return t.getDomList()}))}},updated:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},mounted:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},errorCaptured:function(){this.$emit("build-failed")},data:function(){return{}},methods:{handleLatex:function(){return nt("math-virtual")||Promise.resolve()},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},getTitle:function(t,e){var n=this,i=this.$createElement,r=this.editTitleList.find((function(t){return t.dataKey===e}))||t,a=r.title;return i("div",{class:"ac-sweep__virtual-head",attrs:{contenteditable:!0,"data-key":e},domProps:{innerHTML:a},on:{blur:function(t){return n.handleBlur(t,e)}}})},getList:function(t){var e=this,n=this.$createElement;return t.map((function(i,r){return n("div",{key:"".concat(r,"_").concat(i[i.idProp||"id"]||""),class:("sectionHead"===i.code||!i.code)&&!Array.isArray(i)&&"ac-sweep__virtual-section",attrs:{"data-key":i.dataKey||r,"question-code":i.code}},[Array.isArray(i.children)&&i.children.length&&"complex"!==i.code?n("div",{class:"ac-sweep__virtual-box"},[("sectionHead"===i.code||!i.code)&&e.getTitle(i,i.dataKey||r),e.getList(i.children)]):n("div",[(e.layout>1?r%(2*e.layout)===0:e.patchwork?(r+1)%4===1:r%2===0)?n("ac-basic-info"):null,Array.isArray(i)||"single_choice"===i.code||"multiple_choice"===i.code||"judgment"===i.code?n("div",{key:"objective_".concat(e.objectiveAnswerType)}):null,"completion"===i.code?n("ac-sweep-completion",{key:"virtual_question_".concat(e.getEditedKey(i.dataKey)),props:m({},Object.assign({dataKey:i.dataKey},i,{isShowBorderBottom:r===t.length-1,isPaddingTop:t[r-1]&&"completion"!==t[r-1].code&&"complexTitle"!==t[r-1].code}))}):null,"subjectivity"===i.code?n("ac-essay",{props:m({},Object.assign(i.essay,{title:e.getEssayTitle(i.dataKey,i.title)}))}):null,"complex"===i.code?n("ac-sweep-complex",{props:m({},{list:i,isShowBorderBottom:r===t.length-1,dataKey:i.dataKey})}):null])])}))},splitDom:function(t){for(var e="",n=0,i=0,r=[],a=t.childNodes||[],o=0;o<a.length;o++){var s=a[o];if(-1===["P","DIV","IMG","FIGURE"].indexOf(s.nodeName))try{"#text"===s.nodeName?e+=s.textContent:e+=s.outerHTML}catch(f){}else{var c=getComputedStyle(s),l=Number(c.marginTop.replace("px",""))||0,u=Number(c.marginBottom.replace("px",""))||0,d=Object(it["e"])(s);r.length&&(d-=i),e+=s.outerHTML,n+=d+$(s).outerHeight()+l+u,r.push({content:e,height:n}),e="",n=0,i=Object(it["e"])(s)+$(s).outerHeight()+l+u}}if(e){var h=$(t).outerHeight();r.push({content:e,height:r.length?h-i:h})}return r},getDomList:function(){var t=this,e=function(e){e.forEach((function(e,n){var i=l.find(".ac-sweep__virtual-section[data-key=".concat(e.dataKey||n,"]")),r=i.find(".ac-sweep__virtual-head")[0];r&&c.push({type:"sectionHead",height:t.editTitleList.find((function(t){return t.dataKey===n}))?t.editTitleList.find((function(t){return t.dataKey===n})).height:$(r).outerHeight(),content:r.innerHTML,dataKey:$(r).data("key")}),Array.isArray(e.children)&&e.children&&e.children.forEach((function(t,n){var r=t.dataKey,a=i.find("div[data-key=".concat(r,"]"))[0];s(t,a,!1,n===e.children.length-1,r)}))}))},n=function(e,n){var i=t.layout>2?520:808,r=function(t){return t.reduce((function(t,e){return Math.max(t,e.width)}),0)},a=function(t){return t.reduce((function(t,e){return Math.min(t,e.width)}),i)},o=function(t,e){var r=[];return n.forEach((function(i,a){var o="row"===e?a%t:Math.floor(a/Math.ceil(n.length/t));r[o]=Math.max(r[o]||0,i.width)})),i-r.reduce((function(t,e){return t+e}),0)},s=r(n),c=a(n),l=Math.floor(i/s),u=l,d=!0;while(d){var h=o(u,e);h<c||u>=n.length?(d=!1,h<0&&(u-=1)):u+=1}var f=Array(u).fill("").map((function(t,i){return n.filter((function(t,r){if("row"===e)return r%u===i;var a=Math.ceil(n.length/u);return r<(i+1)*a&&r>=i*a}))}));return f.forEach((function(t){var e=r(t);t.forEach((function(t){t.columnWidth=e}))})),f},i=function(e,i){if(Array.isArray(e)){for(var o=[],s=["single_choice","multiple_choice","judgment"],c=0;c<e.length;c++){var l=e[c];s.includes(l.code)&&(0!==c&&s.includes(e[c-1].code)||o.push([]),o[o.length-1].push(l))}var u=[],d=0;return o.forEach((function(e){e.forEach((function(e){var n=(t.editTitleList.find((function(t){return t.dataKey===e.dataKey}))||{}).title||e.title,i=r(n)?a(n):23;d=i>d?i:d})),e.forEach((function(e){if(e.titleWidth=d,1===t.objectiveAnswerType){var n=t.choiceConfig,i=n.itemWidth,r=n.gap,a=n.paddingLeft,o=n.additionalWidth,s=e.choices&&e.choices.length||0;e.width=e.titleWidth+a+s*(i+r)-r+o}else{var c=t.plainChoiceConfig,l=c.lineWidth,u=c.additionalWidth;e.width=e.titleWidth+l+u}}));for(var i=n(t.objectiveOrder,e),o=i[0].length,s=function(t){u.push(i.map((function(e){return e.find((function(e,n){return n===t}))})).filter(Boolean))},c=0;c<o;c++)s(c)})),u}},r=function(t){var e=o(t),n=/[\u4e00-\u9fa5()()]/;return n.test(e)},a=function(t){var e=o(t).length;return e>6?56:6===e?48:e<6?40:void 0},o=function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);return-1===n?t:t.slice(0,n)}},s=function e(n,r,a,o,s,l){if(Array.isArray(n)){var u=i(n,a);u.forEach((function(e,n){var i=0,r=0===n,d=n===u.length-1;1===t.objectiveAnswerType?(i=t.choiceHeight,r&&(i+=16),d&&(i+=16)):i=d?t.choiceHeight+16:t.choiceHeight,c.push({height:i,type:"objective",isComplex:a,isShowBorderBottom:o,dataKey:s,list:e,isComplexFirst:l})}))}else switch(n.code){case"single_choice":case"multiple_choice":case"judgment":c.push(Object.assign({height:t.choiceHeight+32,type:"objective",isComplex:a,isComplexFirst:l,isShowBorderBottom:o},n));break;case"completion":var d=$(r).find(".ac-sweep__composite-title")[0],h=[{content:d.innerHTML,height:$(d).outerHeight()}];h.forEach((function(t){t.type="completionItem",t.isComplex=a})),h.length&&"graffiti"===t.readType&&(h[0].height+=16),0===t.subjectiveReviewType&&c.push({type:"graffiti",height:30,scanName:n.scanName,score:n.score,isComplex:a,hideBottomBorder:!0,dataKey:n.dataKey,hidePadding:!0}),c.push({type:"completion",isComplex:a,isShowBorderBottom:o,lineWidth:n.lineWidth,dataKey:n.dataKey,height:$(d).outerHeight(),children:h});break;case"subjectivity":var f=$(r).find(".ac-essay__title")[0];0===t.subjectiveReviewType&&c.push({type:"graffiti",height:30,scanName:n.scanName,score:n.score,isComplex:a,hideBottomBorder:!0,dataKey:n.dataKey,hidePadding:!0}),c.push({type:"essay",dataKey:s,essay:Object.assign({rowCount:4,dataKey:n.dataKey,isComplex:a,titleChildren:t.splitDom(f)},n.essay)});break;case"complex":var p=$(r).find(".ac-sweep__complex-title")[0];if(p){var g=t.splitDom(p);g.length&&(g[0].type="complexTitleItem"),c.push({type:n.title?"complexTitle":null,children:g})}n.children&&n.children.forEach((function(t,i){var a=$(r).find("div[data-key=".concat(t.dataKey,"]"));e(t,a,!0,i===n.children.length-1,t.dataKey,0===i)}));break}},c=[],l=$(".ac-virtual"),u=l.find(".ac-basicInfo");if(u){var d=u.find(".ac-basicInfo__title"),h=u.find(".ac-attention"),f=u.find(".ac-basic-info__edu");c.push({type:"basicInfo",headHeight:null===d||void 0===d?void 0:d.outerHeight(),attentionHeight:null===h||void 0===h?void 0:h.outerHeight(),eduHeight:null===f||void 0===f?void 0:f.outerHeight()})}e(this.tree),this.$emit("change",c)}},render:function(){var t=arguments[0];return t("div",{class:"ac-virtual",attrs:{id:"math-virtual"},key:"virtual_".concat(this.subjectiveReviewType),style:{width:this.$store.getters["AC/layout"]>2?"690px":"978px"}},[this.getList(this.tree)])}},Ae=Ce,xe=Object(j["a"])(Ae,_e,be,!1,null,null,null),Te=xe.exports;Te.install=function(t){t.component(Te.name,Te)};var ke=Te,Ee=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-panel"},[t._l(t.formatPanelList,(function(n,i){return e("div",{key:i,staticClass:"ac-panel__item"},[e("div",{staticClass:"ac-piece__wrapper",attrs:{"data-page-type":n.flat().length?"":"restrict"}},[n.length?t._l(n,(function(n,r){return e("ac-sweep-piece",{key:r,attrs:{"data-piece":i*t.layout+r,"data-page":i,list:n,"page-index":i,"outlay-index":"".concat(i,"_").concat(r)}})})):e("div",{staticClass:"ac-piece"},[e("ac-restrict",{attrs:{height:1250}})],1),e("ac-mark-point",{attrs:{"page-index":i}}),t.isAddFooter?e("div",{staticClass:"ac-piece__footer",style:t.isEntranceExams&&{bottom:"42px",left:"140px"}},[t.isEntranceExams?e("span",[t._v(t._s(t.courseName))]):t._e(),t._v(" "+t._s("第".concat(i+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")]):t._e(),t.isAddFooter&&!t.isEntranceExams?e("div",{staticClass:"ac-piece__footer is-right"},[t._v(" "+t._s("第".concat(i+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")]):t._e()],2)])})),e("ac-editor",{attrs:{visible:t.visible,content:t.editing.content||""},on:{"update:visible":function(e){t.visible=e},submit:t.handleSubmit}})],2)},Se=[],Ie=n("2638"),Oe=n.n(Ie),Pe=function(){var t=this,e=t._self._c;return e("div",{class:["objective","is-border",t.isShowBorderBottom&&"is-border-bottom",t.isHideBorderTop&&"is-hide_Border-top",t.lastOneClass],style:{paddingBottom:"".concat(Math.max(t.additionalPadding,15),"px"),paddingTop:"".concat(1===t.objectiveAnswerType?15:0,"px")},attrs:{"data-key":Array.isArray(t.list)?t.list[0].list[0].dataKey:t.list.dataKey||t.list.list[0].dataKey,"data-objective_area":t.objectiveArea,"page-index":t.pageIndex,"data-scan-type":"absolute"}},[t.isEntranceExams?e("div",{class:["entrance-border",t.layout>2&&"three-column_border",t.isFirst&&"show-border_top",t.isShowTipWord&&"show-border_word-top",t.isLastOne&&"show-border_bottom"]}):t._e(),t.isEntranceExams?e("div",{class:["entrance-outline",t.layout>2&&"three-column_outline",t.isFirst&&"show-outline_top",t.isShowTipWord&&"show-outline_word-top",t.isLastOne&&"show-outline_bottom"]}):t._e(),Array.isArray(t.list)?t._l(t.list,(function(n,i){return e("div",{key:i,class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap"}},[n.list?t._l(n.list,(function(n,r){return e("div",{key:"".concat(i,"_").concat(r),staticClass:"ac-sweep__choice-each",style:{width:"".concat(n.columnWidth,"px"),alignItems:1===t.objectiveAnswerType?"center":"end"},attrs:{"data-key":n.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{key:n.title,staticClass:"choice-title",style:{width:"".concat(n.titleWidth,"px")},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,n.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(n.title,n.dataKey))+" ")]),1===t.objectiveAnswerType?e("div",{staticClass:"ac-sweep__choice-item"},t._l(n.choices,(function(i,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option",style:{color:t.isEntranceExams?"#EB617E":"#000000"}},[t._v(" "+t._s(t.formatIdentifier(n.code,i.identifier))+" ")])})),0):e("div",{staticClass:"ac-sweep__choice-line"})])})):[e("div",{staticClass:"ac-sweep__choice-each",style:{width:"".concat(n.columnWidth,"px"),alignItems:1===t.objectiveAnswerType?"center":"end"},attrs:{"data-key":n.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{key:n.title,staticClass:"choice-title",style:{width:"".concat(n.titleWidth,"px")},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,n.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(n.title,n.dataKey))+" ")]),1===t.objectiveAnswerType?e("div",{staticClass:"ac-sweep__choice-item"},t._l(n.choices,(function(i,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option",style:{color:t.isEntranceExams?"#EB617E":"#000000"}},[t._v(" "+t._s(t.formatIdentifier(n.code,i.identifier))+" ")])})),0):e("div",{staticClass:"ac-sweep__choice-line"})])]],2)})):[t.list.list?e("div",{class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap"}},t._l(t.list.list,(function(n,i){return e("div",{key:i,staticClass:"ac-sweep__choice-each",style:{width:"".concat(n.columnWidth,"px"),alignItems:1===t.objectiveAnswerType?"center":"end"},attrs:{"data-key":n.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{key:n.title,staticClass:"choice-title",style:{width:"".concat(n.titleWidth,"px")},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,n.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(n.title,n.dataKey))+" ")]),1===t.objectiveAnswerType?e("div",{staticClass:"ac-sweep__choice-item"},t._l(n.choices,(function(i,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option",style:{color:t.isEntranceExams?"#EB617E":"#000000"}},[t._v(" "+t._s(t.formatIdentifier(n.code,i.identifier))+" ")])})),0):e("div",{staticClass:"ac-sweep__choice-line"})])})),0):e("div",{class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap",paddingLeft:0===t.answerMode&&"40px"}},[e("div",{staticClass:"ac-sweep__choice-each",style:{width:"".concat(t.list.columnWidth,"px"),alignItems:1===t.objectiveAnswerType?"center":"end"},attrs:{"data-key":t.list.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{key:t.list.title,staticClass:"choice-title",style:{width:"".concat(t.list.titleWidth,"px")},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,t.list.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(t.list.title,t.list.dataKey))+" ")]),1===t.objectiveAnswerType?e("div",{staticClass:"ac-sweep__choice-item"},t._l(t.list.choices,(function(n,i){return e("span",{key:i,staticClass:"ac-sweep__choice-option",style:{color:t.isEntranceExams?"#EB617E":"#000000"}},[t._v(" "+t._s(t.formatIdentifier(t.list.code,n.identifier))+" ")])})),0):e("div",{staticClass:"ac-sweep__choice-line"})])])]],2)},Be=[],je={name:"AcObjective",components:{},inject:["paddingBlock","noPaperMode"],props:{list:{type:[Array,Object]},isHideBorderTop:{type:Boolean,default:!1},isShowBorderBottom:{type:Boolean,default:!1},pageIndex:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isShowTipWord:{type:Boolean,default:!1},isLastOne:{type:Boolean,default:!1},lastOneClass:{type:String,default:""}},computed:{objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]},judgmentMode:function(){return this.$store.getters["AC/judgmentMode"]},layout:function(){return this.$store.getters["AC/layout"]},answerMode:function(){return this.$store.getters["AC/answerCardMode"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},objectiveArea:function(){var t="";t=Array.isArray(this.list)?this.list[0].list[0].code:Array.isArray(this.list.list)?this.list.list[0].code:this.list.code;var e={single_choice:"单选题",multiple_choice:"多选题",judgment:"判断题"};return e[t]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]},choiceConfig:function(){return this.$store.state.AC.sweep.choice},plainChoiceConfig:function(){return this.$store.state.AC.sweep.plainChoice},choiceHeight:function(){return 1===this.objectiveAnswerType?this.choiceConfig.itemHeight:this.plainChoiceConfig.itemHeight}},watch:{lastOneClass:{immediate:!0,handler:function(t,e){var n=this;!t&&e&&(this.additionalPadding=15,this.lastAdditionPadding=0),t&&this.$nextTick((function(){return n.getDistanceToParentBottom()}))}}},mounted:function(){},data:function(){return{additionalPadding:void 0,lastAdditionPadding:0}},methods:{formatIdentifier:function(t,e){return"judgment"!==t?e:this.noPaperMode?this.judgmentMode?e:"✓"===e?"T":"F":this.judgmentMode?"T"===e?"✓":"×":e},getBeforeChinese:function(t,e){var n=/[\u4e00-\u9fa5]/,i=(this.editTitleList.find((function(t){return t.dataKey===e}))||{}).title||t;if(i){var r=i.search(n);if(-1===r)return i;var a=i.slice(0,r);return a.endsWith(".")?a.slice(0,-1):a}},isHasBrackets:function(t){var e=this.getBeforeChinese(t),n=/[\u4e00-\u9fa5()()]/;return n.test(e)},convertWidth:function(t){var e=this.getBeforeChinese(t).length;return e>6?56:6===e?48:e<6?40:void 0},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:"".concat(e)})},getDistanceToParentBottom:function(){var t=document.getElementsByClassName(this.lastOneClass)[0],e=Object(it["c"])(t)+this.lastAdditionPadding;this.lastAdditionPadding=Math.max(e,0),this.additionalPadding=e>0?e:void 0}}},Le=je,Re=Object(j["a"])(Le,Pe,Be,!1,null,null,null),Me=Re.exports;Me.install=function(t){t.component(Me.name,Me)};var $e,Ne,ze=Me,De={name:"AcSweepPiece",components:{AcEssay:x["default"],AcBasicInfo:Z["default"],AcSweepCompletion:pe,AcObjective:ze,AcEditor:Lt["default"],AcRestrict:St,AcGraffiti:Y["default"]},props:{list:{type:Array,default:function(){return[]}},pageIndex:{type:Number,default:0},outlayIndex:{type:String,default:""}},computed:{pieceHeight:function(){return"1386px"},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},sweepList:function(){return this.transformTree(this.list)},layout:function(){return this.$store.getters["AC/layout"]},acMode:function(){return this.$store.getters["AC/answerCardMode"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]}},data:function(){return{editorVisible:!1,editContent:"",completionIsLastOne:!1}},methods:{handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e,height:t.target.offsetHeight}),this.$store.dispatch("AC/paper/resetPanel")},editTitle:function(t){var e=this;this.editContent=(this.editEssayList.find((function(t){return t.dataKey===e.dataKey}))||{}).title||t,this.editorVisible=!0},getPlainTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.editorVisible=!1},transformTree:function(t){var e=this,n=new Set(["objective"]);return t.reduce((function(i,r,a){r.children&&(r.children=e.transformTree(r.children));var o=i[i.length-1];return o&&n.has(t[a-1].type)&&n.has(r.type)&&!r.isComplexFirst?(Array.isArray(o)?o.push(r):i[i.length-1]=[o,r],i):(i.push(r),i)}),[])},getContent:function(t,e){var n=this,i=this.$createElement,r=null;switch(!0){case"basicInfo"===t.type:r=i("ac-basic-info",{props:m({},t)});break;case"complexTitle"===t.type:r=i("div",{class:"ac-sweep__complex",style:{borderBottom:this.sweepList.length-1===e&&"1px solid #000"}},[i("p",{class:"ac-sweep__complex-title",on:{click:function(){return n.editTitle(t.content[0])}},domProps:{innerHTML:this.getLiContent?this.getLiContent:t.content[0]}})]);break;case"sectionHead"===t.type:r=i("div",{class:"ac-sweep__head-wrapper"},[i("div",{class:"ac-sweep__virtual-head",style:{marginTop:"".concat(t.height>=51?0===e?0:5:t.height-46,"px")},attrs:{contenteditable:!0,dataKey:t.dataKey},domProps:{innerHTML:t.content},on:{blur:function(e){return n.handleBlur(e,t.dataKey)}}}),i("div",{class:"".concat(this.isEntranceExams&&"entrance-border"," ").concat(this.isEntranceExams&&this.layout>2&&"three-column_border"," ").concat(this.isEntranceExams&&0===e&&"show-border_top"," ").concat(this.isEntranceExams&&this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type&&"show-border_word-top")}),i("div",{class:"".concat(this.isEntranceExams&&"entrance-outline"," ").concat(this.isEntranceExams&&this.layout>2&&"three-column_outline"," ").concat(this.isEntranceExams&&0===e&&"show-outline_top"," ").concat(this.isEntranceExams&&this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type&&"show-outline_word-top")})]);break;case"graffiti"===t.type:r=i("ac-graffiti",{props:m({},Object.assign(t,{hideTopBorder:this.sweepList[e-1]&&"essay"===this.sweepList[e-1].type}))});break;case"completion"===t.type:r=i("ac-sweep-completion",{props:m({},Object.assign(t,{ctnType:"piece",dataKey:t.dataKey,title:t.content[0],isHideBorderTop:0!==e&&this.sweepList[e-1]&&["completion","complexTitle"].includes(this.sweepList[e-1].type)&&!(t.isComplex&&"0"===t.dataKey[t.dataKey.length-1]),isPaddingTop:!0,pageIndex:this.pageIndex+1,isShowBorderBottom:e===this.sweepList.length-1||this.sweepList[e+1]&&["sectionHead","restrict"].includes(this.sweepList[e+1].type),isFirst:0===e,isShowTipWord:this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type,isLastOne:e===this.sweepList.length-1,lastOneClass:e===this.sweepList.length-1?"piece-composite".concat(Date.now().toString(36),"_").concat(this.outlayIndex):null}))});break;case"objective"===t.type||Array.isArray(t):r=i("ac-objective",{props:m({},{list:t,isHideBorderTop:0!==e&&this.sweepList[e-1]&&"essay"===this.sweepList[e-1].type,pageIndex:this.pageIndex+1,isShowBorderBottom:e===this.sweepList.length-1||!!this.sweepList[e+1]&&["sectionHead","restrict"].includes(this.sweepList[e+1].type),isFirst:0===e,isShowTipWord:this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type,isLastOne:e===this.sweepList.length-1,lastOneClass:e===this.sweepList.length-1?"piece-objective".concat(Date.now().toString(36),"_").concat(this.outlayIndex):null})});break;case"essay"===t.type:r=i("ac-essay",{key:"essay_".concat(e),attrs:{"data-key":t.essayConfig.dataKey||"","page-index":this.pageIndex+1,"row-height":34,"li-editable":!0},props:m({},m(m({},t.essayConfig),{},{hiddenBorderTop:0!==e&&"complexTitle"===this.sweepList[e-1].type,hiddenBorderBottom:e!==this.sweepList.length-1&&this.sweepList[e+1]&&("essay"===this.sweepList[e+1].type||"completion"===this.sweepList[e+1].type||"complexTitle"===this.sweepList[e+1].type),column:3===this.layout?15:20,isFirst:0===e,isShowTipWord:this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type,isLastOne:0===this.acMode&&e===this.sweepList.length-1,lastOneClass:0===this.acMode&&e===this.sweepList.length-1?"piece-essay".concat(Date.now().toString(36),"_").concat(this.outlayIndex):null}))});break;case"restrict"===t.type:r=i("ac-restrict",{props:m({},{height:t.height,marginTop:20,isLastOne:e===this.sweepList.length-1,isFirst:0===e,isShowTipWord:this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type,lastOneClass:0===this.acMode&&e===this.sweepList.length-1?"piece-restrict".concat(Date.now().toString(36),"_").concat(this.outlayIndex):null})});break}return r}},render:function(){var t=this,e=arguments[0];return e("div",{class:"ac-piece",style:{display:"flex",justifyContent:"center",alignItems:"center",height:this.pieceHeight}},[e("div",{class:this.$store.getters["AC/layout"]>2?"ac-module__ThreeColumn":"ac-module__column",style:"height: calc(100% - 20px)"},[this.sweepList.length?this.sweepList.map((function(e,n){return t.getContent(e,n)})):e("ac-restrict",{props:m({},{height:1230})}),e("ac-editor",Oe()([{attrs:{visible:this.editorVisible}},{on:{"update:visible":function(e){return t.editorVisible=e}}},{attrs:{content:this.editContent,title:"编辑答题区",editorId:"essay-editor_".concat(Date.now().toString(36))},on:{submit:this.handleSubmit}}]))])])}},Ue=De,He=Object(j["a"])(Ue,$e,Ne,!1,null,null,null),Fe=He.exports;Fe.install=function(t){t.component(Fe.name,Fe)};var Ke=Fe,We={name:"AcSweepPanel",components:{AcSweepPiece:Ke,AcEditor:Lt["default"],AcMarkPoint:Rt["default"],AcRestrict:St},inject:["courseName"],props:{domList:{type:Array,default:function(){return[]}}},computed:{formatPanelList:function(){var t=this,e=[];if(this.panelList.length)if(this.panelList.forEach((function(n,i){i%t.layout===0?e.push([n]):e[e.length-1].push(n)})),1===this.layout&&e.length%2)e.push([]);else if(2===this.layout)e[e.length-1].length%2&&e[e.length-1].push([]),(1===e.length||e.length%2)&&e.push(u(Array(2).fill([])));else if(3===this.layout){var n;3!==e[e.length-1].length&&(n=e[e.length-1]).push.apply(n,u(Array(3-e[e.length-1].length).fill([]))),(1===e.length||e.length%2)&&e.push(u(Array(3).fill([])))}return e},pieceHeight:function(){return 1245},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},showAttention:function(){return this.$store.getters["AC/showAttention"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},readType:function(){return this.$store.getters["AC/readType"]},scansionAttention:function(){return this.$store.getters["AC/scansionAttention"]},stuInfoLength:function(){return this.$store.getters["AC/studentInfo"].length},eduIdLength:function(){return this.$store.getters["AC/educationIdValue"]},registrationType:function(){return this.$store.getters["AC/registrationNumberType"]},layout:function(){return this.$store.getters["AC/layout"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},isAddFooter:function(){return this.$store.getters["AC/addFooter"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]}},watch:{domList:function(t){t.length&&this.getPanelList()}},mounted:function(){},data:function(){return{panelList:[],visible:!1,editing:{},headHeight:0,attentionHeight:0,eduHeight:0}},methods:{getRowCount:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.row?n.row:e},getBgType:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.bgType?n.bgType:e},handleSubmit:function(t){var e=this.editing,n=e.dataKey,i=e.hasChoice,r={dataKey:n};if(i){var a=t.match(/<(p.*?\/p|figure.*?\/figure)>/g),o=/>[A-O]{1}[.\s.、]{0,1}/,s="",c=[],l=null;a.forEach((function(t){var e=t.match(o);if(e){var n=t.replace(o,">");l={identifier:e[0][1],content:"<p></p>"===n?"":n},c.push(l)}else l?l.content+=t:s+=t})),Object.assign(r,{title:s,choices:c})}else r.title=t;this.$store.dispatch("AC/paper/setEditTitle",r)},getBasicInfo:function(t){var e=null;return(this.layout>1?t%(2*this.layout)===0:this.patchwork?(t+1)%4===1:t%2===0)&&(e={hideAttention:!this.showAttention||0!==t,height:this.headHeight+(this.isEntranceExams?this.layout<3?this.attentionHeight:0:this.showAttention&&0===t?this.attentionHeight:0)+this.eduHeight+(this.isEntranceExams?50:0)}),e},getPanelList:function(){var t=this,e=[],n=0;e[n]=[];var i=this.pieceHeight,r=e[n],a=[],o=function(){var e=t.getBasicInfo(n);e&&(i-=e.height,r.push(Object.assign({type:"basicInfo"},e)))},s=function(){var a=e[n];if(n++,e[n]=[],i=t.pieceHeight,r=e[n],o(),"graffiti"===a[a.length-1].type){var s=a[a.length-1];a.pop(),r.push(s),i-=30}if("sectionHead"===a[a.length-1].type){var c=a[a.length-1];c.height>46&&(c.height-=5),c.isMarginTop=!1,a.pop(),r.length?"basicInfo"===r[0].type?r.splice(1,0,c):r.unshift(c):r.push(c),i-=c.height}},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:34,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=i-(n?62:30);return Math.floor((r+e)/(t+e))},l=function(t,e){var n="",i="",a=t.map((function(t){var e="";switch(t.type){case"completion":n="completion",i=t.height+1,e="".concat(t.children.join(""));break;case"complexTitle":n="complexTitle",i=t.height,e="".concat(t.children.join(""));break}return e}));t.length=0,r.push({height:i,type:n,isComplex:e.isComplex,isShowBorderBottom:e.isShowBorderBottom,lineWidth:e.lineWidth,dataKey:e.dataKey,content:a})},u=function(e,n,a){e.forEach((function(e){if("completionItem"===e.type&&(e.height+=16),i<e.height&&(n.length&&l(n,a),s()),i>=e.height){switch("graffiti"===t.readType||r.length||"completion"!==a.type||(e.height+=16),e.type){case"completionItem":n.length&&"completion"===n[n.length-1].type?n[n.length-1].children.push(e.content):n.push({type:"completion",height:e.height,children:[e.content]});break;case"complexTitleItem":n.length&&"complexTitle"===n[n.length-1].type?n[n.length-1].children.push(e.content):n.push({type:"complexTitle",height:e.height,children:[e.content]});break}i-=e.height}}))},d=function(e,n){var a=e.rowHeight,o=void 0===a?34:a,l=e.rowGap,u=void 0===l?15:l,d=e.titleChildren,h=t.getRowCount(n,e.rowCount),f=t.getBgType(n,e.bgType);i<30&&s();var p={type:"essay"};if(d){var g="";d.forEach((function(t,n){i>=t.height+(n?0:32)?(g+=t.content,i-=t.height+(n?0:32)):(g&&r.push({type:"essay",essayConfig:Object.assign({},e,{row:0,title:g,rowCount:h,bgType:f})}),s(),g=t.content,i-=t.height+32)})),g?Object.assign(p,{essayConfig:Object.assign({},e,{row:0,title:g,rowCount:h})}):p=null}else p=null;if(h){var y=h;while(y){var m=c(o,u,!p);m<1?(p&&(r.push(p),p=null),s()):m<y?(r.push({type:"essay",essayConfig:Object.assign({},e,{startRow:h-y,row:m,rowCount:h,bgType:f,title:p&&p.essayConfig?p.essayConfig.title:""})}),p&&(p=null),s(),y-=m):(r.push({type:"essay",essayConfig:Object.assign({},e,{startRow:h-y,row:y,rowCount:h,bgType:f,title:p&&p.essayConfig?p.essayConfig.title:""})}),i-=y*(o+u)-u+(p?30:62),y=0,p&&(p=null))}}else p?r.push(p):(r.push({type:"essay",essayConfig:Object.assign({},e,{rowCount:0,row:0,bgType:f})}),i-=30)},h=JSON.parse(JSON.stringify(this.domList));h.forEach((function(e,n){"essay"===e.type?d(e.essay,e.dataKey):"complexTitle"===e.type||"completion"===e.type?(u(e.children,a,e),a.length&&l(a,e)):"basicInfo"===e.type?(t.headHeight=e.headHeight||0,t.attentionHeight=t.scansionAttention.height||e.attentionHeight||0,t.isEntranceExams?t.eduHeight=e.eduHeight:t.registrationType?1===t.objectiveAnswerType?t.layout<3?t.eduHeight=t.eduIdLength>10?48*Math.ceil(t.stuInfoLength/3)+30+310:310:t.eduHeight=48*Math.ceil(t.stuInfoLength/3)+14+310:t.layout<3?t.eduHeight=t.eduIdLength>10?64*Math.ceil(t.stuInfoLength/3)+30:94:t.eduHeight=64*Math.ceil(t.stuInfoLength/3)+14:t.eduHeight=t.layout<3?310:64*Math.ceil(t.stuInfoLength/3)+310,o()):(i<e.height&&s(),i>=e.height&&("sectionHead"===e.type&&"basicInfo"!==h[n-1].type&&(e.height+=5,e.isMarginTop=!0),r.push(e),i-=e.height))})),i>54&&e[e.length-1].push({type:"restrict",height:i-25}),e.length>16&&1===this.layout&&(this.$store.dispatch("AC/answerConfig/setAnswerCardLayout",2),this.$store.dispatch("AC/answerConfig/setDisableOneLayout",!0)),this.panelList=e}}},Ve=We,Ye=Object(j["a"])(Ve,Ee,Se,!1,null,null,null),Ze=Ye.exports;Ze.install=function(t){t.component(Ze.name,Ze)};var Ge=Ze,qe={name:"AcSweep",components:{AcSweepVirtual:ke,AcSweepPanel:Ge},inject:["uploadOss","paperTitle","noPaperMode"],data:function(){return{domList:[],sweepPaperTree:[],isFirstRender:!0,questionRectList:[],questionPageMap:{}}},computed:{educationIdValue:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},candidateNumColor:function(){return this.$store.getters["AC/candidateNumColor"]},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},UploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(C["a"])(this,e),this.file=t}return Object(A["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,i){t(e.file,n)}))}}]),e}()},patchwork:function(){return this.$store.getters["AC/patchwork"]},downloadType:function(){return this.$store.getters["AC/downloadType"]},downloadSize:function(){return this.$store.getters["AC/downloadSize"]},paperTree:function(){return this.$store.getters["AC/sweepPaperTree"]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]}},watch:{paperTree:function(){this.init()}},created:function(){this.init()},methods:{init:function(){this.sweepPaperTree=this.transformTree(this.createDataKey(this.$store.getters["AC/sweepPaperTree"]))},createDataKey:function(t){var e=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.forEach((function(e,i){var r="";r=e&&e.idProp?n?"".concat(n,"_").concat(e.idProp):"".concat(e.idProp):n?"".concat(n,"_").concat(i):"".concat(i),e.code&&(e.dataKey=r),e.children&&t(e.children,r)}))};return e(t),t},transformTree:function(t){var e=this,n=new Set(["single_choice","multiple_choice","judgment"]);return t.reduce((function(i,r,a){r.children&&(r.children=e.transformTree(r.children));var o=i[i.length-1];return o&&n.has(t[a-1].code)&&n.has(r.code)?(Array.isArray(o)?o.push(r):i[i.length-1]=[o,r],i):(i.push(m({},r||null)),i)}),[])},setDomList:function(t){this.domList=t,this.isFirstRender=!1},buildFailed:function(){this.isFirstRender&&this.$emit("build-failed")},getPageImage:function(){return new Promise((function(t,e){var n=$(".ac-panel .ac-piece__wrapper");Object(it["d"])(n).then((function(e){return t(e)})).catch((function(){return t([])}))}))},download:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u,d,h,f,p,g,y;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.questionRectList=[],t.questionPageMap={},!($(".ac-piece__wrapper").length>16)){e.next=5;break}return t.$message({showClose:!0,message:"涂点形式答题卡不能超过16页,请更换调整作答区域或更换试卷",type:"error"}),e.abrupt("return");case 5:return e.next=7,t.getZipContent();case 7:if(n=e.sent,i=n||"",r={intrinsicWidth:$(".ac-piece__wrapper")[0].clientWidth,intrinsicHeight:$(".ac-piece__wrapper")[0].clientHeight,questionRects:t.questionRectList},a=t.getPageOptions(),o=a.crossPageMap,s=a.pageSize,"PDF"!==t.downloadType){e.next=29;break}return e.next=14,t.getPageImage();case 14:return c=e.sent,l=new Ht.a(1===t.layout?"p":"l","pt",1===t.layout?"a4":"a3"),c.forEach((function(e,n){var i=1===t.layout?595.28:1190.55,r=841.89;l.addImage(e,"JPEG",0,0,i,r),n!==c.length-1&&l.addPage()})),u="".concat(t.$store.getters["AC/title"].replace(/\n/g,""),".pdf"),l.save(u),d=l.output("blob"),d.name=u,h=new t.UploadAdapter(d),e.next=24,h.upload();case 24:return f=e.sent,p="https://"+f.url,e.abrupt("return",{scanZipUrl:i,scanPdfUrl:p,rectInfo:r,subjectiveReviewType:t.subjectiveReviewType,crossPageMap:o,pageSize:s});case 29:if("PNG"!==t.downloadType){e.next=35;break}return e.next=32,t.getPngZip();case 32:return g=e.sent,y=g||"",e.abrupt("return",{scanZipUrl:i,scanPdfUrl:y,rectInfo:r,subjectiveReviewType:t.subjectiveReviewType,crossPageMap:o,pageSize:s});case 35:case"end":return e.stop()}}),e)})))()},getPageOptions:function(){var t=this,e={},n=1;Object.keys(this.questionPageMap).forEach((function(i){var r=Array.from(t.questionPageMap[i]).sort();n=Math.max(n,r[r.length-1]),r.length>1&&r[0]%2===0&&(e[i]=r.join())}));var i=1===n?1:2*Math.ceil(n/2);return{crossPageMap:JSON.stringify(e),pageSize:i}},getZipContent:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u,d,h,f;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),n=n.replace(/[/,\\]/g,""),i=$(".ac-piece__wrapper"),r=1===t.registrationNumberType,a=new Kt.a,o="".concat(n,"模板_").concat(n,"_").concat(t.downloadSize,"_").concat("#000000"===t.candidateNumColor?"黑白":"彩色","_").concat(i.length,"_").concat(r?"涂点":"条码","_").concat(r?"10":"-1","_").concat(r?t.educationIdValue:"-1","_涂点_涂点.xml"),a.file(o,t.getXMLData()),s=[],Array.from(i).forEach((function(t,e){s.push({dom:t,name:"".concat(e+1,".png")}),e%2||(s.push({dom:$(t).find(".mark-point__top-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoshang.jpg")}),s.push({dom:$(t).find(".mark-point__top-right .mark-point__box")[0],name:"第".concat(e+1,"页_youshang.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoxia.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-right .mark-point__box")[0],name:"第".concat(e+1,"页_youxia.jpg")}))})),e.next=11,Object(it["d"])(s.map((function(t){return t.dom})),1);case 11:return c=e.sent,c.forEach((function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),o=r.length,c=new Uint8Array(o);while(o--)c[o]=r.charCodeAt(o);a.file(s[e].name,new Blob([c],{type:i}),{base64:!0})})),e.next=15,a.generateAsync({type:"blob"});case 15:return l=e.sent,u="".concat(t.noPaperMode?t.$store.getters["AC/title"].replace(/\n/g,""):n,"模板.zip"),d=new File([l],u,{type:"zip"}),Vt()(l,u),h=new t.UploadAdapter(d),e.next=22,h.upload();case 22:return f=e.sent,e.abrupt("return","https://"+f.url);case 24:case"end":return e.stop()}}),e)})))()},getPngZip:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u,d;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),n=n.replace(/[/,\\]/g,""),i=$(".ac-piece__wrapper"),r=new Kt.a,a=[],Array.from(i).forEach((function(t,e){a.push({dom:t,name:"".concat(e+1,".png")})})),e.next=8,Object(it["d"])(a.map((function(t){return t.dom})));case 8:return o=e.sent,o.forEach((function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],o=atob(n[1]),s=o.length,c=new Uint8Array(s);while(s--)c[s]=o.charCodeAt(s);r.file(a[e].name,new Blob([c],{type:i}),{base64:!0})})),e.next=12,r.generateAsync({type:"blob"});case 12:return s=e.sent,c="".concat(t.noPaperMode?t.$store.getters["AC/title"].replace(/\n/g,""):n,".zip"),l=new File([s],c,{type:"zip"}),Vt()(s,c),u=new t.UploadAdapter(l),e.next=19,u.upload();case 19:return d=e.sent,e.abrupt("return","https://"+d.url);case 21:case"end":return e.stop()}}),e)})))()},getXMLData:function(){var t=this,e=[],n=$(".ac-piece__wrapper"),i=function(n,i){var r=$(n).offset(),a=r.left,o=r.top,s=$(n).find(".mark-point__top-left")[0],c=$(s).offset(),l=c.left,u=c.top,d=$(n).find("[data-export_name]");Array.from(d).forEach((function(n){var r=$(n),s="absolute"===r.data("scan-type"),c={Type:"AnswerArea",Name:r.data("export_name"),Page:i,X:Math.floor(r.offset().left-(s?a:l)),Y:Math.floor(r.offset().top-(s?o:u)),Width:r.outerWidth(),Height:r.outerHeight()};String(c.X).indexOf(".")>-1&&(c.X=Math.floor(c.X),c.Width+=1),String(c.Y).indexOf(".")>-1&&(c.Y=Math.floor(c.Y),c.Height+=1),c.Width=Math.ceil(c.Width),c.Height=Math.ceil(c.Height),"考号"===r.data("export_name")&&(c.Rows=10,c.Columns=t.educationIdValue),e.push(c)}))},r=function(t,n){var i=$(t).find(".mark-point__top-left")[0],r=$(i).offset(),a=r.left,o=r.top,s=$(t).find("[data-scan-type=review]");Array.from(s).forEach((function(t){var i=$(t),r={Type:"ReviewArea",Name:i.data("scan-name"),Page:n,X:i.offset().left-a,Y:i.offset().top-o,Width:i.outerWidth(),Height:i.outerHeight(),MaxScore:i.data("scan-score")};String(r.X).indexOf(".")>-1&&(r.X=Math.floor(r.X),r.Width+=1),String(r.Y).indexOf(".")>-1&&(r.Y=Math.floor(r.Y),r.Height+=1),r.Width=Math.ceil(r.Width),r.Height=Math.ceil(r.Height),e.push(r)}))},a=[],o=[],s=n[0],c=$(s).find(0===this.objectiveAnswerType?".ac-info__area":".ac-basic-info__edu")[0];o.push({rectType:"basicInfo",pageOrder:1,x:$(c).offset().left-$(s).offset().left,y:$(c).offset().top-$(s).offset().top,width:$(c).outerWidth(),height:$(c).outerHeight()});var l=function(e,i){var r=n.find(".ac-sweep__choice-each[data-key=".concat(e.dataKey,"]"))[0],s=r.getAttribute("page-index");t.questionPageMap[e.questionItemId]=new Set([Number(s)]);var c=$(i[s-1]).find(".mark-point__top-left")[0],l=$(c).offset(),u=l.left,d=l.top,h={Type:"AnswerArea",Name:e.scanName,Page:"第".concat(s,"页")};if(1===t.objectiveAnswerType){var f=$(r).find(".ac-sweep__choice-item")[0];1===t.subjectiveReviewType?Object.assign(h,{X:Math.floor($(f).offset().left-u),Y:Math.floor($(f).offset().top-d),Width:Math.ceil($(f).outerWidth()),Height:Math.ceil($(f).outerHeight()),Rows:1,Columns:e.choices.length,Horizon:0}):Object.assign(h,{X:Math.floor($(f).offset().left-u-1),Y:Math.floor($(f).offset().top-d-1),Width:Math.ceil($(f).outerWidth()+4),Height:Math.ceil($(f).outerHeight()+4),Rows:1,Columns:e.choices.length,Horizon:0}),a.push(h)}else{var p=$(r).find(".ac-sweep__choice-line")[0];Object.assign(h,{X:Math.floor($(p).offset().left-u),Y:Math.floor($(p).offset().top-d+5),Width:$(p).outerWidth(),Height:$(p).outerHeight()}),a.push(h)}var g=$(i[s-1]).offset(),y=g.left,m=g.top;o.push({questionItemId:e.questionItemId,pageOrder:s,x:$(r).offset().left-y,y:$(r).offset().top-m,width:$(r).outerWidth(),height:$(r).outerHeight()})},d=function e(i){var r=$(".ac-piece__wrapper");i.forEach((function(i){if(i.children)e(i.children);else if("completion"===i.code){var s=n.find(".ac-sweep__composite[data-key=".concat(i.dataKey,"]"));t.questionPageMap[i.questionItemId]=new Set(Array.from(s).map((function(t){return Number(t.getAttribute("page-index"))})));for(var c=0;c<s.length;c++){var u=s[c].getAttribute("page-index"),d=$(r[u-1]).find(".mark-point__top-left")[0],h=$(d).offset(),f=h.left,p=h.top,g={Type:"AnswerArea",Name:"".concat(i.scanName).concat(c>0?"_"+c:""),Page:"第".concat(u,"页"),X:Math.floor($(s[c]).offset().left-f),Y:Math.floor($(s[c]).offset().top-p),Width:Math.ceil($(s[c]).outerWidth()),Height:Math.ceil($(s[c]).outerHeight()),SuffixType:c>0?1:0};a.push(g);var y=$(r[u-1]).offset(),m=y.left,v=y.top;if(o.push({questionItemId:i.questionItemId,pageOrder:u,x:$(s[c]).offset().left-m,y:$(s[c]).offset().top-v,width:g.Width,height:g.Height}),1===t.subjectiveReviewType){var _=$(s[c]).find(".score-box")[0];_&&a.push({Type:"ScoreArea",Name:"".concat(i.scanName).concat(c>0?"_"+c:""),Page:"第".concat(u,"页"),X:Math.floor($(_).offset().left-f),Y:Math.floor($(_).offset().top-p),Width:Math.ceil($(_).outerWidth()),Height:Math.ceil($(_).outerHeight()),MaxScore:i.score,SuffixType:0})}}}else if(Array.isArray(i)||"single_choice"===i.code||"multiple_choice"===i.code||"judgment"===i.code)Array.isArray(i)?i.forEach((function(t){l(t,r)})):l(i,r);else if("subjectivity"===i.code){var b=n.find(".ac-essay__wrapper[data-key=".concat(i.dataKey,"]"));t.questionPageMap[i.questionItemId]=new Set(Array.from(b).map((function(t){return Number(t.getAttribute("page-index"))})));for(var w=0;w<b.length;w++){var C=b[w].getAttribute("page-index"),A=$(r[C-1]).find(".mark-point__top-left")[0],x=$(A).offset(),T=x.left,k=x.top,E={Type:"AnswerArea",Name:"".concat(i.scanName).concat(w>0?"_"+w:""),Page:"第".concat(C,"页"),X:Math.floor($(b[w]).offset().left-T),Y:Math.floor($(b[w]).offset().top-k),Width:Math.ceil($(b[w]).outerWidth()),Height:Math.ceil($(b[w]).outerHeight()),SuffixType:w>0?1:0};a.push(E);var S=$(r[C-1]).offset(),I=S.left,O=S.top;if(o.push({questionItemId:i.questionItemId,pageOrder:C,x:$(b[w]).offset().left-I,y:$(b[w]).offset().top-O,width:E.Width,height:E.Height}),1===t.subjectiveReviewType){var P=$(b[w]).find(".score-box")[0];P&&a.push({Type:"ScoreArea",Name:"".concat(i.scanName).concat(w>0?"_"+w:""),Page:"第".concat(C,"页"),X:Math.floor($(P).offset().left-T),Y:Math.floor($(P).offset().top-k),Width:Math.ceil($(P).outerWidth()),Height:Math.ceil($(P).outerHeight()),MaxScore:i.score,SuffixType:0})}}}}))};d(this.sweepPaperTree),this.questionRectList=o;var h=function(t){var e={};return t.forEach((function(t){var n=t.Page;e[n]||(e[n]=[]),e[n].push(t)})),Object.values(e)},f=h(a);Array.from(n).forEach((function(n,a){"restrict"!==$(n).data("piece-type")&&(i(n,"第".concat(a+1,"页")),0===t.subjectiveReviewType&&r(n,"第".concat(a+1,"页")),Array.isArray(f[a])?e.push.apply(e,u(f[a])):e.push(f[a]))}));var p='<?xml version="1.0" encoding="utf-8"?>';return p+='<answerSheet isNew="true" isYcProject="true" layout="'.concat(this.layout,'" isScrabbled="').concat(this.patchwork,'" readType="1" objectiveAnswerType="').concat(this.objectiveAnswerType,'">'),p+=this.getXMLStringFromArray(e),p+="</answerSheet>",p},getXMLStringFromArray:function(t){var e=function(t){return Object.keys(t).map((function(e){return"Type"!==e?"<".concat(e,">").concat(t[e],"</").concat(e,">"):""})).join("")};return t.map((function(t){return t?"<".concat(t.Type,">").concat(e(t),"</").concat(t.Type,">"):""})).join("")}}},Qe=qe,Xe=Object(j["a"])(Qe,Qt,Xt,!1,null,null,null),Je=Xe.exports,tn={name:"AcCard",components:{AcAnswerConfig:d["default"],AcLattice:qt,AcSweep:Je},props:{title:{type:String,default:""},paperTitle:{type:String,default:""},tree:{type:Array,default:function(){return[]}},mode:{type:Number,default:0},config:{type:Object,default:function(){return null}},uploadOss:{type:Function,default:function(){}},ClassicEditor:{type:Function,default:function(){}},showConfig:{type:Boolean,default:!0},showStudentInfo:{type:Boolean,default:!0},saveInfo:{type:Object,default:null},paddingBlock:{type:[Number,Array],default:68},courseName:{type:String,default:""},noPaperMode:{type:String,default:""},noPaperModePreview:{type:String,default:""},editType:{type:String,default:"editor"},essayType:{type:Array,default:function(){return[0,1,2]}},essaySize:{type:Object,default:null},needEssayBg:{type:Boolean,default:!0},needRestrict:{type:Boolean,default:!0},saveWhileDownload:{type:Boolean,default:!0}},provide:function(){return{uploadOss:this.uploadOss,ClassicEditor:this.ClassicEditor,showStudentInfo:this.showStudentInfo,paperTitle:this.title||this.paperTitle,paddingBlock:this.paddingBlock,courseName:this.courseName,noPaperMode:this.noPaperMode,noPaperModePreview:this.noPaperModePreview,moveCallback:this.moveCallback,deleteCallback:this.deleteCallback,editType:this.editType,essayType:this.essayType,editCallback:this.editCallback,needEssayBg:this.needEssayBg,needRestrict:this.needRestrict}},data:function(){return{paperTree:[],initWindowNum:0}},computed:{layout:function(){return this.$store.getters["AC/layout"]},acMode:function(){return this.$store.getters["AC/answerCardMode"]}},watch:{tree:function(){this.initTree()},saveInfo:function(){this.handleSaveInfo()},title:function(){this.$store.dispatch("AC/paper/setTitle",this.title)}},beforeCreate:function(){if(!Promise.allSettled){var t=function(t){return{status:"rejected",reason:t}},e=function(t){return{status:"fulfilled",value:t}};Promise.allSettled=function(n){return Promise.all(n.map((function(n){return Promise.resolve(n).then(e,t)})))}}},created:function(){var t=this;this.$store.dispatch("AC/essay/resetEssay"),this.init(),this.$nextTick((function(){t.initWindowNum=window.devicePixelRatio,window.addEventListener("resize",t.resizeFun)}))},beforeDestroy:function(){window.removeEventListener("resize",this.resizeFun)},methods:{resizeFun:function(){var t=window.devicePixelRatio;t!==this.initWindowNum&&this.save(!0)},init:function(){this.essaySize&&this.$store.dispatch("AC/essay/setRowSize",this.essaySize),this.$store.dispatch("AC/paper/setTitle",this.title),this.$store.dispatch("AC/answerConfig/setAnswerCardMode",this.mode),this.handleSaveInfo(),this.initTree()},handleSaveInfo:function(){var t=this;if(this.saveInfo){var e={},n={},i={};Object.keys(this.saveInfo).forEach((function(r){switch(r){case"title":case"editTitleList":case"candidateNumColor":case"scansionAttention":case"latticeAttention":e[r]=t.saveInfo[r];break;case"editEssayList":i[r]=t.saveInfo[r];break;case"answerCardMode":case"layout":case"showAttention":case"studentInfo":case"educationIdValue":case"registrationNumberType":case"readType":case"patchwork":case"showQuestion":case"sizeType":case"showEducationId":case"objectiveOrder":case"judgmentMode":case"addFooter":case"entranceExams":case"objectiveAnswerType":case"subjectiveReviewType":n[r]=t.saveInfo[r];break}})),this.$store.dispatch("AC/paper/setSaveState",e),this.$store.dispatch("AC/essay/setSaveState",i),this.$store.dispatch("AC/answerConfig/setSaveState",n)}},initTree:function(){var t=this,e=this.$store.getters["AC/editTitleList"],n=this.$store.getters["AC/editEssayList"].filter((function(t){return!!t.title}));Object(it["f"])(this.tree.concat([].concat(u(e),u(n)))).then((function(){0===t.mode&&t.extendComplex(),t.paperTree=t.tree,t.$store.dispatch(0===t.mode?"AC/paper/setSweepPaperTree":"AC/paper/setPaperTree",t.paperTree)}))},extendComplex:function(){var t=[];this.tree.forEach((function(e,n){t=[],[],e.children.forEach((function(e,n){var i;"complex"===e.code?(e.title=null,e.children.every((function(t){return["single_choice","multiple_choice","judgment"].includes(t.code)}))?(i=t).push.apply(i,u(e.children)):t.push(e)):(e.code,t.push(e))})),e.children=t}))},beforeDownload:function(){this.$emit("before-download")},download:function(){var t=this;this.saveWhileDownload&&this.save(),1===this.acMode?this.$refs.latticeCard&&this.$refs.latticeCard.download().then((function(e){t.$emit("download",e)})):0===this.acMode&&this.$refs.sweepCard&&this.$refs.sweepCard.download().then((function(e){t.$emit("download",e)}))},save:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=["title","editTitleList","candidateNumColor","editEssayList","answerCardMode","layout","showAttention","studentInfo","educationIdValue","registrationNumberType","readType","patchwork"],i=["latticeAttention","showQuestion","sizeType","showEducationId"],r=["scansionAttention","objectiveOrder","judgmentMode","addFooter","entranceExams","objectiveAnswerType","subjectiveReviewType"],a={},o=this.$store.getters["AC/answerCardMode"];n.concat(0===o?r:i).forEach((function(e){a[e]=t.$store.getters["AC/".concat(e)]})),this.$emit("save",a,e)},viewPaper:function(){this.$emit("view-paper")},buildFailed:function(){this.$emit("build-failed")},moveCallback:function(t,e){this.$emit("move",t,e)},deleteCallback:function(t){this.$emit("delete",t)},editCallback:function(t){this.$emit("edit-title",t)}}},en=tn,nn=Object(j["a"])(en,i,r,!1,null,null,null),rn=nn.exports;rn.install=function(t){t.component(rn.name,rn)};e["default"]=rn},"40d5":function(t,e,n){var i=n("d039");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var i=n("e330"),r=n("d039"),a=n("c6b6"),o=Object,s=i("".split);t.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?s(t,""):o(t)}:o},4625:function(t,e,n){var i=n("c6b6"),r=n("e330");t.exports=function(t){if("Function"===i(t))return r(t)}},"485a":function(t,e,n){var i=n("c65b"),r=n("1626"),a=n("861d"),o=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!a(s=i(n,t)))return s;if(r(n=t.valueOf)&&!a(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!a(s=i(n,t)))return s;throw o("Can't convert object to primitive value")}},"4b11":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4d64":function(t,e,n){var i=n("fc6a"),r=n("23cb"),a=n("07fa"),o=function(t){return function(e,n,o){var s,c=i(e),l=a(c),u=r(o,l);if(t&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},"4e0a":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{class:["ac-essay__wrapper",t.lastOneClass],style:{"--padding-inline":t.paddingInline+"px"},attrs:{"data-key":t.dataKey,type:"essay","page-index":t.pageIndex}},[t.scoreBoxVisible?e("div",{staticClass:"score-box__wrapper"},[e("div",{staticClass:"score-box"})]):t._e(),e("div",{staticClass:"ac-essay",class:{"is-wrapper":"outer"===t.borderType,"is-editable":t.editable,"is-hidden__border-both":t.hiddenBorderBoth||!(t.row||t.title),"is-hidden__border-bottom":t.hiddenBorderBottom||!(t.row||t.title),"is-hidden__border-top":t.hiddenBorderTop||!(t.row||t.title),"is-scan":t.scoreBoxVisible&&!["empty","line"].includes(t.rowType),"with-footer":0===t.answerMode,"show-tip":0===t.answerMode&&1===t.subjectiveReviewType&&t.row},style:{paddingBottom:"outer"===t.borderType?"".concat(t.additionalPadding+15,"px"):"0px",paddingLeft:0===t.answerMode&&"40px"}},[0===t.answerMode&&t.isEntranceExams?e("div",{class:["entrance-border",t.layout>2&&"three-column_border",t.isFirst&&"show-border_top",t.isShowTipWord&&"show-border_word-top",t.isLastOne&&"show-border_bottom",t.isFirst&&t.isLastOne&&"show-border_all"]}):t._e(),0===t.answerMode&&t.isEntranceExams?e("div",{class:["entrance-outline",t.layout>2&&"three-column_outline",t.isFirst&&"show-outline_top",t.isShowTipWord&&"show-outline_word-top",t.isLastOne&&"show-outline_bottom",t.isFirst&&t.isLastOne&&"show-outline_all"]}):t._e(),t.title?e("div",{staticClass:"ac-essay__title ck-content",domProps:{innerHTML:t._s(t.title)}}):t._e(),t.row?e("div",{staticClass:"ac-essay__container"},[e("div",{staticClass:"ac-essay__area",class:t.rowClass,style:t.areaStyle},[["empty","block","spell_field"].includes(t.rowType)?t._e():[t._l(t.itemList,(function(n,i){return[t.getLiContent(i)?e("li",{key:"li_".concat(i),staticClass:"ac-essay__area-item",class:{"with-top":t.topLineVisible&&!i,"is-editable":"line"===t.rowType&&t.liEditable},domProps:{innerHTML:t._s(t.getLiContent(i))},on:{blur:function(e){return t.handleBlur(e,i)}}}):e("li",{key:i,staticClass:"ac-essay__area-item",class:{"with-top":t.topLineVisible&&!i,"is-editable":"line"===t.rowType&&t.liEditable,"is-first-column":!(i%t.formatColumn)},style:{borderColor:t.isEntranceExams?"#EB617E":"#000000"},on:{blur:function(e){return t.handleBlur(e,i)}}},[t.showPrefix&&"line"===t.rowType?e("span",{staticClass:"ac-essay__area-prefix"},[t._v(" 【"+t._s(i+t.startRow+1)+"】 ")]):t._e(),t.wordCountStep&&["write","grid","write_plain"].includes(t.rowType)?e("span",[t._v(" "+t._s(t.getWordCount(i))+" ")]):t._e()])]}))],"spell_field"===t.rowType?t._l(Array(t.row).fill(""),(function(n,i){return e("li",{key:i,staticClass:"ac-essay__area-item"},[e("div",{staticClass:"ac-essay__area-spell"}),t._l(Array(t.formatColumn).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-essay__area-field"})}))],2)})):t._e()],2)]):t._e(),t.editable?e("div",{staticClass:"ac-essay__tool"},[t.rowEditable?[e("span",[t._v("行数:")]),e("el-input-number",{attrs:{size:"small",min:0,max:100},on:{change:t.handleRowChange},model:{value:t.rowNum,callback:function(e){t.rowNum=e},expression:"rowNum"}})]:t._e(),t.typeEditable?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.openType}},[t._v(" 背景风格 ")]):t._e(),t.titleEditable?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v(" 编辑答题区 ")]):t._e()],2):t._e()]),e("ac-editor",{attrs:{visible:t.editorVisible,content:t.editContent,title:"编辑答题区","editor-id":"essay-editor_".concat(Date.now().toString(36))},on:{"update:visible":function(e){t.editorVisible=e},submit:t.handleSubmit}}),e("el-dialog",{attrs:{"custom-class":"ac-essay__dialog",visible:t.typeVisible,title:"设置背景风格",width:"770px"},on:{"update:visible":function(e){t.typeVisible=e}}},[e("div",{staticClass:"ac-bg"},[t.essayType.includes(0)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":0===t.currentType},on:{click:function(e){t.currentType=0}}},[t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("空白纸")]):t._e(),e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper"})]):t._e(),t.essayType.includes(1)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":1===t.currentType},on:{click:function(e){t.currentType=1}}},[t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("横线纸")]):t._e(),e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-line"},[e("div",{staticClass:"ac-bg__content"})])]):t._e(),t.essayType.includes(2)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":2===t.currentType},on:{click:function(e){t.currentType=2}}},[t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("方格纸")]):t._e(),e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-grid"},t._l(Array(4).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item"})})),0)]):t._e(),t.essayType.includes(3)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":3===t.currentType},on:{click:function(e){t.currentType=3}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-field"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(12).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e(),t.essayType.includes(4)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":4===t.currentType},on:{click:function(e){t.currentType=4}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-block"},[e("div",{staticClass:"ac-bg__content"})])]):t._e(),t.essayType.includes(5)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":5===t.currentType},on:{click:function(e){t.currentType=5}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-write"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(12).fill(""),(function(t,n){return e("li",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e(),t.essayType.includes(6)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":6===t.currentType},on:{click:function(e){t.currentType=6}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-spell-field"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(3).fill(""),(function(n,i){return e("li",{key:i,staticClass:"ac-bg__content-item"},[e("div",{staticClass:"ac-bg__content-item-spell"}),t._l(Array(3).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item-field"})}))],2)})),0)])]):t._e(),t.essayType.includes(7)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":7===t.currentType},on:{click:function(e){t.currentType=7}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-write-plain"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(16).fill(""),(function(t,n){return e("li",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e()]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.typeVisible=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.changeType}},[t._v("确定")])],1)])],1)},r=[],a=n("6bdf"),o=n("5dcc"),s={name:"AcEssay",components:{AcEditor:a["default"]},inject:["paddingBlock","essayType"],props:{editable:{type:Boolean,default:!0},bgType:{type:Number,default:0},typeEditable:{type:Boolean,default:!0},row:{type:Number,default:4},startRow:{type:Number,default:0},rowCount:{type:Number,default:4},rowEditable:{type:Boolean,default:!0},title:{type:String,default:""},titleEditable:{type:Boolean,default:!0},liEditable:{type:Boolean,default:!1},showPrefix:{type:Boolean,default:!1},rowHeight:{type:[Number,String],default:""},rowGap:{type:[Number,String],default:""},width:{type:[Number,String],default:""},borderType:{type:String,default:"outer"},topLineVisible:{type:Boolean,default:!1},wordCountStep:{type:Number,default:100},paddingInline:{type:Number,default:55},dataKey:{type:String,default:""},hiddenBorderBottom:{type:Boolean,default:!1},hiddenBorderBoth:{type:Boolean,default:!1},pageIndex:{type:Number,default:0},hiddenBorderTop:{type:Boolean,default:!1},column:{type:Number,default:0},showSide:{type:Boolean,default:!0},isFirst:{type:Boolean,default:!1},isShowTipWord:{type:Boolean,default:!1},isLastOne:{type:Boolean,default:!1},lastOneClass:{type:String,default:""}},data:function(){return{rowNum:4,editorVisible:!1,editContent:"",typeVisible:!1,currentType:0,additionalPadding:0,lastAdditionPadding:0}},computed:{rowConfig:function(){return this.$store.getters["AC/rowConfig"]},rowType:function(){var t=["empty","line","grid","field","block","write","spell_field","write_plain"];return t[this.bgType||0]},rowClass:function(){return"row-".concat(this.rowType).concat("inner"===this.borderType?" is-wrapper":"").concat(this.showSide?" show-side":"")},areaStyle:function(){var t=this.rowConfig[this.bgType]||{},e="number"===typeof this.rowHeight?this.rowHeight:t.rowHeight||0,n="number"===typeof this.rowGap?this.rowGap:t.rowGap||0;switch(this.rowType){case"write":case"write_plain":n=e/9*2,e-=n;break;case"spell_field":n=e/9*4,e-=n;break}var i={"--row":this.row,"--row-height":e+"px","--row-gap":n+"px","--column":this.formatColumn};return(this.width||0===this.width)&&(i.width="number"===typeof this.width?this.width+"px":this.width),i},formatColumn:function(){var t=(this.rowConfig[this.bgType]||{}).column;return t?this.column||t:0},itemList:function(){return new Array(this.row*(this.formatColumn||1)).fill("")},rowDebounce:function(){return Object(o["b"])(this.commitRowChange,300)},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return function(t){return((e.liList||[]).find((function(e){return e.liIndex===t}))||{}).content}},answerMode:function(){return this.$store.getters["AC/answerCardMode"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},layout:function(){return this.$store.getters["AC/layout"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]},scoreBoxVisible:function(){return 0===this.answerMode&&1===this.subjectiveReviewType&&0===this.startRow&&this.row}},watch:{rowCount:function(t){t!==this.rowNum&&(this.rowNum=t)},lastOneClass:{immediate:!0,handler:function(t,e){var n=this;!t&&e&&(this.additionalPadding=0,this.lastAdditionPadding=0),t&&this.$nextTick((function(){return n.getDistanceToParentBottom()}))}},row:function(){this.additionalPadding=0,this.lastAdditionPadding=0}},created:function(){this.rowNum=this.rowCount},methods:{getWordCount:function(t){var e=this.startRow*this.formatColumn+t+1;return e%this.wordCountStep?"":"".concat(e,"字")},handleRowChange:function(t,e){(t||0===t||(this.rowNum="",e))&&this.rowDebounce()},commitRowChange:function(){this.$store.dispatch("AC/essay/setEssayRow",{dataKey:this.dataKey,row:this.rowNum}),this.$store.dispatch("AC/paper/resetPanel")},getFullTitle:function(){var t=this;return(this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.title},handleEdit:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.$store.dispatch("AC/paper/resetPanel")},handleBlur:function(t,e){this.$store.dispatch("AC/essay/setEssayLi",{dataKey:this.dataKey,liIndex:e+this.startRow,content:t.target.innerHTML})},openType:function(){this.currentType=this.bgType,this.typeVisible=!0},changeType:function(){this.typeVisible=!1,this.$store.dispatch("AC/essay/setEssayBgType",{dataKey:this.dataKey,bgType:this.currentType}),this.$store.dispatch("AC/paper/resetPanel")},getDistanceToParentBottom:function(){var t=document.getElementsByClassName(this.lastOneClass)[0],e=Object(o["c"])(t)+this.lastAdditionPadding;this.lastAdditionPadding=Math.max(e,-15),this.additionalPadding=e}}},c=s,l=n("2877"),u=Object(l["a"])(c,i,r,!1,null,null,null),d=u.exports;d.install=function(t){t.component(d.name,d)};e["default"]=d},"4ea1":function(t,e,n){"use strict";var i=n("d429"),r=n("ebb5"),a=n("bcbf"),o=n("5926"),s=n("f495"),c=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();u("with",{with:function(t,e){var n=c(this),r=o(t),u=a(n)?s(e):+e;return i(n,l(n),r,u)}}["with"],!d)},"50c4":function(t,e,n){var i=n("5926"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"53ca":function(t,e,n){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,"a",(function(){return i}))},5692:function(t,e,n){var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var i=n("d066"),r=n("e330"),a=n("241c"),o=n("7418"),s=n("825a"),c=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?c(e,n(t)):e}},"577e":function(t,e,n){var i=n("f5df"),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},5926:function(t,e,n){var i=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},"59ed":function(t,e,n){var i=n("1626"),r=n("0d51"),a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5dcc":function(t,e,n){"use strict";n.d(e,"b",(function(){return T})),n.d(e,"f",(function(){return E})),n.d(e,"d",(function(){return S})),n.d(e,"a",(function(){return I})),n.d(e,"e",(function(){return O})),n.d(e,"c",(function(){return P}));n("14d9"),n("b7ef"),n("907a"),n("986a"),n("1d02"),n("3c5d"),n("6ce5"),n("2834"),n("4ea1");var i=b(),r=w(),a=C(),o=A(),s={imagePlaceholder:void 0,cacheBust:!1},c={toSvg:l,toPng:d,toJpeg:h,toBlob:f,toPixelData:u,impl:{fontFaces:a,images:o,util:i,inliner:r,options:{}}};function l(t,e){return e=e||{},p(e),Promise.resolve(t).then((function(t){return y(t,e.filter,!0)})).then(m).then(v).then(n).then((function(n){return _(n,e.width||i.width(t),e.height||i.height(t))}));function n(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t}}function u(t,e){return g(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,i.width(t),i.height(t)).data}))}function d(t,e){return g(t,e||{}).then((function(t){return t.toDataURL()}))}function h(t,e){return e=e||{},g(t,e).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))}function f(t,e){return g(t,e||{}).then(i.canvasToBlob)}function p(t){"undefined"===typeof t.imagePlaceholder?c.impl.options.imagePlaceholder=s.imagePlaceholder:c.impl.options.imagePlaceholder=t.imagePlaceholder,"undefined"===typeof t.cacheBust?c.impl.options.cacheBust=s.cacheBust:c.impl.options.cacheBust=t.cacheBust}function g(t,e){return l(t,e).then(i.makeImage).then(i.delay(100)).then((function(e){var i=n(t);return i.getContext("2d").drawImage(e,0,0),i}));function n(t){var n=document.createElement("canvas"),r=n.getContext("2d");r.mozImageSmoothingEnabled=!1,r.webkitImageSmoothingEnabled=!1,r.msImageSmoothingEnabled=!1,r.imageSmoothingEnabled=!1;var a=e.scale||1,o=e.width||i.width(t),s=e.height||i.height(t);return n.width=o*a,n.height=s*a,e.imageWidth&&(a=e.imageWidth/(o||1),n.width=e.imageWidth,n.height=s*a),e.imageHeight&&(a=e.imageHeight/(s||1),n.width=o*a,n.height=e.imageHeight),r.scale(a,a),e.bgcolor&&(r.fillStyle=e.bgcolor,r.fillRect(0,0,n.width,n.height)),n}}function y(t,e,n){return n||!e||e(t)?Promise.resolve(t).then(r).then((function(n){return a(t,n,e)})).then((function(e){return o(t,e)})):Promise.resolve();function r(t){return t instanceof HTMLCanvasElement?i.makeImage(t.toDataURL()):t.cloneNode(!1)}function a(t,e,n){var r=t.childNodes;return 0===r.length?Promise.resolve(e):a(e,i.asArray(r),n).then((function(){return e}));function a(t,e,n){var i=Promise.resolve();return e.forEach((function(e){i=i.then((function(){return y(e,n)})).then((function(e){e&&t.appendChild(e)}))})),i}}function o(t,e){return e instanceof Element?Promise.resolve().then(n).then(r).then(a).then(o).then((function(){return e})):e;function n(){function n(t,e){function n(t,e){i.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:n(t,e)}n(window.getComputedStyle(t),e.style)}function r(){function n(n){var r=window.getComputedStyle(t,n),a=r.getPropertyValue("content");if(""!==a&&"none"!==a){var o=i.uid();e.className=e.className+" "+o;var s=document.createElement("style");s.appendChild(c(o,n,r)),e.appendChild(s)}function c(t,e,n){var r="."+t+":"+e,a=n.cssText?o(n):s(n);return document.createTextNode(r+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return i.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){n(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function o(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}}function m(t){return a.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function v(t){return o.inlineAll(t).then((function(){return t}))}function _(t,e,n){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(i.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+n+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}function b(){return{escape:h,parseExtension:e,mimeType:n,dataAsUrl:d,isDataUrl:i,canvasToBlob:a,resolveUrl:o,getAndEncode:u,uid:s(),delay:f,asArray:p,escapeXhtml:g,makeImage:l,width:y,height:m};function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var i=e(n).toLowerCase();return t()[i]||""}function i(t){return-1!==t.search(/^(data:)/)}function r(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),i=n.length,r=new Uint8Array(i),a=0;a<i;a++)r[a]=n.charCodeAt(a);e(new Blob([r],{type:"image/png"}))}))}function a(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):r(t)}function o(t,e){var n=document.implementation.createHTMLDocument(),i=n.createElement("base");n.head.appendChild(i);var r=n.createElement("a");return n.body.appendChild(r),i.href=e,r.href=t,r.href}function s(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function l(t){return new Promise((function(e,n){var i=new Image;i.onload=function(){e(i)},i.onerror=n,i.src=t}))}function u(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=3e4;return(c.impl.options.cacheBust||n)&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),e&&t.startsWith("http")&&!t.startsWith("https")&&(t=t.replace("http","https")),new Promise((function(e){var n,r=new XMLHttpRequest;if(r.onreadystatechange=o,r.ontimeout=s,r.responseType="blob",r.timeout=i,r.open("GET",t,!0),r.send(),c.impl.options.imagePlaceholder){var a=c.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(n=a[1])}function o(){if(4===r.readyState)if(200===r.status){var i=new FileReader;i.onloadend=function(){var t=i.result.split(/,/)[1];e({content:t,fullUrl:i.result})},i.readAsDataURL(r.response)}else n?e(n):l("cannot fetch resource: "+t+", status: "+r.status)}function s(){n?e(n):l("timeout of "+i+"ms occured while fetching resource: "+t)}function l(t){e("")}}))}function d(t,e){return"data:"+e+";base64,"+t}function h(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function f(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}}function p(t){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}function g(t){return t.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A").replace(/\v/g," ")}function y(t){var e=v(t,"border-left-width"),n=v(t,"border-right-width");return t.scrollWidth+e+n}function m(t){var e=v(t,"border-top-width"),n=v(t,"border-bottom-width");return t.scrollHeight+e+n}function v(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}function w(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:a,shouldProcess:e,impl:{readUrls:n,inline:r}};function e(e){return-1!==e.search(t)}function n(e){var n,r=[];while(null!==(n=t.exec(e)))r.push(n[1]);return r.filter((function(t){return!i.isDataUrl(t)}))}function r(t,e,n,r){return Promise.resolve(e).then((function(t){return n?i.resolveUrl(t,n):t})).then(r||i.getAndEncode).then((function(t){var n=t.content;t.fullUrl;return i.dataAsUrl(n,i.mimeType(e))})).then((function(n){return t.replace(a(e),"$1"+n+"$3")}));function a(t){return new RegExp("(url\\(['\"]?)("+i.escape(t)+")(['\"]?\\))","g")}}function a(t,i,a){return o()?Promise.resolve(t):Promise.resolve(t).then(n).then((function(e){var n=Promise.resolve(t);return e.forEach((function(t){n=n.then((function(e){return"about:blank"===t?Promise.resolve(t):r(e,t,i,a)}))})),n}));function o(){return!e(t)}}}function C(){return{resolveAll:t,impl:{readAll:e}};function t(){return e(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))}function e(){return Promise.resolve(i.asArray(document.styleSheets)).then(e).then(t).then((function(t){return t.map(n)}));function t(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))}function e(t){var e=[];return t.forEach((function(t){try{i.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(n){}})),e}function n(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}function A(){return{inlineAll:e,impl:{newImage:t}};function t(t){return{inline:e};function e(e){return i.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||function(t){return i.getAndEncode(t,!0,!0)}).then((function(t){t.content;var e=t.fullUrl;return e})).then((function(e){return new Promise((function(n,i){t.onload=n,t.onerror=i,t.src=e}))})).catch((function(){return t.src}))}}function e(n){return n instanceof Element?a(n).then((function(){return n instanceof HTMLImageElement?t(n).inline():Promise.all(i.asArray(n.childNodes).map((function(t){return e(t)})))})):Promise.resolve(n);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}}}var x=c,T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=arguments.length>2?arguments[2]:void 0,i=0;return function(){var r=this,a=arguments;i&&clearTimeout(i),n?(i||t.apply(r,a),i=setTimeout((function(){i=0}),e)):i=setTimeout((function(){t.apply(r,a)}),e)}},k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=0,i=[],r=[],a=function a(){if(n===t.length)return Promise.resolve();var o=t[n++],s=Promise.resolve().then((function(){return o()}));i.push(s);var c=s.then((function(){return r.splice(r.indexOf(c),1)}));r.push(c);var l=r.length>=e?Promise.race(r):Promise.resolve();return l.then((function(){return a()}))};return a().then((function(){return Promise.all(i)}))},E=function(t){var e=[],n=/<img.*?(?:>|\/>)/gi,i=/src=['"]?([^'"]*)['"]?/i,r=function(t){if(t){var r=t.match(n);Array.isArray(r)&&r.forEach((function(t){var n=t.match(i);Array.isArray(n)&&n[1]&&e.push(new Promise((function(t,e){var i=new Image;i.onload=function(){return t()},i.onerror=function(){return e()},i.src=n[1]})))}))}},a=function t(e){e.forEach((function(e){"complex"!==e.code&&e.children||(r(e.title),Array.isArray(e.choices)&&e.choices.forEach((function(t){return r(t.content)}))),e.children&&e.children.length&&t(e.children)}))};return a(t),new Promise((function(t,n){Promise.allSettled(e).then((function(){return t()}))}))},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2?arguments[2]:void 0;if(!t.length)return Promise.resolve([]);for(var i=[],r=function(){var r=t[a];i.push((function(){return x.toJpeg(r,{quality:.95,scale:e,width:r.offsetWidth,height:r.offsetHeight,imageWidth:n,bgcolor:"#ffffff"})}))},a=0;a<t.length;a++)r();return k(i)},I=function(t,e){for(var n=t.split(","),i=atob(n[1]),r={type:"image/jpeg",endings:"native"},a=new Uint8Array(i.length),o=0;o<i.length;o++)a[o]=i.charCodeAt(o);var s=new File([a],(e||Date.now().toString(36))+".jpg",r);return s},O=function(t){var e=0;try{var n=t.getBoundingClientRect(),i=n.top,r=t.parentNode.getBoundingClientRect(),a=r.top;e=i-a}catch(o){e=t.offsetTop}return e},P=function(t){var e=t.getBoundingClientRect(),n=e.bottom,i=t.parentNode.getBoundingClientRect(),r=i.bottom;return r-n}},"5e77":function(t,e,n){var i=n("83ab"),r=n("1a2d"),a=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=r(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!i||i&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},"605d":function(t,e,n){(function(e){var i=n("c6b6");t.exports="undefined"!=typeof e&&"process"==i(e)}).call(this,n("4362"))},6374:function(t,e,n){var i=n("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},"639e":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-config__bar"},[e("div",{class:["ac-config__arrow",t.showConfig?"el-icon-caret-right":"el-icon-caret-left"],on:{click:function(e){t.showConfig=!t.showConfig}}}),e("div",{staticClass:"ac-config__wrapper",class:{"is-hidden":!t.showConfig}},[t.noPaperModePreview?e("div",{staticClass:"container"},["showStructure"===t.noPaperModePreview?t._t("paperStructure"):t._e()],2):e("div",{staticClass:"container"},[e("div",{staticClass:"config-mainCtrl"},[t.noPaperMode||t.paperViewable?e("div",{staticClass:"zeroth-row"},[t.noPaperMode?t._t("quoteAnswerCard"):t.paperViewable?e("el-button",{staticClass:"ac-card-btn ac-card-btn--main ac-card-btn--large",attrs:{type:"primary"},on:{click:t.viewPaper}},[t._v(" 预览试卷 ")]):t._e()],2):t._e(),e("div",{staticClass:"first-row"},[e("el-button",{attrs:{size:"medium",icon:"icon el-icon-download",disabled:!t.$parent.tree.length||!t.acMode&&t.$parent.$refs.sweepCard&&1===t.$parent.$refs.sweepCard.domList.length&&"basicInfo"===t.$parent.$refs.sweepCard.domList[0].type},on:{click:t.save}},[t._v(" 保存 ")]),e("el-button",{attrs:{size:"medium",icon:"icon el-icon-view",disabled:!t.$parent.tree.length},on:{click:function(e){t.previewVisible=!0}}},[t._v(" 预览 ")])],1),e("div",{staticClass:"second-row"},[e("el-button",{staticClass:"ac-card-btn ac-card-btn--main ac-card-btn--large",attrs:{type:"primary",disabled:!t.$parent.tree.length||!t.acMode&&t.$parent.$refs.sweepCard&&1===t.$parent.$refs.sweepCard.domList.length&&"basicInfo"===t.$parent.$refs.sweepCard.domList[0].type},on:{click:t.download}},[t._v(" 下载并保存 ")])],1)]),t.noPaperMode?t._t("eduPeriodSelect"):t._e(),t.noPaperMode?e("el-radio-group",{staticClass:"ac-config__row change-tab",model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("el-radio-button",{attrs:{label:"addTopic"}},[t._v("添加题目")]),e("el-radio-button",{attrs:{label:"answerLayout"}},[t._v("答题卡布局")])],1):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:"addTopic"===t.activeTab,expression:"activeTab === 'addTopic'"}]},[t._t("addTopic")],2),e("div",{directives:[{name:"show",rawName:"v-show",value:"answerLayout"===t.activeTab,expression:"activeTab === 'answerLayout'"}]},[t.modeChangeable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择答题卡模式")]),e("div",{staticClass:"ac-config__item answer-mode"},[e("el-radio-group",{model:{value:t.answerSheetMode,callback:function(e){t.answerSheetMode=e},expression:"answerSheetMode"}},[e("el-radio",{attrs:{label:0}},[t._v("扫描")]),e("el-radio",{attrs:{label:1}},[t._v("点阵笔")])],1)],1)]):t._e(),t.layoutChangeable?e("change-layout",{attrs:{mode:t.answerSheetMode}}):t._e(),t.showStudentInfo&&t.attentionSwitchable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("考生须知")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowAttention,callback:function(e){t.isShowAttention=e},expression:"isShowAttention"}})],1)]):t._e(),1===t.answerSheetMode&&t.showStudentInfo&&t.educationIdSwitchable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("教育ID")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowEducationId,callback:function(e){t.isShowEducationId=e},expression:"isShowEducationId"}})],1)]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("客观题排列")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.objectiveOrder,callback:function(e){t.objectiveOrder=e},expression:"objectiveOrder"}},[e("el-radio",{attrs:{label:"row"}},[t._v("横排")]),e("el-radio",{attrs:{label:"column"}},[t._v("竖排")])],1)],1)]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("客观题作答方式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.objectiveAnswerType,callback:function(e){t.objectiveAnswerType=e},expression:"objectiveAnswerType"}},[e("el-radio",{attrs:{label:0}},[t._v("手写")]),e("el-radio",{attrs:{label:1}},[t._v("涂点")])],1)],1)]):t._e(),1===t.objectiveAnswerType?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("主观题批阅方式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.subjectiveReviewType,callback:function(e){t.subjectiveReviewType=e},expression:"subjectiveReviewType"}},[e("el-radio",{attrs:{label:0}},[t._v("划线(旧)")]),e("el-radio",{attrs:{label:1}},[t._v("手写")])],1)],1)]):t._e(),1===t.objectiveAnswerType&&0===t.answerSheetMode||t.isShowEducationId?[e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("教育ID位数")]),e("div",{staticClass:"ac-config__item"},[e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.educationIdValue,callback:function(e){t.educationIdValue=e},expression:"educationIdValue"}},t._l(Array(13),(function(t,n){return e("el-option",{key:n,attrs:{label:n+6,value:n+6}})})),1)],1)]),e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择考号板式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.registrationNumberType,callback:function(e){t.registrationNumberType=e},expression:"registrationNumberType"}},[e("el-radio",{attrs:{label:0}},[t._v("条形码")]),e("el-radio",{attrs:{label:1}},[t._v("教育ID")])],1)],1)])]:t._e(),1===t.answerSheetMode&&t.titleSwitchable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("显示题目内容")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowQuestion,callback:function(e){t.isShowQuestion=e},expression:"isShowQuestion"}})],1)]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("添加页脚")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isAddFooter,callback:function(e){t.isAddFooter=e},expression:"isAddFooter"}})],1)]):t._e(),0!==t.answerSheetMode&&"graffiti"!==t.readType||1!==t.layout?t._e():e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("答题卡拼凑打印")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isPatchwork,callback:function(e){t.isPatchwork=e},expression:"isPatchwork"}})],1)]),t._t("configSuffix")],2)],2)]),e("ac-preview",{attrs:{visible:t.previewVisible,selector:".ac-panel .ac-piece__wrapper"},on:{"update:visible":function(e){t.previewVisible=e}}}),e("el-dialog",{staticClass:"download-dialog",attrs:{title:"下载提示",visible:t.showDownloadModal,width:"520px",center:"","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.showDownloadModal=e}}},[0===t.answerSheetMode?[e("p",{staticClass:"message"},[t._v(" 选择导出以下内容 "),e("span",{staticClass:"redTip"},[t._v("(为了保证下载内容的质量,建议使用chrome进行下载)")])]),e("div",{staticClass:"tip"},[e("el-radio",{attrs:{label:"sweep"},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v("答题卡")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.downloadType,callback:function(e){t.downloadType=e},expression:"downloadType"}},[e("el-option",{attrs:{label:"PDF",value:"PDF"}}),e("el-option",{attrs:{label:"PNG",value:"PNG"}})],1)],1),e("div",{staticClass:"paper-type_selector"},[e("span",{staticClass:"label"},[t._v("请选择纸张大小")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.downloadSize,callback:function(e){t.downloadSize=e},expression:"downloadSize"}},[e("el-option",{attrs:{label:1===t.layout?"A4":"A3",value:1===t.layout?"A4":"A3"}}),e("el-option",{attrs:{label:1===t.layout?"16K":"8K",value:1===t.layout?"16K":"8K"}})],1)],1)]:t._e(),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.showDownloadModal=!1}}},[t._v("取 消")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.confirmDownload}},[t._v("确 定")])],1)],2)],1)},r=[],a=(n("14d9"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择答题卡模式")]),e("div",{staticClass:"ac-config__item answer-mode-other"},[e("p",{staticClass:"ac-card-config__sublabel"},[t._v("适用于"+t._s(t.subLabel)+"纸张")]),e("div",{staticClass:"layout-config"},[e("div",{class:["layout-config-item",t.disableOneLayout&&"disable-style"],attrs:{"aria-disabled":t.disableOneLayout},on:{click:function(e){return t.changeAnswerCardLayout(1)}}},[e("div",{class:["layout-image",1===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("d09a"),alt:"一栏"}})]),e("p",{staticClass:"layout-name"},[t._v("一栏")])]),e("div",{staticClass:"layout-config-item",on:{click:function(e){return t.changeAnswerCardLayout(2)}}},[e("div",{class:["layout-image",2===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("eb33"),alt:"两栏"}})]),e("p",{staticClass:"layout-name"},[t._v("两栏")])]),0===t.mode?e("div",{staticClass:"layout-config-item",on:{click:function(e){return t.changeAnswerCardLayout(3)}}},[e("div",{class:["layout-image",3===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("f714"),alt:"三栏"}})]),e("p",{staticClass:"layout-name"},[t._v("三栏")])]):t._e()]),1===t.mode?e("el-radio-group",{model:{value:t.sizeType,callback:function(e){t.sizeType=e},expression:"sizeType"}},[e("el-radio",{attrs:{label:"A"}},[t._v(t._s(1===t.layout?"A4":"A3"))]),e("el-radio",{attrs:{label:"K"}},[t._v(t._s(1===t.layout?"16K":"8K"))])],1):t._e()],1)])}),o=[],s={name:"ChangeLayout",components:{},props:{mode:{type:Number,default:0}},computed:{sizeType:{get:function(){return this.$store.getters["AC/sizeType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setSizeType",t),this.$store.dispatch("AC/paper/resetPanel")}},layout:function(){return this.$store.getters["AC/layout"]},disableOneLayout:function(){return this.$store.getters["AC/disableOneLayout"]},subLabel:function(){return 0===this.mode?1===this.layout?"A4、16K":"A3、8K":"A"===this.sizeType?1===this.layout?"A4":"A3":1===this.layout?"16K":"8K"}},watch:{},mounted:function(){},data:function(){return{}},methods:{changeAnswerCardLayout:function(t){this.$store.dispatch("AC/answerConfig/setAnswerCardLayout",t),t>1&&this.$store.dispatch("AC/answerConfig/setPatchwork",!1),this.$store.dispatch("AC/paper/resetPanel")}}},c=s,l=n("2877"),u=Object(l["a"])(c,a,o,!1,null,null,null),d=u.exports,h=n("2b16"),f={name:"AcAnswerConfig",components:{changeLayout:d,AcPreview:h["default"]},props:{modeChangeable:{type:Boolean,default:!0},layoutChangeable:{type:Boolean,default:!0},titleSwitchable:{type:Boolean,default:!0},graffitiDisable:{type:Boolean,default:!1},attentionSwitchable:{type:Boolean,default:!0},educationIdSwitchable:{type:Boolean,default:!0},handReadSwitchable:{type:Boolean,default:!0},paperViewable:{type:Boolean,default:!0},manualDownload:{type:Boolean,default:!1},studentInfoClearable:{type:Boolean,default:!1}},inject:["showStudentInfo","noPaperMode","noPaperModePreview"],computed:{answerSheetMode:{get:function(){return this.$store.getters["AC/answerCardMode"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAnswerCardMode",t),0===t&&this.$store.dispatch("AC/answerConfig/setSizeType","A")}},isShowAttention:{get:function(){return this.$store.getters["AC/showAttention"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAttention",t),this.$store.dispatch("AC/paper/resetPanel")}},studentInfoArr:function(){return this.$store.getters["AC/studentInfo"]},isShowEducationId:{get:function(){return this.$store.getters["AC/showEducationId"]},set:function(t){this.$store.dispatch("AC/answerConfig/setShowEducationId",t),this.$store.dispatch("AC/paper/resetPanel")}},educationIdValue:{get:function(){return this.$store.getters["AC/educationIdValue"]},set:function(t){this.$store.dispatch("AC/answerConfig/setEducationId",t),this.$store.dispatch("AC/paper/resetPanel")}},registrationNumberType:{get:function(){return this.$store.getters["AC/registrationNumberType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setRegistrationNumberType",t),this.$store.dispatch("AC/paper/resetPanel")}},objectiveOrder:{get:function(){return this.$store.getters["AC/objectiveOrder"]},set:function(t){this.$store.dispatch("AC/answerConfig/setObjectiveOrder",t),this.$store.dispatch("AC/paper/resetPanel")}},objectiveAnswerType:{get:function(){return this.$store.getters["AC/objectiveAnswerType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setObjectiveAnswerType",t),0===t&&(this.subjectiveReviewType=1)}},subjectiveReviewType:{get:function(){return this.$store.getters["AC/subjectiveReviewType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setSubjectiveReviewType",t)}},judgmentMode:{get:function(){return this.$store.getters["AC/judgmentMode"]},set:function(t){this.$store.dispatch("AC/answerConfig/setJudgmentMode",t)}},isShowQuestion:{get:function(){return this.$store.getters["AC/showQuestion"]},set:function(t){this.$store.dispatch("AC/answerConfig/setShowQuestion",t),this.$store.dispatch("AC/paper/resetEditTitle")}},handRead:{get:function(){return!!this.readType},set:function(t){this.readType=t?"graffiti":""}},readType:{get:function(){return this.$store.getters["AC/readType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setReadType",t),this.$store.dispatch("AC/paper/resetPanel")}},isAddFooter:{get:function(){return this.$store.getters["AC/addFooter"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAddFooter",t)}},isPatchwork:{get:function(){return this.$store.getters["AC/patchwork"]},set:function(t){this.$store.dispatch("AC/answerConfig/setPatchwork",t),this.$store.dispatch("AC/paper/resetPanel")}},isEntranceExams:{get:function(){return this.$store.getters["AC/entranceExams"]},set:function(t){this.$store.dispatch("AC/answerConfig/setEntranceExams",t),"graffiti"===this.readType?this.handRead=!1:this.$store.dispatch("AC/paper/resetPanel")}},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},sizeLabel:function(){var t="",e="";switch(this.layout){case 1:t="一栏",e="A"===this.sizeType?"A4":"16K";break;case 2:t="二栏",e="A"===this.sizeType?"A3":"8K";break}return"".concat(t," ").concat(e)},downloadType:{get:function(){return this.$store.getters["AC/downloadType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setDownloadType",t)}},downloadSize:{get:function(){return this.$store.getters["AC/downloadSize"]},set:function(t){this.$store.dispatch("AC/answerConfig/setDownloadSize",t)}},acMode:function(){return this.$store.getters["AC/answerCardMode"]},paperTree:function(){return this.$store.getters["AC/sweepPaperTree"]}},watch:{studentInfoArr:function(){this.studentInfoTags=this.studentInfoArr}},mounted:function(){this.studentInfoTags=this.studentInfoArr},data:function(){return{studentInfoTags:[],inputVisible:!1,inputValue:"",showConfig:!0,previewVisible:!1,showDownloadModal:!1,radio:"sweep",activeTab:this.noPaperMode?"addTopic":"answerLayout"}},methods:{handleClose:function(t){this.studentInfoTags.splice(this.studentInfoTags.indexOf(t),1),this.$store.dispatch("AC/answerConfig/setStudentInfo",this.studentInfoTags),this.$store.dispatch("AC/paper/resetPanel")},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(e){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&-1===this.studentInfoTags.indexOf(t)&&this.studentInfoTags.push(t),this.inputVisible=!1,this.inputValue="",this.$store.dispatch("AC/answerConfig/setStudentInfo",this.studentInfoTags),this.$store.dispatch("AC/paper/resetPanel")},download:function(){if(this.acMode)this.isShowEducationId||this.handRead?this.showDownloadModal=!0:(this.$emit("before-download"),!this.manualDownload&&this.$emit("download"));else{var t=!1;this.paperTree.forEach((function(e){0!==e.children.length&&e.children||(t=!0)})),t?this.$message({showClose:!0,message:"有标题下没有题目,请检查后再生成",type:"error"}):(this.showDownloadModal=!0,this.$store.dispatch("AC/answerConfig/setDownloadSize",1===this.layout?"A4":"A3"))}},confirmDownload:function(){this.showDownloadModal=!1,this.$emit("download")},save:function(){this.$emit("save")},viewPaper:function(){this.$emit("view-paper")}}},p=f,g=Object(l["a"])(p,i,r,!1,null,null,null),y=g.exports;y.install=function(t){t.component(y.name,y)};e["default"]=y},"69f3":function(t,e,n){var i,r,a,o=n("cdce"),s=n("da84"),c=n("861d"),l=n("9112"),u=n("1a2d"),d=n("c6cd"),h=n("f772"),f=n("d012"),p="Object already initialized",g=s.TypeError,y=s.WeakMap,m=function(t){return a(t)?r(t):i(t,{})},v=function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(o||d.state){var _=d.state||(d.state=new y);_.get=_.get,_.has=_.has,_.set=_.set,i=function(t,e){if(_.has(t))throw g(p);return e.facade=t,_.set(t,e),e},r=function(t){return _.get(t)||{}},a=function(t){return _.has(t)}}else{var b=h("state");f[b]=!0,i=function(t,e){if(u(t,b))throw g(p);return e.facade=t,l(t,b,e),e},r=function(t){return u(t,b)?t[b]:{}},a=function(t){return u(t,b)}}t.exports={set:i,get:r,has:a,enforce:m,getterFor:v}},"6bdf":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{"custom-class":"ac-editor",visible:t.currentVisible,title:t.title,top:"10vh",width:"868px","close-on-click-modal":!1},on:{"update:visible":function(e){t.currentVisible=e},open:t.handleOpen}},[e("textarea",{attrs:{id:t.editorId}}),e("div",{staticClass:"ac-editor__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.close}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确定")])],1)])},r=[],a=n("d4ec"),o=n("bee2"),s={name:"AcEditor",props:{title:{type:String,default:"编辑标题"},content:{type:String,default:""},visible:{type:Boolean,default:!1},editorId:{type:String,default:"ac-editor"},editorConstructor:{type:Function,default:function(){}}},inject:["uploadOss","ClassicEditor"],data:function(){return{editor:null}},computed:{currentVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}},uploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(a["a"])(this,e),this.loader=t}return Object(o["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,i){e.loader.file.then((function(e){return t(e,n)}))}))}}]),e}()},createFn:function(){return this.ClassicEditor||this.editorConstructor}},methods:{handleOpen:function(){var t=this;this.$nextTick((function(){return t.initEditor()}))},close:function(){this.currentVisible=!1},confirm:function(){this.close(),this.editor&&this.$emit("submit",this.editor.getData())},initEditor:function(){var t=this;this.editor?(""===this.content||this.content)&&this.editor.setData(this.content):this.createFn.create(document.querySelector("#".concat(this.editorId)),{isReadOnly:!0,placeholder:"请输入~",image:{resizeUnit:"px",toolbar:[{name:"imageStyle:pictures",items:["imageStyle:alignBlockLeft","imageStyle:alignCenter","imageStyle:alignBlockRight"],defaultItem:"imageStyle:alignCenter"},"|","toggleImageCaption","imageStyle:inline"]}}).then((function(e){t.editor=e,t.content&&t.editor.setData(t.content),t.addSpecialCharacters(e),e.plugins.get("FileRepository").createUploadAdapter=function(e){return new t.uploadAdapter(e)},e.on("instanceReady",(function(t){t.editor.execCommand("toolbarCollapse")}))}))},addSpecialCharacters:function(t){t.plugins.get("SpecialCharacters").addItems("编号",[{title:"①",character:"①"},{title:"②",character:"②"},{title:"③",character:"③"},{title:"④",character:"④"},{title:"⑤",character:"⑤"},{title:"⑥",character:"⑥"},{title:"⑦",character:"⑦"},{title:"⑧",character:"⑧"},{title:"⑨",character:"⑨"},{title:"⑩",character:"⑩"},{title:"(1)",character:"(1)"},{title:"(2)",character:"(2)"},{title:"(3)",character:"(3)"},{title:"(4)",character:"(4)"},{title:"(5)",character:"(5)"},{title:"(6)",character:"(6)"},{title:"(7)",character:"(7)"},{title:"(8)",character:"(8)"},{title:"(9)",character:"(9)"},{title:"(10)",character:"(10)"},{title:"1)",character:"1)"},{title:"2)",character:"2)"},{title:"3)",character:"3)"},{title:"4)",character:"4)"},{title:"5)",character:"5)"},{title:"6)",character:"6)"},{title:"7)",character:"7)"},{title:"8)",character:"8)"},{title:"9)",character:"9)"},{title:"10)",character:"10)"},{title:"一",character:"一"},{title:"二",character:"二"},{title:"三",character:"三"},{title:"四",character:"四"},{title:"五",character:"五"},{title:"六",character:"六"},{title:"七",character:"七"},{title:"八",character:"八"},{title:"九",character:"九"},{title:"十",character:"十"},{title:"(一)",character:"(一)"},{title:"(二)",character:"(二)"},{title:"(三)",character:"(三)"},{title:"(四)",character:"(四)"},{title:"(五)",character:"(五)"},{title:"(六)",character:"(六)"},{title:"(七)",character:"(七)"},{title:"(八)",character:"(八)"},{title:"(九)",character:"(九)"},{title:"(十)",character:"(十)"}])}}},c=s,l=n("2877"),u=Object(l["a"])(c,i,r,!1,null,null,null),d=u.exports;d.install=function(t){t.component(d.name,d)};e["default"]=d},"6ce5":function(t,e,n){"use strict";var i=n("df7e"),r=n("ebb5"),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;o("toReversed",(function(){return i(a(this),s(this))}))},"6f19":function(t,e,n){var i=n("9112"),r=n("0d26"),a=n("b980"),o=Error.captureStackTrace;t.exports=function(t,e,n,s){a&&(o?o(t,e):i(t,"stack",r(n,s)))}},7156:function(t,e,n){var i=n("1626"),r=n("861d"),a=n("d2bb");t.exports=function(t,e,n){var o,s;return a&&i(o=e.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){var i=n("e330"),r=n("59ed");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(a){}}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var i=n("1d80"),r=Object;t.exports=function(t){return r(i(t))}},"825a":function(t,e,n){var i=n("861d"),r=String,a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not an object")}},"83ab":function(t,e,n){var i=n("d039");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var i=n("1626"),r=n("8ea1"),a=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===a}:function(t){return"object"==typeof t?null!==t:i(t)}},8925:function(t,e,n){var i=n("e330"),r=n("1626"),a=n("c6cd"),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},"8ea1":function(t,e){var n="object"==typeof document&&document.all,i="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:i}},"8f60":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{class:["ac-graffiti__wrapper",t.hidePadding&&"is-hide-padding"]},[e("div",{class:["ac-graffiti",t.hideBottomBorder&&"is-hide-bottom",t.hideTopBorder&&"is-hide-top"],attrs:{"data-scan-type":"review","data-scan-name":t.scanName,"data-scan-score":t.score}},t._l(Array(21).fill(""),(function(n,i){return e("span",{key:i,staticClass:"ac-graffiti__item"},[t._v(" "+t._s(t.getItem(i))+" ")])})),0)])},r=[],a={name:"AcGraffiti",props:{score:{type:Number,required:!0},scanName:{type:String},hidePadding:{type:Boolean,required:!1},hideBottomBorder:{type:Boolean,required:!1},hideTopBorder:{type:Boolean,required:!1}},methods:{getItem:function(t){if(20===t)return.5;if(this.score>=20)return t>9||10*t<=this.score?t%10:"";var e=20-this.score-1;return t>=e?20-t-1:""}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null),l=c.exports;l.install=function(t){t.component(l.name,l)};e["default"]=l},"907a":function(t,e,n){"use strict";var i=n("ebb5"),r=n("07fa"),a=n("5926"),o=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(t){var e=o(this),n=r(e),i=a(t),s=i>=0?i:n+i;return s<0||s>=n?void 0:e[s]}))},"90e3":function(t,e,n){var i=n("e330"),r=0,a=Math.random(),o=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++r+a,36)}},9112:function(t,e,n){var i=n("83ab"),r=n("9bf2"),a=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},9152:function(t,e){
|
|
3
|
+
_=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var a=e&&e.prototype instanceof h?e:h,o=Object.create(a.prototype),s=new E(r||[]);return i(o,"_invoke",{value:A(t,n,s)}),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var g={};c(g,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(S([])));m&&m!==e&&n.call(m,a)&&(g=m);var b=p.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(i,a,o,s){var c=u(t[i],t,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==Object(v["a"])(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(d).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function A(t,e,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return I()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=u(t,e,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function x(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=u(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return f.prototype=p,i(b,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:f,configurable:!0}),f.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(C.prototype),c(C.prototype,o,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,i,r,a){void 0===a&&(a=Promise);var o=new C(l(e,n,i,r),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return o.type="throw",o.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function b(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(i,r)}function w(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){b(a,i,r,o,s,"next",t)}function s(t){b(a,i,r,o,s,"throw",t)}o(void 0)}))}}var C=n("d4ec"),A=n("bee2"),x=n("4e0a"),T=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-question ck-content",attrs:{"data-key":t.dataKey}},[(t.formatChoices.length||"hand"===t.readType)&&t.showAnswerBox?e("div",{staticClass:"ac-question__prefix"},[e("ac-answer-box",{attrs:{label:t.formatChoices.length?t.showQuestion?"答案":t.plainTitle:"得分",direction:t.formatChoices.length?"column":"row",width:t.formatChoices.length&&!t.showQuestion?144:128}})],1):t._e(),!t.formatChoices.length||t.showQuestion?e("div",{staticClass:"ac-question__content"},[t.formatTitle||t.formatPrefix?e("div",{staticClass:"ac-question__title",style:t.titleAlign?{"text-align":t.titleAlign}:""},[t.formatPrefix?e("div",{staticClass:"ac-question__title-prefix",class:{"is-float":!!t.formatTitle,"is-bold":t.showQuestion},domProps:{innerHTML:t._s(t.formatPrefix)}}):t._e(),t.formatTitle?e("div",{staticClass:"ac-question__title-inner",domProps:{innerHTML:t._s(t.formatTitle)}}):t._e()]):t._e(),t.formatChoices.length?e("ac-choice",{attrs:{list:t.formatChoices,wrap:t.choiceWrap}}):t._e()],1):t._e()])},k=[],E=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-choice"},[t.wrap?[e("div",{staticClass:"ac-choice__list"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1),t.list.length%2?t._e():e("div",{staticClass:"ac-choice__list--half"},t._l(Array(t.list.length/2).fill(""),(function(n,i){return e("div",{key:i,staticClass:"row-direction"},t._l(t.list.slice(2*i,2*i+2),(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)})),0),e("div",{staticClass:"ac-choice__list--all"},[e("div",{staticClass:"row-direction"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)])]:e("div",{staticClass:"ac-choice__list--nowrap"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)],2)},S=[],I=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-choice__item"},[t.identifier?e("div",{staticClass:"ac-choice__prefix"},[t._v(t._s(t.identifier)+".")]):t._e(),t.content?e("div",{staticClass:"ac-choice__content",domProps:{innerHTML:t._s(t.content)}}):t._e()])},O=[],P={name:"AcChoiceItem",props:{identifier:{type:String,default:""},content:{type:String,default:""}}},j=P,B=n("2877"),L=Object(B["a"])(j,I,O,!1,null,null,null),R=L.exports,M={name:"AcChoice",components:{AcChoiceItem:R},props:{list:{type:Array,default:function(){return[]}},wrap:{type:Boolean,default:!0}}},N=M,z=Object(B["a"])(N,E,S,!1,null,null,null),D=z.exports,U=n("fbd7"),H={name:"AcQuestion",components:{AcChoice:D,AcAnswerBox:U["default"]},props:{title:{type:String,default:""},titleEditable:{type:Boolean,default:!0},titleAlign:{type:String,default:""},prefix:{type:String,default:""},prefixEditable:{type:Boolean,default:!1},choices:{type:Array,default:function(){return[]}},choiceEditable:{type:Boolean,default:!0},choiceWrap:{type:Boolean,default:!0},dataKey:{type:String,default:""},plainTitle:{type:String,default:""},showAnswerBox:{type:Boolean,default:!0}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},formatTitle:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||(this.showQuestion?this.title:"")},formatPrefix:function(){var t,e=this;return(null===(t=this.editTitleList.find((function(t){return t.dataKey===e.dataKey})))||void 0===t?void 0:t.prefix)||(this.showQuestion?this.prefix:this.plainTitle)},formatChoices:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).choices||this.choices||[]},readType:function(){return this.$store.getters["AC/readType"]},showQuestion:function(){return this.$store.getters["AC/showQuestion"]}}},F=H,K=Object(B["a"])(F,T,k,!1,null,null,null),W=K.exports;W.install=function(t){t.component(W.name,W)};var V=W,Y=n("8f60"),Z=n("e6c4"),G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-question-material ck-content",attrs:{"data-key":t.dataKey}},[e("div",{staticClass:"ac-question-material__inner",domProps:{innerHTML:t._s(t.material)}})])},q=[],Q={name:"AcQuestionMaterial",props:{dataKey:{type:String,default:""},material:{type:String,default:""}},computed:{showQuestion:function(){return this.$store.getters["AC/showQuestion"]}}},X=Q,J=Object(B["a"])(X,G,q,!1,null,null,null),tt=J.exports,et=function(){window.MathJax&&(window.MathJax.Hub.Config({showProcessingMessages:!1,messageStyle:"none",jax:["input/TeX","output/HTML-CSS"],tex2jax:{inlineMath:[["\\(","\\)"],["\\[","\\]"]],displayMath:[],skipTags:["script","noscript","style","textarea","pre"]},"HTML-CSS":{showMathMenu:!1}}),window.isAcMathJaxConfig=!0)},nt=function(t){if(window.MathJax)return window.isAcMathJaxConfig||et(),new Promise((function(e){window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub,document.getElementById(t)]),window.MathJax.Hub.Queue((function(){e()}))}))},it=n("5dcc"),rt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-mark-box",class:"mark-".concat(t.type)},[t._v(" "+t._s(t.title)+" "),e("div",{staticClass:"check-box"})])},at=[],ot={name:"AcMarkBox",props:{title:{type:String,default:""},type:{type:String,default:""}}},st=ot,ct=Object(B["a"])(st,rt,at,!1,null,null,null),lt=ct.exports;lt.install=function(t){t.component(lt.name,lt)};var ut,dt,ht=lt,ft={name:"AcVirtual",components:{AcEssay:x["default"],AcQuestion:V,AcAnswerBox:U["default"],AcGraffiti:Y["default"],AcBasicInfo:Z["default"],AcQuestionMaterial:tt,AcMarkBox:ht},data:function(){return{continueObjectiveCount:0}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},showQuestion:function(){return this.$store.getters["AC/showQuestion"]},readType:function(){return this.$store.getters["AC/readType"]},paperTree:function(){return this.$store.getters["AC/paperTree"]}},updated:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},mounted:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},methods:{handleLatex:function(){return nt("math-virtual")||Promise.resolve()},getEditedTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},splitDom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="",i=0,r=0,a=[],o=[];if(t){if(t.childNodes.length){var s=t.childNodes[t.childNodes.length-1];t.childNodes.length>1&&(2!==t.childNodes.length||"\n"!==s.textContent)?o=t.childNodes:t.childNodes[0].childNodes.length&&"FIGURE"!==t.childNodes[0].nodeName&&(o=t.childNodes[0].childNodes)}o.length||(o=t.childNodes)}for(var c=0;c<o.length;c++){var l=o[c];if(-1===["P","DIV","IMG","FIGURE"].indexOf(l.nodeName))try{"#text"===l.nodeName?n+=l.textContent:n+=l.outerHTML}catch(g){}else{var u=getComputedStyle(l),d=Number(u.marginTop.replace("px",""))||0,h=Number(u.marginBottom.replace("px",""))||0,f=Object(it["e"])(l);a.length&&(f-=r),n+=l.outerHTML,i+=f+$(l).outerHeight()+d+h,a.push({type:e,content:n,height:i}),n="",i=0,r=Object(it["e"])(l)+$(l).outerHeight()+d+h}}if(n){var p=$(t).outerHeight();a.push({type:e,content:n,height:a.length?p-r:p})}return a},getDomList:function(){var t=this,e=function(e,n,r,a){if(e.material&&t.showQuestion){var o=n.find(".ac-question-material__inner")[0],s=t.splitDom(o,"questionMaterialItem");s.length&&(s[0].height+=16),i.push({children:s})}var c={dataKey:r,children:[],updatePage:e.updatePage,updatePiece:e.updatePiece},l=null,u=0;if((e.title||e.prefix)&&(t.showQuestion||!e.choices)){var d=n.find(".ac-question__title")[0],h=n.find(".ac-question__title-inner")[0],f=n.find(".ac-question__title-prefix")[0],p=n.find(".ac-answer-box")[0],g=getComputedStyle(d),y=Number(g.paddingTop.replace("px",""))||0,m=Number(g.paddingBottom.replace("px",""))||0,v=[];if(h?(v=t.splitDom(h,"questionTitleItem"),v.length&&(p&&(u=$(p).outerHeight(),v[0].answerBoxHeight=u,e.showAnswerBox&&(v[0].needAnswerBox=!0),l=v[0]),v[0].prefix=(null===f||void 0===f?void 0:f.outerHTML)||"",v[0].height+=y,v[v.length-1].height+=m,v.forEach((function(t){t.hasChoice=e.choices&&e.choices.length,t.titleAlign=e.titleAlign})))):f&&(v=[{type:"questionTitleItem",prefix:f.outerHTML,height:Math.max($(f).outerHeight()+y+m,p?$(p).outerHeight():0),content:"",needAnswerBox:!!p&&e.showAnswerBox}]),v.length){var _={children:v};c.children.push(_)}}if(e.choices)if(t.showQuestion){var b={},w=n.find(".ac-choice")[0];if(!1===e.choiceWrap)Object.assign(b,{type:"choiceItem",height:$(w).outerHeight(),content:w.outerHTML});else{var C=$(w).outerWidth(),A=$(w).find(".ac-choice__list").outerWidth();if(C>=A*e.choices.length)Object.assign(b,{type:"choiceItem",height:$(w).find(".ac-choice__list--all").outerHeight(),content:$(w).find(".ac-choice__list--all")[0].outerHTML});else{b.children=[];var x=$(w).find(".ac-choice__list .ac-choice__item"),T="ac-choice__list";!(e.choices.length%2)&&C>=2*A&&(T="ac-choice__list--half",x=$(w).find(".ac-choice__list--half .row-direction")),Array.from(x).forEach((function(t){b.children.push({type:"choiceItem",height:$(t).outerHeight(),content:t.outerHTML,wrapperClass:T})}))}}c.children.push(b)}else{var k=n.find(".ac-answer-box")[0];c.children.push({type:"plainBox",boxContent:e.plainTitle,height:t.continueObjectiveCount%5===0?$(k).outerHeight():0}),t.continueObjectiveCount++}else t.continueObjectiveCount=0;if(l){var E=0,S=function t(e){e.forEach((function(e){e.children?t(e.children):E+=e.height}))};S(c.children),u-E>0&&(l.height+=u-E)}if(i.push(c),e.essay){var I={type:"essay",essay:Object.assign({rowCount:4},e.essay),dataKey:r};if(a&&(a.essayRowCount=I.essay.rowCount,i.push(Object.assign({},a,{subtype:"beforeEssay"}))),e.essay.title){var O=n.find(".ac-essay__title")[0];I.essay.titleChildren=t.splitDom(O)}i.push(I)}},n=function n(a){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];a.forEach((function(a,s){var c=[].concat(u(o),[a[a.idProp||"id"]||s]),l=r.find(".ac-virtual__section[data-key=".concat(c.join("_"),"]"));if(Array.isArray(a.children)&&a.children.length){t.continueObjectiveCount=0;var d=l.find(".ac-virtual__title")[0];if(d||"complex"===a.code){var h={};if("complex"===a.code){var f=l.find(".ac-material__title-prefix")[0],p=l.find(".ac-material__title-inner")[0],g=[];p?(g=t.splitDom(p,"materialItem"),g.length&&(g[0].prefix=(null===f||void 0===f?void 0:f.outerHTML)||"",g[0].height+=16)):f&&(g=[{type:"materialItem",prefix:f.outerHTML,height:$(f).outerHeight()+16,content:""}]),h={dataKey:c.join("_"),children:g}}else h={dataKey:c.join("_"),height:$(d).outerHeight(),content:d.innerHTML,updatePage:a.updatePage,updatePiece:a.updatePiece};i.push(h)}if(a.prefixMarker){var y=l.find(".ac-mark-box.mark-prefix")[0];i.push({dataKey:c.join("_"),height:$(y).outerHeight(),content:y.outerHTML,type:"prefixMarker"})}if(n(a.children,c),a.suffixMarker){var m=l.find(".ac-mark-box.mark-suffix")[0];i.push({dataKey:c.join("_"),height:$(m).outerHeight(),content:m.outerHTML,type:"suffixMarker"})}}else{var v=null;if("graffiti"===t.readType){var _=l.find(".ac-graffiti__wrapper")[0];_&&(v={type:"graffiti",dataKey:c.join("_"),height:$(_).outerHeight(),content:_.innerHTML,subtype:"beforeTitle"},i.push(v))}e(a,l,c.join("_"),v)}}))},i=[],r=$(".ac-virtual"),a=r.find(".ac-basicInfo");if(a){var o=a.find(".ac-basicInfo__title"),s=a.find(".ac-attention"),c=a.find(".ac-basic-info__edu");i.push({type:"basicInfo",headHeight:null===o||void 0===o?void 0:o.outerHeight(),attentionHeight:null===s||void 0===s?void 0:s.outerHeight(),eduHeight:null===c||void 0===c?void 0:c.outerHeight()})}n(this.paperTree),this.$emit("change",i)},getTitle:function(t,e){var n=this.$createElement,i=t.title,r=t.prefix,a=t.plainTitle,o=t.code,s=this.editTitleList.find((function(t){return t.dataKey===e})),c=s||{},l=c.title,u=c.editKey,d=s?l:this.showQuestion||"complex"!==o?i:"",h=this.showQuestion?r:a;return d||h?n("div",{class:"ac-".concat("complex"===o?"material":"virtual","__title")},[h?n("div",{class:"ac-".concat("complex"===o?"material":"virtual","__title-prefix").concat(this.showQuestion?" is-bold":"").concat(d?" is-float":"")},[h]):null,d?n("div",{key:"virtual_title_".concat(u),class:"ac-".concat("complex"===o?"material":"virtual","__title-inner ck-content"),domProps:{innerHTML:d}}):null]):null},getList:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.$createElement;return t.map((function(t,r){var a=[].concat(u(n),[t[t.idProp||"id"]||r]);return i("div",{key:"".concat(r,"_").concat(t[t.idProp||"id"]||""),class:"ac-virtual__section",attrs:{"data-key":a.join("_")}},[Array.isArray(t.children)&&t.children.length?i("div",[e.getTitle(t,a.join("_")),t.prefixMarker?i("ac-mark-box",{attrs:{type:"prefix",title:t.prefixMarker.title}}):null,e.getList(t.children,a),t.suffixMarker?i("ac-mark-box",{attrs:{type:"suffix",title:t.suffixMarker.title}}):null]):i("div",["graffiti"!==e.readType||t.choices?null:i("ac-graffiti",{attrs:{scanName:t.scanName,score:t.score}}),t.material?i("ac-question-material",{key:"virtual_question_material_".concat(e.getEditedKey(a.join("_"))),props:m({},{dataKey:a.join("_"),material:t.material})}):null,i("ac-question",{key:"virtual_question_".concat(e.getEditedKey(a.join("_"))),props:m({},Object.assign({dataKey:a.join("_")},t))}),t.essay?i("ac-essay",{props:m({},Object.assign(t.essay,{title:e.getEssayTitle(a.join("_"),t.essay.title)}))}):null])])}))}},render:function(){var t=arguments[0];return t("div",{class:"ac-virtual",attrs:{id:"math-virtual"},key:"virtual_"+this.readType},[t("ac-basic-info"),this.getList(this.paperTree)])}},pt=ft,gt=Object(B["a"])(pt,ut,dt,!1,null,null,null),yt=gt.exports;yt.install=function(t){t.component(yt.name,yt)};var mt=yt,vt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-panel"},[t._l(t.formatPanelList,(function(n,i){return e("div",{key:i,staticClass:"ac-panel__item"},[e("div",{staticClass:"ac-piece__wrapper",style:{width:1===t.layout?"980px":"1960px"},attrs:{"data-page":i+1}},[t._l(n,(function(n,r){return e("ac-piece",{key:r,attrs:{"data-piece":i*t.layout+r,"data-page":i,list:n},on:{edit:t.handleEdit}})})),t.layout-n.length&&t.needRestrict?e("div",{staticClass:"ac-piece"},[e("ac-restrict")],1):t._e(),"graffiti"===t.readType?e("ac-mark-point",{attrs:{"page-index":i}}):t._e(),e("div",{staticClass:"ac-piece__footer"},[t._v(" "+t._s("第".concat(i+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")])],2)])})),e("ac-editor",{attrs:{visible:t.visible,content:t.editing.content||"",title:t.editorTitle},on:{"update:visible":function(e){t.visible=e},submit:t.handleSubmit}})],2)},_t=[],bt=(n("13d5"),function(){var t=this,e=t._self._c;return e("div",{ref:"restrictRef",class:["ac-restrict",t.lastOneClass],style:{width:t.$store.getters["AC/layout"]>2?"580px":"868px",height:t.realHeight,marginTop:"".concat(t.marginTop,"px")}},[t.isEntranceExams?e("div",{class:["entrance-border",t.layout>2&&"three-column_border",(1250===t.height||"100%"===t.height||t.isFirst)&&"show-border_top",t.isShowTipWord&&"show-border_word-top"]}):t._e(),t.isEntranceExams?e("div",{class:["entrance-outline",t.layout>2&&"three-column_outline",(1250===t.height||"100%"===t.height||t.isFirst)&&"show-outline_top",t.isShowTipWord&&"show-border_word-top"]}):t._e(),e("div",{staticClass:"ac-restrict__header"}),e("div",{staticClass:"ac-restrict__footer"})])}),wt=[],Ct={name:"AcRestrict",inject:["paddingBlock"],props:{height:{type:[Number,String],default:"100%"},marginTop:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isShowTipWord:{type:Boolean,default:!1},isLastOne:{type:Boolean,default:!1},lastOneClass:{type:String,default:""}},data:function(){return{realHeight:"100%"}},computed:{isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},layout:function(){return this.$store.getters["AC/layout"]}},watch:{height:function(){var t=this;this.$nextTick((function(){return t.updateHeight()}))}},mounted:function(){this.updateHeight()},methods:{updateHeight:function(){var t=this;if("number"===typeof this.height){if(1250!==this.height){var e=this.$refs.restrictRef,n=this.$parent.$el,i=n.clientHeight-(Object(it["e"])(e)+this.height);this.realHeight="".concat(i<68&&this.height+(i-68)>0?this.height+(i-68):this.height,"px")}else this.realHeight="".concat(this.height-5,"px");this.lastOneClass&&this.$nextTick((function(){return t.getDistanceToParentBottom()}))}else this.realHeight=this.height},getDistanceToParentBottom:function(){var t=document.getElementsByClassName(this.lastOneClass)[0],e=Object(it["c"])(t);this.realHeight="".concat(parseInt(this.realHeight)+e,"px")}}},At=Ct,xt=Object(B["a"])(At,bt,wt,!1,null,null,null),Tt=xt.exports;Tt.install=function(t){t.component(Tt.name,Tt)};var kt,Et,St=Tt,It={name:"AcPiece",components:{AcEssay:x["default"],AcAnswerBox:U["default"],AcBasicInfo:Z["default"],AcRestrict:St},props:{list:{type:Array,default:function(){return[]}}},inject:["paddingBlock","moveCallback","deleteCallback","editType","editCallback"],computed:{paperTree:function(){return this.$store.getters["AC/paperTree"]},readType:function(){return this.$store.getters["AC/readType"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},sizeType:function(){return this.$store.getters["AC/sizeType"]},pieceHeight:function(){return"K"===this.sizeType?"1357px":"1386px"},piecePadding:function(){return"number"===typeof this.paddingBlock?"".concat(this.paddingBlock,"px 0px"):"".concat(this.paddingBlock[0]||0,"px 0px ").concat(this.paddingBlock[1]||0,"px")}},methods:{getPlainTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},isWithSpace:function(t){var e=!1,n=t.split("_"),i=this.paperTree||[];return n.forEach((function(t,r){var a=i.find((function(e,n){return(e[e.idProp||"id"]||n).toString()===t}))||{};i=a.children||[],r===n.length-1&&(e=a.choices&&a.choices.length&&a.showAnswerBox)})),e},getSourceNode:function(t){var e=null,n=function n(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=0;a<i.length;a++){var o,s=i[a],c=[].concat(u(r),[s[s.idProp||"id"]||a]);if(t===c.join("_")){e=s;break}null!==(o=s.children)&&void 0!==o&&o.length&&n(s.children,c)}};return n(this.paperTree||[]),e},handleClick:function(t,e){var n;"text"===this.editType?null===(n=this.editCallback)||void 0===n||n.call(this,this.getSourceNode(t)):this.$emit("edit",t,e)},handleMove:function(t,e){var n;null===(n=this.moveCallback)||void 0===n||n.call(this,t,this.getSourceNode(e))},handleDelete:function(t){var e;null===(e=this.deleteCallback)||void 0===e||e.call(this,this.getSourceNode(t))},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})},getOperation:function(t){var e;return(null===(e=this.getSourceNode(t))||void 0===e?void 0:e.operation)||{}},getContent:function(t,e){var n,i=this,r=this.$createElement,a=null,o=this.getOperation(t.dataKey),s=o.editable,c=o.editLabel,l=o.moveUp,u=o.moveDown,d=o.deletable;switch(t.type){case"question":a=r("div",{key:"question_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-question ck-content"},[t.answerBoxType?r("div",{class:"ac-question__prefix"},[r("ac-answer-box",{attrs:{label:"answer"===t.answerBoxType?"答案":"得分",direction:"answer"===t.answerBoxType?"column":"row"}})]):null,r("div",{class:"ac-question__content"+("hand"!==this.readType&&!this.isWithSpace(t.dataKey)||t.answerBoxType?"":" with-space")},[s&&!t.following?r("el-button",{attrs:{type:"primary",size:"small"},class:"ac-question__edit",on:{click:function(){return i.handleClick(t.dataKey,c)}}},[c]):null,(l||u||d)&&!t.following?r("div",{class:"ac-question__operation"},[l?r("i",{class:"el-icon-top",on:{click:function(){return i.handleMove("up",t.dataKey)}}}):null,u?r("i",{class:"el-icon-bottom",on:{click:function(){return i.handleMove("down",t.dataKey)}}}):null,d?r("i",{class:"el-icon-delete",on:{click:function(){return i.handleDelete(t.dataKey)}}}):null]):null,null===(n=t.content)||void 0===n?void 0:n.map((function(t){return"string"===typeof t?r("div",{domProps:{innerHTML:t}}):t}))])]);break;case"essay":a=r("ac-essay",{key:"essay_".concat(e),attrs:{"data-key":t.dataKey||""},props:m({},t.content[0])});break;case"material":a=r("div",{key:"material_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-material ck-content"},[s&&!t.following?r("el-button",{class:"ac-material__edit",attrs:{type:"primary",size:"small"},on:{click:function(){return i.handleClick(t.dataKey,c)}}},[c]):null,r("div",{domProps:{innerHTML:t.content.join("")}})]);break;case"questionMaterial":a=r("div",{key:"question-material_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ck-content ac-question-material"},[r("div",{domProps:{innerHTML:t.content.join("")}})]);break;case"plainBox":a=r("div",{key:"question_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-question is-box".concat(t.isFollowBox?" is-follow":"")},[r("div",{class:"ac-question__prefix"},[r("ac-answer-box",{attrs:{label:this.getPlainTitle(t.dataKey)||t.boxContent,width:144,editable:!0,dataKey:t.dataKey}})])]);break;case"graffiti":a=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-graffiti__wrapper".concat("beforeEssay"===t.subtype?" is-bottom":""),domProps:{innerHTML:t.content}});break;case"basicInfo":a=r("ac-basic-info",{props:m({},t)});break;case"restrict":a=r("ac-restrict",{attrs:{height:t.height,marginTop:20}});break;case"prefixMarker":a=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-prefix-marker"},[r("div",{domProps:{innerHTML:t.content}})]);break;case"suffixMarker":a=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-suffix-marker"},[r("div",{domProps:{innerHTML:t.content}})]);break;default:a=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-piece__section"},[s&&"text"===this.editType?r("el-button",{attrs:{type:"primary",size:"small"},class:"ac-section__edit",on:{click:function(){return i.handleClick(t.dataKey)}}},[c]):null,(l||u||d)&&!t.following?r("div",{class:"ac-section__operation"},[l?r("i",{class:"el-icon-top",on:{click:function(){return i.handleMove("up",t.dataKey)}}}):null,u?r("i",{class:"el-icon-bottom",on:{click:function(){return i.handleMove("down",t.dataKey)}}}):null,d?r("i",{class:"el-icon-delete",on:{click:function(){return i.handleDelete(t.dataKey)}}}):null]):null,r("div",{attrs:{contenteditable:s&&"editor"===this.editType},domProps:{innerHTML:t.content},on:{blur:function(e){return"editor"===i.editType&&i.handleBlur(e,t.dataKey)}}})])}return a}},render:function(){var t=this,e=arguments[0];return e("div",{class:"ac-piece",style:{height:this.pieceHeight,padding:this.piecePadding}},[this.list.map((function(e,n){return t.getContent(e,n)}))])}},Ot=It,Pt=Object(B["a"])(Ot,kt,Et,!1,null,null,null),jt=Pt.exports;jt.install=function(t){t.component(jt.name,jt)};var Bt=jt,Lt=n("6bdf"),Rt=n("13ed"),Mt={name:"AcPanel",components:{AcPiece:Bt,AcEditor:Lt["default"],AcMarkPoint:Rt["default"],AcRestrict:St},props:{domList:{type:Array,default:function(){return[]}}},inject:["showStudentInfo","paddingBlock","needRestrict"],data:function(){return{panelList:[],visible:!1,editing:{},headHeight:0,attentionHeight:0,eduHeight:0,editorTitle:"编辑题目"}},computed:{formatPanelList:function(){var t=this,e=[];return this.panelList.forEach((function(n,i){i%t.layout===0?e.push([n]):e[e.length-1].push(n)})),e},paperTree:function(){return this.$store.getters["AC/paperTree"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},showAttention:function(){return this.$store.getters["AC/showAttention"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},readType:function(){return this.$store.getters["AC/readType"]},layout:function(){return this.$store.getters["AC/layout"]},latticeAttention:function(){return this.$store.getters["AC/latticeAttention"]},stuInfoLength:function(){return this.$store.getters["AC/studentInfo"].length},eduIdLength:function(){return this.$store.getters["AC/educationIdValue"]},registrationType:function(){return this.$store.getters["AC/registrationNumberType"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},pieceHeight:function(){var t="number"===typeof this.paddingBlock?2*this.paddingBlock:this.paddingBlock.reduce((function(t,e){return t+e}),0);return("K"===this.sizeType?1357:1386)-(t+10)},rowConfig:function(){return this.$store.getters["AC/rowConfig"]}},watch:{domList:function(t){t.length&&this.getPanelList()},panelFlag:function(){this.getPanelList()}},methods:{getRowCount:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.row?n.row:e},getBgType:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.bgType?n.bgType:e},handleEdit:function(t,e){var n={dataKey:t,content:"",hasChoice:!1},i=this.editTitleList.find((function(e){return e.dataKey===t}));if(null!==i&&void 0!==i&&i.title){var r=i.title,a=void 0===r?"":r,o=i.choices,s=void 0===o?[]:o;n.content+=a||"",s.length&&(n.hasChoice=!0,n.content+=s.map((function(t){return"<div class='ac-editor__choice'>".concat(t.identifier,".").concat(t.content,"</div>")})).join(""))}else{var c=t.split("_"),l=this.paperTree||[];c.forEach((function(t,e){var i=l.find((function(e,n){return(e[e.idProp||"id"]||n).toString()===t}))||{};l=i.children||[],e===c.length-1&&(n.content+=i.title||"",i.choices&&i.choices.length&&(n.hasChoice=!0,n.content+=i.choices.map((function(t){return"<div class='ac-editor__choice'>".concat(t.identifier,".").concat(t.content,"</div>")})).join("")))}))}this.editing=n,this.editorTitle=e,this.visible=!0},handleSubmit:function(t){var e=this.editing,n=e.dataKey,i=e.hasChoice,r={dataKey:n};if(i){var a=t.match(/<(p.*?\/p|figure.*?\/figure)>/g),o=/>[A-O]{1}[.\s.、]{0,1}/,s="",c=[],l=null;a.forEach((function(t){var e=t.match(o);if(e){var n=t.replace(o,">");l={identifier:e[0][1],content:"<p></p>"===n?"":n},c.push(l)}else l?l.content+=t:s+=t})),Object.assign(r,{title:s,choices:c})}else r.title=t;this.$store.dispatch("AC/paper/setEditTitle",r)},getBasicInfo:function(t){var e=null;return t?"graffiti"!==this.readType||t%(this.patchwork?4:2*this.layout)||(e={hideStudentInfo:!this.showStudentInfo,hideTitle:!0,hideAttention:!0,height:this.eduHeight}):e={hideStudentInfo:!this.showStudentInfo,hideAttention:!this.showAttention,height:this.headHeight+(this.showAttention?this.attentionHeight:0)+this.eduHeight},e},getPanelList:function(){var t=this,e=this.$createElement,n=[],i=0;n[i]=[];var r=this.pieceHeight,a=n[i],o=[],s=function(){var e=t.getBasicInfo(i);e&&(r-=e.height,a.push(Object.assign({type:"basicInfo"},e)))},c=function(){var e=n[i];if(i++,n[i]=[],r=t.pieceHeight,a=n[i],s(),"graffiti"===e[e.length-1].type){var o=e[e.length-1];e.pop(),a.push(o),r-=o.height}},l=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,a=["","inner"].includes(i)?0:30,o=r-(n?32:0)-a;return Math.floor((o+e)/(t+e))},u=function(n,i,r){var o=!1,s="",c="",l=!1,u=n.map((function(n){var a="";switch(n.type){case"choice":a="<div class=".concat(n.className,">").concat(n.children.join(""),"</div>");break;case"questionTitle":var u;o=n.isFirst,n.needAnswerBox&&(s="score"),n.hasChoice&&n.needAnswerBox&&(s="answer");var d=n.children.join(""),h=!(null===(u=n.prefix)||void 0===u||!u.match(/class="([^"]*?)is-float([^"]*?)"/));a=e("div",{class:"ac-question__title",style:n.titleAlign?"text-align: ".concat(n.titleAlign):""},[n.prefix?e("div",{attrs:{contentEditable:!0},domProps:{innerHTML:n.prefix},style:h?"float: left; position: relative; z-index: 1;":"",on:{blur:function(e){return t.handleTitlePrefixBlur(e,i)}}}):null,d?e("div",{class:"ac-question__title-inner",domProps:{innerHTML:d}}):null]);break;case"essayArea":a=n.essayConfig;break;case"material":o=n.isFirst,r="material";var f=n.children.join("");a="<div class='ac-material__title'>".concat(n.prefix||"").concat(f?"<div class='ac-material__title-inner'>".concat(f,"</div>"):"","</div>");break;case"questionMaterial":r="questionMaterial";var p=n.children.join("");a="<div class='ac-question-material__inner'>".concat(p,"</div>");break;case"plainBox":r="plainBox",c=n.boxContent,l=n.isFollow;break;default:a=n.content}return a}));n.length=0,a.push({type:r,dataKey:i,content:u,answerBoxType:s,boxContent:c,isFollowBox:l,following:!o})},d=function(e,n,i){var a=e.rowHeight,o=e.rowGap,s=e.titleChildren,d=e.borderType,h=t.getRowCount(n,e.rowCount),f=t.getBgType(n,e.bgType),p=t.rowConfig[f]||{};a="number"===typeof a?a:p.rowHeight||0,o="number"===typeof o?o:p.rowGap||0,r<30&&c();var g={type:"essayArea"};if(s){var y="";s.forEach((function(t,a){r>=t.height+(a?0:32)?(y+=t.content,r-=t.height+(a?0:32)):(y&&i.push({type:"essayArea",essayConfig:Object.assign({},e,{row:0,title:y,rowCount:h,bgType:f})}),i.length&&u(i,n,"essay"),c(),y=t.content,r-=t.height+32)})),y?Object.assign(g,{essayConfig:Object.assign({},e,{row:0,title:y,rowCount:h})}):g=null}else g=null;if(!h)return g?i.push(g):(i.push({type:"essayArea",essayConfig:Object.assign({},e,{rowCount:0,row:0,bgType:f})}),r-=30),void u(i,n,"essay");var m=h;while(m){var v=l(a,o,!g,d);if(v<1)g&&(i.push(g),g=null),i.length&&u(i,n,"essay"),c();else if(v<m)i.push({type:"essayArea",essayConfig:Object.assign({},e,{startRow:h-m,row:v,rowCount:h,bgType:f,title:g&&g.essayConfig?g.essayConfig.title:""})}),g&&(g=null),u(i,n,"essay"),c(),m-=v;else{i.push({type:"essayArea",essayConfig:Object.assign({},e,{startRow:h-m,row:m,rowCount:h,bgType:f,title:g&&g.essayConfig?g.essayConfig.title:""})});var _=["","inner"].includes(d)?0:30;r-=m*(a+o)-o+(g?0:32)+_,m=0,g&&(g=null)}}},h=function t(e,n,i){e.forEach((function(e,a){if(e.children)t(e.children,n,i);else{var o=e.height;if(!a&&e.answerBoxHeight&&(o=Math.max(o,e.answerBoxHeight)),r<o&&(i.length&&u(i,n,"question"),c(),["questionTitleItem","materialItem","questionMaterialItem"].includes(e.type)&&a&&(e.height+=16)),r>=e.height){switch(e.type){case"choiceItem":i.length&&"choice"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"choice",className:e.wrapperClass,children:[e.content]});break;case"questionTitleItem":i.length&&"questionTitle"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"questionTitle",prefix:e.prefix,children:[e.content],isFirst:!a,hasChoice:e.hasChoice,needAnswerBox:e.needAnswerBox,titleAlign:e.titleAlign});break;case"questionMaterialItem":i.length&&"questionMaterial"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"questionMaterial",children:[e.content]});break;case"materialItem":i.length&&"material"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"material",prefix:e.prefix,children:[e.content],isFirst:!a});break;case"plainBox":i.push({type:"plainBox",isFollow:!e.height,boxContent:e.boxContent});break;default:i.push(e.content)}r-=e.height}}}))},f=JSON.parse(JSON.stringify(this.domList));f.forEach((function(e){if(e){if(e.updatePiece)c();else if(e.updatePage)for(var i=2*t.layout,l=i-(n.length%i||i)+1,f=0;f<l;f++)c();if(e.children)e.children&&(h(e.children,e.dataKey,o),o.length&&u(o,e.dataKey,"question"));else switch(e.type){case"essay":d(e.essay,e.dataKey,o),o.length&&u(o,e.dataKey,"essay");break;case"basicInfo":t.headHeight=e.headHeight||0,t.attentionHeight=t.latticeAttention.height||e.attentionHeight||0,t.showStudentInfo&&(t.showEducationId?t.eduHeight=t.eduIdLength>10&&0!==t.registrationType?48*Math.ceil(t.stuInfoLength/3)+30+310:310:t.eduHeight=48*Math.ceil(t.stuInfoLength/3)),s();break;case"graffiti":var p=t.getRowCount(e.dataKey,e.essayRowCount||0);if(e.subtype===(p?"beforeTitle":"beforeEssay"))break;default:r<e.height&&c(),r>=e.height&&(a.push({type:e.type||"",dataKey:e.dataKey,content:e.content,height:e.height,subtype:e.subtype}),r-=e.height)}}})),this.needRestrict&&r>44&&n[n.length-1].push({type:"restrict",height:r-10}),this.panelList=n},handleTitlePrefixBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{prefix:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})}}},$t=Mt,Nt=Object(B["a"])($t,vt,_t,!1,null,null,null),zt=Nt.exports;zt.install=function(t){t.component(zt.name,zt)};var Dt=zt,Ut=n("cf03"),Ht=n.n(Ut),Ft=n("c4e3"),Kt=n.n(Ft),Wt=n("21a6"),Vt=n.n(Wt),Yt={name:"AcLattice",components:{AcVirtual:mt,AcPanel:Dt},inject:["uploadOss","paperTitle","needEssayBg"],data:function(){return{domList:[],bgUrlList:[],scanZipUrl:""}},computed:{educationIdValue:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},candidateNumColor:function(){return this.$store.getters["AC/candidateNumColor"]},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},paperTree:function(){return this.$store.getters["AC/paperTree"]},readType:function(){return this.$store.getters["AC/readType"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},UploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(C["a"])(this,e),this.file=t}return Object(A["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,i){t(e.file,n)}))}}]),e}()}},methods:{setDomList:function(t){this.domList=t},getPageImage:function(){return new Promise((function(t,e){var n=$(".ac-panel .ac-piece__wrapper");Object(it["d"])(n).then((function(e){return t(e)})).catch((function(){return t([])}))}))},download:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("graffiti"!==t.readType){e.next=8;break}if(!($(".ac-piece__wrapper").length>16)){e.next=4;break}return t.$message({showClose:!0,message:"涂点形式答题卡不能超过16页,请更换调整作答区域或更换试卷",type:"error"}),e.abrupt("return");case 4:return e.next=6,t.getZipContent();case 6:n=e.sent,t.scanZipUrl=n||"";case 8:if(!t.needEssayBg){e.next=11;break}return e.next=11,t.getAreaImages();case 11:return e.next=13,t.getPositionData();case 13:return i=e.sent,e.next=16,t.getPageImage();case 16:return r=e.sent,a="K"===t.sizeType?1===t.layout?[552.76,765.35]:[765.35,1105.51]:1===t.layout?"a4":"a3",o=new Ht.a(1===t.layout?"p":"l","pt",a),r.forEach((function(e,n){var i=1===t.layout?"K"===t.sizeType?552.76:595.28:"K"===t.sizeType?1105.51:1190.55,a="K"===t.sizeType?765.35:841.89;o.addImage(e,"JPEG",0,0,i,a),n!==r.length-1&&o.addPage()})),s="".concat(t.$store.getters["AC/title"].replace(/\n/g,"")),c=o.output("blob"),l="".concat(("K"===t.sizeType?195:210)*t.layout,"mm*").concat("K"===t.sizeType?270:297,"mm"),u={file:c,positionList:i,paperSize:l,pageImgs:r,pdfName:s},t.scanZipUrl&&(u.scanZipUrl=t.scanZipUrl),e.abrupt("return",u);case 26:case"end":return e.stop()}}),e)})))()},getPositionData:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],i=function(e,n,i){var r=i||$(e).parents(".ac-piece__wrapper"),a=r.offset(),o=a.left,s=a.top,c=$(e).offset(),l=c.left,u=c.top,d=l-o,h=d+$(e).outerWidth(),f=u-s,p=f+$(e).outerHeight(),g={page_left_top:"(".concat(t.pxToAU(d),",").concat(t.pxToAU(f),")"),page_right_bottom:"(".concat(t.pxToAU(h),",").concat(t.pxToAU(p),")"),question_page:r.data("page")};if("hand"===t.readType&&n){var y=$(e).find(".ac-answer-box")[0];if(y){var m=$(y).offset(),v=m.left,_=m.top;Object.assign(g,{mark_left_top:"(".concat(t.pxToAU(v-o),",").concat(t.pxToAU(_-s),")"),mark_right_bottom:"(".concat(t.pxToAU(v-o+$(y).outerWidth()),",").concat(t.pxToAU(_-s+$(y).outerHeight()),")")})}}return g},r=function(e){var n=[];return e.forEach((function(t){var e=$(t).parents(".ac-piece__wrapper"),i=e.data("page"),r=e.offset(),a=r.left,o=r.top,s=$(t).offset(),c=s.left,l=s.top,u=c-a,d=u+$(t).outerWidth(),h=l-o,f=h+$(t).outerHeight(),p=n.find((function(t){return t.question_page===i}));p?(p.leftPosition=Math.min(p.leftPosition,u),p.rightPosition=Math.max(p.rightPosition,d),p.topPosition=Math.min(p.topPosition,h),p.bottomPosition=Math.max(p.bottomPosition,f)):n.push({question_page:i,leftPosition:u,rightPosition:d,topPosition:h,bottomPosition:f})})),n.map((function(e){var n=e.leftPosition,i=e.rightPosition,r=e.topPosition,a=e.bottomPosition,o=e.question_page;return{page_left_top:"(".concat(t.pxToAU(n),",").concat(t.pxToAU(r),")"),page_right_bottom:"(".concat(t.pxToAU(i),",").concat(t.pxToAU(a),")"),question_page:o}}))},a=function(t,e){var a=e.join("_"),o=$(".ac-panel"),s=u(o.find("div[data-key=".concat(a,"]"))),c=[],l={},d={};if(t.prefixMarker){var h=o.find(".ac-prefix-marker[data-key=".concat(a,"]"));Object.assign(l,i(h))}if(t.suffixMarker){var f=o.find(".ac-suffix-marker[data-key=".concat(a,"]"));Object.assign(d,i(f))}var p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=[];return e.forEach((function(e,a){var s=[],l=[].concat(u(n),[a]),d=o.find('div[data-key="'.concat(l.join("_"),'"]'));if(s.push.apply(s,u(d)),e.children&&s.push.apply(s,u(t(e.children,l))),e.positionInfo){var h=r(s);c.push.apply(c,u(h.map((function(t){return m(m({},t),e.positionInfo)}))))}i.push.apply(i,s)})),i};s.push.apply(s,u(p(t.children,e)));var g=r(s);n.push.apply(n,u(g.map((function(e){return m(m({subQuestionPositions:c,prefixMarkerInfo:l,suffixMarkerInfo:d},e),t.positionInfo)}))))},o=function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];r.forEach((function(r,s){var c=[].concat(u(o),[r[r.idProp||"id"]||s]);if(r.prefixMarker||r.suffixMarker)a(r,c);else if(Array.isArray(r.children)&&r.children.length)e(r.children,c);else{var l=c.join("_"),d=$(".ac-panel");if(r.choices){var h=d.find(".ac-question[data-key=".concat(l,"] .ac-answer-box"))[0];h&&n.push(Object.assign(i(h),r.positionInfo||{}))}else if(r.essay){var f=t.editEssayList.find((function(t){return t.dataKey===l}))||{},p="number"===typeof f.row?0===f.row:0===r.essay.rowCount,g=f.title||r.essay.title,y=[];if(p){var m=g?".ac-essay__wrapper[data-key=".concat(l,"]"):".ac-question[data-key=".concat(l,"]");y=d.find(m)}else y=d.find("".concat("hand"===t.readType?".ac-question[data-key=".concat(l,"],"):"",".ac-essay__wrapper[data-key=").concat(l,"]").concat("area"===r.essay.range?" .ac-essay__area":""));for(var v=(t.bgUrlList.find((function(t){return t.dataKey===l}))||{}).bgUrls||[],_=0;_<y.length;_++){var b=i(y[_],!0);v[_]&&(b.backGroundImage=v[_]),n.push(Object.assign(b,r.positionInfo||{}))}}else for(var w=d.find(".ac-question[data-key=".concat(l,"]")),C=0;C<w.length;C++){var A=i(w[C],!0);n.push(Object.assign(A,r.positionInfo||{}))}}}))},o(t.paperTree),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))()},pxToAU:function(t){var e="K"===this.sizeType?195:210;return Math.floor(t*e*8/294*100)/100},getAreaImages:function(){var t=this;return w(_().mark((function e(){var n,i,r,a;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],i=$(".ac-panel"),r=function e(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];r.forEach((function(r,o){var s=[].concat(u(a),[r[r.idProp||"id"]||o]);if(Array.isArray(r.children)&&r.children)e(r.children,s);else if(r.essay){var c=s.join("_"),l=t.editEssayList.find((function(t){return t.dataKey===c}))||{},d="number"===typeof l.row?0===l.row:0===r.essay.rowCount,h=l.title||r.essay.title;d?n.push({dataKey:c,domArr:i.find(".ac-question[data-key=".concat(c,"]"))}):h&&n.push({dataKey:c,domArr:i.find("".concat("hand"===t.readType?".ac-question[data-key=".concat(c,"],"):"",".ac-essay__wrapper[data-key=").concat(c,"]"))})}}))},r(t.paperTree),a=[],n.forEach((function(e){e.domArr.length&&a.push(new Promise((function(n,i){Object(it["d"])(e.domArr,4,"K"===t.sizeType?5200:5600).then((function(i){var r=i.map((function(t){return Object(it["a"])(t)})),a=[];r.forEach((function(e){var n=new t.UploadAdapter(e);a.push(n.upload())})),Promise.allSettled(a).then((function(t){t.forEach((function(t,e){var n;i[e]="fulfilled"===t.status?"https://".concat(null===t||void 0===t||null===(n=t.value)||void 0===n?void 0:n.url):""})),e.bgUrls=i,n()}))})).catch((function(){return n()}))})))})),e.next=8,Promise.allSettled(a);case 8:t.bgUrlList=n;case 9:case"end":return e.stop()}}),e)})))()},getZipContent:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u,d,h,f;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),i=$(".ac-piece__wrapper"),r=1===t.registrationNumberType,a=new Kt.a,o="".concat(n,"模板_").concat(n,"_").concat(2===t.layout?"A3":"A4","_").concat("#000000"===t.candidateNumColor?"黑白":"彩色","_").concat(i.length,"_").concat(r?"涂点":"条码","_").concat(r?"10":"-1","_").concat(r?t.educationIdValue:"-1","_涂点_涂点.xml"),a.file(o,t.getXMLData()),s=[],Array.from(i).forEach((function(t,e){s.push({dom:t,name:"".concat(e+1,".png")}),e%2||(s.push({dom:$(t).find(".mark-point__top-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoshang.jpg")}),s.push({dom:$(t).find(".mark-point__top-right .mark-point__box")[0],name:"第".concat(e+1,"页_youshang.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoxia.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-right .mark-point__box")[0],name:"第".concat(e+1,"页_youxia.jpg")}))})),e.next=10,Object(it["d"])(s.map((function(t){return t.dom})),1);case 10:return c=e.sent,c.forEach((function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),o=r.length,c=new Uint8Array(o);while(o--)c[o]=r.charCodeAt(o);a.file(s[e].name,new Blob([c],{type:i}),{base64:!0})})),e.next=14,a.generateAsync({type:"blob"});case 14:return l=e.sent,u="".concat(n,"模板.zip"),d=new File([l],u,{type:"zip"}),Vt()(l,u),h=new t.UploadAdapter(d),e.next=21,h.upload();case 21:return f=e.sent,e.abrupt("return","https://"+f.url);case 23:case"end":return e.stop()}}),e)})))()},getXMLData:function(){var t=this,e=[],n=$(".ac-piece__wrapper"),i=function(n,i){var r=$(n).offset(),a=r.left,o=r.top,s=$(n).find(".mark-point__top-left")[0],c=$(s).offset(),l=c.left,u=c.top,d=$(n).find("[data-export_name]");Array.from(d).forEach((function(n){var r=$(n),s="absolute"===r.data("scan-type"),c={Type:"AnswerArea",Name:r.data("export_name"),Page:i,X:Math.floor(r.offset().left-(s?a:l)),Y:Math.floor(r.offset().top-(s?o:u)),Width:Math.ceil(r.outerWidth()),Height:Math.ceil(r.outerHeight())};"考号"===r.data("export_name")&&(c.Rows=10,c.Columns=t.educationIdValue),e.push(c)}))},r=function(t,n){var i=$(t).find(".mark-point__top-left")[0],r=$(i).offset(),a=r.left,o=r.top,s=$(t).find("[data-scan-type=review]");Array.from(s).forEach((function(t){var i=$(t),r={Type:"ReviewArea",Name:i.data("scan-name"),Page:n,X:i.offset().left-a,Y:i.offset().top-o,Width:i.outerWidth(),Height:i.outerHeight(),MaxScore:i.data("scan-score")};String(r.X).indexOf(".")>-1&&(r.X=Math.floor(r.X),r.Width+=1),String(r.Y).indexOf(".")>-1&&(r.Y=Math.floor(r.Y),r.Height+=1),r.Width=Math.ceil(r.Width),r.Height=Math.ceil(r.Height),e.push(r)}))};Array.from(n).forEach((function(t,e){i(t,"第".concat(e+1,"页")),r(t,"第".concat(e+1,"页"))}));var a='<?xml version="1.0" encoding="utf-8"?>';return a+='<answerSheet isNew="true" isYcProject="true" isYCLattice="true" layout="'.concat(this.layout,'" ').concat(this.readType&&'readType="2"',">"),a+=this.getXMLStringFromArray(e),a+="</answerSheet>",a},getXMLStringFromArray:function(t){var e=function(t){return Object.keys(t).map((function(e){return"Type"!==e?"<".concat(e,">").concat(t[e],"</").concat(e,">"):""})).join("")};return t.map((function(t){return"<".concat(t.Type,">").concat(e(t),"</").concat(t.Type,">")})).join("")}}},Zt=Yt,Gt=Object(B["a"])(Zt,h,f,!1,null,null,null),qt=Gt.exports,Qt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-sweep"},[e("ac-sweep-virtual",{attrs:{tree:t.sweepPaperTree},on:{change:t.setDomList,"build-failed":t.buildFailed}}),e("ac-sweep-panel",{attrs:{"dom-list":t.domList}})],1)},Xt=[],Jt=function(){var t=this,e=t._self._c;return e("div",{class:["ac-sweep__choice",t.showBorder&&"is-border",t.isShowBorderBottom&&"is-border-bottom"],attrs:{"data-key":t.dataKey}},[Array.isArray(t.listData)?t._l(t.listData,(function(n,i){return e("div",{key:i,staticClass:"ac-sweep__choice-wrapper"},[e("ul",{class:["ac-sweep__choice-box"],style:{gridTemplateColumns:"repeat(".concat(n.questionsWidth.length,", auto)"),gridTemplateRows:"repeat(".concat(Math.ceil(n.questions.length/n.questionsWidth.length),", auto)"),gridAutoFlow:t.objectiveOrder}},t._l(n.questions,(function(n,r){return e("li",{key:"".concat(i,"_").concat(r),ref:"choiceEach_".concat(i,"_").concat(r),refInFor:!0,staticClass:"ac-sweep__choice-each"},[e("span",{staticClass:"choice-title",style:{width:t.isComplex?"50px":"20px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,"".concat(i,"_").concat(r))}}},[t._v(" "+t._s(t.getBeforeChinese(n.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item",staticStyle:{width:"100px",height:"100%","border-bottom":"1px solid #333"}})])})),0)])})):[e("div",{staticClass:"ac-sweep__choice-wrapper"},[e("ul",{staticClass:"ac-sweep__choice-box"},[e("li",[e("span",{staticClass:"choice-title",attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,"0")}}},[t._v(" "+t._s(t.getBeforeChinese(t.list.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item",staticStyle:{width:"100px",height:"100%","border-bottom":"1px solid #333"}})])])])]],2)},te=[],ee={name:"AcSweepChoice",components:{},props:{list:{type:[Array,Object]},showBorder:{type:Boolean,default:!0},isShowBorderBottom:{type:Boolean,default:!1},isComplex:{type:Boolean,default:!1},dataKey:{type:[String,Number]}},computed:{layout:function(){return this.$store.getters["AC/layout"]},objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]}},watch:{objectiveOrder:function(t){this.convertTree(this.list)}},mounted:function(){this.convertTree(this.list)},data:function(){return{listData:null}},methods:{getBeforeChinese:function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);return-1===n?t:t.slice(0,n)}},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:"".concat(this.dataKey,"_").concat(e)})},convertTree:function(t){if(Array.isArray(t)){for(var e=[],n=["single_choice","multiple_choice","judgment"],i=0;i<t.length;i++){var r=t[i];n.includes(r.code)&&(0!==i&&n.includes(t[i-1].code)||e.push({questions:[],questionsWidth:[]}),e[e.length-1].questions.push(r))}this.listData=e,this.getChoiceWidth(this.listData)}},getChoiceWidth:function(t){var e=this;t.forEach((function(t){t.questions.forEach((function(n){t.questionsWidth.push(100+(e.isComplex?50:20)+28)}))})),this.listData.forEach((function(t){t.questionsWidth=e.designLayout(e.objectiveOrder,t.questionsWidth)}))},designLayout:function(t,e){var n=$(".ac-sweep__choice").innerWidth()-64,i=function(t){return t.reduce((function(t,e){return Math.max(t,e)}),0)},r=function(t){return t.reduce((function(t,e){return Math.min(t,e)}),n)},a=function(t,i){var r=[];return e.forEach((function(n,a){var o="row"===i?a%t:Math.floor(a/Math.ceil(e.length/t));r[o]=Math.max(r[o]||0,n)})),n-r.reduce((function(t,e){return t+e}),0)},o=i(e),s=r(e),c=Math.floor(n/o),l=c,u=!0;while(u){var d=a(l,t);d<s||l>=e.length?(u=!1,d<0&&(l-=1)):l+=1}var h=Array(l).fill("").map((function(n,i){return e.filter((function(n,r){if("row"===t)return r%l===i;var a=Math.ceil(e.length/l);return r<(i+1)*a&&r>=i*a}))}));return h}}},ne=ee,ie=Object(B["a"])(ne,Jt,te,!1,null,null,null),re=ie.exports;re.install=function(t){t.component(re.name,re)};var ae=re,oe=function(){var t=this,e=t._self._c;return e("div",{class:["ac-sweep__composite",t.lastOneClass,t.showBorder&&"is-border",t.isShowBorderBottom&&"is-border-bottom",t.isHideBorderTop&&"hide-border-top",t.isPaddingTop&&"is-padding-top",0===t.answerMode&&"is-scan"],style:{paddingBottom:"".concat(t.additionalPadding,"px"),paddingRight:1===t.subjectiveReviewType?"112px":"32px"},attrs:{"data-key":t.dataKey,type:"composite","page-index":t.pageIndex}},[0===t.answerMode&&1===t.subjectiveReviewType?e("div",{staticClass:"score-box"}):t._e(),e("div",{ref:"compositeContent",staticClass:"ac-sweep__composite-title",class:{"with-padding":0===t.answerMode&&1===t.subjectiveReviewType},staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(t.getTitle)}}),t.isEntranceExams?e("div",{class:["entrance-border",t.layout>2&&"three-column_border",t.isFirst&&"show-border_top",t.isShowTipWord&&"show-border_word-top",t.isLastOne&&"show-border_bottom"]}):t._e(),t.isEntranceExams?e("div",{class:["entrance-outline",t.layout>2&&"three-column_outline",t.isFirst&&"show-outline_top",t.isShowTipWord&&"show-outline_word-top",t.isLastOne&&"show-outline_bottom"]}):t._e(),e("el-button",{staticClass:"edit-btn",attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v(" 编辑答题区 ")]),e("ac-editor",{attrs:{visible:t.editorVisible,content:t.editContent,title:"编辑答题区","editor-id":"essay-editor_".concat(Date.now().toString(36))},on:{"update:visible":function(e){t.editorVisible=e},submit:t.handleSubmit}})],1)},se=[],ce={name:"AcSweepComposite",components:{AcEditor:Lt["default"]},inject:["paddingBlock"],props:{title:{type:String,default:""},blankNum:{type:Number,default:0},showBorder:{type:Boolean,default:!0},isShowBorderBottom:{type:Boolean,default:!1},isHideBorderTop:{type:Boolean,default:!1},dataKey:{type:String,default:""},isComplex:{type:Boolean,default:!1},isPaddingTop:{type:Boolean,default:!1},pageIndex:{type:Number,default:0},ctnType:{type:String,default:"virtual"},isFirst:{type:Boolean,default:!1},isShowTipWord:{type:Boolean,default:!1},isLastOne:{type:Boolean,default:!1},lastOneClass:{type:String,default:""},height:{type:Number,default:0},lineWidth:{type:Array,default:function(){return[]}}},computed:{answerMode:function(){return this.$store.getters["AC/answerCardMode"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},layout:function(){return this.$store.getters["AC/layout"]},getTitle:function(){var t=this;if("piece"===this.ctnType)return this.title;var e=this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{},n=new Array(this.blankNum).fill("").map((function(e,n){return'<span style="display: inline; line-height: 40px; vertical-align: text-top; overflow-wrap: anywhere; '.concat(t.isEntranceExams&&"color: #EB617E;",'"><u>').concat(" ".repeat(t.lineWidth[n]),"</u></span>")}));return e.title||'<span style="white-space: nowrap;">'.concat(this.title,"</span>").concat(n.join('<span style="line-height: 40px; vertical-align: text-top;">、</span>'))},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]}},watch:{lastOneClass:{immediate:!0,handler:function(t,e){var n=this;!t&&e&&(this.additionalPadding=0,this.lastAdditionPadding=0),t&&this.$nextTick((function(){return n.getDistanceToParentBottom()}))}}},mounted:function(){},data:function(){return{editorVisible:!1,editContent:"",additionalPadding:void 0,lastAdditionPadding:0}},methods:{getFullTitle:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.$refs.compositeContent.innerHTML},handleEdit:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/paper/setEditTitle",{dataKey:this.dataKey,title:t}),this.$store.dispatch("AC/paper/resetPanel")},getDistanceToParentBottom:function(){var t=document.getElementsByClassName(this.lastOneClass)[0],e=Object(it["c"])(t)+this.lastAdditionPadding;this.lastAdditionPadding=Math.max(e,0),this.additionalPadding=e>0?e:0}}},le=ce,ue=Object(B["a"])(le,oe,se,!1,null,null,null),de=ue.exports;de.install=function(t){t.component(de.name,de)};var he,fe,pe=de,ge={name:"AcSweepComplex",components:{AcSweepChoice:ae,AcSweepCompletion:pe,AcEssay:x["default"],AcEditor:Lt["default"]},props:{list:{type:[Array,Object]},isShowBorderBottom:{type:Boolean,default:!1},dataKey:{type:String,default:""}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title}},watch:{list:function(){this.init()}},created:function(){this.init()},data:function(){return{listTree:null,editorVisible:!1,editContent:""}},methods:{init:function(){this.listTree=this.convertTree(this.list)},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},convertTree:function(t){for(var e=t.children,n=[],i=0;i<e.length;i++){var r=e[i];("single_choice"===r.code||"multiple_choice"===r.code||"judgment"===r.code)&&i<e.length-1&&("single_choice"===e[i+1].code||"multiple_choice"===e[i+1].code||"judgment"===e[i+1].code)?(n.push([r,e[i+1]]),i++):n.push(r)}return t.children=n,t},getFullTitle:function(){var t=this;return(this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.listTree.title},editTitle:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.editorVisible=!1},getList:function(t){var e=this,n=this.$createElement;return t.map((function(t,i){return n("div",{key:"".concat(i,"_").concat(t[t.idProp||"id"]||""),class:!t.code&&!Array.isArray(t)&&"ac-sweep__virtual-section",attrs:{"data-key":t.dataKey,"question-code":t.code}},[Array.isArray(t.children)&&t.children.length&&"complex"!==t.code?n("div",{class:"ac-sweep__virtual-box"},[!t.code&&e.getTitle(t,t.dataKey),e.getList(t.children)]):n("div",[Array.isArray(t)||"single_choice"===t.code||"multiple_choice"===t.code||"judgment"===t.code?n("ac-sweep-choice",{props:m({},{list:t,showBorder:!1,dataKey:t.dataKey,isComplex:!0})}):null,"completion"===t.code?n("ac-sweep-completion",{key:"virtual_question_".concat(e.getEditedKey(t.dataKey)),props:m({},Object.assign(t,{dataKey:t.dataKey,isComplex:!0,showBorder:!0}))}):null,"subjectivity"===t.code?n("ac-essay",{props:m({},Object.assign(t.essay,{title:e.getEssayTitle(t.dataKey,t.title),hiddenBorderBoth:!1}))}):null,"complex"===t.code?n("ac-sweep-complex",{props:m({},{list:t,dataKey:t.dataKey})}):null])])}))}},render:function(){var t=arguments[0];return t("div",{class:"ac-sweep__complex ".concat(this.isShowBorderBottom&&"is-border-bottom")},[this.listTree.title?t("p",{class:"ac-sweep__complex-title",on:{click:this.editTitle},domProps:{innerHTML:this.getLiContent?this.getLiContent:this.listTree.title}}):null,this.getList(this.listTree.children),t("ac-editor",{attrs:{visible:this.editorVisible,content:this.editContent,title:"编辑答题区",editorId:"essay-editor_".concat(Date.now().toString(36))},on:{submit:this.handleSubmit}})])}},ye=ge,me=Object(B["a"])(ye,he,fe,!1,null,null,null),ve=me.exports;ve.install=function(t){t.component(ve.name,ve)};var _e,be,we=ve,Ce={name:"AcSweepVirtual",components:{AcSweepChoice:ae,AcSweepCompletion:pe,AcSweepComplex:we,AcEssay:x["default"],AcBasicInfo:Z["default"]},props:{tree:{type:Array,default:function(){return[]}}},computed:{sweepPaperTree:function(){return this.$store.getters["AC/sweepPaperTree"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]},layout:function(){return this.$store.getters["AC/layout"]},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},readType:function(){return this.$store.getters["AC/readType"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]},choiceConfig:function(){return this.$store.state.AC.sweep.choice},plainChoiceConfig:function(){return this.$store.state.AC.sweep.plainChoice},choiceHeight:function(){return 1===this.objectiveAnswerType?this.choiceConfig.itemHeight:this.plainChoiceConfig.itemHeight}},watch:{panelFlag:function(){var t=this;this.$nextTick((function(){return t.getDomList()}))}},updated:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},mounted:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},errorCaptured:function(){this.$emit("build-failed")},data:function(){return{}},methods:{handleLatex:function(){return nt("math-virtual")||Promise.resolve()},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},getTitle:function(t,e){var n=this,i=this.$createElement,r=this.editTitleList.find((function(t){return t.dataKey===e}))||t,a=r.title;return i("div",{class:"ac-sweep__virtual-head",attrs:{contenteditable:!0,"data-key":e},domProps:{innerHTML:a},on:{blur:function(t){return n.handleBlur(t,e)}}})},getList:function(t){var e=this,n=this.$createElement;return t.map((function(i,r){return n("div",{key:"".concat(r,"_").concat(i[i.idProp||"id"]||""),class:("sectionHead"===i.code||!i.code)&&!Array.isArray(i)&&"ac-sweep__virtual-section",attrs:{"data-key":i.dataKey||r,"question-code":i.code}},[Array.isArray(i.children)&&i.children.length&&"complex"!==i.code?n("div",{class:"ac-sweep__virtual-box"},[("sectionHead"===i.code||!i.code)&&e.getTitle(i,i.dataKey||r),e.getList(i.children)]):n("div",[(e.layout>1?r%(2*e.layout)===0:e.patchwork?(r+1)%4===1:r%2===0)?n("ac-basic-info"):null,Array.isArray(i)||"single_choice"===i.code||"multiple_choice"===i.code||"judgment"===i.code?n("div",{key:"objective_".concat(e.objectiveAnswerType)}):null,"completion"===i.code?n("ac-sweep-completion",{key:"virtual_question_".concat(e.getEditedKey(i.dataKey)),props:m({},Object.assign({dataKey:i.dataKey},i,{isShowBorderBottom:r===t.length-1,isPaddingTop:t[r-1]&&"completion"!==t[r-1].code&&"complexTitle"!==t[r-1].code}))}):null,"subjectivity"===i.code?n("ac-essay",{props:m({},Object.assign(i.essay,{title:e.getEssayTitle(i.dataKey,i.title)}))}):null,"complex"===i.code?n("ac-sweep-complex",{props:m({},{list:i,isShowBorderBottom:r===t.length-1,dataKey:i.dataKey})}):null])])}))},splitDom:function(t){for(var e="",n=0,i=0,r=[],a=t.childNodes||[],o=0;o<a.length;o++){var s=a[o];if(-1===["P","DIV","IMG","FIGURE"].indexOf(s.nodeName))try{"#text"===s.nodeName?e+=s.textContent:e+=s.outerHTML}catch(f){}else{var c=getComputedStyle(s),l=Number(c.marginTop.replace("px",""))||0,u=Number(c.marginBottom.replace("px",""))||0,d=Object(it["e"])(s);r.length&&(d-=i),e+=s.outerHTML,n+=d+$(s).outerHeight()+l+u,r.push({content:e,height:n}),e="",n=0,i=Object(it["e"])(s)+$(s).outerHeight()+l+u}}if(e){var h=$(t).outerHeight();r.push({content:e,height:r.length?h-i:h})}return r},getDomList:function(){var t=this,e=function(e){e.forEach((function(e,n){var i=l.find(".ac-sweep__virtual-section[data-key=".concat(e.dataKey||n,"]")),r=i.find(".ac-sweep__virtual-head")[0];r&&c.push({type:"sectionHead",height:t.editTitleList.find((function(t){return t.dataKey===n}))?t.editTitleList.find((function(t){return t.dataKey===n})).height:$(r).outerHeight(),content:r.innerHTML,dataKey:$(r).data("key")}),Array.isArray(e.children)&&e.children&&e.children.forEach((function(t,n){var r=t.dataKey,a=i.find("div[data-key=".concat(r,"]"))[0];s(t,a,!1,n===e.children.length-1,r)}))}))},n=function(e,n){var i=t.layout>2?520:808,r=function(t){return t.reduce((function(t,e){return Math.max(t,e.width)}),0)},a=function(t){return t.reduce((function(t,e){return Math.min(t,e.width)}),i)},o=function(t,e){var r=[];return n.forEach((function(i,a){var o="row"===e?a%t:Math.floor(a/Math.ceil(n.length/t));r[o]=Math.max(r[o]||0,i.width)})),i-r.reduce((function(t,e){return t+e}),0)},s=r(n),c=a(n),l=Math.floor(i/s),u=l,d=!0;while(d){var h=o(u,e);h<c||u>=n.length?(d=!1,h<0&&(u-=1)):u+=1}var f=Array(u).fill("").map((function(t,i){return n.filter((function(t,r){if("row"===e)return r%u===i;var a=Math.ceil(n.length/u);return r<(i+1)*a&&r>=i*a}))}));return f.forEach((function(t){var e=r(t);t.forEach((function(t){t.columnWidth=e}))})),f},i=function(e,i){if(Array.isArray(e)){for(var o=[],s=["single_choice","multiple_choice","judgment"],c=0;c<e.length;c++){var l=e[c];s.includes(l.code)&&(0!==c&&s.includes(e[c-1].code)||o.push([]),o[o.length-1].push(l))}var u=[],d=0;return o.forEach((function(e){e.forEach((function(e){var n=(t.editTitleList.find((function(t){return t.dataKey===e.dataKey}))||{}).title||e.title,i=r(n)?a(n):23;d=i>d?i:d})),e.forEach((function(e){if(e.titleWidth=d,1===t.objectiveAnswerType){var n=t.choiceConfig,i=n.itemWidth,r=n.gap,a=n.paddingLeft,o=n.additionalWidth,s=e.choices&&e.choices.length||0;e.width=e.titleWidth+a+s*(i+r)-r+o}else{var c=t.plainChoiceConfig,l=c.lineWidth,u=c.additionalWidth;e.width=e.titleWidth+l+u}}));for(var i=n(t.objectiveOrder,e),o=i[0].length,s=function(t){u.push(i.map((function(e){return e.find((function(e,n){return n===t}))})).filter(Boolean))},c=0;c<o;c++)s(c)})),u}},r=function(t){var e=o(t),n=/[\u4e00-\u9fa5()()]/;return n.test(e)},a=function(t){var e=o(t).length;return e>6?56:6===e?48:e<6?40:void 0},o=function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);return-1===n?t:t.slice(0,n)}},s=function e(n,r,a,o,s,l){if(Array.isArray(n)){var u=i(n,a);u.forEach((function(e,n){var i=0,r=0===n,d=n===u.length-1;1===t.objectiveAnswerType?(i=t.choiceHeight,r&&(i+=16),d&&(i+=16)):i=d?t.choiceHeight+16:t.choiceHeight,c.push({height:i,type:"objective",isComplex:a,isShowBorderBottom:o,dataKey:s,list:e,isComplexFirst:l})}))}else switch(n.code){case"single_choice":case"multiple_choice":case"judgment":c.push(Object.assign({height:t.choiceHeight+32,type:"objective",isComplex:a,isComplexFirst:l,isShowBorderBottom:o},n));break;case"completion":var d=$(r).find(".ac-sweep__composite-title")[0],h=[{content:d.innerHTML,height:$(d).outerHeight()}];h.forEach((function(t){t.type="completionItem",t.isComplex=a})),h.length&&"graffiti"===t.readType&&(h[0].height+=16),0===t.subjectiveReviewType&&c.push({type:"graffiti",height:30,scanName:n.scanName,score:n.score,isComplex:a,hideBottomBorder:!0,dataKey:n.dataKey,hidePadding:!0}),c.push({type:"completion",isComplex:a,isShowBorderBottom:o,lineWidth:n.lineWidth,dataKey:n.dataKey,height:$(d).outerHeight(),children:h});break;case"subjectivity":var f=$(r).find(".ac-essay__title")[0];0===t.subjectiveReviewType&&c.push({type:"graffiti",height:30,scanName:n.scanName,score:n.score,isComplex:a,hideBottomBorder:!0,dataKey:n.dataKey,hidePadding:!0}),c.push({type:"essay",dataKey:s,essay:Object.assign({rowCount:4,dataKey:n.dataKey,isComplex:a,titleChildren:t.splitDom(f)},n.essay)});break;case"complex":var p=$(r).find(".ac-sweep__complex-title")[0];if(p){var g=t.splitDom(p);g.length&&(g[0].type="complexTitleItem"),c.push({type:n.title?"complexTitle":null,children:g})}n.children&&n.children.forEach((function(t,i){var a=$(r).find("div[data-key=".concat(t.dataKey,"]"));e(t,a,!0,i===n.children.length-1,t.dataKey,0===i)}));break}},c=[],l=$(".ac-virtual"),u=l.find(".ac-basicInfo");if(u){var d=u.find(".ac-basicInfo__title"),h=u.find(".ac-attention"),f=u.find(".ac-basic-info__edu");c.push({type:"basicInfo",headHeight:null===d||void 0===d?void 0:d.outerHeight(),attentionHeight:null===h||void 0===h?void 0:h.outerHeight(),eduHeight:null===f||void 0===f?void 0:f.outerHeight()})}e(this.tree),this.$emit("change",c)}},render:function(){var t=arguments[0];return t("div",{class:"ac-virtual",attrs:{id:"math-virtual"},key:"virtual_".concat(this.subjectiveReviewType),style:{width:this.$store.getters["AC/layout"]>2?"690px":"978px"}},[this.getList(this.tree)])}},Ae=Ce,xe=Object(B["a"])(Ae,_e,be,!1,null,null,null),Te=xe.exports;Te.install=function(t){t.component(Te.name,Te)};var ke=Te,Ee=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-panel"},[t._l(t.formatPanelList,(function(n,i){return e("div",{key:i,staticClass:"ac-panel__item"},[e("div",{staticClass:"ac-piece__wrapper",attrs:{"data-page-type":n.flat().length?"":"restrict"}},[n.length?t._l(n,(function(n,r){return e("ac-sweep-piece",{key:r,attrs:{"data-piece":i*t.layout+r,"data-page":i,list:n,"page-index":i,"outlay-index":"".concat(i,"_").concat(r)}})})):e("div",{staticClass:"ac-piece"},[e("ac-restrict",{attrs:{height:1250}})],1),e("ac-mark-point",{attrs:{"page-index":i}}),t.isAddFooter?e("div",{staticClass:"ac-piece__footer",style:t.isEntranceExams&&{bottom:"42px",left:"140px"}},[t.isEntranceExams?e("span",[t._v(t._s(t.courseName))]):t._e(),t._v(" "+t._s("第".concat(i+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")]):t._e(),t.isAddFooter&&!t.isEntranceExams?e("div",{staticClass:"ac-piece__footer is-right"},[t._v(" "+t._s("第".concat(i+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")]):t._e()],2)])})),e("ac-editor",{attrs:{visible:t.visible,content:t.editing.content||""},on:{"update:visible":function(e){t.visible=e},submit:t.handleSubmit}})],2)},Se=[],Ie=n("2638"),Oe=n.n(Ie),Pe=function(){var t=this,e=t._self._c;return e("div",{class:["objective","is-border",t.isShowBorderBottom&&"is-border-bottom",t.isHideBorderTop&&"is-hide_Border-top",t.lastOneClass],style:{paddingBottom:"".concat(Math.max(t.additionalPadding,15),"px"),paddingTop:"".concat(1===t.objectiveAnswerType?15:0,"px")},attrs:{"data-key":Array.isArray(t.list)?t.list[0].list[0].dataKey:t.list.dataKey||t.list.list[0].dataKey,"data-objective_area":t.objectiveArea,"page-index":t.pageIndex,"data-scan-type":"absolute"}},[t.isEntranceExams?e("div",{class:["entrance-border",t.layout>2&&"three-column_border",t.isFirst&&"show-border_top",t.isShowTipWord&&"show-border_word-top",t.isLastOne&&"show-border_bottom"]}):t._e(),t.isEntranceExams?e("div",{class:["entrance-outline",t.layout>2&&"three-column_outline",t.isFirst&&"show-outline_top",t.isShowTipWord&&"show-outline_word-top",t.isLastOne&&"show-outline_bottom"]}):t._e(),Array.isArray(t.list)?t._l(t.list,(function(n,i){return e("div",{key:i,class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap"}},[n.list?t._l(n.list,(function(n,r){return e("div",{key:"".concat(i,"_").concat(r),staticClass:"ac-sweep__choice-each",style:{width:"".concat(n.columnWidth,"px"),alignItems:1===t.objectiveAnswerType?"center":"end"},attrs:{"data-key":n.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{key:n.title,staticClass:"choice-title",style:{width:"".concat(n.titleWidth,"px")},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,n.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(n.title,n.dataKey))+" ")]),1===t.objectiveAnswerType?e("div",{staticClass:"ac-sweep__choice-item"},t._l(n.choices,(function(i,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option",style:{color:t.isEntranceExams?"#EB617E":"#000000"}},[t._v(" "+t._s(t.formatIdentifier(n.code,i.identifier))+" ")])})),0):e("div",{staticClass:"ac-sweep__choice-line"})])})):[e("div",{staticClass:"ac-sweep__choice-each",style:{width:"".concat(n.columnWidth,"px"),alignItems:1===t.objectiveAnswerType?"center":"end"},attrs:{"data-key":n.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{key:n.title,staticClass:"choice-title",style:{width:"".concat(n.titleWidth,"px")},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,n.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(n.title,n.dataKey))+" ")]),1===t.objectiveAnswerType?e("div",{staticClass:"ac-sweep__choice-item"},t._l(n.choices,(function(i,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option",style:{color:t.isEntranceExams?"#EB617E":"#000000"}},[t._v(" "+t._s(t.formatIdentifier(n.code,i.identifier))+" ")])})),0):e("div",{staticClass:"ac-sweep__choice-line"})])]],2)})):[t.list.list?e("div",{class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap"}},t._l(t.list.list,(function(n,i){return e("div",{key:i,staticClass:"ac-sweep__choice-each",style:{width:"".concat(n.columnWidth,"px"),alignItems:1===t.objectiveAnswerType?"center":"end"},attrs:{"data-key":n.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{key:n.title,staticClass:"choice-title",style:{width:"".concat(n.titleWidth,"px")},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,n.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(n.title,n.dataKey))+" ")]),1===t.objectiveAnswerType?e("div",{staticClass:"ac-sweep__choice-item"},t._l(n.choices,(function(i,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option",style:{color:t.isEntranceExams?"#EB617E":"#000000"}},[t._v(" "+t._s(t.formatIdentifier(n.code,i.identifier))+" ")])})),0):e("div",{staticClass:"ac-sweep__choice-line"})])})),0):e("div",{class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap",paddingLeft:0===t.answerMode&&"40px"}},[e("div",{staticClass:"ac-sweep__choice-each",style:{width:"".concat(t.list.columnWidth,"px"),alignItems:1===t.objectiveAnswerType?"center":"end"},attrs:{"data-key":t.list.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{key:t.list.title,staticClass:"choice-title",style:{width:"".concat(t.list.titleWidth,"px")},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,t.list.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(t.list.title,t.list.dataKey))+" ")]),1===t.objectiveAnswerType?e("div",{staticClass:"ac-sweep__choice-item"},t._l(t.list.choices,(function(n,i){return e("span",{key:i,staticClass:"ac-sweep__choice-option",style:{color:t.isEntranceExams?"#EB617E":"#000000"}},[t._v(" "+t._s(t.formatIdentifier(t.list.code,n.identifier))+" ")])})),0):e("div",{staticClass:"ac-sweep__choice-line"})])])]],2)},je=[],Be={name:"AcObjective",components:{},inject:["paddingBlock","noPaperMode"],props:{list:{type:[Array,Object]},isHideBorderTop:{type:Boolean,default:!1},isShowBorderBottom:{type:Boolean,default:!1},pageIndex:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isShowTipWord:{type:Boolean,default:!1},isLastOne:{type:Boolean,default:!1},lastOneClass:{type:String,default:""}},computed:{objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]},judgmentMode:function(){return this.$store.getters["AC/judgmentMode"]},layout:function(){return this.$store.getters["AC/layout"]},answerMode:function(){return this.$store.getters["AC/answerCardMode"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},objectiveArea:function(){var t="";t=Array.isArray(this.list)?this.list[0].list[0].code:Array.isArray(this.list.list)?this.list.list[0].code:this.list.code;var e={single_choice:"单选题",multiple_choice:"多选题",judgment:"判断题"};return e[t]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]},choiceConfig:function(){return this.$store.state.AC.sweep.choice},plainChoiceConfig:function(){return this.$store.state.AC.sweep.plainChoice},choiceHeight:function(){return 1===this.objectiveAnswerType?this.choiceConfig.itemHeight:this.plainChoiceConfig.itemHeight}},watch:{lastOneClass:{immediate:!0,handler:function(t,e){var n=this;!t&&e&&(this.additionalPadding=15,this.lastAdditionPadding=0),t&&this.$nextTick((function(){return n.getDistanceToParentBottom()}))}}},mounted:function(){},data:function(){return{additionalPadding:void 0,lastAdditionPadding:0}},methods:{formatIdentifier:function(t,e){return"judgment"!==t?e:this.noPaperMode?this.judgmentMode?e:"✓"===e?"T":"F":this.judgmentMode?"T"===e?"✓":"×":e},getBeforeChinese:function(t,e){var n=/[\u4e00-\u9fa5]/,i=(this.editTitleList.find((function(t){return t.dataKey===e}))||{}).title||t;if(i){var r=i.search(n);if(-1===r)return i;var a=i.slice(0,r);return a.endsWith(".")?a.slice(0,-1):a}},isHasBrackets:function(t){var e=this.getBeforeChinese(t),n=/[\u4e00-\u9fa5()()]/;return n.test(e)},convertWidth:function(t){var e=this.getBeforeChinese(t).length;return e>6?56:6===e?48:e<6?40:void 0},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:"".concat(e)})},getDistanceToParentBottom:function(){var t=document.getElementsByClassName(this.lastOneClass)[0],e=Object(it["c"])(t)+this.lastAdditionPadding;this.lastAdditionPadding=Math.max(e,0),this.additionalPadding=e>0?e:void 0}}},Le=Be,Re=Object(B["a"])(Le,Pe,je,!1,null,null,null),Me=Re.exports;Me.install=function(t){t.component(Me.name,Me)};var $e,Ne,ze=Me,De={name:"AcSweepPiece",components:{AcEssay:x["default"],AcBasicInfo:Z["default"],AcSweepCompletion:pe,AcObjective:ze,AcEditor:Lt["default"],AcRestrict:St,AcGraffiti:Y["default"]},props:{list:{type:Array,default:function(){return[]}},pageIndex:{type:Number,default:0},outlayIndex:{type:String,default:""}},computed:{pieceHeight:function(){return"1386px"},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},sweepList:function(){return this.transformTree(this.list)},layout:function(){return this.$store.getters["AC/layout"]},acMode:function(){return this.$store.getters["AC/answerCardMode"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]}},data:function(){return{editorVisible:!1,editContent:"",completionIsLastOne:!1}},methods:{handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e,height:t.target.offsetHeight}),this.$store.dispatch("AC/paper/resetPanel")},editTitle:function(t){var e=this;this.editContent=(this.editEssayList.find((function(t){return t.dataKey===e.dataKey}))||{}).title||t,this.editorVisible=!0},getPlainTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.editorVisible=!1},transformTree:function(t){var e=this,n=new Set(["objective"]);return t.reduce((function(i,r,a){r.children&&(r.children=e.transformTree(r.children));var o=i[i.length-1];return o&&n.has(t[a-1].type)&&n.has(r.type)&&!r.isComplexFirst?(Array.isArray(o)?o.push(r):i[i.length-1]=[o,r],i):(i.push(r),i)}),[])},getContent:function(t,e){var n=this,i=this.$createElement,r=null;switch(!0){case"basicInfo"===t.type:r=i("ac-basic-info",{props:m({},t)});break;case"complexTitle"===t.type:r=i("div",{class:"ac-sweep__complex",style:{borderBottom:this.sweepList.length-1===e&&"1px solid #000"}},[i("p",{class:"ac-sweep__complex-title",on:{click:function(){return n.editTitle(t.content[0])}},domProps:{innerHTML:this.getLiContent?this.getLiContent:t.content[0]}})]);break;case"sectionHead"===t.type:r=i("div",{class:"ac-sweep__head-wrapper"},[i("div",{class:"ac-sweep__virtual-head",style:{marginTop:"".concat(t.height>=51?0===e?0:5:t.height-46,"px")},attrs:{contenteditable:!0,dataKey:t.dataKey},domProps:{innerHTML:t.content},on:{blur:function(e){return n.handleBlur(e,t.dataKey)}}}),i("div",{class:"".concat(this.isEntranceExams&&"entrance-border"," ").concat(this.isEntranceExams&&this.layout>2&&"three-column_border"," ").concat(this.isEntranceExams&&0===e&&"show-border_top"," ").concat(this.isEntranceExams&&this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type&&"show-border_word-top")}),i("div",{class:"".concat(this.isEntranceExams&&"entrance-outline"," ").concat(this.isEntranceExams&&this.layout>2&&"three-column_outline"," ").concat(this.isEntranceExams&&0===e&&"show-outline_top"," ").concat(this.isEntranceExams&&this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type&&"show-outline_word-top")})]);break;case"graffiti"===t.type:r=i("ac-graffiti",{props:m({},Object.assign(t,{hideTopBorder:this.sweepList[e-1]&&"essay"===this.sweepList[e-1].type}))});break;case"completion"===t.type:r=i("ac-sweep-completion",{props:m({},Object.assign(t,{ctnType:"piece",dataKey:t.dataKey,title:t.content[0],isHideBorderTop:0!==e&&this.sweepList[e-1]&&["completion","complexTitle"].includes(this.sweepList[e-1].type)&&!(t.isComplex&&"0"===t.dataKey[t.dataKey.length-1]),isPaddingTop:!0,pageIndex:this.pageIndex+1,isShowBorderBottom:e===this.sweepList.length-1||this.sweepList[e+1]&&["sectionHead","restrict"].includes(this.sweepList[e+1].type),isFirst:0===e,isShowTipWord:this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type,isLastOne:e===this.sweepList.length-1,lastOneClass:e===this.sweepList.length-1?"piece-composite".concat(Date.now().toString(36),"_").concat(this.outlayIndex):null}))});break;case"objective"===t.type||Array.isArray(t):r=i("ac-objective",{props:m({},{list:t,isHideBorderTop:0!==e&&this.sweepList[e-1]&&"essay"===this.sweepList[e-1].type,pageIndex:this.pageIndex+1,isShowBorderBottom:e===this.sweepList.length-1||!!this.sweepList[e+1]&&["sectionHead","restrict"].includes(this.sweepList[e+1].type),isFirst:0===e,isShowTipWord:this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type,isLastOne:e===this.sweepList.length-1,lastOneClass:e===this.sweepList.length-1?"piece-objective".concat(Date.now().toString(36),"_").concat(this.outlayIndex):null})});break;case"essay"===t.type:r=i("ac-essay",{key:"essay_".concat(e),attrs:{"data-key":t.essayConfig.dataKey||"","page-index":this.pageIndex+1,"row-height":34,"li-editable":!0},props:m({},m(m({},t.essayConfig),{},{hiddenBorderTop:0!==e&&"complexTitle"===this.sweepList[e-1].type,hiddenBorderBottom:e!==this.sweepList.length-1&&this.sweepList[e+1]&&("essay"===this.sweepList[e+1].type||"completion"===this.sweepList[e+1].type||"complexTitle"===this.sweepList[e+1].type),column:3===this.layout?15:1===this.subjectiveReviewType?20:23,isFirst:0===e,isShowTipWord:this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type,isLastOne:0===this.acMode&&e===this.sweepList.length-1,lastOneClass:0===this.acMode&&e===this.sweepList.length-1?"piece-essay".concat(Date.now().toString(36),"_").concat(this.outlayIndex):null}))});break;case"restrict"===t.type:r=i("ac-restrict",{props:m({},{height:t.height,marginTop:20,isLastOne:e===this.sweepList.length-1,isFirst:0===e,isShowTipWord:this.sweepList[e-1]&&"basicInfo"===this.sweepList[e-1].type,lastOneClass:0===this.acMode&&e===this.sweepList.length-1?"piece-restrict".concat(Date.now().toString(36),"_").concat(this.outlayIndex):null})});break}return r}},render:function(){var t=this,e=arguments[0];return e("div",{class:"ac-piece",style:{display:"flex",justifyContent:"center",alignItems:"center",height:this.pieceHeight}},[e("div",{class:this.$store.getters["AC/layout"]>2?"ac-module__ThreeColumn":"ac-module__column",style:"height: calc(100% - 20px)"},[this.sweepList.length?this.sweepList.map((function(e,n){return t.getContent(e,n)})):e("ac-restrict",{props:m({},{height:1230})}),e("ac-editor",Oe()([{attrs:{visible:this.editorVisible}},{on:{"update:visible":function(e){return t.editorVisible=e}}},{attrs:{content:this.editContent,title:"编辑答题区",editorId:"essay-editor_".concat(Date.now().toString(36))},on:{submit:this.handleSubmit}}]))])])}},Ue=De,He=Object(B["a"])(Ue,$e,Ne,!1,null,null,null),Fe=He.exports;Fe.install=function(t){t.component(Fe.name,Fe)};var Ke=Fe,We={name:"AcSweepPanel",components:{AcSweepPiece:Ke,AcEditor:Lt["default"],AcMarkPoint:Rt["default"],AcRestrict:St},inject:["courseName"],props:{domList:{type:Array,default:function(){return[]}}},computed:{formatPanelList:function(){var t=this,e=[];if(this.panelList.length)if(this.panelList.forEach((function(n,i){i%t.layout===0?e.push([n]):e[e.length-1].push(n)})),1===this.layout&&e.length%2)e.push([]);else if(2===this.layout)e[e.length-1].length%2&&e[e.length-1].push([]),(1===e.length||e.length%2)&&e.push(u(Array(2).fill([])));else if(3===this.layout){var n;3!==e[e.length-1].length&&(n=e[e.length-1]).push.apply(n,u(Array(3-e[e.length-1].length).fill([]))),(1===e.length||e.length%2)&&e.push(u(Array(3).fill([])))}return e},pieceHeight:function(){return 1245},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},showAttention:function(){return this.$store.getters["AC/showAttention"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},readType:function(){return this.$store.getters["AC/readType"]},scansionAttention:function(){return this.$store.getters["AC/scansionAttention"]},stuInfoLength:function(){return this.$store.getters["AC/studentInfo"].length},eduIdLength:function(){return this.$store.getters["AC/educationIdValue"]},registrationType:function(){return this.$store.getters["AC/registrationNumberType"]},layout:function(){return this.$store.getters["AC/layout"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},isAddFooter:function(){return this.$store.getters["AC/addFooter"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]}},watch:{domList:function(t){t.length&&this.getPanelList()}},mounted:function(){},data:function(){return{panelList:[],visible:!1,editing:{},headHeight:0,attentionHeight:0,eduHeight:0}},methods:{getRowCount:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.row?n.row:e},getBgType:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.bgType?n.bgType:e},handleSubmit:function(t){var e=this.editing,n=e.dataKey,i=e.hasChoice,r={dataKey:n};if(i){var a=t.match(/<(p.*?\/p|figure.*?\/figure)>/g),o=/>[A-O]{1}[.\s.、]{0,1}/,s="",c=[],l=null;a.forEach((function(t){var e=t.match(o);if(e){var n=t.replace(o,">");l={identifier:e[0][1],content:"<p></p>"===n?"":n},c.push(l)}else l?l.content+=t:s+=t})),Object.assign(r,{title:s,choices:c})}else r.title=t;this.$store.dispatch("AC/paper/setEditTitle",r)},getBasicInfo:function(t){var e=null;return(this.layout>1?t%(2*this.layout)===0:this.patchwork?(t+1)%4===1:t%2===0)&&(e={hideAttention:!this.showAttention||0!==t,height:this.headHeight+(this.isEntranceExams?this.layout<3?this.attentionHeight:0:this.showAttention&&0===t?this.attentionHeight:0)+this.eduHeight+(this.isEntranceExams?50:0)}),e},getPanelList:function(){var t=this,e=[],n=0;e[n]=[];var i=this.pieceHeight,r=e[n],a=[],o=function(){var e=t.getBasicInfo(n);e&&(i-=e.height,r.push(Object.assign({type:"basicInfo"},e)))},s=function(){var a=e[n];if(n++,e[n]=[],i=t.pieceHeight,r=e[n],o(),"graffiti"===a[a.length-1].type){var s=a[a.length-1];a.pop(),r.push(s),i-=30}if("sectionHead"===a[a.length-1].type){var c=a[a.length-1];c.height>46&&(c.height-=5),c.isMarginTop=!1,a.pop(),r.length?"basicInfo"===r[0].type?r.splice(1,0,c):r.unshift(c):r.push(c),i-=c.height}},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:34,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=i-(n?62:30);return Math.floor((r+e)/(t+e))},l=function(t,e){var n="",i="",a=t.map((function(t){var e="";switch(t.type){case"completion":n="completion",i=t.height+1,e="".concat(t.children.join(""));break;case"complexTitle":n="complexTitle",i=t.height,e="".concat(t.children.join(""));break}return e}));t.length=0,r.push({height:i,type:n,isComplex:e.isComplex,isShowBorderBottom:e.isShowBorderBottom,lineWidth:e.lineWidth,dataKey:e.dataKey,content:a})},u=function(e,n,a){e.forEach((function(e){if("completionItem"===e.type&&(e.height+=16),i<e.height&&(n.length&&l(n,a),s()),i>=e.height){switch("graffiti"===t.readType||r.length||"completion"!==a.type||(e.height+=16),e.type){case"completionItem":n.length&&"completion"===n[n.length-1].type?n[n.length-1].children.push(e.content):n.push({type:"completion",height:e.height,children:[e.content]});break;case"complexTitleItem":n.length&&"complexTitle"===n[n.length-1].type?n[n.length-1].children.push(e.content):n.push({type:"complexTitle",height:e.height,children:[e.content]});break}i-=e.height}}))},d=function(e,n){var a=e.rowHeight,o=void 0===a?34:a,l=e.rowGap,u=void 0===l?15:l,d=e.titleChildren,h=t.getRowCount(n,e.rowCount),f=t.getBgType(n,e.bgType);i<30&&s();var p={type:"essay"};if(d){var g="";d.forEach((function(t,n){i>=t.height+(n?0:32)?(g+=t.content,i-=t.height+(n?0:32)):(g&&r.push({type:"essay",essayConfig:Object.assign({},e,{row:0,title:g,rowCount:h,bgType:f})}),s(),g=t.content,i-=t.height+32)})),g?Object.assign(p,{essayConfig:Object.assign({},e,{row:0,title:g,rowCount:h})}):p=null}else p=null;if(h){var y=h;while(y){var m=c(o,u,!p);m<1?(p&&(r.push(p),p=null),s()):m<y?(r.push({type:"essay",essayConfig:Object.assign({},e,{startRow:h-y,row:m,rowCount:h,bgType:f,title:p&&p.essayConfig?p.essayConfig.title:""})}),p&&(p=null),s(),y-=m):(r.push({type:"essay",essayConfig:Object.assign({},e,{startRow:h-y,row:y,rowCount:h,bgType:f,title:p&&p.essayConfig?p.essayConfig.title:""})}),i-=y*(o+u)-u+(p?30:62),y=0,p&&(p=null))}}else p?r.push(p):(r.push({type:"essay",essayConfig:Object.assign({},e,{rowCount:0,row:0,bgType:f})}),i-=30)},h=JSON.parse(JSON.stringify(this.domList));h.forEach((function(e,n){"essay"===e.type?d(e.essay,e.dataKey):"complexTitle"===e.type||"completion"===e.type?(u(e.children,a,e),a.length&&l(a,e)):"basicInfo"===e.type?(t.headHeight=e.headHeight||0,t.attentionHeight=t.scansionAttention.height||e.attentionHeight||0,t.isEntranceExams?t.eduHeight=e.eduHeight:t.registrationType?1===t.objectiveAnswerType?t.layout<3?t.eduHeight=t.eduIdLength>10?48*Math.ceil(t.stuInfoLength/3)+30+310:310:t.eduHeight=48*Math.ceil(t.stuInfoLength/3)+14+310:t.layout<3?t.eduHeight=t.eduIdLength>10?64*Math.ceil(t.stuInfoLength/3)+30:94:t.eduHeight=64*Math.ceil(t.stuInfoLength/3)+14:t.eduHeight=t.layout<3?310:64*Math.ceil(t.stuInfoLength/3)+310,o()):(i<e.height&&s(),i>=e.height&&("sectionHead"===e.type&&"basicInfo"!==h[n-1].type&&(e.height+=5,e.isMarginTop=!0),r.push(e),i-=e.height))})),i>54&&e[e.length-1].push({type:"restrict",height:i-25}),e.length>16&&1===this.layout&&(this.$store.dispatch("AC/answerConfig/setAnswerCardLayout",2),this.$store.dispatch("AC/answerConfig/setDisableOneLayout",!0)),this.panelList=e}}},Ve=We,Ye=Object(B["a"])(Ve,Ee,Se,!1,null,null,null),Ze=Ye.exports;Ze.install=function(t){t.component(Ze.name,Ze)};var Ge=Ze,qe={name:"AcSweep",components:{AcSweepVirtual:ke,AcSweepPanel:Ge},inject:["uploadOss","paperTitle","noPaperMode"],data:function(){return{domList:[],sweepPaperTree:[],isFirstRender:!0,questionRectList:[],questionPageMap:{}}},computed:{educationIdValue:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},candidateNumColor:function(){return this.$store.getters["AC/candidateNumColor"]},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},UploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(C["a"])(this,e),this.file=t}return Object(A["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,i){t(e.file,n)}))}}]),e}()},patchwork:function(){return this.$store.getters["AC/patchwork"]},downloadType:function(){return this.$store.getters["AC/downloadType"]},downloadSize:function(){return this.$store.getters["AC/downloadSize"]},paperTree:function(){return this.$store.getters["AC/sweepPaperTree"]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]}},watch:{paperTree:function(){this.init()}},created:function(){this.init()},methods:{init:function(){this.sweepPaperTree=this.transformTree(this.createDataKey(this.$store.getters["AC/sweepPaperTree"]))},createDataKey:function(t){var e=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.forEach((function(e,i){var r="";r=e&&e.idProp?n?"".concat(n,"_").concat(e.idProp):"".concat(e.idProp):n?"".concat(n,"_").concat(i):"".concat(i),e.code&&(e.dataKey=r),e.children&&t(e.children,r)}))};return e(t),t},transformTree:function(t){var e=this,n=new Set(["single_choice","multiple_choice","judgment"]);return t.reduce((function(i,r,a){r.children&&(r.children=e.transformTree(r.children));var o=i[i.length-1];return o&&n.has(t[a-1].code)&&n.has(r.code)?(Array.isArray(o)?o.push(r):i[i.length-1]=[o,r],i):(i.push(m({},r||null)),i)}),[])},setDomList:function(t){this.domList=t,this.isFirstRender=!1},buildFailed:function(){this.isFirstRender&&this.$emit("build-failed")},getPageImage:function(){return new Promise((function(t,e){var n=$(".ac-panel .ac-piece__wrapper");Object(it["d"])(n).then((function(e){return t(e)})).catch((function(){return t([])}))}))},download:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u,d,h,f,p,g,y;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.questionRectList=[],t.questionPageMap={},!($(".ac-piece__wrapper").length>16)){e.next=5;break}return t.$message({showClose:!0,message:"涂点形式答题卡不能超过16页,请更换调整作答区域或更换试卷",type:"error"}),e.abrupt("return");case 5:return e.next=7,t.getZipContent();case 7:if(n=e.sent,i=n||"",r={intrinsicWidth:$(".ac-piece__wrapper")[0].clientWidth,intrinsicHeight:$(".ac-piece__wrapper")[0].clientHeight,questionRects:t.questionRectList},a=t.getPageOptions(),o=a.crossPageMap,s=a.pageSize,"PDF"!==t.downloadType){e.next=29;break}return e.next=14,t.getPageImage();case 14:return c=e.sent,l=new Ht.a(1===t.layout?"p":"l","pt",1===t.layout?"a4":"a3"),c.forEach((function(e,n){var i=1===t.layout?595.28:1190.55,r=841.89;l.addImage(e,"JPEG",0,0,i,r),n!==c.length-1&&l.addPage()})),u="".concat(t.$store.getters["AC/title"].replace(/\n/g,""),".pdf"),l.save(u),d=l.output("blob"),d.name=u,h=new t.UploadAdapter(d),e.next=24,h.upload();case 24:return f=e.sent,p="https://"+f.url,e.abrupt("return",{scanZipUrl:i,scanPdfUrl:p,rectInfo:r,subjectiveReviewType:t.subjectiveReviewType,crossPageMap:o,pageSize:s});case 29:if("PNG"!==t.downloadType){e.next=35;break}return e.next=32,t.getPngZip();case 32:return g=e.sent,y=g||"",e.abrupt("return",{scanZipUrl:i,scanPdfUrl:y,rectInfo:r,subjectiveReviewType:t.subjectiveReviewType,crossPageMap:o,pageSize:s});case 35:case"end":return e.stop()}}),e)})))()},getPageOptions:function(){var t=this,e={},n=1;Object.keys(this.questionPageMap).forEach((function(i){var r=Array.from(t.questionPageMap[i]).sort();n=Math.max(n,r[r.length-1]),r.length>1&&r[0]%2===0&&(e[i]=r.join())}));var i=1===n?1:2*Math.ceil(n/2);return{crossPageMap:JSON.stringify(e),pageSize:i}},getZipContent:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u,d,h,f;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),n=n.replace(/[/,\\]/g,""),i=$(".ac-piece__wrapper"),r=1===t.registrationNumberType,a=new Kt.a,o="".concat(n,"模板_").concat(n,"_").concat(t.downloadSize,"_").concat("#000000"===t.candidateNumColor?"黑白":"彩色","_").concat(i.length,"_").concat(r?"涂点":"条码","_").concat(r?"10":"-1","_").concat(r?t.educationIdValue:"-1","_涂点_涂点.xml"),a.file(o,t.getXMLData()),s=[],Array.from(i).forEach((function(t,e){s.push({dom:t,name:"".concat(e+1,".png")}),e%2||(s.push({dom:$(t).find(".mark-point__top-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoshang.jpg")}),s.push({dom:$(t).find(".mark-point__top-right .mark-point__box")[0],name:"第".concat(e+1,"页_youshang.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoxia.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-right .mark-point__box")[0],name:"第".concat(e+1,"页_youxia.jpg")}))})),e.next=11,Object(it["d"])(s.map((function(t){return t.dom})),1);case 11:return c=e.sent,c.forEach((function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),o=r.length,c=new Uint8Array(o);while(o--)c[o]=r.charCodeAt(o);a.file(s[e].name,new Blob([c],{type:i}),{base64:!0})})),e.next=15,a.generateAsync({type:"blob"});case 15:return l=e.sent,u="".concat(t.noPaperMode?t.$store.getters["AC/title"].replace(/\n/g,""):n,"模板.zip"),d=new File([l],u,{type:"zip"}),Vt()(l,u),h=new t.UploadAdapter(d),e.next=22,h.upload();case 22:return f=e.sent,e.abrupt("return","https://"+f.url);case 24:case"end":return e.stop()}}),e)})))()},getPngZip:function(){var t=this;return w(_().mark((function e(){var n,i,r,a,o,s,c,l,u,d;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),n=n.replace(/[/,\\]/g,""),i=$(".ac-piece__wrapper"),r=new Kt.a,a=[],Array.from(i).forEach((function(t,e){a.push({dom:t,name:"".concat(e+1,".png")})})),e.next=8,Object(it["d"])(a.map((function(t){return t.dom})));case 8:return o=e.sent,o.forEach((function(t,e){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],o=atob(n[1]),s=o.length,c=new Uint8Array(s);while(s--)c[s]=o.charCodeAt(s);r.file(a[e].name,new Blob([c],{type:i}),{base64:!0})})),e.next=12,r.generateAsync({type:"blob"});case 12:return s=e.sent,c="".concat(t.noPaperMode?t.$store.getters["AC/title"].replace(/\n/g,""):n,".zip"),l=new File([s],c,{type:"zip"}),Vt()(s,c),u=new t.UploadAdapter(l),e.next=19,u.upload();case 19:return d=e.sent,e.abrupt("return","https://"+d.url);case 21:case"end":return e.stop()}}),e)})))()},getXMLData:function(){var t=this,e=[],n=$(".ac-piece__wrapper"),i=function(n,i){var r=$(n).offset(),a=r.left,o=r.top,s=$(n).find(".mark-point__top-left")[0],c=$(s).offset(),l=c.left,u=c.top,d=$(n).find("[data-export_name]");Array.from(d).forEach((function(n){var r=$(n),s="absolute"===r.data("scan-type"),c={Type:"AnswerArea",Name:r.data("export_name"),Page:i,X:Math.floor(r.offset().left-(s?a:l)),Y:Math.floor(r.offset().top-(s?o:u)),Width:r.outerWidth(),Height:r.outerHeight()};String(c.X).indexOf(".")>-1&&(c.X=Math.floor(c.X),c.Width+=1),String(c.Y).indexOf(".")>-1&&(c.Y=Math.floor(c.Y),c.Height+=1),c.Width=Math.ceil(c.Width),c.Height=Math.ceil(c.Height),"考号"===r.data("export_name")&&(c.Rows=10,c.Columns=t.educationIdValue),e.push(c)}))},r=function(t,n){var i=$(t).find(".mark-point__top-left")[0],r=$(i).offset(),a=r.left,o=r.top,s=$(t).find("[data-scan-type=review]");Array.from(s).forEach((function(t){var i=$(t),r={Type:"ReviewArea",Name:i.data("scan-name"),Page:n,X:i.offset().left-a,Y:i.offset().top-o,Width:i.outerWidth(),Height:i.outerHeight(),MaxScore:i.data("scan-score")};String(r.X).indexOf(".")>-1&&(r.X=Math.floor(r.X),r.Width+=1),String(r.Y).indexOf(".")>-1&&(r.Y=Math.floor(r.Y),r.Height+=1),r.Width=Math.ceil(r.Width),r.Height=Math.ceil(r.Height),e.push(r)}))},a=[],o=[],s=n[0],c=$(s).find(0===this.objectiveAnswerType?".ac-info__area":".ac-basic-info__edu")[0];o.push({rectType:"basicInfo",pageOrder:1,x:$(c).offset().left-$(s).offset().left,y:$(c).offset().top-$(s).offset().top,width:$(c).outerWidth(),height:$(c).outerHeight()});var l=function(e,i){var r=n.find(".ac-sweep__choice-each[data-key=".concat(e.dataKey,"]"))[0],s=r.getAttribute("page-index");t.questionPageMap[e.questionItemId]=new Set([Number(s)]);var c=$(i[s-1]).find(".mark-point__top-left")[0],l=$(c).offset(),u=l.left,d=l.top,h={Type:"AnswerArea",Name:e.scanName,Page:"第".concat(s,"页")};if(1===t.objectiveAnswerType){var f=$(r).find(".ac-sweep__choice-item")[0];1===t.subjectiveReviewType?Object.assign(h,{X:Math.floor($(f).offset().left-u),Y:Math.floor($(f).offset().top-d),Width:Math.ceil($(f).outerWidth()),Height:Math.ceil($(f).outerHeight()),Rows:1,Columns:e.choices.length,Horizon:0}):Object.assign(h,{X:Math.floor($(f).offset().left-u-1),Y:Math.floor($(f).offset().top-d-1),Width:Math.ceil($(f).outerWidth()+4),Height:Math.ceil($(f).outerHeight()+4),Rows:1,Columns:e.choices.length,Horizon:0}),a.push(h)}else{var p=$(r).find(".ac-sweep__choice-line")[0];Object.assign(h,{X:Math.floor($(p).offset().left-u),Y:Math.floor($(p).offset().top-d+5),Width:$(p).outerWidth(),Height:$(p).outerHeight()}),a.push(h)}var g=$(i[s-1]).offset(),y=g.left,m=g.top;o.push({questionItemId:e.questionItemId,pageOrder:s,x:$(r).offset().left-y,y:$(r).offset().top-m,width:$(r).outerWidth(),height:$(r).outerHeight()})},d=function e(i){var r=$(".ac-piece__wrapper");i.forEach((function(i){if(i.children)e(i.children);else if("completion"===i.code){var s=n.find(".ac-sweep__composite[data-key=".concat(i.dataKey,"]"));t.questionPageMap[i.questionItemId]=new Set(Array.from(s).map((function(t){return Number(t.getAttribute("page-index"))})));for(var c=0;c<s.length;c++){var u=s[c].getAttribute("page-index"),d=$(r[u-1]).find(".mark-point__top-left")[0],h=$(d).offset(),f=h.left,p=h.top,g={Type:"AnswerArea",Name:"".concat(i.scanName).concat(c>0?"_"+c:""),Page:"第".concat(u,"页"),X:Math.floor($(s[c]).offset().left-f),Y:Math.floor($(s[c]).offset().top-p),Width:Math.ceil($(s[c]).outerWidth()),Height:Math.ceil($(s[c]).outerHeight()),SuffixType:c>0?1:0};a.push(g);var y=$(r[u-1]).offset(),m=y.left,v=y.top;if(o.push({questionItemId:i.questionItemId,pageOrder:u,x:$(s[c]).offset().left-m,y:$(s[c]).offset().top-v,width:g.Width,height:g.Height}),1===t.subjectiveReviewType){var _=$(s[c]).find(".score-box")[0];_&&a.push({Type:"ScoreArea",Name:"".concat(i.scanName).concat(c>0?"_"+c:""),Page:"第".concat(u,"页"),X:Math.floor($(_).offset().left-f),Y:Math.floor($(_).offset().top-p),Width:Math.ceil($(_).outerWidth()),Height:Math.ceil($(_).outerHeight()),MaxScore:i.score,SuffixType:0})}}}else if(Array.isArray(i)||"single_choice"===i.code||"multiple_choice"===i.code||"judgment"===i.code)Array.isArray(i)?i.forEach((function(t){l(t,r)})):l(i,r);else if("subjectivity"===i.code){var b=n.find(".ac-essay__wrapper[data-key=".concat(i.dataKey,"]"));t.questionPageMap[i.questionItemId]=new Set(Array.from(b).map((function(t){return Number(t.getAttribute("page-index"))})));for(var w=0;w<b.length;w++){var C=b[w].getAttribute("page-index"),A=$(r[C-1]).find(".mark-point__top-left")[0],x=$(A).offset(),T=x.left,k=x.top,E={Type:"AnswerArea",Name:"".concat(i.scanName).concat(w>0?"_"+w:""),Page:"第".concat(C,"页"),X:Math.floor($(b[w]).offset().left-T),Y:Math.floor($(b[w]).offset().top-k),Width:Math.ceil($(b[w]).outerWidth()),Height:Math.ceil($(b[w]).outerHeight()),SuffixType:w>0?1:0};a.push(E);var S=$(r[C-1]).offset(),I=S.left,O=S.top;if(o.push({questionItemId:i.questionItemId,pageOrder:C,x:$(b[w]).offset().left-I,y:$(b[w]).offset().top-O,width:E.Width,height:E.Height}),1===t.subjectiveReviewType){var P=$(b[w]).find(".score-box")[0];P&&a.push({Type:"ScoreArea",Name:"".concat(i.scanName).concat(w>0?"_"+w:""),Page:"第".concat(C,"页"),X:Math.floor($(P).offset().left-T),Y:Math.floor($(P).offset().top-k),Width:Math.ceil($(P).outerWidth()),Height:Math.ceil($(P).outerHeight()),MaxScore:i.score,SuffixType:0})}}}}))};d(this.sweepPaperTree),this.questionRectList=o;var h=function(t){var e={};return t.forEach((function(t){var n=t.Page;e[n]||(e[n]=[]),e[n].push(t)})),Object.values(e)},f=h(a);Array.from(n).forEach((function(n,a){"restrict"!==$(n).data("piece-type")&&(i(n,"第".concat(a+1,"页")),0===t.subjectiveReviewType&&r(n,"第".concat(a+1,"页")),Array.isArray(f[a])?e.push.apply(e,u(f[a])):e.push(f[a]))}));var p='<?xml version="1.0" encoding="utf-8"?>';return p+='<answerSheet isNew="true" isYcProject="true" layout="'.concat(this.layout,'" isScrabbled="').concat(this.patchwork,'" readType="1" objectiveAnswerType="').concat(this.objectiveAnswerType,'">'),p+=this.getXMLStringFromArray(e),p+="</answerSheet>",p},getXMLStringFromArray:function(t){var e=function(t){return Object.keys(t).map((function(e){return"Type"!==e?"<".concat(e,">").concat(t[e],"</").concat(e,">"):""})).join("")};return t.map((function(t){return t?"<".concat(t.Type,">").concat(e(t),"</").concat(t.Type,">"):""})).join("")}}},Qe=qe,Xe=Object(B["a"])(Qe,Qt,Xt,!1,null,null,null),Je=Xe.exports,tn={name:"AcCard",components:{AcAnswerConfig:d["default"],AcLattice:qt,AcSweep:Je},props:{title:{type:String,default:""},paperTitle:{type:String,default:""},tree:{type:Array,default:function(){return[]}},mode:{type:Number,default:0},config:{type:Object,default:function(){return null}},uploadOss:{type:Function,default:function(){}},ClassicEditor:{type:Function,default:function(){}},showConfig:{type:Boolean,default:!0},showStudentInfo:{type:Boolean,default:!0},saveInfo:{type:Object,default:null},paddingBlock:{type:[Number,Array],default:68},courseName:{type:String,default:""},noPaperMode:{type:String,default:""},noPaperModePreview:{type:String,default:""},editType:{type:String,default:"editor"},essayType:{type:Array,default:function(){return[0,1,2]}},essaySize:{type:Object,default:null},needEssayBg:{type:Boolean,default:!0},needRestrict:{type:Boolean,default:!0},saveWhileDownload:{type:Boolean,default:!0}},provide:function(){return{uploadOss:this.uploadOss,ClassicEditor:this.ClassicEditor,showStudentInfo:this.showStudentInfo,paperTitle:this.title||this.paperTitle,paddingBlock:this.paddingBlock,courseName:this.courseName,noPaperMode:this.noPaperMode,noPaperModePreview:this.noPaperModePreview,moveCallback:this.moveCallback,deleteCallback:this.deleteCallback,editType:this.editType,essayType:this.essayType,editCallback:this.editCallback,needEssayBg:this.needEssayBg,needRestrict:this.needRestrict}},data:function(){return{paperTree:[],initWindowNum:0}},computed:{layout:function(){return this.$store.getters["AC/layout"]},acMode:function(){return this.$store.getters["AC/answerCardMode"]}},watch:{tree:function(){this.initTree()},saveInfo:function(){this.handleSaveInfo()},title:function(){this.$store.dispatch("AC/paper/setTitle",this.title)}},beforeCreate:function(){if(!Promise.allSettled){var t=function(t){return{status:"rejected",reason:t}},e=function(t){return{status:"fulfilled",value:t}};Promise.allSettled=function(n){return Promise.all(n.map((function(n){return Promise.resolve(n).then(e,t)})))}}},created:function(){var t=this;this.$store.dispatch("AC/essay/resetEssay"),this.init(),this.$nextTick((function(){t.initWindowNum=window.devicePixelRatio,window.addEventListener("resize",t.resizeFun)}))},beforeDestroy:function(){window.removeEventListener("resize",this.resizeFun)},methods:{resizeFun:function(){var t=window.devicePixelRatio;t!==this.initWindowNum&&this.save(!0)},init:function(){this.essaySize&&this.$store.dispatch("AC/essay/setRowSize",this.essaySize),this.$store.dispatch("AC/paper/setTitle",this.title),this.$store.dispatch("AC/answerConfig/setAnswerCardMode",this.mode),this.handleSaveInfo(),this.initTree()},handleSaveInfo:function(){var t=this;if(this.saveInfo){var e={},n={},i={};Object.keys(this.saveInfo).forEach((function(r){switch(r){case"title":case"editTitleList":case"candidateNumColor":case"scansionAttention":case"latticeAttention":e[r]=t.saveInfo[r];break;case"editEssayList":i[r]=t.saveInfo[r];break;case"answerCardMode":case"layout":case"showAttention":case"studentInfo":case"educationIdValue":case"registrationNumberType":case"readType":case"patchwork":case"showQuestion":case"sizeType":case"showEducationId":case"objectiveOrder":case"judgmentMode":case"addFooter":case"entranceExams":case"objectiveAnswerType":case"subjectiveReviewType":n[r]=t.saveInfo[r];break}})),this.$store.dispatch("AC/paper/setSaveState",e),this.$store.dispatch("AC/essay/setSaveState",i),this.$store.dispatch("AC/answerConfig/setSaveState",n)}},initTree:function(){var t=this,e=this.$store.getters["AC/editTitleList"],n=this.$store.getters["AC/editEssayList"].filter((function(t){return!!t.title}));Object(it["f"])(this.tree.concat([].concat(u(e),u(n)))).then((function(){0===t.mode&&t.extendComplex(),t.paperTree=t.tree,t.$store.dispatch(0===t.mode?"AC/paper/setSweepPaperTree":"AC/paper/setPaperTree",t.paperTree)}))},extendComplex:function(){var t=[];this.tree.forEach((function(e,n){t=[],[],e.children.forEach((function(e,n){var i;"complex"===e.code?(e.title=null,e.children.every((function(t){return["single_choice","multiple_choice","judgment"].includes(t.code)}))?(i=t).push.apply(i,u(e.children)):t.push(e)):(e.code,t.push(e))})),e.children=t}))},beforeDownload:function(){this.$emit("before-download")},download:function(){var t=this;this.saveWhileDownload&&this.save(),1===this.acMode?this.$refs.latticeCard&&this.$refs.latticeCard.download().then((function(e){t.$emit("download",e)})):0===this.acMode&&this.$refs.sweepCard&&this.$refs.sweepCard.download().then((function(e){t.$emit("download",e)}))},save:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=["title","editTitleList","candidateNumColor","editEssayList","answerCardMode","layout","showAttention","studentInfo","educationIdValue","registrationNumberType","readType","patchwork"],i=["latticeAttention","showQuestion","sizeType","showEducationId"],r=["scansionAttention","objectiveOrder","judgmentMode","addFooter","entranceExams","objectiveAnswerType","subjectiveReviewType"],a={},o=this.$store.getters["AC/answerCardMode"];n.concat(0===o?r:i).forEach((function(e){a[e]=t.$store.getters["AC/".concat(e)]})),this.$emit("save",a,e)},viewPaper:function(){this.$emit("view-paper")},buildFailed:function(){this.$emit("build-failed")},moveCallback:function(t,e){this.$emit("move",t,e)},deleteCallback:function(t){this.$emit("delete",t)},editCallback:function(t){this.$emit("edit-title",t)}}},en=tn,nn=Object(B["a"])(en,i,r,!1,null,null,null),rn=nn.exports;rn.install=function(t){t.component(rn.name,rn)};e["default"]=rn},"40d5":function(t,e,n){var i=n("d039");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var i=n("e330"),r=n("d039"),a=n("c6b6"),o=Object,s=i("".split);t.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?s(t,""):o(t)}:o},4625:function(t,e,n){var i=n("c6b6"),r=n("e330");t.exports=function(t){if("Function"===i(t))return r(t)}},"485a":function(t,e,n){var i=n("c65b"),r=n("1626"),a=n("861d"),o=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!a(s=i(n,t)))return s;if(r(n=t.valueOf)&&!a(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!a(s=i(n,t)))return s;throw o("Can't convert object to primitive value")}},"4b11":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4d64":function(t,e,n){var i=n("fc6a"),r=n("23cb"),a=n("07fa"),o=function(t){return function(e,n,o){var s,c=i(e),l=a(c),u=r(o,l);if(t&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},"4e0a":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{class:["ac-essay__wrapper",t.lastOneClass],style:{"--padding-inline":t.paddingInline+"px"},attrs:{"data-key":t.dataKey,type:"essay","page-index":t.pageIndex}},[t.scoreBoxVisible?e("div",{staticClass:"score-box__wrapper"},[e("div",{staticClass:"score-box"})]):t._e(),e("div",{staticClass:"ac-essay",class:{"is-wrapper":"outer"===t.borderType,"is-editable":t.editable,"is-hidden__border-both":t.hiddenBorderBoth||!(t.row||t.title),"is-hidden__border-bottom":t.hiddenBorderBottom||!(t.row||t.title),"is-hidden__border-top":t.hiddenBorderTop||!(t.row||t.title),"is-scan":t.scoreBoxVisible&&!["empty","line"].includes(t.rowType),"with-footer":0===t.answerMode,"show-tip":0===t.answerMode&&1===t.subjectiveReviewType&&t.row},style:{paddingBottom:"outer"===t.borderType?"".concat(t.additionalPadding+15,"px"):"0px",paddingLeft:0===t.answerMode&&"40px"}},[0===t.answerMode&&t.isEntranceExams?e("div",{class:["entrance-border",t.layout>2&&"three-column_border",t.isFirst&&"show-border_top",t.isShowTipWord&&"show-border_word-top",t.isLastOne&&"show-border_bottom",t.isFirst&&t.isLastOne&&"show-border_all"]}):t._e(),0===t.answerMode&&t.isEntranceExams?e("div",{class:["entrance-outline",t.layout>2&&"three-column_outline",t.isFirst&&"show-outline_top",t.isShowTipWord&&"show-outline_word-top",t.isLastOne&&"show-outline_bottom",t.isFirst&&t.isLastOne&&"show-outline_all"]}):t._e(),t.title?e("div",{staticClass:"ac-essay__title ck-content",domProps:{innerHTML:t._s(t.title)}}):t._e(),t.row?e("div",{staticClass:"ac-essay__container"},[e("div",{staticClass:"ac-essay__area",class:t.rowClass,style:t.areaStyle},[["empty","block","spell_field"].includes(t.rowType)?t._e():[t._l(t.itemList,(function(n,i){return[t.getLiContent(i)?e("li",{key:"li_".concat(i),staticClass:"ac-essay__area-item",class:{"with-top":t.topLineVisible&&!i,"is-editable":"line"===t.rowType&&t.liEditable},domProps:{innerHTML:t._s(t.getLiContent(i))},on:{blur:function(e){return t.handleBlur(e,i)}}}):e("li",{key:i,staticClass:"ac-essay__area-item",class:{"with-top":t.topLineVisible&&!i,"is-editable":"line"===t.rowType&&t.liEditable,"is-first-column":!(i%t.formatColumn)},style:{borderColor:t.isEntranceExams?"#EB617E":"#000000"},on:{blur:function(e){return t.handleBlur(e,i)}}},[t.showPrefix&&"line"===t.rowType?e("span",{staticClass:"ac-essay__area-prefix"},[t._v(" 【"+t._s(i+t.startRow+1)+"】 ")]):t._e(),t.wordCountStep&&["write","grid","write_plain"].includes(t.rowType)?e("span",[t._v(" "+t._s(t.getWordCount(i))+" ")]):t._e()])]}))],"spell_field"===t.rowType?t._l(Array(t.row).fill(""),(function(n,i){return e("li",{key:i,staticClass:"ac-essay__area-item"},[e("div",{staticClass:"ac-essay__area-spell"}),t._l(Array(t.formatColumn).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-essay__area-field"})}))],2)})):t._e()],2)]):t._e(),t.editable?e("div",{staticClass:"ac-essay__tool"},[t.rowEditable?[e("span",[t._v("行数:")]),e("el-input-number",{attrs:{size:"small",min:0,max:100},on:{change:t.handleRowChange},model:{value:t.rowNum,callback:function(e){t.rowNum=e},expression:"rowNum"}})]:t._e(),t.typeEditable?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.openType}},[t._v(" 背景风格 ")]):t._e(),t.titleEditable?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v(" 编辑答题区 ")]):t._e()],2):t._e()]),e("ac-editor",{attrs:{visible:t.editorVisible,content:t.editContent,title:"编辑答题区","editor-id":"essay-editor_".concat(Date.now().toString(36))},on:{"update:visible":function(e){t.editorVisible=e},submit:t.handleSubmit}}),e("el-dialog",{attrs:{"custom-class":"ac-essay__dialog",visible:t.typeVisible,title:"设置背景风格",width:"770px"},on:{"update:visible":function(e){t.typeVisible=e}}},[e("div",{staticClass:"ac-bg"},[t.essayType.includes(0)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":0===t.currentType},on:{click:function(e){t.currentType=0}}},[t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("空白纸")]):t._e(),e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper"})]):t._e(),t.essayType.includes(1)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":1===t.currentType},on:{click:function(e){t.currentType=1}}},[t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("横线纸")]):t._e(),e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-line"},[e("div",{staticClass:"ac-bg__content"})])]):t._e(),t.essayType.includes(2)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":2===t.currentType},on:{click:function(e){t.currentType=2}}},[t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("方格纸")]):t._e(),e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-grid"},t._l(Array(4).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item"})})),0)]):t._e(),t.essayType.includes(3)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":3===t.currentType},on:{click:function(e){t.currentType=3}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-field"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(12).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e(),t.essayType.includes(4)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":4===t.currentType},on:{click:function(e){t.currentType=4}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-block"},[e("div",{staticClass:"ac-bg__content"})])]):t._e(),t.essayType.includes(5)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":5===t.currentType},on:{click:function(e){t.currentType=5}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-write"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(12).fill(""),(function(t,n){return e("li",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e(),t.essayType.includes(6)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":6===t.currentType},on:{click:function(e){t.currentType=6}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-spell-field"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(3).fill(""),(function(n,i){return e("li",{key:i,staticClass:"ac-bg__content-item"},[e("div",{staticClass:"ac-bg__content-item-spell"}),t._l(Array(3).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item-field"})}))],2)})),0)])]):t._e(),t.essayType.includes(7)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":7===t.currentType},on:{click:function(e){t.currentType=7}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-write-plain"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(16).fill(""),(function(t,n){return e("li",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e()]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.typeVisible=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.changeType}},[t._v("确定")])],1)])],1)},r=[],a=n("6bdf"),o=n("5dcc"),s={name:"AcEssay",components:{AcEditor:a["default"]},inject:["paddingBlock","essayType"],props:{editable:{type:Boolean,default:!0},bgType:{type:Number,default:0},typeEditable:{type:Boolean,default:!0},row:{type:Number,default:4},startRow:{type:Number,default:0},rowCount:{type:Number,default:4},rowEditable:{type:Boolean,default:!0},title:{type:String,default:""},titleEditable:{type:Boolean,default:!0},liEditable:{type:Boolean,default:!1},showPrefix:{type:Boolean,default:!1},rowHeight:{type:[Number,String],default:""},rowGap:{type:[Number,String],default:""},width:{type:[Number,String],default:""},borderType:{type:String,default:"outer"},topLineVisible:{type:Boolean,default:!1},wordCountStep:{type:Number,default:100},paddingInline:{type:Number,default:55},dataKey:{type:String,default:""},hiddenBorderBottom:{type:Boolean,default:!1},hiddenBorderBoth:{type:Boolean,default:!1},pageIndex:{type:Number,default:0},hiddenBorderTop:{type:Boolean,default:!1},column:{type:Number,default:0},showSide:{type:Boolean,default:!0},isFirst:{type:Boolean,default:!1},isShowTipWord:{type:Boolean,default:!1},isLastOne:{type:Boolean,default:!1},lastOneClass:{type:String,default:""}},data:function(){return{rowNum:4,editorVisible:!1,editContent:"",typeVisible:!1,currentType:0,additionalPadding:0,lastAdditionPadding:0}},computed:{rowConfig:function(){return this.$store.getters["AC/rowConfig"]},rowType:function(){var t=["empty","line","grid","field","block","write","spell_field","write_plain"];return t[this.bgType||0]},rowClass:function(){return"row-".concat(this.rowType).concat("inner"===this.borderType?" is-wrapper":"").concat(this.showSide?" show-side":"")},areaStyle:function(){var t=this.rowConfig[this.bgType]||{},e="number"===typeof this.rowHeight?this.rowHeight:t.rowHeight||0,n="number"===typeof this.rowGap?this.rowGap:t.rowGap||0;switch(this.rowType){case"write":case"write_plain":n=e/9*2,e-=n;break;case"spell_field":n=e/9*4,e-=n;break}var i={"--row":this.row,"--row-height":e+"px","--row-gap":n+"px","--column":this.formatColumn};return(this.width||0===this.width)&&(i.width="number"===typeof this.width?this.width+"px":this.width),i},formatColumn:function(){var t=(this.rowConfig[this.bgType]||{}).column;return t?this.column||t:0},itemList:function(){return new Array(this.row*(this.formatColumn||1)).fill("")},rowDebounce:function(){return Object(o["b"])(this.commitRowChange,300)},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return function(t){return((e.liList||[]).find((function(e){return e.liIndex===t}))||{}).content}},answerMode:function(){return this.$store.getters["AC/answerCardMode"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},layout:function(){return this.$store.getters["AC/layout"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]},scoreBoxVisible:function(){return 0===this.answerMode&&1===this.subjectiveReviewType&&0===this.startRow&&this.row}},watch:{rowCount:function(t){t!==this.rowNum&&(this.rowNum=t)},lastOneClass:{immediate:!0,handler:function(t,e){var n=this;!t&&e&&(this.additionalPadding=0,this.lastAdditionPadding=0),t&&this.$nextTick((function(){return n.getDistanceToParentBottom()}))}},row:function(){this.additionalPadding=0,this.lastAdditionPadding=0}},created:function(){this.rowNum=this.rowCount},methods:{getWordCount:function(t){var e=this.startRow*this.formatColumn+t+1;return e%this.wordCountStep?"":"".concat(e,"字")},handleRowChange:function(t,e){(t||0===t||(this.rowNum="",e))&&this.rowDebounce()},commitRowChange:function(){this.$store.dispatch("AC/essay/setEssayRow",{dataKey:this.dataKey,row:this.rowNum}),this.$store.dispatch("AC/paper/resetPanel")},getFullTitle:function(){var t=this;return(this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.title},handleEdit:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.$store.dispatch("AC/paper/resetPanel")},handleBlur:function(t,e){this.$store.dispatch("AC/essay/setEssayLi",{dataKey:this.dataKey,liIndex:e+this.startRow,content:t.target.innerHTML})},openType:function(){this.currentType=this.bgType,this.typeVisible=!0},changeType:function(){this.typeVisible=!1,this.$store.dispatch("AC/essay/setEssayBgType",{dataKey:this.dataKey,bgType:this.currentType}),this.$store.dispatch("AC/paper/resetPanel")},getDistanceToParentBottom:function(){var t=document.getElementsByClassName(this.lastOneClass)[0],e=Object(o["c"])(t)+this.lastAdditionPadding;this.lastAdditionPadding=Math.max(e,-15),this.additionalPadding=e}}},c=s,l=n("2877"),u=Object(l["a"])(c,i,r,!1,null,null,null),d=u.exports;d.install=function(t){t.component(d.name,d)};e["default"]=d},"4ea1":function(t,e,n){"use strict";var i=n("d429"),r=n("ebb5"),a=n("bcbf"),o=n("5926"),s=n("f495"),c=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();u("with",{with:function(t,e){var n=c(this),r=o(t),u=a(n)?s(e):+e;return i(n,l(n),r,u)}}["with"],!d)},"50c4":function(t,e,n){var i=n("5926"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"53ca":function(t,e,n){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,"a",(function(){return i}))},5692:function(t,e,n){var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var i=n("d066"),r=n("e330"),a=n("241c"),o=n("7418"),s=n("825a"),c=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?c(e,n(t)):e}},"577e":function(t,e,n){var i=n("f5df"),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},5926:function(t,e,n){var i=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},"59ed":function(t,e,n){var i=n("1626"),r=n("0d51"),a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5dcc":function(t,e,n){"use strict";n.d(e,"b",(function(){return T})),n.d(e,"f",(function(){return E})),n.d(e,"d",(function(){return S})),n.d(e,"a",(function(){return I})),n.d(e,"e",(function(){return O})),n.d(e,"c",(function(){return P}));n("14d9"),n("b7ef"),n("907a"),n("986a"),n("1d02"),n("3c5d"),n("6ce5"),n("2834"),n("4ea1");var i=b(),r=w(),a=C(),o=A(),s={imagePlaceholder:void 0,cacheBust:!1},c={toSvg:l,toPng:d,toJpeg:h,toBlob:f,toPixelData:u,impl:{fontFaces:a,images:o,util:i,inliner:r,options:{}}};function l(t,e){return e=e||{},p(e),Promise.resolve(t).then((function(t){return y(t,e.filter,!0)})).then(m).then(v).then(n).then((function(n){return _(n,e.width||i.width(t),e.height||i.height(t))}));function n(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t}}function u(t,e){return g(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,i.width(t),i.height(t)).data}))}function d(t,e){return g(t,e||{}).then((function(t){return t.toDataURL()}))}function h(t,e){return e=e||{},g(t,e).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))}function f(t,e){return g(t,e||{}).then(i.canvasToBlob)}function p(t){"undefined"===typeof t.imagePlaceholder?c.impl.options.imagePlaceholder=s.imagePlaceholder:c.impl.options.imagePlaceholder=t.imagePlaceholder,"undefined"===typeof t.cacheBust?c.impl.options.cacheBust=s.cacheBust:c.impl.options.cacheBust=t.cacheBust}function g(t,e){return l(t,e).then(i.makeImage).then(i.delay(100)).then((function(e){var i=n(t);return i.getContext("2d").drawImage(e,0,0),i}));function n(t){var n=document.createElement("canvas"),r=n.getContext("2d");r.mozImageSmoothingEnabled=!1,r.webkitImageSmoothingEnabled=!1,r.msImageSmoothingEnabled=!1,r.imageSmoothingEnabled=!1;var a=e.scale||1,o=e.width||i.width(t),s=e.height||i.height(t);return n.width=o*a,n.height=s*a,e.imageWidth&&(a=e.imageWidth/(o||1),n.width=e.imageWidth,n.height=s*a),e.imageHeight&&(a=e.imageHeight/(s||1),n.width=o*a,n.height=e.imageHeight),r.scale(a,a),e.bgcolor&&(r.fillStyle=e.bgcolor,r.fillRect(0,0,n.width,n.height)),n}}function y(t,e,n){return n||!e||e(t)?Promise.resolve(t).then(r).then((function(n){return a(t,n,e)})).then((function(e){return o(t,e)})):Promise.resolve();function r(t){return t instanceof HTMLCanvasElement?i.makeImage(t.toDataURL()):t.cloneNode(!1)}function a(t,e,n){var r=t.childNodes;return 0===r.length?Promise.resolve(e):a(e,i.asArray(r),n).then((function(){return e}));function a(t,e,n){var i=Promise.resolve();return e.forEach((function(e){i=i.then((function(){return y(e,n)})).then((function(e){e&&t.appendChild(e)}))})),i}}function o(t,e){return e instanceof Element?Promise.resolve().then(n).then(r).then(a).then(o).then((function(){return e})):e;function n(){function n(t,e){function n(t,e){i.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:n(t,e)}n(window.getComputedStyle(t),e.style)}function r(){function n(n){var r=window.getComputedStyle(t,n),a=r.getPropertyValue("content");if(""!==a&&"none"!==a){var o=i.uid();e.className=e.className+" "+o;var s=document.createElement("style");s.appendChild(c(o,n,r)),e.appendChild(s)}function c(t,e,n){var r="."+t+":"+e,a=n.cssText?o(n):s(n);return document.createTextNode(r+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return i.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){n(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function o(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}}function m(t){return a.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function v(t){return o.inlineAll(t).then((function(){return t}))}function _(t,e,n){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(i.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+n+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}function b(){return{escape:h,parseExtension:e,mimeType:n,dataAsUrl:d,isDataUrl:i,canvasToBlob:a,resolveUrl:o,getAndEncode:u,uid:s(),delay:f,asArray:p,escapeXhtml:g,makeImage:l,width:y,height:m};function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var i=e(n).toLowerCase();return t()[i]||""}function i(t){return-1!==t.search(/^(data:)/)}function r(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),i=n.length,r=new Uint8Array(i),a=0;a<i;a++)r[a]=n.charCodeAt(a);e(new Blob([r],{type:"image/png"}))}))}function a(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):r(t)}function o(t,e){var n=document.implementation.createHTMLDocument(),i=n.createElement("base");n.head.appendChild(i);var r=n.createElement("a");return n.body.appendChild(r),i.href=e,r.href=t,r.href}function s(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function l(t){return new Promise((function(e,n){var i=new Image;i.onload=function(){e(i)},i.onerror=n,i.src=t}))}function u(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=3e4;return(c.impl.options.cacheBust||n)&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),e&&t.startsWith("http")&&!t.startsWith("https")&&(t=t.replace("http","https")),new Promise((function(e){var n,r=new XMLHttpRequest;if(r.onreadystatechange=o,r.ontimeout=s,r.responseType="blob",r.timeout=i,r.open("GET",t,!0),r.send(),c.impl.options.imagePlaceholder){var a=c.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(n=a[1])}function o(){if(4===r.readyState)if(200===r.status){var i=new FileReader;i.onloadend=function(){var t=i.result.split(/,/)[1];e({content:t,fullUrl:i.result})},i.readAsDataURL(r.response)}else n?e(n):l("cannot fetch resource: "+t+", status: "+r.status)}function s(){n?e(n):l("timeout of "+i+"ms occured while fetching resource: "+t)}function l(t){e("")}}))}function d(t,e){return"data:"+e+";base64,"+t}function h(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function f(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}}function p(t){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}function g(t){return t.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A").replace(/\v/g," ")}function y(t){var e=v(t,"border-left-width"),n=v(t,"border-right-width");return t.scrollWidth+e+n}function m(t){var e=v(t,"border-top-width"),n=v(t,"border-bottom-width");return t.scrollHeight+e+n}function v(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}function w(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:a,shouldProcess:e,impl:{readUrls:n,inline:r}};function e(e){return-1!==e.search(t)}function n(e){var n,r=[];while(null!==(n=t.exec(e)))r.push(n[1]);return r.filter((function(t){return!i.isDataUrl(t)}))}function r(t,e,n,r){return Promise.resolve(e).then((function(t){return n?i.resolveUrl(t,n):t})).then(r||i.getAndEncode).then((function(t){var n=t.content;t.fullUrl;return i.dataAsUrl(n,i.mimeType(e))})).then((function(n){return t.replace(a(e),"$1"+n+"$3")}));function a(t){return new RegExp("(url\\(['\"]?)("+i.escape(t)+")(['\"]?\\))","g")}}function a(t,i,a){return o()?Promise.resolve(t):Promise.resolve(t).then(n).then((function(e){var n=Promise.resolve(t);return e.forEach((function(t){n=n.then((function(e){return"about:blank"===t?Promise.resolve(t):r(e,t,i,a)}))})),n}));function o(){return!e(t)}}}function C(){return{resolveAll:t,impl:{readAll:e}};function t(){return e(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))}function e(){return Promise.resolve(i.asArray(document.styleSheets)).then(e).then(t).then((function(t){return t.map(n)}));function t(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))}function e(t){var e=[];return t.forEach((function(t){try{i.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(n){}})),e}function n(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}function A(){return{inlineAll:e,impl:{newImage:t}};function t(t){return{inline:e};function e(e){return i.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||function(t){return i.getAndEncode(t,!0,!0)}).then((function(t){t.content;var e=t.fullUrl;return e})).then((function(e){return new Promise((function(n,i){t.onload=n,t.onerror=i,t.src=e}))})).catch((function(){return t.src}))}}function e(n){return n instanceof Element?a(n).then((function(){return n instanceof HTMLImageElement?t(n).inline():Promise.all(i.asArray(n.childNodes).map((function(t){return e(t)})))})):Promise.resolve(n);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}}}var x=c,T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=arguments.length>2?arguments[2]:void 0,i=0;return function(){var r=this,a=arguments;i&&clearTimeout(i),n?(i||t.apply(r,a),i=setTimeout((function(){i=0}),e)):i=setTimeout((function(){t.apply(r,a)}),e)}},k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=0,i=[],r=[],a=function a(){if(n===t.length)return Promise.resolve();var o=t[n++],s=Promise.resolve().then((function(){return o()}));i.push(s);var c=s.then((function(){return r.splice(r.indexOf(c),1)}));r.push(c);var l=r.length>=e?Promise.race(r):Promise.resolve();return l.then((function(){return a()}))};return a().then((function(){return Promise.all(i)}))},E=function(t){var e=[],n=/<img.*?(?:>|\/>)/gi,i=/src=['"]?([^'"]*)['"]?/i,r=function(t){if(t){var r=t.match(n);Array.isArray(r)&&r.forEach((function(t){var n=t.match(i);Array.isArray(n)&&n[1]&&e.push(new Promise((function(t,e){var i=new Image;i.onload=function(){return t()},i.onerror=function(){return e()},i.src=n[1]})))}))}},a=function t(e){e.forEach((function(e){"complex"!==e.code&&e.children||(r(e.title),Array.isArray(e.choices)&&e.choices.forEach((function(t){return r(t.content)}))),e.children&&e.children.length&&t(e.children)}))};return a(t),new Promise((function(t,n){Promise.allSettled(e).then((function(){return t()}))}))},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2?arguments[2]:void 0;if(!t.length)return Promise.resolve([]);for(var i=[],r=function(){var r=t[a];i.push((function(){return x.toJpeg(r,{quality:.95,scale:e,width:r.offsetWidth,height:r.offsetHeight,imageWidth:n,bgcolor:"#ffffff"})}))},a=0;a<t.length;a++)r();return k(i)},I=function(t,e){for(var n=t.split(","),i=atob(n[1]),r={type:"image/jpeg",endings:"native"},a=new Uint8Array(i.length),o=0;o<i.length;o++)a[o]=i.charCodeAt(o);var s=new File([a],(e||Date.now().toString(36))+".jpg",r);return s},O=function(t){var e=0;try{var n=t.getBoundingClientRect(),i=n.top,r=t.parentNode.getBoundingClientRect(),a=r.top;e=i-a}catch(o){e=t.offsetTop}return e},P=function(t){var e=t.getBoundingClientRect(),n=e.bottom,i=t.parentNode.getBoundingClientRect(),r=i.bottom;return r-n}},"5e77":function(t,e,n){var i=n("83ab"),r=n("1a2d"),a=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=r(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!i||i&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},"605d":function(t,e,n){(function(e){var i=n("c6b6");t.exports="undefined"!=typeof e&&"process"==i(e)}).call(this,n("4362"))},6374:function(t,e,n){var i=n("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},"639e":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-config__bar"},[e("div",{class:["ac-config__arrow",t.showConfig?"el-icon-caret-right":"el-icon-caret-left"],on:{click:function(e){t.showConfig=!t.showConfig}}}),e("div",{staticClass:"ac-config__wrapper",class:{"is-hidden":!t.showConfig}},[t.noPaperModePreview?e("div",{staticClass:"container"},["showStructure"===t.noPaperModePreview?t._t("paperStructure"):t._e()],2):e("div",{staticClass:"container"},[e("div",{staticClass:"config-mainCtrl"},[t.noPaperMode||t.paperViewable?e("div",{staticClass:"zeroth-row"},[t.noPaperMode?t._t("quoteAnswerCard"):t.paperViewable?e("el-button",{staticClass:"ac-card-btn ac-card-btn--main ac-card-btn--large",attrs:{type:"primary"},on:{click:t.viewPaper}},[t._v(" 预览试卷 ")]):t._e()],2):t._e(),e("div",{staticClass:"first-row"},[e("el-button",{attrs:{size:"medium",icon:"icon el-icon-download",disabled:!t.$parent.tree.length||!t.acMode&&t.$parent.$refs.sweepCard&&1===t.$parent.$refs.sweepCard.domList.length&&"basicInfo"===t.$parent.$refs.sweepCard.domList[0].type},on:{click:t.save}},[t._v(" 保存 ")]),e("el-button",{attrs:{size:"medium",icon:"icon el-icon-view",disabled:!t.$parent.tree.length},on:{click:function(e){t.previewVisible=!0}}},[t._v(" 预览 ")])],1),e("div",{staticClass:"second-row"},[e("el-button",{staticClass:"ac-card-btn ac-card-btn--main ac-card-btn--large",attrs:{type:"primary",disabled:!t.$parent.tree.length||!t.acMode&&t.$parent.$refs.sweepCard&&1===t.$parent.$refs.sweepCard.domList.length&&"basicInfo"===t.$parent.$refs.sweepCard.domList[0].type},on:{click:t.download}},[t._v(" 下载并保存 ")])],1)]),t.noPaperMode?t._t("eduPeriodSelect"):t._e(),t.noPaperMode?e("el-radio-group",{staticClass:"ac-config__row change-tab",model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("el-radio-button",{attrs:{label:"addTopic"}},[t._v("添加题目")]),e("el-radio-button",{attrs:{label:"answerLayout"}},[t._v("答题卡布局")])],1):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:"addTopic"===t.activeTab,expression:"activeTab === 'addTopic'"}]},[t._t("addTopic")],2),e("div",{directives:[{name:"show",rawName:"v-show",value:"answerLayout"===t.activeTab,expression:"activeTab === 'answerLayout'"}]},[t.modeChangeable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择答题卡模式")]),e("div",{staticClass:"ac-config__item answer-mode"},[e("el-radio-group",{model:{value:t.answerSheetMode,callback:function(e){t.answerSheetMode=e},expression:"answerSheetMode"}},[e("el-radio",{attrs:{label:0}},[t._v("扫描")]),e("el-radio",{attrs:{label:1}},[t._v("点阵笔")])],1)],1)]):t._e(),t.layoutChangeable?e("change-layout",{attrs:{mode:t.answerSheetMode}}):t._e(),t.showStudentInfo&&t.attentionSwitchable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("考生须知")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowAttention,callback:function(e){t.isShowAttention=e},expression:"isShowAttention"}})],1)]):t._e(),1===t.answerSheetMode&&t.showStudentInfo&&t.educationIdSwitchable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("教育ID")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowEducationId,callback:function(e){t.isShowEducationId=e},expression:"isShowEducationId"}})],1)]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("客观题排列")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.objectiveOrder,callback:function(e){t.objectiveOrder=e},expression:"objectiveOrder"}},[e("el-radio",{attrs:{label:"row"}},[t._v("横排")]),e("el-radio",{attrs:{label:"column"}},[t._v("竖排")])],1)],1)]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("客观题作答方式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.objectiveAnswerType,callback:function(e){t.objectiveAnswerType=e},expression:"objectiveAnswerType"}},[e("el-radio",{attrs:{label:0}},[t._v("手写")]),e("el-radio",{attrs:{label:1}},[t._v("涂点")])],1)],1)]):t._e(),1===t.objectiveAnswerType?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("主观题批阅方式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.subjectiveReviewType,callback:function(e){t.subjectiveReviewType=e},expression:"subjectiveReviewType"}},[e("el-radio",{attrs:{label:0}},[t._v("划线(旧)")]),e("el-radio",{attrs:{label:1}},[t._v("手写")])],1)],1)]):t._e(),1===t.objectiveAnswerType&&0===t.answerSheetMode||t.isShowEducationId?[e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("教育ID位数")]),e("div",{staticClass:"ac-config__item"},[e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.educationIdValue,callback:function(e){t.educationIdValue=e},expression:"educationIdValue"}},t._l(Array(13),(function(t,n){return e("el-option",{key:n,attrs:{label:n+6,value:n+6}})})),1)],1)]),e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择考号板式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.registrationNumberType,callback:function(e){t.registrationNumberType=e},expression:"registrationNumberType"}},[e("el-radio",{attrs:{label:0}},[t._v("条形码")]),e("el-radio",{attrs:{label:1}},[t._v("教育ID")])],1)],1)])]:t._e(),1===t.answerSheetMode&&t.titleSwitchable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("显示题目内容")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowQuestion,callback:function(e){t.isShowQuestion=e},expression:"isShowQuestion"}})],1)]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("添加页脚")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isAddFooter,callback:function(e){t.isAddFooter=e},expression:"isAddFooter"}})],1)]):t._e(),0!==t.answerSheetMode&&"graffiti"!==t.readType||1!==t.layout?t._e():e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("答题卡拼凑打印")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isPatchwork,callback:function(e){t.isPatchwork=e},expression:"isPatchwork"}})],1)]),t._t("configSuffix")],2)],2)]),e("ac-preview",{attrs:{visible:t.previewVisible,selector:".ac-panel .ac-piece__wrapper"},on:{"update:visible":function(e){t.previewVisible=e}}}),e("el-dialog",{staticClass:"download-dialog",attrs:{title:"下载提示",visible:t.showDownloadModal,width:"520px",center:"","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.showDownloadModal=e}}},[0===t.answerSheetMode?[e("p",{staticClass:"message"},[t._v(" 选择导出以下内容 "),e("span",{staticClass:"redTip"},[t._v("(为了保证下载内容的质量,建议使用chrome进行下载)")])]),e("div",{staticClass:"tip"},[e("el-radio",{attrs:{label:"sweep"},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v("答题卡")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.downloadType,callback:function(e){t.downloadType=e},expression:"downloadType"}},[e("el-option",{attrs:{label:"PDF",value:"PDF"}}),e("el-option",{attrs:{label:"PNG",value:"PNG"}})],1)],1),e("div",{staticClass:"paper-type_selector"},[e("span",{staticClass:"label"},[t._v("请选择纸张大小")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.downloadSize,callback:function(e){t.downloadSize=e},expression:"downloadSize"}},[e("el-option",{attrs:{label:1===t.layout?"A4":"A3",value:1===t.layout?"A4":"A3"}}),e("el-option",{attrs:{label:1===t.layout?"16K":"8K",value:1===t.layout?"16K":"8K"}})],1)],1)]:t._e(),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.showDownloadModal=!1}}},[t._v("取 消")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.confirmDownload}},[t._v("确 定")])],1)],2)],1)},r=[],a=(n("14d9"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择答题卡模式")]),e("div",{staticClass:"ac-config__item answer-mode-other"},[e("p",{staticClass:"ac-card-config__sublabel"},[t._v("适用于"+t._s(t.subLabel)+"纸张")]),e("div",{staticClass:"layout-config"},[e("div",{class:["layout-config-item",t.disableOneLayout&&"disable-style"],attrs:{"aria-disabled":t.disableOneLayout},on:{click:function(e){return t.changeAnswerCardLayout(1)}}},[e("div",{class:["layout-image",1===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("d09a"),alt:"一栏"}})]),e("p",{staticClass:"layout-name"},[t._v("一栏")])]),e("div",{staticClass:"layout-config-item",on:{click:function(e){return t.changeAnswerCardLayout(2)}}},[e("div",{class:["layout-image",2===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("eb33"),alt:"两栏"}})]),e("p",{staticClass:"layout-name"},[t._v("两栏")])]),0===t.mode?e("div",{staticClass:"layout-config-item",on:{click:function(e){return t.changeAnswerCardLayout(3)}}},[e("div",{class:["layout-image",3===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("f714"),alt:"三栏"}})]),e("p",{staticClass:"layout-name"},[t._v("三栏")])]):t._e()]),1===t.mode?e("el-radio-group",{model:{value:t.sizeType,callback:function(e){t.sizeType=e},expression:"sizeType"}},[e("el-radio",{attrs:{label:"A"}},[t._v(t._s(1===t.layout?"A4":"A3"))]),e("el-radio",{attrs:{label:"K"}},[t._v(t._s(1===t.layout?"16K":"8K"))])],1):t._e()],1)])}),o=[],s={name:"ChangeLayout",components:{},props:{mode:{type:Number,default:0}},computed:{sizeType:{get:function(){return this.$store.getters["AC/sizeType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setSizeType",t),this.$store.dispatch("AC/paper/resetPanel")}},layout:function(){return this.$store.getters["AC/layout"]},disableOneLayout:function(){return this.$store.getters["AC/disableOneLayout"]},subLabel:function(){return 0===this.mode?1===this.layout?"A4、16K":"A3、8K":"A"===this.sizeType?1===this.layout?"A4":"A3":1===this.layout?"16K":"8K"}},watch:{},mounted:function(){},data:function(){return{}},methods:{changeAnswerCardLayout:function(t){this.$store.dispatch("AC/answerConfig/setAnswerCardLayout",t),t>1&&this.$store.dispatch("AC/answerConfig/setPatchwork",!1),this.$store.dispatch("AC/paper/resetPanel")}}},c=s,l=n("2877"),u=Object(l["a"])(c,a,o,!1,null,null,null),d=u.exports,h=n("2b16"),f={name:"AcAnswerConfig",components:{changeLayout:d,AcPreview:h["default"]},props:{modeChangeable:{type:Boolean,default:!0},layoutChangeable:{type:Boolean,default:!0},titleSwitchable:{type:Boolean,default:!0},graffitiDisable:{type:Boolean,default:!1},attentionSwitchable:{type:Boolean,default:!0},educationIdSwitchable:{type:Boolean,default:!0},handReadSwitchable:{type:Boolean,default:!0},paperViewable:{type:Boolean,default:!0},manualDownload:{type:Boolean,default:!1},studentInfoClearable:{type:Boolean,default:!1}},inject:["showStudentInfo","noPaperMode","noPaperModePreview"],computed:{answerSheetMode:{get:function(){return this.$store.getters["AC/answerCardMode"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAnswerCardMode",t),0===t&&this.$store.dispatch("AC/answerConfig/setSizeType","A")}},isShowAttention:{get:function(){return this.$store.getters["AC/showAttention"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAttention",t),this.$store.dispatch("AC/paper/resetPanel")}},studentInfoArr:function(){return this.$store.getters["AC/studentInfo"]},isShowEducationId:{get:function(){return this.$store.getters["AC/showEducationId"]},set:function(t){this.$store.dispatch("AC/answerConfig/setShowEducationId",t),this.$store.dispatch("AC/paper/resetPanel")}},educationIdValue:{get:function(){return this.$store.getters["AC/educationIdValue"]},set:function(t){this.$store.dispatch("AC/answerConfig/setEducationId",t),this.$store.dispatch("AC/paper/resetPanel")}},registrationNumberType:{get:function(){return this.$store.getters["AC/registrationNumberType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setRegistrationNumberType",t),this.$store.dispatch("AC/paper/resetPanel")}},objectiveOrder:{get:function(){return this.$store.getters["AC/objectiveOrder"]},set:function(t){this.$store.dispatch("AC/answerConfig/setObjectiveOrder",t),this.$store.dispatch("AC/paper/resetPanel")}},objectiveAnswerType:{get:function(){return this.$store.getters["AC/objectiveAnswerType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setObjectiveAnswerType",t),0===t&&(this.subjectiveReviewType=1)}},subjectiveReviewType:{get:function(){return this.$store.getters["AC/subjectiveReviewType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setSubjectiveReviewType",t)}},judgmentMode:{get:function(){return this.$store.getters["AC/judgmentMode"]},set:function(t){this.$store.dispatch("AC/answerConfig/setJudgmentMode",t)}},isShowQuestion:{get:function(){return this.$store.getters["AC/showQuestion"]},set:function(t){this.$store.dispatch("AC/answerConfig/setShowQuestion",t),this.$store.dispatch("AC/paper/resetEditTitle")}},handRead:{get:function(){return!!this.readType},set:function(t){this.readType=t?"graffiti":""}},readType:{get:function(){return this.$store.getters["AC/readType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setReadType",t),this.$store.dispatch("AC/paper/resetPanel")}},isAddFooter:{get:function(){return this.$store.getters["AC/addFooter"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAddFooter",t)}},isPatchwork:{get:function(){return this.$store.getters["AC/patchwork"]},set:function(t){this.$store.dispatch("AC/answerConfig/setPatchwork",t),this.$store.dispatch("AC/paper/resetPanel")}},isEntranceExams:{get:function(){return this.$store.getters["AC/entranceExams"]},set:function(t){this.$store.dispatch("AC/answerConfig/setEntranceExams",t),"graffiti"===this.readType?this.handRead=!1:this.$store.dispatch("AC/paper/resetPanel")}},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},sizeLabel:function(){var t="",e="";switch(this.layout){case 1:t="一栏",e="A"===this.sizeType?"A4":"16K";break;case 2:t="二栏",e="A"===this.sizeType?"A3":"8K";break}return"".concat(t," ").concat(e)},downloadType:{get:function(){return this.$store.getters["AC/downloadType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setDownloadType",t)}},downloadSize:{get:function(){return this.$store.getters["AC/downloadSize"]},set:function(t){this.$store.dispatch("AC/answerConfig/setDownloadSize",t)}},acMode:function(){return this.$store.getters["AC/answerCardMode"]},paperTree:function(){return this.$store.getters["AC/sweepPaperTree"]}},watch:{studentInfoArr:function(){this.studentInfoTags=this.studentInfoArr}},mounted:function(){this.studentInfoTags=this.studentInfoArr},data:function(){return{studentInfoTags:[],inputVisible:!1,inputValue:"",showConfig:!0,previewVisible:!1,showDownloadModal:!1,radio:"sweep",activeTab:this.noPaperMode?"addTopic":"answerLayout"}},methods:{handleClose:function(t){this.studentInfoTags.splice(this.studentInfoTags.indexOf(t),1),this.$store.dispatch("AC/answerConfig/setStudentInfo",this.studentInfoTags),this.$store.dispatch("AC/paper/resetPanel")},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(e){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&-1===this.studentInfoTags.indexOf(t)&&this.studentInfoTags.push(t),this.inputVisible=!1,this.inputValue="",this.$store.dispatch("AC/answerConfig/setStudentInfo",this.studentInfoTags),this.$store.dispatch("AC/paper/resetPanel")},download:function(){if(this.acMode)this.isShowEducationId||this.handRead?this.showDownloadModal=!0:(this.$emit("before-download"),!this.manualDownload&&this.$emit("download"));else{var t=!1;this.paperTree.forEach((function(e){0!==e.children.length&&e.children||(t=!0)})),t?this.$message({showClose:!0,message:"有标题下没有题目,请检查后再生成",type:"error"}):(this.showDownloadModal=!0,this.$store.dispatch("AC/answerConfig/setDownloadSize",1===this.layout?"A4":"A3"))}},confirmDownload:function(){this.showDownloadModal=!1,this.$emit("download")},save:function(){this.$emit("save")},viewPaper:function(){this.$emit("view-paper")}}},p=f,g=Object(l["a"])(p,i,r,!1,null,null,null),y=g.exports;y.install=function(t){t.component(y.name,y)};e["default"]=y},"69f3":function(t,e,n){var i,r,a,o=n("cdce"),s=n("da84"),c=n("861d"),l=n("9112"),u=n("1a2d"),d=n("c6cd"),h=n("f772"),f=n("d012"),p="Object already initialized",g=s.TypeError,y=s.WeakMap,m=function(t){return a(t)?r(t):i(t,{})},v=function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(o||d.state){var _=d.state||(d.state=new y);_.get=_.get,_.has=_.has,_.set=_.set,i=function(t,e){if(_.has(t))throw g(p);return e.facade=t,_.set(t,e),e},r=function(t){return _.get(t)||{}},a=function(t){return _.has(t)}}else{var b=h("state");f[b]=!0,i=function(t,e){if(u(t,b))throw g(p);return e.facade=t,l(t,b,e),e},r=function(t){return u(t,b)?t[b]:{}},a=function(t){return u(t,b)}}t.exports={set:i,get:r,has:a,enforce:m,getterFor:v}},"6bdf":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{"custom-class":"ac-editor",visible:t.currentVisible,title:t.title,top:"10vh",width:"868px","close-on-click-modal":!1},on:{"update:visible":function(e){t.currentVisible=e},open:t.handleOpen}},[e("textarea",{attrs:{id:t.editorId}}),e("div",{staticClass:"ac-editor__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.close}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确定")])],1)])},r=[],a=n("d4ec"),o=n("bee2"),s={name:"AcEditor",props:{title:{type:String,default:"编辑标题"},content:{type:String,default:""},visible:{type:Boolean,default:!1},editorId:{type:String,default:"ac-editor"},editorConstructor:{type:Function,default:function(){}}},inject:["uploadOss","ClassicEditor"],data:function(){return{editor:null}},computed:{currentVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}},uploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(a["a"])(this,e),this.loader=t}return Object(o["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,i){e.loader.file.then((function(e){return t(e,n)}))}))}}]),e}()},createFn:function(){return this.ClassicEditor||this.editorConstructor}},methods:{handleOpen:function(){var t=this;this.$nextTick((function(){return t.initEditor()}))},close:function(){this.currentVisible=!1},confirm:function(){this.close(),this.editor&&this.$emit("submit",this.editor.getData())},initEditor:function(){var t=this;this.editor?(""===this.content||this.content)&&this.editor.setData(this.content):this.createFn.create(document.querySelector("#".concat(this.editorId)),{isReadOnly:!0,placeholder:"请输入~",image:{resizeUnit:"px",toolbar:[{name:"imageStyle:pictures",items:["imageStyle:alignBlockLeft","imageStyle:alignCenter","imageStyle:alignBlockRight"],defaultItem:"imageStyle:alignCenter"},"|","toggleImageCaption","imageStyle:inline"]}}).then((function(e){t.editor=e,t.content&&t.editor.setData(t.content),t.addSpecialCharacters(e),e.plugins.get("FileRepository").createUploadAdapter=function(e){return new t.uploadAdapter(e)},e.on("instanceReady",(function(t){t.editor.execCommand("toolbarCollapse")}))}))},addSpecialCharacters:function(t){t.plugins.get("SpecialCharacters").addItems("编号",[{title:"①",character:"①"},{title:"②",character:"②"},{title:"③",character:"③"},{title:"④",character:"④"},{title:"⑤",character:"⑤"},{title:"⑥",character:"⑥"},{title:"⑦",character:"⑦"},{title:"⑧",character:"⑧"},{title:"⑨",character:"⑨"},{title:"⑩",character:"⑩"},{title:"(1)",character:"(1)"},{title:"(2)",character:"(2)"},{title:"(3)",character:"(3)"},{title:"(4)",character:"(4)"},{title:"(5)",character:"(5)"},{title:"(6)",character:"(6)"},{title:"(7)",character:"(7)"},{title:"(8)",character:"(8)"},{title:"(9)",character:"(9)"},{title:"(10)",character:"(10)"},{title:"1)",character:"1)"},{title:"2)",character:"2)"},{title:"3)",character:"3)"},{title:"4)",character:"4)"},{title:"5)",character:"5)"},{title:"6)",character:"6)"},{title:"7)",character:"7)"},{title:"8)",character:"8)"},{title:"9)",character:"9)"},{title:"10)",character:"10)"},{title:"一",character:"一"},{title:"二",character:"二"},{title:"三",character:"三"},{title:"四",character:"四"},{title:"五",character:"五"},{title:"六",character:"六"},{title:"七",character:"七"},{title:"八",character:"八"},{title:"九",character:"九"},{title:"十",character:"十"},{title:"(一)",character:"(一)"},{title:"(二)",character:"(二)"},{title:"(三)",character:"(三)"},{title:"(四)",character:"(四)"},{title:"(五)",character:"(五)"},{title:"(六)",character:"(六)"},{title:"(七)",character:"(七)"},{title:"(八)",character:"(八)"},{title:"(九)",character:"(九)"},{title:"(十)",character:"(十)"}])}}},c=s,l=n("2877"),u=Object(l["a"])(c,i,r,!1,null,null,null),d=u.exports;d.install=function(t){t.component(d.name,d)};e["default"]=d},"6ce5":function(t,e,n){"use strict";var i=n("df7e"),r=n("ebb5"),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;o("toReversed",(function(){return i(a(this),s(this))}))},"6f19":function(t,e,n){var i=n("9112"),r=n("0d26"),a=n("b980"),o=Error.captureStackTrace;t.exports=function(t,e,n,s){a&&(o?o(t,e):i(t,"stack",r(n,s)))}},7156:function(t,e,n){var i=n("1626"),r=n("861d"),a=n("d2bb");t.exports=function(t,e,n){var o,s;return a&&i(o=e.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){var i=n("e330"),r=n("59ed");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(a){}}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var i=n("1d80"),r=Object;t.exports=function(t){return r(i(t))}},"825a":function(t,e,n){var i=n("861d"),r=String,a=TypeError;t.exports=function(t){if(i(t))return t;throw a(r(t)+" is not an object")}},"83ab":function(t,e,n){var i=n("d039");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var i=n("1626"),r=n("8ea1"),a=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===a}:function(t){return"object"==typeof t?null!==t:i(t)}},8925:function(t,e,n){var i=n("e330"),r=n("1626"),a=n("c6cd"),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},"8ea1":function(t,e){var n="object"==typeof document&&document.all,i="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:i}},"8f60":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{class:["ac-graffiti__wrapper",t.hidePadding&&"is-hide-padding"]},[e("div",{class:["ac-graffiti",t.hideBottomBorder&&"is-hide-bottom",t.hideTopBorder&&"is-hide-top"],attrs:{"data-scan-type":"review","data-scan-name":t.scanName,"data-scan-score":t.score}},t._l(Array(21).fill(""),(function(n,i){return e("span",{key:i,staticClass:"ac-graffiti__item"},[t._v(" "+t._s(t.getItem(i))+" ")])})),0)])},r=[],a={name:"AcGraffiti",props:{score:{type:Number,required:!0},scanName:{type:String},hidePadding:{type:Boolean,required:!1},hideBottomBorder:{type:Boolean,required:!1},hideTopBorder:{type:Boolean,required:!1}},methods:{getItem:function(t){if(20===t)return.5;if(this.score>=20)return t>9||10*t<=this.score?t%10:"";var e=20-this.score-1;return t>=e?20-t-1:""}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null),l=c.exports;l.install=function(t){t.component(l.name,l)};e["default"]=l},"907a":function(t,e,n){"use strict";var i=n("ebb5"),r=n("07fa"),a=n("5926"),o=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(t){var e=o(this),n=r(e),i=a(t),s=i>=0?i:n+i;return s<0||s>=n?void 0:e[s]}))},"90e3":function(t,e,n){var i=n("e330"),r=0,a=Math.random(),o=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++r+a,36)}},9112:function(t,e,n){var i=n("83ab"),r=n("9bf2"),a=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},9152:function(t,e){
|
|
4
4
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5
5
|
e.read=function(t,e,n,i,r){var a,o,s=8*r-i-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?r-1:0,h=n?-1:1,f=t[e+d];for(d+=h,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+t[e+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=i;u>0;o=256*o+t[e+d],d+=h,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),a-=l}return(f?-1:1)*o*Math.pow(2,a-i)},e.write=function(t,e,n,i,r,a){var o,s,c,l=8*a-r-1,u=(1<<l)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:a-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),e+=o+d>=1?h/c:h*Math.pow(2,1-d),e*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(e*c-1)*Math.pow(2,r),o+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;t[n+f]=255&s,f+=p,s/=256,r-=8);for(o=o<<r|s,l+=r;l>0;t[n+f]=255&o,f+=p,o/=256,l-=8);t[n+f-p]|=128*g}},"94ca":function(t,e,n){var i=n("d039"),r=n("1626"),a=/#|\.prototype\./,o=function(t,e){var n=c[s(t)];return n==u||n!=l&&(r(e)?i(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"986a":function(t,e,n){"use strict";var i=n("ebb5"),r=n("a258").findLast,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("findLast",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0)}))},"9bf2":function(t,e,n){var i=n("83ab"),r=n("0cfb"),a=n("aed9"),o=n("825a"),s=n("a04b"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";e.f=i?a?function(t,e,n){if(o(t),e=s(e),o(n),"function"===typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var i=u(t,e);i&&i[f]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(o(t),e=s(e),o(n),r)try{return l(t,e,n)}catch(i){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a04b:function(t,e,n){var i=n("c04e"),r=n("d9b5");t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},a258:function(t,e,n){var i=n("0366"),r=n("44ad"),a=n("7b0b"),o=n("07fa"),s=function(t){var e=1==t;return function(n,s,c){var l,u,d=a(n),h=r(d),f=i(s,c),p=o(h);while(p-- >0)if(l=h[p],u=f(l,p,d),u)switch(t){case 0:return l;case 1:return p}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},a38e:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("53ca");n("d9e2");function r(t,e){if("object"!==Object(i["a"])(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Object(i["a"])(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function a(t){var e=r(t,"string");return"symbol"===Object(i["a"])(e)?e:String(e)}},a640:function(t,e,n){"use strict";var i=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},ab36:function(t,e,n){var i=n("861d"),r=n("9112");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},aeb0:function(t,e,n){var i=n("9bf2").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){var i=n("83ab"),r=n("d039");t.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:n)(e)}},b622:function(t,e,n){var i=n("da84"),r=n("5692"),a=n("1a2d"),o=n("90e3"),s=n("04f8"),c=n("fdbf"),l=i.Symbol,u=r("wks"),d=c?l["for"]||l:l&&l.withoutSetter||o;t.exports=function(t){return a(u,t)||(u[t]=s&&a(l,t)?l[t]:d("Symbol."+t)),u[t]}},b639:function(t,e,n){"use strict";(function(t){
|
|
6
6
|
/*!
|
|
@@ -9,4 +9,4 @@ e.read=function(t,e,n,i,r){var a,o,s=8*r-i-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?r-1:0,h=
|
|
|
9
9
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
10
10
|
* @license MIT
|
|
11
11
|
*/
|
|
12
|
-
var i=n("1fb5"),r=n("9152"),a=n("e3db");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=l.prototype):(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return u(this,t,e,n)}function u(t,e,n,i){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?y(t,e,n,i):"string"===typeof e?p(t,e,n):m(t,e)}function d(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e,n,i){return d(e),e<=0?c(t,e):void 0!==n?"string"===typeof i?c(t,e).fill(n,i):c(t,e).fill(n):c(t,e)}function f(t,e){if(d(e),t=c(t,e<0?0:0|v(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|b(e,n);t=c(t,i);var r=t.write(e,n);return r!==i&&(t=t.slice(0,r)),t}function g(t,e){var n=e.length<0?0:0|v(e.length);t=c(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function y(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),l.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=l.prototype):t=g(t,e),t}function m(t,e){if(l.isBuffer(e)){var n=0|v(e.length);return t=c(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?c(t,0):g(t,e);if("Buffer"===e.type&&a(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),l.alloc(+t)}function b(t,e){if(l.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(i)return q(t).length;e=(""+e).toLowerCase(),i=!0}}function w(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return $(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function C(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function A(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:x(t,e,n,i,r);if("number"===typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,r){var a,o=1,s=t.length,c=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(a=n;a<s;a++)if(l(t,a)===l(e,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var d=!0,h=0;h<c;h++)if(l(t,a+h)!==l(e,h)){d=!1;break}if(d)return a}return-1}function T(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function k(t,e,n,i){return tt(q(e,t.length-n),t,n,i)}function E(t,e,n,i){return tt(Q(e),t,n,i)}function S(t,e,n,i){return E(t,e,n,i)}function I(t,e,n,i){return tt(J(e),t,n,i)}function O(t,e,n,i){return tt(X(e,t.length-n),t,n,i)}function P(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function B(t,e,n){n=Math.min(t.length,n);var i=[],r=e;while(r<n){var a,o,s,c,l=t[r],u=null,d=l>239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:a=t[r+1],128===(192&a)&&(c=(31&l)<<6|63&a,c>127&&(u=c));break;case 3:a=t[r+1],o=t[r+2],128===(192&a)&&128===(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:a=t[r+1],o=t[r+2],s=t[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s,c>65535&&c<1114112&&(u=c))}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return L(i)}e.Buffer=l,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=s(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return h(null,t,e,n)},l.allocUnsafe=function(t){return f(null,t)},l.allocUnsafeSlow=function(t){return f(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=l.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},l.byteLength=b,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)C(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):w.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,o=n-e,s=Math.min(a,o),c=this.slice(i,r),u=t.slice(e,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return A(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return A(this,t,e,n,!1)},l.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return T(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function L(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);var n="",i=0;while(i<e)n+=String.fromCharCode.apply(String,t.slice(i,i+=j));return n}function R(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function M(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function $(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=G(t[a]);return r}function N(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function z(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,i,r,a){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function U(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r<a;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function H(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r<a;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function F(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(t,e,n,i,a){return a||F(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function W(t,e,n,i,a){return a||F(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=l.prototype;else{var r=e-t;n=new l(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return i},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=this[t+--e],r=1;while(e>0&&(r*=256))i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=e,r=1,a=this[t+--i];while(i>0&&(r*=256))a+=this[t+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},l.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;D(this,t,e,n,r,0)}var a=1,o=0;this[e]=255&t;while(++o<n&&(a*=256))this[e+o]=t/a&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;D(this,t,e,n,r,0)}var a=n-1,o=1;this[e+a]=255&t;while(--a>=0&&(o*=256))this[e+a]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;this[e]=255&t;while(++a<n&&(o*=256))t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;this[e+a]=255&t;while(--a>=0&&(o*=256))t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return K(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return K(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},l.prototype.fill=function(t,e,n,i){if("string"===typeof t){if("string"===typeof e?(i=e,e=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=l.isBuffer(t)?t:q(new l(t,i).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function Y(t){if(t=Z(t).replace(V,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var n;e=e||1/0;for(var i=t.length,r=null,a=[],o=0;o<i;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Q(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function X(t,e){for(var n,i,r,a=[],o=0;o<t.length;++o){if((e-=2)<0)break;n=t.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i)}return a}function J(t){return i.toByteArray(Y(t))}function tt(t,e,n,i){for(var r=0;r<i;++r){if(r+n>=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b7ef:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("d066"),o=n("5c6c"),s=n("9bf2").f,c=n("1a2d"),l=n("19aa"),u=n("7156"),d=n("e391"),h=n("cf98"),f=n("0d26"),p=n("83ab"),g=n("c430"),y="DOMException",m=a("Error"),v=a(y),_=function(){l(this,b);var t=arguments.length,e=d(t<1?void 0:arguments[0]),n=d(t<2?void 0:arguments[1],"Error"),i=new v(e,n),r=m(e);return r.name=y,s(i,"stack",o(1,f(r.stack,1))),u(i,this,_),i},b=_.prototype=v.prototype,w="stack"in m(y),C="stack"in new v(1,2),A=v&&p&&Object.getOwnPropertyDescriptor(r,y),x=!!A&&!(A.writable&&A.configurable),T=w&&!x&&!C;i({global:!0,constructor:!0,forced:g||T},{DOMException:T?_:v});var k=a(y),E=k.prototype;if(E.constructor!==k)for(var S in g||s(E,"constructor",o(1,k)),h)if(c(h,S)){var I=h[S],O=I.s;c(k,O)||s(k,O,o(6,I.c))}},b980:function(t,e,n){var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},bcbf:function(t,e,n){var i=n("f5df");t.exports=function(t){var e=i(t);return"BigInt64Array"==e||"BigUint64Array"==e}},bee2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("a38e");function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Object(i["a"])(r.key),r)}}function a(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},c04e:function(t,e,n){var i=n("c65b"),r=n("861d"),a=n("d9b5"),o=n("dc4a"),s=n("485a"),c=n("b622"),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!r(t)||a(t))return t;var n,c=o(t,u);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!r(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c430:function(t,e){t.exports=!1},c4e3:function(t,e,n){(function(e,n,i){var r;!function(e){t.exports=e()}((function(){return function t(e,n,i){function a(s,c){if(!n[s]){if(!e[s]){var l="function"==typeof r&&r;if(!c&&l)return r(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};e[s][0].call(d.exports,(function(t){var n=e[s][1][t];return a(n||t)}),d,d.exports,t,e,n,i)}return n[s].exports}for(var o="function"==typeof r&&r,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,o,s,c,l,u=[],d=0,h=t.length,f=h,p="string"!==i.getTypeOf(t);d<t.length;)f=h-d,r=p?(e=t[d++],n=d<h?t[d++]:0,d<h?t[d++]:0):(e=t.charCodeAt(d++),n=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),o=e>>2,s=(3&e)<<4|n>>4,c=1<f?(15&n)<<2|r>>6:64,l=2<f?63&r:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join("")},n.decode=function(t){var e,n,i,o,s,c,l=0,u=0,d="data:";if(t.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===a.charAt(64)&&f--,t.charAt(t.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|f):new Array(0|f);l<t.length;)e=a.indexOf(t.charAt(l++))<<2|(o=a.indexOf(t.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(t.charAt(l++)))>>2,i=(3&s)<<6|(c=a.indexOf(t.charAt(l++))),h[u++]=e,64!==s&&(h[u++]=n),64!==c&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),a=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new a).pipe(new o("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n,i){var a=r,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,i){var a=r,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),a=t("./utils"),o=t("./stream/GenericWorker"),s=i?"uint8array":"array";function c(t,e){o.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,t.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new c("Deflate",t)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,o,u){var d,h,f=t.file,p=t.compression,g=u!==s.utf8encode,y=a.transformTo("string",u(f.name)),m=a.transformTo("string",s.utf8encode(f.name)),v=f.comment,_=a.transformTo("string",u(v)),b=a.transformTo("string",s.utf8encode(v)),w=m.length!==f.name.length,C=b.length!==v.length,A="",x="",T="",k=f.dir,E=f.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var I=0;e&&(I|=8),g||!w&&!C||(I|=2048);var O=0,P=0;k&&(O|=16),"UNIX"===o?(P=798,O|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(f.unixPermissions,k)):(P=20,O|=function(t){return 63&(t||0)}(f.dosPermissions)),d=E.getUTCHours(),d<<=6,d|=E.getUTCMinutes(),d<<=5,d|=E.getUTCSeconds()/2,h=E.getUTCFullYear()-1980,h<<=4,h|=E.getUTCMonth()+1,h<<=5,h|=E.getUTCDate(),w&&(x=i(1,1)+i(c(y),4)+m,A+="up"+i(x.length,2)+x),C&&(T=i(1,1)+i(c(_),4)+b,A+="uc"+i(T.length,2)+T);var B="";return B+="\n\0",B+=i(I,2),B+=p.magic,B+=i(d,2),B+=i(h,2),B+=i(S.crc32,4),B+=i(S.compressedSize,4),B+=i(S.uncompressedSize,4),B+=i(y.length,2),B+=i(A.length,2),{fileRecord:l.LOCAL_FILE_HEADER+B+y+A,dirRecord:l.CENTRAL_FILE_HEADER+i(P,2)+B+i(_.length,2)+"\0\0\0\0"+i(O,4)+i(r,4)+y+A+_}}var a=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),c=t("../crc32"),l=t("../signature");function u(t,e,n,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return l.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,o){var s=a.transformTo("string",o(r));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var a=new r(e.streamFiles,n,e.platform,e.encodeFileName),o=0;try{t.forEach((function(t,n){o++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:t,dir:c,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(t){a.error(t)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),a=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),c=t("./nodejsUtils");function l(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new s);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new o(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var a=0;a<i.length;a++)n.push(l(i[a]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),a=r.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=i.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function a(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(a,r),a.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},a.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=a.getTypeOf(e),s=a.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(i=p(t))&&y.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(e instanceof l&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",r="string");var m=null;m=e instanceof l||e instanceof o?e:h.isNode&&h.isStream(e)?new f(t,e):a.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var v=new u(t,m,s);this.files[t]=v}var r=t("./utf8"),a=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),c=t("./defaults"),l=t("./compressedObject"),u=t("./zipObject"),d=t("./generate"),h=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},y=function(t,e){return e=void 0!==e?e:c.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function m(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(m(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var a=this.files[this.root+t];return a&&!a.dir?a:null},folder:function(t){if(!t)return this;if(m(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=y.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=a.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=d.generateWorker(this,n,i)}catch(t){(e=new o("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===e&&this.data[a+1]===n&&this.data[a+2]===i&&this.data[a+3]===r)return a-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),a=this.readData(4);return e===a[0]&&n===a[1]&&i===a[2]&&r===a[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),a=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),c=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new s(t):r.uint8array?new c(i.transformTo("uint8array",t)):new a(i.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function a(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(a,i),a.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(a,i),a.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function a(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(a,r),a.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function a(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(a,r),a.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,n,i){"use strict";var r=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),c=t("../support"),l=t("../external"),u=null;if(c.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function d(t,n){return new l.Promise((function(i,a){var o=[],c=t._internalType,l=t._outputType,u=t._mimeType;t.on("data",(function(t,e){o.push(t),n&&n(e)})).on("error",(function(t){o=[],a(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return r.transformTo(t,e)}}(l,function(t,n){var i,r=0,a=null,o=0;for(i=0;i<n.length;i++)o+=n[i].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(a=new Uint8Array(o),i=0;i<n.length;i++)a.set(n[i],r),r+=n[i].length;return a;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(c,o),u);i(t)}catch(t){a(t)}o=[]})).resume()}))}function h(t,e,n){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=e,this._mimeType=n,r.checkSupport(i),this._worker=t.pipe(new a(i)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return d(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){r.delay(e,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof e,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var r=new ArrayBuffer(0);try{i.blob=0===new Blob([r],{type:"application/zip"}).size}catch(t){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(r),i.blob=0===a.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),a=t("./nodejsUtils"),o=t("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return r.nodebuffer?a.newBufferFrom(t,"utf-8"):function(t){var e,n,i,a,o,s=t.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,a,o=t.length,c=new Array(2*o);for(e=n=0;e<o;)if((r=t[e++])<128)c[n++]=r;else if(4<(a=s[r]))c[n++]=65533,e+=a-1;else{for(r&=2===a?31:3===a?15:7;1<a&&e<o;)r=r<<6|63&t[e++],a--;1<a?c[n++]=65533:r<65536?c[n++]=r:(r-=65536,c[n++]=55296|r>>10&1023,c[n++]=56320|1023&r)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),i.applyFromCharCode(c)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(l,o),l.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var a=e;(e=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),e.set(a,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),c=e;o!==e.length&&(r.uint8array?(c=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(c=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:n.utf8decode(c),meta:t.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,i.inherits(u,o),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),a=t("./nodejsUtils"),o=t("./external");function s(t){return t}function c(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(e,i){n.checkSupport("blob");try{return new Blob([e],{type:i})}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(t,e,n){var i=[],r=0,a=t.length;if(a<=n)return String.fromCharCode.apply(null,t);for(;r<a;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,a)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,a)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=l.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=l.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return l.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return l.stringifyByChar(t)}function d(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var h={};h.string={string:s,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:function(t){return c(t,a.allocBuffer(t.length))}},h.array={string:u,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a.newBufferFrom(t)}},h.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return a.newBufferFrom(t)}},h.nodebuffer={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return h[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&a.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,a,s,l){return o.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(l?e=r.decode(e):a&&!0!==s&&(e=function(t){return c(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),a=t("./signature"),o=t("./zipEntry"),s=t("./support");function c(t){this.files=[],this.loadOptions=t}c.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,a.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),a=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),c=t("./compressions"),l=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in c)if(Object.prototype.hasOwnProperty.call(c,e)&&c[e].magic===t)return c[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var a=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),a=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),c=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(e=e.pipe(new o.Utf8EncodeWorker)),!a&&i&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(t){(e=new c("error")).error(t)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<l.length;d++)i.prototype[l[d]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var a=0,o=new r(u),s=t.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var c=new t.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var t,e;i=!0;for(var n=l.length;n;){for(e=l,l=[],t=-1;++t<n;)e[t]();n=l.length}i=!1}e.exports=function(t){1!==l.push(t)||i||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,t!==r&&f(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return a.reject(t,i)}i===t?a.reject(t,new TypeError("Cannot resolve promise with itself")):a.resolve(t,i)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function i(e){n||(n=!0,a.reject(t,e))}function r(e){n||(n=!0,a.resolve(t,e))}var o=p((function(){e(r,i)}));"error"===o.status&&i(o.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=l).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===o)return this;var n=new this.constructor(r);return this.state!==c?d(n,this.state===s?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){a.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){a.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},a.resolve=function(t,e){var n=p(h,e);if("error"===n.status)return a.reject(t,n.value);var i=n.value;if(i)f(t,i);else{t.state=s,t.outcome=e;for(var r=-1,o=t.queue.length;++r<o;)t.queue[r].callFulfilled(e)}return t},a.reject=function(t,e){t.state=o,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:a.resolve(new this(r),t)},l.reject=function(t){var e=new this(r);return a.reject(e,t)},l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,c=-1,l=new this(r);++c<n;)u(t[c],c);return l;function u(t,r){e.resolve(t).then((function(t){o[r]=t,++s!==n||i||(i=!0,a.resolve(l,o))}),(function(t){i||(i=!0,a.reject(l,t))}))}},l.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var o,s=-1,c=new this(r);++s<n;)o=t[s],e.resolve(o).then((function(t){i||(i=!0,a.resolve(c,t))}),(function(t){i||(i=!0,a.reject(c,t))}));return c}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/messages"),s=t("./zlib/zstream"),c=Object.prototype.toString,l=0,u=-1,d=0,h=8;function f(t){if(!(this instanceof f))return new f(t);this.options=r.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==l)throw new Error(o[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?a.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=i.deflateSetDictionary(this.strm,p))!==l)throw new Error(o[n]);this._dict_set=!0}}function p(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}f.prototype.push=function(t,e){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=a.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=i.deflate(s,o))&&n!==l)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/constants"),s=t("./zlib/messages"),c=t("./zlib/zstream"),l=t("./zlib/gzheader"),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new l,i.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(t,e){var n,s,c,l,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,y=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?f.input=a.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(p),f.next_out=0,f.avail_out=p),(n=i.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(h="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===o.Z_BUF_ERROR&&!0===y&&(n=o.Z_OK,y=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(f.output,f.next_out),l=f.next_out-c,d=a.buf2string(f.output,c),f.next_out=l,f.avail_out=p-l,l&&r.arraySet(f.output,f.output,c,l,0),this.onData(d)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(y=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var a=0;a<i;a++)t[r+a]=e[n+a]},flattenChunks:function(t){var e,n,i,r,a,o;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(o=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)a=t[e],o.set(a,r),r+=a.length;return o}},a={arraySet:function(t,e,n,i,r){for(var a=0;a<i;a++)t[r+a]=e[n+a]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var o=new i.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(t,e){if(e<65537&&(t.subarray&&a||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}o[254]=o[254]=1,n.string2buf=function(t){var e,n,r,a,o,s=t.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(c),a=o=0;o<c;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e},n.buf2binstring=function(t){return c(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,a,s=e||t.length,l=new Array(2*s);for(n=i=0;n<s;)if((r=t[n++])<128)l[i++]=r;else if(4<(a=o[r]))l[i++]=65533,n+=a-1;else{for(r&=2===a?31:3===a?15:7;1<a&&n<s;)r=r<<6|63&t[n++],a--;1<a?l[i++]=65533:r<65536?l[i++]=r:(r-=65536,l[i++]=55296|r>>10&1023,l[i++]=56320|1023&r)}return c(l,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t|0,a=t>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(r=r+e[i++]|0)|0,--o;);r%=65521,a%=65521}return r|a<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var a=i,o=r+n;t^=-1;for(var s=r;s<o;s++)t=t>>>8^a[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),a=t("./trees"),o=t("./adler32"),s=t("./crc32"),c=t("./messages"),l=0,u=4,d=0,h=-2,f=-1,p=4,g=2,y=8,m=9,v=286,_=30,b=19,w=2*v+1,C=15,A=3,x=258,T=x+A+1,k=42,E=113,S=1,I=2,O=3,P=4;function B(t,e){return t.msg=c[e],e}function j(t){return(t<<1)-(4<t?9:0)}function L(t){for(var e=t.length;0<=--e;)t[e]=0}function R(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function M(t,e){a._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,R(t.strm)}function $(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function z(t,e){var n,i,r=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-T?t.strstart-(t.w_size-T):0,l=t.window,u=t.w_mask,d=t.prev,h=t.strstart+x,f=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+o]===p&&l[n+o-1]===f&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<h);if(i=x-(h-a),a=h-x,o<i){if(t.match_start=e,s<=(o=i))break;f=l[a+o-1],p=l[a+o]}}}while((e=d[e&u])>c&&0!=--r);return o<=t.lookahead?o:t.lookahead}function D(t){var e,n,i,a,c,l,u,d,h,f,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-T)){for(r.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;i=t.head[--e],t.head[e]=p<=i?i-p:0,--n;);for(e=n=p;i=t.prev[--e],t.prev[e]=p<=i?i-p:0,--n;);a+=p}if(0===t.strm.avail_in)break;if(l=t.strm,u=t.window,d=t.strstart+t.lookahead,h=a,f=void 0,f=l.avail_in,h<f&&(f=h),n=0===f?0:(l.avail_in-=f,r.arraySet(u,l.input,l.next_in,f,d),1===l.state.wrap?l.adler=o(l.adler,u,f,d):2===l.state.wrap&&(l.adler=s(l.adler,u,f,d)),l.next_in+=f,l.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=A)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+A-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<A)););}while(t.lookahead<T&&0!==t.strm.avail_in)}function U(t,e){for(var n,i;;){if(t.lookahead<T){if(D(t),t.lookahead<T&&e===l)return S;if(0===t.lookahead)break}if(n=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-T&&(t.match_length=z(t,n)),t.match_length>=A)if(i=a._tr_tally(t,t.strstart-t.match_start,t.match_length-A),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=A){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=t.strstart<A-1?t.strstart:A-1,e===u?(M(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}function H(t,e){for(var n,i,r;;){if(t.lookahead<T){if(D(t),t.lookahead<T&&e===l)return S;if(0===t.lookahead)break}if(n=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=A-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-T&&(t.match_length=z(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===A&&4096<t.strstart-t.match_start)&&(t.match_length=A-1)),t.prev_length>=A&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-A,i=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-A),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=A-1,t.strstart++,i&&(M(t,!1),0===t.strm.avail_out))return S}else if(t.match_available){if((i=a._tr_tally(t,0,t.window[t.strstart-1]))&&M(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return S}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<A-1?t.strstart:A-1,e===u?(M(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}function F(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function K(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*w),this.dyn_dtree=new r.Buf16(2*(2*_+1)),this.bl_tree=new r.Buf16(2*(2*b+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(C+1),this.heap=new r.Buf16(2*v+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*v+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=g,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?k:E,t.adler=2===e.wrap?0:1,e.last_flush=l,a._tr_init(e),d):B(t,h)}function V(t){var e=W(t);return e===d&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=A-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,n,i,a,o){if(!t)return h;var s=1;if(e===f&&(e=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),a<1||m<a||n!==y||i<8||15<i||e<0||9<e||o<0||p<o)return B(t,h);8===i&&(i=9);var c=new K;return(t.state=c).strm=t,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+A-1)/A),c.window=new r.Buf8(2*c.w_size),c.head=new r.Buf16(c.hash_size),c.prev=new r.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new r.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=o,c.method=n,V(t)}i=[new F(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(D(t),0===t.lookahead&&e===l)return S;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,M(t,!1),0===t.strm.avail_out))return S;if(t.strstart-t.block_start>=t.w_size-T&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===u?(M(t,!0),0===t.strm.avail_out?O:P):(t.strstart>t.block_start&&(M(t,!1),t.strm.avail_out),S)})),new F(4,4,8,4,U),new F(4,5,16,8,U),new F(4,6,32,32,U),new F(4,4,16,16,H),new F(8,16,32,32,H),new F(8,16,128,128,H),new F(8,32,128,256,H),new F(32,128,258,1024,H),new F(32,258,258,4096,H)],n.deflateInit=function(t,e){return Y(t,e,y,15,8,0)},n.deflateInit2=Y,n.deflateReset=V,n.deflateResetKeep=W,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,d):h},n.deflate=function(t,e){var n,r,o,c;if(!t||!t.state||5<e||e<0)return t?B(t,h):h;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&e!==u)return B(t,0===t.avail_out?-5:h);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===k)if(2===r.wrap)t.adler=0,$(r,31),$(r,139),$(r,8),r.gzhead?($(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),$(r,255&r.gzhead.time),$(r,r.gzhead.time>>8&255),$(r,r.gzhead.time>>16&255),$(r,r.gzhead.time>>24&255),$(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),$(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&($(r,255&r.gzhead.extra.length),$(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=s(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):($(r,0),$(r,0),$(r,0),$(r,0),$(r,0),$(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),$(r,3),r.status=E);else{var f=y+(r.w_bits-8<<4)<<8;f|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(f|=32),f+=31-f%31,r.status=E,N(r,f),0!==r.strstart&&(N(r,t.adler>>>16),N(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),R(t),o=r.pending,r.pending!==r.pending_buf_size));)$(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),R(t),o=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,$(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),0===c&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),R(t),o=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,$(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),0===c&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&R(t),r.pending+2<=r.pending_buf_size&&($(r,255&t.adler),$(r,t.adler>>8&255),t.adler=0,r.status=E)):r.status=E),0!==r.pending){if(R(t),0===t.avail_out)return r.last_flush=-1,d}else if(0===t.avail_in&&j(e)<=j(n)&&e!==u)return B(t,-5);if(666===r.status&&0!==t.avail_in)return B(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==l&&666!==r.status){var p=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(D(t),0===t.lookahead)){if(e===l)return S;break}if(t.match_length=0,n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===u?(M(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}(r,e):3===r.strategy?function(t,e){for(var n,i,r,o,s=t.window;;){if(t.lookahead<=x){if(D(t),t.lookahead<=x&&e===l)return S;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=A&&0<t.strstart&&(i=s[r=t.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){o=t.strstart+x;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<o);t.match_length=x-(o-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=A?(n=a._tr_tally(t,1,t.match_length-A),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===u?(M(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}(r,e):i[r.level].func(r,e);if(p!==O&&p!==P||(r.status=666),p===S||p===O)return 0===t.avail_out&&(r.last_flush=-1),d;if(p===I&&(1===e?a._tr_align(r):5!==e&&(a._tr_stored_block(r,0,0,!1),3===e&&(L(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),R(t),0===t.avail_out))return r.last_flush=-1,d}return e!==u?d:r.wrap<=0?1:(2===r.wrap?($(r,255&t.adler),$(r,t.adler>>8&255),$(r,t.adler>>16&255),$(r,t.adler>>24&255),$(r,255&t.total_in),$(r,t.total_in>>8&255),$(r,t.total_in>>16&255),$(r,t.total_in>>24&255)):(N(r,t.adler>>>16),N(r,65535&t.adler)),R(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?d:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==k&&69!==e&&73!==e&&91!==e&&103!==e&&e!==E&&666!==e?B(t,h):(t.state=null,e===E?B(t,-3):d):h},n.deflateSetDictionary=function(t,e){var n,i,a,s,c,l,u,f,p=e.length;if(!t||!t.state)return h;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==k||n.lookahead)return h;for(1===s&&(t.adler=o(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(L(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,e,p-n.w_size,n.w_size,0),e=f,p=n.w_size),c=t.avail_in,l=t.next_in,u=t.input,t.avail_in=p,t.next_in=0,t.input=e,D(n);n.lookahead>=A;){for(i=n.strstart,a=n.lookahead-(A-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+A-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--a;);n.strstart=i,n.lookahead=A-1,D(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=A-1,n.match_available=0,t.next_in=l,t.input=u,t.avail_in=c,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,a,o,s,c,l,u,d,h,f,p,g,y,m,v,_,b,w,C,A,x,T,k;n=t.state,i=t.next_in,T=t.input,r=i+(t.avail_in-5),a=t.next_out,k=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,g=n.lencode,y=n.distcode,m=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(f+=T[i++]<<p,p+=8,f+=T[i++]<<p,p+=8),_=g[f&m];e:for(;;){if(f>>>=b=_>>>24,p-=b,0===(b=_>>>16&255))k[a++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=g[(65535&_)+(f&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&_,(b&=15)&&(p<b&&(f+=T[i++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=T[i++]<<p,p+=8,f+=T[i++]<<p,p+=8),_=y[f&v];n:for(;;){if(f>>>=b=_>>>24,p-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=y[(65535&_)+(f&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(C=65535&_,p<(b&=15)&&(f+=T[i++]<<p,(p+=8)<b&&(f+=T[i++]<<p,p+=8)),c<(C+=f&(1<<b)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=b,p-=b,(b=a-o)<C){if(u<(b=C-b)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(x=h,(A=0)===d){if(A+=l-b,b<w){for(w-=b;k[a++]=h[A++],--b;);A=a-C,x=k}}else if(d<b){if(A+=l+d-b,(b-=d)<w){for(w-=b;k[a++]=h[A++],--b;);if(A=0,d<w){for(w-=b=d;k[a++]=h[A++],--b;);A=a-C,x=k}}}else if(A+=d-b,b<w){for(w-=b;k[a++]=h[A++],--b;);A=a-C,x=k}for(;2<w;)k[a++]=x[A++],k[a++]=x[A++],k[a++]=x[A++],w-=3;w&&(k[a++]=x[A++],1<w&&(k[a++]=x[A++]))}else{for(A=a-C;k[a++]=k[A++],k[a++]=k[A++],k[a++]=k[A++],2<(w-=3););w&&(k[a++]=k[A++],1<w&&(k[a++]=k[A++]))}break}}break}}while(i<r&&a<s);i-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=i,t.next_out=a,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),a=t("./crc32"),o=t("./inffast"),s=t("./inftrees"),c=1,l=2,u=0,d=-2,h=1,f=852,p=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(f),e.distcode=e.distdyn=new i.Buf32(p),e.sane=1,e.back=-1,u):d}function v(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,m(t)):d}function _(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?d:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,v(t))):d}function b(t,e){var n,i;return t?(i=new y,(t.state=i).window=null,(n=_(t,e))!==u&&(t.state=null),n):d}var w,C,A=!0;function x(t){if(A){var e;for(w=new i.Buf32(512),C=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,w,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(l,t.lens,0,32,C,0,t.work,{bits:5}),A=!1}t.lencode=w,t.lenbits=9,t.distcode=C,t.distbits=5}function T(t,e,n,r){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),r>=o.wsize?(i.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(r<(a=o.wsize-o.wnext)&&(a=r),i.arraySet(o.window,e,n-r,a,o.wnext),(r-=a)?(i.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=v,n.inflateReset2=_,n.inflateResetKeep=m,n.inflateInit=function(t){return b(t,15)},n.inflateInit2=b,n.inflate=function(t,e){var n,f,p,y,m,v,_,b,w,C,A,k,E,S,I,O,P,B,j,L,R,M,$,N,z=0,D=new i.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return d;12===(n=t.state).mode&&(n.mode=13),m=t.next_out,p=t.output,_=t.avail_out,y=t.next_in,f=t.input,v=t.avail_in,b=n.hold,w=n.bits,C=v,A=_,M=u;t:for(;;)switch(n.mode){case h:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(2&n.wrap&&35615===b){D[n.check=0]=255&b,D[1]=b>>>8&255,n.check=a(n.check,D,2,0),w=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(w-=4,R=8+(15&(b>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<R,t.adler=n.check=1,n.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=a(n.check,D,2,0)),w=b=0,n.mode=3;case 3:for(;w<32;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.head&&(n.head.time=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,D[2]=b>>>16&255,D[3]=b>>>24&255,n.check=a(n.check,D,4,0)),w=b=0,n.mode=4;case 4:for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=a(n.check,D,2,0)),w=b=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=a(n.check,D,2,0)),w=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(k=n.length)&&(k=v),k&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,f,y,k,R)),512&n.flags&&(n.check=a(n.check,f,k,y)),v-=k,y+=k,n.length-=k),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break t;for(k=0;R=f[y+k++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R)),R&&k<v;);if(512&n.flags&&(n.check=a(n.check,f,k,y)),v-=k,y+=k,R)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break t;for(k=0;R=f[y+k++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R)),R&&k<v;);if(512&n.flags&&(n.check=a(n.check,f,k,y)),v-=k,y+=k,R)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}w=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}t.adler=n.check=g(b),w=b=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=m,t.avail_out=_,t.next_in=y,t.avail_in=v,n.hold=b,n.bits=w,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}switch(n.last=1&b,w-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6!==e)break;b>>>=2,w-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,w=b=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(k=n.length){if(v<k&&(k=v),_<k&&(k=_),0===k)break t;i.arraySet(p,f,y,k,m),v-=k,y+=k,_-=k,m+=k,n.length-=k;break}n.mode=12;break;case 17:for(;w<14;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(n.nlen=257+(31&b),b>>>=5,w-=5,n.ndist=1+(31&b),b>>>=5,w-=5,n.ncode=4+(15&b),b>>>=4,w-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.lens[U[n.have++]]=7&b,b>>>=3,w-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,$={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,$),n.lenbits=$.bits,M){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,P=65535&z,!((I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(P<16)b>>>=I,w-=I,n.lens[n.have++]=P;else{if(16===P){for(N=I+2;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(b>>>=I,w-=I,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}R=n.lens[n.have-1],k=3+(3&b),b>>>=2,w-=2}else if(17===P){for(N=I+3;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}w-=I,R=0,k=3+(7&(b>>>=I)),b>>>=3,w-=3}else{for(N=I+7;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}w-=I,R=0,k=11+(127&(b>>>=I)),b>>>=7,w-=7}if(n.have+k>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=R}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,$={bits:n.lenbits},M=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,$),n.lenbits=$.bits,M){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,$={bits:n.distbits},M=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,$),n.distbits=$.bits,M){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=v&&258<=_){t.next_out=m,t.avail_out=_,t.next_in=y,t.avail_in=v,n.hold=b,n.bits=w,o(t,A),m=t.next_out,p=t.output,_=t.avail_out,y=t.next_in,f=t.input,v=t.avail_in,b=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;O=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,P=65535&z,!((I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(O&&0==(240&O)){for(B=I,j=O,L=P;O=(z=n.lencode[L+((b&(1<<B+j)-1)>>B)])>>>16&255,P=65535&z,!(B+(I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}b>>>=B,w-=B,n.back+=B}if(b>>>=I,w-=I,n.back+=I,n.length=P,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=12;break}if(64&O){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(N=n.extra;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(z=n.distcode[b&(1<<n.distbits)-1])>>>16&255,P=65535&z,!((I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(0==(240&O)){for(B=I,j=O,L=P;O=(z=n.distcode[L+((b&(1<<B+j)-1)>>B)])>>>16&255,P=65535&z,!(B+(I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}b>>>=B,w-=B,n.back+=B}if(b>>>=I,w-=I,n.back+=I,64&O){t.msg="invalid distance code",n.mode=30;break}n.offset=P,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(N=n.extra;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===_)break t;if(k=A-_,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}E=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),S=n.window}else S=p,E=m-n.offset,k=n.length;for(_<k&&(k=_),_-=k,n.length-=k;p[m++]=S[E++],--k;);0===n.length&&(n.mode=21);break;case 26:if(0===_)break t;p[m++]=n.length,_--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===v)break t;v--,b|=f[y++]<<w,w+=8}if(A-=_,t.total_out+=A,n.total+=A,A&&(t.adler=n.check=n.flags?a(n.check,p,A,m-A):r(n.check,p,A,m-A)),A=_,(n.flags?b:g(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}w=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}w=b=0}n.mode=29;case 29:M=1;break t;case 30:M=-3;break t;case 31:return-4;case 32:default:return d}return t.next_out=m,t.avail_out=_,t.next_in=y,t.avail_in=v,n.hold=b,n.bits=w,(n.wsize||A!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&T(t,t.output,t.next_out,A-t.avail_out)?(n.mode=31,-4):(C-=t.avail_in,A-=t.avail_out,t.total_in+=C,t.total_out+=A,n.total+=A,n.wrap&&A&&(t.adler=n.check=n.flags?a(n.check,p,A,t.next_out-A):r(n.check,p,A,t.next_out-A)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==C&&0===A||4===e)&&M===u&&(M=-5),M)},n.inflateEnd=function(t){if(!t||!t.state)return d;var e=t.state;return e.window&&(e.window=null),t.state=null,u},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?d:((n.head=e).done=!1,u):d},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?d:11===n.mode&&r(1,e,i,0)!==n.check?-3:T(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,c,l,u,d,h){var f,p,g,y,m,v,_,b,w,C=h.bits,A=0,x=0,T=0,k=0,E=0,S=0,I=0,O=0,P=0,B=0,j=null,L=0,R=new i.Buf16(16),M=new i.Buf16(16),$=null,N=0;for(A=0;A<=15;A++)R[A]=0;for(x=0;x<c;x++)R[e[n+x]]++;for(E=C,k=15;1<=k&&0===R[k];k--);if(k<E&&(E=k),0===k)return l[u++]=20971520,l[u++]=20971520,h.bits=1,0;for(T=1;T<k&&0===R[T];T++);for(E<T&&(E=T),A=O=1;A<=15;A++)if(O<<=1,(O-=R[A])<0)return-1;if(0<O&&(0===t||1!==k))return-1;for(M[1]=0,A=1;A<15;A++)M[A+1]=M[A]+R[A];for(x=0;x<c;x++)0!==e[n+x]&&(d[M[e[n+x]]++]=x);if(v=0===t?(j=$=d,19):1===t?(j=r,L-=257,$=a,N-=257,256):(j=o,$=s,-1),A=T,m=u,I=x=B=0,g=-1,y=(P=1<<(S=E))-1,1===t&&852<P||2===t&&592<P)return 1;for(;;){for(_=A-I,w=d[x]<v?(b=0,d[x]):d[x]>v?(b=$[N+d[x]],j[L+d[x]]):(b=96,0),f=1<<A-I,T=p=1<<S;l[m+(B>>I)+(p-=f)]=_<<24|b<<16|w|0,0!==p;);for(f=1<<A-1;B&f;)f>>=1;if(0!==f?(B&=f-1,B+=f):B=0,x++,0==--R[A]){if(A===k)break;A=e[n+d[x]]}if(E<A&&(B&y)!==g){for(0===I&&(I=E),m+=T,O=1<<(S=A-I);S+I<k&&!((O-=R[S+I])<=0);)S++,O<<=1;if(P+=1<<S,1===t&&852<P||2===t&&592<P)return 1;l[g=B&y]=E<<24|S<<16|m-u|0}}return 0!==B&&(l[m+B]=A-I<<24|64<<16|0),h.bits=E,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common"),r=0,a=1;function o(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,c=29,l=256,u=l+1+c,d=30,h=19,f=2*u+1,p=15,g=16,y=7,m=256,v=16,_=17,b=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(u+2));o(T);var k=new Array(2*d);o(k);var E=new Array(512);o(E);var S=new Array(256);o(S);var I=new Array(c);o(I);var O,P,B,j=new Array(d);function L(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function R(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function M(t){return t<256?E[t]:E[256+(t>>>7)]}function $(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,n){t.bi_valid>g-n?(t.bi_buf|=e<<t.bi_valid&65535,$(t,t.bi_buf),t.bi_buf=e>>g-t.bi_valid,t.bi_valid+=n-g):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function z(t,e,n){N(t,n[2*e],n[2*e+1])}function D(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function U(t,e,n){var i,r,a=new Array(p+1),o=0;for(i=1;i<=p;i++)a[i]=o=o+n[i-1]<<1;for(r=0;r<=e;r++){var s=t[2*r+1];0!==s&&(t[2*r]=D(a[s]++,s))}}function H(t){var e;for(e=0;e<u;e++)t.dyn_ltree[2*e]=0;for(e=0;e<d;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function F(t){8<t.bi_valid?$(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function K(t,e,n,i){var r=2*e,a=2*n;return t[r]<t[a]||t[r]===t[a]&&i[e]<=i[n]}function W(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&K(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!K(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function V(t,e,n){var i,r,a,o,s=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],r=t.pending_buf[t.l_buf+s],s++,0===i?z(t,r,e):(z(t,(a=S[r])+l+1,e),0!==(o=w[a])&&N(t,r-=I[a],o),z(t,a=M(--i),n),0!==(o=C[a])&&N(t,i-=j[a],o)),s<t.last_lit;);z(t,m,e)}function Y(t,e){var n,i,r,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=f,n=0;n<c;n++)0!==a[2*n]?(t.heap[++t.heap_len]=l=n,t.depth[n]=0):a[2*n+1]=0;for(;t.heap_len<2;)a[2*(r=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=o[2*r+1]);for(e.max_code=l,n=t.heap_len>>1;1<=n;n--)W(t,a,n);for(r=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,a,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,a[2*r]=a[2*n]+a[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,a[2*n+1]=a[2*i+1]=r,t.heap[1]=r++,W(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,a,o,s,c=e.dyn_tree,l=e.max_code,u=e.stat_desc.static_tree,d=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,y=e.stat_desc.max_length,m=0;for(a=0;a<=p;a++)t.bl_count[a]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<f;n++)y<(a=c[2*c[2*(i=t.heap[n])+1]+1]+1)&&(a=y,m++),c[2*i+1]=a,l<i||(t.bl_count[a]++,o=0,g<=i&&(o=h[i-g]),s=c[2*i],t.opt_len+=s*(a+o),d&&(t.static_len+=s*(u[2*i+1]+o)));if(0!==m){do{for(a=y-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[y]--,m-=2}while(0<m);for(a=y;0!==a;a--)for(i=t.bl_count[a];0!==i;)l<(r=t.heap[--n])||(c[2*r+1]!==a&&(t.opt_len+=(a-c[2*r+1])*c[2*r],c[2*r+1]=a),i--)}}(t,e),U(a,l,t.bl_count)}function Z(t,e,n){var i,r,a=-1,o=e[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=e[2*(i+1)+1],++s<c&&r===o||(s<l?t.bl_tree[2*r]+=s:0!==r?(r!==a&&t.bl_tree[2*r]++,t.bl_tree[2*v]++):s<=10?t.bl_tree[2*_]++:t.bl_tree[2*b]++,a=r,l=(s=0)===o?(c=138,3):r===o?(c=6,3):(c=7,4))}function G(t,e,n){var i,r,a=-1,o=e[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),i=0;i<=n;i++)if(r=o,o=e[2*(i+1)+1],!(++s<c&&r===o)){if(s<l)for(;z(t,r,t.bl_tree),0!=--s;);else 0!==r?(r!==a&&(z(t,r,t.bl_tree),s--),z(t,v,t.bl_tree),N(t,s-3,2)):s<=10?(z(t,_,t.bl_tree),N(t,s-3,3)):(z(t,b,t.bl_tree),N(t,s-11,7));a=r,l=(s=0)===o?(c=138,3):r===o?(c=6,3):(c=7,4)}}o(j);var q=!1;function Q(t,e,n,r){N(t,(s<<1)+(r?1:0),3),function(t,e,n,r){F(t),r&&($(t,n),$(t,~n)),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){q||(function(){var t,e,n,i,r,a=new Array(p+1);for(i=n=0;i<c-1;i++)for(I[i]=n,t=0;t<1<<w[i];t++)S[n++]=i;for(S[n-1]=i,i=r=0;i<16;i++)for(j[i]=r,t=0;t<1<<C[i];t++)E[r++]=i;for(r>>=7;i<d;i++)for(j[i]=r<<7,t=0;t<1<<C[i]-7;t++)E[256+r++]=i;for(e=0;e<=p;e++)a[e]=0;for(t=0;t<=143;)T[2*t+1]=8,t++,a[8]++;for(;t<=255;)T[2*t+1]=9,t++,a[9]++;for(;t<=279;)T[2*t+1]=7,t++,a[7]++;for(;t<=287;)T[2*t+1]=8,t++,a[8]++;for(U(T,u+1,a),t=0;t<d;t++)k[2*t+1]=5,k[2*t]=D(t,5);O=new L(T,w,l+1,u,p),P=new L(k,C,0,d,p),B=new L(new Array(0),A,0,h,y)}(),q=!0),t.l_desc=new R(t.dyn_ltree,O),t.d_desc=new R(t.dyn_dtree,P),t.bl_desc=new R(t.bl_tree,B),t.bi_buf=0,t.bi_valid=0,H(t)},n._tr_stored_block=Q,n._tr_flush_block=function(t,e,n,i){var o,s,c=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return r;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<l;e++)if(0!==t.dyn_ltree[2*e])return a;return r}(t)),Y(t,t.l_desc),Y(t,t.d_desc),c=function(t){var e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=h-1;3<=e&&0===t.bl_tree[2*x[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==e?Q(t,e,n,i):4===t.strategy||s===o?(N(t,2+(i?1:0),3),V(t,T,k)):(N(t,4+(i?1:0),3),function(t,e,n,i){var r;for(N(t,e-257,5),N(t,n-1,5),N(t,i-4,4),r=0;r<i;r++)N(t,t.bl_tree[2*x[r]+1],3);G(t,t.dyn_ltree,e-1),G(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),V(t,t.dyn_ltree,t.dyn_dtree)),H(t),i&&F(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(S[n]+l+1)]++,t.dyn_dtree[2*M(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){N(t,2,3),z(t,m,T),function(t){16===t.bi_valid?($(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var n,r,a,o,s=1,c={},l=!1,u=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,n="[object process]"==={}.toString.call(t.process)?function(t){i.nextTick((function(){f(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){f(t.data)},function(t){a.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(f,0,t)},d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var r={callback:t,args:e};return c[s]=r,n(s),s++},d.clearImmediate=h}function h(t){delete c[t]}function f(t){if(l)setTimeout(f,0,t);else{var n=c[t];if(n){l=!0;try{!function(t){var n=t.callback,i=t.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(e,i)}}(n)}finally{h(t),l=!1}}}}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&f(+e.data.slice(o.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"),n("4362"))},c65b:function(t,e,n){var i=n("40d5"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){var i=n("e330"),r=i({}.toString),a=i("".slice);t.exports=function(t){return a(r(t),8,-1)}},c6cd:function(t,e,n){var i=n("da84"),r=n("6374"),a="__core-js_shared__",o=i[a]||r(a,{});t.exports=o},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var i=n("e330"),r=n("1a2d"),a=n("fc6a"),o=n("4d64").indexOf,s=n("d012"),c=i([].push);t.exports=function(t,e){var n,i=a(t),l=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&c(u,n);while(e.length>l)r(i,n=e[l++])&&(~o(u,n)||c(u,n));return u}},cb2d:function(t,e,n){var i=n("1626"),r=n("9bf2"),a=n("13d2"),o=n("6374");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:e;if(i(n)&&a(n,l,s),s.global)c?t[e]=n:o(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(u){}c?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){var i=n("da84"),r=n("861d"),a=i.document,o=r(a)&&r(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},cdce:function(t,e,n){var i=n("da84"),r=n("1626"),a=i.WeakMap;t.exports=r(a)&&/native code/.test(String(a))},cf03:function(t,e){t.exports=require("jspdf")},cf98:function(t,e){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var i=n("da84"),r=n("1626"),a=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(i[t]):i[t]&&i[t][e]}},d09a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAA7CAYAAAD4t5PVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMxMjY3MzVCQjg5NDExRThCQjk3QzA4MjU5MzUzOTlGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMxMjY3MzVDQjg5NDExRThCQjk3QzA4MjU5MzUzOTlGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzEyNjczNTlCODk0MTFFOEJCOTdDMDgyNTkzNTM5OUYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzEyNjczNUFCODk0MTFFOEJCOTdDMDgyNTkzNTM5OUYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5Q419BAAAAtElEQVR42uzYsQ1CIRRG4XfNa2ydwSWsHcDCJSwcw8YRXmvtMM5ghQMQChL0zWBBTsi5Cf0X7s8NECml7wStzQQuceLEiRMnTpw4Rs2ttSMVF7VW7s7lnLm4UgoXFxFPLG5dZ0eJuM6Zu2KH8Prit63/tvVGbqsfOeJ6H4i7c27Eth7IuAcZtzdzIx6IFxl3IuPeZNyWjLt42XTOdc5cIeMWL5sjZm5Hxn3IuNnMietYPwEGAG5/KFS7aqTUAAAAAElFTkSuQmCC"},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);e.f=a?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d2bb:function(t,e,n){var i=n("7282"),r=n("825a"),a=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(o){}return function(n,i){return r(n),a(i),e?t(n,i):n.__proto__=i,n}}():void 0)},d429:function(t,e,n){var i=n("07fa"),r=n("5926"),a=RangeError;t.exports=function(t,e,n,o){var s=i(t),c=r(n),l=c<0?s+c:c;if(l>=s||l<0)throw a("Incorrect index");for(var u=new e(s),d=0;d<s;d++)u[d]=d===l?o:t[d];return u}},d4ec:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("d9e2");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},d58f:function(t,e,n){var i=n("59ed"),r=n("7b0b"),a=n("44ad"),o=n("07fa"),s=TypeError,c=function(t){return function(e,n,c,l){i(n);var u=r(e),d=a(u),h=o(u),f=t?h-1:0,p=t?-1:1;if(c<2)while(1){if(f in d){l=d[f],f+=p;break}if(f+=p,t?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;t?f>=0:h>f;f+=p)f in d&&(l=n(l,d[f],f,u));return l}};t.exports={left:c(!1),right:c(!0)}},d9b5:function(t,e,n){var i=n("d066"),r=n("1626"),a=n("3a9b"),o=n("fdbf"),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&a(e.prototype,s(t))}},d9e2:function(t,e,n){var i=n("23e7"),r=n("da84"),a=n("2ba4"),o=n("e5cb"),s="WebAssembly",c=r[s],l=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=o(t,e,l),i({global:!0,constructor:!0,arity:1,forced:l},n)},d=function(t,e){if(c&&c[t]){var n={};n[t]=o(s+"."+t,e,l),i({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};u("Error",(function(t){return function(e){return a(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),u("URIError",(function(t){return function(e){return a(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}e.resolve=function(){for(var e="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===a(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),a=i(n.split("/")),o=Math.min(r.length,a.length),s=o,c=0;c<o;c++)if(r[c]!==a[c]){s=c;break}var l=[];for(c=s;c<r.length;c++)l.push("..");return l=l.concat(a.slice(s)),l.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),47===e){if(!r){i=a;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===i&&(r=!1,i=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!r){n=o+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},df7e:function(t,e,n){var i=n("07fa");t.exports=function(t,e){for(var n=i(t),r=new e(n),a=0;a<n;a++)r[a]=t[n-a-1];return r}},dfb9:function(t,e,n){var i=n("07fa");t.exports=function(t,e){var n=0,r=i(e),a=new t(r);while(r>n)a[n]=e[n++];return a}},e163:function(t,e,n){var i=n("1a2d"),r=n("1626"),a=n("7b0b"),o=n("f772"),s=n("e177"),c=o("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=a(t);if(i(e,c))return e[c];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof l?u:null}},e177:function(t,e,n){var i=n("d039");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e330:function(t,e,n){var i=n("40d5"),r=Function.prototype,a=r.call,o=i&&r.bind.bind(a,a);t.exports=i?o:function(t){return function(){return a.apply(t,arguments)}}},e391:function(t,e,n){var i=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),a=n("9112"),o=n("3a9b"),s=n("d2bb"),c=n("e893"),l=n("aeb0"),u=n("7156"),d=n("e391"),h=n("ab36"),f=n("6f19"),p=n("83ab"),g=n("c430");t.exports=function(t,e,n,y){var m="stackTraceLimit",v=y?2:1,_=t.split("."),b=_[_.length-1],w=i.apply(null,_);if(w){var C=w.prototype;if(!g&&r(C,"cause")&&delete C.cause,!n)return w;var A=i("Error"),x=e((function(t,e){var n=d(y?e:t,void 0),i=y?new w(t):new w;return void 0!==n&&a(i,"message",n),f(i,x,i.stack,2),this&&o(C,this)&&u(i,this,x),arguments.length>v&&h(i,arguments[v]),i}));if(x.prototype=C,"Error"!==b?s?s(x,A):c(x,A,{name:!0}):p&&m in w&&(l(x,w,m),l(x,w,"prepareStackTrace")),c(x,w),!g)try{C.name!==b&&a(C,"name",b),C.constructor=x}catch(T){}return x}}},e6c4:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{class:["ac-basicInfo",t.layout>2?"ac-module__ThreeColumn":"ac-module__column",t.isEntranceExams&&"ac-basicInfo__entrance"]},[t.isEntranceExams?t.isEntranceExams&&0===t.$store.getters["AC/answerCardMode"]?[e("div",{staticClass:"ac-basicInfo__title"},[e("div",{staticClass:"ac-basicInfo__title-inner entrance-style",attrs:{id:"paper-title__ele",contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/title"])},on:{blur:t.titleBlurEvent}})]),t.layout<3?[e("div",{class:["ac-basic-info__edu"]},[t._m(3),e("div",{staticClass:"ac-permit_number"},[e("div",{staticClass:"ac-permit_number-left"},[e("span",[t._v("准考证号")]),t._v(" : "),e("ul",{staticClass:"ac-edu__area--empty"},t._l(t.educationId,(function(t){return e("li",{key:t})})),0)]),e("div",{staticClass:"ac-permit_number-right"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.educationId<=16,expression:"educationId <= 16"}],staticClass:"sample-filling"},[t._v("填涂样例")]),e("div",{staticClass:"correctly-filling",style:{width:t.educationId>16?"100%":"62%"}},[t._v(" 正确填涂 "),e("span")])])])]),e("div",{staticClass:"ac-attention attention-shapeCode",staticStyle:{"padding-bottom":"0px"}},[e("div",{staticClass:"attention-miss"},[e("div",{staticClass:"attention"},[t._m(4),e("div",{staticClass:"attention-notice",attrs:{contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/entranceAttention"].content)},on:{blur:function(e){return t.handleEntranceAttention(e)}}})]),t._m(5)]),t._m(6)])]:[e("div",{class:["ac-basic-info__edu"]},[t._m(7),e("div",{staticClass:"info-shape_number"},[e("span",[t._v("准考证号")]),e("b",[t._v(":")]),e("ul",{staticClass:"ac-edu__area--empty"},t._l(t.educationId,(function(t){return e("li",{key:t})})),0)]),e("div",{staticClass:"ac-attention attention-three__layout",staticStyle:{"padding-bottom":"0px"}},[e("div",{staticClass:"attention"},[t._m(8),e("div",{staticClass:"attention-notice",attrs:{contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/entranceAttention"].content)},on:{blur:function(e){return t.handleEntranceAttention(e)}}}),t._m(9)]),t._m(10)])])]]:t._e():[t.hideTitle?t._e():e("div",{staticClass:"ac-basicInfo__title"},[e("div",{staticClass:"ac-basicInfo__title-inner",attrs:{id:"paper-title__ele",contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/title"])},on:{blur:t.titleBlurEvent}})]),t.hideStudentInfo||1!==t.objectiveAnswerType?e("div",{staticClass:"plain-info-area ac-basic-info__edu"},[t._m(1)]):[0===t.answerMode||t.showEducationId?e("div",{class:[t.layout<3?"ac-info__horizontal--layout":"ac-info__vertical--layout","ac-basic-info__edu"],style:{justifyContent:t.layout<3&&(t.educationId<=10||0===t.registrationNumberType)?"space-between":"center"}},[e("div",{staticClass:"ac-info__area",style:{marginBottom:t.layout<3?t.educationId<=10||0===t.registrationNumberType?"0px":"30px":"14px",width:1===t.registrationNumberType&&t.layout<3&&t.educationId>10?"868px":"",height:1===t.registrationNumberType&&t.layout<3&&t.educationId>10?"auto":"",border:1===t.registrationNumberType&&t.layout<3&&t.educationId>10?"none":""}},[e("ul",{class:[t.handleInfoAreaLayout()],style:{"--columns":t.$store.getters["AC/studentInfo"].length<=3?t.$store.getters["AC/studentInfo"].length:3}},t._l(t.$store.getters["AC/studentInfo"],(function(n){return e("li",{key:n},[e("span",[t._v(t._s(n))]),e("div",{staticClass:"line"})])})),0)]),1===t.registrationNumberType?e("div",{staticClass:"ac-edu__area"},[e("div",{staticClass:"ac-edu__area--header",class:{"is-offline":0===t.subjectiveReviewType}},[t._v("教 育 ID")]),e("ul",{staticClass:"ac-edu__area--empty",class:{"is-offline":0===t.subjectiveReviewType},attrs:{"data-export_name":"教育ID填写"}},t._l(t.educationId,(function(t){return e("li",{key:t})})),0),e("ul",{staticClass:"ac-edu__area--fullFilling",class:{"is-offline":0===t.subjectiveReviewType},attrs:{"data-export_name":"考号"}},t._l(t.educationId,(function(n){return e("li",{key:n},t._l(Array(10).fill(""),(function(n,i){return e("div",{key:i,staticClass:"full-filling__option",style:{color:t.$store.getters["AC/candidateNumColor"]}},[t._v(" "+t._s(i)+" ")])})),0)})),0),e("div",{staticClass:"ac-edu__area--settingBtn"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.showSettingModal=!0}}},[t._v(" 设置 ")])],1)]):e("div",{staticClass:"shape-code",attrs:{"data-export_name":"条码"}},[t._m(0)])]):e("div",{staticClass:"ac-info__vertical--layout ac-basic-info__edu is-lattice__no-padding"},[e("div",{staticClass:"ac-info__area"},[e("ul",{staticClass:"info-area__three--column",style:{"--columns":3}},t._l(t.$store.getters["AC/studentInfo"],(function(n){return e("li",{key:n},[e("span",[t._v(t._s(n))]),e("div",{staticClass:"line"})])})),0)])])],t.hideAttention?t._e():e("div",{staticClass:"ac-attention"},[0===t.$store.getters["AC/answerCardMode"]?e("div",{staticClass:"ac-attention__scansion"},[t._m(2),e("div",{staticClass:"ac-attention__notice",attrs:{contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/scansionAttention"].content)},on:{blur:function(e){return t.handleAttentionChange(e,"scan")}}})]):t._e(),1===t.$store.getters["AC/answerCardMode"]?e("div",{staticClass:"ac-attention__lattice",attrs:{contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/latticeAttention"].content)},on:{blur:function(e){return t.handleAttentionChange(e,"lattice")}}}):t._e()])],e("el-dialog",{staticClass:"setting-dialog",attrs:{title:"准考证号设置",visible:t.showSettingModal,width:"452px",center:"","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.showSettingModal=e}}},[e("el-form",{attrs:{"label-position":"right","label-width":"120px"}},[e("el-form-item",{attrs:{label:"位数:"}},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeEduValue},model:{value:t.eduIdValue,callback:function(e){t.eduIdValue=e},expression:"eduIdValue"}},t._l(Array(13),(function(t,n){return e("el-option",{key:n,attrs:{label:n+6,value:n+6}})})),1)],1),e("el-form-item",{attrs:{label:"选项字体色号:"}},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeOptionFontColor},model:{value:t.optionFontColor,callback:function(e){t.optionFontColor=e},expression:"optionFontColor"}},[e("el-option",{attrs:{label:"黑色",value:"#000000"}}),e("el-option",{attrs:{label:"彩色",value:"#ea609e"}})],1),e("div",{staticClass:"color-show"},[e("div",{staticClass:"color-show__color",style:{backgroundColor:t.optionFontColor}}),e("div",{staticClass:"color-show__text"},[t._v(t._s(t.optionFontColor))])])],1),e("el-form-item",{attrs:{label:"填涂区底色:"}},[e("div",{staticClass:"color-show"},[e("div",{staticClass:"color-show__color",style:{backgroundColor:"#ffffff"}}),e("div",{staticClass:"color-show__text"},[t._v("#ffffff")])])])],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.showSettingModal=!1}}},[t._v("取 消")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.saveSettingModal}},[t._v("确 定")])],1)],1)],2)},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"shape-code__wrap"},[e("div",{staticClass:"shape-code__text"},[t._v("贴条形码区")])])},function(){var t=this,e=t._self._c;return e("ul",{staticClass:"ac-info__area"},[e("li",[e("span",[t._v("姓名")]),e("div",{staticClass:"plain-line"})]),e("li",[e("span",[t._v("班级")]),e("div",{staticClass:"plain-line"})]),e("li",{attrs:{"data-export_name":"教育ID填写"}},[e("span",[t._v("教育 ID")]),e("div",{staticClass:"plain-line"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-attention__title"},[e("span",[t._v("考生须知")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-info__area-entrance"},[e("span",[t._v("姓名")]),t._v(" : "),e("div",{staticClass:"line"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"attention-title"},[e("span",[t._v("考生须知")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"miss"},[e("div",{staticClass:"miss-sign"},[t._v("缺考标记:")]),e("div",{staticClass:"miss-fill"},[e("i")]),e("div",{staticClass:"miss-tips"},[t._v("(缺考考生信息由监考专员填写,并用2B铅笔填涂缺考标记)")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"shape-code attention-shapeCode__entrance",attrs:{"data-export_name":"条码"}},[e("div",{staticClass:"shape-code__wrap attention-shapeCode__wrap-entrance"},[e("div",{staticClass:"shape-code__text"},[t._v("贴条形码区")])]),e("div",{staticClass:"shape-code__tips"},[t._v("(由考生本人粘贴 请勿贴出区域外)")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"info-shape"},[e("div",{staticClass:"info-shape__info"},[e("span",[t._v("姓名")]),e("b",[t._v(":")]),e("div",{staticClass:"line"})]),e("div",{staticClass:"shape-code shape-code__entrance",attrs:{"data-export_name":"条码"}},[e("div",{staticClass:"shape-code__wrap shape-code__wrap-entrance"},[e("div",{staticClass:"shape-code__text"},[t._v("贴条形码区")])]),e("div",{staticClass:"shape-code__tips"},[t._v("(由考生本人粘贴 请勿贴出区域外)")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"attention-title"},[e("span",[t._v("考生须知")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"attention-filling"},[e("div",{staticClass:"sample-filling"},[t._v("填涂样例")]),e("div",{staticClass:"correctly-filling"},[t._v(" 正确填涂 "),e("span")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"miss"},[e("div",{staticClass:"miss-sign"},[t._v("缺考标记:")]),e("div",{staticClass:"miss-fill"},[e("i")]),e("div",{staticClass:"miss-tips"},[t._v("(缺考考生信息由监考专员填写,并用2B铅笔填涂缺考标记)")])])}],a={name:"AcBasicInfo",components:{},props:{hideTitle:{type:Boolean,default:!1},hideAttention:{type:Boolean,default:!1},hideStudentInfo:{type:Boolean,default:!1}},computed:{answerMode:function(){return this.$store.getters["AC/answerCardMode"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},layout:function(){return this.$store.getters["AC/layout"]},educationId:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]}},watch:{},mounted:function(){},data:function(){return{showSettingModal:!1,eduIdValue:this.$store.getters["AC/educationIdValue"],optionFontColor:this.$store.getters["AC/candidateNumColor"]}},methods:{titleBlurEvent:function(t){(t.currentTarget.innerText.includes("/")||t.currentTarget.innerText.includes("\\"))&&(t.currentTarget.innerText=t.currentTarget.innerText.replace(/[/,\\]/g,""),this.$message.warning("检测到试卷名称中包含/或\\,为防止zip包生成多层目录影响扫描识别已将其删除!"));var e=Number(getComputedStyle(t.target).lineHeight.replace("px",""))||0;t.target.scrollHeight>=3*e?(this.$message.error("内容不得超过两行,请进行删减!"),document.getElementById("paper-title__ele").focus()):(t.currentTarget.innerText||(t.currentTarget.innerText="请输入试卷名称",this.$message.error("试卷标题不能为空!"),document.getElementById("paper-title__ele").focus()),this.$store.dispatch("AC/paper/setTitle",t.currentTarget.innerText))},handleInfoAreaLayout:function(){return this.layout<3&&(0===this.registrationNumberType||this.educationId<=10)?this.$store.getters["AC/studentInfo"].length<=3?"info-area__one--column":"info-area__two--column":"info-area__three--column"},changeEduValue:function(t){this.eduIdValue=t},changeOptionFontColor:function(t){this.optionFontColor=t},saveSettingModal:function(){this.$store.dispatch("AC/answerConfig/setEducationId",this.eduIdValue),this.$store.dispatch("AC/paper/setCandidateNumColor",this.optionFontColor),this.$store.dispatch("AC/paper/resetPanel"),this.showSettingModal=!1},handleAttentionChange:function(t,e){this.$store.dispatch("AC/paper/".concat("scan"===e?"setScansionAttention":"setLatticeAttention"),{content:t.currentTarget.innerHTML,height:$(t.currentTarget).parent().outerHeight()}),this.$store.dispatch("AC/paper/resetPanel")},handleEntranceAttention:function(t){this.$store.dispatch("AC/paper/setEntranceAttention",{content:t.currentTarget.innerHTML,height:$(t.currentTarget).parent().outerHeight()}),this.$store.dispatch("AC/paper/resetPanel")}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null),l=c.exports;l.install=function(t){t.component(l.name,l)};e["default"]=l},e893:function(t,e,n){var i=n("1a2d"),r=n("56ef"),a=n("06cf"),o=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),c=o.f,l=a.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||c(t,d,l(e,d))}}},e8b5:function(t,e,n){var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==i(t)}},eb33:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAAA7CAYAAAD2Hu26AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjE2REY5RTJGQjg5NDExRThBM0RBODA4NjVDNEYwRDBFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjE2REY5RTMwQjg5NDExRThBM0RBODA4NjVDNEYwRDBFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTZERjlFMkRCODk0MTFFOEEzREE4MDg2NUM0RjBEMEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTZERjlFMkVCODk0MTFFOEEzREE4MDg2NUM0RjBEMEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7FbkwxAAABJklEQVR42uya0QnCMBRFG+kO+W9HaFfRFTqTHaFdRUew38kUUUHwVx5qbh/ngPhjIPfwuI2kbUqpNNqEGOPHP845P79kMx0aQDjCAeEIB4QjHBCOcIQDwhEOCEc4ILwC7eMTHOaSzRRKKYzdPyf8dUMijeHGhw6Hd4fL32ka1nCnCQhHOMLhJw/N0WGuUVn41aFw2UxUSoUJP4vvcTKskc0UeJmTSuFYCAjf9UNzdZhrVRZ+cihcNhOVUmHCO/E9boY1nbLwm/o53LBGNhOVgnCEA8L3fUrpHebqlYVvDoXLZqJSKkz44vBv+qIs/OhwkGQzUSkIRzh8ucNnh7lmZeGTQ+GymaiUChM+iO/R8traoCz8Ii7ccgEhm4lKQTjCAeH75S7AADezLGDii6+LAAAAAElFTkSuQmCC"},ebb5:function(t,e,n){"use strict";var i,r,a,o=n("4b11"),s=n("83ab"),c=n("da84"),l=n("1626"),u=n("861d"),d=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),g=n("cb2d"),y=n("edd0"),m=n("3a9b"),v=n("e163"),_=n("d2bb"),b=n("b622"),w=n("90e3"),C=n("69f3"),A=C.enforce,x=C.get,T=c.Int8Array,k=T&&T.prototype,E=c.Uint8ClampedArray,S=E&&E.prototype,I=T&&v(T),O=k&&v(k),P=Object.prototype,B=c.TypeError,j=b("toStringTag"),L=w("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",M=o&&!!_&&"Opera"!==h(c.opera),$=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},D=function(t){if(!u(t))return!1;var e=h(t);return"DataView"===e||d(N,e)||d(z,e)},U=function(t){var e=v(t);if(u(e)){var n=x(e);return n&&d(n,R)?n[R]:U(e)}},H=function(t){if(!u(t))return!1;var e=h(t);return d(N,e)||d(z,e)},F=function(t){if(H(t))return t;throw B("Target is not a typed array")},K=function(t){if(l(t)&&(!_||m(I,t)))return t;throw B(f(t)+" is not a typed array constructor")},W=function(t,e,n,i){if(s){if(n)for(var r in N){var a=c[r];if(a&&d(a.prototype,t))try{delete a.prototype[t]}catch(o){try{a.prototype[t]=e}catch(l){}}}O[t]&&!n||g(O,t,n?e:M&&k[t]||e,i)}},V=function(t,e,n){var i,r;if(s){if(_){if(n)for(i in N)if(r=c[i],r&&d(r,t))try{delete r[t]}catch(a){}if(I[t]&&!n)return;try{return g(I,t,n?e:M&&I[t]||e)}catch(a){}}for(i in N)r=c[i],!r||r[t]&&!n||g(r,t,e)}};for(i in N)r=c[i],a=r&&r.prototype,a?A(a)[R]=r:M=!1;for(i in z)r=c[i],a=r&&r.prototype,a&&(A(a)[R]=r);if((!M||!l(I)||I===Function.prototype)&&(I=function(){throw B("Incorrect invocation")},M))for(i in N)c[i]&&_(c[i],I);if((!M||!O||O===P)&&(O=I.prototype,M))for(i in N)c[i]&&_(c[i].prototype,O);if(M&&v(S)!==O&&_(S,O),s&&!d(O,j))for(i in $=!0,y(O,j,{configurable:!0,get:function(){return u(this)?this[L]:void 0}}),N)c[i]&&p(c[i],L,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:$&&L,aTypedArray:F,aTypedArrayConstructor:K,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:U,isView:D,isTypedArray:H,TypedArray:I,TypedArrayPrototype:O}},edd0:function(t,e,n){var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},f495:function(t,e,n){var i=n("c04e"),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw r("Can't convert number to bigint");return BigInt(e)}},f5df:function(t,e,n){var i=n("00ee"),r=n("1626"),a=n("c6b6"),o=n("b622"),s=o("toStringTag"),c=Object,l="Arguments"==a(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?a:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=c(t),s))?n:l?a(e):"Object"==(i=a(e))&&r(e.callee)?"Arguments":i}},f714:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA7CAYAAACE0Y8MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFERUNDNEYwQjg5NDExRTg4RDAzODcxREI1QjM3Njc2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFERUNDNEYxQjg5NDExRTg4RDAzODcxREI1QjM3Njc2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MURFQ0M0RUVCODk0MTFFODhEMDM4NzFEQjVCMzc2NzYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MURFQ0M0RUZCODk0MTFFODhEMDM4NzFEQjVCMzc2NzYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4efK6pAAABVElEQVR42uyawQnCQBREs2IPuWsJsQVL0BZSk5YQW7AELUHPmyqiOQgBhfU0O/DfgCDuYZ+8MPlhk3LOU6NLatv268dxHD9fXVhkHKuGVA0CEIAAggAEEAQggCAAAQQBCCAIQABBQIys359kxJOicaRpmrgMF1kcDmkE5JylGxZOxKqz1KggUvFimAVIz2EL6y4snAkzhhIEIIBIbsI7Ix4Xlr1SwN1IgAvLlQoKVEEn4X59Yd2FRcaReDn3JwsPYoyhBAFRbsIXI55LNI5ZwNFIwDEaBxVkUEEb4X7PwroLy0Yp4KGcvQvrLiwyDiqIMRQBBAGxp6CtEc82Gsf6j9FQmWc0DirIoIIGo0d8F5ZBKeBgdEEconFQQYyhCCCVb8JnI55zNI5ZQG8koI/GQQUZVFAn3K/06qELS6cUcBP+6dKBjAuLjIMKYgxFAEFA3LwEGACCa0UZSvm0awAAAABJRU5ErkJggg=="},f772:function(t,e,n){var i=n("5692"),r=n("90e3"),a=i("keys");t.exports=function(t){return a[t]||(a[t]=r(t))}},f8cd:function(t,e,n){var i=n("5926"),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw r("The argument can't be less than 0");return e}},fbd7:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-answer-box"},[e("div",{staticClass:"ac-answer-box__wrapper",class:{"is-row-direction":"row"===t.direction},style:{"--width":t.width+"px"}},[e("div",{staticClass:"ac-answer-box__top",on:{click:t.showInput}},[t.inputVisible?e("el-input",{ref:"editInput",attrs:{maxlength:t.maxlength},on:{change:t.handleChange,blur:function(e){t.inputVisible=!1}},model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}}):e("span",[t._v(t._s(t.label))])],1),e("div",{staticClass:"ac-answer-box__bottom"})])])},r=[],a={name:"AcAnswerBox",props:{direction:{type:String,default:"column"},label:{type:[String,Number],default:"答案"},width:{type:Number,default:128},editable:{type:Boolean,default:!1},maxlength:{type:Number,default:12},dataKey:{type:String,default:""}},data:function(){return{inputVisible:!1,inputVal:""}},methods:{handleChange:function(){this.inputVisible=!1,this.$store.dispatch("AC/paper/setEditTitle",{dataKey:this.dataKey,title:this.inputVal})},showInput:function(){var t=this;this.editable&&(this.inputVisible=!0,this.inputVal=this.label,this.$nextTick((function(){return t.$refs.editInput&&t.$refs.editInput.focus()})))}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null),l=c.exports;l.install=function(t){t.component(l.name,l)};e["default"]=l},fc6a:function(t,e,n){var i=n("44ad"),r=n("1d80");t.exports=function(t){return i(r(t))}},fdbf:function(t,e,n){var i=n("04f8");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}});
|
|
12
|
+
var i=n("1fb5"),r=n("9152"),a=n("e3db");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=l.prototype):(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return u(this,t,e,n)}function u(t,e,n,i){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?y(t,e,n,i):"string"===typeof e?p(t,e,n):m(t,e)}function d(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e,n,i){return d(e),e<=0?c(t,e):void 0!==n?"string"===typeof i?c(t,e).fill(n,i):c(t,e).fill(n):c(t,e)}function f(t,e){if(d(e),t=c(t,e<0?0:0|v(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|b(e,n);t=c(t,i);var r=t.write(e,n);return r!==i&&(t=t.slice(0,r)),t}function g(t,e){var n=e.length<0?0:0|v(e.length);t=c(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function y(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),l.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=l.prototype):t=g(t,e),t}function m(t,e){if(l.isBuffer(e)){var n=0|v(e.length);return t=c(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?c(t,0):g(t,e);if("Buffer"===e.type&&a(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),l.alloc(+t)}function b(t,e){if(l.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(i)return q(t).length;e=(""+e).toLowerCase(),i=!0}}function w(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return $(this,e,n);case"utf8":case"utf-8":return j(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function C(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function A(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:x(t,e,n,i,r);if("number"===typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,r){var a,o=1,s=t.length,c=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(a=n;a<s;a++)if(l(t,a)===l(e,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var d=!0,h=0;h<c;h++)if(l(t,a+h)!==l(e,h)){d=!1;break}if(d)return a}return-1}function T(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function k(t,e,n,i){return tt(q(e,t.length-n),t,n,i)}function E(t,e,n,i){return tt(Q(e),t,n,i)}function S(t,e,n,i){return E(t,e,n,i)}function I(t,e,n,i){return tt(J(e),t,n,i)}function O(t,e,n,i){return tt(X(e,t.length-n),t,n,i)}function P(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function j(t,e,n){n=Math.min(t.length,n);var i=[],r=e;while(r<n){var a,o,s,c,l=t[r],u=null,d=l>239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:a=t[r+1],128===(192&a)&&(c=(31&l)<<6|63&a,c>127&&(u=c));break;case 3:a=t[r+1],o=t[r+2],128===(192&a)&&128===(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:a=t[r+1],o=t[r+2],s=t[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s,c>65535&&c<1114112&&(u=c))}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return L(i)}e.Buffer=l,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=s(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return h(null,t,e,n)},l.allocUnsafe=function(t){return f(null,t)},l.allocUnsafeSlow=function(t){return f(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=l.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},l.byteLength=b,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)C(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?j(this,0,t):w.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,i,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,o=n-e,s=Math.min(a,o),c=this.slice(i,r),u=t.slice(e,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return A(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return A(this,t,e,n,!1)},l.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return T(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function L(t){var e=t.length;if(e<=B)return String.fromCharCode.apply(String,t);var n="",i=0;while(i<e)n+=String.fromCharCode.apply(String,t.slice(i,i+=B));return n}function R(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function M(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function $(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=G(t[a]);return r}function N(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function z(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,i,r,a){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function U(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r<a;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function H(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r<a;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function F(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(t,e,n,i,a){return a||F(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function W(t,e,n,i,a){return a||F(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=l.prototype;else{var r=e-t;n=new l(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return i},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=this[t+--e],r=1;while(e>0&&(r*=256))i+=this[t+--e]*r;return i},l.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var i=e,r=1,a=this[t+--i];while(i>0&&(r*=256))a+=this[t+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},l.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;D(this,t,e,n,r,0)}var a=1,o=0;this[e]=255&t;while(++o<n&&(a*=256))this[e+o]=t/a&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;D(this,t,e,n,r,0)}var a=n-1,o=1;this[e+a]=255&t;while(--a>=0&&(o*=256))this[e+a]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;this[e]=255&t;while(++a<n&&(o*=256))t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;this[e+a]=255&t;while(--a>=0&&(o*=256))t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return K(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return K(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},l.prototype.fill=function(t,e,n,i){if("string"===typeof t){if("string"===typeof e?(i=e,e=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=l.isBuffer(t)?t:q(new l(t,i).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function Y(t){if(t=Z(t).replace(V,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var n;e=e||1/0;for(var i=t.length,r=null,a=[],o=0;o<i;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Q(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function X(t,e){for(var n,i,r,a=[],o=0;o<t.length;++o){if((e-=2)<0)break;n=t.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i)}return a}function J(t){return i.toByteArray(Y(t))}function tt(t,e,n,i){for(var r=0;r<i;++r){if(r+n>=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b7ef:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("d066"),o=n("5c6c"),s=n("9bf2").f,c=n("1a2d"),l=n("19aa"),u=n("7156"),d=n("e391"),h=n("cf98"),f=n("0d26"),p=n("83ab"),g=n("c430"),y="DOMException",m=a("Error"),v=a(y),_=function(){l(this,b);var t=arguments.length,e=d(t<1?void 0:arguments[0]),n=d(t<2?void 0:arguments[1],"Error"),i=new v(e,n),r=m(e);return r.name=y,s(i,"stack",o(1,f(r.stack,1))),u(i,this,_),i},b=_.prototype=v.prototype,w="stack"in m(y),C="stack"in new v(1,2),A=v&&p&&Object.getOwnPropertyDescriptor(r,y),x=!!A&&!(A.writable&&A.configurable),T=w&&!x&&!C;i({global:!0,constructor:!0,forced:g||T},{DOMException:T?_:v});var k=a(y),E=k.prototype;if(E.constructor!==k)for(var S in g||s(E,"constructor",o(1,k)),h)if(c(h,S)){var I=h[S],O=I.s;c(k,O)||s(k,O,o(6,I.c))}},b980:function(t,e,n){var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},bcbf:function(t,e,n){var i=n("f5df");t.exports=function(t){var e=i(t);return"BigInt64Array"==e||"BigUint64Array"==e}},bee2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("a38e");function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Object(i["a"])(r.key),r)}}function a(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},c04e:function(t,e,n){var i=n("c65b"),r=n("861d"),a=n("d9b5"),o=n("dc4a"),s=n("485a"),c=n("b622"),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!r(t)||a(t))return t;var n,c=o(t,u);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!r(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c430:function(t,e){t.exports=!1},c4e3:function(t,e,n){(function(e,n,i){var r;!function(e){t.exports=e()}((function(){return function t(e,n,i){function a(s,c){if(!n[s]){if(!e[s]){var l="function"==typeof r&&r;if(!c&&l)return r(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};e[s][0].call(d.exports,(function(t){var n=e[s][1][t];return a(n||t)}),d,d.exports,t,e,n,i)}return n[s].exports}for(var o="function"==typeof r&&r,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,o,s,c,l,u=[],d=0,h=t.length,f=h,p="string"!==i.getTypeOf(t);d<t.length;)f=h-d,r=p?(e=t[d++],n=d<h?t[d++]:0,d<h?t[d++]:0):(e=t.charCodeAt(d++),n=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),o=e>>2,s=(3&e)<<4|n>>4,c=1<f?(15&n)<<2|r>>6:64,l=2<f?63&r:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join("")},n.decode=function(t){var e,n,i,o,s,c,l=0,u=0,d="data:";if(t.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===a.charAt(64)&&f--,t.charAt(t.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|f):new Array(0|f);l<t.length;)e=a.indexOf(t.charAt(l++))<<2|(o=a.indexOf(t.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(t.charAt(l++)))>>2,i=(3&s)<<6|(c=a.indexOf(t.charAt(l++))),h[u++]=e,64!==s&&(h[u++]=n),64!==c&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),a=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new a).pipe(new o("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n,i){var a=r,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,i){var a=r,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),a=t("./utils"),o=t("./stream/GenericWorker"),s=i?"uint8array":"array";function c(t,e){o.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,t.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new c("Deflate",t)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,o,u){var d,h,f=t.file,p=t.compression,g=u!==s.utf8encode,y=a.transformTo("string",u(f.name)),m=a.transformTo("string",s.utf8encode(f.name)),v=f.comment,_=a.transformTo("string",u(v)),b=a.transformTo("string",s.utf8encode(v)),w=m.length!==f.name.length,C=b.length!==v.length,A="",x="",T="",k=f.dir,E=f.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var I=0;e&&(I|=8),g||!w&&!C||(I|=2048);var O=0,P=0;k&&(O|=16),"UNIX"===o?(P=798,O|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(f.unixPermissions,k)):(P=20,O|=function(t){return 63&(t||0)}(f.dosPermissions)),d=E.getUTCHours(),d<<=6,d|=E.getUTCMinutes(),d<<=5,d|=E.getUTCSeconds()/2,h=E.getUTCFullYear()-1980,h<<=4,h|=E.getUTCMonth()+1,h<<=5,h|=E.getUTCDate(),w&&(x=i(1,1)+i(c(y),4)+m,A+="up"+i(x.length,2)+x),C&&(T=i(1,1)+i(c(_),4)+b,A+="uc"+i(T.length,2)+T);var j="";return j+="\n\0",j+=i(I,2),j+=p.magic,j+=i(d,2),j+=i(h,2),j+=i(S.crc32,4),j+=i(S.compressedSize,4),j+=i(S.uncompressedSize,4),j+=i(y.length,2),j+=i(A.length,2),{fileRecord:l.LOCAL_FILE_HEADER+j+y+A,dirRecord:l.CENTRAL_FILE_HEADER+i(P,2)+j+i(_.length,2)+"\0\0\0\0"+i(O,4)+i(r,4)+y+A+_}}var a=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),c=t("../crc32"),l=t("../signature");function u(t,e,n,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return l.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,o){var s=a.transformTo("string",o(r));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var a=new r(e.streamFiles,n,e.platform,e.encodeFileName),o=0;try{t.forEach((function(t,n){o++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:t,dir:c,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(t){a.error(t)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),a=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),c=t("./nodejsUtils");function l(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new s);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new o(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var a=0;a<i.length;a++)n.push(l(i[a]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),a=r.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=i.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function a(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(a,r),a.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},a.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=a.getTypeOf(e),s=a.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(i=p(t))&&y.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(e instanceof l&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",r="string");var m=null;m=e instanceof l||e instanceof o?e:h.isNode&&h.isStream(e)?new f(t,e):a.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var v=new u(t,m,s);this.files[t]=v}var r=t("./utf8"),a=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),c=t("./defaults"),l=t("./compressedObject"),u=t("./zipObject"),d=t("./generate"),h=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},y=function(t,e){return e=void 0!==e?e:c.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function m(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(m(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var a=this.files[this.root+t];return a&&!a.dir?a:null},folder:function(t){if(!t)return this;if(m(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=y.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=a.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=d.generateWorker(this,n,i)}catch(t){(e=new o("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===e&&this.data[a+1]===n&&this.data[a+2]===i&&this.data[a+3]===r)return a-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),a=this.readData(4);return e===a[0]&&n===a[1]&&i===a[2]&&r===a[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),a=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),c=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new s(t):r.uint8array?new c(i.transformTo("uint8array",t)):new a(i.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function a(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(a,i),a.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(a,i),a.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function a(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(a,r),a.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function a(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(a,r),a.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,n,i){"use strict";var r=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),c=t("../support"),l=t("../external"),u=null;if(c.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function d(t,n){return new l.Promise((function(i,a){var o=[],c=t._internalType,l=t._outputType,u=t._mimeType;t.on("data",(function(t,e){o.push(t),n&&n(e)})).on("error",(function(t){o=[],a(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return r.transformTo(t,e)}}(l,function(t,n){var i,r=0,a=null,o=0;for(i=0;i<n.length;i++)o+=n[i].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(a=new Uint8Array(o),i=0;i<n.length;i++)a.set(n[i],r),r+=n[i].length;return a;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(c,o),u);i(t)}catch(t){a(t)}o=[]})).resume()}))}function h(t,e,n){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=e,this._mimeType=n,r.checkSupport(i),this._worker=t.pipe(new a(i)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return d(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){r.delay(e,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof e,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var r=new ArrayBuffer(0);try{i.blob=0===new Blob([r],{type:"application/zip"}).size}catch(t){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(r),i.blob=0===a.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),a=t("./nodejsUtils"),o=t("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return r.nodebuffer?a.newBufferFrom(t,"utf-8"):function(t){var e,n,i,a,o,s=t.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,a,o=t.length,c=new Array(2*o);for(e=n=0;e<o;)if((r=t[e++])<128)c[n++]=r;else if(4<(a=s[r]))c[n++]=65533,e+=a-1;else{for(r&=2===a?31:3===a?15:7;1<a&&e<o;)r=r<<6|63&t[e++],a--;1<a?c[n++]=65533:r<65536?c[n++]=r:(r-=65536,c[n++]=55296|r>>10&1023,c[n++]=56320|1023&r)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),i.applyFromCharCode(c)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(l,o),l.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var a=e;(e=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),e.set(a,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),c=e;o!==e.length&&(r.uint8array?(c=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(c=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:n.utf8decode(c),meta:t.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,i.inherits(u,o),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),a=t("./nodejsUtils"),o=t("./external");function s(t){return t}function c(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(e,i){n.checkSupport("blob");try{return new Blob([e],{type:i})}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(t,e,n){var i=[],r=0,a=t.length;if(a<=n)return String.fromCharCode.apply(null,t);for(;r<a;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,a)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,a)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=l.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=l.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return l.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return l.stringifyByChar(t)}function d(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var h={};h.string={string:s,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:function(t){return c(t,a.allocBuffer(t.length))}},h.array={string:u,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a.newBufferFrom(t)}},h.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return a.newBufferFrom(t)}},h.nodebuffer={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return h[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&a.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,a,s,l){return o.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(l?e=r.decode(e):a&&!0!==s&&(e=function(t){return c(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),a=t("./signature"),o=t("./zipEntry"),s=t("./support");function c(t){this.files=[],this.loadOptions=t}c.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,a.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),a=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),c=t("./compressions"),l=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in c)if(Object.prototype.hasOwnProperty.call(c,e)&&c[e].magic===t)return c[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var a=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),a=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),c=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(e=e.pipe(new o.Utf8EncodeWorker)),!a&&i&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(t){(e=new c("error")).error(t)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<l.length;d++)i.prototype[l[d]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var a=0,o=new r(u),s=t.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var c=new t.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var t,e;i=!0;for(var n=l.length;n;){for(e=l,l=[],t=-1;++t<n;)e[t]();n=l.length}i=!1}e.exports=function(t){1!==l.push(t)||i||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function l(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,t!==r&&f(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return a.reject(t,i)}i===t?a.reject(t,new TypeError("Cannot resolve promise with itself")):a.resolve(t,i)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function i(e){n||(n=!0,a.reject(t,e))}function r(e){n||(n=!0,a.resolve(t,e))}var o=p((function(){e(r,i)}));"error"===o.status&&i(o.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=l).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===o)return this;var n=new this.constructor(r);return this.state!==c?d(n,this.state===s?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){a.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){a.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},a.resolve=function(t,e){var n=p(h,e);if("error"===n.status)return a.reject(t,n.value);var i=n.value;if(i)f(t,i);else{t.state=s,t.outcome=e;for(var r=-1,o=t.queue.length;++r<o;)t.queue[r].callFulfilled(e)}return t},a.reject=function(t,e){t.state=o,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:a.resolve(new this(r),t)},l.reject=function(t){var e=new this(r);return a.reject(e,t)},l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,c=-1,l=new this(r);++c<n;)u(t[c],c);return l;function u(t,r){e.resolve(t).then((function(t){o[r]=t,++s!==n||i||(i=!0,a.resolve(l,o))}),(function(t){i||(i=!0,a.reject(l,t))}))}},l.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var o,s=-1,c=new this(r);++s<n;)o=t[s],e.resolve(o).then((function(t){i||(i=!0,a.resolve(c,t))}),(function(t){i||(i=!0,a.reject(c,t))}));return c}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/messages"),s=t("./zlib/zstream"),c=Object.prototype.toString,l=0,u=-1,d=0,h=8;function f(t){if(!(this instanceof f))return new f(t);this.options=r.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==l)throw new Error(o[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?a.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=i.deflateSetDictionary(this.strm,p))!==l)throw new Error(o[n]);this._dict_set=!0}}function p(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}f.prototype.push=function(t,e){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=a.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=i.deflate(s,o))&&n!==l)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/constants"),s=t("./zlib/messages"),c=t("./zlib/zstream"),l=t("./zlib/gzheader"),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new l,i.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(t,e){var n,s,c,l,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,y=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?f.input=a.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(p),f.next_out=0,f.avail_out=p),(n=i.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(h="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===o.Z_BUF_ERROR&&!0===y&&(n=o.Z_OK,y=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(f.output,f.next_out),l=f.next_out-c,d=a.buf2string(f.output,c),f.next_out=l,f.avail_out=p-l,l&&r.arraySet(f.output,f.output,c,l,0),this.onData(d)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(y=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var a=0;a<i;a++)t[r+a]=e[n+a]},flattenChunks:function(t){var e,n,i,r,a,o;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(o=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)a=t[e],o.set(a,r),r+=a.length;return o}},a={arraySet:function(t,e,n,i,r){for(var a=0;a<i;a++)t[r+a]=e[n+a]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var o=new i.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(t,e){if(e<65537&&(t.subarray&&a||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}o[254]=o[254]=1,n.string2buf=function(t){var e,n,r,a,o,s=t.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(c),a=o=0;o<c;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e},n.buf2binstring=function(t){return c(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,a,s=e||t.length,l=new Array(2*s);for(n=i=0;n<s;)if((r=t[n++])<128)l[i++]=r;else if(4<(a=o[r]))l[i++]=65533,n+=a-1;else{for(r&=2===a?31:3===a?15:7;1<a&&n<s;)r=r<<6|63&t[n++],a--;1<a?l[i++]=65533:r<65536?l[i++]=r:(r-=65536,l[i++]=55296|r>>10&1023,l[i++]=56320|1023&r)}return c(l,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t|0,a=t>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(r=r+e[i++]|0)|0,--o;);r%=65521,a%=65521}return r|a<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var a=i,o=r+n;t^=-1;for(var s=r;s<o;s++)t=t>>>8^a[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),a=t("./trees"),o=t("./adler32"),s=t("./crc32"),c=t("./messages"),l=0,u=4,d=0,h=-2,f=-1,p=4,g=2,y=8,m=9,v=286,_=30,b=19,w=2*v+1,C=15,A=3,x=258,T=x+A+1,k=42,E=113,S=1,I=2,O=3,P=4;function j(t,e){return t.msg=c[e],e}function B(t){return(t<<1)-(4<t?9:0)}function L(t){for(var e=t.length;0<=--e;)t[e]=0}function R(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function M(t,e){a._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,R(t.strm)}function $(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function z(t,e){var n,i,r=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-T?t.strstart-(t.w_size-T):0,l=t.window,u=t.w_mask,d=t.prev,h=t.strstart+x,f=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+o]===p&&l[n+o-1]===f&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<h);if(i=x-(h-a),a=h-x,o<i){if(t.match_start=e,s<=(o=i))break;f=l[a+o-1],p=l[a+o]}}}while((e=d[e&u])>c&&0!=--r);return o<=t.lookahead?o:t.lookahead}function D(t){var e,n,i,a,c,l,u,d,h,f,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-T)){for(r.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;i=t.head[--e],t.head[e]=p<=i?i-p:0,--n;);for(e=n=p;i=t.prev[--e],t.prev[e]=p<=i?i-p:0,--n;);a+=p}if(0===t.strm.avail_in)break;if(l=t.strm,u=t.window,d=t.strstart+t.lookahead,h=a,f=void 0,f=l.avail_in,h<f&&(f=h),n=0===f?0:(l.avail_in-=f,r.arraySet(u,l.input,l.next_in,f,d),1===l.state.wrap?l.adler=o(l.adler,u,f,d):2===l.state.wrap&&(l.adler=s(l.adler,u,f,d)),l.next_in+=f,l.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=A)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+A-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<A)););}while(t.lookahead<T&&0!==t.strm.avail_in)}function U(t,e){for(var n,i;;){if(t.lookahead<T){if(D(t),t.lookahead<T&&e===l)return S;if(0===t.lookahead)break}if(n=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-T&&(t.match_length=z(t,n)),t.match_length>=A)if(i=a._tr_tally(t,t.strstart-t.match_start,t.match_length-A),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=A){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=t.strstart<A-1?t.strstart:A-1,e===u?(M(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}function H(t,e){for(var n,i,r;;){if(t.lookahead<T){if(D(t),t.lookahead<T&&e===l)return S;if(0===t.lookahead)break}if(n=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=A-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-T&&(t.match_length=z(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===A&&4096<t.strstart-t.match_start)&&(t.match_length=A-1)),t.prev_length>=A&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-A,i=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-A),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=A-1,t.strstart++,i&&(M(t,!1),0===t.strm.avail_out))return S}else if(t.match_available){if((i=a._tr_tally(t,0,t.window[t.strstart-1]))&&M(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return S}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<A-1?t.strstart:A-1,e===u?(M(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}function F(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function K(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*w),this.dyn_dtree=new r.Buf16(2*(2*_+1)),this.bl_tree=new r.Buf16(2*(2*b+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(C+1),this.heap=new r.Buf16(2*v+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*v+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=g,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?k:E,t.adler=2===e.wrap?0:1,e.last_flush=l,a._tr_init(e),d):j(t,h)}function V(t){var e=W(t);return e===d&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=A-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,n,i,a,o){if(!t)return h;var s=1;if(e===f&&(e=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),a<1||m<a||n!==y||i<8||15<i||e<0||9<e||o<0||p<o)return j(t,h);8===i&&(i=9);var c=new K;return(t.state=c).strm=t,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+A-1)/A),c.window=new r.Buf8(2*c.w_size),c.head=new r.Buf16(c.hash_size),c.prev=new r.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new r.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=o,c.method=n,V(t)}i=[new F(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(D(t),0===t.lookahead&&e===l)return S;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,M(t,!1),0===t.strm.avail_out))return S;if(t.strstart-t.block_start>=t.w_size-T&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===u?(M(t,!0),0===t.strm.avail_out?O:P):(t.strstart>t.block_start&&(M(t,!1),t.strm.avail_out),S)})),new F(4,4,8,4,U),new F(4,5,16,8,U),new F(4,6,32,32,U),new F(4,4,16,16,H),new F(8,16,32,32,H),new F(8,16,128,128,H),new F(8,32,128,256,H),new F(32,128,258,1024,H),new F(32,258,258,4096,H)],n.deflateInit=function(t,e){return Y(t,e,y,15,8,0)},n.deflateInit2=Y,n.deflateReset=V,n.deflateResetKeep=W,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,d):h},n.deflate=function(t,e){var n,r,o,c;if(!t||!t.state||5<e||e<0)return t?j(t,h):h;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&e!==u)return j(t,0===t.avail_out?-5:h);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===k)if(2===r.wrap)t.adler=0,$(r,31),$(r,139),$(r,8),r.gzhead?($(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),$(r,255&r.gzhead.time),$(r,r.gzhead.time>>8&255),$(r,r.gzhead.time>>16&255),$(r,r.gzhead.time>>24&255),$(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),$(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&($(r,255&r.gzhead.extra.length),$(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=s(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):($(r,0),$(r,0),$(r,0),$(r,0),$(r,0),$(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),$(r,3),r.status=E);else{var f=y+(r.w_bits-8<<4)<<8;f|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(f|=32),f+=31-f%31,r.status=E,N(r,f),0!==r.strstart&&(N(r,t.adler>>>16),N(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),R(t),o=r.pending,r.pending!==r.pending_buf_size));)$(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),R(t),o=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,$(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),0===c&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),R(t),o=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,$(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>o&&(t.adler=s(t.adler,r.pending_buf,r.pending-o,o)),0===c&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&R(t),r.pending+2<=r.pending_buf_size&&($(r,255&t.adler),$(r,t.adler>>8&255),t.adler=0,r.status=E)):r.status=E),0!==r.pending){if(R(t),0===t.avail_out)return r.last_flush=-1,d}else if(0===t.avail_in&&B(e)<=B(n)&&e!==u)return j(t,-5);if(666===r.status&&0!==t.avail_in)return j(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==l&&666!==r.status){var p=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(D(t),0===t.lookahead)){if(e===l)return S;break}if(t.match_length=0,n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===u?(M(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}(r,e):3===r.strategy?function(t,e){for(var n,i,r,o,s=t.window;;){if(t.lookahead<=x){if(D(t),t.lookahead<=x&&e===l)return S;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=A&&0<t.strstart&&(i=s[r=t.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){o=t.strstart+x;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<o);t.match_length=x-(o-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=A?(n=a._tr_tally(t,1,t.match_length-A),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===u?(M(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}(r,e):i[r.level].func(r,e);if(p!==O&&p!==P||(r.status=666),p===S||p===O)return 0===t.avail_out&&(r.last_flush=-1),d;if(p===I&&(1===e?a._tr_align(r):5!==e&&(a._tr_stored_block(r,0,0,!1),3===e&&(L(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),R(t),0===t.avail_out))return r.last_flush=-1,d}return e!==u?d:r.wrap<=0?1:(2===r.wrap?($(r,255&t.adler),$(r,t.adler>>8&255),$(r,t.adler>>16&255),$(r,t.adler>>24&255),$(r,255&t.total_in),$(r,t.total_in>>8&255),$(r,t.total_in>>16&255),$(r,t.total_in>>24&255)):(N(r,t.adler>>>16),N(r,65535&t.adler)),R(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?d:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==k&&69!==e&&73!==e&&91!==e&&103!==e&&e!==E&&666!==e?j(t,h):(t.state=null,e===E?j(t,-3):d):h},n.deflateSetDictionary=function(t,e){var n,i,a,s,c,l,u,f,p=e.length;if(!t||!t.state)return h;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==k||n.lookahead)return h;for(1===s&&(t.adler=o(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(L(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,e,p-n.w_size,n.w_size,0),e=f,p=n.w_size),c=t.avail_in,l=t.next_in,u=t.input,t.avail_in=p,t.next_in=0,t.input=e,D(n);n.lookahead>=A;){for(i=n.strstart,a=n.lookahead-(A-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+A-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--a;);n.strstart=i,n.lookahead=A-1,D(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=A-1,n.match_available=0,t.next_in=l,t.input=u,t.avail_in=c,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,a,o,s,c,l,u,d,h,f,p,g,y,m,v,_,b,w,C,A,x,T,k;n=t.state,i=t.next_in,T=t.input,r=i+(t.avail_in-5),a=t.next_out,k=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,g=n.lencode,y=n.distcode,m=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(f+=T[i++]<<p,p+=8,f+=T[i++]<<p,p+=8),_=g[f&m];e:for(;;){if(f>>>=b=_>>>24,p-=b,0===(b=_>>>16&255))k[a++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=g[(65535&_)+(f&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&_,(b&=15)&&(p<b&&(f+=T[i++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=T[i++]<<p,p+=8,f+=T[i++]<<p,p+=8),_=y[f&v];n:for(;;){if(f>>>=b=_>>>24,p-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=y[(65535&_)+(f&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(C=65535&_,p<(b&=15)&&(f+=T[i++]<<p,(p+=8)<b&&(f+=T[i++]<<p,p+=8)),c<(C+=f&(1<<b)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=b,p-=b,(b=a-o)<C){if(u<(b=C-b)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(x=h,(A=0)===d){if(A+=l-b,b<w){for(w-=b;k[a++]=h[A++],--b;);A=a-C,x=k}}else if(d<b){if(A+=l+d-b,(b-=d)<w){for(w-=b;k[a++]=h[A++],--b;);if(A=0,d<w){for(w-=b=d;k[a++]=h[A++],--b;);A=a-C,x=k}}}else if(A+=d-b,b<w){for(w-=b;k[a++]=h[A++],--b;);A=a-C,x=k}for(;2<w;)k[a++]=x[A++],k[a++]=x[A++],k[a++]=x[A++],w-=3;w&&(k[a++]=x[A++],1<w&&(k[a++]=x[A++]))}else{for(A=a-C;k[a++]=k[A++],k[a++]=k[A++],k[a++]=k[A++],2<(w-=3););w&&(k[a++]=k[A++],1<w&&(k[a++]=k[A++]))}break}}break}}while(i<r&&a<s);i-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=i,t.next_out=a,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),a=t("./crc32"),o=t("./inffast"),s=t("./inftrees"),c=1,l=2,u=0,d=-2,h=1,f=852,p=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(f),e.distcode=e.distdyn=new i.Buf32(p),e.sane=1,e.back=-1,u):d}function v(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,m(t)):d}function _(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?d:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,v(t))):d}function b(t,e){var n,i;return t?(i=new y,(t.state=i).window=null,(n=_(t,e))!==u&&(t.state=null),n):d}var w,C,A=!0;function x(t){if(A){var e;for(w=new i.Buf32(512),C=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,w,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(l,t.lens,0,32,C,0,t.work,{bits:5}),A=!1}t.lencode=w,t.lenbits=9,t.distcode=C,t.distbits=5}function T(t,e,n,r){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),r>=o.wsize?(i.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(r<(a=o.wsize-o.wnext)&&(a=r),i.arraySet(o.window,e,n-r,a,o.wnext),(r-=a)?(i.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=v,n.inflateReset2=_,n.inflateResetKeep=m,n.inflateInit=function(t){return b(t,15)},n.inflateInit2=b,n.inflate=function(t,e){var n,f,p,y,m,v,_,b,w,C,A,k,E,S,I,O,P,j,B,L,R,M,$,N,z=0,D=new i.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return d;12===(n=t.state).mode&&(n.mode=13),m=t.next_out,p=t.output,_=t.avail_out,y=t.next_in,f=t.input,v=t.avail_in,b=n.hold,w=n.bits,C=v,A=_,M=u;t:for(;;)switch(n.mode){case h:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(2&n.wrap&&35615===b){D[n.check=0]=255&b,D[1]=b>>>8&255,n.check=a(n.check,D,2,0),w=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(w-=4,R=8+(15&(b>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<R,t.adler=n.check=1,n.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=a(n.check,D,2,0)),w=b=0,n.mode=3;case 3:for(;w<32;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.head&&(n.head.time=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,D[2]=b>>>16&255,D[3]=b>>>24&255,n.check=a(n.check,D,4,0)),w=b=0,n.mode=4;case 4:for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=a(n.check,D,2,0)),w=b=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(D[0]=255&b,D[1]=b>>>8&255,n.check=a(n.check,D,2,0)),w=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(k=n.length)&&(k=v),k&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,f,y,k,R)),512&n.flags&&(n.check=a(n.check,f,k,y)),v-=k,y+=k,n.length-=k),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break t;for(k=0;R=f[y+k++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R)),R&&k<v;);if(512&n.flags&&(n.check=a(n.check,f,k,y)),v-=k,y+=k,R)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break t;for(k=0;R=f[y+k++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R)),R&&k<v;);if(512&n.flags&&(n.check=a(n.check,f,k,y)),v-=k,y+=k,R)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}w=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}t.adler=n.check=g(b),w=b=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=m,t.avail_out=_,t.next_in=y,t.avail_in=v,n.hold=b,n.bits=w,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}switch(n.last=1&b,w-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6!==e)break;b>>>=2,w-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,w=b=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(k=n.length){if(v<k&&(k=v),_<k&&(k=_),0===k)break t;i.arraySet(p,f,y,k,m),v-=k,y+=k,_-=k,m+=k,n.length-=k;break}n.mode=12;break;case 17:for(;w<14;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(n.nlen=257+(31&b),b>>>=5,w-=5,n.ndist=1+(31&b),b>>>=5,w-=5,n.ncode=4+(15&b),b>>>=4,w-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.lens[U[n.have++]]=7&b,b>>>=3,w-=3}for(;n.have<19;)n.lens[U[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,$={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,$),n.lenbits=$.bits,M){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,P=65535&z,!((I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(P<16)b>>>=I,w-=I,n.lens[n.have++]=P;else{if(16===P){for(N=I+2;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(b>>>=I,w-=I,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}R=n.lens[n.have-1],k=3+(3&b),b>>>=2,w-=2}else if(17===P){for(N=I+3;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}w-=I,R=0,k=3+(7&(b>>>=I)),b>>>=3,w-=3}else{for(N=I+7;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}w-=I,R=0,k=11+(127&(b>>>=I)),b>>>=7,w-=7}if(n.have+k>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=R}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,$={bits:n.lenbits},M=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,$),n.lenbits=$.bits,M){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,$={bits:n.distbits},M=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,$),n.distbits=$.bits,M){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=v&&258<=_){t.next_out=m,t.avail_out=_,t.next_in=y,t.avail_in=v,n.hold=b,n.bits=w,o(t,A),m=t.next_out,p=t.output,_=t.avail_out,y=t.next_in,f=t.input,v=t.avail_in,b=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;O=(z=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,P=65535&z,!((I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(O&&0==(240&O)){for(j=I,B=O,L=P;O=(z=n.lencode[L+((b&(1<<j+B)-1)>>j)])>>>16&255,P=65535&z,!(j+(I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}b>>>=j,w-=j,n.back+=j}if(b>>>=I,w-=I,n.back+=I,n.length=P,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=12;break}if(64&O){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(N=n.extra;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(z=n.distcode[b&(1<<n.distbits)-1])>>>16&255,P=65535&z,!((I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(0==(240&O)){for(j=I,B=O,L=P;O=(z=n.distcode[L+((b&(1<<j+B)-1)>>j)])>>>16&255,P=65535&z,!(j+(I=z>>>24)<=w);){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}b>>>=j,w-=j,n.back+=j}if(b>>>=I,w-=I,n.back+=I,64&O){t.msg="invalid distance code",n.mode=30;break}n.offset=P,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(N=n.extra;w<N;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===_)break t;if(k=A-_,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}E=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),S=n.window}else S=p,E=m-n.offset,k=n.length;for(_<k&&(k=_),_-=k,n.length-=k;p[m++]=S[E++],--k;);0===n.length&&(n.mode=21);break;case 26:if(0===_)break t;p[m++]=n.length,_--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===v)break t;v--,b|=f[y++]<<w,w+=8}if(A-=_,t.total_out+=A,n.total+=A,A&&(t.adler=n.check=n.flags?a(n.check,p,A,m-A):r(n.check,p,A,m-A)),A=_,(n.flags?b:g(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}w=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===v)break t;v--,b+=f[y++]<<w,w+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}w=b=0}n.mode=29;case 29:M=1;break t;case 30:M=-3;break t;case 31:return-4;case 32:default:return d}return t.next_out=m,t.avail_out=_,t.next_in=y,t.avail_in=v,n.hold=b,n.bits=w,(n.wsize||A!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&T(t,t.output,t.next_out,A-t.avail_out)?(n.mode=31,-4):(C-=t.avail_in,A-=t.avail_out,t.total_in+=C,t.total_out+=A,n.total+=A,n.wrap&&A&&(t.adler=n.check=n.flags?a(n.check,p,A,t.next_out-A):r(n.check,p,A,t.next_out-A)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==C&&0===A||4===e)&&M===u&&(M=-5),M)},n.inflateEnd=function(t){if(!t||!t.state)return d;var e=t.state;return e.window&&(e.window=null),t.state=null,u},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?d:((n.head=e).done=!1,u):d},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?d:11===n.mode&&r(1,e,i,0)!==n.check?-3:T(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,c,l,u,d,h){var f,p,g,y,m,v,_,b,w,C=h.bits,A=0,x=0,T=0,k=0,E=0,S=0,I=0,O=0,P=0,j=0,B=null,L=0,R=new i.Buf16(16),M=new i.Buf16(16),$=null,N=0;for(A=0;A<=15;A++)R[A]=0;for(x=0;x<c;x++)R[e[n+x]]++;for(E=C,k=15;1<=k&&0===R[k];k--);if(k<E&&(E=k),0===k)return l[u++]=20971520,l[u++]=20971520,h.bits=1,0;for(T=1;T<k&&0===R[T];T++);for(E<T&&(E=T),A=O=1;A<=15;A++)if(O<<=1,(O-=R[A])<0)return-1;if(0<O&&(0===t||1!==k))return-1;for(M[1]=0,A=1;A<15;A++)M[A+1]=M[A]+R[A];for(x=0;x<c;x++)0!==e[n+x]&&(d[M[e[n+x]]++]=x);if(v=0===t?(B=$=d,19):1===t?(B=r,L-=257,$=a,N-=257,256):(B=o,$=s,-1),A=T,m=u,I=x=j=0,g=-1,y=(P=1<<(S=E))-1,1===t&&852<P||2===t&&592<P)return 1;for(;;){for(_=A-I,w=d[x]<v?(b=0,d[x]):d[x]>v?(b=$[N+d[x]],B[L+d[x]]):(b=96,0),f=1<<A-I,T=p=1<<S;l[m+(j>>I)+(p-=f)]=_<<24|b<<16|w|0,0!==p;);for(f=1<<A-1;j&f;)f>>=1;if(0!==f?(j&=f-1,j+=f):j=0,x++,0==--R[A]){if(A===k)break;A=e[n+d[x]]}if(E<A&&(j&y)!==g){for(0===I&&(I=E),m+=T,O=1<<(S=A-I);S+I<k&&!((O-=R[S+I])<=0);)S++,O<<=1;if(P+=1<<S,1===t&&852<P||2===t&&592<P)return 1;l[g=j&y]=E<<24|S<<16|m-u|0}}return 0!==j&&(l[m+j]=A-I<<24|64<<16|0),h.bits=E,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common"),r=0,a=1;function o(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,c=29,l=256,u=l+1+c,d=30,h=19,f=2*u+1,p=15,g=16,y=7,m=256,v=16,_=17,b=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(u+2));o(T);var k=new Array(2*d);o(k);var E=new Array(512);o(E);var S=new Array(256);o(S);var I=new Array(c);o(I);var O,P,j,B=new Array(d);function L(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function R(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function M(t){return t<256?E[t]:E[256+(t>>>7)]}function $(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,n){t.bi_valid>g-n?(t.bi_buf|=e<<t.bi_valid&65535,$(t,t.bi_buf),t.bi_buf=e>>g-t.bi_valid,t.bi_valid+=n-g):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function z(t,e,n){N(t,n[2*e],n[2*e+1])}function D(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function U(t,e,n){var i,r,a=new Array(p+1),o=0;for(i=1;i<=p;i++)a[i]=o=o+n[i-1]<<1;for(r=0;r<=e;r++){var s=t[2*r+1];0!==s&&(t[2*r]=D(a[s]++,s))}}function H(t){var e;for(e=0;e<u;e++)t.dyn_ltree[2*e]=0;for(e=0;e<d;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function F(t){8<t.bi_valid?$(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function K(t,e,n,i){var r=2*e,a=2*n;return t[r]<t[a]||t[r]===t[a]&&i[e]<=i[n]}function W(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&K(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!K(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function V(t,e,n){var i,r,a,o,s=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],r=t.pending_buf[t.l_buf+s],s++,0===i?z(t,r,e):(z(t,(a=S[r])+l+1,e),0!==(o=w[a])&&N(t,r-=I[a],o),z(t,a=M(--i),n),0!==(o=C[a])&&N(t,i-=B[a],o)),s<t.last_lit;);z(t,m,e)}function Y(t,e){var n,i,r,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=f,n=0;n<c;n++)0!==a[2*n]?(t.heap[++t.heap_len]=l=n,t.depth[n]=0):a[2*n+1]=0;for(;t.heap_len<2;)a[2*(r=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=o[2*r+1]);for(e.max_code=l,n=t.heap_len>>1;1<=n;n--)W(t,a,n);for(r=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,a,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,a[2*r]=a[2*n]+a[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,a[2*n+1]=a[2*i+1]=r,t.heap[1]=r++,W(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,a,o,s,c=e.dyn_tree,l=e.max_code,u=e.stat_desc.static_tree,d=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,y=e.stat_desc.max_length,m=0;for(a=0;a<=p;a++)t.bl_count[a]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<f;n++)y<(a=c[2*c[2*(i=t.heap[n])+1]+1]+1)&&(a=y,m++),c[2*i+1]=a,l<i||(t.bl_count[a]++,o=0,g<=i&&(o=h[i-g]),s=c[2*i],t.opt_len+=s*(a+o),d&&(t.static_len+=s*(u[2*i+1]+o)));if(0!==m){do{for(a=y-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[y]--,m-=2}while(0<m);for(a=y;0!==a;a--)for(i=t.bl_count[a];0!==i;)l<(r=t.heap[--n])||(c[2*r+1]!==a&&(t.opt_len+=(a-c[2*r+1])*c[2*r],c[2*r+1]=a),i--)}}(t,e),U(a,l,t.bl_count)}function Z(t,e,n){var i,r,a=-1,o=e[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=e[2*(i+1)+1],++s<c&&r===o||(s<l?t.bl_tree[2*r]+=s:0!==r?(r!==a&&t.bl_tree[2*r]++,t.bl_tree[2*v]++):s<=10?t.bl_tree[2*_]++:t.bl_tree[2*b]++,a=r,l=(s=0)===o?(c=138,3):r===o?(c=6,3):(c=7,4))}function G(t,e,n){var i,r,a=-1,o=e[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),i=0;i<=n;i++)if(r=o,o=e[2*(i+1)+1],!(++s<c&&r===o)){if(s<l)for(;z(t,r,t.bl_tree),0!=--s;);else 0!==r?(r!==a&&(z(t,r,t.bl_tree),s--),z(t,v,t.bl_tree),N(t,s-3,2)):s<=10?(z(t,_,t.bl_tree),N(t,s-3,3)):(z(t,b,t.bl_tree),N(t,s-11,7));a=r,l=(s=0)===o?(c=138,3):r===o?(c=6,3):(c=7,4)}}o(B);var q=!1;function Q(t,e,n,r){N(t,(s<<1)+(r?1:0),3),function(t,e,n,r){F(t),r&&($(t,n),$(t,~n)),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){q||(function(){var t,e,n,i,r,a=new Array(p+1);for(i=n=0;i<c-1;i++)for(I[i]=n,t=0;t<1<<w[i];t++)S[n++]=i;for(S[n-1]=i,i=r=0;i<16;i++)for(B[i]=r,t=0;t<1<<C[i];t++)E[r++]=i;for(r>>=7;i<d;i++)for(B[i]=r<<7,t=0;t<1<<C[i]-7;t++)E[256+r++]=i;for(e=0;e<=p;e++)a[e]=0;for(t=0;t<=143;)T[2*t+1]=8,t++,a[8]++;for(;t<=255;)T[2*t+1]=9,t++,a[9]++;for(;t<=279;)T[2*t+1]=7,t++,a[7]++;for(;t<=287;)T[2*t+1]=8,t++,a[8]++;for(U(T,u+1,a),t=0;t<d;t++)k[2*t+1]=5,k[2*t]=D(t,5);O=new L(T,w,l+1,u,p),P=new L(k,C,0,d,p),j=new L(new Array(0),A,0,h,y)}(),q=!0),t.l_desc=new R(t.dyn_ltree,O),t.d_desc=new R(t.dyn_dtree,P),t.bl_desc=new R(t.bl_tree,j),t.bi_buf=0,t.bi_valid=0,H(t)},n._tr_stored_block=Q,n._tr_flush_block=function(t,e,n,i){var o,s,c=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return r;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<l;e++)if(0!==t.dyn_ltree[2*e])return a;return r}(t)),Y(t,t.l_desc),Y(t,t.d_desc),c=function(t){var e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=h-1;3<=e&&0===t.bl_tree[2*x[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==e?Q(t,e,n,i):4===t.strategy||s===o?(N(t,2+(i?1:0),3),V(t,T,k)):(N(t,4+(i?1:0),3),function(t,e,n,i){var r;for(N(t,e-257,5),N(t,n-1,5),N(t,i-4,4),r=0;r<i;r++)N(t,t.bl_tree[2*x[r]+1],3);G(t,t.dyn_ltree,e-1),G(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),V(t,t.dyn_ltree,t.dyn_dtree)),H(t),i&&F(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(S[n]+l+1)]++,t.dyn_dtree[2*M(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){N(t,2,3),z(t,m,T),function(t){16===t.bi_valid?($(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var n,r,a,o,s=1,c={},l=!1,u=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,n="[object process]"==={}.toString.call(t.process)?function(t){i.nextTick((function(){f(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){f(t.data)},function(t){a.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(f,0,t)},d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var r={callback:t,args:e};return c[s]=r,n(s),s++},d.clearImmediate=h}function h(t){delete c[t]}function f(t){if(l)setTimeout(f,0,t);else{var n=c[t];if(n){l=!0;try{!function(t){var n=t.callback,i=t.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(e,i)}}(n)}finally{h(t),l=!1}}}}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&f(+e.data.slice(o.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"),n("4362"))},c65b:function(t,e,n){var i=n("40d5"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){var i=n("e330"),r=i({}.toString),a=i("".slice);t.exports=function(t){return a(r(t),8,-1)}},c6cd:function(t,e,n){var i=n("da84"),r=n("6374"),a="__core-js_shared__",o=i[a]||r(a,{});t.exports=o},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var i=n("e330"),r=n("1a2d"),a=n("fc6a"),o=n("4d64").indexOf,s=n("d012"),c=i([].push);t.exports=function(t,e){var n,i=a(t),l=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&c(u,n);while(e.length>l)r(i,n=e[l++])&&(~o(u,n)||c(u,n));return u}},cb2d:function(t,e,n){var i=n("1626"),r=n("9bf2"),a=n("13d2"),o=n("6374");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:e;if(i(n)&&a(n,l,s),s.global)c?t[e]=n:o(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(u){}c?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){var i=n("da84"),r=n("861d"),a=i.document,o=r(a)&&r(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},cdce:function(t,e,n){var i=n("da84"),r=n("1626"),a=i.WeakMap;t.exports=r(a)&&/native code/.test(String(a))},cf03:function(t,e){t.exports=require("jspdf")},cf98:function(t,e){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var i=n("da84"),r=n("1626"),a=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(i[t]):i[t]&&i[t][e]}},d09a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAA7CAYAAAD4t5PVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMxMjY3MzVCQjg5NDExRThCQjk3QzA4MjU5MzUzOTlGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMxMjY3MzVDQjg5NDExRThCQjk3QzA4MjU5MzUzOTlGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzEyNjczNTlCODk0MTFFOEJCOTdDMDgyNTkzNTM5OUYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzEyNjczNUFCODk0MTFFOEJCOTdDMDgyNTkzNTM5OUYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5Q419BAAAAtElEQVR42uzYsQ1CIRRG4XfNa2ydwSWsHcDCJSwcw8YRXmvtMM5ghQMQChL0zWBBTsi5Cf0X7s8NECml7wStzQQuceLEiRMnTpw4Rs2ttSMVF7VW7s7lnLm4UgoXFxFPLG5dZ0eJuM6Zu2KH8Prit63/tvVGbqsfOeJ6H4i7c27Eth7IuAcZtzdzIx6IFxl3IuPeZNyWjLt42XTOdc5cIeMWL5sjZm5Hxn3IuNnMietYPwEGAG5/KFS7aqTUAAAAAElFTkSuQmCC"},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);e.f=a?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d2bb:function(t,e,n){var i=n("7282"),r=n("825a"),a=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(o){}return function(n,i){return r(n),a(i),e?t(n,i):n.__proto__=i,n}}():void 0)},d429:function(t,e,n){var i=n("07fa"),r=n("5926"),a=RangeError;t.exports=function(t,e,n,o){var s=i(t),c=r(n),l=c<0?s+c:c;if(l>=s||l<0)throw a("Incorrect index");for(var u=new e(s),d=0;d<s;d++)u[d]=d===l?o:t[d];return u}},d4ec:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("d9e2");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},d58f:function(t,e,n){var i=n("59ed"),r=n("7b0b"),a=n("44ad"),o=n("07fa"),s=TypeError,c=function(t){return function(e,n,c,l){i(n);var u=r(e),d=a(u),h=o(u),f=t?h-1:0,p=t?-1:1;if(c<2)while(1){if(f in d){l=d[f],f+=p;break}if(f+=p,t?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;t?f>=0:h>f;f+=p)f in d&&(l=n(l,d[f],f,u));return l}};t.exports={left:c(!1),right:c(!0)}},d9b5:function(t,e,n){var i=n("d066"),r=n("1626"),a=n("3a9b"),o=n("fdbf"),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&a(e.prototype,s(t))}},d9e2:function(t,e,n){var i=n("23e7"),r=n("da84"),a=n("2ba4"),o=n("e5cb"),s="WebAssembly",c=r[s],l=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=o(t,e,l),i({global:!0,constructor:!0,arity:1,forced:l},n)},d=function(t,e){if(c&&c[t]){var n={};n[t]=o(s+"."+t,e,l),i({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};u("Error",(function(t){return function(e){return a(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),u("URIError",(function(t){return function(e){return a(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}e.resolve=function(){for(var e="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===a(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),a=i(n.split("/")),o=Math.min(r.length,a.length),s=o,c=0;c<o;c++)if(r[c]!==a[c]){s=c;break}var l=[];for(c=s;c<r.length;c++)l.push("..");return l=l.concat(a.slice(s)),l.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),47===e){if(!r){i=a;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===i&&(r=!1,i=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!r){n=o+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},df7e:function(t,e,n){var i=n("07fa");t.exports=function(t,e){for(var n=i(t),r=new e(n),a=0;a<n;a++)r[a]=t[n-a-1];return r}},dfb9:function(t,e,n){var i=n("07fa");t.exports=function(t,e){var n=0,r=i(e),a=new t(r);while(r>n)a[n]=e[n++];return a}},e163:function(t,e,n){var i=n("1a2d"),r=n("1626"),a=n("7b0b"),o=n("f772"),s=n("e177"),c=o("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=a(t);if(i(e,c))return e[c];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof l?u:null}},e177:function(t,e,n){var i=n("d039");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e330:function(t,e,n){var i=n("40d5"),r=Function.prototype,a=r.call,o=i&&r.bind.bind(a,a);t.exports=i?o:function(t){return function(){return a.apply(t,arguments)}}},e391:function(t,e,n){var i=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),a=n("9112"),o=n("3a9b"),s=n("d2bb"),c=n("e893"),l=n("aeb0"),u=n("7156"),d=n("e391"),h=n("ab36"),f=n("6f19"),p=n("83ab"),g=n("c430");t.exports=function(t,e,n,y){var m="stackTraceLimit",v=y?2:1,_=t.split("."),b=_[_.length-1],w=i.apply(null,_);if(w){var C=w.prototype;if(!g&&r(C,"cause")&&delete C.cause,!n)return w;var A=i("Error"),x=e((function(t,e){var n=d(y?e:t,void 0),i=y?new w(t):new w;return void 0!==n&&a(i,"message",n),f(i,x,i.stack,2),this&&o(C,this)&&u(i,this,x),arguments.length>v&&h(i,arguments[v]),i}));if(x.prototype=C,"Error"!==b?s?s(x,A):c(x,A,{name:!0}):p&&m in w&&(l(x,w,m),l(x,w,"prepareStackTrace")),c(x,w),!g)try{C.name!==b&&a(C,"name",b),C.constructor=x}catch(T){}return x}}},e6c4:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{class:["ac-basicInfo",t.layout>2?"ac-module__ThreeColumn":"ac-module__column",t.isEntranceExams&&"ac-basicInfo__entrance"]},[t.isEntranceExams?t.isEntranceExams&&0===t.$store.getters["AC/answerCardMode"]?[e("div",{staticClass:"ac-basicInfo__title"},[e("div",{staticClass:"ac-basicInfo__title-inner entrance-style",attrs:{id:"paper-title__ele",contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/title"])},on:{blur:t.titleBlurEvent}})]),t.layout<3?[e("div",{class:["ac-basic-info__edu"]},[t._m(3),e("div",{staticClass:"ac-permit_number"},[e("div",{staticClass:"ac-permit_number-left"},[e("span",[t._v("准考证号")]),t._v(" : "),e("ul",{staticClass:"ac-edu__area--empty"},t._l(t.educationId,(function(t){return e("li",{key:t})})),0)]),e("div",{staticClass:"ac-permit_number-right"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.educationId<=16,expression:"educationId <= 16"}],staticClass:"sample-filling"},[t._v("填涂样例")]),e("div",{staticClass:"correctly-filling",style:{width:t.educationId>16?"100%":"62%"}},[t._v(" 正确填涂 "),e("span")])])])]),e("div",{staticClass:"ac-attention attention-shapeCode",staticStyle:{"padding-bottom":"0px"}},[e("div",{staticClass:"attention-miss"},[e("div",{staticClass:"attention"},[t._m(4),e("div",{staticClass:"attention-notice",attrs:{contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/entranceAttention"].content)},on:{blur:function(e){return t.handleEntranceAttention(e)}}})]),t._m(5)]),t._m(6)])]:[e("div",{class:["ac-basic-info__edu"]},[t._m(7),e("div",{staticClass:"info-shape_number"},[e("span",[t._v("准考证号")]),e("b",[t._v(":")]),e("ul",{staticClass:"ac-edu__area--empty"},t._l(t.educationId,(function(t){return e("li",{key:t})})),0)]),e("div",{staticClass:"ac-attention attention-three__layout",staticStyle:{"padding-bottom":"0px"}},[e("div",{staticClass:"attention"},[t._m(8),e("div",{staticClass:"attention-notice",attrs:{contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/entranceAttention"].content)},on:{blur:function(e){return t.handleEntranceAttention(e)}}}),t._m(9)]),t._m(10)])])]]:t._e():[t.hideTitle?t._e():e("div",{staticClass:"ac-basicInfo__title"},[e("div",{staticClass:"ac-basicInfo__title-inner",attrs:{id:"paper-title__ele",contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/title"])},on:{blur:t.titleBlurEvent}})]),t.hideStudentInfo||1!==t.objectiveAnswerType?e("div",{staticClass:"plain-info-area ac-basic-info__edu"},[t._m(1)]):[0===t.answerMode||t.showEducationId?e("div",{class:[t.layout<3?"ac-info__horizontal--layout":"ac-info__vertical--layout","ac-basic-info__edu"],style:{justifyContent:t.layout<3&&(t.educationId<=10||0===t.registrationNumberType)?"space-between":"center"}},[e("div",{staticClass:"ac-info__area",style:{marginBottom:t.layout<3?t.educationId<=10||0===t.registrationNumberType?"0px":"30px":"14px",width:1===t.registrationNumberType&&t.layout<3&&t.educationId>10?"868px":"",height:1===t.registrationNumberType&&t.layout<3&&t.educationId>10?"auto":"",border:1===t.registrationNumberType&&t.layout<3&&t.educationId>10?"none":""}},[e("ul",{class:[t.handleInfoAreaLayout()],style:{"--columns":t.$store.getters["AC/studentInfo"].length<=3?t.$store.getters["AC/studentInfo"].length:3}},t._l(t.$store.getters["AC/studentInfo"],(function(n){return e("li",{key:n},[e("span",[t._v(t._s(n))]),e("div",{staticClass:"line"})])})),0)]),1===t.registrationNumberType?e("div",{staticClass:"ac-edu__area"},[e("div",{staticClass:"ac-edu__area--header",class:{"is-offline":0===t.subjectiveReviewType}},[t._v("教 育 ID")]),e("ul",{staticClass:"ac-edu__area--empty",class:{"is-offline":0===t.subjectiveReviewType},attrs:{"data-export_name":"教育ID填写"}},t._l(t.educationId,(function(t){return e("li",{key:t})})),0),e("ul",{staticClass:"ac-edu__area--fullFilling",class:{"is-offline":0===t.subjectiveReviewType},attrs:{"data-export_name":"考号"}},t._l(t.educationId,(function(n){return e("li",{key:n},t._l(Array(10).fill(""),(function(n,i){return e("div",{key:i,staticClass:"full-filling__option",style:{color:t.$store.getters["AC/candidateNumColor"]}},[t._v(" "+t._s(i)+" ")])})),0)})),0),e("div",{staticClass:"ac-edu__area--settingBtn"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.showSettingModal=!0}}},[t._v(" 设置 ")])],1)]):e("div",{staticClass:"shape-code",attrs:{"data-export_name":"条码"}},[t._m(0)])]):e("div",{staticClass:"ac-info__vertical--layout ac-basic-info__edu is-lattice__no-padding"},[e("div",{staticClass:"ac-info__area"},[e("ul",{staticClass:"info-area__three--column",style:{"--columns":3}},t._l(t.$store.getters["AC/studentInfo"],(function(n){return e("li",{key:n},[e("span",[t._v(t._s(n))]),e("div",{staticClass:"line"})])})),0)])])],t.hideAttention?t._e():e("div",{staticClass:"ac-attention"},[0===t.$store.getters["AC/answerCardMode"]?e("div",{staticClass:"ac-attention__scansion"},[t._m(2),e("div",{staticClass:"ac-attention__notice",attrs:{contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/scansionAttention"].content)},on:{blur:function(e){return t.handleAttentionChange(e,"scan")}}})]):t._e(),1===t.$store.getters["AC/answerCardMode"]?e("div",{staticClass:"ac-attention__lattice",attrs:{contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/latticeAttention"].content)},on:{blur:function(e){return t.handleAttentionChange(e,"lattice")}}}):t._e()])],e("el-dialog",{staticClass:"setting-dialog",attrs:{title:"准考证号设置",visible:t.showSettingModal,width:"452px",center:"","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.showSettingModal=e}}},[e("el-form",{attrs:{"label-position":"right","label-width":"120px"}},[e("el-form-item",{attrs:{label:"位数:"}},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeEduValue},model:{value:t.eduIdValue,callback:function(e){t.eduIdValue=e},expression:"eduIdValue"}},t._l(Array(13),(function(t,n){return e("el-option",{key:n,attrs:{label:n+6,value:n+6}})})),1)],1),e("el-form-item",{attrs:{label:"选项字体色号:"}},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeOptionFontColor},model:{value:t.optionFontColor,callback:function(e){t.optionFontColor=e},expression:"optionFontColor"}},[e("el-option",{attrs:{label:"黑色",value:"#000000"}}),e("el-option",{attrs:{label:"彩色",value:"#ea609e"}})],1),e("div",{staticClass:"color-show"},[e("div",{staticClass:"color-show__color",style:{backgroundColor:t.optionFontColor}}),e("div",{staticClass:"color-show__text"},[t._v(t._s(t.optionFontColor))])])],1),e("el-form-item",{attrs:{label:"填涂区底色:"}},[e("div",{staticClass:"color-show"},[e("div",{staticClass:"color-show__color",style:{backgroundColor:"#ffffff"}}),e("div",{staticClass:"color-show__text"},[t._v("#ffffff")])])])],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.showSettingModal=!1}}},[t._v("取 消")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.saveSettingModal}},[t._v("确 定")])],1)],1)],2)},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"shape-code__wrap"},[e("div",{staticClass:"shape-code__text"},[t._v("贴条形码区")])])},function(){var t=this,e=t._self._c;return e("ul",{staticClass:"ac-info__area"},[e("li",[e("span",[t._v("姓名")]),e("div",{staticClass:"plain-line"})]),e("li",[e("span",[t._v("班级")]),e("div",{staticClass:"plain-line"})]),e("li",{attrs:{"data-export_name":"教育ID填写"}},[e("span",[t._v("教育 ID")]),e("div",{staticClass:"plain-line"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-attention__title"},[e("span",[t._v("考生须知")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-info__area-entrance"},[e("span",[t._v("姓名")]),t._v(" : "),e("div",{staticClass:"line"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"attention-title"},[e("span",[t._v("考生须知")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"miss"},[e("div",{staticClass:"miss-sign"},[t._v("缺考标记:")]),e("div",{staticClass:"miss-fill"},[e("i")]),e("div",{staticClass:"miss-tips"},[t._v("(缺考考生信息由监考专员填写,并用2B铅笔填涂缺考标记)")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"shape-code attention-shapeCode__entrance",attrs:{"data-export_name":"条码"}},[e("div",{staticClass:"shape-code__wrap attention-shapeCode__wrap-entrance"},[e("div",{staticClass:"shape-code__text"},[t._v("贴条形码区")])]),e("div",{staticClass:"shape-code__tips"},[t._v("(由考生本人粘贴 请勿贴出区域外)")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"info-shape"},[e("div",{staticClass:"info-shape__info"},[e("span",[t._v("姓名")]),e("b",[t._v(":")]),e("div",{staticClass:"line"})]),e("div",{staticClass:"shape-code shape-code__entrance",attrs:{"data-export_name":"条码"}},[e("div",{staticClass:"shape-code__wrap shape-code__wrap-entrance"},[e("div",{staticClass:"shape-code__text"},[t._v("贴条形码区")])]),e("div",{staticClass:"shape-code__tips"},[t._v("(由考生本人粘贴 请勿贴出区域外)")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"attention-title"},[e("span",[t._v("考生须知")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"attention-filling"},[e("div",{staticClass:"sample-filling"},[t._v("填涂样例")]),e("div",{staticClass:"correctly-filling"},[t._v(" 正确填涂 "),e("span")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"miss"},[e("div",{staticClass:"miss-sign"},[t._v("缺考标记:")]),e("div",{staticClass:"miss-fill"},[e("i")]),e("div",{staticClass:"miss-tips"},[t._v("(缺考考生信息由监考专员填写,并用2B铅笔填涂缺考标记)")])])}],a={name:"AcBasicInfo",components:{},props:{hideTitle:{type:Boolean,default:!1},hideAttention:{type:Boolean,default:!1},hideStudentInfo:{type:Boolean,default:!1}},computed:{answerMode:function(){return this.$store.getters["AC/answerCardMode"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},layout:function(){return this.$store.getters["AC/layout"]},educationId:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},isEntranceExams:function(){return this.$store.getters["AC/entranceExams"]},objectiveAnswerType:function(){return this.$store.getters["AC/objectiveAnswerType"]},subjectiveReviewType:function(){return this.$store.getters["AC/subjectiveReviewType"]}},watch:{},mounted:function(){},data:function(){return{showSettingModal:!1,eduIdValue:this.$store.getters["AC/educationIdValue"],optionFontColor:this.$store.getters["AC/candidateNumColor"]}},methods:{titleBlurEvent:function(t){(t.currentTarget.innerText.includes("/")||t.currentTarget.innerText.includes("\\"))&&(t.currentTarget.innerText=t.currentTarget.innerText.replace(/[/,\\]/g,""),this.$message.warning("检测到试卷名称中包含/或\\,为防止zip包生成多层目录影响扫描识别已将其删除!"));var e=Number(getComputedStyle(t.target).lineHeight.replace("px",""))||0;t.target.scrollHeight>=3*e?(this.$message.error("内容不得超过两行,请进行删减!"),document.getElementById("paper-title__ele").focus()):(t.currentTarget.innerText||(t.currentTarget.innerText="请输入试卷名称",this.$message.error("试卷标题不能为空!"),document.getElementById("paper-title__ele").focus()),this.$store.dispatch("AC/paper/setTitle",t.currentTarget.innerText))},handleInfoAreaLayout:function(){return this.layout<3&&(0===this.registrationNumberType||this.educationId<=10)?this.$store.getters["AC/studentInfo"].length<=3?"info-area__one--column":"info-area__two--column":"info-area__three--column"},changeEduValue:function(t){this.eduIdValue=t},changeOptionFontColor:function(t){this.optionFontColor=t},saveSettingModal:function(){this.$store.dispatch("AC/answerConfig/setEducationId",this.eduIdValue),this.$store.dispatch("AC/paper/setCandidateNumColor",this.optionFontColor),this.$store.dispatch("AC/paper/resetPanel"),this.showSettingModal=!1},handleAttentionChange:function(t,e){this.$store.dispatch("AC/paper/".concat("scan"===e?"setScansionAttention":"setLatticeAttention"),{content:t.currentTarget.innerHTML,height:$(t.currentTarget).parent().outerHeight()}),this.$store.dispatch("AC/paper/resetPanel")},handleEntranceAttention:function(t){this.$store.dispatch("AC/paper/setEntranceAttention",{content:t.currentTarget.innerHTML,height:$(t.currentTarget).parent().outerHeight()}),this.$store.dispatch("AC/paper/resetPanel")}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null),l=c.exports;l.install=function(t){t.component(l.name,l)};e["default"]=l},e893:function(t,e,n){var i=n("1a2d"),r=n("56ef"),a=n("06cf"),o=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),c=o.f,l=a.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||c(t,d,l(e,d))}}},e8b5:function(t,e,n){var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==i(t)}},eb33:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAAA7CAYAAAD2Hu26AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjE2REY5RTJGQjg5NDExRThBM0RBODA4NjVDNEYwRDBFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjE2REY5RTMwQjg5NDExRThBM0RBODA4NjVDNEYwRDBFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTZERjlFMkRCODk0MTFFOEEzREE4MDg2NUM0RjBEMEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTZERjlFMkVCODk0MTFFOEEzREE4MDg2NUM0RjBEMEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7FbkwxAAABJklEQVR42uya0QnCMBRFG+kO+W9HaFfRFTqTHaFdRUew38kUUUHwVx5qbh/ngPhjIPfwuI2kbUqpNNqEGOPHP845P79kMx0aQDjCAeEIB4QjHBCOcIQDwhEOCEc4ILwC7eMTHOaSzRRKKYzdPyf8dUMijeHGhw6Hd4fL32ka1nCnCQhHOMLhJw/N0WGuUVn41aFw2UxUSoUJP4vvcTKskc0UeJmTSuFYCAjf9UNzdZhrVRZ+cihcNhOVUmHCO/E9boY1nbLwm/o53LBGNhOVgnCEA8L3fUrpHebqlYVvDoXLZqJSKkz44vBv+qIs/OhwkGQzUSkIRzh8ucNnh7lmZeGTQ+GymaiUChM+iO/R8traoCz8Ii7ccgEhm4lKQTjCAeH75S7AADezLGDii6+LAAAAAElFTkSuQmCC"},ebb5:function(t,e,n){"use strict";var i,r,a,o=n("4b11"),s=n("83ab"),c=n("da84"),l=n("1626"),u=n("861d"),d=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),g=n("cb2d"),y=n("edd0"),m=n("3a9b"),v=n("e163"),_=n("d2bb"),b=n("b622"),w=n("90e3"),C=n("69f3"),A=C.enforce,x=C.get,T=c.Int8Array,k=T&&T.prototype,E=c.Uint8ClampedArray,S=E&&E.prototype,I=T&&v(T),O=k&&v(k),P=Object.prototype,j=c.TypeError,B=b("toStringTag"),L=w("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",M=o&&!!_&&"Opera"!==h(c.opera),$=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},D=function(t){if(!u(t))return!1;var e=h(t);return"DataView"===e||d(N,e)||d(z,e)},U=function(t){var e=v(t);if(u(e)){var n=x(e);return n&&d(n,R)?n[R]:U(e)}},H=function(t){if(!u(t))return!1;var e=h(t);return d(N,e)||d(z,e)},F=function(t){if(H(t))return t;throw j("Target is not a typed array")},K=function(t){if(l(t)&&(!_||m(I,t)))return t;throw j(f(t)+" is not a typed array constructor")},W=function(t,e,n,i){if(s){if(n)for(var r in N){var a=c[r];if(a&&d(a.prototype,t))try{delete a.prototype[t]}catch(o){try{a.prototype[t]=e}catch(l){}}}O[t]&&!n||g(O,t,n?e:M&&k[t]||e,i)}},V=function(t,e,n){var i,r;if(s){if(_){if(n)for(i in N)if(r=c[i],r&&d(r,t))try{delete r[t]}catch(a){}if(I[t]&&!n)return;try{return g(I,t,n?e:M&&I[t]||e)}catch(a){}}for(i in N)r=c[i],!r||r[t]&&!n||g(r,t,e)}};for(i in N)r=c[i],a=r&&r.prototype,a?A(a)[R]=r:M=!1;for(i in z)r=c[i],a=r&&r.prototype,a&&(A(a)[R]=r);if((!M||!l(I)||I===Function.prototype)&&(I=function(){throw j("Incorrect invocation")},M))for(i in N)c[i]&&_(c[i],I);if((!M||!O||O===P)&&(O=I.prototype,M))for(i in N)c[i]&&_(c[i].prototype,O);if(M&&v(S)!==O&&_(S,O),s&&!d(O,B))for(i in $=!0,y(O,B,{configurable:!0,get:function(){return u(this)?this[L]:void 0}}),N)c[i]&&p(c[i],L,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:$&&L,aTypedArray:F,aTypedArrayConstructor:K,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:U,isView:D,isTypedArray:H,TypedArray:I,TypedArrayPrototype:O}},edd0:function(t,e,n){var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},f495:function(t,e,n){var i=n("c04e"),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw r("Can't convert number to bigint");return BigInt(e)}},f5df:function(t,e,n){var i=n("00ee"),r=n("1626"),a=n("c6b6"),o=n("b622"),s=o("toStringTag"),c=Object,l="Arguments"==a(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?a:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=c(t),s))?n:l?a(e):"Object"==(i=a(e))&&r(e.callee)?"Arguments":i}},f714:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA7CAYAAACE0Y8MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFERUNDNEYwQjg5NDExRTg4RDAzODcxREI1QjM3Njc2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFERUNDNEYxQjg5NDExRTg4RDAzODcxREI1QjM3Njc2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MURFQ0M0RUVCODk0MTFFODhEMDM4NzFEQjVCMzc2NzYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MURFQ0M0RUZCODk0MTFFODhEMDM4NzFEQjVCMzc2NzYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4efK6pAAABVElEQVR42uyawQnCQBREs2IPuWsJsQVL0BZSk5YQW7AELUHPmyqiOQgBhfU0O/DfgCDuYZ+8MPlhk3LOU6NLatv268dxHD9fXVhkHKuGVA0CEIAAggAEEAQggCAAAQQBCCAIQABBQIys359kxJOicaRpmrgMF1kcDmkE5JylGxZOxKqz1KggUvFimAVIz2EL6y4snAkzhhIEIIBIbsI7Ix4Xlr1SwN1IgAvLlQoKVEEn4X59Yd2FRcaReDn3JwsPYoyhBAFRbsIXI55LNI5ZwNFIwDEaBxVkUEEb4X7PwroLy0Yp4KGcvQvrLiwyDiqIMRQBBAGxp6CtEc82Gsf6j9FQmWc0DirIoIIGo0d8F5ZBKeBgdEEconFQQYyhCCCVb8JnI55zNI5ZQG8koI/GQQUZVFAn3K/06qELS6cUcBP+6dKBjAuLjIMKYgxFAEFA3LwEGACCa0UZSvm0awAAAABJRU5ErkJggg=="},f772:function(t,e,n){var i=n("5692"),r=n("90e3"),a=i("keys");t.exports=function(t){return a[t]||(a[t]=r(t))}},f8cd:function(t,e,n){var i=n("5926"),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw r("The argument can't be less than 0");return e}},fbd7:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-answer-box"},[e("div",{staticClass:"ac-answer-box__wrapper",class:{"is-row-direction":"row"===t.direction},style:{"--width":t.width+"px"}},[e("div",{staticClass:"ac-answer-box__top",on:{click:t.showInput}},[t.inputVisible?e("el-input",{ref:"editInput",attrs:{maxlength:t.maxlength},on:{change:t.handleChange,blur:function(e){t.inputVisible=!1}},model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}}):e("span",[t._v(t._s(t.label))])],1),e("div",{staticClass:"ac-answer-box__bottom"})])])},r=[],a={name:"AcAnswerBox",props:{direction:{type:String,default:"column"},label:{type:[String,Number],default:"答案"},width:{type:Number,default:128},editable:{type:Boolean,default:!1},maxlength:{type:Number,default:12},dataKey:{type:String,default:""}},data:function(){return{inputVisible:!1,inputVal:""}},methods:{handleChange:function(){this.inputVisible=!1,this.$store.dispatch("AC/paper/setEditTitle",{dataKey:this.dataKey,title:this.inputVal})},showInput:function(){var t=this;this.editable&&(this.inputVisible=!0,this.inputVal=this.label,this.$nextTick((function(){return t.$refs.editInput&&t.$refs.editInput.focus()})))}}},o=a,s=n("2877"),c=Object(s["a"])(o,i,r,!1,null,null,null),l=c.exports;l.install=function(t){t.component(l.name,l)};e["default"]=l},fc6a:function(t,e,n){var i=n("44ad"),r=n("1d80");t.exports=function(t){return i(r(t))}},fdbf:function(t,e,n){var i=n("04f8");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}});
|