From d916cdd31dd336beaaaed08337a3688e88e40cb8 Mon Sep 17 00:00:00 2001 From: easylogic Date: Tue, 15 Jun 2021 00:02:21 +0900 Subject: [PATCH] fixed delete key event --- dist/editor.js | 2 +- dist/player.js | 2 +- dist/single.js | 2 +- docs/editor.js | 2 +- docs/index.html | 2 +- docs/player.html | 2 +- docs/player.js | 2 +- docs/service-worker.js | 2 +- docs/single.html | 2 +- docs/single.js | 2 +- src/el/editor/commands/history.removeLayer.js | 2 +- src/el/editor/shortcuts/index.js | 4 ++-- .../{removeLayerShift.js => removeLayerByDeleteKey.js} | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) rename src/el/editor/shortcuts/{removeLayerShift.js => removeLayerByDeleteKey.js} (87%) diff --git a/dist/editor.js b/dist/editor.js index 9eaca9612..a2239eb06 100644 --- a/dist/editor.js +++ b/dist/editor.js @@ -1,4 +1,4 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.EasylogicStudio=e():t.EasylogicStudio=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.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)return t;if(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 a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));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=178)}([function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"k",(function(){return c})),n.d(e,"i",(function(){return o})),n.d(e,"m",(function(){return s})),n.d(e,"L",(function(){return l})),n.d(e,"l",(function(){return u})),n.d(e,"r",(function(){return h})),n.d(e,"J",(function(){return f})),n.d(e,"e",(function(){return d})),n.d(e,"Y",(function(){return p})),n.d(e,"T",(function(){return v})),n.d(e,"D",(function(){return k})),n.d(e,"F",(function(){return x})),n.d(e,"z",(function(){return O})),n.d(e,"A",(function(){return w})),n.d(e,"a",(function(){return j})),n.d(e,"q",(function(){return M})),n.d(e,"o",(function(){return V})),n.d(e,"p",(function(){return S})),n.d(e,"Z",(function(){return P})),n.d(e,"K",(function(){return C})),n.d(e,"y",(function(){return R})),n.d(e,"R",(function(){return H})),n.d(e,"V",(function(){return $})),n.d(e,"X",(function(){return L})),n.d(e,"n",(function(){return B})),n.d(e,"s",(function(){return A})),n.d(e,"G",(function(){return E})),n.d(e,"H",(function(){return I})),n.d(e,"w",(function(){return D})),n.d(e,"x",(function(){return F})),n.d(e,"v",(function(){return _})),n.d(e,"u",(function(){return X})),n.d(e,"g",(function(){return G})),n.d(e,"E",(function(){return N})),n.d(e,"B",(function(){return Y})),n.d(e,"C",(function(){return U})),n.d(e,"f",(function(){return K})),n.d(e,"S",(function(){return q})),n.d(e,"U",(function(){return W})),n.d(e,"W",(function(){return Z})),n.d(e,"Q",(function(){return Q})),n.d(e,"P",(function(){return J})),n.d(e,"O",(function(){return tt})),n.d(e,"N",(function(){return et})),n.d(e,"M",(function(){return nt})),n.d(e,"h",(function(){return rt})),n.d(e,"bb",(function(){return at})),n.d(e,"ab",(function(){return it})),n.d(e,"t",(function(){return ct})),n.d(e,"I",(function(){return ot})),n.d(e,"db",(function(){return lt})),n.d(e,"d",(function(){return ut})),n.d(e,"c",(function(){return ht})),n.d(e,"b",(function(){return ft})),n.d(e,"eb",(function(){return dt}));var r=n(14),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return" ".concat(e," ").concat(t)},i=/^domevent (.*)/gi,c=/^load (.*)/gi,o=/^bind (.*)/gi,s=/^subscribe (.*)/gi,l=":",u="|",h="domevent ",f="load ",d="bind ",p="subscribe ",v=" ",y={},m=function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:u;return a(t,e)},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return a("after(".concat(t,")"),e)},k=g,x=g,O=(g("ArrowUp"),g("ArrowDown"),g("ArrowLeft"),g("ArrowRight"),g("Enter")),w=(g("Space"),g("Escape")),j=g("isAltKey"),z=(g("isShiftKey"),g("isMetaKey"),g("isCtrlKey"),g("self"),g("isMouseLeftButton")),M=(g("fit"),g("passive"),g("domdiff")),V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return g("debounce(".concat(t,")"))},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;return g("delay(".concat(t,")"))},P=(V(1e3),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return g("throttle(".concat(t,")"))}),C=(g("capture()"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"move";return b("bodyMouseMove ".concat(t))}),R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"end";return b("bodyMouseUp ".concat(t))},H=b("preventDefault"),$=b("stopPropagation"),L=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:"$el";return f+t},st=function(t){if(""===t)return"";var e=Object(r.uuid)();return y[e]=t,e},lt=function(t){return y[t]||""},ut=function(t){return function(){return this.prevState[t]!=this.state[t]}},ht=function(){return!0},ft=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$el",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return d+t+(e?u+st(e):"")};function dt(t){var e=t.deltaX,n=t.deltaY;if(0===e&&t.shiftKey){var r=[e,n];n=r[0],e=r[1]}return t.deltaMode===WheelEvent.DOM_DELTA_LINE?n*=8:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=24),[pt(e,24),pt(n,24),0]}function pt(t,e){return Math.sign(t)*Math.min(e,Math.abs(t))}e.cb={addDomEvent:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t&&t.addEventListener(e,n,r)},removeDomEvent:function(t,e,n){t&&t.removeEventListener(e,n)},pos:function(t){return t.touches&&t.touches[0]?t.touches[0]:t},posXY:function(t){var e=this.pos(t);return{x:e.pageX,y:e.pageY}}}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(c()(this,t),this.value=e,Object(o.isNumber)(this.value)&&isNaN(this.value))throw new Error("NaN is not able to set");this.unit=n}return a()(t,[{key:Symbol.toPrimitive,value:function(t){return"number"==t?this.value:this.toString()}},{key:"toString",value:function(){switch(this.unit){case"string":case"number":return this.value+"";case"var":return"var(--".concat(this.value,")");case"calc":return"calc(".concat(this.value,")");default:return this.value+this.unit}}},{key:"isUnitType",value:function(t){return this.unit===t}},{key:"isCalc",value:function(){return this.isUnitType("calc")}},{key:"isFr",value:function(){return this.isUnitType("fr")}},{key:"isPercent",value:function(){return this.isUnitType("%")}},{key:"isPx",value:function(){return this.isUnitType("px")}},{key:"isEm",value:function(){return this.isUnitType("em")}},{key:"isDeg",value:function(){return this.isUnitType("deg")}},{key:"isRad",value:function(){return this.isUnitType("rad")}},{key:"isTurn",value:function(){return this.isUnitType("turn")}},{key:"isSecond",value:function(){return this.isUnitType("s")}},{key:"isMs",value:function(){return this.isUnitType("ms")}},{key:"isNumber",value:function(){return this.isUnitType("number")}},{key:"isString",value:function(){return this.isUnitType("")}},{key:"isVar",value:function(){return this.isUnitType("--")}},{key:"isNaN",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return Object(o.isNumber)(this.value)&&isNaN(this.value)}))},{key:"set",value:function(t){return this.value=t,this}},{key:"add",value:function(t){return this.value+=+t,this}},{key:"sub",value:function(t){return this.add(-1*t)}},{key:"mul",value:function(t){return this.value*=+t,this}},{key:"div",value:function(t){return this.value/=+t,this}},{key:"mod",value:function(t){return this.value%=+t,this}},{key:"clone",value:function(){return new t(this.value,this.unit)}},{key:"getUnitName",value:function(){return"%"===this.unit?"percent":this.unit}},{key:"toJSON",value:function(){return this.toString()}},{key:"rate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return this.value/t}},{key:"stringToPercent",value:function(){return Object(o.isNotUndefined)(l[this.value])?t.percent(l[this.value]):t.percent(0)}},{key:"stringToEm",value:function(t){return this.stringToPercent().toEm(t)}},{key:"stringToPx",value:function(t){return this.stringToPercent().toPx(t)}},{key:"toPercent",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return this.isPercent()?this.clone():this.isPx()?t.percent(100*this.value/e):this.isEm()?t.percent(this.value*n*100/e):this.isString()?this.stringToPercent(e):this.isDeg()?t.percent(this.value/360*100):void 0}},{key:"toEm",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return this.isPercent()?t.em(this.value/100*e/n):this.isPx()?t.em(this.value/n):this.isEm()?this.clone():this.isString()?this.stringToEm(e):void 0}},{key:"toPx",value:function(e){return this.isPercent()?t.px(this.value/100*e):this.isPx()?this.clone():this.isEm()?t.px(this.value/100*e/16):this.isString()?this.stringToPx(e):void 0}},{key:"toDeg",value:function(){return this.isDeg()?this.clone():this.isTurn()?t.deg(360*this.value):this.isRad()?t.deg(this.value*(180/Math.PI)):void 0}},{key:"toTurn",value:function(){return this.isTurn()?this.clone():this.isDeg()?t.turn(this.value/360):void 0}},{key:"toSecond",value:function(){return this.isSecond()?this:this.isMs()?t.second(this.value/1e3):void 0}},{key:"toMs",value:function(){return this.isSecond()?t.ms(1e3*this.value):this.isMs()?this:void 0}},{key:"to",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16;return"px"===t?this.toPx(e,n):"%"===t||"percent"===t?this.toPercent(e,n):"em"===t?this.toEm(e,n):"deg"===t?this.toDeg():"turn"===t?this.toTurn():void 0}},{key:"toUnit",value:function(e){return new t(this.value,e)}},{key:"calculate",value:function(t,e){var n=this[t];return n?n.call(this,e):this}},{key:"includes",value:function(){for(var t=arguments.length,e=new Array(t),n=0;ne[a].value&&(r=e[a]);return r}},{key:"max",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.__proto__,r=[];do{var a=n instanceof Object;if(!1===a)break;var i=Object.getOwnPropertyNames(n).filter((function(n){return t&&R(t[n])&&!e[n]}));r.push.apply(r,i),n=n.__proto__}while(n);return r}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0===e)return t;var n=void 0;return function(r,a,i,c,o){n&&clearTimeout(n),n=setTimeout((function(){t(r,a,i,c,o)}),e||300)}}function g(t,e){var n=void 0;return function(r,a,i,c,o){n||(n=setTimeout((function(){t(r,a,i,c,o),n=null}),e||300))}}function b(t,e){Object.keys(t).forEach((function(n,r){e(n,t[n],r)}))}function k(t,e){return Object.keys(t).map((function(n,r){return e(n,t[n],r)}))}function x(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return k(t,e).join(n)}function O(t,e,n){var r=w(t[e],e);return R(n)?n(r):r}function w(t,e){return void 0===t?e:t}function j(t){return null==t}function z(t){return!1===j(t)}function M(t){return Array.isArray(t)}function V(t){return"boolean"==typeof t}function S(t){return"string"==typeof t}function P(t){return!1===S(t)}function C(t){return"object"==d()(t)&&!M(t)&&!H(t)&&!S(t)&&null!==t}function R(t){return"function"==typeof t}function H(t){return"number"==typeof t}function $(t){return 0===t}function L(t){return!$(t)}function T(t){if(!j(t))return JSON.parse(JSON.stringify(t))}function B(t){var e={};return Object.keys(t).filter((function(e){return!!t[e]})).forEach((function(n){e[n]=t[n]})),e}function A(t){return Object.keys(t).forEach((function(e){Array.isArray(t[e])&&(t[e]=t[e].join(", "))})),t}function E(t){return h()(Array(t))}function I(){for(var t=arguments.length,e=new Array(t),n=0;n]*)\/\>/gim,F=(r={image:!0,input:!0,br:!0,path:!0,line:!0,circle:!0,rect:!0},l()(r,"path",!0),l()(r,"polygon",!0),l()(r,"polyline",!0),l()(r,"use",!0),r),_=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r",">"))}))};function X(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t||{};return Object.keys(n).filter((function(t){return z(n[t])})).map((function(t){return"".concat(t,": ").concat(n[t])})).join(";"+e)}function G(){var 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]:":",r={};return""===(t+="")||t.split(e).forEach((function(t){var e=t.split(n).map((function(t){return t.trim()})),a=o()(e),i=a[0],c=a.slice(1);""!=i&&(r[i]=c.join(n))})),r}function N(t){return Object.keys(t).map((function(e){return"class"===e&&C(t[e])?"".concat(e,'="').concat(Y(t[e]),'"'):V(t[e])||j(t[e])||"undefined"===t[e]?t[e]?e:"":"".concat(e,'="').concat(t[e],'"')})).join(" ")}function Y(t){return Object.keys(t).filter((function(e){return t[e]})).map((function(t){return t})).join(" ")}function U(t){return t.replace(/\/g,">")}function K(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.map(e).join(n)}function q(t,e){var n=new Set([].concat(h()(t),h()(e)));return n.size===t.length&&n.size===e.length}var W=function(t,e){var n=t.filter((function(t){return t.indexOf("".concat(e,"("))>-1})),r=n.map((function(t){var n=t.split("".concat(e,"("))[1].split(")")[0].trim().split(" "),r=i()(n,2);return{target:r[0],param:r[1]}}));return[n,r]},Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,r=Object(v.k)(t);return"\n M0 ".concat(e," \n C \n ").concat(r[0]*e," ").concat(0==r[1]?n:(1-r[1])*n,",\n ").concat(r[2]*e," ").concat(1==r[3]?0:(1-r[3])*n,",\n ").concat(e," 0\n ")},Q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,r=Object(v.k)(t);return"\n M 0 ".concat(e," \n L ").concat(r[0]*e," ").concat(0==r[1]?n:(1-r[1])*n,"\n M ").concat(e," 0\n L ").concat(r[2]*e," ").concat(1==r[3]?0:(1-r[3])*n,"\n ")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i}));var r={};function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).forEach((function(e){r[e]?console.warn("".concat(e," element is duplicated.")):r[e]=t[e]}))}function i(t){return r[t]}},function(t,e,n){var r=n(155);function a(e,n,i){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=a=Reflect.get,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=a=function(t,e,n){var a=r(t,e);if(a){var i=Object.getOwnPropertyDescriptor(a,e);return i.get?i.get.call(n):i.value}},t.exports.default=t.exports,t.exports.__esModule=!0),a(e,n,i||e)}t.exports=a,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return a}));var r={};n.r(r),n.d(r,"create",(function(){return u})),n.d(r,"clone",(function(){return h})),n.d(r,"copy",(function(){return f})),n.d(r,"fromValues",(function(){return d})),n.d(r,"set",(function(){return p})),n.d(r,"identity",(function(){return v})),n.d(r,"transpose",(function(){return y})),n.d(r,"invert",(function(){return m})),n.d(r,"adjoint",(function(){return g})),n.d(r,"determinant",(function(){return b})),n.d(r,"multiply",(function(){return k})),n.d(r,"translate",(function(){return x})),n.d(r,"scale",(function(){return O})),n.d(r,"rotate",(function(){return w})),n.d(r,"rotateX",(function(){return j})),n.d(r,"rotateY",(function(){return z})),n.d(r,"rotateZ",(function(){return M})),n.d(r,"fromTranslation",(function(){return V})),n.d(r,"fromScaling",(function(){return S})),n.d(r,"fromRotation",(function(){return P})),n.d(r,"fromXRotation",(function(){return C})),n.d(r,"fromYRotation",(function(){return R})),n.d(r,"fromZRotation",(function(){return H})),n.d(r,"fromRotationTranslation",(function(){return $})),n.d(r,"fromQuat2",(function(){return L})),n.d(r,"getTranslation",(function(){return T})),n.d(r,"getScaling",(function(){return B})),n.d(r,"getRotation",(function(){return A})),n.d(r,"fromRotationTranslationScale",(function(){return E})),n.d(r,"fromRotationTranslationScaleOrigin",(function(){return I})),n.d(r,"fromQuat",(function(){return D})),n.d(r,"frustum",(function(){return F})),n.d(r,"perspective",(function(){return _})),n.d(r,"perspectiveFromFieldOfView",(function(){return X})),n.d(r,"ortho",(function(){return G})),n.d(r,"lookAt",(function(){return N})),n.d(r,"targetTo",(function(){return Y})),n.d(r,"str",(function(){return U})),n.d(r,"frob",(function(){return K})),n.d(r,"add",(function(){return q})),n.d(r,"subtract",(function(){return W})),n.d(r,"multiplyScalar",(function(){return Z})),n.d(r,"multiplyScalarAndAdd",(function(){return Q})),n.d(r,"exactEquals",(function(){return J})),n.d(r,"equals",(function(){return tt})),n.d(r,"mul",(function(){return et})),n.d(r,"sub",(function(){return nt}));var a={};n.r(a),n.d(a,"create",(function(){return rt})),n.d(a,"clone",(function(){return at})),n.d(a,"length",(function(){return it})),n.d(a,"fromValues",(function(){return ct})),n.d(a,"copy",(function(){return ot})),n.d(a,"set",(function(){return st})),n.d(a,"add",(function(){return lt})),n.d(a,"subtract",(function(){return ut})),n.d(a,"multiply",(function(){return ht})),n.d(a,"divide",(function(){return ft})),n.d(a,"ceil",(function(){return dt})),n.d(a,"floor",(function(){return pt})),n.d(a,"min",(function(){return vt})),n.d(a,"max",(function(){return yt})),n.d(a,"round",(function(){return mt})),n.d(a,"scale",(function(){return gt})),n.d(a,"scaleAndAdd",(function(){return bt})),n.d(a,"distance",(function(){return kt})),n.d(a,"squaredDistance",(function(){return xt})),n.d(a,"squaredLength",(function(){return Ot})),n.d(a,"negate",(function(){return wt})),n.d(a,"inverse",(function(){return jt})),n.d(a,"normalize",(function(){return zt})),n.d(a,"dot",(function(){return Mt})),n.d(a,"cross",(function(){return Vt})),n.d(a,"lerp",(function(){return St})),n.d(a,"hermite",(function(){return Pt})),n.d(a,"bezier",(function(){return Ct})),n.d(a,"random",(function(){return Rt})),n.d(a,"transformMat4",(function(){return Ht})),n.d(a,"transformMat3",(function(){return $t})),n.d(a,"transformQuat",(function(){return Lt})),n.d(a,"rotateX",(function(){return Tt})),n.d(a,"rotateY",(function(){return Bt})),n.d(a,"rotateZ",(function(){return At})),n.d(a,"angle",(function(){return Et})),n.d(a,"zero",(function(){return It})),n.d(a,"str",(function(){return Dt})),n.d(a,"exactEquals",(function(){return Ft})),n.d(a,"equals",(function(){return _t})),n.d(a,"sub",(function(){return Gt})),n.d(a,"mul",(function(){return Nt})),n.d(a,"div",(function(){return Yt})),n.d(a,"dist",(function(){return Ut})),n.d(a,"sqrDist",(function(){return Kt})),n.d(a,"len",(function(){return qt})),n.d(a,"sqrLen",(function(){return Wt})),n.d(a,"forEach",(function(){return Zt}));var i={};n.r(i),n.d(i,"create",(function(){return te})),n.d(i,"identity",(function(){return ee})),n.d(i,"setAxisAngle",(function(){return ne})),n.d(i,"getAxisAngle",(function(){return re})),n.d(i,"getAngle",(function(){return ae})),n.d(i,"multiply",(function(){return ie})),n.d(i,"rotateX",(function(){return ce})),n.d(i,"rotateY",(function(){return oe})),n.d(i,"rotateZ",(function(){return se})),n.d(i,"calculateW",(function(){return le})),n.d(i,"exp",(function(){return ue})),n.d(i,"ln",(function(){return he})),n.d(i,"pow",(function(){return fe})),n.d(i,"slerp",(function(){return de})),n.d(i,"random",(function(){return pe})),n.d(i,"invert",(function(){return ve})),n.d(i,"conjugate",(function(){return ye})),n.d(i,"fromMat3",(function(){return me})),n.d(i,"fromEuler",(function(){return ge})),n.d(i,"str",(function(){return be})),n.d(i,"clone",(function(){return Ve})),n.d(i,"fromValues",(function(){return Se})),n.d(i,"copy",(function(){return Pe})),n.d(i,"set",(function(){return Ce})),n.d(i,"add",(function(){return Re})),n.d(i,"mul",(function(){return He})),n.d(i,"scale",(function(){return $e})),n.d(i,"dot",(function(){return Le})),n.d(i,"lerp",(function(){return Te})),n.d(i,"length",(function(){return Be})),n.d(i,"len",(function(){return Ae})),n.d(i,"squaredLength",(function(){return Ee})),n.d(i,"sqrLen",(function(){return Ie})),n.d(i,"normalize",(function(){return De})),n.d(i,"exactEquals",(function(){return Fe})),n.d(i,"equals",(function(){return _e})),n.d(i,"rotationTo",(function(){return Xe})),n.d(i,"sqlerp",(function(){return Ge})),n.d(i,"setAxes",(function(){return Ne}));var c={};n.r(c),n.d(c,"create",(function(){return Ye})),n.d(c,"clone",(function(){return Ue})),n.d(c,"fromValues",(function(){return Ke})),n.d(c,"copy",(function(){return qe})),n.d(c,"set",(function(){return We})),n.d(c,"add",(function(){return Ze})),n.d(c,"subtract",(function(){return Qe})),n.d(c,"multiply",(function(){return Je})),n.d(c,"divide",(function(){return tn})),n.d(c,"ceil",(function(){return en})),n.d(c,"floor",(function(){return nn})),n.d(c,"min",(function(){return rn})),n.d(c,"max",(function(){return an})),n.d(c,"round",(function(){return cn})),n.d(c,"scale",(function(){return on})),n.d(c,"scaleAndAdd",(function(){return sn})),n.d(c,"distance",(function(){return ln})),n.d(c,"squaredDistance",(function(){return un})),n.d(c,"length",(function(){return hn})),n.d(c,"squaredLength",(function(){return fn})),n.d(c,"negate",(function(){return dn})),n.d(c,"inverse",(function(){return pn})),n.d(c,"normalize",(function(){return vn})),n.d(c,"dot",(function(){return yn})),n.d(c,"cross",(function(){return mn})),n.d(c,"lerp",(function(){return gn})),n.d(c,"random",(function(){return bn})),n.d(c,"transformMat2",(function(){return kn})),n.d(c,"transformMat2d",(function(){return xn})),n.d(c,"transformMat3",(function(){return On})),n.d(c,"transformMat4",(function(){return wn})),n.d(c,"rotate",(function(){return jn})),n.d(c,"angle",(function(){return zn})),n.d(c,"zero",(function(){return Mn})),n.d(c,"str",(function(){return Vn})),n.d(c,"exactEquals",(function(){return Sn})),n.d(c,"equals",(function(){return Pn})),n.d(c,"len",(function(){return Cn})),n.d(c,"sub",(function(){return Rn})),n.d(c,"mul",(function(){return Hn})),n.d(c,"div",(function(){return $n})),n.d(c,"dist",(function(){return Ln})),n.d(c,"sqrDist",(function(){return Tn})),n.d(c,"sqrLen",(function(){return Bn})),n.d(c,"forEach",(function(){return An}));var o=1e-6,s="undefined"!=typeof Float32Array?Float32Array:Array,l=Math.random;Math.PI;function u(){var t=new s(16);return s!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function h(t){var e=new s(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r,a,i,c,o,l,u,h,f,d,p,v,y){var m=new s(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=r,m[4]=a,m[5]=i,m[6]=c,m[7]=o,m[8]=l,m[9]=u,m[10]=h,m[11]=f,m[12]=d,m[13]=p,m[14]=v,m[15]=y,m}function p(t,e,n,r,a,i,c,o,s,l,u,h,f,d,p,v,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=c,t[6]=o,t[7]=s,t[8]=l,t[9]=u,t[10]=h,t[11]=f,t[12]=d,t[13]=p,t[14]=v,t[15]=y,t}function v(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e){if(t===e){var n=e[1],r=e[2],a=e[3],i=e[6],c=e[7],o=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[11]=e[14],t[12]=a,t[13]=c,t[14]=o}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function m(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],c=e[4],o=e[5],s=e[6],l=e[7],u=e[8],h=e[9],f=e[10],d=e[11],p=e[12],v=e[13],y=e[14],m=e[15],g=n*o-r*c,b=n*s-a*c,k=n*l-i*c,x=r*s-a*o,O=r*l-i*o,w=a*l-i*s,j=u*v-h*p,z=u*y-f*p,M=u*m-d*p,V=h*y-f*v,S=h*m-d*v,P=f*m-d*y,C=g*P-b*S+k*V+x*M-O*z+w*j;return C?(C=1/C,t[0]=(o*P-s*S+l*V)*C,t[1]=(a*S-r*P-i*V)*C,t[2]=(v*w-y*O+m*x)*C,t[3]=(f*O-h*w-d*x)*C,t[4]=(s*M-c*P-l*z)*C,t[5]=(n*P-a*M+i*z)*C,t[6]=(y*k-p*w-m*b)*C,t[7]=(u*w-f*k+d*b)*C,t[8]=(c*S-o*M+l*j)*C,t[9]=(r*M-n*S-i*j)*C,t[10]=(p*O-v*k+m*g)*C,t[11]=(h*k-u*O-d*g)*C,t[12]=(o*z-c*V-s*j)*C,t[13]=(n*V-r*z+a*j)*C,t[14]=(v*b-p*x-y*g)*C,t[15]=(u*x-h*b+f*g)*C,t):null}function g(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],c=e[4],o=e[5],s=e[6],l=e[7],u=e[8],h=e[9],f=e[10],d=e[11],p=e[12],v=e[13],y=e[14],m=e[15];return t[0]=o*(f*m-d*y)-h*(s*m-l*y)+v*(s*d-l*f),t[1]=-(r*(f*m-d*y)-h*(a*m-i*y)+v*(a*d-i*f)),t[2]=r*(s*m-l*y)-o*(a*m-i*y)+v*(a*l-i*s),t[3]=-(r*(s*d-l*f)-o*(a*d-i*f)+h*(a*l-i*s)),t[4]=-(c*(f*m-d*y)-u*(s*m-l*y)+p*(s*d-l*f)),t[5]=n*(f*m-d*y)-u*(a*m-i*y)+p*(a*d-i*f),t[6]=-(n*(s*m-l*y)-c*(a*m-i*y)+p*(a*l-i*s)),t[7]=n*(s*d-l*f)-c*(a*d-i*f)+u*(a*l-i*s),t[8]=c*(h*m-d*v)-u*(o*m-l*v)+p*(o*d-l*h),t[9]=-(n*(h*m-d*v)-u*(r*m-i*v)+p*(r*d-i*h)),t[10]=n*(o*m-l*v)-c*(r*m-i*v)+p*(r*l-i*o),t[11]=-(n*(o*d-l*h)-c*(r*d-i*h)+u*(r*l-i*o)),t[12]=-(c*(h*y-f*v)-u*(o*y-s*v)+p*(o*f-s*h)),t[13]=n*(h*y-f*v)-u*(r*y-a*v)+p*(r*f-a*h),t[14]=-(n*(o*y-s*v)-c*(r*y-a*v)+p*(r*s-a*o)),t[15]=n*(o*f-s*h)-c*(r*f-a*h)+u*(r*s-a*o),t}function b(t){var e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],c=t[5],o=t[6],s=t[7],l=t[8],u=t[9],h=t[10],f=t[11],d=t[12],p=t[13],v=t[14],y=t[15];return(e*c-n*i)*(h*y-f*v)-(e*o-r*i)*(u*y-f*p)+(e*s-a*i)*(u*v-h*p)+(n*o-r*c)*(l*y-f*d)-(n*s-a*c)*(l*v-h*d)+(r*s-a*o)*(l*p-u*d)}function k(t,e,n){var r=e[0],a=e[1],i=e[2],c=e[3],o=e[4],s=e[5],l=e[6],u=e[7],h=e[8],f=e[9],d=e[10],p=e[11],v=e[12],y=e[13],m=e[14],g=e[15],b=n[0],k=n[1],x=n[2],O=n[3];return t[0]=b*r+k*o+x*h+O*v,t[1]=b*a+k*s+x*f+O*y,t[2]=b*i+k*l+x*d+O*m,t[3]=b*c+k*u+x*p+O*g,b=n[4],k=n[5],x=n[6],O=n[7],t[4]=b*r+k*o+x*h+O*v,t[5]=b*a+k*s+x*f+O*y,t[6]=b*i+k*l+x*d+O*m,t[7]=b*c+k*u+x*p+O*g,b=n[8],k=n[9],x=n[10],O=n[11],t[8]=b*r+k*o+x*h+O*v,t[9]=b*a+k*s+x*f+O*y,t[10]=b*i+k*l+x*d+O*m,t[11]=b*c+k*u+x*p+O*g,b=n[12],k=n[13],x=n[14],O=n[15],t[12]=b*r+k*o+x*h+O*v,t[13]=b*a+k*s+x*f+O*y,t[14]=b*i+k*l+x*d+O*m,t[15]=b*c+k*u+x*p+O*g,t}function x(t,e,n){var r,a,i,c,o,s,l,u,h,f,d,p,v=n[0],y=n[1],m=n[2];return e===t?(t[12]=e[0]*v+e[4]*y+e[8]*m+e[12],t[13]=e[1]*v+e[5]*y+e[9]*m+e[13],t[14]=e[2]*v+e[6]*y+e[10]*m+e[14],t[15]=e[3]*v+e[7]*y+e[11]*m+e[15]):(r=e[0],a=e[1],i=e[2],c=e[3],o=e[4],s=e[5],l=e[6],u=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=r,t[1]=a,t[2]=i,t[3]=c,t[4]=o,t[5]=s,t[6]=l,t[7]=u,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=r*v+o*y+h*m+e[12],t[13]=a*v+s*y+f*m+e[13],t[14]=i*v+l*y+d*m+e[14],t[15]=c*v+u*y+p*m+e[15]),t}function O(t,e,n){var r=n[0],a=n[1],i=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function w(t,e,n,r){var a,i,c,s,l,u,h,f,d,p,v,y,m,g,b,k,x,O,w,j,z,M,V,S,P=r[0],C=r[1],R=r[2],H=Math.hypot(P,C,R);return H0?(n[0]=2*(o*c+h*r+l*i-u*a)/f,n[1]=2*(l*c+h*a+u*r-o*i)/f,n[2]=2*(u*c+h*i+o*a-l*r)/f):(n[0]=2*(o*c+h*r+l*i-u*a),n[1]=2*(l*c+h*a+u*r-o*i),n[2]=2*(u*c+h*i+o*a-l*r)),$(t,e,n),t}function T(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function B(t,e){var n=e[0],r=e[1],a=e[2],i=e[4],c=e[5],o=e[6],s=e[8],l=e[9],u=e[10];return t[0]=Math.hypot(n,r,a),t[1]=Math.hypot(i,c,o),t[2]=Math.hypot(s,l,u),t}function A(t,e){var n=new s(3);B(n,e);var r=1/n[0],a=1/n[1],i=1/n[2],c=e[0]*r,o=e[1]*a,l=e[2]*i,u=e[4]*r,h=e[5]*a,f=e[6]*i,d=e[8]*r,p=e[9]*a,v=e[10]*i,y=c+h+v,m=0;return y>0?(m=2*Math.sqrt(y+1),t[3]=.25*m,t[0]=(f-p)/m,t[1]=(d-l)/m,t[2]=(o-u)/m):c>h&&c>v?(m=2*Math.sqrt(1+c-h-v),t[3]=(f-p)/m,t[0]=.25*m,t[1]=(o+u)/m,t[2]=(d+l)/m):h>v?(m=2*Math.sqrt(1+h-c-v),t[3]=(d-l)/m,t[0]=(o+u)/m,t[1]=.25*m,t[2]=(f+p)/m):(m=2*Math.sqrt(1+v-c-h),t[3]=(o-u)/m,t[0]=(d+l)/m,t[1]=(f+p)/m,t[2]=.25*m),t}function E(t,e,n,r){var a=e[0],i=e[1],c=e[2],o=e[3],s=a+a,l=i+i,u=c+c,h=a*s,f=a*l,d=a*u,p=i*l,v=i*u,y=c*u,m=o*s,g=o*l,b=o*u,k=r[0],x=r[1],O=r[2];return t[0]=(1-(p+y))*k,t[1]=(f+b)*k,t[2]=(d-g)*k,t[3]=0,t[4]=(f-b)*x,t[5]=(1-(h+y))*x,t[6]=(v+m)*x,t[7]=0,t[8]=(d+g)*O,t[9]=(v-m)*O,t[10]=(1-(h+p))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function I(t,e,n,r,a){var i=e[0],c=e[1],o=e[2],s=e[3],l=i+i,u=c+c,h=o+o,f=i*l,d=i*u,p=i*h,v=c*u,y=c*h,m=o*h,g=s*l,b=s*u,k=s*h,x=r[0],O=r[1],w=r[2],j=a[0],z=a[1],M=a[2],V=(1-(v+m))*x,S=(d+k)*x,P=(p-b)*x,C=(d-k)*O,R=(1-(f+m))*O,H=(y+g)*O,$=(p+b)*w,L=(y-g)*w,T=(1-(f+v))*w;return t[0]=V,t[1]=S,t[2]=P,t[3]=0,t[4]=C,t[5]=R,t[6]=H,t[7]=0,t[8]=$,t[9]=L,t[10]=T,t[11]=0,t[12]=n[0]+j-(V*j+C*z+$*M),t[13]=n[1]+z-(S*j+R*z+L*M),t[14]=n[2]+M-(P*j+H*z+T*M),t[15]=1,t}function D(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],c=n+n,o=r+r,s=a+a,l=n*c,u=r*c,h=r*o,f=a*c,d=a*o,p=a*s,v=i*c,y=i*o,m=i*s;return t[0]=1-h-p,t[1]=u+m,t[2]=f-y,t[3]=0,t[4]=u-m,t[5]=1-l-p,t[6]=d+v,t[7]=0,t[8]=f+y,t[9]=d-v,t[10]=1-l-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function F(t,e,n,r,a,i,c){var o=1/(n-e),s=1/(a-r),l=1/(i-c);return t[0]=2*i*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*s,t[6]=0,t[7]=0,t[8]=(n+e)*o,t[9]=(a+r)*s,t[10]=(c+i)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=c*i*2*l,t[15]=0,t}function _(t,e,n,r,a){var i,c=1/Math.tan(e/2);return t[0]=c/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=a&&a!==1/0?(i=1/(r-a),t[10]=(a+r)*i,t[14]=2*a*r*i):(t[10]=-1,t[14]=-2*r),t}function X(t,e,n,r){var a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),c=Math.tan(e.leftDegrees*Math.PI/180),o=Math.tan(e.rightDegrees*Math.PI/180),s=2/(c+o),l=2/(a+i);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(c-o)*s*.5,t[9]=(a-i)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function G(t,e,n,r,a,i,c){var o=1/(e-n),s=1/(r-a),l=1/(i-c);return t[0]=-2*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*o,t[13]=(a+r)*s,t[14]=(c+i)*l,t[15]=1,t}function N(t,e,n,r){var a,i,c,s,l,u,h,f,d,p,y=e[0],m=e[1],g=e[2],b=r[0],k=r[1],x=r[2],O=n[0],w=n[1],j=n[2];return Math.abs(y-O)0&&(u*=d=1/Math.sqrt(d),h*=d,f*=d);var p=s*f-l*h,v=l*u-o*f,y=o*h-s*u;return(d=p*p+v*v+y*y)>0&&(p*=d=1/Math.sqrt(d),v*=d,y*=d),t[0]=p,t[1]=v,t[2]=y,t[3]=0,t[4]=h*y-f*v,t[5]=f*p-u*y,t[6]=u*v-h*p,t[7]=0,t[8]=u,t[9]=h,t[10]=f,t[11]=0,t[12]=a,t[13]=i,t[14]=c,t[15]=1,t}function U(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function K(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function q(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function W(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function Z(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function Q(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function J(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function tt(t,e){var n=t[0],r=t[1],a=t[2],i=t[3],c=t[4],s=t[5],l=t[6],u=t[7],h=t[8],f=t[9],d=t[10],p=t[11],v=t[12],y=t[13],m=t[14],g=t[15],b=e[0],k=e[1],x=e[2],O=e[3],w=e[4],j=e[5],z=e[6],M=e[7],V=e[8],S=e[9],P=e[10],C=e[11],R=e[12],H=e[13],$=e[14],L=e[15];return Math.abs(n-b)<=o*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-k)<=o*Math.max(1,Math.abs(r),Math.abs(k))&&Math.abs(a-x)<=o*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(i-O)<=o*Math.max(1,Math.abs(i),Math.abs(O))&&Math.abs(c-w)<=o*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(s-j)<=o*Math.max(1,Math.abs(s),Math.abs(j))&&Math.abs(l-z)<=o*Math.max(1,Math.abs(l),Math.abs(z))&&Math.abs(u-M)<=o*Math.max(1,Math.abs(u),Math.abs(M))&&Math.abs(h-V)<=o*Math.max(1,Math.abs(h),Math.abs(V))&&Math.abs(f-S)<=o*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(d-P)<=o*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(p-C)<=o*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(v-R)<=o*Math.max(1,Math.abs(v),Math.abs(R))&&Math.abs(y-H)<=o*Math.max(1,Math.abs(y),Math.abs(H))&&Math.abs(m-$)<=o*Math.max(1,Math.abs(m),Math.abs($))&&Math.abs(g-L)<=o*Math.max(1,Math.abs(g),Math.abs(L))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var et=k,nt=W;function rt(){var t=new s(3);return s!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function at(t){var e=new s(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function it(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function ct(t,e,n){var r=new s(3);return r[0]=t,r[1]=e,r[2]=n,r}function ot(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function st(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function lt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function ut(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function ht(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function ft(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function dt(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function pt(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function vt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function yt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function mt(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function gt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function bt(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function kt(t,e){var n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.hypot(n,r,a)}function xt(t,e){var n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function Ot(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function wt(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function jt(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function zt(t,e){var n=e[0],r=e[1],a=e[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function Mt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Vt(t,e,n){var r=e[0],a=e[1],i=e[2],c=n[0],o=n[1],s=n[2];return t[0]=a*s-i*o,t[1]=i*c-r*s,t[2]=r*o-a*c,t}function St(t,e,n,r){var a=e[0],i=e[1],c=e[2];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=c+r*(n[2]-c),t}function Pt(t,e,n,r,a,i){var c=i*i,o=c*(2*i-3)+1,s=c*(i-2)+i,l=c*(i-1),u=c*(3-2*i);return t[0]=e[0]*o+n[0]*s+r[0]*l+a[0]*u,t[1]=e[1]*o+n[1]*s+r[1]*l+a[1]*u,t[2]=e[2]*o+n[2]*s+r[2]*l+a[2]*u,t}function Ct(t,e,n,r,a,i){var c=1-i,o=c*c,s=i*i,l=o*c,u=3*i*o,h=3*s*c,f=s*i;return t[0]=e[0]*l+n[0]*u+r[0]*h+a[0]*f,t[1]=e[1]*l+n[1]*u+r[1]*h+a[1]*f,t[2]=e[2]*l+n[2]*u+r[2]*h+a[2]*f,t}function Rt(t,e){e=e||1;var n=2*l()*Math.PI,r=2*l()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t}function Ht(t,e,n){var r=e[0],a=e[1],i=e[2],c=n[3]*r+n[7]*a+n[11]*i+n[15];return c=c||1,t[0]=(n[0]*r+n[4]*a+n[8]*i+n[12])/c,t[1]=(n[1]*r+n[5]*a+n[9]*i+n[13])/c,t[2]=(n[2]*r+n[6]*a+n[10]*i+n[14])/c,t}function $t(t,e,n){var r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function Lt(t,e,n){var r=n[0],a=n[1],i=n[2],c=n[3],o=e[0],s=e[1],l=e[2],u=a*l-i*s,h=i*o-r*l,f=r*s-a*o,d=a*f-i*h,p=i*u-r*f,v=r*h-a*u,y=2*c;return u*=y,h*=y,f*=y,d*=2,p*=2,v*=2,t[0]=o+u+d,t[1]=s+h+p,t[2]=l+f+v,t}function Tt(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function Bt(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function At(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function Et(t,e){var n=t[0],r=t[1],a=t[2],i=e[0],c=e[1],o=e[2],s=Math.sqrt(n*n+r*r+a*a)*Math.sqrt(i*i+c*c+o*o),l=s&&Mt(t,e)/s;return Math.acos(Math.min(Math.max(l,-1),1))}function It(t){return t[0]=0,t[1]=0,t[2]=0,t}function Dt(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function Ft(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function _t(t,e){var n=t[0],r=t[1],a=t[2],i=e[0],c=e[1],s=e[2];return Math.abs(n-i)<=o*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-c)<=o*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(a-s)<=o*Math.max(1,Math.abs(a),Math.abs(s))}var Xt,Gt=ut,Nt=ht,Yt=ft,Ut=kt,Kt=xt,qt=it,Wt=Ot,Zt=(Xt=rt(),function(t,e,n,r,a,i){var c,o;for(e||(e=3),n||(n=0),o=r?Math.min(r*e+n,t.length):t.length,c=n;co?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function ae(t,e){var n=Le(t,e);return Math.acos(2*n*n-1)}function ie(t,e,n){var r=e[0],a=e[1],i=e[2],c=e[3],o=n[0],s=n[1],l=n[2],u=n[3];return t[0]=r*u+c*o+a*l-i*s,t[1]=a*u+c*s+i*o-r*l,t[2]=i*u+c*l+r*s-a*o,t[3]=c*u-r*o-a*s-i*l,t}function ce(t,e,n){n*=.5;var r=e[0],a=e[1],i=e[2],c=e[3],o=Math.sin(n),s=Math.cos(n);return t[0]=r*s+c*o,t[1]=a*s+i*o,t[2]=i*s-a*o,t[3]=c*s-r*o,t}function oe(t,e,n){n*=.5;var r=e[0],a=e[1],i=e[2],c=e[3],o=Math.sin(n),s=Math.cos(n);return t[0]=r*s-i*o,t[1]=a*s+c*o,t[2]=i*s+r*o,t[3]=c*s-a*o,t}function se(t,e,n){n*=.5;var r=e[0],a=e[1],i=e[2],c=e[3],o=Math.sin(n),s=Math.cos(n);return t[0]=r*s+a*o,t[1]=a*s-r*o,t[2]=i*s+c*o,t[3]=c*s-i*o,t}function le(t,e){var n=e[0],r=e[1],a=e[2];return t[0]=n,t[1]=r,t[2]=a,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-a*a)),t}function ue(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],c=Math.sqrt(n*n+r*r+a*a),o=Math.exp(i),s=c>0?o*Math.sin(c)/c:0;return t[0]=n*s,t[1]=r*s,t[2]=a*s,t[3]=o*Math.cos(c),t}function he(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],c=Math.sqrt(n*n+r*r+a*a),o=c>0?Math.atan2(c,i)/c:0;return t[0]=n*o,t[1]=r*o,t[2]=a*o,t[3]=.5*Math.log(n*n+r*r+a*a+i*i),t}function fe(t,e,n){return he(t,e),$e(t,t,n),ue(t,t),t}function de(t,e,n,r){var a,i,c,s,l,u=e[0],h=e[1],f=e[2],d=e[3],p=n[0],v=n[1],y=n[2],m=n[3];return(i=u*p+h*v+f*y+d*m)<0&&(i=-i,p=-p,v=-v,y=-y,m=-m),1-i>o?(a=Math.acos(i),c=Math.sin(a),s=Math.sin((1-r)*a)/c,l=Math.sin(r*a)/c):(s=1-r,l=r),t[0]=s*u+l*p,t[1]=s*h+l*v,t[2]=s*f+l*y,t[3]=s*d+l*m,t}function pe(t){var e=l(),n=l(),r=l(),a=Math.sqrt(1-e),i=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*n),t[1]=a*Math.cos(2*Math.PI*n),t[2]=i*Math.sin(2*Math.PI*r),t[3]=i*Math.cos(2*Math.PI*r),t}function ve(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],c=n*n+r*r+a*a+i*i,o=c?1/c:0;return t[0]=-n*o,t[1]=-r*o,t[2]=-a*o,t[3]=i*o,t}function ye(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function me(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var a=0;e[4]>e[0]&&(a=1),e[8]>e[3*a+a]&&(a=2);var i=(a+1)%3,c=(a+2)%3;n=Math.sqrt(e[3*a+a]-e[3*i+i]-e[3*c+c]+1),t[a]=.5*n,n=.5/n,t[3]=(e[3*i+c]-e[3*c+i])*n,t[i]=(e[3*i+a]+e[3*a+i])*n,t[c]=(e[3*c+a]+e[3*a+c])*n}return t}function ge(t,e,n,r){var a=.5*Math.PI/180;e*=a,n*=a,r*=a;var i=Math.sin(e),c=Math.cos(e),o=Math.sin(n),s=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=i*s*u-c*o*l,t[1]=c*o*u+i*s*l,t[2]=c*s*l-i*o*u,t[3]=c*s*u+i*o*l,t}function be(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var ke,xe,Oe,we,je,ze,Me,Ve=function(t){var e=new s(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},Se=function(t,e,n,r){var a=new s(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a},Pe=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},Ce=function(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t},Re=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},He=ie,$e=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},Le=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},Te=function(t,e,n,r){var a=e[0],i=e[1],c=e[2],o=e[3];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=c+r*(n[2]-c),t[3]=o+r*(n[3]-o),t},Be=Qt,Ae=Be,Ee=Jt,Ie=Ee,De=function(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],c=n*n+r*r+a*a+i*i;return c>0&&(c=1/Math.sqrt(c)),t[0]=n*c,t[1]=r*c,t[2]=a*c,t[3]=i*c,t},Fe=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},_e=function(t,e){var n=t[0],r=t[1],a=t[2],i=t[3],c=e[0],s=e[1],l=e[2],u=e[3];return Math.abs(n-c)<=o*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(r-s)<=o*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-l)<=o*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(i-u)<=o*Math.max(1,Math.abs(i),Math.abs(u))},Xe=(ke=rt(),xe=ct(1,0,0),Oe=ct(0,1,0),function(t,e,n){var r=Mt(e,n);return r<-.999999?(Vt(ke,xe,e),qt(ke)<1e-6&&Vt(ke,Oe,e),zt(ke,ke),ne(t,ke,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(Vt(ke,e,n),t[0]=ke[0],t[1]=ke[1],t[2]=ke[2],t[3]=1+r,De(t,t))}),Ge=(we=te(),je=te(),function(t,e,n,r,a,i){return de(we,e,a,i),de(je,n,r,i),de(t,we,je,2*i*(1-i)),t}),Ne=(ze=new s(9),s!=Float32Array&&(ze[1]=0,ze[2]=0,ze[3]=0,ze[5]=0,ze[6]=0,ze[7]=0),ze[0]=1,ze[4]=1,ze[8]=1,Me=ze,function(t,e,n,r){return Me[0]=n[0],Me[3]=n[1],Me[6]=n[2],Me[1]=r[0],Me[4]=r[1],Me[7]=r[2],Me[2]=-e[0],Me[5]=-e[1],Me[8]=-e[2],De(t,me(t,Me))});function Ye(){var t=new s(2);return s!=Float32Array&&(t[0]=0,t[1]=0),t}function Ue(t){var e=new s(2);return e[0]=t[0],e[1]=t[1],e}function Ke(t,e){var n=new s(2);return n[0]=t,n[1]=e,n}function qe(t,e){return t[0]=e[0],t[1]=e[1],t}function We(t,e,n){return t[0]=e,t[1]=n,t}function Ze(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Qe(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Je(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function tn(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function en(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function nn(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function rn(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function an(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function cn(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function on(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function sn(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function ln(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function un(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function hn(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function fn(t){var e=t[0],n=t[1];return e*e+n*n}function dn(t,e){return t[0]=-e[0],t[1]=-e[1],t}function pn(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function vn(t,e){var n=e[0],r=e[1],a=n*n+r*r;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t}function yn(t,e){return t[0]*e[0]+t[1]*e[1]}function mn(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function gn(t,e,n,r){var a=e[0],i=e[1];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t}function bn(t,e){e=e||1;var n=2*l()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function kn(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a,t[1]=n[1]*r+n[3]*a,t}function xn(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function On(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[3]*a+n[6],t[1]=n[1]*r+n[4]*a+n[7],t}function wn(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[4]*a+n[12],t[1]=n[1]*r+n[5]*a+n[13],t}function jn(t,e,n,r){var a=e[0]-n[0],i=e[1]-n[1],c=Math.sin(r),o=Math.cos(r);return t[0]=a*o-i*c+n[0],t[1]=a*c+i*o+n[1],t}function zn(t,e){var n=t[0],r=t[1],a=e[0],i=e[1],c=Math.sqrt(n*n+r*r)*Math.sqrt(a*a+i*i),o=c&&(n*a+r*i)/c;return Math.acos(Math.min(Math.max(o,-1),1))}function Mn(t){return t[0]=0,t[1]=0,t}function Vn(t){return"vec2("+t[0]+", "+t[1]+")"}function Sn(t,e){return t[0]===e[0]&&t[1]===e[1]}function Pn(t,e){var n=t[0],r=t[1],a=e[0],i=e[1];return Math.abs(n-a)<=o*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))}var Cn=hn,Rn=Qe,Hn=Je,$n=tn,Ln=ln,Tn=un,Bn=fn,An=function(){var t=Ye();return function(e,n,r,a,i,c){var o,s;for(n||(n=2),r||(r=0),s=a?Math.min(a*n+r,e.length):e.length,o=r;o').concat(t,"")}var c=i('\n \n'),o=i('\n \n'),s=i(''),l=i(''),u=i(''),h=i(''),f=i(''),d=i(''),p=i(''),v=i(''),y=i(''),m=i(''),g=i(''),b=i(''),k=i(''),x=i(''),O=i(''),w=i(''),j=i(''),z=i(''),M=i(''),V=i(''),S=i(''),P=i(''),C=i(''),R=i(''),H=i(''),$=i(''),L=i(''),T=i(''),B=i(''),A=i(''),E=i(''),I=i(''),D=i(''),F=i(''),_=i(''),X=i(''),G=i(''),N=i(''),Y=i(''),U=i(''),K=i(''),q=i(''),W=i(''),Z=i(''),Q=i(''),J=i(''),tt=i(''),et=i(''),nt=i(''),rt=i(''),at=i(''),it=i(''),ct=i(''),ot=i(''),st=i(''),lt=i(''),ut=i(''),ht=i(''),ft=i(''),dt=i(''),pt=i(''),vt=i(''),yt=i(''),mt=i(''),gt=i(''),bt=i(''),kt=i(''),xt=i(''),Ot=i(''),wt=i(''),jt=i(''),zt=i('\n\n'),Mt=i(''),Vt=i(''),St=i(''),Pt=i(''),Ct=i(''),Rt=i(''),Ht=i(''),$t=i(''),Lt=i(''),Tt=i(''),Bt=i(''),At=i(''),Et=i(''),It=i(''),Dt=i(''),Ft=i(''),_t=i(''),Xt=i(''),Gt=i(''),Nt=i(''),Yt=i(''),Ut=i(''),Kt=i(''),qt=i(''),Wt=i(''),Zt=i(''),Qt=i(''),Jt=i(''),te=i(''),ee=i(''),ne=i(''),re=i(''),ae=i('\n \n \n \n'),ie=i(''),ce=i(''),oe=i('\n\n\n\n'),se=i(''),le=i(''),ue=i(''),he=i(''),fe=i(''),de=i(''),pe=i(''),ve=i('\n \n'),ye=i(''),me=i(''),ge=i(''),be=i(''),ke=i('\n \n'),xe=i('\n \n'),Oe=i(''),we=i(''),je=i(''),ze=i(''),Me=i(''),Ve=i('\n \n '),Se=i('\n \n \n \n'),Pe=i('\n \n '),Ce=i('\n \n '),Re=i('\n \n'),He=i('\n \n'),$e=i(''),Le=i('\n \n '),Te=i(''),Be=i(''),Ae=i(''),Ee=i(''),Ie=i(''),De=i(''),Fe=i(''),_e=i(''),Xe=i(''),Ge=i(''),Ne=i('\n \n '),Ye=i(''),Ue=i(''),Ke=i(''),qe=i(''),We=i(''),Ze=i(''),Qe=i(''),Je=i(''),tn=i(''),en=i(''),nn=i(''),rn=i(''),an=i(''),cn=i('');function on(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 sn(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return i('"),{width:20,height:20})},rotate:Ne,align_horizontal_center:Ae,align_horizontal_left:Ee,align_horizontal_right:Ie,align_vertical_bottom:De,align_vertical_center:Fe,align_vertical_top:_e,vertical_distribute:Ye,horizontal_distribute:Ue,rotate_left:Ge,swap_horiz:Xe,arrow_right:Te,group:Le,volume_down:Ce,arrowLeft:$e,volume_up:Re,volume_off:He,pentool:Se,launch:Ve,apps:je,outline_rect:ze,outline_circle:Me,keyboard:we,local_movie:Oe,same_height:xe,same_width:ke,layers:Be,middle:be,bottom:ge,top:me,right:ye,center:ve,left:pe,flag:de,lens:fe,local_library:he,italic:ue,strikethrough:le,underline:se,cylinder:oe,text_rotate:ce,device_hub:ie,control_point:re,flip_camera:ae,flipY:ne,flip:ee,account_tree:Jt,format_shapes:te,merge:Zt,texture:Qt,settings_input_component:Wt,view_comfy:qt,camera_roll:Kt,broken_image:Ut,shadow:Yt,opacity:Nt,looks:Gt,vintage:Xt,waves:_t,blur_linear:Ft,blur:Dt,landscape:It,palette:Et,diffuse:At,specular:Bt,photo:Tt,near_me:Lt,view_list:$t,flash_on:Ht,doc:Rt,storage:Ct,archive:Pt,file_copy:St,gps_fixed:Vt,refresh:Mt,cat:zt,shuffle:jt,replay:wt,speed:Ot,alternate_reverse:xt,alternate:kt,note:vt,rect:pt,circle:dt,color_lens:ft,cube:ht,polygon:ut,star:lt,dahaze:st,brush:ot,expand:ct,list:at,grid:it,align_center:tt,align_justify:et,align_left:nt,align_right:rt,color:J,size:Q,edit:Z,outline_image:W,ballot:U,shape:Y,scatter:N,transform:G,gradient:X,close:_,build:F,code:D,autorenew:I,play:A,pause:E,skip_next:yt,skip_prev:mt,fast_forward:gt,fast_rewind:bt,filter:B,input:T,timer:$,title:H,paint:R,border_all:P,border_inner:C,check:S,video:Pe,arrowRight:V,screen:M,repeat:z,remove2:j,setting:w,image:O,artboard:x,folder:k,publish:b,add_note:g,add:m,save:v,export:y,redo:p,undo:d,lock:f,lock_open:q,remove:u,copy:h,visible:l,add_box:s,add_circle:K,create_folder:o,chevron_right:c,chevron_left:L})},function(t,e,n){var r=n(119),a=n(160),i=n(104),c=n(120);t.exports=function(t,e){return r(t)||a(t,e)||i(t,e)||c()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e),n.d(e,"round",(function(){return c})),n.d(e,"degreeToRadian",(function(){return o})),n.d(e,"div",(function(){return s})),n.d(e,"radianToDegree",(function(){return l})),n.d(e,"getXInCircle",(function(){return u})),n.d(e,"getYInCircle",(function(){return h})),n.d(e,"getXYInCircle",(function(){return f})),n.d(e,"getDist",(function(){return d})),n.d(e,"getPointBetweenVerties",(function(){return p})),n.d(e,"vertiesMap",(function(){return v})),n.d(e,"getVertiesMaxX",(function(){return y})),n.d(e,"getVertiesMaxY",(function(){return m})),n.d(e,"getVertiesMinX",(function(){return g})),n.d(e,"getVertiesCenterX",(function(){return b})),n.d(e,"getVertiesMinY",(function(){return k})),n.d(e,"getVertiesCenterY",(function(){return x})),n.d(e,"calculateAngle",(function(){return O})),n.d(e,"calculateAngleForVec3",(function(){return w})),n.d(e,"calculateRotationOriginMat4",(function(){return j})),n.d(e,"calculateMatrix",(function(){return z})),n.d(e,"calculateMatrixInverse",(function(){return M})),n.d(e,"calculateAnglePointDistance",(function(){return V})),n.d(e,"calculateAngle360",(function(){return S})),n.d(e,"uuid",(function(){return C})),n.d(e,"uuidShort",(function(){return R})),n.d(e,"cubicBezier",(function(){return T})),n.d(e,"getGradientLine",(function(){return B})),n.d(e,"CCW",(function(){return A})),n.d(e,"incircle",(function(){return E})),n.d(e,"initPolygon",(function(){return I})),n.d(e,"Deluanay",(function(){return F})),n.d(e,"generate_sample_points",(function(){return _})),n.d(e,"getCenterInTriangle",(function(){return X})),n.d(e,"normalize",(function(){return N}));var r=n(11),a=n(8),i={create:function(t,e,n){return{x:t||0,y:e||0,z:n||0}},add:function(t,e){return{x:t.x+e.x,y:t.y+e.y,z:t.z+e.z}},sub:function(t,e){return{x:t.x-e.x,y:t.y-e.y,z:t.z-e.z}},mul:function(t,e){return{x:t.x*e.x,y:t.y*e.y,z:t.z*e.z}},div:function(t,e){return{x:t.x/e.x,y:t.y/e.y,z:t.z/e.z}},muls:function(t,e){return{x:t.x*e,y:t.y*e,z:t.z*e}},divs:function(t,e){return{x:t.x/e,y:t.y/e,z:t.z/e}},len:function(t){return Math.sqrt(t.x*t.x+t.y*t.y+t.z*t.z)},dot:function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z},cross2d:function(t,e){return t.x*e.y-t.y*e.x},cross:function(t,e){return{x:t.y*e.z-t.z*e.y,y:t.z*e.x-t.x*e.z,z:t.x*e.y-t.y*e.x}},normalize:function(t){return i.divs(t,i.len(t))},ang:function(t,e){return Math.acos(i.dot(t,e)/(i.len(t)*i.len(e)))},copy:function(t){return{x:t.x,y:t.y,z:t.z}},equal:function(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z},rotate:function(t,e){var n=t.x,r=t.y,a=t.z,i=e.x/2,c=e.y/2,o=e.z/2,s=Math.cos(i),l=Math.cos(c),u=Math.cos(o),h=Math.sin(i),f=Math.sin(c),d=Math.sin(o),p=s*l*u+-h*f*d,v=h*l*u- -s*f*d,y=s*f*u+h*l*-d,m=s*l*d- -h*f*u;return{x:n*(1-2*(y*y+m*m))+r*(2*(v*y-m*p))+a*(2*(v*m+y*p)),y:n*(2*(v*y+m*p))+r*(1-2*(v*v+m*m))+a*(2*(y*m-v*p)),z:n*(2*(v*m-y*p))+r*(2*(m*y+v*p))+a*(1-2*(v*v+y*y))}}};function c(t,e){return e=Object(a.isUndefined)(e)?1:e,Math.round(t*e)/e}function o(t){return t*(Math.PI/180)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return 0===t?0:t/e}function l(t){var e=t*(180/Math.PI);return e<0&&(e=360+e),e}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n+e*Math.cos(o(t))}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n+e*Math.sin(o(t))}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{x:u(t,e,n),y:h(t,e,r)}}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return r.c.distance([t,e],[n,a])}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return r.d.lerp([],t,e,1+n/r.d.dist(t,e))}function v(t,e){return t.map((function(t){return r.d.transformMat4([],t,e)}))}function y(t){var e=Number.MIN_SAFE_INTEGER;return t.forEach((function(t){e=Math.max(t[0],e)})),e}function m(t){var e=Number.MIN_SAFE_INTEGER;return t.forEach((function(t){e=Math.max(t[1],e)})),e}function g(t){var e=Number.MAX_SAFE_INTEGER;return t.forEach((function(t){e=Math.min(t[0],e)})),e}function b(t){var e=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return t.forEach((function(t){e=Math.min(t[0],e),n=Math.max(t[0],n)})),Math.round((e+n)/2)}function k(t){var e=Number.MAX_SAFE_INTEGER;return t.forEach((function(t){e=Math.min(t[1],e)})),e}function x(t){var e=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return t.forEach((function(t){e=Math.min(t[1],e),n=Math.max(t[1],n)})),Math.round((e+n)/2)}function O(t,e){return l(Math.atan2(e,t))}function w(t,e,n){return V({x:t[0],y:t[1]},{x:e[0],y:e[1]},{dx:n[0],dy:n[1]})}function j(t,e){var n=r.a.create();return r.a.translate(n,n,e),r.a.rotateZ(n,n,o(t)),r.a.translate(n,n,r.d.negate([],e)),n}function z(){for(var t=r.a.create(),e=arguments.length,n=new Array(e),a=0;a0?h>=0:h<=0}function I(t,e,n){for(var r=i.create(Math.min(e,n),Math.max(e,n)),a=-1,c=0,o=t.length;c-1?t.splice(a,1):t.push(r)}function D(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.length;t[e]=i.create(-2e9,-2e9),t[e+1]=i.create(2e9,-2e9),t[e+2]=i.create(0,2e9);for(var n=[i.create(e,e+1,e+2)],r=0;r=e||f.y>=e||f.z>=e)&&(D(n,r,n.length-1),n.pop(),r--)}return n.map((function(e){return{a:t[e.x],b:t[e.y],c:t[e.z]}}))}function _(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){return Math.random()},o=[],s=-n,l=t+n,u=-r,h=e+r,f=s;f2?n-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[];r.push.apply(r,Object.keys(e)),r.push.apply(r,Object.keys(n));var a=new Set(r);a.forEach((function(r){f(t,r,e[r],n[r])}))}(e,p(n.attributes),p(e.attributes));var a=y(e),i=y(n),c=Math.max(a.length,i.length);for(r=0;r1&&void 0!==arguments[1]?arguments[1]:"http://www.w3.org/2000/svg";return Object.keys(t).forEach((function(r){e.attr(r,t[r],n)})),this}},{key:"setProp",value:function(t){var e=this;return Object.keys(t).forEach((function(n){e.el[n]!=t[n]&&(e.el[n]=t[n])})),this}},{key:"data",value:function(t,e){return 1===arguments.length?this.attr("data-"+t):2===arguments.length?this.attr("data-"+t,e):this}},{key:"attr",value:function(t,e){return 1==arguments.length?this.el.getAttribute(t):(this.el.getAttribute(t)!=e&&this.el.setAttribute(t,e),this)}},{key:"attrNS",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"http://www.w3.org/2000/svg";return 1==arguments.length?this.el.getAttributeNS(n,t):(this.el.getAttributeNS(n,t)!=e&&this.el.setAttributeNS(n,t,e),this)}},{key:"attrKeyValue",value:function(t){return c()({},this.el.getAttribute(t),this.val())}},{key:"attrs",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:"div";m(this,t.create(n).html(e))}},{key:"updateSVGDiff",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div";m(this,t.create(n).html("".concat(e,"")).firstChild.firstChild)}},{key:"find",value:function(t){return this.el.querySelector(t)}},{key:"$",value:function(e){var n=this.find(e);return n?t.create(n):null}},{key:"findAll",value:function(t){return a()(this.el.querySelectorAll(t))}},{key:"$$",value:function(e){return this.findAll(e).map((function(e){return t.create(e)}))}},{key:"empty",value:function(){for(;this.el.firstChild;)this.el.removeChild(this.el.firstChild);return this}},{key:"append",value:function(t){return Object(h.isString)(t)?this.el.appendChild(document.createTextNode(t)):this.el.appendChild(t.el||t),this}},{key:"prepend",value:function(t){return Object(h.isString)(t)?this.el.prepend(document.createTextNode(t)):this.el.prepend(t.el||t),this}},{key:"prependHTML",value:function(e){var n=t.create("div").html(e);return this.prepend(n.createChildrenFragment()),n}},{key:"appendHTML",value:function(e){var n=t.create("div").html(e);return this.append(n.createChildrenFragment()),n}},{key:"createChildrenFragment",value:function(){var t=this.children(),e=document.createDocumentFragment();return t.forEach((function(t){return e.appendChild(t.el)})),e}},{key:"appendTo",value:function(t){return(t.el?t.el:t).appendChild(this.el),this}},{key:"remove",value:function(){return this.el.parentNode&&this.el.parentNode.removeChild(this.el),this}},{key:"removeChild",value:function(t){return this.el.removeChild(t.el||t),this}},{key:"text",value:function(e){if(Object(h.isUndefined)(e))return this.el.textContent;var n=e;return e instanceof t&&(n=e.text()),this.el.textContent!==n&&(this.el.textContent=n),this}},{key:"css",value:function(t,e){if(Object(h.isNotUndefined)(t)&&Object(h.isNotUndefined)(e))this.el.style[t]=e;else if(Object(h.isNotUndefined)(t)){if(Object(h.isString)(t))return getComputedStyle(this.el)[t];Object.assign(this.el.style,t)}return this}},{key:"getComputedStyle",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){for(var t=getComputedStyle(this.el),e={},n=arguments.length,r=new Array(n),a=0;a0&&void 0!==arguments[0]?arguments[0]:"block";return this.el.style.display="none"!=t?t:"block",this}},{key:"hide",value:function(){return this.el.style.display="none",this}},{key:"isHide",value:function(){return"none"===this.el.style.display}},{key:"isShow",value:function(){return!this.isHide()}},{key:"toggle",value:function(t){var e=this.isHide();return 1==arguments.length?t?this.show():this.hide():e?this.show():this.hide()}},{key:"totalLength",get:function(){return this.el.getTotalLength()}},{key:"scrollIntoView",value:function(){this.el.scrollIntoView()}},{key:"addScrollLeft",value:function(t){return this.el.scrollLeft+=t,this}},{key:"addScrollTop",value:function(t){return this.el.scrollTop+=t,this}},{key:"setScrollTop",value:function(t){return this.el.scrollTop=t,this}},{key:"setScrollLeft",value:function(t){return this.el.scrollLeft=t,this}},{key:"scrollTop",value:function(){return this.el===document.body?t.getScrollTop():this.el.scrollTop}},{key:"scrollLeft",value:function(){return this.el===document.body?t.getScrollLeft():this.el.scrollLeft}},{key:"scrollHeight",value:function(){return this.el.scrollHeight}},{key:"scrollWidth",value:function(){return this.el.scrollWidth}},{key:"on",value:function(t,e,n,r){return this.el.addEventListener(t,e,n,r),this}},{key:"off",value:function(t,e){return this.el.removeEventListener(t,e),this}},{key:"getElement",value:function(){return this.el}},{key:"createChild",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.create(e,n,r);return i.css(a),this.append(i),i}},{key:"firstChild",get:function(){return t.create(this.el.firstElementChild)}},{key:"children",value:function(){var e=this.el.firstElementChild;if(!e)return[];var n=[];do{n.push(t.create(e)),e=e.nextElementSibling}while(e);return n}},{key:"childLength",value:function(){return this.el.children.length}},{key:"replace",value:function(t){return this.el.parentNode&&this.el.parentNode.replaceChild(t.el||t,this.el),this}},{key:"replaceChild",value:function(t,e){return this.el.replaceChild(e.el||e,t.el||t),this}},{key:"checked",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return 0==arguments.length?!!this.el.checked:(this.el.checked=!!t,this)}},{key:"click",value:function(){return this.el.click(),this}},{key:"focus",value:function(){return this.el.focus(),this}},{key:"select",value:function(){if("true"===this.attr("contenteditable")){var t=document.createRange();t.selectNodeContents(this.el);var e=window.getSelection();e.removeAllRanges(),e.addRange(t)}else this.el.select();return this}},{key:"blur",value:function(){return this.el.blur(),this}},{key:"context",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"2d";return this._initContext||(this._initContext=this.el.getContext(t)),this._initContext}},{key:"resize",value:function(t){var e=t.width,n=t.height;this._initContext=null;var r=this.context(),a=window.devicePixelRatio||1;this.px("width",+e),this.px("height",+n),this.el.width=e*a,this.el.height=n*a,r.scale(a,a)}},{key:"toDataURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.el.toDataURL(t,e)}},{key:"clear",value:function(){this.context().clearRect(0,0,this.el.width,this.el.height)}},{key:"update",value:function(t){this.clear(),t.call(this,this)}},{key:"drawImage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.context(),a=window.devicePixelRatio||1;r.drawImage(t,e,n,t.width,t.height,0,0,this.el.width/a,this.el.height/a)}},{key:"drawOption",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.context();Object.assign(e,t)}},{key:"drawLine",value:function(t,e,n,r){var a=this.context();a.beginPath(),a.moveTo(t,e),a.lineTo(n,r),a.stroke(),a.closePath()}},{key:"drawPath",value:function(){var t=this.context();t.beginPath();for(var e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:"@";return"".concat(e).concat(t.startIndex).padEnd(10,"0")}function y(t){return!!m(t).length}function m(t){var e=t.match(p),n=[];if(!e)return n;for(var r=0,a=e.length;r-1||e[r].indexOf("rgb")>-1||e[r].indexOf("hsl")>-1)n.push({color:e[r]});else{var i=s.getColorByName(e[r]);i&&n.push({color:e[r],nameColor:i})}var c={next:0};return n.forEach((function(e){var n=t.indexOf(e.color,c.next);e.startIndex=n,e.endIndex=n+e.color.length,c.next=e.endIndex})),n}function g(t){var e=m(t);return e.forEach((function(e){t=t.replace(e.color,v(e))})),{str:t,matches:e}}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=g(t);return n.str.split(e).map((function(t,e){return t=O(t),n.matches[e]&&(t=t.replace(v(n.matches[e]),n.matches[e].color)),t}))}function k(t,e){return e.forEach((function(e){t=t.replace(v(e),e.color)})),t}var x=/^\s+|\s+$/g;function O(t){return t.replace(x,"")}function w(t){if(Object(h.isString)(t)){if(s.isColorName(t)&&(t=s.getColorByName(t)),t.indexOf("rgb(")>-1){for(var e=0,n=(r=t.replace("rgb(","").replace(")","").split(",")).length;e-1){for(e=0,n=(r=t.replace("rgba(","").replace(")","").split(",")).length;e-1){for(e=0,n=(r=t.replace("hsl(","").replace(")","").split(",")).length;e-1){for(e=0,n=(r=t.replace("hsla(","").replace(")","").split(",")).length;e>16,g:(65280&t)>>8,b:(255&t)>>0,a:1}),Object(l.RGBtoHSL)(c));if(0<=t&&t<=4294967295)return c=d(d({},c={type:"hex",r:(4278190080&t)>>24,g:(16711680&t)>>16,b:(65280&t)>>8,a:(255&t)/255}),Object(l.RGBtoHSL)(c))}return t}function j(t){Object(h.isString)(t)&&(t=b(t));var e=(t=t.map((function(t){if(Object(h.isString)(t)){var e=g(t),n=O(e.str).split(" ");return n[1]?n[1].indexOf("%")>-1?n[1]=parseFloat(n[1].replace(/%/,""))/100:n[1]=parseFloat(n[1]):n[1]="*",n[0]=k(n[0],e.matches),n}if(Array.isArray(t))return t[1]?Object(h.isString)(t[1])&&(t[1].indexOf("%")>-1?t[1]=parseFloat(t[1].replace(/%/,""))/100:t[1]=+t[1]):t[1]="*",a()(t)}))).filter((function(t){return"*"===t[1]})).length;if(e>0){var n=(1-t.filter((function(t){return"*"!=t[1]&&1!=t[1]})).map((function(t){return t[1]})).reduce((function(t,e){return t+e}),0))/e;t.forEach((function(e,r){"*"==e[1]&&r>0&&(t.length-1==r||(e[1]=n))}))}return t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(8),s=function(){function t(){a()(this,t)}return c()(t,null,[{key:"isEqual",value:function(e,n,r){return 2===arguments.length?e.x===n.x&&e.y===n.y:3===arguments.length?t.isEqual(e,n)&&t.isEqual(n,r):void 0}},{key:"isFirst",value:function(t){return t&&"M"==t.command}},{key:"DouglasPeuker",value:function(e,n,r,a){if(!(a<=r+1)){for(var i=0,c=r,o=e*e,s=n[r],l=n[a],u=r+1;uo&&(n[c].mark=!0,t.DouglasPeuker(e,n,r,c),t.DouglasPeuker(e,n,c,a))}}},{key:"simply",value:function(e,n){return e.length<=2?e:((e=Object(o.clone)(e))[0].mark=!0,e[e.length-1].mark=!0,t.DouglasPeuker(n,e,0,e.length-1),e.filter((function(t){return Boolean(t.mark)})))}},{key:"segmentDistance2",value:function(t,e,n,r){var a=r.x-n.x,i=r.y-n.y,c=a*a+i*i,o=t-n.x,s=e-n.y,l=a*o+i*s;if(0===c)return o*o+s*s;if(l<=0)return o*o+s*s;if(l>=c)return(o=t-r.x)*o+(s=e-r.y)*s;var u=o*i-s*a;return u*u/c}},{key:"isInLine",value:function(t,e,n){return t.x===n.x?e.x===n.x:t.y===n.y?e.y===n.y:(t.x-n.x)*(t.y-n.y)==(n.x-e.x)*(n.y-e.y)}},{key:"isLine",value:function(e){return t.isInLine(e.endPoint,e.startPoint,e,reversePoint)}},{key:"getReversePoint",value:function(t,e){var n=t.x-e.x,r=t.y-e.y;return{x:t.x+n,y:t.y+r}}},{key:"getIndexPoint",value:function(t,e){return t[e]}},{key:"getPoint",value:function(e,n){return e.filter((function(e){return t.isEqual(e.startPoint,n)}))[0]}},{key:"getIndex",value:function(e,n){for(var r=-1,a=0,i=e.length;a0;r--)if("M"===t[r].command){n=r;break}-1===n&&(n=0);var a=t[n];return a&&(a.index=n),a}},{key:"getConnectedPoint",value:function(t,e){}},{key:"getPrevPoint",value:function(e,n){var r=n-1;if(r<0)return t.getLastPoint(e,n);var a=e[r];return a&&(a.index=r),a}},{key:"getNextPoint",value:function(e,n){var r=e[n],a=e[n+1];return a&&(a.index=n+1),r.connected&&(a=t.getFirstPoint(e,n)),a}},{key:"removePoint",value:function(t,e,n){if("startPoint"===n)return t.filter((function(t,n){return n!==e}))}},{key:"splitPoints",value:function(e){var n=[],r=[];return e.forEach((function(e){t.isFirst(e)?(r=[e],n.push(r)):r.push(e)})),n}},{key:"recoverPoints",value:function(t){var e=[];return t.forEach((function(t){t.forEach((function(t,e){0===e&&(t.command="M",t.originalCommand="M")})),e.push.apply(e,t)})),e.forEach((function(t,e){t.index=e})),e}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(5),s=n.n(o),l=n(6),u=n.n(l),h=n(0),f=n.n(h),d=n(1),p=n(12),v=n(15);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var m=function(t){s()(n,t);var e=y(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"template",value:function(){return'\n \n ")}},{key:"getClassName",value:function(){return""}},{key:"clickButton",value:function(t){}},{key:"getChecked",value:function(){return!1}},{key:"isDisabled",value:function(){return!1}},{key:"setSelected",value:function(t){this.$el.toggleClass("selected",t)}},{key:"getTitle",value:function(){return""}},{key:"getIcon",value:function(){return""}},{key:"getIconString",value:function(){return""}},{key:"isHideTitle",value:function(){return!1}},{key:Object(d.n)(),value:function(t){this.clickButton(t)}}],[{key:"createMenuItem",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){s()(r,e);var n=y(r);function r(){return a()(this,r),n.apply(this,arguments)}return c()(r,[{key:"getIconString",value:function(){return t.iconString||"add_box"}},{key:"getTitle",value:function(){return t.title||"New Item"}},{key:"isHideTitle",value:function(){return t.isHideTitle||!0}},{key:"clickButton",value:function(e){t.clickButton(e)}}]),r}(n)}}]),n}(v.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return V}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(33),g=n(4),b=n(20),k=n(8),x=n(54),O=n(30);function w(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 j(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:2,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"%",r=Object(x.randomNumber)(2,t),a=e/r,i=Object(k.repeat)(r).map((function(t,e){return"".concat(O.a.random()," ").concat(e*a).concat(n)})).join(",");return i}},{key:"createRepeatColorStep",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.a.px(1),n=Object(x.randomNumber)(2,t),r=Object(k.repeat)(n).map((function(t,n){return"".concat(O.a.random()," ").concat(g.a.parse(e).mul(n+1))})).join(",");return r}}]),n}(m.a)},function(t,e,n){"use strict";function r(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return function(t,e){var i=0;return i=0===e?n:1===e?r:n+(r-n)*t,a?i+a:i}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"k",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"j",(function(){return m})),n.d(e,"l",(function(){return g})),n.d(e,"m",(function(){return k})),n.d(e,"o",(function(){return x})),n.d(e,"n",(function(){return O})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return z})),n.d(e,"e",(function(){return M})),n.d(e,"f",(function(){return S})),n.d(e,"h",(function(){return P})),n.d(e,"g",(function(){return C})),n.d(e,"i",(function(){return H}));var r=n(16),a=n.n(r),i=n(11),c=n(14),o={linear:!0,ease:!0,"ease-in":!0,"ease-out":!0,"ease-in-out":!0},s={ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)"},l=[[0,0,1,1,"linear",!0],[.25,.1,.25,1,"ease",!0],[.42,0,1,1,"ease-in",!0],[0,0,.58,1,"ease-out",!0],[.47,0,.745,.715,"ease-in-sine"],[.39,.575,.565,1,"ease-out-sine"],[.445,.05,.55,.95,"ease-in-out-sine"],[.55,.085,.68,.53,"ease-in-quad"],[.25,.46,.45,.94,"ease-out-quad"],[.455,.03,.515,.955,"ease-in-out-quad"],[.55,.055,.675,.19,"ease-in-cubic"],[.215,.61,.355,1,"ease-out-cubic"],[.645,.045,.355,1,"ease-in-out-cubic"],[.895,.03,.685,.22,"ease-in-quart"],[.165,.84,.44,1,"ease-out-quart"],[.77,0,.175,1,"ease-in-out-quart"],[.6,.04,.98,.335,"ease-in-circ"],[.075,.82,.165,1,"ease-out-circ"],[.785,.135,.15,.86,"ease-in-out-circ"],[.95,.05,.795,.035,"ease-in-expo"],[.19,1,.22,1,"ease-out-expo"],[1,0,0,1,"ease-in-out-expo"],[.755,.05,.855,.06,"ease-in-quint"],[.23,1,.32,1,"ease-out-quint"],[.86,0,.07,1,"ease-in-out-quint"],[.6,-.28,.735,.045,"ease-in-back"],[.175,.885,.32,1.275,"ease-out-back"],[.68,-.55,.265,1.55,"ease-in-out-back"]],u=function(t){return a()(f(s[t]||t))},h=function(t){t=t.map((function(t){return Math.floor(100*t)/100}));for(var e=0,n=l.length;e8&&void 0!==arguments[8]?arguments[8]:1e3,u=d({x:t,y:e},{x:n,y:r},{x:a,y:i},{x:o,y:s}),h=0,f=u(0),p=0;p<=l;p++){var v=p/l,y=u(v);h+=Object(c.getDist)(f.x,f.y,y.x,y.y),f=y}return h},g=function(t,e,n,r,a,i){for(var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1e3,s=p({x:t,y:e},{x:n,y:r},{x:a,y:i}),l=0,u=s(0),h=0;h<=o;h++){var f=h/o,d=s(f);l+=Object(c.getDist)(u.x,u.y,d.x,d.y),u=d}return l},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n={minDist:1/0,minT:0};return function(r,a){for(var i=0;i<=e;i++)y(n,t,i/e,r,a);var c=1/(2*e),o=n.minT;for(i=0;i4&&void 0!==arguments[4]?arguments[4]:100;return b(d(t,e,n,r),a)},x=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;return b(p(t,e,n),r)},O=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return b(v(t,e),n)},w=function(t){if("linear"===t)return v(n={x:0,y:0},r={x:1,y:1});var e=f(t),n={x:0,y:0},r={x:e[0],y:e[1]},a={x:e[2],y:e[3]};return d(n,r,a,{x:1,y:1})},j=function(t,e,n){return{x:t.x+(e.x-t.x)*n,y:t.y+(e.y-t.y)*n}},z=function(t,e){var n=j(t[0],t[1],e),r=j(t[1],t[2],e),a=j(t[2],t[3],e),i=j(n,r,e),c=j(r,a,e);return j(i,c,e)},M=function(t,e){var n=j(t[0],t[1],e),r=j(t[1],t[2],e);return j(n,r,e)},V=function(t,e){return j(t[0],t[1],e)},S=function(t,e){var n=j(t[0],t[1],e),r=j(t[1],t[2],e),a=j(t[2],t[3],e),i=j(n,r,e),c=j(r,a,e),o=j(i,c,e);return{first:[t[0],n,i,o],second:[o,c,a,t[3]]}},P=function(t,e){var n=j(t[0],t[1],e),r=j(t[1],t[2],e),a=j(n,r,e);return{first:[t[0],n,a],second:[a,r,t[2]]}},C=function(t,e){var n=j(t[0],t[1],e);return{first:[t[0],n],second:[n,t[1]]}},R=function(t){var e=function(t){var e=i.d.negate([],t[0]),n=i.d.multiply([],[3,3,3],t[1]),r=i.d.multiply([],[-3,-3,-3],t[2]),a=t[3],c=i.d.add([],i.d.add([],e,n),i.d.add([],r,a));return i.d.multiply([],[3,3,3],c)}(t),n=function(t){var e=t[0],n=i.d.multiply([],[-2,-2,-2],t[1]),r=t[2],a=i.d.add([],i.d.add([],e,n),r);return i.d.multiply([],[6,6,6],a)}(t),r=function(t){var e=i.d.add([],t[1],i.d.negate([],t[0]));return i.d.multiply([],[3,3,3],e)}(t),a=[],c=n[0]*n[0]-4*e[0]*r[0];if(c<0);else if(0===c){var o=-n[0]/(2*e[0]);0<=o&&o<=1&&a.push(o)}else if(c>0){var s=(-n[0]+Math.sqrt(c))/(2*e[0]),l=(-n[0]-Math.sqrt(c))/(2*e[0]);0<=s&&s<=1&&a.push(s),0<=l&&l<=1&&a.push(l)}var u=n[1]*n[1]-4*e[1]*r[1];if(u<0);else if(0===u){var h=-n[1]/(2*e[1]);0<=h&&h<=1&&a.push(h)}else if(u>0){var f=(-n[1]+Math.sqrt(u))/(2*e[1]),d=(-n[1]-Math.sqrt(u))/(2*e[1]);0<=f&&f<=1&&a.push(f),0<=d&&d<=1&&a.push(d)}return a},H=function(t){var e=R(t),n=t.map((function(t){return{x:t[0],y:t[1]}}));return e.map((function(t){var e=z(n,t);return[e.x,e.y,0]}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var r=n(13),a=n.n(r),i=n(16),c=n.n(i),o=n(7),s=n.n(o),l=n(2),u=n.n(l),h=n(3),f=n.n(h),d=n(5),p=n.n(d),v=n(6),y=n.n(v),m=n(0),g=n.n(m),b=n(4),k=n(31),x=n(8),O=n(11),w=n(14),j=new Map,z=function(){function t(){u()(this,t)}return f()(t,null,[{key:"has",value:function(t){return j.has(t)}},{key:"get",value:function(t){return j.get(t)}},{key:"set",value:function(t,e){j.size>1e3&&j.clear(),j.set(t,e)}}]),t}();function M(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 V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y()(this,n)}}var S=/((matrix|translate(X|Y|Z|3d)?|scale(X|Y|Z|3d)?|rotate(X|Y|Z|3d)?|skew(X|Y)|matrix(3d)?|perspective)\(([^\)]*)\))/gi,P=function(t){p()(n,t);var e=V(n);function n(){return u()(this,n),e.apply(this,arguments)}return f()(n,[{key:"getDefaultObject",value:function(){return{itemType:"transform",value:[]}}},{key:"toCloneObject",value:function(){return function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[];return Object(x.isString)(e)&&(e=[e]),n.filter(t,(function(t){return!1===e.includes(t.type)}))}},{key:"filter",value:function(t,e){return n.join(n.parseStyle(t,!1).filter((function(t){return e(t)})))}},{key:"replace",value:function(t,e){var r=n.parseStyle(t,!1),a=r.find((function(t){return t.type===e.type}));return a?a.value=e.value:r.push(e),n.join(r)}},{key:"replaceAll",value:function(t,e){for(var r=n.parseStyle(t,!1),a=n.parseStyle(e),i=0,c=a.length;i2&&void 0!==arguments[2]?arguments[2]:"rotate",a=n.createRotateKey(t,e,r);return z.has(a)||z.set(a,n.replace(t,{type:r,value:[e]})),z.get(a)}},{key:"rotateZ",value:function(t,e){return n.rotate(t,e,"rotateZ")}},{key:"rotateX",value:function(t,e){return n.rotate(t,e,"rotateX")}},{key:"rotateY",value:function(t,e){return n.rotate(t,e,"rotateY")}},{key:"parseStyle",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[];if(!t)return r;if(e&&z.has(t))return z.get(t);var i=t.match(S)||[];return i.forEach((function(t,e){var i=t.split("("),c=a()(i,2),o=c[0],s=c[1],l=(s=s.split(")")[0]).split(",");l=s.includes("matrix")||s.includes("scale")?l.map((function(t){return b.a.number(t.trim())})):l.map((function(t){return b.a.parse(t.trim())})),r[e]=n.parse({type:o,value:l})})),e&&z.set(t,r),r}},{key:"createTransformMatrix",value:function(t,e,n){for(var r=O.a.create(),a=0,i=t.length;a2&&void 0!==arguments[2]?arguments[2]:null;return o(t,c(t,e)-c(t,n))}function l(t){var e={id:0,start:0,speed:t.speed||1,elapsed:t.elapsed||0,duration:t.duration||0,iterationStartCount:1,iterationCount:t.iterationCount||Number.MAX_SAFE_INTEGER,direction:t.direction||"normal",log:[],logIndex:0,tick:t.tick||function(){},startCallback:t.start||function(){},endCallback:t.end||function(){},firstCallback:t.first||function(){},lastCallback:t.last||function(){}},n=function(t){return"normal"===e.direction||"reverse"!==e.direction&&("alternate"===e.direction?e.iterationStartCount%2==1:"alternate-reverse"===e.direction?e.iterationStartCount%2==0:void 0)?t:1-t},r=function(t){var r=!1;null===e.start&&(e.start=t,r=!0);var i=t-e.start;e.elapsed+=i*e.speed,e.start=t,e.elapsed>e.duration&&(e.elapsed=e.duration);var o=n(e.elapsed/e.duration)*e.duration;r&&e.startCallback(o,e),e.log[e.logIndex++]={elapsed:o,dt:e.lastTime-o},e.lastTime=o,e.tick(o,e),e.elapsed===e.duration?c():a()},a=function(){e.id=requestAnimationFrame(r)},c=function(){e.endCallback(e.elapsed,e),e.iterationStartCount++,e.iterationStartCount>e.iterationCount?(e.lastCallback(e.elapsed,e),cancelAnimationFrame(e.id)):(e.start=null,e.elapsed=0,a())},o=function(t){e.elapsed=t,e.tick(e.elapsed,e)};return{play:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.start=null,e.iterationStartCount=1,e.log=[],e.lastTime=0,e.logIndex=0,Object(i.isNumber)(t.elapsed)&&(e.elapsed=t.elapsed),Object(i.isNumber)(t.speed)&&(e.speed=t.speed),Object(i.isNumber)(t.duration)&&(e.duration=t.duration),Object(i.isNumber)(t.iterationCount)&&(e.iterationCount=t.iterationCount||Number.MAX_SAFE_INTEGER),Object(i.isString)(t.direction)&&(e.direction=t.direction),Object(i.isFunction)(t.tick)&&(e.tick=t.tick),Object(i.isFunction)(t.start)&&(e.startCallback=t.start),Object(i.isFunction)(t.end)&&(e.endCallback=t.end),Object(i.isFunction)(t.first)&&(e.firstCallback=t.first),Object(i.isFunction)(t.last)&&(e.lastCallback=t.last),Object(i.isFunction)(t.stop)&&(e.stopCallback=t.stop),e.firstCallback(e.elapsed,e),a()},stop:function(){e.stopCallback(e.elapsed,e),cancelAnimationFrame(e.id)},tick:r,first:function(t){o(0)},last:function(t){o(e.duration)},seek:o,timer:e}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"f",(function(){return v})),n.d(e,"b",(function(){return y})),n.d(e,"g",(function(){return m}));var r=n(13),a=n.n(r),i=n(55),c=n(4),o=n(11),s=n(14);function l(t,e,n,r,a,i,c,o){var s=((c-a)*(e-i)-(o-i)*(t-a))/((o-i)*(n-t)-(c-a)*(r-e)),l=((n-t)*(e-i)-(r-e)*(t-a))/((o-i)*(n-t)-(c-a)*(r-e));return 0<=s&&s<=1&&0<=l&&l<=1}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=!1,i=t.length;return t.forEach((function(c,o){var s=a()(c,2),l=s[0],u=s[1],h=a()(t[(o+1)%i],2),f=h[0],d=h[1];(u>=n&&d=n)&&e<(f-l)*(n-u)/(d-u)+l&&(r=!r)})),r}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=t.length;return t.some((function(o,s){var u=a()(o,2),h=u[0],f=u[1],d=a()(t[(s+1)%c],2),p=d[0],v=d[1];return l(e,n,r,i,h,f,p,v)}))}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length;return t.some((function(r,i){var c=a()(r,2),o=c[0],s=c[1],l=a()(t[(i+1)%n],2),f=l[0],d=l[1],p=h(e,o,s,f,d);return!!p||!!(p=u(t,e[0][0],e[0][1]))}))}function d(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"50% 50% 0px",c=i.a.scale(a,n,r);return[[t,e,0],[t+n,e,0],[t+n,e+r,0],[t,e+r,0],[t+c[0],e+c[1],0]]}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=o.d.lerp([],t[0],t[1],.5),r=o.d.lerp([],t[2],t[3],.5),a=Object(s.getPointBetweenVerties)(r,n,e);return a}function v(t,e,n,r){return d(t,e,n,r)}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,i=[],c=[];return t.forEach((function(t){t.verties().forEach((function(t){i.push(t[0]),c.push(t[1])}))})),e=Math.min.apply(Math,i),r=Math.max.apply(Math,i),n=Math.min.apply(Math,c),a=Math.max.apply(Math,c),e===Number.MAX_SAFE_INTEGER&&(e=0),n===Number.MAX_SAFE_INTEGER&&(n=0),r===Number.MIN_SAFE_INTEGER&&(r=0),a===Number.MIN_SAFE_INTEGER&&(a=0),d(e,n,r-e,a-n)}function m(t){var e=c.a.px(t[0][0]).floor(),n=c.a.px(t[0][1]).floor();return{x:e,left:e,y:n,top:n,width:c.a.px(o.d.dist(t[0],t[1])).floor(),height:c.a.px(o.d.dist(t[0],t[3])).floor()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(13),a=n.n(r),i=n(16),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(25),f=n(8),d=n(14),p=n(11),v=n(21),y=/([mMlLvVhHcCsSqQtTaAzZ]([^mMlLvVhHcCsSqQtTaAzZ]*))/g,m=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,g=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";s()(this,t),this.reset(e)}return u()(t,[{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.segments=[],this.pathString=t,this.parse()}},{key:"resetSegments",value:function(t){this.segments=t||[],this.pathString=this.joinPath()}},{key:"trim",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.match(m)||[];return e.filter((function(t){return""!=t}))}},{key:"parse",value:function(){var t=this,e=this.pathString.match(y)||[];this.segments=e.map((function(e){var n=e[0];return{command:n,values:t.trim(e.replace(n,"")).map((function(t){return+t}))}})),this.segments=this.segments.map((function(e,n){switch(e.command){case"c":case"m":case"l":case"q":case"s":case"t":case"v":case"h":for(var r=t.segments[n-1],a=r.values[r.values.length-2],i=r.values[r.values.length-1],o=0,s=e.values.length;o1&&void 0!==arguments[1]&&arguments[1],r=this.segments.map((function(n,r){return t.call(e,n,r)}));if(n)return r;this.segments=r}},{key:"_loop",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.each((function(e){var n=e.values;switch(e.command){case"M":case"L":var r=t(n,0);e.values=[r[0],r[1]];break;case"V":r=t([+n[0],0]);e.values=[r[0]];break;case"H":r=t([0,+n[0]]);e.values=[r[1]];break;case"C":case"S":case"T":case"Q":for(var a=0,i=n.length;a1&&void 0!==arguments[1]&&arguments[1];return this.each((function(e){var n=e.values;switch(e.command){case"M":case"L":var r=p.d.transformMat4([],[n[0],n[1],0],t);e.values=[r[0],r[1]];break;case"V":r=p.d.transformMat4([],[+n[0],0,0],t);e.values=[r[0]];break;case"H":r=p.d.transformMat4([],[0,+n[0],0],t);e.values=[r[1]];break;case"C":case"S":case"T":case"Q":for(var a=0,i=n.length;a0&&void 0!==arguments[0]?arguments[0]:1;return this.each((function(e){return e.values=e.values.map((function(e){return Object(d.round)(e,t)})),e})),this}},{key:"reverseSegments",value:function(t){for(var e=[],n=t.length-1,r=n;r>0;r--){var a=t[r],i=a.values,c=a.command,o=t[r-1],s=o.values[o.values.length-2],l=o.values[o.values.length-1];switch(c){case"L":r===n&&e.push({command:"M",values:[i[0],i[1]]}),e.push({command:"L",values:[s,l]});break;case"C":r===n&&e.push({command:"M",values:[i[4],i[5]]}),e.push({command:"C",values:[i[2],i[3],i[0],i[1],s,l]});break;case"Q":r===n&&e.push({command:"M",values:[i[2],i[3]]}),e.push({command:"Q",values:[i[0],i[1],s,l]});break;case"Z":e.push(a),n=r-1}}return"Z"===e[0].command&&e.push(e.shift()),e}},{key:"splitSegments",value:function(){var t=[],e=[];return this.segments.forEach((function(n){"M"===n.command?(e=[n],t.push(e)):e.push(n)})),t}},{key:"reverse",value:function(){var t=this,e=this.splitSegments(),n=[];e.forEach((function(e){n.push.apply(n,t.reverseSegments(e))})),this.segments=n}},{key:"verties",get:function(){var t=[],e=[];return this.each((function(n){var r=n.values;switch(n.command){case"M":case"L":t.push([].concat(c()(n.values),[0]));break;case"V":t.push([r[0],e.pop(),0]);break;case"H":e.pop(),t.push([e.pop(),r[0],0]);break;case"C":case"S":case"T":case"Q":for(var a=0,i=r.length;a0&&void 0!==arguments[0]?arguments[0]:{};return g({selected:!1,layers:[]},t)}},{key:"isAttribute",value:function(){return!0}},{key:"toCSS",value:function(){return{}}},{key:"toString",value:function(){return Object(y.CSS_TO_STRING)(this.toCSS())}}]),n}(v.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(8),s=(n(33),new(function(){function t(){a()(this,t),this.components={},this.inspectors={}}return c()(t,[{key:"registerComponent",value:function(t,e){if(this.components[t])throw new Error("It has duplicated item name. "+t);this.components[t]=e}},{key:"registerInspector",value:function(t,e){if(this.inspectors[t])throw new Error("It has duplicated item name. "+t);this.inspectors[t]=e}},{key:"getComponentClass",value:function(t){return this.components[t]||this.components.rect}},{key:"getInspector",value:function(t){return this.inspectors[t]}},{key:"createComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getComponentClass(t);if(!n)throw new Error("".concat(t," type is not valid."));return new n(e)}},{key:"createInspector",value:function(t){var e=this.getInspector(t.itemType);return Object(o.isFunction)(e)?e(t)||[]:Object(o.isFunction)(t.getProps)&&t.getProps()||[]}}]),t}()))},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(14),u=n(8);function h(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 f(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return c()(this,t),this.ref=new Proxy(this,{get:function(t,e){var n=t[e];return Object(u.isFunction)(n)?function(){for(var e=arguments.length,r=new Array(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:"";return this.json.id+t}},{key:"recover",value:function(){}},{key:"setCache",value:function(){}},{key:"is",value:function(t){return!!this.json&&t===this.json.itemType}},{key:"isNot",value:function(t){return!1===this.is(t)}},{key:"isSVG",value:function(){return!1}},{key:"generateListNumber",value:function(){this.layers.forEach((function(t,e){t.no=e,t.generateListNumber()}))}},{key:"convert",value:function(t){var e=this;return t.layers&&t.layers.forEach((function(t){t.parent=e.ref})),t}},{key:"checkField",value:function(t,e){return!0}},{key:"toCloneObject",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.attrs("itemType","elementType","type","visible","lock","selected");return t&&(e.layers=this.json.layers.map((function(e){return e.clone(t)}))),e}},{key:"clone",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.constructor,n=new e(this.toCloneObject(t));return n.setParent(this.json.parent),n}},{key:"reset",value:function(t){this.json=this.convert(Object.assign(this.json,t)),this.lastChangedField=t,this.changed()}},{key:"hasChangedField",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=Object(l.uuidShort)();return f({id:e,_timestamp:Date.now(),_time:performance.now(),visible:!0,lock:!1,selected:!1,layers:[]},t)}},{key:"attrs",value:function(){for(var t=this,e={},n=arguments.length,r=new Array(n),a=0;a0}},{key:"appendChildItem",value:function(t){return t.parent===this.ref||(this.resetMatrix(t),t.parent&&t.remove(),t.setParent(this.ref),this.json.layers.push(t),this.project.addIndexItem(t)),t}},{key:"prependChildItem",value:function(t){return this.resetMatrix(t),t.parent&&t.remove(),t.setParent(this.ref),this.json.layers.unshift(t),this.project.addIndexItem(t),t}},{key:"resetMatrix",value:function(t){}},{key:"insertChildItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.resetMatrix(t),t.parent&&t.remove(),t.setParent(this.ref),this.json.layers.splice(e,0,t),this.project.addIndexItem(t),t}},{key:"appendAfter",value:function(t){var e=this.parent.findIndex(this);return this.parent.insertChildItem(t,e),this.project.addIndexItem(t),t}},{key:"appendBefore",value:function(t){var e=this.parent.findIndex(this);return this.parent.insertChildItem(t,e-1),this.project.addIndexItem(t),t}},{key:"setPositionInPlace",value:function(t,e){this.layers.splice(t,0,e)}},{key:"toggle",value:function(t,e){Object(u.isUndefined)(e)?this.json[t]=!this.json[t]:this.json[t]=!!e}},{key:"isTreeItemHide",value:function(){var t=this.parent,e=[];do{if(t.is("project"))break;e.push(Boolean(t.collapsed)),t=t.parent}while(t);return Boolean(e.filter(Boolean).length)}},{key:"expectJSON",value:function(t){return"parent"!==t&&!Object(u.isUndefined)(this.json[t])}},{key:"toJSON",value:function(){var t=this,e=this.json,n={};return Object.keys(e).filter((function(e){return t.expectJSON(e)})).forEach((function(t){n[t]=e[t]})),n}},{key:"resize",value:function(){}},{key:"copy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.json.parent.copyItem(this.ref,t)}},{key:"findIndex",value:function(t){return this.json.layers.indexOf(t.ref)}},{key:"copyItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=t.clone();n.move([e,e,0]);var r=this.findIndex(t);return r>-1&&(this.json.layers.splice(r+1,0,n),this.project.addIndexItem(n)),n}},{key:"remove",value:function(){this.json.parent.removeItem(this.ref),this.project.removeIndexItem(this.ref)}},{key:"removeItem",value:function(t){var e=this.findIndex(t);e>-1&&this.json.layers.splice(e,1)}},{key:"hasParent",value:function(t){var e=this.json.parent.id===t;return e||!1!==this.json.parent.is("project")?e:this.json.parent.hasParent(t)}},{key:"searchById",value:function(t){if(this.id===t)return e.addIndexItem(this.ref),this.ref;for(var e=this.project,n=0,r=this.layers.length;n1&&void 0!==arguments[1]?arguments[1]:{};c()(this,t),this.context=e,this.options=n}return s()(t,[{key:"initialize",value:function(){}},{key:"load",value:function(){}},{key:"refresh",value:function(){}},{key:"render",value:function(){}},{key:"getRef",value:function(t){return this.context.getRef(t)}},{key:"run",value:function(){}},{key:"destroy",value:function(){}}]),t}();function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var B={touchstart:!0,touchmove:!0,mousedown:!0,mouseup:!0,mousemove:!0},A={doubletab:"touchend"},E={doubletab:!0},I=function(t){f()(n,t);var e=T(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"initialize",value:function(){var t=this;this.destroy(),this._domEvents||(this._domEvents=this.context.filterProps(m.j)),this._domEvents.forEach((function(e){return t.parseDomEvent(e)}))}},{key:"destroy",value:function(){this.removeEventAll()}},{key:"removeEventAll",value:function(){var t=this;this.getBindings().forEach((function(e){t.removeDomEvent(e)})),this.initBindings()}},{key:"removeDomEvent",value:function(t){var e=t.eventName,n=t.dom,r=t.callback;m.cb.removeDomEvent(n,e,r)}},{key:"getBindings",value:function(){return this._bindings||this.initBindings(),this._bindings}},{key:"addBinding",value:function(t){this.getBindings().push(t)}},{key:"initBindings",value:function(){this._bindings=[]}},{key:"matchPath",value:function(t,e){return t?t.matches(e)?t:this.matchPath(t.parentElement,e):null}},{key:"hasDelegate",value:function(t,e){return this.matchPath(t.target||t.srcElement,e.delegate)}},{key:"makeCallback",value:function(t,e){return t.delegate?this.makeDelegateCallback(t,e):this.makeDefaultCallback(t,e)}},{key:"makeDefaultCallback",value:function(t,e){var n=this;return function(r){var a=n.runEventCallback(r,t,e);if(Object(R.isNotUndefined)(a))return a}}},{key:"makeDelegateCallback",value:function(t,e){var n=this;return function(r){var a=n.hasDelegate(r,t);if(a){r.$dt=C.a.create(a);var i=n.runEventCallback(r,t,e);if(Object(R.isNotUndefined)(i))return i}}}},{key:"runEventCallback",value:function(t,e,n){var r=this.context;if(t.xy=m.cb.posXY(t),e.beforeMethods.length&&e.beforeMethods.every((function(e){return r[e.target].call(r,t,e.param)})),this.checkEventType(t,e)){var a=n(t,t.$dt,t.xy);return!1!==a&&e.afterMethods.length&&e.afterMethods.forEach((function(e){return r[e.target].call(r,t,e.param)})),a}}},{key:"checkEventType",value:function(t,e){var n=this.context,r=!0;e.codes.length&&(r=!!t.code&&e.codes.indexOf(t.code.toLowerCase())>-1||!!t.key&&e.codes.indexOf(t.key.toLowerCase())>-1);var a=!0;return e.checkMethodList.length&&(a=e.checkMethodList.every((function(e){var r=n[e];return Object(R.isFunction)(r)&&r?r.call(n,t):!Object(R.isNotUndefined)(r)||!!r}))),r&&a}},{key:"getDefaultDomElement",value:function(t){var e,n=this.context;return(e=t?n.refs[t]||n[t]||window[t]:n.el||n.$el||n.$root)instanceof C.a?e.getElement():e}},{key:"getRealEventName",value:function(t){return A[t]||t}},{key:"getCustomEventName",value:function(t){return E[t]?t:""}},{key:"getDefaultEventObject",value:function(t,e){var n=this.context,r=e,i=r.filter((function(t){return!!n[t]})),c=Object(R.splitMethodByKeyword)(r,"after"),o=a()(c,2),s=o[0],l=o[1],u=Object(R.splitMethodByKeyword)(r,"before"),h=a()(u,2),f=h[0],d=h[1],p=Object(R.splitMethodByKeyword)(r,"debounce"),v=a()(p,2),y=v[0],m=v[1],g=Object(R.splitMethodByKeyword)(r,"delay"),b=a()(g,2),k=b[0],x=b[1],O=Object(R.splitMethodByKeyword)(r,"throttle"),j=a()(O,2),z=j[0],M=j[1],V=Object(R.splitMethodByKeyword)(r,"capture"),S=a()(V,1)[0],P=[].concat(w()(i),w()(s),w()(f),w()(k),w()(y),w()(z),w()(S)),C=r.filter((function(t){return-1===P.indexOf(t)})).map((function(t){return t.toLowerCase()}));return{eventName:this.getRealEventName(t),customEventName:this.getCustomEventName(t),codes:C,captures:S,afterMethods:l,beforeMethods:d,delayMethods:x,debounceMethods:m,throttleMethods:M,checkMethodList:i}}},{key:"addDomEvent",value:function(t,e){t.callback=this.makeCallback(t,e),this.addBinding(t);var n=!!t.captures.length;B[t.eventName]&&(n={passive:!0,capture:n}),m.cb.addDomEvent(t.dom,t.eventName,t.callback,n)}},{key:"makeCustomEventCallback",value:function(t,e){var n=this;if("doubletab"===t.customEventName){var r=300;return t.delayMethods.length&&(r=+t.delayMethods[0].target),function(){n.doubleTab?(performance.now()-n.doubleTab.time-1}));i.forEach(function(){var e=x()(P.a.mark((function e(r){var i,c,o,s,l,u,h,f,d,p,v,y,g,b,k;return P.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.context[r],c=r.split(m.l),o=a()(c,2),r=o[0],s=o[1],l=t.getRef(s),u=m.c,""!=l&&Object(R.isString)(l)?u=Object(m.d)(l):Object(R.isFunction)(l)&&(u=l),h=r.split(m.e)[1],f=t.context.refs[h],d=Object(R.isFunction)(u)&&u.call(t.context),!f||!d){e.next=16;break}return e.next=11,i.call.apply(i,[t.context].concat(n));case 11:if(p=e.sent){e.next=14;break}return e.abrupt("return");case 14:for(v=Object.keys(p),y=0,g=v.length;y=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){o=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(o)throw i}}}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return c()(this,n),(r=e.call(this,t,a)).created(),r.initialize(),r.initializeStoreEvent(),r}return s()(n,[{key:"created",value:function(){}},{key:"getRealEventName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MULTI_PREFIX,n=t.indexOf(e);return t.substr(n<0?0:n+e.length)}},{key:"splitMethod",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Object(R.splitMethodByKeyword)(t.split(m.l),e),i=a()(r,2),c=i[0],o=i[1];return[c.length?+o[0].target:n,c,o]}},{key:"initializeStoreEvent",value:function(){var t=this;this.filterProps(m.m).forEach((function(e){var n=t.getRealEventName(e,m.Y),r=t.splitMethod(n,"debounce"),i=a()(r,2),c=i[0],o=i[1],s=t.splitMethod(n,"throttle"),l=a()(s,2),u=l[0],h=l[1];n.split(m.l).filter((function(t){return-1===o.indexOf(t)&&-1===h.indexOf(t)})).map((function(t){return t.trim()})).forEach((function(n){var r=t[e].bind(t);r.displayName="".concat(t.sourceName,".").concat(n),r.source=t.source,t.$store.on(n,r,t,c,u)}))}))}},{key:"destoryStoreSUBSCRIBE",value:function(){this.$store.offAll(this)}},{key:"destroy",value:function(){u()(y()(n.prototype),"destroy",this).call(this),this.destoryStoreSUBSCRIBE()}},{key:"rerender",value:function(){u()(y()(n.prototype),"rerender",this).call(this),this.initialize(),this.initializeStoreEvent()}},{key:"emit",value:function(t){var e;this.$store.source=this.source,this.$store.sourceContext=this;for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?n-1:0),a=1;a1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:{};this.opt=t||{},this.parent=this.opt,this.props=e,this.source=Object($.uuid)(),this.sourceName=this.constructor.name}},{key:"initComponents",value:function(){this.childComponents=W({},this.components())}},{key:"initializeHandler",value:function(){return[new N(this),new I(this)]}},{key:"initState",value:function(){return{}}},{key:"setState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.prevState=this.state,this.state=Object.assign({},this.state,t),e&&this.load()}},{key:"toggleState",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setState(V()({},t,!this.state[t]),e)}},{key:"_reload",value:function(t){this.props=t,this.state={},this.setState(this.initState(),!1),this.refresh(!0)}},{key:"render",value:function(t){this.$el=this.parseTemplate(Object(R.html)(_||(_=z()(["\n ","\n "])),this.template())),this.refs.$el=this.$el,t&&t.append(this.$el),this.load(),this.afterRender()}},{key:"initialize",value:function(){this.state=this.initState()}},{key:"afterRender",value:function(){}},{key:"components",value:function(){return{}}},{key:"getRef",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n-1})),t.next=5,a.forEach(function(){var t=x()(P.a.mark((function t(e){var r,a,c,o,s,l,u,h,f;return P.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.split(m.J)[1],a=r.split(m.l).map((function(t){return t.trim()})),c=b()(a),o=c[0],s=(s=c.slice(1)).map((function(t){return t.trim()})),l=Boolean(s.filter((function(t){return m.q.includes(t)})).length),!i.refs[o]){t.next=11;break}return t.next=7,(u=i[e]).call.apply(u,[i].concat(n));case 7:h=t.sent,Object(R.isArray)(h)&&(h=h.join("")),f=i.parseTemplate(Object(R.html)(X||(X=z()(["",""])),h),!0),l?i.refs[o].htmlDiff(f):i.refs[o].html(f);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 5:this._afterLoad();case 6:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"runHandlers",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"run",e=arguments.length,n=new Array(e>1?e-1:0),r=1;r"}},{key:"eachChildren",value:function(t){Object(R.isFunction)(t)&&Object(R.keyEach)(this.children,(function(e,n){t(n)}))}},{key:"rerender",value:function(){var t=this.$el.parent();this.destroy(),this.render(t)}},{key:"destroy",value:function(){this.eachChildren((function(t){t.destroy()})),this.runHandlers("destroy"),this.$el.remove(),this.$el=null,this.refs={},this.children={}}},{key:"collectProps",value:function(){return Object(R.collectProps)(this,tt)}},{key:"filterProps",value:function(t){return this.collectProps().filter((function(e){return e.match(t)}))}},{key:"self",value:function(t){return t&&t.$dt&&t.$dt.is(t.target)}},{key:"isAltKey",value:function(t){return t.altKey}},{key:"isCtrlKey",value:function(t){return t.ctrlKey}},{key:"isShiftKey",value:function(t){return t.shiftKey}},{key:"isMetaKey",value:function(t){return t.metaKey||"Meta"==t.key||t.code.indexOf("Meta")>-1}},{key:"isMouseLeftButton",value:function(t){return 1===t.buttons}},{key:"preventDefault",value:function(t){return t.preventDefault(),!0}},{key:"stopPropagation",value:function(t){return t.stopPropagation(),!0}},{key:"bodyMouseMove",value:function(t,e){this[e]&&this.emit(H.a,this[e],this,t.xy)}},{key:"bodyMouseUp",value:function(t,e){this[e]&&this.emit(H.b,this[e],this,t.xy)}}]),t}());e.a=nt},function(t,e,n){"use strict";n.d(e,"a",(function(){return F}));var r=n(13),a=n.n(r),i=n(7),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(10),f=n.n(h),d=n(5),p=n.n(d),v=n(6),y=n.n(v),m=n(0),g=n.n(m),b=n(4),k=n(8),x=n(31),O=n(38),w=n(23);function j(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 z(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"transparent";return new n({colorsteps:[new w.a({color:t,percent:0,index:0}),new w.a({color:t,percent:100,index:1})]})}}]),n}(O.a),S=n(68),P=n(50),C=n(69),R=n(52),H=n(70),$=n(53),L=n(71),T=n(20);function B(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 A(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return f()(g()(n.prototype),"getDefaultObject",this).call(this,j({itemType:"clip-path",type:"none",value:""},t))}},{key:"toCloneObject",value:function(){return j(j({},f()(g()(n.prototype),"toCloneObject",this).call(this)),this.attrs("value"))}},{key:"toString",value:function(){var t=this.json.type,e=this.json.value,n=this.json.box,r="";switch(t){case"circle":case"inset":case"ellipse":case"polygon":case"path":r="".concat(t,"(").concat(e,")");break;case"svg":r="url(#".concat(e,")");break;default:r="none"}return n?"".concat(n," ").concat(r):r}},{key:"toCSS",value:function(){return{"clip-path":this.toString()}}}],[{key:"toCSS",value:function(t){return new n(t).toCSS()}},{key:"toString",value:function(t){return n.toCSS(t)["clip-path"]}},{key:"parse",value:function(t){return new n(t)}},{key:"parseStyle",value:function(t){var e={};return t?((t.match(M)||[]).forEach((function(t,n){if(t.includes("-box"))e.box=t;else{var r=t.split("("),i=a()(r,2),c=i[0],o=i[1];o=o||"",o="none"===c?"":o.split(")")[0],e.type=c,e.value=o}})),e):{}}},{key:"parseStyleForCircle",value:function(t){var e=new b.a("","closest-side"),n="";if((t=t||"50%").includes("at")){var r=t.split("at").map((function(t){return t.trim()})),i=a()(r,2);e=i[0],n=i[1]}else n=t.trim();var c=n.split(" "),o=a()(c,2),s=o[0],l=o[1];return Object(k.isUndefined)(l)&&(l=s),{radius:e,x:s=b.a.parse(s),y:l=b.a.parse(l)}}},{key:"parseStyleForEllipse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50% 50%",e="50% 50%",n="";if((t=t||"50%").includes("at")){var r=t.split("at").map((function(t){return t.trim()})),i=a()(r,2);e=i[0],n=i[1]}else n=t.trim();var c=n.split(" "),o=a()(c,2),s=o[0],l=o[1];Object(k.isUndefined)(l)&&(l=s),s=b.a.parse(s),l=b.a.parse(l);var u=e.split(" "),h=a()(u,2),f=h[0],d=h[1];return Object(k.isUndefined)(d)&&(d=f),{radiusX:f=b.a.parse(f),radiusY:d=b.a.parse(d),x:s,y:l}}},{key:"parseStyleForInset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("round"),n=a()(e,2),r=n[0],i=n[1],c=x.a.parse(r),o=a()(c,5),s=o[0],l=o[1],u=o[2],h=o[3],f=o[4];if(i)var d=x.a.parse(i),p=a()(d,5),v=p[0],y=p[1],m=p[2],g=p[3],b=p[4];return{isAll:1===s,top:l,right:u,bottom:h,left:f,round:i,isAllRadius:1===v,topRadius:y,rightRadius:m,bottomRadius:g,leftRadius:b}}},{key:"parseStyleForPolygon",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(",").filter((function(t){return t.trim()})).map((function(t){var e=t.trim().split(" "),n=a()(e,2),r=n[0],i=n[1];return{x:b.a.parse(r),y:b.a.parse(i)}}))}}]),n}(O.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return z}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(75),g=n(23),b=n(8),k=n(30);function x(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 O(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return O({itemType:"image-resource",type:"gradient",colorsteps:[]},t)}},{key:"toCloneObject",value:function(){return O(O({},u()(y()(n.prototype),"toCloneObject",this).call(this)),{},{colorsteps:this.json.colorsteps.map((function(t){return t.clone()}))})}},{key:"convert",value:function(t){return t.colorsteps[0]instanceof g.a||(t.colorsteps=t.colorsteps.map((function(t){return new g.a(t)}))),t}},{key:"calculateAngle",value:function(){var t=this.json.angle;return Object(b.isUndefined)(j[t])?t:j[t]||0}},{key:"addColorStep",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.json.colorsteps.push(t),e&&this.sortColorStep(),t}},{key:"insertColorStep",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba(216,216,216,0)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(216,216,216,1)",r=this.colorsteps;if(r.length){if(te.percent?1:t.percente.index?1:-1:void 0})),t.forEach((function(t,e){t.index=100*e}))}},{key:"addColorStepList",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.addColorStep(e,!1)})),this.sortColorStep()}},{key:"getColorStep",value:function(t){return this.json.colorsteps.filter((function(e){return e.id==t}))[0]}},{key:"clear",value:function(){arguments.length?this.json.colorsteps.splice(+(arguments.length<=0?void 0:arguments[0]),1):this.json.colorsteps=[]}},{key:"removeColorStep",value:function(t){this.json.colorsteps=this.json.colorsteps.filter((function(e){return e.id!=t}))}},{key:"colorsteps",get:function(){return this.json.colorsteps}},{key:"getColorString",value:function(){var t=this.colorsteps;return n.toColorString(t)}}],[{key:"toColorString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return"";var e=t.map((function(e,n){return e.prevColorStep=e.cut&&n>0?t[n-1]:null,e}));return 1===e.length&&e.push(new g.a({color:e[0].color||"transparent",percent:100})),e.map((function(t){return"".concat(t)})).join(",")}}]),n}(m.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(2),a=n.n(r),i=n(5),c=n.n(i),o=n(6),s=n.n(o),l=n(0),u=n.n(l);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u()(t);if(e){var a=u()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s()(this,n)}}var f=function(t){c()(n,t);var e=h(n);function n(){return a()(this,n),e.apply(this,arguments)}return n}(n(56).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(29),s=function(){function t(){a()(this,t),this.pathArray=[]}return c()(t,[{key:"reset",value:function(){this.pathArray=[]}},{key:"getPointString",value:function(t){return t.map((function(t){return"".concat(t.x," ").concat(t.y)})).join(" ")}},{key:"makeString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.pathArray.push("".concat(t," ").concat(this.getPointString(e))),this}},{key:"M",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:"object";return'")}}],[{key:"makeRect",value:function(e,n,r,a){return(new t).M({x:e,y:n}).L({x:e+r,y:n}).L({x:e+r,y:n+a}).L({x:e,y:n+a}).L({x:e,y:n}).Z().d}},{key:"makeLine",value:function(e,n,r,a){return(new t).M({x:e,y:n}).L({x:r,y:a}).d}},{key:"makeCircle",value:function(e,n,r,a){var i=(new t).M({x:0,y:-1}).C({x:.552284749831,y:-1},{x:1,y:-.552284749831},{x:1,y:0}).C({x:1,y:.552284749831},{x:.552284749831,y:1},{x:0,y:1}).C({x:-.552284749831,y:1},{x:-1,y:.552284749831},{x:-1,y:0}).C({x:-1,y:-.552284749831},{x:-.552284749831,y:-1},{x:0,y:-1}).Z().d,c=new o.a(i);return c.translate(1,1).scale(r/2,a/2).translate(e,n),c.toString()}},{key:"makePathByPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=new t,r=0,a=e.length;r\n ').concat(this.colorsteps.map((function(t){return'')})).join("\n"),"\n \n ")}},{key:"toFillValue",value:function(t){return"url(#".concat(t,")")}}],[{key:"toLinearGradient",value:function(t){return 0===t.length?"none":new LinearGradient({angle:"to right",colorsteps:t})+""}},{key:"parse",value:function(t){var e=Object(y.convertMatches)(t),r={},a=[];return e.str.split("(")[1].split(")")[0].split(",").map((function(t){return t.trim()})).forEach((function(t,n){if(t.includes("@"))t=Object(y.reverseMatches)(t,e.matches),a.push.apply(a,x.a.parse(t));else{var i=t.split(" "),c=g()(i,5),o=c[0],s=c[1],l=c[2],u=c[3],h=c[4];r.x1=w.a.parse(o),r.y1=w.a.parse(s),r.x2=w.a.parse(l),r.y2=w.a.parse(u),r.spreadMethod=h||"pad"}})),new n(z(z({},r),{},{colorsteps:a}))}}]),n}(O.a),S=n(8);function P(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 C(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return k()(p()(n.prototype),"getDefaultObject",this).call(this,C({type:"radial-gradient",cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",fr:"0%",spreadMethod:"pad"},t))}},{key:"toCloneObject",value:function(){return C(C({},k()(p()(n.prototype),"toCloneObject",this).call(this)),this.attrs("cx","cy","r","fx","fy","fr","spreadMethod"))}},{key:"toString",value:function(){if(0===this.colorsteps.length)return"";var t=this.getColorString(),e=this.json,n=[e.cx,e.cy,e.r,e.fx,e.fy,e.fr,e.spreadMethod].join(" ");return"".concat(this.json.type,"(").concat(n,", ").concat(t,")")}},{key:"toSVGString",value:function(t){var e=this.json,n=e.cx,r=e.cy,a=e.r,i=e.fx,c=e.fy,o=e.fr,s=e.spreadMethod;return"\n\n ").concat(this.colorsteps.map((function(t){return'')})).join("\n"),"\n\n")}},{key:"toFillValue",value:function(t){return"url(#".concat(t,")")}}],[{key:"parse",value:function(t){var e=Object(y.convertMatches)(t),r={},a=[];return e.str.split("(")[1].split(")")[0].split(",").map((function(t){return t.trim()})).forEach((function(t,n){if(t.includes("@"))t=Object(y.reverseMatches)(t,e.matches),a.push.apply(a,x.a.parse(t));else{var i=t.split(" "),c=g()(i,7),o=c[0],s=c[1],l=c[2],u=c[3],h=c[4],f=c[5],d=c[6];r.cx=o,r.cy=s,r.r=l,r.fx=u,r.fy=h,r.fr=f,r.spreadMethod=d||"pad"}})),new n(C(C({},r),{},{colorsteps:a}))}}]),n}(O.a),$=n(62),L=n(75);function T(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 B(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return k()(p()(n.prototype),"getDefaultObject",this).call(this,B({type:"url",url:"",datauri:"",patternUnits:"userSpaceOnUse",patternWidth:"100%",patternHeight:"100%",imageX:"0%",imageY:"0%",imageWidth:"100%",imageHeight:"100%"},t))}},{key:"toCloneObject",value:function(){return B(B({},k()(p()(n.prototype),"toCloneObject",this).call(this)),this.attrs("url","datauri","patternUnits","patternWidth","patternHeight","imageX","imageY","imageWidth","imageHeight"))}},{key:"isUrl",value:function(){return!0}},{key:"toString",value:function(){var t=this.json,e=t.patternUnits,n=t.patternWidth,r=t.patternHeight,a=t.imageX,i=t.imageY,c=t.imageWidth,o=t.imageHeight,s=t.url,l=[e,n,r,a,i,c,o].join(",").trim();return"url(".concat(s,"#").concat(l,")")}},{key:"toSVGString",value:function(t){var e=this.json,n=e.patternUnits,r=e.patternWidth,a=e.patternHeight,i=e.imageX,c=e.imageY,o=e.imageWidth,s=e.imageHeight;return"\n \n \n \n ")}},{key:"toFillValue",value:function(t){return"url(#".concat(t,")")}}],[{key:"parse",value:function(t){var e=t.split("(")[1].split(")")[0].trim().split("#"),r=g()(e,2),a=r[0],i=r[1];if(!i)return new n({url:a});var c=i.split(","),o=g()(c,7);return new n({patternUnits:o[0],patternWidth:o[1],patternHeight:o[2],imageX:o[3],imageY:o[4],imageWidth:o[5],imageHeight:o[6],url:a})}},{key:"isImageFile",value:function(t){return E.includes(t)}}]),n}(L.a);function D(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 F(t){for(var e=1;e"}},{key:"refresh",value:function(){this.load()}},{key:Object(y.I)("$body"),value:function(){var t=this.state,e=t.min,n=t.max,r=t.step,i=t.label,c=t.removable,o=t.layout,s=t.compact,l=+this.state.value.value.toString();isNaN(l)&&(l=0);var u=o,h=(+l).toString(),f=this.state.units.split(",").map((function(t){var e=t;return"number"===e&&(e=""),"".concat(t,":").concat(e)})).join(",");return'\n
\n ').concat(i?'"):"","\n
\n \n
\n \n \n \n \n \n \n ")}},{key:"getValue",value:function(){return this.state.value.clone()}},{key:"setValue",value:function(t){this.setState({value:v.a.parse(t)})}},{key:Object(y.B)("$propertyNumber"),value:function(t){this.refs.$rangeArea.addClass("focused")}},{key:Object(y.f)("$propertyNumber"),value:function(t){this.refs.$rangeArea.removeClass("focused")}},{key:Object(y.n)("$remove"),value:function(t){this.updateData({value:""})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}},{key:"initValue",value:function(){""==this.state.value&&(this.state.value=new v.a(0,this.children.$unit.getValue()))}},{key:Object(y.E)("$propertyNumber"),value:function(t){var e=+this.getRef("$propertyNumber").value;this.getRef("$property").val(e),this.initValue(),this.updateData({value:new v.a(e,this.children.$unit.getValue())})}},{key:Object(y.Q)("$property")+Object(y.K)("moveRange")+Object(y.y)("moveRange"),value:function(){}},{key:"moveRange",value:function(){this.trigger("changeValue")}},{key:Object(y.X)("changeValue")+Object(y.Z)(100),value:function(){var t=+this.getRef("$property").value;this.refs.$propertyNumber.val(t),this.initValue(),this.updateData({value:new v.a(t,this.children.$unit.getValue())})}},{key:Object(y.X)("changeUnit"),value:function(t,e){this.initValue(),this.updateData({value:this.state.value.toUnit(e)})}}]),n}(n(15).a);Object(b.a)({RangeEditor:x})},function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(96),g=n(12);function b(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 k(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return u()(y()(n.prototype),"getDefaultObject",this).call(this,k({itemType:"layer",name:"New Layer",tagName:"div"},t))}},{key:"getDefaultTitle",value:function(){return"Layer"}},{key:"getIcon",value:function(){return g.a.rect}},{key:"toCloneObject",value:function(){return k(k({},u()(y()(n.prototype),"toCloneObject",this).call(this)),this.attrs("tagName"))}}],[{key:"getIcon",value:function(){return g.a.rect}}]),n}(m.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(13),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(5),u=n.n(l),h=n(6),f=n.n(h),d=n(0),p=n.n(d),v=n(1),y=n(9);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var g=function(t){u()(n,t);var e=m(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"initState",value:function(){var t=this.props["key-value-char"]||":",e=this.props.split||",",n=(this.props.options||"").split(e).map((function(t){return t.trim()})),r=this.props.value,a=this.props.tabindex;return{keyValueChar:t,splitChar:e,label:this.props.label||"",options:n,value:r,tabIndex:a}}},{key:"template",value:function(){var t=this.state,e=t.label,n=t.tabIndex?'tabIndex="1"':"";return"\n
\n ").concat(e?'"):"","\n \n
\n ")}},{key:"getValue",value:function(){return this.refs.$options.value}},{key:"setValue",value:function(t){this.state.value=t+"",this.refs.$options.val(this.state.value),this.refresh()}},{key:"refresh",value:function(){this.load()}},{key:Object(v.b)("$options"),value:function(){return{"data-count":this.state.options.length.toString()}}},{key:Object(v.I)("$options"),value:function(){var t=this;return this.state.options.map((function(e){var n=e;if((c=e).includes(t.state.keyValueChar)){var r=c.split(t.state.keyValueChar),i=a()(r,2),c=i[0];n=i[1]}""===n?n=t.props["none-value"]?t.props["none-value"]:"":"-"===n&&(n="----------",c="");var o=c===t.state.value?"selected":"";return"")}))}},{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.setState({options:t.split(this.state.splitChar).map((function(t){return t.trim()}))})}},{key:Object(v.g)("$options"),value:function(){this.updateData({value:this.refs.$options.value})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}}]),n}(n(15).a);Object(y.a)({SelectEditor:g})},function(t,e,n){var r=n(119),a=n(118),i=n(104),c=n(120);t.exports=function(t){return r(t)||a(t)||i(t)||c()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e),n.d(e,"RGBtoHSV",(function(){return i})),n.d(e,"RGBtoCMYK",(function(){return c})),n.d(e,"RGBtoHSL",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"gray",(function(){return l})),n.d(e,"RGBtoSimpleGray",(function(){return u})),n.d(e,"RGBtoGray",(function(){return h})),n.d(e,"brightness",(function(){return f})),n.d(e,"RGBtoYCrCb",(function(){return d})),n.d(e,"PivotRGB",(function(){return p})),n.d(e,"RGBtoXYZ",(function(){return v})),n.d(e,"RGBtoLAB",(function(){return y}));var r=n(14),a=n(91);function i(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.r,e=r.g,n=r.b}var a=t/255,i=e/255,c=n/255,o=Math.max(a,i,c),s=Math.min(a,i,c),l=o-s,u=0;0==l?u=0:o==a?u=(i-c)/l%6*60:o==i?u=60*((c-a)/l+2):o==c&&(u=60*((a-i)/l+4)),u<0&&(u=360+u);return{h:u,s:0==o?0:l/o,v:o}}function c(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.r,e=r.g,n=r.b}var a=t/255,i=e/255,c=n/255,o=1-Math.max(a,i,c),s=(1-a-o)/(1-o),l=(1-i-o)/(1-o),u=(1-c-o)/(1-o);return{c:s,m:l,y:u,k:o}}function o(t,e,n){if(1==arguments.length){var a=arguments[0];t=a.r,e=a.g,n=a.b}t/=255,e/=255,n/=255;var i,c,o=Math.max(t,e,n),s=Math.min(t,e,n),l=(o+s)/2;if(o==s)i=c=0;else{var u=o-s;switch(c=l>.5?u/(2-o-s):u/(o+s),o){case t:i=(e-n)/u+(e90?0:255)}function l(t){return{r:t,g:t,b:t}}function u(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.r,e=r.g,n=r.b}return l(Math.ceil((t+e+n)/3))}function h(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.r,e=r.g,n=r.b}return l(d(t,e,n).y)}function f(t,e,n){return Math.ceil(.2126*t+.7152*e+.0722*n)}function d(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.r,e=r.g,n=r.b}var a=f(t,e,n),i=.564*(n-a),c=.713*(t-a);return{y:a,cr:c,cb:i}}function p(t){return 100*(t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)}function v(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.r,e=r.g,n=r.b}var a=t/255,i=e/255,c=n/255,o=.4124*(a=p(a))+.3576*(i=p(i))+.1805*(c=p(c)),s=.2126*a+.7152*i+.0722*c,l=.0193*a+.1192*i+.9505*c;return{x:o,y:s,z:l}}function y(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.r,e=r.g,n=r.b}return Object(a.XYZtoLAB)(v(t,e,n))}},function(t,e,n){"use strict";var r=n(13),a=n.n(r),i=n(19),c=n(8),o=n(95),s=(n(33),n(2)),l=n.n(s),u=n(3),h=n.n(u),f=n(5),d=n.n(f),p=n(6),v=n.n(p),y=n(0),m=n.n(y),g=n(56);function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var k=function(t){d()(n,t);var e=b(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"render",value:function(t,e){var n=t.elementType,r=t.id,a=(t.name,t.itemType,n||"div");return" \n <".concat(a,' class="element-item artboard" data-id="').concat(r,'">\n ').concat(this.toDefString(t),"\n ").concat(t.layers.map((function(t){return e.render(t,e)})).join("\n\t"),"\n \n ")}}]),n}(g.a),x=n(39);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var w=function(t){d()(n,t);var e=O(n);function n(){return l()(this,n),e.apply(this,arguments)}return n}(x.a),j=n(7),z=n.n(j);function M(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 V(t){for(var e=1;e\n ').concat(this.toDefString(t),"\n ").concat(P.map((function(t){return"
")})).join(""),"\n ")}}]),n}(x.a),R=n(10),H=n.n(R);function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var L=function(t){d()(n,t);var e=$(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"update",value:function(t,e){var r=e.$("iframe");t.hasChangedField("url")&&r.attr("src",t.url||"about:blank"),t.hasChangedField("width","height")&&r.setAttr({width:t.width,height:t.height}),H()(m()(n.prototype),"update",this).call(this,t,e)}},{key:"render",value:function(t){var e=t.id,n=t.url,r=void 0===n?"about:blank":n,a=t.width,i=t.height;return"\n
\n ').concat(this.toDefString(t),'\n \n
')}}]),n}(x.a);function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var B=function(t){d()(n,t);var e=T(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"toNestedCSS",value:function(t){return[{selector:"img",cssText:"\n width: 100%;\n height: 100%;\n pointer-events: none;\n ".trim()}]}},{key:"getUrl",value:function(t){var e=t.src;return t.project.getImageValueById(e)||e}},{key:"render",value:function(t){var e=t.id;return"\n
\n ').concat(this.toDefString(t),"\n \n
")}},{key:"update",value:function(t,e){var r=e.$("img");r&&r.attr("src",this.getUrl(t)),H()(m()(n.prototype),"update",this).call(this,t,e)}}]),n}(x.a),A=n(16),E=n.n(A),I=(n(67),n(65));function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var F=function(t){d()(n,t);var e=D(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"toRootVariableCSS",value:function(t){var e={};return t.rootVariable.split(";").filter((function(t){return t.trim()})).forEach((function(t){var n=t.split(":"),r=a()(n,2),i=r[0],c=r[1];e["--".concat(i)]=c})),e}},{key:"toCSS",value:function(t){return Object.assign.apply(Object,[{}].concat(E()(this.toRootVariableCSS(t))))}},{key:"toStyle",value:function(t){var e=t.toKeyframeString(),n=this.toRootVariableCSS(t);return"\n \n ")}},{key:"render",value:function(t,e){return t.layers.map((function(t){return e.render(t)})).join("")}},{key:"renderSVGFilter",value:function(t){return t.svgfilters.map((function(t){var e=t.filters.map((function(t){return I.a.parse(t)}));return"").concat(e.join("\n"),"")})).join("\n\n")}},{key:"renderSVG",value:function(t,e){var n=this.renderSVGFilter(t);return'\n\n SVG Properties\n '.concat(n,"\n\n")}}]),n}(g.a);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var X=function(t){d()(n,t);var e=_(n);function n(){return l()(this,n),e.apply(this,arguments)}return n}(x.a),G=n(30),N=n(41);function Y(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 U(t){for(var e=1;e".concat(this.toDefInnerString(t),""));else{var r=this.toDefString(t).trim();e.prepend(i.a.createByHTML(r))}}},{key:"toDefInnerString",value:function(t){return"\n ".concat(this.toFillSVG(t),"\n ").concat(this.toStrokeSVG(t),"\n ")}},{key:"toDefString",value:function(t){var e=this.toDefInnerString(t).trim();return"\n \n ".concat(e,"\n \n ")}},{key:"fillId",value:function(t){return this.getInnerId(t,"fill")}},{key:"strokeId",value:function(t){return this.getInnerId(t,"stroke")}},{key:"toFillSVG",value:function(t){return N.a.parseImage(t.fill||"transparent").toSVGString(this.fillId(t))}},{key:"toStrokeSVG",value:function(t){return N.a.parseImage(t.stroke||"black").toSVGString(this.strokeId(t))}},{key:"toFillValue",value:function(t){return N.a.parseImage(t.fill||"transparent").toFillValue(this.fillId(t))}},{key:"toFillOpacityValue",value:function(t){return G.a.parse(t.fill||"transparent").a}},{key:"toStrokeValue",value:function(t){return N.a.parseImage(t.stroke||"black").toFillValue(this.strokeId(t))}},{key:"toFilterValue",value:function(t){return t.svgfilter?"url(#".concat(t.svgfilter,")"):""}},{key:"toLayoutCSS",value:function(t){return{}}},{key:"toDefaultCSS",value:function(t){return U(U({},H()(m()(n.prototype),"toDefaultCSS",this).call(this,t)),this.toKeyListCSS(t,["stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","fill-opacity","fill-rule","text-anchor"]))}},{key:"toSVGAttribute",value:function(t){return this.toDefaultCSS(t)}}]),n}(x.a);function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var Z=function(t){d()(n,t);var e=W(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"update",value:function(t,e){if(e){var n=e.$("path");n&&(n.setAttrNS({d:t.d,"fill-rule":t["fill-rule"]||"nonezero",filter:this.toFilterValue(t),fill:this.toFillValue(t),stroke:this.toStrokeValue(t)}),t.totalLength=n.totalLength),this.updateDefString(t,e)}}},{key:"render",value:function(t){return'\n \n ').concat(this.toDefString(t),'\n \n \n ')}}]),n}(q);function Q(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var J=function(t){d()(n,t);var e=Q(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"update",value:function(t,e){var n=e.$("path.svg-path-item");n&&n.attr("d",t.d);var r=e.$("path.guide");r&&r.attr("d",t.d);var a=e.$("textPath");a&&(a.text(t.text),a.setAttrNS({filter:this.toFilterValue(t),fill:this.toFillValue(t),stroke:this.toStrokeValue(t),textLength:t.textLength,lengthAdjust:t.lengthAdjust,startOffset:t.startOffset})),this.updateDefString(t,e),t.totalLength=n.totalLength}},{key:"toDefInnerString",value:function(t){return"\n ".concat(this.toPathSVG(t),"\n ").concat(this.toFillSVG(t),"\n ").concat(this.toStrokeSVG(t),"\n ")}},{key:"toPathId",value:function(t){return this.getInnerId(t,"path")}},{key:"toPathSVG",value:function(t){return'\n \n ')}},{key:"render",value:function(t){var e=t.id,n=t.textLength,r=t.lengthAdjust,a=t.startOffset,i="#".concat(this.toPathId(t));return"\n \n ').concat(this.toDefString(t),'\n \n ').concat(t.text,'\n \n \n \n \n ')}}]),n}(q);function tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var et=function(t){d()(n,t);var e=tt(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"update",value:function(t,e){var n=e.$("text");n&&(n.text(t.text),n.setAttrNS({filter:this.toFilterValue(t),fill:this.toFillValue(t),stroke:this.toStrokeValue(t),textLength:t.textLength,lengthAdjust:t.lengthAdjust})),this.updateDefString(t,e)}},{key:"shapeInsideId",value:function(t){return this.getInnerId(t,"shape-inside")}},{key:"render",value:function(t){var e=t.id,n=t.textLength,r=t.lengthAdjust;return"\n \n ').concat(this.toDefString(t),'\n ').concat(t.text,"\n ")}}]),n}(q),nt=n(97);function rt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var at=function(t){d()(n,t);var e=rt(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"update",value:function(t,e){if(!1===t.hasChangedField("x","y","width","height")){var r=this.compile(t),a=e.$(".inner-html");a&&a.updateDiff(r)}H()(m()(n.prototype),"update",this).call(this,t,e)}},{key:"compile",value:function(t){return nt.a.compile("dom",t.template,t.params)}},{key:"render",value:function(t){var e=t.id,n=this.compile(t);return"\n
\n ').concat(this.toDefString(t),'\n \n
\n ').concat(n,"\n
\n
")}}]),n}(x.a);function it(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var ct=function(t){d()(n,t);var e=it(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"toNestedCSS",value:function(t){return[{selector:"> *",cssText:"\n pointer-events: none;\n "}]}},{key:"toCSS",value:function(t){var e=H()(m()(n.prototype),"toCSS",this).call(this,t);return e.margin=e.margin||"0px",e}},{key:"render",value:function(t){var e=t.id,n=t.content;return'

').concat(n,"

")}},{key:"update",value:function(t,e){var n=t.content;e.updateDiff(n)}}]),n}(x.a);function ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m()(t);if(e){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var st=function(t){d()(n,t);var e=ot(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"toNestedCSS",value:function(t){return[{selector:"video",cssText:"\n width: 100%;\n height: 100%;\n pointer-events: none;\n ".trim()}]}},{key:"getUrl",value:function(t){var e=t.src;return t.project.getVideoValueById(e)}},{key:"render",value:function(t){var e=t.id,n=t.controls,r=t.muted,a=t.poster,i=t.loop,c=t.crossorigin,o=t.autoplay;return"\n
\n ').concat(this.toDefString(t),'\n \n
")}},{key:"update",value:function(t,e){var r=t.currentTime,a=t.playbackRate,i=t.volume,c=e.$("video");c&&c.setProp({currentTime:r,playbackRate:a,volume:i}),H()(m()(n.prototype),"update",this).call(this,t,e)}}]),n}(x.a);function lt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.split(";").filter((function(t){return t.trim()})).map((function(t){var n=(t=t.trim()).split(":"),r=a()(n,2),i=r[0],c=r[1];return"".concat(e,"").concat(i,":").concat(c,";\n")})).join("").trim()}var ut={project:new F,artboard:new k,rect:new X,circle:new w,image:new B,text:new ct,video:new st,"svg-path":new Z,"svg-text":new et,"svg-textpath":new J,cube:new C,iframe:new L,template:new at};e.a={getDefaultRendererInstance:function(){return ut.rect},getRendererInstance:function(t){return ut[t.itemType]||o.a.getRendererInstance("html",t.itemType)||this.getDefaultRendererInstance()||t},render:function(t,e){if(t){var n=this.getRendererInstance(t);return n?n.render(t,e||this):void 0}},renderSVG:function(t,e){var n=this.getRendererInstance(t);return Object(c.isFunction)(n.renderSVG)?n.renderSVG(t,e||this):this.getDefaultRendererInstance().renderSVG(t,e||this)},to:function(t,e){var n=this.getRendererInstance(e);if(Object(c.isFunction)(n[t]))return n[t].call(n,e);var r=this.getDefaultRendererInstance();return Object(c.isFunction)(r[t])?r[t].call(r,e):void 0},toCSS:function(t){return this.to("toCSS",t)},toNestedCSS:function(t){return this.to("toNestedCSS",t)},toTransformCSS:function(t){return this.to("toTransformCSS",t)},toGridLayoutCSS:function(t){return this.to("toGridLayoutCSS",t)},toLayoutItemCSS:function(t){return this.to("toLayoutItemCSS",t)},toStyle:function(t,e){var n=this.getRendererInstance(t);return Object(c.isFunction)(n.toStyle)?n.toStyle(t,e||this):this.getDefaultRendererInstance().toStyle(t,e||this)},update:function(t,e){var n=this.getRendererInstance(t);return Object(c.isFunction)(n.update)?n.update(t,e):this.getDefaultRendererInstance().update(t,e)},codeview:function(t){if(!t)return"";var e=t.top,n=lt(e?e.toKeyframeString():"").replace(/;/gi,";\n").trim(),r=e?Object(c.CSS_TO_STRING)(e.toRootVariableCSS()):"",a=this.renderSVG(e);a=a.replace(/\/g,">");var i=t,o=lt(i?Object(c.TAG_TO_STRING)(Object(c.CSS_TO_STRING)(this.toCSS(i))):""),s=i?this.toNestedCSS(i).map((function(t){var e=t.cssText?t.cssText:Object(c.CSS_TO_STRING)(t.css);return"".concat(t.selector," { \n ").concat(lt(Object(c.TAG_TO_STRING)(e),"  "),"\n }")})):[],l=i?i.selectors:[];return"\n
\n \n ".concat(o&&"
".concat(o,"
"),"\n \n ").concat(s.map((function(t){return"
".concat(t,"
")})).join(""),"\n \n ").concat((l||[]).length?"
\n ".concat(l.map((function(t){return"
").concat(t.toPropertyString(),"
")})).join(""),"\n \n
"):"","\n \n ").concat(n&&"
".concat(n,"
"),"\n\n ").concat(r?"
\n \n
".concat(r,"
\n
"):"","\n \n
\n ")}}},function(t,e,n){"use strict";n.d(e,"e",(function(){return M})),n.d(e,"a",(function(){return V})),n.d(e,"l",(function(){return S})),n.d(e,"f",(function(){return P})),n.d(e,"g",(function(){return C})),n.d(e,"h",(function(){return R})),n.d(e,"b",(function(){return H})),n.d(e,"c",(function(){return $})),n.d(e,"i",(function(){return L})),n.d(e,"j",(function(){return T})),n.d(e,"k",(function(){return B})),n.d(e,"d",(function(){return A}));var r=n(13),a=n.n(r),i=n(7),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(10),f=n.n(h),d=n(5),p=n.n(d),v=n(6),y=n.n(v),m=n(0),g=n.n(m),b=n(4),k=n(31),x=n(20);function O(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){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return f()(g()(n.prototype),"getDefaultObject",this).call(this,w({itemType:"filter"},t))}},{key:"toString",value:function(){return"".concat(this.json.type,"(").concat(this.json.value||"",")")}}],[{key:"parse",value:function(t){var e=E[t.type];return e?new e(t):new S({value:t.type})}},{key:"parseStyle",value:function(t){var e=[];if(!t)return e;var r=Object(x.convertMatches)(t);return(r.str.match(z)||[]).forEach((function(t,i){var c=t.split("("),o=a()(c,2),s=o[0],l=o[1];if(l=l.split(")")[0],"drop-shadow"===s){var u=l.split(" "),h=u.filter((function(t){return t.includes("@")})).map((function(t){return r.matches[+t.replace("@","")].color})),f=u.filter((function(t){return!t.includes("@")}));e[i]=n.parse({type:s,offsetX:b.a.parse(f[0]),offsetY:b.a.parse(f[1]),blurRadius:b.a.parse(f[2]),color:h[0]||"rgba(0, 0, 0, 1)"})}else e[i]=n.parse({type:s,value:b.a.parse(l)})})),e}},{key:"join",value:function(t){return t.map((function(t){return n.parse(t)})).join(" ")}}]),n}(k.a),V=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"blur",value:n.spec.defaultValue})}},{key:"toCloneObject",value:function(){return w(w({},f()(g()(n.prototype),"toCloneObject",this).call(this)),this.attrs("value"))}}]),n}(M);V.spec={inputType:"range",min:0,max:100,step:1,unit:"px",units:["px","em"],defaultValue:b.a.z()};var S=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"svg",value:n.spec.defaultValue})}},{key:"toCloneObject",value:function(){return w(w({},f()(g()(n.prototype),"toCloneObject",this).call(this)),this.attrs("value"))}},{key:"toString",value:function(){return"url(#".concat(this.json.value||"",")")}}]),n}(M);S.spec={inputType:"select",defaultValue:""};var P=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"grayscale",value:n.spec.defaultValue})}},{key:"toCloneObject",value:function(){return w(w({},f()(g()(n.prototype),"toCloneObject",this).call(this)),this.attrs("value"))}}]),n}(M);P.spec={inputType:"range",min:0,max:100,step:1,unit:"%",units:["%"],defaultValue:b.a.percent(0)};var C=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"hue-rotate",value:n.spec.defaultValue})}}]),n}(M);C.spec={inputType:"range",min:0,max:360,step:1,unit:"deg",units:["deg"],defaultValue:b.a.deg(0)};var R=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"invert",value:n.spec.defaultValue})}}]),n}(M);R.spec={inputType:"range",min:0,max:100,step:1,unit:"%",units:["%"],defaultValue:b.a.percent(0)};var H=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"brightness",value:n.spec.defaultValue})}}]),n}(M);H.spec={inputType:"range",min:0,max:200,step:1,unit:"%",units:["%"],defaultValue:b.a.percent(100)};var $=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"contrast",value:n.spec.defaultValue})}}]),n}(M);$.spec={inputType:"range",min:0,max:200,step:1,unit:"%",units:["%"],defaultValue:b.a.percent(100)};var L=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"opacity",value:n.spec.defaultValue})}}]),n}(M);L.spec={inputType:"range",min:0,max:100,step:1,unit:"%",units:["%"],defaultValue:b.a.percent(100)};var T=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"saturate",value:n.spec.defaultValue})}}]),n}(M);T.spec={inputType:"range",min:0,max:100,step:1,unit:"%",units:["%"],defaultValue:b.a.percent(100)};var B=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"sepia",value:n.spec.defaultValue})}}]),n}(M);B.spec={inputType:"range",min:0,max:100,step:1,unit:"%",units:["%"],defaultValue:b.a.percent(0)};var A=function(t){p()(n,t);var e=j(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"drop-shadow",multi:!0,offsetX:n.spec.offsetX.defaultValue,offsetY:n.spec.offsetY.defaultValue,blurRadius:n.spec.blurRadius.defaultValue,color:n.spec.color.defaultValue})}},{key:"toString",value:function(){var t=this.json;return"drop-shadow(".concat(t.offsetX," ").concat(t.offsetY," ").concat(t.blurRadius," ").concat(t.color,")")}}]),n}(M);A.spec={offsetX:{title:"Offset X",inputType:"range",min:-100,max:100,step:1,defaultValue:b.a.z(),unit:"px",units:["px","em"]},offsetY:{title:"Offset Y",inputType:"range",min:-100,max:100,step:1,defaultValue:b.a.z(),unit:"px",units:["px","em"]},blurRadius:{title:"Blur Radius",inputType:"range",min:0,max:100,step:1,defaultValue:b.a.z(),unit:"px",units:["px","em","%"]},color:{title:"Color",inputType:"color",defaultValue:"rgba(0, 0, 0, 1)",unit:"color"}};var E={blur:V,grayscale:P,"hue-rotate":C,invert:R,brightness:H,contrast:$,opacity:L,saturate:T,sepia:B,"drop-shadow":A,svg:S}},function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var r=n(13),a=n.n(r),i=n(7),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(10),f=n.n(h),d=n(5),p=n.n(d),v=n(6),y=n.n(v),m=n(0),g=n.n(m),b=n(4),k=n(31),x=n(20),O=n(35),w=n(8),j=new Map,z=function(){function t(){s()(this,t)}return u()(t,null,[{key:"has",value:function(t){return j.has(t)}},{key:"get",value:function(t){return j.get(t)}},{key:"set",value:function(t,e){j.size>1e3&&j.clear(),j.set(t,e)}}]),t}();function M(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 V(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return f()(g()(n.prototype),"getDefaultObject",this).call(this,V({itemType:"pattern"},t))}},{key:"toString",value:function(){return"".concat(this.json.type,"(").concat(this.json.value||"",")")}}],[{key:"parse",value:function(t){var e=I[t.type];if(e)return new e(t)}},{key:"parseStyle",value:function(t){var e=[];if(!t)return e;if(z.has(t))return z.get(t);var r=Object(x.convertMatches)(t);return(r.str.match(P)||[]).forEach((function(t,i){var c=t.split("("),o=a()(c,2),s=o[0],l=o[1],u=(l=l.split(")")[0]).split(",").map((function(t){return t.trim()})),h=a()(u,6),f=h[0],d=h[1],p=h[2],v=h[3],y=h[4],m=h[5],g=f.split(" "),k=a()(g,2),O=k[0],w=k[1],j=d.split(" "),z=a()(j,2),M=z[0],V=z[1],S=(m||"").split(" "),P=a()(S,2),C=P[0],R=P[1];e[i]=n.parse({type:s,x:b.a.parse(M),y:b.a.parse(V),width:b.a.parse(O),height:b.a.parse(w),foreColor:Object(x.reverseMatches)(p,r.matches),backColor:Object(x.reverseMatches)(v,r.matches),blendMode:y||"normal",lineWidth:b.a.parse(C||"1px"),lineHeight:b.a.parse(R||"1px")})})),z.set(t,e),e}},{key:"join",value:function(t){return t.map((function(t){return n.parse(t)})).join(" ")}},{key:"toCSS",value:function(t){var e=[];return n.parseStyle(t).forEach((function(t){e.push.apply(e,O.a.parseStyle(Object(w.STRING_TO_CSS)(t.toCSS())))})),O.a.joinCSS(e)}}]),n}(k.a),R=function(t){p()(n,t);var e=S(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"base",x:b.a.z(),y:b.a.z(),width:b.a.px(20),height:b.a.px(20),lineWidth:b.a.px(1),lineHeight:b.a.px(1),foreColor:"black",backColor:"white",blendMode:"normal"})}},{key:"convert",value:function(t){return(t=f()(g()(n.prototype),"convert",this).call(this,t)).width=b.a.parse(t.width),t.height=b.a.parse(t.height),t.lineWidth=b.a.parse(t.lineWidth),t.lineHeight=b.a.parse(t.lineHeight),t.x=b.a.parse(t.x),t.y=b.a.parse(t.y),t}},{key:"toString",value:function(){var t=this.json,e=t.type,n=t.width,r=t.height,a=t.x,i=t.y,c=t.foreColor,o=t.backColor,s=t.blendMode,l=t.lineWidth,u=t.lineHeight;return"".concat(e,"(").concat(n," ").concat(r,", ").concat(a," ").concat(i,", ").concat(c,", ").concat(o,", ").concat(s,", ").concat(l," ").concat(u,")")}}]),n}(C),H=function(t){p()(n,t);var e=S(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"check"})}},{key:"toCSS",value:function(){var t=this.json,e=t.width,n=t.height,r=t.x,a=t.y,i=t.backColor,c=t.foreColor,o=t.blendMode;return i=i||"transparent","\n background-image: repeating-linear-gradient(45deg, ".concat(c=c||"black"," 25%, ").concat(i," 25%, ").concat(i," 75%, ").concat(c," 75%, ").concat(c," 100%),repeating-linear-gradient(45deg, ").concat(c," 25%, ").concat(i," 25%, ").concat(i," 75%, ").concat(c," 75%, ").concat(c," 100%);\n background-position: 0px 0px, ").concat(r," ").concat(a,";\n background-size: ").concat(e," ").concat(n,", ").concat(e," ").concat(n,";\n background-blend-mode: ").concat(o,", ").concat(o,";\n ")}}]),n}(R),$=function(t){p()(n,t);var e=S(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"grid"})}},{key:"toCSS",value:function(){var t=this.json,e=t.width,n=t.height,r=t.lineWidth,a=t.lineHeight,i=t.backColor,c=t.foreColor,o=t.blendMode;return i=i||"transparent","\n background-image: linear-gradient(".concat(c=c||"black"," ").concat(a,", ").concat(i," ").concat(a,"),linear-gradient(to right, ").concat(c," ").concat(r,", ").concat(i," ").concat(r,");\n background-size: ").concat(e.value/2,"px ").concat(n.value/2,"px, ").concat(e.value/2,"px ").concat(n.value/2,"px; \n background-blend-mode: ").concat(o,", ").concat(o,"; \n ")}}]),n}(R),L=function(t){p()(n,t);var e=S(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"dot"})}},{key:"toCSS",value:function(){var t=this.json,e=t.width,n=t.height,r=t.lineWidth,a=(t.lineHeight,t.backColor),i=t.foreColor,c=t.blendMode;return a=a||"transparent","\n background-image: radial-gradient(".concat(i=i||"black"," ").concat(r,", ").concat(a," ").concat(r,");\n background-size: ").concat(e.value/2,"px ").concat(n.value/2,"px; \n background-blend-mode: ").concat(c,"; \n ")}}]),n}(R),T=function(t){p()(n,t);var e=S(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"cross-dot"})}},{key:"toCSS",value:function(){var t=this.json,e=t.width,n=t.height,r=t.x,a=t.y,i=t.lineWidth,c=(t.lineHeight,t.backColor),o=t.foreColor,s=t.blendMode;return c=c||"transparent","\n background-image: radial-gradient(".concat(o=o||"black"," ").concat(i,", ").concat(c," ").concat(i,"),radial-gradient(").concat(o," ").concat(i,", ").concat(c," ").concat(i,");\n background-size: ").concat(e," ").concat(n,",").concat(e," ").concat(n,";\n background-position: 0px 0px, ").concat(r," ").concat(a,"; \n background-blend-mode: multiply, ").concat(s,";\n ")}}]),n}(R),B=function(t){p()(n,t);var e=S(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"diagonal-line"})}},{key:"toCSS",value:function(){var t=this.json,e=t.width,n=t.height,r=t.x,a=t.lineWidth,i=t.backColor,c=t.foreColor,o=t.blendMode;return i=i||"transparent",c=c||"black","\n background-image: repeating-linear-gradient(".concat(r,", ").concat(c," 0, ").concat(c," ").concat(a,", ").concat(i," 0, ").concat(i," 50%);\n background-size: ").concat(e," ").concat(n,"; \n background-blend-mode: ").concat(o,";\n ")}}]),n}(R),A=function(t){p()(n,t);var e=S(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"vertical-line"})}},{key:"toCSS",value:function(){var t=this.json,e=t.width,n=t.height,r=t.x,a=t.y,i=t.lineWidth,c=t.backColor,o=t.foreColor,s=t.blendMode;return c=c||"transparent","\n background-image: repeating-linear-gradient(to right, ".concat(o=o||"black"," 0px, ").concat(o," ").concat(i,", ").concat(c," ").concat(i,", ").concat(c," 100%);\n background-size: ").concat(e," ").concat(n,"; \n background-position: ").concat(r," ").concat(a,"; \n background-blend-mode: ").concat(s,";\n ")}}]),n}(R),E=function(t){p()(n,t);var e=S(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){return f()(g()(n.prototype),"getDefaultObject",this).call(this,{type:"horizontal-line"})}},{key:"toCSS",value:function(){var t=this.json,e=t.width,n=t.height,r=t.x,a=t.y,i=t.lineWidth,c=t.backColor,o=t.foreColor,s=t.blendMode;return c=c||"transparent","\n background-image: repeating-linear-gradient(0deg, ".concat(o=o||"black"," 0px, ").concat(o," ").concat(i,", ").concat(c," ").concat(i,", ").concat(c," 100%); \n background-position: ").concat(r," ").concat(a,";\n background-size: ").concat(e," ").concat(n,"; \n background-blend-mode: ").concat(s,";\n ")}}]),n}(R),I={check:H,grid:$,dot:L,"cross-dot":T,"diagonal-line":B,"vertical-line":A,"horizontal-line":E}},function(t,e,n){"use strict";n.d(e,"a",(function(){return V}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(38),g=n(8),b=n(20),k=n(4),x=n(23);function O(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){for(var e=1;e360?e%360:e,"deg")),"".concat(this.json.type,"(").concat(e,", ").concat(t,")")}}],[{key:"toLinearGradient",value:function(t){return 0===t.length?"none":new n({angle:"to right",colorsteps:t})+""}},{key:"parse",value:function(t){var e=Object(b.convertMatches)(t),r=0,a=[];return e.str.split("(")[1].split(")")[0].split(",").map((function(t){return t.trim()})).forEach((function(t,n){t.includes("@")?(t=Object(b.reverseMatches)(t,e.matches),a.push.apply(a,x.a.parse(t))):r=Object(g.isUndefined)(M[t])?k.a.parse(t):k.a.deg(+M[t])})),new n({angle:r.value,colorsteps:a})}}]),n}(m.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return z}));var r=n(16),a=n.n(r),i=n(7),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(10),f=n.n(h),d=n(5),p=n.n(d),v=n(6),y=n.n(v),m=n(0),g=n.n(m),b=n(43),k=n(32),x=n(12);function O(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){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return h()(m()(n.prototype),"getDefaultObject",this).call(this,M({type:"radial-gradient",radialType:"ellipse",radialPosition:[x.b.CENTER,x.b.CENTER]},t))}},{key:"toCloneObject",value:function(){return M(M({},h()(m()(n.prototype),"toCloneObject",this).call(this)),this.attrs("radialType","radialPosition"))}},{key:"isRadial",value:function(){return!0}},{key:"toString",value:function(){if(0===this.colorsteps.length)return"";var t,e=this.getColorString(),n=this.json,r=n.radialType,a=n.radialPosition||["center","center"];return t=(a=S[a]?a:a.join(" "))?"".concat(r," at ").concat(a):r,"".concat(n.type||"radial-gradient","(").concat(t,", ").concat(e,")")}}],[{key:"parse",value:function(t){var e=Object(w.convertMatches)(t),r="ellipse",a=[x.b.CENTER,x.b.CENTER],c=[];return e.str.split("(")[1].split(")")[0].split(",").map((function(t){return t.trim()})).forEach((function(t,n){if(t.includes("@"))t=Object(w.reverseMatches)(t,e.matches),c.push.apply(c,j.a.parse(t));else{if(t.includes("at")){var o=t.split("at").map((function(t){return t.trim()})),s=i()(o,2);r=s[0],a=s[1]}else r=t;if(Object(O.isString)(a)){var l=a.split(" ");if(1===l.length){var u=x.a.parse(l[0]);a=u.isString()?[u.value,u.value]:[u.clone(),u.clone()]}else 2===l.length&&(a=l.map((function(t){var e=x.a.parse(t);return e.isString()?e.value:e.clone()})))}}})),new n({radialType:r,radialPosition:a,colorsteps:c})}}]),n}(k.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var r,a=n(13),i=n.n(a),c=n(2),o=n.n(c),s=n(3),l=n.n(s),u=n(10),h=n.n(u),f=n(5),d=n.n(f),p=n(6),v=n.n(p),y=n(0),m=n.n(y),g=n(7),b=n.n(g),k=n(38),x=n(23),O=n(4),w=n(8),j=n(20);function z(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 M(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return h()(m()(n.prototype),"getDefaultObject",this).call(this,M({type:"conic-gradient",angle:0,radialPosition:[O.b.CENTER,O.b.CENTER]},t))}},{key:"toCloneObject",value:function(){return M(M({},h()(m()(n.prototype),"toCloneObject",this).call(this)),{},{angle:this.json.angle,radialPosition:Object(w.clone)(this.json.radialPosition)})}},{key:"isConic",value:function(){return!0}},{key:"hasAngle",value:function(){return!0}},{key:"getColorString",value:function(){if(0===this.colorsteps.length)return"";var t=this.colorsteps;return t?(t.sort((function(t,e){return t.percent==e.percent?0:t.percent>e.percent?1:-1})),t.map((function(e,n){return e.prevColorStep=e.cut&&n>0?t[n-1]:null,e})).map((function(t){var e=Math.floor(3.6*t.percent),n="";if(t.cut&&t.prevColorStep){var r=Math.floor(3.6*t.prevColorStep.percent);n="".concat(r,"deg")}return"".concat(t.color," ").concat(n," ").concat(e,"deg")})).join(",")):""}},{key:"toString",value:function(){var t=this.getColorString(),e=[],n=this.json,r=n.angle,a=n.radialPosition||O.b.CENTER;a=S[a]?a:a.join(" "),Object(w.isNotUndefined)(r)&&(r=+(P[r]||r),e.push("from ".concat(r,"deg"))),a&&e.push("at ".concat(a));var i=e.length?e.join(" ")+",":"";return"".concat(n.type,"(").concat(i," ").concat(t,")")}}],[{key:"parse",value:function(t){var e=Object(j.convertMatches)(t),r="0deg",a=[O.b.CENTER,O.b.CENTER],c=[];return e.str.split("(")[1].split(")")[0].split(",").map((function(t){return t.trim()})).forEach((function(t,n){if(t.includes("@"))t=t.split(" ").map((function(t){return t.trim()})).map((function(t){return t.includes("deg")?O.a.parse(t).toPercent():t})).join(" "),t=Object(j.reverseMatches)(t,e.matches),c.push.apply(c,x.a.parse(t));else{if(t.includes("at")){var o=t.split("at").map((function(t){return t.trim()})),s=i()(o,2);r=s[0],a=s[1]}else r=t;if(Object(w.isString)(a)){var l=a.split(" ");if(1===l.length){var u=O.a.parse(l[0]);a=u.isString()?[u.value,u.value]:[u.clone(),u.clone()]}else 2===l.length&&(a=l.map((function(t){var e=O.a.parse(t);return e.isString()?e.value:e})))}Object(w.isString)(r)&&r.includes("from")&&(r=r.split("from")[1],r=Object(w.isUndefined)(P[r])?O.a.parse(r):O.a.deg(+P[r]))}})),new n({angle:r.value,radialPosition:a,colorsteps:c})}}]),n}(k.a)},function(t,e,n){"use strict";n.r(e),n.d(e,"randomNumber",(function(){return a})),n.d(e,"randomByCount",(function(){return i})),n.d(e,"random",(function(){return c})),n.d(e,"randomRGBA",(function(){return o}));var r=n(58);function a(t,e){return Math.floor(Math.random()*(e-t+1))+t}function i(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=[],n=0;n1e3&&u.clear(),u.set(t,e)}}]),t}(),f=function(){function t(){c()(this,t)}return s()(t,null,[{key:"parseStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50% 50% 0%";if(h.has(t))return h.get(t);var e=t.trim().split(" ").filter((function(t){return t.trim()})),n=null;return n=1===e.length?[e[0],e[0]].map((function(t){return l.a.parse(t)})):e.map((function(t){return l.a.parse(t)})),h.set(t,n),n}},{key:"scale",value:function(e,n,r){var a=t.parseStyle(e);return[a[0].toPx(n).value,a[1].toPx(r).value,a[2].value]}},{key:"toPx",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=t.parseStyle(e),o=a()(c,3),s=o[0],l=o[1],u=o[2];return s=s.toPx(n),l=l.toPx(r),u=u.toPx(i),"".concat(s," ").concat(l," ").concat(u)}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var r=n(13),a=n.n(r),i=n(7),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(19),g=n(8),b=(n(33),n(35)),k=n(37),x=n(49),O=n(26);function w(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 j(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[],n={};return e.filter((function(e){return Object(g.isNotUndefined)(t[e])})).forEach((function(e){n[e]=t[e]})),n}},{key:"toDefaultCSS",value:function(t){var e={};return t.isAbsolute&&(t.x&&(e.left=t.x),t.y&&(e.top=t.y)),e.visibility=t.visible?"visible":"hidden",j(j({},e),this.toKeyListCSS(t,["position","width","height","overflow","z-index","box-sizing","background-color","color","opacity","mix-blend-mode","transform-origin","transform-style","perspective","perspective-origin","font-size","font-stretch","line-height","font-weight","font-family","font-style","text-align","text-transform","text-decoration","letter-spacing","word-spacing","text-indent","border-radius","filter","backdrop-filter","box-shadow","text-shadow","offset-path","animation","transition"]))}},{key:"toVariableCSS",value:function(t){var e={};return t.variable.split(";").filter((function(t){return t.trim()})).forEach((function(t){var n=t.split(":"),r=a()(n,2),i=r[0],c=r[1];e["--".concat(i)]=c})),e}},{key:"toRootVariableCSS",value:function(t){var e={};return t.rootVariable.split(";").filter((function(t){return t.trim()})).forEach((function(t){var n=t.split(":"),r=a()(n,2),i=r[0],c=r[1];e["--".concat(i)]=c})),e}},{key:"toRootVariableString",value:function(t){return Object(g.CSS_TO_STRING)(this.toRootVariableCSS(t))}},{key:"toWebkitCSS",value:function(t){var e={};return V.forEach((function(n){e["-webkit-".concat(n)]=t[n]})),e}},{key:"toTextClipCSS",value:function(t){var e={};return"text"===t["text-clip"]&&(e["-webkit-background-clip"]="text",e["-webkit-text-fill-color"]="transparent",e.color="transparent"),e}},{key:"toTransformCSS",value:function(t){if("0deg"===t.rotate&&""===t.transform)return M;if(0===t.rotate.value&&""===t.transform)return M;var e=[t.transform,t.rotate].join(":::");e!=this._transformCacheKey&&(this._transformCache=O.a.rotate(t.transform,t.rotate),this._transformCacheKey=e);var n={transform:this._transformCache};return"rotate(0deg)"===n.transform&&delete n.transform,n}},{key:"toDefInnerString",value:function(t){return"\n ".concat(this.toClipPath(t),"\n ").trim()}},{key:"toClipPath",value:function(t){if(""===t["clip-path"])return"";var e=k.a.parseStyle(t["clip-path"]),n=e.value;switch(e.type){case"path":return'');case"svg":return'').concat(n,"")}return""}},{key:"toClipPathCSS",value:function(t){var e=t["clip-path"];if(!1===Boolean(e))return null;switch(k.a.parseStyle(e).type){case"path":case"svg":e="url(#".concat(this.clipPathId(t),")")}return{"clip-path":e}}},{key:"innerSVGId",value:function(t){return t.id+"inner-svg"}},{key:"clipPathId",value:function(t){return t.id+"clip-path"}},{key:"toDefString",value:function(t){var e=this.toDefInnerString(t);return e?"\n \n \n ').concat(e,"\n \n \n "):""}},{key:"toSelectorString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.selectors.map((function(t){return t.toString(e)})).join("\n\n")}},{key:"generateView",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="\n ".concat(e," { /* ").concat(t.itemType," */\n ").concat(Object(g.CSS_TO_STRING)(this.toCSS(t),"\n "),"; \n ").concat(n,"\n }\n ").concat(this.toNestedCSS(t).map((function(t){return"".concat(e," ").concat(t.selector," { \n ").concat(t.cssText?t.cssText:Object(g.CSS_TO_STRING)(t.css||{},"\n\t\t"),"; \n }")})).join("\n"),"\n ").concat(this.toSelectorString(t,e),"\n ");return r}},{key:"toCSS",value:function(t){return Object.assign({},this.toVariableCSS(t),this.toDefaultCSS(t),this.toClipPathCSS(t),this.toWebkitCSS(t),this.toTextClipCSS(t),this.toBoxModelCSS(t),this.toBorderCSS(t),this.toBackgroundImageCSS(t),this.toLayoutCSS(t),this.toTransformCSS(t),this.toLayoutItemCSS(t))}},{key:"toStyle",value:function(t,e){var n=this.generateView(t,".element-item[data-id='".concat(t.id,"']"));return"\n \n ")+t.layers.map((function(t){return e.toStyle(t,e)})).join("")}},{key:"render",value:function(t,e){var n=t.elementType,r=t.id,a=t.name,i=t.itemType,o=n||"div";return" \n <".concat(o,' class="').concat(Object(g.OBJECT_TO_CLASS)(c()({"element-item":!0},i,!0)),'" ').concat(Object(g.OBJECT_TO_PROPERTY)({"data-id":r,"data-title":a}),">\n ").concat(this.toDefString(t),"\n ").concat(t.layers.map((function(t){return e.render(t,e)})).join("\n\t"),"\n \n ")}},{key:"renderSVG",value:function(t,e){}},{key:"toNestedCSS",value:function(t){return[]}},{key:"update",value:function(t,e){if(e&&!t.hasChangedField("x","y")){var n=e.el.$svg;if(n||(e.el.$svg=e.$('[data-id="'.concat(this.innerSVGId(t),'"]')),n=e.el.$svg),n){var r=this.toDefInnerString(t);if(r)n.$("defs").html(r)}else{var a=this.toDefString(t);if(a){var i=m.a.createByHTML(a);i&&e.prepend(i)}}}}}]),n}(function(){function t(){s()(this,t)}return u()(t,[{key:"getInnerId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.id+e}}]),t}())},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={backspace:8,tab:9,enter:13,escape:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,semicolon:59,equals:61,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,multiply:106,add:107,subtract:109,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,f13:124,f14:125,f15:126,f16:127,f17:128,f18:129,f19:130,comma:188,",":188,period:190,".":190,slash:191,"/":191,backquote:192,"`":192,openbracket:219,"[":219,backslash:220,"\\":220,closebracket:221,"]":221,quote:222,"'":222,altgr:225}},function(t,e,n){"use strict";n.r(e),n.d(e,"format",(function(){return a})),n.d(e,"hex",(function(){return i})),n.d(e,"rgb",(function(){return c})),n.d(e,"hsl",(function(){return o}));var r=n(8);function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(0, 0, 0, 0)";return Array.isArray(t)&&(t={r:t[0],g:t[1],b:t[2],a:t[3]}),"hex"==e?i(t):"rgb"==e?c(t,n):"hsl"==e?o(t):t}function i(t){Array.isArray(t)&&(t={r:t[0],g:t[1],b:t[2],a:t[3]});var e=t.r.toString(16);t.r<16&&(e="0"+e);var n=t.g.toString(16);t.g<16&&(n="0"+n);var a=t.b.toString(16);if(t.b<16&&(a="0"+a),1==t.a||Object(r.isUndefined)(t.a))return"#".concat(e).concat(n).concat(a);var i=Math.ceil(255*t.a),c=i.toString(16);return i<16&&(c="0"+c),"#".concat(e).concat(n).concat(a).concat(c)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba(0, 0, 0, 0)";if(Object(r.isArray)(t)&&(t={r:t[0],g:t[1],b:t[2],a:t[3]}),!Object(r.isUndefined)(t))return 1==t.a||Object(r.isUndefined)(t.a)?isNaN(t.r)?e:"rgb(".concat(t.r,",").concat(t.g,",").concat(t.b,")"):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat(t.a,")")}function o(t){return Object(r.isArray)(t)&&(t={r:t[0],g:t[1],b:t[2],a:t[3]}),1==t.a||Object(r.isUndefined)(t.a)?"hsl(".concat(t.h,",").concat(t.s,"%,").concat(t.l,"%)"):"hsla(".concat(t.h,",").concat(t.s,"%,").concat(t.l,"%,").concat(t.a,")")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var r="add/body/mousemove",a="add/body/mouseup"},function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(4),g=n(31),b=n(20);function k(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 x(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"transparent";return new n({colorsteps:[new m.a({color:t,percent:0,index:0}),new m.a({color:t,percent:100,index:0})]})}}]),n}(n(77).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return xr})),n.d(e,"b",(function(){return Or}));var r=n(16),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(14),u=(n(33),n(8)),h=function(){function t(e){c()(this,t),this.cachedCallback={},this.callbacks={},this.commandes=[],this.editor=e}return s()(t,[{key:"getCallbacks",value:function(t){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t]}},{key:"setCallbacks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.callbacks[t]=e}},{key:"debug",value:function(){var t;this.editor&&this.editor.config.get("debug")&&(t=console).log.apply(t,arguments)}},{key:"on",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=e;r>0?i=Object(u.debounce)(e,r):a>0&&(i=Object(u.throttle)(e,a)),this.getCallbacks(t).push({event:t,callback:i,context:n,originalCallback:e}),this.debug("add message event",t,n.sourceName)}},{key:"off",value:function(t,e){this.debug("off message event",t),1==arguments.length?this.setCallbacks(t):2==arguments.length&&this.setCallbacks(t,this.getCallbacks(t).filter((function(t){return t.originalCallback!==e})))}},{key:"offAll",value:function(t){var e=this;Object.keys(this.callbacks).forEach((function(n){e.setCallbacks(n,e.getCallbacks(n).filter((function(e){return e.context!==t})))})),this.debug("off all message",t.sourceName)}},{key:"getCachedCallbacks",value:function(t){return this.getCallbacks(t)}},{key:"sendMessage",value:function(t,e){for(var n=this,r=arguments.length,a=new Array(r>2?r-2:0),i=2;i2?n-2:0),a=2;a2?r-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en_US",r=d.a[n][t]||d.a.en_US[t]||t||void 0;if(Object(u.isFunction)(r))return r(e);var a=r;return t===a?t.split(".").pop():(Object(u.keyEach)(e,(function(t,e){a=a.replace(new RegExp("{".concat(t,"}"),"ig"),e)})),a)},hasKey:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US";return!(!d.a[e][t]&&!d.a.en_US[t])}},v={dark:{left_size:250,left_max_size:400,bottom_size:150,bottom_max_size:500,timeline_grid_font_color:"#ececec",timeline_line_color:"red",timeline_timeview_bottom_color:"black"},light:{left_size:250,left_max_size:400,bottom_size:150,bottom_max_size:500,timeline_grid_font_color:"black",timeline_line_color:"#4778d4",timeline_timeview_bottom_color:"#ececec"},toon:{left_size:250,left_max_size:400,bottom_size:150,bottom_max_size:500,timeline_grid_font_color:"black",timeline_line_color:"#4778d4",timeline_timeview_bottom_color:"#ececec"}},y=n(7),m=n.n(y);function g(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}var b=function(){function t(e){c()(this,t),this.$editor=e,this.items=[],this.itemKeys={}}return s()(t,[{key:"initialize",value:function(){this.items=[],this.itemKeys={}}},{key:"currentProject",value:function(t){var e=this.$editor.selection.currentProject;e&&t&&t(e)}},{key:"empty",value:function(){this.select()}},{key:"each",value:function(t){this.items.forEach((function(e,n){t&&t(e,n)}))}},{key:"refreshCache",value:function(t){var e=this;this.items=t,this.itemKeys={},this.items.forEach((function(t){e.itemKeys[t.id]=t}))}},{key:"cachedList",value:function(){return this.items.map((function(t){return function(t){for(var e=1;e1}},{key:"length",get:function(){return this.items.length}},{key:"isLayoutItem",get:function(){return this.current.isLayoutItem()}},{key:"snapTargetLayers",get:function(){var t=this;return this.currentProject?this.currentProject.allLayers.filter((function(e){return!e.is("project")&&!t.check(e)})):[]}},{key:"snapTargetLayersWithSelection",get:function(){return this.currentProject?this.currentProject.allLayers.filter((function(t){return!t.is("project")})):[]}},{key:"selectedArtboards",get:function(){return a()(new Set(this.items.map((function(t){return t.artboard}))))}},{key:"getRootItem",value:function(t){var e=t;return t&&t.parent&&(e=t.parent),e}},{key:"selectColorStep",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:null,e=[];if(Object(u.isArray)(t)?e=t:(Object(u.isString)(t)||Object(u.isObject)(t))&&(e=[t]),e.length){var n=this.project,r=[],a=[];e.forEach((function(t){n.hasIndexItem(t)?r.push(n.getIndexItem(t)):a.push(t)}));var i=j(this.project,a);return i.forEach((function(t){n.addIndexItem(t)})),r.push.apply(r,i),r}return this.items}},{key:"makeItemMap",value:function(t){var e={};return this.ids.forEach((function(n){e[n]=Object(u.clone)(t)})),e}},{key:"selectById",value:function(t){t&&this.select.apply(this,a()(j(this.project,t)))}},{key:"selectAfterCopy",value:function(){this.select.apply(this,a()(this.items.map((function(t){return t.copy()}))))}},{key:"addById",value:function(t){this.itemKeys[t]||this.select.apply(this,a()(this.items).concat(a()(j(this.project,t))))}},{key:"removeById",value:function(t){var e=t;Object(u.isString)(t)&&(e=[t]);var n=this.items.filter((function(t){return!1===e.includes(t.id)}));this.select.apply(this,a()(n))}},{key:"toggleById",value:function(t){this.itemKeys[t]?this.removeById(t):this.addById(t)}},{key:"getArtboardByPoint",value:function(t){return this.currentProject.artboards.find((function(e){var n=e.matrix.verties.filter((function(t,e){return e<4}));return Object(k.c)(n,t[0],t[1])}))}},{key:"changeArtBoard",value:function(){var t=this,e=!1;return this.each((function(n){if(!1===n.is("artboard")){var r=n.rectVerties();if(n.artboard){var a=n.artboard.rectVerties();if(Object(k.c)(a,r[0][0],r[0][1])||Object(k.d)(r,a))return!1}var i=t.cachedArtBoardVerties.find((function(t){var e=t.matrix.verties.filter((function(t,e){return e<4}));return Object(k.c)(e,r[0][0],r[0][1])||Object(k.d)(r,e)}));i?i.item!==n.artboard&&(i.item.appendChildItem(n),e=!0):n.artboard&&(t.currentProject.appendChildItem(n),e=!0)}})),e}},{key:"doCache",value:function(){this.items.forEach((function(t){t.setCache()}))}},{key:"setRectCache",value:function(){this.cachedVerties=this.verties,this.cachedItemVerties=this.items.map((function(t){return t.fakeParent=void 0,t.matrix})),this.cachedArtBoardVerties=this.currentProject.artboards.map((function(t){return{item:t,matrix:t.matrix}}))}},{key:"verties",get:function(){return this.isOne?this.current.verties():this.rectVerties}},{key:"selectionVerties",get:function(){return this.isOne?this.current.selectionVerties():this.rectVerties}},{key:"rectVerties",get:function(){return Object(k.b)(this.items)}},{key:"itemRect",get:function(){var t=this.verties;return{x:O.a.px(t[0][0]),y:O.a.px(t[0][1]),width:O.a.px(w.d.distance(t[0],t[1])),height:O.a.px(w.d.distance(t[0],t[3]))}}},{key:"toCloneObject",value:function(){var t={};return this.each((function(e){t[e.id]=e.toCloneObject(!1)})),t}},{key:"cloneValue",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=t,r=n.parent,a=e.includes(r);!a&&!Object(u.isUndefined)(r);)n=r,r=r.parent,a=e.includes(r);return a}},{key:"hasPoint",value:function(t){return this.isMany?Object(k.c)(this.rectVerties,t[0],t[1]):this.cachedItemVerties.some((function(e){return Object(k.c)(e.verties,t[0],t[1])}))}},{key:"checkHover",value:function(t){return Object(u.isString)(t)?this.hoverId===t:this.hoverItems.findIndex((function(e){return e.id===t.id}))>-1}},{key:"setHoverId",value:function(t){var e=!1;return!t||this.itemKeys[t]||this.cachedArtBoardVerties.find((function(e){return e.item.id===t}))?(""!=this.hoverId&&(e=!0),this.hoverId="",this.hoverItems=[]):(this.hoverId!=t&&(e=!0),this.hoverId=t,this.hoverItems=this.itemsByIds([t]).filter((function(t){return!1===t.is("artboard")})),0===this.hoverItems.length&&(this.hoverId="",e=!0)),e&&this.$editor.emit("changeHoverItem"),e}}]),t}(),M=n(32);var V={command:"setAttribute",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t.selection.itemsByIds(n).forEach((function(n){Object.keys(e).forEach((function(t){var r=e[t];Object(u.isFunction)(r)&&(r=r(n)),n.reset(m()({},t,r))})),n.setCache(),t.emit("refreshElement",n)}))}},S=n(13),P=n.n(S);function C(t){t.emit("noneSelectMenu"),t.nextTick((function(){t.emit("refreshAll"),t.emit("refreshSelectionTool")}))}var R=n(29);function H(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 $(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[];t.emit("updateResource",e)}},Y={command:"updateImage",execute:function(t,e,n,r){var a=new FileReader;a.onload=function(a){var i=a.target.result,c=URL.createObjectURL(e);t.emit("addImageAssetItem",{id:Object(l.uuidShort)(),type:e.type,name:e.name,original:i,local:c},n,r)},a.readAsDataURL(e)}},U={command:"updateVideo",execute:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,a=new FileReader;a.onload=function(a){var i=a.target.result,c=URL.createObjectURL(e);t.emit("addVideoAssetItem",{id:Object(l.uuidShort)(),type:e.type,name:e.name,original:i,local:c},n,r)},a.readAsDataURL(e)}};function K(t,e){var n=new Image;n.onload=function(){var r={id:t.id,local:t.local,naturalWidth:O.a.px(n.naturalWidth),naturalHeight:O.a.px(n.naturalHeight),width:O.a.px(n.naturalWidth),height:O.a.px(n.naturalHeight)};e&&e(r,n)},n.onerror=function(t){console.log(t,t.message)},n.src=t.local}function q(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){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,a=t.selection.currentProject;a&&(a.createImage(e),t.emit("addImageAsset"),K(e,(function(a){var i=n.width.value/a.width.value,c=n.width,o=O.a.px(a.height.value*i);t.emit("addImage",W(W(W({src:e.id},a),n),{},{width:c,height:o}),r),t.changeMode(xr),t.emit("afterChangeMode")})))}};function Q(t,e){var n=document.createElement("video");n.onloadeddata=function(){var r={local:t.local,naturalWidth:O.a.px(n.videoWidth),naturalHeight:O.a.px(n.videoHeight),width:O.a.px(n.videoWidth),height:O.a.px(n.videoHeight),duration:n.duration,playTime:"0:1:".concat(n.duration),volume:n.volume,muted:n.muted,placebackRate:n.playbackRate};e&&e(r,n)},n.src=t.local}function J(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 tt(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,a=t.selection.currentProject;a&&(a.createVideo(e),t.emit("addVideoAsset"),Q(e,(function(a){t.emit("addVideo",tt(tt({src:e.id},a),n),r),t.changeMode(xr),t.emit("afterChangeMode")})))}};function nt(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}var rt={command:"dropImageUrl",execute:function(t,e){K({local:e},(function(e){t.emit("addImage",function(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],r=e.split("data:"),a=P()(r,2),i=(a[0],a[1]),c=i.split(","),o=st()(c),s=o[0],l=o.slice(1),u=s.split(";"),h=P()(u,2),f=h[0],d=h[1];return l=l.join(","),{mimeType:f,local:n&&t.getLink(f,d,l)}}},{key:"getLink",value:function(t,e,n){if("base64"===e){for(var r=atob(n),a=r.length,i=new Uint8Array(a),c=0;c-1){var r=lt.parse(n,!0);switch(r.mimeType){case"image/png":case"image/gif":case"image/jpg":case"image/jpeg":t.emit("addImageAssetItem",{id:Object(l.uuidShort)(),type:r.mimeType,name:"",original:n,local:r.local})}}else{var a=e.data.split(".").pop(),i=e.data.split("/").pop();switch(a){case"png":case"jpg":case"gif":case"svg":t.emit("addImageAssetItem",{id:Object(l.uuidShort)(),type:"image/"+a,name:i,original:e.data,local:e.data})}}}};function ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"easylogic.json",n=document.createElement("a");n.href=t,n.download=e,n.click()}var ft={command:"downloadJSON",execute:function(t,e){var n=JSON.stringify(t.projects);ht("data:application/json;base64,"+window.btoa(n),e||"easylogic.json")}},dt=n(64),pt={command:"downloadSVG",execute:function(t){var e=t.selection.current;if(e){var n=dt.a.generateSVG(t,e).trim();ht("data:image/svg+xml;base64,"+window.btoa(n),e.id)}}},vt=n(19);function yt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image/png",r=vt.a.create("canvas"),a=t.width,i=t.height;r.resize({width:a,height:i}),r.drawImage(t),e&&e(r.toDataURL(n))}var mt={command:"downloadPNG",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.selection.current;if(n){var r=dt.a.generateSVG(t,n).trim(),a="data:image/svg+xml;base64,"+window.btoa(r),i=n.id;K({local:a},(function(n,r){yt(r,(function(n){ht(n,i),e&&t.emit(e,n)}))}))}}},gt={command:"load.json",execute:function(t,e){0===(e=e||t.loadResource("projects",[])).length&&(e=[{itemType:"project",layers:[{itemType:"artboard",name:"New ArtBoard",x:"300px",y:"200px",width:"375px",height:"667px","background-color":"white",layer:[]}]}]);var n=e.map((function(e){return t.createItem(e)}));if(n.forEach((function(t){t.artboards.forEach((function(e){t.selectTimeline(e.id)}))})),n.length){var r=n[0];t.selection.selectProject(r),t.load(n),C(t)}}};function bt(t,e){var n=t.selection.currentProject;if(n){var r=n.getSelectedTimeline();e&&e(n,r)}}var kt={command:"addTimelineProperty",execute:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{timing:"linear"};bt(t,(function(r,a){var i;!1===Object(u.isArray)(e)&&(e=[e]);var c=[];e.forEach((function(t){var e={layerId:t,property:n.property,value:n.value+"",timing:n.timing,editor:n.editor},a=r.addTimelineKeyframe(e);a&&c.push(a)})),(i=t.timeline).select.apply(i,c),t.emit("refreshTimeline"),t.emit("refreshSelectedOffset")}))}},xt={command:"setTimelineOffset",debounce:100,execute:function(t,e){bt(t,(function(n,r){n.setTimelineKeyframeOffsetValue(e.layerId,e.property,e.id,e.value,e.timing,e.time),t.emit("refreshTimeline")}))}},Ot={command:"addTimelineCurrentProperty",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timing:"linear"};bt(t,(function(n,r){var a,i=[];t.selection.each((function(t){var r={layerId:t.id,property:e.property,value:t[e.property]+"",timing:e.timing,editor:e.editor},a=n.addTimelineKeyframe(r);a&&i.push(a)})),(a=t.timeline).select.apply(a,i),t.emit("refreshTimeline"),t.emit("refreshSelectedOffset")}))}},wt={command:"removeTimelineProperty",execute:function(t,e,n){bt(t,(function(r,a){r.removeTimelineProperty(e,n),t.timeline.empty(),t.emit("refreshTimeline"),t.emit("refreshSelectedOffset")}))}},jt={command:"deleteTimelineKeyframe",execute:function(t){bt(t,(function(e,n){t.timeline.each((function(t){e.deleteTimelineKeyframe(t.layerId,t.property,t.id)})),t.timeline.empty(),t.emit("refreshTimeline"),t.emit("refreshSelectedOffset")}))}},zt={command:"selectTimelineItem",execute:function(t,e){bt(t,(function(n,r){n.selectTimeline(e),t.emit("refreshTimeline"),t.emit("selectTimeline")}))}},Mt={command:"removeTimeline",execute:function(t,e){bt(t,(function(n,r){n.removeTimeline(e),t.timeline.empty(),t.emit("refreshTimeline"),t.emit("refreshSelectedOffset")}))}},Vt={command:"removeAnimationItem",execute:function(t,e){bt(t,(function(n,r){n.removeAnimation(e),t.timeline.empty(),t.emit("refreshTimeline"),t.emit("removeAnimation")}))}},St={command:"addTimelineKeyframe",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timing:"linear"};bt(t,(function(n,r){var a=n.searchById(e.layerId),i={layerId:e.layerId,property:e.property,time:e.time,value:a[e.property]+"",timing:e.timing,editor:e.editor},c=n.addTimelineKeyframe(i);t.timeline.select(c),t.emit("refreshTimeline"),t.emit("refreshSelectedOffset")}))}},Pt={command:"copyTimelineProperty",execute:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;bt(t,(function(a,i){a.copyTimelineKeyframe(e,n,r),t.emit("refreshTimeline")}))}},Ct=n(27),Rt={command:"playTimelineItem",description:"Play button action",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"normal";t.selection.empty(),t.emit("refreshSelection"),t.changeMode("play"),t.emit("afterChangeMode"),bt(t,(function(a,i){var c=a.getSelectedTimelineLastTime();t.timer?t.timer.stop():t.timer=Object(Ct.b)({elapsed:1e3*i.currentTime,speed:e,duration:1e3*c,iterationCount:n,direction:r}),t.timer.play({duration:1e3*c,elapsed:1e3*i.currentTime,speed:e,iterationCount:n,direction:r,tick:function(e,n){a.seek(Object(Ct.d)(i.fps,e/1e3)),t.emit("playTimeline")},last:function(e,n){a.seek(Object(Ct.d)(i.fps,e/1e3)),t.emit("playTimeline"),t.nextTick((function(){t.emit("stopTimeline"),t.changeMode("SELECTION"),t.emit("afterChangeMode")}))},stop:function(e,n){a.stop(Object(Ct.d)(i.fps,e/1e3)),t.emit("stopTimeline"),t.changeMode("SELECTION"),t.emit("afterChangeMode")}})}))}},Ht={command:"prevTimelineItem",execute:function(t){bt(t,(function(e,n){var r=e.getSelectedTimelinePrevTime();e.setTimelineCurrentTime(Object(Ct.d)(n.fps,r)),e.seek(),t.emit("playTimeline"),t.changeMode("SELECTION"),t.emit("afterChangeMode")}))}},$t={command:"firstTimelineItem",execute:function(t){bt(t,(function(e,n){var r=e.getSelectedTimelineFirstTime();e.setTimelineCurrentTime(Object(Ct.d)(n.fps,r)),e.seek(),t.emit("playTimeline"),t.changeMode("SELECTION"),t.emit("afterChangeMode")}))}},Lt={command:"nextTimelineItem",execute:function(t){bt(t,(function(e,n){var r=e.getSelectedTimelineNextTime();e.setTimelineCurrentTime(Object(Ct.d)(n.fps,r)),e.seek(),t.emit("playTimeline"),t.changeMode("SELECTION"),t.emit("afterChangeMode")}))}},Tt={command:"lastTimelineItem",execute:function(t){bt(t,(function(e,n){var r=e.getSelectedTimelineLastTime();e.setTimelineCurrentTime(Object(Ct.d)(n.fps,r)),e.seek(),t.emit("playTimeline"),t.changeMode("SELECTION"),t.emit("afterChangeMode")}))}},Bt={command:"addTimelineItem",execute:function(t,e){bt(t,(function(n,r){e?n.addTimelineLayer(e):n.addTimeline(),t.emit("refreshTimeline"),t.emit("addTimeline")}))}},At={command:"drop.asset",execute:function(){var t=F()(X.a.mark((function t(e,n){var r,a,i,c=arguments;return X.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>2&&void 0!==c[2]?c[2]:null,!n.color){t.next=5;break}e.emit("addBackgroundColor",n.color,r),t.next=29;break;case 5:if(!n.gradient){t.next=9;break}e.emit("addBackgroundImageGradient",n.gradient,r),t.next=29;break;case 9:if(!n.pattern){t.next=13;break}e.emit("addBackgroundImagePattern",n.pattern,r),t.next=29;break;case 13:if(!n.imageUrl){t.next=17;break}e.emit("addBackgroundImageAsset",n.imageUrl,r),t.next=29;break;case 17:if(!n.artboard){t.next=24;break}return t.next=20,e.storageManager.getArtBoard(n.artboard.id);case 20:(a=t.sent)&&e.emit("addArtBoard",a,n.artboard.center),t.next=29;break;case 24:if(!n.customComponent){t.next=29;break}return t.next=27,e.storageManager.getCustomComponent(n.customComponent.id);case 27:(i=t.sent)&&e.emit("addArtBoard",i,n.customComponent.center);case 29:C(e);case 30:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},Et=n(35),It={command:"addBackgroundImageGradient",execute:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;console.log(n);var r=t.selection.itemsByIds(n);console.log(r);var a={};r.forEach((function(t){var n=Et.a.parseStyle(Object(u.STRING_TO_CSS)(t["background-image"]));n.unshift(new Et.a({image:Et.a.parseImage(e)})),a[t.id]={"background-image":Et.a.join(n)}})),t.emit("history.setAttributeForMulti","add gradient",a)}},Dt=n(68),Ft={command:"addBackgroundImageAsset",execute:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.selection.itemsByIds(n),a={};r.forEach((function(t){var n=Et.a.parseStyle(Object(u.STRING_TO_CSS)(t["background-image"]));n.unshift(new Et.a({image:new Dt.a({url:e})})),a[t.id]={"background-image":Et.a.join(n)}})),t.emit("history.setAttributeForMulti","add background image",a)}},_t={command:"removeLayer",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;t.selection.itemsByIds(e||t.selection.ids).forEach((function(t){t.remove()})),t.selection.empty(),t.nextTick((function(){t.emit("refreshAll")}))}},Xt={command:"change.mode.view",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CanvasView";t.changeModeView(e)}},Gt={command:"segment.move.down",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{dy:1},n=+e.dy;t.emit("moveSegment",0,n)}},Nt={command:"segment.move.up",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{dy:1},n=+e.dy;t.emit("moveSegment",0,-1*n)}},Yt={command:"segment.move.right",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{dx:1},n=+e.dx;t.emit("moveSegment",n,0)}},Ut={command:"segment.move.left",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{dx:1},n=+e.dx;t.emit("moveSegment",-1*n,0)}},Kt=n(49),qt={command:"addBackgroundImagePattern",execute:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.selection.itemsByIds(n),i={};r.forEach((function(t){i[t.id]={pattern:Kt.a.join([].concat(a()(Kt.a.parseStyle(e)),a()(Kt.a.parseStyle(t.pattern))))}})),t.emit("history.setAttributeForMulti","add pattern",i)}},Wt={command:"addBackgroundColor",execute:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.selection.itemsByIds(n),a={};r.forEach((function(t){a[t.id]={"background-color":e}})),t.emit("history.setAttributeForMulti","add background color",a)}};var Zt={command:"sort.center",execute:function(t){if(t.selection.isOne){var e=t.selection.current;if(e.parent.is("project"));else if(e.artboard){var n=Object(l.getVertiesCenterX)(e.artboard.verties())-Object(l.getVertiesCenterX)(t.selection.verties);t.emit("moveLayer",n,0)}}else if(t.selection.isMany){var r=Object(l.getVertiesCenterX)(t.selection.verties);t.emit("moveLayerForItems",t.selection.map((function(t){var e=Object(l.getVertiesCenterX)(t.verties());return{item:t,dist:[r-e,0,0]}})))}}},Qt={command:"sort.left",execute:function(t){if(t.selection.isOne){var e=t.selection.current;if(e.parent.is("project"));else if(e.artboard){var n=Object(l.getVertiesMinX)(e.artboard.verties())-Object(l.getVertiesMinX)(t.selection.verties);t.emit("moveLayer",n,0)}}else if(t.selection.isMany){var r=Object(l.getVertiesMinX)(t.selection.verties);t.emit("moveLayerForItems",t.selection.map((function(t){var e=Object(l.getVertiesMinX)(t.verties());return{item:t,dist:[r-e,0,0]}})))}}},Jt={command:"sort.middle",execute:function(t){if(t.selection.isOne){var e=t.selection.current;if(e.parent.is("project"));else if(e.artboard){var n=Object(l.getVertiesCenterY)(e.artboard.verties())-Object(l.getVertiesCenterY)(t.selection.verties);t.emit("moveLayer",0,n)}}else if(t.selection.isMany){var r=Object(l.getVertiesCenterY)(t.selection.verties);t.emit("moveLayerForItems",t.selection.map((function(t){var e=Object(l.getVertiesCenterY)(t.verties());return{item:t,dist:[0,r-e,0,0]}})))}}},te={command:"sort.bottom",execute:function(t){if(t.selection.isOne){var e=t.selection.current;if(e.parent.is("project"));else if(e.artboard){var n=Object(l.getVertiesMaxY)(e.artboard.verties())-Object(l.getVertiesMaxY)(t.selection.verties);t.emit("moveLayer",0,n)}}else if(t.selection.isMany){var r=Object(l.getVertiesMaxY)(t.selection.verties);t.emit("moveLayerForItems",t.selection.map((function(t){var e=Object(l.getVertiesMaxY)(t.verties());return{item:t,dist:[0,r-e,0,0]}})))}}},ee={command:"sort.top",execute:function(t){if(t.selection.isOne){var e=t.selection.current;if(e.parent.is("project"));else if(e.artboard){var n=Object(l.getVertiesMinY)(e.artboard.verties())-Object(l.getVertiesMinY)(t.selection.verties);t.emit("moveLayer",0,n)}}else if(t.selection.isMany){var r=Object(l.getVertiesMinY)(t.selection.verties);t.emit("moveLayerForItems",t.selection.map((function(t){var e=Object(l.getVertiesMinY)(t.verties());return{item:t,dist:[0,r-e,0,0]}})))}}},ne={command:"sort.right",execute:function(t){if(t.selection.isOne){var e=t.selection.current;if(e.parent.is("project"));else if(e.artboard){var n=Object(l.getVertiesMaxX)(e.artboard.verties())-Object(l.getVertiesMaxX)(t.selection.verties);t.emit("moveLayer",n,0)}}else if(t.selection.isMany){var r=Object(l.getVertiesMaxX)(t.selection.verties);t.emit("moveLayerForItems",t.selection.map((function(t){var e=Object(l.getVertiesMaxX)(t.verties());return{item:t,dist:[r-e,0,0]}})))}}};var re={command:"item.move.depth.down",execute:function(t){var e=t.selection.current;e&&e.orderPrev(),C(t)}},ae={command:"item.move.depth.up",execute:function(t){var e=t.selection.current;e&&e.orderNext(),C(t)}};function ie(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}var ce={command:"group.item",execute:function(t){if(0!==t.selection.length){var e=t.selection.currentProject;if(e){e.generateListNumber();var n=t.selection.map((function(t){return{depth:t.depth,item:t}}));n.sort((function(t,e){return t.depth===e.depth?t.no>e.no?-1:1:t.depth>e.depth?1:-1}));var r=t.createItem(function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t.emit("setAttribute",n,r),t.history.add(e,this,{currentValues:[n,r],undoValues:t.history.getUndoValues(n)}),t.nextTick((function(){t.history.saveSelection()}))},redo:function(t,e){var n=e.currentValues;t.emit.apply(t,["setAttribute"].concat(a()(n))),t.nextTick((function(){t.emit("refreshAll")}))},undo:function(t,e){var n=e.undoValues,r=Object.keys(n);t.selection.itemsByIds(r).forEach((function(t){t.reset(n[t.id])})),t.nextTick((function(){t.emit("refreshAll")}))}},le={command:"history.refreshSelection",description:"save selection in history ",description_ko:"Selection 정보를 갱신하면서 History 에 저장한다",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"selection",n=t.selection.ids,r=t.history.selectedIds;Object(u.isArrayEquals)(n,r)||(t.history.add(e,this,{currentValues:n,undoValues:r}),this.nextAction(t))},nextAction:function(t){t.nextTick((function(){t.history.saveSelection(),t.emit("refreshSelection"),t.nextTick((function(){t.emit("refreshSelectionTool")}))}))},redo:function(t,e){var n=e.currentValues;t.selection.selectById(n),this.nextAction(t)},undo:function(t,e){var n=e.undoValues;t.selection.selectById(n),this.nextAction(t)}},ue={command:"setAttributeForMulti",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(n){var r=e[n];t.selection.itemsByIds(n).forEach((function(e){var n={};Object.keys(r).forEach((function(t){var a=r[t];Object(u.isFunction)(a)&&(a=a(e)),n[t]=a})),e.reset(n),e.setCache(),t.emit("refreshElement",e)}))}))}},he={command:"history.setAttributeForMulti",execute:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.emit("setAttributeForMulti",n),t.history.add(e,this,{currentValues:[n],undoValues:t.history.getUndoValuesForMulti(n)}),t.nextTick((function(){t.history.saveSelection()}))},redo:function(t,e){var n=e.currentValues;t.emit.apply(t,["setAttributeForMulti"].concat(a()(n))),t.nextTick((function(){t.selection.reselect(),t.emit("refreshAll")}))},undo:function(t,e){var n=e.undoValues,r=Object.keys(n);t.selection.itemsByIds(r).forEach((function(t){t.reset(n[t.id])})),t.selection.reselect(),t.nextTick((function(){t.emit("refreshAll")}))}},fe={command:"history.addLayer",description:"add layer in history ",execute:function(t,e,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],c=arguments.length>5?arguments[5]:void 0;t.emit("addLayer",n,a,i,c),t.nextTick((function(){t.history.add(e,r,{currentValues:[n,{},i,n.parent],undoValues:[n.id]})})),t.nextTick((function(){t.history.saveSelection()}))},redo:function(t,e){var n=e.currentValues;t.emit.apply(t,["addLayer"].concat(a()(n))),t.nextTick((function(){t.emit("refreshAll")}))},undo:function(t,e){var n=e.undoValues;t.selection.itemsByIds(n).forEach((function(t){t&&t.remove()})),t.nextTick((function(){t.emit("refreshAll")}))}};function de(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter((function(e){var n=0;return e.path.forEach((function(e){n+=t.filter((function(t){return t.id===e.id})).length?1:0})),1===n}))}var pe,ve={command:"history.removeLayer",description:"remove layer",execute:function(t,e,n){var r=t.selection.itemsByIds(n||t.selection.ids),a=(r=de(r)).map((function(t){return t.id})),i=t.serialize(r);r.forEach((function(t){return t.remove()})),t.history.add(e,this,{currentValues:[a],undoValues:i}),t.nextTick((function(){t.selection.removeById(r.map((function(t){return t.id}))),t.emit("refreshAll"),t.emit("removeGuideLine"),t.nextTick((function(){t.history.saveSelection()}))}))},redo:function(t,e){var n=e.currentValues[0],r=t.selection.itemsByIds(n||t.selection.ids);(r=de(r)).forEach((function(t){return t.remove()})),t.nextTick((function(){t.emit("refreshAll")}))},undo:function(t,e){var n=e.undoValues;t.deserialize(n,!0),t.nextTick((function(){t.emit("refreshAll")}))}},ye={command:"updatePathItem",description:"Update path string for selected svg path item",execute:function(t,e){var n=t.selection.current;if(n)if("box"===e.box){var r=n.invertPath(e.d);t.emit("setAttribute",{d:r.d})}else{var a=n.invertPath(e.d),i=a.getBBox(),c=n.offsetX.value+i[0][0],o=n.offsetY.value+i[0][1],s=w.d.distance(i[1],i[0]),l=w.d.distance(i[3],i[0]);a.translate(-i[0][0],-i[0][1]),t.emit("setAttribute",{d:a.d,x:O.a.px(c),y:O.a.px(o),width:O.a.px(s),height:O.a.px(l)})}}},me={command:"moveLayer",description:"mova layer by keydown with matrix ",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r={};t.selection.each((function(t){r[t.id]={x:O.a.px(t.offsetX.value+e).round(),y:O.a.px(t.offsetY.value+n).round()}})),t.emit("history.setAttributeForMulti","item move down",r),t.nextTick((function(){t.selection.reselect(),t.emit("refreshAll")}))}},ge={command:"moveToCenter",description:"Move Layer to Center on Viewport",execute:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e&&t.viewport.moveLayerToCenter(e,void 0,n)}},be={command:"moveLayerForItems",description:"mova layer by multi items ",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};e.forEach((function(t){n[t.item.id]={x:O.a.px(t.item.offsetX.value+t.dist[0]).round(),y:O.a.px(t.item.offsetY.value+t.dist[1]).round()}})),t.emit("history.setAttributeForMulti","item move down",n),t.nextTick((function(){t.selection.reselect(),t.emit("refreshAll")}))}},ke={command:"moveSelectionToCenter",description:"Move selection project or artboards to center on Viewport",execute:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];n=t.selection.isEmpty?t.selection.currentProject.rectVerties:Object(k.b)(t.selection.items),t.emit("moveToCenter",n,e)}},xe={command:"savePNG",execute:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.selection.current;if(n){var r=dt.a.generateSVG(t,n).trim(),a="data:image/svg+xml;base64,"+window.btoa(r);K({local:a},(function(n,r){yt(r,(function(n){e&&t.emit(e,n)}))}))}}},Oe={command:"refreshCursor",execute:function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.selection.currentProject;r||(r=t.add(t.createItem({itemType:"project"})),t.selection.selectProject(r));var a=r.appendChildItem(t.createItem($({itemType:"artboard",x:O.a.px(300),y:O.a.px(200),width:O.a.px(375),height:O.a.px(667)},e)));n&&(a.reset({x:O.a.px(0),y:O.a.px(0)}),a.moveByCenter(n)),t.selection.select(a),C(t)},addCustomComponent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.selection.currentProject,a=r.appendChildItem(t.createItem(Me({x:O.a.px(300),y:O.a.px(200),width:O.a.px(375),height:O.a.px(667)},e)));n&&(a.reset({x:O.a.px(0),y:O.a.px(0)}),a.moveByCenter(n)),t.selection.select(a),C(t)},addImage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;t.emit("newComponent","image",e,!0,n)},addVideo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;t.emit("newComponent","video",e,!0,n)},addLayer:function(t,e){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4?arguments[4]:void 0;r||(r=t.selection.current||t.selection.currentProject),r&&(r.is("project")||r.enableHasChildren()||(r=r.parent),r.appendChildItem(e),n&&t.selection.select(e),C(t))},addLayerView:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.selection.empty(),t.emit("refreshSelectionTool"),t.emit("hideAddViewLayer"),t.emit("removeGuideLine"),"select"===e||("brush"===e?t.emit("showPathDrawEditor"):"path"===e?t.emit("showPathEditor","path"):t.emit("showLayerAppendView",e,n))},addProject:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.add(t.createItem(T({itemType:"project"},e)));t.selection.selectProject(n),C(t)},convertPath:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.selection.current;if(r)if(r.is("svg-path","svg-brush","svg-textpath")){var a=e;if(n)(i=new R.a(e)).scale(r.width.value/n.width,r.height.value/n.height),a=i.d;t.command("setAttribute","set attribute -d",{d:a},r)}else if(r["clip-path"].includes("path")){var i;a=e;if(n)(i=new R.a(e)).scale(r.width.value/n.width,r.height.value/n.height),a=i.d;t.command("setAttribute","change clip path",{"clip-path":"path(".concat(a,")")},r)}},newComponent:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;"svg-textpath"===e?n=E(E({},n),{},{text:"Insert a newText","font-size":O.a.parse(n.height),textLength:"100%",d:B.a.makeLine(0,n.height.value,n.width.value,n.height.value)}):"svg-circle"===e?(e="svg-path",n=E(E({},n),{},{"background-color":void 0,fill:"#C4C4C4",d:B.a.makeCircle(0,0,n.width.value,n.height.value)})):"svg-rect"===e?(e="svg-path",n=E(E({},n),{},{"background-color":void 0,fill:"#C4C4C4",d:B.a.makeRect(0,0,n.width.value,n.height.value)})):"text"===e?n=E(E({width:O.a.px(300),height:O.a.px(50)},n),{},{content:"Insert a text","font-size":O.a.px(30)}):"artboard"===e&&(n=E(E({},n),{},{"background-color":"white"})),t.command("addLayer","add layer - ".concat(e),t.createItem(E({itemType:e},n)),n,r,a),t.changeMode(xr),t.emit("afterChangeMode")},refreshElement:function(t,e){t.emit("refreshSelectionStyleView",e),t.emit("refreshElementBoundSize",t.selection.getRootItem(e))},refreshProject:function(t,e){t.emit("refreshStyleView",e,!0)},resizeArtBoard:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.selection.current;if(n&&n.is("artboard")){if(!e.trim())return;var r=e.split("x"),a=P()(r,2),i=a[0],c=a[1];i=O.a.px(+i),c=O.a.px(+c),n.reset({width:i,height:c}),t.selection.select(n),C(t)}},setAttribute:V,setAttributeForMulti:ue,sortBottom:te,sortCenter:Zt,sortLeft:Qt,sortMiddle:Jt},m()(pe,"sortBottom",te),m()(pe,"sortTop",ee),m()(pe,"sortRight",ne),m()(pe,"sameWidth",{command:"same.width",execute:function(t){if(t.selection.isMany){var e=t.selection.allRect;t.selection.each((function(t){t.setScreenX(e.x.value),t.width.set(e.width.value)}))}}}),m()(pe,"sameHeight",{command:"same.width",execute:function(t){var e=t.selection.items.length;if(1==e);else if(e>1){var n=t.selection.allRect;t.selection.each((function(t){t.setScreenY(n.y.value),t.height.set(n.height.value)}))}t.emit("resetSelection")}}),m()(pe,"updatePathItem",ye),m()(pe,"updateClipPath",{command:"updateClipPath",description:"update clip-path property ",execute:function(t,e){t.command("setAttribute","change clip-path",{"clip-path":"path(".concat(e.d,")")})}}),pe),Se=function(){function t(e){c()(this,t),this.$editor=e,this.loadCommands()}return s()(t,[{key:"loadCommands",value:function(){var t=this;Object.keys(Ve).forEach((function(e){Object(u.isFunction)(Ve[e])?t.registerCommand(e,Ve[e]):t.registerCommand(Ve[e])}))}},{key:"registerCommand",value:function(t,e){var n=this;if(2===arguments.length){var r=function(){for(var t,r=arguments.length,a=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:"keydown",r=this.checkShortCut(this.makeKeyCodeString(t),this.makeKeyString(t),this.makeCodeString(t));if(r){var i=r.filter((function(t){return t.eventType===n})).filter((function(t){return e.checkWhen(t)}));i.length&&t.preventDefault(),i.forEach((function(n){var r;(r=e.$editor).emit.apply(r,[n.command].concat(a()(n.args),[t]))}))}}}]),t}(),Ae=function(){function t(e){c()(this,t),this.editor=e,this.config=new Map,this.initialize()}return s()(t,[{key:"initialize",value:function(){this.set("canvas.width",1e4),this.set("canvas.height",1e4),this.set("body.move.ms",30),this.set("grid.preview.position",[]),this.set("debug",!1),this.set("fixedAngle",15),this.set("ruler.show",!0),this.set("show.left.panel",!0),this.set("show.right.panel",!0)}},{key:"get",value:function(t){return this.config[t]}},{key:"set",value:function(t,e){this.config[t]!=e&&(this.config[t]=e,this.editor.emit("config:"+t))}},{key:"toggle",value:function(t){this.set(t,!this.get(t))}},{key:"true",value:function(t){return!0===this.get(t)}},{key:"false",value:function(t){return!1===this.get(t)}},{key:"remove",value:function(t){delete this.config[t],this.editor.emit("config:"+t)}}]),t}(),Ee=function(){function t(e){c()(this,t),this.$editor=e,this.currentIndex=-1,this.undoHistories=[],this.redoHistories=[],this.selection={}}return s()(t,[{key:"length",get:function(){return this.undoHistories.length}},{key:"selectedIds",get:function(){return Object.keys(this.selection)}},{key:"createCommand",value:function(t){return this.$editor.isPointerUp?"history.".concat(t):t}},{key:"saveSelection",value:function(){this.selection=this.$editor.selection.toCloneObject()}},{key:"getUndoValues",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={};return Object.keys(this.selection).forEach((function(r){n[r]={},Object.keys(e).forEach((function(e){n[r][e]=t.selection[r][e]}))})),n}},{key:"getUndoValuesForMulti",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={};return Object.keys(e).forEach((function(r){n[r]={};var a=t.selection[r]||t.$editor.selection.itemsByIds(r)[0],i=e[r];Object.keys(i).forEach((function(t){n[r][t]=a[t]}))})),n}},{key:"add",value:function(t,e,n){var r={message:t,command:e,data:n};return this.undoHistories.push(r),this.currentIndex++,this.undoHistories.length=this.currentIndex+1,this.$editor.emit("refreshHistory"),r}},{key:"map",value:function(t){return[].concat(a()(this.undoHistories.map(t)),["-"],a()(this.redoHistories.map(t))).reverse()}},{key:"undo",value:function(){var t=this;if(!(this.currentIndex<-1)){this.currentIndex--;var e=this.undoHistories.pop();e&&e.command&&e.command.undo(this.$editor,e.data),this.$editor.nextTick((function(){t.$editor.emit("refreshHistory")}))}}},{key:"redo",value:function(){var t=this;if(!(this.currentIndex>this.length)){this.currentIndex<0&&this.currentIndex++;var e=this.undoHistories[this.currentIndex];e&&e.command&&(e.command.redo(this.$editor,e.data),this.$editor.debug(e)),this.$editor.nextTick((function(){t.$editor.emit("refreshHistory")}))}}}]),t}(),Ie=w.d.fromValues(0,0,0);function De(t,e){return Math.abs(t[0]-e[0])<1}function Fe(t,e){return Math.abs(t[1]-e[1])<1}var _e=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;c()(this,t),this.editor=e,this.map=new Map,this.snapTargetLayers=[],this.snapDistance=n}return s()(t,[{key:"clear",value:function(){var t=this;this.snapTargetLayers=this.editor.selection.snapTargetLayers.map((function(e){return t.convertMatrix(e)}))}},{key:"convertMatrix",value:function(t){var e=this.convertGuideAndPathMatrix(t),n=e.map((function(t){return t[0]})),r=e.map((function(t){return t[1]}));return{id:t.id,xList:n,yList:r,verties:e}}},{key:"convertGuideAndPathMatrix",value:function(t){var e=t.guideVerties(),n=t.pathVerties();return[].concat(a()(e),a()(n))}},{key:"getSnapPoints",value:function(){var t=this,e=[];return this.editor.selection.snapTargetLayersWithSelection.forEach((function(n){e.push.apply(e,t.convertGuideAndPathMatrix(n))})),e}},{key:"checkX",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[];return t.forEach((function(t,a){e.forEach((function(e,i){var c=t-e;Math.abs(c)<=n&&r.push({targetX:t,sourceX:e,sourceIndex:i,targetIndex:a,dx:c})}))})),r}},{key:"checkY",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[];return t.forEach((function(t,a){e.forEach((function(e,i){var c=t-e;Math.abs(c)<=n&&r.push({targetY:t,sourceY:e,sourceIndex:i,targetIndex:a,dy:c})}))})),r}},{key:"check",value:function(t){var e=this,n=[],r=this.snapDistance,a=t.map((function(t){return t[0]})),i=t.map((function(t){return t[1]}));return this.snapTargetLayers.forEach((function(t){var c=e.checkX(t.xList,a,r)[0],o=e.checkY(t.yList,i,r)[0];n.push(w.d.fromValues(c?c.dx:0,o?o.dy:0,0))})),n.find((function(t){return Object(u.isNotZero)(t[0])||Object(u.isNotZero)(t[1])}))||Ie}},{key:"checkPoint",value:function(t){var e=this.check([t]);return w.d.add([],t,e)}},{key:"getGuidesByPointPoint",value:function(t,e){for(var n,r,a=[],i=0,c=t.length;i1&&void 0!==arguments[1]?arguments[1]:-.2,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=w.d.lerp([],t[0],t[2],.5),a=w.d.dist(t[0],t[1]),i=w.d.dist(t[0],t[3]),c=w.d.lerp([],this.verties[0],this.verties[2],.5),o=w.d.dist(this.verties[0],this.verties[1]),s=w.d.dist(this.verties[0],this.verties[3]),l=n?Math.min(o/a,s/i)+e:1;this.setTranslate(w.d.add([],this.translate,w.d.subtract([],c,r))),this.setTransformOrigin(r),this.setScale(this.scale*l),this.editor.emit("updateViewport")}},{key:"pos",get:function(){return[(this.mouse[0]-this.verties[0][0])/(this.verties[2][0]-this.verties[0][0])*100,(this.mouse[1]-this.verties[0][1])/(this.verties[2][1]-this.verties[0][1])*100,0]}},{key:"minX",get:function(){return this.verties[0][0]}},{key:"maxX",get:function(){return this.verties[2][0]}},{key:"minY",get:function(){return this.verties[0][1]}},{key:"maxY",get:function(){return this.verties[2][1]}},{key:"center",get:function(){return this.verties[4]}},{key:"height",get:function(){return this.maxY-this.minY}},{key:"width",get:function(){return this.maxX-this.minX}},{key:"applyVertex",value:function(t){return w.d.transformMat4([],t,this.matrix)}},{key:"applyVertexInverse",value:function(t){return w.d.transformMat4([],t,this.matrixInverse)}},{key:"applyVerties",value:function(t){return Object(l.vertiesMap)(t,this.matrix)}},{key:"applyScaleVerties",value:function(t){return Object(l.vertiesMap)(t,this.scaleMatrix)}},{key:"applyVertiesInverse",value:function(t){return Object(l.vertiesMap)(t,this.matrixInverse)}},{key:"applyScaleVertiesInverse",value:function(t){return Object(l.vertiesMap)(t,this.scaleMatrixInverse)}},{key:"createAreaVerties",value:function(t,e,n,r){return this.applyVertiesInverse(Object(k.f)(t,e,n,r))}}]),t}(),Ne=n(10),Ye=n.n(Ne),Ue=n(5),Ke=n.n(Ue),qe=n(6),We=n.n(qe),Ze=n(0),Qe=n.n(Ze),Je=function(){function t(){c()(this,t)}var e,n;return s()(t,[{key:"render",value:(n=F()(X.a.mark((function t(e,n){return X.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.toCloneObject(e,n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"toCloneObject",value:(e=F()(X.a.mark((function t(e,n){var r,a,i,c;return X.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(r=e.attrs("itemType","elementType","type","visible","lock","selected")).referenceId=e.id,r.newTargetId=Object(l.uuid)(),a=[],i=0,c=e.layers.length;case 5:if(!(i0&&void 0!==c[0]?c[0]:"",!(n=this.editor.selection.current)){t.next=13;break}return t.next=5,this.getArtboardList();case 5:return r=t.sent,t.next=8,dr.render(n);case 8:return(i=t.sent).x="0px",i.y="0px",t.next=13,this.setArtboardList([].concat(a()(r),[{id:Object(l.uuid)(),preview:e,artboard:i}]));case 13:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"saveCustomComponent",value:(r=F()(X.a.mark((function t(){var e,n,r,i,c=arguments;return X.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:"",!(n=this.editor.selection.current)){t.next=13;break}return t.next=5,this.getCustomComponentList();case 5:return r=t.sent,t.next=8,dr.render(n);case 8:return(i=t.sent).x="0px",i.y="0px",t.next=13,this.setCustomComponentList([].concat(a()(r),[{id:Object(l.uuid)(),preview:e,component:i}]));case 13:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"removeArtboard",value:(n=F()(X.a.mark((function t(e){var n;return X.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getArtboardList();case 2:return n=t.sent,t.next=5,this.setArtboardList(n.filter((function(t){return t.id!==e})));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"removeCustomComponent",value:(e=F()(X.a.mark((function t(e){var n;return X.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getCustomComponentList();case 2:return n=t.sent,t.next=5,this.setCustomComponentList(n.filter((function(t){return t.id!==e})));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}(),vr=n(12),yr=function(){function t(){c()(this,t)}var e;return s()(t,[{key:"load",value:(e=F()(X.a.mark((function t(){var e,n,r,a,i,c,o,s=arguments;return X.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]?s[0]:"default",!vr.a[e]){t.next=8;break}for(r=s.length,a=new Array(r>1?r-1:0),i=1;i-1&&(t=t.replace(new RegExp("#".concat(r.id),"g"),r.local))})),t}}]),t}(),gr=n(99),br=n(95),kr=function(){function t(e){c()(this,t),this.editor=e,this.menuItems={}}return s()(t,[{key:"registerMenuItem",value:function(t,e){var n=this;this.menuItems[t]||(this.menuItems[t]=[]),Object.keys(e).forEach((function(r){n.menuItems[t].push({refClass:r,class:e[r]})}))}},{key:"getTargetMenuItems",value:function(t){return this.menuItems[t]||[]}}]),t}(),xr="SELECTION",Or=new(function(){function t(){c()(this,t),this.EDITOR_ID=Object(l.uuid)(),this.projects=[],this.popupZIndex=1e4,this.canvasWidth=1e5,this.canvasHeight=1e5,this.symbols={},this.images={},this.openRightPanel=!0,this.mode=xr,this.modeView="CanvasView",this.addComponentType="",this.locale=this.loadItem("locale")||"en_US",this.layout=this.loadItem("layout")||"all",this.loadManagers()}return s()(t,[{key:"loadManagers",value:function(){this.store=new h(this),this.config=new Ae(this),this.snapManager=new _e(this),this.commands=new Se(this),this.shortcuts=new Be(this),this.selection=new z(this),this.timeline=new b(this),this.history=new Ee(this),this.keyboardManager=new Xe(this),this.viewport=new Ge(this),this.storageManager=new pr(this),this.cursorManager=new yr(this),this.assetManager=new mr(this),this.menuItemManager=new kr(this),this.components=M.a,this.plugins=gr.a,this.renderers=br.a,this.initTheme(),this.initPlugins(),this.initData()}},{key:"initData",value:function(){this.projects=[this.createProject()],this.selection.selectProject(this.projects[0])}},{key:"createProject",value:function(){return this.createItem({itemType:"project"})}},{key:"i18n",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return p.get(t,e,n||this.locale)}},{key:"hasI18nkey",value:function(t,e){return p.hasKey(t,e||this.locale)}},{key:"initI18n",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,i="".concat(e,".").concat(n);return t.hasI18nkey(i,a)?t.$i18n("".concat(e,".").concat(n),r,a):t.$i18n("".concat(n),r,a)}}},{key:"setLocale",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US";this.locale=t,this.saveItem("locale",this.locale)}},{key:"setLayout",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";this.layout=t,this.saveItem("layout",this.layout)}},{key:"setUser",value:function(t){this.user=t}},{key:"initTheme",value:function(){var t="dark";window.localStorage&&(t=window.localStorage.getItem("easylogic.studio.theme"),t=["dark","light","toon"].includes(t)?t:"dark"),this.theme=t||"dark",window.localStorage.setItem("easylogic.studio.theme",this.theme)}},{key:"initPlugins",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.plugins.initializePlugin(this,t)}},{key:"themeValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return v[this.theme][t]||e}},{key:"changeMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xr;this.mode=t}},{key:"changeModeView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"CanvasView";this.modeView=t}},{key:"isMode",value:function(t){return this.mode===t}},{key:"isAddMode",value:function(){return this.isMode("ADD")}},{key:"isSelectionMode",value:function(){return this.isMode(xr)}},{key:"changeAddType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.changeMode("ADD"),this.addComponentType=t,this.isComponent=e}},{key:"changeTheme",value:function(t){t=["light","toon"].includes(t)?t:"dark",this.theme=t,window.localStorage.setItem("easylogic.studio.theme",t)}},{key:"zIndex",get:function(){return this.popupZIndex++}},{key:"isPointerUp",get:function(){return!this.config.get("bodyEvent")||"pointerup"===this.config.get("bodyEvent").type}},{key:"isPointerMove",get:function(){return!!this.config.get("bodyEvent")&&"pointermove"===this.config.get("bodyEvent").type}},{key:"getFile",value:function(t){return this.images[t]||t}},{key:"setStore",value:function(t){this.store=t}},{key:"emit",value:function(){var t;this.store.source="EDITOR_ID",(t=this.store).emit.apply(t,arguments)}},{key:"on",value:function(){var t;(t=this.store).on.apply(t,arguments)}},{key:"off",value:function(){var t;(t=this.store).off.apply(t,arguments)}},{key:"offAll",value:function(){var t;(t=this.store).offAll.apply(t,arguments)}},{key:"debug",value:function(){var t;this.config.get("debug")&&(t=console).log.apply(t,arguments)}},{key:"command",value:function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a0&&void 0!==arguments[0]?arguments[0]:[];this.projects=t}},{key:"add",value:function(t){return this.projects.push(t),t}},{key:"remove",value:function(t){this.projects.splice(t,1)}},{key:"clear",value:function(){this.projects=[]}},{key:"get",value:function(t){return this.projects[t]}},{key:"replaceLocalUrltoRealUrl",value:function(t){var e=this.selection.currentProject,n={};return e.images.forEach((function(e){t.indexOf(e.local)>-1&&(n[e.local]=e.original)})),Object.keys(n).forEach((function(e){t.indexOf(e)>-1&&(t=t.replace(new RegExp(e,"g"),n[e]))})),t}},{key:"replaceLocalUrltoId",value:function(t){var e=this.projects,n={};return e.forEach((function(e){e.images.forEach((function(e){t.indexOf(e.local)>-1&&(n[e.local]="#"+e.id)}))})),Object.keys(n).forEach((function(e){t.indexOf(e)>-1&&(t=t.replace(new RegExp(e,"g"),n[e]))})),t}},{key:"makeResource",value:function(t){var e=JSON.stringify(t);return e=this.replaceLocalUrltoId(e)}},{key:"serialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[];return t.forEach((function(t){var n=t.toJSON();n._parentId=t.parent?t.parent.id:void 0,n._positionInParent=t.positionInParent,e.push(n)})),JSON.stringify(e)}},{key:"createItem",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t._parentId&&(t.parent=this.searchItem(t._parentId),delete t._parentId),t.layers=(t.layers||[]).map((function(t){return e.createItem(t)}));var r=this.components.createComponent(t.itemType,t);return n&&r.parent.setPositionInPlace(t._positionInParent,r),r}},{key:"searchItem",value:function(t){var e=[];return Object(u.isString)(t)?e.push(t):Object(u.isArray)(t)&&(e=a()(t)),this.selection.currentProject.getSearchedIndexItemList(e).filter(Boolean)[0]}},{key:"deserialize",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=JSON.parse(t)||[];return r.map((function(t){return e.createItem(t,n)}))}},{key:"saveResource",value:function(t,e){window.localStorage.setItem("easylogic.studio.".concat(t),this.makeResource(e))}},{key:"saveItem",value:function(t,e){window.localStorage.setItem("easylogic.studio.".concat(t),JSON.stringify(e))}},{key:"loadResource",value:function(t){return this.assetManager.revokeResource(window.localStorage.getItem("easylogic.studio.".concat(t)))}},{key:"loadItem",value:function(t){return JSON.parse(window.localStorage.getItem("easylogic.studio.".concat(t))||JSON.stringify(""))}},{key:"registElement",value:function(t){Object(f.a)(t)}},{key:"registerMenuItem",value:function(t,e){this.menuItemManager.registerMenuItem(t,e),this.registElement(e)}},{key:"registerComponent",value:function(t,e){this.components.registerComponent(t,e)}},{key:"registerItem",value:function(t,e){this.registerComponent(t,e)}},{key:"registerInspector",value:function(t,e){this.components.registerInspector(t,e)}},{key:"registerRenderer",value:function(t,e,n){this.renderers.registerRenderer(t,e,n)}},{key:"registerCommand",value:function(t){this.commands.registerCommand(t)}},{key:"registerShortCut",value:function(t){this.shortcuts.registerShortCut(t)}},{key:"registerPlugin",value:function(t){gr.a.registerPlugin(t)}},{key:"registerPluginList",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){return t.registerPlugin(e)}))}}]),t}())},function(t,e,n){"use strict";var r=n(8),a=n(84),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=function(){function t(e,n){c()(this,t),this.project=e,this.artboard=n}return s()(t,[{key:"generateCode",value:function(){var t=this,e=this.project.getSelectedTimelineLastTime(),n=this.project.getSelectedTimeline(),r=[],a={};n&&(n.animations.forEach((function(e){var n=t.project.searchById(e.id),a=e.properties.map((function(t){var e=t.property;switch(e){case"x":e="left";break;case"y":e="top"}return{property:e,keyframes:t.keyframes.map((function(t){return{time:1e3*t.time,value:t.value,timing:t.timing}}))}}));r.push.apply(r,n.toAnimationKeyframes(a).filter((function(t){return t.properties.length})))})),a={duration:1e3*e,iterationCount:n.iterationCount,fps:n.fps,speed:n.speed,direction:n.direction});return r=JSON.stringify(r,null,4),a=JSON.stringify(a,null,4),"\nvar player = new anipa.Player(".concat(r,", ").concat(a,");\nplayer.play();\n")}}]),t}(),u=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"anipa";switch(n){case"anipa":return new l(t,e).generateCode()}return""};e.a={makeProjectStyle:function(t){var e=t.toKeyframeString(),n=t.toRootVariableCSS();return"\n :root {\n ".concat(Object(r.CSS_TO_STRING)(n),"\n }\n /* keyframe */\n ").concat(e,"\n ")},makeStyle:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t.is("project"))return this.makeProjectStyle(t);var r=t.generateView("[data-id='".concat(t.id,"']"),n);return"\n ".concat(r,"\n ")+t.layers.map((function(t){return e.makeStyle(t)})).join("")},makeSvg:function(t){var e=t.toSVGString?t.toSVGString():"";return"\n ".concat(e?''.concat(e,""):"","\n ")},generate:function(t){var e=t.selection.currentProject,n=t.selection.current,r=n.artboard,a="".concat(this.makeStyle(e)),i="\n".concat(r.html,"\n").concat(this.makeSvg(e),"\n "),c="";return i=t.replaceLocalUrltoRealUrl(i),a=t.replaceLocalUrltoRealUrl(a),n.is("artboard")&&(c=t.replaceLocalUrltoRealUrl(u(n,"anipa"))),{html:i,css:a,js:c}},generateSVG:function(t,e){return t.replaceLocalUrltoRealUrl(a.a.render(e,null,!0))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return qt})),n.d(e,"b",(function(){return Wt})),n.d(e,"c",(function(){return Zt}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(31),g=n(14),b=n(8);function k(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 x(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=Object(g.uuidShort)();return u()(y()(n.prototype),"getDefaultObject",this).call(this,x({itemType:"svgfilter",id:e,in:[],bound:{x:100,y:100,targetX:0,targetY:0},connected:[]},t))}},{key:"getInCount",value:function(){return 0}},{key:"setIn",value:function(t,e){this.json.in[t]={id:e.id,type:e.type}}},{key:"setConnected",value:function(t){0===this.json.connected.filter((function(e){return e.id===t.id})).length&&this.json.connected.push({id:t.id})}},{key:"convert",value:function(t){return Object(b.isString)(t.in)&&(t.in=JSON.parse(t.in)),Object(b.isString)(t.bound)&&(t.bound=JSON.parse(t.bound)),Object(b.isString)(t.connected)&&(t.connected=JSON.parse(t.connected)),t}},{key:"toCloneObject",value:function(){return x(x({},u()(y()(n.prototype),"toCloneObject",this).call(this)),this.attrs("id","in","bound","connected"))}},{key:"getDefaultAttribute",value:function(){var t=this,e=[];return this.json.connected.length&&e.push('result="'.concat(this.json.id,'result"')),Object.keys(j).filter((function(e){return!!t.json[e]})).forEach((function(n){e.push("".concat(n,'="').concat(t.json[n],'"'))})),e.join(" ")+" "+this.getSourceInAttribute()}},{key:"hasInIndex",value:function(){return!1}},{key:"getSourceInAttribute",value:function(t){var e=this;return(t||this.json.in).map((function(t,n){if(!t)return"";var r=0===n?"":n+1+"";return e.hasInIndex()||(r=""),w.includes(t.type)?"in".concat(r,'="').concat(t.type,'"'):"in".concat(r,'="').concat(t.id,'result"')})).join(" ")}},{key:"toString",value:function(){var t=this.json,e=t.type,n=t.value;return"")}}],[{key:"parse",value:function(t){return new(0,Wt[t.type])(t)}}]),n}(m.a),M=n(4);function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var S=function(t){f()(n,t);var e=V(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"RotaMatrix",hueRotate:n.spec.hueRotate.defaultValue})}},{key:"convert",value:function(t){return t.hueRotate=M.a.parse(t.hueRotate),t}},{key:"toString",value:function(){var t=this.json,e=t.id,n=t.hueRotate;return'\n \n \n ')}}]),n}(z);function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}S.spec={hueRotate:{title:"hue-rotate",inputType:"number-range",min:0,max:360,step:1,defaultValue:M.a.number(0)}};var C=function(t){f()(n,t);var e=P(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Merge"})}},{key:"getInCount",value:function(){return 3}},{key:"getDefaultAttribute",value:function(){var t=[];return this.json.connected.length&&t.push('result="'.concat(this.json.id,'result"')),t.join(" ")}},{key:"toString",value:function(){var t=this,e=this.json.in;return"\n \n ").concat(e.map((function(e){return"")})).join(""),"\n ")}}]),n}(z);function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}C.spec={};var H=function(t){f()(n,t);var e=R(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Composite",operator:n.spec.operator.defaultValue,k1:n.spec.k1.defaultValue,k2:n.spec.k2.defaultValue,k3:n.spec.k3.defaultValue,k4:n.spec.k4.defaultValue})}},{key:"getInCount",value:function(){return 2}},{key:"toString",value:function(){var t=this.json,e=t.operator,n=t.k1,r=t.k2,a=t.k3,i=t.k4,c="";return"arithmetic"===e&&(c=' k1="'.concat(n,'" k2="').concat(r,'" k3="').concat(a,'" k4="').concat(i,'" ')),'")}},{key:"hasInIndex",value:function(){return!0}}]),n}(z);function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}H.spec={operator:{title:"operator",inputType:"select",options:"over,in,out,atop,xor,arithmetic",defaultValue:"over"},k1:{title:"k1",inputType:"number-range",min:0,max:1,step:.01,defaultValue:M.a.number(0)},k2:{title:"k2",inputType:"number-range",min:0,max:1,step:.01,defaultValue:M.a.number(0)},k3:{title:"k3",inputType:"number-range",min:0,max:1,step:.01,defaultValue:M.a.number(0)},k4:{title:"k4",inputType:"number-range",min:0,max:1,step:.01,defaultValue:M.a.number(0)}};var L=function(t){f()(n,t);var e=$(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Morphology",operator:n.spec.operator.defaultValue,radius:n.spec.radius.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"toString",value:function(){var t=this.json,e=t.operator,n=t.radius;return'")}}]),n}(z);function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}L.spec={operator:{title:"Operator",inputType:"select",options:"erode,dilate",defaultValue:"erode"},radius:{title:"Radius",inputType:"number-range",min:0,max:100,step:1,defaultValue:M.a.number(0)}};var B=function(t){f()(n,t);var e=T(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Turbulence",filterType:n.spec.filterType.defaultValue,baseFrequency:n.spec.baseFrequency.defaultValue,numOctaves:n.spec.numOctaves.defaultValue,seed:n.spec.seed.defaultValue})}},{key:"convert",value:function(t){return t.baseFrequency=M.a.parse(t.baseFrequency),t.numOctaves=M.a.parse(t.numOctaves),t.seed=M.a.parse(t.seed),t}},{key:"toString",value:function(){var t=this.json,e=t.filterType,n=t.baseFrequency,r=t.numOctaves,a=t.seed;return"")}}]),n}(z);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}B.spec={filterType:{title:"Type",inputType:"select",options:"fractalNoise,turbulence",defaultValue:"turbulence"},baseFrequency:{title:"Frequency",inputType:"number-range",min:0,max:1,step:.01,defaultValue:M.a.number(0)},numOctaves:{title:"Octaves",inputType:"number-range",min:1,max:10,step:1,defaultValue:M.a.number(1)},seed:{title:"Seed",inputType:"number-range",min:0,max:1e4,step:1,defaultValue:M.a.number(0)}};var E=function(t){f()(n,t);var e=A(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"DisplacementMap",scale:n.spec.scale.defaultValue})}},{key:"getInCount",value:function(){return 2}},{key:"convert",value:function(t){return t.scale=M.a.parse(t.scale),t}},{key:"toString",value:function(){var t=this.json.scale,e=t.value?'scale="'.concat(t,'"'):"";return"")}},{key:"hasInIndex",value:function(){return!0}}]),n}(z);function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}E.spec={scale:{title:"scale",inputType:"number-range",min:0,max:5e3,step:1,defaultValue:M.a.number(0)}};var D=function(t){f()(n,t);var e=I(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"ColorMatrix",values:n.spec.values.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"toString",value:function(){var t=this.json.values.join(" ");return'")}}]),n}(z);function F(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}D.spec={values:{title:"values",inputType:"color-matrix",column:5,defaultValue:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]}};var _=function(t){f()(n,t);var e=F(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"ConvolveMatrix",kernelMatrix:n.spec.kernelMatrix.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"toString",value:function(){var t=this.json.kernelMatrix.join(" ");return'")}}]),n}(z);function X(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}_.spec={kernelMatrix:{title:"kernelMatrix",inputType:"input-array",column:3,defaultValue:[1,0,0,0,1,0,0,0,1]}};var G=function(t){f()(n,t);var e=X(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"GaussianBlur",stdDeviationX:n.spec.stdDeviationX.defaultValue,stdDeviationY:n.spec.stdDeviationY.defaultValue,edgeMode:n.spec.edgeMode.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"convert",value:function(t){return t.stdDeviationX=M.a.parse(t.stdDeviationX),t.stdDeviationY=M.a.parse(t.stdDeviationY),t}},{key:"toString",value:function(){var t=this.json,e=t.stdDeviationX,n=t.stdDeviationY,r=t.edgeMode,a="".concat(e," ").concat(n);return e===n&&(a=e),'")}}]),n}(z);function N(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}G.spec={stdDeviationX:{title:"X",inputType:"number-range",min:0,max:100,step:1,defaultValue:M.a.number(0)},stdDeviationY:{title:"Y",inputType:"number-range",min:0,max:100,step:1,defaultValue:M.a.number(0)},edgeMode:{title:"edge",inputType:"select",options:"none,duplicate,wrap",defaultValue:"none"}};var Y=function(t){f()(n,t);var e=N(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Flood",x:n.spec.x.defaultValue,y:n.spec.y.defaultValue,width:n.spec.width.defaultValue,height:n.spec.height.defaultValue,color:n.spec.color.defaultValue,opacity:n.spec.opacity.defaultValue})}},{key:"convert",value:function(t){return t.x=M.a.parse(t.x),t.y=M.a.parse(t.y),t.width=M.a.parse(t.width),t.height=M.a.parse(t.height),t}},{key:"toString",value:function(){var t=this.json,e=t.opacity,n=t.color,r=t.x,a=t.y,i=t.width,c=t.height;return"")}}]),n}(z);Y.spec={x:{title:"X",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},y:{title:"Y",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},width:{title:"width",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},height:{title:"height",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},opacity:{title:"opacity",inputType:"number-range",min:0,max:1,step:.01,defaultValue:M.a.number(0)},color:{title:"color",inputType:"color",defaultValue:"rgba(0, 0, 0, 1)"}};var U=n(13),K=n.n(U),q=n(45),W=n.n(q);function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var Q=function(t){f()(n,t);var e=Z(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"ComponentTransfer",r:n.spec.r.defaultValue,g:n.spec.g.defaultValue,b:n.spec.b.defaultValue,a:n.spec.a.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"parse",value:function(t){var e=t.split(" "),n=W()(e),r=n[0],a=n.slice(1);if("table"===r||"discrete"===r)return{type:r,tableValues:a.join(" ")};if("linear"===r){var i=K()(a,2);return{type:r,slop:i[0],intercept:i[1]}}if("gamma"===r){var c=K()(a,3);return{type:r,amplitude:c[0],exponent:c[1],offset:c[2]}}return{type:r}}},{key:"toString",value:function(){var t=this.json,e=t.r,n=t.g,r=t.b,a=t.a;return e=this.parse(e),n=this.parse(n),r=this.parse(r),a=this.parse(a),"\n ").concat(e&&""),"\n ").concat(n&&""),"\n ").concat(r&&""),"\n ").concat(a&&""),"\n ")}}]),n}(z);function J(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}Q.spec={r:{title:"R",inputType:"FuncFilter",defaultValue:"identity"},g:{title:"G",inputType:"FuncFilter",defaultValue:"identity"},b:{title:"B",inputType:"FuncFilter",defaultValue:"identity"},a:{title:"A",inputType:"FuncFilter",defaultValue:"identity"}};var tt=function(t){f()(n,t);var e=J(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"DistantLight",azimuth:n.spec.azimuth.defaultValue,elevation:n.spec.elevation.defaultValue})}},{key:"isLight",value:function(){return!0}},{key:"toString",value:function(){return""}},{key:"toLightString",value:function(){var t=this.json,e=t.azimuth,n=t.elevation;return"")}}]),n}(z);function et(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}tt.spec={azimuth:{title:"azimuth",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},elevation:{title:"elevation",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)}};var nt=function(t){f()(n,t);var e=et(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"PointLight",x:n.spec.x.defaultValue,y:n.spec.y.defaultValue,z:n.spec.z.defaultValue})}},{key:"isLight",value:function(){return!0}},{key:"toString",value:function(){return""}},{key:"toLightString",value:function(){var t=this.json,e=t.x,n=t.y,r=t.z;return"")}}]),n}(z);function rt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}nt.spec={x:{title:"x",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},y:{title:"y",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},z:{title:"z",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)}};var at=function(t){f()(n,t);var e=rt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"SpotLight",x:n.spec.x.defaultValue,y:n.spec.x.defaultValue,z:n.spec.x.defaultValue,pointsAtX:n.spec.pointsAtX.defaultValue,pointsAtY:n.spec.pointsAtY.defaultValue,pointsAtZ:n.spec.pointsAtZ.defaultValue,specularExponent:n.spec.specularExponent.defaultValue,limitingConeAngle:n.spec.limitingConeAngle.defaultValue})}},{key:"isLight",value:function(){return!0}},{key:"toString",value:function(){}},{key:"toLightString",value:function(){var t=this.json,e=t.x,n=t.y,r=t.z,a=t.pointsAtX,i=t.pointsAtY,c=t.pointsAtZ,o=t.specularExponent,s=t.limitingConeAngle;return"")}}]),n}(z);function it(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 ct(t){for(var e=1;e\n ").concat(this.json.lightInfo,"\n ")}}]),n}(z);function lt(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 ut(t){for(var e=1;e\n ").concat(this.json.lightInfo,"\n ")}},{key:"getSourceInAttribute",value:function(){return""}}]),n}(z);function dt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}ft.spec={surfaceScale:{title:"surfaceScale",inputType:"number-range",min:0,max:100,step:1,defaultValue:M.a.number(1)},specularConstant:{title:"Constant",inputType:"number-range",min:0,max:100,step:1,defaultValue:M.a.number(1)},specularExponent:{title:"Exponent",inputType:"number-range",min:0,max:100,step:1,defaultValue:M.a.number(1)},lightingColor:{title:"Lighting Color",inputType:"color",defaultValue:"rgba(0, 0, 0, 1)"}};var pt=function(t){f()(n,t);var e=dt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Offset",dx:n.spec.dx.defaultValue,dy:n.spec.dy.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"toString",value:function(){var t=this.json,e=t.dx,n=t.dy;return"")}}]),n}(z);function vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}pt.spec={dx:{title:"dx",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},dy:{title:"dy",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)}};var yt=function(t){f()(n,t);var e=vt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Blend",mode:n.spec.mode.defaultValue})}},{key:"getInCount",value:function(){return 2}},{key:"toString",value:function(){var t=this.json.mode;return"")}},{key:"hasInIndex",value:function(){return!0}}]),n}(z);function mt(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 gt(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return u()(y()(n.prototype),"getDefaultObject",this).call(this,gt({type:"Source"},t))}},{key:"isSource",value:function(){return!0}},{key:"toString",value:function(){return""}}]),n}(z);function xt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var Ot=function(t){f()(n,t);var e=xt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"SourceGraphic"})}}]),n}(kt);function wt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var jt=function(t){f()(n,t);var e=wt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"SourceAlpha"})}}]),n}(kt);function zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var Mt=function(t){f()(n,t);var e=zt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"BackgroundImage"})}}]),n}(kt);function Vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var St=function(t){f()(n,t);var e=Vt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"BackgroundAlpha"})}}]),n}(kt);function Pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var Ct=function(t){f()(n,t);var e=Pt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"FillPaint"})}}]),n}(kt);function Rt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var Ht=function(t){f()(n,t);var e=Rt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"StrokePaint"})}}]),n}(kt);function $t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var Lt=function(t){f()(n,t);var e=$t(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"DropShadow",dx:n.spec.dx.defaultValue,dy:n.spec.dy.defaultValue,stdDeviation:n.spec.stdDeviation.defaultValue,color:n.spec.color.defaultValue,opacity:n.spec.opacity.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"toString",value:function(){var t=this.json,e=t.dx,n=t.dy,r=t.stdDeviation,a=t.color,i=t.opacity;return"")}}]),n}(z);function Tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}Lt.spec={dx:{title:"dx",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},dy:{title:"dy",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},stdDeviation:{title:"stdDeviation",inputType:"number-range",min:0,max:1e3,step:.1,defaultValue:M.a.number(0)},opacity:{title:"opacity",inputType:"number-range",min:0,max:1,step:.01,defaultValue:M.a.number(1)},color:{title:"color",inputType:"color",defaultValue:"rgba(0, 0, 0, 1)"}};var Bt=function(t){f()(n,t);var e=Tt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Saturate",values:n.spec.values.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"toString",value:function(){var t=this.json.values;return'")}}]),n}(z);function At(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}Bt.spec={values:{title:"values",inputType:"number-range",min:-1,max:1,step:.01,defaultValue:M.a.number(0)}};var Et=function(t){f()(n,t);var e=At(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"HueRotate",values:n.spec.values.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"toString",value:function(){var t=this.json.values;return'")}}]),n}(z);function It(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}Et.spec={values:{title:"values",inputType:"number-range",min:0,max:360,step:.1,defaultValue:M.a.number(0)}};var Dt=function(t){f()(n,t);var e=It(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"LuminanceAlpha"})}},{key:"getInCount",value:function(){return 1}},{key:"toString",value:function(){return'")}}]),n}(z);function Ft(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}Dt.spec={};var _t=function(t){f()(n,t);var e=Ft(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Tile",x:n.spec.x.defaultValue,y:n.spec.y.defaultValue,width:n.spec.width.defaultValue,height:n.spec.height.defaultValue})}},{key:"getInCount",value:function(){return 1}},{key:"convert",value:function(t){return t.x=M.a.parse(t.x),t.y=M.a.parse(t.y),t.width=M.a.parse(t.width),t.height=M.a.parse(t.height),t}},{key:"toString",value:function(){var t=this.json,e=t.x,n=t.y,r=t.width,a=t.height;return"")}}]),n}(z);function Xt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}_t.spec={x:{title:"X",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},y:{title:"Y",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},width:{title:"width",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)},height:{title:"height",inputType:"number-range",min:0,max:1e3,step:1,defaultValue:M.a.number(0)}};var Gt=function(t){f()(n,t);var e=Xt(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"getDefaultObject",value:function(){return u()(y()(n.prototype),"getDefaultObject",this).call(this,{type:"Image",x:n.spec.x.defaultValue,y:n.spec.y.defaultValue,width:n.spec.width.defaultValue,height:n.spec.height.defaultValue,src:n.spec.src.defaultValue,alignment:n.spec.alignment.defaultValue,scaleing:n.spec.scaleing.defaultValue})}},{key:"convert",value:function(t){return t.x=M.a.parse(t.x),t.y=M.a.parse(t.y),t.width=M.a.parse(t.width),t.height=M.a.parse(t.height),t}},{key:"toString",value:function(){var t=this.json,e=t.src,n=t.x,r=t.y,a=t.width,i=t.height,c=t.alignment,o=t.scaleing;return"")}}]),n}(z);function Nt(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 Yt(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return u()(y()(n.prototype),"getDefaultObject",this).call(this,Yt({itemType:"svgfilter",result:""},t))}},{key:"getDefaultAttribute",value:function(){var t=this;return Kt.map((function(e){return"".concat(e,'="').concat(t.json[e],'"')})).join(" ")}},{key:"toString",value:function(){var t=this.json,e=t.type,n=t.value;return"")}}],[{key:"parse",value:function(t){return new(0,Wt[t.type])(t)}}]),n}(m.a),Wt={Image:Gt,Tile:_t,Saturate:Bt,HueRotate:Et,LuminanceAlpha:Dt,DropShadow:Lt,SourceGraphic:Ot,SourceAlpha:jt,BackgroundImage:Mt,BackgroundAlpha:St,FillPaint:Ct,StrokePaint:Ht,ComponentTransfer:Q,DistantLight:tt,PointLight:nt,SpotLight:at,DiffuseLighting:st,SpecularLighting:ft,Blend:yt,Offset:pt,RotaMatrix:S,GaussianBlur:G,Flood:Y,Merge:C,Composite:H,Morphology:L,Turbulence:B,DisplacementMap:E,ColorMatrix:D,ConvolveMatrix:_},Zt={Image:Gt.spec,Tile:_t.spec,DropShadow:Lt.spec,Saturate:Bt.spec,HueRotate:Et.spec,LuminanceAlpha:Dt.spec,Offset:pt.spec,ComponentTransfer:Q.spec,SpecularLighting:ft.spec,SpotLight:at.spec,PointLight:nt.spec,DistantLight:tt.spec,DiffuseLighting:st.spec,Blend:yt.spec,RotaMatrix:S.spec,Merge:C.spec,GaussianBlur:G.spec,Flood:Y.spec,Morphology:L.spec,Composite:H.spec,Turbulence:B.spec,DisplacementMap:E.spec,ColorMatrix:D.spec,ConvolveMatrix:_.spec}},function(t,e,n){"use strict";var r,a=n(7),i=n.n(a),c=(r={"app.title":"EASYLOGIC","app.sample":function(t,e,n){return"".concat(t,"-").concat(e,"-").concat(n)},"app.lang.en_US":"English","app.lang.ko_KR":"한국어","app.lang.fr_FR":"Français","app.label.lang":"Langue","app.layout.all":"All","app.layout.css":"CSS","app.layout.svg":"SVG","app.label.layout":"Menu Layout","app.theme.dark":"Sombre","app.theme.light":"Clair","app.theme.gray":"Gris","app.label.theme":"Thème","app.tab.title.projects":"Projets","app.tab.title.layers":"Objets","app.tab.title.libraries":"Librarie","app.tab.title.components":"Objet","app.tab.title.artboards":"Artboard","app.tab.title.assets":"Elements","app.tab.title.keyMap":"Clavier","app.confirm.message.artboard.items.removeArtboard":"Do you remove an artboard preview really?","app.confirm.message.custom-component.items.removeCustomComponent":"Do you remove a custom component preview really?","menu.item.download.title":"Télécharger","menu.item.save.title":"Enregistrer","menu.item.export.title":"Exporter","menu.item.codepen.title":"CodePen","menu.item.fullscreen.title":"Ecran","menu.item.shortcuts.title":"ShortCuts","menu.item.github.title":"Github","menu.item.learn.title":"Docs","menu.item.projects.title":"Projects","project.property.title":"Projet","project.information.property.title":"Information","project.information.property.name":"Nom","project.information.property.description":"Description","artboard.property.title":"Planche","artboard.property.layout.title.flex":"Flex","artboard.property.layout.title.grid":"Grille","layer.tree.property.title":"Objets","layer.tree.property.layout.title.flex":"Flex","layer.tree.property.layout.title.grid":"Grille","alignment.property.title":"Alignment","position.property.title":"Position","position.property.X":"X","position.property.Y":"Y","size.property.title":"Taille","position.property.width":"Largeur","position.property.height":"Hauteur","position.property.opacity":"Opacity","position.property.rotate":"Rotate","background.color.property.title":"Apparance","background.color.property.color":"Couleur","background.color.property.zindex":"z-index","background.color.property.opacity":"Opacité","background.color.property.blend":"Mélange","background.color.property.overflow":"Débordement","background.color.property.overflow.visible":"Visible","background.color.property.overflow.hidden":"Caché","background.color.property.overflow.scroll":"Scroll","background.color.property.overflow.auto":"Auto","blend.normal":"normal","blend.multiply":"multiplie","blend.screen":"écran","blend.overlay":"couche","blend.darken":"sombre","blend.lighten":"clair","blend.color-dodge":"dodge","blend.color-burn":"brulé","blend.hard-light":"dur","blend.soft-light":"doux","blend.difference":'diff"rence',"blend.exclusion":"exclusion","blend.hue":"teinte","blend.saturation":"saturation","blend.color":"couleur","blend.luminosity":"luminosité","background.image.property.title":"Remplissage","border.property.title":"Bordure","border.radius.property.title":"Rayon de bordure","boxshadow.property.title":"Ombres","filter.property.title":"Filtre","filter.property.blur":"Flou","filter.property.grayscale":"Echelle de gris","filter.property.hue-rotate":"Rotation teinte","filter.property.invert":"Invertir","filter.property.brightness":"Luminosité","filter.property.contrast":"Contraste","filter.property.drop-shadow":"Ombre portée","filter.property.drop-shadow.color":"Couleur","filter.property.drop-shadow.offsetX":"Décalage X","filter.property.drop-shadow.offsetY":"Décalage Y","filter.property.drop-shadow.blurRadius":"Flou","filter.property.opacity":"Opacité","filter.property.saturate":"Saturation","filter.property.sepia":"Sépia","filter.property.svg":"SVG","font.property.title":"Police","font.property.color":"Couleur","font.property.size":"Taille","font.property.stretch":"Etirement","font.property.weight":"Poids","font.property.style":"Style","font.property.family":"Famille","font.spacing.property.title":"Espaces du texte","font.spacing.property.lineHeight":"Hauteur de ligne","font.spacing.property.letterSpacing":"Espace inter-caractères","font.spacing.property.wordSpacing":"Espace inter-mots","font.spacing.property.indent":"Identation","backdrop.filter.property.title":"Filtre Backdrop","clippath.property.title":"Chemin du Clip","export.property.title":"Exporter","export.property.download":"Télécharger","iframe.property.title":"IFrame","image.property.title":"Image","image.property.origin":"Origine","image.property.size":"Taille","image.property.width":"Largeur","image.property.height":"Hauteur","video.property.title":"Video","video.property.play":"Jouer","video.property.pause":"Pause","video.property.volume":"Volume","video.property.playbackRate":"Vitesse de lecture","video.property.currentTime":"Temps actuel","video.property.playTime":"Temps de lecture","motion.property.title":"Mouvement","text.property.title":"Style Texte","text.property.align":"Alignement","text.property.transform":"Transformation","text.property.decoration":"Décoration","text.clip.property.title":"Clip Texte","text.shadow.property.title":"Ombres Texte","text.fill.property.title":"Remplissage Texte","text.fill.property.fill":"Remplissage","text.fill.property.stroke":"Trait","text.fill.property.strokeWidth":"Largeur","transform.property.title":"Transformation","transform.origin.property.title":"Origine Transformation","transition.property.title":"Transition CSS","keyframe.property.title":"Image clé CSS","selector.property.title":"Sélécteur","selector.property.none":"Aucun sélécteur","path.data.property.title":"Information Chemin","polygon.data.property.title":"Information Polygone","perspective.property.title":"Perspective","perspective.origin.property.title":"Origine Perspective","svg.item.property.title":"Appearance","svg.item.property.isMotionPath":"Chemin de mouvement","svg.item.property.fill":"Remplissage","svg.item.property.fillOpacity":"Opacité","svg.item.property.path":"Chemin","svg.item.property.polygon":"Polygone","svg.item.property.totalLength":"Longueur totale","svg.item.property.fillRule":"Règle remplissage","svg.item.property.stroke":"Trait","svg.item.property.strokeWidth":"Largeur de trait","svg.item.property.dashArray":"Suite tiret","svg.item.property.dashOffset":"Décalage tiret","svg.item.property.lineCap":"Chapeau Ligne","svg.item.property.lineJoin":"Jonction ligne","svg.item.property.filter":"Filtre","border.editor.all":"Tout","border.editor.width":"Largeur","border.editor.style":"Style","border.editor.color":"Couleur","border.editor.top":"Haut","border.editor.left":"Gauche","border.editor.right":"Droite","border.editor.bottom":"Bas","border.radius.editor.topLeft":"Haut gauche","border.radius.editor.topRight":"Haut droite","border.radius.editor.bottomLeft":"Bas gauche","border.radius.editor.bottomRight":"Bas droite","boxshadow.editor.blur":"Flou","boxshadow.editor.spread":"Etalement","css.property.editor.properties":"Propriétés","offset.path.list.editor.path":"Chemin","offset.path.list.editor.totalLength":"Longueur totale","offset.path.list.editor.distance":"Distance","offset.path.list.editor.direction":"Direction","offset.path.list.editor.rotate":"Rotation","svgfilter.select.editor.message.create":"Créer un filtre svg","svgfilter.select.editor.message.select":"Sélection filtre","fill.editor.message.click.image":"Cliquez sur aperçu si vous souhaitez sélectionner une image","fill.editor.message.drag.position":"Prendre pour changer la position centrale","fill.editor.x1":"Début X","fill.editor.x2":"Fin X","fill.editor.y1":"Début Y","fill.editor.y2":"Fin Y","fill.editor.spread":"Etalement","fill.editor.offset":"Décalage","fill.editor.cx":"Centre X","fill.editor.cy":"Centre Y","fill.editor.r":"Rayon de fin","fill.editor.fx":"Départ X","fill.editor.fy":"Départ Y","fill.editor.fr":"Rayon de départ","perspective.origin.editor.originX":"Origine X","perspective.origin.editor.originY":"Origine Y","path.manager.msg":"Appuyer ESC ou Entréz keypour fermer Edition","path.manager.mode.modify":"Modifier","path.manager.mode.path":"Chemin","path.manager.mode.transform":"Transformer","path.manager.mode.reverse":"Reverse","path.manager.mode.flipX":"Retouner X","path.manager.mode.flipY":"Retouner Y","path.manager.mode.flipOrigin":"Retouner Origine","colorpicker.popup.title":"Pipette","selector.popup.title":"Propiété de Sélecteur","selector.popup.selector":"Sélecteur","background.image.position.popup.title":"Motif de fond","background.image.position.popup.size":"Taille","background.image.position.popup.width":"Largeur","background.image.position.popup.height":"Hauteur","background.image.position.popup.repeat":"Repète","background.image.position.popup.blend":"Mélange","background.image.position.popup.type.repeat":"repète","background.image.position.popup.type.no-repeat":"sans repétition","background.image.position.popup.type.repeat-x":"repète-x","background.image.position.popup.type.repeat-y":"repète-y","background.image.position.popup.type.space":"espace","background.image.position.popup.type.round":"rond","gradient.picker.popup.title":"Sélection Gradient & Image","image.asset.property.title":"Image","video.asset.property.title":"Vidéo","color.asset.property.title":"Couleur","gradient.asset.property.title":"Gradient","pattern.asset.property.title":"Motif","svgfilter.asset.property.title":"Filtre SVG","inspector.tab.title.style":"Style","inspector.tab.title.component":"Composant","inspector.tab.title.transition":"Transition & Animation","inspector.tab.title.asset":"Eléments","inspector.tab.title.text":"Texte","inspector.tab.title.code":"Code","inspector.tab.title.history":"History"},i()(r,"inspector.tab.title.history","History"),i()(r,"timeline.property.title","Chronologie"),i()(r,"timeline.property.resize","Drag if you want to resize timeline height."),i()(r,"timeline.animation.property.title","Animations"),i()(r,"timeline.play.control.play","Jouer"),i()(r,"timeline.play.control.pause","Pause"),i()(r,"timeline.play.control.first","Premier"),i()(r,"timeline.play.control.prev","Précédent"),i()(r,"timeline.play.control.next","Suivant"),i()(r,"timeline.play.control.last","Dernier"),i()(r,"timeline.play.control.direction","Direction"),i()(r,"timeline.play.control.speed","Vitesse"),i()(r,"timeline.play.control.repeat","Répéter"),i()(r,"timeline.play.control.infinite","Infini"),i()(r,"timeline.play.control.normal","normal"),i()(r,"timeline.play.control.alternate","alternatif"),i()(r,"timeline.play.control.reverse","inverse"),i()(r,"timeline.play.control.alternate.reverse","inverse alternatif"),i()(r,"timeline.value.editor.value","Valeur"),i()(r,"timeline.value.editor.time","Temps"),i()(r,"timeline.value.editor.timing","Calage temps"),i()(r,"timeline.value.editor.offset.message","Please input enter key to change time offset."),i()(r,"svgfilter.popup.title","Filtre SVG"),i()(r,"css.item.rotate","Rotation"),i()(r,"css.item.rotateX","Rotation X"),i()(r,"css.item.rotateY","Rotation Y"),i()(r,"css.item.rotateZ","Rotation Z"),i()(r,"css.item.rotate3d","Rotation 3D"),i()(r,"css.item.skewX","Oblique X"),i()(r,"css.item.skewY","Oblique Y"),i()(r,"css.item.translate","Translation"),i()(r,"css.item.translateX","Translation X"),i()(r,"css.item.translateY","Translation Y"),i()(r,"css.item.translateZ","Translation Z"),i()(r,"css.item.translate3d","Translation 3D"),i()(r,"css.item.perspective","Perspéctive"),i()(r,"css.item.scale","Echelle"),i()(r,"css.item.scaleX","Echelle X"),i()(r,"css.item.scaleY","Echelle Y"),i()(r,"css.item.scaleZ","Echelle Z"),i()(r,"css.item.scale3d","Echelle 3D"),i()(r,"css.item.matrix","Matrice"),i()(r,"css.item.matrix3d","Matrice 3D"),i()(r,"animation.property.title","Animation CSS"),i()(r,"animation.property.direction","Direction"),i()(r,"animation.property.play.state","Etat lecture"),i()(r,"animation.property.fill.mode","Mode remplissage"),i()(r,"animation.property.delay","Délais"),i()(r,"animation.property.duration","Durée"),i()(r,"animation.property.iteration.count","Nombre Itérations"),i()(r,"animation.property.Select a keyframe","Selectionner une image clé"),i()(r,"animation.property.popup.title","Animation"),i()(r,"animation.property.popup.timing.function","Fonction temps"),i()(r,"animation.property.popup.keyframe","image clé"),i()(r,"animation.property.popup.direction","Direction"),i()(r,"animation.property.popup.play.state","Etat lecture"),i()(r,"animation.property.popup.fill.mode","Mode remplissage"),i()(r,"animation.property.popup.delay","Délais"),i()(r,"animation.property.popup.duration","Duréé"),i()(r,"animation.property.popup.iteration","Itération"),i()(r,"animation.property.popup.normal","normal"),i()(r,"animation.property.popup.reverse","inverse"),i()(r,"animation.property.popup.alternate","alternatif"),i()(r,"animation.property.popup.alternate-reverse","inverse alternatif"),i()(r,"animation.property.popup.none","Aucun"),i()(r,"animation.property.popup.forwards","en avant"),i()(r,"animation.property.popup.backwards","en arrière"),i()(r,"animation.property.popup.both","les deux"),i()(r,"animation.property.popup.Select a keyframe","Selectionner une image clé"),i()(r,"keyframe.popup.title","image clé"),i()(r,"code.view.property.title","Vue code"),i()(r,"svg.filter.editor.tab.filter","Filtrer"),i()(r,"svg.filter.editor.tab.preset","Pre-rempli"),i()(r,"svg.filter.editor.tab.asset","Eléments"),i()(r,"svg.filter.editor.GRAPHIC REFERENCES","REFERENCES GRAPHIQUES"),i()(r,"svg.filter.editor.SOURCES","SOURCES"),i()(r,"svg.filter.editor.MODIFIER","MODIFIER"),i()(r,"svg.filter.editor.LIGHTING","ECLAIRAGE"),i()(r,"svg.filter.editor.COMBINERS","COMBINER"),i()(r,"svg.filter.editor.Template","Modèle"),i()(r,"layout.property.title","Disposition"),i()(r,"layout.property.flex","Boîte Flex"),i()(r,"layout.property.grid","Grille"),i()(r,"layout.property.default","Défaut"),i()(r,"flex.layout.editor.row","Ligne"),i()(r,"flex.layout.editor.column","Colonne"),i()(r,"flex.layout.editor.row-reverse","Inverse ligne"),i()(r,"flex.layout.editor.column-reverse","Inverse Colonne"),i()(r,"flex.layout.editor.nowrap","Non-emballé"),i()(r,"flex.layout.editor.wrap","Emballé (wrap)"),i()(r,"flex.layout.editor.wrap-reverse","Inverse emballé"),i()(r,"flex.layout.editor.flex-start","Début"),i()(r,"flex.layout.editor.flex-end","Fin"),i()(r,"flex.layout.editor.center","Centrer"),i()(r,"flex.layout.editor.space-between","Entre"),i()(r,"flex.layout.editor.space-around","Autour"),i()(r,"flex.layout.editor.baseline","Base"),i()(r,"flex.layout.editor.stretch","Etirement"),i()(r,"flex.layout.editor.direction","Direction"),i()(r,"flex.layout.editor.justify-content","Justifier"),i()(r,"flex.layout.editor.align-items","Aligner objets"),i()(r,"flex.layout.editor.align-content","Aligner contenu"),i()(r,"flex.layout.item.property.title","Détail Disposition objet"),i()(r,"flex.layout.item.property.grow","Augmenter Flex"),i()(r,"flex.layout.item.property.shrink","Réduire Flex"),i()(r,"flex.layout.item.property.basis","Base Flex"),i()(r,"flex.layout.item.property.none","Aucun"),i()(r,"flex.layout.item.property.auto","auto"),i()(r,"flex.layout.item.property.value","valeur"),i()(r,"grid.layout.editor.template.columns","Colonne"),i()(r,"grid.layout.editor.column.gap","Espace Colonne"),i()(r,"grid.layout.editor.template.rows","Lignes"),i()(r,"grid.layout.editor.row.gap","Espace lignes"),i()(r,"grid.box.editor.box.title","Boîte"),i()(r,"grid.box.editor.type","Type"),i()(r,"grid.box.editor.repeat","Répéter"),i()(r,"grid.box.editor.length","Longueur"),i()(r,"grid.box.editor.none","Aucun"),i()(r,"grid.box.editor.auto","Auto"),i()(r,"grid.box.editor.count","Compte"),i()(r,"grid.box.editor.value","Taille"),i()(r,"grid.layout.item.property.title","Détail disposition objets"),i()(r,"grid.layout.item.property.column","Colonne"),i()(r,"grid.layout.item.property.row","Ligne"),i()(r,"grid.layout.item.property.start","Début"),i()(r,"grid.layout.item.property.end","Fin"),i()(r,"grid.layout.item.property.none","Aucun"),i()(r,"grid.layout.item.property.value","valeur"),i()(r,"box.model.property.title","Modèle"),i()(r,"box.model.property.margin","Marge"),i()(r,"box.model.property.padding","Espace"),i()(r,"component.items.canvas","Toile"),i()(r,"component.items.layer","Objet"),i()(r,"component.items.3dlayer","Objet 3D"),i()(r,"component.items.drawing","Dessin"),i()(r,"component.items.custom","Composant personnalisé"),i()(r,"component.items.chart","Chart"),i()(r,"component.items.plugin","Plugin"),i()(r,"svg.text.property.title","Style SVG Texte"),i()(r,"svg.text.property.textarea","Zone Texte"),i()(r,"svg.text.property.size","Taille"),i()(r,"svg.text.property.weight","Poids"),i()(r,"svg.text.property.style","Style"),i()(r,"svg.text.property.anchor","Ancre Texte"),i()(r,"svg.text.property.family","Famille"),i()(r,"svg.text.property.length.adjust","Ajusteement longueur"),i()(r,"svg.text.property.text.length","Ajusteement Texte"),i()(r,"svg.text.property.start.offset","Décallage départ"),i()(r,"fill.picker.popup.title","Sélection Fragment SVG"),i()(r,"gradient.editor.drag.message","Glisser pour déplacer centre."),i()(r,"draw.manager.tolerance","Tolérance"),i()(r,"pattern.property.title","Motif"),i()(r,"pattern.info.popup.title","Info Motif"),i()(r,"pattern.info.popup.width","Largeur"),i()(r,"pattern.info.popup.height","Hauteur"),i()(r,"pattern.info.popup.lineWidth","Largeur ligne"),i()(r,"pattern.info.popup.lineHeight","Hauteur de ligne"),i()(r,"pattern.info.popup.rotate","Rotatation"),i()(r,"pattern.info.popup.blend","Mélange"),i()(r,"pattern.info.popup.foreColor","Avant"),i()(r,"pattern.info.popup.backColor","Arrière"),i()(r,"stroke.dasharray.editor.add","Ajout tiret"),i()(r,"viewport.panning.enable","You can move the area by holding down space and dragging the screen."),r);e.a={en_US:{"app.title":"EASYLOGIC","app.sample":function(t,e,n){return"".concat(t,"-").concat(e,"-").concat(n)},"app.lang.en_US":"English","app.lang.ko_KR":"한국어","app.lang.fr_FR":"Français","app.label.lang":"Language","app.layout.all":"All","app.layout.css":"CSS","app.layout.svg":"SVG","app.label.layout":"Menu Layout","app.theme.dark":"Dark","app.theme.light":"Light","app.theme.toon":"Toon","app.theme.gray":"Gray","app.label.theme":"Theme","app.tab.title.projects":"Projects","app.tab.title.layers":"Layers","app.tab.title.libraries":"Library","app.tab.title.components":"Component","app.tab.title.artboards":"Artboard","app.tab.title.assets":"Assets","app.tab.title.keyMap":"KeyMap","app.confirm.message.artboard.items.removeArtboard":"Do you remove an artboard preview really?","app.confirm.message.custom-component.items.removeCustomComponent":"Do you remove a custom component preview really?","menu.item.download.title":"Download","menu.item.save.title":"Save","menu.item.export.title":"Export","menu.item.codepen.title":"CodePen","menu.item.fullscreen.title":"Full Screen","menu.item.shortcuts.title":"ShortCuts","menu.item.github.title":"Github","menu.item.learn.title":"Learn","menu.item.projects.title":"Projects","project.property.title":"Project","project.information.property.title":"Project information","project.information.property.name":"Name","project.information.property.description":"Description","artboard.property.title":"ArtBoards","artboard.property.layout.title.flex":"Flex","artboard.property.layout.title.grid":"Grid","layer.tree.property.title":"Layers","layer.tree.property.layout.title.flex":"Flex","layer.tree.property.layout.title.grid":"Grid","alignment.property.title":"Alignment","position.property.title":"Position","position.property.X":"X","position.property.Y":"Y","size.property.title":"Size","position.property.width":"W","position.property.height":"H","position.property.opacity":"Opacity","position.property.rotate":"Rotate","background.color.property.title":"Appearance","background.color.property.color":"Color","background.color.property.zindex":"z-index","background.color.property.blend":"Blend","background.color.property.overflow":"Overflow","background.color.property.overflow.visible":"Visible","background.color.property.overflow.hidden":"Hidden","background.color.property.overflow.scroll":"Scroll","background.color.property.overflow.auto":"Auto","blend.normal":"normal","blend.multiply":"multiply","blend.screen":"screen","blend.overlay":"overlay","blend.darken":"darken","blend.lighten":"lighten","blend.color-dodge":"color-dodge","blend.color-burn":"color-burn","blend.hard-light":"hard-light","blend.soft-light":"soft-light","blend.difference":"difference","blend.exclusion":"exclusion","blend.hue":"hue","blend.saturation":"saturation","blend.color":"color","blend.luminosity":"luminosity","background.image.property.title":"Fill","border.property.title":"Border","border.radius.property.title":"Border Radius","boxshadow.property.title":"Box Shadows","filter.property.title":"Filter","filter.property.blur":"Blur","filter.property.grayscale":"GrayScale","filter.property.hue-rotate":"Hue Rotate","filter.property.invert":"Invert","filter.property.brightness":"Brightness","filter.property.contrast":"Contrast","filter.property.drop-shadow":"Drop Shadow","filter.property.drop-shadow.color":"Color","filter.property.drop-shadow.offsetX":"Offset X","filter.property.drop-shadow.offsetY":"Offset Y","filter.property.drop-shadow.blurRadius":"Blur","filter.property.opacity":"Opacity","filter.property.saturate":"Saturate","filter.property.sepia":"Sepia","filter.property.svg":"SVG","font.property.title":"Font","font.property.color":"Color","font.property.size":"Size","font.property.stretch":"Stretch","font.property.weight":"Weight","font.property.style":"Style","font.property.family":"Family","font.spacing.property.title":"Font spacing","font.spacing.property.lineHeight":"Line height","font.spacing.property.letterSpacing":"Letter spacing","font.spacing.property.wordSpacing":"Word spacing","font.spacing.property.indent":"Indent","backdrop.filter.property.title":"Backdrop Filter","clippath.property.title":"Clip Path","export.property.title":"Export","export.property.download":"Download","iframe.property.title":"IFrame","image.property.title":"Image","image.property.origin":"Origin","image.property.size":"Size","image.property.width":"Width","image.property.height":"height","video.property.title":"Video","video.property.play":"Play","video.property.pause":"Pause","video.property.volume":"Volume","video.property.playbackRate":"Playback Rate","video.property.currentTime":"Current Time","video.property.playTime":"Play Time Distance","motion.property.title":"Motion","text.property.title":"Text Style","text.property.align":"Align","text.property.transform":"Transform","text.property.decoration":"Decoration","text.clip.property.title":"Text Clip","text.shadow.property.title":"Text Shadows","text.fill.property.title":"Text Fill","text.fill.property.fill":"Fill","text.fill.property.stroke":"Stroke","text.fill.property.strokeWidth":"Width","transform.property.title":"Transform","transform.origin.property.title":"Transform Origin","transition.property.title":"CSS Transition","keyframe.property.title":"CSS Keyframe","selector.property.title":"Selector","selector.property.none":"None selector","path.data.property.title":"Path Information","polygon.data.property.title":"Polygon Information","perspective.property.title":"Perspective","perspective.origin.property.title":"Perspective Origin","svg.item.property.title":"Appearance","svg.item.property.isMotionPath":"Motion Path","svg.item.property.fill":"Fill","svg.item.property.fillOpacity":"Opacity","svg.item.property.path":"Path","svg.item.property.polygon":"Polygon","svg.item.property.totalLength":"Total Length","svg.item.property.fillRule":"Fill Rule","svg.item.property.stroke":"Stroke","svg.item.property.strokeWidth":"Width","svg.item.property.dashArray":"Dash Array","svg.item.property.dashOffset":"Dash Offset","svg.item.property.lineCap":"Line Cap","svg.item.property.lineJoin":"Line Join","svg.item.property.filter":"Filter","border.editor.all":"All","border.editor.width":"Width","border.editor.style":"Style","border.editor.color":"C","border.editor.top":"Top","border.editor.left":"Left","border.editor.right":"Right","border.editor.bottom":"Bottom","border.radius.editor.topLeft":"Top Left","border.radius.editor.topRight":"Top Right","border.radius.editor.bottomLeft":"Bottom Left","border.radius.editor.bottomRight":"Bottom Right","boxshadow.editor.blur":"Blur","boxshadow.editor.spread":"Spread","css.property.editor.properties":"Properties","offset.path.list.editor.path":"Path","offset.path.list.editor.totalLength":"Total Length","offset.path.list.editor.distance":"Distance","offset.path.list.editor.direction":"Direction","offset.path.list.editor.rotate":"Rotate","svgfilter.select.editor.message.create":"Create new svg filter","svgfilter.select.editor.message.select":"Select a filter","fill.editor.message.click.image":"Click the preview area if you want to select a image","fill.editor.message.drag.position":"Drag if you want to move center position","fill.editor.x1":"Start X","fill.editor.x2":"End X","fill.editor.y1":"Start Y","fill.editor.y2":"End Y","fill.editor.spread":"Spread","fill.editor.offset":"Offset","fill.editor.cx":"Center X","fill.editor.cy":"Center Y","fill.editor.r":"End radius","fill.editor.fx":"Start X","fill.editor.fy":"Start Y","fill.editor.fr":"Start radius","perspective.origin.editor.originX":"Origin X","perspective.origin.editor.originY":"Origin Y","path.manager.msg":"Keydown ESC or Enter key to close editing","path.manager.mode.modify":"Modify","path.manager.mode.path":"Path","path.manager.mode.transform":"Transform","path.manager.mode.reverse":"Reverse","path.manager.mode.flipX":"Flip X","path.manager.mode.flipY":"Flip Y","path.manager.mode.flipOrigin":"Flip Origin","colorpicker.popup.title":"ColorPicker","selector.popup.title":"Selector Property","selector.popup.selector":"Selector","background.image.position.popup.title":"Background Pattern","background.image.position.popup.size":"Size","background.image.position.popup.width":"Width","background.image.position.popup.height":"Height","background.image.position.popup.repeat":"Repeat","background.image.position.popup.blend":"Blend","background.image.position.popup.type.repeat":"repeat","background.image.position.popup.type.no-repeat":"no repeat","background.image.position.popup.type.repeat-x":"repeat-x","background.image.position.popup.type.repeat-y":"repeat-y","background.image.position.popup.type.space":"space","background.image.position.popup.type.round":"round","gradient.picker.popup.title":"Gradient & Image Picker","image.asset.property.title":"Image","video.asset.property.title":"Video","color.asset.property.title":"Color","gradient.asset.property.title":"Gradient","pattern.asset.property.title":"Pattern","svgfilter.asset.property.title":"SVG Filter","inspector.tab.title.style":"Style","inspector.tab.title.component":"Component","inspector.tab.title.transition":"Transition & Animation","inspector.tab.title.asset":"Assets","inspector.tab.title.text":"Text","inspector.tab.title.code":"Code","inspector.tab.title.history":"History","timeline.property.title":"Timeline","timeline.property.resize":"Drag if you want to resize timeline height.","timeline.animation.property.title":"Animations","timeline.play.control.play":"Play","timeline.play.control.pause":"Pause","timeline.play.control.first":"First","timeline.play.control.prev":"Previous","timeline.play.control.next":"Next","timeline.play.control.last":"Last","timeline.play.control.direction":"Direction","timeline.play.control.speed":"Speed","timeline.play.control.repeat":"Repeat","timeline.play.control.infinite":"Infinite","timeline.play.control.normal":"normal","timeline.play.control.alternate":"alternate","timeline.play.control.reverse":"reverse","timeline.play.control.alternate.reverse":"alternate reverse","timeline.value.editor.value":"Value","timeline.value.editor.time":"Time","timeline.value.editor.timing":"Timing","timeline.value.editor.offset.message":"Please input enter key to change time offset.","svgfilter.popup.title":"SVG Filter","css.item.rotate":"Rotate","css.item.rotateX":"Rotate X","css.item.rotateY":"Rotate Y","css.item.rotateZ":"Rotate Z","css.item.rotate3d":"3D Rotate","css.item.skewX":"Skew X","css.item.skewY":"Skew Y","css.item.translate":"Translate","css.item.translateX":"Translate X","css.item.translateY":"Translate Y","css.item.translateZ":"Translate Z","css.item.translate3d":"3D Translate","css.item.perspective":"Perspective","css.item.scale":"Scale","css.item.scaleX":"Scale X","css.item.scaleY":"Scale Y","css.item.scaleZ":"Scale Z","css.item.scale3d":"3D Scale","css.item.matrix":"Matrix","css.item.matrix3d":"3D Matrix","animation.property.title":"CSS Animation","animation.property.direction":"Direction","animation.property.play.state":"Play State","animation.property.fill.mode":"Fill Mode","animation.property.delay":"Delay","animation.property.duration":"Duration","animation.property.iteration.count":"Iteration Count","animation.property.Select a keyframe":"Select a keyframe","animation.property.popup.title":"Animation","animation.property.popup.timing.function":"Timing Function","animation.property.popup.keyframe":"Keyframe","animation.property.popup.direction":"Direction","animation.property.popup.play.state":"Play State","animation.property.popup.fill.mode":"Fill Mode","animation.property.popup.delay":"Delay","animation.property.popup.duration":"Duration","animation.property.popup.iteration":"Iteration","animation.property.popup.normal":"normal","animation.property.popup.reverse":"reverse","animation.property.popup.alternate":"alternate","animation.property.popup.alternate-reverse":"alternate-reverse","animation.property.popup.none":"none","animation.property.popup.forwards":"forwards","animation.property.popup.backwards":"backwards","animation.property.popup.both":"both","animation.property.popup.Select a keyframe":"Select a keyframe","keyframe.popup.title":"Keyframe","code.view.property.title":"CodeView","svg.filter.editor.tab.filter":"Filter","svg.filter.editor.tab.preset":"Preset","svg.filter.editor.tab.asset":"Assets","svg.filter.editor.GRAPHIC REFERENCES":"GRAPHIC REFERENCES","svg.filter.editor.SOURCES":"SOURCES","svg.filter.editor.MODIFIER":"MODIFIER","svg.filter.editor.LIGHTING":"LIGHTING","svg.filter.editor.COMBINERS":"COMBINERS","svg.filter.editor.Template":"Template","layout.property.title":"Layout","layout.property.flex":"Flex Box","layout.property.grid":"Grid","layout.property.default":"Default","flex.layout.editor.row":"Row","flex.layout.editor.column":"column","flex.layout.editor.row-reverse":"Row Reverse","flex.layout.editor.column-reverse":"Column Reverse","flex.layout.editor.nowrap":"Nowrap","flex.layout.editor.wrap":"Wrap","flex.layout.editor.wrap-reverse":"Wrap Reverse","flex.layout.editor.flex-start":"Start","flex.layout.editor.flex-end":"End","flex.layout.editor.center":"Center","flex.layout.editor.space-between":"Between","flex.layout.editor.space-around":"Around","flex.layout.editor.baseline":"BaseLine","flex.layout.editor.stretch":"Stretch","flex.layout.editor.direction":"Direction","flex.layout.editor.justify-content":"Justify Content","flex.layout.editor.align-items":"Align Items","flex.layout.editor.align-content":"Align Content","flex.layout.item.property.title":"Layout Item Detail","flex.layout.item.property.grow":"Flex Grow","flex.layout.item.property.shrink":"Flex Shrink","flex.layout.item.property.basis":"Flex Basis","flex.layout.item.property.none":"none","flex.layout.item.property.auto":"auto","flex.layout.item.property.value":"value","grid.layout.editor.template.columns":"Columns","grid.layout.editor.column.gap":"Column Gap","grid.layout.editor.template.rows":"Rows","grid.layout.editor.row.gap":"Row Gap","grid.box.editor.box.title":"Box","grid.box.editor.type":"Type","grid.box.editor.repeat":"Repeat","grid.box.editor.length":"Length","grid.box.editor.none":"None","grid.box.editor.auto":"Auto","grid.box.editor.count":"Count","grid.box.editor.value":"Size","grid.layout.item.property.title":"Layout Item Detail","grid.layout.item.property.column":"Column","grid.layout.item.property.row":"Row","grid.layout.item.property.start":"Start","grid.layout.item.property.end":"End","grid.layout.item.property.none":"none","grid.layout.item.property.value":"value","box.model.property.title":"Box Model","box.model.property.margin":"Margin","box.model.property.padding":"Padding","component.items.canvas":"Canvas","component.items.layer":"Layer","component.items.3dlayer":"3D Layer","component.items.drawing":"Drawing","component.items.custom":"Custom Component","component.items.chart":"Chart","component.items.plugin":"Plugin","svg.text.property.title":"SVG Text Style","svg.text.property.textarea":"Text Area","svg.text.property.size":"Font Size","svg.text.property.weight":"Font Weight","svg.text.property.style":"Font Style","svg.text.property.anchor":"Text Anchor","svg.text.property.family":"Font Family","svg.text.property.length.adjust":"Length Adjust","svg.text.property.text.length":"Text Length","svg.text.property.start.offset":"Start Offset","fill.picker.popup.title":"SVG Fragment picker","gradient.editor.drag.message":"Drag if you want to move center pointer.","draw.manager.tolerance":"Tolerance","pattern.property.title":"Pattern","pattern.info.popup.title":"Pattern Info","pattern.info.popup.width":"Width","pattern.info.popup.height":"Height","pattern.info.popup.lineWidth":"Line Width","pattern.info.popup.lineHeight":"Line Height","pattern.info.popup.rotate":"Rotate","pattern.info.popup.blend":"Blend Mode","pattern.info.popup.foreColor":"Fore","pattern.info.popup.backColor":"Back","stroke.dasharray.editor.add":"Add Dash","viewport.panning.enable":"You can move the area by holding down space key and dragging the screen."},fr_FR:c,ko_KR:{"app.title":"EASYLOGIC","app.sample":function(t,e,n){return"".concat(t,"-").concat(e,"-").concat(n)},"app.lang.en_US":"English","app.lang.ko_KR":"한국어","app.lang.fr_FR":"Français","app.label.lang":"언어","app.layout.all":"전체","app.layout.css":"CSS","app.layout.svg":"SVG","app.label.layout":"메뉴구성","app.theme.dark":"어두운","app.theme.light":"밝은","app.theme.toon":"그리기","app.theme.gray":"회색","app.label.theme":"테마","app.tab.title.projects":"프로젝트","app.tab.title.layers":"레이어","app.tab.title.libraries":"라이브러리","app.tab.title.components":"컴포넌트","app.tab.title.artboards":"아트보드","app.tab.title.assets":"에셋","app.tab.title.keyMap":"단축키","app.confirm.message.artboard.items.removeArtboard":"아트보드 프리뷰를 삭제 하시겠습니까?","app.confirm.message.custom-component.items.removeCustomComponent":"컴포넌트 프리뷰를 삭제 하시겠습니까?","menu.item.download.title":"다운로드","menu.item.save.title":"저장","menu.item.export.title":"내보내기","menu.item.codepen.title":"CodePen","menu.item.fullscreen.title":"전체화면","menu.item.shortcuts.title":"단축키","menu.item.github.title":"Github","menu.item.learn.title":"배우기","menu.item.projects.title":"프로젝트","project.property.title":"프로젝트","project.information.property.title":"프로젝트 정보","project.information.property.name":"이름","project.information.property.description":"설명","artboard.property.title":"아트보드","artboard.property.layout.title.flex":"플렉스","artboard.property.layout.title.grid":"그리드","layer.tree.property.title":"레이어","layer.tree.property.layout.title.flex":"플렉스","layer.tree.property.layout.title.grid":"그리드","alignment.property.title":"정렬","position.property.title":"위치","position.property.X":"X","position.property.Y":"Y","size.property.title":"크기","position.property.width":"넓이","position.property.height":"높이","position.property.rotate":"회전","position.property.opacity":"투명","background.color.property.title":"표시","background.color.property.color":"배경색","background.color.property.zindex":"z-index","background.color.property.blend":"블렌드모드","background.color.property.overflow":"오버플로우","background.color.property.overflow.visible":"보이기","background.color.property.overflow.hidden":"숨기기","background.color.property.overflow.scroll":"스크롤","background.color.property.overflow.auto":"자동","blend.normal":"Normal(표준) 혼합모드","blend.multiply":"Multiply(곱하기) 모드","blend.screen":"Screen(스크린) 모드 ","blend.overlay":"Overlay(오버레이) 모드","blend.darken":"Darken(어둡기) 모드","blend.lighten":"Lighten(밝기) 모드 ","blend.color-dodge":"Color Dodge(컬러 닷지) 모드 ","blend.color-burn":"Color Burn(컬러 번) 모드 ","blend.hard-light":"Hard Light(하드 라이트) 모드 ","blend.soft-light":"Soft Light(소프트 라이트) 모드 ","blend.difference":"Difference(차이) 모드","blend.exclusion":"Exclusion(제외) 모드","blend.hue":"Hue(색조) 모드 ","blend.saturation":"Saturation(채도) 모드","blend.color":"Color(색상) 모드","blend.luminosity":"Luminosity(광도) 모드 ","background.image.property.title":"채우기","border.property.title":"외곽선","border.radius.property.title":"둥근 외곽선","boxshadow.property.title":"그림자","filter.property.title":"필터","filter.property.blur":"흐림(Blur)","filter.property.grayscale":"회색(GrayScale)","filter.property.hue-rotate":"색조(HueRotate)","filter.property.invert":"반전(Invert)","filter.property.brightness":"밝기(Brightness)","filter.property.contrast":"대\b조(Contrast)","filter.property.drop-shadow":"그림자(Drop Shadow)","filter.property.drop-shadow.color":"색","filter.property.drop-shadow.offsetX":"X 간격","filter.property.drop-shadow.offsetY":"Y 간격","filter.property.drop-shadow.blurRadius":"흐림","filter.property.opacity":"투명도(Opacity)","filter.property.saturate":"채도(Saturate)","filter.property.sepia":"갈색톤(Sepia)","filter.property.svg":"SVG","font.property.title":"폰트","font.property.color":"색","font.property.size":"크기","font.property.stretch":"뻗기","font.property.weight":"굵기","font.property.style":"스타일","font.property.family":"글꼴","font.spacing.property.title":"폰트 공간","font.spacing.property.lineHeight":"줄 높이","font.spacing.property.letterSpacing":"글자 간격","font.spacing.property.wordSpacing":"단어 간격","font.spacing.property.indent":"들여쓰기","backdrop.filter.property.title":"후면 필터","clippath.property.title":"클립패스","export.property.title":"내보내기","export.property.download":"다운로드","iframe.property.title":"아이프레임","image.property.title":"이미지","image.property.origin":"원본","image.property.size":"크기","image.property.width":"넓이","image.property.height":"높이","video.property.title":"비디오","video.property.play":"시작","video.property.pause":"멈춤","video.property.volume":"볼륨","video.property.playbackRate":"빠르기","video.property.currentTime":"현재 시간","video.property.playTime":"플레이 시간 간격","motion.property.title":"모션","path.data.property.title":"패스 정보","polygon.data.property.title":"폴리곤 정보","text.property.title":"텍스트 스타일","text.property.align":"정렬","text.property.transform":"변형","text.property.decoration":"장식","text.clip.property.title":"텍스트 클립","text.shadow.property.title":"텍스트 그림자","text.fill.property.title":"텍스트 채우기","text.fill.property.fill":"채우기","text.fill.property.stroke":"윤곽선","text.fill.property.strokeWidth":"윤곽선 굵기","transform.property.title":"트랜스폼","transform.origin.property.title":"트랜스폼 Origin","transition.property.title":"CSS 트랜지션","keyframe.property.title":"CSS 키프레임","selector.property.title":"CSS 셀렉터","selector.property.none":"선택자 없음","perspective.property.title":"투영(perspective)","perspective.origin.property.title":"투영 중심점","svg.item.property.title":"보이기","svg.item.property.isMotionPath":"모션 패스","svg.item.property.fill":"채우기","svg.item.property.fillOpacity":"투명도","svg.item.property.path":"패스","svg.item.property.polygon":"폴리곤","svg.item.property.totalLength":"전체 길이","svg.item.property.fillRule":"채우기 규칙","svg.item.property.stroke":"선","svg.item.property.strokeWidth":"선 굵기","svg.item.property.dashArray":"점선 길이","svg.item.property.dashOffset":"점선 위치","svg.item.property.lineCap":"선 모양","svg.item.property.lineJoin":"겹친 선","svg.item.property.filter":"필터","border.editor.all":"전체","border.editor.width":"크기","border.editor.style":"스타일","border.editor.color":"색","border.editor.top":"위","border.editor.left":"왼쪽","border.editor.right":"오른쪽","border.editor.bottom":"아래","border.radius.editor.topLeft":"왼쪽 위","border.radius.editor.topRight":"오른쪽 위","border.radius.editor.bottomLeft":"왼쪽 아래","border.radius.editor.bottomRight":"오른쪽 아래","boxshadow.editor.blur":"흐림","boxshadow.editor.spread":"길이","css.property.editor.properties":"속성","offset.path.list.editor.path":"패스","offset.path.list.editor.totalLength":"전체 길이","offset.path.list.editor.distance":"거리","offset.path.list.editor.direction":"방향","offset.path.list.editor.rotate":"회전","svgfilter.select.editor.message.create":"새로운 SVG Filter 를 만드세요.","svgfilter.select.editor.message.select":"필터를 선택하세요.","fill.editor.message.click.image":"이미지를 선택하고 싶으면 프리뷰 영역을 클릭하세요.","fill.editor.message.drag.position":"가운데 위치를 드래그 해보세요.","fill.editor.x1":"시작 X","fill.editor.x2":"끝 X","fill.editor.y1":"시작 Y","fill.editor.y2":"끝 Y","fill.editor.spread":"확산","fill.editor.offset":"위치","fill.editor.cx":"중심점 X","fill.editor.cy":"중심점 Y","fill.editor.r":"끝 반지름","fill.editor.fx":"시작 X","fill.editor.fy":"시작 Y","fill.editor.fr":"시작 반지름","perspective.origin.editor.originX":"중심점 X","perspective.origin.editor.originY":"중심점 Y","path.manager.msg":"편집을 종료할 때는 ESC 키나 Enter 키를 누르세요. 또는 화면을 클릭하시면 됩니다.","path.manager.mode.modify":"점 편집","path.manager.mode.path":"점 추가","path.manager.mode.transform":"변형","path.manager.mode.reverse":"순서변경","path.manager.mode.flipX":"X축 회전","path.manager.mode.flipY":"Y축 회전","path.manager.mode.flipOrigin":"전체 회전","colorpicker.popup.title":"색상 선택","selector.popup.title":"선택자 속성","selector.popup.selector":"선택자","background.image.position.popup.title":"배경 패턴","background.image.position.popup.size":"크기","background.image.position.popup.width":"넓이","background.image.position.popup.height":"높이","background.image.position.popup.repeat":"반복","background.image.position.popup.blend":"블렌드","background.image.position.popup.type.repeat":"반복","background.image.position.popup.type.no-repeat":"반복 안함","background.image.position.popup.type.repeat-x":"x축 반복","background.image.position.popup.type.repeat-y":"y축 반복","background.image.position.popup.type.space":"공백유지","background.image.position.popup.type.round":"반올림","gradient.picker.popup.title":"그라디언트와 이미지","image.asset.property.title":"이미지","video.asset.property.title":"비디오","color.asset.property.title":"색","gradient.asset.property.title":"그라디언트","pattern.asset.property.title":"패턴","svgfilter.asset.property.title":"SVG 필터","inspector.tab.title.style":"스타일 속성","inspector.tab.title.component":"컴포넌트 속성","inspector.tab.title.transition":"트랜지션과 애니메이션 속성","inspector.tab.title.asset":"에셋 관리자","inspector.tab.title.text":"텍스트","inspector.tab.title.code":"코드","inspector.tab.title.history":"기록","timeline.property.title":"타임라인","timeline.property.resize":"타임라인 높이를 변경합니다. 드래그 해주세요.","timeline.animation.property.title":"애니메이션","timeline.play.control.play":"플레이","timeline.play.control.pause":"멈춤","timeline.play.control.first":"처음으로","timeline.play.control.prev":"이전으로","timeline.play.control.next":"다음으로","timeline.play.control.last":"마지막으로","timeline.play.control.direction":"방향","timeline.play.control.speed":"속력","timeline.play.control.repeat":"반복","timeline.play.control.infinite":"무한","timeline.play.control.normal":"normal","timeline.play.control.alternate":"alternate","timeline.play.control.reverse":"reverse","timeline.play.control.alternate.reverse":"alternate reverse","timeline.value.editor.value":"값","timeline.value.editor.time":"시간","timeline.value.editor.timing":"타이밍 함수","timeline.value.editor.offset.message":"Enter키를 입력하면 적용됩니다.","svgfilter.popup.title":"SVG 필터","css.item.rotate":"회전","css.item.rotateX":"X축 회전","css.item.rotateY":"Y축 회전","css.item.rotateZ":"Z축 회전","css.item.rotate3d":"3D 회전","css.item.skewX":"X축 늘이기","css.item.skewY":"Y축 늘이기","css.item.translate":"이동","css.item.translateX":"X축 이동","css.item.translateY":"Y축 이동","css.item.translateZ":"Z축 이동","css.item.translate3d":"3D 이동","css.item.perspective":"원근","css.item.scale":"크기변경","css.item.scaleX":"X축 크기변경","css.item.scaleY":"Y축 크기변경","css.item.scaleZ":"Z축 크기변경","css.item.scale3d":"3D 크기변경","css.item.matrix":"변환 행렬","css.item.matrix3d":"3D 변환 행렬","animation.property.title":"CSS 애니메이션","animation.property.direction":"방향","animation.property.play.state":"플레이 상태","animation.property.fill.mode":"채우기 모드","animation.property.delay":"대기시간","animation.property.duration":"시간","animation.property.iteration.count":"반복 횟수","animation.property.select a keyframe":"키프레임을 선택해주세요","animation.property.popup.title":"CSS 애니메이션","animation.property.popup.timing.function":"타이밍 함수","animation.property.popup.keyframe":"키프레임","animation.property.popup.direction":"방향","animation.property.popup.play.state":"플레이 상태","animation.property.popup.fill.mode":"채우기 모드","animation.property.popup.delay":"대기시간","animation.property.popup.duration":"시간","animation.property.popup.iteration":"반복 횟수","animation.property.popup.normal":"시간순","animation.property.popup.reverse":"역시간순","animation.property.popup.alternate":"왕복 시간순","animation.property.popup.alternate-reverse":"왕복 역시간순","animation.property.popup.none":"none","animation.property.popup.forwards":"forwards","animation.property.popup.backwards":"backwards","animation.property.popup.both":"both","animation.property.popup.Select a keyframe":"키프레임을 선택해주세요.","keyframe.popup.title":"키프레임","code.view.property.title":"코드뷰","svg.filter.editor.tab.filter":"필터","svg.filter.editor.tab.preset":"프리셋","svg.filter.editor.tab.asset":"에셋","svg.filter.editor.GRAPHIC REFERENCES":"참조 그래픽","svg.filter.editor.SOURCES":"원본","svg.filter.editor.MODIFIER":"수정","svg.filter.editor.LIGHTING":"빛","svg.filter.editor.COMBINERS":"결합","svg.filter.editor.Template":"템플릿","layout.property.title":"레이아웃","layout.property.flex":"플렉스 박스","layout.property.grid":"그리드","layout.property.default":"기본 좌표","flex.layout.editor.row":"행","flex.layout.editor.column":"열","flex.layout.editor.row-reverse":"역방향 행","flex.layout.editor.column-reverse":"역방향 열","flex.layout.editor.nowrap":"감싸지 않기","flex.layout.editor.wrap":"감싸기","flex.layout.editor.wrap-reverse":"역방향 감싸기","flex.layout.editor.flex-start":"시작","flex.layout.editor.flex-end":"끝","flex.layout.editor.center":"중간","flex.layout.editor.space-between":"공간 중간 채움","flex.layout.editor.space-around":"공간 양끝 채움","flex.layout.editor.baseline":"기본선","flex.layout.editor.stretch":"펼치기","flex.layout.editor.direction":"방향","flex.layout.editor.justify-content":"컨텐츠 조정","flex.layout.editor.align-items":"아이템 정렬","flex.layout.editor.align-content":"컨텐츠 정렬","flex.layout.item.property.title":"플렉스 아이템 설정","flex.layout.item.property.grow":"공간 비율","flex.layout.item.property.shrink":"축소 비율","flex.layout.item.property.basis":"초기 크기","flex.layout.item.property.none":"없음","flex.layout.item.property.auto":"자동","flex.layout.item.property.value":"값","grid.layout.editor.template.columns":"열","grid.layout.editor.column.gap":"열 간격","grid.layout.editor.template.rows":"행","grid.layout.editor.row.gap":"행 간격","grid.box.editor.box.title":"영역","grid.box.editor.type":"타입","grid.box.editor.repeat":"반복","grid.box.editor.length":"길이","grid.box.editor.none":"없음","grid.box.editor.auto":"자동","grid.box.editor.count":"개수","grid.box.editor.value":"크기","grid.layout.item.property.title":"그리드 아이템 설정","grid.layout.item.property.column":"열","grid.layout.item.property.row":"행","grid.layout.item.property.start":"시작","grid.layout.item.property.End":"끝","grid.layout.item.property.none":"없음","grid.layout.item.property.value":"값","box.model.property.title":"박스 모델","box.model.property.margin":"마진","box.model.property.padding":"패딩","component.items.canvas":"캔버스","component.items.layer":"레이어","component.items.3dlayer":"3D 레이어","component.items.drawing":"그리기","component.items.custom":"사용자 정의 컴포넌트","component.items.chart":"차트","component.items.plugin":"플러그인","svg.text.property.title":"SVG Text 스타일","svg.text.property.textarea":"텍스트 입력","svg.text.property.size":"폰트 크기","svg.text.property.weight":"폰트 굵기","svg.text.property.style":"폰트 스타일","svg.text.property.anchor":"텍스트 위치","svg.text.property.family":"폰트 글꼴","svg.text.property.length.adjust":"길이 대응","svg.text.property.text.length":"텍스트 길이","svg.text.property.start.offset":"시작 지점","fill.picker.popup.title":"색 채우기","gradient.editor.drag.message":"드래그 하면 중심점을 옮길 수 있습니다.","draw.manager.tolerance":"포인트 허용 오차","pattern.property.title":"패턴","pattern.info.popup.title":"패턴 정보","pattern.info.popup.width":"넓이","pattern.info.popup.height":"높이","pattern.info.popup.lineWidth":"선 넓이","pattern.info.popup.lineHeight":"선 높이","pattern.info.popup.rotate":"회전","pattern.info.popup.blend":"블렌드","pattern.info.popup.foreColor":"패턴색","pattern.info.popup.backColor":"배경색","stroke.dasharray.editor.add":"점 추가","viewport.panning.enable":"space 를 누른채 화면을 드래그 하면 영역을 움직일 수 있습니다."}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return oe}));var r=n(7),a=n.n(r),i=n(13),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(10),f=n.n(h),d=n(5),p=n.n(d),v=n(6),m=n.n(v),g=n(0),b=n.n(g),k=n(32),O=n(14),w=n(8),j=n(27),z=n(16),M=n.n(z),V=n(25),S=n(4),P=n(24);function C(t,e,n){return function(t,e){return n}}function R(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"width",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"parent",i=null;return"parent"===a?i=t[a][r]:"self"===a&&(i=t[r]),i?n.toPx(i.value):n}function H(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"width",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"parent",c=null;return"parent"===i?c=t[i][a]:"self"===i&&(c=t[a]),c?n.to(r,c.value):n}function $(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"width",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"parent",c=S.a.parse(n),o=S.a.parse(r);return c.unit===o.unit?Object(P.a)(t,e,c.value,o.value,c.unit):c.equals(o)?C(0,0,c):function(n,r){var s=R(t,e,c,a,i),l=R(t,e,o,a,i);return 0===r?s:1===r?l:H(t,e,S.a.px(s.value+(l.value-s.value)*n),c.unit,a,i)}}var L=n(88),T=function(t){return t.isAll?[t["border-radius"]||"0px",t["border-radius"]||"0px",t["border-radius"]||"0px",t["border-radius"]||"0px"]:[t["border-top-left-radius"]||"0px",t["border-top-right-radius"]||"0px",t["border-bottom-right-radius"]||"0px",t["border-bottom-left-radius"]||"0px"]};function B(t,e,n,r){for(var a=T(L.a.parseStyle(n)),i=T(L.a.parseStyle(r)),c=Math.max(a.length,i.length),o=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return t=+t,function(n){var r=1/t;return"start"==e?r*Math.ceil(n/r):"end"==e?r*Math.floor(n/r):void 0}};function N(){return G(1,"start")}function Y(){return G(1,"end")}var U=function(){return function(t){return Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1}},K={step:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return G(t,e)},"step-start":N,"step-end":Y,stepStart:N,stepEnd:Y,"ease-out-elastic":U,easeOutElastic:U};function q(t,e,n,r){var a=S.a.parse(n),i=S.a.parse(r);return function(t,e){var n=a.value,r=i.value;return 0===e?S.a.deg(n):1===e?S.a.deg(r):S.a.deg(n+(r-n)*t).to(a.unit)}}var W=n(61);function Z(t,e,n,r){for(var a=W.a.parseStyle(n),i=W.a.parseStyle(r),c=Math.max(a.length,i.length),o=[],s=0,l=c;s2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=Math.max(n.length,r.length),i=[],c=0;c1&&(e-=1);var s=c[0];0===e?s=c[0]:1===e&&(s=c[c.length-1]);var l=c.find((function(t){return t.startT<=e&&e0&&void 0!==arguments[0]?arguments[0]:"linear",e=t.split("(").map((function(t){return t.trim()})),n=c()(e,2),r=n[0],a=n[1];a=(a||"").split(")")[0].trim();var i=K[r];if(i){var o=t.split("(")[1].split(")")[0].split(",").map((function(t){return t.trim()}));return i.apply(void 0,M()(o))}return Xt(t)}function Xt(t){var e=Object(V.b)(t);return function(t){return e(t).y}}var Gt=n(19),Nt=n(33),Yt=n(100);function Ut(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 Kt(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return f()(b()(n.prototype),"getDefaultObject",this).call(this,Zt({timeline:[],compiledTimeline:{}},t))}},{key:"expectJSON",value:function(t){return"compiledTimeline"!==t&&f()(b()(n.prototype),"expectJSON",this).call(this,t)}},{key:"setTimelineInfo",value:function(t){var e=this.getSelectedTimeline();e&&["speed","iterationCount","direction"].forEach((function(n){Object(w.isNotUndefined)(t[n])&&(e[n]=t[n])}))}},{key:"compileAll",value:function(){var t=this,e=this.getSelectedTimeline();this.json.compiledTimeline={},e&&e.animations.forEach((function(e){e.properties.forEach((function(n){t.compiledTimingFunction(e.id,n.property)}))}))}},{key:"searchTimelineOffset",value:function(t){var e=this,n=this.getSelectedTimeline(),r=[];return n&&n.animations.forEach((function(n){n.properties.forEach((function(a){var i=e.getCompiledTimingFunction(n.id,a.property);r.push(i.find((function(e){return!!(e.isOnlyTime&&e.startTime<=t)||e.startTime<=t&&t1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=this.getSelectedTimeline();if(n){Object(w.isNotUndefined)(t)&&this.setTimelineCurrentTime(t);var r=n.currentTime;this.searchTimelineOffset(r).filter(e).forEach((function(t){"offset-path"===t.property||"playTime"===t.property?t.func(r):t.layer&&t.layer.reset(a()({},t.property,t.func(r)))}))}}},{key:"getSelectedTimeline",value:function(){var t=this.json.timeline,e=t.filter((function(t){return t.selected}));return(e.length?e[0]:t[0])||null}},{key:"getKeyframeListReturnArray",value:function(){var t=this.getSelectedTimeline(),e=[];return t&&t.animations.forEach((function(t){t.properties.forEach((function(t){e.push.apply(e,t.keyframes)}))})),e}},{key:"getKeyframeList",value:function(t){var e=this.getSelectedTimeline();e&&e.animations.forEach((function(n){n.properties.forEach((function(n){n.keyframes.forEach((function(n){t&&t(e,n)}))}))}))}},{key:"getSelectedTimelineLastTime",value:function(){var t=0;return this.getKeyframeList((function(e,n){t=Math.max(n.time,t)})),t}},{key:"getSelectedTimelineFirstTime",value:function(){var t=Number.MAX_SAFE_INTEGER;return this.getKeyframeList((function(e,n){t=Math.min(n.time,t)})),t}},{key:"getSelectedTimelinePrevTime",value:function(){var t=this.getSelectedTimelineFirstTime();return this.getKeyframeList((function(e,n){Object(j.d)(e.fps,n.time)e.currentTimecode&&(t=Math.min(n.time,t))})),t}},{key:"setTimelineTitle",value:function(t,e){var n=this.json.timeline.find((function(e){return e.id===t}));n&&(n.title=e)}},{key:"selectTimeline",value:function(t){t?this.json.timeline.forEach((function(e){e.selected=e.id===t})):this.json.timeline.filter((function(t){return t.selected})).length||this.json.timeline.length&&(this.json.timeline.selected=!0);this.compileAll()}},{key:"removeAnimation",value:function(t){this.json.timeline=this.json.timeline.filter((function(e){return e.id!==t})),this.json.timeline.length&&(this.json.timeline[0].selected=!0),this.compileAll()}},{key:"addTimeline",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"00:00:10:00",n=Object(O.uuidShort)(),r=Zt(Zt({id:n,title:"sample"},this.getTimelineLayerInfo(t,e)),{},{animations:[]});return this.json.timeline.push(r),this.selectTimeline(n),r}},{key:"addTimelineLayer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"00:00:10:00",r=this.getSelectedTimeline();if(r||(r=this.addTimeline(e,n)),r.selected=!0,t){var a=r.animations.filter((function(e){return e.id===t}));a[0]||r.animations.push({id:t,properties:[]})}}},{key:"getTimelineLayerInfo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"00:00:10:00",n=Object(j.c)(t,e);return{fps:t,speed:1,direction:"normal",iterationCount:1,currentTimecode:Object(j.d)(t,0),totalTimecode:Object(j.d)(t,n),currentTime:0,totalTime:n,displayStartTime:0,displayEndTime:n}}},{key:"setTimelineCurrentTime",value:function(t){var e=this.getSelectedTimeline(),n=e.fps,r=e.totalTimecode;if(e){var a=t,i=t;+a+""===a&&(a=+a,i=Object(j.a)(n,a)),i>r&&(i=r);var c=Object(j.c)(n,i);e.currentTime=c,e.currentTimecode=Object(j.d)(n,c)}}},{key:"setDisplayTimeDxRate",value:function(t,e,n){var r=this.getSelectedTimeline();if(r){var a=t*r.totalTime,i=e+a,c=n+a;i=Math.max(i,0),0===(i=Math.min(i,c))&&(c=n-e),c=Math.max(c,i),(c=Math.min(c,r.totalTime))===r.totalTime&&(i=r.totalTime-(n-e)),r.displayStartTime=i,r.displayEndTime=c}}},{key:"setDisplayStartTimeRate",value:function(t){var e=this.getSelectedTimeline();e&&(e.displayStartTime=t*e.totalTime)}},{key:"setDisplayEndTimeRate",value:function(t){var e=this.getSelectedTimeline();e&&(e.displayEndTime=t*e.totalTime)}},{key:"setTimelineCurrentTimeRate",value:function(t){var e=this.getSelectedTimeline();if(e){var n=e.displayStartTime,r=e.displayEndTime,a=e.fps,i=n+(r-n)*t;this.setTimelineCurrentTime(Object(j.d)(a,i))}}},{key:"setTimelineTotalTime",value:function(t){var e=this.getSelectedTimeline();if(e){var n=t,r=t;+n+""===n&&(n=+n,r=Object(j.a)(e.fps,n)),Object(j.c)(e.fps,r)3&&void 0!==arguments[3]?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0,c=this.getTimelineKeyframeById(t,e,n);c&&(Object(w.isNotUndefined)(i)&&(c.time=i),Object(w.isNotUndefined)(r)&&(c.value=r),Object(w.isNotUndefined)(a)&&(c.timing=a),this.compiledTimingFunction(t,e))}},{key:"addTimelineKeyframe",value:function(t){var e=t.layerId,n=t.property,r=t.value,a=t.timing,i=t.time,c=t.editor;this.addTimelineProperty(e,n);var o=this.getSelectedTimeline(),s=this.getTimelineProperty(e,n);if(s){var l=i||o.currentTime;if(!s.keyframes.filter((function(t){return t.time===l})).length){r=Object(w.isUndefined)(r)||""===r?this.getDefaultPropertyValue(n):r;var u={id:Object(O.uuidShort)(),layerId:e,property:n,time:l,value:r,timing:a||"linear",editor:c};return s.keyframes.push(u),s.keyframes.sort((function(t,e){return t.time>e.time?1:-1})),this.compiledTimingFunction(e,n),u}}}},{key:"getDefaultPropertyValue",value:function(t){switch(t){case"mix-blend-mode":return"normal";case"rotate":return"0deg";case"box-shadow":return"0px 0px 0px 0px rgba(0, 0, 0, 1)";case"text-shadow":return"0px 0px 0px rgba(0, 0, 0, 1)";case"opacity":return 1;default:return""}}},{key:"copyTimelineKeyframe",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getTimelineProperty(t,e);if(r){var a=this.getSelectedTimeline(),i=n||a.currentTime,c=r.keyframes.filter((function(t){return t.timee.time?-1:1})),o=c[0].value+"",s=c[0].timing+"",l=c[0].editor),this.addTimelineKeyframe({layerId:t,property:e,value:o,timing:s,editor:l})}}},{key:"getTimelineKeyframe",value:function(t,e,n){var r=this.getTimelineProperty(t,e);if(r)return r.keyframes.find((function(t){return t.time===n}))}},{key:"getTimelineKeyframeById",value:function(t,e,n){var r=this.getTimelineProperty(t,e);if(r)return r.keyframes.find((function(t){return t.id===n}))}},{key:"sortTimelineKeyframe",value:function(t,e){var n=this.getTimelineProperty(t,e);n&&(n.keyframes.sort((function(t,e){return t.time>e.time?1:-1})),this.compiledTimingFunction(t,e))}},{key:"setFps",value:function(t){var e=this.getSelectedTimeline();e&&(e.fps=t,e.currentTimecode=Object(j.d)(t,e.currentTime),e.totalTimecode=Object(j.d)(t,e.totalTime))}},{key:"toCloneObject",value:function(){return Zt(Zt({},f()(b()(n.prototype),"toCloneObject",this).call(this)),{},{timeline:Object(w.clone)(this.json.timeline)})}}]),n}(function(t){p()(n,t);var e=qt(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getDefaultObject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f()(b()(n.prototype),"getDefaultObject",this).call(this,Kt({comments:[],colors:[],gradients:[],svgfilters:[],svgimages:[],keyframes:[],images:[],imageKeys:[],videos:[],videoKeys:[],audios:[]},t))}},{key:"addKeyframe",value:function(t){return this.json.keyframes.push(t),t}},{key:"createKeyframe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addKeyframe(new Yt.a(Kt({checked:!0},t)))}},{key:"removeKeyframe",value:function(t){this.removePropertyList(this.json.keyframes,t)}},{key:"sortItem",value:function(t,e,n){t.splice.apply(t,[n+(e1&&void 0!==arguments[1]?arguments[1]:{};this.json.keyframes[+t].reset(e)}},{key:"toKeyframeString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.json.keyframes.map((function(e){return e.toString(t)})).join("\n\n")}},{key:"copyPropertyList",value:function(t,e){var n=Kt({},t[e]);t.splice(e,0,n)}},{key:"toCloneObject",value:function(){this.json;return Kt(Kt({},f()(b()(n.prototype),"toCloneObject",this).call(this)),this.attrs("colors","gradients","svgfilters","svgimages","images","keyframes"))}},{key:"removePropertyList",value:function(t,e){t.splice(e,1)}},{key:"removeColor",value:function(t){this.removePropertyList(this.json.colors,t)}},{key:"copyColor",value:function(t){this.copyPropertyList(this.json.colors,t)}},{key:"sortColor",value:function(t,e){this.sortItem(this.json.colors,t,e)}},{key:"setColorValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.json.colors[t]=Kt(Kt({},this.json.colors[t]),e)}},{key:"getColorIndex",value:function(t){return this.json.colors[t]}},{key:"getColor",value:function(t){return this.json.colors.filter((function(e){return e.name===t}))[0]}},{key:"addColor",value:function(t){return this.json.colors.push(t),t}},{key:"createColor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addColor(t)}},{key:"removeImage",value:function(t){this.removePropertyList(this.json.images,t),this.refreshImageKeys()}},{key:"copyImage",value:function(t){this.copyPropertyList(this.json.images,t),this.refreshImageKeys()}},{key:"sortImage",value:function(t,e){this.sortItem(this.json.images,t,e)}},{key:"setImageValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.json.images[t]=Kt(Kt({},this.json.images[t]),e),this.refreshImageKeys()}},{key:"getImageValueById",value:function(t){var e=this.json.imageKeys[t];if(e)return e.local}},{key:"refreshImageKeys",value:function(){var t={};this.json.images.forEach((function(e){t[e.id]=e})),this.reset({imageKeys:t})}},{key:"addImage",value:function(t){return this.json.images.push(t),this.refreshImageKeys(),t}},{key:"createImage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addImage(t)}},{key:"removeVideo",value:function(t){this.removePropertyList(this.json.videos,t),this.refreshVideoKeys()}},{key:"copyVideo",value:function(t){this.copyPropertyList(this.json.videos,t),this.refreshVideoKeys()}},{key:"sortVideo",value:function(t,e){this.sortItem(this.json.videos,t,e)}},{key:"setVideoValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.json.videos[t]=Kt(Kt({},this.json.videos[t]),e)}},{key:"getVideoValueById",value:function(t){var e=this.json.videoKeys[t];if(e)return e.local}},{key:"refreshVideoKeys",value:function(){var t={};this.json.videos.forEach((function(e){t[e.id]=e})),this.reset({videoKeys:t})}},{key:"addVideo",value:function(t){return this.json.videos.push(t),this.refreshVideoKeys(),t}},{key:"createVideo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addVideo(t)}},{key:"removeGradient",value:function(t){this.removePropertyList(this.json.gradients,t)}},{key:"copyGradient",value:function(t){this.copyPropertyList(this.json.gradients,t)}},{key:"sortGradient",value:function(t,e){this.sortItem(this.json.gradients,t,e)}},{key:"setGradientValue",value:function(t,e){this.json.gradients[t]=Kt(Kt({},this.json.gradients[t]),e)}},{key:"getGradientIndex",value:function(t){return this.json.gradients[t]}},{key:"getGradient",value:function(t){return this.json.gradients.filter((function(e){return e.name===t}))[0]}},{key:"addGradient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.json.gradients.push(t),t}},{key:"createGradient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addGradient(t)}},{key:"getSVGFilterIndex",value:function(t){var e=this.json.svgfilters.map((function(t,e){return{id:t.id,index:e}})).filter((function(e){return e.id===t}))[0];return e?e.index:-1}},{key:"removeSVGFilter",value:function(t){this.removePropertyList(this.json.svgfilters,t)}},{key:"copySVGFilter",value:function(t){this.copyPropertyList(this.json.svgfilters,t)}},{key:"sortSVGFilter",value:function(t,e){this.sortItem(this.json.svgfilters,t,e)}},{key:"setSVGFilterValue",value:function(t,e){this.json.svgfilters[t]=Kt(Kt({},this.json.svgfilters[t]),e)}},{key:"addSVGFilter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.json.svgfilters.push(t);var e=this.json.svgfilters.length-1;return e}},{key:"createSVGFilter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addSVGFilter(t)}},{key:"getSVGImageIndex",value:function(t){var e=this.json.svgimages.map((function(t,e){return{id:t.id,index:e}})).filter((function(e){return e.id===t}))[0];return e?e.index:-1}},{key:"removeSVGImage",value:function(t){this.removePropertyList(this.json.svgimages,t)}},{key:"copySVGImage",value:function(t){this.copyPropertyList(this.json.svgimages,t)}},{key:"sortSVGImage",value:function(t,e){this.sortItem(this.json.svgimages,t,e)}},{key:"setSVGImageValue",value:function(t,e){this.json.svgimages[t]=Kt(Kt({},this.json.svgimages[t]),e)}},{key:"addSVGImage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.json.svgimages.push(t);var e=this.json.svgimages.length-1;return e}},{key:"createSVGImage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addSVGImage(t)}}]),n}(Nt.a)),te=n(11),ee=n(28);function ne(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 re(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return f()(b()(n.prototype),"getDefaultObject",this).call(this,re({itemType:"project",name:"new Project",description:"",rootVariable:""},t))}},{key:"toCloneObject",value:function(){return re(re({},f()(b()(n.prototype),"toCloneObject",this).call(this)),this.attrs("name","description","rootVariable"))}},{key:"artboards",get:function(){return(this.json.layers||[]).filter((function(t){return t.is("artboard")}))}},{key:"offsetX",get:function(){return ie}},{key:"offsetY",get:function(){return ce}},{key:"hasLayout",value:function(){return!1}},{key:"getTransformMatrix",value:function(){return te.a.create()}},{key:"resetMatrix",value:function(t){var e=te.a.getTranslation([],Object(O.calculateMatrix)(t.getAccumulatedMatrix(),t.getTransformMatrixInverse())),n=c()(e,2),r=n[0],a=n[1];t.reset({x:S.a.px(r),y:S.a.px(a)})}},{key:"rectVerties",get:function(){var t;return null!==(t=this.layers)&&void 0!==t&&t.length?Object(ee.b)(this.layers):null}}]),n}(Jt);k.a.registerComponent("project",oe)},function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(75);function g(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 b(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return u()(y()(n.prototype),"getDefaultObject",this).call(this,b({type:"url",url:"",datauri:""},t))}},{key:"toCloneObject",value:function(){return b(b({},u()(y()(n.prototype),"toCloneObject",this).call(this)),this.attrs("url","datauri"))}},{key:"isUrl",value:function(){return!0}},{key:"toString",value:function(){var t=this.json;return"url(".concat(t.url,")")}}],[{key:"parse",value:function(t){return new n({url:t.split("(")[1].split(")")[0]})}},{key:"isImageFile",value:function(t){return x.includes(t)}}]),n}(m.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(10),s=n.n(o),l=n(5),u=n.n(l),h=n(6),f=n.n(h),d=n(0),p=n.n(d),v=n(50);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var m=function(t){u()(n,t);var e=y(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"getDefaultObject",value:function(){return s()(p()(n.prototype),"getDefaultObject",this).call(this,{type:"repeating-linear-gradient",angle:0})}}],[{key:"parse",value:function(t){var e=v.a.parse(t);return new n({angle:e.angle,colorsteps:e.colorsteps})}}]),n}(v.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(10),s=n.n(o),l=n(5),u=n.n(l),h=n(6),f=n.n(h),d=n(0),p=n.n(d),v=n(52);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var m=function(t){u()(n,t);var e=y(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"getDefaultObject",value:function(){return s()(p()(n.prototype),"getDefaultObject",this).call(this,{type:"repeating-radial-gradient"})}}],[{key:"parse",value:function(t){var e=v.a.parse(t);return new n({radialType:e.radialType,radialPosition:e.radialPosition,colorsteps:e.colorsteps})}}]),n}(v.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(10),s=n.n(o),l=n(5),u=n.n(l),h=n(6),f=n.n(h),d=n(0),p=n.n(d),v=n(4),y=n(53);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var g=function(t){u()(n,t);var e=m(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"getDefaultObject",value:function(){return s()(p()(n.prototype),"getDefaultObject",this).call(this,{type:"repeating-conic-gradient",angle:0,radialPosition:[v.b.CENTER,v.b.CENTER]})}}],[{key:"parse",value:function(t){var e=y.a.parse(t);return new n({angle:e.angle,radialPosition:e.radialPosition,colorsteps:e.colorsteps})}}]),n}(y.a)},function(t,e,n){"use strict";var r=n(123),a=n(124),i=n(125),c=n(126),o=n(98),s=n(105),l=n(127),u=n(112),h=n(128),f=n(129),d=n(107),p=n(133),v=n(42),y=n(44),m=n(134),g=n(131),b=n(132),k=n(130),x=n(139),O=n(148),w=n(116),j=n(86),z=n(2),M=n.n(z),V=n(3),S=n.n(V),P=n(5),C=n.n(P),R=n(6),H=n.n(R),$=n(0),L=n.n($),T=n(1),B=n(12),A=n(9),E=n(15);function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}var D=function(t){C()(n,t);var e=I(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){return{value:this.props.value}}},{key:"template",value:function(){return"
"}},{key:Object(T.b)("$body"),value:function(){return{"data-column":this.props.column||1}}},{key:Object(T.I)("$body"),value:function(){var t=this;return Object.keys(B.a).map((function(e){var n=B.a[e],r=e===t.state.value?"selected":"";return"
").concat(n,"
")}))}},{key:"getValue",value:function(){return this.state.value}},{key:"setValue",value:function(t){this.state.value=t,this.refresh()}},{key:Object(T.n)("$body .list-view-item"),value:function(t){var e=t.$dt.attr("data-key");t.$dt.onlyOneClass("selected"),this.updateData({value:e})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}}]),n}(E.a);function F(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}Object(A.a)({IconListViewEditor:D});var _=function(t){C()(n,t);var e=F(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){return{fit:!!this.props.value.fit,icon:this.props.value.icon||""}}},{key:"template",value:function(){var t=this.state.fit?'checked="checked"':"";return"\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n \n ')}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.modifyClipPath()}},{key:Object(T.n)("$fit"),value:function(){this.updateData({fit:this.refs.$fit.checked()})}},{key:Object(T.X)("changeClipPath"),value:function(t,e){this.updateData({icon:e})}},{key:"modifyClipPath",value:function(){var t=this.state,e=t.icon,n=t.fit;this.parent.trigger(this.props.onchange,this.props.key,{icon:e,fit:n})}}]),n}(E.a);Object(A.a)({SVGClipPathEditor:_});var X=n(144),G=n(140),N=n(142),Y=n(87),U=n(85),K=n(135),q=n(113),W=n(136),Z=n(114),Q=n(7),J=n.n(Q);n(34);function tt(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 et(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.modifyValue(t)}},{key:"modifyValue",value:function(t){this.parent.trigger(this.props.onchange,this.props.key,t,this.state.index)}},{key:"setValue",value:function(t){this.setState(et({},t))}},{key:Object(T.b)("$miniView"),value:function(){return{style:{"background-image":"linear-gradient(to top right, black, white)","background-repeat":this.state.repeat,"background-size":"7px 7px"}}}},{key:"template",value:function(){return"\n
\n
\n
\n
\n
\n
\n
\n ")}},{key:Object(T.n)("$preview"),value:function(t){this.viewBackgroundPositionPopup()}},{key:"viewBackgroundPositionPopup",value:function(){this.emit("showBackgroundImagePositionPopup",{changeEvent:"changeBackgroundPositionPattern",data:this.state},{id:this.id})}},{key:Object(T.X)("changeBackgroundPositionPattern"),value:function(t,e){e.id===this.id&&this.updateData(et({},t))}}]),n}(E.a);function at(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 it(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}Object(A.a)({BackgroundPositionEditor:rt});var ct=function(t){C()(n,t);var e=it(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){return{index:this.props.index,image:this.props.image,color:"rgba(0, 0, 0, 1)"}}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.modifyValue(t)}},{key:"modifyValue",value:function(t){this.parent.trigger(this.props.onchange,this.props.key,t,this.state.index)}},{key:"setValue",value:function(t){this.setState(function(t){for(var e=1;e\n
\n
\n
\n
\n
\n \n ")}},{key:Object(T.n)("$preview"),value:function(t){this.viewGradientPopup()}},{key:"viewGradientPopup",value:function(){this.emit("showGradientPickerPopup",{instance:this,changeEvent:"changeGradientSingle",gradient:this.state.image})}},{key:Object(T.X)("changeGradientSingle"),value:function(t,e){this.updateData({image:t}),this.refresh()}}]),n}(E.a);Object(A.a)({GradientSingleEditor:ct});var ot=n(115),st=n(137),lt=n(41);function ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}var ht=function(t){C()(n,t);var e=ut(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){return{index:this.props.index,label:this.props.label,simple:"true"===this.props.simple,image:lt.a.parseImage(this.props.image||"transparent")}}},{key:"fillId",get:function(){return this.id+"fill"}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.modifyValue(t)}},{key:"modifyValue",value:function(t){this.parent.trigger(this.props.onchange,this.props.key,this.getValue(),this.state.index)}},{key:"getValue",value:function(){return this.state.image.toString()}},{key:"setValue",value:function(t){this.setState({image:lt.a.parseImage(t)})}},{key:Object(T.b)("$fillView"),value:function(){var t=this.state.image;return t?{innerHTML:t.toSVGString(this.fillId)}:{innerHTML:""}}},{key:Object(T.b)("$fillColor"),value:function(){var t=this.state.image;return t?{fill:t.toFillValue(this.fillId)}:{fill:"transparent"}}},{key:Object(T.b)("$colors"),value:function(){var t=this.state.image;if(!t)return{fill:"transparent"};var e="url"!=t.type?"".concat(t.colorsteps[0].color):"transparent";return(t.type.includes("linear")||t.type.includes("radial"))&&(e=t.colorsteps.map((function(t){return"")})).join("")),{innerHTML:"
".concat(e,"
")}}},{key:"template",value:function(){var t=this.state,e=t.label,n=(t.removable,t.simple);return"\n
\n ").concat(e?""):""," \n
\n
\n\n \n \n \n \n
\n
\n
\n
\n ")}},{key:Object(T.n)("$preview"),value:function(t){this.viewGradientPopup()}},{key:"viewGradientPopup",value:function(){this.emit("showFillPickerPopup",{instance:this,changeEvent:"changeFillSingle",image:this.state.image})}},{key:Object(T.X)("changeFillSingle"),value:function(t,e){this.updateData({image:lt.a.parseImage(t)}),this.refresh()}}]),n}(E.a);Object(A.a)({FillSingleEditor:ht});var ft=n(145),dt=n(13),pt=n.n(dt);function vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}var yt=function(t){C()(n,t);var e=vt(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){var t=this.props.value;return{options:[],label:this.props.label||"",value:t}}},{key:"template",value:function(){var t=this.state.label;return"\n
\n ").concat(t?""):"","\n \n \n \n
\n ")}},{key:Object(T.n)("$remove"),value:function(t){this.updateData({value:""})}},{key:Object(T.n)("$open"),value:function(t){var e=this.state.value;if(e.includes("id")){var n=this.$selection.currentProject.getSVGFilterIndex(e);n>-1&&this.trigger("openSVGFilterPopup",n)}}},{key:"getValue",value:function(){return this.state.value}},{key:"setValue",value:function(t){this.setState({value:t})}},{key:"refresh",value:function(){this.load()}},{key:Object(T.b)("$options"),value:function(){return{"data-count":this.state.options.length.toString()}}},{key:Object(T.I)("$options"),value:function(){var t=this,e=this.$selection.currentProject,n="";return e&&(n=(n=e.svgfilters.map((function(t){return t.id}))).length?","+n.join(","):""),(n=(n+=",-,new").split(",")).map((function(e){var n=e;if((i=e).includes(":")){var r=i.split(":"),a=pt()(r,2),i=a[0];n=a[1]}""===n?n=t.props["none-value"]?t.props["none-value"]:"":"-"===n&&(n="----------",i="");var c=i===t.state.value?"selected":"";return"")}))}},{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.setState({options:t.split(this.state.splitChar).map((function(t){return t.trim()}))})}},{key:"sendMessage",value:function(t){"new"===t?this.emit("addStatusBarMessage",this.$i18n("svgfilter.select.editor.message.create")):"-"===t?this.emit("addStatusBarMessage",this.$i18n("svgfilter.select.editor.message.select")):this.emit("addStatusBarMessage","")}},{key:Object(T.g)("$options"),value:function(){var t=this,e=this.refs.$options.value;"new"==e?this.emit("addSVGFilterAssetItem",(function(e,n){t.updateData({value:n}),t.refresh(),t.trigger("openSVGFilterPopup",e)})):"-"===e||this.updateData({value:e})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}},{key:Object(T.X)("refreshSVGArea")+Object(T.o)(1e3),value:function(){this.load("$options")}},{key:Object(T.X)("openSVGFilterPopup"),value:function(t){this.emit("refreshSVGFilterAssets"),this.emit("refreshSVGArea");var e=(this.$selection.currentProject||{svgfilters:[]}).svgfilters[t];this.emit("showSVGFilterPopup",{changeEvent:"changeSVGFilterEditorRealUpdate",preview:!1,index:t,filters:e.filters})}},{key:Object(T.X)("changeSVGFilterEditorRealUpdate"),value:function(t){var e=this.$selection.currentProject;e&&(e.setSVGFilterValue(t.index,{filters:t.filters}),this.emit("refreshSVGFilterAssets"),this.emit("refreshSVGArea"))}}]),n}(E.a);Object(A.a)({SVGFilterSelectEditor:yt});var mt=n(141),gt=n(147),bt=n(4);function kt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}var xt=function(t){C()(n,t);var e=kt(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){var t=this.props.value;return{label:this.props.label||"",height:bt.a.px(100),value:t}}},{key:"template",value:function(){var t=this.state,e=t.label,n=t.height,r=t.value;return"\n
\n ").concat(e?""):"","\n \n
\n ")}},{key:"getValue",value:function(){return this.refs.$options.value}},{key:"setValue",value:function(t,e){this.setState({value:t},!1),e&&this.setState({height:e},!1),this.refresh()}},{key:Object(T.b)("$text"),value:function(){return{text:this.state.value||"",style:{height:this.state.height}}}},{key:Object(T.E)("$text"),value:function(){this.updateData({value:this.refs.$text.value})}},{key:"updateData",value:function(t){this.setState(t),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}}]),n}(E.a);Object(A.a)({TextAreaEditor:xt});var Ot=n(8);function wt(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 jt(t){for(var e=1;e\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n ")}},{key:"template",value:function(){return"\n
\n "}},{key:Object(T.X)("changeKeyValue"),value:function(t,e,n){this.setState(J()({},t,e),!1),this.modifyData()}}]),n}(E.a);Object(A.a)({FlexLayoutEditor:Mt});var Vt=n(45),St=n.n(Vt),Pt=n(106);function Ct(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}var Rt=/(auto)|(repeat\([^\)]*\))|(([\d.]+)(px|pt|fr|r?em|deg|vh|vw|%))/gi,Ht=function(t){C()(n,t);var e=Ct(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"getLayoutItemOptions",value:function(){var t=this;return"none,auto,repeat,length".split(",").map((function(e){return"".concat(e,":").concat(t.$i18n("grid.box.editor.".concat(e)))})).join(",")}},{key:"initState",value:function(){return{label:this.props.label,list:this.parseValue(this.props.value)}}},{key:"setValue",value:function(t){this.setState({list:this.parseValue(t)})}},{key:"parseValue",value:function(t){for(var e=null,n=[];null!==(e=Rt.exec(t));){var r=e[0];if("auto"===r)n.push({type:"auto",count:0,value:"0px"});else if(r.includes("repeat")){var a=r.split("repeat(")[1].split(")");a.pop();var i=a.join("").split(","),c=St()(i),o=c[0],s=c.slice(1);n.push({type:"repeat",count:o,value:s.join(", ")})}else n.push({type:"length",count:1,value:r})}return n}},{key:"getValue",value:function(){return this.state.list.map((function(t){return"repeat"===t.type?"repeat(".concat(t.count,", ").concat(t.value,")"):"auto"===t.type||"none"===t.type?t.type:t.value})).join(" ")}},{key:"modifyData",value:function(){this.parent.trigger(this.props.onchange,this.props.key,this.getValue())}},{key:"makeItem",value:function(t,e){return"\n
\n
\n \n \n
\n \n \n
\n \n \n
\n \n \n
\n \n ")}},{key:Object(T.I)("$list"),value:function(){var t=this;return this.state.list.map((function(e,n){return t.makeItem(e,n)}))}},{key:"template",value:function(){return"\n
\n
\n
\n
\n \n \n
\n
").concat(this.$i18n("grid.box.editor.count"),"
\n
").concat(this.$i18n("grid.box.editor.value"),"
\n
\n
\n
\n
\n
\n ")}},{key:Object(T.n)("$list .remove"),value:function(t){var e=+t.$dt.closest("item").attr("data-index");this.state.list.splice(e,1),this.refresh(),this.modifyData()}},{key:Object(T.n)("$list .copy"),value:function(t){var e=+t.$dt.closest("item").attr("data-index"),n=clone(this.state.list[e]);this.state.list.splice(e,0,n),this.refresh(),this.modifyData()}},{key:Object(T.n)("$add"),value:function(){this.trigger("add")}},{key:Object(T.X)("add"),value:function(){this.state.list.push({type:"auto",count:0,value:"0px"}),this.refresh(),this.modifyData()}},{key:Object(T.X)("changeKeyValue"),value:function(t,e,n){var r=+n,a=this.state.list[r];a&&("type"===t&&this.refs.$list.$('[data-index="'.concat(r,'"]')).attr("data-repeat-type",e),a[t]=e),this.modifyData()}}]),n}(E.a);function $t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}Object(A.a)({GridBoxEditor:Ht});var Lt=function(t){C()(n,t);var e=$t(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){return{label:this.props.label,value:this.parseValue(this.props.value)}}},{key:"setValue",value:function(t){this.setState({list:this.parseValue(t)})}},{key:"parseValue",value:function(t){return bt.a.parse(t)}},{key:"getValue",value:function(){return this.state.value}},{key:"modifyData",value:function(){this.parent.trigger(this.props.onchange,this.props.key,this.getValue())}},{key:"makeItem",value:function(){return"\n
\n
\n \n \n \n ')}},{key:Object(T.I)("$list"),value:function(){return this.makeItem()}},{key:"template",value:function(){return"\n
\n
\n
\n
\n
\n "}},{key:Object(T.X)("changeKeyValue"),value:function(t,e){this.state.value=e,this.modifyData()}}]),n}(E.a);function Tt(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 Bt(t){for(var e=1;e\n \n \n
\n \n \n
\n \n \n
\n \n \n ")}},{key:"template",value:function(){return"\n
\n "}},{key:Object(T.X)("changeKeyValue"),value:function(t,e,n){this.setState(J()({},t,e),!1),this.modifyData()}}]),n}(E.a);function It(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 Dt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}Object(A.a)({GridLayoutEditor:Et});var Ft=function(t){C()(n,t);var e=Dt(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){return function(t){for(var e=1;e\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n ")}},{key:"template",value:function(){return"\n
\n "}},{key:Object(T.X)("changeKeyValue"),value:function(t,e,n){this.setState(J()({},t,e),!1),this.modifyData()}}]),n}(E.a);function _t(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 Xt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}Object(A.a)({FlexLayoutItemEditor:Ft});var Gt=function(t){C()(n,t);var e=Xt(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){return function(t){for(var e=1;e\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n ")}},{key:"template",value:function(){return"\n
\n "}},{key:Object(T.X)("changeKeyValue"),value:function(t,e,n){this.setState(J()({},t,e),!1),this.modifyData()}}]),n}(E.a);Object(A.a)({GridLayoutItemEditor:Gt});var Nt=n(16),Yt=n.n(Nt),Ut=n(49),Kt=n(111);function qt(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 Wt(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.modifyValue(t)}},{key:"modifyValue",value:function(t){this.parent.trigger(this.props.onchange,this.props.key,t,this.state.index)}},{key:"setValue",value:function(t){this.setState(Wt({},t))}},{key:Object(T.b)("$miniView"),value:function(){var t=Wt({},this.state);return this.state.width.value>80&&(t.width=bt.a.px(80),t.x=bt.a.px(t.x.value/this.state.width.value/80)),this.state.height.value>80&&(t.height=bt.a.px(80),t.y=bt.a.px(this.state.y.value/this.state.height.value/80)),{cssText:Ut.a.parse(t).toCSS()}}},{key:"template",value:function(){return"\n
\n
\n
\n
\n
\n
\n
\n ")}},{key:Object(T.n)("$preview"),value:function(t){this.viewBackgroundPositionPopup()}},{key:"viewBackgroundPositionPopup",value:function(){this.emit("showPatternInfoPopup",{changeEvent:"changePatternInfo",data:this.state,instance:this})}},{key:Object(T.X)("changePatternInfo"),value:function(t){this.updateData(Wt({},t))}}]),n}(E.a);function Jt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}Object(A.a)({PatternSizeEditor:Qt});var te=function(t){C()(n,t);var e=Jt(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){return{hideLabel:"true"===this.props["hide-label"],value:this.props.value,patterns:this.parsePattern(this.props.value)}}},{key:"parsePattern",value:function(t){return Ut.a.parseStyle(t)}},{key:"setValue",value:function(t){this.setState({value:t,patterns:this.parsePattern(t)})}},{key:"template",value:function(){var t=this.state.hideLabel?"hide":"";return"\n
\n
\n \n
\n \n
\n
\n
\n
\n ")}},{key:Object(T.I)("$patternList"),value:function(){var t=this;return this.state.patterns.map((function(e,n){var r=e.selected?"selected":"";return e.selected&&(t.selectedIndex=n),"\n
\n \n
\n \n
\n \n ")}))}},{key:"modifyPattern",value:function(){var t=Ut.a.join(this.state.patterns);this.parent.trigger(this.props.onchange,this.props.key,t)}},{key:Object(T.X)("add"),value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"check",e=Kt.a.find((function(e){return e.key===t}));e&&(this.state.patterns.push.apply(this.state.patterns,Ut.a.parseStyle(e.execute()[0].pattern)),this.refresh(),this.modifyPattern())}},{key:Object(T.n)("$add"),value:function(){this.trigger("add")}},{key:Object(T.w)("$patternList .pattern-item"),value:function(t){this.startIndex=+t.$dt.attr("data-index")}},{key:Object(T.v)("$patternList .pattern-item")+T.R,value:function(t){}},{key:"sortItem",value:function(t,e,n){t.splice.apply(t,[n+(e1&&void 0!==arguments[1])||arguments[1];e?this.refs["fillIndex".concat(t)].addClass("selected"):this.refs["fillIndex".concat(t)].removeClass("selected"),this.state.patterns.forEach((function(e,n){e.selected=n===t}))}},{key:Object(T.X)("changePatternSizeInfo")+Object(T.o)(10),value:function(t,e,n){this.state.patterns[n].reset(e),this.modifyPattern(),this.refresh()}}]),n}(E.a);Object(A.a)({PatternEditor:te});var ee=n(143),ne=n(138);function re(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L()(t);if(e){var a=L()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return H()(this,n)}}var ae=function(t){C()(n,t);var e=re(n);function n(){return M()(this,n),e.apply(this,arguments)}return S()(n,[{key:"initState",value:function(){var t="true"==="".concat(this.props.value);return{label:this.props.label||"",value:t}}},{key:"template",value:function(){var t=this.state,e=t.label,n=t.value;return"\n
\n ").concat(e?""):"","\n \n
\n ")}},{key:"getValue",value:function(){return this.state.value}},{key:Object(T.n)("$checkbox"),value:function(){this.updateData({value:this.refs.$checkbox.checked()})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.getValue(),this.props.params)}}]),n}(E.a);Object(A.a)({CheckBoxEditor:ae});var ie=n(10),ce=n.n(ie),oe=n(36);function se(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 le(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return y({itemType:"image-resource",type:"image"},t)}},{key:"isGradient",value:function(){return!1}},{key:"isLinear",value:function(){return!1}},{key:"isRadial",value:function(){return!1}},{key:"isConic",value:function(){return!1}},{key:"isStatic",value:function(){return!1}},{key:"isImage",value:function(){return!1}},{key:"hasAngle",value:function(){return!1}},{key:"isUrl",value:function(){return!1}},{key:"isFile",value:function(){return!1}},{key:"isAttribute",value:function(){return!0}},{key:"toString",value:function(){return"none"}}]),n}(n(31).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v);function m(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 g(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return u()(y()(n.prototype),"getDefaultObject",this).call(this,g({itemType:"svg",name:"New SVG",elementType:"svg",overflow:"visible",stroke:"black","stroke-width":1,svgfilter:"",fill:"transparent","fill-rule":"","fill-opacity":"","stroke-linecap":"","stroke-linejoin":"","stroke-dashoffset":0,"stroke-dasharray":" ","text-anchor":"start"},t))}},{key:"toCloneObject",value:function(){return g(g({},u()(y()(n.prototype),"toCloneObject",this).call(this)),this.attrs("overflow","stroke","stroke-width","svgfilter","fill","fill-rule","fill-opacity","stroke-linecap","stroke-linejoin","stroke-dashoffset","stroke-dasharray","text-anchor"))}},{key:"getDefaultTitle",value:function(){return"SVG"}},{key:"isSVG",value:function(){return!0}}]),n}(n(43).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(5),s=n.n(o),l=n(6),u=n.n(l),h=n(0),f=n.n(h);function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var p=function(t){s()(n,t);var e=d(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"toString",value:function(){return""}},{key:"toSVGString",value:function(t){return""}},{key:"toFillValue",value:function(t){return""}}]),n}(n(38).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r=n(13),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(5),u=n.n(l),h=n(6),f=n.n(h),d=n(0),p=n.n(d),v=n(29),y=n(40),m=n(8);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var b=/[\b\t \,]/g,k=function(t){u()(n,t);var e=g(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return c()(this,n),e.call(this,t)}return s()(n,[{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.segments=[],this.points=t,this.parse()}},{key:"resetSegments",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.segments=t,this.points=this.joinPoints()}},{key:"parse",value:function(){var t=this.points;Object(m.isArray)(t)&&(t=t.join(" "));for(var e=t.trim().split(b).filter((function(t){return t})),n=[],r=0,a=e.length;r1&&void 0!==arguments[1]&&arguments[1],r=this.segments.map((function(n){return t.call(e,n)}));if(n)return r;this.segments=r}},{key:"_loop",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.each((function(e){var n=t([e.x,e.y],0),r=a()(n,2),i=r[0],c=r[1];return e.x=i,e.y=c,e}),e)}},{key:"clone",value:function(){return new n(this.joinPoints())}},{key:"toString",value:function(){return this.joinPoints()}}]),n}(v.a)},function(t,e,n){"use strict";e.a=[{category:"History",key:"cmd+z",win:"ctrl+z",command:"history.undo",description:"undoing in history",when:"CanvasView"},{category:"History",key:"cmd+shift+z",win:"ctrl+shift+z",command:"history.redo",description:"redoing in history",when:"CanvasView"},{category:"Tool",key:"v",command:"addLayerView",args:"select",description:"Selection"},{category:"Tool",key:"a",command:"addLayerView",args:["artboard"],description:"Add ArtBoard",when:"CanvasView"},{category:"Tool",key:"r",command:"addLayerView",args:["rect"],description:"Add rect layer"},{category:"Tool",key:"m",command:"addLayerView",args:["rect"],description:"Add rect layer"},{category:"Tool",key:"o",command:"addLayerView",args:["circle"],description:"Add circle layer"},{category:"Tool",key:"l",command:"addLayerView",args:["circle"],description:"Add circle layer"},{category:"Tool",key:"t",command:"addLayerView",args:["text"],description:"Add text layer"},{category:"Tool",key:"p",command:"addLayerView",args:["path"],description:"Add SVG Path layer"},{category:"Tool",key:"b",command:"addLayerView",args:["brush"],description:"Draw SVG Path"},{category:"Group",key:"cmd+g",win:"ctrl+g",command:"group.item",description:"Grouping selected items",when:"CanvasView"},{category:"Group",key:"shift+cmd+g",win:"shift+ctrl+g",command:"ungroup.item",description:"Ungrouping selected group layer",when:"CanvasView"},{category:"Path",key:"ArrowDown",command:"segment.move.down",description:"move 1px to down",args:[{dy:1}],when:"PathEditorView"},{category:"Path",key:"ArrowUp",command:"segment.move.up",description:"move 1px to up",args:[{dy:1}],when:"PathEditorView"},{category:"Path",key:"ArrowRight",command:"segment.move.right",description:"move 1px to right",args:[{dx:1}],when:"PathEditorView"},{category:"Path",key:"ArrowLeft",command:"segment.move.left",description:"move 1px to left",args:[{dx:1}],when:"PathEditorView"},{category:"Path",key:"Shift+ArrowDown",command:"segment.move.down",description:"move 10px to down",args:[{dy:10}],when:"PathEditorView"},{category:"Path",key:"Shift+ArrowUp",command:"segment.move.up",description:"move 10px to up",args:[{dy:10}],when:"PathEditorView"},{category:"Path",key:"Shift+ArrowLeft",command:"segment.move.left",description:"move 10px to left",args:[{dx:10}],when:"PathEditorView"},{category:"Path",key:"Shift+ArrowRight",command:"segment.move.right",description:"move 10px to right",args:[{dx:10}],when:"PathEditorView"},{category:"Path",key:"Alt+ArrowDown",command:"segment.move.down",description:"move 5px to down",args:[{dy:5}],when:"PathEditorView"},{category:"Path",key:"Alt+ArrowUp",command:"segment.move.up",description:"move 5px to up ",args:[{dy:5}],when:"PathEditorView"},{category:"Path",key:"Alt+ArrowLeft",command:"segment.move.left",description:"move 5px to left",args:[{dx:5}],when:"PathEditorView"},{category:"Path",key:"Alt+ArrowRight",command:"segment.move.right",description:"move 5px to right",args:[{dx:5}],when:"PathEditorView"},{category:"Path",key:"Backspace",command:"segment.delete",description:"Delete selected segment",when:"PathEditorView"},{category:"Layer",key:"ArrowLeft",command:"moveLayer",description:"move 1px to left",args:[-1,0],when:"CanvasView"},{category:"Layer",key:"ArrowRight",command:"moveLayer",description:"move 1px to right",args:[1,0],when:"CanvasView"},{category:"Layer",key:"ArrowDown",command:"moveLayer",description:"move 1px to down",args:[0,1],when:"CanvasView"},{category:"Layer",key:"ArrowUp",command:"moveLayer",description:"move 1px to up",args:[0,-1],when:"CanvasView"},{category:"Layer",key:"Shift+ArrowDown",command:"moveLayer",description:"move 10px to down",args:[0,10],when:"CanvasView"},{category:"Layer",key:"Shift+ArrowRight",command:"moveLayer",description:"move 10px to right",args:[10,0],when:"CanvasView"},{category:"Layer",key:"Shift+ArrowUp",command:"moveLayer",description:"move 10px to up",args:[0,-10],when:"CanvasView"},{category:"Layer",key:"Shift+ArrowLeft",command:"moveLayer",description:"move 10px to left",args:[-10,0],when:"CanvasView"},{category:"Layer",key:"Alt+ArrowLeft",command:"moveLayer",description:"move 5px to left",args:[-5,0],when:"CanvasView"},{category:"Layer",key:"Alt+ArrowDown",command:"moveLayer",description:"move 5px to down",args:[0,5],when:"CanvasView"},{category:"Layer",key:"Alt+ArrowRight",command:"moveLayer",description:"move 5px to right",args:[5,0],when:"CanvasView"},{category:"Layer",key:"Alt+ArrowUp",command:"moveLayer",description:"move 5px to up",args:[0,-5],when:"CanvasView"},{category:"Layer",key:"ctrl+]",command:"item.move.depth.up",description:"move layer to above",when:"CanvasView"},{category:"Layer",key:"ctrl+[",command:"item.move.depth.down",description:"move layer to below",when:"CanvasView"},{category:"Layer",key:"Backspace",command:"history.removeLayer",description:"Delete selected items",args:["Delete selected items"],when:"CanvasView"},{category:"Layer",key:"Shift+Backspace",command:"history.removeLayer",description:"Delete selected items",args:["Delete selected items"],when:"CanvasView"},{category:"Tool",key:"Minus",command:"scale.minus",description:"Minus scale",when:"CanvasView"},{category:"Tool",key:"Equal",command:"scale.plus",description:"Plus scale",when:"CanvasView"},{category:"Edit",key:"cmd+c",command:"clipboard.copy",description:"Copy objects",when:"CanvasView"},{category:"Edit",key:"cmd+v",win:"ctrl+v",command:"clipboard.paste",description:"Paste selected objects",when:"CanvasView"}]},function(t,e,n){"use strict";n.r(e),n.d(e,"HUEtoRGB",(function(){return i})),n.d(e,"HSLtoHSV",(function(){return c})),n.d(e,"HSLtoRGB",(function(){return o}));var r=n(46),a=n(14);function i(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function c(t,e,n){if(1==arguments.length){var a=arguments[0];t=a.h,e=a.s,n=a.l}var i=o(t,e,n);return Object(r.RGBtoHSV)(i.r,i.g,i.b)}function o(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.h,e=r.s,n=r.l}var c,o,s;if(t/=360,n/=100,0==(e/=100))c=o=s=n;else{var l=n<.5?n*(1+e):n+e-n*e,u=2*n-l;c=i(u,l,t+1/3),o=i(u,l,t),s=i(u,l,t-1/3)}return{r:Object(a.round)(255*c),g:Object(a.round)(255*o),b:Object(a.round)(255*s)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(8),s=n(30),l={none:!0,hidden:!0,dotted:!0,dashed:!0,solid:!0,double:!0,groove:!0,ridge:!0,inset:!0,outset:!0},u=function(){function t(){a()(this,t)}return c()(t,null,[{key:"parseStyle",value:function(t){return Object(o.STRING_TO_CSS)(t)}},{key:"parseValue",value:function(t){var e="",n="",r="";return t.split(" ").filter((function(t){return t.trim()})).forEach((function(t){l[t]?e=t:s.a.isColor(t)?r=t:n=t})),{style:e,color:r,width:n}}},{key:"joinValue",value:function(t){return"".concat(t.width," ").concat(t.style||"solid"," ").concat(t.color)}},{key:"join",value:function(t){return[t.border?"border: ".concat(t.border):"",t["border-top"]?"border-top: ".concat(t["border-top"]):"",t["border-left"]?"border-left: ".concat(t["border-left"]):"",t["border-right"]?"border-right: ".concat(t["border-right"]):"",t["border-bottom"]?"border-bottom: ".concat(t["border-bottom"]):""].filter((function(t){return t})).join(";")}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return j}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(29),g=n(36),b=n(12),k=n(32);function x(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 O(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return u()(y()(n.prototype),"getDefaultObject",this).call(this,O({itemType:"svg-path",name:"New Path","stroke-width":1,d:"",totalLength:0},t))}},{key:"enableHasChildren",value:function(){return!1}},{key:"setCache",value:function(){u()(y()(n.prototype),"setCache",this).call(this),this.cachePath=new m.a(this.json.d),this.cachePath.scale(1/this.json.width.value,1/this.json.height.value)}},{key:"recover",value:function(){u()(y()(n.prototype),"recover",this).call(this),this.cachePath||this.setCache();var t=this.json.width.value,e=this.json.height.value;this.json.d=this.cachePath.clone().scaleTo(t,e)}},{key:"toCloneObject",value:function(){return O(O({},u()(y()(n.prototype),"toCloneObject",this).call(this)),this.attrs("d"))}},{key:"getDefaultTitle",value:function(){return"Path"}},{key:"toAnimationKeyframes",value:function(t){var e=t.filter((function(t){return Object(g.g)(t.property)&&Object(g.f)(t.property)})),n=t.filter((function(t){return Object(g.e)(t.property)}));return[{selector:'[data-id="'.concat(this.json.id,'"]'),properties:n},{selector:'[data-id="'.concat(this.json.id,'"] path'),properties:e}]}}]),n}(n(76).a);k.a.registerComponent("svg-path",j)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r={name:void 0};function a(){return void 0===r.name&&(-1!=navigator.appVersion.indexOf("Win")?r.name="win":-1!=navigator.appVersion.indexOf("Mac")?r.name="mac":-1!=navigator.appVersion.indexOf("X11")?r.name="linux":r.name=""),r.name}},function(t,e,n){"use strict";var r=n(19),a=(n(33),n(2)),i=n.n(a),c=n(3),o=n.n(c),s=n(5),l=n.n(s),u=n(6),h=n.n(u),f=n(0),d=n.n(f),p=n(8),v=n(7),y=n.n(v);function m(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 g(t){for(var e=1;e\n ').concat(this.toDefString(t),"\n ").concat(Object(p.isFunction)(e)&&e(),"\n \n ")}},{key:"render",value:function(t,e){var n=t.width,r=t.height,a=t.elementType||"div",i=this.toCSS(t);return this.wrappedRender(t,(function(){return'\n \n <').concat(a,' xmlns="http://www.w3.org/1999/xhtml" style="').concat(Object(p.CSS_TO_STRING)(i),';width:100%;height:100%;">\n \n ").concat(t.layers.map((function(t){return e.render(t,e)})).join(""),"\n ")}))}}]),n}(n(56).a);function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var O=function(t){l()(n,t);var e=x(n);function n(){return i()(this,n),e.apply(this,arguments)}return o()(n,[{key:"toCSS",value:function(t){var e=Object.assign({},this.toDefaultCSS(t),this.toClipPathCSS(t),this.toWebkitCSS(t),this.toTextClipCSS(t),this.toBackgroundImageCSS(t));return delete e.left,delete e.top,delete e.width,delete e.height,delete e.position,e}},{key:"render",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=(t.x,t.y,t.width),a=t.height,i=this.toCSS(t);return"\n".concat(n?'':"",'\n\n ').concat(this.toDefString(t),"\n ").concat(t.layers.map((function(t){return e.render(t,e)})).join(""),"\n \n ")}}]),n}(k);function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var j=function(t){l()(n,t);var e=w(n);function n(){return i()(this,n),e.apply(this,arguments)}return n}(k);function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var M=function(t){l()(n,t);var e=z(n);function n(){return i()(this,n),e.apply(this,arguments)}return n}(j),V=n(10),S=n.n(V);function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var C=function(t){l()(n,t);var e=P(n);function n(){return i()(this,n),e.apply(this,arguments)}return o()(n,[{key:"update",value:function(t,e){var r=e.$("iframe");r&&r.attr("src",t.url||"about:blank"),S()(d()(n.prototype),"update",this).call(this,t,e)}},{key:"render",value:function(t){var e=t.width,n=t.height,r=(t.id,t.url),a=void 0===r?"about:blank":r,i=this.toCSS(t);return this.wrappedRender(t,(function(){return'\n \n \n \n ')}))}}]),n}(j);function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var H=function(t){l()(n,t);var e=R(n);function n(){return i()(this,n),e.apply(this,arguments)}return o()(n,[{key:"getUrl",value:function(t){var e=t.src;return t.project.getImageValueById(e)}},{key:"render",value:function(t){var e=this,n=t.width,r=t.height,a=this.toCSS(t);return this.wrappedRender(t,(function(){return'\n \n
\n \n
\n \n ')}))}},{key:"update",value:function(t,e){var r=e.$("img");r&&r.attr("src",this.getUrl(t)),S()(d()(n.prototype),"update",this).call(this,t,e)}}]),n}(j);function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var L=function(t){l()(n,t);var e=$(n);function n(){return i()(this,n),e.apply(this,arguments)}return o()(n,[{key:"render",value:function(t,e){return t.artboards.map((function(t){return e.render(t,e)}))}}]),n}(k);function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var B=function(t){l()(n,t);var e=T(n);function n(){return i()(this,n),e.apply(this,arguments)}return n}(j),A=n(30),E=n(41);function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var D=function(t){l()(n,t);var e=I(n);function n(){return i()(this,n),e.apply(this,arguments)}return o()(n,[{key:"updateDefString",value:function(t,e){var n=e.$("defs");if(n)n.html(this.toDefInnerString(t));else{var a=this.toDefString(t).trim();e.prepend(r.a.createByHTML(a))}}},{key:"toDefInnerString",value:function(t){return"\n ".concat(this.toFillSVG(t),"\n ").concat(this.toStrokeSVG(t),"\n ")}},{key:"toDefString",value:function(t){var e=this.toDefInnerString(t).trim();return"\n \n ".concat(e,"\n \n ")}},{key:"fillId",value:function(t){return this.getInnerId(t,"fill")}},{key:"strokeId",value:function(t){return this.getInnerId(t,"stroke")}},{key:"toFillSVG",value:function(t){return E.a.parseImage(t.fill||"transparent").toSVGString(this.fillId(t))}},{key:"toStrokeSVG",value:function(t){return E.a.parseImage(t.stroke||"black").toSVGString(this.strokeId(t))}},{key:"toFillValue",value:function(t){return E.a.parseImage(t.fill||"transparent").toFillValue(this.fillId(t))}},{key:"toFillOpacityValue",value:function(t){return A.a.parse(t.fill||"transparent").a}},{key:"toStrokeValue",value:function(t){return E.a.parseImage(t.stroke||"black").toFillValue(this.strokeId(t))}},{key:"toFilterValue",value:function(t){return t.svgfilter?"url(#".concat(t.svgfilter,")"):""}},{key:"toLayoutCSS",value:function(t){return{}}}]),n}(j);function F(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 _(t){for(var e=1;e\n ")}))}}]),n}(D);function N(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 Y(t){for(var e=1;e\n ')}},{key:"render",value:function(t){var e=this;return this.wrappedRender(t,(function(){var n=t.textLength,r=t.lengthAdjust,a=t.startOffset;return"\n ").concat(t.text,"\n ")}))}}]),n}(D);function q(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){for(var e=1;e").concat(t.text,"\n ")}))}}]),n}(D),J=n(97);function tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var et=function(t){l()(n,t);var e=tt(n);function n(){return i()(this,n),e.apply(this,arguments)}return o()(n,[{key:"update",value:function(t,e){var r=this.compile(t),a=e.$(".inner-html");a&&a.updateDiff(r),S()(d()(n.prototype),"update",this).call(this,t,e)}},{key:"compile",value:function(t){return J.a.compile("dom",t.template,t.params)}},{key:"render",value:function(t){var e=t.id,n=t.width,r=t.height,a=this.compile(t);return this.wrappedRender(t,(function(){return'\n \n
\n \n
\n ').concat(a,"\n
\n
\n \n ")}))}}]),n}(j);function nt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var rt=function(t){l()(n,t);var e=nt(n);function n(){return i()(this,n),e.apply(this,arguments)}return o()(n,[{key:"toCSS",value:function(t){var e=S()(d()(n.prototype),"toCSS",this).call(this,t);return e.margin=e.margin||"0px",e}},{key:"render",value:function(t){var e=t.content,n=t.width,r=t.height,a=this.toCSS(t);return this.wrappedRender(t,(function(){return'\n \n

').concat(e,"

\n
\n ")}))}},{key:"update",value:function(t,e){var n=t.content;e.updateDiff(n)}}]),n}(j);function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var a=d()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var it=function(t){l()(n,t);var e=at(n);function n(){return i()(this,n),e.apply(this,arguments)}return o()(n,[{key:"getUrl",value:function(t){var e=t.src;return t.project.getVideoValueById(e)}},{key:"render",value:function(t,e){var n=this,r=t.width,a=t.height,i=t.controls,c=t.muted,o=t.poster,s=t.loop,l=t.crossorigin,u=t.autoplay,h=this.toCSS(t);return this.wrappedRender(t,(function(){return'\n \n \n \n ')}))}}]),n}(j),ct={project:new L,artboard:new O,rect:new B,circle:new M,image:new H,template:new et,iframe:new C,video:new it,text:new rt,"svg-path":new G,"svg-text":new Q,"svg-textpath":new K};e.a={render:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ct[t.itemType];return r?r.render(t,e||this,n):""},toCSS:function(t){var e=ct[t.itemType];if(e)return e.toCSS(t)},toTransformCSS:function(t){var e=ct[t.itemType];if(e)return e.toTransformCSS(t)},toStyle:function(t,e){var n=ct[t.itemType];if(n)return n.toStyle(t,e||this)},update:function(t,e){var n=ct[t.itemType];if(n)return n.update(t,e)},codeview:function(t){if(!t)return"";var e=this.render(t);return e=e.replace(/\/g,">"),"\n
\n ".concat(e&&"
".concat(e,"
"),"\n
\n ")}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(5),u=n.n(l),h=n(6),f=n.n(h),d=n(0),p=n.n(d),v=n(4),y=n(1),m=n(12),g=(n(44),n(8)),b=n(9);function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var x=function(t){u()(n,t);var e=k(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"initState",value:function(){var t=this.props.units||"px,em,%",e=v.a.parse(this.props.value||v.a.z()),n=this.props.label||"";return m.a[n]&&(n=m.a[n]),{removable:"true"===this.props.removable,label:n,compact:"true"===this.props.compact,min:+this.props.min||0,max:+this.props.max||100,step:+this.props.step||1,key:this.props.key,params:this.props.params||"",layout:this.props.layout||"",units:t,value:e}}},{key:"template",value:function(){return"
"}},{key:Object(y.I)("$body"),value:function(){var t=this.state,e=t.min,n=t.max,r=t.step,i=t.label,c=t.compact,o=t.removable,s=t.layout,l=+this.state.value.value.toString();isNaN(l)&&(l=0);var u=s,h=(+l).toString();return'\n
\n ').concat(i?""):"","\n
\n
\n \n \n \n \n \n \n \n \n ")}},{key:"getValue",value:function(){return this.state.value.clone()}},{key:"setValue",value:function(t){this.setState({value:v.a.parse(t)},!1),this.refs.$propertyNumber.val(this.state.value.value),this.refs.$unit.val(this.state.value.unit)}},{key:Object(y.B)("$propertyNumber"),value:function(t){this.refs.$range.addClass("focused")}},{key:Object(y.f)("$propertyNumber"),value:function(t){this.refs.$range.removeClass("focused")}},{key:Object(y.n)("$remove"),value:function(t){this.updateData({value:""})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}},{key:"initValue",value:function(){""==this.state.value&&(this.state.value=new v.a(0,this.children.$unit.getValue()))}},{key:Object(y.E)("$propertyNumber"),value:function(t){var e=+this.getRef("$propertyNumber").value;this.initValue(),this.updateData({value:new v.a(e,this.children.$unit.getValue())})}},{key:Object(y.X)("changeUnit"),value:function(t,e){this.initValue(),this.updateData({value:this.state.value.toUnit(e)})}},{key:Object(y.X)("changeVarType"),value:function(t,e){this.updateData({value:new v.a(this.refs.$calc.value,e)})}}]),n}(n(15).a);Object(b.a)({InputRangeEditor:x})},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(5),s=n.n(o),l=n(6),u=n.n(l),h=n(0),f=n.n(h),d=n(4),p=n(1),v=n(12),y=n(9);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var g=function(t){s()(n,t);var e=m(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"initState",value:function(){var t=d.a.parse(this.props.value||d.a.number(0));return t=t.toUnit("number"),{removable:"true"===this.props.removable,clamp:"true"===this.props.clamp,label:this.props.label||"",min:+this.props.min||0,max:+this.props.max||100,step:+this.props.step||1,key:this.props.key,params:this.props.params||"",layout:this.props.layout||"",value:t}}},{key:"template",value:function(){return"
"}},{key:Object(p.I)("$body"),value:function(){var t=this.state,e=t.min,n=t.max,r=t.step,a=t.label,i=t.type,c=t.removable,o=t.layout,s=+this.state.value.value.toString();isNaN(s)&&(s=0);var l=a?"has-label":"",u=c?"is-removable":"",h=o,f=(+s).toString();return"\n
\n ").concat(a?'"):"","\n
\n
\n \n \n
\n
\n \n
\n ")}},{key:"setMin",value:function(t){this.setState({min:d.a.parse(t)})}},{key:"setMax",value:function(t){this.setState({max:d.a.parse(t)})}},{key:"getValue",value:function(){return this.state.clamp?this.state.value.clamp(this.state.min,this.state.max):this.state.value}},{key:"setValue",value:function(t){this.setState({value:d.a.parse(t)})}},{key:Object(p.B)("$propertyNumber"),value:function(t){this.refs.$propertyNumber.addClass("focused")}},{key:Object(p.f)("$propertyNumber"),value:function(t){this.refs.$propertyNumber.removeClass("focused")}},{key:Object(p.n)("$remove"),value:function(t){this.updateData({value:""})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.getValue(),this.props.params)}},{key:Object(p.E)("$propertyNumber"),value:function(t){var e=+this.getRef("$propertyNumber").value;this.getRef("$property").val(e),this.updateData({value:this.state.value.set(e)})}},{key:Object(p.Q)("$property")+Object(p.K)("moveRange")+Object(p.y)("moveRange"),value:function(){}},{key:"moveRange",value:function(){this.trigger("changeValue")}},{key:Object(p.X)("changeValue")+Object(p.Z)(100),value:function(){var t=+this.getRef("$property").value;this.getRef("$propertyNumber").val(t),""===this.state.value&&(this.state.value=d.a.number(0)),this.updateData({value:this.state.value.set(t)})}}]),n}(n(15).a);Object(y.a)({NumberRangeEditor:g})},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r=n(13),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(5),u=n.n(l),h=n(6),f=n.n(h),d=n(0),p=n.n(d),v=n(1),y=n(12),m=n(8),g=n(9);function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var k=function(t){u()(n,t);var e=b(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"initState",value:function(){var t=this.props["key-value-char"]||":",e=this.props.split||",",n=(this.props.options||"").split(e).map((function(t){return t.trim()})),r=(this.props.icons||"").split(e).map((function(t){return t.trim()})),a=(this.props.colors||"").split(e).map((function(t){return t.trim()})),i=this.props.value||"";return{keyValueChar:t,label:this.props.label||"",compact:"true"===this.props.compact,options:n,icons:r,colors:a,value:i}}},{key:"template",value:function(){var t=this.state,e=t.label,n=t.compact?"compact":"";return"\n
\n ").concat(e?'"):"","\n
\n
\n ")}},{key:Object(v.n)("$close"),value:function(){this.updateData({value:""}),this.refresh()}},{key:"getValue",value:function(){return this.state.value||""}},{key:"setValue",value:function(t){this.setState({value:t})}},{key:Object(v.I)("$options")+v.q,value:function(){var t=this;return this.state.options.map((function(e,n){var r=e,i=e,c="";if((l=e).includes(t.state.keyValueChar)){var o=l.split(t.state.keyValueChar),s=a()(o,2),l=s[0];r=s[1]}var u=l===t.state.value,h=u?"selected":"";if(""===e){r=y.a.close;i="close"}else{var f=t.state.icons[n];y.a[f]&&(c="icon"),i=r,r=y.a[f]||r||f||e}var d=t.state.colors[n],p={};return u&&d&&(p["background-color"]=d),"
").concat(r,"
")}))}},{key:Object(v.n)("$options .select-icon-item"),value:function(t){var e=t.$dt.attr("data-value");this.updateData({value:e}),this.refresh()}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.getValue(),this.props.params)}}]),n}(n(15).a);Object(g.a)({SelectIconEditor:k})},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(4),s=function(){function t(){a()(this,t)}return c()(t,null,[{key:"parseStyle",value:function(t){var e={isAll:!0,"border-radius":o.a.z(),"border-top-left-radius":o.a.z(),"border-top-right-radius":o.a.z(),"border-bottom-right-radius":o.a.z(),"border-bottom-left-radius":o.a.z()},n=t.split(" ").filter((function(t){return o.a.parse(t)}));return 1===n.length?(e.isAll=!0,e["border-radius"]=n[0]):(e.isAll=!1,e["border-top-left-radius"]=n[0],e["border-top-right-radius"]=n[1],e["border-bottom-right-radius"]=n[2],e["border-bottom-left-radius"]=n[3]),e}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return z}));var r=n(16),a=n.n(r),i=n(7),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(10),f=n.n(h),d=n(5),p=n.n(d),v=n(6),y=n.n(v),m=n(0),g=n.n(m),b=n(31),k=n(8),x=n(4);function O(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){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return this.addProperty(w({checked:!0,value:x.a.z()},t))}},{key:"addProperty",value:function(t){this.json.properties.push(t)}},{key:"removeProperty",value:function(t){this.json.properties.splice(t,1)}},{key:"sortItem",value:function(t,e,n){t.splice.apply(t,[n+(e1&&void 0!==arguments[1]?arguments[1]:{};Object.assign(this.json.properties[+t],w({},e))}},{key:"updatePropertyByKey",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.json.properties,r=-1,a=0,i=n.length;a\n \n \n \n ")}},{key:Object(b.W)(),value:function(){var t=k.a.generate(this.$editor);return this.refs.$codepen.val(JSON.stringify(function(t){for(var e=1;e.008856?Math.pow(t,3):(t-16/116)/7.787}function i(t){return t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t}function c(t,e,n){if(1==arguments.length){var a=arguments[0];t=a.x,e=a.y,n=a.z}var c=t/100,o=e/100,s=n/100,l=3.2406*c+-1.5372*o+-.4986*s,u=-.9689*c+1.8758*o+.0415*s,h=.0557*c+-.204*o+1.057*s;l=i(l),u=i(u),h=i(h);var f=Object(r.round)(255*l),d=Object(r.round)(255*u),p=Object(r.round)(255*h);return{r:f,g:d,b:p}}function o(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.l,e=r.a,n=r.b}var i=(t+16)/116,c=e/500+i,o=i-n/200;i=a(i);var s=95.047*(c=a(c)),l=100*i,u=108.883*(o=a(o));return{x:s,y:l,z:u}}function s(t){return t>.008856?Math.pow(t,1/3):(7.787*t+16)/116}function l(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.x,e=r.y,n=r.z}var a=t/95.047,i=e/100,c=n/108.883;a=s(a);var o=116*(i=s(i))-16,l=500*(a-i),u=200*(i-(c=s(c)));return{l:o,a:l,b:u}}function u(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.l,e=r.a,n=r.b}return c(o(t,e,n))}},function(t,e,n){"use strict";n.r(e),n.d(e,"HSVtoRGB",(function(){return i})),n.d(e,"HSVtoHSL",(function(){return c}));var r=n(14),a=n(46);function i(t,e,n){if(1==arguments.length){var a=arguments[0];t=a.h,e=a.s,n=a.v}var i=t,c=e,o=n;i>=360&&(i=0);var s=c*o,l=s*(1-Math.abs(i/60%2-1)),u=o-s,h=[];return 0<=i&&i<60?h=[s,l,0]:60<=i&&i<120?h=[l,s,0]:120<=i&&i<180?h=[0,s,l]:180<=i&&i<240?h=[0,l,s]:240<=i&&i<300?h=[l,0,s]:300<=i&&i<360&&(h=[s,0,l]),{r:Object(r.round)(255*(h[0]+u)),g:Object(r.round)(255*(h[1]+u)),b:Object(r.round)(255*(h[2]+u))}}function c(t,e,n){if(1==arguments.length){var r=arguments[0];t=r.h,e=r.s,n=r.v}var c=i(t,e,n);return Object(a.RGBtoHSL)(c.r,c.g,c.b)}},function(t,e,n){"use strict";n.r(e),n.d(e,"interpolateRGB",(function(){return l})),n.d(e,"interpolateRGBObject",(function(){return u})),n.d(e,"scale",(function(){return h})),n.d(e,"blend",(function(){return f})),n.d(e,"mix",(function(){return d})),n.d(e,"contrast",(function(){return p})),n.d(e,"contrastColor",(function(){return v})),n.d(e,"gradient",(function(){return y})),n.d(e,"scaleHSV",(function(){return m})),n.d(e,"scaleH",(function(){return g})),n.d(e,"scaleS",(function(){return b})),n.d(e,"scaleV",(function(){return k}));var r=n(20),a=n(14),i=n(58),c=n(46),o=n(92),s=n(8);function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex",a=u(t,e,n);return Object(i.format)(a,r)}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=Object(s.isUndefined)(t.a)?1:t.a,i=Object(s.isUndefined)(e.a)?1:e.a;return{r:Object(a.round)(t.r+(e.r-t.r)*n),g:Object(a.round)(t.g+(e.g-t.g)*n),b:Object(a.round)(t.b+(e.b-t.b)*n),a:Object(a.round)(r+(i-r)*n,100)}}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!t)return[];Object(s.isString)(t)&&(t=Object(r.convertMatchesArray)(t));for(var n=(t=t||[]).length,a=[],i=0;i2&&void 0!==arguments[2]?arguments[2]:.5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex",i=Object(r.parse)(t),c=Object(r.parse)(e);return l(i,c,n,a)}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex";return f(t,e,n,r)}function p(t){return t=Object(r.parse)(t),(Math.round(299*t.r)+Math.round(587*t.g)+Math.round(114*t.b))/1e3}function v(t){return p(t)>=128?"black":"white"}function y(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],a=e-((t=Object(r.parseGradient)(t)).length-1),i=a,c=1,o=t.length;c1&&void 0!==arguments[1]?arguments[1]:"h",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rgb",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:100,h=Object(r.parse)(t),f=Object(c.RGBtoHSV)(h),d=(l-s)*u/n,p=[],v=1;v<=n;v++)f[e]=Math.abs((u-d*v)/u),p.push(Object(i.format)(Object(o.HSVtoRGB)(f),a));return p}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:360;return m(t,"h",e,n,r,a,1)}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return m(t,"s",e,n,r,a,100)}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return m(t,"v",e,n,r,a,100)}h.parula=function(t){return h(["#352a87","#0f5cdd","#00b5a6","#ffc337","#fdff00"],t)},h.jet=function(t){return h(["#00008f","#0020ff","#00ffff","#51ff77","#fdff00","#ff0000","#800000"],t)},h.hsv=function(t){return h(["#ff0000","#ffff00","#00ff00","#00ffff","#0000ff","#ff00ff","#ff0000"],t)},h.hot=function(t){return h(["#0b0000","#ff0000","#ffff00","#ffffff"],t)},h.pink=function(t){return h(["#1e0000","#bd7b7b","#e7e5b2","#ffffff"],t)},h.bone=function(t){return h(["#000000","#4a4a68","#a6c6c6","#ffffff"],t)},h.copper=function(t){return h(["#000000","#3d2618","#9d623e","#ffa167","#ffc77f"],t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return L}));var r=n(13),a=n.n(r),i=n(16),c=n.n(i),o=n(7),s=n.n(o),l=n(2),u=n.n(l),h=n(3),f=n.n(h),d=n(10),p=n.n(d),v=n(5),y=n.n(v),m=n(6),g=n.n(m),b=n(0),k=n.n(b),x=n(33),O=n(4),w=n(26),j=n(55),z=n(11),M=n(14),V=n(8),S=n(29),P=n(28);function C(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 R(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0];return R(R({},p()(k()(n.prototype),"toCloneObject",this).call(this,t)),this.attrs("x","y","width","height"))}},{key:"convert",value:function(t){return(t=p()(k()(n.prototype),"convert",this).call(this,t)).x=O.a.parse(t.x),t.y=O.a.parse(t.y),t.width=O.a.parse(t.width),t.height=O.a.parse(t.height),t}},{key:"setScreenX",value:function(t){var e=0;this.isChild&&(e=this.json.parent.screenX.value),this.json.x.set(t-e),this.changed()}},{key:"setScreenY",value:function(t){var e=0;this.isChild&&(e=this.json.parent.screenY.value),this.json.y.set(t-e),this.changed()}},{key:"screenX",get:function(){return this.isChild?O.a.px(this.json.parent.screenX.value+this.json.x.value):this.json.x||O.a.z()}},{key:"screenY",get:function(){return this.isChild?O.a.px(this.json.parent.screenY.value+this.json.y.value):this.json.y||O.a.z()}},{key:"offsetX",get:function(){return this.parent?this.json.x.toPx(this.screenWidth.value):this.json.x||$}},{key:"offsetY",get:function(){return this.parent?this.json.y.toPx(this.screenHeight.value):this.json.y||$}},{key:"screenWidth",get:function(){return this.is("project")||!this.parent?$:this.parent.is("project")||this.is("artboard")?this.json.width.toPx():this.json.width.toPx(this.parent.screenWidth.value)}},{key:"screenHeight",get:function(){return this.is("project")||!this.parent?$:this.parent.is("project")||this.is("artboard")?this.json.height.toPx():this.json.height.toPx(this.parent.screenHeight.value)}},{key:"move",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0];this.reset({x:O.a.px(this.offsetX.value+t[0]).round(),y:O.a.px(this.offsetY.value+t[1]).round()})}},{key:"moveByCenter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0],e=this.matrix;this.reset({x:O.a.px(t[0]-e.width/2),y:O.a.px(t[1]-e.height/2)})}},{key:"checkInArea",value:function(t){return Object(P.d)(t,this.verties())}},{key:"hasPoint",value:function(t,e){return Object(P.c)(this.verties(),t,e)}},{key:"isIncludeByArea",value:function(t){return 4===this.rectVerties().map((function(e){return P.c.apply(void 0,[t].concat(c()(e)))})).filter(Boolean).length}},{key:"getPerspectiveMatrix",value:function(){if(this.json.perspective||w.a.get(this.json.transform,"perspective")){var t=j.a.parseStyle(this.json["perspective-origin"]),e=a()(t,2),n=e[0],r=void 0===n?O.a.percent(50):n,i=e[1],c=void 0===i?O.a.percent(50):i,o=this.screenWidth.value,s=this.screenHeight.value;r=r.toPx(o).value,c=c.toPx(s).value;var l=z.a.create();z.a.translate(l,l,[r,c,0]);var u=w.a.get(this.json.transform,"perspective");if(u.length)z.a.multiply(l,l,z.a.fromValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,-1/u[0].value,1));else{if(!this.json.perspective||"none"==this.json.perspective)return;z.a.multiply(l,l,z.a.fromValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,-1/O.a.parse(this.json.perspective).value,1))}return z.a.translate(l,l,[-r,-c,0]),l}}},{key:"getItemTransformMatrix",value:function(){var t=w.a.parseStyle(w.a.rotate(this.json.transform,this.json.rotate)),e=this.screenWidth.value,n=this.screenHeight.value;return w.a.createTransformMatrix(t,e,n)}},{key:"getItemTransformMatrixInverse",value:function(){return z.a.invert([],this.getItemTransformMatrix())}},{key:"getTransformMatrix",value:function(){var t=j.a.scale(this.json["transform-origin"]||"50% 50% 0px",this.screenWidth.value,this.screenHeight.value),e=z.a.create();return z.a.translate(e,e,t),z.a.multiply(e,e,this.getItemTransformMatrix()),z.a.translate(e,e,z.d.negate([],t)),e}},{key:"getTransformMatrixInverse",value:function(){return z.a.invert([],this.getTransformMatrix())}},{key:"getDirectionTransformMatrix",value:function(t,e,n){var r=this.offsetX.value,a=this.offsetY.value,i=z.d.add([],j.a.scale(this.json["transform-origin"]||"50% 50% 0px",e,n),z.d.negate([],t)),c=z.a.create();return z.a.translate(c,c,[r,a,0]),z.a.translate(c,c,t),z.a.translate(c,c,i),z.a.multiply(c,c,this.getItemTransformMatrix()),z.a.translate(c,c,z.d.negate([],i)),c}},{key:"getDirectionTopLeftMatrix",value:function(t,e){return this.getDirectionTransformMatrix([0,0,0],t,e)}},{key:"getDirectionLeftMatrix",value:function(t,e){return this.getDirectionTransformMatrix([0,e/2,0],t,e)}},{key:"getDirectionTopMatrix",value:function(t,e){return this.getDirectionTransformMatrix([t/2,0,0],t,e)}},{key:"getDirectionBottomLeftMatrix",value:function(t,e){return this.getDirectionTransformMatrix([0,e,0],t,e)}},{key:"getDirectionTopRightMatrix",value:function(t,e){return this.getDirectionTransformMatrix([t,0,0],t,e)}},{key:"getDirectionRightMatrix",value:function(t,e){return this.getDirectionTransformMatrix([t,e/2,0],t,e)}},{key:"getDirectionBottomRightMatrix",value:function(t,e){return this.getDirectionTransformMatrix([t,e,0],t,e)}},{key:"getDirectionBottomMatrix",value:function(t,e){return this.getDirectionTransformMatrix([t/2,e,0],t,e)}},{key:"getAccumulatedMatrix",value:function(){for(var t=z.a.create(),e=this.path.filter((function(t){return!1===t.is("project")})),n=0,r=e.length;n0&&void 0!==arguments[0]?arguments[0]:"",e=t||this.json.d,n=new S.a(e),r=this.getAccumulatedMatrix();return n.transformMat4(r),n}},{key:"invertPath",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=new S.a(t);return e.transformMat4(this.getAccumulatedMatrixInverse()),e}},{key:"invertPathString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.invertPath(t).d}},{key:"checkInAreaForAll",value:function(t){var e=c()(this.checkInAreaForLayers(t));return this.is("artboard")||this.is("project")||this.checkInArea(t)&&e.push(this.ref),e}},{key:"checkInAreaForLayers",value:function(t){var e=[];return this.layers.forEach((function(n){e.push.apply(e,n.checkInAreaForLayers(t)),n.checkInArea(t)&&e.push(n)})),e}},{key:"getTransformOriginMatrix",value:function(){return z.a.fromTranslation([],j.a.scale(this.json["transform-origin"]||"50% 50% 0px",this.screenWidth.value,this.screenHeight.value))}},{key:"getTransformOriginMatrixInverse",value:function(){return z.a.invert([],this.getTransformOriginMatrix())}},{key:"resetMatrix",value:function(t){var e=Object(M.calculateMatrix)(this.getAccumulatedMatrixInverse(),t.getAccumulatedMatrix()),n=w.a.fromScale(z.a.getScaling([],e).map((function(t){return Object(M.round)(t,1e3)}))),r=z.a.getRotation([],e),i=[],c=z.b.getAxisAngle(i,r),o=[{angle:i[0]?Object(M.radianToDegree)(c*i[0]):0,type:"rotateX"},{angle:i[1]?Object(M.radianToDegree)(c*i[1]):0,type:"rotateY"},{angle:i[2]?Object(M.radianToDegree)(c*i[2]):0,type:"rotateZ"}].filter((function(t){return 0!==t.angle})).map((function(t){return"".concat(t.type,"(").concat(O.a.deg(t.angle%360).round(1e3),")")})).join(" "),s=w.a.replaceAll(t.transform,"".concat(n," ").concat(o)),l=w.a.parseStyle(s),u=t.screenWidth.value,h=t.screenHeight.value,f=w.a.createTransformMatrix(l,u,h),d=z.a.getTranslation([],Object(M.calculateMatrix)(e,Object(M.calculateMatrixInverse)(t.getTransformOriginMatrix(),f,t.getTransformOriginMatrixInverse()))),p=a()(d,3),v=p[0],y=p[1];p[2];t.reset({x:O.a.px(v),y:O.a.px(y),transform:s})}},{key:"getIndex",value:function(){for(var t=this.json.parent.layers,e=-1,n=0,r=t.length;n-1&&(e.layers[n]=e.layers[t],e.layers[t]=this.ref)}},{key:"next",value:function(){if(this.isLast())return this.ref;var t=this.getIndex();return this.json.parent.layers[t+1]}},{key:"prev",value:function(){if(this.isFirst())return this.ref;var t=this.getIndex();return this.json.parent.layers[t-1]}},{key:"orderNext",value:function(){if(this.isLast()){if(this.json.parent.is("artboard"))return;this.json.parent.next().add(this,"prepend")}else{var t=this.getIndex();t>-1&&this.setOrder(t+1)}}},{key:"isFirst",value:function(){return 0===this.getIndex()}},{key:"isLast",value:function(){return this.getIndex()===this.json.parent.layers.length-1}},{key:"orderPrev",value:function(){if(this.isFirst()){if(this.json.parent.is("artboard"))return;this.json.parent.prev().add(this)}else{var t=this.getIndex();t>0&&this.setOrder(t-1)}}},{key:"orderFirst",value:function(){this.setOrder(0)}},{key:"orderLast",value:function(){this.setOrder(this.json.parent.layers.length-1)}},{key:"orderTop",value:function(){}},{key:"orderBottom",value:function(){}}]),n}(x.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=new(function(){function t(){a()(this,t),this.renderers={}}return c()(t,[{key:"getRenderType",value:function(t){return this.renderers[t]||(this.renderers[t]={}),this.renderers[t]}},{key:"registerRenderer",value:function(t,e,n){var r=this.getRenderType(t);if(r[e])throw new Error("It has duplicated renderer name. "+e);r[e]=n}},{key:"getRendererInstance",value:function(t,e){return this.getRenderType(t)[e]}}]),t}())},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var r=n(16),a=n.n(r),i=n(7),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(10),f=n.n(h),d=n(5),p=n.n(d),v=n(6),y=n.n(v),m=n(0),g=n.n(m),b=n(4);function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y()(this,n)}}var x=function(t){p()(n,t);var e=k(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"isGroup",get:function(){return Boolean(this.layers.length)}},{key:"isLayoutItem",value:function(){return this.parent.hasLayout()}},{key:"hasLayout",value:function(){return"default"!==this.json.layout}},{key:"isInGrid",value:function(){return!!this.isLayoutItem()&&"grid"===this.parent.layout}},{key:"isInFlex",value:function(){return!!this.isLayoutItem()&&"flex"===this.parent.layout}}]),n}(n(94).a),O=n(101),w=n(37),j=n(29);function z(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 M(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return f()(g()(n.prototype),"getDefaultObject",this).call(this,M({position:"absolute",x:b.a.z(),y:b.a.z(),right:"",bottom:"",rootVariable:"",variable:"",width:b.a.px(300),height:b.a.px(300),color:"black","font-size":b.a.px(13),overflow:"visible",rotate:b.a.deg(0),opacity:1,"z-index":b.a.auto,"transform-style":"preserve-3d",layout:"default","flex-layout":"display:flex;","grid-layout":"display:grid;",selectors:[],svg:[]},t))}},{key:"toCloneObject",value:function(){var t=this.json;return M(M(M({},f()(g()(n.prototype),"toCloneObject",this).call(this)),this.attrs("position","right","bottom","rootVariable","variable","transform","filter","backdrop-filter","background-color","background-image","text-clip","border-radius","border","box-shadow","text-shadow","clip-path","color","font-size","font-stretch","line-height","text-align","text-transform","text-decoration","letter-spacing","word-spacing","text-indent","perspective-origin","transform-origin","transform-style","perspective","mix-blend-mode","overflow","opacity","rotate","flex-layout","grid-layout","animation","transition")),{},{selectors:t.selectors.map((function(t){return t.clone()})),svg:t.svg.map((function(t){return t.clone()}))})}},{key:"convert",value:function(t){return t=f()(g()(n.prototype),"convert",this).call(this,t)}},{key:"addSelector",value:function(t){return this.json.selectors.push(t),t}},{key:"createSelector",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addSelector(new O.a(M({checked:!0},t)))}},{key:"removePropertyList",value:function(t,e){t.splice(e,1)}},{key:"removeSelector",value:function(t){this.removePropertyList(this.json.selectors,t)}},{key:"enableHasChildren",value:function(){return!0}},{key:"sortItem",value:function(t,e,n){t.splice.apply(t,[n+(e1&&void 0!==arguments[1]?arguments[1]:{};this.json.selectors[+t].reset(e)}},{key:"traverse",value:function(t,e,n){var r=this;t.isAttribute()||(n||!t.isLayoutItem()||t.isRootItem())&&(e.push(t),t.children.forEach((function(t){r.traverse(t,e)})))}},{key:"tree",value:function(t){var e=this,n=[];return this.children.forEach((function(r){e.traverse(r,n,t)})),n}},{key:"toAnimationKeyframes",value:function(t){return[{selector:'[data-id="'.concat(this.json.id,'"]'),properties:t}]}},{key:"toBound",value:function(){var t={x:this.json.x?this.json.x.clone():b.a.z(),y:this.json.y?this.json.y.clone():b.a.z(),width:this.json.width.clone(),height:this.json.height.clone()};return t.x2=b.a.px(t.x.value+t.width.value),t.y2=b.a.px(t.y.value+t.height.value),t}},{key:"setCache",value:function(){var t=w.a.parseStyle(this.json["clip-path"]);"path"===t.type?(this.cacheClipPath=new j.a(t.value.trim()),this.cacheClipPath.scale(1/this.json.width.value,1/this.json.height.value)):this.cacheClipPath=void 0}},{key:"recover",value:function(){if(this.cacheClipPath){var t=this.json.width.value,e=this.json.height.value;this.reset({"clip-path":"path(".concat(this.cacheClipPath.clone().scaleTo(t,e),")")})}}}]),n}(x)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o={dom:function(){function t(){a()(this,t)}return c()(t,null,[{key:"compile",value:function(t){return t}}]),t}()},s=function(){function t(){a()(this,t)}return c()(t,null,[{key:"compile",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=o[t]||o.dom;return r.compile(e,n)}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(5),s=n.n(o),l=n(6),u=n.n(l),h=n(0),f=n.n(h),d=(n(34),n(1)),p=n(9);function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(t){s()(n,t);var e=v(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"initState",value:function(){return{label:this.props.label,value:this.props.value||"rgba(0, 0, 0, 1)"}}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t),this.modifyColor()}},{key:"updateEndData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t),this.modifyEndColor()}},{key:"getValue",value:function(){return this.state.value}},{key:"setValue",value:function(t){this.changeColor(t)}},{key:"modifyColor",value:function(){this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}},{key:"modifyEndColor",value:function(){this.parent.trigger(this.props.onchangeend,this.props.key,this.state.value,this.props.params)}},{key:"changeColor",value:function(t){this.setState({value:t})}},{key:"refresh",value:function(){this.refs.$miniView.cssText("background-color: ".concat(this.state.value)),this.refs.$colorCode.val(this.state.value)}},{key:"template",value:function(){var t=this.state.label;return"\n
\n ").concat(t?""):""," \n
\n
\n
\n
\n
\n
\n \n
\n
\n ')}},{key:Object(d.b)("$miniView"),value:function(){return{style:{"background-color":this.state.value}}}},{key:Object(d.b)("$colorCode"),value:function(){return{value:this.state.value}}},{key:Object(d.B)("$colorCode"),value:function(t){this.refs.$container.addClass("focused")}},{key:Object(d.f)("$colorCode"),value:function(t){this.refs.$container.removeClass("focused")}},{key:Object(d.n)("$preview"),value:function(t){this.viewColorPicker()}},{key:"viewColorPicker",value:function(){this.emit("showColorPickerPopup",{target:this,changeEvent:"changeColorViewEditor",changeEndEvent:"changeEndColorViewEditor",color:this.state.value})}},{key:Object(d.n)("$remove"),value:function(t){this.updateData({value:""})}},{key:Object(d.E)("$el .color-code input"),value:function(t){var e=t.$dt.value;this.refs.$miniView.cssText("background-color: ".concat(e)),this.updateData({value:e})}},{key:Object(d.X)("changeColorViewEditor"),value:function(t){this.updateData({value:t})}},{key:Object(d.X)("changeEndColorViewEditor"),value:function(t){this.updateEndData({value:t})}}]),n}(n(15).a);Object(p.a)({ColorViewEditor:y})},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(18),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(17),u=n.n(l),h=(n(33),new(function(){function t(){c()(this,t),this.plugins=[]}var e;return s()(t,[{key:"registerPlugin",value:function(t){this.plugins.push(t)}},{key:"initializePlugin",value:(e=a()(u.a.mark((function t(e){var n,r=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},t.next=3,Promise.all(this.plugins.map(function(){var t=a()(u.a.mark((function t(r){return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(e,n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}()))},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var r=n(45),a=n.n(r),i=n(16),c=n.n(i),o=n(7),s=n.n(o),l=n(2),u=n.n(l),h=n(3),f=n.n(h),d=n(10),p=n.n(d),v=n(5),y=n.n(v),m=n(6),g=n.n(m),b=n(0),k=n.n(b),x=n(31),O=n(89),w=n(20),j=n(4);function z(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 M(t){for(var e=1;ee.offset.value?1:-1})),e.map((function(e){return 0===e.properties.length?"":t.toOffsetString(e)})).join("\n")}},{key:"toCSSText",value:function(){return this.json.offsets.map((function(t){return t})).sort((function(t,e){return t.offset.value>e.offset.value?1:-1})),"\n@keyframes ".concat(this.json.name," {\n\n ").concat(this.toOffsetText(),"\n\n}\n")}},{key:"createOffset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.addOffset(new O.a(M({checked:!0},t)))}},{key:"addOffset",value:function(t){this.json.offsets.push(t)}},{key:"removeOffset",value:function(t){this.json.offsets.splice(t,1)}},{key:"sortItem",value:function(t,e,n){t.splice.apply(t,[n+(e1&&void 0!==arguments[1]?arguments[1]:{};this.json.offsets[+t].reset(e)}},{key:"toCSS",value:function(){return{}}},{key:"toString",value:function(){return this.toCSSText()}}],[{key:"parse",value:function(t){return new n(t)}},{key:"parseStyle",value:function(t){var e=[],r={};if(t.keyframe){var i=Object(w.convertMatches)(t.keyframe);i.str.split("|").map((function(t){return t.trim()})).forEach((function(t,c){var o=t.split(" "),s=a()(o),l=s[0],u=s[1],h=s[2],f=s.slice(3).join(" ");r[l]||(r[l]=new n({name:l}),e[c]=l);var d=r[l].offsets.filter((function(t){return t.offset.equals(j.a.parse(u))})),p=null;d.length?p=d[0]:(p=new O.a({offset:j.a.parse(u)}),r[l].offsets.push(p)),p.addProperty({key:h,value:Object(w.reverseMatches)(f,i.matches)})}))}return e.map((function(t){return r[t].offsets.forEach((function(t){var e=[],n=[];t.properties.forEach((function(t){t.key.includes("--")?e.push(t):n.push(t)}));var r=e.map((function(t){return"".concat(t.key,":").concat(t.value)})).join(";");e.length&&n.push({key:"var",value:r}),t.properties=n})),r[t]}))}}]),n}(x.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(31);n(8);function g(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 b(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(t).concat(this.json.selector," {\n ").concat(this.toPropertyString(),"\n}")}},{key:"toCSS",value:function(){return{}}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.toCSSText(t)}}],[{key:"parse",value:function(t){return new n(t)}}]),n}(m.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(7),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(10),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(4),g=n(12),b=n(32);function k(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 x(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return u()(y()(n.prototype),"getDefaultObject",this).call(this,x({itemType:"artboard",name:"New ArtBoard",width:m.a.px(1e3),height:m.a.px(1e3),"background-color":"white","transform-style":"flat"},t))}},{key:"toCloneObject",value:function(){return x(x({},u()(y()(n.prototype),"toCloneObject",this).call(this)),this.attrs("name"))}},{key:"getDefaultTitle",value:function(){return"ArtBoard"}},{key:"getIcon",value:function(){return g.a.artboard}}]),n}(n(96).a);b.a.registerComponent("artboard",w)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(13),a=n.n(r),i=n(14),c=n(21),o=n(24);function s(t,e,n,r){var a={x:Object(o.a)("","",t,n),y:Object(o.a)("","",e,r)};return function(t,e){return{x:a.x(t,e),y:a.y(t,e)}}}var l=n(25);function u(t,e,n,r,a,i){var c=[{x:t,y:e},{x:n,y:r},{x:a,y:i}];return function(t,e){return Object(l.e)(c,e)}}function h(t,e,n,r,a,i,c,o){var s=[{x:t,y:e},{x:n,y:r},{x:a,y:i},{x:c,y:o}];return function(t,e){return Object(l.d)(s,e)}}function f(t){var e=[],n=[];t.forEach((function(t,r){switch(t.command){case"M":var o=a()(t.values,2),f=o[0],d=o[1];n=[f,d];break;case"m":var p=n,v=a()(p,2),y=v[0],m=v[1],g=a()(t.values,2);f=g[0],d=g[1];n=[f+=y,d+=m];break;case"L":var b=n,k=a()(b,2),x=(y=k[0],m=k[1],a()(t.values,2));f=x[0],d=x[1];e.push({command:t.command,values:[y,m,f,d],length:Object(i.getDist)(y,m,f,d),interpolate:s(y,m,f,d)}),n=[f,d];break;case"l":var O=n,w=a()(O,2),j=(y=w[0],m=w[1],a()(t.values,2));f=j[0],d=j[1];f+=y,d+=m,e.push({command:t.command,values:[y,m,f,d],length:Object(i.getDist)(y,m,f,d),interpolate:s(y,m,f,d)}),n=[f,d];break;case"C":var z=n,M=a()(z,2),V=(y=M[0],m=M[1],a()(t.values,6)),S=V[0],P=V[1],C=V[2],R=V[3];f=V[4],d=V[5];e.push({command:t.command,values:[y,m,S,P,C,R,f,d],length:Object(l.j)(y,m,S,P,C,R,f,d),interpolate:h(y,m,S,P,C,R,f,d)}),n=[f,d];break;case"c":var H=n,$=a()(H,2),L=(y=$[0],m=$[1],a()(t.values,6));S=L[0],P=L[1],C=L[2],R=L[3],f=L[4],d=L[5];S+=y,C+=y,f+=y,P+=m,R+=m,d+=m,e.push({command:t.command,values:[y,m,S,P,C,R,f,d],length:Object(l.j)(y,m,S,P,C,R,f,d),interpolate:h(y,m,S,P,C,R,f,d)}),n=[f,d];break;case"Q":var T=n,B=a()(T,2),A=(y=B[0],m=B[1],a()(t.values,4));S=A[0],P=A[1],f=A[2],d=A[3];e.push({command:t.command,values:[y,m,S,P,f,d],length:Object(l.l)(y,m,S,P,f,d),interpolate:u(y,m,S,P,f,d)}),n=[f,d];break;case"q":var E=n,I=a()(E,2),D=(y=I[0],m=I[1],a()(t.values,4));S=D[0],P=D[1],f=D[2],d=D[3];S+=y,f+=y,P+=m,d+=m,e.push({command:t.command,values:[y,m,S,P,f,d],length:Object(l.l)(y,m,S,P,f,d),interpolate:u(y,m,S,P,f,d)}),n=[f,d];break;case"S":var F=n,_=a()(F,2),X=(y=_[0],m=_[1],a()(t.values,4)),G=(C=X[0],R=X[1],f=X[2],d=X[3],e[e.length-1]);if(["C","c","S","s"].includes(G.command)){var N=a()(G.values,8),Y=(N[0],N[1],N[2],N[3],N[4]),U=N[5],K=N[6],q=N[7],W=c.a.getReversePoint({x:K,y:q},{x:Y,preC1y:U});S=W.x,P=W.y;e.push({command:t.command,values:[y,m,S,P,C,R,f,d],length:getCubicDist(y,m,S,P,C,R,f,d),interpolate:h(y,m,S,P,C,R,f,d)}),n=[f,d];break}case"s":var Z=n,Q=a()(Z,2),J=(y=Q[0],m=Q[1],a()(t.values,4));C=J[0],R=J[1],f=J[2],d=J[3];C+=y,f+=y,R+=m,d+=m;G=e[e.length-1];if(["C","c","S","s"].includes(G.command)){var tt=a()(G.values,8),et=(tt[0],tt[1],tt[2],tt[3],Y=tt[4],U=tt[5],K=tt[6],q=tt[7],c.a.getReversePoint({x:K,y:q},{x:Y,preC1y:U}));S=et.x,P=et.y;e.push({command:t.command,values:[y,m,S,P,C,R,f,d],length:getCubicDist(y,m,S,P,C,R,f,d),interpolate:h(y,m,S,P,C,R,f,d)}),n=[f,d];break}case"T":var nt=n,rt=a()(nt,2),at=(y=rt[0],m=rt[1],a()(t.values,2));f=at[0],d=at[1],G=e[e.length-1];if(["Q","q","T","t"].includes(G.command)){var it=a()(G.values,6),ct=(it[0],it[1],Y=it[2],U=it[3],K=it[4],q=it[5],c.a.getReversePoint({x:K,y:q},{x:Y,preC1y:U}));S=ct.x,P=ct.y;e.push({command:t.command,values:[y,m,S,P,f,d],length:Object(l.l)(y,m,S,P,f,d),interpolate:u(y,m,S,P,f,d)}),n=[f,d]}break;case"t":var ot=n,st=a()(ot,2),lt=(y=st[0],m=st[1],a()(t.values,2));f=lt[0],d=lt[1];f+=y,d+=m;G=e[e.length-1];if(["Q","q","T","t"].includes(G.command)){var ut=a()(G.values,6),ht=(ut[0],ut[1],Y=ut[2],U=ut[3],K=ut[4],q=ut[5],c.a.getReversePoint({x:K,y:q},{x:Y,preC1y:U}));S=ht.x,P=ht.y;e.push({command:t.command,values:[y,m,S,P,f,d],length:Object(l.l)(y,m,S,P,f,d),interpolate:u(y,m,S,P,f,d)}),n=[f,d]}}}));var r=0;e.forEach((function(t){r+=t.length}));var o=0;return e.forEach((function(t){t.startT=o/r,t.endT=(o+t.length)/r,t.totalLength=r,o+=t.length})),{totalLength:r,interpolateList:e}}},function(t,e,n){var r=n(117);t.exports=function(t,e){if(t){if("string"==typeof t)return r(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)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(16),a=n.n(r),i=n(2),c=n.n(i),o=n(3),s=n.n(o),l=n(5),u=n.n(l),h=n(6),f=n.n(h),d=n(0),p=n.n(d),v=(n(34),n(12)),y=n(1),m=n(4),g=n(25),b=n(14),k=n(8),x=n(9);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(n,t);var e=O(n);function n(){return c()(this,n),e.apply(this,arguments)}return s()(n,[{key:"initState",value:function(){return{key:this.props.key,currentBezier:Object(g.k)(this.props.value||"linear"),currentBezierIndex:0,selectedColor:"#609de2",animatedColor:"#609de266",curveColor:"#609de2",baseLineColor:"rgba(117, 117, 117, 0.46)"}}},{key:"template",value:function(){var t=Object(k.curveToPath)(this.state.currentBezier,150,150),e=Object(k.curveToPointLine)(this.state.currentBezier,150,150),n=Object(k.curveToPath)("ease",30,30),r=Object(k.curveToPointLine)("ease",30,30),a=Object(k.curveToPath)("ease-in",30,30),i=Object(k.curveToPointLine)("ease-in",30,30),c=Object(k.curveToPath)("ease-out",30,30),o=Object(k.curveToPointLine)("ease-out",30,30);return"\n
\n
\n
".concat(v.a.chevron_left,"
\n
\n
").concat(v.a.chevron_right,"
\n
\n
\n \n
\n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n \n \n \n \n
\n
\n
\n
\n
\n
\n ")}},{key:Object(y.b)("$bezierCanvas"),value:function(){return{d:Object(k.curveToPath)(this.state.currentBezier,150,150)}}},{key:Object(y.b)("$bezierCanvasPoint"),value:function(){return{d:Object(k.curveToPointLine)(this.state.currentBezier,150,150)}}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t),this.modifyCubicBezier()}},{key:"modifyCubicBezier",value:function(){this.parent.trigger(this.props.onchange,this.state.key,Object(g.c)(this.state.currentBezier))}},{key:Object(y.n)("$left"),value:function(){var t=this.state,e=t.currentBezier,n=t.currentBezierIndex;0==n?n=g.a.length-1:--n;e=g.a[n];this.updateData({currentBezierIndex:n,currentBezier:e}),this.refresh()}},{key:Object(y.n)("$right"),value:function(){var t=this.state,e=t.currentBezier,n=t.currentBezierIndex;n=++n%g.a.length,e=g.a[n],this.updateData({currentBezierIndex:n,currentBezier:e}),this.refresh()}},{key:Object(y.n)("$text"),value:function(){var t=a()(g.a[this.state.currentBezierIndex]);this.updateData({currentBezier:t}),this.refresh()}},{key:Object(y.n)("$itemList .item"),value:function(t){var e=t.$dt.attr("data-bezier");this.refs.$itemList.attr("data-selected-value",e);var n=Object(g.k)(e);this.updateData({currentBezier:n}),this.refresh()}},{key:"refresh",value:function(){this.refreshEasingText(),this.refreshBezierCanvas()}},{key:"refreshBezierCanvas",value:function(){this.bindData("$bezierCanvas"),this.bindData("$bezierCanvasPoint"),this.refreshPointer(),this.drawPoint()}},{key:"refreshEasingText",value:function(){this.refs.$text.html(this.state.currentBezier[4]||"ease")}},{key:"refreshPointer",value:function(){var t=Object(g.k)(this.state.currentBezier),e=this.refs.$control.width(),n=this.refs.$control.height(),r=t[0]*e,a=(1-t[1])*n;this.refs.$pointer1.css({left:m.a.px(r).round(),top:m.a.px(a).round()}),r=t[2]*e,a=(1-t[3])*n,this.refs.$pointer2.css({left:m.a.px(r).round(),top:m.a.px(a).round()})}},{key:"drawPoint",value:function(){var t=this;this.timer&&clearTimeout(this.timer),this.animationTimer&&clearTimeout(this.animationTimer),this.timer=setTimeout((function(){t.animationPoint()}),100)}},{key:"start",value:function(t){var e=this,n=this.animationCanvasData.func(t),r=10+(this.animationCanvasData.width-20)*n.y,a=this.animationCanvasData.context;a.beginPath(),a.arc(r,10,5,0,2*Math.PI),a.fill(),a.stroke(),a.closePath(),t>=1||(this.animationTimer=setTimeout((function(){e.start(t+.05)}),50))}},{key:"animationPoint",value:function(){var t=Object(g.k)(this.state.currentBezier),e=Object(g.b)(Object(g.c)(t));this.refs.$animationCanvas.clear();var n=this.refs.$animationCanvas.width(),r=this.refs.$animationCanvas.height(),a=this.refs.$animationCanvas.context();a.fillStyle=this.state.animatedColor,a.strokeStyle=this.state.selectedColor,a.lineWidth=1,this.animationCanvasData={func:e,width:n,height:r,context:a},this.start(0)}},{key:"setPosition",value:function(t){var e=this.refs.$control.width(),n=this.refs.$control.height(),r=this.refs.$control.offset().left,a=this.refs.$control.offset().top,i=t,c=i.x;0>c?c=0:i.x>document.body.clientWidth&&(c=document.body.clientWidth),(c-=r)<0&&(c=0),e"}},{key:Object(p.I)("$body"),value:function(){var t=this.state,e=t.min,n=t.max,r=t.step,a=t.label,i=t.type,c=t.layout,o=t.compact,s=+this.state.value.value.toString();isNaN(s)&&(s=0);var l=a?"has-label":"",u=o?"compact":"",h=c,f=(+s).toString();return"\n
\n ").concat(a?""):"","\n
\n
\n \n
\n
\n
\n ')}},{key:"getValue",value:function(){return this.state.value||0}},{key:"setValue",value:function(t){this.setState({value:d.a.parse(t)})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}},{key:Object(p.E)("$propertyNumber"),value:function(t){var e=+this.getRef("$propertyNumber").value;this.updateData({value:this.state.value.set(e)})}}]),n}(n(15).a);Object(y.a)({NumberInputEditor:g})},function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(5),s=n.n(o),l=n(6),u=n.n(l),h=n(0),f=n.n(h),d=n(4),p=n(1),v=n(12),y=(n(98),n(42),n(123),n(127),n(124),n(130),n(131),n(132),n(133),n(8)),m=(n(44),n(86),n(125),n(34),n(9)),g=n(15);function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var k=function(t){s()(n,t);var e=b(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"initState",value:function(){return{clippath:this.props.value}}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t),this.modifyClipPath()}},{key:"getValue",value:function(){return this.state.clippath}},{key:"setValue",value:function(t){this.setState({clippath:t})}},{key:"modifyClipPath",value:function(){this.parent.trigger(this.props.onchange,this.state.clippath,this.props.params)}},{key:"template",value:function(){return"\n
\n "}},{key:Object(p.I)(),value:function(){var t=this.state.clippath;return"\n
\n
".concat(t,"
\n
\n ")}},{key:Object(p.n)(),value:function(t){this.viewClipPathPicker()}},{key:"viewClipPathPicker",value:function(){this.emit("showClipPathPopup",{changeEvent:"changeClipPathEditor","clip-path":this.state.clippath})}},{key:Object(p.X)("changeClipPathEditor"),value:function(t){this.updateData({clippath:t["clip-path"]})}}]),n}(g.a);Object(m.a)({ClipPathEditor:k});n(134),n(135),n(113),n(136),n(114),n(115),n(138);function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var O=function(t){s()(n,t);var e=x(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"initState",value:function(){return{hideTitle:"true"===this.props["hide-title"],hideRefresh:"true"===this.props["hide-refresh"],properties:[]}}},{key:"updateData",value:function(t){this.setState(t,!1),this.modifyProperty()}},{key:"modifyProperty",value:function(){this.parent.trigger(this.props.onchange,this.state.properties)}},{key:"template",value:function(){return"\n
\n
\n \n
\n ").concat(this.makePropertySelect(),"\n \n
\n
\n
\n
\n ")}},{key:"getPropertyDefaultValue",value:function(t){switch(t){case"animation-timing-function":case"box-shadow":case"text-shadow":case"color":case"background-image":case"background-color":case"text-fill-color":case"text-stroke-color":case"filter":case"backdrop-filter":case"var":case"transform":case"transform-origin":case"perspective-origin":case"playTime":return d.a.string("");case"offset-distance":return d.a.percent(0);case"rotate":return d.a.deg(0);case"mix-blend-mode":return"normal";case"clip-path":return"";case"opacity":return 1;default:return d.a.z()}}},{key:Object(p.n)("$addProperty"),value:function(t){var e=this.getRef("$propertySelect").value;if(this.state.properties.find((function(t){return t.key===e})))alert("".concat(e," is already added."));else{var n=this.getPropertyDefaultValue(e),r=this.$selection.current;r&&(n=r[e]),this.state.properties.push({key:e,value:n}),this.refresh(),this.modifyProperty()}}},{key:"makeIndivisualPropertyColorEditor",value:function(t,e){var n=t.key.split("-").join("");return"\n
\n \n \n ')}},{key:"makeCustomePropertyEditor",value:function(t,e){return"\n
\n <".concat(t.editor,' \n onchange="changeSelect"\n ref="$customProperty').concat(e,'"\n key="').concat(t.key,'"\n value="').concat(t.value,'"\n />\n
\n ')}},{key:"makeIndivisualPropertyEditor",value:function(t,e){return"background-image"===t.key?"\n
\n \n \n '):"filter"===t.key?"\n
\n \n \n '):"backdrop-filter"===t.key?"\n
\n \n \n '):"box-shadow"===t.key?"\n
\n \n \n '):"text-shadow"===t.key?"\n
\n \n \n '):"var"===t.key?"\n
\n \n \n '):"transform"===t.key?"\n
\n \n \n '):"transform-origin"===t.key?"\n
\n \n \n '):"perspective-origin"===t.key?"\n
\n \n \n '):"fill-rule"===t.key?"\n
\n \n \n '):"stroke-linecap"===t.key?"\n
\n \n \n '):"stroke-linejoin"===t.key?"\n
\n \n \n '):"mix-blend-mode"===t.key?"\n
\n \n \n '):"stroke-dasharray"===t.key?'\n \n "):"border-radius"===t.key?'\n \n "):"border"===t.key?'\n \n "):"clip-path"===t.key?'\n \n "):"d"===t.key?'\n \n "):"points"===t.key?'\n \n "):"offset-path"===t.key?'\n \n "):"playTime"===t.key?'\n \n '):"\n
\n ???\n\n
\n "}},{key:Object(p.X)("changeKeyValue"),value:function(t,e){this.modifyPropertyValue(t,e)}},{key:Object(p.X)("changeBorderRadius"),value:function(t){this.modifyPropertyValue("border-radius",t)}},{key:Object(p.X)("changeClipPath"),value:function(t){this.modifyPropertyValue("clip-path",t)}},{key:Object(p.X)("changeColorProperty"),value:function(t,e){this.modifyPropertyValue(t,e)}},{key:Object(p.X)("changeBackgroundImageProperty"),value:function(t,e){this.modifyPropertyValue(t,e)}},{key:Object(p.X)("changeFilterProperty"),value:function(t){this.modifyPropertyValue("filter",t)}},{key:Object(p.X)("changeBackdropFilterProperty"),value:function(t){this.modifyPropertyValue("backdrop-filter",t)}},{key:Object(p.X)("changeBoxShadowProperty"),value:function(t){this.modifyPropertyValue("box-shadow",t)}},{key:Object(p.X)("changeTextShadowProperty"),value:function(t){this.modifyPropertyValue("text-shadow",t)}},{key:Object(p.X)("changeVar"),value:function(t){this.modifyPropertyValue("var",t)}},{key:Object(p.X)("changeTransform"),value:function(t){this.modifyPropertyValue("transform",t)}},{key:Object(p.X)("changeTransformOrigin"),value:function(t){this.modifyPropertyValue("transform-origin",t)}},{key:Object(p.X)("changePerspectiveOrigin"),value:function(t){this.modifyPropertyValue("perspective-origin",t)}},{key:Object(p.X)("changeSelect"),value:function(t,e){this.modifyPropertyValue(t,e)}},{key:"makePropertyEditor",value:function(t,e){if(t.editor)return this.makeCustomePropertyEditor(t,e);switch(t.key){case"animation-timing-function":case"box-shadow":case"text-shadow":case"background-image":case"filter":case"backdrop-filter":case"var":case"transform":case"transform-origin":case"perspective-origin":case"mix-blend-mode":case"border":case"border-radius":case"clip-path":case"fill-rule":case"stroke-linecap":case"stroke-linejoin":case"stroke-dasharray":case"d":case"points":case"offset-path":case"playTime":return this.makeIndivisualPropertyEditor(t,e);case"color":case"background-color":case"text-fill-color":case"text-stroke-color":case"stroke":case"fill":return this.makeIndivisualPropertyColorEditor(t,e);case"opacity":case"fill-opacity":case"stroke-dashoffset":case"offset-distance":return"\n
\n \n \n ');case"rotate":return"\n
\n \n \n ');case"left":case"margin-top":case"margin-bottom":case"margin-left":case"margin-right":case"padding-top":case"padding-bottom":case"padding-left":case"padding-right":case"font-size":case"font-stretch":case"width":case"height":case"perspective":case"offset-distance":case"text-stroke-width":default:return"\n
\n \n \n ')}}},{key:Object(p.X)("changeRangeEditor"),value:function(t,e){this.modifyPropertyValue(t,e+"")}},{key:"searchKey",value:function(t,e){this.state.properties.filter((function(e){return e.key===t})).forEach(e)}},{key:"modifyPropertyValue",value:function(t,e){this.searchKey(t,(function(t){t.value=e})),this.modifyProperty()}},{key:"makePropertySelect",value:function(){return"\n \n "}},{key:Object(p.I)("$property"),value:function(){var t=this;return this.state.properties.map((function(e,n){return"\n
\n
\n \n
\n \n
\n
\n
\n
\n \n
\n
\n
\n ").concat(t.makePropertyEditor(e,n),"\n
\n
\n ")}))}},{key:Object(p.X)("showCSSPropertyEditor"),value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.setState({properties:t}),this.refresh()}},{key:Object(p.n)("$property .remove"),value:function(t){var e=+t.$dt.attr("data-index");this.state.properties.splice(e,1),this.refresh(),this.modifyProperty()}},{key:Object(p.n)("$property .refresh"),value:function(t){this.parent.trigger("refreshPropertyValue")}}]),n}(g.a);Object(m.a)({CSSPropertyEditor:O})},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"a",(function(){return xt}));var r=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e0?v(M,--j):0,O--,10===z&&(O=1,x--),z}function C(){return z=j2||L(z)>3?"":" "}function I(t,e){for(;--e&&C()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return $(t,H()+(e<6&&32==R()&&32==C()))}function D(t,e){for(;C()&&t+z!==57&&(t+z!==84||47!==R()););return"/*"+$(e,j-1)+"*"+h(47===t?t:C())}function F(t){for(;!L(R());)C();return $(t,j)}function _(t){return B(function t(e,n,r,a,i,c,o,s,l){var u=0,f=0,p=o,v=0,y=0,g=0,k=1,x=1,O=1,w=0,j="",z=i,M=c,V=a,S=j;for(;x;)switch(g=w,w=C()){case 34:case 39:case 91:case 40:S+=A(w);break;case 9:case 10:case 13:case 32:S+=E(g);break;case 92:S+=I(H()-1,7);continue;case 47:switch(R()){case 42:case 47:b(G(D(C(),H()),n,r),l);break;default:S+="/"}break;case 123*k:s[u++]=m(S)*O;case 125*k:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+f:y>0&&m(S)-p&&b(y>32?N(S+";",a,r,p-1):N(d(S," ","")+";",a,r,p-2),l);break;case 59:S+=";";default:if(b(V=X(S,n,r,u,f,i,s,j,z=[],M=[],p),c),123===w)if(0===f)t(S,n,V,V,z,c,p,s,M);else switch(v){case 100:case 109:case 115:t(e,V,V,a&&b(X(e,V,V,0,0,i,s,j,i,z=[],p),M),i,M,p,s,a?z:M);break;default:t(S,V,V,V,[""],M,p,s,M)}}u=f=y=0,k=O=1,j=S="",p=o;break;case 58:p=1+m(S),y=g;default:if(k<1)if(123==w)--k;else if(125==w&&0==k++&&125==P())continue;switch(S+=h(w),w*k){case 38:O=f>0?1:(S+="\f",-1);break;case 44:s[u++]=(m(S)-1)*O,O=1;break;case 64:45===R()&&(S+=A(C())),v=R(),f=m(j=S+=F(H())),w++;break;case 45:45===g&&2==m(S)&&(k=0)}}return c}("",null,null,null,[""],t=T(t),0,[0],t))}function X(t,e,n,r,a,i,c,o,l,h,p){for(var v=a-1,m=0===a?i:[""],b=g(m),k=0,x=0,O=0;k0?m[w]+" "+j:d(j,/&\f/g,m[w])))&&(l[O++]=z);return V(t,e,n,0===a?s:o,l,h,p)}function G(t,e,n){return V(t,e,n,o,h(z),y(t,2,-2),0)}function N(t,e,n,r){return V(t,e,n,l,y(t,0,r),y(t,r+1,-1),r)}function Y(t,e){switch(function(t,e){return(((e<<2^v(t,0))<<2^v(t,1))<<2^v(t,2))<<2^v(t,3)}(t,e)){case 5103:return c+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return c+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return c+t+i+t+a+t+t;case 6828:case 4268:return c+t+a+t+t;case 6165:return c+t+a+"flex-"+t+t;case 5187:return c+t+d(t,/(\w+).+(:[^]+)/,c+"box-$1$2"+a+"flex-$1$2")+t;case 5443:return c+t+a+"flex-item-"+d(t,/flex-|-self/,"")+t;case 4675:return c+t+a+"flex-line-pack"+d(t,/align-content|flex-|-self/,"")+t;case 5548:return c+t+a+d(t,"shrink","negative")+t;case 5292:return c+t+a+d(t,"basis","preferred-size")+t;case 6060:return c+"box-"+d(t,"-grow","")+c+t+a+d(t,"grow","positive")+t;case 4554:return c+d(t,/([^-])(transform)/g,"$1"+c+"$2")+t;case 6187:return d(d(d(t,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),t,"")+t;case 5495:case 3959:return d(t,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return d(d(t,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+a+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+t+t;case 4095:case 3583:case 4068:case 2532:return d(t,/(.+)-inline(.+)/,c+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(m(t)-1-e>6)switch(v(t,e+1)){case 109:if(45!==v(t,e+4))break;case 102:return d(t,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+i+(108==v(t,e+3)?"$3":"$2-$3"))+t;case 115:return~p(t,"stretch")?Y(d(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==v(t,e+1))break;case 6444:switch(v(t,m(t)-3-(~p(t,"!important")&&10))){case 107:return d(t,":",":"+c)+t;case 101:return d(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+c+(45===v(t,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+a+"$2box$3")+t}break;case 5936:switch(v(t,e+11)){case 114:return c+t+a+d(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return c+t+a+d(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return c+t+a+d(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return c+t+a+t+t}return t}function U(t,e){for(var n="",r=g(t),a=0;a=4;++r,a-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},at={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},it=/[A-Z]|^ms/g,ct=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ot=function(t){return 45===t.charCodeAt(1)},st=function(t){return null!=t&&"boolean"!=typeof t},lt=W((function(t){return ot(t)?t:t.replace(it,"-$&").toLowerCase()})),ut=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(ct,(function(t,e,n){return ft={name:e,styles:n,next:ft},e}))}return 1===at[t]||ot(t)||"number"!=typeof e||0===e?e:e+"px"};function ht(t,e,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ft={name:n.name,styles:n.styles,next:ft},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ft={name:r.name,styles:r.styles,next:ft},r=r.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var a=0;a\n
\n
\n
\n
\n
").concat(x.a.chevron_right,"
\n
").concat(x.a.chevron_right,"
\n
").concat(x.a.chevron_right,"
\n
").concat(x.a.chevron_right,"
\n
").concat(x.a.chevron_right,"
\n
").concat(x.a.chevron_right,"
\n
").concat(x.a.chevron_right,"
\n
").concat(x.a.chevron_right,'
\n
\n
\n \n
\n
\n
\n
\n ').concat(V.map((function(t){return"").concat(S[t]||"","")})).join(""),"\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n
\n \n \n
\n
\n
\n \n \n
\n \n \n
\n \n \n
\n \n \n\n \n \n ")}},{key:Object(m.g)("$file"),value:function(t){var e=this;this.$selection.currentProject&&c()(t.target.files).forEach((function(t){e.emit("updateImageAssetItem",t,(function(t){e.trigger("setImageUrl",t)}))}))}},{key:Object(m.n)("$el .preset-position [data-value]"),value:function(t){var e=t.$dt.attr("data-value");C[e]&&(this.state.image.radialPosition=Object(O.clone)(C[e]),this.refresh(),this.updateData())}},{key:Object(m.s)("$gradientView")+m.R,value:function(t){this.state.image.radialPosition=["50%","50%"],this.refresh(),this.updateData()}},{key:Object(m.Q)("$gradientView")+Object(m.K)("moveDragPosition"),value:function(t){var e=this.refs.$dragPosition.parent();this.containerRect=e.rect(),this.startXY=t.xy}},{key:"moveDragPosition",value:function(t,e){var n=this.startXY.x+t,r=this.startXY.y+e;this.containerRect.x>n?n=this.containerRect.x:this.containerRect.x+this.containerRect.widthr?r=this.containerRect.y:this.containerRect.y+this.containerRect.heightr&&(a=r);var i=(a-n)/e.width*100;this.state.image.insertColorStep(i),this.state.image.sortColorStep(),this.refresh(),this.updateData()}},{key:Object(m.b)("$el"),value:function(){var t=this.state.image.type;return"url"===t&&(t="image-resource"),this.parent.trigger("changeTabType",t),{"data-selected-editor":t}}},{key:Object(m.b)("$stepList"),value:function(){return{"data-selected-index":this.state.index.toString(),style:{"background-image":this.getLinearGradient()}}}},{key:Object(m.b)("$gradientView"),value:function(){var t=this.state.image.type,e="auto";return"url"!==t&&"image-resource"!==t||(e="cover"),{style:{"background-image":this.state.image.toString(),"background-size":e,"background-repeat":"no-repeat"}}}},{key:Object(m.b)("$dragPosition"),value:function(){var t="50%",e="50%";if(P[this.state.image.type]){var n=a()(this.state.image.radialPosition,2);t=n[0],e=n[1]}return{style:{left:t,top:e}}}},{key:Object(m.I)("$stepList"),value:function(){var t=this;return(this.state.image.colorsteps||[]).map((function(e,n){var r=t.$selection.isSelectedColorStep(e.id)?"selected":"";return"\n
\n
\n
\n
')}))}},{key:Object(m.n)("$cut"),value:function(){this.currentStep&&(this.currentStep.cut=this.refs.$cut.checked(),this.refresh(),this.updateData())}},{key:"removeStep",value:function(t){this.state.image.removeColorStep(t),this.refresh(),this.updateData()}},{key:"selectStep",value:function(t){var e=this;this.state.id=t,this.$selection.selectColorStep(t),this.state.image.colorsteps&&(this.currentStep=this.state.image.colorsteps.find((function(t){return e.$selection.isSelectedColorStep(t.id)})),this.refs.$cut.checked(this.currentStep.cut),this.children.$range.setValue(g.a.percent(this.currentStep.percent)),this.parent.trigger("selectColorStep",this.currentStep.color)),this.refresh()}},{key:Object(m.Q)("$stepList .step")+Object(m.K)(),value:function(t){var e=t.$dt.attr("data-id");if(t.altKey)return this.removeStep(e),!1;this.selectStep(e),this.startXY=t.xy,this.cachedStepListRect=this.refs.$stepList.rect()}},{key:"getStepListRect",value:function(){return this.cachedStepListRect}},{key:"move",value:function(t,e){var n=this.getStepListRect(),r=n.x,a=n.right,i=this.startXY.x+t;ia&&(i=a);var c=(i-r)/n.width*100;this.currentStep.setValue(c,n.width),this.children.$range.setValue(g.a.percent(c)),this.state.image.sortColorStep(),this.refresh(),this.updateData()}},{key:"refresh",value:function(){this.load()}},{key:"getLinearGradient",value:function(){var t=this.state.image;return"linear-gradient(to right, ".concat(k.a.toColorString(t.colorsteps),")")}},{key:Object(m.X)("setColorStepColor"),value:function(t){"static-gradient"===this.state.image.type?(this.state.image.colorsteps[0].color=t,this.refresh(),this.updateData()):this.currentStep&&(this.currentStep.color=t,this.refresh(),this.updateData())}},{key:Object(m.X)("setImageUrl"),value:function(t){this.state.image&&(this.state.url=t,this.state.image.reset({url:t}),this.refresh(),this.updateData())}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.parent.trigger(this.props.onchange,this.state.image.toString())}}]),n}(j.a);Object(w.a)({GradientEditor:R})},function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n(13),a=n.n(r),i=n(7),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(1),g=n(29),b=n(9);function k(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 x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var O=function(t){f()(n,t);var e=x(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"initState",value:function(){return{parser:new g.a(this.props.value||"")}}},{key:"makeSegments",value:function(){return this.refs.$data.$$(".segment").map((function(t){var e=t.$(".command"),n=e.attr("data-command");return"Z"===n&&"false"===e.attr("data-toggle")?null:{command:n,values:t.$$(".values input[type=number]").map((function(t){return+t.value}))}})).filter((function(t){return t}))}},{key:"updateData",value:function(){var t=this.makeSegments();this.state.parser.resetSegments(t),this.modifyPathData()}},{key:"modifyPathData",value:function(){this.parent.trigger(this.props.onchange,this.props.key,this.getValue(),this.props.params)}},{key:"setValue",value:function(t){this.setState({parser:new g.a(t)})}},{key:"getValue",value:function(){return this.state.parser.joinPath()}},{key:"template",value:function(){return"\n
\n
\n
\n "}},{key:Object(m.I)("$data"),value:function(){var t=this,e=[];this.state.parser.segments.forEach((function(n,r){var a=function(t){for(var e=1;e\n
").concat(t.command,"
\n
\n ").concat(t.values.map((function(t){return'')})).join(""),"\n\n ").concat("Z"===t.command?!1===t.toggle?"opened":"closed":"","\n
\n \n ")}));return r.unshift("\n
\n
\n
\n X\n Y\n
\n
\n "),r}},{key:Object(m.E)("$data input[type=number]")+Object(m.o)(300),value:function(t){this.updateData()}},{key:Object(m.n)("$data .command[data-toggle]"),value:function(t){var e=t.$dt.attrs("data-command","data-toggle"),n=a()(e,2),r=n[0],i=n[1];"Z"===r&&(i="false"!==i?"false":"true",t.$dt.attr("data-toggle",i),this.updateData())}}]),n}(n(15).a);Object(b.a)({PathDataEditor:O})},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r=n(7),a=n.n(r),i=n(13),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(1),g=(n(44),n(42),n(9));function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var k=function(t){f()(n,t);var e=b(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"initState",value:function(){var t=(this.props.value||"").split(",").map((function(t){return t.trim()})),e=c()(t,4);return{id:e[0],distance:e[1]||"0%",rotateStatus:e[2]||"auto",rotate:e[3]||"0deg"}}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.modifyOffsetPath()}},{key:"getValue",value:function(){var t=this;return Object.keys(this.state).map((function(e){return t.state[e]})).join(",")}},{key:"refresh",value:function(){this.load()}},{key:"setValue",value:function(t){var e=(t||"").split(",").map((function(t){return t.trim()})),n=c()(e,4),r=n[0],a=n[1],i=n[2],o=n[3];this.setState({id:r,distance:a,rotateStatus:i,rotate:o},!1),this.refresh()}},{key:"modifyOffsetPath",value:function(){this.parent.trigger(this.props.onchange,this.props.key,this.getValue(),this.props.params)}},{key:"template",value:function(){return"\n
\n "}},{key:"getOptions",value:function(){var t=this.$selection.currentProject,e={};return t&&t.allLayers.filter((function(t){return t.is("svg-path","svg-polygon")})).forEach((function(t){e[t.id]=t})),{options:Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t].name)})).join(","),paths:e}}},{key:Object(m.I)(),value:function(){var t=this.getOptions(),e=","+t.options,n=t.paths||{},r=this.state,a=r.id,i=r.rotateStatus,c=r.rotate,o=r.distance;return"\n
\n
\n \n \n
\n
").concat(this.$i18n("offset.path.list.editor.totalLength"),": ").concat(n[a]&&n[a].totalLength||0,"
\n
\n
\n \n \n
\n \n \n
\n \n \n \n ")}},{key:Object(m.b)("$totalLength"),value:function(){var t=this.state.id,e=(this.getOptions().paths[t]||{totalLength:0}).totalLength||0;return{innerHTML:"".concat(e,"")}}},{key:Object(m.X)("changeRangeEditor"),value:function(t,e){this.updateData(a()({},t,e)),this.bindData("$totalLength")}}]),n}(n(15).a);Object(g.a)({OffsetPathListEditor:k})},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(5),s=n.n(o),l=n(6),u=n.n(l),h=n(0),f=n.n(h),d=n(1),p=(n(34),n(137),n(81)),v=n(9),y=n(15);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var g=["border"],b={border:"all","border-top":"top","border-right":"right","border-bottom":"bottom","border-left":"left"},k=function(t){s()(n,t);var e=m(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"initState",value:function(){var t=p.a.parseStyle(this.props.value);return{direction:Object.keys(t)[0]||"border",borders:t}}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.getValue(),this.props.params)}},{key:"getValue",value:function(){return p.a.join(this.state.borders)}},{key:"setValue",value:function(t){this.state.borders=p.a.parseStyle(t),this.refresh()}},{key:"refresh",value:function(){this.load()}},{key:Object(d.I)("$editorArea"),value:function(){var t=this;return g.map((function(e){var n=b[e]||e;return n=t.$i18n("border.editor."+n),"\n
\n \n \n ')}))}},{key:"template",value:function(){return"\n
\n
\n
\n \n \n \n
\n
\n\n
\n
\n ")}},{key:Object(d.X)("changeKeyValue"),value:function(t,e){var n=this.state.borders;n[t]=e,this.updateData({borders:n})}}]),n}(y.a);Object(v.a)({BorderEditor:k})},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(5),s=n.n(o),l=n(6),u=n.n(l),h=n(0),f=n.n(h),d=n(1),p=n(9);function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(t){s()(n,t);var e=v(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"initState",value:function(){var t=this.props.value;return{label:this.props.label||"",value:t}}},{key:"template",value:function(){var t=this.state,e=t.label,n=t.value;return"\n
\n ").concat(e?""):"","\n
\n \n
\n
\n ')}},{key:"getValue",value:function(){return this.refs.$text.value}},{key:"setValue",value:function(t){this.refs.$text.val(t),this.setState({value:t},!1)}},{key:Object(d.b)("$text"),value:function(){return{value:this.state.value}}},{key:Object(d.E)("$text"),value:function(){this.updateData({value:this.refs.$text.value})}},{key:"updateData",value:function(t){this.setState(t,!1),this.parent.trigger(this.props.onchange,this.props.key,this.getValue(),this.props.params)}}]),n}(n(15).a);Object(p.a)({TextEditor:y})},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:0;this.$config.set("body.move.ms",t);var e=0===t?this.loopBodyMoves.bind(this):Object(y.debounce)(this.loopBodyMoves.bind(this),this.$config.get("body.move.ms"));this.funcBodyMoves=e}},{key:"loopBodyMoves",value:function(){var t=this.$config.get("pos"),e=this.$config.get("bodyEvent"),n=this.$config.get("lastPos")||k;!(n.x===t.x&&n.y===t.y)&&this.moves.size&&(this.moves.forEach((function(n){var r=Object(m.getDist)(t.x,t.y,n.xy.x,n.xy.y);if(Math.abs(r)>.5){var a=Math.floor(t.x-n.xy.x),i=Math.floor(t.y-n.xy.y);n.func.call(n.context,a,i,"move",e.pressure)}})),this.$config.set("lastPos",t)),requestAnimationFrame(this.funcBodyMoves)}},{key:"removeBodyMoves",value:function(){var t=this.$config.get("pos"),e=this.$config.get("bodyEvent");t&&this.ends.forEach((function(n){n.func.call(n.context,t.x-n.xy.x,t.y-n.xy.y,"end",e.pressure)})),this.moves.clear(),this.ends.clear()}},{key:Object(p.X)(v.a),value:function(t,e,n){this.moves.add({func:t,context:e,xy:n})}},{key:Object(p.X)(v.b),value:function(t,e,n){this.ends.add({func:t,context:e,xy:n})}},{key:"getClassName",value:function(){return e.className||"csseditor"}},{key:"getContainer",value:function(){return e.container||document.body}},{key:"template",value:function(){return e.template||"
"}},{key:"components",value:function(){return e.components||{}}},{key:"plugins",get:function(){return e.plugins||[]}},{key:"data",get:function(){return e.data||{}}},{key:Object(p.N)("document"),value:function(t){var e=t.xy||b;this.$config.set("bodyEvent",t),this.$config.set("pos",e),this.requestId||(this.requestId=requestAnimationFrame(this.funcBodyMoves))}},{key:Object(p.M)("document"),value:function(t){this.$config.set("bodyEvent",t),this.removeBodyMoves(),cancelAnimationFrame(this.requestId),this.requestId=null}},{key:Object(p.S)("window")+Object(p.o)(100),value:function(){this.emit("resize.window")}}]),r}(t))(e)}},function(t,e,n){"use strict";var r=n(2),a=n.n(r),i=n(3),c=n.n(i),o=n(5),s=n.n(o),l=n(6),u=n.n(l),h=n(0),f=n.n(h),d=n(7),p=n.n(d),v=n(1),y=n(12),m=(n(72),n(4)),g=n(9),b=n(15);function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var x={"segment-move":"modify",modify:"modify",path:"path"},O=function(t){s()(n,t);var e=k(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"initState",value:function(){return{mode:"move",fill:null,stroke:null,"fill-opacity":null,"stroke-width":null,msg:this.$i18n("path.manager.msg")}}},{key:Object(v.X)("refreshSelection"),value:function(){var t=this.$selection.current;t&&(this.children.$fill.setValue(t.fill||"rgba(0, 0, 0, 0)"),this.children.$stroke.setValue(t.stroke||"rgba(0, 0, 0, 1)"),this.children.$fillOpacity.setValue(t["fill-opacity"]||m.a.number(1)),this.children.$strokeWidth.setValue(t["stroke-width"]||m.a.number(1)))}},{key:"template",value:function(){this.$selection.current;return"\n
\n
\n \n \n
\n
\n \n \n \n
\n\n
\n \n
\n
\n
\n \n \n
\n \n \n
\n \n
\n\n
\n \n
\n \n \n ')}},{key:Object(v.X)("setColorAsset"),value:function(t){var e=t.color;this.$el.isShow()&&(this.setState({stroke:e},!1),this.children.$stroke.setValue(e),this.updateData({stroke:e}),this.command("setAttribute","change color assets",{stroke:e},null,!0))}},{key:Object(v.X)("changeValue"),value:function(t,e,n){this.command("setAttribute","change path",p()({},t,e),null,!0),this.updateData(p()({},t,e))}},{key:Object(v.b)("$mode"),value:function(){return{"data-selected-value":x[this.state.mode]}}},{key:"refresh",value:function(){this.bindData("$mode")}},{key:Object(v.n)("$flip button"),value:function(t){var e=t.$dt.attr("data-value");this.emit("changePathTransform",e)}},{key:Object(v.n)("$util button"),value:function(t){var e=t.$dt.attr("data-value");this.emit("changePathUtil",e)}},{key:Object(v.n)("$mode button"),value:function(t){var e=t.$dt.attr("data-value");this.updateData({mode:e}),this.refresh()}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.emit(this.state.changeEvent,t)}},{key:Object(v.X)("changePathManager"),value:function(t){this.setState({mode:t})}},{key:Object(v.X)("showPathManager"),value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.changeEvent=t.changeEvent||"changePathManager",this.setState(t),this.$el.show(),this.emit("addStatusBarMessage",this.state.msg),this.emit("change.mode.view","PathEditorView")}},{key:Object(v.X)("hidePathManager"),value:function(){this.$el.hide()}}]),n}(b.a);function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}Object(g.a)({PathManager:O});var j=function(t){s()(n,t);var e=w(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"initState",value:function(){return{tolerance:1,stroke:"black","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round",msg:this.$i18n("path.manager.msg")}}},{key:Object(v.X)("refreshSelection"),value:function(){var t=this.$selection.current;t&&(this.children.$stroke.setValue(t.stroke||"rgba(0, 0, 0, 1)"),this.children.$strokeWidth.setValue(t["stroke-width"]||m.a.number(1)))}},{key:Object(v.X)("setColorAsset"),value:function(t){var e=t.color;this.$el.isShow()&&(this.setState({stroke:e},!1),this.children.$stroke.setValue(e),this.updateData({stroke:e}))}},{key:"template",value:function(){return"\n
\n
\n
\n \n \n \n
\n \n \n \n\n
\n \n \n \n \n\n
\n \n \n \n
\n \n \n \n \n \n ')}},{key:Object(v.X)("changeValue"),value:function(t,e,n){this.updateData(p()({},t,e))}},{key:"updateData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState(t,!1),this.state.instance.trigger(this.state.changeEvent,t)}},{key:Object(v.X)("changePathManager"),value:function(t){this.setState({mode:t})}},{key:Object(v.X)("showDrawManager"),value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.changeEvent=t.changeEvent||"changeDrawManager",this.setState(t),this.$el.show(),this.emit("addStatusBarMessage",this.state.msg),this.emit("hidePathManager")}},{key:Object(v.X)("hideDrawManager"),value:function(){this.$el.hide()}}]),n}(b.a);function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}Object(g.a)({DrawManager:j});var M=function(t){s()(n,t);var e=z(n);function n(){return a()(this,n),e.apply(this,arguments)}return c()(n,[{key:"template",value:function(){return"\n
\n \n \n \n \n "}}]),n}(b.a);Object(g.a)({PageSubEditor:M})},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var r=n(7),a=n.n(r),i=n(16),c=n.n(i),o=n(2),s=n.n(o),l=n(3),u=n.n(l),h=n(5),f=n.n(h),d=n(6),p=n.n(d),v=n(0),y=n.n(v),m=n(35),g=n(1),b=n(12),k=n(8),x=n(50),O=n(23),w=(n(72),n(9)),j=n(15);function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var M={"image-resource":"Image",url:"Image",image:"Image","static-gradient":"Static","linear-gradient":"Linear","repeating-linear-gradient":"".concat(b.a.repeat," Linear"),"radial-gradient":"Radial","repeating-radial-gradient":"".concat(b.a.repeat," Radial"),"conic-gradient":"Conic","repeating-conic-gradient":"".concat(b.a.repeat," Conic")},V={image:"image","image-resource":"image",url:"image","static-gradient":"gradient","linear-gradient":"gradient","repeating-linear-gradient":"gradient","radial-gradient":"gradient","repeating-radial-gradient":"gradient","conic-gradient":"gradient","repeating-conic-gradient":"gradient"},S=function(t){f()(n,t);var e=z(n);function n(){return s()(this,n),e.apply(this,arguments)}return u()(n,[{key:"initState",value:function(){return{hideLabel:"true"===this.props["hide-label"],value:this.props.value,images:this.parseBackgroundImage(this.props.value)}}},{key:"parseBackgroundImage",value:function(t){return""===t?[]:m.a.parseStyle(Object(k.STRING_TO_CSS)(t))}},{key:"setValue",value:function(t){console.log("aaaa",t),this.setState({value:t,images:this.parseBackgroundImage(t)})}},{key:"template",value:function(){var t=this.state.hideLabel?"hide":"";return"\n
\n
\n \n
\n \n
\n
\n
\n
\n ")}},{key:"templateForBlendMode",value:function(t,e){return"\n