UNPKG

@aurigma/ui-framework

Version:

A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.

1 lines 1.36 MB
(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[54],Array(406).concat([function(t,e,n){n.d(e,"c",function(){return o}),n.d(e,"e",function(){return l}),n.d(e,"a",function(){return h}),n.d(e,"b",function(){return d}),n.d(e,"f",function(){return y}),n.d(e,"d",function(){return v});r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var r,i,n=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=(i=Error,n(a,i),a.prototype.toString=function(){return this.name+": "+this.message},a.prototype.toJSON=function(){return{name:this.name,innerException:this.innerException,message:this.message}},a);function a(t){t=i.call(this,t)||this;return t.name="CustomersCanvasException",Object.setPrototypeOf(t,a.prototype),t}n(u,s=o);var s,l=u;function u(t){t=s.call(this,t)||this;return t.name="NotImplementedException",Object.setPrototypeOf(t,u.prototype),t}n(p,c=o);var c,h=p;function p(t){t=c.call(this,t)||this;return t.name="ArgumentException",Object.setPrototypeOf(t,p.prototype),t}n(g,f=h);var f,d=g;function g(t){t=f.call(this,t)||this;return t.name="ArgumentNullException",Object.setPrototypeOf(t,g.prototype),t}n(_,m=o);var m,y=_;function _(t){t=m.call(this,t)||this;return t.name="OutOfRangeException",Object.setPrototypeOf(t,_.prototype),t}n(w,b=o);var b,v=w;function w(t){t=b.call(this,t)||this;return t.name="InvalidOperationException",Object.setPrototypeOf(t,w.prototype),t}var C;n(P,C=o);function P(t){t=C.call(this,t)||this;return t.name="UnexpectedDataException",Object.setPrototypeOf(t,P.prototype),t}},function(t,e,n){n.r(e),n.d(e,"getOrientedSquare",function(){return u.h}),n.d(e,"getBounds",function(){return u.f}),n.d(e,"getTriangleAngle",function(){return u.l}),n.d(e,"normalizeAngle",function(){return u.m}),n.d(e,"getScalarProduct",function(){return u.i}),n.d(e,"getSquareDistanceToSegment",function(){return u.k}),n.d(e,"getSquareDistanceToPoint",function(){return u.j}),n.d(e,"getLineWidth",function(){return u.g}),n.d(e,"ConvertDegreeToRadian",function(){return u.c}),n.d(e,"ConvertRadianToDegree",function(){return u.d}),n.d(e,"Clamp",function(){return u.a}),n.d(e,"EqualsOfFloatNumbers",function(){return u.e}),n.d(e,"CompareRectangels",function(){return u.b}),n.d(e,"Matrix",function(){return r.a}),n.d(e,"PathSegment",function(){return i.b}),n.d(e,"Path",function(){return i.a}),n.d(e,"PointF",function(){return c.a}),n.d(e,"RectangleF",function(){return h.a}),n.d(e,"RotatedRectangleF",function(){return s}),n.d(e,"SizeF",function(){return p}),n.d(e,"Transform",function(){return o.a});var u=n(422),r=n(474),i=n(455),c=n(434),h=n(430),o=n(456),a=n(406),s=(l.prototype.getSimplifiedObject=function(){return{centerX:this.centerX,centerY:this.centerY,width:this.width,height:this.height,angle:this.angle}},l.prototype.clone=function(){return new l(this.centerX,this.centerY,this.width,this.height,this.angle)},Object.defineProperty(l.prototype,"bounds",{get:function(){for(var t=new c.a(this.centerX,this.centerY),e=this.width,n=this.height,r=[new c.a(-e/2,-n/2),new c.a(-e/2,n/2),new c.a(e/2,-n/2),new c.a(e/2,n/2)],i=0,o=0,a=0,s=0,l=0;l<4;l++)r[l].rotate(this.angle),(r[l].x<i||0===l)&&(i=r[l].x),(r[l].y<o||0===l)&&(o=r[l].y),(r[l].x>a||0===l)&&(a=r[l].x),(r[l].y>s||0===l)&&(s=r[l].y);return new h.a(i+t.x,o+t.y,a-i,s-o)},enumerable:!0,configurable:!0}),l.prototype.equals=function(t,e){return null!=t&&Object(u.e)(this.centerX,t.centerX,e)&&Object(u.e)(this.centerY,t.centerY,e)&&Object(u.e)(this.width,t.width,e)&&Object(u.e)(this.height,t.height,e)&&Object(u.e)(this.angle,t.angle,e)},l.prototype.getUpperLeftCorner=function(){var t=new c.a(-this.width/2,-this.height/2);return t=(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},l.prototype.getUpperCenterPoint=function(){var t=new c.a(0,-this.height/2);return t=(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},l.prototype.getLeftCenterPoint=function(){var t=new c.a(-this.width/2,0);return t=(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},l.prototype.getRightCenterPoint=function(){var t=new c.a(this.width/2,0);return t=(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},l.prototype.getUpperRightCorner=function(){var t=new c.a(this.width/2,-this.height/2);return t=(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},l.prototype.getBottomRightCorner=function(){var t=new c.a(this.width/2,this.height/2);return t=(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},l.prototype.getBottomLeftCorner=function(){var t=new c.a(-this.width/2,this.height/2);return t=(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},l.prototype.getBottomCenterPoint=function(){var t=new c.a(0,this.height/2);return t=(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},l.prototype._checkProjectionIntersection=function(t,e){t=this._getProjections(t),e=this._getProjections(e);return t.left<=e.right&&t.right>=e.left&&t.top<=e.bottom&&t.bottom>=e.top},l.prototype._getProjections=function(t){for(var e,n,r=e=t[0].x,i=n=t[0].y,o=1;o<t.length;o++)r=Math.min(r,t[o].x),e=Math.max(e,t[o].x),i=Math.min(i,t[o].y),n=Math.max(n,t[o].y);return{left:r,right:e,top:i,bottom:n}},l.prototype.intersectsWith=function(t){var e,n,r=this.clone(),i=t.clone(),o=(Object(u.e)(this.angle,0)||(e=r.angle,r.angle=0,(n=i.center).rotateAt(-e,r.center),i.center=n,i.angle-=e),[r.getUpperLeftCorner(),r.getUpperRightCorner(),r.getBottomRightCorner(),r.getBottomLeftCorner()]),a=[i.getUpperLeftCorner(),i.getUpperRightCorner(),i.getBottomRightCorner(),i.getBottomLeftCorner()],s=this._checkProjectionIntersection(o,a),l=!0;return s&&!Object(u.e)(this.angle,t.angle)&&(r=this.clone(),e=(i=t.clone()).angle,i.angle=0,(n=r.center).rotateAt(-e,i.center),r.center=n,r.angle-=e,o=[r.getUpperLeftCorner(),r.getUpperRightCorner(),r.getBottomRightCorner(),r.getBottomLeftCorner()],a=[i.getUpperLeftCorner(),i.getUpperRightCorner(),i.getBottomRightCorner(),i.getBottomLeftCorner()],l=this._checkProjectionIntersection(o,a)),s&&l},Object.defineProperty(l.prototype,"location",{get:function(){return this.getUpperLeftCorner()},set:function(t){var e=this.getUpperLeftCorner();this.centerX=this.centerX+(t.x-e.x),this.centerY=this.centerY+(t.y-e.y)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"center",{get:function(){return new c.a(this.centerX,this.centerY)},set:function(t){this.centerX=t.x,this.centerY=t.y},enumerable:!0,configurable:!0}),l.prototype.rotateAt=function(t,e){var n=this.center;return n.rotateAt(t,e),this.center=n,this.angle+=t,this},l.prototype.translate=function(t,e){this.centerX+=t,this.centerY+=e},l.prototype.setTransform=function(t){null==t||t.equals(new o.a)||(this.width*=t.scaleX,this.height*=t.scaleY,this.angle+=t.angle,this.centerX+=t.translateX,this.centerY+=t.translateY)},l.prototype.getTransform=function(t){var e,n,r,i;return null==t||this.equals(t)?new o.a:(e=0===t.width?0:this.width/t.width,n=0===t.height?0:this.height/t.height,r=this.angle-t.angle,i=this.centerX-(t=t.center).x,t=this.centerY-t.y,new o.a(e,n,i,t,r))},l.prototype.transform=function(t,e){this.rotateAt(t.angle,e),t.setAngle(0),this.setTransform(t)},l.prototype.toString=function(){return[this.centerX,this.centerY,this.width,this.height,this.angle].join(",")},l.prototype.toRectangleF=function(){return new h.a(this.centerX-this.width/2,this.centerY-this.height/2,this.width,this.height)},l.prototype.contains=function(t){var e=this.clone(),t=(e.angle=0,t.clone());return t.rotateAt(-this.angle,this.center),e.bounds.contains(t)},l.prototype.getCornerByIndex=function(t){switch(t){case 0:return this.getUpperLeftCorner();case 1:return this.getUpperRightCorner();case 2:return this.getBottomRightCorner();case 3:return this.getBottomLeftCorner();default:return null}},l.prototype.transformByMatrix=function(e,t){void 0===t&&(t=null);var n=[this.center.clone(),this.getUpperLeftCorner(),this.getUpperRightCorner(),this.getBottomRightCorner(),this.getBottomLeftCorner()].map(function(t){return e.transformPoint(t)}),r=Object(u.m)(null!=t?this.angle+t:this.angle),i=n[0],t=n.slice(1,5).map(function(t){return t.rotateAt(-r,i)});if(Object(u.e)(t[0].x,t[3].x,.01)&&Object(u.e)(t[0].y,t[1].y,.01))return n=Math.abs(t[1].x-t[0].x),t=Math.abs(t[2].y-t[1].y),new l(i.x,i.y,n,t,r);throw new a.a("RotatedRectangle: Scew is not supported")},l.union=function(t,e){var n=t.clone(),r=e.clone(),i=n.angle,o=n.center,n=(n.angle=0,r.rotateAt(-i,o),h.a.union(n.bounds,r.bounds)),r=new c.a(n.left+n.width/2,n.top+n.height/2),a=new l,r=(a.center=r,-1===Math.sign(t.width)||-1===Math.sign(t.width)?-1:1),t=-1===Math.sign(t.height)||-1===Math.sign(e.height)?-1:1;return a.width=n.width*r,a.height=n.height*t,a.rotateAt(i,o),a},l.fromRectangleF=function(t,e){return new l(t.left+t.width/2,t.top+t.height/2,t.width,t.height,"number"==typeof e?e:0)},l.FromLTRB=function(t,e,n,r){return l.fromRectangleF(h.a.FromLTRB(t,e,n,r))},l.getRectWithOffset=function(t,e){if(null==t)throw new a.a("RotatedRectangleF.getRectWithOffset: rectangle cannot be null!");return null==e||e.isOrigin()?t.clone():t.transformByMatrix((new r.a).translate(e.x,e.y))},l);function l(t,e,n,r,i){this.centerX=t||0,this.centerY=e||0,this.width=n||0===n?n:2,this.height=r||0===r?r:2,this.angle=i||0}f.prototype.clone=function(){return new f(this.width,this.height)},f.prototype.toString=function(){return[this.width,this.height].join(",")},f.prototype.updateByMatrix=function(t){return t.updateObjectByMatrix(this,"width","height"),this};var p=f;function f(t,e){this.width=0,this.height=0,this.width=t,this.height=e}},function(F,t,e){e.d(t,"n",function(){return N.a}),e.d(t,"ob",function(){return z}),e.d(t,"N",function(){return H.a}),e.d(t,"kb",function(){return D.a}),e.d(t,"u",function(){return W.a}),e.d(t,"o",function(){return U.a}),e.d(t,"p",function(){return V.a}),e.d(t,"g",function(){return q.a}),e.d(t,"k",function(){return tt}),e.d(t,"B",function(){return nt}),e.d(t,"j",function(){return l.a}),e.d(t,"m",function(){return a}),e.d(t,"i",function(){return Y}),e.d(t,"l",function(){return G.a}),e.d(t,"q",function(){return rt.a}),e.d(t,"r",function(){return it.a}),e.d(t,"s",function(){return it.b}),e.d(t,"t",function(){return it.c}),e.d(t,"O",function(){return it.d}),e.d(t,"v",function(){return ot.a}),e.d(t,"x",function(){return at.a}),e.d(t,"y",function(){return ft}),e.d(t,"A",function(){return _t}),e.d(t,"E",function(){return vt.a}),e.d(t,"G",function(){return wt.a}),e.d(t,"F",function(){return Pt}),e.d(t,"I",function(){return xt.a}),e.d(t,"J",function(){return St.a}),e.d(t,"K",function(){return It.a}),e.d(t,"L",function(){return Ot.a}),e.d(t,"M",function(){return Tt.a}),e.d(t,"P",function(){return Et.a}),e.d(t,"Q",function(){return Rt.a}),e.d(t,"R",function(){return I.g}),e.d(t,"S",function(){return I.h}),e.d(t,"b",function(){return I.a}),e.d(t,"e",function(){return I.d}),e.d(t,"d",function(){return I.c}),e.d(t,"c",function(){return I.b}),e.d(t,"z",function(){return I.f}),e.d(t,"f",function(){return I.e}),e.d(t,"T",function(){return ct}),e.d(t,"V",function(){return lt}),e.d(t,"W",function(){return Lt.a}),e.d(t,"Y",function(){return jt.a}),e.d(t,"Z",function(){return kt.a}),e.d(t,"ab",function(){return Ft}),e.d(t,"bb",function(){return Bt}),e.d(t,"ub",function(){return Nt.d}),e.d(t,"H",function(){return Nt.a}),e.d(t,"ib",function(){return Nt.c}),e.d(t,"cb",function(){return Nt.b}),e.d(t,"db",function(){return zt.a}),e.d(t,"eb",function(){return Ht.a}),e.d(t,"fb",function(){return Dt}),e.d(t,"gb",function(){return Ut.a}),e.d(t,"hb",function(){return $.a}),e.d(t,"a",function(){return Vt}),e.d(t,"jb",function(){return qt.a}),e.d(t,"lb",function(){return Gt.a}),e.d(t,"nb",function(){return Xt.a}),e.d(t,"U",function(){return $t.a}),e.d(t,"pb",function(){return $t.b}),e.d(t,"D",function(){return R.d}),e.d(t,"mb",function(){return R.f}),e.d(t,"X",function(){return R.e}),e.d(t,"qb",function(){return R.g}),e.d(t,"sb",function(){return R.h}),e.d(t,"C",function(){return R.c}),e.d(t,"h",function(){return R.a}),e.d(t,"w",function(){return R.b}),e.d(t,"rb",function(){return Kt.a}),e.d(t,"tb",function(){return Yt.a}),e.d(t,"vb",function(){return Jt.a}),e.d(t,"wb",function(){return Ct.a});var M,i,N=e(498),n=e(411),r=e(410),t=(M=function(t,e){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},function(t,e){function n(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),z=(i=N.a,t(o,i),o.prototype._copy=function(t,e,n,r){return i.prototype._copy.call(this,t,e,n,r),e.sourceDpi=t.sourceDpi,e.smartObjectDpi=t.smartObjectDpi,e.smartObjectRectangle=t.smartObjectRectangle,e.smartObjectSize=t.smartObjectSize,e.smartObjectStorageId=t.smartObjectStorageId,null!=t.warpControlPoints&&(e.warpControlPoints=t.warpControlPoints.map(function(t){return t})),null!=t.projectiveTransform&&(e.projectiveTransform=t.projectiveTransform.map(function(t){return t})),null!=t.vectorMask&&(e.vectorMask=t.vectorMask.map(function(t){return t})),e},o.prototype.equals=function(t){return i.prototype.equals.call(this,t)&&Object(r.g)(this.sourceDpi,t.sourceDpi)&&Object(r.g)(this.smartObjectDpi,t.smartObjectDpi)&&n.isEqual(this.smartObjectRectangle,t.smartObjectRectangle)&&n.isEqual(this.smartObjectSize,t.smartObjectSize)&&Object(r.g)(this.smartObjectStorageId,t.smartObjectStorageId)&&Object(r.d)(this.warpControlPoints,t.warpControlPoints)&&Object(r.d)(this.projectiveTransform,t.projectiveTransform)&&Object(r.d)(this.vectorMask,t.vectorMask)},o.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new o;return this._copy(this,n,t,e),n},o.type="SmartItem",o);function o(){var t=i.call(this)||this;return t.type=o.type,t}var a,H=e(450),D=e(467),W=e(502),U=e(435),V=e(466),q=e(559),G=e(506),X=e(406),$=e(446),s=e(413),l=e(476),K=((t=a=a||{}).None="None",t.VCard="VCard",t.Phone="Phone",t.Url="Url",t.Data="Data",e(863)),Y=(Object.defineProperty(u.prototype,"isEmpty",{get:function(){return n.isEmpty(this.firstName)&&n.isEmpty(this.lastName)&&n.isEmpty(this.organization)&&n.isEmpty(this.position)&&n.isEmpty(this.email)&&n.isEmpty(this.mobilePhone)&&n.isEmpty(this.url)&&n.isEmpty(this.phone)&&n.isEmpty(this.data)&&n.isEmpty(this.barcodeValue)},enumerable:!0,configurable:!0}),u.prototype.equals=function(t){return null!=t&&this.barcodeFormat===t.barcodeFormat&&this.barcodeSubType===t.barcodeSubType&&this.firstName===t.firstName&&this.lastName===t.lastName&&this.organization===t.organization&&this.position===t.position&&this.email===t.email&&this.mobilePhone===t.mobilePhone&&this.url===t.url&&this.data===t.data&&this.phone===t.phone&&this.barcodeValue===t.barcodeValue},u.prototype._isEmpty=function(t){return n.isEmpty(null!=t?t.trim():null)},u.prototype.toVCardString=function(){var t={n:[{value:[this.lastName,this.firstName,"","",""]}],"email;internet":[{value:this.email}],org:[{value:this.organization}],"tel;cell":[{value:this.mobilePhone}],"tel;work":[{value:this.phone}],title:[{value:this.position}],url:[{value:this.url}]};return K.generate(t)},u.fromVCardString=function(t){var t=null!=t?K.parse(t):{},e=new u;return e.barcodeFormat=l.a.QR_CODE,e.barcodeSubType=a.VCard,e.email=t.email&&t.email[0]&&t.email[0].value,e.lastName=t.n&&t.n[0]&&t.n[0].value[0],e.firstName=t.n&&t.n[0]&&t.n[0].value[1],e.organization=t.org&&t.org[0]&&t.org[0].value,e.mobilePhone=t.tel&&t.tel[0]&&t.tel[0].value,e.phone=t.tel&&t.tel[1]&&t.tel[1].value,e.position=t.title&&t.title[0]&&t.title[0].value,e.url=t.url&&t.url[0]&&t.url[0].value,e},u);function u(e){if(this.barcodeFormat=l.a.QR_CODE,this.barcodeSubType=a.None,n.isString(e))try{e=JSON.parse(e)}catch(t){console.warn("Unable to parse BarcodeData from string ",e,t),e=null}n.isObject(e)&&n.extend(this,e)}var J,c,t=e(416),Z=e(424),h=e(439),p=e(443),Q=(J=function(t,e){return(J=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},function(t,e){function n(){this.constructor=t}J(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(a=(o<3?i(a):3<o?i(e,n,a):i(e,n))||a);return 3<o&&a&&Object.defineProperty(e,n,a),a},d=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},tt=(c=W.a,Q(g,c),Object.defineProperty(g.prototype,"barcodePermissions",{get:function(){return this._barcodePermissions},set:function(t){if(null==t)throw new X.a("barcodePermissions cannot be null");Object(r.g)(this._barcodePermissions,t)||(this._barcodePermissions.propertyChanged.remove(this._onPermissionsChanged),this._barcodePermissions=t,this._barcodePermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"barcodeContent",{get:function(){return this._barcodeContent},set:function(t){this._barcodeContent!==t&&(this._barcodeContent=t,this._propertyChanged.notify(this,"barcodeContent"))},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"barcodeFormat",{get:function(){return this._barcodeFormat},set:function(t){this._barcodeFormat!==t&&(this._barcodeFormat=t,this._propertyChanged.notify(this,"barcodeFormat"))},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"barcodeSubType",{get:function(){return this._barcodeSubType},set:function(t){this._barcodeSubType!==t&&(this._barcodeSubType=t,this._propertyChanged.notify(this,"barcodeSubType"))},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"color",{get:function(){return this._color},set:function(t){this._color.equals(t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"barcodeOptions",{get:function(){return this._barcodeOptions},set:function(t){JSON.stringify(this._barcodeOptions)!==JSON.stringify(t)&&(this._unsubscribeOptionsPropertyChanged(),this._barcodeOptions=t,this._subscribeOptionsPropertyChanged(),this._propertyChanged.notify(this,"barcodeOptions"))},enumerable:!0,configurable:!0}),g.prototype._subscribeOptionsPropertyChanged=function(){null!=this._barcodeOptions&&this._barcodeOptions.addPropertyChanged(this._onOptionsPropertyChanged)},g.prototype._unsubscribeOptionsPropertyChanged=function(){null!=this._barcodeOptions&&this._barcodeOptions.removePropertyChanged(this._onOptionsPropertyChanged)},Object.defineProperty(g.prototype,"isQrCode",{get:function(){return this.barcodeFormat===l.a.QR_CODE},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isSquareCode",{get:function(){return this.barcodeFormat===l.a.QR_CODE||this.barcodeFormat===l.a.DATA_MATRIX},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isLinearBarcode",{get:function(){return this.barcodeFormat===l.a.EAN_13||this.barcodeFormat===l.a.EAN_8||this.barcodeFormat==l.a.CODE_128||this.barcodeFormat===l.a.UPC_A||this.barcodeFormat===l.a.UPC_E},enumerable:!0,configurable:!0}),g.prototype._copy=function(t,e,n,r){c.prototype._copy.call(this,t,e,n,r),e.barcodePermissions=t.barcodePermissions.clone(),e.barcodeContent=t.barcodeContent,e.barcodeFormat=t.barcodeFormat,e.barcodeSubType=t.barcodeSubType,e.color=t.color.clone(),e.barcodeOptions=new nt,e.barcodeOptions.width=t.barcodeOptions.width,e.barcodeOptions.height=t.barcodeOptions.height,e.barcodeOptions.margin=t.barcodeOptions.margin,e.barcodeOptions.pureBarcode=t.barcodeOptions.pureBarcode,e.barcodeOptions.errorCorrection=t.barcodeOptions.errorCorrection,e.barcodeOptions.characterSet=t.barcodeOptions.characterSet,e.barcodeOptions.pdf417Compact=t.barcodeOptions.pdf417Compact,e.barcodeOptions.pdf417Compaction=t.barcodeOptions.pdf417Compaction,e.barcodeOptions.pdf417Dimensions=t.barcodeOptions.pdf417Dimensions,e.barcodeOptions.disableEci=t.barcodeOptions.disableEci,e.barcodeOptions.code128ForceCodesetB=t.barcodeOptions.code128ForceCodesetB,e.barcodeOptions.aztecLayers=t.barcodeOptions.aztecLayers,e.barcodeOptions.qrVersion=t.barcodeOptions.qrVersion,e.barcodeOptions.xDimension=t.barcodeOptions.xDimension,e.barcodeOptions.databarExpandedSegments=t.barcodeOptions.databarExpandedSegments},g.prototype.equals=function(t){return c.prototype.equals.call(this,t)&&Object(r.g)(this._barcodePermissions,t._barcodePermissions)&&Object(r.g)(this._barcodeContent,t._barcodeContent)&&Object(r.g)(this._barcodeFormat,t._barcodeFormat)&&Object(r.g)(this._barcodeSubType,t._barcodeSubType)&&Object(r.g)(this._color,t._color)&&Object(r.g)(this._barcodeOptions,t._barcodeOptions)},g.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new g;return this._copy(this,n,t,e),n},g.prototype.getSimplifiedObject=function(t){n.isArray(t)||n.isString(t)||(t=[]);t=c.prototype.getSimplifiedObject.call(this,["barcodePermissions","isQrCode","isLinearBarcode","isSquareCode","barcodeData"].concat(t));return t.barcodePermissions=this.barcodePermissions.getSimplifiedObject(),t},g.prototype.applyPermissionsConstrain=function(){null!=this.itemPermissions&&null!=this.itemPermissions.itemToolbarPermissions&&(null==this.barcodePermissions||this.barcodePermissions.allowChangeBarcodeContent?this.itemPermissions.itemToolbarPermissions.showEditButtonConstraint=null:this.itemPermissions.itemToolbarPermissions.showEditButtonConstraint=this.barcodePermissions.allowChangeBarcodeContent,this.itemPermissions.itemToolbarPermissions.showSelectButton=!1)},Object.defineProperty(g.prototype,"barcodeData",{get:function(){var t=new Y;if(t.barcodeSubType=this.barcodeSubType,t.barcodeFormat=this.barcodeFormat,t.barcodeFormat!==l.a.QR_CODE)t.barcodeValue=this.barcodeContent;else switch(this.barcodeSubType){case a.Phone:t.phone=this.barcodeContent;break;case a.Url:t.url=this.barcodeContent;break;case a.Data:t.data=this.barcodeContent;break;case a.VCard:return Y.fromVCardString(this.barcodeContent)}return t},enumerable:!0,configurable:!0}),g.prototype.applyBarcodeData=function(t){this.barcodeFormat=t.barcodeFormat,this.barcodeSubType=null!=t.barcodeSubType?t.barcodeSubType:this.barcodeFormat===l.a.QR_CODE?a.Phone:a.None;var e="";if(this.barcodeFormat===l.a.QR_CODE)switch(this.barcodeSubType){case a.Phone:e=t.phone;break;case a.Data:e=t.data;break;case a.None:case a.Url:e=t.url;break;case a.VCard:e=t.toVCardString()}else e=t.barcodeValue;this.barcodeContent=e},g.type="BarcodeItem",f([Object(t.a)({factory:new p.d("")}),d("design:type",String),d("design:paramtypes",[String])],g.prototype,"barcodeContent",null),f([Object(t.a)({enumObject:l.a}),d("design:type",String),d("design:paramtypes",[String])],g.prototype,"barcodeFormat",null),f([Object(t.a)({enumObject:a}),d("design:type",String),d("design:paramtypes",[String])],g.prototype,"barcodeSubType",null),g);function g(t,e,n,r){var i=c.call(this)||this;return i._barcodeContent="",i._barcodeFormat=l.a.QR_CODE,i._barcodeOptions=new nt,i._barcodeSubType=a.Url,i._color=new s.RgbColor(0,0,0,255),i.type=g.type,i._onOptionsPropertyChanged=function(t,e){i._propertyChanged.notify(i,"barcodeOptions")},i._barcodePermissions=new G.a,i._barcodeOptions.pureBarcode=!0,i._ignorePermissionsChange=!0,i.manipulationPermissions.resizeGrips=new $.a(!0,!1),i.itemPermissions.itemToolbarPermissions.showEditButton=!0,i.shapePermissions.allowChangeFillColor=!0,i.barcodePermissions.allowChangeBarcodeType=!1,i.barcodePermissions.allowChangeBarcodeColor=!0,i.barcodePermissions.allowChangeBarcodeContent=!0,i._ignorePermissionsChange=!1,i.fillColor=new s.RgbColor(255,255,255,255),null!=t&&(i._barcodeFormat=t),null!=e&&(i._barcodeContent=e),null!=n&&(i._barcodeOptions=n),i._subscribeOptionsPropertyChanged(),null!=r&&(i.sourceRectangle=r),i.applyPermissionsConstrain(),i}et=Z.a,Q(m,et),m.prototype.equals=function(t){return null!=t&&Object(r.g)(this.width,t.width)&&Object(r.g)(this.height,t.height)&&Object(r.g)(this.margin,t.margin)&&Object(r.g)(this.pureBarcode,t.pureBarcode)&&Object(r.g)(this.errorCorrection,t.errorCorrection)&&Object(r.g)(this.characterSet,t.characterSet)&&Object(r.g)(this.pdf417Compact,t.pdf417Compact)&&Object(r.g)(this.pdf417Compaction,t.pdf417Compaction)&&n.isEqual(this.pdf417Dimensions,t.pdf417Dimensions)&&Object(r.g)(this.disableEci,t.disableEci)&&Object(r.g)(this.code128ForceCodesetB,t.code128ForceCodesetB)&&Object(r.g)(this.aztecLayers,t.aztecLayers)&&Object(r.g)(this.qrVersion,t.qrVersion)&&Object(r.g)(this.xDimension,t.xDimension&&Object(r.g)(this.databarExpandedSegments,t.databarExpandedSegments))},m.type="EncodingOptions",f([Object(h.a)(),Object(t.a)({factory:new p.d(0)}),d("design:type",Number)],m.prototype,"width",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(0)}),d("design:type",Number)],m.prototype,"height",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(0)}),d("design:type",Number)],m.prototype,"margin",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(!0)}),d("design:type",Boolean)],m.prototype,"pureBarcode",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d("")}),d("design:type",String)],m.prototype,"errorCorrection",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d("")}),d("design:type",String)],m.prototype,"characterSet",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(!1)}),d("design:type",Boolean)],m.prototype,"pdf417Compact",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d("")}),d("design:type",String)],m.prototype,"pdf417Compaction",void 0),f([Object(h.a)(),Object(t.a)({ignore:!0}),d("design:type",Object)],m.prototype,"pdf417Dimensions",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(!1)}),d("design:type",Boolean)],m.prototype,"disableEci",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(!1)}),d("design:type",Boolean)],m.prototype,"code128ForceCodesetB",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(0)}),d("design:type",Number)],m.prototype,"aztecLayers",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(0)}),d("design:type",Number)],m.prototype,"qrVersion",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(0)}),d("design:type",Number)],m.prototype,"xDimension",void 0),f([Object(h.a)(),Object(t.a)({factory:new p.d(0)}),d("design:type",Number)],m.prototype,"databarExpandedSegments",void 0);var et,nt=m;function m(){var t=null!==et&&et.apply(this,arguments)||this;return t.type=m.type,t}var rt=e(560),it=e(507),ot=e(561),at=e(562),y=e(434),st=e(409),lt=(Object.defineProperty(_.prototype,"allowChangeLineWidth",{get:function(){return this._allowChangeLineWidth},set:function(t){this._allowChangeLineWidth!==t&&(this._allowChangeLineWidth=t,this.propertyChanged.notify("allowChangeLineWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"allowChangeLineColor",{get:function(){return this._allowChangeLineColor},set:function(t){this._allowChangeLineColor!==t&&(this._allowChangeLineColor=t,this.propertyChanged.notify("allowChangeLineColor"))},enumerable:!0,configurable:!0}),_.prototype.getSimplifiedObject=function(){var t={};return t.allowChangeLineWidth=this.allowChangeLineWidth,t.allowChangeLineColor=this.allowChangeLineColor,t},_.prototype.clone=function(){var t=new _;return t.allowChangeLineWidth=this.allowChangeLineWidth,t.allowChangeLineColor=this.allowChangeLineColor,t},_.prototype.equals=function(t){return this.allowChangeLineColor===t.allowChangeLineColor&&this.allowChangeLineWidth===t.allowChangeLineWidth},_);function _(t){this._allowChangeLineWidth=!0,this._allowChangeLineColor=!0,this.propertyChanged=new st.a,this.allowChangeLineWidth=t=null==t?!0:t,this.allowChangeLineColor=t}var ut,b,v=e(422),Z=(ut=function(t,e){return(ut=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},function(t,e){function n(){this.constructor=t}ut(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ct=(b=H.a,Z(w,b),Object.defineProperty(w.prototype,"width",{get:function(){return this._width},set:function(t){v.e(this._width,t)||(this._width=t,this._propertyChanged.notify(this,"width"))},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"color",{get:function(){return this._color},set:function(t){s.Color.equals(this._color,t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"sourcePoint0",{get:function(){return this._sourcePoint0},set:function(t){y.a.isEqual(this._sourcePoint0,t)||(this._sourcePoint0=t,this._propertyChanged.notify(this,"sourcePoint0"))},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"sourcePoint1",{get:function(){return this._sourcePoint1},set:function(t){y.a.isEqual(this._sourcePoint1,t)||(this._sourcePoint1=t,this._propertyChanged.notify(this,"sourcePoint1"))},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"fixedWidth",{get:function(){return this._fixedWidth},set:function(t){this._fixedWidth!==t&&(this._fixedWidth=t,this._propertyChanged.notify(this,"fixedWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"linePermissions",{get:function(){return this._linePermissions},set:function(t){if(null==t)throw new X.a("linePermissions cannot be null");Object(r.g)(this._linePermissions,t)||(this._linePermissions.propertyChanged.remove(this._onPermissionsChanged),this._linePermissions=t,this._linePermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"overprintStroke",{get:function(){return this._overprintStroke},set:function(t){t!=this._overprintStroke&&(this._overprintStroke=t,this._propertyChanged.notify(this,"overprintStroke"))},enumerable:!0,configurable:!0}),w.prototype._subscribeToPermissionChanged=function(){this._linePermissions.propertyChanged.add(this._onPermissionsChanged)},w.prototype._unsubscribeFromPermissionChanged=function(){this._linePermissions.propertyChanged.remove(this._onPermissionsChanged)},w.prototype.applyPermissionsConstrain=function(){b.prototype.applyPermissionsConstrain.call(this),this.itemPermissions.itemToolbarPermissions.showEditButton=!1,this.itemPermissions.itemToolbarPermissions.showSelectButton=!1,this.isRenderTypeIsNormal||(this.linePermissions.allowChangeLineColor=!1)},w.prototype.getSimplifiedObject=function(t){t=b.prototype.getSimplifiedObject.call(this,["linePermissions"].concat(t));return t.linePermissions=this.linePermissions.getSimplifiedObject(),t},w.prototype._copy=function(t,e,n,r){b.prototype._copy.call(this,t,e,n,r),e.width=t.width,e.color=t.color.clone(),e.sourcePoint0=t.sourcePoint0.clone(),e.sourcePoint1=t.sourcePoint1.clone(),e.fixedWidth=t.fixedWidth,e.linePermissions=null!=t._linePermissions?t._linePermissions.clone():null,e.overprintStroke=t.overprintStroke},w.prototype.equals=function(t){return b.prototype.equals.call(this,t)&&Object(r.g)(this._width,t._width)&&Object(r.g)(this._color,t._color)&&Object(r.g)(this._sourcePoint0,t._sourcePoint0)&&Object(r.g)(this._sourcePoint1,t._sourcePoint1)&&Object(r.g)(this._fixedWidth,t._fixedWidth)&&Object(r.g)(this._linePermissions,t._linePermissions)&&Object(r.g)(this._overprintStroke,t._overprintStroke)},w.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new w;return this._copy(this,n,t,e),n},w.type="LineItem",w);function w(t,e){var n=b.call(this)||this;return n._width=4,n._color=new s.RgbColor(0,0,0,255),n._sourcePoint0=new y.a,n._sourcePoint1=new y.a,n._fixedWidth=!1,n._overprintStroke=!1,n.lineColorForAbnormalRendering=new s.RgbColor(0,0,0,255),n.type=w.type,n._sourcePoint0=null!=t?t:new y.a,n._sourcePoint1=null!=e?e:new y.a,n._linePermissions=new lt,n._linePermissions.propertyChanged.add(n._onPermissionsChanged),n._ignorePermissionsChange=!0,n.itemPermissions.itemToolbarPermissions.showEditButton=!1,n.itemPermissions.itemToolbarPermissions.showSelectButton=!1,n._ignorePermissionsChange=!1,n}ht=function(t,e){return(ht=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};(function(t,e){function n(){this.constructor=t}ht(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(C,pt=ct),Object.defineProperty(C.prototype,"dashWidth",{get:function(){return this._dashWidth},set:function(t){v.e(this._dashWidth,t)||(this._dashWidth=t,this._propertyChanged.notify(this,"dashWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"altDashWidth",{get:function(){return this._altDashWidth},set:function(t){v.e(this._altDashWidth,t)||(this._altDashWidth=t,this._propertyChanged.notify(this,"altDashWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"altColor",{get:function(){return this._altColor},set:function(t){s.Color.equals(this._altColor,t)||(this._altColor=t,this._propertyChanged.notify(this,"altColor"))},enumerable:!0,configurable:!0}),C.prototype._copy=function(t,e,n,r){pt.prototype._copy.call(this,t,e,n,r),e.dashWidth=t.dashWidth,e.altDashWidth=t.altDashWidth,e.altColor=t.altColor.clone()},C.prototype.equals=function(t){return pt.prototype.equals.call(this,t)&&Object(r.g)(this._dashWidth,t._dashWidth)&&Object(r.g)(this._altDashWidth,t._altDashWidth)&&Object(r.g)(this._altColor,t._altColor)},C.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new C;return this._copy(this,n,t,e),n},C.type="DashedLineItem";var ht,pt,ft=C;function C(t,e){t=pt.call(this,t,e)||this;return t._dashWidth=3,t._altDashWidth=3,t._altColor=new s.RgbColor(0,0,0,0),t.type=C.type,t}var dt,gt,mt=e(430),yt=e(455),Q=(dt=function(t,e){return(dt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},function(t,e){function n(){this.constructor=t}dt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_t=(gt=D.a,Q(P,gt),P.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new P;return this._copy(this,n,t,e),n},P.type="EllipseItem",P);function P(t){void 0===t&&(t=new mt.a(0,0,10,10));var e=gt.call(this,yt.a.ellipse(t.left,t.top,t.width,t.height))||this;return e.type=P.type,e.sourceRectangle=t,e.manipulationPermissions.resizeGrips=new $.a(!0,!0),e}var bt,x,vt=e(554),wt=e(508),Ct=e(465),f=(bt=function(t,e){return(bt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},function(t,e){function n(){this.constructor=t}bt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Pt=(x=H.a,f(S,x),Object.defineProperty(S.prototype,"location",{get:function(){return this._location},set:function(t){y.a.isEqual(this._location,t)||(this._location=t,this._propertyChanged.notify(this,"location"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"cols",{get:function(){return this._cols},set:function(t){v.e(this._cols,t)||(this._cols=t,this._propertyChanged.notify(this,"cols"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"rows",{get:function(){return this._rows},set:function(t){v.e(this._rows,t)||(this._rows=t,this._propertyChanged.notify(this,"rows"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"stepX",{get:function(){return this._stepX},set:function(t){v.e(this._stepX,t)||(this._stepX=t,this._propertyChanged.notify(this,"stepX"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"stepY",{get:function(){return this._stepY},set:function(t){v.e(this._stepY,t)||(this._stepY=t,this._propertyChanged.notify(this,"stepY"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(t){v.e(this._lineWidth,t)||(this._lineWidth=t,this._propertyChanged.notify(this,"lineWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"fixedLineWidth",{get:function(){return this._fixedLineWidth},set:function(t){this._fixedLineWidth!==t&&(this._fixedLineWidth=t,this._propertyChanged.notify(this,"fixedLineWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"verticalLineColor",{get:function(){return this._verticalLineColor},set:function(t){s.Color.equals(this._verticalLineColor,t)||(this._verticalLineColor=t,this._propertyChanged.notify(this,"verticalLineColor"))},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"horizontalLineColor",{get:function(){return this._horizontalLineColor},set:function(t){s.Color.equals(this._horizontalLineColor,t)||(this._horizontalLineColor=t,this._propertyChanged.notify(this,"horizontalLineColor"))},enumerable:!0,configurable:!0}),S.prototype._copy=function(t,e,n,r){x.prototype._copy.call(this,t,e,n,r),e.location=t.location.clone(),e.cols=t.cols,e.rows=t.rows,e.stepX=t.stepX,e.stepY=t.stepY,e.lineWidth=t.lineWidth,e.fixedLineWidth=t.fixedLineWidth,e.verticalLineColor=t.verticalLineColor.clone(),e.horizontalLineColor=t.horizontalLineColor.clone()},S.prototype.equals=function(t){return x.prototype.equals.call(this,t)&&Object(r.g)(this._location,t._location)&&Object(r.g)(this._rows,t._rows)&&Object(r.g)(this._cols,t._cols)&&Object(r.g)(this._stepX,t._stepX)&&Object(r.g)(this._stepY,t._stepY)&&Object(r.g)(this._lineWidth,t._lineWidth)&&Object(r.g)(this._fixedLineWidth,t._fixedLineWidth)&&Object(r.g)(this._verticalLineColor,t._verticalLineColor)&&Object(r.g)(this._horizontalLineColor,t._horizontalLineColor)},S.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new S(this.location.x,this.location.y,this.cols,this.rows,this.stepX,this.stepY);return this._copy(this,n,t,e),n},S.type="GridItem",S);function S(t,e,n,r,i,o){var a=x.call(this)||this;return a.type=S.type,a._location=new y.a(t,e),a._cols=n,a._rows=r,a._stepX=i,a._stepY=o,a._horizontalLineColor=new s.RgbColor(0,0,0,255),a._verticalLineColor=new s.RgbColor(0,0,0,255),a._lineWidth=1,a._fixedLineWidth=!0,a.textWrappingMode=Ct.a.None,a}var xt=e(468),St=e(478),It=e(511),Ot=e(509),Tt=e(564),Et=e(552),Rt=e(553),I=e(565),Lt=e(549),jt=e(479),kt=e(477),O=e(407),Bt=(Object.defineProperty(T.prototype,"allowChangeColumnCount",{get:function(){return this._allowChangeColumnCount},set:function(t){this._allowChangeColumnCount!==t&&(this._allowChangeColumnCount=t,this.propertyChanged.notify("allowChangeColumnCount"))},enumerable:!0,configurable:!0}),T.prototype.getSimplifiedObject=function(){var t={};return t.allowChangeColumnCount=this.allowChangeColumnCount,t},T.prototype.clone=function(){var t=new T;return t.allowChangeColumnCount=this.allowChangeColumnCount,t},T.prototype.equals=function(t){return this.allowChangeColumnCount===t.allowChangeColumnCount},T);function T(t){this.propertyChanged=new st.a,this.allowChangeColumnCount=t=null==t?!0:t}var At,E,R=e(475),h=(At=function(t,e){return(At=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},function(t,e){function n(){this.constructor=t}At(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(a=(o<3?i(a):3<o?i(e,n,a):i(e,n))||a);return 3<o&&a&&Object.defineProperty(e,n,a),a},d=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ft=(E=U.a,h(L,E),Object.defineProperty(L.prototype,"boundingPaths",{get:function(){return this._boundingPaths},set:function(n){n.length===this.boundingPaths.length&&this.boundingPaths.every(function(t,e){return t.isEqual(n[e])})||(this._boundingPaths=n,this._propertyChanged.notify(this,"boundingPaths"))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"wrappingPath",{get:function(){return this._wrappingPath},set:function(t){null==this._wrappingPath&&null==t||null!=this._wrappingPath&&this._wrappingPath.isEqual(t)||(this._wrappingPath=t,this._propertyChanged.notify(this,"wrappingPath"))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"wrappingMargin",{get:function(){return this._wrappingMargin},set:function(t){Object(O.EqualsOfFloatNumbers)(this._wrappingMargin,t)||(this._wrappingMargin=t,this._propertyChanged.notify(this,"wrappingMargin"))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"paragraphSettings",{get:function(){return this._paragraphSettings},set:function(t){kt.a.equals(this._paragraphSettings,t)||(this._paragraphSettings=t,this._propertyChanged.notify(this,"paragraphSettings"))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"isVertical",{get:function(){return this._isVertical},set:function(t){this._isVertical!==t&&(this._isVertical=t,this._propertyChanged.notify(this,"isVertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"pathBoundedTextPermissions",{get:function(){return this._pathBoundedTextPermissions},set:function(t){if(null==t)throw new X.a("pathBoundedTextPermissions cannot be null");Object(r.g)(this._pathBoundedTextPermissions,t)||(this._pathBoundedTextPermissions.propertyChanged.remove(this._onPermissionsChanged),this._pathBoundedTextPermissions=t,this._pathBoundedTextPermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"firstBaselineOffset",{get:function(){return this._firstBaselineOffset},set:function(t){this._firstBaselineOffset!==t&&null!=(this._firstBaselineOffset=t)&&this._propertyChanged.notify(this,"firstBaselineOffset")},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"firstBaselineMinOffset",{get:function(){return this._firstBaselineMinOffset},set:function(t){Object(O.EqualsOfFloatNumbers)(this._firstBaselineMinOffset,t)||null!=(this._firstBaselineMinOffset=t)&&this._propertyChanged.notify(this,"firstBaselineMinOffset")},enumerable:!0,configurable:!0}),L.prototype.getSimplifiedObject=function(t){t=E.prototype.getSimplifiedObject.call(this,["pathBoundedTextPermissions"].concat(t));return t.pathBoundedTextPermissions=this.pathBoundedTextPermissions.getSimplifiedObject(),t},L.prototype._copy=function(t,e,n,r){E.prototype._copy.call(this,t,e,n,r),"AutoScaledTextItem"!=e.type&&"BoundedTextItem"!=e.type&&"PathBoundedTextItem"!=e.type&&"PlainTextItem"!=e.type||(e.isVertical=t.isVertical),"PathBoundedTextItem"!=e.type&&"BoundedTextItem"!=e.type||(e.wrappingMargin=t.wrappingMargin,e.paragraphSettings=t.paragraphSettings.clone(),e.wrappingPath=null!=t.wrappingPath?t.wrappingPath.clone():null,e.firstBaselineOffset=t.firstBaselineOffset,e.firstBaselineMinOffset=t.firstBaselineMinOffset),e instanceof L&&(e.boundingPaths=t.boundingPaths.map(function(t){return t.clone()}),e.pathBoundedTextPermissions=t.pathBoundedTextPermissions.clone())},L.prototype.equals=function(t){return E.prototype.equals.call(this,t)&&Object(r.c)(this._boundingPaths,t._boundingPaths)&&Object(r.g)(this._wrappingMargin,t._wrappingMargin)&&Object(r.g)(this._paragraphSettings,t._paragraphSettings)&&Object(r.g)(this._isVertical,t._isVertical)&&Object(r.g)(this._pathBoundedTextPermissions,t._pathBoundedTextPermissions)&&Object(r.g)(this._wrappingPath,t._wrappingPath)&&Object(r.g)(this.firstBaselineOffset,t.firstBaselineOffset)&&Object(r.g)(this.firstBaselineMinOffset,t.firstBaselineMinOffset)},L.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new L;return this._copy(this,n,t,e),n},L.type="PathBoundedTextItem",p([Object(t.a)({enumObject:R.c}),d("design:type",Number),d("design:paramtypes",[Number])],L.prototype,"firstBaselineOffset",null),L);function L(t,e,n,r){t=E.call(this,t,n,r)||this;return t._boundingPaths=[],t._wrappingMargin=7,t._wrappingPath=null,t._paragraphSettings=new kt.a,t._isVertical=!1,t._firstBaselineOffset=R.c.Ascent,t._firstBaselineMinOffset=0,t.type=L.type,null!=e&&(t.boundingPaths=e),t._pathBoundedTextPermissions=new Bt,t._pathBoundedTextPermissions.propertyChanged.add(t._onPermissionsChanged),t}var Mt,j,Nt=e(512),zt=e(566),Ht=e(567),Z=(Mt=function(t,e){return(Mt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},function(t,e){function n(){this.constructor=t}Mt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Dt=(j=H.a,Z(k,j),Object.defineProperty(k.prototype,"width",{get:function(){return this._width},set:function(t){v.e(this._width,t)||(this._width=t,this._propertyChanged.notify(this,"width"))},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"color",{get:function(){return this._color},set:function(t){s.Color.equals(this._color,t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"sourcePoints",{get:function(){return this._points},set:function(t){this._points=t,this._propertyChanged.notify(this,"sourcePoints")},enumerable:!0,configurable:!0}),k.prototype._copy=function(t,e,n,r){j.prototype._copy.call(this,t,e,n,r),e.width=t.width,e.color=t.color.clone(),e.sourcePoints=t.sourcePoints.map(function(t){return t.clone()})},k.prototype.equals=function(t){return j.prototype.equals.call(this,t)&&Object(r.g)(this._width,t._width)&&Object(r.g)(this._color,t._color)&&Object(r.c)(this._points,t._points)},k.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new k;return this._copy(this,n,t,e),n},k.type="PolylineItem",k);function k(t){var e=j.call(this)||this;if(e._width=20,e._color=new s.RgbColor(255,255,61,255),e._points=[],e.type=k.type,e._points=[],t&&t.length&&0<t.length)for(var n=0;n<t.length;n++)t[n]instanceof y.a&&e._points.push(t[n]);return e.textWrappingMode=Ct.a.None,e}var Wt,B,Ut=e(503),Q=e(568),f=(Wt=function(t,e){return(Wt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},function(t,e){function n(){this.constructor=t}Wt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(a=(o<3?i(a):3<o?i(e,n,a):i(e,n))||a);return 3<o&&a&&Object.defineProperty(e,n,a),a},p=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Vt=(B=U.a,f(A,B),A.prototype.applyPermissionsConstrain=function(){B.prototype.applyPermissionsConstrain.call(this),null!=this.manipulationPermissions&&null!=this.manipulationPermissions.resizeGrips&&(this.manipulationPermissions.resizeGrips.setCornerArbitraryConstraint(!1),this.manipulationPermissions.resizeGrips.edgeConstraint=!1),null!=this.textPermissions&&(this.textPermissions.allowChangeLeading=!1,this.textPermissions.allowChangeTextAlignment=!1)},Object.defineProperty(A.prototype,"center",{get:function(){return this._center},set:function(t){O.PointF.isEqual(this._center,t)||(this._center=t,this._propertyChanged.notify(this,"center"))},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"bend",{get:function(){return this._bend},set:function(t){Object(O.EqualsOfFloatNumbers)(this._bend,t)||(this._bend=t,this._propertyChanged.notify(this,"bend"))},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"warp",{get:function(){return this._warp},set:function(t){this._warp!==t&&(this._warp=t,this._propertyChanged.notify(this,"warp"))},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"maxLineCount",{get:function(){return 1},set:function(t){throw console.error("ArchedText set maxLineCount",t),new X.d("Max Line Count of ArchedTextItem can not be redefined!")},enumerable:!0,configurable:!0}),A.prototype.getSimplifiedObject=function(t){return B.prototype.getSimplifiedObject.call(this,["maxLineCount"].concat(t))},A.prototype._copy=function(t,e,n,r){B.prototype._copy.call(this,t,e,n,r),e instanceof A&&(e.center=t.center,e.bend=t.bend,e.warp=t.warp)},A.prototype.equals=function(t){return B.prototype.equals.call(this,t)&&Object(r.g)(this._center,t._center)&&Object(r.g)(this._bend,t._bend)&&Object(r.g)(this._warp,t._warp)},A.prototype.clone=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var n=new A;return this._copy(this,n,t,e),n},A.type="ArchedTextItem",h([Object(Q.b)({type:"boolean"}),p("design:type",Boolean),p("design:paramtypes",[Boolean])],A.prototype,"warp",null),A);function A(t,e,n,r){t=B.call(this,t,n,r)||this;return t._center=new O.PointF,t.type=A.type,null!=e&&(t._center=e),t._ignorePermissionsChange=!0,t.manipulationPermissions.resizeGrips.setCornerArbitrary(!1),t.manipulationPermissions.resizeGrips.edge=!1,t.textPermissions.allowChangeTextAlignment=!1,t.textPermissions.allowChangeLeading=!1,t._ignorePermissionsChange=!1,t}var qt=e(505),Gt=e(557),Xt=e(480),$t=e(504),Kt=e(558),Yt=e(555),Jt=e(551)},function(t,e,n){n.d(e,"a",function(){return u}),n.d(e,"b",function(){return p}),n.d(e,"c",function(){return g});r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var r,n=funct