59 lines
696 KiB
JavaScript
59 lines
696 KiB
JavaScript
(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[233],{1125:function(A,e,t){(function(){var e={9662:function(A,e,t){var r=t(7854),n=t(614),i=t(6330),o=r.TypeError;A.exports=function(A){if(n(A))return A;throw o(i(A)+" is not a function")}},6077:function(A,e,t){var r=t(7854),n=t(614),i=r.String,o=r.TypeError;A.exports=function(A){if("object"==typeof A||n(A))return A;throw o("Can't set "+i(A)+" as a prototype")}},9670:function(A,e,t){var r=t(7854),n=t(111),i=r.String,o=r.TypeError;A.exports=function(A){if(n(A))return A;throw o(i(A)+" is not an object")}},1318:function(A,e,t){var r=t(5656),n=t(1400),i=t(6244),o=function(A){return function(e,t,o){var s,a=r(e),l=i(a),c=n(o,l);if(A&&t!=t){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((A||c in a)&&a[c]===t)return A||c||0;return!A&&-1}};A.exports={includes:o(!0),indexOf:o(!1)}},4326:function(A,e,t){var r=t(1702),n=r({}.toString),i=r("".slice);A.exports=function(A){return i(n(A),8,-1)}},648:function(A,e,t){var r=t(7854),n=t(1694),i=t(614),o=t(4326),s=t(5112),a=s("toStringTag"),l=r.Object,c="Arguments"==o(function(){return arguments}()),u=function(A,e){try{return A[e]}catch(t){}};A.exports=n?o:function(A){var e,t,r;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(t=u(e=l(A),a))?t:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},7741:function(A,e,t){var r=t(1702),n=r("".replace),i=function(A){return String(Error(A).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(i);A.exports=function(A,e){if(s&&"string"==typeof A)while(e--)A=n(A,o,"");return A}},9920:function(A,e,t){var r=t(2597),n=t(3887),i=t(1236),o=t(3070);A.exports=function(A,e,t){for(var s=n(e),a=o.f,l=i.f,c=0;c<s.length;c++){var u=s[c];r(A,u)||t&&r(t,u)||a(A,u,l(e,u))}}},8880:function(A,e,t){var r=t(9781),n=t(3070),i=t(9114);A.exports=r?function(A,e,t){return n.f(A,e,i(1,t))}:function(A,e,t){return A[e]=t,A}},9114:function(A){A.exports=function(A,e){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:e}}},9781:function(A,e,t){var r=t(7293);A.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(A,e,t){var r=t(7854),n=t(111),i=r.document,o=n(i)&&n(i.createElement);A.exports=function(A){return o?i.createElement(A):{}}},8113:function(A,e,t){var r=t(5005);A.exports=r("navigator","userAgent")||""},7392:function(A,e,t){var r,n,i=t(7854),o=t(8113),s=i.process,a=i.Deno,l=s&&s.versions||a&&a.version,c=l&&l.v8;c&&(r=c.split("."),n=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(n=+r[1]))),A.exports=n},748:function(A){A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(A,e,t){var r=t(7293),n=t(9114);A.exports=!r((function(){var A=Error("a");return!("stack"in A)||(Object.defineProperty(A,"stack",n(1,7)),7!==A.stack)}))},2109:function(A,e,t){var r=t(7854),n=t(1236).f,i=t(8880),o=t(1320),s=t(3505),a=t(9920),l=t(4705);A.exports=function(A,e){var t,c,u,d,h,g,p=A.target,f=A.global,m=A.stat;if(c=f?r:m?r[p]||s(p,{}):(r[p]||{}).prototype,c)for(u in e){if(h=e[u],A.noTargetGet?(g=n(c,u),d=g&&g.value):d=c[u],t=l(f?u:p+(m?".":"#")+u,A.forced),!t&&void 0!==d){if(typeof h==typeof d)continue;a(h,d)}(A.sham||d&&d.sham)&&i(h,"sham",!0),o(c,u,h,A)}}},7293:function(A){A.exports=function(A){try{return!!A()}catch(e){return!0}}},2104:function(A,e,t){var r=t(4374),n=Function.prototype,i=n.apply,o=n.call;A.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4374:function(A,e,t){var r=t(7293);A.exports=!r((function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")}))},6916:function(A,e,t){var r=t(4374),n=Function.prototype.call;A.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},6530:function(A,e,t){var r=t(9781),n=t(2597),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=n(i,"name"),a=s&&"something"===function(){}.name,l=s&&(!r||r&&o(i,"name").configurable);A.exports={EXISTS:s,PROPER:a,CONFIGURABLE:l}},1702:function(A,e,t){var r=t(4374),n=Function.prototype,i=n.bind,o=n.call,s=r&&i.bind(o,o);A.exports=r?function(A){return A&&s(A)}:function(A){return A&&function(){return o.apply(A,arguments)}}},5005:function(A,e,t){var r=t(7854),n=t(614),i=function(A){return n(A)?A:void 0};A.exports=function(A,e){return arguments.length<2?i(r[A]):r[A]&&r[A][e]}},8173:function(A,e,t){var r=t(9662);A.exports=function(A,e){var t=A[e];return null==t?void 0:r(t)}},7854:function(A,e,t){var r=function(A){return A&&A.Math==Math&&A};A.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t.g&&t.g)||function(){return this}()||Function("return this")()},2597:function(A,e,t){var r=t(1702),n=t(7908),i=r({}.hasOwnProperty);A.exports=Object.hasOwn||function(A,e){return i(n(A),e)}},3501:function(A){A.exports={}},4664:function(A,e,t){var r=t(9781),n=t(7293),i=t(317);A.exports=!r&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(A,e,t){var r=t(7854),n=t(1702),i=t(7293),o=t(4326),s=r.Object,a=n("".split);A.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(A){return"String"==o(A)?a(A,""):s(A)}:s},9587:function(A,e,t){var r=t(614),n=t(111),i=t(7674);A.exports=function(A,e,t){var o,s;return i&&r(o=e.constructor)&&o!==t&&n(s=o.prototype)&&s!==t.prototype&&i(A,s),A}},2788:function(A,e,t){var r=t(1702),n=t(614),i=t(5465),o=r(Function.toString);n(i.inspectSource)||(i.inspectSource=function(A){return o(A)}),A.exports=i.inspectSource},8340:function(A,e,t){var r=t(111),n=t(8880);A.exports=function(A,e){r(e)&&"cause"in e&&n(A,"cause",e.cause)}},9909:function(A,e,t){var r,n,i,o=t(8536),s=t(7854),a=t(1702),l=t(111),c=t(8880),u=t(2597),d=t(5465),h=t(6200),g=t(3501),p="Object already initialized",f=s.TypeError,m=s.WeakMap,B=function(A){return i(A)?n(A):r(A,{})},w=function(A){return function(e){var t;if(!l(e)||(t=n(e)).type!==A)throw f("Incompatible receiver, "+A+" required");return t}};if(o||d.state){var v=d.state||(d.state=new m),C=a(v.get),b=a(v.has),y=a(v.set);r=function(A,e){if(b(v,A))throw new f(p);return e.facade=A,y(v,A,e),e},n=function(A){return C(v,A)||{}},i=function(A){return b(v,A)}}else{var _=h("state");g[_]=!0,r=function(A,e){if(u(A,_))throw new f(p);return e.facade=A,c(A,_,e),e},n=function(A){return u(A,_)?A[_]:{}},i=function(A){return u(A,_)}}A.exports={set:r,get:n,has:i,enforce:B,getterFor:w}},614:function(A){A.exports=function(A){return"function"==typeof A}},4705:function(A,e,t){var r=t(7293),n=t(614),i=/#|\.prototype\./,o=function(A,e){var t=a[s(A)];return t==c||t!=l&&(n(e)?r(e):!!e)},s=o.normalize=function(A){return String(A).replace(i,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";A.exports=o},111:function(A,e,t){var r=t(614);A.exports=function(A){return"object"==typeof A?null!==A:r(A)}},1913:function(A){A.exports=!1},2190:function(A,e,t){var r=t(7854),n=t(5005),i=t(614),o=t(7976),s=t(3307),a=r.Object;A.exports=s?function(A){return"symbol"==typeof A}:function(A){var e=n("Symbol");return i(e)&&o(e.prototype,a(A))}},6244:function(A,e,t){var r=t(7466);A.exports=function(A){return r(A.length)}},133:function(A,e,t){var r=t(7392),n=t(7293);A.exports=!!Object.getOwnPropertySymbols&&!n((function(){var A=Symbol();return!String(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(A,e,t){var r=t(7854),n=t(614),i=t(2788),o=r.WeakMap;A.exports=n(o)&&/native code/.test(i(o))},6277:function(A,e,t){var r=t(1340);A.exports=function(A,e){return void 0===A?arguments.length<2?"":e:r(A)}},3070:function(A,e,t){var r=t(7854),n=t(9781),i=t(4664),o=t(3353),s=t(9670),a=t(4948),l=r.TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",g="writable";e.f=n?o?function(A,e,t){if(s(A),e=a(e),s(t),"function"===typeof A&&"prototype"===e&&"value"in t&&g in t&&!t[g]){var r=u(A,e);r&&r[g]&&(A[e]=t.value,t={configurable:h in t?t[h]:r[h],enumerable:d in t?t[d]:r[d],writable:!1})}return c(A,e,t)}:c:function(A,e,t){if(s(A),e=a(e),s(t),i)try{return c(A,e,t)}catch(r){}if("get"in t||"set"in t)throw l("Accessors not supported");return"value"in t&&(A[e]=t.value),A}},1236:function(A,e,t){var r=t(9781),n=t(6916),i=t(5296),o=t(9114),s=t(5656),a=t(4948),l=t(2597),c=t(4664),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(A,e){if(A=s(A),e=a(e),c)try{return u(A,e)}catch(t){}if(l(A,e))return o(!n(i.f,A,e),A[e])}},8006:function(A,e,t){var r=t(6324),n=t(748),i=n.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(A){return r(A,i)}},5181:function(A,e){e.f=Object.getOwnPropertySymbols},7976:function(A,e,t){var r=t(1702);A.exports=r({}.isPrototypeOf)},6324:function(A,e,t){var r=t(1702),n=t(2597),i=t(5656),o=t(1318).indexOf,s=t(3501),a=r([].push);A.exports=function(A,e){var t,r=i(A),l=0,c=[];for(t in r)!n(s,t)&&n(r,t)&&a(c,t);while(e.length>l)n(r,t=e[l++])&&(~o(c,t)||a(c,t));return c}},5296:function(A,e){"use strict";var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(A){var e=r(this,A);return!!e&&e.enumerable}:t},7674:function(A,e,t){var r=t(1702),n=t(9670),i=t(6077);A.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A,e=!1,t={};try{A=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),A(t,[]),e=t instanceof Array}catch(o){}return function(t,r){return n(t),i(r),e?A(t,r):t.__proto__=r,t}}():void 0)},2140:function(A,e,t){var r=t(7854),n=t(6916),i=t(614),o=t(111),s=r.TypeError;A.exports=function(A,e){var t,r;if("string"===e&&i(t=A.toString)&&!o(r=n(t,A)))return r;if(i(t=A.valueOf)&&!o(r=n(t,A)))return r;if("string"!==e&&i(t=A.toString)&&!o(r=n(t,A)))return r;throw s("Can't convert object to primitive value")}},3887:function(A,e,t){var r=t(5005),n=t(1702),i=t(8006),o=t(5181),s=t(9670),a=n([].concat);A.exports=r("Reflect","ownKeys")||function(A){var e=i.f(s(A)),t=o.f;return t?a(e,t(A)):e}},1320:function(A,e,t){var r=t(7854),n=t(614),i=t(2597),o=t(8880),s=t(3505),a=t(2788),l=t(9909),c=t(6530).CONFIGURABLE,u=l.get,d=l.enforce,h=String(String).split("String");(A.exports=function(A,e,t,a){var l,u=!!a&&!!a.unsafe,g=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:e;n(t)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(t,"name")||c&&t.name!==f)&&o(t,"name",f),l=d(t),l.source||(l.source=h.join("string"==typeof f?f:""))),A!==r?(u?!p&&A[e]&&(g=!0):delete A[e],g?A[e]=t:o(A,e,t)):g?A[e]=t:s(e,t)})(Function.prototype,"toString",(function(){return n(this)&&u(this).source||a(this)}))},4488:function(A,e,t){var r=t(7854),n=r.TypeError;A.exports=function(A){if(void 0==A)throw n("Can't call method on "+A);return A}},3505:function(A,e,t){var r=t(7854),n=Object.defineProperty;A.exports=function(A,e){try{n(r,A,{value:e,configurable:!0,writable:!0})}catch(t){r[A]=e}return e}},6200:function(A,e,t){var r=t(2309),n=t(9711),i=r("keys");A.exports=function(A){return i[A]||(i[A]=n(A))}},5465:function(A,e,t){var r=t(7854),n=t(3505),i="__core-js_shared__",o=r[i]||n(i,{});A.exports=o},2309:function(A,e,t){var r=t(1913),n=t(5465);(A.exports=function(A,e){return n[A]||(n[A]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:r?"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(A,e,t){var r=t(9303),n=Math.max,i=Math.min;A.exports=function(A,e){var t=r(A);return t<0?n(t+e,0):i(t,e)}},5656:function(A,e,t){var r=t(8361),n=t(4488);A.exports=function(A){return r(n(A))}},9303:function(A){var e=Math.ceil,t=Math.floor;A.exports=function(A){var r=+A;return r!==r||0===r?0:(r>0?t:e)(r)}},7466:function(A,e,t){var r=t(9303),n=Math.min;A.exports=function(A){return A>0?n(r(A),9007199254740991):0}},7908:function(A,e,t){var r=t(7854),n=t(4488),i=r.Object;A.exports=function(A){return i(n(A))}},7593:function(A,e,t){var r=t(7854),n=t(6916),i=t(111),o=t(2190),s=t(8173),a=t(2140),l=t(5112),c=r.TypeError,u=l("toPrimitive");A.exports=function(A,e){if(!i(A)||o(A))return A;var t,r=s(A,u);if(r){if(void 0===e&&(e="default"),t=n(r,A,e),!i(t)||o(t))return t;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(A,e)}},4948:function(A,e,t){var r=t(7593),n=t(2190);A.exports=function(A){var e=r(A,"string");return n(e)?e:e+""}},1694:function(A,e,t){var r=t(5112),n=r("toStringTag"),i={};i[n]="z",A.exports="[object z]"===String(i)},1340:function(A,e,t){var r=t(7854),n=t(648),i=r.String;A.exports=function(A){if("Symbol"===n(A))throw TypeError("Cannot convert a Symbol value to a string");return i(A)}},6330:function(A,e,t){var r=t(7854),n=r.String;A.exports=function(A){try{return n(A)}catch(e){return"Object"}}},9711:function(A,e,t){var r=t(1702),n=0,i=Math.random(),o=r(1..toString);A.exports=function(A){return"Symbol("+(void 0===A?"":A)+")_"+o(++n+i,36)}},3307:function(A,e,t){var r=t(133);A.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(A,e,t){var r=t(9781),n=t(7293);A.exports=r&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(A,e,t){var r=t(7854),n=t(2309),i=t(2597),o=t(9711),s=t(133),a=t(3307),l=n("wks"),c=r.Symbol,u=c&&c["for"],d=a?c:c&&c.withoutSetter||o;A.exports=function(A){if(!i(l,A)||!s&&"string"!=typeof l[A]){var e="Symbol."+A;s&&i(c,A)?l[A]=c[A]:l[A]=a&&u?u(e):d(e)}return l[A]}},9191:function(A,e,t){"use strict";var r=t(5005),n=t(2597),i=t(8880),o=t(7976),s=t(7674),a=t(9920),l=t(9587),c=t(6277),u=t(8340),d=t(7741),h=t(2914),g=t(1913);A.exports=function(A,e,t,p){var f=p?2:1,m=A.split("."),B=m[m.length-1],w=r.apply(null,m);if(w){var v=w.prototype;if(!g&&n(v,"cause")&&delete v.cause,!t)return w;var C=r("Error"),b=e((function(A,e){var t=c(p?e:A,void 0),r=p?new w(A):new w;return void 0!==t&&i(r,"message",t),h&&i(r,"stack",d(r.stack,2)),this&&o(v,this)&&l(r,this,b),arguments.length>f&&u(r,arguments[f]),r}));if(b.prototype=v,"Error"!==B&&(s?s(b,C):a(b,C,{name:!0})),a(b,w),!g)try{v.name!==B&&i(v,"name",B),v.constructor=b}catch(y){}return b}}},1703:function(A,e,t){var r=t(2109),n=t(7854),i=t(2104),o=t(9191),s="WebAssembly",a=n[s],l=7!==Error("e",{cause:7}).cause,c=function(A,e){var t={};t[A]=o(A,e,l),r({global:!0,forced:l},t)},u=function(A,e){if(a&&a[A]){var t={};t[A]=o(s+"."+A,e,l),r({target:s,stat:!0,forced:l},t)}};c("Error",(function(A){return function(e){return i(A,this,arguments)}})),c("EvalError",(function(A){return function(e){return i(A,this,arguments)}})),c("RangeError",(function(A){return function(e){return i(A,this,arguments)}})),c("ReferenceError",(function(A){return function(e){return i(A,this,arguments)}})),c("SyntaxError",(function(A){return function(e){return i(A,this,arguments)}})),c("TypeError",(function(A){return function(e){return i(A,this,arguments)}})),c("URIError",(function(A){return function(e){return i(A,this,arguments)}})),u("CompileError",(function(A){return function(e){return i(A,this,arguments)}})),u("LinkError",(function(A){return function(e){return i(A,this,arguments)}})),u("RuntimeError",(function(A){return function(e){return i(A,this,arguments)}}))},6095:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}",""]),e["default"]=s},6047:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}",""]),e["default"]=s},9481:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}",""]),e["default"]=s},5186:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}",""]),e["default"]=s},3695:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}',""]),e["default"]=s},1380:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}",""]),e["default"]=s},6278:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}",""]),e["default"]=s},3468:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}",""]),e["default"]=s},5689:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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}",""]),e["default"]=s},2410:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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)}",""]),e["default"]=s},3142:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.id,".vc-checkerboard{position:absolute;top:0;right:0;bottom:0;left:0;background-size:contain}",""]),e["default"]=s},7953:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.id,".vc-editable-input{position:relative}.vc-input__input{padding:0;border:0;outline:none}.vc-input__label{text-transform:capitalize}",""]),e["default"]=s},3097:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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)}",""]),e["default"]=s},4339:function(A,e,t){"use strict";t.r(e);var r=t(8081),n=t.n(r),i=t(3645),o=t.n(i),s=o()(n());s.push([A.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)}",""]),e["default"]=s},3645:function(A){"use strict";A.exports=function(A){var e=[];return e.toString=function(){return this.map((function(e){var t="",r="undefined"!==typeof e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),r&&(t+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),t+=A(e),r&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t})).join("")},e.i=function(A,t,r,n,i){"string"===typeof A&&(A=[[null,A,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var a=this[s][0];null!=a&&(o[a]=!0)}for(var l=0;l<A.length;l++){var c=[].concat(A[l]);r&&o[c[0]]||("undefined"!==typeof i&&("undefined"===typeof c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),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)),e.push(c))}},e}},8081:function(A){"use strict";A.exports=function(A){return A[1]}},9428:function(A){function e(A,e,t){return e<t?A<e?e:A>t?t:A:A<t?t:A>e?e:A}A.exports=e},9016:function(A,e,t){var r=t(9159),n=r.Symbol;A.exports=n},6423:function(A,e,t){var r=t(9016),n=t(2366),i=t(2886),o="[object Null]",s="[object Undefined]",a=r?r.toStringTag:void 0;function l(A){return null==A?void 0===A?s:o:a&&a in Object(A)?n(A):i(A)}A.exports=l},6009:function(A,e,t){var r=t(1626),n=/^\s+/;function i(A){return A?A.slice(0,r(A)+1).replace(n,""):A}A.exports=i},791:function(A,e,t){var r="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;A.exports=r},2366:function(A,e,t){var r=t(9016),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,s=r?r.toStringTag:void 0;function a(A){var e=i.call(A,s),t=A[s];try{A[s]=void 0;var r=!0}catch(a){}var n=o.call(A);return r&&(e?A[s]=t:delete A[s]),n}A.exports=a},2886:function(A){var e=Object.prototype,t=e.toString;function r(A){return t.call(A)}A.exports=r},9159:function(A,e,t){var r=t(791),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();A.exports=i},1626:function(A){var e=/\s/;function t(A){var t=A.length;while(t--&&e.test(A.charAt(t)));return t}A.exports=t},3738:function(A,e,t){t(1703);var r=t(150),n=t(657),i=t(2012),o="Expected a function",s=Math.max,a=Math.min;function l(A,e,t){var l,c,u,d,h,g,p=0,f=!1,m=!1,B=!0;if("function"!=typeof A)throw new TypeError(o);function w(e){var t=l,r=c;return l=c=void 0,p=e,d=A.apply(r,t),d}function v(A){return p=A,h=setTimeout(y,e),f?w(A):d}function C(A){var t=A-g,r=A-p,n=e-t;return m?a(n,u-r):n}function b(A){var t=A-g,r=A-p;return void 0===g||t>=e||t<0||m&&r>=u}function y(){var A=n();if(b(A))return _(A);h=setTimeout(y,C(A))}function _(A){return h=void 0,B&&l?w(A):(l=c=void 0,d)}function Q(){void 0!==h&&clearTimeout(h),p=0,l=g=c=h=void 0}function U(){return void 0===h?d:_(n())}function F(){var A=n(),t=b(A);if(l=arguments,c=this,g=A,t){if(void 0===h)return v(g);if(m)return clearTimeout(h),h=setTimeout(y,e),w(g)}return void 0===h&&(h=setTimeout(y,e)),d}return e=i(e)||0,r(t)&&(f=!!t.leading,m="maxWait"in t,u=m?s(i(t.maxWait)||0,e):u,B="trailing"in t?!!t.trailing:B),F.cancel=Q,F.flush=U,F}A.exports=l},150:function(A){function e(A){var e=typeof A;return null!=A&&("object"==e||"function"==e)}A.exports=e},4430:function(A){function e(A){return null!=A&&"object"==typeof A}A.exports=e},7691:function(A,e,t){var r=t(6423),n=t(4430),i="[object Symbol]";function o(A){return"symbol"==typeof A||n(A)&&r(A)==i}A.exports=o},657:function(A,e,t){var r=t(9159),n=function(){return r.Date.now()};A.exports=n},9289:function(A,e,t){t(1703);var r=t(3738),n=t(150),i="Expected a function";function o(A,e,t){var o=!0,s=!0;if("function"!=typeof A)throw new TypeError(i);return n(t)&&(o="leading"in t?!!t.leading:o,s="trailing"in t?!!t.trailing:s),r(A,e,{leading:o,maxWait:e,trailing:s})}A.exports=o},2012:function(A,e,t){var r=t(6009),n=t(150),i=t(7691),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function u(A){if("number"==typeof A)return A;if(i(A))return o;if(n(A)){var e="function"==typeof A.valueOf?A.valueOf():A;A=n(e)?e+"":e}if("string"!=typeof A)return 0===A?A:+A;A=r(A);var t=a.test(A);return t||l.test(A)?c(A.slice(2),t?2:8):s.test(A)?o:+A}A.exports=u},7013:function(A,e,t){var r;(function(n){var i=/^\s+/,o=/\s+$/,s=0,a=n.round,l=n.min,c=n.max,u=n.random;function d(A,e){if(A=A||"",e=e||{},A instanceof d)return A;if(!(this instanceof d))return new d(A,e);var t=h(A);this._originalInput=A,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=e.format||t.format,this._gradientType=e.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(A){var e={r:0,g:0,b:0},t=1,r=null,n=null,i=null,o=!1,s=!1;return"string"==typeof A&&(A=Y(A)),"object"==typeof A&&(X(A.r)&&X(A.g)&&X(A.b)?(e=g(A.r,A.g,A.b),o=!0,s="%"===String(A.r).substr(-1)?"prgb":"rgb"):X(A.h)&&X(A.s)&&X(A.v)?(r=j(A.s),n=j(A.v),e=B(A.h,r,n),o=!0,s="hsv"):X(A.h)&&X(A.s)&&X(A.l)&&(r=j(A.s),i=j(A.l),e=f(A.h,r,i),o=!0,s="hsl"),A.hasOwnProperty("a")&&(t=A.a)),t=T(t),{ok:o,format:A.format||s,r:l(255,c(e.r,0)),g:l(255,c(e.g,0)),b:l(255,c(e.b,0)),a:t}}function g(A,e,t){return{r:255*K(A,255),g:255*K(e,255),b:255*K(t,255)}}function p(A,e,t){A=K(A,255),e=K(e,255),t=K(t,255);var r,n,i=c(A,e,t),o=l(A,e,t),s=(i+o)/2;if(i==o)r=n=0;else{var a=i-o;switch(n=s>.5?a/(2-i-o):a/(i+o),i){case A:r=(e-t)/a+(e<t?6:0);break;case e:r=(t-A)/a+2;break;case t:r=(A-e)/a+4;break}r/=6}return{h:r,s:n,l:s}}function f(A,e,t){var r,n,i;function o(A,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?A+6*(e-A)*t:t<.5?e:t<2/3?A+(e-A)*(2/3-t)*6:A}if(A=K(A,360),e=K(e,100),t=K(t,100),0===e)r=n=i=t;else{var s=t<.5?t*(1+e):t+e-t*e,a=2*t-s;r=o(a,s,A+1/3),n=o(a,s,A),i=o(a,s,A-1/3)}return{r:255*r,g:255*n,b:255*i}}function m(A,e,t){A=K(A,255),e=K(e,255),t=K(t,255);var r,n,i=c(A,e,t),o=l(A,e,t),s=i,a=i-o;if(n=0===i?0:a/i,i==o)r=0;else{switch(i){case A:r=(e-t)/a+(e<t?6:0);break;case e:r=(t-A)/a+2;break;case t:r=(A-e)/a+4;break}r/=6}return{h:r,s:n,v:s}}function B(A,e,t){A=6*K(A,360),e=K(e,100),t=K(t,100);var r=n.floor(A),i=A-r,o=t*(1-e),s=t*(1-i*e),a=t*(1-(1-i)*e),l=r%6,c=[t,s,o,o,a,t][l],u=[a,t,t,s,o,o][l],d=[o,o,a,t,t,s][l];return{r:255*c,g:255*u,b:255*d}}function w(A,e,t,r){var n=[G(a(A).toString(16)),G(a(e).toString(16)),G(a(t).toString(16))];return r&&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(A,e,t,r,n){var i=[G(a(A).toString(16)),G(a(e).toString(16)),G(a(t).toString(16)),G(z(r))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function C(A,e,t,r){var n=[G(z(r)),G(a(A).toString(16)),G(a(e).toString(16)),G(a(t).toString(16))];return n.join("")}function b(A,e){e=0===e?0:e||10;var t=d(A).toHsl();return t.s-=e/100,t.s=N(t.s),d(t)}function y(A,e){e=0===e?0:e||10;var t=d(A).toHsl();return t.s+=e/100,t.s=N(t.s),d(t)}function _(A){return d(A).desaturate(100)}function Q(A,e){e=0===e?0:e||10;var t=d(A).toHsl();return t.l+=e/100,t.l=N(t.l),d(t)}function U(A,e){e=0===e?0:e||10;var t=d(A).toRgb();return t.r=c(0,l(255,t.r-a(-e/100*255))),t.g=c(0,l(255,t.g-a(-e/100*255))),t.b=c(0,l(255,t.b-a(-e/100*255))),d(t)}function F(A,e){e=0===e?0:e||10;var t=d(A).toHsl();return t.l-=e/100,t.l=N(t.l),d(t)}function x(A,e){var t=d(A).toHsl(),r=(t.h+e)%360;return t.h=r<0?360+r:r,d(t)}function E(A){var e=d(A).toHsl();return e.h=(e.h+180)%360,d(e)}function k(A){var e=d(A).toHsl(),t=e.h;return[d(A),d({h:(t+120)%360,s:e.s,l:e.l}),d({h:(t+240)%360,s:e.s,l:e.l})]}function I(A){var e=d(A).toHsl(),t=e.h;return[d(A),d({h:(t+90)%360,s:e.s,l:e.l}),d({h:(t+180)%360,s:e.s,l:e.l}),d({h:(t+270)%360,s:e.s,l:e.l})]}function H(A){var e=d(A).toHsl(),t=e.h;return[d(A),d({h:(t+72)%360,s:e.s,l:e.l}),d({h:(t+216)%360,s:e.s,l:e.l})]}function S(A,e,t){e=e||6,t=t||30;var r=d(A).toHsl(),n=360/t,i=[d(A)];for(r.h=(r.h-(n*e>>1)+720)%360;--e;)r.h=(r.h+n)%360,i.push(d(r));return i}function D(A,e){e=e||6;var t=d(A).toHsv(),r=t.h,n=t.s,i=t.v,o=[],s=1/e;while(e--)o.push(d({h:r,s:n,v:i})),i=(i+s)%1;return o}d.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 A=this.toRgb();return(299*A.r+587*A.g+114*A.b)/1e3},getLuminance:function(){var A,e,t,r,i,o,s=this.toRgb();return A=s.r/255,e=s.g/255,t=s.b/255,r=A<=.03928?A/12.92:n.pow((A+.055)/1.055,2.4),i=e<=.03928?e/12.92:n.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:n.pow((t+.055)/1.055,2.4),.2126*r+.7152*i+.0722*o},setAlpha:function(A){return this._a=T(A),this._roundA=a(100*this._a)/100,this},toHsv:function(){var A=m(this._r,this._g,this._b);return{h:360*A.h,s:A.s,v:A.v,a:this._a}},toHsvString:function(){var A=m(this._r,this._g,this._b),e=a(360*A.h),t=a(100*A.s),r=a(100*A.v);return 1==this._a?"hsv("+e+", "+t+"%, "+r+"%)":"hsva("+e+", "+t+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var A=p(this._r,this._g,this._b);return{h:360*A.h,s:A.s,l:A.l,a:this._a}},toHslString:function(){var A=p(this._r,this._g,this._b),e=a(360*A.h),t=a(100*A.s),r=a(100*A.l);return 1==this._a?"hsl("+e+", "+t+"%, "+r+"%)":"hsla("+e+", "+t+"%, "+r+"%, "+this._roundA+")"},toHex:function(A){return w(this._r,this._g,this._b,A)},toHexString:function(A){return"#"+this.toHex(A)},toHex8:function(A){return v(this._r,this._g,this._b,this._a,A)},toHex8String:function(A){return"#"+this.toHex8(A)},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*K(this._r,255))+"%",g:a(100*K(this._g,255))+"%",b:a(100*K(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*K(this._r,255))+"%, "+a(100*K(this._g,255))+"%, "+a(100*K(this._b,255))+"%)":"rgba("+a(100*K(this._r,255))+"%, "+a(100*K(this._g,255))+"%, "+a(100*K(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(A){var e="#"+C(this._r,this._g,this._b,this._a),t=e,r=this._gradientType?"GradientType = 1, ":"";if(A){var n=d(A);t="#"+C(n._r,n._g,n._b,n._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+t+")"},toString:function(A){var e=!!A;A=A||this._format;var t=!1,r=this._a<1&&this._a>=0,n=!e&&r&&("hex"===A||"hex6"===A||"hex3"===A||"hex4"===A||"hex8"===A||"name"===A);return n?"name"===A&&0===this._a?this.toName():this.toRgbString():("rgb"===A&&(t=this.toRgbString()),"prgb"===A&&(t=this.toPercentageRgbString()),"hex"!==A&&"hex6"!==A||(t=this.toHexString()),"hex3"===A&&(t=this.toHexString(!0)),"hex4"===A&&(t=this.toHex8String(!0)),"hex8"===A&&(t=this.toHex8String()),"name"===A&&(t=this.toName()),"hsl"===A&&(t=this.toHslString()),"hsv"===A&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(A,e){var t=A.apply(null,[this].concat([].slice.call(e)));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(b,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(A,e){return A.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(H,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},d.fromRatio=function(A,e){if("object"==typeof A){var t={};for(var r in A)A.hasOwnProperty(r)&&(t[r]="a"===r?A[r]:j(A[r]));A=t}return d(A,e)},d.equals=function(A,e){return!(!A||!e)&&d(A).toRgbString()==d(e).toRgbString()},d.random=function(){return d.fromRatio({r:u(),g:u(),b:u()})},d.mix=function(A,e,t){t=0===t?0:t||50;var r=d(A).toRgb(),n=d(e).toRgb(),i=t/100,o={r:(n.r-r.r)*i+r.r,g:(n.g-r.g)*i+r.g,b:(n.b-r.b)*i+r.b,a:(n.a-r.a)*i+r.a};return d(o)},d.readability=function(A,e){var t=d(A),r=d(e);return(n.max(t.getLuminance(),r.getLuminance())+.05)/(n.min(t.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(A,e,t){var r,n,i=d.readability(A,e);switch(n=!1,r=J(t),r.level+r.size){case"AAsmall":case"AAAlarge":n=i>=4.5;break;case"AAlarge":n=i>=3;break;case"AAAsmall":n=i>=7;break}return n},d.mostReadable=function(A,e,t){var r,n,i,o,s=null,a=0;t=t||{},n=t.includeFallbackColors,i=t.level,o=t.size;for(var l=0;l<e.length;l++)r=d.readability(A,e[l]),r>a&&(a=r,s=d(e[l]));return d.isReadable(A,s,{level:i,size:o})||!n?s:(t.includeFallbackColors=!1,d.mostReadable(A,["#fff","#000"],t))};var L=d.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=d.hexNames=M(L);function M(A){var e={};for(var t in A)A.hasOwnProperty(t)&&(e[A[t]]=t);return e}function T(A){return A=parseFloat(A),(isNaN(A)||A<0||A>1)&&(A=1),A}function K(A,e){R(A)&&(A="100%");var t=V(A);return A=l(e,c(0,parseFloat(A))),t&&(A=parseInt(A*e,10)/100),n.abs(A-e)<1e-6?1:A%e/parseFloat(e)}function N(A){return l(1,c(0,A))}function P(A){return parseInt(A,16)}function R(A){return"string"==typeof A&&-1!=A.indexOf(".")&&1===parseFloat(A)}function V(A){return"string"===typeof A&&-1!=A.indexOf("%")}function G(A){return 1==A.length?"0"+A:""+A}function j(A){return A<=1&&(A=100*A+"%"),A}function z(A){return n.round(255*parseFloat(A)).toString(16)}function Z(A){return P(A)/255}var W=function(){var A="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+A+")",r="[\\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"+r),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+r),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 X(A){return!!W.CSS_UNIT.exec(A)}function Y(A){A=A.replace(i,"").replace(o,"").toLowerCase();var e,t=!1;if(L[A])A=L[A],t=!0;else if("transparent"==A)return{r:0,g:0,b:0,a:0,format:"name"};return(e=W.rgb.exec(A))?{r:e[1],g:e[2],b:e[3]}:(e=W.rgba.exec(A))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=W.hsl.exec(A))?{h:e[1],s:e[2],l:e[3]}:(e=W.hsla.exec(A))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=W.hsv.exec(A))?{h:e[1],s:e[2],v:e[3]}:(e=W.hsva.exec(A))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=W.hex8.exec(A))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:Z(e[4]),format:t?"name":"hex8"}:(e=W.hex6.exec(A))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:t?"name":"hex"}:(e=W.hex4.exec(A))?{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:Z(e[4]+""+e[4]),format:t?"name":"hex8"}:!!(e=W.hex3.exec(A))&&{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),format:t?"name":"hex"}}function J(A){var e,t;return A=A||{level:"AA",size:"small"},e=(A.level||"AA").toUpperCase(),t=(A.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==t&&"large"!==t&&(t="small"),{level:e,size:t}}A.exports?A.exports=d:(r=function(){return d}.call(e,t,e,A),void 0===r||(A.exports=r))})(Math)},89:function(A,e){"use strict";e.Z=(A,e)=>{const t=A.__vccOpts||A;for(const[r,n]of e)t[r]=n;return t}},3647:function(A,e,t){var r=t(6095);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("29397b9c",r,!0,{sourceMap:!1,shadowMode:!1})},325:function(A,e,t){var r=t(6047);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("479d8be0",r,!0,{sourceMap:!1,shadowMode:!1})},5208:function(A,e,t){var r=t(9481);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("1e383f72",r,!0,{sourceMap:!1,shadowMode:!1})},1425:function(A,e,t){var r=t(5186);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("3855edf0",r,!0,{sourceMap:!1,shadowMode:!1})},1902:function(A,e,t){var r=t(3695);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("2f73e1a8",r,!0,{sourceMap:!1,shadowMode:!1})},3439:function(A,e,t){var r=t(1380);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("070aa0ef",r,!0,{sourceMap:!1,shadowMode:!1})},8016:function(A,e,t){var r=t(6278);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("8bcdd408",r,!0,{sourceMap:!1,shadowMode:!1})},193:function(A,e,t){var r=t(3468);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("17a63672",r,!0,{sourceMap:!1,shadowMode:!1})},1113:function(A,e,t){var r=t(5689);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("39c50172",r,!0,{sourceMap:!1,shadowMode:!1})},6320:function(A,e,t){var r=t(2410);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("5c6f2742",r,!0,{sourceMap:!1,shadowMode:!1})},3205:function(A,e,t){var r=t(3142);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("90803b82",r,!0,{sourceMap:!1,shadowMode:!1})},1979:function(A,e,t){var r=t(7953);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("418ed5a2",r,!0,{sourceMap:!1,shadowMode:!1})},6547:function(A,e,t){var r=t(3097);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("1f7c089b",r,!0,{sourceMap:!1,shadowMode:!1})},5233:function(A,e,t){var r=t(4339);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[A.id,r,""]]),r.locals&&(A.exports=r.locals);var n=t(7037).Z;n("491ed8fe",r,!0,{sourceMap:!1,shadowMode:!1})},7037:function(A,e,t){"use strict";function r(A,e){for(var t=[],r={},n=0;n<e.length;n++){var i=e[n],o=i[0],s=i[1],a=i[2],l=i[3],c={id:A+":"+n,css:s,media:a,sourceMap:l};r[o]?r[o].parts.push(c):t.push(r[o]={id:o,parts:[c]})}return t}t.d(e,{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 i={},o=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,a=0,l=!1,c=function(){},u=null,d="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(A,e,t,n){l=t,u=n||{};var o=r(A,e);return p(o),function(e){for(var t=[],n=0;n<o.length;n++){var s=o[n],a=i[s.id];a.refs--,t.push(a)}e?(o=r(A,e),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 i[a.id]}}}}function p(A){for(var e=0;e<A.length;e++){var t=A[e],r=i[t.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](t.parts[n]);for(;n<t.parts.length;n++)r.parts.push(m(t.parts[n]));r.parts.length>t.parts.length&&(r.parts.length=t.parts.length)}else{var o=[];for(n=0;n<t.parts.length;n++)o.push(m(t.parts[n]));i[t.id]={id:t.id,refs:1,parts:o}}}}function f(){var A=document.createElement("style");return A.type="text/css",o.appendChild(A),A}function m(A){var e,t,r=document.querySelector("style["+d+'~="'+A.id+'"]');if(r){if(l)return c;r.parentNode.removeChild(r)}if(h){var n=a++;r=s||(s=f()),e=w.bind(null,r,n,!1),t=w.bind(null,r,n,!0)}else r=f(),e=v.bind(null,r),t=function(){r.parentNode.removeChild(r)};return e(A),function(r){if(r){if(r.css===A.css&&r.media===A.media&&r.sourceMap===A.sourceMap)return;e(A=r)}else t()}}var B=function(){var A=[];return function(e,t){return A[e]=t,A.filter(Boolean).join("\n")}}();function w(A,e,t,r){var n=t?"":r.css;if(A.styleSheet)A.styleSheet.cssText=B(e,n);else{var i=document.createTextNode(n),o=A.childNodes;o[e]&&A.removeChild(o[e]),o.length?A.insertBefore(i,o[e]):A.appendChild(i)}}function v(A,e){var t=e.css,r=e.media,n=e.sourceMap;if(r&&A.setAttribute("media",r),u.ssrId&&A.setAttribute(d,e.id),n&&(t+="\n/*# sourceURL="+n.sources[0]+" */",t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),A.styleSheet)A.styleSheet.cssText=t;else{while(A.firstChild)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(t))}}}},r={};function n(A){var t=r[A];if(void 0!==t)return t.exports;var i=r[A]={id:A,exports:{}};return e[A](i,i.exports,n),i.exports}!function(){n.n=function(A){var e=A&&A.__esModule?function(){return A["default"]}:function(){return A};return n.d(e,{a:e}),e}}(),function(){n.d=function(A,e){for(var t in e)n.o(e,t)&&!n.o(A,t)&&Object.defineProperty(A,t,{enumerable:!0,get:e[t]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(A){if("object"===typeof window)return window}}()}(),function(){n.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)}}(),function(){n.r=function(A){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})}}(),function(){n.p=""}();var i={};!function(){"use strict";if(n.r(i),n.d(i,{Alpha:function(){return nt},Checkboard:function(){return et},Chrome:function(){return Mt},ColorMixin:function(){return p},Compact:function(){return v},EditableInput:function(){return V},Grayscale:function(){return E},Hue:function(){return nA},Material:function(){return z},Photoshop:function(){return Qe},Saturation:function(){return be},Sketch:function(){return at},Slider:function(){return aA},Swatches:function(){return ZA},Twitter:function(){return Wt},default:function(){return $t},version:function(){return Xt}}),"undefined"!==typeof window){var A=window.document.currentScript,e=A&&A.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var r={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 u(A,e,t,r,n,i){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)(A.paletteUpperCase(t.palette),(A=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{role:"option","aria-label":"color:"+A,"aria-selected":A===i.pick,class:(0,o.normalizeClass)(["vc-compact-color-item",{"vc-compact-color-item--white":"#FFFFFF"===A}]),key:A,style:(0,o.normalizeStyle)({background:A}),onClick:e=>i.handlerClick(A)},[(0,o.withDirectives)((0,o.createElementVNode)("div",c,null,512),[[o.vShow,A===i.pick]])],14,l)))),128))])])}var d=n(7013),h=n.n(d);function g(A={},e=0){const t=A&&A.a;let r;r=A&&A.hsl?h()(A.hsl):A&&A.hex&&A.hex.length>0?h()(A.hex):A&&A.hsv?h()(A.hsv):A&&A.rgba?h()(A.rgba):A&&A.rgb?h()(A.rgb):h()(A),!r||void 0!==r._a&&null!==r._a||r.setAlpha(t||1);const n=r.toHsl(),i=r.toHsv();return 0===n.s&&(i.h=n.h=A.h||A.hsl&&A.hsl.h||e||0),{hsl:n,hex:r.toHexString().toUpperCase(),hex8:r.toHex8String().toUpperCase(),rgba:r.toRgb(),hsv:i,oldHue:A.h||e||n.h,source:A.source,a:A.a||r.getAlpha()}}var p={props:["modelValue"],data(){return{val:g(this.modelValue)}},computed:{colors:{get(){return this.val},set(A){this.val=A,this.$emit("update:modelValue",A)}}},watch:{modelValue(A){this.val=g(A)}},methods:{colorChange(A,e){this.oldHue=this.colors.hsl.h,this.colors=g(A,e||this.oldHue)},isValidHex(A){return h()(A).isValid()},simpleCheckForValidColor(A){const e=["r","g","b","a","h","s","l","v"];let t=0,r=0;for(let n=0;n<e.length;n++){const i=e[n];A[i]&&(t++,isNaN(A[i])||r++)}if(t===r)return A},paletteUpperCase(A){return A.map((A=>A.toUpperCase()))},isTransparent(A){return 0===h()(A).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(A){this.colorChange({hex:A,source:"hex"})}}},B=(n(325),n(89));const w=(0,B.Z)(m,[["render",u]]);var v=w;const C={role:"application","aria-label":"Grayscale color picker",class:"vc-grayscale"},b={class:"vc-grayscale-colors",role:"listbox"},y=["aria-label","aria-selected","onClick"],_={class:"vc-grayscale-dot"};function Q(A,e,t,r,n,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",C,[(0,o.createElementVNode)("ul",b,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(A.paletteUpperCase(t.palette),(A=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{role:"option","aria-label":"Color:"+A,"aria-selected":A===i.pick,key:A,class:(0,o.normalizeClass)(["vc-grayscale-color-item",{"vc-grayscale-color-item--white":"#FFFFFF"==A}]),style:(0,o.normalizeStyle)({background:A}),onClick:e=>i.handlerClick(A)},[(0,o.withDirectives)((0,o.createElementVNode)("div",_,null,512),[[o.vShow,A===i.pick]])],14,y)))),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(A){this.colorChange({hex:A,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"},H={class:"vc-material-third"},S={class:"vc-material-third"},D={class:"vc-material-third"};function L(A,e,t,r,n,i){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:A.colors.hex,"onUpdate:modelValue":e[0]||(e[0]=e=>A.colors.hex=e),style:(0,o.normalizeStyle)({borderColor:A.colors.hex}),onChange:i.onChange},null,8,["modelValue","style","onChange"]),(0,o.createElementVNode)("div",I,[(0,o.createElementVNode)("div",H,[(0,o.createVNode)(s,{label:"r",modelValue:A.colors.rgba.r,"onUpdate:modelValue":e[1]||(e[1]=e=>A.colors.rgba.r=e),onChange:i.onChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",S,[(0,o.createVNode)(s,{label:"g",modelValue:A.colors.rgba.g,"onUpdate:modelValue":e[2]||(e[2]=e=>A.colors.rgba.g=e),onChange:i.onChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",D,[(0,o.createVNode)(s,{label:"b",modelValue:A.colors.rgba.b,"onUpdate:modelValue":e[3]||(e[3]=e=>A.colors.rgba.b=e),onChange:i.onChange},null,8,["modelValue","onChange"])])])])}const O={class:"vc-editable-input"},M=["aria-labelledby"],T=["for","id"],K={class:"vc-input__desc"};function N(A,e,t,r,n,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",O,[(0,o.withDirectives)((0,o.createElementVNode)("input",{"aria-labelledby":i.labelId,class:"vc-input__input","onUpdate:modelValue":e[0]||(e[0]=A=>i.val=A),onKeydown:e[1]||(e[1]=(...A)=>i.handleKeyDown&&i.handleKeyDown(...A)),onInput:e[2]||(e[2]=(...A)=>i.update&&i.update(...A)),ref:"input"},null,40,M),[[o.vModelText,i.val]]),(0,o.createElementVNode)("span",{for:t.label,class:"vc-input__label",id:i.labelId},(0,o.toDisplayString)(i.labelSpanText),9,T),(0,o.createElementVNode)("span",K,(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(A){if(!(void 0!==this.max&&+A>this.max))return A;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(A){this.handleChange(A.target.value)},handleChange(A){const e={};e[this.label]=A,(void 0===e.hex&&void 0===e["#"]||A.length>5)&&this.$emit("change",e)},handleKeyDown(A){let e=this.val;const t=Number(e);if(t){const r=this.arrowOffset||1;38===A.keyCode&&(e=t+r,this.handleChange(e),A.preventDefault()),40===A.keyCode&&(e=t-r,this.handleChange(e),A.preventDefault())}}}};n(1979);const R=(0,B.Z)(P,[["render",N]]);var V=R,G={name:"Material",mixins:[p],components:{"ed-in":V},methods:{onChange(A){A&&(A.hex?this.isValidHex(A.hex)&&this.colorChange({hex:A.hex,source:"hex"}):(A.r||A.g||A.b)&&this.colorChange({r:A.r||this.colors.rgba.r,g:A.g||this.colors.rgba.g,b:A.b||this.colors.rgba.b,a:A.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"},X={class:"vc-slider-swatches",role:"group"},Y=["data-index","aria-label","onClick"];function J(A,e,t,r,n,i){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:A.colors,"onUpdate:modelValue":e[0]||(e[0]=e=>A.colors=e),onChange:i.hueChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",X,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(i.normalizedSwatches,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-slider-swatch",key:t,"data-index":t,"aria-label":"color:"+A.colors.hex,role:"button",onClick:A=>i.handleSwClick(t,e)},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["vc-slider-swatch-picker",{"vc-slider-swatch-picker--active":i.isActive(e,t),"vc-slider-swatch-picker--white":1===e.l}]),style:(0,o.normalizeStyle)({background:"hsl("+A.colors.hsl.h+", "+100*e.s+"%, "+100*e.l+"%)"})},null,6)],8,Y)))),128))])])}const $=["aria-valuenow"],q=(0,o.createElementVNode)("div",{class:"vc-hue-picker"},null,-1),AA=[q];function eA(A,e,t,r,n,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vc-hue",i.directionClass])},[(0,o.createElementVNode)("div",{class:"vc-hue-container",role:"slider","aria-valuenow":i.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360",ref:"container",onMousedown:e[0]||(e[0]=(...A)=>i.handleMouseDown&&i.handleMouseDown(...A)),onTouchmove:e[1]||(e[1]=(...A)=>i.handleChange&&i.handleChange(...A)),onTouchstart:e[2]||(e[2]=(...A)=>i.handleChange&&i.handleChange(...A))},[(0,o.createElementVNode)("div",{class:"vc-hue-pointer",style:(0,o.normalizeStyle)({top:i.pointerTop,left:i.pointerLeft}),role:"presentation"},AA,4)],40,$)],2)}var tA={name:"Hue",props:{modelValue:Object,direction:{type:String,default:"horizontal"}},data(){return{oldHue:0,pullDirection:""}},computed:{colors(){const A=this.modelValue.hsl.h;return 0!==A&&A-this.oldHue>0&&(this.pullDirection="right"),0!==A&&A-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=A,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(A,e){!e&&A.preventDefault();const t=this.$refs.container;if(!t)return;const r=t.clientWidth,n=t.clientHeight,i=t.getBoundingClientRect().left+window.pageXOffset,o=t.getBoundingClientRect().top+window.pageYOffset,s=A.pageX||(A.touches?A.touches[0].pageX:0),a=A.pageY||(A.touches?A.touches[0].pageY:0),l=s-i,c=a-o;let u,d;"vertical"===this.direction?(c<0?u=360:c>n?u=0:(d=-100*c/n+100,u=360*d/100),this.colors.hsl.h!==u&&this.$emit("change",{h:u,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(l<0?u=0:l>r?u=360:(d=100*l/r,u=360*d/100),this.colors.hsl.h!==u&&this.$emit("change",{h:u,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))},handleMouseDown(A){this.handleChange(A,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(A){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};n(6547);const rA=(0,B.Z)(tA,[["render",eA]]);var nA=rA;const iA=.5;var oA={name:"Slider",mixins:[p],props:{swatches:{type:Array,default(){return[{s:iA,l:.8},{s:iA,l:.65},{s:iA,l:.5},{s:iA,l:.35},{s:iA,l:.2}]}}},components:{hue:nA},computed:{normalizedSwatches(){const A=this.swatches;return A.map((A=>"object"!==typeof A?{s:iA,l:A}:A))}},methods:{isActive(A,e){const t=this.colors.hsl;return 1===t.l&&1===A.l||(0===t.l&&0===A.l||Math.abs(t.l-A.l)<.01&&Math.abs(t.s-A.s)<.01)},hueChange(A){this.colorChange(A)},handleSwClick(A,e){this.colorChange({h:this.colors.hsl.h,s:e.s,l:e.l,source:"hsl"})}}};n(8016);const sA=(0,B.Z)(oA,[["render",J]]);var aA=sA;const lA=["data-pick"],cA={class:"vc-swatches-box",role:"listbox"},uA=["aria-label","aria-selected","data-color","onClick"],dA={class:"vc-swatches-pick"},hA=(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),gA=[hA];function pA(A,e,t,r,n,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{role:"application","aria-label":"Swatches color picker",class:"vc-swatches","data-pick":i.pick},[(0,o.createElementVNode)("div",cA,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.palette,((A,e)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-swatches-color-group",key:e},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(A,(A=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vc-swatches-color-it",{"vc-swatches-color--white":"#FFFFFF"===A}]),role:"option","aria-label":"Color:"+A,"aria-selected":i.equal(A),key:A,"data-color":A,style:(0,o.normalizeStyle)({background:A}),onClick:e=>i.handlerClick(A)},[(0,o.withDirectives)((0,o.createElementVNode)("div",dA,gA,512),[[o.vShow,i.equal(A)]])],14,uA)))),128))])))),128))])],8,lA)}var fA={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"},mA={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"},BA={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"},wA={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"},vA={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"},CA={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"},bA={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"},yA={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"},_A={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"},QA={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"},UA={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"},FA={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"},xA={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"},EA={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"},kA={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"},IA={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"},HA={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},SA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},DA={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},LA={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)"},OA={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)"},MA={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},TA={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},KA="#ffffff",NA="#000000",PA={red:fA,pink:mA,purple:BA,deepPurple:wA,indigo:vA,blue:CA,lightBlue:bA,cyan:yA,teal:_A,green:QA,lightGreen:UA,lime:FA,yellow:xA,amber:EA,orange:kA,deepOrange:IA,brown:HA,grey:SA,blueGrey:DA,darkText:LA,lightText:OA,darkIcons:MA,lightIcons:TA,white:KA,black:NA};const RA=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],VA=["900","700","500","300","100"],GA=(()=>{const A=[];return RA.forEach((e=>{let t=[];"black"===e.toLowerCase()||"white"===e.toLowerCase()?t=t.concat(["#000000","#FFFFFF"]):VA.forEach((A=>{const r=PA[e][A];t.push(r.toUpperCase())})),A.push(t)})),A})();var jA={name:"Swatches",mixins:[p],props:{palette:{type:Array,default(){return GA}}},computed:{pick(){return this.colors.hex}},methods:{equal(A){return A.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick(A){this.colorChange({hex:A,source:"hex"})}}};n(193);const zA=(0,B.Z)(jA,[["render",pA]]);var ZA=zA;const WA={role:"heading",class:"vc-ps-head"},XA={class:"vc-ps-body"},YA={class:"vc-ps-saturation-wrap"},JA={class:"vc-ps-hue-wrap"},$A=(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),qA={class:"vc-ps-previews"},Ae={class:"vc-ps-previews__label"},ee={class:"vc-ps-previews__swatches"},te=["aria-label"],re=["aria-label"],ne={class:"vc-ps-previews__label"},ie={key:0,class:"vc-ps-actions"},oe=["aria-label"],se=["aria-label"],ae={class:"vc-ps-fields"},le=(0,o.createElementVNode)("div",{class:"vc-ps-fields__divider"},null,-1),ce=(0,o.createElementVNode)("div",{class:"vc-ps-fields__divider"},null,-1);function ue(A,e,t,r,n,i){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",WA,(0,o.toDisplayString)(t.head),1),(0,o.createElementVNode)("div",XA,[(0,o.createElementVNode)("div",YA,[(0,o.createVNode)(s,{modelValue:A.colors,"onUpdate:modelValue":e[0]||(e[0]=e=>A.colors=e),onChange:i.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",JA,[(0,o.createVNode)(a,{modelValue:A.colors,"onUpdate:modelValue":e[1]||(e[1]=e=>A.colors=e),onChange:i.childChange,direction:"vertical"},{default:(0,o.withCtx)((()=>[$A])),_: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",qA,[(0,o.createElementVNode)("div",Ae,(0,o.toDisplayString)(t.newLabel),1),(0,o.createElementVNode)("div",ee,[(0,o.createElementVNode)("div",{class:"vc-ps-previews__pr-color","aria-label":`New color is ${A.colors.hex}`,style:(0,o.normalizeStyle)({background:A.colors.hex})},null,12,te),(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:e[2]||(e[2]=(...A)=>i.clickCurrentColor&&i.clickCurrentColor(...A))},null,12,re)]),(0,o.createElementVNode)("div",ne,(0,o.toDisplayString)(t.currentLabel),1)]),t.disableFields?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",ie,[(0,o.createElementVNode)("div",{class:"vc-ps-ac-btn",role:"button","aria-label":t.acceptLabel,onClick:e[3]||(e[3]=(...A)=>i.handleAccept&&i.handleAccept(...A))},(0,o.toDisplayString)(t.acceptLabel),9,oe),(0,o.createElementVNode)("div",{class:"vc-ps-ac-btn",role:"button","aria-label":t.cancelLabel,onClick:e[4]||(e[4]=(...A)=>i.handleCancel&&i.handleCancel(...A))},(0,o.toDisplayString)(t.cancelLabel),9,se),(0,o.createElementVNode)("div",ae,[(0,o.createVNode)(l,{label:"h",desc:"°",modelValue:i.hsv.h,onChange:i.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"s",desc:"%",modelValue:i.hsv.s,max:100,onChange:i.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"v",desc:"%",modelValue:i.hsv.v,max:100,onChange:i.inputChange},null,8,["modelValue","onChange"]),le,(0,o.createVNode)(l,{label:"r",modelValue:A.colors.rgba.r,onChange:i.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"g",modelValue:A.colors.rgba.g,onChange:i.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"b",modelValue:A.colors.rgba.b,onChange:i.inputChange},null,8,["modelValue","onChange"]),ce,(0,o.createVNode)(l,{label:"#",class:"vc-ps-fields__hex",modelValue:i.hex,onChange:i.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:e[5]||(e[5]=(...A)=>i.handleReset&&i.handleReset(...A))},(0,o.toDisplayString)(t.resetLabel),1)):(0,o.createCommentVNode)("",!0)]))],2)])],2)}const de=(0,o.createElementVNode)("div",{class:"vc-saturation--white"},null,-1),he=(0,o.createElementVNode)("div",{class:"vc-saturation--black"},null,-1),ge=(0,o.createElementVNode)("div",{class:"vc-saturation-circle"},null,-1),pe=[ge];function fe(A,e,t,r,n,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-saturation",style:(0,o.normalizeStyle)({background:i.bgColor}),ref:"container",onMousedown:e[0]||(e[0]=(...A)=>i.handleMouseDown&&i.handleMouseDown(...A)),onTouchmove:e[1]||(e[1]=(...A)=>i.handleChange&&i.handleChange(...A)),onTouchstart:e[2]||(e[2]=(...A)=>i.handleChange&&i.handleChange(...A))},[de,he,(0,o.createElementVNode)("div",{class:"vc-saturation-pointer",style:(0,o.normalizeStyle)({top:i.pointerTop,left:i.pointerLeft})},pe,4)],36)}var me=n(9428),Be=n.n(me),we=n(9289),ve={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:we(((A,e)=>{A(e)}),20,{leading:!0,trailing:!1}),handleChange(A,e){!e&&A.preventDefault();const t=this.$refs.container;if(!t)return;const r=t.clientWidth,n=t.clientHeight,i=t.getBoundingClientRect().left+window.pageXOffset,o=t.getBoundingClientRect().top+window.pageYOffset,s=A.pageX||(A.touches?A.touches[0].pageX:0),a=A.pageY||(A.touches?A.touches[0].pageY:0),l=Be()(s-i,0,r),c=Be()(a-o,0,n),u=l/r,d=Be()(-c/n+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:u,v:d,a:this.colors.hsv.a,source:"hsva"})},onChange(A){this.$emit("change",A)},handleMouseDown(A){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(A){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};n(5233);const Ce=(0,B.Z)(ve,[["render",fe]]);var be=Ce,ye={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:be,hue:nA,"ed-in":V},data(){return{currentColor:"#FFF"}},computed:{hsv(){const A=this.colors.hsv;return{h:A.h.toFixed(),s:(100*A.s).toFixed(),v:(100*A.v).toFixed()}},hex(){const A=this.colors.hex;return A&&A.replace("#","")}},created(){this.currentColor=this.colors.hex},methods:{childChange(A){this.colorChange(A)},inputChange(A){A&&(A["#"]?this.isValidHex(A["#"])&&this.colorChange({hex:A["#"],source:"hex"}):A.r||A.g||A.b||A.a?this.colorChange({r:A.r||this.colors.rgba.r,g:A.g||this.colors.rgba.g,b:A.b||this.colors.rgba.b,a:A.a||this.colors.rgba.a,source:"rgba"}):(A.h||A.s||A.v)&&this.colorChange({h:A.h||this.colors.hsv.h,s:A.s/100||this.colors.hsv.s,v:A.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 _e=(0,B.Z)(ye,[["render",ue]]);var Qe=_e;const Ue={class:"vc-sketch-saturation-wrap"},Fe={class:"vc-sketch-controls"},xe={class:"vc-sketch-sliders"},Ee={class:"vc-sketch-hue-wrap"},ke={key:0,class:"vc-sketch-alpha-wrap"},Ie={class:"vc-sketch-color-wrap"},He=["aria-label"],Se={key:0,class:"vc-sketch-field"},De={class:"vc-sketch-field--double"},Le={class:"vc-sketch-field--single"},Oe={class:"vc-sketch-field--single"},Me={class:"vc-sketch-field--single"},Te={key:0,class:"vc-sketch-field--single"},Ke={class:"vc-sketch-presets",role:"group","aria-label":"A color preset, pick one to set as current color"},Ne=["aria-label","onClick"],Pe=["aria-label","onClick"],Re={class:"vc-botton-container"};function Ve(A,e,t,r,n,i){const s=(0,o.resolveComponent)("saturation"),a=(0,o.resolveComponent)("hue"),l=(0,o.resolveComponent)("alpha"),c=(0,o.resolveComponent)("checkboard"),u=(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",Ue,[(0,o.createVNode)(s,{modelValue:A.colors,"onUpdate:modelValue":e[0]||(e[0]=e=>A.colors=e),onChange:i.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Fe,[(0,o.createElementVNode)("div",xe,[(0,o.createElementVNode)("div",Ee,[(0,o.createVNode)(a,{modelValue:A.colors,"onUpdate:modelValue":e[1]||(e[1]=e=>A.colors=e),onChange:i.childChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",ke,[(0,o.createVNode)(l,{modelValue:A.colors,"onUpdate:modelValue":e[2]||(e[2]=e=>A.colors=e),onChange:i.childChange},null,8,["modelValue","onChange"])]))]),(0,o.createElementVNode)("div",Ie,[(0,o.createElementVNode)("div",{"aria-label":`Current color is ${i.activeColor}`,class:"vc-sketch-active-color",style:(0,o.normalizeStyle)({background:i.activeColor})},null,12,He),(0,o.createVNode)(c)])]),t.disableFields?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Se,[(0,o.createElementVNode)("div",De,[(0,o.createVNode)(u,{label:"hex",modelValue:i.hex,onChange:i.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Le,[(0,o.createVNode)(u,{label:"r",modelValue:A.colors.rgba.r,onChange:i.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Oe,[(0,o.createVNode)(u,{label:"g",modelValue:A.colors.rgba.g,onChange:i.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Me,[(0,o.createVNode)(u,{label:"b",modelValue:A.colors.rgba.b,onChange:i.inputChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Te,[(0,o.createVNode)(u,{label:"a",modelValue:A.colors.a,"arrow-offset":.01,max:1,onChange:i.inputChange},null,8,["modelValue","arrow-offset","onChange"])]))])),(0,o.createElementVNode)("div",Ke,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.presetColors,(e=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[A.isTransparent(e)?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:"else-"+e,"aria-label":"Color:"+e,class:"vc-sketch-presets-color",onClick:A=>i.handlePreset(e)},[(0,o.createVNode)(c)],8,Pe)):((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-sketch-presets-color","aria-label":"Color:"+e,key:"if-"+e,style:(0,o.normalizeStyle)({background:e}),onClick:A=>i.handlePreset(e)},null,12,Ne))],64)))),256))]),(0,o.createElementVNode)("div",Re,[(0,o.createElementVNode)("div",{class:"vc-botton-left",onClick:e[3]||(e[3]=(...A)=>i.handleCancel&&i.handleCancel(...A))},"取消"),(0,o.createElementVNode)("div",{class:"vc-botton-right",onClick:e[4]||(e[4]=(...A)=>i.handleConfirm&&i.handleConfirm(...A))},"确定")])],2)):(0,o.createCommentVNode)("",!0)}const Ge={class:"vc-alpha"},je={class:"vc-alpha-checkboard-wrap"},ze=(0,o.createElementVNode)("div",{class:"vc-alpha-picker"},null,-1),Ze=[ze];function We(A,e,t,r,n,i){const s=(0,o.resolveComponent)("checkboard");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Ge,[(0,o.createElementVNode)("div",je,[(0,o.createVNode)(s)]),(0,o.createElementVNode)("div",{class:"vc-alpha-gradient",style:(0,o.normalizeStyle)({background:i.gradientColor})},null,4),(0,o.createElementVNode)("div",{class:"vc-alpha-container",ref:"container",onMousedown:e[0]||(e[0]=(...A)=>i.handleMouseDown&&i.handleMouseDown(...A)),onTouchmove:e[1]||(e[1]=(...A)=>i.handleChange&&i.handleChange(...A)),onTouchstart:e[2]||(e[2]=(...A)=>i.handleChange&&i.handleChange(...A))},[(0,o.createElementVNode)("div",{class:"vc-alpha-pointer",style:(0,o.normalizeStyle)({left:100*i.colors.a+"%"})},Ze,4)],544)])}function Xe(A,e,t,r,n,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-checkerboard",style:(0,o.normalizeStyle)(i.bgStyle)},null,4)}const Ye={};var Je={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("+qe(this.white,this.grey,this.size)+")"}}}};function $e(A,e,t){if("undefined"===typeof document)return null;const r=document.createElement("canvas");r.width=r.height=2*t;const n=r.getContext("2d");return n?(n.fillStyle=A,n.fillRect(0,0,r.width,r.height),n.fillStyle=e,n.fillRect(0,0,t,t),n.translate(t,t),n.fillRect(0,0,t,t),r.toDataURL()):null}function qe(A,e,t){const r=A+","+e+","+t;if(Ye[r])return Ye[r];{const n=$e(A,e,t);return Ye[r]=n,n}}n(3205);const At=(0,B.Z)(Je,[["render",Xe]]);var et=At,tt={name:"Alpha",props:{modelValue:Object,onChange:Function},components:{checkboard:et},computed:{colors(){return this.modelValue},gradientColor(){const A=this.colors.rgba,e=[A.r,A.g,A.b].join(",");return"linear-gradient(to right, rgba("+e+", 0) 0%, rgba("+e+", 1) 100%)"}},methods:{handleChange(A,e){!e&&A.preventDefault();const t=this.$refs.container;if(!t)return;const r=t.clientWidth,n=t.getBoundingClientRect().left+window.pageXOffset,i=A.pageX||(A.touches?A.touches[0].pageX:0),o=i-n;let s;s=o<0?0:o>r?1:Math.round(100*o/r)/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(A){this.handleChange(A,!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 rt=(0,B.Z)(tt,[["render",We]]);var nt=rt;const it=["#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:be,hue:nA,alpha:nt,"ed-in":V,checkboard:et},props:{show:{type:Boolean,default(){return!0}},presetColors:{type:Array,default(){return it}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1},changColor:{type:Function}},watch:{show(A,e){this.showView=A}},data(){return{showView:this.show}},computed:{hex(){let A;return A=this.colors.a<1?this.colors.hex8:this.colors.hex,A.replace("#","")},activeColor(){const A=this.colors.rgba;return"rgba("+[A.r,A.g,A.b,A.a].join(",")+")"}},methods:{handleCancel(){const A={isOk:!1};this.$emit("changButton",A)},handleConfirm(){const A={isOk:!0,activeColor:this.activeColor,hex:this.hex};this.$emit("changButton",A)},handlePreset(A){this.colorChange({hex:A,source:"hex"})},childChange(A){this.colorChange(A)},inputChange(A){A&&(A.hex?this.isValidHex(A.hex)&&this.colorChange({hex:A.hex,source:"hex"}):(A.r||A.g||A.b||A.a)&&this.colorChange({r:A.r||this.colors.rgba.r,g:A.g||this.colors.rgba.g,b:A.b||this.colors.rgba.b,a:A.a||this.colors.rgba.a,source:"rgba"}))}}};n(3439);const st=(0,B.Z)(ot,[["render",Ve]]);var at=st;const lt={class:"vc-chrome-saturation-wrap"},ct={class:"vc-chrome-body"},ut={class:"vc-chrome-controls"},dt={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"},Ct={class:"vc-chrome-field"},bt={class:"vc-chrome-field"},yt={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),Ht=[It],St={class:"vc-chrome-toggle-icon-highlight"};function Dt(A,e,t,r,n,i){const s=(0,o.resolveComponent)("saturation"),a=(0,o.resolveComponent)("checkboard"),l=(0,o.resolveComponent)("hue"),c=(0,o.resolveComponent)("alpha"),u=(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:A.colors,"onUpdate:modelValue":e[0]||(e[0]=e=>A.colors=e),onChange:i.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",ct,[(0,o.createElementVNode)("div",ut,[(0,o.createElementVNode)("div",dt,[(0,o.createElementVNode)("div",{"aria-label":`current color is ${A.colors.hex}`,class:"vc-chrome-active-color",style:(0,o.normalizeStyle)({background:i.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:A.colors,"onUpdate:modelValue":e[1]||(e[1]=e=>A.colors=e),onChange:i.childChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",ft,[(0,o.createVNode)(c,{modelValue:A.colors,"onUpdate:modelValue":e[2]||(e[2]=e=>A.colors=e),onChange:i.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,[i.hasAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(u,{key:0,label:"hex",modelValue:A.colors.hex,onChange:i.inputChange},null,8,["modelValue","onChange"])),i.hasAlpha?((0,o.openBlock)(),(0,o.createBlock)(u,{key:1,label:"hex",modelValue:A.colors.hex8,onChange:i.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",Ct,[(0,o.createVNode)(u,{label:"r",modelValue:A.colors.rgba.r,onChange:i.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",bt,[(0,o.createVNode)(u,{label:"g",modelValue:A.colors.rgba.g,onChange:i.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",yt,[(0,o.createVNode)(u,{label:"b",modelValue:A.colors.rgba.b,onChange:i.inputChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",_t,[(0,o.createVNode)(u,{label:"a",modelValue:A.colors.a,"arrow-offset":.01,max:1,onChange:i.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)(u,{label:"h",modelValue:i.hsl.h,onChange:i.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Ft,[(0,o.createVNode)(u,{label:"s",modelValue:i.hsl.s,onChange:i.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",xt,[(0,o.createVNode)(u,{label:"l",modelValue:i.hsl.l,onChange:i.inputChange},null,8,["modelValue","onChange"])]),t.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Et,[(0,o.createVNode)(u,{label:"a",modelValue:A.colors.a,"arrow-offset":.01,max:1,onChange:i.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:e[6]||(e[6]=(...A)=>i.toggleViews&&i.toggleViews(...A))},[(0,o.createElementVNode)("div",kt,[((0,o.openBlock)(),(0,o.createElementBlock)("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24",onMouseover:e[3]||(e[3]=(...A)=>i.showHighlight&&i.showHighlight(...A)),onMouseenter:e[4]||(e[4]=(...A)=>i.showHighlight&&i.showHighlight(...A)),onMouseout:e[5]||(e[5]=(...A)=>i.hideHighlight&&i.hideHighlight(...A))},Ht,32))]),(0,o.withDirectives)((0,o.createElementVNode)("div",St,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:be,hue:nA,alpha:nt,"ed-in":V,checkboard:et},data(){return{fieldsIndex:0,highlight:!1}},computed:{hsl(){const{h:A,s:e,l:t}=this.colors.hsl;return{h:A.toFixed(),s:`${(100*e).toFixed()}%`,l:`${(100*t).toFixed()}%`}},activeColor(){const A=this.colors.rgba;return"rgba("+[A.r,A.g,A.b,A.a].join(",")+")"},hasAlpha(){return this.colors.a<1}},methods:{childChange(A){this.colorChange(A)},inputChange(A){if(A)if(A.hex)this.isValidHex(A.hex)&&this.colorChange({hex:A.hex,source:"hex"});else if(A.r||A.g||A.b||A.a)this.colorChange({r:A.r||this.colors.rgba.r,g:A.g||this.colors.rgba.g,b:A.b||this.colors.rgba.b,a:A.a||this.colors.rgba.a,source:"rgba"});else if(A.h||A.s||A.l){const e=A.s?A.s.replace("%","")/100:this.colors.hsl.s,t=A.l?A.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:A.h||this.colors.hsl.h,s:e,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",Dt]]);var Mt=Ot;const Tt=(0,o.createElementVNode)("div",{class:"vc-twitter-triangle-shadow"},null,-1),Kt=(0,o.createElementVNode)("div",{class:"vc-twitter-triangle"},null,-1),Nt={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(A,e,t,r,n,i){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,Kt,(0,o.createElementVNode)("div",Nt,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.defaultColors,((A,e)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{class:"vc-twitter-swatch",style:(0,o.normalizeStyle)({background:A,boxShadow:`0 0 4px ${i.equal(A)?A:"transparent"}`}),key:e,onClick:e=>i.handlerClick(A)},null,12,Pt)))),128)),Rt,(0,o.createVNode)(s,{label:"#",modelValue:i.hex,onChange:i.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(A){return["hide","top-left","top-right"].includes(A)}}},computed:{hsv(){const A=this.colors.hsv;return{h:A.h.toFixed(),s:(100*A.s).toFixed(),v:(100*A.v).toFixed()}},hex(){const A=this.colors.hex;return A&&A.replace("#","")}},methods:{equal(A){return A.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick(A){this.colorChange({hex:A,source:"hex"})},inputChange(A){A&&(A["#"]?this.isValidHex(A["#"])&&this.colorChange({hex:A["#"],source:"hex"}):A.r||A.g||A.b||A.a?this.colorChange({r:A.r||this.colors.rgba.r,g:A.g||this.colors.rgba.g,b:A.b||this.colors.rgba.b,a:A.a||this.colors.rgba.a,source:"rgba"}):(A.h||A.s||A.v)&&this.colorChange({h:A.h||this.colors.hsv.h,s:A.s/100||this.colors.hsv.s,v:A.v/100||this.colors.hsv.v,source:"hsv"}))}}};n(1113);const Zt=(0,B.Z)(zt,[["render",Gt]]);var Wt=Zt;const Xt=r.i8,Yt={version:Xt,Compact:v,Grayscale:E,Twitter:Wt,Material:z,Slider:aA,Swatches:ZA,Photoshop:Qe,Sketch:at,Chrome:Mt,Alpha:nt,Checkboard:et,EditableInput:V,Hue:nA,Saturation:be,ColorMixin:p};"object"===typeof process&&"[object process]"===String(process)||(window.VueColor=Yt);var Jt=Yt,$t=Jt}(),A.exports=i})()},3162:function(A,e,t){var r,n,i;(function(t,o){n=[],r=o,i="function"===typeof r?r.apply(e,n):r,void 0===i||(A.exports=i)})(0,(function(){"use strict";function e(A,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\ufeff",A],{type:A.type}):A}function r(A,e,t){var r=new XMLHttpRequest;r.open("GET",A),r.responseType="blob",r.onload=function(){a(r.response,e,t)},r.onerror=function(){console.error("could not download file")},r.send()}function n(A){var e=new XMLHttpRequest;e.open("HEAD",A,!1);try{e.send()}catch(A){}return 200<=e.status&&299>=e.status}function i(A){try{A.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(e)}}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(A,e,t){var s=o.URL||o.webkitURL,a=document.createElement("a");e=e||A.name||"download",a.download=e,a.rel="noopener","string"==typeof A?(a.href=A,a.origin===location.origin?i(a):n(a.href)?r(A,e,t):i(a,a.target="_blank")):(a.href=s.createObjectURL(A),setTimeout((function(){s.revokeObjectURL(a.href)}),4e4),setTimeout((function(){i(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(A,t,o){if(t=t||A.name||"download","string"!=typeof A)navigator.msSaveOrOpenBlob(e(A,o),t);else if(n(A))r(A,t,o);else{var s=document.createElement("a");s.href=A,s.target="_blank",setTimeout((function(){i(s)}))}}:function(A,e,t,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof A)return r(A,e,t);var i="application/octet-stream"===A.type,a=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&a||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var A=c.result;A=l?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=A:location=A,n=null},c.readAsDataURL(A)}else{var u=o.URL||o.webkitURL,d=u.createObjectURL(A);n?n.location=d:location.href=d,n=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});o.saveAs=a.saveAs=a,A.exports=a}))},1120:function(A){
|
||
/*!
|
||
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*/
|
||
(function(e,t){A.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 A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A},t.apply(this,arguments)};function r(A,e,t,r){function n(A){return A instanceof t?A:new t((function(e){e(A)}))}return new(t||(t=Promise))((function(t,i){function o(A){try{a(r.next(A))}catch(je){i(je)}}function s(A){try{a(r["throw"](A))}catch(je){i(je)}}function a(A){A.done?t(A.value):n(A.value).then(o,s)}a((r=r.apply(A,e||[])).next())}))}function n(A,e){var t,r,n,i,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(A){return function(e){return a([A,e])}}function a(i){if(t)throw new TypeError("Generator is already executing.");while(o)try{if(t=1,r&&(n=2&i[0]?r["return"]:i[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!(n=n.length>0&&n[n.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){o.label=i[1];break}if(6===i[0]&&o.label<n[1]){o.label=n[1],n=i;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(i);break}n[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(A,o)}catch(je){i=[6,je],r=0}finally{t=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function i(A,e,t){if(t||2===arguments.length)for(var r,n=0,i=e.length;n<i;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return A.concat(r||e)}for(var o=function(){function A(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find((function(A){return 0!==A.width}));return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),s=function(A,e){return o.fromClientRect(A,e.getBoundingClientRect())},a=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new o(0,0,r,n)},l=function(A){var e=[],t=0,r=A.length;while(t<r){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);56320===(64512&i)?e.push(((1023&n)<<10)+(1023&i)+65536):(e.push(n),t--)}else e.push(n)}return e},c=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";var r=[],n=-1,i="";while(++n<t){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"===typeof Uint8Array?[]:new Uint8Array(256),h=0;h<u.length;h++)d[u.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(A){var e,t,r,n,i,o=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.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(e=0;e<s;e+=4)t=p[A.charCodeAt(e)],r=p[A.charCodeAt(e+1)],n=p[A.charCodeAt(e+2)],i=p[A.charCodeAt(e+3)],c[a++]=t<<2|r>>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&i;return l},B=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},w=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},v=5,C=11,b=2,y=C-v,_=65536>>v,Q=1<<v,U=Q-1,F=1024>>v,x=_+F,E=x,k=32,I=E+k,H=65536>>C,S=1<<y,D=S-1,L=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},O=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},M=function(A,e){var t=m(A),r=Array.isArray(t)?w(t):new Uint32Array(t),n=Array.isArray(t)?B(t):new Uint16Array(t),i=24,o=L(n,i/2,r[4]/2),s=2===r[5]?L(n,(i+r[4])/2):O(r,Math.ceil((i+r[4])/4));return new T(r[0],r[1],r[2],r[3],o,s)},T=function(){function A(A,e,t,r,n,i){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>v],e=(e<<b)+(A&U),this.data[e];if(A<=65535)return e=this.index[_+(A-55296>>v)],e=(e<<b)+(A&U),this.data[e];if(A<this.highStart)return e=I-H+(A>>C),e=this.index[e],e+=A>>v&D,e=this.index[e],e=(e<<b)+(A&U),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N="undefined"===typeof Uint8Array?[]:new Uint8Array(256),P=0;P<K.length;P++)N[K.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,X=7,Y=8,J=9,$=10,q=11,AA=12,eA=13,tA=14,rA=15,nA=16,iA=17,oA=18,sA=19,aA=20,lA=21,cA=22,uA=23,dA=24,hA=25,gA=26,pA=27,fA=28,mA=29,BA=30,wA=31,vA=32,CA=33,bA=34,yA=35,_A=36,QA=37,UA=38,FA=39,xA=40,EA=41,kA=42,IA=43,HA=[9001,65288],SA="!",DA="×",LA="÷",OA=M(R),MA=[BA,_A],TA=[G,j,z,W],KA=[$,Y],NA=[pA,gA],PA=TA.concat(KA),RA=[UA,FA,xA,bA,yA],VA=[rA,eA],GA=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach((function(A,i){var o=OA.get(A);if(o>V?(n.push(!0),o-=V):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(i),t.push(nA);if(o===Z||o===q){if(0===i)return r.push(i),t.push(BA);var s=t[i-1];return-1===PA.indexOf(s)?(r.push(r[i-1]),t.push(s)):(r.push(i),t.push(BA))}return r.push(i),o===wA?t.push("strict"===e?lA:QA):o===kA||o===mA?t.push(BA):o===IA?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(QA):t.push(BA):void t.push(o)})),[r,t,n]},jA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n){var i=t;while(i<=r.length){i++;var o=r[i];if(o===e)return!0;if(o!==$)break}}if(n===$){i=t;while(i>0){i--;var s=r[i];if(Array.isArray(A)?-1!==A.indexOf(s):A===s){var a=t;while(a<=r.length){a++;o=r[a];if(o===e)return!0;if(o!==$)break}}if(s!==$)break}}return!1},zA=function(A,e){var t=A;while(t>=0){var r=e[t];if(r!==$)return r;t--}return 0},ZA=function(A,e,t,r,n){if(0===t[r])return DA;var i=r-1;if(Array.isArray(n)&&!0===n[i])return DA;var o=i-1,s=i+1,a=e[i],l=o>=0?e[o]:0,c=e[s];if(a===j&&c===z)return DA;if(-1!==TA.indexOf(a))return SA;if(-1!==TA.indexOf(c))return DA;if(-1!==KA.indexOf(c))return DA;if(zA(i,e)===Y)return LA;if(OA.get(A[i])===q)return DA;if((a===vA||a===CA)&&OA.get(A[s])===q)return DA;if(a===X||c===X)return DA;if(a===J)return DA;if(-1===[$,eA,rA].indexOf(a)&&c===J)return DA;if(-1!==[iA,oA,sA,dA,fA].indexOf(c))return DA;if(zA(i,e)===cA)return DA;if(jA(uA,cA,i,e))return DA;if(jA([iA,oA],lA,i,e))return DA;if(jA(AA,AA,i,e))return DA;if(a===$)return LA;if(a===uA||c===uA)return DA;if(c===nA||a===nA)return LA;if(-1!==[eA,rA,lA].indexOf(c)||a===tA)return DA;if(l===_A&&-1!==VA.indexOf(a))return DA;if(a===fA&&c===_A)return DA;if(c===aA)return DA;if(-1!==MA.indexOf(c)&&a===hA||-1!==MA.indexOf(a)&&c===hA)return DA;if(a===pA&&-1!==[QA,vA,CA].indexOf(c)||-1!==[QA,vA,CA].indexOf(a)&&c===gA)return DA;if(-1!==MA.indexOf(a)&&-1!==NA.indexOf(c)||-1!==NA.indexOf(a)&&-1!==MA.indexOf(c))return DA;if(-1!==[pA,gA].indexOf(a)&&(c===hA||-1!==[cA,rA].indexOf(c)&&e[s+1]===hA)||-1!==[cA,rA].indexOf(a)&&c===hA||a===hA&&-1!==[hA,fA,dA].indexOf(c))return DA;if(-1!==[hA,fA,dA,iA,oA].indexOf(c)){var u=i;while(u>=0){var d=e[u];if(d===hA)return DA;if(-1===[fA,dA].indexOf(d))break;u--}}if(-1!==[pA,gA].indexOf(c)){u=-1!==[iA,oA].indexOf(a)?o:i;while(u>=0){d=e[u];if(d===hA)return DA;if(-1===[fA,dA].indexOf(d))break;u--}}if(UA===a&&-1!==[UA,FA,bA,yA].indexOf(c)||-1!==[FA,bA].indexOf(a)&&-1!==[FA,xA].indexOf(c)||-1!==[xA,yA].indexOf(a)&&c===xA)return DA;if(-1!==RA.indexOf(a)&&-1!==[aA,gA].indexOf(c)||-1!==RA.indexOf(c)&&a===pA)return DA;if(-1!==MA.indexOf(a)&&-1!==MA.indexOf(c))return DA;if(a===dA&&-1!==MA.indexOf(c))return DA;if(-1!==MA.concat(hA).indexOf(a)&&c===cA&&-1===HA.indexOf(A[s])||-1!==MA.concat(hA).indexOf(c)&&a===oA)return DA;if(a===EA&&c===EA){var h=t[i],g=1;while(h>0){if(h--,e[h]!==EA)break;g++}if(g%2!==0)return DA}return a===vA&&c===CA?DA:LA},WA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=GA(A,e.lineBreak),r=t[0],n=t[1],i=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map((function(A){return-1!==[hA,BA,kA].indexOf(A)?QA:A})));var o="keep-all"===e.wordBreak?i.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[r,n,o]},XA=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===SA,this.start=t,this.end=r}return A.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),YA=function(A,e){var t=l(A),r=WA(t,e),n=r[0],i=r[1],o=r[2],s=t.length,a=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};var A=DA;while(c<s&&(A=ZA(t,i,n,++c,o))===DA);if(A!==DA||c===s){var e=new XA(t,A,a,c);return a=c,{value:e,done:!1}}return{done:!0,value:null}}}},JA=1,$A=2,qA=4,Ae=8,ee=10,te=47,re=92,ne=9,ie=32,oe=34,se=61,ae=35,le=36,ce=37,ue=39,de=40,he=41,ge=95,pe=45,fe=33,me=60,Be=62,we=64,ve=91,Ce=93,be=61,ye=123,_e=63,Qe=125,Ue=124,Fe=126,xe=128,Ee=65533,ke=42,Ie=43,He=44,Se=58,De=59,Le=46,Oe=0,Me=8,Te=11,Ke=14,Ne=31,Pe=127,Re=-1,Ve=48,Ge=97,je=101,ze=102,Ze=117,We=122,Xe=65,Ye=69,Je=70,$e=85,qe=90,At=function(A){return A>=Ve&&A<=57},et=function(A){return A>=55296&&A<=57343},tt=function(A){return At(A)||A>=Xe&&A<=Je||A>=Ge&&A<=ze},rt=function(A){return A>=Ge&&A<=We},nt=function(A){return A>=Xe&&A<=qe},it=function(A){return rt(A)||nt(A)},ot=function(A){return A>=xe},st=function(A){return A===ee||A===ne||A===ie},at=function(A){return it(A)||ot(A)||A===ge},lt=function(A){return at(A)||At(A)||A===pe},ct=function(A){return A>=Oe&&A<=Me||A===Te||A>=Ke&&A<=Ne||A===Pe},ut=function(A,e){return A===re&&e!==ee},dt=function(A,e,t){return A===pe?at(e)||ut(e,t):!!at(A)||!(A!==re||!ut(A,e))},ht=function(A,e,t){return A===Ie||A===pe?!!At(e)||e===Le&&At(t):At(A===Le?e:A)},gt=function(A){var e=0,t=1;A[e]!==Ie&&A[e]!==pe||(A[e]===pe&&(t=-1),e++);var r=[];while(At(A[e]))r.push(A[e++]);var n=r.length?parseInt(c.apply(void 0,r),10):0;A[e]===Le&&e++;var i=[];while(At(A[e]))i.push(A[e++]);var o=i.length,s=o?parseInt(c.apply(void 0,i),10):0;A[e]!==Ye&&A[e]!==je||e++;var a=1;A[e]!==Ie&&A[e]!==pe||(A[e]===pe&&(a=-1),e++);var l=[];while(At(A[e]))l.push(A[e++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return t*(n+s*Math.pow(10,-o))*Math.pow(10,a*u)},pt={type:2},ft={type:3},mt={type:4},Bt={type:13},wt={type:8},vt={type:21},Ct={type:9},bt={type:10},yt={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},Ht={type:28},St={type:29},Dt={type:31},Lt={type:32},Ot=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(l(A))},A.prototype.read=function(){var A=[],e=this.consumeToken();while(e!==Lt)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case oe:return this.consumeStringToken(oe);case ae:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(lt(e)||ut(t,r)){var n=dt(e,t,r)?$A:JA,i=this.consumeName();return{type:5,value:i,flags:n}}break;case le:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),Bt;break;case ue:return this.consumeStringToken(ue);case de:return pt;case he:return ft;case ke:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),Qt;break;case Ie:if(ht(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case He:return mt;case pe:var o=A,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(ht(o,s,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(dt(o,s,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===pe&&a===Be)return this.consumeCodePoint(),this.consumeCodePoint(),Et;break;case Le:if(ht(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case te:if(this.peekCodePoint(0)===ke){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===ke&&(l=this.consumeCodePoint(),l===te))return this.consumeToken();if(l===Re)return this.consumeToken()}}break;case Se:return kt;case De:return It;case me:if(this.peekCodePoint(0)===fe&&this.peekCodePoint(1)===pe&&this.peekCodePoint(2)===pe)return this.consumeCodePoint(),this.consumeCodePoint(),xt;break;case we:var u=this.peekCodePoint(0),d=this.peekCodePoint(1),h=this.peekCodePoint(2);if(dt(u,d,h)){i=this.consumeName();return{type:7,value:i}}break;case ve:return Ht;case re:if(ut(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Ce:return St;case be:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),wt;break;case ye:return yt;case Qe:return _t;case Ze:case $e:var g=this.peekCodePoint(0),p=this.peekCodePoint(1);return g!==Ie||!tt(p)&&p!==_e||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Ue:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),Ct;if(this.peekCodePoint(0)===Ue)return this.consumeCodePoint(),vt;break;case Fe:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),bt;break;case Re:return Lt}return st(A)?(this.consumeWhiteSpace(),Dt):At(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):at(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:c(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return"undefined"===typeof A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){var A=[],e=this.consumeCodePoint();while(tt(e)&&A.length<6)A.push(e),e=this.consumeCodePoint();var t=!1;while(e===_e&&A.length<6)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var r=parseInt(c.apply(void 0,A.map((function(A){return A===_e?Ve:A}))),16),n=parseInt(c.apply(void 0,A.map((function(A){return A===_e?Je:A}))),16);return{type:30,start:r,end:n}}var i=parseInt(c.apply(void 0,A),16);if(this.peekCodePoint(0)===pe&&tt(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var o=[];while(tt(e)&&o.length<6)o.push(e),e=this.consumeCodePoint();n=parseInt(c.apply(void 0,o),16);return{type:30,start:i,end:n}}return{type:30,start:i,end:i}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===de?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===de?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Re)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===ue||e===oe){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Re||this.peekCodePoint(0)===he)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Ut)}while(1){var r=this.consumeCodePoint();if(r===Re||r===he)return{type:22,value:c.apply(void 0,A)};if(st(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Re||this.peekCodePoint(0)===he?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Ut);if(r===oe||r===ue||r===de||ct(r))return this.consumeBadUrlRemnants(),Ut;if(r===re){if(!ut(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Ut;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){while(st(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(A===he||A===Re)return;ut(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var e=5e4,t="";while(A>0){var r=Math.min(e,A);t+=c.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){var e="",t=0;do{var r=this._value[t];if(r===Re||void 0===r||r===A)return e+=this.consumeStringSlice(t),{type:0,value:e};if(r===ee)return this._value.splice(0,t),Ft;if(r===re){var n=this._value[t+1];n!==Re&&void 0!==n&&(n===ee?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):ut(r,n)&&(e+=this.consumeStringSlice(t),e+=c(this.consumeEscapedCodePoint()),t=-1))}t++}while(1)},A.prototype.consumeNumber=function(){var A=[],e=qA,t=this.peekCodePoint(0);t!==Ie&&t!==pe||A.push(this.consumeCodePoint());while(At(this.peekCodePoint(0)))A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===Le&&At(r)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Ae;while(At(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((t===Ye||t===je)&&((r===Ie||r===pe)&&At(n)||At(r))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Ae;while(At(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[gt(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(dt(r,n,i)){var o=this.consumeName();return{type:15,number:e,flags:t,unit:o}}return r===ce?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(tt(A)){var e=c(A);while(tt(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());st(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||et(t)||t>1114111?Ee:t}return A===Re?Ee:A},A.prototype.consumeName=function(){var A="";while(1){var e=this.consumeCodePoint();if(lt(e))A+=c(e);else{if(!ut(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=c(this.consumeEscapedCodePoint())}}},A}(),Mt=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new Ot;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){var A=this.consumeToken();while(31===A.type)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){var A=[];while(1){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){var e={type:A,values:[]},t=this.consumeToken();while(1){if(32===t.type||zt(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){var e={name:A.value,values:[],type:18};while(1){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return"undefined"===typeof A?Lt:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),Tt=function(A){return 15===A.type},Kt=function(A){return 17===A.type},Nt=function(A){return 20===A.type},Pt=function(A){return 0===A.type},Rt=function(A,e){return Nt(A)&&A.value===e},Vt=function(A){return 31!==A.type},Gt=function(A){return 31!==A.type&&4!==A.type},jt=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},zt=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},Zt=function(A){return 17===A.type||15===A.type},Wt=function(A){return 16===A.type||Zt(A)},Xt=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Yt={type:17,number:0,flags:qA},Jt={type:16,number:50,flags:qA},$t={type:16,number:100,flags:qA},qt=function(A,e,t){var r=A[0],n=A[1];return[Ar(r,e),Ar("undefined"!==typeof n?n:r,t)]},Ar=function(A,e){if(16===A.type)return A.number/100*e;if(Tt(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},er="deg",tr="grad",rr="rad",nr="turn",ir={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case er:return Math.PI*e.number/180;case tr:return Math.PI/200*e.number;case rr:return e.number;case nr:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},or=function(A){return 15===A.type&&(A.unit===er||A.unit===tr||A.unit===rr||A.unit===nr)},sr=function(A){var e=A.filter(Nt).map((function(A){return A.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Yt,Yt];case"to top":case"bottom":return ar(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Yt,$t];case"to right":case"left":return ar(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$t,$t];case"to bottom":case"top":return ar(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$t,Yt];case"to left":case"right":return ar(270)}return 0},ar=function(A){return Math.PI*A/180},lr={name:"color",parse:function(A,e){if(18===e.type){var t=mr[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3);return dr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(4===e.value.length){r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3);var o=e.value.substring(3,4);return dr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===e.value.length){r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6);return dr(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(8===e.value.length){r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return dr(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(o,16)/255)}}if(20===e.type){var s=wr[e.value.toUpperCase()];if("undefined"!==typeof s)return s}return wr.TRANSPARENT}},cr=function(A){return 0===(255&A)},ur=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},dr=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},hr=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},gr=function(A,e){var t=e.filter(Gt);if(3===t.length){var r=t.map(hr),n=r[0],i=r[1],o=r[2];return dr(n,i,o,1)}if(4===t.length){var s=t.map(hr),a=(n=s[0],i=s[1],o=s[2],s[3]);return dr(n,i,o,a)}return 0};function pr(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var fr=function(A,e){var t=e.filter(Gt),r=t[0],n=t[1],i=t[2],o=t[3],s=(17===r.type?ar(r.number):ir.parse(A,r))/(2*Math.PI),a=Wt(n)?n.number/100:0,l=Wt(i)?i.number/100:0,c="undefined"!==typeof o&&Wt(o)?Ar(o,1):1;if(0===a)return dr(255*l,255*l,255*l,1);var u=l<=.5?l*(a+1):l+a-l*a,d=2*l-u,h=pr(d,u,s+1/3),g=pr(d,u,s),p=pr(d,u,s-1/3);return dr(255*h,255*g,255*p,c)},mr={hsl:fr,hsla:fr,rgb:gr,rgba:gr},Br=function(A,e){return lr.parse(A,Mt.create(e).parseComponentValue())},wr={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},vr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(Nt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Cr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},br=function(A,e){var t=lr.parse(A,e[0]),r=e[1];return r&&Wt(r)?{color:t,stop:r}:{color:t,stop:null}},yr=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=Yt),null===r.stop&&(r.stop=$t);for(var n=[],i=0,o=0;o<A.length;o++){var s=A[o].stop;if(null!==s){var a=Ar(s,e);a>i?n.push(a):n.push(i),i=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 u=o-l,d=n[l-1],h=(c-d)/(u+1),g=1;g<=u;g++)n[l+g-1]=h*g;l=null}}return A.map((function(A,t){var r=A.color;return{color:r,stop:Math.max(Math.min(1,n[t]/e),0)}}))},_r=function(A,e,t){var r=e/2,n=t/2,i=Ar(A[0],e)-r,o=n-Ar(A[1],t);return(Math.atan2(o,i)+2*Math.PI)%(2*Math.PI)},Qr=function(A,e,t){var r="number"===typeof A?A:_r(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),i=e/2,o=t/2,s=n/2,a=Math.sin(r-Math.PI/2)*s,l=Math.cos(r-Math.PI/2)*s;return[n,i-l,i+l,o-a,o+a]},Ur=function(A,e){return Math.sqrt(A*A+e*e)},Fr=function(A,e,t,r,n){var i=[[0,0],[0,e],[A,0],[A,e]];return i.reduce((function(A,e){var i=e[0],o=e[1],s=Ur(t-i,r-o);return(n?s<A.optimumDistance:s>A.optimumDistance)?{optimumCorner:e,optimumDistance:s}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},xr=function(A,e,t,r,n){var i=0,o=0;switch(A.size){case 0:0===A.shape?i=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(i=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(0===A.shape)i=o=Math.min(Ur(e,t),Ur(e,t-n),Ur(e-r,t),Ur(e-r,t-n));else if(1===A.shape){var s=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),a=Fr(r,n,e,t,!0),l=a[0],c=a[1];i=Ur(l-e,(c-t)/s),o=s*i}break;case 1:0===A.shape?i=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(i=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(0===A.shape)i=o=Math.max(Ur(e,t),Ur(e,t-n),Ur(e-r,t),Ur(e-r,t-n));else if(1===A.shape){s=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var u=Fr(r,n,e,t,!1);l=u[0],c=u[1];i=Ur(l-e,(c-t)/s),o=s*i}break}return Array.isArray(A.size)&&(i=Ar(A.size[0],r),o=2===A.size.length?Ar(A.size[1],n):i),[i,o]},Er=function(A,e){var t=ar(180),r=[];return jt(e).forEach((function(e,n){if(0===n){var i=e[0];if(20===i.type&&"to"===i.value)return void(t=sr(e));if(or(i))return void(t=ir.parse(A,i))}var o=br(A,e);r.push(o)})),{angle:t,stops:r,type:1}},kr=function(A,e){var t=ar(180),r=[];return jt(e).forEach((function(e,n){if(0===n){var i=e[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(t=sr(e));if(or(i))return void(t=(ir.parse(A,i)+ar(270))%ar(360))}var o=br(A,e);r.push(o)})),{angle:t,stops:r,type:1}},Ir=function(A,e){var t=ar(180),r=[],n=1,i=0,o=3,s=[];return jt(e).forEach((function(e,t){var i=e[0];if(0===t){if(Nt(i)&&"linear"===i.value)return void(n=1);if(Nt(i)&&"radial"===i.value)return void(n=2)}if(18===i.type)if("from"===i.name){var o=lr.parse(A,i.values[0]);r.push({stop:Yt,color:o})}else if("to"===i.name){o=lr.parse(A,i.values[0]);r.push({stop:$t,color:o})}else if("color-stop"===i.name){var s=i.values.filter(Gt);if(2===s.length){o=lr.parse(A,s[1]);var a=s[0];Kt(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===n?{angle:(t+ar(180))%ar(360),stops:r,type:n}:{size:o,shape:i,stops:r,position:s,type:n}},Hr="closest-side",Sr="farthest-side",Dr="closest-corner",Lr="farthest-corner",Or="circle",Mr="ellipse",Tr="cover",Kr="contain",Nr=function(A,e){var t=0,r=3,n=[],i=[];return jt(e).forEach((function(e,o){var s=!0;if(0===o){var a=!1;s=e.reduce((function(A,e){if(a)if(Nt(e))switch(e.value){case"center":return i.push(Jt),A;case"top":case"left":return i.push(Yt),A;case"right":case"bottom":return i.push($t),A}else(Wt(e)||Zt(e))&&i.push(e);else if(Nt(e))switch(e.value){case Or:return t=0,!1;case Mr:return t=1,!1;case"at":return a=!0,!1;case Hr:return r=0,!1;case Tr:case Sr:return r=1,!1;case Kr:case Dr:return r=2,!1;case Lr:return r=3,!1}else if(Zt(e)||Wt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),s)}if(s){var l=br(A,e);n.push(l)}})),{size:r,shape:t,stops:n,position:i,type:2}},Pr=function(A,e){var t=0,r=3,n=[],i=[];return jt(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(A,e){if(Nt(e))switch(e.value){case"center":return i.push(Jt),!1;case"top":case"left":return i.push(Yt),!1;case"right":case"bottom":return i.push($t),!1}else if(Wt(e)||Zt(e))return i.push(e),!1;return A}),s):1===o&&(s=e.reduce((function(A,e){if(Nt(e))switch(e.value){case Or:return t=0,!1;case Mr:return t=1,!1;case Kr:case Hr:return r=0,!1;case Sr:return r=1,!1;case Dr:return r=2,!1;case Tr:case Lr:return r=3,!1}else if(Zt(e)||Wt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),s)),s){var a=br(A,e);n.push(a)}})),{size:r,shape:t,stops:n,position:i,type:2}},Rr=function(A){return 1===A.type},Vr=function(A){return 2===A.type},Gr={name:"image",parse:function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=Zr[e.name];if("undefined"===typeof r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function jr(A){return!(20===A.type&&"none"===A.value)&&(18!==A.type||!!Zr[A.name])}var zr,Zr={"linear-gradient":Er,"-moz-linear-gradient":kr,"-ms-linear-gradient":kr,"-o-linear-gradient":kr,"-webkit-linear-gradient":kr,"radial-gradient":Nr,"-moz-radial-gradient":Pr,"-ms-radial-gradient":Pr,"-o-radial-gradient":Pr,"-webkit-radial-gradient":Pr,"-webkit-gradient":Ir},Wr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return Gt(A)&&jr(A)})).map((function(e){return Gr.parse(A,e)}))}},Xr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(Nt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Yr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return jt(e).map((function(A){return A.filter(Wt)})).map(Xt)}},Jr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return jt(e).map((function(A){return A.filter(Nt).map((function(A){return A.value})).join(" ")})).map($r)}},$r=function(A){switch(A){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(A){A["AUTO"]="auto",A["CONTAIN"]="contain",A["COVER"]="cover"})(zr||(zr={}));var qr,An={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return jt(e).map((function(A){return A.filter(en)}))}},en=function(A){return Nt(A)||Wt(A)},tn=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},rn=tn("top"),nn=tn("right"),on=tn("bottom"),sn=tn("left"),an=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Xt(e.filter(Wt))}}},ln=an("top-left"),cn=an("top-right"),un=an("bottom-right"),dn=an("bottom-left"),hn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){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(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Tt(e)?e.number:0}}},wn=Bn("top"),vn=Bn("right"),Cn=Bn("bottom"),bn=Bn("left"),yn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_n={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Qn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(Nt).reduce((function(A,e){return A|Un(e.value)}),0)}},Un=function(A){switch(A){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(A,e){switch(e){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(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};(function(A){A["NORMAL"]="normal",A["STRICT"]="strict"})(qr||(qr={}));var En,kn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return qr.STRICT;case"normal":default:return qr.NORMAL}}},In={name:"line-height",initialValue:"normal",prefix:!1,type:4},Hn=function(A,e){return Nt(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:Wt(A)?Ar(A,e):e},Sn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Gr.parse(A,e)}},Dn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Ln={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){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(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Mn=On("top"),Tn=On("right"),Kn=On("bottom"),Nn=On("left"),Pn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(Nt).map((function(A){switch(A.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(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Vn=function(A){return{name:"padding-"+A,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(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Xn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Yn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&Rt(e[0],"none")?[]:jt(e).map((function(e){for(var t={color:wr.TRANSPARENT,offsetX:Yt,offsetY:Yt,blur:Yt},r=0,n=0;n<e.length;n++){var i=e[n];Zt(i)?(0===r?t.offsetX=i:1===r?t.offsetY=i:t.blur=i,r++):t.color=lr.parse(A,i)}return t}))}},Jn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){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(A,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var t=ei[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},qn=function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===e.length?e:null},Ai=function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),t=e[0],r=e[1];e[2],e[3];var n=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],16===e.length?[t,r,n,i,o,s]:null},ei={matrix:qn,matrix3d:Ai},ti={type:16,number:50,flags:qA},ri=[ti,ti],ni={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(Wt);return 2!==t.length?ri:[t[0],t[1]]}},ii={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(A){A["NORMAL"]="normal",A["BREAK_ALL"]="break-all",A["KEEP_ALL"]="keep-all"})(En||(En={}));for(var oi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return En.BREAK_ALL;case"keep-all":return En.KEEP_ALL;case"normal":default:return En.NORMAL}}},si={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(Kt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},ai={name:"time",parse:function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},li={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Kt(e)?e.number:1}},ci={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ui={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(Nt).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},di={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach((function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}})),t.length&&r.push(t.join(" ")),r.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},hi={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},gi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){if(Kt(e))return e.number;if(Nt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},pi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(Nt).map((function(A){return A.value}))}},fi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},mi=function(A,e){return 0!==(A&e)},Bi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},wi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var r=[],n=e.filter(Vt),i=0;i<n.length;i++){var o=n[i],s=n[i+1];if(20===o.type){var a=s&&Kt(s)?s.number:1;r.push({counter:o.value,increment:a})}}return r}},vi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],r=e.filter(Vt),n=0;n<r.length;n++){var i=r[n],o=r[n+1];if(Nt(i)&&"none"!==i.value){var s=o&&Kt(o)?o.number:0;t.push({counter:i.value,reset:s})}}return t}},Ci={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Tt).map((function(e){return ai.parse(A,e)}))}},bi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var r=[],n=e.filter(Pt);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var o=n[i].value,s=n[i+1].value;r.push({open:o,close:s})}return r}},yi=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},_i={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&Rt(e[0],"none")?[]:jt(e).map((function(e){for(var t={color:255,offsetX:Yt,offsetY:Yt,blur:Yt,spread:Yt,inset:!1},r=0,n=0;n<e.length;n++){var i=e[n];Rt(i,"inset")?t.inset=!0:Zt(i)?(0===r?t.offsetX=i:1===r?t.offsetY=i:2===r?t.blur=i:t.spread=i,r++):t.color=lr.parse(A,i)}return t}))}},Qi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(Nt).forEach((function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}})),t.forEach((function(A){-1===r.indexOf(A)&&r.push(A)})),r}},Ui={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Fi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Tt(e)?e.number:0}},xi=function(){function A(A,e){var t,r;this.animationDuration=Ii(A,Ci,e.animationDuration),this.backgroundClip=Ii(A,vr,e.backgroundClip),this.backgroundColor=Ii(A,Cr,e.backgroundColor),this.backgroundImage=Ii(A,Wr,e.backgroundImage),this.backgroundOrigin=Ii(A,Xr,e.backgroundOrigin),this.backgroundPosition=Ii(A,Yr,e.backgroundPosition),this.backgroundRepeat=Ii(A,Jr,e.backgroundRepeat),this.backgroundSize=Ii(A,An,e.backgroundSize),this.borderTopColor=Ii(A,rn,e.borderTopColor),this.borderRightColor=Ii(A,nn,e.borderRightColor),this.borderBottomColor=Ii(A,on,e.borderBottomColor),this.borderLeftColor=Ii(A,sn,e.borderLeftColor),this.borderTopLeftRadius=Ii(A,ln,e.borderTopLeftRadius),this.borderTopRightRadius=Ii(A,cn,e.borderTopRightRadius),this.borderBottomRightRadius=Ii(A,un,e.borderBottomRightRadius),this.borderBottomLeftRadius=Ii(A,dn,e.borderBottomLeftRadius),this.borderTopStyle=Ii(A,gn,e.borderTopStyle),this.borderRightStyle=Ii(A,pn,e.borderRightStyle),this.borderBottomStyle=Ii(A,fn,e.borderBottomStyle),this.borderLeftStyle=Ii(A,mn,e.borderLeftStyle),this.borderTopWidth=Ii(A,wn,e.borderTopWidth),this.borderRightWidth=Ii(A,vn,e.borderRightWidth),this.borderBottomWidth=Ii(A,Cn,e.borderBottomWidth),this.borderLeftWidth=Ii(A,bn,e.borderLeftWidth),this.boxShadow=Ii(A,_i,e.boxShadow),this.color=Ii(A,yn,e.color),this.direction=Ii(A,_n,e.direction),this.display=Ii(A,Qn,e.display),this.float=Ii(A,Fn,e.cssFloat),this.fontFamily=Ii(A,di,e.fontFamily),this.fontSize=Ii(A,hi,e.fontSize),this.fontStyle=Ii(A,fi,e.fontStyle),this.fontVariant=Ii(A,pi,e.fontVariant),this.fontWeight=Ii(A,gi,e.fontWeight),this.letterSpacing=Ii(A,xn,e.letterSpacing),this.lineBreak=Ii(A,kn,e.lineBreak),this.lineHeight=Ii(A,In,e.lineHeight),this.listStyleImage=Ii(A,Sn,e.listStyleImage),this.listStylePosition=Ii(A,Dn,e.listStylePosition),this.listStyleType=Ii(A,Ln,e.listStyleType),this.marginTop=Ii(A,Mn,e.marginTop),this.marginRight=Ii(A,Tn,e.marginRight),this.marginBottom=Ii(A,Kn,e.marginBottom),this.marginLeft=Ii(A,Nn,e.marginLeft),this.opacity=Ii(A,li,e.opacity);var n=Ii(A,Pn,e.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Ii(A,Rn,e.overflowWrap),this.paddingTop=Ii(A,Gn,e.paddingTop),this.paddingRight=Ii(A,jn,e.paddingRight),this.paddingBottom=Ii(A,zn,e.paddingBottom),this.paddingLeft=Ii(A,Zn,e.paddingLeft),this.paintOrder=Ii(A,Qi,e.paintOrder),this.position=Ii(A,Xn,e.position),this.textAlign=Ii(A,Wn,e.textAlign),this.textDecorationColor=Ii(A,ci,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=Ii(A,ui,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=Ii(A,Yn,e.textShadow),this.textTransform=Ii(A,Jn,e.textTransform),this.transform=Ii(A,$n,e.transform),this.transformOrigin=Ii(A,ni,e.transformOrigin),this.visibility=Ii(A,ii,e.visibility),this.webkitTextStrokeColor=Ii(A,Ui,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ii(A,Fi,e.webkitTextStrokeWidth),this.wordBreak=Ii(A,oi,e.wordBreak),this.zIndex=Ii(A,si,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return cr(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return mi(this.display,4)||mi(this.display,33554432)||mi(this.display,268435456)||mi(this.display,536870912)||mi(this.display,67108864)||mi(this.display,134217728)},A}(),Ei=function(){function A(A,e){this.content=Ii(A,Bi,e.content),this.quotes=Ii(A,bi,e.quotes)}return A}(),ki=function(){function A(A,e){this.counterIncrement=Ii(A,wi,e.counterIncrement),this.counterReset=Ii(A,vi,e.counterReset)}return A}(),Ii=function(A,e,t){var r=new Ot,n=null!==t&&"undefined"!==typeof t?t.toString():e.initialValue;r.write(n);var i=new Mt(r.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(A,Nt(o)?o.value:e.initialValue);case 0:return e.parse(A,i.parseComponentValue());case 1:return e.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return ir.parse(A,i.parseComponentValue());case"color":return lr.parse(A,i.parseComponentValue());case"image":return Gr.parse(A,i.parseComponentValue());case"length":var s=i.parseComponentValue();return Zt(s)?s:Yt;case"length-percentage":var a=i.parseComponentValue();return Wt(a)?a:Yt;case"time":return ai.parse(A,i.parseComponentValue())}break}},Hi="data-html2canvas-debug",Si=function(A){var e=A.getAttribute(Hi);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Di=function(A,e){var t=Si(A);return 1===t||e===t},Li=function(){function A(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Di(e,3),this.styles=new xi(A,window.getComputedStyle(e,null)),ks(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=s(this.context,e),Di(e,4)&&(this.flags|=16)}return A}(),Oi="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Mi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ti="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Ki=0;Ki<Mi.length;Ki++)Ti[Mi.charCodeAt(Ki)]=Ki;for(var Ni=function(A){var e,t,r,n,i,o=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.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(e=0;e<s;e+=4)t=Ti[A.charCodeAt(e)],r=Ti[A.charCodeAt(e+1)],n=Ti[A.charCodeAt(e+2)],i=Ti[A.charCodeAt(e+3)],c[a++]=t<<2|r>>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&i;return l},Pi=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},Ri=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Vi=5,Gi=11,ji=2,zi=Gi-Vi,Zi=65536>>Vi,Wi=1<<Vi,Xi=Wi-1,Yi=1024>>Vi,Ji=Zi+Yi,$i=Ji,qi=32,Ao=$i+qi,eo=65536>>Gi,to=1<<zi,ro=to-1,no=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},io=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},oo=function(A,e){var t=Ni(A),r=Array.isArray(t)?Ri(t):new Uint32Array(t),n=Array.isArray(t)?Pi(t):new Uint16Array(t),i=24,o=no(n,i/2,r[4]/2),s=2===r[5]?no(n,(i+r[4])/2):io(r,Math.ceil((i+r[4])/4));return new so(r[0],r[1],r[2],r[3],o,s)},so=function(){function A(A,e,t,r,n,i){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Vi],e=(e<<ji)+(A&Xi),this.data[e];if(A<=65535)return e=this.index[Zi+(A-55296>>Vi)],e=(e<<ji)+(A&Xi),this.data[e];if(A<this.highStart)return e=Ao-eo+(A>>Gi),e=this.index[e],e+=A>>Vi&ro,e=this.index[e],e=(e<<ji)+(A&Xi),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),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,Co=10,bo=11,yo=12,_o=13,Qo=14,Uo=15,Fo=function(A){var e=[],t=0,r=A.length;while(t<r){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);56320===(64512&i)?e.push(((1023&n)<<10)+(1023&i)+65536):(e.push(n),t--)}else e.push(n)}return e},xo=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";var r=[],n=-1,i="";while(++n<t){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Eo=oo(Oi),ko="×",Io="÷",Ho=function(A){return Eo.get(A)},So=function(A,e,t){var r=t-2,n=e[r],i=e[t-1],o=e[t];if(i===go&&o===po)return ko;if(i===go||i===po||i===fo)return Io;if(o===go||o===po||o===fo)return Io;if(i===wo&&-1!==[wo,vo,bo,yo].indexOf(o))return ko;if((i===bo||i===vo)&&(o===vo||o===Co))return ko;if((i===yo||i===Co)&&o===Co)return ko;if(o===_o||o===mo)return ko;if(o===Bo)return ko;if(i===ho)return ko;if(i===_o&&o===Qo){while(n===mo)n=e[--r];if(n===Qo)return ko}if(i===Uo&&o===Uo){var s=0;while(n===Uo)s++,n=e[--r];if(s%2===0)return ko}return Io},Do=function(A){var e=Fo(A),t=e.length,r=0,n=0,i=e.map(Ho);return{next:function(){if(r>=t)return{done:!0,value:null};var A=ko;while(r<t&&(A=So(e,i,++r))===ko);if(A!==ko||r===t){var o=xo.apply(null,e.slice(n,r));return n=r,{value:o,done:!1}}return{done:!0,value:null}}}},Lo=function(A){var e,t=Do(A),r=[];while(!(e=t.next()).done)e.value&&r.push(e.value.slice());return r},Oo=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(A.body.removeChild(r),i===e)return!0}}return!1},Mo=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML="function"===typeof"".repeat?"👨".repeat(10):"";var r=e.firstChild,n=l(r.data).map((function(A){return c(A)})),i=0,o={},s=n.every((function(A,e){t.setStart(r,i),t.setEnd(r,i+A.length);var n=t.getBoundingClientRect();i+=A.length;var s=n.x>o.x||n.y>o.y;return o=n,0===e||s}));return A.body.removeChild(e),s},To=function(){return"undefined"!==typeof(new Image).crossOrigin},Ko=function(){return"string"===typeof(new XMLHttpRequest).responseType},No=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(je){return!1}return!0},Po=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Ro=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=e.toDataURL();n.src=i;var o=Vo(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Go(o).then((function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var o=A.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height=t+"px",Po(n)?Go(Vo(t,t,0,0,o)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),Po(r.getImageData(0,0,t,t).data)})).catch((function(){return!1}))},Vo=function(A,e,t,r,n){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(n),o},Go=function(A){return new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},jo={get SUPPORT_RANGE_BOUNDS(){var A=Oo(document);return Object.defineProperty(jo,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=jo.SUPPORT_RANGE_BOUNDS&&Mo(document);return Object.defineProperty(jo,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=No(document);return Object.defineProperty(jo,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?Ro(document):Promise.resolve(!1);return Object.defineProperty(jo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=To();return Object.defineProperty(jo,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Ko();return Object.defineProperty(jo,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(jo,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(jo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},zo=function(){function A(A,e){this.text=A,this.bounds=e}return A}(),Zo=function(A,e,t,r){var n=$o(e,t),i=[],s=0;return n.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(jo.SUPPORT_RANGE_BOUNDS){var n=Xo(r,s,e.length).getClientRects();if(n.length>1){var a=Yo(e),l=0;a.forEach((function(e){i.push(new zo(e,o.fromDOMRectList(A,Xo(r,l+s,e.length).getClientRects()))),l+=e.length}))}else i.push(new zo(e,o.fromDOMRectList(A,n)))}else{var c=r.splitText(e.length);i.push(new zo(e,Wo(A,r))),r=c}else jo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),i},Wo=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var i=s(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return o.EMPTY},Xo=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},Yo=function(A){if(jo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return Lo(A)},Jo=function(A,e){if(jo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return As(A,e)},$o=function(A,e){return 0!==e.letterSpacing?Yo(A):Jo(A,e)},qo=[32,160,4961,65792,65793,4153,4241],As=function(A,e){var t,r=YA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),n=[],i=function(){if(t.value){var A=t.value.slice(),e=l(A),r="";e.forEach((function(A){-1===qo.indexOf(A)?r+=c(A):(r.length&&n.push(r),n.push(c(A)),r="")})),r.length&&n.push(r)}};while(!(t=r.next()).done)i();return n},es=function(){function A(A,e,t){this.text=ts(e.data,t.textTransform),this.textBounds=Zo(A,this.text,t,e)}return A}(),ts=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(rs,ns);case 2:return A.toUpperCase();default:return A}},rs=/(^|\s|:|-|\(|\))([a-z])/g,ns=function(A,e,t){return A.length>0?e+t.toUpperCase():A},is=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return e(t,A),t}(Li),os=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return e(t,A),t}(Li),ss=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=new XMLSerializer,i=s(e,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(t,A),t}(Li),as=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Li),ls=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"===typeof t.reversed&&!0===t.reversed,r}return e(t,A),t}(Li),cs=[{type:15,flags:0,unit:"px",number:3}],us=[{type:16,flags:0,number:50}],ds=function(A){return A.width>A.height?new o(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new o(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},hs=function(A){var e=A.type===fs?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e},gs="checkbox",ps="radio",fs="password",ms=707406591,Bs=function(A){function t(e,t){var r=A.call(this,e,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=hs(t),r.type!==gs&&r.type!==ps||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=ds(r.bounds)),r.type){case gs:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=cs;break;case ps:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=us;break}return r}return e(t,A),t}(Li),ws=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=t.options[t.selectedIndex||0];return r.value=n&&n.text||"",r}return e(t,A),t}(Li),vs=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Li),Cs=function(A){function t(e,t){var r=A.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=Qs(e,t.contentWindow.document.documentElement);var n=t.contentWindow.document.documentElement?Br(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):wr.TRANSPARENT,i=t.contentWindow.document.body?Br(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):wr.TRANSPARENT;r.backgroundColor=cr(n)?cr(i)?r.styles.backgroundColor:i:n}}catch(je){}return r}return e(t,A),t}(Li),bs=["OL","UL","MENU"],ys=function(A,e,t,r){for(var n=e.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,xs(n)&&n.data.trim().length>0)t.textNodes.push(new es(A,n,t.styles));else if(Es(n))if(zs(n)&&n.assignedNodes)n.assignedNodes().forEach((function(e){return ys(A,e,t,r)}));else{var o=_s(A,n);o.styles.isVisible()&&(Us(n,o,r)?o.flags|=4:Fs(o.styles)&&(o.flags|=2),-1!==bs.indexOf(n.tagName)&&(o.flags|=8),t.elements.push(o),n.slot,n.shadowRoot?ys(A,n.shadowRoot,o,r):Gs(n)||Os(n)||js(n)||ys(A,n,o,r))}},_s=function(A,e){return Ns(e)?new is(A,e):Ts(e)?new os(A,e):Os(e)?new ss(A,e):Hs(e)?new as(A,e):Ss(e)?new ls(A,e):Ds(e)?new Bs(A,e):js(e)?new ws(A,e):Gs(e)?new vs(A,e):Ps(e)?new Cs(A,e):new Li(A,e)},Qs=function(A,e){var t=_s(A,e);return t.flags|=4,ys(A,e,t,t),t},Us=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ms(A)&&t.styles.isTransparent()},Fs=function(A){return A.isPositioned()||A.isFloating()},xs=function(A){return A.nodeType===Node.TEXT_NODE},Es=function(A){return A.nodeType===Node.ELEMENT_NODE},ks=function(A){return Es(A)&&"undefined"!==typeof A.style&&!Is(A)},Is=function(A){return"object"===typeof A.className},Hs=function(A){return"LI"===A.tagName},Ss=function(A){return"OL"===A.tagName},Ds=function(A){return"INPUT"===A.tagName},Ls=function(A){return"HTML"===A.tagName},Os=function(A){return"svg"===A.tagName},Ms=function(A){return"BODY"===A.tagName},Ts=function(A){return"CANVAS"===A.tagName},Ks=function(A){return"VIDEO"===A.tagName},Ns=function(A){return"IMG"===A.tagName},Ps=function(A){return"IFRAME"===A.tagName},Rs=function(A){return"STYLE"===A.tagName},Vs=function(A){return"SCRIPT"===A.tagName},Gs=function(A){return"TEXTAREA"===A.tagName},js=function(A){return"SELECT"===A.tagName},zs=function(A){return"SLOT"===A.tagName},Zs=function(A){return A.tagName.indexOf("-")>0},Ws=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,n=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var i=[];return n&&r.forEach((function(A){var t=e.counters[A.counter];i.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),i},A}(),Xs={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"]},Ys={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(A,e,t,r,n,i){return A<e||A>t?da(A,n,i.length>0):r.integers.reduce((function(e,t,n){while(A>=t)A-=t,e+=r.values[n];return e}),"")+i},Aa=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},ea=function(A,e,t,r,n){var i=t-e+1;return(A<0?"-":"")+(Aa(Math.abs(A),i,r,(function(A){return c(Math.floor(A%i)+e)}))+n)},ta=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return Aa(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},ra=1,na=2,ia=4,oa=8,sa=function(A,e,t,r,n,i){if(A<-9999||A>9999)return da(A,4,n.length>0);var o=Math.abs(A),s=n;if(0===o)return e[0]+s;for(var a=0;o>0&&a<=4;a++){var l=o%10;0===l&&mi(i,ra)&&""!==s?s=e[l]+s:l>1||1===l&&0===a||1===l&&1===a&&mi(i,na)||1===l&&1===a&&mi(i,ia)&&A>100||1===l&&a>1&&mi(i,oa)?s=e[l]+(a>0?t[a-1]:"")+s:1===l&&a>0&&(s=t[a-1]+s),o=Math.floor(o/10)}return(A<0?r:"")+s},aa="十百千萬",la="拾佰仟萬",ca="マイナス",ua="마이너스",da=function(A,e,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=ea(A,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return ta(A,"〇一二三四五六七八九",n);case 6:return qs(A,1,3999,Xs,3,r).toLowerCase();case 7:return qs(A,1,3999,Xs,3,r);case 8:return ea(A,945,969,!1,r);case 9:return ea(A,97,122,!1,r);case 10:return ea(A,65,90,!1,r);case 11:return ea(A,1632,1641,!0,r);case 12:case 49:return qs(A,1,9999,Ys,3,r);case 35:return qs(A,1,9999,Ys,3,r).toLowerCase();case 13:return ea(A,2534,2543,!0,r);case 14:case 30:return ea(A,6112,6121,!0,r);case 15:return ta(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return ta(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return sa(A,"零一二三四五六七八九",aa,"負",n,na|ia|oa);case 47:return sa(A,"零壹貳參肆伍陸柒捌玖",la,"負",n,ra|na|ia|oa);case 42:return sa(A,"零一二三四五六七八九",aa,"负",n,na|ia|oa);case 41:return sa(A,"零壹贰叁肆伍陆柒捌玖",la,"负",n,ra|na|ia|oa);case 26:return sa(A,"〇一二三四五六七八九","十百千万",ca,n,0);case 25:return sa(A,"零壱弐参四伍六七八九","拾百千万",ca,n,ra|na|ia);case 31:return sa(A,"영일이삼사오육칠팔구","십백천만",ua,i,ra|na|ia);case 33:return sa(A,"零一二三四五六七八九","十百千萬",ua,i,0);case 32:return sa(A,"零壹貳參四五六七八九","拾百千",ua,i,ra|na|ia);case 18:return ea(A,2406,2415,!0,r);case 20:return qs(A,1,19999,$s,3,r);case 21:return ea(A,2790,2799,!0,r);case 22:return ea(A,2662,2671,!0,r);case 22:return qs(A,1,10999,Js,3,r);case 23:return ta(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ta(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ea(A,3302,3311,!0,r);case 28:return ta(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return ta(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return ea(A,3792,3801,!0,r);case 37:return ea(A,6160,6169,!0,r);case 38:return ea(A,4160,4169,!0,r);case 39:return ea(A,2918,2927,!0,r);case 40:return ea(A,1776,1785,!0,r);case 43:return ea(A,3046,3055,!0,r);case 44:return ea(A,3174,3183,!0,r);case 45:return ea(A,3664,3673,!0,r);case 46:return ea(A,3872,3881,!0,r);case 3:default:return ea(A,48,57,!0,r)}},ha="data-html2canvas-ignore",ga=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ws,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,i=fa(A,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=i.contentWindow,l=a.document,c=wa(i).then((function(){return r(t,void 0,void 0,(function(){var A,t;return n(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(_a),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),A=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:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ba(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"===typeof A?[2,Promise.resolve().then((function(){return A(l,t)})).then((function(){return i}))]:[2,i]}}))}))}));return l.open(),l.write(ba(document.doctype)+"<html></html>"),ya(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},A.prototype.createElementClone=function(A){if(Di(A,2),Ts(A))return this.createCanvasClone(A);if(Ks(A))return this.createVideoClone(A);if(Rs(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Ns(e)&&(Ns(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Zs(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Ca(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"===typeof e.cssText?A+e.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(je){if(this.context.logger.error("Unable to access cssRules property",je),"SecurityError"!==je.name)throw je}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(je){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&n)i.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var o=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.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",A)}i.drawImage(A,0,0)}return r}catch(je){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(je){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){Es(e)&&(Vs(e)||e.hasAttribute(ha)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Es(e)&&Rs(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(Es(n)&&zs(n)&&"function"===typeof n.assignedNodes){var i=n.assignedNodes();i.length&&i.forEach((function(A){return r.appendChildNode(e,A,t)}))}else this.appendChildNode(e,n,t)},A.prototype.cloneNode=function(A,e){if(xs(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Es(A)&&(ks(A)||Is(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&ks(r)&&(this.clonedReferenceElement=r),Ms(r)&&ka(r);var s=this.counters.parse(new ki(this.context,n)),a=this.resolvePseudoContent(A,r,i,uo.BEFORE);Zs(A)&&(e=!0),Ks(A)||this.cloneChildNodes(A,r,e),a&&r.insertBefore(a,r.firstChild);var l=this.resolvePseudoContent(A,r,o,uo.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(n&&(this.options.copyStyles||Is(A))&&!Ps(A)||e)&&Ca(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Gs(A)||js(A))&&(Gs(r)||js(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var i=t.content,o=e.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==t.display){this.counters.parse(new ki(this.context,t));var s=new Ei(this.context,t),a=o.createElement("html2canvaspseudoelement");Ca(t,a),s.content.forEach((function(e){if(0===e.type)a.appendChild(o.createTextNode(e.value));else if(22===e.type){var t=o.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(Nt);r.length&&a.appendChild(o.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(Gt),l=i[0],c=i[1];if(l&&Nt(l)){var u=n.counters.getCounterValue(l.value),d=c&&Nt(c)?Ln.parse(n.context,c.value):3;a.appendChild(o.createTextNode(da(u,d,!1)))}}else if("counters"===e.name){var h=e.values.filter(Gt),g=(l=h[0],h[1]);c=h[2];if(l&&Nt(l)){var p=n.counters.getCounterValues(l.value),f=c&&Nt(c)?Ln.parse(n.context,c.value):3,m=g&&0===g.type?g.value:"",B=p.map((function(A){return da(A,f,!1)})).join(m);a.appendChild(o.createTextNode(B))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(o.createTextNode(yi(s.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(yi(s.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(e.value))}})),a.className=Fa+" "+xa;var l=r===uo.BEFORE?" "+Fa:" "+xa;return Is(e)?e.className.baseValue+=l:e.className+=l,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();(function(A){A[A["BEFORE"]=0]="BEFORE",A[A["AFTER"]=1]="AFTER"})(uo||(uo={}));var pa,fa=function(A,e){var t=A.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=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(ha,"true"),A.body.appendChild(t),t},ma=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},Ba=function(A){return Promise.all([].slice.call(A.images,0).map(ma))},wa=function(A){return new Promise((function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))}),50)}}))},va=["all","d","content"],Ca=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===va.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},ba=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},ya=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},_a=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},Qa=":before",Ua=":after",Fa="___html2canvas___pseudoelement_before",xa="___html2canvas___pseudoelement_after",Ea='{\n content: "" !important;\n display: none !important;\n}',ka=function(A){Ia(A,"."+Fa+Qa+Ea+"\n ."+xa+Ua+Ea)},Ia=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Ha=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),Sa=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Na(A)||Ma(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,(function(){var e,t,r,i,o=this;return n(this,(function(n){switch(n.label){case 0:return e=Ha.isSameOrigin(A),t=!Ta(A)&&!0===this._options.useCORS&&jo.SUPPORT_CORS_IMAGES&&!e,r=!Ta(A)&&!e&&!Na(A)&&"string"===typeof this._options.proxy&&jo.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||Ta(A)||Na(A)||r||t?(i=A,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(Ka(i)||t)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return A(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},A.prototype.has=function(A){return"undefined"!==typeof this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(n,i){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 A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return i(A)}),!1),A.readAsDataURL(s.response)}else i("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=i;var a=t.indexOf("?")>-1?"&":"?";if(s.open("GET",""+t+a+"url="+encodeURIComponent(A)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return i("Timed out ("+l+"ms) proxying "+r)}}s.send()}))},A}(),Da=/^data:image\/svg\+xml/i,La=/^data:image\/.*;base64,/i,Oa=/^data:image\/.*/i,Ma=function(A){return jo.SUPPORT_SVG_DRAWING||!Pa(A)},Ta=function(A){return Oa.test(A)},Ka=function(A){return La.test(A)},Na=function(A){return"blob"===A.substr(0,4)},Pa=function(A){return"svg"===A.substr(-3).toLowerCase()||Da.test(A)},Ra=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Va=function(A,e,t){return new Ra(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Ga=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=Va(this.start,this.startControl,e),n=Va(this.startControl,this.endControl,e),i=Va(this.endControl,this.end,e),o=Va(r,n,e),s=Va(n,i,e),a=Va(o,s,e);return t?new A(this.start,r,o,a):new A(a,s,i,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),ja=function(A){return 1===A.type},za=function(){function A(A){var e=A.styles,t=A.bounds,r=qt(e.borderTopLeftRadius,t.width,t.height),n=r[0],i=r[1],o=qt(e.borderTopRightRadius,t.width,t.height),s=o[0],a=o[1],l=qt(e.borderBottomRightRadius,t.width,t.height),c=l[0],u=l[1],d=qt(e.borderBottomLeftRadius,t.width,t.height),h=d[0],g=d[1],p=[];p.push((n+s)/t.width),p.push((h+c)/t.width),p.push((i+g)/t.height),p.push((a+u)/t.height);var f=Math.max.apply(Math,p);f>1&&(n/=f,i/=f,s/=f,a/=f,c/=f,u/=f,h/=f,g/=f);var m=t.width-s,B=t.height-u,w=t.width-c,v=t.height-g,C=e.borderTopWidth,b=e.borderRightWidth,y=e.borderBottomWidth,_=e.borderLeftWidth,Q=Ar(e.paddingTop,A.bounds.width),U=Ar(e.paddingRight,A.bounds.width),F=Ar(e.paddingBottom,A.bounds.width),x=Ar(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||i>0?Za(t.left+_/3,t.top+C/3,n-_/3,i-C/3,pa.TOP_LEFT):new Ra(t.left+_/3,t.top+C/3),this.topRightBorderDoubleOuterBox=n>0||i>0?Za(t.left+m,t.top+C/3,s-b/3,a-C/3,pa.TOP_RIGHT):new Ra(t.left+t.width-b/3,t.top+C/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Za(t.left+w,t.top+B,c-b/3,u-y/3,pa.BOTTOM_RIGHT):new Ra(t.left+t.width-b/3,t.top+t.height-y/3),this.bottomLeftBorderDoubleOuterBox=h>0||g>0?Za(t.left+_/3,t.top+v,h-_/3,g-y/3,pa.BOTTOM_LEFT):new Ra(t.left+_/3,t.top+t.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||i>0?Za(t.left+2*_/3,t.top+2*C/3,n-2*_/3,i-2*C/3,pa.TOP_LEFT):new Ra(t.left+2*_/3,t.top+2*C/3),this.topRightBorderDoubleInnerBox=n>0||i>0?Za(t.left+m,t.top+2*C/3,s-2*b/3,a-2*C/3,pa.TOP_RIGHT):new Ra(t.left+t.width-2*b/3,t.top+2*C/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Za(t.left+w,t.top+B,c-2*b/3,u-2*y/3,pa.BOTTOM_RIGHT):new Ra(t.left+t.width-2*b/3,t.top+t.height-2*y/3),this.bottomLeftBorderDoubleInnerBox=h>0||g>0?Za(t.left+2*_/3,t.top+v,h-2*_/3,g-2*y/3,pa.BOTTOM_LEFT):new Ra(t.left+2*_/3,t.top+t.height-2*y/3),this.topLeftBorderStroke=n>0||i>0?Za(t.left+_/2,t.top+C/2,n-_/2,i-C/2,pa.TOP_LEFT):new Ra(t.left+_/2,t.top+C/2),this.topRightBorderStroke=n>0||i>0?Za(t.left+m,t.top+C/2,s-b/2,a-C/2,pa.TOP_RIGHT):new Ra(t.left+t.width-b/2,t.top+C/2),this.bottomRightBorderStroke=c>0||u>0?Za(t.left+w,t.top+B,c-b/2,u-y/2,pa.BOTTOM_RIGHT):new Ra(t.left+t.width-b/2,t.top+t.height-y/2),this.bottomLeftBorderStroke=h>0||g>0?Za(t.left+_/2,t.top+v,h-_/2,g-y/2,pa.BOTTOM_LEFT):new Ra(t.left+_/2,t.top+t.height-y/2),this.topLeftBorderBox=n>0||i>0?Za(t.left,t.top,n,i,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||u>0?Za(t.left+w,t.top+B,c,u,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||i>0?Za(t.left+_,t.top+C,Math.max(0,n-_),Math.max(0,i-C),pa.TOP_LEFT):new Ra(t.left+_,t.top+C),this.topRightPaddingBox=s>0||a>0?Za(t.left+Math.min(m,t.width-b),t.top+C,m>t.width+b?0:Math.max(0,s-b),Math.max(0,a-C),pa.TOP_RIGHT):new Ra(t.left+t.width-b,t.top+C),this.bottomRightPaddingBox=c>0||u>0?Za(t.left+Math.min(w,t.width-_),t.top+Math.min(B,t.height-y),Math.max(0,c-b),Math.max(0,u-y),pa.BOTTOM_RIGHT):new Ra(t.left+t.width-b,t.top+t.height-y),this.bottomLeftPaddingBox=h>0||g>0?Za(t.left+_,t.top+Math.min(v,t.height-y),Math.max(0,h-_),Math.max(0,g-y),pa.BOTTOM_LEFT):new Ra(t.left+_,t.top+t.height-y),this.topLeftContentBox=n>0||i>0?Za(t.left+_+x,t.top+C+Q,Math.max(0,n-(_+x)),Math.max(0,i-(C+Q)),pa.TOP_LEFT):new Ra(t.left+_+x,t.top+C+Q),this.topRightContentBox=s>0||a>0?Za(t.left+Math.min(m,t.width+_+x),t.top+C+Q,m>t.width+_+x?0:s-_+x,a-(C+Q),pa.TOP_RIGHT):new Ra(t.left+t.width-(b+U),t.top+C+Q),this.bottomRightContentBox=c>0||u>0?Za(t.left+Math.min(w,t.width-(_+x)),t.top+Math.min(B,t.height+C+Q),Math.max(0,c-(b+U)),u-(y+F),pa.BOTTOM_RIGHT):new Ra(t.left+t.width-(b+U),t.top+t.height-(y+F)),this.bottomLeftContentBox=h>0||g>0?Za(t.left+_+x,t.top+v,Math.max(0,h-(_+x)),g-(y+F),pa.BOTTOM_LEFT):new Ra(t.left+_+x,t.top+t.height-(y+F))}return A}();(function(A){A[A["TOP_LEFT"]=0]="TOP_LEFT",A[A["TOP_RIGHT"]=1]="TOP_RIGHT",A[A["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",A[A["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(pa||(pa={}));var Za=function(A,e,t,r,n){var i=(Math.sqrt(2)-1)/3*4,o=t*i,s=r*i,a=A+t,l=e+r;switch(n){case pa.TOP_LEFT:return new Ga(new Ra(A,l),new Ra(A,l-s),new Ra(a-o,e),new Ra(a,e));case pa.TOP_RIGHT:return new Ga(new Ra(A,e),new Ra(A+o,e),new Ra(a,l-s),new Ra(a,l));case pa.BOTTOM_RIGHT:return new Ga(new Ra(a,e),new Ra(a,e+s),new Ra(A+o,l),new Ra(A,l));case pa.BOTTOM_LEFT:default:return new Ga(new Ra(a,l),new Ra(a-o,l),new Ra(A,e+s),new Ra(A,e))}},Wa=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Xa=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Ya=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Ja=function(){function A(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return A}(),$a=function(){function A(A,e){this.path=A,this.target=e,this.type=1}return A}(),qa=function(){function A(A){this.opacity=A,this.type=2,this.target=6}return A}(),Al=function(A){return 0===A.type},el=function(A){return 1===A.type},tl=function(A){return 2===A.type},rl=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},nl=function(A,e,t,r,n){return A.map((function(A,i){switch(i){case 0:return A.add(e,t);case 1:return A.add(e+r,t);case 2:return A.add(e+r,t+n);case 3:return A.add(e,t+n)}return A}))},il=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),ol=function(){function A(A,e){if(this.container=A,this.parent=e,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,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Ja(t,r,n))}if(0!==this.container.styles.overflowX){var i=Wa(this.curves),o=Ya(this.curves);rl(i,o)?this.effects.push(new $a(i,6)):(this.effects.push(new $a(i,2)),this.effects.push(new $a(o,4)))}}return A.prototype.getEffects=function(A){var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);while(t){var n=t.effects.filter((function(A){return!el(A)}));if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,n),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var i=Wa(t.curves),o=Ya(t.curves);rl(i,o)||r.unshift(new $a(o,6))}}else r.unshift.apply(r,n);t=t.parent}return r.filter((function(e){return mi(e.target,A)}))},A}(),sl=function(A,e,t,r){A.container.elements.forEach((function(n){var i=mi(n.flags,4),o=mi(n.flags,2),s=new ol(n,A);mi(n.styles.display,2048)&&r.push(s);var a=mi(n.flags,8)?[]:r;if(i||o){var l=i||n.styles.isPositioned()?t:e,c=new il(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var u=n.styles.zIndex.order;if(u<0){var d=0;l.negativeZIndex.some((function(A,e){return u>A.element.container.styles.zIndex.order?(d=e,!1):d>0})),l.negativeZIndex.splice(d,0,c)}else if(u>0){var h=0;l.positiveZIndex.some((function(A,e){return u>=A.element.container.styles.zIndex.order?(h=e+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,i?c:t,a)}else n.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),sl(s,e,t,a);mi(n.flags,8)&&al(n,a)}))},al=function(A,e){for(var t=A instanceof ls?A.start:1,r=A instanceof ls&&A.reversed,n=0;n<e.length;n++){var i=e[n];i.container instanceof as&&"number"===typeof i.container.value&&0!==i.container.value&&(t=i.container.value),i.listValue=da(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},ll=function(A){var e=new ol(A,null),t=new il(e),r=[];return sl(e,t,t,r),al(e.container,r),t},cl=function(A,e){switch(e){case 0:return pl(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return pl(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return pl(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return pl(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},ul=function(A,e){switch(e){case 0:return pl(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return pl(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return pl(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return pl(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},dl=function(A,e){switch(e){case 0:return pl(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return pl(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return pl(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return pl(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},hl=function(A,e){switch(e){case 0:return gl(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return gl(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return gl(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return gl(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},gl=function(A,e){var t=[];return ja(A)?t.push(A.subdivide(.5,!1)):t.push(A),ja(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},pl=function(A,e,t,r){var n=[];return ja(A)?n.push(A.subdivide(.5,!1)):n.push(A),ja(t)?n.push(t.subdivide(.5,!0)):n.push(t),ja(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),ja(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},fl=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},ml=function(A){var e=A.styles,t=A.bounds,r=Ar(e.paddingLeft,t.width),n=Ar(e.paddingRight,t.width),i=Ar(e.paddingTop,t.width),o=Ar(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+i+o))},Bl=function(A,e){return 0===A?e.bounds:2===A?ml(e):fl(e)},wl=function(A,e){return 0===A?e.bounds:2===A?ml(e):fl(e)},vl=function(A,e,t){var r=Bl(_l(A.styles.backgroundOrigin,e),A),n=wl(_l(A.styles.backgroundClip,e),A),i=yl(_l(A.styles.backgroundSize,e),t,r),o=i[0],s=i[1],a=qt(_l(A.styles.backgroundPosition,e),r.width-o,r.height-s),l=Ql(_l(A.styles.backgroundRepeat,e),a,i,r,n),c=Math.round(r.left+a[0]),u=Math.round(r.top+a[1]);return[l,c,u,o,s]},Cl=function(A){return Nt(A)&&A.value===zr.AUTO},bl=function(A){return"number"===typeof A},yl=function(A,e,t){var r=e[0],n=e[1],i=e[2],o=A[0],s=A[1];if(!o)return[0,0];if(Wt(o)&&s&&Wt(s))return[Ar(o,t.width),Ar(s,t.height)];var a=bl(i);if(Nt(o)&&(o.value===zr.CONTAIN||o.value===zr.COVER)){if(bl(i)){var l=t.width/t.height;return l<i!==(o.value===zr.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var c=bl(r),u=bl(n),d=c||u;if(Cl(o)&&(!s||Cl(s))){if(c&&u)return[r,n];if(!a&&!d)return[t.width,t.height];if(d&&a){var h=c?r:n*i,g=u?n:r/i;return[h,g]}var p=c?r:t.width,f=u?n:t.height;return[p,f]}if(a){var m=0,B=0;return Wt(o)?m=Ar(o,t.width):Wt(s)&&(B=Ar(s,t.height)),Cl(o)?m=B*i:s&&!Cl(s)||(B=m/i),[m,B]}var w=null,v=null;if(Wt(o)?w=Ar(o,t.width):s&&Wt(s)&&(v=Ar(s,t.height)),null===w||s&&!Cl(s)||(v=c&&u?w/r*n:t.height),null!==v&&Cl(o)&&(w=c&&u?v/n*r:t.width),null!==w&&null!==v)return[w,v];throw new Error("Unable to calculate background-size for element")},_l=function(A,e){var t=A[e];return"undefined"===typeof t?A[0]:t},Ql=function(A,e,t,r,n){var i=e[0],o=e[1],s=t[0],a=t[1];switch(A){case 2:return[new Ra(Math.round(r.left),Math.round(r.top+o)),new Ra(Math.round(r.left+r.width),Math.round(r.top+o)),new Ra(Math.round(r.left+r.width),Math.round(a+r.top+o)),new Ra(Math.round(r.left),Math.round(a+r.top+o))];case 3:return[new Ra(Math.round(r.left+i),Math.round(r.top)),new Ra(Math.round(r.left+i+s),Math.round(r.top)),new Ra(Math.round(r.left+i+s),Math.round(r.height+r.top)),new Ra(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new Ra(Math.round(r.left+i),Math.round(r.top+o)),new Ra(Math.round(r.left+i+s),Math.round(r.top+o)),new Ra(Math.round(r.left+i+s),Math.round(r.top+o+a)),new Ra(Math.round(r.left+i),Math.round(r.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 A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),i=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",i.appendChild(t),r.src=Ul,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Fl)),t.appendChild(n),t.appendChild(r);var o=r.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(Fl)),t.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-t.offsetTop+2;return i.removeChild(t),{baseline:o,middle:s}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return"undefined"===typeof this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),El=function(){function A(A,e){this.context=A,this.options=e}return A}(),kl=1e4,Il=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r._activeEffects=[],r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),t.canvas||(r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px"),r.fontMetrics=new xl(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),r}return e(t,A),t.prototype.applyEffects=function(A){var e=this;while(this._activeEffects.length)this.popEffect();A.forEach((function(A){return e.applyEffect(A)}))},t.prototype.applyEffect=function(A){this.ctx.save(),tl(A)&&(this.ctx.globalAlpha=A.opacity),Al(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),el(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return r(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return e=A.element.container.styles,e.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.renderNode=function(A){return r(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return mi(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},t.prototype.renderTextWithLetterSpacing=function(A,e,t){var r=this;if(0===e)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t);else{var n=Yo(A.text);n.reduce((function(e,n){return r.ctx.fillText(n,e,A.bounds.top+t),e+r.ctx.measureText(n).width}),A.bounds.left)}},t.prototype.createFontStyle=function(A){var e=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),t=Ol(A.fontFamily).join(", "),r=Tt(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},t.prototype.renderTextNode=function(A,e){return r(this,void 0,void 0,(function(){var t,r,i,o,s,a,l,c,u=this;return n(this,(function(n){return t=this.createFontStyle(e),r=t[0],i=t[1],o=t[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(i,o),a=s.baseline,l=s.middle,c=e.paintOrder,A.textBounds.forEach((function(A){c.forEach((function(t){switch(t){case 0:u.ctx.fillStyle=ur(e.color),u.renderTextWithLetterSpacing(A,e.letterSpacing,a);var r=e.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach((function(t){u.ctx.shadowColor=ur(t.color),u.ctx.shadowOffsetX=t.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=t.offsetY.number*u.options.scale,u.ctx.shadowBlur=t.blur.number,u.renderTextWithLetterSpacing(A,e.letterSpacing,a)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),e.textDecorationLine.length&&(u.ctx.fillStyle=ur(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:u.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+a),A.bounds.width,1);break;case 2:u.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:u.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+l),A.bounds.width,1);break}})));break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(u.ctx.strokeStyle=ur(e.webkitTextStrokeColor),u.ctx.lineWidth=e.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+a)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}}))})),[2]}))}))},t.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=ml(A),n=Ya(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,(function(){var e,r,i,s,a,l,c,u,d,h,g,p,f,m,B,w,v,C,b;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,r=A.curves,i=e.styles,s=0,a=e.textNodes,n.label=1;case 1:return s<a.length?(l=a[s],[4,this.renderTextNode(l,i)]):[3,4];case 2:n.sent(),n.label=3;case 3:return s++,[3,1];case 4:if(!(e instanceof is))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return w=n.sent(),this.renderReplacedElement(e,r,w),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof os&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof ss))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return w=n.sent(),this.renderReplacedElement(e,r,w),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof Cs&&e.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}),[4,c.render(e.tree)]):[3,14];case 13:u=n.sent(),e.width&&e.height&&this.ctx.drawImage(u,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),n.label=14;case 14:if(e instanceof Bs&&(d=Math.min(e.bounds.width,e.bounds.height),e.type===gs?e.checked&&(this.ctx.save(),this.path([new Ra(e.bounds.left+.39363*d,e.bounds.top+.79*d),new Ra(e.bounds.left+.16*d,e.bounds.top+.5549*d),new Ra(e.bounds.left+.27347*d,e.bounds.top+.44071*d),new Ra(e.bounds.left+.39694*d,e.bounds.top+.5649*d),new Ra(e.bounds.left+.72983*d,e.bounds.top+.23*d),new Ra(e.bounds.left+.84*d,e.bounds.top+.34085*d),new Ra(e.bounds.left+.39363*d,e.bounds.top+.79*d)]),this.ctx.fillStyle=ur(ms),this.ctx.fill(),this.ctx.restore()):e.type===ps&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+d/2,e.bounds.top+d/2,d/4,0,2*Math.PI,!0),this.ctx.fillStyle=ur(ms),this.ctx.fill(),this.ctx.restore())),Hl(e)&&e.value.length){switch(h=this.createFontStyle(i),C=h[0],g=h[1],p=this.fontMetrics.getMetrics(C,g).baseline,this.ctx.font=C,this.ctx.fillStyle=ur(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Dl(e.styles.textAlign),b=ml(e),f=0,e.styles.textAlign){case 1:f+=b.width/2;break;case 2:f+=b.width;break}m=b.add(f,0,0,-b.height/2+1),this.ctx.save(),this.path([new Ra(b.left,b.top),new Ra(b.left+b.width,b.top),new Ra(b.left+b.width,b.top+b.height),new Ra(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new zo(e.value,m),i.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!mi(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(B=e.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,e.bounds.left-(w.width+10),e.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:A.listValue&&-1!==e.styles.listStyleType&&(C=this.createFontStyle(i)[0],this.ctx.font=C,this.ctx.fillStyle=ur(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new o(e.bounds.left,e.bounds.top+Ar(e.styles.paddingTop,e.bounds.width),e.bounds.width,Hn(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new zo(A.listValue,b),i.letterSpacing,Hn(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},t.prototype.renderStackContent=function(A){return r(this,void 0,void 0,(function(){var e,t,r,i,o,s,a,l,c,u,d,h,g,p,f;return n(this,(function(n){switch(n.label){case 0:return mi(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),e=0,t=A.negativeZIndex,n.label=2;case 2:return e<t.length?(f=t[e],[4,this.renderStack(f)]):[3,5];case 3:n.sent(),n.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),r=0,i=A.nonInlineLevel,n.label=7;case 7:return r<i.length?(f=i[r],[4,this.renderNode(f)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:o=0,s=A.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=A.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,u=A.inlineLevel,n.label=19;case 19:return c<u.length?(f=u[c],[4,this.renderNode(f)]):[3,22];case 20:n.sent(),n.label=21;case 21:return c++,[3,19];case 22:d=0,h=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return d<h.length?(f=h[d],[4,this.renderStack(f)]):[3,26];case 24:n.sent(),n.label=25;case 25:return d++,[3,23];case 26:g=0,p=A.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(A){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(A.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},t.prototype.formatPath=function(A){var e=this;A.forEach((function(A,t){var r=ja(A)?A.start:A;0===t?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),ja(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},t.prototype.renderRepeat=function(A,e,t,r){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,r),this.ctx.fill(),this.ctx.translate(-t,-r)},t.prototype.resizeImage=function(A,e,t){var r;if(A.width===e&&A.height===t)return A;var n=null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document,i=n.createElement("canvas");i.width=Math.max(1,e),i.height=Math.max(1,t);var o=i.getContext("2d");return o.drawImage(A,0,0,A.width,A.height,0,0,e,t),i},t.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,(function(){var e,t,r,i,o,s;return n(this,(function(a){switch(a.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var i,o,s,a,l,c,u,d,h,g,p,f,m,B,w,v,C,b,y,_,Q,U,F,x,E,k,I,H,S,D,L;return n(this,(function(n){switch(n.label){case 0:if(0!==t.type)return[3,5];i=void 0,o=t.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return i=n.sent(),[3,4];case 3:return n.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return i&&(s=vl(A,e,[i.width,i.height,i.width/i.height]),v=s[0],U=s[1],F=s[2],y=s[3],_=s[4],B=r.ctx.createPattern(r.resizeImage(i,y,_),"repeat"),r.renderRepeat(v,B,U,F)),[3,6];case 5:Rr(t)?(a=vl(A,e,[null,null,null]),v=a[0],U=a[1],F=a[2],y=a[3],_=a[4],l=Qr(t.angle,y,_),c=l[0],u=l[1],d=l[2],h=l[3],g=l[4],p=document.createElement("canvas"),p.width=y,p.height=_,f=p.getContext("2d"),m=f.createLinearGradient(u,h,d,g),yr(t.stops,c).forEach((function(A){return m.addColorStop(A.stop,ur(A.color))})),f.fillStyle=m,f.fillRect(0,0,y,_),y>0&&_>0&&(B=r.ctx.createPattern(p,"repeat"),r.renderRepeat(v,B,U,F))):Vr(t)&&(w=vl(A,e,[null,null,null]),v=w[0],C=w[1],b=w[2],y=w[3],_=w[4],Q=0===t.position.length?[Jt]:t.position,U=Ar(Q[0],y),F=Ar(Q[Q.length-1],_),x=xr(t,U,F,y,_),E=x[0],k=x[1],E>0&&k>0&&(I=r.ctx.createRadialGradient(C+U,b+F,0,C+U,b+F,E),yr(t.stops,2*E).forEach((function(A){return I.addColorStop(A.stop,ur(A.color))})),r.path(v),r.ctx.fillStyle=I,E!==k?(H=A.bounds.left+.5*A.bounds.width,S=A.bounds.top+.5*A.bounds.height,D=k/E,L=1/D,r.ctx.save(),r.ctx.translate(H,S),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-H,-S),r.ctx.fillRect(C,L*(b-S)+S,y,_*L),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}}))},r=this,i=0,o=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return i<o.length?(s=o[i],[5,t(s)]):[3,4];case 2:a.sent(),a.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}))},t.prototype.renderSolidBorder=function(A,e,t){return r(this,void 0,void 0,(function(){return n(this,(function(r){return this.path(cl(t,e)),this.ctx.fillStyle=ur(A),this.ctx.fill(),[2]}))}))},t.prototype.renderDoubleBorder=function(A,e,t,i){return r(this,void 0,void 0,(function(){var r,o;return n(this,(function(n){switch(n.label){case 0:return e<3?[4,this.renderSolidBorder(A,t,i)]:[3,2];case 1:return n.sent(),[2];case 2:return r=ul(i,t),this.path(r),this.ctx.fillStyle=ur(A),this.ctx.fill(),o=dl(i,t),this.path(o),this.ctx.fill(),[2]}}))}))},t.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,(function(){var e,t,r,i,o,s,a,l,c=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(A.getEffects(2)),e=A.container.styles,t=!cr(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],i=Sl(_l(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),cr(e.backgroundColor)||(this.ctx.fillStyle=ur(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){c.ctx.save();var t=Wa(A.curves),r=e.inset?0:kl,n=nl(t,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(c.path(t),c.ctx.clip(),c.mask(n)):(c.mask(t),c.ctx.clip(),c.path(n)),c.ctx.shadowOffsetX=e.offsetX.number+r,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=ur(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?ur(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),n.label=2;case 2:o=0,s=0,a=r,n.label=3;case 3:return s<a.length?(l=a[s],0!==l.style&&!cr(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,A.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,A.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,A.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,A.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(A,e,t,i,o){return r(this,void 0,void 0,(function(){var r,s,a,l,c,u,d,h,g,p,f,m,B,w,v,C;return n(this,(function(n){return this.ctx.save(),r=hl(i,t),s=cl(i,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,u=s[1].end.y):(c=s[1].x,u=s[1].y),d=0===t||2===t?Math.abs(a-c):Math.abs(l-u),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),h=e<3?3*e:2*e,g=e<3?2*e:e,3===o&&(h=e,g=e),p=!0,d<=2*h?p=!1:d<=2*h+g?(f=d/(2*h+g),h*=f,g*=f):(m=Math.floor((d+g)/(h+g)),B=(d-m*h)/(m-1),w=(d-(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=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=ur(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(ja(s[0])&&(v=s[3],C=s[0],this.ctx.beginPath(),this.formatPath([new Ra(v.end.x,v.end.y),new Ra(C.start.x,C.start.y)]),this.ctx.stroke()),ja(s[1])&&(v=s[1],C=s[2],this.ctx.beginPath(),this.formatPath([new Ra(v.end.x,v.end.y),new Ra(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},t.prototype.render=function(A){return r(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ur(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=ll(A),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},t}(El),Hl=function(A){return A instanceof vs||(A instanceof ws||A instanceof Bs&&A.type!==ps&&A.type!==gs)},Sl=function(A,e){switch(A){case 0:return Wa(e);case 2:return Xa(e);case 1:default:return Ya(e)}},Dl=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ll=["-apple-system","system-ui"],Ol=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter((function(A){return-1===Ll.indexOf(A)})):A},Ml=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=t,r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),r}return e(t,A),t.prototype.render=function(A){return r(this,void 0,void 0,(function(){var e,t;return n(this,(function(r){switch(r.label){case 0:return e=Vo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,Tl(e)];case 1:return t=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ur(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(A){return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Kl=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),Nl=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new Kl({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new Sa(this,e)}return A.instanceCount=1,A}(),Pl=function(A,e){return void 0===e&&(e={}),Rl(A,e)};"undefined"!==typeof window&&Ha.setContext(window);var Rl=function(A,e){return r(void 0,void 0,void 0,(function(){var r,i,l,c,u,d,h,g,p,f,m,B,w,v,C,b,y,_,Q,U,F,x,E,k,I,H,S,D,L,O,M,T,K,N,P,R,V,G,j;return n(this,(function(n){switch(n.label){case 0:if(!A||"object"!==typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(E=e.allowTaint)&&void 0!==E&&E,imageTimeout:null!==(k=e.imageTimeout)&&void 0!==k?k:15e3,proxy:e.proxy,useCORS:null!==(I=e.useCORS)&&void 0!==I&&I},c=t({logging:null===(H=e.logging)||void 0===H||H,cache:e.cache},l),u={windowWidth:null!==(S=e.windowWidth)&&void 0!==S?S:i.innerWidth,windowHeight:null!==(D=e.windowHeight)&&void 0!==D?D:i.innerHeight,scrollX:null!==(L=e.scrollX)&&void 0!==L?L:i.pageXOffset,scrollY:null!==(O=e.scrollY)&&void 0!==O?O:i.pageYOffset},d=new o(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),h=new Nl(c,d),g=null!==(M=e.foreignObjectRendering)&&void 0!==M&&M,p={allowTaint:null!==(T=e.allowTaint)&&void 0!==T&&T,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:g,copyStyles:g},h.logger.debug("Starting document clone with size "+d.width+"x"+d.height+" scrolled to "+-d.left+","+-d.top),f=new ga(h,A,p),m=f.clonedReferenceElement,m?[4,f.toIFrame(r,d)]:[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,C=w.height,b=w.left,y=w.top,_=Vl(h,m,e.backgroundColor),Q={canvas:e.canvas,backgroundColor:_,scale:null!==(N=null!==(K=e.scale)&&void 0!==K?K:i.devicePixelRatio)&&void 0!==N?N:1,x:(null!==(P=e.x)&&void 0!==P?P:0)+b,y:(null!==(R=e.y)&&void 0!==R?R:0)+y,width:null!==(V=e.width)&&void 0!==V?V:Math.ceil(v),height:null!==(G=e.height)&&void 0!==G?G:Math.ceil(C)},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 "+b+","+y+" with size "+v+"x"+C+" using computed rendering"),h.logger.debug("Starting DOM parsing"),F=Qs(h,m),_===F.styles.backgroundColor&&(F.styles.backgroundColor=wr.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=e.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(A,e,t){var r=e.ownerDocument,n=r.documentElement?Br(A,getComputedStyle(r.documentElement).backgroundColor):wr.TRANSPARENT,i=r.body?Br(A,getComputedStyle(r.body).backgroundColor):wr.TRANSPARENT,o="string"===typeof t?Br(A,t):null===t?wr.TRANSPARENT:4294967295;return e===r.documentElement?cr(n)?cr(i)?o:i:n:o};return Pl}))},5733:function(A,e,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(e){A.exports=e()}((function(){return function A(e,t,r){function n(o,s){if(!t[o]){if(!e[o]){var a=void 0;if(!s&&a)return require(o,!0);if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=t[o]={exports:{}};e[o][0].call(c.exports,(function(A){var t=e[o][1][A];return n(t||A)}),c,c.exports,A,e,t,r)}return t[o].exports}for(var i=void 0,o=0;o<r.length;o++)n(r[o]);return n}({1:[function(A,e,t){"use strict";var r=A("./utils"),n=A("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(A){for(var e,t,n,o,s,a,l,c=[],u=0,d=A.length,h=d,g="string"!==r.getTypeOf(A);u<A.length;)h=d-u,n=g?(e=A[u++],t=u<d?A[u++]:0,u<d?A[u++]:0):(e=A.charCodeAt(u++),t=u<d?A.charCodeAt(u++):0,u<d?A.charCodeAt(u++):0),o=e>>2,s=(3&e)<<4|t>>4,a=1<h?(15&t)<<2|n>>6:64,l=2<h?63&n:64,c.push(i.charAt(o)+i.charAt(s)+i.charAt(a)+i.charAt(l));return c.join("")},t.decode=function(A){var e,t,r,o,s,a,l=0,c=0,u="data:";if(A.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var d,h=3*(A=A.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(A.charAt(A.length-1)===i.charAt(64)&&h--,A.charAt(A.length-2)===i.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=n.uint8array?new Uint8Array(0|h):new Array(0|h);l<A.length;)e=i.indexOf(A.charAt(l++))<<2|(o=i.indexOf(A.charAt(l++)))>>4,t=(15&o)<<4|(s=i.indexOf(A.charAt(l++)))>>2,r=(3&s)<<6|(a=i.indexOf(A.charAt(l++))),d[c++]=e,64!==s&&(d[c++]=t),64!==a&&(d[c++]=r);return d}},{"./support":30,"./utils":32}],2:[function(A,e,t){"use strict";var r=A("./external"),n=A("./stream/DataWorker"),i=A("./stream/Crc32Probe"),o=A("./stream/DataLengthProbe");function s(A,e,t,r,n){this.compressedSize=A,this.uncompressedSize=e,this.crc32=t,this.compression=r,this.compressedContent=n}s.prototype={getContentWorker:function(){var A=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return A.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),A},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(A,e,t){return A.pipe(new i).pipe(new o("uncompressedSize")).pipe(e.compressWorker(t)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(A,e,t){"use strict";var r=A("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},t.DEFLATE=A("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(A,e,t){"use strict";var r=A("./utils"),n=function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var r=0;r<8;r++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e}();e.exports=function(A,e){return void 0!==A&&A.length?"string"!==r.getTypeOf(A)?function(A,e,t,r){var i=n,o=r+t;A^=-1;for(var s=r;s<o;s++)A=A>>>8^i[255&(A^e[s])];return-1^A}(0|e,A,A.length,0):function(A,e,t,r){var i=n,o=r+t;A^=-1;for(var s=r;s<o;s++)A=A>>>8^i[255&(A^e.charCodeAt(s))];return-1^A}(0|e,A,A.length,0):0}},{"./utils":32}],5:[function(A,e,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(A,e,t){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:A("lie"),e.exports={Promise:r}},{lie:37}],7:[function(A,e,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=A("pako"),i=A("./utils"),o=A("./stream/GenericWorker"),s=r?"uint8array":"array";function a(A,e){o.call(this,"FlateWorker/"+A),this._pako=null,this._pakoAction=A,this._pakoOptions=e,this.meta={}}t.magic="\b\0",i.inherits(a,o),a.prototype.processChunk=function(A){this.meta=A.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(s,A.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 A=this;this._pako.onData=function(e){A.push({data:e,meta:A.meta})}},t.compressWorker=function(A){return new a("Deflate",A)},t.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(A,e,t){"use strict";function r(A,e){var t,r="";for(t=0;t<e;t++)r+=String.fromCharCode(255&A),A>>>=8;return r}function n(A,e,t,n,o,c){var u,d,h=A.file,g=A.compression,p=c!==s.utf8encode,f=i.transformTo("string",c(h.name)),m=i.transformTo("string",s.utf8encode(h.name)),B=h.comment,w=i.transformTo("string",c(B)),v=i.transformTo("string",s.utf8encode(B)),C=m.length!==h.name.length,b=v.length!==B.length,y="",_="",Q="",U=h.dir,F=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};e&&!t||(x.crc32=A.crc32,x.compressedSize=A.compressedSize,x.uncompressedSize=A.uncompressedSize);var E=0;e&&(E|=8),p||!C&&!b||(E|=2048);var k=0,I=0;U&&(k|=16),"UNIX"===o?(I=798,k|=function(A,e){var t=A;return A||(t=e?16893:33204),(65535&t)<<16}(h.unixPermissions,U)):(I=20,k|=function(A){return 63&(A||0)}(h.dosPermissions)),u=F.getUTCHours(),u<<=6,u|=F.getUTCMinutes(),u<<=5,u|=F.getUTCSeconds()/2,d=F.getUTCFullYear()-1980,d<<=4,d|=F.getUTCMonth()+1,d<<=5,d|=F.getUTCDate(),C&&(_=r(1,1)+r(a(f),4)+m,y+="up"+r(_.length,2)+_),b&&(Q=r(1,1)+r(a(w),4)+v,y+="uc"+r(Q.length,2)+Q);var H="";return H+="\n\0",H+=r(E,2),H+=g.magic,H+=r(u,2),H+=r(d,2),H+=r(x.crc32,4),H+=r(x.compressedSize,4),H+=r(x.uncompressedSize,4),H+=r(f.length,2),H+=r(y.length,2),{fileRecord:l.LOCAL_FILE_HEADER+H+f+y,dirRecord:l.CENTRAL_FILE_HEADER+r(I,2)+H+r(w.length,2)+"\0\0\0\0"+r(k,4)+r(n,4)+f+y+w}}var i=A("../utils"),o=A("../stream/GenericWorker"),s=A("../utf8"),a=A("../crc32"),l=A("../signature");function c(A,e,t,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=t,this.encodeFileName=r,this.streamFiles=A,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(c,o),c.prototype.push=function(A){var e=A.meta.percent||0,t=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(A):(this.bytesWritten+=A.data.length,o.prototype.push.call(this,{data:A.data,meta:{currentFile:this.currentFile,percent:t?(e+100*(t-r-1))/t:100}}))},c.prototype.openedSource=function(A){this.currentSourceOffset=this.bytesWritten,this.currentFile=A.file.name;var e=this.streamFiles&&!A.file.dir;if(e){var t=n(A,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:t.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(A){this.accumulate=!1;var e=this.streamFiles&&!A.file.dir,t=n(A,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(t.dirRecord),e)this.push({data:function(A){return l.DATA_DESCRIPTOR+r(A.crc32,4)+r(A.compressedSize,4)+r(A.uncompressedSize,4)}(A),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 A=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var t=this.bytesWritten-A,n=function(A,e,t,n,o){var s=i.transformTo("string",o(n));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(A,2)+r(A,2)+r(e,4)+r(t,4)+r(s.length,2)+s}(this.dirRecords.length,t,A,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(A){this._sources.push(A);var e=this;return A.on("data",(function(A){e.processChunk(A)})),A.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),A.on("error",(function(A){e.error(A)})),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(A){var e=this._sources;if(!o.prototype.error.call(this,A))return!1;for(var t=0;t<e.length;t++)try{e[t].error(A)}catch(A){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var A=this._sources,e=0;e<A.length;e++)A[e].lock()},e.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(A,e,t){"use strict";var r=A("../compressions"),n=A("./ZipFileWorker");t.generateWorker=function(A,e,t){var i=new n(e.streamFiles,t,e.platform,e.encodeFileName),o=0;try{A.forEach((function(A,t){o++;var n=function(A,e){var t=A||e,n=r[t];if(!n)throw new Error(t+" is not a valid compression method !");return n}(t.options.compression,e.compression),s=t.options.compressionOptions||e.compressionOptions||{},a=t.dir,l=t.date;t._compressWorker(n,s).withStreamInfo("file",{name:A,dir:a,date:l,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(i)})),i.entriesCount=o}catch(A){i.error(A)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(A,e,t){"use strict";function r(){if(!(this instanceof r))return new r;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 A=new r;for(var e in this)"function"!=typeof this[e]&&(A[e]=this[e]);return A}}(r.prototype=A("./object")).loadAsync=A("./load"),r.support=A("./support"),r.defaults=A("./defaults"),r.version="3.10.1",r.loadAsync=function(A,e){return(new r).loadAsync(A,e)},r.external=A("./external"),e.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(A,e,t){"use strict";var r=A("./utils"),n=A("./external"),i=A("./utf8"),o=A("./zipEntries"),s=A("./stream/Crc32Probe"),a=A("./nodejsUtils");function l(A){return new n.Promise((function(e,t){var r=A.decompressed.getContentWorker().pipe(new s);r.on("error",(function(A){t(A)})).on("end",(function(){r.streamInfo.crc32!==A.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(A,e){var t=this;return e=r.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),a.isNode&&a.isStream(A)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",A,!0,e.optimizedBinaryString,e.base64).then((function(A){var t=new o(e);return t.load(A),t})).then((function(A){var t=[n.Promise.resolve(A)],r=A.files;if(e.checkCRC32)for(var i=0;i<r.length;i++)t.push(l(r[i]));return n.Promise.all(t)})).then((function(A){for(var n=A.shift(),i=n.files,o=0;o<i.length;o++){var s=i[o],a=s.fileNameStr,l=r.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:e.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(A,e,t){"use strict";var r=A("../utils"),n=A("../stream/GenericWorker");function i(A,e){n.call(this,"Nodejs stream input adapter for "+A),this._upstreamEnded=!1,this._bindStream(e)}r.inherits(i,n),i.prototype._bindStream=function(A){var e=this;(this._stream=A).pause(),A.on("data",(function(A){e.push({data:A,meta:{percent:0}})})).on("error",(function(A){e.isPaused?this.generatedError=A:e.error(A)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},i.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(A,e,t){"use strict";var r=A("readable-stream").Readable;function n(A,e,t){r.call(this,e),this._helper=A;var n=this;A.on("data",(function(A,e){n.push(A)||n._helper.pause(),t&&t(e)})).on("error",(function(A){n.emit("error",A)})).on("end",(function(){n.push(null)}))}A("../utils").inherits(n,r),n.prototype._read=function(){this._helper.resume()},e.exports=n},{"../utils":32,"readable-stream":16}],14:[function(A,e,t){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(A,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(A,e);if("number"==typeof A)throw new Error('The "data" argument must not be a number');return new Buffer(A,e)},allocBuffer:function(A){if(Buffer.alloc)return Buffer.alloc(A);var e=new Buffer(A);return e.fill(0),e},isBuffer:function(A){return Buffer.isBuffer(A)},isStream:function(A){return A&&"function"==typeof A.on&&"function"==typeof A.pause&&"function"==typeof A.resume}}},{}],15:[function(A,e,t){"use strict";function r(A,e,t){var r,n=i.getTypeOf(e),s=i.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&&(A=p(A)),s.createFolders&&(r=g(A))&&f.call(this,r,!0);var u="string"===n&&!1===s.binary&&!1===s.base64;t&&void 0!==t.binary||(s.binary=!u),(e instanceof l&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",n="string");var m=null;m=e instanceof l||e instanceof o?e:d.isNode&&d.isStream(e)?new h(A,e):i.prepareContent(A,e,s.binary,s.optimizedBinaryString,s.base64);var B=new c(A,m,s);this.files[A]=B}var n=A("./utf8"),i=A("./utils"),o=A("./stream/GenericWorker"),s=A("./stream/StreamHelper"),a=A("./defaults"),l=A("./compressedObject"),c=A("./zipObject"),u=A("./generate"),d=A("./nodejsUtils"),h=A("./nodejs/NodejsStreamInputAdapter"),g=function(A){"/"===A.slice(-1)&&(A=A.substring(0,A.length-1));var e=A.lastIndexOf("/");return 0<e?A.substring(0,e):""},p=function(A){return"/"!==A.slice(-1)&&(A+="/"),A},f=function(A,e){return e=void 0!==e?e:a.createFolders,A=p(A),this.files[A]||r.call(this,A,null,{dir:!0,createFolders:e}),this.files[A]};function m(A){return"[object RegExp]"===Object.prototype.toString.call(A)}var B={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(A){var e,t,r;for(e in this.files)r=this.files[e],(t=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&A(t,r)},filter:function(A){var e=[];return this.forEach((function(t,r){A(t,r)&&e.push(r)})),e},file:function(A,e,t){if(1!==arguments.length)return A=this.root+A,r.call(this,A,e,t),this;if(m(A)){var n=A;return this.filter((function(A,e){return!e.dir&&n.test(A)}))}var i=this.files[this.root+A];return i&&!i.dir?i:null},folder:function(A){if(!A)return this;if(m(A))return this.filter((function(e,t){return t.dir&&A.test(e)}));var e=this.root+A,t=f.call(this,e),r=this.clone();return r.root=t.name,r},remove:function(A){A=this.root+A;var e=this.files[A];if(e||("/"!==A.slice(-1)&&(A+="/"),e=this.files[A]),e&&!e.dir)delete this.files[A];else for(var t=this.filter((function(e,t){return t.name.slice(0,A.length)===A})),r=0;r<t.length;r++)delete this.files[t[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(A){var e,t={};try{if((t=i.extend(A||{},{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.");i.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 r=t.comment||this.comment||"";e=u.generateWorker(this,t,r)}catch(A){(e=new o("error")).error(A)}return new s(e,t.type||"string",t.mimeType)},generateAsync:function(A,e){return this.generateInternalStream(A).accumulate(e)},generateNodeStream:function(A,e){return(A=A||{}).type||(A.type="nodebuffer"),this.generateInternalStream(A).toNodejsStream(e)}};e.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(A,e,t){"use strict";e.exports=A("stream")},{stream:void 0}],17:[function(A,e,t){"use strict";var r=A("./DataReader");function n(A){r.call(this,A);for(var e=0;e<this.data.length;e++)A[e]=255&A[e]}A("../utils").inherits(n,r),n.prototype.byteAt=function(A){return this.data[this.zero+A]},n.prototype.lastIndexOfSignature=function(A){for(var e=A.charCodeAt(0),t=A.charCodeAt(1),r=A.charCodeAt(2),n=A.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===e&&this.data[i+1]===t&&this.data[i+2]===r&&this.data[i+3]===n)return i-this.zero;return-1},n.prototype.readAndCheckSignature=function(A){var e=A.charCodeAt(0),t=A.charCodeAt(1),r=A.charCodeAt(2),n=A.charCodeAt(3),i=this.readData(4);return e===i[0]&&t===i[1]&&r===i[2]&&n===i[3]},n.prototype.readData=function(A){if(this.checkOffset(A),0===A)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,e},e.exports=n},{"../utils":32,"./DataReader":18}],18:[function(A,e,t){"use strict";var r=A("../utils");function n(A){this.data=A,this.length=A.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(A){this.checkIndex(this.index+A)},checkIndex:function(A){if(this.length<this.zero+A||A<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+A+"). Corrupted zip ?")},setIndex:function(A){this.checkIndex(A),this.index=A},skip:function(A){this.setIndex(this.index+A)},byteAt:function(){},readInt:function(A){var e,t=0;for(this.checkOffset(A),e=this.index+A-1;e>=this.index;e--)t=(t<<8)+this.byteAt(e);return this.index+=A,t},readString:function(A){return r.transformTo("string",this.readData(A))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var A=this.readInt(4);return new Date(Date.UTC(1980+(A>>25&127),(A>>21&15)-1,A>>16&31,A>>11&31,A>>5&63,(31&A)<<1))}},e.exports=n},{"../utils":32}],19:[function(A,e,t){"use strict";var r=A("./Uint8ArrayReader");function n(A){r.call(this,A)}A("../utils").inherits(n,r),n.prototype.readData=function(A){this.checkOffset(A);var e=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,e},e.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(A,e,t){"use strict";var r=A("./DataReader");function n(A){r.call(this,A)}A("../utils").inherits(n,r),n.prototype.byteAt=function(A){return this.data.charCodeAt(this.zero+A)},n.prototype.lastIndexOfSignature=function(A){return this.data.lastIndexOf(A)-this.zero},n.prototype.readAndCheckSignature=function(A){return A===this.readData(4)},n.prototype.readData=function(A){this.checkOffset(A);var e=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,e},e.exports=n},{"../utils":32,"./DataReader":18}],21:[function(A,e,t){"use strict";var r=A("./ArrayReader");function n(A){r.call(this,A)}A("../utils").inherits(n,r),n.prototype.readData=function(A){if(this.checkOffset(A),0===A)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+A);return this.index+=A,e},e.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(A,e,t){"use strict";var r=A("../utils"),n=A("../support"),i=A("./ArrayReader"),o=A("./StringReader"),s=A("./NodeBufferReader"),a=A("./Uint8ArrayReader");e.exports=function(A){var e=r.getTypeOf(A);return r.checkSupport(e),"string"!==e||n.uint8array?"nodebuffer"===e?new s(A):n.uint8array?new a(r.transformTo("uint8array",A)):new i(r.transformTo("array",A)):new o(A)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(A,e,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(A,e,t){"use strict";var r=A("./GenericWorker"),n=A("../utils");function i(A){r.call(this,"ConvertWorker to "+A),this.destType=A}n.inherits(i,r),i.prototype.processChunk=function(A){this.push({data:n.transformTo(this.destType,A.data),meta:A.meta})},e.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(A,e,t){"use strict";var r=A("./GenericWorker"),n=A("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}A("../utils").inherits(i,r),i.prototype.processChunk=function(A){this.streamInfo.crc32=n(A.data,this.streamInfo.crc32||0),this.push(A)},e.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(A,e,t){"use strict";var r=A("../utils"),n=A("./GenericWorker");function i(A){n.call(this,"DataLengthProbe for "+A),this.propName=A,this.withStreamInfo(A,0)}r.inherits(i,n),i.prototype.processChunk=function(A){if(A){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+A.data.length}n.prototype.processChunk.call(this,A)},e.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(A,e,t){"use strict";var r=A("../utils"),n=A("./GenericWorker");function i(A){n.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,A.then((function(A){e.dataIsReady=!0,e.data=A,e.max=A&&A.length||0,e.type=r.getTypeOf(A),e.isPaused||e._tickAndRepeat()}),(function(A){e.error(A)}))}r.inherits(i,n),i.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var A=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":A=this.data.substring(this.index,e);break;case"uint8array":A=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":A=this.data.slice(this.index,e)}return this.index=e,this.push({data:A,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(A,e,t){"use strict";function r(A){this.name=A||"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}r.prototype={push:function(A){this.emit("data",A)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(A){this.emit("error",A)}return!0},error:function(A){return!this.isFinished&&(this.isPaused?this.generatedError=A:(this.isFinished=!0,this.emit("error",A),this.previous&&this.previous.error(A),this.cleanUp()),!0)},on:function(A,e){return this._listeners[A].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(A,e){if(this._listeners[A])for(var t=0;t<this._listeners[A].length;t++)this._listeners[A][t].call(this,e)},pipe:function(A){return A.registerPrevious(this)},registerPrevious:function(A){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=A.streamInfo,this.mergeStreamInfo(),this.previous=A;var e=this;return A.on("data",(function(A){e.processChunk(A)})),A.on("end",(function(){e.end()})),A.on("error",(function(A){e.error(A)})),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 A=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),A=!0),this.previous&&this.previous.resume(),!A},flush:function(){},processChunk:function(A){this.push(A)},withStreamInfo:function(A,e){return this.extraStreamInfo[A]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var A in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,A)&&(this.streamInfo[A]=this.extraStreamInfo[A])},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 A="Worker "+this.name;return this.previous?this.previous+" -> "+A:A}},e.exports=r},{}],29:[function(A,e,t){"use strict";var r=A("../utils"),n=A("./ConvertWorker"),i=A("./GenericWorker"),o=A("../base64"),s=A("../support"),a=A("../external"),l=null;if(s.nodestream)try{l=A("../nodejs/NodejsStreamOutputAdapter")}catch(A){}function c(A,e){return new a.Promise((function(t,n){var i=[],s=A._internalType,a=A._outputType,l=A._mimeType;A.on("data",(function(A,t){i.push(A),e&&e(t)})).on("error",(function(A){i=[],n(A)})).on("end",(function(){try{var A=function(A,e,t){switch(A){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),t);case"base64":return o.encode(e);default:return r.transformTo(A,e)}}(a,function(A,e){var t,r=0,n=null,i=0;for(t=0;t<e.length;t++)i+=e[t].length;switch(A){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(n=new Uint8Array(i),t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+A+"'")}}(s,i),l);t(A)}catch(A){n(A)}i=[]})).resume()}))}function u(A,e,t){var o=e;switch(e){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=e,this._mimeType=t,r.checkSupport(o),this._worker=A.pipe(new n(o)),A.lock()}catch(A){this._worker=new i("error"),this._worker.error(A)}}u.prototype={accumulate:function(A){return c(this,A)},on:function(A,e){var t=this;return"data"===A?this._worker.on(A,(function(A){e.call(t,A.data,A.meta)})):this._worker.on(A,(function(){r.delay(e,arguments,t)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(A){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},A)}},e.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(A,e,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 r=new ArrayBuffer(0);try{t.blob=0===new Blob([r],{type:"application/zip"}).size}catch(A){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(r),t.blob=0===n.getBlob("application/zip").size}catch(A){t.blob=!1}}}try{t.nodestream=!!A("readable-stream").Readable}catch(A){t.nodestream=!1}},{"readable-stream":16}],31:[function(A,e,t){"use strict";for(var r=A("./utils"),n=A("./support"),i=A("./nodejsUtils"),o=A("./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(A){return n.nodebuffer?i.newBufferFrom(A,"utf-8"):function(A){var e,t,r,i,o,s=A.length,a=0;for(i=0;i<s;i++)55296==(64512&(t=A.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=A.charCodeAt(i+1)))&&(t=65536+(t-55296<<10)+(r-56320),i++),a+=t<128?1:t<2048?2:t<65536?3:4;for(e=n.uint8array?new Uint8Array(a):new Array(a),i=o=0;o<a;i++)55296==(64512&(t=A.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=A.charCodeAt(i+1)))&&(t=65536+(t-55296<<10)+(r-56320),i++),t<128?e[o++]=t:(t<2048?e[o++]=192|t>>>6:(t<65536?e[o++]=224|t>>>12:(e[o++]=240|t>>>18,e[o++]=128|t>>>12&63),e[o++]=128|t>>>6&63),e[o++]=128|63&t);return e}(A)},t.utf8decode=function(A){return n.nodebuffer?r.transformTo("nodebuffer",A).toString("utf-8"):function(A){var e,t,n,i,o=A.length,a=new Array(2*o);for(e=t=0;e<o;)if((n=A[e++])<128)a[t++]=n;else if(4<(i=s[n]))a[t++]=65533,e+=i-1;else{for(n&=2===i?31:3===i?15:7;1<i&&e<o;)n=n<<6|63&A[e++],i--;1<i?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),r.applyFromCharCode(a)}(A=r.transformTo(n.uint8array?"uint8array":"array",A))},r.inherits(l,o),l.prototype.processChunk=function(A){var e=r.transformTo(n.uint8array?"uint8array":"array",A.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var i=e;(e=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),e.set(i,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(A,e){var t;for((e=e||A.length)>A.length&&(e=A.length),t=e-1;0<=t&&128==(192&A[t]);)t--;return t<0||0===t?e:t+s[A[t]]>e?t:e}(e),a=e;o!==e.length&&(n.uint8array?(a=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(a=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:t.utf8decode(a),meta:A.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=l,r.inherits(c,o),c.prototype.processChunk=function(A){this.push({data:t.utf8encode(A.data),meta:A.meta})},t.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(A,e,t){"use strict";var r=A("./support"),n=A("./base64"),i=A("./nodejsUtils"),o=A("./external");function s(A){return A}function a(A,e){for(var t=0;t<A.length;++t)e[t]=255&A.charCodeAt(t);return e}A("setimmediate"),t.newBlob=function(e,r){t.checkSupport("blob");try{return new Blob([e],{type:r})}catch(A){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(r)}catch(A){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(A,e,t){var r=[],n=0,i=A.length;if(i<=t)return String.fromCharCode.apply(null,A);for(;n<i;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,A.slice(n,Math.min(n+t,i)))):r.push(String.fromCharCode.apply(null,A.subarray(n,Math.min(n+t,i)))),n+=t;return r.join("")},stringifyByChar:function(A){for(var e="",t=0;t<A.length;t++)e+=String.fromCharCode(A[t]);return e},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(A){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(A){return!1}}()}};function c(A){var e=65536,r=t.getTypeOf(A),n=!0;if("uint8array"===r?n=l.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=l.applyCanBeUsed.nodebuffer),n)for(;1<e;)try{return l.stringifyByChunk(A,r,e)}catch(A){e=Math.floor(e/2)}return l.stringifyByChar(A)}function u(A,e){for(var t=0;t<A.length;t++)e[t]=A[t];return e}t.applyFromCharCode=c;var d={};d.string={string:s,array:function(A){return a(A,new Array(A.length))},arraybuffer:function(A){return d.string.uint8array(A).buffer},uint8array:function(A){return a(A,new Uint8Array(A.length))},nodebuffer:function(A){return a(A,i.allocBuffer(A.length))}},d.array={string:c,array:s,arraybuffer:function(A){return new Uint8Array(A).buffer},uint8array:function(A){return new Uint8Array(A)},nodebuffer:function(A){return i.newBufferFrom(A)}},d.arraybuffer={string:function(A){return c(new Uint8Array(A))},array:function(A){return u(new Uint8Array(A),new Array(A.byteLength))},arraybuffer:s,uint8array:function(A){return new Uint8Array(A)},nodebuffer:function(A){return i.newBufferFrom(new Uint8Array(A))}},d.uint8array={string:c,array:function(A){return u(A,new Array(A.length))},arraybuffer:function(A){return A.buffer},uint8array:s,nodebuffer:function(A){return i.newBufferFrom(A)}},d.nodebuffer={string:c,array:function(A){return u(A,new Array(A.length))},arraybuffer:function(A){return d.nodebuffer.uint8array(A).buffer},uint8array:function(A){return u(A,new Uint8Array(A.length))},nodebuffer:s},t.transformTo=function(A,e){if(e=e||"",!A)return e;t.checkSupport(A);var r=t.getTypeOf(e);return d[r][A](e)},t.resolve=function(A){for(var e=A.split("/"),t=[],r=0;r<e.length;r++){var n=e[r];"."===n||""===n&&0!==r&&r!==e.length-1||(".."===n?t.pop():t.push(n))}return t.join("/")},t.getTypeOf=function(A){return"string"==typeof A?"string":"[object Array]"===Object.prototype.toString.call(A)?"array":r.nodebuffer&&i.isBuffer(A)?"nodebuffer":r.uint8array&&A instanceof Uint8Array?"uint8array":r.arraybuffer&&A instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(A){if(!r[A.toLowerCase()])throw new Error(A+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(A){var e,t,r="";for(t=0;t<(A||"").length;t++)r+="\\x"+((e=A.charCodeAt(t))<16?"0":"")+e.toString(16).toUpperCase();return r},t.delay=function(A,e,t){setImmediate((function(){A.apply(t||null,e||[])}))},t.inherits=function(A,e){function t(){}t.prototype=e.prototype,A.prototype=new t},t.extend=function(){var A,e,t={};for(A=0;A<arguments.length;A++)for(e in arguments[A])Object.prototype.hasOwnProperty.call(arguments[A],e)&&void 0===t[e]&&(t[e]=arguments[A][e]);return t},t.prepareContent=function(A,e,i,s,l){return o.Promise.resolve(e).then((function(A){return r.blob&&(A instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,t){var r=new FileReader;r.onload=function(A){e(A.target.result)},r.onerror=function(A){t(A.target.error)},r.readAsArrayBuffer(A)})):A})).then((function(e){var c=t.getTypeOf(e);return c?("arraybuffer"===c?e=t.transformTo("uint8array",e):"string"===c&&(l?e=n.decode(e):i&&!0!==s&&(e=function(A){return a(A,r.uint8array?new Uint8Array(A.length):new Array(A.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+A+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(A,e,t){"use strict";var r=A("./reader/readerFor"),n=A("./utils"),i=A("./signature"),o=A("./zipEntry"),s=A("./support");function a(A){this.files=[],this.loadOptions=A}a.prototype={checkSignature:function(A){if(!this.reader.readAndCheckSignature(A)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(e)+", expected "+n.pretty(A)+")")}},isSignature:function(A,e){var t=this.reader.index;this.reader.setIndex(A);var r=this.reader.readString(4)===e;return this.reader.setIndex(t),r},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 A=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",t=n.transformTo(e,A);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 A,e,t,r=this.zip64EndOfCentralSize-44;0<r;)A=this.reader.readInt(2),e=this.reader.readInt(4),t=this.reader.readData(e),this.zip64ExtensibleData[A]={id:A,length:e,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 A,e;for(A=0;A<this.files.length;A++)e=this.files[A],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var A;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(A=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(A);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 A=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(A<0)throw this.isSignature(0,i.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(A);var e=A;if(this.checkSignature(i.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,(A=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(A),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var t=this.centralDirOffset+this.centralDirSize;this.zip64&&(t+=20,t+=12+this.zip64EndOfCentralSize);var r=e-t;if(0<r)this.isSignature(e,i.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(A){this.reader=r(A)},load:function(A){this.prepareReader(A),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(A,e,t){"use strict";var r=A("./reader/readerFor"),n=A("./utils"),i=A("./compressedObject"),o=A("./crc32"),s=A("./utf8"),a=A("./compressions"),l=A("./support");function c(A,e){this.options=A,this.loadOptions=e}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(A){var e,t;if(A.skip(22),this.fileNameLength=A.readInt(2),t=A.readInt(2),this.fileName=A.readData(this.fileNameLength),A.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===(e=function(A){for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)&&a[e].magic===A)return a[e];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 i(this.compressedSize,this.uncompressedSize,this.crc32,e,A.readData(this.compressedSize))},readCentralPart:function(A){this.versionMadeBy=A.readInt(2),A.skip(2),this.bitFlag=A.readInt(2),this.compressionMethod=A.readString(2),this.date=A.readDate(),this.crc32=A.readInt(4),this.compressedSize=A.readInt(4),this.uncompressedSize=A.readInt(4);var e=A.readInt(2);if(this.extraFieldsLength=A.readInt(2),this.fileCommentLength=A.readInt(2),this.diskNumberStart=A.readInt(2),this.internalFileAttributes=A.readInt(2),this.externalFileAttributes=A.readInt(4),this.localHeaderOffset=A.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");A.skip(e),this.readExtraFields(A),this.parseZIP64ExtraField(A),this.fileComment=A.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var A=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==A&&(this.dosPermissions=63&this.externalFileAttributes),3==A&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var A=r(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=A.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=A.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=A.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=A.readInt(4))}},readExtraFields:function(A){var e,t,r,n=A.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});A.index+4<n;)e=A.readInt(2),t=A.readInt(2),r=A.readData(t),this.extraFields[e]={id:e,length:t,value:r};A.setIndex(n)},handleUTF8:function(){var A=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var t=n.transformTo(A,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(t)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var i=n.transformTo(A,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var A=this.extraFields[28789];if(A){var e=r(A.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(A.length-5))}return null},findExtraFieldUnicodeComment:function(){var A=this.extraFields[25461];if(A){var e=r(A.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(A.length-5))}return null}},e.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(A,e,t){"use strict";function r(A,e,t){this.name=A,this.dir=t.dir,this.date=t.date,this.comment=t.comment,this.unixPermissions=t.unixPermissions,this.dosPermissions=t.dosPermissions,this._data=e,this._dataBinary=t.binary,this.options={compression:t.compression,compressionOptions:t.compressionOptions}}var n=A("./stream/StreamHelper"),i=A("./stream/DataWorker"),o=A("./utf8"),s=A("./compressedObject"),a=A("./stream/GenericWorker");r.prototype={internalStream:function(A){var e=null,t="string";try{if(!A)throw new Error("No output type specified.");var r="string"===(t=A.toLowerCase())||"text"===t;"binarystring"!==t&&"text"!==t||(t="string"),e=this._decompressWorker();var i=!this._dataBinary;i&&!r&&(e=e.pipe(new o.Utf8EncodeWorker)),!i&&r&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(A){(e=new a("error")).error(A)}return new n(e,t,"")},async:function(A,e){return this.internalStream(A).accumulate(e)},nodeStream:function(A,e){return this.internalStream(A||"nodebuffer").toNodejsStream(e)},_compressWorker:function(A,e){if(this._data instanceof s&&this._data.compression.magic===A.magic)return this._data.getCompressedWorker();var t=this._decompressWorker();return this._dataBinary||(t=t.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(t,A,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof a?this._data:new i(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.")},u=0;u<l.length;u++)r.prototype[l[u]]=c;e.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(A,e,r){(function(A){"use strict";var t,r,n=A.MutationObserver||A.WebKitMutationObserver;if(n){var i=0,o=new n(c),s=A.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=i=++i%2}}else if(A.setImmediate||void 0===A.MessageChannel)t="document"in A&&"onreadystatechange"in A.document.createElement("script")?function(){var e=A.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},A.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var a=new A.MessageChannel;a.port1.onmessage=c,t=function(){a.port2.postMessage(0)}}var l=[];function c(){var A,e;r=!0;for(var t=l.length;t;){for(e=l,l=[],A=-1;++A<t;)e[A]();t=l.length}r=!1}e.exports=function(A){1!==l.push(A)||r||t()}}).call(this,"undefined"!=typeof t.g?t.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(A,e,t){"use strict";var r=A("immediate");function n(){}var i={},o=["REJECTED"],s=["FULFILLED"],a=["PENDING"];function l(A){if("function"!=typeof A)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,A!==n&&h(this,A)}function c(A,e,t){this.promise=A,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof t&&(this.onRejected=t,this.callRejected=this.otherCallRejected)}function u(A,e,t){r((function(){var r;try{r=e(t)}catch(r){return i.reject(A,r)}r===A?i.reject(A,new TypeError("Cannot resolve promise with itself")):i.resolve(A,r)}))}function d(A){var e=A&&A.then;if(A&&("object"==typeof A||"function"==typeof A)&&"function"==typeof e)return function(){e.apply(A,arguments)}}function h(A,e){var t=!1;function r(e){t||(t=!0,i.reject(A,e))}function n(e){t||(t=!0,i.resolve(A,e))}var o=g((function(){e(n,r)}));"error"===o.status&&r(o.value)}function g(A,e){var t={};try{t.value=A(e),t.status="success"}catch(A){t.status="error",t.value=A}return t}(e.exports=l).prototype.finally=function(A){if("function"!=typeof A)return this;var e=this.constructor;return this.then((function(t){return e.resolve(A()).then((function(){return t}))}),(function(t){return e.resolve(A()).then((function(){throw t}))}))},l.prototype.catch=function(A){return this.then(null,A)},l.prototype.then=function(A,e){if("function"!=typeof A&&this.state===s||"function"!=typeof e&&this.state===o)return this;var t=new this.constructor(n);return this.state!==a?u(t,this.state===s?A:e,this.outcome):this.queue.push(new c(t,A,e)),t},c.prototype.callFulfilled=function(A){i.resolve(this.promise,A)},c.prototype.otherCallFulfilled=function(A){u(this.promise,this.onFulfilled,A)},c.prototype.callRejected=function(A){i.reject(this.promise,A)},c.prototype.otherCallRejected=function(A){u(this.promise,this.onRejected,A)},i.resolve=function(A,e){var t=g(d,e);if("error"===t.status)return i.reject(A,t.value);var r=t.value;if(r)h(A,r);else{A.state=s,A.outcome=e;for(var n=-1,o=A.queue.length;++n<o;)A.queue[n].callFulfilled(e)}return A},i.reject=function(A,e){A.state=o,A.outcome=e;for(var t=-1,r=A.queue.length;++t<r;)A.queue[t].callRejected(e);return A},l.resolve=function(A){return A instanceof this?A:i.resolve(new this(n),A)},l.reject=function(A){var e=new this(n);return i.reject(e,A)},l.all=function(A){var e=this;if("[object Array]"!==Object.prototype.toString.call(A))return this.reject(new TypeError("must be an array"));var t=A.length,r=!1;if(!t)return this.resolve([]);for(var o=new Array(t),s=0,a=-1,l=new this(n);++a<t;)c(A[a],a);return l;function c(A,n){e.resolve(A).then((function(A){o[n]=A,++s!==t||r||(r=!0,i.resolve(l,o))}),(function(A){r||(r=!0,i.reject(l,A))}))}},l.race=function(A){var e=this;if("[object Array]"!==Object.prototype.toString.call(A))return this.reject(new TypeError("must be an array"));var t=A.length,r=!1;if(!t)return this.resolve([]);for(var o,s=-1,a=new this(n);++s<t;)o=A[s],e.resolve(o).then((function(A){r||(r=!0,i.resolve(a,A))}),(function(A){r||(r=!0,i.reject(a,A))}));return a}},{immediate:36}],38:[function(A,e,t){"use strict";var r={};(0,A("./lib/utils/common").assign)(r,A("./lib/deflate"),A("./lib/inflate"),A("./lib/zlib/constants")),e.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(A,e,t){"use strict";var r=A("./zlib/deflate"),n=A("./utils/common"),i=A("./utils/strings"),o=A("./zlib/messages"),s=A("./zlib/zstream"),a=Object.prototype.toString,l=0,c=-1,u=0,d=8;function h(A){if(!(this instanceof h))return new h(A);this.options=n.assign({level:c,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:u,to:""},A||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var t=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==l)throw new Error(o[t]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var g;if(g="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===a.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(t=r.deflateSetDictionary(this.strm,g))!==l)throw new Error(o[t]);this._dict_set=!0}}function g(A,e){var t=new h(e);if(t.push(A,!0),t.err)throw t.msg||o[t.err];return t.result}h.prototype.push=function(A,e){var t,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof A?s.input=i.string2buf(A):"[object ArrayBuffer]"===a.call(A)?s.input=new Uint8Array(A):s.input=A,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=r.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(i.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=r.deflateEnd(this.strm),this.onEnd(t),this.ended=!0,t===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},h.prototype.onData=function(A){this.chunks.push(A)},h.prototype.onEnd=function(A){A===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},t.Deflate=h,t.deflate=g,t.deflateRaw=function(A,e){return(e=e||{}).raw=!0,g(A,e)},t.gzip=function(A,e){return(e=e||{}).gzip=!0,g(A,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(A,e,t){"use strict";var r=A("./zlib/inflate"),n=A("./utils/common"),i=A("./utils/strings"),o=A("./zlib/constants"),s=A("./zlib/messages"),a=A("./zlib/zstream"),l=A("./zlib/gzheader"),c=Object.prototype.toString;function u(A){if(!(this instanceof u))return new u(A);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},A||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||A&&A.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var t=r.inflateInit2(this.strm,e.windowBits);if(t!==o.Z_OK)throw new Error(s[t]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function d(A,e){var t=new u(e);if(t.push(A,!0),t.err)throw t.msg||s[t.err];return t.result}u.prototype.push=function(A,e){var t,s,a,l,u,d,h=this.strm,g=this.options.chunkSize,p=this.options.dictionary,f=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof A?h.input=i.binstring2buf(A):"[object ArrayBuffer]"===c.call(A)?h.input=new Uint8Array(A):h.input=A,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=r.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(d="string"==typeof p?i.string2buf(p):"[object ArrayBuffer]"===c.call(p)?new Uint8Array(p):p,t=r.inflateSetDictionary(this.strm,d)),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=i.utf8border(h.output,h.next_out),l=h.next_out-a,u=i.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(u)):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=r.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))},u.prototype.onData=function(A){this.chunks.push(A)},u.prototype.onEnd=function(A){A===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},t.Inflate=u,t.inflate=d,t.inflateRaw=function(A,e){return(e=e||{}).raw=!0,d(A,e)},t.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(A,e,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(A){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var t=e.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var r in t)t.hasOwnProperty(r)&&(A[r]=t[r])}}return A},t.shrinkBuf=function(A,e){return A.length===e?A:A.subarray?A.subarray(0,e):(A.length=e,A)};var n={arraySet:function(A,e,t,r,n){if(e.subarray&&A.subarray)A.set(e.subarray(t,t+r),n);else for(var i=0;i<r;i++)A[n+i]=e[t+i]},flattenChunks:function(A){var e,t,r,n,i,o;for(e=r=0,t=A.length;e<t;e++)r+=A[e].length;for(o=new Uint8Array(r),e=n=0,t=A.length;e<t;e++)i=A[e],o.set(i,n),n+=i.length;return o}},i={arraySet:function(A,e,t,r,n){for(var i=0;i<r;i++)A[n+i]=e[t+i]},flattenChunks:function(A){return[].concat.apply([],A)}};t.setTyped=function(A){A?(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,i))},t.setTyped(r)},{}],42:[function(A,e,t){"use strict";var r=A("./common"),n=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(A){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(A){i=!1}for(var o=new r.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(A,e){if(e<65537&&(A.subarray&&i||!A.subarray&&n))return String.fromCharCode.apply(null,r.shrinkBuf(A,e));for(var t="",o=0;o<e;o++)t+=String.fromCharCode(A[o]);return t}o[254]=o[254]=1,t.string2buf=function(A){var e,t,n,i,o,s=A.length,a=0;for(i=0;i<s;i++)55296==(64512&(t=A.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=A.charCodeAt(i+1)))&&(t=65536+(t-55296<<10)+(n-56320),i++),a+=t<128?1:t<2048?2:t<65536?3:4;for(e=new r.Buf8(a),i=o=0;o<a;i++)55296==(64512&(t=A.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=A.charCodeAt(i+1)))&&(t=65536+(t-55296<<10)+(n-56320),i++),t<128?e[o++]=t:(t<2048?e[o++]=192|t>>>6:(t<65536?e[o++]=224|t>>>12:(e[o++]=240|t>>>18,e[o++]=128|t>>>12&63),e[o++]=128|t>>>6&63),e[o++]=128|63&t);return e},t.buf2binstring=function(A){return a(A,A.length)},t.binstring2buf=function(A){for(var e=new r.Buf8(A.length),t=0,n=e.length;t<n;t++)e[t]=A.charCodeAt(t);return e},t.buf2string=function(A,e){var t,r,n,i,s=e||A.length,l=new Array(2*s);for(t=r=0;t<s;)if((n=A[t++])<128)l[r++]=n;else if(4<(i=o[n]))l[r++]=65533,t+=i-1;else{for(n&=2===i?31:3===i?15:7;1<i&&t<s;)n=n<<6|63&A[t++],i--;1<i?l[r++]=65533:n<65536?l[r++]=n:(n-=65536,l[r++]=55296|n>>10&1023,l[r++]=56320|1023&n)}return a(l,r)},t.utf8border=function(A,e){var t;for((e=e||A.length)>A.length&&(e=A.length),t=e-1;0<=t&&128==(192&A[t]);)t--;return t<0||0===t?e:t+o[A[t]]>e?t:e}},{"./common":41}],43:[function(A,e,t){"use strict";e.exports=function(A,e,t,r){for(var n=65535&A|0,i=A>>>16&65535|0,o=0;0!==t;){for(t-=o=2e3<t?2e3:t;i=i+(n=n+e[r++]|0)|0,--o;);n%=65521,i%=65521}return n|i<<16|0}},{}],44:[function(A,e,t){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(A,e,t){"use strict";var r=function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var r=0;r<8;r++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e}();e.exports=function(A,e,t,n){var i=r,o=n+t;A^=-1;for(var s=n;s<o;s++)A=A>>>8^i[255&(A^e[s])];return-1^A}},{}],46:[function(A,e,t){"use strict";var r,n=A("../utils/common"),i=A("./trees"),o=A("./adler32"),s=A("./crc32"),a=A("./messages"),l=0,c=4,u=0,d=-2,h=-1,g=4,p=2,f=8,m=9,B=286,w=30,v=19,C=2*B+1,b=15,y=3,_=258,Q=_+y+1,U=42,F=113,x=1,E=2,k=3,I=4;function H(A,e){return A.msg=a[e],e}function S(A){return(A<<1)-(4<A?9:0)}function D(A){for(var e=A.length;0<=--e;)A[e]=0}function L(A){var e=A.state,t=e.pending;t>A.avail_out&&(t=A.avail_out),0!==t&&(n.arraySet(A.output,e.pending_buf,e.pending_out,t,A.next_out),A.next_out+=t,e.pending_out+=t,A.total_out+=t,A.avail_out-=t,e.pending-=t,0===e.pending&&(e.pending_out=0))}function O(A,e){i._tr_flush_block(A,0<=A.block_start?A.block_start:-1,A.strstart-A.block_start,e),A.block_start=A.strstart,L(A.strm)}function M(A,e){A.pending_buf[A.pending++]=e}function T(A,e){A.pending_buf[A.pending++]=e>>>8&255,A.pending_buf[A.pending++]=255&e}function K(A,e){var t,r,n=A.max_chain_length,i=A.strstart,o=A.prev_length,s=A.nice_match,a=A.strstart>A.w_size-Q?A.strstart-(A.w_size-Q):0,l=A.window,c=A.w_mask,u=A.prev,d=A.strstart+_,h=l[i+o-1],g=l[i+o];A.prev_length>=A.good_match&&(n>>=2),s>A.lookahead&&(s=A.lookahead);do{if(l[(t=e)+o]===g&&l[t+o-1]===h&&l[t]===l[i]&&l[++t]===l[i+1]){i+=2,t++;do{}while(l[++i]===l[++t]&&l[++i]===l[++t]&&l[++i]===l[++t]&&l[++i]===l[++t]&&l[++i]===l[++t]&&l[++i]===l[++t]&&l[++i]===l[++t]&&l[++i]===l[++t]&&i<d);if(r=_-(d-i),i=d-_,o<r){if(A.match_start=e,s<=(o=r))break;h=l[i+o-1],g=l[i+o]}}}while((e=u[e&c])>a&&0!=--n);return o<=A.lookahead?o:A.lookahead}function N(A){var e,t,r,i,a,l,c,u,d,h,g=A.w_size;do{if(i=A.window_size-A.lookahead-A.strstart,A.strstart>=g+(g-Q)){for(n.arraySet(A.window,A.window,g,g,0),A.match_start-=g,A.strstart-=g,A.block_start-=g,e=t=A.hash_size;r=A.head[--e],A.head[e]=g<=r?r-g:0,--t;);for(e=t=g;r=A.prev[--e],A.prev[e]=g<=r?r-g:0,--t;);i+=g}if(0===A.strm.avail_in)break;if(l=A.strm,c=A.window,u=A.strstart+A.lookahead,d=i,h=void 0,h=l.avail_in,d<h&&(h=d),t=0===h?0:(l.avail_in-=h,n.arraySet(c,l.input,l.next_in,h,u),1===l.state.wrap?l.adler=o(l.adler,c,h,u):2===l.state.wrap&&(l.adler=s(l.adler,c,h,u)),l.next_in+=h,l.total_in+=h,h),A.lookahead+=t,A.lookahead+A.insert>=y)for(a=A.strstart-A.insert,A.ins_h=A.window[a],A.ins_h=(A.ins_h<<A.hash_shift^A.window[a+1])&A.hash_mask;A.insert&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[a+y-1])&A.hash_mask,A.prev[a&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=a,a++,A.insert--,!(A.lookahead+A.insert<y)););}while(A.lookahead<Q&&0!==A.strm.avail_in)}function P(A,e){for(var t,r;;){if(A.lookahead<Q){if(N(A),A.lookahead<Q&&e===l)return x;if(0===A.lookahead)break}if(t=0,A.lookahead>=y&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+y-1])&A.hash_mask,t=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),0!==t&&A.strstart-t<=A.w_size-Q&&(A.match_length=K(A,t)),A.match_length>=y)if(r=i._tr_tally(A,A.strstart-A.match_start,A.match_length-y),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=y){for(A.match_length--;A.strstart++,A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+y-1])&A.hash_mask,t=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart,0!=--A.match_length;);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+1])&A.hash_mask;else r=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(r&&(O(A,!1),0===A.strm.avail_out))return x}return A.insert=A.strstart<y-1?A.strstart:y-1,e===c?(O(A,!0),0===A.strm.avail_out?k:I):A.last_lit&&(O(A,!1),0===A.strm.avail_out)?x:E}function R(A,e){for(var t,r,n;;){if(A.lookahead<Q){if(N(A),A.lookahead<Q&&e===l)return x;if(0===A.lookahead)break}if(t=0,A.lookahead>=y&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+y-1])&A.hash_mask,t=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),A.prev_length=A.match_length,A.prev_match=A.match_start,A.match_length=y-1,0!==t&&A.prev_length<A.max_lazy_match&&A.strstart-t<=A.w_size-Q&&(A.match_length=K(A,t),A.match_length<=5&&(1===A.strategy||A.match_length===y&&4096<A.strstart-A.match_start)&&(A.match_length=y-1)),A.prev_length>=y&&A.match_length<=A.prev_length){for(n=A.strstart+A.lookahead-y,r=i._tr_tally(A,A.strstart-1-A.prev_match,A.prev_length-y),A.lookahead-=A.prev_length-1,A.prev_length-=2;++A.strstart<=n&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+y-1])&A.hash_mask,t=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),0!=--A.prev_length;);if(A.match_available=0,A.match_length=y-1,A.strstart++,r&&(O(A,!1),0===A.strm.avail_out))return x}else if(A.match_available){if((r=i._tr_tally(A,0,A.window[A.strstart-1]))&&O(A,!1),A.strstart++,A.lookahead--,0===A.strm.avail_out)return x}else A.match_available=1,A.strstart++,A.lookahead--}return A.match_available&&(r=i._tr_tally(A,0,A.window[A.strstart-1]),A.match_available=0),A.insert=A.strstart<y-1?A.strstart:y-1,e===c?(O(A,!0),0===A.strm.avail_out?k:I):A.last_lit&&(O(A,!1),0===A.strm.avail_out)?x:E}function V(A,e,t,r,n){this.good_length=A,this.max_lazy=e,this.nice_length=t,this.max_chain=r,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*C),this.dyn_dtree=new n.Buf16(2*(2*w+1)),this.bl_tree=new n.Buf16(2*(2*v+1)),D(this.dyn_ltree),D(this.dyn_dtree),D(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(b+1),this.heap=new n.Buf16(2*B+1),D(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*B+1),D(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(A){var e;return A&&A.state?(A.total_in=A.total_out=0,A.data_type=p,(e=A.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?U:F,A.adler=2===e.wrap?0:1,e.last_flush=l,i._tr_init(e),u):H(A,d)}function z(A){var e=j(A);return e===u&&function(A){A.window_size=2*A.w_size,D(A.head),A.max_lazy_match=r[A.level].max_lazy,A.good_match=r[A.level].good_length,A.nice_match=r[A.level].nice_length,A.max_chain_length=r[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=y-1,A.match_available=0,A.ins_h=0}(A.state),e}function Z(A,e,t,r,i,o){if(!A)return d;var s=1;if(e===h&&(e=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),i<1||m<i||t!==f||r<8||15<r||e<0||9<e||o<0||g<o)return H(A,d);8===r&&(r=9);var a=new G;return(A.state=a).strm=A,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+y-1)/y),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<<i+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=e,a.strategy=o,a.method=t,z(A)}r=[new V(0,0,0,0,(function(A,e){var t=65535;for(t>A.pending_buf_size-5&&(t=A.pending_buf_size-5);;){if(A.lookahead<=1){if(N(A),0===A.lookahead&&e===l)return x;if(0===A.lookahead)break}A.strstart+=A.lookahead,A.lookahead=0;var r=A.block_start+t;if((0===A.strstart||A.strstart>=r)&&(A.lookahead=A.strstart-r,A.strstart=r,O(A,!1),0===A.strm.avail_out))return x;if(A.strstart-A.block_start>=A.w_size-Q&&(O(A,!1),0===A.strm.avail_out))return x}return A.insert=0,e===c?(O(A,!0),0===A.strm.avail_out?k:I):(A.strstart>A.block_start&&(O(A,!1),A.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(A,e){return Z(A,e,f,15,8,0)},t.deflateInit2=Z,t.deflateReset=z,t.deflateResetKeep=j,t.deflateSetHeader=function(A,e){return A&&A.state?2!==A.state.wrap?d:(A.state.gzhead=e,u):d},t.deflate=function(A,e){var t,n,o,a;if(!A||!A.state||5<e||e<0)return A?H(A,d):d;if(n=A.state,!A.output||!A.input&&0!==A.avail_in||666===n.status&&e!==c)return H(A,0===A.avail_out?-5:d);if(n.strm=A,t=n.last_flush,n.last_flush=e,n.status===U)if(2===n.wrap)A.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&&(A.adler=s(A.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,A.adler>>>16),T(n,65535&A.adler)),A.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&&(A.adler=s(A.adler,n.pending_buf,n.pending-o,o)),L(A),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&&(A.adler=s(A.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&&(A.adler=s(A.adler,n.pending_buf,n.pending-o,o)),L(A),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&&(A.adler=s(A.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&&(A.adler=s(A.adler,n.pending_buf,n.pending-o,o)),L(A),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&&(A.adler=s(A.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(A),n.pending+2<=n.pending_buf_size&&(M(n,255&A.adler),M(n,A.adler>>8&255),A.adler=0,n.status=F)):n.status=F),0!==n.pending){if(L(A),0===A.avail_out)return n.last_flush=-1,u}else if(0===A.avail_in&&S(e)<=S(t)&&e!==c)return H(A,-5);if(666===n.status&&0!==A.avail_in)return H(A,-5);if(0!==A.avail_in||0!==n.lookahead||e!==l&&666!==n.status){var g=2===n.strategy?function(A,e){for(var t;;){if(0===A.lookahead&&(N(A),0===A.lookahead)){if(e===l)return x;break}if(A.match_length=0,t=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,t&&(O(A,!1),0===A.strm.avail_out))return x}return A.insert=0,e===c?(O(A,!0),0===A.strm.avail_out?k:I):A.last_lit&&(O(A,!1),0===A.strm.avail_out)?x:E}(n,e):3===n.strategy?function(A,e){for(var t,r,n,o,s=A.window;;){if(A.lookahead<=_){if(N(A),A.lookahead<=_&&e===l)return x;if(0===A.lookahead)break}if(A.match_length=0,A.lookahead>=y&&0<A.strstart&&(r=s[n=A.strstart-1])===s[++n]&&r===s[++n]&&r===s[++n]){o=A.strstart+_;do{}while(r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&n<o);A.match_length=_-(o-n),A.match_length>A.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=y?(t=i._tr_tally(A,1,A.match_length-y),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(t=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),t&&(O(A,!1),0===A.strm.avail_out))return x}return A.insert=0,e===c?(O(A,!0),0===A.strm.avail_out?k:I):A.last_lit&&(O(A,!1),0===A.strm.avail_out)?x:E}(n,e):r[n.level].func(n,e);if(g!==k&&g!==I||(n.status=666),g===x||g===k)return 0===A.avail_out&&(n.last_flush=-1),u;if(g===E&&(1===e?i._tr_align(n):5!==e&&(i._tr_stored_block(n,0,0,!1),3===e&&(D(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),L(A),0===A.avail_out))return n.last_flush=-1,u}return e!==c?u:n.wrap<=0?1:(2===n.wrap?(M(n,255&A.adler),M(n,A.adler>>8&255),M(n,A.adler>>16&255),M(n,A.adler>>24&255),M(n,255&A.total_in),M(n,A.total_in>>8&255),M(n,A.total_in>>16&255),M(n,A.total_in>>24&255)):(T(n,A.adler>>>16),T(n,65535&A.adler)),L(A),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?u:1)},t.deflateEnd=function(A){var e;return A&&A.state?(e=A.state.status)!==U&&69!==e&&73!==e&&91!==e&&103!==e&&e!==F&&666!==e?H(A,d):(A.state=null,e===F?H(A,-3):u):d},t.deflateSetDictionary=function(A,e){var t,r,i,s,a,l,c,h,g=e.length;if(!A||!A.state)return d;if(2===(s=(t=A.state).wrap)||1===s&&t.status!==U||t.lookahead)return d;for(1===s&&(A.adler=o(A.adler,e,g,0)),t.wrap=0,g>=t.w_size&&(0===s&&(D(t.head),t.strstart=0,t.block_start=0,t.insert=0),h=new n.Buf8(t.w_size),n.arraySet(h,e,g-t.w_size,t.w_size,0),e=h,g=t.w_size),a=A.avail_in,l=A.next_in,c=A.input,A.avail_in=g,A.next_in=0,A.input=e,N(t);t.lookahead>=y;){for(r=t.strstart,i=t.lookahead-(y-1);t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+y-1])&t.hash_mask,t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,--i;);t.strstart=r,t.lookahead=y-1,N(t)}return t.strstart+=t.lookahead,t.block_start=t.strstart,t.insert=t.lookahead,t.lookahead=0,t.match_length=t.prev_length=y-1,t.match_available=0,A.next_in=l,A.input=c,A.avail_in=a,t.wrap=s,u},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(A,e,t){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(A,e,t){"use strict";e.exports=function(A,e){var t,r,n,i,o,s,a,l,c,u,d,h,g,p,f,m,B,w,v,C,b,y,_,Q,U;t=A.state,r=A.next_in,Q=A.input,n=r+(A.avail_in-5),i=A.next_out,U=A.output,o=i-(e-A.avail_out),s=i+(A.avail_out-257),a=t.dmax,l=t.wsize,c=t.whave,u=t.wnext,d=t.window,h=t.hold,g=t.bits,p=t.lencode,f=t.distcode,m=(1<<t.lenbits)-1,B=(1<<t.distbits)-1;A:do{g<15&&(h+=Q[r++]<<g,g+=8,h+=Q[r++]<<g,g+=8),w=p[h&m];e:for(;;){if(h>>>=v=w>>>24,g-=v,0===(v=w>>>16&255))U[i++]=65535&w;else{if(!(16&v)){if(0==(64&v)){w=p[(65535&w)+(h&(1<<v)-1)];continue e}if(32&v){t.mode=12;break A}A.msg="invalid literal/length code",t.mode=30;break A}C=65535&w,(v&=15)&&(g<v&&(h+=Q[r++]<<g,g+=8),C+=h&(1<<v)-1,h>>>=v,g-=v),g<15&&(h+=Q[r++]<<g,g+=8,h+=Q[r++]<<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}A.msg="invalid distance code",t.mode=30;break A}if(b=65535&w,g<(v&=15)&&(h+=Q[r++]<<g,(g+=8)<v&&(h+=Q[r++]<<g,g+=8)),a<(b+=h&(1<<v)-1)){A.msg="invalid distance too far back",t.mode=30;break A}if(h>>>=v,g-=v,(v=i-o)<b){if(c<(v=b-v)&&t.sane){A.msg="invalid distance too far back",t.mode=30;break A}if(_=d,(y=0)===u){if(y+=l-v,v<C){for(C-=v;U[i++]=d[y++],--v;);y=i-b,_=U}}else if(u<v){if(y+=l+u-v,(v-=u)<C){for(C-=v;U[i++]=d[y++],--v;);if(y=0,u<C){for(C-=v=u;U[i++]=d[y++],--v;);y=i-b,_=U}}}else if(y+=u-v,v<C){for(C-=v;U[i++]=d[y++],--v;);y=i-b,_=U}for(;2<C;)U[i++]=_[y++],U[i++]=_[y++],U[i++]=_[y++],C-=3;C&&(U[i++]=_[y++],1<C&&(U[i++]=_[y++]))}else{for(y=i-b;U[i++]=U[y++],U[i++]=U[y++],U[i++]=U[y++],2<(C-=3););C&&(U[i++]=U[y++],1<C&&(U[i++]=U[y++]))}break}}break}}while(r<n&&i<s);r-=C=g>>3,h&=(1<<(g-=C<<3))-1,A.next_in=r,A.next_out=i,A.avail_in=r<n?n-r+5:5-(r-n),A.avail_out=i<s?s-i+257:257-(i-s),t.hold=h,t.bits=g}},{}],49:[function(A,e,t){"use strict";var r=A("../utils/common"),n=A("./adler32"),i=A("./crc32"),o=A("./inffast"),s=A("./inftrees"),a=1,l=2,c=0,u=-2,d=1,h=852,g=592;function p(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(A){var e;return A&&A.state?(e=A.state,A.total_in=A.total_out=e.total=0,A.msg="",e.wrap&&(A.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(h),e.distcode=e.distdyn=new r.Buf32(g),e.sane=1,e.back=-1,c):u}function B(A){var e;return A&&A.state?((e=A.state).wsize=0,e.whave=0,e.wnext=0,m(A)):u}function w(A,e){var t,r;return A&&A.state?(r=A.state,e<0?(t=0,e=-e):(t=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?u:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=t,r.wbits=e,B(A))):u}function v(A,e){var t,r;return A?(r=new f,(A.state=r).window=null,(t=w(A,e))!==c&&(A.state=null),t):u}var C,b,y=!0;function _(A){if(y){var e;for(C=new r.Buf32(512),b=new r.Buf32(32),e=0;e<144;)A.lens[e++]=8;for(;e<256;)A.lens[e++]=9;for(;e<280;)A.lens[e++]=7;for(;e<288;)A.lens[e++]=8;for(s(a,A.lens,0,288,C,0,A.work,{bits:9}),e=0;e<32;)A.lens[e++]=5;s(l,A.lens,0,32,b,0,A.work,{bits:5}),y=!1}A.lencode=C,A.lenbits=9,A.distcode=b,A.distbits=5}function Q(A,e,t,n){var i,o=A.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),n>=o.wsize?(r.arraySet(o.window,e,t-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(i=o.wsize-o.wnext)&&(i=n),r.arraySet(o.window,e,t-n,i,o.wnext),(n-=i)?(r.arraySet(o.window,e,t-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}t.inflateReset=B,t.inflateReset2=w,t.inflateResetKeep=m,t.inflateInit=function(A){return v(A,15)},t.inflateInit2=v,t.inflate=function(A,e){var t,h,g,f,m,B,w,v,C,b,y,U,F,x,E,k,I,H,S,D,L,O,M,T,K=0,N=new r.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!A||!A.state||!A.output||!A.input&&0!==A.avail_in)return u;12===(t=A.state).mode&&(t.mode=13),m=A.next_out,g=A.output,w=A.avail_out,f=A.next_in,h=A.input,B=A.avail_in,v=t.hold,C=t.bits,b=B,y=w,O=c;A:for(;;)switch(t.mode){case d:if(0===t.wrap){t.mode=13;break}for(;C<16;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(2&t.wrap&&35615===v){N[t.check=0]=255&v,N[1]=v>>>8&255,t.check=i(t.check,N,2,0),C=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){A.msg="incorrect header check",t.mode=30;break}if(8!=(15&v)){A.msg="unknown compression method",t.mode=30;break}if(C-=4,L=8+(15&(v>>>=4)),0===t.wbits)t.wbits=L;else if(L>t.wbits){A.msg="invalid window size",t.mode=30;break}t.dmax=1<<L,A.adler=t.check=1,t.mode=512&v?10:12,C=v=0;break;case 2:for(;C<16;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(t.flags=v,8!=(255&t.flags)){A.msg="unknown compression method",t.mode=30;break}if(57344&t.flags){A.msg="unknown header flags set",t.mode=30;break}t.head&&(t.head.text=v>>8&1),512&t.flags&&(N[0]=255&v,N[1]=v>>>8&255,t.check=i(t.check,N,2,0)),C=v=0,t.mode=3;case 3:for(;C<32;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}t.head&&(t.head.time=v),512&t.flags&&(N[0]=255&v,N[1]=v>>>8&255,N[2]=v>>>16&255,N[3]=v>>>24&255,t.check=i(t.check,N,4,0)),C=v=0,t.mode=4;case 4:for(;C<16;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}t.head&&(t.head.xflags=255&v,t.head.os=v>>8),512&t.flags&&(N[0]=255&v,N[1]=v>>>8&255,t.check=i(t.check,N,2,0)),C=v=0,t.mode=5;case 5:if(1024&t.flags){for(;C<16;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}t.length=v,t.head&&(t.head.extra_len=v),512&t.flags&&(N[0]=255&v,N[1]=v>>>8&255,t.check=i(t.check,N,2,0)),C=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)),r.arraySet(t.head.extra,h,f,U,L)),512&t.flags&&(t.check=i(t.check,h,U,f)),B-=U,f+=U,t.length-=U),t.length))break A;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===B)break A;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=i(t.check,h,U,f)),B-=U,f+=U,L)break A}else t.head&&(t.head.name=null);t.length=0,t.mode=8;case 8:if(4096&t.flags){if(0===B)break A;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=i(t.check,h,U,f)),B-=U,f+=U,L)break A}else t.head&&(t.head.comment=null);t.mode=9;case 9:if(512&t.flags){for(;C<16;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(v!==(65535&t.check)){A.msg="header crc mismatch",t.mode=30;break}C=v=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),A.adler=t.check=0,t.mode=12;break;case 10:for(;C<32;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}A.adler=t.check=p(v),C=v=0,t.mode=11;case 11:if(0===t.havedict)return A.next_out=m,A.avail_out=w,A.next_in=f,A.avail_in=B,t.hold=v,t.bits=C,2;A.adler=t.check=1,t.mode=12;case 12:if(5===e||6===e)break A;case 13:if(t.last){v>>>=7&C,C-=7&C,t.mode=27;break}for(;C<3;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}switch(t.last=1&v,C-=1,3&(v>>>=1)){case 0:t.mode=14;break;case 1:if(_(t),t.mode=20,6!==e)break;v>>>=2,C-=2;break A;case 2:t.mode=17;break;case 3:A.msg="invalid block type",t.mode=30}v>>>=2,C-=2;break;case 14:for(v>>>=7&C,C-=7&C;C<32;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if((65535&v)!=(v>>>16^65535)){A.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&v,C=v=0,t.mode=15,6===e)break A;case 15:t.mode=16;case 16:if(U=t.length){if(B<U&&(U=B),w<U&&(U=w),0===U)break A;r.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(;C<14;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(t.nlen=257+(31&v),v>>>=5,C-=5,t.ndist=1+(31&v),v>>>=5,C-=5,t.ncode=4+(15&v),v>>>=4,C-=4,286<t.nlen||30<t.ndist){A.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(;C<3;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}t.lens[P[t.have++]]=7&v,v>>>=3,C-=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){A.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=(K=t.lencode[v&(1<<t.lenbits)-1])>>>16&255,I=65535&K,!((E=K>>>24)<=C);){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(I<16)v>>>=E,C-=E,t.lens[t.have++]=I;else{if(16===I){for(T=E+2;C<T;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(v>>>=E,C-=E,0===t.have){A.msg="invalid bit length repeat",t.mode=30;break}L=t.lens[t.have-1],U=3+(3&v),v>>>=2,C-=2}else if(17===I){for(T=E+3;C<T;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}C-=E,L=0,U=3+(7&(v>>>=E)),v>>>=3,C-=3}else{for(T=E+7;C<T;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}C-=E,L=0,U=11+(127&(v>>>=E)),v>>>=7,C-=7}if(t.have+U>t.nlen+t.ndist){A.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]){A.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){A.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){A.msg="invalid distances set",t.mode=30;break}if(t.mode=20,6===e)break A;case 20:t.mode=21;case 21:if(6<=B&&258<=w){A.next_out=m,A.avail_out=w,A.next_in=f,A.avail_in=B,t.hold=v,t.bits=C,o(A,y),m=A.next_out,g=A.output,w=A.avail_out,f=A.next_in,h=A.input,B=A.avail_in,v=t.hold,C=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;k=(K=t.lencode[v&(1<<t.lenbits)-1])>>>16&255,I=65535&K,!((E=K>>>24)<=C);){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(k&&0==(240&k)){for(H=E,S=k,D=I;k=(K=t.lencode[D+((v&(1<<H+S)-1)>>H)])>>>16&255,I=65535&K,!(H+(E=K>>>24)<=C);){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}v>>>=H,C-=H,t.back+=H}if(v>>>=E,C-=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){A.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;C<T;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}t.length+=v&(1<<t.extra)-1,v>>>=t.extra,C-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;k=(K=t.distcode[v&(1<<t.distbits)-1])>>>16&255,I=65535&K,!((E=K>>>24)<=C);){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(0==(240&k)){for(H=E,S=k,D=I;k=(K=t.distcode[D+((v&(1<<H+S)-1)>>H)])>>>16&255,I=65535&K,!(H+(E=K>>>24)<=C);){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}v>>>=H,C-=H,t.back+=H}if(v>>>=E,C-=E,t.back+=E,64&k){A.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;C<T;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}t.offset+=v&(1<<t.extra)-1,v>>>=t.extra,C-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===w)break A;if(U=y-w,t.offset>U){if((U=t.offset-U)>t.whave&&t.sane){A.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 A;g[m++]=t.length,w--,t.mode=21;break;case 27:if(t.wrap){for(;C<32;){if(0===B)break A;B--,v|=h[f++]<<C,C+=8}if(y-=w,A.total_out+=y,t.total+=y,y&&(A.adler=t.check=t.flags?i(t.check,g,y,m-y):n(t.check,g,y,m-y)),y=w,(t.flags?v:p(v))!==t.check){A.msg="incorrect data check",t.mode=30;break}C=v=0}t.mode=28;case 28:if(t.wrap&&t.flags){for(;C<32;){if(0===B)break A;B--,v+=h[f++]<<C,C+=8}if(v!==(4294967295&t.total)){A.msg="incorrect length check",t.mode=30;break}C=v=0}t.mode=29;case 29:O=1;break A;case 30:O=-3;break A;case 31:return-4;case 32:default:return u}return A.next_out=m,A.avail_out=w,A.next_in=f,A.avail_in=B,t.hold=v,t.bits=C,(t.wsize||y!==A.avail_out&&t.mode<30&&(t.mode<27||4!==e))&&Q(A,A.output,A.next_out,y-A.avail_out)?(t.mode=31,-4):(b-=A.avail_in,y-=A.avail_out,A.total_in+=b,A.total_out+=y,t.total+=y,t.wrap&&y&&(A.adler=t.check=t.flags?i(t.check,g,y,A.next_out-y):n(t.check,g,y,A.next_out-y)),A.data_type=t.bits+(t.last?64:0)+(12===t.mode?128:0)+(20===t.mode||15===t.mode?256:0),(0==b&&0===y||4===e)&&O===c&&(O=-5),O)},t.inflateEnd=function(A){if(!A||!A.state)return u;var e=A.state;return e.window&&(e.window=null),A.state=null,c},t.inflateGetHeader=function(A,e){var t;return A&&A.state?0==(2&(t=A.state).wrap)?u:((t.head=e).done=!1,c):u},t.inflateSetDictionary=function(A,e){var t,r=e.length;return A&&A.state?0!==(t=A.state).wrap&&11!==t.mode?u:11===t.mode&&n(1,e,r,0)!==t.check?-3:Q(A,e,r,r)?(t.mode=31,-4):(t.havedict=1,c):u},t.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(A,e,t){"use strict";var r=A("../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],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(A,e,t,a,l,c,u,d){var h,g,p,f,m,B,w,v,C,b=d.bits,y=0,_=0,Q=0,U=0,F=0,x=0,E=0,k=0,I=0,H=0,S=null,D=0,L=new r.Buf16(16),O=new r.Buf16(16),M=null,T=0;for(y=0;y<=15;y++)L[y]=0;for(_=0;_<a;_++)L[e[t+_]]++;for(F=b,U=15;1<=U&&0===L[U];U--);if(U<F&&(F=U),0===U)return l[c++]=20971520,l[c++]=20971520,d.bits=1,0;for(Q=1;Q<U&&0===L[Q];Q++);for(F<Q&&(F=Q),y=k=1;y<=15;y++)if(k<<=1,(k-=L[y])<0)return-1;if(0<k&&(0===A||1!==U))return-1;for(O[1]=0,y=1;y<15;y++)O[y+1]=O[y]+L[y];for(_=0;_<a;_++)0!==e[t+_]&&(u[O[e[t+_]]++]=_);if(B=0===A?(S=M=u,19):1===A?(S=n,D-=257,M=i,T-=257,256):(S=o,M=s,-1),y=Q,m=c,E=_=H=0,p=-1,f=(I=1<<(x=F))-1,1===A&&852<I||2===A&&592<I)return 1;for(;;){for(w=y-E,C=u[_]<B?(v=0,u[_]):u[_]>B?(v=M[T+u[_]],S[D+u[_]]):(v=96,0),h=1<<y-E,Q=g=1<<x;l[m+(H>>E)+(g-=h)]=w<<24|v<<16|C|0,0!==g;);for(h=1<<y-1;H&h;)h>>=1;if(0!==h?(H&=h-1,H+=h):H=0,_++,0==--L[y]){if(y===U)break;y=e[t+u[_]]}if(F<y&&(H&f)!==p){for(0===E&&(E=F),m+=Q,k=1<<(x=y-E);x+E<U&&!((k-=L[x+E])<=0);)x++,k<<=1;if(I+=1<<x,1===A&&852<I||2===A&&592<I)return 1;l[p=H&f]=F<<24|x<<16|m-c|0}}return 0!==H&&(l[m+H]=y-E<<24|64<<16|0),d.bits=F,0}},{"../utils/common":41}],51:[function(A,e,t){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(A,e,t){"use strict";var r=A("../utils/common"),n=0,i=1;function o(A){for(var e=A.length;0<=--e;)A[e]=0}var s=0,a=29,l=256,c=l+1+a,u=30,d=19,h=2*c+1,g=15,p=16,f=7,m=256,B=16,w=17,v=18,C=[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],b=[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],y=[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*u);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,H,S=new Array(u);function D(A,e,t,r,n){this.static_tree=A,this.extra_bits=e,this.extra_base=t,this.elems=r,this.max_length=n,this.has_stree=A&&A.length}function L(A,e){this.dyn_tree=A,this.max_code=0,this.stat_desc=e}function O(A){return A<256?F[A]:F[256+(A>>>7)]}function M(A,e){A.pending_buf[A.pending++]=255&e,A.pending_buf[A.pending++]=e>>>8&255}function T(A,e,t){A.bi_valid>p-t?(A.bi_buf|=e<<A.bi_valid&65535,M(A,A.bi_buf),A.bi_buf=e>>p-A.bi_valid,A.bi_valid+=t-p):(A.bi_buf|=e<<A.bi_valid&65535,A.bi_valid+=t)}function K(A,e,t){T(A,t[2*e],t[2*e+1])}function N(A,e){for(var t=0;t|=1&A,A>>>=1,t<<=1,0<--e;);return t>>>1}function P(A,e,t){var r,n,i=new Array(g+1),o=0;for(r=1;r<=g;r++)i[r]=o=o+t[r-1]<<1;for(n=0;n<=e;n++){var s=A[2*n+1];0!==s&&(A[2*n]=N(i[s]++,s))}}function R(A){var e;for(e=0;e<c;e++)A.dyn_ltree[2*e]=0;for(e=0;e<u;e++)A.dyn_dtree[2*e]=0;for(e=0;e<d;e++)A.bl_tree[2*e]=0;A.dyn_ltree[2*m]=1,A.opt_len=A.static_len=0,A.last_lit=A.matches=0}function V(A){8<A.bi_valid?M(A,A.bi_buf):0<A.bi_valid&&(A.pending_buf[A.pending++]=A.bi_buf),A.bi_buf=0,A.bi_valid=0}function G(A,e,t,r){var n=2*e,i=2*t;return A[n]<A[i]||A[n]===A[i]&&r[e]<=r[t]}function j(A,e,t){for(var r=A.heap[t],n=t<<1;n<=A.heap_len&&(n<A.heap_len&&G(e,A.heap[n+1],A.heap[n],A.depth)&&n++,!G(e,r,A.heap[n],A.depth));)A.heap[t]=A.heap[n],t=n,n<<=1;A.heap[t]=r}function z(A,e,t){var r,n,i,o,s=0;if(0!==A.last_lit)for(;r=A.pending_buf[A.d_buf+2*s]<<8|A.pending_buf[A.d_buf+2*s+1],n=A.pending_buf[A.l_buf+s],s++,0===r?K(A,n,e):(K(A,(i=x[n])+l+1,e),0!==(o=C[i])&&T(A,n-=E[i],o),K(A,i=O(--r),t),0!==(o=b[i])&&T(A,r-=S[i],o)),s<A.last_lit;);K(A,m,e)}function Z(A,e){var t,r,n,i=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,a=e.stat_desc.elems,l=-1;for(A.heap_len=0,A.heap_max=h,t=0;t<a;t++)0!==i[2*t]?(A.heap[++A.heap_len]=l=t,A.depth[t]=0):i[2*t+1]=0;for(;A.heap_len<2;)i[2*(n=A.heap[++A.heap_len]=l<2?++l:0)]=1,A.depth[n]=0,A.opt_len--,s&&(A.static_len-=o[2*n+1]);for(e.max_code=l,t=A.heap_len>>1;1<=t;t--)j(A,i,t);for(n=a;t=A.heap[1],A.heap[1]=A.heap[A.heap_len--],j(A,i,1),r=A.heap[1],A.heap[--A.heap_max]=t,A.heap[--A.heap_max]=r,i[2*n]=i[2*t]+i[2*r],A.depth[n]=(A.depth[t]>=A.depth[r]?A.depth[t]:A.depth[r])+1,i[2*t+1]=i[2*r+1]=n,A.heap[1]=n++,j(A,i,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],function(A,e){var t,r,n,i,o,s,a=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,u=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,f=e.stat_desc.max_length,m=0;for(i=0;i<=g;i++)A.bl_count[i]=0;for(a[2*A.heap[A.heap_max]+1]=0,t=A.heap_max+1;t<h;t++)f<(i=a[2*a[2*(r=A.heap[t])+1]+1]+1)&&(i=f,m++),a[2*r+1]=i,l<r||(A.bl_count[i]++,o=0,p<=r&&(o=d[r-p]),s=a[2*r],A.opt_len+=s*(i+o),u&&(A.static_len+=s*(c[2*r+1]+o)));if(0!==m){do{for(i=f-1;0===A.bl_count[i];)i--;A.bl_count[i]--,A.bl_count[i+1]+=2,A.bl_count[f]--,m-=2}while(0<m);for(i=f;0!==i;i--)for(r=A.bl_count[i];0!==r;)l<(n=A.heap[--t])||(a[2*n+1]!==i&&(A.opt_len+=(i-a[2*n+1])*a[2*n],a[2*n+1]=i),r--)}}(A,e),P(i,l,A.bl_count)}function W(A,e,t){var r,n,i=-1,o=e[1],s=0,a=7,l=4;for(0===o&&(a=138,l=3),e[2*(t+1)+1]=65535,r=0;r<=t;r++)n=o,o=e[2*(r+1)+1],++s<a&&n===o||(s<l?A.bl_tree[2*n]+=s:0!==n?(n!==i&&A.bl_tree[2*n]++,A.bl_tree[2*B]++):s<=10?A.bl_tree[2*w]++:A.bl_tree[2*v]++,i=n,l=(s=0)===o?(a=138,3):n===o?(a=6,3):(a=7,4))}function X(A,e,t){var r,n,i=-1,o=e[1],s=0,a=7,l=4;for(0===o&&(a=138,l=3),r=0;r<=t;r++)if(n=o,o=e[2*(r+1)+1],!(++s<a&&n===o)){if(s<l)for(;K(A,n,A.bl_tree),0!=--s;);else 0!==n?(n!==i&&(K(A,n,A.bl_tree),s--),K(A,B,A.bl_tree),T(A,s-3,2)):s<=10?(K(A,w,A.bl_tree),T(A,s-3,3)):(K(A,v,A.bl_tree),T(A,s-11,7));i=n,l=(s=0)===o?(a=138,3):n===o?(a=6,3):(a=7,4)}}o(S);var Y=!1;function J(A,e,t,n){T(A,(s<<1)+(n?1:0),3),function(A,e,t,n){V(A),n&&(M(A,t),M(A,~t)),r.arraySet(A.pending_buf,A.window,e,t,A.pending),A.pending+=t}(A,e,t,!0)}t._tr_init=function(A){Y||(function(){var A,e,t,r,n,i=new Array(g+1);for(r=t=0;r<a-1;r++)for(E[r]=t,A=0;A<1<<C[r];A++)x[t++]=r;for(x[t-1]=r,r=n=0;r<16;r++)for(S[r]=n,A=0;A<1<<b[r];A++)F[n++]=r;for(n>>=7;r<u;r++)for(S[r]=n<<7,A=0;A<1<<b[r]-7;A++)F[256+n++]=r;for(e=0;e<=g;e++)i[e]=0;for(A=0;A<=143;)Q[2*A+1]=8,A++,i[8]++;for(;A<=255;)Q[2*A+1]=9,A++,i[9]++;for(;A<=279;)Q[2*A+1]=7,A++,i[7]++;for(;A<=287;)Q[2*A+1]=8,A++,i[8]++;for(P(Q,c+1,i),A=0;A<u;A++)U[2*A+1]=5,U[2*A]=N(A,5);k=new D(Q,C,l+1,c,g),I=new D(U,b,0,u,g),H=new D(new Array(0),y,0,d,f)}(),Y=!0),A.l_desc=new L(A.dyn_ltree,k),A.d_desc=new L(A.dyn_dtree,I),A.bl_desc=new L(A.bl_tree,H),A.bi_buf=0,A.bi_valid=0,R(A)},t._tr_stored_block=J,t._tr_flush_block=function(A,e,t,r){var o,s,a=0;0<A.level?(2===A.strm.data_type&&(A.strm.data_type=function(A){var e,t=4093624447;for(e=0;e<=31;e++,t>>>=1)if(1&t&&0!==A.dyn_ltree[2*e])return n;if(0!==A.dyn_ltree[18]||0!==A.dyn_ltree[20]||0!==A.dyn_ltree[26])return i;for(e=32;e<l;e++)if(0!==A.dyn_ltree[2*e])return i;return n}(A)),Z(A,A.l_desc),Z(A,A.d_desc),a=function(A){var e;for(W(A,A.dyn_ltree,A.l_desc.max_code),W(A,A.dyn_dtree,A.d_desc.max_code),Z(A,A.bl_desc),e=d-1;3<=e&&0===A.bl_tree[2*_[e]+1];e--);return A.opt_len+=3*(e+1)+5+5+4,e}(A),o=A.opt_len+3+7>>>3,(s=A.static_len+3+7>>>3)<=o&&(o=s)):o=s=t+5,t+4<=o&&-1!==e?J(A,e,t,r):4===A.strategy||s===o?(T(A,2+(r?1:0),3),z(A,Q,U)):(T(A,4+(r?1:0),3),function(A,e,t,r){var n;for(T(A,e-257,5),T(A,t-1,5),T(A,r-4,4),n=0;n<r;n++)T(A,A.bl_tree[2*_[n]+1],3);X(A,A.dyn_ltree,e-1),X(A,A.dyn_dtree,t-1)}(A,A.l_desc.max_code+1,A.d_desc.max_code+1,a+1),z(A,A.dyn_ltree,A.dyn_dtree)),R(A),r&&V(A)},t._tr_tally=function(A,e,t){return A.pending_buf[A.d_buf+2*A.last_lit]=e>>>8&255,A.pending_buf[A.d_buf+2*A.last_lit+1]=255&e,A.pending_buf[A.l_buf+A.last_lit]=255&t,A.last_lit++,0===e?A.dyn_ltree[2*t]++:(A.matches++,e--,A.dyn_ltree[2*(x[t]+l+1)]++,A.dyn_dtree[2*O(e)]++),A.last_lit===A.lit_bufsize-1},t._tr_align=function(A){T(A,2,3),K(A,m,Q),function(A){16===A.bi_valid?(M(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):8<=A.bi_valid&&(A.pending_buf[A.pending++]=255&A.bi_buf,A.bi_buf>>=8,A.bi_valid-=8)}(A)}},{"../utils/common":41}],53:[function(A,e,t){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(A,e,r){(function(A){!function(A,e){"use strict";if(!A.setImmediate){var t,r,n,i,o=1,s={},a=!1,l=A.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(A);c=c&&c.setTimeout?c:A,t="[object process]"==={}.toString.call(A.process)?function(A){process.nextTick((function(){d(A)}))}:function(){if(A.postMessage&&!A.importScripts){var e=!0,t=A.onmessage;return A.onmessage=function(){e=!1},A.postMessage("","*"),A.onmessage=t,e}}()?(i="setImmediate$"+Math.random()+"$",A.addEventListener?A.addEventListener("message",h,!1):A.attachEvent("onmessage",h),function(e){A.postMessage(i+e,"*")}):A.MessageChannel?((n=new MessageChannel).port1.onmessage=function(A){d(A.data)},function(A){n.port2.postMessage(A)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,function(A){var e=l.createElement("script");e.onreadystatechange=function(){d(A),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(A){setTimeout(d,0,A)},c.setImmediate=function(A){"function"!=typeof A&&(A=new Function(""+A));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:A,args:e};return s[o]=n,t(o),o++},c.clearImmediate=u}function u(A){delete s[A]}function d(A){if(a)setTimeout(d,0,A);else{var t=s[A];if(t){a=!0;try{!function(A){var t=A.callback,r=A.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(e,r)}}(t)}finally{u(A),a=!1}}}}function h(e){e.source===A&&"string"==typeof e.data&&0===e.data.indexOf(i)&&d(+e.data.slice(i.length))}}("undefined"==typeof self?void 0===A?this:A:self)}).call(this,"undefined"!=typeof t.g?t.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))},6243:function(A){if(!e)var e={map:function(A,e){var t={};return e?A.map((function(A,r){return t.index=r,e.call(t,A)})):A.slice()},naturalOrder:function(A,e){return A<e?-1:A>e?1:0},sum:function(A,e){var t={};return A.reduce(e?function(A,r,n){return t.index=n,A+e.call(t,r)}:function(A,e){return A+e},0)},max:function(A,t){return Math.max.apply(null,t?e.map(A,t):A)}};var t=function(){var A=5,t=8-A,r=1e3,n=.75;function i(e,t,r){return(e<<2*A)+(t<<A)+r}function o(A){var e=[],t=!1;function r(){e.sort(A),t=!0}return{push:function(A){e.push(A),t=!1},peek:function(A){return t||r(),void 0===A&&(A=e.length-1),e[A]},pop:function(){return t||r(),e.pop()},size:function(){return e.length},map:function(A){return e.map(A)},debug:function(){return t||r(),e}}}function s(A,e,t,r,n,i,o){var s=this;s.r1=A,s.r2=e,s.g1=t,s.g2=r,s.b1=n,s.b2=i,s.histo=o}function a(){this.vboxes=new o((function(A,t){return e.naturalOrder(A.vbox.count()*A.vbox.volume(),t.vbox.count()*t.vbox.volume())}))}function l(e){var r,n,o,s,a=1<<3*A,l=new Array(a);return e.forEach((function(A){n=A[0]>>t,o=A[1]>>t,s=A[2]>>t,r=i(n,o,s),l[r]=(l[r]||0)+1})),l}function c(A,e){var r,n,i,o=1e6,a=0,l=1e6,c=0,u=1e6,d=0;return A.forEach((function(A){r=A[0]>>t,n=A[1]>>t,i=A[2]>>t,r<o?o=r:r>a&&(a=r),n<l?l=n:n>c&&(c=n),i<u?u=i:i>d&&(d=i)})),new s(o,a,l,c,u,d,e)}function u(A,t){if(t.count()){var r=t.r2-t.r1+1,n=t.g2-t.g1+1,o=t.b2-t.b1+1,s=e.max([r,n,o]);if(1==t.count())return[t.copy()];var a,l,c,u,d,h=0,g=[],p=[];if(s==r)for(a=t.r1;a<=t.r2;a++){for(u=0,l=t.g1;l<=t.g2;l++)for(c=t.b1;c<=t.b2;c++)d=i(a,l,c),u+=A[d]||0;h+=u,g[a]=h}else if(s==n)for(a=t.g1;a<=t.g2;a++){for(u=0,l=t.r1;l<=t.r2;l++)for(c=t.b1;c<=t.b2;c++)d=i(l,a,c),u+=A[d]||0;h+=u,g[a]=h}else for(a=t.b1;a<=t.b2;a++){for(u=0,l=t.r1;l<=t.r2;l++)for(c=t.g1;c<=t.g2;c++)d=i(l,c,a),u+=A[d]||0;h+=u,g[a]=h}return g.forEach((function(A,e){p[e]=h-A})),f(s==r?"r":s==n?"g":"b")}function f(A){var e,r,n,i,o,s=A+"1",l=A+"2",c=0;for(a=t[s];a<=t[l];a++)if(g[a]>h/2){n=t.copy(),i=t.copy(),e=a-t[s],r=t[l]-a,o=e<=r?Math.min(t[l]-1,~~(a+r/2)):Math.max(t[s],~~(a-1-e/2));while(!g[o])o++;c=p[o];while(!c&&g[o-1])c=p[--o];return n[l]=o,i[s]=n[l]+1,[n,i]}}}function d(A,t){if(!A.length||t<2||t>256)return!1;var i=l(A);i.forEach((function(){0}));var s=c(A,i),d=new o((function(A,t){return e.naturalOrder(A.count(),t.count())}));function h(A,e){var t,n=1,o=0;while(o<r)if(t=A.pop(),t.count()){var s=u(i,t),a=s[0],l=s[1];if(!a)return;if(A.push(a),l&&(A.push(l),n++),n>=e)return;if(o++>r)return}else A.push(t),o++}d.push(s),h(d,n*t);var g=new o((function(A,t){return e.naturalOrder(A.count()*A.volume(),t.count()*t.volume())}));while(d.size())g.push(d.pop());h(g,t-g.size());var p=new a;while(g.size())p.push(g.pop());return p}return s.prototype={volume:function(A){var e=this;return e._volume&&!A||(e._volume=(e.r2-e.r1+1)*(e.g2-e.g1+1)*(e.b2-e.b1+1)),e._volume},count:function(A){var e=this,t=e.histo;if(!e._count_set||A){var r,n,o,s,a=0;for(r=e.r1;r<=e.r2;r++)for(n=e.g1;n<=e.g2;n++)for(o=e.b1;o<=e.b2;o++)s=i(r,n,o),a+=t[s]||0;e._count=a,e._count_set=!0}return e._count},copy:function(){var A=this;return new s(A.r1,A.r2,A.g1,A.g2,A.b1,A.b2,A.histo)},avg:function(e){var t=this,r=t.histo;if(!t._avg||e){var n,o,s,a,l,c=0,u=1<<8-A,d=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=i(o,s,a),n=r[l]||0,c+=n,d+=n*(o+.5)*u,h+=n*(s+.5)*u,g+=n*(a+.5)*u;t._avg=c?[~~(d/c),~~(h/c),~~(g/c)]:[~~(u*(t.r1+t.r2+1)/2),~~(u*(t.g1+t.g2+1)/2),~~(u*(t.b1+t.b2+1)/2)]}return t._avg},contains:function(A){var e=this,r=A[0]>>t;return gval=A[1]>>t,bval=A[2]>>t,r>=e.r1&&r<=e.r2&&gval>=e.g1&&gval<=e.g2&&bval>=e.b1&&bval<=e.b2}},a.prototype={push:function(A){this.vboxes.push({vbox:A,color:A.avg()})},palette:function(){return this.vboxes.map((function(A){return A.color}))},size:function(){return this.vboxes.size()},map:function(A){for(var e=this.vboxes,t=0;t<e.size();t++)if(e.peek(t).vbox.contains(A))return e.peek(t).color;return this.nearest(A)},nearest:function(A){for(var e,t,r,n=this.vboxes,i=0;i<n.size();i++)t=Math.sqrt(Math.pow(A[0]-n.peek(i).color[0],2)+Math.pow(A[1]-n.peek(i).color[1],2)+Math.pow(A[2]-n.peek(i).color[2],2)),(t<e||void 0===e)&&(e=t,r=n.peek(i).color);return r},forcebw:function(){var A=this.vboxes;A.sort((function(A,t){return e.naturalOrder(e.sum(A.color),e.sum(t.color))}));var t=A[0].color;t[0]<5&&t[1]<5&&t[2]<5&&(A[0].color=[0,0,0]);var r=A.length-1,n=A[r].color;n[0]>251&&n[1]>251&&n[2]>251&&(A[r].color=[255,255,255])}},{quantize:d}}();A.exports=t.quantize},8233:function(A,e,t){"use strict";t.r(e),t.d(e,{default:function(){return ku}});var r=t(6252),n=t(3577),o=t(9963);const s=A=>((0,r.dD)("data-v-2d303a36"),A=A(),(0,r.Cn)(),A),a={class:"home_page"},l={class:"page_content"},c={class:"page_content_body"},u={class:"home_page_body"},d={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"},C={class:"right_top"},b={class:"right_top_left"},y={class:"right_content_block"},_={class:"right_content_header"},Q={class:"content_header_left"},U=s((()=>(0,r._)("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={class:"content_img_flex"},H=["src"],S=["onClick"],D={class:"right_content_header"},L={class:"content_header_left"},O=s((()=>(0,r._)("i",{class:"fi fi-rs-comments"},null,-1))),M={class:"content_header_des"},T={class:"right_content_body"},K={class:"right_content_img_item",id:"right_content_img_block"},N=["onClick","onDragstart","onDrop"],P={class:"content_img_flex"},R=["src"],V=["onClick"],G={class:"mark_loading"},j={class:"progress_mark"},z={class:"mark_content"};function Z(A,e,t,i,s,Z){const W=(0,r.up)("HeaderComponent"),X=(0,r.up)("a-spin"),Y=(0,r.up)("NewCollectionReview"),J=(0,r.up)("CollectionModal"),$=(0,r.up)("DesignDetail"),q=(0,r.up)("ExportNewCoolection"),AA=(0,r.up)("a-progress"),eA=(0,r.up)("RobotAssist"),tA=(0,r.Q2)("mousewheel");return(0,r.wg)(),(0,r.iD)("div",a,[(0,r.Wm)(W),(0,r._)("div",l,[(0,r._)("div",c,[(0,r._)("div",u,[(0,r._)("div",d,[(0,r._)("div",h,[(0,r.wy)((0,r._)("div",g,[(0,r._)("div",null,[(0,r._)("div",{class:"new_collection_button",onClick:e[0]||(e[0]=e=>A.startNewCollection())},(0,n.zw)(A.$t("HomeView.GetStarted")),1)]),(0,r.wy)((0,r._)("div",p,[(0,r.Wm)(X,{size:"large"})],512),[[o.F8,A.isFinishLoading]])],512),[[o.F8,!A.isHaveReviewCollection]]),(0,r.wy)((0,r._)("div",f,[(0,r._)("div",m,[(0,r._)("div",{class:"button_second",onClick:e[1]||(e[1]=e=>A.startNewCollection())},(0,n.zw)(A.$t("HomeView.Start")),1),(0,r._)("div",{class:"button_first button_margin",onClick:e[2]||(e[2]=e=>A.recollection())},(0,n.zw)(A.$t("HomeView.Edit")),1)]),(0,r._)("div",B,[(0,r._)("div",w,[(0,r.Wm)(Y,{id:"collectionReview"})],512)])],512),[[o.F8,A.isHaveReviewCollection]])])]),(0,r._)("div",v,[(0,r._)("div",C,[(0,r._)("div",b,[(0,r._)("div",{class:"button_second",onClick:e[3]||(e[3]=e=>A.designNewCollection())},(0,n.zw)(A.$t("HomeView.Design")),1),(0,r.wy)((0,r._)("div",{class:"button_first button_margin_14",onClick:e[4]||(e[4]=e=>A.resDesignCollection())},(0,n.zw)(A.$t("HomeView.Redesign")),513),[[o.F8,A.designCollectionId]])])]),(0,r._)("div",y,[(0,r._)("div",_,[(0,r._)("div",Q,[U,(0,r._)("span",F,(0,n.zw)(A.$t("HomeView.GeneratedDesign")),1)])]),(0,r._)("div",x,[(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["right_content_img_block scroll_style",{active:0!=A.designCollectionList.length}])},[(0,r._)("div",E,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.designCollectionList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"content_img_block",key:e?.designItemId,onClick:r=>A.designDetail(e,t,A.designCollectionList,"dislike")},[(0,r._)("div",I,[(0,r._)("img",{class:"content_img",src:e.designOutfitUrl},null,8,H)]),(0,r._)("div",{class:"icon iconfont icon-jushoucang icon_like",onClick:(0,o.iM)((r=>A.likeDesignCollection(e,t)),["stop"])},null,8,S)],8,k)))),128))])],2)),[[tA]])]),(0,r._)("div",D,[(0,r._)("div",L,[O,(0,r._)("span",M,(0,n.zw)(A.$t("HomeView.SelectedDesign")),1)]),(0,r.wy)((0,r._)("div",{class:"button_second",onClick:e[5]||(e[5]=e=>A.exportCanvas())},(0,n.zw)(A.$t("HomeView.Export")),513),[[o.F8,A.likeDesignCollectionList.length]])]),(0,r._)("div",T,[(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["right_content_img_block scroll_style",{active:0!=A.likeDesignCollectionList.length}])},[(0,r._)("div",K,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.likeDesignCollectionList,((t,n)=>((0,r.wg)(),(0,r.iD)("div",{class:"content_img_block",draggable:"",key:t.id,onClick:e=>A.designDetail(t,n,A.likeDesignCollectionList,"like"),onDragstart:e=>A.dragstart(e,n),onDragover:e[6]||(e[6]=(0,o.iM)((()=>{}),["prevent"])),onDrop:e=>A.dragDrop(e,n)},[(0,r._)("div",P,[((0,r.wg)(),(0,r.iD)("img",{class:"content_img",src:t.designOutfitUrl,key:t.designOutfitUrl},null,8,R))]),(0,r._)("div",{class:"icon iconfont icon-jushoucanggift icon_like",onClick:(0,o.iM)((e=>A.dislikeDesignCollection(t,n)),["stop"])},null,8,V)],40,N)))),128))])],2)),[[tA]])])])])])])]),(0,r.Wm)(J,{ref:"collectionModal",onFinishCollection:e[7]||(e[7]=e=>A.finishCollection())},null,512),(0,r.Wm)($,{ref:"designDetail",onFinishRedesign:A.finishRedesign},null,8,["onFinishRedesign"]),(0,r.Wm)(q,{id:"exportNewCoolection"}),(0,r.wy)((0,r._)("div",G,[(0,r.Wm)(X,{size:"large"})],512),[[o.F8,A.isShowMark]]),(0,r.wy)((0,r._)("div",j,[(0,r._)("div",z,[(0,r.Wm)(AA,{type:"circle",percent:A.designProgress,strokeColor:"#341e57",width:200},null,8,["percent"]),(0,r._)("div",null,[(0,r.Wm)(X,{indicator:A.indicator},null,8,["indicator"])])])],512),[[o.F8,A.showDesignMark]]),(0,r.Wm)(eA)])}var W=t(1209);const X=A=>((0,r.dD)("data-v-55dd008a"),A=A(),(0,r.Cn)(),A),Y={key:0},J={class:"collection_title"},$={class:"collection_title_text"},q={class:"collection_progress"},AA=X((()=>(0,r._)("i",{class:"fi fi-rr-cross-small"},null,-1))),eA=[AA],tA={class:"collection_page"},rA={class:"collection_modal_body"};function nA(A,e,t,i,s,a){const l=(0,r.up)("a-progress"),c=(0,r.up)("MoodboardUpload"),u=(0,r.up)("PrintboardUpload"),d=(0,r.up)("ColorboardUpload"),h=(0,r.up)("SketchboardUpload"),g=(0,r.up)("a-modal");return A.showCollectionModal?((0,r.wg)(),(0,r.iD)("div",Y,[(0,r.Wm)(g,{class:"modal_component collection_modal",visible:A.showCollectionModal,"onUpdate:visible":e[4]||(e[4]=e=>A.showCollectionModal=e),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,wrapClassName:"#app"},{default:(0,r.w5)((()=>[(0,r._)("div",J,[(0,r._)("div",$,[(0,r.wy)((0,r._)("div",null,(0,n.zw)(A.$t("collectionModal.Moodboard")),513),[[o.F8,1===A.collectionStep]]),(0,r.wy)((0,r._)("div",null,(0,n.zw)(A.$t("collectionModal.Printboard")),513),[[o.F8,2===A.collectionStep]]),(0,r.wy)((0,r._)("div",null,(0,n.zw)(A.$t("collectionModal.Colorboard")),513),[[o.F8,3===A.collectionStep]]),(0,r.wy)((0,r._)("div",null,(0,n.zw)(A.$t("collectionModal.Sketchboard")),513),[[o.F8,4===A.collectionStep]]),(0,r.wy)((0,r._)("div",{class:"collection_title_text_intro"},(0,n.zw)(A.$t("collectionModal.MoodCollection")),513),[[o.F8,1===A.collectionStep]]),(0,r.wy)((0,r._)("div",{class:"collection_title_text_intro"},(0,n.zw)(A.$t("collectionModal.PrinCollection")),513),[[o.F8,2===A.collectionStep]]),(0,r.wy)((0,r._)("div",{class:"collection_title_text_intro"},(0,n.zw)(A.$t("collectionModal.ColorCollection")),513),[[o.F8,3===A.collectionStep]]),(0,r.wy)((0,r._)("div",{class:"collection_title_text_intro"},(0,n.zw)(A.$t("collectionModal.SketchCollection")),513),[[o.F8,4===A.collectionStep]])]),(0,r._)("div",q,[(0,r.Wm)(l,{strokeWidth:13,strokeColor:"#341e57",type:"circle",percent:25*A.collectionStep,format:e=>`${A.collectionStep}/4`},null,8,["percent","format"])])]),(0,r._)("div",{class:"collection_closeIcon",onClick:e[0]||(e[0]=(0,o.iM)((e=>A.cancelDsign()),["stop"]))},eA),(0,r._)("div",tA,[(0,r.wy)((0,r._)("i",{class:"fi fi-rr-arrow-small-left",onClick:e[1]||(e[1]=e=>A.lastStep())},null,512),[[o.F8,A.collectionStep>1]]),A.collectionStep<4?((0,r.wg)(),(0,r.iD)("i",{key:0,class:"fi fi-rr-arrow-small-right",onClick:e[2]||(e[2]=(0,o.iM)((e=>A.nextStep()),["stop"]))})):((0,r.wg)(),(0,r.iD)("i",{key:1,class:"fi fi-rr-check",onClick:e[3]||(e[3]=(0,o.iM)((e=>A.finishCollection()),["stop"]))}))]),(0,r._)("div",rA,[(0,r.wy)((0,r.Wm)(c,{ref:"MoodboardUpload"},null,512),[[o.F8,1===A.collectionStep]]),(0,r.wy)((0,r.Wm)(u,{ref:"PrintboardUpload"},null,512),[[o.F8,2===A.collectionStep]]),(0,r.wy)((0,r.Wm)(d,{ref:"ColorboardUpload"},null,512),[[o.F8,3===A.collectionStep]]),(0,r.wy)((0,r.Wm)(h,{ref:"SketchboardUpload"},null,512),[[o.F8,4===A.collectionStep]])])])),_:1},8,["visible"])])):(0,r.kq)("",!0)}const iA={class:"generate"},oA={key:0,class:"generate_checkbox"},sA={key:0,class:"printModel"},aA=["placeholder","maxlength"],lA={key:2,class:"generage_img"},cA={class:"upload_item"},uA=["onClick"],dA={class:"upload_file_item_content"},hA={class:"upload_file_item_content"},gA=["src"],pA={key:0,class:"operate_file_block"},fA={class:"select_img_type"},mA=["onClick"],BA={class:"category_list"},wA=["onClick"],vA=["onClick"],CA=(0,r._)("span",{class:"icon iconfont icon-shanchu"},null,-1),bA=[CA],yA={class:"upload_file_item upload_component"},_A={class:"upload_tip_block"},QA=(0,r._)("i",{class:"fi fi-br-upload"},null,-1),UA=[QA],FA={key:3,class:"generage_img"},xA=["onClick"],EA={alt:""},kA={class:"delete_like_file_block"},IA=["onClick"],HA=["onClick"],SA={class:"mark_loading"};function DA(A,e,t,i,s,a){const l=(0,r.up)("a-spin"),c=(0,r.up)("a-upload"),u=(0,r.Q2)("lazy");return(0,r.wg)(),(0,r.iD)("div",iA,["Sketchboard"==A.type_.type2||"Printboard"==A.type_.type2?((0,r.wg)(),(0,r.iD)("div",oA,[(0,r._)("div",null,[(0,r._)("label",null,[(0,r.wy)((0,r._)("input",{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=e=>A.checkbox[0].type=e),onClick:e[1]||(e[1]=e=>A.setKeyword(0))},null,512),[[o.e8,A.checkbox[0].type]]),(0,r._)("span",null,(0,n.zw)(A.$t("Generate.ImageOnly")),1)])]),(0,r._)("div",null,[(0,r._)("label",null,[(0,r.wy)((0,r._)("input",{type:"checkbox","onUpdate:modelValue":e[2]||(e[2]=e=>A.checkbox[1].type=e),onClick:e[3]||(e[3]=e=>A.setKeyword(1))},null,512),[[o.e8,A.checkbox[1].type]]),(0,r._)("span",null,(0,n.zw)(A.$t("Generate.TextOnly")),1)])]),(0,r._)("div",null,[(0,r._)("label",null,[(0,r.wy)((0,r._)("input",{type:"checkbox","onUpdate:modelValue":e[4]||(e[4]=e=>A.checkbox[2].type=e),onClick:e[5]||(e[5]=e=>A.setKeyword(2))},null,512),[[o.e8,A.checkbox[2].type]]),(0,r._)("span",null,(0,n.zw)(A.$t("Generate.TextImage")),1)])]),"Printboard"==A.type_.type2?((0,r.wg)(),(0,r.iD)("div",sA,[(0,r._)("div",{onClick:e[6]||(e[6]=(0,o.iM)(((...e)=>A.PrintModel&&A.PrintModel(...e)),["stop"]))},(0,n.zw)(A.printModel.name),1),(0,r.wy)((0,r._)("ul",null,[(0,r._)("li",{class:"printModel_item",onClick:e[7]||(e[7]=e=>A.setprintModel(1))},(0,n.zw)(A.$t("Generate.Model1")),1),(0,r._)("li",{class:"printModel_item",onClick:e[8]||(e[8]=e=>A.setprintModel(2))},(0,n.zw)(A.$t("Generate.Model2")),1)],512),[[o.F8,A.printModel.optype]])])):(0,r.kq)("",!0)])):((0,r.wg)(),(0,r.iD)("div",{key:1,class:(0,n.C_)(["input_box",{active:A.inputShow}])},[(0,r.wy)((0,r._)("input",{class:"search_input",onInput:e[9]||(e[9]=(...e)=>A.ifMaximumLength&&A.ifMaximumLength(...e)),placeholder:A.$t("Generate.inputContent1"),maxlength:A.inputShow?0:9999,"onUpdate:modelValue":e[10]||(e[10]=e=>A.searchPictureName=e),onKeydown:e[11]||(e[11]=(0,o.D2)((e=>A.getgenerate()),["enter"]))},null,40,aA),[[o.nr,A.searchPictureName]]),(0,r._)("div",{class:"generage_btn started_btn",onClick:e[12]||(e[12]=(0,o.iM)(((...e)=>A.getgenerate&&A.getgenerate(...e)),["stop"]))},(0,n.zw)(A.$t("Generate.Generate")),1),(0,r._)("span",null,(0,n.zw)(A.$t("Generate.maximumLength")),1)],2)),"Sketchboard"==A.type_.type2||"Printboard"==A.type_.type2?((0,r.wg)(),(0,r.iD)("div",lA,[(0,r._)("div",cA,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.sketchboardList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["upload_file_item",[e?.checked?"active":"",A.checkboxImage?"forbidden":""]]),key:e,onClick:(0,o.iM)((t=>A.setSketchboardItem(e)),["stop"])},[(0,r.wy)((0,r._)("div",dA,[(0,r.Wm)(l,{indicator:A.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===e?.status]]),(0,r.wy)((0,r._)("div",hA,[(0,r._)("img",{src:e?.imgUrl,class:"upload_img"},null,8,gA),"Sketchboard"==A.type_.type2?((0,r.wg)(),(0,r.iD)("div",pA,[(0,r._)("div",fA,[(0,r._)("div",{class:"select_category",onClick:(0,o.iM)((t=>A.showFileCategory(e)),["stop"])},[(0,r.Uk)((0,n.zw)(e.category)+" ",1),(0,r._)("div",{class:(0,n.C_)(["icon","iconfont","icon-xiala",e.categoryShow?"icon_rotate":""])},null,2)],8,mA),(0,r.wy)((0,r._)("div",BA,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.sketchCatecoryList,((t,i)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["category_item",e.category==t.value?"select_category_item":""]),key:i,onClick:(0,o.iM)((r=>A.selectFileCategory(e,t)),["stop"])},(0,n.zw)(t.label),11,wA)))),128))],512),[[o.F8,e.categoryShow]])])])):(0,r.kq)("",!0),(0,r._)("div",{class:"delete_file_block",onClick:e=>A.deleteFile(t)},bA,8,vA)],512),[[o.F8,"done"===e?.status]])],10,uA)))),128)),(0,r.wy)((0,r._)("div",yA,[(0,r.Wm)(c,{action:A.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...A.upload},disabled:A.checkbox[1].type,headers:{Authorization:A.token},"file-list":A.sketchboardList,"onUpdate:file-list":e[13]||(e[13]=e=>A.sketchboardList=e),"before-upload":A.beforeUpload,multiple:"",maxCount:8-A.sketchboardList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:e[14]||(e[14]=e=>A.fileUploadChange(e))},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",_A,UA,512),[[o.F8,8!=A.sketchboardList.length]])])),_:1},8,["action","data","disabled","headers","file-list","before-upload","maxCount"])],512),[[o.F8,8!=A.sketchboardList.length]])])])):((0,r.wg)(),(0,r.iD)("div",FA,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.fileList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["generage_img_item",{active:e?.checked}]),key:e.imgUrl,onClick:t=>A.generageAdd(e)},[(0,r.wy)((0,r._)("img",EA,null,512),[[u,e.imgUrl]]),(0,r._)("div",kA,[e.like?((0,r.wg)(),(0,r.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((t=>A.likeFile(e,"noLike")),["stop"])},null,8,HA)):((0,r.wg)(),(0,r.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((t=>A.likeFile(e,"like")),["stop"])},null,8,IA))])],10,xA)))),128)),(0,r.wy)((0,r._)("div",SA,[(0,r.Wm)(l,{size:"large"})],512),[[o.F8,A.loadingShow]])]))])}var LA=t(320),OA=t(1446),MA=t(4873),TA=t(2262),KA=t(9185),NA=t(3907),PA={id:1,testUrl:"http://192.168.1.5:10086",zIndex:2,setColor:(A,e,t)=>new Promise((r=>{var n=void 0==t?.min?5:t.min,i=void 0==t?.max?5:t.max,o=new Image;o.src=e,o.onload=()=>{const e=o.width,t=o.height,s=document.createElement("canvas");s.width=e,s.height=t;var a=s.getContext("2d");a.drawImage(o,0,0);var l=a.getImageData(0,0,e,t),c=[];for(let r=0;r<A.length;r++){var u=0;for(let e=0;e<l.data.length;e+=4){var d=l.data[e],h=l.data[e+1],g=l.data[e+2];l.data[e+3];d-n<A[r][0]&&d+i>A[r][0]&&h-n<A[r][1]&&h+i>A[r][1]&&g-n<A[r][2]&&g+i>A[r][2]&&u++}let o={rgb:A[r],ratio:parseInt(String((u/(e*t)*100).toFixed(6)))};c.push(o)}r({width:e,height:t,ratio:c})}}))},RA=t(3699),VA=t(7064),GA=t(8552),jA=(0,r.aZ)({props:["msg","sketchCatecoryList"],setup(){let A=(0,TA.iH)([{name:"image",type:!1},{name:"text",type:!0},{name:"text-image",type:!1}]),e=(0,TA.iH)(),t=(0,TA.iH)([]),r=(0,TA.iH)([]),n=(0,TA.iH)([]),i=(0,TA.iH)(!1),o=(0,TA.iH)(""),s=(0,TA.iH)(1),a=(0,TA.iH)(""),l=(0,TA.iH)(20),c=(0,TA.iH)(0),u=(0,TA.iH)(""),d=(0,TA.iH)(null),h=(0,NA.oR)(),g=(0,TA.iH)([]),p=(0,TA.iH)([]),f=(0,TA.iH)(),m=(0,TA.iH)(""),B=(0,TA.iH)({num:1,optype:!1,name:"model1"}),w=(0,TA.iH)({}),v=(0,TA.iH)(!1),C=(0,TA.iH)(!1),b=(0,TA.iH)(),{t:y}=(0,GA.QT)();return{imgList:t,selectImgList:r,selectImgListIds:n,isShowLoading:i,selectCode:o,currentPage:s,searchPictureName:a,pageSize:l,total:c,searcMaterialhName:u,designType:d,checkbox:A,store:h,fileList:g,sketchboardList:p,collectionElementid:f,level2Type:m,checkboxImage:e,printModel:B,loadingShow:v,workspace:w,inputShow:C,inputTime:b,t:y}},data(A){return{indicator:(0,r.h)(LA.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:A.msg,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",moodboarList:(0,r.Fl)((()=>(0,NA.oR)().state.UploadFilesModule.moodboard)),type_:{type1:"generate",type2:A.msg}}},mounted(){this.token=(0,RA.ej)("token")||"",this.uploadUrl=(0,VA.M$)(),this.workspace=this.store.state.Workspace.workspace},computed:{getSketchLabel(A){return A=>{let e="";for(let t of this.sketchCatecoryList)if(t.value===A){e=t.label;break}return e}}},methods:{generageAdd(A){A.type_=this.type_,A.resData=JSON.parse(JSON.stringify(A)),A.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",A)},beforeUpload(A){const e="image/jpeg"===A.type||"image/png"===A.type||"image/jpg"===A.type||"image/bmp"===A.type;e||OA.ZP.warning(this.t("Generate.jsContent1"));const t=A.size/1024/1024<2;return t||OA.ZP.warning(this.t("Generate.jsContent2")),e&&t||MA.Z.LIST_IGNORE},setKeyword(A){this.checkbox.forEach((A=>{A.type=!1})),(0,r.Y3)().then((()=>{this.checkbox[A].type=!0,this.$emit("generateCheckbox",this.checkbox[0].type),this.checkboxImage=this.checkbox[1].type,this.checkboxImage&&this.sketchboardList.forEach((A=>{A.checked=!1}))}))},PrintModel(){this.printModel.optype||document.addEventListener("click",this.removePrintModel),this.printModel.optype=!this.printModel.optype},removePrintModel(){this.printModel.optype=!1,document.removeEventListener("click",this.removePrintModel)},setprintModel(A){this.printModel={num:A,optype:!1,name:"model"+A}},getgenerate(){if(!this.searchPictureName)return void OA.ZP.warning(this.t("Generate.jsContent3"));if(!this.searchPictureName)return void OA.ZP.warning(this.t("Generate.jsContent5"));{let A=this.searchPictureName.split(/\s+/).length;if(A>75)return void OA.ZP.warning(this.t("Generate.jsContent4"))}let A={generateType:"text",designType:"",collectionElementId:"",level1Type:this.upload.level1Type,level2Type:"",text:this.searchPictureName,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:1,gender:""};this.loadingShow=!0,KA.V.axiosPost(KA.V.httpUrls.sketchAndPrintGenerate,A).then((A=>{if(A){let e;this.fileList=[],A.generatedCollectionItems.forEach(((t,r)=>{e={id:A.generatedCollectionItems[r].generateItemId,imgUrl:A.generatedCollectionItems[r].generateItemUrl},this.fileList.push(e),this.loadingShow=!1}))}})).catch((A=>{this.loadingShow=!1}))},ifMaximumLength(){clearTimeout(this.inputTime);let A=document.getElementsByClassName("generate")[0].getElementsByClassName("input_box")[0];A.getElementsByClassName("search_input")[0];this.inputTime=setTimeout((()=>{this.searchPictureName.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},fileUploadChange(A){let e=A.file;if("done"===e.status){let A=JSON.parse(e.xhr.response);e.id=A.data.id,e.imgUrl=A.data.url,e.resData=A.data,e.type_="upload",e.id_=PA.id++,e.category=this.sketchCatecoryList?.[0]?.value;let t=this.sketchboardList.filter((A=>"done"===A.status)),r=this.store.state.UploadFilesModule.sketchboard;r.length>=8?OA.ZP.warning(this.t("Generate.jsContent6")):this.sketchboardList=t}else if("error"===e.status){let A=-1;this.sketchboardList.forEach(((t,r)=>{e.uid===t.uid&&(A=r)})),A>-1&&this.sketchboardList.splice(A,1),OA.ZP.error(e.name+this.t("Generate.jsContent5"))}},showFileCategory(A){A.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(A,e){A.category=e.value,A.categoryShow=!1},hiddenFileCategory(){for(let A of this.sketchboardList)A.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchboardItem(A){this.checkboxImage||(A.checked?A.checked=!1:(this.sketchboardList.forEach((A=>{A.checked&&(A.checked=!1)})),A.checked=!0),this.collectionElementid=A.id,this.level2Type=A.category)},deleteFile(A){if("generate"==A.type_||"material"==A.type_)A.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",A);else{let e;this.sketchboardList=this.store.state.UploadFilesModule.moodboardFiles,this.store.state.UploadFilesModule.moodboardFiles.forEach(((t,r)=>{t.id_==A.id_&&(e=r)})),this.sketchboardList.splice(e,1),this.store.commit("setSketchboardFile",this.sketchboardList)}},likeFile(A,e){if("like"==e){let e={generateDetailId:A.id,level1Type:"Moodboard",level2Type:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};KA.V.axiosPost(KA.V.httpUrls.generateLike,e).then((e=>{A.like=!0})).catch((A=>{}))}else{let e={generateDetailId:A.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};KA.V.axiosGet(KA.V.httpUrls.generateDislike,{params:e}).then((e=>{A.like=!1})).catch((A=>{}))}},closeModal(){this.searchPictureName="",this.designType=null,this.selectImgList=[],this.selectImgListIds=[],this.imgList=[],this.currentPage=1,this.total=0}}}),zA=t(3744);const ZA=(0,zA.Z)(jA,[["render",DA]]);var WA=ZA;const XA=A=>((0,r.dD)("data-v-da67f9fc"),A=A(),(0,r.Cn)(),A),YA={class:"collection_modal_item"},JA={class:"modal_left"},$A={class:"switch_type_list"},qA={class:"moodboard_body"},Ae={class:"upload_img_body scroll_style"},ee={class:"upload_item"},te={class:"upload_file_item_content"},re={class:"upload_file_item_content"},ne=["src"],ie=["onClick"],oe={class:"upload_file_item upload_component"},se={class:"upload_tip_block"},ae=XA((()=>(0,r._)("i",{class:"fi fi-br-upload"},null,-1))),le=[ae],ce={class:"modal_right"},ue={class:"modal_layout"},de={class:"modal_text"},he={class:"modal_img"},ge=["onClick"],pe=XA((()=>(0,r._)("div",{class:"checked"},[(0,r._)("i",{class:"fi fi-rr-trash"})],-1))),fe={class:"modal_accomplish"},me={class:"modal_text"},Be=XA((()=>(0,r._)("div",null,"Layout of selected moodboard",-1))),we=["src"],ve={key:1,class:"modal_img"},Ce=["src"],be={class:"mark_loading"};function ye(A,e,t,i,s,a){const l=(0,r.up)("a-spin"),c=(0,r.up)("a-upload"),u=(0,r.up)("Material"),d=(0,r.up)("Generate"),h=(0,r.up)("layout"),g=(0,r.Q2)("lazy"),p=(0,r.Q2)("modelImg");return(0,r.wg)(),(0,r.iD)("div",YA,[(0,r._)("div",JA,[(0,r._)("div",$A,[(0,r._)("div",{onClick:e[0]||(e[0]=(0,o.iM)((e=>A.open(1)),["stop"])),class:(0,n.C_)(["switch_type_item",[1==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("MoodboardUpload.Upload")),1)],2),(0,r._)("div",{onClick:e[1]||(e[1]=(0,o.iM)((e=>A.open(2)),["stop"])),class:(0,n.C_)(["switch_type_item",[2==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("MoodboardUpload.Library")),1)],2),(0,r._)("div",{onClick:e[2]||(e[2]=(0,o.iM)((e=>A.open(3)),["stop"])),class:(0,n.C_)(["switch_type_item",[3==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("MoodboardUpload.Generate")),1)],2)]),(0,r.wy)((0,r._)("div",qA,[(0,r._)("div",Ae,[(0,r._)("div",ee,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.fileList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"upload_file_item",key:e},[(0,r.wy)((0,r._)("div",te,[(0,r.Wm)(l,{indicator:A.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===e?.status]]),(0,r.wy)((0,r._)("div",re,[(0,r._)("img",{src:e?.imgUrl,class:"upload_img"},null,8,ne),(0,r._)("div",{class:"delete_file_block",onClick:t=>A.deleteFile(e)},(0,n.zw)(A.$t("MoodboardUpload.Delete")),9,ie)],512),[[o.F8,"done"===e?.status]])])))),128)),(0,r.wy)((0,r._)("div",oe,[(0,r.Wm)(c,{action:A.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...A.upload},headers:{Authorization:A.token},"before-upload":A.beforeUpload,"file-list":A.fileList,"onUpdate:file-list":e[3]||(e[3]=e=>A.fileList=e),multiple:"",maxCount:8-A.moodboarList.length+A.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:e[4]||(e[4]=e=>A.fileUploadChange(e))},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",se,le,512),[[o.F8,A.moodboarList.length<8]])])),_:1},8,["action","data","headers","before-upload","file-list","maxCount"])],512),[[o.F8,A.moodboarList.length<8]])])])],512),[[o.F8,1==A.openClick]]),(0,r.wy)((0,r.Wm)(u,{ref:"Material",msg:"Moodboard"},null,512),[[o.F8,2==A.openClick]]),(0,r.wy)((0,r.Wm)(d,{ref:"Generate",msg:"Moodboard"},null,512),[[o.F8,3==A.openClick]])]),(0,r.wy)((0,r._)("div",ce,[(0,r._)("div",ue,[(0,r._)("div",de,[(0,r._)("div",null,(0,n.zw)(A.$t("MoodboardUpload.Thumbnail")),1),(0,r._)("div",{class:"modal_btn started_btn",onClick:e[5]||(e[5]=e=>A.layout())},(0,n.zw)(A.$t("MoodboardUpload.layout")),1)]),(0,r._)("div",he,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.moodboarList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"modal_img_item",key:e,onClick:t=>A.deleteFile(e)},[(0,r.wy)((0,r._)("img",null,null,512),[[g,e.imgUrl]]),pe],8,ge)))),128))])]),(0,r.wy)((0,r._)("div",fe,[(0,r._)("div",me,[Be,(0,r._)("div",{class:"modal_btn started_btn",onClick:e[6]||(e[6]=(0,o.iM)((e=>A.changeTemplateModal()),["stop"]))},"Edit")]),A.modalImg[0]?.id?((0,r.wg)(),(0,r.iD)("div",ve,[(0,r._)("img",{src:A.modalImg[0].imgUrl},null,8,Ce)])):((0,r.wg)(),(0,r.iD)("div",{key:0,class:(0,n.C_)(["modal_img",{active:A.flex_direction}]),id:"modal_img"},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.layoutList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)([[A.moodb_className[t]],"modal_imgItem"])},[(0,r.wy)((0,r._)("img",{src:e.imgUrl},null,8,we),[[p]])],2)))),256))],2))],512),[[o.F8,A.moodboarList.length>1]]),(0,r.wy)((0,r._)("div",be,[(0,r.Wm)(l,{size:"large"})],512),[[o.F8,A.loadingShow]])],512),[[o.F8,A.moodboarList.length]]),(0,r.Wm)(h,{ref:"layout",moodb_className:A.moodb_className,flex_direction:A.flex_direction,onSetmoodbClass:A.setmoodbClass},null,8,["moodb_className","flex_direction","onSetmoodbClass"])])}var _e=t(5929);const Qe={class:"my_material_modal"},Ue={class:"my_material_header"},Fe={class:"my_material_header_right"},xe={class:"content_search_block"},Ee=["placeholder"],ke=(0,r._)("span",{class:"icon iconfont icon-sousuo"},null,-1),Ie=[ke],He={class:"my_material_content"},Se={class:"material_content_body scroll_style"},De=["src","onClick"],Le={key:0,class:"operate_file_block"},Oe={class:"select_img_type"},Me=["onClick"],Te={class:"category_list"},Ke=["onClick"],Ne={key:1,class:"pin_block"},Pe={class:"material_content_list_loding"},Re=(0,r._)("img",{src:_e,alt:""},null,-1),Ve=[Re],Ge={class:"no_data_block loading_block"};function je(A,e,t,i,s,a){const l=(0,r.up)("a-checkbox"),c=(0,r.up)("a-spin"),u=(0,r.Q2)("observe");return(0,r.wg)(),(0,r.iD)("div",Qe,[(0,r._)("div",Ue,[(0,r._)("div",Fe,[(0,r._)("div",xe,[(0,r.wy)((0,r._)("input",{class:"search_input",placeholder:A.$t("Material.inputContent1"),"onUpdate:modelValue":e[0]||(e[0]=e=>A.searchPictureName=e),onKeydown:e[1]||(e[1]=(0,o.D2)((e=>A.getLibraryList()),["enter"]))},null,40,Ee),[[o.nr,A.searchPictureName]]),(0,r._)("div",{class:"search_icon_block",onClick:e[2]||(e[2]=(0,o.iM)((e=>A.getLibraryList()),["stop"]))},Ie)])])]),(0,r._)("div",He,[(0,r._)("div",Se,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.imgList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{key:e,class:(0,n.C_)(["content_img_item",[e?.checked?"active":"","Moodboard"==A.selectCode?"moodb":""]])},[(0,r._)("img",{src:e.imgUrl,onClick:(0,o.iM)((t=>A.selectImgItem(e)),["stop"])},null,8,De),"Sketchboard"==A.selectCode?((0,r.wg)(),(0,r.iD)("div",Le,[(0,r._)("div",Oe,[(0,r._)("div",{class:"select_category",onClick:(0,o.iM)((t=>A.showFileCategory(e)),["stop"])},[(0,r.Uk)((0,n.zw)(e?.category)+" ",1),(0,r._)("div",{class:(0,n.C_)(["icon","iconfont","icon-xiala",e?.categoryShow?"icon_rotate":""])},null,2)],8,Me),(0,r.wy)((0,r._)("div",Te,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.disignTypeList,((t,i)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["category_item",e?.category==t.value?"select_category_item":""]),key:i,onClick:(0,o.iM)((r=>A.selectFileCategory(e,t)),["stop"])},(0,n.zw)(t.label),11,Ke)))),128))],512),[[o.F8,e?.categoryShow]])])])):(0,r.kq)("",!0),"Sketchboard"==A.selectCode||"Printboard"==A.selectCode?((0,r.wg)(),(0,r.iD)("div",Ne,[(0,r.Wm)(l,{checked:e.pin,"onUpdate:checked":A=>e.pin=A},{default:(0,r.w5)((()=>[(0,r.Uk)((0,n.zw)(A.$t("Material.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])):(0,r.kq)("",!0)],2)))),128)),(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",Pe,Ve)),[[o.F8,A.total>A.imgList.length],[u]])]),(0,r.wy)((0,r._)("div",Ge,[(0,r.Wm)(c,{size:"large"})],512),[[o.F8,A.isShowLoading]])])])}var ze=(0,r.aZ)({props:["msg","disignTypeList"],setup(A){let e=(0,TA.iH)(!1),t=(0,TA.iH)([]),r=(0,TA.iH)(!1),n=(0,TA.iH)(""),i=(0,TA.iH)(1),o=(0,TA.iH)(""),s=(0,TA.iH)(12),a=(0,TA.iH)(0),l=(0,TA.iH)(""),c=(0,TA.iH)(null),u=(0,TA.iH)({}),{t:d}=(0,GA.QT)();return{myMaterialModalShow:e,imgList:t,isShowLoading:r,selectCode:n,currentPage:i,searchPictureName:o,pageSize:s,total:a,searcMaterialhName:l,designType:c,workspace:u,t:d}},data(A){return{type_:{type1:"material",type2:A.msg},store:(0,NA.oR)()}},directives:{observe:{mounted(A,e){const t=new IntersectionObserver(n,{root:null,threshold:[.1]});t.observe(A);let r=e.instance;function n(A,e){A.forEach((A=>{A.isIntersecting&&r.getLibraryList()}))}}}},computed:{getSketchLabel(A){return A=>{let e="";for(let t of this.disignTypeList)if(t.value===A){e=t.label;break}return e}},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(A,e){e.forEach((e=>{-1==A.findIndex((A=>A.id==e.id))&&this.imgList.forEach((A=>{A.id==e.id&&(A.checked=!1)}))}))}},moodboardList:{handler(A,e){e.forEach((e=>{-1==A.findIndex((A=>A.id==e.id))&&this.imgList.forEach((A=>{A.id==e.id&&(A.checked=!1)}))}))}},printboardList:{handler(A,e){e.forEach((e=>{-1==A.findIndex((A=>A.id==e.id))&&this.imgList.forEach((A=>{A.id==e.id&&(A.checked=!1)}))}))}}},methods:{init(A){this.selectCode=A,this.imgList.length,this.getLibraryList()},selectImgItem(A){A.type_=this.type_,A.resData=JSON.parse(JSON.stringify(A)),this.imgList.forEach((A=>{A.categoryShow=!1})),A.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",A)},changePage(A,e){this.currentPage=A,this.pageSize=e,this.getLibraryList()},handleChange(){this.getLibraryList()},getLibraryList(){let A=this.store.state.Workspace.workspace,e={level1Type:this.selectCode,modelSex:A?.sex,page:this.currentPage,pictureName:this.searchPictureName,size:this.pageSize+this.imgList.length};this.isShowLoading=!0,KA.V.axiosPost(KA.V.httpUrls.queryLibraryPage,e).then((A=>{let e=[];A.content.forEach(((A,t)=>{let r;"Sketchboard"==this.type_.type2?(r=this.store.state.UploadFilesModule.sketchMaterialFiles,A.category=A.level2Type,A.categoryShow=!1):"Moodboard"==this.type_.type2?r=this.store.state.UploadFilesModule.moodboardMaterialFiles:"Printboard"==this.type_.type2&&(r=this.store.state.UploadFilesModule.printMaterialFiles),A.imgUrl=A.url,A.id_||(A.id_=PA.id++,r.forEach((e=>{A.id==e.id&&(A.id_=e.id_?e.id_:PA.id++,A.checked=!0)}))),e.push(A)})),this.imgList=e,this.total=A.total,this.isShowLoading=!1})).catch((A=>{this.isShowLoading=!1}))},closeModal(){this.myMaterialModalShow=!1,this.searchPictureName="",this.designType=null,this.imgList=[],this.currentPage=1,this.pageSize=10,this.total=0},showFileCategory(A){A.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(A,e){A.category=e.value;for(let t of this.imgList)t.categoryShow=!1;this.setSketchLibrary(A)},hiddenFileCategory(){for(let A of this.imgList)A.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchLibrary(A){let e={libraryId:A.id,level2Type:A.category};KA.V.axiosPost(KA.V.httpUrls.setSketchLibrary,e).then((A=>{})).catch((A=>{}))}}});const Ze=(0,zA.Z)(ze,[["render",je]]);var We=Ze;const Xe={class:"mood_template_component"},Ye={class:"mood_template_item template_three"},Je={class:"mood_template_item template_four"},$e={class:"mood_template_item template_five"},qe={class:"mood_template_item template_six"},At={class:"mood_template_item template_seven"},et={class:"mood_template_item template_eight"},tt={class:"mood_template_item template_nine"},rt={class:"mood_template_item template_ten"};function nt(A,e,t,i,s,a){return(0,r.wg)(),(0,r.iD)("div",Xe,[(0,r.wy)((0,r._)("div",Ye,[(0,r._)("div",{class:"img_template three_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[0]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template three_2",style:(0,n.j5)({backgroundImage:`url(${A.fileList[1]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template three_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[2]?.imgUrl})`})},null,4)],512),[[o.F8,3==A.moodTemplateId]]),(0,r.wy)((0,r._)("div",Je,[(0,r._)("div",{class:"img_template four_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[0]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template four_2",style:(0,n.j5)({backgroundImage:`url(${A.fileList[1]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template four_3",style:(0,n.j5)({backgroundImage:`url(${A.fileList[2]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template four_4",style:(0,n.j5)({backgroundImage:`url(${A.fileList[3]?.imgUrl})`})},null,4)],512),[[o.F8,4==A.moodTemplateId]]),(0,r.wy)((0,r._)("div",$e,[(0,r._)("div",{class:"img_template five_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[0]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template five_2",style:(0,n.j5)({backgroundImage:`url(${A.fileList[1]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template five_3",style:(0,n.j5)({backgroundImage:`url(${A.fileList[2]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template five_4",style:(0,n.j5)({backgroundImage:`url(${A.fileList[3]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template five_5",style:(0,n.j5)({backgroundImage:`url(${A.fileList[4]?.imgUrl})`})},null,4)],512),[[o.F8,5==A.moodTemplateId]]),(0,r.wy)((0,r._)("div",qe,[(0,r._)("div",{class:"img_template six_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[0]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template six_2",style:(0,n.j5)({backgroundImage:`url(${A.fileList[1]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template six_3",style:(0,n.j5)({backgroundImage:`url(${A.fileList[2]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template six_4",style:(0,n.j5)({backgroundImage:`url(${A.fileList[3]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template six_5",style:(0,n.j5)({backgroundImage:`url(${A.fileList[4]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template six_6",style:(0,n.j5)({backgroundImage:`url(${A.fileList[5]?.imgUrl})`})},null,4)],512),[[o.F8,6==A.moodTemplateId]]),(0,r.wy)((0,r._)("div",At,[(0,r._)("div",{class:"img_template seven_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[0]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template seven_2",style:(0,n.j5)({backgroundImage:`url(${A.fileList[1]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template seven_3",style:(0,n.j5)({backgroundImage:`url(${A.fileList[2]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template seven_4",style:(0,n.j5)({backgroundImage:`url(${A.fileList[3]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template seven_5",style:(0,n.j5)({backgroundImage:`url(${A.fileList[4]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template seven_6",style:(0,n.j5)({backgroundImage:`url(${A.fileList[5]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template seven_7",style:(0,n.j5)({backgroundImage:`url(${A.fileList[6]?.imgUrl})`})},null,4)],512),[[o.F8,7==A.moodTemplateId]]),(0,r.wy)((0,r._)("div",et,[(0,r._)("div",{class:"img_template eight_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[0]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template eight_2",style:(0,n.j5)({backgroundImage:`url(${A.fileList[1]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template eight_3",style:(0,n.j5)({backgroundImage:`url(${A.fileList[2]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template eight_4",style:(0,n.j5)({backgroundImage:`url(${A.fileList[3]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template eight_5",style:(0,n.j5)({backgroundImage:`url(${A.fileList[4]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template eight_6",style:(0,n.j5)({backgroundImage:`url(${A.fileList[5]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template eight_7",style:(0,n.j5)({backgroundImage:`url(${A.fileList[6]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template eight_8",style:(0,n.j5)({backgroundImage:`url(${A.fileList[7]?.imgUrl})`})},null,4)],512),[[o.F8,8==A.moodTemplateId]]),(0,r.wy)((0,r._)("div",tt,[(0,r._)("div",{class:"img_template nine_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[0]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template nine_2",style:(0,n.j5)({backgroundImage:`url(${A.fileList[1]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template nine_3",style:(0,n.j5)({backgroundImage:`url(${A.fileList[2]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template nine_4",style:(0,n.j5)({backgroundImage:`url(${A.fileList[3]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template nine_5",style:(0,n.j5)({backgroundImage:`url(${A.fileList[4]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template nine_6",style:(0,n.j5)({backgroundImage:`url(${A.fileList[5]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template nine_7",style:(0,n.j5)({backgroundImage:`url(${A.fileList[6]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template nine_8",style:(0,n.j5)({backgroundImage:`url(${A.fileList[7]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template nine_9",style:(0,n.j5)({backgroundImage:`url(${A.fileList[8]?.imgUrl})`})},null,4)],512),[[o.F8,9==A.moodTemplateId]]),(0,r.wy)((0,r._)("div",rt,[(0,r._)("div",{class:"img_template ten_1",style:(0,n.j5)({backgroundImage:`url(${A.fileList[0]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_2",style:(0,n.j5)({backgroundImage:`url(${A.fileList[1]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_3",style:(0,n.j5)({backgroundImage:`url(${A.fileList[2]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_4",style:(0,n.j5)({backgroundImage:`url(${A.fileList[3]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_5",style:(0,n.j5)({backgroundImage:`url(${A.fileList[4]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_6",style:(0,n.j5)({backgroundImage:`url(${A.fileList[5]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_7",style:(0,n.j5)({backgroundImage:`url(${A.fileList[6]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_8",style:(0,n.j5)({backgroundImage:`url(${A.fileList[7]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_9",style:(0,n.j5)({backgroundImage:`url(${A.fileList[8]?.imgUrl})`})},null,4),(0,r._)("div",{class:"img_template ten_10",style:(0,n.j5)({backgroundImage:`url(${A.fileList[9]?.imgUrl})`})},null,4)],512),[[o.F8,10==A.moodTemplateId]])])}var it=(0,r.aZ)({props:["fileList","moodTemplateId"],setup(){}});const ot=(0,zA.Z)(it,[["render",nt],["__scopeId","data-v-3174c5e2"]]);var st=ot;const at={class:"layout_content"},lt={class:"collection_title"},ct={class:"collection_title_text"},ut={class:"layout_title"},dt=(0,r._)("i",{class:"fi fi-rr-cross-small"},null,-1),ht=[dt],gt={class:"layout_nav"},pt=["onClick"],ft=["src"],mt=["onClick"],Bt=["src"],wt={class:"layout_btn"},vt={class:"layout_btn_top"},Ct={class:"layout_btn_bottom"},bt={class:"layout_btn_left"},yt={class:"layout_btn_right"},_t={class:"layout_rotote"},Qt={class:"layout_translate"},Ut={class:"layout_angle_tr"},Ft={class:"layout_angle_tl"},xt={class:"layout_angle_br"},Et={class:"layout_angle_bl"},kt={class:"layout_left"},It=["onClick"],Ht={class:"mark_loading"};function St(A,e,t,i,s,a){const l=(0,r.up)("a-spin"),c=(0,r.up)("a-upload"),u=(0,r.up)("a-modal"),d=(0,r.Q2)("modelImg"),h=(0,r.Q2)("compile"),g=(0,r.Q2)("rotote"),p=(0,r.Q2)("translate"),f=(0,r.Q2)("angle"),m=(0,r.Q2)("layout");return(0,r.wg)(),(0,r.iD)("div",null,[(0,r.Wm)(u,{class:"layout_modal",visible:A.layout,"onUpdate:visible":e[2]||(e[2]=e=>A.layout=e),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,mask:!1,destroyOnClose:!0},{default:(0,r.w5)((()=>[(0,r._)("div",at,[(0,r._)("div",lt,[(0,r._)("div",ct,[(0,r._)("div",ut,(0,n.zw)(A.$t("layout.MoodBoardDesign")),1)])]),(0,r._)("div",{class:"collection_closeIcon",onClick:e[0]||(e[0]=(0,o.iM)((e=>A.cancelDsign()),["stop"]))},ht),(0,r._)("div",gt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.layoutList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{key:e,class:(0,n.C_)({active:e.setPitch}),onClick:r=>A.setpitch(e,t)},[(0,r._)("img",{src:e.imgUrl},null,8,ft)],10,pt)))),128))]),(0,r._)("div",{class:(0,n.C_)(["layout_centent",{active:A.flex_direction}]),id:"layoutCentent"},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.layoutList,((e,t)=>(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{key:e,class:(0,n.C_)([A.moodbClassName[t],"modal_imgItem"]),onClick:r=>A.setpitch(e,t),ref_for:!0,ref:"content"},[(0,r.wy)((0,r._)("img",{crossOrigin:"anonymous",src:e.imgUrl,draggable:"false"},null,8,Bt),[[d]]),(0,r.wy)((0,r._)("ul",wt,[(0,r.wy)((0,r._)("li",vt,null,512),[[h,"top",void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",Ct,null,512),[[h,"bottom",void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",bt,null,512),[[h,"left",void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",yt,null,512),[[h,"right",void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",_t,null,512),[[g,void 0,void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",Qt,null,512),[[p,void 0,void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",Ut,null,512),[[f,"top",void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",Ft,null,512),[[f,"right",void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",xt,null,512),[[f,"bottom",void 0,{stop:!0}]]),(0,r.wy)((0,r._)("li",Et,null,512),[[f,"left",void 0,{stop:!0}]])],512),[[o.F8,e.setPitch]])],10,mt)),[[m,t]]))),128))],2),(0,r._)("div",kt,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.moodbList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"layout_left_items",onClick:t=>A.setmoodb(e)},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e,((A,e)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)([A,"layout_left_item"])},null,2)))),256))],8,It)))),256))]),(0,r._)("div",{class:"button_second submit_button",onClick:e[1]||(e[1]=e=>A.submitTemplate())},(0,n.zw)(A.$t("layout.Submit")),1)]),(0,r.wy)((0,r._)("div",Ht,[(0,r.Wm)(l,{size:"large"})],512),[[o.F8,A.loadingShow]]),(0,r.Wm)(c,{action:A.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...A.upload},headers:{Authorization:A.token},"before-upload":A.beforeUpload,multiple:"",accept:".jpg,.png,.jpeg,.bmp"},null,8,["action","data","headers","before-upload"])])),_:1},8,["visible"])])}var Dt={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"]]]},Lt=t(9980),Ot=t.n(Lt),Mt=(t(2801),t(8675),t(7380),t(1118),t(1120)),Tt=t.n(Mt);const Kt=A=>new Promise((e=>{Tt()(A,{useCORS:!0}).then((A=>{let t,r,n,i=A.toDataURL("image/jpeg",.9),o=.9,s=new Image;s.src=i,s.setAttribute("crossOrigin","Anonymous"),s.onload=function(){n=.8*this.width,t=this.width,r=this.height;let A=document.createElement("canvas"),i=A.getContext("2d");Math.max(t,r)>n?t>r?(A.width=n,A.height=n*(r/t)):(A.height=n,A.width=n*(t/r)):(A.width=t,A.height=r,o=.6),i.clearRect(0,0,A.width,A.height),i.drawImage(this,0,0,A.width,A.height);let s=A.toDataURL("image/jpeg",o),a=Nt(s),l=new File([a],new Date+".jpg");e(l)}}))}));function Nt(A,e){let t=atob(A.split(",")[1]),r=[];for(let n=0;n<t.length;n++)r.push(t.charCodeAt(n));return new Blob([new Uint8Array(r)],{type:"image/jpeg"})}var Pt=Kt,Rt=(0,r.aZ)({props:["moodb_className","flex_direction"],components:{draggable:Ot()},setup(A){let e=(0,TA.iH)(!1),t=(0,TA.iH)([]),r=(0,TA.iH)(1),n=!1,i=(0,TA.iH)([]);const o=(0,TA.iH)(null);let s=(0,TA.iH)(!1);return{layout:e,templateFileList:t,openClick:r,drag:n,layoutList:i,content:o,loadingShow:s}},data(){return{store:(0,NA.oR)(),moodb:Dt.moodb_,moodbList:{},moodbClassName:[],setabsolute:!1,token:"",uploadUrl:"",upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}}},mounted(){this.token=(0,RA.ej)("token")||"",this.uploadUrl=(0,VA.M$)()},directives:{layout:{mounted(A,e,t){A.addEventListener("mousedown",(e=>{e.stopPropagation(),A.parentElement.children.forEach((A=>{A.style.left=A.offsetLeft+"px",A.style.top=A.offsetTop+"px"})),A.parentElement.children.forEach((A=>{A.classList.add("active")})),A.style.zIndex=PA.zIndex++;let t=A.style.left?A.style.left.replace(/px/g,""):0,r=A.style.top?A.style.top.replace(/px/g,""):0,n=e.offsetX,i=e.offsetY,o=e.clientX-e.offsetX-Number(t),s=e.clientY-e.offsetY-Number(r),a=!0;document.onmousemove=function(e){a&&(A.style.left=e.x-n-o+"px",A.style.top=e.y-i-s+"px",A.offsetLeft<=0&&(A.style.left="0px"),A.offsetTop<=0&&(A.style.top="0px"),A.offsetLeft+A.offsetWidth>=A.parentNode.offsetWidth&&(A.style.left=A.parentNode.offsetWidth-A.offsetWidth+"px"),A.offsetTop+A.offsetHeight>=A.parentNode.offsetHeight&&(A.style.top=A.parentNode.offsetHeight-A.offsetHeight+"px"))},document.onmouseup=function(){a=!1}}))},updated(A,e){}},compile:{mounted(A,e){A.addEventListener("mousedown",(t=>{t.stopPropagation();let r,n,i=A.parentNode.parentNode;A.parentElement.parentNode.parentNode.children.forEach((A=>{A.style.left=A.offsetLeft+"px",A.style.top=A.offsetTop+"px"})),A.parentElement.parentNode.parentNode.children.forEach((A=>{A.classList.add("active")})),"right"==e.value||("left"==e.value?(i.style.right=i.parentNode.offsetWidth-i.offsetWidth-i.offsetLeft+"px",i.style.left="auto"):"top"==e.value?(i.style.bottom=i.parentNode.offsetHeight-i.offsetHeight-i.offsetTop+"px",i.style.top="auto"):e.value),"left"==e.value||"right"==e.value?(r=t.x,n=i.offsetWidth):(n=i.offsetHeight,r=t.y);let o=!0;document.onmousemove=function(A){o&&("left"==e.value?i.style.width=n+r-A.x+"px":"right"==e.value?i.style.width=n+A.x-r+"px":"top"==e.value?i.style.height=n+r-A.y+"px":"bottom"==e.value&&(i.style.height=n+A.y-r+"px"),i.parentNode.offsetWidth<=i.offsetWidth+Number(i.style.right.replace(/px/g,""))&&(i.style.width=i.parentNode.offsetWidth-Number(i.style.right.replace(/px/g,""))+"px"),i.offsetLeft+i.offsetWidth>=i.parentNode.offsetWidth&&(i.style.width=i.parentNode.offsetWidth-i.offsetLeft+"px"),i.parentNode.offsetHeight<=i.offsetHeight+Number(i.style.bottom.replace(/px/g,""))&&(i.style.height=i.parentNode.offsetHeight-Number(i.style.bottom.replace(/px/g,""))+"px"),i.offsetTop+i.offsetHeight>=i.parentNode.offsetHeight&&(i.style.height=i.parentNode.offsetHeight-i.offsetTop+"px"))},document.onmouseup=function(){o=!1}}))}},rotote:{mounted(A){let e,t=!0,r=0,n=A.parentNode.parentNode;if(document.defaultView){let A=document.defaultView.getComputedStyle(n.firstElementChild,null).transform.split("(")[1].split(",");e=Number(A[3])}A.addEventListener("mousedown",(i=>{i.stopPropagation(),t=!0;var o=A.getBoundingClientRect();let s=o.x+o.width/2,a=o.y+o.height/2;document.addEventListener("mousemove",(i=>{if(t){let t=s,o=a,l=i.clientX-t,c=o-i.clientY;r=Math.atan2(l,c)*(180/Math.PI),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+e+") rotateZ("+r+"deg)",A.style.transform="translate(-50%,-50%) rotateZ("+r+"deg)"}})),document.addEventListener("mouseup",(()=>{t=!1}))}));let i=!0;A.parentNode.addEventListener("mousemove",(t=>{A.parentNode.addEventListener("mousewheel",(A=>{i&&(i=!1,A.deltaY>0?e-=e<=1?.05:.1:e+=e<=1?.05:.1,e>=3?e=3:e<.2&&(e=.2),setTimeout((()=>{i=!0}),100),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+e+") rotateZ("+r+"deg)")}))}))}},angle:{mounted(A,e){let t=!1;A.addEventListener("mousedown",(r=>{r.stopPropagation(),A.parentNode.children.forEach((A=>{A.classList.add("eventNode")})),t=!0;let n,i,o=A.parentNode.parentNode,s=Math.sqrt(o.offsetWidth/2*o.offsetWidth/2+o.offsetHeight/2*o.offsetHeight/2);A.parentNode.addEventListener("mousemove",(r=>{if(t){"right"==e.value?(n=o.offsetWidth-r.offsetX,i=o.offsetHeight-r.offsetY):"top"==e.value?(n=o.offsetWidth-r.offsetX-o.offsetWidth,i=o.offsetHeight-r.offsetY):"left"==e.value?(n=o.offsetWidth-r.offsetX,i=o.offsetHeight-r.offsetY-o.offsetHeight):"bottom"==e.value&&(n=o.offsetWidth-r.offsetX-o.offsetWidth,i=o.offsetHeight-r.offsetY-o.offsetHeight);let t=Math.sqrt(n*n+i*+i)/2;100-100*t/s<=50?"right"==e.value?(A.parentNode.style.borderTopLeftRadius=100-100*t/s+"%",o.style.borderTopLeftRadius=100-100*t/s+"%",A.style.left=(100-100*t/s)/3.33-1+"%",A.style.top=(100-100*t/s)/3.33-1+"%"):"top"==e.value?(A.parentNode.style.borderTopRightRadius=100-100*t/s+"%",o.style.borderTopRightRadius=100-100*t/s+"%",A.style.right=(100-100*t/s)/3.33-1+"%",A.style.left="auto",A.style.top=(100-100*t/s)/3.33-1+"%"):"bottom"==e.value?(A.parentNode.style.borderBottomRightRadius=100-100*t/s+"%",o.style.borderBottomRightRadius=100-100*t/s+"%",A.style.right=(100-100*t/s)/3.33-1+"%",A.style.top="auto",A.style.left="auto",A.style.bottom=(100-100*t/s)/3.33-1+"%"):"left"==e.value&&(A.parentNode.style.borderBottomLeftRadius=100-100*t/s+"%",o.style.borderBottomLeftRadius=100-100*t/s+"%",A.style.left=(100-100*t/s)/3.33-1+"%",A.style.top="auto",A.style.bottom=(100-100*t/s)/3.33-1+"%"):"right"==e.value?(A.parentNode.style.borderTopLeftRadius="50%",o.style.borderTopLeftRadius="50%"):"top"==e.value?(A.parentNode.style.borderTopRightRadius="50%",o.style.borderTopRightRadius="50%"):"bottom"==e.value?(A.parentNode.style.borderBottomRightRadius="50%",o.style.borderBottomRightRadius="50%"):"left"==e.value&&(A.parentNode.style.borderBottomLeftRadius="50%",o.style.borderBottomLeftRadius="50%")}})),document.addEventListener("mouseup",(()=>{t=!1,A.parentNode.children.forEach((A=>{A.classList.remove("eventNode")}))}))}))}},translate:{mounted(A,e,t){A.addEventListener("mousedown",(e=>{e.stopPropagation();let t=A.parentNode.parentNode;A.style.left=(A.offsetLeft+2)/t.offsetWidth*100+"%",A.style.top=(A.offsetTop+2)/t.offsetHeight*100+"%";A.style.left&&A.style.left.replace(/%/g,""),A.style.top&&A.style.top.replace(/%/g,"");let r=e.offsetX,n=e.offsetY,i=e.clientX-e.offsetX-A.offsetLeft,o=e.clientY-e.offsetY-A.offsetTop,s=!0;document.onmousemove=function(e){if(s){let s=(e.x-r+2-i)/t.offsetWidth*100+"%",a=(e.y-n+2-o)/t.offsetHeight*100+"%";A.style.left=s,A.style.top=a,A.previousSibling.style.top=a,A.previousSibling.style.left=s,t.firstChild.style.top=a,t.firstChild.style.left=s,A.offsetLeft<=0&&(A.style.left="0%",A.previousSibling.style.left="0%",t.firstChild.style.left="0%"),A.offsetTop<=0&&(A.style.top="0%",A.previousSibling.style.top="0%",t.firstChild.style.top="0%"),A.style.left.replace(/%/g,"")>=100&&(A.style.left="100%",A.previousSibling.style.left="100%",t.firstChild.style.left="100%"),A.style.top.replace(/%/g,"")>=100&&(A.style.top="100%",A.previousSibling.style.top="100%",t.firstChild.style.top="100%")}},document.onmouseup=function(){s=!1}}))}},modelImg:{mounted(A){let e=A.parentNode;e.offsetHeight>e.offsetWidth?(A.style.height="100%",A.style.width="auto"):(A.style.width="100%",A.style.height="auto")},updated(A){let e=A.parentNode;e.offsetHeight>e.offsetWidth?(A.style.height="100%",A.style.width="auto"):(A.style.width="100%",A.style.height="auto")}}},methods:{init(){let A=this.$parent;A=A.layoutList,this.layout=!0,this.layoutList.forEach((A=>{A.setPitch=!1})),this.layoutList=A,this.moodbList=this.moodb[A.length-1],this.moodbClassName=this.moodb_className},cancelDsign(){this.layout=!1},setpitch(A,e){this.layoutList.forEach((A=>{A.setPitch=!1})),A.setPitch=!0,this.content&&(this.content[e].style.zIndex=PA.zIndex++)},setmoodb(A){if(this.moodbClassName=A,this.$emit("setmoodbClass",this.moodbClassName),this.content)for(A of this.content)A.classList.remove("active"),A.style.top="",A.style.left="",A.style.right="",A.style.bottom="",A.style.width="",A.style.height=""},changeTemplateModal(){this.layout=!this.layout},submitTemplate(){this.loadingShow=!0,this.layoutList.forEach((A=>{A.setPitch=!1})),(0,r.Y3)().then((async()=>{let A=document.getElementById("layoutCentent"),e=await Pt(A),t=new FormData;t.append("inPin","0"),t.append("level1Type","Moodboard"),t.append("timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone),t.append("file",e);let r={headers:{"Content-Type":"multipart/form-data",Accept:"*/*"}};KA.V.axiosPost(KA.V.httpUrls.elementUpload,t,r).then((A=>{A.imgUrl=A.url,this.layout=!1,this.loadingShow=!1,this.store.commit("setDisposeMoodboard",A)})).catch((A=>{this.loadingShow=!1}))}))},beforeUpload(){}}});const Vt=(0,zA.Z)(Rt,[["render",St]]);var Gt=Vt,jt=(0,r.aZ)({components:{Material:We,MoodTemplate:st,Generate:WA,layout:Gt},setup(){const A=(0,NA.oR)();let e=(0,TA.iH)([]),t=(0,TA.iH)([]),n=(0,TA.iH)([]),i=(0,TA.iH)(!1),o=(0,TA.iH)([]),s=(0,TA.iH)(1),a=(0,TA.iH)([]),l=(0,TA.iH)(!1),c=[],u=(0,TA.iH)(!1),d=(0,TA.iH)(!1),h=(0,r.Fl)((()=>A.state.UploadFilesModule.disposeMoodboard)),g=(0,TA.iH)([]),{t:p}=(0,GA.QT)();return{fileList:t,showFileList:n,lessenList:e,templateModal:i,templateFileList:o,openClick:s,moodb_className:a,flex_direction:l,layoutList:c,layoutOpen:u,loadingShow:d,modalImg:h,uploading:g,t:p}},data(){return{indicator:(0,r.h)(LA.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",moodTemplateId:"",store:(0,NA.oR)(),moodb_:Dt.moodb_,moodboarList:(0,r.Fl)((()=>(0,NA.oR)().state.UploadFilesModule.moodboard))}},mounted(){this.token=(0,RA.ej)("token")||"",this.uploadUrl=(0,VA.M$)()},watch:{fileList:{handler(A,e){}}},directives:{modelImg:{mounted(A){let e=A.parentNode;e.offsetHeight>e.offsetWidth?(A.style.height="100%",A.style.width="auto"):(A.style.width="100%",A.style.height="auto")},updated(A){let e=A.parentNode;e.offsetHeight>e.offsetWidth?(A.style.height="100%",A.style.width="auto"):(A.style.width="100%",A.style.height="auto")}}},methods:{open(A){if(this.openClick=A,2==A){let A=this.$refs.Material;A.init("Moodboard")}},fileUploadChange(A){let e=A.file;if("done"===e.status){let A=JSON.parse(e.xhr.response);e.imgUrl=A.data.url,e.resData=A.data,e.type_={type1:"upload",type2:"Moodboard"},e.id_=PA.id++;let t=this.fileList.filter((A=>"done"===A.status)),r=this.store.state.UploadFilesModule.moodboard;r.length>=8?OA.ZP.warning(this.t("MoodboardUpload.jsContent1")):this.store.commit("setMoodboardFile",t)}else if("error"===e.status){let A=-1;this.fileList.forEach(((t,r)=>{e.uid===t.uid&&(A=r)})),A>-1&&this.fileList.splice(A,1),OA.ZP.warning(e.name+this.t("MoodboardUpload.jsContent2"))}},beforeUpload(A){const e="image/jpeg"===A.type||"image/png"===A.type||"image/jpg"===A.type||"image/bmp"===A.type;e||OA.ZP.warning(this.t("MoodboardUpload.jsContent3"));const t=A.size/1024/1024<2;return t||OA.ZP.warning(this.t("MoodboardUpload.jsContent4")),e&&t||MA.Z.LIST_IGNORE},deleteFile(A){if("generate"==A.type_.type1||"material"==A.type_.type1)A.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",A);else{let e;this.fileList=this.store.state.UploadFilesModule.moodboardFiles,this.store.state.UploadFilesModule.moodboardFiles.forEach(((t,r)=>{t.id_==A.id_&&(e=r)})),this.fileList.splice(e,1),this.store.commit("setMoodboardFile",this.fileList)}0==this.store.state.UploadFilesModule.moodboard.length&&(this.store.commit("clearMoodTemplateId"),this.layoutList=[])},recollection(){let A=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.moodboardFiles)),e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.disposeMoodboard)),t={generate:[],material:[],moodboard:[]};console.log(e),A.forEach((A=>{"generate"==A.type_.type1?t.generate.push(A):"material"==A.type_.type1?t.material.push(A):t.moodboard.push(A)})),this.store.commit("setMoodboardGenerateFiles",t.generate),this.store.commit("setMoodboardMaterialFiles",t.material),this.store.commit("setMoodboardFile",t.moodboard),this.store.commit("setDisposeMoodboard",e[0]),this.fileList=t.moodboard},changeTemplateModal(){if(this.layoutOpen){let A=this.$refs.layout;A.init()}else OA.ZP.warning(this.t("MoodboardUpload.jsContent5"))},layout(){this.loadingShow=!0,this.store.commit("setDisposeMoodboard",[]);let A=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.moodboard));this.layoutList=A;var e=Math.round(Math.random()*(this.moodb_[A.length-1].length-1));let t=this.moodb_[A.length-1][e];0!=t.filter(((A,e)=>"w2h1"==A)).length&&A.length>4?this.flex_direction=!0:this.flex_direction=!1,JSON.stringify(this.moodb_className)!=JSON.stringify(this.moodb_[A.length-1][e])?(2==this.moodb_[A.length-1].length?this.moodb_className=this.moodb_[A.length-1][0]:this.moodb_className=this.moodb_[A.length-1][e],this.layoutOpen=!0,this.layoutList.forEach((A=>{A.setPitch=!1})),(0,r.Y3)().then((async()=>{let A=document.getElementById("modal_img"),e=await Pt(A),t=new FormData;t.append("inPin","0"),t.append("level1Type","Moodboard"),t.append("timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone),t.append("file",e);let r={headers:{"Content-Type":"multipart/form-data",Accept:"*/*"}};KA.V.axiosPost(KA.V.httpUrls.elementUpload,t,r).then((A=>{let e=A;e.imgUrl=A.url,e.resData=JSON.parse(JSON.stringify(e)),this.store.commit("setDisposeMoodboard",e),this.loadingShow=!1})).catch((A=>{this.loadingShow=!1}))}))):this.layout()},setmoodbClass(A){this.moodb_className=A}}});const zt=(0,zA.Z)(jt,[["render",ye],["__scopeId","data-v-da67f9fc"]]);var Zt=zt;const Wt=A=>((0,r.dD)("data-v-0b71a82e"),A=A(),(0,r.Cn)(),A),Xt={class:"printboard_upload_modal"},Yt={class:"printboard_left_upload"},Jt={class:"left_upload_header"},$t={class:"upload_header_item"},qt={class:"switch_type_list"},Ar={class:"printboard_body"},er={class:"upload_img_body"},tr={class:"upload_item"},rr={class:"upload_file_img_block"},nr={class:"upload_file_item_content"},ir={class:"upload_file_item_content"},or=["onClick"],sr=Wt((()=>(0,r._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),ar=[sr],lr={class:"pin_block"},cr={class:"upload_file_item upload_component"},ur={class:"upload_tip_block"},dr=Wt((()=>(0,r._)("i",{class:"fi fi-br-upload"},null,-1))),hr=[dr],gr={class:"modal_right"},pr={class:"modal_layout"},fr={class:"modal_text"},mr={class:"modal_img"},Br=["onClick"],wr=Wt((()=>(0,r._)("div",{class:"checked"},[(0,r._)("i",{class:"fi fi-rr-trash"})],-1))),vr={class:"modal_accomplish"},Cr=["maxlength","readonly","placeholder"],br={class:"modal_img"},yr=["src","onClick"],_r={class:"delete_like_file_block"},Qr=["onClick"],Ur=["onClick"],Fr={class:"pin_block"},xr={class:"mark_loading"};function Er(A,e,t,i,s,a){const l=(0,r.up)("a-spin"),c=(0,r.up)("a-checkbox"),u=(0,r.up)("a-upload"),d=(0,r.up)("Material"),h=(0,r.up)("Generate"),g=(0,r.up)("Cropper"),p=(0,r.Q2)("lazy");return(0,r.wg)(),(0,r.iD)("div",Xt,[(0,r._)("div",Yt,[(0,r._)("div",Jt,[(0,r._)("div",$t,[(0,r._)("div",qt,[(0,r._)("div",{onClick:e[0]||(e[0]=(0,o.iM)((e=>A.open(1)),["stop"])),class:(0,n.C_)(["switch_type_item",[1==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("PrintboardUpload.Upload")),1)],2),(0,r._)("div",{onClick:e[1]||(e[1]=(0,o.iM)((e=>A.open(2)),["stop"])),class:(0,n.C_)(["switch_type_item",[2==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("PrintboardUpload.Library")),1)],2),(0,r._)("div",{onClick:e[2]||(e[2]=(0,o.iM)((e=>A.open(3)),["stop"])),class:(0,n.C_)(["switch_type_item",[3==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("PrintboardUpload.Generate")),1)],2)])])]),(0,r.wy)((0,r._)("div",Ar,[(0,r._)("div",er,[(0,r._)("div",tr,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.fileList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["upload_file_item"]),key:e},[(0,r._)("div",rr,[(0,r.wy)((0,r._)("div",nr,[(0,r.Wm)(l,{indicator:A.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===e?.status]]),(0,r.wy)((0,r._)("div",ir,[(0,r.wy)(((0,r.wg)(),(0,r.iD)("img",{class:"upload_img",key:e.imgUrl})),[[p,e.imgUrl]]),(0,r._)("div",{class:"delete_like_file_block",onClick:(0,o.iM)((t=>A.deleteFile(e)),["stop"])},ar,8,or)],512),[[o.F8,"done"===e?.status]])]),(0,r.wy)((0,r._)("div",lr,[(0,r.Wm)(c,{checked:e.pin,"onUpdate:checked":A=>e.pin=A},{default:(0,r.w5)((()=>[(0,r.Uk)((0,n.zw)(A.$t("PrintboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])],512),[[o.F8,"done"===e?.status]])])))),128)),(0,r.wy)((0,r._)("div",cr,[(0,r.Wm)(u,{action:A.uploadUrl+"/api/element/upload","list-type":"picture-card","before-upload":A.beforeUpload,data:{...A.upload},headers:{Authorization:A.token},"file-list":A.fileList,"onUpdate:file-list":e[3]||(e[3]=e=>A.fileList=e),customRequest:function(){},multiple:"",maxCount:8-A.printboardList.length+A.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:A.fileUploadChange},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",ur,hr,512),[[o.F8,A.printboardList.length<8]])])),_:1},8,["action","before-upload","data","headers","file-list","customRequest","maxCount","onChange"])],512),[[o.F8,A.printboardList.length<8]])])])],512),[[o.F8,1==A.openClick]]),(0,r.wy)((0,r.Wm)(d,{ref:"Material",msg:"Printboard",onConfirmSelect:A.confirmSelect},null,8,["onConfirmSelect"]),[[o.F8,2==A.openClick]]),(0,r.wy)((0,r.Wm)(h,{ref:"Generate",msg:"Printboard",onGenerateCheckbox:A.getgenerateCheckbox},null,8,["onGenerateCheckbox"]),[[o.F8,3==A.openClick]])]),(0,r._)("div",gr,[(0,r._)("div",pr,[(0,r._)("div",fr,[(0,r._)("div",null,(0,n.zw)(A.$t("PrintboardUpload.Thumbnail")),1)]),(0,r._)("div",mr,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.printboardList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"modal_img_item",key:e,onClick:(0,o.iM)((t=>A.deleteFile(e)),["stop"])},[(0,r.wy)((0,r._)("img",null,null,512),[[p,e.imgUrl]]),wr],8,Br)))),128))])]),(0,r.wy)((0,r._)("div",vr,[(0,r._)("div",{class:(0,n.C_)(["input_box",{active:A.inputShow}])},[(0,r.wy)((0,r._)("input",{class:(0,n.C_)(["search_input",{forbidden:A.generateCheckbox}]),onInput:e[4]||(e[4]=(...e)=>A.ifMaximumLength&&A.ifMaximumLength(...e)),maxlength:A.inputShow?0:9999,readonly:A.generateCheckbox,placeholder:A.$t("PrintboardUpload.inputContent1"),"onUpdate:modelValue":e[5]||(e[5]=e=>A.captionGeneration=e)},null,42,Cr),[[o.nr,A.captionGeneration]]),(0,r._)("div",{class:"generage_btn started_btn",onClick:e[6]||(e[6]=(0,o.iM)(((...e)=>A.getgenerate&&A.getgenerate(...e)),["stop"]))},(0,n.zw)(A.$t("PrintboardUpload.Generate")),1),(0,r._)("span",null,(0,n.zw)(A.$t("PrintboardUpload.maximumLength")),1)],2),(0,r._)("div",br,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.generateList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["modal_imgItem",{active:e?.checked}])},[(0,r._)("img",{src:e.imgUrl,onClick:(0,o.iM)((t=>A.generageAdd(e)),["stop"])},null,8,yr),(0,r._)("div",_r,[e.like?((0,r.wg)(),(0,r.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((t=>A.likeFile(e,"noLike")),["stop"])},null,8,Ur)):((0,r.wg)(),(0,r.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((t=>A.likeFile(e,"like")),["stop"])},null,8,Qr))]),(0,r._)("div",Fr,[(0,r.Wm)(c,{checked:e.pin,"onUpdate:checked":A=>e.pin=A},{default:(0,r.w5)((()=>[(0,r.Uk)((0,n.zw)(A.$t("PrintboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])],2)))),256)),(0,r.wy)((0,r._)("div",xr,[(0,r.Wm)(l,{size:"large"})],512),[[o.F8,A.loadingShow]])])],512),[[o.F8,3==A.openClick]])]),(0,r.Wm)(g,{ref:"Cropper",onHandleCropperSuccess:A.handleCropperSuccess,onCloseCropper:e[7]||(e[7]=e=>A.deletUploadFile()),cropperFileData:A.cropperFileData,isUpload:A.isUpload},null,8,["onHandleCropperSuccess","cropperFileData","isUpload"])])}const kr=A=>((0,r.dD)("data-v-4867d1ff"),A=A(),(0,r.Cn)(),A),Ir={class:"collection_title"},Hr={class:"collection_title_text"},Sr={class:"collection_modal_body"},Dr={class:"cut_picture_left"},Lr={class:"cut_picture_body"},Or={class:"cur_picture_opterate"},Mr=kr((()=>(0,r._)("span",{class:"icon iconfont icon-chexiao operate_icon"},null,-1))),Tr=[Mr],Kr=kr((()=>(0,r._)("span",{class:"icon iconfont icon-chexiao operate_icon icon_chexiao_sec"},null,-1))),Nr=[Kr],Pr=kr((()=>(0,r._)("span",{class:"operate_icon icon_font"},"-",-1))),Rr=[Pr],Vr=kr((()=>(0,r._)("span",{class:"operate_icon icon_font"},"+",-1))),Gr=[Vr],jr=kr((()=>(0,r._)("span",{class:"icon iconfont icon-shuaxin operate_icon"},null,-1))),zr=[jr],Zr={class:"cut_picture_right"},Wr={class:"cur_picture_right_header"},Xr=kr((()=>(0,r._)("div",{class:"review_logo icon iconfont icon-yulan"},null,-1))),Yr={class:"cut_picture_review_block"},Jr={class:"cut_picture_review_item"},$r=["src"];function qr(A,e,t,i,s,a){const l=(0,r.up)("VueCropper"),c=(0,r.up)("a-modal");return(0,r.wg)(),(0,r.j4)(c,{class:"modal_component cut_pricture_modal",visible:A.cutPicuterModal,"onUpdate:visible":e[8]||(e[8]=e=>A.cutPicuterModal=e),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1},{default:(0,r.w5)((()=>[(0,r._)("div",Ir,[(0,r._)("div",Hr,[(0,r._)("div",null,(0,n.zw)(A.$t("Cropper.Cutpicture")),1)]),(0,r._)("div",{class:"header_right_block",onClick:e[2]||(e[2]=(0,o.iM)((()=>{}),["stop"]))},[(0,r._)("div",{class:"next_step_button",onClick:e[0]||(e[0]=(0,o.iM)((e=>A.finishCropper()),["stop"]))},(0,n.zw)(A.$t("Cropper.Finish")),1),(0,r._)("div",{class:"header_cancel_button",onClick:e[1]||(e[1]=(0,o.iM)((e=>A.cancleCropper()),["stop"]))},(0,n.zw)(A.$t("Cropper.Cancel")),1)])]),(0,r._)("div",Sr,[(0,r._)("div",Dr,[(0,r._)("div",Lr,[(0,r.Wm)(l,{ref:"cropper",original:A.option.original,img:A.option.img,outputSize:A.option.size,outputType:A.option.outputType,"auto-crop":A.option.autoCrop,"auto-crop-width":A.option.autoCropWidth,"auto-crop-height":A.option.autoCropHeight,"center-box":A.option.centerBox,"can-move":A.option.canMove,"can-move-box":A.option.canMoveBox,onRealTime:A.realTime},null,8,["original","img","outputSize","outputType","auto-crop","auto-crop-width","auto-crop-height","center-box","can-move","can-move-box","onRealTime"])]),(0,r._)("div",Or,[(0,r._)("div",{class:"cur_picture_opterate_item",onClick:e[3]||(e[3]=e=>A.rotateLeft())},Tr),(0,r._)("div",{class:"cur_picture_opterate_item",onClick:e[4]||(e[4]=e=>A.rotateRight())},Nr),(0,r._)("div",{class:"cur_picture_opterate_item",onClick:e[5]||(e[5]=e=>A.changeScale(-1))},Rr),(0,r._)("div",{class:"cur_picture_opterate_item",onClick:e[6]||(e[6]=e=>A.changeScale(1))},Gr),(0,r._)("div",{class:"cur_picture_opterate_item",onClick:e[7]||(e[7]=e=>A.refreshCrop())},zr)])]),(0,r._)("div",Zr,[(0,r._)("div",Wr,[Xr,(0,r._)("div",null,(0,n.zw)(A.$t("Cropper.CropPreview")),1)]),(0,r._)("div",Yr,[(0,r._)("div",Jr,[(0,r._)("div",{class:"cut_picture_review_content",style:(0,n.j5)({width:A.previews.w+"px",height:A.previews.h+"px",overflow:"hidden"})},[(0,r._)("div",{style:(0,n.j5)(A.previews.div)},[(0,r._)("img",{class:"previews_image",style:(0,n.j5)(A.previews.img),src:A.previews.url},null,12,$r)],4)],4)])])])])])),_:1},8,["visible"])}var An=t(2323),en=(0,r.aZ)({props:["cropperFileData","isUpload"],components:{VueCropper:An.AK},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 A=this.$refs.cropper;A.rotateLeft()},rotateRight(){let A=this.$refs.cropper;A.rotateRight()},refreshCrop(){let A=this.$refs.cropper;A.refresh()},changeScale(A){A=A||1;let e=this.$refs.cropper;e.changeScale(A)},realTime(A){this.previews=A},getOptionImg(A){this.option.img=A},changeShowModal(A){this.cutPicuterModal=A},finishCropper(){let A=this.$refs.cropper;A.getCropData((A=>{let e=(0,VA._x)(A,this.cropperFileData.name);this.$emit("handleCropperSuccess",{file:e,fileData:this.cropperFileData})}))},closeCropper(){this.cutPicuterModal=!1,this.option.img=""},cancleCropper(){this.cutPicuterModal=!1,this.option.img="",this.$emit("closeCropper")}}});const tn=(0,zA.Z)(en,[["render",qr],["__scopeId","data-v-4867d1ff"]]);var rn=tn,nn=(0,r.aZ)({components:{Cropper:rn,Material:We,Generate:WA},setup(){let A=(0,NA.oR)(),e=(0,TA.iH)([]),t=(0,TA.iH)([]),n=(0,r.Fl)((()=>A.state.UploadFilesModule.moodboardFiles)),i=(0,TA.iH)(1),o=(0,TA.iH)(),s=(0,TA.iH)([]),a=(0,TA.iH)(!1),l=(0,TA.iH)(!1),c=(0,TA.iH)(),{t:u}=(0,GA.QT)();return{fileList:e,printImgList:t,moodBoards:n,openClick:i,generateCheckbox:o,generateList:s,loadingShow:a,inputShow:l,inputTime:c,t:u}},computed:{getPinLength(){let A=0;for(let e of this.fileList)e.pin&&A++;return A}},data(){return{swtich_type:"upload",indicator:(0,r.h)(LA.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Printboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,NA.oR)(),cropperFileData:{name:"",uid:""},currentFileNum:0,isUpload:!1,generateloading:!1,captionGeneration:"",printboardList:(0,r.Fl)((()=>(0,NA.oR)().state.UploadFilesModule.printboard))}},mounted(){this.token=(0,RA.ej)("token")||"",this.uploadUrl=(0,VA.M$)()},methods:{open(A){this.openClick=A;let e=this.$refs.Material;2==A&&e.init("Printboard")},fileUploadChange(A){let e=A.file;e.id_=PA.id++,e.type_={type1:"upload",type2:"Printboard"},e.pin=!1;let t=this.$refs.Cropper;if(1===this.currentFileNum){var r=new FileReader;r.onload=A=>{let e;e="object"===typeof A.target.result?window.URL.createObjectURL(new Blob([A.target.result])):A.target.result,t.getOptionImg(e)},r.readAsArrayBuffer(e.originFileObj),this.cropperFileData=e,t.changeShowModal(!0)}else this.customRequest(e)},beforeUpload(A,e){const t="image/jpeg"===A.type||"image/png"===A.type||"image/jpg"===A.type||"image/bmp"===A.type;t||OA.ZP.warning(this.t("PrintboardUpload.jsContent1"));const r=A.size/1024/1024<2;if(r||OA.ZP.warning(this.t("PrintboardUpload.jsContent2")),!t||!r)return t&&r||MA.Z.LIST_IGNORE;this.currentFileNum=e.length},deleteFile(A){if("generate"==A.type_.type1||"material"==A.type_.type1)A.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",A);else{let e;this.fileList=this.store.state.UploadFilesModule.printboardFiles,this.store.state.UploadFilesModule.printboardFiles.forEach(((t,r)=>{t.id_==A.id_&&(e=r)})),this.fileList.splice(e,1),this.store.commit("setPrintboardFile",this.fileList)}},likeFile(A,e){if("like"==e){let e={generateDetailId:A.id,level1Type:"Printboard",level2Type:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};KA.V.axiosPost(KA.V.httpUrls.generateLike,e).then((e=>{A.like=!0})).catch((A=>{}))}else{let e={generateDetailId:A.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};KA.V.axiosGet(KA.V.httpUrls.generateDislike,{params:e}).then((e=>{A.like=!1})).catch((A=>{}))}},customRequest(A){let e={...this.upload,file:A.originFileObj},t=A.uid;KA.V.axiosPost("/api/element/upload",e,{headers:{"Content-Type":"multipart/form-data"}}).then((A=>{if(A){for(let r of this.fileList)t===r.uid&&(r.status="done",r.imgUrl=A.url,r.pin=!1,r.id=A.id,r.resData=A);let e=this.fileList.filter((A=>"done"===A.status));this.store.commit("setPrintboardFile",e)}})).catch((A=>{let e=-1;this.fileList.forEach(((A,r)=>{t===A.uid&&(e=r)})),e>-1&&this.fileList.splice(e,1)}))},closeCropper(A){if(this.isUpload)return;if("error"==A){let A=-1;this.fileList.forEach(((e,t)=>{this.cropperFileData.uid===e.uid&&(A=t)})),A>-1&&this.fileList.splice(A,1)}let e=this.$refs.Cropper;e.closeCropper()},deletUploadFile(){let A=-1;this.fileList.forEach(((e,t)=>{this.cropperFileData.uid===e.uid&&(A=t)})),A>-1&&this.fileList.splice(A,1)},handleCropperSuccess(A){let{file:e,fileData:t}=A,r={...this.upload,file:e};if(this.isUpload)return;this.isUpload=!0;const n=OA.ZP.loading("loading",0);KA.V.axiosPost("/api/element/upload",r,{headers:{"Content-Type":"multipart/form-data"}}).then((A=>{for(let r of this.fileList)t.uid===r.uid&&(r.status="done",r.imgUrl=A.url,r.id=A.id,r.resData=A);let e=this.fileList.filter((A=>"done"===A.status));this.isUpload=!1,this.closeCropper("success"),this.cropperFileData={name:"",uid:""},this.store.commit("setPrintboardFile",e),n()})).catch((A=>{let e=-1;this.fileList.forEach(((A,r)=>{t.uid===A.uid&&(e=r)})),e>-1&&this.fileList.splice(e,1),this.cropperFileData={name:"",uid:""},this.isUpload=!1,this.closeCropper("error"),n()}))},recollection(){let A=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.printboardFiles)),e={generate:[],material:[],moodboard:[]};A.forEach((A=>{"generate"==A.type_.type1?e.generate.push(A):"material"==A.type_.type1?e.material.push(A):e.moodboard.push(A)})),this.store.commit("setPrintboardGenerateFiles",e.generate),this.store.commit("setPrintboardMaterialFiles",e.material),this.store.commit("setPrintboardFile",e.moodboard),this.fileList=e.moodboard,this.store.commit("setPrintboardFile",this.fileList)},confirmSelect(A){for(let e of A){let A={imgUrl:e.url,resData:e,pin:!1,id:e.id,status:"done"};if(15==this.fileList.length){OA.ZP.warning(this.t("PrintboardUpload.jsContent3"));break}this.fileList.push(A)}this.store.commit("setPrintboardFile",this.fileList)},getgenerateCheckbox(A){this.generateCheckbox=A},ifMaximumLength(){clearTimeout(this.inputTime),this.inputTime=setTimeout((()=>{this.captionGeneration.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},getgenerate(){let A=this.$refs.Generate,e=A.checkbox.filter((A=>A.type))[0].name,t={generateType:e,designType:"",collectionElementId:A?.collectionElementid,level1Type:A.upload.level1Type,level2Type:"",text:this.captionGeneration,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:A.printModel.num,gender:""};if("image"==e||"text-image"==e){if(!A?.collectionElementid)return void OA.ZP.warning(this.t("PrintboardUpload.jsContent4"))}else if("text"==e){if(t.collectionElementId="",t.level2Type="",!this.captionGeneration)return void OA.ZP.warning(this.t("PrintboardUpload.jsContent6"));{let A=this.captionGeneration.split(/\s+/).length;if(A>75)return void OA.ZP.warning(this.t("PrintboardUpload.jsContent5"))}}this.loadingShow=!0,KA.V.axiosPost(KA.V.httpUrls.sketchAndPrintGenerate,t).then((A=>{if(A){let e;this.generateList=[],A.generatedCollectionItems.forEach(((A,t)=>{e={id:A.generateItemId,imgUrl:A.generateItemUrl,id_:PA.id++},this.generateList.push(e),this.loadingShow=!1}))}})).catch((A=>{this.loadingShow=!1}))},generageAdd(A){A.type_={type1:"generate",type2:"Printboard"},A.resData=JSON.parse(JSON.stringify(A)),A.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",A)}}});const on=(0,zA.Z)(nn,[["render",Er],["__scopeId","data-v-0b71a82e"]]);var sn=on;const an={class:"colorboard_upload_modal"},ln={class:"modal_layout"},cn={class:"modal_text"},un={class:"modal_img"},dn=["onClick"],hn={class:"colorboard_upload_right"},gn={class:"upload_right_content"},pn={class:"right_content_line"},fn={class:"upload_right_header"},mn=(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),Bn={class:"color_setting_block"},wn={class:"color_block"},vn={class:"color_right"},Cn={class:"color_HEX_block"},bn={class:"color_rgb_block"},yn={class:"rgb_item"},_n={class:"rgb_item"},Qn={class:"rgb_item"},Un={class:"right_content_line right_content_line_upload"},Fn={class:"upload_right_header"},xn=(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),En={class:"upload_centetn"},kn={class:"upload_item"},In={class:"upload_file_item_content"},Hn={class:"upload_file_item_content"},Sn=["src"],Dn=(0,r._)("div",{class:"upload_tip_block"},[(0,r._)("i",{class:"fi fi-rr-picture"})],-1),Ln={class:"upload_color"},On=["onClick"],Mn=["title"],Tn={class:"right_content_line"},Kn={class:"upload_right_header"},Nn=(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),Pn={class:"get_color_block"},Rn=(0,r._)("span",{class:"icon iconfont icon-huoquduixiang"},null,-1),Vn={class:"get_color_des"},Gn=["title"];function jn(A,e,t,i,s,a){const l=(0,r.up)("Sketch"),c=(0,r.up)("a-spin"),u=(0,r.up)("a-upload");return(0,r.wg)(),(0,r.iD)("div",an,[(0,r._)("div",ln,[(0,r._)("div",cn,[(0,r._)("div",null,(0,n.zw)(A.$t("ColorboardUpload.Thumbnail")),1)]),(0,r._)("div",un,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.colorList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"modal_img_item",key:e},[(0,r._)("div",{onClick:r=>A.selectColorItem(t,e),class:(0,n.C_)(["upload_color",A.selectIndex===t?"select_upload_color":""]),style:(0,n.j5)({background:`rgba(${e?.r},${e?.g},${e?.b},${e?.a})`})},null,14,dn)])))),128)),(0,r._)("div",null,[(0,r._)("span",{class:"started_btn",onClick:e[0]||(e[0]=(...e)=>A.clearCurrentColor&&A.clearCurrentColor(...e))},(0,n.zw)(A.$t("ColorboardUpload.Clear")),1)])])]),(0,r._)("div",hn,[(0,r._)("div",gn,[(0,r._)("div",pn,[(0,r._)("div",fn,[mn,(0,r._)("span",null,(0,n.zw)(A.$t("ColorboardUpload.Palette")),1)]),(0,r._)("div",Bn,[(0,r.Wm)(l,{class:"sketch_color",modelValue:A.selectColor,"onUpdate:modelValue":e[1]||(e[1]=e=>A.selectColor=e),show:A.colorPickerVisible},null,8,["modelValue","show"]),(0,r._)("div",wn,[(0,r._)("div",{class:"color_left",onClick:e[2]||(e[2]=e=>A.colorBlockHex=!A.colorBlockHex)},[(0,r.wy)((0,r._)("div",null,(0,n.zw)(A.$t("ColorboardUpload.HEX")),513),[[o.F8,A.colorBlockHex]]),(0,r.wy)((0,r._)("div",null,(0,n.zw)(A.$t("ColorboardUpload.RGBA")),513),[[o.F8,!A.colorBlockHex]])]),(0,r._)("div",vn,[(0,r.wy)((0,r._)("div",Cn,[(0,r._)("div",{class:"color_block_bg",style:(0,n.j5)({"background-color":`rgba(${A.getSelectRGB(A.selectColor).r},${A.getSelectRGB(A.selectColor).g},${A.getSelectRGB(A.selectColor).b},${A.getSelectRGB(A.selectColor).a})`})},null,4),(0,r._)("div",null,(0,n.zw)(A.getSelectRGB(A.selectColor).hex),1)],512),[[o.F8,A.colorBlockHex]]),(0,r.wy)((0,r._)("div",bn,[(0,r._)("div",{class:"color_block_bg",style:(0,n.j5)({"background-color":`rgba(${A.getSelectRGB(A.selectColor).r},${A.getSelectRGB(A.selectColor).g},${A.getSelectRGB(A.selectColor).b},${A.getSelectRGB(A.selectColor).a})`})},null,4),(0,r._)("div",yn,(0,n.zw)(A.getSelectRGB(A.selectColor).r)+",",1),(0,r._)("div",_n,(0,n.zw)(A.getSelectRGB(A.selectColor).g)+",",1),(0,r._)("div",Qn,(0,n.zw)(A.getSelectRGB(A.selectColor).b),1)],512),[[o.F8,!A.colorBlockHex]])])])])]),(0,r._)("div",Un,[(0,r._)("div",Fn,[xn,(0,r._)("span",null,(0,n.zw)(A.$t("ColorboardUpload.AutoRecognize")),1)]),(0,r._)("div",En,[(0,r._)("div",kn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.fileList,(t=>((0,r.wg)(),(0,r.iD)("div",{class:"upload_file_item",key:t},[(0,r.wy)((0,r._)("div",In,[(0,r.Wm)(c,{indicator:A.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"done"!==t.status]]),(0,r.wy)((0,r._)("div",Hn,[(0,r._)("img",{src:t?.imgUrl,class:"upload_img",ref_for:!0,ref:"colorImage"},null,8,Sn),(0,r._)("div",{class:"delete_file_block",onClick:e[3]||(e[3]=e=>A.deleteFile(A.index))},"Delete")],512),[[o.F8,"done"===t.status]])])))),128)),(0,r.wy)((0,r.Wm)(u,{"list-type":"picture-card",customRequest:function(){},onChange:A.fileUploadChange,"before-upload":A.beforeUpload,accept:".jpg,.png,.jpeg,.bmp"},{default:(0,r.w5)((()=>[Dn])),_:1},8,["customRequest","onChange","before-upload"]),[[o.F8,A.fileList.length<1]])]),(0,r._)("div",Ln,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.selectColorList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{key:e,onClick:t=>A.setUplpadColor(e),class:"upload_color_item"},[(0,r._)("div",{class:"upload_color_item_bg",style:(0,n.j5)({"background-color":`rgba(${e.rgba.r},${e.rgba.g},${e.rgba.b},${e.rgba.a})`})},null,4),(0,r._)("img",{src:"#",title:A.pantongNameList[t]},null,8,Mn)],8,On)))),128))])])]),(0,r._)("div",Tn,[(0,r._)("div",Kn,[Nn,(0,r._)("span",null,(0,n.zw)(A.$t("ColorboardUpload.ColorCode")),1)]),(0,r._)("div",Pn,[(0,r.wy)((0,r._)("input",{class:"get_color_input",placeholder:"tcx value (e.g.: 19-4052)","onUpdate:modelValue":e[4]||(e[4]=e=>A.tcxColor=e),onKeydown:e[5]||(e[5]=(0,o.D2)((e=>A.getTcxColor()),["enter"]))},null,544),[[o.nr,A.tcxColor]]),(0,r._)("div",{class:"get_color_button",onClick:e[6]||(e[6]=e=>A.getTcxColor())},[Rn,(0,r._)("span",Vn,(0,n.zw)(A.$t("ColorboardUpload.ExtractColor")),1)]),(0,r.wy)((0,r._)("div",{class:"get_color_bg",onClick:e[7]||(e[7]=e=>A.setUplpadColor(A.reviewColor)),style:(0,n.j5)({"background-color":`rgba(${A.getSelectRGB(A.reviewColor).r},${A.getSelectRGB(A.reviewColor).g},${A.getSelectRGB(A.reviewColor).b},${A.getSelectRGB(A.reviewColor).a})`})},[(0,r._)("img",{src:"#",title:A.pantongName},null,8,Gn)],4),[[o.F8,A.getColorBg]])])])])])])}var zn=t(1125),Zn=t(6243),Wn=t.n(Zn);t(1703);function Xn(A,e,t){const r=A,n=[];for(let i,o,s,a,l,c=0;c<e;c+=t)i=4*c,o=r[i+0],s=r[i+1],a=r[i+2],l=r[i+3],("undefined"===typeof l||l>=125)&&(o>250&&s>250&&a>250||n.push([o,s,a]));return n}function Yn(A){let{colorCount:e,quality:t}=A;if("undefined"!==typeof e&&Number.isInteger(e)){if(1===e)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");e=Math.max(e,2),e=Math.min(e,20)}else e=10;return("undefined"===typeof t||!Number.isInteger(t)||t<1)&&(t=10),{colorCount:e,quality:t}}var Jn={createPixelArray:Xn,validateOptions:Yn};
|
||
/*
|
||
* 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 $n=function(A){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=A.naturalWidth,this.height=this.canvas.height=A.naturalHeight,this.context.drawImage(A,0,0,this.width,this.height)};$n.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var qn=function(){};qn.prototype.getColor=function(A,e=10){const t=this.getPalette(A,5,e),r=t[0];return r},qn.prototype.getPalette=function(A,e,t){const r=Jn.validateOptions({colorCount:e,quality:t}),n=new $n(A),i=n.getImageData(),o=n.width*n.height,s=Jn.createPixelArray(i.data,o,r.quality),a=Wn()(s,r.colorCount),l=a?a.palette():null;return l},qn.prototype.getColorFromUrl=function(A,e,t){const r=document.createElement("img");r.addEventListener("load",(()=>{const n=this.getPalette(r,5,t),i=n[0];e(i,A)})),r.src=A},qn.prototype.getImageData=function(A,e){let t=new XMLHttpRequest;t.open("GET",A,!0),t.responseType="arraybuffer",t.onload=function(){if(200==this.status){let A=new Uint8Array(this.response);i=A.length;let t=new Array(i);for(let e=0;e<A.length;e++)t[e]=String.fromCharCode(A[e]);let r=t.join(""),n=window.btoa(r);e("data:image/png;base64,"+n)}},t.send()},qn.prototype.getColorAsync=function(A,e,t){const r=this;this.getImageData(A,(function(A){const n=document.createElement("img");n.addEventListener("load",(function(){const A=r.getPalette(n,5,t),i=A[0];e(i,this)})),n.src=A}))};var Ai=qn,ei=(0,r.aZ)({components:{Chrome:zn.Chrome,Slider:zn.Slider,Sketch:zn.Sketch},setup(){let A=(0,TA.iH)([]),e=[{},{},{},{},{},{},{},{}],t=(0,TA.iH)({rgba:{}}),r=(0,TA.iH)({}),{t:n}=(0,GA.QT)();return{fileList:A,colorList:e,selectColor:t,selectColorList:r,t:n}},watch:{selectColor(A,e){this.colorList[this.selectIndex]=A.rgba;let t=this.colorList.filter((A=>A&&Object.keys(A).length));this.setColorboardList(t)}},computed:{getSelectRGB(A){return A=>{let e=A.rgba,t={r:e?.r||0===e?.r?e?.r:255,g:e?.g||0===e?.g?e?.g:255,b:e?.b||0===e?.b?e?.b:255,a:e?.a||1===e?.a?e?.a:1,hex:void 0==A.hex?"#FFFFFF":A.hex};return 1==t.a&&0==t.a||(t.hex=A.hex8?A.hex8:A.hex),t}}},data(){return{reviewColor:{},selectIndex:0,tcxColor:"",pantongName:"",pantongNameList:[],indicator:(0,r.h)(LA.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,NA.oR)(),colorPickerVisible:!0,colorBlockHex:!0,getColorBg:!1}},mounted(){this.token=(0,RA.ej)("token")||"",this.uploadUrl=(0,VA.M$)();let A=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("vc-sketch-color-wrap")[0];A.addEventListener("click",(async()=>{try{const A=new EyeDropper,e=await A.open();let t=e.sRGBHex.replace("#","");const r=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);this.selectColor={rgba:{r:r,g:n,b:i,a:1},hex:e.sRGBHex}}catch(A){OA.ZP.warning(this.t("ColorboardUpload.jsContent1"))}}))},methods:{selectColorItem(A,e){let t;t=e?.r?this.rgbaToHex([e.r,e.g,e.b,e.a?e.a:1]):"#FFFFFF",this.selectIndex=A,this.selectColor=e?.r?{rgba:{r:e.r,g:e.g,b:e.b,a:e.a?e.a:1},hex:t}:{},this.tcxColor="",this.pantongName="",this.pantongNameList=[],this.reviewColor={},this.getColorBg=!1},getTcxColor(){this.tcxColor&&KA.V.axiosGet(KA.V.httpUrls.getRgbByTcx+"?tcx="+this.tcxColor).then((A=>{if(A&&A.name){let e=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:e}:{hex:""},this.selectColor=this.reviewColor,this.colorList[this.selectIndex]={r:A.r,g:A.g,b:A.b},this.pantongName=A.name;let t=this.colorList.filter((A=>Object.keys(A).length));this.setColorboardList(t),this.getColorBg=!0}else OA.ZP.warning(this.t("ColorboardUpload.jsContent2"))}))},clearCurrentColor(){this.selectColor={},this.reviewColor={},this.pantongName="",this.tcxColor=""},fileUploadChange(A){let e=A.file,t=e.originFileObj;var r=new FileReader;r.onload=A=>{let t;t="object"===typeof A.target.result?window.URL.createObjectURL(new Blob([A.target.result])):A.target.result,e.imgUrl=t,e.status="done",this.fileList.push(e),setTimeout((async()=>{const A=new Image;let t=this.$refs.colorImage;A.src=t[0].src;const r=new Ai;A.onload=async()=>{t[0];let n,i=[],o=r.getPalette(A,9),s={max:5,min:5};await PA.setColor(o,e.imgUrl,s).then((A=>{A&&(n=A.ratio)})),n.sort(((A,e)=>{var t=A.ratio,r=e.ratio;return r-t})),o=[],n.forEach((A=>{o.push(A.rgb)})),o=o.join("&"),o=o.split("&");let a=o[0].split(","),l=this.rgbaToHex(a),c=[];new Set(o).forEach((A=>{c.push(A.split(","))})),c.forEach((A=>{let e=this.rgbaToHex(A);i.push({rgba:{r:A[0],g:A[1],b:A[2],a:1},hex:e})})),this.selectColorList=i,this.getHsvColor(i),this.selectColor={rgba:{r:a[0],g:a[1],b:a[2],a:1},hex:l}}}),100)},r.readAsDataURL(t)},rgbaToHex(A){let e="#";return A.forEach(((A,t)=>{e+=3==t?Math.round(255*A).toString(16):Number(A).toString(16).padStart(2,"0")})),e},setUplpadColor(A){this.selectColor=A},beforeUpload(A){const e="image/jpeg"===A.type||"image/png"===A.type||"image/jpg"===A.type||"image/bmp"===A.type;e||OA.ZP.warning(this.t("ColorboardUpload.jsContent3"));const t=A.size/1024/1024<5;return t||OA.ZP.warning(this.t("ColorboardUpload.jsContent4")),e&&t||MA.Z.LIST_IGNORE},deleteFile(A){this.fileList.splice(A,1),this.selectColorList=[]},getHsvColor(A){this.pantongName="";let e=[];A.forEach(((A,t)=>{let r=[A.rgba.r,A.rgba.g,A.rgba.b,A.rgba.a];e.push(r)}));let t=[];e.forEach((A=>{let e=(0,VA.py)(A);0==t.length||t[0].h;let r={h:Number(e[0]),s:Number(e[1]),v:Number(e[2])};t.push(r)})),KA.V.axiosPost(KA.V.httpUrls.getRgbByHsvBatch,t).then((A=>{A&&A.forEach((A=>{this.pantongNameList.push(A.name)}))})).catch((A=>{}))},setColorboardList(A){let e=A.map((A=>{let e={id:"",name:"",rgbValue:A};return e}));this.store.commit("setColorboardList",e)},recollection(){let A,e=this.store.state.UploadFilesModule.allBoardData.colorBoards;e.forEach(((e,t)=>{A=this.rgbaToHex([e.rgbValue.r,e.rgbValue.g,e.rgbValue.b,e.rgbValue.a?e.rgbValue.a:1]),this.colorList[t]=e.rgbValue})),this.selectColor={rgba:this.colorList[0],hex:A},this.store.commit("setColorboardList",e)}}});const ti=(0,zA.Z)(ei,[["render",jn]]);var ri=ti;const ni=A=>((0,r.dD)("data-v-56ffd945"),A=A(),(0,r.Cn)(),A),ii={class:"sketchboard_upload_modal"},oi={class:"modal_left"},si={class:"switch_type_list"},ai={class:"sketchboard_body"},li={class:"upload_img_body scroll_style"},ci={class:"upload_item"},ui={class:"upload_file_item_content"},di={class:"upload_file_item_content"},hi=["src"],gi={class:"operate_file_block"},pi={class:"select_img_type"},fi=["onClick"],mi={class:"category_list"},Bi=["onClick"],wi=["onClick"],vi=ni((()=>(0,r._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),Ci=[vi],bi={class:"pin_block"},yi={class:"upload_file_item upload_component"},_i={class:"upload_tip_block"},Qi=ni((()=>(0,r._)("i",{class:"fi fi-br-upload"},null,-1))),Ui=[Qi],Fi={class:"modal_right"},xi={class:"modal_layout"},Ei={class:"modal_text"},ki={class:"modal_img"},Ii=["onClick"],Hi=ni((()=>(0,r._)("div",{class:"checked"},[(0,r._)("i",{class:"fi fi-rr-trash"})],-1))),Si={class:"modal_accomplish"},Di=["maxlength","readonly","placeholder"],Li={class:"modal_img"},Oi=["src","onClick"],Mi={class:"operate_file_block"},Ti={class:"select_img_type"},Ki=["onClick"],Ni={class:"category_list"},Pi=["onClick"],Ri={class:"delete_like_file_block"},Vi=["onClick"],Gi=["onClick"],ji={class:"pin_block"},zi={class:"mark_loading"};function Zi(A,e,t,i,s,a){const l=(0,r.up)("a-spin"),c=(0,r.up)("a-checkbox"),u=(0,r.up)("a-upload"),d=(0,r.up)("Material"),h=(0,r.up)("Generate"),g=(0,r.Q2)("lazy");return(0,r.wg)(),(0,r.iD)("div",ii,[(0,r._)("div",oi,[(0,r._)("div",si,[(0,r._)("div",{onClick:e[0]||(e[0]=(0,o.iM)((e=>A.open(1)),["stop"])),class:(0,n.C_)(["switch_type_item",[1==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("SketchboardUpload.Upload")),1)],2),(0,r._)("div",{onClick:e[1]||(e[1]=(0,o.iM)((e=>A.open(2)),["stop"])),class:(0,n.C_)(["switch_type_item",[2==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("SketchboardUpload.Library")),1)],2),(0,r._)("div",{onClick:e[2]||(e[2]=(0,o.iM)((e=>A.open(3)),["stop"])),class:(0,n.C_)(["switch_type_item",[3==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("SketchboardUpload.Generate")),1)],2)]),(0,r.wy)((0,r._)("div",ai,[(0,r._)("div",li,[(0,r._)("div",ci,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.fileList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"upload_file_item",key:e},[(0,r.wy)((0,r._)("div",ui,[(0,r.Wm)(l,{indicator:A.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===e?.status]]),(0,r.wy)((0,r._)("div",di,[(0,r._)("img",{src:e?.imgUrl,class:"upload_img"},null,8,hi),(0,r._)("div",gi,[(0,r._)("div",pi,[(0,r._)("div",{class:"select_category",onClick:(0,o.iM)((t=>A.showFileCategory(e)),["stop"])},[(0,r.Uk)((0,n.zw)(e.category)+" ",1),(0,r._)("div",{class:(0,n.C_)(["icon","iconfont","icon-xiala",e.categoryShow?"icon_rotate":""])},null,2)],8,fi),(0,r.wy)((0,r._)("div",mi,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.sketchCatecoryList,((t,i)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["category_item",e.category==t.value?"select_category_item":""]),key:i,onClick:r=>A.selectFileCategory(e,t)},(0,n.zw)(t.label),11,Bi)))),128))],512),[[o.F8,e.categoryShow]])])]),(0,r._)("div",{class:"delete_like_file_block",onClick:(0,o.iM)((t=>A.deleteFile(e)),["stop"])},Ci,8,wi)],512),[[o.F8,"done"===e?.status]]),(0,r.wy)((0,r._)("div",bi,[(0,r.Wm)(c,{checked:e.pin,"onUpdate:checked":A=>e.pin=A},{default:(0,r.w5)((()=>[(0,r.Uk)((0,n.zw)(A.$t("SketchboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])],512),[[o.F8,"done"===e?.status]])])))),128)),(0,r.wy)((0,r._)("div",yi,[(0,r.Wm)(u,{action:A.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...A.upload},"before-upload":A.beforeUpload,headers:{Authorization:A.token},"file-list":A.fileList,"onUpdate:file-list":e[3]||(e[3]=e=>A.fileList=e),multiple:"",maxCount:8-A.sketchboardList.length+A.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:e[4]||(e[4]=e=>A.fileUploadChange(e))},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",_i,Ui,512),[[o.F8,A.sketchboardList.length<8]])])),_:1},8,["action","data","before-upload","headers","file-list","maxCount"])],512),[[o.F8,A.sketchboardList.length<8]])])])],512),[[o.F8,1==A.openClick]]),(0,r.wy)((0,r.Wm)(d,{ref:"Material",msg:"Sketchboard",onConfirmSelect:A.confirmSelect,disignTypeList:A.sketchCatecoryList},null,8,["onConfirmSelect","disignTypeList"]),[[o.F8,2==A.openClick]]),(0,r.wy)((0,r.Wm)(h,{ref:"Generate",msg:"Sketchboard",sketchCatecoryList:A.sketchCatecoryList,onGenerateCheckbox:A.getgenerateCheckbox},null,8,["sketchCatecoryList","onGenerateCheckbox"]),[[o.F8,3==A.openClick]])]),(0,r._)("div",Fi,[(0,r._)("div",xi,[(0,r._)("div",Ei,[(0,r._)("div",null,(0,n.zw)(A.$t("SketchboardUpload.Thumbnail")),1)]),(0,r._)("div",ki,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.sketchboardList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"modal_img_item",key:e,onClick:t=>A.deleteFile(e)},[(0,r.wy)((0,r._)("img",null,null,512),[[g,e.imgUrl]]),Hi],8,Ii)))),128))])]),(0,r.wy)((0,r._)("div",Si,[(0,r._)("div",{class:(0,n.C_)(["input_box",{active:A.inputShow}])},[(0,r.wy)((0,r._)("input",{class:(0,n.C_)(["search_input",{forbidden:A.generateCheckbox}]),onInput:e[5]||(e[5]=(...e)=>A.ifMaximumLength&&A.ifMaximumLength(...e)),maxlength:A.inputShow?0:9999,readonly:A.generateCheckbox,placeholder:A.$t("SketchboardUpload.inputContent1"),"onUpdate:modelValue":e[6]||(e[6]=e=>A.captionGeneration=e)},null,42,Di),[[o.nr,A.captionGeneration]]),(0,r._)("div",{class:"generage_btn started_btn",onClick:e[7]||(e[7]=(0,o.iM)(((...e)=>A.getgenerate&&A.getgenerate(...e)),["stop"]))},"Generate"),(0,r._)("span",null,(0,n.zw)(A.$t("SketchboardUpload.maximumLength")),1)],2),(0,r._)("div",Li,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.generateList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["modal_imgItem",{active:e?.checked}])},[(0,r._)("img",{src:e.imgUrl,onClick:t=>A.generageAdd(e)},null,8,Oi),(0,r._)("div",Mi,[(0,r._)("div",Ti,[(0,r._)("div",{class:"select_category",onClick:(0,o.iM)((t=>A.showFileCategory(e)),["stop"])},[(0,r.Uk)((0,n.zw)(e.category)+" ",1),(0,r._)("div",{class:(0,n.C_)(["icon","iconfont","icon-xiala",e.categoryShow?"icon_rotate":""])},null,2)],8,Ki),(0,r.wy)((0,r._)("div",Ni,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.sketchCatecoryList,((t,i)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["category_item",e.category==t.value?"select_category_item":""]),key:i,onClick:(0,o.iM)((r=>A.selectFileCategory(e,t)),["stop"])},(0,n.zw)(t.label),11,Pi)))),128))],512),[[o.F8,e.categoryShow]])])]),(0,r._)("div",Ri,[e.like?((0,r.wg)(),(0,r.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((t=>A.likeFile(e,"noLike")),["stop"])},null,8,Gi)):((0,r.wg)(),(0,r.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((t=>A.likeFile(e,"like")),["stop"])},null,8,Vi))]),(0,r._)("div",ji,[(0,r.Wm)(c,{checked:e.pin,"onUpdate:checked":A=>e.pin=A},{default:(0,r.w5)((()=>[(0,r.Uk)((0,n.zw)(A.$t("SketchboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])],2)))),256)),(0,r.wy)((0,r._)("div",zi,[(0,r.Wm)(l,{size:"large"})],512),[[o.F8,A.loadingShow]])])],512),[[o.F8,3==A.openClick]])])])}var Wi=(0,r.aZ)({components:{Material:We,Generate:WA},setup(){let A=(0,TA.iH)([]),e=(0,TA.iH)(1),t=(0,TA.iH)([]),r=(0,TA.iH)(),n=(0,TA.iH)(!1),i=(0,TA.iH)({}),o=(0,TA.iH)({}),s=(0,TA.iH)(!1),a=(0,TA.iH)(),{t:l}=(0,GA.QT)();return{fileList:A,openClick:e,generateList:t,generateCheckbox:r,loadingShow:n,sketchCatecoryList:i,workspace:o,inputShow:s,inputTime:a,t:l}},data(){return{swtich_type:"upload",indicator:(0,r.h)(LA.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Sketchboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,NA.oR)(),captionGeneration:"",sketchboardList:(0,r.Fl)((()=>(0,NA.oR)().state.UploadFilesModule.sketchboard)),workspaceCom:{}}},computed:{getSketchLabel(A){return A=>{let e="";for(let t of this.sketchCatecoryList)if(t.value===A){e=t.label;break}return e}}},watch:{workspaceCom(A,e){this.workspace=A,this.getPosition()}},mounted(){this.token=(0,RA.ej)("token")||"",this.uploadUrl=(0,VA.M$)(),this.workspaceCom=(0,r.Fl)((()=>this.store?.state?.Workspace?.workspace))},methods:{open(A){if(this.openClick=A,2==A){let A=this.$refs.Material;A.init("Sketchboard")}},getPosition(){let A;A="Female"==this.workspace.sex?"FemalePosition":"MalePosition",KA.V.axiosGet(KA.V.httpUrls.workspaceenumValues,{params:{enumName:A}}).then((A=>{if(A){let e=[];A.forEach((A=>{let t={value:A.name,label:A.name};e.push(t)})),this.sketchCatecoryList=e}}))},getgenerateCheckbox(A){this.generateCheckbox=A},fileUploadChange(A){let e=A.file;if("done"===e.status){let A=JSON.parse(e.xhr.response);e.imgUrl=A.data.url,e.resData=A.data,e.pin=!1,e.category=this.sketchCatecoryList?.[0]?.value,e.categoryShow=!1,e.id_=PA.id++,e.type_={type1:"upload",type2:"Sketchboard"};let t=this.fileList.filter((A=>"done"===A.status));this.store.commit("setSketchboardFile",t)}else if("error"===e.status){let A=-1;this.fileList.forEach(((t,r)=>{e.uid===t.uid&&(A=r)})),A>-1&&this.fileList.splice(A,1),OA.ZP.warning(e.name+this.t("SketchboardUpload.jsContent1"))}},beforeUpload(A){const e="image/jpeg"===A.type||"image/png"===A.type||"image/jpg"===A.type||"image/bmp"===A.type;e||OA.ZP.warning(this.t("SketchboardUpload.jsContent2"));const t=A.size/1024/1024<2;return t||OA.ZP.warning(this.t("SketchboardUpload.jsContent3")),e&&t||MA.Z.LIST_IGNORE},showFileCategory(A){A.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(A,e){if(3==this.openClick){for(let A of this.generateList)A.categoryShow=!1;A.category=e.value}else{for(let A of this.fileList)A.categoryShow=!1;A.category=e.value,this.store.commit("setSketchboardFile",this.fileList)}},hiddenFileCategory(){if(3==this.openClick)for(let A of this.generateList)A.categoryShow=!1;else for(let A of this.fileList)A.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},ifMaximumLength(){clearTimeout(this.inputTime);let A=document.getElementsByClassName("sketchboard_upload_modal")[0].getElementsByClassName("input_box")[0];A.getElementsByClassName("search_input")[0];this.inputTime=setTimeout((()=>{this.captionGeneration.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},deleteFile(A){if("generate"==A.type_.type1||"material"==A.type_.type1)A.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",A);else{let e;this.fileList=this.store.state.UploadFilesModule.sketchboardFiles,this.store.state.UploadFilesModule.sketchboardFiles.forEach(((t,r)=>{t.id_==A.id_&&(e=r)})),this.fileList.splice(e,1),this.store.commit("setSketchboardFile",this.fileList)}},likeFile(A,e){if("like"==e){let e={generateDetailId:A.id,level1Type:"Sketchboard",level2Type:A.category,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};KA.V.axiosPost(KA.V.httpUrls.generateLike,e).then((e=>{A.like=!0})).catch((A=>{}))}else{let e={generateDetailId:A.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};KA.V.axiosPost(KA.V.httpUrls.generateLike,e).then((e=>{A.like=!1})).catch((A=>{}))}},recollection(){let A=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.sketchboardFiles)),e={generate:[],material:[],moodboard:[]};A.forEach((A=>{"generate"==A.type_.type1?e.generate.push(A):"material"==A.type_.type1?e.material.push(A):e.moodboard.push(A)})),this.store.commit("setSketchboardGenerateFiles",e.generate),this.store.commit("setSketchboardMaterialFiles",e.material),this.store.commit("setSketchboardFile",e.moodboard),this.fileList=e.moodboard},confirmSelect(A){for(let e of A){let A={imgUrl:e.url,resData:e,pin:!1,status:"done",category:e.level2Type||"Outwear",categoryShow:!1};if(15==this.fileList.length){OA.ZP.warning(this.t("SketchboardUpload.jsContent4"));break}this.fileList.push(A)}this.store.commit("setSketchboardFile",this.fileList)},getgenerate(){let A=this.$refs.Generate,e=A.checkbox.filter((A=>A.type))[0].name,t={generateType:e,designType:"",collectionElementId:A?.collectionElementid,level1Type:A.upload.level1Type,level2Type:A.level2Type,text:this.captionGeneration,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:1,gender:this.workspace.sex};if("image"==e||"text-image"==e){if(!A?.collectionElementid)return void OA.ZP.warning(this.t("SketchboardUpload.jsContent5"))}else if("text"==e){if(t.collectionElementId="",t.level2Type="",!this.captionGeneration)return void OA.ZP.warning(this.t("SketchboardUpload.jsContent7"));{let A=this.captionGeneration.split(/\s+/).length;if(A>75)return void OA.ZP.warning(this.t("SketchboardUpload.jsContent6"))}}this.loadingShow=!0,KA.V.axiosPost(KA.V.httpUrls.sketchAndPrintGenerate,t).then((e=>{if(e){let t;this.generateList=[],e.generatedCollectionItems.forEach(((e,r)=>{t={id:e.generateItemId,imgUrl:e.generateItemUrl,category:A.level2Type,id_:PA.id++},this.generateList.push(t),this.loadingShow=!1}))}})).catch((A=>{this.loadingShow=!1}))},generageAdd(A){A.type_={type1:"generate",type2:"Sketchboard"},A.resData=JSON.parse(JSON.stringify(A)),A.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",A)}}});const Xi=(0,zA.Z)(Wi,[["render",Zi],["__scopeId","data-v-56ffd945"]]);var Yi=Xi,Ji="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 $i=A=>((0,r.dD)("data-v-2119dc4e"),A=A(),(0,r.Cn)(),A),qi={class:"collection_modal_item"},Ao={class:"switch_type_list"},eo={class:"switch_type_item select_swtich"},to={class:"marketingUpload_body"},ro={class:"upload_img_body scroll_style"},no={class:"upload_item"},io={class:"upload_file_item_content"},oo={class:"upload_file_item_content"},so=["src"],ao=["onClick"],lo={class:"upload_file_item upload_component"},co={class:"upload_tip_block"},uo=$i((()=>(0,r._)("img",{class:"upload_img_icon",src:Ji},null,-1))),ho=[uo],go={class:"upload_max_tip"},po=$i((()=>(0,r._)("span",{class:"icon iconfont icon-zhuyi"},null,-1)));function fo(A,e,t,i,s,a){const l=(0,r.up)("a-spin"),c=(0,r.up)("a-upload"),u=(0,r.up)("Material");return(0,r.wg)(),(0,r.iD)("div",qi,[(0,r._)("div",Ao,[(0,r._)("div",eo,[(0,r._)("span",null,(0,n.zw)(A.$t("MarketingSketchUpload.Upload")),1)]),(0,r._)("div",{onClick:e[0]||(e[0]=e=>A.openLibrary()),class:"switch_type_item"},[(0,r._)("span",null,(0,n.zw)(A.$t("MarketingSketchUpload.MyLibrary")),1)])]),(0,r.wy)((0,r._)("div",to,[(0,r._)("div",ro,[(0,r._)("div",no,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.fileList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"upload_file_item",key:e},[(0,r.wy)((0,r._)("div",io,[(0,r.Wm)(l,{indicator:A.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===e?.status]]),(0,r.wy)((0,r._)("div",oo,[(0,r._)("img",{src:e?.imgUrl,class:"upload_img"},null,8,so),(0,r._)("div",{class:"delete_file_block",onClick:e=>A.deleteFile(t)},"Delete",8,ao)],512),[[o.F8,"done"===e?.status]])])))),128)),(0,r.wy)((0,r._)("div",lo,[(0,r.Wm)(c,{action:A.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...A.upload},"before-upload":A.beforeUpload,headers:{Authorization:A.token},"file-list":A.fileList,"onUpdate:file-list":e[1]||(e[1]=e=>A.fileList=e),multiple:"",maxCount:15,accept:".jpg,.png,.jpeg,.bmp",onChange:e[2]||(e[2]=e=>A.fileUploadChange(e))},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",co,ho,512),[[o.F8,A.fileList.length<15]])])),_:1},8,["action","data","before-upload","headers","file-list"])],512),[[o.F8,A.fileList.length<15]])])]),(0,r._)("div",go,[po,(0,r._)("span",null,(0,n.zw)(A.$t("MarketingSketchUpload.maximumLength")),1)])],512),[[o.F8,"upload"===A.swtich_type]]),(0,r.Wm)(u,{ref:"Material",onConfirmSelect:A.confirmSelect},null,8,["onConfirmSelect"])])}var mo=(0,r.aZ)({components:{Material:We},setup(){let A=(0,TA.iH)([]),{t:e}=(0,GA.QT)();return{fileList:A,t:e}},data(){return{swtich_type:"upload",indicator:(0,r.h)(LA.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"MarketingSketch",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,NA.oR)()}},mounted(){this.token=(0,RA.ej)("token")||"",this.uploadUrl=(0,VA.M$)()},methods:{openLibrary(){let A=this.$refs.Material;A.init("MarketingSketch")},fileUploadChange(A){let e=A.file;if("done"===e.status){let A=JSON.parse(e.xhr.response);e.imgUrl=A.data.url,e.resData=A.data;let t=this.fileList.filter((A=>"done"===A.status));this.store.commit("setMarketingSketchFile",t)}else if("error"===e.status){let A=-1;this.fileList.forEach(((t,r)=>{e.uid===t.uid&&(A=r)})),A>-1&&this.fileList.splice(A,1),OA.ZP.error(e.name+this.t("MarketingSketchUpload.jsContent1"))}},beforeUpload(A){const e="image/jpeg"===A.type||"image/png"===A.type||"image/jpg"===A.type||"image/bmp"===A.type;e||OA.ZP.warning(this.t("MarketingSketchUpload.jsContent2"));const t=A.size/1024/1024<2;return t||OA.ZP.warning(this.t("MarketingSketchUpload.jsContent3")),e&&t||MA.Z.LIST_IGNORE},deleteFile(A){this.fileList.splice(A,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(A){for(let e of A){let A={imgUrl:e.url,resData:e,status:"done"};if(15==this.fileList.length){OA.ZP.warning(this.t("MarketingSketchUpload.jsContent5"));break}this.fileList.push(A)}this.store.commit("setMarketingSketchFile",this.fileList)}}});const Bo=(0,zA.Z)(mo,[["render",fo],["__scopeId","data-v-2119dc4e"]]);var wo=Bo,vo=t(8302),Co=t(327),bo=(0,r.aZ)({components:{Generate:WA,MoodboardUpload:Zt,PrintboardUpload:sn,ColorboardUpload:ri,SketchboardUpload:Yi,MarketingSketchUpload:wo},state(){let{t:A}=(0,GA.QT)();return{t:A}},data(){return{showCollectionModal:!1,collectionStep:1,store:(0,NA.oR)()}},methods:{nextStep(){if(1==this.collectionStep){let A=this.store.state.UploadFilesModule.disposeMoodboard,e=this.store.state.UploadFilesModule.moodboard;if(e.length>1&&(!A||0==A.length))return void OA.ZP.warning(this.$t("collectionModal.jsContent1"))}this.collectionStep=this.collectionStep+1},lastStep(){this.collectionStep=this.collectionStep-1},changeCollectionModal(A){this.showCollectionModal=A},recollection(){setTimeout((()=>{let A=["MoodboardUpload","PrintboardUpload","ColorboardUpload","SketchboardUpload"];for(let e of A){let A=this.$refs[e];A.recollection()}}),200)},cancelDsign(){let A=this;Co.Z.confirm({title:this.$t("collectionModal.jsContent2"),icon:(0,r.Wm)(vo.Z),okText:"Yes",cancelText:"No",mask:!1,onOk(){PA.id=0,A.showCollectionModal=!1,A.store.commit("clearAllData"),A.collectionStep=1}})},finishCollection(){let A=this.store.state.UploadFilesModule.colorBoards;!A||A?.length<1?OA.ZP.warning(this.$t("collectionModal.jsContent3")):(this.store.commit("clearAllId"),PA.id=0,this.showCollectionModal=!1,this.collectionStep=1,this.$emit("finishCollection"))}}});const yo=(0,zA.Z)(bo,[["render",nA],["__scopeId","data-v-55dd008a"]]);var _o=yo;const Qo=A=>((0,r.dD)("data-v-731eada7"),A=A(),(0,r.Cn)(),A),Uo={class:"collection_review"},Fo=Qo((()=>(0,r._)("div",{class:"collection_review_mark"},null,-1))),xo={key:0,class:"img_block_item"},Eo={class:"all_img_item_block"},ko=["src"],Io={key:1,class:"img_block_item"},Ho={class:"all_img_item_block"},So=["src"],Do={class:"img_block_item"},Lo={class:"all_img_item_block"},Oo=["src"],Mo={class:"all_img_item_block"},To=["src"],Ko={class:"img_block_item"},No={class:"color_content_body"},Po={class:"color_des"},Ro={class:"color_des"},Vo={class:"img_block_item img_block_item_sketch"},Go={class:"all_img_item_block"},jo=["src"],zo={class:"img_block_item"},Zo={class:"all_img_item_block"},Wo=["src"];function Xo(A,e,t,i,s,a){return(0,r.wg)(),(0,r.iD)("div",Uo,[Fo,0!=A.allBoardData?.disposeMoodboard?.length&&null!=A.allBoardData?.disposeMoodboard?.[0]?((0,r.wg)(),(0,r.iD)("div",xo,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData?.disposeMoodboard,(A=>(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{key:A,class:"lager_img_item lager_img_disposeMoodboard"},[(0,r._)("div",Eo,[(0,r._)("img",{class:"all_img_content cover_img",src:A?.imgUrl},null,8,ko)])])),[[o.F8,""!=A?.imgUrl]]))),128))])):((0,r.wg)(),(0,r.iD)("div",Io,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData?.moodboardFiles,(A=>(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{key:A,class:"lager_img_item lager_img_moodboard"},[(0,r._)("div",Ho,[(0,r._)("img",{class:"all_img_content cover_img",src:A?.imgUrl},null,8,So)])])),[[o.F8,""!=A?.imgUrl]]))),128))])),(0,r._)("div",Do,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData?.printboardFiles,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"small_img_item",key:A},[(0,r._)("div",Lo,[(0,r._)("img",{class:"all_img_content cover_img",src:A?.imgUrl},null,8,Oo)])])))),128)),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData?.generatePrintFiles,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"small_img_item",key:A},[(0,r._)("div",Mo,[(0,r._)("img",{class:"all_img_content cover_img",src:A.imgUrl},null,8,To)])])))),128))]),(0,r._)("div",Ko,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData?.colorBoards,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"color_item",key:A},[(0,r._)("div",{class:"color_content",style:(0,n.j5)({background:`rgb(${A?.rgbValue?.r},${A?.rgbValue?.g},${A?.rgbValue?.b},${A?.rgbValue?.a})`})},null,4),(0,r._)("div",No,[(0,r._)("div",Po,(0,n.zw)(A.tcx),1),(0,r._)("div",Ro,(0,n.zw)(A.name),1)])])))),128))]),(0,r._)("div",Vo,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData.sketchboardFiles,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"lager_img_item",key:A},[(0,r._)("div",Go,[(0,r._)("img",{class:"all_img_content",src:A.imgUrl},null,8,jo)])])))),128))]),(0,r._)("div",zo,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData.marketingSketchFiles,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"lager_img_item",key:A},[(0,r._)("div",Zo,[(0,r._)("img",{class:"all_img_content",src:A.imgUrl},null,8,Wo)])])))),128))])])}var Yo=(0,r.aZ)({components:{MoodTemplate:st},setup(){const A=(0,NA.oR)();let e=(0,r.Fl)((()=>A.state.UploadFilesModule.allBoardData));return{allBoardData:e}},mounted(){}});const Jo=(0,zA.Z)(Yo,[["render",Xo],["__scopeId","data-v-731eada7"]]);var $o=Jo;const qo={class:"export_new_collection_review"},As={key:0,class:"img_block_item"},es={class:"all_img_item_block"},ts=["src"],rs={key:1,class:"img_block_item"},ns={class:"all_img_item_block"},is=["src"],os={class:"img_block_item"},ss={class:"all_img_item_block"},as=["src"],ls={class:"all_img_item_block"},cs=["src"],us={class:"img_block_item"},ds={class:"color_content_body"},hs={class:"color_des"},gs={class:"color_des"},ps={class:"img_block_item img_block_item_sketch"},fs={class:"all_img_item_block"},ms=["src"],Bs={class:"img_block_item"},ws={class:"all_img_item_block"},vs=["src"],Cs={class:"img_block_item img_block_item_sketch h50"},bs={class:"all_img_item_block"},ys=["src"];function _s(A,e,t,i,s,a){return(0,r.wg)(),(0,r.iD)("div",qo,[0!=A.allBoardData?.disposeMoodboard?.length&&null!=A.allBoardData?.disposeMoodboard?.[0]?((0,r.wg)(),(0,r.iD)("div",As,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData?.disposeMoodboard,(A=>(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{key:A,class:"lager_img_item lager_img_disposeMoodboard"},[(0,r._)("div",es,[(0,r._)("img",{class:"all_img_content cover_img",src:A?.imgUrl},null,8,ts)])])),[[o.F8,""!=A?.imgUrl]]))),128))])):((0,r.wg)(),(0,r.iD)("div",rs,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData?.moodboardFiles,(A=>(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{key:A,class:"lager_img_item lager_img_moodboard"},[(0,r._)("div",ns,[(0,r._)("img",{class:"all_img_content cover_img",src:A?.imgUrl},null,8,is)])])),[[o.F8,""!=A?.imgUrl]]))),128))])),(0,r._)("div",os,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData.printboardFiles,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"small_img_item",key:A},[(0,r._)("div",ss,[(0,r._)("img",{class:"all_img_content cover_img",src:A.imgUrl},null,8,as)])])))),128)),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData.generatePrintFiles,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"small_img_item",key:A},[(0,r._)("div",ls,[(0,r._)("img",{class:"all_img_content cover_img",src:A.imgUrl},null,8,cs)])])))),128))]),(0,r._)("div",us,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData.colorBoards,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"color_item",key:A},[(0,r._)("div",{class:"color_content",style:(0,n.j5)({background:`rgb(${A?.rgbValue?.r},${A?.rgbValue?.g},${A?.rgbValue?.b})`})},null,4),(0,r._)("div",ds,[(0,r._)("div",hs,(0,n.zw)(A.tcx),1),(0,r._)("div",gs,(0,n.zw)(A.name),1)])])))),128))]),(0,r._)("div",ps,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData.sketchboardFiles,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"lager_img_item",key:A},[(0,r._)("div",fs,[(0,r._)("img",{class:"all_img_content",src:A.imgUrl},null,8,ms)])])))),128))]),(0,r._)("div",Bs,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.allBoardData.marketingSketchFiles,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"lager_img_item",key:A},[(0,r._)("div",ws,[(0,r._)("img",{class:"all_img_content",src:A.imgUrl},null,8,vs)])])))),128))]),(0,r._)("div",Cs,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.likeDesignCollectionList,(A=>((0,r.wg)(),(0,r.iD)("div",{class:"lager_img_item",key:A.designItemUrl},[(0,r._)("div",bs,[(0,r._)("img",{class:"all_img_content",src:A.designItemUrl},null,8,ys)])])))),128))])])}var Qs=(0,r.aZ)({components:{MoodTemplate:st},setup(){const A=(0,NA.oR)();let e=(0,r.Fl)((()=>A.state.UploadFilesModule.allBoardData)),t=(0,r.Fl)((()=>A.state.HomeStoreModule.likeDesignCollectionList));return{allBoardData:e,likeDesignCollectionList:t}}});const Us=(0,zA.Z)(Qs,[["render",_s],["__scopeId","data-v-c59e9318"]]);var Fs=Us;const xs={class:"design_title_text"},Es={class:"design_title_text_intro"},ks=(0,r._)("i",{class:"fi fi-rr-cross-small"},null,-1),Is=[ks],Hs=(0,r._)("span",{class:"icon iconfont icon_turn icon-shangyibu"},null,-1),Ss=[Hs],Ds=(0,r._)("span",{class:"icon iconfont icon_turn icon-xiayibu"},null,-1),Ls=[Ds],Os={class:"design_detail_modal_body"},Ms={class:"detail_modal_body_img"},Ts={class:"detail_modal_body"},Ks={class:"detail_modal_body_nav"},Ns=["onClick"],Ps=["src"],Rs={class:"detail_modal_model_content"},Vs=["src"],Gs=["src"],js=["onClick"],zs=["src"],Zs=["src"],Ws={class:"detail_btn"},Xs={class:"detail_modal_body_category"},Ys={class:"detail_modal_right_top scroll_style"},Js={class:"clothes_detail_item clothes_detail_item_apparel"},$s={class:"clothes_item_header"},qs=(0,r._)("i",{class:"fi fi-rs-comments"},null,-1),Aa=["src"],ea={class:"clothes_detail_item clothes_detail_item_print"},ta={class:"clothes_item_header"},ra=(0,r._)("i",{class:"fi fi-rs-comments"},null,-1),na=["src"],ia={class:"clothes_detail_item clothes_detail_item_color"},oa={class:"clothes_item_header"},sa=(0,r._)("i",{class:"fi fi-rs-comments"},null,-1),aa={class:"color_item"},la={class:"color_content_body"},ca={class:"color_des"},ua={class:"color_des"},da={class:"design_detail_perview"},ha={class:"design_detail_perview_content"},ga={class:"design_detail_perview"},pa={class:"design_detail_perview_content"},fa={class:"mark_loading"};function ma(A,e,t,i,s,a){const l=(0,r.up)("DesignDetailAlter"),c=(0,r.up)("magnifyingGlass"),u=(0,r.up)("setDesignItem"),d=(0,r.up)("a-modal"),h=(0,r.up)("a-spin");return(0,r.wg)(),(0,r.iD)("div",null,[(0,r.Wm)(d,{class:"design_detail_modal_component",visible:A.designDetailShow,"onUpdate:visible":e[17]||(e[17]=e=>A.designDetailShow=e),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1},{default:(0,r.w5)((()=>[(0,r._)("div",xs,[(0,r._)("div",null,(0,n.zw)(A.$t("DesignDetail.Details")),1),(0,r._)("div",Es,(0,n.zw)(A.$t("DesignDetail.EditDetails")),1)]),(0,r._)("div",{class:"design_closeIcon",onClick:e[0]||(e[0]=(0,o.iM)((e=>A.closeModal()),["stop"]))},Is),(0,r.wy)((0,r._)("div",{class:"turn_button turn_left_button",onClick:e[1]||(e[1]=e=>A.changeDesignItem("last"))},Ss,512),[[o.F8,1==A.designShowPrview]]),(0,r.wy)((0,r._)("div",{class:"turn_button turn_right_button",onClick:e[2]||(e[2]=e=>A.changeDesignItem("next"))},Ls,512),[[o.F8,1==A.designShowPrview]]),(0,r.wy)((0,r._)("div",Os,[(0,r._)("div",Ms,[(0,r.wy)((0,r._)("div",Ts,[(0,r._)("div",Ks,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.designItemDetail?.clothes,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)({active:e.clothesOpen}),onClick:e=>A.clothesOpen(t)},[(0,r._)("img",{src:e?.path,alt:""},null,8,Ps)],10,Ns)))),256))]),(0,r._)("div",Rs,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.frontBack.back,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["detail_modal_item_back",{active:A.body}]),style:(0,n.j5)(e.style)},[(0,r._)("img",{src:e.imageUrl,alt:""},null,8,Vs)],6)))),256)),(0,r._)("img",{class:"detail_modal_model",src:A.frontBack.body?.layersObject[0]?.imageUrl,alt:""},null,8,Gs),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.frontBack.front,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["detail_modal_item_front",{active:A.body}]),style:(0,n.j5)(e.style),onClick:(0,o.iM)((r=>A.clothesDetail(e,t)),["stop"])},[(0,r._)("img",{src:e.imageUrl,alt:""},null,8,zs)],14,js)))),256))])],512),[[o.F8,A.imgDesignImg]]),(0,r.wy)((0,r._)("img",{class:"detial_img",src:A.designItemDetail.designItemUrl},null,8,Zs),[[o.F8,!A.imgDesignImg]]),(0,r._)("div",Ws,[(0,r._)("i",{class:"fi fi-bs-expand-arrows-alt",onClick:e[3]||(e[3]=e=>A.showDesignImgDetail(2))}),(0,r.wy)((0,r._)("i",{class:"fi fi-rr-edit",onClick:e[4]||(e[4]=e=>A.showDesignImgDetail(3))},null,512),[[o.F8,!A.body]]),(0,r._)("i",{class:"fi fi-rr-copy",onMousedown:e[5]||(e[5]=(...e)=>A.mousedownDesignImg&&A.mousedownDesignImg(...e)),onMouseup:e[6]||(e[6]=(...e)=>A.mouseupDesignImg&&A.mouseupDesignImg(...e))},null,32),(0,r.wy)((0,r._)("i",{class:"icon iconfont icon-chehui",onClick:e[7]||(e[7]=(...e)=>A.revocation&&A.revocation(...e))},null,512),[[o.F8,A.revocationShow>1]]),(0,r.wy)((0,r._)("i",{class:"icon iconfont icon-fanchehui",onClick:e[8]||(e[8]=(...e)=>A.oppositeRevocation&&A.oppositeRevocation(...e))},null,512),[[o.F8,A.oppositeRevocationShow>=1]])]),(0,r.wy)((0,r._)("div",{class:"subitOkPreviewBtn",onClick:e[9]||(e[9]=(...e)=>A.submit&&A.submit(...e))},(0,n.zw)(A.$t("DesignDetail.Submit")),513),[[o.F8,A.ifSubmit]])]),(0,r._)("div",Xs,[(0,r.wy)((0,r._)("div",Ys,[(0,r._)("div",Js,[(0,r._)("div",$s,[qs,(0,r._)("div",null,(0,n.zw)(A.$t("DesignDetail.CurrentApparel")),1),(0,r._)("i",{class:"fi fi-rr-edit",onClick:e[10]||(e[10]=(0,o.iM)((e=>A.openCurrent(1)),["stop"]))})]),(0,r._)("img",{src:A.designItemDetail?.clothes?.[A.currentIndex]?.path,alt:"",class:"centent",onClick:e[11]||(e[11]=e=>A.openCurrent(1))},null,8,Aa)]),(0,r._)("div",ea,[(0,r._)("div",ta,[ra,(0,r._)("div",null,(0,n.zw)(A.$t("DesignDetail.CurrentPrint")),1),(0,r._)("i",{class:"fi fi-rr-edit",onClick:e[12]||(e[12]=(0,o.iM)((e=>A.openCurrent(2)),["stop"]))})]),A.designItemDetail?.clothes?.[A.currentIndex]?.printObject?.prints[0]?.path?((0,r.wg)(),(0,r.iD)("div",{key:0,class:"centent_div",onClick:e[13]||(e[13]=e=>A.openCurrent(2))},[(0,r._)("img",{src:A.designItemDetail?.clothes?.[A.currentIndex]?.printObject?.prints[0]?.path,alt:""},null,8,na)])):((0,r.wg)(),(0,r.iD)("i",{key:1,class:"fi fi-rr-picture centent",onClick:e[14]||(e[14]=e=>A.openCurrent(2))}))]),(0,r._)("div",ia,[(0,r._)("div",oa,[sa,(0,r._)("div",null,(0,n.zw)(A.$t("DesignDetail.CurrentColor")),1),(0,r._)("i",{class:"fi fi-rr-edit",onClick:e[15]||(e[15]=(0,o.iM)((e=>A.openCurrent(3)),["stop"]))})]),(0,r._)("div",{class:"img_block_item centent",onClick:e[16]||(e[16]=(0,o.iM)((e=>A.openCurrent(3)),["stop"]))},[(0,r._)("div",aa,[(0,r._)("div",{class:"color_content",style:(0,n.j5)({background:`rgba(${A.designItemDetail?.clothes?.[A.currentIndex].color?.r},${A.designItemDetail?.clothes?.[A.currentIndex].color?.g},${A.designItemDetail?.clothes?.[A.currentIndex].color?.b},${A.designItemDetail?.clothes?.[A.currentIndex].color?.a?A.designItemDetail?.clothes?.[A.currentIndex].color.a:1})`})},null,4),(0,r._)("div",la,[(0,r._)("div",ca,(0,n.zw)(A.designItemDetail?.clothes?.[A.currentIndex]?.color?.tcx),1),(0,r._)("div",ua,(0,n.zw)(A.designItemDetail?.clothes?.[A.currentIndex]?.color?.name),1)])])])])],512),[[o.F8,A.designOrder]])]),(0,r.Wm)(l,{ref:"DesignDetailAlter"},null,512)],512),[[o.F8,1==A.designShowPrview]]),(0,r.wy)((0,r._)("div",da,[(0,r._)("div",ha,[(0,r.Wm)(c,{ref:"magnifyingGlass",designItemDetailUrl:A.designItemDetailUrl},null,8,["designItemDetailUrl"])])],512),[[o.F8,2==A.designShowPrview]]),(0,r.wy)((0,r._)("div",ga,[(0,r._)("div",pa,[(0,r.Wm)(u,{ref:"setDesignItem",onSetDesignCoverage:A.setDesignCoverage,onSetSubmit:A.setSubmit},null,8,["onSetDesignCoverage","onSetSubmit"])])],512),[[o.F8,3==A.designShowPrview]])])),_:1},8,["visible"]),(0,r.wy)((0,r._)("div",fa,[(0,r.Wm)(h,{size:"large"})],512),[[o.F8,A.loadingShow]])])}const Ba={class:"detail_modal_body_select"},wa={class:"detail_uploadLibrary"},va={class:"switch_type_list"},Ca={class:"detail_Library"},ba={class:"content_search_block"},ya=["placeholder"],_a=(0,r._)("span",{class:"icon iconfont icon-sousuo"},null,-1),Qa=[_a],Ua={class:"detail_Upload_item"},Fa={class:"moodboard_body"},xa={class:"upload_img_body scroll_style"},Ea={class:"upload_item"},ka=["onClick"],Ia={class:"upload_file_item_content"},Ha={class:"upload_file_item_content"},Sa=["src"],Da={class:"operate_file_block"},La={class:"select_img_type"},Oa=["onClick"],Ma=["onClick"],Ta=(0,r._)("span",{class:"icon iconfont icon-shanchu"},null,-1),Ka=[Ta],Na={class:"upload_file_item upload_component"},Pa={class:"upload_tip_block"},Ra=(0,r._)("i",{class:"fi fi-br-upload"},null,-1),Va=[Ra],Ga={class:"detail_Library_item"},ja={class:"material_content_body scroll_style"},za=["alt","onClick"],Za={key:0,class:"operate_file_block"},Wa={class:"select_img_type"},Xa=["onClick"],Ya={class:"category_list"},Ja=["onClick"],$a={class:"material_content_list_loding"},qa=(0,r._)("img",{src:_e,alt:""},null,-1),Al=[qa],el={class:"no_data_block loading_block"},tl={class:"detail_color"},rl={class:"right_content_line"},nl={class:"upload_right_header"},il=(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),ol={class:"color_setting_block"},sl={class:"color_block"},al={class:"color_right"},ll={class:"color_HEX_block"},cl={class:"color_rgb_block"},ul={class:"rgb_item"},dl={class:"rgb_item"},hl={class:"rgb_item"},gl={class:"right_content_line right_content_line_upload"},pl={class:"upload_right_header"},fl=(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),ml={class:"upload_centetn"},Bl={class:"upload_item"},wl={class:"upload_file_item_content"},vl={class:"upload_file_item_content"},Cl=["src"],bl=(0,r._)("div",{class:"upload_tip_block"},[(0,r._)("i",{class:"fi fi-rr-picture"})],-1),yl={class:"upload_color"},_l=["onClick"],Ql=["title"],Ul={class:"right_content_line"},Fl={class:"upload_right_header"},xl=(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),El={class:"get_color_block"},kl=(0,r._)("span",{class:"icon iconfont icon-huoquduixiang"},null,-1),Il=(0,r._)("span",{class:"get_color_des"},null,-1),Hl=[kl,Il];function Sl(A,e,t,i,s,a){const l=(0,r.up)("a-spin"),c=(0,r.up)("a-upload"),u=(0,r.up)("Sketch"),d=(0,r.up)("DesignDetailEnd"),h=(0,r.Q2)("lazy"),g=(0,r.Q2)("observe");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("div",Ba,[(0,r.wy)((0,r._)("div",null,[(0,r._)("div",wa,[(0,r._)("div",va,[(0,r._)("div",{onClick:e[0]||(e[0]=(0,o.iM)((e=>A.open(1)),["stop"])),class:(0,n.C_)(["switch_type_item",[1==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailAlter.Upload")),1)],2),(0,r._)("div",{onClick:e[1]||(e[1]=(0,o.iM)((e=>A.open(2)),["stop"])),class:(0,n.C_)(["switch_type_item",[2==A.openClick?"select_swtich":""]])},[(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailAlter.Library")),1)],2)]),(0,r.wy)((0,r._)("div",Ca,[(0,r._)("div",ba,[(0,r.wy)((0,r._)("input",{class:"search_input",placeholder:A.$t("DesignDetailAlter.inputContent1"),"onUpdate:modelValue":e[2]||(e[2]=e=>A.searchPictureName=e),onKeydown:e[3]||(e[3]=(0,o.D2)((e=>A.getLibraryList()),["enter"]))},null,40,ya),[[o.nr,A.searchPictureName]]),(0,r._)("div",{class:"search_icon_block",onClick:e[4]||(e[4]=(0,o.iM)((e=>A.getLibraryList()),["stop"]))},Qa)])],512),[[o.F8,2==A.openClick]])]),(0,r.wy)((0,r._)("div",Ua,[(0,r._)("div",Fa,[(0,r._)("div",xa,[(0,r._)("div",Ea,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.uploadList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"upload_file_item",key:e,onClick:(0,o.iM)((t=>A.selectImgItem(e)),["stop"])},[(0,r.wy)((0,r._)("div",Ia,[(0,r.Wm)(l,{indicator:A.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===e?.status]]),(0,r.wy)((0,r._)("div",Ha,[(0,r._)("img",{src:e?.url,class:"upload_img"},null,8,Sa),(0,r.wy)((0,r._)("div",Da,[(0,r._)("div",La,[(0,r._)("div",{class:"select_category",onClick:(0,o.iM)((t=>A.showFileCategory(e)),["stop"])},(0,n.zw)(A.current.type),9,Oa)])],512),[[o.F8,"Sketchboard"==A.selectCode]]),(0,r._)("div",{class:"delete_file_block",onClick:(0,o.iM)((e=>A.deleteFile(t)),["stop"])},Ka,8,Ma)],512),[[o.F8,"done"===e?.status]])],8,ka)))),128)),(0,r.wy)((0,r._)("div",Na,[(0,r.Wm)(c,{action:A.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...A.upload},headers:{Authorization:A.token},"file-list":A.uploadList,"onUpdate:file-list":e[5]||(e[5]=e=>A.uploadList=e),"before-upload":A.beforeUpload,maxCount:8-A.uploadList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:e[6]||(e[6]=e=>A.upFileUploadChange(e))},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",Pa,Va,512),[[o.F8,8!=A.uploadList.length]])])),_:1},8,["action","data","headers","file-list","before-upload","maxCount"])],512),[[o.F8,8!=A.uploadList.length]])])])])],512),[[o.F8,1==A.openClick]]),(0,r.wy)((0,r._)("div",Ga,[(0,r._)("div",ja,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.clothesList,(e=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["content_img_item",{active:"Moodboard"!==A.selectCode}]),key:e.id},[(0,r._)("div",{class:(0,n.C_)(["content_img_item_block",{active:e?.checked}])},[(0,r.wy)(((0,r.wg)(),(0,r.iD)("img",{class:(0,n.C_)(["Printboard"==A.selectCode?"print_content_img":"content_img"]),key:e.url,alt:e.name,onClick:(0,o.iM)((t=>A.selectImgItem(e)),["stop"])},null,10,za)),[[h,e.url]]),"Sketchboard"==A.selectCode?((0,r.wg)(),(0,r.iD)("div",Za,[(0,r._)("div",Wa,[(0,r._)("div",{class:"select_category",onClick:(0,o.iM)((t=>A.showFileCategory(e)),["stop"])},[(0,r.Uk)((0,n.zw)(e.level2Type)+" ",1),(0,r._)("div",{class:(0,n.C_)(["icon","iconfont","icon-xiala",e.categoryShow?"icon_rotate":""])},null,2)],8,Xa),(0,r.wy)((0,r._)("div",Ya,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.disignTypeList,((t,i)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["category_item",e.level2Type==t.value?"select_category_item":""]),key:i,onClick:(0,o.iM)((r=>A.selectFileCategory(e,t)),["stop"])},(0,n.zw)(t.label),11,Ja)))),128))],512),[[o.F8,e.categoryShow]])])])):(0,r.kq)("",!0)],2)],2)))),128)),(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",$a,Al)),[[o.F8,A.total>A.clothesList.length],[g]])]),(0,r.wy)((0,r._)("div",el,[(0,r.Wm)(l,{size:"large"})],512),[[o.F8,A.isShowLoading]])],512),[[o.F8,2==A.openClick]])],512),[[o.F8,(1==A.type_||2==A.type_)&&1==A.select]]),(0,r.wy)((0,r._)("div",null,[(0,r._)("div",tl,[(0,r._)("div",rl,[(0,r._)("div",nl,[il,(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailAlter.Palette")),1)]),(0,r._)("div",ol,[(0,r.Wm)(u,{class:"sketch_color",modelValue:A.selectColor,"onUpdate:modelValue":e[7]||(e[7]=e=>A.selectColor=e),show:A.colorPickerVisible},null,8,["modelValue","show"]),(0,r._)("div",sl,[(0,r._)("div",{class:"color_left",onClick:e[8]||(e[8]=e=>A.colorBlockHex=!A.colorBlockHex)},[(0,r.wy)((0,r._)("div",null,(0,n.zw)(A.$t("DesignDetailAlter.HEX")),513),[[o.F8,A.colorBlockHex]]),(0,r.wy)((0,r._)("div",null,(0,n.zw)(A.$t("DesignDetailAlter.RGBA")),513),[[o.F8,!A.colorBlockHex]])]),(0,r._)("div",al,[(0,r.wy)((0,r._)("div",ll,[(0,r._)("div",{class:"color_block_bg",style:(0,n.j5)({"background-color":`rgba(${A.getSelectRGB(A.selectColor).r},${A.getSelectRGB(A.selectColor).g},${A.getSelectRGB(A.selectColor).b},${A.getSelectRGB(A.selectColor).a})`})},null,4),(0,r._)("div",null,(0,n.zw)(A.getSelectRGB(A.selectColor).hex),1)],512),[[o.F8,A.colorBlockHex]]),(0,r.wy)((0,r._)("div",cl,[(0,r._)("div",{class:"color_block_bg",style:(0,n.j5)({"background-color":`rgba(${A.getSelectRGB(A.selectColor).r},${A.getSelectRGB(A.selectColor).g},${A.getSelectRGB(A.selectColor).b},${A.getSelectRGB(A.selectColor).a})`})},null,4),(0,r._)("div",ul,(0,n.zw)(A.getSelectRGB(A.selectColor).r)+",",1),(0,r._)("div",dl,(0,n.zw)(A.getSelectRGB(A.selectColor).g)+",",1),(0,r._)("div",hl,(0,n.zw)(A.getSelectRGB(A.selectColor).b),1)],512),[[o.F8,!A.colorBlockHex]])])])])]),(0,r._)("div",gl,[(0,r._)("div",pl,[fl,(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailAlter.AutoRecognize")),1)]),(0,r._)("div",ml,[(0,r._)("div",Bl,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.colorFileList,(t=>((0,r.wg)(),(0,r.iD)("div",{class:"upload_file_item",key:t},[(0,r.wy)((0,r._)("div",wl,[(0,r.Wm)(l,{indicator:A.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"done"!==t.status]]),(0,r.wy)((0,r._)("div",vl,[(0,r._)("img",{src:t?.imgUrl,class:"upload_img",ref_for:!0,ref:"colorImage"},null,8,Cl),(0,r._)("div",{class:"delete_file_block",onClick:e[9]||(e[9]=e=>A.colorDeleteFile(A.index))},(0,n.zw)(A.$t("DesignDetailAlter.Delete")),1)],512),[[o.F8,"done"===t.status]])])))),128)),(0,r.wy)((0,r.Wm)(c,{"list-type":"picture-card",customRequest:function(){},onChange:A.fileUploadChange,"before-upload":A.beforeUpload,accept:".jpg,.png,.jpeg,.bmp"},{default:(0,r.w5)((()=>[bl])),_:1},8,["customRequest","onChange","before-upload"]),[[o.F8,A.colorFileList.length<1]])]),(0,r._)("div",yl,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.selectColorList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{key:e,onClick:t=>A.setUplpadColor(e),class:"upload_color_item"},[(0,r._)("div",{class:"upload_color_item_bg",style:(0,n.j5)({"background-color":`rgba(${e.rgba.r},${e.rgba.g},${e.rgba.b},${e.rgba.a})`})},null,4),(0,r._)("img",{src:"#",title:A.pantongNameList[t]},null,8,Ql)],8,_l)))),128))])])]),(0,r._)("div",Ul,[(0,r._)("div",Fl,[xl,(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailAlter.ColorCode")),1)]),(0,r._)("div",El,[(0,r.wy)((0,r._)("input",{class:"get_color_input",placeholder:"tcx value (e.g.: 19-4052)","onUpdate:modelValue":e[10]||(e[10]=e=>A.tcxColor=e),onKeydown:e[11]||(e[11]=(0,o.D2)((e=>A.getTcxColor()),["enter"]))},null,544),[[o.nr,A.tcxColor]]),(0,r._)("div",{class:"get_color_button",onClick:e[12]||(e[12]=e=>A.getTcxColor())},Hl)])])])],512),[[o.F8,3==A.type_&&1==A.select]])]),(0,r.Wm)(d,{ref:"DesignDetailEnd"},null,512)],64)}const Dl=A=>((0,r.dD)("data-v-206fd356"),A=A(),(0,r.Cn)(),A),Ll={class:"detail_modal_body_result"},Ol={class:"result_apparel_print"},Ml={class:"upload_title result_apparel"},Tl=Dl((()=>(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),Kl={class:"result_print"},Nl={class:"upload_title"},Pl=Dl((()=>(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),Rl={class:"print_left"},Vl=["src"],Gl={key:1,src:"@/assets/images/homePage/null_img.png"},jl=Dl((()=>(0,r._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),zl=[jl],Zl={class:"upload_title"},Wl=Dl((()=>(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),Xl={class:"print_right"},Yl={class:"habit_Overal_Single"},Jl={class:"result_apparel_print_img"},$l=["src","title"],ql=["title"],Ac=["src"],ec={class:"result_color upload_title"},tc=Dl((()=>(0,r._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),rc={class:"modal_img"},nc=["title","onClick","onDblclick"],ic={class:"color_content_body"},oc={class:"color_des"},sc={class:"color_des"},ac={class:"mark_loading"};function lc(A,e,t,i,s,a){const l=(0,r.up)("a-switch"),c=(0,r.up)("a-spin"),u=(0,r.up)("DesignPrintOperation");return(0,r.wg)(),(0,r.iD)("div",Ll,[(0,r.wy)((0,r._)("div",Ol,[(0,r.wy)((0,r._)("div",Ml,[Tl,(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailEnd.NewApparel")),1)],512),[[o.F8,1==A.type_]]),(0,r.wy)((0,r._)("div",Kl,[(0,r._)("div",null,[(0,r._)("div",Nl,[Pl,(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailEnd.NewPrint")),1)]),(0,r._)("div",Rl,[A.current?.printObject?.prints?.[0]?.path?((0,r.wg)(),(0,r.iD)("img",{key:0,src:A.current?.printObject?.prints?.[0]?.path},null,8,Vl)):((0,r.wg)(),(0,r.iD)("div",Gl)),(0,r.wy)((0,r._)("div",{class:"delete_file_block",onClick:e[0]||(e[0]=(...e)=>A.deleteFile&&A.deleteFile(...e))},zl,512),[[o.F8,A.current?.printObject?.prints?.[0]?.path]])])]),(0,r._)("div",null,[(0,r._)("div",Zl,[Wl,(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailEnd.Placement")),1)]),(0,r._)("div",Xl,[(0,r._)("div",Yl,[(0,r._)("div",{class:(0,n.C_)(["habit_Overal_Single_text",{active:!A.overallSingle}])},(0,n.zw)(A.$t("DesignDetailEnd.Overall")),3),(0,r.Wm)(l,{onClick:A.setOveralSingle,checked:A.overallSingle,"onUpdate:checked":e[1]||(e[1]=e=>A.overallSingle=e)},null,8,["onClick","checked"]),(0,r._)("div",{class:(0,n.C_)(["habit_Overal_Single_text",{active:A.overallSingle}])},(0,n.zw)(A.$t("DesignDetailEnd.Single")),3)])])])],512),[[o.F8,2==A.type_]]),(0,r._)("div",Jl,[(0,r.wy)((0,r._)("img",{class:"result_appare_img",src:A.sketchImg?.id_?A.sketchImg?.path:A.current?.path,title:A.current?.type},null,8,$l),[[o.F8,1==A.type_]]),(0,r.wy)((0,r._)("div",{class:"result_print_img",onClick:e[2]||(e[2]=(...e)=>A.setPrint&&A.setPrint(...e)),title:A.current?.type},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.current.layersObject,(A=>((0,r.wg)(),(0,r.iD)("img",{src:A.imageUrl,alt:""},null,8,Ac)))),256))],8,ql),[[o.F8,2==A.type_]])])],512),[[o.F8,1==A.type_||2==A.type_]]),(0,r.wy)((0,r._)("div",null,[(0,r._)("div",ec,[tc,(0,r._)("span",null,(0,n.zw)(A.$t("DesignDetailEnd.NewColor")),1)]),(0,r._)("div",rc,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.colorList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"modal_img_item",key:e},[(0,r._)("div",{title:e?.name?e?.name:"",onClick:r=>A.selectColorItem(t,e),onDblclick:t=>A.setSelectColorItem(e),class:(0,n.C_)(["upload_color",A.selectIndex===t?"select_upload_color":""]),style:(0,n.j5)({background:`rgba(${e?.r},${e?.g},${e?.b},${e?.a})`})},[(0,r._)("div",{class:"color_content",style:(0,n.j5)({"background-color":`rgba(${e.rgba?.r},${e.rgba?.g},${e.rgba?.b},${e.rgba?.a})`})},null,4),(0,r._)("div",ic,[(0,r._)("div",oc,(0,n.zw)(e.tcx),1),(0,r._)("div",sc,(0,n.zw)(e.name),1)])],46,nc)])))),128))])],512),[[o.F8,3==A.type_]]),(0,r.wy)((0,r._)("div",{onClick:e[3]||(e[3]=(0,o.iM)(((...e)=>A.setPreview&&A.setPreview(...e)),["stop"])),class:"subitOkPreviewBtn"},(0,n.zw)(A.$t("DesignDetailEnd.preview")),513),[[o.F8,1==A.type_||3==A.type_]]),2==A.type_&&null!=A.current?.printObject?.prints?.[0]?.path?((0,r.wg)(),(0,r.iD)("div",{key:0,onClick:e[4]||(e[4]=(0,o.iM)(((...e)=>A.setPrint&&A.setPrint(...e)),["stop"])),class:"subitOkPreviewBtn"},(0,n.zw)(A.$t("DesignDetailEnd.Layout")),1)):2==A.type_&&null==A.current?.printObject?.prints?.[0]?.path?((0,r.wg)(),(0,r.iD)("div",{key:1,onClick:e[5]||(e[5]=(0,o.iM)(((...e)=>A.setPreview&&A.setPreview(...e)),["stop"])),class:"subitOkPreviewBtn"},(0,n.zw)(A.$t("DesignDetailEnd.preview")),1)):(0,r.kq)("",!0),(0,r.wy)((0,r._)("div",ac,[(0,r.Wm)(c,{size:"large"})],512),[[o.F8,A.loadingShow]]),(0,r.Wm)(u,{ref:"DesignPrintOperation"},null,512)])}const cc={class:"designOpenrtion_content"},uc={class:"design_title_text"},dc=(0,r._)("i",{class:"fi fi-rr-cross-small"},null,-1),hc=[dc],gc={class:"designOpenrtion_open"},pc={class:"print_right"},fc={class:"habit_Overal_Single"},mc={class:"habit_System_Designer"},Bc={class:"print_input"},wc=["placeholder"],vc={class:"designOpenrtion_nav"},Cc=["src","onClick"],bc={class:"designOpenrtion_overall"},yc=["src"],_c={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},Qc={class:"designOpenrtion_imgMask"},Uc={class:"designOpenrtion_print"},Fc=["onMousedown","onClick"],xc=["src"],Ec=["src"],kc=["src"],Ic={class:"designOpenrtion_btn"},Hc=["onMousedown"],Sc={class:"designOpenrtion_rotote"},Dc=["onMousedown"],Lc=(0,r._)("i",{class:"fi fi-rr-arrows animtion1"},null,-1),Oc=(0,r._)("i",{class:"fi fi-rr-arrows animtion2"},null,-1),Mc=[Lc,Oc],Tc={class:"mark_loading"};function Kc(A,e,t,i,s,a){const l=(0,r.up)("a-switch"),c=(0,r.up)("a-slider"),u=(0,r.up)("a-spin"),d=(0,r.up)("a-modal"),h=(0,r.Q2)("rotote");return(0,r.wg)(),(0,r.iD)("div",null,[(0,r.Wm)(d,{class:"designOpenrtion_modal",visible:A.designOpenrtion,"onUpdate:visible":e[12]||(e[12]=e=>A.designOpenrtion=e),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,mask:!0},{default:(0,r.w5)((()=>[(0,r._)("div",cc,[(0,r._)("div",uc,[(0,r._)("div",null,(0,n.zw)(A.$t("DesignPrintOperation.Placement")),1)]),(0,r._)("div",{class:"design_closeIcon",onClick:e[0]||(e[0]=(0,o.iM)((e=>A.closeModal()),["stop"]))},hc),(0,r._)("div",gc,[(0,r._)("div",pc,[(0,r._)("div",fc,[(0,r._)("div",{class:(0,n.C_)(["habit_Overal_Single_text",{active:!A.overallSingle}])},(0,n.zw)(A.$t("DesignPrintOperation.Overall")),3),(0,r.Wm)(l,{checked:A.overallSingle,"onUpdate:checked":e[1]||(e[1]=e=>A.overallSingle=e),onChange:A.setOveralSingle},null,8,["checked","onChange"]),(0,r._)("div",{class:(0,n.C_)(["habit_Overal_Single_text",{active:A.overallSingle}])},(0,n.zw)(A.$t("DesignPrintOperation.Single")),3)]),(0,r.wy)((0,r._)("div",mc,[(0,r.Wm)(c,{id:"system_silder",value:A.systemDesignerPercentage,"onUpdate:value":e[2]||(e[2]=e=>A.systemDesignerPercentage=e),onAfterChange:A.systemDesigner,"tip-formatter":A.formatter},null,8,["value","onAfterChange","tip-formatter"])],512),[[o.F8,!A.overallSingle]]),(0,r.wy)((0,r._)("div",{onClick:e[3]||(e[3]=(...e)=>A.random&&A.random(...e)),class:"button_second"},(0,n.zw)(A.$t("DesignPrintOperation.Random")),513),[[o.F8,A.overallSingle]]),(0,r.wy)((0,r._)("div",Bc,[(0,r.wy)((0,r._)("input",{class:"search_input",placeholder:A.$t("DesignPrintOperation.inputContent"),type:"Number","onUpdate:modelValue":e[4]||(e[4]=e=>A.printAmount=e),onInput:e[5]||(e[5]=(...e)=>A.setprintAmount&&A.setprintAmount(...e))},null,40,wc),[[o.nr,A.printAmount]]),(0,r._)("i",{class:"fi fi-rr-trash",onClick:e[6]||(e[6]=(...e)=>A.deletePrint&&A.deletePrint(...e))})],512),[[o.F8,A.overallSingle]]),(0,r._)("div",vc,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.designOpenrtionList,((e,t)=>(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{class:(0,n.C_)(["designOpenrtion_single",{active:!!A.printStyleList[t]?.designOpenrtionBtn&&A.printStyleList[t]?.designOpenrtionBtn}]),key:e},[(0,r._)("img",{src:e.path,onClick:r=>A.setpitch(e,t)},null,8,Cc)],2)),[[o.F8,A.overallSingle]]))),128)),(0,r.wy)((0,r._)("div",bc,[(0,r._)("img",{src:A.designOpenrtionList[0].path},null,8,yc)],512),[[o.F8,!A.overallSingle]])]),(0,r._)("div",{class:"subitOkPreviewBtn",onClick:e[7]||(e[7]=(0,o.iM)(((...e)=>A.setPreview&&A.setPreview(...e)),["stop"]))},(0,n.zw)(A.$t("DesignPrintOperation.preview")),1)])]),(0,r._)("div",_c,[(0,r._)("div",Qc,[(0,r.wy)((0,r._)("div",Uc,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.designOpenrtionList,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{key:e,style:(0,n.j5)([A.printStyleList?.[t]?.style]),onMousedown:(0,o.iM)((e=>A.itemMoveMousedown(t,e)),["stop"]),class:"modal_imgItem",onClick:r=>A.setpitch(e,t),ref_for:!0,ref:"content"},[(0,r._)("img",{crossOrigin:"anonymous",src:e?.path,style:(0,n.j5)({transform:`rotateZ(${A.printStyleList[t]?.transform?.rotateZ}deg)`}),class:"designOpenrtion_imgItme",draggable:"false"},null,12,xc)],44,Fc)))),128))],512),[[o.F8,A.overallSingle]]),(0,r._)("img",{src:A.current?.path,alt:"",class:"designOpenrtion_sketch"},null,8,Ec),(0,r.wy)((0,r._)("img",{src:A.current?.layersObject?.[1]?.maskUrl,alt:"",class:"designOpenrtion_sketch_mask"},null,8,kc),[[o.F8,A.overallSingle]]),(0,r._)("div",Ic,[A.overallSingle?((0,r.wg)(!0),(0,r.iD)(r.HY,{key:0},(0,r.Ko)(A.printStyleList,((t,i)=>((0,r.wg)(),(0,r.iD)("ul",{key:t,class:(0,n.C_)([{active:!!t?.designOpenrtionBtn&&t?.designOpenrtionBtn},"designOpenrtion_Mousingle"]),style:(0,n.j5)(t.style),onMousedown:(0,o.iM)((e=>A.itemMoveMousedown(i,e)),["stop"])},[(0,r._)("li",{class:"designOpenrtion_btn_top",onMousedown:e[8]||(e[8]=(0,o.iM)((e=>A.itemSizeMousedown("top",e)),["stop"]))},null,32),(0,r._)("li",{class:"designOpenrtion_btn_bottom",onMousedown:e[9]||(e[9]=(0,o.iM)((e=>A.itemSizeMousedown("bottom",e)),["stop"]))},null,32),(0,r._)("li",{class:"designOpenrtion_btn_left",onMousedown:e[10]||(e[10]=(0,o.iM)((e=>A.itemSizeMousedown("left",e)),["stop"]))},null,32),(0,r._)("li",{class:"designOpenrtion_btn_right",onMousedown:e[11]||(e[11]=(0,o.iM)((e=>A.itemSizeMousedown("right",e)),["stop"]))},null,32),(0,r.wy)((0,r._)("li",Sc,null,512),[[h,[i,t.transform],void 0,{stop:!0}]])],46,Hc)))),128)):(0,r.kq)("",!0),(0,r.wy)((0,r._)("div",null,null,512),[[o.F8,!A.overallSingle]]),A.overallSingle?(0,r.kq)("",!0):((0,r.wg)(!0),(0,r.iD)(r.HY,{key:1},(0,r.Ko)(A.printStyleList,((e,t)=>((0,r.wg)(),(0,r.iD)("ul",{key:e,class:(0,n.C_)([{active:!!e?.designOpenrtionBtn&&e?.designOpenrtionBtn},"designOpenrtion_Mouoverall"]),style:(0,n.j5)("left:"+e.style.left+";top:"+e.style.top),onMousedown:(0,o.iM)((e=>A.itemMoveMousedown(t,e)),["stop"])},Mc,46,Dc)))),128))])])])]),(0,r.wy)((0,r._)("div",Tc,[(0,r.Wm)(u,{size:"large"})],512),[[o.F8,A.loadingShow]])])),_:1},8,["visible"])])}var Nc=(0,r.aZ)({setup(A){let e=(0,TA.iH)(!1),t=(0,TA.iH)([]),n=(0,r.f3)("current"),i=(0,r.f3)("setRevocation"),o=(0,TA.iH)(!1),s=(0,TA.iH)(0),a=(0,TA.iH)(1),l=(0,TA.iH)(2),c=(0,TA.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,TA.iH)(""),d=(0,TA.iH)(),h=(0,TA.iH)(0),g=(0,TA.iH)({width:"",height:""}),p=(0,TA.iH)({width:"",height:""}),f=(0,TA.iH)(!1),{t:m}=(0,GA.QT)();return{designOpenrtion:e,designOpenrtionList:t,overallSingle:o,systemDesignerPercentage:s,current:n,printAmount:a,printZIndex:l,printStyleList:c,direction:u,imgDom:d,imgDomIndex:h,print:g,sketch:p,loadingShow:f,setRevocation:i,t:m}},data(){return{store:(0,NA.oR)()}},directives:{rotote:{mounted(A,e){let t=!0,r=0,n=1;n=e.value[1].scale,r=e.value[1].rotateZ;let i=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[e.value[0]];A.style.transform="rotateZ("+r+"deg)",A.addEventListener("mousedown",(n=>{n.stopPropagation(),t=!0;var o=A.getBoundingClientRect();let s=o.x+o.width/2,a=o.y+o.height/2,l=e=>{if(t){let t=s,n=a,o=e.clientX-t,l=n-e.clientY;r=Math.atan2(o,l)*(180/Math.PI),i.firstElementChild.style.transform="rotateZ("+r+"deg)",A.style.transform="rotateZ("+r+"deg)"}};document.addEventListener("mousemove",l);let c=()=>{e.instance.printStyleList[e?.value[0]].transform.rotateZ=r,t=!1,document.removeEventListener("mouseup",c),document.removeEventListener("mousemove",l)};document.addEventListener("mouseup",c)}))}}},methods:{init(){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 e=new Image;e.src=this.current.path,e.onload=()=>{this.sketch.width=e.width/10+"rem",this.sketch.height=e.height/10+"rem"};let t=new Image;t.src=this.current.printObject.prints[0].path,t.onload=()=>{let A=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0];this.sketch.width.replace(/rem/g,""),A.offsetWidth;this.print.width=t.width+"px",this.print.height=t.height+"px",this.printStyleList[0].style.width=t.width+"px",this.printStyleList[0].style.height=t.height+"px",this.printStyleList[0].designOpenrtionBtn=!1,(0,r.Y3)().then((()=>{this.designOpenrtionList[0].scale?this.designOpenrtionList.forEach(((A,e)=>{this.setTemplate(A,e),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(A){let e=this.$parent;e.systemDesignerPercentage=A},formatter(A){return 3*A+"%"},setOveralSingle(){let A=this.$parent;A.overallSingle=this.overallSingle,this.overallSingle?this.random():(this.printAmount=1,this.setprintAmount())},setpitch(A,e){this.printStyleList.forEach((A=>{A.designOpenrtionBtn=!1})),this.imgDomIndex=e,this.printStyleList[e].designOpenrtionBtn=!0,this.printStyleList[e].style.zIndex=this.printZIndex++},itemMoveMousedown(A,e){this.imgDomIndex=A,this.printStyleList.forEach((A=>{A.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]),r=Number(this.imgDom.children[0].style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[A].designOpenrtionBtn=!0,this.printStyleList[A].style.zIndex=this.printZIndex++,this.printStyleList[A].transform={scale:t,rotateZ:r};let n=this.imgDom.getBoundingClientRect(),i=Number(this.printStyleList[A].style.left.replace(/px/g,"")),o=Number(this.printStyleList[A].style.top.replace(/px/g,""));this.printStyleList[A].centers.left=n.x+e.offsetX-i,this.printStyleList[A].centers.top=n.y+e.offsetY-o,document.addEventListener("mouseup",this.mouseup),document.addEventListener("mousemove",this.moveMousemove)},itemSizeMousedown(A,e){this.direction=A,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]),r=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:r};let n=this.imgDom.getBoundingClientRect(),i=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+e.offsetX-i,this.printStyleList[this.imgDomIndex].centers.top=n.y+e.offsetY-i):(this.printStyleList[this.imgDomIndex].centers.left=n.x+e.offsetX+n.width-i,this.printStyleList[this.imgDomIndex].centers.top=n.y+e.offsetY+n.height-i),document.addEventListener("mouseup",this.sizeMouseup),document.addEventListener("mousemove",this.sizeMousemove)},moveMousemove(A){let e=this.imgDom.getBoundingClientRect(),t=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_imgMask")[0];t=t.getBoundingClientRect();let r=A.x-this.printStyleList[this.imgDomIndex].centers.left+"px",n=A.y-this.printStyleList[this.imgDomIndex].centers.top+"px";this.printStyleList[this.imgDomIndex].style.left=r,this.printStyleList[this.imgDomIndex].style.top=n,r.replace(/px/g,"")>=t.width-e.width&&(this.printStyleList[this.imgDomIndex].style.left=t.width-e.width+"px"),r.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.left="0px"),n.replace(/px/g,"")>=t.height-e.height&&(this.printStyleList[this.imgDomIndex].style.top=t.height-e.height+"px"),n.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.top="0px")},sizeMousemove(A){let e,t,r=this.imgDom.getBoundingClientRect(),n=this.imgDom.parentNode,i=r.width,o=r.height,s=i/o;"right"==this.direction?(e=A.x-this.printStyleList[this.imgDomIndex].centers.left,t=(A.x-this.printStyleList[this.imgDomIndex].centers.left)*s,i=e+"px",o=e*s+"px"):"top"==this.direction?(this.printStyleList[this.imgDomIndex].style.top="auto",this.printStyleList[this.imgDomIndex].style.bottom=n.offsetHeight-r.height-this.imgDom.offsetTop+"px",e=(A.x-this.printStyleList[this.imgDomIndex].centers.left)*s,t=this.printStyleList[this.imgDomIndex].centers.top-A.y,o=t+"px",i=t*s+"px"):"bottom"==this.direction?(t=A.y-this.printStyleList[this.imgDomIndex].centers.top,o=t+"px",i=t*s+"px"):"left"==this.direction&&(this.printStyleList[this.imgDomIndex].style.left="auto",this.printStyleList[this.imgDomIndex].style.right=n.offsetWidth-r.width-this.imgDom.offsetLeft+"px",e=this.printStyleList[this.imgDomIndex].centers.left-A.x,i=e+"px",o=e*s+"px"),this.printStyleList[this.imgDomIndex].style.width=i,this.printStyleList[this.imgDomIndex].style.height=o},sizeMouseup(A){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(A){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 A=this.printAmount-this.printStyleList.length;for(let e=0;e<A;e++)this.printStyleList.push(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 A=this.printStyleList.length-this.printAmount;this.designOpenrtionList.splice(this.printStyleList.length-A,A),this.printStyleList.splice(this.printStyleList.length-A,A)}this.printStyleList.forEach((A=>{A.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(((A,e)=>{this.refetchTemplate(e)}))},refetchTemplate(A){Math.trunc(360*Math.random()),Math.trunc(360*Math.random());let e=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0],t=Math.trunc(Math.random()*(e?.width-e?.width/3))+1+e?.width/3,r=t/this.print.width.replace(/px/g,""),n=e?.width-this.print.width.replace(/px/g,"")*r,i=e?.height-this.print.height.replace(/px/g,"")*r;this.printStyleList[A]={centers:{left:0,top:0},style:{left:Math.trunc(Math.random()*n)+1+"px",top:Math.trunc(Math.random()*i)+1+"px",right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")*r+"px",height:this.print.height.replace(/px/g,"")*r+"px",zIndex:this.printZIndex++},transform:{rotateZ:0!=this.printStyleList[A].transform.rotateZ?this.printStyleList[A].transform.rotateZ:0},designOpenrtionBtn:!1}},setTemplate(A,e){this.designOpenrtionList;let t,r=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/r.offsetWidth;t=this.print.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,"");let i=1,o=A.location[0]/n+"px",s=A.location[1]/n+"px";r.offsetWidth<A.location[0]/n&&(o=r.offsetWidth+"px"),r.offsetHeight<A.location[1]/n&&(s=r.offsetHeight+"px"),this.printStyleList[e]={centers:{left:0,top:0},style:{left:o,top:s,right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")/n*A.scale+"px",height:this.print.height.replace(/px/g,"")/n*A.scale+"px",zIndex:i++},transform:{rotateZ:A.angle},designOpenrtionBtn:!1}},computeZindex(){let A=JSON.parse(JSON.stringify(this.printStyleList));A.sort(((A,e)=>{var t=A["style"].zIndex,r=e["style"].zIndex;return t-r}));let e=1;return A.forEach((A=>{A.style.zIndex=e++})),this.computeSize(A)},computeSize(A){let e,t,r=document.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/r.offsetWidth,i=[];return A.forEach(((r,o)=>{this.overallSingle?(e=A[o].style.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,""),t=[A[o].style.left.replace(/px/g,"")*n,A[o].style.top.replace(/px/g,"")*n]):(e=3*this.systemDesignerPercentage/100,t=[A[o].style.left.replace(/px/g,"")*n,A[o].style.top.replace(/px/g,"")*n]);let s={angle:this.overallSingle?A[o].transform.rotateZ:0,location:t,priority:A[o].style.zIndex,scale:e,path:this.designOpenrtionList[o].path,minIOPath:this.designOpenrtionList[o].minIOPath};i.push(s)})),i},setPreview(){let A,e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.printStyleList[0].style.width.replace(/px/g,""),this.print.width.replace(/px/g,"");e.clothes.forEach(((e,t)=>{e.id==this.current.id&&(A=t)}));e.clothes.map((A=>A.type));let t=this.store.state.DesignDetailModule.designPreviewData;t.designSingleItemDTOList[A].printObject={ifSingle:this.overallSingle,prints:this.computeZindex()},t.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,KA.V.axiosPost(KA.V.httpUrls.designSingle,t).then((r=>{e.currentFullBodyView=r.currentFullBodyView,e.clothes[A].printObject.ifSingle=this.overallSingle,e.clothes[A].layersObject=r.clothes[A].layersObject,e.clothes[A].printObject.prints=this.computeZindex(),e.ifSubmit=!0,e.clothes.forEach(((A,e)=>{let t;-1==A.layersObject[0].imageCategory.indexOf("back")&&(t=A.layersObject[0],A.layersObject[0]=A.layersObject[1],A.layersObject[1]=t),A.layersObject[0].id=this.store.state.DesignDetailModule.designItemDetail.clothes[e].layersObject[0].id,A.layersObject[1].id=this.store.state.DesignDetailModule.designItemDetail.clothes[e].layersObject[1].id})),this.store.commit("setDesignItemDetail",e),this.store.commit("setDesignPreviewData",t),this.setRevocation(e,t),this.loadingShow=!1,this.designOpenrtion=!1})).catch((A=>{this.loadingShow=!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 A=this;Co.Z.confirm({title:this.t("DesignPrintOperation.jsContent1"),icon:(0,r.Wm)(vo.Z),okText:"Yes",cancelText:"No",mask:!1,onOk(){A.designOpenrtion=!1}})}}});const Pc=(0,zA.Z)(Nc,[["render",Kc]]);var Rc=Pc,Vc=(0,r.aZ)({props:["msg"],components:{Draggable:Ot(),Sketch:zn.Sketch,DesignPrintOperation:Rc},setup(A){const e=(0,NA.oR)();let t=(0,TA.iH)(0),n=(0,r.f3)("current"),i=(0,r.f3)("setRevocation"),o=(0,TA.iH)({}),s=(0,TA.iH)(!1),a=(0,TA.iH)(30),l=(0,TA.iH)([{},{},{},{},{},{},{},{}]),c=(0,TA.iH)(!1),{t:u}=(0,GA.QT)();return{store:e,current:n,setRevocation:i,sketchImg:o,type_:t,overallSingle:s,systemDesignerPercentage:a,colorList:l,loadingShow:c,t:u}},data(){return{selectIndex:0,getRGBA:{},selectColor:{}}},methods:{init(A){console.log(this.current),this.type_=A,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(A){this.sketchImg.id_=A.id,this.sketchImg.path=A.url,this.sketchImg.minIOPath=A.minIOPath},systemDesigner(A){this.current.printObject.scale=A},setOveralSingle(){this.current.printObject.ifSingle=this.overallSingle},formatter(A){return 3*A+"%"},setPrint(){if(this.current?.printObject?.prints?.[0]?.path){let A=this.$refs.DesignPrintOperation;A.init()}else OA.ZP.warning(this.t("DesignDetailEnd.jsContent1"))},deleteFile(){this.current.printObject={}},selectColorItem(A,e){let t,r=this.$parent;this.selectIndex=A,this.$parent.selectIndex=A,this.$parent.selectColor.rgba.r==e?.rgba?.r&&this.$parent.selectColor.rgba.g==e?.rgba?.g&&this.$parent.selectColor.rgba.b==e?.rgba?.b||(t=e.rgba?.r?r.rgbaToHex([e.rgba.r,e.rgba.g,e.rgba.b,e.rgba.a]):"#FFFFFF",this.$parent.selectColor=""!=e?.rgba?.r?{rgba:{r:e.rgba?.r,g:e.rgba?.g,b:e.rgba?.b,a:e.rgba?.a},hex:t}:{},this.$parent.tcxColor="",this.$parent.pantongName="")},setSelectColorItem(A){let e=this.store.state.DesignDetailModule.designItemDetail,t=`${A.rgba.r},${A.rgba.g},${A.rgba.b},${A.rgba.a}`;this.current.color=t,e.clothes.forEach(((A,t)=>{A.id==this.current.id&&(e.clothes[t]=this.current)}))},setPreview(){let A,e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designPreviewData));if(e.clothes.forEach(((e,t)=>{e.id==this.current.id&&(A=t)})),1==this.type_)t.designSingleItemDTOList[A].path!=this.sketchImg.minIOPath&&this.sketchImg.id_&&(t.designSingleItemDTOList[A].offset=[0,0],t.designSingleItemDTOList[A].scale=1),t.designSingleItemDTOList[A].id=this.sketchImg.id_?this.sketchImg.id_:this.current.id_,t.designSingleItemDTOList[A].path=this.sketchImg.minIOPath?this.sketchImg.minIOPath:this.current.minIOPath;else if(2==this.type_)t.designSingleItemDTOList[A].printObject.ifSingle=!1,t.designSingleItemDTOList[A].printObject.prints=[];else if(3==this.type_){let e=`${this.$parent.selectColor.rgba.r} ${this.$parent.selectColor.rgba.g} ${this.$parent.selectColor.rgba.b}`;t.designSingleItemDTOList[A].color=e}t.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,KA.V.axiosPost(KA.V.httpUrls.designSingle,t).then((r=>{e.currentFullBodyView=r.currentFullBodyView,e.clothes[A].color=r.clothes[A].color,e.clothes[A].printObject=r.clothes[A].printObject,e.clothes[A].layersObject=r.clothes[A].layersObject,e.clothes[A].minIOPath=r.clothes[A].minIOPath,e.clothes[A].path=r.clothes[A].path,e.ifSubmit=!0,e.clothes.forEach(((A,e)=>{let t;-1==A.layersObject[0].imageCategory.indexOf("back")&&(t=A.layersObject[0],A.layersObject[0]=A.layersObject[1],A.layersObject[1]=t),A.layersObject[0].id=this.store.state.DesignDetailModule.designItemDetail.clothes[e].layersObject[0].id,A.layersObject[1].id=this.store.state.DesignDetailModule.designItemDetail.clothes[e].layersObject[1].id})),this.loadingShow=!1,this.store.commit("setDesignItemDetail",e),this.store.commit("setDesignPreviewData",t),this.setRevocation(e,t)})).catch((A=>{this.loadingShow=!1}))}}});const Gc=(0,zA.Z)(Vc,[["render",lc],["__scopeId","data-v-206fd356"]]);var jc=Gc,zc=(0,r.aZ)({props:["msg"],components:{Draggable:Ot(),Sketch:zn.Sketch,DesignDetailEnd:jc},setup(A){const e=(0,NA.oR)();let t=(0,TA.iH)(1),n=(0,TA.iH)(!1),i=(0,r.f3)("current"),o=(0,TA.iH)(1),s=(0,TA.iH)(""),a=[{value:"Outwear",label:"Outwear"},{value:"Blouse",label:"Blouse"},{value:"Dress",label:"Dress"},{value:"Trousers",label:"Trousers"},{value:"Skirt",label:"Skirt"}],l=(0,TA.iH)(0),c=(0,TA.iH)(10),u=(0,TA.iH)(1),d=(0,TA.iH)(!1),h=(0,TA.iH)([]),g=(0,TA.iH)([]),p=(0,TA.iH)([]),f=(0,TA.iH)([]),m=(0,TA.iH)("Sketchboard"),B=(0,TA.iH)({rgba:{}}),w=(0,TA.iH)({}),v=(0,TA.iH)({}),{t:C}=(0,GA.QT)();return{store:e,current:i,openClick:o,searchPictureName:s,disignTypeList:a,total:l,pageSize:c,currentPage:u,isShowLoading:d,clothesList:h,uploadList:g,apparelList:p,printList:f,selectCode:m,type_:t,select:n,selectColor:B,selectColorList:w,workspace:v,t:C}},data(){return{token:"",uploadUrl:"",upload:{isPin:0,level1Type:"Sketchboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},indicator:(0,r.h)(LA.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,r.h)(LA.Z,{style:{fontSize:"2.4rem"},spin:!0}),getPantongNameTime:!0,workspaceCom:{}}},directives:{observe:{mounted(A,e){const t=new IntersectionObserver(n,{root:null,threshold:[.5]});t.observe(A);let r=e.instance;function n(A,e){A.forEach((A=>{A.isIntersecting&&r.getLibraryList()}))}}}},computed:{getSketchLabel(A){return A=>{let e="";for(let t of this.disignTypeList)if(t.value===A){e=t.label;break}return e}},getSelectRGB(A){return A=>{let e=A.rgba,t={r:e?.r||0===e?.r?e?.r:255,g:e?.g||0===e?.g?e?.g:255,b:e?.b||0===e?.b?e?.b:255,a:e?.a||1===e?.a?e?.a:1,hex:void 0==A.hex?"#FFFFFF":A.hex};return 1==t.a&&0==t.a||(t.hex=A.hex8?A.hex8:A.hex),t}}},mounted(){},watch:{selectColor(A,e){let t=this.$refs.DesignDetailEnd;t.colorList[t.selectIndex]=A;let r=t.colorList.filter((A=>A&&Object.keys(A).length));this.setColorboardList(r),clearInterval(this.getPantongNameTime),this.getPantongNameTime=setTimeout((()=>{this.getPantongName(A.rgba)}),100)},workspaceCom(A,e){this.workspace=A,this.getPosition()}},mounted(){this.token=(0,RA.ej)("token")||"",this.uploadUrl=(0,VA.M$)();let A=document.getElementsByClassName("detail_modal_body_select")[0].getElementsByClassName("vc-sketch-color-wrap")[0];A.addEventListener("click",(async()=>{try{const A=new EyeDropper,e=await A.open();let t=e.sRGBHex.replace("#","");const r=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);this.selectColor={rgba:{r:r,g:n,b:i,a:1},hex:e.sRGBHex}}catch(A){OA.ZP.error(this.t("DesignDetailAlter.jsContent1"))}}))},methods:{init(A){this.type_=A,this.select=!0;let e=this.current.color;this.selectColor={rgba:{r:Number(e.r),g:Number(e.g),b:Number(e.b),a:Number(e.a?e.a:1)},hex:this.rgbaToHex([e.r,e.g,e.b,e.a?e.a:1])},this.uploadList=[],1==A?(this.selectCode="Sketchboard",this.upload.level1Type="Sketchboard",this.uploadList=this.apparelList):2==A&&(this.selectCode="Printboard",this.upload.level1Type="Printboard",this.uploadList=this.printList),1!=A&&2!=A||(this.clothesList=[],this.getLibraryList());let t=this.$refs.DesignDetailEnd;t.init(A),this.workspaceCom=(0,r.Fl)((()=>this.store?.state?.Workspace?.workspace))},getPosition(){let A;A="Female"==this.workspace.sex?"FemalePosition":"MalePosition",KA.V.axiosGet(KA.V.httpUrls.workspaceenumValues,{params:{enumName:A}}).then((A=>{if(A){let e=[];A.forEach((A=>{let t={value:A.name,label:A.name};e.push(t)})),this.disignTypeList=e}}))},deleteFile(A){this.uploadList.splice(A,1)},upFileUploadChange(A){let e=A.file;if("done"===e.status){let A=JSON.parse(e.xhr.response);e.id=A.data.id,e.url=A.data.url,e.resData=A.data,e.designType=A.data.designType,e.category=this.current;let t=this.uploadList.filter((A=>"done"===A.status));this.uploadList.length>=8?OA.ZP.warning(this.t("DesignDetailAlter.jsContent2")):(this.uploadList=t,"Sketchboard"==this.selectCode?this.apparelList=this.uploadList:this.printList=this.uploadList)}else if("error"===e.status){let A=-1;this.uploadList.forEach(((t,r)=>{e.uid===t.uid&&(A=r)})),A>-1&&this.uploadList.splice(A,1),OA.ZP.warning(e.name+this.t("DesignDetailAlter.jsContent3"))}},terminate(){let A=this.$refs.DesignDetailEnd;this.select=!1,A.selectIndex=0,A.type_=0,this.colorFileList=[],this.selectColorList=[]},changePlace(){this.uploadList=[];let A=this.$refs.DesignDetailEnd;this.uploadList=[],this.apparelList=[],this.printList=[],A.colorList=[{},{},{},{},{},{},{},{}],A.sketchImg={},this.terminate()},showFileCategory(A){A.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(A,e){A.level2Type=e.value;for(let t of this.clothesList)t.categoryShow=!1;this.setSketchLibrary(A)},hiddenFileCategory(){for(let A of this.clothesList)A.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchLibrary(A){let e={libraryId:A.id,level2Type:A.level2Type};KA.V.axiosPost(KA.V.httpUrls.setSketchLibrary,e).then((A=>{})).catch((A=>{}))},selectImgItem(A){if("Sketchboard"==this.selectCode){let e=this.$refs.DesignDetailEnd;e.setSketchImg(A)}else this.current.printObject.path=A?.url,this.current.printObject.id=A?.id,this.current.printObject.minIOPath=A.minIOPath,this.current.printObject.prints=[{minIOPath:A.minIOPath,path:A?.url}]},getLibraryList(){let A=this.store.state.Workspace.workspace,e={level1Type:this.selectCode,modelSex:A?.sex,page:this.currentPage,pictureName:this.searchPictureName,size:this.pageSize+this.clothesList.length};this.isShowLoading=!0,KA.V.axiosPost(KA.V.httpUrls.queryLibraryPage,e).then((A=>{this.clothesList=A.content,this.isShowLoading=!1,this.total=A.total})).catch((A=>{this.isShowLoading=!1}))},open(A){this.openClick=A,2==A&&this.getLibraryList()},beforeUpload(A){const e="image/jpeg"===A.type||"image/png"===A.type||"image/jpg"===A.type||"image/bmp"===A.type;e||OA.ZP.warning(this.t("DesignDetailAlter.jsContent4"));const t=A.size/1024/1024<5;return t||OA.ZP.warning(this.t("DesignDetailAlter.jsContent5")),e&&t||MA.Z.LIST_IGNORE},colorDeleteFile(A){this.colorFileList.splice(A,1),this.selectColorList=[]},setUplpadColor(A){this.selectColor=A},rgbaToHex(A){let e="#";return A.forEach(((A,t)=>{e+=3==t?Math.round(255*A).toString(16):Number(A).toString(16).padStart(2,"0")})),e},getHsvColor(A){this.pantongName="";let e=[];A.forEach(((A,t)=>{let r=[A.rgba.r,A.rgba.g,A.rgba.b,A.rgba.a];e.push(r)}));let t=[];e.forEach((A=>{let e=(0,VA.py)(A);0==t.length||t[0].h;let r={h:Number(e[0]),s:Number(e[1]),v:Number(e[2])};t.push(r)})),KA.V.axiosPost(KA.V.httpUrls.getRgbByHsvBatch,t).then((A=>{A&&A.forEach((A=>{this.pantongNameList.push(A.name)}))})).catch((A=>{}))},getTcxColor(){if(!this.tcxColor)return;let A=this.$refs.DesignDetailEnd;KA.V.axiosGet(KA.V.httpUrls.getRgbByTcx+"?tcx="+this.tcxColor).then((e=>{if(e&&e.name){let t=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:t}:{hex:""},this.selectColor=this.reviewColor,A.colorList[A.selectIndex]={r:e.r,g:e.g,b:e.b},this.pantongName=e.name;let r=A.colorList.filter((A=>Object.keys(A).length));this.setColorboardList(r),this.getColorBg=!0}else OA.ZP.warning(this.t("DesignDetailAlter.jsContent6"))}))},getPantongName(A){if(!A.r)return;let e=[A.r,A.g,A.b],t=(0,VA.py)(e),r=[{h:t[0],s:t[1],v:t[2]}];return new Promise(((A,e)=>{KA.V.axiosPost(KA.V.httpUrls.getRgbByHsvBatch,r).then((e=>{e&&(this.selectColor.tcx=e[0].tcx,this.selectColor.name=e[0].name,A())})).catch((A=>{e()}))}))},setColorboardList(A){A.map((A=>{let e={id:"",name:"",rgbValue:A};return e}))},fileUploadChange(A){let e=A.file,t=e.originFileObj;var r=new FileReader;r.onload=A=>{let t;t="object"===typeof A.target.result?window.URL.createObjectURL(new Blob([A.target.result])):A.target.result,e.imgUrl=t,e.status="done",this.colorFileList.push(e),setTimeout((async()=>{const A=new Image;let t=this.$refs.colorImage;A.src=t[0].src,A.onload=async()=>{const t=new ColorThief;let r,n=[],i=t.getPalette(A,8),o={max:5,min:5};await PA.setColor(i,e.imgUrl,o).then((A=>{A&&(r=A.ratio)})),r.sort(((A,e)=>{var t=A.ratio,r=e.ratio;return r-t})),i=[],r.forEach((A=>{i.push(A.rgb)})),i=i.join("&"),i=i.split("&");let s=i[0].split(","),a=this.rgbaToHex(s),l=[];new Set(i).forEach((A=>{l.push(A.split(","))})),l.forEach((A=>{let e=this.rgbaToHex(A);n.push({rgba:{r:A[0],g:A[1],b:A[2],a:1},hex:e})})),this.selectColorList=n,this.selectColor={rgba:{r:s[0],g:s[1],b:s[2],a:1},hex:a}}}),100)},r.readAsDataURL(t)}}});const Zc=(0,zA.Z)(zc,[["render",Sl]]);var Wc=Zc;const Xc=A=>((0,r.dD)("data-v-925ebaa4"),A=A(),(0,r.Cn)(),A),Yc={class:"magnifyingGlass"},Jc={class:"initial"},$c={class:"initial_mask"},qc=["src"],Au=Xc((()=>(0,r._)("div",{class:"initial_haver"},null,-1))),eu=Xc((()=>(0,r._)("div",{class:"big"},null,-1)));function tu(A,e,t,n,i,o){const s=(0,r.Q2)("mousemove");return(0,r.wg)(),(0,r.iD)("div",Yc,[(0,r._)("div",Jc,[(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",$c,[(0,r._)("img",{class:"initial_img",src:A.designItemDetailUrl,alt:""},null,8,qc),Au])),[[s]])]),eu])}var ru=t(7849),nu=t(4924),iu=(0,r.aZ)({components:{DownOutlined:ru.Z,UserOutlined:nu.Z},props:["designItemDetailUrl"],setup(){return{}},watch:{},data(){return{}},mounted(){},directives:{mousemove:{mounted(A,e){let t=e=>{const r=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_haver"),n=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_img"),i=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".big"),o=r.getBoundingClientRect().width,s=i.getBoundingClientRect().width,a=s/o;i.style.backgroundImage=`url(${n.src})`;const{left:l,top:c}=n.getBoundingClientRect(),u=n.getBoundingClientRect().height,d=n.getBoundingClientRect().width,{width:h,height:g}=r.getBoundingClientRect();let p=A=>{const e=A.clientX-l,t=A.clientY-c,n=(h/2-e)*a,o=(g/2-t)*a,s=d*a,p=u*a;r.style.top=t-g/2+"px",r.style.left=e-h/2+"px",i.style.backgroundPosition=`${n}px ${o}px`,i.style.backgroundSize=`${s}px ${p}px`};document.addEventListener("mousemove",p),A.addEventListener("mouseout",(()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseover",t)}))};A.addEventListener("mouseover",t)}}},methods:{handleMouseMove(A){}}});const ou=(0,zA.Z)(iu,[["render",tu],["__scopeId","data-v-925ebaa4"]]);var su=ou;const au={class:"design_compile_content",id:"design_compile_content"},lu={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},cu=["onMousedown","onClick"],uu=["src"],du=["onMousedown","onClick"],hu=["src"],gu={class:"designOpenrtion_btn"},pu=["onMousedown"],fu={class:"mark_loading"};function mu(A,e,t,i,s,a){const l=(0,r.up)("a-spin"),c=(0,r.Q2)("lazy");return(0,r.wg)(),(0,r.iD)("div",au,[(0,r._)("div",lu,[(0,r._)("div",{class:"designOpenrtion_imgMask",style:(0,n.j5)(A.frontBack?.body?.style)},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.frontBack.back,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"designOpenrtion_print",onMousedown:(0,o.iM)((e=>A.itemMoveMousedown(t,e)),["stop"]),onClick:r=>A.setpitch(e,t),style:(0,n.j5)(A.frontBack.front[t].style)},[(0,r._)("img",{style:(0,n.j5)(e.imageUrl?"":"display:none;"),src:e.imageUrl,alt:""},null,12,uu)],44,cu)))),256)),(0,r.wy)(((0,r.wg)(),(0,r.iD)("img",{class:"perview_img",style:(0,n.j5)("width:"+A.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";height:"+A.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";"),key:A.designItemDetail.designItemUrl},null,4)),[[c,A.frontBack?.body?.layersObject?.[0].imageUrl||""]]),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.frontBack.front,((e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:"detail_modal_item_front",onMousedown:(0,o.iM)((e=>A.itemMoveMousedown(t,e)),["stop"]),onClick:r=>A.setpitch(e,t),style:(0,n.j5)(e.style)},[(0,r._)("img",{src:e.imageUrl,alt:""},null,8,hu)],44,du)))),256)),(0,r._)("div",gu,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(A.frontBack.front,((t,i)=>((0,r.wg)(),(0,r.iD)("ul",{key:t,class:(0,n.C_)([{active:t.designOpenrtionBtn},"designOpenrtion_btn"]),style:(0,n.j5)(t.style),onMousedown:(0,o.iM)((e=>A.itemMoveMousedown(i,e)),["stop"])},[(0,r._)("li",{class:"designOpenrtion_btn_top",onMousedown:e[0]||(e[0]=(0,o.iM)((e=>A.itemSizeMousedown("top",e)),["stop"]))},null,32),(0,r._)("li",{class:"designOpenrtion_btn_bottom",onMousedown:e[1]||(e[1]=(0,o.iM)((e=>A.itemSizeMousedown("bottom",e)),["stop"]))},null,32),(0,r._)("li",{class:"designOpenrtion_btn_left",onMousedown:e[2]||(e[2]=(0,o.iM)((e=>A.itemSizeMousedown("left",e)),["stop"]))},null,32),(0,r._)("li",{class:"designOpenrtion_btn_right",onMousedown:e[3]||(e[3]=(0,o.iM)((e=>A.itemSizeMousedown("right",e)),["stop"]))},null,32)],46,pu)))),128))])],4),(0,r._)("div",{onClick:e[4]||(e[4]=(...e)=>A.setPreviewData&&A.setPreviewData(...e)),class:"subitOkPreviewBtn"},"OK")]),(0,r._)("div",{class:"designOpenrtion_imgMask_open",onClick:e[5]||(e[5]=(0,o.iM)(((...e)=>A.deleteBorder&&A.deleteBorder(...e)),["stop"]))}),(0,r.wy)((0,r._)("div",fu,[(0,r.Wm)(l,{size:"large"})],512),[[o.F8,A.loadingShow]])])}var Bu=(0,r.aZ)({setup(A){const e=(0,NA.oR)();let t=(0,r.Fl)((()=>e.state.DesignDetailModule.designItemDetail)),n=(0,r.f3)("current"),i=(0,r.f3)("setRevocation"),o=(0,TA.iH)(4),s=(0,TA.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,TA.iH)(""),l=(0,TA.iH)(),c=(0,TA.iH)(0),u=(0,TA.iH)({});return{designItemDetail:t,current:n,printZIndex:o,printStyleList:s,direction:a,imgDom:l,imgDomIndex:c,frontBack:u,setRevocation:i}},data(){return{loadingShow:!1,store:(0,NA.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 A,e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),t=[],r=[];e.others.forEach((e=>{"Body"==e.type&&(A=e)}));let n=await this.setPostition(A.layersObject[0]?.imageUrl),i=6,o=3;e.clothes.forEach(((A,e)=>{for(let s=A.layersObject.length-1;s>=0;s--)A.layersObject[s].style={top:A.layersObject[s].position?.[0]*n+"px",left:A.layersObject[s].position?.[1]*n+"px",width:A.layersObject[s].imageSize?.[0]*n+"px",height:A.layersObject[s].imageSize?.[1]*n+"px"},A.layersObject[s].centers={left:0,top:0},A.layersObject[s].designOpenrtionBtn=!1,-1==A.layersObject[s].imageCategory.indexOf("back")?(t[e]=A.layersObject[s],t[e].style.zIndex=i-=1):(r[e]=A.layersObject[s],r[e].style.zIndex=o-=1)}));document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("perview_img")[0];A.style={width:A.layersObject[0].imageSize?.[0]*n+"px",height:A.layersObject[0].imageSize?.[1]*n+"px"},this.frontBack={front:t,back:r,body:A}},async setPostition(A){let e=await n(A),t=document.getElementsByClassName("designOpenrtion_imgMask")[0];const r=t?.offsetHeight/e.height;function n(A){return new Promise(((e,t)=>{const r=new Image;r.onload=()=>{e(r)},r.onerror=t,r.src=A}))}return r},setpitch(A,e){this.frontBack.front.forEach((A=>{A.designOpenrtionBtn=!1})),this.frontBack.front[e].designOpenrtionBtn=!0,this.frontBack.front[e].style.zIndex=this.printZIndex++,this.frontBack.back[e].style.zIndex=this.printZIndex},itemMoveMousedown(A,e){this.imgDomIndex=A,this.frontBack.front.forEach((A=>{A.designOpenrtionBtn=!1})),this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[A].designOpenrtionBtn=!0,this.frontBack.front[A].style.zIndex=this.printZIndex++,this.frontBack.back[A].style.zIndex=this.printZIndex;let t=this.imgDom.getBoundingClientRect(),r=Number(this.frontBack.front[A].style.left.replace(/px/g,"")),n=Number(this.frontBack.front[A].style.top.replace(/px/g,""));this.frontBack.front[A].centers.left=t.x+e.offsetX-r,this.frontBack.front[A].centers.top=t.y+e.offsetY-n,document.addEventListener("mouseup",this.mouseup),document.addEventListener("mousemove",this.moveMousemove)},itemSizeMousedown(A,e){this.direction=A,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(),r=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+e.offsetX-r,this.frontBack.front[this.imgDomIndex].centers.top=t.y+e.offsetY-r):(this.frontBack.front[this.imgDomIndex].centers.left=t.x+e.offsetX+t.width-r,this.frontBack.front[this.imgDomIndex].centers.top=t.y+e.offsetY+t.height-r),document.addEventListener("mouseup",this.sizeMouseup),document.addEventListener("mousemove",this.sizeMousemove)},moveMousemove(A){this.imgDom.getBoundingClientRect(),document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_imgMask")[0].getBoundingClientRect();let e=A.x-this.frontBack.front[this.imgDomIndex].centers.left+"px",t=A.y-this.frontBack.front[this.imgDomIndex].centers.top+"px";this.frontBack.front[this.imgDomIndex].style.left=e,this.frontBack.front[this.imgDomIndex].style.top=t},sizeMousemove(A){let e,t,r=this.imgDom.getBoundingClientRect(),n=this.imgDom.parentNode,i=r.width,o=r.height,s=o/i;"right"==this.direction?(e=A.x-this.frontBack.front[this.imgDomIndex].centers.left,t=(A.x-this.frontBack.front[this.imgDomIndex].centers.left)*s,i=e+"px",o=e*s+"px"):"top"==this.direction?(s=i/o,this.frontBack.front[this.imgDomIndex].style.top="auto",this.frontBack.front[this.imgDomIndex].style.bottom=n.offsetHeight-r.height-this.imgDom.offsetTop+"px",e=(A.x-this.frontBack.front[this.imgDomIndex].centers.left)*s,t=this.frontBack.front[this.imgDomIndex].centers.top-A.y,o=t+"px",i=t*s+"px"):"bottom"==this.direction?(s=i/o,t=A.y-this.frontBack.front[this.imgDomIndex].centers.top,o=t+"px",i=t*s+"px"):"left"==this.direction&&(this.frontBack.front[this.imgDomIndex].style.left="auto",this.frontBack.front[this.imgDomIndex].style.right=n.offsetWidth-r.width-this.imgDom.offsetLeft+"px",e=this.frontBack.front[this.imgDomIndex].centers.left-A.x,i=e+"px",o=e*s+"px"),this.frontBack.front[this.imgDomIndex].style.width=i,this.frontBack.front[this.imgDomIndex].style.height=o},sizeMouseup(A){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(A){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(A){return A.charAt(0).toUpperCase()+A.slice(1)},setPreviewData(){this.$emit("setSubmit","preview")},deleteBorder(){this.frontBack?.front?.forEach((A=>{A.designOpenrtionBtn=!1}))},async setPreview(A){let e=this.frontBack.body.layersObject[0].imageSize[0]/this.frontBack.body.style.width.replace(/px/g,"");this.store.state.DesignDetailModule.designItemDetail;A.designSingleItemDTOList.forEach((A=>{let t=this.frontBack.front,r=t[1].imageCategory;t.forEach((t=>{let r=t.imageCategory.split("_")[0];if(A.type==this.capitalizeFirstLetter(r)){let r=(t?.style?.top.replace(/px/g,"")*e).toFixed(0)-t?.position[0],n=(t?.style?.left.replace(/px/g,"")*e).toFixed(0)-t?.position[1],i=t?.imageSize?Number((t?.style?.width.replace(/px/g,"")*e/(t?.imageSize[0]/t.scale)).toFixed(2)):1;A.scale=i;let o=0==r?A.offset[1]:r+A.offset[1],s=0==n?A.offset[0]:n+A.offset[0];A.offset=[s,o]}})),A.type==this.capitalizeFirstLetter(r)&&(A.scale=t?.imageSize?Number((t?.style?.width.replace(/px/g,"")*e/t?.imageSize[0]).toFixed(2)):1)})),this.loadingShow=!0,KA.V.axiosPost(KA.V.httpUrls.designSingle,A).then((e=>{this.loadingShow=!1;let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));t.designItemUrl=e.designItemUrl,t.ifSubmit=!0,t.currentFullBodyView=e.currentFullBodyView,e.clothes.forEach((A=>{t.clothes.forEach((e=>{A.type===e.type&&(e.layersObject=A.layersObject)}))})),this.$emit("setDesignCoverage"),this.store.commit("setDesignItemDetail",t),this.setRevocation(t,A)})).catch((A=>{this.loadingShow=!1}))}}});const wu=(0,zA.Z)(Bu,[["render",mu],["__scopeId","data-v-c3a901fe"]]);var vu=wu,Cu=(0,r.aZ)({components:{Draggable:Ot(),DesignDetailAlter:Wc,setDesignItem:vu,magnifyingGlass:su},setup(){const A=(0,NA.oR)();let e=(0,r.Fl)((()=>A.state.DesignDetailModule.designItemDetail)),t=(0,TA.iH)({design:{},index:0,collectionList:[],type:""}),n=(0,TA.iH)({left:"200px",top:"100px"}),i=(0,TA.iH)(0),o=(0,TA.iH)({});(0,r.JJ)("current",o);let s=(0,TA.iH)({}),a=(0,TA.iH)(!1),l=(0,TA.iH)(),c=(0,TA.iH)(),u={},d=(0,TA.iH)(!1),h=(0,TA.iH)({}),g=(0,TA.iH)(!1),p=(0,TA.iH)(),f=(0,TA.iH)(),{t:m}=(0,GA.QT)();return{designItemDetail:e,store:A,parentData:t,others:n,currentIndex:i,current:o,frontBack:s,body:a,designItemId:l,designOutfitId:c,userInfo:u,ifSubmit:d,designItemDetailUrl:h,setRevocationShow:g,oppositeRevocationShow:p,revocationShow:f,t:m}},data(){return{loadingShow:!1,designDetailShow:!1,designShowPrview:1,generateHighDesignImg:"",imgDesignImg:!0,designOrder:!1}},watch:{designItemDetail:{handler:async function(A,e){let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.ifSubmit=!!t.ifSubmit&&t.ifSubmit,this.current=JSON?.parse(JSON?.stringify(t?.clothes?.[this?.currentIndex])),0!=t.others[0].layersObject.length?this.body=!1:this.body=!0,await this.setImgSize(),this.designItemDetailUrl=t.currentFullBodyView?t.currentFullBodyView:t.designItemUrl}},currentIndex:{handler:function(A){}}},provide(){return{setRevocation:this.setRevocation}},mounted(){let A,e=()=>{this.removeRevocation(),window.removeEventListener("beforeunload",e)};window.addEventListener("beforeunload",e);let t=this;window.onresize=()=>(()=>{clearTimeout(A),A=setTimeout((async()=>{await t.setImgSize()}),500)})();let r=(0,RA.ej)("userInfo");this.userInfo=JSON.parse(r)},methods:{openCurrent(A){let e=this.$refs.DesignDetailAlter;e.init(A)},closeModal(){if(1==this.designShowPrview){this.designDetailShow=!1,this.designOrder=!1;let A=this.$refs.DesignDetailAlter;A.terminate(),this.frontBack={},this.removeRevocation()}else this.designShowPrview=1,this.designItemDetailUrl={}},showDesignDetailModal(A,e){this.designItemId=A.design.designItemId,this.designOutfitId=A.design.designOutfitId;let t=KA.V.httpUrls.getDesignDetail+`?designItemId=${A.design.designItemId}&designPythonOutfitId=${A.design.designOutfitId}`;this.parentData=A,this.loadingShow=!0,KA.V.axiosGet(t).then((A=>{A.clothes.forEach((A=>{let e;-1==A.layersObject[0].imageCategory.indexOf("back")&&(e=A.layersObject[0],A.layersObject[0]=A.layersObject[1],A.layersObject[1]=e),null==A.printObject.prints&&(A.printObject.prints=[{}])})),this.store.commit("setDesignItemDetail",A),this.setRevocation(A,""),0!=A.others[0].layersObject.length?this.body=!1:this.body=!0,"setDesignItem"==e||(this.designShowPrview=1),this.setImgSize(),this.generateHighDesignImg=A.highDesignUrl,this.designDetailShow=!0,this.loadingShow=!1})).catch((A=>{this.loadingShow=!1}))},async setImgSize(){let A,e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),t=[],r=[];if(this.body)e.clothes.forEach(((A,e)=>{for(let n=A.layersObject.length-1;n>=0;n--)-1==A.layersObject[n].imageCategory.indexOf("back")?t[e]=A.layersObject[n]:r[e]=A.layersObject[n]}));else{e?.others?.forEach((e=>{"Body"==e.type&&(A=e)})),console.log(A?.layersObject?.[0]?.imageUrl);let n=await(this?.setPostition(A?.layersObject?.[0]?.imageUrl)),i=6,o=3;e.clothes.forEach(((A,e)=>{for(let s=A.layersObject.length-1;s>=0;s--)A.layersObject[s].style={top:A.layersObject[s].position?.[0]*n+"px",left:A.layersObject[s].position?.[1]*n+"px",width:A.layersObject[s].imageSize?.[0]*n+"px",height:A.layersObject[s].imageSize?.[1]*n+"px"},A.layersObject[s].centers={left:0,top:0},A.layersObject[s].designOpenrtionBtn=!1,-1==A.layersObject[s].imageCategory.indexOf("back")?(t[e]=A.layersObject[s],t[e].style.zIndex=i-=1):(r[e]=A.layersObject[s],r[e].style.zIndex=o-=1)})),A.style={width:A.layersObject[0].imageSize?.[0]*n+"px",height:A.layersObject[0].imageSize?.[1]*n+"px"}}this.frontBack={front:t,back:r,body:A}},setDesignCoverage(A){let{design:e,index:t,collectionList:r}=this.parentData,n=0,i={};r.forEach(((A,e)=>{A.designItemId===this.designItemId&&(n=e)})),i=r[n],n=this.parentData.index;this.designShowPrview=1},removeRevocation(){sessionStorage.removeItem("oppositeRevocation"),sessionStorage.removeItem("revocation"),this.setRevocationShow=!1},setRevocation(A,e){let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),r=JSON.parse(sessionStorage.getItem("revocation"));JSON.parse(sessionStorage.getItem("oppositeRevocation"));r?.[0]?.designItemDetail.designItemId==t.designItemId&&null!=sessionStorage.getItem("revocation")||(r=[]);let n={designItemDetail:A,data:e||""};r.push(n),this.revocationShow=r?.length,this.oppositeRevocationShow=0,sessionStorage.setItem("revocation",JSON.stringify(r)),sessionStorage.setItem("oppositeRevocation",JSON.stringify([]))},revocation(){let A=JSON.parse(sessionStorage.getItem("oppositeRevocation")),e=JSON.parse(sessionStorage.getItem("revocation"));A.push(e[e.length-1]),this.oppositeRevocationShow=A.length,e.splice(e.length-1,1),this.revocationShow=e.length,this.revocationShow>1&&this.store.commit("setDesignPreviewData",e[e.length-1].data),this.store.commit("setDesignItemDetail",e[e.length-1].designItemDetail),sessionStorage.setItem("oppositeRevocation",JSON.stringify(A)),sessionStorage.setItem("revocation",JSON.stringify(e))},oppositeRevocation(){let A=JSON.parse(sessionStorage.getItem("oppositeRevocation")),e=JSON.parse(sessionStorage.getItem("revocation"));this.store.commit("setDesignPreviewData",A[A.length-1].data),this.store.commit("setDesignItemDetail",A[A.length-1].designItemDetail),e.push(A[A.length-1]),this.revocationShow=e.length,A.splice(A.length-1,1),this.oppositeRevocationShow=A.length,sessionStorage.setItem("oppositeRevocation",JSON.stringify(A)),sessionStorage.setItem("revocation",JSON.stringify(e))},setSubmitItem(A){let e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),t=[];e.clothes.forEach((A=>{let e={color:`${A.color.r} ${A.color.g} ${A.color.b}`,id:A.id,path:A.minIOPath,offset:null==A.layersObject[1].offset?[0,0]:A.layersObject[1].offset,scale:A.layersObject[1].scale?A.layersObject[1].scale:1,printObject:{ifSingle:null!=A.printObject.ifSingle&&A.printObject.ifSingle,prints:A?.printObject?.prints[0]?.minIOPath?A?.printObject?.prints:[]},type:A.type};t.push(e)}));let r={designItemId:e.designItemId,designSingleItemDTOList:t,isPreview:!1,ifSubmit:e.isPreview,processId:String(this.userInfo?.userId),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};return"preview"==A?r.isPreview=!0:(r.isPreview=!1,delete r.ifSubmit),this.store.commit("setDesignPreviewData",r),r},setSubmit(A){let e=this.$refs.setDesignItem,t=this.setSubmitItem(A);e.setPreview(t)},async submit(){let A=this.setSubmitItem("");this.loadingShow=!0,KA.V.axiosPost(KA.V.httpUrls.designSingle,A).then((A=>{this.loadingShow=!1;let e=this.store.state.HomeStoreModule.designCollectionList,t=this.store.state.HomeStoreModule.likeDesignCollectionList;e.forEach((e=>{e.designItemId==A.designItemId&&(e.designOutfitUrl=A.designItemUrl)})),t.forEach((e=>{e.designItemId==A.designItemId&&(e.designOutfitUrl=A.designItemUrl)})),this.closeModal(),this.store.commit("setDesignCollectionList",e),this.store.commit("setLikeDesignCollectionList",t)})).catch((A=>{this.loadingShow=!1}))},async setPostition(A){let e=await n(A),t=document.getElementsByClassName("detail_modal_model")[0];console.log(t);const r=t?.offsetWidth/e.width;function n(A){return new Promise(((e,t)=>{const r=new Image;r.onload=()=>{e(r)},r.onerror=t,r.src=A}))}return r},changeDesignItem(A){let{design:e,index:t,collectionList:r}=this.parentData,n={},i=0;this.designOrder=!1,this.removeRevocation();let o=this.$refs.DesignDetailAlter;o.terminate(),i="last"===A?t>0?this.parentData.index-1:this.parentData.collectionList.length-1:t<this.parentData.collectionList.length-1?this.parentData.index+1:0,n=r[i];let s={design:n,index:i,collectionList:r};this.showDesignDetailModal(s,"")},showDesignImgDetail(A){JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.designShowPrview=A;let e=this.$refs.setDesignItem;3==this.designShowPrview&&e.init()},mousedownDesignImg(){this.imgDesignImg=!1},mouseupDesignImg(){this.imgDesignImg=!0},clothesOpen(A){this.clothesDetail("",A)},clothesOpenActive(A){this.designItemDetail.clothes.forEach((A=>{A.clothesOpen=!1})),this.designItemDetail.clothes[A].clothesOpen=!0},clothesDetail(A,e){let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.currentIndex=e,this.designOrder=!0,this.current=t.clothes[this.currentIndex],this.clothesOpenActive(e);let r=this.setSubmitItem("preview");r.designSingleItemDTOList[this.currentIndex]={color:`${this.current.color.r} ${this.current.color.g} ${this.current.color.b}`,id:this.current.id,path:this.current.minIOPath?this.current.minIOPath:"",offset:this.current.layersObject[1].offset?this.current.layersObject[1].offset:[0,0],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",r);let n=this.$refs.DesignDetailAlter;n.changePlace()},redesignItem(){let A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));delete A.designItemUrl;let e=A.clothes.map((A=>A.type)),t={...A,priority:e,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};this.loadingShow=!0,KA.V.axiosPost(KA.V.httpUrls.designSingle,t).then((A=>{this.parentData.design.designItemUrl=A.designItemUrl,this.$emit("finishRedesign",this.parentData),this.closeModal(),this.loadingShow=!1})).catch((A=>{this.loadingShow=!1}))}}});const bu=(0,zA.Z)(Cu,[["render",ma]]);var yu=bu,_u=t(8818),Qu=t(5733),Uu=t.n(Qu);const Fu=t(3162);var xu=(0,r.aZ)({components:{HeaderComponent:W.Z,CollectionModal:_o,NewCollectionReview:$o,DesignDetail:yu,ExportNewCoolection:Fs,RobotAssist:_u.Z,draggable:Ot()},setup(){const A=(0,NA.oR)();let e=(0,r.Fl)((()=>A.state.HomeStoreModule.likeDesignCollectionList)),t=(0,r.Fl)((()=>A.state.HomeStoreModule.designCollectionList)),n=(0,r.Fl)((()=>A.state.HomeStoreModule.userGroupId)),i=(0,r.Fl)((()=>A.state.HomeStoreModule.designCollectionId)),o=(0,r.Fl)((()=>A.state.HomeStoreModule.designId)),s={width:"",height:""},a={width:"",height:""},l={},{t:c}=(0,GA.QT)();return{store:A,likeDesignCollectionList:e,designCollectionList:t,userGroupId:n,designCollectionId:i,designId:o,contentImgMax:s,contentImg:a,userInfo:l,t:c}},data(){return{isHaveReviewCollection:!1,isFinishLoading:!1,isShowMark:!1,indicator:(0,r.h)(LA.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(){let A=(0,RA.ej)("userInfo");this.userInfo=JSON.parse(A),this.store.dispatch("get_clothingType");let e=this.$route.params.noRefresh;if(e){let A=this.store.state.UploadFilesModule.allBoardData.colorBoards||[];A.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(A){let e=document.getElementsByClassName("right_content_block")[0],t=document.getElementsByClassName("right_content_body"),r=()=>{e.classList.add("active")},n=()=>{e.classList.remove("active")};t.forEach((A=>{A.addEventListener("mouseover",r),A.addEventListener("mouseleave",n)})),A.addEventListener("wheel",(e=>{let t=0;t=e.deltaY>0?25:-25,A.scrollBy(t,0)}),!0)}}},methods:{addTeam(A){this.likeDesignCollectionList.push(A)},dragstart(A,e){this.dragIdx=e},dragDrop(A,e){let t=this.likeDesignCollectionList,r=t[this.dragIdx];t.splice(this.dragIdx,1),t.splice(e,0,r)},formatter(A){return`${A}%`},startNewCollection(){let A=this.$refs.collectionModal;this.store.commit("clearAllData"),A.changeCollectionModal(!0)},recollection(){let A=this.$refs.collectionModal;this.store.commit("clearAllData"),A.changeCollectionModal(!0),A.recollection()},finishCollection(){let A=this;A.isFinishLoading=!0,this.getPantongName().then((e=>{A.store.commit("setAllBoardData"),A.isHaveReviewCollection=!0,A.isFinishLoading=!1})).catch((e=>{A.isFinishLoading=!1}))},getPantongName(){let A=this.store.state.UploadFilesModule.colorBoards,e=[];for(let t of A){let A=[t.rgbValue.r,t.rgbValue.g,t.rgbValue.b],r=(0,VA.py)(A);t.hsv=r[0]+r[1]+r[2],e.push({h:r[0],s:r[1],v:r[2]})}return new Promise(((t,r)=>{KA.V.axiosPost(KA.V.httpUrls.getRgbByHsvBatch,e).then((e=>{e&&(e.forEach(((e,t)=>{A[t].id=e.id,A[t].tcx=e.tcx,A[t].name=e.name})),this.store.commit("setColorboardList",A),t())})).catch((A=>{r()}))}))},getContainer(){return document.querySelector("#system_silder")},designNewCollection(){let{colorBoards:A}=this.store.state.UploadFilesModule.allBoardData;if(!A||A?.length<1)return void OA.ZP.warning(this.t("HomeView.jsContent1"));let e=this.getDesignData("");KA.V.axiosPost(KA.V.httpUrls.designCollection,e).then((A=>{A&&(this.store.commit("setDesignCollectionList",A.designCollectionItems),this.store.commit("setLikeDesignCollectionList",[]),this.store.commit("deleteUserGroupId"),this.store.commit("setDesignCollectionId",A.collectionId),this.store.commit("setDesignId",A.designId),this.startDesignType="design")})).catch((A=>{this.showDesignMark=!1})),this.getDesignProcess(this.designRandom)},resDesignCollection(){let{colorBoards:A}=this.store.state.UploadFilesModule.allBoardData;if(!A||A?.length<1)return void OA.ZP.warning(this.t("HomeView.jsContent2"));let e=this.getDesignData(this.designCollectionId);KA.V.axiosPost(KA.V.httpUrls.reDesignCollection,e).then((A=>{A&&(this.store.commit("setDesignCollectionList",A.designCollectionItems),this.startDesignType="resDesign")})).catch((A=>{this.showDesignMark=!1})),this.getDesignProcess(this.designRandom)},getDesignData(A){let{moodboardFiles:e,printboardFiles:t,disposeMoodboard:r,colorBoards:n,sketchboardFiles:i,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(e),printBoards:this.getPrintId(t),sketchBoards:this.getSkecthBoard(i),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:r[0]?String(r[0].id):null,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,processId:this.designRandom};return A&&(l.collectionId=A),this.designProgress=0,this.showDesignMark=!0,l},getDesignProcess(A){KA.V.axiosGet(KA.V.httpUrls.designProcess,{params:{processId:A}}).then((e=>{this.showDesignMark&&(this.designProgress=100*e,100==e&&setTimeout((()=>{this.showDesignMark=!1,this.designProgress=0}),500),setTimeout((()=>{this.getDesignProcess(A)}),500))}))},randomNum(){this.designRandom=String(Math.floor(9e15*Math.random())+1e15)},getBoardId(A){let e=A.map((A=>{let e={id:A.resData.id,designType:A.resData.designType};return e}));return e},getPrintId(A){let e=A.map((A=>{let e={id:A.resData.id,designType:A.resData.designType,isPin:A.pin?1:0};return e}));return e},getSkecthBoard(A){let e=A.map((A=>{let e={designType:A.resData.designType,isPin:A.pin?1:0,level2Type:A.category,sketchBoardId:A.resData.id};return e}));return e},getColorBoard(A){let e=A.map((A=>{let e={id:A.id,name:A.name,tcx:A.tcx,rgbValue:""};return e.rgbValue=`${A.rgbValue.r} ${A.rgbValue.g} ${A.rgbValue.b}`,e}));return e},likeDesignCollection(A,e){let t={designItemId:A.designItemId,userGroupId:this.userGroupId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,designPythonOutfitId:A.designOutfitId?A.designOutfitId:A.designPythonOutfitId};this.likeLoading||(this.likeLoading=!0,KA.V.axiosPost(KA.V.httpUrls.designLike,t).then((t=>{t&&(this.store.commit("setUserGroupId",t.userGroupId),A.groupDetailId=t.groupDetailId,this.store.commit("addLikeDesignCollectionList",A),this.store.commit("deleteDesignCollectionList",e),"resDesign"===this.startDesignType&&this.getHistoryChoose(this.userGroupId,"like")),this.likeLoading=!1})).catch((A=>{this.likeLoading=!1})))},dislikeDesignCollection(A,e){let t={designId:A.designId||this.designId,designPythonOutfitId:A.designOutfitId,groupDetailId:A.groupDetailId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};this.disLikeLoading||(this.disLikeLoading=!0,KA.V.axiosPost(KA.V.httpUrls.designDislike,t).then((t=>{t&&(this.store.commit("addDesignCollectionList",A),this.store.commit("deleteLikeDesignCollectionList",e),this.likeDesignCollectionList.length||this.store.commit("deleteUserGroupId")),this.disLikeLoading=!1})).catch((A=>{this.disLikeLoading=!1})))},getHistoryChoose(A,e){this.isShowMark=!0;let t=KA.V.httpUrls.historyChoose+`?userGroupId=${A}`;KA.V.axiosGet(t).then((A=>{this.dealHistoryChooseData(A,e),this.isShowMark=!1})).catch((A=>{this.isShowMark=!1}))},dealHistoryChooseData(A,e){let t={moodboardFiles:this.dealViewChooseData(A.collection.moodBoards,"Moodboard"),printboardFiles:this.dealViewChooseData(A.collection.printBoards,"Printboard"),generatePrintFiles:[],colorBoards:this.dealViewChooseColor(A.collection.colorBoards),sketchboardFiles:this.dealViewChooseData(A.collection.sketchBoards,"Sketchboard"),marketingSketchFiles:this.dealViewChooseData(A.collection.marketingSketchs,""),disposeMoodboard:A.collection.moodTemplateId?[{id:A.collection.moodTemplateId,imgUrl:A.collection.moodTemplateUrl,resData:{name:A.collection.moodTemplateName}}]:[]};if(this.store.commit("setAllBoardDataChoose",t),this.store.commit("setDesignCollectionId",A.collection.collectionId),this.isHaveReviewCollection=!0,"normal"===e){let e=A.userLikeDetails.map((A=>{let e={...A,groupDetailId:A.id,designItemUrl:A.designOutfitUrl};return e}));this.store.commit("setLikeDesignCollectionList",e)}},dealViewChooseData(A,e){if(!A)return[];let t=A.map((A=>{let e={imgUrl:A.url?A.url:A.designOutfitUrl,id:A.id,status:"done",resData:A,type_:{type1:"material",type2:A.level1Type}};return"Sketchboard"===A.level1Type&&(e.pin=A.isPin,e.category=A.level2Type),"Printboard"===A.level1Type&&(e.pin=A.isPin),e}));return t},dealViewChooseColor(A){let e=A.map((A=>{let e=A.rgbValue.split(" "),t={id:A.id,name:A.name,tcx:A.tcx||"",rgbValue:{r:e[0],g:e[1],b:e[2],a:1}};return t}));return e},async exportCanvas(){let A=document.querySelector("#exportNewCoolection"),e=document.querySelector("#right_content_img_block");document.createElement("a");this.isShowMark=!0;let t=[];await Tt()(A,{useCORS:!0,scale:3}).then((A=>{let e=(0,VA.$O)(A.toDataURL("image/png")),r=this.store.state.UploadFilesModule.allBoardData,n=0;t.push({imgUrl:URL.createObjectURL(e),name:"collection.png"}),console.log(URL.createObjectURL(e));for(let i in r)if("colorBoards"!==i&&"moodTemplateId"!==i)for(let A of r[i]){let e=A?.imgUrl?.split(".").pop().split("?").shift(),r={imgUrl:A.imgUrl,name:A?.resData?.name+n+"."+e};t.push(r),n++}})),await Tt()(e,{useCORS:!0,scale:3}).then((A=>{let e=(0,VA.$O)(A.toDataURL("image/png"));this.store.state.UploadFilesModule.allBoardData;t.push({imgUrl:URL.createObjectURL(e),name:"achievement.png"}),this.likeDesignCollectionList.forEach((A=>{let e={imgUrl:A.designItemUrl,name:A.pictureName};t.push(e)}))})),this.downImg(t)},designDetail(A,e,t,r){let n=this.$refs.designDetail;A.designOutfitId=A.designPythonOutfitId?A.designPythonOutfitId:A.designOutfitId;let i={design:A,index:e,collectionList:t,type:r};n.showDesignDetailModal(i)},finishRedesign(A){let{design:e,index:t,type:r}=A;"dislike"===r?this.store.commit("setSingleDesignCollectionList",{index:t,design:e}):this.store.commit("setSingleLikeDesignCollectionList",{index:t,design:e})},getImgArrayBuffer(A){return new Promise(((e,t)=>{let r=new XMLHttpRequest;r.open("GET",A,!0),r.responseType="blob",r.onload=function(){200==this.status?e(this.response):t(this.status)},r.send()}))},downImg(A){let e=this,t=new(Uu()),r={},n=[];for(let i of A){const A=e.getImgArrayBuffer(i.imgUrl).then((A=>{t.file(i.name,A,{binary:!0}),r[i.title]=A}));n.push(A)}Promise.all(n).then((()=>{t.generateAsync({type:"blob"}).then((A=>{Fu.saveAs(A,"DesignFiles"),this.isShowMark=!1}))})).catch((A=>{OA.ZP.warning(this.t("HomeView.jsContent3")),this.isShowMark=!1}))}}});const Eu=(0,zA.Z)(xu,[["render",Z],["__scopeId","data-v-2d303a36"]]);var ku=Eu},9812:function(A,e,t){"use strict";t.r(e),t.d(e,{BaseTransition:function(){return r.P$},Comment:function(){return r.sv},EffectScope:function(){return r.Bj},Fragment:function(){return r.HY},KeepAlive:function(){return r.Ob},ReactiveEffect:function(){return r.qq},Static:function(){return r.qG},Suspense:function(){return r.n4},Teleport:function(){return r.lR},Text:function(){return r.xv},Transition:function(){return r.uT},TransitionGroup:function(){return r.W3},VueElement:function(){return r.a2},callWithAsyncErrorHandling:function(){return r.$d},callWithErrorHandling:function(){return r.KU},camelize:function(){return r._A},capitalize:function(){return r.kC},cloneVNode:function(){return r.Ho},compatUtils:function(){return r.ry},compile:function(){return n},computed:function(){return r.Fl},createApp:function(){return r.ri},createBlock:function(){return r.j4},createCommentVNode:function(){return r.kq},createElementBlock:function(){return r.iD},createElementVNode:function(){return r._},createHydrationRenderer:function(){return r.Eo},createPropsRestProxy:function(){return r.p1},createRenderer:function(){return r.Us},createSSRApp:function(){return r.vr},createSlots:function(){return r.Nv},createStaticVNode:function(){return r.uE},createTextVNode:function(){return r.Uk},createVNode:function(){return r.Wm},customRef:function(){return r.ZM},defineAsyncComponent:function(){return r.RC},defineComponent:function(){return r.aZ},defineCustomElement:function(){return r.MW},defineEmits:function(){return r.Bz},defineExpose:function(){return r.WY},defineProps:function(){return r.yb},defineSSRCustomElement:function(){return r.Ah},devtools:function(){return r.mW},effect:function(){return r.cE},effectScope:function(){return r.B},getCurrentInstance:function(){return r.FN},getCurrentScope:function(){return r.nZ},getTransitionRawChildren:function(){return r.Q6},guardReactiveProps:function(){return r.F4},h:function(){return r.h},handleError:function(){return r.S3},hydrate:function(){return r.ZB},initCustomFormatter:function(){return r.Mr},initDirectivesForSSR:function(){return r.Nd},inject:function(){return r.f3},isMemoSame:function(){return r.nQ},isProxy:function(){return r.X3},isReactive:function(){return r.PG},isReadonly:function(){return r.$y},isRef:function(){return r.dq},isRuntimeOnly:function(){return r.of},isShallow:function(){return r.yT},isVNode:function(){return r.lA},markRaw:function(){return r.Xl},mergeDefaults:function(){return r.u_},mergeProps:function(){return r.dG},nextTick:function(){return r.Y3},normalizeClass:function(){return r.C_},normalizeProps:function(){return r.vs},normalizeStyle:function(){return r.j5},onActivated:function(){return r.dl},onBeforeMount:function(){return r.wF},onBeforeUnmount:function(){return r.Jd},onBeforeUpdate:function(){return r.Xn},onDeactivated:function(){return r.se},onErrorCaptured:function(){return r.d1},onMounted:function(){return r.bv},onRenderTracked:function(){return r.bT},onRenderTriggered:function(){return r.Yq},onScopeDispose:function(){return r.EB},onServerPrefetch:function(){return r.vl},onUnmounted:function(){return r.SK},onUpdated:function(){return r.ic},openBlock:function(){return r.wg},popScopeId:function(){return r.Cn},provide:function(){return r.JJ},proxyRefs:function(){return r.WL},pushScopeId:function(){return r.dD},queuePostFlushCb:function(){return r.qb},reactive:function(){return r.qj},readonly:function(){return r.OT},ref:function(){return r.iH},registerRuntimeCompiler:function(){return r.Y1},render:function(){return r.sY},renderList:function(){return r.Ko},renderSlot:function(){return r.WI},resolveComponent:function(){return r.up},resolveDirective:function(){return r.Q2},resolveDynamicComponent:function(){return r.LL},resolveFilter:function(){return r.eq},resolveTransitionHooks:function(){return r.U2},setBlockTracking:function(){return r.qZ},setDevtoolsHook:function(){return r.ec},setTransitionHooks:function(){return r.nK},shallowReactive:function(){return r.Um},shallowReadonly:function(){return r.YS},shallowRef:function(){return r.XI},ssrContextKey:function(){return r.Uc},ssrUtils:function(){return r.G},stop:function(){return r.sT},toDisplayString:function(){return r.zw},toHandlerKey:function(){return r.hR},toHandlers:function(){return r.mx},toRaw:function(){return r.IU},toRef:function(){return r.Vh},toRefs:function(){return r.BK},transformVNodeArgs:function(){return r.C3},triggerRef:function(){return r.oR},unref:function(){return r.SU},useAttrs:function(){return r.l1},useCssModule:function(){return r.fb},useCssVars:function(){return r.sj},useSSRContext:function(){return r.Zq},useSlots:function(){return r.Rr},useTransitionState:function(){return r.Y8},vModelCheckbox:function(){return r.e8},vModelDynamic:function(){return r.YZ},vModelRadio:function(){return r.G2},vModelSelect:function(){return r.bM},vModelText:function(){return r.nr},vShow:function(){return r.F8},version:function(){return r.i8},warn:function(){return r.ZK},watch:function(){return r.YP},watchEffect:function(){return r.m0},watchPostEffect:function(){return r.Rh},watchSyncEffect:function(){return r.yX},withAsyncContext:function(){return r.mv},withCtx:function(){return r.w5},withDefaults:function(){return r.b9},withDirectives:function(){return r.wy},withKeys:function(){return r.D2},withMemo:function(){return r.MX},withModifiers:function(){return r.iM},withScopeId:function(){return r.HX}});var r=t(9963);const n=()=>{0}},9980:function(A,e,t){(function(e,r){A.exports=r(t(9812),t(8244))})("undefined"!==typeof self&&self,(function(A,e){return function(A){var e={};function t(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return A[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=A,t.c=e,t.d=function(A,e,r){t.o(A,e)||Object.defineProperty(A,e,{enumerable:!0,get:r})},t.r=function(A){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},t.t=function(A,e){if(1&e&&(A=t(A)),8&e)return A;if(4&e&&"object"===typeof A&&A&&A.__esModule)return A;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:A}),2&e&&"string"!=typeof A)for(var n in A)t.d(r,n,function(e){return A[e]}.bind(null,n));return r},t.n=function(A){var e=A&&A.__esModule?function(){return A["default"]}:function(){return A};return t.d(e,"a",e),e},t.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},t.p="",t(t.s="fb15")}({"00ee":function(A,e,t){var r=t("b622"),n=r("toStringTag"),i={};i[n]="z",A.exports="[object z]"===String(i)},"0366":function(A,e,t){var r=t("1c0b");A.exports=function(A,e,t){if(r(A),void 0===e)return A;switch(t){case 0:return function(){return A.call(e)};case 1:return function(t){return A.call(e,t)};case 2:return function(t,r){return A.call(e,t,r)};case 3:return function(t,r,n){return A.call(e,t,r,n)}}return function(){return A.apply(e,arguments)}}},"057f":function(A,e,t){var r=t("fc6a"),n=t("241c").f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(A){try{return n(A)}catch(e){return o.slice()}};A.exports.f=function(A){return o&&"[object Window]"==i.call(A)?s(A):n(r(A))}},"06cf":function(A,e,t){var r=t("83ab"),n=t("d1e7"),i=t("5c6c"),o=t("fc6a"),s=t("c04e"),a=t("5135"),l=t("0cfb"),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(A,e){if(A=o(A),e=s(e,!0),l)try{return c(A,e)}catch(t){}if(a(A,e))return i(!n.f.call(A,e),A[e])}},"0cfb":function(A,e,t){var r=t("83ab"),n=t("d039"),i=t("cc12");A.exports=!r&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(A,e,t){"use strict";var r=t("23e7"),n=t("d58f").left,i=t("a640"),o=t("ae40"),s=i("reduce"),a=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!a},{reduce:function(A){return n(this,A,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(A,e,t){var r=t("c6b6"),n=t("9263");A.exports=function(A,e){var t=A.exec;if("function"===typeof t){var i=t.call(A,e);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(A))throw TypeError("RegExp#exec called on incompatible receiver");return n.call(A,e)}},"159b":function(A,e,t){var r=t("da84"),n=t("fdbc"),i=t("17c2"),o=t("9112");for(var s in n){var a=r[s],l=a&&a.prototype;if(l&&l.forEach!==i)try{o(l,"forEach",i)}catch(c){l.forEach=i}}},"17c2":function(A,e,t){"use strict";var r=t("b727").forEach,n=t("a640"),i=t("ae40"),o=n("forEach"),s=i("forEach");A.exports=o&&s?[].forEach:function(A){return r(this,A,arguments.length>1?arguments[1]:void 0)}},"1be4":function(A,e,t){var r=t("d066");A.exports=r("document","documentElement")},"1c0b":function(A,e){A.exports=function(A){if("function"!=typeof A)throw TypeError(String(A)+" is not a function");return A}},"1c7e":function(A,e,t){var r=t("b622"),n=r("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(a){}A.exports=function(A,e){if(!e&&!i)return!1;var t=!1;try{var r={};r[n]=function(){return{next:function(){return{done:t=!0}}}},A(r)}catch(a){}return t}},"1d80":function(A,e){A.exports=function(A){if(void 0==A)throw TypeError("Can't call method on "+A);return A}},"1dde":function(A,e,t){var r=t("d039"),n=t("b622"),i=t("2d00"),o=n("species");A.exports=function(A){return i>=51||!r((function(){var e=[],t=e.constructor={};return t[o]=function(){return{foo:1}},1!==e[A](Boolean).foo}))}},"23cb":function(A,e,t){var r=t("a691"),n=Math.max,i=Math.min;A.exports=function(A,e){var t=r(A);return t<0?n(t+e,0):i(t,e)}},"23e7":function(A,e,t){var r=t("da84"),n=t("06cf").f,i=t("9112"),o=t("6eeb"),s=t("ce4e"),a=t("e893"),l=t("94ca");A.exports=function(A,e){var t,c,u,d,h,g,p=A.target,f=A.global,m=A.stat;if(c=f?r:m?r[p]||s(p,{}):(r[p]||{}).prototype,c)for(u in e){if(h=e[u],A.noTargetGet?(g=n(c,u),d=g&&g.value):d=c[u],t=l(f?u:p+(m?".":"#")+u,A.forced),!t&&void 0!==d){if(typeof h===typeof d)continue;a(h,d)}(A.sham||d&&d.sham)&&i(h,"sham",!0),o(c,u,h,A)}}},"241c":function(A,e,t){var r=t("ca84"),n=t("7839"),i=n.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(A){return r(A,i)}},"25f0":function(A,e,t){"use strict";var r=t("6eeb"),n=t("825a"),i=t("d039"),o=t("ad6d"),s="toString",a=RegExp.prototype,l=a[s],c=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),u=l.name!=s;(c||u)&&r(RegExp.prototype,s,(function(){var A=n(this),e=String(A.source),t=A.flags,r=String(void 0===t&&A instanceof RegExp&&!("flags"in a)?o.call(A):t);return"/"+e+"/"+r}),{unsafe:!0})},"2ca0":function(A,e,t){"use strict";var r=t("23e7"),n=t("06cf").f,i=t("50c4"),o=t("5a34"),s=t("1d80"),a=t("ab13"),l=t("c430"),c="".startsWith,u=Math.min,d=a("startsWith"),h=!l&&!d&&!!function(){var A=n(String.prototype,"startsWith");return A&&!A.writable}();r({target:"String",proto:!0,forced:!h&&!d},{startsWith:function(A){var e=String(s(this));o(A);var t=i(u(arguments.length>1?arguments[1]:void 0,e.length)),r=String(A);return c?c.call(e,r,t):e.slice(t,t+r.length)===r}})},"2d00":function(A,e,t){var r,n,i=t("da84"),o=t("342f"),s=i.process,a=s&&s.versions,l=a&&a.v8;l?(r=l.split("."),n=r[0]+r[1]):o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(n=r[1]))),A.exports=n&&+n},"342f":function(A,e,t){var r=t("d066");A.exports=r("navigator","userAgent")||""},"35a1":function(A,e,t){var r=t("f5df"),n=t("3f8c"),i=t("b622"),o=i("iterator");A.exports=function(A){if(void 0!=A)return A[o]||A["@@iterator"]||n[r(A)]}},"37e8":function(A,e,t){var r=t("83ab"),n=t("9bf2"),i=t("825a"),o=t("df75");A.exports=r?Object.defineProperties:function(A,e){i(A);var t,r=o(e),s=r.length,a=0;while(s>a)n.f(A,t=r[a++],e[t]);return A}},"3bbe":function(A,e,t){var r=t("861d");A.exports=function(A){if(!r(A)&&null!==A)throw TypeError("Can't set "+String(A)+" as a prototype");return A}},"3ca3":function(A,e,t){"use strict";var r=t("6547").charAt,n=t("69f3"),i=t("7dd0"),o="String Iterator",s=n.set,a=n.getterFor(o);i(String,"String",(function(A){s(this,{type:o,string:String(A),index:0})}),(function(){var A,e=a(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(A=r(t,n),e.index+=A.length,{value:A,done:!1})}))},"3f8c":function(A,e){A.exports={}},4160:function(A,e,t){"use strict";var r=t("23e7"),n=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},"428f":function(A,e,t){var r=t("da84");A.exports=r},"44ad":function(A,e,t){var r=t("d039"),n=t("c6b6"),i="".split;A.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(A){return"String"==n(A)?i.call(A,""):Object(A)}:Object},"44d2":function(A,e,t){var r=t("b622"),n=t("7c73"),i=t("9bf2"),o=r("unscopables"),s=Array.prototype;void 0==s[o]&&i.f(s,o,{configurable:!0,value:n(null)}),A.exports=function(A){s[o][A]=!0}},"44e7":function(A,e,t){var r=t("861d"),n=t("c6b6"),i=t("b622"),o=i("match");A.exports=function(A){var e;return r(A)&&(void 0!==(e=A[o])?!!e:"RegExp"==n(A))}},4930:function(A,e,t){var r=t("d039");A.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(A,e,t){var r=t("fc6a"),n=t("50c4"),i=t("23cb"),o=function(A){return function(e,t,o){var s,a=r(e),l=n(a.length),c=i(o,l);if(A&&t!=t){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((A||c in a)&&a[c]===t)return A||c||0;return!A&&-1}};A.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(A,e,t){"use strict";var r=t("23e7"),n=t("b727").filter,i=t("1dde"),o=t("ae40"),s=i("filter"),a=o("filter");r({target:"Array",proto:!0,forced:!s||!a},{filter:function(A){return n(this,A,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(A,e,t){"use strict";var r=t("0366"),n=t("7b0b"),i=t("9bdd"),o=t("e95a"),s=t("50c4"),a=t("8418"),l=t("35a1");A.exports=function(A){var e,t,c,u,d,h,g=n(A),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=r(m,f>2?arguments[2]:void 0,2)),void 0==w||p==Array&&o(w))for(e=s(g.length),t=new p(e);e>v;v++)h=B?m(g[v],v):g[v],a(t,v,h);else for(u=w.call(g),d=u.next,t=new p;!(c=d.call(u)).done;v++)h=B?i(u,m,[c.value,v],!0):c.value,a(t,v,h);return t.length=v,t}},"4fad":function(A,e,t){var r=t("23e7"),n=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(A){return n(A)}})},"50c4":function(A,e,t){var r=t("a691"),n=Math.min;A.exports=function(A){return A>0?n(r(A),9007199254740991):0}},5135:function(A,e){var t={}.hasOwnProperty;A.exports=function(A,e){return t.call(A,e)}},5319:function(A,e,t){"use strict";var r=t("d784"),n=t("825a"),i=t("7b0b"),o=t("50c4"),s=t("a691"),a=t("1d80"),l=t("8aa5"),c=t("14c3"),u=Math.max,d=Math.min,h=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g,f=function(A){return void 0===A?A:String(A)};r("replace",2,(function(A,e,t,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,B=r.REPLACE_KEEPS_$0,w=m?"$":"$0";return[function(t,r){var n=a(this),i=void 0==t?void 0:t[A];return void 0!==i?i.call(t,n,r):e.call(String(n),t,r)},function(A,r){if(!m&&B||"string"===typeof r&&-1===r.indexOf(w)){var i=t(e,A,this,r);if(i.done)return i.value}var a=n(A),h=String(this),g="function"===typeof r;g||(r=String(r));var p=a.global;if(p){var C=a.unicode;a.lastIndex=0}var b=[];while(1){var y=c(a,h);if(null===y)break;if(b.push(y),!p)break;var _=String(y[0]);""===_&&(a.lastIndex=l(h,o(a.lastIndex),C))}for(var Q="",U=0,F=0;F<b.length;F++){y=b[F];for(var x=String(y[0]),E=u(d(s(y.index),h.length),0),k=[],I=1;I<y.length;I++)k.push(f(y[I]));var H=y.groups;if(g){var S=[x].concat(k,E,h);void 0!==H&&S.push(H);var D=String(r.apply(void 0,S))}else D=v(x,h,E,k,H,r);E>=U&&(Q+=h.slice(U,E)+D,U=E+x.length)}return Q+h.slice(U)}];function v(A,t,r,n,o,s){var a=r+A.length,l=n.length,c=p;return void 0!==o&&(o=i(o),c=g),e.call(s,c,(function(e,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return A;case"`":return t.slice(0,r);case"'":return t.slice(a);case"<":s=o[i.slice(1,-1)];break;default:var c=+i;if(0===c)return e;if(c>l){var u=h(c/10);return 0===u?e:u<=l?void 0===n[u-1]?i.charAt(1):n[u-1]+i.charAt(1):e}s=n[c-1]}return void 0===s?"":s}))}}))},5692:function(A,e,t){var r=t("c430"),n=t("c6cd");(A.exports=function(A,e){return n[A]||(n[A]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(A,e,t){var r=t("d066"),n=t("241c"),i=t("7418"),o=t("825a");A.exports=r("Reflect","ownKeys")||function(A){var e=n.f(o(A)),t=i.f;return t?e.concat(t(A)):e}},"5a34":function(A,e,t){var r=t("44e7");A.exports=function(A){if(r(A))throw TypeError("The method doesn't accept regular expressions");return A}},"5c6c":function(A,e){A.exports=function(A,e){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:e}}},"5db7":function(A,e,t){"use strict";var r=t("23e7"),n=t("a2bf"),i=t("7b0b"),o=t("50c4"),s=t("1c0b"),a=t("65f0");r({target:"Array",proto:!0},{flatMap:function(A){var e,t=i(this),r=o(t.length);return s(A),e=a(t,0),e.length=n(e,t,t,r,0,1,A,arguments.length>1?arguments[1]:void 0),e}})},6547:function(A,e,t){var r=t("a691"),n=t("1d80"),i=function(A){return function(e,t){var i,o,s=String(n(e)),a=r(t),l=s.length;return a<0||a>=l?A?"":void 0:(i=s.charCodeAt(a),i<55296||i>56319||a+1===l||(o=s.charCodeAt(a+1))<56320||o>57343?A?s.charAt(a):i:A?s.slice(a,a+2):o-56320+(i-55296<<10)+65536)}};A.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(A,e,t){var r=t("861d"),n=t("e8b5"),i=t("b622"),o=i("species");A.exports=function(A,e){var t;return n(A)&&(t=A.constructor,"function"!=typeof t||t!==Array&&!n(t.prototype)?r(t)&&(t=t[o],null===t&&(t=void 0)):t=void 0),new(void 0===t?Array:t)(0===e?0:e)}},"69f3":function(A,e,t){var r,n,i,o=t("7f9a"),s=t("da84"),a=t("861d"),l=t("9112"),c=t("5135"),u=t("f772"),d=t("d012"),h=s.WeakMap,g=function(A){return i(A)?n(A):r(A,{})},p=function(A){return function(e){var t;if(!a(e)||(t=n(e)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return t}};if(o){var f=new h,m=f.get,B=f.has,w=f.set;r=function(A,e){return w.call(f,A,e),e},n=function(A){return m.call(f,A)||{}},i=function(A){return B.call(f,A)}}else{var v=u("state");d[v]=!0,r=function(A,e){return l(A,v,e),e},n=function(A){return c(A,v)?A[v]:{}},i=function(A){return c(A,v)}}A.exports={set:r,get:n,has:i,enforce:g,getterFor:p}},"6eeb":function(A,e,t){var r=t("da84"),n=t("9112"),i=t("5135"),o=t("ce4e"),s=t("8925"),a=t("69f3"),l=a.get,c=a.enforce,u=String(String).split("String");(A.exports=function(A,e,t,s){var a=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof t&&("string"!=typeof e||i(t,"name")||n(t,"name",e),c(t).source=u.join("string"==typeof e?e:"")),A!==r?(a?!d&&A[e]&&(l=!0):delete A[e],l?A[e]=t:n(A,e,t)):l?A[e]=t:o(e,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},"6f53":function(A,e,t){var r=t("83ab"),n=t("df75"),i=t("fc6a"),o=t("d1e7").f,s=function(A){return function(e){var t,s=i(e),a=n(s),l=a.length,c=0,u=[];while(l>c)t=a[c++],r&&!o.call(s,t)||u.push(A?[t,s[t]]:s[t]);return u}};A.exports={entries:s(!0),values:s(!1)}},"73d9":function(A,e,t){var r=t("44d2");r("flatMap")},7418:function(A,e){e.f=Object.getOwnPropertySymbols},"746f":function(A,e,t){var r=t("428f"),n=t("5135"),i=t("e538"),o=t("9bf2").f;A.exports=function(A){var e=r.Symbol||(r.Symbol={});n(e,A)||o(e,A,{value:i.f(A)})}},7839:function(A,e){A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(A,e,t){var r=t("1d80");A.exports=function(A){return Object(r(A))}},"7c73":function(A,e,t){var r,n=t("825a"),i=t("37e8"),o=t("7839"),s=t("d012"),a=t("1be4"),l=t("cc12"),c=t("f772"),u=">",d="<",h="prototype",g="script",p=c("IE_PROTO"),f=function(){},m=function(A){return d+g+u+A+d+"/"+g+u},B=function(A){A.write(m("")),A.close();var e=A.parentWindow.Object;return A=null,e},w=function(){var A,e=l("iframe"),t="java"+g+":";return e.style.display="none",a.appendChild(e),e.src=String(t),A=e.contentWindow.document,A.open(),A.write(m("document.F=Object")),A.close(),A.F},v=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}v=r?B(r):w();var A=o.length;while(A--)delete v[h][o[A]];return v()};s[p]=!0,A.exports=Object.create||function(A,e){var t;return null!==A?(f[h]=n(A),t=new f,f[h]=null,t[p]=A):t=v(),void 0===e?t:i(t,e)}},"7dd0":function(A,e,t){"use strict";var r=t("23e7"),n=t("9ed3"),i=t("e163"),o=t("d2bb"),s=t("d44e"),a=t("9112"),l=t("6eeb"),c=t("b622"),u=t("c430"),d=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};A.exports=function(A,e,t,c,h,C,b){n(t,e,c);var y,_,Q,U=function(A){if(A===h&&I)return I;if(!p&&A in E)return E[A];switch(A){case m:return function(){return new t(this,A)};case B:return function(){return new t(this,A)};case w:return function(){return new t(this,A)}}return function(){return new t(this)}},F=e+" Iterator",x=!1,E=A.prototype,k=E[f]||E["@@iterator"]||h&&E[h],I=!p&&k||U(h),H="Array"==e&&E.entries||k;if(H&&(y=i(H.call(new A)),g!==Object.prototype&&y.next&&(u||i(y)===g||(o?o(y,g):"function"!=typeof y[f]&&a(y,f,v)),s(y,F,!0,!0),u&&(d[F]=v))),h==B&&k&&k.name!==B&&(x=!0,I=function(){return k.call(this)}),u&&!b||E[f]===I||a(E,f,I),d[e]=I,h)if(_={values:U(B),keys:C?I:U(m),entries:U(w)},b)for(Q in _)(p||x||!(Q in E))&&l(E,Q,_[Q]);else r({target:e,proto:!0,forced:p||x},_);return _}},"7f9a":function(A,e,t){var r=t("da84"),n=t("8925"),i=r.WeakMap;A.exports="function"===typeof i&&/native code/.test(n(i))},"825a":function(A,e,t){var r=t("861d");A.exports=function(A){if(!r(A))throw TypeError(String(A)+" is not an object");return A}},"83ab":function(A,e,t){var r=t("d039");A.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(A,e,t){"use strict";var r=t("c04e"),n=t("9bf2"),i=t("5c6c");A.exports=function(A,e,t){var o=r(e);o in A?n.f(A,o,i(0,t)):A[o]=t}},"861d":function(A,e){A.exports=function(A){return"object"===typeof A?null!==A:"function"===typeof A}},8875:function(A,e,t){var r,n,i;(function(t,o){n=[],r=o,i="function"===typeof r?r.apply(e,n):r,void 0===i||(A.exports=i)})("undefined"!==typeof self&&self,(function(){function A(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==A&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var t,r,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.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,""),u=document.getElementsByTagName("script");a===c&&(t=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(r,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===a)return u[d];if(a===c&&u[d].innerHTML&&u[d].innerHTML.trim()===n)return u[d]}return null}}return A}))},8925:function(A,e,t){var r=t("c6cd"),n=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(A){return n.call(A)}),A.exports=r.inspectSource},"8aa5":function(A,e,t){"use strict";var r=t("6547").charAt;A.exports=function(A,e,t){return e+(t?r(A,e).length:1)}},"8bbf":function(e,t){e.exports=A},"90e3":function(A,e){var t=0,r=Math.random();A.exports=function(A){return"Symbol("+String(void 0===A?"":A)+")_"+(++t+r).toString(36)}},9112:function(A,e,t){var r=t("83ab"),n=t("9bf2"),i=t("5c6c");A.exports=r?function(A,e,t){return n.f(A,e,i(1,t))}:function(A,e,t){return A[e]=t,A}},9263:function(A,e,t){"use strict";var r=t("ad6d"),n=t("9f7f"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a=function(){var A=/a/,e=/b*/g;return i.call(A,"a"),i.call(e,"a"),0!==A.lastIndex||0!==e.lastIndex}(),l=n.UNSUPPORTED_Y||n.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],u=a||c||l;u&&(s=function(A){var e,t,n,s,u=this,d=l&&u.sticky,h=r.call(u),g=u.source,p=0,f=A;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),f=String(A).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==A[u.lastIndex-1])&&(g="(?: "+g+")",f=" "+f,p++),t=new RegExp("^(?:"+g+")",h)),c&&(t=new RegExp("^"+g+"$(?!\\s)",h)),a&&(e=u.lastIndex),n=i.call(d?t:u,f),d?n?(n.input=n.input.slice(p),n[0]=n[0].slice(p),n.index=u.lastIndex,u.lastIndex+=n[0].length):u.lastIndex=0:a&&n&&(u.lastIndex=u.global?n.index+n[0].length:e),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}),A.exports=s},"94ca":function(A,e,t){var r=t("d039"),n=/#|\.prototype\./,i=function(A,e){var t=s[o(A)];return t==l||t!=a&&("function"==typeof e?r(e):!!e)},o=i.normalize=function(A){return String(A).replace(n,".").toLowerCase()},s=i.data={},a=i.NATIVE="N",l=i.POLYFILL="P";A.exports=i},"99af":function(A,e,t){"use strict";var r=t("23e7"),n=t("d039"),i=t("e8b5"),o=t("861d"),s=t("7b0b"),a=t("50c4"),l=t("8418"),c=t("65f0"),u=t("1dde"),d=t("b622"),h=t("2d00"),g=d("isConcatSpreadable"),p=9007199254740991,f="Maximum allowed index exceeded",m=h>=51||!n((function(){var A=[];return A[g]=!1,A.concat()[0]!==A})),B=u("concat"),w=function(A){if(!o(A))return!1;var e=A[g];return void 0!==e?!!e:i(A)},v=!m||!B;r({target:"Array",proto:!0,forced:v},{concat:function(A){var e,t,r,n,i,o=s(this),u=c(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?o:arguments[e],w(i)){if(n=a(i.length),d+n>p)throw TypeError(f);for(t=0;t<n;t++,d++)t in i&&l(u,d,i[t])}else{if(d>=p)throw TypeError(f);l(u,d++,i)}return u.length=d,u}})},"9bdd":function(A,e,t){var r=t("825a");A.exports=function(A,e,t,n){try{return n?e(r(t)[0],t[1]):e(t)}catch(o){var i=A["return"];throw void 0!==i&&r(i.call(A)),o}}},"9bf2":function(A,e,t){var r=t("83ab"),n=t("0cfb"),i=t("825a"),o=t("c04e"),s=Object.defineProperty;e.f=r?s:function(A,e,t){if(i(A),e=o(e,!0),i(t),n)try{return s(A,e,t)}catch(r){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(A[e]=t.value),A}},"9ed3":function(A,e,t){"use strict";var r=t("ae93").IteratorPrototype,n=t("7c73"),i=t("5c6c"),o=t("d44e"),s=t("3f8c"),a=function(){return this};A.exports=function(A,e,t){var l=e+" Iterator";return A.prototype=n(r,{next:i(1,t)}),o(A,l,!1,!0),s[l]=a,A}},"9f7f":function(A,e,t){"use strict";var r=t("d039");function n(A,e){return RegExp(A,e)}e.UNSUPPORTED_Y=r((function(){var A=n("a","y");return A.lastIndex=2,null!=A.exec("abcd")})),e.BROKEN_CARET=r((function(){var A=n("^r","gy");return A.lastIndex=2,null!=A.exec("str")}))},a2bf:function(A,e,t){"use strict";var r=t("e8b5"),n=t("50c4"),i=t("0366"),o=function(A,e,t,s,a,l,c,u){var d,h=a,g=0,p=!!c&&i(c,u,3);while(g<s){if(g in t){if(d=p?p(t[g],g,e):t[g],l>0&&r(d))h=o(A,e,d,n(d.length),h,l-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");A[h]=d}h++}g++}return h};A.exports=o},a352:function(A,t){A.exports=e},a434:function(A,e,t){"use strict";var r=t("23e7"),n=t("23cb"),i=t("a691"),o=t("50c4"),s=t("7b0b"),a=t("65f0"),l=t("8418"),c=t("1dde"),u=t("ae40"),d=c("splice"),h=u("splice",{ACCESSORS:!0,0:0,1:2}),g=Math.max,p=Math.min,f=9007199254740991,m="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!h},{splice:function(A,e){var t,r,c,u,d,h,B=s(this),w=o(B.length),v=n(A,w),C=arguments.length;if(0===C?t=r=0:1===C?(t=0,r=w-v):(t=C-2,r=p(g(i(e),0),w-v)),w+t-r>f)throw TypeError(m);for(c=a(B,r),u=0;u<r;u++)d=v+u,d in B&&l(c,u,B[d]);if(c.length=r,t<r){for(u=v;u<w-r;u++)d=u+r,h=u+t,d in B?B[h]=B[d]:delete B[h];for(u=w;u>w-r+t;u--)delete B[u-1]}else if(t>r)for(u=w-r;u>v;u--)d=u+r-1,h=u+t-1,d in B?B[h]=B[d]:delete B[h];for(u=0;u<t;u++)B[u+v]=arguments[u+2];return B.length=w-r+t,c}})},a4d3:function(A,e,t){"use strict";var r=t("23e7"),n=t("da84"),i=t("d066"),o=t("c430"),s=t("83ab"),a=t("4930"),l=t("fdbf"),c=t("d039"),u=t("5135"),d=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"),C=t("241c"),b=t("057f"),y=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"),H=t("90e3"),S=t("b622"),D=t("e538"),L=t("746f"),O=t("d44e"),M=t("69f3"),T=t("b727").forEach,K=k("hidden"),N="Symbol",P="prototype",R=S("toPrimitive"),V=M.set,G=M.getterFor(N),j=Object[P],z=n.Symbol,Z=i("JSON","stringify"),W=_.f,X=Q.f,Y=b.f,J=U.f,$=E("symbols"),q=E("op-symbols"),AA=E("string-to-symbol-registry"),eA=E("symbol-to-string-registry"),tA=E("wks"),rA=n.QObject,nA=!rA||!rA[P]||!rA[P].findChild,iA=s&&c((function(){return 7!=w(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(A,e,t){var r=W(j,e);r&&delete j[e],X(A,e,t),r&&A!==j&&X(j,e,r)}:X,oA=function(A,e){var t=$[A]=w(z[P]);return V(t,{type:N,tag:A,description:e}),s||(t.description=e),t},sA=l?function(A){return"symbol"==typeof A}:function(A){return Object(A)instanceof z},aA=function(A,e,t){A===j&&aA(q,e,t),g(A);var r=m(e,!0);return g(t),u($,r)?(t.enumerable?(u(A,K)&&A[K][r]&&(A[K][r]=!1),t=w(t,{enumerable:B(0,!1)})):(u(A,K)||X(A,K,B(1,{})),A[K][r]=!0),iA(A,r,t)):X(A,r,t)},lA=function(A,e){g(A);var t=f(e),r=v(t).concat(gA(t));return T(r,(function(e){s&&!uA.call(t,e)||aA(A,e,t[e])})),A},cA=function(A,e){return void 0===e?w(A):lA(w(A),e)},uA=function(A){var e=m(A,!0),t=J.call(this,e);return!(this===j&&u($,e)&&!u(q,e))&&(!(t||!u(this,e)||!u($,e)||u(this,K)&&this[K][e])||t)},dA=function(A,e){var t=f(A),r=m(e,!0);if(t!==j||!u($,r)||u(q,r)){var n=W(t,r);return!n||!u($,r)||u(t,K)&&t[K][r]||(n.enumerable=!0),n}},hA=function(A){var e=Y(f(A)),t=[];return T(e,(function(A){u($,A)||u(I,A)||t.push(A)})),t},gA=function(A){var e=A===j,t=Y(e?q:f(A)),r=[];return T(t,(function(A){!u($,A)||e&&!u(j,A)||r.push($[A])})),r};if(a||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var A=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=H(A),t=function(A){this===j&&t.call(q,A),u(this,K)&&u(this[K],e)&&(this[K][e]=!1),iA(this,e,B(1,A))};return s&&nA&&iA(j,e,{configurable:!0,set:t}),oA(e,A)},x(z[P],"toString",(function(){return G(this).tag})),x(z,"withoutSetter",(function(A){return oA(H(A),A)})),U.f=uA,Q.f=aA,_.f=dA,C.f=b.f=hA,y.f=gA,D.f=function(A){return oA(S(A),A)},s&&(X(z[P],"description",{configurable:!0,get:function(){return G(this).description}}),o||x(j,"propertyIsEnumerable",uA,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:z}),T(v(tA),(function(A){L(A)})),r({target:N,stat:!0,forced:!a},{for:function(A){var e=String(A);if(u(AA,e))return AA[e];var t=z(e);return AA[e]=t,eA[t]=e,t},keyFor:function(A){if(!sA(A))throw TypeError(A+" is not a symbol");if(u(eA,A))return eA[A]},useSetter:function(){nA=!0},useSimple:function(){nA=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!s},{create:cA,defineProperty:aA,defineProperties:lA,getOwnPropertyDescriptor:dA}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:hA,getOwnPropertySymbols:gA}),r({target:"Object",stat:!0,forced:c((function(){y.f(1)}))},{getOwnPropertySymbols:function(A){return y.f(p(A))}}),Z){var pA=!a||c((function(){var A=z();return"[null]"!=Z([A])||"{}"!=Z({a:A})||"{}"!=Z(Object(A))}));r({target:"JSON",stat:!0,forced:pA},{stringify:function(A,e,t){var r,n=[A],i=1;while(arguments.length>i)n.push(arguments[i++]);if(r=e,(h(e)||void 0!==A)&&!sA(A))return d(e)||(e=function(A,e){if("function"==typeof r&&(e=r.call(this,A,e)),!sA(e))return e}),n[1]=e,Z.apply(null,n)}})}z[P][R]||F(z[P],R,z[P].valueOf),O(z,N),I[K]=!0},a630:function(A,e,t){var r=t("23e7"),n=t("4df4"),i=t("1c7e"),o=!i((function(A){Array.from(A)}));r({target:"Array",stat:!0,forced:o},{from:n})},a640:function(A,e,t){"use strict";var r=t("d039");A.exports=function(A,e){var t=[][A];return!!t&&r((function(){t.call(null,e||function(){throw 1},1)}))}},a691:function(A,e){var t=Math.ceil,r=Math.floor;A.exports=function(A){return isNaN(A=+A)?0:(A>0?r:t)(A)}},ab13:function(A,e,t){var r=t("b622"),n=r("match");A.exports=function(A){var e=/./;try{"/./"[A](e)}catch(t){try{return e[n]=!1,"/./"[A](e)}catch(r){}}return!1}},ac1f:function(A,e,t){"use strict";var r=t("23e7"),n=t("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},ad6d:function(A,e,t){"use strict";var r=t("825a");A.exports=function(){var A=r(this),e="";return A.global&&(e+="g"),A.ignoreCase&&(e+="i"),A.multiline&&(e+="m"),A.dotAll&&(e+="s"),A.unicode&&(e+="u"),A.sticky&&(e+="y"),e}},ae40:function(A,e,t){var r=t("83ab"),n=t("d039"),i=t("5135"),o=Object.defineProperty,s={},a=function(A){throw A};A.exports=function(A,e){if(i(s,A))return s[A];e||(e={});var t=[][A],l=!!i(e,"ACCESSORS")&&e.ACCESSORS,c=i(e,0)?e[0]:a,u=i(e,1)?e[1]:void 0;return s[A]=!!t&&!n((function(){if(l&&!r)return!0;var A={length:-1};l?o(A,1,{enumerable:!0,get:a}):A[1]=1,t.call(A,c,u)}))}},ae93:function(A,e,t){"use strict";var r,n,i,o=t("e163"),s=t("9112"),a=t("5135"),l=t("b622"),c=t("c430"),u=l("iterator"),d=!1,h=function(){return this};[].keys&&(i=[].keys(),"next"in i?(n=o(o(i)),n!==Object.prototype&&(r=n)):d=!0),void 0==r&&(r={}),c||a(r,u)||s(r,u,h),A.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},b041:function(A,e,t){"use strict";var r=t("00ee"),n=t("f5df");A.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},b0c0:function(A,e,t){var r=t("83ab"),n=t("9bf2").f,i=Function.prototype,o=i.toString,s=/^\s*function ([^ (]*)/,a="name";r&&!(a in i)&&n(i,a,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(A){return""}}})},b622:function(A,e,t){var r=t("da84"),n=t("5692"),i=t("5135"),o=t("90e3"),s=t("4930"),a=t("fdbf"),l=n("wks"),c=r.Symbol,u=a?c:c&&c.withoutSetter||o;A.exports=function(A){return i(l,A)||(s&&i(c,A)?l[A]=c[A]:l[A]=u("Symbol."+A)),l[A]}},b64b:function(A,e,t){var r=t("23e7"),n=t("7b0b"),i=t("df75"),o=t("d039"),s=o((function(){i(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(A){return i(n(A))}})},b727:function(A,e,t){var r=t("0366"),n=t("44ad"),i=t("7b0b"),o=t("50c4"),s=t("65f0"),a=[].push,l=function(A){var e=1==A,t=2==A,l=3==A,c=4==A,u=6==A,d=5==A||u;return function(h,g,p,f){for(var m,B,w=i(h),v=n(w),C=r(g,p,3),b=o(v.length),y=0,_=f||s,Q=e?_(h,b):t?_(h,0):void 0;b>y;y++)if((d||y in v)&&(m=v[y],B=C(m,y,w),A))if(e)Q[y]=B;else if(B)switch(A){case 3:return!0;case 5:return m;case 6:return y;case 2:a.call(Q,m)}else if(c)return!1;return u?-1:l||c?c:Q}};A.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},c04e:function(A,e,t){var r=t("861d");A.exports=function(A,e){if(!r(A))return A;var t,n;if(e&&"function"==typeof(t=A.toString)&&!r(n=t.call(A)))return n;if("function"==typeof(t=A.valueOf)&&!r(n=t.call(A)))return n;if(!e&&"function"==typeof(t=A.toString)&&!r(n=t.call(A)))return n;throw TypeError("Can't convert object to primitive value")}},c430:function(A,e){A.exports=!1},c6b6:function(A,e){var t={}.toString;A.exports=function(A){return t.call(A).slice(8,-1)}},c6cd:function(A,e,t){var r=t("da84"),n=t("ce4e"),i="__core-js_shared__",o=r[i]||n(i,{});A.exports=o},c740:function(A,e,t){"use strict";var r=t("23e7"),n=t("b727").findIndex,i=t("44d2"),o=t("ae40"),s="findIndex",a=!0,l=o(s);s in[]&&Array(1)[s]((function(){a=!1})),r({target:"Array",proto:!0,forced:a||!l},{findIndex:function(A){return n(this,A,arguments.length>1?arguments[1]:void 0)}}),i(s)},c8ba:function(A,e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(r){"object"===typeof window&&(t=window)}A.exports=t},c975:function(A,e,t){"use strict";var r=t("23e7"),n=t("4d64").indexOf,i=t("a640"),o=t("ae40"),s=[].indexOf,a=!!s&&1/[1].indexOf(1,-0)<0,l=i("indexOf"),c=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:a||!l||!c},{indexOf:function(A){return a?s.apply(this,arguments)||0:n(this,A,arguments.length>1?arguments[1]:void 0)}})},ca84:function(A,e,t){var r=t("5135"),n=t("fc6a"),i=t("4d64").indexOf,o=t("d012");A.exports=function(A,e){var t,s=n(A),a=0,l=[];for(t in s)!r(o,t)&&r(s,t)&&l.push(t);while(e.length>a)r(s,t=e[a++])&&(~i(l,t)||l.push(t));return l}},caad:function(A,e,t){"use strict";var r=t("23e7"),n=t("4d64").includes,i=t("44d2"),o=t("ae40"),s=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(A){return n(this,A,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(A,e,t){var r=t("da84"),n=t("861d"),i=r.document,o=n(i)&&n(i.createElement);A.exports=function(A){return o?i.createElement(A):{}}},ce4e:function(A,e,t){var r=t("da84"),n=t("9112");A.exports=function(A,e){try{n(r,A,e)}catch(t){r[A]=e}return e}},d012:function(A,e){A.exports={}},d039:function(A,e){A.exports=function(A){try{return!!A()}catch(e){return!0}}},d066:function(A,e,t){var r=t("428f"),n=t("da84"),i=function(A){return"function"==typeof A?A:void 0};A.exports=function(A,e){return arguments.length<2?i(r[A])||i(n[A]):r[A]&&r[A][e]||n[A]&&n[A][e]}},d1e7:function(A,e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(A){var e=n(this,A);return!!e&&e.enumerable}:r},d28b:function(A,e,t){var r=t("746f");r("iterator")},d2bb:function(A,e,t){var r=t("825a"),n=t("3bbe");A.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A,e=!1,t={};try{A=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,A.call(t,[]),e=t instanceof Array}catch(i){}return function(t,i){return r(t),n(i),e?A.call(t,i):t.__proto__=i,t}}():void 0)},d3b7:function(A,e,t){var r=t("00ee"),n=t("6eeb"),i=t("b041");r||n(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(A,e,t){var r=t("9bf2").f,n=t("5135"),i=t("b622"),o=i("toStringTag");A.exports=function(A,e,t){A&&!n(A=t?A:A.prototype,o)&&r(A,o,{configurable:!0,value:e})}},d58f:function(A,e,t){var r=t("1c0b"),n=t("7b0b"),i=t("44ad"),o=t("50c4"),s=function(A){return function(e,t,s,a){r(t);var l=n(e),c=i(l),u=o(l.length),d=A?u-1:0,h=A?-1:1;if(s<2)while(1){if(d in c){a=c[d],d+=h;break}if(d+=h,A?d<0:u<=d)throw TypeError("Reduce of empty array with no initial value")}for(;A?d>=0:u>d;d+=h)d in c&&(a=t(a,c[d],d,l));return a}};A.exports={left:s(!1),right:s(!0)}},d784:function(A,e,t){"use strict";t("ac1f");var r=t("6eeb"),n=t("d039"),i=t("b622"),o=t("9263"),s=t("9112"),a=i("species"),l=!n((function(){var A=/./;return A.exec=function(){var A=[];return A.groups={a:"7"},A},"7"!=="".replace(A,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),u=i("replace"),d=function(){return!!/./[u]&&""===/./[u]("a","$0")}(),h=!n((function(){var A=/(?:)/,e=A.exec;A.exec=function(){return e.apply(this,arguments)};var t="ab".split(A);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}));A.exports=function(A,e,t,u){var g=i(A),p=!n((function(){var e={};return e[g]=function(){return 7},7!=""[A](e)})),f=p&&!n((function(){var e=!1,t=/a/;return"split"===A&&(t={},t.constructor={},t.constructor[a]=function(){return t},t.flags="",t[g]=/./[g]),t.exec=function(){return e=!0,null},t[g](""),!e}));if(!p||!f||"replace"===A&&(!l||!c||d)||"split"===A&&!h){var m=/./[g],B=t(g,""[A],(function(A,e,t,r,n){return e.exec===o?p&&!n?{done:!0,value:m.call(e,t,r)}:{done:!0,value:A.call(t,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),w=B[0],v=B[1];r(String.prototype,A,w),r(RegExp.prototype,g,2==e?function(A,e){return v.call(A,this,e)}:function(A){return v.call(A,this)})}u&&s(RegExp.prototype[g],"sham",!0)}},d81d:function(A,e,t){"use strict";var r=t("23e7"),n=t("b727").map,i=t("1dde"),o=t("ae40"),s=i("map"),a=o("map");r({target:"Array",proto:!0,forced:!s||!a},{map:function(A){return n(this,A,arguments.length>1?arguments[1]:void 0)}})},da84:function(A,e,t){(function(e){var t=function(A){return A&&A.Math==Math&&A};A.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(A,e,t){var r=t("23e7"),n=t("83ab"),i=t("56ef"),o=t("fc6a"),s=t("06cf"),a=t("8418");r({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(A){var e,t,r=o(A),n=s.f,l=i(r),c={},u=0;while(l.length>u)t=n(r,e=l[u++]),void 0!==t&&a(c,e,t);return c}})},dbf1:function(A,e,t){"use strict";(function(A){function r(){return"undefined"!==typeof window?window.console:A.console}t.d(e,"a",(function(){return n}));var n=r()}).call(this,t("c8ba"))},ddb0:function(A,e,t){var r=t("da84"),n=t("fdbc"),i=t("e260"),o=t("9112"),s=t("b622"),a=s("iterator"),l=s("toStringTag"),c=i.values;for(var u in n){var d=r[u],h=d&&d.prototype;if(h){if(h[a]!==c)try{o(h,a,c)}catch(p){h[a]=c}if(h[l]||o(h,l,u),n[u])for(var g in i)if(h[g]!==i[g])try{o(h,g,i[g])}catch(p){h[g]=i[g]}}}},df75:function(A,e,t){var r=t("ca84"),n=t("7839");A.exports=Object.keys||function(A){return r(A,n)}},e01a:function(A,e,t){"use strict";var r=t("23e7"),n=t("83ab"),i=t("da84"),o=t("5135"),s=t("861d"),a=t("9bf2").f,l=t("e893"),c=i.Symbol;if(n&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var u={},d=function(){var A=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new c(A):void 0===A?c():c(A);return""===A&&(u[e]=!0),e};l(d,c);var h=d.prototype=c.prototype;h.constructor=d;var g=h.toString,p="Symbol(test)"==String(c("test")),f=/^Symbol\((.*)\)[^)]+$/;a(h,"description",{configurable:!0,get:function(){var A=s(this)?this.valueOf():this,e=g.call(A);if(o(u,A))return"";var t=p?e.slice(7,-1):e.replace(f,"$1");return""===t?void 0:t}}),r({global:!0,forced:!0},{Symbol:d})}},e163:function(A,e,t){var r=t("5135"),n=t("7b0b"),i=t("f772"),o=t("e177"),s=i("IE_PROTO"),a=Object.prototype;A.exports=o?Object.getPrototypeOf:function(A){return A=n(A),r(A,s)?A[s]:"function"==typeof A.constructor&&A instanceof A.constructor?A.constructor.prototype:A instanceof Object?a:null}},e177:function(A,e,t){var r=t("d039");A.exports=!r((function(){function A(){}return A.prototype.constructor=null,Object.getPrototypeOf(new A)!==A.prototype}))},e260:function(A,e,t){"use strict";var r=t("fc6a"),n=t("44d2"),i=t("3f8c"),o=t("69f3"),s=t("7dd0"),a="Array Iterator",l=o.set,c=o.getterFor(a);A.exports=s(Array,"Array",(function(A,e){l(this,{type:a,target:r(A),index:0,kind:e})}),(function(){var A=c(this),e=A.target,t=A.kind,r=A.index++;return!e||r>=e.length?(A.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:r,done:!1}:"values"==t?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},e439:function(A,e,t){var r=t("23e7"),n=t("d039"),i=t("fc6a"),o=t("06cf").f,s=t("83ab"),a=n((function(){o(1)})),l=!s||a;r({target:"Object",stat:!0,forced:l,sham:!s},{getOwnPropertyDescriptor:function(A,e){return o(i(A),e)}})},e538:function(A,e,t){var r=t("b622");e.f=r},e893:function(A,e,t){var r=t("5135"),n=t("56ef"),i=t("06cf"),o=t("9bf2");A.exports=function(A,e){for(var t=n(e),s=o.f,a=i.f,l=0;l<t.length;l++){var c=t[l];r(A,c)||s(A,c,a(e,c))}}},e8b5:function(A,e,t){var r=t("c6b6");A.exports=Array.isArray||function(A){return"Array"==r(A)}},e95a:function(A,e,t){var r=t("b622"),n=t("3f8c"),i=r("iterator"),o=Array.prototype;A.exports=function(A){return void 0!==A&&(n.Array===A||o[i]===A)}},f5df:function(A,e,t){var r=t("00ee"),n=t("c6b6"),i=t("b622"),o=i("toStringTag"),s="Arguments"==n(function(){return arguments}()),a=function(A,e){try{return A[e]}catch(t){}};A.exports=r?n:function(A){var e,t,r;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(t=a(e=Object(A),o))?t:s?n(e):"Object"==(r=n(e))&&"function"==typeof e.callee?"Arguments":r}},f772:function(A,e,t){var r=t("5692"),n=t("90e3"),i=r("keys");A.exports=function(A){return i[A]||(i[A]=n(A))}},fb15:function(A,e,t){"use strict";if(t.r(e),"undefined"!==typeof window){var r=window.document.currentScript,n=t("8875");r=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(t.p=i[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(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function s(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,r)}return t}function a(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){o(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}function l(A){if(Array.isArray(A))return A}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function c(A,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(A)){var t=[],r=!0,n=!1,i=void 0;try{for(var o,s=A[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(t.push(o.value),e&&t.length===e)break}catch(a){n=!0,i=a}finally{try{r||null==s["return"]||s["return"]()}finally{if(n)throw i}}return t}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function u(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=A[t];return r}function d(A,e){if(A){if("string"===typeof A)return u(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(A):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(A,e):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(A,e){return l(A)||c(A,e)||d(A,e)||h()}function p(A){if(Array.isArray(A))return u(A)}function f(A){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(A))return Array.from(A)}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(A){return p(A)||f(A)||d(A)||m()}var w=t("a352"),v=t.n(w);function C(A){null!==A.parentElement&&A.parentElement.removeChild(A)}function b(A,e,t){var r=0===t?A.children[0]:A.children[t-1].nextSibling;A.insertBefore(e,r)}var y=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function _(A){var e=Object.create(null);return function(t){var r=e[t];return r||(e[t]=A(t))}}var Q=/-(\w)/g,U=_((function(A){return A.replace(Q,(function(A,e){return e.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(A){return A})).map((function(A){return"on".concat(A)})),I={manage:E,manageAndEmit:F,emit:x};function H(A){return-1!==k.indexOf(A)}t("caad"),t("2ca0");var S=["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 D(A){return S.includes(A)}function L(A){return["transition-group","TransitionGroup"].includes(A)}function O(A){return["id","class","role","style"].includes(A)||A.startsWith("data-")||A.startsWith("aria-")||A.startsWith("on")}function M(A){return A.reduce((function(A,e){var t=g(e,2),r=t[0],n=t[1];return A[r]=n,A}),{})}function T(A){var e=A.$attrs,t=A.componentData,r=void 0===t?{}:t,n=M(Object.entries(e).filter((function(A){var e=g(A,2),t=e[0];e[1];return O(t)})));return a(a({},n),r)}function K(A){var e=A.$attrs,t=A.callBackBuilder,r=M(N(e));Object.entries(t).forEach((function(A){var e=g(A,2),t=e[0],n=e[1];I[t].forEach((function(A){r["on".concat(A)]=n(A)}))}));var n="[data-draggable]".concat(r.draggable||"");return a(a({},r),{},{draggable:n})}function N(A){return Object.entries(A).filter((function(A){var e=g(A,2),t=e[0];e[1];return!O(t)})).map((function(A){var e=g(A,2),t=e[0],r=e[1];return[U(t),r]})).filter((function(A){var e=g(A,2),t=e[0];e[1];return!H(t)}))}t("c740");function P(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function R(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}function V(A,e,t){return e&&R(A.prototype,e),t&&R(A,t),A}var G=function(A){var e=A.el;return e},j=function(A,e){return A.__draggable_context=e},z=function(A){return A.__draggable_context},Z=function(){function A(e){var t=e.nodes,r=t.header,n=t.default,i=t.footer,o=e.root,s=e.realList;P(this,A),this.defaultNodes=n,this.children=[].concat(B(r),B(n),B(i)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}return V(A,[{key:"render",value:function(A,e){var t=this.tag,r=this.children,n=this._isRootComponent,i=n?{default:function(){return r}}:r;return A(t,e,i)}},{key:"updated",value:function(){var A=this.defaultNodes,e=this.realList;A.forEach((function(A,t){j(G(A),{element:e[t],index:t})}))}},{key:"getUnderlyingVm",value:function(A){return z(A)}},{key:"getVmIndexFromDomIndex",value:function(A,e){var t=this.defaultNodes,r=t.length,n=e.children,i=n.item(A);if(null===i)return r;var o=z(i);if(o)return o.index;if(0===r)return 0;var s=G(t[0]),a=B(n).findIndex((function(A){return A===s}));return A<a?0:r}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),A}(),W=t("8bbf");function X(A,e){var t=A[e];return t?t():[]}function Y(A){var e=A.$slots,t=A.realList,r=A.getKey,n=t||[],i=["header","footer"].map((function(A){return X(e,A)})),o=g(i,2),s=o[0],l=o[1],c=e.item;if(!c)throw new Error("draggable element must have an item slot");var u=n.flatMap((function(A,e){return c({element:A,index:e}).map((function(e){return e.key=r(A),e.props=a(a({},e.props||{}),{},{"data-draggable":!0}),e}))}));if(u.length!==n.length)throw new Error("Item slot must have only one child");return{header:s,footer:l,default:u}}function J(A){var e=L(A),t=!D(A)&&!e;return{transition:e,externalComponent:t,tag:t?Object(W["resolveComponent"])(A):e?W["TransitionGroup"]:A}}function $(A){var e=A.$slots,t=A.tag,r=A.realList,n=A.getKey,i=Y({$slots:e,realList:r,getKey:n}),o=J(t);return new Z({nodes:i,root:o,realList:r})}function q(A,e){var t=this;Object(W["nextTick"])((function(){return t.$emit(A.toLowerCase(),e)}))}function AA(A){var e=this;return function(t,r){if(null!==e.realList)return e["onDrag".concat(A)](t,r)}}function eA(A){var e=this,t=AA.call(this,A);return function(r,n){t.call(e,r,n),q.call(e,A,r)}}var tA=null,rA={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(A){return A}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},nA=["update:modelValue","change"].concat(B([].concat(B(I.manageAndEmit),B(I.emit)).map((function(A){return A.toLowerCase()})))),iA=Object(W["defineComponent"])({name:"draggable",inheritAttrs:!1,props:rA,emits:nA,data:function(){return{error:!1}},render:function(){try{this.error=!1;var A=this.$slots,e=this.$attrs,t=this.tag,r=this.componentData,n=this.realList,i=this.getKey,o=$({$slots:A,tag:t,realList:n,getKey:i});this.componentStructure=o;var s=T({$attrs:e,componentData:r});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&&y["a"].error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var A=this;if(!this.error){var e=this.$attrs,t=this.$el,r=this.componentStructure;r.updated();var n=K({$attrs:e,callBackBuilder:{manageAndEmit:function(e){return eA.call(A,e)},emit:function(e){return q.bind(A,e)},manage:function(e){return AA.call(A,e)}}}),i=1===t.nodeType?t:t.parentElement;this._sortable=new v.a(i,n),this.targetDomElement=i,i.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var A=this.list;return A||this.modelValue},getKey:function(){var A=this.itemKey;return"function"===typeof A?A:function(e){return e[A]}}},watch:{$attrs:{handler:function(A){var e=this._sortable;e&&N(A).forEach((function(A){var t=g(A,2),r=t[0],n=t[1];e.option(r,n)}))},deep:!0}},methods:{getUnderlyingVm:function(A){return this.componentStructure.getUnderlyingVm(A)||null},getUnderlyingPotencialDraggableComponent:function(A){return A.__draggable_component__},emitChanges:function(A){var e=this;Object(W["nextTick"])((function(){return e.$emit("change",A)}))},alterList:function(A){if(this.list)A(this.list);else{var e=B(this.modelValue);A(e),this.$emit("update:modelValue",e)}},spliceList:function(){var A=arguments,e=function(e){return e.splice.apply(e,B(A))};this.alterList(e)},updatePosition:function(A,e){var t=function(t){return t.splice(e,0,t.splice(A,1)[0])};this.alterList(t)},getRelatedContextFromMoveEvent:function(A){var e=A.to,t=A.related,r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};var n=r.realList,i={list:n,component:r};if(e!==t&&n){var o=r.getUnderlyingVm(t)||{};return a(a({},o),i)}return i},getVmIndexFromDomIndex:function(A){return this.componentStructure.getVmIndexFromDomIndex(A,this.targetDomElement)},onDragStart:function(A){this.context=this.getUnderlyingVm(A.item),A.item._underlying_vm_=this.clone(this.context.element),tA=A.item},onDragAdd:function(A){var e=A.item._underlying_vm_;if(void 0!==e){C(A.item);var t=this.getVmIndexFromDomIndex(A.newIndex);this.spliceList(t,0,e);var r={element:e,newIndex:t};this.emitChanges({added:r})}},onDragRemove:function(A){if(b(this.$el,A.item,A.oldIndex),"clone"!==A.pullMode){var e=this.context,t=e.index,r=e.element;this.spliceList(t,1);var n={element:r,oldIndex:t};this.emitChanges({removed:n})}else C(A.clone)},onDragUpdate:function(A){C(A.item),b(A.from,A.item,A.oldIndex);var e=this.context.index,t=this.getVmIndexFromDomIndex(A.newIndex);this.updatePosition(e,t);var r={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:r})},computeFutureIndex:function(A,e){if(!A.element)return 0;var t=B(e.to.children).filter((function(A){return"none"!==A.style["display"]})),r=t.indexOf(e.related),n=A.component.getVmIndexFromDomIndex(r),i=-1!==t.indexOf(tA);return i||!e.willInsertAfter?n:n+1},onDragMove:function(A,e){var t=this.move,r=this.realList;if(!t||!r)return!0;var n=this.getRelatedContextFromMoveEvent(A),i=this.computeFutureIndex(n,A),o=a(a({},this.context),{},{futureIndex:i}),s=a(a({},A),{},{relatedContext:n,draggedContext:o});return t(s,e)},onDragEnd:function(){tA=null}}}),oA=iA;e["default"]=oA},fb6a:function(A,e,t){"use strict";var r=t("23e7"),n=t("861d"),i=t("e8b5"),o=t("23cb"),s=t("50c4"),a=t("fc6a"),l=t("8418"),c=t("b622"),u=t("1dde"),d=t("ae40"),h=u("slice"),g=d("slice",{ACCESSORS:!0,0:0,1:2}),p=c("species"),f=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!h||!g},{slice:function(A,e){var t,r,c,u=a(this),d=s(u.length),h=o(A,d),g=o(void 0===e?d:e,d);if(i(u)&&(t=u.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)?n(t)&&(t=t[p],null===t&&(t=void 0)):t=void 0,t===Array||void 0===t))return f.call(u,h,g);for(r=new(void 0===t?Array:t)(m(g-h,0)),c=0;h<g;h++,c++)h in u&&l(r,c,u[h]);return r.length=c,r}})},fc6a:function(A,e,t){var r=t("44ad"),n=t("1d80");A.exports=function(A){return r(n(A))}},fdbc:function(A,e){A.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(A,e,t){var r=t("4930");A.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}))},8244:function(A,e,t){"use strict";
|
||
/**!
|
||
* Sortable 1.14.0
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/
|
||
function r(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,r)}return t}function n(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?r(Object(t),!0).forEach((function(e){o(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}function i(A){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"===typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},i(A)}function o(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function s(){return s=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(A[r]=t[r])}return A},s.apply(this,arguments)}function a(A,e){if(null==A)return{};var t,r,n={},i=Object.keys(A);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||(n[t]=A[t]);return n}function l(A,e){if(null==A)return{};var t,r,n=a(A,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(A);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(A,t)&&(n[t]=A[t])}return n}function c(A){return u(A)||d(A)||h(A)||p()}function u(A){if(Array.isArray(A))return g(A)}function d(A){if("undefined"!==typeof Symbol&&null!=A[Symbol.iterator]||null!=A["@@iterator"])return Array.from(A)}function h(A,e){if(A){if("string"===typeof A)return g(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(A):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(A,e):void 0}}function g(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=A[t];return r}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(e),t.d(e,{MultiDrag:function(){return Ve},Sortable:function(){return te},Swap:function(){return Ie}});var f="1.14.0";function m(A){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(A)}var B=m(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=m(/Edge/i),v=m(/firefox/i),C=m(/safari/i)&&!m(/chrome/i)&&!m(/android/i),b=m(/iP(ad|od|hone)/i),y=m(/chrome/i)&&m(/android/i),_={capture:!1,passive:!1};function Q(A,e,t){A.addEventListener(e,t,!B&&_)}function U(A,e,t){A.removeEventListener(e,t,!B&&_)}function F(A,e){if(e){if(">"===e[0]&&(e=e.substring(1)),A)try{if(A.matches)return A.matches(e);if(A.msMatchesSelector)return A.msMatchesSelector(e);if(A.webkitMatchesSelector)return A.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function x(A){return A.host&&A!==document&&A.host.nodeType?A.host:A.parentNode}function E(A,e,t,r){if(A){t=t||document;do{if(null!=e&&(">"===e[0]?A.parentNode===t&&F(A,e):F(A,e))||r&&A===t)return A;if(A===t)break}while(A=x(A))}return null}var k,I=/\s+/g;function H(A,e,t){if(A&&e)if(A.classList)A.classList[t?"add":"remove"](e);else{var r=(" "+A.className+" ").replace(I," ").replace(" "+e+" "," ");A.className=(r+(t?" "+e:"")).replace(I," ")}}function S(A,e,t){var r=A&&A.style;if(r){if(void 0===t)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(A,""):A.currentStyle&&(t=A.currentStyle),void 0===e?t:t[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=t+("string"===typeof t?"":"px")}}function D(A,e){var t="";if("string"===typeof A)t=A;else do{var r=S(A,"transform");r&&"none"!==r&&(t=r+" "+t)}while(!e&&(A=A.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(t)}function L(A,e,t){if(A){var r=A.getElementsByTagName(e),n=0,i=r.length;if(t)for(;n<i;n++)t(r[n],n);return r}return[]}function O(){var A=document.scrollingElement;return A||document.documentElement}function M(A,e,t,r,n){if(A.getBoundingClientRect||A===window){var i,o,s,a,l,c,u;if(A!==window&&A.parentNode&&A!==O()?(i=A.getBoundingClientRect(),o=i.top,s=i.left,a=i.bottom,l=i.right,c=i.height,u=i.width):(o=0,s=0,a=window.innerHeight,l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(e||t)&&A!==window&&(n=n||A.parentNode,!B))do{if(n&&n.getBoundingClientRect&&("none"!==S(n,"transform")||t&&"static"!==S(n,"position"))){var d=n.getBoundingClientRect();o-=d.top+parseInt(S(n,"border-top-width")),s-=d.left+parseInt(S(n,"border-left-width")),a=o+i.height,l=s+i.width;break}}while(n=n.parentNode);if(r&&A!==window){var h=D(n||A),g=h&&h.a,p=h&&h.d;h&&(o/=p,s/=g,u/=g,c/=p,a=o+c,l=s+u)}return{top:o,left:s,bottom:a,right:l,width:u,height:c}}}function T(A,e,t){var r=G(A,!0),n=M(A)[e];while(r){var i=M(r)[t],o=void 0;if(o="top"===t||"left"===t?n>=i:n<=i,!o)return r;if(r===O())break;r=G(r,!1)}return!1}function K(A,e,t,r){var n=0,i=0,o=A.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==te.ghost&&(r||o[i]!==te.dragged)&&E(o[i],t.draggable,A,!1)){if(n===e)return o[i];n++}i++}return null}function N(A,e){var t=A.lastElementChild;while(t&&(t===te.ghost||"none"===S(t,"display")||e&&!F(t,e)))t=t.previousElementSibling;return t||null}function P(A,e){var t=0;if(!A||!A.parentNode)return-1;while(A=A.previousElementSibling)"TEMPLATE"===A.nodeName.toUpperCase()||A===te.clone||e&&!F(A,e)||t++;return t}function R(A){var e=0,t=0,r=O();if(A)do{var n=D(A),i=n.a,o=n.d;e+=A.scrollLeft*i,t+=A.scrollTop*o}while(A!==r&&(A=A.parentNode));return[e,t]}function V(A,e){for(var t in A)if(A.hasOwnProperty(t))for(var r in e)if(e.hasOwnProperty(r)&&e[r]===A[t][r])return Number(t);return-1}function G(A,e){if(!A||!A.getBoundingClientRect)return O();var t=A,r=!1;do{if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var n=S(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(r||e)return t;r=!0}}}while(t=t.parentNode);return O()}function j(A,e){if(A&&e)for(var t in e)e.hasOwnProperty(t)&&(A[t]=e[t]);return A}function z(A,e){return Math.round(A.top)===Math.round(e.top)&&Math.round(A.left)===Math.round(e.left)&&Math.round(A.height)===Math.round(e.height)&&Math.round(A.width)===Math.round(e.width)}function Z(A,e){return function(){if(!k){var t=arguments,r=this;1===t.length?A.call(r,t[0]):A.apply(r,t),k=setTimeout((function(){k=void 0}),e)}}}function W(){clearTimeout(k),k=void 0}function X(A,e,t){A.scrollLeft+=e,A.scrollTop+=t}function Y(A){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(A).cloneNode(!0):t?t(A).clone(!0)[0]:A.cloneNode(!0)}function J(A,e){S(A,"position","absolute"),S(A,"top",e.top),S(A,"left",e.left),S(A,"width",e.width),S(A,"height",e.height)}function $(A){S(A,"position",""),S(A,"top",""),S(A,"left",""),S(A,"width",""),S(A,"height","")}var q="Sortable"+(new Date).getTime();function AA(){var A,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var A=[].slice.call(this.el.children);A.forEach((function(A){if("none"!==S(A,"display")&&A!==te.ghost){e.push({target:A,rect:M(A)});var t=n({},e[e.length-1].rect);if(A.thisAnimationDuration){var r=D(A,!0);r&&(t.top-=r.f,t.left-=r.e)}A.fromRect=t}}))}},addAnimationState:function(A){e.push(A)},removeAnimationState:function(A){e.splice(V(e,{target:A}),1)},animateAll:function(t){var r=this;if(!this.options.animation)return clearTimeout(A),void("function"===typeof t&&t());var n=!1,i=0;e.forEach((function(A){var e=0,t=A.target,o=t.fromRect,s=M(t),a=t.prevFromRect,l=t.prevToRect,c=A.rect,u=D(t,!0);u&&(s.top-=u.f,s.left-=u.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)&&(e=tA(c,a,l,r.options)),z(s,o)||(t.prevFromRect=o,t.prevToRect=s,e||(e=r.options.animation),r.animate(t,c,s,e)),e&&(n=!0,i=Math.max(i,e),clearTimeout(t.animationResetTimer),t.animationResetTimer=setTimeout((function(){t.animationTime=0,t.prevFromRect=null,t.fromRect=null,t.prevToRect=null,t.thisAnimationDuration=null}),e),t.thisAnimationDuration=e)})),clearTimeout(A),n?A=setTimeout((function(){"function"===typeof t&&t()}),i):"function"===typeof t&&t(),e=[]},animate:function(A,e,t,r){if(r){S(A,"transition",""),S(A,"transform","");var n=D(this.el),i=n&&n.a,o=n&&n.d,s=(e.left-t.left)/(i||1),a=(e.top-t.top)/(o||1);A.animatingX=!!s,A.animatingY=!!a,S(A,"transform","translate3d("+s+"px,"+a+"px,0)"),this.forRepaintDummy=eA(A),S(A,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),S(A,"transform","translate3d(0,0,0)"),"number"===typeof A.animated&&clearTimeout(A.animated),A.animated=setTimeout((function(){S(A,"transition",""),S(A,"transform",""),A.animated=!1,A.animatingX=!1,A.animatingY=!1}),r)}}}}function eA(A){return A.offsetWidth}function tA(A,e,t,r){return Math.sqrt(Math.pow(e.top-A.top,2)+Math.pow(e.left-A.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var rA=[],nA={initializeByDefault:!0},iA={mount:function(A){for(var e in nA)nA.hasOwnProperty(e)&&!(e in A)&&(A[e]=nA[e]);rA.forEach((function(e){if(e.pluginName===A.pluginName)throw"Sortable: Cannot mount plugin ".concat(A.pluginName," more than once")})),rA.push(A)},pluginEvent:function(A,e,t){var r=this;this.eventCanceled=!1,t.cancel=function(){r.eventCanceled=!0};var i=A+"Global";rA.forEach((function(r){e[r.pluginName]&&(e[r.pluginName][i]&&e[r.pluginName][i](n({sortable:e},t)),e.options[r.pluginName]&&e[r.pluginName][A]&&e[r.pluginName][A](n({sortable:e},t)))}))},initializePlugins:function(A,e,t,r){for(var n in rA.forEach((function(r){var n=r.pluginName;if(A.options[n]||r.initializeByDefault){var i=new r(A,e,A.options);i.sortable=A,i.options=A.options,A[n]=i,s(t,i.defaults)}})),A.options)if(A.options.hasOwnProperty(n)){var i=this.modifyOption(A,n,A.options[n]);"undefined"!==typeof i&&(A.options[n]=i)}},getEventProperties:function(A,e){var t={};return rA.forEach((function(r){"function"===typeof r.eventProperties&&s(t,r.eventProperties.call(e[r.pluginName],A))})),t},modifyOption:function(A,e,t){var r;return rA.forEach((function(n){A[n.pluginName]&&n.optionListeners&&"function"===typeof n.optionListeners[e]&&(r=n.optionListeners[e].call(A[n.pluginName],t))})),r}};function oA(A){var e=A.sortable,t=A.rootEl,r=A.name,i=A.targetEl,o=A.cloneEl,s=A.toEl,a=A.fromEl,l=A.oldIndex,c=A.newIndex,u=A.oldDraggableIndex,d=A.newDraggableIndex,h=A.originalEvent,g=A.putSortable,p=A.extraEventProperties;if(e=e||t&&t[q],e){var f,m=e.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||B||w?(f=document.createEvent("Event"),f.initEvent(r,!0,!0)):f=new CustomEvent(r,{bubbles:!0,cancelable:!0}),f.to=s||t,f.from=a||t,f.item=i||t,f.clone=o,f.oldIndex=l,f.newIndex=c,f.oldDraggableIndex=u,f.newDraggableIndex=d,f.originalEvent=h,f.pullMode=g?g.lastPutMode:void 0;var C=n(n({},p),iA.getEventProperties(r,e));for(var b in C)f[b]=C[b];t&&t.dispatchEvent(f),m[v]&&m[v].call(e,f)}}var sA=["evt"],aA=function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.evt,i=l(t,sA);iA.pluginEvent.bind(te)(A,e,n({dragEl:cA,parentEl:uA,ghostEl:dA,rootEl:hA,nextEl:gA,lastDownEl:pA,cloneEl:fA,cloneHidden:mA,dragStarted:kA,putSortable:yA,activeSortable:te.active,originalEvent:r,oldIndex:BA,oldDraggableIndex:vA,newIndex:wA,newDraggableIndex:CA,hideGhostForTarget:$A,unhideGhostForTarget:qA,cloneNowHidden:function(){mA=!0},cloneNowShown:function(){mA=!1},dispatchSortableEvent:function(A){lA({sortable:e,name:A,originalEvent:r})}},i))};function lA(A){oA(n({putSortable:yA,cloneEl:fA,targetEl:cA,rootEl:hA,oldIndex:BA,oldDraggableIndex:vA,newIndex:wA,newDraggableIndex:CA},A))}var cA,uA,dA,hA,gA,pA,fA,mA,BA,wA,vA,CA,bA,yA,_A,QA,UA,FA,xA,EA,kA,IA,HA,SA,DA,LA=!1,OA=!1,MA=[],TA=!1,KA=!1,NA=[],PA=!1,RA=[],VA="undefined"!==typeof document,GA=b,jA=w||B?"cssFloat":"float",zA=VA&&!y&&!b&&"draggable"in document.createElement("div"),ZA=function(){if(VA){if(B)return!1;var A=document.createElement("x");return A.style.cssText="pointer-events:auto","auto"===A.style.pointerEvents}}(),WA=function(A,e){var t=S(A),r=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),n=K(A,0,e),i=K(A,1,e),o=n&&S(n),s=i&&S(i),a=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+M(n).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(i).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!i||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return n&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||a>=r&&"none"===t[jA]||i&&"none"===t[jA]&&a+l>r)?"vertical":"horizontal"},XA=function(A,e,t){var r=t?A.left:A.top,n=t?A.right:A.bottom,i=t?A.width:A.height,o=t?e.left:e.top,s=t?e.right:e.bottom,a=t?e.width:e.height;return r===o||n===s||r+i/2===o+a/2},YA=function(A,e){var t;return MA.some((function(r){var n=r[q].options.emptyInsertThreshold;if(n&&!N(r)){var i=M(r),o=A>=i.left-n&&A<=i.right+n,s=e>=i.top-n&&e<=i.bottom+n;return o&&s?t=r:void 0}})),t},JA=function(A){function e(A,t){return function(r,n,i,o){var s=r.options.group.name&&n.options.group.name&&r.options.group.name===n.options.group.name;if(null==A&&(t||s))return!0;if(null==A||!1===A)return!1;if(t&&"clone"===A)return A;if("function"===typeof A)return e(A(r,n,i,o),t)(r,n,i,o);var a=(t?r:n).options.group.name;return!0===A||"string"===typeof A&&A===a||A.join&&A.indexOf(a)>-1}}var t={},r=A.group;r&&"object"==i(r)||(r={name:r}),t.name=r.name,t.checkPull=e(r.pull,!0),t.checkPut=e(r.put),t.revertClone=r.revertClone,A.group=t},$A=function(){!ZA&&dA&&S(dA,"display","none")},qA=function(){!ZA&&dA&&S(dA,"display","")};VA&&document.addEventListener("click",(function(A){if(OA)return A.preventDefault(),A.stopPropagation&&A.stopPropagation(),A.stopImmediatePropagation&&A.stopImmediatePropagation(),OA=!1,!1}),!0);var Ae=function(A){if(cA){A=A.touches?A.touches[0]:A;var e=YA(A.clientX,A.clientY);if(e){var t={};for(var r in A)A.hasOwnProperty(r)&&(t[r]=A[r]);t.target=t.rootEl=e,t.preventDefault=void 0,t.stopPropagation=void 0,e[q]._onDragOver(t)}}},ee=function(A){cA&&cA.parentNode[q]._isOutsideThisEl(A.target)};function te(A,e){if(!A||!A.nodeType||1!==A.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(A));this.el=A,this.options=e=s({},e),A[q]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(A.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return WA(A,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(A,e){A.setData("Text",e.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!==te.supportPointer&&"PointerEvent"in window&&!C,emptyInsertThreshold:5};for(var r in iA.initializePlugins(this,A,t),t)!(r in e)&&(e[r]=t[r]);for(var n in JA(e),this)"_"===n.charAt(0)&&"function"===typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!e.forceFallback&&zA,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Q(A,"pointerdown",this._onTapStart):(Q(A,"mousedown",this._onTapStart),Q(A,"touchstart",this._onTapStart)),this.nativeDraggable&&(Q(A,"dragover",this),Q(A,"dragenter",this)),MA.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),s(this,AA())}function re(A){A.dataTransfer&&(A.dataTransfer.dropEffect="move"),A.cancelable&&A.preventDefault()}function ne(A,e,t,r,n,i,o,s){var a,l,c=A[q],u=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=e,a.from=A,a.dragged=t,a.draggedRect=r,a.related=n||e,a.relatedRect=i||M(e),a.willInsertAfter=s,a.originalEvent=o,A.dispatchEvent(a),u&&(l=u.call(c,a,o)),l}function ie(A){A.draggable=!1}function oe(){PA=!1}function se(A,e,t){var r=M(K(t.el,0,t.options,!0)),n=10;return e?A.clientX<r.left-n||A.clientY<r.top&&A.clientX<r.right:A.clientY<r.top-n||A.clientY<r.bottom&&A.clientX<r.left}function ae(A,e,t){var r=M(N(t.el,t.options.draggable)),n=10;return e?A.clientX>r.right+n||A.clientX<=r.right&&A.clientY>r.bottom&&A.clientX>=r.left:A.clientX>r.right&&A.clientY>r.top||A.clientX<=r.right&&A.clientY>r.bottom+n}function le(A,e,t,r,n,i,o,s){var a=r?A.clientY:A.clientX,l=r?t.height:t.width,c=r?t.top:t.left,u=r?t.bottom:t.right,d=!1;if(!o)if(s&&SA<l*n){if(!TA&&(1===HA?a>c+l*i/2:a<u-l*i/2)&&(TA=!0),TA)d=!0;else if(1===HA?a<c+SA:a>u-SA)return-HA}else if(a>c+l*(1-n)/2&&a<u-l*(1-n)/2)return ce(e);return d=d||o,d&&(a<c+l*i/2||a>u-l*i/2)?a>c+l/2?1:-1:0}function ce(A){return P(cA)<P(A)?1:-1}function ue(A){var e=A.tagName+A.className+A.src+A.href+A.textContent,t=e.length,r=0;while(t--)r+=e.charCodeAt(t);return r.toString(36)}function de(A){RA.length=0;var e=A.getElementsByTagName("input"),t=e.length;while(t--){var r=e[t];r.checked&&RA.push(r)}}function he(A){return setTimeout(A,0)}function ge(A){return clearTimeout(A)}te.prototype={constructor:te,_isOutsideThisEl:function(A){this.el.contains(A)||A===this.el||(IA=null)},_getDirection:function(A,e){return"function"===typeof this.options.direction?this.options.direction.call(this,A,e,cA):this.options.direction},_onTapStart:function(A){if(A.cancelable){var e=this,t=this.el,r=this.options,n=r.preventOnFilter,i=A.type,o=A.touches&&A.touches[0]||A.pointerType&&"touch"===A.pointerType&&A,s=(o||A).target,a=A.target.shadowRoot&&(A.path&&A.path[0]||A.composedPath&&A.composedPath()[0])||s,l=r.filter;if(de(t),!cA&&!(/mousedown|pointerdown/.test(i)&&0!==A.button||r.disabled)&&!a.isContentEditable&&(this.nativeDraggable||!C||!s||"SELECT"!==s.tagName.toUpperCase())&&(s=E(s,r.draggable,t,!1),(!s||!s.animated)&&pA!==s)){if(BA=P(s),vA=P(s,r.draggable),"function"===typeof l){if(l.call(this,A,s,this))return lA({sortable:e,rootEl:a,name:"filter",targetEl:s,toEl:t,fromEl:t}),aA("filter",e,{evt:A}),void(n&&A.cancelable&&A.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=E(a,r.trim(),t,!1),r)return lA({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:t,toEl:t}),aA("filter",e,{evt:A}),!0})),l))return void(n&&A.cancelable&&A.preventDefault());r.handle&&!E(a,r.handle,t,!1)||this._prepareDragStart(A,o,s)}}},_prepareDragStart:function(A,e,t){var r,n=this,i=n.el,o=n.options,s=i.ownerDocument;if(t&&!cA&&t.parentNode===i){var a=M(t);if(hA=i,cA=t,uA=cA.parentNode,gA=cA.nextSibling,pA=t,bA=o.group,te.dragged=cA,_A={target:cA,clientX:(e||A).clientX,clientY:(e||A).clientY},xA=_A.clientX-a.left,EA=_A.clientY-a.top,this._lastX=(e||A).clientX,this._lastY=(e||A).clientY,cA.style["will-change"]="all",r=function(){aA("delayEnded",n,{evt:A}),te.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!v&&n.nativeDraggable&&(cA.draggable=!0),n._triggerDragStart(A,e),lA({sortable:n,name:"choose",originalEvent:A}),H(cA,o.chosenClass,!0))},o.ignore.split(",").forEach((function(A){L(cA,A.trim(),ie)})),Q(s,"dragover",Ae),Q(s,"mousemove",Ae),Q(s,"touchmove",Ae),Q(s,"mouseup",n._onDrop),Q(s,"touchend",n._onDrop),Q(s,"touchcancel",n._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,cA.draggable=!0),aA("delayStart",this,{evt:A}),!o.delay||o.delayOnTouchOnly&&!e||this.nativeDraggable&&(w||B))r();else{if(te.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(r,o.delay)}}},_delayedDragTouchMoveHandler:function(A){var e=A.touches?A.touches[0]:A;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){cA&&ie(cA),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var A=this.el.ownerDocument;U(A,"mouseup",this._disableDelayedDrag),U(A,"touchend",this._disableDelayedDrag),U(A,"touchcancel",this._disableDelayedDrag),U(A,"mousemove",this._delayedDragTouchMoveHandler),U(A,"touchmove",this._delayedDragTouchMoveHandler),U(A,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(A,e){e=e||"touch"==A.pointerType&&A,!this.nativeDraggable||e?this.options.supportPointer?Q(document,"pointermove",this._onTouchMove):Q(document,e?"touchmove":"mousemove",this._onTouchMove):(Q(cA,"dragend",this),Q(hA,"dragstart",this._onDragStart));try{document.selection?he((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(A,e){if(LA=!1,hA&&cA){aA("dragStarted",this,{evt:e}),this.nativeDraggable&&Q(document,"dragover",ee);var t=this.options;!A&&H(cA,t.dragClass,!1),H(cA,t.ghostClass,!0),te.active=this,A&&this._appendGhost(),lA({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(QA){this._lastX=QA.clientX,this._lastY=QA.clientY,$A();var A=document.elementFromPoint(QA.clientX,QA.clientY),e=A;while(A&&A.shadowRoot){if(A=A.shadowRoot.elementFromPoint(QA.clientX,QA.clientY),A===e)break;e=A}if(cA.parentNode[q]._isOutsideThisEl(A),e)do{if(e[q]){var t=void 0;if(t=e[q]._onDragOver({clientX:QA.clientX,clientY:QA.clientY,target:A,rootEl:e}),t&&!this.options.dragoverBubble)break}A=e}while(e=e.parentNode);qA()}},_onTouchMove:function(A){if(_A){var e=this.options,t=e.fallbackTolerance,r=e.fallbackOffset,n=A.touches?A.touches[0]:A,i=dA&&D(dA,!0),o=dA&&i&&i.a,s=dA&&i&&i.d,a=GA&&DA&&R(DA),l=(n.clientX-_A.clientX+r.x)/(o||1)+(a?a[0]-NA[0]:0)/(o||1),c=(n.clientY-_A.clientY+r.y)/(s||1)+(a?a[1]-NA[1]:0)/(s||1);if(!te.active&&!LA){if(t&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<t)return;this._onDragStart(A,!0)}if(dA){i?(i.e+=l-(UA||0),i.f+=c-(FA||0)):i={a:1,b:0,c:0,d:1,e:l,f:c};var u="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");S(dA,"webkitTransform",u),S(dA,"mozTransform",u),S(dA,"msTransform",u),S(dA,"transform",u),UA=l,FA=c,QA=n}A.cancelable&&A.preventDefault()}},_appendGhost:function(){if(!dA){var A=this.options.fallbackOnBody?document.body:hA,e=M(cA,!0,GA,!0,A),t=this.options;if(GA){DA=A;while("static"===S(DA,"position")&&"none"===S(DA,"transform")&&DA!==document)DA=DA.parentNode;DA!==document.body&&DA!==document.documentElement?(DA===document&&(DA=O()),e.top+=DA.scrollTop,e.left+=DA.scrollLeft):DA=O(),NA=R(DA)}dA=cA.cloneNode(!0),H(dA,t.ghostClass,!1),H(dA,t.fallbackClass,!0),H(dA,t.dragClass,!0),S(dA,"transition",""),S(dA,"transform",""),S(dA,"box-sizing","border-box"),S(dA,"margin",0),S(dA,"top",e.top),S(dA,"left",e.left),S(dA,"width",e.width),S(dA,"height",e.height),S(dA,"opacity","0.8"),S(dA,"position",GA?"absolute":"fixed"),S(dA,"zIndex","100000"),S(dA,"pointerEvents","none"),te.ghost=dA,A.appendChild(dA),S(dA,"transform-origin",xA/parseInt(dA.style.width)*100+"% "+EA/parseInt(dA.style.height)*100+"%")}},_onDragStart:function(A,e){var t=this,r=A.dataTransfer,n=t.options;aA("dragStart",this,{evt:A}),te.eventCanceled?this._onDrop():(aA("setupClone",this),te.eventCanceled||(fA=Y(cA),fA.draggable=!1,fA.style["will-change"]="",this._hideClone(),H(fA,this.options.chosenClass,!1),te.clone=fA),t.cloneId=he((function(){aA("clone",t),te.eventCanceled||(t.options.removeCloneOnHide||hA.insertBefore(fA,cA),t._hideClone(),lA({sortable:t,name:"clone"}))})),!e&&H(cA,n.dragClass,!0),e?(OA=!0,t._loopId=setInterval(t._emulateDragOver,50)):(U(document,"mouseup",t._onDrop),U(document,"touchend",t._onDrop),U(document,"touchcancel",t._onDrop),r&&(r.effectAllowed="move",n.setData&&n.setData.call(t,r,cA)),Q(document,"drop",t),S(cA,"transform","translateZ(0)")),LA=!0,t._dragStartId=he(t._dragStarted.bind(t,e,A)),Q(document,"selectstart",t),kA=!0,C&&S(document.body,"user-select","none"))},_onDragOver:function(A){var e,t,r,i,o=this.el,s=A.target,a=this.options,l=a.group,c=te.active,u=bA===l,d=a.sort,h=yA||c,g=this,p=!1;if(!PA){if(void 0!==A.preventDefault&&A.cancelable&&A.preventDefault(),s=E(s,a.draggable,o,!0),I("dragOver"),te.eventCanceled)return p;if(cA.contains(A.target)||s.animated&&s.animatingX&&s.animatingY||g._ignoreWhileAnimating===s)return L(!1);if(OA=!1,c&&!a.disabled&&(u?d||(r=uA!==hA):yA===this||(this.lastPutMode=bA.checkPull(this,c,cA,A))&&l.checkPut(this,c,cA,A))){if(i="vertical"===this._getDirection(A,s),e=M(cA),I("dragOverValid"),te.eventCanceled)return p;if(r)return uA=hA,D(),this._hideClone(),I("revert"),te.eventCanceled||(gA?hA.insertBefore(cA,gA):hA.appendChild(cA)),L(!0);var f=N(o,a.draggable);if(!f||ae(A,i,this)&&!f.animated){if(f===cA)return L(!1);if(f&&o===A.target&&(s=f),s&&(t=M(s)),!1!==ne(hA,o,cA,e,s,t,A,!!s))return D(),o.appendChild(cA),uA=o,O(),L(!0)}else if(f&&se(A,i,this)){var m=K(o,0,a,!0);if(m===cA)return L(!1);if(s=m,t=M(s),!1!==ne(hA,o,cA,e,s,t,A,!1))return D(),o.insertBefore(cA,m),uA=o,O(),L(!0)}else if(s.parentNode===o){t=M(s);var B,w,v=0,C=cA.parentNode!==o,b=!XA(cA.animated&&cA.toRect||e,s.animated&&s.toRect||t,i),y=i?"top":"left",_=T(s,"top","top")||T(cA,"top","top"),Q=_?_.scrollTop:void 0;if(IA!==s&&(B=t[y],TA=!1,KA=!b&&a.invertSwap||C),v=le(A,s,t,i,b?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,KA,IA===s),0!==v){var U=P(cA);do{U-=v,w=uA.children[U]}while(w&&("none"===S(w,"display")||w===dA))}if(0===v||w===s)return L(!1);IA=s,HA=v;var F=s.nextElementSibling,x=!1;x=1===v;var k=ne(hA,o,cA,e,s,t,A,x);if(!1!==k)return 1!==k&&-1!==k||(x=1===k),PA=!0,setTimeout(oe,30),D(),x&&!F?o.appendChild(cA):s.parentNode.insertBefore(cA,x?F:s),_&&X(_,0,Q-_.scrollTop),uA=cA.parentNode,void 0===B||KA||(SA=Math.abs(B-M(s)[y])),O(),L(!0)}if(o.contains(cA))return L(!1)}return!1}function I(a,l){aA(a,g,n({evt:A,isOwner:u,axis:i?"vertical":"horizontal",revert:r,dragRect:e,targetRect:t,canSort:d,fromSortable:h,target:s,completed:L,onMove:function(t,r){return ne(hA,o,cA,e,t,M(t),A,r)},changed:O},l))}function D(){I("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function L(e){return I("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(g),g!==h&&(H(cA,yA?yA.options.ghostClass:c.options.ghostClass,!1),H(cA,a.ghostClass,!0)),yA!==g&&g!==te.active?yA=g:g===te.active&&yA&&(yA=null),h===g&&(g._ignoreWhileAnimating=s),g.animateAll((function(){I("dragOverAnimationComplete"),g._ignoreWhileAnimating=null})),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===cA&&!cA.animated||s===o&&!s.animated)&&(IA=null),a.dragoverBubble||A.rootEl||s===document||(cA.parentNode[q]._isOutsideThisEl(A.target),!e&&Ae(A)),!a.dragoverBubble&&A.stopPropagation&&A.stopPropagation(),p=!0}function O(){wA=P(cA),CA=P(cA,a.draggable),lA({sortable:g,name:"change",toEl:o,newIndex:wA,newDraggableIndex:CA,originalEvent:A})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){U(document,"mousemove",this._onTouchMove),U(document,"touchmove",this._onTouchMove),U(document,"pointermove",this._onTouchMove),U(document,"dragover",Ae),U(document,"mousemove",Ae),U(document,"touchmove",Ae)},_offUpEvents:function(){var A=this.el.ownerDocument;U(A,"mouseup",this._onDrop),U(A,"touchend",this._onDrop),U(A,"pointerup",this._onDrop),U(A,"touchcancel",this._onDrop),U(document,"selectstart",this)},_onDrop:function(A){var e=this.el,t=this.options;wA=P(cA),CA=P(cA,t.draggable),aA("drop",this,{evt:A}),uA=cA&&cA.parentNode,wA=P(cA),CA=P(cA,t.draggable),te.eventCanceled||(LA=!1,KA=!1,TA=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ge(this.cloneId),ge(this._dragStartId),this.nativeDraggable&&(U(document,"drop",this),U(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),C&&S(document.body,"user-select",""),S(cA,"transform",""),A&&(kA&&(A.cancelable&&A.preventDefault(),!t.dropBubble&&A.stopPropagation()),dA&&dA.parentNode&&dA.parentNode.removeChild(dA),(hA===uA||yA&&"clone"!==yA.lastPutMode)&&fA&&fA.parentNode&&fA.parentNode.removeChild(fA),cA&&(this.nativeDraggable&&U(cA,"dragend",this),ie(cA),cA.style["will-change"]="",kA&&!LA&&H(cA,yA?yA.options.ghostClass:this.options.ghostClass,!1),H(cA,this.options.chosenClass,!1),lA({sortable:this,name:"unchoose",toEl:uA,newIndex:null,newDraggableIndex:null,originalEvent:A}),hA!==uA?(wA>=0&&(lA({rootEl:uA,name:"add",toEl:uA,fromEl:hA,originalEvent:A}),lA({sortable:this,name:"remove",toEl:uA,originalEvent:A}),lA({rootEl:uA,name:"sort",toEl:uA,fromEl:hA,originalEvent:A}),lA({sortable:this,name:"sort",toEl:uA,originalEvent:A})),yA&&yA.save()):wA!==BA&&wA>=0&&(lA({sortable:this,name:"update",toEl:uA,originalEvent:A}),lA({sortable:this,name:"sort",toEl:uA,originalEvent:A})),te.active&&(null!=wA&&-1!==wA||(wA=BA,CA=vA),lA({sortable:this,name:"end",toEl:uA,originalEvent:A}),this.save())))),this._nulling()},_nulling:function(){aA("nulling",this),hA=cA=uA=dA=gA=fA=pA=mA=_A=QA=kA=wA=CA=BA=vA=IA=HA=yA=bA=te.dragged=te.ghost=te.clone=te.active=null,RA.forEach((function(A){A.checked=!0})),RA.length=UA=FA=0},handleEvent:function(A){switch(A.type){case"drop":case"dragend":this._onDrop(A);break;case"dragenter":case"dragover":cA&&(this._onDragOver(A),re(A));break;case"selectstart":A.preventDefault();break}},toArray:function(){for(var A,e=[],t=this.el.children,r=0,n=t.length,i=this.options;r<n;r++)A=t[r],E(A,i.draggable,this.el,!1)&&e.push(A.getAttribute(i.dataIdAttr)||ue(A));return e},sort:function(A,e){var t={},r=this.el;this.toArray().forEach((function(A,e){var n=r.children[e];E(n,this.options.draggable,r,!1)&&(t[A]=n)}),this),e&&this.captureAnimationState(),A.forEach((function(A){t[A]&&(r.removeChild(t[A]),r.appendChild(t[A]))})),e&&this.animateAll()},save:function(){var A=this.options.store;A&&A.set&&A.set(this)},closest:function(A,e){return E(A,e||this.options.draggable,this.el,!1)},option:function(A,e){var t=this.options;if(void 0===e)return t[A];var r=iA.modifyOption(this,A,e);t[A]="undefined"!==typeof r?r:e,"group"===A&&JA(t)},destroy:function(){aA("destroy",this);var A=this.el;A[q]=null,U(A,"mousedown",this._onTapStart),U(A,"touchstart",this._onTapStart),U(A,"pointerdown",this._onTapStart),this.nativeDraggable&&(U(A,"dragover",this),U(A,"dragenter",this)),Array.prototype.forEach.call(A.querySelectorAll("[draggable]"),(function(A){A.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),MA.splice(MA.indexOf(this.el),1),this.el=A=null},_hideClone:function(){if(!mA){if(aA("hideClone",this),te.eventCanceled)return;S(fA,"display","none"),this.options.removeCloneOnHide&&fA.parentNode&&fA.parentNode.removeChild(fA),mA=!0}},_showClone:function(A){if("clone"===A.lastPutMode){if(mA){if(aA("showClone",this),te.eventCanceled)return;cA.parentNode!=hA||this.options.group.revertClone?gA?hA.insertBefore(fA,gA):hA.appendChild(fA):hA.insertBefore(fA,cA),this.options.group.revertClone&&this.animate(cA,fA),S(fA,"display",""),mA=!1}}else this._hideClone()}},VA&&Q(document,"touchmove",(function(A){(te.active||LA)&&A.cancelable&&A.preventDefault()})),te.utils={on:Q,off:U,css:S,find:L,is:function(A,e){return!!E(A,e,A,!1)},extend:j,throttle:Z,closest:E,toggleClass:H,clone:Y,index:P,nextTick:he,cancelNextTick:ge,detectDirection:WA,getChild:K},te.get=function(A){return A[q]},te.mount=function(){for(var A=arguments.length,e=new Array(A),t=0;t<A;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach((function(A){if(!A.prototype||!A.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(A));A.utils&&(te.utils=n(n({},te.utils),A.utils)),iA.mount(A)}))},te.create=function(A,e){return new te(A,e)},te.version=f;var pe,fe,me,Be,we,ve,Ce=[],be=!1;function ye(){function A(){for(var A in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===A.charAt(0)&&"function"===typeof this[A]&&(this[A]=this[A].bind(this))}return A.prototype={dragStarted:function(A){var e=A.originalEvent;this.sortable.nativeDraggable?Q(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Q(document,"pointermove",this._handleFallbackAutoScroll):e.touches?Q(document,"touchmove",this._handleFallbackAutoScroll):Q(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(A){var e=A.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},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)),Qe(),_e(),W()},nulling:function(){we=fe=pe=be=ve=me=Be=null,Ce.length=0},_handleFallbackAutoScroll:function(A){this._handleAutoScroll(A,!0)},_handleAutoScroll:function(A,e){var t=this,r=(A.touches?A.touches[0]:A).clientX,n=(A.touches?A.touches[0]:A).clientY,i=document.elementFromPoint(r,n);if(we=A,e||this.options.forceAutoScrollFallback||w||B||C){Fe(A,this.options,i,e);var o=G(i,!0);!be||ve&&r===me&&n===Be||(ve&&Qe(),ve=setInterval((function(){var i=G(document.elementFromPoint(r,n),!0);i!==o&&(o=i,_e()),Fe(A,t.options,i,e)}),10),me=r,Be=n)}else{if(!this.options.bubbleScroll||G(i,!0)===O())return void _e();Fe(A,this.options,G(i,!1),!1)}}},s(A,{pluginName:"scroll",initializeByDefault:!0})}function _e(){Ce.forEach((function(A){clearInterval(A.pid)})),Ce=[]}function Qe(){clearInterval(ve)}var Ue,Fe=Z((function(A,e,t,r){if(e.scroll){var n,i=(A.touches?A.touches[0]:A).clientX,o=(A.touches?A.touches[0]:A).clientY,s=e.scrollSensitivity,a=e.scrollSpeed,l=O(),c=!1;fe!==t&&(fe=t,_e(),pe=e.scroll,n=e.scrollFn,!0===pe&&(pe=G(t,!0)));var u=0,d=pe;do{var h=d,g=M(h),p=g.top,f=g.bottom,m=g.left,B=g.right,w=g.width,v=g.height,C=void 0,b=void 0,y=h.scrollWidth,_=h.scrollHeight,Q=S(h),U=h.scrollLeft,F=h.scrollTop;h===l?(C=w<y&&("auto"===Q.overflowX||"scroll"===Q.overflowX||"visible"===Q.overflowX),b=v<_&&("auto"===Q.overflowY||"scroll"===Q.overflowY||"visible"===Q.overflowY)):(C=w<y&&("auto"===Q.overflowX||"scroll"===Q.overflowX),b=v<_&&("auto"===Q.overflowY||"scroll"===Q.overflowY));var x=C&&(Math.abs(B-i)<=s&&U+w<y)-(Math.abs(m-i)<=s&&!!U),E=b&&(Math.abs(f-o)<=s&&F+v<_)-(Math.abs(p-o)<=s&&!!F);if(!Ce[u])for(var k=0;k<=u;k++)Ce[k]||(Ce[k]={});Ce[u].vx==x&&Ce[u].vy==E&&Ce[u].el===h||(Ce[u].el=h,Ce[u].vx=x,Ce[u].vy=E,clearInterval(Ce[u].pid),0==x&&0==E||(c=!0,Ce[u].pid=setInterval(function(){r&&0===this.layer&&te.active._onTouchMove(we);var e=Ce[this.layer].vy?Ce[this.layer].vy*a:0,t=Ce[this.layer].vx?Ce[this.layer].vx*a:0;"function"===typeof n&&"continue"!==n.call(te.dragged.parentNode[q],t,e,A,we,Ce[this.layer].el)||X(Ce[this.layer].el,t,e)}.bind({layer:u}),24))),u++}while(e.bubbleScroll&&d!==l&&(d=G(d,!1)));be=c}}),30),xe=function(A){var e=A.originalEvent,t=A.putSortable,r=A.dragEl,n=A.activeSortable,i=A.dispatchSortableEvent,o=A.hideGhostForTarget,s=A.unhideGhostForTarget;if(e){var a=t||n;o();var l=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(l.clientX,l.clientY);s(),a&&!a.el.contains(c)&&(i("spill"),this.onSpill({dragEl:r,putSortable:t}))}};function Ee(){}function ke(){}function Ie(){function A(){this.defaults={swapClass:"sortable-swap-highlight"}}return A.prototype={dragStart:function(A){var e=A.dragEl;Ue=e},dragOverValid:function(A){var e=A.completed,t=A.target,r=A.onMove,n=A.activeSortable,i=A.changed,o=A.cancel;if(n.options.swap){var s=this.sortable.el,a=this.options;if(t&&t!==s){var l=Ue;!1!==r(t)?(H(t,a.swapClass,!0),Ue=t):Ue=null,l&&l!==Ue&&H(l,a.swapClass,!1)}i(),e(!0),o()}},drop:function(A){var e=A.activeSortable,t=A.putSortable,r=A.dragEl,n=t||this.sortable,i=this.options;Ue&&H(Ue,i.swapClass,!1),Ue&&(i.swap||t&&t.options.swap)&&r!==Ue&&(n.captureAnimationState(),n!==e&&e.captureAnimationState(),He(r,Ue),n.animateAll(),n!==e&&e.animateAll())},nulling:function(){Ue=null}},s(A,{pluginName:"swap",eventProperties:function(){return{swapItem:Ue}}})}function He(A,e){var t,r,n=A.parentNode,i=e.parentNode;n&&i&&!n.isEqualNode(e)&&!i.isEqualNode(A)&&(t=P(A),r=P(e),n.isEqualNode(i)&&t<r&&r++,n.insertBefore(e,n.children[t]),i.insertBefore(A,i.children[r]))}Ee.prototype={startIndex:null,dragStart:function(A){var e=A.oldDraggableIndex;this.startIndex=e},onSpill:function(A){var e=A.dragEl,t=A.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var r=K(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),t&&t.animateAll()},drop:xe},s(Ee,{pluginName:"revertOnSpill"}),ke.prototype={onSpill:function(A){var e=A.dragEl,t=A.putSortable,r=t||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:xe},s(ke,{pluginName:"removeOnSpill"});var Se,De,Le,Oe,Me,Te=[],Ke=[],Ne=!1,Pe=!1,Re=!1;function Ve(){function A(A){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));A.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(e,t){var r="";Te.length&&De===A?Te.forEach((function(A,e){r+=(e?", ":"")+A.textContent})):r=t.textContent,e.setData("Text",r)}}}return A.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(A){var e=A.dragEl;Le=e},delayEnded:function(){this.isMultiDrag=~Te.indexOf(Le)},setupClone:function(A){var e=A.sortable,t=A.cancel;if(this.isMultiDrag){for(var r=0;r<Te.length;r++)Ke.push(Y(Te[r])),Ke[r].sortableIndex=Te[r].sortableIndex,Ke[r].draggable=!1,Ke[r].style["will-change"]="",H(Ke[r],this.options.selectedClass,!1),Te[r]===Le&&H(Ke[r],this.options.chosenClass,!1);e._hideClone(),t()}},clone:function(A){var e=A.sortable,t=A.rootEl,r=A.dispatchSortableEvent,n=A.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Te.length&&De===e&&(je(!0,t),r("clone"),n()))},showClone:function(A){var e=A.cloneNowShown,t=A.rootEl,r=A.cancel;this.isMultiDrag&&(je(!1,t),Ke.forEach((function(A){S(A,"display","")})),e(),Me=!1,r())},hideClone:function(A){var e=this,t=(A.sortable,A.cloneNowHidden),r=A.cancel;this.isMultiDrag&&(Ke.forEach((function(A){S(A,"display","none"),e.options.removeCloneOnHide&&A.parentNode&&A.parentNode.removeChild(A)})),t(),Me=!0,r())},dragStartGlobal:function(A){A.sortable;!this.isMultiDrag&&De&&De.multiDrag._deselectMultiDrag(),Te.forEach((function(A){A.sortableIndex=P(A)})),Te=Te.sort((function(A,e){return A.sortableIndex-e.sortableIndex})),Re=!0},dragStarted:function(A){var e=this,t=A.sortable;if(this.isMultiDrag){if(this.options.sort&&(t.captureAnimationState(),this.options.animation)){Te.forEach((function(A){A!==Le&&S(A,"position","absolute")}));var r=M(Le,!1,!0,!0);Te.forEach((function(A){A!==Le&&J(A,r)})),Pe=!0,Ne=!0}t.animateAll((function(){Pe=!1,Ne=!1,e.options.animation&&Te.forEach((function(A){$(A)})),e.options.sort&&ze()}))}},dragOver:function(A){var e=A.target,t=A.completed,r=A.cancel;Pe&&~Te.indexOf(e)&&(t(!1),r())},revert:function(A){var e=A.fromSortable,t=A.rootEl,r=A.sortable,n=A.dragRect;Te.length>1&&(Te.forEach((function(A){r.addAnimationState({target:A,rect:Pe?M(A):n}),$(A),A.fromRect=n,e.removeAnimationState(A)})),Pe=!1,Ge(!this.options.removeCloneOnHide,t))},dragOverCompleted:function(A){var e=A.sortable,t=A.isOwner,r=A.insertion,n=A.activeSortable,i=A.parentEl,o=A.putSortable,s=this.options;if(r){if(t&&n._hideClone(),Ne=!1,s.animation&&Te.length>1&&(Pe||!t&&!n.options.sort&&!o)){var a=M(Le,!1,!0,!0);Te.forEach((function(A){A!==Le&&(J(A,a),i.appendChild(A))})),Pe=!0}if(!t)if(Pe||ze(),Te.length>1){var l=Me;n._showClone(e),n.options.animation&&!Me&&l&&Ke.forEach((function(A){n.addAnimationState({target:A,rect:Oe}),A.fromRect=Oe,A.thisAnimationDuration=null}))}else n._showClone(e)}},dragOverAnimationCapture:function(A){var e=A.dragRect,t=A.isOwner,r=A.activeSortable;if(Te.forEach((function(A){A.thisAnimationDuration=null})),r.options.animation&&!t&&r.multiDrag.isMultiDrag){Oe=s({},e);var n=D(Le,!0);Oe.top-=n.f,Oe.left-=n.e}},dragOverAnimationComplete:function(){Pe&&(Pe=!1,ze())},drop:function(A){var e=A.originalEvent,t=A.rootEl,r=A.parentEl,n=A.sortable,i=A.dispatchSortableEvent,o=A.oldIndex,s=A.putSortable,a=s||this.sortable;if(e){var l=this.options,c=r.children;if(!Re)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),H(Le,l.selectedClass,!~Te.indexOf(Le)),~Te.indexOf(Le))Te.splice(Te.indexOf(Le),1),Se=null,oA({sortable:n,rootEl:t,name:"deselect",targetEl:Le,originalEvt:e});else{if(Te.push(Le),oA({sortable:n,rootEl:t,name:"select",targetEl:Le,originalEvt:e}),e.shiftKey&&Se&&n.el.contains(Se)){var u,d,h=P(Se),g=P(Le);if(~h&&~g&&h!==g)for(g>h?(d=h,u=g):(d=g,u=h+1);d<u;d++)~Te.indexOf(c[d])||(H(c[d],l.selectedClass,!0),Te.push(c[d]),oA({sortable:n,rootEl:t,name:"select",targetEl:c[d],originalEvt:e}))}else Se=Le;De=a}if(Re&&this.isMultiDrag){if(Pe=!1,(r[q].options.sort||r!==t)&&Te.length>1){var p=M(Le),f=P(Le,":not(."+this.options.selectedClass+")");if(!Ne&&l.animation&&(Le.thisAnimationDuration=null),a.captureAnimationState(),!Ne&&(l.animation&&(Le.fromRect=p,Te.forEach((function(A){if(A.thisAnimationDuration=null,A!==Le){var e=Pe?M(A):p;A.fromRect=e,a.addAnimationState({target:A,rect:e})}}))),ze(),Te.forEach((function(A){c[f]?r.insertBefore(A,c[f]):r.appendChild(A),f++})),o===P(Le))){var m=!1;Te.forEach((function(A){A.sortableIndex===P(A)||(m=!0)})),m&&i("update")}Te.forEach((function(A){$(A)})),a.animateAll()}De=a}(t===r||s&&"clone"!==s.lastPutMode)&&Ke.forEach((function(A){A.parentNode&&A.parentNode.removeChild(A)}))}},nullingGlobal:function(){this.isMultiDrag=Re=!1,Ke.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(A){if(("undefined"===typeof Re||!Re)&&De===this.sortable&&(!A||!E(A.target,this.options.draggable,this.sortable.el,!1))&&(!A||0===A.button))while(Te.length){var e=Te[0];H(e,this.options.selectedClass,!1),Te.shift(),oA({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:A})}},_checkKeyDown:function(A){A.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(A){A.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(A,{pluginName:"multiDrag",utils:{select:function(A){var e=A.parentNode[q];e&&e.options.multiDrag&&!~Te.indexOf(A)&&(De&&De!==e&&(De.multiDrag._deselectMultiDrag(),De=e),H(A,e.options.selectedClass,!0),Te.push(A))},deselect:function(A){var e=A.parentNode[q],t=Te.indexOf(A);e&&e.options.multiDrag&&~t&&(H(A,e.options.selectedClass,!1),Te.splice(t,1))}},eventProperties:function(){var A=this,e=[],t=[];return Te.forEach((function(r){var n;e.push({multiDragElement:r,index:r.sortableIndex}),n=Pe&&r!==Le?-1:Pe?P(r,":not(."+A.options.selectedClass+")"):P(r),t.push({multiDragElement:r,index:n})})),{items:c(Te),clones:[].concat(Ke),oldIndicies:e,newIndicies:t}},optionListeners:{multiDragKey:function(A){return A=A.toLowerCase(),"ctrl"===A?A="Control":A.length>1&&(A=A.charAt(0).toUpperCase()+A.substr(1)),A}}})}function Ge(A,e){Te.forEach((function(t,r){var n=e.children[t.sortableIndex+(A?Number(r):0)];n?e.insertBefore(t,n):e.appendChild(t)}))}function je(A,e){Ke.forEach((function(t,r){var n=e.children[t.sortableIndex+(A?Number(r):0)];n?e.insertBefore(t,n):e.appendChild(t)}))}function ze(){Te.forEach((function(A){A!==Le&&A.parentNode&&A.parentNode.removeChild(A)}))}te.mount(new ye),te.mount(ke,Ee),e["default"]=te}}]); |