1(()=>{var t={6004:(t,e,n)=>{t.exports=n(8251)},9681:(t,e,n)=>{"use strict";var r=n(5814),i=n(4060),a=n(7057),o=n(9574),s=n(3104),l=n(3258),c=n(8599),u=n(9136);t.exports=function(t){return new Promise(function(e,n){var d=t.data,h=t.headers,f=t.responseType;r.isFormData(d)&&delete h["Content-Type"];var g=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(p+":"+v)}var m=s(t.baseURL,t.url);function b(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null;i(e,n,{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g}),g=null}}if(g.open(t.method.toUpperCase(),o(m,t.params,t.paramsSerializer),!0),g.timeout=t.timeout,"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(b)},g.onabort=function(){g&&(n(u("Request aborted",t,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(u("Network Error",t,null,g)),g=null},g.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var y=(t.withCredentials||c(m))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;y&&(h[t.xsrfHeaderName]=y)}"setRequestHeader"in g&&r.forEach(h,function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete h[e]:g.setRequestHeader(e,t)}
1),r.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),f&&"json"!==f&&(g.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&g.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){g&&(g.abort(),n(t),g=null)}),d||(d=null),g.send(d)})}},8251:(t,e,n)=>{"use strict";var r=n(5814),i=n(2851),a=n(1421),o=n(8859);function s(t){var e=new a(t),n=i(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var l=s(n(7995));l.Axios=a,l.create=function(t){return s(o(l.defaults,t))},l.Cancel=n(3682),l.CancelToken=n(5),l.isCancel=n(9969),l.all=function(t){return Promise.all(t)},l.spread=n(4433),l.isAxiosError=n(4258),t.exports=l,t.exports.default=l},3682:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},5:(t,e,n)=>{"use strict";var r=n(3682);function i(t){if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){e=t});var e,n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},9969:t=>{"use strict";t.exports=function(t){return!!(t&&t.__CANCEL__)}},1421:(t,e,n)=>{"use strict";var r=n(5814),i=n(9574),a=n(5334),o=n(786),s=n(8859),l=n(1585),c=l.validators;function u(t){this.defaults=t,this.interceptors={request:new a,response:new a}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e,n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var r=[],i=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))});var a=[];if(this.interceptors.response.forEach(function(t){a.push(t.fulfilled,t.rejected)}),!i){var u=[o,void 0];for(Array.prototype.unshift.apply(u,r),u=u.concat(a),e=Promise.resolve(t);u.length;)e=e.then(u.shift(),u.shift());return e}for(var d=t;r.length;){var h=r.shift(),f=r.shift();try{d=h(d)}catch(t){f(t);break}}try{e=o(d)}catch(t){return Promise.reject(t)}for(;a.length;)e=e.then(a.shift(),a.shift());return e},u.prototype.getUri=function(t){return i((t=s(this.defaults,t)).url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}}),t.exports=u},5334:(t,e,n)=>{"use strict";var r=n(5814);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},3104:(t,e,n)=>{"use strict";var r=n(7138),i=n(6098);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},9136:(t,e,n)=>{"use strict";var r=n(7632);t.exports=function(t,e,n,i,a){return r(Error(t),e,n,i,a)}},786:(t,e,n)=>{"use strict";var r=n(5814),i=n(5435),a=n(9969),o=n(7995);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||o.adapter)(t).then(function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e},function(e){return!a(e)&&(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},7632:t=>{"use strict";
1t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},8859:(t,e,n)=>{"use strict";var r=n(5814);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=l(void 0,t[i])):n[i]=l(t[i],e[i])}r.forEach(i,function(t){r.isUndefined(e[t])||(n[t]=l(void 0,e[t]))}),r.forEach(a,c),r.forEach(o,function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=l(void 0,t[i])):n[i]=l(void 0,e[i])}),r.forEach(s,function(r){r in e?n[r]=l(t[r],e[r]):r in t&&(n[r]=l(void 0,t[r]))});var u=i.concat(a).concat(o).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter(function(t){return -1===u.indexOf(t)});return r.forEach(d,c),n}},4060:(t,e,n)=>{"use strict";var r=n(9136);t.exports=function(t,e,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},5435:(t,e,n)=>{"use strict";var r=n(5814),i=n(7995);t.exports=function(t,e,n){var a=this||i;return r.forEach(n,function(n){t=n.call(a,t,e)}),t}},7995:(t,e,n)=>{"use strict";var r=n(5814),i=n(2207),a=n(7632),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(9681):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(t=n(9681)),t}(),transformRequest:[function(t,e){return(i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw a(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){l.headers[t]={}}),r.forEach(["post","put","patch"],function(t){l.headers[t]=r.merge(o)}),t.exports=l},2851:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},9574:(t,e,n)=>{"use strict";var r=n(5814);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var a,o=[];r.forEach(e,function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),o.push(i(e)+"="+i(t))}))}),a=o.join("&")}if(a){var s=t.indexOf("#");
1-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}},6098:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},7057:(t,e,n)=>{"use strict";var r=n(5814);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,a,o){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},7138:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},4258:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},8599:(t,e,n)=>{"use strict";var r=n(5814);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},2207:(t,e,n)=>{"use strict";var r=n(5814);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},3258:(t,e,n)=>{"use strict";var r=n(5814),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,o={};return t&&r.forEach(t.split("\n"),function(t){a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e&&!(o[e]&&i.indexOf(e)>=0)&&("set-cookie"===e?o[e]=(o[e]?o[e]:[]).concat([n]):o[e]=o[e]?o[e]+", "+n:n)}),o}},4433:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1585:(t,e,n)=>{"use strict";var r=n(3628),i={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var a={},o=r.version.split(".");function s(t,e){for(var n=e?e.split("."):o,r=t.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])break}return!1}i.transitional=function(t,e,n){var i=e&&s(e);function o(t,e){return"[Axios v"+r.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,s){if(!1===t)throw Error(o(r," has been removed in "+e));return i&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,s)}},t.exports={isOlderVersion:s,assertOptions:function(t,e,n){if("object"!=typeof t)throw TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var a=r[i],o=e[a];if(o){var s=t[a],l=void 0===s||o(s,a,t);if(!0!==l)throw TypeError("option "+a+" must be "+l);continue}if(!0!==n)throw Error("Unknown option "+a)}},validators:i}},5814:(t,e,n)=>{"use strict";var r=n(2851),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function o(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function u(t,e){if(null!=t){if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!o(t)&&null!==t.constructor&&!o(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:l,isUndefined:o,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return!("undefined"!=typeof navigator&&("ReactNative"===navigator.product||"NativeScript"===navigator.product||"NS"===navigator.product))&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function t(){var e={};function n(n,r){l(e[r])&&l(n)?e[r]=t(e[r],n):l(n)?e[r]=t({},n):a(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return e},extend:function(t,e,n){return u(e,function(e,i){n&&"function"==typeof e?t[i]=r(e,n):t[i]=e}),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},6522:t=>{!function(){function e(t,e){document.addEventListener?t.addEventListener("scroll",e,!1):t.attachEvent("scroll",e)}function n(t){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(t)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function r(t,e){t.a.style.cssText="max-width:none;min-width:20px;min-height:20px;
1display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+e+";"}function i(t){var e=t.a.offsetWidth,n=e+100;return t.f.style.width=n+"px",t.c.scrollLeft=n,t.b.scrollLeft=t.b.scrollWidth+100,t.g!==e&&(t.g=e,!0)}function a(t,n){function r(){i(a)&&a.a.parentNode&&n(a.g)}var a=t;e(t.b,r),e(t.c,r),i(t)}function o(t,e){var n=e||{};this.family=t,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var s=null,l=null,c=null,u=null;function d(){return null===u&&(u=!!document.fonts),u}function h(t,e){return[t.style,t.weight,!function(){if(null===c){var t=document.createElement("div");try{t.style.font="condensed 100px sans-serif"}catch(t){}c=""!==t.style.font}return c}()?"":t.stretch,"100px",e].join(" ")}o.prototype.load=function(t,e){var i=this,o=t||"BESbswy",c=0,u=e||3e3,f=(new Date).getTime();return new Promise(function(t,e){if(d()&&!function(){if(null===l){if(d()&&/Apple/.test(window.navigator.vendor)){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);l=!!t&&603>parseInt(t[1],10)}else l=!1}return l}()){var g,p=new Promise(function(t,e){!function n(){(new Date).getTime()-f>=u?e(Error(""+u+"ms timeout exceeded")):document.fonts.load(h(i,'"'+i.family+'"'),o).then(function(e){1<=e.length?t():setTimeout(n,25)},e)}()});Promise.race([new Promise(function(t,e){c=setTimeout(function(){e(Error(""+u+"ms timeout exceeded"))},u)}),p]).then(function(){clearTimeout(c),t(i)},e)}else g=function(){function l(){var e;(e=-1!=v&&-1!=m||-1!=v&&-1!=b||-1!=m&&-1!=b)&&((e=v!=m&&v!=b&&m!=b)||(null===s&&(s=!!(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent))&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))),e=s&&(v==y&&m==y&&b==y||v==C&&m==C&&b==C||v==S&&m==S&&b==S)),e=!e),e&&(x.parentNode&&x.parentNode.removeChild(x),clearTimeout(c),t(i))}var d=new n(o),g=new n(o),p=new n(o),v=-1,m=-1,b=-1,y=-1,C=-1,S=-1,x=document.createElement("div");x.dir="ltr",r(d,h(i,"sans-serif")),r(g,h(i,"serif")),r(p,h(i,"monospace")),x.appendChild(d.a),x.appendChild(g.a),x.appendChild(p.a),document.body.appendChild(x),y=d.a.offsetWidth,C=g.a.offsetWidth,S=p.a.offsetWidth,function t(){if((new Date).getTime()-f>=u)x.parentNode&&x.parentNode.removeChild(x),e(Error(""+u+"ms timeout exceeded"));else{var n=document.hidden;(!0===n||void 0===n)&&(v=d.a.offsetWidth,m=g.a.offsetWidth,b=p.a.offsetWidth,l()),c=setTimeout(t,50)}}(),a(d,function(t){v=t,l()}),r(d,h(i,'"'+i.family+'",sans-serif')),a(g,function(t){m=t,l()}),r(g,h(i,'"'+i.family+'",serif')),a(p,function(t){b=t,l()}),r(p,h(i,'"'+i.family+'",monospace'))},document.body?g():document.addEventListener?document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t),g()}):document.attachEvent("onreadystatechange",function t(){("interactive"==document.readyState||"complete"==document.readyState)&&(document.detachEvent("onreadystatechange",t),g())})})},t.exports=o}()},9349:t=>{t.exports='<div class="gt-color-display" :class="classes"> <div :style="style" class="gt-color-display__background"> <icon v-if="control" :font="true" name="chevron"></icon> </div> <div class="gt-color-display__description" v-if="description"> {{description}} </div> </div> '},760:t=>{t.exports='<div class="gt-color-select"> <button class="gt-color-select__button" :class="classes" :style="style" :id="id" type="button" :title="label"></button> <label :title="label" class="gt-color-select__label" :for="id" v-if="label">{{label}}</label> </div> '},9950:t=>{t.exports='<div class="canvas-actions" :class="{\'gt-disabled\': isConfiguratorLocked}"> <div> <span class="gt-text--label">{{ $t(\'configurator.lastAction\') }}</span> <div class="canvas-actions__cell"> <gt-button :label="$t(\'configurator.undo\')" icon="undo" :disabled="!undoActionEnabled || isConfiguratorLocked" @click.native="canvasHistoryUndo"></gt-button> <gt-button :label="$t(\'configurator.redo\')" icon="redo" :disabled="!redoActionEnabled || isConfiguratorLocked" @click.native="canvasHistoryRedo"></gt-button> </div> </div> <div> <span class="gt-text--label">{{ $t(\'configurator.Element\') }}</span> <div class="canvas-actions__cell"> <gt-button :label="$t(\'configurator.duplicate\')" icon="duplicate" :disabled="!selectedCanvasObjectName || (selectedCanvasText && selectedCanvasText.isCounterFunctionText) || isConfiguratorLocked" @click.native="duplicateCanvasObject(selectedCanvasObject)"></gt-button> <gt-button class="panel-config-functions__btt" :label="$t(\'configurator.bringToTop\')" :disabled="!selectedCanvasObjectName && canvasObjects.length < 1 || isConfiguratorLocked" @click.native="bringToTop(selectedCanvasObject)"> <icon :font="false" src="/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/gt/toTop.svg"></icon> </gt-button> <gt-button :label="$t(\'configurator.delete\')" icon="x" :disabled="!selectedCanvasObjectName || isConfiguratorLocked" @click.native="deleteAsset"></gt-button> </div> </div> <div> <span class="gt-text--label">{{ $t(\'configurator.Workspace\') }}</span> <div class="canvas-actions__cell"> <gt-button :label="$t(\'configurator.rotate\')" :disabled="isConfiguratorLocked" @click.native="rotateCanvas"> <icon :font="false" :src="src"></icon> </gt-button> <gt-button @click.native="toggleMaskVisibility" :label="$t(\'configurator.editableArea\')" :disabled="!productData.mask && !maskId || isConfiguratorLocked" variation="red" icon="edit"></gt-button> </div> </div> </div> '},6024:t=>{t.exports='<div v-if="areSelectableAreasPresent" class="canvas-container__subcontainer inv
1isible"> <v-stage :config="collisionCanvasConfig" ref="canvasCollisionObjects"> <v-layer> <v-group> <template v-for="config in selectableAreaConfigs()"> <v-path :ref="config.name" :key="config.name" :config="{\n ...config,\n fill,\n }"></v-path> </template> </v-group> <v-group> <template v-for="canvasObject in printerImageCanvasObjects"> <v-rect :ref="`${canvasObject.config.name}-collision`" :key="`${canvasObject.config.name}-collision`" :config="{...canvasObject.config, opacity: 1, fill, globalCompositeOperation: \'destination-out\'\n }"></v-rect> </template> </v-group> </v-layer> </v-stage> <v-stage :config="collisionCanvasConfig" ref="canvasCollisionNodeMask"> <v-layer> <v-group ref="collision-mask"> <template v-for="config in selectableAreaConfigs()"> <v-path :ref="config.name" :key="config.name" :config="{\n ...config,\n fill\n }"></v-path> </template> </v-group> <v-group> <template v-for="canvasObject in previewCanvasObjects"> <v-rect :ref="`${canvasObject.config.name}-collision`" :key="`${canvasObject.config.name}-collision`" :config="{...canvasObject.config, opacity: 1, fill: \'transparent\', globalCompositeOperation: \'destination-over\'\n }"></v-rect> </template> </v-group> </v-layer> </v-stage> <v-stage :config="collisionCanvasConfig" ref="canvasCollisionNodeAll"> <v-layer> <v-group> <template v-for="config in selectableAreaConfigs()"> <v-path :ref="config.name" :key="config.name" :config="{\n ...config,\n fill,\n }"></v-path> </template> </v-group> <v-group> <template v-for="canvasObject in previewCanvasObjects"> <v-rect :ref="`${canvasObject.config.name}-collision`" :key="`${canvasObject.config.name}-collision`" :config="{...canvasObject.config, opacity: 1, fill, globalCompositeOperation: \'destination-over\'\n }"></v-rect> </template> </v-group> </v-layer> </v-stage> </div> '},5782:t=>{t.exports='<div class="canvas-container" :style="style"> <div v-if="productImage"> <canvas-preview></canvas-preview> <canvas-collision></canvas-collision> </div> </div> '},2154:t=>{t.exports='<div class="canvas-container__subcontainer" :class="{\'gt-disabled\': isConfiguratorLocked}"> <v-stage :config="canvasConfig" @mousedown="handleStageMouseDown" @touchstart="handleStageMouseDown" @click="(event) => checkIfSelectedAreaShouldBeActive(event, true)" ref="canvasPreviewNode"> <v-layer v-if="areSelectableAreasPresent"> <v-image :config="coverConfig"></v-image> </v-layer> <v-layer> <template v-for="config in selectableAreaConfigs()"> <v-path :ref="config.name" :key="config.name" :config="{\n ...config,\n ...selectableAreaDefaultConfig,\n }"></v-path> </template> <v-image :config="canvasCoverImageConfig"></v-image> <v-group> <template v-for="config in selectableAreaConfigs()"> <v-path :ref=\'config.name+"--outline"\' :key=\'config.name+"--outline"\' :config="{\n ...config,\n ...selectableAreaConfig,\n }"></v-path> </template> <template v-for="canvasObject in previewCanvasObjects"> <v-image v-if="canvasObject.type === CANVAS_OBJECT_TYPE_IMAGE" :key="canvasObject.config.name" :config="canvasObject.config" :ref="canvasObject.config.name" @transformend="handleTransformEnd" @transform="handleTransform" @dragend="handleTransformEnd" @dragmove="handleTransform" @touchmove="handleTransform" @dblclick="handleDoubleClick" @dbltap="handleDoubleClick"></v-image> <v-text v-if="canvasObject.type === CANVAS_OBJECT_TYPE_TEXT" :key="canvasObject.config.name" :config="canvasObject.config" :ref="canvasObject.config.name" @transformend="handleTransformEnd" @transform="handleTransform" @dragend="handleTransformEnd" @dragmove="handleTransform" @touchmove="handleTransform" @dblclick="handleDoubleClick" @dbltap="handleDoubleClick"></v-text> </template> </v-group> <v-transformer :config="transformerConfig" ref="transformer"/> </v-layer>
1 </v-stage> <canvas-textarea :extraStyling="editableTextAreaAdditionalStyle" v-if="!!editableTextName"></canvas-textarea> </div> '},6300:t=>{t.exports='<textarea @keydown="handleKeyDown" @input="storeTextareaHeight" class="canvas-textarea" v-model="text" :style="style" @blur="removeActiveTextarea"></textarea> '},4861:t=>{t.exports='<div class="configurator-container" v-if="showConfigurator"> <canvas-loader v-if="isFetchLoading || isUpdateLoading"></canvas-loader> <gt-button class="modal-close close val-close-modal" @click.native="releaseProduct"> <icon src="/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/close-big.svg"></icon> </gt-button> <div class="configurator-container__section section-info"> <panel-info></panel-info> <panel-individual v-if="!isMobile"></panel-individual> <panel-add v-if="isDesktop"></panel-add> </div> <div class="configurator-container__section section-main"> <canvas-container ref="canvas"></canvas-container> <canvas-actions></canvas-actions> </div> <div class="configurator-container__section section-config"> <panel-config-container></panel-config-container> <panel-individual v-if="isMobile"></panel-individual> <panel-confirm v-if="isDesktop"></panel-confirm> </div> <div v-if="!isDesktop" class="configurator-container__section section-fixed-buttons"> <panel-add></panel-add> <panel-confirm></panel-confirm> </div> <div class="configurator-container__section section-slidable"> <transition name="slidable-panel"> <panel-slidable-container v-if="slidablePanel.activeSlidablePanel"></panel-slidable-container> </transition> </div> </div> '},4845:t=>{t.exports='<div class="panel-add" :class="{\'gt-disabled\': isConfiguratorLocked}"> <div v-if="isDesktop"> <gt-action-button v-if="isConfiguratorLabel" :label="$t(\'configurator.background\')" :dynamicColor="selectedBackground.value" @click="toggleSlidablePanel({slidablePanel: panels.BACKGROUND})" :disabled="isConfiguratorLocked"></gt-action-button> <template v-if="showUniqueSymbolsButton"> <gt-action-button :label="$t(\'configurator.jungUnique\')" @click="toggleSlidablePanel({slidablePanel: panels.PREMIUM_SYMBOLS})" :disabled="isConfiguratorLocked"></gt-action-button> </template> <gt-action-button :label="$t(\'configurator.jungSymbol\')" @click="toggleSlidablePanel({slidablePanel: panels.SYMBOLS})" :disabled="isConfiguratorLocked"></gt-action-button> <gt-action-button :label="$t(\'configurator.textField\')" @click="addCanvasTextHandler" :disabled="isConfiguratorLocked"></gt-action-button> <gt-action-button :label="$t(\'configurator.counterFunction\')" @click="addCounterFunction" :disabled="!!counterFunctionObject || isConfiguratorLocked"></gt-action-button> <gt-action-button v-if="!productConfigData.isGuestUser" :label="$t(\'configurator.ownPicture\')" @click="toggleSlidablePanel({slidablePanel: panels.IMAGES})" :disabled="isConfiguratorLocked"></gt-action-button> </div> <div v-else> <gt-action-button :has-slot="true"> <template v-if="showUniqueSymbolsButton"> <span class="gt-action-button-option" @click="toggleSlidablePanel({slidablePanel: panels.PREMIUM_SYMBOLS})" v-t="\'configurator.jungUnique\'"> </span> </template> <span class="gt-action-button-option" @click="toggleSlidablePanel({slidablePanel: panels.SYMBOLS})" v-t="\'configurator.jungSymbol\'"> </span> <span class="gt-action-button-option" @click="addCanvasTextHandler" v-t="\'configurator.textField\'"> </span> <span class="gt-action-button-option" @click="addCounterFunction" v-t="\'configurator.counterFunction\'"> </span> <span v-if="!productConfigData.isGuestUser" class="gt-action-button-option mr-4" @click="toggleSlidablePanel({slidablePanel: panels.IMAGES})" v-t="\'configurator.ownPicture\'"> </span> </gt-action-button> </div> </div> '},8117:t=>{t.exports='<div class="panel-config-container"> <panel-config-dashboard v-if="selectedCanvasObject"></panel-config-dashboard> <panel-config-transform v-if="selectedCanvasObject"></panel-config-transform> <panel-config-typography v-if="isDesktop && selectedCanvasObject"> <font-styles v-if="isDesktop"></font-styles> </panel-config-typography> <color-display v-if="showCheck" @click.native="showColorDisplayExtra ? toggleSlidablePanel({slidablePanel: colorPanel}) : \'\'" :color="selectedColor.value" class="gt-color-display--mt-30" :control="showColorDisplayExtra"> </color-display> <panel-config-functions></panel-config-functions> <panel-config-image v-if="showTool"/> <counter-function mobile v-if="isDesktop && counterFunctionObject && selectedCanvasObject && selectedCanvasObject.isCounterFunctionText"></counter-function> </div> '},2309:t=>{t.exports='<div class="panel-config-dashboard" v-if="selectedCanvasObject">
1 <form-input :addClass="\'no-validate\'" label="X, mm" type="number" step="0.1" :min="minValueX" :max="maxValueX" :no-validate="true" :preventSubmit="true" v-model.number="left"></form-input> <form-input :addClass="\'no-validate\'" label="Y, mm" type="number" step="0.1" :min="minValueY" :max="maxValueY" :no-validate="true" :preventSubmit="true" v-model.number="top"></form-input> <form-input :addClass="\'no-validate\'" :label="$t(\'configurator.height\') + \', mm\'" type="number" step="1" :preventSubmit="true" :no-validate="true" v-model.number="height" :disabled="!!selectedCanvasText"></form-input> <form-input :addClass="\'no-validate\'" :label="$t(\'configurator.width\') + \', mm\'" type="number" step="1" :preventSubmit="true" :no-validate="true" v-model.number="width"></form-input> <form-input :addClass="\'no-validate\'" :label="$t(\'configurator.scale\')" type="number" :min="0.1" :max="20" step="0.1" :preventSubmit="true" :no-validate="true" :disabled="selectedCanvasObject.type === CANVAS_OBJECT_TYPE_TEXT" v-model.number="scale" @blur="handleScaleBlur"></form-input> <form-input :label="$t(\'configurator.angle\')" type="number" step="1" :preventSubmit="true" :value="selectedCanvasObject.config.rotation.toFixed()" @input="(val) => handleParamChange(+val, \'rotation\')"></form-input> </div> '},5353:t=>{t.exports='<div class="panel-config-functions"> <gt-button v-if="!isDesktop && selectedCanvasText" @click.native="toggleSlidablePanel({\'status\': true, \'slidablePanel\': SLIDABLE_PANELS.TEXT})" :hideLabelMobile="false" :label="$t(\'configurator.textProperties\')" icon="edit" variation="inline-reverse"></gt-button> <gt-button v-if="counterFunctionObject && isMobile" @click.native="toggleSlidablePanel({\'status\': true, \'slidablePanel\': SLIDABLE_PANELS.COUNTER})" :hideLabelMobile="false" :label="$t(\'configurator.counterFunction\')" icon="edit" variation="inline-reverse"></gt-button> </div> '},7220:t=>{t.exports='<div v-if="showPanel" class="panel-confirm-image"> <gt-button :label="$t(\'configurator.imageAdjustment\')" variation="inline-reverse" :hide-label-mobile="false" @click.native="toggleSlidablePanel({slidablePanel: imageAdjustmentPanel})" class="gt-text gt-text--subtitle"> <icon :font="false" src="/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/gt/cog.svg"></icon> </gt-button> </div> '},9050:t=>{t.exports='<div class="panel-config-transform"> <node-alignment></node-alignment> <node-position></node-position> <canvas-text-aligner v-if="isDesktop"></canvas-text-aligner> </div> '},8053:t=>{t.exports='<div class="panel-config-typography" v-if="selectedCanvasText"> <form-select :value="selectedCanvasText.config.fontFamily" :options="fontFamilies" @input="handleFontSelect"></form-select> <form-select :value="selectedCanvasText.config.fontSize" :options="fontSizeOptions" @input
1="handleFontSizeSelect"></form-select> <color-display @click.native="showCheck ? toggleSlidablePanel({slidablePanel: colorPanel}) : \'\'" :color="selectedColor.value" :control="showCheck"> </color-display> <slot></slot> </div> '},4591:t=>{t.exports='<div class="panel-confirm"> <gt-button :label="$t(\'configurator.cancel\')" :hide-label-mobile="false" variation="square" color="secondary" @click.native="releaseProduct"></gt-button> <gt-button :label="$t(\'configurator.save\')" variation="square" color="primary" :hide-label-mobile="false" :disabled="isUpdateLoading || isConfigurationEmpty || isCounterFunctionInvalid || isConfiguratorLocked" @click.native="updateProduct(productConfigData.id)"></gt-button> </div> '},334:t=>{t.exports='<div class="panel-individual" :class="{\'gt-disabled\': isLocked}"> <form-input :label="$t(\'configurator.individualDesignation\')" :preventSubmit="true" v-model="usage" :disabled="isLocked"></form-input> <form-input type="number" :min="-100" :max="200" :interval="1" :label="$t(\'configurator.floor\')" :preventSubmit="true" v-model="floor" :disabled="isLocked"></form-input> <form-select class="panel-individual--align" :value="room" :options="rooms" :disabled="isLocked" @input="handleRoomSelect"></form-select> </div> '},6181:t=>{t.exports='<div class="panel-info"> <h1 class="gt-text gt-text--title"> {{ product.productNumber }} </h1> <h2 class="gt-text gt-text--subtitle"> {{ product.name }} </h2> <form-select v-model="selectedType" :class="{\n \'gt-select--unselected\': !selectedType && configuratorTypes.length > 1\n }" :options="configuratorTypes" :disabled="isLocked"></form-select> </div> '},8687:t=>{t.exports='<div class="panel-slidable-colors panel-content-wrapper"> <div class="slideout-container"> <div class="colors-panel"> <div class="colors-panel-left"> <color-display v-if="defaultBackground" :color="defaultBackground.value" light-description :border="true" :description="$t(\'configurator.defaultBackgroundDescription\')" @click.native="handleBackgroundSelect(defaultBackground)" clickable></color-display> <color-display v-if="selectedBackground" :color="selectedBackground.value" :border="selectedBackground.value === \'transparent\'" :description="$t(\'configurator.selectedColor\')+selectedBackground.label"> </color-display> </div> <div class="colors-panel-right"> <div class="groups-wrapper"> <div v-if="digitalColors.length > 0" class="group-extra"> <div class="groups"> <div class="gt-text gt-text--subtitle" v-t="\'configurator.ral\'"></div> <div class="group color-group"> <color-selector @click.native="handleBackgroundSelect(color)" v-for="color in digitalColors" :key="color.value" :color="color.value" :label="color.label"></color-selector> </div> </div> </div> <div v-if="labelBackgroundColors.length > 0" class="group-extra"> <div class="groups"> <div class="gt-text gt-text--subtitle" v-t="\'configurator.greyScale\'"></div> <div class="group color-group"> <color-selector @click.native="handleBackgroundSelect(color)" v-for="color in labelBackgroundColors" :key="color.value" :color="color.value" :label="color.label"></color-selector> </div> </div> </div> </div> </div> </div> </div> </div> '},388:t=>{t.exports='<div class="panel-slidable-colors panel-content-wrapper"> <div class="slideout-container"> <div class="colors-panel"> <div class="colors-panel-left"> <color-display v-if="defaultColor" :color="defaultColor.value" light-description :description="$t(\'configurator.defaultColorDescription\')" @click.native="handleColorSelect(defaultColor)" clickable></color-display> <color-display v-if="selectedColor" :color="selectedColor.value" :description="$t(\'configurator.selectedColor\')+selectedColor.label"> </color-display> </div> <div class="colors-panel-right"> <div class="groups-wrapper"> <div v-if="digitalColors.length > 0" class="group-extra"> <div class="groups"> <div class="gt-text gt-text--subtitle" v-t="\'configurator.ral\'"></div> <div class="group color-group"> <color-selector @click.native="handleColorSelect(color)" v-for="color in digitalColors" :key="color.value" :color="color.value" :label="color.label"></color-selector> </div> </div> </div> </div> </div> </div> </div> </div> '},3653:t=>{t.exports='<div class="panel-slidable-container" :class="{\'panel-is-open\': slidablePanel.activeSlidablePanel}"> <gt-button @click.native="toggleSlidablePanel({\'status\': false})"> <icon src="/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/close-big.svg"></icon> </gt-button> <keep-alive> <component :is="activePanel"></component> </keep-alive> </div> '},8697:t=>{t.exports='<div class="panel-slidable-counter panel-content-wrapper"> <counter-function></counter-function> </div> '},1491:t=>{t.exports='<div class="filter-row"> <form-checkbox :name="label" :disabled="isFilterDisabled(filterKey)" @input
1="toggleImageFilter({filterKey, isCustomFilter})" :checked="checked"> <label :for="label">{{ label }}</label> </form-checkbox> <div class="image-adjustment-sliders" v-if="(settings && checked)" v-for="(setting, key) in settings" :key="key"> <div class="image-adjustment-slider"> <span v-if="setting.label"> {{ setting.label }}: </span> <vue-slider :min="setting.min" :max="setting.max" :interval="setting.interval" :value="settingValues[key]" @change="value => updateFilterSettingValue({value, key})"></vue-slider> </div> </div> </div> '},458:t=>{t.exports='<div class="panel-slidable-image-adjust panel-content-wrapper"> <div class="panel-slidable-image-adjust__content"> <div class="gt-text gt-text--subtitle" v-t="\'configurator.imageAdjustment\'"></div> <div class="panel-image__slider"> <div class="image-adjustment-filters"> <slidable-panel-filter v-for="(config, filterKey) in filtersByKey" :key="filterKey" v-if="enabledFilters.includes(filterKey)" :label="config.label" :settings="config.settings" :filter-key="filterKey" :is-custom-filter="config.isCustomFilter" :setting-values="settingValuesByFilterKey[filterKey]"> </slidable-panel-filter> </div> <slidable-panel-preview-image></slidable-panel-preview-image> </div> <div class="panel-image__buttons"> <gt-button :hideLabelMobile="false" @click.native="resetFilters" variation="inline" :label="$t(\'configurator.reset\')"></gt-button> </div> </div> </div> '},1577:t=>{t.exports='<div class="image-adjustment-canvas"> <v-stage ref="imageAdjustmentStage" :config="previewCanvasConfig"> <v-layer ref="adjustmentLayer"> <v-group> <v-image ref="adjustmentImagePreview" :config="previewImageConfig"></v-image> </v-group> </v-layer> </v-stage> </div> '},9410:t=>{t.exports='<div class="image-item"> <div class="picture-wrap"> <picture @click="onClick(image)"> <source :srcset="`${getThumbnail(image, sizes.SMALL)} 1x, ${getThumbnail(image, sizes.MEDIUM)} 2x`" media="(min-width: 320px)"> <img width="112px" height="112px" loading="lazy" :src="getThumbnail(image, sizes.LARGE)"> </picture> </div> <div class="picture-data"> <div class="picture-data-filename" v-if="image.fileName"> {{ image.fileName }} </div> <div v-if="image.createdAt"> {{ pictureDataDate }} </div> </div> <gt-button v-if="onDelete" @click.native="onDelete(image.id)" :label="$t(\'configurator.remove\')" icon="x" :hideLabelMobile="false" size="small" variation="inline"></gt-button> </div> '},8456:t=>{t.exports='<div class="panel-slidable-images panel-content-wrapper"> <panel-add v-if="isDesktop"></panel-add> <div class="slideout-container" ref="container"> <div class="groups-wrapper images-panel"> <template v-if="!this.productConfigData.isGuestUser"> <div class="groups"> <div class="d-flex justify-content-between"> <div class="gt-text gt-text--subtitle" v-t="\'configurator.loadedImages\'"></div> <form-select :options="sortOptions" v-model="sortOption"> </form-select> </div> <div class="images-group" v-if="uploadedImages.length"> <image-container v-for="image in sortedImages" :key="image.id" :image="image" :on-click="handleAddImage" :on-delete="deleteImage"></image-container> </div> <div v-else v-t="\'configurator.noImagesFound\'"></div> </div> </template> <canvas-loader v-if="isImagesLoading || isImageUploadLoading || isImageDeleteLoading"></canvas-loader> </div> <div v-if="!this.productConfigData.isGuestUser" class="images-upload"> <div class="gt-text gt-text--subtitle" v-t="\'configurator.loadYourOwnPicture\'"></div> <div class="images-upload-wrap"> <div class="images-upload-left"> <form-checkbox name="consent" v-model="consentChecked" :checked="consentChecked"> <label for="consent">{{ $t("configurator.IHaveFullRights") }} <a href="#">{{ $t("configurator.pleaseCheckLegalText") }}</a></label> </form-checkbox> </div> <div class="images-upload-right d-block"> <form-input id="consent" variation="simple" :multiple="true" type="file" @input="handleImageUpload" :restrictedFormats="\'image/jpg, image/jpeg, image/png, image/bmp, image/svg+xml\'" :disabled="!consentChecked"> {{ $t("configurator.chooseAFile") }} </form-input> <div class="pt-3 images-upload-presets"> <p class="m-0 pb-1 text-danger">{{ $t("configurator.allowedFileTypesMessage") }}</p> <p class="m-0 pb-1 text-danger">{{ $t("configurator.cmykModeMessage") }}</p> <p class="m-0 pb-1 text-danger">{{ $t("configurator.maxImageSizeMessage") }}</p> <p class="m-0 pb-1 text-danger">{{ $t("configurator.maxDataMessage") }}</p> <p class="m-0 pb-1 text-danger">{{ $t("configurator.periodLimitMessage") }}</p> </div> </div> </div> </div> </div> </div> '},6343:t=>{t.exports='<div class="panel-slidable-labels panel-content-wrapper"> <div class="panel-slidable-labels__content"> <div class="gt-text gt-text--subtitle" v-t="\'configurator.selectMask\'"></div> <div class="slideout-container" ref="container"> <div class="mask-images"> <div @click="handleMaskSelect(svg)" class="mask-images__item" :class="{ \'mask-images__item--active\': svg.key === productData.maskId }" v-for="svg in maskImages" :key="svg.key"> <img :src="svg.svgAsDataUrl" alt=""/> </div> </div> </div> </div> </div> '},3287:t=>{t.exports='<div class="panel-slidable-symbols panel-content-wrapper"> <canvas-loader v-if="displayLoader"></canvas-loader> <panel-add v-if="isDesktop"></panel-add> <div class="slideout-container"> <div class="slideout-container__symbol-selection"> <form-select :selectText="$t(\'configurator.All\')" :enablePlaceholderSelection="true" v-model="selectedCategory" :options="categoryOptions"> </form-select> </div> <div class="groups-wrapper symbols-panel"> <div v-show="!selectedCategory || selectedCategory === key" v-for="(category, key, index) in categories" :key="key" class="groups"> <div class="gt-text gt-text--subtitle">{{ categoryOptions[index].title }}</div> <keep-alive> <div class="group"> <icon v-for="icon in category" :key="icon.index" :src="icon.value" :font="false" @click.native="handleAddSymbol(icon.value)"> </icon> </div> </keep-alive> </div> </div> </div> </div> '},3839:t=>{t.exports='<div class="panel-slidable-symbols panel-content-wrapper"> <canvas-loader v-if="displayLoader"></canvas-loader> <panel-add v-if="isDesktop"></panel-add> <div class="slideout-container"> <div class="slideout-container__symbol-selection"> <form-select v-model="selectedLibrary" :options="filteredLibraries" @input
1="handleLibraryChange"> </form-select> <form-select :selectText="$t(\'configurator.All\')" :enablePlaceholderSelection="true" v-model="selectedCategory" :options="categoryOptions"> </form-select> </div> <div class="groups-wrapper symbols-panel"> <div v-show="!selectedCategory || selectedCategory === key" v-for="(category, key, index) in categories" :key="key" class="groups"> <div class="gt-text gt-text--subtitle">{{ categoryOptions[index].title }}</div> <keep-alive> <div class="group"> <icon v-for="icon in category" :key="icon.index" :src="icon.value" :font="false" @click.native="handleAddSymbol(icon.value)"> </icon> </div> </keep-alive> </div> </div> </div> </div> '},3261:t=>{t.exports='<div class="panel-slidable-text panel-content-wrapper"> <div class="gt-text gt-text--subtitle" v-t="\'configurator.textProperties\'"></div> <panel-config-typography> <canvas-text-aligner></canvas-text-aligner> <font-styles></font-styles> </panel-config-typography> </div> '},949:t=>{t.exports='<div class="counter-function" :class="{\'counter-function--desktop\': mobile}"> <div v-if="!mobile" class="gt-text gt-text--subtitle" v-t="\'configurator.counterFunction\'"></div> <div class="counter-inputs"> <div class="counter-inputs-wrapper"> <form-input :label="$t(\'configurator.prefix\')" :preventSubmit="true" v-model="counterFunctionData.prefix"></form-input> <form-input maxlength="5" :label="$t(\'configurator.format\')" @change="handleFormatChange" :preventSubmit="true" v-model="format"></form-input> <form-input :label="$t(\'configurator.suffix\')" v-model="counterFunctionData.suffix" :preventSubmit="true"></form-input> <div class="counter-number-inputs"> <form-input :min="1" type="number" :label="$t(\'configurator.start\')" v-model.number="counterFunctionData.start" :disabled="counterFunctionData.start >= stop" :preventSubmit="true"></form-input> <form-input :min="1" type="number" :label="$t(\'configurator.step\')" v-model.number="counterFunctionData.step" :preventSubmit="true"></form-input> <form-input :min="1" type="number" :label="$t(\'configurator.stop\')" :max="maxStopNumber" v-model.number="stop" :preventSubmit="true"></form-input> </div> </div> <div v-if="quantity > 0" class="counter-function-number"> {{ $t("configurator.number") }} {{ quantity }} </div> <div v-else class="counter-text-block gt-text gt-text--subtitle gt-text--normal text-danger"> {{ $t("configurator.invalid") }} </div> </div> <div v-if="!mobile" class="counter-label-block"> {{ formattedCounterString }} </div> <div class="counter-text-block gt-text gt-text--subtitle gt-text--normal"> {{ $t("configurator.counterFunctionText") }} </div> </div> '},309:t=>{t.exports='<div class="gt-checkbox gt-form-item"> <input :checked="checked" :disabled="disabled" :required="required" :id="id ? id : name" :name="name" :value="value" @input="$emit(\'input\', $event.target.checked)" class="gt-checkbox__field" type="checkbox"> <span class="gt-checkbox__background"></span> <span class="gt-checkbox__check"></span> <slot></slot> </div> '},3831:t=>{t.exports='<div class="gt-input form-group" :class="[variationClass, { \'is-completed\': isActive || value && value !== \'\' }]"> <label class="form-label" v-if="label"> {{ label }} </label> <form :novalidate="noValidate" @keydown.enter="preventSubmit ? $event.preventDefault() : null"> <input :class="\'form-control \' + addClass" :tabindex="disabled ? -1 : 0" :type="type" :value="value" :required="required" :disabled="disabled" :placeholder="placeholder" :min="min" :max="max" :maxlength="maxlength" :step="step" :multiple="multiple" :accept="restrictedFormats" @focus="handleFocus" @blur="handleBlur" @input="handleInput" @keyup="e => $emit(\'keyup\', e)" @keydown="e => $emit(\'keydown\', e)" @keypress="e => $emit(\'keypress\', e)"/> </form> <div class="gt-input__ripple"></div> <div v-if="type ===\'file\'" class="gt-input__background"> <span><slot></slot></span> </div> </div> '},7634:t=>{t.exports='<div class="gt-radio gt-form-item"> <input class="gt-radio__field" type="radio" v-model="radioValue" :disabled="disabled" :value="initialValue" :required="required" :id="id ? id : n
1ame" :name="name"> <span class="gt-radio__background"></span> <span class="gt-radio__check"></span> <slot></slot> </div> '},8817:t=>{t.exports='<div :class="[variation ? \'gt-select--\' + variation : \'\', {\'gt-disabled\': disabled}]" class="gt-select form-group is-completed"> <select :title="selectedLabel" class="form-control gt-select__select" :value="value" @change="$emit(\'input\', $event.target.value)" :disabled="disabled" :tabindex="disabled ? -1 : 0"> <option v-for="option in options" :value="option.value" :key="option.value" :selected="option.value === value"> {{ option.title }} </option> </select> <span class="gt-select__icon icon icon-arrow-down"> <icon v-if="showCaret" name="chevron"></icon> </span> <div class="gt-select__background" v-if="!disabled"> <span v-if="selectedLabel === undefined || selectedLabel === \'\'">{{ $t(\'configurator.selectRoomOption\') }}</span> <span v-else>{{selectedLabel}}</span> </div> </div> '},6655:t=>{t.exports='<div class="gt-input form-group" :class="{ \'is-completed\': isActive || value && value !== \'\' }"> <label class="form-label" v-if="label"> {{ label }} </label> <textarea class="form-control" :value="value" :required="required" :rows="rows" :disabled="disabled" :placeholder="placeholder" :minlength="minlength" :maxlength="maxlength" :resize="resize" :style="{textAlign: textAlign}" @input="$emit(\'input\', $event.target.value)"/> </div> '},5482:t=>{t.exports='<div class="gt-node-alignment"> <div class="gt-node-alignment__axis" v-for="axis in axes" :key="axis" :class="{\'gt-node-alignment__axis--active\': transformOrigin === axis}" @click="selectTransformOrigin(axis)"></div> <div class="gt-node-alignment__axis-border"></div> <div class="gt-node-alignment__label" v-t="\'configurator.alignment\'"></div> </div> '},6757:t=>{t.exports='<div class="gt-node-position"> <div class="gt-node-position__wrap" :class="`gt-node-position__wrap--rotation-r${canvasRotationAngle}`"> <button type="button" class="gt-node-position__button gt-node-position__button--top" :disabled="positioningButtonsState.topButtonEnabled" @click="changePosition({\n row: activeTransformIndex.row - 1,\n column: activeTransformIndex.column,\n }, MATRIX_ROW)"></button> <button type="button" class="gt-node-position__button gt-node-position__button--left" :disabled="positioningButtonsState.leftButtonEnabled" @click="changePosition({\n row: activeTransformIndex.row,\n column: activeTransformIndex.column - 1,\n }, MATRIX_COLUMN)"></button> <button type="button" class="gt-node-position__button gt-node-position__button--center" @click="changePosition(MATRIX_CENTER.value, MATRIX_CENTER.name)"></button> <button type="button" class="gt-node-position__button gt-node-position__button--right" :disabled="positioningButtonsState.rightButtonEnabled" @click="changePosition({\n row: activeTransformIndex.row,\n column: activeTransformIndex.column + 1,\n }, MATRIX_COLUMN)"></button> <button type="button" class="gt-node-position__button gt-node-position__button--bottom" :disabled="positioningButtonsState.bottomButtonEnabled" @click="changePosition({\n row: activeTransformIndex.row + 1,\n column: activeTransformIndex.column,\n }, MATRIX_ROW)"></button> </div> <div class="gt-node-position__label" v-t="\'configurator.position\'"></div> </div> '},7118:t=>{t.exports='<span @click="$emit(\'click\')" class="gt-action-button-option" :class="classes">{{ label}}</span> '},6763:t=>{t.exports='<div class="gt-action-button" :class="[classes]" @click="$emit(\'click\')"> <gt-button variation="circle" icon="plus" :color="color" :dynamic-colors="dynamicColor" :disabled="disabled"></gt-button> <span class="gt-action-button__label" v-if="label">{{label}}</span> <div v-if="hasSlot" class="gt-action-button__slot"> <div class="gt-action-button__slot__wrapper"> <slot></slot> </div> </div> </div> '},5520:t=>{t.exports='<button class="gt-button" :tabindex="disabled ? -1 : 0" :title="label" :class="classes" :disabled="disabled" :id="id ? id : n
1ame" :name="name" :type="type" :style="style"> <slot> <icon v-if="icon" :font="font" :multipath="multiPath" :name="icon"></icon> </slot> <span v-if="label && variation !== \'circle\'" class="gt-button__label">{{ label }}</span> </button> '},8491:t=>{t.exports='<div class="canvas-loader" :class="size ? \'canvas-loader--\'+size : \'\'"> <div class="canvas-loader__indicator"> <div></div> <div></div> <div></div> <div></div> </div> </div> '},3996:t=>{t.exports='<div class="gt-text-aligner" v-if="selectedCanvasText"> <button type="button" :title="$t(\'configurator.left\')" class="gt-button gt-button--large gt-button--column gt-button--hide-label-mobile gt-button--toggleable" :class="{active: selectedCanvasText.config.align === \'left\'}" @click="handleTextAlignment(\'left\')"> <i class="gt-icon gt-icon-left-align"></i> </button> <button type="button" :title="$t(\'configurator.center\')" class="gt-button gt-button--large gt-button--column gt-button--hide-label-mobile gt-button--toggleable" :class="{active: selectedCanvasText.config.align === \'center\'}" @click="handleTextAlignment(\'center\')"> <i class="gt-icon gt-icon-center"></i> </button> <button type="button" :title="$t(\'configurator.right\')" class="gt-button gt-button--large gt-button--column gt-button--hide-label-mobile gt-button--toggleable" :class="{active: selectedCanvasText.config.align === \'right\'}" @click="handleTextAlignment(\'right\')"> <i class="gt-icon gt-icon-right-align"></i> </button> </div> '},6111:t=>{t.exports='<div class="font-styles" v-if="selectedCanvasText"> <gt-button :class="{ \'active\' : containsBold}" @click.native="toggleStyle(FONT_STYLES.BOLD)" variation="fontStyle"> <icon :font="false" src="/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/gt/bold-solid.svg"></icon> </gt-button> <gt-button :class="{ \'active\' : containsItalic}" @click.native="toggleStyle(FONT_STYLES.ITALIC)" variation="fontStyle"> <icon :font="false" src="/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/gt/italic-solid.svg"></icon> </gt-button> </div> '},6200:t=>{t.exports='<i v-if="font && !src" class="gt-icon" :class="name ? `gt-icon-${name}` : \'\'"> <template v-if="multipath"> <span class="path1"></span> <span class="path2"></span> </template> </i> <i class="gt-icon" v-else> <img loading="lazy" v-if="path" :src="path"/> </i> '},173:function(t,e,n){var r;t=n.nmd(t),(function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=1/0,c=0/0,u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],d="[object Arguments]",h="[object Array]",f="[object Boolean]",g="[object Date]",p="[object Error]",v="[object Function]",m="[object GeneratorFunction]",b="[object Map]",y="[object Number]",C="[object Object]",S="[object Promise]",x="[object RegExp]",w="[object Set]",T="[object String]",A="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",O="[object DataView]",P="[object Float32Array]",L="[object Float64Array]",I="[object Int8Array]",D="[object Int16Array]",R="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",j="[object Uint16Array]",F="[object Uint32Array]",B=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,U=RegExp(H.source),W=RegExp(z.source),V=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Z.source),tt=/^\s+/,te=/\s/,tn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tr=/\{\n\/\* \[wrapped with (.+)\] \*/,ti=/,? & /,ta=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,to=/[()=,{}\[\]\/\s]/,ts=/\\(\\)?/g,tl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tc=/\w*$/,tu=/^[-+]0x[0-9a-f]+$/i,td=/^0b[01]+$/i,th=/^\[object .+?Constructor\]$/,tf=/^0o[0-7]+$/i,tg=/^(?:0|[1-9]\d*)$/,tp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 7,566 bytes, line 1
17f]/g,tv=/($^)/,tm=/['\n\r\u2028\u2029\\]/g,t_="\ud800-\udfff",tb="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ty="\\u2700-\\u27bf",tC="a-z\\xdf-\\xf6\\xf8-\\xff",tS="A-Z\\xc0-\\xd6\\xd8-\\xde",tx="\\ufe0e\\ufe0f",tw="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tT="['â]",tA="["+tw+"]",tk="["+tb+"]",tE="["+tC+"]",tO="[^"+t_+tw+"\\d+"+ty+tC+tS+"]",tP="\ud83c[\udffb-\udfff]",tL="[^"+t_+"]",tI="(?:\ud83c[\udde6-\uddff]){2}",tD="[\ud800-\udbff][\udc00-\udfff]",tR="["+tS+"]",tM="\\u200d",tN="(?:"+tE+"|"+tO+")",tj="(?:"+tT+"(?:d|ll|m|re|s|t|ve))?",tF="(?:"+tT+"(?:D|LL|M|RE|S|T|VE))?",tB="(?:"+tk+"|"+tP+")?",tG="["+tx+"]?",t$="(?:"+tM+"(?:"+[tL,tI,tD].join("|")+")"+tG+tB+")*",tH=tG+tB+t$,tz="(?:"+["["+ty+"]",tI,tD].join("|")+")"+tH,tU="(?:"+[tL+tk+"?",tk,tI,tD,"["+t_+"]"].join("|")+")",tW=RegExp(tT,"g"),tV=RegExp(tk,"g"),tY=RegExp(tP+"(?="+tP+")|"+tU+tH,"g"),tX=RegExp([tR+"?"+tE+"+"+tj+"(?="+[tA,tR,"$"].join("|")+")","(?:"+tR+"|"+tO+")+"+tF+"(?="+[tA,tR+tN,"$"].join("|")+")",tR+"?"+tN+"+"+tj,tR+"+"+tF,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tz].join("|"),"g"),tK=RegExp("["+tM+t_+tb+tx+"]"),tq=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tJ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tZ=-1,tQ={};tQ[P]=tQ[L]=tQ[I]=tQ[D]=tQ[R]=tQ[M]=tQ[N]=tQ[j]=tQ[F]=!0,tQ[d]=tQ[h]=tQ[E]=tQ[f]=tQ[O]=tQ[g]=tQ[p]=tQ[v]=tQ[b]=tQ[y]=tQ[C]=tQ[x]=tQ[w]=tQ[T]=tQ[k]=!1;var t0={};t0[d]=t0[h]=t0[E]=t0[O]=t0[f]=t0[g]=t0[P]=t0[L]=t0[I]=t0[D]=t0[R]=t0[b]=t0[y]=t0[C]=t0[x]=t0[w]=t0[T]=t0[A]=t0[M]=t0[N]=t0[j]=t0[F]=!0,t0[p]=t0[v]=t0[k]=!1;var t1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t2=parseFloat,t5=parseInt,t3="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,t4="object"==typeof self&&self&&self.Object===Object&&self,t8=t3||t4||Function("return this")(),t6=e&&!e.nodeType&&e,t9=t6&&t&&!t.nodeType&&t,t7=t9&&t9.exports===t6,et=t7&&t3.process,ee=function(){try{var t=t9&&t9.require&&t9.require("util").types;if(t)return t;return et&&et.binding&&et.binding("util")}catch(t){}}(),en=ee&&ee.isArrayBuffer,er=ee&&ee.isDate,ei=ee&&ee.isMap,ea=ee&&ee.isRegExp,eo=ee&&ee.isSet,es=ee&&ee.isTypedArray;function el(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ec(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i<a;){var o=t[i];e(r,o,n(o),t)}return r}function eu(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ed(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function eh(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}function ef(t,e){return!!(null==t?0:t.length)&&ex(t,e,0)>-1}function eg(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function ep(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function ev(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function em(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}function e_(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function eb(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ey=ek("length");function eC(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function eS(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return -1}function ex(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return -1}(t,e,n):eS(t,eT,n)}function ew(t,e,n,r){for(var i=n-1,a=t.length;++i<a;)if(r(t[i],e))return i;return -1}function eT(t){return t!=t}function eA(t,e){var n=null==t?0:t.length;return n?eP(t,e)/n:c}function ek(t){return function(e){return null==e?i:e[t]}}function eE(t){return function(e){return null==t?i:t[e]}}function eO(t,e,n,r,i){return i(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)}),n}function eP(t,e){for(var n,r=-1,a=t.length;++r<a;){var o=e(t[r]);i!==o&&(n=i===n?o:n+o)}return n}function eL(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function eI(t){return t?t.slice(0,eX(t)+1).replace(tt,""):t}function eD(t){return function(e){return t(e)}}function eR(t,e){return ep(e,function(e){return t[e]})}function eM(t,e){return t.has(e)}function eN(t,e){for(var n=-1,r=t.length;++n<r&&ex(e,t[n],0)>-1;);return n}function ej(t,e){for(var n=t.length;n--&&ex(e,t[n],0)>-1;);return n}var eF=eE({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),eB=eE({"&":"&","<":"<",">":">",'"':""","'":"'"});function eG(t){return"\\"+t1[t]}function e$(t){return tK.test(t)}function eH(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function ez(t,e){return function(n){return t(e(n))}}function eU(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var o=t[n];(o===e||o===s)&&(t[n]=s,a[i++]=n)}return a}function eW(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function eV(t){return e$(t)?function(t){for(var e=tY.lastIndex=0;tY.test(t);)++e;return e}(t):ey(t)}function eY(t){return e$(t)?t.match(tY)||[]:t.split("")}function eX(t){for(var e=t.length;e--&&te.test(t.charAt(e)););return e}var eK=eE({"&":"&","<":"<",">":">",""":'"',"'":"'"}),eq=function t(e){var n,r,te,t_,tb=(e=null==e?t8:eq.defaults(t8.Object(),e,eq.pick(t8,tJ))).Array,ty=e.Date,tC=e.Error,tS=e.Function,tx=e.Math,tw=e.Object,tT=e.RegExp,tA=e.String,tk=e.TypeError,tE=tb.prototype,tO=tS.prototype,tP=tw.prototype,tL=e["__core-js_shared__"],tI=tO.toString,tD=tP.hasOwnProperty,tR=0,tM=(n=/[^.]+$/.exec(tL&&tL.keys&&tL.keys.IE_PROTO||""))?"Symbol(sr
1c)_1."+n:"",tN=tP.toString,tj=tI.call(tw),tF=t8._,tB=tT("^"+tI.call(tD).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tG=t7?e.Buffer:i,t$=e.Symbol,tH=e.Uint8Array,tz=tG?tG.allocUnsafe:i,tU=ez(tw.getPrototypeOf,tw),tY=tw.create,tK=tP.propertyIsEnumerable,t1=tE.splice,t3=t$?t$.isConcatSpreadable:i,t4=t$?t$.iterator:i,t6=t$?t$.toStringTag:i,t9=function(){try{var t=ip(tw,"defineProperty");return t({},"",{}),t}catch(t){}}(),et=e.clearTimeout!==t8.clearTimeout&&e.clearTimeout,ee=ty&&ty.now!==t8.Date.now&&ty.now,ey=e.setTimeout!==t8.setTimeout&&e.setTimeout,eE=tx.ceil,eJ=tx.floor,eZ=tw.getOwnPropertySymbols,eQ=tG?tG.isBuffer:i,e0=e.isFinite,e1=tE.join,e2=ez(tw.keys,tw),e5=tx.max,e3=tx.min,e4=ty.now,e8=e.parseInt,e6=tx.random,e9=tE.reverse,e7=ip(e,"DataView"),nt=ip(e,"Map"),ne=ip(e,"Promise"),nn=ip(e,"Set"),nr=ip(e,"WeakMap"),ni=ip(tw,"create"),na=nr&&new nr,no={},ns=iG(e7),nl=iG(nt),nc=iG(ne),nu=iG(nn),nd=iG(nr),nh=t$?t$.prototype:i,nf=nh?nh.valueOf:i,ng=nh?nh.toString:i;function np(t){if(aY(t)&&!aN(t)&&!(t instanceof nb)){if(t instanceof n_)return t;if(tD.call(t,"__wrapped__"))return i$(t)}return new n_(t)}var nv=function(){function t(){}return function(e){if(!aV(e))return{};if(tY)return tY(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function nm(){}function n_(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function nb(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function ny(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nC(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nS(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function nx(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new nS;++e<n;)this.add(t[e])}function nw(t){var e=this.__data__=new nC(t);this.size=e.size}function nT(t,e){var n=aN(t),r=!n&&aM(t),i=!n&&!r&&aG(t),a=!n&&!r&&!i&&a1(t),o=n||r||i||a,s=o?eL(t.length,tA):[],l=s.length;for(var c in t)(e||tD.call(t,c))&&!(o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||iS(c,l)))&&s.push(c);return s}function nA(t){var e=t.length;return e?t[ru(0,e-1)]:i}function nk(t,e,n){(i!==n&&!aI(t[e],n)||i===n&&!(e in t))&&nI(t,e,n)}function nE(t,e,n){(!(tD.call(t,e)&&aI(t[e],n))||i===n&&!(e in t))&&nI(t,e,n)}function nO(t,e){for(var n=t.length;n--;)if(aI(t[n][0],e))return n;return -1}function nP(t,e,n,r){return nB(t,function(t,i,a){e(r,t,n(t),a)}),r}function nL(t,e){return t&&rH(e,of(e),t)}function nI(t,e,n){"__proto__"==e&&t9?t9(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function nD(t,e){for(var n=-1,r=e.length,a=tb(r),o=null==t;++n<r;)a[n]=o?i:ol(t,e[n]);return a}function nR(t,e,n){return t==t&&(i!==n&&(t=t<=n?t:n),i!==e&&(t=t>=e?t:e)),t}function nM(t,e,n,r,a,o){var s,l=1&e,c=2&e,u=4&e;if(n&&(s=a?n(t,r,a,o):n(t)),i!==s)return s;if(!aV(t))return t;var h=aN(t);if(h){if(p=t.length,S=new t.constructor(p),p&&"string"==typeof t[0]&&tD.call(t,"index")&&(S.index=t.index,S.input=t.input),s=S,!l)return r$(t,s)}else{var p,S,k,B,G,$=i_(t),H=$==v||$==m;if(aG(t))return rM(t,l);if($==C||$==d||H&&!a){if(s=c||H?{}:iy(t),!l)return c?(k=(G=s)&&rH(t,og(t),G),rH(t,im(t),k)):(B=nL(s,t),rH(t,iv(t),B))}else{if(!t0[$])return a?t:{};s=function(t,e,n){var r,i,a=t.constructor;switch(e){case E:return rN(t);case f:case g:return new a(+t);case O:return r=n?rN(t.buffer):t.buffer,new t.constructor(r,t.byteOffset,t.byteLength);case P:case L:case I:case D:case R:case M:case N:case j:case F:return rj(t,n);case b:return new a;case y:case T:return new a(t);case x:return(i=new t.constructor(t.source,tc.exec(t))).lastIndex=t.lastIndex,i;case w:return new a;case A:return nf?tw(nf.call(t)):{}}}(t,$,l)}}o||(o=new nw);var z=o.get(t);if(z)return z;o.set(t,s),aZ(t)?t.forEach(function(r){s.add(nM(r,e,n,r,t,o))}):aX(t)&&t.forEach(function(r,i){s.set(i,nM(r,e,n,i,t,o))});var U=u?c?is:io:c?og:of,W=h?i:U(t);return eu(W||t,function(r,i){W&&(r=t[i=r]),nE(s,i,nM(r,e,n,i,t,o))}),s}function nN(t,e,n){var r=n.length;if(null==t)return!r;for(t=tw(t);r--;){var a=n[r],o=e[a],s=t[a];if(i===s&&!(a in t)||!o(s))return!1}return!0}function nj(t,e,n){if("function"!=typeof t)throw new tk(a);return iD(function(){t.apply(i,n)},e)}function nF(t,e,n,r){var i=-1,a=ef,o=!0,s=t.length,l=[],c=e.length;if(!s)return l;n&&(e=ep(e,eD(n))),r?(a=eg,o=!1):e.length>=200&&(a=eM,o=!1,e=new nx(e));t:for(;++i<s;){var u=t[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,o&&d==d){for(var h=c;h--;)if(e[h]===d)continue t;l.push(u)}else a(e,d,r)||l.push(u)}return l}np.templateSettings={escape:V,evaluate:Y,interpolate:X,variable:"",imports:{_:np}},np.prototype=nm.prototype,np.prototype.constructor=np,n_.prototype=nv(nm.prototype),n_.prototype.constructor=n_,nb.prototype=nv(nm.prototype),nb.prototype.constructor=nb,ny.prototype.clear=function(){this.__data__=ni?ni(null):{},this.size=0},ny.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ny.prototype.get=function(t){var e=this.__data__;if(ni){var n=e[t];return n===o?i:n}return tD.call(e,t)?e[t]:i},ny.prototype.has=function(t){var e=this.__data__;return ni?i!==e[t]:tD.call(e,t)},ny.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ni&&i===e?o:e,this},nC.prototype.clear=function(){this.__data__=[],this.size=0},nC.prototype.delete=function(t){var e=this.__data__,n=nO(e,t);return!(n<0)&&(n==e.length-1?e.pop():t1.call(e,n,1),--this.size,!0)},nC.prototype.get=function(t){var e=this.__data__,n=nO(e,t);return n<0?i:e[n][1]},nC.prototype.has=function(t){return nO(this.__data__,t)>-1}
1,nC.prototype.set=function(t,e){var n=this.__data__,r=nO(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},nS.prototype.clear=function(){this.size=0,this.__data__={hash:new ny,map:new(nt||nC),string:new ny}},nS.prototype.delete=function(t){var e=ih(this,t).delete(t);return this.size-=e?1:0,e},nS.prototype.get=function(t){return ih(this,t).get(t)},nS.prototype.has=function(t){return ih(this,t).has(t)},nS.prototype.set=function(t,e){var n=ih(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},nx.prototype.add=nx.prototype.push=function(t){return this.__data__.set(t,o),this},nx.prototype.has=function(t){return this.__data__.has(t)},nw.prototype.clear=function(){this.__data__=new nC,this.size=0},nw.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},nw.prototype.get=function(t){return this.__data__.get(t)},nw.prototype.has=function(t){return this.__data__.has(t)},nw.prototype.set=function(t,e){var n=this.__data__;if(n instanceof nC){var r=n.__data__;if(!nt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new nS(r)}return n.set(t,e),this.size=n.size,this};var nB=rW(nY),nG=rW(nX,!0);function n$(t,e){var n=!0;return nB(t,function(t,r,i){return n=!!e(t,r,i)}),n}function nH(t,e,n){for(var r=-1,a=t.length;++r<a;){var o=t[r],s=e(o);if(null!=s&&(i===l?s==s&&!a0(s):n(s,l)))var l=s,c=o}return c}function nz(t,e){var n=[];return nB(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function nU(t,e,n,r,i){var a=-1,o=t.length;for(n||(n=iC),i||(i=[]);++a<o;){var s=t[a];e>0&&n(s)?e>1?nU(s,e-1,n,r,i):ev(i,s):r||(i[i.length]=s)}return i}var nW=rV(),nV=rV(!0);function nY(t,e){return t&&nW(t,e,of)}function nX(t,e){return t&&nV(t,e,of)}function nK(t,e){return eh(e,function(e){return az(t[e])})}function nq(t,e){e=rI(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[iB(e[n++])];return n&&n==r?t:i}function nJ(t,e,n){var r=e(t);return aN(t)?r:ev(r,n(t))}function nZ(t){return null==t?i===t?"[object Undefined]":"[object Null]":t6&&t6 in tw(t)?function(t){var e=tD.call(t,t6),n=t[t6];try{t[t6]=i;var r=!0}catch(t){}var a=tN.call(t);return r&&(e?t[t6]=n:delete t[t6]),a}(t):tN.call(t)}function nQ(t,e){return t>e}function n0(t,e){return null!=t&&tD.call(t,e)}function n1(t,e){return null!=t&&e in tw(t)}function n2(t,e,n){for(var r=n?eg:ef,a=t[0].length,o=t.length,s=o,l=tb(o),c=1/0,u=[];s--;){var d=t[s];s&&e&&(d=ep(d,eD(e))),c=e3(d.length,c),l[s]=!n&&(e||a>=120&&d.length>=120)?new nx(s&&d):i}d=t[0];var h=-1,f=l[0];t:for(;++h<a&&u.length<c;){var g=d[h],p=e?e(g):g;if(g=n||0!==g?g:0,!(f?eM(f,p):r(u,p,n))){for(s=o;--s;){var v=l[s];if(!(v?eM(v,p):r(t[s],p,n)))continue t}f&&f.push(p),u.push(g)}}return u}function n5(t,e,n){e=rI(e,t);var r=null==(t=iP(t,e))?t:t[iB(iZ(e))];return null==r?i:el(r,t,n)}function n3(t){return aY(t)&&nZ(t)==d}function n4(t,e,n,r,a){return t===e||(null==t||null==e||!aY(t)&&!aY(e)?t!=t&&e!=e:function(t,e,n,r,a,o){var s=aN(t),l=aN(e),c=s?h:i_(t),u=l?h:i_(e);c=c==d?C:c,u=u==d?C:u;var v=c==C,m=u==C,S=c==u;if(S&&aG(t)){if(!aG(e))return!1;s=!0,v=!1}if(S&&!v)return o||(o=new nw),s||a1(t)?ii(t,e,n,r,a,o):function(t,e,n,r,i,a,o){switch(n){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case E:if(t.byteLength!=e.byteLength||!a(new tH(t),new tH(e)))break;return!0;case f:case g:case y:return aI(+t,+e);case p:return t.name==e.name&&t.message==e.message;case x:case T:return t==e+"";case b:var s=eH;case w:var l=1&r;if(s||(s=eW),t.size!=e.size&&!l)break;var c=o.get(t);if(c)return c==e;r|=2,o.set(t,e);var u=ii(s(t),s(e),r,i,a,o);return o.delete(t),u;case A:if(nf)return nf.call(t)==nf.call(e)}return!1}(t,e,c,n,r,a,o);if(!(1&n)){var k=v&&tD.call(t,"__wrapped__"),P=m&&tD.call(e,"__wrapped__");
vendor: 6,610 bytes, line 1
1if(k||P){var L=k?t.value():t,I=P?e.value():e;return o||(o=new nw),a(L,I,n,r,o)}}return!!S&&(o||(o=new nw),function(t,e,n,r,a,o){var s=1&n,l=io(t),c=l.length;if(c!=io(e).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in e:tD.call(e,d)))return!1}var h=o.get(t),f=o.get(e);if(h&&f)return h==e&&f==t;var g=!0;o.set(t,e),o.set(e,t);for(var p=s;++u<c;){var v=t[d=l[u]],m=e[d];if(r)var b=s?r(m,v,d,e,t,o):r(v,m,d,t,e,o);if(!(i===b?v===m||a(v,m,n,r,o):b)){g=!1;break}p||(p="constructor"==d)}if(g&&!p){var y=t.constructor,C=e.constructor;y!=C&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof C&&C instanceof C)&&(g=!1)}return o.delete(t),o.delete(e),g}(t,e,n,r,a,o))}(t,e,n,r,n4,a))}function n8(t,e,n,r){var a=n.length,o=a,s=!r;if(null==t)return!o;for(t=tw(t);a--;){var l=n[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<o;){var c=(l=n[a])[0],u=t[c],d=l[1];if(s&&l[2]){if(i===u&&!(c in t))return!1}else{var h=new nw;if(r)var f=r(u,d,c,t,e,h);if(!(i===f?n4(d,u,3,r,h):f))return!1}}return!0}function n6(t){return!(!aV(t)||tM&&tM in t)&&(az(t)?tB:th).test(iG(t))}function n9(t){return"function"==typeof t?t:null==t?oB:"object"==typeof t?aN(t)?rr(t[0],t[1]):rn(t):oX(t)}function n7(t){if(!ik(t))return e2(t);var e=[];for(var n in tw(t))tD.call(t,n)&&"constructor"!=n&&e.push(n);return e}function rt(t,e){return t<e}function re(t,e){var n=-1,r=aF(t)?tb(t.length):[];return nB(t,function(t,i,a){r[++n]=e(t,i,a)}),r}function rn(t){var e=ig(t);return 1==e.length&&e[0][2]?iE(e[0][0],e[0][1]):function(n){return n===t||n8(n,t,e)}}function rr(t,e){var n;return iw(t)&&(n=e)==n&&!aV(n)?iE(iB(t),e):function(n){var r=ol(n,t);return i===r&&r===e?oc(n,t):n4(e,r,3)}}function ri(t,e,n,r,a){t!==e&&nW(e,function(o,s){if(a||(a=new nw),aV(o))(function(t,e,n,r,a,o,s){var l=iL(t,n),c=iL(e,n),u=s.get(c);if(u){nk(t,n,u);return}var d=o?o(l,c,n+"",t,e,s):i,h=i===d;if(h){var f=aN(c),g=!f&&aG(c),p=!f&&!g&&a1(c);d=c,f||g||p?aN(l)?d=l:aB(l)?d=r$(l):g?(h=!1,d=rM(c,!0)):p?(h=!1,d=rj(c,!0)):d=[]:aq(c)||aM(c)?(d=l,aM(l)?d=a7(l):(!aV(l)||az(l))&&(d=iy(c))):h=!1}h&&(s.set(c,d),a(d,c,r,o,s),s.delete(c)),nk(t,n,d)})(t,e,s,n,ri,r,a);else{var l=r?r(iL(t,s),o,s+"",t,e,a):i;i===l&&(l=o),nk(t,s,l)}},og)}function ra(t,e){var n=t.length;if(n)return iS(e+=e<0?n:0,n)?t[e]:i}function ro(t,e,n){e=e.length?ep(e,function(t){return aN(t)?function(e){return nq(e,1===t.length?t[0]:t)}:t}):[oB];var r=-1;return e=ep(e,eD(id())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(re(t,function(t,n,i){return{criteria:ep(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,a=e.criteria,o=i.length,s=n.length;++r<o;){var l=rF(i[r],a[r]);if(l){if(r>=s)return l;return l*("desc"==n[r]?-1:1)}}return t.index-e.index}(t,e,n)})}function rs(t,e,n){for(var r=-1,i=e.length,a={};++r<i;){var o=e[r],s=nq(t,o);n(s,o)&&rf(a,rI(o,t),s)}return a}function rl(t,e,n,r){var i=r?ew:ex,a=-1,o=e.length,s=t;for(t===e&&(e=r$(e)),n&&(s=ep(t,eD(n)));++a<o;)for(var l=0,c=e[a],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==t&&t1.call(s,l,1),t1.call(t,l,1);return t}function rc(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;iS(i)?t1.call(t,i,1):rw(t,i)}}return t}function ru(t,e){return t+eJ(e6()*(e-t+1))}function rd(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do e%2&&(n+=t),(e=eJ(e/2))&&(t+=t);while(e)return n}function rh(t,e){return iR(iO(t,e,oB),t+"")}function rf(t,e,n,r){if(!aV(t))return t;e=rI(e,t);for(var a=-1,o=e.length,s=o-1,l=t;null!=l&&++a<o;){var c=iB(e[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)break;if(a!=s){var d=l[c];u=r?r(d,c,l):i,i===u&&(u=aV(d)?d:iS(e[a+1])?[]:{})}nE(l,c,u),l=l[c]}return t}var rg=na?function(t,e){return na.set(t,e),t}:oB,rp=t9?function(t,e){return t9(t,"toString",{configurable:!0,enumerable:!1,value:oN(e),writable:!0})}:oB;function rv(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=tb(i);++r<i;)a[r]=t[r+e];return a}function rm(t,e){var n;return nB(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function r_(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=t[a];null!==o&&!a0(o)&&(n?o<=e:o<e)?r=a+1:i=a}return i}return rb(t,e,oB,n)}function rb(t,e,n,r){var a=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(e=n(e))!=e,l=null===e,c=a0(e),u=i===e;a<o;){var d=eJ((a+o)/2),h=n(t[d]),f=i!==h,g=null===h,p=h==h,v=a0(h);if(s)var m=r||p;else m=u?p&&(r||f):l?p&&f&&(r||!g):c?p&&f&&!g&&(r||!v):!g&&!v&&(r?h<=e:h<e);m?a=d+1:o=d}return e3(o,4294967294)}function ry(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var o=t[n],s=e?e(o):o;if(!n||!aI(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function rC(t){return"number"==typeof t?t:a0(t)?c:+t}function rS(t){if("string"==typeof t)return t;if(aN(t))return ep(t,rS)+"";if(a0(t))return ng?ng.call(t):"";var e=t+"";return"0"==e&&1/t==-l?"-0":e}function rx(t,e,n){var r=-1,i=ef,a=t.length,o=!0,s=[],l=s;if(n)o=!1,i=eg;else if(a>=200){var c=e?null:r6(t);if(c)return eW(c);o=!1,i=eM,l=new nx}else l=e?[]:s;t:for(;++r<a;){var u=t[r],d=e?e(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue t;e&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function rw(t,e){return e=rI(e,t),null==(t=iP(t,e))||delete t[iB(iZ(e))]}function rT(t,e,n,r){return rf(t,e,n(nq(t,e)),r)}function rA(t,e,n,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&e(t[a],a,t););return n?rv(t,r?0:a,r?a+1:i):rv(t,r?a+1:0,r?i:a)}function rk(t,e){var n=t;return n instanceof nb&&(n=n.value()),em(e,function(t,e){return e.func.apply(e.thisArg,ev([t],e.args))},n)}function rE(t,e,n){var r=t.length;if(r<2)return r?rx(t[0]):[];for(var i=-1,a=tb(r);++i<r;)for(var o=t[i],s=-1;++s<r;)s!=i&&(a[i]=nF(a[i]||o,t[s],e,n));return rx(nU(a,1),e,n)}function rO(t,e,n){for(var r=-1,a=t.length,o=e.length,s={};++r<a;){var l=r<o?e[r]:i;n(s,t[r],l)}return s}function rP(t){return aB(t)?t:[]}function rL(t){return"function"==typeof t?t:oB}function rI(t,e){return aN(t)?t:iw(t,e)?[t]:iF(ot(t))}function rD(t,e,n){var r=t.length;return!e&&(n=i===n?r:n)>=r?t:rv(t,e,n)}var rR=et||function(t){return t8.clearTimeout(t)};function rM(t,e){if(e)return t.slice();var n=t.length,r=tz?tz(n):new t.constructor(n);return t.copy(r),r}function rN(t){var e=new t.constructor(t.byteLength);return new tH(e).set(new tH(t)),e}function rj(t,e){var n=e?rN(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function rF(t,e){if(t!==e){var n=i!==t,r=null===t,a=t==t,o=a0(t),s=i!==e,l=null===e,c=e==e,u=a0(e);
vendor: 5,361 bytes, line 1
1if(!l&&!u&&!o&&t>e||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!a)return 1;if(!r&&!o&&!u&&t<e||u&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!c)return -1}return 0}function rB(t,e,n,r){for(var i=-1,a=t.length,o=n.length,s=-1,l=e.length,c=e5(a-o,0),u=tb(l+c),d=!r;++s<l;)u[s]=e[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=t[i]);for(;c--;)u[s++]=t[i++];return u}function rG(t,e,n,r){for(var i=-1,a=t.length,o=-1,s=n.length,l=-1,c=e.length,u=e5(a-s,0),d=tb(u+c),h=!r;++i<u;)d[i]=t[i];for(var f=i;++l<c;)d[f+l]=e[l];for(;++o<s;)(h||i<a)&&(d[f+n[o]]=t[i++]);return d}function r$(t,e){var n=-1,r=t.length;for(e||(e=tb(r));++n<r;)e[n]=t[n];return e}function rH(t,e,n,r){var a=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var l=e[o],c=r?r(n[l],t[l],l,n,t):i;i===c&&(c=t[l]),a?nI(n,l,c):nE(n,l,c)}return n}function rz(t,e){return function(n,r){var i=aN(n)?ec:nP,a=e?e():{};return i(n,t,id(r,2),a)}}function rU(t){return rh(function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:i,s=a>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(a--,o):i,s&&ix(n[0],n[1],s)&&(o=a<3?i:o,a=1),e=tw(e);++r<a;){var l=n[r];l&&t(e,l,r,o)}return e})}function rW(t,e){return function(n,r){if(null==n)return n;if(!aF(n))return t(n,r);for(var i=n.length,a=e?i:-1,o=tw(n);(e?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function rV(t){return function(e,n,r){for(var i=-1,a=tw(e),o=r(e),s=o.length;s--;){var l=o[t?s:++i];if(!1===n(a[l],l,a))break}return e}}function rY(t){return function(e){var n=e$(e=ot(e))?eY(e):i,r=n?n[0]:e.charAt(0),a=n?rD(n,1).join(""):e.slice(1);return r[t]()+a}}function rX(t){return function(e){return em(oD(oT(e).replace(tW,"")),t,"")}}function rK(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=nv(t.prototype),r=t.apply(n,e);return aV(r)?r:n}}function rq(t){return function(e,n,r){var a=tw(e);if(!aF(e)){var o=id(n,3);e=of(e),n=function(t){return o(a[t],t,a)}}var s=t(e,n,r);return s>-1?a[o?e[s]:s]:i}}function rJ(t){return ia(function(e){var n=e.length,r=n,o=n_.prototype.thru;for(t&&e.reverse();r--;){var s=e[r];if("function"!=typeof s)throw new tk(a);if(o&&!l&&"wrapper"==ic(s))var l=new n_([],!0)}for(r=l?r:n;++r<n;){var c=ic(s=e[r]),u="wrapper"==c?il(s):i;l=u&&iT(u[0])&&u[1]==424&&!u[4].length&&1==u[9]?l[ic(u[0])].apply(l,u[3]):1==s.length&&iT(s)?l[c]():l.thru(s)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&aN(r))return l.plant(r).value();for(var i=0,a=n?e[i].apply(this,t):r;++i<n;)a=e[i].call(this,a);return a}})}function rZ(t,e,n,r,a,o,s,l,c,u){var d=128&e,h=1&e,f=2&e,g=e&24,p=512&e,v=f?i:rK(t);return function m(){for(var b=arguments.length,y=tb(b),C=b;C--;)y[C]=arguments[C];if(g)var S=iu(m),x=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(y,S);if(r&&(y=rB(y,r,a,g)),o&&(y=rG(y,o,s,g)),b-=x,g&&b<u){var w=eU(y,S);return r4(t,e,rZ,m.placeholder,n,y,w,l,c,u-b)}var T=h?n:this,A=f?T[t]:t;return b=y.length,l?y=function(t,e){for(var n=t.length,r=e3(e.length,n),a=r$(t);r--;){var o=e[r];t[r]=iS(o,n)?a[o]:i}return t}(y,l):p&&b>1&&y.reverse(),d&&c<b&&(y.length=c),this&&this!==t8&&this instanceof m&&(A=v||rK(A)),A.apply(T,y)}}function rQ(t,e){return function(n,r){var i,a;return i=e(r),a={},nY(n,function(e,n,r){t(a,i(e),n,r)}),a}}function r0(t,e){return function(n,r){var a;if(i===n&&i===r)return e;if(i!==n&&(a=n),i!==r){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=rS(n),r=rS(r)):(n=rC(n),r=rC(r)),a=t(n,r)}return a}}function r1(t){return ia(function(e){return e=ep(e,eD(id())),rh(function(n){var r=this;return t(e,function(t){return el(t,r,n)})})})}function r2(t,e){var n=(e=i===e?" ":rS(e)).length;if(n<2)return n?rd(e,t):e;var r=rd(e,eE(t/eV(e)));return e$(e)?rD(eY(r),0,t).join(""):r.slice(0,t)}function r5(t){return function(e,n,r){return r&&"number"!=typeof r&&ix(e,n,r)&&(n=r=i),e=a4(e),i===n?(n=e,e=0):n=a4(n),r=i===r?e<n?1:-1:a4(r),function(t,e,n,r){for(var i=-1,a=e5(eE((e-t)/(n||1)),0),o=tb(a);a--;)o[r?a:++i]=t,t+=n;return o}(e,n,r,t)}}function r3(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=a9(e),n=a9(n)),t(e,n)}}function r4(t,e,n,r,a,o,s,l,c,u){var d=8&e,h=d?s:i,f=d?i:s,g=d?o:i,p=d?i:o;e|=d?32:64,4&(e&=~(d?64:32))||(e&=~3);var v=[t,e,a,g,h,p,f,l,c,u],m=n.apply(i,v);return iT(t)&&iI(m,v),m.placeholder=r,iM(m,t,e)}function r8(t){var e=tx[t];return function(t,n){if(t=a9(t),(n=null==n?0:e3(a8(n),292))&&e0(t)){var r=(ot(t)+"e").split("e");return r=(ot(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}var r6=nn&&1/eW(new nn([,-0]))[1]==l?function(t){return new nn(t)}:oU;function r9(t){return function(e){var n,r,i=i_(e);return i==b?eH(e):i==w?(n=-1,r=Array(e.size),e.forEach(function(t){r[++n]=[t,t]}),r):ep(t(e),function(t){return[t,e[t]]})}}function r7(t,e,n,r,o,l,c,u){var d=2&e;if(!d&&"function"!=typeof t)throw new tk(a);var h=r?r.length:0;if(h||(e&=~96,r=o=i),c=i===c?c:e5(a8(c),0),u=i===u?u:a8(u),h-=o?o.length:0,64&e){var f=r,g=o;r=o=i}var p=d?i:il(t),v=[t,e,n,r,o,f,g,l,c,u];if(p&&function(t,e){var n=t[1],r=e[1],i=n|r;if(i<131||128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||r==384&&e[7].length<=e[8]&&8==n){1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];
1if(a){var o=t[3];t[3]=o?rB(o,a,e[4]):a,t[4]=o?eU(t[3],s):e[4]}(a=e[5])&&(o=t[5],t[5]=o?rG(o,a,e[6]):a,t[6]=o?eU(t[5],s):e[6]),(a=e[7])&&(t[7]=a),128&r&&(t[8]=null==t[8]?e[8]:e3(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}}(v,p),t=v[0],e=v[1],n=v[2],r=v[3],o=v[4],(u=v[9]=i===v[9]?d?0:t.length:e5(v[9]-h,0))||!(e&24)||(e&=~24),e&&1!=e)8==e||16==e?(m=t,b=e,y=u,C=rK(m),D=function t(){for(var e=arguments.length,n=tb(e),r=e,a=iu(t);r--;)n[r]=arguments[r];var o=e<3&&n[0]!==a&&n[e-1]!==a?[]:eU(n,a);return(e-=o.length)<y?r4(m,b,rZ,t.placeholder,i,n,o,i,i,y-e):el(this&&this!==t8&&this instanceof t?C:m,this,n)}):(32==e||e==33)&&!o.length?(S=t,x=e,w=n,T=r,A=1&x,k=rK(S),D=function t(){for(var e=-1,n=arguments.length,r=-1,i=T.length,a=tb(i+n),o=this&&this!==t8&&this instanceof t?k:S;++r<i;)a[r]=T[r];for(;n--;)a[r++]=arguments[++e];return el(o,A?w:this,a)}):D=rZ.apply(i,v);else var m,b,y,C,S,x,w,T,A,k,E,O,P,L,I,D=(E=t,O=e,P=n,L=1&O,I=rK(E),function t(){return(this&&this!==t8&&this instanceof t?I:E).apply(L?P:this,arguments)});return iM((p?rg:iI)(D,v),t,e)}function it(t,e,n,r){return i===t||aI(t,tP[n])&&!tD.call(r,n)?e:t}function ie(t,e,n,r,a,o){return aV(t)&&aV(e)&&(o.set(e,t),ri(t,e,i,ie,o),o.delete(e)),t}function ir(t){return aq(t)?i:t}function ii(t,e,n,r,a,o){var s=1&n,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,g=2&n?new nx:i;for(o.set(t,e),o.set(e,t);++h<l;){var p=t[h],v=e[h];if(r)var m=s?r(v,p,h,e,t,o):r(p,v,h,t,e,o);if(i!==m){if(m)continue;f=!1;break}if(g){if(!eb(e,function(t,e){if(!eM(g,e)&&(p===t||a(p,t,n,r,o)))return g.push(e)})){f=!1;break}}else if(!(p===v||a(p,v,n,r,o))){f=!1;break}}return o.delete(t),o.delete(e),f}function ia(t){return iR(iO(t,i,iY),t+"")}function io(t){return nJ(t,of,iv)}function is(t){return nJ(t,og,im)}var il=na?function(t){return na.get(t)}:oU;function ic(t){for(var e=t.name+"",n=no[e],r=tD.call(no,e)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==t)return i.name}return e}function iu(t){return(tD.call(np,"placeholder")?np:t).placeholder}function id(){var t=np.iteratee||oG;return t=t===oG?n9:t,arguments.length?t(arguments[0],arguments[1]):t}function ih(t,e){var n,r=t.__data__;return(n=typeof e,"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?r["string"==typeof e?"string":"hash"]:r.map}function ig(t){for(var e=of(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,i==i&&!aV(i)]}return e}function ip(t,e){var n=null==t?i:t[e];return n6(n)?n:i}var iv=eZ?function(t){return null==t?[]:eh(eZ(t=tw(t)),function(e){return tK.call(t,e)})}:oJ,im=eZ?function(t){for(var e=[];t;)ev(e,iv(t)),t=tU(t);return e}:oJ,i_=nZ;function ib(t,e,n){e=rI(e,t);for(var r=-1,i=e.length,a=!1;++r<i;){var o=iB(e[r]);if(!(a=null!=t&&n(t,o)))break;t=t[o]}return a||++r!=i?a:!!(i=null==t?0:t.length)&&aW(i)&&iS(o,i)&&(aN(t)||aM(t))}function iy(t){return"function"==typeof t.constructor&&!ik(t)?nv(tU(t)):{}}function iC(t){return aN(t)||aM(t)||!!(t3&&t&&t[t3])}function iS(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&tg.test(t))&&t>-1&&t%1==0&&t<e}function ix(t,e,n){if(!aV(n))return!1;var r=typeof e;return("number"==r?!!(aF(n)&&iS(e,n.length)):!!("string"==r&&e in n))&&aI(n[e],t)}function iw(t,e){if(aN(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||a0(t))||q.test(t)||!K.test(t)||null!=e&&t in tw(e)}function iT(t){var e=ic(t),n=np[e];if("function"!=typeof n||!(e in nb.prototype))return!1;if(t===n)return!0;var r=il(n);return!!r&&t===r[0]}(e7&&i_(new e7(new ArrayBuffer(1)))!=O||nt&&i_(new nt)!=b||ne&&i_(ne.resolve())!=S||nn&&i_(new nn)!=w||nr&&i_(new nr)!=k)&&(i_=function(t){var e=nZ(t),n=e==C?t.constructor:i,r=n?iG(n):"";if(r)switch(r){case ns:return O;case nl:return b;case nc:return S;case nu:return w;case nd:return k}return e});var iA=tL?az:oZ;function ik(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||tP)}function iE(t,e){return function(n){return null!=n&&n[t]===e&&(i!==e||t in tw(n))}}function iO(t,e,n){return e=e5(i===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=e5(r.length-e,0),o=tb(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=tb(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),el(t,this,s)}}function iP(t,e){return e.length<2?t:nq(t,rv(e,0,-1))}function iL(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var iI=iN(rg),iD=ey||function(t,e){return t8.setTimeout(t,e)},iR=iN(rp);function iM(t,e,n){var r,i,a=e+"";return iR(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(tn,"{\n/* [wrapped with "+e+"] */\n")}(a,(r=(i=a.match(tr))?i[1].split(ti):[],eu(u,function(t){var e="_."+t[0];n&t[1]&&!ef(r,e)&&r.push(e)}),r.sort())))}function iN(t){var e=0,n=0;return function(){var r=e4(),a=16-(r-n);if(n=r,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function ij(t,e){var n=-1,r=t.length,a=r-1;for(e=i===e?r:e;++n<e;){var o=ru(n,a),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}var iF=(te=(r=aA(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(J,function(t,n,r,i){e.push(r?i.replace(ts,"$1"):n||t)}),e},function(t){return 500===te.size&&te.clear(),t})).cache,r);function iB(t){if("string"==typeof t||a0(t))return t;var e=t+"";return"0"==e&&1/t==-l?"-0":e}function iG(t){if(null!=t){try{return tI.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function i$(t){if(t instanceof nb)return t.clone();var e=new n_(t.__wrapped__,t.__chain__);return e.__actions__=r$(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var iH=rh(function(t,e){return aB(t)?nF(t,nU(e,1,aB,!0)):[]}),iz=rh(function(t,e){var n=iZ(e);return aB(n)&&(n=i),aB(t)?nF(t,nU(e,1,aB,!0),id(n,2)):[]}),iU=rh(function(t,e){var n=iZ(e);return aB(n)&&(n=i),aB(t)?nF(t,nU(e,1,aB,!0),i,n):[]});function iW(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var i=null==n?0:a8(n);return i<0&&(i=e5(r+i,0)),eS(t,id(e,3),i)}function iV(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var a=r-1;return i!==n&&(a=a8(n),a=n<0?e5(r+a,0):e3(a,r-1)),eS(t,id(e,3),a,!0)}function iY(t){return(null==t?0:t.length)?nU(t,1):[]}function iX(t){return t&&t.length?t[0]:i}var iK=rh(function(t){var e=ep(t,rP);return e.length&&e[0]===t[0]?n2(e):[]}),iq=rh(function(t){var e=iZ(t),n=ep(t,rP);return e===iZ(n)?e=i:n.pop(),n.length&&n[0]===t[0]?n2(n,id(e,2)):[]}),iJ=rh(function(t){var e=iZ(t),n=ep(t,rP);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?n2(n,i,e):[]});function iZ(t){var e=null==t?0:t.length;return e?t[e-1]:i}var iQ=rh(i0);function i0(t,e){return t&&t.length&&e&&e.length?rl(t,e):t}var i1=ia(function(t,e){var n=null==t?0:t.length,r=nD(t,e);return rc(t,ep(e,function(t){return iS(t,n)?+t:t}).sort(rF)),r});function i2(t){return null==t?t:e9.call(t)}var i5=rh(function(t){return rx(nU(t,1,aB,!0))}),i3=rh(function(t){var e=iZ(t);return aB(e)&&(e=i),rx(nU(t,1,aB,!0),id(e,2))}),i4=rh(function(t){var e=iZ(t);return e="function"==typeof e?e:i,rx(nU(t,1,aB,!0),i,e)});function i8(t){if(!(t&&t.length))return[];var e=0;return t=eh(t,function(t){if(aB(t))return e=e5(t.length,e),!0}),eL(e,function(e){return ep(t,ek(e))})}function i6(t,e){if(!(t&&t.length))return[];var n=i8(t);return null==e?n:ep(n,function(t){return el(e,i,t)})}
1var i9=rh(function(t,e){return aB(t)?nF(t,e):[]}),i7=rh(function(t){return rE(eh(t,aB))}),at=rh(function(t){var e=iZ(t);return aB(e)&&(e=i),rE(eh(t,aB),id(e,2))}),ae=rh(function(t){var e=iZ(t);return e="function"==typeof e?e:i,rE(eh(t,aB),i,e)}),an=rh(i8),ar=rh(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,i6(t,n)});function ai(t){var e=np(t);return e.__chain__=!0,e}function aa(t,e){return e(t)}var ao=ia(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,a=function(e){return nD(e,t)};return e>1||this.__actions__.length||!(r instanceof nb)||!iS(n)?this.thru(a):((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:aa,args:[a],thisArg:i}),new n_(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t}))}),as=rz(function(t,e,n){tD.call(t,n)?++t[n]:nI(t,n,1)}),al=rq(iW),ac=rq(iV);function au(t,e){return(aN(t)?eu:nB)(t,id(e,3))}function ad(t,e){return(aN(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:nG)(t,id(e,3))}var ah=rz(function(t,e,n){tD.call(t,n)?t[n].push(e):nI(t,n,[e])}),af=rh(function(t,e,n){var r=-1,i="function"==typeof e,a=aF(t)?tb(t.length):[];return nB(t,function(t){a[++r]=i?el(e,t,n):n5(t,e,n)}),a}),ag=rz(function(t,e,n){nI(t,n,e)});function ap(t,e){return(aN(t)?ep:re)(t,id(e,3))}var av=rz(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),am=rh(function(t,e){if(null==t)return[];var n=e.length;return n>1&&ix(t,e[0],e[1])?e=[]:n>2&&ix(e[0],e[1],e[2])&&(e=[e[0]]),ro(t,nU(e,1),[])}),a_=ee||function(){return t8.Date.now()};function ab(t,e,n){return e=t&&null==(e=n?i:e)?t.length:e,r7(t,128,i,i,i,i,e)}function ay(t,e){var n;if("function"!=typeof e)throw new tk(a);return t=a8(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var aC=rh(function(t,e,n){var r=1;if(n.length){var i=eU(n,iu(aC));r|=32}return r7(t,r,e,n,i)}),aS=rh(function(t,e,n){var r=3;if(n.length){var i=eU(n,iu(aS));r|=32}return r7(e,r,t,n,i)});function ax(t,e,n){var r,o,s,l,c,u,d=0,h=!1,f=!1,g=!0;if("function"!=typeof t)throw new tk(a);function p(e){var n=r,a=o;return r=o=i,d=e,l=t.apply(a,n)}function v(t){var n=t-u;return i===u||n>=e||n<0||f&&t-d>=s}function m(){var t,n,r,i=a_();if(v(i))return b(i);c=iD(m,(t=i-u,n=i-d,r=e-t,f?e3(r,s-n):r))}function b(t){return(c=i,g&&r)?p(t):(r=o=i,l)}function y(){var t,n=a_(),a=v(n);if(r=arguments,o=this,u=n,a){if(i===c)return d=t=u,c=iD(m,e),h?p(t):l;if(f)return rR(c),c=iD(m,e),p(u)}return i===c&&(c=iD(m,e)),l}return e=a9(e)||0,aV(n)&&(h=!!n.leading,s=(f="maxWait"in n)?e5(a9(n.maxWait)||0,e):s,g="trailing"in n?!!n.trailing:g),y.cancel=function(){i!==c&&rR(c),d=0,r=u=o=c=i},y.flush=function(){return i===c?l:b(a_())},y}var aw=rh(function(t,e){return nj(t,1,e)}),aT=rh(function(t,e,n){return nj(t,a9(e)||0,n)});function aA(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new tk(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(aA.Cache||nS),n}function ak(t){if("function"!=typeof t)throw new tk(a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}aA.Cache=nS;var aE=rh(function(t,e){var n=(e=1==e.length&&aN(e[0])?ep(e[0],eD(id())):ep(nU(e,1),eD(id()))).length;return rh(function(r){for(var i=-1,a=e3(r.length,n);++i<a;)r[i]=e[i].call(this,r[i]);return el(t,this,r)})}),aO=rh(function(t,e){var n=eU(e,iu(aO));return r7(t,32,i,e,n)}),aP=rh(function(t,e){var n=eU(e,iu(aP));return r7(t,64,i,e,n)}),aL=ia(function(t,e){return r7(t,256,i,i,i,e)});function aI(t,e){return t===e||t!=t&&e!=e}var aD=r3(nQ),aR=r3(function(t,e){return t>=e}),aM=n3(function(){return arguments}())?n3:function(t){return aY(t)&&tD.call(t,"callee")&&!tK.call(t,"callee")},aN=tb.isArray,aj=en?eD(en):function(t){return aY(t)&&nZ(t)==E};function aF(t){return null!=t&&aW(t.length)&&!az(t)}function aB(t){return aY(t)&&aF(t)}var aG=eQ||oZ,a$=er?eD(er):function(t){return aY(t)&&nZ(t)==g};function aH(t){if(!aY(t))return!1;var e=nZ(t);return e==p||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!
1aq(t)}function az(t){if(!aV(t))return!1;var e=nZ(t);return e==v||e==m||"[object AsyncFunction]"==e||"[object Proxy]"==e}function aU(t){return"number"==typeof t&&t==a8(t)}function aW(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function aV(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function aY(t){return null!=t&&"object"==typeof t}var aX=ei?eD(ei):function(t){return aY(t)&&i_(t)==b};function aK(t){return"number"==typeof t||aY(t)&&nZ(t)==y}function aq(t){if(!aY(t)||nZ(t)!=C)return!1;var e=tU(t);if(null===e)return!0;var n=tD.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&tI.call(n)==tj}var aJ=ea?eD(ea):function(t){return aY(t)&&nZ(t)==x},aZ=eo?eD(eo):function(t){return aY(t)&&i_(t)==w};function aQ(t){return"string"==typeof t||!aN(t)&&aY(t)&&nZ(t)==T}function a0(t){return"symbol"==typeof t||aY(t)&&nZ(t)==A}var a1=es?eD(es):function(t){return aY(t)&&aW(t.length)&&!!tQ[nZ(t)]},a2=r3(rt),a5=r3(function(t,e){return t<=e});function a3(t){if(!t)return[];if(aF(t))return aQ(t)?eY(t):r$(t);if(t4&&t[t4])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[t4]());var e=i_(t);return(e==b?eH:e==w?eW:oS)(t)}function a4(t){return t?(t=a9(t))===l||t===-l?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}function a8(t){var e=a4(t),n=e%1;return e==e?n?e-n:e:0}function a6(t){return t?nR(a8(t),0,4294967295):0}function a9(t){if("number"==typeof t)return t;if(a0(t))return c;if(aV(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=aV(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=eI(t);var n=td.test(t);return n||tf.test(t)?t5(t.slice(2),n?2:8):tu.test(t)?c:+t}function a7(t){return rH(t,og(t))}function ot(t){return null==t?"":rS(t)}var oe=rU(function(t,e){if(ik(e)||aF(e)){rH(e,of(e),t);return}for(var n in e)tD.call(e,n)&&nE(t,n,e[n])}),on=rU(function(t,e){rH(e,og(e),t)}),or=rU(function(t,e,n,r){rH(e,og(e),t,r)}),oi=rU(function(t,e,n,r){rH(e,of(e),t,r)}),oa=ia(nD),oo=rh(function(t,e){t=tw(t);var n=-1,r=e.length,a=r>2?e[2]:i;for(a&&ix(e[0],e[1],a)&&(r=1);++n<r;)for(var o=e[n],s=og(o),l=-1,c=s.length;++l<c;){var u=s[l],d=t[u];(i===d||aI(d,tP[u])&&!tD.call(t,u))&&(t[u]=o[u])}return t}),os=rh(function(t){return t.push(i,ie),el(ov,i,t)});function ol(t,e,n){var r=null==t?i:nq(t,e);return i===r?n:r}function oc(t,e){return null!=t&&ib(t,e,n1)}var ou=rQ(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=tN.call(e)),t[e]=n},oN(oB)),od=rQ(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=tN.call(e)),tD.call(t,e)?t[e].push(n):t[e]=[n]},id),oh=rh(n5);function of(t){return aF(t)?nT(t):n7(t)}function og(t){return aF(t)?nT(t,!0):function(t){if(!aV(t))return function(t){var e=[];if(null!=t)for(var n in tw(t))e.push(n);return e}(t);var e=ik(t),n=[];for(var r in t)"constructor"==r&&(e||!tD.call(t,r))||n.push(r);return n}(t)}var op=rU(function(t,e,n){ri(t,e,n)}),ov=rU(function(t,e,n,r){ri(t,e,n,r)}),om=ia(function(t,e){var n={};if(null==t)return n;var r=!1;e=ep(e,function(e){return e=rI(e,t),r||(r=e.length>1),e}),rH(t,is(t),n),r&&(n=nM(n,7,ir));for(var i=e.length;i--;)rw(n,e[i]);return n}),o_=ia(function(t,e){return null==t?{}:rs(t,e,function(e,n){return oc(t,n)})});function ob(t,e){if(null==t)return{};var n=ep(is(t),function(t){return[t]});return e=id(e),rs(t,n,function(t,n){return e(t,n[0])})}var oy=r9(of),oC=r9(og);function oS(t){return null==t?[]:eR(t,of(t))}var ox=rX(function(t,e,n){return e=e.toLowerCase(),t+(n?ow(e):e)});function ow(t){return oI(ot(t).toLowerCase())}function oT(t){return(t=ot(t))&&t.replace(tp,eF).replace(tV,"")}var oA=rX(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),ok=rX(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),oE=rY("toLowerCase"),oO=rX(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),oP=rX(function(t,e,n){return t+(n?" ":"")+oI(e)}),oL=rX(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),oI=rY("toUpperCase");function oD(t,e,n){if(t=ot(t),e=n?i:e,i===e){var r;return(r=t,tq.test(r))?t.match(tX)||[]:t.match(ta)||[]}return t.match(e)||[]}var oR=rh(function(t,e){try{return el(t,i,e)}catch(t){return aH(t)?t:new tC(t)}}),oM=ia(function(t,e){return eu(e,function(e){nI(t,e=iB(e),aC(t[e],t))}),t});function oN(t){return function(){return t}}var oj=rJ(),oF=rJ(!0);function oB(t){return t}function oG(t){return n9("function"==typeof t?t:nM(t,1))}var o$=rh(function(t,e){return function(n){return n5(n,t,e)}}),oH=rh(function(t,e){return function(n){return n5(t,n,e)}});function oz(t,e,n){var r=of(e),i=nK(e,r);null!=n||aV(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=nK(e,of(e)));var a=!(aV(n)&&"chain"in n)||!!n.chain,o=az(t);return eu(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=r$(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,ev([this.value()],arguments))})}),t}function oU(){}var oW=r1(ep),oV=r1(ed),oY=r1(eb);function oX(t){return iw(t)?ek(iB(t)):function(e){return nq(e,t)}}var oK=r5(),oq=r5(!0);function oJ(){return[]}function oZ(){return!1}var oQ=r0(function(t,e){return t+e},0),o0=r8("ceil"),o1=r0(function(t,e){return t/e},1),o2=r8("floor"),o5=r0(function(t,e){return t*e},1),o3=r8("round"),o4=r0(function(t,e){return t-e},0);return np.after=function(t,e){if("function"!=typeof e)throw new tk(a);return t=a8(t),function(){if(--t<1)return e.apply(this,arguments)}},np.ary=ab,np.assign=oe,np.assignIn=on,np.assignInWith=or,np.assignWith=oi,np.at=oa,np.before=ay,np.bind=aC,np.bindAll=oM,np.bindKey=aS,np.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return aN(t)?t:[t]},np.chain=ai,np.chunk=function(t,e,n){e=(n?ix(t,e,n):i===e)?1:e5(a8(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var a=0,o=0,s=tb(eE(r/e));a<r;)s[o++]=rv(t,a,a+=e);return s},np.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var a=t[e];a&&(i[r++]=a)}return i},np.concat=function(){var t=arguments.length;if(!t)return[];for(var e=tb(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return ev(aN(n)?r$(n):[n],nU(e,1))},np.cond=function(t){var e=null==t?0:t.length,n=id();return t=e?ep(t,function(t){if("function"!=typeof t[1])throw new tk(a);return[n(t[0]),t[1]]}):[],rh(function(n){for(var r=-1;++r<e;){var i=t[r];
1if(el(i[0],this,n))return el(i[1],this,n)}})},np.conforms=function(t){var e,n;return n=of(e=nM(t,1)),function(t){return nN(t,e,n)}},np.constant=oN,np.countBy=as,np.create=function(t,e){var n=nv(t);return null==e?n:nL(n,e)},np.curry=function t(e,n,r){n=r?i:n;var a=r7(e,8,i,i,i,i,i,n);return a.placeholder=t.placeholder,a},np.curryRight=function t(e,n,r){n=r?i:n;var a=r7(e,16,i,i,i,i,i,n);return a.placeholder=t.placeholder,a},np.debounce=ax,np.defaults=oo,np.defaultsDeep=os,np.defer=aw,np.delay=aT,np.difference=iH,np.differenceBy=iz,np.differenceWith=iU,np.drop=function(t,e,n){var r=null==t?0:t.length;return r?rv(t,(e=n||i===e?1:a8(e))<0?0:e,r):[]},np.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?rv(t,0,(e=r-(e=n||i===e?1:a8(e)))<0?0:e):[]},np.dropRightWhile=function(t,e){return t&&t.length?rA(t,id(e,3),!0,!0):[]},np.dropWhile=function(t,e){return t&&t.length?rA(t,id(e,3),!0):[]},np.fill=function(t,e,n,r){var a=null==t?0:t.length;return a?(n&&"number"!=typeof n&&ix(t,e,n)&&(n=0,r=a),function(t,e,n,r){var a=t.length;for((n=a8(n))<0&&(n=-n>a?0:a+n),(r=i===r||r>a?a:a8(r))<0&&(r+=a),r=n>r?0:a6(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},np.filter=function(t,e){return(aN(t)?eh:nz)(t,id(e,3))},np.flatMap=function(t,e){return nU(ap(t,e),1)},np.flatMapDeep=function(t,e){return nU(ap(t,e),l)},np.flatMapDepth=function(t,e,n){return n=i===n?1:a8(n),nU(ap(t,e),n)},np.flatten=iY,np.flattenDeep=function(t){return(null==t?0:t.length)?nU(t,l):[]},np.flattenDepth=function(t,e){return(null==t?0:t.length)?nU(t,e=i===e?1:a8(e)):[]},np.flip=function(t){return r7(t,512)},np.flow=oj,np.flowRight=oF,np.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},np.functions=function(t){return null==t?[]:nK(t,of(t))},np.functionsIn=function(t){return null==t?[]:nK(t,og(t))},np.groupBy=ah,np.initial=function(t){return(null==t?0:t.length)?rv(t,0,-1):[]},np.intersection=iK,np.intersectionBy=iq,np.intersectionWith=iJ,np.invert=ou,np.invertBy=od,np.invokeMap=af,np.iteratee=oG,np.keyBy=ag,np.keys=of,np.keysIn=og,np.map=ap,np.mapKeys=function(t,e){var n={};return e=id(e,3),nY(t,function(t,r,i){nI(n,e(t,r,i),t)}),n},np.mapValues=function(t,e){var n={};return e=id(e,3),nY(t,function(t,r,i){nI(n,r,e(t,r,i))}),n},np.matches=function(t){return rn(nM(t,1))},np.matchesProperty=function(t,e){return rr(t,nM(e,1))},np.memoize=aA,np.merge=op,np.mergeWith=ov,np.method=o$,np.methodOf=oH,np.mixin=oz,np.negate=ak,np.nthArg=function(t){return t=a8(t),rh(function(e){return ra(e,t)})},np.omit=om,np.omitBy=function(t,e){return ob(t,ak(id(e)))},np.once=function(t){return ay(2,t)},np.orderBy=function(t,e,n,r){return null==t?[]:(aN(e)||(e=null==e?[]:[e]),aN(n=r?i:n)||(n=null==n?[]:[n]),ro(t,e,n))},np.over=oW,np.overArgs=aE,np.overEvery=oV,np.overSome=oY,np.partial=aO,np.partialRight=aP,np.partition=av,np.pick=o_,np.pickBy=ob,np.property=oX,np.propertyOf=function(t){return function(e){return null==t?i:nq(t,e)}},np.pull=iQ,np.pullAll=i0,np.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?rl(t,e,id(n,2)):t},np.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?rl(t,e,i,n):t},np.pullAt=i1,np.range=oK,np.rangeRight=oq,np.rearg=aL,np.reject=function(t,e){return(aN(t)?eh:nz)(t,ak(id(e,3)))},np.remove=function(t,e){var n=[];if(!(t&&t.length))return n;var r=-1,i=[],a=t.length;for(e=id(e,3);++r<a;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return rc(t,i),n},np.rest=function(t,e){if("function"!=typeof t)throw new tk(a);return rh(t,e=i===e?e:a8(e))},np.reverse=i2,np.sampleSize=function(t,e,n){return e=(n?ix(t,e,n):i===e)?1:a8(e),(aN(t)?function(t,e){return ij(r$(t),nR(e,0,t.length))}:function(t,e){var n=oS(t);return ij(n,nR(e,0,n.length))})(t,e)},np.set=function(t,e,n){return null==t?t:rf(t,e,n)},np.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:rf(t,e,n,r)},np.shuffle=function(t){return(aN(t)?function(t){return ij(r$(t))}:function(t){return ij(oS(t))})(t)},np.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&ix(t,e,n)?(e=0,n=r):(e=null==e?0:a8(e),n=i===n?r:a8(n)),rv(t,e,n)):[]},np.sortBy=am,np.sortedUniq=function(t){return t&&t.length?ry(t):[]},np.sortedUniqBy=function(t,e){return t&&t.length?ry(t,id(e,2)):[]},np.split=function(t,e,n){return(n&&"number"!=typeof n&&ix(t,e,n)&&(e=n=i),n=i===n?4294967295:n>>>0)?(t=ot(t))&&("string"==typeof e||null!=e&&!aJ(e))&&!(e=rS(e))&&e$(t)?rD(eY(t),0,n):t.split(e,n):[]},np.spread=function(t,e){if("function"!=typeof t)throw new tk(a);return e=null==e?0:e5(a8(e),0),rh(function(n){var r=n[e],i=rD(n,0,e);return r&&ev(i,r),el(t,this,i)})},np.tail=function(t){var e=null==t?0:t.length;return e?rv(t,1,e):[]},np.take=function(t,e,n){return t&&t.length?rv(t,0,(e=n||i===e?1:a8(e))<0?0:e):[]},np.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?rv(t,(e=r-(e=n||i===e?1:a8(e)))<0?0:e,r):[]},np.takeRightWhile=function(t,e){return t&&t.length?rA(t,id(e,3),!1,!0):[]},np.takeWhile=function(t,e){return t&&t.length?rA(t,id(e,3)):[]},np.tap=function(t,e){return e(t),t},np.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new tk(a);return aV(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ax(t,e,{leading:r,maxWait:e,trailing:i})},np.thru=aa,np.toArray=a3,np.toPairs=oy,np.toPairsIn=oC,np.toPath=function(t){return aN(t)?ep(t,iB):a0(t)?[t]:r$(iF(ot(t)))},np.toPlainObject=a7,np.transform=function(t,e,n){var r=aN(t),i=r||aG(t)||a1(t);
vendor: 4,236 bytes, line 1
1if(e=id(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:aV(t)&&az(a)?nv(tU(t)):{}}return(i?eu:nY)(t,function(t,r,i){return e(n,t,r,i)}),n},np.unary=function(t){return ab(t,1)},np.union=i5,np.unionBy=i3,np.unionWith=i4,np.uniq=function(t){return t&&t.length?rx(t):[]},np.uniqBy=function(t,e){return t&&t.length?rx(t,id(e,2)):[]},np.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?rx(t,i,e):[]},np.unset=function(t,e){return null==t||rw(t,e)},np.unzip=i8,np.unzipWith=i6,np.update=function(t,e,n){return null==t?t:rT(t,e,rL(n))},np.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:rT(t,e,rL(n),r)},np.values=oS,np.valuesIn=function(t){return null==t?[]:eR(t,og(t))},np.without=i9,np.words=oD,np.wrap=function(t,e){return aO(rL(e),t)},np.xor=i7,np.xorBy=at,np.xorWith=ae,np.zip=an,np.zipObject=function(t,e){return rO(t||[],e||[],nE)},np.zipObjectDeep=function(t,e){return rO(t||[],e||[],rf)},np.zipWith=ar,np.entries=oy,np.entriesIn=oC,np.extend=on,np.extendWith=or,oz(np,np),np.add=oQ,np.attempt=oR,np.camelCase=ox,np.capitalize=ow,np.ceil=o0,np.clamp=function(t,e,n){return i===n&&(n=e,e=i),i!==n&&(n=(n=a9(n))==n?n:0),i!==e&&(e=(e=a9(e))==e?e:0),nR(a9(t),e,n)},np.clone=function(t){return nM(t,4)},np.cloneDeep=function(t){return nM(t,5)},np.cloneDeepWith=function(t,e){return nM(t,5,e="function"==typeof e?e:i)},np.cloneWith=function(t,e){return nM(t,4,e="function"==typeof e?e:i)},np.conformsTo=function(t,e){return null==e||nN(t,e,of(e))},np.deburr=oT,np.defaultTo=function(t,e){return null==t||t!=t?e:t},np.divide=o1,np.endsWith=function(t,e,n){t=ot(t),e=rS(e);var r=t.length,a=n=i===n?r:nR(a8(n),0,r);return(n-=e.length)>=0&&t.slice(n,a)==e},np.eq=aI,np.escape=function(t){return t=ot(t),t&&W.test(t)?t.replace(z,eB):t},np.escapeRegExp=function(t){return t=ot(t),t&&Q.test(t)?t.replace(Z,"\\$&"):t},np.every=function(t,e,n){var r=aN(t)?ed:n$;return n&&ix(t,e,n)&&(e=i),r(t,id(e,3))},np.find=al,np.findIndex=iW,np.findKey=function(t,e){return eC(t,id(e,3),nY)},np.findLast=ac,np.findLastIndex=iV,np.findLastKey=function(t,e){return eC(t,id(e,3),nX)},np.floor=o2,np.forEach=au,np.forEachRight=ad,np.forIn=function(t,e){return null==t?t:nW(t,id(e,3),og)},np.forInRight=function(t,e){return null==t?t:nV(t,id(e,3),og)},np.forOwn=function(t,e){return t&&nY(t,id(e,3))},np.forOwnRight=function(t,e){return t&&nX(t,id(e,3))},np.get=ol,np.gt=aD,np.gte=aR,np.has=function(t,e){return null!=t&&ib(t,e,n0)},np.hasIn=oc,np.head=iX,np.identity=oB,np.includes=function(t,e,n,r){t=aF(t)?t:oS(t),n=n&&!r?a8(n):0;var i=t.length;return n<0&&(n=e5(i+n,0)),aQ(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&ex(t,e,n)>-1},np.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var i=null==n?0:a8(n);return i<0&&(i=e5(r+i,0)),ex(t,e,i)},np.inRange=function(t,e,n){var r,a,o;return e=a4(e),i===n?(n=e,e=0):n=a4(n),(r=t=a9(t))>=e3(a=e,o=n)&&r<e5(a,o)},np.invoke=oh,np.isArguments=aM,np.isArray=aN,np.isArrayBuffer=aj,np.isArrayLike=aF,np.isArrayLikeObject=aB,np.isBoolean=function(t){return!0===t||!1===t||aY(t)&&nZ(t)==f},np.isBuffer=aG,np.isDate=a$,np.isElement=function(t){return aY(t)&&1===t.nodeType&&!aq(t)},np.isEmpty=function(t){if(null==t)return!0;if(aF(t)&&(aN(t)||"string"==typeof t||"function"==typeof t.splice||aG(t)||a1(t)||aM(t)))return!t.length;var e=i_(t);if(e==b||e==w)return!t.size;if(ik(t))return!n7(t).length;for(var n in t)if(tD.call(t,n))return!1;return!0},np.isEqual=function(t,e){return n4(t,e)},np.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return i===r?n4(t,e,i,n):!!r},np.isError=aH,np.isFinite=function(t){return"number"==typeof t&&e0(t)},np.isFunction=az,np.isInteger=aU,np.isLength=aW,np.isMap=aX,np.isMatch=function(t,e){return t===e||n8(t,e,ig(e))},np.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,n8(t,e,ig(e),n)},np.isNaN=function(t){return aK(t)&&t!=+t},np.isNative=function(t){if(iA(t))throw new tC("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return n6(t)},np.isNil=function(t){return null==t},np.isNull=function(t){return null===t},np.isNumber=aK,np.isObject=aV,np.isObjectLike=aY,np.isPlainObject=aq,np.isRegExp=aJ,np.isSafeInteger=function(t){return aU(t)&&t>=-9007199254740991&&t<=9007199254740991}
vendor: 4,482 bytes, line 1
1,np.isSet=aZ,np.isString=aQ,np.isSymbol=a0,np.isTypedArray=a1,np.isUndefined=function(t){return i===t},np.isWeakMap=function(t){return aY(t)&&i_(t)==k},np.isWeakSet=function(t){return aY(t)&&"[object WeakSet]"==nZ(t)},np.join=function(t,e){return null==t?"":e1.call(t,e)},np.kebabCase=oA,np.last=iZ,np.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var a=r;return i!==n&&(a=(a=a8(n))<0?e5(r+a,0):e3(a,r-1)),e==e?function(t,e,n){for(var r=n+1;r--&&t[r]!==e;);return r}(t,e,a):eS(t,eT,a,!0)},np.lowerCase=ok,np.lowerFirst=oE,np.lt=a2,np.lte=a5,np.max=function(t){return t&&t.length?nH(t,oB,nQ):i},np.maxBy=function(t,e){return t&&t.length?nH(t,id(e,2),nQ):i},np.mean=function(t){return eA(t,oB)},np.meanBy=function(t,e){return eA(t,id(e,2))},np.min=function(t){return t&&t.length?nH(t,oB,rt):i},np.minBy=function(t,e){return t&&t.length?nH(t,id(e,2),rt):i},np.stubArray=oJ,np.stubFalse=oZ,np.stubObject=function(){return{}},np.stubString=function(){return""},np.stubTrue=function(){return!0},np.multiply=o5,np.nth=function(t,e){return t&&t.length?ra(t,a8(e)):i},np.noConflict=function(){return t8._===this&&(t8._=tF),this},np.noop=oU,np.now=a_,np.pad=function(t,e,n){t=ot(t);var r=(e=a8(e))?eV(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return r2(eJ(i),n)+t+r2(eE(i),n)},np.padEnd=function(t,e,n){t=ot(t);var r=(e=a8(e))?eV(t):0;return e&&r<e?t+r2(e-r,n):t},np.padStart=function(t,e,n){t=ot(t);var r=(e=a8(e))?eV(t):0;return e&&r<e?r2(e-r,n)+t:t},np.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),e8(ot(t).replace(tt,""),e||0)},np.random=function(t,e,n){if(n&&"boolean"!=typeof n&&ix(t,e,n)&&(e=n=i),i===n&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),i===t&&i===e?(t=0,e=1):(t=a4(t),i===e?(e=t,t=0):e=a4(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var a=e6();return e3(t+a*(e-t+t2("1e-"+((a+"").length-1))),e)}return ru(t,e)},np.reduce=function(t,e,n){var r=aN(t)?em:eO,i=arguments.length<3;return r(t,id(e,4),n,i,nB)},np.reduceRight=function(t,e,n){var r=aN(t)?e_:eO,i=arguments.length<3;return r(t,id(e,4),n,i,nG)},np.repeat=function(t,e,n){return e=(n?ix(t,e,n):i===e)?1:a8(e),rd(ot(t),e)},np.replace=function(){var t=arguments,e=ot(t[0]);return t.length<3?e:e.replace(t[1],t[2])},np.result=function(t,e,n){e=rI(e,t);var r=-1,a=e.length;for(a||(a=1,t=i);++r<a;){var o=null==t?i:t[iB(e[r])];i===o&&(r=a,o=n),t=az(o)?o.call(t):o}return t},np.round=o3,np.runInContext=t,np.sample=function(t){return(aN(t)?nA:function(t){return nA(oS(t))})(t)},np.size=function(t){if(null==t)return 0;if(aF(t))return aQ(t)?eV(t):t.length;var e=i_(t);return e==b||e==w?t.size:n7(t).length},np.snakeCase=oO,np.some=function(t,e,n){var r=aN(t)?eb:rm;return n&&ix(t,e,n)&&(e=i),r(t,id(e,3))},np.sortedIndex=function(t,e){return r_(t,e)},np.sortedIndexBy=function(t,e,n){return rb(t,e,id(n,2))},np.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=r_(t,e);if(r<n&&aI(t[r],e))return r}return -1},np.sortedLastIndex=function(t,e){return r_(t,e,!0)},np.sortedLastIndexBy=function(t,e,n){return rb(t,e,id(n,2),!0)},np.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=r_(t,e,!0)-1;if(aI(t[n],e))return n}return -1},np.startCase=oP,np.startsWith=function(t,e,n){return t=ot(t),n=null==n?0:nR(a8(n),0,t.length),e=rS(e),t.slice(n,n+e.length)==e},np.subtract=o4,np.sum=function(t){return t&&t.length?eP(t,oB):0},np.sumBy=function(t,e){return t&&t.length?eP(t,id(e,2)):0},np.template=function(t,e,n){var r=np.templateSettings;n&&ix(t,e,n)&&(e=i),t=ot(t),e=or({},e,r,it);var a,o,s=or({},e.imports,r.imports,it),l=of(s),c=eR(s,l),u=0,d=e.interpolate||tv,h="__p += '",f=tT((e.escape||tv).source+"|"+d.source+"|"+(d===X?tl:tv).source+"|"+(e.evaluate||tv).source+"|$","g"),g="//# sourceURL="+(tD.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tZ+"]")+"\n";t.replace(f,function(e,n,r,i,s,l){return r||(r=i),h+=t.slice(u,l).replace(tm,eG),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),h+="';\n";var p=tD.call(e,"variable")&&e.variable;if(p){if(to.test(p))throw new tC("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(B,""):h).replace(G,"$1").replace($,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1\n")+h+"return __p\n}";var v=oR(function(){return tS(l,g+"return "+h).apply(i,c)});if(v.source=h,aH(v))throw v;return v},np.times=function(t,e){if((t=a8(t))<1||t>9007199254740991)return[];var n=4294967295,r=e3(t,4294967295);e=id(e),t-=4294967295;for(var i=eL(r,e);++n<t;)e(n);return i},np.toFinite=a4,np.toInteger=a8,np.toLength=a6,np.toLower=function(t){return ot(t).toLowerCase()},np.toNumber=a9,np.toSafeInteger=function(t){return t?nR(a8(t),-9007199254740991,9007199254740991):0===t?t:0},np.toString=ot,np.toUpper=function(t){return ot(t).toUpperCase()},np.trim=function(t,e,n){if((t=ot(t))&&(n||i===e))return eI(t);if(!t||!(e=rS(e)))return t;var r=eY(t),a=eY(e),o=eN(r,a),s=ej(r,a)+1;return rD(r,o,s).join("")},np.trimEnd=function(t,e,n){if((t=ot(t))&&(n||i===e))return t.slice(0,eX(t)+1);if(!t||!(e=rS(e)))return t;var r=eY(t),a=ej(r,eY(e))+1;return rD(r,0,a).join("")},np.trimStart=function(t,e,n){if((t=ot(t))&&(n||i===e))return t.replace(tt,"");if(!t||!(e=rS(e)))return t;var r=eY(t),a=eN(r,eY(e));return rD(r,a).join("")},np.truncate=function(t,e){var n=30,r="...";if(aV(e)){var a="separator"in e?e.separator:a;n="length"in e?a8(e.length):n,r="omission"in e?rS(e.omission):r}var o=(t=ot(t)).length;if(e$(t)){var s=eY(t);o=s.length}if(n>=o)return t;var l=n-eV(r);if(l<1)return r;var c=s?rD(s,0,l).join(""):t.slice(0,l);if(i===a)return c+r;if(s&&(l+=c.length-l),aJ(a)){if(t.slice(l).search(a)){var u,d=c;for(a.global||(a=tT(a.source,ot(tc.exec(a))+"g")),a.lastIndex=0;u=a.exec(d);)var h=u.index;c=c.slice(0,i===h?l:h)}}else if(t.indexOf(rS(a),l)!=l){var f=c.lastIndexOf(a);f>-1&&(c=c.slice(0,f))}return c+r},np.unescape=function(t){return t=ot(t),t&&U.test(t)?t.replace(H,eK):t},np.uniqueId=function(t){var e=++tR;return ot(t)+e},np.upperCase=oL,np.upperFirst=oI,np.each=au,np.eachRight=ad,np.first=iX,oz(np,(t_={},nY(np,function(t,e){tD.call(np.prototype,e)||(t_[e]=t)}),t_),{chain:!1}),np.VERSION="4.17.21",eu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){np[t].placeholder=np}),eu(["drop","take"],function(t,e){nb.prototype[t]=function(n){n=i===n?1:e5(a8(n),0);var r=this.__filtered__&&!e?new nb(this):this.clone();return r.__filtered__?r.__takeCount__=e3(n,r.__takeCount__):r.__views__.push({size:e3(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},nb.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),eu(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;nb.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:id(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),eu(["head","last"],function(t,e){var n="take"+(e?"Right":"");nb.prototype[t]=function(){return this[n](1).value()[0]}}),eu(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");nb.prototype[t]=function(){return this.__filtered__?new nb(this):this[n](1)}}),nb.prototype.compact=function(){return this.filter(oB)},nb.prototype.find=function(t){return this.filter(t).head()},nb.prototype.findLast=function(t){return this.reverse().find(t)},nb.prototype.invokeMap=rh(function(t,e){return"function"==typeof t?new nb(this):this.map(function(n){return n5(n,t,e)})}),nb.prototype.reject=function(t){return this.filter(ak(id(t)))},nb.prototype.slice=function(t,e){t=a8(t);var n=this;return n.__filtered__&&(t>0||e<0)?new nb(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),i!==e&&(n=(e=a8(e))<0?n.dropRight(-e):n.take(e-t)),n)},nb.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},nb.prototype.toArray=function(){return this.take(4294967295)},nY(nb.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),a=np[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);a&&(np.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,l=e instanceof nb,c=s[0],u=l||aN(e),d=function(t){var e=a.apply(np,ev([t],s));return r&&h?e[0]:e};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,g=o&&!h,p=l&&!f;if(!o&&u){e=p?e:new nb(this);var v=t.apply(e,s);return v.__actions__.push({func:aa,args:[d],thisArg:i}),new n_(v,h)}return g&&p?t.apply(this,s):(v=this.thru(d),g?r?v.value()[0]:v.value():v)})}),eu(["pop","push","shift","sort","splice","unshift"],function(t){var e=tE[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);np.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(aN(i)?i:[],t)}return this[n](function(n){return e.apply(aN(n)?n:[],t)})}}),nY(nb.prototype,function(t,e){var n=np[e];if(n){var r=n.name+"";tD.call(no,r)||(no[r]=[]),no[r].push({name:e,func:n})}}),no[rZ(i,2).name]=[{name:"wrapper",func:i}],nb.prototype.clone=function(){var t=new nb(this.__wrapped__);return t.__actions__=r$(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=r$(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=r$(this.__views__),t},nb.prototype.reverse=function(){if(this.__filtered__){var t=new nb(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t},nb.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=aN(t),r=e<0,i=n?t.length:0,a=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=e3(e,t+o);break;case"takeRight":t=e5(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,h=0,f=e3(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return rk(t,this.__actions__);var g=[];t:for(;l--&&h<f;){for(var p=-1,v=t[c+=e];++p<d;){var m=u[p],b=m.iteratee,y=m.type,C=b(v);if(2==y)v=C;else if(!C){if(1==y)continue t;break t}}g[h++]=v}return g},np.prototype.at=ao,np.prototype.chain=function(){return ai(this)},np.prototype.commit=function(){return new n_(this.value(),this.__chain__)},np.prototype.next=function(){i===this.__values__&&(this.__values__=a3(this.value()));var t=this.__index__>=this.__values__.length,e=t?i:this.__values__[this.__index__++];return{done:t,value:e}},np.prototype.plant=function(t){for(var e,n=this;n instanceof nm;){var r=i$(n);r.__index__=0,r.__values__=i,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e},np.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof nb){var e=t;return this.__actions__.length&&(e=new nb(this)),(e=e.reverse()).__actions__.push({func:aa,args:[i2],thisArg:i}),new n_(e,this.__chain__)}return this.thru(i2)},np.prototype.toJSON=np.prototype.valueOf=np.prototype.value=function(){return rk(this.__wrapped__,this.__actions__)},np.prototype.first=np.prototype.head,t4&&(np.prototype[t4]=function(){return this}),np}();t8._=eq,i!==(r=(function(){return eq}).call(e,n,e,t))&&(t.exports=r)}).call(this)},9530:t=>{t.exports=t=>"data:image/svg+xml,"+encodeURIComponent(t).replace(/'/g,"%27").replace(/"/g,"%22")},4991:t=>{var e="undefined"!=typeof process&&process.pid?process.pid.toString(36):"";function n(){var t=Date.now(),e=n.last||t;return n.last=t>e?t:e+1}t.exports=t.exports.default=function(t,r){return(t||"")+""+e+n().toString(36)+(r||"")},t.exports.process=function(t,r){return(t||"")+e+n().toString(36)+(r||"")},t.exports.time=function(t,e){return(t||"")+n().toString(36)+(e||"")}},2102:function(t,e,n){/*! 2 * vue-konva v2.1.7 - https://github.com/konvajs/vue-konva#readme 3 * MIT Licensed 4 */(function(e,r){t.exports=r(n(5055),n(361))})(this,function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
4),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,(function(e){return t[e]}).bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){t.exports=n(3)},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r);function a(t){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}var o={key:!0,style:!0,elm:!0,isRootInsert:!0},s=".vue-konva-event";function l(t,e,n,r){void 0===e&&(e={}),void 0===n&&(n={});var i=t._konvaNode,l={},c=!1;for(var u in n)if(!o[u]){var d="on"===u.slice(0,2),h=n[u]!==e[u];if(d&&h){var f=u.substr(2).toLowerCase();"content"===f.substr(0,7)&&(f="content"+f.substr(7,1).toUpperCase()+f.substr(8)),i.off(f+s,n[u])}e.hasOwnProperty(u)||i.setAttr(u,void 0)}for(var g in e)if(!o[g]){var p="on"===g.slice(0,2),v=n[g]!==e[g];if(p&&v){var m=g.substr(2).toLowerCase();"content"===m.substr(0,7)&&(m="content"+m.substr(7,1).toUpperCase()+m.substr(8)),e[g]&&(i.off(m+s),i.on(m+s,e[g]))}!p&&(e[g]!==n[g]||r&&e[g]!==i.getAttr(g))&&(c=!0,l[g]=e[g])}c&&(i.setAttrs(l),a(i))}var c="_konvaNode";function u(t){var e={};return Object.keys(t).forEach(function(n){e["on"+n]=t[n]}),e}function d(t,e){var n=!1,r=t.componentOptions.children||[],i=[];r.forEach(function(t){var e=function t(e){return e?e.$options[c]?e.getNode():0===e.$children.length?null:t(e.$children[0]):null}(t.componentInstance);e&&i.push(e);var n=t.elm,r=t.componentInstance;n&&n.tagName&&r&&!e&&console.error('vue-konva error: You are trying to render "'+(n&&n.tagName.toLowerCase())+'" inside your component tree. Looks like it is not a Konva node. You can render only Konva components inside the Stage.')}),i.forEach(function(t,e){t.getZIndex()!==e&&(t.setZIndex(e),n=!0)}),n&&a(e)}function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var f=i.a.component("v-stage",{render:function(t){return t("div",this.$slots.default)},watch:{config:{handler:function(t){this.uploadKonva()},deep:!0}},props:{config:{type:Object,default:function(){return{}}},__useStrictMode:{type:Boolean}},created:function(){this._konvaNode=new window.Konva.Stage({width:this.config.width,height:this.config.height,container:document.createElement("div")})},mounted:function(){this.$el.innerHTML="",this._konvaNode.container(this.$el),this.uploadKonva(),this.validateChildren()},updated:function(){this.uploadKonva(),this.uploadKonva(),d(this.$vnode,this._konvaNode)},beforeDestroy:function(){this._konvaNode.destroy()},methods:{getNode:function(){return this._konvaNode},getStage:function(){return this._konvaNode},uploadKonva:function(){var t=this.oldProps||{},e=h({},this.$attrs,this.config,u(this.$listeners));l(this,e,t,this.__useStrictMode),this.oldProps=e},validateChildren:function(){}}});function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var p={Group:!0,Layer:!0,FastLayer:!0,Label:!0},v=function(t){var e;return(e={})[c]=!0,e.render=function(e){return p[t]?e("template",this.$slots.default):null},e.watch={config:{handler:function(t){this.uploadKonva()},deep:!0}},e.props={config:{type:Object,default:function(){return{}}},__useStrictMode:{type:Boolean}},e.created=function(){this.initKonva()},e.mounted=function(){(function t(e){return e._konvaNode?e:e.$parent?t(e.$parent):{}})(this.$parent)._konvaNode.add(this._konvaNode),a(this._konvaNode)},e.updated=function(){this.uploadKonva(),d(this.$vnode,this._konvaNode)},e.destroyed=function(){a(this._konvaNode),this._konvaNode.destroy(),this._konvaNode.off(".vue-konva-event")},e.methods={getNode:function(){return this._konvaNode}
4,getStage:function(){return this._konvaNode},initKonva:function(){var e=window.Konva[t];if(!e){console.error("vue-konva error: Can not find node "+t);return}this._konvaNode=new e,this._konvaNode.VueComponent=this,this.uploadKonva()},uploadKonva:function(){var t=this.oldProps||{},e=g({},this.$attrs,this.config,u(this.$listeners));l(this,e,t,this.__useStrictMode),this.oldProps=e}},e};"undefined"==typeof window||window.Konva||n(2);var m=[{name:"Stage",component:f}].concat(["Layer","FastLayer","Group","Label","Rect","Circle","Ellipse","Wedge","Line","Sprite","Image","Text","TextPath","Star","Ring","Arc","Tag","Path","RegularPolygon","Arrow","Shape","Transformer"].map(function(t){return{name:t,component:v(t)}})),b={install:function(t,e){var n="v";e&&e.prefix&&(n=e.prefix),m.forEach(function(e){t.component(""+n+e.name,e.component)})}};e.default=b,"undefined"!=typeof window&&window.Vue&&window.Vue.use(b)}]).default})},9874:function(t,e,n){(function(e,r){t.exports=r(n(5055))})("undefined"!=typeof self?self:this,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,(function(e){return t[e]}).bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"091b":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i,a=(i=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),"/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i)," */"));return[n].concat(r.sources.map(function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")})).concat([a]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n}).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},2638:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)}var i=["attrs","props","domProps"],a=["class","style","directives"],o=["on","nativeOn"],s=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce(function(t,e){for(var n in e)if(t[n]){if(-1!==i.indexOf(n))t[n]=r({},t[n],e[n]);else if(-1!==a.indexOf(n)){var l=t[n]instanceof Array?t[n]:[t[n]],c=e[n]instanceof Array?e[n]:[e[n]];t[n]=l.concat(c)}else if(-1!==o.indexOf(n))for(var u in e[n])if(t[n][u]){var d=t[n][u]instanceof Array?t[n][u]:[t[n][u]],h=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=d.concat(h)}else t[n][u]=e[n][u];else if("hook"==n)for(var f in e[n])t[n][f]=t[n][f]?s(t[n][f],e[n][f]):e[n][f];else t[n]=e[n]}else t[n]=e[n];return t},{})}},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var a=e[i],o=a[0],s={id:t+":"+i,css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}n.r(e),n.d(e,"default",function(){return p});var i,a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw 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 o={},s=a&&(document.head||document.getElementsByTagName("head")[0]),l=null,c=0,u=!1,d=function(){},h=null,f="data-vue-ssr-id",g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){u=n,h=i||{};var a=r(t,e);return v(a),function(e){for(var n=[],i=0;i<a.length;i++){var s=o[a[i].id];s.refs--,n.push(s)}for(e?v(a=r(t,e)):a=[],i=0;i<n.length;i++)if(0===(s=n[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;
4i++)r.parts.push(b(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(b(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function b(t){var e,n,r=document.querySelector("style["+f+'~="'+t.id+'"]');if(r){if(u)return d;r.parentNode.removeChild(r)}if(g){var i=c++;e=C.bind(null,r=l||(l=m()),i,!1),n=C.bind(null,r,i,!0)}else e=S.bind(null,r=m()),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){r?(r.css!==t.css||r.media!==t.media||r.sourceMap!==t.sourceMap)&&e(t=r):n()}}var y=(i=[],function(t,e){return i[t]=e,i.filter(Boolean).join("\n")});function C(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var a=document.createTextNode(i),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function S(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(f,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4abb":function(t,e,n){var r=n("7a57");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("b2af7572",r,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,n){var r=n("091b");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("2f6bee1a",r,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,n){var r=n("eef2");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("499e").default)("1209fd47",r,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n("8bbf"))&&"object"==typeof r&&"default"in r?r.default:r,a="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function o(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach(function(r){var i=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,i,t,n):Reflect.defineMetadata(r,i,t)})}var s=({__proto__:[]})instanceof Array,l=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function c(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach(function(t){if("constructor"!==t){if(l.indexOf(t)>-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"==typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return(e={})[t]=r.value,e}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}}}),(e.mixins||(e.mixins=[])).push({data:function(){var e,n,r,i;return e=this,n=t.prototype._init,t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||n.push(r);n.forEach(function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})})},r=new t,t.prototype._init=n,i={},Object.keys(r).forEach(function(t){void 0!==r[t]&&(i[t]=r[t])}),i}});var r=t.__decorators__;r&&(r.forEach(function(t){return t(e)}),delete t.__decorators__);var c=Object.getPrototypeOf(t.prototype),u=c instanceof i?c.constructor:i,d=u.extend(e);return function(t,e,n){Object.getOwnPropertyNames(e).forEach(function(r){if("prototype"!==r){var i=Object.getOwnPropertyDescriptor(t,r);if(!i||i.configurable){var a=Object.getOwnPropertyDescriptor(e,r);if(!s){if("cid"===r)return;var o,l,c=Object.getOwnPropertyDescriptor(n,r);if(l=typeof(o=a.value),null!=o&&("object"===l||"function"===l)&&c&&c.value===a.value)return}Object.defineProperty(t,r,a)}}})}(d,t,u),a&&(o(d,t),Object.getOwnPropertyNames(t.prototype).forEach(function(e){o(d.prototype,t.prototype,e)}),Object.getOwnPropertyNames(t).forEach(function(e){o(d,t,e)})),d}function u(t){return"function"==typeof t?c(t):function(e){return c(e,t)}}u.registerHooks=function(t){l.push.apply(l,t)},e.default=u,e.createDecorator=function(t){return function(e,n,r){var i="function"==typeof e?e:e.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push(function(e){return t(e,n,r)})}},e.mixins=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.extend({mixins:t})}},"7a57":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,n){var r,i,a;(function(n,o){i=[],void 0===(a="function"==typeof(r=o)?r.apply(e,i):r)||(t.exports=a)})("undefined"!=typeof self&&self,function(){return function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");
4if(!e&&"currentScript"in document&&document.currentScript||e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw Error()}catch(t){var n,r,i,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(t.stack),o=a&&a[1]||!1,s=a&&a[2]||!1,l=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");o===l&&(n=document.documentElement.outerHTML,r=RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var u=0;u<c.length;u++)if("interactive"===c[u].readyState||c[u].src===o||o===l&&c[u].innerHTML&&c[u].innerHTML.trim()===i)return c[u];return null}}})},"8bbf":function(e,n){e.exports=t},eef2:function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ERROR_TYPE",function(){return H}),n.d(e,"VueSliderMark",function(){return M}),n.d(e,"VueSliderDot",function(){return k}),"undefined"!=typeof window){var r,i,a,o,s,l,c,u,d=window.document.currentScript,h=n("8875");d=h(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:h});var f=d&&d.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);f&&(n.p=f[1])}var g=n("2638"),p=n.n(g);function v(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}var m=n("8bbf"),b=n.n(m),y=n("65d9"),C=n.n(y);function S(t){return void 0===t&&(t={}),Object(y.createDecorator)(function(e,n){(e.props||(e.props={}))[n]=t})}function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4ed8");var k=(I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(a,t);var e,n,r,i=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n,r=A(a);if(e){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(t=n)&&("object"===x(t)||"function"==typeof t)?t:function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this)});function a(){return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,attrs:{"aria-valuetext":this.tooltipValue},on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":default:return!1;case"focus":case"active":return!!this.focus}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}],w(a.prototype,n),r&&w(a,r),a}(b.a),v([S({default:0})],I.prototype,"value",void 0),v([S()],I.prototype,"tooltip",void 0),v([S()],I.prototype,"dotStyle",void 0),v([S()],I.prototype,"tooltipStyle",void 0),v([S({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],I.prototype,"tooltipPlacement",void 0),v([S({type:[String,Function]})],I.prototype,"tooltipFormatter",void 0),v([S({type:Boolean,default:!1})],I.prototype,"focus",void 0),v([S({default:!1})],I.prototype,"disabled",void 0),I=v([C.a],I));function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
4function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("556c");var I,D,R,M=(D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(a,t);var e,n,r,i=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n,r=L(a);if(e){var i=L(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(t=n)&&("object"===E(t)||"function"==typeof t)?t:function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this)});function a(){return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}],O(a.prototype,n),r&&O(a,r),a}(b.a),v([S({required:!0})],D.prototype,"mark",void 0),v([S(Boolean)],D.prototype,"hideLabel",void 0),v([S()],D.prototype,"stepStyle",void 0),v([S()],D.prototype,"stepActiveStyle",void 0),v([S()],D.prototype,"labelStyle",void 0),v([S()],D.prototype,"labelActiveStyle",void 0),D=v([C.a],D)),N=function(t){return"number"==typeof t?"".concat(t,"px"):t},j=function(t){var e=document.documentElement,n=document.body,r=t.getBoundingClientRect();return{y:r.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:r.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}},F=function(t,e,n){var r="targetTouches"in t?t.targetTouches[0]:t,i=j(e),a={x:r.pageX-i.x,y:r.pageY-i.y};return{x:n?e.offsetWidth-a.x:a.x,y:n?e.offsetHeight-a.y:a.y}};(function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"})(R||(R={}));var B=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case R.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case R.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case R.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case R.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case R.END:return function(){return e.max};case R.HOME:return function(){return e.min};case R.PAGE_UP:return function(t){return t+10};case R.PAGE_DOWN:return function(t){return t-10};default:return null}};function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var $,H,z=function(){var t,e;function n(t){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,n),this.num=t}return t=[{key:"decimal",value:function(t,e){var n=this.num,r=this.getDecimalLen(n),i=this.getDecimalLen(t),a=0;switch(e){case"+":a=this.getExponent(r,i),this.num=(this.safeRoundUp(n,a)+this.safeRoundUp(t,a))/a;break;case"-":a=this.getExponent(r,i),this.num=(this.safeRoundUp(n,a)-this.safeRoundUp(t,a))/a;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(r)),this.safeRoundUp(t,this.getExponent(i)))/this.getExponent(r+i);break;case"/":a=this.getExponent(r,i),this.num=this.safeRoundUp(n,a)/this.safeRoundUp(t,a);break;case"%":a=this.getExponent(r,i),this.num=this.safeRoundUp(n,a)%this.safeRoundUp(t,a)/a}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}],G(n.prototype,t),e&&G(n,e),n}();function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function W(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||V(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(t,e){if(t){if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(t,e):void 0}}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}(function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"})(H||(H={}));var q=(K($={}
4,H.VALUE,'The type of the "value" is illegal'),K($,H.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),K($,H.MIN,'The "value" must be greater than or equal to the "min".'),K($,H.MAX,'The "value" must be less than or equal to the "max".'),K($,H.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),$),J=function(){var t,e;function n(t){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,n),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(H.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}return t=[{key:"setValue",value:function(t){var e=this;this.setDotsValue(Array.isArray(t)?this.order?W(t).sort(function(t,n){return e.getIndexByValue(t)-e.getIndexByValue(n)}):W(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?W(t).sort(function(t,e){return t-e}):t;this.dotsPos=n,this.setDotsValue(n.map(function(t){return e.getValueByPos(t)}),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach(function(r){var i=Math.abs(r.pos-t);i<n&&(n=i,e=r.value)})}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map(function(e){return t.parseValue(e)})}},{key:"getRecentDot",value:function(t){var e=this,n=this.dotsPos.filter(function(t,n){return!(e.getDotOption(n)&&e.getDotOption(n).disabled)}).map(function(e){return Math.abs(e-t)});return n.indexOf(Math.min.apply(Math,W(n)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new z(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new z(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var n=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];if(n){var r=Array(this.dotsPos.length);this.fixed?r=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?r=this.getLimitRangeChangePosArr(t,n,e):r[e]=n,this.setDotsPos(this.dotsPos.map(function(t,e){return t+(r[e]||0)}))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach(function(r,i){if(i!==e){var a=n.getValidPos(r+t,i),o=a.pos;a.inRange||(t=Math.min(Math.abs(o-r),Math.abs(t))*(t<0?-1:1))}}),this.dotsPos.map(function(e){return t})}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var r=this,i=[{index:n,changePos:e}];return[this.minRange,this.maxRange].forEach(function(a,o){if(!a)return!1;for(var s,l=0===o,c=e>0,u=0,d=n+(u=l?c?1:-1:c?-1:1),h=r.dotsPos[d],f=t;r.isPos(h)&&(s=Math.abs(h-f),l?s<r.minRangeDir:s>r.maxRangeDir);){var g=r.getValidPos(h+e,d).pos;i.push({index:d,changePos:g-h}),d+=u,f=g,h=r.dotsPos[d]}}),this.dotsPos.map(function(t,e){var n=i.filter(function(t){return t.index===e});return n.length?n[0].changePos:0})}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],r=!0;return t<n[0]?(t=n[0],r=!1):t>n[1]&&(t=n[1],r=!1),{pos:t,inRange:r}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(H.MIN),0;if(t>this.max)return this.emitError(H.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(H.VALUE),0;t=new z(t).minus(this.min).divide(this.interval).toNumber()}var e=new z(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some(function(e){var n=function(t){if(Array.isArray(t))return t}(e)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,2)||V(e,2)||function(){throw TypeError("Invalid attempt to de
4structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n[1];return t>=r&&t<=i})}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new z(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new z(t).divide(new z(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,q[t])}},{key:"getDotOption",value:function(t){return Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var r=this.getDotOption(t);return r&&void 0!==r[e]?this.parseValue(r[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var r=t.parseValue(e);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach(function(e){K(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({pos:r,value:e,label:e,active:t.isActiveByPos(r)},n)};return!0===this.marks?this.getValues().map(function(t){return e(t)}):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort(function(t,e){return+t-+e}).map(function(n){var r=t.marks[n];return e(n,"string"!=typeof r?r:{label:r})}):Array.isArray(this.marks)?this.marks.map(function(t){return e(t)}):"function"==typeof this.marks?this.getValues().map(function(e){return{value:e,result:t.marks(e)}}).filter(function(t){return!!t.result}).map(function(t){return e(t.value,t.result)}):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,W(this.dotsPos)),Math.max.apply(Math,W(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return(t=this.data?this.data.length-1:new z(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(H.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach(function(r,i){n.push([Math.max(t.minRange?t.minRangeDir*i:0,t.enableCross?0:e[i-1]||0,t.getDotRange(i,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-i):100,t.enableCross?100:e[i+1]||100,t.getDotRange(i,"max",100))])}),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map(function(e){return t.getIndexByValue(e)})}}],X(n.prototype,t),e&&X(n,e),n}();function Z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Q=function(){var t,e;function n(t){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,n),this.states=0,this.map=t}return t=[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}],Z(n.prototype,t),e&&Z(n,e),n}();function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(t,e)||ta(t,e)||function(){throw TypeError("Invalid attempt to de
4structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach(function(e){tr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function tr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ti(t){return function(t){if(Array.isArray(t))return to(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||ta(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ta(t,e){if(t){if("string"==typeof t)return to(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?to(t,e):void 0}}function to(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ts(t){return(ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tc(t,e){return(tc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tu(t){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4abb");var td={None:0,Drag:2,Focus:4},th=(r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tc(t,e)}(a,t);var e,n,r,i=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n,r=tu(a);if(e){var i=tu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(t=n)&&("object"===ts(t)||"function"==typeof t)?t:function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this)});function a(){var t;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,a),t=i.apply(this,arguments),t.states=new Q(td),t.scale=1,t.focusDotIndex=0,t}return n=[{key:"isObjectData",value:function(t){return!!t&&"[object Object]"===Object.prototype.toString.call(t)}},{key:"isObjectArrayData",value:function(t){return!!t&&Array.isArray(t)&&t.length>0&&"object"===ts(t[0])}},{key:"onValueChanged",value:function(){this.control&&!this.states.has(td.Drag)&&this.isNotSync&&(this.control.setValue(this.value),this.syncValueByPos())}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove,{passive:!1}),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){var t=new z(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));void 0!==this.zoom&&t.multiply(this.zoom),t.divide(100),this.scale=t.toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new J({value:this.value,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),this.syncValueByPos(),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(function(e){t.$wat
4ch(e,function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every(function(e,n){return e===t.control.data[n]}))return!1;switch(e){case"data":case"dataLabel":case"dataValue":t.control.data=t.sliderData;break;case"mark":t.control.marks=t.sliderMarks;break;default:t.control[e]=n}["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()})})}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:ti(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some(function(t,n){return t!==e[n]})}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),n=this.control.getRecentDot(e);!this.dots[n].disabled&&(this.dragStart(n),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos())}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(td.Drag),this.states.add(td.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(td.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:ti(n),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;if(n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex){var r=this.$refs["dot-".concat(this.focusDotIndex)];r&&r.$el&&r.$el.focus(),this.control.setDotPos(n,e)}}}},{key:"dragEnd",value:function(t){var e=this;if(!this.states.has(td.Drag))return!1;setTimeout(function(){e.lazy&&e.syncValueByPos(),e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos(),e.states.delete(td.Drag),e.useKeyboard&&!("targetTouches"in t)||e.states.delete(td.Focus),e.$emit("drag-end",e.focusDotIndex)})}},{key:"blurHandle",value:function(t){if(!this.states.has(td.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(td.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(td.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(td.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(td.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?ti(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map(function(t){return e.control.getValueByIndex(t)}):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(td.Focus),setTimeout(function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()})}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(td.Focus))return!1;var n=this.included&&this.marks,r=B(t,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(r){t.preventDefault();var i=-1,a=0;n?(this.control.markList.some(function(t,n){return t.value===e.control.dotsValue[e.focusDotIndex]&&(i=r(n),!0)}),i<0?i=0:i>this.control.markList.length-1&&(i=this.control.markList.length-1),a=this.control.markList[i].pos):(i=r(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),a=this.control.parseValue(this.control.getValueByIndex(i))),this.isCrossDot(a),this.control.setDotPos(a,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return F(t,this.$refs.rail,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,r){var i=this.$createElement,a=this.$scopedSlots[t];return a?r?a(e):i("template",{slot:t},[a(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",p()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{ref:"rail",class:"vue-slider-rail",style:this.railStyle},[this.processArray.map(function(n,r){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(r),style:n.style}),!0)}),this.sliderMarks?e("div",{class:"vue-slider-marks"},[this.control.markList.map(function(n,r){var i;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(r),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(tr(i={},t.isHorizontal?"height":"width","100%"),tr(i,t.isHorizontal?"width":"height",t.tailSize),tr(i,t.mainDirection,"".concat(n.pos,"%")),i),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)})]):null,this.dots.map(function(n,r){var i;return e("vue-slider-dot",{ref:"dot-".concat(r),key:"dot-".concat(r),attrs:tn({value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.sliderTooltipFormatter)?t.sliderTooltipFormatter[r]:t.sliderTooltipFormatter,"tooltip-placement":t.tooltipDirections[r],role:"slider","aria-valuenow":n.value,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.isHorizontal?"horizontal":"vertical",tabindex:"0"},t.dotAttrs),style:[t.dotBaseStyle,(tr(i={},t.mainDirection,"".concat(n.pos,"%")),tr(i,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),i)],on:{"drag-start":function(){return t.dragStart(r)}}
4,nativeOn:{focus:function(){return!n.disabled&&t.focus(r)},blur:function(){return t.blur()}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])}),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return N((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),e=t[0],n=t[1],r=this.width?N(this.width):this.isHorizontal?"auto":N(4),i=this.height?N(this.height):this.isHorizontal?N(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(e/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(e/2,"px"),width:r,height:i}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map(function(e,n){var r,i=tt(e,3),a=i[0],o=i[1],s=i[2];if(a>o){var l=[o,a];a=l[0],o=l[1]}var c=t.isHorizontal?"width":"height";return{start:a,end:o,index:n,style:tn(tn((tr(r={},t.isHorizontal?"height":"width","100%"),tr(r,t.isHorizontal?"top":"left",0),tr(r,t.mainDirection,"".concat(a,"%")),tr(r,c,"".concat(o-a,"%")),tr(r,"transitionProperty","".concat(c,",").concat(t.mainDirection)),tr(r,"transitionDuration","".concat(t.animateTime,"s")),r),t.processStyle),s)}})}},{key:"dotBaseStyle",get:function(){var t,e=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=e[0],r=e[1];return t=this.isHorizontal?tr({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),"-WebkitTransform":"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):tr({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),"-WebkitTransform":"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),tn({width:"".concat(n,"px"),height:"".concat(r,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map(function(){return t})}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map(function(e,n){return tn({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(td.Focus)&&t.focusDotIndex===n,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})})}},{key:"animateTime",get:function(){return this.states.has(td.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"sliderData",get:function(){var t=this;return this.isObjectArrayData(this.data)?this.data.map(function(e){return e[t.dataValue]}):this.isObjectData(this.data)?Object.keys(this.data):this.data}},{key:"sliderMarks",get:function(){var t=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(e){var n={label:e};return t.data.some(function(r){return r[t.dataValue]===e&&(n.label=r[t.dataLabel],!0)}),n}:this.isObjectData(this.data)?this.data:void 0}},{key:"sliderTooltipFormatter",get:function(){var t=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(e){var n=""+e;return t.data.some(function(r){return r[t.dataValue]===e&&(n=r[t.dataLabel],!0)}),n};if(this.isObjectData(this.data)){var e=this.data;return function(t){return e[t]}}}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some(function(e,n){return e!==t[n]}):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];
4return[t?t.pos:-1/0,e?e.pos:1/0]}}],tl(a.prototype,n),r&&tl(a,r),a}(b.a),v([(i={default:0},Object(y.createDecorator)(function(t,e){(t.props||(t.props={}))[e]=i,t.model={prop:e,event:"change"}}))],r.prototype,"value",void 0),v([S({type:Boolean,default:!1})],r.prototype,"silent",void 0),v([S({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],r.prototype,"direction",void 0),v([S({type:[Number,String]})],r.prototype,"width",void 0),v([S({type:[Number,String]})],r.prototype,"height",void 0),v([S({default:14})],r.prototype,"dotSize",void 0),v([S({default:!1})],r.prototype,"contained",void 0),v([S({type:Number,default:0})],r.prototype,"min",void 0),v([S({type:Number,default:100})],r.prototype,"max",void 0),v([S({type:Number,default:1})],r.prototype,"interval",void 0),v([S({type:Boolean,default:!1})],r.prototype,"disabled",void 0),v([S({type:Boolean,default:!0})],r.prototype,"clickable",void 0),v([S({type:Boolean,default:!1})],r.prototype,"dragOnClick",void 0),v([S({type:Number,default:.5})],r.prototype,"duration",void 0),v([S({type:[Object,Array]})],r.prototype,"data",void 0),v([S({type:String,default:"value"})],r.prototype,"dataValue",void 0),v([S({type:String,default:"label"})],r.prototype,"dataLabel",void 0),v([S({type:Boolean,default:!1})],r.prototype,"lazy",void 0),v([S({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],r.prototype,"tooltip",void 0),v([S({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every(function(t){return["top","right","bottom","left"].indexOf(t)>-1})}})],r.prototype,"tooltipPlacement",void 0),v([S({type:[String,Array,Function]})],r.prototype,"tooltipFormatter",void 0),v([S({type:Boolean,default:!0})],r.prototype,"useKeyboard",void 0),v([S(Function)],r.prototype,"keydownHook",void 0),v([S({type:Boolean,default:!0})],r.prototype,"enableCross",void 0),v([S({type:Boolean,default:!1})],r.prototype,"fixed",void 0),v([S({type:Boolean,default:!0})],r.prototype,"order",void 0),v([S(Number)],r.prototype,"minRange",void 0),v([S(Number)],r.prototype,"maxRange",void 0),v([S({type:[Boolean,Object,Array,Function],default:!1})],r.prototype,"marks",void 0),v([S({type:[Boolean,Function],default:!0})],r.prototype,"process",void 0),v([S({type:[Number]})],r.prototype,"zoom",void 0),v([S(Boolean)],r.prototype,"included",void 0),v([S(Boolean)],r.prototype,"adsorb",void 0),v([S(Boolean)],r.prototype,"hideLabel",void 0),v([S()],r.prototype,"dotOptions",void 0),v([S()],r.prototype,"dotAttrs",void 0),v([S()],r.prototype,"railStyle",void 0),v([S()],r.prototype,"processStyle",void 0),v([S()],r.prototype,"dotStyle",void 0),v([S()],r.prototype,"tooltipStyle",void 0),v([S()],r.prototype,"stepStyle",void 0),v([S()],r.prototype,"stepActiveStyle",void 0),v([S()],r.prototype,"labelStyle",void 0),v([S()],r.prototype,"labelActiveStyle",void 0),v([(a="value",void 0===o&&(o={}),l=void 0!==(s=o.deep)&&s,u=void 0!==(c=o.immediate)&&c,Object(y.createDecorator)(function(t,e){"object"!=typeof t.watch&&(t.watch=Object.create(null));var n=t.watch;"object"!=typeof n[a]||Array.isArray(n[a])?void 0===n[a]&&(n[a]=[]):n[a]=[n[a]],n[a].push({handler:e,deep:l,immediate:u})}))],r.prototype,"onValueChanged",null),r=v([C()({data:function(){return{control:null}},components:{VueSliderDot:k,VueSliderMark:M}})],r));th.VueSliderMark=M,th.VueSliderDot=k,e.default=th}}).default})},5055:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>ak});/*! 5 * Vue.js v2.6.14 6 * (c) 2014-2021 Evan You 7 * Released under the MIT License. 8 */var r,i,a,o,s,l,c,u,d,h,f,g,p,v,m,b,y,C,S,x,w,T,A,k,E,O,P=Object.freeze({});function L(t){return null==t}function I(t){return null!=t}function D(t){return!0===t}function R(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function M(t){return null!==t&&"object"==typeof t}var N=Object.prototype.toString;function j(t){return"[object Object]"===N.call(t)}function F(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function B(t){return I(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function G(t){return null==t?"":Array.isArray(t)||j(t)&&t.toString===N?JSON.stringify(t,null,2):String(t)}function $(t){var e=parseFloat(t);return isNaN(e)?t:e}function H(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var z=H("slot,component",!0),U=H("key,ref,slot,slot-scope,is");function W(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var V=Object.prototype.hasOwnProperty;function Y(t,e){return V.call(t,e)}function X(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var K=/-(\w)/g,q=X(function(t){return t.replace(K,function(t,e){return e?e.toUpperCase():""})}),J=X(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Z=/\B([A-Z])/g,Q=X(function(t){return t.replace(Z,"-$1").toLowerCase()}),tt=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function te(t,e){e=e||0;for(var n=t.length-e,r=Array(n);n--;)r[n]=t[n+e];return r}function tn(t,e){for(var n in e)t[n]=e[n];return t}function tr(t){for(var e={},n=0;n<t.length;n++)t[n]&&tn(e,t[n]);return e}function ti(t,e,n){}var ta=function(t,e,n){return!1},to=function(t){return t};function ts(t,e){if(t===e)return!0;var n=M(t),r=M(e);if(n&&r)try{var i=Array.isArray(t),a=Array.isArray(e);if(i&&a)return t.length===e.length&&t.every(function(t,n){return ts(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||a)return!1;var o=Object.keys(t),s=Object.keys(e);return o.length===s.length&&o.every(function(n){return ts(t[n],e[n])})}catch(t){return!1}else if(!n&&!r)return String(t)===String(e);else return!1}function tl(t,e){for(var n=0;n<t.length;n++)if(ts(t[n],e))return n;return -1}function tc(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var tu="data-server-rendered",td=["component","directive","filter"],th=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","
8serverPrefetch"],tf={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ta,isReservedAttr:ta,isUnknownElement:ta,getTagNamespace:ti,parsePlatformTagName:to,mustUseProp:ta,async:!0,_lifecycleHooks:th},tg=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function tp(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var tv=RegExp("[^"+tg.source+".$_\\d]"),tm="__proto__"in{},t_="undefined"!=typeof window,tb="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,ty=tb&&WXEnvironment.platform.toLowerCase(),tC=t_&&window.navigator.userAgent.toLowerCase(),tS=tC&&/msie|trident/.test(tC),tx=tC&&tC.indexOf("msie 9.0")>0,tw=tC&&tC.indexOf("edge/")>0;tC&&tC.indexOf("android");var tT=tC&&/iphone|ipad|ipod|ios/.test(tC)||"ios"===ty;tC&&/chrome\/\d+/.test(tC),tC&&/phantomjs/.test(tC);var tA=tC&&tC.match(/firefox\/(\d+)/),tk={}.watch,tE=!1;if(t_)try{var tO={};Object.defineProperty(tO,"passive",{get:function(){tE=!0}}),window.addEventListener("test-passive",null,tO)}catch(t){}var tP=function(){return void 0===i&&(i=!t_&&!tb&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),i},tL=t_&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function tI(t){return"function"==typeof t&&/native code/.test(t.toString())}var tD="undefined"!=typeof Symbol&&tI(Symbol)&&"undefined"!=typeof Reflect&&tI(Reflect.ownKeys);a="undefined"!=typeof Set&&tI(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var tR=0,tM=function(){this.id=tR++,this.subs=[]};tM.prototype.addSub=function(t){this.subs.push(t)},tM.prototype.removeSub=function(t){W(this.subs,t)}
8,tM.prototype.depend=function(){tM.target&&tM.target.addDep(this)},tM.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},tM.target=null;var tN=[];function tj(t){tN.push(t),tM.target=t}function tF(){tN.pop(),tM.target=tN[tN.length-1]}var tB=function(t,e,n,r,i,a,o,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},tG={child:{configurable:!0}};tG.child.get=function(){return this.componentInstance},Object.defineProperties(tB.prototype,tG);var t$=function(t){void 0===t&&(t="");var e=new tB;return e.text=t,e.isComment=!0,e};function tH(t){return new tB(void 0,void 0,void 0,String(t))}function tz(t){var e=new tB(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var tU=Array.prototype,tW=Object.create(tU);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=tU[t];tp(tW,t,function(){for(var n,r=[],i=arguments.length;i--;)r[i]=arguments[i];var a=e.apply(this,r),o=this.__ob__;switch(t){case"push":case"unshift":n=r;break;case"splice":n=r.slice(2)}return n&&o.observeArray(n),o.dep.notify(),a})});var tV=Object.getOwnPropertyNames(tW),tY=!0,tX=function(t){this.value=t,this.dep=new tM,this.vmCount=0,tp(t,"__ob__",this),Array.isArray(t)?(tm?t.__proto__=tW:function(t,e,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];tp(t,a,e[a])}}(t,tW,tV),this.observeArray(t)):this.walk(t)};function tK(t,e){var n;if(M(t)&&!(t instanceof tB))return Y(t,"__ob__")&&t.__ob__ instanceof tX?n=t.__ob__:tY&&!tP()&&(Array.isArray(t)||j(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new tX(t)),e&&n&&n.vmCount++,n}function tq(t,e,n,r,i){var a=new tM,o=Object.getOwnPropertyDescriptor(t,e);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;(!s||l)&&2==arguments.length&&(n=t[e]);var c=!i&&tK(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return tM.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,r=0,i=e.length;r<i;r++)(n=e[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var r=s?s.call(t):n;e!==r&&!(e!=e&&r!=r)&&(!s||l)&&(l?l.call(t,e):n=e,c=!i&&tK(e),a.notify())}})}}function tJ(t,e,n){if(Array.isArray(t)&&F(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount||(r?(tq(r.value,e,n),r.dep.notify()):t[e]=n),n}function tZ(t,e){if(Array.isArray(t)&&F(e)){t.splice(e,1);return}var n=t.__ob__;!(t._isVue||n&&n.vmCount)&&Y(t,e)&&(delete t[e],n&&n.dep.notify())}tX.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)tq(t,e[n])},tX.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)tK(t[e])};var tQ=tf.optionMergeStrategies;function t0(t,e){if(!e)return t;for(var n,r,i,a=tD?Reflect.ownKeys(e):Object.keys(e),o=0;o<a.length;o++)"__ob__"!==(n=a[o])&&(r=t[n],i=e[n],Y(t,n)?r!==i&&j(r)&&j(i)&&t0(r,i):tJ(t,n,i));return t}function t1(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,i="function"==typeof t?t.call(n,n):t;return r?t0(r,i):i}:e?t?function(){return t0("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function t2(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function t5(t,e,n,r){var i=Object.create(t||null);return e?tn(i,e):i}tQ.data=function(t,e,n){return n?t1(t,e,n):e&&"function"!=typeof e?t:t1(t,e)},th.forEach(function(t){tQ[t]=t2}),td.forEach(function(t){tQ[t+"s"]=t5}),tQ.watch=function(t,e,n,r){if(t===tk&&(t=void 0),e===tk&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var a in tn(i,t),e){var o=i[a],s=e[a];o&&!Array.isArray(o)&&(o=[o]),i[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return i},tQ.props=tQ.methods=tQ.inject=tQ.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return tn(i,t),e&&tn(i,e),i},tQ.provide=t1;var t3=function(t,e){return void 0===e?t:e};function t4(t,e,n){if("function"==typeof e&&(e=e.options),!function(t,e){var n,r,i=t.props;if(i){var a={};if(Array.isArray(i))for(n=i.length;n--;
8)"string"==typeof(r=i[n])&&(a[q(r)]={type:null});else if(j(i))for(var o in i)r=i[o],a[q(o)]=j(r)?r:{type:r};t.props=a}}(e,0),!function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(j(n))for(var a in n){var o=n[a];r[a]=j(o)?tn({from:a},o):{from:o}}}}(e,0),!function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=t4(t,e.extends,n)),e.mixins))for(var r,i=0,a=e.mixins.length;i<a;i++)t=t4(t,e.mixins[i],n);var o={};for(r in t)s(r);for(r in e)Y(t,r)||s(r);function s(r){var i=tQ[r]||t3;o[r]=i(t[r],e[r],n,r)}return o}function t8(t,e,n,r){if("string"==typeof n){var i=t[e];if(Y(i,n))return i[n];var a=q(n);if(Y(i,a))return i[a];var o=J(a);return Y(i,o)?i[o]:i[n]||i[a]||i[o]}}function t6(t,e,n,r){var i=e[t],a=!Y(n,t),o=n[t],s=et(Boolean,i.type);if(s>-1){if(a&&!Y(i,"default"))o=!1;else if(""===o||o===Q(t)){var l=et(String,i.type);(l<0||s<l)&&(o=!0)}}if(void 0===o){o=function(t,e,n){if(Y(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof r&&"Function"!==t7(e.type)?r.call(t):r}}(r,i,t);var c=tY;tY=!0,tK(o),tY=c}return o}var t9=/^\s*function (\w+)/;function t7(t){var e=t&&t.toString().match(t9);return e?e[1]:""}function et(t,e){if(!Array.isArray(e))return t7(e)===t7(t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(t7(e[n])===t7(t))return n;return -1}function ee(t,e,n){tj();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{if(!1===i[a].call(r,t,e,n))return}catch(t){er(t,r,"errorCaptured hook")}}er(t,e,n)}finally{tF()}}function en(t,e,n,r,i){var a;try{(a=n?t.apply(e,n):t.call(e))&&!a._isVue&&B(a)&&!a._handled&&(a.catch(function(t){return ee(t,r,i+" (Promise/async)")}),a._handled=!0)}catch(t){ee(t,r,i)}return a}function er(t,e,n){if(tf.errorHandler)try{return tf.errorHandler.call(null,t,e,n)}catch(e){e!==t&&ei(e,null,"config.errorHandler")}ei(t,e,n)}function ei(t,e,n){if((t_||tb)&&"undefined"!=typeof console)console.error(t);else throw t}var ea=!1,eo=[],es=!1;function el(){es=!1;var t=eo.slice(0);eo.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&tI(Promise)){var ec=Promise.resolve();o=function(){ec.then(el),tT&&setTimeout(ti)},ea=!0}else if(!tS&&"undefined"!=typeof MutationObserver&&(tI(MutationObserver)||"[object MutationObserverConstructor]"===MutationObserver.toString())){var eu=1,ed=new MutationObserver(el),eh=document.createTextNode(String(eu));ed.observe(eh,{characterData:!0}),o=function(){eu=(eu+1)%2,eh.data=String(eu)},ea=!0}else o="undefined"!=typeof setImmediate&&tI(setImmediate)?function(){setImmediate(el)}:function(){setTimeout(el,0)};function ef(t,e){var n;if(eo.push(function(){if(t)try{t.call(e)}catch(t){ee(t,e,"nextTick")}else n&&n(e)}),es||(es=!0,o()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}var eg=new a;function ep(t){(function t(e,n){var r,i,a=Array.isArray(e);if(!(!a&&!M(e)||Object.isFrozen(e))&&!(e instanceof tB)){if(e.__ob__){var o=e.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a)for(r=e.length;r--;)t(e[r],n);else for(r=(i=Object.keys(e)).length;r--;)t(e[i[r]],n)}})(t,eg),eg.clear()}var ev=X(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}});function em(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return en(r,null,arguments,e,"v-on handler");for(var i=r.slice(),a=0;a<i.length;a++)en(i[a],null,t,e,"v-on handler")}return n.fns=t,n}function e_(t,e,n,r,i,a){var o,s,l,c;for(o in t)s=t[o],l=e[o],c=ev(o),L(s)||(L(l)?(L(s.fns)&&(s=t[o]=em(s,a)),D(c.once)&&(s=t[o]=i(c.name,s,c.capture)),n(c.name,s,c.capture,c.passive,c.params)):s!==l&&(l.fns=s,t[o]=l));for(o in e)L(t[o])&&r((c=ev(o)).name,e[o],c.capture)}function eb(t,e,n){t instanceof tB&&(t=t.data.hook||(t.data.hook={}));var r,i=t[e];function a(){n.apply(this,arguments),W(r.fns,a)}L(i)?r=em([a]):I(i.fns)&&D(i.merged)?(r=i).fns.push(a):r=em([i,a]
8),r.merged=!0,t[e]=r}function ey(t,e,n,r,i){if(I(e)){if(Y(e,n))return t[n]=e[n],i||delete e[n],!0;if(Y(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function eC(t){return R(t)?[tH(t)]:Array.isArray(t)?function t(e,n){var r,i,a,o,s=[];for(r=0;r<e.length;r++)!L(i=e[r])&&"boolean"!=typeof i&&(a=s.length-1,o=s[a],Array.isArray(i)?i.length>0&&(eS((i=t(i,(n||"")+"_"+r))[0])&&eS(o)&&(s[a]=tH(o.text+i[0].text),i.shift()),s.push.apply(s,i)):R(i)?eS(o)?s[a]=tH(o.text+i):""!==i&&s.push(tH(i)):eS(i)&&eS(o)?s[a]=tH(o.text+i.text):(D(e._isVList)&&I(i.tag)&&L(i.key)&&I(n)&&(i.key="__vlist"+n+"_"+r+"__"),s.push(i)));return s}(t):void 0}function eS(t){return I(t)&&I(t.text)&&!1===t.isComment}function ex(t,e){if(t){for(var n=Object.create(null),r=tD?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var a=r[i];if("__ob__"!==a){for(var o=t[a].from,s=e;s;){if(s._provided&&Y(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s&&"default"in t[a]){var l=t[a].default;n[a]="function"==typeof l?l.call(e):l}}}return n}}function ew(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var a=t[r],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,(a.context===e||a.fnContext===e)&&o&&null!=o.slot){var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}else(n.default||(n.default=[])).push(a)}for(var c in n)n[c].every(eT)&&delete n[c];return n}function eT(t){return t.isComment&&!t.asyncFactory||" "===t.text}function eA(t){return t.isComment&&t.asyncFactory}function ek(t,e,n){var r,i=Object.keys(e).length>0,a=t?!!t.$stable:!i,o=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==P&&o===n.$key&&!i&&!n.$hasNormal)return n;for(var s in r={},t)t[s]&&"$"!==s[0]&&(r[s]=function(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:eC(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!eA(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}(e,s,t[s]))}else r={};for(var l in e)l in r||(r[l]=function(t,e){return function(){return t[e]}}(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),tp(r,"$stable",a),tp(r,"$key",o),tp(r,"$hasNormal",i),r}function eE(t,e){var n,r,i,a,o;if(Array.isArray(t)||"string"==typeof t)for(r=0,n=Array(t.length),i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(r=0,n=Array(t);r<t;r++)n[r]=e(r+1,r);else if(M(t)){if(tD&&t[Symbol.iterator]){n=[];for(var s=t[Symbol.iterator](),l=s.next();!l.done;)n.push(e(l.value,n.length)),l=s.next()}else for(r=0,n=Array((a=Object.keys(t)).length),i=a.length;r<i;r++)o=a[r],n[r]=e(t[o],o,r)}return I(n)||(n=[]),n._isVList=!0,n}function eO(t,e,n,r){var i,a=this.$scopedSlots[t];a?(n=n||{},r&&(n=tn(tn({},r),n)),i=a(n)||("function"==typeof e?e():e)):i=this.$slots[t]||("function"==typeof e?e():e);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function eP(t){return t8(this.$options,"filters",t,!0)||to}function eL(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function eI(t,e,n,r,i){var a=tf.keyCodes[e]||n;return i&&r&&!tf.keyCodes[e]?eL(i,r):a?eL(a,t):r?Q(r)!==e:void 0===t}function eD(t,e,n,r,i){if(n&&M(n)){Array.isArray(n)&&(n=tr(n));var a,o=function(o){if("class"===o||"style"===o||U(o))a=t;else{var s=t.attrs&&t.attrs.type;a=r||tf.mustUseProp(e,s,o)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=q(o),c=Q(o);l in a||c in a||(a[o]=n[o],i&&((t.on||(t.on={}))["update:"+o]=function(t){n[o]=t}))};for(var s in n)o(s)}return t}function eR(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||eN(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),r}function eM(t,e,n){return eN(t,"__once__"+e+(n?"_"+n:""),!0),t}function eN(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&ej(t[r],e+"_"+r,n);else ej(t,e,n)}function ej(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function eF(t,e){if(e&&j(e)){var n=t.on=t.on?tn({},t.on):{};for(var r in e){var i=n[r],a=e[r];n[r]=i?[].concat(i,a):a}}return t}function eB(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function eG(t,e){return"string"==typeof t?e+t:t}function e$(t){t._o=eM,t._n=$,t._s=G,t._l=eE,t._t=eO,t._q=ts,t._i=tl,t._m=eR,t._f=eP,t._k=eI,t._b=eD,t._v=tH,t._e=t$,t._u=function t(e,n,r,i){n=n||{$stable:!r};for(var a=0;a<e.length;a++){var o=e[a];Array.isArray(o)?t(o,n,r):o&&(o.proxy&&(o.fn.proxy=!0),n[o.key]=o.fn)}return i&&(n.$key=i),n},t._g=eF,t._d=eB,t._p=eG}function eH(t,e,n,r,i){var a,o=this,s=i.options;Y(r,"_uid")?(a=Object.create(r))._original=r:(a=r,r=r._original);var l=D(s._compiled),c=!l;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||P,this.injections=ex(s.inject,r),this.slots=function(){return o.$slots||ek(t.scopedSlots,o.$slots=ew(n,r)),o.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ek(t.scopedSlots,this.slots())}}),l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ek(t.scopedSlots,this.$slots)),s._scopeId?this._c=function(t,e,n,i){var o=eX(a,t,e,n,i,c);return o&&!Array.isArray(o)&&(o.fnScopeId=s._scopeId,o.fnContext=r),o}
8:this._c=function(t,e,n,r){return eX(a,t,e,n,r,c)}}function ez(t,e,n,r,i){var a=tz(t);return a.fnContext=n,a.fnOptions=r,e.slot&&((a.data||(a.data={})).slot=e.slot),a}function eU(t,e){for(var n in e)t[q(n)]=e[n]}e$(eH.prototype);var eW={init:function(t,e){var n,r;t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive?eW.prepatch(t,t):(t.componentInstance=(n={_isComponent:!0,_parentVnode:t,parent:e2},I(r=t.data.inlineTemplate)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n))).$mount(e?t.elm:void 0,e)},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,i){var a=r.data.scopedSlots,o=t.$scopedSlots,s=!!(i||t.$options._renderChildren||!!(a&&!a.$stable||o!==P&&!o.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key));if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=i,t.$attrs=r.data.attrs||P,t.$listeners=n||P,e&&t.$options.props){tY=!1;for(var l=t._props,c=t.$options._propKeys||[],u=0;u<c.length;u++){var d=c[u],h=t.$options.props;l[d]=t6(d,h,e,t)}tY=!0,t.$options.propsData=e}n=n||P;var f=t.$options._parentListeners;t.$options._parentListeners=n,e1(t,n,f),s&&(t.$slots=ew(i,r.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,e8(n,"mounted")),t.data.keepAlive&&(e._isMounted?(n._inactive=!1,e9.push(n)):e4(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(!(n&&(e._directInactive=!0,e3(e)))&&!e._inactive){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);e8(e,"deactivated")}}(e,!0):e.$destroy())}},eV=Object.keys(eW);function eY(t,e,n,r,i){if(!L(t)){var a,o=n.$options._base;if(M(t)&&(t=o.extend(t)),"function"==typeof t){if(L(t.cid)&&void 0===(t=function(t,e){if(D(t.error)&&I(t.errorComp))return t.errorComp;if(I(t.resolved))return t.resolved;var n=eK;if(n&&I(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),D(t.loading)&&I(t.loadingComp))return t.loadingComp;if(n&&!I(t.owners)){var r=t.owners=[n],i=!0,a=null,o=null;n.$on("hook:destroyed",function(){return W(r,n)});var s=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==a&&(clearTimeout(a),a=null),null!==o&&(clearTimeout(o),o=null))},l=tc(function(n){t.resolved=eq(n,e),i?r.length=0:s(!0)}),c=tc(function(e){I(t.errorComp)&&(t.error=!0,s(!0))}),u=t(l,c);return M(u)&&(B(u)?L(t.resolved)&&u.then(l,c):B(u.component)&&(u.component.then(l,c),I(u.error)&&(t.errorComp=eq(u.error,e)),I(u.loading)&&(t.loadingComp=eq(u.loading,e),0===u.delay?t.loading=!0:a=setTimeout(function(){a=null,L(t.resolved)&&L(t.error)&&(t.loading=!0,s(!1))},u.delay||200)),I(u.timeout)&&(o=setTimeout(function(){o=null,L(t.resolved)&&c(null)},u.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(a=t,o)))return s=a,l=e,(c=t$()).asyncFactory=s,c.asyncMeta={data:l,context:n,children:r,tag:i},c;e=e||{},nm(t),I(e.model)&&(u=t.options,d=e,h=u.model&&u.model.prop||"value",f=u.model&&u.model.event||"input",(d.attrs||(d.attrs={}))[h]=d.model.value,p=(g=d.on||(d.on={}))[f],v=d.model.callback,I(p)?(Array.isArray(p)?-1===p.indexOf(v):p!==v)&&(g[f]=[v].concat(p)):g[f]=v);var s,l,c,u,d,h,f,g,p,v,m=function(t,e,n){var r=e.options.props;if(!L(r)){var i={},a=t.attrs,o=t.props;if(I(a)||I(o))for(var s in r){var l=Q(s);ey(i,o,s,l,!0)||ey(i,a,s,l,!1)}return i}}(e,t,0);if(D(t.options.functional))return function(t,e,n,r,i){var a=t.options,o={},s=a.props;if(I(s))for(var l in s)o[l]=t6(l,s,e||P);else I(n.attrs)&&eU(o,n.attrs),I(n.props)&&eU(o,n.props);var c=new eH(n,o,i,r,t),u=a.render.call(null,c._c,c);if(u instanceof tB)return ez(u,n,c.parent,a,c);if(Array.isArray(u)){for(var d=eC(u)||[],h=Array(d.length),f=0;f<d.length;f++)h[f]=ez(d[f],n,c.parent,a,c);return h}}(t,m,e,n,r);var b=e.on;if(e.on=e.nativeOn,D(t.options.abstract)){var y=e.slot;e={},y&&(e.slot=y)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<eV.length;n++){var r=eV[n],i=e[r],a=eW[r];i===a||i&&i._merged||(e[r]=i?function(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}(a,i):a)}}(e);var C=t.options.name||i;return new tB("vue-component-"+t.cid+(C?"-"+C:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:m,listeners:b,tag:i,children:r},a)}}}function eX(t,e,n,r,i,a){var o,s,l,c,u,d,h,f;return(Array.isArray(n)||R(n))&&(i=r,r=n,n=void 0),D(a)&&(i=2),o=e,s=n,l=r,c=i,I(s)&&I(s.__ob__)?t$():(I(s)&&I(s.is)&&(o=s.is),o)?(Array.isArray(l)&&"function"==typeof l[0]&&((s=s||{}).scopedSlots={default:l[0]},l.length=0),2===c?l=eC(l):1===c&&(l=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(l)),"string"==typeof o?(d=t.$vnode&&t.$vnode.ns||tf.getTagNamespace(o),u=tf.isReservedTag(o)?new tB(tf.parsePlatformTagName(o),s,l,void 0,void 0,t):(!s||!s.pre)&&I(h=t8(t.$options,"components",o))?eY(h,s,t,l,o):new tB(o,s,l,void 0,void 0,t)):u=eY(o,s,t,l),Array.isArray(u))?u:I(u)?(I(d)&&function t(e,n,r){if(e.ns=n,"foreignObject"===e.tag&&(n=void 0,r=!0),I(e.children))for(var i=0,a=e.children.length;i<a;i++){var o=e.children[i];I(o.tag)&&(L(o.ns)||D(r)&&"svg"!==o.tag)&&t(o,n,r)}}(u,d),I(s)&&(M((f=s).style)&&ep(f.style),M(f.class)&&ep(f.class)),u):t$():t$()}var eK=null;
8function eq(t,e){return(t.__esModule||tD&&"Module"===t[Symbol.toStringTag])&&(t=t.default),M(t)?e.extend(t):t}function eJ(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(I(n)&&(I(n.componentOptions)||eA(n)))return n}}function eZ(t,e){s.$on(t,e)}function eQ(t,e){s.$off(t,e)}function e0(t,e){var n=s;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function e1(t,e,n){s=t,e_(e,n||{},eZ,eQ,e0,t),s=void 0}var e2=null;function e5(t){var e=e2;return e2=t,function(){e2=e}}function e3(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function e4(t,e){if(e){if(t._directInactive=!1,e3(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)e4(t.$children[n]);e8(t,"activated")}}function e8(t,e){tj();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,a=n.length;i<a;i++)en(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),tF()}var e6=[],e9=[],e7={},nt=!1,ne=!1,nn=0,nr=0,ni=Date.now;if(t_&&!tS){var na=window.performance;na&&"function"==typeof na.now&&ni()>document.createEvent("Event").timeStamp&&(ni=function(){return na.now()})}function no(){for(nr=ni(),ne=!0,e6.sort(function(t,e){return t.id-e.id}),nn=0;nn<e6.length;nn++)(t=e6[nn]).before&&t.before(),e7[t.id]=null,t.run();var t,e=e9.slice(),n=e6.slice();nn=e6.length=e9.length=0,e7={},nt=ne=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,e4(t[e],!0)}(e),function(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&e8(r,"updated")}}(n),tL&&tf.devtools&&tL.emit("flush")}var ns=0,nl=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ns,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new a,this.newDepIds=new a,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!tv.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=ti)),this.value=this.lazy?void 0:this.get()};nl.prototype.get=function(){tj(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(this.user)ee(t,e,'getter for watcher "'+this.expression+'"');else throw t}finally{this.deep&&ep(t),tF(),this.cleanupDeps()}return t},nl.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nl.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nl.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==e7[e]){if(e7[e]=!0,ne){for(var n=e6.length-1;n>nn&&e6[n].id>t.id;)n--;e6.splice(n+1,0,t)}else e6.push(t);nt||(nt=!0,ef(no))}}(this)},nl.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||M(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';en(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},nl.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1}
8,nl.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},nl.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||W(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var nc={enumerable:!0,configurable:!0,get:ti,set:ti};function nu(t,e,n){nc.get=function(){return this[e][n]},nc.set=function(t){this[e][n]=t},Object.defineProperty(t,n,nc)}var nd={lazy:!0};function nh(t,e,n){var r=!tP();"function"==typeof n?(nc.get=r?nf(e):ng(n),nc.set=ti):(nc.get=n.get?r&&!1!==n.cache?nf(e):ng(n.get):ti,nc.set=n.set||ti),Object.defineProperty(t,e,nc)}function nf(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),tM.target&&e.depend(),e.value}}function ng(t){return function(){return t.call(this,this)}}function np(t,e,n,r){return j(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var nv=0;function nm(t){var e=t.options;if(t.super){var n=nm(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&tn(t.extendOptions,r),(e=t.options=t4(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function n_(t){this._init(t)}function nb(t){return t&&(t.Ctor.options.name||t.tag)}function ny(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:"[object RegExp]"===N.call(t)&&t.test(e)}function nC(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!e(s)&&nS(n,a,r,i)}}}function nS(t,e,n,r){var i=t[e];i&&(!r||i.tag!==r.tag)&&i.componentInstance.$destroy(),t[e]=null,W(n,e)}n_.prototype._init=function(t){var e,n,r,i,a,o,s,l,c,u,d,h,f;this._uid=nv++,this._isVue=!0,t&&t._isComponent?(c=this.$options=Object.create(this.constructor.options),u=t._parentVnode,c.parent=t.parent,c._parentVnode=u,d=u.componentOptions,c.propsData=d.propsData,c._parentListeners=d.listeners,c._renderChildren=d.children,c._componentTag=d.tag,t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns)):this.$options=t4(nm(this.constructor),t||{},this),this._renderProxy=this,this._self=this,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(this),this._events=Object.create(null),this._hasHookEvent=!1,(e=this.$options._parentListeners)&&e1(this,e),n=this,n._vnode=null,n._staticTrees=null,r=n.$options,a=(i=n.$vnode=r._parentVnode)&&i.context,n.$slots=ew(r._renderChildren,a),n.$scopedSlots=P,n._c=function(t,e,r,i){return eX(n,t,e,r,i,!1)},n.$createElement=function(t,e,r,i){return eX(n,t,e,r,i,!0)},tq(n,"$attrs",(o=i&&i.data)&&o.attrs||P,null,!0),tq(n,"$listeners",r._parentListeners||P,null,!0),e8(this,"beforeCreate"),h=this,(f=ex(h.$options.inject,h))&&(tY=!1,Object.keys(f).forEach(function(t){tq(h,t,f[t])}),tY=!0),this._watchers=[],(s=this.$options).props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];for(var a in t.$parent&&(tY=!1),e)!function(a){i.push(a);var o=t6(a,e,n,t);tq(r,a,o),a in t||nu(t,"_props",a)}(a);tY=!0}(this,s.props),s.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?ti:tt(e[n],t)}(this,s.methods),s.data?function(t){var e=t.$options.data;j(e=t._data="function"==typeof e?function(t,e){tj();try{return t.call(e,e)}catch(t){return ee(t,e,"data()"),{}}finally{tF()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props;t.$options.methods;for(var i=n.length;i--;){var a=n[i];r&&Y(r,a)||!function(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}(a)&&nu(t,"_data",a)}tK(e,!0)}(this):tK(this._data={},!0),s.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=tP();for(var i in e){var a=e[i],o="function"==typeof a?a:a.get;r||(n[i]=new nl(t,o||ti,ti,nd)),i in t||nh(t,i,a)}}(this,s.computed),s.watch&&s.watch!==tk&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)np(t,n,r[i]);
8else np(t,n,r)}}(this,s.watch),(l=this.$options.provide)&&(this._provided="function"==typeof l?l.call(this):l),e8(this,"created"),this.$options.el&&this.$mount(this.$options.el)},function(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=tJ,t.prototype.$delete=tZ,t.prototype.$watch=function(t,e,n){if(j(e))return np(this,t,e,n);(n=n||{}).user=!0;var r=new nl(this,t,e,n);if(n.immediate){var i='callback for immediate watcher "'+r.expression+'"';tj(),en(e,this,[r.value],this,i),tF()}return function(){r.teardown()}}}(n_),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++)this.$on(t[r],n);else(this._events[t]||(this._events[t]=[])).push(n),e.test(t)&&(this._hasHookEvent=!0);return this},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){if(!arguments.length)return this._events=Object.create(null),this;if(Array.isArray(t)){for(var n,r=0,i=t.length;r<i;r++)this.$off(t[r],e);return this}var a=this._events[t];if(!a)return this;if(!e)return this._events[t]=null,this;for(var o=a.length;o--;)if((n=a[o])===e||n.fn===e){a.splice(o,1);break}return this},t.prototype.$emit=function(t){var e=this._events[t];if(e){e=e.length>1?te(e):e;for(var n=te(arguments,1),r='event handler for "'+t+'"',i=0,a=e.length;i<a;i++)en(e[i],this,n,this,r)}return this}}(n_),function(t){t.prototype._update=function(t,e){var n=this.$el,r=this._vnode,i=e5(this);this._vnode=t,r?this.$el=this.__patch__(r,t):this.$el=this.__patch__(this.$el,t,e,!1),i(),n&&(n.__vue__=null),this.$el&&(this.$el.__vue__=this),this.$vnode&&this.$parent&&this.$vnode===this.$parent._vnode&&(this.$parent.$el=this.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){if(!this._isBeingDestroyed){e8(this,"beforeDestroy"),this._isBeingDestroyed=!0;var t=this.$parent;!t||t._isBeingDestroyed||this.$options.abstract||W(t.$children,this),this._watcher&&this._watcher.teardown();for(var e=this._watchers.length;e--;)this._watchers[e].teardown();this._data.__ob__&&this._data.__ob__.vmCount--,this._isDestroyed=!0,this.__patch__(this._vnode,null),e8(this,"destroyed"),this.$off(),this.$el&&(this.$el.__vue__=null),this.$vnode&&(this.$vnode.parent=null)}}}(n_),function(t){e$(t.prototype),t.prototype.$nextTick=function(t){return ef(t,this)},t.prototype._render=function(){var t,e=this.$options,n=e.render,r=e._parentVnode;r&&(this.$scopedSlots=ek(r.data.scopedSlots,this.$slots,this.$scopedSlots)),this.$vnode=r;try{eK=this,t=n.call(this._renderProxy,this.$createElement)}catch(e){ee(e,this,"render"),t=this._vnode}finally{eK=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof tB||(t=t$()),t.parent=r,t}}(n_);var nx=[String,RegExp,Array],nw={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:nx,exclude:nx,max:[String,Number]},methods:{cacheVNode:function(){var t=this.cache,e=this.keys,n=this.vnodeToCache,r=this.keyToCache;if(n){var i=n.tag,a=n.componentInstance,o=n.componentOptions;t[r]={name:nb(o),tag:i,componentInstance:a},e.push(r),this.max&&e.length>parseInt(this.max)&&nS(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)nS(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){nC(t,function(t){return ny(e,t)})}),this.$watch("exclude",function(e){nC(t,function(t){return!ny(e,t)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=eJ(t),n=e&&e.componentOptions;if(n){var r=nb(n),i=this.include,a=this.exclude;if(i&&(!r||!ny(i,r))||a&&r&&ny(a,r))return e;var o=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;o[l]?(e.componentInstance=o[l].componentInstance,W(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e,n={};n.get=function(){return tf},Object.defineProperty(t,"config",n),t.util={warn:ti,extend:tn,mergeOptions:t4,defineReactive:tq},t.set=tJ,t.delete=tZ,t.nextTick=ef,t.observable=function(t){return tK(t),t},t.options=Object.create(null),td.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,tn(t.options.components,nw),t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;
8var n=te(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this},t.mixin=function(t){return this.options=t4(this.options,t),this},t.cid=0,e=1,t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var a=t.name||n.options.name,o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=t4(n.options,t),o.super=n,o.options.props&&function(t){var e=t.options.props;for(var n in e)nu(t.prototype,"_props",n)}(o),o.options.computed&&function(t){var e=t.options.computed;for(var n in e)nh(t.prototype,n,e[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,td.forEach(function(t){o[t]=n[t]}),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=tn({},o.options),i[r]=o,o},td.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&j(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(n_),Object.defineProperty(n_.prototype,"$isServer",{get:tP}),Object.defineProperty(n_.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(n_,"FunctionalRenderContext",{value:eH}),n_.version="2.6.14";var nT=H("style,class"),nA=H("input,textarea,option,select,progress"),nk=function(t,e,n){return"value"===n&&nA(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},nE=H("contenteditable,draggable,spellcheck"),nO=H("events,caret,typing,plaintext-only"),nP=H("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),nL="http://www.w3.org/1999/xlink",nI=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},nD=function(t){return nI(t)?t.slice(6,t.length):""},nR=function(t){return null==t||!1===t};function nM(t,e){return{staticClass:nN(t.staticClass,e.staticClass),class:I(t.class)?[t.class,e.class]:e.class}}function nN(t,e){return t?e?t+" "+e:t:e||""}function nj(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)I(e=nj(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):M(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var nF={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},nB=H("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),nG=H("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),n$=function(t){return nB(t)||nG(t)};function nH(t){return nG(t)?"svg":"math"===t?"math":void 0}var nz=Object.create(null),nU=H("text,number,password,search,email,tel,url");function nW(t){return"string"!=typeof t?t:document.querySelector(t)||document.createElement("div")}var nV=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(nF[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}});function nY(t,e){var n=t.data.ref;if(I(n)){var r=t.context,i=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?W(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?0>a[n].indexOf(i)&&a[n].push(i):a[n]=[i]:a[n]=i}}var nX=new tB("",{},[]),nK=["create","activate","update","remove","destroy"];function nq(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&I(t.data)===I(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=I(n=t.data)&&I(n=n.attrs)&&n.type,i=I(n=e.data)&&I(n=n.attrs)&&n.type;return r===i||nU(r)&&nU(i)}(t,e)||D(t.isAsyncPlaceholder)&&L(e.asyncFactory.error))}function nJ(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,a=t===nX,o=e===nX,s=nQ(t.data.directives,t.context),l=nQ(e.data.directives,e.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,n0(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(n0(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)n0(c[n],"inserted",e,t)};a?eb(e,"insert",d):d()}if(u.length&&eb(e,"postpatch",function(){for(var n=0;n<u.length;n++)n0(u[n],"componentUpdated",e,t)}),!a)for(n in s)l[n]||n0(s[n],"unbind",t,t,o)}(t,e)}var nZ=Object.create(null);function nQ(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)(r=t[n]).modifiers||(r.modifiers=nZ),i[r.rawName||r.name+"."+Object.keys(r.modifiers||{}).join(".")]=r,r.def=t8(e.$options,"directives",r.name,!0);return i}function n0(t,e,n,r,i){var a=t.def&&t.def[e];
8if(a)try{a(n.elm,t,n,r,i)}catch(r){ee(r,n.context,"directive "+t.name+" "+e+" hook")}}function n1(t,e){var n,r,i=e.componentOptions;if(!(I(i)&&!1===i.Ctor.options.inheritAttrs||L(t.data.attrs)&&L(e.data.attrs))){var a=e.elm,o=t.data.attrs||{},s=e.data.attrs||{};for(n in I(s.__ob__)&&(s=e.data.attrs=tn({},s)),s)r=s[n],o[n]!==r&&n2(a,n,r,e.data.pre);for(n in(tS||tw)&&s.value!==o.value&&n2(a,"value",s.value),o)L(s[n])&&(nI(n)?a.removeAttributeNS(nL,nD(n)):nE(n)||a.removeAttribute(n))}}function n2(t,e,n,r){if(r||t.tagName.indexOf("-")>-1)n5(t,e,n);else if(nP(e))nR(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n));else if(nE(e)){var i;t.setAttribute(e,nR(i=n)||"false"===i?"false":"contenteditable"===e&&nO(i)?i:"true")}else nI(e)?nR(n)?t.removeAttributeNS(nL,nD(e)):t.setAttributeNS(nL,e,n):n5(t,e,n)}function n5(t,e,n){if(nR(n))t.removeAttribute(e);else{if(tS&&!tx&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}function n3(t,e){var n=e.elm,r=e.data,i=t.data;if(!(L(r.staticClass)&&L(r.class)&&(L(i)||L(i.staticClass)&&L(i.class)))){var a=function(t){for(var e,n,r=t.data,i=t,a=t;I(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(r=nM(a.data,r));for(;I(i=i.parent);)i&&i.data&&(r=nM(r,i.data));return e=r.staticClass,n=r.class,I(e)||I(n)?nN(e,nj(n)):""}(e),o=n._transitionClasses;I(o)&&(a=nN(a,nj(o))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var n4=/[\w).+\-_$\]]/;function n8(t){var e,n,r,i,a,o=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,f=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),o)39===e&&92!==n&&(o=!1);else if(s)34===e&&92!==n&&(s=!1);else if(l)96===e&&92!==n&&(l=!1);else if(c)47===e&&92!==n&&(c=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||u||d||h){switch(e){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===e){for(var g=r-1,p=void 0;g>=0&&" "===(p=t.charAt(g));g--);p&&n4.test(p)||(c=!0)}}else void 0===i?(f=r+1,i=t.slice(0,r).trim()):v();function v(){(a||(a=[])).push(t.slice(f,r).trim()),f=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==f&&v(),a)for(r=0;r<a.length;r++)i=function(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var r=e.slice(0,n),i=e.slice(n+1);return'_f("'+r+'")('+t+(")"!==i?","+i:i)}(i,a[r]);return i}function n6(t,e){console.error("[Vue compiler]: "+t)}function n9(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function n7(t,e,n,r,i){(t.props||(t.props=[])).push(rs({name:e,value:n,dynamic:i},r)),t.plain=!1}function rt(t,e,n,r,i){(i?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(rs({name:e,value:n,dynamic:i},r)),t.plain=!1}function re(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(rs({name:e,value:n},r))}function rn(t,e,n){return n?"_p("+e+',"'+t+'")':t+e}function rr(t,e,n,r,i,a,o,s){(r=r||P).right?s?e="("+e+")==='click'?'contextmenu':("+e+")":"click"===e&&(e="contextmenu",delete r.right):r.middle&&(s?e="("+e+")==='click'?'mouseup':("+e+")":"click"===e&&(e="mouseup")),r.capture&&(delete r.capture,e=rn("!",e,s)),r.once&&(delete r.once,e=rn("~",e,s)),r.passive&&(delete r.passive,e=rn("&",e,s)),r.native?(delete r.native,l=t.nativeEvents||(t.nativeEvents={})):l=t.events||(t.events={});var l,c=rs({value:n.trim(),dynamic:s},o);r!==P&&(c.modifiers=r);var u=l[e];Array.isArray(u)?i?u.unshift(c):u.push(c):u?l[e]=i?[c,u]:[u,c]:l[e]=c,t.plain=!1}function ri(t,e,n){var r=ra(t,":"+e)||ra(t,"v-bind:"+e);if(null!=r)return n8(r);if(!1!==n){var i=ra(t,e);if(null!=i)return JSON.stringify(i)}}function ra(t,e,n){var r;if((r=t.attrsMap[e])!=null){for(var i=t.attrsList,a=0,o=i.length;a<o;a++)if(i[a].name===e){i.splice(a,1);break}}return n&&delete t.attrsMap[e],r}function ro(t,e){for(var n=t.attrsList,r=0,i=n.length;r<i;r++){var a=n[r];if(e.test(a.name))return n.splice(r,1),a}}function rs(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function rl(t,e,n){var r=n||{},i=r.number,a=r.trim,o="$$v";a&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var s=rc(e,o);t.model={value:"("+e+")",expression:JSON.stringify(e),callback:"function ($$v) {"+s+"}"}}function rc(t,e){var n=function(t){if(l=(t=t.trim()).length,0>t.indexOf("[")||t.lastIndexOf("]")<l-1)return(d=t.lastIndexOf("."))>-1?{exp:t.slice(0,d),key:'"'+t.slice(d+1)+'"'}:{exp:t,key:null};for(c=t,d=h=f=0;!(d>=l);)rd(u=ru())?rh(u):91===u&&function(t){var e=1;for(h=d;!(d>=l);){if(rd(t=ru())){rh(t);continue}if(91===t&&e++,93===t&&e--,0===e){f=d;break}}}(u);return{exp:t.slice(0,h),key:t.slice(h+1,f)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}
8function ru(){return c.charCodeAt(++d)}function rd(t){return 34===t||39===t}function rh(t){for(var e=t;!(d>=l)&&(t=ru())!==e;);}function rf(t,e,n){var r=g;return function i(){var a=e.apply(null,arguments);null!==a&&rv(t,i,n,r)}}var rg=ea&&!(tA&&53>=Number(tA[1]));function rp(t,e,n,r){if(rg){var i=nr,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}g.addEventListener(t,e,tE?{capture:n,passive:r}:n)}function rv(t,e,n,r){(r||g).removeEventListener(t,e._wrapper||e,n)}function rm(t,e){if(!(L(t.data.on)&&L(e.data.on))){var n=e.data.on||{},r=t.data.on||{};g=e.elm,function(t){if(I(t.__r)){var e=tS?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}I(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),e_(n,r,rp,rv,rf,e.context),g=void 0}}function r_(t,e){if(!(L(t.data.domProps)&&L(e.data.domProps))){var n,r,i=e.elm,a=t.data.domProps||{},o=e.data.domProps||{};for(n in I(o.__ob__)&&(o=e.data.domProps=tn({},o)),a)n in o||(i[n]="");for(n in o){if(r=o[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===a[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var s=L(r)?"":String(r);!i.composing&&("OPTION"===i.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(i,s)||function(t,e){var n=t.value,r=t._vModifiers;if(I(r)){if(r.number)return $(n)!==$(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(i,s))&&(i.value=s)}else if("innerHTML"===n&&nG(i.tagName)&&L(i.innerHTML)){(p=p||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var l=p.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(r!==a[n])try{i[n]=r}catch(t){}}}}var rb=X(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function ry(t){var e=rC(t.style);return t.staticStyle?tn(t.staticStyle,e):e}function rC(t){return Array.isArray(t)?tr(t):"string"==typeof t?rb(t):t}var rS=/^--/,rx=/\s*!important$/,rw=function(t,e,n){if(rS.test(e))t.style.setProperty(e,n);else if(rx.test(n))t.style.setProperty(Q(e),n.replace(rx,""),"important");else{var r=rA(e);if(Array.isArray(n))for(var i=0,a=n.length;i<a;i++)t.style[r]=n[i];else t.style[r]=n}},rT=["Webkit","Moz","ms"],rA=X(function(t){if(v=v||document.createElement("div").style,"filter"!==(t=q(t))&&t in v)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<rT.length;n++){var r=rT[n]+e;if(r in v)return r}});function rk(t,e){var n,r,i=e.data,a=t.data;if(!(L(i.staticStyle)&&L(i.style)&&L(a.staticStyle)&&L(a.style))){var o=e.elm,s=a.staticStyle,l=a.normalizedStyle||a.style||{},c=s||l,u=rC(e.data.style)||{};e.data.normalizedStyle=I(u.__ob__)?tn({},u):u;var d=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=ry(i.data))&&tn(r,n);(n=ry(t.data))&&tn(r,n);for(var a=t;a=a.parent;)a.data&&(n=ry(a.data))&&tn(r,n);return r}(e,!0);for(r in c)L(d[r])&&rw(o,r,"");for(r in d)(n=d[r])!==c[r]&&rw(o,r,null==n?"":n)}}var rE=/\s+/;function rO(t,e){if(e&&(e=e.trim())){if(t.classList)e.indexOf(" ")>-1?e.split(rE).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";0>n.indexOf(" "+e+" ")&&t.setAttribute("class",(n+e).trim())}}}function rP(t,e){if(e&&(e=e.trim())){if(t.classList)e.indexOf(" ")>-1?e.split(rE).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}}function rL(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&tn(e,rI(t.name||"v")),tn(e,t),e}if("string"==typeof t)return rI(t)}}var rI=X(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterA
8ctiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),rD=t_&&!tx,rR="transition",rM="animation",rN="transition",rj="transitionend",rF="animation",rB="animationend";rD&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(rN="WebkitTransition",rj="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(rF="WebkitAnimation",rB="webkitAnimationEnd"));var rG=t_?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function r$(t){rG(function(){rG(t)})}function rH(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);0>n.indexOf(e)&&(n.push(e),rO(t,e))}function rz(t,e){t._transitionClasses&&W(t._transitionClasses,e),rP(t,e)}function rU(t,e,n){var r=rV(t,e),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===rR?rj:rB,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=o&&c()};setTimeout(function(){l<o&&c()},a+1),t.addEventListener(s,u)}var rW=/\b(transform|all)(,|$)/;function rV(t,e){var n,r=window.getComputedStyle(t),i=(r[rN+"Delay"]||"").split(", "),a=(r[rN+"Duration"]||"").split(", "),o=rY(i,a),s=(r[rF+"Delay"]||"").split(", "),l=(r[rF+"Duration"]||"").split(", "),c=rY(s,l),u=0,d=0;e===rR?o>0&&(n=rR,u=o,d=a.length):e===rM?c>0&&(n=rM,u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?rR:rM:null)?n===rR?a.length:l.length:0;var h=n===rR&&rW.test(r[rN+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:h}}function rY(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return rX(e)+rX(t[n])}))}function rX(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function rK(t,e){var n=t.elm;I(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=rL(t.data.transition);if(!(L(r)||I(n._enterCb))&&1===n.nodeType){for(var i=r.css,a=r.type,o=r.enterClass,s=r.enterToClass,l=r.enterActiveClass,c=r.appearClass,u=r.appearToClass,d=r.appearActiveClass,h=r.beforeEnter,f=r.enter,g=r.afterEnter,p=r.enterCancelled,v=r.beforeAppear,m=r.appear,b=r.afterAppear,y=r.appearCancelled,C=r.duration,S=e2,x=e2.$vnode;x&&x.parent;)S=x.context,x=x.parent;var w=!S._isMounted||!t.isRootInsert;if(!w||m||""===m){var T=w&&c?c:o,A=w&&d?d:l,k=w&&u?u:s,E=w?v||h:h,O=w?"function"==typeof m?m:f:f,P=w?b||g:g,D=w?y||p:p,R=$(M(C)?C.enter:C),N=!1!==i&&!tx,j=rZ(O),F=n._enterCb=tc(function(){N&&(rz(n,k),rz(n,A)),F.cancelled?(N&&rz(n,T),D&&D(n)):P&&P(n),n._enterCb=null});t.data.show||eb(t,"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,F)}),E&&E(n),N&&(rH(n,T),rH(n,A),r$(function(){rz(n,T),F.cancelled||(rH(n,k),j||(rJ(R)?setTimeout(F,R):rU(n,a,F)))})),t.data.show&&(e&&e(),O&&O(n,F)),N||j||F()}}}function rq(t,e){var n=t.elm;I(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=rL(t.data.transition);if(L(r)||1!==n.nodeType)return e();if(!I(n._leaveCb)){var i=r.css,a=r.type,o=r.leaveClass,s=r.leaveToClass,l=r.leaveActiveClass,c=r.beforeLeave,u=r.leave,d=r.afterLeave,h=r.leaveCancelled,f=r.delayLeave,g=r.duration,p=!1!==i&&!tx,v=rZ(u),m=$(M(g)?g.leave:g),b=n._leaveCb=tc(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),p&&(rz(n,s),rz(n,l)),b.cancelled?(p&&rz(n,o),h&&h(n)):(e(),d&&d(n)),n._leaveCb=null});f?f(y):y()}function y(){!b.cancelled&&(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),c&&c(n),p&&(rH(n,o),rH(n,l),r$(function(){rz(n,o),b.cancelled||(rH(n,s),v||(rJ(m)?setTimeout(b,m):rU(n,a,b)))})),u&&u(n,b),p||v||b())}}function rJ(t){return"number"==typeof t&&!isNaN(t)}function rZ(t){if(L(t))return!1;var e=t.fns;return I(e)?rZ(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function rQ(t,e){!0!==e.data.show&&rK(e)}var r0=function(t){var e,n,r={},i=t.modules,a=t.nodeOps;for(e=0;e<nK.length;++e)for(n=0,r[nK[e]]=[];n<i.length;++n)I(i[n][nK[e]])&&r[nK[e]].push(i[n][nK[e]]);function o(t){var e=a.parentNode(t);I(e)&&a.removeChild(e,t)}function s(t,e,n,i,o,s,d){if(I(t.elm)&&I(s)&&(t=s[d]=tz(t)),t.isRootInsert=!o,!function(t,e,n,i){var a=t.data;if(I(a)){var o=I(t.componentInstance)&&a.keepAlive;if(I(a=a.hook)&&I(a=a.init)&&a(t,!1),I(t.componentInstance))return l(t,e),c(n,t.elm,i),D(o)&&function(t,e,n,i){for(var a,o=t;o.componentInstance;)if(I(a=(o=o.componentInstance._vnode).data)&&I(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](nX,o);e.push(o);break}c(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var g=t.data,p=t.children,v=t.tag;I(v)?(t.elm=t.ns?a.createElementNS(t.ns,v):a.createElement(v,t),f(t),u(t,p,e),I(g)&&h(t,e)):D(t.isComment)?t.elm=a.createComment(t.text):t.elm=a.createTextNode(t.text),c(n,t.elm,i)}}function l(t,e){I(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,d(t)?(h(t,e),f(t)):(nY(t),e.push(t))}function c(t,e,n){I(t)&&(I(n)?a.parentNode(n)===t&&a.insertBefore(t,e,n):a.appendChild(t,e))}function u(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)s(e[r],n,t.elm,null,!0,e,r);else R(t.text)&&a.appendChild(t.elm,a.createTextNode(String(t.text)))}function d(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return I(t.tag)}function h(t,n){for(var i=0;i<r.create.length;++i)r.create[i](nX,t);I(e=t.data.hook)&&(I(e.create)&&e.create(nX,t),I(e.insert)&&n.push(t))}function f(t){var e;if(I(e=t.fnScopeId))a.setStyleScope(t.elm,e);else for(var n=t;n;)I(e=n.context)&&I(e=e.$options._scopeId)&&a.setStyleScope(t.elm,e),n=n.parent;I(e=e2)&&e!==t.context&&e!==t.fnContext&&I(e=e.$options._scopeId)&&a.setStyleScope(t.elm,e)}function g(t,e,n,r,i,a){for(;r<=i;++r)s(n[r],a,t,e,!1,n,r)}function p(t){var e,n,i=t.data;if(I(i))for(I(e=i.hook)&&I(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(I(e=t.children))for(n=0;n<t.children.length;++n)p(t.children[n])}function v(t,e,n){for(;e<=n;++e){var i=t[e];I(i)&&(I(i.tag)?(function t(e,n){if(I(n)||I(e.data)){var i,a=r.remove.length+1;for(I(n)?n.listeners+=a:n=function(t,e){function n(){0==--n.listeners&&o(t)}return n.listeners=e,n}(e.elm,a),I(i=e.componentInstance)&&I(i=i._vnode)&&I(i.data)&&t(i,n),i=0;i<r.remove.length;++i)r.remove[i](e,n);I(i=e.data.hook)&&I(i=i.remove)?i(e,n):n()}else o(e.elm)}(i),p(i)):o(i.elm))}}function m(t,e,n){if(D(n)&&I(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var b=H("attrs,class,staticClass,staticStyle,key");function y(t,e,n,r){var i,a=e.tag,o=e.data,s=e.children;if(r=r||o&&o.pre,e.elm=t,D(e.isComment)&&I(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(I(o)&&(I(i=o.hook)&&I(i=i.init)&&i(e,!0),I(i=e.componentInstance)))return l(e,n),!0;if(I(a)){if(I(s)){if(t.hasChildNodes()){if(I(i=o)&&I(i=i.domProps)&&I(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var c=!0,d=t.firstChild,f=0;f<s.length;f++){if(!d||!y(d,s[f],n,r)){c=!1;break}d=d.nextSibling}if(!c||d)return!1}}else u(e,s,n)}if(I(o)){var g=!1;
8for(var p in o)if(!b(p)){g=!0,h(e,n);break}!g&&o.class&&ep(o.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,i){if(L(e)){I(t)&&p(t);return}var o=!1,l=[];if(L(t))o=!0,s(e,l);else{var c,u=I(t.nodeType);if(!u&&nq(t,e))!function t(e,n,i,o,l,c){if(e!==n){I(n.elm)&&I(o)&&(n=o[l]=tz(n));var u,h=n.elm=e.elm;if(D(e.isAsyncPlaceholder)){I(n.asyncFactory.resolved)?y(e.elm,n,i):n.isAsyncPlaceholder=!0;return}if(D(n.isStatic)&&D(e.isStatic)&&n.key===e.key&&(D(n.isCloned)||D(n.isOnce))){n.componentInstance=e.componentInstance;return}var f=n.data;I(f)&&I(u=f.hook)&&I(u=u.prepatch)&&u(e,n);var p=e.children,m=n.children;if(I(f)&&d(n)){for(u=0;u<r.update.length;++u)r.update[u](e,n);I(u=f.hook)&&I(u=u.update)&&u(e,n)}L(n.text)?I(p)&&I(m)?p!==m&&function(e,n,r,i,o){for(var l,c,u,d=0,h=0,f=n.length-1,p=n[0],m=n[f],b=r.length-1,y=r[0],C=r[b],S=!o;d<=f&&h<=b;)L(p)?p=n[++d]:L(m)?m=n[--f]:nq(p,y)?(t(p,y,i,r,h),p=n[++d],y=r[++h]):nq(m,C)?(t(m,C,i,r,b),m=n[--f],C=r[--b]):nq(p,C)?(t(p,C,i,r,b),S&&a.insertBefore(e,p.elm,a.nextSibling(m.elm)),p=n[++d],C=r[--b]):(nq(m,y)?(t(m,y,i,r,h),S&&a.insertBefore(e,m.elm,p.elm),m=n[--f]):(L(l)&&(l=function(t,e,n){var r,i,a={};for(r=e;r<=n;++r)I(i=t[r].key)&&(a[i]=r);return a}(n,d,f)),L(c=I(y.key)?l[y.key]:function(t,e,n,r){for(var i=n;i<r;i++){var a=e[i];if(I(a)&&nq(t,a))return i}}(y,n,d,f))?s(y,i,e,p.elm,!1,r,h):nq(u=n[c],y)?(t(u,y,i,r,h),n[c]=void 0,S&&a.insertBefore(e,u.elm,p.elm)):s(y,i,e,p.elm,!1,r,h)),y=r[++h]);d>f?g(e,L(r[b+1])?null:r[b+1].elm,r,h,b,i):h>b&&v(n,d,f)}(h,p,m,i,c):I(m)?(I(e.text)&&a.setTextContent(h,""),g(h,null,m,0,m.length-1,i)):I(p)?v(p,0,p.length-1):I(e.text)&&a.setTextContent(h,""):e.text!==n.text&&a.setTextContent(h,n.text),I(f)&&I(u=f.hook)&&I(u=u.postpatch)&&u(e,n)}}(t,e,l,null,null,i);else{if(u){if(1===t.nodeType&&t.hasAttribute(tu)&&(t.removeAttribute(tu),n=!0),D(n)&&y(t,e,l))return m(e,l,!0),t;c=t,t=new tB(a.tagName(c).toLowerCase(),{},[],void 0,c)}var h=t.elm,f=a.parentNode(h);if(s(e,l,h._leaveCb?null:f,a.nextSibling(h)),I(e.parent))for(var b=e.parent,C=d(e);b;){for(var S=0;S<r.destroy.length;++S)r.destroy[S](b);if(b.elm=e.elm,C){for(var x=0;x<r.create.length;++x)r.create[x](nX,b);var w=b.data.hook.insert;if(w.merged)for(var T=1;T<w.fns.length;T++)w.fns[T]()}else nY(b);b=b.parent}I(f)?v([t],0,0):I(t.tag)&&p(t)}}return m(e,l,o),e.elm}}
8({nodeOps:nV,modules:[{create:n1,update:n1},{create:n3,update:n3},{create:rm,update:rm},{create:r_,update:r_},{create:rk,update:rk},t_?{create:rQ,activate:rQ,remove:function(t,e){!0!==t.data.show?rq(t,e):e()}}:{}].concat([{create:function(t,e){nY(e)},update:function(t,e){t.data.ref!==e.data.ref&&(nY(t,!0),nY(e))},destroy:function(t){nY(t,!0)}},{create:nJ,update:nJ,destroy:function(t){nJ(t,nX)}}])});tx&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&r9(t,"input")});var r1={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?eb(n,"postpatch",function(){r1.componentUpdated(t,e,n)}):r2(t,e,n.context),t._vOptions=[].map.call(t.options,r4)):("textarea"===n.tag||nU(t.type))&&(t._vModifiers=e.modifiers,!e.modifiers.lazy&&(t.addEventListener("compositionstart",r8),t.addEventListener("compositionend",r6),t.addEventListener("change",r6),tx&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){r2(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,r4);i.some(function(t,e){return!ts(t,r[e])})&&(t.multiple?e.value.some(function(t){return r3(t,i)}):e.value!==e.oldValue&&r3(e.value,i))&&r9(t,"change")}}};function r2(t,e,n){r5(t,e,n),(tS||tw)&&setTimeout(function(){r5(t,e,n)},0)}function r5(t,e,n){var r,i,a=e.value,o=t.multiple;if(!o||Array.isArray(a)){for(var s=0,l=t.options.length;s<l;s++)if(i=t.options[s],o)r=tl(a,r4(i))>-1,i.selected!==r&&(i.selected=r);else if(ts(r4(i),a)){t.selectedIndex!==s&&(t.selectedIndex=s);return}o||(t.selectedIndex=-1)}}function r3(t,e){return e.every(function(e){return!ts(e,t)})}function r4(t){return"_value"in t?t._value:t.value}function r8(t){t.target.composing=!0}function r6(t){t.target.composing&&(t.target.composing=!1,r9(t.target,"input"))}function r9(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function r7(t){return t.componentInstance&&(!t.data||!t.data.transition)?r7(t.componentInstance._vnode):t}var it={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ie(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ie(eJ(e.children)):t}function ir(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var a in i)e[q(a)]=i[a];return e}function ii(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ia=function(t){return t.tag||eA(t)},io=function(t){return"show"===t.name},is=tn({tag:String,moveClass:String},it);function il(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ic(t){t.data.newPos=t.elm.getBoundingClientRect()}function iu(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var a=t.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete is.mode,n_.config.mustUseProp=nk,n_.config.isReservedTag=n$,n_.config.isReservedAttr=nT,n_.config.getTagNamespace=nH,n_.config.isUnknownElement=function(t){if(!t_)return!0;if(n$(t))return!1;if(null!=nz[t=t.toLowerCase()])return nz[t];var e=document.createElement(t);return t.indexOf("-")>-1?nz[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:nz[t]=/HTMLUnknownElement/.test(e.toString())},tn(n_.options.directives,{model:r1,show:{bind:function(t,e,n){var r=e.value,i=(n=r7(n)).data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,rK(n,function(){t.style.display=a})):t.style.display=r?a:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=r7(n)).data&&n.data.transition?(n.data.show=!0,r?rK(n,function(){t.style.display=t.__vOriginalDisplay}):rq(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}}),tn(n_.options.components,{Transition:{name:"transition",props:it,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ia)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var a=ie(i);if(!a)return i;if(this._leaving)return ii(t,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:R(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var s=(a.data||(a.data={})).transition=ir(this),l=this._vnode,c=ie(l);if(a.data.directives&&a.data.directives.some(io)&&(a.data.show=!0),c&&c.data&&(c.key!==a.key||c.tag!==a.tag)&&!eA(c)&&!(c.componentInstance&&c.componentInstance._vnode.isComment)){var u=c.data.transition=tn({},s);if("out-in"===r)return this._leaving=!0,eb(u,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),ii(t,i);if("in-out"===r){if(eA(a))return l;var d,h=function(){d()};eb(s,"afterEnter",h),eb(s,"enterCancelled",h),eb(u,"delayLeave",function(t){d=t})}}return i}}},TransitionGroup:{props:is,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=e5(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=ir(this),s=0;s<i.length;s++){var l=i[s];l.tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o)}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var h=r[d];h.data.transition=o,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?c.push(h):u.push(h)}this.kept=t(e,null,c),this.removed=u}return t(e,null,a)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(il),t.forEach(ic),t.forEach(iu),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;rH(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(rj,n._moveCb=function t(r){(!r||r.target===n)&&(!r||/transform$/.test(r.propertyName))&&(n.removeEventListener(rj,t),n._moveCb=null,rz(n,e))})}}))},methods:{hasMove:function(t,e){if(!rD)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();
8t._transitionClasses&&t._transitionClasses.forEach(function(t){rP(n,t)}),rO(n,e),n.style.display="none",this.$el.appendChild(n);var r=rV(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}}),n_.prototype.__patch__=t_?r0:ti,n_.prototype.$mount=function(t,e){var n,r,i;return n=this,r=t=t&&t_?nW(t):void 0,i=e,n.$el=r,n.$options.render||(n.$options.render=t$),e8(n,"beforeMount"),new nl(n,function(){n._update(n._render(),i)},ti,{before:function(){n._isMounted&&!n._isDestroyed&&e8(n,"beforeUpdate")}},!0),i=!1,null==n.$vnode&&(n._isMounted=!0,e8(n,"mounted")),n},t_&&setTimeout(function(){tf.devtools&&tL&&tL.emit("init",n_)},0);var id=/\{\{((?:.|\r?\n)+?)\}\}/g,ih=/[-.*+?^${}()|[\]\/\\]/g,ig=X(function(t){return RegExp(t[0].replace(ih,"\\$&")+"((?:.|\\n)+?)"+t[1].replace(ih,"\\$&"),"g")}),ip=H("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),iv=H("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),im=H("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),i_=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ib=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,iy="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+tg.source+"]*",iC="((?:"+iy+"\\:)?"+iy+")",iS=RegExp("^<"+iC),ix=/^\s*(\/?)>/,iw=RegExp("^<\\/"+iC+"[^>]*>"),iT=/^<!DOCTYPE [^>]+>/i,iA=/^<!\--/,ik=/^<!\[/,iE=H("script,style,textarea",!0),iO={},iP={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":" ","'":"'"},iL=/&(?:lt|gt|quot|amp|#39);/g,iI=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,iD=H("pre,textarea",!0),iR=function(t,e){return t&&iD(t)&&"\n"===e[0]},iM=/^@|^v-on:/,iN=/^v-|^@|^:|^#/,ij=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,iF=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,iB=/^\(|\)$/g,iG=/^\[.*\]$/,i$=/:(.*)$/,iH=/^:|^\.|^v-bind:/,iz=/\.[^.\]]+(?=[^\]]*$)/g,iU=/^v-slot(:|$)|^#/,iW=/[\r\n]/,iV=/[ \f\t\r\n]+/g,iY=X(function(t){return(m=m||document.createElement("div")).innerHTML=t,m.textContent}),iX="_empty_";function iK(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}(e),rawAttrsMap:{},parent:n,children:[]}}function iq(t,e){(r=ri(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,(a=ri(i=t,"ref"))&&(i.ref=a,i.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(i)),function(t){"template"===t.tag?(n=ra(t,"scope"),t.slotScope=n||ra(t,"slot-scope")):(n=ra(t,"slot-scope"))&&(t.slotScope=n);var e,n,r=ri(t,"slot");if(r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!!(t.attrsMap[":slot"]||t.attrsMap["v-bind:slot"]),"template"!==t.tag&&!t.slotScope)&&rt(t,"slot",r,(e="slot",t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e])),"template"===t.tag){var i=ro(t,iU);if(i){var a=iQ(i),o=a.name,s=a.dynamic;t.slotTarget=o,t.slotTargetDynamic=s,t.slotScope=i.value||iX}}else{var l=ro(t,iU);if(l){var c=t.scopedSlots||(t.scopedSlots={}),u=iQ(l),d=u.name,h=u.dynamic,f=c[d]=iK("template",[],t);f.slotTarget=d,f.slotTargetDynamic=h,f.children=t.children.filter(function(t){if(!t.slotScope)return t.parent=f,!0}),f.slotScope=l.value||iX,t.children=[],t.plain=!1}}}(t),"slot"===(o=t).tag&&(o.slotName=ri(o,"name")),(l=ri(s=t,"is"))&&(s.component=l),null!=ra(s,"inline-template")&&(s.inlineTemplate=!0);for(var n,r,i,a,o,s,l,c=0;c<C.length;c++)t=C[c](t,e)||t;return function(t){var e,n,r,i,a,o,s,l,c=t.attrsList;for(e=0,n=c.length;e<n;e++)if(r=i=c[e].name,a=c[e].value,iN.test(r)){if(t.hasBindings=!0,(o=function(t){var e=t.match(iz);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}(r.replace(iN,"")))&&(r=r.replace(iz,"")),iH.test(r))r=r.replace(iH,""),a=n8(a),(l=iG.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(r=q(r))&&(r="innerHTML"),o.camel&&!l&&(r=q(r)),o.sync&&(s=rc(a,"$event"),l?rr(t,'"update:"+('+r+")",s,null,!1,b,c[e],!0):(rr(t,"update:"+q(r),s,null,!1,b,c[e]),Q(r)!==q(r)&&rr(t,"update:"+Q(r),s,null,!1,b,c[e])))),o&&o.prop||!t.component&&T(t.tag,t.attrsMap.type,r)?n7(t,r,a,c[e],l):rt(t,r,a,c[e],l);else if(iM.test(r))r=r.replace(iM,""),(l=iG.test(r))&&(r=r.slice(1,-1)),rr(t,r,a,o,!1,b,c[e],l);else{var u,d,h,f,g,p=(r=r.replace(iN,"")).match(i$),v=p&&p[1];l=!1,v&&(r=r.slice(0,-(v.length+1)),iG.test(v)&&(v=v.slice(1,-1),l=!0)),u=r,d=a,h=v,f=l,g=c[e],(t.directives||(t.directives=[])).push(rs({name:u,rawName:i,value:d,arg:h,isDynamicArg:f,modifiers:o},g)),t.plain=!1}
8}else rt(t,r,JSON.stringify(a),c[e]),!t.component&&"muted"===r&&T(t.tag,t.attrsMap.type,r)&&n7(t,r,"true",c[e])}(t),t}function iJ(t){var e;if(e=ra(t,"v-for")){var n=function(t){var e=t.match(ij);if(e){var n={};n.for=e[2].trim();var r=e[1].trim().replace(iB,""),i=r.match(iF);return i?(n.alias=r.replace(iF,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}(e);n&&tn(t,n)}}function iZ(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function iQ(t){var e=t.name.replace(iU,"");return e||"#"===t.name[0]||(e="default"),iG.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'+e+'"',dynamic:!1}}var i0=/^xmlns:NS\d+/,i1=/^NS\d+:/;function i2(t){return iK(t.tag,t.attrsList.slice(),t.parent)}var i5=[{staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=ra(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=ri(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},{staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=ra(t,"style");n&&(t.staticStyle=JSON.stringify(rb(n)));var r=ri(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},{preTransformNode:function(t,e){if("input"===t.tag){var n,r=t.attrsMap;if(r["v-model"]&&((r[":type"]||r["v-bind:type"])&&(n=ri(t,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n)){var i=ra(t,"v-if",!0),a=i?"&&("+i+")":"",o=null!=ra(t,"v-else",!0),s=ra(t,"v-else-if",!0),l=i2(t);iJ(l),re(l,"type","checkbox"),iq(l,e),l.processed=!0,l.if="("+n+")==='checkbox'"+a,iZ(l,{exp:l.if,block:l});var c=i2(t);ra(c,"v-for",!0),re(c,"type","radio"),iq(c,e),iZ(l,{exp:"("+n+")==='radio'"+a,block:c});var u=i2(t);return ra(u,"v-for",!0),re(u,":type",n),iq(u,e),iZ(l,{exp:i,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}}],i3={expectHTML:!0,modules:i5,directives:{model:function(t,e,n){var r,i,a,o,s,l,c,u,d,h,f,g,p,v,m=e.value,b=e.modifiers,y=t.tag,C=t.attrsMap.type;if(t.component)return rl(t,m,b),!1;if("select"===y)rr(t,"change",'var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(b&&b.number?"_n(val)":"val")+"}); "+rc(m,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0);else if("input"===y&&"checkbox"===C)i=b&&b.number,a=ri(t,"value")||"null",o=ri(t,"true-value")||"true",s=ri(t,"false-value")||"false",n7(t,"checked","Array.isArray("+m+")?_i("+m+","+a+")>-1"+("true"===o?":("+m+")":":_q("+m+","+o+")")),rr(t,"change","var $$a="+m+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+s+");if(Array.isArray($$a)){var $$v="+(i?"_n("+a+")":a)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+rc(m,"$$a.concat([$$v])")+")}else{$$i>-1&&("+rc(m,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+rc(m,"$$c")+"}",null,!0);else if("input"===y&&"radio"===C)l=b&&b.number,c=ri(t,"value")||"null",n7(t,"checked","_q("+m+","+(c=l?"_n("+c+")":c)+")"),rr(t,"change",rc(m,c),null,!0);else if("input"===y||"textarea"===y)u=t.attrsMap.type,h=(d=b||{}).lazy,f=d.number,g=d.trim,p="$event.target.value",g&&(p="$event.target.value.trim()"),f&&(p="_n("+p+")"),v=rc(m,p),h||"range"===u||(v="if($event.target.composing)return;"+v),n7(t,"value","("+m+")"),rr(t,h?"change":"range"===u?"__r":"input",v,null,!0),(g||f)&&rr(t,"blur","$forceUpdate()");else if(!tf.isReservedTag(y))return rl(t,m,b),!1;return!0},text:function(t,e){e.value&&n7(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&n7(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:ip,mustUseProp:nk,canBeLeftOpenTag:iv,isReservedTag:n$,getTagNamespace:nH,staticKeys:i5.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")},i4=X(function(t){return H("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}),i8=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,i6=/\([^)]*?\);*$/,i9=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,i7={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},at={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ae=function(t){return"if("+t+")return null;"},an={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ae("$event.target !== $event.currentTarget"),ctrl:ae("!$event.ctrlKey"),shift:ae("!$event.shiftKey"),alt:ae("!$event.altKey"),meta:ae("!$event.metaKey"),left:ae("'button' in $event && $event.button !== 0"),middle:ae("'button' in $event && $event.button !== 1"),right:ae("'button' in $event && $event.button !== 2")};function ar(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var a in t){var o=function t(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return t(e)}).join(",")+"]";var n=i9.test(e.value),r=i8.test(e.value),i=i9.test(e.value.replace(i6,""));if(e.modifiers){var a="",o="",s=[];for(var l in e.modifiers)if(an[l])o+=an[l],i7[l]&&s.push(l);else if("exact"===l){var c=e.modifiers;o+=ae(["ctrl","shift","alt","meta"].filter(function(t){return!c[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else s.push(l);return s.length&&(a+="if(!$event.type.indexOf('key')&&"+s.map(ai).join("&&")+")return null;"),o&&(a+=o),"function($event){"+a+(n?"return "+e.value+".apply(null, arguments)":r?"return ("+e.value+").apply(null, arguments)":i?"return "+e.value:e.value)+"}"}return n||r?e.value:"function($event){"+(i?"return "+e.value:e.value)+"}"}(t[a]);t[a]&&t[a].dynamic?i+=a+","+o+",":r+='"'+a+'":'+o+","}return(r="{"+r.slice(0,-1)+"}",i)?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function ai(t){var e=parseInt(t,10);return e?"$event.keyCode!=="+e:"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(i7[t])+",$event.key,"+JSON.stringify(at[t])+")"}var aa={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:ti},ao=function(t){this.options=t,this.warn=t.warn||n6,this.transforms=n9(t.modules,"transformCode"),this.dataGenFns=n9(t.modules,"genData"),this.directives=tn(tn({},aa),t.directives);var e=t.isReservedTag||ta;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function as(t,e){var n=new ao(e);return{render:"with(this){return "+(t?"script"===t.tag?"null":al(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function al(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return ac(t,e);if(t.once&&!t.onceProcessed)return au(t,e);if(t.for&&!t.forProcessed)return ah(t,e);if(t.if&&!t.ifProcessed)return ad(t,e);if("template"===t.tag&&!t.slotTarget&&!e.pre)return ag(t,e)||"void 0";if("slot"===t.tag)return n=t.slotName||'"default"',r=ag(t,e),i="_t("+n+(r?",function(){return "+r+"}":""),((a=t.attrs||t.dynamicAttrs?am((t.attrs||[]).concat(t.dynamicAttrs||[]).map(function(t){return{name:q(t.name),value:t.value,dynamic:t.dynamic}})):null)||(o=t.attrsMap["v-bind"]))&&!r&&(i+=",null"),a&&(i+=","+a),o&&(i+=(a?"":",null")+","+o),i+")";if(t.component)l=t.component,c=t.inlineTemplate?null:ag(t,e,!0),s="_c("+l+","+af(t,e)+(c?","+c:"")+")";else{(!t.plain||t.pre&&e.maybeComponent(t))&&(u=af(t,e));var n,r,i,a,o,s,l,c,u,d=t.inlineTemplate?null:ag(t,e,!0);s="_c('"+t.tag+"'"+(u?","+u:"")+(d?","+d:"")+")"}for(var h=0;h<e.transforms.length;h++)s=e.transforms[h](t,s);return s}function ac(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return "+al(t,e)+"}"),e.pre=n,"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function au(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return ad(t,e);if(!t.staticInFor)return ac(t,e);for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+al(t,e)+","+e.onceId+++","+n+")":al(t,e)}function ad(t,e,n,r){return t.ifProcessed=!0,function t(e,n,r,i){if(!e.length)return i||"_e()";var a=e.shift();if(a.exp)return"("+a.exp+")?"+o(a.block)+":"+t(e,n,r,i);return""+o(a.block);function o(t){return r?r(t,n):t.once?au(t,n):al(t,n)}}(t.ifConditions.slice(),e,n,r)}function ah(t,e,n,r){var i=t.for,a=t.alias,o=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(r||"_l")+"(("+i+"),function("+a+o+s+"){return "+(n||al)(t,e)+"})"}function af(t,e){var n="{",r=function(t,e){var n,r,i,a,o=t.directives;if(o){var s="directives:[",l=!1;for(n=0,r=o.length;n<r;n++){i=o[n],a=!0;var c=e.directives[i.name];c&&(a=!!c(t,i,e.warn)),a&&(l=!0,s+='{name:"'+i.name+'",rawName:"'+i.rawName+'"'+(i.value?",value:("+i.value+"),expression:"+JSON.stringify(i.value):"")+(i.arg?",arg:"+(i.isDynamicArg?i.arg:'"'+i.arg+'"'):"")+(i.modifiers?",modifiers:"+JSON.stringify(i.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}}(t,e);r&&(n+=r+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var i=0;i<e.dataGenFns.length;i++)n+=e.dataGenFns[i](t);if(t.attrs&&(n+="attrs:"+am(t.attrs)+","),t.props&&(n+="domProps:"+am(t.props)+","),t.events&&(n+=ar(t.events,!1)+","),t.n
8ativeEvents&&(n+=ar(t.nativeEvents,!0)+","),t.slotTarget&&!t.slotScope&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=function(t,e,n){var r=t.for||Object.keys(e).some(function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||function t(e){return 1===e.type&&("slot"===e.tag||e.children.some(t))}(n)}),i=!!t.if;if(!r)for(var a=t.parent;a;){if(a.slotScope&&a.slotScope!==iX||a.for){r=!0;break}a.if&&(i=!0),a=a.parent}var o=Object.keys(e).map(function(t){return function t(e,n){var r=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!r)return ad(e,n,t,"null");if(e.for&&!e.forProcessed)return ah(e,n,t);var i=e.slotScope===iX?"":String(e.slotScope);return"{key:"+(e.slotTarget||'"default"')+",fn:"+("function("+i+"){return "+("template"===e.tag?e.if&&r?"("+e.if+")?"+(ag(e,n)||"undefined")+":undefined":ag(e,n)||"undefined":al(e,n)))+"}"+(i?"":",proxy:true")+"}"}(e[t],n)}).join(",");return"scopedSlots:_u(["+o+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(o):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var a=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=as(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}(t,e);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+am(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function ag(t,e,n,r,i){var a=t.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag)return""+(r||al)(o,e)+(n?e.maybeComponent(o)?",1":",0":"");var s=n?function(t,e){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(1===i.type){if(ap(i)||i.ifConditions&&i.ifConditions.some(function(t){return ap(t.block)})){n=2;break}(e(i)||i.ifConditions&&i.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}(a,e.maybeComponent):0,l=i||av;return"["+a.map(function(t){return l(t,e)}).join(",")+"]"+(s?","+s:"")}}function ap(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function av(t,e){return 1===t.type?al(t,e):3===t.type&&t.isComment?"_e("+JSON.stringify(t.text)+")":"_v("+(2===t.type?t.expression:a_(JSON.stringify(t.text)))+")"}function am(t){for(var e="",n="",r=0;r<t.length;r++){var i=t[r],a=a_(i.value);i.dynamic?n+=i.name+","+a+",":e+='"'+i.name+'":'+a+","}return(e="{"+e.slice(0,-1)+"}",n)?"_d("+e+",["+n.slice(0,-1)+"])":e}function a_(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function ab(t,e){try{return Function(t)}catch(n){return e.push({err:n,code:t}),ti}}RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var ay=(r=function(t,e){var n=function(t,e){b=e.warn||n6,w=e.isPreTag||ta,T=e.mustUseProp||ta,A=e.getTagNamespace||ta,e.isReservedTag,C=n9(e.modules,"transformNode"),S=n9(e.modules,"preTransformNode"),x=n9(e.modules,"postTransformNode"),y=e.delimiters;var n,r,i=[],a=!1!==e.preserveWhitespace,o=e.whitespace,s=!1,l=!1;function c(t){if(u(t),s||t.processed||(t=iq(t,e)),!i.length&&t!==n&&n.if&&(t.elseif||t.else)&&iZ(n,{exp:t.elseif,block:t}),r&&!t.forbidden){if(t.elseif||t.else){var a,o;a=t,(o=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children))&&o.if&&iZ(o,{exp:a.elseif,block:a})}else{if(t.slotScope){var c=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[c]=t}r.children.push(t),t.parent=r}}t.children=t.children.filter(function(t){return!t.slotScope}),u(t),t.pre&&(s=!1),w(t.tag)&&(l=!1);for(var d=0;d<x.length;d++)x[d](t,e)}function u(t){if(!l)for(var e;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var n,r,i=[],a=e.expectHTML,o=e.isUnaryTag||ta,s=e.canBeLeftOpenTag||ta,l=0;t;){if(n=t,r&&iE(r)){var c=0,u=r.toLowerCase(),d=iO[u]||(iO[u]=RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),h=t.replace(d,function(t,n,r){return c=r.length,iE(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),iR(u,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});l+=t.length-h.length,t=h,T(u,l-c,l)}else{var f=t.indexOf("<");if(0===f){if(iA.test(t)){var g=t.indexOf("-->");if(g>=0){e.shouldKeepComment&&e.comment(t.substring(4,g),l,l+g+3),w(g+3);continue}}if(ik.test(t)){var p=t.indexOf("]>");if(p>=0){w(p+2);continue}}var v=t.match(iT);if(v){w(v[0].length);continue}var m=t.match(iw);if(m){var b=l;w(m[0].length),T(m[1],b,l);continue}var y=function(){var e=t.match(iS);if(e){var n,r,i={tagName:e[1],attrs:[],start:l};for(w(e[0].length);!(n=t.match(ix))&&(r=t.match(ib)||t.match(i_));)r.start=l,w(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],w(n[0].length),i.end=l,i}}();if(y){(function(t){var n=t.tagName,l=t.unarySlash;a&&("p"===r&&im(n)&&T(r),s(n)&&r===n&&T(n));for(var c=o(n)||!!l,u=t.attrs.length,d=Array(u),h=0;h<u;h++){var f=t.attrs[h],g=f[3]||f[4]||f[5]||"",p="a"===n&&"href"===f[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;d[h]={name:f[1],value:g.replace(p?iI:iL,function(t){return iP[t]})}}c||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:t.start,end:t.end}),r=n),e.start&&e.start(n,d,c,t.start,t.end)})(y),iR(y.tagName,t)&&w(1);continue}}var C=void 0,S=void 0,x=void 0;if(f>=0){for(S=t.slice(f);!iw.test(S)&&!iS.test(S)&&!iA.test(S)&&!ik.test(S)&&!((x=S.indexOf("<",1)
8)<0);)f+=x,S=t.slice(f);C=t.substring(0,f)}f<0&&(C=t),C&&w(C.length),e.chars&&C&&e.chars(C,l-C.length,l)}if(t===n){e.chars&&e.chars(t);break}}function w(e){l+=e,t=t.substring(e)}function T(t,n,a){var o,s;if(null==n&&(n=l),null==a&&(a=l),t)for(s=t.toLowerCase(),o=i.length-1;o>=0&&i[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=i.length-1;c>=o;c--)e.end&&e.end(i[c].tag,n,a);i.length=o,r=o&&i[o-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,a):"p"===s&&(e.start&&e.start(t,[],!1,n,a),e.end&&e.end(t,n,a))}T()}(t,{warn:b,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,a,o,u,d){var h,f,g,p=r&&r.ns||A(t);tS&&"svg"===p&&(a=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];i0.test(r.name)||(r.name=r.name.replace(i1,""),e.push(r))}return e}(a));var v=iK(t,a,r);p&&(v.ns=p),h=v,("style"===h.tag||"script"===h.tag&&(!h.attrsMap.type||"text/javascript"===h.attrsMap.type))&&!tP()&&(v.forbidden=!0);for(var m=0;m<S.length;m++)v=S[m](v,e)||v;!s&&(null!=ra(f=v,"v-pre")&&(f.pre=!0),v.pre&&(s=!0)),w(v.tag)&&(l=!0),s?function(t){var e=t.attrsList,n=e.length;if(n)for(var r=t.attrs=Array(n),i=0;i<n;i++)r[i]={name:e[i].name,value:JSON.stringify(e[i].value)},null!=e[i].start&&(r[i].start=e[i].start,r[i].end=e[i].end);else t.pre||(t.plain=!0)}(v):v.processed||(iJ(v),function(t){var e=ra(t,"v-if");if(e)t.if=e,iZ(t,{exp:e,block:t});else{null!=ra(t,"v-else")&&(t.else=!0);var n=ra(t,"v-else-if");n&&(t.elseif=n)}}(v),null!=ra(g=v,"v-once")&&(g.once=!0)),n||(n=v),o?c(v):(r=v,i.push(v))},end:function(t,e,n){var a=i[i.length-1];i.length-=1,r=i[i.length-1],c(a)},chars:function(t,e,n){if(r&&(!tS||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var i,c,u,d=r.children;(t=l||t.trim()?"script"===(i=r).tag||"style"===i.tag?t:iY(t):d.length?o?"condense"===o&&iW.test(t)?"":" ":a?" ":"":"")&&(l||"condense"!==o||(t=t.replace(iV," ")),!s&&" "!==t&&(c=function(t,e){var n,r,i,a=e?ig(e):id;if(a.test(t)){for(var o=[],s=[],l=a.lastIndex=0;n=a.exec(t);){(r=n.index)>l&&(s.push(i=t.slice(l,r)),o.push(JSON.stringify(i)));var c=n8(n[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=r+n[0].length}return l<t.length&&(s.push(i=t.slice(l)),o.push(JSON.stringify(i))),{expression:o.join("+"),tokens:s}}}(t,y))?u={type:2,expression:c.expression,tokens:c.tokens,text:t}:" "===t&&d.length&&" "===d[d.length-1].text||(u={type:3,text:t}),u&&d.push(u))}},comment:function(t,e,n){r&&r.children.push({type:3,text:t,isComment:!0})}}),n}(t.trim(),e);!1!==e.optimize&&n&&(k=i4(e.staticKeys||""),E=e.isReservedTag||ta,function t(e){if(e.static=2!==e.type&&(3===e.type||!!(e.pre||!e.hasBindings&&!e.if&&!e.for&&!z(e.tag)&&E(e.tag)&&!function(t){for(;t.parent&&"template"===(t=t.parent).tag;)if(t.for)return!0;return!1}(e)&&Object.keys(e).every(k))),1===e.type&&(E(e.tag)||"slot"===e.tag||null!=e.attrsMap["inline-template"])){for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];t(i),i.static||(e.static=!1)}if(e.ifConditions)for(var a=1,o=e.ifConditions.length;a<o;a++){var s=e.ifConditions[a].block;t(s),s.static||(e.static=!1)}}}(n),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static&&e.children.length&&!(1===e.children.length&&3===e.children[0].type)){e.staticRoot=!0;return}if(e.staticRoot=!1,e.children)for(var r=0,i=e.children.length;r<i;r++)t(e.children[r],n||!!e.for);if(e.ifConditions)for(var a=1,o=e.ifConditions.length;a<o;a++)t(e.ifConditions[a].block,n)}}(n,!1));var r=as(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(t){var e;function n(e,n){var i=Object.create(t),a=[],o=[];if(n)for(var s in n.modules&&(i.modules=(t.modules||[]).concat(n.modules)),n.directives&&(i.directives=tn(Object.create(t.directives||null),n.directives)),n)"modules"!==s&&"directives"!==s&&(i[s]=n[s]);i.warn=function(t,e,n){(n?o:a).push(t)};var l=r(e.trim(),i);return l.errors=a,l.tips=o,l}return{compile:n,compileToFunctions:(e=Object.create(null),function(t,r,i){(r=tn({},r)).warn,delete r.warn;var a=r.delimiters?String(r.delimiters)+t:t;if(e[a])return e[a];var o=n(t,r),s={},l=[];return s.render=ab(o.render,l),s.staticRenderFns=o.staticRenderFns.map(function(t){return ab(t,l)}),e[a]=s})}})(i3);ay.compile;var aC=ay.compileToFunctions;function aS(t){return(O=O||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',O.innerHTML.indexOf(" ")>0}var ax=!!t_&&aS(!1),aw=!!t_&&aS(!0),aT=X(function(t){var e=nW(t);return e&&e.innerHTML}),aA=n_.prototype.$mount;n_.prototype.$mount=function(t,e){if((t=t&&nW(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r){if("string"==typeof r)"#"===r.charAt(0)&&(r=aT(r));else{if(!r.nodeType)return this;r=r.innerHTML}}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=aC(r,{outputSourceRange:!1,shouldDecodeNewlines:ax,shouldDecodeNewlinesForHref:aw,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return aA.call(this,t,e)},n_.compile=aC;let ak=n_},294:(t,e,n)=>{"use strict";n.d(e,{OI:()=>S,Se:()=>x,ZP:()=>I,nv:()=>w,rn:()=>C});var r,i=("undefined"!=typeof window?window:void 0!==n.g?n.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n=e.filter(function(e){return e.original===t})[0];if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}
8),Object.keys(t).forEach(function(n){r[n]=a(t[n],e)}),r}function o(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function s(t){return null!==t&&"object"==typeof t}var l=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(t,e){this._children[t]=e},l.prototype.removeChild=function(t){delete this._children[t]},l.prototype.getChild=function(t){return this._children[t]},l.prototype.hasChild=function(t){return t in this._children},l.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},l.prototype.forEachChild=function(t){o(this._children,t)},l.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},l.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},l.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(l.prototype,c);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},u.prototype.update=function(t){(function t(e,n,r){if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return;t(e.concat(i),n.getChild(i),r.modules[i])}})([],this.root,t)},u.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new l(e,n);0===t.length?this.root=i:this.get(t.slice(0,-1)).addChild(t[t.length-1],i),e.modules&&o(e.modules,function(e,i){r.register(t.concat(i),e,n)})},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var d=function(t){var e,n=this;void 0===t&&(t={}),!r&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var a=t.plugins;void 0===a&&(a=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new r,this._makeLocalGettersCache=Object.create(null);var s=this,l=this.dispatch,c=this.commit;this.dispatch=function(t,e){return l.call(s,t,e)},this.commit=function(t,e,n){return c.call(s,t,e,n)},this.strict=o;var d=this._modules.root.state;v(this,d,[],this._modules.root),p(this,d),a.forEach(function(t){return t(n)}),(void 0!==t.devtools?t.devtools:r.config.devtools)&&(e=this,i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,e){i.emit("vuex:mutation",t,e)},{prepend:!0}),e.subscribeAction(function(t,e){i.emit("vuex:action",t,e)},{prepend:!0})))},h={state:{configurable:!0}};function f(t,e,n){return 0>e.indexOf(t)&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function g(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;v(t,n,[],t._modules.root,!0),p(t,n,e)}function p(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var a=t._wrappedGetters,s={};o(a,function(e,n){s[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var l=r.config.silent;r.config.silent=!0,t._vm=new r({data:{$$state:e},computed:s}),r.config.silent=l,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}(t),i&&(n&&t._withCommit(function(){i._data.$$state=null}),r.nextTick(function(){return i.$destroy()}))}function v(t,e,n,i,a){var o,s,l=!n.length,c=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[c],t._modulesNamespaceMap[c]=i),!l&&!a){var u=m(e,n.slice(0,-1)),d=n[n.length-1];t._withCommit(function(){r.set(u,d,i.state)})}var h=i.context=(Object.defineProperties(s={dispatch:(o=""===c)?t.dispatch:function(e,n,r){var i=b(e,n,r),a=i.payload,o=i.options,s=i.type;return o&&o.root||(s=c+s),t.dispatch(s,a)},commit:o?t.commit:function(e,n,r){var i=b(e,n,r),a=i.payload,o=i.options,s=i.type;o&&o.root||(s=c+s),t.commit(s,a,o)}},{getters:{get:o?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;
8Object.keys(t.getters).forEach(function(i){i.slice(0,r)===e&&Object.defineProperty(n,i.slice(r),{get:function(){return t.getters[i]},enumerable:!0})}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,c)}},state:{get:function(){return m(t.state,n)}}}),s);i.forEachMutation(function(e,n){(function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})})(t,c+n,e,h)}),i.forEachAction(function(e,n){(function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e){var i,a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(i=a)&&"function"==typeof i.then||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):a})})(t,e.root?n:c+n,e.handler||e,h)}),i.forEachGetter(function(e,n){var r;r=c+n,t._wrappedGetters[r]||(t._wrappedGetters[r]=function(t){return e(h.state,h.getters,t.state,t.getters)})}),i.forEachChild(function(r,i){v(t,e,n.concat(i),r,a)})}function m(t,e){return e.reduce(function(t,e){return t[e]},t)}function b(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){r&&t===r||/*! 9 * vuex v3.6.2 10 * (c) 2021 Evan You 11 * @license MIT 12 */function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(r=t)}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(t){}
12,d.prototype.commit=function(t,e,n){var r=this,i=b(t,e,n),a=i.type,o=i.payload;i.options;var s={type:a,payload:o},l=this._mutations[a];l&&(this._withCommit(function(){l.forEach(function(t){t(o)})}),this._subscribers.slice().forEach(function(t){return t(s,r.state)}))},d.prototype.dispatch=function(t,e){var n=this,r=b(t,e),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter(function(t){return t.before}).forEach(function(t){return t.before(o,n.state)})}catch(t){}var l=s.length>1?Promise.all(s.map(function(t){return t(a)})):s[0](a);return new Promise(function(t,e){l.then(function(e){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(o,n.state)})}catch(t){}t(e)},function(t){try{n._actionSubscribers.filter(function(t){return t.error}).forEach(function(e){return e.error(o,n.state,t)})}catch(t){}e(t)})})}},d.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},d.prototype.subscribeAction=function(t,e){return f("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},d.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},d.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},d.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),p(this,this.state)},d.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=m(e.state,t.slice(0,-1));r.delete(n,t[t.length-1])}),g(this)},d.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},d.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,h);var C=A(function(t,e){var n={};return T(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=k(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0}),n}),S=A(function(t,e){var n={};return T(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=k(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),x=A(function(t,e){var n={};return T(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||k(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0}),n}),w=A(function(t,e){var n={};return T(e).forEach(function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var a=k(this.$store,"mapActions",t);if(!a)return;r=a.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n});function T(t){return Array.isArray(t)||s(t)?Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function A(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function k(t,e,n){return t._modulesNamespaceMap[n]}function E(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function O(t){try{t.groupEnd()}catch(e){t.log("ââ log end ââ")}}function P(){var t=new Date;return" @ "+L(t.getHours(),2)+":"+L(t.getMinutes(),2)+":"+L(t.getSeconds(),2)+"."+L(t.getMilliseconds(),3)}function L(t,e){return Array(e-t.toString().length+1).join("0")+t}let I={Store:d,install:y,version:"3.6.2",mapState:C,mapMutations:S,mapGetters:x,mapActions:w,createNamespacedHelpers:function(t){return{mapState:C.bind(null,t),mapGetters:x.bind(null,t),mapMutations:S.bind(null,t),mapActions:w.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var c=t.logActions;void 0===c&&(c=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var d=a(t.state);void 0!==u&&(l&&t.subscribe(function(t,o){var s=a(o);if(n(t,d,s)){var l=P(),c=i(t),h="mutation "+t.type+l;E(u,h,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),O(u)}d=s}),c&&t.subscribeAction(function(t,n){if(o(t,n)){var r=P(),i=s(t),a="action "+t.type+r;E(u,a,e),u.log("%c action","color: #03A9F4; font-weight: bold",i),O(u)}}))}}}},8737:(t,e,n)=>{var r={"./de_DE/storefront.de-DE.json":9881,"./en_GB/storefront.en-GB.json":7396};function i(t){return n(a(t))}function a(t){if(!n.o(r,t)){var e=Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id=8737},1857:t=>{"use strict";var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s(Array.isArray(t)?[]:{},t,e):t}function i(t,e,n){return t.concat(e).map(function(t){return r(t,n)})}function a(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function o(t,e){try{return e in t}catch(t){return!1}}function s(t,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=r;var c,u,d=Array.isArray(n);return d!==Array.isArray(t)?r(n,l):d?l.arrayMerge(t,n,l):(u={},(c=l).isMergeableObject(t)&&a(t).forEach(function(e){u[e]=r(t[e],c)}
12),a(n).forEach(function(e){(!o(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(o(t,e)&&c.isMergeableObject(n[e])?u[e]=(function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s})(e,c)(t[e],n[e],c):u[e]=r(n[e],c))}),u)}s.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,n){return s(t,n,e)},{})},t.exports=s},2797:(t,e,n)=>{"use strict";n.d(e,{qK:()=>a,sP:()=>r,yB:()=>i});let r="CacheImagesEvent",i="BringToTopEvent",a="RecalculateCollisionEvent"},1495:(t,e,n)=>{"use strict";n.d(e,{$r:()=>r,U5:()=>i,Vl:()=>s,oQ:()=>a,pm:()=>o});let r={LASER:"Laser",PRINT:"Print",LABEL:"Label"},i={id:"",title:"",imageUrl:"",width:0,height:0,maskId:null},a={IMAGES:"images",SYMBOLS:"symbols",PREMIUM_SYMBOLS:"premium-symbols",COLORS:"colors",TEXT:"textfield",COUNTER:"counter",FILTER:"image-filter",LABELS:"labels",BACKGROUND:"background"},o={LASER:"35477ec783f73030c17b29da4a8b0742",LABEL:"9771301e91cc7f2fb2ab55696cfa5578",PRINT:"b22d10fc2fcf76e4b513b6e8f45d39a4",TAMPON:"14439d931581c25efd77dde76f4ed034",DIGITAL:"adf552c5adc540fb1fe6d460b7784360"},s=300},5647:(t,e,n)=>{"use strict";n.d(e,{Z:()=>K});var r,i,a=n(5055),o=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function s(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}var l=Array.isArray;function c(t){return null!==t&&"object"==typeof t}function u(t){return"string"==typeof t}var d=Object.prototype.toString;function h(t){return"[object Object]"===d.call(t)}function f(t){return null==t}function g(t){return"function"==typeof t}function p(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=null,r=null;return 1===t.length?c(t[0])||l(t[0])?r=t[0]:"string"==typeof t[0]&&(n=t[0]):2===t.length&&("string"==typeof t[0]&&(n=t[0]),(c(t[1])||l(t[1]))&&(r=t[1])),{locale:n,params:r}}function v(t){return JSON.parse(JSON.stringify(t))}function m(t,e){return!!~t.indexOf(e)}var b=Object.prototype.hasOwnProperty;function y(t){for(var e=arguments,n=Object(t),r=1;r<arguments.length;r++){var i=e[r];if(null!=i){var a,o=void 0;for(o in i)a=o,b.call(i,a)&&(c(i[o])?n[o]=y(n[o],i[o]):n[o]=i[o])}}return n}function C(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(n&&r)try{var i=l(t),a=l(e);if(i&&a)return t.length===e.length&&t.every(function(t,n){return C(t,e[n])});if(i||a)return!1;var o=Object.keys(t),s=Object.keys(e);return o.length===s.length&&o.every(function(n){return C(t[n],e[n])})}catch(t){return!1}else if(!n&&!r)return String(t)===String(e);else return!1}var S={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,r=e.parent,i=e.props,a=e.slots,o=r.$i18n;if(o){var s=i.path,l=i.locale,c=i.places,u=a(),d=o.i(s,l,function(t){var e;for(e in t)if("default"!==e)return!1;return!!e}(u)||c?function(t,e){var n=e?Array.isArray(e)?e.reduce(w,{}):Object.assign({},e):{};if(!t)return n;var r=(t=t.filter(function(t){return t.tag||""!==t.text.trim()})).every(T);return t.reduce(r?x:w,n)}(u.default,c):u),h=!!i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return h?t(h,n,d):d}}};function x(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function w(t,e,n){return t[n]=e,t}function T(t){return!!(t.data&&t.data.attrs&&t.data.attrs.place)}var A={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,r=e.parent,i=e.data,a=r.$i18n;if(!a)return null;var s=null,l=null;u(n.format)?s=n.format:c(n.format)&&(n.format.key&&(s=n.format.key),l=Object.keys(n.format).reduce(function(t,e){var r;return m(o,e)?Object.assign({},t,((r={})[e]=n.format[e],r)):t},null));var d=n.locale||a.locale,h=a._ntp(n.value,d,s,l),f=h.map(function(t,e){var n,r=i.scopedSlots&&i.scopedSlots[t.type];return r?r(((n={})[t.type]=t.value,n.index=e,n.parts=h,n)):t.value}),g=!!n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return g?t(g,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},f):f}};function k(t,e,n){P(t,n)&&L(t,e,n)}function E(t,e,n,r){if(P(t,n)){var i,a=n.context.$i18n;i=n.context,!(t._locale===i.$i18n.locale&&C(e.value,e.oldValue)&&C(t._localeMessage,a.getLocaleMessage(
12a.locale)))&&L(t,e,n)}}function O(t,e,n,r){if(!n.context){s("Vue instance does not exists in VNode context");return}var i=n.context.$i18n||{};e.modifiers.preserve||i.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}function P(t,e){var n=e.context;return n?!!n.$i18n||(s("VueI18n instance does not exists in Vue instance"),!1):(s("Vue instance does not exists in VNode context"),!1)}function L(t,e,n){var r,i,a,o,l,c,d,f=(u(r=e.value)?i=r:h(r)&&(i=r.path,a=r.locale,o=r.args,l=r.choice),{path:i,locale:a,args:o,choice:l}),g=f.path,p=f.locale,v=f.args,m=f.choice;if(!g&&!p&&!v){s("value type not supported");return}if(!g){s("`path` is required in v-t directive");return}var b=n.context;null!=m?t._vt=t.textContent=(c=b.$i18n).tc.apply(c,[g,m].concat(I(p,v))):t._vt=t.textContent=(d=b.$i18n).t.apply(d,[g].concat(I(p,v))),t._locale=b.$i18n.locale,t._localeMessage=b.$i18n.getLocaleMessage(b.$i18n.locale)}function I(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||h(e))&&n.push(e),n}function D(t,e){var n;void 0===e&&(e={bridge:!1}),D.installed=!0,(r=t).version&&r.version.split(".")[0],(n=r).prototype.hasOwnProperty("$i18n")||Object.defineProperty(n.prototype,"$i18n",{get:function(){return this._i18n}}),n.prototype.$t=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[t,r.locale,r._getMessages(),this].concat(e))},n.prototype.$tc=function(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(n))},n.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},n.prototype.$d=function(t){for(var e,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},n.prototype.$n=function(t){for(var e,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(e=this.$i18n).n.apply(e,[t].concat(n))},r.mixin(function(t){function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===t&&(t=!1),t?{mounted:e}:{beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n){if(t.i18n instanceof V){if(t.__i18nBridge||t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(function(t){e=y(e,JSON.parse(t))}),Object.keys(e).forEach(function(n){t.i18n.mergeLocaleMessage(n,e[n])})}catch(t){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(h(t.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof V?this.$root.$i18n:null;if(n&&(t.i18n.root=this.$root,t.i18n.formatter=n.formatter,t.i18n.fallbackLocale=n.fallbackLocale,t.i18n.formatFallbackMessages=n.formatFallbackMessages,t.i18n.silentTranslationWarn=n.silentTranslationWarn,t.i18n.silentFallbackWarn=n.silentFallbackWarn,t.i18n.pluralizationRules=n.pluralizationRules,t.i18n.preserveDirectiveContent=n.preserveDirectiveContent),t.__i18nBridge||t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(function(t){r=y(r,JSON.parse(t))}),t.i18n.messages=r}catch(t){}var i=t.i18n.sharedMessages;i&&h(i)&&(t.i18n.messages=y(t.i18n.messages,i)),this._i18n=new V(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof V?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof V&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?t.i18n instanceof V?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):h(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof V?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof V&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)})}}}}(e.bridge)),r.directive("t",{bind:k,update:E,unbind:O}),r.component(S.name,S),r.component(A.name,A),r.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var R=function(){this._caches=Object.create(null)};R.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=function(t){for(var e=[],n=0,r="";n<t.length;){var i=t[n++];if("{"===i){r&&e.push({type:"text",value:r}),r="";var a="";for(i=t[n++];void 0!==i&&"}"!==i;)a+=i,i=t[n++];var o="}"===i,s=M.test(a)?"list":o&&N.test(a)?"named":"unknown";e.push({value:a,type:s})}else"%"===i?"{"!==t[n]&&(r+=i):r+=i}return r&&e.push({type:"text",value:r}),e}(t),this._caches[t]=n),function(t,e){var n=[],r=0,i=Array.isArray(e)?"list":c(e)?"named":"unknown";if("unknown"===i)return n;for(;r<t.length;){var a=t[r];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(e[parseInt(a.value,10)]);break;case"named":"named"===i&&n.push(e[a.value])}r++}return n}(n,e)};var M=/^(?:\d)+/,N=/^(?:\w)+/,j=[];j[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},j[1]={ws:[1],".":[2],"[":[4],eof:[7]},j[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},j[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},j[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},j[5]={"'":[4,0],eof:8,else:[5,0]},j[6]={'"':[4,0],eof:8,else:[6,0]};var F=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/,B=function(){this._cache=Object.create(null)};B.prototype.parsePath=function(t){var e=this._cache[t];return!e&&(e=function(t){var e,n,r,i,a,o,s,l=[],c=-1,u=0,d=0,h=[];for(h[1]=function(){void 0!==n&&(l.push(n),n=void 0)},h[0]=function(){void 0===n?n=r:n+=r},h[2]=function(){h[0](),d++},h[3]=function(){if(d>0)d--,u=4,h[0]();else{var t,e,r;
12if(d=0,void 0===n||!1===(r=(t=n).trim(),n=!("0"===t.charAt(0)&&isNaN(t))&&(F.test(r)?(e=r.charCodeAt(0))===r.charCodeAt(r.length-1)&&(34===e||39===e)?r.slice(1,-1):r:"*"+r)))return!1;h[1]()}};null!==u;)if(!("\\"===(e=t[++c])&&function(){var e=t[c+1];if(5===u&&"'"===e||6===u&&'"'===e)return c++,r="\\"+e,h[0](),!0}())){if(i=function(t){if(null==t)return"eof";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:break;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}(e),8===(a=(s=j[u])[i]||s.else||8)||(u=a[0],(o=h[a[1]])&&(r=void 0===(r=a[2])?e:r,!1===o())))return;if(7===u)return l}}(t))&&(this._cache[t]=e),e||[]},B.prototype.getPathValue=function(t,e){if(!c(t))return null;var n=this.parsePath(e);if(0===n.length)return null;for(var r=n.length,i=t,a=0;a<r;){var o=i[n[a]];if(null==o)return null;i=o,a++}return i};var G=/<\/?[\w\s="/.':;#-\/]+>/,$=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|./]+|\([\w\-_|./]+\)))/g,H=/^@(?:\.([a-z]+))?:/,z=/[()]/g,U={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},W=new R,V=function(t){var e=this;void 0===t&&(t={}),!r&&"undefined"!=typeof window&&window.Vue&&D(window.Vue);var n=t.locale||"en-US",i=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),a=t.messages||{},o=t.dateTimeFormats||t.datetimeFormats||{},s=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||W,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void 0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new B,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in t&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,n){var r,i=Object.getPrototypeOf(e);return i&&i.getChoiceIndex?i.getChoiceIndex.call(e,t,n):e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):(r=Math.abs(r=t),2===n)?r?r>1?1:0:1:r?Math.min(r,2):0},this._exist=function(t,n){return!!t&&!!n&&(!f(e._path.getPathValue(t,n))||!!t[n])},("warn"===this._warnHtmlInMessage||"error"===this._warnHtmlInMessage)&&Object.keys(a).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,a[t])}),this._initVM({locale:n,fallbackLocale:i,messages:a,dateTimeFormats:o,numberFormats:s})},Y={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};V.prototype._checkLocaleMessage=function(t,e,n){var r=function(t,e,n,i){if(h(n))Object.keys(n).forEach(function(a){var o=n[a];h(o)?(i.push(a),i.push("."),r(t,e,o,i),i.pop()):(i.push(a),r(t,e,o,i)),i.pop()});else if(l(n))n.forEach(function(n,a){h(n)?(i.push("["+a+"]"),i.push("."),r(t,e,n,i),i.pop()):(i.push("["+a+"]"),r(t,e,n,i)),i.pop()});else if(u(n)&&G.test(n)){var a,o="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";
12"warn"===t?s(o):"error"===t&&"undefined"!=typeof console&&(console.error("[vue-i18n] "+o),a&&console.error(a.stack))}};r(e,t,n,[])},V.prototype._initVM=function(t){var e=r.config.silent;r.config.silent=!0,this._vm=new r({data:t,__VUE18N__INSTANCE__:!0}),r.config.silent=e},V.prototype.destroyVM=function(){this._vm.$destroy()},V.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},V.prototype.unsubscribeDataChanging=function(t){!function(t,e){t.delete(e)}(this._dataListeners,t)},V.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){for(var e,n,i=(e=t._dataListeners,n=[],e.forEach(function(t){return n.push(t)}),n),a=i.length;a--;)r.nextTick(function(){i[a]&&i[a].$forceUpdate()})},{deep:!0})},V.prototype.watchLocale=function(t){if(t){if(!this.__VUE_I18N_BRIDGE__)return null;var e=this,n=this._vm;return this.vm.$watch("locale",function(r){n.$set(n,"locale",r),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=r),n.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",function(t){r.$set(r,"locale",t),r.$forceUpdate()},{immediate:!0})},V.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},Y.vm.get=function(){return this._vm},Y.messages.get=function(){return v(this._getMessages())},Y.dateTimeFormats.get=function(){return v(this._getDateTimeFormats())},Y.numberFormats.get=function(){return v(this._getNumberFormats())},Y.availableLocales.get=function(){return Object.keys(this.messages).sort()},Y.locale.get=function(){return this._vm.locale},Y.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},Y.fallbackLocale.get=function(){return this._vm.fallbackLocale},Y.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},Y.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Y.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},Y.missing.get=function(){return this._missing},Y.missing.set=function(t){this._missing=t},Y.formatter.get=function(){return this._formatter},Y.formatter.set=function(t){this._formatter=t},Y.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Y.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},Y.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Y.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},Y.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Y.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},Y.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Y.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var r=this._getMessages();Object.keys(r).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])})}},Y.postTranslation.get=function(){return this._postTranslation},Y.postTranslation.set=function(t){this._postTranslation=t},Y.sync.get=function(){return this._sync},Y.sync.set=function(t){this._sync=t},V.prototype._getMessages=function(){return this._vm.messages},V.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},V.prototype._getNumberFormats=function(){return this._vm.numberFormats},V.prototype._warnDefault=function(t,e,n,r,i,a){if(!f(n))return n;if(this._missing){var o=this._missing.apply(null,[t,e,r,i]);if(u(o))return o}if(!this._formatFallbackMessages)return e;var s=p.apply(void 0,i);return this._render(e,a,s.params,e)},V.prototype._isFallbackRoot=function(t){return(this._fallbackRootWithEmptyString?!t:f(t))&&!f(this._root)&&this._fallbackRoot},V.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},V.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},V.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},V.prototype._interpolate=function(t,e,n,r,i,a,o){if(!e)return null;var s,c=this._path.getPathValue(e,n);if(l(c)||h(c))return c;if(f(c)){if(!h(e)||(s=e[n],!(u(s)||g(s))))return null}else{if(!(u(c)||g(c)))return null;s=c}return u(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(t,e,s,r,"raw",a,o)),this._render(s,i,a,n)},V.prototype._link=function(t,e,n,r,i,a,o){var s=n,c=s.match($);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],h=d.match(H),f=h[0],g=h[1],p=d.replace(f,"").replace(z,"");if(m(o,p))break;o.push(p);var v=this._interpolate(t,e,p,r,"raw"===i?"string":i,"raw"===i?void 0:a,o);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var b=this._root.$i18n;v=b._translate(b._getMessages(),b.locale,b.fallbackLocale,p,r,i,a)}v=this._warnDefault(t,p,v,r,l(a)?a:[a],i),this._modifiers.hasOwnProperty(g)?v=this._modifiers[g](v):U.hasOwnProperty(g)&&(v=U[g](v)),o.pop(),s=v?s.replace(d,v):s}return s},V.prototype._createMessageContext=function(t,e,n,r){var i=this,a=l(t)?t:[],o=c(t)?t:{},s=this._getMessages(),u=this.locale;return{list:function(t){return a[t]},named:function(t){return o[t]},values:t,formatter:e,path:n,messages:s,locale:u,linked:function(t){return i._interpolate(u,s[u]||{},t,null,r,void 0,[t])}}},V.prototype._render=function(t,e,n,r){if(g(t))return t(this._createMessageContext(n,this._formatter||W,r,e));var i=this._formatter.interpolate(t,n,r);
12return i||(i=W.interpolate(t,n,r)),"string"!==e||u(i)?i:i.join("")},V.prototype._appendItemToChain=function(t,e,n){var r=!1;return!m(t,e)&&(r=!0,e&&(r="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(r=n[e]))),r},V.prototype._appendLocaleToChain=function(t,e,n){var r,i=e.split("-");do{var a=i.join("-");r=this._appendItemToChain(t,a,n),i.splice(-1,1)}while(i.length&&!0===r)return r},V.prototype._appendBlockToChain=function(t,e,n){for(var r=!0,i=0;i<e.length&&"boolean"==typeof r;i++){var a=e[i];u(a)&&(r=this._appendLocaleToChain(t,a,n))}return r},V.prototype._getLocaleChain=function(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[t];if(!n){e||(e=this.fallbackLocale),n=[];for(var r,i=[t];l(i);)i=this._appendBlockToChain(n,i,e);(i=u(r=l(e)?e:c(e)?e.default?e.default:null:e)?[r]:r)&&this._appendBlockToChain(n,i,null),this._localeChainCache[t]=n}return n},V.prototype._translate=function(t,e,n,r,i,a,o){for(var s,l=this._getLocaleChain(e,n),c=0;c<l.length;c++){var u=l[c];if(!f(s=this._interpolate(u,t[u],r,i,a,o,[r])))return s}return null},V.prototype._t=function(t,e,n,r){for(var i,a,o=[],s=arguments.length-4;s-- >0;)o[s]=arguments[s+4];if(!t)return"";var l=p.apply(void 0,o);this._escapeParameterHtml&&(l.params=(null!=(i=l.params)&&Object.keys(i).forEac
12h(function(t){"string"==typeof i[t]&&(i[t]=i[t].replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))}),i));var c=l.locale||e,u=this._translate(n,c,this.fallbackLocale,t,r,"string",l.params);if(!this._isFallbackRoot(u))return u=this._warnDefault(c,t,u,r,o,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,t)),u;if(!this._root)throw Error("unexpected error");return(a=this._root).$t.apply(a,[t].concat(o))},V.prototype.t=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return this._t.apply(this,[t,this.locale,this._getMessages(),null].concat(e))},V.prototype._i=function(t,e,n,r,i){var a=this._translate(n,e,this.fallbackLocale,t,r,"raw",i);if(!this._isFallbackRoot(a))return this._warnDefault(e,t,a,r,[i],"raw");if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)},V.prototype.i=function(t,e,n){return t?(u(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},V.prototype._tc=function(t,e,n,r,i){for(var a=[],o=arguments.length-5;o-- >0;)a[o]=arguments[o+5];if(!t)return"";void 0===i&&(i=1);var s={count:i,n:i},l=p.apply(void 0,a);return l.params=Object.assign(s,l.params),a=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice(this._t.apply(this,[t,e,n,r].concat(a)),i)},V.prototype.fetchChoice=function(t,e){if(!t||!u(t))return null;var n=t.split("|");return(e=this.getChoiceIndex(e,n.length),n[e])?n[e].trim():t},V.prototype.tc=function(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return this._tc.apply(this,[t,this.locale,this._getMessages(),null,e].concat(n))},V.prototype._te=function(t,e,n){for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var a=p.apply(void 0,r).locale||e;return this._exist(n[a],t)},V.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},V.prototype.getLocaleMessage=function(t){return v(this._vm.messages[t]||{})},V.prototype.setLocaleMessage=function(t,e){("warn"===this._warnHtmlInMessage||"error"===this._warnHtmlInMessage)&&this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},V.prototype.mergeLocaleMessage=function(t,e){("warn"===this._warnHtmlInMessage||"error"===this._warnHtmlInMessage)&&this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,y(void 0!==this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},V.prototype.getDateTimeFormat=function(t){return v(this._vm.dateTimeFormats[t]||{})},V.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},V.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,
12y(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},V.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},V.prototype._localizeDateTime=function(t,e,n,r,i){for(var a=e,o=r[a],s=this._getLocaleChain(e,n),l=0;l<s.length;l++){var c=s[l];if(o=r[c],a=c,f(o)||f(o[i]));else break}if(f(o)||f(o[i]))return null;var u=o[i],d=a+"__"+i,h=this._dateTimeFormatters[d];return h||(h=this._dateTimeFormatters[d]=new Intl.DateTimeFormat(a,u)),h.format(t)},V.prototype._d=function(t,e,n){if(!n)return new Intl.DateTimeFormat(e).format(t);var r=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n);if(!this._isFallbackRoot(r))return r||"";if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)},V.prototype.d=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=this.locale,i=null;return 1===e.length?u(e[0])?i=e[0]:c(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(i=e[0].key)):2===e.length&&(u(e[0])&&(i=e[0]),u(e[1])&&(r=e[1])),this._d(t,r,i)},V.prototype.getNumberFormat=function(t){return v(this._vm.numberFormats[t]||{})},V.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},V.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,y(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},V.prototype._clearNumberFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},V.prototype._getNumberFormatter=function(t,e,n,r,i,a){for(var o=e,s=r[o],l=this._getLocaleChain(e,n),c=0;c<l.length;c++){var u=l[c];if(s=r[u],o=u,f(s)||f(s[i]));else break}if(f(s)||f(s[i]))return null;var d,h=s[i];if(a)d=new Intl.NumberFormat(o,Object.assign({},h,a));else{var g=o+"__"+i;(d=this._numberFormatters[g])||(d=this._numberFormatters[g]=new Intl.NumberFormat(o,h))}return d},V.prototype._n=function(t,e,n,r){if(!V.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e)).format(t);var i=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.format(t);if(!this._isFallbackRoot(a))return a||"";if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},r))},V.prototype.n=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=this.locale,i=null,a=null;return 1===e.length?u(e[0])?i=e[0]:c(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(i=e[0].key),a=Object.keys(e[0]).reduce(function(t,n){var r;return m(o,n)?Object.assign({},t,((r={})[n]=e[0][n],r)):t},null)):2===e.length&&(u(e[0])&&(i=e[0]),u(e[1])&&(r=e[1])),this._n(t,r,i,a)},V.prototype._ntp=function(t,e,n,r){if(!V.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e)).formatToParts(t);var i=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),a=i&&i.formatToParts(t);if(!this._isFallbackRoot(a))return a||[];if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,r)},Object.defineProperties(V.prototype,Y),Object.defineProperty(V,"availabilities",{get:function(){if(!i){var t="undefined"!=typeof Intl;i={dateTimeFormat:t&&void 0!==Intl.DateTimeFormat,numberFormat:t&&void 0!==Intl.NumberFormat}}return i}}),V.install=D,V.version="8.27.0";let X=V;a.default.use(X);let K=new X({locale:document.querySelector("html").getAttribute("lang"),fallbackLocale:"en-GB",messages:function(){let t=n(8737),e={};return t.keys().forEach(n=>{let r=n.match(/([A-Za-z0-9-_]+)\.([A-Za-z0-9-_]+)\./i);r&&r.length>1&&(e[r[2]]=t(n))}),e}()})},3654:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ALERT_TYPES:()=>a,AlertPlugin:()=>o,default:()=>s});var r=n(4293);let i='\n<span class="icon icon-checkmark-circle">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path fill="#758CA3" fill-rule="evenodd" d="M24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 -7.65539184e-17,18.627417 -8.8817842e-16,12 C5.40562444e-15,5.372583 5.372583,1.21743707e-15 12,0 C18.627417,5.58919772e-16 24,5.372583 24,12 Z M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,6.4771525 17.5228475,2 12,2 Z M7.70710678,12.2928932 L10,14.5857864 L16.2928932,8.29289322 C16.6834175,7.90236893 17.3165825,7.9
120236893 17.7071068,8.29289322 C18.0976311,8.68341751 18.0976311,9.31658249 17.7071068,9.70710678 L10.7071068,16.7071068 C10.3165825,17.0976311 9.68341751,17.0976311 9.29289322,16.7071068 L6.29289322,13.7071068 C5.90236893,13.3165825 5.90236893,12.6834175 6.29289322,12.2928932 C6.68341751,11.9023689 7.31658249,11.9023689 7.70710678,12.2928932 Z"></path>\n </svg>\n</span>',a={SUCCESS:"success",DANGER:"danger",INFO:"info"};class o extends r.Z{static dispatchAlert(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.SUCCESS,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7e3;window.dispatchEvent(new CustomEvent("alert",{detail:{type:t,message:e,timeout:n}}))}init(){window.addEventListener("alert",t=>this.handleAlert(t))}constructor(...t){super(...t),this.handleAlert=t=>{let{message:e,type:n,timeout:r}=t.detail;e&&n&&this.displayAlert(this.alertHtml(e,n),n,r)},this.getIcon=t=>{switch(t){case a.SUCCESS:return i;case a.DANGER:return'\n<span class="icon icon-blocked">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path fill="#758CA3" fill-rule="evenodd" d="M12,24 C5.372583,24 -8.8817842e-16,18.627417 -8.8817842e-16,12 C-8.8817842e-16,5.372583 5.372583,-8.8817842e-16 12,-8.8817842e-16 C18.627417,-8.8817842e-16 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 Z M12,22 C17.5228475,22 22,17.5228475 22,12 C22,6.4771525 17.5228475,2 12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 Z M16.2928932,6.29289322 C16.6834175,5.90236893 17.3165825,5.90236893 17.7071068,6.29289322 C18.0976311,6.68341751 18.0976311,7.31658249 17.7071068,7.70710678 L7.70710678,17.7071068 C7.31658249,18.0976311 6.68341751,18.0976311 6.29289322,17.7071068 C5.90236893,17.3165825 5.90236893,16.6834175 6.29289322,16.2928932 L16.2928932,6.29289322 Z"></path>\n </svg>\n</span>';case a.INFO:return'\n<span class="icon icon-info">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path fill="#758CA3" fill-rule="evenodd" d="M12 7c.5523 0 1 .4477 1 1s-.4477 1-1 1-1-.4477-1-1 .4477-1 1-1zm1 9c0 .5523-.4477 1-1 1s-1-.4477-1-1v-5c0-.5523.4477-1 1-1s1 .4477 1 1v5zm11-4c0 6.6274-5.3726 12-12 12S0 18.6274 0 12 5.3726 0 12 0s12 5.3726 12 12zM12 2C6.4772 2 2 6.4772 2 12s4.4772 10 10 10 10-4.4772 10-10S17.5228 2 12 2z"></path>\n </svg>\n</span>';default:return i}},this.alertHtml=(t,e)=>'<div class="nsx-alert">\n <div role="alert" class="alert alert-'.concat(e,' alert-dismissible fade show alert-has-icon">\n\n ').concat(this.getIcon(e),'\n\n <div class="alert-content-container">\n <div class="alert-content">\n ').concat(t,"\n </div>\n </div>\n </div>\n </div>"),this.displayAlert=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7e3,r=document.querySelector(".nsx-alert");r&&r.remove(),document.body.insertAdjacentHTML("beforeend",t),setTimeout(()=>{let t=document.querySelector(".nsx-alert");t&&t.remove()},n),e&&e===a.DANGER&&setTimeout(()=>{window.location.reload()},1.25*n)}}}let s=o},7083:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});class r{static onOld(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;(e=this.buildArray(e)).forEach(function(e){t.addEventListener(e,n)})}static on(t,e,n){(e=this.buildArray(e)).forEach(function(e){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n})}static addClass(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=this.buildArray(e),t.classList.add(...e)}static removeClass(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=this.buildArray(e),t.classList.remove(...e)}static hasClass(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(e=this.buildArray(e))[n?"every":"some"](e=>t.classList.contains(e))}static toggleClass(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";
12(e=this.buildArray(e)).forEach(e=>t.classList.toggle(e))}static parent(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";for(;(t=t.parentElement)&&!(t.matches||t.matchesSelector).call(t,e););return t}static attr(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n)return t.getAttribute(e);!0===n&&(n=""),t.setAttribute(e,String(n))}static removeAttr(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t.removeAttribute(e)}static buildArray(t){return t.split(/(\s+)/).filter(function(t){return t.trim().length>0})}}},61:(t,e,n)=>{"use strict";n.r(e),n.d(e,{LoaderPlugin:()=>o,default:()=>s});var r=n(4293),i=n(4049),a=n(7083);class o extends r.Z{static dispatchLoader(t,e){window.dispatchEvent(new CustomEvent("loader",{detail:{rowNode:t,flag:e}}))}init(){a.Z.on(window,"loader",t=>this._handleLoader(t))}constructor(...t){super(...t),this._handleLoader=t=>{let{rowNode:e,flag:n}=t.detail;e&&this._rowLoader(e,n)},this._rowLoader=(t,e)=>{!0===e?t.insertAdjacentHTML("beforeend",'\n <div class="nxs-canvas-loader">\n <div class="canvas-loader__indicator">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>'):i.Z.querySelector(t,".nxs-canvas-loader").remove()}}}let s=o},6692:t=>{window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,(function(e){return t[e]}).bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=r&&r.__esModule?r:{default:r},a=n(1);function o(t,e){try{if(t.focus(),i.default.isEdge()||i.default.isIE())try{t.contentWindow.document.execCommand("print",!1,null)}catch(e){t.contentWindow.print()}else t.contentWindow.print()}catch(t){e.onError(t)}finally{(0,a.cleanUp)(e)}}e.default={send:function(t,e){document.getElementsByTagName("body")[0].appendChild(e);var n=document.getElementById(t.frameId);n.onload=function(){if("pdf"!==t.type){var e=n.contentWindow||n.contentDocument;if(e.document&&(e=e.document),e.body.appendChild(t.printableElement),"pdf"!==t.type&&t.style){var r=document.createElement("style");r.innerHTML=t.style,e.head.appendChild(r)}var i=e.getElementsByTagName("img");0<i.length?(function(t){var e=[],n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;e.push(function(t){return new Promise(function(e){!function n(){t&&void 0!==t.naturalWidth&&0!==t.naturalWidth&&t.complete?e():setTimeout(n,500)}()})}(s))}}catch(t){r=!0,i=t}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}return Promise.all(e)})(i).then(function(){return o(n,t)}):o(n,t)}else o(n,t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.addWrapper=function(t,e){return'<div style="font-family:'+e.font+" !important; font-size: "+e.font_size+' !important; width:100%;">'+t+"</div>"},e.capitalizePrint=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},e.collectStyles=s,e.loopNodesCollectStyles=function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];if(-1===n.ignoreElements.indexOf(i.getAttribute("id"))){var a=i.tagName;if("INPUT"===a||"TEXTAREA"===a||"SELECT"===a){var o=s(i,n),l=i.parentNode,c="SELECT"===a?document.createTextNode(i.options[i.selectedIndex].text):document.createTextNode(i.value),u=document.createElement("div");u.appendChild(c),u.setAttribute("style",o),l.appendChild(u),l.removeChild(i)}else i.setAttribute("style",s(i,n));var d=i.children;d&&d.length&&t(d,n)}else i.parentNode.removeChild(i)}},e.addHeader=function(t,e){var n=document.createElement("div");if(l(e.header))n.innerHTML=e.header;else{var r=document.createElement("h1"),i=document.createTextNode(e.header);r.appendChild(i),r.setAttribute("style",e.headerStyle),n.appendChild(r)}t.insertBefore(n,t.childNodes[0])},e.cleanUp=function(t){if(t.showModal&&i.default.close(),t.onLoadingEnd&&t.onLoadingEnd(),(t.showModal||t.onLoadingStart)&&window.URL.revokeObjectURL(t.printable),t.onPrintDialogClose){var e="mouseover";(a.default.isChrome()||a.default.isFirefox())&&(e="focus"),window.addEventListener(e,function n(){window.removeEventListener(e,n),t.onPrintDialogClose()})}},e.isRawHTML=l;var i=o(n(3)),a=o(n(2));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var n=document.defaultView||window,i="",a=n.getComputedStyle(t,"");return Object.keys(a).map(function(t){(-1!==e.targetStyles.indexOf("*")||-1!==e.targetStyle.indexOf(a[t])||function(t,e){for(var n=0;n<t.length;n++)if("object"===(void 0===e?"undefined":r(e))&&-1!==e.indexOf(t[n]))return!0;return!1}(e.targetStyles,a[t]))&&a.getPropertyValue(a[t])&&(i+=a[t]+":"+a.getPropertyValue(a[t])+";")}),i+="max-width: "+e.maxWidth+"px !important;"+e.font_size+" !important;"}function l(t){return RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>").test(t)}},function(t,e,n){"use strict";
12Object.defineProperty(e,"__esModule",{value:!0});var r={isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return -1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode},isEdge:function(){return!r.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(0<arguments.length&&void 0!==arguments[0]?arguments[0]:window).chrome},isSafari:function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||-1!==navigator.userAgent.toLowerCase().indexOf("safari")}};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={show:function(t){var e=document.createElement("div");e.setAttribute("style","font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;"),e.setAttribute("id","printJS-Modal");var n=document.createElement("div");n.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var i=document.createElement("div");i.setAttribute("class","printClose"),i.setAttribute("id","printClose"),n.appendChild(i);var a=document.createElement("span");a.setAttribute("class","printSpinner"),n.appendChild(a);var o=document.createTextNode(t.modalMessage);n.appendChild(o),e.appendChild(n),document.getElementsByTagName("body")[0].appendChild(e),document.getElementById("printClose").addEventListener("click",function(){r.close()})},close:function(){var t=document.getElementById("printJS-Modal");t.parentNode.removeChild(t)}};e.default=r},function(t,e,n){t.exports=n(5)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(6);var r=n(7),i=(r&&r.__esModule?r:{default:r}).default.init;"undefined"!=typeof window&&(window.printJS=i),e.default=i},function(t,e,n){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=d(n(2)),a=d(n(3)),o=d(n(8)),s=d(n(9)),l=d(n(10)),c=d(n(11)),u=d(n(12));function d(t){return t&&t.__esModule?t:{default:t}}var h=["pdf","html","image","json","raw-html"];e.default={init:function(){var t={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(t){throw t},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:null,onPdfOpen:null,onBrowserIncompatible:function(){return!0},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],imageStyle:"max-width: 100%;",repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1},e=arguments[0];if(void 0===e)throw Error("printJS expects at least 1 attribute.");switch(void 0===e?"undefined":r(e)){case"string":t.printable=encodeURI(e),t.fallbackPrintable=t.printable,t.type=arguments[1]||t.type;break;case"object":for(var n in t.printable=e.printable,t.base64=void 0!==e.base64,t.fallbackPrintable=void 0!==e.fallbackPrintable?e.fallbackPrintable:t.printable,t.fallbackPrintable=t.base64?"data:application/pdf;base64,"+t.fallbackPrintable:t.fallbackPrintable,t)"printable"!==n&&"fallbackPrintable"!==n&&"base64"!==n&&(t[n]=void 0!==e[n]?e[n]:t[n]);break;default:throw Error('Unexpected argument type! Expected "string" or "object", got '+(void 0===e?"undefined":r(e)))}if(!t.printable)throw Error("Missing printable information.");if(!t.type||"string"!=typeof t.type||-1===h.indexOf(t.type.toLowerCase()))throw Error("Invalid print type. Available types are: pdf, html, image and json.");t.showModal&&a.default.show(t),t.onLoadingStart&&t.onLoadingStart();var d=document.getElementById(t.frameId);d&&d.parentNode.removeChild(d);var f=void 0;switch((f=document.createElement("iframe")).setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute;"),f.setAttribute("id",t.frameId),"pdf"!==t.type&&(f.srcdoc="<html><head><title>"+t.documentTitle+"</title>",null!==t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach(function(t){f.srcdoc+='<link rel="stylesheet" href="'+t+'">'})),f.srcdoc+="</head><body></body></html>"),t.type){case"pdf":if(i.default.isFirefox()||i.default.isEdge()||i.default.isIE())try{console.info("PrintJS currently doesn't support PDF printing in Firefox, Internet Explorer and Edge."),!0===t.onBrowserIncompatible()&&(window.open(t.fallbackPrintable,"_blank").focus(),t.onPdfOpen&&t.onPdfOpen())}catch(e){t.onError(e)}finally{t.showModal&&a.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else o.default.print(t,f);break;case"image":c.default.print(t,f);break;case"html":s.default.print(t,f);break;case"raw-html":l.default.print(t,f);break;case"json":u.default.print(t,f)}}}},function(t,e,n){"use strict";
12Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r&&r.__esModule?r:{default:r},a=n(1);function o(t,e,n){var r=new window.Blob([n],{type:"application/pdf"});r=window.URL.createObjectURL(r),e.setAttribute("src",r),i.default.send(t,e)}e.default={print:function(t,e){if(t.base64){var n=Uint8Array.from(atob(t.printable),function(t){return t.charCodeAt(0)});o(t,e,n)}else{t.printable=/^(blob|http)/i.test(t.printable)?t.printable:window.location.origin+("/"!==t.printable.charAt(0)?"/"+t.printable:t.printable);var r=new window.XMLHttpRequest;r.responseType="arraybuffer",r.addEventListener("load",function(){if(-1===[200,201].indexOf(r.status))return(0,a.cleanUp)(t),void t.onError(r.statusText);o(t,e,r.response)}),r.open("GET",t.printable,!0),r.send()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=i&&i.__esModule?i:{default:i};e.default={print:function(t,e){var n=document.getElementById(t.printable);n?(t.printableElement=function t(e,n){var r=e.cloneNode(),i=!0,a=!1,o=void 0;try{for(var s,l=e.childNodes[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var c=s.value;if(-1===n.ignoreElements.indexOf(c.id)){var u=t(c,n);r.appendChild(u)}}}catch(t){a=!0,o=t}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}switch(e.tagName){case"SELECT":r.value=e.value;break;case"CANVAS":r.getContext("2d").drawImage(e,0,0)}return r}(n,t),t.header&&(0,r.addHeader)(t.printableElement,t),a.default.send(t,e)):window.console.error("Invalid HTML element id: "+t.printable)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r&&r.__esModule?r:{default:r};e.default={print:function(t,e){t.printableElement=document.createElement("div"),t.printableElement.setAttribute("style","width:100%"),t.printableElement.innerHTML=t.printable,i.default.send(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=i&&i.__esModule?i:{default:i};e.default={print:function(t,e){t.printable.constructor!==Array&&(t.printable=[t.printable]),t.printableElement=document.createElement("div"),t.printable.forEach(function(e){var n=document.createElement("img");n.setAttribute("style",t.imageStyle),n.src=e;var r=document.createElement("div");r.appendChild(n),t.printableElement.appendChild(r)}),t.header&&(0,r.addHeader)(t.printableElement,t),a.default.send(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(1),a=n(0),o=a&&a.__esModule?a:{default:a};e.default={print:function(t,e){if("object"!==r(t.printable))throw Error("Invalid javascript data object (JSON).");if("boolean"!=typeof t.repeatTableHeader)throw Error("Invalid value for repeatTableHeader attribute (JSON).");if(!t.properties||!Array.isArray(t.properties))throw Error("Invalid properties array for your JSON data.");t.properties=t.properties.map(function(e){return{field:"object"===(void 0===e?"undefined":r(e))?e.field:e,displayName:"object"===(void 0===e?"undefined":r(e))?e.displayName:e,columnSize:"object"===(void 0===e?"undefined":r(e))&&e.columnSize?e.columnSize+";":100/t.properties.length+"%;"}}),t.printableElement=document.createElement("div"),t.header&&(0,i.addHeader)(t.printableElement,t),t.printableElement.innerHTML+=function(t){var e=t.printable,n=t.properties,r='<table style="border-collapse: collapse; width: 100%;">';t.repeatTableHeader&&(r+="<thead>"),r+="<tr>";for(var a=0;a<n.length;a++)r+='<th style="width:'+n[a].columnSize+";"+t.gridHeaderStyle+'">'+(0,i.capitalizePrint)(n[a].displayName)+"</th>";r+="</tr>",t.repeatTableHeader&&(r+="</thead>"),r+="<tbody>";for(var o=0;o<e.length;o++){r+="<tr>";for(var s=0;s<n.length;s++){var l=e[o],c=n[s].field.split(".");if(1<c.length)for(var u=0;u<c.length;u++)l=l[c[u]];else l=l[n[s].field];r+='<td style="width:'+n[s].columnSize+t.gridStyle+'">'+l+"</td>"}r+="</tr>"}return r+"</tbody></table>"}(t),o.default.send(t,e)}}}]).default},7437:(t,e,n)=>{"use strict";n.d(e,{s:()=>a});var r=n(6004),i=n.n(r);class a{static async get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await i().get(t,e)}static async put(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return await i().put(t,e,n)}static async patch(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return await i().patch(t,e,n)}static async post(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return await i().post(t,e,n)}static async delete(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await i().delete(t,e)}}},1850:(t,e,n)=>{"use strict";n.d(e,{W:()=>r});class r{static getUpdateProductPayload(){let{canvasObjects:t=[],configuratorConfig:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{entity:{...e,configuration:this.getConfiguration(t)}}}static getConfiguration(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t.config.visible&&!t.isProductImage&&!t.isMaskImage)}}},8197:(t,e,n)=>{"use strict";n.d(e,{P:()=>l});var r=n(4943),i=n(4821),a=n(5164),o=n(2495),s=n(5372);class l{static fitCanvasIntoParentContainer(t,e){let n=i.Store.getters.canvasSize;e.width>n&&(e.width=n);let o=i.Store.getters.canvasConfig,s=e.width/n,l={width:t.width*s,height:t.height*s},c=Math.abs(o.rotation/90)-1;c<0&&(c=3),(0===c||2===c)&&(l={width:t.height*s,height:t.width*s});let{x:u,y:d}=r.Yu[c];i.Store.dispatch("updateCanvasConfig",{width:l.width,height:l.height,scaleX:s,scaleY:s,offsetX:0,offsetY:0,x:u?0:l.width,y:d?0:l.height}),window.localStorage.getItem(a.l)||i.Store.dispatch("storeStateToLocalStorage")}static updateTransformer(t,e){let n=t.transformer.getNode(),r=n.getStage().findOne("."+e);r!==n.node()&&(r?n.nodes([r]):n.nodes([]),n.getLayer().batchDraw())}static handleStageMouseDown(t,e,n,r,a){if(t.target===t.target.getStage()){e(""),this.updateTransformer(n,a);return}if("Transformer"===t.target.getParent().className)return;let l=t.target.name(),c=r.find(t=>t.config.name===l),u=c&&!c.isProductImage&&!c.isMaskImage;if(i.Store.commit(o.nW,s.Hi.value),u){e(l);let t=c.isSymbol?c.config.pathColor:c.config.fill,r=i.Store.getters.colors.find(e=>e.value===t);i.Store.commit(o.KU,r||i.Store.getters.defaultColor),this.updateTransformer(n,a)}}
12static handleTextTransform(t){let e=t.target,n=e.width(),r=Math.max(n*e.scaleX(),e.fontSize()),i=(n-r)*e.offsetX()/n;e.setAttrs({x:e.x()+i,width:r,height:"auto",scaleX:1}),e.setAttrs({height:Math.max(t.target.height()*t.target.scaleY(),t.target.fontSize())+2,scaleY:1})}static checkIfCoordinatesInArea(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:0,xy:0,yx:0,yy:0},{x:n,y:r}=t,{x:i,xy:a,y:o,yy:s}=e;return _.inRange(n,i,a)&&_.inRange(r,o,s)}static getAmountOfSpecificColorPixels(t,e){let n=t.getContext("2d",{willReadFrequently:!0}),r=t.width,i=t.height,a=n.getImageData(0,0,r,i),o=[],s=[];for(let t=0;t<r;t++)o.push(t);for(let t=0;t<i;t++)s.push(t);let l=[];for(let t=0;t<o.length;t++)for(let e=0;e<s.length;e++)l.push({x:o[t],y:s[e]});let c=0;return l.forEach(t=>{let n=(t.y*a.width+t.x)*4,r=a.data[n],i=a.data[n+1],o=a.data[n+2];this.rgbToHex(r,i,o)===e&&c++}),c}static pxToMm(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return Number((t-Number(r))*(e||n)/n).toFixed(i)}static mmToPx(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return Number(t*n/(e||n)).toFixed(r)}}l.getStage=t=>{let e;return(e=Array.isArray(t)?t&&t[0]:t)&&e.getStage()},l.removeEmojis=t=>t.replace(/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g,""),l.rgbToHex=(t,e,n)=>"#"+(16777216+(t<<16)+(e<<8)+n).toString(16).slice(1)},9953:(t,e,n)=>{"use strict";n.d(e,{K:()=>i});var r=n(1495);class i{static getDomNode(t){return document.querySelector(t)}static getDomNodes(t){return document.querySelectorAll(t)}static closeModal(){this.getDomNode(".val-close-configurator-modal").click();let t=document.querySelector(".nsx-alert");t&&t.remove()}static replaceProductTwigImage(t,e){if(!e||!t)return;let n=this.getDomNode("#product-".concat(t," .product-image")),r=this.getDomNode("#product-".concat(t," .val-thumbnail-tooltip img"));n&&(n&&this.resetImageAttributes(n),r&&this.resetImageAttributes(r),n&&n.setAttribute("src",e),r&&r.setAttribute("src",e))}static resetImageAttributes(t){t.hasAttribute("data-src")&&t.removeAttribute("data-src"),t.hasAttribute("data-srcset")&&t.removeAttribute("data-srcset"),t.hasAttribute("srcset")&&t.removeAttribute("srcset")}static changeDropdownActionsState(t,e){let n=this.getDomNodes("#product-".concat(t," .nxs-dropdown-child")),r=this.getDomNodes("#product-".concat(t," .nxs-actions-btns"));n&&0!==n.length&&this.disableDropdownActionButtons(n,e),r&&0!==r.length&&this.disableCollectionActionButtons(r,e)}static disableDropdownActionButtons(t,e){t.forEach(t=>{let n=t.querySelector("a, .btn");this.setState(e,n)})}static disableCollectionActionButtons(t,e){Array.from(t).map(t=>{let n=t.querySelectorAll("button");JSON.parse(t.querySelectorAll(".nxs-edit-btn")[0].getAttribute("data-configurator-initializer-options")).isGuestUser?t.closest(".nxs-listing-collection").querySelectorAll("button").forEach(t=>{this.setState(e,t)}):n.forEach(t=>{this.setState(e,t)})})}static setState(t,e){e&&(t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}static minMax(t,e,n){return Math.max(Math.min(parseInt(n,10),e),t)}static getConfiguratorSaveSecurityToken(){let t=this.getDomNode('[name="_csrf_frontend.gt.collections.update"]');return t?t.value:null}static getMediaUploadSecurityToken(){let t=this.getDomNode('[name="_csrf_frontend.gt.media.add"]');return t?t.value:null}static removeProductPrintingMethodLabelState(t){if(t){let e=this.getDomNodes("#product-".concat(t," .printing-method"));e&&Array.from(e).map(t=>{t.classList.remove("active")})}}static setMinHeight(t){t.style.minHeight="".concat(t.clientHeight,"px")}static updateProductData(t,e){let n=null,r=null,i=t.querySelector(".nxs-canvas-loader"),a=new window.DOMParser().parseFromString(e,"text/html"),o=a.querySelector('input[name="data-etag"]'),s=t.querySelector('input[name="data-etag"]');document.body.classList.contains("is-act-collectionspage")?(n=t.querySelector(".square-box"),r=a.querySelector(".square-box")):(n=t.querySelector(".row"),r=a.querySelector(".row")),s.value=o.value,n.remove(),t.insertBefore(r,i)}static reinitializePlugins(){window.PluginManager.initializePlugins()}static togglePrintLabelsDOMElement(){let t=this.getDomNodes('[data-project-printing-method-id="'.concat(r.pm.LABEL,'"]')),e=this.getDomNodes(".val-page-has-label-products");0!==t.length?e.forEach(t=>{t.classList.remove("d-none"),t.classList.add("d-block")}):e.forEach(t=>{t.classList.remove("d-block"),t.classList.add("d-none")})}}i.setAttrs=(t,e)=>{for(let n in e)t.setAttr(n,e[n])},i.updateMediaUploadSecurityToken=t=>{let e=i.getDomNode('[name="_csrf_frontend.gt.media.add"]');e&&(e.value=t)}},9005:(t,e,n)=>{"use strict";n.d(e,{N:()=>r});let r=new(n(5055)).default},3700:(t,e,n)=>{"use strict";n.d(e,{P:()=>l});var r=n(4943),i=n(8490),a=n(7437),o=n(9530),s=n.n(o);class l{static loadImage(t){let e=new window.Image;return e.src=t,e.crossOrigin="Anonymous",new Promise(t=>{e.onload=()=>{t(e)}})}static async loadSvg(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.EJ.value,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(await a.s.get(t)).data,u=document.createElement("div");u.innerHTML=c;let d=u.querySelector("svg"),h=t.includes("legacy"),f=t.includes("revox"),g=t.includes("unique"),p=!!d.querySelector("image");if(!d)return;let v=d.attributes.viewBox.value.split(" "),m=v[2],b=v[3],y=m,C=b;if(e){let t=1;h?t=2.5:f?t=.4:g&&p&&(t=4);let e=this.calculateAspectRatioFit(m,b,m*t,b*t);if(y=e.width.toString(),C=e.height.toString(),e&&e.height&&e.width&&(d.setAttribute("height",C),d.setAttribute("width",y)),!g){let t=d.querySelectorAll("style");t.length>0&&t.forEach(t=>{t.innerHTML=t.innerHTML.replace(/#(?![F-f]{3,4})(([\da-fA-F]{2}){3,4}|([\da-fA-F]){3,4})/g,n)})}if(!p&&!g){let t=d.querySelectorAll("path, rect, polyline, polygon, circle, ellipse, line");t.length>0&&t.forEach(t=>
12{["style","id"].forEach(e=>t.removeAttribute(e)),t.setAttribute("fill",n||r)}),d.setAttribute("fill",n||r)}}else d.setAttribute("height",b),d.setAttribute("width",m);let S=s()(d.outerHTML);return{width:y,height:C,image:await l.loadImage(S),svgAsDataUrl:S,url:t,...o}}static isImageCacheable(t){return!!t&&t.type===r.HN&&!t.isSymbol}static isImageFilterable(t){return this.isImageCacheable(t)&&!t.isProductImage&&!t.isMaskImage}static calculateAspectRatioFit(t,e,n,r){let i=Math.min(n/t,r/e);return{width:parseInt(t*i,10),height:parseInt(e*i,10)}}static async getImageConfig(t,e){let n,r,i;if(t.includes(".svg")){let a=await l.loadSvg(t,e.isSymbol,e.config.pathColor);n=a.image,r=parseFloat(a.width),i=parseFloat(a.height)}else n=await l.loadImage(t),r=parseFloat(e.config.width),i=parseFloat(e.config.height);return{image:n,width:r,height:i}}}},3399:(t,e,n)=>{let r=n(4991);t.exports={LabelUtils:class{static parseLabelMaskSvg(t){let e=t.querySelectorAll("g"),n=[];return e.length>0?e.forEach(t=>{n.push(this.parseGroup(t))}):n.push(this.parseGroup(t)),n}static parseGroup(t){let e=Array.from(t.querySelectorAll("path"));if(e.length<=0)return;let n=this.combinePaths(e),i=t.querySelector("text"),a=1,o=1;if(i){let t=i.innerText.replace(/\s+/g,"").replace(/,/g,".").split("x");a=t[0],o=t[1]}return{id:r(),path:n,width:a,height:o}}static combinePaths(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[];return t.forEach((t,n)=>{let r=t.getAttribute("d");n<=0?e.push(r):e.push(r.replace(/m/g,"M"))}),e.join(" ")}static isLabelGroup(t){let e=t.children;if(!e)return!1;let n=!1,r=!1;return Array.from(e).forEach(t=>{"text"===t.nodeName&&(n=!0),"path"===t.nodeName&&(r=!0)}),n&&r}}}},1866:(t,e,n)=>{"use strict";n.d(e,{j:()=>c});var r=n(4821),i=n(4943),a=n(3700),o=n(548),s=n(5662),l=n(5264);class c{static getNode(t,e){let n=e[t.config.name]||e.stage.$refs[t.config.name];return n&&n[0]}static async updateAllCanvasObjectsColor(t,e){if(!t)return;let{isSymbol:n,url:r,type:i,config:{name:a}}=t;n?await c.updateSymbol(r,e,a,i):c.isImage(t)?c.updateImage(a,e,i):c.updateText(a,e,i)}static isImage(t){let{isSymbol:e,type:n}=t;return n===i.HN&&!1===e}static async updateSymbol(t,e,n,i){let o=await a.P.loadSvg(t,!0,e.value,r.Store.getters.selectedColor);r.Store.dispatch("updateCanvasObject",{config:{name:n,[this.attributeToUpdate(i)]:e.value,image:o.image},isHistoryEnabled:!1})}static updateImage(t,e,n){if(!r.Store.getters.isConfiguratorPadPrinting)return;let i=r.Store.getters.isDigitalPrintEnabled;o.l.updateFilters({filters:i?[]:s.VH,name:t,attributes:i?{}:l.h.getAttributes(s.fQ.LASERING),removableAttributes:{},color:e.value}),r.Store.dispatch("updateCanvasObject",{config:{name:t,[this.attributeToUpdate(n)]:e.value},isHistoryEnabled:!1})}static updateText(t,e,n){r.Store.dispatch("updateCanvasObject",{config:{name:t,[this.attributeToUpdate(n)]:e.value},isHistoryEnabled:!1})}static attributeToUpdate(t){return t===i.bq?"fill":"pathColor"}}},5264:(t,e,n)=>{"use strict";n.d(e,{h:()=>i});var r=n(5662);class i{static getAttributes(t){let e={},n=r.Py[t];return n&&n.map(t=>{e[t]=r.Og[t]}),e}static settingValuesByFilterKey(t){return{[r.fQ.LASERING]:{[r.fQ.LASERING]:t[r.zi[r.fQ.LASERING]]},[r.fQ.BLUR]:{[r.fQ.BLUR]:t[r.zi[r.fQ.BLUR]]},[r.fQ.CONTRAST]:{[r.fQ.CONTRAST]:t[r.zi[r.fQ.CONTRAST]]},[r.fQ.HSL]:{[r.F0.HUE]:t[r.zi[r.F0.HUE]],[r.F0.LUMINANCE]:t[r.zi[r.F0.LUMINANCE]],[r.F0.SATURATION]:t[r.zi[r.F0.SATURATION]]},[r.fQ.RGB]:{[r.wW.RED]:t[r.zi[r.wW.RED]],[r.wW.GREEN]:t[r.zi[r.wW.GREEN]],[r.wW.BLUE]:t[r.zi[r.wW.BLUE]]},[r.fQ.EMBOSS]:{[r.oV.STRENGTH]:t[r.zi[r.oV.STRENGTH]],[r.oV.WHITE_LEVEL]:t[r.zi[r.oV.WHITE_LEVEL]]},[r.fQ.MASK]:{[r.fQ.MASK]:t[r.zi[r.fQ.MASK]]},[r.fQ.NOISE]:{[r.fQ.NOISE]:t[r.zi[r.fQ.NOISE]]},[r.fQ.PIXELATE]:{[r.fQ.PIXELATE]:t[r.zi[r.fQ.PIXELATE]]},[r.fQ.ENHANCE]:{[r.fQ.ENHANCE]:t[r.zi[r.fQ.ENHANCE]]},[r.fQ.BRIGHTEN]:{[r.fQ.BRIGHTEN]:t[r.zi[r.fQ.BRIGHTEN]]}}}static filtersByKey(t){return{[r.fQ.GRAYSCALE]:{label:t.$t("configurator.grayscale"),settings:null},[r.fQ.INVERT]:{label:t.$t("configurator.invert"),settings:null},[r.fQ.BLUR]:{label:t.$t("configurator.blur"),settings:{[r.fQ.BLUR]:{min:0,max:50,interval:.1}}},[r.fQ.CONTRAST]:{label:t.$t("configurator.contrast"),settings:{[r.fQ.CONTRAST]:{min:-100,max:100,interval:1}}},[r.fQ.BRIGHTEN]:{label:t.$t("configurator.brighten"),settings:{[r.fQ.BRIGHTEN]:{min:-1,max:1,interval:.05}}},[r.fQ.PIXELATE]:{label:t.$t("configurator.pixelate"),settings:{[r.fQ.PIXELATE]:{min:1,max:10,interval:.5}}},[r.fQ.HSL]:{label:t.$t("configurator.hsl"),settings:{[r.F0.HUE]:{label:t.$t("configurator.hue"),min:0,max:259,interval:1},[r.F0.LUMINANCE]:{label:t.$t("configurator.luminance"),min:-1,max:2,interval:.1},[r.F0.SATURATION]:{label:t.$t("configurator.saturation"),min:-2,max:10,interval:.5}}},[r.fQ.RGB]:{label:t.$t("configurator.rgb"),settings:{[r.wW.RED]:{label:t.$t("configurator.red"),min:0,max:256,interval:1},[r.wW.GREEN]:{label:t.$t("configurator.green"),min:0,max:256,interval:1},[r.wW.BLUE]:{label:t.$t("configurator.blue"),min:0,max:256,interval:1}}},[r.fQ.LASERING]:{label:t.$t("configurator.engraving"),isCustomFilter:!0,settings:{[r.fQ.LASERING]:{min:0,max:256,interval:1}}},[r.fQ.EMBOSS]:{label:t.$t("configurator.emboss"),settings:{[r.oV.STRENGTH]:{label:t.$t("configurator.strength"),min:0,max:1,interval:.1},[r.oV.WHITE_LEVEL]:{label:t.$t("configurator.whiteLevel"),min:0,max:1,interval:.1}}},[r.fQ.MASK]:{label:t.$t("configurator.mask"),settings:{[r.fQ.MASK]:{min:0,max:100,interval:1}}},[r.fQ.NOISE]:{label:t.$t("configurator.noise"),settings:{[r.fQ.NOISE]:{min:0,max:10,interval:.5}}},[r.fQ.ENHANCE]:{label:t.$t("configurator.enhance"),settings:{[r.fQ.ENHANCE]:{min:-1,max:1,interval:.1}}}}}}},548:(t,e,n)=>{"use strict";n.d(e,{l:()=>u});var r=n(361),i=n(5662),a=n(3700),o=n(5264),s=n(4821),l=n(552);let c=Object.keys(i.N7);class u{static sortedFiltersArray(t,e){return[...t.filter(t=>!e.includes(t)),...t.filter(t=>e.includes(t))]}}u.toggleImageFilter=t=>{let{filterKey:e,isCustomFilter:n}
12=t,a=n?i.N7[e]:r.default.Filters[e],s=u.selectedCanvasObjectFilters()||[],l=o.h.getAttributes(e),c=s.includes(a)?s.filter(t=>t!==a):[...s,a],d=u.sortedFiltersArray(c,i.VH);u.updateFilters({filters:d,attributes:l})},u.toggleFiltersByConfiguratorType=t=>{if(!a.P.isImageFilterable(t))return;let e=t.config.filters||[],n=[...e.filter(t=>!i.VH.includes(t)),...i.VH],r=s.Store.getters.isConfiguratorLaser?n:e.filter(t=>!i.VH.includes(t)),l=s.Store.getters.isPadPrintingEnabled||s.Store.getters.isConfiguratorPadPrinting;u.updateFilters({filters:l?n:r,name:t.config.name,attributes:o.h.getAttributes(i.fQ.LASERING)})},u.addFiltersToImage=function(){let{imageConfig:t={},assetName:e=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t||!t.filters)return;let n=[];u.sortedFiltersArray(t.filters,i.f6).map(t=>{n=[...new Set([...n.filter(Boolean),c.includes(t)?i.N7[t]:r.default.Filters[t]])]}),!n.includes(l.N)&&!s.Store.getters.isDigitalPrintEnabled&&(s.Store.getters.isConfiguratorPadPrinting||s.Store.getters.isConfiguratorLaser)&&n.push(l.N),s.Store.dispatch("updateCanvasImage",{imageConfig:{config:{name:e,filters:n},filters:u.getFilterFunctionsAsStringsArray([...n])},isHistoryEnabled:!0})},u.updateFilters=t=>{let{filters:e,name:n,attributes:r={},removableAttributes:i={},color:a=null}=t,o=n||s.Store.getters.selectedCanvasObjectName,l=s.Store.getters.getCanvasObjectByName(o),c=[],d={...l.config,...r};e?r&&(d=l.config,Array.from(Object.keys(r)).map(t=>{i[t]?c.push(t):d[t]=r[t]})):e=u.selectedCanvasObjectFilters()||[];let h=_.clone(_.omit(d,c));s.Store.dispatch("updateCanvasImage",{imageConfig:{config:{name:o,...h,filters:e,pathColor:s.Store.getters.isConfiguratorLaser?s.Store.getters.laserColor:s.Store.getters.defaultColor.value},filters:u.getFilterFunctionsAsStringsArray(e)},isHistoryEnabled:!1,removeAttributes:{...c,...i}})},u.getFilterFunctionsAsStringsArray=t=>t.filter(Boolean).map(t=>t===l.N?"JungFilter":t.name),u.selectedCanvasObjectFilters=()=>{let{selectedCanvasObjectName:t,selectedCanvasObject:e}=s.Store.getters;return t&&e.config.filters||[]},u.isFilterChecked=t=>u.selectedCanvasObjectFilters().includes(t.isCustomFilter?i.N7[t.filterKey]:r.default.Filters[t.filterKey]),u.isFilterDisabled=t=>{let e=s.Store.getters.isPadPrintingEnabled&&s.Store.getters.isOnlyPadPrintingEnabled||s.Store.getters.isConfiguratorPadPrinting;return i.f6.includes(t)&&(s.Store.getters.isConfiguratorLaser||e&&!s.Store.getters.isDigitalPrintEnabled)}},7513:t=>{function e(t){let e=Number(t).toString(16);return e.length<2&&(e="0"+e),e}let n=function(t,n,r){let i=e(t),a=e(n),o=e(r);return"#".concat(i+a+o)};t.exports=function(t,e,r){let i=r._cache.get("canvas").scene.pixelRatio,a=function(t){let e=["red","green","blue","alpha"],n=t.slice(t.indexOf("(")+1,t.indexOf(")")).split(","),r={};return n.forEach((t,n)=>{r[e[n]]=t}),r}(e),o=n(a.red,a.green,a.blue),s=parseInt(o.substring(1,3),16),l=parseInt(o.substring(3,5),16),c=parseInt(o.substring(5,7),16),u=r.attrs.inverseDegree,d=r.attrs.invert,h=Math.round(r.attrs.width*i*1.02),f=Math.round(r.attrs.height*i*1.02),g=t.data;for(let t=0;t<f;t++)for(let e=0;e<h;e++){let n=4*t*h+4*e,r=(g[n]+g[n+1]+g[n+2])/3;d?r>u?(g[n]=s,g[++n]=l,g[++n]=c):(g[n]=255,g[++n]=255,g[++n]=255,g[++n]=0):r<u?(g[n]=s,g[++n]=l,g[++n]=c):(g[n]=255,g[++n]=255,g[++n]=255,g[++n]=0)}}},552:(t,e,n)=>{"use strict";n.d(e,{N:()=>o,X:()=>s});var r=n(4821),i=n(7513),a=n.n(i);let o=function(t){a()(t,r.Store.getters.selectedColor.value,this)};class s{constructor(){this.getCustomFilter=()=>this.filter,this.getName=()=>this.name,this.filter=o,this.name="JungFilter"}}},5662:(t,e,n)=>{"use strict";n.d(e,{F0:()=>l,N7:()=>g,Og:()=>i,Py:()=>u,V4:()=>f,VH:()=>p,aK:()=>v,b1:()=>d,f6:()=>m,fQ:()=>a,oV:()=>o,wW:()=>s,x_:()=>h,zi:()=>c});var r=n(552);let i={filters:[],threshold:0,blurRadius:0,pixelSize:1,brightness:0,noise:0,enhance:0,embossStrength:.5,embossWhiteLevel:.5,embossDirection:"top",embossBlend:!1,contrast:0,red:150,green:150,blue:150,hue:150,saturation:0,luminance:0,inverseDegree:127,invert:!1},a={BLUR:"Blur",GRAYSCALE:"Grayscale",INVERT:"Invert",MASK:"Mask",PIXELATE:"Pixelate",NOISE:"Noise",ENHANCE:"Enhance",EMBOSS:"Emboss",CONTRAST:"Contrast",RGB:"RGB",HSL:"HSL",BR
12IGHTEN:"Brighten",LASERING:"JungFilter"},o={STRENGTH:"embossStrength",WHITE_LEVEL:"embossWhiteLevel"},s={RED:"red",GREEN:"green",BLUE:"blue"},l={HUE:"hue",SATURATION:"saturation",LUMINANCE:"luminance"},c={[a.BLUR]:"blurRadius",[a.MASK]:"threshold",[a.PIXELATE]:"pixelSize",[a.NOISE]:"noise",[a.ENHANCE]:"enhance",[a.CONTRAST]:"contrast",[a.BRIGHTEN]:"brightness",[a.LASERING]:"inverseDegree",[o.STRENGTH]:"embossStrength",[o.WHITE_LEVEL]:"embossWhiteLevel",[s.RED]:"red",[s.GREEN]:"green",[s.BLUE]:"blue",[l.HUE]:"hue",[l.SATURATION]:"saturation",[l.LUMINANCE]:"luminance"},u={[a.BLUR]:["blurRadius"],[a.MASK]:["threshold"],[a.PIXELATE]:["pixelSize"],[a.NOISE]:["noise"],[a.ENHANCE]:["enhance"],[a.CONTRAST]:["contrast"],[a.BRIGHTEN]:["brightness"],[a.EMBOSS]:["embossStrength","embossWhiteLevel"],[a.RGB]:["red","green","blue"],[a.HSL]:["hue","saturation","luminance"],[a.BRIGHTEN]:["hue","saturation","luminance"],[a.LASERING]:["inverseDegree"]},d=[a.BLUR,a.INVERT,a.PIXELATE,a.LASERING],h={x:0,y:0,scaleX:1,scaleY:1,rotation:0,offsetX:0,offsetY:0},f={scaleX:1,scaleY:1,rotation:0,offsetX:0,offsetY:0},g={[a.LASERING]:new r.X().getCustomFilter()},p=[new r.X().getCustomFilter()],v=[new r.X],m=["JungFilter"]},1703:(t,e,n)=>{"use strict";n.d(e,{N:()=>o});var r=n(6522),i=n.n(r),a=n(4943);class o{static loadFont(t){try{return new(i())(t).load()}catch(t){return new(i())(a.B9.fontFamily).load()}}}},4943:(t,e,n)=>{"use strict";n.d(e,{B9:()=>c,HN:()=>a,NY:()=>d,RD:()=>u,Ro:()=>m,Yu:()=>f,bq:()=>i,hR:()=>b,hy:()=>v,kF:()=>h,le:()=>o,nz:()=>g,t5:()=>l,uf:()=>s,vi:()=>p});var r=n(8490);let i="TEXT",a="IMAGE",o="transparent",s={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",CENTER_LEFT:"center-left",CENTER:"center",CENTER_RIGHT:"center-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},l={name:"",image:null,crop:{},draggable:!0,scaleX:1,scaleY:1,initialWidth:1,initialHeight:1,svgScale:1,offsetX:0,offsetY:0,rotation:0,visible:!0,globalCompositeOperation:"source-atop",order:0},c={name:"",width:130,height:32,lineHeight:1,fontSize:30,text:"Textfeld",align:"center",fontFamily:"Arial",draggable:!0,fill:r.EJ.value,scaleX:1,scaleY:1,rotation:0,visible:!0,wrap:"word",globalCompositeOperation:"source-atop",order:0},u={type:a,isProductImage:!1,isSymbol:!1,url:"",transformOrigin:s.CENTER,mediaId:null,config:l},d={type:i,transformOrigin:s.CENTER,config:c,data:null,isCounterFunctionText:!1},h={offsetX:0,offsetY:0,scaleX:1,scaleY:1,rotation:0,x:0,y:0},f=[{x:!1,y:!0,nextAngle:90},{x:!1,y:!1,nextAngle:180},{x:!0,y:!1,nextAngle:270},{x:!0,y:!0,nextAngle:0}],g={enabledAnchors:["middle-right","middle-left"],boundBoxFunc:(t,e)=>e.width<20?t:e},p={keepRatio:!0,enabledAnchors:["top-left","top-right","bottom-left","bottom-right"],rotationSnaps:[0,90,180,270],borderStroke:"#84a2b4",borderStrokeWidth:1,padding:0,anchorCornerRadius:50,anchorFill:"#84a2b4",anchorStroke:"#84a2b4",anchorSize:6,rotateAnchorOffset:25},v="canvasPreviewNode",m={fill:"transparent",opacity:1,strokeWidth:3,cancelBubble:!0},b={BOLD:"bold",ITALIC:"italic",NORMAL:"normal"}},8490:(t,e,n)=>{"use strict";n.d(e,{EJ:()=>i,wK:()=>a,zE:()=>o,zQ:()=>r});let r={value:"#000000",name:"Black"},i={value:"#000000",name:"Black"},a={value:"transparent",label:"Transparent"},o={DIGITAL_PRINT:"adf552c5adc540fb1fe6d460b7784360",PAD_PRINT:"beb0367146130eb7862d40f67a391bee",LABEL_BACKGROUND:"9771301e91cc7f2fb2ab55696cfa5578"}},5164:(t,e,n)=>{"use strict";n.d(e,{c:()=>u,l:()=>c});var r=n(1495),i=n(2495);let a={[i.i6](t,e){t.product={...t.product,...e}},[i.Wz](t){t.product={...r.U5},t.configuratorTypes=[],t.selectedType=null,t.config={}},[i.bT](t,e){t.configuratorType=e},[i.x4](t,e){t.editedInformation=e},[i.PM](t,e){t.salesChannel=e},[i.E8](t,e){t.config={...e.config}},[i.PI](t,e){t.selectedType=e},[i.k6](t,e){t.configuratorTypes=e},[i.FE](t,e){t.config={...t.config,...e}}};var o=n(548),s=n(1866),l=n(173);let c="gt-modal-store-state",u={state:()=>({product:{...r.U5},configuratorTypes:[],selectedType:null,config:{},editedInformation:!1,salesChannel:"de-DE"}),mutations:a,actions:{addConfiguratorConfig(t,e){let{commit:n,dispatch:r}=t,{room:a,usage:o,floor:s,printingMethods:l,printingMethodId:c,title:u,product:d}=e,h=l;Array.from(h).length<=0&&(h=Object.values(h));let f=h&&Array.from(h).map(t=>({title:t.translated,value:t.id,identifier:t.name}))||[];n(i.k6,f),r("setConfiguratorType",c||f[0].value),n(i.i6,d),n(i.E8,{config:{room:a,usage:o,floor:s,title:u}})},setConfiguratorType(t,e){let{commit:n,dispatch:r,getters:a}=t,l=a.cacheableCanvasImages;n(i.PI,e),n(i.Oy,null),r("loadMasksByPrintType",{printId:e}),l.forEach(t=>{o.l.toggleFiltersByConfiguratorType(t)});
12let c=a.isConfiguratorLabel?a.selectedBackground:a.defaultBackground;n(i.Xl,c);let u=a.isConfiguratorLaser?a.laserColorObject:a.defaultColor;n(i.KU,u),a.canvasObjects.map(async t=>{await s.j.updateAllCanvasObjectsColor(t,u)}),r("canvasHistoryReset")},setConfiguratorConfigValue(t,e){let{commit:n}=t;n(i.FE,{...e}),n(i.x4,!0)}},getters:{showConfigurator:(t,e,n)=>!!n.DataBridgeModule.productConfigData,configuratorType:t=>t.selectedType,salesChannel:t=>t.salesChannel,editedInformation:t=>t.editedInformation,maskId:t=>t.product.maskId,availableConfiguratorTypes:t=>t.configuratorTypes,configuratorConfig:t=>t.config,productData:t=>t.product,selectedTypeIdentifier:(t,e)=>{if(!e.configuratorType||!e.availableConfiguratorTypes)return;let n=e.availableConfiguratorTypes.filter(t=>t.value===e.configuratorType);if(n)return n[0].value},isConfiguratorLaser:(t,e)=>e.selectedTypeIdentifier===r.pm.LASER,isConfiguratorLabel:(t,e)=>e.selectedTypeIdentifier===r.pm.LABEL,isConfiguratorPrint:(t,e)=>e.selectedTypeIdentifier===r.pm.PRINT,isConfiguratorDigital:(t,e)=>e.selectedTypeIdentifier===r.pm.DIGITAL,isPadPrintingEnabled:(t,e)=>e.selectedTypeIdentifier===r.pm.PRINT,exportSize:(t,e)=>{let{width:n,height:r}=e.productData;return{width:20*n,height:20*r}},areThereChangesInModal:(t,e,n)=>{let r=window.localStorage.getItem(c),i=(0,l.cloneDeep)(n);return delete i.CollisionModule,delete i.SelectableAreasModule,r!==JSON.stringify(i)},configuratorTypeIds:t=>t.configuratorTypes.map(t=>t.value),printingMethods(t,e,n){let r=t.configuratorTypes;return Array.isArray(r)?r:[]},isPadPrinting(t,e){let n=e.printingMethods;return Array.isArray(n)&&n.some(t=>t.id===r.pm.PRINT)},isDigitalPrinting(t,e){let n=t.product.printTypes;return n&&Object.keys(n).some(t=>t===r.pm.DIGITAL)},shouldHideUniqueSymbolsButton:(t,e)=>!e.isDigitalPrinting&&(0===e.printingMethods.length||!!e.isPadPrinting&&1===e.printingMethods.length),hasUniqueSymbolsFlag:(t,e)=>!!e.productData.hasUniqueSymbols}}},5372:(t,e,n)=>{"use strict";n.d(e,{FA:()=>l,Hi:()=>a,jg:()=>s,m$:()=>i,mg:()=>u,oK:()=>o});var r=n(4943);let i={WIDTH:"width",HEIGHT:"height"},a={value:{row:1,column:1},name:"center"},o="row",s="column",l=[[r.uf.TOP_LEFT,r.uf.TOP_CENTER,r.uf.TOP_RIGHT],[r.uf.CENTER_LEFT,r.uf.CENTER,r.uf.CENTER_RIGHT],[r.uf.BOTTOM_LEFT,r.uf.BOTTOM_CENTER,r.uf.BOTTOM_RIGHT]],c={x:0,y:0,width:0,height:0},u=()=>({selectableAreasRotatedRects:{key:"placeholder",data:c},objectsRects:{},activeSelectableAreasRect:c,activeTransformIndex:a.value})},2495:(t,e,n)=>{"use strict";n.d(e,{$$:()=>R,$k:()=>j,$p:()=>z,Aq:()=>m,B5:()=>W,Bo:()=>J,D4:()=>h,DX:()=>y,E8:()=>o,FE:()=>d,I9:()=>G,KU:()=>tc,Kl:()=>F,Kr:()=>Z,LJ:()=>w,LL:()=>b,MR:()=>f,N6:()=>E,NW:()=>U,NX:()=>Q,Nf:()=>ts,OD:()=>O,Ox:()=>S,Oy:()=>C,PI:()=>s,PM:()=>u,S1:()=>N,SH:()=>tr,SP:()=>ti,ST:()=>q,Sn:()=>H,TR:()=>I,W8:()=>v,Wz:()=>i,XK:()=>g,Xl:()=>tu,aT:()=>te,bT:()=>a,bW:()=>to,bq:()=>A,bz:()=>$,c_:()=>M,cm:()=>tf,dL:()=>tl,f:()=>x,fw:()=>Y,i6:()=>r,if:()=>B,jE:()=>X,k6:()=>l,kC:()=>p,lp:()=>tn,mx:()=>th,nW:()=>ta,oj:()=>P,ql:()=>L,r0:()=>k,rs:()=>V,sA:()=>tt,vD:()=>K,w:()=>D,x4:()=>c,xb:()=>T,yi:()=>td});let r="configurator/STORE_PRODUCT_DATA",i="configurator/RESET_CONFIGURATOR_MODULE",a="configurator/UPDATE_CONFIGURATOR_TYPE",o="configurator/ADD_CONFIGURATOR_CONFIG",s="configurator/SET_CONFIGURATOR_TYPE",l="configurator/SET_CONFIGURATOR_TYPES",c="configurator/UPDATE_EDITED_INFORMATION",u="configurator/SET_SALES_CHANNEL",d="configurator/SET_CONFIGURATOR_CONFIG_VALUE",h="canvas/INIT_CANVAS",f="canvas/UPDATE_CANVAS",g="canvas/UPDATE_TRANSFORMER",p="canvas/UPDATE_TRANSFORM_ORIGIN",v="canvas/ADD_CANVAS_TEXT",m="canvas/ADD_CANVAS_IMAGE",b="canvas/UPDATE_CANVAS_TEXT",y="canvas/UPDATE_CANVAS_IMAGE",C="canvas/SELECT_CANVAS_OBJECT",S="canvas/REPLACE_CANVAS_STATE",x="canvas/RESET_CANVAS_MODULE",w="canvas/TOGGLE_MASK_VISIBILITY",T="canvas/UPDATE_EDITABLE_TEXT_NAME",A="canvas-history/CANVAS_ADD_HISTORY_ENTRY",k="canvas-history/CANVAS_SET_HISTORY_ENTRY",E="canvas-history/RESET_CANVAS_HISTORY_MODULE",O="canvas-history/INCREMENT_CANVAS_HISTORY_COUNT",P="canvas-history/DECREMENT_CANVAS_HISTORY_COUNT",L="canvas-history/ADJUST_HISTORY_ENTRIES_BY_ID",I="slidable/TOGGLE_SLIDABLE_PANEL",D="slidable/SET_ACTIVE_SLIDABLE_PANEL",R="slidable/SET_IMAGES",M="slidable/ADD_IMAGE",N="slidable/DELETE_IMAGE",j="slidable/RESET_SLIDABLE_PANEL_MODULE",F="canvas-api/SET_LOADING_INDICATION",B="canvas-api/SET_API_PRODUCT_CONFIG_DATA",G="canvas-api/SET_API_CANVAS_ASSET_DATA",$="canvas-api/RESET_CANVAS_API_MODULE",H="canvas-api/SET_UPDATE_REQUEST_HEADERS",z="canvas-api/TEXT_HEIGHT_CHANGE",U="selectable-areas/ADD_SELECTABLE_AREAS",W="selectable-areas/STORE_SELECTABLE_AREAS",V="selectable-areas/RESET_SELECTABLE_AREAS",Y="selectable-areas/SET_ACTIVE_SELECTABLE_AREA",X="selectable-areas/STORE_MASK_IMAGES",K="selectable-areas/ADD_SELECTABLE_AREAS_FOR_LABELS",q="selectable-areas/ADD_GROUP_COUNT",J="collision/SET_INITIAL_PIXELS_VALUE",Z="collision/SET_CURRENT_PIXELS_VALUE",Q="collision/RESET_COLLISION_MODULE",tt="collision/SET_OBJECTS_PIXELS_VALUE",te="positioning/SET_ACTIVE_CLIENT_RECT_DATA",t
12n="positioning/SET_CLIENT_RECT_ROTATED_DATA",tr="positioning/SET_OBJECTS_RECT_DATA",ti="positioning/RESET_DYNAMIC_DATA_MODULE",ta="positioning/SET_ACTIVE_POSITION",to="colors/RESET_COLORS_MODULE",ts="colors/SET_DEFAULT_COLOR",tl="colors/SET_DEFAULT_BACKGROUND",tc="colors/SELECT_COLOR",tu="colors/SELECT_BACKGROUND",td="colors/STORE_COLORS",th="colors/STORE_PRINT_STRATEGIES",tf="colors/SET_DEFAULT_LASER_COLOR"},4821:(t,e,n)=>{"use strict";n.d(e,{Store:()=>K});var r=n(5055),i=n(294),a=n(5164),o=n(2495),s=n(4943);let l={[o.D4](t,e){let{width:n,height:r}=e;t.coverImageDimensions={width:n,height:r}},[o.MR](t,e){t.config={...t.config,...e}},[o.W8](t,e){t.canvasObjectsByName={...t.canvasObjectsByName,[e.config.name]:{...s.NY,...e}}},[o.Aq](t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{config:{}};t.canvasObjectsByName={...t.canvasObjectsByName,[e.config.name]:{...s.RD,...e}}},[o.DX](t,e){let{imageConfig:n}=e,i=n.config.name,a=t.canvasObjectsByName[i],o={...a,...n,config:{...a.config,...n.config}};r.default.set(t.canvasObjectsByName,i,o)},[o.LL](t,e){let{textConfig:n}=e,i=n.config.name;r.default.set(t.canvasObjectsByName,i,{...t.canvasObjectsByName[i],...n,config:{...t.canvasObjectsByName[i].config,...n.config}})},[o.XK](t,e){t.transformerConfig={...s.vi,...e}},[o.Oy](t,e){t.selectedObjectName=e},[o.kC](t,e){t.selectedObjectName&&r.default.set(t.canvasObjectsByName[t.selectedObjectName],"transformOrigin",e)},[o.f](t){Object.assign(t,b())},[o.Ox](t,e){t.transformerConfig={...e.transformerConfig},t.canvasObjectsByName={...e.canvasObjectsByName},t.selectedObjectName=e.selectedObjectName},[o.LJ](t){t.isMaskVisible=!t.isMaskVisible},[o.xb](t,e){t.editableTextName=e}};var c=n(4991),u=n.n(c),d=n(1703),h=n(3700),f=n(548),g=n(5662),p=n(5264),v=n(173),m=n(8490);let b=()=>({coverImageDimensions:{width:0,height:0},config:{...s.kF},transformerConfig:{...s.vi},selectedObjectName:null,canvasObjectsByName:{},selectableAreas:[],isMaskVisible:!0,editableTextName:null,selectedColor:m.EJ.value,selectedBackground:m.wK.value}),y={state:()=>({activeSlidablePanel:null,images:[]}),mutations:{[o.TR](t,e){t.activeSlidablePanel=e.slidablePanel},[o.w](t){t.activeSlidablePanel=null},[o.$$](t,e){t.images=e},[o.c_](t,e){t.images=[e,...t.images]},[o.S1](t,e){t.images=t.images.filter(t=>t.id!==e)},[o.$k](t){t.activeSlidablePanel=null,t.uploadedImages=[],t.isPanelFullyOpen=!1}},getters:{images:t=>t.images,uploadedImages:(t,e)=>e.images}},C=()=>({activeHistoryEntryId:null,historyEntryIds:[],historyEntriesById:{},currentHistoryCount:0}),S={state:C,mutations:{[o.bq](t,e){let{historyEntryId:n,canvasStateSnapshot:r}=e,{historyEntryIds:i,activeHistoryEntryId:a}=t;a&&(t.historyEntryIds=[...i.slice(0,i.indexOf(a)+1)]),t.historyEntryIds=[...t.historyEntryIds,n],t.historyEntriesById={...t.historyEntriesById,[n]:{transformerConfig:{...r.transformerConfig},canvasObjectsByName:{...r.canvasObjectsByName},selectedObjectName:r.selectedObjectName}},t.currentHistoryCount>=20&&(t.historyEntryIds.shift(),t.currentHistoryCount--)},[o.r0](t,e){t.activeHistoryEntryId=e},[o.N6](t){Object.assign(t,C())},[o.OD](t){t.currentHistoryCount++},[o.oj](t){t.currentHistoryCount--},[o.ql](t,e){t.historyEntriesById=e}},actions:{canvasAddHistoryEntry(t){let{rootState:e,commit:n,state:r}=t,i=u()();n(o.bq,{historyEntryId:i,canvasStateSnapshot:e.CanvasModule}),r.activeHistoryEntryId&&n(o.r0,i),n(o.OD);let a=Object.entries(r.historyEntriesById).filter(t=>r.historyEntryIds.includes(t[0].toString())).reduce((t,e)=>Object.assign(t,{[e[0]]:e[1]}),{});n(o.ql,a)},canvasHistoryUndo(t){let{state:e,commit:n,getters:r}=t,i=r.entryIdForUndoAction;n(o.r0,i),n(o.Ox,e.historyEntriesById[i]),n(o.oj)},canvasHistoryRedo(t){let{state:e,commit:n,getters:r}=t,i=r.entryIdForRedoAction;n(o.r0,i),n(o.Ox,e.historyEntriesById[i]),n(o.OD)},canvasHistoryReset(t){let{commit:e}=t;e(o.N6)}},getters:{activeHistoryEntryIndex:t=>t.activeHistoryEntryId?t.historyEntryIds.indexOf(t.activeHistoryEntryId):t.historyEntryIds.length-1,undoActionEnabled:(t,e)=>e.activeHistoryEntryIndex>=1,redoActionEnabled:(t,e)=>e.activeHistoryEntryIndex<t.historyEntryIds.length-1,entryIdForUndoAction:(t,e)=>e.undoActionEnabled&&t.historyEntryIds[e.activeHistoryEntryIndex-1],entryIdForRedoAction:(t,e)=>e.redoActionEnabled&&t.historyEntryIds[e.activeHistoryEntryIndex+1]}};var x=n(7437);let w={images:"/gt/media"};var T=n(1850),A=n(9953),k=n(3654),E=n(5647),O=n(61),P=n(492),L=n(8197);let I={[o.Kl](t){let{action:e,isLoading:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.actionsInProgress[e]=n},[o.if](t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
12if(!t.productConfigData){t.productConfigData=e;return}t.productConfigData={...t.productConfigData,...e}},[o.I9](t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.canvasAssetData=e},[o.Sn](t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.updateRequestHeaders={...t.updateRequestHeaders,"Cache-Control":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0",...e}},[o.bz](t){Object.assign(t,R())}};var D=n(1495);let R=()=>({productConfigData:null,canvasAssetData:null,updateRequestHeaders:{"X-Requested-With":"XMLHttpRequest","If-Match":""},actionsInProgress:{fetch:!1,update:!1,save:!1,imageFetch:!1,imageUpload:!1,imageDelete:!1}});var M=n(3399);class N{static async getSelectableAreas(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{let n=await x.s.get(t),r=document.createElement("div");r.innerHTML=n.data;let i=this.getAreaInformation(r,e),a=null,o=r.querySelectorAll("g").length;return i[0]&&(a=i[0].id),{firstAreaName:a,areas:i,groupCount:o}}catch(t){throw Error(t)}}static getAreaInformation(t,e){return e?this.parseLabelMaskSvg(t):this.parseRegularMaskSvg(t)}static parseRegularMaskSvg(t){return Array.from(t.querySelectorAll("path")).map(t=>({id:u()(),path:t.getAttribute("d")}))}static parseLabelMaskSvg(t){return M.LabelUtils.parseLabelMaskSvg(t)}}let j=()=>({pathsById:[],labelPathsById:[],activeAreaId:null,selectableAreasSvgLinks:[],maskImages:[],groupCount:null}),F={state:j,mutations:{[o.B5](t,e){t.selectableAreasSvgLinks=e},[o.NW](t,e){t.pathsById=e},[o.vD](t,e){t.labelPathsById=e},[o.rs](t){Object.assign(t,j())},[o.fw](t,e){t.activeAreaId=e},[o.jE](t,e){t.maskImages=e},[o.ST](t,e){t.groupCount=e}},actions:{async addSelectableAreas(t,e){let{commit:n}=t,{url:r}=e,{firstAreaName:i,areas:a,groupCount:s}=await N.getSelectableAreas(r);i&&(n(o.NW,a),n(o.fw,i),n(o.ST,s))},async storeSelectableAreas(t,e){let{commit:n}=t;n(o.B5,e)},async storeMaskImages(t,e){let{commit:n}=t;Promise.all(e.map(t=>h.P.loadSvg(t.url,!0,"white",m.EJ.value,{key:t.key}))).then(t=>{n(o.jE,t)})},setDefaultSelectableArea(t){let{commit:e,getters:{coverImageDimensions:n}}=t;e(o.aT,{x:0,y:0,width:n.width,height:n.height})},async loadMasksByPrintType(t,e){let{state:n,dispatch:r,commit:i,getters:{getAreas:a,getMask:s,productData:{masks:l},coverImageDimensions:c}}=t,{printId:u,activeMask:d}=e;if(!l||Array.isArray(l))return r("setDefaultSelectableArea");let h=a(l[u]);if(h.length<=0){i(o.rs);return}try{await r("storeSelectableAreas",h),await r("storeMaskImages",h);let t=s(d,h);i(o.i6,{maskId:t.key}),await r("addSelectableAreas",t)}catch(t){console.warn("Failed to load selectable areas: "+t),r("setDefaultSelectableArea")}}},getters:{pathsById:t=>t.pathsById,labelPathsById:t=>t.labelPathsById,getAreas:()=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).map(e=>({key:e,url:t[e]})).filter(t=>t.url.includes(".svg"))},getMask:()=>(t,e)=>t||e[0],activeAreaId:t=>t.activeAreaId,areSelectableAreasPresent:(t,e)=>e.pathsById.length,areThereMultipleSelectableAreas:(t,e)=>e.pathsById.length>1,selectableAreasLinks:t=>t.selectableAreasSvgLinks,maskImages:t=>t.maskImages,getGroupCount:t=>t.groupCount,selectableAreaConfigs:(t,e)=>{let{labelPathsById:n,pathsById:r,activeAreaId:i,areThereMultipleSelectableAreas:a}=e;return function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=n;return e.length<=0&&(e=r),(t?e:r).map(t=>({name:t.id,data:t.path,stroke:i===t.id&&a?"#5B8AA4":"transparent",...s.Ro}))}}}};var B=n(9005),G=n(2797);let $=()=>({initialPixels:0,currentPixels:0,objectsPixels:0}),H={state:$,mutations:{[o.Bo](t,e){t.initialPixels=e},[o.Kr](t,e){t.currentPixels=e},[o.sA](t,e){t.objectsPixels=e},[o.NX](t){Object.assign(t,$())}},getters:{collision:t=>t.currentPixels>t.initialPixels&&t.initialPixels>0,atLeastOneObjectIsVisible:t=>t.initialPixels>t.objectsPixels}},z=(0,v.debounce)(()=>{B.N.$emit(G.qK)},200);var U=n(5372);let W={state:U.mg,mutations:{[o.lp](t,e){t.selectableAreasRotatedRects=e},[o.SH](t,e){t.objectsRects=e},[o.aT](t,e){t.activeSelectableAreasRect=e},[o.SP](t){Object.assign(t,(0,U.mg)())},[o.nW](t,e){t.activeTransformIndex=e}},getters:{selectableAreasRotatedRects:t=>t.selectableAreasRotatedRects,objectsRects:t=>t.objectsRects,activeSelectableAreasRect:t=>t.activeSelectableAreasRect,activeTransformIndex:t=>t.activeTransformIndex,getSelectableAreaRotatedRectByKey:(t,e)=>t=>e.selectableAreasRotatedRects[t],getDimension:(t,e)=>{let{selectedCanvasObject:n}=e;return t=>{if(!n)return;let{height:e,width:r,scaleX:i,scaleY:a,rotation:o}=n.config,s={width:r,height:e};return((Math.abs(o)>=90&&180>Math.abs(o)||Math.abs(o)>=270&&360>
12Math.abs(o))&&(s.height=r,s.width=e),t===U.m$.HEIGHT)?s.height*a:s.width*i}},bottomLeft:(t,e)=>{let{getDimension:n,activeSelectableAreasRect:{x:r,y:i,height:a}}=e;return{x:r+n(U.m$.WIDTH)/2,y:i+a-n(U.m$.HEIGHT)/2}},bottomCenter:(t,e)=>{let{getDimension:n,activeSelectableAreasRect:{x:r,y:i,height:a,width:o}}=e;return{x:r+o/2,y:i+a-n(U.m$.HEIGHT)/2}},bottomRight:(t,e)=>{let{getDimension:n,activeSelectableAreasRect:{x:r,y:i,height:a,width:o}}=e;return{x:r+o-n(U.m$.WIDTH)/2,y:i+a-n(U.m$.HEIGHT)/2}},centerLeft:(t,e)=>{let{getDimension:n,activeSelectableAreasRect:{x:r,y:i,height:a}}=e;return{x:r+n(U.m$.WIDTH)/2,y:i+a/2}},center:(t,e)=>{let{activeSelectableAreasRect:n}=e,{x:r,y:i,height:a,width:o}=n;return{x:r+o/2,y:i+a/2}},centerRight:(t,e)=>{let{getDimension:n,activeSelectableAreasRect:{x:r,y:i,height:a,width:o}}=e;return{x:r+o-n(U.m$.WIDTH)/2,y:i+a/2}},topLeft:(t,e)=>{let{getDimension:n,activeSelectableAreasRect:{x:r,y:i,width:a}}=e;return{x:r+n(U.m$.WIDTH)/2,y:i+n(U.m$.HEIGHT)/2}},topCenter:(t,e)=>{let{getDimension:n,activeSelectableAreasRect:{x:r,y:i,width:a}}=e;return{x:r+a/2,y:i+n(U.m$.HEIGHT)/2}},topRight:(t,e)=>{let{getDimension:n,activeSelectableAreasRect:{x:r,y:i,width:a}}=e;return{x:r+a-n(U.m$.WIDTH)/2,y:i+n(U.m$.HEIGHT)/2}},targetPositionPoints:(t,e)=>{let{bottomLeft:n,bottomCenter:r,bottomRight:i,centerLeft:a,center:o,centerRight:l,topLeft:c,topCenter:u,topRight:d}=e;return{[s.uf.BOTTOM_LEFT]:n,[s.uf.BOTTOM_CENTER]:r,[s.uf.BOTTOM_RIGHT]:i,[s.uf.CENTER_LEFT]:a,[s.uf.CENTER]:o,[s.uf.CENTER_RIGHT]:l,[s.uf.TOP_LEFT]:c,[s.uf.TOP_CENTER]:u,[s.uf.TOP_RIGHT]:d}},targetPoint:(t,e)=>{let{activeTransformIndex:n}=t,{targetPositionPoints:r}=e;return r[U.FA[n.row][n.column]]},positioningButtonsState:t=>{let{activeTransformIndex:e}=t;return{topButtonEnabled:[s.uf.TOP_LEFT,s.uf.TOP_CENTER,s.uf.TOP_RIGHT].includes(U.FA[e.row][e.column]),bottomButtonEnabled:[s.uf.BOTTOM_LEFT,s.uf.BOTTOM_CENTER,s.uf.BOTTOM_RIGHT].includes(U.FA[e.row][e.column]),leftButtonEnabled:[s.uf.TOP_LEFT,s.uf.CENTER_LEFT,s.uf.BOTTOM_LEFT].includes(U.FA[e.row][e.column]),rightButtonEnabled:[s.uf.TOP_RIGHT,s.uf.CENTER_RIGHT,s.uf.BOTTOM_RIGHT].includes(U.FA[e.row][e.column])}}}};class V{static parseColor(t,e){return"object"==typeof t?(t.name&&(t.label=t.name,delete t.name),t):e}}let Y=()=>({printStrategies:[],defaultColor:null,defaultBackground:null,activeColor:null,activeBackground:null,colorMap:null,laserColor:m.zQ.value}),X={state:Y,mutations:{[o.KU](t,e){t.activeColor=e},[o.Xl](t,e){t.activeBackground=e},[o.Nf](t,e){t.defaultColor=e},[o.dL](t,e){t.defaultBackground=e},[o.cm](t,e){t.laserColor=e},[o.yi](t,e){t.colorMap=e},[o.mx](t,e){t.printStrategies=e},[o.bW](t){Object.assign(t,Y())}},actions:{async fetchColors(t){let{getters:e}=t,{data:n}=await x.s.get("/".concat(e.salesChannel,"/gt/colors"));return Object.keys(n).reduce((t,e)=>(t[e]=n[e].map(t=>({label:t.name,value:t.value})),t),{})},async initColorsModule(t,e){let{commit:n,dispatch:r,getters:i}=t,a=e.product,s=V.parseColor(a.defaultColor,m.EJ),l=V.parseColor(a.defaultLaserColor,m.zQ),c=V.parseColor(a.defaultBackgroundColor,m.wK),u=V.parseColor(e.backgroundColor||m.wK,m.wK);n(o.KU,i.isConfiguratorLaser?l:s),n(o.Nf,s),n(o.dL,c),n(o.Xl,u),n(o.cm,l),n(o.mx,Object.keys(a.printTypes)),i.colorsShouldBeFetched&&n(o.yi,await r("fetchColors"))}},getters:{selectedColor:(t,e)=>{let{isConfiguratorLaser:n}=e;return n?t.laserColor:t.activeColor},selectedBackground:t=>t.activeBackground,defaultColor:(t,e)=>e.isConfiguratorLaser?t.laserColor:t.defaultColor,defaultBackground:t=>t.defaultBackground,laserColor:t=>t.laserColor.value,laserColorObject:t=>t.laserColor,isDigitalPrintEnabled:t=>t.printStrategies.includes(m.zE.DIGITAL_PRINT),isPadPrintEnabled:t=>t.printStrategies.includes(m.zE.PAD_PRINT),shouldPalletBeRendered:(t,e)=>{let{colorMap:n,printStrategies:r}=t,{availableConfiguratorTypes:i}=e;return t=>n&&r.includes(t)||n&&i.some(t=>{if(t.value===D.pm.LABEL)return!0})||n&&1===r.length&&r.includes(m.zE.DIGITAL_PRINT)},colors:(t,e)=>{let{digitalColors:n}=e;return Object.values([n]).flat()},digitalColors:(t,e)=>{let{getPallet:n,isConfiguratorLabel:r}=e,i=n(m.zE.DIGITAL_PRINT);return r?i:i.filter(t=>"rgb(255,255,255)"!==t.value)}
12,labelBackgroundColors:(t,e)=>{let{getPallet:n}=e;return n(m.zE.LABEL_BACKGROUND)},isOnlyPadPrintingEnabled:(t,e,n)=>{let{digitalColors:r}=e,{printStrategies:i}=n;return r.length<=0&&i&&i.includes(m.zE.PAD_PRINT)},getPallet:(t,e)=>{let{colorMap:n}=t,{shouldPalletBeRendered:r}=e;return t=>r(t)?n[t]:[]},colorsShouldBeFetched:(t,e,n,r)=>[D.pm.LABEL,D.pm.PRINT].some(t=>r.configuratorTypeIds.includes(t)),getColorsInConfigurator:(t,e)=>e.canvasObjects.filter(t=>!0===t.config.visible&&(t.isSymbol||t.type===s.bq)).map(t=>{let{config:e}=t;return e.fill||e.pathColor}).filter(t=>void 0!==t&&t!==e.defaultColor.value),uniqueColors:(t,e)=>{let{getColorsInConfigurator:n}=e;return[...new Set(n)]},isConfiguratorPadPrinting:(t,e)=>{let{isConfiguratorPrint:n,isPadPrintEnabled:r,uniqueColors:i,defaultColor:a}=e;return!!(n&&r&&i.length<=0&&a&&!i.includes(a.value))}}};r.default.use(i.ZP);let K=new i.ZP.Store({modules:{ConfiguratorModule:a.c,CanvasModule:{state:b,actions:{async addCanvasImage(t,e){let{commit:n,dispatch:r,getters:i,rootGetters:a}=t,{url:l="",imageConfig:c={},isHistoryEnabled:d=!0,isSelectionEnabled:v=!0}=e,m=u()(),{image:b,width:y,height:C}=await h.P.getImageConfig(l,c),S=[],x=[];(i.isConfiguratorLaser||i.isConfiguratorPadPrinting&&!i.isDigitalPrintEnabled)&&(S=g.VH,x=g.aK);let w=Object.assign({},...x.map(t=>p.h.getAttributes(t.name))),T=c.config.x?{x:c.config.x,y:c.config.y}:{...c.config,...i.center,offsetX:y/2,offsetY:C/2},A={...s.t5,order:i.canvasObjectMaxZIndex+1,width:y,height:C,initialWidth:Math.round(y),initialHeight:Math.round(C),...w,...c.config,pathColor:i.isConfiguratorLaser?a.laserColor:c.config.pathColor,image:b,name:m,filters:S,...T};n(o.Aq,{...s.RD,...c,url:l,config:A,filters:f.l.getFilterFunctionsAsStringsArray([...S])});let k=i.getCanvasObjectByName(m);v&&n(o.Oy,m),h.P.isImageFilterable(k)&&f.l.addFiltersToImage({imageConfig:c,assetName:m}),d&&r("canvasAddHistoryEntry")},async addCanvasText(t){let e,n,{commit:r,dispatch:i,getters:a}=t,{textConfig:l={},isSelectionEnabled:c=!0,closePanel:h=!0,isHistoryEnabled:f=!0,isCounterFunctionText:g=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=u()(),v={...s.NY,...l,isCounterFunctionText:g},m=l.config.x?{x:l.config.x,y:l.config.y}:{...l.config,...a.center,offsetX:(l.config.width||s.B9.width)/2,offsetY:(l.config.height||s.B9.height)/2};e=a.isConfiguratorLaser?a.laserColor.value||a.laserColor:a.defaultColor.value!==a.selectedColor.value?a.selectedColor.value:a.defaultColor.value;let b={...s.B9,fill:e,order:a.canvasObjectMaxZIndex+1,...l.config,name:p,...m};l.config.fontFamily&&(n=await d.N.loadFont(l.config.fontFamily||s.B9.fontFamily)),r(o.W8,{...v,config:{...b,fontFamily:n?n.family:s.B9.fontFamily}}),h&&r(o.TR,{slidablePanel:null}),c&&r(o.Oy,p),f&&i("canvasAddHistoryEntry")},updateCanvasObject(t,e){let{dispatch:n,getters:r}=t,i=r.getCanvasObjectByName(e.config.name);i&&(i.type===s.HN?n("updateCanvasImage",{imageConfig:e,isHistoryEnabled:e.isHistoryEnabled}):i.type===s.bq&&n("updateCanvasText",{textConfig:e,isHistoryEnabled:e.isHistoryEnabled}))},async updateCanvasText(t,e){let{commit:n,dispatch:r}=t,{textConfig:i={config:{}},isHistoryEnabled:a=!0}=e;try{await d.N.loadFont(i.config.fontFamily||s.B9.fontFamily),n(o.LL,{textConfig:i})}catch(t){n(o.LL,{textConfig:{...i,config:{...config,fontFamily:s.B9.fontFamily}}})}a&&r("canvasAddHistoryEntry")},deleteAsset(t){let{commit:e,dispatch:n,getters:r}=t;n("updateCanvasObject",{config:{name:r.selectedCanvasObjectName,visible:!1}}),e(o.Oy,null),n("hideAssetFinished")},hideAssetFinished(t){let{commit:e,dispatch:n,getters:r}=t;e(o.XK,{visible:!1})},updateCanvasImage(t,e){let{commit:n,getters:r,dispatch:i,rootGetters:a}=t,{imageConfig:s={config:{}},isHistoryEnabled:l=!0,removeAttributes:c=[]}=e;n(o.DX,{imageConfig:s,removeAttributes:c}),l&&i("canvasAddHistoryEntry")},duplicateCanvasObject(t,e){let{commit:n,dispatch:r,getters:i}=t,a=u()(),l={...e.config,name:a,order:i.canvasObjectMaxZIndex+1};e.type===s.HN?r("addCanvasImage",{url:e.url,imageConfig:{...e,config:l}}):n(o.W8,{config:l}),n(o.Oy,a),r("canvasAddHistoryEntry")},async initCanvas(t,e){let{commit:n}=t,{width:r,height:i}=await h.P.loadImage(e);n(o.D4,{width:r,height:i})},updateCanvasConfig(t,e){let{commit:n,dispatch:r,state:i}=t;n(o.MR,{...e})}},mutations:l,getters:{coverImageDimensions:t=>t.coverImageDimensions,canvasConfig:(t,e)=>{let{coverImageDimensions:n}=e;return{width:n.width,height:n.height,...t.config}},canvasContainerConfig:(t,e)=>{let{canvasConfig:n}=e;return{width:n.width,height:n.height}},canvasCoverConfig:(t,e)=>{let{productImage:n,canvasConfig:r}=e;return{...n.config,scaleX:r.scaleX,scaleY:r.scaleY,rotation:r.rotation,x:r.x,y:r.y,offsetX:r.offsetX,offsetY:r.offsetY,globalCompositeOperation:"source-in"}}
12,coloredCanvasCoverConfig:(t,e)=>{let{canvasCoverConfig:n,isMaskVisible:r}=e;return{...n,fill:"#A20101",opacity:r?.33:1}},transformerConfig:(t,e)=>e.selectedCanvasText?{...t.transformerConfig,...s.nz}:t.transformerConfig,canvasObjects:t=>(0,v.orderBy)((0,v.values)(t.canvasObjectsByName),"config.order"),canvasObjectMaxZIndex:(t,e)=>e.canvasObjects.length?(0,v.maxBy)(e.canvasObjects,"config.order").config.order:0,canvasImages:(t,e)=>e.canvasObjects.filter(t=>t.type===s.HN),cacheableCanvasImages:(t,e)=>e.canvasObjects.filter(t=>h.P.isImageCacheable(t)&&t.config.visible),getCanvasSymbols:(t,e)=>e.canvasObjects.filter(t=>t.isSymbol&&t.config.visible),getCanvasUploadedImages:(t,e)=>e.canvasObjects.filter(t=>!t.isSymbol&&t.config.visible),productImage:(t,e)=>e.canvasImages.find(t=>t.isProductImage),canvasTexts:(t,e)=>e.canvasObjects.filter(t=>t.type===s.bq),selectedCanvasObjectName:t=>t.selectedObjectName,selectedCanvasObject:(t,e)=>e.selectedCanvasObjectName?t.canvasObjectsByName[e.selectedCanvasObjectName]:null,getCanvasObjectByName:t=>e=>t.canvasObjectsByName[e],selectedCanvasText:(t,e)=>e.selectedCanvasObject&&e.selectedCanvasObject.type===s.bq?e.selectedCanvasObject:null,transformOrigin:(t,e)=>e.selectedCanvasObject&&e.selectedCanvasObject.transformOrigin,previewCanvasObjects:(t,e)=>e.canvasObjects.filter(t=>!t.isProductImage),previewImageCanvasObjects:(t,e)=>e.canvasObjects.filter(t=>!t.isCounterFunctionText),printerImageCanvasObjects:(t,e)=>e.previewImageCanvasObjects.filter(t=>!t.isProductImage&&!t.isCounterFunctionText),canvasRotationAngle:(t,e)=>e.canvasConfig&&e.canvasConfig.rotation,isMaskVisible:t=>t.isMaskVisible,counterFunctionObject:(t,e)=>e.canvasTexts&&e.canvasTexts.filter(t=>t.isCounterFunctionText&&t.config.visible)[0],editableTextName:t=>t.editableTextName,canvasSize:(t,e)=>{let n=e.coverImageDimensions,r=n.width;return n.height>r&&(r=n.height),r},exportImageScale:(t,e)=>({scaleX:e.exportSize.width/e.coverImageDimensions.width,scaleY:e.exportSize.height/e.coverImageDimensions.height}),generationCanvasConfig:(t,e)=>{let{width:n,height:r}=e.exportSize,{width:i,height:a}=e.coverImageDimensions,{scaleX:o,scaleY:l}=e.exportImageScale;return{...e.coverImageDimensions,...s.kF,scaleX:o,scaleY:l,width:n>0?n:i,height:r>0?r:a}},objectFontStyle:(t,e)=>{let{selectedCanvasText:n}=e;return n&&n.config.fontStyle},doesTextContainStyle:(t,e)=>{let{objectFontStyle:n}=e;return t=>n&&n.includes(t)},labelFileOutput:(t,e)=>{let n=e.counterFunctionObject,r=e.areSelectableAreasPresent,i=e.getGroupCount||r;return n?i*n.data.quantity:i}}},SlidablePanelModule:y,CanvasHistoryModule:S,DataBridgeModule:{state:R,mutations:I,actions:{async setProductConfigData(t,e){let{state:n,commit:r,dispatch:i}=t,a=new URL(e.endpoint).pathname+new URL(e.endpoint).search;await K.dispatch("resetConfigurator"),r(o.if,{...e,endpoint:a}),i("fetchProduct",a)},async fetchProduct(t,e){let{state:n,commit:r,dispatch:i,getters:a,rootGetters:s}=t;r(o.Kl,{action:"fetch",isLoading:!0});try{let{headers:t,data:l}=await x.s.get(e);r(o.Sn,{"If-Match":JSON.parse(t.etag)});let c=n.productConfigData.printingMethodId;r(o.if,{...n.productConfigData,...l,...c&&!l.printingMethodId?{printingMethodId:c}:{}}),i("addConfiguratorConfig",n.productConfigData);let{cover:u,width:d,height:h}=n.productConfigData.product;if(i("initColorsModule",n.productConfigData),u&&(await i("initCanvas",u),await i("addCanvasImage",{url:u,imageConfig:{isProductImage:!0,config:{x:0,y:0,width:s.canvasConfig.width,height:s.canvasConfig.height,draggable:!1}},isHistoryEnabled:!1,isSelectionEnabled:!1})),d&&h||(k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("configurator.noWidthOrHeight")),r(o.i6,{...n.productConfigData.product,width:a.coverImageDimensions.width/10,height:a.coverImageDimensions.height/10})),l.configuration&&l.configuration.length){let t=Number(L.P.pxToMm(a.coverImageDimensions.width,n.productC
12onfigData.product.width,a.coverImageDimensions.width,0,2)),e=Number(L.P.pxToMm(a.coverImageDimensions.height,n.productConfigData.product.height,a.coverImageDimensions.height,0,2));l.configuration=l.configuration.filter(r=>{let i=Number(L.P.pxToMm(r.config.x,n.productConfigData.product.width,a.coverImageDimensions.width,0,2)),o=Number(L.P.pxToMm(r.config.y,n.productConfigData.product.height,a.coverImageDimensions.height,0,2)),s=Number(L.P.pxToMm(r.config.width*r.config.scaleX,n.productConfigData.product.width,a.coverImageDimensions.width,0,2)),l=Number(L.P.pxToMm(r.config.height*r.config.scaleY,n.productConfigData.product.height,a.coverImageDimensions.height,0,2));return i>=-s/2&&i<=t+s/2&&o>=-l/2&&o<=e+l/2||(k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.INFO,E.Z.t("configurator.outsideOfBounds"),15e3),!1)}),r(o.I9,l.configuration),await i("sendDynamicAssetsToCanvas")}i("setDefaultSelectableArea");let{product:{masks:f},maskId:g,printingMethodId:p}=l;if(a.shouldPrintingMethodBeAssigned(f,p,g)&&(p=a.configuratorType,g=Object.keys(f[a.configuratorType])[0]),a.shouldDispatchLoadMasksByPrintType(f,p,g)){let t=f[p];await i("loadMasksByPrintType",{printId:p,activeMask:{key:g,url:t[g]}})}a.isConfiguratorLocked&&k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.INFO,E.Z.t("configurator.lockedDetection"),15e3),i("canvasAddHistoryEntry")}catch(t){throw k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("configurator.failedToFetchProduct")),Error(t)}finally{r(o.Kl,{action:"fetch",isLoading:!1})}},storeStateToLocalStorage(){let t=(0,v.cloneDeep)(this.state);delete t.CollisionModule,delete t.SelectableAreasModule,window.localStorage.setItem(a.l,JSON.stringify(t))},async updateProduct(t){let{state:e,dispatch:n,commit:r,getters:i,rootGetters:a}=t;if(!i.shouldUpdate){n("releaseProduct"),A.K.closeModal(),K.dispatch("resetConfigurator");return}r(o.Kl,{action:"update",isLoading:!0});let s=T.W.getUpdateProductPayload({configuratorConfig:i.productInfoUpdatePayload,canvasObjects:a.canvasObjects}),l=i.productConfigData.endpoint,c=e.updateRequestHeaders,u=i.productConfigData.modalProductId,d=i.productConfigData.product.cover,h=A.K.getDomNode("#product-".concat(u));A.K.replaceProductTwigImage(u,d),A.K.closeModal(),A.K.changeDropdownActionsState(u,!0),A.K.removeProductPrintingMethodLabelState(u),O.LoaderPlugin.dispatchLoader(h,!0),A.K.setMinHeight(h);try{await x.s.patch("".concat(l),s,{headers:c}).then(t=>{if(204===t.status){let e=null;e=document.body.classList.contains("is-act-collectionspage")?"".concat(t.config.url,"/card?timestamp=").concat(Date.now()):"".concat(t.config.url,"/row?timestamp=").concat(Date.now()),x.s.get(e).then(t=>{A.K.updateProductData(h,t.data),O.LoaderPlugin.dispatchLoader(h,!1),A.K.togglePrintLabelsDOMElement(),A.K.reinitializePlugins()})}else k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("configurator.configuratorFailureMessage"));A.K.changeDropdownActionsState(u,!1)})}catch(t){throw k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("configurator.configuratorFailureMessage")),O.LoaderPlugin.dispatchLoader(h,!1),Error(t)}finally{n("handleUpdateProductFinished")}},async releaseProduct(t){let{state:e,dispatch:n,commit:r,getters:i,rootGetters:a}=t;if(i.isConfiguratorLocked||document.body.classList.contains("is-act-collectionspage")){A.K.closeModal(),await K.dispatch("resetConfigurator");return}let o=i.productConfigData.modalProductId,s=A.K.getDomNode("#product-".concat(o)),l=i.productConfigData.endpoint+"/release",c=s.getAttribute("data-new-etag")||i.productC
12onfigData.eTag;O.LoaderPlugin.dispatchLoader(s,!0),A.K.closeModal(),await x.s.post("".concat(l),{etag:c},{headers:{"X-Requested-With":"XMLHttpRequest","If-Match":c}}).then(t=>{204===t.status?(O.LoaderPlugin.dispatchLoader(s,!1),K.dispatch("resetConfigurator")):k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("graphicTool.collection.errorMessageAjaxAction"))}).catch(t=>{switch(t.response.status){case 412:k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t(t.response.data.message));break;case 404:k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t(t.response.data.message?t.response.data.message:"graphicTool.collection.errorMessageAjaxAction"));break;default:k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("graphicTool.collection.errorMessageAjaxAction"))}})},handleUpdateProductFinished(t){let{commit:e}=t;e(o.Kl,{action:"update",isLoading:!1})},async fetchImages(t){let{commit:e,getters:n}=t;e(o.Kl,{action:"imageFetch",isLoading:!0});try{let{data:t}=await x.s.get("/".concat(n.salesChannel).concat(w.images));e(o.$$,t.media)}catch(t){throw k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("configurator.failedToFetchImages")),Error(t)}finally{e(o.Kl,{action:"imageFetch",isLoading:!1})}},async uploadImage(t,e){let{state:n,commit:r,getters:i,dispatch:a}=t;r(o.Kl,{action:"imageUpload",isLoading:!0});let s=new FormData;if(e[0].size/1048576>=5){k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("configurator.imageUploadError"));return}s.append("file",e[0]);try{let{data:t}=await x.s.post("/".concat(i.salesChannel).concat(w.images),s,{headers:{"Content-Type":"multipart/form-data"}});r(o.c_,{id:t.id,url:t.url,thumbnails:t.thumbnails,createdAt:t.createdAt,fileName:t.fileName}),k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.SUCCESS,t.message)}catch(t){throw k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("configurator.imageUploadError")),Error(t)}finally{r(o.Kl,{action:"imageUpload",isLoading:!1})}},async deleteImage(t,e){let{state:n,commit:r,getters:i,dispatch:a}=t;r(o.Kl,{action:"imageDelete",isLoading:!0});try{await x.s.delete("/".concat(i.salesChannel).concat(w.images,"/").concat(e)),k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.SUCCESS,E.Z.t("configurator.imageDeletedSuccessfully")),r(o.S1,e)}catch(t){throw k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.DANGER,E.Z.t("configurator.failedToDeleteImage")),Error(t)}finally{r(o.Kl,{action:"imageDelete",isLoading:!1})}},async sendDynamicAssetsToCanvas(t){let{dispatch:e,getters:n,rootGetters:r}=t;await Promise.all(n.restApiCanvasTexts.map(t=>{let i=r.isConfiguratorLaser?n.laserColor:t.config.fill,a={isCounterFunctionText:t.isCounterFunctionText,isHistoryEnabled:!1,isSelectionEnabled:!1};return e("addCanvasText",{textConfig:{config:{...t.config,fill:i},data:t.data},...a})})),await Promise.all(n.restApiCanvasImages.map(t=>{let n=(t=>{let e={};for(let[n,r]of Object.entries(t))e[n]=new Set(r);return e})(P),r=t.url.lastIndexOf("/"),i=t.url.substring(r+1);return t.isSymbol?t.isCustomerUpload||((t,e)=>{let n=t.toLowerCase();return Object.values(e).some(t=>Array.from(t).some(t=>t.toLowerCase()===n))})(i,n)?e("addCanvasImage",{url:t.url,imageConfig:{...t,filters:t.filters?t.filters.filter(t=>Object.values(g.fQ).includes(t)):[]},isHistoryEnabled:!1,isSelectionEnabled:!1}):void k.AlertPlugin.dispatchAlert(k.ALERT_TYPES.INFO,E.Z.t("configurator.invalidAssetUrl").replace("%name%",i),5e3):e("addCanvasImage",{url:t.url,imageConfig:{...t,filters:t.filters?t.filters.filter(t=>Object.values(g.fQ).includes(t)):[]},isHistoryEnabled:!1,isSelectionEnabled:!1})}))}},getters:{productConfigData:t=>t.productConfigData,isConfiguratorLocked:t=>t.productConfigData.locked,loadingActions:t=>t.actionsInProgress,isFetchLoading:(t,e)=>e.loadingActions.fetch,isUpdateLoading:(t,e)=>e.loadingActions.update,isImagesLoading:(t,e)=>e.loadingActions.imageFetch,isImageUploadLoading:(t,e)=>e.loadingActions.imageUpload,isImageDeleteLoading:(t,e)=>e.loadingActions.imageDelete,restApiCanvasAssets:t=>t.canvasAssetData&&Object.values(t.canvasAssetData).filter(t=>!t.isProductImage),restApiCanvasTexts:(t,e)=>e.restApiCanvasAssets&&e.restApiCanvasAssets.filter(t=>t.type===s.bq),restApiCanvasImages:(t,e)=>e.restApiCanvasAssets&&e.restApiCanvasAssets.filter(t=>t.type===s.HN),productInfoUpdatePayload:(t,e)=>({floor:e.configuratorConfig.floor,room:e.configuratorConfig.room,usage:e.configuratorConfig.usage,printingMethodId:e.configuratorType,maskId:e.maskId,backgroundColor:e.selectedBackgroun
12d.value===s.le?null:{name:e.selectedBackground.label,value:e.selectedBackground.value},labelOutput:e.configuratorType===D.pm.LABEL?e.labelFileOutput:null}),shouldPrintingMethodBeAssigned:(t,e)=>(t,n,r)=>!Array.isArray(t)&&(!n||!r)&&t[e.configuratorType],shouldDispatchLoadMasksByPrintType:(t,e)=>(t,n,r)=>t&&n&&r&&t[e.configuratorType]}},SelectableAreasModule:F,CollisionModule:H,PositioningModule:W,ColorsModule:X},actions:{resetConfigurator(t){let{commit:e}=t;e(o.f),e(o.bz),e(o.Wz),e(o.N6),e(o.$k),e(o.rs),e(o.NX),e(o.SP),e(o.bW)}},getters:{shouldUpdate:(t,e)=>e.undoActionEnabled||e.editedInformation},plugins:[t=>{t.subscribe(t=>{let{type:e,payload:n}=t;switch(e){case o.PI:r.default.nextTick(()=>B.N.$emit(G.sP));break;case o.Aq:case o.DX:r.default.nextTick(()=>B.N.$emit(G.sP,[n.imageConfig?n.imageConfig.config.name:n.config.name]));break;case o.TR:let{slidablePanel:i}=n;i===D.oQ.FILTER&&r.default.nextTick(()=>B.N.$emit(G.sP))}})},t=>{t.subscribe(t=>{let{type:e}=t;switch(e){case o.MR:case o.W8:case o.Aq:case o.DX:case o.fw:case o.LL:z()}})},t=>{}]})},4049:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(5140);class i{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!i.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!1===i.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(n)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=e.replace(/^data(|-)/,""),o=r.Z.toLowerCamelCase(a,"-");if(!i.isNode(t)){if(n)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(n)throw Error("This node doesn't support the dataset attribute!");return}let s=t.dataset[o];if(void 0===s){if(n)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return s}return r.Z.parsePrimitive(s)}static querySelector(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let r=t.querySelector(e)||!1;if(n&&!1===r)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return r}static querySelectorAll(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let r=t.querySelectorAll(e);if(0===r.length&&(r=!1),n&&!1===r)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return r}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return t.querySelectorAll('\n input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n select:not([tabindex^="-"]):not([disabled]),\n textarea:not([tabindex^="-"]):not([disabled]),\n button:not([tabindex^="-"]):not([disabled]),\n a[href]:not([tabindex^="-"]):not([disabled]),\n [tabindex]:not([tabindex^="-"]):not([disabled])\n ')}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}},5140:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});class r{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let n=r.toUpperCamelCase(t,e);return r.lcFirst(n)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>
12r.ucFirst(t.toLowerCase())).join(""):r.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}},4293:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(1857),i=n.n(r),a=n(4049),o=n(5140);class s{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new CustomEvent(t,{detail:e,cancelable:n});return this.el.dispatchEvent(r),r}subscribe(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,i=t.split("."),a=n.scope?e.bind(n.scope):e;if(n.once&&!0===n.once){let e=a;a=function(n){r.unsubscribe(t),e(n)}}return this.el.addEventListener(i[0],a),this.listeners.push({splitEventName:i,opts:n,cb:a}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,n)=>([...n.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(n.splitEventName[0],n.cb):t.push(n),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}}class l{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=o.Z.toDashCase(this._pluginName),n=a.Z.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),r=a.Z.getAttribute(this.el,"data-".concat(e,"-options"),!1),s=[this.constructor.options,this.options,t];n&&s.push(window.PluginConfigManager.get(this._pluginName,n));try{r&&s.push(JSON.parse(r))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(e,'-options" could not be parsed to json: ').concat(t.message))}return i().all(s.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}constructor(t,e={},n=!1){if(!a.Z.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new s(this.el),this._pluginName=this._getPluginName(n),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}}},361:(t,e,n)=>{"use strict";let r;n.r(e),n.d(e,{default:()=>eW});var i,a,o=Math.PI/180;let s="undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{},l={_global:s,version:"8.3.5",isBrowser:"undefined"!=typeof window&&("[object Window]"===({}).toString.call(window)||"[object global]"===({}).toString.call(window)),isUnminified:/param/.test((function(t){}).toString()),dblClickWindow:400,getAngle:t=>l.angleDeg?t*o:t,enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:()=>l.DD.isDragging,isDragReady:()=>!!l.DD.node,document:s.document,_injectGlobal(t){s.Konva=t}},c=t=>{l[t.prototype.getClassName()]=t};l._injectGlobal(l);class u{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new u(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}}translate(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this}scale(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this}rotate(t){var e=Math.cos(t),n=Math.sin(t),r=this.m[0]*e+this.m[2]*n,i=this.m[1]*e+this.m[3]*n,a=-(this.m[0]*n)+this.m[2]*e,o=-(this.m[1]*n)+this.m[3]*e;return this.m[0]=r,this.m[1]=i,this.m[2]=a,this.m[3]=o,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,e){var n=this.m[0]+this.m[2]*e,r=this.m[1]+this.m[3]*e,i=this.m[2]+this.m[0]*t,a=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=a,this}multiply(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],r=this.m[0]*t.m[2]+this.m[2]*t.m[3],i=this.m[1]*t.m[2]+this.m[3]*t.m[3],a=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],o=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=a,this.m[5]=o,this}invert(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,r=-this.m[2]*t,i=this.m[0]*t,a=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),o=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=a,this.m[5]=o,this}getMatrix(){return this.m}setAbsolutePosition(t,e){var n=this.m[0],r=this.m[1],i=this.m[2],a=this.m[3],o=this.m[4],s=(n*(e-this.m[5])-r*(t-o))/(n*a-r*i);return this.translate((t-o-i*s)/n,s)}decompose(){var t=this.m[0],e=this.m[1],n=this.m[2],r=this.m[3],i=this.m[4],a=this.m[5],o=t*r-e*n;let s={x:i,y:a,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=t||0!=e){var l=Math.sqrt(t*t+e*e);s.rotation=e>0?Math.acos(t/l):-Math.acos(t/l),s.scaleX=l,s.scaleY=o/l,s.skewX=(t*n+e*r)/o,s.skewY=0}else if(0!=n||0!=r){var c=Math.sqrt(n*n+r*r);s.rotation=Math.PI/2-(r>0?Math.acos(-n/c):-Math.acos(n/c)),s.scaleX=o/c,s.scaleY=c,s.skewX=0,s.skewY=(t*n+e*r)/o}return s.rotation=b._getRotation(s.rotation),s}}var d=Math.PI/180,h=180/Math.PI,f="Konva error: ",g={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
12ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},p=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,v=[];let m="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||function(t){setTimeout(t,60)},b={_isElement:t=>!!(t&&1==t.nodeType),_isFunction:t=>!!(t&&t.constructor&&t.call&&t.apply),_isPlainObject:t=>!!t&&t.constructor===Object,_isArray:t=>"[object Array]"===Object.prototype.toString.call(t),_isNumber:t=>"[object Number]"===Object.prototype.toString.call(t)&&!isNaN(t)&&isFinite(t),_isString:t=>"[object String]"===Object.prototype.toString.call(t),_isBoolean:t=>"[object Boolean]"===Object.prototype.toString.call(t),isObject:t=>t instanceof Object,isValidSelector(t){if("string"!=typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign:t=>0===t?1:t>0?1:-1,requestAnimFrame(t){v.push(t),1===v.length&&m(function(){let t=v;v=[],t.forEach(function(t){t()})})},createCanvasElement(){var t=document.createElement("canvas");try{t.style=t.style||{}}catch(t){}return t},createImageElement:()=>document.createElement("img"),_isInDocument(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_urlToImage(t,e){var n=b.createImageElement();n.onload=function(){e(n)},n.src=t},_rgbToHex:(t,e,n)=>(16777216+(t<<16)+(e<<8)+n).toString(16).slice(1),_hexToRgb(t){var e=parseInt(t=t.replace("#",""),16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor(){for(var t=(16777215*Math.random()<<0).toString(16);t.length<6;)t="0"+t;return"#"+t},getRGB(t){var e;return t in g?{r:(e=g[t])[0],g:e[1],b:e[2]}:"#"===t[0]?this._hexToRgb(t.substring(1)):"rgb("===t.substr(0,4)?{r:parseInt((e=p.exec(t.replace(/ /g,"")))[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}:{r:0,g:0,b:0}},colorToRGBA:t=>(t=t||"black",b._namedColorToRBA(t)||b._hex3ColorToRGBA(t)||b._hex6ColorToRGBA(t)||b._rgbColorToRGBA(t)||b._rgbaColorToRGBA(t)||b._hslColorToRGBA(t)),_namedColorToRBA(t){var e=g[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA(t){if(0===t.indexOf("rgb(")){var e=(t=t.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA(t){if(0===t.indexOf("rgba(")){var e=(t=t.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map((t,e)=>"%"===t.slice(-1)?3===e?parseInt(t)/100:parseInt(t)/100*255:Number(t));return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){let e,n,r;let[i,...a]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),o=Number(a[0])/360,s=Number(a[1])/100,l=Number(a[2])/100;if(0===s)return{r:Math.round(r=255*l),g:Math.round(r),b:Math.round(r),a:1};e=l<.5?l*(1+s):l+s-l*s;let c=2*l-e,u=[0,0,0];for(let t=0;t<3;t++)(n=o+-(1/3*(t-1)))<0&&n++,n>1&&n--,r=6*n<1?c+(e-c)*6*n:2*n<1?e:3*n<2?c+(e-c)*(2/3-n)*6:c,u[t]=255*r;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection:(t,e)=>!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y),cloneObject(t){var e={};for(var n in t)this._isPlainObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray:t=>t.slice(0),degToRad:t=>t*d,radToDeg:t=>t*h,_degToRad:t=>(b.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),b.degToRad(t)),_radToDeg:t=>(b.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),b.radToDeg(t)),_getRotation:t=>l.angleDeg?b.radToDeg(t):t,_capitalize:t=>t.charAt(0).toUpperCase()+t.slice(1),throw(t){throw Error(f+t)},error(t){console.error(f+t)},warn(t){l.showWarnings&&console.warn("Konva warning: "+t)},each(t,e){for(var n in t)e(n,t[n])},_inRange:(t,e,n)=>e<=t&&t<n,_getProjectionToSegment(t,e,n,r,i,a){var o,s,l,c=(t-n)*(t-n)+(e-r)*(e-r);if(0==c)o=t,s=e,l=(i-n)*(i-n)+(a-r)*(a-r);else{var u=((i-t)*(n-t)+(a-e)*(r-e))/c;u<0?(o=t,s=e,l=(t-i)*(t-i)+(e-a)*(e-a)):u>1?(o=n,s=r,l=(n-i)*(n-i)+(r-a)*(r-a)):l=((o=t+u*(n-t))-i)*(o-i)+((s=e+u*(r-e))-a)*(s-a)}return[o,s,l]},_getProjectionToLine(t,e,n){var r=b.cloneObject(t),i=Number.MAX_VALUE;return e.forEach(function(a,o){if(n||o!==e.length-1){var s=e[(o+1)%e.length],l=b._getProjectionToSegment(a.x,a.y,s.x,s.y,t.x,t.y),c=l[0],u=l[1],d=l[2];d<i&&(r.x=c,r.y=u,i=d)}}),r},_prepareArrayForTween(t,e,n){var r,i=[],a=[];if(t.length>e.length){var o=e;e=t,t=o}for(r=0;r<t.length;r+=2)i.push({x:t[r],y:t[r+1]});for(r=0;r<e.length;r+=2)a.push({x:e[r],y:e[r+1]});var s=[];return a.forEach(function(t){var e=b._getProjectionToLine(t,i,n);s.push(e.x),s.push(e.y)}),s},_prepareToStringify(t){var e;
12for(var n in t.visitedByCircularReferenceRemoval=!0,t)if(t.hasOwnProperty(n)&&t[n]&&"object"==typeof t[n]){if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||b._isElement(t[n])){if(!e.configurable)return null;delete t[n]}else if(null===b._prepareToStringify(t[n])){if(!e.configurable)return null;delete t[n]}}return delete t.visitedByCircularReferenceRemoval,t},_assign(t,e){for(var n in e)t[n]=e[n];return t},_getFirstPointerId:t=>t.touches?t.changedTouches[0].identifier:t.pointerId||999};function y(t){return b._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||b._isBoolean(t)?t:Object.prototype.toString.call(t)}function C(t){return t>255?255:t<0?0:Math.round(t)}function S(){if(l.isUnminified)return function(t,e){return b._isNumber(t)||b.warn(y(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function x(t){if(l.isUnminified)return function(e,n){let r=b._isNumber(e),i=b._isArray(e)&&e.length==t;return r||i||b.warn(y(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function w(){if(l.isUnminified)return function(t,e){return b._isNumber(t)||"auto"===t||b.warn(y(t)+' is a not val
12id value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function T(){if(l.isUnminified)return function(t,e){return b._isString(t)||b.warn(y(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function A(){if(l.isUnminified)return function(t,e){return b._isString(t)||"[object CanvasGradient]"===Object.prototype.toString.call(t)||t&&t.addColorStop||b.warn(y(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function k(){if(l.isUnminified)return function(t,e){return!0===t||!1===t||b.warn(y(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}let E={addGetterSetter(t,e,n,r,i){E.addGetter(t,e,n),E.addSetter(t,e,r,i),E.addOverloadedGetterSetter(t,e)},addGetter(t,e,n){var r="get"+b._capitalize(e);t.prototype[r]=t.prototype[r]||function(){var t=this.attrs[e];return void 0===t?n:t}},addSetter(t,e,n,r){var i="set"+b._capitalize(e);t.prototype[i]||E.overWriteSetter(t,e,n,r)},overWriteSetter(t,e,n,r){var i="set"+b._capitalize(e);t.prototype[i]=function(t){return n&&null!=t&&(t=n.call(this,t,e)),this._setAttr(e,t),r&&r.call(this),this}},addComponentsGetterSetter(t,e,n,r,i){var a,o,s=n.length,c=b._capitalize,u="get"+c(e),d="set"+c(e);t.prototype[u]=function(){var t={};for(a=0;a<s;a++)t[o=n[a]]=this.getAttr(e+c(o));return t};var h=function(t){if(l.isUnminified)return function(e,n){return b.isObject(e)||b.warn(y(e)+' is a not val
12id value for "'+n+'" attribute. The value should be an object with properties '+t),e}}(n);t.prototype[d]=function(t){var n,a=this.attrs[e];for(n in r&&(t=r.call(this,t)),h&&h.call(this,t,e),t)t.hasOwnProperty(n)&&this._setAttr(e+c(n),t[n]);return this._fireChangeEvent(e,a,t),i&&i.call(this),this},E.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter(t,e){var n=b._capitalize(e),r="set"+n,i="get"+n;t.prototype[e]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter(t,e,n,r){b.error("Adding deprecated "+e);var i="get"+b._capitalize(e),a=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[i]=function(){b.error(a);var t=this.attrs[e];return void 0===t?n:t},E.addSetter(t,e,r,function(){b.error(a)}),E.addOverloadedGetterSetter(t,e)},backCompat(t,e){b.each(e,function(e,n){var r=t.prototype[n],i="get"+b._capitalize(e),a="set"+b._capitalize(e);function o(){r.apply(this,arguments),b.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}t.prototype[e]=o,t.prototype[i]=o,t.prototype[a]=o})},afterSetFilter(){this._filterUpToDate=!1}};var O=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"];class P{constructor(t){this.canvas=t,this._context=t._canvas.getContext("2d"),l.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,e){var n,r,i,a,o=this.traceArr,s=o.length,l="";for(n=0;n<s;n++)(i=(r=o[n]).method)?(a=r.args,l+=i,t?l+="()":b._isArray(a[0])?l+="(["+a.join(",")+"])":(e&&(a=a.map(t=>"number"==typeof t?Math.floor(t):t)),l+="("+a.join(",")+")")):(l+=r.property,t||(l+="="+r.val)),l+=";";return l}clearTrace(){this.traceArr=[]}_trace(t){var e=this.traceArr;e.push(t),e.length>=100&&e.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)}_applyLineCap(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)}_applyOpacity(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)}_applyLineJoin(t){var e=t.attrs.lineJoin;e&&this.setAttr("lineJoin",e)}setAttr(t,e){this._context[t]=e}arc(t,e,n,r,i,a){this._context.arc(t,e,n,r,i,a)}arcTo(t,e,n,r,i){this._context.arcTo(t,e,n,r,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,e,n,r,i,a){this._context.bezierCurveTo(t,e,n,r,i,a)}clearRect(t,e,n,r){this._context.clearRect(t,e,n,r)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(t,e){var n=arguments;return 2===n.length?this._context.createImageData(t,e):1===n.length?this._context.createImageData(t):void 0}createLinearGradient(t,e,n,r){return this._context.createLinearGradient(t,e,n,r)}createPattern(t,e){return this._context.createPattern(t,e)}createRadialGradient(t,e,n,r,i,a){return this._context.createRadialGradient(t,e,n,r,i,a)}drawImage(t,e,n,r,i,a,o,s,l){var c=arguments,u=this._context;3===c.length?u.drawImage(t,e,n):5===c.length?u.drawImage(t,e,n,r,i):9===c.length&&u.drawImage(t,e,n,r,i,a,o,s,l)}ellipse(t,e,n,r,i,a,o,s){this._context.ellipse(t,e,n,r,i,a,o,s)}isPointInPath(t,e){return this._context.isPointInPath(t,e)}fill(t){t?this._context.fill(t):this._context.fill()}fillRect(t,e,n,r){this._context.fillRect(t,e,n,r)}strokeRect(t,e,n,r){this._context.strokeRect(t,e,n,r)}fillText(t,e,n,r){r?this._context.fillText(t,e,n,r):this._context.fillText(t,e,n)}measureText(t){return this._context.measureText(t)}
12getImageData(t,e,n,r){return this._context.getImageData(t,e,n,r)}lineTo(t,e){this._context.lineTo(t,e)}moveTo(t,e){this._context.moveTo(t,e)}rect(t,e,n,r){this._context.rect(t,e,n,r)}putImageData(t,e,n){this._context.putImageData(t,e,n)}quadraticCurveTo(t,e,n,r){this._context.quadraticCurveTo(t,e,n,r)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,e){this._context.scale(t,e)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,e,n,r,i,a){this._context.setTransform(t,e,n,r,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,e,n,r){this._context.strokeText(t,e,n,r)}transform(t,e,n,r,i,a){this._context.transform(t,e,n,r,i,a)}translate(t,e){this._context.translate(t,e)}_enableTrace(){var t,e,n=this,r=O.length,i=this.setAttr,a=function(t){var r,i=n[t];n[t]=function(){return e=function(t){var e,n,r=[],i=t.length;for(e=0;e<i;e++)n=t[e],b._isNumber(n)?n=Math.round(1e3*n)/1e3:b._isString(n)||(n+=""),r.push(n);return r}(Array.prototype.slice.call(arguments,0)),r=i.apply(n,arguments),n._trace({method:t,args:e}),r}};for(t=0;t<r;t++)a(O[t]);n.setAttr=function(){i.apply(n,arguments);var t=arguments[0],e=arguments[1];("shadowOffsetX"===t||"shadowOffsetY"===t||"shadowBlur"===t)&&(e/=this.canvas.getPixelRatio()),n._trace({property:t,val:e})}}_applyGlobalCompositeOperation(t){let e=t.attrs.globalCompositeOperation;e&&"source-over"!==e&&this.setAttr("globalCompositeOperation",e)}}["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"].forEach(function(t){Object.defineProperty(P.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})});class L extends P{_fillColor(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fillRadialGradient(t){var e=t._getRadialGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fill(t){var e=t.fill(),n=t.getFillPriority();if(e&&"color"===n){this._fillColor(t);return}var r=t.getFillPatternImage();if(r&&"pattern"===n){this._fillPattern(t);return}var i=t.getFillLinearGradientColorStops();if(i&&"linear-gradient"===n){this._fillLinearGradient(t);return}var a=t.getFillRadialGradientColorStops();if(a&&"radial-gradient"===n){this._fillRadialGradient(t);return}e?this._fillColor(t):r?this._fillPattern(t):i?this._fillLinearGradient(t):a&&this._fillRadialGradient(t)}_strokeLinearGradient(t){var e=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),r=t.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(e.x,e.y,n.x,n.y);if(r){for(var a=0;a<r.length;a+=2)i.addColorStop(r[a],r[a+1]);this.setAttr("strokeStyle",i)}}_stroke(t){var e=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),t.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}}_applyShadow(t){var e,n,r,i=(e=t.getShadowRGBA())!==null&&void 0!==e?e:"black",a=(n=t.getShadowBlur())!==null&&void 0!==n?n:5,o=(r=t.getShadowOffset())!==null&&void 0!==r?r:{x:0,y:0},s=t.getAbsoluteScale(),l=this.canvas.getPixelRatio(),c=s.x*l,u=s.y*l;this.setAttr("shadowColor",i),this.setAttr("shadowBlur",a*Math.min(Math.abs(c),Math.abs(u))),this.setAttr("shadowOffsetX",o.x*c),this.setAttr("shadowOffsetY",o.y*u)}}class I extends P{_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore(
12)}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){var e=t.getStrokeScaleEnabled();if(!e){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var r=t.hitStrokeWidth(),i="auto"===r?t.strokeWidth():r;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}}}class D{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var e=(t||{}).pixelRatio||l.pixelRatio||function(){if(i)return i;var t=b.createCanvasElement().getContext("2d");return i=function(){return(l._global.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}()}();this.pixelRatio=e,this._canvas=b.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,e){this.setWidth(t||0),this.setHeight(e||0)}toDataURL(t,e){try{return this._canvas.toDataURL(t,e)}catch(t){try{return this._canvas.toDataURL()}catch(t){return b.error("Unable to get data URL. "+t.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}E.addGetterSetter(D,"pixelRatio",void 0,S());class R extends D{constructor(t={width:0,height:0}){super(t),this.context=new L(this),this.setSize(t.width,t.height)}}class M extends D{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new I(this),this.setSize(t.width,t.height)}}let N={get isDragging(){var j=!1;return N._dragElements.forEach(t=>{"dragging"===t.dragStatus&&(j=!0)}),j},justDragged:!1,get node(){var F;return N._dragElements.forEach(t=>{F=t.node}),F},_dragElements:new Map,_drag(t){let e=[];N._dragElements.forEach((n,r)=>{let{node:i}=n,a=i.getStage();a.setPointersPositions(t),void 0===n.pointerId&&(n.pointerId=b._getFirstPointerId(t));let o=a._changedPointerPositions.find(t=>t.id===n.pointerId);if(o){if("dragging"!==n.dragStatus){var s=i.dragDistance();if(Math.max(Math.abs(o.x-n.startPointerPos.x),Math.abs(o.y-n.startPointerPos.y))<s||(i.startDrag({evt:t}),!i.isDragging()))return}i._setDragPosition(t,n),e.push(i)}}),e.forEach(e=>{e.fire("dragmove",{type:"dragmove",target:e,evt:t},!0)})},_endDragBefore(t){N._dragElements.forEach(e=>{let{node:n}=e,r=n.getStage();if(t&&r.setPointersPositions(t),!r._changedPointerPositions.find(t=>t.id===e.pointerId))return;("dragging"===e.dragStatus||"stopped"===e.dragStatus)&&(N.justDragged=!0,l._mouseListenClick=!1,l._touchListenClick=!1,l._pointerListenClick=!1,e.dragStatus="stopped");let i=e.node.getLayer()||e.node instanceof l.Stage&&e.node;i&&i.batchDraw()})},_endDragAfter(t){N._dragElements.forEach((e,n)=>{"stopped"===e.dragStatus&&e.node.fire("dragend",{type:"dragend",target:e.node,evt:t},!0),"dragging"!==e.dragStatus&&N._dragElements.delete(n)})}};l.isBrowser&&(window.addEventListener("mouseup",N._endDragBefore,!0),window.addEventListener("touchend",N._endDragBefore,!0),window.addEventListener("mousemove",N._drag),window.addEventListener("touchmove",N._drag),window.addEventListener("mouseup",N._endDragAfter,!1),window.addEventListener("touchend",N._endDragAfter,!1));var B="absoluteOpacity",G="allEventListeners",$="absoluteTransform",H="absoluteScale",z="canvas",U="listening",W="mouseenter",V="mouseleave",Y="Shape",X="stage",K="transform",q="visible";let J=1;class Z{constructor(t){this._id=J++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===K||t===$)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,e){var n=this._cache.get(t),r=t===K||t===$;return(void 0===n||r&&!0===n.dirty)&&(n=e.call(this),this._cache.set(t,n)),n}_calculate(t,e,n){if(!this._attachedDepsListeners.get(t)){let n=e.map(t=>t+"Change.konva").join(" ");this.on(n,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(z)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$&&this.fire("absoluteTransformChange")}clearCache(){return this._cache.delete(z),this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var e=t||{},n={};(void 0===e.x||void 0===e.y||void 0===e.width||void 0===e.height)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var r=Math.ceil(e.width||n.width),i=Math.ceil(e.height||n.height),a=e.pixelRatio,o=void 0===e.x?Math.floor(n.x):e.x,s=void 0===e.y?Math.floor(n.y):e.y,l=e.offset||0,c=e.drawBorder||!1,u=e.hitCanvasPixelRatio||1;if(!r||!i){b.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}r+=2*l+1,i+=2*l+1,o-=l,s-=l;var d=new R({pixelRatio:a,width:r,height:i}),h=new R({pixelRatio:a,width:0,height:0}),f=new M({pixelRatio:u,width:r,height:i}),g=d.getContext(),p=f.getContext();return f.isCache=!0,d.isCache=!0,this._cache.delete(z),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(d.getContext()._context.
12imageSmoothingEnabled=!1,h.getContext()._context.imageSmoothingEnabled=!1),g.save(),p.save(),g.translate(-o,-s),p.translate(-o,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(B),this._clearSelfAndDescendantCache(H),this.drawScene(d,this),this.drawHit(f,this),this._isUnderCache=!1,g.restore(),p.restore(),c&&(g.save(),g.beginPath(),g.rect(0,0,r,i),g.closePath(),g.setAttr("strokeStyle","red"),g.setAttr("lineWidth",5),g.stroke(),g.restore()),this._cache.set(z,{scene:d,filter:h,hit:f,x:o,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(z)}getClientRect(t){throw Error('abstract "getClientRect" method call')}_transformedRect(t,e){var n,r,i,a,o=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=this.getAbsoluteTransform(e);return o.forEach(function(t){var e=s.point(t);void 0===n&&(n=i=e.x,r=a=e.y),n=Math.min(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.x),a=Math.max(a,e.y)}),{x:n,y:r,width:i-n,height:a-r}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);let e=this._getCanvasCache();t.translate(e.x,e.y);var n=this._getCachedSceneCanvas(),r=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/r,n.height/r),t.restore()}_drawCachedHitCanvas(t){var e=this._getCanvasCache(),n=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t,e,n,r,i=this.filters(),a=this._getCanvasCache(),o=a.scene,s=a.filter,l=s.getContext();if(i){if(!this._filterUpToDate){var c=o.pixelRatio;s.setSize(o.width/o.pixelRatio,o.height/o.pixelRatio);try{for(t=i.length,l.clear(),l.drawImage(o._canvas,0,0,o.getWidth()/c,o.getHeight()/c),e=l.getImageData(0,0,s.getWidth(),s.getHeight()),n=0;n<t;n++){if(r=i[n],"function"!=typeof r){b.error("Filter should be type of function, but got "+typeof r+" instead. Please check correct filters");continue}r.call(this,e),l.putImageData(e,0,0)}}catch(t){b.error("Unable to apply filter. "+t.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return s}return o}on(t,e){if(this._cache&&this._cache.delete(G),3==arguments.length)return this._delegate.apply(this,arguments);var n,r,i,a,o=t.split(" "),s=o.length;for(n=0;n<s;n++)i=(r=o[n].split("."))[0],a=r[1]||"",this.eventListeners[i]||(this.eventListeners[i]=[]),this.eventListeners[i].push({name:a,handler:e});return this}off(t,e){var n,r,i,a,o,s=(t||"").split(" "),l=s.length;if(this._cache&&this._cache.delete(G),!t)for(r in this.eventListeners)this._off(r);for(n=0;n<l;n++)if(a=(i=s[n].split("."))[0],o=i[1],a)this.eventListeners[a]&&this._off(a,o,e);else for(r in this.eventListeners)this._off(r,o,e);return this}dispatchEvent(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this}addEventListener(t,e){return this.on(t,function(t){e.call(this,t.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,e,n){var r=this;this.on(t,function(t){for(var i=t.target.findAncestors(e,!0,r),a=0;a<i.length;a++)(t=b.cloneObject(t)).currentTarget=i[a],n.call(i[a],t)})}
12remove(){return this.isDragging()&&this.stopDrag(),N._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache($),this._clearSelfAndDescendantCache(B),this._clearSelfAndDescendantCache(H),this._clearSelfAndDescendantCache(X),this._clearSelfAndDescendantCache(q),this._clearSelfAndDescendantCache(U)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this}getAttr(t){var e="get"+b._capitalize(t);return b._isFunction(this[e])?this[e]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),e=[];t;)e.push(t),t=t.getParent();return e}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{var e,n;if(!t)return this;for(e in t)"children"!==e&&(n="set"+b._capitalize(e),b._isFunction(this[n])?this[n](t[e]):this._setAttr(e,t[e]))}),this}isListening(){return this._getCache(U,this._isListening)}_isListening(t){if(!this.listening())return!1;let e=this.getParent();return!e||e===t||this===t||e._isListening(t)}isVisible(){return this._getCache(q,this._isVisible)}_isVisible(t){if(!this.visible())return!1;let e=this.getParent();return!e||e===t||this===t||e._isVisible(t)}shouldDrawHit(t,e=!1){if(t)return this._isVisible(t)&&this._isListening(t);var n=this.getLayer(),r=!1;N._dragElements.forEach(t=>{"dragging"===t.dragStatus&&("Stage"===t.node.nodeType?r=!0:t.node.getLayer()===n&&(r=!0))});var i=!e&&!l.hitOnDragEnabled&&r;return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t,e,n,r,i=this.getDepth(),a=this,o=0;return"Stage"!==a.nodeType&&function s(l){for(n=0,t=[],e=l.length;n<e;n++)r=l[n],o++,r.nodeType!==Y&&(t=t.concat(r.getChildren().slice())),r._id===a._id&&(n=e);t.length>0&&t[0].getDepth()<=i&&s(t)}(a.getStage().getChildren()),o}getDepth(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(K),this._clearSelfAndDescendantCache($)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var t=this.getStage().getPointerPosition();if(!t)return null;var e=this.getAbsoluteTransform().copy();return e.invert(),e.point(t)}getAbsolutePosition(t){let e=!1,n=this.parent;for(;n;){if(n.isCached()){e=!0;break}n=n.parent}e&&!t&&(t=!0);var r=this.getAbsoluteTransform(t).getMatrix(),i=new u,a=this.offset();return i.m=r.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){var e=this._clearTransform();this.attrs.x=e.x,this.attrs.y=e.y,delete e.x,delete e.y,this._clearCache(K);var n=this._getAbsoluteTransform().copy();return n.invert(),n.translate(t.x,t.y),t={x:this.attrs.x+n.getTranslation().x,y:this.attrs.y+n.getTranslation().y},this._setTransform(e),this.setPosition({x:t.x,y:t.y}),this._clearCache(K),this._clearSelfAndDescendantCache($),this}_setTransform(t){var e;for(e in t)this.attrs[e]=t[e]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var e=t.x,n=t.y,r=this.x(),i=this.y();return void 0!==e&&(r+=e),void 0!==n&&(i+=n),this.setPosition({x:r,y:i}),this}_eachAncestorReverse(t,e){var n,r,i=[],a=this.getParent();if(!e||e._id!==this._id){for(i.unshift(this);a&&(!e||a._id!==e._id);)i.unshift(a),a=a.parent;for(r=0,n=i.length;r<n;r++)t(i[r])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return b.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index;return t<this.parent.getChildren().length-1&&(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0)}moveUp(){if(!this.parent)return b.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index;return t<this.parent.getChildren().length-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)}moveDown(){if(!this.parent)return b.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)}moveToBottom(){if(!this.parent)return b.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)}setZIndex(t){if(!this.parent)return b.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&b.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(B,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t,e,n,r,i={},a=this.getAttrs();for(t in i.attrs={},a)e=a[t],(!b.isObject(e)||b._isPlainObject(e)||b._isArray(e))&&(n="function"==typeof this[t]&&this[t],delete a[t],r=n?n.call(this):null,a[t]=e,r!==e&&(i.attrs[t]=e));return i.className=this.getClassName(),b._prepareToStringify(i)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,e,n){var r=[];e&&this._isMatch(t)&&r.push(this);for(var i=this.parent;i&&i!==n;)i._isMatch(t)&&r.push(i),i=i.parent;return r}isAncestorOf(t){return!1}
12findAncestor(t,e,n){return this.findAncestors(t,e,n)[0]}_isMatch(t){if(!t)return!1;if("function"==typeof t)return t(this);var e,n,r=t.replace(/ /g,"").split(","),i=r.length;for(e=0;e<i;e++)if(n=r[e],b.isValidSelector(n)||(b.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),b.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),b.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===n||this.nodeType===n)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(X,this._getStage)}_getStage(){var t=this.getParent();return t?t.getStage():void 0}fire(t,e={},n){return e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache($,this._getAbsoluteTransform)}_getAbsoluteTransform(t){if(t)return e=new u,this._eachAncestorReverse(function(t){var n=t.transformsEnabled();"all"===n?e.multiply(t.getTransform()):"position"===n&&e.translate(t.x()-t.offsetX(),t.y()-t.offsetY())},t),e;e=this._cache.get($)||new u,this.parent?this.parent.getAbsoluteTransform().copyInto(e):e.reset();var e,n=this.transformsEnabled();if("all"===n)e.multiply(this.getTransform());else if("position"===n){let t=this.attrs.x||0,n=this.attrs.y||0,r=this.attrs.offsetX||0,i=this.attrs.offsetY||0;e.translate(t-r,n-i)}return e.dirty=!1,e}getAbsoluteScale(t){for(var e=this;e;)e._isUnderCache&&(t=e),e=e.getParent();let n=this.getAbsoluteTransform(t).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(K,this._getTransform)}_getTransform(){var t,e,n=this._cache.get(K)||new u;n.reset();var r=this.x(),i=this.y(),a=l.getAngle(this.rotation()),o=(t=this.attrs.scaleX)!==null&&void 0!==t?t:1,s=(e=this.attrs.scaleY)!==null&&void 0!==e?e:1,c=this.attrs.skewX||0,d=this.attrs.skewY||0,h=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return(0!==r||0!==i)&&n.translate(r,i),0!==a&&n.rotate(a),(0!==c||0!==d)&&n.skew(c,d),(1!==o||1!==s)&&n.scale(o,s),(0!==h||0!==f)&&n.translate(-1*h,-1*f),n.dirty=!1,n}clone(t){var e,n,r,i,a,o=b.cloneObject(this.attrs);for(e in t)o[e]=t[e];var s=new this.constructor(o);for(e in this.eventListeners)for(i=0,r=(n=this.eventListeners[e]).length;i<r;i++)0>(a=n[i]).name.indexOf("konva")&&(s.eventListeners[e]||(s.eventListeners[e]=[]),s.eventListeners[e].push(a));return s}_toKonvaCanvas(t){t=t||{};var e=this.getClientRect(),n=this.getStage(),r=void 0!==t.x?t.x:Math.floor(e.x),i=void 0!==t.y?t.y:Math.floor(e.y),a=t.pixelRatio||1,o=new R({width:t.width||Math.ceil(e.width)||(n?n.width():0),height:t.height||Math.ceil(e.height)||(n?n.height():0),pixelRatio:a}),s=o.getContext();return s.save(),(r||i)&&s.translate(-1*r,-1*i),this.drawScene(o),s.restore(),o}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){var e=(t=t||{}).mimeType||null,n=t.quality||null,r=this._toKonvaCanvas(t).toDataURL(e,n);return t.callback&&t.callback(r),r}toImage(t){if(!t||!t.callback)throw"callback required for toImage method config argument";var e=t.callback;delete t.callback,b._urlToImage(this.toDataURL(t),function(t){e(t)})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():l.dragDistance}_off(t,e,n){var r,i,a,o=this.eventListeners[t];for(r=0;r<o.length;r++)if(i=o[r].name,a=o[r].handler,("konva"!==i||"konva"===e)&&(!e||i===e)&&(!n||n===a)){if(o.splice(r,1),0===o.length){delete this.eventListeners[t];break}r--}}_fireChangeEvent(t,e,n){this._fire(t+"Change",{oldVal:e,newVal:n})}addName(t){if(!this.hasName(t)){var e=this.name();this.name(e?e+" "+t:t)}return this}hasName(t){if(!t)return!1;let e=this.name();return!!e&&-1!==(e||"").split(/\s/g).indexOf(t)}removeName(t){var e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return -1!==n&&(e.splice(n,1),this.name(e.join(" "))),this}setAttr(t,e){var n=this["set"+b._capitalize(t)];return b._isFunction(n)?n.call(this,e):this._setAttr(t,e),this}_requestDraw(){if(l.autoDrawEnabled){let t=this.getLayer()||this.get
12Stage();null==t||t.batchDraw()}}_setAttr(t,e){var n=this.attrs[t];(n!==e||b.isObject(e))&&(null==e?delete this.attrs[t]:this.attrs[t]=e,this._shouldFireChangeEvents&&this._fireChangeEvent(t,n,e),this._requestDraw())}_setComponentAttr(t,e,n){var r;void 0!==n&&((r=this.attrs[t])||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=n,this._fireChangeEvent(t,r,n))}_fireAndBubble(t,e,n){if(e&&this.nodeType===Y&&(e.target=this),!((t===W||t===V)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n))){this._fire(t,e);var r=(t===W||t===V)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,e,n):this._fireAndBubble.call(this.parent,t,e))}}_getProtoListeners(t){let e=this._cache.get(G);if(!e){e={};let t=Object.getPrototypeOf(this);for(;t;){if(!t.eventListeners){t=Object.getPrototypeOf(t);continue}for(var n in t.eventListeners){let r=t.eventListeners[n],i=e[n]||[];e[n]=r.concat(i)}t=Object.getPrototypeOf(t)}this._cache.set(G,e)}return e[t]}_fire(t,e){(e=e||{}).currentTarget=this,e.type=t;let n=this._getProtoListeners(t);if(n)for(var r=0;r<n.length;r++)n[r].handler.call(this,e);let i=this.eventListeners[t];if(i)for(var r=0;r<i.length;r++)i[r].handler.call(this,e)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var e=t?t.pointerId:void 0,n=this.getStage(),r=this.getAbsolutePosition(),i=n._getPointerById(e)||n._changedPointerPositions[0]||r;N._dragElements.set(this._id,{node:this,startPointerPos:i,offset:{x:i.x-r.x,y:i.y-r.y},dragStatus:"ready",pointerId:e})}startDrag(t,e=!0){N._dragElements.has(this._id)||this._createDragElement(t),N._dragElements.get(this._id).dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},e)}_setDragPosition(t,e){let n=this.getStage()._getPointerById(e.pointerId);if(n){var r={x:n.x-e.offset.x,y:n.y-e.offset.y},i=this.dragBoundFunc();if(void 0!==i){let e=i.call(this,r,t);e?r=e:b.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===r.x&&this._lastPos.y===r.y||(this.setAbsolutePosition(r),this._requestDraw()),this._lastPos=r}}stopDrag(t){let e=N._dragElements.get(this._id);e&&(e.dragStatus="stopped"),N._endDragBefore(t),N._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){let t=N._dragElements.get(this._id);return!!t&&"dragging"===t.dragStatus}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){if(!(!(!(void 0!==t.evt.button)||l.dragButtons.indexOf(t.evt.button)>=0)||this.isDragging())){var e=!1;N._dragElements.forEach(t=>{this.isAncestorOf(t.node)&&(e=!0)}),e||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;let t=N._dragElements.get(this._id),e=t&&"dragging"===t.dragStatus,n=t&&"ready"===t.dragStatus;
12e?this.stopDrag():n&&N._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){let e=this.getStage();if(!e)return!1;let n={x:-t.x,y:-t.y,width:e.width()+2*t.x,height:e.height()+2*t.y};return b.haveIntersection(n,this.getClientRect())}static create(t,e){return b._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)}static _createNode(t,e){var n,r,i,a=Z.prototype.getClassName.call(t),o=t.children;if(e&&(t.attrs.container=e),l[a]||(b.warn('Can not find a node with class name "'+a+'". Fallback to "Shape".'),a="Shape"),n=new l[a](t.attrs),o)for(i=0,r=o.length;i<r;i++)n.add(Z._createNode(o[i]));return n}}Z.prototype.nodeType="Node",Z.prototype._attrsAffectingSize=[],Z.prototype.eventListeners={},Z.prototype.on.call(Z.prototype,"xChange.konva yChange.konva scaleXChange.konva scaleYChange.konva skewXChange.konva skewYChange.konva rotationChange.konva offsetXChange.konva offsetYChange.konva transformsEnabledChange.konva",function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(K),this._clearSelfAndDescendantCache($)}),Z.prototype.on.call(Z.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(q)}),Z.prototype.on.call(Z.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(U)}),Z.prototype.on.call(Z.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(B)});let Q=E.addGetterSetter;Q(Z,"zIndex"),Q(Z,"absolutePosition"),Q(Z,"position"),Q(Z,"x",0,S()),Q(Z,"y",0,S()),Q(Z,"globalCompositeOperation","source-over",T()),Q(Z,"opacity",1,S()),Q(Z,"name","",T()),Q(Z,"id","",T()),Q(Z,"rotation",0,S()),E.addComponentsGetterSetter(Z,"scale",["x","y"]),Q(Z,"scaleX",1,S()),Q(Z,"scaleY",1,S()),E.addComponentsGetterSetter(Z,"skew",["x","y"]),Q(Z,"skewX",0,S()),Q(Z,"skewY",0,S()),E.addComponentsGetterSetter(Z,"offset",["x","y"]),Q(Z,"offsetX",0,S()),Q(Z,"offsetY",0,S()),Q(Z,"dragDistance",null,S()),Q(Z,"width",0,S()),Q(Z,"height",0,S()),Q(Z,"listening",!0,k()),Q(Z,"preventDefault",!0,k()),Q(Z,"filters",null,function(t){return this._filterUpToDate=!1,t}),Q(Z,"visible",!0,k()),Q(Z,"transformsEnabled","all",T()),Q(Z,"size"),Q(Z,"dragBoundFunc"),Q(Z,"draggable",!1,k()),E.backCompat(Z,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class tt extends Z{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];let e=this.children||[];var n=[];return e.forEach(function(e){t(e)&&n.push(e)}),n}hasChildren(){return this.getChildren().length>0}
12removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}var n=t[0];return n.getParent()?n.moveTo(this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw()),this}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var e=this._generalFind(t,!0);return e.length>0?e[0]:void 0}_generalFind(t,e){var n=[];return this._descendants(r=>{let i=r._isMatch(t);return i&&n.push(r),!!i&&!!e}),n}_descendants(t){for(let e of this.getChildren())if(t(e)||e.hasChildren()&&e._descendants(t))return!0;return!1}toObject(){var t=Z.prototype.toObject.call(this);
12return t.children=[],this.getChildren().forEach(e=>{t.children.push(e.toObject())}),t}isAncestorOf(t){for(var e=t.getParent();e;){if(e._id===this._id)return!0;e=e.getParent()}return!1}clone(t){var e=Z.prototype.clone.call(this,t);return this.getChildren().forEach(function(t){e.add(t.clone())}),e}getAllIntersections(t){var e=[];return this.find("Shape").forEach(function(n){n.isVisible()&&n.intersects(t)&&e.push(n)}),e}_clearSelfAndDescendantCache(t){var e;super._clearSelfAndDescendantCache(t),this.isCached()||(e=this.children)===null||void 0===e||e.forEach(function(e){e._clearSelfAndDescendantCache(t)})}_setChildrenIndices(){var t;(t=this.children)===null||void 0===t||t.forEach(function(t,e){t.index=e}),this._requestDraw()}drawScene(t,e){var n=this.getLayer(),r=t||n&&n.getCanvas(),i=r&&r.getContext(),a=this._getCanvasCache(),o=a&&a.scene,s=r&&r.isCache;if(!this.isVisible()&&!s)return this;if(o){i.save();var l=this.getAbsoluteTransform(e).getMatrix();i.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedSceneCanvas(i),i.restore()}else this._drawChildren("drawScene",r,e);return this}drawHit(t,e){if(!this.shouldDrawHit(e))return this;var n=this.getLayer(),r=t||n&&n.hitCanvas,i=r&&r.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();var o=this.getAbsoluteTransform(e).getMatrix();i.transform(o[0],o[1],o[2],o[3],o[4],o[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",r,e);return this}_drawChildren(t,e,n){var r,i=e&&e.getContext(),a=this.clipWidth(),o=this.clipHeight(),s=this.clipFunc(),l=a&&o||s;let c=n===this;if(l){i.save();var u=this.getAbsoluteTransform(n),d=u.getMatrix();if(i.transform(d[0],d[1],d[2],d[3],d[4],d[5]),i.beginPath(),s)s.call(this,i,this);else{var h=this.clipX(),f=this.clipY();i.rect(h,f,a,o)}i.clip(),d=u.copy().invert().getMatrix(),i.transform(d[0],d[1],d[2],d[3],d[4],d[5])}var g=!c&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===t;g&&(i.save(),i._applyGlobalCompositeOperation(this)),(r=this.children)===null||void 0===r||r.forEach(function(r){r[t](e,n)}),g&&i.restore(),l&&i.restore()}getClientRect(t){var e,n,r,i,a,o=(t=t||{}).skipTransform,s=t.relativeTo,l={x:1/0,y:1/0,width:0,height:0},c=this;(e=this.children)===null||void 0===e||e.forEach(function(e){if(e.visible()){var o=e.getClientRect({relativeTo:c,skipShadow:t.skipShadow,skipStroke:t.skipStroke});(0!==o.width||0!==o.height)&&(void 0===n?(n=o.x,r=o.y,i=o.x+o.width,a=o.y+o.height):(n=Math.min(n,o.x),r=Math.min(r,o.y),i=Math.max(i,o.x+o.width),a=Math.max(a,o.y+o.height)))}});for(var u=this.find("Shape"),d=!1,h=0;h<u.length;h++)if(u[h]._isVisible(this)){d=!0;break}return(l=d&&void 0!==n?{x:n,y:r,width:i-n,height:a-r}:{x:0,y:0,width:0,height:0},o)?l:this._transformedRect(l,s)}}E.addComponentsGetterSetter(tt,"clip",["x","y","width","height"]),E.addGetterSetter(tt,"clipX",void 0,S()),E.addGetterSetter(tt,"clipY",void 0,S()),E.addGetterSetter(tt,"clipWidth",void 0,S()),E.addGetterSetter(tt,"clipHeight",void 0,S()),E.addGetterSetter(tt,"clipFunc");let te=new Map,tn=void 0!==l._global.PointerEvent;function tr(t){return{evt:t,pointerId:t.pointerId}}function ti(t,e){ta(t),e.getStage()&&(te.set(t,e),tn&&e._fire("gotpointercapture",tr(new PointerEvent("gotpointercapture"))))}function ta(t,e){let n=te.get(t);if(!n)return;let r=n.getStage();r&&r.content,te.delete(t),tn&&n._fire("lostpointercapture",tr(new PointerEvent("lostpointercapture")))}var to="mouseleave",ts="mouseover",tl="mouseenter",tc="mousemove",tu="mousedown",td="mouseup",th="pointermove",tf="pointerdown",tg="pointerup",tp="pointercancel",tv="pointerout",tm="pointerleave",t_="pointerover",tb="pointerenter",ty="contextmenu",tC="touchstart",tS="touchend",tx="touchmove",tw="touchcancel",tT="wheel",tA=[[tl,"_pointerenter"],[tu,"_pointerdown"],[tc,"_pointermove"],[td,"_pointerup"],[to,"_pointerleave"],[tC,"_pointerdown"],[tx,"_pointermove"],[tS,"_pointerup"],[tw,"_pointercancel"],[ts,"_pointerover"],[tT,"_wheel"],[ty,"_contextmenu"],[tf,"_pointerdown"],[th,"_pointermove"],[tg,"_pointerup"],[tp,"_pointercancel"],["lostpointercapture","_lostpointercapture"]];let tk={mouse:{[tv]:"mouseout",[tm]:to,[t_]:ts,[tb]:tl,[th]:tc,[tf]:tu,[tg]:td,[tp]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[tv]:"touchout",[tm]:"touchleave",[t_]:"touchover",[tb]:"touchenter",[th]:tx,[tf]:tC,[tg]:tS,[tp]:tw,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[tv]:tv,[tm]:tm,[t_]:t_,[tb]:tb,[th]:th,[tf]:tf,[tg]:tg,[tp]:tp,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},tE=t=>t.indexOf("pointer")>=0?"pointer":t.indexOf("touch")>=0?"touch":"mouse",tO=t=>{let e=tE(t);return"pointer"===e?l.pointerEventsEnabled&&tk.pointer:"touch"===e?tk.touch:"mouse"===e?tk.mouse:void 0};function tP(t={}){return(t.clipFunc||t.clipWidth||t.clipHeight)&&b.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}let tL=[];class tI extends tt{constructor(t){super(tP(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),tL.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{tP(this.attrs)}),this._checkVisibility()}_validateAdd(t){let e="Layer"===t.getType(),n="FastLayer"===t.getType();e||n||b.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;let t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if("string"==typeof t){if("."===t.charAt(0)){var e,n=t.slice(1);t=document.getElementsByClassName(n)[0]}else e="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(e);if(!t)throw"Can not find container in document with id "+e}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var t,e=this.children,n=e.length;for(t=0;t<n;t++)e[t].clear();return this}clone(t){return t||(t={}),t.container="undefined"!=typeof document&&document.createElement("div"),tt.prototype.clone.call(this,t)}destroy(){super.destroy();var t=this.content;t&&b._isInDocument(t)&&this.container().removeChild(t);var e=tL.indexOf(this);return e>-1&&tL.splice(e,1),this}getPointerPosition(){let t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(b.warn("Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);"),null)}_getPointerById(t){return this._pointerPositions.find(e=>e.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){(t=t||{}).x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();var e=new R({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),n=e.getContext()._context,r=this.children;return(t.x||t.y)&&n.translate(-1*t.x,-1*t.y),r.forEach(function(e){if(e.isVisible()){var r=e._toKonvaCanvas(t);n.drawImage(r._canvas,t.x,t.y,r.getWidth()/r.getPixelRatio(),r.getHeight()/r.getPixelRatio())}}),e}getIntersection(t){if(!t)return null;var e,n=this.children;for(e=n.length-1;e>=0;e--){let r=n[e].getIntersection(t);
12if(r)return r}return null}_resizeDOM(){var t=this.width(),e=this.height();this.content&&(this.content.style.width=t+"px",this.content.style.height=e+"px"),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.forEach(n=>{n.setSize({width:t,height:e}),n.draw()})}add(t,...e){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.add(arguments[n]);return this}super.add(t);var r=this.children.length;return r>5&&b.warn("The stage has "+r+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),l.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return te.get(t)===this}setPointerCapture(t){ti(t,this)}releaseCapture(t){ta(t,this)}getLayers(){return this.children}_bindContentEvents(){l.isBrowser&&tA.forEach(([t,e])=>{this.content.addEventListener(t,t=>{this[e](t)})})}_pointerenter(t){this.setPointersPositions(t);let e=tO(t.type);this._fire(e.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);let e=tO(t.type);this._fire(e.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let e=this[t+"targetShape"];return e&&!e.getStage()&&(e=null),e}_pointerleave(t){let e=tO(t.type),n=tE(t.type);if(e){this.setPointersPositions(t);var r=this._getTargetShape(n),i=!N.isDragging||l.hitOnDragEnabled;r&&i?(r._fireAndBubble(e.pointerout,{evt:t}),r._fireAndBubble(e.pointerleave,{evt:t}),this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this[n+"targetShape"]=null):i&&(this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(e.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(t){let e=tO(t.type),n=tE(t.type);if(e){this.setPointersPositions(t);var r=!1;this._changedPointerPositions.forEach(i=>{var a=this.getIntersection(i);if(N.justDragged=!1,l["_"+n+"ListenClick"]=!0,!(a&&a.isListening()))return;l.capturePointerEventsEnabled&&a.setPointerCapture(i.id),this[n+"ClickStartShape"]=a,a._fireAndBubble(e.pointerdown,{evt:t,pointerId:i.id}),r=!0;let o=t.type.indexOf("touch")>=0;a.preventDefault()&&t.cancelable&&o&&t.preventDefault()}),r||this._fire(e.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(t){let e=tO(t.type),n=tE(t.type);if(!e||(N.isDragging&&N.node.preventDefault()&&t.cancelable&&t.preventDefault(),this.setPointersPositions(t),!(!N.isDragging||l.hitOnDragEnabled)))return;var r={};let i=!1;var a=this._getTargetShape(n);this._changedPointerPositions.forEach(o=>{let s=(u=o.id,te.get(u)||this.getIntersection(o)),l=o.id,c={evt:t,pointerId:l};var u,d=a!==s;if(d&&a&&(a._fireAndBubble(e.pointerout,Object.assign({},c),s),a._fireAndBubble(e.pointerleave,Object.assign({},c),s)),s){if(r[s._id])return;r[s._id]=!0}s&&s.isListening()?(i=!0,d&&(s._fireAndBubble(e.pointerover,Object.assign({},c),a),s._fireAndBubble(e.pointerenter,Object.assign({},c),a),this[n+"targetShape"]=s),s._fireAndBubble(e.pointermove,Object.assign({},c))):a&&(this._fire(e.pointerover,{evt:t,target:this,currentTarget:this,pointerId:l}),this[n+"targetShape"]=null)}),i||this._fire(e.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){let e=tO(t.type),n=tE(t.type);if(!e)return;this.setPointersPositions(t);let r=this[n+"ClickStartShape"],i=this[n+"ClickEndShape"];var a={};let o=!1;this._changedPointerPositions.forEach(s=>{var c;let u=(c=s.id,te.get(c)||this.getIntersection(s));if(u){if(u.releaseCapture(s.id),a[u._id])return;a[u._id]=!0}let d=s.id,h={evt:t,pointerId:d},f=!1;l["_"+n+"InDblClickWindow"]?(f=!0,clearTimeout(this[n+"DblTimeout"])):N.justDragged||(l["_"+n+"InDblClickWindow"]=!0,clearTimeout(this[n+"DblTimeout"])),this[n+"DblTimeout"]=setTimeout(function(){l["_"+n+"InDblClickWindow"]=!1},l.dblClickWindow),u&&u.isListening()?(o=!0,this[n+"ClickEndShape"]=u,u._fireAndBubble(e.pointerup,Object.assign({},h)),l["_"+n+"ListenClick"]&&r&&r===u&&(u._fireAndBubble(e.pointerclick,Object.assign({},h)),f&&i&&i===u&&u._fireAndBubble(e.pointerdblclick,Object.assign({},h)))):(this[n+"ClickEndShape"]=null,l["_"+n+"ListenClick"]&&this._fire(e.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:d}),f&&this._fire(e.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:d}))}),o||this._fire(e.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),l["_"+n+"ListenClick"]=!1,t.cancelable&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(ty,{evt:t}):this._fire(ty,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(tT,{evt:t}):this._fire(tT,{evt:t,target:this,currentTarget:this})}_pointercancel(t){var e;this.setPointersPositions(t);let n=(e=t.pointerId,te.get(e)||this.getIntersection(this.getPointerPosition()));n&&n._fireAndBubble(tg,tr(t)),ta(t.pointerId)}_lostpointercapture(t){ta(t.pointerId)}setPointersPositions(t){var e=this._getContentPosition(),n=null,r=null;void 0!==(t=t||window.event).touches?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,t=>{this._pointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,t=>{this._changedPointerPositions.push({id:t.identifier,x:(t.clientX-e.left)/e.scaleX,y:(t.clientY-e.top)/e.scaleY})})):(n=(t.clientX-e.left)/e.scaleX,r=(t.clientY-e.top)/e.scaleY,this.pointerPos={x:n,y:r},this._pointerPositions=[{x:n,y:r,id:b._getFirstPointerId(t)}],this._changedPointerPositions=[{x:n,y:r,id:b._getFirstPointerId(t)}])}_setPointerPosition(t){b.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var t=this.content.getBoundingClientRect();
12return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new R({width:this.width(),height:this.height()}),this.bufferHitCanvas=new M({pixelRatio:1,width:this.width(),height:this.height()}),l.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}}cache(){return b.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}}tI.prototype.nodeType="Stage",c(tI),E.addGetterSetter(tI,"container");var tD="hasShadow",tR="shadowRGBA",tM="patternImage",tN="linearGradient",tj="radialGradient";function tF(){return r||(r=b.createCanvasElement().getContext("2d"))}let tB={};class tG extends Z{constructor(t){let e;for(super(t);!(e=b.getRandomColor())||(e in tB););this.colorKey=e,tB[e]=this}getContext(){return b.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return b.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(tD,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(tM,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){let t=tF().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(t&&t.setTransform){let e=new u;e.translate(this.fillPatternX(),this.fillPatternY()),e.rotate(l.getAngle(this.fillPatternRotation())),e.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),e.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());let n=e.getMatrix(),r="undefined"==typeof DOMMatrix?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);t.setTransform(r)}return t}}_getLinearGradient(){return this._getCache(tN,this.__getLinearGradient)}__getLinearGradient(){var t=this.fillLinearGradientColorStops();if(t){for(var e=tF(),n=this.fillLinearGradientStartPoint(),r=this.fillLinearGradientEndPoint(),i=e.createLinearGradient(n.x,n.y,r.x,r.y),a=0;a<t.length;
12a+=2)i.addColorStop(t[a],t[a+1]);return i}}_getRadialGradient(){return this._getCache(tj,this.__getRadialGradient)}__getRadialGradient(){var t=this.fillRadialGradientColorStops();if(t){for(var e=tF(),n=this.fillRadialGradientStartPoint(),r=this.fillRadialGradientEndPoint(),i=e.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),r.x,r.y,this.fillRadialGradientEndRadius()),a=0;a<t.length;a+=2)i.addColorStop(t[a],t[a+1]);return i}}getShadowRGBA(){return this._getCache(tR,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var t=b.colorToRGBA(this.shadowColor());return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){let t=this.hitStrokeWidth();return"auto"===t?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){var e=this.getStage().bufferHitCanvas;return e.getContext().clear(),this.drawHit(e,null,!0),e.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data[3]>0}destroy(){return Z.prototype.destroy.call(this),delete tB[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var e;if(!this.getStage()||!((e=this.attrs.perfectDrawEnabled)===null||void 0===e||e))return!1;let n=t||this.hasFill(),r=this.hasStroke(),i=1!==this.getAbsoluteOpacity();if(n&&r&&i)return!0;let a=this.hasShadow(),o=this.shadowForStrokeEnabled();return!!n&&!!r&&!!a&&!!o}setStrokeHitEnabled(t){b.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){let e=t.skipTransform,n=t.relativeTo,r=this.getSelfRect(),i=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,a=r.width+i,o=r.height+i,s=!t.skipShadow&&this.hasShadow(),l=s?this.shadowOffsetX():0,c=s?this.shadowOffsetY():0,u=a+Math.abs(l),d=o+Math.abs(c),h=s&&this.shadowBlur()||0,f={width:u+2*h,height:d+2*h,x:-(i/2+h)+Math.min(l,0)+r.x,y:-(i/2+h)+Math.min(c,0)+r.y};return e?f:this._transformedRect(f,n)}drawScene(t,e){var n,r,i=this.getLayer(),a=t||i.getCanvas(),o=a.getContext(),s=this._getCanvasCache(),l=this.getSceneFunc(),c=this.hasShadow(),u=a.isCache,d=e===this;if(!this.isVisible()&&!d)return this;if(s){o.save();var h=this.getAbsoluteTransform(e).getMatrix();return o.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this._drawCachedSceneCanvas(o),o.restore(),this}if(!l)return this;if(o.save(),this._useBufferCanvas()&&!u){(r=(n=this.getStage().bufferCanvas).getContext()).clear(),r.save(),r._applyLineJoin(this);var f=this.getAbsoluteTransform(e).getMatrix();r.transform(f[0],f[1],f[2],f[3],f[4],f[5]),l.call(this,r,this),r.restore();var g=n.pixelRatio;c&&o._applyShadow(this),o._applyOpacity(this),o._applyGlobalCompositeOperation(this),o.drawImage(n._canvas,0,0,n.width/g,n.height/g)}else{if(o._applyLineJoin(this),!d){var f=this.getAbsoluteTransform(e).getMatrix();o.transform(f[0],f[1],f[2],f[3],f[4],f[5]),o._applyOpacity(this),o._applyGlobalCompositeOperation(this)}c&&o._applyShadow(this),l.call(this,o,this)}
12return o.restore(),this}drawHit(t,e,n=!1){if(!this.shouldDrawHit(e,n))return this;var r=this.getLayer(),i=t||r.hitCanvas,a=i&&i.getContext(),o=this.hitFunc()||this.sceneFunc(),s=this._getCanvasCache(),l=s&&s.hit;if(this.colorKey||b.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),l){a.save();var c=this.getAbsoluteTransform(e).getMatrix();return a.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!o)return this;if(a.save(),a._applyLineJoin(this),this!==e){var u=this.getAbsoluteTransform(e).getMatrix();a.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return o.call(this,a,this),a.restore(),this}drawHitFromCache(t=0){var e,n,r,i,a,o=this._getCanvasCache(),s=this._getCachedSceneCanvas(),l=o.hit,c=l.getContext(),u=l.getWidth(),d=l.getHeight();c.clear(),c.drawImage(s._canvas,0,0,u,d);try{for(a=0,r=(n=(e=c.getImageData(0,0,u,d)).data).length,i=b._hexToRgb(this.colorKey);a<r;a+=4)n[a+3]>t?(n[a]=i.r,n[a+1]=i.g,n[a+2]=i.b,n[a+3]=255):n[a+3]=0;c.putImageData(e,0,0)}catch(t){b.error("Unable to draw hit graph from cached scene canvas. "+t.message)}return this}hasPointerCapture(t){return te.get(t)===this}setPointerCapture(t){ti(t,this)}releaseCapture(t){ta(t,this)}}tG.prototype._fillFunc=function(t){t.fill()},tG.prototype._strokeFunc=function(t){t.stroke()},tG.prototype._fillFuncHit=function(t){t.fill()},tG.prototype._strokeFuncHit=function(t){t.stroke()},tG.prototype._centroid=!1,tG.prototype.nodeType="Shape",c(tG),tG.prototype.eventListeners={},tG.prototype.on.call(tG.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",function(){this._clearCache(tD)}),tG.prototype.on.call(tG.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",function(){this._clearCache(tR)}),tG.prototype.on.call(tG.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",function(){this._clearCache(tM)}),tG.prototype.on.call(tG.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",function(){this._clearCache(tN)}),tG.prototype.on.call(tG.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",function(){this._clearCache(tj)}),E.addGetterSetter(tG,"stroke",void 0,A()),E.addGetterSetter(tG,"strokeWidth",2,S()),E.addGetterSetter(tG,"fillAfterStrokeEnabled",!1),E.addGetterSetter(tG,"hitStrokeWidth","auto",w()),E.addGetterSetter(tG,"strokeHitEnabled",!0,k()),E.addGetterSetter(tG,"perfectDrawEnabled",!0,k()),E.addGetterSetter(tG,"shadowForStrokeEnabled",!0,k()),E.addGetterSetter(tG,"lineJoin"),E.addGetterSetter(tG,"lineCap"),E.addGetterSetter(tG,"sceneFunc"),E.addGetterSetter(tG,"hitFunc"),E.addGetterSetter(tG,"dash"),E.addGetterSetter(tG,"dashOffset",0,S()),E.addGetterSetter(tG,"shadowColor",void 0,T()),E.addGetterSetter(tG,"shadowBlur",0,S()),E.addGetterSetter(tG,"shadowOpacity",1,S()),E.addComponentsGetterSetter(tG,"shadowOffset",["x","y"]),E.addGetterSetter(tG,"shadowOffsetX",0,S()),E.addGetterSetter(tG,"shadowOffsetY",0,S()),E.addGetterSetter(tG,"fillPatternImage"),E.addGetterSetter(tG,"fill",void 0,A()),E.addGetterSetter(tG,"fillPatternX",0,S()),E.addGetterSetter(tG,"fillPatternY",0,S()),E.addGetterSetter(tG,"fillLinearGradientColorStops"),E.addGetterSetter(tG,"strokeLinearGradientColorStops"),E.addGetterSetter(tG,"fillRadialGradientStartRadius",0),E.addGetterSetter(tG,"fillRadialGradientEndRadius",0),E.addGetterSetter(tG,"fillRadialGradientColorStops"),E.addGetterSetter(tG,"fillPatternRepeat","repeat"),E.addGetterSetter(tG,"fillEnabled",!0),E.addGetterSetter(tG,"strokeEnabled",!0),E.addGetterSetter(tG,"shadowEnabled",!0),E.addGetterSetter(tG,"dashEnabled",!0),E.addGetterSetter(tG,"strokeScaleEnabled",!0),E.addGetterSetter(tG,"fillPriority","color"),E.addComponentsGetterSetter(tG,"fillPatternOffset",["x","y"]),E.addGetterSetter(tG,"fillPatternOffsetX",0,S()),E.addGetterSetter(tG,"fillPatternOffsetY",0,S()),E.addComponentsGetterSetter(tG,"fillPatternScale",["x","y"]),E.addGetterSetter(tG,"fillPatternScaleX",1,S()),E.addGetterSetter(tG,"fillPatternScaleY",1,S()),E.addComponentsGetterSetter(tG,"fillLinearGradientStartPoint",["x","y"]),E.addComponentsGetterSetter(tG,"strokeLinearGradientStartPoint",["x","y"]),E.addGetterSetter(tG,"fillLinearGradientStartPointX",0),E.addGetterSetter(tG,"strokeLinearGradientStartPointX",0),E.addGetterSetter(tG,"fillLinearGradientStartPointY",0),E.addGetterSetter(tG,"strokeLinearGradientStartPointY",0),E.addComponentsGetterSetter(tG,"fillLinearGradientEndPoint",["x","y"]),E.addComponentsGetterSetter(tG,"strokeLinearGradientEndPoint",["x","y"]),E.addGetterSetter(tG,"fillLinearGradientEndPointX",0),E.addGetterSetter(tG,"strokeLinearGradientEndPointX",0),E.addGetterSetter(tG,"fillLinearGradientEndPointY",0),E.addGetterSetter(tG,"strokeLinearGradientEndPointY",0),E.addComponentsGetterSetter(tG,"fillRadialGradientStartPoint",["x","y"]),E.addGetterSetter(tG,"fillRadialGradientStartPointX",0),E.addGetterSetter(tG,"fillRadialGradientStartPointY",0),E.addComponentsGetterSetter(tG,"fillRadialGradientEndPoint",["x","y"]),E.addGetterSetter(tG,"fillRadialGradientEndPointX",0),E.addGetterSetter(tG,"fillRadialGradientEndPointY",0),E.addGetterSetter(tG,"fillPatternRotation",0),E.backCompat(tG,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});var t$=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],tH=t$.length;class tz extends tt{constructor(t){super(t),this.canvas=new R,this.hitCanvas=new M({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}
12createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),t<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[t+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Z.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Z.prototype.moveUp.call(this))return!1;var t=this.getStage();return!!t&&!!t.content&&(t.content.removeChild(this.getNativeCanvasElement()),this.index<t.children.length-1?t.content.insertBefore(this.getNativeCanvasElement(),t.children[this.index+1].getCanvas()._canvas):t.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Z.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Z.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return Z.prototype.remove.call(this),t&&t.parentNode&&b._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:e}){return this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e),this._setSmoothEnabled(),this}_validateAdd(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&b.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return(t=t||{}).width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.x(),t.y=void 0!==t.y?t.y:this.y(),Z.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){b.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){b.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,b.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var e=1,n=!1;;){for(let r=0;r<tH;r++){let i=t$[r],a=this._getIntersection({x:t.x+i.x*e,y:t.y+i.y*e}),o=a.shape;if(o)return o;if(n=!!a.antialiased,!a.antialiased)break}if(!n)return null;e+=1}}_getIntersection(t){let e=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(t.x*e),Math.round(t.y*e),1,1).data,r=n[3];if(255===r){let t=tB["#"+b._rgbToHex(n[0],n[1],n[2])];return t?{shape:t}:{antialiased:!0}}return r>0?{antialiased:!0}:{}}drawScene(t,e){var n=this.getLayer(),r=t||n&&n.getCanvas();return this._fire("beforeDraw",{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),tt.prototype.drawScene.call(this,r,e),this._fire("draw",{node:this}),this}drawHit(t,e){var n=this.getLayer(),r=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),tt.prototype.drawHit.call(this,r,e),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){b.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return b.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(this.parent&&this.parent.content){var t=this.parent;this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}}tz.prototype.nodeType="Layer",c(tz),E.addGetterSetter(tz,"imageSmoothingEnabled",!0),E.addGetterSetter(tz,"clearBeforeDraw",!0),E.addGetterSetter(tz,"hitGraphEnabled",!0,k());class tU extends tz{constructor(t){super(t),this.listening(!1),b.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}tU.prototype.nodeType="FastLayer",c(tU);class tW extends tt{_validateAdd(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&b.throw("You may only add groups and shapes to groups.")}}tW.prototype.nodeType="Group",c(tW);var tV=function(){return s.performance&&s.performance.now?function(){return s.performance.now()}:function(){return new Date().getTime()}}();class tY{constructor(t,e){this.id=tY.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:tV(),frameRate:0},this.func=t,this.setLayers(e)}setLayers(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this}getLayers(){return this.layers}addLayer(t){var e,n=this.layers,r=n.length;for(e=0;e<r;e++)if(n[e]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){var t,e=tY.animations,n=e.length;for(t=0;t<n;t++)if(e[t].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=tV(),tY._addAnimation(this),this}stop(){return tY._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}
12static _removeAnimation(t){var e,n=t.id,r=this.animations,i=r.length;for(e=0;e<i;e++)if(r[e].id===n){this.animations.splice(e,1);break}}static _runFrames(){var t,e,n,r,i,a,o,s,l={},c=this.animations;for(r=0;r<c.length;r++)if(e=(t=c[r]).layers,n=t.func,t._updateFrameObject(tV()),a=e.length,!n||!1!==n.call(t,t.frame))for(i=0;i<a;i++)void 0!==(o=e[i])._id&&(l[o._id]=o);for(s in l)l.hasOwnProperty(s)&&l[s].batchDraw()}static _animationLoop(){tY.animations.length?(tY._runFrames(),b.requestAnimFrame(tY._animationLoop)):tY.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,b.requestAnimFrame(this._animationLoop))}}tY.animations=[],tY.animIdCounter=0,tY.animRunning=!1;var tX={node:1,duration:1,easing:1,onFinish:1,yoyo:1},tK=0,tq=["fill","stroke","shadowColor"];class tJ{constructor(t,e,n,r,i,a,o){this.prop=t,this.propFunc=e,this.begin=r,this._pos=r,this.duration=a,this._change=0,this.prevPos=0,this.yoyo=o,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()}fire(t){var e=this[t];e&&e()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var t=this.getTimer()-this._startTime;2===this.state?this.setTime(t):3===this.state&&this.setTime(this.duration-t)}pause(){this.state=1,this.fire("onPause")}getTimer(){return new Date().getTime()}}class tZ{constructor(t){var e,n,r=this,i=t.node,a=i._id,o=t.easing||tQ.Linear,s=!!t.yoyo;e=void 0===t.duration?.3:0===t.duration?.001:t.duration,this.node=i,this._id=tK++;var c=i.getLayer()||(i instanceof l.Stage?i.getLayers():null);for(n in c||b.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new tY(function(){r.tween.onEnterFrame()},c),this.tween=new tJ(n,function(t){r._tweenFunc(t)},o,0,1,1e3*e,s),this._addListeners(),tZ.attrs[a]||(tZ.attrs[a]={}),tZ.attrs[a][this._id]||(tZ.attrs[a][this._id]={}),tZ.tweens[a]||(tZ.tweens[a]={}),t)void 0===tX[n]&&this._addAttr(n,t[n]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,e){var n,r,i,a,o,s,l,c,u=this.node,d=u._id;if((i=tZ.tweens[d][t])&&delete tZ.attrs[d][i][t],n=u.getAttr(t),b._isArray(e)){if(r=[],o=Math.max(e.length,n.length),"points"===t&&e.length!==n.length&&(e.length>n.length?(l=n,n=b._prepareArrayForTween(n,e,u.closed())):(s=e,e=b._prepareArrayForTween(e,n,u.closed()))),0===t.indexOf("fill"))for(a=0;a<o;a++)if(a%2==0)r.push(e[a]-n[a]);else{var h=b.colorToRGBA(n[a]);c=b.colorToRGBA(e[a]),n[a]=h,r.push({r:c.r-h.r,g:c.g-h.g,b:c.b-h.b,a:c.a-h.a})}else for(a=0;a<o;a++)r.push(e[a]-n[a])}else -1!==tq.indexOf(t)?(n=b.colorToRGBA(n),r={r:(c=b.colorToRGBA(e)).r-n.r,g:c.g-n.g,b:c.b-n.b,a:c.a-n.a}):r=e-n;tZ.attrs[d][this._id][t]={start:n,diff:r,end:e,trueEnd:s,trueStart:l},tZ.tweens[d][t]=this._id}_tweenFunc(t){var e,n,r,i,a,o,s,l,c=this.node,u=tZ.attrs[c._id][this._id];for(e in u){if(r=(n=u[e]).start,i=n.diff,l=n.end,b._isArray(r)){if(a=[],s=Math.max(r.length,l.length),0===e.indexOf("fill"))for(o=0;o<s;o++)o%2==0?a.push((r[o]||0)+i[o]*t):a.push("rgba("+Math.round(r[o].r+i[o].r*t)+","+Math.round(r[o].g+i[o].g*t)+","+Math.round(r[o].b+i[o].b*t)+","+(r[o].a+i[o].a*t)+")");else for(o=0;o<s;o++)a.push((r[o]||0)+i[o]*t)}else a=-1!==tq.indexOf(e)?"rgba("+Math.round(r.r+i.r*t)+","+Math.round(r.g+i.g*t)+","+Math.round(r.b+i.b*t)+","+(r.a+i.a*t)+")":r+i*t;c.setAttr(e,a)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,e=tZ.attrs[t._id][this._id];e.points&&e.points.trueEnd&&t.setAttr("points",e.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,e=tZ.attrs[t._id][this._id];e.points&&e.points.trueStart&&t.points(e.points.trueStart),this.onReset&&this.onReset()}
12,this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(1e3*t),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t,e=this.node._id,n=this._id,r=tZ.tweens[e];for(t in this.pause(),r)delete tZ.tweens[e][t];delete tZ.attrs[e][n]}}tZ.attrs={},tZ.tweens={},Z.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new tZ(t).play()};let tQ={BackEaseIn:(t,e,n,r)=>n*(t/=r)*t*(2.70158*t-1.70158)+e,BackEaseOut:(t,e,n,r)=>n*((t=t/r-1)*t*(2.70158*t+1.70158)+1)+e,BackEaseInOut(t,e,n,r){var i=1.70158;return(t/=r/2)<1?n/2*(t*t*(((i*=1.525)+1)*t-i))+e:n/2*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)+e},ElasticEaseIn(t,e,n,r,i,a){var o=0;return 0===t?e:(t/=r)===1?e+n:(a||(a=.3*r),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a))+e)},ElasticEaseOut(t,e,n,r,i,a){var o=0;return 0===t?e:(t/=r)===1?e+n:(a||(a=.3*r),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*t)*Math.sin((t*r-o)*(2*Math.PI)/a)+n+e)},ElasticEaseInOut(t,e,n,r,i,a){var o=0;return 0===t?e:(t/=r/2)===2?e+n:(a||(a=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),t<1)?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a))+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a)*.5+n+e},BounceEaseOut:(t,e,n,r)=>(t/=r)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e,BounceEaseIn:(t,e,n,r)=>n-tQ.BounceEaseOut(r-t,0,n,r)+e,BounceEaseInOut:(t,e,n,r)=>t<r/2?.5*tQ.BounceEaseIn(2*t,0,n,r)+e:.5*tQ.BounceEaseOut(2*t-r,0,n,r)+.5*n+e,EaseIn:(t,e,n,r)=>n*(t/=r)*t+e,EaseOut:(t,e,n,r)=>-n*(t/=r)*(t-2)+e,EaseInOut:(t,e,n,r)=>(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e,StrongEaseIn:(t,e,n,r)=>n*(t/=r)*t*t*t*t+e,StrongEaseOut:(t,e,n,r)=>n*((t=t/r-1)*t*t*t*t+1)+e,StrongEaseInOut:(t,e,n,r)=>(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e,Linear:(t,e,n,r)=>n*t/r+e},t0=b._assign(l,{Util:b,Transform:u,Node:Z,Container:tt,Stage:tI,stages:tL,Layer:tz,FastLayer:tU,Group:tW,DD:N,Shape:tG,shapes:tB,Animation:tY,Tween:tZ,Easings:tQ,Context:P,Canvas:D});class t1 extends tG{_sceneFunc(t){var e=l.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,n),t.arc(0,0,this.innerRadius(),e,0,!n),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){let t=this.innerRadius(),e=this.outerRadius(),n=this.clockwise(),r=l.getAngle(n?360-this.angle():this.angle()),i=Math.cos(Math.min(r,Math.PI)),a=Math.sin(Math.min(Math.max(Math.PI,r),3*Math.PI/2)),o=Math.sin(Math.min(r,Math.PI/2)),s=i*(i>0?t:e),c=a*(a>0?t:e),u=o*(o>0?e:t);return{x:s,y:n?-1*u:c,width:1*e-s,height:u-c}}}function t2(t,e,n,r,i,a,o){var s=Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2)),l=Math.sqrt(Math.pow(i-n,2)+Math.pow(a-r,2)),c=o*s/(s+l),u=o*l/(s+l);return[n-c*(i-t),r-c*(a-e),n+u*(i-t),r+u*(a-e)]}function t5(t,e){var n,r,i=t.length,a=[];for(n=2;n<i-2;n+=2)isNaN((r=t2(t[n-2],t[n-1],t[n],t[n+1],t[n+2],t[n+3],e))[0])||(a.push(r[0]),a.push(r[1]),a.push(t[n]),a.push(t[n+1]),a.push(r[2]),a.push(r[3]));return a}t1.prototype._centroid=!0,t1.prototype.className="Arc",t1.prototype._attrsAffectingSize=["innerRadius","outerRadius"],c(t1),E.addGetterSetter(t1,"innerRadius",0,S()),E.addGetterSetter(t1,"outerRadius",0,S()),E.addGetterSetter(t1,"angle",0,S()),E.addGetterSetter(t1,"clockwise",!1,k());class t3 extends tG{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var e,n,r,i=this.points(),a=i.length,o=this.tension(),s=this.closed(),l=this.bezier();if(a){if(t.beginPath(),t.moveTo(i[0],i[1]),0!==o&&a>4){for(n=(e=this.getTensionPoints()).length,r=s?0:4,s||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);r<n-2;)t.bezierCurveTo(e[r++],e[r++],e[r++],e[r++],e[r++],e[r++]);s||t.quadraticCurveTo(e[n-2],e[n-1],i[a-2],i[a-1])}else if(l)for(r=2;r<a;)t.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++]);else for(r=2;r<a;r+=2)t.lineTo(i[r],i[r+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():t5(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),e=t.length,n=this.tension(),r=t2(t[e-2],t[e-1],t[0],t[1],t[2],t[3],n),i=t2(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],n),a=t5(t,n);
12return[r[2],r[3]].concat(a).concat([i[0],i[1],t[e-2],t[e-1],i[2],i[3],r[0],r[1],t[0],t[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t,e,n=this.points();if(n.length<4)return{x:n[0]||0,y:n[1]||0,width:0,height:0};for(var r=(n=0!==this.tension()?[n[0],n[1],...this._getTensionPoints(),n[n.length-2],n[n.length-1]]:this.points())[0],i=n[0],a=n[1],o=n[1],s=0;s<n.length/2;s++)t=n[2*s],e=n[2*s+1],r=Math.min(r,t),i=Math.max(i,t),a=Math.min(a,e),o=Math.max(o,e);return{x:r,y:a,width:i-r,height:o-a}}}t3.prototype.className="Line",t3.prototype._attrsAffectingSize=["points","bezier","tension"],c(t3),E.addGetterSetter(t3,"closed",!1),E.addGetterSetter(t3,"bezier",!1),E.addGetterSetter(t3,"tension",0,S()),E.addGetterSetter(t3,"points",[],function(){if(l.isUnminified)return function(t,e){return b._isArray(t)?t.forEach(function(t){b._isNumber(t)||b.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")}):b.warn(y(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.'),t}}());class t4 extends tG{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this.dataArray=t4.parsePathData(this.data()),this.pathLength=0;for(var e=0;e<this.dataArray.length;++e)this.pathLength+=this.dataArray[e].pathLength;this.on("dataChange.konva",function(){this.dataArray=t4.parsePathData(this.data()),this.pathLength=0;for(var t=0;t<this.dataArray.length;++t)this.pathLength+=this.dataArray[t].pathLength})}_sceneFunc(t){var e=this.dataArray;t.beginPath();for(var n=!1,r=0;r<e.length;r++){var i=e[r].command,a=e[r].points;switch(i){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var o=a[0],s=a[1],l=a[2],c=a[3],u=a[4],d=a[5],h=a[6],f=a[7],g=l>c?l:c,p=l>c?1:l/c,v=l>c?c/l:1;t.translate(o,s),t.rotate(h),t.scale(p,v),t.arc(0,0,g,u,u+d,1-f),t.scale(1/p,1/v),t.rotate(-h),t.translate(-o,-s);break;case"z":n=!0,t.closePath()}}n||this.hasFill()?t.fillStrokeShape(this):t.strokeShape(this)}getSelfRect(){var t,e,n=[];this.dataArray.forEach(function(t){if("A"===t.command){var e=t.points[4],r=t.points[5],i=t.points[4]+r,a=Math.PI/180;if(Math.abs(e-i)<a&&(a=Math.abs(e-i)),r<0)for(let r=e-a;r>i;r-=a){let e=t4.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],r,0);n.push(e.x,e.y)}else for(let r=e+a;r<i;r+=a){let e=t4.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],r,0);n.push(e.x,e.y)}}else if("C"===t.command)for(let e=0;e<=1;e+=.01){let r=t4.getPointOnCubicBezier(e,t.start.x,t.start.y,t.points[0],t.points[1],t.points[2],t.points[3],t.points[4],t.points[5]);n.push(r.x,r.y)}else n=n.concat(t.points)});for(var r=n[0],i=n[0],a=n[1],o=n[1],s=0;s<n.length/2;s++)t=n[2*s],e=n[2*s+1],isNaN(t)||(r=Math.min(r,t),i=Math.max(i,t)),isNaN(e)||(a=Math.min(a,e),o=Math.max(o,e));return{x:r,y:a,width:i-r,height:o-a}}getLength(){return this.pathLength}getPointAtLength(t){var e,n=0,r=this.dataArray.length;if(!r)return null;for(;n<r&&t>this.dataArray[n].pathLength;)t-=this.dataArray[n].pathLength,++n;if(n===r)return{x:(e=this.dataArray[n-1].points.slice(-2))[0],y:e[1]};if(t<.01)return{x:(e=this.dataArray[n].points.slice(0,2))[0],y:e[1]};var i=this.dataArray[n],a=i.points;switch(i.command){case"L":return t4.getPointOnLine(t,i.start.x,i.start.y,a[0],a[1]);case"C":return t4.getPointOnCubicBezier(t/i.pathLength,i.start.x,i.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return t4.getPointOnQuadraticBezier(t/i.pathLength,i.start.x,i.start.y,a[0],a[1],a[2],a[3]);case"A":var o=a[0],s=a[1],l=a[2],c=a[3],u=a[4],d=a[5],h=a[6];return u+=d*t/i.pathLength,t4.getPointOnEllipticalArc(o,s,l,c,u,h)}return null}static getLineLength(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}static getPointOnLine(t,e,n,r,i,a,o){void 0===a&&(a=e),void 0===o&&(o=n);var s=(i-n)/(r-e+1e-8),l=Math.sqrt(t*t/(1+s*s));r<e&&(l*=-1);var c=s*l;if(r===e)u={x:a,y:o+c};else if((o-n)/(a-e+1e-8)===s)u={x:a+l,y:o+c};else{var u,d,h,f=this.getLineLength(e,n,r,i),g=(a-e)*(r-e)+(o-n)*(i-n);g/=f*f,d=e+g*(r-e),h=n+g*(i-n);var p=this.getLineLength(a,o,d,h),v=Math.sqrt(t*t-p*p);l=Math.sqrt(v*v/(1+s*s)),r<e&&(l*=-1),c=s*l,u={x:d+l,y:h+c}}return u}static getPointOnCubicBezier(t,e,n,r,i,a,o,s,l){function c(t){return 3*t*t*(1-t)}function u(t){return 3*t*(1-t)*(1-t)}function d(t){return(1-t)*(1-t)*(1-t)}return{x:t*t*t*s+a*c(t)+r*u(t)+e*d(t),y:t*t*t*l+o*c(t)+i*u(t)+n*d(t)}}static getPointOnQuadraticBezier(t,e,n,r,i,a,o){return{x:t*t*a+2*t*(1-t)*r+(1-t)*(1-t)*e,y:t*t*o+2*t*(1-t)*i+(1-t)*(1-t)*n}}static getPointOnEllipticalArc(t,e,n,r,i,a){var o=Math.cos(a),s=Math.sin(a),l={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:t+(l.x*o-l.y*s),y:e+(l.x*s+l.y*o)}}static parsePathData(t){if(!t)return[];var e=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(RegExp(" ","g"),",");for(var r=0;r<n.length;r++)e=e.replace(RegExp(n[r],"g"),"|"+n[r]);var i=e.split("|"),a=[],o=[],s=0,l=0,c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(r=1;r<i.length;r++){var u=i[r],d=u.charAt(0);for(u=u.slice(1),o.length=0;v=c.exec(u);)o.push(v[0]);for(var h=[],f=0,g=o.length;f<g;
12f++){if("00"===o[f]){h.push(0,0);continue}var p=parseFloat(o[f]);isNaN(p)?h.push(0):h.push(p)}for(;h.length>0&&!isNaN(h[0]);){var v,m,b,y,C,S,x,w,T,A,k,E=null,O=[],P=s,L=l;switch(d){case"l":s+=h.shift(),l+=h.shift(),E="L",O.push(s,l);break;case"L":s=h.shift(),l=h.shift(),O.push(s,l);break;case"m":var I=h.shift(),D=h.shift();if(s+=I,l+=D,E="M",a.length>2&&"z"===a[a.length-1].command){for(var R=a.length-2;R>=0;R--)if("M"===a[R].command){s=a[R].points[0]+I,l=a[R].points[1]+D;break}}O.push(s,l),d="l";break;case"M":s=h.shift(),l=h.shift(),E="M",O.push(s,l),d="L";break;case"h":s+=h.shift(),E="L",O.push(s,l);break;case"H":s=h.shift(),E="L",O.push(s,l);break;case"v":l+=h.shift(),E="L",O.push(s,l);break;case"V":l=h.shift(),E="L",O.push(s,l);break;case"C":O.push(h.shift(),h.shift(),h.shift(),h.shift()),s=h.shift(),l=h.shift(),O.push(s,l);break;case"c":O.push(s+h.shift(),l+h.shift(),s+h.shift(),l+h.shift()),s+=h.shift(),l+=h.shift(),E="C",O.push(s,l);break;case"S":b=s,y=l,"C"===(m=a[a.length-1]).command&&(b=s+(s-m.points[2]),y=l+(l-m.points[3])),O.push(b,y,h.shift(),h.shift()),s=h.shift(),l=h.shift(),E="C",O.push(s,l);break;case"s":b=s,y=l,"C"===(m=a[a.length-1]).command&&(b=s+(s-m.points[2]),y=l+(l-m.points[3])),O.push(b,y,s+h.shift(),l+h.shift()),s+=h.shift(),l+=h.shift(),E="C",O.push(s,l);break;case"Q":O.push(h.shift(),h.shift()),s=h.shift(),l=h.shift(),O.push(s,l);break;case"q":O.push(s+h.shift(),l+h.shift()),s+=h.shift(),l+=h.shift(),E="Q",O.push(s,l);break;case"T":b=s,y=l,"Q"===(m=a[a.length-1]).command&&(b=s+(s-m.points[0]),y=l+(l-m.points[1])),s=h.shift(),l=h.shift(),E="Q",O.push(b,y,s,l);break;case"t":b=s,y=l,"Q"===(m=a[a.length-1]).command&&(b=s+(s-m.points[0]),y=l+(l-m.points[1])),s+=h.shift(),l+=h.shift(),E="Q",O.push(b,y,s,l);break;case"A":C=h.shift(),S=h.shift(),x=h.shift(),w=h.shift(),T=h.shift(),A=s,k=l,s=h.shift(),l=h.shift(),E="A",O=this.convertEndpointToCenterParameterization(A,k,s,l,w,T,C,S,x);break;case"a":C=h.shift(),S=h.shift(),x=h.shift(),w=h.shift(),T=h.shift(),A=s,k=l,s+=h.shift(),l+=h.shift(),E="A",O=this.convertEndpointToCenterParameterization(A,k,s,l,w,T,C,S,x)}a.push({command:E||d,points:O,start:{x:P,y:L},pathLength:this.calcLength(P,L,E||d,O)})}("z"===d||"Z"===d)&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,e,n,r){var i,a,o,s;switch(n){case"L":return t4.getLineLength(t,e,r[0],r[1]);case"C":for(s=.01,i=0,a=t4.getPointOnCubicBezier(0,t,e,r[0],r[1],r[2],r[3],r[4],r[5]);s<=1;s+=.01)o=t4.getPointOnCubicBezier(s,t,e,r[0],r[1],r[2],r[3],r[4],r[5]),i+=t4.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case"Q":for(s=.01,i=0,a=t4.getPointOnQuadraticBezier(0,t,e,r[0],r[1],r[2],r[3]);s<=1;s+=.01)o=t4.getPointOnQuadraticBezier(s,t,e,r[0],r[1],r[2],r[3]),i+=t4.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case"A":i=0;var l=r[4],c=r[5],u=r[4]+c,d=Math.PI/180;if(Math.abs(l-u)<d&&(d=Math.abs(l-u)),a=t4.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),c<0)for(s=l-d;s>u;s-=d)o=t4.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=t4.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=l+d;s<u;s+=d)o=t4.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=t4.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=t4.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=t4.getLineLength(a.x,a.y,o.x,o.y)}return 0}static convertEndpointToCenterParameterization(t,e,n,r,i,a,o,s,l){var c=l*(Math.PI/180),u=Math.cos(c)*(t-n)/2+Math.sin(c)*(e-r)/2,d=-1*Math.sin(c)*(t-n)/2+Math.cos(c)*(e-r)/2,h=u*u/(o*o)+d*d/(s*s);h>1&&(o*=Math.sqrt(h),s*=Math.sqrt(h));var f=Math.sqrt((o*o*(s*s)-o*o*(d*d)-s*s*(u*u))/(o*o*(d*d)+s*s*(u*u)));i===a&&(f*=-1),isNaN(f)&&(f=0);var g=f*o*d/s,p=-(f*s)*u/o,v=(t+n)/2+Math.cos(c)*g-Math.sin(c)*p,m=(e+r)/2+Math.sin(c)*g+Math.cos(c)*p,b=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},y=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(b(t)*b(e))},C=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(y(t,e))},S=C([1,0],[(u-g)/o,(d-p)/s]),x=[(u-g)/o,(d-p)/s],w=[(-1*u-g)/o,(-1*d-p)/s],T=C(x,w);return -1>=y(x,w)&&(T=Math.PI),y(x,w)>=1&&(T=0),0===a&&T>0&&(T-=2*Math.PI),1===a&&T<0&&(T+=2*Math.PI),[v,m,o,s,S,T,c,a]}}t4.prototype.className="Path",t4.prototype._attrsAffectingSize=["data"],c(t4),E.addGetterSetter(t4,"data");class t8 extends t3{_sceneFunc(t){super._sceneFunc(t);var e,n,r=2*Math.PI,i=this.points(),a=i,o=0!==this.tension()&&i.length>4;o&&(a=this.getTensionPoints());var s=this.pointerLength(),l=i.length;if(o){let t=[a[a.length-4],a[a.length-3],a[a.length-2],a[a.length-1],i[l-2],i[l-1]],r=t4.calcLength(a[a.length-4],a[a.length-3],"C",t),o=t4.getPointOnQuadraticBezier(Math.min(1,1-s/r),t[0],t[1],t[2],t[3],t[4],t[5]);e=i[l-2]-o.x,n=i[l-1]-o.y}else e=i[l-2]-i[l-4],n=i[l-1]-i[l-3];var c=(Math.atan2(n,e)+r)%r,u=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(i[l-2],i[l-1]),t.rotate(c),t.moveTo(0,0),t.lineTo(-s,u/2),t.lineTo(-s,-u/2),t.closePath(),t.restore(
12),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(i[0],i[1]),o?(e=(a[0]+a[2])/2-i[0],n=(a[1]+a[3])/2-i[1]):(e=i[2]-i[0],n=i[3]-i[1]),t.rotate((Math.atan2(-n,-e)+r)%r),t.moveTo(0,0),t.lineTo(-s,u/2),t.lineTo(-s,-u/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var e=this.dashEnabled();e&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),e&&(this.attrs.dashEnabled=!0)}getSelfRect(){let t=super.getSelfRect(),e=this.pointerWidth()/2;return{x:t.x-e,y:t.y-e,width:t.width+2*e,height:t.height+2*e}}}t8.prototype.className="Arrow",c(t8),E.addGetterSetter(t8,"pointerLength",10,S()),E.addGetterSetter(t8,"pointerWidth",10,S()),E.addGetterSetter(t8,"pointerAtBeginning",!1),E.addGetterSetter(t8,"pointerAtEnding",!0);class t6 extends tG{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}t6.prototype._centroid=!0,t6.prototype.className="Circle",t6.prototype._attrsAffectingSize=["radius"],c(t6),E.addGetterSetter(t6,"radius",0,S());class t9 extends tG{_sceneFunc(t){var e=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),e!==n&&t.scale(1,n/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radiusX()}getHeight(){return 2*this.radiusY()}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}t9.prototype.className="Ellipse",t9.prototype._centroid=!0,t9.prototype._attrsAffectingSize=["radiusX","radiusY"],c(t9),E.addComponentsGetterSetter(t9,"radius",["x","y"]),E.addGetterSetter(t9,"radiusX",0,S()),E.addGetterSetter(t9,"radiusY",0,S());class t7 extends tG{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){let t=this.image();t&&t.complete||t&&4===t.readyState||!t||!t.addEventListener||t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){let e;let n=this.getWidth(),r=this.getHeight(),i=this.attrs.image;if(i){let t=this.attrs.cropWidth,a=this.attrs.cropHeight;e=t&&a?[i,this.cropX(),this.cropY(),t,a,0,0,n,r]:[i,0,0,n,r]}(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)),i&&t.drawImage.apply(t,e)}_hitFunc(t){var e=this.width(),n=this.height();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,e;return(t=this.attrs.width)!==null&&void 0!==t?t:(e=this.image())===null||void 0===e?void 0:e.width}getHeight(){var t,e;return(t=this.attrs.height)!==null&&void 0!==t?t:(e=this.image())===null||void 0===e?void 0:e.height}static fromURL(t,e,n=null){var r=b.createImageElement();r.onload=function(){e(new t7({image:r}))},r.onerror=n,r.crossOrigin="Anonymous",r.src=t}}t7.prototype.className="Image",c(t7),E.addGetterSetter(t7,"image"),E.addComponentsGetterSetter(t7,"crop",["x","y","width","height"]),E.addGetterSetter(t7,"cropX",0,S()),E.addGetterSetter(t7,"cropY",0,S()),E.addGetterSetter(t7,"cropWidth",0,S()),E.addGetterSetter(t7,"cropHeight",0,S());var et=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height"],ee="right",en="down",er="left",ei=et.length;class ea extends tW{constructor(t){super(t),this.on("add.konva",function(t){this._addListeners(t.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){var e,n=this,r=function(){n._sync()};for(e=0;e<ei;e++)t.on(et[e]+"Change.konva",r)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t,e,n,r,i,a,o,s=this.getText(),l=this.getTag();if(s&&l){switch(t=s.width(),e=s.height(),n=l.pointerDirection(),r=l.pointerWidth(),o=l.pointerHeight(),i=0,a=0,n){case"up":i=t/2,a=-1*o;break;case ee:i=t+r,a=e/2;break;case en:i=t/2,a=e+o;break;case er:i=-1*r,a=e/2}l.setAttrs({x:-1*i,y:-1*a,width:t,height:e}),s.setAttrs({x:-1*i,y:-1*a})}}}ea.prototype.className="Label",c(ea);class eo extends tG{_sceneFunc(t){var e=this.width(),n=this.height(),r=this.pointerDirection(),i=this.pointerWidth(),a=this.pointerHeight(),o=this.cornerRadius();let s=0,l=0,c=0,u=0;"number"==typeof o?s=l=c=u=Math.min(o,e/2,n/2):(s=Math.min(o[0]||0,e/2,n/2),l=Math.min(o[1]||0,e/2,n/2),u=Math.min(o[2]||0,e/2,n/2),c=Math.min(o[3]||0,e/2,n/2)),t.beginPath(),t.moveTo(s,0),"up"===r&&(t.lineTo((e-i)/2,0),t.lineTo(e/2,-1*a),t.lineTo((e+i)/2,0)
12),t.lineTo(e-l,0),t.arc(e-l,l,l,3*Math.PI/2,0,!1),r===ee&&(t.lineTo(e,(n-a)/2),t.lineTo(e+i,n/2),t.lineTo(e,(n+a)/2)),t.lineTo(e,n-u),t.arc(e-u,n-u,u,0,Math.PI/2,!1),r===en&&(t.lineTo((e+i)/2,n),t.lineTo(e/2,n+a),t.lineTo((e-i)/2,n)),t.lineTo(c,n),t.arc(c,n-c,c,Math.PI/2,Math.PI,!1),r===er&&(t.lineTo(0,(n+a)/2),t.lineTo(-1*i,n/2),t.lineTo(0,(n-a)/2)),t.lineTo(0,s),t.arc(s,s,s,Math.PI,3*Math.PI/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,e=0,n=this.pointerWidth(),r=this.pointerHeight(),i=this.pointerDirection(),a=this.width(),o=this.height();return"up"===i?(e-=r,o+=r):i===en?o+=r:i===er?(t-=1.5*n,a+=n):i===ee&&(a+=1.5*n),{x:t,y:e,width:a,height:o}}}eo.prototype.className="Tag",c(eo),E.addGetterSetter(eo,"pointerDirection","none"),E.addGetterSetter(eo,"pointerWidth",0,S()),E.addGetterSetter(eo,"pointerHeight",0,S()),E.addGetterSetter(eo,"cornerRadius",0,x(4));class es extends tG{_sceneFunc(t){var e=this.cornerRadius(),n=this.width(),r=this.height();if(t.beginPath(),e){let i=0,a=0,o=0,s=0;"number"==typeof e?i=a=o=s=Math.min(e,n/2,r/2):(i=Math.min(e[0]||0,n/2,r/2),a=Math.min(e[1]||0,n/2,r/2),s=Math.min(e[2]||0,n/2,r/2),o=Math.min(e[3]||0,n/2,r/2)),t.moveTo(i,0),t.lineTo(n-a,0),t.arc(n-a,a,a,3*Math.PI/2,0,!1),t.lineTo(n,r-s),t.arc(n-s,r-s,s,0,Math.PI/2,!1),t.lineTo(o,r),t.arc(o,r-o,o,Math.PI/2,Math.PI,!1),t.lineTo(0,i),t.arc(i,i,i,Math.PI,3*Math.PI/2,!1)}else t.rect(0,0,n,r);t.closePath(),t.fillStrokeShape(this)}}es.prototype.className="Rect",c(es),E.addGetterSetter(es,"cornerRadius",0,x(4));class el extends tG{_sceneFunc(t){let e=this._getPoints();t.beginPath(),t.moveTo(e[0].x,e[0].y);for(var n=1;n<e.length;n++)t.lineTo(e[n].x,e[n].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){let t=this.attrs.sides,e=this.attrs.radius||0,n=[];for(var r=0;r<t;r++)n.push({x:e*Math.sin(2*r*Math.PI/t),y:-1*e*Math.cos(2*r*Math.PI/t)});return n}getSelfRect(){let t=this._getPoints();var e=t[0].x,n=t[0].y,r=t[0].x,i=t[0].y;return t.forEach(t=>{e=Math.min(e,t.x),n=Math.max(n,t.x),r=Math.min(r,t.y),i=Math.max(i,t.y)}),{x:e,y:r,width:n-e,height:i-r}}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}el.prototype.className="RegularPolygon",el.prototype._centroid=!0,el.prototype._attrsAffectingSize=["radius"],c(el),E.addGetterSetter(el,"radius",0,S()),E.addGetterSetter(el,"sides",0,S());var ec=2*Math.PI;class eu extends tG{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,ec,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),ec,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}eu.prototype.className="Ring",eu.prototype._centroid=!0,eu.prototype._attrsAffectingSize=["innerRadius","outerRadius"],c(eu),E.addGetterSetter(eu,"innerRadius",0,S()),E.addGetterSetter(eu,"outerRadius",0,S());class ed extends tG{constructor(t){super(t),this._updated=!0,this.anim=new tY(()=>{var t=this._updated;return this._updated=!1,t}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){var e=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[e],a=this.frameOffsets(),o=i[r+0],s=i[r+1],l=i[r+2],c=i[r+3],u=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,c),t.closePath(),t.fillStrokeShape(this)),u){if(a){var d=a[e],h=2*n;t.drawImage(u,o,s,l,c,d[h+0],d[h+1],l,c)}else t.drawImage(u,o,s,l,c,0,0,l,c)}}_hitFunc(t){var e=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[e],a=this.frameOffsets(),o=i[r+2],s=i[r+3];if(t.beginPath(),a){var l=a[e],c=2*n;t.rect(l[c+0],l[c+1],o,s)}else t.rect(0,0,o,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}
12start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),e=this.animation();t<this.animations()[e].length/4-1?this.frameIndex(t+1):this.frameIndex(0)}}ed.prototype.className="Sprite",c(ed),E.addGetterSetter(ed,"animation"),E.addGetterSetter(ed,"animations"),E.addGetterSetter(ed,"frameOffsets"),E.addGetterSetter(ed,"image"),E.addGetterSetter(ed,"frameIndex",0,S()),E.addGetterSetter(ed,"frameRate",17,S()),E.backCompat(ed,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class eh extends tG{_sceneFunc(t){var e=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var i=1;i<2*r;i++){var a=i%2==0?n:e,o=a*Math.sin(i*Math.PI/r),s=-1*a*Math.cos(i*Math.PI/r);t.lineTo(o,s)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}function ef(t){return Array.from(t)}eh.prototype.className="Star",eh.prototype._centroid=!0,eh.prototype._attrsAffectingSize=["innerRadius","outerRadius"],c(eh),E.addGetterSetter(eh,"numPoints",5,S()),E.addGetterSetter(eh,"innerRadius",0,S()),E.addGetterSetter(eh,"outerRadius",0,S());var eg="auto",ep="justify",ev="left",em="middle",e_="normal",eb=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],ey=eb.length;function eC(){return a||(a=b.createCanvasElement().getContext("2d"))}class eS extends tG{constructor(t){super(function(t){return(t=t||{}).fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}(t)),this._partialTextX=0,this._partialTextY=0;for(var e=0;e<ey;e++)this.on(eb[e]+"Change.konva",this._setTextData);this._setTextData()}_sceneFunc(t){var e=this.textArr,n=e.length;if(this.text()){var r,i=this.padding(),a=this.fontSize(),o=this.lineHeight()*a,s=this.verticalAlign(),l=0,c=this.align(),u=this.getWidth(),d=this.letterSpacing(),h=this.fill(),f=this.textDecoration(),g=-1!==f.indexOf("underline"),p=-1!==f.indexOf("line-through"),v=o/2,m=0,b=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",em),t.setAttr("textAlign",ev),s===em?l=(this.getHeight()-n*o-2*i)/2:"bottom"===s&&(l=this.getHeight()-n*o-2*i),t.translate(i,l+i),r=0;r<n;r++){var y,C,S,m=0,b=0,x=e[r],w=x.text,T=x.width,A=x.lastInParagraph;if(t.save(),"right"===c?m+=u-T-2*i:"center"===c&&(m+=(u-T-2*i)/2),g&&(t.save(),t.beginPath(),t.moveTo(m,v+b+Math.round(a/2)),C=0==(y=w.split(" ").length-1),S=c===ep&&A&&!C?u-2*i:T,t.lineTo(m+Math.round(S),v+b+Math.round(a/2)),t.lineWidth=a/15,t.strokeStyle=h,t.stroke(),t.restore()),p&&(t.save(),t.beginPath(),t.moveTo(m,v+b),C=0==(y=w.split(" ").length-1),S=c===ep&&A&&!C?u-2*i:T,t.lineTo(m+Math.round(S),v+b),t.lineWidth=a/15,t.strokeStyle=h,t.stroke(),t.restore()),0!==d||c===ep){y=w.split(" ").length-1;for(var k=ef(w),E=0;E<k.length;E++){var O=k[E];" "!==O||A||c!==ep||(m+=(u-2*i-T)/y),this._partialTextX=m,this._partialTextY=v+b,this._partialText=O,t.fillStrokeShape(this),m+=this.measureSize(O).width+d}}else this._partialTextX=m,this._partialTextY=v+b,this._partialText=w,t.fillStrokeShape(this);t.restore(),n>1&&(v+=o)}}}_hitFunc(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)}setText(t){var e=b._isString(t)?t:null==t?"":t+"";return this._setAttr("text",e),this}getWidth(){return this.attrs.width===eg||void 0===this.attrs.width?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){return this.attrs.height===eg||void 0===this.attrs.height?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return b.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var e,n=eC(),r=this.fontSize();return n.save(),n.font=this._getContextFont(),e=n.measureText(t),n.restore(
12),{width:e.width,height:r}}_getContextFont(){return this.fontStyle()+" "+this.fontVariant()+" "+(this.fontSize()+"px ")+this.fontFamily().split(",").map(t=>{let e=(t=t.trim()).indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return e&&!n&&(t=`"${t}"`),t}).join(", ")}_addTextLine(t){this.align()===ep&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e,lastInParagraph:!1})}_getTextWidth(t){var e=this.letterSpacing(),n=t.length;return eC().measureText(t).width+(n?e*(n-1):0)}_setTextData(){var t=this.text().split("\n"),e=+this.fontSize(),n=0,r=this.lineHeight()*e,i=this.attrs.width,a=this.attrs.height,o=i!==eg&&void 0!==i,s=a!==eg&&void 0!==a,l=this.padding(),c=i-2*l,u=a-2*l,d=0,h=this.wrap(),f="none"!==h,g="char"!==h&&f,p=this.ellipsis();this.textArr=[],eC().font=this._getContextFont();for(var v=p?this._getTextWidth("â¦"):0,m=0,b=t.length;m<b;++m){var y=t[m],C=this._getTextWidth(y);if(o&&C>c)for(;y.length>0;){for(var S=0,x=y.length,w="",T=0;S<x;){var A=S+x>>>1,k=y.slice(0,A+1),E=this._getTextWidth(k)+v;E<=c?(S=A+1,w=k,T=E):x=A}if(w){if(g){var O,P=y[w.length];(O=(" "===P||"-"===P)&&T<=c?w.length:Math.max(w.lastIndexOf(" "),w.lastIndexOf("-"))+1)>0&&(S=O,w=w.slice(0,S),T=this._getTextWidth(w))}if(w=w.trimRight(),this._addTextLine(w),n=Math.max(n,T),d+=r,!f||s&&d+r>u){var L=this.textArr[this.textArr.length-1];L&&p&&(this._getTextWidth(L.text+"â¦")<c||(L.text=L.text.slice(0,L.text.length-3)),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(L.text+"â¦"));break}if((y=(y=y.slice(S)).trimLeft()).length>0&&(C=this._getTextWidth(y))<=c){this._addTextLine(y),d+=r,n=Math.max(n,C);break}}else break}else this._addTextLine(y),d+=r,n=Math.max(n,C);if(s&&d+r>u)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=e,this.textWidth=n}getStrokeScaleEnabled(){return!0}}eS.prototype._fillFunc=function(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)},eS.prototype._strokeFunc=function(t){t.strokeText(this._partialText,this._partialTextX,this._partialTextY)},eS.prototype.className="Text",eS.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],c(eS),E.overWriteSetter(eS,"width",w()),E.overWriteSetter(eS,"height",w()),E.addGetterSetter(eS,"fontFamily","Arial"),E.addGetterSetter(eS,"fontSize",12,S()),E.addGetterSetter(eS,"fontStyle",e_),E.addGetterSetter(eS,"fontVariant",e_),E.addGetterSetter(eS,"padding",0,S()),E.addGetterSetter(eS,"align",ev),E.addGetterSetter(eS,"verticalAlign","top"),E.addGetterSetter(eS,"lineHeight",1,S()),E.addGetterSetter(eS,"wrap","word"),E.addGetterSetter(eS,"ellipsis",!1,k()),E.addGetterSetter(eS,"letterSpacing",0,S()),E.addGetterSetter(eS,"text","",T()),E.addGetterSetter(eS,"textDecoration","");var ex="normal";function ew(t){t.fillText(this.partialText,0,0)}function eT(t){t.strokeText(this.partialText,0,0)}class eA extends tG{constructor(t){super(t),this.dummyCanvas=b.createCanvasElement(),this.dataArray=[],this.dataArray=t4.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=t4.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncCh
12ange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;"underline"===e&&t.beginPath();for(var a=0;a<i.length;a++){t.save();var o=i[a].p0;t.translate(o.x,o.y),t.rotate(i[a].rotation),this.partialText=i[a].text,t.fillStrokeShape(this),"underline"===e&&(0===a&&t.moveTo(0,r/2+1),t.lineTo(r,r/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=n,t.lineWidth=r/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var n=e[0].p0;t.moveTo(n.x,n.y)}for(var r=0;r<e.length;r++){var i=e[r].p1;t.lineTo(i.x,i.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return b.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return eS.prototype.setText.call(this,t)}_getContextFont(){return eS.prototype._getContextFont.call(this)}_getTextSize(t){var e=this.dummyCanvas.getContext("2d");e.save(),e.font=this._getContextFont();var n=e.measureText(t);return e.restore(),{width:n.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var t,e,n,r=this,i=this._getTextSize(this.attrs.text),a=this.letterSpacing(),o=this.align(),s=this.kerningFunc();this.textWidth=i.width,this.textHeight=i.height;var l=Math.max(this.textWidth+((this.attrs.text||"").length-1)*a,0);this.glyphInfo=[];for(var c=0,u=0;u<r.dataArray.length;u++)r.dataArray[u].pathLength>0&&(c+=r.dataArray[u].pathLength);var d=0;"center"===o&&(d=Math.max(0,c/2-l/2)),"right"===o&&(d=Math.max(0,c-l));for(var h=ef(this.text()),f=this.text().split(" ").length-1,g=-1,p=0,v=function(){p=0;for(var e=r.dataArray,n=g+1;n<e.length;n++){if(e[n].pathLength>0)return g=n,e[n];"M"===e[n].command&&(t={x:e[n].points[0],y:e[n].points[1]})}return{}},m=function(i){var s=r._getTextSize(i).width+a;" "===i&&"justify"===o&&(s+=(c-l)/f);var u=0,d=0;for(e=void 0;Math.abs(s-u)/s>.01&&d<20;){d++;for(var h=u;void 0===n;)(n=v())&&h+n.pathLength<s&&(h+=n.pathLength,n=void 0);if(n==={}||void 0===t)return;var g=!1;switch(n.command){case"L":t4.getLineLength(t.x,t.y,n.points[0],n.points[1])>s?e=t4.getPointOnLine(s,t.x,t.y,n.points[0],n.points[1],t.x,t.y):n=void 0;break;case"A":var m=n.points[4],b=n.points[5],y=n.points[4]+b;0===p?p=m+1e-8:s>u?p+=Math.PI/180*b/Math.abs(b):p-=Math.PI/360*b/Math.abs(b),(b<0&&p<y||b>=0&&p>y)&&(p=y,g=!0),e=t4.getPointOnEllipticalArc(n.points[0],n.points[1],n.points[2],n.points[3],p,n.points[6]);break;case"C":0===p?p=s>n.pathLength?1e-8:s/n.pathLength:s>u?p+=(s-u)/n.pathLength/2:p=Math.max(p-(u-s)/n.pathLength/2,0),p>1&&(p=1,g=!0),e=t4.getPointOnCubicBezier(p,n.start.x,n.start.y,n.points[0],n.points[1],n.points[2],n.points[3],n.points[4],n.points[5]);break;case"Q":0===p?p=s/n.pathLength:s>u?p+=(s-u)/n.pathLength:p-=(u-s)/n.pathLength,p>1&&(p=1,g=!0),e=t4.getPointOnQuadraticBezier(p,n.start.x,n.start.y,n.points[0],n.points[1],n.points[2],n.points[3])}void 0!==e&&(u=t4.getLineLength(t.x,t.y,e.x,e.y)),g&&(g=!1,n=void 0)}},b=d/(r._getTextSize("C").width+a)-1,y=0;y<b&&(m("C"),void 0!==t&&void 0!==e);y++)t=e;for(var C=0;C<h.length&&(m(h[C]),void 0!==t&&void 0!==e);C++){var S=t4.getLineLength(t.x,t.y,e.x,e.y),x=0;if(s)try{x=s(h[C-1],h[C])*this.fontSize()}catch(t){x=0}t.x+=x,e.x+=x,this.textWidth+=x;var w=t4.getPointOnLine(x+S/2,t.x,t.y,e.x,e.y),T=Math.atan2(e.y-t.y,e.x-t.x);this.glyphInfo.push({transposeX:w.x,transposeY:w.y,text:h[C],rotation:T,p0:t,p1:e}),t=e}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t,e,n=[];this.glyphInfo.forEach(function(t){n.push(t.p0.x),n.push(t.p0.y),n.push(t.p1.x),n.push(t.p1.y)});for(var r=n[0]||0,i=n[0]||0,a=n[1]||0,o=n[1]||0,s=0;s<n.length/2;s++)t=n[2*s],e=n[2*s+1],r=Math.min(r,t),i=Math.max(i,t),a=Math.min(a,e),o=Math.max(o,e);var l=this.fontSize();return{x:r-l/2,y:a-l/2,width:i-r+l,height:o-a+l}}}eA.prototype._fillFunc=ew,eA.prototype._strokeFunc=eT,eA.prototype._fillFuncHit=ew,eA.prototype._strokeFuncHit=eT,eA.prototype.className="TextPath",eA.prototype._attrsAffectingSize=["text","fontSize","data"],c(eA),E.addGetterSetter(eA,"data"),E.addGetterSetter(eA,"fontFamily","Arial"),E.addGetterSetter(eA,"fontSize",12,S()),E.addGetterSetter(eA,"fontStyle",ex),E.addGetterSetter(eA,"align","left"),E.addGetterSetter(eA,"letterSpacing",0,S()),E.addGetterSetter(eA,"textBaseline","middle"),E.addGetterSetter(eA,"fontVariant",ex),E.addGetterSetter(eA,"text",""),E.addGetterSetter(eA,"textDecoration",null),E.addGetterSetter(eA,"kerningFunc",null);var ek="tr-konva",eE=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map(t=>t+`.${ek}`).join(" "),eO="nodesRect",eP=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],eL={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};let eI="ontouchstart"in l._global;var eD=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];
12function eR(t,e,n){let r=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),i=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return Object.assign(Object.assign({},t),{rotation:t.rotation+e,x:r,y:i})}class eM extends tW{constructor(t){super(t),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(eE,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return b.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return ek+this._id}setNodes(t=[]){return this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,1===t.length&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(t=>{let e=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()},n=t._attrsAffectingSize.map(t=>t+"Change."+this._getEventNamespace()).join(" ");t.on(n,e),t.on(eP.map(t=>t+`.${this._getEventNamespace()}`).join(" "),e),t.on(`absoluteTransformChange.${this._getEventNamespace()}`,e),this._proxyDrag(t)}),this._resetTransformCache(),this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let e;t.on(`dragstart.${this._getEventNamespace()}`,n=>{e=t.getAbsolutePosition(),this.isDragging()||t===this.findOne(".back")||this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!e)return;let r=t.getAbsolutePosition(),i=r.x-e.x,a=r.y-e.y;this.nodes().forEach(e=>{if(e===t||e.isDragging())return;let r=e.getAbsolutePosition();e.setAbsolutePosition({x:r.x+i,y:r.y+a}),e.startDrag(n)}),e=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(eO),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(eO,this.__getNodeRect)}__getNodeShape(t,e=this.rotation(),n){var r=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),o=r.x*i.x-t.offsetX()*i.x,s=r.y*i.y-t.offsetY()*i.y;let c=(l.getAngle(t.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI);return eR({x:a.x+o*Math.cos(c)+s*Math.sin(-c),y:a.y+s*Math.cos(c)+o*Math.sin(c),width:r.width*i.x,height:r.height*i.y,rotation:c},-l.getAngle(e),{x:0,y:0})}__getNodeRect(){var t,e,n,r;if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};let i=[];this.nodes().map(t=>{let e=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],r=t.getAbsoluteTransform();n.forEach(function(t){var e=r.point(t);i.push(e)})});let a=new u;a.rotate(-l.getAngle(this.rotation())),i.forEach(function(i){var o=a.point(i);void 0===t&&(t=n=o.x,e=r=o.y),t=Math.min(t,o.x),e=Math.min(e,o.y),n=Math.max(n,o.x),r=Math.max(r,o.y)}),a.invert();let o=a.point({x:t,y:e});return{x:o.x,y:o.y,width:n-t,height:r-e,rotation:l.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),eD.forEach((function(t){this._createAnchor(t)}).bind(this)),this._createAnchor("rotater")}_createAnchor(t){var e=new es({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:eI?10:"auto"}),n=this;e.on("mousedown touchstart",function(t){n._handleMouseDown(t)}),e.on("dragstart",t=>{e.stopDrag(),t.cancelBubble=!0}),e.on("dragend",t=>{t.cancelBubble=!0}),e.on("mouseenter",()=>{var n=function(t,e){if("rotater"===t)return"crosshair";var n=(b.radToDeg(e+=b.degToRad(eL[t]||0))%360+360)%360;if(b._inRange(n,337.5,360)||b._inRange(n,0,22.5))return"ns-resize";if(b._inRange(n,22.5,67.5))return"nesw-resize";if(b._inRange(n,67.5,112.5))return"ew-resize";if(b._inRange(n,112.5,157.5))return"nwse-resize";if(b._inRange(n,157.5,202.5))return"ns-resize";if(b._inRange(n,202.5,247.5))return"nesw-resize";if(b._inRange(n,247.5,292.5))return"ew-resize";else if(b._inRange(n,292.5,337.5))return"nwse-resize";else return b.error("Transformer has unknown angle for cursor detection: "+n),"pointer"}(t,l.getAngle(this.rotation()));e.getStage().content&&(e.getStage().content.style.cursor=n),this._cursorChange=!0}),e.on("mouseout",()=>{e.getStage().content&&(e.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(e)}_createBack(){var t=new tG({name:"back",width:0,height:0,draggable:!0,sceneFunc(t){var e=this.getParent(),n=e.padding();t.beginPath(),t.rect(-n,-n,this.width()+2*n,this.height()+2*n),t.moveTo(this.width()/2,-n),e.rotateEnabled()&&t.lineTo(this.width()/2,-e.rotateAnchorOffset()*b._sign(this.height())-n),t.fillStrokeShape(this)},hitFunc:(t,e)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();t.beginPath(),t.rect(-n,-n,e.width()+2*n,e.height()+2*n),t.fillStrokeShape(e)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",t=>{t.cancelBubble=!0}),t.on("dragmove",t=>{t.cancelBubble=!0}),t.on("dragend",t=>{t.cancelBubble=!0}),this.on("dragmove",t=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),n=e.width,r=e.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=Math.abs(r/i),this.cos=Math.abs(n/i),"undefined"!=typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var a=t.target.getAbsolutePosition(),o=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:o.x-a.x,y:o.y-a.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}
12),this._nodes.forEach(e=>{e._fire("transformstart",{evt:t.evt,target:e})})}_handleMouseMove(t){var e,n,r,i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);let o=a.getPointerPosition(),s={x:o.x-this._anchorDragOffset.x,y:o.y-this._anchorDragOffset.y},c=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(c,s,t)),i.setAbsolutePosition(s);let u=i.getAbsolutePosition();if(c.x!==u.x||c.y!==u.y){if("rotater"===this._movingAnchorName){var d=this._getNodeRect();e=i.x()-d.width/2;let r=Math.atan2(-(n=-i.y()+d.height/2),e)+Math.PI/2;d.height<0&&(r-=Math.PI);let a=l.getAngle(this.rotation())+r,o=l.getAngle(this.rotationSnapTolerance()),s=function(t,e,n){let r=e;for(let i=0;i<t.length;i++){let a=l.getAngle(t[i]),o=Math.abs(a-e)%(2*Math.PI);Math.min(o,2*Math.PI-o)<n&&(r=a)}return r}(this.rotationSnaps(),a,o)-d.rotation,c=function(t,e){let n={x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)};return eR(t,e,n)}(d,s);this._fitNodesInto(c,t);return}var h=this.keepRatio()||t.shiftKey,f=this.centeredScaling()||t.altKey;if("top-left"===this._movingAnchorName){if(h){var g=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};r=Math.sqrt(Math.pow(g.x-i.x(),2)+Math.pow(g.y-i.y(),2));var p=this.findOne(".top-left").x()>g.x?-1:1,v=this.findOne(".top-left").y()>g.y?-1:1;e=r*this.cos*p,n=r*this.sin*v,this.findOne(".top-left").x(g.x-e),this.findOne(".top-left").y(g.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(i.y());else if("top-right"===this._movingAnchorName){if(h){var g=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};r=Math.sqrt(Math.pow(i.x()-g.x,2)+Math.pow(g.y-i.y(),2));var p=this.findOne(".top-right").x()<g.x?-1:1,v=this.findOne(".top-right").y()>g.y?-1:1;e=r*this.cos*p,n=r*this.sin*v,this.findOne(".top-right").x(g.x+e),this.findOne(".top-right").y(g.y-n)}var m=i.position();this.findOne(".top-left").y(m.y),this.findOne(".bottom-right").x(m.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(i.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(i.x());else if("bottom-left"===this._movingAnchorName){if(h){var g=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};r=Math.sqrt(Math.pow(g.x-i.x(),2)+Math.pow(i.y()-g.y,2));var p=g.x<i.x()?-1:1,v=i.y()<g.y?-1:1;e=r*this.cos*p,n=r*this.sin*v,i.x(g.x-e),i.y(g.y+n)}m=i.position(),this.findOne(".top-left").x(m.x),this.findOne(".bottom-right").y(m.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(i.y());else if("bottom-right"===this._movingAnchorName){if(h){var g=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};r=Math.sqrt(Math.pow(i.x()-g.x,2)+Math.pow(i.y()-g.y,2));var p=this.findOne(".bottom-right").x()<g.x?-1:1,v=this.findOne(".bottom-right").y()<g.y?-1:1;e=r*this.cos*p,n=r*this.sin*v,this.findOne(".bottom-right").x(g.x+e),this.findOne(".bottom-right").y(g.y+n)}}else console.error(Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var f=this.centeredScaling()||t.altKey;if(f){var b=this.findOne(".top-left"),y=this.findOne(".bottom-right"),C=b.x(),S=b.y(),x=this.getWidth()-y.x(),w=this.getHeight()-y.y();y.move({x:-C,y:-S}),b.move({x:x,y:w})}var T=this.findOne(".top-left").getAbsolutePosition();e=T.x,n=T.y;var A=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),k=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:e,y:n,width:A,height:k,rotation:l.getAngle(this.rotation())},t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){if(this._transforming){this._transforming=!1,"undefined"!=typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var e=this.getNode();this._fire("transformend",{evt:t,target:e}
12),e&&this._nodes.forEach(e=>{e._fire("transformend",{evt:t,target:e})}),this._movingAnchorName=null}}_fitNodesInto(t,e){var n=this._getNodeRect();if(b._inRange(t.width,-(2*this.padding())-1,1)||b._inRange(t.height,-(2*this.padding())-1,1)){this.update();return}let r=this.flipEnabled();var i=new u;if(i.rotate(l.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){let e=i.point({x:-(2*this.padding()),y:0});if(t.x+=e.x,t.y+=e.y,t.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,!r){this.update();return}}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){let e=i.point({x:2*this.padding(),y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.width+=2*this.padding(),!r){this.update();return}}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){let e=i.point({x:0,y:-(2*this.padding())});if(t.x+=e.x,t.y+=e.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding(),!r){this.update();return}}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){let e=i.point({x:0,y:2*this.padding()});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=e.x,this._anchorDragOffset.y-=e.y,t.height+=2*this.padding(),!r){this.update();return}}if(this.boundBoxFunc()){let e=this.boundBoxFunc()(n,t);e?t=e:b.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}let a=new u;a.translate(n.x,n.y),a.rotate(n.rotation),a.scale(n.width/1e7,n.height/1e7);let o=new u;o.translate(t.x,t.y),o.rotate(t.rotation),o.scale(t.width/1e7,t.height/1e7);let s=o.multiply(a.invert());this._nodes.forEach(t=>{var n;let r=t.getParent().getAbsoluteTransform(),i=t.getTransform().copy();i.translate(t.offsetX(),t.offsetY());let a=new u;a.multiply(r.copy().invert()).multiply(s).multiply(r).multiply(i);let o=a.decompose();t.setAttrs(o),this._fire("transform",{evt:e,target:t}),t._fire("transform",{evt:e,target:t}),(n=t.getLayer())===null||void 0===n||n.batchDraw()}),this.rotation(b._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,e){this.findOne(t).setAttrs(e)}update(){var t,e=this._getNodeRect();this.rotation(b._getRotation(e.rotation));var n=e.width,r=e.height,i=this.enabledAnchors(),a=this.resizeEnabled(),o=this.padding(),s=this.anchorSize();this.find("._anchor").forEach(t=>{t.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+o,offsetY:s/2+o,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+o,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-o,offsetY:s/2+o,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:r/2,offsetX:s/2+o,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:r/2,offsetX:s/2-o,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:r,offsetX:s/2+o,offsetY:s/2-o,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:r,offsetY:s/2-o,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:r,offsetX:s/2-o,offsetY:s/2-o,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*b._sign(r)-o,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:r,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),(t=this.getLayer())===null||void 0===t||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);
vendor: 1,758 bytes, line 12
12t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),tW.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Z.prototype.toObject.call(this)}}eM.prototype.className="Transformer",c(eM),E.addGetterSetter(eM,"enabledAnchors",eD,function(t){return t instanceof Array||b.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(t){-1===eD.indexOf(t)&&b.warn("Unknown anchor name: "+t+". Available names are: "+eD.join(", "))}),t||[]}),E.addGetterSetter(eM,"flipEnabled",!0,k()),E.addGetterSetter(eM,"resizeEnabled",!0),E.addGetterSetter(eM,"anchorSize",10,S()),E.addGetterSetter(eM,"rotateEnabled",!0),E.addGetterSetter(eM,"rotationSnaps",[]),E.addGetterSetter(eM,"rotateAnchorOffset",50,S()),E.addGetterSetter(eM,"rotationSnapTolerance",5,S()),E.addGetterSetter(eM,"borderEnabled",!0),E.addGetterSetter(eM,"anchorStroke","rgb(0, 161, 255)"),E.addGetterSetter(eM,"anchorStrokeWidth",1,S()),E.addGetterSetter(eM,"anchorFill","white"),E.addGetterSetter(eM,"anchorCornerRadius",0,S()),E.addGetterSetter(eM,"borderStroke","rgb(0, 161, 255)"),E.addGetterSetter(eM,"borderStrokeWidth",1,S()),E.addGetterSetter(eM,"borderDash"),E.addGetterSetter(eM,"keepRatio",!0),E.addGetterSetter(eM,"centeredScaling",!1),E.addGetterSetter(eM,"ignoreStroke",!1),E.addGetterSetter(eM,"padding",0,S()),E.addGetterSetter(eM,"node"),E.addGetterSetter(eM,"nodes"),E.addGetterSetter(eM,"boundBoxFunc"),E.addGetterSetter(eM,"anchorDragBoundFunc"),E.addGetterSetter(eM,"shouldOverdrawWholeArea",!1),E.addGetterSetter(eM,"useSingleNodeRotation",!0),E.backCompat(eM,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledH
12andlers:"enabledAnchors"});class eN extends tG{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,l.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}function ej(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}eN.prototype.className="Wedge",eN.prototype._centroid=!0,eN.prototype._attrsAffectingSize=["radius"],c(eN),E.addGetterSetter(eN,"radius",0,S()),E.addGetterSetter(eN,"angle",0,S()),E.addGetterSetter(eN,"clockwise",!1),E.backCompat(eN,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var eF=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,39
126,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],eB=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function eG(t,e,n,r,i){var a=n-e,o=i-r;return 0===a?r+o/2:0===o?r:(t-e)/a*o+r}E.addGetterSetter(Z,"blurRadius",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"brightness",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"contrast",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"embossStrength",.5,S(),E.afterSetFilter),E.addGetterSetter(Z,"embossWhiteLevel",.5,S(),E.afterSetFilter),E.addGetterSetter(Z,"embossDirection","top-left",null,E.afterSetFilter),E.addGetterSetter(Z,"embossBlend",!1,null,E.afterSetFilter),E.addGetterSetter(Z,"enhance",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"hue",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"saturation",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"luminance",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"hue",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"saturation",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"value",0,S(),E.afterSetFilter);var e$=function(t,e,n){var r,i,a,o,s=t.data,l=e.data,c=t.width,u=t.height,d=n.polarCenterX||c/2,h=n.polarCenterY||u/2,f=0,g=0,p=0,v=0,m=Math.sqrt(d*d+h*h);m=(o=Math.sqrt((i=c-d)*i+(a=u-h)*a))>m?o:m;var b,y,C,S,x=360/c*Math.PI/180;for(y=0;y<c;y+=1)for(b=0,C=Math.sin(y*x),S=Math.cos(y*x);b<u;b+=1)f=s[(r=((a=Math.floor(h+m*b/u*C))*c+(i=Math.floor(d+m*b/u*S)))*4)+0],g=s[r+1],p=s[r+2],v=s[r+3],l[(r=(y+b*c)*4)+0]=f,l[r+1]=g,l[r+2]=p,l[r+3]=v},eH=function(t,e,n){var r,i,a,o,s,l,c=t.data,u=e.data,d=t.width,h=t.height,f=n.polarCenterX||d/2,g=n.polarCenterY||h/2,p=0,v=0,m=0,b=0,y=Math.sqrt(f*f+g*g);y=(l=Math.sqrt((i=d-f)*i+(a=h-g)*a))>y?l:y;var C=n.polarRotation||0;for(i=0;i<d;i+=1)for(a=0;a<h;a+=1)o=i-f,s=a-g,p=c[(r=(Math.floor(Math.sqrt(o*o+s*s)*h/y)*d+Math.floor((180*Math.atan2(s,o)/Math.PI+360+C)%360*d/360))*4)+0],v=c[r+1],m=c[r+2],b=c[r+3],u[(r=(a*d+i)*4)+0]=p,u[r+1]=v,u[r+2]=m,u[r+3]=b};function ez(t,e,n){var r=(n*t.width+e)*4,i=[];return i.push(t.data[r++],t.data[r++],t.data[r++],t.data[r++]),i}function eU(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}E.addGetterSetter(Z,"kaleidoscopePower",2,S(),E.afterSetFilter),E.addGetterSetter(Z,"kaleidoscopeAngle",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"threshold",0,S(),E.afterSetFilter),E.addGetterSetter(Z,"noise",.2,S(),E.afterSetFilter),E.addGetterSetter(Z,"pixelSize",8,S(),E.afterSetFilter),E.addGetterSetter(Z,"levels",.5,S(),E.afterSetFilter),E.addGetterSetter(Z,"red",0,function(t){return(this._filterUpToDate=!1,t>255)?255:t<0?0:Math.round(t)}),E.addGetterSetter(Z,"green",0,function(t){return(this._filterUpToDate=!1,t>255)?255:t<0?0:Math.round(t)}),E.addGetterSetter(Z,"blue",0,C,E.afterSetFilter),E.addGetterSetter(Z,"red",0,function(t){return(this._filterUpToDate=!1,t>255)?255:t<0?0:Math.round(t)}),E.addGetterSetter(Z,"green",0,function(t){return(this._filterUpToDate=!1,t>255)?255:t<0?0:Math.round(t)}),E.addGetterSetter(Z,"blue",0,C,E.afterSetFilter),E.addGetterSetter(Z,"alpha",1,function(t){return(this._filterUpToDate=!1,t>1)?1:t<0?0:t}),E.addGetterSetter(Z,"threshold",.5,S(),E.afterSetFilter);let eW=t0.Util._assign(t0,{Arc:t1,Arrow:t8,Circle:t6,Ellipse:t9,Image:t7,Label:ea,Tag:eo,Line:t3,Path:t4,Rect:es,RegularPolygon:el,Ring:eu,Sprite:ed,Star:eh,Text:eS,TextPath:eA,Transformer:eM,Wedge:eN,Filters:{Blur:function(t){var e=Math.round(this.blurRadius());e>0&&function(t,e){var n,r,i,a,o,s,l,c,u,d,h,f,g,p,v,m,b,y,C,S,x,w,T,A,k=t.data,E=t.width,O=t.height,P=e+e+1,L=E-1,I=O-1,D=e+1,R=D*(D+1)/2,M=new ej,N=null,j=M,F=null,B=null,G=eF[e],$=eB[e];for(i=1;i<P;i++)j=j.next=new ej,i===D&&(N=j);for(r=0,j.next=M,l=s=0;r<O;r++){for(m=b=y=C=c=u=d=h=0,f=D*(S=k[s]),g=D*(x=k[s+1]),p=D*(w=k[s+2]),v=D*(T=k[s+3]),c+=R*S,u+=R*x,d+=R*w,h+=R*T,j=M,i=0;i<D;i++)j.r=S,j.g=x,j.b=w,j.a=T,j=j.next;for(i=1;i<D;i++)c+=(j.r=S=k[a=s+((L<i?L:i)<<2)])*(A=D-i),u+=(j.g=x=k[a+1])*A,d+=(j.b=w=k[a+2])*A,h+=(j.a=T=k[a+3])*A,m+=S,b+=x,y+=w,C+=T,j=j.next;for(n=0,F=M,B=N;n<E;n++)k[s+3]=T=h*G>>$,0!==T?(T=255/T,k[s]=(c*G>>$)*T,k[s+1]=(u*G>>$)*T,k[s+2]=(d*G>>$)*T):k[s]=k[s+1]=k[s+2]=0,c-=f,u-=g,d-=p,h-=v,f-=F.r,g-=F.g,p-=F.b,v-=F.a,a=l+((a=n+e+1)<L?a:L)<<2,m+=F.r=k[a],b+=F.g=k[a+1],y+=F.b=k[a+2],C+=F.a=k[a+3],c+=m,u+=b,d+=y,h+=C,F=F.next,f+=S=B.r,g+=x=B.g,p+=w=B.b,v+=T=B.a,m-=S,b-=x,y-=w,C-=T,B=B.next,s+=4;l+=E}for(n=0;n<E;n++){for(b=y=C=m=u=d=h=c=0,f=D*(S=k[s=n<<2]),g=D*(x=k[s+1]),p=D*(w=k[s+2]),v=D*(T=k[s+3]),c+=R*S,u+=R*x,d+=R*w,h+=R*T,j=M,i=0;i<D;i++)j.r=S,j.g=x,j.b=w,j.a=T,j=j.next;for(i=1,o=E;i<=e;i++)c+=(j.r=S=k[s=o+n<<2])*(A=D-i),u+=(j.g=x=k[s+1])*A,d+=(j.b=w=k[s+2])*A,h+=(j.a=T=k[s+3])*A,m+=S,b+=x,y+=w,C+=T,j=j.next,i<I&&(o+=E);for(r=0,s=n,F=M,B=N;r<O;r++)k[(a=s<<2)+3]=T=h*G>>$,T>0?(T=255/T,k[a]=(c*G>>$)*T,k[a+1]=(u*G>>$)*T,k[a+2]=(d*G>>$)*T):k[a]=k[a+1]=k[a+2]=0,c-=f,u-=g,d-=p,h-=v,f-=F.r,g-=F.g,p-=F.b,v-=F.a,a=n+((a=r+D)<I?a:I)*E<<2,c+=m+=F.r=k[a],u+=b+=F.g=k[a+1],d+=y+=F.b=k[a+2],h+=C+=F.a=k[a+3],F=F.next,f+=S=B.r,g+=x=B.g,p+=w=B.b,v+=T=B.a,m-=S,b-=x,y-=w,C-=T,B=B.next,s+=E}}(t,e)},Brighten:function(t){var e,n=255*this.brightness(),r=t.data,i=r.length;for(e=0;e<i;e+=4)r[e]+=n,r[e+1]+=n,r[e+2]+=n},Contrast:function(t){var e,n=Math.pow((this.contrast()+100)/100,2),r=t.data,i=r.length,a=150,o=150,s=150;for(e=0;e<i;e+=4)a=r[e],o=r[e+1],s=r[e+2],a/=255,a-=.5,a*=n,a+=.5,a*=255,o/=255,o-=.5,o*=n,o+=.5,o*=255,s/=255,s-=.5,s*=n,s+=.5,s*=255,a=a<0?0:a>255?255:a,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,r[e]=a,r[e+1]=o,r[e+2]=s},Emboss:function(t){var e=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),i=this.embossBlend(),a=0,o=0,s=t.data,l=t.width,c=t.height,u=4*l,d=c;switch(r){case"top-left":a=-1,o=-1;break;case"top":a=-1,o=0;break;case"top-right":a=-1,o=1;break;case"right":a=0,o=1;break;case"bottom-right":a=1,o=1;break;case"bottom":a=1,o=0;break;case"bottom-left":a=1,o=-1;break;case"left":a=0,o=-1;break;default:b.error("Unknown emboss direction: "+r)}do{var h=(d-1)*u,f=a;d+f<1&&(f=0),d+f>c&&(f=0);var g=(d-1+f)*l*4,p=l;do{var v=h+(p-1)*4,m=o;p+m<1&&(m=0),p+m>l&&(m=0);var y=g+(p-1+m)*4,C=s[v]-s[y],S=s[v+1]-s[y+1],x=s[v+2]-s[y+2],w=C,T=w>0?w:-w,A=x>0?x:-x;if((S>0?S:-S)>T&&(w=S),A>T&&(w=x),w*=e,i){var k=s[v]+w,E=s[v+1]+w,O=s[v+2]+w;s[v]=k>255?255:k<0?0:k,s[v+1]=E>255?255:E<0?0:E,s[v+2]=O>255?255:O<0?0:O}else{var P=n-w;P<0?P=0:P>255&&(P=255),s[v]=s[v+1]=s[v+2]=P}}while(--p)}while(--d)},Enhance:function(t){var e,n,r,i,a,o,s,l,c,u,d,h,f,g=t.data,p=g.length,v=g[0],m=v,b=g[1],y=b,C=g[2],S=C,x=this.enhance();if(0!==x){for(f=0;f<p;f+=4)(u=g[f+0])<v?v=u:u>
12m&&(m=u),(d=g[f+1])<b?b=d:d>y&&(y=d),(h=g[f+2])<C?C=h:h>S&&(S=h);for(m===v&&(m=255,v=0),y===b&&(y=255,b=0),S===C&&(S=255,C=0),x>0?(n=m+x*(255-m),r=v-x*(v-0),a=y+x*(255-y),o=b-x*(b-0),l=S+x*(255-S),c=C-x*(C-0)):(e=(m+v)*.5,n=m+x*(m-e),r=v+x*(v-e),i=(y+b)*.5,a=y+x*(y-i),o=b+x*(b-i),s=(S+C)*.5,l=S+x*(S-s),c=C+x*(C-s)),f=0;f<p;f+=4)g[f+0]=eG(g[f+0],v,m,r,n),g[f+1]=eG(g[f+1],b,y,o,a),g[f+2]=eG(g[f+2],C,S,c,l)}},Grayscale:function(t){var e,n,r=t.data,i=r.length;for(e=0;e<i;e+=4)n=.34*r[e]+.5*r[e+1]+.16*r[e+2],r[e]=n,r[e+1]=n,r[e+2]=n},HSL:function(t){var e,n,r,i,a,o=t.data,s=o.length,l=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,u=127*this.luminance(),d=1*l*Math.cos(c*Math.PI/180),h=1*l*Math.sin(c*Math.PI/180),f=.299+.701*d+.167*h,g=.587-.587*d+.33*h,p=.114-.114*d-.497*h,v=.299-.299*d-.328*h,m=.587+.413*d+.035*h,b=.114-.114*d+.293*h,y=.299-.3*d+1.25*h,C=.587-.586*d-1.05*h,S=.114+.886*d-.2*h;for(a=0;a<s;a+=4)e=o[a+0],n=o[a+1],r=o[a+2],i=o[a+3],o[a+0]=f*e+g*n+p*r+u,o[a+1]=v*e+m*n+b*r+u,o[a+2]=y*e+C*n+S*r+u,o[a+3]=i},HSV:function(t){var e,n,r,i,a,o=t.data,s=o.length,l=Math.pow(2,this.value()),c=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,d=l*c*Math.cos(u*Math.PI/180),h=l*c*Math.sin(u*Math.PI/180),f=.299*l+.701*d+.167*h,g=.587*l-.587*d+.33*h,p=.114*l-.114*d-.497*h,v=.299*l-.299*d-.328*h,m=.587*l+.413*d+.035*h,b=.114*l-.114*d+.293*h,y=.299*l-.3*d+1.25*h,C=.587*l-.586*d-1.05*h,S=.114*l+.886*d-.2*h;for(a=0;a<s;a+=4)e=o[a+0],n=o[a+1],r=o[a+2],i=o[a+3],o[a+0]=f*e+g*n+p*r,o[a+1]=v*e+m*n+b*r,o[a+2]=y*e+C*n+S*r,o[a+3]=i},Invert:function(t){var e,n=t.data,r=n.length;for(e=0;e<r;e+=4)n[e]=255-n[e],n[e+1]=255-n[e+1],n[e+2]=255-n[e+2]},Kaleidoscope:function(t){var e,n,r,i,a,o,s,l,c,u=t.width,d=t.height,h=Math.round(this.kaleidoscopePower()),f=Math.floor(u*(Math.round(this.kaleidoscopeAngle())%360)/360);if(!(h<1)){var g=b.createCanvasElement();g.width=u,g.height=d;var p=g.getContext("2d").getImageData(0,0,u,d);e$(t,p,{polarCenterX:u/2,polarCenterY:d/2});for(var v=u/Math.pow(2,h);v<=8;)v*=2,h-=1;var m=v=Math.ceil(v),y=0,C=m,S=1;for(f+v>u&&(y=m,C=0,S=-1),n=0;n<d;n+=1)for(e=y;e!==C;e+=S)l=(u*n+Math.round(e+f)%u)*4,i=p.data[l+0],a=p.data[l+1],o=p.data[l+2],s=p.data[l+3],c=(u*n+e)*4,p.data[c+0]=i,p.data[c+1]=a,p.data[c+2]=o,p.data[c+3]=s;for(n=0;n<d;n+=1)for(r=0,m=Math.floor(v);r<h;r+=1){for(e=0;e<m+1;e+=1)l=(u*n+e)*4,i=p.data[l+0],a=p.data[l+1],o=p.data[l+2],s=p.data[l+3],c=(u*n+2*m-e-1)*4,p.data[c+0]=i,p.data[c+1]=a,p.data[c+2]=o,p.data[c+3]=s;m*=2}eH(p,t,{polarRotation:0})}},Mask:function(t){var e=function(t,e){var n=ez(t,0,0),r=ez(t,t.width-1,0),i=ez(t,0,t.height-1),a=ez(t,t.width-1,t.height-1),o=e||10;if(eU(n,r)<o&&eU(r,a)<o&&eU(a,i)<o&&eU(i,n)<o){for(var s=function(t){for(var e=[0,0,0],n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}([r,n,a,i]),l=[],c=0;c<t.width*t.height;c++){var u=eU(s,[t.data[4*c],t.data[4*c+1],t.data[4*c+2]]);l[c]=u<o?0:255}return l}}(t,this.threshold());return e&&(e=function(t,e,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var l=0;l<e;l++){for(var c=s*e+l,u=0,d=0;d<i;d++)for(var h=0;h<i;h++){var f=s+d-a,g=l+h-a;if(f>=0&&f<n&&g>=0&&g<e){var p=f*e+g,v=r[d*i+h];u+=t[p]*v}}o[c]=u}return o}(e=function(t,e,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var l=0;l<e;l++){for(var c=s*e+l,u=0,d=0;d<i;d++)for(var h=0;h<i;h++){var f=s+d-a,g=l+h-a;if(f>=0&&f<n&&g>=0&&g<e){var p=f*e+g,v=r[d*i+h];u+=t[p]*v}}o[c]=u>=1020?255:0}return o}(e=function(t,e,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var l=0;l<e;l++){for(var c=s*e+l,u=0,d=0;d<i;d++)for(var h=0;h<i;h++){var f=s+d-a,g=l+h-a;if(f>=0&&f<n&&g>=0&&g<e){var p=f*e+g,v=r[d*i+h];u+=t[p]*v}}o[c]=2040===u?255:0}return o}(e,t.width,t.height),t.width,t.height),t.width,t.height),function(t,e){for(var n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}(t,e)),t},Noise:function(t){var e,n=255*this.noise(),r=t.data,i=r.length,a=n/2;for(e=0;e<i;e+=4)r[e+0]+=a-2*a*Math.random(),r[e+1]+=a-2*a*Math.random(),r[e+2]+=a-2*a*Math.random()},Pixelate:function(t){var e,n,r,i,a,o,s,l,c,u,d,h,f,g,p=Math.ceil(this.pixelSize()),v=t.width,m=t.height,y=Math.ceil(v/p),C=Math.ceil(m/p),S=t.data;if(p<=0){b.error("pixelSize value can not be <= 0");return}for(h=0;h<y;h+=1)for(f=0;f<C;f+=1){for(i=0,a=0,o=0,s=0,c=(l=h*p)+p,d=(u=f*p)+p,g=0,e=l;e<c;e+=1)if(!(e>=v))for(n=u;n<d;n+=1)n>=m||(i+=S[(r=(v*n+e)*4)+0],a+=S[r+1],o+=S[r+2],s+=S[r+3],g+=1);for(i/=g,a/=g,o/=g,s/=g,e=l;e<c;e+=1)if(!(e>=v))for(n=u;n<d;n+=1)n>=m||(S[(r=(v*n+e)*4)+0]=i,S[r+1]=a,S[r+2]=o,S[r+3]=s)}},Posterize:function(t){var e,n=Math.round(254*this.levels())+1,r=t.data,i=r.length,a=255/n;for(e=0;e<i;e+=1)r[e]=Math.floor(r[e]/a)*a},RGB:function(t){var e,n,r=t.data,i=r.length,a=this.red(),o=this.green(),s=this.blue();for(e=0;e<i;e+=4)n=(.34*r[e]+.5*r[e+1]+.16*r[e+2])/255,r[e]=n*a,r[e+1]=n*o,r[e+2]=n*s,r[e+3]=r[e+3]},RGBA:function(t){var e,n,r=t.data,i=r.length,a=this.red(),o=this.green(),s=this.blue(),l=this.alpha();for(e=0;e<i;e+=4)n=1-l,r[e]=a*l+r[e]*n,r[e+1]=o*l+r[e+1]*n,r[e+2]=s*l+r[e+2]*n},Sepia:function(t){var e,n,r,i,a=t.data,o=a.length;for(e=0;e<o;e+=4)n=a[e+0],r=a[e+1],i=a[e+2],a[e+0]=Math.min(255,.393*n+.769*r+.189*i),a[e+1]=Math.min(255,.349*n+.686*r+.168*i),a[e+2]=Math.min(255,.272*n+.534*r+.131*i)},Solarize:function(t){var e=t.data,n=t.width,r=t.height,i=4*n,a=r;do{var o=(a-1)*i,s=n;do{var l=o+(s-1)*4,c=e[l],u=e[l+1],d=e[l+2];c>127&&(c=255-c),u>127&&(u=255-u),d>127&&(d=255-d),e[l]=c,e[l+1]=u,e[l+2]=d}while(--s)}while(--a)},Threshold:function(t){var e,n=255*this.threshold(),r=t.data,i=r.length;for(e=0;e<i;e+=1)r[e]=r[e]<n?0:255}}})},3628:t=>{"use strict";
12t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_from":"[email protected]"}')},492:t=>{"use strict";t.exports=JSON.parse('{"legacy":["Aktionen_0000_60.svg","Aktionen_0010_61.svg","Aktionen_0020_62.svg","Aktionen_0030_63.svg","Aktionen_0040_64.svg","Aktionen_0050_65.svg","Aktionen_0060_66 neu.svg","Aktionen_0060_66.svg","Aktionen_0070_67.svg","Aktionen_0080_68.svg","Aktionen_0090_69.svg","Aktionen_0100_70.svg","Aktionen_0110_71.svg","Aktionen_0120_72.svg","Aktionen_0130_73.svg","Aktionen_0140_74.svg","Aktionen_0150_102.svg","Aktionen_0150_75.svg","Aktionen_0160_103.svg","Aktionen_0160_106.svg","Aktionen_0170_104.svg","Aktionen_0180_105.svg","Antriebe_0000_92.svg","Aussenbereich_0000_28.svg","Aussenbereich_0000_29.svg","Aussenbereich_0000_30.svg","Aussenbereich_0000_31.svg","Aussenbereich_0000_32.svg","Aussenbereich_0000_33.svg","Aussenbereich_0000_34.svg","Beleuchtung_0010_1.svg","Beleuchtung_0020_2.svg","Beleuchtung_0021_3.svg","Beleuchtung_0022_4.svg","Beleuchtung_0030_5.svg","Beleuchtung_0040_6.svg","Beleuchtung_0041_110.svg","Beleuchtung_0042_111.svg","Beleuchtung_0043_113.svg","Beleuchtung_0044_115.svg","Beleuchtung_0050_7.svg","Beleuchtung_0051_8.svg","Beleuchtung_0060_9.svg","Beleuchtung_0070_10.svg","Beleuchtung_0080_11.svg","Beleuchtung_0090_12.svg","Beleuchtung_0091_116.svg","Beleuchtung_0092_117.svg","Beleuchtung_0100_99.svg","Beleuchtung_0110_98.svg","Beleuchtung_0111_114.svg","Beleuchtung_0112_149.svg","Diverses_0000_ 129.svg","Diverses_0000_ 149.svg","Diverses_0000_108.svg","Diverses_0000_112.svg","Diverses_0000_130.svg","Diverses_0000_131.svg","Diverses_0000_147.svg","Diverses_0000_148.svg","Diverses_0000_51.svg","Diverses_0000_52.svg","Diverses_0000_88.svg","Diverses_0000_93.svg","Diverses_0010_154.svg","Diverses_0020_155.svg","Energie_0000_100.svg","Energie_0000_118.svg","Energie_0000_119.svg","Energie_0000_120.svg","Energie_0000_121.svg","Energie_0000_122.svg","Energie_0000_123.svg","Energie_0000_13.svg","Energie_0000_14.svg","Energie_0000_15.svg","Energie_0000_16.svg","Energie_0001_126.svg","Energie_0010_97.svg","Health-Care_0000_46.svg","Health-Care_0000_47.svg","Health-Care_0000_48.svg","Health-Care_0000_49.svg","Health-Care_0000_50.svg","JUNG_Manufaktur_148.svg","Jalousie-Fenster_0000_17.svg","Jalousie-Fenster_0000_18.svg","Jalousie-Fenster_0000_19.svg","Jalousie-Fenster_0000_20.svg","Jalousie-Fenster_0000_21.svg","Jalousie-Fenster_0000_22.svg","Jalousie-Fenster_0000_23.svg","Jalousie-Fenster_0000_24.svg","Jalousie-Fenster_0000_25.svg","Jalousie-Fenster_0000_26.svg","Jalousie-Fenster_0000_27.svg","Jalousie-Fenster_0000_92.svg","Jalousie-Fenster_0001_146.svg","Klima_0000_35.svg","Klima_0010_36.svg","Klima_0020_37.svg","Klima_0030_38.svg","Klima_0031_38.svg","Klima_0031_45.svg","Klima_0040_39.svg","Klima_0041_39.svg","Klima_0050_40.svg","Klima_0060_41.svg","Klima_0070_42.svg","Klima_0080_43.svg","Klima_0081_107.svg","Klima_0090_44.svg","Klima_0100_136.svg","Klima_0101_137.svg","Klima_0102_138.svg","Klima_0103_139.svg","Klima_0104_140.svg","Klima_0105_141.svg","Klima_0106_142.svg","Multimedia_0000_53.svg","Multimedia_0000_54.svg","Multimedia_0010_95.svg","Multimedia_0020_55.svg","Multimedia_0030_150.svg","Multimedia_0031_151.svg","Multimedia_0032_152.svg","Multimedia_0033_153.svg","Sicherheit_0010_58.svg","Sicherheit_0020_59.svg","Stromkreise_0000_100.svg","Stromkreise_0010_97.svg","Stromkreise_0100_99.svg","Stromkreise_0110_98.svg","Szenen_0001_90.svg","Szenen_0002_91.svg","Szenen_0010_76.svg","Szenen_0010_89.svg","Szenen_0020_77.svg","Szenen_0030_78.svg","Szenen_0040_79.svg","Szenen_0050_80.svg","Szenen_0060_81.svg","Szenen_0070_82.svg","Szenen_0080_83.svg","Szenen_0090_84.svg","Szenen_0100_85.svg","Szenen_0101_85.svg","Szenen_0110_86.svg","Szenen_0111_86.svg","Szenen_0120_87.svg","Szenen_0130_124.svg","Tuerkommunikation_0010_101.svg","Tuerkommunikation_0010_125.svg","Tuerkommunikation_0011_127.svg","Tuerkommunikation_0011_128.svg","Tuerkommunikation_0030_94.svg","Tuerkommunikation_0030_96.svg","Tuerkommunikation_0040_95.svg","Tuerkommunikation_0050_109.svg","Tuerkommunikation_0060_131.svg","Tuerkommunikation_0061_131.svg","Tuerkommunikation_0070_132.svg","Tuerkommunikation_0071_132.svg","Tuerkommunikation_0080_133.svg","Tuerkommunikation_0081_133.svg","Tuerkommunikation_0090_134.svg","Tuerkommunikation_0091_134.svg","Tuerkommunikation_0092_143.svg","Tuerkommunikation_0093_144.svg","Tuerkommunikation_0094_145.svg","Wellness_0000_56.svg","Wellness_0000_57.svg","Zeit_0000_93.svg"],"modern":["Alarm_Anlage_Bewegungsmelder_001_OK.svg","Alarm_Anlage_Bewegungsmelder_002_NOK.svg","Alarm_centralunit_001_active.svg","Alarm_centralunit_001_inactive.svg","Alarm_centralunit_002_active.svg","Alarm_centralunit_002_inactive.svg","Alarm_centralunit_contact_001_NOK.svg","Alarm_centralunit_contact_001_O
12K.svg","Alarm_centralunit_glassensor_001_NOK.svg","Alarm_centralunit_glassensor_001_OK.svg","Alarm_centralunit_movementdetector_001_NOK.svg","Alarm_centralunit_movementdetector_001_OK.svg","Alarm_centralunit_movementdetector_002_NOK.svg","Alarm_centralunit_movementdetector_002_OK.svg","Alarm_centralunit_siren_001.svg","Alarm_general_001_acknowledgement.svg","Alarm_general_001_incomin.svg","Alarm_general_001_outgoing.svg","Alarm_general_001_reset.svg","Alarm_general_001_warning.svg","Alarm_general_002_warning.svg","Alarm_general_003_warning.svg","Alarm_general_004_warning.svg","Alarm_general_smokedetector_001_NOK.svg","Alarm_general_smokedetector_001_OK.svg","Area_General_001_babychange.svg","Area_General_001_elevator.svg","Area_General_001_firstaid.svg","Area_General_001_handicaped.svg","Area_General_001_parkplace.svg","Area_General_001_toilet_men.svg","Area_General_001_toilet_woman.svg","Area_floor_001_attic.svg","Area_floor_001_basement.svg","Area_floor_001_firstfloor.svg","Area_floor_001_general.svg","Area_floor_001_groundfloor.svg","Area_floor_001_staircase.svg","Area_outside_001_garden.svg","Area_outside_001_pool.svg","Area_outside_001_poolcover.svg","Area_outside_001_poollight.svg","Area_outside_001_terrace.svg","Area_outside_002_garden.svg","Area_person_001_boy.svg","Area_person_001_girl.svg","Area_person_001_man.svg","Area_person_001_men.svg","Area_person_001_woman.svg","Area_room_001_bathroom.svg","Area_room_001_bedroom.svg","Area_room_001_cleaning.svg","Area_room_001_dining.svg","Area_room_001_dressing.svg","Area_room_001_freetime.svg","Area_room_001_kitchen.svg","Area_room_001_living.svg","Area_room_001_office.svg","Area_room_001_sauna.svg","Area_room_001_toilet.svg","Area_room_001_wardrobe.svg","Area_room_002_bathroom.svg","Area_room_002_bedroom.svg","Area_room_002_cleaning.svg","Area_room_002_living.svg","Area_room_002_sauna.svg","Area_room_003_sauna.svg","Area_room_004_sauna.svg","Arrows_002_left.svg","Astro_001_astrotime.svg","Astro_001_compass_0.svg","Astro_001_compass_135.svg","Astro_001_compass_180.svg","Astro_001_compass_225.svg","Astro_001_compass_270.svg","Astro_001_compass_315.svg","Astro_001_compass_45.svg","Astro_001_compass_90.svg","Astro_Moon_001_rise.svg","Astro_Moon_001_set.svg","Astro_Sun_001_rise.svg","Astro_Sun_001_set.svg","Astro_Sun_position_001_0.svg","Astro_Sun_position_001_10.svg","Blinds_Awning_001_0.svg","Blinds_Awning_001_100.svg","Blinds_curtain_001_open.svg","Blinds_door_001_0.svg","Blinds_door_01_100.svg","Blinds_horizontal_001_0.svg","Blinds_horizontal_001_100.svg","Blinds_slats_001_0.svg","Blinds_slats_001_100.svg","Blinds_vertical_001_0.svg","Blinds_vertical_001_100.svg","Blinds_vertical_001_standard.svg","Blinds_vertical_002.svg","Blinds_vertical_003.svg","Camera_001.svg","Camera_002.svg","Camera_003.svg","Camera_004_Legacy.svg","Camera_005_Legacy.svg","Camera_006_Legacy.svg","Camera_007.svg","Camera_008.svg","Camera_009_Legacy.svg","Camera_010_Legacy.svg","Climate_Profile_001_standby.svg","Climate_cooling_001_100.svg","Climate_cooling_001_level_1.svg","Climate_forced_001_comfort.svg","Climate_forced_001_cooling.svg","Climate_forced_001_night.svg","Climate_forced_001_standby.svg","Climate_heating_001_level_1.svg","Climate_heating_001_stufe_5.svg","Climate_humidity_001.svg","Climate_mode_001_buildingprotection.svg","Climate_mode_001_comfort.svg","Climate_mode_001_frostprotection.svg","Climate_mode_001_heatprotection.svg","Climate_mode_001_night.svg","Climate_mode_001_standby.svg","Climate_profile_001_buildingprotection.svg","Climate_profile_001_comfort.svg","Climate_profile_001_eco.svg","Climate_profile_001_frostheatprotection.svg","Climate_temperature_001_Celcius.svg","Climate_temperature_001_cooling.svg","Climate_temperature_001_fahrenheit.svg","Climate_temperature_001_heating.svg","Climate_temperature_001_outside.svg","Climate_temperature_001_setpoint.svg","Climate_temperature_001_setpointshift.svg","Climate_temperature_001_standard.svg","Climate_valve_001_open.svg","Climate_ventilation_001_adjustment.svg","Climate_ventilation_001_auto.svg","Climate_ventilation_001_manual.svg","Climate_ventilation_001_off.svg","Climate_ventilation_001_on.svg","Climate_ventilation_001_speed_3.svg","Climate_ventilation_002_speed_3.svg","Climate_ventilation_003.svg","Climate_wallheating_001.svg","Climate_wallheating_001_off.svg","Climate_wallheating_001_on.svg","Doorc
12ommunication_001_bell_off.svg","Doorcommunication_001_bell_on.svg","Doorcommunication_001_camera.svg","Doorcommunication_001_key.svg","Doorcommunication_001_picture.svg","Doorcommunication_002_bell_off.svg","Doorcommunication_002_bell_on.svg","Doorcommunication_002_key.svg","Doorcommunication_002_pictures.svg","Doorcommunication_002_speak_off.svg","Doorcommunication_002_speak_on.svg","Doorcommunication_003_speak_off.svg","Doorcommunication_003_speak_on.svg","General_001_SOS.svg","General_001_configuration.svg","General_001_delete.svg","General_001_functions.svg","General_001_minus.svg","General_001_plus.svg","General_001_save.svg","General_001_settings.svg","General_power_001_on_off.svg","General_ramp_001_empty.svg","General_ramp_001_full.svg","General_ramp_002_empty.svg","General_ramp_002_full.svg","General_screen_001_cleaner.svg","Hotel_001_MUR.svg","Hotel_001_hotelcard.svg","Hotel_001_reader.svg","Hotel_001_socket.svg","Lights_001_colourtemperature.svg","Lights_001_reading_off.svg","Lights_001_reading_on.svg","Lights_002_colourtemperature.svg","Lights_002_wall_0.svg","Lights_002_wall_100.svg","Lights_LED_001.svg","Lights_LED_001_off.svg","Lights_LED_001_on.svg","Lights_LEDstripe_001_0.svg","Lights_LEDstripe_001_100.svg","Lights_LEDstripe_002_0.svg","Lights_LEDstripe_002_100.svg","Lights_LEDstripe_003_0.svg","Lights_LEDstripe_003_100.svg","Lights_LEDstripe_004_0.svg","Lights_LEDstripe_004_100.svg","Lights_bulb_001_off.svg","Lights_bulb_001_on.svg","Lights_ceiling_001_off.svg","Lights_ceiling_001_on.svg","Lights_dimming_001_down.svg","Lights_floorlamp_001_0.svg","Lights_floorlamp_001_100.svg","Lights_floorlamp_002_0.svg","Lights_floorlamp_002_100.svg","Lights_floorlamp_003_0.svg","Lights_floorlamp_003_100.svg","Lights_mirror_001_0.svg","Lights_mirror_001_100.svg","Lights_mirror_002_0.svg","Lights_mirror_002_100.svg","Lights_office_001_100.svg","Lights_orientation_001_off-01.svg","Lights_orientation_001_off.svg","Lights_orientation_001_on-01.svg","Lights_orientation_001_on.svg","Lights_orientation_002_off.svg","Lights_orientation_002_on.svg","Lights_outdoor_001_0.svg","Lights_outdoor_001_100.svg","Lights_outdoor_002_0.svg","Lights_outdoor_002_100.svg","Lights_outdoor_003_0.svg","Lights_outdoor_003_100.svg","Lights_outdoor_004_0.svg","Lights_outdoor_004_100.svg","Lights_pendant_001_0.svg","Lights_pendant_001_100.svg","Lights_spot_001_off.svg","Lights_spot_001_on.svg","Lights_stairs_001_0.svg","Lights_stairs_001_100.svg","Lights_table_001_0.svg","Lights_table_001_100.svg","Measurements_001_C02.svg","Measurements_001_circle.svg","Measurements_001_electro.svg","Measurements_001_humidity.svg","Measurements_001_limitvalue.svg","Measurements_001_percentage.svg","Measurements_001_pointer.svg","Measurements_001_wave.svg","Measurements_tank_001_empty.svg","Measurements_tank_001_full.svg","Motor_001.svg","Multimedia_001_beamer.svg","Multimedia_001_cd.svg","Multimedia_001_mp3.svg","Multimedia_001_music.svg","Multimedia_001_pause.svg","Multimedia_001_play.svg","Multimedia_001_playlist.svg","Multimedia_001_radio.svg","Multimedia_001_repeat.svg","Multimedia_001_screen.svg","Multimedia_001_shuffle.svg","Multimedia_001_stop.svg","Multimedia_001_toggle.svg","Multimedia_001_tv.svg","Multimedia_001_video.svg","Multimedia_001_website.svg","Multimedia_power_001.svg","Multimedia_volume_000_speaker.svg","Multimedia_volume_001_mute.svg","Multimedia_volume_001_ramp.svg","Multimedia_volume_001_speaker.svg","Multimedia_volume_002_ramp.svg","Multimedia_volume_002_speaker.svg","Multimedia_volume_003_speaker.svg","Mutimedia_001_archive.svg","Mutimedia_001_usb.svg","Navigation_001_OK.svg","Navigation_001_back.svg","Navigation_001_browser.svg","N
12avigation_001_calendar.svg","Navigation_001_category_0.svg","Navigation_001_category_1.svg","Navigation_001_category_2.svg","Navigation_001_category_3.svg","Navigation_001_category_4.svg","Navigation_001_category_5.svg","Navigation_001_category_6.svg","Navigation_001_category_7.svg","Navigation_001_category_8.svg","Navigation_001_category_9.svg","Navigation_001_configuration.svg","Navigation_001_empty.svg","Navigation_001_escape.svg","Navigation_001_groundplan.svg","Navigation_001_home.svg","Navigation_001_zoom.svg","Navigation_002_groundplan.svg.svg","Navigation_002_home.svg","Navigation_002_zoom.svg","Navigation_003_groundplan.svg","Navigation_003_zoom.svg","Navigation_005_home.svg","Navigation_01_link.svg","Navigation_chart_001_collumn.svg","Navigation_chart_001_line.svg","Navigation_home_001.svg","Navigation_home_003.svg","Navigation_home_004.svg","Navigation_info_001.svg","Presence_simulation_001_active.svg","Presence_simulation_001_day.svg","Presence_simulation_001_delay.svg","Presence_simulation_001_new.svg","Presence_simulation_001_playing.svg","Presence_simulation_001_record.svg","Presence_simulation_001_reset.svg","Presence_simulation_001_select.svg","Presence_simulation_001_time.svg","Scene_001_Christmas.svg","Scene_001_absent.svg","Scene_001_alarm.svg","Scene_001_baby.svg","Scene_001_candle.svg","Scene_001_cleaning.svg","Scene_001_coffee.svg","Scene_001_cooking.svg","Scene_001_day.svg","Scene_001_dinner.svg","Scene_001_garden.svg","Scene_001_movie.svg","Scene_001_musik.svg","Scene_001_night.svg","Scene_001_number_00.svg","Scene_001_number_01.svg","Scene_001_number_02.svg","Scene_001_number_03.svg","Scene_001_number_04.svg","Scene_001_number_05.svg","Scene_001_number_06.svg","Scene_001_number_07.svg","Scene_001_number_08.svg","Scene_001_party.svg","Scene_001_presentation.svg","Scene_001_reading.svg","Scene_001_relax.svg","Scene_001_sleeping.svg","Scene_001_tv.svg","Scene_001_visit.svg","Scene_002_presentation.svg","Scene_blinds_001.svg","Switching_001_cooker.svg","Switching_001_cooker_V2.svg","Switching_001_device.svg","Switching_001_dishwasher.svg","Switching_001_dryer.svg","Switching_001_freezer.svg","Switching_001_fridge.svg","Switching_001_hood.svg","Switching_001_oven.svg","Switching_001_sauna.svg","Switching_001_socket.svg","Switching_001_socketLED.svg","Switching_001_washing_machine.svg","Switching_001_whirlpool.svg","Switching_Socket_Outside_001_off-01.svg","Switching_Socket_Outside_001_off.svg","Switching_Socket_Outside_001_on-01.svg","Switching_Socket_Outside_001_on.svg","Switching_battery_001_bike.svg","Switching_battery_001_car.svg","Switching_battery_001_general.svg","Switching_battery_bike_001_off.svg","Switching_battery_bike_001_on.svg","Switching_battery_car_001_off.svg","Switching_battery_car_001_on.svg","Switching_battery_general_001_off.svg","Switching_battery_general_001_on.svg","Switching_circle_001_off.svg","Switching_circle_001_on.svg","Switching_circle_001_toggle.svg","Switching_cooker_001_off.svg","Switching_cooker_001_off_V2.svg","Switching_cooker_001_on.svg","Switching_cooker_001_on_V2.svg","Switching_device_001_off.svg","Switching_device_001_on.svg","Switching_dishwasher_001_off.svg","Switching_dishwasher_001_on.svg","Switching_dryer_001_off.svg","Switching_dryer_001_on.svg","Switching_freezer_001_off.svg","Switching_freezer_001_on.svg","Switching_fridge_001_off.svg","Switching_fridge_001_on.svg","Switching_hood_001_off.svg","Switching_hood_001_on.svg","Switching_lock_001_off.svg","Switching_lock_001_on.svg","Switching_oven_001_off.svg","Switching_oven_001_on.svg","Switching_power_001.svg","Switching_sauna_001_off.svg","Switching_sauna_001_on.svg","Switching_socketLED_001_off.svg","Switching_socketLED_001_on.svg","Switching_socket_001_off.svg","Switching_socket_001_on.svg","Switching_washing_machine_001_off.svg","Switching_washing_machine_001_on.svg","Switching_whirlpool_001_off.svg","Switching_whirlpool_001_on.svg","System_001_brightness.svg","System_001_file.svg","System_001_folder.svg","System_001_font.svg","System_001_fontsize.svg","System_001_forbidden.svg","System_001_invalid.svg","System_001_keyboard.svg","System_001_language.svg","System_001_list.svg","System_001_password.svg","System_001_restore.svg","System_001_timeserver.svg","System_001_trashcan.svg","System_001_undefined.svg","System_001_user.svg","System_002_mail.svg","System_autostart_001.svg","System_brightness_001.svg","System_file_001_tree.svg","System_file_002_tree.svg","System_network_001.svg","System_network_001_unavailable.svg","System_refresh_001.svg","System_settings_001.svg","System_settings_001_locked.svg","System_user_001_account.svg","System_user_001_address.svg","Timefunctions_date_001_date.svg","Timefunctions_date_001_time.svg","Timefunctions_timeswitch_001.svg","Timefunctions_timeswitch_001_blinds.svg","Timefunctions_timeswitch_001_calendar.svg","Timefunctions_timeswitch_001_disable.svg","Timefunctions_timeswitch_001_lights.svg","Timefunctions_timeswitch_001_timer_1.svg","Timefunctions_timeswitch_001_timer_10.svg","Timefunctions_timeswitch_001_timer_11.svg","Timefunctions_timeswitch_001_timer_12.svg","Timefunctions_timeswitch_001_timer_13.svg","Timefunctions_timeswitch_001_timer_14.svg","Timefunctions_timeswitch_001_timer_15.svg","Timefunctions_timeswitch_001_timer_16.svg","Timefunctions_timeswitch_001_timer_2.svg","Timefunctions_timeswitch_001_timer_3.svg","Timefunctions_timeswitch_001_timer_4.svg","Timefunctions_timeswitch_001_timer_5.svg","Timefunctions_timeswitch_001_timer_6.svg","Timefunctions_timeswitch_001_timer_7.svg","Timefunctions_timeswitch_001_timer_8.svg","Timefunctions_timeswitch_001_timer_9.svg","Timefunctions_week_blinds_001_down.svg","Timefunctions_week_blinds_001_up.svg","Timefunctions_week_light_001_off.svg","Timefunctions_week_light_001_on.svg","Timefunctions_weekend_blinds_001_down.svg","Timefunctions_weekend_blinds_001_up.svg","Timefunctions_weekend_light_001_off.svg","Timefunctions_weekend_light_001_on.svg","Weather_001_brightness.svg","Weather_001_brightness_1.svg","Weather_001_brightness_2.svg","Weather_001_brightness_3.svg","Weather_001_brightness_4.svg","Weather_001_general.svg","Weather_001_humidity.svg","Weather_001_light_intensity.svg","Weather_001_light_radiation.svg","Weather_001_rain.svg","Weather_001_windalarm.svg","Weather_001_windchill.svg","Weather_001_winddirection.svg","Weather_002_windalarm.svg","Weather_condition_001_comfort.svg","Weather_condition_001_sultry.svg","Weather_summer_winter.svg","Weather_sun_001.svg","Windows-doors_001_closed.svg","Windows-doors_001_open.svg","Windows-doors_garage_001_close.svg","Windows-doors_garage_001_open.svg","Windows-doors_gate_001_closed.svg","Windows-doors_gate_001_open.svg","Windows-doors_skylight_001_closed.svg","Windows-doors_skylight_001_opened.svg","Windows-doors_window_001_closed.svg","Windows-doors_window_001_opened.svg","Arrows_001_down.svg","Arrows_001_left.svg","Arrows_001_right.svg","Arrows_001_up.svg","Arrows_001_updown.svg","Arrows_002_leftright.svg","Arrows_002_right.svg","Arrows_003_left.svg","Arrows_003_right.svg","Arrows_004_back.svg","Arrows_004_download.svg","Arrows_004_upload.svg","Arrows_005_left.svg","Charging_battery_wireless_001.svg","General_wheelchair_001.svg","Lights_office_001_0.svg","Lights_wall_002_0.svg","Lights_wall_002_100.svg","Lights_wall_003_100.svg","Lights_wall_004_100.svg","Presence_simulation_001_general.svg"],"revox":["Actions_Next.svg","Actions_Power-off.svg","Actions_Previous.svg","Actions_Star.svg","Actions_Volume-down.svg","Actions_Volume-up.svg","User_Favorit_1.svg","User_Favorit_2.svg","User_Favorit_3.svg","User_Favorit_4.svg","User_1.svg","User_2.svg","User_3.svg","User_4.svg"],"unique":["Graft_010_heating-thermostat-classic_ENG.svg","Graft_011_blinds-switch-classic_ENG.svg","Graft_012_blinds-switch-classic.svg","Graft_013_volume-rotary-switch_ENG.svg","Graft_014_volume-rotary-switch.svg","Graft_015_volume-switch.svg","Graft_016_volume-switch_ENG.svg","Graft_01_Fingerprints.svg","Graft_01_fracture.svg","Graft_01_light-classic.svg","Graft_01_light-switch.svg","Graft_01_lightswitch-classic.svg","Graft_02_Fingerprints.svg","Graft_02_blinds-switch-classic.svg","Graft_02_blinds-switch.svg","Graft_02_fracture.svg","Graft_02_light-classic.svg","Graft_03_blinds-switch-classic.svg","Graft_03_light-classic.svg","Graft_03_spots.svg","Graft_04_light-classic.svg","Graft_04_spots.svg","Graft_04_volume-rotary-switch.svg","Graft_05_heating-thermostat-classic.svg","Graft_05_light-classic.svg","Graft_05_melt.svg","Graft_05_spots.svg","Graft_06_light-classic.svg","Graft_06_spots.svg","Graft_07_light-classic.svg","Graft_07_spots.svg","Graft_08_light-classic.svg","Graft_08_spots.svg","Graft_09_heating-thermostat-classic.svg","Ippolito_Fleitz_Group-AH-AH-AH-YEAH.svg","Ippolito_Fleitz_Group-ATMOSPHERE.svg","Ippolito_Fleitz_Group-CRYING-AT-THE-DISCO.svg","Ippolito_Fleitz_Group-DANCE-DANCE-DANCE.svg","Ippolito_Fleitz_Group-DONT-STOP-ME.svg","Ippolito_Fleitz_Group-FOREVER-JUNG.svg","Ippolito_Fleitz_Group-HELLO-DARKNESS.svg","Ippolito_Fleitz_Group-HERE-COMES-THE-SUN.svg","Ippolito_Fleitz_Group-INTO-THE-LIGHT.svg","Ippolito_Fleitz_Group-NIGHT-FEVER.svg","Ippolito_Fleitz_Group-OK.svg","Ippolito_Fleitz_Group-OUT-OF-THE-DARK.svg","Ippolito_Fleitz_Group-PUSH-ME.svg","Ippolito_Fleitz_Group-TOUCH-ME.svg","Ippolito_Fleitz_Group-TURN-ME-ON.svg","Ippolito_Fleitz_Group-YOU-ARE-MY-FIRE.svg","KOMO_Jung-Action-Words-65x65-280421_01.svg","KOMO_Jung-Action-Words-65x65-280421_02.svg","KOMO_Jung-Action-Words-65x65-280421_03.svg","KOMO_Jung-Action-Words-65x65-280421_04.svg","KOMO_Jung-Action-Words-65x65-280421_05.svg","KOMO_Jung-Action-Words-65x65-280421_06.svg","KOMO_Jung-Action-Words-65x65-280421_07.svg","KOMO_Jung-Action-Words-65x65-280421_08.svg","KOMO_Jung-Action-Words-65x65-280421_09.svg","KOMO_Jung-Action-Words-65x65-280421_10.svg","KOMO_Jung-Action-Words-65x65-280421_11.svg","KOMO_Jung-Action-Words-65x65-280421_12.svg","KOMO_Jung-Action-Words-65x65-280421_13.svg","KOMO_Jung-Action-Words-65x65-280421_14.svg","KOMO_Jung-Action-Words-65x65-280421_15.svg","KOMO_Jung-Dimmer-65x65-280421_01.svg","KOMO_Jung-Dimmer-65x65-280421_02.svg","KOMO_Jung-Icons-65x65-280421_01.svg","KOMO_Jung-Icons-65x65-280421_02.svg","KOMO_Jung-Icons-65x65-280421_03.svg","KOMO_Jung-Icons-65x65-280421_04.svg","KOMO_Jung-Icons-65x65-280421_05.svg","KOMO_Jung-Icons-65x65-280421_06.svg","KOMO_Jung-Letter-Code-65x65-270421_01.svg","KOMO_Jung-Letter-Code-65x65-270421_02.svg","KOMO_Jung-Letter-Code-65x65-270421_03.svg","KOMO_Jung-Letter-Code-65x65-270421_04.svg","KOMO_Jung-Letter-Code-65x65-270421_05.svg","KOMO_Jung-Pattern-65x65-290421_01.svg","KOMO_Jung-Pattern-65x65-290421_02.svg","KOMO_Jung-Pattern-65x65-290421_03.svg","KOMO_Jung-Pattern-65x65-290421_04.svg","KOMO_Jung-WordandIcons-65x65-280421_01.svg","KOMO_Jung-WordandIcons-65x65-280421_02.svg","KOMO_Jung-WordandIcons-65x65-280421_03.svg"]}')},9881:t=>{"use strict";
12t.exports=JSON.parse('{"graphicTool":{"breadcrumb":{"gtShop":"HOME // JUNG Graphic Tool","home":"HOME","graphicTool":"JUNG Graphic Tool"},"homepage":{"DigitalHeadline":"","DigitalBtn":"","DigitalLink":"","DigitalText":"","DigitalBtnMobile":"","DigitalBg":"","DigitalBgMobile":"","DigitalCenterImage":"","LaserHeadline":"","LaserBtn":"","LaserLink":"","LaserText":"","LaserBtnMobile":"","LaserBg":"","LaserBgMobile":"","LaserCenterImage":"","LaserAnimMobile":"","LaserAnim":"","LabelHeadline":"","LabelBtn":"","LabelLink":"","LabelText":"","LabelBtnMobile":"","LabelBg":"","LabelBgMobile":"","LabelCenterImage":"","GraphicHeadline":"","GraphicSubTitle":"","GraphicBtn":"","GraphicBtnMobile":"","GraphicText":"","GraphicLink":"","GraphicBg":"","GraphicBgMobile":"","GraphicCenterImage":"","DefaultHeadline":"","DefaultHeadlineMobile":"","DefaultSubTitle":" ","DefaultText":"","DefaultBtn":"","DefaultBtnMobile":"","DefaultBg":"","DefaultBgMobile":"","DefaultCenterImage":"","Account":"Sie haben schon ein myJUNG-Konto.","AccountTablet":"myJUNG Anmeldung","Login":"Login","LoggedInMessage":"Du bist eingeloggt"},"navBar":{"listingNavTitle":"Auswahl","collectionNavTitle":"Sammlung","projectsNavTitle":"Projekte","ordersNavTitle":"Bestellungen","ordersPDF":"Konfigurations-PDF"},"offCanvas":{"articleCounter":"Zähler"},"tableProjects":{"descriptionOfProject":"Beschreibung des Projekts","description":"Bezeichnung","content":"Inhalt","created":"Erstellt","ordered":"Bestellt","totalSum":"Gesamt","actions":"Aktionen","btnAction":"Bearbeiten","btnTableHeadAction":"Auswählen","price":"Preis","item":"Artikel","listTitle":"Artikel","projectsTitle":"Projekte","project":"Projekt","product":"Produkt","quantity":"Anzahl","totalPrice":"Wert","duplicate":"Duplizieren","archive":"Archivieren","activate":"Aktivieren","edit":"Editieren","delete":"Löschen","resend":"Erneut senden","configurationPdf":"Konfigurations-PDF","orderDetails":"Bestelldetails","orderNumber":"Ordernummer","numberPrintedLabels":"Anzahl der gedruckten Labeles","printLabel":"Labels drucken","label":"Label","headlineQuantity":"Menge","back":"Zurück","itemNumber":"Art.-Nr.","deleteMessage":"Möchten Sie das Projekt endgültig löschen?","confirmText":"Ja","denyText":"Nein","sharedProjects":"Geteilte Projekte","owner":"Eigentümer","personal":"Persönlich","shareProject":"Projekt teilen","inviteMore":"Teilnehmer Einladen","stopShareProject":"Teilen Beenden","customerPlaceholderEmail":"Kunden-eMail","sendAction":"Teilen","shareProjectBtnTitle":"Weitere Personen einladen"},"invitedCustomersTable":{"heading":"Eingeladene Personen","emailAddress":"E-Mail-Adresse","customerName":"Kundenname","invitedDate":"Einladungsdatum","status":"Status","actions":"Aktionen","actionMessage":"Wollen Sie das Teilen beenden?","statusExpired":"Abgelaufen","statusAccepted":"Akzeptiert","statusPending":"Ausstehend","statusDeclined":"Abgelehnt","deleteAction":"Teilen beenden","resendAction":"Neu senden"},"print":{"printOutLabels":"Labels ausdrucken","editOrderText":"Bearbeiten, bestellen oder verwalten Sie ihre Produkte. Sie können bearbeitete Produkte auswählen, bestellen oder in Projekte verschieben. Projekte bieten ihnen Möglichkeiten zur Speicherung und Verwaltung ihrer Aufträge.","printLabel":"Labels drucken","createPdfText":"Erstellen Sie aus ihre individuellen Labels ein PDF und drucken dieses einfach mit ihrem Drucker aus.","savePdf":"PDF speichern","printOrSaveLabel":"Labels ausdrucken oder speichern","backToProject":"Zurück","backToCollection":"Zurück","floor":"Etage"},"processes":{"processesHeadline":"Gemischte Produktionsverfahren","processesText":"Bitte beachten Sie, dass die gewählten Produkte mit verschiedenen Verfahren individualisiert werden. Die Verfahren unterscheiden sich in Optik und Haptik, haben aber eines gemeinsam: die wertige Anmutung eines Jung-Produkts.","processesTextExtra":"Die Farbumschläge der Lasergravuren bei den Echtmetallen Aluminium Dark (ALD) und Aluminium Anthrazit (ALAN) weichen von der JUNG-Standardfarbe ab.","processesPrintBtn":"Informationen zu den Druckverfahren","processesPrintUrl":"/de-DE/Service/Tools-Services/GRAPHIC-TOOL/#methoden","processesLaserBtn":"Informationen zur Lasergravur"},"listing":{"seeAllProducts":"Zu den Produkten","resultsLimit":"Zeige %limit% Produkte","seriesSelectTitle":"Serie wählen","searchPlaceholder":"Artikelnummer oder Text","favoriteProductsTitle":"Favoriten","serieProductsTitle":"Serien","productsSectionListingTitle":"Produkte","listingPageTitle":"JUNG Graphic Tool","listingPageDescription":"Veredeln und kennzeichenen Sie die Oberflächen von JUNG Produkten nach Wunsch."},"configurator":{"productsCollectionOne":"","productsCollectionTwo":"Produkt<span class=\'nxs-span-plural\'>e</span> zur Sammlung hinzufügen","manageProducts":"Sie können ihre Produkte in Projekten verwalten.","registration":"Zur Anmeldung","goToCollection":"Zur Sammlung","goToProjects":"Zum Projekt","register":"Anmelden","toRegister":"Registrieren","welcome":"Willkommen","addProjectOne":"","addProjectTwo":"Produkt<span class=\'nxs-span-plural\'>e</span> zu Projekt hinzufügen","newProject":"Neues Projekt","successMessageOne":"Sie haben","successMessageTwoProjects":"Produkt<span class=\'nxs-span-plural\'>e</span> erfolgreich zum Projekt hinzugefügt!","successMessageTwoCollection":"Produkt<span class=\'nxs-span-plural\'>e</span> erfolgreich zur Sammlung hinzugefügt!","backBtn":"Zurück"},"collection":{"btnLabelEdit":"Bearbeiten","btnLabelDuplicate":"Duplizieren","btnLabelDelete":"Löschen","errorMessageAjaxAction":"Etwas ist schief gelaufen! Bitte laden Sie die Seite neu und versuchen Sie es erneut!","retryAfterMessageAjax":"Die PDF-Datei wird noch generiert. Bitte versuchen Sie es in <span></span> Sekunden erneut.","labelsFilterTitle":"Alle Verarbeitungen","processedFilterTitle":"Bearbeitet","productsSectionListingTitle":"Ihre gesammelten Produkte","listingPageTitle":"JUNG Graphic Tool","listingPageDescription":"Bearbeiten, bestellen oder verwalten Sie ihre Produkte. Sie können bearbeitete Produkte auswählen, bestellen oder in Projekte verschieben. Projekte bieten ihnen Möglichkeiten zur Speicherung und Verwaltung ihrer Aufträge."},"projects":{"errorProjectExists":"Es existiert bereits ein Projekt mit diesem Namen","savePdf":"PDF speichern","infoProductsMessagePdf":"Ausgewählte Produkte für PDF konfiguriert/verfügbar","nrSelectedProjects":"Ausgewählte <span>%nrSelected%</span> Produkte","toWholesale":"zum GroÃhandel","addToCart":"In den Warenkorb","filterActive":"Aktive Projekte","filterArchive":"Archiv","filterShared":"Geteiltes Projekt","newProjectPlaceholder":"Bezeichnung des Projekts","newProjectButton":"Neu","searchPlaceholder":"Projektnummer oder Text","pageTitle":"Projekte","pageDescription":"Verwalten Sie ihre Projekte und erstellen daraus Bestellungen.","articleCounter":"Zähler:","form":{"projectName":"Bezeichnung des Projekts","projectDescription":"Beschreibung des Projekts","btnSave":"Speichern","dateCreated":"Erstellt","article":"Artikel","dateOrdered":"Bestellt","none":"Nein","partial":"Teilwise","sharedProject":"Geteiltes Projekt"}},"orders":{"searchPlaceholder":"Ordernummer oder Text","filterOpenOrders":"Offene Bestellungen","filterFinishedOrders":"Abgeschlossene Bestellungen","selectFavoriteSeries":"Bitte wählen Sie einen Favoriten order eine Serie aus.","btnToOrder":"Zur Bestellübersicht","placeholderEmail":"Ihre E-Mail-Adresse*","placeholderPassword":"Passwort*","pageTitle":"Konfigurations-PDF","pageDescription":"Hier können Sie sich Ihre Konfigurations-PDF\'s ansehen","projectName":"Projektname","date":"Datum","number":"Anzahl","totalSum":"Wert","resultsLimit":"Zeige %limit% PDFs"},"orderPdf":{"customer":"Auftraggeber:","customerNumber":"Kd.-Nr.:","specialistPartner":"Bitte geben Sie diesen Ausdruck mit Ihrer Bestellung an ihren Fachpartner.","noSpecialistPartner":"Wenn Sie keinen Fachpartner haben, können Sie sich unter mein-elektroinstallateur.de informieren.","configurationNumber":"Konfigurationsnummer:","projectName":"Projektname:","date":"Datum: %date%","footerTermsCondition":"Die Verkaufs- und Lieferbedingungen finden Sie immer aktuell auf unserer Website unter: jung.de/terms","footer":"<p><span>ALBRECHT JUNG GMBH & CO.KG.</span> KupferstraÃe 17â19 ⢠44532 Lünen ⢠Amtsgericht Iserlohn HRA 2921 ⢠Persönlich haftende Gesellschafterin: Jung-Elektro GmbH ⢠Amtsgericht Iserlohn HRB 4992 ⢠Geschäftsführer: Michael Eyrich-Ravens ⢠Martin Herms Vorsitzender des Aufsichtsrats: Harald Jung ⢠Commerzbank ⢠IBAN DE 42 4584 0026 0640 4040 00 ⢠BIC COBADEFF458 ⢠Deutsche Bank IBAN DE 32 4507 0002 0207 0308 00 ⢠BIC DEUTDEDW450 ⢠WEEE-REG.-NR. DE 64244154 ⢠www.jung.de ⢠MADE IN GERMANY</p>","item":"Pos.","itemNumber":"Art.-Nr.","totalQuantity":"Gesamtmenge","quantityIndividualization":"Menge individualisierung","itemPosition":"Position","piece":"Stück","article":"Artikel","description":"Beschreibung","processingMethod":"Verarbeitung:","includingProcessingFee":"zzgl. Verarbeitungsgebühr","pdfFileName":"Dateiname:","usage":"Individuelle Beschriftung:","floor":"Etage:","room":"Raum:","quantityTh":"Menge","fileTh":"Datei","nameJung":"ALBRECHT JUNG GMBH & CO. KG","artPrice":"Art.-Preis","totalPrice":"Gesamtpreis","summaryTotalGroupPrice"
12:"Gesamtpreis PG %group% ohne MwSt.","summaryTotalTaxes":"Gesamt ohne MwSt.","summaryVat":"zzgl %taxRate%% MwSt.","summaryTotalVat":"Gesamt inkl. MwSt. (Deutschland)","summaryRecommendedRetailPrice":"Unverbindliche Preisempfehlung ohne MwSt.","summaryRecommendedRetailPriceValidity":"Diese Preise sind 3 Monate lang gültig","summaryContactPrice":"Zur Preisermittlung auÃerhalb Deutschlands wenden Sie sich bitte an die jeweilige JUNG Vertretung in ihrem Land. Diese finden Sie unter: www.jung-salescontact.com","summaryCustomMade":"Bitte beachten Sie: Sonderanfertigungen sind vom Umtausch und Rückgabe ausgeschlossen.","priceGroup":"Preisgruppe","price":"Preis","quantity":"Menge","singleQuantity":"Einzelmenge","sum":"Summe"},"checkout":{"infoMsg":"Bitte wenden Sie sich an Ihren zuständigen Vertriebsmitarbeiter","infoPopupDeliveryTitle":"Dieser Artikel ist in der gewünschten Menge nicht verfügbar","infoPopupDeliveryText":"Bitte reduzieren Sie die Menge des ausqewählten Artikels order löschen ohne aus dem Warenkorb. Sie können anschlieÃend weiter zur Kasse gehen. In dringenden Fällen wenden Sie sich bitte an Ihren zuständigen Vertriebsmitarbeiter."},"printingMethods":{"bedruckbar":"bedruckbar","labelbar":"labelbar","laserbar":"laserbar","print":"bedruckbar","label":"labelbar","laser":"laserbar","imprintable":"bedruckbar","labelable":"labelbar","laserable":"laserbar","labellingpossible":"labelbar"},"disclaimers":{"private":"*Unverbindliche Preisempfehlung (DE) inkl. MwSt.","commercial":"*Unverbindliche Preisempfehlung (DE) exkl. MwSt. "},"alerts":{"nonJungStandardProduct":"Der Farbumschlag der Lasergravur weicht vom JUNG-Standard ab.","invalidEmailAddressProvided":"Ungültige E-Mail-Adresse angegeben.","invitationInvalidOrExpired":"Einladung ungültig oder abgelaufen."}},"configurator":{"individualDesignation":"Individuelle Bezeichung","floor":"Etage","room":"Raum","livingRoom":"Wohnzimmer","outletEntrance":"Steckdose Eingang","undo":"Zurück","redo":"Vorwärts","copy":"Kopieren","paste":"Einfügen","delete":"Löschen","remove":"Löschen","editableArea":"Bearbeiten","left":"Links","center":"Center","right":"Richtig","top":"Obere","bottom":"Unterseite","width":"Breite","height":"Höhe","scale":"Skalierung","angle":"Drehung","textProperties":"Texteigenschaften","counterFunction":"Zähler","cancel":"Abbrechen","save":"Speichern","laser":"Lasergravur","print":"Druck","label":"Etikette","defaultColorDescription":"Für diese Farbe/dieses Material vorgesehene Druckfarbe. Andere Farbtöne weichen von JUNG Standardprodukten ab.","defaultBackgroundDescription":"StandardmäÃig wird das Label ohne Hintergrund gedruckt.","selectedColor":"Gewählte Farbe: ","lightSymbols":"Symbole Beleuchtung","legacySymbols":"Symbole Legacy","colors":"Farben","functionInactive":"Funktion inaktiv","functionActive":"Funktion aktiv","prefix":"Prefix","format":"Format","suffix":"Suffix","start":"Start","step":"Schritt","stop":"Ende","default":"Standard","imageUploadError":"Laden Sie ihr eigenes Bild oder Symbol. Erlaubte Dateitypen sind *.jpg, *.png, *.bmp, *.svg. Der Farbmodus CMYK wird nicht unterstützt. Die maximale BildgröÃe ist 3000 x 3000px. Der maximale DatenUpload beträgt 5MB. Der zulässige Upload beträgt 20 Dateien pro Stunde.","loadedImages":"Geladene Bilder","standartImages":"Standard Bilder","noImagesFound":"Keine Bilder gefunden..","loadYourOwnPicture":"Eigenes Bild laden","imageFilterAll":"Alle","imageFilterUploaded":"Geladene","imageFilterStandart":"Standard","IHaveFullRights":"Um ein Motiv (Foto, Logo, Markenzeichen, Spruch u.a.) mittels unseres JUNG Graphic-Tools für sich gestalten und sodann verwenden zu können, m
12üssen Sie die hierfür erforderlichen Rechte an diesem Motiv besitzen. Zudem dürfen mittels unseres JUNG Graphic-Tools keine Kindermotive auf Steckdosen gestaltet und letztlich angebracht werden. Bitte beachten Sie ferner, dass es sich bei der Gestaltung über unseres JUNG Graphic-Tools um Waren handelt, die nicht vorgefertigt sind und für deren Herstellung eine individuelle Auswahl oder Bestimmung durch Sie als Verbraucher maÃgeblich ist, weswegen Ihnen hierzu auch kein Widerrufsrecht zusteht.","pleaseCheckLegalText":"Weitere Details dazu finden Sie in den AGBs","chooseAFile":"Datei auswählen","choose":"Laden","alignment":"Ausrichtung","position":"Positionierung","jungUnique":"JUNG UNIQUE X","jungSymbol":"Symbole und Icons","background":"Hintergrund","textField":"Textfeld","ownPicture":"Eigenes Bild","duplicate":"Duplikat","inverse":"Inverse","reset":"Reset applied filters","imageInversion":"Image inversion","imageAdjustment":"Bearbeiten","grayscale":"Grayscale","invert":"Invert","blur":"Blur","mask":"Mask","pixelate":"Pixelate","noise":"Noise","emboss":"Emboss","enhance":"Enhance","strength":"Strength","whiteLevel":"White level","contrast":"Contrast","hsl":"HSL","rgb":"RGB","red":"Red","green":"Green","blue":"Blue","hue":"Hue","luminance":"Luminance","saturation":"Saturation","brighten":"Brighten","prepareForLasering":"Prepare picture for laser","imageEditing":"Image editing","changeImageInversion":"Change image inversion degree","engraving":"Engraving","selectPrintingMethodType":"Select a printing method type","configuratorSuccessMessage":"You successfully saved the configuration","configuratorFailureMessage":"Saving configuration failed!","collisionDetection":"Einige Elemente sind nicht vollständig sichtbar!","lockedDetection":"Sie können dieses Produkt nicht bearbeiten, da es von einem Ihrer Kollegen gesperrt wurde!","outsideOfBounds":"Eine oder mehrere Konfigurationen liegen auÃerhalb der Produktgrenzen.","All":"All","Alarm":"Alarm","Area":"Bereich","Arrows":"Pfeile","Astro":"Astro","Blinds":"Jalousie","Camera":"Kamera","Climate":"Klima","Motor":"Motor","Doorcommunication":"Türkommunikation","General":"Allgemein","Hotel":"Hotel","Lights":"Beleuchtung","Measurements":"Messung","Multimedia":"Multimedia","Mutimedia":"Multimedia","Navigation":"Navigation","Presence":"Anwesenheit","Weather":"Wetter","Scene":"Szenen","Switching":"Umschalten","System":"System","Graft":"Graft","KOMO":"Komo","Ippolito":"Ippolito Fleitz Group","Timefunctions":"Zeitfunktionen","Windows doors":"Fenster","Charging":"Laden","failedToFetchProduct":"Failed to fetch product information","noWidthOrHeight":"Product does not have set height or width value!","failedToFetchImages":"Failed to fetch images","failedToUploadImage":"Failed to upload an image","failedToDeleteImage":"Failed to delete an image","imageDeletedSuccessfully":"Image deleted successfully","bringToTop":"Nach oben","counterFunctionText":"Bitte beachten Sie: die maximale Anzahl der Schritte ist auf 50 begrenzt. Durch einen hohen Schritt-Wert wird diese Anzahl reduziert","failedImageGeneration":"One or more image/s failed to generate: previewImage - {img1}, media - {img2}","rotate":"Rotieren","number":"Anzahl:","modern":"JUNG Modern","legacy":"JUNG Legacy","revox":"Revox","unique":"Unique","Aktionen":"Aktionen","Antriebe":"Antriebe","Auáenbereich":"Auáenbereich","Beleuchtung":"Beleuchtung","Diverses":"Diverses","Energie":"Energie","Health Care":"Health Care","JUNG":"JUNG","Jalousie Fenster":"Jalousie Fenster","Klima":"Klima","Sicherheit":"Sicherheit","Stromkreise":"Stromkreise","Szenen":"Szenen","Tuerkommunikation":"Tuerkommunikation","Wellness":"Wellness","Zeit":"Zeit","selectMask":"Bitte Maske wählen","jungPalette":"JUNG Palette","ral":"RAL (ähnlich)","greyScale":"Graustufen","lastAction":"Letzte Aktion","Element":"Element","Workspace":"Arbeitsfläche","User":"Benutzer","Actions":"Aktionen","allowedFileTypesMessage":"Erlaubte Dateitypen sind *.jpg, *.png, *.bmp, *.svg.","cmykModeMessage":"Der Farbmodus CMYK wird nicht unterstützt.","maxImageSizeMessage":"Die maximale BildgröÃe ist 3000 x 3000px.","maxDataMessage":"Der maximale Daten-Upload beträgt 5 MB.","periodLimitMessage":"Der zulässige Upload beträgt 20 Dateien pro Stunde.","invali
12d":"Der Startwert darf nicht gröÃer sein als der Endwert. Bitte korrigieren Sie die Eingabe.","selectRoomOption":"Wählen Sie ein Zimmer","sortOptionDateNewerFirst":"Neueste zuerst","sortOptionDateOlderFirst":"Ãlteste zuerst","sortOptionNameAscending":"Name (A - Z)","sortOptionNameDescending":"Name (Z - A)","invalidAssetUrl":"Asset wird aufgrund ungültiger URL übersprungen: %name%","fontSourceHanSansCN":"Chinesisch"},"rooms":{"StorageRoom":"Abstellraum","DressingRoom":"Ankleide","Workspace":"Arbeitszimmer","Bathroom":"Bad","Office":"Büro","Gallery":"Empore","DiningRoom":"Esszimmer","Hallway":"Flur / Diele","Garage":"Garage","Garden":"Garten","BuildingServicesRoom":"Haustechnik","UtilityRoom":"Hauswirtschaftsraum","HeatingSystemRoom":"Heizungsraum","HobbyRoom":"Hobbyraum","KidsRoom":"Kinderzimmer","Kitchen":"Küche","TerraceBalcony":"Terasse / Balkon","WC":"WC","LivingRoom":"Wohnzimmer","GuestRoom":"Gästezimmer","Gym":"Fitnessraum","Basement":"Keller","StorageRoomWarehouse":"Lager(raum)","Bedroom":"Schlafzimmer","Room1":"Zimmer 1","Room2":"Zimmer 2","Room3":"Zimmer 3","Room4":"Zimmer 4","Room5":"Zimmer 5","Room6":"Zimmer 6","Room7":"Zimmer 7","Room8":"Zimmer 8","Room9":"Zimmer 9","Room10":"Zimmer 10"}}')},7396:t=>{"use strict";t.exports=JSON.parse('{"graphicTool":{"breadcrumb":{"gtShop":"HOME // JUNG Graphic Tool","home":"HOME","graphicTool":"JUNG Graphic Tool"},"navBar":{"listingNavTitle":"Selection","collectionNavTitle":"Collection","projectsNavTitle":"Projects","ordersNavTitle":"Orders","ordersPDF":"PDF-Configurations"},"homepage":{"DigitalHeadline":"","DigitalBtn":"","DigitalLink":"","DigitalText":"","DigitalBtnMobile":"","DigitalBg":"","DigitalBgMobile":"","DigitalCenterImage":"","LaserHeadline":"","LaserBtn":"","LaserLink":"","LaserText":"","LaserBtnMobile":"","LaserBg":"","LaserBgMobile":"","LaserCenterImage":"","LaserAnimMobile":"","LaserAnim":"","LabelHeadline":"","LabelBtn":"","LabelLink":"","LabelText":"","LabelBtnMobile":"","LabelBg":"","LabelBgMobile":"","LabelCenterImage":"","GraphicHeadline":"","GraphicSubTitle":"","GraphicBtn":"","GraphicBtnMobile":"","GraphicText":"","GraphicLink":"","GraphicBg":"","GraphicBgMobile":"","GraphicCenterImage":"","DefaultHeadline":"","DefaultHeadlineMobile":"","DefaultSubTitle":" ","DefaultText":"","DefaultBtn":"","DefaultBtnMobile":"","DefaultBg":"","DefaultBgMobile":"","DefaultCenterImage":"","Account":"Sie haben schon ein myJUNG-Konto.","AccountTablet":"myJUNG Anmeldung","Login":"Login","LoggedInMessage":"You are logged in!"},"offCanvas":{"articleCounter":"Counter"},"tableProjects":{"descriptionOfProject":"Description of the project","description":"Description","content":"Content","created":"Created","ordered":"Ordered","totalSum":"Total sum","actions":"Actions","btnAction":"Edit","btnTableHeadAction":"Select","price":"Price","item":"Article","listTitle":"Article","projectsTitle":"Projects","project":"Project","product":"Product","quantity":"Quantity","totalPrice":"Total","duplicate":"Duplicate","archive":"Archive","activate":"Activate","edit":"Edit","delete":"Delete","resend":"Resend","configurationPdf":"Configuration PDF","orderDetails":"Order details","orderNumber":"Order number","numberPrintedLabels":"Number of printed labels","printLabel":"Print label","label":"Label","headlineQuantity":"Quantity","back":"Back","itemNumber":"Item No.","deleteMessage":"Do you want to delete this project?","confirmText":"Yes","denyText":"No","sharedProjects":"Shared Projects","owner":"Owner","personal":"Personal","shareProject":"Share project","inviteMore":"Invite user","stopShareProject":"Stop sharing","customerPlaceholderEmail":"Customer email","sendAction":"Share","shareProjectBtnTitle":"Invite more user"},"invitedCustomersTable":{"heading":"Invited Users","emailAddress":"Email address","customerName":"Customer name","invitedDate":"Invited date","status":"Status","actions":"Actions","actionMessage":"Do you want to stop sharing?","statusExpired":"Expired","statusAccepted":"Accepted","statusPending":"Pending","statusDeclined":"Declined","deleteAction":"Stop sharing","resendAction":"Send again"},"print":{"printOutLabels":"Print out labels","editOrderText":"Edit, order or manage your products. You can select processed products, order them or move them to projects. Projects offer you options for storing and managing your orders.","printLabel":"Print label","createPdfText":"Create a PDF from your individual labels and simply print it out with your printer.","savePdf":"Save PDF","printOrSaveLabel":"Print out or save labels","backToProject":"Back","backToCollection":"Back","floor":"Floor"},"processes":{"processesHeadline":"Mixed production processes","processesText":"Please note that the selected products are individualized using different processes. The processes differ in look and feel, but have one thing in common: the high-quality appearance of a JUNG product.","processesTextExtra":"The colour changes of the laser engravings for the real metals aluminium dark (ALD) and aluminium anthracite (ALAN) deviate from the JUNG standard colour.","processesPrintBtn":"Information about the printing process","processesPrintUrl":"/en-DE/Service/Tools-Services/The-GRAPHIC-TOOL/#methoden","processesLaserBtn":"Information on laser engraving"},"listing":{"seeAllProducts":"See all products","resultsLimit":"Show %limit% products","seriesSelectTitle":"Select serie","searchPlaceholder":"Item number or text","favoriteProductsTitle":"Favorite","serieProductsTitle":"Serie","productsSectionListingTitle":"Products","listingPageTitle":"JUNG Graphic Tool","listingPageDescription":"Refine and mark the surfaces of JUNG products as desired."},"configurator":{"productsCollectionOne":"Add","productsCollectionTwo":"product<span class=\'nxs-span-plural\'>s</span> to the collection","manageProducts":"You can manage your products in projects.","registration":"For registration","goToCollection":"To the collection","goToProjects":"To the projects","register":"Register","toRegister":"To register","wel
12come":"Welcome","addProjectOne":"Add","addProjectTwo":"product<span class=\'nxs-span-plural\'>s</span> to the project","newProject":"New project","successMessageOne":"You have successfully added","successMessageTwoProjects":"product<span class=\'nxs-span-plural\'>s</span> to the project!","successMessageTwoCollection":"product<span class=\'nxs-span-plural\'>s</span> to the collection!","backBtn":"Back"},"collection":{"btnLabelEdit":"Start Editing","btnLabelDuplicate":"Duplicate","btnLabelDelete":"Delete","errorMessageAjaxAction":"Something went wrong! Please reload the page and try again!","retryAfterMessageAjax":"The PDF is still in generation. Please try again in <span></span> seconds.","labelsFilterTitle":"All processing","processedFilterTitle":"Processed type","productsSectionListingTitle":"Your collected products","listingPageTitle":"JUNG Graphic Tool","listingPageDescription":"Edit, order or manage your products. You can choose processed products, order or move to projects. Projects offer you options for storing and managing your orders."},"projects":{"errorProjectExists":"A project with this name already exists","savePdf":"Save PDF","infoProductsMessagePdf":"Selected products configured/available for PDF","nrSelectedProjects":"Selected <span>%nrSelected%</span> projects","toWholesale":"To wholesale","addToCart":"Add to cart","filterActive":"Active projects","filterArchive":"Archive","filterShared":"Shared projects","newProjectPlaceholder":"Name of the project","newProjectButton":"New","searchPlaceholder":"Project number or text","pageTitle":"Projects","pageDescription":"Manage your projects and create orders from them.","articleCounter":"Counter:","form":{"projectName":"Project name","projectDescription":"Project Description","btnSave":"Save","dateCreated":"Created","article":"Articles","dateOrdered":"Ordered","none":"None","partial":"Partial","sharedProject":"Shared Project"}},"orders":{"searchPlaceholder":"Order number or text","filterOpenOrders":"Open orders","filterFinishedOrders":"Finished orders","selectFavoriteSeries":"Please select a favorite folder from a series.","btnToOrder":"To the order overview","placeholderEmail":"Your email address*","placeholderPassword":"Password*","pageTitle":"PDF-Configurations","pageDescription":"Here you can view your configuration PDF\'s","projectName":"Project name","date":"Date","number":"Amount","totalSum":"Value","resultsLimit":"Show %limit% PDFs"},"orderPdf":{"customer":"Customer:","customerNumber":"Customer Nr.:","specialistPartner":"Please give this printout to your specialist partner with your order.","noSpecialistPartner":"If you do not have a specialist partner, you can find out more at mein-elektroinstallateur.de.","configurationNumber":"Configuration number:","projectName":"Project name:","date":"Date: %date%","footerTermsCondition":"The current terms and conditions of sale and delivery can always be found on our website at: jung.de/terms","footer":"<p><span>ALBRECHT JUNG GMBH & CO.KG.</span> KupferstraÃe 17â19 ⢠44532 Lünen ⢠Amtsgericht Iserlohn HRA 2921 ⢠Persönlich haftende Gesellschafterin: Jung-Elektro GmbH ⢠Amtsgericht Iserlohn HRB 4992 ⢠Geschäftsführer: Michael Eyrich-Ravens ⢠Martin Herms Vorsitzender des Aufsichtsrats: Harald Jung ⢠Commerzbank ⢠IBAN DE 42 4584 0026 0640 4040 00 ⢠BIC COBADEFF458 ⢠Deutsche Bank IBAN DE 32 4507 0002 0207 0308 00 ⢠BIC DEUTDEDW450 ⢠WEEE-REG.-NR. DE 64244154 ⢠www.jung.de ⢠MADE IN GERMANY</p>","item":"Item","nameJung":"ALBRECHT JUNG GMBH & CO. KG","itemNumber":"Item No.","totalQuantity":"Total Quantity","quantityIndividualization":"Quantity individualization","itemPosition":"Item","piece":"Piece","article":"Items","description":"Description","processingMethod":"Processing:","includingProcessingFee":"incl. Processing fee","pdfFileName":"Filename:","usage":"Custom Caption:","floor":"Floor:","room":"Room:","quantityTh":"Quantity","fileTh":"File","artPrice":"Art.-Price","totalPrice":"Total Price","summaryTotalGroupPrice":"Total price PG %group% without VAT","summaryTotalTaxes":"Total excluding taxes","summaryVat":"%taxRate%% VAT (Germany)","summaryTotalVat":"Total including VAT (Germany)","summaryRecommendedRetailPrice":"Recommended retail price without VAT","summaryRecommendedRetailPriceValidity":"These prices are valid for 3 months","summaryContactPrice":"To determine prices outside of Germany, please contact the relevant JUNG representative in your country. You can find them at: www.jung-salescontact.com","summaryCustomMade":"Please note: Custom-made products cannot be exchanged or returned.","priceGroup":"Price Group","price":"Price","quantity":"Quantity","singleQuantity":"Single Quantity","sum":"Sum"},"checkout":{"infoMsg":"Bitte wenden Sie sich an Ihren zuständigen Vertriebsmitarbeiter","infoPopupDeliveryTitle":"This article is not available in the desired quantity","infoPopupDeliveryText":"Please reduce the quantity of the selected item or delete it without remov
12ing it from the shopping cart. You can then proceed to checkout. In urgent cases, please contact your responsible sales representative."},"printingMethods":{"bedruckbar":"imprintable","labelbar":"labeling possible","laserbar":"laserable","print":"imprintable","label":"labeling possible","laser":"laserable","imprintable":"imprintable","labelable":"labeling possible","laserable":"laserable","labellingpossible":"labeling possible"},"disclaimers":{"private":"","commercial":""},"alerts":{"nonJungStandardProduct":"The colour change of the laser engraving deviates from the JUNG standard.","invalidEmailAddressProvided":"Invalid email address provided.","invitationInvalidOrExpired":"Invitation invalid or expired."}},"configurator":{"individualDesignation":"Individual designation","floor":"Floor","room":"Room","livingRoom":"Living room","outletEntrance":"Outlet entrance","undo":"Undo","redo":"Redo","copy":"Copy","paste":"Paste","delete":"Delete","remove":"Remove","editableArea":"Edit","left":"Left","center":"Center","right":"Right","top":"Top","bottom":"Bottom","height":"Height","width":"Width","scale":"Scale","angle":"Angle","textProperties":"Text properties","counterFunction":"Counter","cancel":"Cancel","save":"Save","laser":"Laser engraving","print":"Print","label":"Label","defaultColorDescription":"Ink intended for this color / material. Other colors differ from JUNG standard products.","defaultBackgroundDescription":"By default, the label is printed without a background.","selectedColor":"Selected color: ","lightSymbols":"Light symbols","legacySymbols":"Legacy symbols","colors":"Colours","functionInactive":"Function inactive","functionActive":"Function active","prefix":"Prefix","format":"Format","suffix":"Suffix","start":"Start","step":"Step","stop":"End","default":"Default","imageUploadError":"Upload your own picture or symbol. Permitted file types are * .jpg, * .png, * .bmp, * .svg. The CMYK color mode is not supported. The maximum image size is 3000 x 3000px. The maximum Data upload is 5MB. Allowed upload is 20 files per hour.","loadedImages":"Uploaded images","standartImages":"System images","noImagesFound":"No images found..","loadYourOwnPicture":"Load your own picture","imageFilterAll":"All","imageFilterUploaded":"Uploaded","imageFilterStandart":"Standart","IHaveFullRights":"In order to be able to design and then use a motif (photo, logo, trademark, slogan, etc.) for yourself using our JUNG Graphic-Tool, you must have the necessary rights to this motif. In addition, no children\'s motifs may be designed and ultimately applied to sockets using our JUNG Graphic-Tool. Please also note that the design via our JUNG Graphic-Tool involves goods that are not prefabricated and for the production of which an individual selection or determination by you as a consumer is decisive, which is why you are also not entitled to a right of withdrawal.","pleaseCheckLegalText":"You can find further details in the GTCs","chooseAFile":"Choose a file","choose":"Choose","alignment":"Alignment","position":"Position","jungUnique":"JUNG UNIQUE X","jungSymbol":"Symbols and icons","background":"Background","textField":"Text field","ownPicture":"Own picture","duplicate":"Duplicate","inverse":"Inverse","reset":"Reset applied filters","imageInversion":"Image inversion","imageAdjustment":"Image filters","grayscale":"Grayscale","invert":"Invert","blur":"Blur","mask":"Mask","pixelate":"Pixelate","noise":"Noise","emboss":"Emboss","enhance":"Enhance","strength":"Strength","whiteLevel":"White level","contrast":"Contrast","hsl":"HSL","rgb":"RGB","red":"Red","green":"Green","blue":"Blue","hue":"Hue","luminance":"Luminance","saturation":"Saturation","brighten":"Brighten","prepareForLasering":"Prepare picture for laser","imageEditing":"Image editing","changeImageInversion":"Change image inversion degree","engraving":"Engraving","selectPrintingMethodType":"Select a printing method type","configuratorSuccessMessage":"You successfully saved the configuration","configuratorFailureMessage":"Saving configuration failed!","collisionDetection":"Some elements are not fully visible!","lockedDetection":"You cannot edit this product because is locked by one of your colleagues!","outsideOfBounds":"One or more configs are outside of product bounds.","noWidthOrHeight":"Product does not have set height or width value!","All":"All","Alarm":"Alarm","Area":"Area","Arrows":"Arrows","Astro":"Astro","Blinds":"Blinds","Camera":"Camera","Climate":"Climate","Motor":"Motor","Doorc
12ommunication":"Door communication","General":"General","Hotel":"Hotel","Lights":"Lights","Measurements":"Measurements","Multimedia":"Multimedia","Mutimedia":"Multimedia","Navigation":"Navigation","Presence":"Presence","Weather":"Weather","Scene":"Scene","Switching":"Switching","System":"System","Graft":"Graft","KOMO":"Komo","Ippolito":"Ippolito Fleitz Group","Timefunctions":"Time functions","Windows doors":"Windows doors","Charging":"Charging","failedToFetchProduct":"Failed to fetch product information","failedToFetchImages":"Failed to fetch images","failedToUploadImage":"Failed to upload an image","failedToDeleteImage":"Failed to delete an image","imageDeletedSuccessfully":"Image deleted successfully","bringToTop":"Bring to top","counterFunctionText":"Please note: the maximum number of steps is limited to 50. A high step value will reduce this number","rotate":"Rotate","failedImageGeneration":"One or more image/s failed to generate: previewImage - {img1}, media - {img2}","number":"Quantity:","modern":"JUNG Modern","legacy":"JUNG Legacy","revox":"Revox","unique":"Unique","Aktionen":"Aktionen","Antriebe":"Antriebe","Auáenbereich":"Auáenbereich","Beleuchtung":"Beleuchtung","Diverses":"Diverses","Energie":"Energie","Health Care":"Health Care","JUNG":"JUNG","Jalousie Fenster":"Jalousie Fenster","Klima":"Klima","Sicherheit":"Sicherheit","Stromkreise":"Stromkreise","Szenen":"Szenen","Tuerkommunikation":"Tuerkommunikation","Wellness":"Wellness","Zeit":"Zeit","selectMask":"Select a mask","jungPalette":"JUNG Palette","ral":"RAL (similar)","greyScale":"Graustufen","lastAction":"Last action","Element":"Element","Workspace":"Workspace","User":"User","Actions":"Actions","allowedFileTypesMessage":"Allowed file types are *.jpg, *.png, *.bmp, *.svg.","cmykModeMessage":"CMYK color mode is not supported.","maxImageSizeMessage":"The maximum image size is 3000 x 3000px.","maxDataMessage":"The maximum data upload is 5 MB.","periodLimitMessage":"Allowed upload is 20 files per hour.","invalid":"The start value cannot be greater than the end value. Please correct the input.","selectRoomOption":"Choose a room","sortOptionDateNewerFirst":"Newest first","sortOptionDateOlderFirst":"Oldest first","sortOptionNameAscending":"Name (A - Z)","sortOptionNameDescending":"Name (Z - A)","invalidAssetUrl":"Skipping asset due to invalid URL: %name%","fontSourceHanSansCN":"Chinese"},"rooms":{"StorageRoom":"Storage room","DressingRoom":"Dressing room","Workspace":"Workspace","Bathroom":"Bathroom","Office":"Office","Gallery":"Gallery","DiningRoom":"Dining Room","Hallway":"Hallway","Garage":"Garage","Garden":"Garden","BuildingServicesRoom":"Building Services Room","UtilityRoom":"Utility Room","HeatingSystemRoom":"Heating System Room","HobbyRoom":"Hobby Room","KidsRoom":"Kids Room","Kitchen":"Kitchen","TerraceBalcony":"Terrace/Balcony","WC":"WC","LivingRoom":"Living Room","GuestRoom":"Guest Room","Gym":"Gym","Basement":"Basement","StorageRoomWarehouse":"Storage room (warehouse)","Bedroom":"Bedroom","Room1":"Room 1","Room2":"Room 2","Room3":"Room 3","Room4":"Room 4","Room5":"Room 5","Room6":"Room 6","Room7":"Room 7","Room8":"Room 8","Room9":"Room 9","Room10":"Room 10"}}')}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=t,(()=>{n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e}})(),(()=>{n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}})(),(()=>{n.f={},n.e=t=>Promise.all(Object.keys(n.f).reduce((e,r)=>(n.f[r](t,e),e),[]))})(),(()=>{n.u=t=>"./js/nxs-graphic-tool/"+t+".js"})(),(()=>{n.miniCssF=t=>{}})(),(()=>{n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}()})(),(()=>{n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})(),(()=>{var t={};n.l=(e,r,i,a)=>{if(t[e]){t[e].push(r);return}if(void 0!==i)for(var o,s,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==e){o=u;break}}o||(s=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,n.nc&&o.setAttribute("nonce",n.nc),o.src=e),t[e]=[r];var d=(n,r)=>{o.onerror=o.onload=null,clearTimeout(h);var i=t[e];if(delete t[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEac
12h(t=>t(r)),n)return n(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),s&&document.head.appendChild(o)}})(),(()=>{n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}})(),(()=>{n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t)})(),(()=>{n.g.importScripts&&(t=n.g.location+"");var t,e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&!t;)t=r[i--].src}if(!t)throw Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t+"../../"})(),(()=>{var t={"nxs-graphic-tool":0};n.f.j=(e,r)=>{var i=n.o(t,e)?t[e]:void 0;if(0!==i){if(i)r.push(i[2]);else{var a=new Promise((n,r)=>i=t[e]=[n,r]);r.push(i[2]=a);var o=n.p+n.u(e),s=Error();n.l(o,r=>{if(n.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,i[1](s)}},"chunk-"+e,e)}}};var e=(e,r)=>{var i,a,[o,s,l]=r,c=0;if(o.some(e=>0!==t[e])){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);l&&l(n)}for(e&&e(r);c<o.length;c++)a=o[c],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0},r=self.webpackChunk=self.webpackChunk||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),(()=>{"use strict";var t=n(5055),e=n(2102),r=n.n(e),i=n(5647),a=n(4821),o=n(294),s=n(4861),l=n.n(s),c=n(6181),u=n.n(c),d=n(2495);let h={name:"panel-info",template:u(),computed:{...(0,o.Se)({config:"configuratorConfig",configuratorTypes:"availableConfiguratorTypes",getConfiguratorType:"configuratorType",product:"productData",isLocked:"isConfiguratorLocked"}),selectedType:{get(){return this.getConfiguratorType},set(t){this.productInformationUpdated(!0),this.setConfiguratorType(t)}}},methods:{...(0,o.nv)(["setConfiguratorType"]),...(0,o.OI)({productInformationUpdated:d.x4})}};var f=n(4845),g=n.n(f),p=n(173);let v={data(){return{documentWidth:Number,isMobile:!1,isTablet:!1,isTouchDevice:!1,updateResponsiveStateThrottled:(0,p.throttle)(this.updateResponsiveState.bind(this),100,{leading:!0,trailing:!0})}},computed:{isDesktop(){return!this.isMobile&&!this.isTablet}},methods:{updateResponsiveState(){this.documentWidth=document.body.clientWidth,this.isMobile=window.matchMedia("(max-width: 767px)").matches,this.isTablet=window.matchMedia("(min-width: 768px) and (max-width: 1199.98px)").matches,this.isTouchDevice="ontouchstart"in window}},created(){this.updateResponsiveState(),window.addEventListener("resize",this.updateResponsiveStateThrottled)},beforeDestroy:function(){window.removeEventListener("resize",this.updateResponsiveStateThrottled)}};var m=n(1495);class b{static formattedCounterString(t){let{prefix:e,format:n,suffix:r}=t;return"".concat(e).concat(n).concat(r)}static getDefaultCounterFunctionData(){return{prefix:"Prefix_",suffix:"_Suffix",format:"0000",start:1,step:1,stop:1,quantity:1,scale:1}}}let y={name:"panel-add",template:g(),mixins:[v],data:()=>({panels:m.oQ}),computed:{...(0,o.Se)(["productConfigData","canvasRotationAngle","counterFunctionObject","selectableAreasLinks","exportImageScale","isConfiguratorLabel","selectedColor","selectedBackground","isConfiguratorLocked","shouldHideUniqueSymbolsButton","isConfiguratorPrint","isConfiguratorDigital","hasUniqueSymbolsFlag"]),showUniqueSymbolsButton(){return this.hasUniqueSymbolsFlag&&(!this.shouldHideUniqueSymbolsButton&&!this.isConfiguratorPrint||!this.isConfiguratorDigital)}},methods:{...(0,o.nv)(["addCanvasText"]),...(0,o.OI)({toggleSlidablePanel:d.TR}),addCanvasTextHandler(){this.addCanvasText({textConfig:{config:{text:this.$t("configurator.textField"),rotation:-this.canvasRotationAngle}}})},addCounterFunction(){if(this.isDesktop||this.toggleSlidablePanel({slidablePanel:m.oQ.COUNTER}),this.counterFunctionObject){this.counterFunctionData=this.counterFunctionObject.data;return}this.addCanvasText({textConfig:{config:{width:m.Vl,text:b.formattedCounterString(b.getDefaultCounterFunctionData()),rotation:-this.canvasRotationAngle},data:{...this.counterFunctionData,scale:this.exportImageScale.scaleX}},isCounterFunctionText:!0,closePanel:!1}),this.isDesktop&&this.toggleSlidablePanel({slidablePanel:null})}}};var C=n(9950),S=n.n(C),x=n(9005),w=n(2797),T=n(4943);let A={name:"canvas-actions",template:S(),data:()=>({show:!1,src:"/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/gt/rotate1.png",index:1}),computed:{...(0,o.Se)(["selectedCanvasObjectName","selectedCanvasObject","undoActionEnabled","redoActionEnabled","selectedCanvasText","productData","canvasObjects","canvasObjectMaxZIndex","counterFunctionObject","maskId","canvasConfig","isConfiguratorPadPrinting","isConfiguratorLocked"])},methods:{...(0,o.nv)(["duplicateCanvasObject","updateCanvasObject","canvasHistoryUndo","canvasHistoryRedo","updateCanvasConfig","updateCanvasText","deleteAsset"]),...(0,o.OI)({toggleMaskVisibility:d.LJ,updateTransformer:d.XK,selectCanvasObject:d.Oy}),handleBackspaceClick(t){this.selectedCanvasObjectName&&"INPUT"!==t.target.nodeName&&"TEXTAREA"!==t.target.nodeName&&(46===t.keyCode||8===t.keyCode)&&this.deleteAsset()},bringToTop(){x.N.$emit(w.yB),this.updateCanvasObject({config:{name:this.selectedCanvasObjectName,order:this.canvasObjectMaxZIndex+1}})},rotateCanvas(){if(!this.canvasObjects)return;this.src="/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/gt/rotate"+(1+this.index).toString()+".png",this.index=3
12===this.index?0:this.index+1;let{height:t,width:e,rotation:n}=this.canvasConfig,r=Math.abs(n/90),{x:i,y:a,nextAngle:o}=T.Yu[r];this.updateCanvasConfig({height:e,width:t,offsetY:0,offsetX:0,x:i?0:t,y:a?0:e,rotation:o})}},mounted(){document.addEventListener("keyup",this.handleBackspaceClick)},beforeDestroy(){document.removeEventListener("keyup",this.handleBackspaceClick)}};var k=n(8117),E=n.n(k),O=n(2309),P=n.n(O),L=n(8197);let I={name:"panel-config-dashboard",template:P(),data:()=>({CANVAS_OBJECT_TYPE_TEXT:T.bq,fraction:2}),computed:{...(0,o.Se)(["selectedCanvasObject","selectedCanvasText","productData","coverImageDimensions"]),minValueX(){return -1*(Number(L.P.pxToMm(this.selectedCanvasObject.config.width*this.selectedCanvasObject.config.scaleX,this.productData.width,this.coverImageDimensions.width,0,this.fraction))/2).toFixed(2)},minValueY(){return -1*(Number(L.P.pxToMm(this.selectedCanvasObject.config.height*this.selectedCanvasObject.config.scaleY,this.productData.height,this.coverImageDimensions.height,0,this.fraction))/2).toFixed(2)},maxValueX(){return Number(Number(L.P.pxToMm(this.coverImageDimensions.width,this.productData.width,this.coverImageDimensions.width,0,this.fraction))+Number(L.P.pxToMm(this.selectedCanvasObject.config.width*this.selectedCanvasObject.config.scaleX,this.productData.width,this.coverImageDimensions.width,0,this.fraction))/2).toFixed(2)},maxValueY(){return Number(Number(L.P.pxToMm(this.coverImageDimensions.height,this.productData.height,this.coverImageDimensions.height,0,this.fraction))+Number(L.P.pxToMm(this.selectedCanvasObject.config.height*this.selectedCanvasObject.config.scaleY,this.productData.height,this.coverImageDimensions.height,0,this.fraction))/2).toFixed(2)},left:{get(){return Number(L.P.pxToMm(this.selectedCanvasObject.config.x,this.productData.width,this.coverImageDimensions.width,0,this.fraction))},set(t){if(t<this.minValueX&&(t=this.minValueX),t>this.maxValueX&&(t=this.maxValueX),!this.productData.width){this.handleParamChange(+t,"x");return}this.handleParamChange(+L.P.mmToPx(t,this.productData.width,this.coverImageDimensions.width,this.fraction),"x")}},top:{get(){return Number(L.P.pxToMm(this.selectedCanvasObject.config.y,this.productData.height,this.coverImageDimensions.height,0,this.fraction))},set(t){if(!this.productData.height){this.handleParamChange(+t,"y");return}t<this.minValueY&&(t=this.minValueY),t>this.maxValueY&&(t=this.maxValueY),this.handleParamChange(+L.P.mmToPx(t,this.productData.height,this.coverImageDimensions.height,this.fraction),"y")}},height:{get(){return Number((L.P.pxToMm(this.selectedCanvasObject.config.height,this.productData.height,this.coverImageDimensions.height,0,this.fraction)*this.selectedCanvasObject.config.scaleY).toFixed(this.fraction))},set(t){if(!this.productData.height){this.handleParamChange(+t,"height");return}this.handleParamChange(+L.P.mmToPx(t,this.productData.height,this.coverImageDimensions.height,this.fraction),"height")}},width:{get(){return Number((L.P.pxToMm(this.selectedCanvasObject.config.width,this.productData.width,this.coverImageDimensions.width,0,this.fraction)*this.selectedCanvasObject.config.scaleX).toFixed(this.fraction))},set(t){if(!this.productData.width){this.handleParamChange(+t,"width");return}x.N.$emit(d.$p),this.handleParamChange(+L.P.mmToPx(t,this.productData.width,this.coverImageDimensions.width,this.fraction),"width")}},scale:{get(){return Number((this.selectedCanvasObject.url&&this.selectedCanvasObject.url.includes(".svg")?this.selectedCanvasObject.config.svgScale:this.selectedCanvasObject.config.scaleX).toFixed(3))},set(t){if(!t||t<=0)return;let e=Math.min(t,20);this.handleParamChange(e,"scaleX")}}},methods:{...(0,o.nv)(["updateCanvasObject"]),handleScaleBlur(){this.scale<.1&&this.handleParamChange(.1,"scaleX")},handleParamChange(t,e){let n={},r=this.selectedCanvasObject.url&&this.selectedCanvasObject.url.includes(".svg"),i=this.selectedCanvasObject.config;switch(e){case"height":n.height=i.initialHeight=Math.min(Math.max(t/i.scaleY,1),3e3);break;case"width":n.width=i.initialWidth=Math.min(Math.max(t/i.scaleX,1),3e3);break;case"scaleX":n.scaleX=t,n.scaleY=t,r&&(i.svgScale=t);break;default:n[e]=t}this.updateCanvasObject({config:{...n,name:this.selectedCanvasObject.config.name}})}}};var D=n(9050),R=n.n(D),M=n(5482),N=n.n(M);
12class j{static getAlignedAssetConfig(t,e,n){let{x:r,y:i,scaleX:a,scaleY:o,width:s,height:l}=n,c=(s*=a)/a,u=(l*=o)/o;return({[T.uf.TOP_LEFT]:{[T.uf.TOP_LEFT]:{},[T.uf.TOP_CENTER]:{x:r-s/2,offsetX:0},[T.uf.TOP_RIGHT]:{x:r-s,offsetX:0},[T.uf.CENTER_LEFT]:{x:r,y:i-l/2,offsetX:0,offsetY:0},[T.uf.CENTER]:{x:r-s/2,y:i-l/2,offsetX:0,offsetY:0},[T.uf.CENTER_RIGHT]:{x:r-s,y:i-l/2,offsetX:0,offsetY:0},[T.uf.BOTTOM_LEFT]:{x:r,y:i-l,offsetX:0,offsetY:0},[T.uf.BOTTOM_CENTER]:{x:r-s/2,y:i-l,offsetX:0,offsetY:0},[T.uf.BOTTOM_RIGHT]:{x:r-s,y:i-l,offsetX:0,offsetY:0}},[T.uf.TOP_CENTER]:{[T.uf.TOP_LEFT]:{x:r+s/2,offsetX:c/2},[T.uf.TOP_CENTER]:{},[T.uf.TOP_RIGHT]:{x:r-s/2,offsetX:c/2},[T.uf.CENTER_LEFT]:{x:r+s/2,y:i-l/2,offsetX:c/2,offsetY:0},[T.uf.CENTER]:{x:r,y:i-l/2,offsetX:c/2,offsetY:0},[T.uf.CENTER_RIGHT]:{x:r-s/2,y:i-l/2,offsetX:c/2,offsetY:0},[T.uf.BOTTOM_LEFT]:{x:r+s/2,y:i-l,offsetX:c/2,offsetY:0},[T.uf.BOTTOM_CENTER]:{x:r,y:i-l,offsetX:c/2,offsetY:0},[T.uf.BOTTOM_RIGHT]:{x:r-s/2,y:i-l,offsetX:c/2,offsetY:0}},[T.uf.TOP_RIGHT]:{[T.uf.TOP_LEFT]:{x:r+s,offsetX:c},[T.uf.TOP_CENTER]:{x:r+s/2,offsetX:c},[T.uf.TOP_RIGHT]:{},[T.uf.CENTER_LEFT]:{x:r+s,y:i-l/2,offsetX:c,offsetY:0},[T.uf.CENTER]:{x:r+s/2,y:i-l/2,offsetX:c,offsetY:0},[T.uf.CENTER_RIGHT]:{x:r,y:i-l/2,offsetX:c,offsetY:0},[T.uf.BOTTOM_LEFT]:{x:r+s,y:i-l,offsetX:c,offsetY:0},[T.uf.BOTTOM_CENTER]:{x:r+s/2,y:i-l,offsetX:c,offsetY:0},[T.uf.BOTTOM_RIGHT]:{x:r,y:i-l,offsetX:c,offsetY:0}},[T.uf.CENTER_LEFT]:{[T.uf.TOP_LEFT]:{x:r,y:i+l/2,offsetY:u/2,offsetX:0},[T.uf.TOP_CENTER]:{x:r-s/2,y:i+l/2,offsetY:u/2,offsetX:0},[T.uf.TOP_RIGHT]:{x:r-s,y:i+l/2,offsetY:u/2,offsetX:0},[T.uf.CENTER_LEFT]:{},[T.uf.CENTER]:{x:r-s/2,y:i,offsetY:u/2,offsetX:0},[T.uf.CENTER_RIGHT]:{x:r-s,y:i,offsetY:u/2,offsetX:0},[T.uf.BOTTOM_LEFT]:{x:r,y:i-l/2,offsetY:u/2,offsetX:0},[T.uf.BOTTOM_CENTER]:{x:r-s/2,y:i-l/2,offsetY:u/2,offsetX:0},[T.uf.BOTTOM_RIGHT]:{x:r-s,y:i-l/2,offsetY:u/2,offsetX:0}},[T.uf.CENTER]:{[T.uf.TOP_LEFT]:{x:r+s/2,y:i+l/2,offsetX:c/2,offsetY:u/2},[T.uf.TOP_CENTER]:{x:r,y:i+l/2,offsetX:c/2,offsetY:u/2},[T.uf.TOP_RIGHT]:{x:r-s/2,y:i+l/2,offsetX:c/2,offsetY:u/2},[T.uf.CENTER_LEFT]:{x:r+s/2,y:i,offsetX:c/2,offsetY:u/2},[T.uf.CENTER]:{},[T.uf.CENTER_RIGHT]:{x:r-s/2,y:i,offsetX:c/2,offsetY:u/2},[T.uf.BOTTOM_LEFT]:{x:r+s/2,y:i-l/2,offsetX:c/2,offsetY:u/2},[T.uf.BOTTOM_CENTER]:{x:r,y:i-l/2,offsetX:c/2,offsetY:u/2},[T.uf.BOTTOM_RIGHT]:{x:r-s/2,y:i-l/2,offsetX:c/2,offsetY:u/2}},[T.uf.CENTER_RIGHT]:{[T.uf.TOP_LEFT]:{x:r+s,y:i+l/2,offsetX:c,offsetY:u/2},[T.uf.TOP_CENTER]:{x:r+s/2,y:i+l/2,offsetX:c,offsetY:u/2},[T.uf.TOP_RIGHT]:{x:r,y:i+l/2,offsetX:c,offsetY:u/2},[T.uf.CENTER_LEFT]:{x:r+s,y:i,offsetX:c,offsetY:u/2},[T.uf.CENTER]:{x:r+s/2,y:i,offsetX:c,offsetY:u/2},[T.uf.CENTER_RIGHT]:{},[T.uf.BOTTOM_LEFT]:{x:r+s,y:i-l/2,offsetX:c,offsetY:u/2},[T.uf.BOTTOM_CENTER]:{x:r+s/2,y:i-l/2,offsetX:c,offsetY:u/2},[T.uf.BOTTOM_RIGHT]:{x:r,y:i-l/2,offsetX:c,offsetY:u/2}},[T.uf.BOTTOM_LEFT]:{[T.uf.TOP_LEFT]:{x:r,y:i+l,offsetX:0,offsetY:u},[T.uf.TOP_CENTER]:{x:r-s/2,y:i+l,offsetX:0,offsetY:u},[T.uf.TOP_RIGHT]:{x:r-s,y:i+l,offsetX:0,offsetY:u},[T.uf.CENTER_LEFT]:{x:r,y:i+l/2,offsetX:0,offsetY:u},[T.uf.CENTER]:{x:r-s/2,y:i+l/2,offsetX:0,offsetY:u},[T.uf.CENTER_RIGHT]:{x:r-s,y:i+l/2,offsetX:0,offsetY:u},[T.uf.BOTTOM_LEFT]:{},[T.uf.BOTTOM_CENTER]:{x:r-s/2,y:i,offsetX:0,offsetY:u},[T.uf.BOTTOM_RIGHT]:{x:r-s,y:i,offsetX:0,offsetY:u}},[T.uf.BOTTOM_CENTER]:{[T.uf.TOP_LEFT]:{x:r+s/2,y:i+l,offsetX:c/2,offsetY:u},[T.uf.TOP_CENTER]:{x:r,y:i+l,offsetX:c/2,offsetY:u},[T.uf.TOP_RIGHT]:{x:r-s/2,y:i+l,offsetX:c/2,offsetY:u},[T.uf.CENTER_LEFT]:{x:r+s/2,y:i+l/2,offsetX:c/2,offsetY:u},[T.uf.CENTER]:{x:r,y:i+l/2,offsetX:c/2,offsetY:u},[T.uf.CENTER_RIGHT]:{x:r-s/2,y:i+l/2,offsetX:c/2,offsetY:u},[T.uf.BOTTOM_LEFT]:{x:r+s/2,y:i,offsetX:c/2,offsetY:u},[T.uf.BOTTOM_CENTER]:{},[T.uf.BOTTOM_RIGHT]:{x:r-s/2,y:i,offsetX:c/2,offsetY:u}},[T.uf.BOTTOM_RIGHT]:{[T.uf.TOP_LEFT]:{x:r+s,y:i+l,offsetX:c,offsetY:u},[T.uf.TOP_CENTER]:{x:r+s/2,y:i+l,offsetX:c,offsetY:u},[T.uf.TOP_RIGHT]:{x:r,y:i+l,offsetX:c,offsetY:u},[T.uf.CENTER_LEFT]:{x:r+s,y:i+l/2,offsetX:c,offsetY:u}
12,[T.uf.CENTER]:{x:r+s/2,y:i+l/2,offsetX:c,offsetY:u},[T.uf.CENTER_RIGHT]:{x:r,y:i+l/2,offsetX:c,offsetY:u},[T.uf.BOTTOM_LEFT]:{x:r+s,y:i,offsetX:c,offsetY:u},[T.uf.BOTTOM_CENTER]:{x:r+s/2,y:i,offsetX:c,offsetY:u},[T.uf.BOTTOM_RIGHT]:{}}})[t][e]}}let F={name:"node-alignment",template:N(),props:{},data:()=>({axes:T.uf}),computed:{...(0,o.Se)(["transformOrigin","selectedCanvasObject"])},methods:{...(0,o.nv)(["updateCanvasObject"]),...(0,o.OI)({updateTransformOrigin:d.kC}),selectTransformOrigin(t){this.updateCanvasObject({config:{name:this.selectedCanvasObject.config.name,...j.getAlignedAssetConfig(t,this.transformOrigin,this.selectedCanvasObject.config)}}),this.updateTransformOrigin(t)}}};var B=n(6757),G=n.n(B),$=n(5372);let H={name:"node-position",template:G(),props:{},data:()=>({TRANSFORM_ORIGINS:T.uf,MATRIX_CENTER:$.Hi,MATRIX_ROW:$.oK,MATRIX_COLUMN:$.jg}),computed:{...(0,o.Se)(["selectedCanvasObject","transformOrigin","targetPoint","positioningButtonsState","activeTransformIndex","canvasRotationAngle"])},methods:{...(0,o.nv)(["updateCanvasObject"]),...(0,o.OI)({updateTransformOrigin:d.kC,setActivePosition:d.nW}),changePosition(t,e){this.updateCanvasObject({config:{name:this.selectedCanvasObject.config.name,...j.getAlignedAssetConfig("center",this.transformOrigin,this.selectedCanvasObject.config)}}),this.setActivePosition(t),this.transformOrigin!==T.uf.CENTER&&this.updateTransformOrigin(T.uf.CENTER);let n={offsetX:this.selectedCanvasObject.config.width/2,offsetY:this.selectedCanvasObject.config.height/2};e===$.oK?n.offsetY-=t.row>1?-2:2:e===$.jg&&(n.offsetX-=t.column>1?-2:2),this.updateCanvasObject({config:{name:this.selectedCanvasObject.config.name,...this.targetPoint,...n}})}}},z={name:"canvas-text-aligner",template:n.n(n(3996))(),computed:{...(0,o.Se)(["selectedCanvasText"])},methods:{...(0,o.nv)(["updateCanvasText"]),handleTextAlignment(t){this.updateCanvasText({textConfig:{config:{name:this.selectedCanvasText.config.name,align:t}}})}}},U={name:"panel-config-transform",mixins:[v],template:R(),components:{NodeAlignment:F,NodePosition:H,CanvasTextAligner:z}};var W=n(1703),V=n(8053),Y=n.n(V);let X={name:"icon",template:n.n(n(6200))(),props:{name:String,font:{type:Boolean,default:!0},src:String,multipath:{type:Boolean,default:!1},size:{type:String,default:"sm",validate:t=>["sm","md","lg"].includes(t)}},computed:{path(){return this.src||"/bundles/nxsgraphictool/storefront/dist/assets/icon/svg/".concat(this.name,".svg")}}},K={name:"color-display",template:n.n(n(9349))(),components:{Icon:X},props:{clickable:{type:Boolean,default:!1},color:{type:String,default:"#000000"},control:{type:Boolean,default:!1},lightDescription:{type:Boolean,default:!1},description:{type:String},border:{type:Boolean,default:!1}},computed:{style(){return{backgroundColor:this.color,border:"rgb(255,255,255)"===this.color?"1px solid #ccc":"none"}},classes(){return{"gt-color-display--control":this.control,"gt-color-display--no-control":!this.control&&!this.clickable&&!this.description,"gt-color-display--light-description":this.lightDescription,"gt-color-display--clickable":this.clickable,"gt-color-display--border":this.border}}},methods:{...(0,o.OI)({toggleSlidablePanel:d.TR})}},q={name:"font-styles",template:n.n(n(6111))(),data:()=>({FONT_STYLES:T.hR}),computed:{...(0,o.Se)(["selectedCanvasText","selectedCanvasObjectName","doesTextContainStyle","objectFontStyle"]),containsBold(){return this.doesTextContainStyle(T.hR.BOLD)},containsItalic(){return this.doesTextContainStyle(T.hR.ITALIC)}},methods:{...(0,o.nv)(["updateCanvasObject"]),toggleStyle(t){let e=(this.objectFontStyle||T.hR.NORMAL).split(" "),n=(0,p.xor)(e,[t]);this.updateCanvasObject({config:{name:this.selectedCanvasObjectName,fontStyle:n.join(" ")}})}}},J={name:"panel-config-typography",template:Y(),components:{ColorDisplay:K,FontStyles:q},data:()=>({minFontSize:10,fontSizeCount:191,colorPanel:m.oQ.COLORS,CONFIGURATOR_TYPES:m.$r}),computed:{...(0,o.Se)(["selectedCanvasText","isConfiguratorLaser","configuratorType","selectedColor","isConfiguratorLabel","isDigitalPrintEnabled"]),fontFamilies(){return[{value:"Arial",title:"Arial"},{value:"TimesNewRoman",title:"Times New Roman"},{value:"Jung",title:"Jung"},{value:"SourceHanSansCN",title:this.$t("configurator.fontSourceHanSansCN")}]},fontSizeOptions(){return Array.from(Array(this.fontSizeCount)).map((t,e)=>({value:this.minFontSize+e,title:"".concat(this.minFontSize+e,"pt")}))},showCheck(){return!this.isConfiguratorLaser&&(this.isDigitalPrintEnabled||this.isConfiguratorLabel)}},methods:{...(0,o.nv)(["updateCanvasText"]),...(0,o.OI)({toggleSlidablePanel:d.TR}),handleFontSelect(t){let{config:e}=this.selectedCanvasText;W.N.loadFont(t).then(async()=>{await a.Store.dispatch("updateCanvasText",{textConfig:{config:{name:e.name,fontFamily:t}}}),x.N.$emit(d.$p)})},async handleFontSizeSelect(t){await this.updateCanvasText({textConfig:{config:{name:this.selectedCanvasText.config.name,fontSize:+t}}}),x.N.$emit(d.$p)}}}
12,Z={name:"panel-config-functions",template:n.n(n(5353))(),mixins:[v],data:()=>({SLIDABLE_PANELS:m.oQ}),computed:{...(0,o.Se)(["selectedCanvasObjectName","selectedCanvasObject","selectedCanvasText","canvasObjects","canvasObjectMaxZIndex","counterFunctionObject"])},methods:{...(0,o.nv)(["updateCanvasObject"]),...(0,o.OI)({toggleSlidablePanel:d.TR}),bringToTop(){x.N.$emit(w.yB),this.updateCanvasObject({config:{name:this.selectedCanvasObjectName,order:this.canvasObjectMaxZIndex+1}})}}},Q={name:"panel-config-image",template:n.n(n(7220))(),data:()=>({imageAdjustmentPanel:m.oQ.FILTER}),computed:{...(0,o.rn)({configuratorType:t=>{let{ConfiguratorModule:e}=t;return e.configuratorType}}),...(0,o.Se)(["selectedCanvasObject","isConfiguratorLaser"]),showPanel(){return this.selectedCanvasObject.type===T.HN&&!this.selectedCanvasObject.isSymbol}},methods:{...(0,o.OI)({toggleSlidablePanel:d.TR})}},tt={name:"counter-function",template:n.n(n(949))(),props:{mobile:{type:Boolean,default:!1}},data:()=>({counterFunctionData:{}}),mixins:[v],computed:{...(0,o.Se)(["counterFunctionObject","canvasRotationAngle","exportImageScale"]),formattedCounterString(){return b.formattedCounterString(this.counterFunctionData)},quantity(){let{start:t,stop:e,step:n}=this.counterFunctionData;return _.range(t,e+1,n).length},maxStopNumber(){return this.maxStop()},format:{get(){return this.counterFunctionData.format},set(t){let e=t.replaceAll(/[^0]/g,"0");this.counterFunctionData.format=e.length<=0?"0":e}},stop:{get(){return this.counterFunctionData.stop},set(t){this.counterFunctionData.stop=t>this.maxStopNumber?this.maxStopNumber:t}}},watch:{counterFunctionData:{deep:!0,handler(t){t.step<1&&(t.step=1),t.start<1&&(t.start=1),t.stop<1&&(t.stop=1),this.handleCounterFunctionChange(t)}}},methods:{...(0,o.nv)(["addCanvasText","updateCanvasText"]),maxStop(){let{start:t,step:e}=this.counterFunctionData,n=Number(t+50*e)-1,r=isNaN(n)?50:n,i=this.counterFunctionData.stop>r?r:this.counterFunctionData.stop;return this.counterFunctionData.stop=i,r},handleFormatChange(t){let{value:e}=t.target;if(!e){this.counterFunctionData.format="0";return}this.counterFunctionObject.format=e.replaceAll(/[^0]/g,"0")},handleCounterFunctionChange(t){this.counterFunctionObject&&this.updateCanvasText({textConfig:{config:{name:this.counterFunctionObject.config.name,text:this.formattedCounterString},data:{...t,quantity:this.quantity,scale:this.exportImageScale.scaleX}}})}},mounted(){this.counterFunctionData=this.counterFunctionObject&&this.counterFunctionObject.data.format?this.counterFunctionObject.data:b.getDefaultCounterFunctionData()}},te={name:"panel-config-container",mixins:[v],template:E(),components:{PanelConfigDashboard:I,PanelConfigTransform:U,PanelConfigTypography:J,PanelConfigFunctions:Z,PanelConfigImage:Q,CounterFunction:tt,FontStyles:q},data:()=>({colorPanel:m.oQ.COLORS}),computed:{...(0,o.Se)(["selectedCanvasObject","isConfiguratorLaser","selectedColor","counterFunctionObject","isPadPrintingEnabled","isOnlyPadPrintingEnabled","isConfiguratorLabel","isDigitalPrintEnabled"]),showTool(){return this.selectedCanvasObject&&this.selectedCanvasObject.type===T.HN},showColorDisplayExtra(){if(!this.selectedCanvasObject)return;let t=this.showColorSelectorForSymbol&&!this.isConfiguratorLaser,e=this.selectedCanvasObject.type!==T.bq;return t&&(this.isDigitalPrintEnabled||this.isConfiguratorLabel)&&e},showCheck(){if(!this.selectedCanvasObject)return;let t=this.showColorSelectorForSymbol,e=this.selectedCanvasObject.type!==T.bq;return t&&e},showColorSelectorForSymbol(){return this.selectedCanvasObject&&this.selectedCanvasObject.isSymbol}},methods:{...(0,o.OI)({toggleSlidablePanel:d.TR})}};var tn=n(5782),tr=n.n(tn);let ti={name:"canvas-collision",template:n.n(n(6024))(),data:()=>({fill:"#ff0000"}),computed:{...(0,o.Se)(["canvasContainerConfig","canvasConfig","previewCanvasObjects","canvasRotationAngle","areSelectableAreasPresent","selectableAreaConfigs","printerImageCanvasObjects"]),collisionCanvasConfig(){let t=Math.abs(this.canvasConfig.rotation/90)-1;t<0&&(t=3);let e=this.canvasConfig.width/4,n=this.canvasConfig.height/4,{x:r,y:i}=T.Yu[t];
12return{...this.canvasConfig,scaleX:this.canvasConfig.scaleX/4,scaleY:this.canvasConfig.scaleY/4,offsetX:0,offsetY:0,width:e,height:n,x:r?0:e,y:i?0:n}}},methods:{...(0,o.OI)({setInitialPixelsValue:d.Bo,setCurrentPixelsValue:d.Kr,setObjectsPixelsValue:d.sA}),recalculateCollision(){if(!this.$refs["collision-mask"])return;let t=this.$refs.canvasCollisionObjects,e=t&&t.getStage().getContent().querySelector("canvas");if(e.width){let t=L.P.getAmountOfSpecificColorPixels(e,this.fill);this.setObjectsPixelsValue(t)}let n=this.$refs.canvasCollisionNodeMask,r=n&&n.getStage().getContent().querySelector("canvas");if(r.width){let t=L.P.getAmountOfSpecificColorPixels(r,this.fill);this.setInitialPixelsValue(t)}let i=this.$refs.canvasCollisionNodeAll,a=i&&i.getStage().getContent().querySelector("canvas");if(a.width){let t=L.P.getAmountOfSpecificColorPixels(a,this.fill);this.setCurrentPixelsValue(t)}}},mounted(){x.N.$on(w.qK,()=>{this.recalculateCollision()})}};var ta=n(2154),to=n.n(ta),ts=n(3700);class tl{static cacheCanvasAssets(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t&&t.getLayers().map(t=>
12{t.getChildren().forEach(t=>{if("Group"===t.getType()){let n=t.getChildren();e.length>0?n.forEach(t=>{let n=t.attrs.name;if(ts.P.isImageCacheable(a.Store.getters.getCanvasObjectByName(n))&&"Image"===t.getClassName()&&e.includes(n)){let e=t.attrs.image.currentSrc.includes("svg");t.cache({imageSmoothingEnabled:!1,hitCanvasPixelRatio:e?4:2,pixelRatio:e?4:1})}}):n.forEach(t=>{let e=t.attrs.name;if(ts.P.isImageCacheable(a.Store.getters.getCanvasObjectByName(e))&&"Image"===t.getClassName()){let e=t.attrs.image.currentSrc.includes("svg");t.cache({imageSmoothingEnabled:!1,hitCanvasPixelRatio:e?4:2,pixelRatio:e?4:1})}})}}),t.batchDraw()})}static cacheClear(t){t.clearCache(),t.batchDraw()}}var tc=n(6300),tu=n.n(tc);class td{}td.isSafari=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),td.isFirefox=()=>navigator.userAgent.toLowerCase().indexOf("firefox")>-1,td.isEdge=()=>document.documentMode||/Edge/.test(navigator.userAgent);let th={name:"canvas-textarea",template:tu(),props:{extraStyling:{type:Object}},data:()=>({text:"",height:0}),computed:{...(0,o.Se)(["editableTextName","getCanvasObjectByName","canvasConfig","coverImageDimensions"]),style(){let t=this.getCanvasObjectByName(this.editableTextName);if(!t)return{};let e={x:t.config.x-t.config.offsetX,y:t.config.y-t.config.offsetY},n=t.config.rotation+this.canvasConfig.rotation,r="";n&&(r+="rotateZ(".concat(n,"deg) "));let i=Math.round(t.config.height/t.config.fontSize),a=t.config.offsetY+(t.config.height-t.config.fontSize*i+i/2);r+="translate(-".concat(t.config.offsetX,"px, -").concat(a,"px) ")+"scale(".concat(this.canvasConfig.scaleX,") ");let o={top:"".concat(e.y,"px"),left:"".concat(e.x,"px"),width:"".concat(t.config.width,"px"),height:"".concat(t.config.height,"px"),fontSize:"".concat(t.config.fontSize,"px"),lineHeight:t.config.lineHeight,fontFamily:t.config.fontFamily,textAlign:t.config.align,color:t.config.fill,transform:r,...this.extraStyling};return this.$el&&Object.assign(o,{height:"".concat(this.$el.scrollHeight+3,"px")}),o}},methods:{...(0,o.nv)(["updateCanvasText"]),...(0,o.OI)({updateEditableTextName:d.xb,selectCanvasObject:d.Oy,updateTransformer:d.XK}),async handleTextAreaInit(){let t=this.getCanvasObjectByName(this.editableTextName);t&&(this.assetName=this.editableTextName,this.text=t.config.text,await this.updateCanvasText({textConfig:{config:{name:this.assetName,opacity:0}},isHistoryEnabled:!1}),this.updateTransformer({visible:!1,name:this.assetName}),this.$el.focus(),document.addEventListener("resize",this.removeActiveTextarea))},handleKeyDown(t){let e=this.getCanvasObjectByName(this.assetName);27===t.keyCode&&this.removeActiveTextarea();let n=e.config.scaleX;this.setTextareaWidth(e.config.width*n),this.storeTextareaHeight(this.assetName)},storeTextareaHeight(t){let e=this.getCanvasObjectByName(t);if(!e){this.height=0;return}this.$el.style.height="".concat(e.config.fontSize,"px");let n=Math.min(this.$el.scrollHeight-1,this.coverImageDimensions.height);this.$el.style.height="".concat(n,"px"),this.height=(n<e.config.fontSize?e.config.fontSize:n)+1},removeActiveTextarea(){this.updateEditableTextName(null),this.storeTextareaHeight(this.assetName)},setTextareaWidth(t){let e=this.getCanvasObjectByName(this.assetName);t||(t=e.config.text.length*e.config.fontSize),(td.isSafari()||td.isFirefox())&&(t=Math.ceil(t)),td.isEdge()&&(t+=1),this.$el.style.width="".concat(t/(e.scaleX||1),"px")},async handleTextAreaDestroy(){if(document.removeEventListener("resize",this.removeActiveTextarea),this.text.length<=0){await this.updateCanvasText({textConfig:{config:{name:this.assetName,visible:!1}}});return}await this.updateCanvasText({textConfig:{config:{name:this.assetName,visible:!0,text:this.text,height:this.height,opacity:1}}}),this.updateTransformer({visible:!0,name:this.assetName})}},mounted(){this.handleTextAreaInit()},beforeDestroy(){this.handleTextAreaDestroy()}};var tf=n(1866),tg=n(3654);let tp={name:"canvas-preview",template:to(),data:()=>({CANVAS_OBJECT_TYPE_TEXT:T.bq,CANVAS_OBJECT_TYPE_IMAGE:T.HN,SELECTABLE_AREA_CONFIG:T.Ro}),components:{CanvasTextarea:th},mixins:[v],computed:{...(0,o.rn)({selectedObjectName:t=>{let{CanvasModule:e}=t;return e.selectedObjectName}}),...(0,o.Se)(["canvasObjects","canvasContainerConfig","selectedCanvasObject","selectedCanvasObjectName","selectedCanvasText","transformerConfig","canvasConfig","previewCanvasObjects","coloredCanvasCoverConfig","canvasCoverConfig","editableTextName","getCanvasObjectByName","pathsById","activeAreaId","areSelectableAreasPresent","canvasRotationAngle","selectableAreaConfigs","collision","isConfiguratorPadPrinting","defaultColor","productC
12onfigData","selectedBackground","isConfiguratorLocked"]),selectableAreaDefaultConfig:()=>({fill:"white",globalCompositeOperation:"source-over"}),selectableAreaConfig(){return{fill:this.selectedBackground.value,globalCompositeOperation:"source-over",listening:!1}},coverConfig(){return{...this.coloredCanvasCoverConfig,rotation:0,globalCompositeOperation:"source-over",x:0,y:0,scaleX:1,scaleY:1}},canvasCoverImageConfig(){return{...this.canvasCoverConfig,rotation:0,x:0,y:0,scaleX:1,scaleY:1,globalCompositeOperation:this.areSelectableAreasPresent?"source-in":"source-over"}},style(){return this.collision,{}},editableTextAreaAdditionalStyle(){if(!this.selectedCanvasText)return{};let t=this.$refs[this.selectedCanvasText.config.name][0].getNode();if(t){let e=t.getAbsolutePosition();return{left:"".concat(e.x,"px"),top:"".concat(e.y,"px")}}return{}}},methods:{...(0,o.nv)(["updateCanvasObject","updateCanvasText","canvasAddHistoryEntry"]),...(0,o.OI)({selectCanvasObject:d.Oy,toggleSlidablePanel:d.TR,updateEditableTextName:d.xb,setActiveSelectableAria:d.fw,setActiveSelectableAreasRect:d.aT,updateTransformer:d.XK,selectColor:d.KU}),handleStageMouseDown(t){L.P.handleStageMouseDown(t,this.selectCanvasObject,this.$refs,this.canvasObjects,this.selectedObjectName)},handleTransformEnd(t){let e=t.target.getStage();e&&e.listening(!0),this.checkIfSelectedAreaShouldBeActive(t),this.updateCanvasObject({config:{name:t.target.name(),x:t.target.x(),y:t.target.y(),rotation:t.target.rotation(),height:t.target.height(),width:t.target.width(),scaleX:this.selectedCanvasText?1:t.target.scaleX(),scaleY:this.selectedCanvasText?1:t.target.scaleY()}})},checkIfSelectedAreaShouldBeActive(t){this.pathsById&&this.pathsById.forEach(e=>{let n=this.$refs[e.id];if(!n)return;let r=n[0].getNode().getClientRect(),i=t.target.getStage().getPointerPosition(),a=i.x,o=i.y;L.P.checkIfCoordinatesInArea({x:a,y:o},{x:r.x,xy:r.x+r.width,y:r.y,yy:r.y+r.height})&&this.activeAreaId!==e.id&&this.setActiveSelectableAria(e.id)})},handleTransform(t){let{x:e,y:n,rotation:r,scaleX:i,scaleY:a,width:o,height:s,name:l,text:c}=t.target.getAttrs(),u=!!c&&!!t.target.fontSize;if(u)L.P.handleTextTransform(t);else{this.$refs[l][0].getNode().setAttrs({x:e,y:n,rotation:r,width:o,height:s,scaleX:u?1:i,scaleY:u?1:a});let c=t.target.getStage();c&&c.listening(!1),this.updateCanvasObject({config:{name:l,x:e,y:n,rotation:r,width:o,height:s,scaleX:u?1:i,scaleY:u?1:a,svgScale:u?1:i},isHistoryEnabled:!1})}},isCounterFunction(){return this.selectedCanvasText&&this.selectedCanvasText.isCounterFunctionText},shouldPanelOpen(){return this.isCounterFunction()&&!this.isDesktop},updateActiveSelectableAreaRect(){let t=this.$refs[this.activeAreaId];if(t){let e=t[0].getNode().getClientRect({skipTransform:!0});this.setActiveSelectableAreasRect(e)}},handleDoubleClick(t){if(!t.target.getAttrs().text)return;if(this.shouldPanelOpen()){this.toggleSlidablePanel({status:!0,slidablePanel:m.oQ.COUNTER});return}if(this.isCounterFunction())return;let{config:e}=this.selectedCanvasText;this.updateEditableTextName(e.name)}},watch:{collision(t){if(t)tg.AlertPlugin.dispatchAlert(tg.ALERT_TYPES.INFO,i.Z.t("configurator.collisionDetection"),15e3);else{let t=document.querySelector(".nsx-alert");t&&t.remove()}},isConfiguratorPadPrinting(t){t&&(this.selectColor(this.defaultColor),this.canvasObjects.map(async t=>{await tf.j.updateAllCanvasObjectsColor(t,this.defaultColor)}))},selectedObjectName(){this.$nextTick(()=>{L.P.updateTransformer(this.$refs,this.selectedObjectName),this.updateTransformer({visible:!0,name:this.selectedObjectName})})}},updated(){this.updateActiveSelectableAreaRect()},mounted(){var t=this;if(x.N.$on(w.sP,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return tl.cacheCanvasAssets(t.$refs[T.hy].getStage(),e)}),x.N.$on(d.$p,async()=>{if(!this.selectedCanvasText)return;await this.updateCanvasText({textConfig:{config:{name:this.selectedCanvasText.config.name,height:this.selectedCanvasText.config.height}}});let t=this.$refs[this.selectedCanvasText.config.name][0].getNode();await this.updateCanvasText({textConfig:{config:{name:this.selectedCanvasText.config.name,height:"auto"}}}),await this.updateCanvasText({textConfig:{config:{name:this.selectedCanvasText.config.name,height:Math.max(t.height()*t.scaleY(),t.fontSize())}}})}
12),this.productConfigData&&Array.isArray(this.productConfigData.alerts)&&this.productConfigData.alerts.length>0){let t=0,e=()=>{let n=this.productConfigData.alerts[t];tg.AlertPlugin.dispatchAlert(n.type,n.message,5e3),++t<this.productConfigData.alerts.length&&setTimeout(e,5e3)};setTimeout(e,0)}}},tv={name:"canvas-container",template:tr(),components:{CanvasPreview:tp,CanvasCollision:ti},data:()=>({initialContainerDimensions:{width:0,height:0},containerDimensions:{width:0,height:0},resizeObserver:null,CANVAS_OBJECT_TYPE_TEXT:T.bq,CANVAS_OBJECT_TYPE_IMAGE:T.HN,rotations:0}),mixins:[v],computed:{...(0,o.rn)({selectedObjectName:t=>{let{CanvasModule:e}=t;return e.selectedObjectName}}),...(0,o.Se)(["canvasObjects","canvasImages","canvasTexts","isConfiguratorLaser","productImage","canvasConfig","counterFunctionObject","previewImageCanvasObjects","printerImageCanvasObjects","selectedCanvasText","coverImageDimensions","canvasSize","selectedColor"]),style(){let t="".concat(this.canvasSize,"px"),{width:e}=this.containerDimensions;return e<this.canvasSize&&e>0&&(t="".concat(e,"px")),{width:t,height:t,maxWidth:t,maxHeight:t}}},methods:{...(0,o.nv)(["updateCanvasConfig","updateCanvasText","updateCanvasObject"]),...(0,o.OI)({setCanvasDimensions:d.D4}),getContainerWidth(){return this.$el.offsetWidth},createCanvasResizeObserver(){return new ResizeObserver(t=>{if(!this.canvasObjects.length)return;let{contentRect:e}=t[0];this.initialContainerDimensions.width||(this.initialContainerDimensions={width:this.coverImageDimensions.width,height:this.coverImageDimensions.height}),this.containerDimensions={width:e.width,height:e.height},L.P.fitCanvasIntoParentContainer(this.initialContainerDimensions,{width:e.width,height:e.height})})}},watch:{canvasObjects(t,e){0===e.length&&t.length>0&&(this.resizeObserver=this.createCanvasResizeObserver(),this.resizeObserver.observe(this.$el.parentElement))}},beforeDestroy(){this.resizeObserver&&this.resizeObserver.unobserve(this.$el),x.N.$off()}};var tm=n(3653),t_=n.n(tm),tb=n(8456),ty=n.n(tb);let tC={SMALL:"224",MEDIUM:"448",LARGE:"655"};class tS{static hasThumbnails(t){return t&&t.thumbnails&&t.thumbnails.length>0}static getThumbnailBySize(t,e){if(!this.hasThumbnails(t))return t.url;let n=this.getThumbnails(t)[e];return n?n.url:t.url}static getThumbnails(t){let e={};return t.thumbnails&&t.thumbnails.map(t=>{e[t.width]={width:t.width,height:t.height,url:t.url}}),e}}let tx={name:"image-container",template:n.n(n(9410))(),data:()=>({sizes:tC}),props:{image:Object,onClick:Function,onDelete:Function},computed:{pictureDataDate(){return new Date(this.image.createdAt).toLocaleDateString()}},methods:{getThumbnail:(t,e)=>tS.getThumbnailBySize(t,e)}},tw={name:"slidable-panel-images",template:ty(),data(){return{selectedImagesGroup:"",consentChecked:!1,sortOption:"date-newest-first",sortOptions:[{title:this.$t("configurator.sortOptionDateNewerFirst"),value:"date-newest-first"},{title:this.$t("configurator.sortOptionDateOlderFirst"),value:"date-oldest-first"},{title:this.$t("configurator.sortOptionNameAscending"),value:"name-ascending"},{title:this.$t("configurator.sortOptionNameDescending"),value:"name-descending"}]}},mixins:[v],components:{PanelAdd:y,ImageContainer:tx},computed:{...(0,o.Se)(["images","uploadedImages","isImagesLoading","isImageUploadLoading","isImageDeleteLoading","canvasConfig","productConfigData","canvasRotationAngle","coverImageDimensions","selectedColor"]),sortedImages(){let t=(t,e)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime(),e=(t,e)=>t.fileName&&e.fileName?t.fileName.localeCompare(e.fileName):0;switch(this.sortOption){case"date-oldest-first":return this.uploadedImages.sort(t);case"date-newest-first":return this.uploadedImages.sort((e,n)=>t(n,e));case"name-ascending":return this.uploadedImages.sort(e);case"name-descending":return this.uploadedImages.sort((t,n)=>e(n,t));default:return this.uploadedImages}}},methods:{...(0,o.nv)(["addCanvasImage","fetchImages","uploadImage","deleteImage"]),...(0,o.OI)({toggleSlidablePanel:d.TR}),async getViewBox(t){try{let e=await fetch(t.src),n=await e.text(),r=new DOMParser().parseFromString(n,"image/svg+xml").querySelector("svg").getAttribute("viewBox").split(" ").map(Number);return t.width=r[2],t.height=r[3],t}catch(t){}},loadImage(t,e){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"img",i=t.width/t.height,a=this.coverImageDimensions.width/this.coverImageDimensions.height;i=.9<i&&i<1.1?Math.round(i):i,a=.9<a&&a<1.1?Math.round(a):a;let o=1,s=1,l=this.coverImageDimensions.width>t.width&&this.coverImageDimensions.height>t.height;1!==i||l?1===i||l||(o=s=i>1?a>1?this.coverImageDimensions.height/t.height:this.coverImageDimensions.width/t.width:a>=1?this.coverImageDimensions.height/t.height:this.coverImageDimensions.width/t.width):o=s=(a>=1?this.coverImageDimensions.height:this.coverImageDimensions.width)/t.width,n={scaleX:o,scaleY:s,svgScale:".svg"===r?o:1,width:parseInt(t.width.toString(),10),height:parseInt(t.height.toString(),10),rotation:-this.canvasRotationAngle,pathColor:this.selectedColor.value},this.addCanvasImage({url:e.url,imageConfig:{mediaId:e.id,config:n}}),this.toggleSlidablePanel({slidablePanel:null})},handleAddImage(t){let e=t.url,n=e.indexOf(".svg")>0,r=new window.Image;if(r.src=e,r.crossOrigin="Anonymous",n)this.getViewBox(r).then(e=>{this.loadImage(e,t,".svg")});else{let e=0;r.onload=()=>{1!==e&&(e++,this.loadImage(r,t))}}},fixViewBox(t){let e=new FileReader,n=this;e.onload=function(e){let r=e.target.result,i=new DOMParser().parseFromString(r,"image/svg+xml").querySelector("svg"),a=i.getAttribute("viewBox").split(" ").map(Number);i.setAttribute("viewBox","0 0 ".concat(5*a[2]," ").concat(5*a[3])),i.querySelectorAll("path").forEach(t=>{let e=function(t,e){let n=t.match(/[a-zA-Z]|-?\d*\.?\d+(e[-+]?\d+)?/g);if(!n)return t;let r=[],i=0;for(;i<n.length;){let t=n[i];if(/[a-zA-Z]/.test(t))r.push(t),i++;else{let a=r[r.length-1];if(a&&("A"===a||"a"===a)){let t=n.slice(i,i+7).map((t,n)=>3===n||4===n?t:(parseFloat(t)*e).toString());r.push(...t),i+=7}else r.push((parseFloat(t)*e).toString()),i++}}return r.join(" ")}(t.getAttribute("d"),5);t.setAttribute("d",e)}),i.querySelectorAll("polyline, polygon").forEach(t=>{let e=t.getAttribute("points");if(e){let n=e.replace(/-?\d*\.?\d+/g,t=>(5*parseFloat(t)).toString());t.setAttribute("points",n)}}),i.querySelectorAll("rect").forEach(t=>
12{["x","y","width","height","rx","ry"].forEach(e=>{let n=t.getAttribute(e);n&&t.setAttribute(e,(5*parseFloat(n)).toString())})}),i.querySelectorAll("circle").forEach(t=>{["cx","cy","r"].forEach(e=>{let n=t.getAttribute(e);n&&t.setAttribute(e,(5*parseFloat(n)).toString())})}),i.querySelectorAll("ellipse").forEach(t=>{["cx","cy","rx","ry"].forEach(e=>{let n=t.getAttribute(e);n&&t.setAttribute(e,(5*parseFloat(n)).toString())})}),i.querySelectorAll("line").forEach(t=>{["x1","y1","x2","y2"].forEach(e=>{let n=t.getAttribute(e);n&&t.setAttribute(e,(5*parseFloat(n)).toString())})}),i.querySelectorAll("style").forEach(t=>{t.textContent=t.textContent.replace(/stroke-width\s*:\s*([0-9]*\.?[0-9]+)/g,(t,e)=>"stroke-width:".concat(5*parseFloat(e))),t.textContent=t.textContent.replace(/\{([^}]*stroke\s*:[^}]*)\}/g,(t,e)=>/stroke-width/.test(e)?t:"{".concat(e,";stroke-width:").concat(5,"}"))}),i.querySelectorAll("*").forEach(t=>{let e=t.getAttribute("stroke-width");e&&t.setAttribute("stroke-width",(5*parseFloat(e)).toString()),t.style&&t.style.strokeWidth&&(t.style.strokeWidth=(5*parseFloat(t.style.strokeWidth)).toString()),t.getAttribute("stroke")&&"none"!==t.getAttribute("stroke")&&!e&&t.setAttribute("stroke-width","5")});let o=new XMLSerializer().serializeToString(i),s=new Blob([o],{type:t[0].type}),l=new File([s],t[0].name,{type:t[0].type});n.uploadImage([l]).then(()=>{n.sortOption="date-newest-first"})},e.readAsText(t[0])},fixViewBoxUnesed(t){let e=new FileReader,n=this;e.onload=function(e){let r=e.target.result,i=new DOMParser().parseFromString(r,"image/svg+xml").querySelector("svg"),a=i.getAttribute("viewBox").split(" ");i.setAttribute("viewBox","0 0 ".concat(a[2]," ").concat(a[3]));let o=new File([i.outerHTML],t[0].name,{type:t[0].type});n.uploadImage([o]).then(()=>{this.sortOption="date-newest-first"})},e.readAsText(t[0])},handleImageUpload(t){for(let e in t)t[e].type.indexOf("svg")>0?this.fixViewBox([t[e]]):this.uploadImage([t[e]]).then(()=>{this.sortOption="date-newest-first"});this.consentChecked=!1}},watch:{selectedImagesGroup(){this.$refs.container.scrollIntoView(!0)}},mounted(){this.images.length||this.fetchImages()}};var tT=n(4991),tA=n.n(tT),tk=n(492);class tE{}tE.getStringTranslation=t=>i.Z.t("configurator.".concat(t));class tO{static async getSymbols(t){let e=this.getCategories(tk,t),n=this.getCategoryOptions(e);return{categories:e,categoryOptions:n}}static getCategories(t,e){let n=t[e],r=[];return n&&n.forEach(t=>{r.push({index:tA()(),category:tO.getCategory(t),value:tO.getPath(t,e)})}),_.groupBy(r,t=>t.category)}}tO.getPath=(t,e)=>{let n=t.split("/").slice(-1).pop();return"/bundles/nxsgraphictool/storefront/dist/assets/icon/symbols/".concat(e,"/")+n},tO.getCategory=t=>{let e=t.split("_")[0];return e?e.replace("_"," ").replace("-"," "):"General"},tO.getCategoryOptions=t=>{if(t)return Object.keys(t).map(t=>({title:tE.getStringTranslation(t),value:t}))};var tP=n(3839),tL=n.n(tP);let tI={NEW:"modern",LEGACY:"legacy",REVOX:"revox",UNIQUE:"unique"},tD=Object.values(tI).map(t=>({title:tE.getStringTranslation(t),value:t})),tR={name:"slidable-panel-symbols",template:tL(),mixins:[v],components:{PanelAdd:y},data:()=>({selectedCategory:null,categoryOptions:[],categories:[],displayLoader:!0,selectedLibrary:tI.NEW,libraries:tD,legacy:tI.LEGACY,revox:tI.REVOX,unique:tI.UNIQUE,premiumLibraries:[tI.UNIQUE]}),computed:{...(0,o.rn)({slidablePanel:t=>{let{SlidablePanelModule:e}=t;return e}}),...(0,o.Se)(["canvasRotationAngle","selectedColor","isConfiguratorLaser","laserColor"]),filteredLibraries(){return this.libraries.filter(t=>!this.premiumLibraries.includes(t.value))}},methods:{...(0,o.OI)({toggleSlidablePanel:d.TR}),...(0,o.nv)(["addCanvasImage"]),async handleAddSymbol(t){this.addCanvasImage({url:t,imageConfig:{config:{scaleX:t.includes(this.legacy)||t.includes(this.revox)?1:.5,scaleY:t.includes(this.legacy)||t.includes(this.revox)?1:.5,svgScale:t.includes(this.legacy)||t.includes(this.revox)?1:.5,rotation:-this.canvasRotationAngle,pathColor:this.isConfiguratorLaser?this.laserColor:this.selectedColor.value},isSymbol:!0,isPremium:!1}}),this.toggleSlidablePanel({slidablePanel:null})},handleLibraryChange(){this.displayLoader=!0,this.loadLibraryData()},loadLibraryData(){tO.getSymbols(this.selectedLibrary).then(t=>{this.categories=t.categories,this.categoryOptions=t.categoryOptions,this.selectedCategory=null,this.displayLoader=!1})}},mounted(){this.$nextTick(()=>{this.loadLibraryData()})}},tM={name:"slidable-panel-premium-symbols",template:n.n(n(3287))(),mixins:[v],components:{PanelAdd:y},data:()=>({selectedCategory:null,categoryOptions:[],categories:[],displayLoader:!0,selectedLibrary:tI.UNIQUE,libraries:tD,unique:tI.UNIQUE}),computed:{...(0,o.rn)({slidablePanel:t=>{let{SlidablePanelModule:e}=t;return e}}),...(0,o.Se)(["canvasRotationAngle","selectedColor","isConfiguratorLaser","laserColor"])},methods:{...(0,o.OI)({toggleSlidablePanel:d.TR}),...(0,o.nv)(["addCanvasImage"]),async handleAddSymbol(t){this.addCanvasImage({url:t,imageConfig:{config:{scaleX:.5,scaleY:.5,rotation:-this.canvasRotationAngle,pathColor:this.isConfiguratorLaser?this.laserColor:this.selectedColor.value},isSymbol:!1,isPremium:!0}}),this.toggleSlidablePanel({slidablePanel:null})},loadLibraryData(){tO.getSymbols(this.selectedLibrary).then(t=>{let e=JSON.parse(window.sessionStorage.getItem("uniquePremiumSymbolsNames")),n=t.categoryOptions.map(t=>{let n=t.value.toLowerCase();return e[n]?{...t,title:e[n]}:t});this.categories=t.categories,this.categoryOptions=n,this.selectedCategory=null,this.displayLoader=!1})}},mounted(){this.$nextTick(()=>{this.loadLibraryData()})}},tN={name:"slidable-panel-colors",template:n.n(n(388))(),mixins:[v],computed:{...(0,o.Se)(["selectedCanvasObject","getCanvasObjectByName","selectedColor","defaultColor","digitalColors","isPadPr
12intingEnabled","isOnlyPadPrintingEnabled","canvasObjects"])},methods:{...(0,o.nv)(["updateCanvasObject","canvasAddHistoryEntry"]),...(0,o.OI)({toggleSlidablePanel:d.TR,updateSelectCanvasColor:d.KU}),setActiveColor(t){this.activeColor=t},async handleColorSelect(t){this.updateSelectCanvasColor(t),this.isPadPrintingEnabled&&this.isOnlyPadPrintingEnabled?this.canvasObjects.map(async e=>{await tf.j.updateAllCanvasObjectsColor(e,t)}):await tf.j.updateAllCanvasObjectsColor(this.selectedCanvasObject,t),this.canvasAddHistoryEntry(),this.toggleSlidablePanel({slidablePanel:null})}}},tj={name:"slidable-panel-text",template:n.n(n(3261))(),components:{PanelConfigTypography:J,CanvasTextAligner:z,FontStyles:q}},tF={name:"slidable-panel-counter",template:n.n(n(8697))(),mixins:[v],components:{CounterFunction:tt}};var tB=n(458),tG=n.n(tB),t$=n(9874),tH=n.n(t$),tz=n(1491),tU=n.n(tz),tW=n(548),tV=n(5662);let tY={name:"slidable-panel-filter",template:tU(),components:{VueSlider:tH()},props:{label:String,isCustomFilter:Boolean,settings:{type:Object},filterKey:String,settingValues:Object},computed:{...(0,o.Se)(["selectedCanvasObject","selectedCanvasObjectName","isConfiguratorLaser"]),checked(){return tW.l.isFilterChecked({isCustomFilter:this.isCustomFilter,filterKey:this.filterKey})}},methods:{isFilterDisabled:t=>tW.l.isFilterDisabled(t),toggleImageFilter(t){tW.l.toggleImageFilter(t)},updateFilterSettingValue(t){this.debouncedUpdate(t)}},created(){this.debouncedUpdate=(0,p.debounce)(function(t){let{value:e,key:n}=t;tW.l.updateFilters({attributes:{[tV.zi[n]]:e}})},500)}},tX={name:"slidable-panel-preview-image",template:n.n(n(1577))(),mixins:[v],computed:{...(0,o.Se)(["selectedCanvasObject","canvasConfig","selectedCanvasObject","getCanvasObjectByName"]),previewCanvasConfig(){return{...this.canvasConfig,width:this.canvasSize,height:this.canvasSize,...tV.V4,x:0,y:0,offsetX:0,offsetY:0,rotation:0}},canvasSize(){return this.isMobile?100:200},initialCanvasContainerWidth(){return this.$el.offsetWidth},previewImageConfig(){let t=this.selectedCanvasObject.config,e=t.width/t.height,n=1,r=1;return e<1?(n=this.canvasSize*e,r=this.canvasSize):(n=this.canvasSize,r=this.canvasSize/e),{...tV.x_,...this.selectedCanvasObject.config,scaleX:this.isMobile?.5:1,scaleY:this.isMobile?.5:1,width:parseInt(n,10),height:parseInt(r,10),x:this.canvasSize/2-n/2,y:this.canvasSize/2-r/2,offsetX:0,offsetY:0,rotation:0,globalCompositeOperation:"source-over"}}},mounted(){x.N.$on(w.sP,()=>{let t=this.$refs.imageAdjustmentStage;t&&tl.cacheCanvasAssets(t.getStage(),[this.selectedCanvasObject.config.name])})}};var tK=n(5264);let tq={name:"slidable-panel-filters-container",template:tG(),components:{SlidablePanelFilter:tY,SlidablePanelPreviewImage:tX},computed:{...(0,o.Se)(["selectedCanvasObject","selectedCanvasObjectName","isConfiguratorLaser","isOnlyPadPrintingEnabled","isPadPrintingEnabled","isConfiguratorPadPrinting"]),padPrinting(){return this.isOnlyPadPrintingEnabled&&this.isPadPrintingEnabled},enabledFilters(){return this.padPrinting?tV.b1:Object.values(tV.fQ)},settingValuesByFilterKey(){if(!this.selectedCanvasObject)return;let{config:t}=this.selectedCanvasObject;return tK.h.settingValuesByFilterKey(t)},filtersByKey(){return tK.h.filtersByKey(this)}},watch:{selectedCanvasObjectName(t,e){t!==e&&this.toggleSlidablePanel({slidablePanel:null})}},methods:{...(0,o.OI)({toggleSlidablePanel:d.TR}),resetFilters(){let t=this.isConfiguratorLaser||this.isConfiguratorPadPrinting?tV.VH:[];tW.l.updateFilters({filters:t,removableAttributes:Object.values(t)})}}},tJ={name:"slidable-panel-labels",template:n.n(n(6343))(),computed:{...(0,o.Se)(["selectableAreasLinks","productData","maskImages"])},methods:{...(0,o.nv)(["addSelectableAreas"]),...(0,o.OI)({storeProductData:d.i6,toggleSlidablePanel:d.TR}),handleMaskSelect(t){this.addSelectableAreas(t),this.storeProductData({maskId:t.key}),this.toggleSlidablePanel({slidablePanel:null})}}},tZ={name:"slidable-panel-background",template:n.n(n(8687))(),mixins:[v],computed:{...(0,o.Se)(["selectedBackground","defaultBackground","digitalColors","labelBackgroundColors"])},methods:{...(0,o.OI)({toggleSlidablePanel:d.TR,updateSelectedBackgroun
12d:d.Xl,productInformationUpdated:d.x4}),handleBackgroundSelect(t){this.updateSelectedBackground(t),this.productInformationUpdated(!0),this.toggleSlidablePanel({slidablePanel:null})}}},tQ={name:"panel-slidable-container",template:t_(),components:{[m.oQ.IMAGES]:tw,[m.oQ.PREMIUM_SYMBOLS]:tM,[m.oQ.SYMBOLS]:tR,[m.oQ.COLORS]:tN,[m.oQ.TEXT]:tj,[m.oQ.COUNTER]:tF,[m.oQ.FILTER]:tq,[m.oQ.LABELS]:tJ,[m.oQ.BACKGROUND]:tZ},computed:{...(0,o.rn)({slidablePanel:t=>{let{SlidablePanelModule:e}=t;return e}}),activePanel(){return this.slidablePanel.activeSlidablePanel}},methods:{...(0,o.OI)({toggleSlidablePanel:d.TR}),handleClick(t){t.target.closest(".section-slidable")||t.target.closest(".panel-add")||t.target.closest(".panel-config-functions")||t.target.closest(".panel-confirm-image")||t.target.closest(".gt-color-display__background")||this.toggleSlidablePanel({slidablePanel:null})}},mounted(){setTimeout(()=>{document.addEventListener("click",this.handleClick)},100)},beforeDestroy(){document.removeEventListener("click",this.handleClick)}};var t0=n(4591),t1=n.n(t0),t2=n(1850);let t5={name:"panel-confirm",template:t1(),methods:{...(0,o.nv)(["updateProduct","releaseProduct"])},computed:{...(0,o.Se)(["productConfigData","isUpdateLoading","productInfoUpdatePayload","canvasObjects","counterFunctionObject","isConfiguratorLocked"]),isConfigurationEmpty(){return!t2.W.getConfiguration(this.canvasObjects).length>0},isCounterFunctionInvalid(){return!!this.counterFunctionObject&&this.counterFunctionObject.data.start>this.counterFunctionObject.data.stop}}},t3={name:"panel-individual",template:n.n(n(334))(),data(){return{rooms:[{value:null,title:this.$t("configurator.selectRoomOption")},{value:"StorageRoom",title:this.$t("rooms.StorageRoom")},{value:"DressingRoom",title:this.$t("rooms.DressingRoom")},{value:"Workspace",title:this.$t("rooms.Workspace")},{value:"Bathroom",title:this.$t("rooms.Bathroom")},{value:"Office",title:this.$t("rooms.Office")},{value:"Gallery",title:this.$t("rooms.Gallery")},{value:"DiningRoom",title:this.$t("rooms.DiningRoom")},{value:"Hallway",title:this.$t("rooms.Hallway")},{value:"Garage",title:this.$t("rooms.Garage")},{value:"Garden",title:this.$t("rooms.Garden")},{value:"BuildingServicesRoom",title:this.$t("rooms.BuildingServicesRoom")},{value:"UtilityRoom",title:this.$t("rooms.UtilityRoom")},{value:"HeatingSystemRoom",title:this.$t("rooms.HeatingSystemRoom")},{value:"HobbyRoom",title:this.$t("rooms.HobbyRoom")},{value:"KidsRoom",title:this.$t("rooms.KidsRoom")},{value:"Kitchen",title:this.$t("rooms.Kitchen")},{value:"TerraceBalcony",title:this.$t("rooms.TerraceBalcony")},{value:"WC",title:this.$t("rooms.WC")},{value:"LivingRoom",title:this.$t("rooms.LivingRoom")},{value:"GuestRoom",title:this.$t("rooms.GuestRoom")},{value:"Gym",title:this.$t("rooms.Gym")},{value:"Basement",title:this.$t("rooms.Basement")},{value:"StorageRoomWarehouse",title:this.$t("rooms.StorageRoomWarehouse")},{value:"Bedroom",title:this.$t("rooms.Bedroom")},{value:"Room1",title:this.$t("rooms.Room1")},{value:"Room2",title:this.$t("rooms.Room2")},{value:"Room3",title:this.$t("rooms.Room3")},{value:"Room4",title:this.$t("rooms.Room4")},{value:"Room5",title:this.$t("rooms.Room5")},{value:"Room6",title:this.$t("rooms.Room6")},{value:"Room7",title:this.$t("rooms.Room7")},{value:"Room8",title:this.$t("rooms.Room8")},{value:"Room9",title:this.$t("rooms.Room9")},{value:"Room10",title:this.$t("rooms.Room10")}]}},computed:{...(0,o.Se)({config:"configuratorConfig",isLocked:"isConfiguratorLocked"}),usage:{get(){return this.config.usage},set(t){this.setConfiguratorConfigValue({usage:t})}},floor:{get(){return this.config.floor},set(t){this.setConfiguratorConfigValue({floor:t})}},room:{get(){return this.config.room}}},methods:{...(0,o.nv)(["setConfiguratorConfigValue"]),handleRoomSelect(t){this.setConfiguratorConfigValue({room:t})}}};var t4=n(5164);let t8={name:"configurator-container",template:l(),mixins:[v],components:{CanvasContainer:tv,PanelSlidableContainer:tQ,PanelInfo:h,PanelAdd:y,PanelConfigContainer:te,PanelConfirm:t5,PanelIndividual:t3,CanvasActions:A},computed:{...(0,o.Se)(["showConfigurator","selectedCanvasObject","canvasImages","isFetchLoading","isUpdateLoading","maskImages","productC
12onfigData","maskId"]),...(0,o.rn)({slidablePanel:t=>{let{SlidablePanelModule:e}=t;return e}})},watch:{showConfigurator(t,e){e&&(this.removeImagesCacheOnModalClose(),this.closeSlidablePanel(),this.removeStateFromLocalStorage())},maskImages(t,e){this.openPanel(t,e)&&this.toggleSlidablePanel({slidablePanel:m.oQ.LABELS})}},methods:{...(0,o.OI)({onSlidablePanelClose:d.w,toggleSlidablePanel:d.TR,setSalesChannel:d.w}),...(0,o.nv)(["releaseProduct"]),openPanel(t,e){return e!==t&&!(t.length<=1)&&this.productConfigData.maskId!==this.maskId},removeImagesCacheOnModalClose(){for(let t of this.canvasImages){let e=this.$refs[t.config.name],n=e&&e[0];n&&tl.cacheClear(n)}},closeSlidablePanel(){this.toggleSlidablePanel({slidablePanel:null})},removeStateFromLocalStorage(){window.localStorage.removeItem(t4.l)}}},t6={name:"gt-button",template:n.n(n(5520))(),props:{name:String,id:String,icon:String,label:String,disabled:Boolean,font:{type:Boolean,default:!0},multipath:{type:Boolean,default:!1},hideLabelMobile:{type:Boolean,default:!0},toggleable:{type:Boolean,default:!1},variation:{type:String,default:"column",validate:t=>["column","inline","inline-reverse","square","circle","red","fontStyle"].includes(t)},size:{type:String,default:"large",validate:t=>["large","small"].includes(t)},color:{type:String,validate:t=>["primary","secondary"].includes(t)},type:{type:String,default:"button",validate:t=>["submit","reset","button"].includes(t)},dynamicColors:{type:String}},components:{Icon:X},data:()=>({multiPathIcons:["duplicate"],isSelected:!1}),computed:{multiPath(){return this.multiPathIcons.includes(this.icon)},style(){return this.dynamicColors?{backgroundColor:this.dynamicColors,color:"#fff"}:{}},classes(){let t=[];return t.push("gt-button--".concat(this.size)),t.push("gt-button--".concat(this.variation)),this.hideLabelMobile&&t.push("gt-button--hide-label-mobile"),this.isSelected&&t.push("gt-button--is-selected"),this.toggleable&&t.push("gt-button--toggleable"),this.color&&(!this.dynamicColors||"transparent"===this.dynamicColors)&&t.push("gt-button--".concat(this.color)),t}}},t9={name:"gt-action-button",template:n.n(n(6763))(),props:{name:String,id:String,label:String,active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hasSlot:{type:Boolean,default:!1},dynamicColor:{type:String}},components:{GtButton:t6},data:()=>({isOpen:!1,isActive:!1}),computed:{classes(){let t=[];return this.isOpen&&t.push("gt-action-button--open"),this.active&&t.push("gt-action-button--active"),this.disabled&&t.push("gt-action-button--disabled"),t},color(){return"transparent"===this.dynamicColor?"secondary":"primary"}}},t7={name:"gt-action-button-option",template:n.n(n(7118))(),props:{label:String,active:{type:Boolean,default:!1}},computed:{classes(){let t=[];return this.active&&t.push("gt-action-button-option--active"),t}}},et={name:"color-selector",template:n.n(n(760))(),props:{color:{type:String,required:!0},label:String},data:()=>({}),computed:{id(){let t=this.color&&this.color.replace(/[^0-9a-z-A-Z]/g,"");return"gt-color-".concat(t)},style(){return{backgroundColor:this.color}},classes(){return{"gt-color-select__button--border":"rgb(255,255,255)"===this.color}}}},ee={name:"canvas-loader",template:n.n(n(8491))(),props:{size:String}};t.default.component("icon",X),t.default.component("gt-button",t6),t.default.component("gt-action-button",t9),t.default.component("gt-action-button-option",t7),t.default.component("color-display",K),t.default.component("color-selector",et),t.default.component("canvas-loader",ee);let en={name:"form-input",template:n.n(n(3831))(),props:{value:[String,Number],label:String,required:Boolean,disabled:Boolean,placeholder:String,step:[String,Number],max:[String,Number],min:[String,Number],maxlength:[String,Number],onFocus:Function,addClass:String,noValidate:Boolean,preventSubmit:Boolean,multiple:Boolean,restrictedFormats:String,variation:{type:String,default:"material",validate:t=>["material","simple"].includes(t)},type:{type:String,default:"text"}},data:()=>({isActive:!1}),computed:{variationClass(){return"type-".concat(this.variation)}},methods:{handleFocus(){this.isActive=!0,this.$emit("focus")},handleBlur(){this.isActive=!1,this.$emit("blur")},handleInput(t){if("file"===this.type){let e=[];
12Array.from(t.target.files).forEach(t=>{e.push(t)}),this.$emit("input",e);return}this.$emit("input",t.target.value)}}},er={name:"form-select",template:n.n(n(8817))(),props:{value:[Number,String],selectText:String,options:Array,disabled:Boolean,enablePlaceholderSelection:Boolean,required:Boolean,showCaret:{type:Boolean,default:!0},variation:{type:String,default:"simple",validate:t=>["simple"].includes(t)}},computed:{selectedLabel(){let t=this.options.find(t=>Object.keys(t).find(e=>t[e]===this.value));return t&&t.title||this.selectText||""}}},ei={name:"form-radio",template:n.n(n(7634))(),props:{loopValue:[Number,String],initialValue:[Number,String],value:[Number,String],id:String,disabled:Boolean,required:Boolean,name:String},data:()=>({}),computed:{radioValue:{get(){return this.value},set(){this.$emit("input",this.initialValue)}}}},ea={name:"form-checkbox",template:n.n(n(309))(),props:{value:[String,Number,Boolean],id:String,disabled:Boolean,required:Boolean,name:String,checked:Boolean},data:()=>({})},eo={name:"form-textarea",template:n.n(n(6655))(),props:{value:[String,Number],label:String,required:Boolean,disabled:Boolean,rows:String,placeholder:String,maxlength:Number,minlength:Number,resize:String,textAlign:String},data:()=>({isActive:!1})};t.default.component("form-input",en),t.default.component("form-select",er),t.default.component("form-radio",ei),t.default.component("form-checkbox",ea),t.default.component("form-textarea",eo),n(6692);var es=n(9953);t.default.use(r()),es.K.getDomNode("#configurator-wrapper")&&new t.default({el:"#configurator-wrapper",i18n:i.Z,store:a.Store,components:{ConfiguratorContainer:t8}});let el=window.PluginManager;el.register("ConfiguratorInitializer",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_configurator-init_confi-e21f85").then(n.bind(n,5533)),"[data-configurator-initializer]"),el.register("ConfiguratorClose",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_configurator-close_conf-a8adf6").then(n.bind(n,5613)),"[data-configurator-close]"),el.register("AlertPlugin",()=>Promise.resolve().then(n.bind(n,3654)),"body"),el.register("CustomLimit",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_custom-limit_plugin_js").then(n.bind(n,9084)),"[data-listing-limit]"),el.register("EditableInput",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_editable-input_plugin_js").then(n.bind(n,1798)),"[data-editable-inputs]"),el.register("ProjectsFilters",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_projects-filters_pl-5ea9c5").then(n.bind(n,21)),"[data-filter-projects]"),el.register("ProjectsDownload",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_projects-download_p-767367").then(n.bind(n,2629)),"[data-management-projects]"),el.override("ListingPagination",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_custom-pagination_p-b266ca").then(n.bind(n,5819)),"[data-listing-pagination]"),el.register("CustomSearch",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_custom-search_plugin_js").then(n.bind(n,473)),"[data-listing-search]"),el.register("CustomSearchParam",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_custom-search-param-e8a566").then(n.bind(n,1751)),"[data-listing-search-param]"),el.register("ProductsManagementCollection",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_products-management-6843d7").then(n.bind(n,5247)),"[data-listing-collection]"),el.register("ProductsManagementPrint",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_products-management-5cb6f8").then(n.bind(n,716)),"[data-listing-print]"),el.register("ProductsManagementProjects",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_products-management-ec317d").then(n.bind(n,8948)),"[data-project-check]"),el.register("UpdateQuantityDatabase",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_update-quantity-dat-e84ac6").then(n.bind(n,6035)),"[data-update-quantity]"),el.register("OverlayConfiguratorTool",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_temporary-list_plugin_js").then(n.bind(n,2008)),'[data-listing="products"]'),el.register("SingleProductToCollection",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_single-product-to-c-90031e").then(n.bind(n,1348)),'[data-
12product-to-collection="true"]'),el.register("Loader",()=>Promise.resolve().then(n.bind(n,61)),"body"),el.override("FilterPropertySelect",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_overrides_filter-pr-f5b38a").then(n.bind(n,3407)),"[data-filter-property-select]"),el.register("HomePagePlugin",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_homepage_plugin_js").then(n.bind(n,3326)),"[data-gt-homepage]"),el.register("ProductsManagementState",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_products-management-f045e9").then(n.bind(n,9065)),"[data-product-management-state]"),el.register("ProjectShare",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_project-share_plugin_js").then(n.bind(n,3758)),"[data-management-projects-share]"),el.register("ProjectShareManagementEmailAddress",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_project-share-manag-7a0958").then(n.bind(n,3241)),".val-share-project-form"),el.register("ProjectInviteManagement",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_project-invite-mana-ec1bb5").then(n.bind(n,1916)),"[data-invite-action]"),el.register("ProductsManagementProject",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_products-management-06f5ea").then(n.bind(n,9092)),"[data-product-project]"),el.register("SortingProducts",()=>n.e("custom_plugins_NxsGraphicTool_src_Resources_app_storefront_src_plugin_nxs_sorting-products_pl-82780e").then(n.bind(n,4662)),"[data-sorting-products]")})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.