Files
aida_front/dist/js/472.0f0d82d5.js
X1627315083 fc4403c6ca dist
2023-12-15 15:23:34 +08:00

59 lines
763 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[472],{1125:function(e,A,t){(function(){var A={9662:function(e,A,t){var i=t(7854),n=t(614),r=t(6330),o=i.TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not a function")}},6077:function(e,A,t){var i=t(7854),n=t(614),r=i.String,o=i.TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},9670:function(e,A,t){var i=t(7854),n=t(111),r=i.String,o=i.TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not an object")}},1318:function(e,A,t){var i=t(5656),n=t(1400),r=t(6244),o=function(e){return function(A,t,o){var s,a=i(A),l=r(a),c=n(o,l);if(e&&t!=t){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===t)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4326:function(e,A,t){var i=t(1702),n=i({}.toString),r=i("".slice);e.exports=function(e){return r(n(e),8,-1)}},648:function(e,A,t){var i=t(7854),n=t(1694),r=t(614),o=t(4326),s=t(5112),a=s("toStringTag"),l=i.Object,c="Arguments"==o(function(){return arguments}()),d=function(e,A){try{return e[A]}catch(t){}};e.exports=n?o:function(e){var A,t,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=d(A=l(e),a))?t:c?o(A):"Object"==(i=o(A))&&r(A.callee)?"Arguments":i}},7741:function(e,A,t){var i=t(1702),n=i("".replace),r=function(e){return String(Error(e).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(r);e.exports=function(e,A){if(s&&"string"==typeof e)while(A--)e=n(e,o,"");return e}},9920:function(e,A,t){var i=t(2597),n=t(3887),r=t(1236),o=t(3070);e.exports=function(e,A,t){for(var s=n(A),a=o.f,l=r.f,c=0;c<s.length;c++){var d=s[c];i(e,d)||t&&i(t,d)||a(e,d,l(A,d))}}},8880:function(e,A,t){var i=t(9781),n=t(3070),r=t(9114);e.exports=i?function(e,A,t){return n.f(e,A,r(1,t))}:function(e,A,t){return e[A]=t,e}},9114:function(e){e.exports=function(e,A){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:A}}},9781:function(e,A,t){var i=t(7293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,A,t){var i=t(7854),n=t(111),r=i.document,o=n(r)&&n(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},8113:function(e,A,t){var i=t(5005);e.exports=i("navigator","userAgent")||""},7392:function(e,A,t){var i,n,r=t(7854),o=t(8113),s=r.process,a=r.Deno,l=s&&s.versions||a&&a.version,c=l&&l.v8;c&&(i=c.split("."),n=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!n&&o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(n=+i[1]))),e.exports=n},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(e,A,t){var i=t(7293),n=t(9114);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},2109:function(e,A,t){var i=t(7854),n=t(1236).f,r=t(8880),o=t(1320),s=t(3505),a=t(9920),l=t(4705);e.exports=function(e,A){var t,c,d,u,h,g,p=e.target,f=e.global,m=e.stat;if(c=f?i:m?i[p]||s(p,{}):(i[p]||{}).prototype,c)for(d in A){if(h=A[d],e.noTargetGet?(g=n(c,d),u=g&&g.value):u=c[d],t=l(f?d:p+(m?".":"#")+d,e.forced),!t&&void 0!==u){if(typeof h==typeof u)continue;a(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),o(c,d,h,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(A){return!0}}},2104:function(e,A,t){var i=t(4374),n=Function.prototype,r=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},4374:function(e,A,t){var i=t(7293);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,A,t){var i=t(4374),n=Function.prototype.call;e.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},6530:function(e,A,t){var i=t(9781),n=t(2597),r=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=n(r,"name"),a=s&&"something"===function(){}.name,l=s&&(!i||i&&o(r,"name").configurable);e.exports={EXISTS:s,PROPER:a,CONFIGURABLE:l}},1702:function(e,A,t){var i=t(4374),n=Function.prototype,r=n.bind,o=n.call,s=i&&r.bind(o,o);e.exports=i?function(e){return e&&s(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},5005:function(e,A,t){var i=t(7854),n=t(614),r=function(e){return n(e)?e:void 0};e.exports=function(e,A){return arguments.length<2?r(i[e]):i[e]&&i[e][A]}},8173:function(e,A,t){var i=t(9662);e.exports=function(e,A){var t=e[A];return null==t?void 0:i(t)}},7854:function(e,A,t){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t.g&&t.g)||function(){return this}()||Function("return this")()},2597:function(e,A,t){var i=t(1702),n=t(7908),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,A){return r(n(e),A)}},3501:function(e){e.exports={}},4664:function(e,A,t){var i=t(9781),n=t(7293),r=t(317);e.exports=!i&&!n((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,A,t){var i=t(7854),n=t(1702),r=t(7293),o=t(4326),s=i.Object,a=n("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a(e,""):s(e)}:s},9587:function(e,A,t){var i=t(614),n=t(111),r=t(7674);e.exports=function(e,A,t){var o,s;return r&&i(o=A.constructor)&&o!==t&&n(s=o.prototype)&&s!==t.prototype&&r(e,s),e}},2788:function(e,A,t){var i=t(1702),n=t(614),r=t(5465),o=i(Function.toString);n(r.inspectSource)||(r.inspectSource=function(e){return o(e)}),e.exports=r.inspectSource},8340:function(e,A,t){var i=t(111),n=t(8880);e.exports=function(e,A){i(A)&&"cause"in A&&n(e,"cause",A.cause)}},9909:function(e,A,t){var i,n,r,o=t(8536),s=t(7854),a=t(1702),l=t(111),c=t(8880),d=t(2597),u=t(5465),h=t(6200),g=t(3501),p="Object already initialized",f=s.TypeError,m=s.WeakMap,B=function(e){return r(e)?n(e):i(e,{})},w=function(e){return function(A){var t;if(!l(A)||(t=n(A)).type!==e)throw f("Incompatible receiver, "+e+" required");return t}};if(o||u.state){var v=u.state||(u.state=new m),y=a(v.get),C=a(v.has),b=a(v.set);i=function(e,A){if(C(v,e))throw new f(p);return A.facade=e,b(v,e,A),A},n=function(e){return y(v,e)||{}},r=function(e){return C(v,e)}}else{var _=h("state");g[_]=!0,i=function(e,A){if(d(e,_))throw new f(p);return A.facade=e,c(e,_,A),A},n=function(e){return d(e,_)?e[_]:{}},r=function(e){return d(e,_)}}e.exports={set:i,get:n,has:r,enforce:B,getterFor:w}},614:function(e){e.exports=function(e){return"function"==typeof e}},4705:function(e,A,t){var i=t(7293),n=t(614),r=/#|\.prototype\./,o=function(e,A){var t=a[s(e)];return t==c||t!=l&&(n(A)?i(A):!!A)},s=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},111:function(e,A,t){var i=t(614);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},1913:function(e){e.exports=!1},2190:function(e,A,t){var i=t(7854),n=t(5005),r=t(614),o=t(7976),s=t(3307),a=i.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var A=n("Symbol");return r(A)&&o(A.prototype,a(e))}},6244:function(e,A,t){var i=t(7466);e.exports=function(e){return i(e.length)}},133:function(e,A,t){var i=t(7392),n=t(7293);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},8536:function(e,A,t){var i=t(7854),n=t(614),r=t(2788),o=i.WeakMap;e.exports=n(o)&&/native code/.test(r(o))},6277:function(e,A,t){var i=t(1340);e.exports=function(e,A){return void 0===e?arguments.length<2?"":A:i(e)}},3070:function(e,A,t){var i=t(7854),n=t(9781),r=t(4664),o=t(3353),s=t(9670),a=t(4948),l=i.TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",g="writable";A.f=n?o?function(e,A,t){if(s(e),A=a(A),s(t),"function"===typeof e&&"prototype"===A&&"value"in t&&g in t&&!t[g]){var i=d(e,A);i&&i[g]&&(e[A]=t.value,t={configurable:h in t?t[h]:i[h],enumerable:u in t?t[u]:i[u],writable:!1})}return c(e,A,t)}:c:function(e,A,t){if(s(e),A=a(A),s(t),r)try{return c(e,A,t)}catch(i){}if("get"in t||"set"in t)throw l("Accessors not supported");return"value"in t&&(e[A]=t.value),e}},1236:function(e,A,t){var i=t(9781),n=t(6916),r=t(5296),o=t(9114),s=t(5656),a=t(4948),l=t(2597),c=t(4664),d=Object.getOwnPropertyDescriptor;A.f=i?d:function(e,A){if(e=s(e),A=a(A),c)try{return d(e,A)}catch(t){}if(l(e,A))return o(!n(r.f,e,A),e[A])}},8006:function(e,A,t){var i=t(6324),n=t(748),r=n.concat("length","prototype");A.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},5181:function(e,A){A.f=Object.getOwnPropertySymbols},7976:function(e,A,t){var i=t(1702);e.exports=i({}.isPrototypeOf)},6324:function(e,A,t){var i=t(1702),n=t(2597),r=t(5656),o=t(1318).indexOf,s=t(3501),a=i([].push);e.exports=function(e,A){var t,i=r(e),l=0,c=[];for(t in i)!n(s,t)&&n(i,t)&&a(c,t);while(A.length>l)n(i,t=A[l++])&&(~o(c,t)||a(c,t));return c}},5296:function(e,A){"use strict";var t={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!t.call({1:2},1);A.f=n?function(e){var A=i(this,e);return!!A&&A.enumerable}:t},7674:function(e,A,t){var i=t(1702),n=t(9670),r=t(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,A=!1,t={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(t,[]),A=t instanceof Array}catch(o){}return function(t,i){return n(t),r(i),A?e(t,i):t.__proto__=i,t}}():void 0)},2140:function(e,A,t){var i=t(7854),n=t(6916),r=t(614),o=t(111),s=i.TypeError;e.exports=function(e,A){var t,i;if("string"===A&&r(t=e.toString)&&!o(i=n(t,e)))return i;if(r(t=e.valueOf)&&!o(i=n(t,e)))return i;if("string"!==A&&r(t=e.toString)&&!o(i=n(t,e)))return i;throw s("Can't convert object to primitive value")}},3887:function(e,A,t){var i=t(5005),n=t(1702),r=t(8006),o=t(5181),s=t(9670),a=n([].concat);e.exports=i("Reflect","ownKeys")||function(e){var A=r.f(s(e)),t=o.f;return t?a(A,t(e)):A}},1320:function(e,A,t){var i=t(7854),n=t(614),r=t(2597),o=t(8880),s=t(3505),a=t(2788),l=t(9909),c=t(6530).CONFIGURABLE,d=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,A,t,a){var l,d=!!a&&!!a.unsafe,g=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:A;n(t)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!r(t,"name")||c&&t.name!==f)&&o(t,"name",f),l=u(t),l.source||(l.source=h.join("string"==typeof f?f:""))),e!==i?(d?!p&&e[A]&&(g=!0):delete e[A],g?e[A]=t:o(e,A,t)):g?e[A]=t:s(A,t)})(Function.prototype,"toString",(function(){return n(this)&&d(this).source||a(this)}))},4488:function(e,A,t){var i=t(7854),n=i.TypeError;e.exports=function(e){if(void 0==e)throw n("Can't call method on "+e);return e}},3505:function(e,A,t){var i=t(7854),n=Object.defineProperty;e.exports=function(e,A){try{n(i,e,{value:A,configurable:!0,writable:!0})}catch(t){i[e]=A}return A}},6200:function(e,A,t){var i=t(2309),n=t(9711),r=i("keys");e.exports=function(e){return r[e]||(r[e]=n(e))}},5465:function(e,A,t){var i=t(7854),n=t(3505),r="__core-js_shared__",o=i[r]||n(r,{});e.exports=o},2309:function(e,A,t){var i=t(1913),n=t(5465);(e.exports=function(e,A){return n[e]||(n[e]=void 0!==A?A:{})})("versions",[]).push({version:"3.21.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(e,A,t){var i=t(9303),n=Math.max,r=Math.min;e.exports=function(e,A){var t=i(e);return t<0?n(t+A,0):r(t,A)}},5656:function(e,A,t){var i=t(8361),n=t(4488);e.exports=function(e){return i(n(e))}},9303:function(e){var A=Math.ceil,t=Math.floor;e.exports=function(e){var i=+e;return i!==i||0===i?0:(i>0?t:A)(i)}},7466:function(e,A,t){var i=t(9303),n=Math.min;e.exports=function(e){return e>0?n(i(e),9007199254740991):0}},7908:function(e,A,t){var i=t(7854),n=t(4488),r=i.Object;e.exports=function(e){return r(n(e))}},7593:function(e,A,t){var i=t(7854),n=t(6916),r=t(111),o=t(2190),s=t(8173),a=t(2140),l=t(5112),c=i.TypeError,d=l("toPrimitive");e.exports=function(e,A){if(!r(e)||o(e))return e;var t,i=s(e,d);if(i){if(void 0===A&&(A="default"),t=n(i,e,A),!r(t)||o(t))return t;throw c("Can't convert object to primitive value")}return void 0===A&&(A="number"),a(e,A)}},4948:function(e,A,t){var i=t(7593),n=t(2190);e.exports=function(e){var A=i(e,"string");return n(A)?A:A+""}},1694:function(e,A,t){var i=t(5112),n=i("toStringTag"),r={};r[n]="z",e.exports="[object z]"===String(r)},1340:function(e,A,t){var i=t(7854),n=t(648),r=i.String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},6330:function(e,A,t){var i=t(7854),n=i.String;e.exports=function(e){try{return n(e)}catch(A){return"Object"}}},9711:function(e,A,t){var i=t(1702),n=0,r=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+r,36)}},3307:function(e,A,t){var i=t(133);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,A,t){var i=t(9781),n=t(7293);e.exports=i&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(e,A,t){var i=t(7854),n=t(2309),r=t(2597),o=t(9711),s=t(133),a=t(3307),l=n("wks"),c=i.Symbol,d=c&&c["for"],u=a?c:c&&c.withoutSetter||o;e.exports=function(e){if(!r(l,e)||!s&&"string"!=typeof l[e]){var A="Symbol."+e;s&&r(c,e)?l[e]=c[e]:l[e]=a&&d?d(A):u(A)}return l[e]}},9191:function(e,A,t){"use strict";var i=t(5005),n=t(2597),r=t(8880),o=t(7976),s=t(7674),a=t(9920),l=t(9587),c=t(6277),d=t(8340),u=t(7741),h=t(2914),g=t(1913);e.exports=function(e,A,t,p){var f=p?2:1,m=e.split("."),B=m[m.length-1],w=i.apply(null,m);if(w){var v=w.prototype;if(!g&&n(v,"cause")&&delete v.cause,!t)return w;var y=i("Error"),C=A((function(e,A){var t=c(p?A:e,void 0),i=p?new w(e):new w;return void 0!==t&&r(i,"message",t),h&&r(i,"stack",u(i.stack,2)),this&&o(v,this)&&l(i,this,C),arguments.length>f&&d(i,arguments[f]),i}));if(C.prototype=v,"Error"!==B&&(s?s(C,y):a(C,y,{name:!0})),a(C,w),!g)try{v.name!==B&&r(v,"name",B),v.constructor=C}catch(b){}return C}}},1703:function(e,A,t){var i=t(2109),n=t(7854),r=t(2104),o=t(9191),s="WebAssembly",a=n[s],l=7!==Error("e",{cause:7}).cause,c=function(e,A){var t={};t[e]=o(e,A,l),i({global:!0,forced:l},t)},d=function(e,A){if(a&&a[e]){var t={};t[e]=o(s+"."+e,A,l),i({target:s,stat:!0,forced:l},t)}};c("Error",(function(e){return function(A){return r(e,this,arguments)}})),c("EvalError",(function(e){return function(A){return r(e,this,arguments)}})),c("RangeError",(function(e){return function(A){return r(e,this,arguments)}})),c("ReferenceError",(function(e){return function(A){return r(e,this,arguments)}})),c("SyntaxError",(function(e){return function(A){return r(e,this,arguments)}})),c("TypeError",(function(e){return function(A){return r(e,this,arguments)}})),c("URIError",(function(e){return function(A){return r(e,this,arguments)}})),d("CompileError",(function(e){return function(A){return r(e,this,arguments)}})),d("LinkError",(function(e){return function(A){return r(e,this,arguments)}})),d("RuntimeError",(function(e){return function(A){return r(e,this,arguments)}}))},6095:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-chrome{background:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.3);box-sizing:initial;width:225px;font-family:Menlo;background-color:#fff}.vc-chrome-controls{display:flex}.vc-chrome-color-wrap{position:relative;width:36px}.vc-chrome-active-color{position:relative;width:30px;height:30px;border-radius:15px;overflow:hidden;z-index:1}.vc-chrome-color-wrap .vc-checkerboard{width:30px;height:30px;border-radius:15px;background-size:auto}.vc-chrome-sliders{flex:1}.vc-chrome-fields-wrap{display:flex;padding-top:16px}.vc-chrome-fields{display:flex;margin-left:-6px;flex:1}.vc-chrome-field{padding-left:6px;width:100%}.vc-chrome-toggle-btn{width:32px;text-align:right;position:relative}.vc-chrome-toggle-icon{margin-right:-4px;margin-top:12px;cursor:pointer;position:relative;z-index:2}.vc-chrome-toggle-icon-highlight{position:absolute;width:24px;height:28px;background:#eee;border-radius:4px;top:10px;left:12px}.vc-chrome-hue-wrap{margin-bottom:8px}.vc-chrome-alpha-wrap,.vc-chrome-hue-wrap{position:relative;height:10px}.vc-chrome-alpha-wrap .vc-alpha-gradient,.vc-chrome-hue-wrap .vc-hue{border-radius:2px}.vc-chrome-alpha-wrap .vc-alpha-picker,.vc-chrome-hue-wrap .vc-hue-picker{width:12px;height:12px;border-radius:6px;transform:translate(-6px,-2px);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,.37)}.vc-chrome-body{padding:16px 16px 12px;background-color:#fff}.vc-chrome-saturation-wrap{width:100%;padding-bottom:55%;position:relative;border-radius:2px 2px 0 0;overflow:hidden}.vc-chrome-saturation-wrap .vc-saturation-circle{width:12px;height:12px}.vc-chrome-fields .vc-input__input{font-size:11px;color:#333;width:100%;border-radius:2px;border:none;box-shadow:inset 0 0 0 1px #dadada;height:21px;text-align:center}.vc-chrome-fields .vc-input__label{text-transform:uppercase;font-size:11px;line-height:11px;color:#969696;text-align:center;display:block;margin-top:12px}.vc-chrome__disable-alpha .vc-chrome-active-color{width:18px;height:18px}.vc-chrome__disable-alpha .vc-chrome-color-wrap{width:30px}.vc-chrome__disable-alpha .vc-chrome-hue-wrap{margin-top:4px;margin-bottom:4px}",""]),A["default"]=s},6047:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-compact{padding-top:5px;padding-left:5px;width:245px;border-radius:2px;box-sizing:border-box;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16);background-color:#fff}.vc-compact-colors{overflow:hidden;padding:0;margin:0}.vc-compact-color-item{list-style:none;width:15px;height:15px;float:left;margin-right:5px;margin-bottom:5px;position:relative;cursor:pointer}.vc-compact-color-item--white{box-shadow:inset 0 0 0 1px #ddd}.vc-compact-color-item--white .vc-compact-dot{background:#000}.vc-compact-dot{position:absolute;top:5px;right:5px;bottom:5px;left:5px;border-radius:50%;opacity:1;background:#fff}",""]),A["default"]=s},9481:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-grayscale{width:125px;border-radius:2px;box-shadow:0 2px 15px rgba(0,0,0,.12),0 2px 10px rgba(0,0,0,.16);background-color:#fff}.vc-grayscale-colors{border-radius:2px;overflow:hidden;padding:0;margin:0}.vc-grayscale-color-item{list-style:none;width:25px;height:25px;float:left;position:relative;cursor:pointer}.vc-grayscale-color-item--white .vc-grayscale-dot{background:#000}.vc-grayscale-dot{position:absolute;top:50%;left:50%;width:6px;height:6px;margin:-3px 0 0 -2px;border-radius:50%;opacity:1;background:#fff}",""]),A["default"]=s},5186:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-material{width:98px;height:98px;padding:16px;font-family:Roboto;position:relative;border-radius:2px;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16);background-color:#fff}.vc-material .vc-input__input{width:100%;margin-top:12px;font-size:15px;color:#333;height:30px}.vc-material .vc-input__label{position:absolute;top:0;left:0;font-size:11px;color:#999;text-transform:capitalize}.vc-material-hex{border-bottom-width:2px;border-bottom-style:solid}.vc-material-split{display:flex;margin-right:-10px;padding-top:11px}.vc-material-third{flex:1;padding-right:10px}",""]),A["default"]=s},3695:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,'.vc-photoshop{background:#dcdcdc;border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.25),0 8px 16px rgba(0,0,0,.15);box-sizing:initial;width:513px;font-family:Roboto}.vc-photoshop__disable-fields{width:390px}.vc-ps-head{background-image:linear-gradient(-180deg,#f0f0f0,#d4d4d4);border-bottom:1px solid #b1b1b1;box-shadow:inset 0 1px 0 0 hsla(0,0%,100%,.2),inset 0 -1px 0 0 rgba(0,0,0,.02);height:23px;line-height:24px;border-radius:4px 4px 0 0;font-size:13px;color:#4d4d4d;text-align:center}.vc-ps-body{padding:15px;display:flex}.vc-ps-saturation-wrap{width:256px;height:256px;position:relative;border:2px solid #b3b3b3;border-bottom:2px solid #f0f0f0;overflow:hidden}.vc-ps-saturation-wrap .vc-saturation-circle{width:12px;height:12px}.vc-ps-hue-wrap{height:256px;width:19px;margin-left:10px;border:2px solid #b3b3b3;border-bottom:2px solid #f0f0f0}.vc-ps-hue-pointer,.vc-ps-hue-wrap{position:relative}.vc-ps-hue-pointer--left,.vc-ps-hue-pointer--right{position:absolute;width:0;height:0;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent #555}.vc-ps-hue-pointer--left:after,.vc-ps-hue-pointer--right:after{content:"";width:0;height:0;border-style:solid;border-width:4px 0 4px 6px;border-color:transparent transparent transparent #fff;position:absolute;top:1px;left:1px;transform:translate(-8px,-5px)}.vc-ps-hue-pointer--left{transform:translate(-13px,-4px)}.vc-ps-hue-pointer--right{transform:translate(20px,-4px) rotate(180deg)}.vc-ps-controls{width:180px;margin-left:10px;display:flex}.vc-ps-controls__disable-fields{width:auto}.vc-ps-actions{margin-left:20px;flex:1}.vc-ps-ac-btn{cursor:pointer;background-image:linear-gradient(-180deg,#fff,#e6e6e6);border:1px solid #878787;border-radius:2px;height:20px;box-shadow:0 1px 0 0 #eaeaea;font-size:14px;color:#000;line-height:20px;text-align:center;margin-bottom:10px}.vc-ps-previews{width:60px}.vc-ps-previews__swatches{border:1px solid #b3b3b3;border-bottom:1px solid #f0f0f0;margin-bottom:2px;margin-top:1px}.vc-ps-previews__pr-color{height:34px;box-shadow:inset 1px 0 0 #000,inset -1px 0 0 #000,inset 0 1px 0 #000}.vc-ps-previews__label{font-size:14px;color:#000;text-align:center}.vc-ps-fields{padding-top:5px;padding-bottom:9px;width:80px;position:relative}.vc-ps-fields .vc-input__input{margin-left:40%;width:40%;height:18px;border:1px solid #888;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),0 1px 0 0 #ececec;margin-bottom:5px;font-size:13px;padding-left:3px;margin-right:10px}.vc-ps-fields .vc-input__desc,.vc-ps-fields .vc-input__label{top:0;text-transform:uppercase;font-size:13px;height:18px;line-height:22px;position:absolute}.vc-ps-fields .vc-input__label{left:0;width:34px}.vc-ps-fields .vc-input__desc{right:0;width:0}.vc-ps-fields__divider{height:5px}.vc-ps-fields__hex .vc-input__input{margin-left:20%;width:80%;height:18px;border:1px solid #888;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),0 1px 0 0 #ececec;margin-bottom:6px;font-size:13px;padding-left:3px}.vc-ps-fields__hex .vc-input__label{position:absolute;top:0;left:0;width:14px;text-transform:uppercase;font-size:13px;height:18px;line-height:22px}',""]),A["default"]=s},1380:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-botton-container{display:flex;justify-content:end;padding-bottom:10px;font-size:12px}.vc-botton-right{cursor:pointer;margin-left:10px;padding:5px 5px;border:1px solid #dcdfe6;border-radius:5px;color:#606266}.vc-botton-right:hover{color:#409eff;border:1px solid #409eff}.vc-botton-left{cursor:pointer;padding:5px 5px;color:#409eff}.vc-sketch{position:relative;width:200px;padding:10px 10px 0;box-sizing:initial;background:#fff;border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.15),0 8px 16px rgba(0,0,0,.15)}.vc-sketch-saturation-wrap{width:100%;padding-bottom:75%;position:relative;overflow:hidden}.vc-sketch-controls{display:flex}.vc-sketch-sliders{padding:4px 0;flex:1}.vc-sketch-sliders .vc-alpha-gradient,.vc-sketch-sliders .vc-hue{border-radius:2px}.vc-sketch-alpha-wrap,.vc-sketch-hue-wrap{position:relative;height:10px}.vc-sketch-alpha-wrap{margin-top:4px;overflow:hidden}.vc-sketch-color-wrap{width:24px;height:24px;position:relative;margin-top:4px;margin-left:4px;border-radius:3px}.vc-sketch-active-color{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),inset 0 0 4px rgba(0,0,0,.25);z-index:2}.vc-sketch-color-wrap .vc-checkerboard{background-size:auto}.vc-sketch-field{display:flex;padding-top:4px}.vc-sketch-field .vc-input__input{width:90%;padding:4px 0 3px 10%;border:none;box-shadow:inset 0 0 0 1px #ccc;font-size:10px}.vc-sketch-field .vc-input__label{display:block;text-align:center;font-size:11px;color:#222;padding-top:3px;padding-bottom:4px;text-transform:capitalize}.vc-sketch-field--single{flex:1;padding-left:6px}.vc-sketch-field--double{flex:2}.vc-sketch-presets{margin-right:-10px;margin-left:-10px;padding-left:10px;padding-top:10px;border-top:1px solid #eee}.vc-sketch-presets-color{overflow:hidden;position:relative;display:inline-block;margin:0 10px 10px 0;vertical-align:top;cursor:pointer;width:16px;height:16px}.vc-sketch-presets-color,.vc-sketch-presets-color .vc-checkerboard{border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.vc-sketch__disable-alpha .vc-sketch-color-wrap{height:10px}",""]),A["default"]=s},6278:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-slider{position:relative;width:410px}.vc-slider-hue-warp{height:12px;position:relative}.vc-slider-hue-warp .vc-hue-picker{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,.37)}.vc-slider-swatches{display:flex;margin-top:20px}.vc-slider-swatch{margin-right:1px;flex:1;width:20%}.vc-slider-swatch:first-child{margin-right:1px}.vc-slider-swatch:first-child .vc-slider-swatch-picker{border-radius:2px 0 0 2px}.vc-slider-swatch:last-child{margin-right:0}.vc-slider-swatch:last-child .vc-slider-swatch-picker{border-radius:0 2px 2px 0}.vc-slider-swatch-picker{cursor:pointer;height:12px}.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active{transform:scaleY(1.8);border-radius:3.6px/2px}.vc-slider-swatch-picker--white{box-shadow:inset 0 0 0 1px #ddd}.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white{box-shadow:inset 0 0 0 .6px #ddd}",""]),A["default"]=s},3468:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-swatches{width:320px;height:240px;overflow-y:scroll;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16)}.vc-swatches-box{padding:16px 0 6px 16px;overflow:hidden}.vc-swatches-color-group{padding-bottom:10px;width:40px;float:left;margin-right:10px}.vc-swatches-color-it{box-sizing:border-box;width:40px;height:24px;cursor:pointer;background:#880e4f;margin-bottom:1px;overflow:hidden;border-radius:2px 2px 0 0}.vc-swatches-color--white{border:1px solid #ddd}.vc-swatches-pick{fill:#fff;margin-left:8px;display:block}.vc-swatches-color--white .vc-swatches-pick{fill:#333}",""]),A["default"]=s},5689:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-twitter{background:#fff;border:0 solid rgba(0,0,0,.25);box-shadow:0 1px 4px rgba(0,0,0,.25);border-radius:4px;position:relative}.vc-twitter-triangle{border-color:transparent transparent #fff transparent}.vc-twitter-triangle,.vc-twitter-triangle-shadow{width:0;height:0;border-style:solid;border-width:0 9px 10px 9px;position:absolute}.vc-twitter-triangle-shadow{border-color:transparent transparent rgba(0,0,0,.1) transparent}.vc-twitter-body{padding:15px 9px 9px 15px}.vc-twitter .vc-editable-input{position:relative}.vc-twitter .vc-editable-input input{width:100px;font-size:14px;color:#666;border:0;outline:none;height:28px;box-shadow:inset 0 0 0 1px #f0f0f0;box-sizing:content-box;border-radius:0 4px 4px 0;float:left;padding:1px;padding-left:8px}.vc-twitter .vc-editable-input span{display:none}.vc-twitter-hash{background:#f0f0f0;height:30px;width:30px;border-radius:4px 0 0 4px;float:left;color:#98a1a4;display:flex;align-items:center;justify-content:center}.vc-twitter-swatch{width:30px;height:30px;float:left;border-radius:4px;margin:0 6px 6px 0;cursor:pointer;position:relative;outline:none}.vc-twitter-clear{clear:both}.vc-twitter-hide-triangle .vc-twitter-triangle,.vc-twitter-hide-triangle .vc-twitter-triangle-shadow{display:none}.vc-twitter-top-left-triangle .vc-twitter-triangle{top:-10px;left:12px}.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{top:-11px;left:12px}.vc-twitter-top-right-triangle .vc-twitter-triangle{top:-10px;right:12px}.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{top:-11px;right:12px}",""]),A["default"]=s},2410:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-alpha,.vc-alpha-checkboard-wrap{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-checkboard-wrap{overflow:hidden}.vc-alpha-gradient{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-container{cursor:pointer;position:relative;z-index:2;height:100%;margin:0 3px}.vc-alpha-pointer{z-index:2;position:absolute}.vc-alpha-picker{cursor:pointer;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;margin-top:1px;transform:translateX(-2px)}",""]),A["default"]=s},3142:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-checkerboard{position:absolute;top:0;right:0;bottom:0;left:0;background-size:contain}",""]),A["default"]=s},7953:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-editable-input{position:relative}.vc-input__input{padding:0;border:0;outline:none}.vc-input__label{text-transform:capitalize}",""]),A["default"]=s},3097:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-hue{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;margin:0 2px;position:relative;height:100%}.vc-hue-pointer{z-index:2;position:absolute}.vc-hue-picker{cursor:pointer;margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;transform:translateX(-2px)}",""]),A["default"]=s},4339:function(e,A,t){"use strict";t.r(A);var i=t(8081),n=t.n(i),r=t(3645),o=t.n(r),s=o()(n());s.push([e.id,".vc-saturation,.vc-saturation--black,.vc-saturation--white{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0}.vc-saturation--white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation--black{background:linear-gradient(0deg,#000,transparent)}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px,-2px)}",""]),A["default"]=s},3645:function(e){"use strict";e.exports=function(e){var A=[];return A.toString=function(){return this.map((function(A){var t="",i="undefined"!==typeof A[5];return A[4]&&(t+="@supports (".concat(A[4],") {")),A[2]&&(t+="@media ".concat(A[2]," {")),i&&(t+="@layer".concat(A[5].length>0?" ".concat(A[5]):""," {")),t+=e(A),i&&(t+="}"),A[2]&&(t+="}"),A[4]&&(t+="}"),t})).join("")},A.i=function(e,t,i,n,r){"string"===typeof e&&(e=[[null,e,void 0]]);var o={};if(i)for(var s=0;s<this.length;s++){var a=this[s][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);i&&o[c[0]]||("undefined"!==typeof r&&("undefined"===typeof c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=r),t&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=t):c[2]=t),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),A.push(c))}},A}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},9428:function(e){function A(e,A,t){return A<t?e<A?A:e>t?t:e:e<t?t:e>A?A:e}e.exports=A},9016:function(e,A,t){var i=t(9159),n=i.Symbol;e.exports=n},6423:function(e,A,t){var i=t(9016),n=t(2366),r=t(2886),o="[object Null]",s="[object Undefined]",a=i?i.toStringTag:void 0;function l(e){return null==e?void 0===e?s:o:a&&a in Object(e)?n(e):r(e)}e.exports=l},6009:function(e,A,t){var i=t(1626),n=/^\s+/;function r(e){return e?e.slice(0,i(e)+1).replace(n,""):e}e.exports=r},791:function(e,A,t){var i="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;e.exports=i},2366:function(e,A,t){var i=t(9016),n=Object.prototype,r=n.hasOwnProperty,o=n.toString,s=i?i.toStringTag:void 0;function a(e){var A=r.call(e,s),t=e[s];try{e[s]=void 0;var i=!0}catch(a){}var n=o.call(e);return i&&(A?e[s]=t:delete e[s]),n}e.exports=a},2886:function(e){var A=Object.prototype,t=A.toString;function i(e){return t.call(e)}e.exports=i},9159:function(e,A,t){var i=t(791),n="object"==typeof self&&self&&self.Object===Object&&self,r=i||n||Function("return this")();e.exports=r},1626:function(e){var A=/\s/;function t(e){var t=e.length;while(t--&&A.test(e.charAt(t)));return t}e.exports=t},3738:function(e,A,t){t(1703);var i=t(150),n=t(657),r=t(2012),o="Expected a function",s=Math.max,a=Math.min;function l(e,A,t){var l,c,d,u,h,g,p=0,f=!1,m=!1,B=!0;if("function"!=typeof e)throw new TypeError(o);function w(A){var t=l,i=c;return l=c=void 0,p=A,u=e.apply(i,t),u}function v(e){return p=e,h=setTimeout(b,A),f?w(e):u}function y(e){var t=e-g,i=e-p,n=A-t;return m?a(n,d-i):n}function C(e){var t=e-g,i=e-p;return void 0===g||t>=A||t<0||m&&i>=d}function b(){var e=n();if(C(e))return _(e);h=setTimeout(b,y(e))}function _(e){return h=void 0,B&&l?w(e):(l=c=void 0,u)}function Q(){void 0!==h&&clearTimeout(h),p=0,l=g=c=h=void 0}function U(){return void 0===h?u:_(n())}function F(){var e=n(),t=C(e);if(l=arguments,c=this,g=e,t){if(void 0===h)return v(g);if(m)return clearTimeout(h),h=setTimeout(b,A),w(g)}return void 0===h&&(h=setTimeout(b,A)),u}return A=r(A)||0,i(t)&&(f=!!t.leading,m="maxWait"in t,d=m?s(r(t.maxWait)||0,A):d,B="trailing"in t?!!t.trailing:B),F.cancel=Q,F.flush=U,F}e.exports=l},150:function(e){function A(e){var A=typeof e;return null!=e&&("object"==A||"function"==A)}e.exports=A},4430:function(e){function A(e){return null!=e&&"object"==typeof e}e.exports=A},7691:function(e,A,t){var i=t(6423),n=t(4430),r="[object Symbol]";function o(e){return"symbol"==typeof e||n(e)&&i(e)==r}e.exports=o},657:function(e,A,t){var i=t(9159),n=function(){return i.Date.now()};e.exports=n},9289:function(e,A,t){t(1703);var i=t(3738),n=t(150),r="Expected a function";function o(e,A,t){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(r);return n(t)&&(o="leading"in t?!!t.leading:o,s="trailing"in t?!!t.trailing:s),i(e,A,{leading:o,maxWait:A,trailing:s})}e.exports=o},2012:function(e,A,t){var i=t(6009),n=t(150),r=t(7691),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function d(e){if("number"==typeof e)return e;if(r(e))return o;if(n(e)){var A="function"==typeof e.valueOf?e.valueOf():e;e=n(A)?A+"":A}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var t=a.test(e);return t||l.test(e)?c(e.slice(2),t?2:8):s.test(e)?o:+e}e.exports=d},7013:function(e,A,t){var i;(function(n){var r=/^\s+/,o=/\s+$/,s=0,a=n.round,l=n.min,c=n.max,d=n.random;function u(e,A){if(e=e||"",A=A||{},e instanceof u)return e;if(!(this instanceof u))return new u(e,A);var t=h(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=a(100*this._a)/100,this._format=A.format||t.format,this._gradientType=A.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=t.ok,this._tc_id=s++}function h(e){var A={r:0,g:0,b:0},t=1,i=null,n=null,r=null,o=!1,s=!1;return"string"==typeof e&&(e=X(e)),"object"==typeof e&&(Y(e.r)&&Y(e.g)&&Y(e.b)?(A=g(e.r,e.g,e.b),o=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Y(e.h)&&Y(e.s)&&Y(e.v)?(i=j(e.s),n=j(e.v),A=B(e.h,i,n),o=!0,s="hsv"):Y(e.h)&&Y(e.s)&&Y(e.l)&&(i=j(e.s),r=j(e.l),A=f(e.h,i,r),o=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=T(t),{ok:o,format:e.format||s,r:l(255,c(A.r,0)),g:l(255,c(A.g,0)),b:l(255,c(A.b,0)),a:t}}function g(e,A,t){return{r:255*N(e,255),g:255*N(A,255),b:255*N(t,255)}}function p(e,A,t){e=N(e,255),A=N(A,255),t=N(t,255);var i,n,r=c(e,A,t),o=l(e,A,t),s=(r+o)/2;if(r==o)i=n=0;else{var a=r-o;switch(n=s>.5?a/(2-r-o):a/(r+o),r){case e:i=(A-t)/a+(A<t?6:0);break;case A:i=(t-e)/a+2;break;case t:i=(e-A)/a+4;break}i/=6}return{h:i,s:n,l:s}}function f(e,A,t){var i,n,r;function o(e,A,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(A-e)*t:t<.5?A:t<2/3?e+(A-e)*(2/3-t)*6:e}if(e=N(e,360),A=N(A,100),t=N(t,100),0===A)i=n=r=t;else{var s=t<.5?t*(1+A):t+A-t*A,a=2*t-s;i=o(a,s,e+1/3),n=o(a,s,e),r=o(a,s,e-1/3)}return{r:255*i,g:255*n,b:255*r}}function m(e,A,t){e=N(e,255),A=N(A,255),t=N(t,255);var i,n,r=c(e,A,t),o=l(e,A,t),s=r,a=r-o;if(n=0===r?0:a/r,r==o)i=0;else{switch(r){case e:i=(A-t)/a+(A<t?6:0);break;case A:i=(t-e)/a+2;break;case t:i=(e-A)/a+4;break}i/=6}return{h:i,s:n,v:s}}function B(e,A,t){e=6*N(e,360),A=N(A,100),t=N(t,100);var i=n.floor(e),r=e-i,o=t*(1-A),s=t*(1-r*A),a=t*(1-(1-r)*A),l=i%6,c=[t,s,o,o,a,t][l],d=[a,t,t,s,o,o][l],u=[o,o,a,t,t,s][l];return{r:255*c,g:255*d,b:255*u}}function w(e,A,t,i){var n=[G(a(e).toString(16)),G(a(A).toString(16)),G(a(t).toString(16))];return i&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function v(e,A,t,i,n){var r=[G(a(e).toString(16)),G(a(A).toString(16)),G(a(t).toString(16)),G(z(i))];return n&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function y(e,A,t,i){var n=[G(z(i)),G(a(e).toString(16)),G(a(A).toString(16)),G(a(t).toString(16))];return n.join("")}function C(e,A){A=0===A?0:A||10;var t=u(e).toHsl();return t.s-=A/100,t.s=K(t.s),u(t)}function b(e,A){A=0===A?0:A||10;var t=u(e).toHsl();return t.s+=A/100,t.s=K(t.s),u(t)}function _(e){return u(e).desaturate(100)}function Q(e,A){A=0===A?0:A||10;var t=u(e).toHsl();return t.l+=A/100,t.l=K(t.l),u(t)}function U(e,A){A=0===A?0:A||10;var t=u(e).toRgb();return t.r=c(0,l(255,t.r-a(-A/100*255))),t.g=c(0,l(255,t.g-a(-A/100*255))),t.b=c(0,l(255,t.b-a(-A/100*255))),u(t)}function F(e,A){A=0===A?0:A||10;var t=u(e).toHsl();return t.l-=A/100,t.l=K(t.l),u(t)}function x(e,A){var t=u(e).toHsl(),i=(t.h+A)%360;return t.h=i<0?360+i:i,u(t)}function E(e){var A=u(e).toHsl();return A.h=(A.h+180)%360,u(A)}function k(e){var A=u(e).toHsl(),t=A.h;return[u(e),u({h:(t+120)%360,s:A.s,l:A.l}),u({h:(t+240)%360,s:A.s,l:A.l})]}function I(e){var A=u(e).toHsl(),t=A.h;return[u(e),u({h:(t+90)%360,s:A.s,l:A.l}),u({h:(t+180)%360,s:A.s,l:A.l}),u({h:(t+270)%360,s:A.s,l:A.l})]}function S(e){var A=u(e).toHsl(),t=A.h;return[u(e),u({h:(t+72)%360,s:A.s,l:A.l}),u({h:(t+216)%360,s:A.s,l:A.l})]}function D(e,A,t){A=A||6,t=t||30;var i=u(e).toHsl(),n=360/t,r=[u(e)];for(i.h=(i.h-(n*A>>1)+720)%360;--A;)i.h=(i.h+n)%360,r.push(u(i));return r}function H(e,A){A=A||6;var t=u(e).toHsv(),i=t.h,n=t.s,r=t.v,o=[],s=1/A;while(A--)o.push(u({h:i,s:n,v:r})),r=(r+s)%1;return o}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,A,t,i,r,o,s=this.toRgb();return e=s.r/255,A=s.g/255,t=s.b/255,i=e<=.03928?e/12.92:n.pow((e+.055)/1.055,2.4),r=A<=.03928?A/12.92:n.pow((A+.055)/1.055,2.4),o=t<=.03928?t/12.92:n.pow((t+.055)/1.055,2.4),.2126*i+.7152*r+.0722*o},setAlpha:function(e){return this._a=T(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),A=a(360*e.h),t=a(100*e.s),i=a(100*e.v);return 1==this._a?"hsv("+A+", "+t+"%, "+i+"%)":"hsva("+A+", "+t+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),A=a(360*e.h),t=a(100*e.s),i=a(100*e.l);return 1==this._a?"hsl("+A+", "+t+"%, "+i+"%)":"hsla("+A+", "+t+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return w(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return v(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*N(this._r,255))+"%",g:a(100*N(this._g,255))+"%",b:a(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*N(this._r,255))+"%, "+a(100*N(this._g,255))+"%, "+a(100*N(this._b,255))+"%)":"rgba("+a(100*N(this._r,255))+"%, "+a(100*N(this._g,255))+"%, "+a(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(O[w(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var A="#"+y(this._r,this._g,this._b,this._a),t=A,i=this._gradientType?"GradientType = 1, ":"";if(e){var n=u(e);t="#"+y(n._r,n._g,n._b,n._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+A+",endColorstr="+t+")"},toString:function(e){var A=!!e;e=e||this._format;var t=!1,i=this._a<1&&this._a>=0,n=!A&&i&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return n?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(e,A){var t=e.apply(null,[this].concat([].slice.call(A)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(Q,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(F,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,A){return e.apply(null,[this].concat([].slice.call(A)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},u.fromRatio=function(e,A){if("object"==typeof e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]="a"===i?e[i]:j(e[i]));e=t}return u(e,A)},u.equals=function(e,A){return!(!e||!A)&&u(e).toRgbString()==u(A).toRgbString()},u.random=function(){return u.fromRatio({r:d(),g:d(),b:d()})},u.mix=function(e,A,t){t=0===t?0:t||50;var i=u(e).toRgb(),n=u(A).toRgb(),r=t/100,o={r:(n.r-i.r)*r+i.r,g:(n.g-i.g)*r+i.g,b:(n.b-i.b)*r+i.b,a:(n.a-i.a)*r+i.a};return u(o)},u.readability=function(e,A){var t=u(e),i=u(A);return(n.max(t.getLuminance(),i.getLuminance())+.05)/(n.min(t.getLuminance(),i.getLuminance())+.05)},u.isReadable=function(e,A,t){var i,n,r=u.readability(e,A);switch(n=!1,i=J(t),i.level+i.size){case"AAsmall":case"AAAlarge":n=r>=4.5;break;case"AAlarge":n=r>=3;break;case"AAAsmall":n=r>=7;break}return n},u.mostReadable=function(e,A,t){var i,n,r,o,s=null,a=0;t=t||{},n=t.includeFallbackColors,r=t.level,o=t.size;for(var l=0;l<A.length;l++)i=u.readability(e,A[l]),i>a&&(a=i,s=u(A[l]));return u.isReadable(e,s,{level:r,size:o})||!n?s:(t.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],t))};var L=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=M(L);function M(e){var A={};for(var t in e)e.hasOwnProperty(t)&&(A[e[t]]=t);return A}function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,A){R(e)&&(e="100%");var t=V(e);return e=l(A,c(0,parseFloat(e))),t&&(e=parseInt(e*A,10)/100),n.abs(e-A)<1e-6?1:e%A/parseFloat(A)}function K(e){return l(1,c(0,e))}function P(e){return parseInt(e,16)}function R(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function V(e){return"string"===typeof e&&-1!=e.indexOf("%")}function G(e){return 1==e.length?"0"+e:""+e}function j(e){return e<=1&&(e=100*e+"%"),e}function z(e){return n.round(255*parseFloat(e)).toString(16)}function Z(e){return P(e)/255}var W=function(){var e="[-\\+]?\\d+%?",A="[-\\+]?\\d*\\.\\d+%?",t="(?:"+A+")|(?:"+e+")",i="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Y(e){return!!W.CSS_UNIT.exec(e)}function X(e){e=e.replace(r,"").replace(o,"").toLowerCase();var A,t=!1;if(L[e])e=L[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(A=W.rgb.exec(e))?{r:A[1],g:A[2],b:A[3]}:(A=W.rgba.exec(e))?{r:A[1],g:A[2],b:A[3],a:A[4]}:(A=W.hsl.exec(e))?{h:A[1],s:A[2],l:A[3]}:(A=W.hsla.exec(e))?{h:A[1],s:A[2],l:A[3],a:A[4]}:(A=W.hsv.exec(e))?{h:A[1],s:A[2],v:A[3]}:(A=W.hsva.exec(e))?{h:A[1],s:A[2],v:A[3],a:A[4]}:(A=W.hex8.exec(e))?{r:P(A[1]),g:P(A[2]),b:P(A[3]),a:Z(A[4]),format:t?"name":"hex8"}:(A=W.hex6.exec(e))?{r:P(A[1]),g:P(A[2]),b:P(A[3]),format:t?"name":"hex"}:(A=W.hex4.exec(e))?{r:P(A[1]+""+A[1]),g:P(A[2]+""+A[2]),b:P(A[3]+""+A[3]),a:Z(A[4]+""+A[4]),format:t?"name":"hex8"}:!!(A=W.hex3.exec(e))&&{r:P(A[1]+""+A[1]),g:P(A[2]+""+A[2]),b:P(A[3]+""+A[3]),format:t?"name":"hex"}}function J(e){var A,t;return e=e||{level:"AA",size:"small"},A=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),"AA"!==A&&"AAA"!==A&&(A="AA"),"small"!==t&&"large"!==t&&(t="small"),{level:A,size:t}}e.exports?e.exports=u:(i=function(){return u}.call(A,t,A,e),void 0===i||(e.exports=i))})(Math)},89:function(e,A){"use strict";A.Z=(e,A)=>{const t=e.__vccOpts||e;for(const[i,n]of A)t[i]=n;return t}},3647:function(e,A,t){var i=t(6095);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("29397b9c",i,!0,{sourceMap:!1,shadowMode:!1})},325:function(e,A,t){var i=t(6047);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("479d8be0",i,!0,{sourceMap:!1,shadowMode:!1})},5208:function(e,A,t){var i=t(9481);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("1e383f72",i,!0,{sourceMap:!1,shadowMode:!1})},1425:function(e,A,t){var i=t(5186);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("3855edf0",i,!0,{sourceMap:!1,shadowMode:!1})},1902:function(e,A,t){var i=t(3695);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("2f73e1a8",i,!0,{sourceMap:!1,shadowMode:!1})},3439:function(e,A,t){var i=t(1380);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("070aa0ef",i,!0,{sourceMap:!1,shadowMode:!1})},8016:function(e,A,t){var i=t(6278);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("8bcdd408",i,!0,{sourceMap:!1,shadowMode:!1})},193:function(e,A,t){var i=t(3468);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("17a63672",i,!0,{sourceMap:!1,shadowMode:!1})},1113:function(e,A,t){var i=t(5689);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("39c50172",i,!0,{sourceMap:!1,shadowMode:!1})},6320:function(e,A,t){var i=t(2410);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("5c6f2742",i,!0,{sourceMap:!1,shadowMode:!1})},3205:function(e,A,t){var i=t(3142);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("90803b82",i,!0,{sourceMap:!1,shadowMode:!1})},1979:function(e,A,t){var i=t(7953);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("418ed5a2",i,!0,{sourceMap:!1,shadowMode:!1})},6547:function(e,A,t){var i=t(3097);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("1f7c089b",i,!0,{sourceMap:!1,shadowMode:!1})},5233:function(e,A,t){var i=t(4339);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=t(7037).Z;n("491ed8fe",i,!0,{sourceMap:!1,shadowMode:!1})},7037:function(e,A,t){"use strict";function i(e,A){for(var t=[],i={},n=0;n<A.length;n++){var r=A[n],o=r[0],s=r[1],a=r[2],l=r[3],c={id:e+":"+n,css:s,media:a,sourceMap:l};i[o]?i[o].parts.push(c):t.push(i[o]={id:o,parts:[c]})}return t}t.d(A,{Z:function(){return g}});var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,a=0,l=!1,c=function(){},d=null,u="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(e,A,t,n){l=t,d=n||{};var o=i(e,A);return p(o),function(A){for(var t=[],n=0;n<o.length;n++){var s=o[n],a=r[s.id];a.refs--,t.push(a)}A?(o=i(e,A),p(o)):o=[];for(n=0;n<t.length;n++){a=t[n];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete r[a.id]}}}}function p(e){for(var A=0;A<e.length;A++){var t=e[A],i=r[t.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](t.parts[n]);for(;n<t.parts.length;n++)i.parts.push(m(t.parts[n]));i.parts.length>t.parts.length&&(i.parts.length=t.parts.length)}else{var o=[];for(n=0;n<t.parts.length;n++)o.push(m(t.parts[n]));r[t.id]={id:t.id,refs:1,parts:o}}}}function f(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function m(e){var A,t,i=document.querySelector("style["+u+'~="'+e.id+'"]');if(i){if(l)return c;i.parentNode.removeChild(i)}if(h){var n=a++;i=s||(s=f()),A=w.bind(null,i,n,!1),t=w.bind(null,i,n,!0)}else i=f(),A=v.bind(null,i),t=function(){i.parentNode.removeChild(i)};return A(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;A(e=i)}else t()}}var B=function(){var e=[];return function(A,t){return e[A]=t,e.filter(Boolean).join("\n")}}();function w(e,A,t,i){var n=t?"":i.css;if(e.styleSheet)e.styleSheet.cssText=B(A,n);else{var r=document.createTextNode(n),o=e.childNodes;o[A]&&e.removeChild(o[A]),o.length?e.insertBefore(r,o[A]):e.appendChild(r)}}function v(e,A){var t=A.css,i=A.media,n=A.sourceMap;if(i&&e.setAttribute("media",i),d.ssrId&&e.setAttribute(u,A.id),n&&(t+="\n/*# sourceURL="+n.sources[0]+" */",t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),e.styleSheet)e.styleSheet.cssText=t;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return A[e](r,r.exports,n),r.exports}!function(){n.n=function(e){var A=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(A,{a:A}),A}}(),function(){n.d=function(e,A){for(var t in A)n.o(A,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:A[t]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,A){return Object.prototype.hasOwnProperty.call(e,A)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p=""}();var r={};!function(){"use strict";if(n.r(r),n.d(r,{Alpha:function(){return nt},Checkboard:function(){return At},Chrome:function(){return Mt},ColorMixin:function(){return p},Compact:function(){return v},EditableInput:function(){return V},Grayscale:function(){return E},Hue:function(){return ne},Material:function(){return z},Photoshop:function(){return QA},Saturation:function(){return CA},Sketch:function(){return at},Slider:function(){return ae},Swatches:function(){return Ze},Twitter:function(){return Wt},default:function(){return $t},version:function(){return Yt}}),"undefined"!==typeof window){var e=window.document.currentScript,A=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);A&&(n.p=A[1])}var i={i8:"3.0.6"},o=t(9812);const s={role:"application","aria-label":"Compact color picker",class:"vc-compact"},a={class:"vc-compact-colors",role:"listbox"},l=["aria-label","aria-selected","onClick"],c={class:"vc-compact-dot"};function d(e,A,t,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",s,[(0,o.createElementVNode)("ul",a,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.paletteUpperCase(t.palette),(e=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{role:"option","aria-label":"color:"+e,"aria-selected":e===r.pick,class:(0,o.normalizeClass)(["vc-compact-color-item",{"vc-compact-color-item--white":"#FFFFFF"===e}]),key:e,style:(0,o.normalizeStyle)({background:e}),onClick:A=>r.handlerClick(e)},[(0,o.withDirectives)((0,o.createElementVNode)("div",c,null,512),[[o.vShow,e===r.pick]])],14,l)))),128))])])}var u=n(7013),h=n.n(u);function g(e={},A=0){const t=e&&e.a;let i;i=e&&e.hsl?h()(e.hsl):e&&e.hex&&e.hex.length>0?h()(e.hex):e&&e.hsv?h()(e.hsv):e&&e.rgba?h()(e.rgba):e&&e.rgb?h()(e.rgb):h()(e),!i||void 0!==i._a&&null!==i._a||i.setAlpha(t||1);const n=i.toHsl(),r=i.toHsv();return 0===n.s&&(r.h=n.h=e.h||e.hsl&&e.hsl.h||A||0),{hsl:n,hex:i.toHexString().toUpperCase(),hex8:i.toHex8String().toUpperCase(),rgba:i.toRgb(),hsv:r,oldHue:e.h||A||n.h,source:e.source,a:e.a||i.getAlpha()}}var p={props:["modelValue"],data(){return{val:g(this.modelValue)}},computed:{colors:{get(){return this.val},set(e){this.val=e,this.$emit("update:modelValue",e)}}},watch:{modelValue(e){this.val=g(e)}},methods:{colorChange(e,A){this.oldHue=this.colors.hsl.h,this.colors=g(e,A||this.oldHue)},isValidHex(e){return h()(e).isValid()},simpleCheckForValidColor(e){const A=["r","g","b","a","h","s","l","v"];let t=0,i=0;for(let n=0;n<A.length;n++){const r=A[n];e[r]&&(t++,isNaN(e[r])||i++)}if(t===i)return e},paletteUpperCase(e){return e.map((e=>e.toUpperCase()))},isTransparent(e){return 0===h()(e).getAlpha()}}};const f=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];var m={name:"Compact",mixins:[p],props:{palette:{type:Array,default(){return f}}},components:{},computed:{pick(){return this.colors.hex.toUpperCase()}},methods:{handlerClick(e){this.colorChange({hex:e,source:"hex"})}}},B=(n(325),n(89));const w=(0,B.Z)(m,[["render",d]]);var v=w;const y={role:"application","aria-label":"Grayscale color picker",class:"vc-grayscale"},C={class:"vc-grayscale-colors",role:"listbox"},b=["aria-label","aria-selected","onClick"],_={class:"vc-grayscale-dot"};function Q(e,A,t,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",y,[(0,o.createElementVNode)("ul",C,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.paletteUpperCase(t.palette),(e=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{role:"option","aria-label":"Color:"+e,"aria-selected":e===r.pick,key:e,class:(0,o.normalizeClass)(["vc-grayscale-color-item",{"vc-grayscale-color-item--white":"#FFFFFF"==e}]),style:(0,o.normalizeStyle)({background:e}),onClick:A=>r.handlerClick(e)},[(0,o.withDirectives)((0,o.createElementVNode)("div",_,null,512),[[o.vShow,e===r.pick]])],14,b)))),128))])])}const U=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];var F={name:"Grayscale",mixins:[p],props:{palette:{type:Array,default(){return U}}},components:{},computed:{pick(){return this.colors.hex.toUpperCase()}},methods:{handlerClick(e){this.colorChange({hex:e,source:"hex"})}}};n(5208);const x=(0,B.Z)(F,[["render",Q]]);var E=x;const k={role:"application","aria-label":"Material color picker",class:"vc-material"},I={class:"vc-material-split"},S={class:"vc-material-third"},D={class:"vc-material-third"},H={class:"vc-material-third"};function L(e,A,t,i,n,r){const s=(0,o.resolveComponent)("ed-in");return(0,o.openBlock)(),(0,o.createElementBlock)("div",k,[(0,o.createVNode)(s,{class:"vc-material-hex",label:"hex",modelValue:e.colors.hex,"onUpdate:modelValue":A[0]||(A[0]=A=>e.colors.hex=A),style:(0,o.normalizeStyle)({borderColor:e.colors.hex}),onChange:r.onChange},null,8,["modelValue","style","onChange"]),(0,o.createElementVNode)("div",I,[(0,o.createElementVNode)("div",S,[(0,o.createVNode)(s,{label:"r",modelValue:e.colors.rgba.r,"onUpdate:modelValue":A[1]||(A[1]=A=>e.colors.rgba.r=A),onChange:r.onChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",D,[(0,o.createVNode)(s,{label:"g",modelValue:e.colors.rgba.g,"onUpdate:modelValue":A[2]||(A[2]=A=>e.colors.rgba.g=A),onChange:r.onChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",H,[(0,o.createVNode)(s,{label:"b",modelValue:e.colors.rgba.b,"onUpdate:modelValue":A[3]||(A[3]=A=>e.colors.rgba.b=A),onChange:r.onChange},null,8,["modelValue","onChange"])])])])}const O={class:"vc-editable-input"},M=["aria-labelledby"],T=["for","id"],N={class:"vc-input__desc"};function K(e,A,t,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",O,[(0,o.withDirectives)((0,o.createElementVNode)("input",{"aria-labelledby":r.labelId,class:"vc-input__input","onUpdate:modelValue":A[0]||(A[0]=e=>r.val=e),onKeydown:A[1]||(A[1]=(...e)=>r.handleKeyDown&&r.handleKeyDown(...e)),onInput:A[2]||(A[2]=(...e)=>r.update&&r.update(...e)),ref:"input"},null,40,M),[[o.vModelText,r.val]]),(0,o.createElementVNode)("span",{for:t.label,class:"vc-input__label",id:r.labelId},(0,o.toDisplayString)(r.labelSpanText),9,T),(0,o.createElementVNode)("span",N,(0,o.toDisplayString)(t.desc),1)])}var P={name:"editableInput",props:{label:String,labelText:String,desc:String,modelValue:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.modelValue},set(e){if(!(void 0!==this.max&&+e>this.max))return e;this.$refs.input.value=this.max}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(e){this.handleChange(e.target.value)},handleChange(e){const A={};A[this.label]=e,(void 0===A.hex&&void 0===A["#"]||e.length>5)&&this.$emit("change",A)},handleKeyDown(e){let A=this.val;const t=Number(A);if(t){const i=this.arrowOffset||1;38===e.keyCode&&(A=t+i,this.handleChange(A),e.preventDefault()),40===e.keyCode&&(A=t-i,this.handleChange(A),e.preventDefault())}}}};n(1979);const R=(0,B.Z)(P,[["render",K]]);var V=R,G={name:"Material",mixins:[p],components:{"ed-in":V},methods:{onChange(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}};n(1425);const j=(0,B.Z)(G,[["render",L]]);var z=j;const Z={role:"application","aria-label":"Slider color picker",class:"vc-slider"},W={class:"vc-slider-hue-warp"},Y={class:"vc-slider-swatches",role:"group"},X=["data-index","aria-label","onClick"];function J(e,A,t,i,n,r){const s=(0,o.resolveComponent)("hue");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Z,[(0,o.createElementVNode)("div",W,[(0,o.createVNode)(s,{modelValue:e.colors,"onUpdate:modelValue":A[0]||(A[0]=A=>e.colors=A),onChange:r.hueChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Y,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(r.normalizedSwatches,((A,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-slider-swatch",key:t,"data-index":t,"aria-label":"color:"+e.colors.hex,role:"button",onClick:e=>r.handleSwClick(t,A)},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["vc-slider-swatch-picker",{"vc-slider-swatch-picker--active":r.isActive(A,t),"vc-slider-swatch-picker--white":1===A.l}]),style:(0,o.normalizeStyle)({background:"hsl("+e.colors.hsl.h+", "+100*A.s+"%, "+100*A.l+"%)"})},null,6)],8,X)))),128))])])}const $=["aria-valuenow"],q=(0,o.createElementVNode)("div",{class:"vc-hue-picker"},null,-1),ee=[q];function Ae(e,A,t,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vc-hue",r.directionClass])},[(0,o.createElementVNode)("div",{class:"vc-hue-container",role:"slider","aria-valuenow":r.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360",ref:"container",onMousedown:A[0]||(A[0]=(...e)=>r.handleMouseDown&&r.handleMouseDown(...e)),onTouchmove:A[1]||(A[1]=(...e)=>r.handleChange&&r.handleChange(...e)),onTouchstart:A[2]||(A[2]=(...e)=>r.handleChange&&r.handleChange(...e))},[(0,o.createElementVNode)("div",{class:"vc-hue-pointer",style:(0,o.normalizeStyle)({top:r.pointerTop,left:r.pointerLeft}),role:"presentation"},ee,4)],40,$)],2)}var te={name:"Hue",props:{modelValue:Object,direction:{type:String,default:"horizontal"}},data(){return{oldHue:0,pullDirection:""}},computed:{colors(){const e=this.modelValue.hsl.h;return 0!==e&&e-this.oldHue>0&&(this.pullDirection="right"),0!==e&&e-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=e,this.modelValue},directionClass(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange(e,A){!A&&e.preventDefault();const t=this.$refs.container;if(!t)return;const i=t.clientWidth,n=t.clientHeight,r=t.getBoundingClientRect().left+window.pageXOffset,o=t.getBoundingClientRect().top+window.pageYOffset,s=e.pageX||(e.touches?e.touches[0].pageX:0),a=e.pageY||(e.touches?e.touches[0].pageY:0),l=s-r,c=a-o;let d,u;"vertical"===this.direction?(c<0?d=360:c>n?d=0:(u=-100*c/n+100,d=360*u/100),this.colors.hsl.h!==d&&this.$emit("change",{h:d,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(l<0?d=0:l>i?d=360:(u=100*l/i,d=360*u/100),this.colors.hsl.h!==d&&this.$emit("change",{h:d,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};n(6547);const ie=(0,B.Z)(te,[["render",Ae]]);var ne=ie;const re=.5;var oe={name:"Slider",mixins:[p],props:{swatches:{type:Array,default(){return[{s:re,l:.8},{s:re,l:.65},{s:re,l:.5},{s:re,l:.35},{s:re,l:.2}]}}},components:{hue:ne},computed:{normalizedSwatches(){const e=this.swatches;return e.map((e=>"object"!==typeof e?{s:re,l:e}:e))}},methods:{isActive(e,A){const t=this.colors.hsl;return 1===t.l&&1===e.l||(0===t.l&&0===e.l||Math.abs(t.l-e.l)<.01&&Math.abs(t.s-e.s)<.01)},hueChange(e){this.colorChange(e)},handleSwClick(e,A){this.colorChange({h:this.colors.hsl.h,s:A.s,l:A.l,source:"hsl"})}}};n(8016);const se=(0,B.Z)(oe,[["render",J]]);var ae=se;const le=["data-pick"],ce={class:"vc-swatches-box",role:"listbox"},de=["aria-label","aria-selected","data-color","onClick"],ue={class:"vc-swatches-pick"},he=(0,o.createElementVNode)("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24"},[(0,o.createElementVNode)("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})],-1),ge=[he];function pe(e,A,t,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{role:"application","aria-label":"Swatches color picker",class:"vc-swatches","data-pick":r.pick},[(0,o.createElementVNode)("div",ce,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.palette,((e,A)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-swatches-color-group",key:A},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e,(e=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vc-swatches-color-it",{"vc-swatches-color--white":"#FFFFFF"===e}]),role:"option","aria-label":"Color:"+e,"aria-selected":r.equal(e),key:e,"data-color":e,style:(0,o.normalizeStyle)({background:e}),onClick:A=>r.handlerClick(e)},[(0,o.withDirectives)((0,o.createElementVNode)("div",ue,ge,512),[[o.vShow,r.equal(e)]])],14,de)))),128))])))),128))])],8,le)}var fe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},me={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Be={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},we={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},ve={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},ye={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Ce={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},be={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},_e={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Qe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Ue={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Fe={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},xe={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Ee={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},ke={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Ie={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Se={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},De={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},He={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Le={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},Oe={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},Me={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},Te={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},Ne="#ffffff",Ke="#000000",Pe={red:fe,pink:me,purple:Be,deepPurple:we,indigo:ve,blue:ye,lightBlue:Ce,cyan:be,teal:_e,green:Qe,lightGreen:Ue,lime:Fe,yellow:xe,amber:Ee,orange:ke,deepOrange:Ie,brown:Se,grey:De,blueGrey:He,darkText:Le,lightText:Oe,darkIcons:Me,lightIcons:Te,white:Ne,black:Ke};const Re=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],Ve=["900","700","500","300","100"],Ge=(()=>{const e=[];return Re.forEach((A=>{let t=[];"black"===A.toLowerCase()||"white"===A.toLowerCase()?t=t.concat(["#000000","#FFFFFF"]):Ve.forEach((e=>{const i=Pe[A][e];t.push(i.toUpperCase())})),e.push(t)})),e})();var je={name:"Swatches",mixins:[p],props:{palette:{type:Array,default(){return Ge}}},computed:{pick(){return this.colors.hex}},methods:{equal(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick(e){this.colorChange({hex:e,source:"hex"})}}};n(193);const ze=(0,B.Z)(je,[["render",pe]]);var Ze=ze;const We={role:"heading",class:"vc-ps-head"},Ye={class:"vc-ps-body"},Xe={class:"vc-ps-saturation-wrap"},Je={class:"vc-ps-hue-wrap"},$e=(0,o.createElementVNode)("div",{class:"vc-ps-hue-pointer"},[(0,o.createElementVNode)("i",{class:"vc-ps-hue-pointer--left"}),(0,o.createElementVNode)("i",{class:"vc-ps-hue-pointer--right"})],-1),qe={class:"vc-ps-previews"},eA={class:"vc-ps-previews__label"},AA={class:"vc-ps-previews__swatches"},tA=["aria-label"],iA=["aria-label"],nA={class:"vc-ps-previews__label"},rA={key:0,class:"vc-ps-actions"},oA=["aria-label"],sA=["aria-label"],aA={class:"vc-ps-fields"},lA=(0,o.createElementVNode)("div",{class:"vc-ps-fields__divider"},null,-1),cA=(0,o.createElementVNode)("div",{class:"vc-ps-fields__divider"},null,-1);function dA(e,A,t,i,n,r){const s=(0,o.resolveComponent)("saturation"),a=(0,o.resolveComponent)("hue"),l=(0,o.resolveComponent)("ed-in");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{role:"application","aria-label":"PhotoShop color picker",class:(0,o.normalizeClass)(["vc-photoshop",t.disableFields?"vc-photoshop__disable-fields":""])},[(0,o.createElementVNode)("div",We,(0,o.toDisplayString)(t.head),1),(0,o.createElementVNode)("div",Ye,[(0,o.createElementVNode)("div",Xe,[(0,o.createVNode)(s,{modelValue:e.colors,"onUpdate:modelValue":A[0]||(A[0]=A=>e.colors=A),onChange:r.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Je,[(0,o.createVNode)(a,{modelValue:e.colors,"onUpdate:modelValue":A[1]||(A[1]=A=>e.colors=A),onChange:r.childChange,direction:"vertical"},{default:(0,o.withCtx)((()=>[$e])),_:1},8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["vc-ps-controls",t.disableFields?"vc-ps-controls__disable-fields":""])},[(0,o.createElementVNode)("div",qe,[(0,o.createElementVNode)("div",eA,(0,o.toDisplayString)(t.newLabel),1),(0,o.createElementVNode)("div",AA,[(0,o.createElementVNode)("div",{class:"vc-ps-previews__pr-color","aria-label":`New color is ${e.colors.hex}`,style:(0,o.normalizeStyle)({background:e.colors.hex})},null,12,tA),(0,o.createElementVNode)("div",{class:"vc-ps-previews__pr-color","aria-label":`Current color is ${n.currentColor}`,style:(0,o.normalizeStyle)({background:n.currentColor}),onClick:A[2]||(A[2]=(...e)=>r.clickCurrentColor&&r.clickCurrentColor(...e))},null,12,iA)]),(0,o.createElementVNode)("div",nA,(0,o.toDisplayString)(t.currentLabel),1)]),t.disableFields?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",rA,[(0,o.createElementVNode)("div",{class:"vc-ps-ac-btn",role:"button","aria-label":t.acceptLabel,onClick:A[3]||(A[3]=(...e)=>r.handleAccept&&r.handleAccept(...e))},(0,o.toDisplayString)(t.acceptLabel),9,oA),(0,o.createElementVNode)("div",{class:"vc-ps-ac-btn",role:"button","aria-label":t.cancelLabel,onClick:A[4]||(A[4]=(...e)=>r.handleCancel&&r.handleCancel(...e))},(0,o.toDisplayString)(t.cancelLabel),9,sA),(0,o.createElementVNode)("div",aA,[(0,o.createVNode)(l,{label:"h",desc:"°",modelValue:r.hsv.h,onChange:r.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"s",desc:"%",modelValue:r.hsv.s,max:100,onChange:r.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"v",desc:"%",modelValue:r.hsv.v,max:100,onChange:r.inputChange},null,8,["modelValue","onChange"]),lA,(0,o.createVNode)(l,{label:"r",modelValue:e.colors.rgba.r,onChange:r.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"g",modelValue:e.colors.rgba.g,onChange:r.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"b",modelValue:e.colors.rgba.b,onChange:r.inputChange},null,8,["modelValue","onChange"]),cA,(0,o.createVNode)(l,{label:"#",class:"vc-ps-fields__hex",modelValue:r.hex,onChange:r.inputChange},null,8,["modelValue","onChange"])]),t.hasResetButton?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"vc-ps-ac-btn","aria-label":"reset",onClick:A[5]||(A[5]=(...e)=>r.handleReset&&r.handleReset(...e))},(0,o.toDisplayString)(t.resetLabel),1)):(0,o.createCommentVNode)("",!0)]))],2)])],2)}const uA=(0,o.createElementVNode)("div",{class:"vc-saturation--white"},null,-1),hA=(0,o.createElementVNode)("div",{class:"vc-saturation--black"},null,-1),gA=(0,o.createElementVNode)("div",{class:"vc-saturation-circle"},null,-1),pA=[gA];function fA(e,A,t,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-saturation",style:(0,o.normalizeStyle)({background:r.bgColor}),ref:"container",onMousedown:A[0]||(A[0]=(...e)=>r.handleMouseDown&&r.handleMouseDown(...e)),onTouchmove:A[1]||(A[1]=(...e)=>r.handleChange&&r.handleChange(...e)),onTouchstart:A[2]||(A[2]=(...e)=>r.handleChange&&r.handleChange(...e))},[uA,hA,(0,o.createElementVNode)("div",{class:"vc-saturation-pointer",style:(0,o.normalizeStyle)({top:r.pointerTop,left:r.pointerLeft})},pA,4)],36)}var mA=n(9428),BA=n.n(mA),wA=n(9289),vA={name:"Saturation",props:{modelValue:Object},computed:{colors(){return this.modelValue},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:wA(((e,A)=>{e(A)}),20,{leading:!0,trailing:!1}),handleChange(e,A){!A&&e.preventDefault();const t=this.$refs.container;if(!t)return;const i=t.clientWidth,n=t.clientHeight,r=t.getBoundingClientRect().left+window.pageXOffset,o=t.getBoundingClientRect().top+window.pageYOffset,s=e.pageX||(e.touches?e.touches[0].pageX:0),a=e.pageY||(e.touches?e.touches[0].pageY:0),l=BA()(s-r,0,i),c=BA()(a-o,0,n),d=l/i,u=BA()(-c/n+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:d,v:u,a:this.colors.hsv.a,source:"hsva"})},onChange(e){this.$emit("change",e)},handleMouseDown(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};n(5233);const yA=(0,B.Z)(vA,[["render",fA]]);var CA=yA,bA={name:"Photoshop",mixins:[p],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:CA,hue:ne,"ed-in":V},data(){return{currentColor:"#FFF"}},computed:{hsv(){const e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex(){const e=this.colors.hex;return e&&e.replace("#","")}},created(){this.currentColor=this.colors.hex},methods:{childChange(e){this.colorChange(e)},inputChange(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept(){this.$emit("ok")},handleCancel(){this.$emit("cancel")},handleReset(){this.$emit("reset")}}};n(1902);const _A=(0,B.Z)(bA,[["render",dA]]);var QA=_A;const UA={class:"vc-sketch-saturation-wrap"},FA={class:"vc-sketch-controls"},xA={class:"vc-sketch-sliders"},EA={class:"vc-sketch-hue-wrap"},kA={key:0,class:"vc-sketch-alpha-wrap"},IA={class:"vc-sketch-color-wrap"},SA=["aria-label"],DA={key:0,class:"vc-sketch-field"},HA={class:"vc-sketch-field--double"},LA={class:"vc-sketch-field--single"},OA={class:"vc-sketch-field--single"},MA={class:"vc-sketch-field--single"},TA={key:0,class:"vc-sketch-field--single"},NA={class:"vc-sketch-presets",role:"group","aria-label":"A color preset, pick one to set as current color"},KA=["aria-label","onClick"],PA=["aria-label","onClick"],RA={class:"vc-botton-container"};function VA(e,A,t,i,n,r){const s=(0,o.resolveComponent)("saturation"),a=(0,o.resolveComponent)("hue"),l=(0,o.resolveComponent)("alpha"),c=(0,o.resolveComponent)("checkboard"),d=(0,o.resolveComponent)("ed-in");return n.showView?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,role:"application","aria-label":"Sketch color picker",class:(0,o.normalizeClass)(["vc-sketch",t.disableAlpha?"vc-sketch__disable-alpha":""])},[(0,o.createElementVNode)("div",UA,[(0,o.createVNode)(s,{modelValue:e.colors,"onUpdate:modelValue":A[0]||(A[0]=A=>e.colors=A),onChange:r.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",FA,[(0,o.createElementVNode)("div",xA,[(0,o.createElementVNode)("div",EA,[(0,o.createVNode)(a,{modelValue:e.colors,"onUpdate:modelValue":A[1]||(A[1]=A=>e.colors=A),onChange:r.childChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",kA,[(0,o.createVNode)(l,{modelValue:e.colors,"onUpdate:modelValue":A[2]||(A[2]=A=>e.colors=A),onChange:r.childChange},null,8,["modelValue","onChange"])]))]),(0,o.createElementVNode)("div",IA,[(0,o.createElementVNode)("div",{"aria-label":`Current color is ${r.activeColor}`,class:"vc-sketch-active-color",style:(0,o.normalizeStyle)({background:r.activeColor})},null,12,SA),(0,o.createVNode)(c)])]),t.disableFields?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",DA,[(0,o.createElementVNode)("div",HA,[(0,o.createVNode)(d,{label:"hex",modelValue:r.hex,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",LA,[(0,o.createVNode)(d,{label:"r",modelValue:e.colors.rgba.r,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",OA,[(0,o.createVNode)(d,{label:"g",modelValue:e.colors.rgba.g,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",MA,[(0,o.createVNode)(d,{label:"b",modelValue:e.colors.rgba.b,onChange:r.inputChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",TA,[(0,o.createVNode)(d,{label:"a",modelValue:e.colors.a,"arrow-offset":.01,max:1,onChange:r.inputChange},null,8,["modelValue","arrow-offset","onChange"])]))])),(0,o.createElementVNode)("div",NA,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.presetColors,(A=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[e.isTransparent(A)?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:"else-"+A,"aria-label":"Color:"+A,class:"vc-sketch-presets-color",onClick:e=>r.handlePreset(A)},[(0,o.createVNode)(c)],8,PA)):((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-sketch-presets-color","aria-label":"Color:"+A,key:"if-"+A,style:(0,o.normalizeStyle)({background:A}),onClick:e=>r.handlePreset(A)},null,12,KA))],64)))),256))]),(0,o.createElementVNode)("div",RA,[(0,o.createElementVNode)("div",{class:"vc-botton-left",onClick:A[3]||(A[3]=(...e)=>r.handleCancel&&r.handleCancel(...e))},"取消"),(0,o.createElementVNode)("div",{class:"vc-botton-right",onClick:A[4]||(A[4]=(...e)=>r.handleConfirm&&r.handleConfirm(...e))},"确定")])],2)):(0,o.createCommentVNode)("",!0)}const GA={class:"vc-alpha"},jA={class:"vc-alpha-checkboard-wrap"},zA=(0,o.createElementVNode)("div",{class:"vc-alpha-picker"},null,-1),ZA=[zA];function WA(e,A,t,i,n,r){const s=(0,o.resolveComponent)("checkboard");return(0,o.openBlock)(),(0,o.createElementBlock)("div",GA,[(0,o.createElementVNode)("div",jA,[(0,o.createVNode)(s)]),(0,o.createElementVNode)("div",{class:"vc-alpha-gradient",style:(0,o.normalizeStyle)({background:r.gradientColor})},null,4),(0,o.createElementVNode)("div",{class:"vc-alpha-container",ref:"container",onMousedown:A[0]||(A[0]=(...e)=>r.handleMouseDown&&r.handleMouseDown(...e)),onTouchmove:A[1]||(A[1]=(...e)=>r.handleChange&&r.handleChange(...e)),onTouchstart:A[2]||(A[2]=(...e)=>r.handleChange&&r.handleChange(...e))},[(0,o.createElementVNode)("div",{class:"vc-alpha-pointer",style:(0,o.normalizeStyle)({left:100*r.colors.a+"%"})},ZA,4)],544)])}function YA(e,A,t,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-checkerboard",style:(0,o.normalizeStyle)(r.bgStyle)},null,4)}const XA={};var JA={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":"url("+qA(this.white,this.grey,this.size)+")"}}}};function $A(e,A,t){if("undefined"===typeof document)return null;const i=document.createElement("canvas");i.width=i.height=2*t;const n=i.getContext("2d");return n?(n.fillStyle=e,n.fillRect(0,0,i.width,i.height),n.fillStyle=A,n.fillRect(0,0,t,t),n.translate(t,t),n.fillRect(0,0,t,t),i.toDataURL()):null}function qA(e,A,t){const i=e+","+A+","+t;if(XA[i])return XA[i];{const n=$A(e,A,t);return XA[i]=n,n}}n(3205);const et=(0,B.Z)(JA,[["render",YA]]);var At=et,tt={name:"Alpha",props:{modelValue:Object,onChange:Function},components:{checkboard:At},computed:{colors(){return this.modelValue},gradientColor(){const e=this.colors.rgba,A=[e.r,e.g,e.b].join(",");return"linear-gradient(to right, rgba("+A+", 0) 0%, rgba("+A+", 1) 100%)"}},methods:{handleChange(e,A){!A&&e.preventDefault();const t=this.$refs.container;if(!t)return;const i=t.clientWidth,n=t.getBoundingClientRect().left+window.pageXOffset,r=e.pageX||(e.touches?e.touches[0].pageX:0),o=r-n;let s;s=o<0?0:o>i?1:Math.round(100*o/i)/100,this.colors.a!==s&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:s,source:"rgba"})},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};n(6320);const it=(0,B.Z)(tt,[["render",WA]]);var nt=it;const rt=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];var ot={name:"Sketch",mixins:[p],components:{saturation:CA,hue:ne,alpha:nt,"ed-in":V,checkboard:At},props:{show:{type:Boolean,default(){return!0}},presetColors:{type:Array,default(){return rt}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1},changColor:{type:Function}},watch:{show(e,A){this.showView=e}},data(){return{showView:this.show}},computed:{hex(){let e;return e=this.colors.a<1?this.colors.hex8:this.colors.hex,e.replace("#","")},activeColor(){const e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"}},methods:{handleCancel(){const e={isOk:!1};this.$emit("changButton",e)},handleConfirm(){const e={isOk:!0,activeColor:this.activeColor,hex:this.hex};this.$emit("changButton",e)},handlePreset(e){this.colorChange({hex:e,source:"hex"})},childChange(e){this.colorChange(e)},inputChange(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b||e.a)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}};n(3439);const st=(0,B.Z)(ot,[["render",VA]]);var at=st;const lt={class:"vc-chrome-saturation-wrap"},ct={class:"vc-chrome-body"},dt={class:"vc-chrome-controls"},ut={class:"vc-chrome-color-wrap"},ht=["aria-label"],gt={class:"vc-chrome-sliders"},pt={class:"vc-chrome-hue-wrap"},ft={key:0,class:"vc-chrome-alpha-wrap"},mt={key:0,class:"vc-chrome-fields-wrap"},Bt={class:"vc-chrome-fields"},wt={class:"vc-chrome-field"},vt={class:"vc-chrome-fields"},yt={class:"vc-chrome-field"},Ct={class:"vc-chrome-field"},bt={class:"vc-chrome-field"},_t={key:0,class:"vc-chrome-field"},Qt={class:"vc-chrome-fields"},Ut={class:"vc-chrome-field"},Ft={class:"vc-chrome-field"},xt={class:"vc-chrome-field"},Et={key:0,class:"vc-chrome-field"},kt={class:"vc-chrome-toggle-icon"},It=(0,o.createElementVNode)("path",{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"},null,-1),St=[It],Dt={class:"vc-chrome-toggle-icon-highlight"};function Ht(e,A,t,i,n,r){const s=(0,o.resolveComponent)("saturation"),a=(0,o.resolveComponent)("checkboard"),l=(0,o.resolveComponent)("hue"),c=(0,o.resolveComponent)("alpha"),d=(0,o.resolveComponent)("ed-in");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{role:"application","aria-label":"Chrome color picker",class:(0,o.normalizeClass)(["vc-chrome",t.disableAlpha?"vc-chrome__disable-alpha":""])},[(0,o.createElementVNode)("div",lt,[(0,o.createVNode)(s,{modelValue:e.colors,"onUpdate:modelValue":A[0]||(A[0]=A=>e.colors=A),onChange:r.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",ct,[(0,o.createElementVNode)("div",dt,[(0,o.createElementVNode)("div",ut,[(0,o.createElementVNode)("div",{"aria-label":`current color is ${e.colors.hex}`,class:"vc-chrome-active-color",style:(0,o.normalizeStyle)({background:r.activeColor})},null,12,ht),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(a,{key:0}))]),(0,o.createElementVNode)("div",gt,[(0,o.createElementVNode)("div",pt,[(0,o.createVNode)(l,{modelValue:e.colors,"onUpdate:modelValue":A[1]||(A[1]=A=>e.colors=A),onChange:r.childChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",ft,[(0,o.createVNode)(c,{modelValue:e.colors,"onUpdate:modelValue":A[2]||(A[2]=A=>e.colors=A),onChange:r.childChange},null,8,["modelValue","onChange"])]))])]),t.disableFields?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",mt,[(0,o.withDirectives)((0,o.createElementVNode)("div",Bt,[(0,o.createElementVNode)("div",wt,[r.hasAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(d,{key:0,label:"hex",modelValue:e.colors.hex,onChange:r.inputChange},null,8,["modelValue","onChange"])),r.hasAlpha?((0,o.openBlock)(),(0,o.createBlock)(d,{key:1,label:"hex",modelValue:e.colors.hex8,onChange:r.inputChange},null,8,["modelValue","onChange"])):(0,o.createCommentVNode)("",!0)])],512),[[o.vShow,0===n.fieldsIndex]]),(0,o.withDirectives)((0,o.createElementVNode)("div",vt,[(0,o.createElementVNode)("div",yt,[(0,o.createVNode)(d,{label:"r",modelValue:e.colors.rgba.r,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Ct,[(0,o.createVNode)(d,{label:"g",modelValue:e.colors.rgba.g,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",bt,[(0,o.createVNode)(d,{label:"b",modelValue:e.colors.rgba.b,onChange:r.inputChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",_t,[(0,o.createVNode)(d,{label:"a",modelValue:e.colors.a,"arrow-offset":.01,max:1,onChange:r.inputChange},null,8,["modelValue","arrow-offset","onChange"])]))],512),[[o.vShow,1===n.fieldsIndex]]),(0,o.withDirectives)((0,o.createElementVNode)("div",Qt,[(0,o.createElementVNode)("div",Ut,[(0,o.createVNode)(d,{label:"h",modelValue:r.hsl.h,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Ft,[(0,o.createVNode)(d,{label:"s",modelValue:r.hsl.s,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",xt,[(0,o.createVNode)(d,{label:"l",modelValue:r.hsl.l,onChange:r.inputChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Et,[(0,o.createVNode)(d,{label:"a",modelValue:e.colors.a,"arrow-offset":.01,max:1,onChange:r.inputChange},null,8,["modelValue","arrow-offset","onChange"])]))],512),[[o.vShow,2===n.fieldsIndex]]),(0,o.createElementVNode)("div",{class:"vc-chrome-toggle-btn",role:"button","aria-label":"Change another color definition",onClick:A[6]||(A[6]=(...e)=>r.toggleViews&&r.toggleViews(...e))},[(0,o.createElementVNode)("div",kt,[((0,o.openBlock)(),(0,o.createElementBlock)("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24",onMouseover:A[3]||(A[3]=(...e)=>r.showHighlight&&r.showHighlight(...e)),onMouseenter:A[4]||(A[4]=(...e)=>r.showHighlight&&r.showHighlight(...e)),onMouseout:A[5]||(A[5]=(...e)=>r.hideHighlight&&r.hideHighlight(...e))},St,32))]),(0,o.withDirectives)((0,o.createElementVNode)("div",Dt,null,512),[[o.vShow,n.highlight]])])]))])],2)}var Lt={name:"Chrome",mixins:[p],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:CA,hue:ne,alpha:nt,"ed-in":V,checkboard:At},data(){return{fieldsIndex:0,highlight:!1}},computed:{hsl(){const{h:e,s:A,l:t}=this.colors.hsl;return{h:e.toFixed(),s:`${(100*A).toFixed()}%`,l:`${(100*t).toFixed()}%`}},activeColor(){const e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"},hasAlpha(){return this.colors.a<1}},methods:{childChange(e){this.colorChange(e)},inputChange(e){if(e)if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"});else if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"});else if(e.h||e.s||e.l){const A=e.s?e.s.replace("%","")/100:this.colors.hsl.s,t=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:A,l:t,source:"hsl"})}},toggleViews(){this.fieldsIndex>=2?this.fieldsIndex=0:this.fieldsIndex++},showHighlight(){this.highlight=!0},hideHighlight(){this.highlight=!1}}};n(3647);const Ot=(0,B.Z)(Lt,[["render",Ht]]);var Mt=Ot;const Tt=(0,o.createElementVNode)("div",{class:"vc-twitter-triangle-shadow"},null,-1),Nt=(0,o.createElementVNode)("div",{class:"vc-twitter-triangle"},null,-1),Kt={class:"vc-twitter-body"},Pt=["onClick"],Rt=(0,o.createElementVNode)("div",{class:"vc-twitter-hash"},"#",-1),Vt=(0,o.createElementVNode)("div",{class:"vc-twitter-clear"},null,-1);function Gt(e,A,t,i,n,r){const s=(0,o.resolveComponent)("editable-input");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vc-twitter",{"vc-twitter-hide-triangle ":"hide"===t.triangle,"vc-twitter-top-left-triangle ":"top-left"===t.triangle,"vc-twitter-top-right-triangle ":"top-right"===t.triangle}]),style:(0,o.normalizeStyle)({width:"number"===typeof t.width?`${t.width}px`:t.width})},[Tt,Nt,(0,o.createElementVNode)("div",Kt,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.defaultColors,((e,A)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{class:"vc-twitter-swatch",style:(0,o.normalizeStyle)({background:e,boxShadow:`0 0 4px ${r.equal(e)?e:"transparent"}`}),key:A,onClick:A=>r.handlerClick(e)},null,12,Pt)))),128)),Rt,(0,o.createVNode)(s,{label:"#",modelValue:r.hex,onChange:r.inputChange},null,8,["modelValue","onChange"]),Vt])],6)}const jt=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];var zt={name:"Twitter",mixins:[p],components:{editableInput:V},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default(){return jt}},triangle:{default:"top-left",validator(e){return["hide","top-left","top-right"].includes(e)}}},computed:{hsv(){const e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex(){const e=this.colors.hex;return e&&e.replace("#","")}},methods:{equal(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick(e){this.colorChange({hex:e,source:"hex"})},inputChange(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))}}};n(1113);const Zt=(0,B.Z)(zt,[["render",Gt]]);var Wt=Zt;const Yt=i.i8,Xt={version:Yt,Compact:v,Grayscale:E,Twitter:Wt,Material:z,Slider:ae,Swatches:Ze,Photoshop:QA,Sketch:at,Chrome:Mt,Alpha:nt,Checkboard:At,EditableInput:V,Hue:ne,Saturation:CA,ColorMixin:p};"object"===typeof process&&"[object process]"===String(process)||(window.VueColor=Xt);var Jt=Xt,$t=Jt}(),e.exports=r})()},3162:function(e,A,t){var i,n,r;(function(t,o){n=[],i=o,r="function"===typeof i?i.apply(A,n):i,void 0===r||(e.exports=r)})(0,(function(){"use strict";function A(e,A){return"undefined"==typeof A?A={autoBom:!1}:"object"!=typeof A&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,A,t){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,A,t)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch(e){}return 200<=A.status&&299>=A.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(i){var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof t.g&&t.g.global===t.g?t.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,A,t){var s=o.URL||o.webkitURL,a=document.createElement("a");A=A||e.name||"download",a.download=A,a.rel="noopener","string"==typeof e?(a.href=e,a.origin===location.origin?r(a):n(a.href)?i(e,A,t):r(a,a.target="_blank")):(a.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(a.href)}),4e4),setTimeout((function(){r(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,o){if(t=t||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(A(e,o),t);else if(n(e))i(e,t,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){r(s)}))}}:function(e,A,t,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return i(e,A,t);var r="application/octet-stream"===e.type,a=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&a||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},c.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,u=d.createObjectURL(e);n?n.location=u:location.href=u,n=null,setTimeout((function(){d.revokeObjectURL(u)}),4e4)}});o.saveAs=a.saveAs=a,e.exports=a}))},1120:function(e){
/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/
(function(A,t){e.exports=t()})(0,(function(){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var e=function(A,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])},e(A,t)};function A(A,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=A}e(A,t),A.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var t=function(){return t=Object.assign||function(e){for(var A,t=1,i=arguments.length;t<i;t++)for(var n in A=arguments[t],A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n]);return e},t.apply(this,arguments)};function i(e,A,t,i){function n(e){return e instanceof t?e:new t((function(A){A(e)}))}return new(t||(t=Promise))((function(t,r){function o(e){try{a(i.next(e))}catch(jA){r(jA)}}function s(e){try{a(i["throw"](e))}catch(jA){r(jA)}}function a(e){e.done?t(e.value):n(e.value).then(o,s)}a((i=i.apply(e,A||[])).next())}))}function n(e,A){var t,i,n,r,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(A){return a([e,A])}}function a(r){if(t)throw new TypeError("Generator is already executing.");while(o)try{if(t=1,i&&(n=2&r[0]?i["return"]:r[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,i=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){o.label=r[1];break}if(6===r[0]&&o.label<n[1]){o.label=n[1],n=r;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(r);break}n[2]&&o.ops.pop(),o.trys.pop();continue}r=A.call(e,o)}catch(jA){r=[6,jA],i=0}finally{t=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}function r(e,A,t){if(t||2===arguments.length)for(var i,n=0,r=A.length;n<r;n++)!i&&n in A||(i||(i=Array.prototype.slice.call(A,0,n)),i[n]=A[n]);return e.concat(i||A)}for(var o=function(){function e(e,A,t,i){this.left=e,this.top=A,this.width=t,this.height=i}return e.prototype.add=function(A,t,i,n){return new e(this.left+A,this.top+t,this.width+i,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var i=Array.from(t).find((function(e){return 0!==e.width}));return i?new e(i.left+A.windowBounds.left,i.top+A.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,A){return o.fromClientRect(e,A.getBoundingClientRect())},a=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var i=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new o(0,0,i,n)},l=function(e){var A=[],t=0,i=e.length;while(t<i){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<i){var r=e.charCodeAt(t++);56320===(64512&r)?A.push(((1023&n)<<10)+(1023&r)+65536):(A.push(n),t--)}else A.push(n)}return A},c=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";var i=[],n=-1,r="";while(++n<t){var o=e[n];o<=65535?i.push(o):(o-=65536,i.push(55296+(o>>10),o%1024+56320)),(n+1===t||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"===typeof Uint8Array?[]:new Uint8Array(256),h=0;h<d.length;h++)u[d.charCodeAt(h)]=h;for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"===typeof Uint8Array?[]:new Uint8Array(256),f=0;f<g.length;f++)p[g.charCodeAt(f)]=f;for(var m=function(e){var A,t,i,n,r,o=.75*e.length,s=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(A=0;A<s;A+=4)t=p[e.charCodeAt(A)],i=p[e.charCodeAt(A+1)],n=p[e.charCodeAt(A+2)],r=p[e.charCodeAt(A+3)],c[a++]=t<<2|i>>4,c[a++]=(15&i)<<4|n>>2,c[a++]=(3&n)<<6|63&r;return l},B=function(e){for(var A=e.length,t=[],i=0;i<A;i+=2)t.push(e[i+1]<<8|e[i]);return t},w=function(e){for(var A=e.length,t=[],i=0;i<A;i+=4)t.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return t},v=5,y=11,C=2,b=y-v,_=65536>>v,Q=1<<v,U=Q-1,F=1024>>v,x=_+F,E=x,k=32,I=E+k,S=65536>>y,D=1<<b,H=D-1,L=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},O=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},M=function(e,A){var t=m(e),i=Array.isArray(t)?w(t):new Uint32Array(t),n=Array.isArray(t)?B(t):new Uint16Array(t),r=24,o=L(n,r/2,i[4]/2),s=2===i[5]?L(n,(r+i[4])/2):O(i,Math.ceil((r+i[4])/4));return new T(i[0],i[1],i[2],i[3],o,s)},T=function(){function e(e,A,t,i,n,r){this.initialValue=e,this.errorValue=A,this.highStart=t,this.highValueIndex=i,this.index=n,this.data=r}return e.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>v],A=(A<<C)+(e&U),this.data[A];if(e<=65535)return A=this.index[_+(e-55296>>v)],A=(A<<C)+(e&U),this.data[A];if(e<this.highStart)return A=I-S+(e>>y),A=this.index[A],A+=e>>v&H,A=this.index[A],A=(A<<C)+(e&U),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K="undefined"===typeof Uint8Array?[]:new Uint8Array(256),P=0;P<N.length;P++)K[N.charCodeAt(P)]=P;var R="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",V=50,G=1,j=2,z=3,Z=4,W=5,Y=7,X=8,J=9,$=10,q=11,ee=12,Ae=13,te=14,ie=15,ne=16,re=17,oe=18,se=19,ae=20,le=21,ce=22,de=23,ue=24,he=25,ge=26,pe=27,fe=28,me=29,Be=30,we=31,ve=32,ye=33,Ce=34,be=35,_e=36,Qe=37,Ue=38,Fe=39,xe=40,Ee=41,ke=42,Ie=43,Se=[9001,65288],De="!",He="×",Le="÷",Oe=M(R),Me=[Be,_e],Te=[G,j,z,W],Ne=[$,X],Ke=[pe,ge],Pe=Te.concat(Ne),Re=[Ue,Fe,xe,Ce,be],Ve=[ie,Ae],Ge=function(e,A){void 0===A&&(A="strict");var t=[],i=[],n=[];return e.forEach((function(e,r){var o=Oe.get(e);if(o>V?(n.push(!0),o-=V):n.push(!1),-1!==["normal","auto","loose"].indexOf(A)&&-1!==[8208,8211,12316,12448].indexOf(e))return i.push(r),t.push(ne);if(o===Z||o===q){if(0===r)return i.push(r),t.push(Be);var s=t[r-1];return-1===Pe.indexOf(s)?(i.push(i[r-1]),t.push(s)):(i.push(r),t.push(Be))}return i.push(r),o===we?t.push("strict"===A?le:Qe):o===ke||o===me?t.push(Be):o===Ie?e>=131072&&e<=196605||e>=196608&&e<=262141?t.push(Qe):t.push(Be):void t.push(o)})),[i,t,n]},je=function(e,A,t,i){var n=i[t];if(Array.isArray(e)?-1!==e.indexOf(n):e===n){var r=t;while(r<=i.length){r++;var o=i[r];if(o===A)return!0;if(o!==$)break}}if(n===$){r=t;while(r>0){r--;var s=i[r];if(Array.isArray(e)?-1!==e.indexOf(s):e===s){var a=t;while(a<=i.length){a++;o=i[a];if(o===A)return!0;if(o!==$)break}}if(s!==$)break}}return!1},ze=function(e,A){var t=e;while(t>=0){var i=A[t];if(i!==$)return i;t--}return 0},Ze=function(e,A,t,i,n){if(0===t[i])return He;var r=i-1;if(Array.isArray(n)&&!0===n[r])return He;var o=r-1,s=r+1,a=A[r],l=o>=0?A[o]:0,c=A[s];if(a===j&&c===z)return He;if(-1!==Te.indexOf(a))return De;if(-1!==Te.indexOf(c))return He;if(-1!==Ne.indexOf(c))return He;if(ze(r,A)===X)return Le;if(Oe.get(e[r])===q)return He;if((a===ve||a===ye)&&Oe.get(e[s])===q)return He;if(a===Y||c===Y)return He;if(a===J)return He;if(-1===[$,Ae,ie].indexOf(a)&&c===J)return He;if(-1!==[re,oe,se,ue,fe].indexOf(c))return He;if(ze(r,A)===ce)return He;if(je(de,ce,r,A))return He;if(je([re,oe],le,r,A))return He;if(je(ee,ee,r,A))return He;if(a===$)return Le;if(a===de||c===de)return He;if(c===ne||a===ne)return Le;if(-1!==[Ae,ie,le].indexOf(c)||a===te)return He;if(l===_e&&-1!==Ve.indexOf(a))return He;if(a===fe&&c===_e)return He;if(c===ae)return He;if(-1!==Me.indexOf(c)&&a===he||-1!==Me.indexOf(a)&&c===he)return He;if(a===pe&&-1!==[Qe,ve,ye].indexOf(c)||-1!==[Qe,ve,ye].indexOf(a)&&c===ge)return He;if(-1!==Me.indexOf(a)&&-1!==Ke.indexOf(c)||-1!==Ke.indexOf(a)&&-1!==Me.indexOf(c))return He;if(-1!==[pe,ge].indexOf(a)&&(c===he||-1!==[ce,ie].indexOf(c)&&A[s+1]===he)||-1!==[ce,ie].indexOf(a)&&c===he||a===he&&-1!==[he,fe,ue].indexOf(c))return He;if(-1!==[he,fe,ue,re,oe].indexOf(c)){var d=r;while(d>=0){var u=A[d];if(u===he)return He;if(-1===[fe,ue].indexOf(u))break;d--}}if(-1!==[pe,ge].indexOf(c)){d=-1!==[re,oe].indexOf(a)?o:r;while(d>=0){u=A[d];if(u===he)return He;if(-1===[fe,ue].indexOf(u))break;d--}}if(Ue===a&&-1!==[Ue,Fe,Ce,be].indexOf(c)||-1!==[Fe,Ce].indexOf(a)&&-1!==[Fe,xe].indexOf(c)||-1!==[xe,be].indexOf(a)&&c===xe)return He;if(-1!==Re.indexOf(a)&&-1!==[ae,ge].indexOf(c)||-1!==Re.indexOf(c)&&a===pe)return He;if(-1!==Me.indexOf(a)&&-1!==Me.indexOf(c))return He;if(a===ue&&-1!==Me.indexOf(c))return He;if(-1!==Me.concat(he).indexOf(a)&&c===ce&&-1===Se.indexOf(e[s])||-1!==Me.concat(he).indexOf(c)&&a===oe)return He;if(a===Ee&&c===Ee){var h=t[r],g=1;while(h>0){if(h--,A[h]!==Ee)break;g++}if(g%2!==0)return He}return a===ve&&c===ye?He:Le},We=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=Ge(e,A.lineBreak),i=t[0],n=t[1],r=t[2];"break-all"!==A.wordBreak&&"break-word"!==A.wordBreak||(n=n.map((function(e){return-1!==[he,Be,ke].indexOf(e)?Qe:e})));var o="keep-all"===A.wordBreak?r.map((function(A,t){return A&&e[t]>=19968&&e[t]<=40959})):void 0;return[i,n,o]},Ye=function(){function e(e,A,t,i){this.codePoints=e,this.required=A===De,this.start=t,this.end=i}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Xe=function(e,A){var t=l(e),i=We(t,A),n=i[0],r=i[1],o=i[2],s=t.length,a=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};var e=He;while(c<s&&(e=Ze(t,r,n,++c,o))===He);if(e!==He||c===s){var A=new Ye(t,e,a,c);return a=c,{value:A,done:!1}}return{done:!0,value:null}}}},Je=1,$e=2,qe=4,eA=8,AA=10,tA=47,iA=92,nA=9,rA=32,oA=34,sA=61,aA=35,lA=36,cA=37,dA=39,uA=40,hA=41,gA=95,pA=45,fA=33,mA=60,BA=62,wA=64,vA=91,yA=93,CA=61,bA=123,_A=63,QA=125,UA=124,FA=126,xA=128,EA=65533,kA=42,IA=43,SA=44,DA=58,HA=59,LA=46,OA=0,MA=8,TA=11,NA=14,KA=31,PA=127,RA=-1,VA=48,GA=97,jA=101,zA=102,ZA=117,WA=122,YA=65,XA=69,JA=70,$A=85,qA=90,et=function(e){return e>=VA&&e<=57},At=function(e){return e>=55296&&e<=57343},tt=function(e){return et(e)||e>=YA&&e<=JA||e>=GA&&e<=zA},it=function(e){return e>=GA&&e<=WA},nt=function(e){return e>=YA&&e<=qA},rt=function(e){return it(e)||nt(e)},ot=function(e){return e>=xA},st=function(e){return e===AA||e===nA||e===rA},at=function(e){return rt(e)||ot(e)||e===gA},lt=function(e){return at(e)||et(e)||e===pA},ct=function(e){return e>=OA&&e<=MA||e===TA||e>=NA&&e<=KA||e===PA},dt=function(e,A){return e===iA&&A!==AA},ut=function(e,A,t){return e===pA?at(A)||dt(A,t):!!at(e)||!(e!==iA||!dt(e,A))},ht=function(e,A,t){return e===IA||e===pA?!!et(A)||A===LA&&et(t):et(e===LA?A:e)},gt=function(e){var A=0,t=1;e[A]!==IA&&e[A]!==pA||(e[A]===pA&&(t=-1),A++);var i=[];while(et(e[A]))i.push(e[A++]);var n=i.length?parseInt(c.apply(void 0,i),10):0;e[A]===LA&&A++;var r=[];while(et(e[A]))r.push(e[A++]);var o=r.length,s=o?parseInt(c.apply(void 0,r),10):0;e[A]!==XA&&e[A]!==jA||A++;var a=1;e[A]!==IA&&e[A]!==pA||(e[A]===pA&&(a=-1),A++);var l=[];while(et(e[A]))l.push(e[A++]);var d=l.length?parseInt(c.apply(void 0,l),10):0;return t*(n+s*Math.pow(10,-o))*Math.pow(10,a*d)},pt={type:2},ft={type:3},mt={type:4},Bt={type:13},wt={type:8},vt={type:21},yt={type:9},Ct={type:10},bt={type:11},_t={type:12},Qt={type:14},Ut={type:23},Ft={type:1},xt={type:25},Et={type:24},kt={type:26},It={type:27},St={type:28},Dt={type:29},Ht={type:31},Lt={type:32},Ot=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){var e=[],A=this.consumeToken();while(A!==Lt)e.push(A),A=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case oA:return this.consumeStringToken(oA);case aA:var A=this.peekCodePoint(0),t=this.peekCodePoint(1),i=this.peekCodePoint(2);if(lt(A)||dt(t,i)){var n=ut(A,t,i)?$e:Je,r=this.consumeName();return{type:5,value:r,flags:n}}break;case lA:if(this.peekCodePoint(0)===sA)return this.consumeCodePoint(),Bt;break;case dA:return this.consumeStringToken(dA);case uA:return pt;case hA:return ft;case kA:if(this.peekCodePoint(0)===sA)return this.consumeCodePoint(),Qt;break;case IA:if(ht(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case SA:return mt;case pA:var o=e,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(ht(o,s,a))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ut(o,s,a))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===pA&&a===BA)return this.consumeCodePoint(),this.consumeCodePoint(),Et;break;case LA:if(ht(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case tA:if(this.peekCodePoint(0)===kA){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===kA&&(l=this.consumeCodePoint(),l===tA))return this.consumeToken();if(l===RA)return this.consumeToken()}}break;case DA:return kt;case HA:return It;case mA:if(this.peekCodePoint(0)===fA&&this.peekCodePoint(1)===pA&&this.peekCodePoint(2)===pA)return this.consumeCodePoint(),this.consumeCodePoint(),xt;break;case wA:var d=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(ut(d,u,h)){r=this.consumeName();return{type:7,value:r}}break;case vA:return St;case iA:if(dt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case yA:return Dt;case CA:if(this.peekCodePoint(0)===sA)return this.consumeCodePoint(),wt;break;case bA:return bt;case QA:return _t;case ZA:case $A:var g=this.peekCodePoint(0),p=this.peekCodePoint(1);return g!==IA||!tt(p)&&p!==_A||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case UA:if(this.peekCodePoint(0)===sA)return this.consumeCodePoint(),yt;if(this.peekCodePoint(0)===UA)return this.consumeCodePoint(),vt;break;case FA:if(this.peekCodePoint(0)===sA)return this.consumeCodePoint(),Ct;break;case RA:return Lt}return st(e)?(this.consumeWhiteSpace(),Ht):et(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):at(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){var e=[],A=this.consumeCodePoint();while(tt(A)&&e.length<6)e.push(A),A=this.consumeCodePoint();var t=!1;while(A===_A&&e.length<6)e.push(A),A=this.consumeCodePoint(),t=!0;if(t){var i=parseInt(c.apply(void 0,e.map((function(e){return e===_A?VA:e}))),16),n=parseInt(c.apply(void 0,e.map((function(e){return e===_A?JA:e}))),16);return{type:30,start:i,end:n}}var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===pA&&tt(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();var o=[];while(tt(A)&&o.length<6)o.push(A),A=this.consumeCodePoint();n=parseInt(c.apply(void 0,o),16);return{type:30,start:r,end:n}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===uA?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===uA?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===RA)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===dA||A===oA){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===RA||this.peekCodePoint(0)===hA)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Ut)}while(1){var i=this.consumeCodePoint();if(i===RA||i===hA)return{type:22,value:c.apply(void 0,e)};if(st(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===RA||this.peekCodePoint(0)===hA?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Ut);if(i===oA||i===dA||i===uA||ct(i))return this.consumeBadUrlRemnants(),Ut;if(i===iA){if(!dt(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Ut;e.push(this.consumeEscapedCodePoint())}else e.push(i)}},e.prototype.consumeWhiteSpace=function(){while(st(this.peekCodePoint(0)))this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){while(1){var e=this.consumeCodePoint();if(e===hA||e===RA)return;dt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){var A=5e4,t="";while(e>0){var i=Math.min(A,e);t+=c.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){var A="",t=0;do{var i=this._value[t];if(i===RA||void 0===i||i===e)return A+=this.consumeStringSlice(t),{type:0,value:A};if(i===AA)return this._value.splice(0,t),Ft;if(i===iA){var n=this._value[t+1];n!==RA&&void 0!==n&&(n===AA?(A+=this.consumeStringSlice(t),t=-1,this._value.shift()):dt(i,n)&&(A+=this.consumeStringSlice(t),A+=c(this.consumeEscapedCodePoint()),t=-1))}t++}while(1)},e.prototype.consumeNumber=function(){var e=[],A=qe,t=this.peekCodePoint(0);t!==IA&&t!==pA||e.push(this.consumeCodePoint());while(et(this.peekCodePoint(0)))e.push(this.consumeCodePoint());t=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(t===LA&&et(i)){e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=eA;while(et(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}t=this.peekCodePoint(0),i=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((t===XA||t===jA)&&((i===IA||i===pA)&&et(n)||et(i))){e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=eA;while(et(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}return[gt(e),A]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),A=e[0],t=e[1],i=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ut(i,n,r)){var o=this.consumeName();return{type:15,number:A,flags:t,unit:o}}return i===cA?(this.consumeCodePoint(),{type:16,number:A,flags:t}):{type:17,number:A,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(tt(e)){var A=c(e);while(tt(this.peekCodePoint(0))&&A.length<6)A+=c(this.consumeCodePoint());st(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(A,16);return 0===t||At(t)||t>1114111?EA:t}return e===RA?EA:e},e.prototype.consumeName=function(){var e="";while(1){var A=this.consumeCodePoint();if(lt(A))e+=c(A);else{if(!dt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Mt=function(){function e(e){this._tokens=e}return e.create=function(A){var t=new Ot;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){var e=this.consumeToken();while(31===e.type)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var A=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){var e=[];while(1){var A=this.consumeComponentValue();if(32===A.type)return e;e.push(A),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){var A={type:e,values:[]},t=this.consumeToken();while(1){if(32===t.type||zt(t,e))return A;this.reconsumeToken(t),A.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(e){var A={name:e.value,values:[],type:18};while(1){var t=this.consumeToken();if(32===t.type||3===t.type)return A;this.reconsumeToken(t),A.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?Lt:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Tt=function(e){return 15===e.type},Nt=function(e){return 17===e.type},Kt=function(e){return 20===e.type},Pt=function(e){return 0===e.type},Rt=function(e,A){return Kt(e)&&e.value===A},Vt=function(e){return 31!==e.type},Gt=function(e){return 31!==e.type&&4!==e.type},jt=function(e){var A=[],t=[];return e.forEach((function(e){if(4===e.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return A.push(t),void(t=[])}31!==e.type&&t.push(e)})),t.length&&A.push(t),A},zt=function(e,A){return 11===A&&12===e.type||(28===A&&29===e.type||2===A&&3===e.type)},Zt=function(e){return 17===e.type||15===e.type},Wt=function(e){return 16===e.type||Zt(e)},Yt=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Xt={type:17,number:0,flags:qe},Jt={type:16,number:50,flags:qe},$t={type:16,number:100,flags:qe},qt=function(e,A,t){var i=e[0],n=e[1];return[ei(i,A),ei("undefined"!==typeof n?n:i,t)]},ei=function(e,A){if(16===e.type)return e.number/100*A;if(Tt(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Ai="deg",ti="grad",ii="rad",ni="turn",ri={name:"angle",parse:function(e,A){if(15===A.type)switch(A.unit){case Ai:return Math.PI*A.number/180;case ti:return Math.PI/200*A.number;case ii:return A.number;case ni:return 2*Math.PI*A.number}throw new Error("Unsupported angle type")}},oi=function(e){return 15===e.type&&(e.unit===Ai||e.unit===ti||e.unit===ii||e.unit===ni)},si=function(e){var A=e.filter(Kt).map((function(e){return e.value})).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xt,Xt];case"to top":case"bottom":return ai(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xt,$t];case"to right":case"left":return ai(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$t,$t];case"to bottom":case"top":return ai(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$t,Xt];case"to left":case"right":return ai(270)}return 0},ai=function(e){return Math.PI*e/180},li={name:"color",parse:function(e,A){if(18===A.type){var t=mi[A.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(5===A.type){if(3===A.value.length){var i=A.value.substring(0,1),n=A.value.substring(1,2),r=A.value.substring(2,3);return ui(parseInt(i+i,16),parseInt(n+n,16),parseInt(r+r,16),1)}if(4===A.value.length){i=A.value.substring(0,1),n=A.value.substring(1,2),r=A.value.substring(2,3);var o=A.value.substring(3,4);return ui(parseInt(i+i,16),parseInt(n+n,16),parseInt(r+r,16),parseInt(o+o,16)/255)}if(6===A.value.length){i=A.value.substring(0,2),n=A.value.substring(2,4),r=A.value.substring(4,6);return ui(parseInt(i,16),parseInt(n,16),parseInt(r,16),1)}if(8===A.value.length){i=A.value.substring(0,2),n=A.value.substring(2,4),r=A.value.substring(4,6),o=A.value.substring(6,8);return ui(parseInt(i,16),parseInt(n,16),parseInt(r,16),parseInt(o,16)/255)}}if(20===A.type){var s=wi[A.value.toUpperCase()];if("undefined"!==typeof s)return s}return wi.TRANSPARENT}},ci=function(e){return 0===(255&e)},di=function(e){var A=255&e,t=255&e>>8,i=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+i+","+t+","+A/255+")":"rgb("+n+","+i+","+t+")"},ui=function(e,A,t,i){return(e<<24|A<<16|t<<8|Math.round(255*i)<<0)>>>0},hi=function(e,A){if(17===e.type)return e.number;if(16===e.type){var t=3===A?1:255;return 3===A?e.number/100*t:Math.round(e.number/100*t)}return 0},gi=function(e,A){var t=A.filter(Gt);if(3===t.length){var i=t.map(hi),n=i[0],r=i[1],o=i[2];return ui(n,r,o,1)}if(4===t.length){var s=t.map(hi),a=(n=s[0],r=s[1],o=s[2],s[3]);return ui(n,r,o,a)}return 0};function pi(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<.5?A:t<2/3?6*(A-e)*(2/3-t)+e:e}var fi=function(e,A){var t=A.filter(Gt),i=t[0],n=t[1],r=t[2],o=t[3],s=(17===i.type?ai(i.number):ri.parse(e,i))/(2*Math.PI),a=Wt(n)?n.number/100:0,l=Wt(r)?r.number/100:0,c="undefined"!==typeof o&&Wt(o)?ei(o,1):1;if(0===a)return ui(255*l,255*l,255*l,1);var d=l<=.5?l*(a+1):l+a-l*a,u=2*l-d,h=pi(u,d,s+1/3),g=pi(u,d,s),p=pi(u,d,s-1/3);return ui(255*h,255*g,255*p,c)},mi={hsl:fi,hsla:fi,rgb:gi,rgba:gi},Bi=function(e,A){return li.parse(e,Mt.create(A).parseComponentValue())},wi={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},vi={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map((function(e){if(Kt(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},yi={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ci=function(e,A){var t=li.parse(e,A[0]),i=A[1];return i&&Wt(i)?{color:t,stop:i}:{color:t,stop:null}},bi=function(e,A){var t=e[0],i=e[e.length-1];null===t.stop&&(t.stop=Xt),null===i.stop&&(i.stop=$t);for(var n=[],r=0,o=0;o<e.length;o++){var s=e[o].stop;if(null!==s){var a=ei(s,A);a>r?n.push(a):n.push(r),r=a}else n.push(null)}var l=null;for(o=0;o<n.length;o++){var c=n[o];if(null===c)null===l&&(l=o);else if(null!==l){for(var d=o-l,u=n[l-1],h=(c-u)/(d+1),g=1;g<=d;g++)n[l+g-1]=h*g;l=null}}return e.map((function(e,t){var i=e.color;return{color:i,stop:Math.max(Math.min(1,n[t]/A),0)}}))},_i=function(e,A,t){var i=A/2,n=t/2,r=ei(e[0],A)-i,o=n-ei(e[1],t);return(Math.atan2(o,r)+2*Math.PI)%(2*Math.PI)},Qi=function(e,A,t){var i="number"===typeof e?e:_i(e,A,t),n=Math.abs(A*Math.sin(i))+Math.abs(t*Math.cos(i)),r=A/2,o=t/2,s=n/2,a=Math.sin(i-Math.PI/2)*s,l=Math.cos(i-Math.PI/2)*s;return[n,r-l,r+l,o-a,o+a]},Ui=function(e,A){return Math.sqrt(e*e+A*A)},Fi=function(e,A,t,i,n){var r=[[0,0],[0,A],[e,0],[e,A]];return r.reduce((function(e,A){var r=A[0],o=A[1],s=Ui(t-r,i-o);return(n?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:A,optimumDistance:s}:e}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},xi=function(e,A,t,i,n){var r=0,o=0;switch(e.size){case 0:0===e.shape?r=o=Math.min(Math.abs(A),Math.abs(A-i),Math.abs(t),Math.abs(t-n)):1===e.shape&&(r=Math.min(Math.abs(A),Math.abs(A-i)),o=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(0===e.shape)r=o=Math.min(Ui(A,t),Ui(A,t-n),Ui(A-i,t),Ui(A-i,t-n));else if(1===e.shape){var s=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(A),Math.abs(A-i)),a=Fi(i,n,A,t,!0),l=a[0],c=a[1];r=Ui(l-A,(c-t)/s),o=s*r}break;case 1:0===e.shape?r=o=Math.max(Math.abs(A),Math.abs(A-i),Math.abs(t),Math.abs(t-n)):1===e.shape&&(r=Math.max(Math.abs(A),Math.abs(A-i)),o=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(0===e.shape)r=o=Math.max(Ui(A,t),Ui(A,t-n),Ui(A-i,t),Ui(A-i,t-n));else if(1===e.shape){s=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(A),Math.abs(A-i));var d=Fi(i,n,A,t,!1);l=d[0],c=d[1];r=Ui(l-A,(c-t)/s),o=s*r}break}return Array.isArray(e.size)&&(r=ei(e.size[0],i),o=2===e.size.length?ei(e.size[1],n):r),[r,o]},Ei=function(e,A){var t=ai(180),i=[];return jt(A).forEach((function(A,n){if(0===n){var r=A[0];if(20===r.type&&"to"===r.value)return void(t=si(A));if(oi(r))return void(t=ri.parse(e,r))}var o=Ci(e,A);i.push(o)})),{angle:t,stops:i,type:1}},ki=function(e,A){var t=ai(180),i=[];return jt(A).forEach((function(A,n){if(0===n){var r=A[0];if(20===r.type&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(t=si(A));if(oi(r))return void(t=(ri.parse(e,r)+ai(270))%ai(360))}var o=Ci(e,A);i.push(o)})),{angle:t,stops:i,type:1}},Ii=function(e,A){var t=ai(180),i=[],n=1,r=0,o=3,s=[];return jt(A).forEach((function(A,t){var r=A[0];if(0===t){if(Kt(r)&&"linear"===r.value)return void(n=1);if(Kt(r)&&"radial"===r.value)return void(n=2)}if(18===r.type)if("from"===r.name){var o=li.parse(e,r.values[0]);i.push({stop:Xt,color:o})}else if("to"===r.name){o=li.parse(e,r.values[0]);i.push({stop:$t,color:o})}else if("color-stop"===r.name){var s=r.values.filter(Gt);if(2===s.length){o=li.parse(e,s[1]);var a=s[0];Nt(a)&&i.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===n?{angle:(t+ai(180))%ai(360),stops:i,type:n}:{size:o,shape:r,stops:i,position:s,type:n}},Si="closest-side",Di="farthest-side",Hi="closest-corner",Li="farthest-corner",Oi="circle",Mi="ellipse",Ti="cover",Ni="contain",Ki=function(e,A){var t=0,i=3,n=[],r=[];return jt(A).forEach((function(A,o){var s=!0;if(0===o){var a=!1;s=A.reduce((function(e,A){if(a)if(Kt(A))switch(A.value){case"center":return r.push(Jt),e;case"top":case"left":return r.push(Xt),e;case"right":case"bottom":return r.push($t),e}else(Wt(A)||Zt(A))&&r.push(A);else if(Kt(A))switch(A.value){case Oi:return t=0,!1;case Mi:return t=1,!1;case"at":return a=!0,!1;case Si:return i=0,!1;case Ti:case Di:return i=1,!1;case Ni:case Hi:return i=2,!1;case Li:return i=3,!1}else if(Zt(A)||Wt(A))return Array.isArray(i)||(i=[]),i.push(A),!1;return e}),s)}if(s){var l=Ci(e,A);n.push(l)}})),{size:i,shape:t,stops:n,position:r,type:2}},Pi=function(e,A){var t=0,i=3,n=[],r=[];return jt(A).forEach((function(A,o){var s=!0;if(0===o?s=A.reduce((function(e,A){if(Kt(A))switch(A.value){case"center":return r.push(Jt),!1;case"top":case"left":return r.push(Xt),!1;case"right":case"bottom":return r.push($t),!1}else if(Wt(A)||Zt(A))return r.push(A),!1;return e}),s):1===o&&(s=A.reduce((function(e,A){if(Kt(A))switch(A.value){case Oi:return t=0,!1;case Mi:return t=1,!1;case Ni:case Si:return i=0,!1;case Di:return i=1,!1;case Hi:return i=2,!1;case Ti:case Li:return i=3,!1}else if(Zt(A)||Wt(A))return Array.isArray(i)||(i=[]),i.push(A),!1;return e}),s)),s){var a=Ci(e,A);n.push(a)}})),{size:i,shape:t,stops:n,position:r,type:2}},Ri=function(e){return 1===e.type},Vi=function(e){return 2===e.type},Gi={name:"image",parse:function(e,A){if(22===A.type){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(18===A.type){var i=Zi[A.name];if("undefined"===typeof i)throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return i(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function ji(e){return!(20===e.type&&"none"===e.value)&&(18!==e.type||!!Zi[e.name])}var zi,Zi={"linear-gradient":Ei,"-moz-linear-gradient":ki,"-ms-linear-gradient":ki,"-o-linear-gradient":ki,"-webkit-linear-gradient":ki,"radial-gradient":Ki,"-moz-radial-gradient":Pi,"-ms-radial-gradient":Pi,"-o-radial-gradient":Pi,"-webkit-radial-gradient":Pi,"-webkit-gradient":Ii},Wi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter((function(e){return Gt(e)&&ji(e)})).map((function(A){return Gi.parse(e,A)}))}},Yi={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map((function(e){if(Kt(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Xi={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return jt(A).map((function(e){return e.filter(Wt)})).map(Yt)}},Ji={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return jt(A).map((function(e){return e.filter(Kt).map((function(e){return e.value})).join(" ")})).map($i)}},$i=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(e){e["AUTO"]="auto",e["CONTAIN"]="contain",e["COVER"]="cover"})(zi||(zi={}));var qi,en={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return jt(A).map((function(e){return e.filter(An)}))}},An=function(e){return Kt(e)||Wt(e)},tn=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},nn=tn("top"),rn=tn("right"),on=tn("bottom"),sn=tn("left"),an=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,A){return Yt(A.filter(Wt))}}},ln=an("top-left"),cn=an("top-right"),dn=an("bottom-right"),un=an("bottom-left"),hn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},gn=hn("top"),pn=hn("right"),fn=hn("bottom"),mn=hn("left"),Bn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Tt(A)?A.number:0}}},wn=Bn("top"),vn=Bn("right"),yn=Bn("bottom"),Cn=Bn("left"),bn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_n={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},Qn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(Kt).reduce((function(e,A){return e|Un(A.value)}),0)}},Un=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Fn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},xn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return 20===A.type&&"normal"===A.value?0:17===A.type||15===A.type?A.number:0}};(function(e){e["NORMAL"]="normal",e["STRICT"]="strict"})(qi||(qi={}));var En,kn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"strict":return qi.STRICT;case"normal":default:return qi.NORMAL}}},In={name:"line-height",initialValue:"normal",prefix:!1,type:4},Sn=function(e,A){return Kt(e)&&"normal"===e.value?1.2*A:17===e.type?A*e.number:Wt(e)?ei(e,A):A},Dn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return 20===A.type&&"none"===A.value?null:Gi.parse(e,A)}},Hn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Ln={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},On=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Mn=On("top"),Tn=On("right"),Nn=On("bottom"),Kn=On("left"),Pn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(Kt).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Rn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},Vn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Gn=Vn("top"),jn=Vn("right"),zn=Vn("bottom"),Zn=Vn("left"),Wn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Yn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Xn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return 1===A.length&&Rt(A[0],"none")?[]:jt(A).map((function(A){for(var t={color:wi.TRANSPARENT,offsetX:Xt,offsetY:Xt,blur:Xt},i=0,n=0;n<A.length;n++){var r=A[n];Zt(r)?(0===i?t.offsetX=r:1===i?t.offsetY=r:t.blur=r,i++):t.color=li.parse(e,r)}return t}))}},Jn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},$n={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(20===A.type&&"none"===A.value)return null;if(18===A.type){var t=Ar[A.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},qn=function(e){var A=e.filter((function(e){return 17===e.type})).map((function(e){return e.number}));return 6===A.length?A:null},er=function(e){var A=e.filter((function(e){return 17===e.type})).map((function(e){return e.number})),t=A[0],i=A[1];A[2],A[3];var n=A[4],r=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var o=A[12],s=A[13];return A[14],A[15],16===A.length?[t,i,n,r,o,s]:null},Ar={matrix:qn,matrix3d:er},tr={type:16,number:50,flags:qe},ir=[tr,tr],nr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(Wt);return 2!==t.length?ir:[t[0],t[1]]}},rr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(e){e["NORMAL"]="normal",e["BREAK_ALL"]="break-all",e["KEEP_ALL"]="keep-all"})(En||(En={}));for(var or={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return En.BREAK_ALL;case"keep-all":return En.KEEP_ALL;case"normal":default:return En.NORMAL}}},sr={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(20===A.type)return{auto:!0,order:0};if(Nt(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},ar={name:"time",parse:function(e,A){if(15===A.type)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},lr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Nt(A)?A.number:1}},cr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(Kt).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},ur={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],i=[];return A.forEach((function(e){switch(e.type){case 20:case 0:t.push(e.value);break;case 17:t.push(e.number.toString());break;case 4:i.push(t.join(" ")),t.length=0;break}})),t.length&&i.push(t.join(" ")),i.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},hr={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},gr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){if(Nt(A))return A.number;if(Kt(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},pr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(Kt).map((function(e){return e.value}))}},fr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},mr=function(e,A){return 0!==(e&A)},Br={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A}},wr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return null;var t=A[0];if(20===t.type&&"none"===t.value)return null;for(var i=[],n=A.filter(Vt),r=0;r<n.length;r++){var o=n[r],s=n[r+1];if(20===o.type){var a=s&&Nt(s)?s.number:1;i.push({counter:o.value,increment:a})}}return i}},vr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return[];for(var t=[],i=A.filter(Vt),n=0;n<i.length;n++){var r=i[n],o=i[n+1];if(Kt(r)&&"none"!==r.value){var s=o&&Nt(o)?o.number:0;t.push({counter:r.value,reset:s})}}return t}},yr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Tt).map((function(A){return ar.parse(e,A)}))}},Cr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return null;var t=A[0];if(20===t.type&&"none"===t.value)return null;var i=[],n=A.filter(Pt);if(n.length%2!==0)return null;for(var r=0;r<n.length;r+=2){var o=n[r].value,s=n[r+1].value;i.push({open:o,close:s})}return i}},br=function(e,A,t){if(!e)return"";var i=e[Math.min(A,e.length-1)];return i?t?i.open:i.close:""},_r={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return 1===A.length&&Rt(A[0],"none")?[]:jt(A).map((function(A){for(var t={color:255,offsetX:Xt,offsetY:Xt,blur:Xt,spread:Xt,inset:!1},i=0,n=0;n<A.length;n++){var r=A[n];Rt(r,"inset")?t.inset=!0:Zt(r)?(0===i?t.offsetX=r:1===i?t.offsetY=r:2===i?t.blur=r:t.spread=r,i++):t.color=li.parse(e,r)}return t}))}},Qr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[0,1,2],i=[];return A.filter(Kt).forEach((function(e){switch(e.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}})),t.forEach((function(e){-1===i.indexOf(e)&&i.push(e)})),i}},Ur={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Fr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Tt(A)?A.number:0}},xr=function(){function e(e,A){var t,i;this.animationDuration=Ir(e,yr,A.animationDuration),this.backgroundClip=Ir(e,vi,A.backgroundClip),this.backgroundColor=Ir(e,yi,A.backgroundColor),this.backgroundImage=Ir(e,Wi,A.backgroundImage),this.backgroundOrigin=Ir(e,Yi,A.backgroundOrigin),this.backgroundPosition=Ir(e,Xi,A.backgroundPosition),this.backgroundRepeat=Ir(e,Ji,A.backgroundRepeat),this.backgroundSize=Ir(e,en,A.backgroundSize),this.borderTopColor=Ir(e,nn,A.borderTopColor),this.borderRightColor=Ir(e,rn,A.borderRightColor),this.borderBottomColor=Ir(e,on,A.borderBottomColor),this.borderLeftColor=Ir(e,sn,A.borderLeftColor),this.borderTopLeftRadius=Ir(e,ln,A.borderTopLeftRadius),this.borderTopRightRadius=Ir(e,cn,A.borderTopRightRadius),this.borderBottomRightRadius=Ir(e,dn,A.borderBottomRightRadius),this.borderBottomLeftRadius=Ir(e,un,A.borderBottomLeftRadius),this.borderTopStyle=Ir(e,gn,A.borderTopStyle),this.borderRightStyle=Ir(e,pn,A.borderRightStyle),this.borderBottomStyle=Ir(e,fn,A.borderBottomStyle),this.borderLeftStyle=Ir(e,mn,A.borderLeftStyle),this.borderTopWidth=Ir(e,wn,A.borderTopWidth),this.borderRightWidth=Ir(e,vn,A.borderRightWidth),this.borderBottomWidth=Ir(e,yn,A.borderBottomWidth),this.borderLeftWidth=Ir(e,Cn,A.borderLeftWidth),this.boxShadow=Ir(e,_r,A.boxShadow),this.color=Ir(e,bn,A.color),this.direction=Ir(e,_n,A.direction),this.display=Ir(e,Qn,A.display),this.float=Ir(e,Fn,A.cssFloat),this.fontFamily=Ir(e,ur,A.fontFamily),this.fontSize=Ir(e,hr,A.fontSize),this.fontStyle=Ir(e,fr,A.fontStyle),this.fontVariant=Ir(e,pr,A.fontVariant),this.fontWeight=Ir(e,gr,A.fontWeight),this.letterSpacing=Ir(e,xn,A.letterSpacing),this.lineBreak=Ir(e,kn,A.lineBreak),this.lineHeight=Ir(e,In,A.lineHeight),this.listStyleImage=Ir(e,Dn,A.listStyleImage),this.listStylePosition=Ir(e,Hn,A.listStylePosition),this.listStyleType=Ir(e,Ln,A.listStyleType),this.marginTop=Ir(e,Mn,A.marginTop),this.marginRight=Ir(e,Tn,A.marginRight),this.marginBottom=Ir(e,Nn,A.marginBottom),this.marginLeft=Ir(e,Kn,A.marginLeft),this.opacity=Ir(e,lr,A.opacity);var n=Ir(e,Pn,A.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Ir(e,Rn,A.overflowWrap),this.paddingTop=Ir(e,Gn,A.paddingTop),this.paddingRight=Ir(e,jn,A.paddingRight),this.paddingBottom=Ir(e,zn,A.paddingBottom),this.paddingLeft=Ir(e,Zn,A.paddingLeft),this.paintOrder=Ir(e,Qr,A.paintOrder),this.position=Ir(e,Yn,A.position),this.textAlign=Ir(e,Wn,A.textAlign),this.textDecorationColor=Ir(e,cr,null!==(t=A.textDecorationColor)&&void 0!==t?t:A.color),this.textDecorationLine=Ir(e,dr,null!==(i=A.textDecorationLine)&&void 0!==i?i:A.textDecoration),this.textShadow=Ir(e,Xn,A.textShadow),this.textTransform=Ir(e,Jn,A.textTransform),this.transform=Ir(e,$n,A.transform),this.transformOrigin=Ir(e,nr,A.transformOrigin),this.visibility=Ir(e,rr,A.visibility),this.webkitTextStrokeColor=Ir(e,Ur,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ir(e,Fr,A.webkitTextStrokeWidth),this.wordBreak=Ir(e,or,A.wordBreak),this.zIndex=Ir(e,sr,A.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ci(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return mr(this.display,4)||mr(this.display,33554432)||mr(this.display,268435456)||mr(this.display,536870912)||mr(this.display,67108864)||mr(this.display,134217728)},e}(),Er=function(){function e(e,A){this.content=Ir(e,Br,A.content),this.quotes=Ir(e,Cr,A.quotes)}return e}(),kr=function(){function e(e,A){this.counterIncrement=Ir(e,wr,A.counterIncrement),this.counterReset=Ir(e,vr,A.counterReset)}return e}(),Ir=function(e,A,t){var i=new Ot,n=null!==t&&"undefined"!==typeof t?t.toString():A.initialValue;i.write(n);var r=new Mt(i.read());switch(A.type){case 2:var o=r.parseComponentValue();return A.parse(e,Kt(o)?o.value:A.initialValue);case 0:return A.parse(e,r.parseComponentValue());case 1:return A.parse(e,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(A.format){case"angle":return ri.parse(e,r.parseComponentValue());case"color":return li.parse(e,r.parseComponentValue());case"image":return Gi.parse(e,r.parseComponentValue());case"length":var s=r.parseComponentValue();return Zt(s)?s:Xt;case"length-percentage":var a=r.parseComponentValue();return Wt(a)?a:Xt;case"time":return ar.parse(e,r.parseComponentValue())}break}},Sr="data-html2canvas-debug",Dr=function(e){var A=e.getAttribute(Sr);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Hr=function(e,A){var t=Dr(e);return 1===t||A===t},Lr=function(){function e(e,A){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Hr(A,3),this.styles=new xr(e,window.getComputedStyle(A,null)),ks(A)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(A.style.animationDuration="0s"),null!==this.styles.transform&&(A.style.transform="none")),this.bounds=s(this.context,A),Hr(A,4)&&(this.flags|=16)}return e}(),Or="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tr="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Nr=0;Nr<Mr.length;Nr++)Tr[Mr.charCodeAt(Nr)]=Nr;for(var Kr=function(e){var A,t,i,n,r,o=.75*e.length,s=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(A=0;A<s;A+=4)t=Tr[e.charCodeAt(A)],i=Tr[e.charCodeAt(A+1)],n=Tr[e.charCodeAt(A+2)],r=Tr[e.charCodeAt(A+3)],c[a++]=t<<2|i>>4,c[a++]=(15&i)<<4|n>>2,c[a++]=(3&n)<<6|63&r;return l},Pr=function(e){for(var A=e.length,t=[],i=0;i<A;i+=2)t.push(e[i+1]<<8|e[i]);return t},Rr=function(e){for(var A=e.length,t=[],i=0;i<A;i+=4)t.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return t},Vr=5,Gr=11,jr=2,zr=Gr-Vr,Zr=65536>>Vr,Wr=1<<Vr,Yr=Wr-1,Xr=1024>>Vr,Jr=Zr+Xr,$r=Jr,qr=32,eo=$r+qr,Ao=65536>>Gr,to=1<<zr,io=to-1,no=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},ro=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},oo=function(e,A){var t=Kr(e),i=Array.isArray(t)?Rr(t):new Uint32Array(t),n=Array.isArray(t)?Pr(t):new Uint16Array(t),r=24,o=no(n,r/2,i[4]/2),s=2===i[5]?no(n,(r+i[4])/2):ro(i,Math.ceil((r+i[4])/4));return new so(i[0],i[1],i[2],i[3],o,s)},so=function(){function e(e,A,t,i,n,r){this.initialValue=e,this.errorValue=A,this.highStart=t,this.highValueIndex=i,this.index=n,this.data=r}return e.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>Vr],A=(A<<jr)+(e&Yr),this.data[A];if(e<=65535)return A=this.index[Zr+(e-55296>>Vr)],A=(A<<jr)+(e&Yr),this.data[A];if(e<this.highStart)return A=eo-Ao+(e>>Gr),A=this.index[A],A+=e>>Vr&io,A=this.index[A],A=(A<<jr)+(e&Yr),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lo="undefined"===typeof Uint8Array?[]:new Uint8Array(256),co=0;co<ao.length;co++)lo[ao.charCodeAt(co)]=co;var uo,ho=1,go=2,po=3,fo=4,mo=5,Bo=7,wo=8,vo=9,yo=10,Co=11,bo=12,_o=13,Qo=14,Uo=15,Fo=function(e){var A=[],t=0,i=e.length;while(t<i){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<i){var r=e.charCodeAt(t++);56320===(64512&r)?A.push(((1023&n)<<10)+(1023&r)+65536):(A.push(n),t--)}else A.push(n)}return A},xo=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";var i=[],n=-1,r="";while(++n<t){var o=e[n];o<=65535?i.push(o):(o-=65536,i.push(55296+(o>>10),o%1024+56320)),(n+1===t||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},Eo=oo(Or),ko="×",Io="÷",So=function(e){return Eo.get(e)},Do=function(e,A,t){var i=t-2,n=A[i],r=A[t-1],o=A[t];if(r===go&&o===po)return ko;if(r===go||r===po||r===fo)return Io;if(o===go||o===po||o===fo)return Io;if(r===wo&&-1!==[wo,vo,Co,bo].indexOf(o))return ko;if((r===Co||r===vo)&&(o===vo||o===yo))return ko;if((r===bo||r===yo)&&o===yo)return ko;if(o===_o||o===mo)return ko;if(o===Bo)return ko;if(r===ho)return ko;if(r===_o&&o===Qo){while(n===mo)n=A[--i];if(n===Qo)return ko}if(r===Uo&&o===Uo){var s=0;while(n===Uo)s++,n=A[--i];if(s%2===0)return ko}return Io},Ho=function(e){var A=Fo(e),t=A.length,i=0,n=0,r=A.map(So);return{next:function(){if(i>=t)return{done:!0,value:null};var e=ko;while(i<t&&(e=Do(A,r,++i))===ko);if(e!==ko||i===t){var o=xo.apply(null,A.slice(n,i));return n=i,{value:o,done:!1}}return{done:!0,value:null}}}},Lo=function(e){var A,t=Ho(e),i=[];while(!(A=t.next()).done)A.value&&i.push(A.value.slice());return i},Oo=function(e){var A=123;if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var i=e.createElement("boundtest");i.style.height=A+"px",i.style.display="block",e.body.appendChild(i),t.selectNode(i);var n=t.getBoundingClientRect(),r=Math.round(n.height);if(e.body.removeChild(i),r===A)return!0}}return!1},Mo=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML="function"===typeof"".repeat?"&#128104;".repeat(10):"";var i=A.firstChild,n=l(i.data).map((function(e){return c(e)})),r=0,o={},s=n.every((function(e,A){t.setStart(i,r),t.setEnd(i,r+e.length);var n=t.getBoundingClientRect();r+=e.length;var s=n.x>o.x||n.y>o.y;return o=n,0===A||s}));return e.body.removeChild(A),s},To=function(){return"undefined"!==typeof(new Image).crossOrigin},No=function(){return"string"===typeof(new XMLHttpRequest).responseType},Ko=function(e){var A=new Image,t=e.createElement("canvas"),i=t.getContext("2d");if(!i)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(A,0,0),t.toDataURL()}catch(jA){return!1}return!0},Po=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ro=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var i=A.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,t,t);var n=new Image,r=A.toDataURL();n.src=r;var o=Vo(t,t,0,0,n);return i.fillStyle="red",i.fillRect(0,0,t,t),Go(o).then((function(A){i.drawImage(A,0,0);var n=i.getImageData(0,0,t,t).data;i.fillStyle="red",i.fillRect(0,0,t,t);var o=e.createElement("div");return o.style.backgroundImage="url("+r+")",o.style.height=t+"px",Po(n)?Go(Vo(t,t,0,0,o)):Promise.reject(!1)})).then((function(e){return i.drawImage(e,0,0),Po(i.getImageData(0,0,t,t).data)})).catch((function(){return!1}))},Vo=function(e,A,t,i,n){var r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",A.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",i.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(n),o},Go=function(e){return new Promise((function(A,t){var i=new Image;i.onload=function(){return A(i)},i.onerror=t,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},jo={get SUPPORT_RANGE_BOUNDS(){var e=Oo(document);return Object.defineProperty(jo,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=jo.SUPPORT_RANGE_BOUNDS&&Mo(document);return Object.defineProperty(jo,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Ko(document);return Object.defineProperty(jo,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?Ro(document):Promise.resolve(!1);return Object.defineProperty(jo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=To();return Object.defineProperty(jo,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=No();return Object.defineProperty(jo,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(jo,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(jo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},zo=function(){function e(e,A){this.text=e,this.bounds=A}return e}(),Zo=function(e,A,t,i){var n=$o(A,t),r=[],s=0;return n.forEach((function(A){if(t.textDecorationLine.length||A.trim().length>0)if(jo.SUPPORT_RANGE_BOUNDS){var n=Yo(i,s,A.length).getClientRects();if(n.length>1){var a=Xo(A),l=0;a.forEach((function(A){r.push(new zo(A,o.fromDOMRectList(e,Yo(i,l+s,A.length).getClientRects()))),l+=A.length}))}else r.push(new zo(A,o.fromDOMRectList(e,n)))}else{var c=i.splitText(A.length);r.push(new zo(A,Wo(e,i))),i=c}else jo.SUPPORT_RANGE_BOUNDS||(i=i.splitText(A.length));s+=A.length})),r},Wo=function(e,A){var t=A.ownerDocument;if(t){var i=t.createElement("html2canvaswrapper");i.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(i,A);var r=s(e,i);return i.firstChild&&n.replaceChild(i.firstChild,i),r}}return o.EMPTY},Yo=function(e,A,t){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var n=i.createRange();return n.setStart(e,A),n.setEnd(e,A+t),n},Xo=function(e){if(jo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map((function(e){return e.segment}))}return Lo(e)},Jo=function(e,A){if(jo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return es(e,A)},$o=function(e,A){return 0!==A.letterSpacing?Xo(e):Jo(e,A)},qo=[32,160,4961,65792,65793,4153,4241],es=function(e,A){var t,i=Xe(e,{lineBreak:A.lineBreak,wordBreak:"break-word"===A.overflowWrap?"break-word":A.wordBreak}),n=[],r=function(){if(t.value){var e=t.value.slice(),A=l(e),i="";A.forEach((function(e){-1===qo.indexOf(e)?i+=c(e):(i.length&&n.push(i),n.push(c(e)),i="")})),i.length&&n.push(i)}};while(!(t=i.next()).done)r();return n},As=function(){function e(e,A,t){this.text=ts(A.data,t.textTransform),this.textBounds=Zo(e,this.text,t,A)}return e}(),ts=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(is,ns);case 2:return e.toUpperCase();default:return e}},is=/(^|\s|:|-|\(|\))([a-z])/g,ns=function(e,A,t){return e.length>0?A+t.toUpperCase():e},rs=function(e){function t(A,t){var i=e.call(this,A,t)||this;return i.src=t.currentSrc||t.src,i.intrinsicWidth=t.naturalWidth,i.intrinsicHeight=t.naturalHeight,i.context.cache.addImage(i.src),i}return A(t,e),t}(Lr),os=function(e){function t(A,t){var i=e.call(this,A,t)||this;return i.canvas=t,i.intrinsicWidth=t.width,i.intrinsicHeight=t.height,i}return A(t,e),t}(Lr),ss=function(e){function t(A,t){var i=e.call(this,A,t)||this,n=new XMLSerializer,r=s(A,t);return t.setAttribute("width",r.width+"px"),t.setAttribute("height",r.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),i.intrinsicWidth=t.width.baseVal.value,i.intrinsicHeight=t.height.baseVal.value,i.context.cache.addImage(i.svg),i}return A(t,e),t}(Lr),as=function(e){function t(A,t){var i=e.call(this,A,t)||this;return i.value=t.value,i}return A(t,e),t}(Lr),ls=function(e){function t(A,t){var i=e.call(this,A,t)||this;return i.start=t.start,i.reversed="boolean"===typeof t.reversed&&!0===t.reversed,i}return A(t,e),t}(Lr),cs=[{type:15,flags:0,unit:"px",number:3}],ds=[{type:16,flags:0,number:50}],us=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new o(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},hs=function(e){var A=e.type===fs?new Array(e.value.length+1).join("•"):e.value;return 0===A.length?e.placeholder||"":A},gs="checkbox",ps="radio",fs="password",ms=707406591,Bs=function(e){function t(A,t){var i=e.call(this,A,t)||this;switch(i.type=t.type.toLowerCase(),i.checked=t.checked,i.value=hs(t),i.type!==gs&&i.type!==ps||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=us(i.bounds)),i.type){case gs:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=cs;break;case ps:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=ds;break}return i}return A(t,e),t}(Lr),ws=function(e){function t(A,t){var i=e.call(this,A,t)||this,n=t.options[t.selectedIndex||0];return i.value=n&&n.text||"",i}return A(t,e),t}(Lr),vs=function(e){function t(A,t){var i=e.call(this,A,t)||this;return i.value=t.value,i}return A(t,e),t}(Lr),ys=function(e){function t(A,t){var i=e.call(this,A,t)||this;i.src=t.src,i.width=parseInt(t.width,10)||0,i.height=parseInt(t.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){i.tree=Qs(A,t.contentWindow.document.documentElement);var n=t.contentWindow.document.documentElement?Bi(A,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):wi.TRANSPARENT,r=t.contentWindow.document.body?Bi(A,getComputedStyle(t.contentWindow.document.body).backgroundColor):wi.TRANSPARENT;i.backgroundColor=ci(n)?ci(r)?i.styles.backgroundColor:r:n}}catch(jA){}return i}return A(t,e),t}(Lr),Cs=["OL","UL","MENU"],bs=function(e,A,t,i){for(var n=A.firstChild,r=void 0;n;n=r)if(r=n.nextSibling,xs(n)&&n.data.trim().length>0)t.textNodes.push(new As(e,n,t.styles));else if(Es(n))if(zs(n)&&n.assignedNodes)n.assignedNodes().forEach((function(A){return bs(e,A,t,i)}));else{var o=_s(e,n);o.styles.isVisible()&&(Us(n,o,i)?o.flags|=4:Fs(o.styles)&&(o.flags|=2),-1!==Cs.indexOf(n.tagName)&&(o.flags|=8),t.elements.push(o),n.slot,n.shadowRoot?bs(e,n.shadowRoot,o,i):Gs(n)||Os(n)||js(n)||bs(e,n,o,i))}},_s=function(e,A){return Ks(A)?new rs(e,A):Ts(A)?new os(e,A):Os(A)?new ss(e,A):Ss(A)?new as(e,A):Ds(A)?new ls(e,A):Hs(A)?new Bs(e,A):js(A)?new ws(e,A):Gs(A)?new vs(e,A):Ps(A)?new ys(e,A):new Lr(e,A)},Qs=function(e,A){var t=_s(e,A);return t.flags|=4,bs(e,A,t,t),t},Us=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Ms(e)&&t.styles.isTransparent()},Fs=function(e){return e.isPositioned()||e.isFloating()},xs=function(e){return e.nodeType===Node.TEXT_NODE},Es=function(e){return e.nodeType===Node.ELEMENT_NODE},ks=function(e){return Es(e)&&"undefined"!==typeof e.style&&!Is(e)},Is=function(e){return"object"===typeof e.className},Ss=function(e){return"LI"===e.tagName},Ds=function(e){return"OL"===e.tagName},Hs=function(e){return"INPUT"===e.tagName},Ls=function(e){return"HTML"===e.tagName},Os=function(e){return"svg"===e.tagName},Ms=function(e){return"BODY"===e.tagName},Ts=function(e){return"CANVAS"===e.tagName},Ns=function(e){return"VIDEO"===e.tagName},Ks=function(e){return"IMG"===e.tagName},Ps=function(e){return"IFRAME"===e.tagName},Rs=function(e){return"STYLE"===e.tagName},Vs=function(e){return"SCRIPT"===e.tagName},Gs=function(e){return"TEXTAREA"===e.tagName},js=function(e){return"SELECT"===e.tagName},zs=function(e){return"SLOT"===e.tagName},Zs=function(e){return e.tagName.indexOf("-")>0},Ws=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var A=this.counters[e];return A&&A.length?A[A.length-1]:1},e.prototype.getCounterValues=function(e){var A=this.counters[e];return A||[]},e.prototype.pop=function(e){var A=this;e.forEach((function(e){return A.counters[e].pop()}))},e.prototype.parse=function(e){var A=this,t=e.counterIncrement,i=e.counterReset,n=!0;null!==t&&t.forEach((function(e){var t=A.counters[e.counter];t&&0!==e.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=e.increment)}));var r=[];return n&&i.forEach((function(e){var t=A.counters[e.counter];r.push(e.counter),t||(t=A.counters[e.counter]=[]),t.push(e.reset)})),r},e}(),Ys={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Js={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},$s={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qs=function(e,A,t,i,n,r){return e<A||e>t?ua(e,n,r.length>0):i.integers.reduce((function(A,t,n){while(e>=t)e-=t,A+=i.values[n];return A}),"")+r},ea=function(e,A,t,i){var n="";do{t||e--,n=i(e)+n,e/=A}while(e*A>=A);return n},Aa=function(e,A,t,i,n){var r=t-A+1;return(e<0?"-":"")+(ea(Math.abs(e),r,i,(function(e){return c(Math.floor(e%r)+A)}))+n)},ta=function(e,A,t){void 0===t&&(t=". ");var i=A.length;return ea(Math.abs(e),i,!1,(function(e){return A[Math.floor(e%i)]}))+t},ia=1,na=2,ra=4,oa=8,sa=function(e,A,t,i,n,r){if(e<-9999||e>9999)return ua(e,4,n.length>0);var o=Math.abs(e),s=n;if(0===o)return A[0]+s;for(var a=0;o>0&&a<=4;a++){var l=o%10;0===l&&mr(r,ia)&&""!==s?s=A[l]+s:l>1||1===l&&0===a||1===l&&1===a&&mr(r,na)||1===l&&1===a&&mr(r,ra)&&e>100||1===l&&a>1&&mr(r,oa)?s=A[l]+(a>0?t[a-1]:"")+s:1===l&&a>0&&(s=t[a-1]+s),o=Math.floor(o/10)}return(e<0?i:"")+s},aa="十百千萬",la="拾佰仟萬",ca="マイナス",da="마이너스",ua=function(e,A,t){var i=t?". ":"",n=t?"、":"",r=t?", ":"",o=t?" ":"";switch(A){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Aa(e,48,57,!0,i);return s.length<4?"0"+s:s;case 4:return ta(e,"〇一二三四五六七八九",n);case 6:return qs(e,1,3999,Ys,3,i).toLowerCase();case 7:return qs(e,1,3999,Ys,3,i);case 8:return Aa(e,945,969,!1,i);case 9:return Aa(e,97,122,!1,i);case 10:return Aa(e,65,90,!1,i);case 11:return Aa(e,1632,1641,!0,i);case 12:case 49:return qs(e,1,9999,Xs,3,i);case 35:return qs(e,1,9999,Xs,3,i).toLowerCase();case 13:return Aa(e,2534,2543,!0,i);case 14:case 30:return Aa(e,6112,6121,!0,i);case 15:return ta(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return ta(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return sa(e,"零一二三四五六七八九",aa,"負",n,na|ra|oa);case 47:return sa(e,"零壹貳參肆伍陸柒捌玖",la,"負",n,ia|na|ra|oa);case 42:return sa(e,"零一二三四五六七八九",aa,"负",n,na|ra|oa);case 41:return sa(e,"零壹贰叁肆伍陆柒捌玖",la,"负",n,ia|na|ra|oa);case 26:return sa(e,"〇一二三四五六七八九","十百千万",ca,n,0);case 25:return sa(e,"零壱弐参四伍六七八九","拾百千万",ca,n,ia|na|ra);case 31:return sa(e,"영일이삼사오육칠팔구","십백천만",da,r,ia|na|ra);case 33:return sa(e,"零一二三四五六七八九","十百千萬",da,r,0);case 32:return sa(e,"零壹貳參四五六七八九","拾百千",da,r,ia|na|ra);case 18:return Aa(e,2406,2415,!0,i);case 20:return qs(e,1,19999,$s,3,i);case 21:return Aa(e,2790,2799,!0,i);case 22:return Aa(e,2662,2671,!0,i);case 22:return qs(e,1,10999,Js,3,i);case 23:return ta(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ta(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Aa(e,3302,3311,!0,i);case 28:return ta(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return ta(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Aa(e,3792,3801,!0,i);case 37:return Aa(e,6160,6169,!0,i);case 38:return Aa(e,4160,4169,!0,i);case 39:return Aa(e,2918,2927,!0,i);case 40:return Aa(e,1776,1785,!0,i);case 43:return Aa(e,3046,3055,!0,i);case 44:return Aa(e,3174,3183,!0,i);case 45:return Aa(e,3664,3673,!0,i);case 46:return Aa(e,3872,3881,!0,i);case 3:default:return Aa(e,48,57,!0,i)}},ha="data-html2canvas-ignore",ga=function(){function e(e,A,t){if(this.context=e,this.options=t,this.scrolledElements=[],this.referenceElement=A,this.counters=new Ws,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,A){var t=this,r=fa(e,A);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,a=r.contentWindow,l=a.document,c=wa(r).then((function(){return i(t,void 0,void 0,(function(){var e,t;return n(this,(function(i){switch(i.label){case 0:return this.scrolledElements.forEach(_a),a&&(a.scrollTo(A.left,A.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===A.top&&a.scrollX===A.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-A.left,a.scrollY-A.top,0,0))),e=this.options.onclone,t=this.clonedReferenceElement,"undefined"===typeof t?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:i.sent(),i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ba(l)]:[3,4];case 3:i.sent(),i.label=4;case 4:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(l,t)})).then((function(){return r}))]:[2,r]}}))}))}));return l.open(),l.write(Ca(document.doctype)+"<html></html>"),ba(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(Hr(e,2),Ts(e))return this.createCanvasClone(e);if(Ns(e))return this.createVideoClone(e);if(Rs(e))return this.createStyleClone(e);var A=e.cloneNode(!1);return Ks(A)&&(Ks(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),"lazy"===A.loading&&(A.loading="eager")),Zs(A)?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(e){var A=document.createElement("html2canvascustomelement");return ya(e.style,A),A},e.prototype.createStyleClone=function(e){try{var A=e.sheet;if(A&&A.cssRules){var t=[].slice.call(A.cssRules,0).reduce((function(e,A){return A&&"string"===typeof A.cssText?e+A.cssText:e}),""),i=e.cloneNode(!1);return i.textContent=t,i}}catch(jA){if(this.context.logger.error("Unable to access cssRules property",jA),"SecurityError"!==jA.name)throw jA}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(jA){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var n=e.getContext("2d"),r=i.getContext("2d");if(r)if(!this.options.allowTaint&&n)r.putImageData(n.getImageData(0,0,e.width,e.height),0,0);else{var o=null!==(A=e.getContext("webgl2"))&&void 0!==A?A:e.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}r.drawImage(e,0,0)}return i}catch(jA){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},e.prototype.createVideoClone=function(e){var A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var t=A.getContext("2d");try{return t&&(t.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||t.getImageData(0,0,A.width,A.height)),A}catch(jA){this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},e.prototype.appendChildNode=function(e,A,t){Es(A)&&(Vs(A)||A.hasAttribute(ha)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(A))||this.options.copyStyles&&Es(A)&&Rs(A)||e.appendChild(this.cloneNode(A,t))},e.prototype.cloneChildNodes=function(e,A,t){for(var i=this,n=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;n;n=n.nextSibling)if(Es(n)&&zs(n)&&"function"===typeof n.assignedNodes){var r=n.assignedNodes();r.length&&r.forEach((function(e){return i.appendChildNode(A,e,t)}))}else this.appendChildNode(A,n,t)},e.prototype.cloneNode=function(e,A){if(xs(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&Es(e)&&(ks(e)||Is(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var n=t.getComputedStyle(e),r=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&ks(i)&&(this.clonedReferenceElement=i),Ms(i)&&ka(i);var s=this.counters.parse(new kr(this.context,n)),a=this.resolvePseudoContent(e,i,r,uo.BEFORE);Zs(e)&&(A=!0),Ns(e)||this.cloneChildNodes(e,i,A),a&&i.insertBefore(a,i.firstChild);var l=this.resolvePseudoContent(e,i,o,uo.AFTER);return l&&i.appendChild(l),this.counters.pop(s),(n&&(this.options.copyStyles||Is(e))&&!Ps(e)||A)&&ya(n,i),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Gs(e)||js(e))&&(Gs(i)||js(i))&&(i.value=e.value),i}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,A,t,i){var n=this;if(t){var r=t.content,o=A.ownerDocument;if(o&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==t.display){this.counters.parse(new kr(this.context,t));var s=new Er(this.context,t),a=o.createElement("html2canvaspseudoelement");ya(t,a),s.content.forEach((function(A){if(0===A.type)a.appendChild(o.createTextNode(A.value));else if(22===A.type){var t=o.createElement("img");t.src=A.value,t.style.opacity="1",a.appendChild(t)}else if(18===A.type){if("attr"===A.name){var i=A.values.filter(Kt);i.length&&a.appendChild(o.createTextNode(e.getAttribute(i[0].value)||""))}else if("counter"===A.name){var r=A.values.filter(Gt),l=r[0],c=r[1];if(l&&Kt(l)){var d=n.counters.getCounterValue(l.value),u=c&&Kt(c)?Ln.parse(n.context,c.value):3;a.appendChild(o.createTextNode(ua(d,u,!1)))}}else if("counters"===A.name){var h=A.values.filter(Gt),g=(l=h[0],h[1]);c=h[2];if(l&&Kt(l)){var p=n.counters.getCounterValues(l.value),f=c&&Kt(c)?Ln.parse(n.context,c.value):3,m=g&&0===g.type?g.value:"",B=p.map((function(e){return ua(e,f,!1)})).join(m);a.appendChild(o.createTextNode(B))}}}else if(20===A.type)switch(A.value){case"open-quote":a.appendChild(o.createTextNode(br(s.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(br(s.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(A.value))}})),a.className=Fa+" "+xa;var l=i===uo.BEFORE?" "+Fa:" "+xa;return Is(A)?A.className.baseValue+=l:A.className+=l,a}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(function(e){e[e["BEFORE"]=0]="BEFORE",e[e["AFTER"]=1]="AFTER"})(uo||(uo={}));var pa,fa=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(ha,"true"),e.body.appendChild(t),t},ma=function(e){return new Promise((function(A){e.complete?A():e.src?(e.onload=A,e.onerror=A):A()}))},Ba=function(e){return Promise.all([].slice.call(e.images,0).map(ma))},wa=function(e){return new Promise((function(A,t){var i=e.contentWindow;if(!i)return t("No window assigned for iframe");var n=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var t=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),A(e))}),50)}}))},va=["all","d","content"],ya=function(e,A){for(var t=e.length-1;t>=0;t--){var i=e.item(t);-1===va.indexOf(i)&&A.style.setProperty(i,e.getPropertyValue(i))}return A},Ca=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},ba=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},_a=function(e){var A=e[0],t=e[1],i=e[2];A.scrollLeft=t,A.scrollTop=i},Qa=":before",Ua=":after",Fa="___html2canvas___pseudoelement_before",xa="___html2canvas___pseudoelement_after",Ea='{\n content: "" !important;\n display: none !important;\n}',ka=function(e){Ia(e,"."+Fa+Qa+Ea+"\n ."+xa+Ua+Ea)},Ia=function(e,A){var t=e.ownerDocument;if(t){var i=t.createElement("style");i.textContent=A,e.appendChild(i)}},Sa=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),Da=function(){function e(e,A){this.context=e,this._options=A,this._cache={}}return e.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)?A:Ka(e)||Ma(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),A):A},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return i(this,void 0,void 0,(function(){var A,t,i,r,o=this;return n(this,(function(n){switch(n.label){case 0:return A=Sa.isSameOrigin(e),t=!Ta(e)&&!0===this._options.useCORS&&jo.SUPPORT_CORS_IMAGES&&!A,i=!Ta(e)&&!A&&!Ka(e)&&"string"===typeof this._options.proxy&&jo.SUPPORT_CORS_XHR&&!t,A||!1!==this._options.allowTaint||Ta(e)||Ka(e)||i||t?(r=e,i?[4,this.proxy(r)]:[3,2]):[2];case 1:r=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,A){var i=new Image;i.onload=function(){return e(i)},i.onerror=A,(Na(r)||t)&&(i.crossOrigin="anonymous"),i.src=r,!0===i.complete&&setTimeout((function(){return e(i)}),500),o._options.imageTimeout>0&&setTimeout((function(){return A("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var A=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise((function(n,r){var o=jo.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)n(s.response);else{var e=new FileReader;e.addEventListener("load",(function(){return n(e.result)}),!1),e.addEventListener("error",(function(e){return r(e)}),!1),e.readAsDataURL(s.response)}else r("Failed to proxy resource "+i+" with status code "+s.status)},s.onerror=r;var a=t.indexOf("?")>-1?"&":"?";if(s.open("GET",""+t+a+"url="+encodeURIComponent(e)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),A._options.imageTimeout){var l=A._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return r("Timed out ("+l+"ms) proxying "+i)}}s.send()}))},e}(),Ha=/^data:image\/svg\+xml/i,La=/^data:image\/.*;base64,/i,Oa=/^data:image\/.*/i,Ma=function(e){return jo.SUPPORT_SVG_DRAWING||!Pa(e)},Ta=function(e){return Oa.test(e)},Na=function(e){return La.test(e)},Ka=function(e){return"blob"===e.substr(0,4)},Pa=function(e){return"svg"===e.substr(-3).toLowerCase()||Ha.test(e)},Ra=function(){function e(e,A){this.type=0,this.x=e,this.y=A}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),Va=function(e,A,t){return new Ra(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},Ga=function(){function e(e,A,t,i){this.type=1,this.start=e,this.startControl=A,this.endControl=t,this.end=i}return e.prototype.subdivide=function(A,t){var i=Va(this.start,this.startControl,A),n=Va(this.startControl,this.endControl,A),r=Va(this.endControl,this.end,A),o=Va(i,n,A),s=Va(n,r,A),a=Va(o,s,A);return t?new e(this.start,i,o,a):new e(a,s,r,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),ja=function(e){return 1===e.type},za=function(){function e(e){var A=e.styles,t=e.bounds,i=qt(A.borderTopLeftRadius,t.width,t.height),n=i[0],r=i[1],o=qt(A.borderTopRightRadius,t.width,t.height),s=o[0],a=o[1],l=qt(A.borderBottomRightRadius,t.width,t.height),c=l[0],d=l[1],u=qt(A.borderBottomLeftRadius,t.width,t.height),h=u[0],g=u[1],p=[];p.push((n+s)/t.width),p.push((h+c)/t.width),p.push((r+g)/t.height),p.push((a+d)/t.height);var f=Math.max.apply(Math,p);f>1&&(n/=f,r/=f,s/=f,a/=f,c/=f,d/=f,h/=f,g/=f);var m=t.width-s,B=t.height-d,w=t.width-c,v=t.height-g,y=A.borderTopWidth,C=A.borderRightWidth,b=A.borderBottomWidth,_=A.borderLeftWidth,Q=ei(A.paddingTop,e.bounds.width),U=ei(A.paddingRight,e.bounds.width),F=ei(A.paddingBottom,e.bounds.width),x=ei(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?Za(t.left+_/3,t.top+y/3,n-_/3,r-y/3,pa.TOP_LEFT):new Ra(t.left+_/3,t.top+y/3),this.topRightBorderDoubleOuterBox=n>0||r>0?Za(t.left+m,t.top+y/3,s-C/3,a-y/3,pa.TOP_RIGHT):new Ra(t.left+t.width-C/3,t.top+y/3),this.bottomRightBorderDoubleOuterBox=c>0||d>0?Za(t.left+w,t.top+B,c-C/3,d-b/3,pa.BOTTOM_RIGHT):new Ra(t.left+t.width-C/3,t.top+t.height-b/3),this.bottomLeftBorderDoubleOuterBox=h>0||g>0?Za(t.left+_/3,t.top+v,h-_/3,g-b/3,pa.BOTTOM_LEFT):new Ra(t.left+_/3,t.top+t.height-b/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?Za(t.left+2*_/3,t.top+2*y/3,n-2*_/3,r-2*y/3,pa.TOP_LEFT):new Ra(t.left+2*_/3,t.top+2*y/3),this.topRightBorderDoubleInnerBox=n>0||r>0?Za(t.left+m,t.top+2*y/3,s-2*C/3,a-2*y/3,pa.TOP_RIGHT):new Ra(t.left+t.width-2*C/3,t.top+2*y/3),this.bottomRightBorderDoubleInnerBox=c>0||d>0?Za(t.left+w,t.top+B,c-2*C/3,d-2*b/3,pa.BOTTOM_RIGHT):new Ra(t.left+t.width-2*C/3,t.top+t.height-2*b/3),this.bottomLeftBorderDoubleInnerBox=h>0||g>0?Za(t.left+2*_/3,t.top+v,h-2*_/3,g-2*b/3,pa.BOTTOM_LEFT):new Ra(t.left+2*_/3,t.top+t.height-2*b/3),this.topLeftBorderStroke=n>0||r>0?Za(t.left+_/2,t.top+y/2,n-_/2,r-y/2,pa.TOP_LEFT):new Ra(t.left+_/2,t.top+y/2),this.topRightBorderStroke=n>0||r>0?Za(t.left+m,t.top+y/2,s-C/2,a-y/2,pa.TOP_RIGHT):new Ra(t.left+t.width-C/2,t.top+y/2),this.bottomRightBorderStroke=c>0||d>0?Za(t.left+w,t.top+B,c-C/2,d-b/2,pa.BOTTOM_RIGHT):new Ra(t.left+t.width-C/2,t.top+t.height-b/2),this.bottomLeftBorderStroke=h>0||g>0?Za(t.left+_/2,t.top+v,h-_/2,g-b/2,pa.BOTTOM_LEFT):new Ra(t.left+_/2,t.top+t.height-b/2),this.topLeftBorderBox=n>0||r>0?Za(t.left,t.top,n,r,pa.TOP_LEFT):new Ra(t.left,t.top),this.topRightBorderBox=s>0||a>0?Za(t.left+m,t.top,s,a,pa.TOP_RIGHT):new Ra(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||d>0?Za(t.left+w,t.top+B,c,d,pa.BOTTOM_RIGHT):new Ra(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=h>0||g>0?Za(t.left,t.top+v,h,g,pa.BOTTOM_LEFT):new Ra(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||r>0?Za(t.left+_,t.top+y,Math.max(0,n-_),Math.max(0,r-y),pa.TOP_LEFT):new Ra(t.left+_,t.top+y),this.topRightPaddingBox=s>0||a>0?Za(t.left+Math.min(m,t.width-C),t.top+y,m>t.width+C?0:Math.max(0,s-C),Math.max(0,a-y),pa.TOP_RIGHT):new Ra(t.left+t.width-C,t.top+y),this.bottomRightPaddingBox=c>0||d>0?Za(t.left+Math.min(w,t.width-_),t.top+Math.min(B,t.height-b),Math.max(0,c-C),Math.max(0,d-b),pa.BOTTOM_RIGHT):new Ra(t.left+t.width-C,t.top+t.height-b),this.bottomLeftPaddingBox=h>0||g>0?Za(t.left+_,t.top+Math.min(v,t.height-b),Math.max(0,h-_),Math.max(0,g-b),pa.BOTTOM_LEFT):new Ra(t.left+_,t.top+t.height-b),this.topLeftContentBox=n>0||r>0?Za(t.left+_+x,t.top+y+Q,Math.max(0,n-(_+x)),Math.max(0,r-(y+Q)),pa.TOP_LEFT):new Ra(t.left+_+x,t.top+y+Q),this.topRightContentBox=s>0||a>0?Za(t.left+Math.min(m,t.width+_+x),t.top+y+Q,m>t.width+_+x?0:s-_+x,a-(y+Q),pa.TOP_RIGHT):new Ra(t.left+t.width-(C+U),t.top+y+Q),this.bottomRightContentBox=c>0||d>0?Za(t.left+Math.min(w,t.width-(_+x)),t.top+Math.min(B,t.height+y+Q),Math.max(0,c-(C+U)),d-(b+F),pa.BOTTOM_RIGHT):new Ra(t.left+t.width-(C+U),t.top+t.height-(b+F)),this.bottomLeftContentBox=h>0||g>0?Za(t.left+_+x,t.top+v,Math.max(0,h-(_+x)),g-(b+F),pa.BOTTOM_LEFT):new Ra(t.left+_+x,t.top+t.height-(b+F))}return e}();(function(e){e[e["TOP_LEFT"]=0]="TOP_LEFT",e[e["TOP_RIGHT"]=1]="TOP_RIGHT",e[e["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",e[e["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(pa||(pa={}));var Za=function(e,A,t,i,n){var r=(Math.sqrt(2)-1)/3*4,o=t*r,s=i*r,a=e+t,l=A+i;switch(n){case pa.TOP_LEFT:return new Ga(new Ra(e,l),new Ra(e,l-s),new Ra(a-o,A),new Ra(a,A));case pa.TOP_RIGHT:return new Ga(new Ra(e,A),new Ra(e+o,A),new Ra(a,l-s),new Ra(a,l));case pa.BOTTOM_RIGHT:return new Ga(new Ra(a,A),new Ra(a,A+s),new Ra(e+o,l),new Ra(e,l));case pa.BOTTOM_LEFT:default:return new Ga(new Ra(a,l),new Ra(a-o,l),new Ra(e,A+s),new Ra(e,A))}},Wa=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ya=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Xa=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ja=function(){function e(e,A,t){this.offsetX=e,this.offsetY=A,this.matrix=t,this.type=0,this.target=6}return e}(),$a=function(){function e(e,A){this.path=e,this.target=A,this.type=1}return e}(),qa=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),el=function(e){return 0===e.type},Al=function(e){return 1===e.type},tl=function(e){return 2===e.type},il=function(e,A){return e.length===A.length&&e.some((function(e,t){return e===A[t]}))},nl=function(e,A,t,i,n){return e.map((function(e,r){switch(r){case 0:return e.add(A,t);case 1:return e.add(A+i,t);case 2:return e.add(A+i,t+n);case 3:return e.add(A,t+n)}return e}))},rl=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),ol=function(){function e(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new za(this.container),this.container.styles.opacity<1&&this.effects.push(new qa(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Ja(t,i,n))}if(0!==this.container.styles.overflowX){var r=Wa(this.curves),o=Xa(this.curves);il(r,o)?this.effects.push(new $a(r,6)):(this.effects.push(new $a(r,2)),this.effects.push(new $a(o,4)))}}return e.prototype.getEffects=function(e){var A=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,i=this.effects.slice(0);while(t){var n=t.effects.filter((function(e){return!Al(e)}));if(A||0!==t.container.styles.position||!t.parent){if(i.unshift.apply(i,n),A=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var r=Wa(t.curves),o=Xa(t.curves);il(r,o)||i.unshift(new $a(o,6))}}else i.unshift.apply(i,n);t=t.parent}return i.filter((function(A){return mr(A.target,e)}))},e}(),sl=function(e,A,t,i){e.container.elements.forEach((function(n){var r=mr(n.flags,4),o=mr(n.flags,2),s=new ol(n,e);mr(n.styles.display,2048)&&i.push(s);var a=mr(n.flags,8)?[]:i;if(r||o){var l=r||n.styles.isPositioned()?t:A,c=new rl(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var u=0;l.negativeZIndex.some((function(e,A){return d>e.element.container.styles.zIndex.order?(u=A,!1):u>0})),l.negativeZIndex.splice(u,0,c)}else if(d>0){var h=0;l.positiveZIndex.some((function(e,A){return d>=e.element.container.styles.zIndex.order?(h=A+1,!1):h>0})),l.positiveZIndex.splice(h,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);sl(s,c,r?c:t,a)}else n.styles.isInlineLevel()?A.inlineLevel.push(s):A.nonInlineLevel.push(s),sl(s,A,t,a);mr(n.flags,8)&&al(n,a)}))},al=function(e,A){for(var t=e instanceof ls?e.start:1,i=e instanceof ls&&e.reversed,n=0;n<A.length;n++){var r=A[n];r.container instanceof as&&"number"===typeof r.container.value&&0!==r.container.value&&(t=r.container.value),r.listValue=ua(t,r.container.styles.listStyleType,!0),t+=i?-1:1}},ll=function(e){var A=new ol(e,null),t=new rl(A),i=[];return sl(A,t,t,i),al(A.container,i),t},cl=function(e,A){switch(A){case 0:return pl(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return pl(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return pl(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return pl(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},dl=function(e,A){switch(A){case 0:return pl(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return pl(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return pl(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return pl(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},ul=function(e,A){switch(A){case 0:return pl(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return pl(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return pl(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return pl(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},hl=function(e,A){switch(A){case 0:return gl(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return gl(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return gl(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return gl(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},gl=function(e,A){var t=[];return ja(e)?t.push(e.subdivide(.5,!1)):t.push(e),ja(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},pl=function(e,A,t,i){var n=[];return ja(e)?n.push(e.subdivide(.5,!1)):n.push(e),ja(t)?n.push(t.subdivide(.5,!0)):n.push(t),ja(i)?n.push(i.subdivide(.5,!0).reverse()):n.push(i),ja(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},fl=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},ml=function(e){var A=e.styles,t=e.bounds,i=ei(A.paddingLeft,t.width),n=ei(A.paddingRight,t.width),r=ei(A.paddingTop,t.width),o=ei(A.paddingBottom,t.width);return t.add(i+A.borderLeftWidth,r+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+i+n),-(A.borderTopWidth+A.borderBottomWidth+r+o))},Bl=function(e,A){return 0===e?A.bounds:2===e?ml(A):fl(A)},wl=function(e,A){return 0===e?A.bounds:2===e?ml(A):fl(A)},vl=function(e,A,t){var i=Bl(_l(e.styles.backgroundOrigin,A),e),n=wl(_l(e.styles.backgroundClip,A),e),r=bl(_l(e.styles.backgroundSize,A),t,i),o=r[0],s=r[1],a=qt(_l(e.styles.backgroundPosition,A),i.width-o,i.height-s),l=Ql(_l(e.styles.backgroundRepeat,A),a,r,i,n),c=Math.round(i.left+a[0]),d=Math.round(i.top+a[1]);return[l,c,d,o,s]},yl=function(e){return Kt(e)&&e.value===zi.AUTO},Cl=function(e){return"number"===typeof e},bl=function(e,A,t){var i=A[0],n=A[1],r=A[2],o=e[0],s=e[1];if(!o)return[0,0];if(Wt(o)&&s&&Wt(s))return[ei(o,t.width),ei(s,t.height)];var a=Cl(r);if(Kt(o)&&(o.value===zi.CONTAIN||o.value===zi.COVER)){if(Cl(r)){var l=t.width/t.height;return l<r!==(o.value===zi.COVER)?[t.width,t.width/r]:[t.height*r,t.height]}return[t.width,t.height]}var c=Cl(i),d=Cl(n),u=c||d;if(yl(o)&&(!s||yl(s))){if(c&&d)return[i,n];if(!a&&!u)return[t.width,t.height];if(u&&a){var h=c?i:n*r,g=d?n:i/r;return[h,g]}var p=c?i:t.width,f=d?n:t.height;return[p,f]}if(a){var m=0,B=0;return Wt(o)?m=ei(o,t.width):Wt(s)&&(B=ei(s,t.height)),yl(o)?m=B*r:s&&!yl(s)||(B=m/r),[m,B]}var w=null,v=null;if(Wt(o)?w=ei(o,t.width):s&&Wt(s)&&(v=ei(s,t.height)),null===w||s&&!yl(s)||(v=c&&d?w/i*n:t.height),null!==v&&yl(o)&&(w=c&&d?v/n*i:t.width),null!==w&&null!==v)return[w,v];throw new Error("Unable to calculate background-size for element")},_l=function(e,A){var t=e[A];return"undefined"===typeof t?e[0]:t},Ql=function(e,A,t,i,n){var r=A[0],o=A[1],s=t[0],a=t[1];switch(e){case 2:return[new Ra(Math.round(i.left),Math.round(i.top+o)),new Ra(Math.round(i.left+i.width),Math.round(i.top+o)),new Ra(Math.round(i.left+i.width),Math.round(a+i.top+o)),new Ra(Math.round(i.left),Math.round(a+i.top+o))];case 3:return[new Ra(Math.round(i.left+r),Math.round(i.top)),new Ra(Math.round(i.left+r+s),Math.round(i.top)),new Ra(Math.round(i.left+r+s),Math.round(i.height+i.top)),new Ra(Math.round(i.left+r),Math.round(i.height+i.top))];case 1:return[new Ra(Math.round(i.left+r),Math.round(i.top+o)),new Ra(Math.round(i.left+r+s),Math.round(i.top+o)),new Ra(Math.round(i.left+r+s),Math.round(i.top+o+a)),new Ra(Math.round(i.left+r),Math.round(i.top+o+a))];default:return[new Ra(Math.round(n.left),Math.round(n.top)),new Ra(Math.round(n.left+n.width),Math.round(n.top)),new Ra(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Ra(Math.round(n.left),Math.round(n.height+n.top))]}},Ul="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Fl="Hidden Text",xl=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,A){var t=this._document.createElement("div"),i=this._document.createElement("img"),n=this._document.createElement("span"),r=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=A,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",r.appendChild(t),i.src=Ul,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",n.style.fontFamily=e,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Fl)),t.appendChild(n),t.appendChild(i);var o=i.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(Fl)),t.style.lineHeight="normal",i.style.verticalAlign="super";var s=i.offsetTop-t.offsetTop+2;return r.removeChild(t),{baseline:o,middle:s}},e.prototype.getMetrics=function(e,A){var t=e+" "+A;return"undefined"===typeof this._data[t]&&(this._data[t]=this.parseMetrics(e,A)),this._data[t]},e}(),El=function(){function e(e,A){this.context=e,this.options=A}return e}(),kl=1e4,Il=function(e){function t(A,t){var i=e.call(this,A,t)||this;return i._activeEffects=[],i.canvas=t.canvas?t.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),t.canvas||(i.canvas.width=Math.floor(t.width*t.scale),i.canvas.height=Math.floor(t.height*t.scale),i.canvas.style.width=t.width+"px",i.canvas.style.height=t.height+"px"),i.fontMetrics=new xl(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-t.x,-t.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),i}return A(t,e),t.prototype.applyEffects=function(e){var A=this;while(this._activeEffects.length)this.popEffect();e.forEach((function(e){return A.applyEffect(e)}))},t.prototype.applyEffect=function(e){this.ctx.save(),tl(e)&&(this.ctx.globalAlpha=e.opacity),el(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Al(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return i(this,void 0,void 0,(function(){var A;return n(this,(function(t){switch(t.label){case 0:return A=e.element.container.styles,A.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.renderNode=function(e){return i(this,void 0,void 0,(function(){return n(this,(function(A){switch(A.label){case 0:return mr(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(e)];case 2:A.sent(),A.label=3;case 3:return[2]}}))}))},t.prototype.renderTextWithLetterSpacing=function(e,A,t){var i=this;if(0===A)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+t);else{var n=Xo(e.text);n.reduce((function(A,n){return i.ctx.fillText(n,A,e.bounds.top+t),A+i.ctx.measureText(n).width}),e.bounds.left)}},t.prototype.createFontStyle=function(e){var A=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),t=Ol(e.fontFamily).join(", "),i=Tt(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,A,e.fontWeight,i,t].join(" "),t,i]},t.prototype.renderTextNode=function(e,A){return i(this,void 0,void 0,(function(){var t,i,r,o,s,a,l,c,d=this;return n(this,(function(n){return t=this.createFontStyle(A),i=t[0],r=t[1],o=t[2],this.ctx.font=i,this.ctx.direction=1===A.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(r,o),a=s.baseline,l=s.middle,c=A.paintOrder,e.textBounds.forEach((function(e){c.forEach((function(t){switch(t){case 0:d.ctx.fillStyle=di(A.color),d.renderTextWithLetterSpacing(e,A.letterSpacing,a);var i=A.textShadow;i.length&&e.text.trim().length&&(i.slice(0).reverse().forEach((function(t){d.ctx.shadowColor=di(t.color),d.ctx.shadowOffsetX=t.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=t.offsetY.number*d.options.scale,d.ctx.shadowBlur=t.blur.number,d.renderTextWithLetterSpacing(e,A.letterSpacing,a)})),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),A.textDecorationLine.length&&(d.ctx.fillStyle=di(A.textDecorationColor||A.color),A.textDecorationLine.forEach((function(A){switch(A){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+a),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1);break}})));break;case 1:A.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=di(A.webkitTextStrokeColor),d.ctx.lineWidth=A.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+a)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}}))})),[2]}))}))},t.prototype.renderReplacedElement=function(e,A,t){if(t&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=ml(e),n=Xa(A);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return i(this,void 0,void 0,(function(){var A,i,r,s,a,l,c,d,u,h,g,p,f,m,B,w,v,y,C;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(e.getEffects(4)),A=e.container,i=e.curves,r=A.styles,s=0,a=A.textNodes,n.label=1;case 1:return s<a.length?(l=a[s],[4,this.renderTextNode(l,r)]):[3,4];case 2:n.sent(),n.label=3;case 3:return s++,[3,1];case 4:if(!(A instanceof rs))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(A.src)];case 6:return w=n.sent(),this.renderReplacedElement(A,i,w),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+A.src),[3,8];case 8:if(A instanceof os&&this.renderReplacedElement(A,i,A.canvas),!(A instanceof ss))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(A.svg)];case 10:return w=n.sent(),this.renderReplacedElement(A,i,w),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+A.svg.substring(0,255)),[3,12];case 12:return A instanceof ys&&A.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:A.backgroundColor,x:0,y:0,width:A.width,height:A.height}),[4,c.render(A.tree)]):[3,14];case 13:d=n.sent(),A.width&&A.height&&this.ctx.drawImage(d,0,0,A.width,A.height,A.bounds.left,A.bounds.top,A.bounds.width,A.bounds.height),n.label=14;case 14:if(A instanceof Bs&&(u=Math.min(A.bounds.width,A.bounds.height),A.type===gs?A.checked&&(this.ctx.save(),this.path([new Ra(A.bounds.left+.39363*u,A.bounds.top+.79*u),new Ra(A.bounds.left+.16*u,A.bounds.top+.5549*u),new Ra(A.bounds.left+.27347*u,A.bounds.top+.44071*u),new Ra(A.bounds.left+.39694*u,A.bounds.top+.5649*u),new Ra(A.bounds.left+.72983*u,A.bounds.top+.23*u),new Ra(A.bounds.left+.84*u,A.bounds.top+.34085*u),new Ra(A.bounds.left+.39363*u,A.bounds.top+.79*u)]),this.ctx.fillStyle=di(ms),this.ctx.fill(),this.ctx.restore()):A.type===ps&&A.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(A.bounds.left+u/2,A.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=di(ms),this.ctx.fill(),this.ctx.restore())),Sl(A)&&A.value.length){switch(h=this.createFontStyle(r),y=h[0],g=h[1],p=this.fontMetrics.getMetrics(y,g).baseline,this.ctx.font=y,this.ctx.fillStyle=di(r.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Hl(A.styles.textAlign),C=ml(A),f=0,A.styles.textAlign){case 1:f+=C.width/2;break;case 2:f+=C.width;break}m=C.add(f,0,0,-C.height/2+1),this.ctx.save(),this.path([new Ra(C.left,C.top),new Ra(C.left+C.width,C.top),new Ra(C.left+C.width,C.top+C.height),new Ra(C.left,C.top+C.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new zo(A.value,m),r.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!mr(A.styles.display,2048))return[3,20];if(null===A.styles.listStyleImage)return[3,19];if(B=A.styles.listStyleImage,0!==B.type)return[3,18];w=void 0,v=B.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return w=n.sent(),this.ctx.drawImage(w,A.bounds.left-(w.width+10),A.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==A.styles.listStyleType&&(y=this.createFontStyle(r)[0],this.ctx.font=y,this.ctx.fillStyle=di(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",C=new o(A.bounds.left,A.bounds.top+ei(A.styles.paddingTop,A.bounds.width),A.bounds.width,Sn(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new zo(e.listValue,C),r.letterSpacing,Sn(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},t.prototype.renderStackContent=function(e){return i(this,void 0,void 0,(function(){var A,t,i,r,o,s,a,l,c,d,u,h,g,p,f;return n(this,(function(n){switch(n.label){case 0:return mr(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:n.sent(),A=0,t=e.negativeZIndex,n.label=2;case 2:return A<t.length?(f=t[A],[4,this.renderStack(f)]):[3,5];case 3:n.sent(),n.label=4;case 4:return A++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:n.sent(),i=0,r=e.nonInlineLevel,n.label=7;case 7:return i<r.length?(f=r[i],[4,this.renderNode(f)]):[3,10];case 8:n.sent(),n.label=9;case 9:return i++,[3,7];case 10:o=0,s=e.nonPositionedFloats,n.label=11;case 11:return o<s.length?(f=s[o],[4,this.renderStack(f)]):[3,14];case 12:n.sent(),n.label=13;case 13:return o++,[3,11];case 14:a=0,l=e.nonPositionedInlineLevel,n.label=15;case 15:return a<l.length?(f=l[a],[4,this.renderStack(f)]):[3,18];case 16:n.sent(),n.label=17;case 17:return a++,[3,15];case 18:c=0,d=e.inlineLevel,n.label=19;case 19:return c<d.length?(f=d[c],[4,this.renderNode(f)]):[3,22];case 20:n.sent(),n.label=21;case 21:return c++,[3,19];case 22:u=0,h=e.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return u<h.length?(f=h[u],[4,this.renderStack(f)]):[3,26];case 24:n.sent(),n.label=25;case 25:return u++,[3,23];case 26:g=0,p=e.positiveZIndex,n.label=27;case 27:return g<p.length?(f=p[g],[4,this.renderStack(f)]):[3,30];case 28:n.sent(),n.label=29;case 29:return g++,[3,27];case 30:return[2]}}))}))},t.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},t.prototype.formatPath=function(e){var A=this;e.forEach((function(e,t){var i=ja(e)?e.start:e;0===t?A.ctx.moveTo(i.x,i.y):A.ctx.lineTo(i.x,i.y),ja(e)&&A.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},t.prototype.renderRepeat=function(e,A,t,i){this.path(e),this.ctx.fillStyle=A,this.ctx.translate(t,i),this.ctx.fill(),this.ctx.translate(-t,-i)},t.prototype.resizeImage=function(e,A,t){var i;if(e.width===A&&e.height===t)return e;var n=null!==(i=this.canvas.ownerDocument)&&void 0!==i?i:document,r=n.createElement("canvas");r.width=Math.max(1,A),r.height=Math.max(1,t);var o=r.getContext("2d");return o.drawImage(e,0,0,e.width,e.height,0,0,A,t),r},t.prototype.renderBackgroundImage=function(e){return i(this,void 0,void 0,(function(){var A,t,i,r,o,s;return n(this,(function(a){switch(a.label){case 0:A=e.styles.backgroundImage.length-1,t=function(t){var r,o,s,a,l,c,d,u,h,g,p,f,m,B,w,v,y,C,b,_,Q,U,F,x,E,k,I,S,D,H,L;return n(this,(function(n){switch(n.label){case 0:if(0!==t.type)return[3,5];r=void 0,o=t.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i.context.cache.match(o)];case 2:return r=n.sent(),[3,4];case 3:return n.sent(),i.context.logger.error("Error loading background-image "+o),[3,4];case 4:return r&&(s=vl(e,A,[r.width,r.height,r.width/r.height]),v=s[0],U=s[1],F=s[2],b=s[3],_=s[4],B=i.ctx.createPattern(i.resizeImage(r,b,_),"repeat"),i.renderRepeat(v,B,U,F)),[3,6];case 5:Ri(t)?(a=vl(e,A,[null,null,null]),v=a[0],U=a[1],F=a[2],b=a[3],_=a[4],l=Qi(t.angle,b,_),c=l[0],d=l[1],u=l[2],h=l[3],g=l[4],p=document.createElement("canvas"),p.width=b,p.height=_,f=p.getContext("2d"),m=f.createLinearGradient(d,h,u,g),bi(t.stops,c).forEach((function(e){return m.addColorStop(e.stop,di(e.color))})),f.fillStyle=m,f.fillRect(0,0,b,_),b>0&&_>0&&(B=i.ctx.createPattern(p,"repeat"),i.renderRepeat(v,B,U,F))):Vi(t)&&(w=vl(e,A,[null,null,null]),v=w[0],y=w[1],C=w[2],b=w[3],_=w[4],Q=0===t.position.length?[Jt]:t.position,U=ei(Q[0],b),F=ei(Q[Q.length-1],_),x=xi(t,U,F,b,_),E=x[0],k=x[1],E>0&&k>0&&(I=i.ctx.createRadialGradient(y+U,C+F,0,y+U,C+F,E),bi(t.stops,2*E).forEach((function(e){return I.addColorStop(e.stop,di(e.color))})),i.path(v),i.ctx.fillStyle=I,E!==k?(S=e.bounds.left+.5*e.bounds.width,D=e.bounds.top+.5*e.bounds.height,H=k/E,L=1/H,i.ctx.save(),i.ctx.translate(S,D),i.ctx.transform(1,0,0,H,0,0),i.ctx.translate(-S,-D),i.ctx.fillRect(y,L*(C-D)+D,b,_*L),i.ctx.restore()):i.ctx.fill())),n.label=6;case 6:return A--,[2]}}))},i=this,r=0,o=e.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return r<o.length?(s=o[r],[5,t(s)]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},t.prototype.renderSolidBorder=function(e,A,t){return i(this,void 0,void 0,(function(){return n(this,(function(i){return this.path(cl(t,A)),this.ctx.fillStyle=di(e),this.ctx.fill(),[2]}))}))},t.prototype.renderDoubleBorder=function(e,A,t,r){return i(this,void 0,void 0,(function(){var i,o;return n(this,(function(n){switch(n.label){case 0:return A<3?[4,this.renderSolidBorder(e,t,r)]:[3,2];case 1:return n.sent(),[2];case 2:return i=dl(r,t),this.path(i),this.ctx.fillStyle=di(e),this.ctx.fill(),o=ul(r,t),this.path(o),this.ctx.fill(),[2]}}))}))},t.prototype.renderNodeBackgroundAndBorders=function(e){return i(this,void 0,void 0,(function(){var A,t,i,r,o,s,a,l,c=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(e.getEffects(2)),A=e.container.styles,t=!ci(A.backgroundColor)||A.backgroundImage.length,i=[{style:A.borderTopStyle,color:A.borderTopColor,width:A.borderTopWidth},{style:A.borderRightStyle,color:A.borderRightColor,width:A.borderRightWidth},{style:A.borderBottomStyle,color:A.borderBottomColor,width:A.borderBottomWidth},{style:A.borderLeftStyle,color:A.borderLeftColor,width:A.borderLeftWidth}],r=Dl(_l(A.backgroundClip,0),e.curves),t||A.boxShadow.length?(this.ctx.save(),this.path(r),this.ctx.clip(),ci(A.backgroundColor)||(this.ctx.fillStyle=di(A.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),A.boxShadow.slice(0).reverse().forEach((function(A){c.ctx.save();var t=Wa(e.curves),i=A.inset?0:kl,n=nl(t,-i+(A.inset?1:-1)*A.spread.number,(A.inset?1:-1)*A.spread.number,A.spread.number*(A.inset?-2:2),A.spread.number*(A.inset?-2:2));A.inset?(c.path(t),c.ctx.clip(),c.mask(n)):(c.mask(t),c.ctx.clip(),c.path(n)),c.ctx.shadowOffsetX=A.offsetX.number+i,c.ctx.shadowOffsetY=A.offsetY.number,c.ctx.shadowColor=di(A.color),c.ctx.shadowBlur=A.blur.number,c.ctx.fillStyle=A.inset?di(A.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),n.label=2;case 2:o=0,s=0,a=i,n.label=3;case 3:return s<a.length?(l=a[s],0!==l.style&&!ci(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:n.sent(),n.label=11;case 11:o++,n.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},t.prototype.renderDashedDottedBorder=function(e,A,t,r,o){return i(this,void 0,void 0,(function(){var i,s,a,l,c,d,u,h,g,p,f,m,B,w,v,y;return n(this,(function(n){return this.ctx.save(),i=hl(r,t),s=cl(r,t),2===o&&(this.path(s),this.ctx.clip()),ja(s[0])?(a=s[0].start.x,l=s[0].start.y):(a=s[0].x,l=s[0].y),ja(s[1])?(c=s[1].end.x,d=s[1].end.y):(c=s[1].x,d=s[1].y),u=0===t||2===t?Math.abs(a-c):Math.abs(l-d),this.ctx.beginPath(),3===o?this.formatPath(i):this.formatPath(s.slice(0,2)),h=A<3?3*A:2*A,g=A<3?2*A:A,3===o&&(h=A,g=A),p=!0,u<=2*h?p=!1:u<=2*h+g?(f=u/(2*h+g),h*=f,g*=f):(m=Math.floor((u+g)/(h+g)),B=(u-m*h)/(m-1),w=(u-(m+1)*h)/m,g=w<=0||Math.abs(g-B)<Math.abs(g-w)?B:w),p&&(3===o?this.ctx.setLineDash([0,h+g]):this.ctx.setLineDash([h,g])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=A):this.ctx.lineWidth=2*A+1.1,this.ctx.strokeStyle=di(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(ja(s[0])&&(v=s[3],y=s[0],this.ctx.beginPath(),this.formatPath([new Ra(v.end.x,v.end.y),new Ra(y.start.x,y.start.y)]),this.ctx.stroke()),ja(s[1])&&(v=s[1],y=s[2],this.ctx.beginPath(),this.formatPath([new Ra(v.end.x,v.end.y),new Ra(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},t.prototype.render=function(e){return i(this,void 0,void 0,(function(){var A;return n(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=di(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),A=ll(e),[4,this.renderStack(A)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},t}(El),Sl=function(e){return e instanceof vs||(e instanceof ws||e instanceof Bs&&e.type!==ps&&e.type!==gs)},Dl=function(e,A){switch(e){case 0:return Wa(A);case 2:return Ya(A);case 1:default:return Xa(A)}},Hl=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ll=["-apple-system","system-ui"],Ol=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter((function(e){return-1===Ll.indexOf(e)})):e},Ml=function(e){function t(A,t){var i=e.call(this,A,t)||this;return i.canvas=t.canvas?t.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=t,i.canvas.width=Math.floor(t.width*t.scale),i.canvas.height=Math.floor(t.height*t.scale),i.canvas.style.width=t.width+"px",i.canvas.style.height=t.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-t.x,-t.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),i}return A(t,e),t.prototype.render=function(e){return i(this,void 0,void 0,(function(){var A,t;return n(this,(function(i){switch(i.label){case 0:return A=Vo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Tl(A)];case 1:return t=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=di(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(t,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},t}(El),Tl=function(e){return new Promise((function(A,t){var i=new Image;i.onload=function(){A(i)},i.onerror=t,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Nl=function(){function e(e){var A=e.id,t=e.enabled;this.id=A,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,r([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Kl=function(){function e(A,t){var i;this.windowBounds=t,this.instanceName="#"+e.instanceCount++,this.logger=new Nl({id:this.instanceName,enabled:A.logging}),this.cache=null!==(i=A.cache)&&void 0!==i?i:new Da(this,A)}return e.instanceCount=1,e}(),Pl=function(e,A){return void 0===A&&(A={}),Rl(e,A)};"undefined"!==typeof window&&Sa.setContext(window);var Rl=function(e,A){return i(void 0,void 0,void 0,(function(){var i,r,l,c,d,u,h,g,p,f,m,B,w,v,y,C,b,_,Q,U,F,x,E,k,I,S,D,H,L,O,M,T,N,K,P,R,V,G,j;return n(this,(function(n){switch(n.label){case 0:if(!e||"object"!==typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(i=e.ownerDocument,!i)throw new Error("Element is not attached to a Document");if(r=i.defaultView,!r)throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(E=A.allowTaint)&&void 0!==E&&E,imageTimeout:null!==(k=A.imageTimeout)&&void 0!==k?k:15e3,proxy:A.proxy,useCORS:null!==(I=A.useCORS)&&void 0!==I&&I},c=t({logging:null===(S=A.logging)||void 0===S||S,cache:A.cache},l),d={windowWidth:null!==(D=A.windowWidth)&&void 0!==D?D:r.innerWidth,windowHeight:null!==(H=A.windowHeight)&&void 0!==H?H:r.innerHeight,scrollX:null!==(L=A.scrollX)&&void 0!==L?L:r.pageXOffset,scrollY:null!==(O=A.scrollY)&&void 0!==O?O:r.pageYOffset},u=new o(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),h=new Kl(c,u),g=null!==(M=A.foreignObjectRendering)&&void 0!==M&&M,p={allowTaint:null!==(T=A.allowTaint)&&void 0!==T&&T,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:g,copyStyles:g},h.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),f=new ga(h,e,p),m=f.clonedReferenceElement,m?[4,f.toIFrame(i,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=n.sent(),w=Ms(m)||Ls(m)?a(m.ownerDocument):s(h,m),v=w.width,y=w.height,C=w.left,b=w.top,_=Vl(h,m,A.backgroundColor),Q={canvas:A.canvas,backgroundColor:_,scale:null!==(K=null!==(N=A.scale)&&void 0!==N?N:r.devicePixelRatio)&&void 0!==K?K:1,x:(null!==(P=A.x)&&void 0!==P?P:0)+C,y:(null!==(R=A.y)&&void 0!==R?R:0)+b,width:null!==(V=A.width)&&void 0!==V?V:Math.ceil(v),height:null!==(G=A.height)&&void 0!==G?G:Math.ceil(y)},g?(h.logger.debug("Document cloned, using foreign object rendering"),x=new Ml(h,Q),[4,x.render(m)]):[3,3];case 2:return U=n.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+C+","+b+" with size "+v+"x"+y+" using computed rendering"),h.logger.debug("Starting DOM parsing"),F=Qs(h,m),_===F.styles.backgroundColor&&(F.styles.backgroundColor=wi.TRANSPARENT),h.logger.debug("Starting renderer for element at "+Q.x+","+Q.y+" with size "+Q.width+"x"+Q.height),x=new Il(h,Q),[4,x.render(F)];case 4:U=n.sent(),n.label=5;case 5:return(null===(j=A.removeContainer)||void 0===j||j)&&(ga.destroy(B)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,U]}}))}))},Vl=function(e,A,t){var i=A.ownerDocument,n=i.documentElement?Bi(e,getComputedStyle(i.documentElement).backgroundColor):wi.TRANSPARENT,r=i.body?Bi(e,getComputedStyle(i.body).backgroundColor):wi.TRANSPARENT,o="string"===typeof t?Bi(e,t):null===t?wi.TRANSPARENT:4294967295;return A===i.documentElement?ci(n)?ci(r)?o:r:n:o};return Pl}))},5733:function(e,A,t){
/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/
!function(A){e.exports=A()}((function(){return function e(A,t,i){function n(o,s){if(!t[o]){if(!A[o]){var a=void 0;if(!s&&a)return require(o,!0);if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=t[o]={exports:{}};A[o][0].call(c.exports,(function(e){var t=A[o][1][e];return n(t||e)}),c,c.exports,e,A,t,i)}return t[o].exports}for(var r=void 0,o=0;o<i.length;o++)n(i[o]);return n}({1:[function(e,A,t){"use strict";var i=e("./utils"),n=e("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){for(var A,t,n,o,s,a,l,c=[],d=0,u=e.length,h=u,g="string"!==i.getTypeOf(e);d<e.length;)h=u-d,n=g?(A=e[d++],t=d<u?e[d++]:0,d<u?e[d++]:0):(A=e.charCodeAt(d++),t=d<u?e.charCodeAt(d++):0,d<u?e.charCodeAt(d++):0),o=A>>2,s=(3&A)<<4|t>>4,a=1<h?(15&t)<<2|n>>6:64,l=2<h?63&n:64,c.push(r.charAt(o)+r.charAt(s)+r.charAt(a)+r.charAt(l));return c.join("")},t.decode=function(e){var A,t,i,o,s,a,l=0,c=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var u,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===r.charAt(64)&&h--,e.charAt(e.length-2)===r.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=n.uint8array?new Uint8Array(0|h):new Array(0|h);l<e.length;)A=r.indexOf(e.charAt(l++))<<2|(o=r.indexOf(e.charAt(l++)))>>4,t=(15&o)<<4|(s=r.indexOf(e.charAt(l++)))>>2,i=(3&s)<<6|(a=r.indexOf(e.charAt(l++))),u[c++]=A,64!==s&&(u[c++]=t),64!==a&&(u[c++]=i);return u}},{"./support":30,"./utils":32}],2:[function(e,A,t){"use strict";var i=e("./external"),n=e("./stream/DataWorker"),r=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,A,t,i,n){this.compressedSize=e,this.uncompressedSize=A,this.crc32=t,this.compression=i,this.compressedContent=n}s.prototype={getContentWorker:function(){var e=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),A=this;return e.on("end",(function(){if(this.streamInfo.data_length!==A.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,A,t){return e.pipe(new r).pipe(new o("uncompressedSize")).pipe(A.compressWorker(t)).pipe(new o("compressedSize")).withStreamInfo("compression",A)},A.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,A,t){"use strict";var i=e("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},t.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,A,t){"use strict";var i=e("./utils"),n=function(){for(var e,A=[],t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;A[t]=e}return A}();A.exports=function(e,A){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,A,t,i){var r=n,o=i+t;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^A[s])];return-1^e}(0|A,e,e.length,0):function(e,A,t,i){var r=n,o=i+t;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^A.charCodeAt(s))];return-1^e}(0|A,e,e.length,0):0}},{"./utils":32}],5:[function(e,A,t){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(e,A,t){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:e("lie"),A.exports={Promise:i}},{lie:37}],7:[function(e,A,t){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=e("pako"),r=e("./utils"),o=e("./stream/GenericWorker"),s=i?"uint8array":"array";function a(e,A){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=A,this.meta={}}t.magic="\b\0",r.inherits(a,o),a.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(r.transformTo(s,e.data),!1)},a.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(A){e.push({data:A,meta:e.meta})}},t.compressWorker=function(e){return new a("Deflate",e)},t.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,A,t){"use strict";function i(e,A){var t,i="";for(t=0;t<A;t++)i+=String.fromCharCode(255&e),e>>>=8;return i}function n(e,A,t,n,o,c){var d,u,h=e.file,g=e.compression,p=c!==s.utf8encode,f=r.transformTo("string",c(h.name)),m=r.transformTo("string",s.utf8encode(h.name)),B=h.comment,w=r.transformTo("string",c(B)),v=r.transformTo("string",s.utf8encode(B)),y=m.length!==h.name.length,C=v.length!==B.length,b="",_="",Q="",U=h.dir,F=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};A&&!t||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize);var E=0;A&&(E|=8),p||!y&&!C||(E|=2048);var k=0,I=0;U&&(k|=16),"UNIX"===o?(I=798,k|=function(e,A){var t=e;return e||(t=A?16893:33204),(65535&t)<<16}(h.unixPermissions,U)):(I=20,k|=function(e){return 63&(e||0)}(h.dosPermissions)),d=F.getUTCHours(),d<<=6,d|=F.getUTCMinutes(),d<<=5,d|=F.getUTCSeconds()/2,u=F.getUTCFullYear()-1980,u<<=4,u|=F.getUTCMonth()+1,u<<=5,u|=F.getUTCDate(),y&&(_=i(1,1)+i(a(f),4)+m,b+="up"+i(_.length,2)+_),C&&(Q=i(1,1)+i(a(w),4)+v,b+="uc"+i(Q.length,2)+Q);var S="";return S+="\n\0",S+=i(E,2),S+=g.magic,S+=i(d,2),S+=i(u,2),S+=i(x.crc32,4),S+=i(x.compressedSize,4),S+=i(x.uncompressedSize,4),S+=i(f.length,2),S+=i(b.length,2),{fileRecord:l.LOCAL_FILE_HEADER+S+f+b,dirRecord:l.CENTRAL_FILE_HEADER+i(I,2)+S+i(w.length,2)+"\0\0\0\0"+i(k,4)+i(n,4)+f+b+w}}var r=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),a=e("../crc32"),l=e("../signature");function c(e,A,t,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=A,this.zipPlatform=t,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(c,o),c.prototype.push=function(e){var A=e.meta.percent||0,t=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:t?(A+100*(t-i-1))/t:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var A=this.streamFiles&&!e.file.dir;if(A){var t=n(e,A,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:t.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var A=this.streamFiles&&!e.file.dir,t=n(e,A,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(t.dirRecord),A)this.push({data:function(e){return l.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:t.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,A=0;A<this.dirRecords.length;A++)this.push({data:this.dirRecords[A],meta:{percent:100}});var t=this.bytesWritten-e,n=function(e,A,t,n,o){var s=r.transformTo("string",o(n));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(A,4)+i(t,4)+i(s.length,2)+s}(this.dirRecords.length,t,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var A=this;return e.on("data",(function(e){A.processChunk(e)})),e.on("end",(function(){A.closedSource(A.previous.streamInfo),A._sources.length?A.prepareNextSource():A.end()})),e.on("error",(function(e){A.error(e)})),this},c.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))},c.prototype.error=function(e){var A=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var t=0;t<A.length;t++)try{A[t].error(e)}catch(e){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,A=0;A<e.length;A++)e[A].lock()},A.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,A,t){"use strict";var i=e("../compressions"),n=e("./ZipFileWorker");t.generateWorker=function(e,A,t){var r=new n(A.streamFiles,t,A.platform,A.encodeFileName),o=0;try{e.forEach((function(e,t){o++;var n=function(e,A){var t=e||A,n=i[t];if(!n)throw new Error(t+" is not a valid compression method !");return n}(t.options.compression,A.compression),s=t.options.compressionOptions||A.compressionOptions||{},a=t.dir,l=t.date;t._compressWorker(n,s).withStreamInfo("file",{name:e,dir:a,date:l,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(r)})),r.entriesCount=o}catch(e){r.error(e)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,A,t){"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 e=new i;for(var A in this)"function"!=typeof this[A]&&(e[A]=this[A]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,A){return(new i).loadAsync(e,A)},i.external=e("./external"),A.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,A,t){"use strict";var i=e("./utils"),n=e("./external"),r=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),a=e("./nodejsUtils");function l(e){return new n.Promise((function(A,t){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",(function(e){t(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):A()})).resume()}))}A.exports=function(e,A){var t=this;return A=i.extend(A||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),a.isNode&&a.isStream(e)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,A.optimizedBinaryString,A.base64).then((function(e){var t=new o(A);return t.load(e),t})).then((function(e){var t=[n.Promise.resolve(e)],i=e.files;if(A.checkCRC32)for(var r=0;r<i.length;r++)t.push(l(i[r]));return n.Promise.all(t)})).then((function(e){for(var n=e.shift(),r=n.files,o=0;o<r.length;o++){var s=r[o],a=s.fileNameStr,l=i.resolve(s.fileNameStr);t.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:A.createFolders}),s.dir||(t.file(l).unsafeOriginalName=a)}return n.zipComment.length&&(t.comment=n.zipComment),t}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,A,t){"use strict";var i=e("../utils"),n=e("../stream/GenericWorker");function r(e,A){n.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(A)}i.inherits(r,n),r.prototype._bindStream=function(e){var A=this;(this._stream=e).pause(),e.on("data",(function(e){A.push({data:e,meta:{percent:0}})})).on("error",(function(e){A.isPaused?this.generatedError=e:A.error(e)})).on("end",(function(){A.isPaused?A._upstreamEnded=!0:A.end()}))},r.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},A.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,A,t){"use strict";var i=e("readable-stream").Readable;function n(e,A,t){i.call(this,A),this._helper=e;var n=this;e.on("data",(function(e,A){n.push(e)||n._helper.pause(),t&&t(A)})).on("error",(function(e){n.emit("error",e)})).on("end",(function(){n.push(null)}))}e("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},A.exports=n},{"../utils":32,"readable-stream":16}],14:[function(e,A,t){"use strict";A.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,A){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,A);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,A)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var A=new Buffer(e);return A.fill(0),A},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,A,t){"use strict";function i(e,A,t){var i,n=r.getTypeOf(A),s=r.extend(t||{},a);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&&(e=p(e)),s.createFolders&&(i=g(e))&&f.call(this,i,!0);var d="string"===n&&!1===s.binary&&!1===s.base64;t&&void 0!==t.binary||(s.binary=!d),(A instanceof l&&0===A.uncompressedSize||s.dir||!A||0===A.length)&&(s.base64=!1,s.binary=!0,A="",s.compression="STORE",n="string");var m=null;m=A instanceof l||A instanceof o?A:u.isNode&&u.isStream(A)?new h(e,A):r.prepareContent(e,A,s.binary,s.optimizedBinaryString,s.base64);var B=new c(e,m,s);this.files[e]=B}var n=e("./utf8"),r=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),a=e("./defaults"),l=e("./compressedObject"),c=e("./zipObject"),d=e("./generate"),u=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),g=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var A=e.lastIndexOf("/");return 0<A?e.substring(0,A):""},p=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},f=function(e,A){return A=void 0!==A?A:a.createFolders,e=p(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:A}),this.files[e]};function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var B={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var A,t,i;for(A in this.files)i=this.files[A],(t=A.slice(this.root.length,A.length))&&A.slice(0,this.root.length)===this.root&&e(t,i)},filter:function(e){var A=[];return this.forEach((function(t,i){e(t,i)&&A.push(i)})),A},file:function(e,A,t){if(1!==arguments.length)return e=this.root+e,i.call(this,e,A,t),this;if(m(e)){var n=e;return this.filter((function(e,A){return!A.dir&&n.test(e)}))}var r=this.files[this.root+e];return r&&!r.dir?r:null},folder:function(e){if(!e)return this;if(m(e))return this.filter((function(A,t){return t.dir&&e.test(A)}));var A=this.root+e,t=f.call(this,A),i=this.clone();return i.root=t.name,i},remove:function(e){e=this.root+e;var A=this.files[e];if(A||("/"!==e.slice(-1)&&(e+="/"),A=this.files[e]),A&&!A.dir)delete this.files[e];else for(var t=this.filter((function(A,t){return t.name.slice(0,e.length)===e})),i=0;i<t.length;i++)delete this.files[t[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(e){var A,t={};try{if((t=r.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");r.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var i=t.comment||this.comment||"";A=d.generateWorker(this,t,i)}catch(e){(A=new o("error")).error(e)}return new s(A,t.type||"string",t.mimeType)},generateAsync:function(e,A){return this.generateInternalStream(e).accumulate(A)},generateNodeStream:function(e,A){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(A)}};A.exports=B},{"./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(e,A,t){"use strict";A.exports=e("stream")},{stream:void 0}],17:[function(e,A,t){"use strict";var i=e("./DataReader");function n(e){i.call(this,e);for(var A=0;A<this.data.length;A++)e[A]=255&e[A]}e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data[this.zero+e]},n.prototype.lastIndexOfSignature=function(e){for(var A=e.charCodeAt(0),t=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===A&&this.data[r+1]===t&&this.data[r+2]===i&&this.data[r+3]===n)return r-this.zero;return-1},n.prototype.readAndCheckSignature=function(e){var A=e.charCodeAt(0),t=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),r=this.readData(4);return A===r[0]&&t===r[1]&&i===r[2]&&n===r[3]},n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var A=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,A},A.exports=n},{"../utils":32,"./DataReader":18}],18:[function(e,A,t){"use strict";var i=e("../utils");function n(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var A,t=0;for(this.checkOffset(e),A=this.index+e-1;A>=this.index;A--)t=(t<<8)+this.byteAt(A);return this.index+=e,t},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},A.exports=n},{"../utils":32}],19:[function(e,A,t){"use strict";var i=e("./Uint8ArrayReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.readData=function(e){this.checkOffset(e);var A=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,A},A.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,A,t){"use strict";var i=e("./DataReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var A=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,A},A.exports=n},{"../utils":32,"./DataReader":18}],21:[function(e,A,t){"use strict";var i=e("./ArrayReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var A=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,A},A.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,A,t){"use strict";var i=e("../utils"),n=e("../support"),r=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),a=e("./Uint8ArrayReader");A.exports=function(e){var A=i.getTypeOf(e);return i.checkSupport(A),"string"!==A||n.uint8array?"nodebuffer"===A?new s(e):n.uint8array?new a(i.transformTo("uint8array",e)):new r(i.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,A,t){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,A,t){"use strict";var i=e("./GenericWorker"),n=e("../utils");function r(e){i.call(this,"ConvertWorker to "+e),this.destType=e}n.inherits(r,i),r.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})},A.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(e,A,t){"use strict";var i=e("./GenericWorker"),n=e("../crc32");function r(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(r,i),r.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0),this.push(e)},A.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,A,t){"use strict";var i=e("../utils"),n=e("./GenericWorker");function r(e){n.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(r,n),r.prototype.processChunk=function(e){if(e){var A=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=A+e.data.length}n.prototype.processChunk.call(this,e)},A.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(e,A,t){"use strict";var i=e("../utils"),n=e("./GenericWorker");function r(e){n.call(this,"DataWorker");var A=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){A.dataIsReady=!0,A.data=e,A.max=e&&e.length||0,A.type=i.getTypeOf(e),A.isPaused||A._tickAndRepeat()}),(function(e){A.error(e)}))}i.inherits(r,n),r.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,A=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,A);break;case"uint8array":e=this.data.subarray(this.index,A);break;case"array":case"nodebuffer":e=this.data.slice(this.index,A)}return this.index=A,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},A.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(e,A,t){"use strict";function i(e){this.name=e||"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(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,A){return this._listeners[e].push(A),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,A){if(this._listeners[e])for(var t=0;t<this._listeners[e].length;t++)this._listeners[e][t].call(this,A)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var A=this;return e.on("data",(function(e){A.processChunk(e)})),e.on("end",(function(){A.end()})),e.on("error",(function(e){A.error(e)})),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 e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,A){return this.extraStreamInfo[e]=A,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},A.exports=i},{}],29:[function(e,A,t){"use strict";var i=e("../utils"),n=e("./ConvertWorker"),r=e("./GenericWorker"),o=e("../base64"),s=e("../support"),a=e("../external"),l=null;if(s.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,A){return new a.Promise((function(t,n){var r=[],s=e._internalType,a=e._outputType,l=e._mimeType;e.on("data",(function(e,t){r.push(e),A&&A(t)})).on("error",(function(e){r=[],n(e)})).on("end",(function(){try{var e=function(e,A,t){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",A),t);case"base64":return o.encode(A);default:return i.transformTo(e,A)}}(a,function(e,A){var t,i=0,n=null,r=0;for(t=0;t<A.length;t++)r+=A[t].length;switch(e){case"string":return A.join("");case"array":return Array.prototype.concat.apply([],A);case"uint8array":for(n=new Uint8Array(r),t=0;t<A.length;t++)n.set(A[t],i),i+=A[t].length;return n;case"nodebuffer":return Buffer.concat(A);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,r),l);t(e)}catch(e){n(e)}r=[]})).resume()}))}function d(e,A,t){var o=A;switch(A){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=A,this._mimeType=t,i.checkSupport(o),this._worker=e.pipe(new n(o)),e.lock()}catch(e){this._worker=new r("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return c(this,e)},on:function(e,A){var t=this;return"data"===e?this._worker.on(e,(function(e){A.call(t,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(A,arguments,t)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},A.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,A,t){"use strict";if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer="undefined"!=typeof Buffer,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(i),t.blob=0===n.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!e("readable-stream").Readable}catch(e){t.nodestream=!1}},{"readable-stream":16}],31:[function(e,A,t){"use strict";for(var i=e("./utils"),n=e("./support"),r=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,t.utf8encode=function(e){return n.nodebuffer?r.newBufferFrom(e,"utf-8"):function(e){var A,t,i,r,o,s=e.length,a=0;for(r=0;r<s;r++)55296==(64512&(t=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(i=e.charCodeAt(r+1)))&&(t=65536+(t-55296<<10)+(i-56320),r++),a+=t<128?1:t<2048?2:t<65536?3:4;for(A=n.uint8array?new Uint8Array(a):new Array(a),r=o=0;o<a;r++)55296==(64512&(t=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(i=e.charCodeAt(r+1)))&&(t=65536+(t-55296<<10)+(i-56320),r++),t<128?A[o++]=t:(t<2048?A[o++]=192|t>>>6:(t<65536?A[o++]=224|t>>>12:(A[o++]=240|t>>>18,A[o++]=128|t>>>12&63),A[o++]=128|t>>>6&63),A[o++]=128|63&t);return A}(e)},t.utf8decode=function(e){return n.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var A,t,n,r,o=e.length,a=new Array(2*o);for(A=t=0;A<o;)if((n=e[A++])<128)a[t++]=n;else if(4<(r=s[n]))a[t++]=65533,A+=r-1;else{for(n&=2===r?31:3===r?15:7;1<r&&A<o;)n=n<<6|63&e[A++],r--;1<r?a[t++]=65533:n<65536?a[t++]=n:(n-=65536,a[t++]=55296|n>>10&1023,a[t++]=56320|1023&n)}return a.length!==t&&(a.subarray?a=a.subarray(0,t):a.length=t),i.applyFromCharCode(a)}(e=i.transformTo(n.uint8array?"uint8array":"array",e))},i.inherits(l,o),l.prototype.processChunk=function(e){var A=i.transformTo(n.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var r=A;(A=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),A.set(r,this.leftOver.length)}else A=this.leftOver.concat(A);this.leftOver=null}var o=function(e,A){var t;for((A=A||e.length)>e.length&&(A=e.length),t=A-1;0<=t&&128==(192&e[t]);)t--;return t<0||0===t?A:t+s[e[t]]>A?t:A}(A),a=A;o!==A.length&&(n.uint8array?(a=A.subarray(0,o),this.leftOver=A.subarray(o,A.length)):(a=A.slice(0,o),this.leftOver=A.slice(o,A.length))),this.push({data:t.utf8decode(a),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=l,i.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,A,t){"use strict";var i=e("./support"),n=e("./base64"),r=e("./nodejsUtils"),o=e("./external");function s(e){return e}function a(e,A){for(var t=0;t<e.length;++t)A[t]=255&e.charCodeAt(t);return A}e("setimmediate"),t.newBlob=function(A,i){t.checkSupport("blob");try{return new Blob([A],{type:i})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(A),n.getBlob(i)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,A,t){var i=[],n=0,r=e.length;if(r<=t)return String.fromCharCode.apply(null,e);for(;n<r;)"array"===A||"nodebuffer"===A?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+t,r)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+t,r)))),n+=t;return i.join("")},stringifyByChar:function(e){for(var A="",t=0;t<e.length;t++)A+=String.fromCharCode(e[t]);return A},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var A=65536,i=t.getTypeOf(e),n=!0;if("uint8array"===i?n=l.applyCanBeUsed.uint8array:"nodebuffer"===i&&(n=l.applyCanBeUsed.nodebuffer),n)for(;1<A;)try{return l.stringifyByChunk(e,i,A)}catch(e){A=Math.floor(A/2)}return l.stringifyByChar(e)}function d(e,A){for(var t=0;t<e.length;t++)A[t]=e[t];return A}t.applyFromCharCode=c;var u={};u.string={string:s,array:function(e){return a(e,new Array(e.length))},arraybuffer:function(e){return u.string.uint8array(e).buffer},uint8array:function(e){return a(e,new Uint8Array(e.length))},nodebuffer:function(e){return a(e,r.allocBuffer(e.length))}},u.array={string:c,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(e)}},u.arraybuffer={string:function(e){return c(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(new Uint8Array(e))}},u.uint8array={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return r.newBufferFrom(e)}},u.nodebuffer={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return u.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},t.transformTo=function(e,A){if(A=A||"",!e)return A;t.checkSupport(e);var i=t.getTypeOf(A);return u[i][e](A)},t.resolve=function(e){for(var A=e.split("/"),t=[],i=0;i<A.length;i++){var n=A[i];"."===n||""===n&&0!==i&&i!==A.length-1||(".."===n?t.pop():t.push(n))}return t.join("/")},t.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&r.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(e){var A,t,i="";for(t=0;t<(e||"").length;t++)i+="\\x"+((A=e.charCodeAt(t))<16?"0":"")+A.toString(16).toUpperCase();return i},t.delay=function(e,A,t){setImmediate((function(){e.apply(t||null,A||[])}))},t.inherits=function(e,A){function t(){}t.prototype=A.prototype,e.prototype=new t},t.extend=function(){var e,A,t={};for(e=0;e<arguments.length;e++)for(A in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],A)&&void 0===t[A]&&(t[A]=arguments[e][A]);return t},t.prepareContent=function(e,A,r,s,l){return o.Promise.resolve(A).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(A,t){var i=new FileReader;i.onload=function(e){A(e.target.result)},i.onerror=function(e){t(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(A){var c=t.getTypeOf(A);return c?("arraybuffer"===c?A=t.transformTo("uint8array",A):"string"===c&&(l?A=n.decode(A):r&&!0!==s&&(A=function(e){return a(e,i.uint8array?new Uint8Array(e.length):new Array(e.length))}(A))),A):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,A,t){"use strict";var i=e("./reader/readerFor"),n=e("./utils"),r=e("./signature"),o=e("./zipEntry"),s=e("./support");function a(e){this.files=[],this.loadOptions=e}a.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var A=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(A)+", expected "+n.pretty(e)+")")}},isSignature:function(e,A){var t=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===A;return this.reader.setIndex(t),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 e=this.reader.readData(this.zipCommentLength),A=s.uint8array?"uint8array":"array",t=n.transformTo(A,e);this.zipComment=this.loadOptions.decodeFileName(t)},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 e,A,t,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),A=this.reader.readInt(4),t=this.reader.readData(A),this.zip64ExtensibleData[e]={id:e,length:A,value:t}},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 e,A;for(e=0;e<this.files.length;e++)A=this.files[e],this.reader.setIndex(A.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),A.readLocalPart(this.reader),A.handleUTF8(),A.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,r.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(e);var A=e;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.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(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var t=this.centralDirOffset+this.centralDirSize;this.zip64&&(t+=20,t+=12+this.zip64EndOfCentralSize);var i=A-t;if(0<i)this.isSignature(A,r.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},A.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,A,t){"use strict";var i=e("./reader/readerFor"),n=e("./utils"),r=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),a=e("./compressions"),l=e("./support");function c(e,A){this.options=e,this.loadOptions=A}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var A,t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(t),-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===(A=function(e){for(var A in a)if(Object.prototype.hasOwnProperty.call(a,A)&&a[A].magic===e)return a[A];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,A,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var A=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(A),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var A,t,i,n=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<n;)A=e.readInt(2),t=e.readInt(2),i=e.readData(t),this.extraFields[A]={id:A,length:t,value:i};e.setIndex(n)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var A=this.findExtraFieldUnicodePath();if(null!==A)this.fileNameStr=A;else{var t=n.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(t)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var r=n.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var A=i(e.value);return 1!==A.readInt(1)||o(this.fileName)!==A.readInt(4)?null:s.utf8decode(A.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var A=i(e.value);return 1!==A.readInt(1)||o(this.fileComment)!==A.readInt(4)?null:s.utf8decode(A.readData(e.length-5))}return null}},A.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,A,t){"use strict";function i(e,A,t){this.name=e,this.dir=t.dir,this.date=t.date,this.comment=t.comment,this.unixPermissions=t.unixPermissions,this.dosPermissions=t.dosPermissions,this._data=A,this._dataBinary=t.binary,this.options={compression:t.compression,compressionOptions:t.compressionOptions}}var n=e("./stream/StreamHelper"),r=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),a=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var A=null,t="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(t=e.toLowerCase())||"text"===t;"binarystring"!==t&&"text"!==t||(t="string"),A=this._decompressWorker();var r=!this._dataBinary;r&&!i&&(A=A.pipe(new o.Utf8EncodeWorker)),!r&&i&&(A=A.pipe(new o.Utf8DecodeWorker))}catch(e){(A=new a("error")).error(e)}return new n(A,t,"")},async:function(e,A){return this.internalStream(e).accumulate(A)},nodeStream:function(e,A){return this.internalStream(e||"nodebuffer").toNodejsStream(A)},_compressWorker:function(e,A){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var t=this._decompressWorker();return this._dataBinary||(t=t.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(t,e,A)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof a?this._data:new r(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=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]]=c;A.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,A,i){(function(e){"use strict";var t,i,n=e.MutationObserver||e.WebKitMutationObserver;if(n){var r=0,o=new n(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=r=++r%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var A=e.document.createElement("script");A.onreadystatechange=function(){c(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},e.document.documentElement.appendChild(A)}:function(){setTimeout(c,0)};else{var a=new e.MessageChannel;a.port1.onmessage=c,t=function(){a.port2.postMessage(0)}}var l=[];function c(){var e,A;i=!0;for(var t=l.length;t;){for(A=l,l=[],e=-1;++e<t;)A[e]();t=l.length}i=!1}A.exports=function(e){1!==l.push(e)||i||t()}}).call(this,"undefined"!=typeof t.g?t.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,A,t){"use strict";var i=e("immediate");function n(){}var r={},o=["REJECTED"],s=["FULFILLED"],a=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,e!==n&&h(this,e)}function c(e,A,t){this.promise=e,"function"==typeof A&&(this.onFulfilled=A,this.callFulfilled=this.otherCallFulfilled),"function"==typeof t&&(this.onRejected=t,this.callRejected=this.otherCallRejected)}function d(e,A,t){i((function(){var i;try{i=A(t)}catch(i){return r.reject(e,i)}i===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,i)}))}function u(e){var A=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof A)return function(){A.apply(e,arguments)}}function h(e,A){var t=!1;function i(A){t||(t=!0,r.reject(e,A))}function n(A){t||(t=!0,r.resolve(e,A))}var o=g((function(){A(n,i)}));"error"===o.status&&i(o.value)}function g(e,A){var t={};try{t.value=e(A),t.status="success"}catch(e){t.status="error",t.value=e}return t}(A.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var A=this.constructor;return this.then((function(t){return A.resolve(e()).then((function(){return t}))}),(function(t){return A.resolve(e()).then((function(){throw t}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,A){if("function"!=typeof e&&this.state===s||"function"!=typeof A&&this.state===o)return this;var t=new this.constructor(n);return this.state!==a?d(t,this.state===s?e:A,this.outcome):this.queue.push(new c(t,e,A)),t},c.prototype.callFulfilled=function(e){r.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){r.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},r.resolve=function(e,A){var t=g(u,A);if("error"===t.status)return r.reject(e,t.value);var i=t.value;if(i)h(e,i);else{e.state=s,e.outcome=A;for(var n=-1,o=e.queue.length;++n<o;)e.queue[n].callFulfilled(A)}return e},r.reject=function(e,A){e.state=o,e.outcome=A;for(var t=-1,i=e.queue.length;++t<i;)e.queue[t].callRejected(A);return e},l.resolve=function(e){return e instanceof this?e:r.resolve(new this(n),e)},l.reject=function(e){var A=new this(n);return r.reject(A,e)},l.all=function(e){var A=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,i=!1;if(!t)return this.resolve([]);for(var o=new Array(t),s=0,a=-1,l=new this(n);++a<t;)c(e[a],a);return l;function c(e,n){A.resolve(e).then((function(e){o[n]=e,++s!==t||i||(i=!0,r.resolve(l,o))}),(function(e){i||(i=!0,r.reject(l,e))}))}},l.race=function(e){var A=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,i=!1;if(!t)return this.resolve([]);for(var o,s=-1,a=new this(n);++s<t;)o=e[s],A.resolve(o).then((function(e){i||(i=!0,r.resolve(a,e))}),(function(e){i||(i=!0,r.reject(a,e))}));return a}},{immediate:36}],38:[function(e,A,t){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),A.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,A,t){"use strict";var i=e("./zlib/deflate"),n=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),a=Object.prototype.toString,l=0,c=-1,d=0,u=8;function h(e){if(!(this instanceof h))return new h(e);this.options=n.assign({level:c,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var A=this.options;A.raw&&0<A.windowBits?A.windowBits=-A.windowBits:A.gzip&&0<A.windowBits&&A.windowBits<16&&(A.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var t=i.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(t!==l)throw new Error(o[t]);if(A.header&&i.deflateSetHeader(this.strm,A.header),A.dictionary){var g;if(g="string"==typeof A.dictionary?r.string2buf(A.dictionary):"[object ArrayBuffer]"===a.call(A.dictionary)?new Uint8Array(A.dictionary):A.dictionary,(t=i.deflateSetDictionary(this.strm,g))!==l)throw new Error(o[t]);this._dict_set=!0}}function g(e,A){var t=new h(A);if(t.push(e,!0),t.err)throw t.msg||o[t.err];return t.result}h.prototype.push=function(e,A){var t,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=A===~~A?A:!0===A?4:0,"string"==typeof e?s.input=r.string2buf(e):"[object ArrayBuffer]"===a.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new n.Buf8(c),s.next_out=0,s.avail_out=c),1!==(t=i.deflate(s,o))&&t!==l)return this.onEnd(t),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(r.buf2binstring(n.shrinkBuf(s.output,s.next_out))):this.onData(n.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==t);return 4===o?(t=i.deflateEnd(this.strm),this.onEnd(t),this.ended=!0,t===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=h,t.deflate=g,t.deflateRaw=function(e,A){return(A=A||{}).raw=!0,g(e,A)},t.gzip=function(e,A){return(A=A||{}).gzip=!0,g(e,A)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,A,t){"use strict";var i=e("./zlib/inflate"),n=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),a=e("./zlib/zstream"),l=e("./zlib/gzheader"),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var A=this.options;A.raw&&0<=A.windowBits&&A.windowBits<16&&(A.windowBits=-A.windowBits,0===A.windowBits&&(A.windowBits=-15)),!(0<=A.windowBits&&A.windowBits<16)||e&&e.windowBits||(A.windowBits+=32),15<A.windowBits&&A.windowBits<48&&0==(15&A.windowBits)&&(A.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var t=i.inflateInit2(this.strm,A.windowBits);if(t!==o.Z_OK)throw new Error(s[t]);this.header=new l,i.inflateGetHeader(this.strm,this.header)}function u(e,A){var t=new d(A);if(t.push(e,!0),t.err)throw t.msg||s[t.err];return t.result}d.prototype.push=function(e,A){var t,s,a,l,d,u,h=this.strm,g=this.options.chunkSize,p=this.options.dictionary,f=!1;if(this.ended)return!1;s=A===~~A?A:!0===A?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?h.input=r.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new n.Buf8(g),h.next_out=0,h.avail_out=g),(t=i.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(u="string"==typeof p?r.string2buf(p):"[object ArrayBuffer]"===c.call(p)?new Uint8Array(p):p,t=i.inflateSetDictionary(this.strm,u)),t===o.Z_BUF_ERROR&&!0===f&&(t=o.Z_OK,f=!1),t!==o.Z_STREAM_END&&t!==o.Z_OK)return this.onEnd(t),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&t!==o.Z_STREAM_END&&(0!==h.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(a=r.utf8border(h.output,h.next_out),l=h.next_out-a,d=r.buf2string(h.output,a),h.next_out=l,h.avail_out=g-l,l&&n.arraySet(h.output,h.output,a,l,0),this.onData(d)):this.onData(n.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(f=!0)}while((0<h.avail_in||0===h.avail_out)&&t!==o.Z_STREAM_END);return t===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(t=i.inflateEnd(this.strm),this.onEnd(t),this.ended=!0,t===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=d,t.inflate=u,t.inflateRaw=function(e,A){return(A=A||{}).raw=!0,u(e,A)},t.ungzip=u},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,A,t){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(e){for(var A=Array.prototype.slice.call(arguments,1);A.length;){var t=A.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}}return e},t.shrinkBuf=function(e,A){return e.length===A?e:e.subarray?e.subarray(0,A):(e.length=A,e)};var n={arraySet:function(e,A,t,i,n){if(A.subarray&&e.subarray)e.set(A.subarray(t,t+i),n);else for(var r=0;r<i;r++)e[n+r]=A[t+r]},flattenChunks:function(e){var A,t,i,n,r,o;for(A=i=0,t=e.length;A<t;A++)i+=e[A].length;for(o=new Uint8Array(i),A=n=0,t=e.length;A<t;A++)r=e[A],o.set(r,n),n+=r.length;return o}},r={arraySet:function(e,A,t,i,n){for(var r=0;r<i;r++)e[n+r]=A[t+r]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,r))},t.setTyped(i)},{}],42:[function(e,A,t){"use strict";var i=e("./common"),n=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!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 a(e,A){if(A<65537&&(e.subarray&&r||!e.subarray&&n))return String.fromCharCode.apply(null,i.shrinkBuf(e,A));for(var t="",o=0;o<A;o++)t+=String.fromCharCode(e[o]);return t}o[254]=o[254]=1,t.string2buf=function(e){var A,t,n,r,o,s=e.length,a=0;for(r=0;r<s;r++)55296==(64512&(t=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=e.charCodeAt(r+1)))&&(t=65536+(t-55296<<10)+(n-56320),r++),a+=t<128?1:t<2048?2:t<65536?3:4;for(A=new i.Buf8(a),r=o=0;o<a;r++)55296==(64512&(t=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=e.charCodeAt(r+1)))&&(t=65536+(t-55296<<10)+(n-56320),r++),t<128?A[o++]=t:(t<2048?A[o++]=192|t>>>6:(t<65536?A[o++]=224|t>>>12:(A[o++]=240|t>>>18,A[o++]=128|t>>>12&63),A[o++]=128|t>>>6&63),A[o++]=128|63&t);return A},t.buf2binstring=function(e){return a(e,e.length)},t.binstring2buf=function(e){for(var A=new i.Buf8(e.length),t=0,n=A.length;t<n;t++)A[t]=e.charCodeAt(t);return A},t.buf2string=function(e,A){var t,i,n,r,s=A||e.length,l=new Array(2*s);for(t=i=0;t<s;)if((n=e[t++])<128)l[i++]=n;else if(4<(r=o[n]))l[i++]=65533,t+=r-1;else{for(n&=2===r?31:3===r?15:7;1<r&&t<s;)n=n<<6|63&e[t++],r--;1<r?l[i++]=65533:n<65536?l[i++]=n:(n-=65536,l[i++]=55296|n>>10&1023,l[i++]=56320|1023&n)}return a(l,i)},t.utf8border=function(e,A){var t;for((A=A||e.length)>e.length&&(A=e.length),t=A-1;0<=t&&128==(192&e[t]);)t--;return t<0||0===t?A:t+o[e[t]]>A?t:A}},{"./common":41}],43:[function(e,A,t){"use strict";A.exports=function(e,A,t,i){for(var n=65535&e|0,r=e>>>16&65535|0,o=0;0!==t;){for(t-=o=2e3<t?2e3:t;r=r+(n=n+A[i++]|0)|0,--o;);n%=65521,r%=65521}return n|r<<16|0}},{}],44:[function(e,A,t){"use strict";A.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(e,A,t){"use strict";var i=function(){for(var e,A=[],t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;A[t]=e}return A}();A.exports=function(e,A,t,n){var r=i,o=n+t;e^=-1;for(var s=n;s<o;s++)e=e>>>8^r[255&(e^A[s])];return-1^e}},{}],46:[function(e,A,t){"use strict";var i,n=e("../utils/common"),r=e("./trees"),o=e("./adler32"),s=e("./crc32"),a=e("./messages"),l=0,c=4,d=0,u=-2,h=-1,g=4,p=2,f=8,m=9,B=286,w=30,v=19,y=2*B+1,C=15,b=3,_=258,Q=_+b+1,U=42,F=113,x=1,E=2,k=3,I=4;function S(e,A){return e.msg=a[A],A}function D(e){return(e<<1)-(4<e?9:0)}function H(e){for(var A=e.length;0<=--A;)e[A]=0}function L(e){var A=e.state,t=A.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(n.arraySet(e.output,A.pending_buf,A.pending_out,t,e.next_out),e.next_out+=t,A.pending_out+=t,e.total_out+=t,e.avail_out-=t,A.pending-=t,0===A.pending&&(A.pending_out=0))}function O(e,A){r._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,A),e.block_start=e.strstart,L(e.strm)}function M(e,A){e.pending_buf[e.pending++]=A}function T(e,A){e.pending_buf[e.pending++]=A>>>8&255,e.pending_buf[e.pending++]=255&A}function N(e,A){var t,i,n=e.max_chain_length,r=e.strstart,o=e.prev_length,s=e.nice_match,a=e.strstart>e.w_size-Q?e.strstart-(e.w_size-Q):0,l=e.window,c=e.w_mask,d=e.prev,u=e.strstart+_,h=l[r+o-1],g=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(t=A)+o]===g&&l[t+o-1]===h&&l[t]===l[r]&&l[++t]===l[r+1]){r+=2,t++;do{}while(l[++r]===l[++t]&&l[++r]===l[++t]&&l[++r]===l[++t]&&l[++r]===l[++t]&&l[++r]===l[++t]&&l[++r]===l[++t]&&l[++r]===l[++t]&&l[++r]===l[++t]&&r<u);if(i=_-(u-r),r=u-_,o<i){if(e.match_start=A,s<=(o=i))break;h=l[r+o-1],g=l[r+o]}}}while((A=d[A&c])>a&&0!=--n);return o<=e.lookahead?o:e.lookahead}function K(e){var A,t,i,r,a,l,c,d,u,h,g=e.w_size;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-Q)){for(n.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,A=t=e.hash_size;i=e.head[--A],e.head[A]=g<=i?i-g:0,--t;);for(A=t=g;i=e.prev[--A],e.prev[A]=g<=i?i-g:0,--t;);r+=g}if(0===e.strm.avail_in)break;if(l=e.strm,c=e.window,d=e.strstart+e.lookahead,u=r,h=void 0,h=l.avail_in,u<h&&(h=u),t=0===h?0:(l.avail_in-=h,n.arraySet(c,l.input,l.next_in,h,d),1===l.state.wrap?l.adler=o(l.adler,c,h,d):2===l.state.wrap&&(l.adler=s(l.adler,c,h,d)),l.next_in+=h,l.total_in+=h,h),e.lookahead+=t,e.lookahead+e.insert>=b)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+b-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<b)););}while(e.lookahead<Q&&0!==e.strm.avail_in)}function P(e,A){for(var t,i;;){if(e.lookahead<Q){if(K(e),e.lookahead<Q&&A===l)return x;if(0===e.lookahead)break}if(t=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==t&&e.strstart-t<=e.w_size-Q&&(e.match_length=N(e,t)),e.match_length>=b)if(i=r._tr_tally(e,e.strstart-e.match_start,e.match_length-b),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=b){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(O(e,!1),0===e.strm.avail_out))return x}return e.insert=e.strstart<b-1?e.strstart:b-1,A===c?(O(e,!0),0===e.strm.avail_out?k:I):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?x:E}function R(e,A){for(var t,i,n;;){if(e.lookahead<Q){if(K(e),e.lookahead<Q&&A===l)return x;if(0===e.lookahead)break}if(t=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=b-1,0!==t&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-Q&&(e.match_length=N(e,t),e.match_length<=5&&(1===e.strategy||e.match_length===b&&4096<e.strstart-e.match_start)&&(e.match_length=b-1)),e.prev_length>=b&&e.match_length<=e.prev_length){for(n=e.strstart+e.lookahead-b,i=r._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-b),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=b-1,e.strstart++,i&&(O(e,!1),0===e.strm.avail_out))return x}else if(e.match_available){if((i=r._tr_tally(e,0,e.window[e.strstart-1]))&&O(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return x}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=r._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<b-1?e.strstart:b-1,A===c?(O(e,!0),0===e.strm.avail_out?k:I):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?x:E}function V(e,A,t,i,n){this.good_length=e,this.max_lazy=A,this.nice_length=t,this.max_chain=i,this.func=n}function G(){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=f,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 n.Buf16(2*y),this.dyn_dtree=new n.Buf16(2*(2*w+1)),this.bl_tree=new n.Buf16(2*(2*v+1)),H(this.dyn_ltree),H(this.dyn_dtree),H(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(C+1),this.heap=new n.Buf16(2*B+1),H(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*B+1),H(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 j(e){var A;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=p,(A=e.state).pending=0,A.pending_out=0,A.wrap<0&&(A.wrap=-A.wrap),A.status=A.wrap?U:F,e.adler=2===A.wrap?0:1,A.last_flush=l,r._tr_init(A),d):S(e,u)}function z(e){var A=j(e);return A===d&&function(e){e.window_size=2*e.w_size,H(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=b-1,e.match_available=0,e.ins_h=0}(e.state),A}function Z(e,A,t,i,r,o){if(!e)return u;var s=1;if(A===h&&(A=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),r<1||m<r||t!==f||i<8||15<i||A<0||9<A||o<0||g<o)return S(e,u);8===i&&(i=9);var a=new G;return(e.state=a).strm=e,a.wrap=s,a.gzhead=null,a.w_bits=i,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=r+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+b-1)/b),a.window=new n.Buf8(2*a.w_size),a.head=new n.Buf16(a.hash_size),a.prev=new n.Buf16(a.w_size),a.lit_bufsize=1<<r+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new n.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=A,a.strategy=o,a.method=t,z(e)}i=[new V(0,0,0,0,(function(e,A){var t=65535;for(t>e.pending_buf_size-5&&(t=e.pending_buf_size-5);;){if(e.lookahead<=1){if(K(e),0===e.lookahead&&A===l)return x;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+t;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,O(e,!1),0===e.strm.avail_out))return x;if(e.strstart-e.block_start>=e.w_size-Q&&(O(e,!1),0===e.strm.avail_out))return x}return e.insert=0,A===c?(O(e,!0),0===e.strm.avail_out?k:I):(e.strstart>e.block_start&&(O(e,!1),e.strm.avail_out),x)})),new V(4,4,8,4,P),new V(4,5,16,8,P),new V(4,6,32,32,P),new V(4,4,16,16,R),new V(8,16,32,32,R),new V(8,16,128,128,R),new V(8,32,128,256,R),new V(32,128,258,1024,R),new V(32,258,258,4096,R)],t.deflateInit=function(e,A){return Z(e,A,f,15,8,0)},t.deflateInit2=Z,t.deflateReset=z,t.deflateResetKeep=j,t.deflateSetHeader=function(e,A){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=A,d):u},t.deflate=function(e,A){var t,n,o,a;if(!e||!e.state||5<A||A<0)return e?S(e,u):u;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&A!==c)return S(e,0===e.avail_out?-5:u);if(n.strm=e,t=n.last_flush,n.last_flush=A,n.status===U)if(2===n.wrap)e.adler=0,M(n,31),M(n,139),M(n,8),n.gzhead?(M(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),M(n,255&n.gzhead.time),M(n,n.gzhead.time>>8&255),M(n,n.gzhead.time>>16&255),M(n,n.gzhead.time>>24&255),M(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),M(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(M(n,255&n.gzhead.extra.length),M(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=s(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(M(n,0),M(n,0),M(n,0),M(n,0),M(n,0),M(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),M(n,3),n.status=F);else{var h=f+(n.w_bits-8<<4)<<8;h|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(h|=32),h+=31-h%31,n.status=F,T(n,h),0!==n.strstart&&(T(n,e.adler>>>16),T(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(o=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),L(e),o=n.pending,n.pending!==n.pending_buf_size));)M(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),L(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,M(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),L(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,M(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&L(e),n.pending+2<=n.pending_buf_size&&(M(n,255&e.adler),M(n,e.adler>>8&255),e.adler=0,n.status=F)):n.status=F),0!==n.pending){if(L(e),0===e.avail_out)return n.last_flush=-1,d}else if(0===e.avail_in&&D(A)<=D(t)&&A!==c)return S(e,-5);if(666===n.status&&0!==e.avail_in)return S(e,-5);if(0!==e.avail_in||0!==n.lookahead||A!==l&&666!==n.status){var g=2===n.strategy?function(e,A){for(var t;;){if(0===e.lookahead&&(K(e),0===e.lookahead)){if(A===l)return x;break}if(e.match_length=0,t=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(O(e,!1),0===e.strm.avail_out))return x}return e.insert=0,A===c?(O(e,!0),0===e.strm.avail_out?k:I):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?x:E}(n,A):3===n.strategy?function(e,A){for(var t,i,n,o,s=e.window;;){if(e.lookahead<=_){if(K(e),e.lookahead<=_&&A===l)return x;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=b&&0<e.strstart&&(i=s[n=e.strstart-1])===s[++n]&&i===s[++n]&&i===s[++n]){o=e.strstart+_;do{}while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&n<o);e.match_length=_-(o-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=b?(t=r._tr_tally(e,1,e.match_length-b),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(O(e,!1),0===e.strm.avail_out))return x}return e.insert=0,A===c?(O(e,!0),0===e.strm.avail_out?k:I):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?x:E}(n,A):i[n.level].func(n,A);if(g!==k&&g!==I||(n.status=666),g===x||g===k)return 0===e.avail_out&&(n.last_flush=-1),d;if(g===E&&(1===A?r._tr_align(n):5!==A&&(r._tr_stored_block(n,0,0,!1),3===A&&(H(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),L(e),0===e.avail_out))return n.last_flush=-1,d}return A!==c?d:n.wrap<=0?1:(2===n.wrap?(M(n,255&e.adler),M(n,e.adler>>8&255),M(n,e.adler>>16&255),M(n,e.adler>>24&255),M(n,255&e.total_in),M(n,e.total_in>>8&255),M(n,e.total_in>>16&255),M(n,e.total_in>>24&255)):(T(n,e.adler>>>16),T(n,65535&e.adler)),L(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?d:1)},t.deflateEnd=function(e){var A;return e&&e.state?(A=e.state.status)!==U&&69!==A&&73!==A&&91!==A&&103!==A&&A!==F&&666!==A?S(e,u):(e.state=null,A===F?S(e,-3):d):u},t.deflateSetDictionary=function(e,A){var t,i,r,s,a,l,c,h,g=A.length;if(!e||!e.state)return u;if(2===(s=(t=e.state).wrap)||1===s&&t.status!==U||t.lookahead)return u;for(1===s&&(e.adler=o(e.adler,A,g,0)),t.wrap=0,g>=t.w_size&&(0===s&&(H(t.head),t.strstart=0,t.block_start=0,t.insert=0),h=new n.Buf8(t.w_size),n.arraySet(h,A,g-t.w_size,t.w_size,0),A=h,g=t.w_size),a=e.avail_in,l=e.next_in,c=e.input,e.avail_in=g,e.next_in=0,e.input=A,K(t);t.lookahead>=b;){for(i=t.strstart,r=t.lookahead-(b-1);t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+b-1])&t.hash_mask,t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,--r;);t.strstart=i,t.lookahead=b-1,K(t)}return t.strstart+=t.lookahead,t.block_start=t.strstart,t.insert=t.lookahead,t.lookahead=0,t.match_length=t.prev_length=b-1,t.match_available=0,e.next_in=l,e.input=c,e.avail_in=a,t.wrap=s,d},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,A,t){"use strict";A.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(e,A,t){"use strict";A.exports=function(e,A){var t,i,n,r,o,s,a,l,c,d,u,h,g,p,f,m,B,w,v,y,C,b,_,Q,U;t=e.state,i=e.next_in,Q=e.input,n=i+(e.avail_in-5),r=e.next_out,U=e.output,o=r-(A-e.avail_out),s=r+(e.avail_out-257),a=t.dmax,l=t.wsize,c=t.whave,d=t.wnext,u=t.window,h=t.hold,g=t.bits,p=t.lencode,f=t.distcode,m=(1<<t.lenbits)-1,B=(1<<t.distbits)-1;e:do{g<15&&(h+=Q[i++]<<g,g+=8,h+=Q[i++]<<g,g+=8),w=p[h&m];A:for(;;){if(h>>>=v=w>>>24,g-=v,0===(v=w>>>16&255))U[r++]=65535&w;else{if(!(16&v)){if(0==(64&v)){w=p[(65535&w)+(h&(1<<v)-1)];continue A}if(32&v){t.mode=12;break e}e.msg="invalid literal/length code",t.mode=30;break e}y=65535&w,(v&=15)&&(g<v&&(h+=Q[i++]<<g,g+=8),y+=h&(1<<v)-1,h>>>=v,g-=v),g<15&&(h+=Q[i++]<<g,g+=8,h+=Q[i++]<<g,g+=8),w=f[h&B];t:for(;;){if(h>>>=v=w>>>24,g-=v,!(16&(v=w>>>16&255))){if(0==(64&v)){w=f[(65535&w)+(h&(1<<v)-1)];continue t}e.msg="invalid distance code",t.mode=30;break e}if(C=65535&w,g<(v&=15)&&(h+=Q[i++]<<g,(g+=8)<v&&(h+=Q[i++]<<g,g+=8)),a<(C+=h&(1<<v)-1)){e.msg="invalid distance too far back",t.mode=30;break e}if(h>>>=v,g-=v,(v=r-o)<C){if(c<(v=C-v)&&t.sane){e.msg="invalid distance too far back",t.mode=30;break e}if(_=u,(b=0)===d){if(b+=l-v,v<y){for(y-=v;U[r++]=u[b++],--v;);b=r-C,_=U}}else if(d<v){if(b+=l+d-v,(v-=d)<y){for(y-=v;U[r++]=u[b++],--v;);if(b=0,d<y){for(y-=v=d;U[r++]=u[b++],--v;);b=r-C,_=U}}}else if(b+=d-v,v<y){for(y-=v;U[r++]=u[b++],--v;);b=r-C,_=U}for(;2<y;)U[r++]=_[b++],U[r++]=_[b++],U[r++]=_[b++],y-=3;y&&(U[r++]=_[b++],1<y&&(U[r++]=_[b++]))}else{for(b=r-C;U[r++]=U[b++],U[r++]=U[b++],U[r++]=U[b++],2<(y-=3););y&&(U[r++]=U[b++],1<y&&(U[r++]=U[b++]))}break}}break}}while(i<n&&r<s);i-=y=g>>3,h&=(1<<(g-=y<<3))-1,e.next_in=i,e.next_out=r,e.avail_in=i<n?n-i+5:5-(i-n),e.avail_out=r<s?s-r+257:257-(r-s),t.hold=h,t.bits=g}},{}],49:[function(e,A,t){"use strict";var i=e("../utils/common"),n=e("./adler32"),r=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),a=1,l=2,c=0,d=-2,u=1,h=852,g=592;function p(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){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(e){var A;return e&&e.state?(A=e.state,e.total_in=e.total_out=A.total=0,e.msg="",A.wrap&&(e.adler=1&A.wrap),A.mode=u,A.last=0,A.havedict=0,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new i.Buf32(h),A.distcode=A.distdyn=new i.Buf32(g),A.sane=1,A.back=-1,c):d}function B(e){var A;return e&&e.state?((A=e.state).wsize=0,A.whave=0,A.wnext=0,m(e)):d}function w(e,A){var t,i;return e&&e.state?(i=e.state,A<0?(t=0,A=-A):(t=1+(A>>4),A<48&&(A&=15)),A&&(A<8||15<A)?d:(null!==i.window&&i.wbits!==A&&(i.window=null),i.wrap=t,i.wbits=A,B(e))):d}function v(e,A){var t,i;return e?(i=new f,(e.state=i).window=null,(t=w(e,A))!==c&&(e.state=null),t):d}var y,C,b=!0;function _(e){if(b){var A;for(y=new i.Buf32(512),C=new i.Buf32(32),A=0;A<144;)e.lens[A++]=8;for(;A<256;)e.lens[A++]=9;for(;A<280;)e.lens[A++]=7;for(;A<288;)e.lens[A++]=8;for(s(a,e.lens,0,288,y,0,e.work,{bits:9}),A=0;A<32;)e.lens[A++]=5;s(l,e.lens,0,32,C,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=C,e.distbits=5}function Q(e,A,t,n){var r,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),n>=o.wsize?(i.arraySet(o.window,A,t-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(r=o.wsize-o.wnext)&&(r=n),i.arraySet(o.window,A,t-n,r,o.wnext),(n-=r)?(i.arraySet(o.window,A,t-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0}t.inflateReset=B,t.inflateReset2=w,t.inflateResetKeep=m,t.inflateInit=function(e){return v(e,15)},t.inflateInit2=v,t.inflate=function(e,A){var t,h,g,f,m,B,w,v,y,C,b,U,F,x,E,k,I,S,D,H,L,O,M,T,N=0,K=new i.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(t=e.state).mode&&(t.mode=13),m=e.next_out,g=e.output,w=e.avail_out,f=e.next_in,h=e.input,B=e.avail_in,v=t.hold,y=t.bits,C=B,b=w,O=c;e:for(;;)switch(t.mode){case u:if(0===t.wrap){t.mode=13;break}for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(2&t.wrap&&35615===v){K[t.check=0]=255&v,K[1]=v>>>8&255,t.check=r(t.check,K,2,0),y=v=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",t.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",t.mode=30;break}if(y-=4,L=8+(15&(v>>>=4)),0===t.wbits)t.wbits=L;else if(L>t.wbits){e.msg="invalid window size",t.mode=30;break}t.dmax=1<<L,e.adler=t.check=1,t.mode=512&v?10:12,y=v=0;break;case 2:for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(t.flags=v,8!=(255&t.flags)){e.msg="unknown compression method",t.mode=30;break}if(57344&t.flags){e.msg="unknown header flags set",t.mode=30;break}t.head&&(t.head.text=v>>8&1),512&t.flags&&(K[0]=255&v,K[1]=v>>>8&255,t.check=r(t.check,K,2,0)),y=v=0,t.mode=3;case 3:for(;y<32;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}t.head&&(t.head.time=v),512&t.flags&&(K[0]=255&v,K[1]=v>>>8&255,K[2]=v>>>16&255,K[3]=v>>>24&255,t.check=r(t.check,K,4,0)),y=v=0,t.mode=4;case 4:for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}t.head&&(t.head.xflags=255&v,t.head.os=v>>8),512&t.flags&&(K[0]=255&v,K[1]=v>>>8&255,t.check=r(t.check,K,2,0)),y=v=0,t.mode=5;case 5:if(1024&t.flags){for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}t.length=v,t.head&&(t.head.extra_len=v),512&t.flags&&(K[0]=255&v,K[1]=v>>>8&255,t.check=r(t.check,K,2,0)),y=v=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&(B<(U=t.length)&&(U=B),U&&(t.head&&(L=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),i.arraySet(t.head.extra,h,f,U,L)),512&t.flags&&(t.check=r(t.check,h,U,f)),B-=U,f+=U,t.length-=U),t.length))break e;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===B)break e;for(U=0;L=h[f+U++],t.head&&L&&t.length<65536&&(t.head.name+=String.fromCharCode(L)),L&&U<B;);if(512&t.flags&&(t.check=r(t.check,h,U,f)),B-=U,f+=U,L)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=8;case 8:if(4096&t.flags){if(0===B)break e;for(U=0;L=h[f+U++],t.head&&L&&t.length<65536&&(t.head.comment+=String.fromCharCode(L)),L&&U<B;);if(512&t.flags&&(t.check=r(t.check,h,U,f)),B-=U,f+=U,L)break e}else t.head&&(t.head.comment=null);t.mode=9;case 9:if(512&t.flags){for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(v!==(65535&t.check)){e.msg="header crc mismatch",t.mode=30;break}y=v=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=12;break;case 10:for(;y<32;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}e.adler=t.check=p(v),y=v=0,t.mode=11;case 11:if(0===t.havedict)return e.next_out=m,e.avail_out=w,e.next_in=f,e.avail_in=B,t.hold=v,t.bits=y,2;e.adler=t.check=1,t.mode=12;case 12:if(5===A||6===A)break e;case 13:if(t.last){v>>>=7&y,y-=7&y,t.mode=27;break}for(;y<3;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}switch(t.last=1&v,y-=1,3&(v>>>=1)){case 0:t.mode=14;break;case 1:if(_(t),t.mode=20,6!==A)break;v>>>=2,y-=2;break e;case 2:t.mode=17;break;case 3:e.msg="invalid block type",t.mode=30}v>>>=2,y-=2;break;case 14:for(v>>>=7&y,y-=7&y;y<32;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&v,y=v=0,t.mode=15,6===A)break e;case 15:t.mode=16;case 16:if(U=t.length){if(B<U&&(U=B),w<U&&(U=w),0===U)break e;i.arraySet(g,h,f,U,m),B-=U,f+=U,w-=U,m+=U,t.length-=U;break}t.mode=12;break;case 17:for(;y<14;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(t.nlen=257+(31&v),v>>>=5,y-=5,t.ndist=1+(31&v),v>>>=5,y-=5,t.ncode=4+(15&v),v>>>=4,y-=4,286<t.nlen||30<t.ndist){e.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have<t.ncode;){for(;y<3;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}t.lens[P[t.have++]]=7&v,v>>>=3,y-=3}for(;t.have<19;)t.lens[P[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,M={bits:t.lenbits},O=s(0,t.lens,0,19,t.lencode,0,t.work,M),t.lenbits=M.bits,O){e.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have<t.nlen+t.ndist;){for(;k=(N=t.lencode[v&(1<<t.lenbits)-1])>>>16&255,I=65535&N,!((E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(I<16)v>>>=E,y-=E,t.lens[t.have++]=I;else{if(16===I){for(T=E+2;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(v>>>=E,y-=E,0===t.have){e.msg="invalid bit length repeat",t.mode=30;break}L=t.lens[t.have-1],U=3+(3&v),v>>>=2,y-=2}else if(17===I){for(T=E+3;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}y-=E,L=0,U=3+(7&(v>>>=E)),v>>>=3,y-=3}else{for(T=E+7;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}y-=E,L=0,U=11+(127&(v>>>=E)),v>>>=7,y-=7}if(t.have+U>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=30;break}for(;U--;)t.lens[t.have++]=L}}if(30===t.mode)break;if(0===t.lens[256]){e.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,M={bits:t.lenbits},O=s(a,t.lens,0,t.nlen,t.lencode,0,t.work,M),t.lenbits=M.bits,O){e.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,M={bits:t.distbits},O=s(l,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,M),t.distbits=M.bits,O){e.msg="invalid distances set",t.mode=30;break}if(t.mode=20,6===A)break e;case 20:t.mode=21;case 21:if(6<=B&&258<=w){e.next_out=m,e.avail_out=w,e.next_in=f,e.avail_in=B,t.hold=v,t.bits=y,o(e,b),m=e.next_out,g=e.output,w=e.avail_out,f=e.next_in,h=e.input,B=e.avail_in,v=t.hold,y=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;k=(N=t.lencode[v&(1<<t.lenbits)-1])>>>16&255,I=65535&N,!((E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(k&&0==(240&k)){for(S=E,D=k,H=I;k=(N=t.lencode[H+((v&(1<<S+D)-1)>>S)])>>>16&255,I=65535&N,!(S+(E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}v>>>=S,y-=S,t.back+=S}if(v>>>=E,y-=E,t.back+=E,t.length=I,0===k){t.mode=26;break}if(32&k){t.back=-1,t.mode=12;break}if(64&k){e.msg="invalid literal/length code",t.mode=30;break}t.extra=15&k,t.mode=22;case 22:if(t.extra){for(T=t.extra;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}t.length+=v&(1<<t.extra)-1,v>>>=t.extra,y-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;k=(N=t.distcode[v&(1<<t.distbits)-1])>>>16&255,I=65535&N,!((E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(0==(240&k)){for(S=E,D=k,H=I;k=(N=t.distcode[H+((v&(1<<S+D)-1)>>S)])>>>16&255,I=65535&N,!(S+(E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}v>>>=S,y-=S,t.back+=S}if(v>>>=E,y-=E,t.back+=E,64&k){e.msg="invalid distance code",t.mode=30;break}t.offset=I,t.extra=15&k,t.mode=24;case 24:if(t.extra){for(T=t.extra;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}t.offset+=v&(1<<t.extra)-1,v>>>=t.extra,y-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===w)break e;if(U=b-w,t.offset>U){if((U=t.offset-U)>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=30;break}F=U>t.wnext?(U-=t.wnext,t.wsize-U):t.wnext-U,U>t.length&&(U=t.length),x=t.window}else x=g,F=m-t.offset,U=t.length;for(w<U&&(U=w),w-=U,t.length-=U;g[m++]=x[F++],--U;);0===t.length&&(t.mode=21);break;case 26:if(0===w)break e;g[m++]=t.length,w--,t.mode=21;break;case 27:if(t.wrap){for(;y<32;){if(0===B)break e;B--,v|=h[f++]<<y,y+=8}if(b-=w,e.total_out+=b,t.total+=b,b&&(e.adler=t.check=t.flags?r(t.check,g,b,m-b):n(t.check,g,b,m-b)),b=w,(t.flags?v:p(v))!==t.check){e.msg="incorrect data check",t.mode=30;break}y=v=0}t.mode=28;case 28:if(t.wrap&&t.flags){for(;y<32;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(v!==(4294967295&t.total)){e.msg="incorrect length check",t.mode=30;break}y=v=0}t.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=m,e.avail_out=w,e.next_in=f,e.avail_in=B,t.hold=v,t.bits=y,(t.wsize||b!==e.avail_out&&t.mode<30&&(t.mode<27||4!==A))&&Q(e,e.output,e.next_out,b-e.avail_out)?(t.mode=31,-4):(C-=e.avail_in,b-=e.avail_out,e.total_in+=C,e.total_out+=b,t.total+=b,t.wrap&&b&&(e.adler=t.check=t.flags?r(t.check,g,b,e.next_out-b):n(t.check,g,b,e.next_out-b)),e.data_type=t.bits+(t.last?64:0)+(12===t.mode?128:0)+(20===t.mode||15===t.mode?256:0),(0==C&&0===b||4===A)&&O===c&&(O=-5),O)},t.inflateEnd=function(e){if(!e||!e.state)return d;var A=e.state;return A.window&&(A.window=null),e.state=null,c},t.inflateGetHeader=function(e,A){var t;return e&&e.state?0==(2&(t=e.state).wrap)?d:((t.head=A).done=!1,c):d},t.inflateSetDictionary=function(e,A){var t,i=A.length;return e&&e.state?0!==(t=e.state).wrap&&11!==t.mode?d:11===t.mode&&n(1,A,i,0)!==t.check?-3:Q(e,A,i,i)?(t.mode=31,-4):(t.havedict=1,c):d},t.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,A,t){"use strict";var i=e("../utils/common"),n=[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],r=[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];A.exports=function(e,A,t,a,l,c,d,u){var h,g,p,f,m,B,w,v,y,C=u.bits,b=0,_=0,Q=0,U=0,F=0,x=0,E=0,k=0,I=0,S=0,D=null,H=0,L=new i.Buf16(16),O=new i.Buf16(16),M=null,T=0;for(b=0;b<=15;b++)L[b]=0;for(_=0;_<a;_++)L[A[t+_]]++;for(F=C,U=15;1<=U&&0===L[U];U--);if(U<F&&(F=U),0===U)return l[c++]=20971520,l[c++]=20971520,u.bits=1,0;for(Q=1;Q<U&&0===L[Q];Q++);for(F<Q&&(F=Q),b=k=1;b<=15;b++)if(k<<=1,(k-=L[b])<0)return-1;if(0<k&&(0===e||1!==U))return-1;for(O[1]=0,b=1;b<15;b++)O[b+1]=O[b]+L[b];for(_=0;_<a;_++)0!==A[t+_]&&(d[O[A[t+_]]++]=_);if(B=0===e?(D=M=d,19):1===e?(D=n,H-=257,M=r,T-=257,256):(D=o,M=s,-1),b=Q,m=c,E=_=S=0,p=-1,f=(I=1<<(x=F))-1,1===e&&852<I||2===e&&592<I)return 1;for(;;){for(w=b-E,y=d[_]<B?(v=0,d[_]):d[_]>B?(v=M[T+d[_]],D[H+d[_]]):(v=96,0),h=1<<b-E,Q=g=1<<x;l[m+(S>>E)+(g-=h)]=w<<24|v<<16|y|0,0!==g;);for(h=1<<b-1;S&h;)h>>=1;if(0!==h?(S&=h-1,S+=h):S=0,_++,0==--L[b]){if(b===U)break;b=A[t+d[_]]}if(F<b&&(S&f)!==p){for(0===E&&(E=F),m+=Q,k=1<<(x=b-E);x+E<U&&!((k-=L[x+E])<=0);)x++,k<<=1;if(I+=1<<x,1===e&&852<I||2===e&&592<I)return 1;l[p=S&f]=F<<24|x<<16|m-c|0}}return 0!==S&&(l[m+S]=b-E<<24|64<<16|0),u.bits=F,0}},{"../utils/common":41}],51:[function(e,A,t){"use strict";A.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(e,A,t){"use strict";var i=e("../utils/common"),n=0,r=1;function o(e){for(var A=e.length;0<=--A;)e[A]=0}var s=0,a=29,l=256,c=l+1+a,d=30,u=19,h=2*c+1,g=15,p=16,f=7,m=256,B=16,w=17,v=18,y=[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],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Q=new Array(2*(c+2));o(Q);var U=new Array(2*d);o(U);var F=new Array(512);o(F);var x=new Array(256);o(x);var E=new Array(a);o(E);var k,I,S,D=new Array(d);function H(e,A,t,i,n){this.static_tree=e,this.extra_bits=A,this.extra_base=t,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}function L(e,A){this.dyn_tree=e,this.max_code=0,this.stat_desc=A}function O(e){return e<256?F[e]:F[256+(e>>>7)]}function M(e,A){e.pending_buf[e.pending++]=255&A,e.pending_buf[e.pending++]=A>>>8&255}function T(e,A,t){e.bi_valid>p-t?(e.bi_buf|=A<<e.bi_valid&65535,M(e,e.bi_buf),e.bi_buf=A>>p-e.bi_valid,e.bi_valid+=t-p):(e.bi_buf|=A<<e.bi_valid&65535,e.bi_valid+=t)}function N(e,A,t){T(e,t[2*A],t[2*A+1])}function K(e,A){for(var t=0;t|=1&e,e>>>=1,t<<=1,0<--A;);return t>>>1}function P(e,A,t){var i,n,r=new Array(g+1),o=0;for(i=1;i<=g;i++)r[i]=o=o+t[i-1]<<1;for(n=0;n<=A;n++){var s=e[2*n+1];0!==s&&(e[2*n]=K(r[s]++,s))}}function R(e){var A;for(A=0;A<c;A++)e.dyn_ltree[2*A]=0;for(A=0;A<d;A++)e.dyn_dtree[2*A]=0;for(A=0;A<u;A++)e.bl_tree[2*A]=0;e.dyn_ltree[2*m]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function V(e){8<e.bi_valid?M(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,A,t,i){var n=2*A,r=2*t;return e[n]<e[r]||e[n]===e[r]&&i[A]<=i[t]}function j(e,A,t){for(var i=e.heap[t],n=t<<1;n<=e.heap_len&&(n<e.heap_len&&G(A,e.heap[n+1],e.heap[n],e.depth)&&n++,!G(A,i,e.heap[n],e.depth));)e.heap[t]=e.heap[n],t=n,n<<=1;e.heap[t]=i}function z(e,A,t){var i,n,r,o,s=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],n=e.pending_buf[e.l_buf+s],s++,0===i?N(e,n,A):(N(e,(r=x[n])+l+1,A),0!==(o=y[r])&&T(e,n-=E[r],o),N(e,r=O(--i),t),0!==(o=C[r])&&T(e,i-=D[r],o)),s<e.last_lit;);N(e,m,A)}function Z(e,A){var t,i,n,r=A.dyn_tree,o=A.stat_desc.static_tree,s=A.stat_desc.has_stree,a=A.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=h,t=0;t<a;t++)0!==r[2*t]?(e.heap[++e.heap_len]=l=t,e.depth[t]=0):r[2*t+1]=0;for(;e.heap_len<2;)r[2*(n=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[n]=0,e.opt_len--,s&&(e.static_len-=o[2*n+1]);for(A.max_code=l,t=e.heap_len>>1;1<=t;t--)j(e,r,t);for(n=a;t=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,r,1),i=e.heap[1],e.heap[--e.heap_max]=t,e.heap[--e.heap_max]=i,r[2*n]=r[2*t]+r[2*i],e.depth[n]=(e.depth[t]>=e.depth[i]?e.depth[t]:e.depth[i])+1,r[2*t+1]=r[2*i+1]=n,e.heap[1]=n++,j(e,r,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,A){var t,i,n,r,o,s,a=A.dyn_tree,l=A.max_code,c=A.stat_desc.static_tree,d=A.stat_desc.has_stree,u=A.stat_desc.extra_bits,p=A.stat_desc.extra_base,f=A.stat_desc.max_length,m=0;for(r=0;r<=g;r++)e.bl_count[r]=0;for(a[2*e.heap[e.heap_max]+1]=0,t=e.heap_max+1;t<h;t++)f<(r=a[2*a[2*(i=e.heap[t])+1]+1]+1)&&(r=f,m++),a[2*i+1]=r,l<i||(e.bl_count[r]++,o=0,p<=i&&(o=u[i-p]),s=a[2*i],e.opt_len+=s*(r+o),d&&(e.static_len+=s*(c[2*i+1]+o)));if(0!==m){do{for(r=f-1;0===e.bl_count[r];)r--;e.bl_count[r]--,e.bl_count[r+1]+=2,e.bl_count[f]--,m-=2}while(0<m);for(r=f;0!==r;r--)for(i=e.bl_count[r];0!==i;)l<(n=e.heap[--t])||(a[2*n+1]!==r&&(e.opt_len+=(r-a[2*n+1])*a[2*n],a[2*n+1]=r),i--)}}(e,A),P(r,l,e.bl_count)}function W(e,A,t){var i,n,r=-1,o=A[1],s=0,a=7,l=4;for(0===o&&(a=138,l=3),A[2*(t+1)+1]=65535,i=0;i<=t;i++)n=o,o=A[2*(i+1)+1],++s<a&&n===o||(s<l?e.bl_tree[2*n]+=s:0!==n?(n!==r&&e.bl_tree[2*n]++,e.bl_tree[2*B]++):s<=10?e.bl_tree[2*w]++:e.bl_tree[2*v]++,r=n,l=(s=0)===o?(a=138,3):n===o?(a=6,3):(a=7,4))}function Y(e,A,t){var i,n,r=-1,o=A[1],s=0,a=7,l=4;for(0===o&&(a=138,l=3),i=0;i<=t;i++)if(n=o,o=A[2*(i+1)+1],!(++s<a&&n===o)){if(s<l)for(;N(e,n,e.bl_tree),0!=--s;);else 0!==n?(n!==r&&(N(e,n,e.bl_tree),s--),N(e,B,e.bl_tree),T(e,s-3,2)):s<=10?(N(e,w,e.bl_tree),T(e,s-3,3)):(N(e,v,e.bl_tree),T(e,s-11,7));r=n,l=(s=0)===o?(a=138,3):n===o?(a=6,3):(a=7,4)}}o(D);var X=!1;function J(e,A,t,n){T(e,(s<<1)+(n?1:0),3),function(e,A,t,n){V(e),n&&(M(e,t),M(e,~t)),i.arraySet(e.pending_buf,e.window,A,t,e.pending),e.pending+=t}(e,A,t,!0)}t._tr_init=function(e){X||(function(){var e,A,t,i,n,r=new Array(g+1);for(i=t=0;i<a-1;i++)for(E[i]=t,e=0;e<1<<y[i];e++)x[t++]=i;for(x[t-1]=i,i=n=0;i<16;i++)for(D[i]=n,e=0;e<1<<C[i];e++)F[n++]=i;for(n>>=7;i<d;i++)for(D[i]=n<<7,e=0;e<1<<C[i]-7;e++)F[256+n++]=i;for(A=0;A<=g;A++)r[A]=0;for(e=0;e<=143;)Q[2*e+1]=8,e++,r[8]++;for(;e<=255;)Q[2*e+1]=9,e++,r[9]++;for(;e<=279;)Q[2*e+1]=7,e++,r[7]++;for(;e<=287;)Q[2*e+1]=8,e++,r[8]++;for(P(Q,c+1,r),e=0;e<d;e++)U[2*e+1]=5,U[2*e]=K(e,5);k=new H(Q,y,l+1,c,g),I=new H(U,C,0,d,g),S=new H(new Array(0),b,0,u,f)}(),X=!0),e.l_desc=new L(e.dyn_ltree,k),e.d_desc=new L(e.dyn_dtree,I),e.bl_desc=new L(e.bl_tree,S),e.bi_buf=0,e.bi_valid=0,R(e)},t._tr_stored_block=J,t._tr_flush_block=function(e,A,t,i){var o,s,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var A,t=4093624447;for(A=0;A<=31;A++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*A])return n;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return r;for(A=32;A<l;A++)if(0!==e.dyn_ltree[2*A])return r;return n}(e)),Z(e,e.l_desc),Z(e,e.d_desc),a=function(e){var A;for(W(e,e.dyn_ltree,e.l_desc.max_code),W(e,e.dyn_dtree,e.d_desc.max_code),Z(e,e.bl_desc),A=u-1;3<=A&&0===e.bl_tree[2*_[A]+1];A--);return e.opt_len+=3*(A+1)+5+5+4,A}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=t+5,t+4<=o&&-1!==A?J(e,A,t,i):4===e.strategy||s===o?(T(e,2+(i?1:0),3),z(e,Q,U)):(T(e,4+(i?1:0),3),function(e,A,t,i){var n;for(T(e,A-257,5),T(e,t-1,5),T(e,i-4,4),n=0;n<i;n++)T(e,e.bl_tree[2*_[n]+1],3);Y(e,e.dyn_ltree,A-1),Y(e,e.dyn_dtree,t-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),z(e,e.dyn_ltree,e.dyn_dtree)),R(e),i&&V(e)},t._tr_tally=function(e,A,t){return e.pending_buf[e.d_buf+2*e.last_lit]=A>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&A,e.pending_buf[e.l_buf+e.last_lit]=255&t,e.last_lit++,0===A?e.dyn_ltree[2*t]++:(e.matches++,A--,e.dyn_ltree[2*(x[t]+l+1)]++,e.dyn_dtree[2*O(A)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){T(e,2,3),N(e,m,Q),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,A,t){"use strict";A.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(e,A,i){(function(e){!function(e,A){"use strict";if(!e.setImmediate){var t,i,n,r,o=1,s={},a=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,t="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){u(e)}))}:function(){if(e.postMessage&&!e.importScripts){var A=!0,t=e.onmessage;return e.onmessage=function(){A=!1},e.postMessage("","*"),e.onmessage=t,A}}()?(r="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(A){e.postMessage(r+A,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){u(e.data)},function(e){n.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,function(e){var A=l.createElement("script");A.onreadystatechange=function(){u(e),A.onreadystatechange=null,i.removeChild(A),A=null},i.appendChild(A)}):function(e){setTimeout(u,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var A=new Array(arguments.length-1),i=0;i<A.length;i++)A[i]=arguments[i+1];var n={callback:e,args:A};return s[o]=n,t(o),o++},c.clearImmediate=d}function d(e){delete s[e]}function u(e){if(a)setTimeout(u,0,e);else{var t=s[e];if(t){a=!0;try{!function(e){var t=e.callback,i=e.args;switch(i.length){case 0:t();break;case 1:t(i[0]);break;case 2:t(i[0],i[1]);break;case 3:t(i[0],i[1],i[2]);break;default:t.apply(A,i)}}(t)}finally{d(e),a=!1}}}}function h(A){A.source===e&&"string"==typeof A.data&&0===A.data.indexOf(r)&&u(+A.data.slice(r.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof t.g?t.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))},6243:function(e){if(!A)var A={map:function(e,A){var t={};return A?e.map((function(e,i){return t.index=i,A.call(t,e)})):e.slice()},naturalOrder:function(e,A){return e<A?-1:e>A?1:0},sum:function(e,A){var t={};return e.reduce(A?function(e,i,n){return t.index=n,e+A.call(t,i)}:function(e,A){return e+A},0)},max:function(e,t){return Math.max.apply(null,t?A.map(e,t):e)}};var t=function(){var e=5,t=8-e,i=1e3,n=.75;function r(A,t,i){return(A<<2*e)+(t<<e)+i}function o(e){var A=[],t=!1;function i(){A.sort(e),t=!0}return{push:function(e){A.push(e),t=!1},peek:function(e){return t||i(),void 0===e&&(e=A.length-1),A[e]},pop:function(){return t||i(),A.pop()},size:function(){return A.length},map:function(e){return A.map(e)},debug:function(){return t||i(),A}}}function s(e,A,t,i,n,r,o){var s=this;s.r1=e,s.r2=A,s.g1=t,s.g2=i,s.b1=n,s.b2=r,s.histo=o}function a(){this.vboxes=new o((function(e,t){return A.naturalOrder(e.vbox.count()*e.vbox.volume(),t.vbox.count()*t.vbox.volume())}))}function l(A){var i,n,o,s,a=1<<3*e,l=new Array(a);return A.forEach((function(e){n=e[0]>>t,o=e[1]>>t,s=e[2]>>t,i=r(n,o,s),l[i]=(l[i]||0)+1})),l}function c(e,A){var i,n,r,o=1e6,a=0,l=1e6,c=0,d=1e6,u=0;return e.forEach((function(e){i=e[0]>>t,n=e[1]>>t,r=e[2]>>t,i<o?o=i:i>a&&(a=i),n<l?l=n:n>c&&(c=n),r<d?d=r:r>u&&(u=r)})),new s(o,a,l,c,d,u,A)}function d(e,t){if(t.count()){var i=t.r2-t.r1+1,n=t.g2-t.g1+1,o=t.b2-t.b1+1,s=A.max([i,n,o]);if(1==t.count())return[t.copy()];var a,l,c,d,u,h=0,g=[],p=[];if(s==i)for(a=t.r1;a<=t.r2;a++){for(d=0,l=t.g1;l<=t.g2;l++)for(c=t.b1;c<=t.b2;c++)u=r(a,l,c),d+=e[u]||0;h+=d,g[a]=h}else if(s==n)for(a=t.g1;a<=t.g2;a++){for(d=0,l=t.r1;l<=t.r2;l++)for(c=t.b1;c<=t.b2;c++)u=r(l,a,c),d+=e[u]||0;h+=d,g[a]=h}else for(a=t.b1;a<=t.b2;a++){for(d=0,l=t.r1;l<=t.r2;l++)for(c=t.g1;c<=t.g2;c++)u=r(l,c,a),d+=e[u]||0;h+=d,g[a]=h}return g.forEach((function(e,A){p[A]=h-e})),f(s==i?"r":s==n?"g":"b")}function f(e){var A,i,n,r,o,s=e+"1",l=e+"2",c=0;for(a=t[s];a<=t[l];a++)if(g[a]>h/2){n=t.copy(),r=t.copy(),A=a-t[s],i=t[l]-a,o=A<=i?Math.min(t[l]-1,~~(a+i/2)):Math.max(t[s],~~(a-1-A/2));while(!g[o])o++;c=p[o];while(!c&&g[o-1])c=p[--o];return n[l]=o,r[s]=n[l]+1,[n,r]}}}function u(e,t){if(!e.length||t<2||t>256)return!1;var r=l(e);r.forEach((function(){0}));var s=c(e,r),u=new o((function(e,t){return A.naturalOrder(e.count(),t.count())}));function h(e,A){var t,n=1,o=0;while(o<i)if(t=e.pop(),t.count()){var s=d(r,t),a=s[0],l=s[1];if(!a)return;if(e.push(a),l&&(e.push(l),n++),n>=A)return;if(o++>i)return}else e.push(t),o++}u.push(s),h(u,n*t);var g=new o((function(e,t){return A.naturalOrder(e.count()*e.volume(),t.count()*t.volume())}));while(u.size())g.push(u.pop());h(g,t-g.size());var p=new a;while(g.size())p.push(g.pop());return p}return s.prototype={volume:function(e){var A=this;return A._volume&&!e||(A._volume=(A.r2-A.r1+1)*(A.g2-A.g1+1)*(A.b2-A.b1+1)),A._volume},count:function(e){var A=this,t=A.histo;if(!A._count_set||e){var i,n,o,s,a=0;for(i=A.r1;i<=A.r2;i++)for(n=A.g1;n<=A.g2;n++)for(o=A.b1;o<=A.b2;o++)s=r(i,n,o),a+=t[s]||0;A._count=a,A._count_set=!0}return A._count},copy:function(){var e=this;return new s(e.r1,e.r2,e.g1,e.g2,e.b1,e.b2,e.histo)},avg:function(A){var t=this,i=t.histo;if(!t._avg||A){var n,o,s,a,l,c=0,d=1<<8-e,u=0,h=0,g=0;for(o=t.r1;o<=t.r2;o++)for(s=t.g1;s<=t.g2;s++)for(a=t.b1;a<=t.b2;a++)l=r(o,s,a),n=i[l]||0,c+=n,u+=n*(o+.5)*d,h+=n*(s+.5)*d,g+=n*(a+.5)*d;t._avg=c?[~~(u/c),~~(h/c),~~(g/c)]:[~~(d*(t.r1+t.r2+1)/2),~~(d*(t.g1+t.g2+1)/2),~~(d*(t.b1+t.b2+1)/2)]}return t._avg},contains:function(e){var A=this,i=e[0]>>t;return gval=e[1]>>t,bval=e[2]>>t,i>=A.r1&&i<=A.r2&&gval>=A.g1&&gval<=A.g2&&bval>=A.b1&&bval<=A.b2}},a.prototype={push:function(e){this.vboxes.push({vbox:e,color:e.avg()})},palette:function(){return this.vboxes.map((function(e){return e.color}))},size:function(){return this.vboxes.size()},map:function(e){for(var A=this.vboxes,t=0;t<A.size();t++)if(A.peek(t).vbox.contains(e))return A.peek(t).color;return this.nearest(e)},nearest:function(e){for(var A,t,i,n=this.vboxes,r=0;r<n.size();r++)t=Math.sqrt(Math.pow(e[0]-n.peek(r).color[0],2)+Math.pow(e[1]-n.peek(r).color[1],2)+Math.pow(e[2]-n.peek(r).color[2],2)),(t<A||void 0===A)&&(A=t,i=n.peek(r).color);return i},forcebw:function(){var e=this.vboxes;e.sort((function(e,t){return A.naturalOrder(A.sum(e.color),A.sum(t.color))}));var t=e[0].color;t[0]<5&&t[1]<5&&t[2]<5&&(e[0].color=[0,0,0]);var i=e.length-1,n=e[i].color;n[0]>251&&n[1]>251&&n[2]>251&&(e[i].color=[255,255,255])}},{quantize:u}}();e.exports=t.quantize},6472:function(e,A,t){"use strict";t.r(A),t.d(A,{default:function(){return ju}});var n=t(6252),r=t(3577),o=t(9963);const s=e=>((0,n.dD)("data-v-3380e119"),e=e(),(0,n.Cn)(),e),a={class:"home_page Guide_1_16_1"},l={class:"page_content"},c={class:"page_content_body"},d={class:"home_page_body"},u={class:"home_page_left"},h={class:"home_page_left_content"},g={class:"home_left_null"},p={class:"is_finish_loading"},f={class:"home_left_info"},m={class:"left_info_top"},B={class:"left_info_content scroll_style"},w={class:"left_info_content_body",ref:"collection_canvas"},v={class:"home_page_right"},y={class:"right_top"},C={class:"right_top_left"},b={class:"right_content_block"},_={class:"right_content_header"},Q={class:"content_header_left"},U=s((()=>(0,n._)("i",{class:"fi fi-rs-comments"},null,-1))),F={class:"content_header_des"},x={class:"right_content_body"},E={class:"right_content_img_item"},k=["onClick"],I=["src"],S=["onClick"],D={class:"right_content_header"},H={class:"content_header_left"},L=s((()=>(0,n._)("i",{class:"fi fi-rs-comments"},null,-1))),O={class:"content_header_des"},M={class:"right_content_export"},T={class:"right_content_body"},N={class:"right_content_img_item",id:"right_content_img_block"},K=["onClick","onDragstart","onDrop"],P={class:"content_img_flex"},R=["src"],V=["onClick"],G={class:"mark_loading"},j={class:"progress_mark"},z={class:"mark_content Guide_1_16"};function Z(e,A,t,i,s,Z){const W=(0,n.up)("HeaderComponent"),Y=(0,n.up)("a-spin"),X=(0,n.up)("NewCollectionReview"),J=(0,n.up)("a-checkbox"),$=(0,n.up)("CollectionModal"),q=(0,n.up)("DesignDetail"),ee=(0,n.up)("ExportNewCoolection"),Ae=(0,n.up)("a-progress"),te=(0,n.up)("RobotAssist"),ie=(0,n.Q2)("mousewheel");return(0,n.wg)(),(0,n.iD)("div",a,[(0,n.Wm)(W),(0,n._)("div",l,[(0,n._)("div",c,[(0,n._)("div",d,[(0,n._)("div",u,[(0,n._)("div",h,[(0,n.wy)((0,n._)("div",g,[(0,n._)("div",null,[(0,n._)("div",{id:"Guide_1_1",class:"new_collection_button Guide_1_1",onClick:A[0]||(A[0]=A=>e.startNewCollection())},(0,r.zw)(e.$t("HomeView.GetStarted")),1)]),(0,n.wy)((0,n._)("div",p,[(0,n.Wm)(Y,{size:"large"})],512),[[o.F8,e.isFinishLoading]])],512),[[o.F8,!e.isHaveReviewCollection]]),(0,n.wy)((0,n._)("div",f,[(0,n._)("div",m,[(0,n._)("div",{class:"button_second",onClick:A[1]||(A[1]=A=>e.startNewCollection())},(0,r.zw)(e.$t("HomeView.Start")),1),(0,n._)("div",{class:"button_first button_margin",onClick:A[2]||(A[2]=A=>e.recollection())},(0,r.zw)(e.$t("HomeView.Edit")),1)]),(0,n._)("div",B,[(0,n._)("div",w,[(0,n.Wm)(X,{id:"collectionReview"})],512)])],512),[[o.F8,e.isHaveReviewCollection]])])]),(0,n._)("div",v,[(0,n._)("div",y,[(0,n._)("div",C,[(0,n._)("div",{class:"button_second Guide_1_15",onClick:A[3]||(A[3]=A=>e.designNewCollection())},(0,r.zw)(e.$t("HomeView.Design")),1),(0,n.wy)((0,n._)("div",{class:"button_first button_margin_14 Guide_1_30",onClick:A[4]||(A[4]=A=>e.resDesignCollection())},(0,r.zw)(e.$t("HomeView.Redesign")),513),[[o.F8,e.designCollectionId]])])]),(0,n._)("div",b,[(0,n._)("div",_,[(0,n._)("div",Q,[U,(0,n._)("span",F,(0,r.zw)(e.$t("HomeView.GeneratedDesign")),1)])]),(0,n._)("div",x,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["right_content_img_block scroll_style Guide_1_17",[0!=e.designCollectionList.length?"active":"",e.driver__.driver?"showEvents":""]])},[(0,n._)("div",E,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designCollectionList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"content_img_block",key:A?.designItemId},[(0,n._)("div",{class:(0,r.C_)(["content_img_flex",[e.driver__.driver&&37==e.driver__.index?"hideEvents":""]]),onClick:i=>e.designDetail(A,t,e.designCollectionList,"dislike")},[(0,n._)("img",{class:"content_img",src:A.designOutfitUrl},null,8,I)],10,k),(0,n._)("div",{class:(0,r.C_)(["icon iconfont icon-jushoucang icon_like",[0==t&&37==e.driver__.index?"Guide_active showEvents":""]]),onClick:(0,o.iM)((i=>e.likeDesignCollection(A,t)),["stop"])},null,10,S)])))),128))])],2)),[[ie]])]),(0,n._)("div",D,[(0,n._)("div",H,[L,(0,n._)("span",O,(0,r.zw)(e.$t("HomeView.SelectedDesign")),1)]),(0,n.wy)((0,n._)("div",M,[(0,n._)("div",{class:"button_second Guide_1_31",onClick:A[5]||(A[5]=A=>e.exportCanvas())},(0,r.zw)(e.$t("HomeView.Export")),1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",e.isShowOperate?"icon_rotate":""]),onClick:A[6]||(A[6]=(0,o.iM)((A=>e.changeShowOperateContent()),["stop"]))},null,2),(0,n.wy)((0,n._)("div",{class:"export_nav",onClick:A[7]||(A[7]=(0,o.iM)((()=>{}),["stop"]))},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.exportNav,(e=>((0,n.wg)(),(0,n.j4)(J,{checked:e.change,"onUpdate:checked":A=>e.change=A,disabled:e.noChange},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.name),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])))),256))],512),[[o.F8,e.isShowOperate]])],512),[[o.F8,e.likeDesignCollectionList.length]])]),(0,n._)("div",T,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["right_content_img_block scroll_style",{active:0!=e.likeDesignCollectionList.length}])},[(0,n._)("div",N,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.likeDesignCollectionList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:"content_img_block",draggable:"",key:t.id,onClick:A=>e.designDetail(t,i,e.likeDesignCollectionList,"like"),onDragstart:A=>e.dragstart(A,i),onDragover:A[8]||(A[8]=(0,o.iM)((()=>{}),["prevent"])),onDrop:A=>e.dragDrop(A,i)},[(0,n._)("div",P,[((0,n.wg)(),(0,n.iD)("img",{class:"content_img",src:t.designOutfitUrl,key:t.designOutfitUrl},null,8,R))]),(0,n._)("div",{class:"icon iconfont icon-jushoucanggift icon_like",onClick:(0,o.iM)((A=>e.dislikeDesignCollection(t,i)),["stop"])},null,8,V)],40,K)))),128))])],2)),[[ie]])])])])])])]),(0,n.Wm)($,{ref:"collectionModal",onFinishCollection:A[9]||(A[9]=A=>e.finishCollection())},null,512),(0,n.Wm)(q,{ref:"designDetail",onFinishRedesign:e.finishRedesign},null,8,["onFinishRedesign"]),(0,n.Wm)(ee,{id:"exportNewCoolection"}),(0,n.wy)((0,n._)("div",G,[(0,n.Wm)(Y,{size:"large"})],512),[[o.F8,e.isShowMark]]),(0,n.wy)((0,n._)("div",j,[(0,n._)("div",z,[(0,n.Wm)(Ae,{type:"circle",percent:e.designProgress,strokeColor:"#341e57",width:200},null,8,["percent"]),(0,n._)("div",null,[(0,n.Wm)(Y,{indicator:e.indicator},null,8,["indicator"])])])],512),[[o.F8,e.showDesignMark]]),(0,n.Wm)(te)])}var W=t(2262),Y=t(1087);const X={key:0},J={class:"collection_title"},$={class:"collection_title_text"},q={class:"collection_progress"},ee={class:"collection_modal_body"},Ae={class:"mark_loading"};function te(e,A,t,i,s,a){const l=(0,n.up)("a-progress"),c=(0,n.up)("MoodboardUpload"),d=(0,n.up)("PrintboardUpload"),u=(0,n.up)("ColorboardUpload"),h=(0,n.up)("SketchboardUpload"),g=(0,n.up)("a-spin"),p=(0,n.up)("a-modal");return e.showCollectionModal?((0,n.wg)(),(0,n.iD)("div",X,[(0,n.Wm)(p,{class:"modal_component collection_modal Guide_1_2",visible:e.showCollectionModal,"onUpdate:visible":A[4]||(A[4]=A=>e.showCollectionModal=A),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,wrapClassName:"#app",keyboard:!1},{default:(0,n.w5)((()=>[(0,n._)("div",J,[(0,n._)("div",$,[(0,n.wy)((0,n._)("div",null,(0,r.zw)(e.$t("collectionModal.Moodboard")),513),[[o.F8,1===e.collectionStep]]),(0,n.wy)((0,n._)("div",null,(0,r.zw)(e.$t("collectionModal.Printboard")),513),[[o.F8,2===e.collectionStep]]),(0,n.wy)((0,n._)("div",null,(0,r.zw)(e.$t("collectionModal.Colorboard")),513),[[o.F8,3===e.collectionStep]]),(0,n.wy)((0,n._)("div",null,(0,r.zw)(e.$t("collectionModal.Sketchboard")),513),[[o.F8,4===e.collectionStep]]),(0,n.wy)((0,n._)("div",{class:"collection_title_text_intro"},(0,r.zw)(e.$t("collectionModal.MoodCollection")),513),[[o.F8,1===e.collectionStep]]),(0,n.wy)((0,n._)("div",{class:"collection_title_text_intro"},(0,r.zw)(e.$t("collectionModal.PrinCollection")),513),[[o.F8,2===e.collectionStep]]),(0,n.wy)((0,n._)("div",{class:"collection_title_text_intro"},(0,r.zw)(e.$t("collectionModal.ColorCollection")),513),[[o.F8,3===e.collectionStep]]),(0,n.wy)((0,n._)("div",{class:"collection_title_text_intro"},(0,r.zw)(e.$t("collectionModal.SketchCollection")),513),[[o.F8,4===e.collectionStep]])]),(0,n._)("div",q,[(0,n.Wm)(l,{strokeWidth:13,strokeColor:"#341e57",type:"circle",percent:25*e.collectionStep,format:A=>`${e.collectionStep}/4`},null,8,["percent","format"])])]),(0,n._)("div",{class:(0,r.C_)(["collection_closeIcon",[e.driver__.driver?"hideEvents":""]])},[(0,n._)("i",{class:"fi fi-rr-cross-small",onClick:A[0]||(A[0]=(0,o.iM)((A=>e.cancelDsign()),["stop"]))})],2),(0,n._)("div",{class:(0,r.C_)(["collection_page",[e.driver__.driver?"hideEvents":""]])},[(0,n.wy)((0,n._)("i",{class:"fi fi-rr-arrow-small-left",onClick:A[1]||(A[1]=A=>e.lastStep())},null,512),[[o.F8,e.collectionStep>1]]),e.collectionStep<4?((0,n.wg)(),(0,n.iD)("i",{key:0,class:"fi fi-rr-arrow-small-right Guide_1_8",onClick:A[2]||(A[2]=(0,o.iM)((A=>e.nextStep()),["stop"]))})):((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-rr-check Guide_1_14",onClick:A[3]||(A[3]=(0,o.iM)((A=>e.finishCollection()),["stop"]))}))],2),(0,n._)("div",ee,[(0,n.wy)((0,n.Wm)(c,{ref:"MoodboardUpload"},null,512),[[o.F8,1===e.collectionStep]]),(0,n.wy)((0,n.Wm)(d,{ref:"PrintboardUpload"},null,512),[[o.F8,2===e.collectionStep]]),(0,n.wy)((0,n.Wm)(u,{ref:"ColorboardUpload"},null,512),[[o.F8,3===e.collectionStep]]),(0,n.wy)((0,n.Wm)(h,{ref:"SketchboardUpload"},null,512),[[o.F8,4===e.collectionStep]])]),(0,n.wy)((0,n._)("div",Ae,[(0,n.Wm)(g,{size:"large"})],512),[[o.F8,e.isShowMark]])])),_:1},8,["visible"])])):(0,n.kq)("",!0)}const ie={class:"generate"},ne={key:0,class:"printModel"},re=["placeholder","maxlength"],oe={key:2,class:"generage_img Guide_1_6"},se={class:"upload_item"},ae=["onClick"],le={class:"upload_file_item_content"},ce={class:"upload_file_item_content"},de=["src"],ue={key:0,class:"operate_file_block"},he={class:"select_img_type"},ge=["onClick"],pe={class:"category_list"},fe=["onClick"],me=["onClick"],Be=(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1),we=[Be],ve=(0,n._)("div",{class:"upload_tip_block"},[(0,n._)("i",{class:"fi fi-br-upload"})],-1),ye={key:3,class:"generage_img Guide_1_6"},Ce=["onClick"],be={alt:""},_e=["onClick"],Qe=["onClick"],Ue={class:"mark_loading"};function Fe(e,A,t,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("scaleImage"),u=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",ie,["Sketchboard"==e.type_.type2||"Printboard"==e.type_.type2?((0,n.wg)(),(0,n.iD)("div",{key:0,class:(0,r.C_)(["generate_checkbox Guide_1_2_2",[e.driver__.driver?"hideEvents":""]])},[(0,n._)("div",null,[(0,n._)("label",null,[(0,n.wy)((0,n._)("input",{type:"checkbox","onUpdate:modelValue":A[0]||(A[0]=A=>e.checkbox[0].type=A),onClick:A[1]||(A[1]=A=>e.setKeyword(0))},null,512),[[o.e8,e.checkbox[0].type]]),(0,n._)("span",null,(0,r.zw)(e.$t("Generate.ImageOnly")),1)])]),(0,n._)("div",null,[(0,n._)("label",{class:(0,r.C_)([e.driver__.driver&&29==e.driver__.index?"showEvents":"","Sketchboard"==e.type_.type2?"Guide_1_9_1":""])},[(0,n.wy)((0,n._)("input",{type:"checkbox","onUpdate:modelValue":A[2]||(A[2]=A=>e.checkbox[1].type=A),onClick:A[3]||(A[3]=A=>e.setKeyword(1))},null,512),[[o.e8,e.checkbox[1].type]]),(0,n._)("span",null,(0,r.zw)(e.$t("Generate.TextOnly")),1)],2)]),(0,n._)("div",null,[(0,n._)("label",{class:(0,r.C_)(["Guide_1_2_3",[e.driver__.driver?"showEvents":""]])},[(0,n.wy)((0,n._)("input",{type:"checkbox","onUpdate:modelValue":A[4]||(A[4]=A=>e.checkbox[2].type=A),onClick:A[5]||(A[5]=A=>e.setKeyword(2))},null,512),[[o.e8,e.checkbox[2].type]]),(0,n._)("span",null,(0,r.zw)(e.$t("Generate.TextImage")),1)],2)]),"Printboard"==e.type_.type2?((0,n.wg)(),(0,n.iD)("div",ne,[(0,n._)("div",{onClick:A[6]||(A[6]=(0,o.iM)(((...A)=>e.PrintModel&&e.PrintModel(...A)),["stop"])),class:(0,r.C_)(["Guide_1_2_4",[e.driver__.driver?"showEvents":""]])},(0,r.zw)(e.printModel.name),3),(0,n.wy)((0,n._)("ul",{class:(0,r.C_)(["Guide_1_2_5",[e.driver__.driver?"showEvents":""]])},[(0,n._)("li",{class:"printModel_item",onClick:A[7]||(A[7]=A=>e.setprintModel(1))},(0,r.zw)(e.$t("Generate.Model1")),1),(0,n._)("li",{class:"printModel_item",onClick:A[8]||(A[8]=A=>e.setprintModel(2))},(0,r.zw)(e.$t("Generate.Model2")),1),(0,n.wy)((0,n._)("li",{class:"printModel_item",onClick:A[9]||(A[9]=A=>e.setprintModel(3))},(0,r.zw)(e.$t("Generate.Generate")),513),[[o.F8,e.printBoards.length>=1]])],2),[[o.F8,e.printModel.optype]])])):(0,n.kq)("",!0)],2)):((0,n.wg)(),(0,n.iD)("div",{key:1,class:(0,r.C_)(["input_box Guide_1_5",[e.inputShow?"active":""]])},[(0,n.wy)((0,n._)("input",{class:"search_input",onInput:A[10]||(A[10]=(...A)=>e.ifMaximumLength&&e.ifMaximumLength(...A)),placeholder:e.$t("Generate.inputContent1"),maxlength:e.inputShow?0:9999,"onUpdate:modelValue":A[11]||(A[11]=A=>e.searchPictureName=A),onKeydown:A[12]||(A[12]=(0,o.D2)((A=>e.getgenerate()),["enter"]))},null,40,re),[[o.nr,e.searchPictureName]]),(0,n._)("div",{class:"generage_btn started_btn",onClick:A[13]||(A[13]=(0,o.iM)(((...A)=>e.getgenerate&&e.getgenerate(...A)),["stop"]))},(0,r.zw)(e.$t("Generate.Generate")),1),(0,n._)("span",null,(0,r.zw)(e.$t("Generate.maximumLength")),1)],2)),"Sketchboard"==e.type_.type2||"Printboard"==e.type_.type2?((0,n.wg)(),(0,n.iD)("div",oe,[(0,n._)("div",se,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchboardList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["upload_file_item Guide_1_2_7",[A?.checked?"active":"",e.checkboxImage?"forbidden":"",e.driver__.driver?"showEvents":""]]),key:A,onClick:(0,o.iM)((t=>e.setSketchboardItem(A)),["stop"])},[(0,n.wy)((0,n._)("div",le,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===A?.status]]),(0,n.wy)((0,n._)("div",ce,[(0,n._)("img",{src:A?.imgUrl,class:"upload_img"},null,8,de),"Sketchboard"==e.type_.type2?((0,n.wg)(),(0,n.iD)("div",ue,[(0,n._)("div",he,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((t=>e.showFileCategory(A)),["stop"])},[(0,n.Uk)((0,r.zw)(A.categoryValue)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",A.categoryShow?"icon_rotate":""])},null,2)],8,ge),(0,n.wy)((0,n._)("div",pe,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchCatecoryList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",A.category==t.name?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(A,t)),["stop"])},(0,r.zw)(t.value),11,fe)))),128))],512),[[o.F8,A.categoryShow]])])])):(0,n.kq)("",!0),(0,n._)("div",{class:"delete_file_block",onClick:A=>e.deleteFile(t)},we,8,me)],512),[[o.F8,"done"===A?.status]])],10,ae)))),128)),(0,n._)("div",{class:(0,r.C_)(["upload_file_item upload_component Guide_1_2_6",[e.driver__.driver?"showEvents":""]])},[(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},disabled:e.checkbox[1].type,headers:{Authorization:e.token},"file-list":e.sketchboardList,"onUpdate:file-list":A[14]||(A[14]=A=>e.sketchboardList=A),"before-upload":e.beforeUpload,multiple:"",accept:".jpg,.png,.jpeg,.bmp",onChange:A[15]||(A[15]=A=>e.fileUploadChange(A))},{default:(0,n.w5)((()=>[ve])),_:1},8,["action","data","disabled","headers","file-list","before-upload"])],2)])])):((0,n.wg)(),(0,n.iD)("div",ye,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["generage_img_item",[t?.checked?"active":""]]),key:t.imgUrl,onClick:A=>e.generageAdd(t)},[(0,n.wy)((0,n._)("img",be,null,512),[[u,t.imgUrl]]),(0,n._)("div",{class:(0,r.C_)(["delete_like_file_block",[e.driver__.driver?"hideEvents":""]])},[t.like?((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"noLike")),["stop"])},null,8,Qe)):((0,n.wg)(),(0,n.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"like")),["stop"])},null,8,_e))],2),(0,n._)("div",{class:(0,r.C_)(["delete_like_file_block left",[e.driver__.driver?"hideEvents":""]])},[(0,n._)("i",{class:"fi fi-bs-expand-arrows-alt",onClick:A[16]||(A[16]=(0,o.iM)((A=>e.scaleImage()),["stop"]))})],2)],10,Ce)))),128))])),(0,n.Wm)(d,{ref:"scaleImage"},null,512),(0,n.wy)((0,n._)("div",Ue,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]])])}var xe=t(320),Ee=t(1446),ke=t(4873),Ie=t(6214),Se=t(3907),De={id:1,testUrl:"http://192.168.1.5:10086",zIndex:2,setColor:(e,A,t)=>new Promise((i=>{var n=void 0==t?.min?5:t.min,r=void 0==t?.max?5:t.max,o=new Image;o.src=A;o.onload=()=>{const A=o.width,t=o.height,s=document.createElement("canvas");s.width=A,s.height=t;var a=s.getContext("2d");a.drawImage(o,0,0);var l=a.getImageData(0,0,A,t),c=[];for(let i=0;i<e.length;i++){var d=0;for(let A=0;A<l.data.length;A+=4){var u=l.data[A],h=l.data[A+1],g=l.data[A+2];l.data[A+3];u-n<e[i][0]&&u+r>e[i][0]&&h-n<e[i][1]&&h+r>e[i][1]&&g-n<e[i][2]&&g+r>e[i][2]&&d++}let o={rgb:e[i],ratio:parseInt(String((d/(A*t)*100).toFixed(6)))};c.push(o)}i({width:A,height:t,ratio:c})}}))},He=t(2339),Le=t(7332),Oe=t(9842),Me=t(4272),Te=t(8552),Ne=(0,n.aZ)({components:{scaleImage:Oe.Z},props:["msg","sketchCatecoryList"],setup(){let e=(0,W.iH)([{name:"image",type:!0},{name:"text",type:!1},{name:"text-image",type:!1}]),A=(0,W.iH)(),t=(0,W.iH)([]),i=(0,W.iH)([]),r=(0,W.iH)([]),o=(0,W.iH)(!1),s=(0,W.iH)(""),a=(0,W.iH)(1),l=(0,W.iH)(""),c=(0,W.iH)(20),d=(0,W.iH)(0),u=(0,W.iH)(""),h=(0,W.iH)(null),g=(0,Se.oR)(),p=(0,W.iH)([]),f=(0,W.iH)([]),m=(0,W.iH)(),B=(0,W.iH)(""),w=(0,W.iH)({num:"",optype:!1,name:(0,Te.QT)().t("Generate.Model")+"1"}),v=(0,n.Fl)((()=>g.state.UploadFilesModule.printboard)),y=(0,W.iH)({}),C=(0,W.iH)(!1),b=(0,W.iH)(!1),_=(0,W.iH)(),Q=(0,n.f3)("driver__"),{t:U}=(0,Te.QT)(),F=(0,W.iH)();return{imgList:t,selectImgList:i,selectImgListIds:r,isShowLoading:o,selectCode:s,currentPage:a,searchPictureName:l,pageSize:c,total:d,searcMaterialhName:u,designType:h,checkbox:e,store:g,fileList:p,sketchboardList:f,collectionElementid:m,level2Type:B,checkboxImage:A,printModel:w,loadingShow:C,printBoards:v,workspace:y,inputShow:b,inputTime:_,driver__:Q,t:U,isTest:F}},data(e){return{indicator:(0,n.h)(xe.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,gender:"",level1Type:e.msg,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",moodboarList:(0,n.Fl)((()=>(0,Se.oR)().state.UploadFilesModule.moodboard)),type_:{type1:"generate",type2:e.msg}}},mounted(){this.token=(0,He.ej)("token")||"";let e=(0,He.ej)("isTest");this.isTest=JSON.parse(e)||"",this.uploadUrl=(0,Le.M$)(),this.workspace=this.store.state.Workspace.workspace,this.$emit("generateCheckbox",this.checkbox[0].type)},watch:{driver__:{handler(e,A){"Printboard"==this.type_.type2?e.index>=14&&e.index<15&&this.setKeyword(e.index-14):this.type_.type2}}},computed:{getSketchLabel(e){return e=>{let A="";for(let t of this.sketchCatecoryList)if(t.value===e){A=t.label;break}return A}}},methods:{generageAdd(e){e.type_=this.type_,e.resData=JSON.parse(JSON.stringify(e));let A=8;"Sketchboard"==this.type_.type2&&(A=20),e.jsContent1=this.t("uploadFile.jsContent1",{maxImg:A}),this.store.commit("addGenerateMaterialFils",e);let t=this.store.state.UploadFilesModule.moodboard;t.length>=2&&this.driver__.driver&&Me.RX.moveNext()},beforeUpload(e){const A="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;A||Ee.ZP.info(this.t("Generate.jsContent1"));const t=e.size/1024/1024<2;return t||Ee.ZP.info(this.t("Generate.jsContent2")),A&&t||ke.Z.LIST_IGNORE},setKeyword(e){this.checkbox.forEach((e=>{e.type=!1})),(0,n.Y3)().then((()=>{this.checkbox[e].type=!0,this.$emit("generateCheckbox",this.checkbox[0].type),this.checkboxImage=this.checkbox[1].type,this.checkboxImage&&this.sketchboardList.forEach((e=>{e.checked=!1}))})),2!=e&&1!=e||this.driver__.driver&&Me.RX.moveNext()},PrintModel(){this.printModel.optype||document.addEventListener("click",this.removePrintModel),this.printModel.optype=!this.printModel.optype,(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))},removePrintModel(){this.printModel.optype=!1,document.removeEventListener("click",this.removePrintModel)},setprintModel(e){this.printModel=3==e?{num:"Generate",optype:!1,name:this.t("Generate.Generate")}:{num:e,optype:!1,name:this.t("Generate.Model")+e},(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))},getgenerate(){if(this.isTest)return void Ee.ZP.info(this.t("isTest.available"));if(!this.searchPictureName)return void Ee.ZP.info(this.t("Generate.jsContent5"));{let e=this.searchPictureName.split(/\s+/).length;if(e>75)return void Ee.ZP.info(this.t("Generate.jsContent4"))}let e={generateType:"text",designType:"",collectionElementId:"",level1Type:this.upload.level1Type,level2Type:"",text:this.searchPictureName,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:1,gender:""};this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.sketchAndPrintGenerate,e).then((e=>{if(e){let A;this.fileList=[],e.generatedCollectionItems.forEach(((t,i)=>{A={id:e.generatedCollectionItems[i].generateItemId,imgUrl:e.generatedCollectionItems[i].generateItemUrl,like:e.generatedCollectionItems[i].isLiked},this.fileList.push(A),this.loadingShow=!1})),(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))}})).catch((e=>{this.loadingShow=!1}))},ifMaximumLength(){clearTimeout(this.inputTime);let e=document.getElementsByClassName("generate")[0].getElementsByClassName("input_box")[0];e.getElementsByClassName("search_input")[0];this.inputTime=setTimeout((()=>{this.searchPictureName?.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},fileUploadChange(e){let A=e.file,t=!0;if("done"===A.status){let e=JSON.parse(A.xhr.response);if(0==e.errCode){A.id=e.data.id,A.imgUrl=e.data.url,A.resData=e.data,A.type_="upload",A.id_=De.id++,A.category=this.sketchCatecoryList?.[0]?.name,A.categoryValue=this.sketchCatecoryList?.[0]?.value;let t=this.sketchboardList.filter((e=>"done"===e.status)),i=this.store.state.UploadFilesModule.sketchboard;i.length>=8?Ee.ZP.info(this.t("Generate.jsContent6")):this.sketchboardList=t,(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))}else t=!1}else"error"===A.status&&(t=!1);if(!t){let e=-1,t=JSON.parse(A.xhr.response);this.sketchboardList.forEach(((t,i)=>{A.uid===t.uid&&(e=i)})),e>-1&&this.sketchboardList.splice(e,1),Ee.ZP.warning(t.errMsg)}},showFileCategory(e){e.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(e,A){e.category=A.name,e.categoryShow=!1},hiddenFileCategory(){for(let e of this.sketchboardList)e.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchboardItem(e){this.checkboxImage||(e.checked?(e.checked=!1,this.collectionElementid=""):(this.sketchboardList.forEach((e=>{e.checked&&(e.checked=!1)})),e.checked=!0,this.collectionElementid=e.id),this.level2Type=e.category,this.driver__.driver&&Me.RX.moveNext())},deleteFile(e){this.sketchboardList.splice(e,1)},likeFile(e,A){if("like"==A){let A={generateDetailId:e.id,level1Type:"Moodboard",level2Type:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Ie.V.axiosPost(Ie.V.httpUrls.generateLike,A).then((A=>{e.like=!0})).catch((e=>{}))}else{let A={generateDetailId:e.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Ie.V.axiosGet(Ie.V.httpUrls.generateDislike,{params:A}).then((A=>{e.like=!1})).catch((e=>{}))}},scaleImage(){let e=this.$refs.scaleImage;e.init(this.fileList)},closeModal(){this.searchPictureName="",this.designType=null,this.selectImgList=[],this.selectImgListIds=[],this.imgList=[],this.currentPage=1,this.total=0}}}),Ke=t(3744);const Pe=(0,Ke.Z)(Ne,[["render",Fe]]);var Re=Pe;const Ve=e=>((0,n.dD)("data-v-3c971a6f"),e=e(),(0,n.Cn)(),e),Ge={class:"collection_modal_item"},je={class:"moodboard_body"},ze={class:"upload_img_body scroll_style"},Ze={class:"upload_item"},We={class:"upload_file_item_content"},Ye={class:"upload_file_item_content"},Xe=["src"],Je=["onClick"],$e={class:"upload_file_item upload_component"},qe={class:"upload_tip_block"},eA=Ve((()=>(0,n._)("i",{class:"fi fi-br-upload"},null,-1))),AA=[eA],tA={class:"upload_max_tip"},iA=Ve((()=>(0,n._)("span",{class:"icon iconfont icon-zhuyi"},null,-1))),nA={class:"modal_right"},rA={class:"modal_layout"},oA={class:"modal_text"},sA=["onClick"],aA=Ve((()=>(0,n._)("div",{class:"checked"},[(0,n._)("i",{class:"fi fi-rr-trash"})],-1))),lA={class:"modal_accomplish"},cA={class:"modal_text"},dA=Ve((()=>(0,n._)("div",null,"Layout of selected moodboard",-1))),uA={class:"modal_img_max"},hA=["src"],gA={key:1,class:"modal_img"},pA=["src"],fA={class:"mark_loading"};function mA(e,A,t,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("Material"),u=(0,n.up)("Generate"),h=(0,n.up)("layout"),g=(0,n.up)("layoutMobile"),p=(0,n.Q2)("lazy"),f=(0,n.Q2)("modelImg");return(0,n.wg)(),(0,n.iD)("div",Ge,[(0,n._)("div",{class:(0,r.C_)(["modal_left Guide_1_1_2",[e.driver__.driver?"showEvents":""]])},[(0,n._)("div",{class:(0,r.C_)(["switch_type_list",[e.driver__.driver?"hideEvents":""]])},[(0,n._)("div",{onClick:A[0]||(A[0]=(0,o.iM)((A=>e.open(1)),["stop"])),class:(0,r.C_)(["switch_type_item",[1==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("MoodboardUpload.Upload")),1)],2),(0,n._)("div",{onClick:A[1]||(A[1]=(0,o.iM)((A=>e.open(2)),["stop"])),class:(0,r.C_)(["switch_type_item",[2==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("MoodboardUpload.Library")),1)],2),(0,n._)("div",{onClick:A[2]||(A[2]=(0,o.iM)((A=>e.open(3)),["stop"])),class:(0,r.C_)(["switch_type_item Guide_1_4",[3==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("MoodboardUpload.Generate")),1)],2)],2),(0,n.wy)((0,n._)("div",je,[(0,n._)("div",ze,[(0,n._)("div",Ze,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:A},[(0,n.wy)((0,n._)("div",We,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===A?.status]]),(0,n.wy)((0,n._)("div",Ye,[(0,n._)("img",{src:A?.imgUrl,class:"upload_img"},null,8,Xe),(0,n._)("div",{class:"delete_file_block",onClick:t=>e.deleteFile(A)},(0,r.zw)(e.$t("MoodboardUpload.Delete")),9,Je)],512),[[o.F8,"done"===A?.status]])])))),128)),(0,n.wy)((0,n._)("div",$e,[(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},headers:{Authorization:e.token},"before-upload":e.beforeUpload,"file-list":e.fileList,"onUpdate:file-list":A[3]||(A[3]=A=>e.fileList=A),multiple:!e.driver__.driver,maxCount:8-e.moodboarList.length+e.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:A[4]||(A[4]=A=>e.fileUploadChange(A))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",qe,AA,512),[[o.F8,e.moodboarList.length<8]])])),_:1},8,["action","data","headers","before-upload","file-list","multiple","maxCount"])],512),[[o.F8,e.moodboarList.length<8]])])]),(0,n._)("div",tA,[iA,(0,n._)("span",null,(0,r.zw)(e.$t("MoodboardUpload.Maximum")),1)])],512),[[o.F8,1==e.openClick]]),(0,n.wy)((0,n.Wm)(d,{ref:"Material",msg:"Moodboard"},null,512),[[o.F8,2==e.openClick]]),(0,n.wy)((0,n.Wm)(u,{ref:"Generate",msg:"Moodboard"},null,512),[[o.F8,3==e.openClick]])],2),(0,n.wy)((0,n._)("div",nA,[(0,n._)("div",rA,[(0,n._)("div",oA,[(0,n._)("div",null,(0,r.zw)(e.$t("MoodboardUpload.Thumbnail")),1),(0,n._)("div",{class:(0,r.C_)(["modal_btn started_btn Guide_1_7",[e.driver__.driver?"showEvents":""]]),onClick:A[5]||(A[5]=A=>e.layout())},(0,r.zw)(e.$t("MoodboardUpload.layout")),3)]),(0,n._)("div",{class:(0,r.C_)(["modal_img",[e.driver__.driver?"hideEvents":""]])},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.moodboarList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:A,onClick:t=>e.deleteFile(A)},[(0,n.wy)((0,n._)("img",null,null,512),[[p,A.imgUrl]]),aA],8,sA)))),128))],2)]),(0,n.wy)((0,n._)("div",lA,[(0,n._)("div",cA,[dA,(0,n._)("div",{class:"modal_btn started_btn",onClick:A[6]||(A[6]=(0,o.iM)((A=>e.changeTemplateModal()),["stop"]))},"Edit")]),(0,n._)("div",uA,[e.modalImg[0]?.id?((0,n.wg)(),(0,n.iD)("div",gA,[(0,n._)("img",{src:e.modalImg[0].imgUrl},null,8,pA)])):((0,n.wg)(),(0,n.iD)("div",{key:0,class:(0,r.C_)(["modal_img",{active:e.flex_direction}]),id:"modal_img"},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)([[e.moodb_className[t]],"modal_imgItem"])},[(0,n.wy)((0,n._)("img",{src:A.imgUrl},null,8,hA),[[f]])],2)))),256))],2)),(0,n.wy)((0,n._)("div",fA,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]])])],512),[[o.F8,e.moodboarList.length>1||e.edieShow]])],512),[[o.F8,e.moodboarList.length]]),(0,n.Wm)(h,{ref:"layout",moodb_className:e.moodb_className,flex_direction:e.flex_direction,onSetmoodbClass:e.setmoodbClass},null,8,["moodb_className","flex_direction","onSetmoodbClass"]),(0,n.Wm)(g,{ref:"layoutMobile",moodb_className:e.moodb_className,flex_direction:e.flex_direction,onSetmoodbClass:e.setmoodbClass},null,8,["moodb_className","flex_direction","onSetmoodbClass"])])}var BA=t(5929);const wA={class:"my_material_modal"},vA={class:"my_material_header"},yA={class:"my_material_header_right"},CA={class:"content_search_block"},bA=["placeholder"],_A=(0,n._)("span",{class:"icon iconfont icon-sousuo"},null,-1),QA=[_A],UA={class:"my_material_content"},FA={class:"material_content_body scroll_style"},xA=["src","onClick"],EA={key:0,class:"operate_file_block"},kA={class:"select_img_type"},IA=["onClick"],SA={class:"category_list"},DA=["onClick"],HA={key:1,class:"pin_block"},LA={class:"material_content_list_loding"},OA=(0,n._)("img",{src:BA,alt:""},null,-1),MA=[OA],TA={class:"no_data_block loading_block"};function NA(e,A,t,i,s,a){const l=(0,n.up)("a-checkbox"),c=(0,n.up)("a-spin"),d=(0,n.Q2)("observe");return(0,n.wg)(),(0,n.iD)("div",wA,[(0,n._)("div",vA,[(0,n._)("div",yA,[(0,n._)("div",CA,[(0,n.wy)((0,n._)("input",{class:"search_input",placeholder:e.$t("Material.inputContent1"),"onUpdate:modelValue":A[0]||(A[0]=A=>e.searchPictureName=A),onKeydown:A[1]||(A[1]=(0,o.D2)((A=>e.getLibraryList("")),["enter"]))},null,40,bA),[[o.nr,e.searchPictureName]]),(0,n._)("div",{class:"search_icon_block",onClick:A[2]||(A[2]=(0,o.iM)((A=>e.getLibraryList("")),["stop"]))},QA)])])]),(0,n._)("div",UA,[(0,n._)("div",FA,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.imgList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{key:A,class:(0,r.C_)(["content_img_item",[A?.checked?"active":"","Moodboard"==e.selectCode?"moodb":""]])},[(0,n._)("img",{src:A?.imgUrl,onClick:(0,o.iM)((t=>e.selectImgItem(A)),["stop"])},null,8,xA),"Sketchboard"==e.selectCode?((0,n.wg)(),(0,n.iD)("div",EA,[(0,n._)("div",kA,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((t=>e.showFileCategory(A)),["stop"])},[(0,n.Uk)((0,r.zw)(A?.categoryValue)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",A?.categoryShow?"icon_rotate":""])},null,2)],8,IA),(0,n.wy)((0,n._)("div",SA,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.disignTypeList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",A?.category==t.name?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(A,t)),["stop"])},(0,r.zw)(t.value),11,DA)))),128))],512),[[o.F8,A?.categoryShow]])])])):(0,n.kq)("",!0),"Sketchboard"==e.selectCode||"Printboard"==e.selectCode?((0,n.wg)(),(0,n.iD)("div",HA,[(0,n.Wm)(l,{checked:A.pin,"onUpdate:checked":e=>A.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("Material.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])):(0,n.kq)("",!0)],2)))),128)),(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",LA,MA)),[[o.F8,e.total>e.imgList?.length],[d]])]),(0,n.wy)((0,n._)("div",TA,[(0,n.Wm)(c,{size:"large"})],512),[[o.F8,e.isShowLoading]])])])}var KA=(0,n.aZ)({props:["msg","disignTypeList"],setup(e){let A=(0,W.iH)(!1),t=(0,W.iH)([]),i=(0,W.iH)(!1),n=(0,W.iH)(""),r=(0,W.iH)(1),o=(0,W.iH)(""),s=(0,W.iH)(12),a=(0,W.iH)(0),l=(0,W.iH)(""),c=(0,W.iH)(null),d=(0,W.iH)({}),{t:u}=(0,Te.QT)();return{myMaterialModalShow:A,imgList:t,isShowLoading:i,selectCode:n,currentPage:r,searchPictureName:o,pageSize:s,total:a,searcMaterialhName:l,designType:c,workspace:d,t:u}},data(e){return{type_:{type1:"material",type2:e.msg},store:(0,Se.oR)()}},directives:{observe:{mounted(e,A){const t=new IntersectionObserver(n,{root:null,threshold:[.1]});t.observe(e);let i=A.instance;function n(e,A){e.forEach((e=>{e.isIntersecting&&i.getLibraryList("di")}))}}}},computed:{getSketchLabel(e){return e=>{let A="";for(let t of this.disignTypeList)if(t.value===e){A=t.label;break}return A}},sketchboardList(){return this.store.state.UploadFilesModule.sketchMaterialFiles},moodboardList(){return this.store.state.UploadFilesModule.moodboardMaterialFiles},printboardList(){return this.store.state.UploadFilesModule.printMaterialFiles}},mounted(){},watch:{sketchboardList:{handler(e,A){A.forEach((A=>{-1==e.findIndex((e=>e.id==A.id))&&this.imgList.forEach((e=>{e.id==A.id&&(e.checked=!1)}))}))}},moodboardList:{handler(e,A){A.forEach((A=>{-1==e.findIndex((e=>e.id==A.id))&&this.imgList.forEach((e=>{e.id==A.id&&(e.checked=!1)}))}))}},printboardList:{handler(e,A){A.forEach((A=>{-1==e.findIndex((e=>e.id==A.id))&&this.imgList.forEach((e=>{e.id==A.id&&(e.checked=!1)}))}))}}},methods:{init(e){this.selectCode=e,this.getLibraryList("")},selectImgItem(e){e.type_=this.type_,e.resData=JSON.parse(JSON.stringify(e)),this.imgList.forEach((e=>{e.categoryShow=!1}));let A=8;"Sketchboard"==this.selectCode&&(A=20),e.jsContent1=this.t("uploadFile.jsContent1",{maxImg:A}),this.store.commit("addGenerateMaterialFils",e)},getLibraryList(e){let A=this.store.state.Workspace.workspace;"di"==e&&(this.currentPage=void 0!=this.imgList?.[0]?.id?this.imgList?.length/this.pageSize+1:1);let t={level1Type:this.selectCode,modelSex:A?.sex,page:this.currentPage,pictureName:this.searchPictureName,size:this.pageSize};this.isShowLoading=!0,Ie.V.axiosPost(Ie.V.httpUrls.queryLibraryPage,t).then((e=>{let A=[];e.content.forEach(((e,t)=>{let i;"Sketchboard"==this.type_.type2?(i=this.store.state.UploadFilesModule.sketchMaterialFiles,e.categoryValue=e.level2TypeEnum.value,e.category=e.level2Type,e.categoryShow=!1):"Moodboard"==this.type_.type2?i=this.store.state.UploadFilesModule.moodboardMaterialFiles:"Printboard"==this.type_.type2&&(i=this.store.state.UploadFilesModule.printMaterialFiles),e.imgUrl=e.url,e.id_||(e.id_=De.id++,i.forEach((A=>{e.id==A.id&&(e.id_=A.id_?A.id_:De.id++,e.checked=!0,e.pin=A.pin)}))),A.push(e)})),A[A.length-1].id==this.imgList[this.imgList.length-1]?.id||this.imgList.push(...A),this.total=e.total,this.isShowLoading=!1})).catch((e=>{this.isShowLoading=!1}))},showFileCategory(e){e.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(e,A){e.categoryValue=A.value,e.category=A.name;for(let t of this.imgList)t.categoryShow=!1;this.setSketchLibrary(e)},hiddenFileCategory(){for(let e of this.imgList)e.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchLibrary(e){let A={libraryId:e.id,level2Type:e.category};Ie.V.axiosPost(Ie.V.httpUrls.setSketchLibrary,A).then((e=>{})).catch((e=>{}))}}});const PA=(0,Ke.Z)(KA,[["render",NA]]);var RA=PA;const VA={class:"mood_template_component"},GA={class:"mood_template_item template_three"},jA={class:"mood_template_item template_four"},zA={class:"mood_template_item template_five"},ZA={class:"mood_template_item template_six"},WA={class:"mood_template_item template_seven"},YA={class:"mood_template_item template_eight"},XA={class:"mood_template_item template_nine"},JA={class:"mood_template_item template_ten"};function $A(e,A,t,i,s,a){return(0,n.wg)(),(0,n.iD)("div",VA,[(0,n.wy)((0,n._)("div",GA,[(0,n._)("div",{class:"img_template three_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template three_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template three_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4)],512),[[o.F8,3==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",jA,[(0,n._)("div",{class:"img_template four_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template four_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template four_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template four_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4)],512),[[o.F8,4==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",zA,[(0,n._)("div",{class:"img_template five_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template five_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template five_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template five_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template five_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4)],512),[[o.F8,5==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",ZA,[(0,n._)("div",{class:"img_template six_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4)],512),[[o.F8,6==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",WA,[(0,n._)("div",{class:"img_template seven_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_7",style:(0,r.j5)({backgroundImage:`url(${e.fileList[6]?.imgUrl})`})},null,4)],512),[[o.F8,7==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",YA,[(0,n._)("div",{class:"img_template eight_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_7",style:(0,r.j5)({backgroundImage:`url(${e.fileList[6]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_8",style:(0,r.j5)({backgroundImage:`url(${e.fileList[7]?.imgUrl})`})},null,4)],512),[[o.F8,8==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",XA,[(0,n._)("div",{class:"img_template nine_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_7",style:(0,r.j5)({backgroundImage:`url(${e.fileList[6]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_8",style:(0,r.j5)({backgroundImage:`url(${e.fileList[7]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_9",style:(0,r.j5)({backgroundImage:`url(${e.fileList[8]?.imgUrl})`})},null,4)],512),[[o.F8,9==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",JA,[(0,n._)("div",{class:"img_template ten_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_7",style:(0,r.j5)({backgroundImage:`url(${e.fileList[6]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_8",style:(0,r.j5)({backgroundImage:`url(${e.fileList[7]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_9",style:(0,r.j5)({backgroundImage:`url(${e.fileList[8]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_10",style:(0,r.j5)({backgroundImage:`url(${e.fileList[9]?.imgUrl})`})},null,4)],512),[[o.F8,10==e.moodTemplateId]])])}var qA=(0,n.aZ)({props:["fileList","moodTemplateId"],setup(){}});const et=(0,Ke.Z)(qA,[["render",$A],["__scopeId","data-v-3174c5e2"]]);var At=et;const tt={class:"layout_content"},it={class:"collection_title"},nt={class:"collection_title_text"},rt={class:"layout_title"},ot=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),st=[ot],at={class:"layout_nav"},lt=["onClick"],ct=["src"],dt=["onClick"],ut=["src"],ht=(0,n._)("div",null,null,-1),gt={class:"layout_btn"},pt={class:"layout_btn_top"},ft={class:"layout_btn_bottom"},mt={class:"layout_btn_left"},Bt={class:"layout_btn_right"},wt={class:"layout_rotote"},vt={class:"layout_translate"},yt={class:"layout_angle_tr"},Ct={class:"layout_angle_tl"},bt={class:"layout_angle_br"},_t={class:"layout_angle_bl"},Qt={class:"layout_left"},Ut={class:"layout_left_text"},Ft=["onClick"],xt={class:"mark_loading"};function Et(e,A,t,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("a-modal"),u=(0,n.Q2)("modelImg"),h=(0,n.Q2)("compile"),g=(0,n.Q2)("rotote"),p=(0,n.Q2)("translate"),f=(0,n.Q2)("angle"),m=(0,n.Q2)("layout");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(d,{class:"layout_modal",visible:e.layout,"onUpdate:visible":A[2]||(A[2]=A=>e.layout=A),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,keyboard:!1,mask:!1,destroyOnClose:!0},{default:(0,n.w5)((()=>[(0,n._)("div",tt,[(0,n._)("div",it,[(0,n._)("div",nt,[(0,n._)("div",rt,(0,r.zw)(e.$t("layout.MoodBoardDesign")),1)])]),(0,n._)("div",{class:"collection_closeIcon",onClick:A[0]||(A[0]=(0,o.iM)((A=>e.cancelDsign()),["stop"]))},st),(0,n._)("div",at,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{key:A,class:(0,r.C_)({active:A.setPitch}),onClick:i=>e.setpitch(A,t)},[(0,n._)("img",{src:A.imgUrl},null,8,ct)],10,lt)))),128))]),(0,n._)("div",{class:(0,r.C_)(["layout_centent",{active:e.flex_direction}]),id:"layoutCentent"},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((A,t)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:A,class:(0,r.C_)([e.moodbClassName[t],"modal_imgItem"]),onClick:i=>e.setpitch(A,t),ref_for:!0,ref:"content"},[(0,n.wy)((0,n._)("img",{crossOrigin:"anonymous",src:A.imgUrl,draggable:"false",class:(0,r.C_)(e.moodbClassName[t])},null,10,ut),[[u]]),ht,(0,n.wy)((0,n._)("ul",gt,[(0,n.wy)((0,n._)("li",pt,null,512),[[h,"top",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",ft,null,512),[[h,"bottom",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",mt,null,512),[[h,"left",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Bt,null,512),[[h,"right",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",wt,null,512),[[g,void 0,void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",vt,null,512),[[p,void 0,void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",yt,null,512),[[f,"top",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Ct,null,512),[[f,"right",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",bt,null,512),[[f,"bottom",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",_t,null,512),[[f,"left",void 0,{stop:!0}]])],512),[[o.F8,A.setPitch]])],10,dt)),[[m,t]]))),128))],2),(0,n._)("div",Qt,[(0,n._)("div",Ut,(0,r.zw)(e.$t("layout.LayerOptions")),1),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.moodbList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"layout_left_items",onClick:t=>e.setmoodb(A)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(A,((e,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)([e,"layout_left_item"])},null,2)))),256))],8,Ft)))),256))]),(0,n._)("div",{class:"button_second submit_button",onClick:A[1]||(A[1]=A=>e.submitTemplate())},(0,r.zw)(e.$t("layout.Submit")),1)]),(0,n.wy)((0,n._)("div",xt,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]]),(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},headers:{Authorization:e.token},"before-upload":e.beforeUpload,multiple:"",accept:".jpg,.png,.jpeg,.bmp"},null,8,["action","data","headers","before-upload"])])),_:1},8,["visible"])])}var kt={moodb_:[[["wh4"]],[["wh4","wh4"],["wh8","wh8"]],[["wh4","w1h2","w1h2"],["w1h2","w1h2","wh4"],["w2h1","w2h1","wh4"],["wh4","w2h1","w2h1"]],[["wh1","wh1","w1h2","wh4"],["w1h2","wh1","wh1","wh4"],["wh4","wh1","wh1","w1h2"],["w1h2","w1h2","w1h2","w1h2"]],[["wh1","wh1","wh1","wh1","wh4"],["wh1","wh1","wh4","wh1","wh1"],["wh4","wh1","wh1","wh1","wh1"],["w1h2","w1h2","w1h2","wh1","wh1"],["wh1","wh1","w1h2","w1h2","w1h2"],["w1h2","w1h2","wh1","wh1","w1h2"],["w1h2","wh1","wh1","w1h2","w1h2"]],[["wh1","wh1","wh1","wh1","w1h2","w1h2"],["wh1","wh1","w1h2","wh1","wh1","w1h2"],["w1h2","w1h2","wh1","wh1","wh1","wh1"],["wh1","wh1","wh1","wh1","w2h1","w2h1"],["wh1","wh1","w2h1","w2h1","wh1","wh1"],["w2h1","w2h1","wh1","wh1","wh1","wh1"]],[["wh1","wh1","wh1","wh1","wh1","wh1","w1h2"],["wh1","wh1","wh1","wh1","w1h2","wh1","wh1"],["wh1","wh1","w1h2","wh1","wh1","wh1","wh1"],["w1h2","wh1","wh1","wh1","wh1","wh1","wh1"],["wh1","wh1","wh1","wh1","wh1","wh1","w2h1"]],[["wh1","wh1","wh1","wh1","wh1","wh1","wh1","wh1"]]]},It=t(9980),St=t.n(It),Dt=(t(2801),t(8675),t(7380),t(1118),t(1120)),Ht=t.n(Dt);const Lt=e=>new Promise((A=>{Ht()(e,{useCORS:!0}).then((e=>{let t,i,n,r=e.toDataURL("image/jpeg",.9),o=.9,s=new Image;s.src=r,s.setAttribute("crossOrigin","Anonymous"),s.onload=function(){n=1*this.width,t=this.width,i=this.height;let e=document.createElement("canvas"),r=e.getContext("2d");Math.max(t,i)>n?t>i?(e.width=n,e.height=n*(i/t)):(e.height=n,e.width=n*(t/i)):(e.width=t,e.height=i,o=.6),r.clearRect(0,0,e.width,e.height),r.drawImage(this,0,0,e.width,e.height);let s=e.toDataURL("image/jpeg",o),a=Ot(s),l=new File([a],new Date+".jpg");A(l)}}))}));function Ot(e,A){let t=atob(e.split(",")[1]),i=[];for(let n=0;n<t.length;n++)i.push(t.charCodeAt(n));return new Blob([new Uint8Array(i)],{type:"image/jpeg"})}var Mt=Lt,Tt=(0,n.aZ)({props:["moodb_className","flex_direction"],components:{draggable:St()},setup(e){let A=(0,W.iH)(!1),t=(0,W.iH)([]),i=(0,W.iH)(1),n=!1,r=(0,W.iH)([]);const o=(0,W.iH)(null);let s=(0,W.iH)(!1);return{layout:A,templateFileList:t,openClick:i,drag:n,layoutList:r,content:o,loadingShow:s}},data(){return{store:(0,Se.oR)(),moodb:kt.moodb_,moodbList:{},moodbClassName:[],setabsolute:!1,token:"",uploadUrl:"",upload:{isPin:0,gender:"",level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}}},mounted(){this.token=(0,He.ej)("token")||"",this.uploadUrl=(0,Le.M$)()},directives:{layout:{mounted(e,A,t){e.addEventListener("mousedown",(A=>{A.stopPropagation(),e.parentElement.children.forEach((e=>{e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px"})),e.parentElement.children.forEach((e=>{e.classList.add("active")})),e.style.zIndex=De.zIndex++;let t=e.style.left?e.style.left.replace(/px/g,""):0,i=e.style.top?e.style.top.replace(/px/g,""):0,n=A.offsetX,r=A.offsetY,o=A.clientX-A.offsetX-Number(t),s=A.clientY-A.offsetY-Number(i),a=!0;document.onmousemove=function(A){a&&(e.style.left=A.x-n-o+"px",e.style.top=A.y-r-s+"px",e.offsetLeft<=0&&(e.style.left="0px"),e.offsetTop<=0&&(e.style.top="0px"),e.offsetLeft+e.offsetWidth>=e.parentNode.offsetWidth&&(e.style.left=e.parentNode.offsetWidth-e.offsetWidth+"px"),e.offsetTop+e.offsetHeight>=e.parentNode.offsetHeight&&(e.style.top=e.parentNode.offsetHeight-e.offsetHeight+"px"))},document.onmouseup=function(){a=!1}}))},updated(e,A){}},compile:{mounted(e,A){e.addEventListener("mousedown",(t=>{t.stopPropagation();let i,n,r=e.parentNode.parentNode;e.parentElement.parentNode.parentNode.children.forEach((e=>{e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px"})),e.parentElement.parentNode.parentNode.children.forEach((e=>{e.classList.add("active")})),"right"==A.value||("left"==A.value?(r.style.right=r.parentNode.offsetWidth-r.offsetWidth-r.offsetLeft+"px",r.style.left="auto"):"top"==A.value?(r.style.bottom=r.parentNode.offsetHeight-r.offsetHeight-r.offsetTop+"px",r.style.top="auto"):A.value),"left"==A.value||"right"==A.value?(i=t.x,n=r.offsetWidth):(n=r.offsetHeight,i=t.y);let o=!0;document.onmousemove=function(e){o&&("left"==A.value?r.style.width=n+i-e.x+"px":"right"==A.value?r.style.width=n+e.x-i+"px":"top"==A.value?r.style.height=n+i-e.y+"px":"bottom"==A.value&&(r.style.height=n+e.y-i+"px"),r.parentNode.offsetWidth<=r.offsetWidth+Number(r.style.right.replace(/px/g,""))&&(r.style.width=r.parentNode.offsetWidth-Number(r.style.right.replace(/px/g,""))+"px"),r.offsetLeft+r.offsetWidth>=r.parentNode.offsetWidth&&(r.style.width=r.parentNode.offsetWidth-r.offsetLeft+"px"),r.parentNode.offsetHeight<=r.offsetHeight+Number(r.style.bottom.replace(/px/g,""))&&(r.style.height=r.parentNode.offsetHeight-Number(r.style.bottom.replace(/px/g,""))+"px"),r.offsetTop+r.offsetHeight>=r.parentNode.offsetHeight&&(r.style.height=r.parentNode.offsetHeight-r.offsetTop+"px"))},document.onmouseup=function(){o=!1}}))}},rotote:{mounted(e){let A,t=!0,i=0,n=e.parentNode.parentNode;if(document.defaultView){let e=document.defaultView.getComputedStyle(n.firstElementChild,null).transform.split("(")[1].split(",");A=Number(e[3])}e.addEventListener("mousedown",(r=>{r.stopPropagation(),t=!0;var o=e.getBoundingClientRect();let s=o.x+o.width/2,a=o.y+o.height/2;document.addEventListener("mousemove",(r=>{if(t){let t=s,o=a,l=r.clientX-t,c=o-r.clientY;i=Math.atan2(l,c)*(180/Math.PI),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+A+") rotateZ("+i+"deg)",e.style.transform="translate(-50%,-50%) rotateZ("+i+"deg)"}})),document.addEventListener("mouseup",(()=>{t=!1}))}));let r=!0;e.parentNode.addEventListener("mousemove",(t=>{e.parentNode.addEventListener("mousewheel",(e=>{r&&(r=!1,e.deltaY>0?A-=A<=1?.05:.1:A+=A<=1?.05:.1,A>=3?A=3:A<.2&&(A=.2),setTimeout((()=>{r=!0}),100),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+A+") rotateZ("+i+"deg)")}))}))}},angle:{mounted(e,A){let t=!1;e.addEventListener("mousedown",(i=>{i.stopPropagation(),e.parentNode.children.forEach((e=>{e.classList.add("eventNode")})),t=!0;let n,r,o=e.parentNode.parentNode,s=Math.sqrt(o.offsetWidth/2*o.offsetWidth/2+o.offsetHeight/2*o.offsetHeight/2),a=i=>{if(t){"right"==A.value?(n=o.offsetWidth-i.offsetX,r=o.offsetHeight-i.offsetY):"top"==A.value?(n=o.offsetWidth-i.offsetX-o.offsetWidth,r=o.offsetHeight-i.offsetY):"left"==A.value?(n=o.offsetWidth-i.offsetX,r=o.offsetHeight-i.offsetY-o.offsetHeight):"bottom"==A.value&&(n=o.offsetWidth-i.offsetX-o.offsetWidth,r=o.offsetHeight-i.offsetY-o.offsetHeight);let t=Math.sqrt(n*n+r*+r)/2;if(100-100*t/s<=50){let i=(100-100*t/s)/3.33-1;i<=0&&(i=0),"right"==A.value?(e.parentNode.style.borderTopLeftRadius=100-100*t/s+"%",o.style.borderTopLeftRadius=100-100*t/s+"%",e.style.left=i+"%",e.style.top=i+"%"):"top"==A.value?(e.parentNode.style.borderTopRightRadius=100-100*t/s+"%",o.style.borderTopRightRadius=100-100*t/s+"%",e.style.right=i+"%",e.style.left="auto",e.style.top=i+"%"):"bottom"==A.value?(e.parentNode.style.borderBottomRightRadius=100-100*t/s+"%",o.style.borderBottomRightRadius=100-100*t/s+"%",e.style.right=i+"%",e.style.top="auto",e.style.left="auto",e.style.bottom=i+"%"):"left"==A.value&&(e.parentNode.style.borderBottomLeftRadius=100-100*t/s+"%",o.style.borderBottomLeftRadius=100-100*t/s+"%",e.style.left=i+"%",e.style.top="auto",e.style.bottom=i+"%")}else"right"==A.value?(e.parentNode.style.borderTopLeftRadius="50%",o.style.borderTopLeftRadius="50%"):"top"==A.value?(e.parentNode.style.borderTopRightRadius="50%",o.style.borderTopRightRadius="50%"):"bottom"==A.value?(e.parentNode.style.borderBottomRightRadius="50%",o.style.borderBottomRightRadius="50%"):"left"==A.value&&(e.parentNode.style.borderBottomLeftRadius="50%",o.style.borderBottomLeftRadius="50%")}document.addEventListener("mouseup",(()=>{t=!1,e.removeEventListener("mousemove",a),e.parentNode.children.forEach((e=>{e.classList.remove("eventNode")}))}))};e.parentNode.addEventListener("mousemove",a)}))}},translate:{mounted(e,A,t){e.addEventListener("mousedown",(A=>{A.stopPropagation();let t=e.parentNode.parentNode;e.style.left=(e.offsetLeft+2)/t.offsetWidth*100+"%",e.style.top=(e.offsetTop+2)/t.offsetHeight*100+"%";e.style.left&&e.style.left.replace(/%/g,""),e.style.top&&e.style.top.replace(/%/g,"");let i=A.offsetX,n=A.offsetY,r=A.clientX-A.offsetX-e.offsetLeft,o=A.clientY-A.offsetY-e.offsetTop,s=!0;document.onmousemove=function(A){if(s){let s=(A.x-i+2-r)/t.offsetWidth*100+"%",a=(A.y-n+2-o)/t.offsetHeight*100+"%";e.style.left=s,e.style.top=a,e.previousSibling.style.top=a,e.previousSibling.style.left=s,t.firstChild.style.top=a,t.firstChild.style.left=s,e.offsetLeft<=0&&(e.style.left="0%",e.previousSibling.style.left="0%",t.firstChild.style.left="0%"),e.offsetTop<=0&&(e.style.top="0%",e.previousSibling.style.top="0%",t.firstChild.style.top="0%"),e.style.left.replace(/%/g,"")>=100&&(e.style.left="100%",e.previousSibling.style.left="100%",t.firstChild.style.left="100%"),e.style.top.replace(/%/g,"")>=100&&(e.style.top="100%",e.previousSibling.style.top="100%",t.firstChild.style.top="100%")}},document.onmouseup=function(){s=!1}}))}},modelImg:{mounted(e){let A=e.parentNode;A.offsetHeight>A.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")},updated(e){let A=e.parentNode;A.offsetHeight>A.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")}}},methods:{init(){let e=this.$parent;e=e.layoutList,this.layout=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),this.layoutList=e,this.moodbList=this.moodb[e.length-1],this.moodbClassName=this.moodb_className},cancelDsign(){this.layout=!1},setpitch(e,A){this.layoutList.forEach((e=>{e.setPitch=!1})),e.setPitch=!0,this.content&&(this.content[A].style.zIndex=De.zIndex++)},setmoodb(e){if(this.moodbClassName=e,this.$emit("setmoodbClass",this.moodbClassName),this.content)for(e of this.content)e.classList.remove("active"),e.style.top="",e.style.left="",e.style.right="",e.style.bottom="",e.style.width="",e.style.height=""},changeTemplateModal(){this.layout=!this.layout},submitTemplate(){this.loadingShow=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),(0,n.Y3)().then((async()=>{let e=document.getElementById("layoutCentent"),A=await Mt(e),t=new FormData;t.append("inPin","0"),t.append("gender",""),t.append("level1Type","Moodboard"),t.append("timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone),t.append("file",A);let i={headers:{"Content-Type":"multipart/form-data",Accept:"*/*"}};Ie.V.axiosPost(Ie.V.httpUrls.elementUpload,t,i).then((e=>{e.imgUrl=e.url,this.layout=!1,this.loadingShow=!1,this.store.commit("setDisposeMoodboard",e)})).catch((e=>{this.loadingShow=!1}))}))},beforeUpload(){}}});const Nt=(0,Ke.Z)(Tt,[["render",Et]]);var Kt=Nt;const Pt={class:"layout_content"},Rt={class:"collection_title"},Vt={class:"collection_title_text"},Gt={class:"layout_title"},jt=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),zt=[jt],Zt={class:"layout_nav"},Wt=["onClick"],Yt=["src"],Xt=["onClick"],Jt=["src"],$t={class:"layout_btn"},qt={class:"layout_btn_top"},ei={class:"layout_btn_bottom"},Ai={class:"layout_btn_left"},ti={class:"layout_btn_right"},ii={class:"layout_rotote"},ni={class:"layout_translate"},ri={class:"layout_angle_tr"},oi={class:"layout_angle_tl"},si={class:"layout_angle_br"},ai={class:"layout_angle_bl"},li={class:"layout_left"},ci={class:"layout_left_text"},di=["onClick"],ui={class:"mark_loading"};function hi(e,A,t,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("a-modal"),u=(0,n.Q2)("modelImg"),h=(0,n.Q2)("compile"),g=(0,n.Q2)("rotote"),p=(0,n.Q2)("translate"),f=(0,n.Q2)("angle"),m=(0,n.Q2)("layout");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(d,{class:"layout_modal",visible:e.layout,"onUpdate:visible":A[2]||(A[2]=A=>e.layout=A),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,mask:!1,keyboard:!1,destroyOnClose:!0},{default:(0,n.w5)((()=>[(0,n._)("div",Pt,[(0,n._)("div",Rt,[(0,n._)("div",Vt,[(0,n._)("div",Gt,(0,r.zw)(e.$t("layout.MoodBoardDesign")),1)])]),(0,n._)("div",{class:"collection_closeIcon",onClick:A[0]||(A[0]=(0,o.iM)((A=>e.cancelDsign()),["stop"]))},zt),(0,n._)("div",Zt,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{key:A,class:(0,r.C_)({active:A.setPitch}),onClick:i=>e.setpitch(A,t)},[(0,n._)("img",{src:A.imgUrl},null,8,Yt)],10,Wt)))),128))]),(0,n._)("div",{class:(0,r.C_)(["layout_centent",{active:e.flex_direction}]),id:"layoutCentent"},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((A,t)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:A,class:(0,r.C_)([e.moodbClassName[t],"modal_imgItem"]),onClick:i=>e.setpitch(A,t),ref_for:!0,ref:"content"},[(0,n.wy)((0,n._)("img",{crossOrigin:"anonymous",src:A.imgUrl,draggable:"false"},null,8,Jt),[[u]]),(0,n.wy)((0,n._)("ul",$t,[(0,n.wy)((0,n._)("li",qt,null,512),[[h,"top",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",ei,null,512),[[h,"bottom",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Ai,null,512),[[h,"left",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",ti,null,512),[[h,"right",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",ii,null,512),[[g,void 0,void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",ni,null,512),[[p,void 0,void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",ri,null,512),[[f,"top",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",oi,null,512),[[f,"right",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",si,null,512),[[f,"bottom",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",ai,null,512),[[f,"left",void 0,{stop:!0}]])],512),[[o.F8,A.setPitch]])],10,Xt)),[[m,t]]))),128))],2),(0,n._)("div",li,[(0,n._)("div",ci,(0,r.zw)(e.$t("layout.LayerOptions")),1),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.moodbList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"layout_left_items",onClick:t=>e.setmoodb(A)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(A,((e,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)([e,"layout_left_item"])},null,2)))),256))],8,di)))),256))]),(0,n._)("div",{class:"button_second submit_button",onClick:A[1]||(A[1]=A=>e.submitTemplate())},(0,r.zw)(e.$t("layout.Submit")),1)]),(0,n.wy)((0,n._)("div",ui,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]]),(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},headers:{Authorization:e.token},"before-upload":e.beforeUpload,multiple:"",accept:".jpg,.png,.jpeg,.bmp"},null,8,["action","data","headers","before-upload"])])),_:1},8,["visible"])])}var gi=(0,n.aZ)({props:["moodb_className","flex_direction"],components:{draggable:St()},setup(e){let A=(0,W.iH)(!1),t=(0,W.iH)([]),i=(0,W.iH)(1),n=!1,r=(0,W.iH)([]);const o=(0,W.iH)(null);let s=(0,W.iH)(!1);return{layout:A,templateFileList:t,openClick:i,drag:n,layoutList:r,content:o,loadingShow:s}},data(){return{store:(0,Se.oR)(),moodb:kt.moodb_,moodbList:{},moodbClassName:[],setabsolute:!1,token:"",uploadUrl:"",upload:{isPin:0,gender:"",level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}}},mounted(){this.token=(0,He.ej)("token")||"",this.uploadUrl=(0,Le.M$)()},directives:{layout:{mounted(e,A,t){e.addEventListener("touchstart",(A=>{A.stopPropagation(),e.parentElement.children.forEach((e=>{e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px"})),e.parentElement.children.forEach((e=>{e.classList.add("active")})),e.style.zIndex=De.zIndex++;let t=e.style.left?e.style.left.replace(/px/g,""):0,i=e.style.top?e.style.top.replace(/px/g,""):0,n=A.changedTouches[0].pageX-e.getBoundingClientRect().left,r=A.changedTouches[0].pageY-e.getBoundingClientRect().top,o=A.targetTouches[0].clientX-n-Number(t),s=A.targetTouches[0].clientY-r-Number(i),a=!0,l=function(A){a&&(e.style.left=A.targetTouches[0].pageX-n-o+"px",e.style.top=A.targetTouches[0].pageY-r-s+"px",e.offsetLeft<=0&&(e.style.left="0px"),e.offsetTop<=0&&(e.style.top="0px"),e.offsetLeft+e.offsetWidth>=e.parentNode.offsetWidth&&(e.style.left=e.parentNode.offsetWidth-e.offsetWidth+"px"),e.offsetTop+e.offsetHeight>=e.parentNode.offsetHeight&&(e.style.top=e.parentNode.offsetHeight-e.offsetHeight+"px"))},c=function(){a=!1,document.removeEventListener("touchmove",l),document.removeEventListener("touchmove",l)};document.addEventListener("touchmove",l),document.addEventListener("touchend",c)}))},updated(e,A){}},compile:{mounted(e,A){e.addEventListener("touchstart",(t=>{t.stopPropagation();let i,n,r=e.parentNode.parentNode;e.parentElement.parentNode.parentNode.children.forEach((e=>{e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px"})),e.parentElement.parentNode.parentNode.children.forEach((e=>{e.classList.add("active")})),"right"==A.value||("left"==A.value?(r.style.right=r.parentNode.offsetWidth-r.offsetWidth-r.offsetLeft+"px",r.style.left="auto"):"top"==A.value?(r.style.bottom=r.parentNode.offsetHeight-r.offsetHeight-r.offsetTop+"px",r.style.top="auto"):A.value),"left"==A.value||"right"==A.value?(i=t.targetTouches[0].clientX,n=r.offsetWidth):(n=r.offsetHeight,i=t.targetTouches[0].clientY);let o=!0,s=function(e){o&&("left"==A.value?r.style.width=n+i-e.targetTouches[0].clientX+"px":"right"==A.value?r.style.width=n+e.targetTouches[0].clientX-i+"px":"top"==A.value?r.style.height=n+i-e.targetTouches[0].clientY+"px":"bottom"==A.value&&(r.style.height=n+e.targetTouches[0].clientY-i+"px"),r.parentNode.offsetWidth<=r.offsetWidth+Number(r.style.right.replace(/px/g,""))&&(r.style.width=r.parentNode.offsetWidth-Number(r.style.right.replace(/px/g,""))+"px"),r.offsetLeft+r.offsetWidth>=r.parentNode.offsetWidth&&(r.style.width=r.parentNode.offsetWidth-r.offsetLeft+"px"),r.parentNode.offsetHeight<=r.offsetHeight+Number(r.style.bottom.replace(/px/g,""))&&(r.style.height=r.parentNode.offsetHeight-Number(r.style.bottom.replace(/px/g,""))+"px"),r.offsetTop+r.offsetHeight>=r.parentNode.offsetHeight&&(r.style.height=r.parentNode.offsetHeight-r.offsetTop+"px"))},a=function(){o=!1,e.parentNode.removeEventListener("touchmove",s),document.removeEventListener("touchmove",s),e.parentNode.children.forEach((e=>{e.classList.remove("eventNode")}))};e.parentNode.addEventListener("touchmove",s),document.addEventListener("touchend",a)}))}},rotote:{mounted(e){let A,t=!0,i=0,n=e.parentNode.parentNode;if(document.defaultView){let e=document.defaultView.getComputedStyle(n.firstElementChild,null).transform.split("(")[1].split(",");A=Number(e[3])}e.addEventListener("touchstart",(r=>{r.stopPropagation(),t=!0;var o=e.getBoundingClientRect();let s=o.x+o.width/2,a=o.y+o.height/2;document.addEventListener("touchmove",(r=>{if(t){let t=s,o=a,l=r.targetTouches[0].clientX-t,c=o-r.targetTouches[0].clientY;i=Math.atan2(l,c)*(180/Math.PI),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+A+") rotateZ("+i+"deg)",e.style.transform="translate(-50%,-50%) rotateZ("+i+"deg)"}})),document.addEventListener("touchend",(()=>{t=!1}))}));let r=!0;e.parentNode.addEventListener("mousemove",(t=>{e.parentNode.addEventListener("mousewheel",(e=>{r&&(r=!1,e.deltaY>0?A-=A<=1?.05:.1:A+=A<=1?.05:.1,A>=3?A=3:A<.2&&(A=.2),setTimeout((()=>{r=!0}),100),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+A+") rotateZ("+i+"deg)")}))}))}},angle:{mounted(e,A){let t=!1;e.addEventListener("touchstart",(i=>{i.stopPropagation(),e.parentNode.children.forEach((e=>{e.classList.add("eventNode")})),t=!0;let n,r,o=e.parentNode.parentNode,s=Math.sqrt(o.offsetWidth/2*o.offsetWidth/2+o.offsetHeight/2*o.offsetHeight/2),a=i=>{if(t){let t=i.changedTouches[0].pageX-e.parentNode.getBoundingClientRect().left,a=i.changedTouches[0].pageY-e.parentNode.getBoundingClientRect().top;"right"==A.value?(n=o.offsetWidth-t,r=o.offsetHeight-a):"top"==A.value?(n=o.offsetWidth-t-o.offsetWidth,r=o.offsetHeight-a):"left"==A.value?(n=o.offsetWidth-t,r=o.offsetHeight-o.offsetHeight-a):"bottom"==A.value&&(n=o.offsetWidth-t-o.offsetWidth,r=o.offsetHeight-a-o.offsetHeight);let l=Math.sqrt(n*n+r*r)/2;if(100-100*l/s<=50){let t=(100-100*l/s)/3.33-1;t<=0&&(t=0),"right"==A.value?(e.parentNode.style.borderTopLeftRadius=100-100*l/s+"%",o.style.borderTopLeftRadius=100-100*l/s+"%",e.style.left=t+"%",e.style.top=t+"%"):"top"==A.value?(e.parentNode.style.borderTopRightRadius=100-100*l/s+"%",o.style.borderTopRightRadius=100-100*l/s+"%",e.style.right=t+"%",e.style.left="auto",e.style.top=t+"%"):"bottom"==A.value?(e.parentNode.style.borderBottomRightRadius=100-100*l/s+"%",o.style.borderBottomRightRadius=100-100*l/s+"%",e.style.right=t+"%",e.style.top="auto",e.style.left="auto",e.style.bottom=t+"%"):"left"==A.value&&(e.parentNode.style.borderBottomLeftRadius=100-100*l/s+"%",o.style.borderBottomLeftRadius=100-100*l/s+"%",e.style.left=t+"%",e.style.top="auto",e.style.bottom=t+"%")}else"right"==A.value?(e.parentNode.style.borderTopLeftRadius="50%",o.style.borderTopLeftRadius="50%"):"top"==A.value?(e.parentNode.style.borderTopRightRadius="50%",o.style.borderTopRightRadius="50%"):"bottom"==A.value?(e.parentNode.style.borderBottomRightRadius="50%",o.style.borderBottomRightRadius="50%"):"left"==A.value&&(e.parentNode.style.borderBottomLeftRadius="50%",o.style.borderBottomLeftRadius="50%")}document.addEventListener("touchend",(()=>{t=!1,e.parentNode.removeEventListener("touchmove",a),e.parentNode.children.forEach((e=>{e.classList.remove("eventNode")}))}))};e.parentNode.addEventListener("touchmove",a,!1)}))}},translate:{mounted(e,A,t){e.addEventListener("touchstart",(A=>{A.stopPropagation();let t=e.parentNode.parentNode;e.style.left=(e.offsetLeft+2)/t.offsetWidth*100+"%",e.style.top=(e.offsetTop+2)/t.offsetHeight*100+"%";e.style.left&&e.style.left.replace(/%/g,""),e.style.top&&e.style.top.replace(/%/g,"");let i=A.changedTouches[0].pageX-e.parentNode.getBoundingClientRect().left,n=A.changedTouches[0].pageY-e.parentNode.getBoundingClientRect().top,r=A.changedTouches[0].pageX-i-e.offsetLeft,o=A.changedTouches[0].pageY-n-e.offsetTop,s=!0,a=function(A){if(s){let s=(A.changedTouches[0].pageX-i+2-r)/t.offsetWidth*100+"%",a=(A.changedTouches[0].pageY-n+2-o)/t.offsetHeight*100+"%";e.style.left=s,e.style.top=a,e.previousSibling.style.top=a,e.previousSibling.style.left=s,t.firstChild.style.top=a,t.firstChild.style.left=s,e.offsetLeft<=0&&(e.style.left="0%",e.previousSibling.style.left="0%",t.firstChild.style.left="0%"),e.offsetTop<=0&&(e.style.top="0%",e.previousSibling.style.top="0%",t.firstChild.style.top="0%"),e.style.left.replace(/%/g,"")>=100&&(e.style.left="100%",e.previousSibling.style.left="100%",t.firstChild.style.left="100%"),e.style.top.replace(/%/g,"")>=100&&(e.style.top="100%",e.previousSibling.style.top="100%",t.firstChild.style.top="100%")}};e.parentNode.addEventListener("touchmove",a,!1),document.addEventListener("touchend",(()=>{s=!1,e.parentNode.removeEventListener("touchmove",a),e.parentNode.children.forEach((e=>{e.classList.remove("eventNode")}))}))}))}},modelImg:{}},methods:{init(){let e=this.$parent;e=e.layoutList,this.layout=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),this.layoutList=e,this.moodbList=this.moodb[e.length-1],this.moodbClassName=this.moodb_className},cancelDsign(){this.layout=!1},setpitch(e,A){this.layoutList.forEach((e=>{e.setPitch=!1})),e.setPitch=!0,this.content&&(this.content[A].style.zIndex=De.zIndex++)},setmoodb(e){if(this.moodbClassName=e,this.$emit("setmoodbClass",this.moodbClassName),this.content)for(e of this.content)e.classList.remove("active"),e.style.top="",e.style.left="",e.style.right="",e.style.bottom="",e.style.width="",e.style.height=""},changeTemplateModal(){this.layout=!this.layout},submitTemplate(){this.loadingShow=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),(0,n.Y3)().then((async()=>{let e=document.getElementById("layoutCentent"),A=await Mt(e),t=new FormData;t.append("inPin","0"),t.append("gender",""),t.append("level1Type","Moodboard"),t.append("timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone),t.append("file",A);let i={headers:{"Content-Type":"multipart/form-data",Accept:"*/*"}};Ie.V.axiosPost(Ie.V.httpUrls.elementUpload,t,i).then((e=>{e.imgUrl=e.url,this.layout=!1,this.loadingShow=!1,this.store.commit("setDisposeMoodboard",e)})).catch((e=>{this.loadingShow=!1}))}))},beforeUpload(){}}});const pi=(0,Ke.Z)(gi,[["render",hi]]);var fi=pi,mi=(0,n.aZ)({components:{Material:RA,MoodTemplate:At,Generate:Re,layout:Kt,layoutMobile:fi},setup(){const e=(0,Se.oR)();let A=(0,W.iH)([]),t=(0,W.iH)([]),i=(0,W.iH)([]),r=(0,W.iH)(!1),o=(0,W.iH)([]),s=(0,W.iH)(1),a=(0,W.iH)([]),l=(0,W.iH)(!1),c=[],d=(0,W.iH)(!1),u=(0,W.iH)(!1),h=(0,n.Fl)((()=>e.state.UploadFilesModule.disposeMoodboard)),g=(0,n.f3)("driver__"),p=(0,W.iH)([]),f=(0,W.iH)(),{t:m}=(0,Te.QT)();return{fileList:t,showFileList:i,lessenList:A,templateModal:r,templateFileList:o,openClick:s,moodb_className:a,flex_direction:l,layoutList:c,layoutOpen:d,loadingShow:u,modalImg:h,driver__:g,uploading:p,edieShow:f,t:m}},data(){return{indicator:(0,n.h)(xe.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,gender:"",level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",moodTemplateId:"",store:(0,Se.oR)(),moodb_:kt.moodb_,moodboarList:(0,n.Fl)((()=>(0,Se.oR)().state.UploadFilesModule.moodboard))}},mounted(){this.token=(0,He.ej)("token")||"",this.uploadUrl=(0,Le.M$)()},watch:{driver__:{handler(e,A){e.index>=6&&e.index<=8&&this.open(e.index-5)}}},directives:{modelImg:{mounted(e){let A=e.parentNode;A.offsetHeight>A.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")},updated(e){let A=e.parentNode;A.offsetHeight>A.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")}}},methods:{open(e){if(this.openClick=e,2==e){let e=this.$refs.Material;e.init("Moodboard")}else if(3==e){let e=this.$refs.Generate;this.driver__.driver?e.searchPictureName="Exit sign, door, sunset, ocean, surreal":e.searchPictureName=""}},fileUploadChange(e){let A=e.file,t=!0;if("done"===A.status){let e=JSON.parse(A.xhr.response);if(0==e.errCode){A.imgUrl=e.data.url,A.resData=e.data,A.type_={type1:"upload",type2:"Moodboard"},A.id_=De.id++,A.id=e.data.id;let t=this.fileList.filter((e=>"done"===e.status)),i=this.store.state.UploadFilesModule.moodboard;i.length>=8?Ee.ZP.info(this.t("MoodboardUpload.jsContent1")):this.store.commit("setMoodboardFile",t)}else t=!1}else"error"===A.status&&(t=!1);if(!t){let e=JSON.parse(A.xhr.response),t=-1;this.fileList.forEach(((e,i)=>{A.uid===e.uid&&(t=i)})),t>-1&&this.fileList.splice(t,1),Ee.ZP.warning(e.errMsg)}},beforeUpload(e){const A="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;A||Ee.ZP.info(this.t("MoodboardUpload.jsContent3"));const t=e.size/1024/1024<2;return t||Ee.ZP.info(this.t("MoodboardUpload.jsContent4")),A&&t||ke.Z.LIST_IGNORE},deleteFile(e){if("generate"==e.type_.type1||"material"==e.type_.type1)e.jsContent1=this.t("uploadFile.jsContent1",{maxImg:8}),this.store.commit("addGenerateMaterialFils",e);else{let A;this.fileList=this.store.state.UploadFilesModule.moodboardFiles,this.store.state.UploadFilesModule.moodboardFiles.forEach(((t,i)=>{t.id_==e.id_&&(A=i)})),this.fileList.splice(A,1),this.store.commit("setMoodboardFile",this.fileList)}0==this.store.state.UploadFilesModule.moodboard.length&&(this.store.commit("clearMoodTemplateId"),this.layoutList=[],this.edieShow=!1)},recollection(){let e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.moodboardFiles)),A=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.disposeMoodboard)),t={generate:[],material:[],moodboard:[]};e.forEach((e=>{"generate"==e.type_.type1?t.generate.push(e):"material"==e.type_.type1?t.material.push(e):t.moodboard.push(e)})),this.store.commit("setMoodboardGenerateFiles",t.generate),this.store.commit("setMoodboardMaterialFiles",t.material),this.store.commit("setMoodboardFile",t.moodboard),this.store.commit("setDisposeMoodboard",A[0]),this.fileList=t.moodboard},async changeTemplateModal(){if(this.modalImg[0]?.id){let e=(0,Le.S0)()?this.$refs.layoutMobile:this.$refs.layout;this.layoutList.length<=0&&await this.layout(),e.init()}else Ee.ZP.info(this.t("MoodboardUpload.jsContent5"))},layout(){this.loadingShow=!0,this.edieShow=!0,this.store.commit("setDisposeMoodboard",[]);let e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.moodboard));this.layoutList=e;var A=Math.round(Math.random()*(this.moodb_[e.length-1].length-1));let t=this.moodb_[e.length-1][A];0!=t.filter(((e,A)=>"w2h1"==e)).length&&e.length>4?this.flex_direction=!0:this.flex_direction=!1,1==this.moodb_[e.length-1].length||JSON.stringify(this.moodb_className)!=JSON.stringify(this.moodb_[e.length-1][A])?(2==this.moodb_[e.length-1].length?this.moodb_className=this.moodb_[e.length-1][0]:this.moodb_className=this.moodb_[e.length-1][A],this.layoutOpen=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),(0,n.Y3)().then((async()=>{let e=document.getElementById("modal_img"),A=await Mt(e),t=new FormData;t.append("inPin","0"),t.append("level1Type","Moodboard"),t.append("gender",""),t.append("timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone),t.append("file",A);let i={headers:{"Content-Type":"multipart/form-data",Accept:"*/*"}};Ie.V.axiosPost(Ie.V.httpUrls.elementUpload,t,i).then((e=>{let A=e;A.imgUrl=e.url,A.resData=JSON.parse(JSON.stringify(A)),this.store.commit("setDisposeMoodboard",A),this.loadingShow=!1})).catch((e=>{this.loadingShow=!1})),this.driver__.driver&&Me.RX.moveNext()}))):this.layout()},setmoodbClass(e){this.moodb_className=e}}});const Bi=(0,Ke.Z)(mi,[["render",mA],["__scopeId","data-v-3c971a6f"]]);var wi=Bi;const vi=e=>((0,n.dD)("data-v-508e7d1b"),e=e(),(0,n.Cn)(),e),yi={class:"printboard_left_upload"},Ci={class:"left_upload_header"},bi={class:"upload_header_item"},_i={class:"switch_type_list"},Qi={class:"printboard_body"},Ui={class:"upload_img_body"},Fi={class:"upload_item"},xi={class:"upload_file_img_block"},Ei={class:"upload_file_item_content"},ki={class:"upload_file_item_content"},Ii=["onClick"],Si=vi((()=>(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),Di=[Si],Hi={class:"pin_block"},Li={class:"upload_file_item upload_component"},Oi={class:"upload_tip_block"},Mi=vi((()=>(0,n._)("i",{class:"fi fi-br-upload"},null,-1))),Ti=[Mi],Ni={class:"upload_max_tip"},Ki=vi((()=>(0,n._)("span",{class:"icon iconfont icon-zhuyi"},null,-1))),Pi={class:"modal_right"},Ri={class:"modal_layout"},Vi={class:"modal_text"},Gi={class:"modal_img"},ji=["onClick"],zi=vi((()=>(0,n._)("div",{class:"checked"},[(0,n._)("i",{class:"fi fi-rr-trash"})],-1))),Zi={class:"modal_accomplish"},Wi=["maxlength","readonly","placeholder"],Yi={class:"modal_img"},Xi=["src","onClick"],Ji=["onClick"],$i=["onClick"],qi={class:"pin_block"},en={class:"mark_loading"};function An(e,A,t,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-checkbox"),d=(0,n.up)("a-upload"),u=(0,n.up)("Material"),h=(0,n.up)("Generate"),g=(0,n.up)("scaleImage"),p=(0,n.up)("Cropper"),f=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["printboard_upload_modal",[e.driver__.driver?"showEvents":""]])},[(0,n._)("div",yi,[(0,n._)("div",Ci,[(0,n._)("div",bi,[(0,n._)("div",_i,[(0,n._)("div",{onClick:A[0]||(A[0]=(0,o.iM)((A=>e.open(1)),["stop"])),class:(0,r.C_)(["switch_type_item",[1==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.Upload")),1)],2),(0,n._)("div",{onClick:A[1]||(A[1]=(0,o.iM)((A=>e.open(2)),["stop"])),class:(0,r.C_)(["switch_type_item",[2==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.Library")),1)],2),(0,n._)("div",{onClick:A[2]||(A[2]=(0,o.iM)((A=>e.open(3)),["stop"])),class:(0,r.C_)(["switch_type_item Guide_1_2_1",[3==e.openClick?"select_swtich":"",e.driver__.driver?"showEvents":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.Generate")),1)],2)])])]),(0,n.wy)((0,n._)("div",Qi,[(0,n._)("div",Ui,[(0,n._)("div",Fi,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["upload_file_item"]),key:A},[(0,n._)("div",xi,[(0,n.wy)((0,n._)("div",Ei,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===A?.status]]),(0,n.wy)((0,n._)("div",ki,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("img",{class:"upload_img",key:A.imgUrl})),[[f,A.imgUrl]]),(0,n._)("div",{class:"delete_like_file_block",onClick:(0,o.iM)((t=>e.deleteFile(A)),["stop"])},Di,8,Ii)],512),[[o.F8,"done"===A?.status]])]),(0,n.wy)((0,n._)("div",Hi,[(0,n.Wm)(c,{checked:A.pin,"onUpdate:checked":e=>A.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("PrintboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])],512),[[o.F8,"done"===A?.status]])])))),128)),(0,n.wy)((0,n._)("div",Li,[(0,n.Wm)(d,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card","before-upload":e.beforeUpload,data:{...e.upload},headers:{Authorization:e.token},"file-list":e.fileList,"onUpdate:file-list":A[3]||(A[3]=A=>e.fileList=A),customRequest:function(){},multiple:!e.driver__.driver,maxCount:8-e.printboardList.length+e.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:e.fileUploadChange},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",Oi,Ti,512),[[o.F8,e.printboardList.length<8]])])),_:1},8,["action","before-upload","data","headers","file-list","customRequest","multiple","maxCount","onChange"])],512),[[o.F8,e.printboardList.length<8]])])]),(0,n._)("div",Ni,[Ki,(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.Maximum")),1)])],512),[[o.F8,1==e.openClick]]),(0,n.wy)((0,n.Wm)(u,{ref:"Material",msg:"Printboard",onConfirmSelect:e.confirmSelect},null,8,["onConfirmSelect"]),[[o.F8,2==e.openClick]]),(0,n.wy)((0,n.Wm)(h,{ref:"Generate",msg:"Printboard",onGenerateCheckbox:e.getgenerateCheckbox},null,8,["onGenerateCheckbox"]),[[o.F8,3==e.openClick]])]),(0,n._)("div",Pi,[(0,n._)("div",Ri,[(0,n._)("div",Vi,[(0,n._)("div",null,(0,r.zw)(e.$t("PrintboardUpload.Thumbnail")),1)]),(0,n._)("div",Gi,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.printboardList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:A,onClick:(0,o.iM)((t=>e.deleteFile(A)),["stop"])},[(0,n.wy)((0,n._)("img",null,null,512),[[f,A.imgUrl]]),zi],8,ji)))),128))])]),(0,n.wy)((0,n._)("div",Zi,[(0,n._)("div",{class:(0,r.C_)(["input_box Guide_1_2_8",[e.inputShow?"active":"",e.driver__.driver?"showEvents":""]])},[(0,n.wy)((0,n._)("input",{class:(0,r.C_)(["search_input",{forbidden:e.generateCheckbox}]),onInput:A[4]||(A[4]=(...A)=>e.ifMaximumLength&&e.ifMaximumLength(...A)),onKeydown:A[5]||(A[5]=(0,o.D2)(((...A)=>e.getgenerate&&e.getgenerate(...A)),["enter"])),maxlength:e.inputShow?0:9999,readonly:e.generateCheckbox,placeholder:e.$t("PrintboardUpload.inputContent1"),"onUpdate:modelValue":A[6]||(A[6]=A=>e.captionGeneration=A)},null,42,Wi),[[o.nr,e.captionGeneration]]),(0,n._)("div",{class:"generage_btn started_btn",onClick:A[7]||(A[7]=(0,o.iM)(((...A)=>e.getgenerate&&e.getgenerate(...A)),["stop"]))},(0,r.zw)(e.$t("PrintboardUpload.Generate")),1),(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.maximumLength")),1)],2),(0,n._)("div",Yi,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.generateList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["modal_imgItem Guide_1_2_9",[t?.checked?"active":"",e.driver__.driver?"showEvents":""]])},[(0,n._)("img",{src:t.imgUrl,onClick:(0,o.iM)((A=>e.generageAdd(t)),["stop"])},null,8,Xi),(0,n._)("div",{class:(0,r.C_)(["delete_like_file_block",[e.driver__.driver?"hideEvents":""]])},[t.like?((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"noLike")),["stop"])},null,8,$i)):((0,n.wg)(),(0,n.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"like")),["stop"])},null,8,Ji))],2),(0,n._)("div",{class:(0,r.C_)(["delete_like_file_block left",[e.driver__.driver?"hideEvents":""]])},[(0,n._)("i",{class:"fi fi-bs-expand-arrows-alt",onClick:A[8]||(A[8]=(0,o.iM)((A=>e.scaleImage()),["stop"]))})],2),(0,n._)("div",qi,[(0,n.Wm)(c,{checked:t.pin,"onUpdate:checked":e=>t.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("PrintboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])],2)))),256))]),(0,n.wy)((0,n._)("div",en,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]])],512),[[o.F8,3==e.openClick]])]),(0,n.Wm)(g,{ref:"scaleImage"},null,512),(0,n.Wm)(p,{ref:"Cropper",onHandleCropperSuccess:e.handleCropperSuccess,onCloseCropper:A[9]||(A[9]=A=>e.deletUploadFile()),cropperFileData:e.cropperFileData,isUpload:e.isUpload},null,8,["onHandleCropperSuccess","cropperFileData","isUpload"])],2)}const tn=e=>((0,n.dD)("data-v-cb715ee4"),e=e(),(0,n.Cn)(),e),nn={class:"collection_title"},rn={class:"collection_title_text"},on={class:"collection_modal_body"},sn={class:"cut_picture_left"},an={class:"cut_picture_body"},ln={class:"cur_picture_opterate"},cn=tn((()=>(0,n._)("span",{class:"icon iconfont icon-chexiao operate_icon"},null,-1))),dn=[cn],un=tn((()=>(0,n._)("span",{class:"icon iconfont icon-chexiao operate_icon icon_chexiao_sec"},null,-1))),hn=[un],gn=tn((()=>(0,n._)("span",{class:"operate_icon icon_font"},"-",-1))),pn=[gn],fn=tn((()=>(0,n._)("span",{class:"operate_icon icon_font"},"+",-1))),mn=[fn],Bn=tn((()=>(0,n._)("span",{class:"icon iconfont icon-shuaxin operate_icon"},null,-1))),wn=[Bn],vn={class:"cut_picture_right"},yn={class:"cur_picture_right_header"},Cn=tn((()=>(0,n._)("div",{class:"review_logo icon iconfont icon-yulan"},null,-1))),bn={class:"cut_picture_review_block"},_n={class:"cut_picture_review_item"},Qn=["src"];function Un(e,A,t,i,s,a){const l=(0,n.up)("VueCropper"),c=(0,n.up)("a-modal");return(0,n.wg)(),(0,n.j4)(c,{class:"modal_component cut_pricture_modal",visible:e.cutPicuterModal,"onUpdate:visible":A[8]||(A[8]=A=>e.cutPicuterModal=A),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,keyboard:!1,zIndex:999999,mask:!1},{default:(0,n.w5)((()=>[(0,n._)("div",nn,[(0,n._)("div",rn,[(0,n._)("div",null,(0,r.zw)(e.$t("Cropper.Cutpicture")),1)]),(0,n._)("div",{class:"header_right_block",onClick:A[2]||(A[2]=(0,o.iM)((()=>{}),["stop"]))},[(0,n._)("div",{class:"next_step_button",onClick:A[0]||(A[0]=(0,o.iM)((A=>e.finishCropper()),["stop"]))},(0,r.zw)(e.$t("Cropper.Finish")),1),(0,n._)("div",{class:"header_cancel_button",onClick:A[1]||(A[1]=(0,o.iM)((A=>e.cancleCropper()),["stop"]))},(0,r.zw)(e.$t("Cropper.Cancel")),1)])]),(0,n._)("div",on,[(0,n._)("div",sn,[(0,n._)("div",an,[(0,n.Wm)(l,{ref:"cropper",original:e.option.original,img:e.option.img,outputSize:e.option.size,outputType:e.option.outputType,"auto-crop":e.option.autoCrop,"auto-crop-width":e.option.autoCropWidth,"auto-crop-height":e.option.autoCropHeight,"center-box":e.option.centerBox,"can-move":e.option.canMove,"can-move-box":e.option.canMoveBox,onRealTime:e.realTime},null,8,["original","img","outputSize","outputType","auto-crop","auto-crop-width","auto-crop-height","center-box","can-move","can-move-box","onRealTime"])]),(0,n._)("div",ln,[(0,n._)("div",{class:"cur_picture_opterate_item",onClick:A[3]||(A[3]=A=>e.rotateLeft())},dn),(0,n._)("div",{class:"cur_picture_opterate_item",onClick:A[4]||(A[4]=A=>e.rotateRight())},hn),(0,n._)("div",{class:"cur_picture_opterate_item",onClick:A[5]||(A[5]=A=>e.changeScale(-1))},pn),(0,n._)("div",{class:"cur_picture_opterate_item",onClick:A[6]||(A[6]=A=>e.changeScale(1))},mn),(0,n._)("div",{class:"cur_picture_opterate_item",onClick:A[7]||(A[7]=A=>e.refreshCrop())},wn)])]),(0,n._)("div",vn,[(0,n._)("div",yn,[Cn,(0,n._)("div",null,(0,r.zw)(e.$t("Cropper.CropPreview")),1)]),(0,n._)("div",bn,[(0,n._)("div",_n,[(0,n._)("div",{class:"cut_picture_review_content",style:(0,r.j5)({width:e.previews.w+"px",height:e.previews.h+"px",overflow:"hidden"})},[(0,n._)("div",{style:(0,r.j5)(e.previews.div)},[(0,n._)("img",{class:"previews_image",style:(0,r.j5)(e.previews.img),src:e.previews.url},null,12,Qn)],4)],4)])])])])])),_:1},8,["visible"])}var Fn=t(2323),xn=(0,n.aZ)({props:["cropperFileData","isUpload"],components:{VueCropper:Fn.AK},setup(){let e=(0,n.f3)("driver__");return{driver__:e}},data(){return{cutPicuterModal:!1,option:{original:!1,img:"",size:1,full:!1,outputType:"png",autoCrop:!0,autoCropWidth:360,autoCropHeight:360,max:99999,centerBox:!0,canMove:!0,canMoveBox:!0},previews:{}}},methods:{rotateLeft(){let e=this.$refs.cropper;e.rotateLeft()},rotateRight(){let e=this.$refs.cropper;e.rotateRight()},refreshCrop(){let e=this.$refs.cropper;e.refresh()},changeScale(e){e=e||1;let A=this.$refs.cropper;A.changeScale(e)},realTime(e){this.previews=e},getOptionImg(e){this.option.img=e},changeShowModal(e){this.cutPicuterModal=e},finishCropper(){let e=this.$refs.cropper;e.getCropData((e=>{let A=(0,Le._x)(e,this.cropperFileData.name);this.$emit("handleCropperSuccess",{file:A,fileData:this.cropperFileData})}))},closeCropper(){this.cutPicuterModal=!1,this.option.img=""},cancleCropper(){this.cutPicuterModal=!1,this.option.img="",this.$emit("closeCropper")}}});const En=(0,Ke.Z)(xn,[["render",Un],["__scopeId","data-v-cb715ee4"]]);var kn=En,In=(0,n.aZ)({components:{Cropper:kn,Material:RA,Generate:Re,scaleImage:Oe.Z},setup(){let e=(0,Se.oR)(),A=(0,W.iH)([]),t=(0,W.iH)([]),i=(0,n.Fl)((()=>e.state.UploadFilesModule.moodboard)),r=(0,n.Fl)((()=>e.state.UploadFilesModule.printboard)),o=(0,W.iH)(1),s=(0,W.iH)(),a=(0,W.iH)([]),l=(0,W.iH)(!1),c=(0,W.iH)(!1),d=(0,W.iH)(),u=(0,n.f3)("driver__"),{t:h}=(0,Te.QT)(),g=(0,W.iH)();return{fileList:A,printImgList:t,moodBoards:i,printBoards:r,openClick:o,generateCheckbox:s,generateList:a,loadingShow:l,inputShow:c,inputTime:d,driver__:u,t:h,isTest:g}},computed:{getPinLength(){let e=0;for(let A of this.printBoards)A.pin&&e++;return e}},watch:{printBoards:{handler(e,A){}}},data(){return{swtich_type:"upload",indicator:(0,n.h)(xe.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,gender:"",level1Type:"Printboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,Se.oR)(),cropperFileData:{name:"",uid:""},currentFileNum:0,isUpload:!1,captionGeneration:"",printboardList:(0,n.Fl)((()=>(0,Se.oR)().state.UploadFilesModule.printboard))}},mounted(){this.token=(0,He.ej)("token")||"";let e=(0,He.ej)("isTest");this.isTest=JSON.parse(e)||"",this.uploadUrl=(0,Le.M$)(),this.driver__.driver?this.captionGeneration="Exit sign, door, sunset, ocean, surreal":this.captionGeneration=""},methods:{open(e){this.openClick=e;let A=this.$refs.Material;2==e&&A.init("Printboard"),3==e&&(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))},fileUploadChange(e){let A=e.file;A.id_=De.id++,A.type_={type1:"upload",type2:"Printboard"},A.pin=!1;let t=this.$refs.Cropper;if(1===this.currentFileNum){var i=new FileReader;i.onload=e=>{let A;A="object"===typeof e.target.result?window.URL.createObjectURL(new Blob([e.target.result])):e.target.result,t.getOptionImg(A)},i.readAsArrayBuffer(A.originFileObj),this.cropperFileData=A,t.changeShowModal(!0),(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))}else this.customRequest(A)},beforeUpload(e,A){const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;t||Ee.ZP.info(this.t("PrintboardUpload.jsContent1"));const i=e.size/1024/1024<2;if(i||Ee.ZP.info(this.t("PrintboardUpload.jsContent2")),!t||!i)return t&&i||ke.Z.LIST_IGNORE;this.currentFileNum=A.length},deleteFile(e){if("generate"==e.type_.type1||"material"==e.type_.type1)e.jsContent1=this.t("uploadFile.jsContent1",{maxImg:8}),this.store.commit("addGenerateMaterialFils",e);else{let A;this.fileList=this.store.state.UploadFilesModule.printboardFiles,this.store.state.UploadFilesModule.printboardFiles.forEach(((t,i)=>{t.id_==e.id_&&(A=i)})),this.fileList.splice(A,1),this.store.commit("setPrintboardFile",this.fileList)}},likeFile(e,A){if("like"==A){let A={generateDetailId:e.id,level1Type:"Printboard",level2Type:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Ie.V.axiosPost(Ie.V.httpUrls.generateLike,A).then((A=>{e.like=!0})).catch((e=>{}))}else{let A={generateDetailId:e.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Ie.V.axiosGet(Ie.V.httpUrls.generateDislike,{params:A}).then((A=>{e.like=!1})).catch((e=>{}))}},customRequest(e){let A={...this.upload,file:e.originFileObj},t=e.uid;Ie.V.axiosPost("/api/element/upload",A,{headers:{"Content-Type":"multipart/form-data"}}).then((e=>{if(e){for(let i of this.fileList)t===i.uid&&(i.status="done",i.imgUrl=e.url,i.pin=!1,i.id=e.id,i.resData=e);let A=this.fileList.filter((e=>"done"===e.status));this.store.commit("setPrintboardFile",A)}})).catch((e=>{let A=-1;this.fileList.forEach(((e,i)=>{t===e.uid&&(A=i)})),A>-1&&this.fileList.splice(A,1)}))},closeCropper(e){if(this.isUpload)return;if("error"==e){let e=-1;this.fileList.forEach(((A,t)=>{this.cropperFileData.uid===A.uid&&(e=t)})),e>-1&&this.fileList.splice(e,1)}let A=this.$refs.Cropper;A.closeCropper()},deletUploadFile(){let e=-1;this.fileList.forEach(((A,t)=>{this.cropperFileData.uid===A.uid&&(e=t)})),e>-1&&this.fileList.splice(e,1)},handleCropperSuccess(e){let{file:A,fileData:t}=e,i={...this.upload,file:A};if(this.isUpload)return;this.isUpload=!0;const r=Ee.ZP.loading("loading",0);Ie.V.axiosPost("/api/element/upload",i,{headers:{"Content-Type":"multipart/form-data"}}).then((e=>{for(let i of this.fileList)t.uid===i.uid&&(i.status="done",i.imgUrl=e.url,i.id=e.id,i.resData=e);let A=this.fileList.filter((e=>"done"===e.status));this.isUpload=!1,this.closeCropper("success"),this.cropperFileData={name:"",uid:""},this.store.commit("setPrintboardFile",A),r(),(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))})).catch((e=>{let A=-1;this.fileList.forEach(((e,i)=>{t.uid===e.uid&&(A=i)})),A>-1&&this.fileList.splice(A,1),this.cropperFileData={name:"",uid:""},this.isUpload=!1,this.closeCropper("error"),r()}))},recollection(){let e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.printboardFiles)),A={generate:[],material:[],moodboard:[]};e.forEach((e=>{"generate"==e.type_.type1?A.generate.push(e):"material"==e.type_.type1?A.material.push(e):A.moodboard.push(e)})),this.store.commit("setPrintboardGenerateFiles",A.generate),this.store.commit("setPrintboardMaterialFiles",A.material),this.store.commit("setPrintboardFile",A.moodboard),this.fileList=A.moodboard,this.store.commit("setPrintboardFile",this.fileList)},confirmSelect(e){for(let A of e){let e={imgUrl:A.url,resData:A,pin:!1,id:A.id,status:"done"};if(15==this.fileList.length){Ee.ZP.warning(this.t("PrintboardUpload.jsContent3"));break}this.fileList.push(e)}this.store.commit("setPrintboardFile",this.fileList)},getgenerateCheckbox(e){this.generateCheckbox=e},ifMaximumLength(){clearTimeout(this.inputTime),this.inputTime=setTimeout((()=>{this.captionGeneration?.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},getgenerate(){if(this.isTest)return void Ee.ZP.warning(this.t("isTest.available"));let e=this.$refs.Generate,A=e.checkbox.filter((e=>e.type))[0].name;if("Generate"==e.printModel.num)return void this.generatePrint();let t={generateType:A,designType:"",collectionElementId:e?.collectionElementid,level1Type:e.upload.level1Type,level2Type:"",text:this.captionGeneration,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:e.printModel.num,gender:""};if("image"==A){if(!e?.collectionElementid)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent4"));t.text=""}else if("text"==A){if(t.collectionElementId="",t.level2Type="",!this.captionGeneration)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent6"));{let e=this.captionGeneration.split(/\s+/).length;if(e>75)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent5"))}}else if("text-image"==A){if(!e?.collectionElementid)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent4"));if(!this.captionGeneration)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent6"));{let e=this.captionGeneration.split(/\s+/).length;if(e>75)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent5"))}}this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.sketchAndPrintGenerate,t).then((e=>{if(e){let A;this.generateList=[],e.generatedCollectionItems.forEach(((t,i)=>{A={id:t.generateItemId,imgUrl:t.generateItemUrl,id_:De.id++,like:e.generatedCollectionItems[i].isLiked},this.generateList.push(A),this.loadingShow=!1})),(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))}})).catch((e=>{this.loadingShow=!1}))},randomRange(e,A,t){let i=Math.floor(Math.random()*(A-e))+e;while(i===t)i=Math.floor(Math.random()*(A-e))+e;return i},generatePrint(){let e={};if(this.moodBoards.length){let A=this.randomRange(0,this.moodBoards.length,-1),t=-2;if(this.getPinLength)if(1===this.getPinLength)this.printBoards.forEach(((e,A)=>{e.pin&&(t=A)}));else{let e=[];this.printBoards.forEach(((A,t)=>{A.pin&&e.push(t)})),t=this.randomRange(0,e.length,-1)}else t=this.randomRange(0,this.printBoards.length,-1);e={select1Id:this.moodBoards[A].resData.id,select2Id:this.printBoards[t].id}}else{let A=-1,t=-2;if(this.getPinLength)if(1===this.getPinLength)this.printBoards.forEach(((e,t)=>{e.pin&&(A=t)})),t=this.randomRange(0,this.printBoards.length,A);else{let e=[];this.printBoards.forEach(((A,t)=>{A.pin&&e.push(t)})),A=this.randomRange(0,e.length,-1),t=this.randomRange(0,this.printBoards.length,e[A])}else A=this.randomRange(0,this.printBoards.length,-1),t=this.randomRange(0,this.printBoards.length,A);e={select1Id:this.printBoards[A].id,select2Id:this.printBoards[t].id}}e.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.elementGeneratePrint,e).then((e=>{if(e){this.generateList=[];let A={id:e.generateItemId,imgUrl:e.generateItemUrl,id_:De.id++,like:e.isLiked};this.generateList.push(A),this.loadingShow=!1}})).catch((e=>{this.loadingShow=!1}))},scaleImage(){let e=this.$refs.scaleImage;e.init(this.generateList)},generageAdd(e){e.type_={type1:"generate",type2:"Printboard"},e.resData=JSON.parse(JSON.stringify(e)),e.jsContent1=this.t("uploadFile.jsContent1",{maxImg:8}),this.store.commit("addGenerateMaterialFils",e),this.driver__.driver&&Me.RX.moveNext()}}});const Sn=(0,Ke.Z)(In,[["render",An],["__scopeId","data-v-508e7d1b"]]);var Dn=Sn;const Hn={class:"colorboard_upload_modal"},Ln={class:"modal_layout"},On={class:"modal_text"},Mn={class:"modal_img"},Tn=["onClick"],Nn={class:"colorboard_upload_right"},Kn={class:"upload_right_content"},Pn={class:"right_content_line"},Rn={class:"upload_right_header"},Vn=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),Gn={class:"color_setting_block"},jn={class:"right_content_line right_content_line_upload"},zn={class:"upload_right_header"},Zn=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),Wn={class:"upload_centetn"},Yn={class:"upload_item Guide_1_10"},Xn={class:"upload_file_item_content"},Jn={class:"upload_file_item_content"},$n=["src"],qn=(0,n._)("div",{class:"upload_tip_block"},[(0,n._)("i",{class:"fi fi-rr-picture"})],-1),er={class:"upload_color"},Ar=["onClick"],tr=["title"],ir={class:"right_content_line"},nr={class:"upload_right_header"},rr=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),or={class:"get_color_block"},sr=(0,n._)("span",{class:"icon iconfont icon-huoquduixiang"},null,-1),ar={class:"get_color_des"},lr=["title"];function cr(e,A,t,i,s,a){const l=(0,n.up)("Chrome"),c=(0,n.up)("a-spin"),d=(0,n.up)("a-upload");return(0,n.wg)(),(0,n.iD)("div",Hn,[(0,n._)("div",Ln,[(0,n._)("div",On,[(0,n._)("div",null,(0,r.zw)(e.$t("ColorboardUpload.Thumbnail")),1)]),(0,n._)("div",Mn,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.colorList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["modal_img_item",[1==t?"Guide_1_11_1":"",e.driver__.driver?"showEvents":""]]),key:A},[(0,n._)("div",{onClick:i=>e.selectColorItem(t,A),class:(0,r.C_)(["upload_color",e.selectIndex===t?"select_upload_color":""]),style:(0,r.j5)({background:`rgba(${A?.r},${A?.g},${A?.b},${A?.a})`})},null,14,Tn)],2)))),128)),(0,n._)("div",null,[(0,n._)("span",{class:"started_btn",onClick:A[0]||(A[0]=(...A)=>e.clearCurrentColor&&e.clearCurrentColor(...A))},(0,r.zw)(e.$t("ColorboardUpload.Clear")),1)])])]),(0,n._)("div",Nn,[(0,n._)("div",Kn,[(0,n._)("div",Pn,[(0,n._)("div",Rn,[Vn,(0,n._)("span",null,(0,r.zw)(e.$t("ColorboardUpload.Palette")),1)]),(0,n._)("div",Gn,[(0,n.Wm)(l,{class:"chrome_color",modelValue:e.selectColor,"onUpdate:modelValue":A[1]||(A[1]=A=>e.selectColor=A)},null,8,["modelValue"])])]),(0,n._)("div",jn,[(0,n._)("div",zn,[Zn,(0,n._)("span",null,(0,r.zw)(e.$t("ColorboardUpload.UploadImage")),1)]),(0,n._)("div",Wn,[(0,n._)("div",Yn,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,(t=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:t},[(0,n.wy)((0,n._)("div",Xn,[(0,n.Wm)(c,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"done"!==t.status]]),(0,n.wy)((0,n._)("div",Jn,[(0,n._)("img",{src:t?.imgUrl,class:"upload_img",ref_for:!0,ref:"colorImage"},null,8,$n),(0,n._)("div",{class:"delete_file_block",onClick:A[2]||(A[2]=A=>e.deleteFile(e.index))},"Delete")],512),[[o.F8,"done"===t.status]])])))),128)),(0,n.wy)((0,n.Wm)(d,{"list-type":"picture-card",customRequest:function(){},onChange:e.fileUploadChange,"before-upload":e.beforeUpload,accept:".jpg,.png,.jpeg,.bmp"},{default:(0,n.w5)((()=>[qn])),_:1},8,["customRequest","onChange","before-upload"]),[[o.F8,e.fileList.length<1]])]),(0,n._)("div",er,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.selectColorList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{key:A,onClick:t=>e.setUplpadColor(A),class:(0,r.C_)(["upload_color_item",[0==t?"Guide_1_11":"",1==t?"Guide_1_11_2":""]])},[(0,n._)("div",{class:"upload_color_item_bg",style:(0,r.j5)({"background-color":`rgba(${A.rgba.r},${A.rgba.g},${A.rgba.b},${A.rgba.a})`})},null,4),(0,n._)("img",{src:"#",title:e.pantongNameList[t]},null,8,tr)],10,Ar)))),128))])])]),(0,n._)("div",ir,[(0,n._)("div",nr,[rr,(0,n._)("span",null,(0,r.zw)(e.$t("ColorboardUpload.ColorCode")),1)]),(0,n._)("div",or,[(0,n.wy)((0,n._)("input",{class:"get_color_input",placeholder:"tcx value (e.g.: 19-4052)","onUpdate:modelValue":A[3]||(A[3]=A=>e.tcxColor=A),onKeydown:A[4]||(A[4]=(0,o.D2)((A=>e.getTcxColor()),["enter"]))},null,544),[[o.nr,e.tcxColor]]),(0,n._)("div",{class:"get_color_button",onClick:A[5]||(A[5]=A=>e.getTcxColor())},[sr,(0,n._)("span",ar,(0,r.zw)(e.$t("ColorboardUpload.ExtractColor")),1)]),(0,n.wy)((0,n._)("div",{class:"get_color_bg",onClick:A[6]||(A[6]=A=>e.setUplpadColor(e.reviewColor)),style:(0,r.j5)({"background-color":`rgba(${e.getSelectRGB(e.reviewColor).r},${e.getSelectRGB(e.reviewColor).g},${e.getSelectRGB(e.reviewColor).b},${e.getSelectRGB(e.reviewColor).a})`})},[(0,n._)("img",{src:"#",title:e.pantongName},null,8,lr)],4),[[o.F8,e.getColorBg]])])])])])])}var dr=t(1125),ur=t(6243),hr=t.n(ur);t(1703);function gr(e,A,t){const i=e,n=[];for(let r,o,s,a,l,c=0;c<A;c+=t)r=4*c,o=i[r+0],s=i[r+1],a=i[r+2],l=i[r+3],("undefined"===typeof l||l>=125)&&(o>250&&s>250&&a>250||n.push([o,s,a]));return n}function pr(e){let{colorCount:A,quality:t}=e;if("undefined"!==typeof A&&Number.isInteger(A)){if(1===A)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");A=Math.max(A,2),A=Math.min(A,20)}else A=10;return("undefined"===typeof t||!Number.isInteger(t)||t<1)&&(t=10),{colorCount:A,quality:t}}var fr={createPixelArray:gr,validateOptions:pr};
/*
* Color Thief v2.3.2
* by Lokesh Dhakar - http://www.lokeshdhakar.com
*
* Thanks
* ------
* Nick Rabinowitz - For creating quantize.js.
* John Schulz - For clean up and optimization. @JFSIII
* Nathan Spady - For adding drag and drop support to the demo page.
*
* License
* -------
* Copyright Lokesh Dhakar
* Released under the MIT license
* https://raw.githubusercontent.com/lokesh/color-thief/master/LICENSE
*
* @license
*/
const mr=function(e){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=e.naturalWidth,this.height=this.canvas.height=e.naturalHeight,this.context.drawImage(e,0,0,this.width,this.height)};mr.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var Br=function(){};Br.prototype.getColor=function(e,A=10){const t=this.getPalette(e,5,A),i=t[0];return i},Br.prototype.getPalette=function(e,A,t){const i=fr.validateOptions({colorCount:A,quality:t}),n=new mr(e),r=n.getImageData(),o=n.width*n.height,s=fr.createPixelArray(r.data,o,i.quality),a=hr()(s,i.colorCount),l=a?a.palette():null;return l},Br.prototype.getColorFromUrl=function(e,A,t){const i=document.createElement("img");i.addEventListener("load",(()=>{const n=this.getPalette(i,5,t),r=n[0];A(r,e)})),i.src=e},Br.prototype.getImageData=function(e,A){let t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="arraybuffer",t.onload=function(){if(200==this.status){let e=new Uint8Array(this.response);i=e.length;let t=new Array(i);for(let A=0;A<e.length;A++)t[A]=String.fromCharCode(e[A]);let n=t.join(""),r=window.btoa(n);A("data:image/png;base64,"+r)}},t.send()},Br.prototype.getColorAsync=function(e,A,t){const i=this;this.getImageData(e,(function(e){const n=document.createElement("img");n.addEventListener("load",(function(){const e=i.getPalette(n,5,t),r=e[0];A(r,this)})),n.src=e}))};var wr=Br,vr=(0,n.aZ)({components:{Chrome:dr.Chrome,Slider:dr.Slider,Sketch:dr.Sketch},setup(){let e=(0,W.iH)([]),A=[{},{},{},{},{},{},{},{}],t=(0,W.iH)({rgba:{}}),i=(0,W.iH)({}),r=(0,n.f3)("driver__"),{t:o}=(0,Te.QT)();return{fileList:e,colorList:A,selectColor:t,selectColorList:i,driver__:r,t:o}},watch:{selectColor:{handler(e,A){this.colorList[this.selectIndex]=e.rgba;let t=this.colorList.filter((e=>e&&Object.keys(e).length));this.setColorboardList(t)},immediate:!0}},computed:{getSelectRGB(e){return e=>{let A=e.rgba,t={r:A?.r,g:A?.g,b:A?.b,a:A?.a,hex:void 0==e.hex?"#FFFFFF":e.hex};return 1==t.a&&0==t.a||(t.hex=e.hex8?e.hex8:e.hex),t}}},data(){return{reviewColor:{},selectIndex:0,tcxColor:"",pantongName:"",pantongNameList:[],indicator:(0,n.h)(xe.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,gender:"",level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,Se.oR)(),colorPickerVisible:!0,colorBlockHex:!0,getColorBg:!1}},mounted(){this.token=(0,He.ej)("token")||"",this.uploadUrl=(0,Le.M$)();const e=document.createElement("div");e.classList.add("vc-sketch-color-wrap");let A=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("vc-chrome-fields-wrap")[0];A.appendChild(e),e.addEventListener("click",(async()=>{try{const e=new EyeDropper,A=await e.open();let t=A.sRGBHex.replace("#","");const i=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);this.selectColor={rgba:{r:i,g:n,b:r,a:1},hex:A.sRGBHex}}catch(e){Ee.ZP.info(this.t("ColorboardUpload.jsContent1"))}}),!1)},methods:{clearSelectColor(){},selectColorItem(e,A){let t;t=A?.r?this.rgbaToHex([A.r,A.g,A.b,A.a?A.a:1]):"#FFFFFF",this.selectIndex=e,this.tcxColor="",this.pantongName="",this.pantongNameList=[],this.reviewColor={},this.getColorBg=!1,this.driver__.driver&&Me.RX.moveNext()},getTcxColor(){if(!this.tcxColor)return;let e=/^\d{2}-\d{4}$/;e.test(this.tcxColor)?Ie.V.axiosGet(Ie.V.httpUrls.getRgbByTcx+"?tcx="+this.tcxColor).then((e=>{if(e&&e.name){let A=this.rgbaToHex([e.r,e.g,e.b,e.a?e.a:1]);this.reviewColor=e?.r+""?{rgba:{r:e.r,g:e.g,b:e.b,a:1},hex:A}:{hex:""},this.selectColor=this.reviewColor,this.colorList[this.selectIndex]={r:e.r,g:e.g,b:e.b},this.pantongName=e.name;let t=this.colorList.filter((e=>Object.keys(e).length));this.setColorboardList(t),this.getColorBg=!0}else Ee.ZP.info(this.t("ColorboardUpload.jsContent2"))})):Ee.ZP.info(this.t("ColorboardUpload.jsContent5"))},clearCurrentColor(){this.selectColor={},this.reviewColor={},this.pantongName="",this.tcxColor=""},fileUploadChange(e){let A=e.file,t=A.originFileObj;var i=new FileReader;i.onload=e=>{let t;t="object"===typeof e.target.result?window.URL.createObjectURL(new Blob([e.target.result])):e.target.result,A.imgUrl=t,A.status="done",this.fileList.push(A),setTimeout((async()=>{const e=new Image;let t=this.$refs.colorImage;e.src=t[0].src;const i=new wr;e.onload=async()=>{t[0];let r,o=[],s=i.getPalette(e,9),a={max:5,min:5};await De.setColor(s,A.imgUrl,a).then((e=>{e&&(r=e.ratio)})),r.sort(((e,A)=>{var t=e.ratio,i=A.ratio;return i-t})),s=[],r.forEach((e=>{s.push(e.rgb)})),s=s.join("&"),s=s.split("&");let l=s[0].split(","),c=this.rgbaToHex(l),d=[];new Set(s).forEach((e=>{d.push(e.split(","))})),d.forEach((e=>{let A=this.rgbaToHex(e);o.push({rgba:{r:e[0],g:e[1],b:e[2],a:1},hex:A})})),this.selectColorList=o,this.getHsvColor(o),this.selectColor={rgba:{r:l[0],g:l[1],b:l[2],a:1},hex:c},(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))}}),100)},i.readAsDataURL(t)},rgbaToHex(e){let A="#";return e.forEach(((e,t)=>{A+=3==t?Math.round(255*e).toString(16):Number(e).toString(16).padStart(2,"0")})),A},setUplpadColor(e){this.selectColor="",(0,n.Y3)().then((()=>{this.selectColor=e,this.driver__.driver&&Me.RX.moveNext()}))},beforeUpload(e){const A="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;A||Ee.ZP.info(this.t("ColorboardUpload.jsContent3"));const t=e.size/1024/1024<5;return t||Ee.ZP.info(this.t("ColorboardUpload.jsContent4")),A&&t||ke.Z.LIST_IGNORE},deleteFile(e){this.fileList.splice(e,1),this.selectColorList=[]},getHsvColor(e){this.pantongName="";let A=[];e.forEach(((e,t)=>{let i=[e.rgba.r,e.rgba.g,e.rgba.b,e.rgba.a];A.push(i)}));let t=[];A.forEach((e=>{let A=(0,Le.py)(e);0==t.length||t[0].h;let i={h:Number(A[0]),s:Number(A[1]),v:Number(A[2])};t.push(i)})),Ie.V.axiosPost(Ie.V.httpUrls.getRgbByHsvBatch,t).then((e=>{e&&e.forEach((e=>{this.pantongNameList.push(e.name)}))})).catch((e=>{}))},setColorboardList(e){let A=e.map((e=>{let A={id:"",name:"",rgbValue:e};return A}));this.store.commit("setColorboardList",A)},recollection(){let e,A=this.store.state.UploadFilesModule.allBoardData.colorBoards;A.forEach(((A,t)=>{e=this.rgbaToHex([A.rgbValue.r,A.rgbValue.g,A.rgbValue.b,A.rgbValue.a?A.rgbValue.a:1]),this.colorList[t]=A.rgbValue})),this.selectColor={rgba:this.colorList[0],hex:e},this.store.commit("setColorboardList",A)}}});const yr=(0,Ke.Z)(vr,[["render",cr]]);var Cr=yr;const br=e=>((0,n.dD)("data-v-f3d4e142"),e=e(),(0,n.Cn)(),e),_r={class:"sketchboard_upload_modal"},Qr={class:"modal_left"},Ur={class:"sketchboard_body"},Fr={class:"upload_img_body scroll_style"},xr={class:"upload_item"},Er={class:"upload_file_item_content"},kr={class:"upload_file_item_content"},Ir=["src"],Sr={class:"operate_file_block"},Dr={class:"select_img_type"},Hr=["onClick"],Lr={class:"category_list"},Or=["onClick"],Mr=["onClick"],Tr=br((()=>(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),Nr=[Tr],Kr={class:"pin_block"},Pr={class:"upload_file_item upload_component"},Rr={class:"upload_tip_block"},Vr=br((()=>(0,n._)("i",{class:"fi fi-br-upload"},null,-1))),Gr=[Vr],jr={class:"upload_max_tip"},zr=br((()=>(0,n._)("span",{class:"icon iconfont icon-zhuyi"},null,-1))),Zr={class:"modal_right"},Wr={class:"modal_layout"},Yr={class:"modal_text"},Xr={class:"modal_img modal_img_x"},Jr={class:"mousewheel"},$r=["onClick"],qr=br((()=>(0,n._)("div",{class:"checked"},[(0,n._)("i",{class:"fi fi-rr-trash"})],-1))),eo={class:"modal_accomplish"},Ao=["maxlength","readonly","placeholder"],to={class:"modal_img"},io=["src","onClick"],no={class:"operate_file_block"},ro={class:"select_img_type"},oo=["onClick"],so=["onClick"],ao={class:"delete_like_file_block"},lo=["onClick"],co=["onClick"],uo={class:"pin_block"},ho={class:"mark_loading"};function go(e,A,t,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-checkbox"),d=(0,n.up)("a-upload"),u=(0,n.up)("Material"),h=(0,n.up)("Generate"),g=(0,n.up)("scaleImage"),p=(0,n.Q2)("lazy"),f=(0,n.Q2)("mousewheel");return(0,n.wg)(),(0,n.iD)("div",_r,[(0,n._)("div",Qr,[(0,n._)("div",{class:(0,r.C_)(["switch_type_list",[e.driver__.driver?"showEvents":""]])},[(0,n._)("div",{onClick:A[0]||(A[0]=(0,o.iM)((A=>e.open(1)),["stop"])),class:(0,r.C_)(["switch_type_item",[1==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.Upload")),1)],2),(0,n._)("div",{onClick:A[1]||(A[1]=(0,o.iM)((A=>e.open(2)),["stop"])),class:(0,r.C_)(["switch_type_item",[2==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.Library")),1)],2),(0,n._)("div",{onClick:A[2]||(A[2]=(0,o.iM)((A=>e.open(3)),["stop"])),class:(0,r.C_)(["switch_type_item Guide_1_9",[3==e.openClick?"select_swtich":"",e.driver__.driver?"showEvents":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.Generate")),1)],2)],2),(0,n.wy)((0,n._)("div",Ur,[(0,n._)("div",Fr,[(0,n._)("div",xr,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:A},[(0,n.wy)((0,n._)("div",Er,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===A?.status]]),(0,n.wy)((0,n._)("div",kr,[(0,n._)("img",{src:A?.imgUrl,class:"upload_img"},null,8,Ir),(0,n._)("div",Sr,[(0,n._)("div",Dr,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((t=>e.showFileCategory(A)),["stop"])},[(0,n.Uk)((0,r.zw)(A.categoryValue)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",A.categoryShow?"icon_rotate":""])},null,2)],8,Hr),(0,n.wy)((0,n._)("div",Lr,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchCatecoryList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",A.category==t.value?"select_category_item":""]),key:i,onClick:i=>e.selectFileCategory(A,t)},(0,r.zw)(t.value),11,Or)))),128))],512),[[o.F8,A.categoryShow]])])]),(0,n._)("div",{class:"delete_like_file_block",onClick:(0,o.iM)((t=>e.deleteFile(A)),["stop"])},Nr,8,Mr)],512),[[o.F8,"done"===A?.status]]),(0,n.wy)((0,n._)("div",Kr,[(0,n.Wm)(c,{checked:A.pin,"onUpdate:checked":e=>A.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("SketchboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])],512),[[o.F8,"done"===A?.status]])])))),128)),(0,n.wy)((0,n._)("div",Pr,[(0,n.Wm)(d,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},multiple:!e.driver__.driver,"before-upload":e.beforeUpload,headers:{Authorization:e.token},"file-list":e.fileList,"onUpdate:file-list":A[3]||(A[3]=A=>e.fileList=A),maxCount:20-e.sketchboardList.length+e.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:A[4]||(A[4]=A=>e.fileUploadChange(A))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",Rr,Gr,512),[[o.F8,e.sketchboardList.length<20]])])),_:1},8,["action","data","multiple","before-upload","headers","file-list","maxCount"])],512),[[o.F8,e.sketchboardList.length<20]])])]),(0,n._)("div",jr,[zr,(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.Maximum",{maxImg:20})),1)])],512),[[o.F8,1==e.openClick]]),(0,n.wy)((0,n.Wm)(u,{ref:"Material",msg:"Sketchboard",onConfirmSelect:e.confirmSelect,disignTypeList:e.sketchCatecoryList},null,8,["onConfirmSelect","disignTypeList"]),[[o.F8,2==e.openClick]]),(0,n.wy)((0,n.Wm)(h,{ref:"Generate",msg:"Sketchboard",sketchCatecoryList:e.sketchCatecoryList,onGenerateCheckbox:e.getgenerateCheckbox},null,8,["sketchCatecoryList","onGenerateCheckbox"]),[[o.F8,3==e.openClick]])]),(0,n._)("div",Zr,[(0,n._)("div",Wr,[(0,n._)("div",Yr,[(0,n._)("div",null,(0,r.zw)(e.$t("SketchboardUpload.Thumbnail")),1)]),(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",Xr,[(0,n._)("div",Jr,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchboardList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:A,onClick:t=>e.deleteFile(A)},[(0,n.wy)((0,n._)("img",null,null,512),[[p,A.imgUrl]]),qr],8,$r)))),128))])])),[[f]])]),(0,n.wy)((0,n._)("div",eo,[(0,n._)("div",{class:(0,r.C_)(["input_box Guide_1_9_2",[e.inputShow?"active":"",e.driver__.driver?"showEvents":""]])},[(0,n.wy)((0,n._)("input",{class:(0,r.C_)(["search_input",{forbidden:e.generateCheckbox}]),onInput:A[5]||(A[5]=(...A)=>e.ifMaximumLength&&e.ifMaximumLength(...A)),onKeydown:A[6]||(A[6]=(0,o.D2)((A=>e.getgenerate()),["enter"])),maxlength:e.inputShow?0:9999,readonly:e.generateCheckbox,placeholder:e.$t("SketchboardUpload.inputContent1"),"onUpdate:modelValue":A[7]||(A[7]=A=>e.captionGeneration=A)},null,42,Ao),[[o.nr,e.captionGeneration]]),(0,n._)("div",{class:"generage_btn started_btn",onClick:A[8]||(A[8]=(0,o.iM)(((...A)=>e.getgenerate&&e.getgenerate(...A)),["stop"]))},"Generate"),(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.maximumLength")),1)],2),(0,n._)("div",to,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.generateList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["modal_imgItem Guide_1_13_2",[e.driver__.driver?"showEvents":"",t?.checked?"active":""]])},[(0,n._)("img",{src:t.imgUrl,onClick:A=>e.generageAdd(t)},null,8,io),(0,n._)("div",no,[(0,n._)("div",ro,[(0,n._)("div",{class:"select_category Guide_1_13",onClick:(0,o.iM)((A=>e.showFileCategory(t)),["stop"])},[(0,n.Uk)((0,r.zw)(t.categoryValue)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",t.categoryShow?"icon_rotate":""])},null,2)],8,oo),(0,n.wy)((0,n._)("div",{class:(0,r.C_)(["category_list Guide_1_13_1",[e.driver__.driver?"showEvents":""]])},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchCatecoryList,((A,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",t.category==A.name?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(t,A)),["stop"])},(0,r.zw)(A.value),11,so)))),128))],2),[[o.F8,t.categoryShow]])])]),(0,n._)("div",ao,[t.like?((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"noLike")),["stop"])},null,8,co)):((0,n.wg)(),(0,n.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"like")),["stop"])},null,8,lo))]),(0,n._)("div",{class:(0,r.C_)(["delete_like_file_block left",[e.driver__.driver?"hideEvents":""]])},[(0,n._)("i",{class:"fi fi-bs-expand-arrows-alt",onClick:A[9]||(A[9]=(0,o.iM)((A=>e.scaleImage()),["stop"]))})],2),(0,n._)("div",uo,[(0,n.Wm)(c,{checked:t.pin,"onUpdate:checked":e=>t.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("SketchboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])],2)))),256))]),(0,n.wy)((0,n._)("div",ho,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]])],512),[[o.F8,3==e.openClick]])]),(0,n.Wm)(g,{ref:"scaleImage"},null,512)])}var po=(0,n.aZ)({components:{Material:RA,Generate:Re,scaleImage:Oe.Z},setup(){let e=(0,W.iH)([]),A=(0,W.iH)(1),t=(0,W.iH)([]),i=(0,Se.oR)(),r=(0,W.iH)(),o=(0,W.iH)(!1),s=(0,n.Fl)((()=>i.state.Workspace.workspacePosition)),a=(0,W.iH)({}),l=(0,W.iH)(!1),c=(0,W.iH)(),d=(0,n.Fl)((()=>i.state.UploadFilesModule.sketchboard)),{t:u}=(0,Te.QT)(),h=(0,n.f3)("driver__"),g=(0,W.iH)();return{fileList:e,openClick:A,generateList:t,store:i,generateCheckbox:r,loadingShow:o,sketchCatecoryList:s,workspace:a,inputShow:l,inputTime:c,sketchboardList:d,t:u,driver__:h,isTest:g}},data(){return{swtich_type:"upload",indicator:(0,n.h)(xe.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Sketchboard",gender:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",captionGeneration:"",workspaceCom:{}}},computed:{getSketchLabel(e){return e=>{let A="";for(let t of this.sketchCatecoryList)if(t.value===e){A=t.label;break}return A}}},directives:{mousewheel:{mounted(e){let A=document.getElementsByClassName("modal_img_x"),t=()=>{},i=()=>{};A.forEach((e=>{e.addEventListener("mouseover",t),e.addEventListener("mouseleave",i)})),e.addEventListener("wheel",(A=>{let t=0;t=A.deltaY>0?25:-25,e.scrollBy(t,0)}),!0)}}},watch:{workspaceCom(e,A){this.workspace=e,this.upload.gender=e.sexEnum.name},sketchboardList:{handler(e,A){e.length>=2&&this.driver__.driver&&e.length!=A.length&&this.driver__.driver}},driver__:{handler(e,A){e.index>=15&&e.index<=16&&this.driver__.driver}}},mounted(){this.token=(0,He.ej)("token")||"";let e=(0,He.ej)("isTest");this.isTest=JSON.parse(e),this.uploadUrl=(0,Le.M$)(),this.workspaceCom=(0,n.Fl)((()=>this.store?.state?.Workspace?.workspace)),this.driver__.driver?this.captionGeneration="A detailed sketch of an elegant blouse with a high neck, flowing sleeves, and lace trim, highlighting texture and style.":this.captionGeneration=""},methods:{open(e){if(this.openClick=e,2==e){let e=this.$refs.Material;e.init("Sketchboard")}else 3==e&&(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))},scaleImage(){let e=this.$refs.scaleImage;e.init(this.generateList)},getgenerateCheckbox(e){this.generateCheckbox=e},fileUploadChange(e){let A=e.file,t=!0;if("done"===A.status){let e=JSON.parse(A.xhr.response);if(0==e.errCode){A.imgUrl=e.data.url,A.resData=e.data,A.categoryValue=this.sketchCatecoryList?.[0]?.value,A.category=this.sketchCatecoryList?.[0]?.name,A.categoryShow=!1,A.id_=De.id++,A.id=e.data.id,A.type_={type1:"upload",type2:"Sketchboard"};let t=this.fileList.filter((e=>"done"===e.status));this.store.commit("setSketchboardFile",t)}else t=!1}else"error"===A.status&&(t=!1);if(!t){let e=-1,t=JSON.parse(A.xhr.response);this.fileList.forEach(((t,i)=>{A.uid===t.uid&&(e=i)})),e>-1&&this.fileList.splice(e,1),Ee.ZP.warning(t.errMsg)}},beforeUpload(e){const A="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;A||Ee.ZP.info(this.t("SketchboardUpload.jsContent2"));const t=e.size/1024/1024<2;return t||Ee.ZP.info(this.t("SketchboardUpload.jsContent3")),A&&t||ke.Z.LIST_IGNORE},showFileCategory(e){e.categoryShow=!0,(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()})),document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(e,A){if(3==this.openClick){for(let e of this.generateList)e.categoryShow=!1;e.categoryValue=A.value,e.category=A.name,this.driver__.driver&&Me.RX.moveNext()}else{for(let e of this.fileList)e.categoryShow=!1;e.categoryValue=A.value,e.category=A.name,this.store.commit("setSketchboardFile",this.fileList),(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))}},hiddenFileCategory(){if(3==this.openClick)for(let e of this.generateList)e.categoryShow=!1;else for(let e of this.fileList)e.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},ifMaximumLength(){clearTimeout(this.inputTime);let e=document.getElementsByClassName("sketchboard_upload_modal")[0].getElementsByClassName("input_box")[0];e.getElementsByClassName("search_input")[0];this.inputTime=setTimeout((()=>{this.captionGeneration?.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},deleteFile(e){if("generate"==e?.type_?.type1||"material"==e?.type_?.type1)e.jsContent1=this.t("uploadFile.jsContent1",{maxImg:20}),this.store.commit("addGenerateMaterialFils",e);else{let A;this.fileList=this.store.state.UploadFilesModule.sketchboardFiles,this.store.state.UploadFilesModule.sketchboardFiles.forEach(((t,i)=>{t.id_==e.id_&&(A=i)})),this.fileList.splice(A,1),this.store.commit("setSketchboardFile",this.fileList)}},likeFile(e,A){if("like"==A){let A={generateDetailId:e.id,level1Type:"Sketchboard",level2Type:e.category,gender:this.workspace.sex,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Ie.V.axiosPost(Ie.V.httpUrls.generateLike,A).then((A=>{e.like=!0})).catch((e=>{}))}else{let A={generateDetailId:e.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Ie.V.axiosGet(Ie.V.httpUrls.generateDislike,{params:A}).then((A=>{e.like=!1})).catch((e=>{}))}},recollection(){let e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.sketchboardFiles)),A={generate:[],material:[],moodboard:[]};e.forEach((e=>{"generate"==e.type_.type1?A.generate.push(e):"material"==e.type_.type1?A.material.push(e):A.moodboard.push(e)})),this.store.commit("setSketchboardGenerateFiles",A.generate),this.store.commit("setSketchboardMaterialFiles",A.material),this.store.commit("setSketchboardFile",A.moodboard),this.fileList=A.moodboard},confirmSelect(e){for(let A of e){let e={imgUrl:A.url,resData:A,pin:!1,status:"done",category:A.level2Type||"Outwear",categoryShow:!1};if(15==this.fileList.length){Ee.ZP.warning(this.t("SketchboardUpload.jsContent4"));break}this.fileList.push(e)}this.store.commit("setSketchboardFile",this.fileList)},getgenerate(){if(this.isTest)return void Ee.ZP.warning(this.t("isTest.available"));let e=this.$refs.Generate,A=e.checkbox.filter((e=>e.type))[0].name,t={generateType:A,designType:"",collectionElementId:e?.collectionElementid,level1Type:e.upload.level1Type,level2Type:e.level2Type,text:this.captionGeneration,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:1,gender:this.workspace.sex};if("image"==A){if(!e?.collectionElementid)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent4"));t.text=""}else if("text"==A){if(t.collectionElementId="",t.level2Type="",!this.captionGeneration)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent6"));{let e=this.captionGeneration.split(/\s+/).length;if(e>75)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent5"))}}else if("text-image"==A){if(!e?.collectionElementid)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent4"));if(!this.captionGeneration)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent6"));{let e=this.captionGeneration.split(/\s+/).length;if(e>75)return void Ee.ZP.info(this.t("PrintboardUpload.jsContent5"))}}this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.sketchAndPrintGenerate,t).then((A=>{if(A){let t;this.generateList=[],A.generatedCollectionItems.forEach(((i,n)=>{t={id:i.generateItemId,imgUrl:i.generateItemUrl,category:e.level2Type?e.level2Type:this.sketchCatecoryList[0].name,categoryValue:e.level2Type?e.level2Type:this.sketchCatecoryList[0].value,id_:De.id++,like:A.generatedCollectionItems[n].isLiked},this.generateList.push(t),this.loadingShow=!1})),(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))}})).catch((e=>{this.loadingShow=!1}))},generageAdd(e){e.type_={type1:"generate",type2:"Sketchboard"},e.resData=JSON.parse(JSON.stringify(e)),e.jsContent1=this.t("uploadFile.jsContent1",{maxImg:20}),this.store.commit("addGenerateMaterialFils",e),(0,n.Y3)().then((()=>{this.driver__.driver&&Me.RX.moveNext()}))}}});const fo=(0,Ke.Z)(po,[["render",go],["__scopeId","data-v-f3d4e142"]]);var mo=fo,Bo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAACT5JREFUaEPVmXuMXFUdx7/n3Nfcee62u91S0fJKl3YhGiEptIo0BamaCH/UiESrCTEhGBuBFioRrUYlQKtGDfIo0bBtSIsKfwgFq0BLC7S6aNudPre7LfQB7HZ3Z2d2Zu7ce8/P/O7swOx0dna6Sx+eZDc7c8/jc3/ne36PswL/p02ca+7LHsx+zTLEcgBzANgjPLKMSwEgADmAXoPQf5S8x9x5TsGvfdS57fiAvy5qVcMQPkBadcPKtprgLx4ka8DB9SSwkAitAmgWwFQC9MnslKUDeQ+Zx7Y4rUcHlFUJLkl8P2dZT5uF7EMC8o5RawkBQbSlKviGJE1xJZbCx+0EXDgZyGpjG8PArmMKT7zuKEsXUisXBqBCmVCsY6XItj48NN+Q5lYKlFJsJCWE7/ungK/bRTeTxBoiNIkzJKSmKPBWt0o/uc3REyFhV6xDQtDMznvC7855xLlZCPV8tZcfhda+ix4QEj/7uC1cOd/UCLDjsBpes80RUUuEZYWBhBKXdd4bOtT2SO42CKwrjudOH1r+I4u376dbRAHPBc/PcBsBz6zZ5lhRC0JI7cdE2At4EKSTPWxuYqnM/vXwBfAxl4+U7jsgqd1IUrsTRCrAfHonRaSGAQDGGWYOpi8Dj8YssXnPcvv6etdtW+14IKUF4M8kaaWr8JPKLRtrMh5kaAAfKk8Brl/vssV+ZeB21JL9QtI34PtJKM00CTITCZ3oWiqcq1ZS2I3kWzwfvi+Up+nGIkFqDUtGjLi8PgVEx1OJIiBmAWETGMgCObf4d0MYyOSB4QJQz8uXgcsyjTsoulnSCLN2Lbd7Rg7ncwA4CCmAjKLW4Ys/7qEbDR9/H0/bDD0tBvRlgI1JF929CgUfCBnArBaJRXMMRK3i8wr3dsp2NEWAt3pUes02R4+f6lWY8KK9y+wjbauyiwHxbFWv0t5JvxLAXbU2m6Gbo0BXL+HRzQ6OpxRilgjkwvCZPOHSZg3fW2CiJSbQP1zb8lMiwNvvqMEnXnfMyKlexXfM0JSupWJo9ir3OglvczmbgACBlFi7m16GwBdrgbNVfQU8+JKDI/0KFzYI8MuUnBTv1jsnFa6aqeMHC03kCkXtj9V4vnQe2dWb8jTkUCQeEqCPYgwUiRv3Lg/9Y85q94eCvF9WmeeAWNtJbwC4thY4S+SF3T7atzuY0SBHLVIaxwv3Zgh3XGdh/qUykEyt1hyF+ut/vfSf3ixEW2JCi1hsyw89dRagDhA+Dw7xLGoCHJdg6QK6VF8V6zppPwGzxlqED1s8BDy+tYDt3T6mxXirTm0c/d5LEW5q0/GtuQZOZsrCRUV3Hm9pgKnDfSnpDb3e5Vlph6AUtJEoWsoSuatDBLJ0Qc0x0d83TPd33We3s8V7AFw0JrgEwgbwh80F7DzmY2qkuu/hb99PExbM0vGdeUbgdcq3v3J+lhpLJhGCfzwF59igKng+NAi28UeNyZUCwhbUjAa5b8kVYm4g0bWddAjAJTW3NQas3e7ihd0ePlGm71GHRgAnUoRbrzZwy6d1vJ+uLRV+ylAMaRvFH8HJVpXt5DfhM5Mv4N3Fl4tP1Q3O2dze9wirN+XBWmRLlVuTJx7KEwwJ3HtTKPAsGfbKH3/r/uYV4tK6wRlsShhY3+FhQ0cBzVEBzqH5e36BVI6Cn+9+zsJNbRo+SI+EiXMNznBsZdsEXtzt4ZX9HgayFLhIXeMQLvDlKwwsbNUwmANcdZ6As+H4MHHl0mADRweBA+/7gTwawgKXt2iYHgf6s8W8pZ6wP8HNOD2pfOirRw4T5ycRqwjIVh92gKxb7DVevjNB4NKwiYFPctFxh/NLm3ox13G8oiepMMT5Bc4yZAlaOgofpEGOB9kUhRs2ET45PEp+5wc4H3r2TC1xUHcvDW7a63EuZDoe6dOiMvvZmRoWzNJsx0MolQt24tyDs5VNLYD23+xWqae2FYzejIo1hjkXAdIOy4XcG1qNoW/PM0K6RKQvg54lV4ogWNYVOccV52l2YGg+4I1hFDZ2+qn2HYWYoSHUaJdlnSMH/0RKoW2GlrrzC2aiJS6O3PBJEaQnZx2cvRBXTLaB7DP/8nLP73TjjTYMjsilVLlkh+BgBsmbwvSExO3zzZ13XaN95qyDMxjfqXg+Mk9udZ2th9yG5qjUOD5UQpdvIrtdDni2IfYdXGHPnhR4qTxjC9bTGOyCBDjdHfzdaw6Sx/2GGQkJKWtnkaW5Gd7xcPjAffbFpwUeJG1cLIcCffq5QmAkETGDIlkfyhc9RGUAKnkOhu7qpYHfv1qQJ1J+gre+Vto7hjG6k8vs+pOsUu7cGIbf00eZHYd9OjqgNALkBQnhzLtE1y5uErG+NGQQNEboGYwDyrQYvB2HVeqxLU4oW0CEi5Fa0qixg6PADwOYWa1zycpTo4ElhzcmvdzGTs/qG1YxLqGYL+sSmqNy6OtXG4UbLtei7HOzheJsnBZoAtmNST+7bkchYkjYjRERpAkTbIeTy0akMlbpVkqqWmJQB3sptf7fLnUc8RIJW2jRsuKWtTeYI06uCgta9cw1F2t8V8KlFw1lKbf5oCfe6PGjERM6p8ITtHTpPQ8kl9mtJY1vBTC/3AI8OV/aaBLZTXu93HP/ca2hPKLT4iJIrCq1yd9xVsgnP2zCSdgCJECDwyTzLswpkWJQmSQ0H7E39yyz5xXBk/QsCIv5QymaTYuBjvTTIFt5e48fT4Sh8z1KPQuzxj0uyVG8d2HgasX1hKRCeDm53F5UAn8QCitYdlyiWTqyr+z3s39527X6syrWEqvfZU0Ipt5BfKA88ZvkfaHg8kq076av6Br+1hIDHRukwQ0drtp2yI/HQjD4oqYeK9e79mT68aWI5xmL9q0wXg7AX+2hkCvx3pYuP/7nDjf9QZriLXER5MQT8LOTYRtvbMYxQ018ixuA869bn3F+8c99/v1cVzaUJTrjzXS2ngsieLr20313WStLawbgTQ9RrFnmT2oSxnlm5RJnQaPQlF3LxfAocP7QtspZDPjPnvGq8bS3ieOz8aXk3cZL5UNHpRZXrs7erUisPu25z+yAB5LL7J9XLnFKUc7/6SKBRwWQOLM8NWYvZmb9QtCdnfeE11frWfU2Yc7DmelCyhWAXAJQ49l7gSBwHSUhnxLC/G3ybtE/1tr/A0bYMTlfaNGhAAAAAElFTkSuQmCC";const wo=e=>((0,n.dD)("data-v-39319904"),e=e(),(0,n.Cn)(),e),vo={class:"collection_modal_item"},yo={class:"switch_type_list"},Co={class:"switch_type_item select_swtich"},bo={class:"marketingUpload_body"},_o={class:"upload_img_body scroll_style"},Qo={class:"upload_item"},Uo={class:"upload_file_item_content"},Fo={class:"upload_file_item_content"},xo=["src"],Eo=["onClick"],ko={class:"upload_file_item upload_component"},Io={class:"upload_tip_block"},So=wo((()=>(0,n._)("img",{class:"upload_img_icon",src:Bo},null,-1))),Do=[So],Ho={class:"upload_max_tip"},Lo=wo((()=>(0,n._)("span",{class:"icon iconfont icon-zhuyi"},null,-1)));function Oo(e,A,t,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("Material");return(0,n.wg)(),(0,n.iD)("div",vo,[(0,n._)("div",yo,[(0,n._)("div",Co,[(0,n._)("span",null,(0,r.zw)(e.$t("MarketingSketchUpload.Upload")),1)]),(0,n._)("div",{onClick:A[0]||(A[0]=A=>e.openLibrary()),class:"switch_type_item"},[(0,n._)("span",null,(0,r.zw)(e.$t("MarketingSketchUpload.MyLibrary")),1)])]),(0,n.wy)((0,n._)("div",bo,[(0,n._)("div",_o,[(0,n._)("div",Qo,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:A},[(0,n.wy)((0,n._)("div",Uo,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===A?.status]]),(0,n.wy)((0,n._)("div",Fo,[(0,n._)("img",{src:A?.imgUrl,class:"upload_img"},null,8,xo),(0,n._)("div",{class:"delete_file_block",onClick:A=>e.deleteFile(t)},"Delete",8,Eo)],512),[[o.F8,"done"===A?.status]])])))),128)),(0,n.wy)((0,n._)("div",ko,[(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},"before-upload":e.beforeUpload,headers:{Authorization:e.token},"file-list":e.fileList,"onUpdate:file-list":A[1]||(A[1]=A=>e.fileList=A),multiple:"",maxCount:15,accept:".jpg,.png,.jpeg,.bmp",onChange:A[2]||(A[2]=A=>e.fileUploadChange(A))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",Io,Do,512),[[o.F8,e.fileList.length<15]])])),_:1},8,["action","data","before-upload","headers","file-list"])],512),[[o.F8,e.fileList.length<15]])])]),(0,n._)("div",Ho,[Lo,(0,n._)("span",null,(0,r.zw)(e.$t("MarketingSketchUpload.maximumLength")),1)])],512),[[o.F8,"upload"===e.swtich_type]]),(0,n.Wm)(d,{ref:"Material",onConfirmSelect:e.confirmSelect},null,8,["onConfirmSelect"])])}var Mo=(0,n.aZ)({components:{Material:RA},setup(){let e=(0,W.iH)([]),{t:A}=(0,Te.QT)();return{fileList:e,t:A}},data(){return{swtich_type:"upload",indicator:(0,n.h)(xe.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,gender:"",level1Type:"MarketingSketch",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,Se.oR)()}},mounted(){this.token=(0,He.ej)("token")||"",this.uploadUrl=(0,Le.M$)()},methods:{openLibrary(){let e=this.$refs.Material;e.init("MarketingSketch")},fileUploadChange(e){let A=e.file;if("done"===A.status){let e=JSON.parse(A.xhr.response);A.imgUrl=e.data.url,A.resData=e.data;let t=this.fileList.filter((e=>"done"===e.status));this.store.commit("setMarketingSketchFile",t)}else if("error"===A.status){let e=-1;this.fileList.forEach(((t,i)=>{A.uid===t.uid&&(e=i)})),e>-1&&this.fileList.splice(e,1),Ee.ZP.error(A.name+this.t("MarketingSketchUpload.jsContent1"))}},beforeUpload(e){const A="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;A||Ee.ZP.warning(this.t("MarketingSketchUpload.jsContent2"));const t=e.size/1024/1024<2;return t||Ee.ZP.warning(this.t("MarketingSketchUpload.jsContent3")),A&&t||ke.Z.LIST_IGNORE},deleteFile(e){this.fileList.splice(e,1),this.store.commit("setMarketingSketchFile",this.fileList)},recollection(){this.fileList=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.marketingSketchFiles)),this.store.commit("setMarketingSketchFile",this.fileList)},confirmSelect(e){for(let A of e){let e={imgUrl:A.url,resData:A,status:"done"};if(15==this.fileList.length){Ee.ZP.warning(this.t("MarketingSketchUpload.jsContent5"));break}this.fileList.push(e)}this.store.commit("setMarketingSketchFile",this.fileList)}}});const To=(0,Ke.Z)(Mo,[["render",Oo],["__scopeId","data-v-39319904"]]);var No=To,Ko=t(8302),Po=t(327),Ro=(0,n.aZ)({components:{Generate:Re,MoodboardUpload:wi,PrintboardUpload:Dn,ColorboardUpload:Cr,SketchboardUpload:mo,MarketingSketchUpload:No},setup(){const e=(0,Se.oR)();let{t:A}=(0,Te.QT)(),t=(0,n.Fl)((()=>e.state.Guide.guide)),i=(0,n.Fl)((()=>e.state.Workspace.workspace)),r=(0,n.Fl)((()=>e.state.Workspace.workspacePosition));(0,n.JJ)("driver__",t);let o=(0,W.iH)(!1);return{driver__:t,workspace:i,t:A,isShowMark:o,position:r}},data(){return{showCollectionModal:!1,collectionStep:1,store:(0,Se.oR)()}},methods:{nextStep(){let e=this.store.state.UploadFilesModule.colorBoards;if(1==this.collectionStep){let e=this.store.state.UploadFilesModule.disposeMoodboard,A=this.store.state.UploadFilesModule.moodboard;if(A.length>1&&(!e||0==e.length))return void Ee.ZP.info(this.$t("collectionModal.jsContent1"))}3!=this.collectionStep||e.length>=1?(this.driver__.driver&&Me.RX.moveNext(),this.collectionStep=this.collectionStep+1):Ee.ZP.info(this.$t("collectionModal.jsContent3"))},lastStep(){this.collectionStep=this.collectionStep-1},changeCollectionModal(e){this.showCollectionModal=e},recollection(){setTimeout((()=>{let e=["MoodboardUpload","PrintboardUpload","ColorboardUpload","SketchboardUpload"];for(let A of e){let e=this.$refs[A];e.recollection()}}),200)},cancelDsign(){let e=this;Po.Z.confirm({title:this.$t("collectionModal.jsContent2"),icon:(0,n.Wm)(Ko.Z),okText:"Yes",cancelText:"No",mask:!1,centered:!0,onOk(){De.id=0,e.showCollectionModal=!1,e.store.commit("clearAllData"),e.collectionStep=1}})},isPin(e){let A=this;Po.Z.confirm({title:this.t("collectionModal.jsContent5",{str:e}),icon:(0,n.Wm)(Ko.Z),okText:"Yes",cancelText:"No",mask:!1,centered:!0,onOk(){return!0},onCancel(){return A.isShowMark=!1,!1}})},isPinOpen(e){this.workspace;let A,t,i=0,n=0;"Female"==this.workspace.sexEnum.name?(A=["Outwear","Dress","Blouse"],t=["Trousers","Skirt"]):(A=["Outwear","Tops"],t=["Bottoms"]);let r,o=[],s=[];return this.position.forEach((e=>{let i,n;i=A.includes(e.name),n=t.includes(e.name),i&&o.push(e.value),n&&s.push(e.value)})),e.forEach(((e,t)=>{A.forEach((A=>{e.category==A&&e.pin&&i++})),A.forEach((A=>{e.category==A&&e.pin&&n++}))})),i>=8?(r=`top ${o.join(" and ")}`,this.isPin(r)):!(n>=8)||(r=`bottom ${s.join(" and ")}`,this.isPin(r))},finishCollection(){this.isShowMark=!0;let e=this.store.state.UploadFilesModule.sketchboard,A=[];e.forEach((e=>{let t={designType:e.resData.designType,isPin:e.pin?1:0,level2Type:e.category,sketchBoardId:e.id?e.id:e.resData.id};A.push(t)}));let t={sketchBoards:A};if(!this.isPinOpen(e))return void(this.isShowMark=!1);document.querySelectorAll(".img_block_item_sketch img");Ie.V.axiosPost(Ie.V.httpUrls.sketchBoardsBoundingBox,t).then((e=>{this.isShowMark=!1,this.store.commit("clearAllId"),this.store.commit("setShowSketchboard",e),De.id=0,this.showCollectionModal=!1,this.collectionStep=1,this.$emit("finishCollection"),this.driver__.driver&&Me.RX.moveNext()})).catch((e=>{this.isShowMark=!1}))}}});const Vo=(0,Ke.Z)(Ro,[["render",te],["__scopeId","data-v-1ec37d54"]]);var Go=Vo;const jo=e=>((0,n.dD)("data-v-d3dca806"),e=e(),(0,n.Cn)(),e),zo={class:"collection_review"},Zo=jo((()=>(0,n._)("div",{class:"collection_review_mark"},null,-1))),Wo={key:0,class:"img_block_item"},Yo={class:"all_img_item_block"},Xo=["src"],Jo={key:1,class:"img_block_item"},$o={class:"all_img_item_block"},qo=["src"],es={class:"img_block_item"},As={class:"all_img_item_block"},ts=["src"],is={class:"all_img_item_block"},ns=["src"],rs={class:"img_block_item"},os={class:"color_content_body"},ss={class:"color_des"},as={class:"color_des"},ls={class:"img_block_item img_block_item_sketch"},cs=["src"],ds={class:"img_block_item"},us={class:"all_img_item_block"},hs=["src"];function gs(e,A,t,i,s,a){return(0,n.wg)(),(0,n.iD)("div",zo,[Zo,0!=e.allBoardData?.disposeMoodboard?.length&&null!=e.allBoardData?.disposeMoodboard?.[0]?((0,n.wg)(),(0,n.iD)("div",Wo,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.disposeMoodboard,(e=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e,class:"lager_img_item lager_img_disposeMoodboard"},[(0,n._)("div",Yo,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,Xo)])])),[[o.F8,""!=e?.imgUrl]]))),128))])):((0,n.wg)(),(0,n.iD)("div",Jo,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.moodboardFiles,(e=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e,class:"lager_img_item lager_img_moodboard"},[(0,n._)("div",$o,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,qo)])])),[[o.F8,""!=e?.imgUrl]]))),128))])),(0,n._)("div",es,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.printboardFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"small_img_item",key:e},[(0,n._)("div",As,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,ts)])])))),128)),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.generatePrintFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"small_img_item",key:e},[(0,n._)("div",is,[(0,n._)("img",{class:"all_img_content cover_img",src:e.imgUrl},null,8,ns)])])))),128))]),(0,n._)("div",rs,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.colorBoards,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"color_item",key:e},[(0,n._)("div",{class:"color_content",style:(0,r.j5)({background:`rgb(${e?.rgbValue?.r},${e?.rgbValue?.g},${e?.rgbValue?.b},${e?.rgbValue?.a})`})},null,4),(0,n._)("div",os,[(0,n._)("div",ss,(0,r.zw)(e.tcx),1),(0,n._)("div",as,(0,r.zw)(e.name),1)])])))),128))]),(0,n._)("div",ls,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketch,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["lager_img_item","lager_img_item"+t]),key:A},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(A,(A=>((0,n.wg)(),(0,n.iD)("div",{class:"all_img_item_block",key:e.sketch},[(0,n._)("img",{class:"all_img_content",src:A?.urlWithWhiteSide},null,8,cs)])))),128))],2)))),128))]),(0,n._)("div",ds,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.marketingSketchFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"lager_img_item",key:e},[(0,n._)("div",us,[(0,n._)("img",{class:"all_img_content",src:e.imgUrl},null,8,hs)])])))),128))])])}var ps=(0,n.aZ)({components:{MoodTemplate:At},setup(){const e=(0,Se.oR)();let A=(0,W.iH)([[],[],[]]),t=(0,n.Fl)((()=>e.state.UploadFilesModule.showSketchboard)),i=(0,n.Fl)((()=>e.state.UploadFilesModule.allBoardData));return{store:e,allBoardData:i,sketch:A,sketchList:t}},data(){return{imgOpen:!0}},watch:{sketchList:{handler(e,A){A?JSON.stringify(e)!=JSON.stringify(A)&&this.setSketch():this.setSketch()},immediate:!0}},mounted(){},methods:{setSketch(){this.imgOpen&&(this.imgOpen=!1,this.sketch=[[],[],[]],(0,n.Y3)().then((async()=>{let e=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item0")[0]?.getBoundingClientRect(),A=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item1")[0]?.getBoundingClientRect(),t=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item2")[0]?.getBoundingClientRect();if(e.num=0,A.num=1,t.num=2,this.sketchList&&null!=this.sketchList){for(let i=0;i<this.sketchList.length;i++){let r=[e,A,t],o=new Image;o.src=this.sketchList[i].urlWithWhiteSide,r.sort(((e,A)=>{var t=e["height"],i=A["height"];return t-i})),this.sketch[r[0].num]?.push(this.sketchList[i]),await new Promise((i=>{o.onload=()=>{(0,n.Y3)().then((()=>{e=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item0")[0]?.getBoundingClientRect(),A=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item1")[0]?.getBoundingClientRect(),t=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item2")[0]?.getBoundingClientRect(),e.num=0,A.num=1,t.num=2})),setTimeout((()=>{i()}),200)}}))}this.imgOpen=!0,this.store.commit("setshowSketchList",this.sketch)}})))}}});const fs=(0,Ke.Z)(ps,[["render",gs],["__scopeId","data-v-d3dca806"]]);var ms=fs;const Bs={class:"export_new_collection_review"},ws={key:0,class:"img_block_item"},vs={class:"all_img_item_block"},ys=["src"],Cs={key:1,class:"img_block_item"},bs={class:"all_img_item_block"},_s=["src"],Qs={class:"img_block_item"},Us={class:"all_img_item_block"},Fs=["src"],xs={class:"all_img_item_block"},Es=["src"],ks={class:"img_block_item"},Is={class:"color_content_body"},Ss={class:"color_des"},Ds={class:"color_des"},Hs={class:"img_block_item img_block_item_sketch"},Ls=["src"],Os={class:"img_block_item"},Ms={class:"all_img_item_block"},Ts=["src"],Ns={class:"img_block_item img_block_item_sketch_like h50"},Ks={class:"all_img_item_block"},Ps=["src"];function Rs(e,A,t,i,s,a){return(0,n.wg)(),(0,n.iD)("div",Bs,[0!=e.allBoardData?.disposeMoodboard?.length&&null!=e.allBoardData?.disposeMoodboard?.[0]?(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",ws,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.disposeMoodboard,(e=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e,class:"lager_img_item lager_img_disposeMoodboard"},[(0,n._)("div",vs,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,ys)])])),[[o.F8,""!=e?.imgUrl]]))),128))],512)),[[o.F8,e.exportNav[0].change]]):(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",Cs,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.moodboardFiles,(e=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e,class:"lager_img_item lager_img_moodboard"},[(0,n._)("div",bs,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,_s)])])),[[o.F8,""!=e?.imgUrl]]))),128))],512)),[[o.F8,e.exportNav[0].change]]),(0,n.wy)((0,n._)("div",Qs,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.printboardFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"small_img_item",key:e},[(0,n._)("div",Us,[(0,n._)("img",{class:"all_img_content cover_img",src:e.imgUrl},null,8,Fs)])])))),128)),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.generatePrintFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"small_img_item",key:e},[(0,n._)("div",xs,[(0,n._)("img",{class:"all_img_content cover_img",src:e.imgUrl},null,8,Es)])])))),128))],512),[[o.F8,e.exportNav[1].change]]),(0,n.wy)((0,n._)("div",ks,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.colorBoards,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"color_item",key:e},[(0,n._)("div",{class:"color_content",style:(0,r.j5)({background:`rgb(${e?.rgbValue?.r},${e?.rgbValue?.g},${e?.rgbValue?.b})`})},null,4),(0,n._)("div",Is,[(0,n._)("div",Ss,(0,r.zw)(e.tcx),1),(0,n._)("div",Ds,(0,r.zw)(e.name),1)])])))),128))],512),[[o.F8,e.exportNav[2].change]]),(0,n.wy)((0,n._)("div",Hs,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketch,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["lager_img_item","lager_img_item"+t]),key:A},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(A,(A=>((0,n.wg)(),(0,n.iD)("div",{class:"all_img_item_block",key:e.sketch},[(0,n._)("img",{class:"all_img_content",src:A?.urlWithWhiteSide},null,8,Ls)])))),128))],2)))),128))],512),[[o.F8,e.exportNav[3].change]]),(0,n._)("div",Os,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.marketingSketchFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"lager_img_item",key:e},[(0,n._)("div",Ms,[(0,n._)("img",{class:"all_img_content",src:e.imgUrl},null,8,Ts)])])))),128))]),(0,n.wy)((0,n._)("div",Ns,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.likeDesignCollectionList,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"lager_img_item",key:e.designItemUrl},[(0,n._)("div",Ks,[(0,n._)("img",{class:"all_img_content",src:e.designOutfitUrl},null,8,Ps)])])))),128))],512),[[o.F8,e.exportNav[4].change]])])}var Vs=(0,n.aZ)({components:{MoodTemplate:At},setup(){let e=(0,n.Fl)((()=>t.state.HomeStoreModule.showSketchList)),A=(0,n.Fl)((()=>t.state.UploadFilesModule.showSketchboard));const t=(0,Se.oR)();let i=(0,n.Fl)((()=>t.state.UploadFilesModule.allBoardData)),r=(0,n.Fl)((()=>t.state.HomeStoreModule.likeDesignCollectionList)),o=(0,n.f3)("exportNav");return{allBoardData:i,likeDesignCollectionList:r,sketch:e,sketchList:A,exportNav:o}},watch:{sketchList:{handler(e,A){},immediate:!0}},methods:{setSketch(){this.sketch=[[],[],[]],(0,n.Y3)().then((async()=>{let e=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item0")[0]?.getBoundingClientRect(),A=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item1")[0]?.getBoundingClientRect(),t=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item2")[0]?.getBoundingClientRect();e=e||{},A=A||{},t=t||{},e.num=0,A.num=1,t.num=2;let i=JSON.parse(JSON.stringify(this.sketchList));if(this.sketchList)for(let r=0;r<i.length;r++){let o=[e,A,t],s=new Image;s.src=i[r].urlWithWhiteSide,o.sort(((e,A)=>{var t=e["height"],i=A["height"];return t-i})),this.sketch[o[0].num]?.push(i[r]),await new Promise((i=>{s.onload=()=>{(0,n.Y3)().then((()=>{e=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item0")[0]?.getBoundingClientRect(),A=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item1")[0]?.getBoundingClientRect(),t=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item2")[0]?.getBoundingClientRect(),e.num=0,A.num=1,t.num=2,i()}))}}))}}))}}});const Gs=(0,Ke.Z)(Vs,[["render",Rs],["__scopeId","data-v-09bb978a"]]);var js=Gs;const zs={class:"design_title_text"},Zs={class:"design_title_text_intro"},Ws=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),Ys=[Ws],Xs=(0,n._)("span",{class:"icon iconfont icon_turn icon-shangyibu"},null,-1),Js=[Xs],$s=(0,n._)("span",{class:"icon iconfont icon_turn icon-xiayibu"},null,-1),qs=[$s],ea={class:"design_detail_modal_body"},Aa={class:"detail_modal_body_img"},ta={class:"detail_modal_body"},ia={class:"detail_modal_body_nav"},na=["onClick"],ra=["src"],oa=["onClick"],sa={class:"detail_modal_model_content"},aa=["src"],la=["src"],ca=["onClick"],da=["src"],ua=["src"],ha={class:"detail_btn"},ga={class:"detail_modal_body_category"},pa={class:"detail_modal_right_top scroll_style"},fa={class:"clothes_detail_item clothes_detail_item_apparel"},ma={class:"clothes_item_header"},Ba=(0,n._)("i",{class:"fi fi-rs-comments"},null,-1),wa=["src"],va={class:"clothes_item_header"},ya=(0,n._)("i",{class:"fi fi-rs-comments"},null,-1),Ca=["src"],ba={class:"clothes_item_header"},_a=(0,n._)("i",{class:"fi fi-rs-comments"},null,-1),Qa={class:"color_item"},Ua={class:"color_content_body"},Fa={class:"color_des"},xa={class:"color_des"},Ea={class:"design_detail_perview"},ka={class:"design_detail_perview_content"},Ia={class:"design_detail_perview"},Sa={class:"design_detail_perview_content"},Da={class:"mark_loading"};function Ha(e,A,t,i,s,a){const l=(0,n.up)("DesignDetailAlter"),c=(0,n.up)("magnifyingGlass"),d=(0,n.up)("setDesignItem"),u=(0,n.up)("setDesignItemMobile"),h=(0,n.up)("a-modal"),g=(0,n.up)("a-spin");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(h,{class:(0,r.C_)(["design_detail_modal_component Guide_1_18",[e.driver__.driver?"hideEvents":""]]),visible:e.designDetailShow,"onUpdate:visible":A[24]||(A[24]=A=>e.designDetailShow=A),footer:null,width:"65%",maskClosable:!1,centered:!0,keyboard:!1,closable:!1},{default:(0,n.w5)((()=>[(0,n._)("div",zs,[(0,n._)("div",null,(0,r.zw)(e.$t("DesignDetail.Details")),1),(0,n._)("div",Zs,(0,r.zw)(e.$t("DesignDetail.EditDetails")),1)]),(0,n._)("div",{class:"design_closeIcon",onClick:A[0]||(A[0]=(0,o.iM)((A=>e.closeModal()),["stop"]))},Ys),(0,n.wy)((0,n._)("div",{class:"turn_button turn_left_button",onClick:A[1]||(A[1]=A=>e.changeDesignItem("last"))},Js,512),[[o.F8,1==e.designShowPrview]]),(0,n.wy)((0,n._)("div",{class:"turn_button turn_right_button",onClick:A[2]||(A[2]=A=>e.changeDesignItem("next"))},qs,512),[[o.F8,1==e.designShowPrview]]),(0,n.wy)((0,n._)("div",ea,[(0,n._)("div",Aa,[(0,n.wy)((0,n._)("div",ta,[(0,n._)("div",ia,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designItemDetail?.clothes,((A,t)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)({active:A.clothesOpen}),onClick:A=>e.clothesOpen(t)},[(0,n._)("img",{src:A?.path,alt:""},null,8,ra),(0,n.wy)((0,n._)("i",{class:"fi fi-br-cross",onClick:(0,o.iM)((A=>e.setDelete(t)),["stop"])},null,8,oa),[[o.F8,e.deleteShow]])],10,na)),[[o.F8,A.id]]))),256)),(0,n.wy)((0,n._)("div",{class:"detail_modal_body_Set",onClick:A[3]||(A[3]=A=>e.setClothesOpen())}," + ",512),[[o.F8,e.designItemDetailNum<5]])]),(0,n._)("div",sa,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.back,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["detail_modal_item_back",{active:e.body}]),style:(0,r.j5)(A.style)},[(0,n._)("img",{src:A.imageUrl,alt:""},null,8,aa)],6)))),256)),(0,n._)("img",{class:"detail_modal_model",src:e.frontBack.body?.layersObject[0]?.imageUrl,alt:""},null,8,la),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["detail_modal_item_front Guide_1_19",{active:e.body}]),style:(0,r.j5)(A.style),onClick:(0,o.iM)((A=>e.clothesOpen(t)),["stop"])},[(0,n._)("img",{src:A.imageUrl,alt:""},null,8,da)],14,ca)))),256))])],512),[[o.F8,e.imgDesignImg]]),(0,n.wy)((0,n._)("img",{class:"detial_img",src:e.designItemDetail.designItemUrl},null,8,ua),[[o.F8,!e.imgDesignImg]]),(0,n._)("div",ha,[(0,n._)("i",{class:"fi fi-bs-expand-arrows-alt",onClick:A[4]||(A[4]=A=>e.showDesignImgDetail(2))}),(0,n.wy)((0,n._)("i",{class:"fi fi-rr-edit",onClick:A[5]||(A[5]=A=>e.showDesignImgDetail(3))},null,512),[[o.F8,!e.body]]),(0,n.wy)((0,n._)("i",{class:"fi fi-rr-trash",onClick:A[6]||(A[6]=A=>e.deleteNav(0))},null,512),[[o.F8,!e.body&&!e.deleteShow]]),(0,n.wy)((0,n._)("i",{class:"fi fi-br-check",onClick:A[7]||(A[7]=A=>e.deleteNav(1))},null,512),[[o.F8,!e.body&&e.deleteShow]]),(0,n._)("i",{class:"fi fi-rr-copy",onMousedown:A[8]||(A[8]=(...A)=>e.mousedownDesignImg&&e.mousedownDesignImg(...A)),onMouseup:A[9]||(A[9]=(...A)=>e.mouseupDesignImg&&e.mouseupDesignImg(...A)),onTouchstart:A[10]||(A[10]=(...A)=>e.mousedownDesignImg&&e.mousedownDesignImg(...A)),onTouchend:A[11]||(A[11]=(...A)=>e.mouseupDesignImg&&e.mouseupDesignImg(...A))},null,32),(0,n.wy)((0,n._)("i",{class:"icon iconfont icon-chehui",onClick:A[12]||(A[12]=(...A)=>e.revocation&&e.revocation(...A))},null,512),[[o.F8,e.revocationShow>1]]),(0,n.wy)((0,n._)("i",{class:"icon iconfont icon-fanchehui",onClick:A[13]||(A[13]=(...A)=>e.oppositeRevocation&&e.oppositeRevocation(...A))},null,512),[[o.F8,e.oppositeRevocationShow>=1]])]),(0,n.wy)((0,n._)("div",{class:"subitOkPreviewBtn Guide_1_26",onClick:A[14]||(A[14]=(...A)=>e.submit&&e.submit(...A))},(0,r.zw)(e.$t("DesignDetail.Submit")),513),[[o.F8,e.ifSubmit]])]),(0,n._)("div",ga,[(0,n.wy)((0,n._)("div",pa,[(0,n._)("div",fa,[(0,n._)("div",ma,[Ba,(0,n._)("div",null,(0,r.zw)(e.$t("DesignDetail.CurrentApparel")),1),(0,n._)("i",{class:"fi fi-rr-edit",onClick:A[15]||(A[15]=(0,o.iM)((A=>e.openCurrent(1)),["stop"]))})]),e.current?.id?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"centent_div",onClick:A[17]||(A[17]=A=>e.openCurrent(1))},[(0,n._)("img",{src:e.current?.path,alt:"",class:"",onClick:A[16]||(A[16]=A=>e.openCurrent(1))},null,8,wa)])):((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-rr-picture centent",onClick:A[18]||(A[18]=A=>e.openCurrent(1))}))]),(0,n._)("div",{class:(0,r.C_)(["clothes_detail_item clothes_detail_item_print",[e.current.id?"":"hideCursor"]])},[(0,n._)("div",va,[ya,(0,n._)("div",null,(0,r.zw)(e.$t("DesignDetail.CurrentPrint")),1),(0,n._)("i",{class:"fi fi-rr-edit",onClick:A[19]||(A[19]=(0,o.iM)((A=>e.openCurrent(2)),["stop"]))})]),(0,n._)("div",{class:(0,r.C_)(["Guide_1_20",[e.driver__.driver?"showEvents":""]])},[e.current?.printObject?.prints[0]?.path?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"centent_div",onClick:A[20]||(A[20]=A=>e.openCurrent(2))},[(0,n._)("img",{src:e.current?.printObject?.prints[0]?.path,alt:""},null,8,Ca)])):((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-rr-picture centent",onClick:A[21]||(A[21]=A=>e.openCurrent(2))}))],2)],2),(0,n._)("div",{class:(0,r.C_)(["clothes_detail_item clothes_detail_item_color",[e.current.id?"":"hideCursor"]])},[(0,n._)("div",ba,[_a,(0,n._)("div",null,(0,r.zw)(e.$t("DesignDetail.CurrentColor")),1),(0,n._)("i",{class:"fi fi-rr-edit",onClick:A[22]||(A[22]=(0,o.iM)((A=>e.openCurrent(3)),["stop"]))})]),(0,n._)("div",{class:"img_block_item centent",onClick:A[23]||(A[23]=(0,o.iM)((A=>e.openCurrent(3)),["stop"]))},[(0,n._)("div",Qa,[(0,n._)("div",{class:"color_content",style:(0,r.j5)({background:`rgba(${e.current?.color?.r},${e.current?.color?.g},${e.current?.color?.b},${e.current?.color?.a?e.current?.color.a:1})`})},null,4),(0,n._)("div",Ua,[(0,n._)("div",Fa,(0,r.zw)(e.current?.color?.tcx),1),(0,n._)("div",xa,(0,r.zw)(e.current?.color?.name),1)])])])],2)],512),[[o.F8,e.designOrder]])]),(0,n.Wm)(l,{ref:"DesignDetailAlter"},null,512)],512),[[o.F8,1==e.designShowPrview]]),(0,n.wy)((0,n._)("div",Ea,[(0,n._)("div",ka,[(0,n.Wm)(c,{ref:"magnifyingGlass",designItemDetailUrl:e.designItemDetailUrl},null,8,["designItemDetailUrl"])])],512),[[o.F8,2==e.designShowPrview]]),(0,n.wy)((0,n._)("div",Ia,[(0,n._)("div",Sa,[e.moible?((0,n.wg)(),(0,n.j4)(u,{key:1,ref:"setDesignItemMobile",onSetDesignCoverage:e.setDesignCoverage,onSetSubmit:e.setSubmit},null,8,["onSetDesignCoverage","onSetSubmit"])):((0,n.wg)(),(0,n.j4)(d,{key:0,ref:"setDesignItem",onSetDesignCoverage:e.setDesignCoverage,onSetSubmit:e.setSubmit},null,8,["onSetDesignCoverage","onSetSubmit"]))])],512),[[o.F8,3==e.designShowPrview]])])),_:1},8,["class","visible"]),(0,n.wy)((0,n._)("div",Da,[(0,n.Wm)(g,{size:"large"})],512),[[o.F8,e.loadingShow]])])}const La={class:"detail_modal_body_select"},Oa={class:"detail_uploadLibrary"},Ma={class:"switch_type_list"},Ta={class:"detail_Library"},Na={class:"content_search_block"},Ka=["placeholder"],Pa=(0,n._)("span",{class:"icon iconfont icon-sousuo"},null,-1),Ra=[Pa],Va={class:"detail_Upload_item"},Ga={class:"moodboard_body"},ja={class:"upload_img_body scroll_style"},za={class:"upload_item"},Za=["onClick"],Wa={class:"upload_file_item_content"},Ya={class:"upload_file_item_content"},Xa=["src"],Ja={class:"operate_file_block"},$a={class:"select_img_type"},qa=["onClick"],el={class:"category_list"},Al=["onClick"],tl=["onClick"],il=(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1),nl=[il],rl={class:"upload_file_item upload_component"},ol={class:"upload_tip_block"},sl=(0,n._)("i",{class:"fi fi-br-upload"},null,-1),al=[sl],ll={class:"material_content_body scroll_style"},cl=["alt","onClick"],dl={key:0,class:"operate_file_block"},ul={class:"select_img_type"},hl=["onClick"],gl={class:"category_list"},pl=["onClick"],fl={class:"material_content_list_loding"},ml=(0,n._)("img",{src:BA,alt:""},null,-1),Bl=[ml],wl={class:"no_data_block loading_block"},vl={class:"detail_color"},yl={class:"right_content_line"},Cl={class:"upload_right_header"},bl=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),_l={class:"color_setting_block"},Ql={class:"right_content_line right_content_line_upload"},Ul={class:"upload_right_header"},Fl=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),xl={class:"upload_centetn"},El={class:"upload_item"},kl={class:"upload_file_item_content"},Il={class:"upload_file_item_content"},Sl=["src"],Dl=(0,n._)("div",{class:"upload_tip_block"},[(0,n._)("i",{class:"fi fi-rr-picture"})],-1),Hl={class:"upload_color"},Ll=["onClick"],Ol=["title"],Ml={class:"right_content_line"},Tl={class:"upload_right_header"},Nl=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),Kl={class:"get_color_block"},Pl=(0,n._)("span",{class:"icon iconfont icon-huoquduixiang"},null,-1),Rl=(0,n._)("span",{class:"get_color_des"},null,-1),Vl=[Pl,Rl];function Gl(e,A,t,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("Chrome"),u=(0,n.up)("DesignDetailEnd"),h=(0,n.Q2)("lazy"),g=(0,n.Q2)("observe");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n._)("div",La,[(0,n.wy)((0,n._)("div",null,[(0,n._)("div",Oa,[(0,n._)("div",Ma,[(0,n._)("div",{onClick:A[0]||(A[0]=(0,o.iM)((A=>e.open(1)),["stop"])),class:(0,r.C_)(["switch_type_item",[1==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.Upload")),1)],2),(0,n._)("div",{onClick:A[1]||(A[1]=(0,o.iM)((A=>e.open(2)),["stop"])),class:(0,r.C_)(["switch_type_item Guide_1_21",[2==e.openClick?"select_swtich":"",e.driver__.driver?"showEvents":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.Library")),1)],2)]),(0,n.wy)((0,n._)("div",Ta,[(0,n._)("div",Na,[(0,n.wy)((0,n._)("input",{class:"search_input",placeholder:e.$t("DesignDetailAlter.inputContent1"),"onUpdate:modelValue":A[2]||(A[2]=A=>e.searchPictureName=A),onKeydown:A[3]||(A[3]=(0,o.D2)((A=>e.getLibraryList()),["enter"]))},null,40,Ka),[[o.nr,e.searchPictureName]]),(0,n._)("div",{class:"search_icon_block",onClick:A[4]||(A[4]=(0,o.iM)((A=>e.getLibraryList()),["stop"]))},Ra)])],512),[[o.F8,2==e.openClick]])]),(0,n.wy)((0,n._)("div",Va,[(0,n._)("div",Ga,[(0,n._)("div",ja,[(0,n._)("div",za,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.uploadList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:A,onClick:(0,o.iM)((t=>e.selectImgItem(A)),["stop"])},[(0,n.wy)((0,n._)("div",Wa,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===A?.status]]),(0,n.wy)((0,n._)("div",Ya,[(0,n._)("img",{src:A?.url,class:"upload_img"},null,8,Xa),(0,n.wy)((0,n._)("div",Ja,[(0,n._)("div",$a,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((t=>e.showFileCategory(A)),["stop"])},[(0,n.Uk)((0,r.zw)(A.level2Type)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",A.categoryShow?"icon_rotate":""])},null,2)],8,qa),(0,n.wy)((0,n._)("div",el,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.disignTypeList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",A.level2Type==t.value?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(A,t)),["stop"])},(0,r.zw)(t.value),11,Al)))),128))],512),[[o.F8,A.categoryShow]])])],512),[[o.F8,"Sketchboard"==e.selectCode]]),(0,n._)("div",{class:"delete_file_block",onClick:(0,o.iM)((A=>e.deleteFile(t)),["stop"])},nl,8,tl)],512),[[o.F8,"done"===A?.status]])],8,Za)))),128)),(0,n.wy)((0,n._)("div",rl,[(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},headers:{Authorization:e.token},"file-list":e.uploadList,"onUpdate:file-list":A[5]||(A[5]=A=>e.uploadList=A),"before-upload":e.beforeUpload,maxCount:8,accept:".jpg,.png,.jpeg,.bmp",onChange:A[6]||(A[6]=A=>e.upFileUploadChange(A))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",ol,al,512),[[o.F8,8!=e.uploadList.length]])])),_:1},8,["action","data","headers","file-list","before-upload"])],512),[[o.F8,8!=e.uploadList.length]])])])])],512),[[o.F8,1==e.openClick]]),(0,n.wy)((0,n._)("div",{class:(0,r.C_)(["detail_Library_item Guide_1_22",[e.driver__.driver?"showEvents":""]])},[(0,n._)("div",ll,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.clothesList,(A=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["content_img_item",{active:"Moodboard"!==e.selectCode}]),key:A.id},[(0,n._)("div",{class:(0,r.C_)(["content_img_item_block",{active:A?.checked}])},[(0,n.wy)(((0,n.wg)(),(0,n.iD)("img",{class:(0,r.C_)(["Printboard"==e.selectCode?"print_content_img":"content_img"]),key:A.url,alt:A.name,onClick:(0,o.iM)((t=>e.selectImgItem(A)),["stop"])},null,10,cl)),[[h,A.url]]),"Sketchboard"==e.selectCode?((0,n.wg)(),(0,n.iD)("div",dl,[(0,n._)("div",ul,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((t=>e.showFileCategory(A)),["stop"])},[(0,n.Uk)((0,r.zw)(A.level2Type)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",A.categoryShow?"icon_rotate":""])},null,2)],8,hl),(0,n.wy)((0,n._)("div",gl,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.disignTypeList,((t,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",A.level2Type==t.value?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(A,t)),["stop"])},(0,r.zw)(t.value),11,pl)))),128))],512),[[o.F8,A.categoryShow]])])])):(0,n.kq)("",!0)],2)],2)))),128)),(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",fl,Bl)),[[o.F8,e.total>e.clothesList.length],[g]])]),(0,n.wy)((0,n._)("div",wl,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.isShowLoading]])],2),[[o.F8,2==e.openClick]])],512),[[o.F8,(1==e.type_||2==e.type_)&&1==e.select]]),(0,n.wy)((0,n._)("div",null,[(0,n._)("div",vl,[(0,n._)("div",yl,[(0,n._)("div",Cl,[bl,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.Palette")),1)]),(0,n._)("div",_l,[(0,n.Wm)(d,{class:"chrome_color",modelValue:e.selectColor,"onUpdate:modelValue":A[7]||(A[7]=A=>e.selectColor=A)},null,8,["modelValue"])])]),(0,n._)("div",Ql,[(0,n._)("div",Ul,[Fl,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.UploadImage")),1)]),(0,n._)("div",xl,[(0,n._)("div",El,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.colorFileList,(t=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:t},[(0,n.wy)((0,n._)("div",kl,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"done"!==t.status]]),(0,n.wy)((0,n._)("div",Il,[(0,n._)("img",{src:t?.imgUrl,class:"upload_img",ref_for:!0,ref:"colorImage"},null,8,Sl),(0,n._)("div",{class:"delete_file_block",onClick:A[8]||(A[8]=A=>e.colorDeleteFile(e.index))},(0,r.zw)(e.$t("DesignDetailAlter.Delete")),1)],512),[[o.F8,"done"===t.status]])])))),128)),(0,n.wy)((0,n.Wm)(c,{"list-type":"picture-card",customRequest:function(){},onChange:e.fileUploadChange,"before-upload":e.beforeUpload,accept:".jpg,.png,.jpeg,.bmp"},{default:(0,n.w5)((()=>[Dl])),_:1},8,["customRequest","onChange","before-upload"]),[[o.F8,e.colorFileList.length<1]])]),(0,n._)("div",Hl,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.selectColorList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{key:A,onClick:t=>e.setUplpadColor(A),class:"upload_color_item"},[(0,n._)("div",{class:"upload_color_item_bg",style:(0,r.j5)({"background-color":`rgba(${A.rgba.r},${A.rgba.g},${A.rgba.b},${A.rgba.a})`})},null,4),(0,n._)("img",{src:"#",title:e.pantongNameList[t]},null,8,Ol)],8,Ll)))),128))])])]),(0,n._)("div",Ml,[(0,n._)("div",Tl,[Nl,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.ColorCode")),1)]),(0,n._)("div",Kl,[(0,n.wy)((0,n._)("input",{class:"get_color_input",placeholder:"tcx value (e.g.: 19-4052)","onUpdate:modelValue":A[9]||(A[9]=A=>e.tcxColor=A),onKeydown:A[10]||(A[10]=(0,o.D2)((A=>e.getTcxColor()),["enter"]))},null,544),[[o.nr,e.tcxColor]]),(0,n._)("div",{class:"get_color_button",onClick:A[11]||(A[11]=A=>e.getTcxColor())},Vl)])])])],512),[[o.F8,3==e.type_&&1==e.select]])]),(0,n.Wm)(u,{ref:"DesignDetailEnd"},null,512)],64)}const jl=e=>((0,n.dD)("data-v-706b5c8c"),e=e(),(0,n.Cn)(),e),zl={class:"detail_modal_body_result"},Zl={class:"result_apparel_print"},Wl={class:"upload_title result_apparel"},Yl=jl((()=>(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),Xl={class:"result_print"},Jl={class:"upload_title"},$l=jl((()=>(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),ql={class:"print_left"},ec=["src"],Ac={key:1,src:"@/assets/images/homePage/null_img.png"},tc=jl((()=>(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),ic=[tc],nc={class:"upload_title"},rc=jl((()=>(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),oc={class:"print_right"},sc={class:"habit_Overal_Single"},ac={class:"result_apparel_print_img"},lc=["src","title"],cc=["title"],dc=["src"],uc={class:"result_color upload_title"},hc=jl((()=>(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),gc={class:"modal_img"},pc=["title","onClick","onDblclick"],fc={class:"color_content_body"},mc={class:"color_des"},Bc={class:"color_des"},wc={class:"mark_loading"};function vc(e,A,t,i,s,a){const l=(0,n.up)("a-switch"),c=(0,n.up)("DesignPrintOperation"),d=(0,n.up)("DesignPrintOperationMobile"),u=(0,n.up)("a-spin");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n._)("div",zl,[(0,n.wy)((0,n._)("div",Zl,[(0,n.wy)((0,n._)("div",Wl,[Yl,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailEnd.NewApparel")),1)],512),[[o.F8,1==e.type_]]),(0,n.wy)((0,n._)("div",Xl,[(0,n._)("div",null,[(0,n._)("div",Jl,[$l,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailEnd.NewPrint")),1)]),(0,n._)("div",ql,[e.current?.printObject?.prints?.[0]?.path?((0,n.wg)(),(0,n.iD)("img",{key:0,src:e.current?.printObject?.prints?.[0]?.path},null,8,ec)):((0,n.wg)(),(0,n.iD)("div",Ac)),(0,n.wy)((0,n._)("div",{class:"delete_file_block",onClick:A[0]||(A[0]=(...A)=>e.deleteFile&&e.deleteFile(...A))},ic,512),[[o.F8,e.current?.printObject?.prints?.[0]?.path]])])]),(0,n._)("div",null,[(0,n._)("div",nc,[rc,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailEnd.Placement")),1)]),(0,n._)("div",oc,[(0,n._)("div",sc,[(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:!e.overallSingle}])},(0,r.zw)(e.$t("DesignDetailEnd.Overall")),3),(0,n.Wm)(l,{onClick:e.setOveralSingle,checked:e.overallSingle,"onUpdate:checked":A[1]||(A[1]=A=>e.overallSingle=A)},null,8,["onClick","checked"]),(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:e.overallSingle}])},(0,r.zw)(e.$t("DesignDetailEnd.Single")),3)])])])],512),[[o.F8,2==e.type_]]),(0,n._)("div",ac,[(0,n.wy)((0,n._)("img",{class:"result_appare_img",src:e.sketchImg?.id_?e.sketchImg?.path:e.current?.path,title:e.current?.type},null,8,lc),[[o.F8,1==e.type_]]),(0,n.wy)((0,n._)("div",{class:"result_print_img",onClick:A[2]||(A[2]=(...A)=>e.setPrint&&e.setPrint(...A)),title:e.current?.type},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.current.layersObject,(e=>((0,n.wg)(),(0,n.iD)("img",{src:e.imageUrl,alt:""},null,8,dc)))),256))],8,cc),[[o.F8,2==e.type_]])])],512),[[o.F8,1==e.type_||2==e.type_]]),(0,n.wy)((0,n._)("div",null,[(0,n._)("div",uc,[hc,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailEnd.NewColor")),1)]),(0,n._)("div",gc,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.colorList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:A},[(0,n._)("div",{title:A?.name?A?.name:"",onClick:i=>e.selectColorItem(t,A),onDblclick:t=>e.setSelectColorItem(A),class:(0,r.C_)(["upload_color",e.selectIndex===t?"select_upload_color":""]),style:(0,r.j5)({background:`rgba(${A?.r},${A?.g},${A?.b},${A?.a})`})},[(0,n._)("div",{class:"color_content",style:(0,r.j5)({"background-color":`rgba(${A.rgba?.r},${A.rgba?.g},${A.rgba?.b},${A.rgba?.a})`})},null,4),(0,n._)("div",fc,[(0,n._)("div",mc,(0,r.zw)(A.tcx),1),(0,n._)("div",Bc,(0,r.zw)(A.name),1)])],46,pc)])))),128))])],512),[[o.F8,3==e.type_]]),(0,n.wy)((0,n._)("div",{onClick:A[3]||(A[3]=(0,o.iM)(((...A)=>e.setPreview&&e.setPreview(...A)),["stop"])),class:"subitOkPreviewBtn"},(0,r.zw)(e.$t("DesignDetailEnd.preview")),513),[[o.F8,1==e.type_||3==e.type_]]),2==e.type_&&null!=e.current?.printObject?.prints?.[0]?.path?((0,n.wg)(),(0,n.iD)("div",{key:0,onClick:A[4]||(A[4]=(0,o.iM)(((...A)=>e.setPrint&&e.setPrint(...A)),["stop"])),class:"subitOkPreviewBtn Guide_1_23"},(0,r.zw)(e.$t("DesignDetailEnd.Layout")),1)):2==e.type_&&null==e.current?.printObject?.prints?.[0]?.path?((0,n.wg)(),(0,n.iD)("div",{key:1,onClick:A[5]||(A[5]=(0,o.iM)(((...A)=>e.setPreview&&e.setPreview(...A)),["stop"])),class:"subitOkPreviewBtn"},(0,r.zw)(e.$t("DesignDetailEnd.preview")),1)):(0,n.kq)("",!0),e.moible?((0,n.wg)(),(0,n.j4)(d,{key:3,ref:"DesignPrintOperationMobile"},null,512)):((0,n.wg)(),(0,n.j4)(c,{key:2,ref:"DesignPrintOperation"},null,512))]),(0,n.wy)((0,n._)("div",wc,[(0,n.Wm)(u,{size:"large"})],512),[[o.F8,e.loadingShow]])],64)}const yc={class:"designOpenrtion_content"},Cc={class:"design_title_text"},bc=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),_c=[bc],Qc={class:"designOpenrtion_open"},Uc={class:"print_right"},Fc={class:"habit_Overal_Single"},xc={class:"habit_System_Designer"},Ec={class:"habit_System_Designer_text"},kc={class:"print_input"},Ic=["placeholder"],Sc={class:"designOpenrtion_nav"},Dc=["src","onClick"],Hc={class:"designOpenrtion_overall"},Lc=["src"],Oc={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},Mc={class:"designOpenrtion_imgMask"},Tc={class:"designOpenrtion_print"},Nc=["onMousedown","onClick"],Kc=["src"],Pc=["src"],Rc=["src"],Vc={class:"designOpenrtion_btn"},Gc=["onMousedown"],jc={class:"designOpenrtion_rotote"},zc=["onMousedown"],Zc=(0,n._)("i",{class:"fi fi-rr-arrows animtion1"},null,-1),Wc=(0,n._)("i",{class:"fi fi-rr-arrows animtion2"},null,-1),Yc=[Zc,Wc],Xc={class:"designOpenrtion_right"},Jc={class:"designOpenrtion_entirety_img"},$c=["src"],qc={class:"mark_loading"};function ed(e,A,t,i,s,a){const l=(0,n.up)("a-switch"),c=(0,n.up)("a-slider"),d=(0,n.up)("a-spin"),u=(0,n.up)("a-modal"),h=(0,n.Q2)("rotote");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(u,{class:(0,r.C_)(["designOpenrtion_modal Guide_1_24",[e.driver__.driver?"hideEvents":""]]),visible:e.designOpenrtion,"onUpdate:visible":A[13]||(A[13]=A=>e.designOpenrtion=A),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,keyboard:!1,mask:!0},{default:(0,n.w5)((()=>[(0,n._)("div",yc,[(0,n._)("div",Cc,[(0,n._)("div",null,(0,r.zw)(e.$t("DesignPrintOperation.Placement")),1)]),(0,n._)("div",{class:"design_closeIcon",onClick:A[0]||(A[0]=(0,o.iM)((A=>e.closeModal()),["stop"]))},_c),(0,n._)("div",Qc,[(0,n._)("div",Uc,[(0,n._)("div",Fc,[(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:!e.overallSingle}])},(0,r.zw)(e.$t("DesignPrintOperation.Overall")),3),(0,n.Wm)(l,{checked:e.overallSingle,"onUpdate:checked":A[1]||(A[1]=A=>e.overallSingle=A),onChange:e.setOveralSingle},null,8,["checked","onChange"]),(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:e.overallSingle}])},(0,r.zw)(e.$t("DesignPrintOperation.Single")),3)]),(0,n._)("div",{class:(0,r.C_)(["print_right show_print_right Guide_1_25",[e.driver__.driver?"showEvents":""]])},[(0,n.wy)((0,n._)("div",xc,[(0,n._)("div",Ec,(0,r.zw)(e.$t("DesignPrintOperation.Scale")),1),(0,n.Wm)(c,{id:"system_silder",value:e.systemDesignerPercentage,"onUpdate:value":A[2]||(A[2]=A=>e.systemDesignerPercentage=A),onAfterChange:e.systemDesigner,"tip-formatter":e.formatter},null,8,["value","onAfterChange","tip-formatter"])],512),[[o.F8,!e.overallSingle]]),(0,n.wy)((0,n._)("div",{onClick:A[3]||(A[3]=(...A)=>e.random&&e.random(...A)),class:"button_second"},(0,r.zw)(e.$t("DesignPrintOperation.Random")),513),[[o.F8,e.overallSingle]]),(0,n.wy)((0,n._)("div",kc,[(0,n.wy)((0,n._)("input",{class:"search_input",placeholder:e.$t("DesignPrintOperation.inputContent"),type:"Number","onUpdate:modelValue":A[4]||(A[4]=A=>e.printAmount=A),onInput:A[5]||(A[5]=(...A)=>e.setprintAmount&&e.setprintAmount(...A))},null,40,Ic),[[o.nr,e.printAmount]]),(0,n._)("i",{class:"fi fi-rr-trash",onClick:A[6]||(A[6]=(...A)=>e.deletePrint&&e.deletePrint(...A))})],512),[[o.F8,e.overallSingle]]),(0,n._)("div",Sc,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designOpenrtionList,((A,t)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["designOpenrtion_single",{active:!!e.printStyleList[t]?.designOpenrtionBtn&&e.printStyleList[t]?.designOpenrtionBtn}]),key:A},[(0,n._)("img",{src:A.path,onClick:i=>e.setpitch(A,t)},null,8,Dc)],2)),[[o.F8,e.overallSingle]]))),128)),(0,n.wy)((0,n._)("div",Hc,[(0,n._)("img",{src:e.designOpenrtionList[0].path},null,8,Lc)],512),[[o.F8,!e.overallSingle]])]),(0,n._)("div",{class:"subitOkPreviewBtn",onClick:A[7]||(A[7]=(0,o.iM)(((...A)=>e.setPreview&&e.setPreview(...A)),["stop"]))},(0,r.zw)(e.$t("DesignPrintOperation.preview")),1),(0,n._)("div",{class:"subitOkPreviewBtn Guide_1_25_1",onClick:A[8]||(A[8]=(0,o.iM)(((...A)=>e.setOK&&e.setOK(...A)),["stop"]))},"OK")],2)])]),(0,n._)("div",Oc,[(0,n._)("div",Mc,[(0,n.wy)((0,n._)("div",Tc,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designOpenrtionList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{key:A,style:(0,r.j5)([e.printStyleList?.[t]?.style]),onMousedown:(0,o.iM)((A=>e.itemMoveMousedown(t,A)),["stop"]),class:"modal_imgItem",onClick:i=>e.setpitch(A,t),ref_for:!0,ref:"content"},[(0,n._)("img",{crossOrigin:"anonymous",src:A?.path,style:(0,r.j5)({transform:`rotateZ(${e.printStyleList[t]?.transform?.rotateZ}deg)`}),class:"designOpenrtion_imgItme",draggable:"false"},null,12,Kc)],44,Nc)))),128))],512),[[o.F8,e.overallSingle]]),(0,n._)("img",{src:e.current?.path,alt:"",class:"designOpenrtion_sketch"},null,8,Pc),(0,n.wy)((0,n._)("img",{src:e.current?.layersObject?.[1]?.maskUrl,alt:"",class:"designOpenrtion_sketch_mask"},null,8,Rc),[[o.F8,e.overallSingle]]),(0,n._)("div",Vc,[e.overallSingle?((0,n.wg)(!0),(0,n.iD)(n.HY,{key:0},(0,n.Ko)(e.printStyleList,((t,i)=>((0,n.wg)(),(0,n.iD)("ul",{key:t,class:(0,r.C_)([{active:!!t?.designOpenrtionBtn&&t?.designOpenrtionBtn},"designOpenrtion_Mousingle"]),style:(0,r.j5)(t.style),onMousedown:(0,o.iM)((A=>e.itemMoveMousedown(i,A)),["stop"])},[(0,n._)("li",{class:"designOpenrtion_btn_top",onMousedown:A[9]||(A[9]=(0,o.iM)((A=>e.itemSizeMousedown("top",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_bottom",onMousedown:A[10]||(A[10]=(0,o.iM)((A=>e.itemSizeMousedown("bottom",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_left",onMousedown:A[11]||(A[11]=(0,o.iM)((A=>e.itemSizeMousedown("left",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_right",onMousedown:A[12]||(A[12]=(0,o.iM)((A=>e.itemSizeMousedown("right",A)),["stop"]))},null,32),(0,n.wy)((0,n._)("li",jc,null,512),[[h,[i,t.transform],void 0,{stop:!0}]])],46,Gc)))),128)):(0,n.kq)("",!0),(0,n.wy)((0,n._)("div",null,null,512),[[o.F8,!e.overallSingle]]),e.overallSingle?(0,n.kq)("",!0):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(e.printStyleList,((A,t)=>((0,n.wg)(),(0,n.iD)("ul",{key:A,class:(0,r.C_)([{active:!!A?.designOpenrtionBtn&&A?.designOpenrtionBtn},"designOpenrtion_Mouoverall"]),style:(0,r.j5)("left:"+A.style.left+";top:"+A.style.top),onMousedown:(0,o.iM)((A=>e.itemMoveMousedown(t,A)),["stop"])},Yc,46,zc)))),128))])])]),(0,n._)("div",Xc,[(0,n._)("div",Jc,[(0,n._)("img",{src:e.currentFullBodyView,alt:""},null,8,$c)])])]),(0,n.wy)((0,n._)("div",qc,[(0,n.Wm)(d,{size:"large"})],512),[[o.F8,e.loadingShow]])])),_:1},8,["class","visible"])])}var Ad=(0,n.aZ)({setup(e){let A=(0,W.iH)(!1),t=(0,W.iH)([]),i=(0,n.f3)("current"),r=(0,n.f3)("driver__"),o=(0,n.f3)("setRevocation"),s=(0,W.iH)(!1),a=(0,W.iH)(0),l=(0,W.iH)(1),c=(0,W.iH)(2),d=(0,W.iH)([{centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"auto",height:"auto",zIndex:1},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}]),u=(0,W.iH)(""),h=(0,W.iH)(),g=(0,W.iH)(0),p=(0,W.iH)({width:"",height:""}),f=(0,W.iH)({width:"",height:""}),m=(0,W.iH)(!1),B=(0,W.iH)(""),w=(0,W.iH)(!1),{t:v}=(0,Te.QT)();return{designOpenrtion:A,designOpenrtionList:t,overallSingle:s,systemDesignerPercentage:a,current:i,driver__:r,printAmount:l,printZIndex:c,printStyleList:d,direction:u,imgDom:h,imgDomIndex:g,print:p,sketch:f,loadingShow:m,setRevocation:o,t:v,currentFullBodyView:B,body:w}},data(){return{store:(0,Se.oR)()}},directives:{rotote:{mounted(e,A){e.addEventListener("mousedown",(t=>{let i=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[A.instance.imgDomIndex],n=!0,r=0,o=1;o=A.instance.printStyleList[A.instance.imgDomIndex].transform.scale,r=A.instance.printStyleList[A.instance.imgDomIndex].transform.rotateZ,e.style.transform="rotateZ("+r+"deg)",t.stopPropagation(),n=!0;var s=e.getBoundingClientRect();let a=s.x+s.width/2,l=s.y+s.height/2,c=A=>{if(n){let t=a,n=l,o=A.clientX-t,s=n-A.clientY;r=Math.atan2(o,s)*(180/Math.PI),i.firstElementChild.style.transform="rotateZ("+r+"deg)",e.style.transform="rotateZ("+r+"deg)"}};document.addEventListener("mousemove",c);let d=()=>{A.instance.printStyleList[A.instance.imgDomIndex].transform.rotateZ=r,n=!1,document.removeEventListener("mouseup",d),document.removeEventListener("mousemove",c)};document.addEventListener("mouseup",d)}))}}},methods:{init(){let e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.currentFullBodyView=e.currentFullBodyView?e.currentFullBodyView:e.designItemUrl,0==e.others.length&&(this.body=!0);let A=this.$parent;this.designOpenrtion=!0,this.clearModal(),this.designOpenrtionList=[],this.designOpenrtionList.push(...this.current.printObject.prints),this.overallSingle=A.overallSingle,this.systemDesignerPercentage=A.systemDesignerPercentage;let t=new Image;t.src=this.current.path,t.onload=()=>{this.sketch.width=t.width/10+"rem",this.sketch.height=t.height/10+"rem"};let i=new Image;i.src=this.current.printObject.prints[0].path,i.onload=()=>{let e=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0];this.sketch.width.replace(/rem/g,""),e.offsetWidth;this.print.width=i.width+"px",this.print.height=i.height+"px",this.printStyleList[0].style.width=i.width+"px",this.printStyleList[0].style.height=i.height+"px",this.printStyleList[0].designOpenrtionBtn=!1,(0,n.Y3)().then((()=>{this.designOpenrtionList[0].scale?this.designOpenrtionList.forEach(((e,A)=>{this.setTemplate(e,A),this.printAmount=this.printStyleList.length,this.overallSingle||(this.printAmount=1,this.setprintAmount()),this.current.printObject.ifSingle!=this.overallSingle&&this.refetchTemplate(0)})):this.refetchTemplate(0)}))}},systemDesigner(e){let A=this.$parent;A.systemDesignerPercentage=e},formatter(e){return 3*e+"%"},setOveralSingle(){let e=this.$parent;e.overallSingle=this.overallSingle,this.overallSingle?this.random():(this.printAmount=1,this.setprintAmount())},setpitch(e,A){this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.imgDomIndex=A,this.printStyleList[A].designOpenrtionBtn=!0,this.printStyleList[A].style.zIndex=this.printZIndex++},itemMoveMousedown(e,A){this.imgDomIndex=e,this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.overallSingle?this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[this.imgDomIndex]:this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_Mouoverall")[0];let t=Number(this.imgDom.children[0].style.transform?.split("scale(")[1]?.split(")")[0]),i=Number(this.imgDom.children[0].style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[e].designOpenrtionBtn=!0,this.printStyleList[e].style.zIndex=this.printZIndex++,this.printStyleList[e].transform={scale:t,rotateZ:i};let n=this.imgDom.getBoundingClientRect(),r=Number(this.printStyleList[e].style.left.replace(/px/g,"")),o=Number(this.printStyleList[e].style.top.replace(/px/g,""));this.printStyleList[e].centers.left=n.x+A.offsetX-r,this.printStyleList[e].centers.top=n.y+A.offsetY-o,document.addEventListener("mouseup",this.mouseup),document.addEventListener("mousemove",this.moveMousemove)},itemSizeMousedown(e,A){this.direction=e,this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[this.imgDomIndex];let t=Number(this.imgDom.firstChild.style.transform?.split("scale(")[1]?.split(")")[0]),i=Number(this.imgDom.firstChild.style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[this.imgDomIndex].designOpenrtionBtn=!0,this.printStyleList[this.imgDomIndex].transform={scale:t,rotateZ:i};let n=this.imgDom.getBoundingClientRect(),r=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_btn_top")[0].offsetWidth/2;"right"==this.direction||"bottom"==this.direction?(this.printStyleList[this.imgDomIndex].centers.left=n.x+A.offsetX-r,this.printStyleList[this.imgDomIndex].centers.top=n.y+A.offsetY-r):(this.printStyleList[this.imgDomIndex].centers.left=n.x+A.offsetX+n.width-r,this.printStyleList[this.imgDomIndex].centers.top=n.y+A.offsetY+n.height-r),document.addEventListener("mouseup",this.sizeMouseup),document.addEventListener("mousemove",this.sizeMousemove)},moveMousemove(e){let A=this.imgDom.getBoundingClientRect(),t=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_imgMask")[0];t=t.getBoundingClientRect();let i=e.x-this.printStyleList[this.imgDomIndex].centers.left+"px",n=e.y-this.printStyleList[this.imgDomIndex].centers.top+"px";this.printStyleList[this.imgDomIndex].style.left=i,this.printStyleList[this.imgDomIndex].style.top=n,this.overallSingle||(i.replace(/px/g,"")>=t.width-A.width&&(this.printStyleList[this.imgDomIndex].style.left=t.width-A.width+"px"),i.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.left="0px"),n.replace(/px/g,"")>=t.height-A.height&&(this.printStyleList[this.imgDomIndex].style.top=t.height-A.height+"px"),n.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.top="0px"))},sizeMousemove(e){let A,t,i=this.imgDom.getBoundingClientRect(),n=this.imgDom.parentNode,r=i.width,o=i.height,s=r/o,a=o/r;"right"==this.direction?(A=e.x-this.printStyleList[this.imgDomIndex].centers.left,t=(e.x-this.printStyleList[this.imgDomIndex].centers.left)*s,r=A+"px",o=A*a+"px"):"top"==this.direction?(this.printStyleList[this.imgDomIndex].style.top="auto",this.printStyleList[this.imgDomIndex].style.bottom=n.offsetHeight-i.height-this.imgDom.offsetTop+"px",A=(e.x-this.printStyleList[this.imgDomIndex].centers.left)*s,t=this.printStyleList[this.imgDomIndex].centers.top-e.y,o=t+"px",r=t*s+"px"):"bottom"==this.direction?(t=e.y-this.printStyleList[this.imgDomIndex].centers.top,o=t+"px",r=t*s+"px"):"left"==this.direction&&(this.printStyleList[this.imgDomIndex].style.left="auto",this.printStyleList[this.imgDomIndex].style.right=n.offsetWidth-i.width-this.imgDom.offsetLeft+"px",A=this.printStyleList[this.imgDomIndex].centers.left-e.x,r=A+"px",o=A*a+"px"),this.printStyleList[this.imgDomIndex].style.width=r,this.printStyleList[this.imgDomIndex].style.height=o},sizeMouseup(e){this.printStyleList[this.imgDomIndex].style={right:"auto",left:this.imgDom.offsetLeft+"px",bottom:"auto",top:this.imgDom.offsetTop+"px",height:this.imgDom.offsetHeight+"px",width:this.imgDom.offsetWidth+"px",zIndex:this.printZIndex},document.removeEventListener("mouseup",this.sizeMouseup),document.removeEventListener("mousemove",this.sizeMousemove)},mouseup(e){document.removeEventListener("mouseup",this.mouseup),document.removeEventListener("mousemove",this.moveMousemove)},setprintAmount(){if(this.printAmount<1)return void(this.printAmount=1);if(this.printAmount>20)return void(this.printAmount=20);if(this.printAmount>this.printStyleList.length){let e=this.printAmount-this.printStyleList.length;for(let A=0;A<e;A++)this.printStyleList.push(JSON.parse(JSON.stringify(this.printStyleList[this.printStyleList.length-1]))),this.printStyleList[this.printStyleList.length-1].transform.rotateZ=0,this.refetchTemplate(this.printStyleList.length-1),this.designOpenrtionList.push(this.current.printObject.prints[this.current.printObject.prints.length-1])}else{let e=this.printStyleList.length-this.printAmount;this.designOpenrtionList.splice(this.printStyleList.length-e,e),this.printStyleList.splice(this.printStyleList.length-e,e)}this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.printStyleList[this.printStyleList.length-1].designOpenrtionBtn=!0,this.imgDomIndex=this.printStyleList.length-1},deletePrint(){this.designOpenrtionList.length<=1||(this.designOpenrtionList.splice(this.imgDomIndex,1),this.printStyleList.splice(this.imgDomIndex,1),this.printAmount=this.designOpenrtionList.length)},random(){this.designOpenrtionList.forEach(((e,A)=>{this.refetchTemplate(A)}))},refetchTemplate(e){Math.trunc(360*Math.random()),Math.trunc(360*Math.random());let A,t,i=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0];this.print.width<this.print.height?(A=Math.trunc(Math.random()*(i?.width-i?.width/2))+i?.width/3,t=A/this.print.width.replace(/px/g,"")):(A=Math.trunc(Math.random()*(i?.height-i?.height/2))+i?.height/3,t=A/this.print.height.replace(/px/g,""));let n=i?.width-this.print.width.replace(/px/g,"")*t;this.overallSingle||(n=i?.width-this.print.width.replace(/px/g,"")*t/2);let r=i?.height-this.print.height.replace(/px/g,"")*t;this.printStyleList[e]={centers:{left:0,top:0},style:{left:Math.trunc(Math.random()*n)+1+"px",top:Math.trunc(Math.random()*r)+1+"px",right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")*t+"px",height:this.print.height.replace(/px/g,"")*t+"px",zIndex:this.printZIndex++},transform:{rotateZ:0!=this.printStyleList[e].transform.rotateZ?this.printStyleList[e].transform.rotateZ:0},designOpenrtionBtn:!1}},setTemplate(e,A){this.designOpenrtionList;let t,i=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/i.offsetWidth;t=this.print.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,"");let r=1,o=e.location[0]/n+"px",s=e.location[1]/n+"px";i.offsetWidth<e.location[0]/n&&(o=i.offsetWidth+"px"),i.offsetHeight<e.location[1]/n&&(s=i.offsetHeight+"px"),this.printStyleList[A]={centers:{left:0,top:0},style:{left:o,top:s,right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")/n*e.scale+"px",height:this.print.height.replace(/px/g,"")/n*e.scale+"px",zIndex:r++},transform:{rotateZ:e.angle},designOpenrtionBtn:!1}},computeZindex(){let e=JSON.parse(JSON.stringify(this.printStyleList));e.sort(((e,A)=>{var t=e["style"].zIndex,i=A["style"].zIndex;return t-i}));let A=1;return e.forEach((e=>{e.style.zIndex=A++})),this.computeSize(e)},computeSize(e){let A,t,i=document.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/i.offsetWidth,r=[];return e.forEach(((i,o)=>{this.overallSingle?(A=e[o].style.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,""),t=[e[o].style.left.replace(/px/g,"")*n,e[o].style.top.replace(/px/g,"")*n]):(A=3*this.systemDesignerPercentage/100,t=[e[o].style.left.replace(/px/g,"")*n,e[o].style.top.replace(/px/g,"")*n]);let s={angle:this.overallSingle?e[o].transform.rotateZ:0,location:t,priority:e[o].style.zIndex,scale:A,path:this.designOpenrtionList[o].path,minIOPath:this.designOpenrtionList[o].minIOPath};r.push(s)})),r},setPreview(){let e,A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.printStyleList[0].style.width.replace(/px/g,""),this.print.width.replace(/px/g,"");A.clothes.forEach(((A,t)=>{A.id==this.current.id&&(e=t)}));A.clothes.map((e=>e.type));let t=this.store.state.DesignDetailModule.designPreviewData;t.designSingleItemDTOList[e].printObject={ifSingle:this.overallSingle,prints:this.computeZindex()},t.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.designSingle,t).then((i=>{this.currentFullBodyView=i.currentFullBodyView,A.currentFullBodyView=i.currentFullBodyView,A.clothes[e].printObject.ifSingle=this.overallSingle,A.clothes[e].layersObject=i.clothes[e].layersObject,A.clothes[e].printObject.prints=this.computeZindex(),A.ifSubmit=!0,A.clothes.forEach(((e,A)=>{let t;-1==e.layersObject[0].imageCategory.indexOf("back")&&(t=e.layersObject[0],e.layersObject[0]=e.layersObject[1],e.layersObject[1]=t),e.layersObject[0].id=this.store.state.DesignDetailModule.designItemDetail.clothes[A].layersObject[0].id,e.layersObject[1].id=this.store.state.DesignDetailModule.designItemDetail.clothes[A].layersObject[1].id})),this.store.commit("setDesignItemDetail",A),this.store.commit("setDesignPreviewData",t),this.setRevocation(A,t),this.loadingShow=!1,this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}))})).catch((e=>{this.loadingShow=!1}))},setOK(){this.designOpenrtion=!1},clearModal(){this.printAmount=1,this.designOpenrtion=!0,this.printZIndex=2,this.imgDomIndex=0,this.designOpenrtionList=[],this.printStyleList.splice(1,this.printStyleList.length-1),this.printStyleList[0]={centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"auto",height:"auto",zIndex:1},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}},closeModal(){JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));let e=this;Po.Z.confirm({title:this.t("DesignPrintOperation.jsContent1"),icon:(0,n.Wm)(Ko.Z),okText:"Yes",cancelText:"No",mask:!1,centered:!0,onOk(){e.designOpenrtion=!1}})}}});const td=(0,Ke.Z)(Ad,[["render",ed]]);var id=td;const nd={class:"designOpenrtion_content"},rd={class:"design_title_text"},od=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),sd=[od],ad={class:"designOpenrtion_open"},ld={class:"print_right"},cd={class:"habit_Overal_Single"},dd={class:"habit_System_Designer"},ud=(0,n._)("div",{class:"habit_System_Designer_text"},"Scale",-1),hd={class:"print_input"},gd=["placeholder"],pd={class:"designOpenrtion_nav"},fd=["src","onClick"],md={class:"designOpenrtion_overall"},Bd=["src"],wd={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},vd={class:"designOpenrtion_imgMask"},yd={class:"designOpenrtion_print"},Cd=["onTouchstart","onClick"],bd=["src"],_d=["src"],Qd=["src"],Ud={class:"designOpenrtion_btn"},Fd=["onTouchstart"],xd={class:"designOpenrtion_rotote"},Ed=["onTouchstart"],kd=(0,n._)("i",{class:"fi fi-rr-arrows animtion1"},null,-1),Id=(0,n._)("i",{class:"fi fi-rr-arrows animtion2"},null,-1),Sd=[kd,Id],Dd={class:"designOpenrtion_right"},Hd={class:"designOpenrtion_entirety_img"},Ld=["src"],Od={class:"mark_loading"};function Md(e,A,t,i,s,a){const l=(0,n.up)("a-switch"),c=(0,n.up)("a-slider"),d=(0,n.up)("a-spin"),u=(0,n.up)("a-modal"),h=(0,n.Q2)("rotote");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(u,{class:(0,r.C_)(["designOpenrtion_modal Guide_1_24",[e.driver__.driver?"hideEvents":""]]),visible:e.designOpenrtion,"onUpdate:visible":A[13]||(A[13]=A=>e.designOpenrtion=A),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,keyboard:!1,mask:!0},{default:(0,n.w5)((()=>[(0,n._)("div",nd,[(0,n._)("div",rd,[(0,n._)("div",null,(0,r.zw)(e.$t("DesignPrintOperation.Placement")),1)]),(0,n._)("div",{class:"design_closeIcon",onClick:A[0]||(A[0]=(0,o.iM)((A=>e.closeModal()),["stop"]))},sd),(0,n._)("div",ad,[(0,n._)("div",ld,[(0,n._)("div",cd,[(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:!e.overallSingle}])},(0,r.zw)(e.$t("DesignPrintOperation.Overall")),3),(0,n.Wm)(l,{checked:e.overallSingle,"onUpdate:checked":A[1]||(A[1]=A=>e.overallSingle=A),onChange:e.setOveralSingle},null,8,["checked","onChange"]),(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:e.overallSingle}])},(0,r.zw)(e.$t("DesignPrintOperation.Single")),3)]),(0,n._)("div",{class:(0,r.C_)(["print_right show_print_right Guide_1_25",[e.driver__?.driver?"showEvents":""]])},[(0,n.wy)((0,n._)("div",dd,[ud,(0,n.Wm)(c,{id:"system_silder",value:e.systemDesignerPercentage,"onUpdate:value":A[2]||(A[2]=A=>e.systemDesignerPercentage=A),onAfterChange:e.systemDesigner,"tip-formatter":e.formatter},null,8,["value","onAfterChange","tip-formatter"])],512),[[o.F8,!e.overallSingle]]),(0,n.wy)((0,n._)("div",{onClick:A[3]||(A[3]=(...A)=>e.random&&e.random(...A)),class:"button_second"},(0,r.zw)(e.$t("DesignPrintOperation.Random")),513),[[o.F8,e.overallSingle]]),(0,n.wy)((0,n._)("div",hd,[(0,n.wy)((0,n._)("input",{class:"search_input",placeholder:e.$t("DesignPrintOperation.inputContent"),type:"Number","onUpdate:modelValue":A[4]||(A[4]=A=>e.printAmount=A),onInput:A[5]||(A[5]=(...A)=>e.setprintAmount&&e.setprintAmount(...A))},null,40,gd),[[o.nr,e.printAmount]]),(0,n._)("i",{class:"fi fi-rr-trash",onClick:A[6]||(A[6]=(...A)=>e.deletePrint&&e.deletePrint(...A))})],512),[[o.F8,e.overallSingle]]),(0,n._)("div",pd,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designOpenrtionList,((A,t)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["designOpenrtion_single",{active:!!e.printStyleList[t]?.designOpenrtionBtn&&e.printStyleList[t]?.designOpenrtionBtn}]),key:A},[(0,n._)("img",{src:A.path,onClick:i=>e.setpitch(A,t)},null,8,fd)],2)),[[o.F8,e.overallSingle]]))),128)),(0,n.wy)((0,n._)("div",md,[(0,n._)("img",{src:e.designOpenrtionList[0].path},null,8,Bd)],512),[[o.F8,!e.overallSingle]])]),(0,n._)("div",{class:"subitOkPreviewBtn",onClick:A[7]||(A[7]=(0,o.iM)(((...A)=>e.setPreview&&e.setPreview(...A)),["stop"]))},(0,r.zw)(e.$t("DesignPrintOperation.preview")),1),(0,n._)("div",{class:"subitOkPreviewBtn Guide_1_25_1",onClick:A[8]||(A[8]=(0,o.iM)(((...A)=>e.setOK&&e.setOK(...A)),["stop"]))},"OK")],2)])]),(0,n._)("div",wd,[(0,n._)("div",vd,[(0,n.wy)((0,n._)("div",yd,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designOpenrtionList,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{key:A,style:(0,r.j5)([e.printStyleList?.[t]?.style]),onTouchstart:(0,o.iM)((A=>e.itemMoveMousedown(t,A)),["stop"]),class:"modal_imgItem",onClick:i=>e.setpitch(A,t),ref_for:!0,ref:"content"},[(0,n._)("img",{crossOrigin:"anonymous",src:A?.path,style:(0,r.j5)({transform:`rotateZ(${e.printStyleList[t]?.transform?.rotateZ}deg)`}),class:"designOpenrtion_imgItme",draggable:"false"},null,12,bd)],44,Cd)))),128))],512),[[o.F8,e.overallSingle]]),(0,n._)("img",{src:e.current?.path,alt:"",class:"designOpenrtion_sketch"},null,8,_d),(0,n.wy)((0,n._)("img",{src:e.current?.layersObject?.[1]?.maskUrl,alt:"",class:"designOpenrtion_sketch_mask"},null,8,Qd),[[o.F8,e.overallSingle]]),(0,n._)("div",Ud,[e.overallSingle?((0,n.wg)(!0),(0,n.iD)(n.HY,{key:0},(0,n.Ko)(e.printStyleList,((t,i)=>((0,n.wg)(),(0,n.iD)("ul",{key:t,class:(0,r.C_)([{active:!!t?.designOpenrtionBtn&&t?.designOpenrtionBtn},"designOpenrtion_Mousingle"]),style:(0,r.j5)(t.style),onTouchstart:(0,o.iM)((A=>e.itemMoveMousedown(i,A)),["stop"])},[(0,n._)("li",{class:"designOpenrtion_btn_top",onTouchstart:A[9]||(A[9]=(0,o.iM)((A=>e.itemSizeMousedown("top",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_bottom",onTouchstart:A[10]||(A[10]=(0,o.iM)((A=>e.itemSizeMousedown("bottom",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_left",onTouchstart:A[11]||(A[11]=(0,o.iM)((A=>e.itemSizeMousedown("left",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_right",onTouchstart:A[12]||(A[12]=(0,o.iM)((A=>e.itemSizeMousedown("right",A)),["stop"]))},null,32),(0,n.wy)((0,n._)("li",xd,null,512),[[h,[i,t.transform],void 0,{stop:!0}]])],46,Fd)))),128)):(0,n.kq)("",!0),(0,n.wy)((0,n._)("div",null,null,512),[[o.F8,!e.overallSingle]]),e.overallSingle?(0,n.kq)("",!0):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(e.printStyleList,((A,t)=>((0,n.wg)(),(0,n.iD)("ul",{key:A,class:(0,r.C_)([{active:!!A?.designOpenrtionBtn&&A?.designOpenrtionBtn},"designOpenrtion_Mouoverall"]),style:(0,r.j5)("left:"+A.style.left+";top:"+A.style.top),onTouchstart:(0,o.iM)((A=>e.itemMoveMousedown(t,A)),["stop"])},Sd,46,Ed)))),128))])])]),(0,n._)("div",Dd,[(0,n._)("div",Hd,[(0,n._)("img",{src:e.currentFullBodyView,alt:""},null,8,Ld)])])]),(0,n.wy)((0,n._)("div",Od,[(0,n.Wm)(d,{size:"large"})],512),[[o.F8,e.loadingShow]])])),_:1},8,["visible","class"])])}var Td=(0,n.aZ)({setup(e){let A=(0,W.iH)(!1),t=(0,W.iH)([]),i=(0,n.f3)("driver__"),r=(0,n.f3)("current"),o=(0,n.f3)("setRevocation"),s=(0,W.iH)(!1),a=(0,W.iH)(0),l=(0,W.iH)(1),c=(0,W.iH)(2),d=(0,W.iH)([{centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"auto",height:"auto",zIndex:1},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}]),u=(0,W.iH)(""),h=(0,W.iH)(),g=(0,W.iH)(0),p=(0,W.iH)({width:"",height:""}),f=(0,W.iH)({width:"",height:""}),m=(0,W.iH)(!1),{t:B}=(0,Te.QT)();return{designOpenrtion:A,designOpenrtionList:t,overallSingle:s,systemDesignerPercentage:a,current:r,printAmount:l,printZIndex:c,printStyleList:d,direction:u,imgDom:h,imgDomIndex:g,print:p,sketch:f,loadingShow:m,setRevocation:o,t:B,driver__:i}},data(){return{store:(0,Se.oR)()}},directives:{rotote:{mounted(e,A){e.addEventListener("touchstart",(t=>{let i=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[A.instance.imgDomIndex],n=!0,r=0,o=1;o=A.instance.printStyleList[A.instance.imgDomIndex].transform.scale,r=A.instance.printStyleList[A.instance.imgDomIndex].transform.rotateZ,e.style.transform="rotateZ("+r+"deg)",t.stopPropagation(),n=!0;var s=e.getBoundingClientRect();let a=s.x+s.width/2,l=s.y+s.height/2,c=A=>{if(n){let t=a,n=l,o=A.targetTouches[0].clientX-t,s=n-A.targetTouches[0].clientY;r=Math.atan2(o,s)*(180/Math.PI),i.firstElementChild.style.transform="rotateZ("+r+"deg)",e.style.transform="rotateZ("+r+"deg)"}};document.addEventListener("touchmove",c);let d=()=>{A.instance.printStyleList[A.instance.imgDomIndex].transform.rotateZ=r,n=!1,document.removeEventListener("touchend",d),document.removeEventListener("touchmove",c)};document.addEventListener("touchend",d)}))}}},methods:{init(){let e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.currentFullBodyView=e.currentFullBodyView?e.currentFullBodyView:e.designItemUrl,0==e.others.length&&(this.body=!0);let A=this.$parent;this.designOpenrtion=!0,this.clearModal(),this.designOpenrtionList=[],this.designOpenrtionList.push(...this.current.printObject.prints),this.overallSingle=A.overallSingle,this.systemDesignerPercentage=A.systemDesignerPercentage;let t=new Image;t.src=this.current.path,t.onload=()=>{this.sketch.width=t.width/10+"rem",this.sketch.height=t.height/10+"rem"};let i=new Image;i.src=this.current.printObject.prints[0].path,i.onload=()=>{this.print.width=i.width+"px",this.print.height=i.height+"px",this.printStyleList[0].style.width=i.width+"px",this.printStyleList[0].style.height=i.height+"px",this.printStyleList[0].designOpenrtionBtn=!1,(0,n.Y3)().then((()=>{this.designOpenrtionList[0].scale?this.designOpenrtionList.forEach(((e,A)=>{this.setTemplate(e,A),this.printAmount=this.printStyleList.length,this.overallSingle||(this.printAmount=1,this.setprintAmount()),this.current.printObject.ifSingle!=this.overallSingle&&this.refetchTemplate(0)})):this.refetchTemplate(0)}))}},systemDesigner(e){let A=this.$parent;A.systemDesignerPercentage=e},formatter(e){return 3*e+"%"},setOveralSingle(){let e=this.$parent;e.overallSingle=this.overallSingle,this.overallSingle?this.random():(this.printAmount=1,this.setprintAmount())},setpitch(e,A){this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.imgDomIndex=A,this.printStyleList[A].designOpenrtionBtn=!0,this.printStyleList[A].style.zIndex=this.printZIndex++},itemMoveMousedown(e,A){this.imgDomIndex=e,this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.overallSingle?this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[this.imgDomIndex]:this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_Mouoverall")[0];let t=Number(this.imgDom.children[0].style.transform?.split("scale(")[1]?.split(")")[0]),i=Number(this.imgDom.children[0].style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[e].designOpenrtionBtn=!0,this.printStyleList[e].style.zIndex=this.printZIndex++,this.printStyleList[e].transform={scale:t,rotateZ:i};let n=this.imgDom.getBoundingClientRect(),r=Number(this.printStyleList[e].style.left.replace(/px/g,"")),o=Number(this.printStyleList[e].style.top.replace(/px/g,""));this.printStyleList[e].centers.left=n.x+A.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left-r,this.printStyleList[e].centers.top=n.y+A.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top-o,document.addEventListener("touchend",this.touchend),document.addEventListener("touchmove",this.moveMousemove)},itemSizeMousedown(e,A){this.direction=e,this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[this.imgDomIndex];let t=Number(this.imgDom.firstChild.style.transform?.split("scale(")[1]?.split(")")[0]),i=Number(this.imgDom.firstChild.style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[this.imgDomIndex].designOpenrtionBtn=!0,this.printStyleList[this.imgDomIndex].transform={scale:t,rotateZ:i};let n=this.imgDom.getBoundingClientRect(),r=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_btn_top")[0].offsetWidth/2;"right"==this.direction||"bottom"==this.direction?(this.printStyleList[this.imgDomIndex].centers.left=n.x+A.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left-r,this.printStyleList[this.imgDomIndex].centers.top=n.y+A.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top-r):(this.printStyleList[this.imgDomIndex].centers.left=n.x+A.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left+n.width-r,this.printStyleList[this.imgDomIndex].centers.top=n.y+A.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top+n.height-r,this.printStyleList[this.imgDomIndex].centers.right=this.imgDom.parentNode.offsetWidth-n.width-this.imgDom.offsetLeft,this.printStyleList[this.imgDomIndex].centers.bottom=this.imgDom.parentNode.offsetHeight-n.height-this.imgDom.offsetTop),document.addEventListener("touchend",this.sizeMouseup),document.addEventListener("touchmove",this.sizeMousemove)},moveMousemove(e){let A=this.imgDom.getBoundingClientRect(),t=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_imgMask")[0];t=t.getBoundingClientRect();let i=e.changedTouches[0].pageX-this.printStyleList[this.imgDomIndex].centers.left+"px",n=e.changedTouches[0].pageY-this.printStyleList[this.imgDomIndex].centers.top+"px";this.printStyleList[this.imgDomIndex].style.left=i,this.printStyleList[this.imgDomIndex].style.top=n,this.overallSingle||(i.replace(/px/g,"")>=t.width-A.width&&(this.printStyleList[this.imgDomIndex].style.left=t.width-A.width+"px"),i.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.left="0px"),n.replace(/px/g,"")>=t.height-A.height&&(this.printStyleList[this.imgDomIndex].style.top=t.height-A.height+"px"),n.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.top="0px"))},sizeMousemove(e){let A,t,i=this.imgDom.getBoundingClientRect(),n=(this.imgDom.parentNode,i.width),r=i.height,o=n/r,s=r/n;"right"==this.direction?(A=e.changedTouches[0].pageX-i.left,t=(e.changedTouches[0].pageX-i.left)*o,n=A+"px",r=A*s+"px"):"top"==this.direction?(this.printStyleList[this.imgDomIndex].style.top="auto",this.printStyleList[this.imgDomIndex].style.bottom=this.printStyleList[this.imgDomIndex].centers.bottom+"px",A=(e.changedTouches[0].pageX-this.printStyleList[this.imgDomIndex].centers.left)*o,t=this.printStyleList[this.imgDomIndex].centers.top-e.changedTouches[0].pageY,r=t+"px",n=t*o+"px"):"bottom"==this.direction?(t=e.changedTouches[0].pageY-i.top,r=t+"px",n=t*o+"px"):"left"==this.direction&&(this.printStyleList[this.imgDomIndex].style.left="auto",this.printStyleList[this.imgDomIndex].style.right=this.printStyleList[this.imgDomIndex].centers.right+"px",A=this.printStyleList[this.imgDomIndex].centers.left-e.changedTouches[0].pageX,n=A+"px",r=A*s+"px"),this.printStyleList[this.imgDomIndex].style.width=n,this.printStyleList[this.imgDomIndex].style.height=r},sizeMouseup(e){this.printStyleList[this.imgDomIndex].style={right:"auto",left:this.imgDom.offsetLeft+"px",bottom:"auto",top:this.imgDom.offsetTop+"px",height:this.imgDom.offsetHeight+"px",width:this.imgDom.offsetWidth+"px",zIndex:this.printZIndex},document.removeEventListener("touchend",this.sizeMouseup),document.removeEventListener("touchmove",this.sizeMousemove)},touchend(e){document.removeEventListener("touchend",this.touchend),document.removeEventListener("touchmove",this.moveMousemove)},setprintAmount(){if(this.printAmount<1)return void(this.printAmount=1);if(this.printAmount>20)return void(this.printAmount=20);if(this.printAmount>this.printStyleList.length){let e=this.printAmount-this.printStyleList.length;for(let A=0;A<e;A++)this.printStyleList.push(JSON.parse(JSON.stringify(this.printStyleList[this.printStyleList.length-1]))),this.printStyleList[this.printStyleList.length-1].transform.rotateZ=0,this.refetchTemplate(this.printStyleList.length-1),this.designOpenrtionList.push(this.current.printObject.prints[this.current.printObject.prints.length-1])}else{let e=this.printStyleList.length-this.printAmount;this.designOpenrtionList.splice(this.printStyleList.length-e,e),this.printStyleList.splice(this.printStyleList.length-e,e)}this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.printStyleList[this.printStyleList.length-1].designOpenrtionBtn=!0,this.imgDomIndex=this.printStyleList.length-1},deletePrint(){this.designOpenrtionList.length<=1||(this.designOpenrtionList.splice(this.imgDomIndex,1),this.printStyleList.splice(this.imgDomIndex,1),this.printAmount=this.designOpenrtionList.length)},random(){this.designOpenrtionList.forEach(((e,A)=>{this.refetchTemplate(A)}))},refetchTemplate(e){Math.trunc(360*Math.random()),Math.trunc(360*Math.random());let A,t,i=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0];this.print.width<this.print.height?(A=Math.trunc(Math.random()*(i?.width-i?.width/2))+i?.width/3,t=A/this.print.width.replace(/px/g,"")):(A=Math.trunc(Math.random()*(i?.height-i?.height/2))+i?.height/3,t=A/this.print.height.replace(/px/g,""));let n=i?.width-this.print.width.replace(/px/g,"")*t,r=i?.height-this.print.height.replace(/px/g,"")*t;this.printStyleList[e]={centers:{left:0,top:0},style:{left:Math.trunc(Math.random()*n)+1+"px",top:Math.trunc(Math.random()*r)+1+"px",right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")*t+"px",height:this.print.height.replace(/px/g,"")*t+"px",zIndex:this.printZIndex++},transform:{rotateZ:0!=this.printStyleList[e].transform.rotateZ?this.printStyleList[e].transform.rotateZ:0},designOpenrtionBtn:!1}},setTemplate(e,A){this.designOpenrtionList;let t,i=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/i.offsetWidth;t=this.print.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,"");let r=1,o=e.location[0]/n+"px",s=e.location[1]/n+"px";i.offsetWidth<e.location[0]/n&&(o=i.offsetWidth+"px"),i.offsetHeight<e.location[1]/n&&(s=i.offsetHeight+"px"),this.printStyleList[A]={centers:{left:0,top:0},style:{left:o,top:s,right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")/n*e.scale+"px",height:this.print.height.replace(/px/g,"")/n*e.scale+"px",zIndex:r++},transform:{rotateZ:e.angle},designOpenrtionBtn:!1}},computeZindex(){let e=JSON.parse(JSON.stringify(this.printStyleList));e.sort(((e,A)=>{var t=e["style"].zIndex,i=A["style"].zIndex;return t-i}));let A=1;return e.forEach((e=>{e.style.zIndex=A++})),this.computeSize(e)},computeSize(e){let A,t,i=document.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/i.offsetWidth,r=[];return e.forEach(((i,o)=>{this.overallSingle?(A=e[o].style.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,""),t=[e[o].style.left.replace(/px/g,"")*n,e[o].style.top.replace(/px/g,"")*n]):(A=3*this.systemDesignerPercentage/100,t=[e[o].style.left.replace(/px/g,"")*n,e[o].style.top.replace(/px/g,"")*n]);let s={angle:this.overallSingle?e[o].transform.rotateZ:0,location:t,priority:e[o].style.zIndex,scale:A,path:this.designOpenrtionList[o].path,minIOPath:this.designOpenrtionList[o].minIOPath};r.push(s)})),r},setPreview(){let e,A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.printStyleList[0].style.width.replace(/px/g,""),this.print.width.replace(/px/g,"");A.clothes.forEach(((A,t)=>{A.id==this.current.id&&(e=t)}));A.clothes.map((e=>e.type));let t=this.store.state.DesignDetailModule.designPreviewData;t.designSingleItemDTOList[e].printObject={ifSingle:this.overallSingle,prints:this.computeZindex()},t.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.designSingle,t).then((i=>{A.currentFullBodyView=i.currentFullBodyView,A.clothes[e].printObject.ifSingle=this.overallSingle,A.clothes[e].layersObject=i.clothes[e].layersObject,A.clothes[e].printObject.prints=this.computeZindex(),A.ifSubmit=!0,A.clothes.forEach(((e,A)=>{let t;-1==e.layersObject[0].imageCategory.indexOf("back")&&(t=e.layersObject[0],e.layersObject[0]=e.layersObject[1],e.layersObject[1]=t),e.layersObject[0].id=this.store.state.DesignDetailModule.designItemDetail.clothes[A].layersObject[0].id,e.layersObject[1].id=this.store.state.DesignDetailModule.designItemDetail.clothes[A].layersObject[1].id})),this.store.commit("setDesignItemDetail",A),this.store.commit("setDesignPreviewData",t),this.setRevocation(A,t),this.loadingShow=!1,this.designOpenrtion=!1,this.driver__?.driver&&(0,n.Y3)().then((()=>{driverObj__.moveNext()}))})).catch((e=>{this.loadingShow=!1}))},setOK(){this.designOpenrtion=!1},clearModal(){this.printAmount=1,this.designOpenrtion=!0,this.printZIndex=2,this.imgDomIndex=0,this.designOpenrtionList=[],this.printStyleList.splice(1,this.printStyleList.length-1),this.printStyleList[0]={centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"auto",height:"auto",zIndex:1},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}},closeModal(){JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));let e=this;Po.Z.confirm({title:this.t("DesignPrintOperation.jsContent1"),icon:(0,n.Wm)(Ko.Z),okText:"Yes",cancelText:"No",mask:!1,centered:!0,onOk(){e.designOpenrtion=!1}})}}});const Nd=(0,Ke.Z)(Td,[["render",Md]]);var Kd=Nd,Pd=(0,n.aZ)({props:["msg"],components:{Draggable:St(),Sketch:dr.Sketch,DesignPrintOperation:id,DesignPrintOperationMobile:Kd},setup(e){const A=(0,Se.oR)();let t=(0,W.iH)(0),i=(0,n.f3)("current"),r=(0,n.f3)("setRevocation"),o=(0,W.iH)({}),s=(0,n.f3)("driver__"),a=(0,n.f3)("moible"),l=(0,W.iH)(!1),c=(0,W.iH)(30),d=(0,W.iH)([{},{},{},{},{},{},{},{}]),u=(0,W.iH)(!1),{t:h}=(0,Te.QT)();return{store:A,current:i,setRevocation:r,sketchImg:o,driver__:s,moible:a,type_:t,overallSingle:l,systemDesignerPercentage:c,colorList:d,loadingShow:u,t:h}},data(){return{selectIndex:0,getRGBA:{},selectColor:{}}},methods:{init(e){this.type_=e,this.colorList[this.selectIndex]=this.$parent.selectColor,this.overallSingle=null!=this.current?.printObject?.ifSingle&&this.current?.printObject?.ifSingle,this.systemDesignerPercentage=this.current?.printObject?.scale?this.current?.printObject?.scale:30},setSketchImg(e){this.sketchImg.id_=e.id,this.sketchImg.path=e.url,this.sketchImg.minIOPath=e.minIOPath,this.sketchImg.type=e.level2Type},systemDesigner(e){this.current.printObject.scale=e},setOveralSingle(){this.current.printObject.ifSingle=this.overallSingle},formatter(e){return 3*e+"%"},setPrint(){if(this.current?.printObject?.prints?.[0]?.path){let e=(0,Le.S0)()?this.$refs.DesignPrintOperationMobile:this.$refs.DesignPrintOperation;e.init(),this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}))}else Ee.ZP.info(this.t("DesignDetailEnd.jsContent1"))},deleteFile(){this.current.printObject={}},selectColorItem(e,A){let t,i=this.$parent;this.selectIndex=e,this.$parent.selectIndex=e,this.$parent.selectColor.rgba.r==A?.rgba?.r&&this.$parent.selectColor.rgba.g==A?.rgba?.g&&this.$parent.selectColor.rgba.b==A?.rgba?.b||(t=A.rgba?.r?i.rgbaToHex([A.rgba.r,A.rgba.g,A.rgba.b,A.rgba.a]):"#FFFFFF",this.$parent.selectColor=A?.rgba?.r?{rgba:{r:A.rgba?.r,g:A.rgba?.g,b:A.rgba?.b,a:A.rgba?.a},hex:t}:{rgba:{r:255,g:255,b:255,a:1},hex:t},this.$parent.tcxColor="",this.$parent.pantongName="")},setSelectColorItem(e){let A=this.store.state.DesignDetailModule.designItemDetail,t=`${e.rgba.r},${e.rgba.g},${e.rgba.b},${e.rgba.a}`;this.current.color=t,A.clothes.forEach(((e,t)=>{e.id==this.current.id&&(A.clothes[t]=this.current)}))},setPreview(){let e,A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designPreviewData)),i=10;if(A.clothes.forEach(((A,t)=>{A.id==this.current.id&&(e=t),A.priority&&i<A.priority&&(i=A.priority)})),this.current.id||(t.designSingleItemDTOList[e].priority=i+=1),1==this.type_)t.designSingleItemDTOList[e].path!=this.sketchImg.minIOPath&&this.sketchImg.id_&&(t.designSingleItemDTOList[e].offset=[0,0],t.designSingleItemDTOList[e].scale=1),t.designSingleItemDTOList[e].id=this.sketchImg.id_?this.sketchImg.id_:this.current.id_,t.designSingleItemDTOList[e].path=this.sketchImg.minIOPath?this.sketchImg.minIOPath:this.current.minIOPath,t.designSingleItemDTOList[e].type=this.sketchImg.type?this.sketchImg.type:this.current.type;else if(2==this.type_)t.designSingleItemDTOList[e].printObject.ifSingle=!1,t.designSingleItemDTOList[e].printObject.prints=[];else if(3==this.type_){let A=`${this.$parent.selectColor.rgba.r} ${this.$parent.selectColor.rgba.g} ${this.$parent.selectColor.rgba.b}`;t.designSingleItemDTOList[e].color=A}t.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.designSingle,t).then((n=>{let r=!1;n.clothes.forEach((t=>{"body"!=t.type&&(t.id!=A.clothes[e].id&&t.id!=this.sketchImg.id_||(A.clothes[e].color=t.color,A.clothes[e].layersObject=t.layersObject,A.clothes[e].minIOPath=t.minIOPath,A.clothes[e].path=t.path,A.clothes[e].id=t.id,A.clothes[e].type=t.type,A.clothes[e].printObject=t.printObject,r=!0),this.current.id||(A.clothes[e].priority=i))})),A.currentFullBodyView=n.currentFullBodyView,A.ifSubmit=!0,A.clothes.forEach(((e,t)=>{let i;-1==e.layersObject[0].imageCategory.indexOf("back")&&(i=e.layersObject[0],e.layersObject[0]=e.layersObject[1],e.layersObject[1]=i),e.layersObject[0].id=A.clothes[t].layersObject[0].id,e.layersObject[1].id=A.clothes[t].layersObject[1].id})),this.loadingShow=!1,this.store.commit("setDesignItemDetail",A),this.store.commit("setDesignPreviewData",t),this.setRevocation(A,t)})).catch((e=>{this.loadingShow=!1}))}}});const Rd=(0,Ke.Z)(Pd,[["render",vc],["__scopeId","data-v-706b5c8c"]]);var Vd=Rd,Gd=(0,n.aZ)({props:["msg"],components:{Draggable:St(),Sketch:dr.Sketch,DesignDetailEnd:Vd,Chrome:dr.Chrome},setup(e){const A=(0,Se.oR)();let t=(0,W.iH)(1),i=(0,W.iH)(!1),r=(0,n.f3)("current"),o=(0,n.f3)("driver__"),s=(0,W.iH)(1),a=(0,W.iH)(""),l=[],c=(0,W.iH)(0),d=(0,W.iH)(10),u=(0,W.iH)(1),h=(0,W.iH)(!1),g=(0,W.iH)([]),p=(0,W.iH)([]),f=(0,W.iH)([]),m=(0,W.iH)([]),B=(0,W.iH)("Sketchboard"),w=(0,W.iH)({rgba:{}}),v=(0,W.iH)({}),y=(0,W.iH)({}),{t:C}=(0,Te.QT)();return{store:A,current:r,openClick:s,searchPictureName:a,disignTypeList:l,total:c,pageSize:d,currentPage:u,isShowLoading:h,clothesList:g,uploadList:p,apparelList:f,printList:m,selectCode:B,type_:t,select:i,selectColor:w,selectColorList:v,workspace:y,driver__:o,t:C}},data(){return{token:"",uploadUrl:"",upload:{isPin:0,gender:"",level1Type:"Sketchboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},indicator:(0,n.h)(xe.Z,{style:{fontSize:"2.4rem"},spin:!0}),designShowPrview:1,reviewColor:{},colorPickerVisible:!0,colorBlockHex:!0,getColorBg:!1,pantongName:"",pantongNameList:[],tcxColor:"",selectColorList:[],colorFileList:[],selectIndex:0,indicator:(0,n.h)(xe.Z,{style:{fontSize:"2.4rem"},spin:!0}),getPantongNameTime:!0,workspaceCom:{}}},directives:{observe:{mounted(e,A){const t=new IntersectionObserver(n,{root:null,threshold:[.5]});t.observe(e);let i=A.instance;function n(e,A){e.forEach((e=>{e.isIntersecting&&i.getLibraryList()}))}}}},computed:{getSketchLabel(e){return e=>{let A="";for(let t of this.disignTypeList)if(t.value===e){e=t.value;break}return A}},getSelectRGB(e){return e=>{let A=e.rgba,t={r:A?.r||0===A?.r?A?.r:255,g:A?.g||0===A?.g?A?.g:255,b:A?.b||0===A?.b?A?.b:255,a:A?.a||1===A?.a?A?.a:1,hex:void 0==e.hex?"#FFFFFF":e.hex};return 1==t.a&&0==t.a||(t.hex=e.hex8?e.hex8:e.hex),t}}},mounted(){},watch:{selectColor(e,A){let t=this.$refs.DesignDetailEnd;t.colorList[t.selectIndex]=e;let i=t.colorList.filter((e=>e&&Object.keys(e).length));this.setColorboardList(i),clearInterval(this.getPantongNameTime),this.getPantongNameTime=setTimeout((()=>{this.getPantongName(e.rgba)}),100)},workspaceCom(e,A){this.workspace=e,this.upload.gender=e.sexEnum.name,this.getPosition()}},mounted(){this.token=(0,He.ej)("token")||"",this.uploadUrl=(0,Le.M$)();const e=document.createElement("div");e.classList.add("vc-sketch-color-wrap");let A=document.getElementsByClassName("detail_modal_body_select")[0].getElementsByClassName("vc-chrome-fields-wrap")[0];A.appendChild(e),e.addEventListener("click",(async()=>{try{const e=new EyeDropper,A=await e.open();let t=A.sRGBHex.replace("#","");const i=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);this.selectColor={rgba:{r:i,g:n,b:r,a:1},hex:A.sRGBHex}}catch(e){Ee.ZP.info(this.t("DesignDetailAlter.jsContent1"))}}))},methods:{init(e){this.type_=e,this.select=!0;let A=this.current.color;this.selectColor={rgba:{r:Number(A.r),g:Number(A.g),b:Number(A.b),a:Number(A.a?A.a:1)},hex:this.rgbaToHex([A.r,A.g,A.b,A.a?A.a:1])},this.uploadList=[],1==e?(this.selectCode="Sketchboard",this.upload.level1Type="Sketchboard",this.uploadList=this.apparelList):2==e&&(this.selectCode="Printboard",this.upload.level1Type="Printboard",this.uploadList=this.printList),1!=e&&2!=e||(this.clothesList=[],this.getLibraryList());let t=this.$refs.DesignDetailEnd;t.init(e),this.workspaceCom=(0,n.Fl)((()=>this.store?.state?.Workspace?.workspace))},getPosition(){let e;e="Female"==this.workspace.sexEnum.name?"FemalePosition":"MalePosition",Ie.V.axiosGet(Ie.V.httpUrls.workspaceenumValues,{params:{enumName:e}}).then((e=>{e&&(this.disignTypeList=e)}))},deleteFile(e){this.uploadList.splice(e,1)},upFileUploadChange(e){let A=e.file,t=!0;if("done"===A.status){let e=JSON.parse(A.xhr.response);if(0==e.errCode){A.id=e.data.id,A.url=e.data.url,A.resData=e.data,A.designType=e.data.designType,A.level2Type=e.data.level2Type,A.minIOPath=A.resData.minIOPath;let t=this.uploadList.filter((e=>"done"===e.status));this.uploadList=t,"Sketchboard"==this.selectCode?this.apparelList=this.uploadList:this.printList=this.uploadList}else t=!1}else"error"===A.status&&(t=!1);if(!t){let e=JSON.parse(A.xhr.response),t=-1;this.uploadList.forEach(((e,i)=>{A.uid===e.uid&&(t=i)})),t>-1&&this.uploadList.splice(t,1),Ee.ZP.warning(e.errMsg)}},terminate(){let e=this.$refs.DesignDetailEnd;this.select=!1,e.selectIndex=0,e.type_=0,this.colorFileList=[],this.selectColorList=[],e.sketchImg={}},changePlace(){this.uploadList=[];let e=this.$refs.DesignDetailEnd;this.uploadList=[],this.apparelList=[],this.printList=[],e.colorList=[{},{},{},{},{},{},{},{}],e.sketchImg={},this.terminate()},showFileCategory(e){e.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(e,A){e.level2Type=A.name;for(let t of this.clothesList)t.categoryShow=!1;for(let t of this.uploadList)t.categoryShow=!1;this.setSketchLibrary(e)},hiddenFileCategory(){for(let e of this.clothesList)e.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchLibrary(e){let A={libraryId:e.id,level2Type:e.level2Type};Ie.V.axiosPost(Ie.V.httpUrls.setSketchLibrary,A).then((e=>{})).catch((e=>{}))},selectImgItem(e){if("Sketchboard"==this.selectCode){let A=this.$refs.DesignDetailEnd;A.setSketchImg(e)}else this.current.printObject.path=e?.url,this.current.printObject.id=e?.id,this.current.printObject.minIOPath=e.minIOPath,this.current.printObject.prints=[{minIOPath:e.minIOPath,path:e?.url}],this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}))},getLibraryList(){let e=this.store.state.Workspace.workspace,A={level1Type:this.selectCode,modelSex:e?.sex,page:this.currentPage,pictureName:this.searchPictureName,size:this.pageSize+this.clothesList.length};this.isShowLoading=!0,Ie.V.axiosPost(Ie.V.httpUrls.queryLibraryPage,A).then((e=>{this.clothesList=e.content,this.isShowLoading=!1,this.total=e.total})).catch((e=>{this.isShowLoading=!1}))},open(e){this.openClick=e,2==e&&(this.getLibraryList(),this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()})))},beforeUpload(e){const A="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;A||Ee.ZP.info(this.t("DesignDetailAlter.jsContent4"));const t=e.size/1024/1024<5;return t||Ee.ZP.info(this.t("DesignDetailAlter.jsContent5")),A&&t||ke.Z.LIST_IGNORE},colorDeleteFile(e){this.colorFileList.splice(e,1),this.selectColorList=[]},setUplpadColor(e){this.selectColor=e},rgbaToHex(e){let A="#";return e.forEach(((e,t)=>{A+=3==t?Math.round(255*e).toString(16):Number(e).toString(16).padStart(2,"0")})),A},getHsvColor(e){this.pantongName="";let A=[];e.forEach(((e,t)=>{let i=[e.rgba.r,e.rgba.g,e.rgba.b,e.rgba.a];A.push(i)}));let t=[];A.forEach((e=>{let A=(0,Le.py)(e);0==t.length||t[0].h;let i={h:Number(A[0]),s:Number(A[1]),v:Number(A[2])};t.push(i)})),Ie.V.axiosPost(Ie.V.httpUrls.getRgbByHsvBatch,t).then((e=>{e&&e.forEach((e=>{this.pantongNameList.push(e.name)}))})).catch((e=>{}))},getTcxColor(){if(!this.tcxColor)return;let e=this.$refs.DesignDetailEnd,A=/^\d{2}-\d{4}$/;A.test(this.tcxColor)?Ie.V.axiosGet(Ie.V.httpUrls.getRgbByTcx+"?tcx="+this.tcxColor).then((A=>{if(A&&A.name){let t=this.rgbaToHex([A.r,A.g,A.b,A.a?A.a:1]);this.reviewColor=A?.r+""?{rgba:{r:A.r,g:A.g,b:A.b,a:1},hex:t}:{hex:""},this.selectColor=this.reviewColor,e.colorList[e.selectIndex]={r:A.r,g:A.g,b:A.b},this.pantongName=A.name;let i=e.colorList.filter((e=>Object.keys(e).length));this.setColorboardList(i),this.getColorBg=!0}else Ee.ZP.info(this.t("DesignDetailAlter.jsContent6"))})):Ee.ZP.info(this.t("ColorboardUpload.jsContent5"))},getPantongName(e){if(!e.r)return;let A=[e.r,e.g,e.b],t=(0,Le.py)(A),i=[{h:t[0],s:t[1],v:t[2]}];return new Promise(((e,A)=>{Ie.V.axiosPost(Ie.V.httpUrls.getRgbByHsvBatch,i).then((A=>{A&&(this.selectColor.tcx=A[0].tcx,this.selectColor.name=A[0].name,e())})).catch((e=>{A()}))}))},setColorboardList(e){e.map((e=>{let A={id:"",name:"",rgbValue:e};return A}))},fileUploadChange(e){let A=e.file,t=A.originFileObj;var i=new FileReader;i.onload=e=>{let t;t="object"===typeof e.target.result?window.URL.createObjectURL(new Blob([e.target.result])):e.target.result,A.imgUrl=t,A.status="done",this.colorFileList.push(A),setTimeout((async()=>{const e=new Image;let t=this.$refs.colorImage;e.src=t[0].src,e.onload=async()=>{const t=new ColorThief;let i,n=[],r=t.getPalette(e,8),o={max:5,min:5};await De.setColor(r,A.imgUrl,o).then((e=>{e&&(i=e.ratio)})),i.sort(((e,A)=>{var t=e.ratio,i=A.ratio;return i-t})),r=[],i.forEach((e=>{r.push(e.rgb)})),r=r.join("&"),r=r.split("&");let s=r[0].split(","),a=this.rgbaToHex(s),l=[];new Set(r).forEach((e=>{l.push(e.split(","))})),l.forEach((e=>{let A=this.rgbaToHex(e);n.push({rgba:{r:e[0],g:e[1],b:e[2],a:1},hex:A})})),this.selectColorList=n,this.selectColor={rgba:{r:s[0],g:s[1],b:s[2],a:1},hex:a}}}),100)},i.readAsDataURL(t)}}});const jd=(0,Ke.Z)(Gd,[["render",Gl]]);var zd=jd;const Zd=e=>((0,n.dD)("data-v-2364b51a"),e=e(),(0,n.Cn)(),e),Wd={class:"magnifyingGlass"},Yd={class:"initial"},Xd={class:"initial_mask"},Jd=["src"],$d=Zd((()=>(0,n._)("div",{class:"initial_haver"},null,-1))),qd=Zd((()=>(0,n._)("div",{class:"big"},null,-1)));function eu(e,A,t,i,r,o){const s=(0,n.Q2)("mousemove");return(0,n.wg)(),(0,n.iD)("div",Wd,[(0,n._)("div",Yd,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",Xd,[(0,n._)("img",{class:"initial_img",src:e.designItemDetailUrl,alt:""},null,8,Jd),$d])),[[s]])]),qd])}var Au=t(7849),tu=t(4924),iu=(0,n.aZ)({components:{DownOutlined:Au.Z,UserOutlined:tu.Z},props:["designItemDetailUrl"],setup(){return{}},watch:{},data(){return{}},mounted(){},directives:{mousemove:{mounted(e,A){if((0,Le.S0)()){let A=t=>{const i=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_haver"),n=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_img"),r=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".big"),o=i.getBoundingClientRect().width,s=r.getBoundingClientRect().width,a=s/o;r.style.backgroundImage=`url(${n.src})`;const{left:l,top:c}=n.getBoundingClientRect(),d=n.getBoundingClientRect().height,u=n.getBoundingClientRect().width,{width:h,height:g}=i.getBoundingClientRect();let p=e=>{const A=e.targetTouches[0].pageX-l,t=e.targetTouches[0].pageY-c,n=(h/2-A)*a,o=(g/2-t)*a,s=u*a,p=d*a;i.style.top=t-g/2+"px",i.style.left=A-h/2+"px",r.style.backgroundPosition=`${n}px ${o}px`,r.style.backgroundSize=`${s}px ${p}px`};document.addEventListener("touchmove",p),e.addEventListener("touchend",(()=>{document.removeEventListener("touchmove",p),document.removeEventListener("touchstart",A)}))};e.addEventListener("touchstart",A)}else{let A=t=>{const i=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_haver"),n=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_img"),r=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".big"),o=i.getBoundingClientRect().width,s=r.getBoundingClientRect().width,a=s/o;r.style.backgroundImage=`url(${n.src})`;const{left:l,top:c}=n.getBoundingClientRect(),d=n.getBoundingClientRect().height,u=n.getBoundingClientRect().width,{width:h,height:g}=i.getBoundingClientRect();let p=e=>{const A=e.clientX-l,t=e.clientY-c,n=(h/2-A)*a,o=(g/2-t)*a,s=u*a,p=d*a;i.style.top=t-g/2+"px",i.style.left=A-h/2+"px",r.style.backgroundPosition=`${n}px ${o}px`,r.style.backgroundSize=`${s}px ${p}px`};document.addEventListener("mousemove",p),e.addEventListener("mouseout",(()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseover",A)}))};e.addEventListener("mouseover",A)}}}},methods:{handleMouseMove(e){}}});const nu=(0,Ke.Z)(iu,[["render",eu],["__scopeId","data-v-2364b51a"]]);var ru=nu;const ou={class:"design_compile_content",id:"design_compile_content"},su={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},au={class:"detail_modal_body_nav"},lu=["onClick"],cu=["src"],du=["onMousedown","onClick"],uu=["src"],hu=["onMousedown","onClick"],gu=["src"],pu={class:"designOpenrtion_btn"},fu=["onMousedown"];function mu(e,A,t,i,s,a){const l=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",ou,[(0,n._)("div",su,[(0,n._)("div",au,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designItemDetail?.clothes,((A,t)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)({active:A.clothesOpen}),onClick:A=>e.clothesOpen(t)},[(0,n._)("img",{src:A?.path,alt:""},null,8,cu)],10,lu)),[[o.F8,A.id]]))),256))]),(0,n._)("div",{class:"designOpenrtion_imgMask",style:(0,r.j5)(e.frontBack?.body?.style)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.back,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"designOpenrtion_print",onMousedown:(0,o.iM)((A=>e.itemMoveMousedown(t,A)),["stop"]),onClick:i=>e.setpitch(A,t),style:(0,r.j5)(e.frontBack.front[t].style)},[(0,n._)("img",{style:(0,r.j5)(A.imageUrl?"":"display:none;"),src:A.imageUrl,alt:""},null,12,uu)],44,du)))),256)),(0,n.wy)(((0,n.wg)(),(0,n.iD)("img",{class:"perview_img",style:(0,r.j5)("width:"+e.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";height:"+e.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";"),key:e.designItemDetail.designItemUrl},null,4)),[[l,e.frontBack?.body?.layersObject?.[0].imageUrl||""]]),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"detail_modal_item_front",onMousedown:(0,o.iM)((A=>e.itemMoveMousedown(t,A)),["stop"]),onClick:i=>e.setpitch(A,t),style:(0,r.j5)(A.style)},[(0,n._)("img",{src:A.imageUrl,alt:""},null,8,gu)],44,hu)))),256)),(0,n._)("div",pu,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((t,i)=>((0,n.wg)(),(0,n.iD)("ul",{key:t,class:(0,r.C_)([{active:t.designOpenrtionBtn},"designOpenrtion_btn"]),style:(0,r.j5)(t.style),onMousedown:(0,o.iM)((A=>e.itemMoveMousedown(i,A)),["stop"])},[(0,n._)("li",{class:"designOpenrtion_btn_top",onMousedown:A[0]||(A[0]=(0,o.iM)((A=>e.itemSizeMousedown("top",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_bottom",onMousedown:A[1]||(A[1]=(0,o.iM)((A=>e.itemSizeMousedown("bottom",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_left",onMousedown:A[2]||(A[2]=(0,o.iM)((A=>e.itemSizeMousedown("left",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_right",onMousedown:A[3]||(A[3]=(0,o.iM)((A=>e.itemSizeMousedown("right",A)),["stop"]))},null,32)],46,fu)))),128))])],4),(0,n._)("div",{onClick:A[4]||(A[4]=(...A)=>e.setPreviewData&&e.setPreviewData(...A)),class:"subitOkPreviewBtn"},"OK")]),(0,n._)("div",{class:"designOpenrtion_imgMask_open",onClick:A[5]||(A[5]=(0,o.iM)(((...A)=>e.deleteBorder&&e.deleteBorder(...A)),["stop"]))})])}var Bu=(0,n.aZ)({setup(e){const A=(0,Se.oR)();let t=(0,n.Fl)((()=>A.state.DesignDetailModule.designItemDetail)),i=(0,n.f3)("current"),r=(0,n.f3)("setRevocation"),o=(0,W.iH)(4),s=(0,W.iH)([{centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"100px",height:"100px"},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}]),a=(0,W.iH)(""),l=(0,W.iH)(),c=(0,W.iH)(2),d=(0,W.iH)({});return{designItemDetail:t,current:i,printZIndex:o,printStyleList:s,direction:a,imgDom:l,imgDomIndex:c,frontBack:d,setRevocation:r}},data(){return{loadingShow:!1,store:(0,Se.oR)()}},methods:{init(){this.$parent;this.printStyleList.push({centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"100px",height:"100px"},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}),this.setImgSize()},async setImgSize(){let e,A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),t=[],i=[];A.others.forEach((A=>{"Body"==A.type&&(e=A)}));let n=await this.setPostition(e.layersObject[0]?.imageUrl);A.clothes.forEach(((e,A)=>{for(let r=e.layersObject.length-1;r>=0;r--)e.layersObject[r].style={top:e.layersObject[r].position?.[0]*n+"px",left:e.layersObject[r].position?.[1]*n+"px",width:e.layersObject[r].imageSize?.[0]*n+"px",height:e.layersObject[r].imageSize?.[1]*n+"px"},e.layersObject[r].centers={left:0,top:0},e.layersObject[r].designOpenrtionBtn=!1,-1==e.layersObject[r].imageCategory.indexOf("back")?(t[A]=e.layersObject[r],t[A].style.zIndex=e.priority,t[A].id=e.id):(i[A]=e.layersObject[r],i[A].style.zIndex=e.priority,i[A].id=e.id),this.printZIndex<e.priority&&(this.printZIndex=e.priority);this.printZIndex++}));document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("perview_img")[0];e.style={width:e.layersObject[0].imageSize?.[0]*n+"px",height:e.layersObject[0].imageSize?.[1]*n+"px"},this.frontBack={front:t,back:i,body:e}},async setPostition(e){let A=await n(e),t=document.getElementsByClassName("designOpenrtion_imgMask")[0];const i=t?.offsetHeight/A.height;function n(e){return new Promise(((A,t)=>{const i=new Image;i.onload=()=>{A(i)},i.onerror=t,i.src=e}))}return i},setpitch(e,A){this.frontBack.front.forEach((e=>{e.designOpenrtionBtn=!1})),this.frontBack.front[A].designOpenrtionBtn=!0,this.frontBack.front[A].style.zIndex=this.printZIndex++,this.frontBack.back[A].style.zIndex=this.printZIndex,this.clothesOpenActive(A)},itemMoveMousedown(e,A){this.imgDomIndex=e,this.frontBack.front.forEach((e=>{e.designOpenrtionBtn=!1})),this.clothesOpenActive(e);let t=A||window.event;this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[e].designOpenrtionBtn=!0,this.frontBack.front[e].style.zIndex=this.printZIndex++,this.frontBack.back[e].style.zIndex=this.printZIndex;let i=this.imgDom.getBoundingClientRect(),n=Number(this.frontBack.front[e].style.left.replace(/px/g,"")),r=Number(this.frontBack.front[e].style.top.replace(/px/g,""));this.frontBack.front[e].centers.left=i.x+t.offsetX-n,this.frontBack.front[e].centers.top=i.y+t.offsetY-r,document.addEventListener("mouseup",this.mouseup),document.addEventListener("mousemove",this.moveMousemove)},itemSizeMousedown(e,A){this.direction=e,this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[this.imgDomIndex].designOpenrtionBtn=!0;let t=this.imgDom.getBoundingClientRect(),i=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_btn_top")[0].offsetWidth/2;"right"==this.direction||"bottom"==this.direction?(this.frontBack.front[this.imgDomIndex].centers.left=t.x+A.offsetX-i,this.frontBack.front[this.imgDomIndex].centers.top=t.y+A.offsetY-i):(this.frontBack.front[this.imgDomIndex].centers.left=t.x+A.offsetX+t.width-i,this.frontBack.front[this.imgDomIndex].centers.top=t.y+A.offsetY+t.height-i),document.addEventListener("mouseup",this.sizeMouseup),document.addEventListener("mousemove",this.sizeMousemove)},moveMousemove(e){this.imgDom.getBoundingClientRect(),document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_imgMask")[0].getBoundingClientRect();let A=e.x-this.frontBack.front[this.imgDomIndex].centers.left+"px",t=e.y-this.frontBack.front[this.imgDomIndex].centers.top+"px";this.frontBack.front[this.imgDomIndex].style.left=A,this.frontBack.front[this.imgDomIndex].style.top=t},sizeMousemove(e){let A,t,i=this.imgDom.getBoundingClientRect(),n=this.imgDom.parentNode,r=i.width,o=i.height,s=o/r;"right"==this.direction?(A=e.x-this.frontBack.front[this.imgDomIndex].centers.left,t=(e.x-this.frontBack.front[this.imgDomIndex].centers.left)*s,r=A+"px",o=A*s+"px"):"top"==this.direction?(s=r/o,this.frontBack.front[this.imgDomIndex].style.top="auto",this.frontBack.front[this.imgDomIndex].style.bottom=n.offsetHeight-i.height-this.imgDom.offsetTop+"px",A=(e.x-this.frontBack.front[this.imgDomIndex].centers.left)*s,t=this.frontBack.front[this.imgDomIndex].centers.top-e.y,o=t+"px",r=t*s+"px"):"bottom"==this.direction?(s=r/o,t=e.y-this.frontBack.front[this.imgDomIndex].centers.top,o=t+"px",r=t*s+"px"):"left"==this.direction&&(this.frontBack.front[this.imgDomIndex].style.left="auto",this.frontBack.front[this.imgDomIndex].style.right=n.offsetWidth-i.width-this.imgDom.offsetLeft+"px",A=this.frontBack.front[this.imgDomIndex].centers.left-e.x,r=A+"px",o=A*s+"px"),this.frontBack.front[this.imgDomIndex].style.width=r,this.frontBack.front[this.imgDomIndex].style.height=o},sizeMouseup(e){this.frontBack.front[this.imgDomIndex].style={right:"auto",left:this.imgDom.offsetLeft+"px",bottom:"auto",top:this.imgDom.offsetTop+"px",height:this.imgDom.offsetHeight+"px",width:this.imgDom.offsetWidth+"px",zIndex:this.printZIndex},this.frontBack.back[this.imgDomIndex].style.zIndex=this.printZIndex,document.removeEventListener("mouseup",this.sizeMouseup),document.removeEventListener("mousemove",this.sizeMousemove)},mouseup(e){document.removeEventListener("mouseup",this.mouseup),document.removeEventListener("mousemove",this.moveMousemove)},clearModal(){this.printZIndex=2,this.imgDomIndex=0,this.clothes=[],this.printStyleList.splice(1,this.printStyleList.length-1)},capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)},setPreviewData(){this.$emit("setSubmit","preview")},deleteBorder(){this.frontBack?.front?.forEach((e=>{e.designOpenrtionBtn=!1}))},clothesOpen(e){this.imgDomIndex=e,this.clothesOpenActive(e),this.setpitch("",e)},clothesOpenActive(e){this.designItemDetail.clothes.forEach((e=>{e.clothesOpen=!1})),this.designItemDetail.clothes[e].clothesOpen=!0},sort(e){return e.sort(((e,A)=>{var t=e.style.zIndex,i=A.style.zIndex;return t-i})),e},async setPreview(e){let A=this.frontBack.body.layersObject[0].imageSize[0]/this.frontBack.body.style.width.replace(/px/g,""),t=(this.store.state.DesignDetailModule.designItemDetail,this.sort(JSON.parse(JSON.stringify(this.frontBack.front)))),i=10;t.forEach((e=>{e.priority=i++})),e.designSingleItemDTOList.forEach((e=>{let i=t,n=t[1].imageCategory;t.forEach((t=>{t.imageCategory.split("_")[0];if(e.id==t.id){let i=(t?.style?.top.replace(/px/g,"")*A).toFixed(0)-t?.position[0],n=(t?.style?.left.replace(/px/g,"")*A).toFixed(0)-t?.position[1],r=t?.imageSize?Number((t?.style?.width.replace(/px/g,"")*A/(t?.imageSize[0]/t.scale)).toFixed(2)):1;e.scale=r;let o=0==i?e.offset[1]:i+e.offset[1],s=0==n?e.offset[0]:n+e.offset[0];e.offset=[s,o],e.priority=t.priority}})),e.type==this.capitalizeFirstLetter(n)&&(e.scale=i?.imageSize?Number((i?.style?.width.replace(/px/g,"")*A/i?.imageSize[0]).toFixed(2)):1)})),Ie.V.axiosPost(Ie.V.httpUrls.designSingle,e).then((A=>{this.$parent.loadingShow=!1;let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));t.designItemUrl=A.designItemUrl,t.ifSubmit=!0,t.currentFullBodyView=A.currentFullBodyView,A.clothes.forEach((e=>{t.clothes.forEach((A=>{e.id===A.id&&(A.layersObject=e.layersObject,A.priority=e.layersObject[0].priority)}))})),this.$emit("setDesignCoverage"),this.store.commit("setDesignItemDetail",t),this.setRevocation(t,e)})).catch((e=>{}))}}});const wu=(0,Ke.Z)(Bu,[["render",mu],["__scopeId","data-v-46687950"]]);var vu=wu;const yu={class:"design_compile_content",id:"design_compile_content"},Cu={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},bu={class:"detail_modal_body_nav"},_u=["onClick"],Qu=["src"],Uu=["onTouchstart","onClick"],Fu=["src"],xu=["onTouchstart","onClick"],Eu=["src"],ku={class:"designOpenrtion_btn"},Iu=["onTouchstart"];function Su(e,A,t,i,s,a){const l=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",yu,[(0,n._)("div",Cu,[(0,n._)("div",bu,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designItemDetail?.clothes,((A,t)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)({active:A.clothesOpen}),onClick:A=>e.clothesOpen(t)},[(0,n._)("img",{src:A?.path,alt:""},null,8,Qu)],10,_u)),[[o.F8,A.id]]))),256))]),(0,n._)("div",{class:"designOpenrtion_imgMask",style:(0,r.j5)(e.frontBack?.body?.style)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.back,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"designOpenrtion_print",onTouchstart:(0,o.iM)((A=>e.itemMoveMousedown(t,A)),["stop"]),onClick:i=>e.setpitch(A,t),style:(0,r.j5)(e.frontBack.front[t].style)},[(0,n._)("img",{style:(0,r.j5)(A.imageUrl?"":"display:none;"),src:A.imageUrl,alt:""},null,12,Fu)],44,Uu)))),256)),(0,n.wy)(((0,n.wg)(),(0,n.iD)("img",{class:"perview_img",style:(0,r.j5)("width:"+e.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";height:"+e.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";"),key:e.designItemDetail.designItemUrl},null,4)),[[l,e.frontBack?.body?.layersObject?.[0].imageUrl||""]]),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((A,t)=>((0,n.wg)(),(0,n.iD)("div",{class:"detail_modal_item_front",onTouchstart:(0,o.iM)((A=>e.itemMoveMousedown(t,A)),["stop"]),onClick:i=>e.setpitch(A,t),style:(0,r.j5)(A.style)},[(0,n._)("img",{src:A.imageUrl,alt:""},null,8,Eu)],44,xu)))),256)),(0,n._)("div",ku,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((t,i)=>((0,n.wg)(),(0,n.iD)("ul",{key:t,class:(0,r.C_)([{active:t.designOpenrtionBtn},"designOpenrtion_btn"]),style:(0,r.j5)(t.style),onTouchstart:(0,o.iM)((A=>e.itemMoveMousedown(i,A)),["stop"])},[(0,n._)("li",{class:"designOpenrtion_btn_top",onTouchstart:A[0]||(A[0]=(0,o.iM)((A=>e.itemSizeMousedown("top",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_bottom",onTouchstart:A[1]||(A[1]=(0,o.iM)((A=>e.itemSizeMousedown("bottom",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_left",onTouchstart:A[2]||(A[2]=(0,o.iM)((A=>e.itemSizeMousedown("left",A)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_right",onTouchstart:A[3]||(A[3]=(0,o.iM)((A=>e.itemSizeMousedown("right",A)),["stop"]))},null,32)],46,Iu)))),128))])],4),(0,n._)("div",{onClick:A[4]||(A[4]=(...A)=>e.setPreviewData&&e.setPreviewData(...A)),class:"subitOkPreviewBtn"},"OK")]),(0,n._)("div",{class:"designOpenrtion_imgMask_open",onClick:A[5]||(A[5]=(0,o.iM)(((...A)=>e.deleteBorder&&e.deleteBorder(...A)),["stop"]))})])}var Du=(0,n.aZ)({setup(e){const A=(0,Se.oR)();let t=(0,n.Fl)((()=>A.state.DesignDetailModule.designItemDetail)),i=(0,n.f3)("current"),r=(0,n.f3)("setRevocation"),o=(0,W.iH)(4),s=(0,W.iH)([{centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"100px",height:"100px"},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}]),a=(0,W.iH)(""),l=(0,W.iH)(),c=(0,W.iH)(0),d=(0,W.iH)({});return{designItemDetail:t,current:i,printZIndex:o,printStyleList:s,direction:a,imgDom:l,imgDomIndex:c,frontBack:d,setRevocation:r}},data(){return{loadingShow:!1,store:(0,Se.oR)()}},methods:{init(){this.$parent;this.printStyleList.push({centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"100px",height:"100px"},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}),this.setImgSize()},async setImgSize(){let e,A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),t=[],i=[];A.others.forEach((A=>{"Body"==A.type&&(e=A)}));let n=await this.setPostition(e.layersObject[0]?.imageUrl);A.clothes.forEach(((e,A)=>{for(let r=e.layersObject.length-1;r>=0;r--)e.layersObject[r].style={top:e.layersObject[r].position?.[0]*n+"px",left:e.layersObject[r].position?.[1]*n+"px",width:e.layersObject[r].imageSize?.[0]*n+"px",height:e.layersObject[r].imageSize?.[1]*n+"px"},e.layersObject[r].centers={left:0,top:0},e.layersObject[r].designOpenrtionBtn=!1,-1==e.layersObject[r].imageCategory.indexOf("back")?(t[A]=e.layersObject[r],t[A].style.zIndex=e.priority,t[A].id=e.id):(i[A]=e.layersObject[r],i[A].style.zIndex=e.priority,i[A].id=e.id),this.printZIndex<e.priority&&(this.printZIndex=e.priority);this.printZIndex++}));document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("perview_img")[0];e.style={width:e.layersObject[0].imageSize?.[0]*n+"px",height:e.layersObject[0].imageSize?.[1]*n+"px"},this.frontBack={front:t,back:i,body:e}},async setPostition(e){let A=await n(e),t=document.getElementsByClassName("designOpenrtion_imgMask")[0];const i=t?.offsetHeight/A.height;function n(e){return new Promise(((A,t)=>{const i=new Image;i.onload=()=>{A(i)},i.onerror=t,i.src=e}))}return i},setpitch(e,A){this.frontBack.front.forEach((e=>{e.designOpenrtionBtn=!1})),this.frontBack.front[A].designOpenrtionBtn=!0,this.frontBack.front[A].style.zIndex=this.printZIndex++,this.frontBack.back[A].style.zIndex=this.printZIndex,this.clothesOpenActive(A)},itemMoveMousedown(e,A){this.imgDomIndex=e,this.frontBack.front.forEach((e=>{e.designOpenrtionBtn=!1})),this.clothesOpenActive(e);let t=A||window.event;this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[e].designOpenrtionBtn=!0,this.frontBack.front[e].style.zIndex=this.printZIndex++,this.frontBack.back[e].style.zIndex=this.printZIndex;let i=this.imgDom.getBoundingClientRect(),n=Number(this.frontBack.front[e].style.left.replace(/px/g,"")),r=Number(this.frontBack.front[e].style.top.replace(/px/g,""));this.frontBack.front[e].centers.left=i.x+t.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left-n,this.frontBack.front[e].centers.top=i.y+t.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top-r,document.addEventListener("touchend",this.touchend),document.addEventListener("touchmove",this.moveMousemove)},itemSizeMousedown(e,A){this.direction=e,this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[this.imgDomIndex].designOpenrtionBtn=!0;let t=this.imgDom.getBoundingClientRect(),i=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_btn_top")[0].offsetWidth/2;"right"==this.direction||"bottom"==this.direction?(this.frontBack.front[this.imgDomIndex].centers.left=t.x+A.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left-i,this.frontBack.front[this.imgDomIndex].centers.top=t.y+A.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top-i):(this.frontBack.front[this.imgDomIndex].centers.left=t.x+A.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left+t.width-i,this.frontBack.front[this.imgDomIndex].centers.top=t.y+A.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top+t.height-i,this.frontBack.front[this.imgDomIndex].centers.right=this.imgDom.parentNode.offsetWidth-t.width-this.imgDom.offsetLeft,this.frontBack.front[this.imgDomIndex].centers.bottom=this.imgDom.parentNode.offsetHeight-t.height-this.imgDom.offsetTop),document.addEventListener("touchend",this.sizeMouseup),document.addEventListener("touchmove",this.sizeMousemove)},moveMousemove(e){this.imgDom.getBoundingClientRect(),document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_imgMask")[0].getBoundingClientRect();let A=e.changedTouches[0].pageX-this.frontBack.front[this.imgDomIndex].centers.left+"px",t=e.changedTouches[0].pageY-this.frontBack.front[this.imgDomIndex].centers.top+"px";this.frontBack.front[this.imgDomIndex].style.left=A,this.frontBack.front[this.imgDomIndex].style.top=t},sizeMousemove(e){let A,t,i=this.imgDom.getBoundingClientRect(),n=(this.imgDom.parentNode,i.width),r=i.height,o=r/n;"right"==this.direction?(A=e.changedTouches[0].pageX-i.left,t=(e.changedTouches[0].pageX-i.left)*o,n=A+"px",r=A*o+"px"):"top"==this.direction?(o=n/r,this.frontBack.front[this.imgDomIndex].style.top="auto",this.frontBack.front[this.imgDomIndex].style.bottom=this.frontBack.front[this.imgDomIndex].centers.bottom+"px",A=(e.changedTouches[0].pageX-i.left)*o,t=this.frontBack.front[this.imgDomIndex].centers.top-e.changedTouches[0].pageY,r=t+"px",n=t*o+"px"):"bottom"==this.direction?(o=n/r,t=e.changedTouches[0].pageY-i.top,r=t+"px",n=t*o+"px"):"left"==this.direction&&(A=this.frontBack.front[this.imgDomIndex].centers.left-e.changedTouches[0].pageX,this.frontBack.front[this.imgDomIndex].style.left="auto",this.frontBack.front[this.imgDomIndex].style.right=this.frontBack.front[this.imgDomIndex].centers.right+"px",n=A+"px",r=A*o+"px"),this.frontBack.front[this.imgDomIndex].style.width=n,this.frontBack.front[this.imgDomIndex].style.height=r},sizeMouseup(e){this.frontBack.front[this.imgDomIndex].style={right:"auto",left:this.imgDom.offsetLeft+"px",bottom:"auto",top:this.imgDom.offsetTop+"px",height:this.imgDom.offsetHeight+"px",width:this.imgDom.offsetWidth+"px",zIndex:this.printZIndex},this.frontBack.back[this.imgDomIndex].style.zIndex=this.printZIndex,document.removeEventListener("touchend",this.sizeMouseup),document.removeEventListener("touchmove",this.sizeMousemove)},touchend(e){document.removeEventListener("touchend",this.touchend),document.removeEventListener("touchmove",this.moveMousemove)},clearModal(){this.printZIndex=2,this.imgDomIndex=0,this.clothes=[],this.printStyleList.splice(1,this.printStyleList.length-1)},capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)},setPreviewData(){this.$emit("setSubmit","preview")},deleteBorder(){this.frontBack?.front?.forEach((e=>{e.designOpenrtionBtn=!1}))},clothesOpen(e){this.imgDomIndex=e,this.clothesOpenActive(e),this.setpitch("",e)},clothesOpenActive(e){this.designItemDetail.clothes.forEach((e=>{e.clothesOpen=!1})),this.designItemDetail.clothes[e].clothesOpen=!0},sort(e){return e.sort(((e,A)=>{var t=e.style.zIndex,i=A.style.zIndex;return t-i})),e},async setPreview(e){let A=this.frontBack.body.layersObject[0].imageSize[0]/this.frontBack.body.style.width.replace(/px/g,""),t=(this.store.state.DesignDetailModule.designItemDetail,this.sort(JSON.parse(JSON.stringify(this.frontBack.front)))),i=10;t.forEach((e=>{e.priority=i++})),e.designSingleItemDTOList.forEach((e=>{let i=t,n=t[1].imageCategory;t.forEach((t=>{t.imageCategory.split("_")[0];if(e.id==t.id){let i=(t?.style?.top.replace(/px/g,"")*A).toFixed(0)-t?.position[0],n=(t?.style?.left.replace(/px/g,"")*A).toFixed(0)-t?.position[1],r=t?.imageSize?Number((t?.style?.width.replace(/px/g,"")*A/(t?.imageSize[0]/t.scale)).toFixed(2)):1;e.scale=r;let o=0==i?e.offset[1]:i+e.offset[1],s=0==n?e.offset[0]:n+e.offset[0];e.offset=[s,o],e.priority=t.priority}})),e.type==this.capitalizeFirstLetter(n)&&(e.scale=i?.imageSize?Number((i?.style?.width.replace(/px/g,"")*A/i?.imageSize[0]).toFixed(2)):1)})),Ie.V.axiosPost(Ie.V.httpUrls.designSingle,e).then((A=>{this.$parent.loadingShow=!1;let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));t.designItemUrl=A.designItemUrl,t.ifSubmit=!0,t.currentFullBodyView=A.currentFullBodyView,A.clothes.forEach((e=>{t.clothes.forEach((A=>{e.id===A.id&&(A.layersObject=e.layersObject,A.priority=e.layersObject[0].priority,console.log(e,A))}))})),this.$emit("setDesignCoverage"),this.store.commit("setDesignItemDetail",t),this.setRevocation(t,e)})).catch((e=>{}))}}});const Hu=(0,Ke.Z)(Du,[["render",Su],["__scopeId","data-v-c08e19e0"]]);var Lu=Hu,Ou=(0,n.aZ)({components:{Draggable:St(),DesignDetailAlter:zd,setDesignItem:vu,magnifyingGlass:ru,setDesignItemMobile:Lu},setup(){const e=(0,Se.oR)();let A=(0,n.Fl)((()=>e.state.DesignDetailModule.designItemDetail)),t=(0,W.iH)({design:{},index:0,collectionList:[],type:""}),i=(0,W.iH)({left:"200px",top:"100px"}),r=(0,W.iH)(0),o=(0,W.iH)({});(0,n.JJ)("current",o);let s=(0,W.iH)({}),a=(0,W.iH)(!1),l=(0,W.iH)(),c=(0,W.iH)(),d={},u=(0,W.iH)(!1),h=(0,W.iH)({}),g=(0,W.iH)(!1),p=(0,W.iH)(),f=(0,W.iH)(),m=(0,n.Fl)((()=>e.state.Guide.guide));(0,n.JJ)("driver__",m);let B=(0,Le.S0)();(0,n.JJ)("moible",B);let{t:w}=(0,Te.QT)(),v=(0,W.iH)(),y=(0,W.iH)(!1),C=(0,W.iH)(!1),b=(0,W.iH)(0);return{designItemDetail:A,store:e,parentData:t,others:i,currentIndex:r,current:o,frontBack:s,body:a,designItemId:l,designOutfitId:c,userInfo:d,ifSubmit:u,designItemDetailUrl:h,setRevocationShow:g,oppositeRevocationShow:p,revocationShow:f,driver__:m,moible:B,t:w,setClothes:v,deleteShow:y,deleteItemShow:C,designItemDetailNum:b}},data(){return{loadingShow:!1,designDetailShow:!1,designShowPrview:1,generateHighDesignImg:"",imgDesignImg:!0,designOrder:!1}},watch:{designItemDetail:{handler:async function(e,A){let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.ifSubmit=!!t.ifSubmit&&t.ifSubmit,0==e.clothes.length?this.current="":this.current=JSON?.parse(JSON?.stringify(t?.clothes?.[this?.currentIndex])),0!=t.others[0].layersObject.length?this.body=!1:this.body=!0;let i=0;e.clothes.forEach((e=>{e.id&&i++})),this.designItemDetailNum=i,await this.setImgSize();let n="";n=t.currentFullBodyView?t.currentFullBodyView:t.designItemUrl,this.designItemDetailUrl=n}},designDetailShow:{handler:function(e){}}},provide(){return{setRevocation:this.setRevocation}},mounted(){let e=()=>{this.removeRevocation(),window.removeEventListener("beforeunload",e)};window.addEventListener("beforeunload",e);let A=(0,He.ej)("userInfo");this.userInfo=JSON.parse(A)},methods:{openCurrent(e){let A=this.$refs.DesignDetailAlter;(2!=e&&3!=e||this.current.id)&&(A.init(e),2==e&&this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()})))},closeModal(){if(1==this.designShowPrview){this.designDetailShow=!1,this.designOrder=!1;let e=this.$refs.DesignDetailAlter;e.terminate(),this.frontBack={}}else this.designShowPrview=1},showDesignDetailModal(e,A){this.moible=(0,Le.S0)(),this.designItemId=e.design.designItemId,this.designOutfitId=e.design.designOutfitId;let t=Ie.V.httpUrls.getDesignDetail+`?designItemId=${e.design.designItemId}&designPythonOutfitId=${e.design.designOutfitId}`;this.parentData=e,this.loadingShow=!0,Ie.V.axiosGet(t).then((async e=>{e.clothes.forEach((e=>{let A;-1==e.layersObject[0].imageCategory.indexOf("back")&&(A=e.layersObject[0],e.layersObject[0]=e.layersObject[1],e.layersObject[1]=A),null==e.printObject.prints&&(e.printObject.prints=[{}])})),this.currentIndex=0,this.store.commit("setDesignItemDetail",e),this.removeRevocation(),this.setRevocation(e,""),0!=e.others[0].layersObject.length?this.body=!1:this.body=!0,"setDesignItem"==A||(this.designShowPrview=1),await this.setImgSize(),this.generateHighDesignImg=e.highDesignUrl,this.designDetailShow=!0,this.loadingShow=!1,this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveTo(41)}))})).catch((e=>{this.loadingShow=!1}))},async setImgSize(){let e,A,t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),i=[],n=[];if(this.body)t.clothes.forEach(((e,A)=>{for(let t=e.layersObject.length-1;t>=0;t--)-1==e.layersObject[t].imageCategory.indexOf("back")?i[A]=e.layersObject[t]:n[A]=e.layersObject[t]}));else{t?.others?.forEach((A=>{"Body"==A.type&&(e=A)}));let A=await(this?.setPostition(e?.layersObject?.[0]?.imageUrl));Number.isNaN(A)&&this.setImgSize();t.clothes.forEach(((e,t)=>{for(let r=e.layersObject.length-1;r>=0;r--)e.layersObject[r].style={top:e.layersObject[r].position?.[0]*A+"px",left:e.layersObject[r].position?.[1]*A+"px",width:e.layersObject[r].imageSize?.[0]*A+"px",height:e.layersObject[r].imageSize?.[1]*A+"px"},e.layersObject[r].centers={left:0,top:0},e.layersObject[r].designOpenrtionBtn=!1,-1==e.layersObject[r].imageCategory.indexOf("back")?(i[t]=e.layersObject[r],i[t].style.zIndex=e.priority):(n[t]=e.layersObject[r],n[t].style.zIndex=e.priority)})),e.style={width:e.layersObject[0].imageSize?.[0]*A+"px",height:e.layersObject[0].imageSize?.[1]*A+"px"}}let r=this;window.onresize=()=>(()=>{clearTimeout(A),A=setTimeout((async()=>{await r.setImgSize()}),500)})(),this.frontBack={front:i,back:n,body:e}},setDesignCoverage(e){let{design:A,index:t,collectionList:i}=this.parentData,n=0,r={};i.forEach(((e,A)=>{e.designItemId===this.designItemId&&(n=A)})),r=i[n],n=this.parentData.index;this.designShowPrview=1,this.loadingShow=!1},removeRevocation(){sessionStorage.removeItem("oppositeRevocation"),sessionStorage.removeItem("revocation"),this.setRevocationShow=!1},setRevocation(e,A){let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),i=JSON.parse(sessionStorage.getItem("revocation"));JSON.parse(sessionStorage.getItem("oppositeRevocation"));i?.[0]?.designItemDetail.designItemId==t.designItemId&&void 0!=i?.[0]?.designItemDetail.designItemId||(i=[]);let n={designItemDetail:e,data:A||""};i.push(n),this.revocationShow=i?.length,this.oppositeRevocationShow=0,sessionStorage.setItem("revocation",JSON.stringify(i)),sessionStorage.setItem("oppositeRevocation",JSON.stringify([]))},revocation(){let e=JSON.parse(sessionStorage.getItem("oppositeRevocation")),A=JSON.parse(sessionStorage.getItem("revocation"));e.push(A[A.length-1]),this.oppositeRevocationShow=e.length,A.splice(A.length-1,1),this.revocationShow=A.length,this.revocationShow>1&&this.store.commit("setDesignPreviewData",A[A.length-1].data),this.store.commit("setDesignItemDetail",A[A.length-1].designItemDetail),sessionStorage.setItem("oppositeRevocation",JSON.stringify(e)),sessionStorage.setItem("revocation",JSON.stringify(A))},oppositeRevocation(){let e=JSON.parse(sessionStorage.getItem("oppositeRevocation")),A=JSON.parse(sessionStorage.getItem("revocation"));this.store.commit("setDesignPreviewData",e[e.length-1].data),this.store.commit("setDesignItemDetail",e[e.length-1].designItemDetail),A.push(e[e.length-1]),this.revocationShow=A.length,e.splice(e.length-1,1),this.oppositeRevocationShow=e.length,sessionStorage.setItem("oppositeRevocation",JSON.stringify(e)),sessionStorage.setItem("revocation",JSON.stringify(A))},setSubmitItem(e,A){let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),i=[],n=-1;t.clothes.forEach(((e,t)=>{let r={color:`${e.color.r} ${e.color.g} ${e.color.b}`,id:e.id,path:e.minIOPath,offset:null==e.layersObject?.[1]?.offset?[0,0]:e.layersObject[1].offset,scale:e.layersObject?.[1]?.scale?e.layersObject[1].scale:1,printObject:{ifSingle:null!=e.printObject.ifSingle&&e.printObject.ifSingle,prints:e?.printObject?.prints[0]?.minIOPath?e?.printObject?.prints:[]},priority:e.priority,type:e.type};!e.id&&A?n=t:i.push(r)})),-1!=n&&(t.clothes.splice(n,1),this.store.commit("setDesignItemDetail",t)),this.currentIndex=0;let r={designItemId:t.designItemId,designSingleItemDTOList:i,isPreview:!1,ifSubmit:t.isPreview,processId:String(this.userInfo?.userId),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};return"preview"==e?r.isPreview=!0:(r.isPreview=!1,delete r.ifSubmit),r},async setSubmit(e){let A=(0,Le.S0)()?this.$refs.setDesignItemMobile:this.$refs.setDesignItem,t=this.setSubmitItem(e,!0);this.loadingShow=!0,await A.setPreview(t)},async submit(){let e=this.setSubmitItem("",!0);this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.designSingle,e).then((e=>{this.loadingShow=!1;let A=this.store.state.HomeStoreModule.designCollectionList,t=this.store.state.HomeStoreModule.likeDesignCollectionList;A.forEach((A=>{A.designItemId==e.designItemId&&(A.designOutfitUrl=e.designItemUrl)})),t.forEach((A=>{A.designItemId==e.designItemId&&(A.designOutfitUrl=e.designItemUrl)})),this.closeModal(),this.store.commit("setDesignCollectionList",A),this.store.commit("setLikeDesignCollectionList",t),this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}))})).catch((e=>{this.loadingShow=!1}))},async setPostition(e){let A,t;await i(e).then((i=>{A=document.getElementsByClassName("detail_modal_model")[0],void 0==A&&this.setPostition(e),t=A?.offsetWidth/i.width}));function i(e){return new Promise(((A,t)=>{const i=new Image;i.onload=()=>{A(i)},i.onerror=t,i.src=e}))}return t},changeDesignItem(e){let{design:A,index:t,collectionList:i}=this.parentData,n={},r=0;this.designOrder=!1,this.removeRevocation();let o=this.$refs.DesignDetailAlter;o.terminate(),r="last"===e?t>0?this.parentData.index-1:this.parentData.collectionList.length-1:t<this.parentData.collectionList.length-1?this.parentData.index+1:0,n=i[r];let s={design:n,index:r,collectionList:i};this.showDesignDetailModal(s,"")},showDesignImgDetail(e){JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.designShowPrview=e;let A=(0,Le.S0)()?this.$refs.setDesignItemMobile:this.$refs.setDesignItem;3==this.designShowPrview&&A.init()},deleteNav(e){if(0==e)this.deleteShow=!0,this.designItemDetail.clothes.forEach((e=>{e.clothesOpen=!1})),this.designOrder=!1;else{this.deleteShow=!1;let e=JSON.parse(JSON.stringify(this.designItemDetail)),A=this.setSubmitItem("preview",!0);if(!this.deleteItemShow)return;this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.designSingle,A).then((t=>{e.ifSubmit=!0,this.loadingShow=!1,this.store.commit("setDesignItemDetail",e),this.store.commit("setDesignPreviewData",A),this.setRevocation(e,A),this.deleteItemShow=!1})).catch((e=>{this.loadingShow=!1}))}let A=this.$refs.DesignDetailAlter;A.changePlace(),A.terminate()},setDelete(e){this.designItemDetail.clothes.splice(e,1),this.deleteItemShow=!0},mousedownDesignImg(){this.imgDesignImg=!1},mouseupDesignImg(){this.imgDesignImg=!0},clothesOpen(e){this.clothesDetail("",e),this.clothesOpenActive(e)},clothesOpenActive(e){this.designItemDetail.clothes.forEach((e=>{e.clothesOpen=!1})),this.designItemDetail.clothes[e].clothesOpen=!0},setClothesOpen(){let e;this.designItemDetail.clothes.forEach((e=>{e.clothesOpen=!1})),e=this.designItemDetail.clothes[0]?this.designItemDetail.clothes[0].color:{id:"",name:"Brilliant White New",tcx:"11-1123",r:255,g:255,b:255,h:0,s:0,v:100};let A={id:"",type:"",level1Type:null,path:"",minIOPath:"",color:e,printObject:{ifSingle:null,prints:[{}]},layersObject:[]};this.designOrder=!0,this.designItemDetail.clothes.push(A),this.clothesDetail(A,this.designItemDetail.clothes.length-1);let t=this.$refs.DesignDetailAlter;t.init(1)},clothesDetail(e,A){let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.designOrder=!0,this.current=t.clothes[A],this.current.id&&!t.clothes[t.clothes.length-1].id&&(t.clothes.splice(t.clothes.length-1,1),this.store.commit("setDesignItemDetail",t));let i=this.setSubmitItem("preview",!1);this.currentIndex=A||0,i.designSingleItemDTOList[this.currentIndex]={color:`${this.current.color.r} ${this.current.color.g} ${this.current.color.b}`,id:this.current.id?this.current.id:"",path:this.current.minIOPath?this.current.minIOPath:"",offset:this.current.layersObject?.[1]?.offset?this.current.layersObject[1].offset:[0,0],priority:this.current.priority,scale:this.current.layersObject?.[1]?.scale?this.current.layersObject[1].scale:1,printObject:{ifSingle:null!=this.current?.printObject?.ifSingle&&this.current?.printObject?.ifSingle,prints:this.current?.printObject?.prints[0]?.minIOPath?this.current?.printObject?.prints:[]},type:this.current.type},this.store.commit("setDesignPreviewData",i);let r=this.$refs.DesignDetailAlter;r.changePlace(),this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}))},redesignItem(){let e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));delete e.designItemUrl;let A=e.clothes.map((e=>e.type)),t={...e,priority:A,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};this.loadingShow=!0,Ie.V.axiosPost(Ie.V.httpUrls.designSingle,t).then((e=>{this.parentData.design.designItemUrl=e.designItemUrl,this.$emit("finishRedesign",this.parentData),this.closeModal(),this.loadingShow=!1})).catch((e=>{this.loadingShow=!1}))}}});const Mu=(0,Ke.Z)(Ou,[["render",Ha]]);var Tu=Mu,Nu=t(8472),Ku=t(5733),Pu=t.n(Ku);const Ru=t(3162);var Vu=(0,n.aZ)({components:{HeaderComponent:Y.Z,CollectionModal:Go,NewCollectionReview:ms,DesignDetail:Tu,ExportNewCoolection:js,RobotAssist:Nu.Z,draggable:St()},setup(){const e=(0,Se.oR)();let A=(0,n.Fl)((()=>e.state.HomeStoreModule.likeDesignCollectionList)),t=(0,n.Fl)((()=>e.state.HomeStoreModule.designCollectionList)),i=(0,n.Fl)((()=>e.state.HomeStoreModule.userGroupId)),r=(0,n.Fl)((()=>e.state.HomeStoreModule.designCollectionId)),o=(0,n.Fl)((()=>e.state.HomeStoreModule.designId)),s={width:"",height:""},a={width:"",height:""},l=(0,W.iH)([{name:(0,Te.QT)().t("HomeView.moodboard"),change:!0,noChange:!0,value:"moodboardFiles"},{name:(0,Te.QT)().t("HomeView.printboard"),change:!0,noChange:!1,value:"printboardFiles"},{name:(0,Te.QT)().t("HomeView.colorboard"),change:!0,noChange:!1,value:"colorBoards"},{name:(0,Te.QT)().t("HomeView.sketchboard"),change:!0,noChange:!1,value:"sketchboardFiles"},{name:(0,Te.QT)().t("HomeView.mannequins"),change:!0,noChange:!0,value:""}]);(0,n.JJ)("exportNav",l);let c=(0,W.iH)(!1),d={},{t:u}=(0,Te.QT)(),h=(0,n.Fl)((()=>e.state.Guide.guide)),g=(0,W.iH)([]);return{store:e,likeDesignCollectionList:A,designCollectionList:t,userGroupId:i,designCollectionId:r,designId:o,contentImgMax:s,contentImg:a,exportNav:l,isShowOperate:c,userInfo:d,t:u,driver__:h,likeDesignItemIdList:g}},data(){return{isHaveReviewCollection:!1,isFinishLoading:!1,isShowMark:!1,indicator:(0,n.h)(xe.Z,{style:{fontSize:"4.8rem",marginTop:"3rem",color:"#341e57"},spin:!0}),designProgress:0,showDesignMark:!1,startDesignType:"design",disLikeLoading:!1,likeLoading:!1,dragIdx:0,designRandom:""}},mounted(){(0,Me._y)();let e=(0,He.ej)("userInfo");this.userInfo=JSON.parse(e),this.store.dispatch("get_clothingType");let A=this.$route.params.noRefresh;if(A){let e=this.store.state.UploadFilesModule.allBoardData.colorBoards||[];e.length&&(this.isHaveReviewCollection=!0)}else this.store.commit("setUserGroupId",this.$route.params.id),this.store.commit("clearAllCollection");this.$route.params.id?this.getHistoryChoose(this.$route.params.id,"normal"):this.store.commit("clearAllData")},directives:{mousewheel:{mounted(e){let A=document.getElementsByClassName("right_content_block")[0],t=document.getElementsByClassName("right_content_body"),i=()=>{A.classList.add("active")},n=()=>{A.classList.remove("active")};t.forEach((e=>{e.addEventListener("mouseover",i),e.addEventListener("mouseleave",n)})),e.addEventListener("wheel",(A=>{let t=0;t=A.deltaY>0?25:-25,e.scrollBy(t,0)}),!0)}}},methods:{addTeam(e){this.likeDesignCollectionList.push(e)},dragstart(e,A){this.dragIdx=A},dragDrop(e,A){let t=this.likeDesignCollectionList,i=t[this.dragIdx];t.splice(this.dragIdx,1),t.splice(A,0,i)},formatter(e){return`${e}%`},startNewCollection(){let e=this.$refs.collectionModal;this.store.commit("clearAllData"),e.changeCollectionModal(!0),this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}))},recollection(){let e=this.$refs.collectionModal;this.store.commit("clearAllData"),e.changeCollectionModal(!0),e.recollection()},finishCollection(){let e=this;e.isFinishLoading=!0,this.getPantongName().then((A=>{e.store.commit("setAllBoardData"),e.isHaveReviewCollection=!0,e.isFinishLoading=!1})).catch((A=>{e.isFinishLoading=!1}))},getPantongName(){let e=this.store.state.UploadFilesModule.colorBoards,A=[];for(let t of e){let e=[t.rgbValue.r,t.rgbValue.g,t.rgbValue.b],i=(0,Le.py)(e);t.hsv=i[0]+i[1]+i[2],A.push({h:i[0],s:i[1],v:i[2]})}return new Promise(((t,i)=>{Ie.V.axiosPost(Ie.V.httpUrls.getRgbByHsvBatch,A).then((A=>{A&&(A.forEach(((A,t)=>{e[t].id=A.id,e[t].tcx=A.tcx,e[t].name=A.name})),this.store.commit("setColorboardList",e),t())})).catch((e=>{i()}))}))},getContainer(){return document.querySelector("#system_silder")},designNewCollection(){let{colorBoards:e}=this.store.state.UploadFilesModule.allBoardData;if(!e||e?.length<1)return void Ee.ZP.info(this.t("HomeView.jsContent1"));let A=this.getDesignData("");this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()})),Ie.V.axiosPost(Ie.V.httpUrls.designCollection,A).then((e=>{e&&(this.store.commit("setDesignCollectionList",e.designCollectionItems),this.store.commit("setLikeDesignCollectionList",[]),this.store.commit("deleteUserGroupId"),this.store.commit("setDesignCollectionId",e.collectionId),this.store.commit("setDesignId",e.designId),this.startDesignType="design")})).catch((e=>{this.showDesignMark=!1})),this.getDesignProcess(this.designRandom)},resDesignCollection(){let{colorBoards:e}=this.store.state.UploadFilesModule.allBoardData;if(!e||e?.length<1)return void Ee.ZP.info(this.t("HomeView.jsContent2"));this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}));let A=this.getDesignData(this.designCollectionId);Ie.V.axiosPost(Ie.V.httpUrls.reDesignCollection,A).then((e=>{e&&(this.store.commit("setDesignCollectionList",e.designCollectionItems),this.startDesignType="resDesign")})).catch((e=>{this.showDesignMark=!1})),this.getDesignProcess(this.designRandom)},getDesignData(e){let{moodboardFiles:A,printboardFiles:t,disposeMoodboard:i,colorBoards:n,sketchboardFiles:r,marketingSketchFiles:o,moodTemplateId:s}=this.store.state.UploadFilesModule.allBoardData;this.randomNum();let a=this.store.state.Workspace.workspace,l={colorBoards:this.getColorBoard(n),moodBoards:this.getBoardId(A),printBoards:this.getPrintId(t),sketchBoards:this.getSkecthBoard(r),switchCategory:a.overallSingle?a.position:"",singleOverall:a.overallSingle?"single":"overall",systemScale:a.systemDesignerPercentage?.01*a.systemDesignerPercentage:.3,templateId:a.mannequinId?a.mannequinId:"",modelType:a.mannequinType,modelSex:a.sex,moodTemplateId:i[0]?String(i[0].id):null,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,processId:this.designRandom};return e&&(l.collectionId=e),this.designProgress=0,this.showDesignMark=!0,l},getDesignProcess(e){Ie.V.axiosGet(Ie.V.httpUrls.designProcess,{params:{processId:e}}).then((A=>{this.showDesignMark&&(this.designProgress=A,100==A&&setTimeout((()=>{this.showDesignMark=!1,this.designProgress=0,this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}))}),500),setTimeout((()=>{this.getDesignProcess(e)}),500))}))},randomNum(){this.designRandom=String(Math.floor(9e15*Math.random())+1e15)},getBoardId(e){let A=e.map((e=>{let A={id:e.resData.id,designType:e.resData.designType};return A}));return A},getPrintId(e){let A=e.map((e=>{let A={id:e.resData.id,designType:e.resData.designType,isPin:e.pin?1:0};return A}));return A},getSkecthBoard(e){let A=e.map((e=>{let A={designType:e.resData.designType,isPin:e.pin?1:0,level2Type:e.category,sketchBoardId:e.resData.id};return A}));return A},getColorBoard(e){let A=e.map((e=>{let A={id:e.id,name:e.name,tcx:e.tcx,rgbValue:""};return A.rgbValue=`${e.rgbValue.r} ${e.rgbValue.g} ${e.rgbValue.b}`,A}));return A},likeDesignCollection(e,A){let t={designItemId:e.designItemId,userGroupId:this.userGroupId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,designPythonOutfitId:e.designOutfitId?e.designOutfitId:e.designPythonOutfitId};this.likeLoading||(this.likeLoading=!0,Ie.V.axiosPost(Ie.V.httpUrls.designLike,t).then((t=>{t&&(this.store.commit("setUserGroupId",t.userGroupId),e.groupDetailId=t.groupDetailId,this.store.commit("addLikeDesignCollectionList",e),this.store.commit("deleteDesignCollectionList",A),"resDesign"===this.startDesignType&&this.getHistoryChoose(this.userGroupId,"like")),this.likeLoading=!1,this.driver__.driver&&Me.RX.moveNext()})).catch((e=>{this.likeLoading=!1})))},dislikeDesignCollection(e,A){let t={designId:e.designId||this.designId,designPythonOutfitId:e.designOutfitId,groupDetailId:e.groupDetailId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};this.disLikeLoading||(this.disLikeLoading=!0,Ie.V.axiosPost(Ie.V.httpUrls.designDislike,t).then((t=>{t&&(this.store.commit("addDesignCollectionList",e),this.store.commit("deleteLikeDesignCollectionList",A),this.likeDesignCollectionList.length||this.store.commit("deleteUserGroupId")),this.disLikeLoading=!1})).catch((e=>{this.disLikeLoading=!1})))},getHistoryChoose(e,A){this.isShowMark=!0;let t=Ie.V.httpUrls.historyChoose+`?userGroupId=${e}`;Ie.V.axiosGet(t).then((e=>{this.dealHistoryChooseData(e,A),this.isShowMark=!1})).catch((e=>{this.isShowMark=!1}))},dealHistoryChooseData(e,A){let t={moodboardFiles:this.dealViewChooseData(e.collection.moodBoards,"Moodboard"),printboardFiles:this.dealViewChooseData(e.collection.printBoards,"Printboard"),generatePrintFiles:[],colorBoards:this.dealViewChooseColor(e.collection.colorBoards),sketchboardFiles:this.dealViewChooseData(e.collection.sketchBoards,"Sketchboard"),marketingSketchFiles:this.dealViewChooseData(e.collection.marketingSketchs,""),disposeMoodboard:e.collection.moodTemplateId?[{id:e.collection.moodTemplateId,imgUrl:e.collection.moodTemplateUrl,resData:{name:e.collection.moodTemplateName}}]:[]};if(this.store.commit("setAllBoardDataChoose",t),this.store.commit("setShowSketchboard",e.collection.sketchBoards),this.store.commit("setDesignCollectionId",e.collection.collectionId),this.isHaveReviewCollection=!0,"normal"===A){let A=e.userLikeDetails.map((e=>{let A={...e,groupDetailId:e.id,designItemUrl:e.designOutfitUrl,designItemId:e.designItemId};return A}));this.store.commit("setLikeDesignCollectionList",A)}},dealViewChooseData(e,A){if(!e)return[];let t=e.map((e=>{let A={imgUrl:e.url?e.url:e.designOutfitUrl,id:e.id,status:"done",resData:e,type_:{type1:"material",type2:e.level1Type}};return"Sketchboard"===e.level1Type&&(A.pin=e.isPin,A.category=e.level2Type),"Printboard"===e.level1Type&&(A.pin=e.isPin),A}));return t},dealViewChooseColor(e){let A=e.map((e=>{let A=e.rgbValue.split(" "),t={id:e.id,name:e.name,tcx:e.tcx||"",rgbValue:{r:A[0],g:A[1],b:A[2],a:1}};return t}));return A},changeShowOperateContent(){this.isShowOperate=!this.isShowOperate,document.addEventListener("click",this.closeShowOperateContent,!1)},closeShowOperateContent(){this.isShowOperate=!1,document.removeEventListener("click",this.closeShowOperateContent)},async exportCanvas(){let e=document.querySelector("#exportNewCoolection");document.querySelector("#right_content_img_block");this.driver__.driver&&(0,n.Y3)().then((()=>{Me.RX.moveNext()}));document.createElement("a");let A=[];await Ht()(e,{useCORS:!0,scale:3}).then((async e=>{let t=(0,Le.$O)(e.toDataURL("image/png")),i=this.store.state.UploadFilesModule.allBoardData,n=0;A.push({imgUrl:URL.createObjectURL(t),name:"collection.png"});let r=0;for(let a in i)if("colorBoards"!==a&&"moodTemplateId"!==a){if(this.exportNav[r]?.change||"disposeMoodboard"==a)for(let e of i[a]){let t=e?.imgUrl?.split(".").pop().split("?").shift(),i={imgUrl:e.imgUrl,name:e?.resData?.name+n+"."+t};A.push(i),n++}r++}let o=[];this.likeDesignCollectionList.forEach((e=>{let t=e?.designOutfitUrl?.split(".").pop().split("?").shift(),i={imgUrl:e.designOutfitUrl,name:"result"+n+"."+t};o.push(e.designItemId),A.push(i),n++}));let s=[];await Ie.V.axiosPost(Ie.V.httpUrls.designGetModel,o).then((e=>{s=e})).catch((e=>{})),s.forEach((e=>{let t=e?.split(".").pop().split("?").shift(),i={imgUrl:e,name:"mannequin"+n+"."+t};A.push(i),n++}))})),this.downImg(A)},designDetail(e,A,t,i){let n=this.$refs.designDetail;e.designOutfitId=e.designPythonOutfitId?e.designPythonOutfitId:e.designOutfitId;let r={design:e,index:A,collectionList:t,type:i};n.showDesignDetailModal(r)},finishRedesign(e){let{design:A,index:t,type:i}=e;"dislike"===i?this.store.commit("setSingleDesignCollectionList",{index:t,design:A}):this.store.commit("setSingleLikeDesignCollectionList",{index:t,design:A})},getImgArrayBuffer(e){return new Promise(((A,t)=>{let i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200==this.status?A(this.response):t(this.status)},i.send()}))},downImg(e){let A=this,t=new(Pu()),i={},n=[];for(let r of e){const e=A.getImgArrayBuffer(r.imgUrl).then((e=>{t.file(r.name,e,{binary:!0}),i[r.title]=e}));n.push(e)}Promise.all(n).then((()=>{t.generateAsync({type:"blob"}).then((e=>{Ru.saveAs(e,"DesignFiles"),this.isShowMark=!1}))})).catch((e=>{Ee.ZP.warning(this.t("HomeView.jsContent3")),this.isShowMark=!1}))}}});const Gu=(0,Ke.Z)(Vu,[["render",Z],["__scopeId","data-v-3380e119"]]);var ju=Gu},9812:function(e,A,t){"use strict";t.r(A),t.d(A,{BaseTransition:function(){return i.P$},Comment:function(){return i.sv},EffectScope:function(){return i.Bj},Fragment:function(){return i.HY},KeepAlive:function(){return i.Ob},ReactiveEffect:function(){return i.qq},Static:function(){return i.qG},Suspense:function(){return i.n4},Teleport:function(){return i.lR},Text:function(){return i.xv},Transition:function(){return i.uT},TransitionGroup:function(){return i.W3},VueElement:function(){return i.a2},callWithAsyncErrorHandling:function(){return i.$d},callWithErrorHandling:function(){return i.KU},camelize:function(){return i._A},capitalize:function(){return i.kC},cloneVNode:function(){return i.Ho},compatUtils:function(){return i.ry},compile:function(){return n},computed:function(){return i.Fl},createApp:function(){return i.ri},createBlock:function(){return i.j4},createCommentVNode:function(){return i.kq},createElementBlock:function(){return i.iD},createElementVNode:function(){return i._},createHydrationRenderer:function(){return i.Eo},createPropsRestProxy:function(){return i.p1},createRenderer:function(){return i.Us},createSSRApp:function(){return i.vr},createSlots:function(){return i.Nv},createStaticVNode:function(){return i.uE},createTextVNode:function(){return i.Uk},createVNode:function(){return i.Wm},customRef:function(){return i.ZM},defineAsyncComponent:function(){return i.RC},defineComponent:function(){return i.aZ},defineCustomElement:function(){return i.MW},defineEmits:function(){return i.Bz},defineExpose:function(){return i.WY},defineProps:function(){return i.yb},defineSSRCustomElement:function(){return i.Ah},devtools:function(){return i.mW},effect:function(){return i.cE},effectScope:function(){return i.B},getCurrentInstance:function(){return i.FN},getCurrentScope:function(){return i.nZ},getTransitionRawChildren:function(){return i.Q6},guardReactiveProps:function(){return i.F4},h:function(){return i.h},handleError:function(){return i.S3},hydrate:function(){return i.ZB},initCustomFormatter:function(){return i.Mr},initDirectivesForSSR:function(){return i.Nd},inject:function(){return i.f3},isMemoSame:function(){return i.nQ},isProxy:function(){return i.X3},isReactive:function(){return i.PG},isReadonly:function(){return i.$y},isRef:function(){return i.dq},isRuntimeOnly:function(){return i.of},isShallow:function(){return i.yT},isVNode:function(){return i.lA},markRaw:function(){return i.Xl},mergeDefaults:function(){return i.u_},mergeProps:function(){return i.dG},nextTick:function(){return i.Y3},normalizeClass:function(){return i.C_},normalizeProps:function(){return i.vs},normalizeStyle:function(){return i.j5},onActivated:function(){return i.dl},onBeforeMount:function(){return i.wF},onBeforeUnmount:function(){return i.Jd},onBeforeUpdate:function(){return i.Xn},onDeactivated:function(){return i.se},onErrorCaptured:function(){return i.d1},onMounted:function(){return i.bv},onRenderTracked:function(){return i.bT},onRenderTriggered:function(){return i.Yq},onScopeDispose:function(){return i.EB},onServerPrefetch:function(){return i.vl},onUnmounted:function(){return i.SK},onUpdated:function(){return i.ic},openBlock:function(){return i.wg},popScopeId:function(){return i.Cn},provide:function(){return i.JJ},proxyRefs:function(){return i.WL},pushScopeId:function(){return i.dD},queuePostFlushCb:function(){return i.qb},reactive:function(){return i.qj},readonly:function(){return i.OT},ref:function(){return i.iH},registerRuntimeCompiler:function(){return i.Y1},render:function(){return i.sY},renderList:function(){return i.Ko},renderSlot:function(){return i.WI},resolveComponent:function(){return i.up},resolveDirective:function(){return i.Q2},resolveDynamicComponent:function(){return i.LL},resolveFilter:function(){return i.eq},resolveTransitionHooks:function(){return i.U2},setBlockTracking:function(){return i.qZ},setDevtoolsHook:function(){return i.ec},setTransitionHooks:function(){return i.nK},shallowReactive:function(){return i.Um},shallowReadonly:function(){return i.YS},shallowRef:function(){return i.XI},ssrContextKey:function(){return i.Uc},ssrUtils:function(){return i.G},stop:function(){return i.sT},toDisplayString:function(){return i.zw},toHandlerKey:function(){return i.hR},toHandlers:function(){return i.mx},toRaw:function(){return i.IU},toRef:function(){return i.Vh},toRefs:function(){return i.BK},transformVNodeArgs:function(){return i.C3},triggerRef:function(){return i.oR},unref:function(){return i.SU},useAttrs:function(){return i.l1},useCssModule:function(){return i.fb},useCssVars:function(){return i.sj},useSSRContext:function(){return i.Zq},useSlots:function(){return i.Rr},useTransitionState:function(){return i.Y8},vModelCheckbox:function(){return i.e8},vModelDynamic:function(){return i.YZ},vModelRadio:function(){return i.G2},vModelSelect:function(){return i.bM},vModelText:function(){return i.nr},vShow:function(){return i.F8},version:function(){return i.i8},warn:function(){return i.ZK},watch:function(){return i.YP},watchEffect:function(){return i.m0},watchPostEffect:function(){return i.Rh},watchSyncEffect:function(){return i.yX},withAsyncContext:function(){return i.mv},withCtx:function(){return i.w5},withDefaults:function(){return i.b9},withDirectives:function(){return i.wy},withKeys:function(){return i.D2},withMemo:function(){return i.MX},withModifiers:function(){return i.iM},withScopeId:function(){return i.HX}});var i=t(9963);const n=()=>{0}},9980:function(e,A,t){(function(A,i){e.exports=i(t(9812),t(8244))})("undefined"!==typeof self&&self,(function(e,A){return function(e){var A={};function t(i){if(A[i])return A[i].exports;var n=A[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=A,t.d=function(e,A,i){t.o(e,A)||Object.defineProperty(e,A,{enumerable:!0,get:i})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,A){if(1&A&&(e=t(e)),8&A)return e;if(4&A&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&A&&"string"!=typeof e)for(var n in e)t.d(i,n,function(A){return e[A]}.bind(null,n));return i},t.n=function(e){var A=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(A,"a",A),A},t.o=function(e,A){return Object.prototype.hasOwnProperty.call(e,A)},t.p="",t(t.s="fb15")}({"00ee":function(e,A,t){var i=t("b622"),n=i("toStringTag"),r={};r[n]="z",e.exports="[object z]"===String(r)},"0366":function(e,A,t){var i=t("1c0b");e.exports=function(e,A,t){if(i(e),void 0===A)return e;switch(t){case 0:return function(){return e.call(A)};case 1:return function(t){return e.call(A,t)};case 2:return function(t,i){return e.call(A,t,i)};case 3:return function(t,i,n){return e.call(A,t,i,n)}}return function(){return e.apply(A,arguments)}}},"057f":function(e,A,t){var i=t("fc6a"),n=t("241c").f,r={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return n(e)}catch(A){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==r.call(e)?s(e):n(i(e))}},"06cf":function(e,A,t){var i=t("83ab"),n=t("d1e7"),r=t("5c6c"),o=t("fc6a"),s=t("c04e"),a=t("5135"),l=t("0cfb"),c=Object.getOwnPropertyDescriptor;A.f=i?c:function(e,A){if(e=o(e),A=s(A,!0),l)try{return c(e,A)}catch(t){}if(a(e,A))return r(!n.f.call(e,A),e[A])}},"0cfb":function(e,A,t){var i=t("83ab"),n=t("d039"),r=t("cc12");e.exports=!i&&!n((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(e,A,t){"use strict";var i=t("23e7"),n=t("d58f").left,r=t("a640"),o=t("ae40"),s=r("reduce"),a=o("reduce",{1:0});i({target:"Array",proto:!0,forced:!s||!a},{reduce:function(e){return n(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,A,t){var i=t("c6b6"),n=t("9263");e.exports=function(e,A){var t=e.exec;if("function"===typeof t){var r=t.call(e,A);if("object"!==typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return n.call(e,A)}},"159b":function(e,A,t){var i=t("da84"),n=t("fdbc"),r=t("17c2"),o=t("9112");for(var s in n){var a=i[s],l=a&&a.prototype;if(l&&l.forEach!==r)try{o(l,"forEach",r)}catch(c){l.forEach=r}}},"17c2":function(e,A,t){"use strict";var i=t("b727").forEach,n=t("a640"),r=t("ae40"),o=n("forEach"),s=r("forEach");e.exports=o&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,A,t){var i=t("d066");e.exports=i("document","documentElement")},"1c0b":function(e,A){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,A,t){var i=t("b622"),n=i("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(a){}e.exports=function(e,A){if(!A&&!r)return!1;var t=!1;try{var i={};i[n]=function(){return{next:function(){return{done:t=!0}}}},e(i)}catch(a){}return t}},"1d80":function(e,A){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,A,t){var i=t("d039"),n=t("b622"),r=t("2d00"),o=n("species");e.exports=function(e){return r>=51||!i((function(){var A=[],t=A.constructor={};return t[o]=function(){return{foo:1}},1!==A[e](Boolean).foo}))}},"23cb":function(e,A,t){var i=t("a691"),n=Math.max,r=Math.min;e.exports=function(e,A){var t=i(e);return t<0?n(t+A,0):r(t,A)}},"23e7":function(e,A,t){var i=t("da84"),n=t("06cf").f,r=t("9112"),o=t("6eeb"),s=t("ce4e"),a=t("e893"),l=t("94ca");e.exports=function(e,A){var t,c,d,u,h,g,p=e.target,f=e.global,m=e.stat;if(c=f?i:m?i[p]||s(p,{}):(i[p]||{}).prototype,c)for(d in A){if(h=A[d],e.noTargetGet?(g=n(c,d),u=g&&g.value):u=c[d],t=l(f?d:p+(m?".":"#")+d,e.forced),!t&&void 0!==u){if(typeof h===typeof u)continue;a(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),o(c,d,h,e)}}},"241c":function(e,A,t){var i=t("ca84"),n=t("7839"),r=n.concat("length","prototype");A.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},"25f0":function(e,A,t){"use strict";var i=t("6eeb"),n=t("825a"),r=t("d039"),o=t("ad6d"),s="toString",a=RegExp.prototype,l=a[s],c=r((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=s;(c||d)&&i(RegExp.prototype,s,(function(){var e=n(this),A=String(e.source),t=e.flags,i=String(void 0===t&&e instanceof RegExp&&!("flags"in a)?o.call(e):t);return"/"+A+"/"+i}),{unsafe:!0})},"2ca0":function(e,A,t){"use strict";var i=t("23e7"),n=t("06cf").f,r=t("50c4"),o=t("5a34"),s=t("1d80"),a=t("ab13"),l=t("c430"),c="".startsWith,d=Math.min,u=a("startsWith"),h=!l&&!u&&!!function(){var e=n(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!h&&!u},{startsWith:function(e){var A=String(s(this));o(e);var t=r(d(arguments.length>1?arguments[1]:void 0,A.length)),i=String(e);return c?c.call(A,i,t):A.slice(t,t+i.length)===i}})},"2d00":function(e,A,t){var i,n,r=t("da84"),o=t("342f"),s=r.process,a=s&&s.versions,l=a&&a.v8;l?(i=l.split("."),n=i[0]+i[1]):o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(n=i[1]))),e.exports=n&&+n},"342f":function(e,A,t){var i=t("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,A,t){var i=t("f5df"),n=t("3f8c"),r=t("b622"),o=r("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||n[i(e)]}},"37e8":function(e,A,t){var i=t("83ab"),n=t("9bf2"),r=t("825a"),o=t("df75");e.exports=i?Object.defineProperties:function(e,A){r(e);var t,i=o(A),s=i.length,a=0;while(s>a)n.f(e,t=i[a++],A[t]);return e}},"3bbe":function(e,A,t){var i=t("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,A,t){"use strict";var i=t("6547").charAt,n=t("69f3"),r=t("7dd0"),o="String Iterator",s=n.set,a=n.getterFor(o);r(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,A=a(this),t=A.string,n=A.index;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),A.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,A){e.exports={}},4160:function(e,A,t){"use strict";var i=t("23e7"),n=t("17c2");i({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},"428f":function(e,A,t){var i=t("da84");e.exports=i},"44ad":function(e,A,t){var i=t("d039"),n=t("c6b6"),r="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==n(e)?r.call(e,""):Object(e)}:Object},"44d2":function(e,A,t){var i=t("b622"),n=t("7c73"),r=t("9bf2"),o=i("unscopables"),s=Array.prototype;void 0==s[o]&&r.f(s,o,{configurable:!0,value:n(null)}),e.exports=function(e){s[o][e]=!0}},"44e7":function(e,A,t){var i=t("861d"),n=t("c6b6"),r=t("b622"),o=r("match");e.exports=function(e){var A;return i(e)&&(void 0!==(A=e[o])?!!A:"RegExp"==n(e))}},4930:function(e,A,t){var i=t("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"4d64":function(e,A,t){var i=t("fc6a"),n=t("50c4"),r=t("23cb"),o=function(e){return function(A,t,o){var s,a=i(A),l=n(a.length),c=r(o,l);if(e&&t!=t){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===t)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(e,A,t){"use strict";var i=t("23e7"),n=t("b727").filter,r=t("1dde"),o=t("ae40"),s=r("filter"),a=o("filter");i({target:"Array",proto:!0,forced:!s||!a},{filter:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,A,t){"use strict";var i=t("0366"),n=t("7b0b"),r=t("9bdd"),o=t("e95a"),s=t("50c4"),a=t("8418"),l=t("35a1");e.exports=function(e){var A,t,c,d,u,h,g=n(e),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,B=void 0!==m,w=l(g),v=0;if(B&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==w||p==Array&&o(w))for(A=s(g.length),t=new p(A);A>v;v++)h=B?m(g[v],v):g[v],a(t,v,h);else for(d=w.call(g),u=d.next,t=new p;!(c=u.call(d)).done;v++)h=B?r(d,m,[c.value,v],!0):c.value,a(t,v,h);return t.length=v,t}},"4fad":function(e,A,t){var i=t("23e7"),n=t("6f53").entries;i({target:"Object",stat:!0},{entries:function(e){return n(e)}})},"50c4":function(e,A,t){var i=t("a691"),n=Math.min;e.exports=function(e){return e>0?n(i(e),9007199254740991):0}},5135:function(e,A){var t={}.hasOwnProperty;e.exports=function(e,A){return t.call(e,A)}},5319:function(e,A,t){"use strict";var i=t("d784"),n=t("825a"),r=t("7b0b"),o=t("50c4"),s=t("a691"),a=t("1d80"),l=t("8aa5"),c=t("14c3"),d=Math.max,u=Math.min,h=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g,f=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,A,t,i){var m=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,B=i.REPLACE_KEEPS_$0,w=m?"$":"$0";return[function(t,i){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n,i):A.call(String(n),t,i)},function(e,i){if(!m&&B||"string"===typeof i&&-1===i.indexOf(w)){var r=t(A,e,this,i);if(r.done)return r.value}var a=n(e),h=String(this),g="function"===typeof i;g||(i=String(i));var p=a.global;if(p){var y=a.unicode;a.lastIndex=0}var C=[];while(1){var b=c(a,h);if(null===b)break;if(C.push(b),!p)break;var _=String(b[0]);""===_&&(a.lastIndex=l(h,o(a.lastIndex),y))}for(var Q="",U=0,F=0;F<C.length;F++){b=C[F];for(var x=String(b[0]),E=d(u(s(b.index),h.length),0),k=[],I=1;I<b.length;I++)k.push(f(b[I]));var S=b.groups;if(g){var D=[x].concat(k,E,h);void 0!==S&&D.push(S);var H=String(i.apply(void 0,D))}else H=v(x,h,E,k,S,i);E>=U&&(Q+=h.slice(U,E)+H,U=E+x.length)}return Q+h.slice(U)}];function v(e,t,i,n,o,s){var a=i+e.length,l=n.length,c=p;return void 0!==o&&(o=r(o),c=g),A.call(s,c,(function(A,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(a);case"<":s=o[r.slice(1,-1)];break;default:var c=+r;if(0===c)return A;if(c>l){var d=h(c/10);return 0===d?A:d<=l?void 0===n[d-1]?r.charAt(1):n[d-1]+r.charAt(1):A}s=n[c-1]}return void 0===s?"":s}))}}))},5692:function(e,A,t){var i=t("c430"),n=t("c6cd");(e.exports=function(e,A){return n[e]||(n[e]=void 0!==A?A:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,A,t){var i=t("d066"),n=t("241c"),r=t("7418"),o=t("825a");e.exports=i("Reflect","ownKeys")||function(e){var A=n.f(o(e)),t=r.f;return t?A.concat(t(e)):A}},"5a34":function(e,A,t){var i=t("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,A){e.exports=function(e,A){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:A}}},"5db7":function(e,A,t){"use strict";var i=t("23e7"),n=t("a2bf"),r=t("7b0b"),o=t("50c4"),s=t("1c0b"),a=t("65f0");i({target:"Array",proto:!0},{flatMap:function(e){var A,t=r(this),i=o(t.length);return s(e),A=a(t,0),A.length=n(A,t,t,i,0,1,e,arguments.length>1?arguments[1]:void 0),A}})},6547:function(e,A,t){var i=t("a691"),n=t("1d80"),r=function(e){return function(A,t){var r,o,s=String(n(A)),a=i(t),l=s.length;return a<0||a>=l?e?"":void 0:(r=s.charCodeAt(a),r<55296||r>56319||a+1===l||(o=s.charCodeAt(a+1))<56320||o>57343?e?s.charAt(a):r:e?s.slice(a,a+2):o-56320+(r-55296<<10)+65536)}};e.exports={codeAt:r(!1),charAt:r(!0)}},"65f0":function(e,A,t){var i=t("861d"),n=t("e8b5"),r=t("b622"),o=r("species");e.exports=function(e,A){var t;return n(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!n(t.prototype)?i(t)&&(t=t[o],null===t&&(t=void 0)):t=void 0),new(void 0===t?Array:t)(0===A?0:A)}},"69f3":function(e,A,t){var i,n,r,o=t("7f9a"),s=t("da84"),a=t("861d"),l=t("9112"),c=t("5135"),d=t("f772"),u=t("d012"),h=s.WeakMap,g=function(e){return r(e)?n(e):i(e,{})},p=function(e){return function(A){var t;if(!a(A)||(t=n(A)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}};if(o){var f=new h,m=f.get,B=f.has,w=f.set;i=function(e,A){return w.call(f,e,A),A},n=function(e){return m.call(f,e)||{}},r=function(e){return B.call(f,e)}}else{var v=d("state");u[v]=!0,i=function(e,A){return l(e,v,A),A},n=function(e){return c(e,v)?e[v]:{}},r=function(e){return c(e,v)}}e.exports={set:i,get:n,has:r,enforce:g,getterFor:p}},"6eeb":function(e,A,t){var i=t("da84"),n=t("9112"),r=t("5135"),o=t("ce4e"),s=t("8925"),a=t("69f3"),l=a.get,c=a.enforce,d=String(String).split("String");(e.exports=function(e,A,t,s){var a=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,u=!!s&&!!s.noTargetGet;"function"==typeof t&&("string"!=typeof A||r(t,"name")||n(t,"name",A),c(t).source=d.join("string"==typeof A?A:"")),e!==i?(a?!u&&e[A]&&(l=!0):delete e[A],l?e[A]=t:n(e,A,t)):l?e[A]=t:o(A,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},"6f53":function(e,A,t){var i=t("83ab"),n=t("df75"),r=t("fc6a"),o=t("d1e7").f,s=function(e){return function(A){var t,s=r(A),a=n(s),l=a.length,c=0,d=[];while(l>c)t=a[c++],i&&!o.call(s,t)||d.push(e?[t,s[t]]:s[t]);return d}};e.exports={entries:s(!0),values:s(!1)}},"73d9":function(e,A,t){var i=t("44d2");i("flatMap")},7418:function(e,A){A.f=Object.getOwnPropertySymbols},"746f":function(e,A,t){var i=t("428f"),n=t("5135"),r=t("e538"),o=t("9bf2").f;e.exports=function(e){var A=i.Symbol||(i.Symbol={});n(A,e)||o(A,e,{value:r.f(e)})}},7839:function(e,A){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,A,t){var i=t("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,A,t){var i,n=t("825a"),r=t("37e8"),o=t("7839"),s=t("d012"),a=t("1be4"),l=t("cc12"),c=t("f772"),d=">",u="<",h="prototype",g="script",p=c("IE_PROTO"),f=function(){},m=function(e){return u+g+d+e+u+"/"+g+d},B=function(e){e.write(m("")),e.close();var A=e.parentWindow.Object;return e=null,A},w=function(){var e,A=l("iframe"),t="java"+g+":";return A.style.display="none",a.appendChild(A),A.src=String(t),e=A.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},v=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(A){}v=i?B(i):w();var e=o.length;while(e--)delete v[h][o[e]];return v()};s[p]=!0,e.exports=Object.create||function(e,A){var t;return null!==e?(f[h]=n(e),t=new f,f[h]=null,t[p]=e):t=v(),void 0===A?t:r(t,A)}},"7dd0":function(e,A,t){"use strict";var i=t("23e7"),n=t("9ed3"),r=t("e163"),o=t("d2bb"),s=t("d44e"),a=t("9112"),l=t("6eeb"),c=t("b622"),d=t("c430"),u=t("3f8c"),h=t("ae93"),g=h.IteratorPrototype,p=h.BUGGY_SAFARI_ITERATORS,f=c("iterator"),m="keys",B="values",w="entries",v=function(){return this};e.exports=function(e,A,t,c,h,y,C){n(t,A,c);var b,_,Q,U=function(e){if(e===h&&I)return I;if(!p&&e in E)return E[e];switch(e){case m:return function(){return new t(this,e)};case B:return function(){return new t(this,e)};case w:return function(){return new t(this,e)}}return function(){return new t(this)}},F=A+" Iterator",x=!1,E=e.prototype,k=E[f]||E["@@iterator"]||h&&E[h],I=!p&&k||U(h),S="Array"==A&&E.entries||k;if(S&&(b=r(S.call(new e)),g!==Object.prototype&&b.next&&(d||r(b)===g||(o?o(b,g):"function"!=typeof b[f]&&a(b,f,v)),s(b,F,!0,!0),d&&(u[F]=v))),h==B&&k&&k.name!==B&&(x=!0,I=function(){return k.call(this)}),d&&!C||E[f]===I||a(E,f,I),u[A]=I,h)if(_={values:U(B),keys:y?I:U(m),entries:U(w)},C)for(Q in _)(p||x||!(Q in E))&&l(E,Q,_[Q]);else i({target:A,proto:!0,forced:p||x},_);return _}},"7f9a":function(e,A,t){var i=t("da84"),n=t("8925"),r=i.WeakMap;e.exports="function"===typeof r&&/native code/.test(n(r))},"825a":function(e,A,t){var i=t("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,A,t){var i=t("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,A,t){"use strict";var i=t("c04e"),n=t("9bf2"),r=t("5c6c");e.exports=function(e,A,t){var o=i(A);o in e?n.f(e,o,r(0,t)):e[o]=t}},"861d":function(e,A){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,A,t){var i,n,r;(function(t,o){n=[],i=o,r="function"===typeof i?i.apply(A,n):i,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var A=Object.getOwnPropertyDescriptor(document,"currentScript");if(!A&&"currentScript"in document&&document.currentScript)return document.currentScript;if(A&&A.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var t,i,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,s=r.exec(h.stack)||o.exec(h.stack),a=s&&s[1]||!1,l=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");a===c&&(t=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(i,"$1").trim());for(var u=0;u<d.length;u++){if("interactive"===d[u].readyState)return d[u];if(d[u].src===a)return d[u];if(a===c&&d[u].innerHTML&&d[u].innerHTML.trim()===n)return d[u]}return null}}return e}))},8925:function(e,A,t){var i=t("c6cd"),n=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return n.call(e)}),e.exports=i.inspectSource},"8aa5":function(e,A,t){"use strict";var i=t("6547").charAt;e.exports=function(e,A,t){return A+(t?i(e,A).length:1)}},"8bbf":function(A,t){A.exports=e},"90e3":function(e,A){var t=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+i).toString(36)}},9112:function(e,A,t){var i=t("83ab"),n=t("9bf2"),r=t("5c6c");e.exports=i?function(e,A,t){return n.f(e,A,r(1,t))}:function(e,A,t){return e[A]=t,e}},9263:function(e,A,t){"use strict";var i=t("ad6d"),n=t("9f7f"),r=RegExp.prototype.exec,o=String.prototype.replace,s=r,a=function(){var e=/a/,A=/b*/g;return r.call(e,"a"),r.call(A,"a"),0!==e.lastIndex||0!==A.lastIndex}(),l=n.UNSUPPORTED_Y||n.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],d=a||c||l;d&&(s=function(e){var A,t,n,s,d=this,u=l&&d.sticky,h=i.call(d),g=d.source,p=0,f=e;return u&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),f=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(g="(?: "+g+")",f=" "+f,p++),t=new RegExp("^(?:"+g+")",h)),c&&(t=new RegExp("^"+g+"$(?!\\s)",h)),a&&(A=d.lastIndex),n=r.call(u?t:d,f),u?n?(n.input=n.input.slice(p),n[0]=n[0].slice(p),n.index=d.lastIndex,d.lastIndex+=n[0].length):d.lastIndex=0:a&&n&&(d.lastIndex=d.global?n.index+n[0].length:A),c&&n&&n.length>1&&o.call(n[0],t,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n}),e.exports=s},"94ca":function(e,A,t){var i=t("d039"),n=/#|\.prototype\./,r=function(e,A){var t=s[o(e)];return t==l||t!=a&&("function"==typeof A?i(A):!!A)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},s=r.data={},a=r.NATIVE="N",l=r.POLYFILL="P";e.exports=r},"99af":function(e,A,t){"use strict";var i=t("23e7"),n=t("d039"),r=t("e8b5"),o=t("861d"),s=t("7b0b"),a=t("50c4"),l=t("8418"),c=t("65f0"),d=t("1dde"),u=t("b622"),h=t("2d00"),g=u("isConcatSpreadable"),p=9007199254740991,f="Maximum allowed index exceeded",m=h>=51||!n((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),B=d("concat"),w=function(e){if(!o(e))return!1;var A=e[g];return void 0!==A?!!A:r(e)},v=!m||!B;i({target:"Array",proto:!0,forced:v},{concat:function(e){var A,t,i,n,r,o=s(this),d=c(o,0),u=0;for(A=-1,i=arguments.length;A<i;A++)if(r=-1===A?o:arguments[A],w(r)){if(n=a(r.length),u+n>p)throw TypeError(f);for(t=0;t<n;t++,u++)t in r&&l(d,u,r[t])}else{if(u>=p)throw TypeError(f);l(d,u++,r)}return d.length=u,d}})},"9bdd":function(e,A,t){var i=t("825a");e.exports=function(e,A,t,n){try{return n?A(i(t)[0],t[1]):A(t)}catch(o){var r=e["return"];throw void 0!==r&&i(r.call(e)),o}}},"9bf2":function(e,A,t){var i=t("83ab"),n=t("0cfb"),r=t("825a"),o=t("c04e"),s=Object.defineProperty;A.f=i?s:function(e,A,t){if(r(e),A=o(A,!0),r(t),n)try{return s(e,A,t)}catch(i){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[A]=t.value),e}},"9ed3":function(e,A,t){"use strict";var i=t("ae93").IteratorPrototype,n=t("7c73"),r=t("5c6c"),o=t("d44e"),s=t("3f8c"),a=function(){return this};e.exports=function(e,A,t){var l=A+" Iterator";return e.prototype=n(i,{next:r(1,t)}),o(e,l,!1,!0),s[l]=a,e}},"9f7f":function(e,A,t){"use strict";var i=t("d039");function n(e,A){return RegExp(e,A)}A.UNSUPPORTED_Y=i((function(){var e=n("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),A.BROKEN_CARET=i((function(){var e=n("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a2bf:function(e,A,t){"use strict";var i=t("e8b5"),n=t("50c4"),r=t("0366"),o=function(e,A,t,s,a,l,c,d){var u,h=a,g=0,p=!!c&&r(c,d,3);while(g<s){if(g in t){if(u=p?p(t[g],g,A):t[g],l>0&&i(u))h=o(e,A,u,n(u.length),h,l-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[h]=u}h++}g++}return h};e.exports=o},a352:function(e,t){e.exports=A},a434:function(e,A,t){"use strict";var i=t("23e7"),n=t("23cb"),r=t("a691"),o=t("50c4"),s=t("7b0b"),a=t("65f0"),l=t("8418"),c=t("1dde"),d=t("ae40"),u=c("splice"),h=d("splice",{ACCESSORS:!0,0:0,1:2}),g=Math.max,p=Math.min,f=9007199254740991,m="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!u||!h},{splice:function(e,A){var t,i,c,d,u,h,B=s(this),w=o(B.length),v=n(e,w),y=arguments.length;if(0===y?t=i=0:1===y?(t=0,i=w-v):(t=y-2,i=p(g(r(A),0),w-v)),w+t-i>f)throw TypeError(m);for(c=a(B,i),d=0;d<i;d++)u=v+d,u in B&&l(c,d,B[u]);if(c.length=i,t<i){for(d=v;d<w-i;d++)u=d+i,h=d+t,u in B?B[h]=B[u]:delete B[h];for(d=w;d>w-i+t;d--)delete B[d-1]}else if(t>i)for(d=w-i;d>v;d--)u=d+i-1,h=d+t-1,u in B?B[h]=B[u]:delete B[h];for(d=0;d<t;d++)B[d+v]=arguments[d+2];return B.length=w-i+t,c}})},a4d3:function(e,A,t){"use strict";var i=t("23e7"),n=t("da84"),r=t("d066"),o=t("c430"),s=t("83ab"),a=t("4930"),l=t("fdbf"),c=t("d039"),d=t("5135"),u=t("e8b5"),h=t("861d"),g=t("825a"),p=t("7b0b"),f=t("fc6a"),m=t("c04e"),B=t("5c6c"),w=t("7c73"),v=t("df75"),y=t("241c"),C=t("057f"),b=t("7418"),_=t("06cf"),Q=t("9bf2"),U=t("d1e7"),F=t("9112"),x=t("6eeb"),E=t("5692"),k=t("f772"),I=t("d012"),S=t("90e3"),D=t("b622"),H=t("e538"),L=t("746f"),O=t("d44e"),M=t("69f3"),T=t("b727").forEach,N=k("hidden"),K="Symbol",P="prototype",R=D("toPrimitive"),V=M.set,G=M.getterFor(K),j=Object[P],z=n.Symbol,Z=r("JSON","stringify"),W=_.f,Y=Q.f,X=C.f,J=U.f,$=E("symbols"),q=E("op-symbols"),ee=E("string-to-symbol-registry"),Ae=E("symbol-to-string-registry"),te=E("wks"),ie=n.QObject,ne=!ie||!ie[P]||!ie[P].findChild,re=s&&c((function(){return 7!=w(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,A,t){var i=W(j,A);i&&delete j[A],Y(e,A,t),i&&e!==j&&Y(j,A,i)}:Y,oe=function(e,A){var t=$[e]=w(z[P]);return V(t,{type:K,tag:e,description:A}),s||(t.description=A),t},se=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof z},ae=function(e,A,t){e===j&&ae(q,A,t),g(e);var i=m(A,!0);return g(t),d($,i)?(t.enumerable?(d(e,N)&&e[N][i]&&(e[N][i]=!1),t=w(t,{enumerable:B(0,!1)})):(d(e,N)||Y(e,N,B(1,{})),e[N][i]=!0),re(e,i,t)):Y(e,i,t)},le=function(e,A){g(e);var t=f(A),i=v(t).concat(ge(t));return T(i,(function(A){s&&!de.call(t,A)||ae(e,A,t[A])})),e},ce=function(e,A){return void 0===A?w(e):le(w(e),A)},de=function(e){var A=m(e,!0),t=J.call(this,A);return!(this===j&&d($,A)&&!d(q,A))&&(!(t||!d(this,A)||!d($,A)||d(this,N)&&this[N][A])||t)},ue=function(e,A){var t=f(e),i=m(A,!0);if(t!==j||!d($,i)||d(q,i)){var n=W(t,i);return!n||!d($,i)||d(t,N)&&t[N][i]||(n.enumerable=!0),n}},he=function(e){var A=X(f(e)),t=[];return T(A,(function(e){d($,e)||d(I,e)||t.push(e)})),t},ge=function(e){var A=e===j,t=X(A?q:f(e)),i=[];return T(t,(function(e){!d($,e)||A&&!d(j,e)||i.push($[e])})),i};if(a||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,A=S(e),t=function(e){this===j&&t.call(q,e),d(this,N)&&d(this[N],A)&&(this[N][A]=!1),re(this,A,B(1,e))};return s&&ne&&re(j,A,{configurable:!0,set:t}),oe(A,e)},x(z[P],"toString",(function(){return G(this).tag})),x(z,"withoutSetter",(function(e){return oe(S(e),e)})),U.f=de,Q.f=ae,_.f=ue,y.f=C.f=he,b.f=ge,H.f=function(e){return oe(D(e),e)},s&&(Y(z[P],"description",{configurable:!0,get:function(){return G(this).description}}),o||x(j,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:z}),T(v(te),(function(e){L(e)})),i({target:K,stat:!0,forced:!a},{for:function(e){var A=String(e);if(d(ee,A))return ee[A];var t=z(A);return ee[A]=t,Ae[t]=A,t},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(Ae,e))return Ae[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),i({target:"Object",stat:!0,forced:!a,sham:!s},{create:ce,defineProperty:ae,defineProperties:le,getOwnPropertyDescriptor:ue}),i({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:he,getOwnPropertySymbols:ge}),i({target:"Object",stat:!0,forced:c((function(){b.f(1)}))},{getOwnPropertySymbols:function(e){return b.f(p(e))}}),Z){var pe=!a||c((function(){var e=z();return"[null]"!=Z([e])||"{}"!=Z({a:e})||"{}"!=Z(Object(e))}));i({target:"JSON",stat:!0,forced:pe},{stringify:function(e,A,t){var i,n=[e],r=1;while(arguments.length>r)n.push(arguments[r++]);if(i=A,(h(A)||void 0!==e)&&!se(e))return u(A)||(A=function(e,A){if("function"==typeof i&&(A=i.call(this,e,A)),!se(A))return A}),n[1]=A,Z.apply(null,n)}})}z[P][R]||F(z[P],R,z[P].valueOf),O(z,K),I[N]=!0},a630:function(e,A,t){var i=t("23e7"),n=t("4df4"),r=t("1c7e"),o=!r((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:o},{from:n})},a640:function(e,A,t){"use strict";var i=t("d039");e.exports=function(e,A){var t=[][e];return!!t&&i((function(){t.call(null,A||function(){throw 1},1)}))}},a691:function(e,A){var t=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:t)(e)}},ab13:function(e,A,t){var i=t("b622"),n=i("match");e.exports=function(e){var A=/./;try{"/./"[e](A)}catch(t){try{return A[n]=!1,"/./"[e](A)}catch(i){}}return!1}},ac1f:function(e,A,t){"use strict";var i=t("23e7"),n=t("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},ad6d:function(e,A,t){"use strict";var i=t("825a");e.exports=function(){var e=i(this),A="";return e.global&&(A+="g"),e.ignoreCase&&(A+="i"),e.multiline&&(A+="m"),e.dotAll&&(A+="s"),e.unicode&&(A+="u"),e.sticky&&(A+="y"),A}},ae40:function(e,A,t){var i=t("83ab"),n=t("d039"),r=t("5135"),o=Object.defineProperty,s={},a=function(e){throw e};e.exports=function(e,A){if(r(s,e))return s[e];A||(A={});var t=[][e],l=!!r(A,"ACCESSORS")&&A.ACCESSORS,c=r(A,0)?A[0]:a,d=r(A,1)?A[1]:void 0;return s[e]=!!t&&!n((function(){if(l&&!i)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:a}):e[1]=1,t.call(e,c,d)}))}},ae93:function(e,A,t){"use strict";var i,n,r,o=t("e163"),s=t("9112"),a=t("5135"),l=t("b622"),c=t("c430"),d=l("iterator"),u=!1,h=function(){return this};[].keys&&(r=[].keys(),"next"in r?(n=o(o(r)),n!==Object.prototype&&(i=n)):u=!0),void 0==i&&(i={}),c||a(i,d)||s(i,d,h),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:u}},b041:function(e,A,t){"use strict";var i=t("00ee"),n=t("f5df");e.exports=i?{}.toString:function(){return"[object "+n(this)+"]"}},b0c0:function(e,A,t){var i=t("83ab"),n=t("9bf2").f,r=Function.prototype,o=r.toString,s=/^\s*function ([^ (]*)/,a="name";i&&!(a in r)&&n(r,a,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})},b622:function(e,A,t){var i=t("da84"),n=t("5692"),r=t("5135"),o=t("90e3"),s=t("4930"),a=t("fdbf"),l=n("wks"),c=i.Symbol,d=a?c:c&&c.withoutSetter||o;e.exports=function(e){return r(l,e)||(s&&r(c,e)?l[e]=c[e]:l[e]=d("Symbol."+e)),l[e]}},b64b:function(e,A,t){var i=t("23e7"),n=t("7b0b"),r=t("df75"),o=t("d039"),s=o((function(){r(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return r(n(e))}})},b727:function(e,A,t){var i=t("0366"),n=t("44ad"),r=t("7b0b"),o=t("50c4"),s=t("65f0"),a=[].push,l=function(e){var A=1==e,t=2==e,l=3==e,c=4==e,d=6==e,u=5==e||d;return function(h,g,p,f){for(var m,B,w=r(h),v=n(w),y=i(g,p,3),C=o(v.length),b=0,_=f||s,Q=A?_(h,C):t?_(h,0):void 0;C>b;b++)if((u||b in v)&&(m=v[b],B=y(m,b,w),e))if(A)Q[b]=B;else if(B)switch(e){case 3:return!0;case 5:return m;case 6:return b;case 2:a.call(Q,m)}else if(c)return!1;return d?-1:l||c?c:Q}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},c04e:function(e,A,t){var i=t("861d");e.exports=function(e,A){if(!i(e))return e;var t,n;if(A&&"function"==typeof(t=e.toString)&&!i(n=t.call(e)))return n;if("function"==typeof(t=e.valueOf)&&!i(n=t.call(e)))return n;if(!A&&"function"==typeof(t=e.toString)&&!i(n=t.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},c430:function(e,A){e.exports=!1},c6b6:function(e,A){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},c6cd:function(e,A,t){var i=t("da84"),n=t("ce4e"),r="__core-js_shared__",o=i[r]||n(r,{});e.exports=o},c740:function(e,A,t){"use strict";var i=t("23e7"),n=t("b727").findIndex,r=t("44d2"),o=t("ae40"),s="findIndex",a=!0,l=o(s);s in[]&&Array(1)[s]((function(){a=!1})),i({target:"Array",proto:!0,forced:a||!l},{findIndex:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),r(s)},c8ba:function(e,A){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(i){"object"===typeof window&&(t=window)}e.exports=t},c975:function(e,A,t){"use strict";var i=t("23e7"),n=t("4d64").indexOf,r=t("a640"),o=t("ae40"),s=[].indexOf,a=!!s&&1/[1].indexOf(1,-0)<0,l=r("indexOf"),c=o("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:a||!l||!c},{indexOf:function(e){return a?s.apply(this,arguments)||0:n(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,A,t){var i=t("5135"),n=t("fc6a"),r=t("4d64").indexOf,o=t("d012");e.exports=function(e,A){var t,s=n(e),a=0,l=[];for(t in s)!i(o,t)&&i(s,t)&&l.push(t);while(A.length>a)i(s,t=A[a++])&&(~r(l,t)||l.push(t));return l}},caad:function(e,A,t){"use strict";var i=t("23e7"),n=t("4d64").includes,r=t("44d2"),o=t("ae40"),s=o("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!s},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},cc12:function(e,A,t){var i=t("da84"),n=t("861d"),r=i.document,o=n(r)&&n(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},ce4e:function(e,A,t){var i=t("da84"),n=t("9112");e.exports=function(e,A){try{n(i,e,A)}catch(t){i[e]=A}return A}},d012:function(e,A){e.exports={}},d039:function(e,A){e.exports=function(e){try{return!!e()}catch(A){return!0}}},d066:function(e,A,t){var i=t("428f"),n=t("da84"),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,A){return arguments.length<2?r(i[e])||r(n[e]):i[e]&&i[e][A]||n[e]&&n[e][A]}},d1e7:function(e,A,t){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);A.f=r?function(e){var A=n(this,e);return!!A&&A.enumerable}:i},d28b:function(e,A,t){var i=t("746f");i("iterator")},d2bb:function(e,A,t){var i=t("825a"),n=t("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,A=!1,t={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(t,[]),A=t instanceof Array}catch(r){}return function(t,r){return i(t),n(r),A?e.call(t,r):t.__proto__=r,t}}():void 0)},d3b7:function(e,A,t){var i=t("00ee"),n=t("6eeb"),r=t("b041");i||n(Object.prototype,"toString",r,{unsafe:!0})},d44e:function(e,A,t){var i=t("9bf2").f,n=t("5135"),r=t("b622"),o=r("toStringTag");e.exports=function(e,A,t){e&&!n(e=t?e:e.prototype,o)&&i(e,o,{configurable:!0,value:A})}},d58f:function(e,A,t){var i=t("1c0b"),n=t("7b0b"),r=t("44ad"),o=t("50c4"),s=function(e){return function(A,t,s,a){i(t);var l=n(A),c=r(l),d=o(l.length),u=e?d-1:0,h=e?-1:1;if(s<2)while(1){if(u in c){a=c[u],u+=h;break}if(u+=h,e?u<0:d<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:d>u;u+=h)u in c&&(a=t(a,c[u],u,l));return a}};e.exports={left:s(!1),right:s(!0)}},d784:function(e,A,t){"use strict";t("ac1f");var i=t("6eeb"),n=t("d039"),r=t("b622"),o=t("9263"),s=t("9112"),a=r("species"),l=!n((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),d=r("replace"),u=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),h=!n((function(){var e=/(?:)/,A=e.exec;e.exec=function(){return A.apply(this,arguments)};var t="ab".split(e);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}));e.exports=function(e,A,t,d){var g=r(e),p=!n((function(){var A={};return A[g]=function(){return 7},7!=""[e](A)})),f=p&&!n((function(){var A=!1,t=/a/;return"split"===e&&(t={},t.constructor={},t.constructor[a]=function(){return t},t.flags="",t[g]=/./[g]),t.exec=function(){return A=!0,null},t[g](""),!A}));if(!p||!f||"replace"===e&&(!l||!c||u)||"split"===e&&!h){var m=/./[g],B=t(g,""[e],(function(e,A,t,i,n){return A.exec===o?p&&!n?{done:!0,value:m.call(A,t,i)}:{done:!0,value:e.call(t,A,i)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:u}),w=B[0],v=B[1];i(String.prototype,e,w),i(RegExp.prototype,g,2==A?function(e,A){return v.call(e,this,A)}:function(e){return v.call(e,this)})}d&&s(RegExp.prototype[g],"sham",!0)}},d81d:function(e,A,t){"use strict";var i=t("23e7"),n=t("b727").map,r=t("1dde"),o=t("ae40"),s=r("map"),a=o("map");i({target:"Array",proto:!0,forced:!s||!a},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,A,t){(function(A){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof A&&A)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(e,A,t){var i=t("23e7"),n=t("83ab"),r=t("56ef"),o=t("fc6a"),s=t("06cf"),a=t("8418");i({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(e){var A,t,i=o(e),n=s.f,l=r(i),c={},d=0;while(l.length>d)t=n(i,A=l[d++]),void 0!==t&&a(c,A,t);return c}})},dbf1:function(e,A,t){"use strict";(function(e){function i(){return"undefined"!==typeof window?window.console:e.console}t.d(A,"a",(function(){return n}));var n=i()}).call(this,t("c8ba"))},ddb0:function(e,A,t){var i=t("da84"),n=t("fdbc"),r=t("e260"),o=t("9112"),s=t("b622"),a=s("iterator"),l=s("toStringTag"),c=r.values;for(var d in n){var u=i[d],h=u&&u.prototype;if(h){if(h[a]!==c)try{o(h,a,c)}catch(p){h[a]=c}if(h[l]||o(h,l,d),n[d])for(var g in r)if(h[g]!==r[g])try{o(h,g,r[g])}catch(p){h[g]=r[g]}}}},df75:function(e,A,t){var i=t("ca84"),n=t("7839");e.exports=Object.keys||function(e){return i(e,n)}},e01a:function(e,A,t){"use strict";var i=t("23e7"),n=t("83ab"),r=t("da84"),o=t("5135"),s=t("861d"),a=t("9bf2").f,l=t("e893"),c=r.Symbol;if(n&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var d={},u=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),A=this instanceof u?new c(e):void 0===e?c():c(e);return""===e&&(d[A]=!0),A};l(u,c);var h=u.prototype=c.prototype;h.constructor=u;var g=h.toString,p="Symbol(test)"==String(c("test")),f=/^Symbol\((.*)\)[^)]+$/;a(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,A=g.call(e);if(o(d,e))return"";var t=p?A.slice(7,-1):A.replace(f,"$1");return""===t?void 0:t}}),i({global:!0,forced:!0},{Symbol:u})}},e163:function(e,A,t){var i=t("5135"),n=t("7b0b"),r=t("f772"),o=t("e177"),s=r("IE_PROTO"),a=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=n(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},e177:function(e,A,t){var i=t("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,A,t){"use strict";var i=t("fc6a"),n=t("44d2"),r=t("3f8c"),o=t("69f3"),s=t("7dd0"),a="Array Iterator",l=o.set,c=o.getterFor(a);e.exports=s(Array,"Array",(function(e,A){l(this,{type:a,target:i(e),index:0,kind:A})}),(function(){var e=c(this),A=e.target,t=e.kind,i=e.index++;return!A||i>=A.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:i,done:!1}:"values"==t?{value:A[i],done:!1}:{value:[i,A[i]],done:!1}}),"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},e439:function(e,A,t){var i=t("23e7"),n=t("d039"),r=t("fc6a"),o=t("06cf").f,s=t("83ab"),a=n((function(){o(1)})),l=!s||a;i({target:"Object",stat:!0,forced:l,sham:!s},{getOwnPropertyDescriptor:function(e,A){return o(r(e),A)}})},e538:function(e,A,t){var i=t("b622");A.f=i},e893:function(e,A,t){var i=t("5135"),n=t("56ef"),r=t("06cf"),o=t("9bf2");e.exports=function(e,A){for(var t=n(A),s=o.f,a=r.f,l=0;l<t.length;l++){var c=t[l];i(e,c)||s(e,c,a(A,c))}}},e8b5:function(e,A,t){var i=t("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e95a:function(e,A,t){var i=t("b622"),n=t("3f8c"),r=i("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[r]===e)}},f5df:function(e,A,t){var i=t("00ee"),n=t("c6b6"),r=t("b622"),o=r("toStringTag"),s="Arguments"==n(function(){return arguments}()),a=function(e,A){try{return e[A]}catch(t){}};e.exports=i?n:function(e){var A,t,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=a(A=Object(e),o))?t:s?n(A):"Object"==(i=n(A))&&"function"==typeof A.callee?"Arguments":i}},f772:function(e,A,t){var i=t("5692"),n=t("90e3"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=n(e))}},fb15:function(e,A,t){"use strict";if(t.r(A),"undefined"!==typeof window){var i=window.document.currentScript,n=t("8875");i=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(t.p=r[1])}t("99af"),t("4de4"),t("4160"),t("c975"),t("d81d"),t("a434"),t("159b"),t("a4d3"),t("e439"),t("dbb4"),t("b64b");function o(e,A,t){return A in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}function s(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);A&&(i=i.filter((function(A){return Object.getOwnPropertyDescriptor(e,A).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var A=1;A<arguments.length;A++){var t=null!=arguments[A]?arguments[A]:{};A%2?s(Object(t),!0).forEach((function(A){o(e,A,t[A])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(A){Object.defineProperty(e,A,Object.getOwnPropertyDescriptor(t,A))}))}return e}function l(e){if(Array.isArray(e))return e}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function c(e,A){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var t=[],i=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(t.push(o.value),A&&t.length===A)break}catch(a){n=!0,r=a}finally{try{i||null==s["return"]||s["return"]()}finally{if(n)throw r}}return t}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function d(e,A){(null==A||A>e.length)&&(A=e.length);for(var t=0,i=new Array(A);t<A;t++)i[t]=e[t];return i}function u(e,A){if(e){if("string"===typeof e)return d(e,A);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,A):void 0}}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,A){return l(e)||c(e,A)||u(e,A)||h()}function p(e){if(Array.isArray(e))return d(e)}function f(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function m(){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 B(e){return p(e)||f(e)||u(e)||m()}var w=t("a352"),v=t.n(w);function y(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function C(e,A,t){var i=0===t?e.children[0]:e.children[t-1].nextSibling;e.insertBefore(A,i)}var b=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function _(e){var A=Object.create(null);return function(t){var i=A[t];return i||(A[t]=e(t))}}var Q=/-(\w)/g,U=_((function(e){return e.replace(Q,(function(e,A){return A.toUpperCase()}))})),F=(t("5db7"),t("73d9"),["Start","Add","Remove","Update","End"]),x=["Choose","Unchoose","Sort","Filter","Clone"],E=["Move"],k=[E,F,x].flatMap((function(e){return e})).map((function(e){return"on".concat(e)})),I={manage:E,manageAndEmit:F,emit:x};function S(e){return-1!==k.indexOf(e)}t("caad"),t("2ca0");var D=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function H(e){return D.includes(e)}function L(e){return["transition-group","TransitionGroup"].includes(e)}function O(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function M(e){return e.reduce((function(e,A){var t=g(A,2),i=t[0],n=t[1];return e[i]=n,e}),{})}function T(e){var A=e.$attrs,t=e.componentData,i=void 0===t?{}:t,n=M(Object.entries(A).filter((function(e){var A=g(e,2),t=A[0];A[1];return O(t)})));return a(a({},n),i)}function N(e){var A=e.$attrs,t=e.callBackBuilder,i=M(K(A));Object.entries(t).forEach((function(e){var A=g(e,2),t=A[0],n=A[1];I[t].forEach((function(e){i["on".concat(e)]=n(e)}))}));var n="[data-draggable]".concat(i.draggable||"");return a(a({},i),{},{draggable:n})}function K(e){return Object.entries(e).filter((function(e){var A=g(e,2),t=A[0];A[1];return!O(t)})).map((function(e){var A=g(e,2),t=A[0],i=A[1];return[U(t),i]})).filter((function(e){var A=g(e,2),t=A[0];A[1];return!S(t)}))}t("c740");function P(e,A){if(!(e instanceof A))throw new TypeError("Cannot call a class as a function")}function R(e,A){for(var t=0;t<A.length;t++){var i=A[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function V(e,A,t){return A&&R(e.prototype,A),t&&R(e,t),e}var G=function(e){var A=e.el;return A},j=function(e,A){return e.__draggable_context=A},z=function(e){return e.__draggable_context},Z=function(){function e(A){var t=A.nodes,i=t.header,n=t.default,r=t.footer,o=A.root,s=A.realList;P(this,e),this.defaultNodes=n,this.children=[].concat(B(i),B(n),B(r)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}return V(e,[{key:"render",value:function(e,A){var t=this.tag,i=this.children,n=this._isRootComponent,r=n?{default:function(){return i}}:i;return e(t,A,r)}},{key:"updated",value:function(){var e=this.defaultNodes,A=this.realList;e.forEach((function(e,t){j(G(e),{element:A[t],index:t})}))}},{key:"getUnderlyingVm",value:function(e){return z(e)}},{key:"getVmIndexFromDomIndex",value:function(e,A){var t=this.defaultNodes,i=t.length,n=A.children,r=n.item(e);if(null===r)return i;var o=z(r);if(o)return o.index;if(0===i)return 0;var s=G(t[0]),a=B(n).findIndex((function(e){return e===s}));return e<a?0:i}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),e}(),W=t("8bbf");function Y(e,A){var t=e[A];return t?t():[]}function X(e){var A=e.$slots,t=e.realList,i=e.getKey,n=t||[],r=["header","footer"].map((function(e){return Y(A,e)})),o=g(r,2),s=o[0],l=o[1],c=A.item;if(!c)throw new Error("draggable element must have an item slot");var d=n.flatMap((function(e,A){return c({element:e,index:A}).map((function(A){return A.key=i(e),A.props=a(a({},A.props||{}),{},{"data-draggable":!0}),A}))}));if(d.length!==n.length)throw new Error("Item slot must have only one child");return{header:s,footer:l,default:d}}function J(e){var A=L(e),t=!H(e)&&!A;return{transition:A,externalComponent:t,tag:t?Object(W["resolveComponent"])(e):A?W["TransitionGroup"]:e}}function $(e){var A=e.$slots,t=e.tag,i=e.realList,n=e.getKey,r=X({$slots:A,realList:i,getKey:n}),o=J(t);return new Z({nodes:r,root:o,realList:i})}function q(e,A){var t=this;Object(W["nextTick"])((function(){return t.$emit(e.toLowerCase(),A)}))}function ee(e){var A=this;return function(t,i){if(null!==A.realList)return A["onDrag".concat(e)](t,i)}}function Ae(e){var A=this,t=ee.call(this,e);return function(i,n){t.call(A,i,n),q.call(A,e,i)}}var te=null,ie={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},ne=["update:modelValue","change"].concat(B([].concat(B(I.manageAndEmit),B(I.emit)).map((function(e){return e.toLowerCase()})))),re=Object(W["defineComponent"])({name:"draggable",inheritAttrs:!1,props:ie,emits:ne,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,A=this.$attrs,t=this.tag,i=this.componentData,n=this.realList,r=this.getKey,o=$({$slots:e,tag:t,realList:n,getKey:r});this.componentStructure=o;var s=T({$attrs:A,componentData:i});return o.render(W["h"],s)}catch(a){return this.error=!0,Object(W["h"])("pre",{style:{color:"red"}},a.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&b["a"].error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var A=this.$attrs,t=this.$el,i=this.componentStructure;i.updated();var n=N({$attrs:A,callBackBuilder:{manageAndEmit:function(A){return Ae.call(e,A)},emit:function(A){return q.bind(e,A)},manage:function(A){return ee.call(e,A)}}}),r=1===t.nodeType?t:t.parentElement;this._sortable=new v.a(r,n),this.targetDomElement=r,r.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"===typeof e?e:function(A){return A[e]}}},watch:{$attrs:{handler:function(e){var A=this._sortable;A&&K(e).forEach((function(e){var t=g(e,2),i=t[0],n=t[1];A.option(i,n)}))},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var A=this;Object(W["nextTick"])((function(){return A.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var A=B(this.modelValue);e(A),this.$emit("update:modelValue",A)}},spliceList:function(){var e=arguments,A=function(A){return A.splice.apply(A,B(e))};this.alterList(A)},updatePosition:function(e,A){var t=function(t){return t.splice(A,0,t.splice(e,1)[0])};this.alterList(t)},getRelatedContextFromMoveEvent:function(e){var A=e.to,t=e.related,i=this.getUnderlyingPotencialDraggableComponent(A);if(!i)return{component:i};var n=i.realList,r={list:n,component:i};if(A!==t&&n){var o=i.getUnderlyingVm(t)||{};return a(a({},o),r)}return r},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),te=e.item},onDragAdd:function(e){var A=e.item._underlying_vm_;if(void 0!==A){y(e.item);var t=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(t,0,A);var i={element:A,newIndex:t};this.emitChanges({added:i})}},onDragRemove:function(e){if(C(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var A=this.context,t=A.index,i=A.element;this.spliceList(t,1);var n={element:i,oldIndex:t};this.emitChanges({removed:n})}else y(e.clone)},onDragUpdate:function(e){y(e.item),C(e.from,e.item,e.oldIndex);var A=this.context.index,t=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(A,t);var i={element:this.context.element,oldIndex:A,newIndex:t};this.emitChanges({moved:i})},computeFutureIndex:function(e,A){if(!e.element)return 0;var t=B(A.to.children).filter((function(e){return"none"!==e.style["display"]})),i=t.indexOf(A.related),n=e.component.getVmIndexFromDomIndex(i),r=-1!==t.indexOf(te);return r||!A.willInsertAfter?n:n+1},onDragMove:function(e,A){var t=this.move,i=this.realList;if(!t||!i)return!0;var n=this.getRelatedContextFromMoveEvent(e),r=this.computeFutureIndex(n,e),o=a(a({},this.context),{},{futureIndex:r}),s=a(a({},e),{},{relatedContext:n,draggedContext:o});return t(s,A)},onDragEnd:function(){te=null}}}),oe=re;A["default"]=oe},fb6a:function(e,A,t){"use strict";var i=t("23e7"),n=t("861d"),r=t("e8b5"),o=t("23cb"),s=t("50c4"),a=t("fc6a"),l=t("8418"),c=t("b622"),d=t("1dde"),u=t("ae40"),h=d("slice"),g=u("slice",{ACCESSORS:!0,0:0,1:2}),p=c("species"),f=[].slice,m=Math.max;i({target:"Array",proto:!0,forced:!h||!g},{slice:function(e,A){var t,i,c,d=a(this),u=s(d.length),h=o(e,u),g=o(void 0===A?u:A,u);if(r(d)&&(t=d.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)?n(t)&&(t=t[p],null===t&&(t=void 0)):t=void 0,t===Array||void 0===t))return f.call(d,h,g);for(i=new(void 0===t?Array:t)(m(g-h,0)),c=0;h<g;h++,c++)h in d&&l(i,c,d[h]);return i.length=c,i}})},fc6a:function(e,A,t){var i=t("44ad"),n=t("1d80");e.exports=function(e){return i(n(e))}},fdbc:function(e,A){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,A,t){var i=t("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}))},8244:function(e,A,t){"use strict";
/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function i(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);A&&(i=i.filter((function(A){return Object.getOwnPropertyDescriptor(e,A).enumerable}))),t.push.apply(t,i)}return t}function n(e){for(var A=1;A<arguments.length;A++){var t=null!=arguments[A]?arguments[A]:{};A%2?i(Object(t),!0).forEach((function(A){o(e,A,t[A])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(A){Object.defineProperty(e,A,Object.getOwnPropertyDescriptor(t,A))}))}return e}function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,A,t){return A in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}function s(){return s=Object.assign||function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},s.apply(this,arguments)}function a(e,A){if(null==e)return{};var t,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)t=r[i],A.indexOf(t)>=0||(n[t]=e[t]);return n}function l(e,A){if(null==e)return{};var t,i,n=a(e,A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)t=r[i],A.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function c(e){return d(e)||u(e)||h(e)||p()}function d(e){if(Array.isArray(e))return g(e)}function u(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e,A){if(e){if("string"===typeof e)return g(e,A);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,A):void 0}}function g(e,A){(null==A||A>e.length)&&(A=e.length);for(var t=0,i=new Array(A);t<A;t++)i[t]=e[t];return i}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.r(A),t.d(A,{MultiDrag:function(){return VA},Sortable:function(){return tA},Swap:function(){return IA}});var f="1.14.0";function m(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var B=m(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=m(/Edge/i),v=m(/firefox/i),y=m(/safari/i)&&!m(/chrome/i)&&!m(/android/i),C=m(/iP(ad|od|hone)/i),b=m(/chrome/i)&&m(/android/i),_={capture:!1,passive:!1};function Q(e,A,t){e.addEventListener(A,t,!B&&_)}function U(e,A,t){e.removeEventListener(A,t,!B&&_)}function F(e,A){if(A){if(">"===A[0]&&(A=A.substring(1)),e)try{if(e.matches)return e.matches(A);if(e.msMatchesSelector)return e.msMatchesSelector(A);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(A)}catch(t){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,A,t,i){if(e){t=t||document;do{if(null!=A&&(">"===A[0]?e.parentNode===t&&F(e,A):F(e,A))||i&&e===t)return e;if(e===t)break}while(e=x(e))}return null}var k,I=/\s+/g;function S(e,A,t){if(e&&A)if(e.classList)e.classList[t?"add":"remove"](A);else{var i=(" "+e.className+" ").replace(I," ").replace(" "+A+" "," ");e.className=(i+(t?" "+A:"")).replace(I," ")}}function D(e,A,t){var i=e&&e.style;if(i){if(void 0===t)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),void 0===A?t:t[A];A in i||-1!==A.indexOf("webkit")||(A="-webkit-"+A),i[A]=t+("string"===typeof t?"":"px")}}function H(e,A){var t="";if("string"===typeof e)t=e;else do{var i=D(e,"transform");i&&"none"!==i&&(t=i+" "+t)}while(!A&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(t)}function L(e,A,t){if(e){var i=e.getElementsByTagName(A),n=0,r=i.length;if(t)for(;n<r;n++)t(i[n],n);return i}return[]}function O(){var e=document.scrollingElement;return e||document.documentElement}function M(e,A,t,i,n){if(e.getBoundingClientRect||e===window){var r,o,s,a,l,c,d;if(e!==window&&e.parentNode&&e!==O()?(r=e.getBoundingClientRect(),o=r.top,s=r.left,a=r.bottom,l=r.right,c=r.height,d=r.width):(o=0,s=0,a=window.innerHeight,l=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(A||t)&&e!==window&&(n=n||e.parentNode,!B))do{if(n&&n.getBoundingClientRect&&("none"!==D(n,"transform")||t&&"static"!==D(n,"position"))){var u=n.getBoundingClientRect();o-=u.top+parseInt(D(n,"border-top-width")),s-=u.left+parseInt(D(n,"border-left-width")),a=o+r.height,l=s+r.width;break}}while(n=n.parentNode);if(i&&e!==window){var h=H(n||e),g=h&&h.a,p=h&&h.d;h&&(o/=p,s/=g,d/=g,c/=p,a=o+c,l=s+d)}return{top:o,left:s,bottom:a,right:l,width:d,height:c}}}function T(e,A,t){var i=G(e,!0),n=M(e)[A];while(i){var r=M(i)[t],o=void 0;if(o="top"===t||"left"===t?n>=r:n<=r,!o)return i;if(i===O())break;i=G(i,!1)}return!1}function N(e,A,t,i){var n=0,r=0,o=e.children;while(r<o.length){if("none"!==o[r].style.display&&o[r]!==tA.ghost&&(i||o[r]!==tA.dragged)&&E(o[r],t.draggable,e,!1)){if(n===A)return o[r];n++}r++}return null}function K(e,A){var t=e.lastElementChild;while(t&&(t===tA.ghost||"none"===D(t,"display")||A&&!F(t,A)))t=t.previousElementSibling;return t||null}function P(e,A){var t=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===tA.clone||A&&!F(e,A)||t++;return t}function R(e){var A=0,t=0,i=O();if(e)do{var n=H(e),r=n.a,o=n.d;A+=e.scrollLeft*r,t+=e.scrollTop*o}while(e!==i&&(e=e.parentNode));return[A,t]}function V(e,A){for(var t in e)if(e.hasOwnProperty(t))for(var i in A)if(A.hasOwnProperty(i)&&A[i]===e[t][i])return Number(t);return-1}function G(e,A){if(!e||!e.getBoundingClientRect)return O();var t=e,i=!1;do{if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var n=D(t);if(t.clientWidth<t.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||t.clientHeight<t.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!t.getBoundingClientRect||t===document.body)return O();if(i||A)return t;i=!0}}}while(t=t.parentNode);return O()}function j(e,A){if(e&&A)for(var t in A)A.hasOwnProperty(t)&&(e[t]=A[t]);return e}function z(e,A){return Math.round(e.top)===Math.round(A.top)&&Math.round(e.left)===Math.round(A.left)&&Math.round(e.height)===Math.round(A.height)&&Math.round(e.width)===Math.round(A.width)}function Z(e,A){return function(){if(!k){var t=arguments,i=this;1===t.length?e.call(i,t[0]):e.apply(i,t),k=setTimeout((function(){k=void 0}),A)}}}function W(){clearTimeout(k),k=void 0}function Y(e,A,t){e.scrollLeft+=A,e.scrollTop+=t}function X(e){var A=window.Polymer,t=window.jQuery||window.Zepto;return A&&A.dom?A.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function J(e,A){D(e,"position","absolute"),D(e,"top",A.top),D(e,"left",A.left),D(e,"width",A.width),D(e,"height",A.height)}function $(e){D(e,"position",""),D(e,"top",""),D(e,"left",""),D(e,"width",""),D(e,"height","")}var q="Sortable"+(new Date).getTime();function ee(){var e,A=[];return{captureAnimationState:function(){if(A=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==D(e,"display")&&e!==tA.ghost){A.push({target:e,rect:M(e)});var t=n({},A[A.length-1].rect);if(e.thisAnimationDuration){var i=H(e,!0);i&&(t.top-=i.f,t.left-=i.e)}e.fromRect=t}}))}},addAnimationState:function(e){A.push(e)},removeAnimationState:function(e){A.splice(V(A,{target:e}),1)},animateAll:function(t){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof t&&t());var n=!1,r=0;A.forEach((function(e){var A=0,t=e.target,o=t.fromRect,s=M(t),a=t.prevFromRect,l=t.prevToRect,c=e.rect,d=H(t,!0);d&&(s.top-=d.f,s.left-=d.e),t.toRect=s,t.thisAnimationDuration&&z(a,s)&&!z(o,s)&&(c.top-s.top)/(c.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(A=te(c,a,l,i.options)),z(s,o)||(t.prevFromRect=o,t.prevToRect=s,A||(A=i.options.animation),i.animate(t,c,s,A)),A&&(n=!0,r=Math.max(r,A),clearTimeout(t.animationResetTimer),t.animationResetTimer=setTimeout((function(){t.animationTime=0,t.prevFromRect=null,t.fromRect=null,t.prevToRect=null,t.thisAnimationDuration=null}),A),t.thisAnimationDuration=A)})),clearTimeout(e),n?e=setTimeout((function(){"function"===typeof t&&t()}),r):"function"===typeof t&&t(),A=[]},animate:function(e,A,t,i){if(i){D(e,"transition",""),D(e,"transform","");var n=H(this.el),r=n&&n.a,o=n&&n.d,s=(A.left-t.left)/(r||1),a=(A.top-t.top)/(o||1);e.animatingX=!!s,e.animatingY=!!a,D(e,"transform","translate3d("+s+"px,"+a+"px,0)"),this.forRepaintDummy=Ae(e),D(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}function Ae(e){return e.offsetWidth}function te(e,A,t,i){return Math.sqrt(Math.pow(A.top-e.top,2)+Math.pow(A.left-e.left,2))/Math.sqrt(Math.pow(A.top-t.top,2)+Math.pow(A.left-t.left,2))*i.animation}var ie=[],ne={initializeByDefault:!0},re={mount:function(e){for(var A in ne)ne.hasOwnProperty(A)&&!(A in e)&&(e[A]=ne[A]);ie.forEach((function(A){if(A.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),ie.push(e)},pluginEvent:function(e,A,t){var i=this;this.eventCanceled=!1,t.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ie.forEach((function(i){A[i.pluginName]&&(A[i.pluginName][r]&&A[i.pluginName][r](n({sortable:A},t)),A.options[i.pluginName]&&A[i.pluginName][e]&&A[i.pluginName][e](n({sortable:A},t)))}))},initializePlugins:function(e,A,t,i){for(var n in ie.forEach((function(i){var n=i.pluginName;if(e.options[n]||i.initializeByDefault){var r=new i(e,A,e.options);r.sortable=e,r.options=e.options,e[n]=r,s(t,r.defaults)}})),e.options)if(e.options.hasOwnProperty(n)){var r=this.modifyOption(e,n,e.options[n]);"undefined"!==typeof r&&(e.options[n]=r)}},getEventProperties:function(e,A){var t={};return ie.forEach((function(i){"function"===typeof i.eventProperties&&s(t,i.eventProperties.call(A[i.pluginName],e))})),t},modifyOption:function(e,A,t){var i;return ie.forEach((function(n){e[n.pluginName]&&n.optionListeners&&"function"===typeof n.optionListeners[A]&&(i=n.optionListeners[A].call(e[n.pluginName],t))})),i}};function oe(e){var A=e.sortable,t=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,h=e.originalEvent,g=e.putSortable,p=e.extraEventProperties;if(A=A||t&&t[q],A){var f,m=A.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||B||w?(f=document.createEvent("Event"),f.initEvent(i,!0,!0)):f=new CustomEvent(i,{bubbles:!0,cancelable:!0}),f.to=s||t,f.from=a||t,f.item=r||t,f.clone=o,f.oldIndex=l,f.newIndex=c,f.oldDraggableIndex=d,f.newDraggableIndex=u,f.originalEvent=h,f.pullMode=g?g.lastPutMode:void 0;var y=n(n({},p),re.getEventProperties(i,A));for(var C in y)f[C]=y[C];t&&t.dispatchEvent(f),m[v]&&m[v].call(A,f)}}var se=["evt"],ae=function(e,A){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.evt,r=l(t,se);re.pluginEvent.bind(tA)(e,A,n({dragEl:ce,parentEl:de,ghostEl:ue,rootEl:he,nextEl:ge,lastDownEl:pe,cloneEl:fe,cloneHidden:me,dragStarted:ke,putSortable:be,activeSortable:tA.active,originalEvent:i,oldIndex:Be,oldDraggableIndex:ve,newIndex:we,newDraggableIndex:ye,hideGhostForTarget:$e,unhideGhostForTarget:qe,cloneNowHidden:function(){me=!0},cloneNowShown:function(){me=!1},dispatchSortableEvent:function(e){le({sortable:A,name:e,originalEvent:i})}},r))};function le(e){oe(n({putSortable:be,cloneEl:fe,targetEl:ce,rootEl:he,oldIndex:Be,oldDraggableIndex:ve,newIndex:we,newDraggableIndex:ye},e))}var ce,de,ue,he,ge,pe,fe,me,Be,we,ve,ye,Ce,be,_e,Qe,Ue,Fe,xe,Ee,ke,Ie,Se,De,He,Le=!1,Oe=!1,Me=[],Te=!1,Ne=!1,Ke=[],Pe=!1,Re=[],Ve="undefined"!==typeof document,Ge=C,je=w||B?"cssFloat":"float",ze=Ve&&!b&&!C&&"draggable"in document.createElement("div"),Ze=function(){if(Ve){if(B)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),We=function(e,A){var t=D(e),i=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),n=N(e,0,A),r=N(e,1,A),o=n&&D(n),s=r&&D(r),a=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+M(n).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(r).width;if("flex"===t.display)return"column"===t.flexDirection||"column-reverse"===t.flexDirection?"vertical":"horizontal";if("grid"===t.display)return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&o["float"]&&"none"!==o["float"]){var c="left"===o["float"]?"left":"right";return!r||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return n&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||a>=i&&"none"===t[je]||r&&"none"===t[je]&&a+l>i)?"vertical":"horizontal"},Ye=function(e,A,t){var i=t?e.left:e.top,n=t?e.right:e.bottom,r=t?e.width:e.height,o=t?A.left:A.top,s=t?A.right:A.bottom,a=t?A.width:A.height;return i===o||n===s||i+r/2===o+a/2},Xe=function(e,A){var t;return Me.some((function(i){var n=i[q].options.emptyInsertThreshold;if(n&&!K(i)){var r=M(i),o=e>=r.left-n&&e<=r.right+n,s=A>=r.top-n&&A<=r.bottom+n;return o&&s?t=i:void 0}})),t},Je=function(e){function A(e,t){return function(i,n,r,o){var s=i.options.group.name&&n.options.group.name&&i.options.group.name===n.options.group.name;if(null==e&&(t||s))return!0;if(null==e||!1===e)return!1;if(t&&"clone"===e)return e;if("function"===typeof e)return A(e(i,n,r,o),t)(i,n,r,o);var a=(t?i:n).options.group.name;return!0===e||"string"===typeof e&&e===a||e.join&&e.indexOf(a)>-1}}var t={},i=e.group;i&&"object"==r(i)||(i={name:i}),t.name=i.name,t.checkPull=A(i.pull,!0),t.checkPut=A(i.put),t.revertClone=i.revertClone,e.group=t},$e=function(){!Ze&&ue&&D(ue,"display","none")},qe=function(){!Ze&&ue&&D(ue,"display","")};Ve&&document.addEventListener("click",(function(e){if(Oe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Oe=!1,!1}),!0);var eA=function(e){if(ce){e=e.touches?e.touches[0]:e;var A=Xe(e.clientX,e.clientY);if(A){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.target=t.rootEl=A,t.preventDefault=void 0,t.stopPropagation=void 0,A[q]._onDragOver(t)}}},AA=function(e){ce&&ce.parentNode[q]._isOutsideThisEl(e.target)};function tA(e,A){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=A=s({},A),e[q]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return We(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,A){e.setData("Text",A.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==tA.supportPointer&&"PointerEvent"in window&&!y,emptyInsertThreshold:5};for(var i in re.initializePlugins(this,e,t),t)!(i in A)&&(A[i]=t[i]);for(var n in Je(A),this)"_"===n.charAt(0)&&"function"===typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!A.forceFallback&&ze,this.nativeDraggable&&(this.options.touchStartThreshold=1),A.supportPointer?Q(e,"pointerdown",this._onTapStart):(Q(e,"mousedown",this._onTapStart),Q(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Q(e,"dragover",this),Q(e,"dragenter",this)),Me.push(this.el),A.store&&A.store.get&&this.sort(A.store.get(this)||[]),s(this,ee())}function iA(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function nA(e,A,t,i,n,r,o,s){var a,l,c=e[q],d=c.options.onMove;return!window.CustomEvent||B||w?(a=document.createEvent("Event"),a.initEvent("move",!0,!0)):a=new CustomEvent("move",{bubbles:!0,cancelable:!0}),a.to=A,a.from=e,a.dragged=t,a.draggedRect=i,a.related=n||A,a.relatedRect=r||M(A),a.willInsertAfter=s,a.originalEvent=o,e.dispatchEvent(a),d&&(l=d.call(c,a,o)),l}function rA(e){e.draggable=!1}function oA(){Pe=!1}function sA(e,A,t){var i=M(N(t.el,0,t.options,!0)),n=10;return A?e.clientX<i.left-n||e.clientY<i.top&&e.clientX<i.right:e.clientY<i.top-n||e.clientY<i.bottom&&e.clientX<i.left}function aA(e,A,t){var i=M(K(t.el,t.options.draggable)),n=10;return A?e.clientX>i.right+n||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+n}function lA(e,A,t,i,n,r,o,s){var a=i?e.clientY:e.clientX,l=i?t.height:t.width,c=i?t.top:t.left,d=i?t.bottom:t.right,u=!1;if(!o)if(s&&De<l*n){if(!Te&&(1===Se?a>c+l*r/2:a<d-l*r/2)&&(Te=!0),Te)u=!0;else if(1===Se?a<c+De:a>d-De)return-Se}else if(a>c+l*(1-n)/2&&a<d-l*(1-n)/2)return cA(A);return u=u||o,u&&(a<c+l*r/2||a>d-l*r/2)?a>c+l/2?1:-1:0}function cA(e){return P(ce)<P(e)?1:-1}function dA(e){var A=e.tagName+e.className+e.src+e.href+e.textContent,t=A.length,i=0;while(t--)i+=A.charCodeAt(t);return i.toString(36)}function uA(e){Re.length=0;var A=e.getElementsByTagName("input"),t=A.length;while(t--){var i=A[t];i.checked&&Re.push(i)}}function hA(e){return setTimeout(e,0)}function gA(e){return clearTimeout(e)}tA.prototype={constructor:tA,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ie=null)},_getDirection:function(e,A){return"function"===typeof this.options.direction?this.options.direction.call(this,e,A,ce):this.options.direction},_onTapStart:function(e){if(e.cancelable){var A=this,t=this.el,i=this.options,n=i.preventOnFilter,r=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,a=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=i.filter;if(uA(t),!ce&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled)&&!a.isContentEditable&&(this.nativeDraggable||!y||!s||"SELECT"!==s.tagName.toUpperCase())&&(s=E(s,i.draggable,t,!1),(!s||!s.animated)&&pe!==s)){if(Be=P(s),ve=P(s,i.draggable),"function"===typeof l){if(l.call(this,e,s,this))return le({sortable:A,rootEl:a,name:"filter",targetEl:s,toEl:t,fromEl:t}),ae("filter",A,{evt:e}),void(n&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(i){if(i=E(a,i.trim(),t,!1),i)return le({sortable:A,rootEl:i,name:"filter",targetEl:s,fromEl:t,toEl:t}),ae("filter",A,{evt:e}),!0})),l))return void(n&&e.cancelable&&e.preventDefault());i.handle&&!E(a,i.handle,t,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,A,t){var i,n=this,r=n.el,o=n.options,s=r.ownerDocument;if(t&&!ce&&t.parentNode===r){var a=M(t);if(he=r,ce=t,de=ce.parentNode,ge=ce.nextSibling,pe=t,Ce=o.group,tA.dragged=ce,_e={target:ce,clientX:(A||e).clientX,clientY:(A||e).clientY},xe=_e.clientX-a.left,Ee=_e.clientY-a.top,this._lastX=(A||e).clientX,this._lastY=(A||e).clientY,ce.style["will-change"]="all",i=function(){ae("delayEnded",n,{evt:e}),tA.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!v&&n.nativeDraggable&&(ce.draggable=!0),n._triggerDragStart(e,A),le({sortable:n,name:"choose",originalEvent:e}),S(ce,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){L(ce,e.trim(),rA)})),Q(s,"dragover",eA),Q(s,"mousemove",eA),Q(s,"touchmove",eA),Q(s,"mouseup",n._onDrop),Q(s,"touchend",n._onDrop),Q(s,"touchcancel",n._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ce.draggable=!0),ae("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!A||this.nativeDraggable&&(w||B))i();else{if(tA.eventCanceled)return void this._onDrop();Q(s,"mouseup",n._disableDelayedDrag),Q(s,"touchend",n._disableDelayedDrag),Q(s,"touchcancel",n._disableDelayedDrag),Q(s,"mousemove",n._delayedDragTouchMoveHandler),Q(s,"touchmove",n._delayedDragTouchMoveHandler),o.supportPointer&&Q(s,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(i,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var A=e.touches?e.touches[0]:e;Math.max(Math.abs(A.clientX-this._lastX),Math.abs(A.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ce&&rA(ce),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;U(e,"mouseup",this._disableDelayedDrag),U(e,"touchend",this._disableDelayedDrag),U(e,"touchcancel",this._disableDelayedDrag),U(e,"mousemove",this._delayedDragTouchMoveHandler),U(e,"touchmove",this._delayedDragTouchMoveHandler),U(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,A){A=A||"touch"==e.pointerType&&e,!this.nativeDraggable||A?this.options.supportPointer?Q(document,"pointermove",this._onTouchMove):Q(document,A?"touchmove":"mousemove",this._onTouchMove):(Q(ce,"dragend",this),Q(he,"dragstart",this._onDragStart));try{document.selection?hA((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(e,A){if(Le=!1,he&&ce){ae("dragStarted",this,{evt:A}),this.nativeDraggable&&Q(document,"dragover",AA);var t=this.options;!e&&S(ce,t.dragClass,!1),S(ce,t.ghostClass,!0),tA.active=this,e&&this._appendGhost(),le({sortable:this,name:"start",originalEvent:A})}else this._nulling()},_emulateDragOver:function(){if(Qe){this._lastX=Qe.clientX,this._lastY=Qe.clientY,$e();var e=document.elementFromPoint(Qe.clientX,Qe.clientY),A=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Qe.clientX,Qe.clientY),e===A)break;A=e}if(ce.parentNode[q]._isOutsideThisEl(e),A)do{if(A[q]){var t=void 0;if(t=A[q]._onDragOver({clientX:Qe.clientX,clientY:Qe.clientY,target:e,rootEl:A}),t&&!this.options.dragoverBubble)break}e=A}while(A=A.parentNode);qe()}},_onTouchMove:function(e){if(_e){var A=this.options,t=A.fallbackTolerance,i=A.fallbackOffset,n=e.touches?e.touches[0]:e,r=ue&&H(ue,!0),o=ue&&r&&r.a,s=ue&&r&&r.d,a=Ge&&He&&R(He),l=(n.clientX-_e.clientX+i.x)/(o||1)+(a?a[0]-Ke[0]:0)/(o||1),c=(n.clientY-_e.clientY+i.y)/(s||1)+(a?a[1]-Ke[1]:0)/(s||1);if(!tA.active&&!Le){if(t&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(ue){r?(r.e+=l-(Ue||0),r.f+=c-(Fe||0)):r={a:1,b:0,c:0,d:1,e:l,f:c};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");D(ue,"webkitTransform",d),D(ue,"mozTransform",d),D(ue,"msTransform",d),D(ue,"transform",d),Ue=l,Fe=c,Qe=n}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ue){var e=this.options.fallbackOnBody?document.body:he,A=M(ce,!0,Ge,!0,e),t=this.options;if(Ge){He=e;while("static"===D(He,"position")&&"none"===D(He,"transform")&&He!==document)He=He.parentNode;He!==document.body&&He!==document.documentElement?(He===document&&(He=O()),A.top+=He.scrollTop,A.left+=He.scrollLeft):He=O(),Ke=R(He)}ue=ce.cloneNode(!0),S(ue,t.ghostClass,!1),S(ue,t.fallbackClass,!0),S(ue,t.dragClass,!0),D(ue,"transition",""),D(ue,"transform",""),D(ue,"box-sizing","border-box"),D(ue,"margin",0),D(ue,"top",A.top),D(ue,"left",A.left),D(ue,"width",A.width),D(ue,"height",A.height),D(ue,"opacity","0.8"),D(ue,"position",Ge?"absolute":"fixed"),D(ue,"zIndex","100000"),D(ue,"pointerEvents","none"),tA.ghost=ue,e.appendChild(ue),D(ue,"transform-origin",xe/parseInt(ue.style.width)*100+"% "+Ee/parseInt(ue.style.height)*100+"%")}},_onDragStart:function(e,A){var t=this,i=e.dataTransfer,n=t.options;ae("dragStart",this,{evt:e}),tA.eventCanceled?this._onDrop():(ae("setupClone",this),tA.eventCanceled||(fe=X(ce),fe.draggable=!1,fe.style["will-change"]="",this._hideClone(),S(fe,this.options.chosenClass,!1),tA.clone=fe),t.cloneId=hA((function(){ae("clone",t),tA.eventCanceled||(t.options.removeCloneOnHide||he.insertBefore(fe,ce),t._hideClone(),le({sortable:t,name:"clone"}))})),!A&&S(ce,n.dragClass,!0),A?(Oe=!0,t._loopId=setInterval(t._emulateDragOver,50)):(U(document,"mouseup",t._onDrop),U(document,"touchend",t._onDrop),U(document,"touchcancel",t._onDrop),i&&(i.effectAllowed="move",n.setData&&n.setData.call(t,i,ce)),Q(document,"drop",t),D(ce,"transform","translateZ(0)")),Le=!0,t._dragStartId=hA(t._dragStarted.bind(t,A,e)),Q(document,"selectstart",t),ke=!0,y&&D(document.body,"user-select","none"))},_onDragOver:function(e){var A,t,i,r,o=this.el,s=e.target,a=this.options,l=a.group,c=tA.active,d=Ce===l,u=a.sort,h=be||c,g=this,p=!1;if(!Pe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=E(s,a.draggable,o,!0),I("dragOver"),tA.eventCanceled)return p;if(ce.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||g._ignoreWhileAnimating===s)return L(!1);if(Oe=!1,c&&!a.disabled&&(d?u||(i=de!==he):be===this||(this.lastPutMode=Ce.checkPull(this,c,ce,e))&&l.checkPut(this,c,ce,e))){if(r="vertical"===this._getDirection(e,s),A=M(ce),I("dragOverValid"),tA.eventCanceled)return p;if(i)return de=he,H(),this._hideClone(),I("revert"),tA.eventCanceled||(ge?he.insertBefore(ce,ge):he.appendChild(ce)),L(!0);var f=K(o,a.draggable);if(!f||aA(e,r,this)&&!f.animated){if(f===ce)return L(!1);if(f&&o===e.target&&(s=f),s&&(t=M(s)),!1!==nA(he,o,ce,A,s,t,e,!!s))return H(),o.appendChild(ce),de=o,O(),L(!0)}else if(f&&sA(e,r,this)){var m=N(o,0,a,!0);if(m===ce)return L(!1);if(s=m,t=M(s),!1!==nA(he,o,ce,A,s,t,e,!1))return H(),o.insertBefore(ce,m),de=o,O(),L(!0)}else if(s.parentNode===o){t=M(s);var B,w,v=0,y=ce.parentNode!==o,C=!Ye(ce.animated&&ce.toRect||A,s.animated&&s.toRect||t,r),b=r?"top":"left",_=T(s,"top","top")||T(ce,"top","top"),Q=_?_.scrollTop:void 0;if(Ie!==s&&(B=t[b],Te=!1,Ne=!C&&a.invertSwap||y),v=lA(e,s,t,r,C?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,Ne,Ie===s),0!==v){var U=P(ce);do{U-=v,w=de.children[U]}while(w&&("none"===D(w,"display")||w===ue))}if(0===v||w===s)return L(!1);Ie=s,Se=v;var F=s.nextElementSibling,x=!1;x=1===v;var k=nA(he,o,ce,A,s,t,e,x);if(!1!==k)return 1!==k&&-1!==k||(x=1===k),Pe=!0,setTimeout(oA,30),H(),x&&!F?o.appendChild(ce):s.parentNode.insertBefore(ce,x?F:s),_&&Y(_,0,Q-_.scrollTop),de=ce.parentNode,void 0===B||Ne||(De=Math.abs(B-M(s)[b])),O(),L(!0)}if(o.contains(ce))return L(!1)}return!1}function I(a,l){ae(a,g,n({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:i,dragRect:A,targetRect:t,canSort:u,fromSortable:h,target:s,completed:L,onMove:function(t,i){return nA(he,o,ce,A,t,M(t),e,i)},changed:O},l))}function H(){I("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function L(A){return I("dragOverCompleted",{insertion:A}),A&&(d?c._hideClone():c._showClone(g),g!==h&&(S(ce,be?be.options.ghostClass:c.options.ghostClass,!1),S(ce,a.ghostClass,!0)),be!==g&&g!==tA.active?be=g:g===tA.active&&be&&(be=null),h===g&&(g._ignoreWhileAnimating=s),g.animateAll((function(){I("dragOverAnimationComplete"),g._ignoreWhileAnimating=null})),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===ce&&!ce.animated||s===o&&!s.animated)&&(Ie=null),a.dragoverBubble||e.rootEl||s===document||(ce.parentNode[q]._isOutsideThisEl(e.target),!A&&eA(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function O(){we=P(ce),ye=P(ce,a.draggable),le({sortable:g,name:"change",toEl:o,newIndex:we,newDraggableIndex:ye,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){U(document,"mousemove",this._onTouchMove),U(document,"touchmove",this._onTouchMove),U(document,"pointermove",this._onTouchMove),U(document,"dragover",eA),U(document,"mousemove",eA),U(document,"touchmove",eA)},_offUpEvents:function(){var e=this.el.ownerDocument;U(e,"mouseup",this._onDrop),U(e,"touchend",this._onDrop),U(e,"pointerup",this._onDrop),U(e,"touchcancel",this._onDrop),U(document,"selectstart",this)},_onDrop:function(e){var A=this.el,t=this.options;we=P(ce),ye=P(ce,t.draggable),ae("drop",this,{evt:e}),de=ce&&ce.parentNode,we=P(ce),ye=P(ce,t.draggable),tA.eventCanceled||(Le=!1,Ne=!1,Te=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gA(this.cloneId),gA(this._dragStartId),this.nativeDraggable&&(U(document,"drop",this),U(A,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&D(document.body,"user-select",""),D(ce,"transform",""),e&&(ke&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),ue&&ue.parentNode&&ue.parentNode.removeChild(ue),(he===de||be&&"clone"!==be.lastPutMode)&&fe&&fe.parentNode&&fe.parentNode.removeChild(fe),ce&&(this.nativeDraggable&&U(ce,"dragend",this),rA(ce),ce.style["will-change"]="",ke&&!Le&&S(ce,be?be.options.ghostClass:this.options.ghostClass,!1),S(ce,this.options.chosenClass,!1),le({sortable:this,name:"unchoose",toEl:de,newIndex:null,newDraggableIndex:null,originalEvent:e}),he!==de?(we>=0&&(le({rootEl:de,name:"add",toEl:de,fromEl:he,originalEvent:e}),le({sortable:this,name:"remove",toEl:de,originalEvent:e}),le({rootEl:de,name:"sort",toEl:de,fromEl:he,originalEvent:e}),le({sortable:this,name:"sort",toEl:de,originalEvent:e})),be&&be.save()):we!==Be&&we>=0&&(le({sortable:this,name:"update",toEl:de,originalEvent:e}),le({sortable:this,name:"sort",toEl:de,originalEvent:e})),tA.active&&(null!=we&&-1!==we||(we=Be,ye=ve),le({sortable:this,name:"end",toEl:de,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ae("nulling",this),he=ce=de=ue=ge=fe=pe=me=_e=Qe=ke=we=ye=Be=ve=Ie=Se=be=Ce=tA.dragged=tA.ghost=tA.clone=tA.active=null,Re.forEach((function(e){e.checked=!0})),Re.length=Ue=Fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ce&&(this._onDragOver(e),iA(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,A=[],t=this.el.children,i=0,n=t.length,r=this.options;i<n;i++)e=t[i],E(e,r.draggable,this.el,!1)&&A.push(e.getAttribute(r.dataIdAttr)||dA(e));return A},sort:function(e,A){var t={},i=this.el;this.toArray().forEach((function(e,A){var n=i.children[A];E(n,this.options.draggable,i,!1)&&(t[e]=n)}),this),A&&this.captureAnimationState(),e.forEach((function(e){t[e]&&(i.removeChild(t[e]),i.appendChild(t[e]))})),A&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,A){return E(e,A||this.options.draggable,this.el,!1)},option:function(e,A){var t=this.options;if(void 0===A)return t[e];var i=re.modifyOption(this,e,A);t[e]="undefined"!==typeof i?i:A,"group"===e&&Je(t)},destroy:function(){ae("destroy",this);var e=this.el;e[q]=null,U(e,"mousedown",this._onTapStart),U(e,"touchstart",this._onTapStart),U(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(U(e,"dragover",this),U(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!me){if(ae("hideClone",this),tA.eventCanceled)return;D(fe,"display","none"),this.options.removeCloneOnHide&&fe.parentNode&&fe.parentNode.removeChild(fe),me=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(me){if(ae("showClone",this),tA.eventCanceled)return;ce.parentNode!=he||this.options.group.revertClone?ge?he.insertBefore(fe,ge):he.appendChild(fe):he.insertBefore(fe,ce),this.options.group.revertClone&&this.animate(ce,fe),D(fe,"display",""),me=!1}}else this._hideClone()}},Ve&&Q(document,"touchmove",(function(e){(tA.active||Le)&&e.cancelable&&e.preventDefault()})),tA.utils={on:Q,off:U,css:D,find:L,is:function(e,A){return!!E(e,A,e,!1)},extend:j,throttle:Z,closest:E,toggleClass:S,clone:X,index:P,nextTick:hA,cancelNextTick:gA,detectDirection:We,getChild:N},tA.get=function(e){return e[q]},tA.mount=function(){for(var e=arguments.length,A=new Array(e),t=0;t<e;t++)A[t]=arguments[t];A[0].constructor===Array&&(A=A[0]),A.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(tA.utils=n(n({},tA.utils),e.utils)),re.mount(e)}))},tA.create=function(e,A){return new tA(e,A)},tA.version=f;var pA,fA,mA,BA,wA,vA,yA=[],CA=!1;function bA(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var A=e.originalEvent;this.sortable.nativeDraggable?Q(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Q(document,"pointermove",this._handleFallbackAutoScroll):A.touches?Q(document,"touchmove",this._handleFallbackAutoScroll):Q(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var A=e.originalEvent;this.options.dragOverBubble||A.rootEl||this._handleAutoScroll(A)},drop:function(){this.sortable.nativeDraggable?U(document,"dragover",this._handleAutoScroll):(U(document,"pointermove",this._handleFallbackAutoScroll),U(document,"touchmove",this._handleFallbackAutoScroll),U(document,"mousemove",this._handleFallbackAutoScroll)),QA(),_A(),W()},nulling:function(){wA=fA=pA=CA=vA=mA=BA=null,yA.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,A){var t=this,i=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(i,n);if(wA=e,A||this.options.forceAutoScrollFallback||w||B||y){FA(e,this.options,r,A);var o=G(r,!0);!CA||vA&&i===mA&&n===BA||(vA&&QA(),vA=setInterval((function(){var r=G(document.elementFromPoint(i,n),!0);r!==o&&(o=r,_A()),FA(e,t.options,r,A)}),10),mA=i,BA=n)}else{if(!this.options.bubbleScroll||G(r,!0)===O())return void _A();FA(e,this.options,G(r,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}function _A(){yA.forEach((function(e){clearInterval(e.pid)})),yA=[]}function QA(){clearInterval(vA)}var UA,FA=Z((function(e,A,t,i){if(A.scroll){var n,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=A.scrollSensitivity,a=A.scrollSpeed,l=O(),c=!1;fA!==t&&(fA=t,_A(),pA=A.scroll,n=A.scrollFn,!0===pA&&(pA=G(t,!0)));var d=0,u=pA;do{var h=u,g=M(h),p=g.top,f=g.bottom,m=g.left,B=g.right,w=g.width,v=g.height,y=void 0,C=void 0,b=h.scrollWidth,_=h.scrollHeight,Q=D(h),U=h.scrollLeft,F=h.scrollTop;h===l?(y=w<b&&("auto"===Q.overflowX||"scroll"===Q.overflowX||"visible"===Q.overflowX),C=v<_&&("auto"===Q.overflowY||"scroll"===Q.overflowY||"visible"===Q.overflowY)):(y=w<b&&("auto"===Q.overflowX||"scroll"===Q.overflowX),C=v<_&&("auto"===Q.overflowY||"scroll"===Q.overflowY));var x=y&&(Math.abs(B-r)<=s&&U+w<b)-(Math.abs(m-r)<=s&&!!U),E=C&&(Math.abs(f-o)<=s&&F+v<_)-(Math.abs(p-o)<=s&&!!F);if(!yA[d])for(var k=0;k<=d;k++)yA[k]||(yA[k]={});yA[d].vx==x&&yA[d].vy==E&&yA[d].el===h||(yA[d].el=h,yA[d].vx=x,yA[d].vy=E,clearInterval(yA[d].pid),0==x&&0==E||(c=!0,yA[d].pid=setInterval(function(){i&&0===this.layer&&tA.active._onTouchMove(wA);var A=yA[this.layer].vy?yA[this.layer].vy*a:0,t=yA[this.layer].vx?yA[this.layer].vx*a:0;"function"===typeof n&&"continue"!==n.call(tA.dragged.parentNode[q],t,A,e,wA,yA[this.layer].el)||Y(yA[this.layer].el,t,A)}.bind({layer:d}),24))),d++}while(A.bubbleScroll&&u!==l&&(u=G(u,!1)));CA=c}}),30),xA=function(e){var A=e.originalEvent,t=e.putSortable,i=e.dragEl,n=e.activeSortable,r=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(A){var a=t||n;o();var l=A.changedTouches&&A.changedTouches.length?A.changedTouches[0]:A,c=document.elementFromPoint(l.clientX,l.clientY);s(),a&&!a.el.contains(c)&&(r("spill"),this.onSpill({dragEl:i,putSortable:t}))}};function EA(){}function kA(){}function IA(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var A=e.dragEl;UA=A},dragOverValid:function(e){var A=e.completed,t=e.target,i=e.onMove,n=e.activeSortable,r=e.changed,o=e.cancel;if(n.options.swap){var s=this.sortable.el,a=this.options;if(t&&t!==s){var l=UA;!1!==i(t)?(S(t,a.swapClass,!0),UA=t):UA=null,l&&l!==UA&&S(l,a.swapClass,!1)}r(),A(!0),o()}},drop:function(e){var A=e.activeSortable,t=e.putSortable,i=e.dragEl,n=t||this.sortable,r=this.options;UA&&S(UA,r.swapClass,!1),UA&&(r.swap||t&&t.options.swap)&&i!==UA&&(n.captureAnimationState(),n!==A&&A.captureAnimationState(),SA(i,UA),n.animateAll(),n!==A&&A.animateAll())},nulling:function(){UA=null}},s(e,{pluginName:"swap",eventProperties:function(){return{swapItem:UA}}})}function SA(e,A){var t,i,n=e.parentNode,r=A.parentNode;n&&r&&!n.isEqualNode(A)&&!r.isEqualNode(e)&&(t=P(e),i=P(A),n.isEqualNode(r)&&t<i&&i++,n.insertBefore(A,n.children[t]),r.insertBefore(e,r.children[i]))}EA.prototype={startIndex:null,dragStart:function(e){var A=e.oldDraggableIndex;this.startIndex=A},onSpill:function(e){var A=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var i=N(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(A,i):this.sortable.el.appendChild(A),this.sortable.animateAll(),t&&t.animateAll()},drop:xA},s(EA,{pluginName:"revertOnSpill"}),kA.prototype={onSpill:function(e){var A=e.dragEl,t=e.putSortable,i=t||this.sortable;i.captureAnimationState(),A.parentNode&&A.parentNode.removeChild(A),i.animateAll()},drop:xA},s(kA,{pluginName:"removeOnSpill"});var DA,HA,LA,OA,MA,TA=[],NA=[],KA=!1,PA=!1,RA=!1;function VA(){function e(e){for(var A in this)"_"===A.charAt(0)&&"function"===typeof this[A]&&(this[A]=this[A].bind(this));e.options.supportPointer?Q(document,"pointerup",this._deselectMultiDrag):(Q(document,"mouseup",this._deselectMultiDrag),Q(document,"touchend",this._deselectMultiDrag)),Q(document,"keydown",this._checkKeyDown),Q(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(A,t){var i="";TA.length&&HA===e?TA.forEach((function(e,A){i+=(A?", ":"")+e.textContent})):i=t.textContent,A.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var A=e.dragEl;LA=A},delayEnded:function(){this.isMultiDrag=~TA.indexOf(LA)},setupClone:function(e){var A=e.sortable,t=e.cancel;if(this.isMultiDrag){for(var i=0;i<TA.length;i++)NA.push(X(TA[i])),NA[i].sortableIndex=TA[i].sortableIndex,NA[i].draggable=!1,NA[i].style["will-change"]="",S(NA[i],this.options.selectedClass,!1),TA[i]===LA&&S(NA[i],this.options.chosenClass,!1);A._hideClone(),t()}},clone:function(e){var A=e.sortable,t=e.rootEl,i=e.dispatchSortableEvent,n=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||TA.length&&HA===A&&(jA(!0,t),i("clone"),n()))},showClone:function(e){var A=e.cloneNowShown,t=e.rootEl,i=e.cancel;this.isMultiDrag&&(jA(!1,t),NA.forEach((function(e){D(e,"display","")})),A(),MA=!1,i())},hideClone:function(e){var A=this,t=(e.sortable,e.cloneNowHidden),i=e.cancel;this.isMultiDrag&&(NA.forEach((function(e){D(e,"display","none"),A.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),t(),MA=!0,i())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&HA&&HA.multiDrag._deselectMultiDrag(),TA.forEach((function(e){e.sortableIndex=P(e)})),TA=TA.sort((function(e,A){return e.sortableIndex-A.sortableIndex})),RA=!0},dragStarted:function(e){var A=this,t=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(t.captureAnimationState(),this.options.animation)){TA.forEach((function(e){e!==LA&&D(e,"position","absolute")}));var i=M(LA,!1,!0,!0);TA.forEach((function(e){e!==LA&&J(e,i)})),PA=!0,KA=!0}t.animateAll((function(){PA=!1,KA=!1,A.options.animation&&TA.forEach((function(e){$(e)})),A.options.sort&&zA()}))}},dragOver:function(e){var A=e.target,t=e.completed,i=e.cancel;PA&&~TA.indexOf(A)&&(t(!1),i())},revert:function(e){var A=e.fromSortable,t=e.rootEl,i=e.sortable,n=e.dragRect;TA.length>1&&(TA.forEach((function(e){i.addAnimationState({target:e,rect:PA?M(e):n}),$(e),e.fromRect=n,A.removeAnimationState(e)})),PA=!1,GA(!this.options.removeCloneOnHide,t))},dragOverCompleted:function(e){var A=e.sortable,t=e.isOwner,i=e.insertion,n=e.activeSortable,r=e.parentEl,o=e.putSortable,s=this.options;if(i){if(t&&n._hideClone(),KA=!1,s.animation&&TA.length>1&&(PA||!t&&!n.options.sort&&!o)){var a=M(LA,!1,!0,!0);TA.forEach((function(e){e!==LA&&(J(e,a),r.appendChild(e))})),PA=!0}if(!t)if(PA||zA(),TA.length>1){var l=MA;n._showClone(A),n.options.animation&&!MA&&l&&NA.forEach((function(e){n.addAnimationState({target:e,rect:OA}),e.fromRect=OA,e.thisAnimationDuration=null}))}else n._showClone(A)}},dragOverAnimationCapture:function(e){var A=e.dragRect,t=e.isOwner,i=e.activeSortable;if(TA.forEach((function(e){e.thisAnimationDuration=null})),i.options.animation&&!t&&i.multiDrag.isMultiDrag){OA=s({},A);var n=H(LA,!0);OA.top-=n.f,OA.left-=n.e}},dragOverAnimationComplete:function(){PA&&(PA=!1,zA())},drop:function(e){var A=e.originalEvent,t=e.rootEl,i=e.parentEl,n=e.sortable,r=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,a=s||this.sortable;if(A){var l=this.options,c=i.children;if(!RA)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(LA,l.selectedClass,!~TA.indexOf(LA)),~TA.indexOf(LA))TA.splice(TA.indexOf(LA),1),DA=null,oe({sortable:n,rootEl:t,name:"deselect",targetEl:LA,originalEvt:A});else{if(TA.push(LA),oe({sortable:n,rootEl:t,name:"select",targetEl:LA,originalEvt:A}),A.shiftKey&&DA&&n.el.contains(DA)){var d,u,h=P(DA),g=P(LA);if(~h&&~g&&h!==g)for(g>h?(u=h,d=g):(u=g,d=h+1);u<d;u++)~TA.indexOf(c[u])||(S(c[u],l.selectedClass,!0),TA.push(c[u]),oe({sortable:n,rootEl:t,name:"select",targetEl:c[u],originalEvt:A}))}else DA=LA;HA=a}if(RA&&this.isMultiDrag){if(PA=!1,(i[q].options.sort||i!==t)&&TA.length>1){var p=M(LA),f=P(LA,":not(."+this.options.selectedClass+")");if(!KA&&l.animation&&(LA.thisAnimationDuration=null),a.captureAnimationState(),!KA&&(l.animation&&(LA.fromRect=p,TA.forEach((function(e){if(e.thisAnimationDuration=null,e!==LA){var A=PA?M(e):p;e.fromRect=A,a.addAnimationState({target:e,rect:A})}}))),zA(),TA.forEach((function(e){c[f]?i.insertBefore(e,c[f]):i.appendChild(e),f++})),o===P(LA))){var m=!1;TA.forEach((function(e){e.sortableIndex===P(e)||(m=!0)})),m&&r("update")}TA.forEach((function(e){$(e)})),a.animateAll()}HA=a}(t===i||s&&"clone"!==s.lastPutMode)&&NA.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=RA=!1,NA.length=0},destroyGlobal:function(){this._deselectMultiDrag(),U(document,"pointerup",this._deselectMultiDrag),U(document,"mouseup",this._deselectMultiDrag),U(document,"touchend",this._deselectMultiDrag),U(document,"keydown",this._checkKeyDown),U(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof RA||!RA)&&HA===this.sortable&&(!e||!E(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(TA.length){var A=TA[0];S(A,this.options.selectedClass,!1),TA.shift(),oe({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:A,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var A=e.parentNode[q];A&&A.options.multiDrag&&!~TA.indexOf(e)&&(HA&&HA!==A&&(HA.multiDrag._deselectMultiDrag(),HA=A),S(e,A.options.selectedClass,!0),TA.push(e))},deselect:function(e){var A=e.parentNode[q],t=TA.indexOf(e);A&&A.options.multiDrag&&~t&&(S(e,A.options.selectedClass,!1),TA.splice(t,1))}},eventProperties:function(){var e=this,A=[],t=[];return TA.forEach((function(i){var n;A.push({multiDragElement:i,index:i.sortableIndex}),n=PA&&i!==LA?-1:PA?P(i,":not(."+e.options.selectedClass+")"):P(i),t.push({multiDragElement:i,index:n})})),{items:c(TA),clones:[].concat(NA),oldIndicies:A,newIndicies:t}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function GA(e,A){TA.forEach((function(t,i){var n=A.children[t.sortableIndex+(e?Number(i):0)];n?A.insertBefore(t,n):A.appendChild(t)}))}function jA(e,A){NA.forEach((function(t,i){var n=A.children[t.sortableIndex+(e?Number(i):0)];n?A.insertBefore(t,n):A.appendChild(t)}))}function zA(){TA.forEach((function(e){e!==LA&&e.parentNode&&e.parentNode.removeChild(e)}))}tA.mount(new bA),tA.mount(kA,EA),A["default"]=tA}}]);