1var p2,u1;function f(e,t,i,s){var n,r=arguments.length,o=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,i):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}function u0(e,t,i,s){return new(i||(i=Promise))(function(n,r){function o(h){try{l(s.next(h))}catch(c){r(c)}}function a(h){try{l(s.throw(h))}catch(c){r(c)}}function l(h){h.done?n(h.value):(function(c){return c instanceof i?c:new i(function(d){d(c)})})(h.value).then(o,a)}l((s=s.apply(e,t||[])).next())})}(function(e){e[e.none=1]="none",e[e.free=2]="free",e[e.mirrorAngle=3]="mirrorAngle",e[e.mirror=4]="mirror"})(p2||(p2={})),typeof SuppressedError=="function"&&SuppressedError,(function(e){e[e.No=0]="No",e[e.Yes=1]="Yes",e[e.NoAndSkip=2]="NoAndSkip",e[e.YesAndSkip=3]="YesAndSkip"})(u1||(u1={}));const Hc={};function M(e){return e===void 0}function Nt(e){return e==null}function V(e){return typeof e=="string"}const{isFinite:g1}=Number;function it(e){return typeof e=="number"}const Nc=/^-?\d+(?:\.\d+)?$/;function Xc(e){return typeof e=="string"&&Nc.test(e)?+e:e}const{isArray:et}=Array;function O(e){return e&&typeof e=="object"}function Yc(e){return O(e)&&!et(e)}function jc(e){return JSON.stringify(e)==="{}"}const q={default:(e,t)=>(vn(t,e),vn(e,t),e),assign(e,t,i){let s;Object.keys(t).forEach(n=>{var r,o;if(s=t[n],s?.constructor===Object&&((r=e[n])===null||r===void 0?void 0:r.constructor)===Object)return vn(e[n],t[n],i&&i[n]);i&&n in i?((o=i[n])===null||o===void 0?void 0:o.constructor)===Object&&vn(e[n]={},t[n],i[n]):e[n]=t[n]})},copyAttrs:(e,t,i)=>(i.forEach(s=>{M(t[s])||(e[s]=t[s])}),e),clone:e=>JSON.parse(JSON.stringify(e)),toMap(e){const t={};for(let i=0,s=e.length;i<s;i++)t[e[i]]=!0;return t},stintSet(e,t,i){i||(i=void 0),e[t]!==i&&(e[t]=i)}},{assign:vn}=q;class O4{get __useNaturalRatio(){return!0}get __isLinePath(){const{path:t}=this;return t&&t.length===6&&t[0]===1}get __usePathBox(){return this.__pathInputed}get __blendMode(){if(this.eraser&&this.eraser!=="path")return"destination-out";const{blendMode:t}=this;return t==="pass-through"?null:t}constructor(t){this.__leaf=t}__get(t){if(this.__input){const i=this.__input[t];if(!M(i))return i}return this[t]}__getData(){const t={tag:this.__leaf.tag},{__input:i}=this;let s;for(let n in this)n[0]!=="_"&&(s=i?i[n]:void 0,t[n]=M(s)?this[n]:s);return t}__setInput(t,i){this.__input||(this.__input={}),this.__input[t]=i}__getInput(t){if(this.__input){const i=this.__input[t];if(!M(i))return i}if(t!=="path"||this.__pathInputed)return this["_"+t]}__removeInput(t){this.__input&&!M(this.__input[t])&&(this.__input[t]=void 0)}__getInputData(t,i){const s={};if(t)if(et(t))for(let n of t)s[n]=this.__getInput(n);else for(let n in t)s[n]=this.__getInput(n);else{let n,r,{__input:o}=this;s.tag=this.__leaf.tag;for(let a in this)if(a[0]!=="_"&&(n=this["_"+a],!M(n))){if(a==="path"&&!this.__pathInputed)continue;r=o?o[a]:void 0,s[a]=M(r)?n:r}}if(i&&i.matrix){const{a:n,b:r,c:o,d:a,e:l,f:h}=this.__leaf.__localMatrix;s.matrix={a:n,b:r,c:o,d:a,e:l,f:h}}return s}__setMiddle(t,i){this.__middle||(this.__middle={}),this.__middle[t]=i}__getMiddle(t){return this.__middle&&this.__middle[t]}__checkSingle(){const t=this;if(t.blendMode==="pass-through"){const i=this.__leaf;t.opacity<1&&(i.isBranch||t.__hasMultiPaint)||i.__hasEraser||t.eraser||t.filter?t.__single=!0:t.__single&&(t.__single=!1)}else t.__single=!0}__removeNaturalSize(){this.__naturalWidth=this.__naturalHeight=void 0}destroy(){this.__input=this.__middle=null,this.__complexData&&this.__complexData.destroy()}}const di={RUNTIME:"runtime",LEAF:"leaf",TASK:"task",CANVAS:"canvas",IMAGE:"image",types:{},create(e){const{types:t}=Uc;return t[e]?t[e]++:(t[e]=1,0)}},Uc=di;let ne,re,Co;const{max:ps}=Math,bo=[0,0,0,0],cn={zero:[...bo],tempFour:bo,set:(e,t,i,s,n)=>(i===void 0&&(i=s=n=t),e[0]=t,e[1]=i,e[2]=s,e[3]=n,e),setTemp:(e,t,i,s)=>Cn(bo,e,t,i,s),toTempAB(e,t,i){Co=i?it(e)?t:e:[],it(e)?(ne=f2(e),re=t):it(t)?(ne=e,re=f2(t)):(ne=e,re=t),ne.length!==4&&(ne=ko(ne)),re.length!==4&&(re=ko(re))},get(e,t){let i;if(!it(e))switch(e.length){case 4:i=M(t)?e:[...e];break;case 2:i=[e[0],e[1],e[0],e[1]];break;case 3:i=[e[0],e[1],e[2],e[1]];break;case 1:e=e[0];break;default:e=0}if(i||(i=[e,e,e,e]),!M(t))for(let s=0;s<4;s++)i[s]>t&&(i[s]=t);return i},max:(e,t,i)=>it(e)&&it(t)?ps(e,t):(_2(e,t,i),Cn(Co,ps(ne[0],re[0]),ps(ne[1],re[1]),ps(ne[2],re[2]),ps(ne[3],re[3]))),add:(e,t,i)=>it(e)&&it(t)?e+t:(_2(e,t,i),Cn(Co,ne[0]+re[0],ne[1]+re[1],ne[2]+re[2],ne[3]+re[3])),swapAndScale(e,t,i,s){if(it(e))return t===i?e*t:[e*i,e*t];const n=s?e:[],[r,o,a,l]=e.length===4?e:ko(e);return Cn(n,a*i,l*t,r*i,o*t)}},{set:Cn,get:ko,setTemp:f2,toTempAB:_2}=cn,{round:Vc,pow:Gc,max:qc,floor:Kc,PI:U1}=Math,Bo={},ct={within:(e,t,i)=>(O(t)&&(i=t.max,t=t.min),!M(t)&&e<t&&(e=t),!M(i)&&e>i&&(e=i),e),fourNumber:cn.get,formatRotation:(e,t)=>(e%=360,t?e<0&&(e+=360):(e>180&&(e-=360),e<-180&&(e+=360)),ct.float(e)),getGapRotation(e,t,i=0){let s=e+i;if(t>1){const n=Math.abs(s%t);(n<1||n>t-1)&&(s=Math.round(s/t)*t)}return s-i},float(e,t){const i=M(t)?1e12:Gc(10,t);return(e=Vc(e*i)/i)===-0?0:e},sign:e=>e<0?-1:1,getScaleData(e,t,i,s){if(s||(s={}),t){const n=(it(t)?t:t.width||0)/i.width,r=(it(t)?t:t.height||0)/i.height;s.scaleX=n||r||1,s.scaleY=r||n||1}else e&&ct.assignScale(s,e);return s},getScaleFixedData(e,t,i,s,n){let{scaleX:r,scaleY:o}=e;if((s||t)&&(r<0&&(r=-r),o<0&&(o=-o)),t)if(t===!0)r=o=i?1:1/r;else{let a;it(t)?a=t:t==="zoom-in"&&(a=1),a&&(r=o=r>a||o>
1a?i?1:1/r:i?1:1/a)}return Bo.scaleX=r,Bo.scaleY=o,Bo},assignScale(e,t){it(t)?e.scaleX=e.scaleY=t:(e.scaleX=t.x,e.scaleY=t.y)},getFloorScale:(e,t=1)=>qc(Kc(e),t)/e,randInt:bn,randColor:e=>`rgba(${bn(255)},${bn(255)},${bn(255)},${e||1})`};function bn(e){return Math.round(Math.random()*e)}const lt=U1/180,Se=2*U1,X0=U1/2;function Rf(){return{x:0,y:0}}function Pf(){return{x:0,y:0,width:0,height:0}}function Zc(){return{a:1,b:0,c:0,d:1,e:0,f:0}}const{sin:So,cos:Eo,acos:kn,sqrt:To}=Math,{float:y0}=ct,x0={};function y2(){return Object.assign(Object.assign(Object.assign({},{a:1,b:0,c:0,d:1,e:0,f:0}),{x:0,y:0,width:0,height:0}),{scaleX:1,scaleY:1,rotation:0,skewX:0,skewY:0})}const K={defaultMatrix:{a:1,b:0,c:0,d:1,e:0,f:0},defaultWorld:y2(),tempMatrix:{},set(e,t=1,i=0,s=0,n=1,r=0,o=0){e.a=t,e.b=i,e.c=s,e.d=n,e.e=r,e.f=o},get:Zc,getWorld:y2,copy(e,t){e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e.e=t.e,e.f=t.f},translate(e,t,i){e.e+=t,e.f+=i},translateInner(e,t,i,s){e.e+=e.a*t+e.c*i,e.f+=e.b*t+e.d*i,s&&(e.e-=t,e.f-=i)},scale(e,t,i=t){e.a*=t,e.b*=t,e.c*=i,e.d*=i},pixelScale(e,t,i){i||(i=e),i.a=e.a*t,i.b=e.b*t,i.c=e.c*t,i.d=e.d*t,i.e=e.e*t,i.f=e.f*t},scaleOfOuter(e,t,i,s){Rt.toInnerPoint(e,t,x0),Rt.scaleOfInner(e,x0,i,s)},scaleOfInner(e,t,i,s=i){Rt.translateInner(e,t.x,t.y),Rt.scale(e,i,s),Rt.translateInner(e,-t.x,-t.y)},rotate(e,t){const{a:i,b:s,c:n,d:r}=e,o=Eo(t*=lt),a=So(t);e.a=i*o-s*a,e.b=i*a+s*o,e.c=n*o-r*a,e.d=n*a+r*o},rotateOfOuter(e,t,i){Rt.toInnerPoint(e,t,x0),Rt.rotateOfInner(e,x0,i)},rotateOfInner(e,t,i){Rt.translateInner(e,t.x,t.y),Rt.rotate(e,i),Rt.translateInner(e,-t.x,-t.y)},skew(e,t,i){const{a:s,b:n,c:r,d:o}=e;i&&(i*=lt,e.a=s+r*i,e.b=n+o*i),t&&(t*=lt,e.c=r+s*t,e.d=o+n*t)},skewOfOuter(e,t,i,s){Rt.toInnerPoint(e,t,x0),Rt.skewOfInner(e,x0,i,s)},skewOfInner(e,t,i,s=0){Rt.translateInner(e,t.x,t.y),Rt.skew(e,i,s),Rt.translateInner(e,-t.x,-t.y)},multiply(e,t){const{a:i,b:s,c:n,d:r,e:o,f:a}=e;e.a=t.a*i+t.b*n,e.b=t.a*s+t.b*r,e.c=t.c*i+t.d*n,e.d=t.c*s+t.d*r,e.e=t.e*i+t.f*n+o,e.f=t.e*s+t.f*r+a},multiplyParent(e,t,i,s,n){const{e:r,f:o}=e;if(i||(i=e),M(s)&&(s=e.a!==1||e.b||e.c||e.d!==1),s){const{a,b:l,c:h,d:c}=e;i.a=a*t.a+l*t.c,i.b=a*t.b+l*t.d,i.c=h*t.a+c*t.c,i.d=h*t.b+c*t.d,n&&(i.scaleX=t.scaleX*n.scaleX,i.scaleY=t.scaleY*n.scaleY)}else i.a=t.a,i.b=t.b,i.c=t.c,i.d=t.d,n&&(i.scaleX=t.scaleX,i.scaleY=t.scaleY);i.e=r*t.a+o*t.c+t.e,i.f=r*t.b+o*t.d+t.f},divide(e,t){Rt.multiply(e,Rt.tempInvert(t))},divideParent(e,t){Rt.multiplyParent(e,Rt.tempInvert(t))},tempInvert(e){const{tempMatrix:t}=Rt;return Rt.copy(t,e),Rt.invert(t),t},invert(e){const{a:t,b:i,c:s,d:n,e:r,f:o}=e;if(i||s){const a=1/(t*n-i*s);e.a=n*a,e.b=-i*a,e.c=-s*a,e.d=t*a,e.e=-(r*n-o*s)*a,e.f=-(o*t-r*i)*a}else if(t===1&&n===1)e.e=-r,e.f=-o;else{const a=1/(t*n);e.a=n*a,e.d=t*a,e.e=-r*n*a,e.f=-o*t*a}},toOuterPoint(e,t,i,s){const{x:n,y:r}=t;i||(i=t),i.x=n*e.a+r*e.c,i.y=n*e.b+r*e.d,s||(i.x+=e.e,i.y+=e.f)},toInnerPoint(e,t,i,s){const{a:n,b:r,c:o,d:a}=e,l=1/(n*a-r*o),{x:h,y:c}=t;if(i||(i=t),i.x=(h*a-c*o)*l,i.y=(c*n-h*r)*l,!s){const{e:d,f:g}=e;i.x-=(d*a-g*o)*l,i.y-=(g*n-d*r)*l}},setLayout(e,t,i,s,n){const{x:r,y:o,scaleX:a,scaleY:l}=t;if(M(n)&&(n=t.rotation||t.skewX||t.skewY),n){const{rotation:h,skewX:c,skewY:d}=t,g=h*lt,u=Eo(g),p=So(g);if(c||d){const _=c*lt,y=d*lt;e.a=(u+y*-p)*a,e.b=(p+y*u)*a,e.c=(_*u-p)*l,e.d=(u+_*p)*l}else e.a=u*a,e.b=p*a,e.c=-p*l,e.d=u*l}else e.a=a,e.b=0,e.c=0,e.d=l;e.e=r,e.f=o,(i=i||s)&&Rt.translateInner(e,-i.x,-i.y,!s)},getLayout(e,t,i,s){const{a:n,b:r,c:o,d:a,e:l,f:h}=e;let c,d,g,u,p,_=l,y=h;if(r||o){const x=n*a-r*o;if(o&&!s){c=To(n*n+r*r),d=x/c;const v=n/c;g=r>0?kn(v):-kn(v)}else{d=To(o*o+a*a),c=x/d;const v=o/d;g=X0-(a>0?kn(-v):-kn(v))}const m=y0(Eo(g)),w=So(g);c=y0(c),d=y0(d),u=m?y0((o/d+w)/m/lt,9):0,p=m?y0((r/c-w)/m/lt,9):0,g=y0(g/lt)}else c=n,d=a,g=u=p=0;return(t=i||t)&&(_+=t.x*n+t.y*o,y+=t.x*r+t.y*a,i||(_-=t.x,y-=t.y)),{x:_,y,scaleX:c,scaleY:d,rotation:g,skewX:u,skewY:p}},withScale(e,t,i=t){const s=e;if(!t||!i){const{a:n,b:r,c:o,d:a}=e;r||o?i=(n*a-r*o)/(t=To(n*n+r*r)):(t=n,i=a)}return s.scaleX=t,s.scaleY=i,s},reset(e){Rt.set(e)}},Rt=K,{float:Bn}=ct,{toInnerPoint:Ao,toOuterPoint:x2}=K,{sin:m2,cos:w2,abs:v2,sqrt:$c,atan2:Jc,min:Qc,round:Sn}=Math,A={defaultPoint:{x:0,y:0},tempPoint:{},tempRadiusPoint:{},set(e,t=0,i=0){e.x=t,e.y=i},setRadius(e,t,i){e.radiusX=t,e.radiusY=M(i)?t:i},copy(e,t){e.x=t.x,e.y=t.y},copyFrom(e,t,i){e.x=t,e.y=i}
1,round(e,t){e.x=t?Sn(e.x-.5)+.5:Sn(e.x),e.y=t?Sn(e.y-.5)+.5:Sn(e.y)},move(e,t,i){O(t)?(e.x+=t.x,e.y+=t.y):(e.x+=t,e.y+=i)},scale(e,t,i=t){e.x&&(e.x*=t),e.y&&(e.y*=i)},scaleOf(e,t,i,s=i){e.x+=(e.x-t.x)*(i-1),e.y+=(e.y-t.y)*(s-1)},rotate(e,t,i,s=1,n=1){i||(i=s0.defaultPoint);const r=w2(t*=lt),o=m2(t),a=(e.x-i.x)/s,l=(e.y-i.y)/n;e.x=i.x+(a*r-l*o)*s,e.y=i.y+(a*o+l*r)*n},tempToInnerOf(e,t){const{tempPoint:i}=s0;return En(i,e),Ao(t,i,i),i},tempToOuterOf(e,t){const{tempPoint:i}=s0;return En(i,e),x2(t,i,i),i},tempToInnerRadiusPointOf(e,t){const{tempRadiusPoint:i}=s0;return En(i,e),s0.toInnerRadiusPointOf(e,t,i),i},copyRadiusPoint:(e,t,i,s)=>(En(e,t),td(e,i,s),e),toInnerRadiusPointOf(e,t,i){i||(i=e),Ao(t,e,i),i.radiusX=Math.abs(e.radiusX/t.scaleX),i.radiusY=Math.abs(e.radiusY/t.scaleY)},toInnerOf(e,t,i){Ao(t,e,i)},toOuterOf(e,t,i){x2(t,e,i)},toVertical(e,t,i,s){const n=t*lt;e.x+=-Math.sin(n)*i,e.y+=Math.cos(n)*i},getCenter:(e,t)=>({x:e.x+(t.x-e.x)/2,y:e.y+(t.y-e.y)/2}),getCenterX:(e,t)=>e+(t-e)/2,getCenterY:(e,t)=>e+(t-e)/2,getDistance:(e,t)=>Lo(e.x,e.y,t.x,t.y),getDistanceFrom(e,t,i,s){const n=v2(i-e),r=v2(s-t);return $c(n*n+r*r)},getMinDistanceFrom:(e,t,i,s,n,r)=>Qc(Lo(e,t,i,s),Lo(i,s,n,r)),getAngle:(e,t,i,s)=>C2(e,t,i,s)/lt,getRotation:(e,t,i,s)=>(s||(s=t),s0.getRadianFrom(e.x,e.y,t.x,t.y,i.x,i.y,s.x,s.y)/lt),getRadianFrom(e,t,i,s,n,r,o,a){M(o)&&(o=i,a=s);const l=e-i,h=t-s,c=n-o,d=r-a;return Math.atan2(l*d-h*c,l*c+h*d)},getAtan2:(e,t,i=1,s=1)=>Jc((t.y-e.y)/s,(t.x-e.x)/i),getDistancePoint(e,t,i,s,n){const r=C2(e,t);return n&&(e=t),s||(t={}),t.x=e.x+w2(r)*i,t.y=e.y+m2(r)*i,t},toNumberPoints(e){let t=e;return O(e[0])&&(t=[],e.forEach(i=>t.push(i.x,i.y))),t},isSame:(e,t,i)=>i?e.x===t.x&&e.y===t.y:Bn(e.x)===Bn(t.x)&&Bn(e.y)===Bn(t.y),reset(e){e.x=e.y=0}},s0=A,{getDistanceFrom:Lo,copy:En,setRadius:td,getAtan2:C2}=s0;class Q0{constructor(t,i){this.set(t,i)}set(t,i){return O(t)?A.copy(this,t):A.set(this,t,i),this}get(){const{x:t,y:i}=this;return{x:t,y:i}}clone(){return new Q0(this)}move(t,i){return A.move(this,t,i),this}scale(t,i){return A.scale(this,t,i),this}scaleOf(t,i,s){return A.scaleOf(this,t,i,s),this}rotate(t,i,s,n){return A.rotate(this,t,i,s,n),this}rotateOf(t,i,s,n){return A.rotate(this,i,t,s,n),this}getRotation(t,i,s){return A.getRotation(this,t,i,s)}toInnerOf(t,i){return A.toInnerOf(this,t,i),this}toOuterOf(t,i){return A.toOuterOf(this,t,i),this}getCenter(t){return new Q0(A.getCenter(this,t))}getDistance(t){return A.getDistance(this,t)}getDistancePoint(t,i,s,n){return new Q0(A.getDistancePoint(this,t,i,s,n))}getAngle(t,i,s){return A.getAngle(this,t,i,s)}getAtan2(t,i,s){return A.getAtan2(this,t,i,s)}isSame(t,i){return A.isSame(this,t,i)}reset(){return A.reset(this),this}}const Ff=new Q0;class $t{constructor(t,i,s,n,r,o){this.set(t,i,s,n,r,o)}set(t,i,s,n,r,o){return O(t)?K.copy(this,t):K.set(this,t,i,s,n,r,o),this}setWith(t){return K.copy(this,t),this.scaleX=t.scaleX,this.scaleY=t.scaleY,this}get(){const{a:t,b:i,c:s,d:n,e:r,f:o}=this;return{a:t,b:i,c:s,d:n,e:r,f:o}}clone(){return new $t(this)}translate(t,i){return K.translate(this,t,i),this}translateInner(t,i){return K.translateInner(this,t,i),this}scale(t,i){return K.scale(this,t,i),this}scaleWith(t,i){return K.scale(this,t,i),this.scaleX*=t,this.scaleY*=i||t,this}pixelScale(t){return K.pixelScale(this,t),this}scaleOfOuter(t,i,s){return K.scaleOfOuter(this,t,i,s),this}scaleOfInner(t,i,s){return K.scaleOfInner(this,t,i,s),this}rotate(t){return K.rotate(this,t),this}rotateOfOuter(t,i){return K.rotateOfOuter(this,t,i),this}rotateOfInner(t,i){return K.rotateOfInner(this,t,i),this}skew(t,i){return K.skew(this,t,i),this}skewOfOuter(t,i,s){return K.skewOfOuter(this,t,i,s),this}skewOfInner(t,i,s){return K.skewOfInner(this,t,i,s),this}multiply(t){return K.multiply(this,t),this}multiplyParent(t){return K.multiplyParent(this,t),this}divide(t){return K.divide(this,t),this}divideParent(t){return K.divideParent(this,t),this}invert(){return K.invert(this),this}invertWith(){return K.invert(this),this.scaleX=1/this.scaleX,this.scaleY=1/this.scaleY,this}toOuterPoint(t,i,s){K.toOuterPoint(this,t,i,s)}toInnerPoint(t,i,s){K.toInnerPoint(this,t,i,s)}setLayout(t,i,s){return K.setLayout(this,t,i,s),this}getLayout(t,i,s){return K.getLayout(this,t,i,s)}withScale(t,i){return K.withScale(this,t,i)}reset(){return K.reset(this),this}}const Mf=new $t,dn={tempPointBounds:{},setPoint(e,t,i){e.minX=e.maxX=t,e.minY=e.maxY=i},addPoint(e,t,i){e.minX=t<e.minX?t:e.minX,e.minY=i<e.minY?i:e.minY,e.maxX=t>e.maxX?t:e.maxX,e.maxY=i>e.maxY?i:e.maxY},addBounds(e,t,i,s,n){b2(e,t,i),b2(e,t+s,i+n)},copy(e,t){e.minX=t.minX,e.minY=t.minY,e.maxX=t.maxX,e.maxY=t.maxY},addPointBounds(e,t){e.minX=t.minX<e.minX?t.minX:e.minX,e.minY=t.minY<e.minY?t.minY:e.minY,e.maxX=t.maxX>e.maxX?t.maxX:e.maxX,e.maxY=t.maxY>e.maxY?t.maxY:e.maxY},toBounds(e,t){t.x=e.minX,t.y=e.minY,t.width=e.maxX-e.minX,t.height=e.maxY-e.minY}},{addPoint:b2}=dn;var p1,g0;(function(e){e[e.top=0]="top",e[e.right=1]="right",e[e.bottom=2]="bottom",e[e.left=3]="left"})(p1||(p1={})),(function(e){e[e.topLeft=0]="topLeft",e[e.top=1]="top",e[e.topRight=2]="topRight",e[e.right=3]="right",e[e.bottomRight=4]="bottomRight",e[e.bottom=5]="bottom",e[e.bottomLeft=6]="bottomLeft",e[e.left=7]="left",e[e.center=8]="center",e[e["top-left"]=0]="top-left",e[e["top-right"]=2]="top-right",e[e["bottom-right"]=4]="bottom-right",e[e["bottom-left"]=6]="bottom-left"})(g0||(g0={}));const V1=[{x:0,y:0},{x:.5,y:0},{x:1,y:0},{x:1,y:.5},{x:1,y:1},{x:.5,y:1},{x:0,y:1},{x:0,y:.5},{x:.5,y:.5}];
1V1.forEach(e=>e.type="percent");const qt={directionData:V1,tempPoint:{},get:k2,toPoint(e,t,i,s,n,r){const o=k2(e);i.x=o.x,i.y=o.y,o.type==="percent"&&(i.x*=t.width,i.y*=t.height,n&&(r||(i.x-=n.x,i.y-=n.y),o.x&&(i.x-=o.x===1?n.width:o.x===.5?o.x*n.width:0),o.y&&(i.y-=o.y===1?n.height:o.y===.5?o.y*n.height:0))),s||(i.x+=t.x,i.y+=t.y)},getPoint:(e,t,i,s=!0)=>(i||(i={}),qt.toPoint(e,t,i,s),i)};function k2(e){return V(e)?V1[g0[e]]:e}const{toPoint:ed}=qt,G1={toPoint(e,t,i,s,n,r){ed(e,i,s,n,t,r)}},{tempPointBounds:fi,setPoint:B2,addPoint:Tn,toBounds:S2}=dn,{toOuterPoint:An}=K,{float:Ln,fourNumber:id}=ct,{floor:E2,ceil:Rn}=Math;let je,Ue,Oi,Ii;const ei={},Ce={},Wi={},P={tempBounds:Wi,set(e,t=0,i=0,s=0,n=0){e.x=t,e.y=i,e.width=s,e.height=n},copy(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},copyAndSpread(e,t,i,s,n){const{x:r,y:o,width:a,height:l}=t;if(et(i)){const h=id(i);s?xt.set(e,r+h[3],o+h[0],a-h[1]-h[3],l-h[2]-h[0]):xt.set(e,r-h[3],o-h[0],a+h[1]+h[3],l+h[2]+h[0])}else s&&(i=-i),xt.set(e,r-i,o-i,a+2*i,l+2*i);n&&(n==="width"?(e.y=o,e.height=l):(e.x=r,e.width=a))},minX:e=>e.width>0?e.x:e.x+e.width,minY:e=>e.height>0?e.y:e.y+e.height,maxX:e=>e.width>0?e.x+e.width:e.x,maxY:e=>e.height>0?e.y+e.height:e.y,move(e,t,i){e.x+=t,e.y+=i},scroll(e,t){e.x+=t.scrollX,e.y+=t.scrollY},getByMove:(e,t,i)=>(e=Object.assign({},e),xt.move(e,t,i),e),toOffsetOutBounds(e,t,i){t?A2(t,e):t=e,i||(i=e),t.offsetX=xt.maxX(i),t.offsetY=xt.maxY(i),xt.move(t,-t.offsetX,-t.offsetY)},scale(e,t,i=t,s){s||A.scale(e,t,i),e.width*=t,e.height*=i},scaleOf(e,t,i,s=i){A.scaleOf(e,t,i,s),e.width*=i,e.height*=s},tempToOuterOf:(e,t)=>(xt.copy(Wi,e),xt.toOuterOf(Wi,t),Wi),getOuterOf:(e,t)=>(e=Object.assign({},e),xt.toOuterOf(e,t),e),toOuterOf(e,t,i){if(i||(i=e),t.b===0&&t.c===0){const{a:s,d:n,e:r,f:o}=t;s>0?(i.width=e.width*s,i.x=r+e.x*s):(i.width=e.width*-s,i.x=r+e.x*s-i.width),n>0?(i.height=e.height*n,i.y=o+e.y*n):(i.height=e.height*-n,i.y=o+e.y*n-i.height)}else ei.x=e.x,ei.y=e.y,An(t,ei,Ce),B2(fi,Ce.x,Ce.y),ei.x=e.x+e.width,An(t,ei,Ce),Tn(fi,Ce.x,Ce.y),ei.y=e.y+e.height,An(t,ei,Ce),Tn(fi,Ce.x,Ce.y),ei.x=e.x,An(t,ei,Ce),Tn(fi,Ce.x,Ce.y),S2(fi,i)},toInnerOf(e,t,i){i||(i=e),xt.move(i,-t.e,-t.f),xt.scale(i,1/t.a,1/t.d)},getFitMatrix(e,t,i=1){const s=Math.min(i,xt.getFitScale(e,t));return new $t(s,0,0,s,-t.x*s,-t.y*s)},getFitScale(e,t,i){const s=e.width/t.width,n=e.height/t.height;return i?Math.max(s,n):Math.min(s,n)},put(e,t,i="center",s=1,n=!0,r){r||(r=t),V(s)&&(s=xt.getFitScale(e,t,s==="cover")),Wi.width=n?t.width*=s:t.width*s,Wi.height=n?t.height*=s:t.height*s,G1.toPoint(i,Wi,e,r,!0,!0)},getSpread(e,t,i){const s={};return xt.copyAndSpread(s,e,t,!1,i),s},spread(e,t,i){xt.copyAndSpread(e,e,t,!1,i)},shrink(e,t,i){xt.copyAndSpread(e,e,t,!0,i)},ceil(e){const{x:t,y:i}=e;e.x=E2(e.x),e.y=E2(e.y),e.width=t>e.x?Rn(e.width+t-e.x):Rn(e.width),e.height=i>e.y?Rn(e.height+i-e.y):Rn(e.height)},unsign(e){e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)},float(e,t){e.x=Ln(e.x,t),e.y=Ln(e.y,t),e.width=Ln(e.width,t),e.height=Ln(e.height,t)},add(e,t,i){je=e.x+e.width,Ue=e.y+e.height,Oi=t.x,Ii=t.y,i||(Oi+=t.width,Ii+=t.height),je=je>Oi?je:Oi,Ue=Ue>Ii?Ue:Ii,e.x=e.x<t.x?e.x:t.x,e.y=e.y<t.y?e.y:t.y,e.width=je-e.x,e.height=Ue-e.y},addList(e,t){xt.setListWithFn(e,t,void 0,!0)},setList(e,t,i=!1){xt.setListWithFn(e,t,void 0,i)},addListWithFn(e,t,i){xt.setListWithFn(e,t,i,!0)},setListWithFn(e,t,i,s=!1){let n,r=!0;for(let o=0,a=t.length;o<a;o++)n=i?i(t[o],o):t[o],n&&(n.width||n.height)&&(r?(r=!1,s||A2(e,n)):T2(e,n));r&&xt.reset(e)},setPoints(e,t){t.forEach((i,s)=>s===0?B2(fi,i.x,i.y):Tn(fi,i.x,i.y)),S2(fi,e)},setPoint(e,t){xt.set(e,t.x,t.y)},addPoint(e,t){T2(e,t,!0)},getPoints(e){const{x:t,y:i,width:s,height:n}=e;return[{x:t,y:i},{x:t+s,y:i},{x:t+s,y:i+n},{x:t,y:i+n}]},getPoint:(e,t,i=!1,s)=>qt.getPoint(t,e,s,i),hitRadiusPoint:(e,t,i)=>(i&&(t=A.tempToInnerRadiusPointOf(t,i)),t.x>=e.x-t.radiusX&&t.x<=e.x+e.width+t.radiusX&&t.y>=e.y-t.radiusY&&t.y<=e.y+e.height+t.radiusY),hitPoint:(e,t,i)=>(i&&(t=A.tempToInnerOf(t,i)),t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height),hit:(e,t,i)=>
1(i&&(t=xt.tempToOuterOf(t,i)),!(e.y+e.height<t.y||t.y+t.height<e.y||e.x+e.width<t.x||t.x+t.width<e.x)),includes:(e,t,i)=>(i&&(t=xt.tempToOuterOf(t,i)),e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height),getIntersectData(e,t,i){if(i&&(t=xt.tempToOuterOf(t,i)),!xt.hit(e,t))return{x:0,y:0,width:0,height:0};let{x:s,y:n,width:r,height:o}=t;return je=s+r,Ue=n+o,Oi=e.x+e.width,Ii=e.y+e.height,s=s>e.x?s:e.x,n=n>e.y?n:e.y,je=je<Oi?je:Oi,Ue=Ue<Ii?Ue:Ii,r=je-s,o=Ue-n,{x:s,y:n,width:r,height:o}},intersect(e,t,i){xt.copy(e,xt.getIntersectData(e,t,i))},isSame:(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEmpty:e=>e.x===0&&e.y===0&&e.width===0&&e.height===0,hasSize:e=>e.width&&e.height,reset(e){xt.set(e)}},xt=P,{add:T2,copy:A2}=xt;class rt{get minX(){return P.minX(this)}get minY(){return P.minY(this)}get maxX(){return P.maxX(this)}get maxY(){return P.maxY(this)}constructor(t,i,s,n){this.set(t,i,s,n)}set(t,i,s,n){return O(t)?P.copy(this,t):P.set(this,t,i,s,n),this}get(){const{x:t,y:i,width:s,height:n}=this;return{x:t,y:i,width:s,height:n}}clone(){return new rt(this)}move(t,i){return P.move(this,t,i),this}scale(t,i,s){return P.scale(this,t,i,s),this}scaleOf(t,i,s){return P.scaleOf(this,t,i,s),this}toOuterOf(t,i){return P.toOuterOf(this,t,i),this}toInnerOf(t,i){return P.toInnerOf(this,t,i),this}getFitMatrix(t,i){return P.getFitMatrix(this,t,i)}put(t,i,s){P.put(this,t,i,s)}spread(t,i){return P.spread(this,t,i),this}shrink(t,i){return P.shrink(this,t,i),this}ceil(){return P.ceil(this),this}unsign(){return P.unsign(this),this}float(t){return P.float(this,t),this}add(t){return P.add(this,t),this}addList(t){return P.setList(this,t,!0),this}setList(t){return P.setList(this,t),this}addListWithFn(t,i){return P.setListWithFn(this,t,i,!0),this}setListWithFn(t,i){return P.setListWithFn(this,t,i),this}setPoint(t){return P.setPoint(this,t),this}setPoints(t){return P.setPoints(this,t),this}addPoint(t){return P.addPoint(this,t),this}getPoints(){return P.getPoints(this)}getPoint(t,i,s){return P.getPoint(this,t,i,s)}hitPoint(t,i){return P.hitPoint(this,t,i)}hitRadiusPoint(t,i){return P.hitRadiusPoint(this,t,i)}hit(t,i){return P.hit(this,t,i)}includes(t,i){return P.includes(this,t,i)}intersect(t,i){return P.intersect(this,t,i),this}getIntersect(t,i){return new rt(P.getIntersectData(this,t,i))}isSame(t){return P.isSame(this,t)}isEmpty(){return P.isEmpty(this)}reset(){P.reset(this)}}const h0=new rt;class sd{constructor(t,i,s,n,r,o){O(t)?this.copy(t):this.set(t,i,s,n,r,o)}set(t=0,i=0,s=0,n=0,r=0,o=0){this.top=t,this.right=i,this.bottom=s,this.left=n,this.width=r,this.height=o}copy(t){const{top:i,right:s,bottom:n,left:r,width:o,height:a}=t;this.set(i,s,n,r,o,a)}getBoundsFrom(t){const{top:i,right:s,bottom:n,left:r,width:o,height:a}=this;return new rt(r,i,o||t.width-r-s,a||t.height-i-n)}}const ns={number:(e,t)=>O(e)?e.type==="percent"?e.value*t:e.value:e},nd={0:1,1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,".":1,e:1,E:1},{floor:L2,max:R2}=Math,L={toURL(e,t){let i=encodeURIComponent(e);return t==="text"?i="data:text/plain;charset=utf-8,"+i:t==="svg"&&(i="data:image/svg+xml,"+i),i},image:{hitCanvasSize:100,maxCacheSize:4096e3,maxPatternSize:8847360,crossOrigin:"anonymous",isLarge:(e,t,i,s)=>e.width*e.height*(t?t*i:1)>(s||fs.maxCacheSize),isSuperLarge:(e,t,i)=>fs.isLarge(e,t,i,fs.maxPatternSize),getRealURL(e){const{prefix:t,suffix:i}=fs;return!i||e.startsWith("data:")||e.startsWith("blob:")||(e+=(e.includes("?")?"&":"?")+i),t&&e[0]==="/"&&(e=t+e),e},resize(e,t,i,s,n,r,o,a,l,h){const c=R2(L2(t+(s||0)),1),d=R2(L2(i+(n||0)),1);let g,u,p;h&&(p=ns.number(h.offset,h.type==="x"?t:i))&&(h.type==="x"?g=!0:u=!0);const _=L.origin.createCanvas(u?2*c:c,g?2*d:d),y=_.getContext("2d");if(a&&(y.globalAlpha=a),y.imageSmoothingEnabled=o!==!1,fs.canUse(e)){if(r){const x=t/r.width,m=i/r.height;y.setTransform(x,0,0,m,-r.x*x,-r.y*m),y.drawImage(e,0,0,e.width,e.height)}else y.drawImage(e,0,0,t,i);p&&(y.drawImage(_,0,0,c,d,g?p-c:c,g?d:p-d,c,d),y.drawImage(_,0,0,c,d,g?p:c,g?d:p,c,d))}return _},canUse:e=>e&&e.width&&!e.__closed,setPatternTransform(e,t,i){try{t&&e.setTransform&&(e.setTransform(t),t=void 0)}catch{}i&&q.stintSet(i,"transform",t)}}},{image:fs}=L,{randColor:P2}=ct;
1class ot{constructor(t){this.repeatMap={},this.name=t}static get(t){return new ot(t)}static set filter(t){this.filterList=F2(t)}static set exclude(t){this.excludeList=F2(t)}static drawRepaint(t,i){const s=P2();t.fillWorld(i,s.replace("1)",".1)")),t.strokeWorld(i,s)}static drawBounds(t,i,s){const n=ot.showBounds==="hit",r=t.__nowWorld,o=P2();n&&(i.setWorld(r),t.__drawHitPath(i),i.fillStyle=o.replace("1)",".2)"),i.fill()),i.resetTransform(),i.setStroke(o,2),n?i.stroke():i.strokeWorld(r,o)}log(...t){if(zi.enable){if(zi.filterList.length&&zi.filterList.every(i=>i!==this.name)||zi.excludeList.length&&zi.excludeList.some(i=>i===this.name))return;console.log("%c"+this.name,"color:#21ae62",...t)}}tip(...t){zi.enable&&this.warn(...t)}warn(...t){zi.showWarn&&console.warn(this.name,...t)}repeat(t,...i){this.repeatMap[t]||(this.warn("repeat:"+t,...i),this.repeatMap[t]=!0)}error(...t){try{throw new Error}catch(i){console.error(this.name,...t,i)}}}function F2(e){return e?V(e)&&(e=[e]):e=[],e}ot.filterList=[],ot.excludeList=[],ot.showWarn=!0;const zi=ot,rd=ot.get("RunTime"),we={currentId:0,currentName:"",idMap:{},nameMap:{},nameToIdMap:{},start(e,t){const i=di.create(di.RUNTIME);return be.currentId=be.idMap[i]=t?performance.now():Date.now(),be.currentName=be.nameMap[i]=e,be.nameToIdMap[e]=i,i},end(e,t){const i=be.idMap[e],s=be.nameMap[e],n=t?(performance.now()-i)/1e3:Date.now()-i;be.idMap[e]=be.nameMap[e]=be.nameToIdMap[s]=void 0,rd.log(s,n,"ms")},endOfName(e,t){const i=be.nameToIdMap[e];M(i)||be.end(i,t)}},be=we,I4=[],nt={list:{},add(e,...t){this.list[e]=!0,I4.push(...t)},has(e,t){const i=this.list[e];return!i&&t&&this.need(e),i},need(e){console.error("please install and import plugin: "+(e.includes("-x")?"":"@leafer-in/")+e)}};setTimeout(()=>I4.forEach(e=>nt.has(e,!0)));const bt={editor:e=>nt.need("editor")},M2=ot.get("UICreator"),un={list:{},register(e){const{__tag:t}=e.prototype;Pn[t]&&M2.repeat(t),Pn[t]=e},get(e,t,i,s,n,r){if(!Pn[e])return void M2.warn("not register "+e);const o=new Pn[e](t);return M(i)||(o.x=i,s&&(o.y=s),n&&(o.width=n),r&&(o.height=r)),o}},{list:Pn}=un,od=ot.get("EventCreator"),rs={nameList:{},register(e){let t;Object.keys(e).forEach(i=>{t=e[i],V(t)&&(_s[t]&&od.repeat(t),_s[t]=e)})},changeName(e,t){const i=_s[e];if(i){const s=Object.keys(i).find(n=>i[n]===e);s&&(i[s]=t,_s[t]=i)}},has(e){return!!this.nameList[e]},get:(e,...t)=>new _s[e](...t)},{nameList:_s}=rs;class W4{constructor(){this.list=[]}add(t){t.manager=this,this.list.push(t)}get(t){let i;const{list:s}=this;for(let r=0,o=s.length;r<o;r++)if(i=s[r],i.recycled&&i.isSameSize(t))return i.recycled=!1,i.manager||(i.manager=this),i;const n=bt.canvas(t);return this.add(n),n}recycle(t){t.recycled=!0}clearRecycled(){let t;const i=[];for(let s=0,n=this.list.length;s<n;s++)t=this.list[s],t.recycled?t.destroy():i.push(t);this.list=i}clear(){this.list.forEach(t=>{t.destroy()}),this.list.length=0}destroy(){this.clear()}}function At(e){return(t,i)=>{e||(e=i);const s={get(){return this.context[e]},set(n){this.context[e]=n}};i==="strokeCap"&&(s.set=function(n){this.context[e]=n==="none"?"butt":n}),Object.defineProperty(t,i,s)}}const z4=[];function _t(){return(e,t)=>{z4.push(t)}}const ad=[];let Y=class{set blendMode(e){e==="normal"&&(e="source-over"),this.context.globalCompositeOperation=e}get blendMode(){return this.context.globalCompositeOperation}set dashPattern(e){this.context.setLineDash(e||ad)}get dashPattern(){return this.context.getLineDash()}__bindContext(){let e;z4.forEach(t=>{e=this.context[t],e&&(this[t]=e.bind(this.context))}),this.textBaseline="alphabetic"}setTransform(e,t,i,s,n,r){}resetTransform(){}getTransform(){}save(){}restore(){}transform(e,t,i,s,n,r){O(e)?this.context.transform(e.a,e.b,e.c,e.d,e.e,e.f):this.context.transform(e,t,i,s,n,r)}translate(e,t){}scale(e,t){}rotate(e){}fill(e,t){}stroke(e){}clip(e,t){}fillRect(e,t,i,s){}strokeRect(e,t,i,s){}clearRect(e,t,i,s){}drawImage(e,t,i,s,n,r,o,a,l){switch(arguments.length){case 9:if(t<0){const h=-t/s*a;s+=t,t=0,r+=h,a-=h}if(i<0){const h=-i/n*l;n+=i,i=0,o+=h,l-=h}this.context.drawImage(e,t,i,s,n,r,o,a,l);break;case 5:this.context.drawImage(e,t,i,s,n);break;case 3:this.context.drawImage(e,t,i)}}beginPath(){}moveTo(e,t){}lineTo(e,t){}bezierCurveTo(e,t,i,s,n,r){}quadraticCurveTo(e,t,i,s){}closePath(){}arc(e,t,i,s,n,r){}arcTo(e,t,i,s,n){}ellipse(e,t,i,s,n,r,o,a){}rect(e,t,i,s){}roundRect(e,t,i,s,n){}createConicGradient(e,t,i){}createLinearGradient(e,t,i,s){}createPattern(e,t){}createRadialGradient(e,t,i,s,n,r){}fillText(e,t,i,s){}measureText(e){}strokeText(e,t,i,s){}destroy(){this.context=null}};f([At("imageSmoothingEnabled")],Y.prototype,"smooth",void 0),f([At("imageSmoothingQuality")],Y.prototype,"smoothLevel",void 0),f([At("globalAlpha")],Y.prototype,"opacity",void 0),f([At()],Y.prototype,"fillStyle",void 0),f([At()],Y.prototype,"strokeStyle",void 0),f([At("lineWidth")],Y.prototype,"strokeWidth",void 0),f([At("lineCap")],Y.prototype,"strokeCap",void 0),f([At("lineJoin")],Y.prototype,"strokeJoin",void 0),f([At("lineDashOffset")],Y.prototype,"dashOffset",void 0),f([At()],Y.prototype,"miterLimit",void 0),f([At()],Y.prototype,"shadowBlur",void 0),f([At()],Y.prototype,"shadowColor",void 0),f([At()],Y.prototype,"shadowOffsetX",void 0),f([At()],Y.prototype,"shadowOffsetY",void 0),f([At()],Y.prototype,"filter",void 0),f([At()],Y.prototype,"font",void 0),f([At()],Y.prototype,"fontKerning",void 0),f([At()],Y.prototype,"fontStretch",void 0),f([At()],Y.prototype,"fontVariantCaps",void 0),f([At()],Y.prototype,"textAlign",void 0),f([At()],Y.prototype,"textBaseline",void 0),f([At()],Y.prototype,"textRendering",void 0),f([At()],Y.prototype,"wordSpacing",void 0),f([At()],Y.prototype,"letterSpacing",void 0),f([At()],Y.prototype,"direction",void 0),f([_t()],Y.prototype,"setTransform",null),f([_t()],Y.prototype,"resetTransform",null),f([_t()],Y.prototype,"getTransform",null),f([_t()],Y.prototype,"save",null),f([_t()],Y.prototype,"restore",null),f([_t()],Y.prototype,"translate",null),f([_t()],Y.prototype,"scale",null),f([_t()],Y.prototype,"rotate",null),f([_t()],Y.prototype,"fill",null),f([_t()],Y.prototype,"stroke",null),f([_t()],Y.prototype,"clip",null),f([_t()],Y.prototype,"fillRect",null),f([_t()],Y.prototype,"strokeRect",null),f([_t()],Y.prototype,"clearRect",null),f([_t()],Y.prototype,"beginPath",null),f([_t()],Y.prototype,"moveTo",null),f([_t()],Y.prototype,"lineTo",null),f([_t()],Y.prototype,"bezierCurveTo",null),f([_t()],Y.prototype,"quadraticCurveTo",null),f([_t()],Y.prototype,"closePath",null),f([_t()],Y.prototype,"arc",null),f([_t()],Y.prototype,"arcTo",null),f([_t()],Y.prototype,"ellipse",null),f([_t()],Y.prototype,"rect",null),f([_t()],Y.prototype,"roundRect",null),f([_t()],Y.prototype,"createConicGradient",null),f([_t()],Y.prototype,"createLinearGradient",null),f([_t()],Y.prototype,"createPattern",null),f([_t()],Y.prototype,"createRadialGradient",null),f([_t()],Y.prototype,"fillText",null),f([_t()],Y.prototype,"measureText",null),f([_t()],Y.prototype,"strokeText",null);const{copy:ld,multiplyParent:hd,pixelScale:cd}=K,{round:Fn}=Math,dt=new rt,D2=new rt,dd={width:1,height:1,pixelRatio:1},Ie=["width","height","pixelRatio"];class q1 extends Y{get width(){return this.size.width}get height(){return this.size.height}get pixelRatio(){return this.size.pixelRatio}get pixelWidth(){return this.width*this.pixelRatio||0}get pixelHeight(){return this.height*this.pixelRatio||0}get pixelSnap(){return this.config.pixelSnap}set pixelSnap(t){this.config.pixelSnap=t}
1get allowBackgroundColor(){return this.view&&this.parentView}constructor(t,i){super(),this.size={},this.worldTransform={},t||(t=dd),this.manager=i,this.innerId=di.create(di.CANVAS);const{width:s,height:n,pixelRatio:r}=t;this.autoLayout=!s||!n,this.size.pixelRatio=r||L.devicePixelRatio,this.config=t,this.init()}init(){}__createContext(){const{view:t}=this,{contextSettings:i}=this.config;this.context=i?t.getContext("2d",i):t.getContext("2d"),this.__bindContext()}export(t,i){}toBlob(t,i){}toDataURL(t,i){}saveAs(t,i){}resize(t,i=!0){if(this.isSameSize(t))return;let s;this.context&&!this.unreal&&i&&this.width&&(s=this.getSameCanvas(),s.copyWorld(this));const n=this.size;q.copyAttrs(n,t,Ie),Ie.forEach(r=>n[r]||(n[r]=1)),this.bounds=new rt(0,0,this.width,this.height),this.updateViewSize(),this.updateClientBounds(),this.context&&(this.smooth=this.config.smooth,!this.unreal&&s&&(this.clearWorld(s.bounds),this.copyWorld(s),s.recycle()))}updateViewSize(){}updateClientBounds(){}getClientBounds(t){return t&&this.updateClientBounds(),this.clientBounds||this.bounds}startAutoLayout(t,i){}stopAutoLayout(){}setCursor(t){}setWorld(t,i){const{pixelRatio:s,pixelSnap:n}=this,r=this.worldTransform;i&&hd(t,i,r),cd(t,s,r),n&&!t.ignorePixelSnap&&(t.half&&t.half*s%2?(r.e=Fn(r.e-.5)+.5,r.f=Fn(r.f-.5)+.5):(r.e=Fn(r.e),r.f=Fn(r.f))),this.setTransform(r.a,r.b,r.c,r.d,r.e,r.f)}useWorldTransform(t){t&&(this.worldTransform=t);const i=this.worldTransform;i&&this.setTransform(i.a,i.b,i.c,i.d,i.e,i.f)}setStroke(t,i,s,n){i&&(this.strokeWidth=i),t&&(this.strokeStyle=t),s&&this.setStrokeOptions(s,n)}setStrokeOptions(t,i){let{strokeCap:s,strokeJoin:n,dashPattern:r,dashOffset:o,miterLimit:a}=t;i&&(i.strokeCap&&(s=i.strokeCap),i.strokeJoin&&(n=i.strokeJoin),M(i.dashPattern)||(r=i.dashPattern),M(i.dashOffset)||(o=i.dashOffset),i.miterLimit&&(a=i.miterLimit)),this.strokeCap=s,this.strokeJoin=n,this.dashPattern=r,this.dashOffset=o,this.miterLimit=a}saveBlendMode(t){this.savedBlendMode=this.blendMode,this.blendMode=t}restoreBlendMode(){this.blendMode=this.savedBlendMode}hitFill(t,i){return!0}hitStroke(t,i){return!0}hitPixel(t,i,s=1){return!0}setWorldShadow(t,i,s,n){const{pixelRatio:r}=this;this.shadowOffsetX=t*r,this.shadowOffsetY=i*r,this.shadowBlur=s*r,this.shadowColor=n||"black"}setWorldBlur(t){const{pixelRatio:i}=this;this.filter=`blur(${t*i}px)`}copyWorld(t,i,s,n,r){n&&(this.blendMode=n),i?(this.setTempPixelBounds(i,r),s?(this.setTempPixelBounds2(s,r),s=D2):s=dt,this.drawImage(t.view,dt.x,dt.y,dt.width,dt.height,s.x,s.y,s.width,s.height)):this.drawImage(t.view,0,0),n&&(this.blendMode="source-over")}copyWorldToInner(t,i,s,n,r){i.b||i.c?(this.save(),this.resetTransform(),this.copyWorld(t,i,P.tempToOuterOf(s,i),n,r),this.restore()):(n&&(this.blendMode=n),this.setTempPixelBounds(i,r),this.drawImage(t.view,dt.x,dt.y,dt.width,dt.height,s.x,s.y,s.width,s.height),n&&(this.blendMode="source-over"))}copyWorldByReset(t,i,s,n,r,o){this.resetTransform(),this.copyWorld(t,i,s,n,o),r||this.useWorldTransform()}useGrayscaleAlpha(t){if(this.setTempPixelBounds(t,!0,!0),!dt.width||!dt.height)return;let i,s;const{context:n}=this,r=n.getImageData(dt.x,dt.y,dt.width,dt.height),{data:o}=r;for(let a=0,l=o.length;a<l;a+=4)s=.299*o[a]+.587*o[a+1]+.114*o[a+2],(i=o[a+3])&&(o[a+3]=i===255?s:i*(s/255));n.putImageData(r,dt.x,dt.y)}useMask(t,i,s){this.copyWorld(t,i,s,"destination-in")}useEraser(t,i,s){this.copyWorld(t,i,s,"destination-out")}fillWorld(t,i,s,n){s&&(this.blendMode=s),this.fillStyle=i,this.setTempPixelBounds(t,n),this.fillRect(dt.x,dt.y,dt.width,dt.height),s&&(this.blendMode="source-over")}strokeWorld(t,i,s,n){s&&(this.blendMode=s),this.strokeStyle=i,this.setTempPixelBounds(t,n),this.strokeRect(dt.x,dt.y,dt.width,dt.height),s&&(this.blendMode="source-over")}clipWorld(t,i=!0){this.beginPath(),this.setTempPixelBounds(t,i),this.rect(dt.x,dt.y,dt.width,dt.height),this.clip()}clipUI(t){t.windingRule?this.clip(t.windingRule):this.clip()}clearWorld(t,i=!0){this.setTempPixelBounds(t,i),this.clearRect(dt.x,dt.y,dt.width,dt.height)}clear(){const{pixelRatio:t}=this;this.clearRect(0,0,this.width*t+2,this.height*t+2)}setTempPixelBounds(t,i,s){this.copyToPixelBounds(dt,t,i,s)}setTempPixelBounds2(t,i,s){this.copyToPixelBounds(D2,t,i,s)}
1copyToPixelBounds(t,i,s,n){t.set(i),n&&t.intersect(this.bounds),t.scale(this.pixelRatio),s&&t.ceil()}isSameSize(t){return this.width===t.width&&this.height===t.height&&(!t.pixelRatio||this.pixelRatio===t.pixelRatio)}getSameCanvas(t,i){const{size:s,pixelSnap:n}=this,r=this.manager?this.manager.get(s):bt.canvas(Object.assign({},s));return r.save(),t&&(ld(r.worldTransform,this.worldTransform),r.useWorldTransform()),i&&(r.smooth=this.smooth),r.pixelSnap!==n&&(r.pixelSnap=n),r}recycle(t){this.recycled||(this.restore(),t?this.clearWorld(t):this.clear(),this.manager?this.manager.recycle(this):this.destroy())}updateRender(t){}unrealCanvas(){}destroy(){this.manager=this.view=this.parentView=null}}const $e={creator:{},parse(e,t){},convertToCanvasData(e,t){}},H4={N:21,D:22,X:23,G:24,F:25,O:26,P:27,U:28},Yt=Object.assign({M:1,m:10,L:2,l:20,H:3,h:30,V:4,v:40,C:5,c:50,S:6,s:60,Q:7,q:70,T:8,t:80,A:9,a:90,Z:11,z:11,R:12},H4),N4={M:3,m:3,L:3,l:3,H:2,h:2,V:2,v:2,C:7,c:7,S:5,s:5,Q:5,q:5,T:3,t:3,A:8,a:8,Z:1,z:1,N:5,D:9,X:6,G:9,F:5,O:7,P:4,U:6},X4={m:10,l:20,H:3,h:30,V:4,v:40,c:50,S:6,s:60,q:70,T:8,t:80,A:9,a:90},ud=Object.assign(Object.assign({},X4),H4),Vr=Yt,Y4={};for(let e in Vr)Y4[Vr[e]]=e;const gn={};for(let e in Vr)gn[Vr[e]]=N4[e];const j4={drawRoundRect(e,t,i,s,n,r){const o=ct.fourNumber(r,Math.min(s/2,n/2)),a=t+s,l=i+n;o[0]?e.moveTo(t+o[0],i):e.moveTo(t,i),o[1]?e.arcTo(a,i,a,l,o[1]):e.lineTo(a,i),o[2]?e.arcTo(a,l,t,l,o[2]):e.lineTo(a,l),o[3]?e.arcTo(t,l,t,i,o[3]):e.lineTo(t,l),o[0]?e.arcTo(t,i,a,i,o[0]):e.lineTo(t,i)}},{sin:m0,cos:ys,hypot:O2,atan2:I2,ceil:gd,abs:Ro,PI:W2,sqrt:z2,pow:Mn}=Math,{setPoint:Po,addPoint:Dn}=dn,{set:On,toNumberPoints:pd}=A,{M:H2,L:Fo,C:Mo,Q:N2,Z:fd}=Yt,Do={},pe={points(e,t,i,s){let n=pd(t);if(e.push(H2,n[0],n[1]),i&&n.length>5){let r,o,a,l,h,c,d,g,u,p,_,y,x,m,w,v=n.length;const b=i===!0?.5:i;s&&(n=[n[v-2],n[v-1],...n,n[0],n[1],n[2],n[3]],v=n.length);for(let B=2;B<v-2;B+=2)r=n[B-2],o=n[B-1],a=n[B],l=n[B+1],h=n[B+2],c=n[B+3],_=a-r,y=l-o,x=z2(Mn(_,2)+Mn(y,2)),m=z2(Mn(h-a,2)+Mn(c-l,2)),(x||m)&&(w=x+m,x=b*x/w,m=b*m/w,h-=r,c-=o,d=a-x*h,g=l-x*c,B===2?s||e.push(N2,d,g,a,l):(_||y)&&e.push(Mo,u,p,d,g,a,l),u=a+m*h,p=l+m*c);s||e.push(N2,u,p,n[v-2],n[v-1])}else for(let r=2,o=n.length;r<o;r+=2)e.push(Fo,n[r],n[r+1]);s&&e.push(fd)},rect(e,t,i,s,n){$e.creator.path=e,$e.creator.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+n).lineTo(t,i+n).lineTo(t,i)},roundRect(e,t,i,s,n,r){$e.creator.path=[],j4.drawRoundRect($e.creator,t,i,s,n,r),e.push(...$e.convertToCanvasData($e.creator.path,!0))},arcTo(e,t,i,s,n,r,o,a,l,h,c){const d=s-t,g=n-i,u=r-s,p=o-n;let _=I2(g,d),y=I2(p,u);const x=O2(d,g),m=O2(u,p);let w=y-_;if(w<0&&(w+=Se),x<1e-12||m<1e-12||w<1e-12||Ro(w-W2)<1e-12)return e&&e.push(Fo,s,n),l&&(Po(l,t,i),Dn(l,s,n)),c&&On(c,t,i),void(h&&On(h,s,n));const v=d*p-u*g<0,b=v?-1:1,B=a/ys(w/2),S=s+B*ys(_+w/2+X0*b),R=n+B*m0(_+w/2+X0*b);return _-=X0*b,y-=X0*b,j2(e,S,R,a,a,0,_/lt,y/lt,v,l,h,c)},arc:(e,t,i,s,n,r,o,a,l,h)=>j2(e,t,i,s,s,0,n,r,o,a,l,h),ellipse(e,t,i,s,n,r,o,a,l,h,c,d){const g=r*lt,u=m0(g),p=ys(g);let _=o*lt,y=a*lt;_>W2&&(_-=Se),y<0&&(y+=Se);let x=y-_;x<0?x+=Se:x>Se&&(x-=Se),l&&(Ro(a-o)===360?x=-Se:x-=Se);const m=gd(Ro(x/X0)),w=x/m,v=m0(w/4),b=8/3*v*v/m0(w/2);y=_+w;let B,S,R,X,z,T,H,E,D=ys(_),N=m0(_),U=R=p*s*D-u*n*N,Z=X=u*s*D+p*n*N,at=t+R,Q=i+X;e&&e.push(e.length?Fo:H2,at,Q),h&&Po(h,at,Q),d&&On(d,at,Q);for(let ye=0;ye<m;ye++)B=ys(y),S=m0(y),R=p*s*B-u*n*S,X=u*s*B+p*n*S,z=t+U-b*(p*s*N+u*n*D),T=i+Z-b*(u*s*N-p*n*D),H=t+R+b*(p*s*S+u*n*B),E=i+X+b*(u*s*S-p*n*B),e&&e.push(Mo,z,T,H,E,t+R,i+X),h&&Y2(t+U,i+Z,z,T,H,E,t+R,i+X,h,!0),U=R,Z=X,D=B,N=S,_=y,y+=w;c&&On(c,t+R,i+X)},quadraticCurveTo(e,t,i,s,n,r,o){e.push(Mo,(t+2*s)/3,(i+2*n)/3,(r+2*s)/3,(o+2*n)/3,r,o)},toTwoPointBoundsByQuadraticCurve(e,t,i,s,n,r,o,a){Y2(e,t,(e+2*i)/3,(t+2*s)/3,(n+2*i)/3,(r+2*s)/3,n,r,o,a)},toTwoPointBounds(e,t,i,s,n,r,o,a,l,h){const c=[];let d,g,u,p,_,y,x,m,w=e,v=i,b=n,B=o;for(let S=0;S<2;++S)if(S==1&&(w=t,v=s,b=r,B=a),d=-3*w+9*v-9*b+3*B,g=6*w-12*v+6*b,u=3*v-3*w,Math.abs(d)<1e-12){if(Math.abs(g)<1e-12)continue;p=-u/g,0<p&&p<1&&c.push(p)}else x=g*g-4*u*d,m=Math.sqrt(x),x<0||(_=(-g+m)/(2*d),0<_&&_<1&&c.push(_),y=(-g-m)/(2*d),0<y&&y<1&&c.push(y));h?Dn(l,e,t):Po(l,e,t),Dn(l,o,a);for(let S=0,R=c.length;S<R;S++)X2(c[S],e,t,i,s,n,r,o,a,Do),Dn(l,Do.x,Do.y)},getPointAndSet(e,t,i,s,n,r,o,a,l,h){const c=1-e,d=c*c*c,g=3*c*c*e,u=3*c*e*e,p=e*e*e;h.x=d*t+g*s+u*r+p*a,h.y=d*i+g*n+u*o+p*l},getPoint(e,t,i,s,n,r,o,a,l){const h={};return X2(e,t,i,s,n,r,o,a,l,h),h},getDerivative(e,t,i,s,n){const r=1-e;return 3*r*r*(i-t)+6*r*e*(s-i)+3*e*e*(n-s)},cut(e,t,i,s,n,r,o,a,l){if(e<=0)return{left:null,right:[s,n,r,o,a,l]};if(e>=1)return{left:[s,n,r,o,a,l],right:null};const h=1-e,c=t*h+s*e,d=i*h+n*e,g=s*h+r*e,u=n*h+o*e,p=r*h+a*e,_=o*h+l*e,y=c*h+g*e,x=d*h+u*e,m=g*h+p*e,w=u*h+_*e;return{left:[c,d,y,x,y*h+m*e,x*h+w*e],right:[m,w,p,_,a,l]}}},{getPointAndSet:X2,toTwoPointBounds:Y2,ellipse:j2}=pe,{sin:_d,cos:yd,sqrt:U2,atan2:V2}=Math,{ellipse:xd}=pe,md={ellipticalArc(e,t,i,s,n,r,o,a,l,h,c){const d=(l-t)/2,g=(h-i)/2,u=r*lt,p=_d(u),_=yd(u),y=-_*d-p*g,x=-_*g+p*d,m=s*s,w=n*n,v=x*x,b=y*y,B=m*w-m*v-w*b;let S=0;if(B<0){const U=U2(1-B/(m*w));s*=U,n*=U}else S=(o===a?-1:1)*U2(B/(m*v+w*b));const R=S*s*x/n,X=-S*n*y/s,z=V2((x-X)/n,(y-R)/s),T=V2((-x-X)/n,(-y-R)/s);let H=T-z;a===0&&H>0?H-=Se:a===1&&H<0&&(H+=Se);const E=t+d+_*R-p*X,D=i+g+p*R+_*X,N=H<0?1:0;c||L.ellipseToCurve?xd(e,E,D,s,n,r,z/lt,T/lt,N):s!==n||r?e.push(Yt.G,E,D,s,n,r,z/lt,T/lt,N):e.push(Yt.O,E,D,s,z/lt,T/lt,N)}},wd={toCommand:e=>[],toNode:(e,t)=>[]},{M:Oo,m:vd,L:xs,l:Cd,H:bd,h:kd,V:Bd,v:Sd,C:w0,c:Ed,S:Io,s:Td,Q:v0,q:Ad,T:Wo,t:Ld,A:Rd,a:Pd,Z:zo,z:Fd,N:Md,D:Dd,X:Od,G:Id,F:Wd,O:zd,P:Hd,U:Nd}=Yt,{rect:Xd,roundRect:G2,arcTo:Yd,arc:q2,ellipse:K2,quadraticCurveTo:Z2}=pe,{ellipticalArc:jd}=md,Ud=ot.get("PathConvert"),ii={},Mi={current:{dot:0},stringify(e,t){let i,s,n,r=0,o=e.length,a="";for(;r<o;){s=e[r],i=gn[s],a+=s===n?" ":Y4[s];for(let l=1;l<i;l++)a+=ct.float(e[r+l],t),l===i-1||(a+=" ");n=s,r+=i}return a},parse(e,t){let i,s,n,r="";const o=[],a=t?ud:X4;for(let l=0,h=e.length;l<h;l++)s=e[l],nd[s]?(s==="."&&(oe.dot&&(Hi(o,r),r=""),oe.dot++),r==="0"&&s!=="."&&(Hi(o,r),r=""),r+=s):Yt[s]?(r&&(Hi(o,r),r=""),oe.name=Yt[s],oe.length=N4[s],oe.index=0,Hi(o,oe.name),s==="m"?oe.name=Yt.l:s==="M"&&(oe.name=Yt.L),!i&&a[s]&&(i=!0)):s==="-"||s==="+"?n==="e"||n==="E"?r+=s:(r&&Hi(o,r),r=s):r&&(Hi(o,r),r=""),n=s;return r&&Hi(o,r),i?Mi.toCanvasData(o,t):o},toCanvasData(e,t){let i,s,n,r,o,a=0,l=0,h=0,c=0,d=0,g=0,u=0,p=e.length;const _=[];for(;u<p;){switch(n=e[u],n){case vd:e[u+1]+=a,e[u+2]+=l;case Oo:a=d=e[u+1],l=g=e[u+2],_.push(Oo,a,l),u+=3;break;case kd:e[u+1]+=a;case bd:a=e[u+1],_.push(xs,a,l),u+=2;break;case Sd:e[u+1]+=l;case Bd:l=e[u+1],_.push(xs,a,l),u+=2;break;case Cd:e[u+1]+=a,e[u+2]+=l;case xs:a=e[u+1],l=e[u+2],_.push(xs,a,l),u+=3;break;case Td:e[u+1]+=a,e[u+2]+=l,e[u+3]+=a,e[u+4]+=l,n=Io;case Io:o=r===w0||r===Io,h=o?2*a-i:a,c=o?2*l-s:l,i=e[u+1],s=e[u+2],a=e[u+3],l=e[u+4],_.push(w0,h,c,i,s,a,l),u+=5;break;case Ed:e[u+1]+=a,e[u+2]+=l,e[u+3]+=a,e[u+4]+=l,e[u+5]+=a,e[u+6]+=l,n=w0;case w0:i=e[u+3],s=e[u+4],a=e[u+5],l=e[u+6],_.push(w0,e[u+1],e[u+2],i,s,a,l),u+=7;break;case Ld:e[u+1]+=a,e[u+2]+=l,n=Wo;case Wo:o=r===v0||r===Wo,i=o?2*a-i:a,s=o?2*l-s:l,t?Z2(_,a,l,i,s,e[u+1],e[u+2]):_.push(v0,i,s,e[u+1],e[u+2]),a=e[u+1],l=e[u+2],u+=3;break;case Ad:e[u+1]+=a,e[u+2]+=l,e[u+3]+=a,e[u+4]+=l,n=v0;case v0:i=e[u+1],s=e[u+2],t?Z2(_,a,l,i,s,e[u+3],e[u+4]):_.push(v0,i,s,e[u+3],e[u+4]),a=e[u+3],l=e[u+4],u+=5;break;case Pd:e[u+6]+=a,e[u+7]+=l;case Rd:jd(_,a,l,e[u+1],e[u+2],e[u+3],e[u+4],e[u+5],e[u+6],e[u+7],t),a=e[u+6],l=e[u+7],u+=8;break;case Fd:case zo:_.push(zo),a=d,l=g,u++;break;case Md:a=e[u+1],l=e[u+2],t?Xd(_,a,l,e[u+3],e[u+4]):_i(_,e,u,5),u+=5;break;case Dd:a=e[u+1],l=e[u+2],t?G2(_,a,l,e[u+3],e[u+4],[e[u+5],e[u+6],e[u+7],e[u+8]]):_i(_,e,u,9),u+=9;break;case Od:a=e[u+1],l=e[u+2],t?G2(_,a,l,e[u+3],e[u+4],e[u+5]):_i(_,e,u,6),u+=6;break;case Id:K2(t?_:_i(_,e,u,9),e[u+1],e[u+2],e[u+3],e[u+4],e[u+5],e[u+6],e[u+7],e[u+8],null,ii),a=ii.x,l=ii.y,u+=9;break;
1case Wd:t?K2(_,e[u+1],e[u+2],e[u+3],e[u+4],0,0,360,!1):_i(_,e,u,5),a=e[u+1]+e[u+3],l=e[u+2],u+=5;break;case zd:q2(t?_:_i(_,e,u,7),e[u+1],e[u+2],e[u+3],e[u+4],e[u+5],e[u+6],null,ii),a=ii.x,l=ii.y,u+=7;break;case Hd:t?q2(_,e[u+1],e[u+2],e[u+3],0,360,!1):_i(_,e,u,4),a=e[u+1]+e[u+3],l=e[u+2],u+=4;break;case Nd:Yd(t?_:_i(_,e,u,6),a,l,e[u+1],e[u+2],e[u+3],e[u+4],e[u+5],null,ii),a=ii.x,l=ii.y,u+=6;break;default:return Ud.error(`command: ${n} [index:${u}]`,e),_}r=n}return _},objectToCanvasData(e){if(e[0].name.length>1)return wd.toCommand(e);{const t=[];return e.forEach(i=>{switch(i.name){case"M":t.push(Oo,i.x,i.y);break;case"L":t.push(xs,i.x,i.y);break;case"C":t.push(w0,i.x1,i.y1,i.x2,i.y2,i.x,i.y);break;case"Q":t.push(v0,i.x1,i.y1,i.x,i.y);break;case"Z":t.push(zo)}}),t}},copyData(e,t,i,s){for(let n=i,r=i+s;n<r;n++)e.push(t[n])},pushData(e,t){oe.index===oe.length&&(oe.index=1,e.push(oe.name)),e.push(Number(t)),oe.index++,oe.dot=0}},{current:oe,pushData:Hi,copyData:_i}=Mi,{M:Ho,L:Vd,C:Gd,Q:qd,Z:Kd,N:$2,D:Zd,X:$d,G:Jd,F:Qd,O:t6,P:e6,U:i6}=Yt,{getMinDistanceFrom:s6,getRadianFrom:n6}=A,{tan:r6,min:J2,abs:o6}=Math,C0={},U4=ot.get("PointsCurve"),Gt={pointsCurveList:{},beginPath(e){e.length=0},moveTo(e,t,i){e.push(Ho,t,i)},lineTo(e,t,i){e.push(Vd,t,i)},bezierCurveTo(e,t,i,s,n,r,o){e.push(Gd,t,i,s,n,r,o)},quadraticCurveTo(e,t,i,s,n){e.push(qd,t,i,s,n)},closePath(e){e.push(Kd)},rect(e,t,i,s,n){e.push($2,t,i,s,n)},roundRect(e,t,i,s,n,r){if(it(r))e.push($d,t,i,s,n,r);else{const o=ct.fourNumber(r);o?e.push(Zd,t,i,s,n,...o):e.push($2,t,i,s,n)}},ellipse(e,t,i,s,n,r,o,a,l){if(s===n)return Q2(e,t,i,s,o,a,l);Nt(r)?e.push(Qd,t,i,s,n):(Nt(o)&&(o=0),Nt(a)&&(a=360),e.push(Jd,t,i,s,n,r,o,a,l?1:0))},arc(e,t,i,s,n,r,o){Nt(n)?e.push(e6,t,i,s):(Nt(n)&&(n=0),Nt(r)&&(r=360),e.push(t6,t,i,s,n,r,o?1:0))},arcTo(e,t,i,s,n,r,o,a,l){if(!M(o)){const h=s6(o,a,t,i,s,n)/(l?1:2);r=J2(r,J2(h,h*o6(r6(n6(o,a,t,i,s,n)/2))))}e.push(i6,t,i,s,n,r)},drawEllipse(e,t,i,s,n,r,o,a,l){pe.ellipse(null,t,i,s,n,Nt(r)?0:r,Nt(o)?0:o,Nt(a)?360:a,l,null,null,C0),e.push(Ho,C0.x,C0.y),a6(e,t,i,s,n,r,o,a,l)},drawArc(e,t,i,s,n,r,o){pe.arc(null,t,i,s,Nt(n)?0:n,Nt(r)?360:r,o,null,null,C0),e.push(Ho,C0.x,C0.y),Q2(e,t,i,s,n,r,o)},drawPoints(e,t,i,s,n){let r="Q";O(i)&&(r=i.type,i=i.value),Gr[r]||(U4.warn("not found:",r),r="Q"),Gr[r](e,t,i,s,n)}},{ellipse:a6,arc:Q2,pointsCurveList:Gr}=Gt;function V4(e,t){Gr[e]&&U4.repeat(e),Gr[e]=t}V4("Q",pe.points);const{moveTo:l6,lineTo:h6,quadraticCurveTo:c6,bezierCurveTo:d6,closePath:u6,beginPath:g6,rect:p6,roundRect:f6,ellipse:_6,arc:y6,arcTo:x6,drawEllipse:m6,drawArc:w6,drawPoints:v6}=Gt;class G4{set path(t){this.__path=t}get path(){return this.__path}constructor(t){this.set(t)}set(t){return this.__path=t?V(t)?$e.parse(t):t:[],this}beginPath(){return g6(this.__path),this.paint(),this}moveTo(t,i){return l6(this.__path,t,i),this.paint(),this}lineTo(t,i){return h6(this.__path,t,i),this.paint(),this}bezierCurveTo(t,i,s,n,r,o){return d6(this.__path,t,i,s,n,r,o),this.paint(),this}quadraticCurveTo(t,i,s,n){return c6(this.__path,t,i,s,n),this.paint(),this}closePath(){return u6(this.__path),this.paint(),this}rect(t,i,s,n){return p6(this.__path,t,i,s,n),this.paint(),this}roundRect(t,i,s,n,r){return f6(this.__path,t,i,s,n,r),this.paint(),this}ellipse(t,i,s,n,r,o,a,l){return _6(this.__path,t,i,s,n,r,o,a,l),this.paint(),this}arc(t,i,s,n,r,o){return y6(this.__path,t,i,s,n,r,o),this.paint(),this}arcTo(t,i,s,n,r){return x6(this.__path,t,i,s,n,r),this.paint(),this}drawEllipse(t,i,s,n,r,o,a,l){return m6(this.__path,t,i,s,n,r,o,a,l),this.paint(),this}drawArc(t,i,s,n,r,o){return w6(this.__path,t,i,s,n,r,o),this.paint(),this}drawPoints(t,i,s){return v6(this.__path,t,i,s),this.paint(),this}clearPath(){return this.beginPath()}paint(){}}const{M:C6,L:b6,C:k6,Q:B6,Z:S6,N:E6,D:T6,X:A6,G:L6,F:R6,O:P6,P:F6,U:M6}=Yt,D6=ot.get("PathDrawer"),f1={drawPathByData(e,t){if(!t)return;let i,s=0,n=t.length;for(;s<n;)switch(i=t[s],i){case C6:e.moveTo(t[s+1],t[s+2]),s+=3;break;case b6:e.lineTo(t[s+1],t[s+2]),s+=3;break;case k6:e.bezierCurveTo(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5],t[s+6]),s+=7;break;case B6:e.quadraticCurveTo(t[s+1],t[s+2],t[s+3],t[s+4]),s+=5;break;case S6:e.closePath(),s+=1;break;case E6:e.rect(t[s+1],t[s+2],t[s+3],t[s+4]),s+=5;break;case T6:e.roundRect(t[s+1],t[s+2],t[s+3],t[s+4],[t[s+5],t[s+6],t[s+7],t[s+8]]),s+=9;break;case A6:e.roundRect(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]),s+=6;break;case L6:e.ellipse(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]*lt,t[s+6]*lt,t[s+7]*lt,t[s+8]),s+=9;break;case R6:e.ellipse(t[s+1],t[s+2],t[s+3],t[s+4],0,0,Se,!1),s+=5;break;
1case P6:e.arc(t[s+1],t[s+2],t[s+3],t[s+4]*lt,t[s+5]*lt,t[s+6]),s+=7;break;case F6:e.arc(t[s+1],t[s+2],t[s+3],0,Se,!1),s+=4;break;case M6:e.arcTo(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]),s+=6;break;default:return void D6.error(`command: ${i} [index:${s}]`,t)}},drawPathByPoints(e,t,i){}},{M:O6,L:I6,C:tl,Q:el,Z:il,N:W6,D:sl,X:z6,G:H6,F:N6,O:X6,P:Y6,U:j6}=Yt,{toTwoPointBounds:U6,toTwoPointBoundsByQuadraticCurve:V6,arcTo:G6,arc:q6,ellipse:K6}=pe,{addPointBounds:ms,copy:No,addPoint:Z6,setPoint:Xo,addBounds:In,toBounds:$6}=dn,J6=ot.get("PathBounds");let b0,Wn,Yo;const xe={},nl={},si={},K1={toBounds(e,t){K1.toTwoPointBounds(e,nl),$6(nl,t)},toTwoPointBounds(e,t){if(!e||!e.length)return Xo(t,0,0);let i,s,n,r,o,a=0,l=0,h=0;const c=e.length;for(;a<c;)switch(o=e[a],a===0&&(o===il||o===tl||o===el?Xo(t,l,h):Xo(t,e[a+1],e[a+2])),o){case O6:case I6:l=e[a+1],h=e[a+2],Z6(t,l,h),a+=3;break;case tl:n=e[a+5],r=e[a+6],U6(l,h,e[a+1],e[a+2],e[a+3],e[a+4],n,r,xe),ms(t,xe),l=n,h=r,a+=7;break;case el:i=e[a+1],s=e[a+2],n=e[a+3],r=e[a+4],V6(l,h,i,s,n,r,xe),ms(t,xe),l=n,h=r,a+=5;break;case il:a+=1;break;case W6:l=e[a+1],h=e[a+2],In(t,l,h,e[a+3],e[a+4]),a+=5;break;case sl:case z6:l=e[a+1],h=e[a+2],In(t,l,h,e[a+3],e[a+4]),a+=o===sl?9:6;break;case H6:K6(null,e[a+1],e[a+2],e[a+3],e[a+4],e[a+5],e[a+6],e[a+7],e[a+8],xe,si),a===0?No(t,xe):ms(t,xe),l=si.x,h=si.y,a+=9;break;case N6:l=e[a+1],h=e[a+2],Wn=e[a+3],Yo=e[a+4],In(t,l-Wn,h-Yo,2*Wn,2*Yo),l+=Wn,a+=5;break;case X6:q6(null,e[a+1],e[a+2],e[a+3],e[a+4],e[a+5],e[a+6],xe,si),a===0?No(t,xe):ms(t,xe),l=si.x,h=si.y,a+=7;break;case Y6:l=e[a+1],h=e[a+2],b0=e[a+3],In(t,l-b0,h-b0,2*b0,2*b0),l+=b0,a+=4;break;case j6:G6(null,l,h,e[a+1],e[a+2],e[a+3],e[a+4],e[a+5],xe,si),a===0?No(t,xe):ms(t,xe),l=si.x,h=si.y,a+=6;break;default:return void J6.error(`command: ${o} [index:${a}]`,e)}}},{M:zn,L:Hn,Z:k0}=Yt,{getCenterX:Q6,getCenterY:t8}=A,{arcTo:jo}=Gt,{float:Nn}=ct,q4={smooth(e,t,i){let s,n,r,o,a,l,h=0,c=0,d=0,g=0,u=0,p=0,_=0,y=0,x=0;et(t)&&(t=t[0]||0);const m=e.length,w=m===9,v=[];for(;h<m;){switch(s=e[h],s){case zn:l=v.length,l&&n!==k0&&(v[o]=g,v[a]=u),g=y=e[h+1],u=x=e[h+2],h+=3,e[h]===Hn?(p=e[h+1],_=e[h+2],w?v.push(zn,g,u):v.push(zn,Q6(g,p),t8(u,_))):v.push(zn,g,u),o=l+1,a=l+2;break;case Hn:switch(c=e[h+1],d=e[h+2],h+=3,e[h]){case Hn:jo(v,c,d,e[h+1],e[h+2],t,y,x,w);break;case k0:Nn(c)===Nn(g)&&Nn(d)===Nn(u)?(c=y,d=x):jo(v,c,d,g,u,t,y,x,w);break;default:v.push(Hn,c,d)}y=c,x=d;break;case k0:n!==k0&&(jo(v,g,u,p,_,t,y,x,w),v.push(k0)),h+=1;break;default:r=gn[s];for(let b=0;b<r;b++)v.push(e[h+b]);h+=r}n=s}return s!==k0&&(v[o]=g,v[a]=u),v}};function K4(e){return new G4(e)}const ws=K4();$e.creator=K4(),$e.parse=Mi.parse,$e.convertToCanvasData=Mi.toCanvasData;const{drawRoundRect:e8}=j4;function rl(e){(function(t){t&&!t.roundRect&&(t.roundRect=function(i,s,n,r,o){e8(this,i,s,n,r,o)})})(e)}const Te={alphaPixelTypes:["png","webp","svg"],upperCaseTypeMap:{},mimeType:(e,t="image")=>!e||e.startsWith(t)?e:(e==="jpg"&&(e="jpeg"),t+"/"+e),fileType(e){const t=e.split(".");return t[t.length-1]},isOpaqueImage(e){const t=Js.fileType(e);return["jpg","jpeg"].some(i=>i===t)},getExportOptions(e){switch(typeof e){case"object":return e;case"number":return{quality:e};case"boolean":return{blob:e};default:return{}}}},Js=Te;Js.mineType=Js.mimeType,Js.alphaPixelTypes.forEach(e=>Js.upperCaseTypeMap[e]=e.toUpperCase());const i8=ot.get("TaskProcessor");class s8{constructor(t){this.parallel=!0,this.time=1,this.id=di.create(di.TASK),this.task=t}run(){return u0(this,void 0,void 0,function*(){try{if(this.isComplete||this.runing)return;if(this.runing=!0,this.canUse&&!this.canUse())return this.cancel();this.task&&(yield this.task())}catch(t){i8.error(t)}})}complete(){this.isComplete=!0,this.parent=this.task=this.canUse=null}cancel(){this.isCancel=!0,this.complete()}}class _1{get total(){return this.list.length+this.delayNumber}get finishedIndex(){return this.isComplete?0:this.index+this.parallelSuccessNumber}get remain(){return this.isComplete?this.total:this.total-this.finishedIndex}get percent(){const{total:t}=this;let i=0,s=0;for(let n=0;n<t;n++)n<=this.finishedIndex?(s+=this.list[n].time,n===this.finishedIndex&&(i=s)):i+=this.list[n].time;return this.isComplete?1:s/i}constructor(t){this.config={parallel:6},this.list=[],this.running=!1,this.isComplete=!0,this.index=0,this.delayNumber=0,t&&q.assign(this.config,t),this.empty()}add(t,i,s){let n,r,o,a;const l=new s8(t);return l.parent=this,it(i)?a=i:i&&(r=i.parallel,n=i.start,o=i.time,a=i.delay,s||(s=i.canUse)),o&&(l.time=o),r===!1&&(l.parallel=!1),s&&(l.canUse=s),M(a)?this.push(l,n
1):(this.delayNumber++,setTimeout(()=>{this.delayNumber&&(this.delayNumber--,this.push(l,n))},a)),this.isComplete=!1,l}push(t,i){this.list.push(t),i===!1||this.timer||(this.timer=setTimeout(()=>this.start()))}empty(){this.index=0,this.parallelSuccessNumber=0,this.list=[],this.parallelList=[],this.delayNumber=0}start(){this.running||(this.running=!0,this.isComplete=!1,this.run())}pause(){clearTimeout(this.timer),this.timer=null,this.running=!1}resume(){this.start()}skip(){this.index++,this.resume()}stop(){this.isComplete=!0,this.list.forEach(t=>{t.isComplete||t.run()}),this.pause(),this.empty()}run(){this.running&&(this.setParallelList(),this.parallelList.length>1?this.runParallelTasks():this.remain?this.runTask():this.onComplete())}runTask(){const t=this.list[this.index];t?t.run().then(()=>{this.onTask(t),this.index++,t.isCancel?this.runTask():this.nextTask()}).catch(i=>{this.onError(i)}):this.timer=setTimeout(()=>this.nextTask())}runParallelTasks(){this.parallelList.forEach(t=>this.runParallelTask(t))}runParallelTask(t){t.run().then(()=>{this.onTask(t),this.fillParallelTask()}).catch(i=>{this.onParallelError(i)})}nextTask(){this.total===this.finishedIndex?this.onComplete():this.timer=setTimeout(()=>this.run())}setParallelList(){let t;const{config:i,list:s,index:n}=this;this.parallelList=[],this.parallelSuccessNumber=0;let r=n+i.parallel;if(r>s.length&&(r=s.length),i.parallel>1)for(let o=n;o<r&&(t=s[o],t.parallel);o++)this.parallelList.push(t)}fillParallelTask(){let t;const i=this.parallelList;this.parallelSuccessNumber++,i.pop();const s=i.length,n=this.finishedIndex+s;if(i.length){if(!this.running)return;n<this.total&&(t=this.list[n],t&&t.parallel&&(i.push(t),this.runParallelTask(t)))}else this.index+=this.parallelSuccessNumber,this.parallelSuccessNumber=0,this.nextTask()}onComplete(){this.stop(),this.config.onComplete&&this.config.onComplete()}onTask(t){t.complete(),this.config.onTask&&this.config.onTask()}onParallelError(t){this.parallelList.forEach(i=>{i.parallel=!1}),this.parallelList.length=0,this.parallelSuccessNumber=0,this.onError(t)}onError(t){this.pause(),this.config.onError&&this.config.onError(t)}destroy(){this.stop()}}const n8=ot.get("Resource"),hi={tasker:new _1,queue:new _1({parallel:1}),map:{},get isComplete(){return yi.tasker.isComplete},set(e,t){yi.map[e]&&n8.repeat(e),yi.map[e]=t},get:e=>yi.map[e],remove(e){const t=yi.map[e];t&&(t.destroy&&t.destroy(),delete yi.map[e])},loadImage(e,t){return new Promise((i,s)=>{const n=this.setImage(e,e,t);n.load(()=>i(n),r=>s(r))})},setImage(e,t,i){let s;return V(t)?s={url:t}:t.url||(s={url:e,view:t}),s&&(i&&(s.format=i),t=bt.image(s)),yi.set(e,t),t},loadFilm(e,t){},loadVideo(e,t){},destroy(){yi.map={}}},yi=hi,Le={maxRecycled:10,recycledList:[],patternTasker:hi.queue,get(e,t){let i=hi.get(e.url);return i||hi.set(e.url,i=bt[t||"image"](e)),i.use++,i},recycle(e){e.parent&&(e=e.parent),e.use--,setTimeout(()=>{e.use||(L.image.isLarge(e)?e.url&&hi.remove(e.url):(e.clearLevels(),vs.recycledList.push(e)))})},recyclePaint(e){vs.recycle(e.image)},clearRecycled(e){const t=vs.recycledList;(t.length>vs.maxRecycled||e)&&(t.forEach(i=>(!i.use||e)&&i.url&&hi.remove(i.url)),t.length=0)},clearLevels(){},hasAlphaPixel:e=>Te.alphaPixelTypes.some(t=>vs.isFormat(t,e)),isFormat(e,t){if(t.format)return t.format===e;const{url:i}=t;if(i.startsWith("data:")){if(i.startsWith("data:"+Te.mimeType(e)))return!0}else if(i.includes("."+e)||i.includes("."+Te.upperCaseTypeMap[e])||e==="png"&&!i.includes("."))return!0;return!1},destroy(){this.clearRecycled(!0)}},vs=Le,{IMAGE:r8,create:o8}=di;class lo{get tag(){return"Image"}get url(){return this.config.url}get crossOrigin(){const{crossOrigin:t}=this.config;return M(t)?L.image.crossOrigin:t}get completed(){return this.ready||!!this.error}constructor(t){if(this.use=0,this.waitComplete=[],this.innerId=o8(r8),this.config=t||(t={url:""}),t.view){const{view:i}=t;this.setView(i.config?i.view:i)}Le.isFormat("svg",t)&&(this.isSVG=!0),Le.hasAlphaPixel(t)&&(this.hasAlphaPixel=!0)}load(t,i,s){return this.loading||(this.loading=!0,hi.tasker.add(()=>u0(this,void 0,void 0,function*(){return yield L.origin["load"+this.tag](this.getLoadUrl(s),this.crossOrigin,this).then(n=>{s&&this.setThumbView(n),this.setView(n)}).catch(n=>{this.error=n,this.onComplete(!1)})}))),this.waitComplete.push(t,i),this.waitComplete.length-2}unload(t,i){const s=this.waitComplete;if(i){const n=s[t+1];n&&n({type:"stop"})}s[t]=s[t+1]=void 0}setView(t){this.ready=!0,this.width||(this.width=t.width,this.height=t.height,this.view=t),this.onComplete(!0)}onComplete(t){let i;this.waitComplete.forEach((s,n)=>{i=n%2,s&&(t?i||s(this):i&&s(this.error))}),this.waitComplete.length=0,this.loading=!1}getFull(t){return this.view}getCanvas(t,i,s,n,r,o,a,l){if(t||(t=this.width),i||(i=this.height),this.cache){let{params:c,data:d}=this.cache;for(let g in c)if(c[g]!==arguments[g]){d=null;break}if(d)return d}const h=L.image.resize(this.view,t,i,r,o,void 0,a,s,n,l);return this.cache=this.use>1?{data:h,params:arguments}:null,h}getPattern(t,i,s,n){const r=L.canvas.createPattern(t,i);return L.image.setPatternTransform(r,s,n),r}render(t,i,s,n,r,o,a,l,h){t.drawImage(this.view,i,s,n,r)}getLoadUrl(t){return this.url}setThumbView(t){}getThumbSize(t){}getMinLevel(){}getLevelData(t,i,s){}clearLevels(t){}destroyFilter(){}destroy(){this.clearLevels(),this.destroyFilter();const{view:t}=this;t&&t.close&&t.close(),this.config={url:""},this.cache=this.view=null,this.waitComplete.length=0}}class Df extends lo{get tag(){return"Film"}}class Of extends lo{get tag(){return"Video"}}function fe(e,t,i,s){s||(i.configurable=i.enumerable=!0),Object.defineProperty(e,t,i)}function Z1(e,t){return Object.getOwnPropertyDescriptor(e,t)}function Z4(e,t){const i="_"+e;return{get(){const s=this[i];return s??t},set(s){this[i]=s}}}function yt(e,t){return(i,s)=>a8(i,s,e,t&&t(s))}function If(e){return e}function a8(e,t,i,s){fe(e,t,Object.assign({get(){return this.__getAttr(t)},set(r){this.__setAttr(t,r)}},s||{})),Q4(e,t,i)}function mt(e){return yt(e)}function Xn(e,t){return yt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.matrixChanged||this.__layout.matrixChange())}}))}function ol(e,t){return yt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.matrixChanged||this.__layout.matrixChange(),this.__scrollWorld||(this.__scrollWorld={}))}}))}function qr(e){return yt(e,t=>
1({set(i){this.__setAttr(t,i)&&(this.__hasAutoLayout=!!(this.origin||this.around||this.flow),this.__local||this.__layout.createLocal(),_e(this))}}))}function al(e,t){return yt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.scaleChanged||this.__layout.scaleChange())}}))}function Uo(e,t){return yt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.rotationChanged||this.__layout.rotationChange())}}))}function tt(e,t){return yt(e,i=>({set(s){this.__setAttr(i,s,t)&&_e(this)}}))}function l8(e){return yt(e,t=>({set(i){this.__setAttr(t,i)&&(_e(this),this.__.__removeNaturalSize())}}))}function _e(e){e.__layout.boxChanged||e.__layout.boxChange(),e.__hasAutoLayout&&(e.__layout.matrixChanged||e.__layout.matrixChange())}function h8(e){return yt(e,t=>({set(i){const s=this.__;s.__pathInputed!==2&&(s.__pathInputed=i?1:0),i||(s.__pathForRender=void 0),this.__setAttr(t,i),_e(this)}}))}const St=tt;function pn(e,t){return yt(e,i=>({set(s){this.__setAttr(i,s)&&(fn(this),t&&(this.__.__useStroke=!0))}}))}function fn(e){e.__layout.strokeChanged||e.__layout.strokeChange(),e.__.__useArrow&&_e(e)}const Ve=pn;function $1(e){return yt(e,t=>({set(i){this.__setAttr(t,i),this.__layout.renderChanged||this.__layout.renderChange()}}))}function We(e){return yt(e,t=>({set(i){this.__setAttr(t,i)&&$4(this)}}))}function $4(e){e.__layout.surfaceChanged||e.__layout.surfaceChange()}function y1(e){return yt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__;q.stintSet(s,"__useDim",s.dim||s.bright||s.dimskip)}}}))}function c8(e){return yt(e,t=>({set(i){this.__setAttr(t,i)&&(this.__layout.opacityChanged||this.__layout.opacityChange()),this.mask&&J4(this)}}))}function d8(e){return yt(e,t=>({set(i){const s=this.visible;if(s===!0&&i===0){if(this.animationOut)return this.__runAnimation("out",()=>ll(this,t,i,s))}else s===0&&i===!0&&this.animation&&this.__runAnimation("in");ll(this,t,i,s),this.mask&&J4(this)}}))}function J4(e){const{parent:t}=e;if(t){const{__hasMask:i}=t;t.__updateMask(),i!==t.__hasMask&&t.forceUpdate()}}function ll(e,t,i,s){e.__setAttr(t,i)&&(e.__layout.opacityChanged||e.__layout.opacityChange(),s!==0&&i!==0||_e(e))}function u8(e){e.__layout.childrenSortChange(),e.__.flow&&e.__layout.boxChange()}function g8(e){return yt(e,t=>({set(i){this.__setAttr(t,i)&&this.waitParentChange(u8)}}))}function p8(e){e.__updateMask()}function f8(e,t){return yt(e,i=>({set(s){this.__setAttr(i,s)&&(this.__layout.boxChanged||this.__layout.boxChange(),t?this.__updateMask():this.waitParentChange(p8))}}))}function _8(e){e.__updateEraser()}function y8(e){return yt(e,t=>({set(i){this.__setAttr(t,i)&&this.waitParentChange(_8)}}))}function bi(e){return yt(e,t=>({set(i){this.__setAttr(t,i)&&(this.__layout.hitCanvasChanged=!0,this.leafer&&this.leafer.updateCursor())}}))}function x8(e){return yt(e,t=>({set(i){this.__setAttr(t,i),this.leafer&&this.leafer.updateCursor()}}))}function Et(e){return(t,i)=>{fe(t,"__DataProcessor",{get:()=>e})}}function Wf(e){return(t,i)=>{fe(t,"__LayoutProcessor",{get:()=>e})}}function Q4(e,t,i){const s=e.__DataProcessor.prototype,n="_"+t,r=(function(c){return"set"+c.charAt(0).toUpperCase()+c.slice(1)})(t),o=Z4(t,i);if(M(i))o.get=function(){return this[n]};else if(typeof i=="function")o.get=function(){const c=this[n];return c??i(this.__leaf)};else if(O(i)){const c=jc(i);o.get=function(){const d=this[n];return d??(this[n]=c?{}:q.clone(i))}}const a=e.isBranchLeaf;t==="width"?o.get=function(){const c=this[n];if(c==null){const d=this,g=d.__naturalWidth,u=d.__leaf;return!i||u.pathInputed?u.boxBounds.width:g?d._height&&d.__useNaturalRatio?d._height*g/d.__naturalHeight:g:a&&u.children.length?u.boxBounds.width:i}return c}:t==="height"&&(o.get=function(){const c=this[n];if(c==null){const d=this,g=d.__naturalHeight,u=d.__leaf;return!i||u.pathInputed?u.boxBounds.height:g?d._width&&d.__useNaturalRatio?d._width*g/d.__naturalWidth:g:a&&u.children.length?u.boxBounds.height:i}return c});let l,h=s;for(;!l&&h;)l=Z1(h,t),h=h.__proto__;
1l&&l.set&&(o.set=l.set),s[r]&&(o.set=s[r],delete s[r]),fe(s,t,o)}const m8=new ot("rewrite"),Wr=[],w8=["destroy","constructor"];function Me(e){return(t,i)=>{Wr.push({name:t.constructor.name+"."+i,run:()=>{t[i]=e}})}}function p0(){return e=>{tc()}}function tc(e){Wr.length&&(Wr.forEach(t=>{e&&m8.error(t.name,"éå¨Classä¸è£
饰@rewriteAble()"),t.run()}),Wr.length=0)}function ue(e,t){return i=>{var s;(e.prototype?(s=e.prototype,Object.getOwnPropertyNames(s)):Object.keys(e)).forEach(n=>{if(!(w8.includes(n)||t&&t.includes(n)))if(e.prototype){const r=Z1(e.prototype,n);r&&Object.defineProperty(i.prototype,n,r)}else i.prototype[n]=e[n]})}}function Tt(){return e=>{un.register(e)}}function ui(){return e=>{rs.register(e)}}setTimeout(()=>tc(!0));const{copy:B0,toInnerPoint:v8,toOuterPoint:C8,scaleOfOuter:hl,rotateOfOuter:b8,skewOfOuter:k8,multiplyParent:cl,divideParent:dl,getLayout:B8}=K,Pt={},{round:ul}=Math,$={updateAllMatrix(e,t,i){if(t&&e.__hasAutoLayout&&e.__layout.matrixChanged&&(i=!0),E8(e,t,i),e.isBranch){const{children:s}=e;for(let n=0,r=s.length;n<r;n++)S8(s[n],t,i)}},updateMatrix(e,t,i){const s=e.__layout;t?i&&(s.waitAutoLayout=!0,e.__hasAutoLayout&&(s.matrixChanged=!1)):s.waitAutoLayout&&(s.waitAutoLayout=!1),s.matrixChanged&&e.__updateLocalMatrix(),s.waitAutoLayout||e.__updateWorldMatrix()},updateBounds(e,t){const i=e.__layout;i.boundsChanged&&e.__updateLocalBounds(),t&&(i.resized=void 0),i.waitAutoLayout||e.__updateWorldBounds()},updateAllWorldOpacity(e){if(e.__updateWorldOpacity(),e.isBranch){const{children:t}=e;for(let i=0,s=t.length;i<s;i++)gl(t[i])}},updateChange(e){const t=e.__layout;t.stateStyleChanged&&e.updateState(),t.opacityChanged&&gl(e),e.__updateChange(),t.surfaceChanged&&(e.__hasComplex&&Dt.updateComplex(e),t.surfaceChanged=!1)},updateAllChange(e){if(A8(e),e.isBranch){const{children:t}=e;for(let i=0,s=t.length;i<s;i++)T8(t[i])}},worldHittable(e){for(;e;){if(!e.__.hittable)return!1;e=e.parent}return!0},draggable:e=>(e.draggable||e.editable)&&e.hitSelf&&!e.locked,copyCanvasByWorld(e,t,i,s,n,r){s||(s=e.__nowWorld),e.__worldFlipped||L.fullImageShadow?t.copyWorldByReset(i,s,e.__nowWorld,n,r):t.copyWorldToInner(i,s,e.__layout.renderBounds,n)},clip(e,t,i){e.__worldOpacity&&(t.setWorld(e.__nowWorld=e.__getNowWorld(i)),e.__drawRenderPath(t),t.clipUI(e))},renderComplex(e,t,i){},updateComplex(e){},checkComplex(e){},moveWorld(e,t,i=0,s,n){const r=O(t)?Object.assign({},t):{x:t,y:i};s?C8(e.localTransform,r,r,!0):e.parent&&v8(e.parent.scrollWorldTransform,r,r,!0),Dt.moveLocal(e,r.x,r.y,n)},moveLocal(e,t,i=0,s){O(t)&&(i=t.y,t=t.x),t+=e.x,i+=e.y,e.leafer&&e.leafer.config.pointSnap&&(t=ul(t),i=ul(i)),s?e.animate({x:t,y:i},s):(e.x=t,e.y=i)},zoomOfWorld(e,t,i,s,n,r,o){Dt.zoomOfLocal(e,Vo(e,t),i,s,n,r,o)},zoomOfLocal(e,t,i,s=i,n,r,o){const a=e.__localMatrix;if(it(s)||(s&&(r=s),s=i),B0(Pt,a),hl(Pt,t,i,s),Dt.hasHighPosition(e))Dt.setTransform(e,Pt,n,r,o);else{const l=e.x+Pt.e-a.e,h=e.y+Pt.f-a.f;r&&!n?e.animate({x:l,y:h,scaleX:e.scaleX*i,scaleY:e.scaleY*s},r):(e.x=l,e.y=h,e.scaleResize(i,s,n!==!0,o))}},rotateOfWorld(e,t,i,s){Dt.rotateOfLocal(e,Vo(e,t),i,s)},rotateOfLocal(e,t,i,s){const n=e.__localMatrix;B0(Pt,n),b8(Pt,t,i),Dt.hasHighPosition(e)?Dt.setTransform(e,Pt,!1,s):e.set({x:e.x+Pt.e-n.e,y:e.y+Pt.f-n.f,rotation:ct.formatRotation(e.rotation+i)},s)},skewOfWorld(e,t,i,s,n,r){Dt.skewOfLocal(e,Vo(e,t),i,s,n,r)},skewOfLocal(e,t,i,s=0,n,r){B0(Pt,e.__localMatrix),k8(Pt,t,i,s),Dt.setTransform(e,Pt,n,r)},transformWorld(e,t,i,s,n){B0(Pt,e.worldTransform),cl(Pt,t),e.parent&&dl(Pt,e.parent.scrollWorldTransform),Dt.setTransform(e,Pt,i,s,n)},transform(e,t,i,s,n){B0(Pt,e.localTransform),cl(Pt,t),Dt.setTransform(e,Pt,i,s,n)},setTransform(e,t,i,s,n){const r=e.__,o=r.origin&&Dt.getInnerOrigin(e,r.origin),a=B8(t,o,r.around&&Dt.getInnerOrigin(e,r.around));if(Dt.hasOffset(e)&&(a.x-=r.offsetX,a.y-=r.offsetY),i){const l=a.scaleX/e.scaleX,h=a.scaleY/e.scaleY;if(delete a.scaleX,delete a.scaleY,o){P.scale(e.boxBounds,Math.abs(l),Math.abs(h));const c=Dt.getInnerOrigin(e,r.origin);A.move(a,o.x-c.x,o.y-c.y)}e.set(a),e.scaleResize(l,h,!1,n)}else e.set(a,s)},getFlipTransform(e,t){const i={a:1,b:0,c:0,d:1,e:0,f:0},s=t==="x"?1:-1;return hl(i,Dt.getLocalOrigin(e,"center"),-1*s,1*s),i},getLocalOrigin:(e,t)=>A.tempToOuterOf(Dt.getInnerOrigin(e,t),e.localTransform),getInnerOrigin(e,t){const i={};return qt.toPoint(t,e.boxBounds,i),i},getRelativeWorld:(e,t,i)=>(B0(Pt,e.worldTransform),dl(Pt,t.scrollWorldTransform),i?Pt:Object.assign({},Pt)),updateScaleFixedWorld(e){},updateOuterBounds(e){},cacheId(e){},drop(e,t,i,s){e.setTransform(Dt.getRelativeWorld(e,t,!0),s),t.add(e,i)},hasHighPosition:e=>e.origin||e.around||Dt.hasOffset(e),hasOffset:e=>e.offsetX||e.offsetY,hasParent(e,t,i){if(!t)return!1;for(;e;){if(t===e)return!0;
1if(i&&e.__level===i)return;e=e.parent}},animateMove(e,t,i=.3,s){if(t.x||t.y){if(Math.abs(t.x)<1&&Math.abs(t.y)<1)e.move(t);else{const n=t.x*i,r=t.y*i;t.x-=n,t.y-=r,e.move(n,r),L.requestRender(()=>Dt.animateMove(e,t,i,s))}s&&s()}}};function ho(e){return e&&e.config.trackChanges}const Dt=$,{updateAllMatrix:S8,updateMatrix:E8,updateAllWorldOpacity:gl,updateAllChange:T8,updateChange:A8}=Dt;function Vo(e,t){return e.updateLayout(),e.parent?A.tempToInnerOf(t,e.parent.scrollWorldTransform):t}const ds={worldBounds:e=>e.__world,localBoxBounds:e=>e.__.eraser||e.__.visible===0?null:e.__local||e.__layout,localStrokeBounds:e=>e.__.eraser||e.__.visible===0?null:e.__layout.localStrokeBounds,localRenderBounds(e){const{__:t,__layout:i}=e;return t.eraser||t.visible===0?null:i.localOuterBounds||i.localRenderBounds},maskLocalBoxBounds:(e,t)=>Go(e,t)&&e.__localBoxBounds,maskLocalStrokeBounds:(e,t)=>Go(e,t)&&e.__layout.localStrokeBounds,maskLocalRenderBounds(e,t){const{__layout:i}=e;return Go(e,t)&&(i.localOuterBounds||i.localRenderBounds)},excludeRenderBounds:(e,t)=>!(!t.bounds||t.bounds.hit(e.__world,t.matrix))||!(!t.hideBounds||!t.hideBounds.includes(e.__world,t.matrix))};let Cs;function Go(e,t){return t||(Cs=0),e.__.mask&&(Cs=1),Cs<0?null:(Cs&&(Cs=-1),!0)}const{updateBounds:pl}=$,Di={sort:(e,t)=>e.__.zIndex===t.__.zIndex?e.__tempNumber-t.__tempNumber:e.__.zIndex-t.__.zIndex,zIndex(e,t,i){const{children:s}=e,n=s[i-1],r=s[i];n&&r?(t.zIndex<n.zIndex||t.zIndex>r.zIndex)&&(t.zIndex=(n.zIndex+r.zIndex)/2):n?t.zIndex<n.zIndex&&(t.zIndex=n.zIndex+1):r&&t.zIndex>r.zIndex&&(t.zIndex=r.zIndex-1)},pushAllChildBranch(e,t){if(e.__tempNumber=1,e.__.__childBranchNumber){const{children:i}=e;for(let s=0,n=i.length;s<n;s++)(e=i[s]).isBranch&&(e.__tempNumber=1,t.add(e),L8(e,t))}},pushAllParent(e,t){const{keys:i}=t;if(i)for(;e.parent&&M(i[e.parent.innerId]);)t.add(e.parent),e=e.parent;else for(;e.parent;)t.add(e.parent),e=e.parent},pushAllBranchStack(e,t){let i=t.length;const{children:s}=e;for(let n=0,r=s.length;n<r;n++)s[n].isBranch&&t.push(s[n]);for(let n=i,r=t.length;n<r;n++)fl(t[n],t)},updateBounds(e,t){const i=[e];fl(e,i),R8(i,t)},updateBoundsByBranchStack(e,t){let i,s;for(let n=e.length-1;n>-1;n--){i=e[n],s=i.children;for(let r=0,o=s.length;r<o;r++)pl(s[r]);t&&t===i||pl(i)}},move(e,t,i){let s;const{children:n}=e;for(let r=0,o=n.length;r<o;r++)s=(e=n[r]).__world,s.e+=t,s.f+=i,s.x+=t,s.y+=i,e.isBranch&&P8(e,t,i)},scale(e,t,i,s,n,r,o){let a;const{children:l}=e,h=s-1,c=n-1;for(let d=0,g=l.length;d<g;d++)a=(e=l[d]).__world,a.a*=s,a.d*=n,(a.b||a.c)&&(a.b*=s,a.c*=n),a.e===a.x&&a.f===a.y?(a.x=a.e+=(a.e-r)*h+t,a.y=a.f+=(a.f-o)*c+i):(a.e+=(a.e-r)*h+t,a.f+=(a.f-o)*c+i,a.x+=(a.x-r)*h+t,a.y+=(a.y-o)*c+i),a.width*=s,a.height*=n,a.scaleX*=s,a.scaleY*=n,e.isBranch&&F8(e,t,i,s,n,r,o)}},{pushAllChildBranch:L8,pushAllBranchStack:fl,updateBoundsByBranchStack:R8,move:P8,scale:F8}=Di,bs={run(e){if(e&&e.length){const t=e.length;for(let i=0;i<t;i++)e[i]();e.length===t?e.length=0:e.splice(0,t)}}},{getRelativeWorld:_l,updateBounds:M8}=$,{toOuterOf:Yn,getPoints:D8,copy:O8}=P,qo="_localContentBounds",Ko="_worldContentBounds",Zo="_worldBoxBounds",$o="_worldStrokeBounds";class I8{get contentBounds(){return this._contentBounds||this.boxBounds}set contentBounds(t){this._contentBounds=t}get strokeBounds(){return this._strokeBounds||this.boxBounds}get renderBounds(){return this._renderBounds||this.boxBounds}set renderBounds(t){this._renderBounds=t}get localContentBounds(){return Yn(this.contentBounds,this.leaf.__localMatrix,this[qo]||(this[qo]={})),this[qo]}get localStrokeBounds(){return this._localStrokeBounds||this}get localRenderBounds(){return this._localRenderBounds||this}get worldContentBounds(){return Yn(this.contentBounds,this.leaf.__world,this[Ko]||(this[Ko]={})),this[Ko]}get worldBoxBounds(){return Yn(this.boxBounds,this.leaf.__world,this[Zo]||(this[Zo]={})),this[Zo]}get worldStrokeBounds(){return Yn(this.strokeBounds,this.leaf.__world,this[$o]||(this[$o]={})),this[$o]}get a(){return 1}get b(){return 0}get c(){return 0}get d(){return 1}get e(){return this.leaf.__.x}get f(){return this.leaf.__.y}get x(){return this.e+this.boxBounds.x}get y(){return this.f+this.boxBounds.y}get width(){return this.boxBounds.width}get height(){return this.boxBounds.height}constructor(t){this.leaf=t,this.leaf.__local&&(this._localRenderBounds=this._localStrokeBounds=this.leaf.__local),t.__world&&(this.boxBounds={x:0,y:0,width:0,height:0},this.boxChange(),this.matrixChange())}createLocal(){const t=this.leaf.__local={a:1,b:0,c:0,d:1,e:0,f:0,x:0,y:0,width:0,height:0};this._localStrokeBounds||(this._localStrokeBounds=t),this._localRenderBounds||(this._localRenderBounds=t)}update(){const{leaf:t}=this,{leafer:i}=t;if(t.isApp)return M8(t);if(i)i.ready?i.watcher.changed&&i.layouter.layout():i.start();else{let s=t;for(;s.parent&&!s.parent.leafer;)s=s.parent;const n=s;
1if(n.__fullLayouting)return;n.__fullLayouting=!0,L.layout(n),delete n.__fullLayouting}}getTransform(t="world"){this.update();const{leaf:i}=this;switch(t){case"world":return i.__world;case"local":return i.__localMatrix;case"inner":return K.defaultMatrix;case"page":t=i.zoomLayer;default:return _l(i,t)}}getBounds(t,i="world"){switch(this.update(),i){case"world":return this.getWorldBounds(t);case"local":return this.getLocalBounds(t);case"inner":return this.getInnerBounds(t);case"page":i=this.leaf.zoomLayer;default:return new rt(this.getInnerBounds(t)).toOuterOf(this.getTransform(i))}}getInnerBounds(t="box"){switch(t){case"render":return this.renderBounds;case"content":if(this.contentBounds)return this.contentBounds;case"box":return this.boxBounds;case"stroke":return this.strokeBounds}}getLocalBounds(t="box"){switch(t){case"render":return this.localRenderBounds;case"stroke":return this.localStrokeBounds;case"content":if(this.contentBounds)return this.localContentBounds;case"box":return this.leaf.__localBoxBounds}}getWorldBounds(t="box"){switch(t){case"render":return this.leaf.__world;case"stroke":return this.worldStrokeBounds;case"content":if(this.contentBounds)return this.worldContentBounds;case"box":return this.worldBoxBounds}}getLayoutBounds(t,i="world",s){const{leaf:n}=this;let r,o,a,l=this.getInnerBounds(t);switch(i){case"world":r=n.getWorldPoint(l),o=n.__world;break;case"local":const{scaleX:h,scaleY:c,rotation:d,skewX:g,skewY:u}=n.__;a={scaleX:h,scaleY:c,rotation:d,skewX:g,skewY:u},r=n.getLocalPointByInner(l);break;case"inner":r=l,o=K.defaultMatrix;break;case"page":i=n.zoomLayer;default:r=n.getWorldPoint(l,i),o=_l(n,i,!0)}if(a||(a=K.getLayout(o)),O8(a,l),A.copy(a,r),s){const{scaleX:h,scaleY:c}=a,d=Math.abs(h),g=Math.abs(c);d===1&&g===1||(a.scaleX/=d,a.scaleY/=g,a.width*=d,a.height*=g)}return a}getLayoutPoints(t,i="world"){const{leaf:s}=this,n=D8(this.getInnerBounds(t));let r;switch(i){case"world":r=null;break;case"local":r=s.parent;break;case"inner":break;
1case"page":i=s.zoomLayer;default:r=i}return M(r)||n.forEach(o=>s.innerToWorld(o,null,!1,r)),n}shrinkContent(){const{x:t,y:i,width:s,height:n}=this.boxBounds;this._contentBounds={x:t,y:i,width:s,height:n}}spreadStroke(){const{x:t,y:i,width:s,height:n}=this.strokeBounds;this._strokeBounds={x:t,y:i,width:s,height:n},this._localStrokeBounds={x:t,y:i,width:s,height:n},this.renderSpread||this.spreadRenderCancel()}spreadRender(){const{x:t,y:i,width:s,height:n}=this.renderBounds;this._renderBounds={x:t,y:i,width:s,height:n},this._localRenderBounds={x:t,y:i,width:s,height:n}}shrinkContentCancel(){this._contentBounds=void 0}spreadStrokeCancel(){const t=this.renderBounds===this.strokeBounds;this._strokeBounds=this.boxBounds,this._localStrokeBounds=this.leaf.__localBoxBounds,t&&this.spreadRenderCancel()}spreadRenderCancel(){this._renderBounds=this._strokeBounds,this._localRenderBounds=this._localStrokeBounds}boxChange(){this.boxChanged=!0,this.localBoxChanged?this.boundsChanged||(this.boundsChanged=!0):this.localBoxChange(),this.hitCanvasChanged=!0}localBoxChange(){this.localBoxChanged=!0,this.boundsChanged=!0}strokeChange(){this.strokeChanged=!0,this.strokeSpread||(this.strokeSpread=1),this.boundsChanged=!0,this.hitCanvasChanged=!0}renderChange(){this.renderChanged=!0,this.renderSpread||(this.renderSpread=1),this.boundsChanged=!0,this.hitCanvasChanged=!0}scaleChange(){this.scaleChanged=!0,this._scaleOrRotationChange()}rotationChange(){this.rotationChanged=!0,this.affectRotation=!0,this._scaleOrRotationChange()}_scaleOrRotationChange(){this.affectScaleOrRotation=!0,this.matrixChange(),this.leaf.__local||this.createLocal()}matrixChange(){this.matrixChanged=!0,this.localBoxChanged?this.boundsChanged||(this.boundsChanged=!0):this.localBoxChange()}surfaceChange(){this.surfaceChanged=!0}opacityChange(){this.opacityChanged=!0}childrenSortChange(){this.childrenSortChanged||(this.childrenSortChanged=this.affectChildrenSort=!0,this.leaf.forceUpdate("surface"))}destroy(){}}class Xe{constructor(t,i){this.bubbles=!1,this.type=t,i&&(this.target=i)}stopDefault(){this.isStopDefault=!0,this.origin&&L.event.stopDefault(this.origin)}stopNow(){this.isStopNow=!0,this.isStop=!0,this.origin&&L.event.stopNow(this.origin)}stop(){this.isStop=!0,this.origin&&L.event.stop(this.origin)}}class Mt extends Xe{constructor(t,i,s){super(t,i),this.parent=s,this.child=i}}Mt.ADD="child.add",Mt.REMOVE="child.remove",Mt.CREATED="created",Mt.MOUNTED="mounted",Mt.UNMOUNTED="unmounted",Mt.DESTROY="destroy";const x1="property.scroll";class ze extends Xe{constructor(t,i,s,n,r){super(t,i),this.attrName=s,this.oldValue=n,this.newValue=r}}ze.CHANGE="property.change",ze.LEAFER_CHANGE="property.leafer_change",ze.SCROLL=x1;const W8={scrollX:x1,scrollY:x1};class He extends Xe{constructor(t,i){super(t),Object.assign(this,i)}}He.LOAD="image.load",He.LOADED="image.loaded",He.ERROR="image.error";class Ae extends Xe{static checkHas(t,i,s){s==="on"?i===zr?t.__hasWorldEvent=!0:t.__hasLocalEvent=!0:(t.__hasLocalEvent=t.hasEvent(m1)||t.hasEvent(w1)||t.hasEvent(v1),t.__hasWorldEvent=t.hasEvent(zr))}static emitLocal(t){if(t.leaferIsReady){const{resized:i}=t.__layout;i!=="local"&&(t.emit(m1,t),i==="inner"&&t.emit(w1,t)),t.emit(v1,t)}}static emitWorld(t){t.leaferIsReady&&t.emit(zr,t)}}Ae.RESIZE="bounds.resize",Ae.INNER="bounds.inner",Ae.LOCAL="bounds.local",Ae.WORLD="bounds.world";const{RESIZE:m1,INNER:w1,LOCAL:v1,WORLD:zr}=Ae,C1={};[m1,w1,v1,zr].forEach(e=>C1[e]=1);class Qe extends Xe{get bigger(){if(!this.old)return!0;const{width:t,height:i}=this.old;return this.width>=t&&this.height>=i}get smaller(){return!this.bigger}get samePixelRatio(){return!this.old||this.pixelRatio===this.old.pixelRatio}constructor(t,i){O(t)?(super(Qe.RESIZE),Object.assign(this,t)):super(t),this.old=i}static isResizing(t){return this.resizingKeys&&!M(this.resizingKeys[t.innerId])}}Qe.RESIZE="resize";class Ri extends Xe{constructor(t,i){super(t),this.data=i}}Ri.REQUEST="watch.request",Ri.DATA="watch.data";class Lt extends Xe{constructor(t,i,s){super(t),i&&(this.data=i,this.times=s)}}Lt.REQUEST="layout.request",Lt.START="layout.start",Lt.BEFORE="layout.before",Lt.LAYOUT="layout",Lt.AFTER="layout.after",Lt.AGAIN="layout.again",Lt.END="layout.end";class pt extends Xe{constructor(t,i,s,n){super(t),i&&(this.times=i),s&&(this.renderBounds=s,this.renderOptions=n)}}pt.REQUEST="render.request",pt.CHILD_START="render.child_start",pt.CHILD_END="render.child_end",pt.START="render.start",pt.BEFORE="render.before",pt.RENDER="render",pt.AFTER="render.after",pt.AGAIN="render.again",pt.END="render.end",pt.NEXT="render.next";class ut extends Xe{}ut.START="leafer.start",ut.BEFORE_READY="leafer.before_ready",ut.READY="leafer.ready",ut.AFTER_READY="leafer.after_ready",ut.VIEW_READY="leafer.view_ready",ut.VIEW_COMPLETED="leafer.view_completed",ut.STOP="leafer.stop",ut.RESTART="leafer.restart",ut.END="leafer.end",ut.UPDATE_MODE="leafer.update_mode",ut.TRANSFORM="leafer.transform",ut.MOVE="leafer.move",ut.SCALE="leafer.scale",ut.ROTATE="leafer.rotate",ut.SKEW="leafer.skew";const{MOVE:yl,SCALE:xl,ROTATE:z8,SKEW:ml}=ut,H8={x:yl,y:yl,scaleX:xl,scaleY:xl,rotation:z8,skewX:ml,skewY:ml},wl={};class ec{set event(t){this.on(t)}on(t,i,s){if(!i){let c;if(et(t))t.forEach(d=>this.on(d[0],d[1],d[2]));
1else for(let d in t)et(c=t[d])?this.on(d,c[0],c[1]):this.on(d,c);return}let n,r,o;s&&(s==="once"?r=!0:typeof s=="boolean"?n=s:(n=s.capture,r=s.once));const a=Jo(this,n,!0),l=V(t)?t.split(" "):t,h=r?{listener:i,once:r}:{listener:i};l.forEach(c=>{c&&(o=a[c],o?o.findIndex(d=>d.listener===i)===-1&&o.push(h):a[c]=[h],C1[c]&&Ae.checkHas(this,c,"on"))})}off(t,i,s){if(t){const n=V(t)?t.split(" "):t;if(i){let r,o,a;s&&(r=typeof s=="boolean"?s:s!=="once"&&s.capture);const l=Jo(this,r);n.forEach(h=>{h&&(o=l[h],o&&(a=o.findIndex(c=>c.listener===i),a>-1&&o.splice(a,1),o.length||delete l[h],C1[h]&&Ae.checkHas(this,h,"off")))})}else{const{__bubbleMap:r,__captureMap:o}=this;n.forEach(a=>{r&&delete r[a],o&&delete o[a]})}}else this.__bubbleMap=this.__captureMap=void 0}on_(t,i,s,n){return i?this.on(t,s?i=i.bind(s):i,n):et(t)&&t.forEach(r=>this.on(r[0],r[2]?r[1]=r[1].bind(r[2]):r[1],r[3])),{type:t,current:this,listener:i,options:n}}off_(t){if(!t)return;const i=et(t)?t:[t];i.forEach(s=>{s&&(s.listener?s.current.off(s.type,s.listener,s.options):et(s.type)&&s.type.forEach(n=>s.current.off(n[0],n[1],n[3])))}),i.length=0}once(t,i,s,n){if(!i)return et(t)&&t.forEach(r=>this.once(r[0],r[1],r[2],r[3]));O(s)?i=i.bind(s):n=s,this.on(t,i,{once:!0,capture:n})}emit(t,i,s){!i&&rs.has(t)&&(i=rs.get(t,{type:t,target:this,current:this}));const n=Jo(this,s)[t];if(n){let r;for(let o=0,a=n.length;o<a&&!((r=n[o])&&(r.listener(i),r.once&&(this.off(t,r.listener,s),o--,a--),i&&i.isStopNow));o++);}this.syncEventer&&this.syncEventer.emitEvent(i,s)}emitEvent(t,i){t.current=this,this.emit(t.type,t,i)}hasEvent(t,i){if(this.syncEventer&&this.syncEventer.hasEvent(t,i))return!0;const{__bubbleMap:s,__captureMap:n}=this,r=s&&s[t],o=n&&n[t];return!!(M(i)?r||o:i?o:r)}destroy(){this.__captureMap=this.__bubbleMap=this.syncEventer=null}}function Jo(e,t,i){if(t){const{__captureMap:s}=e;return s||(i?e.__captureMap={}:wl)}{const{__bubbleMap:s}=e;return s||(i?e.__bubbleMap={}:wl)}}const{on:N8,on_:X8,off:Y8,off_:j8,once:U8,emit:V8,emitEvent:G8,hasEvent:q8,destroy:K8}=ec.prototype,J1={on:N8,on_:X8,off:Y8,off_:j8,once:U8,emit:V8,emitEvent:G8,hasEvent:q8,destroyEventer:K8},Z8=ot.get("setAttr"),$8={__setAttr(e,t,i){if(this.leaferIsCreated){const s=this.__.__getInput(e);if(!i||g1(t)||M(t)||(Z8.warn(this.innerName,e,t),t=void 0),O(t)||s!==t){if(this.__realSetAttr(e,t),this.isLeafer){this.emitEvent(new ze(ze.LEAFER_CHANGE,this,e,s,t));const r=H8[e];r&&(this.emitEvent(new ut(r,this)),this.emitEvent(new ut(ut.TRANSFORM,this)))}this.emitPropertyEvent(ze.CHANGE,e,s,t);const n=W8[e];return n&&this.emitPropertyEvent(n,e,s,t),!0}return!1}return this.__realSetAttr(e,t),!0},emitPropertyEvent(e,t,i,s){const{leafer:n}=this;if(ho(n)||n.zoomLayer===this){const r=new ze(e,this,t,i,s);this.isLeafer||this.hasEvent(e)&&this.emitEvent(r),n.emitEvent(r)}else n.watcher.add(this)},__realSetAttr(e,t){const i=this.__;i[e]=t,this.__proxyData&&this.setProxyAttr(e,t),i.normalStyle&&(this.lockNormalStyle||M(i.normalStyle[e])||(i.normalStyle[e]=t))},__getAttr(e){return this.__proxyData?this.getProxyAttr(e):this.__.__get(e)}},{setLayout:J8,multiplyParent:Q8,translateInner:vl,defaultWorld:t7}=K,{toPoint:e7,tempPoint:Qo}=qt,i7={__updateWorldMatrix(){const{parent:e,__layout:t,__world:i,__scrollWorld:s,__:n}=this;Q8(this.__local||t,e?e.__scrollWorld||e.__world:t7,i,!!t.affectScaleOrRotation,n),s&&vl(Object.assign(s,i),n.scrollX,n.scrollY),t.scaleFixed&&$.updateScaleFixedWorld(this)},__updateLocalMatrix(){if(this.__local){const e=this.__layout,t=this.__local,i=this.__;e.affectScaleOrRotation&&(e.scaleChanged&&(e.resized||(e.resized="scale"))||e.rotationChanged)&&(J8(t,i,null,null,e.affectRotation),e.scaleChanged=e.rotationChanged=void 0),t.e=i.x+i.offsetX,t.f=i.y+i.offsetY,(i.around||i.origin)&&(e7(i.around||i.origin,e.boxBounds,Qo),vl(t,-Qo.x,-Qo.y,!i.around))}this.__layout.matrixChanged=void 0}},{updateMatrix:s7,updateAllMatrix:Cl}=$,{updateBounds:bl}=Di,{toOuterOf:jn,copyAndSpread:kl,copy:n7}=P,{toBounds:r7}=K1,o7={__updateWorldBounds(){const{__layout:e,__world:t}=this;jn(e.renderBounds,t,t),this.__hasComplex&&$.checkComplex(this),e.resized&&(e.resized==="inner"&&this.__onUpdateSize(),this.__hasLocalEvent&&Ae.emitLocal(this),e.resized=void 0),this.__hasWorldEvent&&Ae.emitWorld(this)},__updateLocalBounds(){const e=this.__layout,t=this.__;e.boxChanged&&(t.__pathInputed||this.__updatePath(),this.__updateRenderPath(),this.__updateBoxBounds(),e.resized="inner"),e.localBoxChanged&&(this.__local&&this.__updateLocalBoxBounds(),e.localBoxChanged=void 0,e.strokeSpread&&!e.strokeChanged&&(e.strokeChanged=!!e.boxChanged||2),e.render
1Spread&&!e.renderChanged&&(e.renderChanged=!!e.boxChanged||2),this.parent&&this.parent.__layout.boxChange()),e.boxChanged=void 0,e.strokeChanged&&(e.strokeChanged===2?this.__updateLocalStrokeBounds():(e.strokeSpread=this.__updateStrokeSpread(),e.strokeSpread?(e.strokeBounds===e.boxBounds&&e.spreadStroke(),this.__updateStrokeBounds(),this.__updateLocalStrokeBounds()):e.spreadStrokeCancel(),e.resized="inner",(e.renderSpread||e.strokeSpread!==e.strokeBoxSpread)&&(e.renderChanged=!0)),e.strokeChanged=void 0,this.parent&&this.parent.__layout.strokeChange()),e.renderChanged&&(e.renderChanged===2?this.__updateLocalRenderBounds():(e.renderSpread=this.__updateRenderSpread(),e.renderSpread?(e.renderBounds!==e.boxBounds&&e.renderBounds!==e.strokeBounds||e.spreadRender(),this.__updateRenderBounds(),this.__updateLocalRenderBounds()):e.spreadRenderCancel()),e.renderChanged=void 0,this.parent&&this.parent.__layout.renderChange()),e.outerScale&&$.updateOuterBounds(this),e.resized||(e.resized="local"),e.boundsChanged=void 0},__updateLocalBoxBounds(){this.__hasMotionPath&&this.__updateMotionPath(),this.__hasAutoLayout&&this.__updateAutoLayout(),jn(this.__layout.boxBounds,this.__local,this.__local)},__updateLocalStrokeBounds(){jn(this.__layout.strokeBounds,this.__localMatrix,this.__layout.localStrokeBounds)},__updateLocalRenderBounds(){jn(this.__layout.renderBounds,this.__localMatrix,this.__layout.localRenderBounds)},__updateBoxBounds(e,t){const i=this.__layout.boxBounds,s=this.__;s.__usePathBox?r7(s.path,i):(i.x=0,i.y=0,i.width=s.width,i.height=s.height)},__updateAutoLayout(){this.__layout.matrixChanged=!0,this.isBranch?(this.__extraUpdate(),this.__.flow?(this.__layout.childrenSortChanged&&this.__updateSortChildren(),this.__layout.boxChanged&&this.__updateFlowLayout(),Cl(this),bl(this,this),this.__.__autoSide&&this.__updateBoxBounds(!0)):(Cl(this),bl(this,this))):s7(this)},__updateNaturalSize(){const{__:e,__layout:t}=this;e.__naturalWidth=t.boxBounds.width,e.__naturalHeight=t.boxBounds.height},__updateStrokeBounds(e){const t=this.__layout;kl(t.strokeBounds,t.boxBounds,t.strokeBoxSpread)},__updateRenderBounds(e){const t=this.__layout,{renderSpread:i}=t;it(i)&&i<=0?n7(t.renderBounds,t.strokeBounds):kl(t.renderBounds,t.boxBounds,i)}},a7={__render(e,t){if(t.shape)return this.__renderShape(e,t);if((!t.cellList||t.cellList.has(this))&&this.__worldOpacity){const i=this.__;if(i.bright&&!t.topRendering)return t.topList.add(this);
1if(e.setWorld(this.__nowWorld=this.__getNowWorld(t)),e.opacity=t.ignoreOpacity?1:t.dimOpacity&&!i.dimskip?i.opacity*t.dimOpacity:i.opacity,this.__.__single){if(i.eraser==="path")return this.__renderEraser(e,t);const s=e.getSameCanvas(!0,!0);this.__draw(s,t,e),$.copyCanvasByWorld(this,e,s,this.__nowWorld,i.__blendMode,!0),s.recycle(this.__nowWorld)}else this.__draw(e,t);ot.showBounds&&ot.drawBounds(this,e,t)}},__renderShape(e,t){this.__worldOpacity&&(e.setWorld(this.__nowWorld=this.__getNowWorld(t)),this.__drawShape(e,t))},__clip(e,t){$.clip(this,e,t)},__updateWorldOpacity(){this.__worldOpacity=this.__.visible?this.parent?this.parent.__worldOpacity*this.__.opacity:this.__.opacity:0,this.__layout.opacityChanged&&(this.__layout.opacityChanged=!1)}},{excludeRenderBounds:Bl}=ds,{hasSize:l7}=P,h7={__updateChange(){this.__layout.childrenSortChanged&&this.__updateSortChildren(),this.__.__checkSingle()},__render(e,t){const i=this.__nowWorld=this.__getNowWorld(t);if(this.__worldOpacity&&l7(i)){const s=this.__;if(s.__useDim){if(s.bright&&!t.topRendering)return t.topList.add(this);s.dim?t.dimOpacity=s.dim===!0?.2:s.dim:s.dimskip&&t.dimOpacity&&(t.dimOpacity=0)}if(s.__single&&!this.isBranchLeaf){if(s.eraser==="path")return this.__renderEraser(e,t);const n=e.getSameCanvas(!1,!0);this.__renderBranch(n,t),e.opacity=t.ignoreOpacity?1:t.dimOpacity?s.opacity*t.dimOpacity:s.opacity,e.copyWorldByReset(n,i,i,s.__blendMode,!0),n.recycle(i)}else this.__renderBranch(e,t)}},__renderBranch(e,t){if(this.__hasMask)this.__renderMask(e,t);else{let i;const{children:s}=this;for(let n=0,r=s.length;n<r;n++)i=s[n],Bl(i,t)||(i.__hasComplex?$.renderComplex(i,e,t):i.__render(e,t));this.__hasMask===0&&this.__rerenderMask(e,t)}},__clip(e,t){if(this.__worldOpacity){const{children:i}=this;for(let s=0,n=i.length;s<n;s++)Bl(i[s],t)||i[s].__clip(e,t)}}},{LEAF:c7,create:d7}=di,{stintSet:Sl}=q,{toInnerPoint:u7,toOuterPoint:g7,multiplyParent:p7}=K,{toOuterOf:El}=P,{copy:Tl,move:Al}=A,{getScaleFixedData:f7}=ct,{moveLocal:_7,zoomOfLocal:y7,rotateOfLocal:x7,skewOfLocal:m7,moveWorld:Ll,zoomOfWorld:w7,rotateOfWorld:v7,skewOfWorld:C7,transform:Rl,transformWorld:b7,setTransform:k7,getFlipTransform:B7,getLocalOrigin:ta,getRelativeWorld:S7,drop:E7}=$;let os=class{get tag(){return this.__tag}set tag(e){}get __tag(){return"Leaf"}get innerName(){return this.__.name||this.tag+this.innerId}get __DataProcessor(){return O4}get __LayoutProcessor(){return I8}get leaferIsCreated(){return this.leafer&&this.leafer.created}get leaferIsReady(){return this.leafer&&this.leafer.ready}get isLeafer(){return!1}get isFrame(){return!1}get isBranch(){return!1}get isBranchLeaf(){return!1}get __localMatrix(){return this.__local||this.__layout}get __localBoxBounds(){return this.__local||this.__layout}get worldTransform(){return this.__layout.getTransform("world")}get localTransform(){return this.__layout.getTransform("local")}get scrollWorldTransform(){return this.updateLayout(),this.__scrollWorld||this.__world}get boxBounds(){return this.getBounds("box","inner")}get renderBounds(){return this.getBounds("render","inner")}get worldBoxBounds(){return this.getBounds("box")}get worldStrokeBounds(){return this.getBounds("stroke")}get worldRenderBounds(){return this.getBounds("render")}get worldOpacity(){return this.updateLayout(),this.__worldOpacity}get __worldFlipped(){return this.__world.scaleX<0||this.__world.scaleY<0}get __onlyHitMask(){return this.__hasMask&&!this.__.hitChildren}get __ignoreHitWorld(){return(this.__hasMask||this.__hasEraser)&&this.__.hitChildren}get __inLazyBounds(){return this.leaferIsCreated&&this.leafer.lazyBounds.hit(this.__world)}get pathInputed(){return this.__.__pathInputed}set event(e){this.on(e)}constructor(e){this.innerId=d7(c7),this.reset(e),this.__bubbleMap&&this.__emitLifeEvent(Mt.CREATED)}reset(e){this.leafer&&this.leafer.forceRender(this.__world),e!==0&&(this.__world={a:1,b:0,c:0,d:1,e:0,f:0,x:0,y:0,width:0,height:0,scaleX:1,scaleY:1},e!==null&&(this.__local={a:1,b:0,c:0,d:1,e:0,f:0,x:0,y:0,width:0,height:0})),this.__worldOpacity=1,this.__=new this.__DataProcessor(this),this.__layout=new this.__LayoutProcessor(this),this.__level&&this.resetCustom(),e&&(e.__&&(e=e.toJSON()),e.children?this.set(e):Object.assign(this,e))}resetCustom(){this.__hasMask=this.__hasEraser=null,this.forceUpdate()}waitParentChange(e){this.__parentChange||(this.__parentChange=[]),this.__parentChange.includes(e)||this.__parentChange.push(e),this.parent&&e(this.parent,this)}waitParent(e,t){t&&(e=e.bind(t)),this.parent?e():this.on(Mt.ADD,e,"once")}waitLeafer(e,t){t&&(e=e.bind(t)),this.leafer?e():this.on(Mt.MOUNTED,e,"once")}nextRender(e,t,i){this.leafer?this.leafer.nextRender(e,t,i):this.waitLeafer(()=>this.leafer.nextRender(e,t,i))}removeNextRender(e){this.nextRender(e,null,"off")}__bindLeafer(e){if(this.isLeafer&&e!==null&&(e=this),this.leafer&&!e&&this.leafer.leafs--,this.leafer=e,e?(e.leafs++,this.__level=this.parent?this.parent.__level+1:1,this.animation&&this.__runAnimation("in"),this.__bubbleMap&&this.__emitLifeEvent(Mt.MOUNTED),e.cacheId&&$.cacheId(this)):this.__emitLifeEvent(Mt.UNMOUNTED),this.isBranch){const{children:t}=this;for(let i=0,s=t.length;i<s;i++)t[i].__bindLeafer(e)}}__bindFrame(e){if(this.frame=e,this.isBranch){const{children:t}=this;for(let i=0,s=t.length;i<s;i++)t[i].__bindFrame(e)}}setAttr(e,t){this[e]=t}getAttr(e){return this[e]}getComputedAttr(e){return this.__[e]}
1toJSON(e){return e&&this.__layout.update(),this.__.__getInputData(null,e)}toString(e){return JSON.stringify(this.toJSON(e))}scaleResize(e,t=e,i,s){this.scaleX*=e,this.scaleY*=t}updateLayout(){this.__layout.update()}forceUpdate(e){let t;if(e&&e!=="bounds"?e==="surface"?($4(this),t=!0):e==="stroke"&&(fn(this),t=!0):(_e(this),t=!0),t){const{leafer:s}=this;return s&&s.watcher&&s.watcher.__onAttrChange({target:this})}const i=this.__.__getInput(e);this.__[e]=M(i)?null:void 0,this[e]=i}forceRender(e,t){this.forceUpdate("surface")}__extraUpdate(){this.leaferIsReady&&this.leafer.layouter.addExtra(this)}__updateEraser(){this.__hasEraser=this.children.some(e=>e.__.eraser)}__renderEraser(e,t){e.save(),this.__clip(e,t);const{renderBounds:i}=this.__layout;e.clearRect(i.x,i.y,i.width,i.height),e.restore()}__updateMask(){const e=this.children.some(t=>t.__.mask&&t.__.visible&&t.__.opacity);this.__hasMask=this.__.maskskip?e&&0:e}__getNowWorld(e){if(e.matrix){this.__cameraWorld||(this.__cameraWorld={});const t=this.__cameraWorld,i=this.__world;return p7(i,e.matrix,t,void 0,i),El(this.__layout.renderBounds,t,t),Sl(t,"half",i.half),Sl(t,"ignorePixelSnap",i.ignorePixelSnap),t}return this.__world}getClampRenderScale(){let{scaleX:e}=this.__nowWorld||this.__world;return e<0&&(e=-e),e>1?e:1}getRenderScaleData(e,t,i=!0){return f7(Le.patternLocked?this.__world:this.__nowWorld||this.__world,t,i,e)}getTransform(e){return this.__layout.getTransform(e||"local")}getBounds(e,t){return this.__layout.getBounds(e,t)}getLayoutBounds(e,t,i){return this.__layout.getLayoutBounds(e,t,i)}getLayoutPoints(e,t){return this.__layout.getLayoutPoints(e,t)}getWorldBounds(e,t,i){const s=t?S7(this,t):this.worldTransform,n=i?e:{};return El(e,s,n),n}worldToLocal(e,t,i,s){this.parent?this.parent.worldToInner(e,t,i,s):t&&Tl(t,e)}localToWorld(e,t,i,s){this.parent?this.parent.innerToWorld(e,t,i,s):t&&Tl(t,e)}worldToInner(e,t,i,s){s&&(s.innerToWorld(e,t,i),e=t||e),u7(this.worldTransform,e,t,i)}innerToWorld(e,t,i,s){g7(this.worldTransform,e,t,i),s&&s.worldToInner(t||e,null,i)}getBoxPoint(e,t,i,s){const n=this.getInnerPoint(e,t,i,s);return i?n:this.getBoxPointByInner(n,null,null,!0)}getBoxPointByInner(e,t,i,s){const n=s?e:Object.assign({},e),{x:r,y:o}=this.boxBounds;return Al(n,-r,-o),n}getInnerPoint(e,t,i,s){const n=s?e:{};return this.worldToInner(e,n,i,t),n}getInnerPointByBox(e,t,i,s){const n=s?e:Object.assign({},e),{x:r,y:o}=this.boxBounds;return Al(n,r,o),n}getInnerPointByLocal(e,t,i,s){return this.getInnerPoint(e,this.parent,i,s)}getLocalPoint(e,t,i,s){const n=s?e:{};return this.worldToLocal(e,n,i,t),n}getLocalPointByInner(e,t,i,s){return this.getWorldPoint(e,this.parent,i,s)}getPagePoint(e,t,i,s){return(this.leafer?this.leafer.zoomLayer:this).getInnerPoint(e,t,i,s)}getWorldPoint(e,t,i,s){const n=s?e:{};return this.innerToWorld(e,n,i,t),n}getWorldPointByBox(e,t,i,s){return this.getWorldPoint(this.getInnerPointByBox(e,null,null,s),t,i,!0)}getWorldPointByLocal(e,t,i,s){const n=s?e:{};return this.localToWorld(e,n,i,t),n}getWorldPointByPage(e,t,i,s){return(this.leafer?this.leafer.zoomLayer:this).getWorldPoint(e,t,i,s)}setTransform(e,t,i,s){k7(this,e,t,i,s)}transform(e,t,i,s){Rl(this,e,t,i,s)}move(e,t,i){_7(this,e,t,i)}moveInner(e,t,i){Ll(this,e,t,!0,i)}scaleOf(e,t,i,s,n,r){y7(this,ta(this,e),t,i,s,n,r)}rotateOf(e,t,i){x7(this,ta(this,e),t,i)}skewOf(e,t,i,s,n){m7(this,ta(this,e),t,i,s,n)}transformWorld(e,t,i,s){b7(this,e,t,i,s)}moveWorld(e,t,i){Ll(this,e,t,!1,i)}scaleOfWorld(e,t,i,s,n,r){w7(this,e,t,i,s,n,r)}rotateOfWorld(e,t){v7(this,e,t)}skewOfWorld(e,t,i,s,n){C7(this,e,t,i,s,n)}flip(e,t){Rl(this,B7(this,e),!1,t)}remove(e,t){this.parent&&this.parent.remove(this,t)}dropTo(e,t,i){E7(this,e,t,i)}static changeAttr(e,t,i){i?this.addAttr(e,t,i):Q4(this.prototype,e,t)}static addAttr(e,t,i,s){i||(i=tt),i(t,s)(this.prototype,e)}__emitLifeEvent(e){this.hasEvent(e)&&this.emitEvent(new Mt(e,this,this.parent))}destroy(){this.destroyed||(this.parent&&this.remove(),this.children&&this.clear(),this.__emitLifeEvent(Mt.DESTROY),this.__.destroy(),this.__layout.destroy(),this.destroyEventer(),this.destroyed=!0)}};os=f([ue($8),ue(i7),ue(o7),ue(J1),ue(a7)],os);const{setListWithFn:ea}=P,{sort:T7}=Di,{localBoxBounds:A7,localStrokeBounds:L7,localRenderBounds:R7,maskLocalBoxBounds:P7,maskLocalStrokeBounds:F7,maskLocalRenderBounds:M7}=ds,D7=new ot("Branch");let b1=class extends os{__updateStrokeSpread(){const{children:e}=this;for(let t=0,i=e.length;t<i;t++)if(e[t].__layout.strokeSpread)return 1;return 0}__updateRenderSpread(){let e;const{children:t}=this;for(let i=0,s=t.length;i<s;
1i++)if(e=t[i].__layout,e.renderSpread||e.localOuterBounds)return 1;return 0}__updateBoxBounds(e,t){ea(t||this.__layout.boxBounds,this.children,this.__hasMask?P7:A7)}__updateStrokeBounds(e){ea(e||this.__layout.strokeBounds,this.children,this.__hasMask?F7:L7)}__updateRenderBounds(e){ea(e||this.__layout.renderBounds,this.children,this.__hasMask?M7:R7)}__updateSortChildren(){let e;const{children:t}=this;if(t.length>1){for(let i=0,s=t.length;i<s;i++)t[i].__tempNumber=i,t[i].__.zIndex&&(e=!0);t.sort(T7),this.__layout.affectChildrenSort=e}this.__layout.childrenSortChanged=!1}add(e,t){if(e===this||e.destroyed)return D7.warn("add self or destroyed");const i=M(t);if(!e.__){if(et(e))return e.forEach(n=>{this.add(n,t),i||t++});if(!(e=un.get(e.tag,e)))return}e.parent&&e.parent.remove(e),e.parent=this,i?this.children.push(e):(Di.zIndex(this,e,t),this.children.splice(t,0,e)),e.isBranch&&(this.__.__childBranchNumber=(this.__.__childBranchNumber||0)+1);const s=e.__layout;s.boxChanged||s.boxChange(),s.matrixChanged||s.matrixChange(),e.__parentChange&&e.__parentChange.forEach(n=>n(this,e)),e.__bubbleMap&&e.__emitLifeEvent(Mt.ADD),this.frame&&e.__bindFrame(this.frame),this.leafer&&(e.__bindLeafer(this.leafer),this.leafer.created&&this.__emitChildEvent(Mt.ADD,e)),this.__layout.affectChildrenSort&&this.__layout.childrenSortChange()}addMany(...e){this.add(e)}remove(e,t){e?e.__?e.animationOut?e.__runAnimation("out",()=>this.__remove(e,t)):this.__remove(e,t):this.find(e).forEach(i=>this.remove(i,t)):M(e)&&super.remove(null,t)}removeAll(e){const{children:t}=this;t.length&&(this.children=[],this.__preRemove(),this.__.__childBranchNumber=0,t.forEach(i=>{this.__realRemoveChild(i),e&&i.destroy()}))}clear(){this.removeAll(!0)}__remove(e,t){const i=this.children.indexOf(e);i>-1&&(this.children.splice(i,1),e.isBranch&&(this.__.__childBranchNumber=(this.__.__childBranchNumber||1)-1),this.__preRemove(),this.__realRemoveChild(e),t&&e.destroy())}__preRemove(){this.__hasMask&&this.__updateMask(),this.__hasEraser&&this.__updateEraser(),this.__layout.boxChange(),this.__layout.affectChildrenSort&&this.__layout.childrenSortChange()}__realRemoveChild(e){e.__emitLifeEvent(Mt.REMOVE),e.parent=null,this.leafer&&(e.__bindLeafer(null),this.leafer.created&&(this.__emitChildEvent(Mt.REMOVE,e),this.leafer.hitCanvasManager&&this.leafer.hitCanvasManager.clear())),e.frame&&!e.isFrame&&e.__bindFrame(null)}__emitChildEvent(e,t){const{leafer:i}=this;if(ho(i)||i.zoomLayer===this){const s=new Mt(e,t,this);this.hasEvent(e)&&!this.isLeafer&&this.emitEvent(s),i.emitEvent(s)}else i.watcher.addChild(t,this,e)}};b1=f([ue(h7)],b1);class wt{get length(){return this.list.length}constructor(t){this.reset(),t&&(et(t)?this.addList(t):this.add(t))}has(t){return t&&!M(this.keys[t.innerId])}indexAt(t){return this.list[t]}indexOf(t){const i=this.keys[t.innerId];return M(i)?-1:i}add(t){const{list:i,keys:s}=this;M(s[t.innerId])&&(i.push(t),s[t.innerId]=i.length-1)}addAt(t,i=0){const{keys:s}=this;if(M(s[t.innerId])){const{list:n}=this;for(let r=i,o=n.length;r<o;r++)s[n[r].innerId]++;i===0?n.unshift(t):(i>n.length&&(i=n.length),n.splice(i,0,t)),s[t.innerId]=i}}addList(t){for(let i=0;i<t.length;i++)this.add(t[i])}remove(t){const{list:i}=this;let s;for(let n=0,r=i.length;n<r;n++)M(s)?i[n].innerId===t.innerId&&(s=n,delete this.keys[t.innerId]):this.keys[i[n].innerId]=n-1;M(s)||i.splice(s,1)}sort(t){const{list:i}=this;t?i.sort((s,n)=>n.__level-s.__level):i.sort((s,n)=>s.__level-n.__level)}forEach(t){this.list.forEach(t)}clone(){const t=new wt;return t.list=[...this.list],t.keys=Object.assign({},this.keys),t}update(){this.keys={};const{list:t,keys:i}=this;for(let s=0,n=t.length;s<n;s++)i[t[s].innerId]=s}reset(){this.list=[],this.keys={}}destroy(){this.reset()}}class O7{get length(){return this._length}constructor(t){this._length=0,this.reset(),t&&(et(t)?this.addList(t):this.add(t))}has(t){return!M(this.keys[t.innerId])}without(t){return M(this.keys[t.innerId])}sort(t){const{levels:i}=this;t?i.sort((s,n)=>n-s):i.sort((s,n)=>s-n)}addList(t){t.forEach(i=>{this.add(i)})}add(t){const{keys:i,levelMap:s}=this;i[t.innerId]||(i[t.innerId]=1,s[t.__level]?s[t.__level].push(t):(s[t.__level]=[t],this.levels.push(t.__level)),this._length++)}forEach(t){let i;
1this.levels.forEach(s=>{i=this.levelMap[s];for(let n=0,r=i.length;n<r;n++)t(i[n])})}reset(){this.levelMap={},this.keys={},this.levels=[],this._length=0}destroy(){this.levelMap=null}}const I7="2.3.0";if(typeof globalThis<"u"){const e=globalThis.Leafer||(globalThis.Leafer={});e.version=I7,e.Plugin=nt}const Pl=ot.get("LeaferCanvas");class ic extends q1{set zIndex(t){const{style:i}=this.view;i.zIndex=t,this.setAbsolute(this.view)}set childIndex(t){const{view:i,parentView:s}=this;if(i&&s){const n=s.children[t];n?(this.setAbsolute(n),s.insertBefore(i,n)):s.appendChild(n)}}init(){const{config:t}=this,i=t.view||t.canvas;i?this.__createViewFrom(i):this.__createView();const{style:s}=this.view;if(s.display||(s.display="block"),this.parentView=this.view.parentElement,this.parentView){const n=this.parentView.style;n.webkitUserSelect=n.userSelect="none",this.view.classList.add("leafer-canvas-view")}L.syncDomFont&&!this.parentView&&(s.display="none",document.body&&document.body.appendChild(this.view)),this.__createContext(),this.autoLayout||this.resize(t)}set backgroundColor(t){this.view.style.backgroundColor=t}get backgroundColor(){return this.view.style.backgroundColor}set hittable(t){this.view.style.pointerEvents=t?"auto":"none"}get hittable(){return this.view.style.pointerEvents!=="none"}__createView(){this.view=document.createElement("canvas")}__createViewFrom(t){let i=V(t)?document.getElementById(t):t;if(i)if(i instanceof HTMLCanvasElement)this.view=i;else{let s=i;if(i===window||i===document){const r=document.createElement("div"),{style:o}=r;o.position="absolute",o.top=o.bottom=o.left=o.right="0px",document.body.appendChild(r),s=r}this.__createView();const n=this.view;s.hasChildNodes()&&(this.setAbsolute(n),s.style.position||(s.style.position="relative")),s.appendChild(n)}else Pl.error(`no id: ${t}`),this.__createView()}setAbsolute(t){const{style:i}=t;i.position="absolute",i.top=i.left="0px"}updateViewSize(){const{width:t,height:i,pixelRatio:s}=this,{style:n}=this.view;n.width=t+"px",n.height=i+"px",this.unreal||(this.view.width=Math.ceil(t*s),this.view.height=Math.ceil(i*s))}updateClientBounds(){this.view.parentElement&&(this.clientBounds=this.view.getBoundingClientRect())}startAutoLayout(t,i){if(this.resizeListener=i,t){if(this.autoBounds=t,this.resizeObserver)return;try{this.resizeObserver=new ResizeObserver(n=>{this.updateClientBounds();for(const r of n)this.checkAutoBounds(r.contentRect)});const s=this.parentView;s?(this.resizeObserver.observe(s),this.checkAutoBounds(s.getBoundingClientRect())):(this.checkAutoBounds(this.view),Pl.warn("no parent"))}catch{this.imitateResizeObserver()}this.stopListenPixelRatio()}else this.listenPixelRatio(),this.unreal&&this.updateViewSize()}imitateResizeObserver(){this.autoLayout&&(this.parentView&&this.checkAutoBounds(this.parentView.getBoundingClientRect()),L.requestRender(this.imitateResizeObserver.bind(this)))}listenPixelRatio(){this.windowListener||window.addEventListener("resize",this.windowListener=()=>{const t=L.devicePixelRatio;if(!this.config.pixelRatio&&this.pixelRatio!==t){const{width:i,height:s}=this;this.emitResize({width:i,height:s,pixelRatio:t})}})}stopListenPixelRatio(){this.windowListener&&(window.removeEventListener("resize",this.windowListener),this.windowListener=null)}checkAutoBounds(t){const i=this.view,{x:s,y:n,width:r,height:o}=this.autoBounds.getBoundsFrom(t),a={width:r,height:o,pixelRatio:this.config.pixelRatio?this.pixelRatio:L.devicePixelRatio};if(!this.isSameSize(a)){const{style:l}=i;l.marginLeft=s+"px",l.marginTop=n+"px",this.emitResize(a)}}stopAutoLayout(){this.autoLayout=!1,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeListener=this.resizeObserver=null}emitResize(t){const i={};q.copyAttrs(i,this,Ie),this.resize(t),this.resizeListener&&!M(this.width)&&this.resizeListener(new Qe(t,i))}unrealCanvas(){if(!this.unreal&&this.parentView){let t=this.view;t&&t.remove(),t=this.view=document.createElement("div"),this.parentView.appendChild(this.view),t.classList.add("leafer-app-view"),this.unreal=!0}}destroy(){const{view:t}=this;t&&(this.stopAutoLayout(),this.stopListenPixelRatio(),t.parentElement&&t.remove(),super.destroy())}}function W7(e,t){L.origin={createCanvas(i,s){const n=document.createElement("canvas");return n.width=i,n.height=s,n},canvasToDataURL:(i,s,n)=>{const r=Te.mimeType(s),o=i.toDataURL(r,n);return r==="image/bmp"?o.replace("image/png;","image/bmp;"):o},canvasToBolb:(i,s,n)=>new Promise(r=>i.toBlob(r,Te.mimeType(s),n)),canvasSaveAs:(i,s,n)=>{const r=i.toDataURL(Te.mimeType(Te.fileType(s)),n);return L.origin.download(r,s)},download(i,s){return u0(this,void 0,void 0,function*(){let n=document.createElement("a");n.href=i,n.download=s,document.body.appendChild(n),n.click(),document.body.removeChild(n)})},loadImage:(i,s,n)=>new Promise((r,o)=>{const a=new L.origin.Image;s&&(a.setAttribute("crossOrigin",s),a.crossOrigin=s),a.onload=()=>{r(a)},a.onerror=l=>{o(l)},a.src=L.image.getRealURL(i)}),loadContent(i){return u0(this,arguments,void 0,function*(s,n="text"){const r=yield fetch(s);if(!r.ok)throw new Error(`${r.status}`);return yield r[n]()})},Image,PointerEvent,DragEvent},L.event={stopDefault(i){i.preventDefault()},stopNow(i){i.stopImmediatePropagation()},stop(i){i.stopPropagation()}},L.canvas=bt.canvas(),L.conicGradientSupport=!!L.canvas.context.createConicGradient}rl(CanvasRenderingContext2D.prototype),rl(Path2D.prototype),Object.assign(bt,{canvas:(e,t)=>new ic(e,t),image:e=>new lo(e)}),L.name="web",L.isMobile="ontouchstart"in window,L.requestRender=function(e){window.requestAnimationFrame(e)},fe(L,"devicePixelRatio",{get:()=>devicePixelRatio});const{userAgent:Un}=navigator;Un.indexOf("Firefox")>-1?(L.intWheelDeltaY=!0,L.syncDomFont=!0):(/iPhone|iPad|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent))&&(L.fullImageShadow=!0),Un.indexOf("Windows")>-1?(L.os="Windows",L.intWheelDeltaY=!0):Un.indexOf("Mac")>-1?L.os="Mac":Un.indexOf("Linux")>-1&&(L.os="Linux");class z7{get childrenChanged(){return this.hasAdd||this.hasRemove||this.hasVisible}get updatedList(){if(this.hasRemove&&this.config.usePartLayout){const t=new wt;return this.__updatedList.list.forEach(i=>
1{i.leafer&&t.add(i)}),t}return this.__updatedList}constructor(t,i){this.totalTimes=0,this.changed=0,this.config={},this.__updatedList=new wt,this.target=t,i&&(this.config=q.default(i,this.config)),this.__listenEvents()}start(){this.disabled||(this.running=!0)}stop(){this.running=!1}disable(){this.stop(),this.__removeListenEvents(),this.disabled=!0}update(){this.changed<100&&(this.changed++,this.running&&this.target.emit(pt.REQUEST))}__onAttrChange(t){this.add(t.target)}add(t){this.config.usePartLayout&&this.__updatedList.add(t),this.update()}addChild(t,i,s){this.config.usePartLayout&&(s===Mt.ADD?(this.hasAdd=!0,this.__pushChild(t)):(this.hasRemove=!0,this.__updatedList.add(i))),this.update()}__onChildEvent(t){this.addChild(t.child,t.parent,t.type)}__pushChild(t){this.__updatedList.add(t),t.isBranch&&this.__loopChildren(t)}__loopChildren(t){const{children:i}=t;for(let s=0,n=i.length;s<n;s++)this.__pushChild(i[s])}__onRquestData(){this.target.emitEvent(new Ri(Ri.DATA,{updatedList:this.updatedList})),this.__updatedList=new wt,this.totalTimes++,this.hasVisible=this.hasRemove=this.hasAdd=!1,this.changed=0}__listenEvents(){this.__eventIds=[this.target.on_([[ze.CHANGE,this.__onAttrChange,this],[[Mt.ADD,Mt.REMOVE],this.__onChildEvent,this],[Ri.REQUEST,this.__onRquestData,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.target=this.__updatedList=null)}}const{updateAllMatrix:H7,updateBounds:Fl,updateChange:N7}=$,{pushAllChildBranch:X7,pushAllParent:Y7}=Di,Vn={updateMatrix(e,t){let i,s,n=0;const{list:r}=e;for(;n<r.length;)i=r[n],s=i.__layout,t.without(i)&&!s.proxyZoom&&(s.matrixChanged?(H7(i,!0),i.isBranch&&X7(i,t),ia(i,t)):s.boundsChanged&&(i.isBranch&&(i.__tempNumber=0),ia(i,t))),n++},updateBounds(e){let t,i,s,n,r=0;const{levels:o,levelMap:a}=e;for(e.sort(!0);r<o.length;){t=o[r],i=a[t];for(let l=0,h=i.length;l<h;l++){if(s=i[l],s.isBranch&&s.__tempNumber){n=s.children;for(let c=0,d=n.length;c<d;c++)n[c].isBranch||Fl(n[c])}Fl(s)}r++}},updateChange(e){e.list.forEach(N7)},push:ia};function ia(e,t){t.add(e),Y7(e,t)}const{worldBounds:Ml}=ds;class Dl{constructor(t){this.updatedBounds=new rt,this.beforeBounds=new rt,this.afterBounds=new rt,et(t)&&(t=new wt(t)),this.updatedList=t}setBefore(){this.beforeBounds.setListWithFn(this.updatedList.list,Ml)}setAfter(){this.afterBounds.setListWithFn(this.updatedList.list,Ml),this.updatedBounds.setList([this.beforeBounds,this.afterBounds])}merge(t){this.updatedList.addList(t.updatedList.list),this.beforeBounds.add(t.beforeBounds),this.afterBounds.add(t.afterBounds),this.updatedBounds.add(t.updatedBounds)}destroy(){this.updatedList=null}}const{updateAllMatrix:j7,updateAllChange:U7}=$,sa=ot.get("Layouter");class Kr{constructor(t,i){this.totalTimes=0,this.config={usePartLayout:!0},this.__levelList=new O7,this.target=t,i&&(this.config=q.default(i,this.config)),this.__listenEvents()}start(){this.disabled||(this.running=!0)}stop(){this.running=!1}disable(){this.stop(),this.__removeListenEvents(),this.disabled=!0}layout(){if(this.layouting||!this.running)return;const{target:t}=this;this.times=0;try{t.emit(Lt.START),this.layoutOnce(),t.emitEvent(new Lt(Lt.END,this.layoutedBlocks,this.times))}catch(i){sa.error(i)}this.layoutedBlocks=null}layoutAgain(){this.layouting?this.waitAgain=!0:this.layoutOnce()}layoutOnce(){return this.layouting?sa.warn("layouting"):this.times>3?sa.warn("layout max times"):(this.times++,this.totalTimes++,this.layouting=!0,this.target.emit(Ri.REQUEST),this.totalTimes>1&&this.config.usePartLayout?this.partLayout():this.fullLayout(),this.layouting=!1,void(this.waitAgain&&(this.waitAgain=!1,this.layoutOnce())))}partLayout(){var t;if(!(!((t=this.__updatedList)===null||t===void 0)&&t.length))return;const i=we.start("PartLayout"),{target:s,__updatedList:n}=this,{BEFORE:r,LAYOUT:o,AFTER:a}=Lt,l=this.getBlocks(n);l.forEach(h=>h.setBefore()),s.emitEvent(new Lt(r,l,this.times)),this.extraBlock=null,n.sort(),Vn.updateMatrix(n,this.__levelList),Vn.updateBounds(this.__levelList),Vn.updateChange(n),this.extraBlock&&l.push(this.extraBlock),l.forEach(h=>h.setAfter()),s.emitEvent(new Lt(o,l,this.times)),s.emitEvent(new Lt(a,l,this.times)),this.addBlocks(l),this.__levelList.reset(),this.__updatedList=null,we.end(i)}fullLayout(){const t=we.start("FullLayout"),{target:i}=this,{BEFORE:s,LAYOUT:n,AFTER:r}=Lt,o=this.getBlocks(new wt(i));i.emitEvent(new Lt(s,o,this.times)),Kr.fullLayout(i),o.forEach(a=>{a.setAfter()}),i.emitEvent(new Lt(n,o,this.times)),i.emitEvent(new Lt(r,o,this.times)),this.addBlocks(o),we.end(t)}static fullLayout(t){j7(t,!0),t.isBranch?Di.updateBounds(t):$.updateBounds(t),U7(t)}addExtra(t,i){if(!this.__updatedList.has(t)){const{updatedList:s,beforeBounds:n}=this.extraBlock||(this.extraBlock=new Dl([]));if(s.length?n.add(t.__world):n.set(t.__world),s.add(t),i){const r=this.__levelList;Vn.push(t,r),r.sort(!0)}}}createBlock(t){return new Dl(t)}getBlocks(t){return[this.createBlock(t)]}addBlocks(t){this.layoutedBlocks?this.layoutedBlocks.push(...t):this.layoutedBlocks=t}__onReceiveWatchData(t){this.__updatedList=t.data.updatedList}__listenEvents(){this.__eventIds=[this.target.on_([[Lt.REQUEST,this.layout,this],[Lt.AGAIN,this.layoutAgain,this],[Ri.DATA,this.__onReceiveWatchData,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.target=this.config=null)}}const S0=ot.get("Renderer");
1class co{get needFill(){return!(this.canvas.allowBackgroundColor||!this.config.fill)}constructor(t,i,s){this.FPS=60,this.totalTimes=0,this.times=0,this.config={usePartRender:!0,ceilPartPixel:!0,maxFPS:120},this.frames=[],this.target=t,this.canvas=i,s&&(this.config=q.default(s,this.config)),this.__listenEvents()}start(){this.running=!0,this.update(!1)}stop(){this.running=!1}update(t=!0){this.changed||(this.changed=t),this.requestTime||this.__requestRender()}requestLayout(){this.target.emit(Lt.REQUEST)}checkRender(){if(this.running){const{target:t}=this;t.isApp&&(t.emit(pt.CHILD_START,t),t.children.forEach(i=>{i.renderer.FPS=this.FPS,i.renderer.checkRender()}),t.emit(pt.CHILD_END,t)),this.changed&&this.canvas.view&&this.render(),this.target.emit(pt.NEXT)}}render(t){if(!this.running||!this.canvas.view)return this.update();const{target:i}=this;this.times=0,this.totalBounds=new rt,S0.log(i.innerName,"--->");try{this.emitRender(pt.START),this.renderOnce(t),this.emitRender(pt.END,this.totalBounds),Le.clearRecycled()}catch(s){this.rendering=!1,S0.error(s)}S0.log("-------------|")}renderAgain(){this.rendering?this.waitAgain=!0:this.renderOnce()}renderOnce(t){if(this.rendering)return S0.warn("rendering");if(this.times>3)return S0.warn("render max times");if(this.times++,this.totalTimes++,this.rendering=!0,this.changed=!1,this.renderBounds=new rt,this.renderOptions={},t)this.emitRender(pt.BEFORE),t();else{if(this.requestLayout(),this.ignore)return void(this.ignore=this.rendering=!1);this.emitRender(pt.BEFORE),this.config.usePartRender&&this.totalTimes>1?this.partRender():this.fullRender()}this.emitRender(pt.RENDER,this.renderBounds,this.renderOptions),this.emitRender(pt.AFTER,this.renderBounds,this.renderOptions),this.updateBlocks=null,this.rendering=!1,this.waitAgain&&(this.waitAgain=!1,this.renderOnce())}partRender(){const{canvas:t,updateBlocks:i}=this;i&&(this.mergeBlocks(),i.forEach(s=>{t.bounds.hit(s)&&!s.isEmpty()&&this.clipRender(s)}))}clipRender(t){const i=we.start("PartRender"),{canvas:s}=this,n=t.getIntersect(s.bounds),r=new rt(n);s.save(),n.spread(co.clipSpread).ceil();const{ceilPartPixel:o}=this.config;s.clipWorld(n,o),s.clearWorld(n,o),this.__render(n,r),s.restore(),we.end(i)}fullRender(){const t=we.start("FullRender"),{canvas:i}=this;i.save(),i.clear(),this.__render(i.bounds),i.restore(),we.end(t)}__render(t,i){const{canvas:s,target:n}=this,r=t.includes(n.__world),o=r?{includes:r}:{bounds:t,includes:r};this.needFill&&s.fillWorld(t,this.config.fill),ot.showRepaint&&ot.drawRepaint(s,t),this.config.useCellRender&&(o.cellList=this.getCellList()),L.render(n,s,o),this.renderBounds=i=i||t,this.renderOptions=o,this.totalBounds.isEmpty()?this.totalBounds=i:this.totalBounds.add(i),s.updateRender(i)}getCellList(){}addBlock(t,i){this.updateBlocks||(this.updateBlocks=[]),this.updateBlocks.push(t)}mergeBlocks(){const{updateBlocks:t}=this;if(t){const i=new rt;i.setList(t),t.length=0,t.push(i)}}__requestRender(){const t=this.target;if(this.requestTime||!t)return;if(t.parentApp)return t.parentApp.requestRender(!1);this.requestTime=this.frameTime||Date.now();const i=()=>{const s=1e3/((this.frameTime=Date.now())-this.requestTime),{maxFPS:n}=this.config;if(n&&s>n)return L.requestRender(i);const{frames:r}=this;r.length>30&&r.shift(),r.push(s),this.FPS=Math.round(r.reduce((o,a)=>o+a,0)/r.length),this.requestTime=0,this.checkRender()};L.requestRender(i)}__onResize(t){if(!this.canvas.unreal){if(t.bigger||!t.samePixelRatio){const{width:i,height:s}=t.old;if(!new rt(0,0,i,s).includes(this.target.__world)||this.needFill||!t.samePixelRatio)return this.addBlock(this.canvas.bounds),void this.target.forceUpdate("surface")}this.addBlock(new rt(0,0,1,1)),this.update()}}__onLayoutEnd(t){t.data&&t.data.map(i=>{let s;const{updatedList:n}=i;n&&n.list.some(r=>(s=!r.__world.width||!r.__world.height,s&&(r.isLeafer||S0.tip(r.innerName,": empty"),s=!r.isBranch||r.isBranchLeaf),s)),this.addBlock(s?this.canvas.bounds:i.updatedBounds,n)})}emitRender(t,i,s){this.target.emitEvent(new pt(t,this.times,i,s))}__listenEvents(){this.__eventIds=[this.target.on_([[pt.REQUEST,this.update,this],[Lt.END,this.__onLayoutEnd,this],[pt.AGAIN,this.renderAgain,this],[Qe.RESIZE,this.__onResize,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.config={},this.target=this.canvas=null)}}co.clipSpread=10;const V7={},{copyRadiusPoint:G7}=A,{hitRadiusPoint:q7}=P;class K7{constructor(t,i){this.target=t,this.selector=i}getByPoint(t,i,s){i||(i=0),s||(s={});const n=s.through||!1,r=s.ignoreHittable||!1,o=s.target||this.target;this.exclude=s.exclude||null,this.point={x:t.x,y:t.y,radiusX:i,radiusY:i},this.findList=new wt(s.findList),s.findList||this.hitBranch(o.isBranchLeaf?{children:[o]}:o);const{list:a}=this.findList,l=this.getBestMatchLeaf(a,s.bottomList,r,!!s.findList),h=r?this.getPath(l):this.getHitablePath(l);return this.clear(),n?{path:h,target:l,throughPath:a.length?this.getThroughPath(a):h}:{path:h,target:l}}hitPoint(t,i,s){return!!this.getByPoint(t,i,s).target}getBestMatchLeaf(t,i,s,n){const r=this.findList=new wt;if(t.length){let o;const{x:a,y:l}
1=this.point,h={x:a,y:l,radiusX:0,radiusY:0};for(let c=0,d=t.length;c<d;c++)if(o=t[c],(s||$.worldHittable(o))&&(this.hitChild(o,o.hitThrough?this.point:h,o.mask&&o.parent&&o.parent.__onlyHitMask),r.length)){if(o.isBranchLeaf&&t.some(g=>g!==o&&$.hasParent(g,o))){r.reset();break}return r.list[0]}}if(i){for(let o=0,a=i.length;o<a;o++)if(this.hitChild(i[o].target,this.point,void 0,i[o].proxy),r.length)return r.list[0]}return n?null:s?t[0]:t.find(o=>$.worldHittable(o))}getPath(t){const i=new wt,s=[],{target:n}=this;for(;t&&(t.syncEventer&&s.push(t.syncEventer),i.add(t),(t=t.parent)!==n););return s.length&&s.forEach(r=>{for(;r&&(r.__.hittable&&i.add(r),(r=r.parent)!==n););}),n&&i.add(n),i}getHitablePath(t){const i=this.getPath(t&&t.hittable?t:null);let s,n=new wt;for(let r=i.list.length-1;r>-1&&(s=i.list[r],s.__.hittable)&&(n.addAt(s,0),s.__.hitChildren&&(!s.isLeafer||s.mode!=="draw"));r--);return n}getThroughPath(t){const i=new wt,s=[];for(let a=t.length-1;a>-1;a--)s.push(this.getPath(t[a]));let n,r,o;for(let a=0,l=s.length;a<l;a++){n=s[a],r=s[a+1];for(let h=0,c=n.length;h<c&&(o=n.list[h],!r||!r.has(o));h++)i.add(o)}return i}hitBranch(t){this.eachFind(t.children,t.__onlyHitMask)}eachFind(t,i){let s,n,r;const{point:o}=this;for(let a=t.length-1;a>-1;a--)if(s=t[a],r=s.__,r.visible&&(!i||r.mask))if(n=q7(s.__world,r.hitRadius?G7(V7,o,r.hitRadius):o),s.isBranch){if(n||s.__ignoreHitWorld){if(s.isBranchLeaf&&r.__clipAfterFill&&!s.__hitWorld(o,!0))continue;s.topChildren&&this.eachFind(s.topChildren,!1),this.eachFind(s.children,s.__onlyHitMask),s.isBranchLeaf&&this.hitChild(s,o,i)}}else n&&this.hitChild(s,o,i)}hitChild(t,i,s,n){if((!this.exclude||!this.exclude.has(t))&&t.__hitWorld(i,!(!s||t.mask!=="path")||void 0)){const{parent:r,mask:o}=t;if(r&&r.__hasMask&&o&&o!=="clipping"&&o!=="clipping-path"&&!r.children.some(c=>!c.mask&&this.isHitLeaf(c,i)))return;const a=n||t,{hitThrough:l}=t,{findList:h}=this;if(l){const c=h.list.findIndex(d=>l==="parent"?$.hasParent(d.parent,t.parent):d[l]===t[l]);if(c>0)return h.addAt(a,c)}h.add(a)}}isHitLeaf(t,i){if(t.isBranch){const{findList:s}=this,n=s.length;this.eachFind([t],!1);const r=s.length-n;for(let o=0;o<r;o++)s.remove(s.indexAt(s.length-1));return!!r}return t.__hitWorld(i)}clear(){this.point=null,this.findList=null,this.exclude=null}destroy(){this.clear()}}class Z7{constructor(t,i){this.config={},i&&(this.config=q.default(i,this.config)),this.picker=new K7(this.target=t,this),this.finder=bt.finder&&bt.finder(t,this.config)}getByPoint(t,i,s){const{target:n,picker:r}=this;return L.backgrounder&&n&&n.updateLayout(),r.getByPoint(t,i,s)}hitPoint(t,i,s){return this.picker.hitPoint(t,i,s)}getBy(t,i,s,n){return this.finder?this.finder.getBy(t,i,s,n):nt.need("find")}destroy(){this.picker.destroy(),this.finder&&this.finder.destroy()}}function E0(e){return yt(e,t=>({set(i){this.__setAttr(t,i),i&&(this.__.__useEffect=!0);const s=this.__layout;s.renderChanged||s.renderChange(),s.surfaceChange()}}))}function ks(e){return yt(e,t=>({set(i){this.__setAttr(t,i),this.__layout.boxChanged||this.__layout.boxChange(),this.__updateSize()}}))}function $7(){return(e,t)=>{const i="_"+t;fe(e,t,{set(s){this.isLeafer&&(this[i]=s)},get(){return this.isApp?this.tree.zoomLayer:this.isLeafer?this[i]||this:this.leafer&&this.leafer.zoomLayer}})}}function J7(){return(e,t)=>
1{fe(e,t,{set(i){},get(){return this}})}}function zf(e){return(t,i)=>{fe(t,i,Z4(i,e))}}Object.assign(bt,{watcher:(e,t)=>new z7(e,t),layouter:(e,t)=>new Kr(e,t),renderer:(e,t,i)=>new co(e,t,i),selector:(e,t)=>new Z7(e,t)}),L.layout=Kr.fullLayout,L.render=function(e,t,i){const s=Object.assign(Object.assign({},i),{topRendering:!0});i.topList=new wt,e.__render(t,i),i.topList.length&&i.topList.forEach(n=>{const{parent:r}=n;r&&r.isBranchLeaf&&r.overflow!=="show"?(t.save(),$.clip(r,t,s),n.__render(t,s),t.restore()):n.__render(t,s)})};const sc={},Ct={hasTransparent:function(e){if(!e||e.length===7||e.length===4)return!1;if(e==="transparent")return!0;const t=e[0];if(t==="#")switch(e.length){case 5:return e[4]!=="f"&&e[4]!=="F";case 9:return e[7]!=="f"&&e[7]!=="F"||e[8]!=="f"&&e[8]!=="F"}else if((t==="r"||t==="h")&&e[3]==="a"){const i=e.lastIndexOf(",");if(i>-1)return parseFloat(e.slice(i+1))<1}return!1}},Pi=ns,Zr={},st={},kt={},Hr={},Fi={},U0={apply(){nt.need("filter")}},Ei={},gt={setStyleName:()=>nt.need("state"),set:()=>nt.need("state")},Wt={list:{},register(e,t){Wt.list[e]=t},get:e=>Wt.list[e]},{parse:Q7,objectToCanvasData:t9}=Mi,{stintSet:T0}=q,{hasTransparent:Ol}=Ct,Il={originPaint:{}},Wl=ot.get("UIData");class Ye extends O4{get scale(){const{scaleX:t,scaleY:i}=this;return t!==i?{x:t,y:i}:t}get __strokeWidth(){return this.__getRealStrokeWidth()}get __maxStrokeWidth(){const t=this,i=t.__hasStrokeSides||t.strokeWidth;return t.__hasMultiStrokeStyle?Math.max(t.__hasMultiStrokeStyle,i):i}get __hasMultiPaint(){const t=this;return t.fill&&this.__useStroke||t.__isFills&&t.fill.length>1||t.__isStrokes&&t.stroke.length>1||t.__useEffect}get __clipAfterFill(){const t=this;return t.cornerRadius||t.innerShadow||t.__pathInputed}get __hasSurface(){return this.fill||this.stroke}get __autoWidth(){return this._width==null}get __autoHeight(){return this._height==null}get __autoSide(){return this._width==null||this._height==null}get __autoSize(){return this._width==null&&this._height==null}setVisible(t){this._visible=t;const{leafer:i}=this.__leaf;i&&(i.watcher.hasVisible=!0)}setWidth(t){t<0?(this._width=-t,this.__leaf.scaleX*=-1,Wl.warn("width < 0, instead -scaleX ",this)):this._width=t}setHeight(t){t<0?(this._height=-t,this.__leaf.scaleY*=-1,Wl.warn("height < 0, instead -scaleY",this)):this._height=t}setFill(t){this.__naturalWidth&&this.__removeNaturalSize(),V(t)||!t?(T0(this,"__isTransparentFill",Ol(t)),this.__isFills&&this.__removePaint("fill",!0),this._fill=t):O(t)&&this.__setPaint("fill",t)}setStroke(t){V(t)||!t?(T0(this,"__isTransparentStroke",Ol(t)),this.__isStrokes&&this.__removePaint("stroke",!0),this._stroke=t):O(t)&&this.__setPaint("stroke",t)}setPath(t){const i=V(t);i||t&&O(t[0])?(this.__setInput("path",t),this._path=i?Q7(t,this.__useArrow):t9(t)):(this.__input&&this.__removeInput("path"),this._path=t)}setShadow(t){na(this,"shadow",t)}setInnerShadow(t){na(this,"innerShadow",t)}setFilter(t){na(this,"filter",t)}__computePaint(){const{fill:t,stroke:i}=this.__input;t&&st.compute("fill",this.__leaf),i&&st.compute("stroke",this.__leaf),this.__needComputePaint=void 0}__getRealStrokeWidth(t){let{strokeWidth:i,strokeScaleFixed:s}=this;if(t&&(t.strokeWidth&&(i=t.strokeWidth),M(t.strokeScaleFixed)||(s=t.strokeScaleFixed)),s){const{scaleX:n}=this.__leaf.getRenderScaleData(!0,s,!1);if(n!==1)return i*n}return i}__checkComplex(){const t=this;T0(t,"__complex",t.__isFills||t.__isStrokes||t.cornerRadius||t.__useEffect)}__setPaint(t,i){this.__setInput(t,i);const s=this.__leaf.__layout;s.boxChanged||s.boxChange(),et(i)&&!i.length?this.__removePaint(t):t==="fill"?(this.__isFills=!0,this._fill||(this._fill=Il)):(this.__isStrokes=!0,this._stroke||(this._stroke=Il))}__removePaint(t,i){i&&this.__removeInput(t),kt.recycleImage(t,this),t==="fill"?(T0(this,"__isAlphaPixelFill",void 0),this._fill=this.__isFills=void 0):(T0(this,"__isAlphaPixelStroke",void 0),T0(this,"__hasMultiStrokeStyle",void 0),this._stroke=this.__isStrokes=void 0)}}function na(e,t,i){e.__setInput(t,i),et(i)?(i.some(s=>s.visible===!1)&&(i=i.filter(s=>s.visible!==!1)),i.length||(i=void 0)):i=i&&i.visible!==!1?[i]:void 0,e["_"+t]=i}class uo extends Ye{}class gi extends uo{get __boxStroke(){return!this.__pathInputed}get __drawAfterFill(){return this.__single||this.__clipAfterFill}get __clipAfterFill(){const t=this;return t.overflow!=="show"&&t.__leaf.children.length&&(t.__leaf.isOverflow||super.__clipAfterFill)}}class e9 extends uo{__getInputData(t,i){const s=super.__getInputData(t,i);return Ie.forEach(n=>delete s[n]),s}}class i9 extends gi{}class Q1 extends Ye{get __usePathBox(){return this.points||this.__pathInputed}}class go extends Ye{get __boxStroke(){return!this.__pathInputed}}class s9 extends Ye{get __boxStroke(){return!this.__pathInputed}}class n9 extends Ye{get __usePathBox(){return this.points||this.__pathInputed}}class r9 extends Ye{}class o9 extends Ye{get __pathInputed(){return 2}}class a9 extends uo{}const l9={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900};class h9 extends Ye{get __useNaturalRatio(){return!1}setFontWeight(t){V(t)?(this.__setInput("fontWeight",t),t=l9[t]||400):this.__input&&this.__removeInput("fontWeight"),this._fontWeight=t}setBoxStyle(t){let i=this.__leaf,s=i.__box;if(t){const{boxStyle:n}=this;if(s)for(let a in n)s[a]=void 0;else s=i.__box=un.get("Rect",0);const r=i.__layout,o=s.__layout;n||(s.parent=i,s.__world=i.__world,o.boxBounds=r.boxBounds),s.set(t),o.strokeChanged&&r.strokeChange()}else s&&(i.__box=s.parent=null,s.destroy());this._boxStyle=t}__getInputData(t,i){const s=super.__getInputData(t,i);return s.textEditing&&delete s.textEditing,s}}class nc extends go{get __urlType(){return"image"}setUrl(t){this.__setImageFill(t),this._url=t}__setImageFill(t){this.fill=t?{type:this.__urlType,mode:"stretch",url:t}:void 0}__getData(){const t=super.__getData();return t.url&&delete t.fill,t}__getInputData(t,i){const s=super.__getInputData(t,i);return s.url&&delete s.fill,s}}class c9 extends go{get __isCanvas(){return!0}get __drawAfterFill(){return!0}__getInputData(t,i){const s=super.__getInputData(t,i);return s.url=this.__leaf.canvas.toDataURL("image/png"),s}}const{max:Bs,add:ra}=cn,d9={__updateStrokeSpread(){let e=0,t=0;const i=this.__,{strokeAlign:s,__maxStrokeWidth:n}=i,r=this.__box;if((i.stroke||i.hitStroke==="all")&&n&&s!=="inside"&&(t=e=s==="center"?n/2:n,!i.__boxStroke||i.__useArrow)){const o=i.__isLinePath?0:(i.strokeJoin==="miter"?10:1)*e,a=i.strokeCap==="none"?0:n;e+=Math.max(o,a)}return i.__useArrow&&(e+=5*n),r&&(e=Bs(e,r.__layout.strokeSpread=r.__updateStrokeSpread()),t=Math.max(t,r.__layout.strokeBoxSpread)),this.__layout.strokeBoxSpread=t,e},__updateRenderSpread(){let e=0;const{shadow:t,innerShadow:i,blur:s,backgroundBlur:n,filter:r,render
1Spread:o}=this.__,{strokeSpread:a}=this.__layout,l=this.__box;t&&(e=Fi.getShadowRenderSpread(this,t)),s&&(e=Bs(e,s)),r&&(e=ra(e,U0.getSpread(r))),o&&(e=ra(e,o)),a&&(e=ra(e,a));let h=e;return i&&(h=Bs(h,Fi.getInnerShadowSpread(this,i))),n&&(h=Bs(h,n)),this.__layout.renderShapeSpread=h,l?Bs(l.__updateRenderSpread(),e):e}},{stintSet:oa}=q,u9={__updateChange(){const e=this.__;if(e.__useStroke){const t=e.__useStroke=!(!e.stroke||!e.strokeWidth);oa(this.__world,"half",t&&e.strokeAlign==="center"&&e.strokeWidth%2),oa(e,"__fillAfterStroke",t&&e.strokeAlign==="outside"&&e.fill&&!e.__isTransparentFill)}if(e.__useEffect){const{shadow:t,fill:i,stroke:s}=e,n=e.innerShadow||e.blur||e.backgroundBlur||e.filter;oa(e,"__isFastShadow",t&&!n&&t.length<2&&!t[0].spread&&!Fi.isTransformShadow(t[0])&&!(t[0].blendMode&&t[0].blendMode!=="pass-through")&&i&&!e.__isTransparentFill&&!(et(i)&&i.length>1)&&(this.useFastShadow||!s||s&&e.strokeAlign==="inside")),e.__useEffect=!(!t&&!n)}e.__checkSingle(),e.__checkComplex()},__drawFast(e,t){zl(this,e,t)},__draw(e,t,i){const s=this.__;if(s.__complex){s.__needComputePaint&&s.__computePaint();const{fill:n,stroke:r,__drawAfterFill:o,__fillAfterStroke:a,__isFastShadow:l}=s;if(this.__drawRenderPath(e),s.__useEffect&&!l){const h=st.shape(this,e,t);this.__nowWorld=this.__getNowWorld(t);const{shadow:c,innerShadow:d,filter:g}=s;c&&Fi.shadow(this,e,h),a&&(s.__isStrokes?st.strokes(r,this,e,t):st.stroke(r,this,e,t)),n&&(s.__isFills?st.fills(n,this,e,t):st.fill(n,this,e,t)),o&&this.__drawAfterFill(e,t),d&&Fi.innerShadow(this,e,h),r&&!a&&(s.__isStrokes?st.strokes(r,this,e,t):st.stroke(r,this,e,t)),g&&U0.apply(g,this,this.__nowWorld,e,i,h),h.worldCanvas&&h.worldCanvas.recycle(),h.canvas.recycle()}else{if(a&&(s.__isStrokes?st.strokes(r,this,e,t):st.stroke(r,this,e,t)),l){const h=s.shadow[0],{scaleX:c,scaleY:d}=this.getRenderScaleData(!0,h.scaleFixed);e.save(),e.setWorldShadow(h.x*c,h.y*d,h.blur*c,Ct.string(h.color))}n&&(s.__isFills?st.fills(n,this,e,t):st.fill(n,this,e,t)),l&&e.restore(),o&&this.__drawAfterFill(e,t),r&&!a&&(s.__isStrokes?st.strokes(r,this,e,t):st.stroke(r,this,e,t))}}else s.__pathForRender?zl(this,e,t):this.__drawFast(e,t)},__drawShape(e,t){this.__drawRenderPath(e);const i=this.__,{fill:s,stroke:n}=i;s&&!t.ignoreFill&&(i.__isAlphaPixelFill?st.fills(s,this,e,t):st.fill("#000000",this,e,t)),i.__isCanvas&&this.__drawAfterFill(e,t),n&&!t.ignoreStroke&&(i.__isAlphaPixelStroke?st.strokes(n,this,e,t):st.stroke("#000000",this,e,t))},__drawAfterFill(e,t){this.__.__clipAfterFill?(e.save(),e.clipUI(this),this.__drawContent(e,t),e.restore()):this.__drawContent(e,t)}};function zl(e,t,i){const{fill:s,stroke:n,__drawAfterFill:r,__fillAfterStroke:o}=e.__;e.__drawRenderPath(t),o&&st.stroke(n,e,t,i),s&&st.fill(s,e,t,i),r&&e.__drawAfterFill(t,i),n&&!o&&st.stroke(n,e,t,i)}const g9={__drawFast(e,t){let{x:i,y:s,width:n,height:r}=this.__layout.boxBounds;const{fill:o,stroke:a,__drawAfterFill:l}=this.__;if(o&&(e.fillStyle=o,e.fillRect(i,s,n,r)),l&&this.__drawAfterFill(e,t),a){const{strokeAlign:h,__strokeWidth:c}=this.__;if(!c)return;e.setStroke(a,c,this.__);const d=c/2;switch(h){case"center":e.strokeRect(0,0,n,r);break;case"inside":n-=c,r-=c,n<0||r<0?(e.save(),this.__clip(e,t),e.strokeRect(i+d,s+d,n,r),e.restore()):e.strokeRect(i+d,s+d,n,r);break;case"outside":e.strokeRect(i-d,s-d,n+c,r+c)}}}};var k1;let C=k1=class extends os{get app(){return this.leafer&&this.leafer.app}set strokeWidthFixed(e){this.strokeScaleFixed=e}get strokeWidthFixed(){return this.strokeScaleFixed}set scale(e){ct.assignScale(this,e)}get scale(){return this.__.scale}get isAutoWidth(){const e=this.__;return e.__autoWidth||e.autoWidth}get isAutoHeight(){const e=this.__;return e.__autoHeight||e.autoHeight}get pen(){const{path:e}=this.__;return ws.set(this.path=e||[]),e||this.__drawPathByBox(ws),ws}set(e,t){e&&Object.assign(this,e)}get(e){return V(e)?this.__.__getInput(e):this.__.__getInputData(e)}find(e,t){return nt.need("find")}findTag(e){return this.find({tag:e})}findOne(e,t){return nt.need("find")}findId(e){return this.findOne({id:e})}
1getPath(e,t){this.__layout.update();let i=t?this.__.__pathForRender:this.__.path;return i||(ws.set(i=[]),this.__drawPathByBox(ws,"box",!t)),e?Mi.toCanvasData(i,!0):i}getPathString(e,t,i){return Mi.stringify(this.getPath(e,t),i)}asPath(e,t){this.path=this.getPath(e,t)}load(){this.__.__computePaint()}__onUpdateSize(){if(this.__.__input){const e=this.__;!e.lazy||this.__inLazyBounds||Ei.running?e.__computePaint():e.__needComputePaint=!0}}__updatePath(){}__updateRenderPath(e){const t=this.__;t.path?(t.__pathForRender=t.cornerRadius||t.path.radius?q4.smooth(t.path,t.cornerRadius,t.cornerSmoothing):t.path,t.__useArrow&&Zr.addArrows(this,e)):t.__pathForRender&&(t.__pathForRender=void 0)}__drawRenderPath(e){const t=this.__;e.beginPath(),t.__useArrow&&Zr.updateArrow(this),this.__drawPathByData(e,t.__pathForRender)}__drawPath(e){const t=this.__;e.beginPath(),t.__usePointsMode?f1.drawPathByPoints(e,t.points,t.closed):this.__drawPathByData(e,t.path,!0)}__drawPathByData(e,t,i){t?f1.drawPathByData(e,t):this.__drawPathByBox(e,"box",i)}__drawPathByBox(e,t="box",i){const{x:s,y:n,width:r,height:o}=this.__layout[t+"Bounds"];if(this.__.cornerRadius&&!i){const{cornerRadius:a}=this.__;e.roundRect(s,n,r,o,it(a)?[a]:a)}else e.rect(s,n,r,o);e.closePath()}drawImagePlaceholder(e,t,i){st.fill(this.__.placeholderColor,this,t,i)}animate(e,t,i,s){return this.set(e),nt.need("animate")}killAnimate(e,t){}export(e,t){return nt.need("export")}syncExport(e,t){return nt.need("export")}clone(e){const t=q.clone(this.toJSON());return e&&Object.assign(t,e),k1.one(t)}static one(e,t,i,s,n){return un.get(e.tag||this.prototype.__tag,e,t,i,s,n)}static registerUI(){Tt()(this)}static registerData(e){Et(e)(this.prototype)}static setEditConfig(e){}static setEditOuter(e){}static setEditInner(e){}destroy(){this.__.__willDestroy=!0,this.fill=this.stroke=null,this.__animate&&this.killAnimate(),super.destroy()}};f([Et(Ye)],C.prototype,"__",void 0),f([$7()],C.prototype,"zoomLayer",void 0),f([mt("")],C.prototype,"id",void 0),f([mt("")],C.prototype,"name",void 0),f([mt("")],C.prototype,"className",void 0),f([We("pass-through")],C.prototype,"blendMode",void 0),f([c8(1)],C.prototype,"opacity",void 0),f([d8(!0)],C.prototype,"visible",void 0),f([We(!1)],C.prototype,"locked",void 0),f([y1(!1)],C.prototype,"dim",void 0),f([y1(!1)],C.prototype,"dimskip",void 0),f([g8(0)],C.prototype,"zIndex",void 0),f([f8(!1)],C.prototype,"mask",void 0),f([y8(!1)],C.prototype,"eraser",void 0),f([Xn(0,!0)],C.prototype,"x",void 0),f([Xn(0,!0)],C.prototype,"y",void 0),f([tt(100,!0)],C.prototype,"width",void 0),f([tt(100,!0)],C.prototype,"height",void 0),f([al(1,!0)],C.prototype,"scaleX",void 0),f([al(1,!0)],C.prototype,"scaleY",void 0),f([Uo(0,!0)],C.prototype,"rotation",void 0),f([Uo(0,!0)],C.prototype,"skewX",void 0),f([Uo(0,!0)],C.prototype,"skewY",void 0),f([Xn(0,!0)],C.prototype,"offsetX",void 0),f([Xn(0,!0)],C.prototype,"offsetY",void 0),f([ol(0,!0)],C.prototype,"scrollX",void 0),f([ol(0,!0)],C.prototype,"scrollY",void 0),f([qr()],C.prototype,"origin",void 0),f([qr()],C.prototype,"around",void 0),f([mt(!1)],C.prototype,"lazy",void 0),f([l8(1)],C.prototype,"pixelRatio",void 0),f([$1(0)],C.prototype,"renderSpread",void 0),f([h8()],C.prototype,"path",void 0),f([St()],C.prototype,"windingRule",void 0),f([St(!0)],C.prototype,"closed",void 0),f([tt(0)],C.prototype,"padding",void 0),f([tt(!1)],C.prototype,"lockRatio",void 0),f([tt()],C.prototype,"widthRange",void 0),f([tt()],C.prototype,"heightRange",void 0),f([mt(!1)],C.prototype,"draggable",void 0),f([mt()],C.prototype,"dragBounds",void 0),f([mt("auto")],C.prototype,"dragBoundsType",void 0),f([mt(!1)],C.prototype,"editable",void 0),f([bi(!0)],C.prototype,"hittable",void 0),f([bi()],C.prototype,"hitThrough",void 0),f([bi("path")],C.prototype,"hitFill",void 0),f([Ve("path")],C.prototype,"hitStroke",void 0),f([bi(!1)],C.prototype,"hitBox",void 0),f([bi(!0)],C.prototype,"hitChildren",void 0),f([bi(!0)],C.prototype,"hitSelf",void 0),f([bi()],C.prototype,"hitRadius",void 0),f([x8("")],C.prototype,"cursor",void 0),f([We()],C.prototype,"fill",void 0),f([Ve(void 0,!0)],C.prototype,"stroke",void 0),f([Ve("inside")],C.prototype,"strokeAlign",void 0),f([Ve(1,!0)],C.prototype,"strokeWidth",void 0),f([Ve(!1)],C.prototype,"strokeScaleFixed",void 0),f([Ve("none")],C.prototype,"strokeCap",void 0),f([Ve("miter")],C.prototype,"strokeJoin",void 0),f([Ve()],C.prototype,"dashPattern",void 0),f([Ve(0)],C.prototype,"dashOffset",void 0),f([Ve(10)],C.prototype,"miterLimit",void 0),f([St(0)],C.prototype,"cornerRadius",void 0),f([St()],C.prototype,"cornerSmoothing",void 0),f([E0()],C.prototype,"shadow",void 0),f([E0()],C.prototype,"innerShadow",void 0),f([E0()],C.prototype,"blur",void 0),f([E0()],C.prototype,"backgroundBlur",void 0),f([E0()],C.prototype,"grayscale",void 0),f([E0()],C.prototype,"filter",void 0),f([We()],C.prototype,"placeholderColor",void 0),f([mt(100)],C.prototype,"placeholderDelay",void 0),f([mt({})],C.prototype,"data",void 0),C=k1=f([ue(d9),ue(u9),p0()],C);let ht=class extends C{get __tag(){return"Group"}get isBranch(){return!0}reset(e){this.__setBranch(),super.reset(e)}__setBranch(){this.children||(this.children=[])}set(e,t){if(e)if(e.children){const{children:i}=e;delete e.children,this.children?this.clear():this.__setBranch(),super.set(e,t),i.forEac
1h(s=>this.add(s)),e.children=i}else super.set(e,t)}toJSON(e){const t=super.toJSON(e);if(!this.childlessJSON){const i=t.children=[];this.children.forEach(s=>s.skipJSON||i.push(s.toJSON(e)))}return t}addAt(e,t){this.add(e,t)}addAfter(e,t){this.add(e,this.children.indexOf(t)+1)}addBefore(e,t){this.add(e,this.children.indexOf(t))}};var Nr;f([Et(uo)],ht.prototype,"__",void 0),f([tt(0)],ht.prototype,"width",void 0),f([tt(0)],ht.prototype,"height",void 0),ht=f([ue(b1),Tt()],ht);const p9=ot.get("Leafer");let te=Nr=class extends ht{get __tag(){return"Leafer"}get isApp(){return!1}get app(){return this.parent||this}get isLeafer(){return!0}get imageReady(){return this.viewReady&&hi.isComplete}get layoutLocked(){return!this.layouter.running}get view(){return this.canvas&&this.canvas.view}get FPS(){return this.renderer?this.renderer.FPS:60}get cursorPoint(){return this.interaction&&this.interaction.hoverData||{x:this.width/2,y:this.height/2}}get clientBounds(){return this.canvas&&this.canvas.getClientBounds(!0)||{x:0,y:0,width:0,height:0}}constructor(e,t){super(t),this.config={start:!0,hittable:!0,smooth:!0,trackChanges:!0,lazySpeard:100},this.leafs=0,this.__eventIds=[],this.__controllers=[],this.__readyWait=[],this.__viewReadyWait=[],this.__viewCompletedWait=[],this.__nextRenderWait=[],this.userConfig=e,e&&(e.view||e.width)&&this.init(e),Nr.list.add(this)}init(e,t){if(this.canvas)return;let i;const{config:s}=this;this.__setLeafer(this),t&&(this.parentApp=t,this.__bindApp(t),i=t.running),e&&(this.parent=t,this.initType(e.type),this.parent=void 0,q.assign(s,e));const n=this.canvas=bt.canvas(s);this.__controllers.push(this.renderer=bt.renderer(this,n,s),this.watcher=bt.watcher(this,s),this.layouter=bt.layouter(this,s)),this.isApp&&this.__setApp(),this.__checkAutoLayout(),t||(this.selector=bt.selector(this),this.interaction=bt.interaction(this,n,this.selector,s),this.interaction&&(this.__controllers.unshift(this.interaction),this.hitCanvasManager=bt.hitCanvasManager()),this.canvasManager=new W4,i=s.start),this.hittable=s.hittable,this.fill=s.fill,this.canvasManager.add(n),this.__listenEvents(),i&&(this.__startTimer=setTimeout(this.start.bind(this))),bs.run(this.__initWait),this.onInit()}onInit(){}initType(e){}set(e,t){this.waitInit(()=>{super.set(e,t)})}start(){clearTimeout(this.__startTimer),!this.running&&this.canvas&&(this.running=!0,this.ready?this.emitLeafer(ut.RESTART):this.emitLeafer(ut.START),this.__controllers.forEach(e=>e.start()),this.isApp||this.renderer.render())}stop(){clearTimeout(this.__startTimer),this.running&&this.canvas&&(this.__controllers.forEach(e=>e.stop()),this.running=!1,this.emitLeafer(ut.STOP))}unlockLayout(e=!0){this.layouter.start(),e&&this.updateLayout()}lockLayout(e=!0){e&&this.updateLayout(),this.layouter.stop()}resize(e){const t=q.copyAttrs({},e,Ie);Object.keys(t).forEach(i=>this[i]=t[i])}forceRender(e,t){const{renderer:i}=this;i&&(i.addBlock(e?new rt(e):this.canvas.bounds),this.viewReady&&(t?i.render():i.update()))}requestRender(e=!1){this.renderer&&this.renderer.update(e)}updateCursor(e){const t=this.interaction;t&&(e?t.setCursor(e):t.updateCursor())}updateLazyBounds(){this.lazyBounds=this.canvas.bounds.clone().spread(this.config.lazySpeard)}__doResize(e){const{canvas:t}=this;if(!t||t.isSameSize(e))return;const i=q.copyAttrs({},this.canvas,Ie);t.resize(e),this.updateLazyBounds(),this.__onResize(new Qe(e,i))}__onResize(e){this.emitEvent(e),q.copyAttrs(this.__,e,Ie),setTimeout(()=>{this.canvasManager&&this.canvasManager.clearRecycled()},0)}__setApp(){}__bindApp(e){this.selector=e.selector,this.interaction=e.interaction,this.canvasManager=e.canvasManager,this.hitCanvasManager=e.hitCanvasManager}__setLeafer(e){this.leafer=e,this.__level=1}__checkAutoLayout(){const{config:e,parentApp:t}=this;t||(e.width&&e.height||(this.autoLayout=new sd(e)),this.canvas.startAutoLayout(this.autoLayout,this.__onResize.bind(this)))}__setAttr(e,t){return this.canvas&&(Ie.includes(e)?this.__changeCanvasSize(e,t):e==="fill"?this.__changeFill(t):e==="hittable"?this.parent||(this.canvas.hittable=t):e==="zIndex"?(this.canvas.zIndex=t,setTimeout(()=>this.parent&&this.parent.__updateSortChildren())):e==="mode"&&this.emit
1(ut.UPDATE_MODE,{mode:t})),super.__setAttr(e,t)}__getAttr(e){return this.canvas&&Ie.includes(e)?this.canvas[e]:super.__getAttr(e)}__changeCanvasSize(e,t){const{config:i,canvas:s}=this,n=q.copyAttrs({},s,Ie);n[e]=i[e]=t,i.width&&i.height?s.stopAutoLayout():this.__checkAutoLayout(),this.__doResize(n)}__changeFill(e){this.config.fill=e,this.canvas.allowBackgroundColor?this.canvas.backgroundColor=e:this.forceRender()}__onCreated(){this.created=!0}__onReady(){this.ready=!0,this.emitLeafer(ut.BEFORE_READY),this.emitLeafer(ut.READY),this.emitLeafer(ut.AFTER_READY),bs.run(this.__readyWait)}__onViewReady(){this.viewReady||(this.viewReady=!0,this.emitLeafer(ut.VIEW_READY),bs.run(this.__viewReadyWait))}__onLayoutEnd(){const{grow:e,width:t,height:i}=this.config;if(e){let{width:s,height:n,pixelRatio:r}=this;const o=e==="box"?this.worldBoxBounds:this.__world;t||(s=Math.max(1,o.x+o.width)),i||(n=Math.max(1,o.y+o.height)),this.__doResize({width:s,height:n,pixelRatio:r})}this.ready||this.__onReady()}__onNextRender(){if(this.viewReady){bs.run(this.__nextRenderWait);const{imageReady:e}=this;e&&!this.viewCompleted&&this.__checkViewCompleted(),e||(this.viewCompleted=!1,this.requestRender())}else this.requestRender()}__checkViewCompleted(e=!0){this.nextRender(()=>{this.imageReady&&(e&&this.emitLeafer(ut.VIEW_COMPLETED),bs.run(this.__viewCompletedWait),this.viewCompleted=!0)})}__onWatchData(){this.watcher.childrenChanged&&this.interaction&&this.nextRender(()=>this.interaction.updateCursor())}waitInit(e,t){t&&(e=e.bind(t)),this.__initWait||(this.__initWait=[]),this.canvas?e():this.__initWait.push(e)}waitReady(e,t){t&&(e=e.bind(t)),this.ready?e():this.__readyWait.push(e)}waitViewReady(e,t){t&&(e=e.bind(t)),this.viewReady?e():this.__viewReadyWait.push(e)}waitViewCompleted(e,t){t&&(e=e.bind(t)),this.__viewCompletedWait.push(e),this.viewCompleted?this.__checkViewCompleted(!1):this.running||this.start()}nextRender(e,t,i){t&&(e=e.bind(t));const s=this.__nextRenderWait;if(i){for(let n=0;n<s.length;n++)if(s[n]===e){s.splice(n,1);break}}else s.push(e);this.requestRender()}zoom(e,t,i,s){return nt.need("view")}getValidMove(e,t,i){return{x:e,y:t}}getValidScale(e){return e}getWorldPointByClient(e,t){return this.interaction&&this.interaction.getLocal(e,t)}getPagePointByClient(e,t){return this.getPagePoint(this.getWorldPointByClient(e,t))}getClientPointByWorld(e){const{x:t,y:i}=this.clientBounds;return{x:t+e.x,y:i+e.y}}updateClientBounds(){this.canvas&&this.canvas.updateClientBounds()}receiveEvent(e){}emitLeafer(e){this.emitEvent(new ut(e,this))}__listenEvents(){const e=we.start("FirstCreate "+this.innerName);this.once([[ut.START,()=>we.end(e)],[Lt.START,this.updateLazyBounds,this],[pt.START,this.__onCreated,this],[pt.END,this.__onViewReady,this]]),this.__eventIds.push(this.on_([[Ri.DATA,this.__onWatchData,this],[Lt.END,this.__onLayoutEnd,this],[pt.NEXT,this.__onNextRender,this]]))}__removeListenEvents(){this.off_(this.__eventIds)}destroy(e){const t=()=>{if(!this.destroyed){Nr.list.remove(this);try{this.stop(),this.emitLeafer(ut.END),this.__removeListenEvents(),this.__controllers.forEach(i=>!(this.parent&&i===this.interaction)&&i.destroy()),this.__controllers.length=0,this.parent||(this.selector&&this.selector.destroy(),this.hitCanvasManager&&this.hitCanvasManager.destroy(),this.canvasManager&&this.canvasManager.destroy()),this.canvas&&this.canvas.destroy(),this.config.view=this.parentApp=null,this.userConfig&&(this.userConfig.view=null),super.destroy(),setTimeout(()=>{Le.clearRecycled()},100)}catch(i){p9.error(i)}}};e?t():setTimeout(t)}};te.list=new wt,f([Et(e9)],te.prototype,"__",void 0),f([tt()],te.prototype,"pixelRatio",void 0),f([mt("normal")],te.prototype,"mode",void 0),te=Nr=f([Tt()],te);let J=class extends C{get __tag(){return"Rect"}};f([Et(go)],J.prototype,"__",void 0),J=f([ue(g9),p0(),Tt()],J);const{add:Hl,includes:f9,scroll:_9}=P,Ni=J.prototype,y9=ht.prototype;let k=class extends ht{get __tag(){return"Box"}get isBranchLeaf(){return!0}get __useSelfBox(){return this.pathInputed}constructor(e){super(e),this.__layout.renderChanged||this.__layout.renderChange()}__updateStrokeSpread(){return 0}__updateRectRenderSpread(){return 0}__updateRenderSpread(){return this.__updateRectRenderSpread()||-1}__updateRectBoxBounds(){}__updateBoxBounds(e){if(this.children.length&&!this.__useSelfBox){const t=this.__;if(t.__autoSide){t.__hasSurface&&this.__extraUpdate(),super.__updateBoxBounds();const{boxBounds:i}=this.__layout;t.__autoSize||(t.__autoWidth?(i.width+=i.x,i.x=0,i.height=t.height,i.y=0):(i.height+=i.y,i.y=0,i.width=t.width,i.x=0)),this.__updateNaturalSize()}else this.__updateRectBoxBounds()}else this.__updateRectBoxBounds()}__updateStrokeBounds(){}__updateRenderBounds(){let e,t;if(this.children.length){const i=this.__,s=this.__layout,{renderBounds:n,boxBounds:r}=s,{overflow:o}=i,a=s.childrenRenderBounds||(s.childrenRenderBounds={x:0,y:0,width:0,height:0});super.__updateRenderBounds(a),(t=o&&o.includes("scroll"))&&(Hl(a,r),_9(a,i)),this.__updateRectRenderBounds(),e=!f9(r,a),e&&o==="show"&&Hl(n,a)}else this.__updateRectRenderBounds();q.stintSet(this,"isOverflow",e),this.__checkScroll(t)}__updateRectRenderBounds(){}__checkScroll(e){}__updateRectChange(){}__updateChange(){super.__updateChange(),this.__updateRectChange()}__renderRect(e,t){}__renderGroup(e,t){}__render(e,t){this.__.__drawAfterFill?this.__renderRect(e,t):(this.__renderRect(e,t),this.children.length&&this.__renderGroup(e,t)),this.hasScroller&&this.scroller.__render(e,t)}__drawContent(e,t){this.__renderGroup(e,t),(this.__.__useStroke||this.__.__useEffect)&&(e.setWorld(this.__nowWorld),this.__drawRenderPath(e))}};f([Et(gi)],k.prototype,"__",void 0),f([tt(100)],k.prototype,"width",void 0),f([tt(100)],k.prototype,"height",void 0),f([mt(!1)],k.prototype,"resizeChildren",void 0),f([$1("show")],k.prototype,"overflow",void 0),f([Me(Ni.__updateStrokeSpread)],k.prototype,"__updateStrokeSpread",null),f([Me(Ni.__updateRenderSpread)],k.prototype,"__updateRectRenderSpread",null),f([Me(Ni.__updateBoxBounds)],k.prototype,"__updateRectBoxBounds",null),f([Me(Ni.__updateStrokeBounds)],k.prototype,"__updateStrokeBounds",null),f([Me(Ni.__updateRenderBounds)],k.prototype,"__updateRectRenderBounds",null),f([Me(Ni.__updateChange)],k.prototype,"__updateRectChange",null),f([Me(Ni.__render)],k.prototype,"__renderRect",null),f([Me(y9.__render)],k.prototype,"__renderGroup",null),k=f([p0(),Tt()],k);let n0=class extends k{get __tag(){return"Frame"}get isFrame(){return!0}};f([J7()],n0.prototype,"frame",void 0),f([Et(i9)],n0.prototype,"__",void 0),f([We("#FFFFFF")],n0.prototype,"fill",void 0),f([$1("hide")],n0.prototype,"overflow",void 0),n0=f([Tt()],n0);const{moveTo:aa,closePath:la,ellipse:A0}
1=Gt,{tempPoint:Gn,set:Nl,rotate:x9}=A,{abs:m9}=Math,Xl={};let Bt=class extends C{get __tag(){return"Ellipse"}__updatePath(){const e=this.__,{width:t,height:i,innerRadius:s,startAngle:n,endAngle:r,closed:o}=e,a=t/2,l=i/2,h=e.path=[];let c,d,g;if((n||r)&&(d=!0),d&&(g=m9(r-n)===360),s){const u=s<1||o,p=a*s,_=l*s;d?(A0(h,a,l,a,l,0,n,r),u?(g&&(la(h),Nl(Gn,a+p,l),Nl(Xl,a,l),x9(Gn,r,Xl,a,l),aa(h,Gn.x,Gn.y)),A0(h,a,l,p,_,0,r,n,!0)):g||(c=!0)):(A0(h,a,l,a,l),u&&(la(h),aa(h,a+p,l),A0(h,a,l,p,_,0,360,0,!0)))}else d?(g||(o||(c=!0),c||aa(h,a,l)),A0(h,a,l,a,l,0,n,r)):A0(h,a,l,a,l);c||la(h),(L.ellipseToCurve||e.__useArrow||e.cornerRadius)&&(e.path=this.getPath(!0))}};f([Et(s9)],Bt.prototype,"__",void 0),f([St(0)],Bt.prototype,"innerRadius",void 0),f([St(0)],Bt.prototype,"startAngle",void 0),f([St(0)],Bt.prototype,"endAngle",void 0),Bt=f([Tt()],Bt);const{sin:Yl,cos:jl,PI:w9}=Math,{moveTo:Ul,lineTo:v9,closePath:C9,drawPoints:b9}=Gt;let Ee=class extends C{get __tag(){return"Polygon"}get isPointsMode(){return this.points&&!this.pathInputed}__updatePath(){const e=this.__,t=e.path=[];if(e.points)b9(t,e.points,e.curve,e.closed,e);else{const{width:i,height:s,sides:n,startAngle:r}=e,o=i/2,a=s/2;let l,h=0;r?(h=r*lt,Ul(t,o+o*Yl(h),a-a*jl(h))):Ul(t,o,0);for(let c=1;c<n;c++)l=2*c*w9/n+h,v9(t,o+o*Yl(l),a-a*jl(l));C9(t)}}};f([Et(n9)],Ee.prototype,"__",void 0),f([St(3)],Ee.prototype,"sides",void 0),f([St(0)],Ee.prototype,"startAngle",void 0),f([St()],Ee.prototype,"points",void 0),f([St(0)],Ee.prototype,"curve",void 0),Ee=f([p0(),Tt()],Ee);const{sin:Vl,cos:Gl,PI:k9}=Math,{moveTo:ql,lineTo:B9,closePath:S9}=Gt;let Si=class extends C{get __tag(){return"Star"}__updatePath(){const{width:e,height:t,corners:i,innerRadius:s,startAngle:n}=this.__,r=e/2,o=t/2,a=this.__.path=[];let l,h=0;n?(h=n*lt,ql(a,r+r*Vl(h),o-o*Gl(h))):ql(a,r,0);for(let c=1;c<2*i;c++)l=c*k9/i+h,B9(a,r+(c%2==0?r:r*s)*Vl(l),o-(c%2==0?o:o*s)*Gl(l));S9(a)}};f([Et(r9)],Si.prototype,"__",void 0),f([St(5)],Si.prototype,"corners",void 0),f([St(.382)],Si.prototype,"innerRadius",void 0),f([St(0)],Si.prototype,"startAngle",void 0),Si=f([Tt()],Si);const{moveTo:E9,lineTo:T9,drawPoints:A9}=Gt,{rotate:L9,getAngle:R9,getDistance:P9,defaultPoint:Kl}=A;let ce=class extends C{get __tag(){return"Line"}get isPointsMode(){return this.points&&!this.pathInputed}get toPoint(){const{width:e,rotation:t}=this.__,i={x:0,y:0};return e&&(i.x=e),t&&L9(i,t),i}set toPoint(e){this.width=P9(Kl,e),this.rotation=R9(Kl,e),this.height&&(this.height=0)}__updatePath(){const e=this.__,t=e.path=[];e.points?A9(t,e.points,e.curve,e.closed,e):(E9(t,0,0),T9(t,this.width,0))}};f([Et(Q1)],ce.prototype,"__",void 0),f([pn("center")],ce.prototype,"strokeAlign",void 0),f([tt(0)],ce.prototype,"height",void 0),f([St()],ce.prototype,"points",void 0),f([St(0)],ce.prototype,"curve",void 0),f([St(!1)],ce.prototype,"closed",void 0),ce=f([Tt()],ce);let Ti=class extends J{get __tag(){return"Image"}get ready(){const{image:e}=this;return e&&e.ready}get image(){const{fill:e}=this.__;return et(e)&&e[0].image}};f([Et(nc)],Ti.prototype,"__",void 0),f([tt("")],Ti.prototype,"url",void 0),Ti=f([Tt()],Ti);const Hf=Ti;let ni=class extends J{get __tag(){return"Canvas"}get context(){return this.canvas.context}get ready(){return!this.url}constructor(e){super(e),this.canvas=bt.canvas(this.__),e&&e.url&&this.drawImage(e.url)}drawImage(e){new lo({url:e}).load(t=>{this.context.drawImage(t.view,0,0),this.url=void 0,this.paint(),this.emitEvent(new He(He.LOADED,{image:t}))})}draw(e,t,i,s){const n=new $t(e.worldTransform).invert(),r=new $t;t&&r.translate(t.x,t.y),i&&(it(i)?r.scale(i):r.scale(i.x,i.y)),s&&r.rotate(s),n.multiplyParent(r),e.__render(this.canvas,{matrix:n.withScale()}),this.paint()}paint(){this.forceRender()}__drawContent(e,t){const{width:i,height:s}=this.__,{view:n}=this.canvas;e.drawImage(n,0,0,n.width,n.height,0,0,i,s)}__updateSize(){const{canvas:e}=this;if(e){const{smooth:t,safeResize:i}=this.__;e.resize(this.__,i),e.smooth!==t&&(e.smooth=t)}}destroy(){this.canvas&&(this.canvas.destroy(),this.canvas=null),super.destroy()}};f([Et(c9)],ni.prototype,"__",void 0),f([ks(100)],ni.prototype,"width",void 0),f([ks(100)],ni.prototype,"height",void 0),f([ks(1)],ni.prototype,"pixelRatio",void 0),f([ks(!0)],ni.prototype,"smooth",void 0),f([mt(!1)],ni.prototype,"safeResize",void 0),f([ks()],ni.prototype,"contextSettings",void 0),ni=f([Tt()],ni);const{copyAndSpread:F9,includes:M9,setList:D9}=P,{stintSet:ha}=q;let j=class extends C{get __tag(){return"Text"}get textDrawData(){return this.updateLayout(),this.__.__textDrawData}
1__updateTextDrawData(){const e=this.__,{lineHeight:t,letterSpacing:i,wordSpacing:s,fontFamily:n,fontSize:r,fontWeight:o,italic:a,textCase:l,textOverflow:h,padding:c,width:d,height:g}=e;e.__lineHeight=Pi.number(t,r),e.__letterSpacing=Pi.number(i,r),e.__wordSpacing=Pi.number(s,r),e.__baseLine=e.__lineHeight-(e.__lineHeight-.7*r)/2,e.__font=`${a?"italic ":""}${l==="small-caps"?"small-caps ":""}${o!=="normal"?o+" ":""}${r||12}px ${n||"caption"}`,ha(e,"__padding",c&&ct.fourNumber(c)),ha(e,"__clipText",h!=="show"&&!e.__autoSize),ha(e,"__isCharMode",d||g||e.__letterSpacing||e.__wordSpacing||e.motionText||l!=="none"),e.__textDrawData=sc.getDrawData((e.__isPlacehold=e.placeholder&&e.text==="")?e.placeholder:e.text,this.__)}__updateBoxBounds(){const e=this.__,t=this.__layout,{fontSize:i,italic:s,padding:n,__autoWidth:r,__autoHeight:o}=e;this.__updateTextDrawData();const{bounds:a}=e.__textDrawData,l=t.boxBounds;if(t.contentBounds=a,e.__lineHeight<i&&(t.renderChanged=!0),r||o){if(l.x=r?a.x:0,l.y=o?a.y:0,l.width=r?a.width:e.width,l.height=o?a.height:e.height,n){const[h,c,d,g]=e.__padding;r&&(l.x-=g,l.width+=c+g),o&&(l.y-=h,l.height+=d+h)}this.__updateNaturalSize()}else super.__updateBoxBounds();s&&(l.width+=.16*i),q.stintSet(this,"isOverflow",!M9(l,a)&&!e.motionText),this.isOverflow?(D9(e.__textBoxBounds={},[l,a]),t.renderChanged=!0):e.__textBoxBounds=l}__updateRenderSpread(){let e=super.__updateRenderSpread();e||(e=this.isOverflow?1:0);const{__lineHeight:t,fontSize:i}=this.__;return t<i&&(e=cn.max(e,(i-t)/2)),e}__updateRenderBounds(){const{renderBounds:e,renderSpread:t}=this.__layout;F9(e,this.__.__textBoxBounds,t),this.__box&&(this.__box.__layout.renderBounds=e)}__updateChange(){super.__updateChange();const e=this.__box;e&&(e.__onUpdateSize(),e.__updateChange())}__drawRenderPath(e){e.font=this.__.__font}__draw(e,t,i){const s=this.__box;s&&(s.__nowWorld=this.__nowWorld,s.__draw(e,t,i)),this.textEditing&&!t.exporting||super.__draw(e,t,i)}__drawShape(e,t){t.shape&&this.__box&&this.__box.__drawShape(e,t),super.__drawShape(e,t)}destroy(){this.boxStyle&&(this.boxStyle=null),super.destroy()}};f([Et(h9)],j.prototype,"__",void 0),f([tt(0)],j.prototype,"width",void 0),f([tt(0)],j.prototype,"height",void 0),f([We()],j.prototype,"boxStyle",void 0),f([mt(!1)],j.prototype,"resizeFontSize",void 0),f([We("#000000")],j.prototype,"fill",void 0),f([pn("outside")],j.prototype,"strokeAlign",void 0),f([bi("all")],j.prototype,"hitFill",void 0),f([tt("")],j.prototype,"text",void 0),f([tt("")],j.prototype,"placeholder",void 0),f([tt("caption")],j.prototype,"fontFamily",void 0),f([tt(12)],j.prototype,"fontSize",void 0),f([tt("normal")],j.prototype,"fontWeight",void 0),f([tt(!1)],j.prototype,"italic",void 0),f([tt("none")],j.prototype,"textCase",void 0),f([tt("none")],j.prototype,"textDecoration",void 0),f([tt(0)],j.prototype,"letterSpacing",void 0),f([tt(0)],j.prototype,"wordSpacing",void 0),f([tt({type:"percent",value:1.5})],j.prototype,"lineHeight",void 0),f([tt(0)],j.prototype,"paraIndent",void 0),f([tt(0)],j.prototype,"paraSpacing",void 0),f([tt("x")],j.prototype,"writingMode",void 0),f([tt("left")],j.prototype,"textAlign",void 0),f([tt("top")],j.prototype,"verticalAlign",void 0),f([tt(!0)],j.prototype,"autoSizeAlign",void 0),f([tt("normal")],j.prototype,"textWrap",void 0),f([tt("show")],j.prototype,"textOverflow",void 0),f([We(!1)],j.prototype,"textEditing",void 0),j=f([Tt()],j);let Vt=class extends C{get __tag(){return"Path"}};f([Et(o9)],Vt.prototype,"__",void 0),f([pn("center")],Vt.prototype,"strokeAlign",void 0),Vt=f([Tt()],Vt);let Qs=class extends ht{get __tag(){return"Pen"}setStyle(e){const t=this.pathElement=new Vt(e);return this.pathStyle=e,this.__path=t.path||(t.path=[]),this.add(t),this}paint(){const{pathElement:e}=this;e.__layout.boxChanged||e.forceUpdate("path")}};f([Et(a9)],Qs.prototype,"__",void 0),f([(e,t)=>{fe(e,t,{get(){return this.__path}})}],Qs.prototype,"path",void 0),Qs=f([ue(G4,["set","path","paint"]),Tt()],Qs);let $r=class extends te{get __tag(){return"App"}get isApp(){return!0}constructor(e,t){super(e,t)}init(e,t){if(super.init(e,t),e){const{ground:i,tree:s,sky:n,editor:r}=e;i&&(this.ground=this.addLeafer(i)),(s||r)&&(this.tree=this.addLeafer(s||{type:e.type||"design"})),(n||r)&&(this.sky=this.addLeafer(n)),r&&bt.editor(r,this)}}__setApp(){const{canvas:e}=this,{realCanvas:t,view:i}=this.config;t||i===this.canvas.view||!e.parentView?this.realCanvas=!0:e.unrealCanvas(),this.leafer=this,this.watcher.disable(),this.layouter.disable()}
1__updateLocalBounds(){this.forEach(e=>e.updateLayout()),super.__updateLocalBounds()}start(){super.start(),this.forEach(e=>e.start())}stop(){this.forEach(e=>e.stop()),super.stop()}unlockLayout(){super.unlockLayout(),this.forEach(e=>e.unlockLayout())}lockLayout(){super.lockLayout(),this.forEach(e=>e.lockLayout())}forceRender(e,t){this.forEach(i=>i.forceRender(e,t))}addLeafer(e){const t=new te(e);return this.add(t),t}add(e,t){if(!e.view){if(this.realCanvas&&!this.canvas.bounds)return void setTimeout(()=>this.add(e,t),10);e.init(this.__getChildConfig(e.userConfig),this)}super.add(e,t),M(t)||(e.canvas.childIndex=t),this.__listenChildEvents(e)}forEach(e){this.children.forEach(e)}__onCreated(){this.created=this.children.every(e=>e.created)}__onReady(){this.children.every(e=>e.ready)&&super.__onReady()}__onViewReady(){this.children.every(e=>e.viewReady)&&super.__onViewReady()}__onChildRenderEnd(e){this.renderer.addBlock(e.renderBounds),this.viewReady&&this.renderer.update()}__render(e,t){e.context&&this.forEach(i=>t.matrix?i.__render(e,t):e.copyWorld(i.canvas,t.bounds,void 0,void 0,!0))}__onResize(e){this.forEach(t=>t.resize(e)),super.__onResize(e)}updateLayout(){this.forEach(e=>e.updateLayout())}__getChildConfig(e){const t=Object.assign({},this.config);return t.hittable=t.realCanvas=void 0,e&&q.assign(t,e),this.autoLayout&&q.copyAttrs(t,this,Ie),t.view=this.realCanvas?void 0:this.view,t.fill=void 0,t}__listenChildEvents(e){e.once([[Lt.END,this.__onReady,this],[pt.START,this.__onCreated,this],[pt.END,this.__onViewReady,this]]),this.realCanvas&&this.__eventIds.push(e.on_(pt.END,this.__onChildRenderEnd,this))}};$r=f([Tt()],$r);const qn={},ts={isHoldSpaceKey:()=>ts.isHold("Space"),isHold:e=>qn[e],isHoldKeys:(e,t)=>t?e(t):void 0,setDownCode(e){qn[e]||(qn[e]=!0)},setUpCode(e){qn[e]=!1}},De={LEFT:1,RIGHT:2,MIDDLE:4,defaultLeft(e){e.buttons||(e.buttons=1)},left:e=>e.buttons===1,right:e=>e.buttons===2,middle:e=>e.buttons===4};class t2 extends Xe{get spaceKey(){return ts.isHoldSpaceKey()}get left(){return De.left(this)}get right(){return De.right(this)}get middle(){return De.middle(this)}constructor(t){super(t.type),this.bubbles=!0,Object.assign(this,t)}isHoldKeys(t){return ts.isHoldKeys(t,this)}getBoxPoint(t){return(t||this.current).getBoxPoint(this)}getInnerPoint(t){return(t||this.current).getInnerPoint(this)}getLocalPoint(t){return(t||this.current).getLocalPoint(this)}getPagePoint(){return this.current.getPagePoint(this)}getInner(t){return this.getInnerPoint(t)}getLocal(t){return this.getLocalPoint(t)}getPage(){return this.getPagePoint()}static changeName(t,i){rs.changeName(t,i)}}const{min:Zl,max:ca,abs:$l}=Math,{float:Ht,sign:Jl}=ct,{minX:Ql,maxX:th,minY:eh,maxY:ih}=P,vt=new rt,ri=new rt,as={limitMove(e,t){const{dragBounds:i,dragBoundsType:s}=e;i&&oi.getValidMove(e.__localBoxBounds,oi.getDragBounds(e),s,t,!0),oi.axisMove(e,t)},limitScaleOf(e,t,i,s){const{dragBounds:n,dragBoundsType:r}=e;n&&oi.getValidScaleOf(e.__localBoxBounds,oi.getDragBounds(e),r,e.getLocalPointByInner(e.getInnerPointByBox(t)),i,s,!0)},axisMove(e,t){const{draggable:i}=e;i==="x"&&(t.y=0),i==="y"&&(t.x=0)},getDragBounds(e){const{dragBounds:t}=e;return t==="parent"?e.parent.boxBounds:t},isInnerMode:(e,t,i,s)=>i==="inner"||i==="auto"&&Ht(e[s])>Ht(t[s]),getValidMove(e,t,i,s,n){const r=e.x+s.x,o=e.y+s.y,a=r+e.width,l=o+e.height,h=t.x+t.width,c=t.y+t.height;return n||(s=Object.assign({},s)),oi.isInnerMode(e,t,i,"width")?r>t.x?s.x+=t.x-r:a<h&&(s.x+=h-a):r<t.x?s.x+=t.x-r:a>h&&(s.x+=h-a),oi.isInnerMode(e,t,i,"height")?o>t.y?s.y+=t.y-o:l<c&&(s.y+=c-l):o<t.y?s.y+=t.y-o:l>c&&(s.y+=c-l),s.x=Ht(s.x),s.y=Ht(s.y),s},getValidScaleOf(e,t,i,s,n,r,o){o||(n=Object.assign({},n)),ri.set(t),vt.set(e).scaleOf(s,n.x,n.y);const a=Ht((s.x-e.x)/e.width),l=Ht(1-a),h=Ht((s.y-e.y)/e.height),c=Ht(1-h);let d,g,u,p,_=1,y=1;return oi.isInnerMode(e,t,i,"width")?(n.x<0&&vt.scaleOf(s,_=1/n.x,1),u=Ht(vt.minX-ri.minX),p=Ht(ri.maxX-vt.maxX),d=a&&u>0?1+u/(a*vt.width):1,g=l&&p>0?1+p/(l*vt.width):1,_*=ca(d,g)):(n.x<0&&((Ht(Ql(e)-Ql(t),2)<=0||Ht(th(t)-th(e),2)<=0)&&(vt.scaleOf(s,_=1/n.x,1),vt.width>1&&(_*=1/vt.width,vt.width=1)),vt.unsign()),u=Ht(ri.minX-vt.minX),p=Ht(vt.maxX-ri.maxX),d=a&&u>0?1-u/(a*vt.width):1,g=l&&p>
10?1-p/(l*vt.width):1,_*=Zl(d,g)),oi.isInnerMode(e,t,i,"height")?(n.y<0&&vt.scaleOf(s,1,y=1/n.y),u=Ht(vt.minY-ri.minY),p=Ht(ri.maxY-vt.maxY),d=h&&u>0?1+u/(h*vt.height):1,g=c&&p>0?1+p/(c*vt.height):1,y*=ca(d,g),r&&(d=ca($l(_),$l(y)),_=Jl(_)*d,y=Jl(y)*d)):(n.y<0&&((Ht(eh(e)-eh(t),2)<=0||Ht(ih(t)-ih(e),2)<=0)&&(vt.scaleOf(s,1,y=1/n.y),vt.height>1&&(y*=1/vt.height,vt.height=1)),vt.unsign()),u=Ht(ri.minY-vt.minY),p=Ht(vt.maxY-ri.maxY),d=h&&u>0?1-u/(h*vt.height):1,g=c&&p>0?1-p/(c*vt.height):1,y*=Zl(d,g)),n.x*=g1(_)?_:1,n.y*=g1(y)?y:1,n}},oi=as;let W=class extends t2{};W.POINTER="pointer",W.BEFORE_DOWN="pointer.before_down",W.BEFORE_MOVE="pointer.before_move",W.BEFORE_UP="pointer.before_up",W.DOWN="pointer.down",W.MOVE="pointer.move",W.UP="pointer.up",W.OVER="pointer.over",W.OUT="pointer.out",W.ENTER="pointer.enter",W.LEAVE="pointer.leave",W.TAP="tap",W.DOUBLE_TAP="double_tap",W.CLICK="click",W.DOUBLE_CLICK="double_click",W.LONG_PRESS="long_press",W.LONG_TAP="long_tap",W.MENU="pointer.menu",W.MENU_TAP="pointer.menu_tap",W=f([ui()],W);const Nf=W,Ss={};let G=class extends W{static setList(e){this.list=e instanceof wt?e:new wt(e)}static setData(e){this.data=e}static getValidMove(e,t,i,s=!0){const n=e.getLocalPoint(i,null,!0);return A.move(n,t.x-e.x,t.y-e.y),s&&this.limitMove(e,n),as.axisMove(e,n),n}static limitMove(e,t){as.limitMove(e,t)}getPageMove(e){return this.assignMove(e),this.current.getPagePoint(Ss,null,!0)}getInnerMove(e,t){return e||(e=this.current),this.assignMove(t),e.getInnerPoint(Ss,null,!0)}getLocalMove(e,t){return e||(e=this.current),this.assignMove(t),e.getLocalPoint(Ss,null,!0)}getPageTotal(){return this.getPageMove(!0)}getInnerTotal(e){return this.getInnerMove(e,!0)}getLocalTotal(e){return this.getLocalMove(e,!0)}getPageBounds(){const e=this.getPageTotal(),t=this.getPagePoint(),i={};return P.set(i,t.x-e.x,t.y-e.y,e.x,e.y),P.unsign(i),i}assignMove(e){Ss.x=e?this.totalX:this.moveX,Ss.y=e?this.totalY:this.moveY}};G.BEFORE_DRAG="drag.before_drag",G.START="drag.start",G.DRAG="drag",G.END="drag.end",G.OVER="drag.over",G.OUT="drag.out",G.ENTER="drag.enter",G.LEAVE="drag.leave",G.ANIMATE="drag.animate",G=f([ui()],G);const Xf=G;let sn=class extends W{static setList(e){G.setList(e)}static setData(e){G.setData(e)}};sn.DROP="drop",sn=f([ui()],sn);let ft=class extends G{};ft.BEFORE_MOVE="move.before_move",ft.START="move.start",ft.MOVE="move",ft.DRAG_ANIMATE="move.drag_animate",ft.END="move.end",ft.PULL_DOWN="move.pull_down",ft.REACH_BOTTOM="move.reach_bottom",ft=f([ui()],ft);let B1=class extends t2{};B1=f([ui()],B1);const Yf=B1;let de=class extends W{};de.BEFORE_ROTATE="rotate.before_rotate",de.START="rotate.start",de.ROTATE="rotate",de.END="rotate.end",de=f([ui()],de);let Oe=class extends G{};Oe.SWIPE="swipe",Oe.LEFT="swipe.left",Oe.RIGHT="swipe.right",Oe.UP="swipe.up",Oe.DOWN="swipe.down",Oe=f([ui()],Oe);let Xt=class extends W{};Xt.BEFORE_ZOOM="zoom.before_zoom",Xt.START="zoom.start",Xt.ZOOM="zoom",Xt.END="zoom.end",Xt=f([ui()],Xt);let Zt=class extends t2{};Zt.BEFORE_DOWN="key.before_down",Zt.BEFORE_UP="key.before_up",Zt.DOWN="key.down",Zt.HOLD="key.hold",Zt.UP="key.up",Zt=f([ui()],Zt);const Ne={getDragEventData:(e,t,i)=>Object.assign(Object.assign({},i),{x:i.x,y:i.y,moveX:i.x-t.x,moveY:i.y-t.y,totalX:i.x-e.x,totalY:i.y-e.y}),getDropEventData:(e,t,i)=>Object.assign(Object.assign({},e),{list:t,data:i}),getSwipeDirection:e=>e<-45&&e>-135?Oe.UP:e>45&&e<135?Oe.DOWN:e<=45&&e>=-45?Oe.RIGHT:Oe.LEFT,getSwipeEventData:(e,t,i)=>Object.assign(Object.assign({},i),{moveX:t.moveX,moveY:t.moveY,totalX:i.x-e.x,totalY:i.y-e.y,type:O9.getSwipeDirection(A.getAngle(e,i))}),getBase(e){const t=e.button===1?4:e.button;return{altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,time:Date.now(),buttons:M(e.buttons)?1:e.buttons===0?t:e.buttons,origin:e}},pathHasEventType(e,t){const{list:i}=e;for(let s=0,n=i.length;s<n;s++)if(i[s].hasEvent(t))return!0;return!1},filterPathByEventType(e,t){const i=new wt,{list:s}=e;for(let n=0,r=s.length;n<r;n++)s[n].hasEvent(t)&&i.add(s[n]);return i},pathCanDrag:e=>e&&e.list.some(t=>$.draggable(t)||!t.isLeafer&&t.hasEvent(G.DRAG)),pathHasOutside:e=>e&&e.list.some(t=>t.isOutside)},O9=Ne,sh=new wt,{getDragEventData:da,getDropEventData:I9,getSwipeEventData:W9}=Ne;class rc{constructor(t){this.dragDataList=[],this.interaction=t}setDragData(t){this.animateWait&&this.dragEndReal(),this.downData=this.interaction.downData,this.dragData=da(t,t,t),this.canAnimate=this.canDragOut=!0}getList(t,i){const{proxy:s}=this.interaction.selector,n=s&&s.list.length,r=G.list||this.draggableList||sh;return this.dragging&&(n?t?sh:new wt(i?[...s.list,...s.dragHoverExclude]:s.list):r)}checkDrag(t,i){const{interaction:s}=this;if(this.moving&&t.buttons<1)return this.canAnimate=!1,void s.pointerCancel();!this.moving&&i&&(this.moving=s.canMove(this.downData)||s.isHoldRightKey||s.isMobileDragEmpty)&&(this.dragData.moveType="drag",s.emit(ft.START,this.dragData)),this.moving||this.dragStart(t,i),this.drag(t)}dragStart(t,i){this.dragging||(this.dragging=i&&De.left(t),this.dragging&&(this.interaction.emit(G.START,this.dragData),this.getDraggableList(this.dragData.path),this.setDragStartPoints(this.realDraggableList=this.getList(!0))))}setDragStartPoints(t){this.dragStartPoints={},t.forEach(i=>
1this.dragStartPoints[i.innerId]={x:i.x,y:i.y})}getDraggableList(t){let i;for(let s=0,n=t.length;s<n;s++)if(i=t.list[s],$.draggable(i)){this.draggableList=new wt(i);break}}drag(t){const{interaction:i,dragData:s,downData:n}=this,{path:r,throughPath:o}=n;this.dragData=da(n,s,t),o&&(this.dragData.throughPath=o),this.dragData.path=r,this.dragDataList.push(this.dragData),this.moving?(t.moving=!0,this.dragData.moveType="drag",i.emit(ft.BEFORE_MOVE,this.dragData),i.emit(ft.MOVE,this.dragData)):this.dragging&&(t.dragging=!0,this.dragReal(),i.emit(G.BEFORE_DRAG,this.dragData),i.emit(G.DRAG,this.dragData))}dragReal(t){const{interaction:i}=this,{running:s}=i,n=this.realDraggableList;if(n.length&&s){const{totalX:r,totalY:o}=this.dragData,{dragLimitAnimate:a}=i.p,l=!a||!!t;n.forEach(h=>{if(h.draggable){const c=V(h.draggable),d=G.getValidMove(h,this.dragStartPoints[h.innerId],{x:r,y:o},l||c);a&&!c&&t?$.animateMove(h,d,it(a)?a:.3,()=>h.emit(G.ANIMATE)):h.move(d)}})}}dragOverOrOut(t){const{interaction:i}=this,{dragOverPath:s}=this,{path:n}=t;this.dragOverPath=n,s?n.indexAt(0)!==s.indexAt(0)&&(i.emit(G.OUT,t,s),i.emit(G.OVER,t,n)):i.emit(G.OVER,t,n)}dragEnterOrLeave(t){const{interaction:i}=this,{dragEnterPath:s}=this,{path:n}=t;i.emit(G.LEAVE,t,s,n),i.emit(G.ENTER,t,n,s),this.dragEnterPath=n}dragEnd(t){(this.dragging||this.moving)&&(setTimeout(()=>this.interaction.pointerMove(t)),this.checkDragEndAnimate(t)||this.dragEndReal(t))}dragEndReal(t){const{interaction:i,downData:s,dragData:n}=this;t||(t=n);const{path:r,throughPath:o}=s,a=da(s,t,t);if(o&&(a.throughPath=o),a.path=r,this.moving&&(this.moving=!1,a.moveType="drag",i.emit(ft.END,a)),this.dragging){const l=this.getList();this.dragging=!1,i.p.dragLimitAnimate&&this.dragReal(!0),i.emit(G.END,a),this.swipe(t,s,n,a),this.drop(t,l,this.dragEnterPath)}this.autoMoveCancel(),this.dragReset(),this.animate(null,"off")}swipe(t,i,s,n){const{interaction:r}=this;if(A.getDistance(i,t)>r.config.pointer.swipeDistance){const o=W9(i,s,n);this.interaction.emit(o.type,o)}}drop(t,i,s){const n=I9(t,i,G.data);n.path=s,this.interaction.emit(sn.DROP,n),this.interaction.emit(G.LEAVE,t,s)}dragReset(){G.list=G.data=this.draggableList=this.dragData=this.downData=this.dragOverPath=this.dragEnterPath=null,this.dragDataList=[]}checkDragEndAnimate(t,i){return!1}animate(t,i){}stopAnimate(){}checkDragOut(t){}autoMoveOnDragOut(t){}autoMoveCancel(){}destroy(){this.dragReset()}}const z9=ot.get("emit"),H9=["move","zoom","rotate","key"];function nh(e,t,i,s,n){if(H9.some(r=>t.startsWith(r))&&e.__.hitChildren&&!oc(e,n)){let r;for(let o=0,a=e.children.length;o<a;o++)r=e.children[o],!i.path.has(r)&&r.__.hittable&&S1(r,t,i,s,n)}}function S1(e,t,i,s,n){if(e.destroyed)return!1;if(e.__.hitSelf&&!oc(e,n)&&(gt.updateEventStyle&&!s&>.updateEventStyle(e,t),e.hasEvent(t,s))){i.phase=s?1:e===i.target?2:3;const r=rs.get(t,i);if(e.emitEvent(r,s),r.isStop)return!0}return!1}function oc(e,t){return t&&t.has(e)}const N9={wheel:{zoomSpeed:.5,moveSpeed:.5,rotateSpeed:.5,delta:{x:20,y:8}},pointer:{type:"pointer",snap:!0,hitRadius:5,tapTime:120,longPressTime:800,transformTime:500,hover:!0,dragHover:!0,dragDistance:2,swipeDistance:20},touch:{preventDefault:"auto"},multiTouch:{},move:{autoDistance:2},zoom:{},cursor:!0,keyEvent:!0},{pathHasEventType:ua,pathCanDrag:X9,pathHasOutside:rh}=Ne;class ac{get dragging(){return this.dragger.dragging}get transforming(){return this.transformer.transforming}get moveMode(){return this.m.drag===!0||this.isHoldSpaceKey||this.isHoldMiddleKey||this.isHoldRightKey&&this.dragger.moving||this.isDragEmpty}get canHover(){return this.p.hover&&!this.config.mobile}get isDragEmpty(){return this.m.dragEmpty&&this.isRootPath(this.hoverData)&&(!this.downData||this.isRootPath(this.downData))}get isMobileDragEmpty(){return this.m.dragEmpty&&!this.canHover&&this.downData&&this.isTreePath(this.downData)}get isHoldMiddleKey(){return this.m.holdMiddleKey&&this.downData&&De.middle(this.downData)}get isHoldRightKey(){return this.m.holdRightKey&&this.downData&&De.right(this.downData)}get isHoldSpaceKey(){return this.m.holdSpaceKey&&ts.isHoldSpaceKey()}get m(){return this.config.move}get p(){return this.config.pointer}get hitRadius(){return this.p.hitRadius}constructor(t,i,s,n){this.config=q.clone(N9),this.tapCount=0,this.downKeyMap={},this.target=t,this.canvas=i,this.selector=s,this.defaultPath=new wt(t),this.createTransformer(),this.dragger=new rc(this),n&&(this.config=q.default(n,this.config)),this.__listenEvents()}start(){this.running=!0}stop(){this.running=!1}receive(t){}pointerDown(t,i){t||(t=this.hoverData),t&&(De.defaultLeft(t),this.updateDownData(t),this.checkPath(t,i),this.downTime=Date.now(),this.emit
1(W.BEFORE_DOWN,t),t.path.needUpdate&&this.updateDownData(t),this.emit(W.DOWN,t),De.left(t)&&(this.tapWait(),this.longPressWait(t)),this.waitRightTap=De.right(t),this.dragger.setDragData(t),this.isHoldRightKey||this.updateCursor(t))}pointerMove(t){if(t||(t=this.hoverData),!t)return;const{downData:i}=this;i&&De.defaultLeft(t),(this.canvas.bounds.hitPoint(t)||i)&&(this.pointerMoveReal(t),i&&this.dragger.checkDragOut(t))}pointerMoveReal(t){if(this.emit(W.BEFORE_MOVE,t,this.defaultPath),this.downData){const i=A.getDistance(this.downData,t)>this.p.dragDistance;i&&(this.pointerWaitCancel(),this.waitRightTap=!1),this.dragger.checkDrag(t,i)}this.dragger.moving||(this.updateHoverData(t),this.checkPath(t),this.emit(W.MOVE,t),this.pointerHover(t),this.dragging&&(this.dragger.dragOverOrOut(t),this.dragger.dragEnterOrLeave(t))),this.updateCursor(this.downData||t)}pointerUp(t){const{downData:i}=this;if(t||(t=i),!i)return;De.defaultLeft(t),t.multiTouch=i.multiTouch,this.findPath(t);const s=Object.assign(Object.assign({},t),{path:t.path.clone()});t.path.addList(i.path.list),this.checkPath(t),this.downData=null,this.emit(W.BEFORE_UP,t),this.emit(W.UP,t),this.touchLeave(t),t.isCancel||(this.tap(t),this.menuTap(t)),this.dragger.dragEnd(t),this.updateCursor(s)}pointerCancel(){const t=Object.assign({},this.dragger.dragData);t.isCancel=!0,this.pointerUp(t)}menu(t){this.findPath(t),this.emit(W.MENU,t),this.waitMenuTap=!0,!this.downData&&this.waitRightTap&&this.menuTap(t)}menuTap(t){this.waitRightTap&&this.waitMenuTap&&(this.emit(W.MENU_TAP,t),this.waitRightTap=this.waitMenuTap=!1)}createTransformer(){}move(t){}zoom(t){}rotate(t){}transformEnd(){}wheel(t){}multiTouch(t,i){}keyDown(t){if(!this.config.keyEvent)return;this.emit(Zt.BEFORE_DOWN,t,this.defaultPath);const{code:i}=t;this.downKeyMap[i]||(this.downKeyMap[i]=!0,ts.setDownCode(i),this.emit(Zt.HOLD,t,this.defaultPath),this.moveMode&&(this.cancelHover(),this.updateCursor())),this.emit(Zt.DOWN,t,this.defaultPath)}keyUp(t){if(!this.config.keyEvent)return;this.emit(Zt.BEFORE_UP,t,this.defaultPath);const{code:i}=t;this.downKeyMap[i]=!1,ts.setUpCode(i),this.emit(Zt.UP,t,this.defaultPath),this.cursor==="grab"&&this.updateCursor()}pointerHover(t){!this.canHover||this.dragging&&!this.p.dragHover||(t.path||(t.path=new wt),this.pointerOverOrOut(t),this.pointerEnterOrLeave(t))}pointerOverOrOut(t){const{path:i}=t,{overPath:s}=this;this.overPath=i,s?i.indexAt(0)!==s.indexAt(0)&&(this.emit(W.OUT,t,s),this.emit(W.OVER,t,i)):this.emit(W.OVER,t,i)}pointerEnterOrLeave(t){let{path:i}=t;this.downData&&!this.moveMode&&(i=i.clone(),this.downData.path.forEach(n=>i.add(n)));const{enterPath:s}=this;this.enterPath=i,this.emit(W.LEAVE,t,s,i),this.emit(W.ENTER,t,i,s)}touchLeave(t){t.pointerType==="touch"&&this.enterPath&&(this.emit(W.LEAVE,t),this.dragger.dragging&&this.emit(sn.LEAVE,t))}tap(t){const{pointer:i}=this.config,s=this.longTap(t);if(!i.tapMore&&s||!this.waitTap)return;i.tapMore&&this.emitTap(t);const n=Date.now()-this.downTime,r=[W.DOUBLE_TAP,W.DOUBLE_CLICK].some(o=>ua(t.path,o));n<i.tapTime+50&&r?(this.tapCount++,this.tapCount===2?(this.tapWaitCancel(),this.emitDoubleTap(t)):(clearTimeout(this.tapTimer),this.tapTimer=setTimeout(()=>{i.tapMore||(this.tapWaitCancel(),this.emitTap(t))},i.tapTime))):i.tapMore||(this.tapWaitCancel(),this.emitTap(t))}findPath(t,i){const{hitRadius:s,through:n}=this.p,{bottomList:r,target:o}=this;L.backgrounder||t.origin||o&&o.updateLayout();const a=this.selector.getByPoint(t,s,Object.assign({bottomList:r,name:t.type},i||{through:n}));return a.throughPath&&(t.throughPath=a.throughPath),t.path=a.path,a.path}isRootPath(t){return t&&t.path.list[0].isLeafer}isTreePath(t){const i=this.target.app;return!(!i||!i.isApp)&&i.editor&&!t.path.has(i.editor)&&t.path.has(i.tree)&&!t.target.syncEventer}checkPath(t,i){(i||this.moveMode&&!rh(t.path))&&(t.path=this.defaultPath)}canMove(t){return t&&(this.moveMode||this.m.drag==="auto"&&!X9(t.path))&&!rh(t.path)}isDrag(t){return this.dragger.getList().has(t)}isPress(t){return this.downData&&this.downData.path.has(t)}isHover(t){return this.enterPath&&this.enterPath.has(t)}isFocus(t){return this.focusData===t}cancelHover(){const{hoverData:t}=this;t&&(t.path=this.defaultPath,this.pointerHover(t))}stopDragAnimate(){this.dragger.stopAnimate()}replaceDownTarget(t){const{downData:i}=this;if(i&&t){const{path:s}=i;s.remove(s.list[0]),s.addAt(t,0)}}updateDownData(t,i,s){const{downData:n}=this;!t&&n&&(t=n),t&&(this.findPath(t,i),s&&n&&t.path.addList(n.path.list),this.downData=t)}updateHoverData(t){t||(t=this.hoverData),t&&(this.findPath(t,{exclude:this.dragger.getList(!1,!0),name:W.MOVE}),this.hoverData=t)}updateCursor(t){if(!this.config.cursor||!this.canHover)return;if(t||(this.updateHoverData(),t=this.downData||this.hoverData),this.dragger.moving)return this.setCursor("grabbing");if(this.canMove(t))return this.setCursor(this.downData?"grabbing":"grab");if(!t)return;let i,s;const{path:n}=t;
1for(let r=0,o=n.length;r<o&&(i=n.list[r],s=i.syncEventer&&i.syncEventer.cursor||i.cursor,!s);r++);this.setCursor(s)}setCursor(t){this.cursor=t}getLocal(t,i){const s=this.canvas.getClientBounds(i),n={x:t.clientX-s.x,y:t.clientY-s.y},{bounds:r}=this.canvas;return n.x*=r.width/s.width,n.y*=r.height/s.height,this.p.snap&&A.round(n),n}emitTap(t){this.emit(W.TAP,t),this.emit(W.CLICK,t)}emitDoubleTap(t){this.emit(W.DOUBLE_TAP,t),this.emit(W.DOUBLE_CLICK,t)}pointerWaitCancel(){this.tapWaitCancel(),this.longPressWaitCancel()}tapWait(){clearTimeout(this.tapTimer),this.waitTap=!0}tapWaitCancel(){this.waitTap&&(clearTimeout(this.tapTimer),this.waitTap=!1,this.tapCount=0)}longPressWait(t){clearTimeout(this.longPressTimer),this.longPressTimer=setTimeout(()=>{this.longPressed=!0,this.emit(W.LONG_PRESS,t)},this.p.longPressTime)}longTap(t){let i;return this.longPressed&&(this.emit(W.LONG_TAP,t),(ua(t.path,W.LONG_TAP)||ua(t.path,W.LONG_PRESS))&&(i=!0)),this.longPressWaitCancel(),i}longPressWaitCancel(){this.longPressTimer&&(clearTimeout(this.longPressTimer),this.longPressed=!1)}__onResize(){const{dragOut:t}=this.m;this.shrinkCanvasBounds=new rt(this.canvas.bounds),this.shrinkCanvasBounds.spread(-(it(t)?t:2))}__listenEvents(){const{target:t}=this;this.__eventIds=[t.on_(Qe.RESIZE,this.__onResize,this)],t.once(ut.READY,()=>this.__onResize())}__removeListenEvents(){this.target.off_(this.__eventIds),this.__eventIds.length=0}emit(t,i,s,n){this.running&&(function(r,o,a,l){if(!a&&!o.path)return;let h;o.type=r,a?o=Object.assign(Object.assign({},o),{path:a}):a=o.path,o.target=a.indexAt(0);try{for(let c=a.length-1;c>-1;c--){if(h=a.list[c],S1(h,r,o,!0,l))return;h.isApp&&nh(h,r,o,!0,l)}for(let c=0,d=a.length;c<d;c++)if(h=a.list[c],h.isApp&&nh(h,r,o,!1,l),S1(h,r,o,!1,l))return}catch(c){z9.error(c)}})(t,i,s,n)}destroy(){this.__eventIds.length&&(this.stop(),this.__removeListenEvents(),this.dragger.destroy(),this.transformer&&this.transformer.destroy(),this.downData=this.overPath=this.enterPath=null)}}class lc{static set(t,i){this.custom[t]=i}static get(t){return this.custom[t]}}lc.custom={};class Y9 extends W4{constructor(){super(...arguments),this.maxTotal=1e3,this.pathList=new wt,this.pixelList=new wt}getPixelType(t,i){return this.__autoClear(),this.pixelList.add(t),bt.hitCanvas(i)}getPathType(t){return this.__autoClear(),this.pathList.add(t),bt.hitCanvas()}clearImageType(){this.__clearLeafList(this.pixelList)}clearPathType(){this.__clearLeafList(this.pathList)}__clearLeafList(t){t.length&&(t.forEach(i=>{i.__hitCanvas&&(i.__hitCanvas.destroy(),i.__hitCanvas=null)}),t.reset())}__autoClear(){this.pathList.length+this.pixelList.length>this.maxTotal&&this.clear()}clear(){this.clearPathType(),this.clearImageType()}}L.getSelector=function(e){return e.leafer?e.leafer.selector:L.selector||(L.selector=bt.selector())};const{toInnerRadiusPointOf:j9,copyRadiusPoint:oh}=A,{hitRadiusPoint:U9,hitPoint:V9}=P,Es={},Ts={},L0=os.prototype;L0.hit=function(e,t=0){this.updateLayout(),oh(Ts,e,t);const i=this.__world;return!!(t?U9(i,Ts):V9(i,Ts))&&(this.isBranch?L.getSelector(this).hitPoint(Object.assign({},Ts),t,{target:this}):this.__hitWorld(Ts))},L0.__hitWorld=function(e,t){const i=this.__;if(!i.hitSelf)return!1;const s=this.__world,n=this.__layout,r=s.width<10&&s.height<10;if(i.hitRadius&&(oh(Es,e,i.hitRadius),e=Es),j9(e,s,Es),i.hitBox||r){if(P.hitRadiusPoint(n.boxBounds,Es))return!0;if(r)return!1}return!n.hitCanvasChanged&&this.__hitCanvas||(this.__updateHitCanvas(),n.boundsChanged||(n.hitCanvasChanged=!1)),this.__hit(Es,t)},L0.__hitFill=function(e){const t=this.__hitCanvas;return t&&t.hitFill(e,this.__.windingRule)},L0.__hitStroke=function(e,t){const i=this.__hitCanvas;return i&&i.hitStroke(e,t)},L0.__hitPixel=function(e){const t=this.__hitCanvas;return t&&t.hitPixel(e,this.__layout.renderBounds,t.hitScale)},L0.__drawHitPath=function(e){e&&this.__drawRenderPath(e)};const G9=new $t,ah=C.prototype;ah.__updateHitCanvas=function(){this.__box&&this.__box.__updateHitCanvas();const{hitCanvasManager:e}=this.leafer||this.parent&&this.parent.leafer||{};if(!e)return;const t=this.__,i=(t.__isAlphaPixelFill||t.__isCanvas)&&t.hitFill==="pixel",s=t.__isAlphaPixelStroke&&t.hitStroke==="pixel",n=i||s;this.__hitCanvas||(this.__hitCanvas=n?e.getPixelType(this,{contextSettings:{willReadFrequently:!0}}):e.getPathType(this));const r=this.__hitCanvas;if(n){const{renderBounds:o}=this.__layout,a=L.image.hitCanvasSize,l=r.hitScale=h0.set(0,0,a,a).getFitMatrix(o).a,{x:h,y:c,width:d,height:g}
1=h0.set(o).scale(l);r.resize({width:d,height:g,pixelRatio:1}),r.clear(),Le.patternLocked=!0,this.__renderShape(r,{matrix:G9.setWith(this.__world).scaleWith(1/l).invertWith().translate(-h,-c),snapshot:!0,ignoreFill:!i,ignoreStroke:!s}),Le.patternLocked=!1,r.resetTransform(),t.__isHitPixel=!0}else t.__isHitPixel&&(t.__isHitPixel=!1);this.__drawHitPath(r),r.setStrokeOptions(t)},ah.__hit=function(e,t){if(this.__box&&this.__box.__hit(e))return!0;const i=this.__;if(i.__isHitPixel&&this.__hitPixel(e))return!0;const{hitFill:s}=i,n=(i.fill||i.__isCanvas)&&(s==="path"||s==="pixel"&&!(i.__isAlphaPixelFill||i.__isCanvas))||s==="all"||t;if(n&&this.__hitFill(e))return!0;const{hitStroke:r,strokeScaleFixed:o}=i,a=i.__maxStrokeWidth*(o?this.getRenderScaleData(!0,o,!1).scaleX:1),l=i.stroke&&(r==="path"||r==="pixel"&&!i.__isAlphaPixelStroke)||r==="all";if(!n&&!l)return!1;const h=2*e.radiusX;let c=h,{strokeAlign:d}=i;if(i.motionText&&(c+=i.fontSize/2,d="center"),l)switch(d){case"inside":if(c+=2*a,!n&&this.__hitFill(e)&&this.__hitStroke(e,c))return!0;c=h;break;case"center":c+=a;break;case"outside":if(c+=2*a,!n){if(!this.__hitFill(e)&&this.__hitStroke(e,c))return!0;c=h}}return!!c&&this.__hitStroke(e,c)};const lh=C.prototype,hh=J.prototype,ch=k.prototype;hh.__updateHitCanvas=ch.__updateHitCanvas=function(){this.stroke||this.cornerRadius||(this.fill||this.__.__isCanvas)&&this.hitFill==="pixel"||this.hitStroke==="all"?lh.__updateHitCanvas.call(this):this.__hitCanvas&&(this.__hitCanvas=null)},hh.__hitFill=ch.__hitFill=function(e){return this.__hitCanvas?lh.__hitFill.call(this,e):P.hitRadiusPoint(this.__layout.boxBounds,e)},j.prototype.__drawHitPath=function(e){const t=this.__,{__lineHeight:i,fontSize:s,__baseLine:n,__letterSpacing:r,__textDrawData:o}=t;e.beginPath(),t.motionText?this.__drawPathByData(e,t.__pathForMotionText):r<0?this.__drawPathByBox(e):o.rows.forEach(a=>e.rect(a.x,a.y-n,a.width,i<s?s:i))},ht.prototype.pick=function(e,t){return t||(t=Hc),this.updateLayout(),L.getSelector(this).getByPoint(e,t.hitRadius||0,Object.assign(Object.assign({},t),{target:this}))};const ga=q1.prototype;ga.hitFill=function(e,t){return t?this.context.isPointInPath(e.x,e.y,t):this.context.isPointInPath(e.x,e.y)},ga.hitStroke=function(e,t){return this.strokeWidth=t,this.context.isPointInStroke(e.x,e.y)},ga.hitPixel=function(e,t,i=1){let{x:s,y:n,radiusX:r,radiusY:o}=e;t&&(s-=t.x,n-=t.y),h0.set(s-r,n-o,2*r,2*o).scale(i).ceil();const{data:a}=this.context.getImageData(h0.x,h0.y,h0.width||1,h0.height||1);for(let l=0,h=a.length;l<h;l+=4)if(a[l+3]>0)return!0;return a[3]>0};const le={convert(e,t){const i=Ne.getBase(e),{x:s,y:n}=t,r=Object.assign(Object.assign({},i),{x:s,y:n,width:e.width,height:e.height,pointerType:e.pointerType,pressure:e.pressure});return r.pointerType==="pen"&&(r.tangentialPressure=e.tangentialPressure,r.tiltX=e.tiltX,r.tiltY=e.tiltY,r.twist=e.twist),r},convertMouse(e,t){const i=Ne.getBase(e),{x:s,y:n}=t;return Object.assign(Object.assign({},i),{x:s,y:n,width:1,height:1,pointerType:"mouse",pressure:.5})},convertTouch(e,t){const i=le.getTouch(e),s=Ne.getBase(e),{x:n,y:r}=t;return Object.assign(Object.assign({},s),{x:n,y:r,width:1,height:1,pointerType:"touch",multiTouch:e.touches.length>1,pressure:i.force})},getTouch:e=>e.targetTouches[0]||e.changedTouches[0]},dh={convert(e){const t=Ne.getBase(e);return Object.assign(Object.assign({},t),{code:e.code,key:e.key})}},{pathCanDrag:q9}=Ne;class K9 extends ac{get windowTarget(){const{view:t}=this;return t&&t.ownerDocument||window}get notPointer(){const{p:t}=this;return t.type!=="pointer"||t.touch||this.useMultiTouch}get notTouch(){const{p:t}=this;return t.type==="mouse"||this.usePointer}get notMouse(){return this.usePointer||this.useTouch}__listenEvents(){super.__listenEvents();const t=this.view=this.canvas.view;this.viewEvents={pointerdown:this.onPointerDown,mousedown:this.onMouseDown,touchstart:this.onTouchStart,pointerleave:this.onPointerLeave,contextmenu:this.onContextMenu,wheel:this.onWheel,gesturestart:this.onGesturestart,gesturechange:this.onGesturechange,gestureend:this.onGestureend},this.windowEvents={pointermove:this.onPointerMove,pointerup:this.onPointerUp,pointercancel:this.onPointerCancel,mousemove:this.onMouseMove,mouseup:this.onMouseUp,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchCancel,keydown:this.onKeyDown,keyup:this.onKeyUp,scroll:this.onScroll};const{viewEvents:i,windowEvents:s}=this;for(let n in i)i[n]=i[n].bind(this),t.addEventListener(n,i[n]);for(let n in s)s[n]=s[n].bind(this),this.windowTarget.addEventListener(n,s[n])}__removeListenEvents(){super.__removeListenEvents();const{viewEvents:t,windowEvents:i}=this;for(let s in t)this.view.removeEventListener(s,t[s]),this.viewEvents={};for(let s in i)this.windowTarget.removeEventListener(s,i[s]),this.windowEvents={}}
1getTouches(t){const i=[];for(let s=0,n=t.length;s<n;s++)i.push(t[s]);return i}preventDefaultPointer(t){const{pointer:i}=this.config;i.preventDefault&&t.preventDefault()}preventDefaultWheel(t){const{wheel:i}=this.config;i.preventDefault&&t.preventDefault()}preventWindowPointer(t){return!this.downData&&t.target!==this.view&&(!this.config.shadowDOM||!t.composedPath||!t.composedPath().includes(this.view))}onKeyDown(t){this.keyDown(dh.convert(t))}onKeyUp(t){this.keyUp(dh.convert(t))}onContextMenu(t){this.config.pointer.preventDefaultMenu&&t.preventDefault(),this.menu(le.convert(t,this.getLocal(t)))}onScroll(){this.canvas.updateClientBounds()}onPointerDown(t){this.preventDefaultPointer(t),this.notPointer||(this.usePointer||(this.usePointer=!0),this.pointerDown(le.convert(t,this.getLocal(t))))}onPointerMove(t,i){if(this.notPointer||this.preventWindowPointer(t))return;this.usePointer||(this.usePointer=!0);const s=le.convert(t,this.getLocal(t,!0));i?this.pointerHover(s):this.pointerMove(s)}onPointerLeave(t){this.onPointerMove(t,!0)}onPointerUp(t){this.downData&&this.preventDefaultPointer(t),this.notPointer||this.preventWindowPointer(t)||this.pointerUp(le.convert(t,this.getLocal(t)))}onPointerCancel(){this.useMultiTouch||this.pointerCancel()}onMouseDown(t){this.preventDefaultPointer(t),this.notMouse||this.pointerDown(le.convertMouse(t,this.getLocal(t)))}onMouseMove(t){this.notMouse||this.preventWindowPointer(t)||this.pointerMove(le.convertMouse(t,this.getLocal(t,!0)))}onMouseUp(t){this.downData&&this.preventDefaultPointer(t),this.notMouse||this.preventWindowPointer(t)||this.pointerUp(le.convertMouse(t,this.getLocal(t)))}onMouseCancel(){this.notMouse||this.pointerCancel()}onTouchStart(t){const i=le.getTouch(t),s=this.getLocal(i,!0),{preventDefault:n}=this.config.touch;(n===!0||n==="auto"&&q9(this.findPath(s)))&&t.preventDefault(),this.multiTouchStart(t),this.notTouch||(this.touchTimer&&(window.clearTimeout(this.touchTimer),this.touchTimer=0),this.useTouch=!0,this.pointerDown(le.convertTouch(t,s)))}onTouchMove(t){if(this.multiTouchMove(t),this.notTouch||this.preventWindowPointer(t))return;const i=le.getTouch(t);this.pointerMove(le.convertTouch(t,this.getLocal(i)))}onTouchEnd(t){if(this.multiTouchEnd(),this.notTouch||this.preventWindowPointer(t))return;this.touchTimer&&clearTimeout(this.touchTimer),this.touchTimer=setTimeout(()=>{this.useTouch=!1},500);const i=le.getTouch(t);this.pointerUp(le.convertTouch(t,this.getLocal(i)))}onTouchCancel(){this.notTouch||this.pointerCancel()}multiTouchStart(t){this.useMultiTouch=t.touches.length>1,this.touches=this.useMultiTouch?this.getTouches(t.touches):void 0,this.useMultiTouch&&this.pointerCancel()}multiTouchMove(t){if(this.useMultiTouch&&t.touches.length>1){const i=this.getTouches(t.touches),s=this.getKeepTouchList(this.touches,i);s.length>1&&(this.multiTouch(Ne.getBase(t),s),this.touches=i)}}multiTouchEnd(){this.touches=null,this.useMultiTouch=!1,this.transformEnd()}getKeepTouchList(t,i){let s;const n=[];return t.forEach(r=>{s=i.find(o=>o.identifier===r.identifier),s&&n.push({from:this.getLocal(r),to:this.getLocal(s)})}),n}getLocalTouchs(t){return t.map(i=>this.getLocal(i))}onWheel(t){this.preventDefaultWheel(t),this.wheel(Object.assign(Object.assign(Object.assign({},Ne.getBase(t)),this.getLocal(t)),{deltaX:t.deltaX,deltaY:t.deltaY}))}onGesturestart(t){this.useMultiTouch||(this.preventDefaultWheel(t),this.lastGestureScale=1,this.lastGestureRotation=0)}onGesturechange(t){if(this.useMultiTouch)return;this.preventDefaultWheel(t);const i=Ne.getBase(t);Object.assign(i,this.getLocal(t));const s=t.scale/this.lastGestureScale,n=(t.rotation-this.lastGestureRotation)/Math.PI*180*(ct.within(this.config.wheel.rotateSpeed,0,1)/4+.1);this.zoom(Object.assign(Object.assign({},i),{scale:s*s})),this.rotate(Object.assign(Object.assign({},i),{rotation:n})),this.lastGestureScale=t.scale,this.lastGestureRotation=t.rotation}onGestureend(t){this.useMultiTouch||(this.preventDefaultWheel(t),this.transformEnd())}setCursor(t){super.setCursor(t);const i=[];this.eachCursor(t,i),O(i[i.length-1])&&i.push("default"),this.canvas.view.style.cursor=i.map(s=>O(s)?`url(${s.url}) ${s.x||0} ${s.y||0}`:s).join(",")}eachCursor(t,i,s=0){if(s++,et(t))t.forEach(n=>this.eachCursor(n,i,s));else{const n=V(t)&&lc.get(t);n&&s<2?this.eachCursor(n,i,s):i.push(t)}}destroy(){this.view&&(super.destroy(),this.view=this.touches=null)}}function As(e,t,i,s){e.__.__font?st.fillText(e,t,i,s):e.__.windingRule?t.fill(e.__.windingRule):t.fill()}function Kn(e,t,i,s,n){const r=i.__;O(e)?st.drawStrokesStyle(e,t,!1,i,s,n):(s.setStroke(e,r.__strokeWidth*t,r),s.stroke()),r.__useArrow&&st.strokeArrow(e,i,s,n)}function E1(e,t,i,s,n){const r=i.__;O(e)?st.drawStrokesStyle(e,t,!0,i,s,n):(s.setStroke(e,r.__strokeWidth*t,r),st.drawTextStroke(i,s,n))}function uh(e,t,i,s,n){const r=s.getSameCanvas(!0,!0);r.font=i.__.__font,E1(e,2,i,r,n),r.blendMode=t==="outside"?"destination-out":"destination-in",st.fillText(i,r,n),r.blendMode="normal",$.copyCanvasByWorld(i,s,r),r.recycle(i.__nowWorld)}const{getSpread:Z9,copyAndSpread:$9,toOuterOf:J9,getOuterOf:gh,getByMove:Q9,move:tu,getIntersectData:eu}=P,ph={};let T1;const{stintSet:Ls}=q,{hasTransparent:iu}=Ct;function su(e,t,i){if(!O(t)||t.visible===!1||t.opacity===0)return;let s;const{boxBounds:n}=i.__layout,{type:r}=t;switch(r){case"image":case"film":case"video":if(!t.url)return;s=kt.image(i,e,t,n,!T1||!T1[t.url]),r!=="image"&&kt[r](s);break;case"linear":s=Hr.linearGradient(t,n);break;case"radial":s=Hr.radialGradient(t,n);break;case"angular":s=Hr.conicGradient(t,n);break;case"solid":const{color:o,opacity:a}=t;s={type:r,style:Ct.string(o,a)};break;default:M(t.r)||(s={type:"solid",style:Ct.string(t)})}if(s&&(s.originPaint=t,V(s.style)&&iu(s.style)&&(s.isTransparent=!0),t.style)){if(t.style.strokeWidth===0)return;s.strokeStyle=t.style}return s}const nu={compute:function(e,t){const i=t.__,s=[];let n,r,o,a=i.__input[e];
1et(a)||(a=[a]),T1=kt.recycleImage(e,i);for(let l,h=0,c=a.length;h<c;h++)(l=su(e,a[h],t))&&(s.push(l),l.strokeStyle&&(o||(o=1),l.strokeStyle.strokeWidth&&(o=Math.max(o,l.strokeStyle.strokeWidth))));s.length?(i["_"+e]=s,s.every(l=>l.isTransparent)&&(s.some(l=>l.image)&&(n=!0),r=!0),e==="fill"?(Ls(i,"__isAlphaPixelFill",n),Ls(i,"__isTransparentFill",r)):(Ls(i,"__isAlphaPixelStroke",n),Ls(i,"__isTransparentStroke",r),Ls(i,"__hasMultiStrokeStyle",o))):(i.__removePaint(e,!1),i["_"+e]="")},fill:function(e,t,i,s){i.fillStyle=e,As(t,i,s)},fills:function(e,t,i,s){let n,r,o;for(let a=0,l=e.length;a<l;a++){if(n=e[a],r=n.originPaint,n.image){if(o?o++:o=1,kt.checkImage(n,!t.__.__font,t,i,s))continue;if(!n.style){o===1&&n.image.isPlacehold&&t.drawImagePlaceholder(n,i,s);continue}}if(i.fillStyle=n.style,n.transform||r.scaleFixed){if(i.save(),n.transform&&i.transform(n.transform),r.scaleFixed){const{scaleX:h,scaleY:c}=t.getRenderScaleData(!0,r.scaleFixed,!1);h!==1&&i.scale(h,c)}r.blendMode&&(i.blendMode=r.blendMode),As(t,i,s,!0),i.restore()}else r.blendMode?(i.saveBlendMode(r.blendMode),As(t,i,s),i.restoreBlendMode()):As(t,i,s)}},fillPathOrText:As,fillText:function(e,t,i,s){const n=e.__;let r;if(n.__isPlacehold&&n.placeholderColor&&(t.fillStyle=n.placeholderColor),s&&(r=t,(t=t.getSameCanvas(!0,!0)).font=e.__.__font,t.fillStyle="#000"),e.motionText)st.fillMotionText(e,t,i);else{let o;const{rows:a,decorationY:l}=n.__textDrawData;for(let h=0,c=a.length;h<c;h++)o=a[h],o.text?t.fillText(o.text,o.x,o.y):o.data&&o.data.forEach(d=>{t.fillText(d.char,d.x,o.y)});if(l){const{decorationColor:h,decorationHeight:c}=n.__textDrawData;h&&(t.fillStyle=h),a.forEach(d=>l.forEach(g=>t.fillRect(d.x,d.y+g,d.width,c)))}}s&&(t.beginPath(),e.__drawPathByBox(t,"render"),t.fillStyle=r.fillStyle,t.setTransform(r.getTransform()),t.blendMode="source-in",t.fill(),r.copyWorldByReset(t,e.__nowWorld),t.recycle(e.__nowWorld))},stroke:function(e,t,i,s){const n=t.__;if(n.__strokeWidth)if(n.__font)st.strokeText(e,t,i,s);else if(n.__pathForStroke)st.fillStroke(e,t,i,s);else switch(n.strokeAlign){case"center":Kn(e,1,t,i,s);break;case"inside":(function(r,o,a,l){a.save(),a.clipUI(o),Kn(r,2,o,a,l),a.restore()})(e,t,i,s);break;case"outside":(function(r,o,a,l){const h=o.__;if(h.__fillAfterStroke)Kn(r,2,o,a,l);else{const{renderBounds:c}=o.__layout,d=a.getSameCanvas(!0,!0);o.__drawRenderPath(d),Kn(r,2,o,d,l),d.clipUI(h),d.clearWorld(c),$.copyCanvasByWorld(o,a,d),d.recycle(o.__nowWorld)}})(e,t,i,s)}},strokes:function(e,t,i,s){st.stroke(e,t,i,s)},strokeText:function(e,t,i,s){switch(t.__.strokeAlign){case"center":E1(e,1,t,i,s);break;case"inside":uh(e,"inside",t,i,s);break;case"outside":t.__.__fillAfterStroke?E1(e,2,t,i,s):uh(e,"outside",t,i,s)}},drawTextStroke:function(e,t,i){let s,n=e.__.__textDrawData;const{rows:r,decorationY:o}=n;for(let a=0,l=r.length;a<l;a++)s=r[a],s.text?t.strokeText(s.text,s.x,s.y):s.data&&s.data.forEach(h=>{t.strokeText(h.char,h.x,s.y)});if(o){const{decorationHeight:a}=n;r.forEach(l=>o.forEach(h=>t.strokeRect(l.x,l.y+h,l.width,a)))}},drawStrokesStyle:function(e,t,i,s,n,r){let o;const a=s.__,{__hasMultiStrokeStyle:l}=a;l||n.setStroke(void 0,a.__strokeWidth*t,a);for(let h=0,c=e.length;h<c;h++)if(o=e[h],(!o.image||!kt.checkImage(o,!1,s,n,r))&&o.style){if(l){const{strokeStyle:d}=o;d?n.setStroke(o.style,a.__getRealStrokeWidth(d)*t,a,d):n.setStroke(o.style,a.__strokeWidth*t,a)}else n.strokeStyle=o.style;o.originPaint.blendMode?(n.saveBlendMode(o.originPaint.blendMode),i?st.drawTextStroke(s,n,r):n.stroke(),n.restoreBlendMode()):i?st.drawTextStroke(s,n,r):n.stroke()}},shape:function(e,t,i){const s=t.getSameCanvas(),n=t.bounds,r=e.__nowWorld,o=e.__layout,a=e.__nowWorldShapeBounds||(e.__nowWorldShapeBounds={});let l,h,c,d,g,u;J9(o.strokeSpread?($9(ph,o.boxBounds,o.strokeSpread),ph):o.boxBounds,r,a);let{scaleX:p,scaleY:_}=e.getRenderScaleData(!0);if(n.includes(a))u=s,l=g=a,h=r;else{let y;if(L.fullImageShadow)y=a;else{const v=o.renderShapeSpread?Z9(n,cn.swapAndScale(o.renderShapeSpread,p,_)):n;y=eu(v,a)}d=n.getFitMatrix(y);let{a:x,d:m}=d;d.a<1&&(u=t.getSameCanvas(),e.__renderShape(u,i),p*=x,_*=m),g=gh(a,d),l=Q9(g,-d.e,-d.f),h=gh(r,d),tu(h,-d.e,-d.f);const w=i.matrix;w?(c=new $t(d),c.multiply(w),x*=w.scaleX,m*=w.scaleY):c=d,c.withScale(x,m),i=Object.assign(Object.assign({},i),{matrix:c})}return e.__renderShape(s,i),{canvas:s,matrix:c,fitMatrix:d,bounds:l,renderBounds:h,worldCanvas:u,shapeBounds:g,scaleX:p,scaleY:_}}};let Rs,ru=new rt;const{isSame:ou}=P;function fh(e,t,i,s,n,r){let o=!0;const a=e.__;
1if(t!=="fill"||a.__naturalWidth||(a.__naturalWidth=s.width/a.pixelRatio,a.__naturalHeight=s.height/a.pixelRatio,a.__autoSide&&(e.forceUpdate(),$.updateBounds(e,!0),e.__layout.boundsChanged=!0,e.__proxyData&&(e.setProxyAttr("width",a.width),e.setProxyAttr("height",a.height)),o=!1)),i.mode==="brush"&&kt.brush(e,t,n),!n.data){kt.createData(n,s,i,r);const{transform:l}=n.data,{opacity:h}=i,c=(l&&!l.onlyScale||a.path||a.cornerRadius)&&!n.brush;(c||h&&h<1||i.blendMode)&&(n.complex=!c||2)}return i.filter&&kt.applyFilter(n,s,i.filter,e),o}function _h(e,t){e2(e,He.LOAD,t)}function yh(e,t){e2(e,He.LOADED,t)}function xh(e,t,i){t.error=i,e.forceUpdate("surface"),e2(e,He.ERROR,t)}function e2(e,t,i){e.hasEvent(t)&&e.emitEvent(new He(t,i))}function pa(e,t){const{leafer:i}=e;i&&i.viewReady&&(i.renderer.ignore=t)}const{get:au,translate:lu}=K,hu=new rt,fa={},jt={};function mh(e,t,i,s){const n=V(e)||s?(s?i-s*t:i%t)/((s||Math.floor(i/t))-1):e;return e==="auto"&&n<0?0:n}let Ps={},_a={a:1,b:0,c:0,d:1,e:0,f:0};const{get:Zn,set:cu,rotateOfOuter:wh,translate:r0,scaleOfOuter:ya,multiplyParent:du,scale:A1,rotate:hc,skew:uu}=K;function vh(e,t,i,s,n,r,o,a){o&&hc(e,o),a&&uu(e,a.x,a.y),n&&A1(e,n,r),r0(e,t.x+i,t.y+s)}const{get:gu,scale:pu,copy:fu}=K,{getFloorScale:Ch}=ct,{abs:bh}=Math,_u={image:function(e,t,i,s,n){let r,o;const a=Le.get(i,i.type);return Rs&&i===Rs.paint&&ou(s,Rs.boxBounds)?r=Rs.leafPaint:(r={type:i.type,image:a},a.hasAlphaPixel&&(r.isTransparent=!0),Rs=a.use>1?{leafPaint:r,paint:i,boxBounds:ru.set(s)}:null),(n||a.loading)&&(o={image:a,attrName:t,attrValue:i}),a.ready?(fh(e,t,i,a,r,s),n&&(_h(e,o),yh(e,o))):a.error?n&&xh(e,o,a.error):(n&&(pa(e,!0),_h(e,o)),r.loadId=a.load(()=>{pa(e,!1),e.destroyed||(fh(e,t,i,a,r,s)&&(a.hasAlphaPixel&&(e.__layout.hitCanvasChanged=!0),e.forceUpdate("surface")),yh(e,o)),r.loadId=void 0},l=>{pa(e,!1),xh(e,o,l),r.loadId=void 0},i.lod&&a.getThumbSize(i.lod)),e.placeholderColor&&(e.placeholderDelay?setTimeout(()=>{a.ready||(a.isPlacehold=!0,e.forceUpdate("surface"))},e.placeholderDelay):a.isPlacehold=!0)),r},checkImage:function(e,t,i,s,n){const{scaleX:r,scaleY:o}=kt.getImageRenderScaleData(e,i,s,n),a=e.film?e.nowIndex:r+"-"+o,{image:l,brush:h,data:c,originPaint:d}=e,{exporting:g,snapshot:u}=n;if(!c||e.patternId===a&&!g||u){if(!h||!e.style)return!1}else if(t&&(c.repeat?t=!1:d.changeful||e.film||L.name==="miniapp"||g||(t=L.image.isLarge(l,r,o)||l.width*r>8096||l.height*o>8096)),t)i.__.__isFastShadow&&(s.fillStyle=e.style||"#000",s.fill());else if(!e.style||d.sync||g?kt.createPattern(e,i,s,n):kt.createPatternTask(e,i,s,n),!h||!e.style)return!1;return kt.drawImage(e,r,o,i,s,n),!0},drawImage:function(e,t,i,s,n,r){const{data:o,image:a,brush:l,complex:h}=e;let{width:c,height:d}=a,g=l||a;if(h){const{blendMode:u,opacity:p}=e.originPaint,{transform:_}=o;n.save(),h===2&&n.clipUI(s),u&&(n.blendMode=u),p&&(n.opacity*=p),_&&n.transform(_),g.render(n,0,0,c,d,s,e,t,i),n.restore()}else o.scaleX&&(c*=o.scaleX,d*=o.scaleY),g.render(n,0,0,c,d,s,e,t,i)},getImageRenderScaleData:function(e,t,i,s){const n=t.getRenderScaleData(!0,e.originPaint.scaleFixed),{data:r}=e;if(e.brush&&kt.addBrushScale(n,e,t),i){const{pixelRatio:o}=i;n.scaleX*=o,n.scaleY*=o}return r&&r.scaleX&&(n.scaleX*=Math.abs(r.scaleX),n.scaleY*=Math.abs(r.scaleY)),n},recycleImage:function(e,t){const i=t["_"+e];if(et(i)){let s,n,r,o,a;const l=t.__leaf;for(let h=0,c=i.length;h<c;h++)s=i[h],n=s.image,a=n&&n.url,a&&(r||(r={}),r[a]=!0,Le.recyclePaint(s),s.brush&&kt.recycleBrush(s,l),t.__willDestroy&&n.parent&&kt.recycleFilter(n,l),n.loading&&(o||(o=t.__input&&t.__input[e]||[],et(o)||(o=[o])),n.unload(i[h].loadId,!o.some(d=>d.url===a))));return r}return null},createPatternTask:function(e,t,i,s){e.patternTask||(e.patternTask=Le.patternTasker.add(()=>u0(this,void 0,void 0,function*(){kt.createPattern(e,t,i,s),t.forceUpdate("surface")}),0,()=>(e.patternTask=null,i.bounds.hit(t.__nowWorld))))},createPattern:function(e,t,i,s){let{scaleX:n,scaleY:r}=kt.getImageRenderScaleData(e,t,i,s),o=e.film?e.nowIndex:n+"-"+r;if(e.patternId!==o&&!t.destroyed&&(!L.image.isLarge(e.image,n,r)||e.data.repeat)){const{image:a,brush:l,data:h}=e,{transform:c,gap:d}=h,g=kt.getPatternFixScale(e,n,r);let u,p,_,{width:y,height:x}=a,{opacity:m}=e.originPaint;(l||m===1)&&(m=void 0),g&&(n*=g,r*=g),y*=n,x*=r,d&&!l&&(p=d.x*n/bh(h.scaleX||1),_=d.y*r/bh(h.scaleY||1)),(c||n!==1||r!==1)&&(n*=Ch(y+(p||0)),r*=Ch(x+(_||0)),u=gu(),c&&fu(u,c),pu(u,1/n,1/r));const w=a.getCanvas(y,x,m,void 0,p,_,t.leafer&&t.leafer.config.smooth,h.interlace);l?(e.style=w,kt.cacheBrush(e,t,i,s)):e.style=a.getPattern(w,h.repeat||L.origin.noRepeat||"no-repeat",u,e),e.patternId=o}},getPatternFixScale:function(e,t,i){const{image:s}=e;let n,r=L.image.maxPatternSize,o=s.width*s.height;return s.isSVG?t>1&&(n=Math.ceil(t)/t):r>o&&(r=o),(o*=t*i)>r&&(n=Math.sqrt(r/o)),n},createData:function(e,t,i,s){e.data=kt.getPatternData(i,s,t)},getPatternData:function(e,t,i){e.padding&&(t=hu.set(t).shrink(e.padding)),e.mode==="strench"&&(e.mode="stretch");const{width:s,height:n}=i,{mode:r,align:o,offset:a,scale:l,size:h,rotation:c,skew:d,clipSize:g,repeat:u,gap:p,interlace:_}=e,y=t.width===s&&t.height===n,x={mode:r},m=o!=="center"&&(c||0)%180==90;let w,v;switch(P.set(jt,0,0,m?n:s,m?s:n),r&&r!=="cover"&&r!=="fit"?((l||h)&&(ct.getScaleData(l,h,i,fa),w=fa.scaleX,v=fa.scaleY),(o||p||u)&&(w&&P.scale(jt,w,v,!0),o&&G1.toPoint(o,jt,t,jt,!0,!0))):y&&!c||(w=v=P.getFitScale(t,jt,r!=="fit"),P.put(t,
1i,o,w,!1,jt),P.scale(jt,w,v,!0)),a&&A.move(jt,a),r){case"stretch":y?w&&(w=v=void 0):(w=t.width/s,v=t.height/n,kt.stretchMode(x,t,w,v));break;case"normal":case"clip":if(jt.x||jt.y||w||g||c||d){let B,S;g&&(B=t.width/g.width,S=t.height/g.height),kt.clipMode(x,t,jt.x,jt.y,w,v,c,d,B,S),B&&(w=w?w*B:B,v=v?v*S:S)}break;case"repeat":(!y||w||c||d)&&kt.repeatMode(x,t,s,n,jt.x,jt.y,w,v,c,d,o,e.freeTransform);case"brush":u||(x.repeat="repeat");const b=O(u);(p||b)&&(x.gap=(function(B,S,R,X,z){let T,H;return O(B)?(T=B.x,H=B.y):T=H=B,{x:mh(T,R,z.width,S&&S.x),y:mh(H,X,z.height,S&&S.y)}})(p,b&&u,jt.width,jt.height,t));break;default:w&&kt.fillOrFitMode(x,t,jt.x,jt.y,w,v,c)}return x.transform||r==="brush"||(t.x||t.y)&&lu(x.transform=au(),t.x,t.y),w&&(x.scaleX=w,x.scaleY=v),u&&(x.repeat=V(u)?u==="x"?"repeat-x":"repeat-y":"repeat"),_&&(x.interlace=it(_)||_.type==="percent"?{type:"x",offset:_}:_),x},stretchMode:function(e,t,i,s){const n=Zn(),{x:r,y:o}=t;r||o?r0(n,r,o):i>0&&s>0&&(n.onlyScale=!0),A1(n,i,s),e.transform=n},fillOrFitMode:function(e,t,i,s,n,r,o){const a=Zn();r0(a,t.x+i,t.y+s),A1(a,n,r),o&&wh(a,{x:t.x+t.width/2,y:t.y+t.height/2},o),e.transform=a},clipMode:function(e,t,i,s,n,r,o,a,l,h){const c=Zn();vh(c,t,i,s,n,r,o,a),l&&(o||a?(cu(_a),ya(_a,t,l,h),du(c,_a)):ya(c,t,l,h)),e.transform=c},repeatMode:function(e,t,i,s,n,r,o,a,l,h,c,d){const g=Zn();if(d)vh(g,t,n,r,o,a,l,h);else{if(l)if(c==="center")wh(g,{x:i/2,y:s/2},l);else switch(hc(g,l),l){case 90:r0(g,s,0);break;case 180:r0(g,i,s);break;case 270:r0(g,0,i)}Ps.x=t.x+n,Ps.y=t.y+r,r0(g,Ps.x,Ps.y),o&&ya(g,Ps,o,a)}e.transform=g}},{toPoint:kh}=qt,{hasTransparent:yu}=Ct,xa={},ma={};function wa(e,t,i,s){if(i){let n,r,o,a;for(let l=0,h=i.length;l<h;l++)n=i[l],V(n)?(o=l/(h-1),r=Ct.string(n,s)):(o=n.offset,r=Ct.string(n.color,s)),t.addColorStop(o,r),!a&&yu(r)&&(a=!0);a&&(e.isTransparent=!0)}}const{getAngle:xu,getDistance:mu}=A,{get:wu,rotateOfOuter:Bh,scaleOfOuter:Sh}=K,{toPoint:Eh}=qt,Xi={},va={};function Ca(e,t,i,s,n){let r;const{width:o,height:a}=e;if(o!==a||s){const l=xu(t,i);r=wu(),n?(Sh(r,t,o/a*(s||1),1),Bh(r,t,l+90)):(Sh(r,t,1,o/a*(s||1)),Bh(r,t,l))}return r}const{getDistance:vu}=A,{toPoint:Th}=qt,ai={},ba={},Cu={linearGradient:function(e,t){let{from:i,to:s,type:n,opacity:r}=e;kh(i||"top",t,xa),kh(s||"bottom",t,ma);const o=L.canvas.createLinearGradient(xa.x,xa.y,ma.x,ma.y),a={type:n,style:o};return wa(a,o,e.stops,r),a},radialGradient:function(e,t){let{from:i,to:s,type:n,opacity:r,stretch:o}=e;Eh(i||"center",t,Xi),Eh(s||"bottom",t,va);const a=L.canvas.createRadialGradient(Xi.x,Xi.y,0,Xi.x,Xi.y,mu(Xi,va)),l={type:n,style:a};wa(l,a,e.stops,r);const h=Ca(t,Xi,va,o,!0);return h&&(l.transform=h),l},conicGradient:function(e,t){let{from:i,to:s,type:n,opacity:r,rotation:o,stretch:a}=e;Th(i||"center",t,ai),Th(s||"bottom",t,ba);const l=L.conicGradientSupport?L.canvas.createConicGradient(o?o*lt:0,ai.x,ai.y):L.canvas.createRadialGradient(ai.x,ai.y,0,ai.x,ai.y,vu(ai,ba)),h={type:n,style:l};wa(h,l,e.stops,r);const c=Ca(t,ai,ba,a||1,L.conicGradientRotate90);return c&&(h.transform=c),h},getTransform:Ca},{copy:bu,move:ku,toOffsetOutBounds:Bu}=P,{max:$n,abs:Su}=Math,ka={},Ah=new $t,Fs={};function cc(e,t){let i,s,n,r,o=0,a=0,l=0,h=0;return t.forEach(c=>{i=c.x||0,s=c.y||0,r=1.5*(c.blur||0),n=Su(c.spread||0),o=$n(o,n+r-s),a=$n(a,n+r+i),l=$n(l,n+r+s),h=$n(h,n+r-i)}),o===a&&a===l&&l===h?o:[o,a,l,h]}function Lh(e,t,i){const{shapeBounds:s}=i;let n,r;L.fullImageShadow?(bu(ka,e.bounds),ku(ka,t.x-s.x,t.y-s.y),n=e.bounds,r=ka):(n=s,r=t),e.copyWorld(i.canvas,n,r)}const{toOffsetOutBounds:Eu}=P,Ms={},Tu=cc,Au={shadow:function(e,t,i){let s,n;const{__nowWorld:r}=e,{shadow:o}=e.__,{worldCanvas:a,bounds:l,renderBounds:h,shapeBounds:c,scaleX:d,scaleY:g}=i,u=t.getSameCanvas(),p=o.length-1;Bu(l,Fs,h),o.forEach((_,y)=>{let x=1;if(_.scaleFixed){const m=Math.abs(r.scaleX);m>1&&(x=1/m)}u.setWorldShadow(Fs.offsetX+(_.x||0)*d*x,Fs.offsetY+(_.y||0)*g*x,(_.blur||0)*d*x,Ct.string(_.color)),n=Fi.getShadowTransform(e,u,i,_,Fs,x),n&&u.setTransform(n),Lh(u,Fs,i),n&&u.resetTransform(),s=h,_.box&&(u.restore(),u.save(),a&&(u.copyWorld(u,h,r,"copy"),s=r),a?u.copyWorld(a,r,r,"destination-out"):u.copyWorld(i.canvas,c,l,"destination-out")),$.copyCanvasByWorld(e,t,u,s,_.blendMode),p&&y<p&&u.clearWorld(s)}),u.recycle(s)},innerShadow:function(e,t,i){let s,n;const{__nowWorld:r}=e,{innerShadow:o}=e.__,{worldCanvas:a,bounds:l,renderBounds:h,shapeBounds:c,scaleX:d,scaleY:g}=i,u=t.getSameCanvas(),p=o.length-1;Eu(l,Ms,h),o.forEach((_,y)=>{let x=1;if(_.scaleFixed){const m=Math.abs(r.scaleX);m>1&&(x=1/m)}u.save(),u.setWorldShadow(Ms.offsetX+(_.x||0)*d*x,Ms.offsetY+(_.y||0)*g*x,(_.blur||0)*d*x),n=Fi.getShadowTransform(e,u,i,_,Ms,x,!0),n&&u.setTransform(n),Lh(u,Ms,i),u.restore(
1),a?(u.copyWorld(u,h,r,"copy"),u.copyWorld(a,r,r,"source-out"),s=r):(u.copyWorld(i.canvas,c,l,"source-out"),s=h),u.fillWorld(s,Ct.string(_.color),"source-in"),$.copyCanvasByWorld(e,t,u,s,_.blendMode),p&&y<p&&u.clearWorld(s)}),u.recycle(s)},blur:function(e,t,i){const{blur:s}=e.__;i.setWorldBlur(s*e.__nowWorld.a),i.copyWorldToInner(t,e.__nowWorld,e.__layout.renderBounds),i.filter="none"},backgroundBlur:function(e,t,i){},getShadowRenderSpread:cc,getShadowTransform:function(e,t,i,s,n,r,o){if(s.spread){const a=2*s.spread*r*(o?-1:1),{width:l,height:h}=e.__layout.strokeBounds;return Ah.set().scaleOfOuter({x:(n.x+n.width/2)*t.pixelRatio,y:(n.y+n.height/2)*t.pixelRatio},1+a/l,1+a/h),Ah}},isTransformShadow(e){},getInnerShadowSpread:Tu},{excludeRenderBounds:Rh}=ds;let L1;function Jn(e,t,i,s,n,r,o,a){switch(t){case"grayscale":L1||(L1=!0,n.useGrayscaleAlpha(e.__nowWorld));case"alpha":(function(l,h,c,d,g,u){const p=l.__nowWorld;c.resetTransform(),c.opacity=1,c.useMask(d,p),u&&d.recycle(p),Ph(l,h,c,1,g,u)})(e,i,s,n,o,a);break;case"opacity-path":Ph(e,i,s,r,o,a);break;case"path":a&&i.restore()}}function Ba(e){return e.getSameCanvas(!1,!0)}function Ph(e,t,i,s,n,r){const o=e.__nowWorld;t.resetTransform(),t.opacity=s,t.copyWorld(i,o,void 0,n),r?i.recycle(o):i.clearWorld(o)}ht.prototype.__renderMask=function(e,t){let i,s,n,r,o,a;const{children:l}=this;for(let h=0,c=l.length;h<c;h++){if(i=l[h],a=i.__.mask,a){o&&(Jn(this,o,e,n,s,r,void 0,!0),s=n=null),a!=="clipping"&&a!=="clipping-path"||Rh(i,t)||i.__render(e,t),r=i.__.opacity,L1=!1,a==="path"||a==="clipping-path"?(r<1?(o="opacity-path",n||(n=Ba(e))):(o="path",e.save()),i.__clip(n||e,t)):(o=a==="grayscale"?"grayscale":"alpha",s||(s=Ba(e)),n||(n=Ba(e)),i.__render(s,t));continue}const d=r===1&&i.__.__blendMode;d&&Jn(this,o,e,n,s,r,void 0,!1),Rh(i,t)||i.__render(n||e,t),d&&Jn(this,o,e,n,s,r,d,!1)}Jn(this,o,e,n,s,r,void 0,!0)};const dc=`>)]}%!?,.:;'"ãï¼ããããããï½âï¼ââï¼ï¼ï¼ããï¼ï¼â°`,Lu=dc+"_#~&*+\\=|â®â¯ââ ï¼â¦",Ru=new RegExp([[19968,40959],[13312,19903],[131072,173791],[173824,177983],[177984,178207],[178208,183983],[183984,191471],[196608,201551],[201552,205743],[11904,12031],[12032,12255],[12272,12287],[12288,12351],[4352,4607],[12352,12447],[12448,12543],[12544,12591],[12592,12687],[12688,12703],[12704,12735],[12784,12799],[12736,12783],[12800,13055],[13056,13311],[63744,64255],[65072,65103],[127488,127743],[194560,195103]].map(([e,t])=>`[\\u{${e.toString(16)}}-\\u{${t.toString(16)}}]`).join("|"),"u");function _n(e){const t={};return e.split("").forEach(i=>t[i]=!0),t}const Pu=_n("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"),Fu=_n(`{[(<'"ãï¼ããããããï½âï¼ââï¼Â¥ï¿¥ï¼â¬Â£ï¿¡Â¢ï¿ `),Mu=_n(dc),Du=_n(Lu),Ou=_n("- âï¼ï½ï½â·");var Jr;(function(e){e[e.Letter=0]="Letter",e[e.Single=1]="Single",e[e.Before=2]="Before",e[e.After=3]="After",e[e.Symbol=4]="Symbol",e[e.Break=5]="Break"})(Jr||(Jr={}));const{Letter:Fh,Single:Iu,Before:Wu,After:zu,Symbol:Hu,Break:Nu}=Jr;function Xu(e){return Pu[e]?Fh:Ou[e]?Nu:Fu[e]?Wu:Mu[e]?zu:Du[e]?Hu:Ru.test(e)?Iu:Fh}const Yu={trimRight(e){const{words:t}=e;let i,s=0,n=t.length;for(let r=n-1;r>-1&&(i=t[r].data[0],i.char===" ");r--)s++,e.width-=i.width;s&&t.splice(n-s,s)}};function ju(e,t,i){switch(t){case"title":return i?e.toUpperCase():e;case"upper":return e.toUpperCase();case"lower":return e.toLowerCase();default:return e}}const{trimRight:Uu}=Yu,{Letter:Sa,Single:Ds,Before:Mh,After:Ea,Symbol:Vu,Break:Dh}=Jr;let V0,Ke,ie,se,Ta,Pe,li,on,ls,ke,xi,Aa,Os,G0,an,Xr,R1,Y0=[];function La(e,t){ls&&!on&&(on=ls),V0.data.push({char:e,width:t}),ie+=t}function Yi(e){e&&(se+=e,V0.addWidth=e),se+=ie,V0.width=ie,Ke.words.push(V0),V0={data:[]},ie=0}function Is(){G0&&(an.paraNumber++,Ke.paraStart=!0,G0=!1),ls&&(Ke.startCharSize=on,Ke.endCharSize=ls,on=0),Ke.width=se,Xr.width?Uu(Ke):R1&&uc(),Y0.push(Ke),Ke={words:[]},se=0}function uc(){se>(an.maxWidth||0)&&(an.maxWidth=se)}const{top:Qn,right:Oh,bottom:Ih,left:tr}=p1;function er(e,t,i){const{bounds:s,rows:n}=e;s[t]+=i;for(let r=0;r<n.length;r++)n[r][t]+=i}const Gu={getDrawData:function(e,t){V(e)||(e=String(e));let i=0,s=0,n=t.__getInput("width")||0,r=t.__getInput("height")||0;const{__padding:o}=t;t.motionText&&(n=r=0),o&&(n?(i=o[tr],n-=o[Oh]+o[tr],!n&&(n=.01)):t.autoSizeAlign||(i=o[tr]),r?(s=o[Qn],r-=o[Qn]+o[Ih],!r&&(r=.01)):t.autoSizeAlign||(s=o[Qn]));const a={bounds:{x:i,y:s,width:n,height:r},rows:[],paraNumber:0,font:L.canvas.font=t.__font};return(function(l,h,c){an=l,Y0=l.rows,Xr=l.bounds,R1=!Xr.width&&!c.autoSizeAlign;const{paraIndent:d,textCase:g}=c,{canvas:u}=L,{width:p}=Xr;if(c.__isCharMode){const _=c.textWrap!=="none",y=c.textWrap==="break",x=c.__letterSpacing,m=c.__wordSpacing;G0=!0,xi=null,on=li=ls=ie=se=0,V0={data:[]},Ke={words:[]};
1for(let w=0,v=(h=[...h]).length;w<v;w++)Pe=h[w],Pe===` 2`?(ie&&Yi(),Ke.paraEnd=!0,Is(),G0=!0):(ke=Xu(Pe),ke===Sa&&g!=="none"&&(Pe=ju(Pe,g,!ie)),li=u.measureText(Pe).width,x&&(x<0&&(ls=li),li+=x),Aa=ke===Ds&&(xi===Ds||xi===Sa)||xi===Ds&&ke!==Ea,Os=!(ke!==Mh&&ke!==Ds||xi!==Vu&&xi!==Ea),Ta=G0&&d?p-d:p,_&&p&&se+ie+li>Ta&&(y?(ie&&Yi(),se&&Is()):(Os||(Os=ke===Sa&&xi==Ea),(Aa||Os||ke===Dh||ke===Mh||ke===Ds||ie+li>Ta)&&ie&&Yi(),se&&Is())),Pe===" "&&G0!==!0&&se+ie===0||(ke===Dh?(Pe===" "&&ie&&Yi(m),La(Pe,li),Yi()):((Aa||Os)&&ie&&Yi(m),La(Pe,li))),xi=ke);ie&&Yi(),se&&Is(),Y0.length>0&&(Y0[Y0.length-1].paraEnd=!0)}else h.split(` 3`).forEach(_=>{an.paraNumber++,se=u.measureText(_).width,Y0.push({x:d||0,text:_,width:se,paraStart:!0}),R1&&uc()})})(a,e,t),o&&(function(l,h,c,d,g){if(!d&&c.autoSizeAlign)switch(c.textAlign){case"left":er(h,"x",l[tr]);break;case"right":er(h,"x",-l[Oh])}if(!g&&c.autoSizeAlign)switch(c.verticalAlign){case"top":er(h,"y",l[Qn]);break;case"bottom":er(h,"y",-l[Ih])}})(o,a,t,n,r),(function(l,h){const{rows:c,bounds:d}=l,g=c.length,{__lineHeight:u,__baseLine:p,__letterSpacing:_,__clipText:y,textAlign:x,verticalAlign:m,paraSpacing:w,autoSizeAlign:v}=h;let{x:b,y:B,width:S,height:R}=d,X=u*g+(w?w*(l.paraNumber-1):0),z=p;if(y&&X>R)X=Math.max(h.__autoHeight?X:R,u),g>1&&(l.overflow=g);else if(R||v)switch(m){case"middle":B+=(R-X)/2;break;case"bottom":B+=R-X}z+=B;let T,H,E,D=S||v?S:l.maxWidth;for(let N=0,U=g;N<U;N++){if(T=c[N],T.x=b,T.width<S||T.width>S&&!y)switch(x){case"center":T.x+=(D-T.width)/2;break;case"right":T.x+=D-T.width}T.paraStart&&w&&N>0&&(z+=w),T.y=z,z+=u,l.overflow>N&&z>X&&(T.isOverflow=!0,l.overflow=N+1),H=T.x,E=T.width,_<0&&(T.width<0?(E=-T.width+h.fontSize+_,H-=E,E+=h.fontSize):E-=_),H<d.x&&(d.x=H),E>d.width&&(d.width=E),y&&S&&S<E&&(T.isOverflow=!0,l.overflow||(l.overflow=c.length))}d.y=B,d.height=X})(a,t),t.__isCharMode&&(function(l,h,c){const{rows:d}=l,{textAlign:g,paraIndent:u}=h,p=h.__letterSpacing||h.motionText,_=h.__wordSpacing,y=c&&g.includes("both"),x=y||c&&g.includes("justify"),m=x&&g.includes("letter");let w,v,b,B,S,R,X,z,T,H;d.forEach(E=>{E.words&&(S=u&&E.paraStart?u:0,z=E.words.length,x&&(H=!E.paraEnd||y,v=c-E.width-S,m?B=v/(E.words.reduce((D,N)=>D+N.data.length,0)-1):b=z>1?v/(z-1):0),R=p||E.isOverflow||m?0:b||_?1:2,E.isOverflow&&!p&&(E.textMode=!0),R===2?(E.x+=S,(function(D){D.text="",D.words.forEach(N=>{N.data.forEach(U=>{D.text+=U.char})})})(E)):(E.x+=S,w=E.x,E.data=[],E.words.forEach((D,N)=>{R===1?(X={char:"",x:w},w=(function(U,Z,at){return U.forEach(Q=>{at.char+=Q.char,Z+=Q.width}),Z})(D.data,w,X),(E.isOverflow||X.char!==" ")&&E.data.push(X)):w=(function(U,Z,at,Q,ye){return U.forEach(Jt=>{(Q||Jt.char!==" ")&&(Jt.x=Z,at.push(Jt)),Z+=Jt.width,ye&&(Z+=ye)}),Z})(D.data,w,E.data,E.isOverflow,H&&B),D.addWidth&&(w+=D.addWidth),H&&(T=N===z-1,b?T||(w+=b,E.width+=b):B&&(E.width+=B*(D.data.length-(T?1:0))))})),E.words=null)})})(a,t,n),a.overflow&&(function(l,h,c,d){const{rows:g,overflow:u}=l;let{textOverflow:p}=h;if(u&&g.splice(u),d&&p&&p!=="show"){let _,y;p==="hide"?p="":p==="ellipsis"&&(p="...");const x=p?L.canvas.measureText(p).width:0,m=c+d-x;(h.textWrap==="none"?g:[g[u-1]]).forEach(w=>{if(w.isOverflow&&w.data){let v=w.data.length-1;for(let b=v;b>-1&&(_=w.data[b],y=_.x+_.width,!(b===v&&y<m));b--){if(y<m&&_.char!==" "||!b){w.data.splice(b+1),w.width-=_.width;break}w.width-=_.width}w.width+=x,w.data.push({char:p,x:y}),w.textMode&&(function(b){b.text="",b.data.forEach(B=>{b.text+=B.char}),b.data=null})(w)}})}})(a,t,i,n),t.textDecoration!=="none"&&(function(l,h){let c,d=0;const{fontSize:g,textDecoration:u}=h;switch(l.decorationHeight=g/11,O(u)?(c=u.type,u.color&&(l.decorationColor=Ct.string(u.color)),u.offset&&(d=Math.min(.3*g,Math.max(u.offset,.15*-g)))):c=u,c){case"under":l.decorationY=[.15*g+d];break;case"delete":l.decorationY=[.35*-g];break;case"under-delete":l.decorationY=[.15*g+d,.35*-g]}})(a,t),a}},qu={string:function(e,t){if(!e)return"#000";const i=it(t)&&t<1;if(V(e)){if(!i||!Ct.object)return e;e=Ct.object(e)}let s=M(e.a)?1:e.a;i&&(s*=t);const n=e.r+","+e.g+","+e.b;return s===1?"rgb("+n+")":"rgba("+n+","+s+")"}};function Wh(e){return e?et(e)?e:[e]:[]}Object.assign(sc,Gu),Object.assign(Ct,qu),Object.assign(st,nu),Object.assign(kt,_u),Object.assign(Hr,Cu),Object.assign(Fi,Au),Object.assign(bt,{interaction:(e,t,i,s)=>new K9(e,t,i,s),hitCanvas:(e,t)=>new ic(e,t),hitCanvasManager:()=>new Y9}),W7();class It extends Xe{get list(){return Wh(this.value)}get oldList(){return Wh(this.oldValue)}constructor(t,i){super(t),i&&Object.assign(this,i)}}It.BEFORE_SELECT="editor.before_select",It.SELECT="editor.select",It.AFTER_SELECT="editor.after_select",It.BEFORE_HOVER="editor.before_hover",It.HOVER="editor.hover";const zh=(e,t)=>e.parent.children.indexOf(e)-t.parent.children.indexOf(t),Hh=(e,t)=>t.parent.children.indexOf(t)-e.parent.children.indexOf(e),q0={group(e,t,i){e.sort(Hh);const{app:s,parent:n}=e[0];let r;r=i&&i.add?i:new ht(i),n.addAt(r,n.children.indexOf(e[0])),e.sort(zh);const o=new $t(t.worldTransform);return o.divideParent(n.scrollWorldTransform),r.setTransform(o),r.editable=!0,r.hit
3Children=!1,s.lockLayout(),e.forEach(a=>a.dropTo(r)),s.unlockLayout(),r},ungroup(e){const{app:t}=e[0],i=[];return t.lockLayout(),e.forEach(s=>{if(s.isBranch){const{parent:n,children:r}=s;for(;r.length;)i.push(r[0]),r[0].dropTo(n,n.children.indexOf(s));s.isBranchLeaf?i.push(s):s.remove()}else i.push(s)}),t.unlockLayout(),i},toTop(e){e.sort(zh),e.forEach(t=>{t.parent&&t.parent.add(t)})},toBottom(e){e.sort(Hh),e.forEach(t=>{t.parent&&t.parent.addAt(t,0)})},mergeMaskConfig(e,t){},getSiblingMaskElements(e){}};function P1(e){return(t,i)=>{const s="_"+i;fe(t,i,{get(){return this[s]},set(n){const r=this[s];if(r!==n){const o=this;if(o.config){const a=i==="target";if(a){const{beforeSelect:h,skipNested:c}=o.config;if(et(n)){if(c){const d=n[0];if(n.some(g=>g.__level!==d.__level)){n.sort((p,_)=>p.__level-_.__level);const g=n[0].__level,u=[];n.forEach(p=>{u.length&&u.some(_=>$.hasParent(p,_,g))||u.push(p)}),n=u}}n.length>1&&n.some(d=>d.locked||d.editable==="single")&&(n=n.filter(d=>!(d.locked||d.editable==="single")))}if(h){const d=h({target:n});if(O(d))n=d;else if(d===!1)return}o.hasDimOthers&&o.cancelDimOthers(),o.single&&(delete o.element.syncEventer,delete o.element.__world.ignorePixelSnap)}const l=a?It.BEFORE_SELECT:It.BEFORE_HOVER;this.hasEvent(l)&&this.emitEvent(new It(l,{editor:o,value:n,oldValue:r}))}this[s]=n,e(this,r)}}})}}function Ku(){return(e,t)=>
3{fe(e,t,{get(){const i=this,{config:s,userConfig:n,configKeepKeys:r}=i,o=s?q.clone(s):{};if(r)for(let a in n)r.includes(a)||(o[a]=n[a]);return i.preMergedConfig&&i.preMergedConfig(o),r&&r.forEach(a=>{n[a]&&Object.assign(o[a],n[a])}),i.mergedConfig=o}})}}const{abs:Nh}=Math,{copy:Zu}=K,{setListWithFn:$u}=P,{worldBounds:Ju}=ds,Ra={a:1,b:0,c:0,d:1,e:0,f:0},Xh={x:0,y:0,width:0,height:0};class Qr extends C{constructor(){super(),this.list=[],this.visible=0,this.hittable=!1,this.strokeAlign="center"}setTarget(t,i){i&&this.set(i),this.target=t,this.update()}update(t){const{list:i}=this;i.length?($u(Xh,i,Ju),t&&this.set(t),this.set(Xh),this.visible=!0,this.forceUpdate("surface")):this.visible=0}__draw(t,i){const{list:s}=this;if(s.length){let n;const r=this.__,{stroke:o,strokeWidth:a,fill:l}=r,{bounds:h}=i;for(let c=0;c<s.length;c++){n=s[c];const{worldTransform:d,worldRenderBounds:g}=n;if(g.width&&g.height&&(!h||h.hit(g,i.matrix))){const u=Nh(d.scaleX),p=Nh(d.scaleY);switch(Zu(Ra,d),Ra.half=a%2,t.setWorld(Ra,i.matrix),t.beginPath(),this.strokePathType){case"box":const{boxBounds:_}=n.__layout;t.rect(_.x,_.y,_.width,_.height);break;case"stroke":const{strokeBounds:y}=n.__layout;t.rect(y.x,y.y,y.width,y.height);break;case"path":n.__drawPath(t);break;default:n.__.__useArrow?n.__drawPath(t):n.__.__pathForRender?n.__drawRenderPath(t):n.__drawPathByBox(t)}if(r.strokeWidth=a/Math.max(u,p),r.shadow){const _=r.shadow[0],{scaleX:y,scaleY:x}=this.getRenderScaleData(!0,_.scaleFixed);t.save(),t.setWorldShadow(_.x*y,_.y*x,_.blur*y,Ct.string(_.color))}o&&(V(o)?st.stroke(o,this,t,i):st.strokes(o,this,t,i)),l&&(V(l)?st.fill(l,this,t,i):st.fills(l,this,t,i)),r.shadow&&t.restore()}}r.strokeWidth=a}}destroy(){this.target=null,super.destroy()}}f([P1(function(e){const t=e.target;e.list=t?et(t)?t:[t]:[]})],Qr.prototype,"target",void 0),f([We("render-path")],Qr.prototype,"strokePathType",void 0);class Qu extends ht{constructor(t){super(t),this.strokeArea=new J({strokeAlign:"center"}),this.fillArea=new J,this.visible=0,this.hittable=!1,this.addMany(this.fillArea,this.strokeArea)}setStyle(t,i){const{visible:s,stroke:n,strokeWidth:r}=t;this.visible=s,this.strokeArea.reset(Object.assign({stroke:n,strokeWidth:r},i||{})),this.fillArea.reset({visible:!i,fill:n,opacity:.2})}setBounds(t){this.strokeArea.set(t),this.fillArea.set(t)}}const tg={findOne:e=>e.list.find(t=>t.editable),findByBounds(e,t,i="hit"){const s=[];return gc([e],s,t,i),s}};function gc(e,t,i,s){let n,r,o;for(let a=0,l=e.length;a<l;a++)if(n=e[a],r=n.__,r.hittable&&r.visible&&!r.locked&&i.hit(n.__world)){if(r.editable&&r.editable!=="single")if(n.isFrame){if(i.includes(n.__layout.boxBounds,n.__world)){t.push(n);continue}}else if(o=i[s](n.__layout.boxBounds,n.__world)&&r.hitSelf,n.isBranch){if(!r.hitChildren||o&&n.children.every(h=>!h.editable)){o&&t.push(n);continue}}else o&&t.push(n);n.isBranch&&gc(n.children,t,i,s)}}const{findOne:Pa,findByBounds:eg}=tg;class ig extends ht{get dragging(){return!!this.originList}get running(){const{editor:t,app:i}=this;return this.hittable&&t.visible&&t.hittable&&t.mergeConfig.selector&&i&&i.mode==="normal"}get isMoveMode(){const{app:t}=this;return t&&t.interaction.moveMode}constructor(t){super(),this.hoverStroker=new Qr,this.targetStroker=new Qr,this.bounds=new rt,this.selectArea=new Qu,this.__eventIds=[],this.editor=t,this.addMany(this.targetStroker,this.hoverStroker,this.selectArea),this.__listenEvents()}onHover(){const{editor:t}=this;if(!this.running||this.dragging||t.dragging)this.hoverStroker.target=null;else{const{hoverTarget:i,mergeConfig:s}=t,n=Object.assign({},s);i&&i.editConfig&&Object.assign(n,i.editConfig);const{stroke:r,strokeWidth:o,hover:a,hoverStyle:l,hoverPathType:h}=n;this.hoverStroker.setTarget(a?i:null,Object.assign({stroke:r,strokeWidth:o,strokePathType:h},l||{}))}}onSelect(){if(this.running){const{editor:t}=this;let{list:i}=t;const s=q0.getSiblingMaskElements(t);s&&(i=s.concat(i)),this.targetStroker.setTarget(i),this.hoverStroker.target=null}}update(){this.hoverStroker.update();const{stroke:t,strokeWidth:i,selectedPathType:s,selectedStyle:n}=this.editor.mergedConfig;this.targetStroker.update(Object.assign({stroke:t,strokeWidth:i&&Math.max(1,i/2),strokePathType:s},n||{}))}onPointerMove(t){const{app:i,editor:s}=this;if(this.running&&!this.isMoveMode&&i.interaction.canHover&&!i.interaction.dragging){const n=this.findUI(t);s.hoverTarget=s.hasItem(n)?null:n}this.isMoveMode&&(s.hoverTarget=null)}onBeforeDown(t){if(t.multiTouch)return;const{select:i}=this.editor.mergeConfig;i==="press"&&(this.app.config.mobile?this.waitSelect=()=>this.checkAndSelect(t):this.checkAndSelect(t))}onTap(t){if(t.multiTouch)return;const{editor:i}=this,{select:s,selectKeep:n}=i.mergeConfig;s==="tap"?this.checkAndSelect(t):this.waitSelect&&this.waitSelect(),this.needRemoveItem?i.removeItem(this.needRemoveItem):this.isMoveMode&&(n||(i.target=null))}
3checkAndSelect(t){if(this.needRemoveItem=null,this.allowSelect(t)){const{editor:i}=this,s=this.findUI(t);s?(this.isMultipleSelect(t)?i.hasItem(s)?this.needRemoveItem=s:i.addItem(s):i.target=s,t.path.needUpdate=!0):this.allow(t.target)&&(this.isHoldMultipleSelectKey(t)||this.editor.mergedConfig.selectKeep||(i.target=null))}}onDragStart(t){if(!t.multiTouch&&(this.waitSelect&&this.waitSelect(),this.allowDrag(t))){const{editor:i}=this,{stroke:s,area:n}=i.mergeConfig,{x:r,y:o}=t.getInnerPoint(this);this.bounds.set(r,o),this.selectArea.setStyle({visible:!0,stroke:s,x:r,y:o},n),this.selectArea.setBounds(this.bounds.get()),this.originList=i.leafList.clone()}}onDrag(t){if(!t.multiTouch){if(this.editor.dragging)return this.onDragEnd(t);if(this.dragging){const{editor:i}=this,s=t.getInnerTotal(this),n=this.bounds.clone().unsign(),r=new wt(eg(i.app,n,i.mergedConfig.boxSelect==="includes"?"includes":"hit"));if(this.bounds.width=s.x,this.bounds.height=s.y,this.selectArea.setBounds(n.get()),r.length){const o=[];this.originList.forEach(a=>{r.has(a)||o.push(a)}),r.forEach(a=>{this.originList.has(a)||o.push(a)}),(o.length!==i.list.length||i.list.some((a,l)=>a!==o[l]))&&(i.target=o)}else i.target=this.originList.list}}}onDragEnd(t){t.multiTouch||this.dragging&&(this.originList=null,this.selectArea.visible=0)}onAutoMove(t){if(this.dragging){const{x:i,y:s}=t.getLocalMove(this);this.bounds.x+=i,this.bounds.y+=s}}allow(t){return t.leafer!==this.editor.leafer}allowDrag(t){const{boxSelect:i,multipleSelect:s}=this.editor.mergeConfig;return!(!(this.running&&s&&i)||t.target.draggable)&&(!this.editor.editing&&this.allow(t.target)||this.isHoldMultipleSelectKey(t)&&!Pa(t.path))}allowSelect(t){return this.running&&!this.isMoveMode&&!t.middle}findDeepOne(t){const i={exclude:new wt(this.editor.editBox.rect)};return Pa(t.target.leafer.interaction.findPath(t,i))}findUI(t){return this.isMultipleSelect(t)?this.findDeepOne(t):Pa(t.path)}isMultipleSelect(t){const{multipleSelect:i,continuousSelect:s}=this.editor.mergeConfig;return i&&(this.isHoldMultipleSelectKey(t)||s)}isHoldMultipleSelectKey(t){const{multipleSelectKey:i}=this.editor.mergedConfig;return i?t.isHoldKeys(i):t.shiftKey}__listenEvents(){const{editor:t}=this;t.waitLeafer(()=>{const{app:i}=t;i.selector.proxy=t,this.__eventIds=[t.on_([[It.HOVER,this.onHover,this],[It.SELECT,this.onSelect,this]]),i.on_([[W.MOVE,this.onPointerMove,this],[W.BEFORE_DOWN,this.onBeforeDown,this],[W.TAP,this.onTap,this],[G.START,this.onDragStart,this,!0],[G.DRAG,this.onDrag,this],[G.END,this.onDragEnd,this],[ft.MOVE,this.onAutoMove,this],[[Xt.ZOOM,ft.MOVE],()=>{this.editor.hoverTarget=null}]])]})}__removeListenEvents(){this.off_(this.__eventIds)}destroy(){this.editor=this.originList=this.needRemoveItem=null,this.__removeListenEvents(),super.destroy()}}const{topLeft:ji,top:Ws,topRight:Ui,right:zs,bottomRight:Vi,bottom:Hs,bottomLeft:Gi,left:Ns}=g0,{toPoint:Fa}=qt,{within:Yh,sign:mi}=ct,{abs:qi}=Math,c0={getScaleData(e,t,i,s,n,r,o,a){let l,h,c={},d=1,g=1;const{widthRange:u,heightRange:p,dragBounds:_,worldTransform:y,boxBounds:x}=e,{width:m,height:w}=t,v=qi(y.scaleX),b=qi(y.scaleY),B=e.scaleX/t.scaleX,S=e.scaleY/t.scaleY,R=mi(B),X=mi(S),z=a?B:R*x.width/m,T=a?S:X*x.height/w;if(it(s))d=g=Math.sqrt(s);else{r&&(s.x*=2,s.y*=2),s.x*=a?B:R,s.y*=a?S:X;const U=(-s.y+w)/w,Z=(s.x+m)/m,at=(s.y+w)/w,Q=(-s.x+m)/m;switch(i){case Ws:g=U,l="bottom";break;case zs:d=Z,l="left";break;case Hs:g=at,l="top";break;case Ns:d=Q,l="right";break;case ji:g=U,d=Q,l="bottom-right";break;case Ui:g=U,d=Z,l="bottom-left";break;case Vi:g=at,d=Z,l="top-left";break;case Gi:g=at,d=Q,l="top-right"}if(n)if(n==="corner"&&i%2)n=!1;else switch(i){case Ws:case Hs:d=g;break;case Ns:case zs:g=d;break;default:h=Math.sqrt(qi(d*g)),d=mi(d)*h,g=mi(g)*h}}const H=d!==1,E=g!==1;if(H&&(d/=z),E&&(g/=T),o||(d<0&&(d=1/x.width/v),g<0&&(g=1/x.height/b)),Fa(r||l,x,c,!0),_){const U={x:d,y:g};as.limitScaleOf(e,c,U,n),d=U.x,g=U.y}if(H&&u){const U=x.width*e.scaleX;d=Yh(U*d,u)/U}if(E&&p){const U=x.height*e.scaleY;g=Yh(U*g,p)/U}const D=v*x.width,N=b*x.height;return H&&qi(d*D)<1&&(d=1*mi(d)/D),E&&qi(g*N)<1&&(g=1*mi(g)/N),n&&d!==g&&(h=Math.min(qi(d),qi(g)),d=mi(d)*h,g=mi(g)*h),isFinite(d)||(d=1),isFinite(g)||(g=1),{origin:c,scaleX:d,scaleY:g,direction:i,lockRatio:n,around:r}},getRotateData(e,t,i,s,n){let r,o={};switch(t){case ji:r="bottom-right";break;case Ui:r="bottom-left";break;case Vi:r="top-left";break;case Gi:r="top-right";break;default:r="center"}return Fa(n||r,e.boxBounds,o,!0),{origin:o,rotation:A.getRotation(s,e.getWorldPointByBox(o),i)}},getSkewData(e,t,i,s){let n,r,o={},a=0,l=0;switch(t){case Ws:case ji:r={x:.5,y:0},n="bottom",a=1;break;case Hs:case Vi:r={x:.5,y:1},n="top",a=1;break;case Ns:case Gi:r={x:0,y:.5},n="right",l=1;break;case zs:case Ui:r={x:1,y:.5},n="left",l=1}const{boxBounds:h}=e,{width:c,height:d}=h;r.x=r.x*c,r.y=r.y*d,Fa(s||n,h,o,!0);const g=A.getRotation(r,o,{x:r.x+(a?i.x:0),y:r.y+(l?i.y:0)});return a?a=-g:l=g,{origin:o,skewX:a,skewY:l}},getAround:(e,t)=>t&&!e?"center":e,getRotateDirection:(e,t,i=8)=>((e=(e+Math.round(t/(360/i)))%i)<0&&(e+=i),e),getFlipDirection(e,t,i){if(t)switch(e){case Ns:e=zs;break;case ji:e=Ui;break;case Gi:e=Vi;break;case zs:e=Ns;break;case Ui:e=ji;break;case Vi:e=Gi}if(i)switch(e){case Ws:e=Hs;break;case ji:e=Gi;break;case Ui:e=Vi;break;case Hs:e=Ws;break;case Gi:e=ji;break;case Vi:e=Ui}return e}},Ma={};function jh(e){const{moveCursor:t,moveable:i}=e.mergeConfig;e.canUse&&(e.rect.cursor=i?t:void 0)}function sg(e,t){return'"data:image/svg+xml,'+encodeURIComponent(e.replace("{{rotation}}",t.toString()))+'"'}class Xs extends k{constructor(t){super(t),this.useFastShadow=!0}
3}const Uh=["top","right","bottom","left"],Vh=void 0,ng=ot.get("EditBox");class es extends ht{get mergeConfig(){const{config:t}=this,{mergeConfig:i,editBox:s}=this.editor;return this.mergedConfig=t&&s!==this?Object.assign(Object.assign({},i),t):i}get target(){return this._target||this.editor.element}set target(t){this._target=t}get single(){return!!this._target||this.editor.single}get transformTool(){return this._transformTool||this.editor}set transformTool(t){this._transformTool=t}get flipped(){return this.flippedX||this.flippedY}get flippedX(){return this.scaleX<0}get flippedY(){return this.scaleY<0}get flippedOne(){return this.scaleX*this.scaleY<0}get canUse(){return this.app&&this.editor.editing}get canGesture(){if(!this.canUse)return!1;const{moveable:t,resizeable:i,rotateable:s}=this.mergeConfig;return V(t)||V(i)||V(s)}get canDragLimitAnimate(){return this.moving&&this.mergeConfig.dragLimitAnimate&&this.target.dragBounds}constructor(t){super(),this.view=new ht,this.rect=new Xs({name:"rect",hitFill:"all",hitStroke:"none",strokeAlign:"center",hitRadius:5}),this.circle=new Xs({name:"circle",strokeAlign:"center",around:"center",cursor:"crosshair",hitRadius:5}),this.buttons=new ht({around:"center",hitSelf:!1,visible:0}),this.resizePoints=[],this.rotatePoints=[],this.resizeLines=[],this.dragStartData={},this.__eventIds=[],this.widgets=[],this.editor=t,this.visible=!1,this.create(),this.__listenEvents(),this.createWidgets()}create(){let t,i,s;const{view:n,resizePoints:r,rotatePoints:o,resizeLines:a,rect:l,circle:h,buttons:c}=this,d=["bottom-right","bottom","bottom-left","left","top-left","top","top-right","right"];for(let g=0;g<8;g++)t=new Xs({name:"rotate-point",around:d[g],width:15,height:15,hitFill:"all"}),o.push(t),this.listenPointEvents(t,"rotate",g),g%2&&(i=new Xs({name:"resize-line",around:"center",width:10,height:10,hitFill:"all"}),a.push(i),this.listenPointEvents(i,"resize",g)),s=new Xs({name:"resize-point",hitRadius:5}),r.push(s),this.listenPointEvents(s,"resize",g);this.listenPointEvents(h,"rotate",2),this.listenPointEvents(l,"move",8),n.add([...o,l,h,c,...a,...r]),this.add(n)}showView(){this.view.opacity=1,this.update()}hideView(){this.view.opacity=0}load(){const{target:t,mergeConfig:i,single:s,rect:n,circle:r,resizePoints:o,resizeLines:a}=this,{stroke:l,strokeWidth:h,ignorePixelSnap:c}=i,d=this.getPointsStyle(),g=this.getMiddlePointsStyle(),u=this.getResizeLinesStyle();let p;this.visible=!t.locked;for(let y=0;y<8;y++)p=o[y],p.children.length&&p.clear(),p.set(this.getPointStyle(y%2?g[(y-1)/2%g.length]:d[y/2%d.length])),p.rotation=(y-(y%2?1:0))/2*90,y%2&&a[(y-1)/2].set(Object.assign({pointType:"resize",rotation:(y-1)/2*90},u[(y-1)/2%u.length]||{}));r.set(this.getPointStyle(i.circle||i.rotatePoint||d[0])),n.set(Object.assign({stroke:l,strokeWidth:h,opacity:1,editConfig:Vh},i.rect||{}));const _=Nt(i.rectThrough)?s:i.rectThrough;n.hittable=!_,_&&this.addBottomList(),s&&q.stintSet(t.__world,"ignorePixelSnap",c),this.updateMoveCursor(),this.loadWidgets()}update(){const{editor:t,target:i}=this;if(!i)return;const{x:s,y:n,scaleX:r,scaleY:o,rotation:a,skewX:l,skewY:h,width:c,height:d}=i.getLayoutBounds("box",t,!0);this.visible=!this.target.locked,this.set({x:s,y:n,scaleX:r,scaleY:o,rotation:a,skewX:l,skewY:h}),this.updateBounds({x:0,y:0,width:c,height:d}),this.updateWidgets()}unload(){this.unloadWidgets(),this.visible=!1,this.removeBottomList()}addBottomList(){const{target:t,rect:i}=this;t.syncEventer=i,this.app.interaction.bottomList=[{target:i,proxy:t}]}removeBottomList(){this.app&&(this.rect.syncEventer=this.app.interaction.bottomList=null)}updateBounds(t){const{editor:i,target:s,mergeConfig:n,single:r,rect:o,circle:a,buttons:l,resizePoints:h,rotatePoints:c,resizeLines:d}=this,{editMask:g}=i,{middlePoint:u,resizeable:p,rotateable:_,hideOnSmall:y,editBox:x,editBoxType:m,mask:w,dimOthers:v,bright:b,spread:B,hideRotatePoints:S,hideResizeLines:R}=n;if(m==="stroke"){const{scaleX:X,scaleY:z}=s.worldTransform,{strokeBoxSpread:T}=s.__layout;T&&P.spread(t,[T*Math.abs(z),T*Math.abs(X)])}if(B&&P.spread(t,B),this.rectBounds=t,g.visible=!!w||0,M(v)&&M(b)?i.hasDimOthers&&i.cancelDimOthers():(i.setDimOthers(v),i.setBright(!!v||b),i.hasDimOthers=!0),this.view.worldOpacity){const{width:X,height:z}=t,T=it(y)?y:10,H=this.showPoints=x&&!(y&&X<T&&z<T);let E,D,N,U={};for(let Z=0;Z<8;Z++)qt.toPoint(qt.directionData[Z],t,U),D=h[Z],E=c[Z],D.set(U),E.set(U),D.visible=H&&!(!p&&!_),E.visible=H&&_&&p&&!S,Z%2&&(N=d[(Z-1)/2],N.set(U),N.visible=D.visible&&!R,D.visible&&(D.visible=!!u),E.visible&&(E.visible=!!u),(Z+1)/2%2?(N.width=X+N.height,y&&2*D.width>X&&(D.visible=!1)):(N.width=z+N.height,y&&2*D.width>z&&(D.visible=!1)));a.visible=H&&_&&!(!n.circle&&!n.rotatePoint),a.visible&&this.layoutCircle(),o.path&&(o.path=null),o.set(Object.assign(Object.assign({},t),{visible:!r||x})),l.visible=H&&l.children.length>0||0,l.visible&&this.layoutButtons()}else o.set(t)}layoutCircle(){const{circleDirection:t,circleMargin:i,buttonsMargin:s,buttonsDirection:n,middlePoint:r}=this.mergedConfig,o=Uh.indexOf(t||(this.buttons.children.length&&n==="bottom"?"top":"bottom"));this.setButtonPosition(this.circle,o,i||s,!!r)}layoutButtons(){const{buttons:t}=this,{buttonsDirection:i,buttonsFixed:s,buttonsMargin:n,middlePoint:r}=this.mergedConfig,{flippedX:o,flippedY:a}=this;let l=Uh.indexOf(i);(l%2&&o||(l+1)%2&&a)&&s&&(l=(l+2)%4);const h=s?c0.getRotateDirection(l,this.flippedOne?this.rotation:-this.rotation,4):l;this.setButtonPosition(t,h,n,!!r),s&&(t.rotation=90*(h-l)),t.scaleX=o?-1:1,t.scaleY=a?-1:1}setButtonPosition(t,i,s,n){const r=this.resizePoints[2*i+1],o=i%2,a=i&&i!==3?1:-1,l=(s+(i%2?(n?r.width:0)+t.boxBounds.width:(n?r.height:0)+t.boxBounds.height)/2)*a;o?(t.x=r.x+l,t.y=r.y):(t.x=r.x,t.y=r.y+l)}getPointStyle(t){const{stroke:i,strokeWidth:s,pointFill:n,pointSize:r,pointRadius:o}=this.mergedConfig,a={fill:n,stroke:i,strokeWidth:s,around:"center",strokeAlign:"center",opacity:1,width:r,height:r,cornerRadius:o,offsetX:0,offsetY:0,editConfig:Vh};return t?Object.assign(a,t):a}getPointsStyle(){const{point:t}=this.mergedConfig;return et(t)?t:[t]}getMiddlePointsStyle(){const{middlePoint:t}=this.mergedConfig;return et(t)?t:t?[t]:this.getPointsStyle()}getResizeLinesStyle(){const{resizeLine:t}=this.mergedConfig;return et(t)?t:[t]}
3updateMoveCursor(){jh(this)}updatePointCursor(t){(function(i,s){const{enterPoint:n,dragging:r,skewing:o,resizing:a,flippedX:l,flippedY:h}=i;if(!n||!i.editor.editing||!i.canUse)return;if(n.name==="rect")return jh(i);if(n.name==="circle")return;let{rotation:c}=i;const{pointType:d}=n,{moveCursor:g,resizeCursor:u,rotateCursor:p,skewCursor:_,moveable:y,resizeable:x,rotateable:m,skewable:w}=i.mergeConfig;if(d==="move")return n.cursor=g,void(y||(n.visible=!1));if(d==="button")return void(n.cursor||(n.cursor="pointer"));let v=d.includes("resize");v&&m&&(i.isHoldRotateKey(s)||!x)&&(v=!1);const b=w&&!v&&(n.name==="resize-line"||d==="skew"),B=r?o?_:a?u:p:b?_:v?u:p;c+=45*(c0.getFlipDirection(n.direction,l,h)+1),c=2*Math.round(ct.formatRotation(c,!0)/2);const{url:S,x:R,y:X}=B,z=S+c;Ma[z]?n.cursor=Ma[z]:Ma[z]=n.cursor={url:sg(S,c),x:R,y:X}})(this,t)}onDragStart(t){this.dragging=!0;const i=this.dragPoint=t.current,{pointType:s}=i,{moveable:n,resizeable:r,rotateable:o,skewable:a,onCopy:l}=this.mergeConfig;s==="move"?(t.altKey&&l&&l()&&this.editor.single&&this.app.interaction.replaceDownTarget(this.target),n&&(this.moving=!0),this.moving&&this.widgetsMoveStart(t)):(s.includes("rotate")||this.isHoldRotateKey(t)||!r?(o&&(this.rotating=!0),s==="resize-rotate"?r&&(this.resizing=!0):i.name==="resize-line"&&(a&&(this.skewing=!0),this.rotating=!1)):s==="resize"&&r&&(this.resizing=!0),s==="skew"&&a&&(this.skewing=!0)),this.onTransformStart(t)}onDrag(t){const{transformTool:i,moving:s,resizing:n,rotating:r,skewing:o}=this;if(s)i.onMove(t),this.widgetsMove(t);else if(n||r||o){const a=t.current;a.pointType&&(this.enterPoint=a),r&&i.onRotate(t),n&&i.onScale(t),o&&i.onSkew(t)}this.updatePointCursor(t)}onDragEnd(t){this.moving&&this.widgetsMoveEnd(t),this.onTransformEnd(t),this.dragPoint=null}onTransformStart(t){const{hideOnMove:i}=this.mergedConfig;(this.moving||this.gesturing)&&(this.editor.opacity=i?0:1),this.resizing&&(Qe.resizingKeys=this.editor.leafList.keys);const{dragStartData:s,target:n}=this;s.x=t.x,s.y=t.y,s.totalOffset={x:0,y:0},s.point={x:n.x,y:n.y},s.bounds=Object.assign({},n.getLayoutBounds("box","local")),s.rotation=n.rotation}onTransformEnd(t){this.canDragLimitAnimate&&(t instanceof G||t instanceof ft)&&this.transformTool.onMove(t),this.resizing&&(Qe.resizingKeys=null),this.dragging=this.gesturing=this.moving=this.resizing=this.rotating=this.skewing=!1,this.editor.opacity=1,this.editor.update()}onMove(t){if(this.canGesture&&t.moveType!=="drag"&&(t.stop(),V(this.mergedConfig.moveable)))switch(this.gesturing=this.moving=!0,t.type){case ft.START:this.onTransformStart(t),this.widgetsMoveStart(t);break;case ft.END:this.onTransformEnd(t),this.widgetsMoveEnd(t);break;default:this.transformTool.onMove(t),this.widgetsMove(t)}}onScale(t){if(this.canGesture&&(t.stop(),V(this.mergedConfig.resizeable)))switch(this.gesturing=this.resizing=!0,t.type){case Xt.START:this.onTransformStart(t);break;case Xt.END:this.onTransformEnd(t);break;default:this.transformTool.onScale(t)}}onRotate(t){if(this.canGesture&&(t.stop(),V(this.mergedConfig.rotateable)))switch(this.gesturing=this.rotating=!0,t.type){case Xt.START:this.onTransformStart(t);break;case Xt.END:this.onTransformEnd(t);break;default:this.transformTool.onRotate(t)}}isHoldRotateKey(t){const{rotateKey:i}=this.mergedConfig;return i?t.isHoldKeys(i):t.metaKey||t.ctrlKey}onKey(t){this.updatePointCursor(t)}onArrow(t){if(this.canUse){let i=0,s=0;switch(t.code){case"ArrowDown":s=1;break;case"ArrowUp":s=-1;break;case"ArrowLeft":i=-1;break;case"ArrowRight":i=1}if(i||s){const{keyEvent:n,arrowStep:r,arrowFastStep:o}=this.mergeConfig;if(n){const a=t.shiftKey?o:r;this.transformTool.move(i*a,s*a)}}}}onDoubleTap(t){const{openInner:i,preventEditInner:s}=this.mergeConfig;i!=="double"||s||this.openInner(t)}onLongPress(t){const{openInner:i,preventEditInner:s}=this.mergeConfig;i==="long"&&s&&this.openInner(t)}openInner(t){const{editor:i,target:s}=this;if(this.single){if(s.locked)return;if(s.isBranch&&!s.editInner){if(s.textBox){const{children:n}=s,r=n.find(o=>o.editable&&o instanceof j)||n.find(o=>o instanceof j);if(r)return i.openInnerEditor(r)}i.openGroup(s),i.target=i.selector.findDeepOne(t)}else i.openInnerEditor()}}listenPointEvents(t,i,s){t.direction=s,t.pointType=i,this.__eventIds.push(t.on_([[G.START,this.onDragStart,this],[G.DRAG,this.onDrag,this],[G.END,this.onDragEnd,this],[W.ENTER,n=>{this.enterPoint=t,this.updatePointCursor(n)}],[W.LEAVE,()=>{this.enterPoint=null}]]))}__listenEvents(){const{rect:t,editor:i,__eventIds:s}=this;s.push(t.on_([[W.DOUBLE_TAP,this.onDoubleTap,this],[W.LONG_PRESS,this.onLongPress,this]])),this.waitLeafer(()=>{s.push(i.app.on_([[[Zt.HOLD,Zt.UP],this.onKey,this],[Zt.DOWN,this.onArrow,this],[[ft.START,ft.BEFORE_MOVE,ft.END],this.onMove,this,!0],[[Xt.START,Xt.BEFORE_ZOOM,Xt.END],this.onScale,this,!0],[[de.START,de.BEFORE_ROTATE,de.END],this.onRotate,this,
3!0]]))})}__removeListenEvents(){this.off_(this.__eventIds)}static registerWidget(t){const{tag:i}=t.prototype;es.WidgetList[i]&&ng.repeat(i),es.WidgetList[i]=t}createWidgets(){Object.values(es.WidgetList).forEach(t=>{this.widgets.push(new t(this))})}getWidget(t){return this.widgets.find(i=>i.tag===t)}loadWidgets(){this.widgets.forEach(t=>t.onLoad())}updateWidgets(){this.widgets.forEach(t=>t.onUpdate())}unloadWidgets(){this.widgets.forEach(t=>t.onUnload())}widgetsMoveStart(t){this.widgets.forEach(i=>i.onMove&&i.onMoveStart(t))}widgetsMove(t){this.widgets.forEach(i=>i.onMove&&i.onMove(t))}widgetsMoveEnd(t){this.widgets.forEach(i=>i.onMove&&i.onMoveEnd(t))}destroyWidgets(){this.widgets.forEach(t=>t.onDestroy())}destroy(){this.editor=null,this.__removeListenEvents(),this.destroyWidgets(),super.destroy()}}es.WidgetList={};const Gh={x:0,y:0,width:1e5,height:1e5};class rg extends C{constructor(t){super(),this.editor=t,this.hittable=!1,this.visible=0}__updateWorldBounds(){Object.assign(this.__local,Gh),Object.assign(this.__world,Gh)}__draw(t,i){const{editor:s}=this,{mask:n}=s.mergedConfig;if(n&&s.editing){if(t.fillWorld(t.bounds,n===!0?"rgba(0,0,0,0.8)":n),i.bounds&&!i.bounds.hit(s.editBox.rect.__world,i.matrix))return;t.saveBlendMode("destination-out"),i=Object.assign(Object.assign({},i),{shape:!0}),s.list.forEach(r=>{r.__render(t,i);const{parent:o}=r;o&&o.textBox&&o.__renderShape(t,i)}),t.restoreBlendMode()}}destroy(){this.editor=null,super.destroy()}}const Da=` 4<feOffset dy="1"/> 5<feGaussianBlur stdDeviation="1.5"/> 6<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"/> 7<feBlend mode="normal" in="SourceGraphic" result="shape"/>`,og={editSize:"size",keyEvent:!0,stroke:"#836DFF",strokeWidth:2,pointFill:"#FFFFFF",pointSize:10,pointRadius:16,rotateGap:45,arrowStep:1,arrowFastStep:10,buttonsDirection:"bottom",buttonsMargin:12,hideOnSmall:!0,moveCursor:"move",resizeCursor:{url:` 8<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"> 9<g filter="url(#f)"> 10<g transform="rotate({{rotation}},12,12)"> 11<path d="M7.5 8.0H8.5V5.9L6.8 7.2L7.5 8.0ZM3 11.4L2.3 10.6L1.3 11.4L2.3 12.2L3 11.4ZM7.5 10.4H6.5V11.4H7.5V10.4ZM16.5 10.4V11.4H17.5V10.4H16.5ZM16.5 8.0L17.1 7.2L15.5 5.9V8.0H16.5ZM21 11.4L21.6 12.2L22.6 11.4L21.6 10.6L21 11.4ZM16.5 14.9H15.5V16.9L17.1 15.7L16.5 14.9ZM16.5 12.4H17.5V11.4H16.5V12.4ZM7.5 12.4V11.4H6.5V12.4H7.5ZM7.5 14.9L6.8 15.7L8.5 16.9V14.9H7.5ZM6.8 7.2L2.3 10.6L3.6 12.2L8.1 8.7L6.8 7.2ZM8.5 10.4V8.0H6.5V10.4H8.5ZM16.5 9.4H7.5V11.4H16.5V9.4ZM17.5 10.4V8.0H15.5V10.4H17.5ZM15.8 8.7L20.3 12.2L21.6 10.6L17.1 7.2L15.8 8.7ZM20.3 10.6L15.8 14.1L17.1 15.7L21.6 12.2L20.3 10.6ZM17.5 14.9V12.4H15.5V14.9H17.5ZM7.5 13.4H16.5V11.4H7.5V13.4ZM8.5 14.9V12.4H6.5V14.9H8.5ZM2.3 12.2L6.8 15.7L8.1 14.1L3.6 10.6L2.3 12.2Z" fill="white"/> 12<path fill-rule="evenodd" d="M3 11.4L7.5 8.0V10.4H16.5V8.0L21 11.4L16.5 14.9V12.4H7.5V14.9L3 11.4Z" fill="black"/> 13</g> 14</g> 15<defs> 16<filter id="f" x="-1.6" y="3.9" width="27.2" height="16.9" filterUnits="userSpaceOnUse"> 17${Da} 18</filter> 19</defs> 20</svg> 21`,x:12,y:12},rotateCursor:{url:` 22<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"> 23<g filter="url(#f)"> 24<g transform="rotate(135,12,12),rotate({{rotation}},12,12)"> 25<path d="M20.4 8H21.4L20.8 7.1L17.3 2.6L17 2.1L16.6 2.6L13.1 7.1L12.5 8H13.5H15.4C14.9 11.8 11.8 14.9 8 15.4V13.5V12.5L7.1 13.1L2.6 16.6L2.1 17L2.6 17.3L7.1 20.8L8 21.4V20.4V18.4C13.5 17.9 17.9 13.5 18.4 8H20.4Z" stroke="white"/> 26<path fill-rule="evenodd" d="M17 3L20.4 7.5H17.9C17.7 13.1 13.1 17.7 7.5 17.9V20.4L3 17L7.5 13.5V15.9C12.0 15.7 15.7 12.0 15.9 7.5H13.5L17 3Z" fill="black"/> 27</g> 28</g> 29<defs> 30<filter id="f" x="-1.6" y="-0.6" width="27.1" height="27.1" filterUnits="userSpaceOnUse"> 31${Da} 32</filter> 33</defs> 34</svg> 35`,x:12,y:12},skewCursor:{url:` 36<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"> 37<g filter="url(#f)"> 38<g transform="rotate(90,12,12),rotate({{rotation}},12,12)"> 39<path d="M21 10.4L21 11.4L23.8 11.4L21.6 9.6L21 10.4ZM17 10.4V11.4L17 11.4L17 10.4ZM15.5 6L16.1 5.2L14.5 3.9V6H15.5ZM15.5 8.4V9.4H16.5V8.4H15.5ZM6 8.4V7.4H5V8.4H6ZM6 10.4H5V11.4H6V10.4ZM7 14.4V13.4L7 13.4L7 14.4ZM3 14.4L3 13.4L0.1 13.4L2.3 15.2L3 14.4ZM8.5 18.9L7.8 19.7L9.5 21.0V18.9H8.5ZM8.5 16.4V15.4H7.5V16.4H8.5ZM19 16.4V17.4H20V16.4H19ZM19 14.4H20V13.4H19V14.4ZM21 9.4L17 9.4L17 11.4L21 11.4L21 9.4ZM14.8 6.7L20.3 11.2L21.6 9.6L16.1 5.2L14.8 6.7ZM16.5 8.4V6H14.5V8.4H16.5ZM6 9.4H15.5V7.4H6V9.4ZM7 10.4V8.4H5V10.4H7ZM15.5 9.4H6V11.4H15.5V9.4ZM17 9.4H15.5V11.4H17V9.4ZM7 15.4H8.5V13.4H7V15.4ZM3 15.4L7 15.4L7 13.4L3 13.4L3 15.4ZM9.1 18.1L3.6 13.6L2.3 15.2L7.8 19.7L9.1 18.1ZM7.5 16.4V18.9H9.5V16.4H7.5ZM19 15.4H8.5V17.4H19V15.4ZM18 14.4V16.4H20V14.4H18ZM8.5 15.4H19V13.4H8.5V15.4Z" fill="white"/> 40<path fill-rule="evenodd" d="M17 10.4L21 10.4L15.5 6V8.4H6V10.4H15.5H17ZM8.5 14.4H7L3 14.4L8.5 18.9V16.4H19V14.4H8.5Z" fill="black"/> 41</g> 42</g> 43<defs> 44<filter x="-2.8" y="1.9" width="29.6" height="23.1" filterUnits="userSpaceOnUse" > 45${Da} 46</filter> 47</defs> 48</svg> 49`,x:12,y:12},selector:!0,editBox:!0,editBoxType:"box",hover:!0,select:"press",openInner:"double",multipleSelect:!0,boxSelect:!0,moveable:!0,resizeable:!0,flipable:!0,rotateable:!0,skewable:!0},R0=new rt;function pc(e){const{simulateTarget:t,list:i}=e,{zoomLayer:s}=i[0].leafer;t.safeChange(()=>{R0.setListWithFn(i,n=>n.getBounds("box","page")),R0.width===0&&(R0.width=.1),R0.height===0&&(R0.height=.1),t.reset(R0.get())}),s.add(t)}const ag=ot.get("EditToolCreator");function i2(){return e=>{Je.register(e)}}const lg=i2,Je={EditTool:"EditTool",LineEditTool:"LineEditTool",PointsEditTool:"PointsEditTool",list:{},register(e,t){const{tag:i}=e.prototype;t||(t=i),Oa[t]&&ag.repeat(t),Oa[t]=e},get:(e,t)=>new Oa[e](t)},{list:Oa}=Je;class ci extends It{constructor(t,i){super(t,i)}}ci.BEFORE_OPEN="innerEditor.before_open",ci.OPEN="innerEditor.open",ci.BEFORE_CLOSE="innerEditor.before_close",ci.CLOSE="innerEditor.close";class Kt extends It{constructor(t,i){super(t,i)}}Kt.BEFORE_GROUP="editor.before_group",Kt.GROUP="editor.group",Kt.BEFORE_UNGROUP="editor.before_ungroup",Kt.UNGROUP="editor.ungroup",Kt.BEFORE_OPEN="editor.before_open_group",Kt.OPEN="editor.open_group",Kt.BEFORE_CLOSE="editor.before_close_group",Kt.CLOSE="editor.close_group";const{updateMatrix:Ia}=$,hg={x:1,y:1,scaleX:1,scaleY:1,rotation:1,skewX:1,skewY:1},Ys="top-left";class cg extends J{get __tag(){return"SimulateElement"}constructor(t){super(),this.checkChange=!0,this.canChange=!0,this.visible=this.hittable=!1,this.skipJSON=!0,this.on(ze.CHANGE,i=>{if(this.checkChange&&hg[i.attrName]){const{attrName:s,newValue:n,oldValue:r}=i,o=s[0]==="s"?(n||1)/(r||1):(n||0)-(r||0);this.canChange=!1;const a=this.__;a[s]=r,Ia(this.parent),Ia(this);const l=new $t(this.__world);switch(a[s]=n,this.__layout.rotationChange(),Ia(this),this.changedTransform=new $t(this.__world).divide(l),s){case"x":t.move(o,0);break;case"y":t.move(0,o);break;case"rotation":t.rotateOf(Ys,o);break;case"scaleX":t.scaleOf(Ys,o,1);break;case"scaleY":t.scaleOf(Ys,1,o);break;case"skewX":t.skewOf(Ys,o,0);break;case"skewY":t.skewOf(Ys,0,o)}this.canChange=!0}})}safeChange(t){this.canChange&&(this.checkChange=!1,t(),this.checkChange=!0)}}class K0 extends It{constructor(t,i){super(t,i)}}K0.BEFORE_MOVE="editor.before_move",K0.MOVE="editor.move";class he extends It{constructor(t,i){super(t,i)}}he.BEFORE_SCALE="editor.before_scale",he.SCALE="editor.scale";class Z0 extends It{constructor(t,i){super(t,i)}}Z0.BEFORE_ROTATE="editor.before_rotate",Z0.ROTATE="editor.rotate";class $0 extends It{constructor(t,i){super(t,i)}}$0.BEFORE_SKEW="editor.before_skew",$0.SKEW="editor.skew";class dg{onMove(t){const{target:i,mergeConfig:s,dragStartData:n}=this.editBox;let r,{dragLimitAnimate:o}=s;const a=t.type===ft.END||t.type===G.END,l=V(i.draggable),h=!o||a||l,c={x:t.totalX,y:t.totalY};t instanceof ft&&A.move(c,i.getWorldPointByLocal(n.totalOffset,null,!0)),t.shiftKey&&(Math.abs(c.x)>Math.abs(c.y)?c.y=0:c.x=0),r=G.getValidMove(i,n.point,c,h),(r.x||r.y)&&(o&&!l&&a?$.animateMove(this,r,it(o)?o:.3):this.move(r))}onScale(t){const{target:i,mergeConfig:s,single:n,dragStartData:r}=this.editBox;let o,{around:a,lockRatio:l,flipable:h,editSize:c}=s;t instanceof Xt?(a||(a=i.getBoxPoint(t)),o=t.totalScale):o=t.getInnerTotal(i);const{direction:d}=t.current;(t.shiftKey||i.lockRatio)&&(l=!0);const g=c0.getScaleData(i,r.bounds,d,o,l,c0.getAround(a,t.altKey),h,
49!n||c==="scale"),u=i.x,p=i.y;t instanceof G&&this.editTool&&this.editTool.onScaleWithDrag?(g.drag=t,this.scaleWithDrag(g)):this.scaleOf(g.origin,g.scaleX,g.scaleY),A.move(r.totalOffset,i.x-u,i.y-p)}onRotate(t){const{target:i,mergeConfig:s,dragStartData:n}=this.editBox,{around:r,rotateAround:o,rotateGap:a,diagonalRotateKey:l}=s,{direction:h}=t.current;let c,d;if(t instanceof de)d=t.rotation,c=o?qt.getPoint(o,i.boxBounds):i.getBoxPoint(t);else{const p=l?t.isHoldKeys(l):t.shiftKey,_=c0.getRotateData(i,h,t,n,p?null:o||i.around||i.origin||r||"center");d=n.rotation+_.rotation-i.rotation,c=_.origin}if(d=ct.float(ct.getGapRotation(d,a,i.rotation),2),!d)return;const g=i.x,u=i.y;this.rotateOf(c,d),A.move(n.totalOffset,i.x-g,i.y-u)}onSkew(t){const{target:i,mergeConfig:s}=this.editBox,{around:n}=s,{origin:r,skewX:o,skewY:a}=c0.getSkewData(i,t.current.direction,t.getInnerMove(i),c0.getAround(n,t.altKey));(o||a)&&this.skewOf(r,o,a)}move(t,i=0){if(!this.checkTransform("moveable"))return;O(t)&&(i=t.y,t=t.x);const{target:s,mergeConfig:n,single:r,editor:o}=this.editBox,{beforeMove:a}=n;if(a){const d=a({target:s,x:t,y:i});if(O(d))t=d.x,i=d.y;else if(d===!1)return}const l=s.getWorldPointByLocal({x:t,y:i},null,!0);r||s.safeChange(()=>s.move(t,i));const h={target:s,editor:o,moveX:l.x,moveY:l.y};this.emitEvent(new K0(K0.BEFORE_MOVE,h));const c=new K0(K0.MOVE,h);this.doMove(c),this.emitEvent(c)}scaleWithDrag(t){if(!this.checkTransform("resizeable"))return;const{target:i,mergeConfig:s,editor:n}=this.editBox,{beforeScale:r}=s;if(r){const{origin:a,scaleX:l,scaleY:h,drag:c}=t;if(r({target:i,drag:c,origin:a,scaleX:l,scaleY:h})===!1)return}t=Object.assign(Object.assign({},t),{target:i,editor:n,worldOrigin:i.getWorldPoint(t.origin)}),this.emitEvent(new he(he.BEFORE_SCALE,t));const o=new he(he.SCALE,t);this.editTool.onScaleWithDrag(o),this.emitEvent(o)}scaleOf(t,i,s=i,n){if(!this.checkTransform("resizeable"))return;const{target:r,mergeConfig:o,single:a,editor:l}=this.editBox,{beforeScale:h}=o;if(h){const p=h({target:r,origin:t,scaleX:i,scaleY:s});if(O(p))i=p.scaleX,s=p.scaleY;else if(p===!1)return}const c=this.getWorldOrigin(t),d=!a&&this.getChangedTransform(()=>r.safeChange(()=>r.scaleOf(t,i,s))),g={target:r,editor:l,worldOrigin:c,scaleX:i,scaleY:s,transform:d};this.emitEvent(new he(he.BEFORE_SCALE,g));const u=new he(he.SCALE,g);this.doScale(u),this.emitEvent(u)}flip(t){if(!this.checkTransform("resizeable"))return;const{target:i,single:s,editor:n}=this.editBox,r=this.getWorldOrigin("center"),o=s?new $t($.getFlipTransform(i,t)):this.getChangedTransform(()=>i.safeChange(()=>i.flip(t))),a={target:i,editor:n,worldOrigin:r,scaleX:t==="x"?-1:1,scaleY:t==="y"?-1:1,transform:o};this.emitEvent(new he(he.BEFORE_SCALE,a));const l=new he(he.SCALE,a);this.doScale(l),this.emitEvent(l)}rotateOf(t,i){if(!this.checkTransform("rotateable"))return;const{target:s,mergeConfig:n,single:r,editor:o}=this.editBox,{beforeRotate:a}=n;if(a){const g=a({target:s,origin:t,rotation:i});if(it(g))i=g;else if(g===!1)return}const l=this.getWorldOrigin(t),h=!r&&this.getChangedTransform(()=>s.safeChange(()=>s.rotateOf(t,i))),c={target:s,editor:o,worldOrigin:l,rotation:i,transform:h};this.emitEvent(new Z0(Z0.BEFORE_ROTATE,c));const d=new Z0(Z0.ROTATE,c);this.doRotate(d),this.emitEvent(d)}skewOf(t,i,s=0,n){if(!this.checkTransform("skewable"))return;const{target:r,mergeConfig:o,single:a,editor:l}=this.editBox,{beforeSkew:h}=o;if(h){const p=h({target:r,origin:t,skewX:i,skewY:s});if(O(p))i=p.skewX,s=p.skewY;else if(p===!1)return}const c=this.getWorldOrigin(t),d=!a&&this.getChangedTransform(()=>r.safeChange(()=>r.skewOf(t,i,s))),g={target:r,editor:l,worldOrigin:c,skewX:i,skewY:s,transform:d};this.emitEvent(new $0($0.BEFORE_SKEW,g));const u=new $0($0.SKEW,g);this.doSkew(u),this.emitEvent(u)}doMove(t){this.editTool.onMove(t)}doScale(t){this.editTool.onScale(t)}doRotate(t){this.editTool.onRotate(t)}doSkew(t){this.editTool.onSkew(t)}checkTransform(t){const{target:i,mergeConfig:s}=this.editBox;return i&&!i.locked&&s[t]}getWorldOrigin(t){const{target:i}=this.editBox;return i.getWorldPoint($.getInnerOrigin(i,t))}getChangedTransform(t){const{target:i,single:s}=this.editBox;if(!s&&!i.canChange)return i.changedTransform;const n=new $t(i.worldTransform);return t(),new $t(i.worldTransform).divide(n)}emitEvent(t,i){this.editBox.editor.emitEvent(t,i)}}let d0=class extends ht{get list(){return this.leafList.list}get dragHoverExclude(){return[this.editBox.rect]}
49get editing(){return!!this.list.length}get groupOpening(){return!!this.openedGroupList.length}get multiple(){return this.list.length>1}get single(){return this.list.length===1}get dragPoint(){return this.editBox.dragPoint}get dragging(){return this.editBox.dragging}get gesturing(){return this.editBox.gesturing}get moving(){return this.editBox.moving}get resizing(){return this.editBox.resizing}get rotating(){return this.editBox.rotating}get skewing(){return this.editBox.skewing}get element(){return this.multiple?this.simulateTarget:this.list[0]}get buttons(){return this.editBox.buttons}get targetLeafer(){const e=this.list[0];return e&&e.leafer}constructor(e,t){super(t),this.leafList=new wt,this.openedGroupList=new wt,this.simulateTarget=new cg(this),this.editBox=new es(this),this.editToolList={},this.selector=new ig(this),this.editMask=new rg(this),this.targetEventIds=[];let i=q.clone(og);e&&(i=q.default(e,i)),this.mergedConfig=this.config=i,this.addMany(this.editMask,this.selector,this.editBox),nt.has("resize")||(this.config.editSize="scale")}select(e){this.target=e}cancel(){this.target=null}hasItem(e){return this.leafList.has(e)}getItem(e){return this.list[e||0]}addItem(e){this.hasItem(e)||e.locked||(this.leafList.add(e),this.target=this.leafList.list)}removeItem(e){this.hasItem(e)&&(this.leafList.remove(e),this.target=this.leafList.list)}shiftItem(e){this.hasItem(e)?this.removeItem(e):this.addItem(e)}setDimOthers(e,t="dim",i){if(!i){const{dimTarget:s,targetLeafer:n}=this;i=s?et(s)?s:[s]:[n]}i[0]&&i[0][t]!==(e||!1)&&i.forEach(s=>q.stintSet(s,t,e))}setBright(e){this.setDimOthers(e,"bright",this.list)}cancelDimOthers(){this.setDimOthers(!1),this.setBright(!1),this.hasDimOthers=void 0}update(){if(this.editing){if(!this.element.parent)return this.cancel();this.innerEditing?this.innerEditor.update():this.editTool.update(),this.selector.update()}}updateEditBox(){this.multiple&&pc(this),this.update()}getEditTool(e){return this.editToolList[e]=this.editToolList[e]||Je.get(e,this)}updateEditTool(){if(this.unloadEditTool(),this.editing){const e=this.element;let t=e.editOuter||"EditTool";const{beforeEditOuter:i}=this.mergeConfig;if(i){const s=i({target:e,name:t});if(V(s))t=s;else if(s===!1)return}if(Je.list[t]){const s=this.editTool=this.getEditTool(t);this.editBox.load(),s.editTarget=e,s.load(),this.update()}}}unloadEditTool(e){let t=this.editTool;t&&(e||this.editBox.unload(),t.unload(),e||(this.editTool=null),t.editTarget=null)}getEditSize(e){return this.mergeConfig.editSize}onMove(e){}onScale(e){}onRotate(e){}onSkew(e){}move(e,t=0){}scaleWithDrag(e){}scaleOf(e,t,i=t,s){}flip(e){}rotateOf(e,t){}skewOf(e,t,i=0,s){}checkTransform(e){}getWorldOrigin(e){}getChangedTransform(e){}group(e){return this.multiple&&(this.emitGroupEvent(Kt.BEFORE_GROUP),this.target=q0.group(this.list,this.element,e),this.emitGroupEvent(Kt.GROUP,this.target)),this.target}ungroup(){const{list:e}=this;return e.length&&(e.forEach(t=>t.isBranch&&this.emitGroupEvent(Kt.BEFORE_UNGROUP,t)),this.target=q0.ungroup(e),e.forEach(t=>t.isBranch&&this.emitGroupEvent(Kt.UNGROUP,t))),this.list}openGroup(e){this.emitGroupEvent(Kt.BEFORE_OPEN,e),this.openedGroupList.add(e),e.hitChildren=!0,this.emitGroupEvent(Kt.OPEN,e)}closeGroup(e){this.emitGroupEvent(Kt.BEFORE_CLOSE,e),this.openedGroupList.remove(e),e.hitChildren=!1,this.emitGroupEvent(Kt.CLOSE,e)}checkOpenedGroups(){const e=this.openedGroupList;if(e.length){let{list:t}=e;this.editing?(t=[],e.forEach(i=>this.list.every(s=>!$.hasParent(s,i))&&t.push(i))):t=[...t],t.forEach(i=>this.closeGroup(i))}this.editing&&!this.selector.dragging&&this.checkDeepSelect()}checkDeepSelect(){let e,{list:t}=this;for(let i=0;i<t.length;i++)for(e=t[i].parent;e&&!e.hitChildren;)this.openGroup(e),e=e.parent}emitGroupEvent(e,t){const i=new Kt(e,{editTarget:t});this.emitEvent(i),t&&t.emitEvent(i)}getInnerEditor(e){return this.editToolList[e]=this.editToolList[e]||Je.get(e,this)}openInnerEditor(e,t,i){let s;if(V(t)?s=t:i||(i=t),e&&i&&(this.target=e),this.single){e||(e=this.element),s||(s=e.editInner);const{beforeEditInner:n}=this.mergeConfig;if(n){const r=n({target:e,name:s});if(V(r))s=r;else if(r===!1)return}Je.list[s]&&(this.unloadEditTool(!0),this.innerEditing=!0,this.innerEditor=this.getInnerEditor(s),this.innerEditor.editTarget=e,this.emitInnerEvent(ci.BEFORE_OPEN),this.innerEditor.load(),this.emitInnerEvent(ci.OPEN))}}closeInnerEditor(e){this.innerEditing&&(this.innerEditing=!1,this.emitInnerEvent(ci.BEFORE_CLOSE),this.innerEditor.unload(),this.emitInnerEvent(ci.CLOSE),e||this.updateEditTool(),this.innerEditor=this.innerEditor.editTarget=null)}emitInnerEvent(e){const{innerEditor:t}=this,{editTarget:i}=t,s=new ci(e,{editTarget:i,innerEditor:t});this.emitEvent(s),i.emitEvent(s)}
49lock(){this.list.forEach(e=>e.locked=!0),this.update()}unlock(){this.list.forEach(e=>e.locked=!1),this.update()}toTop(){this.list.length&&(q0.toTop(this.list),this.leafList.update())}toBottom(){this.list.length&&(q0.toBottom(this.list),this.leafList.update())}onAppRenderStart(e){(this.targetChanged=e.children.some(t=>t!==this.leafer&&t.renderer.changed))&&this.editBox.forceRender()}onRenderStart(){this.targetChanged&&this.update()}onChildScroll(){this.multiple&&this.updateEditBox()}listenTargetEvents(){if(!this.targetEventIds.length){const{app:e,leafer:t,targetLeafer:i,editMask:s}=this;this.targetEventIds=[t.on_(pt.START,this.onRenderStart,this),i&&i.on_(ze.SCROLL,this.onChildScroll,this),e.on_(pt.CHILD_START,this.onAppRenderStart,this),e.on_(ut.UPDATE_MODE,n=>{n.mode&&n.mode!=="normal"&&this.cancel()})],s.visible&&s.forceRender()}}removeTargetEvents(){const{targetEventIds:e,editMask:t}=this;e.length&&(this.off_(e),t.visible&&t.forceRender())}destroy(){this.destroyed||(this.target=this.hoverTarget=null,Object.values(this.editToolList).forEach(e=>e.destroy()),this.simulateTarget.destroy(),this.editToolList={},this.simulateTarget=this.editTool=this.innerEditor=null,super.destroy())}};f([(e,t)=>{fe(e,t,{get(){const{config:i,element:s,dragPoint:n,editBox:r,editTool:o,innerEditor:a,app:l}=this,h=Object.assign({},i);if(a?a.editConfig&&Object.assign(h,a.editConfig):o&&o.editConfig&&Object.assign(h,o.editConfig),s&&s.mask&&q0.mergeMaskConfig(h,this),s&&s.editConfig){let{editConfig:c}=s;(c.hover||c.hoverStyle||c.hoverPathType)&&(c=Object.assign({},c),delete c.hover,delete c.hoverStyle,delete c.hoverPathType),Object.assign(h,c)}return r.config&&Object.assign(h,r.config),n&&(n.editConfig&&Object.assign(h,n.editConfig),h.editSize==="font-size"&&(h.lockRatio=!0),n.pointType==="resize-rotate"&&(h.around||(h.around="center"),Nt(h.lockRatio)&&(h.lockRatio=!0))),M(h.dragLimitAnimate)&&(h.dragLimitAnimate=l&&l.config.pointer.dragLimitAnimate),this.mergedConfig=h}})}],d0.prototype,"mergeConfig",void 0),f([P1(function(e,t){const{target:i}=e;i?(e.leafList=i instanceof wt?i:new wt(i),e.multiple&&pc(e)):(e.simulateTarget.remove(),e.leafList.reset()),e.closeInnerEditor(!0),e.unloadEditTool();const s={editor:e,value:i,oldValue:t};e.emitEvent(new It(It.SELECT,s)),e.checkOpenedGroups(),e.editing?e.waitLeafer(()=>{e.updateEditTool(),e.listenTargetEvents()}):(e.updateEditTool(),e.removeTargetEvents()),e.emitEvent(new It(It.AFTER_SELECT,s))})],d0.prototype,"target",void 0),f([P1(function(e,t){e.emitEvent(new It(It.HOVER,{editor:e,value:e.hoverTarget,oldValue:t}))})],d0.prototype,"hoverTarget",void 0),d0=f([ue(dg,["editBox","editTool","emitEvent"])],d0);const{abs:Wa}=Math,{scale:qh}=A;class s2{static registerInnerEditor(){Je.register(this)}get tag(){return"InnerEditor"}get mode(){return"focus"}get userConfig(){return this.editBox.mergeConfig[this.tag]||{}}get editBox(){return this._editBox||this.editor.editBox}set editBox(t){this._editBox=t}constructor(t){this.configKeepKeys=["editBox"],this.eventIds=[],this.editor=t,this.create()}getEditBoxPoint(t,i){const s=i?t:{x:t.x,y:t.y},{scaleX:n,scaleY:r}=this.editTarget.worldTransform;return qh(s,Wa(n),Wa(r)),s}getEditTargetPoint(t,i){const s=i?t:{x:t.x,y:t.y},{scaleX:n,scaleY:r}=this.editTarget.worldTransform;return qh(s,Math.abs(1/n),Wa(1/r)),s}onCreate(){}create(){this.view=new ht,this.onCreate()}showView(){this.view.opacity=1}hideView(){this.view.opacity=0}onLoad(){}load(){const{editor:t}=this;t&&(t.app&&this.mode==="focus"&&(t.selector.hittable=t.app.tree.hitChildren=!1),this.onLoad())}onUpdate(){}update(){this.editor&&(this.updateEditBoxConfig(),this.editBox.update(),this.onUpdate())}onUnload(){}unload(){const{editor:t}=this;t&&(this.unloadEditBoxConfig(),t.app&&this.mode==="focus"&&(t.selector.hittable=t.app.tree.hitChildren=!0),this.onUnload())}updateEditBoxConfig(){const{mergeConfig:t}=this;t&&(this.editBox.config=t.editBox)}unloadEditBoxConfig(){this.editBox.config=void 0}onDestroy(){}destroy(){this.onDestroy(),this.editor&&(this.view&&this.view.destroy(),this.eventIds&&this.editor.off_(this.eventIds),this.editor=this.view=this.eventIds=null)}}f([Ku()],s2.prototype,"mergeConfig",void 0);
49let F1=class extends s2{static registerEditTool(e,t){Je.register(this,e),t&&fe(this.prototype,"tag",{get:()=>e})}get tag(){return"EditTool"}onMove(e){if(this.isMotionElement&&this.onMoveMotion(e)||this.isFlowElement&&this.onMoveFlow(e))return;const{moveX:t,moveY:i,editor:s}=e,{app:n,list:r}=s;n.lockLayout(),r.forEach(o=>{o.moveWorld(t,i)}),n.unlockLayout()}onScale(e){if(this.isFlowElement&&this.onScaleFlow(e))return;const{scaleX:t,scaleY:i,transform:s,worldOrigin:n,editor:r}=e,{app:o,list:a}=r;o.lockLayout(),a.forEach(l=>{const h=r.getEditSize(l)!=="scale";s?l.transformWorld(s,h,!1):l.scaleOfWorld(n,t,i,h,!1)}),o.unlockLayout()}onRotate(e){if(this.isFlowElement&&this.onRotateFlow(e))return;const{rotation:t,transform:i,worldOrigin:s,editor:n}=e,{app:r,list:o}=n;r.lockLayout(),o.forEach(a=>{const l=n.getEditSize(a)!=="scale";i?a.transformWorld(i,l,!1):a.rotateOfWorld(s,t)}),r.unlockLayout()}onSkew(e){if(this.isFlowElement&&this.onSkewFlow(e))return;const{skewX:t,skewY:i,transform:s,worldOrigin:n,editor:r}=e,{app:o,list:a}=r;o.lockLayout(),a.forEach(l=>{const h=r.getEditSize(l)!=="scale";s?l.transformWorld(s,h,!1):l.skewOfWorld(n,t,i,h)}),o.unlockLayout()}load(){this.editor&&(this.editBox.view.visible=!0,this.onLoad())}unload(){this.editor&&(this.editBox.view.visible=!1,this.unloadEditBoxConfig(),this.onUnload())}};F1=f([i2()],F1);const{left:Kh,right:ug}=g0,{move:ir,copy:sr,toNumberPoints:gg}=A;let Zh=class extends F1{constructor(){super(...arguments),this.scaleOfEvent=!0}get tag(){return"LineEditTool"}onScaleWithDrag(e){const{drag:t,direction:i,lockRatio:s,around:n}=e,r=e.target,o=i===Kh;if(r.pathInputed){const{path:a}=r.__,{from:l,to:h}=this.getFromToByPath(a);this.dragPoint(l,h,o,n,this.getInnerMove(r,t,s)),a[1]=l.x,a[2]=l.y,a[4]=h.x,a[5]=h.y,r.path=a}else if(r.points){const{points:a}=r,{from:l,to:h}=this.getFromToByPoints(a);this.dragPoint(l,h,o,n,this.getInnerMove(r,t,s)),a[0]=l.x,a[1]=l.y,a[2]=h.x,a[3]=h.y,r.points=a}else{const a={x:0,y:0},{toPoint:l}=r;r.rotation=0,this.dragPoint(a,l,o,n,this.getInnerMove(r,t,s)),r.getLocalPointByInner(a,null,null,!0),r.getLocalPointByInner(l,null,null,!0),r.x=a.x,r.y=a.y,r.getInnerPointByLocal(l,null,null,!0),r.toPoint=l}}getInnerMove(e,t,i){const s=t.getInnerMove(e);return i&&(Math.abs(s.x)>Math.abs(s.y)?s.y=0:s.x=0),s}getFromToByPath(e){return{from:{x:e[1],y:e[2]},to:{x:e[4],y:e[5]}}}getFromToByPoints(e){const t=gg(e);return{from:{x:t[0],y:t[1]},to:{x:t[2],y:t[3]}}}dragPoint(e,t,i,s,n){const{x:r,y:o}=n;i?(ir(e,r,o),s&&ir(t,-r,-o)):(s&&ir(e,-r,-o),ir(t,r,o))}onSkew(e){}onUpdate(){const{editBox:e}=this,{rotatePoints:t,resizeLines:i,resizePoints:s,rect:n}=e,r=e.target;let o,a;if(r.pathInputed?o=this.getFromToByPath(r.__.path):r.points&&(o=this.getFromToByPoints(r.__.points)),o){const{from:l,to:h}=o;r.innerToWorld(l,l,!1,e),r.innerToWorld(h,h,!1,e);const{x:c,y:d}=e.rectBounds;n.pen.clearPath().moveTo(l.x-c,l.y-d).lineTo(h.x-c,h.y-d),sr(s[7],l),sr(t[7],l),sr(s[3],h),sr(t[3],h)}for(let l=0;l<8;l++)l<4&&(i[l].visible=!1),a=l===Kh||l===ug,s[l].visible=a,t[l].visible=!o&&a}};Zh=f([i2()],Zh);const{M:pg,L:fg,C:_g,Q:yg,Z:xg,N:mg,D:wg,X:vg,G:$h,F:Jh,O:Cg,P:bg,U:kg}=Yt,n2={scale(e,t,i){if(!e)return;let s,n=0,r=e.length;for(;n<r;)switch(s=e[n],s){case pg:case fg:Fe(e,t,i,n,1),n+=3;break;case _g:Fe(e,t,i,n,3),n+=7;break;case yg:Fe(e,t,i,n,2),n+=5;break;case xg:n+=1;break;case mg:Fe(e,t,i,n,2),n+=5;break;case wg:Fe(e,t,i,n,2),n+=9;break;case vg:Fe(e,t,i,n,2),n+=6;break;case $h:Fe(e,t,i,n,2),n+=9;break;case Jh:Fe(e,t,i,n,2),n+=5;break;case Cg:e[n]=$h,e.splice(n+4,0,e[n+3],0),Fe(e,t,i,n,2),n+=9,r+=2;break;case bg:e[n]=Jh,e.splice(n+4,0,e[n+3]),Fe(e,t,i,n,2),n+=5,r+=1;break;case kg:Fe(e,t,i,n,2),n+=6}},scalePoints(e,t,i,s,n){for(let r=n?s+1:0,o=n?r+2*n:e.length;r<o;r+=2)e[r]*=t,e[r+1]*=i}},{scalePoints:Fe}=n2,za=K.get(),{topLeft:Bg,top:Sg,topRight:Eg,right:Tg,bottom:Ag,left:Lg}=g0;function nr(e,t,i){e.pathInputed?Yr(e,t,i):(t!==1&&(e.width*=t),i!==1&&(e.height*=i))}function Rg(e,t,i,s){let n=t;if(!M(s)){const h=e.__layout;let{width:c,height:d}=h.boxBounds;switch(c*=i-t,d*=t-i,s){case Sg:case Ag:n=i,h.affectScaleOrRotation?e.moveInner(-c/2,0):e.x-=c/2;break;case Lg:case Tg:h.affectScaleOrRotation?e.moveInner(0,-d/2):e.y-=d/2;break;case Bg:case Eg:h.affectScaleOrRotation?e.moveInner(0,-d):e.y-=d}}e.fontSize*=n;const r=e.__,{padding:o,lineHeight:a,letterSpacing:l}=r;o&&(e.padding=et(o)?o.map(h=>h*n):o*n),r.__autoWidth||(e.width*=n),r.__autoHeight||(e.height*=n),O(a)?a.type==="px"&&(r.lineHeight={type:"px",value:a.value*n}):a&&(r.lineHeight=a*n),O(l)?l.type==="px"&&(r.letterSpacing={type:"px",value:l.value*n}):l&&(r.letterSpacing=l*n)}function Yr(e,t,i){let{path:s}=e.__;ho(e.leafer)||(s=[...s]),n2.scale(s,t,i),e.path=s}function Qh(e,t,i){let{points:s}=e;const n=O(s[0]);
49ho(e.leafer)||(s=n?q.clone(s):[...s]),n?s.forEach(r=>{r.x*=t,r.y*=i}):n2.scalePoints(s,t,i),e.points=s}function t3(e,t,i){const{children:s}=e;for(let n=0;n<s.length;n++)za.a=t,za.d=i,s[n].transform(za,!0)}const rr=os.prototype,P0={},or={},{copy:Pg,scale:e3,toOuterPoint:Fg}=K;rr.scaleResize=function(e,t=e,i,s){const n=this;if(i||n.editConfig&&n.editConfig.editSize==="scale")n.scaleX*=e,n.scaleY*=t;else{if(e<0&&(n.scaleX*=-1,e=-e),t<0&&(n.scaleY*=-1,t=-t),s==="stroke"){Pg(or,this.__localMatrix),e<0&&e3(or,-1,1),t<0&&e3(or,1,-1);const{boxBounds:r,strokeBounds:o}=this.__layout,{x:a,y:l,width:h,height:c}=o;P0.x=(a-r.x)*(e-1),P0.y=(l-r.y)*(t-1),Fg(or,P0,P0,!0),this.x+=P0.x,this.y+=P0.y,e=(h*e-(h-r.width))/r.width,t=(c*t-(c-r.height))/r.height}this.__scaleResize(e,t)}},rr.__scaleResize=function(e,t){nr(this,e,t)},rr.resizeWidth=function(e,t="inner"){const i=e/this.getBounds("box",t).width||1;this.scaleOf("top-left",i,this.__.lockRatio?i:1,!0)},rr.resizeHeight=function(e,t="inner"){const i=e/this.getBounds("box",t).height||1;this.scaleOf("top-left",this.__.lockRatio?i:1,i,!0)},j.prototype.__scaleResize=function(e,t){const{app:i,editConfig:s}=this,n=i&&i.editor,r=n&&n.dragPoint;if(this.__.resizeFontSize||s&&s.editSize==="font-size"||r&&n.mergedConfig.editSize==="font-size")Rg(this,e,t,r&&r.direction);else{const{__autoWidth:o,__autoHeight:a,textAlign:l,verticalAlign:h}=this.__,{boxBounds:c}=this.__layout;o&&l!=="left"&&e!==1&&(this.x+=c.x),a&&h!=="top"&&t!==1&&(this.y+=c.y),nr(this,e,t)}},Vt.prototype.__scaleResize=function(e,t){Yr(this,e,t)},ce.prototype.__scaleResize=function(e,t){this.pathInputed?Yr(this,e,t):this.points?Qh(this,e,t):this.width*=e},Ee.prototype.__scaleResize=function(e,t){this.pathInputed?Yr(this,e,t):this.points?Qh(this,e,t):nr(this,e,t)},ht.prototype.__scaleResize=function(e,t){t3(this,e,t)},k.prototype.__scaleResize=function(e,t){const{resizeChildren:i,__autoSize:s}=this.__;s&&i||nr(this,e,t),i&&t3(this,e,t)},nt.add("resize"),nt.add("editor","resize"),bt.editor=function(e,t){const i=new d0(e);return t&&t.sky.add(t.editor=i),i},k.addAttr("textBox",!1,mt),C.addAttr("editConfig",void 0,mt),C.addAttr("editOuter",e=>{e.updateLayout();const{EditTool:t,LineEditTool:i,PointsEditTool:s}=Je,n=e.pathInputed||e.isPointsMode?s:e.tag+"EditTool",r=Je.list[n];return!e.__.__isLinePath||n==s&&r?r?n:t:i},mt),C.addAttr("editInner","PathEditor",mt),ht.addAttr("editInner","",mt),j.addAttr("editInner","TextEditor",mt),C.setEditConfig=function(e){this.changeAttr("editConfig",e)},C.setEditOuter=function(e){this.changeAttr("editOuter",e)},C.setEditInner=function(e){this.changeAttr("editInner",e)};const Mg={none:"none",title:"capitalize",upper:"uppercase",lower:"lowercase","small-caps":"small-caps"},Dg={top:"flex-start",middle:"center",bottom:"flex-end"},Og={none:"none",under:"underline",delete:"line-through","under-delete":"underline line-through"};function Ig(e,t,i){const{style:s}=e,{fill:n,padding:r,textWrap:o,textOverflow:a,textDecoration:l}=t;let h;s.fontFamily=t.fontFamily,s.fontSize=t.fontSize*i+"px",(function(c,d){let g="black";if(et(d)&&(d=d[0]),O(d))switch(d.type){case"solid":g=Ct.string(d.color);break;case"image":case"film":case"video":break;case"linear":case"radial":case"angular":const u=d.stops[0];g=Ct.string(V(u)?u:u.color);break;default:M(d.r)||(g=Ct.string(d))}else g=d;c.color=g})(s,n),s.fontStyle=t.italic?"italic":"normal",s.fontWeight=t.fontWeight,O(l)?(h=l.type,l.color&&(s.textDecorationColor=Ct.string(l.color))):h=l,s.textDecoration=Og[h],s.textTransform=Mg[t.textCase],s.textAlign=t.textAlign==="both"?"justify":t.textAlign,s.display="flex",s.flexDirection="column",s.justifyContent=Dg[t.verticalAlign],s.lineHeight=(t.__.__lineHeight||0)*i+"px",s.letterSpacing=(t.__.__letterSpacing||0)*i+"px",s.whiteSpace=o==="none"||t.__.__autoWidth?"nowrap":"normal",s.wordBreak=o==="break"?"break-all":"normal",s.textIndent=(t.paraIndent||0)*i+"px",s.padding=et(r)?r.map(c=>c*i+"px").join(" "):(r||0)*i+"px",s.textOverflow=a==="show"?"":a==="hide"?"clip":a}let i3=class extends s2{constructor(){super(...arguments),this.config={selectAll:!0},this.eventIds=[]}get tag(){return"TextEditor"}onLoad(){const{editor:e}=this,{config:t}=e.app,i=this.editTarget;i.textEditing=!0,this.isHTMLText=!(i instanceof j),this._keyEvent=t.keyEvent,t.keyEvent=!1;const s=this.editDom=document.createElement("div");s.classList.add("leafer-text-editor");const{style:n}=s;s.contentEditable="true",n.position="fixed",n.transformOrigin="left top",n.boxSizing="border-box",this.isHTMLText?s.innerHTML=String(i.text):s.innerText=String(i.text);const{view:r}=e.app;(this.inBody=r instanceof HTMLCanvasElement)?document.body.appendChild(s):r.appendChild(s),this.eventIds=[e.app.on_(W.DOWN,l=>{let h,{target:c}=l.origin;for(;c;)c===s&&(h=!0),c=c.parentElement;h||e.closeInnerEditor()})],this.onFocus=this.onFocus.bind(this),this.onInput=this.onInput.bind(this),this.onPaste=this.onPaste.bind(this),this.onUpdate=this.onUpdate.bind(this),this.onKeydown=this.onKeydown.bind(this),s.addEventListener("focus",this.onFocus),s.addEventListener("input",this.onInput),s.addEventListener("paste",this.onPaste),window.addEventListener("keydown",this.onKeydown),window.addEventListener("scroll",this.onUpdate);const o=window.getSelection(),a=document.createRange();if(this.config.selectAll)a.selectNodeContents(s);else{const l=s.childNodes[0];l&&(a.setStartAfter(l),a.setEndAfter(l)),a.collapse(!0)}o.removeAllRanges(),o.addRange(a)}onInput(){const{editDom:e}=this;this.editTarget.text=this.isHTMLText?e.innerHTML:e.innerText}onFocus(){this.editDom.style.outline="none"}onKeydown(e){if(e.code==="Escape"&&this.editor.closeInnerEditor(),e.key==="Enter"){e.preventDefault();const t=document.createElement("br"),i=document.createTextNode("â"),s=window.getSelection().getRangeAt(0);s.deleteContents(),s.insertNode(i),s.insertNode(t),s.setStartAfter(t),s.setEndAfter(t),this.onInput()}}onPaste(e){if(this.isHTMLText)return;e.preventDefault();const t=e.clipboardData;if(!t)return;let i=t.getData("text/plain").replace(/\r\n?/g,` 50`);const s=window.getSelection();if(!s||!s.rangeCount)return;const n=s.getRangeAt(0);n.deleteContents();const r=i.split(` 51`),o=document.createDocumentFragment();r.forEach((a,l)=>{l>0&&o.appendChild(document.createElement("br")),o.appendChild(document.createTextNode(a))}),n.insertNode(o),n.collapse(!1),s.removeAllRanges(),s.addRange(n),this.onInput()}onUpdate(){const{editTarget:e}=this;let t=1;if(!this.isHTMLText){const{scaleX:y,scaleY:x}=e.worldTransform;t=Math.max(Math.abs(y),Math.abs(x)),e.fontSize*t<12&&(t*=12/e.fontSize)}this.textScale=t;let{width:i,height:s}=e,n=0,r=0;i*=t,s*=t;const o=e.__;if(o.__autoWidth)switch(i+=20,o.textAlign){case"center":n=o.autoSizeAlign?-i/2:-10;break;case"right":n=o.autoSizeAlign?-i:-20}if(o.__autoHeight)switch(s+=20,o.verticalAlign){case"middle":r=o.autoSizeAlign?-s/2:-10;break;case"bottom":r=o.autoSizeAlign?-s:-20}const{x:a,y:l}=this.inBody?e.app.clientBounds:e.app.tree.clientBounds,{a:h,b:c,c:d,d:g,e:u,f:p}=new $t(e.worldTransform).scale(1/t).translateInner(n,r),{style:_}=this.editDom;_.transform=`matrix(${h},${c},${d},${g},${u},${p})`,_.left=a+"px",_.top=l+"px",_.width=i+"px",_.height=s+"px",this.isHTMLText||Ig(this.editDom,e,t)}onUnload(){const{editTarget:e,editor:t,editDom:i}
51=this;e&&(this.onInput(),e.text===` 52`&&(e.text=""),e.textEditing=void 0,t.app&&(t.app.config.keyEvent=this._keyEvent),t.off_(this.eventIds),i.removeEventListener("focus",this.onFocus),i.removeEventListener("input",this.onInput),i.removeEventListener("paste",this.onPaste),window.removeEventListener("keydown",this.onKeydown),window.removeEventListener("scroll",this.onUpdate),i.remove(),this.editDom=this.eventIds=void 0)}};function fc(e){const{scroll:t,disabled:i}=e.app.config.move;return!t||i?"":t===!0?"free":t}function ar(e,t,i){Wg(e.parentApp?e.parentApp:e,t),e.isApp||i||e.__eventIds.push(e.on_(ft.BEFORE_MOVE,s=>{const n=fc(e).includes("limit"),r=e.app.config.move.scrollLimit==="stop",o=e.getValidMove(s.moveX,s.moveY,n&&r);if(n&&!r){const a=e.getValidMove(0,0);if(a.x||a.y){const c=s.moveType==="drag"?.3:.05;Math.abs(a.x)>100?o.x=0:o.x*=c,Math.abs(a.y)>200?o.y=0:o.y*=c}}e.zoomLayer.move(o)}),e.on_(ft.DRAG_ANIMATE,()=>{const s=e.getValidMove(0,0);(s.x||s.y)&&e.interaction.stopDragAnimate()}),e.on_(ft.END,s=>{$.animateMove(e.zoomLayer,e.getValidMove(s.moveX,s.moveY))}),e.on_(Xt.BEFORE_ZOOM,s=>{const{zoomLayer:n,layouter:r}=e,o=e.getValidScale(s.scale);o!==1&&(r.stop(),$.updateMatrix(e),n.scaleOfWorld(s,o),r.start())}))}function Wg(e,t){const i={wheel:{preventDefault:!0},touch:{preventDefault:!0},pointer:{preventDefaultMenu:!0}};t&&q.assign(i,t),q.assign(e.config,i,e.userConfig)}i3=f([lg()],i3),nt.add("text-editor","editor");const zg=ot.get("LeaferTypeCreator"),_c={list:{},register(e,t){Ha[e]&&zg.repeat(e),Ha[e]=t},run(e,t){const i=Ha[e];i&&i(t)}},{list:Ha,register:lr}=_c;lr("viewport",ar),lr("custom",function(e){ar(e,null,!0)}),lr("design",function(e){ar(e,{zoom:{min:.01,max:256},move:{holdSpaceKey:!0,holdMiddleKey:!0}})}),lr("document",function(e){ar(e,{zoom:{min:1},move:{scroll:"limit"}})});const tn={state:{type:"none",typeCount:0,startTime:0,totalData:null,center:{}},getData(e){const t=e[0],i=e[1],s=A.getCenter(t.from,i.from),n=A.getCenter(t.to,i.to),r={x:n.x-s.x,y:n.y-s.y},o=A.getDistance(t.from,i.from);return{move:r,scale:A.getDistance(t.to,i.to)/o,rotation:A.getRotation(t.from,i.from,t.to,i.to),center:n}},getType(e,t){const i=Math.hypot(e.move.x,e.move.y)/(t.move||5),s=Math.abs(e.scale-1)/(t.scale||.03),n=Math.abs(e.rotation)/(t.rotation||2);return i<1&&s<1&&n<1?"none":i>=s&&i>=n?"move":s>=n?"zoom":"rotate"},detect(e,t){const{state:i}=js,s=js.getType(e,t);if(i.totalData||(i.startTime=Date.now(),i.center=e.center),js.add(e,i.totalData),i.totalData=e,s===i.type){if(i.typeCount++,i.typeCount>=(t.count||3)&&s!=="none")return s}else i.type=s,i.typeCount=1;return Date.now()-i.startTime>=(t.time||160)?js.getType(i.totalData,t):"none"},add(e,t){t&&(A.move(e.move,t.move),e.scale*=t.scale,e.rotation+=t.rotation,e.center=t.center)},reset(){const{state:e}=js;e.type="none",e.typeCount=0,e.startTime=0,e.totalData=null}},js=tn,{abs:Na,max:s3}=Math,{sign:n3,within:r3}=ct,o3={getMove(e,t){let{moveSpeed:i}=t,{deltaX:s,deltaY:n}=e;e.shiftKey&&!s&&(s=n,n=0);const r=Na(s),o=Na(n);return r>50&&(s=s3(50,r/3)*n3(s)),o>50&&(n=s3(50,o/3)*n3(n)),{x:-s*i*2,y:-n*i*2}},getScale(e,t){let i,s=1,{zoomMode:n,zoomSpeed:r}=t;const o=e.deltaY||e.deltaX;if(n?(i=n==="mouse"||!e.deltaX&&(L.intWheelDeltaY?Math.abs(o)>17:Math.ceil(o)!==o),(e.shiftKey||e.metaKey||e.ctrlKey)&&(i=!0)):i=!e.shiftKey&&(e.metaKey||e.ctrlKey),i){r=r3(r,0,1);const a=e.deltaY?t.delta.y:t.delta.x,l=r3(1-Na(o)/(4*a)*r,.5,2);s=o>0?l:1/l}return s}};let hr,cr,dr,ur;class Hg{get transforming(){return this.moving||this.zooming||this.rotating}get moving(){return!!this.moveData}get zooming(){return!!this.zoomData}get rotating(){return!!this.rotateData}constructor(t){this.interaction=t}move(t){const{interaction:i}=this;t.moveType||(t.moveType="move"),this.moveData||(this.setPath(t),hr=0,cr=0,this.moveData=Object.assign(Object.assign({},t),{moveX:0,moveY:0,totalX:hr,totalY:cr}),i.emit(ft.START,this.moveData)),t.path=this.moveData.path,t.totalX=hr+=t.moveX,t.totalY=cr+=t.moveY,i.emit(ft.BEFORE_MOVE,t),i.emit(ft.MOVE,t),this.transformEndWait(
52)}zoom(t){const{interaction:i}=this;this.zoomData||(this.setPath(t),dr=1,this.zoomData=Object.assign(Object.assign({},t),{scale:1,totalScale:dr}),i.emit(Xt.START,this.zoomData)),t.path=this.zoomData.path,t.totalScale=dr*=t.scale,i.emit(Xt.BEFORE_ZOOM,t),i.emit(Xt.ZOOM,t),this.transformEndWait()}rotate(t){const{interaction:i}=this;this.rotateData||(this.setPath(t),ur=0,this.rotateData=Object.assign(Object.assign({},t),{rotation:0,totalRotation:ur}),i.emit(de.START,this.rotateData)),t.path=this.rotateData.path,t.totalRotation=ur+=t.rotation,i.emit(de.BEFORE_ROTATE,t),i.emit(de.ROTATE,t),this.transformEndWait()}setPath(t){const{interaction:i}=this,{path:s}=i.selector.getByPoint(t,i.hitRadius);t.path=s,i.cancelHover()}transformEndWait(){clearTimeout(this.transformTimer),this.transformTimer=setTimeout(()=>{this.transformEnd()},this.interaction.p.transformTime)}transformEnd(){const{interaction:t,moveData:i,zoomData:s,rotateData:n}=this;i&&t.emit(ft.END,Object.assign(Object.assign({},i),{totalX:hr,totalY:cr})),s&&t.emit(Xt.END,Object.assign(Object.assign({},s),{totalScale:dr})),n&&t.emit(de.END,Object.assign(Object.assign({},n),{totalRotation:ur})),this.reset()}reset(){this.zoomData=this.moveData=this.rotateData=null}destroy(){this.reset()}}const Xa=te.prototype,Ya=new rt,Be=new Q0;function a3(e,t){return Object.assign(Object.assign({},t),{moveX:e.x,moveY:e.y})}function l3(e,t){return Object.assign(Object.assign({},t),{scale:e})}Xa.initType=function(e){_c.run(e,this)},Xa.getValidMove=function(e,t,i=!0){const{disabled:s,scrollSpread:n}=this.app.config.move;Be.set(e,t);const r=fc(this);return r&&(r.includes("x")?Be.y=0:r.includes("y")?Be.x=0:Math.abs(Be.x)>Math.abs(Be.y)?Be.y=0:Be.x=0,i&&r.includes("limit")&&(Ya.set(this.__world).addPoint(this.zoomLayer),n&&Ya.spread(n),as.getValidMove(Ya,this.canvas.bounds,"auto",Be,!0),r.includes("x")?Be.y=0:r.includes("y")&&(Be.x=0))),{x:s?0:Be.x,y:s?0:Be.y}},Xa.getValidScale=function(e){const{scaleX:t}=this.zoomLayer.__,{min:i,max:s,disabled:n}=this.app.config.zoom,r=Math.abs(t*e);return i&&r<i?e=i/t:s&&r>s&&(e=s/t),n?1:e};const Ki=ac.prototype;Ki.createTransformer=function(){this.transformer=new Hg(this)},Ki.move=function(e){this.transformer.move(e)},Ki.zoom=function(e){this.transformer.zoom(e)},Ki.rotate=function(e){this.transformer.rotate(e)},Ki.transformEnd=function(){this.transformer.transformEnd()},Ki.wheel=function(e){const{wheel:t,pointer:i}=this.config,{posDeltaSpeed:s,negDeltaSpeed:n}=t;if(t.disabled)return;e.deltaX>0?s&&(e.deltaX*=s):n&&(e.deltaX*=n),e.deltaY>0?s&&(e.deltaY*=s):n&&(e.deltaY*=n);const r=t.getScale?t.getScale(e,t):o3.getScale(e,t);if(r!==1)this.zoom(l3(r,e));else{const o=t.getMove?t.getMove(e,t):o3.getMove(e,t);i.snap&&A.round(o),this.move(a3(o,e))}},Ki.multiTouch=function(e,t){const{disabled:i,singleGesture:s}=this.config.multiTouch;if(i)return;this.pointerWaitCancel();let n=tn.getData(t),{moving:r,zooming:o,rotating:a}=this.transformer;if(s){if(!this.transformer.transforming){switch(tn.detect(n,O(s)?s:{})){case"move":r=!0;break;case"zoom":o=!0;break;case"rotate":a=!0;break;default:return}tn.reset()}r||(n.center=tn.state.center)}else r=o=a=!0;var l,h;Object.assign(e,n.center),e.multiTouch=!0,a&&this.rotate((l=n.rotation,h=e,Object.assign(Object.assign({},h),{rotation:l}))),o&&this.zoom(l3(n.scale,e)),r&&this.move(a3(n.move,e))};const F0=rc.prototype,{abs:gr,min:Ng,max:h3,hypot:Xg}=Math;function c3(e,t){let i=1;const s=t==="out",n=Math.abs(e);if(n>1){for(;s?i<n:i<=n;)i*=2;s&&(i/=2)}else{for(;s?i>=n:i>n;)i/=2;s||(i*=2)}return i/e}F0.checkDragEndAnimate=function(e){const{interaction:t}=this,i=this.canAnimate&&this.moving&&t.m.dragAnimate;if(i){const s=it(i)?i:.95,n=.15,r=150;let o,a,l,h=0,c=0,d=0,g=0,u=3;const{dragDataList:p}=this,_=p.length;for(let m=_-1;m>=h3(_-3,0)&&(l=p[m],!(l.time&&Date.now()-l.time>100));m--)o=u--,h+=l.moveX*o,c+=l.moveY*o,g+=o,a=Xg(l.moveX,l.moveY),a>d&&(d=a);if(g&&(h/=g,c/=g),d>8){const m=1.15+Ng((d-8)/17,1)*.4500000000000002;h*=m,c*=m}const y=h3(gr(h),gr(c));y>r&&(a=r/y,h*=a,c*=a);const x=()=>{if(h*=s,c*=s,e=Object.assign({},e),gr(h)<n&&gr(c)<n)return this.dragEndReal(e);A.move(e,h,c),this.drag(e),this.animate(x),t.emit(ft.DRAG_ANIMATE,e)};this.animate(x)}return i},F0.animate=function(e,t){const i=e||this.animateWait;i&&this.interaction.target.nextRender(i,null,t),this.animateWait=e},F0.stopAnimate=function(){this.animate(null,"off"),this.interaction.target.nextRender(()=>{this.dragData&&this.dragEndReal(this.dragData)})},F0.checkDragOut=function(e){const{interaction:t}=this;
52this.autoMoveCancel(),this.dragging&&!t.shrinkCanvasBounds.hitPoint(e)&&this.autoMoveOnDragOut(e)},F0.autoMoveOnDragOut=function(e){const{interaction:t,downData:i,canDragOut:s}=this,{autoDistance:n,dragOut:r}=t.m;if(!r||!s||!n)return;const o=t.shrinkCanvasBounds,{x:a,y:l}=o,h=P.maxX(o),c=P.maxY(o),d=e.x<a?n:h<e.x?-n:0,g=e.y<l?n:c<e.y?-n:0;let u=0,p=0;this.autoMoveTimer=setInterval(()=>{u+=d,p+=g,A.move(i,d,g),A.move(this.dragData,d,g),t.move(Object.assign(Object.assign({},e),{moveX:d,moveY:g,totalX:u,totalY:p,moveType:"drag"})),t.pointerMoveReal(e)},10)},F0.autoMoveCancel=function(){this.autoMoveTimer&&(clearInterval(this.autoMoveTimer),this.autoMoveTimer=0)},nt.add("viewport"),nt.add("view"),te.prototype.zoom=function(e,t,i,s){let n;Yc(t)?(n=t.padding,i=t.scroll,s=t.transition):n=t;const{zoomLayer:r}=this,o=this.canvas.bounds.clone().shrink(Nt(n)?30:n),a=new rt,l={x:o.x+o.width/2,y:o.y+o.height/2};let h;r.killAnimate();const{x:c,y:d,scaleX:g,scaleY:u}=r.__,{boxBounds:p}=r;if(V(e))switch(e){case"in":h=c3(g,"in");break;case"out":h=c3(g,"out");break;case"fit":e=p;break;case"fit-width":(e=new rt(p)).height=0;break;case"fit-height":(e=new rt(p)).width=0}else it(e)&&(h=e/g);if(h)h=this.getValidScale(h),r.scaleOfWorld(l,h,h,!1,s);else if(O(e)){const _={x:c,y:d,scaleX:g,scaleY:u},y=et(e);if(y||e.tag){const b=y?e:[e];a.setListWithFn(b,ds.worldBounds)}else{const b=(function(B,S){let R,{x:X,y:z,width:T,height:H}=B;return H||(H=T*(S.height/S.width),R=!0),T||(T=H*(S.width/S.height),R=!0),R?{x:X,y:z,width:T,height:H}:B})(e,o);a.set(r.getWorldBounds(b))}const{width:x,height:m}=a;let w=o.x-a.x,v=o.y-a.y;return i?(w+=Math.max((o.width-x)/2,0),v+=Math.max((o.height-m)/2,0)):(h=this.getValidScale(Math.min(o.width/x,o.height/m)),w+=(o.width-x*h)/2,v+=(o.height-m*h)/2,A.scaleOf(_,a,h),a.scaleOf(a,h),_.scaleX*=h,_.scaleY*=h),i==="x"?v=0:i==="y"&&(w=0),A.move(_,w,v),a.move(w,v),r.set(_,s),a}return r.worldBoxBounds};class jf extends ht{get isOutside(){return!0}constructor(t,i){super(),this.config={theme:"light",padding:0,minSize:10},t.isApp&&(t.sky.add(this),t=t.tree),this.target=t,i&&q.assign(this.config,i),this.changeTheme(this.config.theme),this.waitLeafer(this.__listenEvents,this)}changeTheme(t){let i;V(t)?(i={fill:"black",stroke:"rgba(255,255,255,0.8)"},t==="dark"&&(i.fill="white",i.stroke="rgba(0,0,0,0.2)")):i=t,this.scrollXBar||this.addMany(this.scrollXBar=new k,this.scrollYBar=new k),i=Object.assign({strokeAlign:"center",opacity:.5,width:6,cornerRadius:3,hoverStyle:{opacity:.6},pressStyle:{opacity:.7}},i),i.height||(i.height=i.width),this.scrollXBar.set(Object.assign(Object.assign({},i),{visible:!1})),this.scrollYBar.set(Object.assign(Object.assign({},i),{visible:!1})),this.leafer&&this.update()}update(t){if(this.dragScrolling)return;const{minSize:i,padding:s}=this.config,{zoomLayer:n,canvas:r}=this.target.leafer,{worldRenderBounds:o}=n;if(t&&this.scrollBounds&&this.scrollBounds.isSame(o))return;this.scrollBounds=new rt(o);const a=r.bounds.clone().shrink(s),l=a.clone().add(o),h=this.ratioX=a.width/l.width,c=this.ratioY=a.height/l.height,d=(a.x-l.x)/l.width,g=(a.y-l.y)/l.height,u=h<1,p=c<1,{scrollXBar:_,scrollYBar:y}=this,{x,y:m,width:w,height:v}=a.shrink([2,p?y.width+6:2,u?_.height+6:2,2]);_.set({x:x+w*d,y:m+v+2,width:Math.max(w*h,i),visible:u}),y.set({x:x+w+2,y:m+v*g,height:Math.max(v*c,i),visible:p})}onDrag(t){this.dragScrolling=!0,this.__dragOut=this.app.config.move.dragOut,this.app.config.move.dragOut=!1;const i=t.current===this.scrollXBar,s=this.target.leafer.getValidMove(i?-t.moveX/this.ratioX:0,i?0:-t.moveY/this.ratioY);this.target.moveWorld(s.x,s.y),t.current.moveWorld(s.x&&-s.x*this.ratioX,s.y&&-s.y*this.ratioY)}onDragEnd(){this.dragScrolling=!1,this.app.config.move.dragOut=this.__dragOut}__listenEvents(){const{scrollXBar:t,scrollYBar:i}=this;this.__eventIds=[t.on_(G.DRAG,this.onDrag,this),i.on_(G.DRAG,this.onDrag,this),t.on_(G.END,this.onDragEnd,this),i.on_(G.END,this.onDragEnd,this),this.target.on_(pt.BEFORE,()=>this.update(!0)),this.target.leafer.on_(Qe.RESIZE,()=>this.update())]}__removeListenEvents(){this.off_(this.__eventIds)}destroy(){this.destroyed||(this.__removeListenEvents(),this.target=this.config=null,super.destroy())}}nt.add("scroll");class Yg extends nc{setText(t){this._text=t,this.__htmlChanged=!0}}const ja={lt:"<",gt:">",amp:"&",quot:'"',apos:"'",nbsp:" ",ensp:"â",emsp:"â",thinsp:"â",ndash:"â",mdash:"â",hellip:"â¦",middot:"·",bull:"â¢",laquo:"«",raquo:"»",lsquo:"â",rsquo:"â",ldquo:"â",rdquo:"â",cent:"¢",pound:"£",yen:"Â¥",euro:"â¬",times:"Ã",divide:"÷",plusmn:"±",minus:"â",frac12:"½",frac14:"¼",frac34:"¾",sup2:"²",sup3:"³",deg:"°",reg:"®",copy:"©",trade:"â¢",section:"§",para:"¶",dagger:"â ",Dagger:"â¡",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",alpha:"α",beta:"β",gamma:"γ",delta:"δ",pi:"Ï",sigma:"Ï",omega:"Ï",Omega:"Ω",micro:"µ",infinity:"â",not:"¬",equiv:"â¡",le:"â¤",ge:"â¥"};let o0=class extends Ti{get __tag(){return"HTMLText"}constructor(e){super(e)}__updateBoxBounds(){const e=this.__;if(e.__htmlChanged){const t=document.createElement("div"),{style:i}=t;i.all="initial",i.position="absolute",i.visibility="hidden",t.innerHTML=this.text,document.body.appendChild(t);const{width:s,height:n}=t.getBoundingClientRect(),r=s+10,o=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${n}"> 53 <foreignObject width="${r}" height="${n}"> 54 <style> 55 * { 56 margin: 0; 57 padding: 0; 58 box-sizing: border-box; 59 } 60 </style> 61 <body xmlns="http://www.w3.org/1999/xhtml"> 62 ${this.decodeText(this.text)} 63 </body> 64 </foreignObject> 65 </svg>`;e.__setImageFill("data:image/svg+xml,"+encodeURIComponent(o)),e.__naturalWi
65dth=r/e.pixelRatio,e.__naturalHeight=n/e.pixelRatio,e.__htmlChanged=!1,t.remove()}super.__updateBoxBounds()}__draw(e,t,i){this.textEditing&&!t.exporting||super.__draw(e,t,i)}decodeText(e){if(!e.includes("&"))return e;let t,i,s="",n=0;for(;n<e.length;){if(e[n]==="&"){const r=e.indexOf(";",n+1);if(r>n+1&&(t=e.slice(n+1,r),i=ja[t],i!==void 0)){s+=i,n=r+1;continue}}s+=e[n++]}return s}static addUnicodeEntity(e,t){V(e)?ja[e]=t:Object.assign(ja,e)}};f([Et(Yg)],o0.prototype,"__",void 0),f([tt("")],o0.prototype,"text",void 0),f([mt("TextEditor")],o0.prototype,"editInner",void 0),f([We(!1)],o0.prototype,"textEditing",void 0),o0=f([Tt()],o0),nt.add("html");class jg extends Q1{}function M1(e){return yt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__,n=s.startArrow!=="none"||s.endArrow!=="none";s.__useArrow!==n&&_e(this),s.__useArrow=n,fn(this)}}}))}let pr=class extends ce{get __tag(){return"Arrow"}constructor(e){super(e),this.__.__useArrow=!0}static registerArrow(e,t){Zr.register(e,t)}};f([Et(jg)],pr.prototype,"__",void 0),f([M1("angle")],pr.prototype,"endArrow",void 0),pr=f([Tt()],pr);const{M:Ug,L:Vg,C:Gg,Q:qg,O:Kg}=Yt,{rotate:Zg,copyFrom:$g,scale:Jg}=A,Us={},yc={layout(e,t,i,s,n,r,o){let a,l,h=0,c=e.length;for(;h<c;)switch(a=e[h],a){case Ug:case Vg:Ua(e,h+1,t,i,s,n,r,o),h+=3;break;case Gg:for(l=1;l<6;l+=2)Ua(e,h+l,t,i,s,n,r,o);h+=7;break;case qg:for(l=1;l<4;l+=2)Ua(e,h+l,t,i,s,n,r,o);h+=5;break;case Kg:e[h+1]+=t,e[h+2]+=i,s&&(e[h+3]*=s),r&&(e[h+4]+=r,e[h+5]+=r),h+=7}},rotate(e,t,i){yc.layout(e,0,0,1,1,t,i)}};function Ua(e,t,i,s,n,r,o,a){$g(Us,e[t],e[t+1]),o&&Zg(Us,o,a),n&&Jg(Us,n,r),e[t]=i+Us.x,e[t+1]=s+Us.y}const{layout:Va,rotate:nn}=yc,{getAngle:Qg}=A,yn={x:0},po={x:-.5},tp={connect:yn,offset:{x:-.71,bevelJoin:.36,roundJoin:.22},path:[1,-3,-3,2,0,0,2,-3,3]},ep={connect:po,offset:{x:-1.207,bevelJoin:.854,roundJoin:.707},path:[1,-3,-3,2,0,0,2,-1,0]},xc=[1,-3,0,2,-3,-2,2,0,0,2,-3,2,2,-3,0],r2={connect:yn,offset:{x:-.9,bevelJoin:.624,roundJoin:.4},path:[...xc]},to=q.clone(r2);to.path=[...xc,1,-2.05,1.1,2,-2.05,-1.1],to.dashPath=[1,-2,0,2,-.5,0];const mc={connect:yn,offset:po,path:[...r2.path]},wc={connect:yn,offset:po,path:[...to.path],dashPath:[1,-2.5,0,2,-1,0]};nn(mc.path,180,{x:-1.5,y:0}),nn(wc.path,180,{x:-1.5,y:0});const vc=[1,-3,0,2,-3.5,-1.8,2,0,0,2,-3.5,1.8,2,-3,0],Cc={connect:yn,offset:{x:-1.1,bevelJoin:.872,roundJoin:.6},path:[...vc]},D1=q.clone(Cc);D1.path=[...vc,1,-2.25,.95,2,-2.25,-.95],D1.dashPath=[1,-3,0,2,-.5,0];const o2={connect:{x:-1.8},path:[1,1.8,-.1,2,1.8,0,26,0,0,1.8,0,359,0]},bc={connect:{x:.5},path:[...o2.path]},O1=q.clone(bc);O1.path=[...o2.path,1,0,0,26,0,0,1,0,360,0],O1.dashPath=[1,-.5,0,2,.5,0];const fo={connect:{x:-1.4},path:[1,-1.4,0,2,-1.4,-1.4,2,1.4,-1.4,2,1.4,1.4,2,-1.4,1.4,2,-1.4,0]},kc={path:[...fo.path]},Bc={path:[...fo.path,2,-1.4,-.49,2,1,-.49,1,-1.4,.49,2,1,.49]},a2=q.clone(fo);a2.connect.x=-1.9;const Sc=q.clone(kc),Ec=q.clone(Bc);nn(a2.path,45),nn(Sc.path,45),nn(Ec.path,45);const I1={angle:tp,"angle-side":ep,arrow:D1,triangle:to,"triangle-flip":wc,circle:O1,"circle-line":o2,square:Bc,"square-line":fo,diamond:Ec,"diamond-line":a2,mark:{offset:po,path:[1,0,-2,2,0,2]}},Tc={triangle:r2,"triangle-flip":mc,arrow:Cc,circle:bc,square:kc,diamond:Sc};function d3(e,t,i,s,n,r,o){let a,l,h=1,c=0;const{strokeCap:d,strokeJoin:g}=e.__;if(O(t))if(t.type){if(h=t.scale||1,c=t.rotation||0,a=I1[t.type],h>1){const b=Tc[t.type];b&&(a=b,l=!0)}}else a=t;else a=I1[t];l||(l=a.fill);const{offset:u,connect:p,path:_,dashPath:y}=a;let x=p?p.x*h:0,m=u?u.x:0;const w=[..._];o&&y&&w.push(...y),d!=="none"&&(x-=.5),u&&(g==="round"&&u.roundJoin?m+=u.roundJoin:g==="bevel"&&u.bevelJoin&&(m+=u.bevelJoin)),h!==1&&Va(w,0,0,h,h),m&&Va(w,m,0),Va(w,s.x,s.y,n,n,Qg(i,s)+c),r.x=(x+m)*n;const v={data:w};return l&&(v.fill=l),v}const{M:u3,L:Ga,C:g3,Q:p3,Z:ip,N:sp,D:np,X:rp,G:op,F:ap,O:lp,P:hp,U:f3}=Yt,{copy:Zi,copyFrom:W1,getDistancePoint:_3,isSame:y3}=A,{stintSet:x3}=q,M0={},fr={},Vs={},wi={},ae={},ee={},cp={list:I1,fillList:Tc,addArrows(e,t){const i=e.__,{startArrow:s,endArrow:n,__strokeWidth:r,dashPattern:o,__pathForRender:a,cornerRadius:l}=i,h=!l;let c,d,g,u;t||(i.__strokeWidthCache=r);let p,_=0,y=a.length,x=0,m=s&&s!=="none";for(;_<y;){switch(p=a[_],p){case u3:case Ga:(x<2||_+6>=y)&&(Zi(wi,ee),W1(ee,a[_+1],a[_+2]),!x&&m&&Zi(fr,ee)),_+=3;break;case g3:(x===1||_+7>=y-3)&&(qa(a,ae,ee,_+3),wi.x=a[_+1],wi.y=a[_+2]),_+=7;break;case p3:(x===1||_+5>=y-3)&&(qa(a,ae,ee,_+1),Zi(wi,ae)),_+=5;break;case ip:return;case sp:_+=5;break;case np:_+=9;break;case rp:_+=6;break;case op:_+=9;break;case ap:_+=5;break;case lp:_+=7;break;case hp:_+=4;break;case f3:(x===1||_+6>=y-3)&&(qa(a,ae,ee,_+1),Zi(wi,ae),_+6!==y&&(ee.x-=(ee.x-ae.x)/10,ee.y-=(ee.y-ae.y)/10)),_+=6}if(x++,x===1&&p!==u3)return;if(x===2&&m&&Zi(Vs,p===Ga?ee:y3(wi,fr)?ae:wi),_===y){const w=i.__pathForRender=h?[...a]:a;if(m&&(c=d3(e,s,Vs,fr,r,M0,!!o),d=c.fill||o,d||w.push(...c.data),M0.x&&(_3(fr,Vs,-M0.x,!0),w[1]=Vs.x,w[2]=Vs.y)),n&&n!=="none"&&(y3(ae,ee)&&Zi(ae,wi),g=d3(e,n,ae,ee,r,M0,!!o),u=g.fill||o,u||w.push(...g.data),M0.x)){let v;switch(_3(ee,ae,-M0.x,!0),p){case Ga:v=_-3+1;break;case g3:v=_-7+5;break;case p3:v=_-5+3;break;case f3:v=_-6+3}v&&dp(w,ae,v)}}else Zi(ae,ee);x3(i,"__startArrowPath",d&&c),x3(i,"__endArrowPath",u&&g)}},updateArrow(e){const t=e.__;t.strokeScaleFixed&&t.__strokeWidthCache!==t.__strokeWidth&&e.__updateRenderPath(!0)},register(e,t,i){this.list[e]=t,i&&(this.fillList[e]=t)},get(e){return this.list[e]}};function qa(e,t,i,s){W1(t,e[s],e[s+1]),W1(i,e[s+2],e[s+3])}function dp(e,t,i){e[i]=t.x,e[i+1]=t.y}
65nt.add("arrow"),C.addAttr("startArrow","none",M1),C.addAttr("endArrow","none",M1),Object.assign(Zr,cp),Object.assign(st,{strokeArrow(e,t,i,s){const{__startArrowPath:n,__endArrowPath:r,dashPattern:o}=t.__;o&&(i.dashPattern=null),n&&(i.beginPath(),t.__drawPathByData(i,n.data),i.stroke(),n.fill&&(i.fillStyle=e,i.fill())),r&&(i.beginPath(),t.__drawPathByData(i,r.data),i.stroke(),r.fill&&(i.fillStyle=e,i.fill()))}});let ve=class extends k{get __tag(){return"Flow"}constructor(e){super(e),this.__hasAutoLayout=!0}};f([Et(class extends gi{})],ve.prototype,"__",void 0),f([qr("x")],ve.prototype,"flow",void 0),ve=f([Tt()],ve);const Ka={},Ac={"top-left":"from",top:"center","top-right":"to",right:"to","bottom-right":"to",bottom:"center","bottom-left":"from",left:"from",center:"center","baseline-left":"from","baseline-center":"center","baseline-right":"to"},Lc={"top-left":"from",top:"from","top-right":"from",right:"center","bottom-right":"to",bottom:"to","bottom-left":"to",left:"center",center:"center","baseline-left":"to","baseline-center":"to","baseline-right":"to"};function eo(e,t,i){const s=e.__,{contentBounds:n}=e.__layout;G1.toPoint(i,t,n,Ka),t.x=s.__autoWidth?n.x:Ka.x,t.y=s.__autoHeight?n.y:Ka.y}const{move:up}=A;function m3(e,t,i,s,n,r){const{children:o}=e;let a,l,{x:h,start:c}=t,d=s;h+=i;for(let g=0,u=t.count;g<u;g++)a=o[r?c-g:c+g],a.__.inFlow&&a.__.visible!==0?(l=a.__flowBounds,n!=="from"&&(d=s+(t.height-l.height)/(n==="center"?2:1)),up(a,h-l.x,d-l.y),h+=l.width+t.gap):u++}function io(e,t,i){const s=i==="width"?"height":"width";e[i]=Math.max(e[i],t[i]),e[s]+=e.count?t[s]+e.gap:t[s],e.list.push(t),e.count++}const Ft={};function Rc(e,t){const{gap:i,flowAlign:s,flowWrap:n,__autoWidth:r,__autoHeight:o}=e.__,a=n&&(t?!r:!o);return O(i)?(Ft.xGap=i.x||0,Ft.yGap=i.y||0):Ft.xGap=Ft.yGap=Xc(i),Ft.isAutoXGap=V(Ft.xGap)&&!r,Ft.isAutoYGap=V(Ft.yGap)&&!o,Ft.complex=a||s!=="top-left"||e.__hasGrow||Ft.isAutoXGap||Ft.isAutoYGap,Ft.wrap=a,Ft.complex&&(Ft.isFitXGap=Ft.xGap==="fit"&&!r,Ft.isFitYGap=Ft.yGap==="fit"&&!o,O(s)?(Ft.contentAlign=s.content||"top-left",Ft.rowXAlign=s.x||"from",Ft.rowYAlign=s.y||"from"):(Ft.contentAlign=s,Ft.rowXAlign=Ac[s],Ft.rowYAlign=Lc[s])),Ft}function so(e,t){return{x:0,y:0,width:0,height:0,gap:t,start:e,count:0,grow:0}}function is(e,t,i,s){const{count:n}=e;n>1&&(i>e[t]||s)&&(e.gap=(i-e[t])/(n-1),e[t]=i)}function Pc(e,t){return t==="box"?e.__local:e.__layout.localStrokeBounds}const{within:gp}=ct;function w3(e,t,i,s){let n,r,o,a=0,l=t.hasRangeSize&&[],{grow:h,start:c}=t;const d=(i-t.width)/h,{children:g}=e;if(!(d<=0)){t.width=i;for(let u=0,p=t.count;u<p;u++)n=g[s?c-u:c+u],n.__.inFlow&&n.__.visible!==0?(r=n.__widthGrow)&&(o=ln(n,n.__flowBounds,d*r),o?(a+=o,h-=r):l&&(n.__.widthRange?l.unshift(n):l.push(n))):p++;a&&(function(u,p,_){let y,x,m,w;u.forEach(v=>{y=v.__widthGrow,x=p/_*y,w=ln(v,m=v.__flowBounds,m.width+x),p-=x-w,_-=y})})(l,a,h)}}function ln(e,t,i){const{widthRange:s,lockRatio:n}=e.__,r=s?gp(i,s):i;t.width||(e.__.width=t.width=1);const o=r/t.width;return e.scaleResize(o,n?o:1),t.width=r,i-r}const{within:pp}=ct;function v3(e,t,i,s){let n,r,o,a=0,l=t.hasRangeSize&&[],{grow:h,start:c}=t;const d=(i-t.height)/h,{children:g}=e;if(!(d<=0)){t.height=i;for(let u=0,p=t.count;u<p;u++)n=g[s?c-u:c+u],n.__.inFlow&&n.__.visible!==0?(r=n.__heightGrow)&&(o=hn(n,n.__flowBounds,d*r),o?(a+=o,h-=r):l&&(n.__.heightRange?l.unshift(n):l.push(n))):p++;a&&(function(u,p,_){let y,x,m,w;u.forEach(v=>{y=v.__heightGrow,x=p/_*y,w=hn(v,m=v.__flowBounds,m.height+x),p-=x-w,_-=y})})(l,a,h)}}function hn(e,t,i){const{heightRange:s,lockRatio:n}=e.__,r=s?pp(i,s):i;t.height||(e.__.height=t.height=1);const o=r/t.height;return e.scaleResize(n?o:1,o),t.height=r,i-r}const{move:fp}=A;function C3(e,t){const i="width",{children:s,itemBox:n}=e,r=Rc(e,!0),{complex:o,wrap:a,xGap:l,yGap:h,isAutoXGap:c,isFitXGap:d}=r;if(!s.length)return;const g=a&&{x:0,y:0,width:0,height:0,gap:0,count:0,list:[]},u=c?0:l;let p,_,y,x,m,{x:w,y:v,width:b,height:B}=e.__layout.contentBounds;for(let S=0,R=s.length;S<R;S++)p=s[x=t?R-1-S:S],p.__.inFlow&&p.__.visible!==0&&(_=Pc(p,n),p.__.autoWidth&&O(p.__.autoWidth)&&ln(p,_,ns.number(p.__.autoWidth,b)),p.__.autoHeight&&O(p.__.autoHeight)&&hn(p,_,ns.number(p.__.autoHeight,B)),o?(p.__flowBounds=_,m||(m=so(x,u)),a&&m.count&&m.width+_.width>b&&(m.grow?w3(e,m,b,t):c&&is(m,i,b,d),io(g,m,i),m=so(x,u)),y=_.width,p.__widthGrow&&(m.grow+=p.__widthGrow,y=0,p.__.widthRange&&(m.hasRangeSize=!0)),p.__heightGrow&&hn(p,_,B),m.width+=m.count?y+u:y,m.height=Math.max(m.height,_.height),m.count++):(fp(p,w-_.x,v-_.y),w+=_.width+u));if(o&&m){const{isAutoYGap:S,isFitYGap:R,contentAlign:X,rowXAlign:z,rowYAlign:T}=r;m.count&&(m.grow?w3(e,m,b,t):c&&is(m,i,b,d),a&&io(g,m,i)),a?(S?is(g,"height",B,R):g.height+=(g.gap=h)*(g.list.length-1),(function(H,E,D,N){eo(H,E,D);const{list:U}=E;
65if(U.length>1&&(N||(N=Ac[D]),N!=="from")){let Z;for(let at=0,Q=U.length;at<Q;at++)Z=U[at],Z.x=E.width-Z.width,N==="center"&&(Z.x/=2)}})(e,g,X,z),(function(H,E,D,N){const{list:U}=E,Z=H.__.flowWrap==="reverse";let at,{x:Q,y:ye}=E;for(let Jt=0,ti=U.length;Jt<ti;Jt++)at=U[Z?ti-1-Jt:Jt],m3(H,at,Q,ye,D,N),ye+=at.height+E.gap})(e,g,T,t)):(eo(e,m,X),m3(e,m,0,m.y,T,t))}}const{move:_p}=A;function b3(e,t,i,s,n,r){const{children:o}=e;let a,l,{y:h,start:c}=t,d=i;h+=s;for(let g=0,u=t.count;g<u;g++)a=o[r?c-g:c+g],a.__.inFlow&&a.__.visible!==0?(l=a.__flowBounds,n!=="from"&&(d=i+(t.width-l.width)/(n==="center"?2:1)),_p(a,d-l.x,h-l.y),h+=l.height+t.gap):u++}const{move:yp}=A;function k3(e,t){const i="height",{children:s,itemBox:n}=e,r=Rc(e,!1),{complex:o,wrap:a,xGap:l,yGap:h,isAutoYGap:c,isFitYGap:d}=r;if(!s.length)return;const g=a&&{x:0,y:0,width:0,height:0,gap:0,count:0,list:[]},u=c?0:h;let p,_,y,x,m,{x:w,y:v,width:b,height:B}=e.__layout.contentBounds;for(let S=0,R=s.length;S<R;S++)p=s[x=t?R-1-S:S],p.__.inFlow&&p.__.visible!==0&&(_=Pc(p,n),p.__.autoWidth&&O(p.__.autoWidth)&&ln(p,_,ns.number(p.__.autoWidth,b)),p.__.autoHeight&&O(p.__.autoHeight)&&hn(p,_,ns.number(p.__.autoHeight,B)),o?(p.__flowBounds=_,m||(m=so(x,u)),a&&m.count&&m.height+_.height>B&&(m.grow&&v3(e,m,B,t),c&&is(m,i,B,d),io(g,m,i),m=so(x,u)),y=_.height,p.__heightGrow&&(m.grow+=p.__heightGrow,y=0,p.__.heightRange&&(m.hasRangeSize=!0)),p.__widthGrow&&ln(p,_,b),m.height+=m.count?y+u:y,m.width=Math.max(m.width,_.width),m.count++):(yp(p,w-_.x,v-_.y),v+=_.height+u));if(o&&m){const{isAutoXGap:S,isFitXGap:R,contentAlign:X,rowXAlign:z,rowYAlign:T}=r;m.count&&(m.grow&&v3(e,m,B,t),c&&is(m,i,B,d),a&&io(g,m,i)),a?(S?is(g,"width",b,R):g.width+=(g.gap=l)*(g.list.length-1),(function(H,E,D,N){eo(H,E,D);const{list:U}=E;if(U.length>1&&(N||(N=Lc[D]),N!=="from")){let Z;for(let at=0,Q=U.length;at<Q;at++)Z=U[at],Z.y=E.height-Z.height,N==="center"&&(Z.y/=2)}})(e,g,X,T),(function(H,E,D,N){const{list:U}=E,Z=H.__.flowWrap==="reverse";let at,{x:Q,y:ye}=E;for(let Jt=0,ti=U.length;Jt<ti;Jt++)at=U[Z?ti-1-Jt:Jt],b3(H,at,Q,ye,D,N),Q+=at.width+E.gap})(e,g,z,t)):(eo(e,m,X),b3(e,m,m.x,0,z,t))}}function xp(e){e.__hasGrow=!0}function B3(e){return yt(e,t=>({set(i){const s=it(i)?i:0;t==="autoWidth"?this.__widthGrow=s:this.__heightGrow=s,this.__setAttr(t,i)&&(s&&this.waitParentChange(xp),_e(this))}}))}nt.add("flow","resize");const Za=k.prototype,_r=Ye.prototype,{__updateBoxBounds:mp}=ht.prototype;C.addAttr("flow",!1,qr),C.addAttr("gap",0,tt),C.addAttr("flowAlign","top-left",tt),C.addAttr("flowWrap",!1,tt),C.addAttr("itemBox","box",tt),C.addAttr("inFlow",!0,tt),C.addAttr("autoWidth",void 0,B3),C.addAttr("autoHeight",void 0,B3),C.addAttr("autoBox",void 0,tt);const{copyAndSpread:S3,unsign:wp}=P;Za.__updateFlowLayout=function(){const{leaferIsCreated:e,flow:t}=this;switch(e&&(this.leafer.created=!1),t){case"x":case!0:C3(this);break;case"y":k3(this);break;case"x-reverse":C3(this,!0);break;case"y-reverse":k3(this,!0)}e&&(this.leafer.created=!0)},Za.__updateContentBounds=function(){const{padding:e}=this.__,t=this.__layout,i=t.contentBounds===t.boxBounds;e?(i&&t.shrinkContent(),S3(t.contentBounds,t.boxBounds,e,!0),wp(t.contentBounds)):i||t.shrinkContentCancel()},Za.__updateBoxBounds=function(e){if(this.children.length&&!this.__useSelfBox){const t=this.__,{flow:i}=t;if(t.__autoSide){t.__hasSurface&&this.__extraUpdate(),i&&!e?this.__updateRectBoxBounds():mp.call(this);const{boxBounds:s}=this.__layout;t.__autoSize||(t.__autoWidth?(i||(s.width+=s.x,s.x=0),s.height=t.height,s.y=0):(i||(s.height+=s.y,s.y=0),s.width=t.width,s.x=0)),i&&e&&t.padding&&S3(s,s,t.padding,!1,t.__autoSize?null:t.__autoWidth?"width":"height"),this.__updateNaturalSize()}else this.__updateRectBoxBounds();i&&this.__updateContentBounds()}else this.__updateRectBoxBounds()},Object.defineProperty(_r,"__autoWidth",{get(){return this._width==null&&this._autoWidth==null}}),Object.defineProperty(_r,"__autoHeight",{get(){return this._height==null&&this._autoHeight==null}}),Object.defineProperty(_r,"__autoSide",{get(){return this.__autoWidth||this.__autoHeight}}),Object.defineProperty(_r,"__autoSize",{get(){return this.__autoWidth&&this.__autoHeight}});const{cos:E3,sin:Gs,pow:Qt,sqrt:yr,abs:vp,ceil:Cp,floor:bp,round:kp,PI:jr}=Math,xr=5*jr,mr=1.70158,wr=2.5949095,vr=7.5625,D0=2.75;function Cr(e){return t=>Qt(t,e)}function br(e){return t=>1-Qt(1-t,e)}function kr(e){return t=>t<.5?.5*Qt(2*t,e):1-.5*Qt(2-2*t,e)}function Br(e){return e<1/D0?vr*e*e:e<2/D0?vr*(e-=1.5/D0)*e+.75:e<2.5/D0?vr*(e-=2.25/D0)*e+.9375:vr*(e-=2.625/D0)*e+.984375}function qs(e,t,i,s){const n={};return r=>{const o=~~(1e4*r),a=n[o];if(a)return a;let l,h,c,d=r;for(let g=0;g<8&&(l=1-d,c=T3(d,e,i)-r,h=3*l*l*e+6*l*d*(i-e)+3*d*d*(1-i),!(vp(h)<1e-6));g++)d-=c/h;return n[o]=T3(d,t,s)}}function T3(e,t,i){const s=1-e;return 3*s*s*e*t+3*s*e*e*i+e*e*e}const no={get(e){const{list:t}=no;return V(e)?t[e||"ease"]:O(e)?t[e.name].apply(t,et(e.value)?e.value:[e.value]):t.ease},register(e,t){no.list[e]=t},list:{linear:e=>
65e,ease:qs(.25,.1,.25,1),"ease-in":qs(.42,0,1,1),"ease-out":qs(0,0,.58,1),"ease-in-out":qs(.42,0,.58,1),"sine-in":e=>1-E3(e*jr*.5),"sine-out":e=>Gs(e*jr*.5),"sine-in-out":e=>.5*(1-E3(e*jr)),"quad-in":Cr(2),"quad-out":br(2),"quad-in-out":kr(2),"cubic-in":Cr(3),"cubic-out":br(3),"cubic-in-out":kr(3),"quart-in":Cr(4),"quart-out":br(4),"quart-in-out":kr(4),"quint-in":Cr(5),"quint-out":br(5),"quint-in-out":kr(5),"expo-in":e=>e?Qt(2,10*e-10):0,"expo-out":e=>e===1?1:1-Qt(2,10*-e),"expo-in-out":e=>e===0||e===1?e:e<.5?.5*Qt(2,2*e*10-10):.5*(2-Qt(2,10-2*e*10)),"circ-in":e=>1-yr(1-Qt(e,2)),"circ-out":e=>yr(1-Qt(e-1,2)),"circ-in-out":e=>e<.5?.5*(1-yr(1-Qt(2*e,2))):.5*(yr(1-Qt(2-2*e,2))+1),"back-in":e=>((mr+1)*e-mr)*e*e,"back-out":e=>(e-=1)*e*((mr+1)*e+mr)+1,"back-in-out":e=>e<.5?(e*=2)*e*((wr+1)*e-wr)*.5:.5*((e=2*e-2)*e*((wr+1)*e+wr)+2),"elastic-in":e=>e===0||e===1?e:-Qt(2,10*(e-1))*Gs((e-1.1)*xr),"elastic-out":e=>e===0||e===1?e:Qt(2,-10*e)*Gs((e-.1)*xr)+1,"elastic-in-out":e=>e===0||e===1?e:e<.5?-Qt(2,10*((e*=2)-1))*Gs((e-1.1)*xr)*.5:Qt(2,10*(1-(e*=2)))*Gs((e-1.1)*xr)*.5+1,"bounce-in":e=>1-Br(1-e),"bounce-out":Br,"bounce-in-out":e=>e<.5?.5*(1-Br(1-2*e)):.5*(1+Br(2*e-1)),"cubic-bezier":qs,steps:function(e,t="floor"){return i=>(t==="floor"?bp(i*e):t==="ceil"?Cp(i*e):kp(i*e))/e}}};function me(e){return(t,i)=>{Object.defineProperty(t,i,{get(){const s=this.config&&this.config[i];return s===void 0?e:s},set(s){this.config||(this.config={}),this.config[i]=s}})}}class zt{}zt.CREATED="created",zt.PLAY="play",zt.PAUSE="pause",zt.STOP="stop",zt.SEEK="seek",zt.UPDATE="update",zt.COMPLETED="completed";let Ut=class extends ec{get endingStyle(){return this.realEnding==="from"?this.fromStyle:this.toStyle}get started(){return!!this.requestAnimateTime}get completed(){return this.time>=this.duration&&!this.started}get frame(){return this.frames[this.nowIndex]}get frameTotalTime(){return this.frame.totalTime||this.frame.duration||0}get nowReverse(){return(this.mainReverse?1:0)+(this.frameReverse?1:0)==1}get realEnding(){let e;const{ending:t,reverse:i,swing:s,loop:n}=this;return t==="from"?e=0:t==="to"?e=1:(e=i?0:1,s&&n&&it(n)&&(e+=n-1)),e%2?"to":"from"}constructor(e,t,i,s){super(),this.nowIndex=0,this.playedTotalTime=0,t&&(t.keyframes?(i=t,t=t.keyframes):t.style&&(i=t,t=t.style)),this.init(e,t,i,s)}init(e,t,i,s){switch(this.target=e,(s||this.isTemp)&&(this.isTemp=s),typeof i){case"number":this.config={duration:i};break;case"string":this.config={easing:i};break;case"object":this.config=i,i.event&&(this.event=i.event)}this.keyframes=et(t)?t:t?[t]:[];const{easing:n,attrs:r}=this;this.easingFn=no.get(n),(r||this.attrsMap)&&(this.attrsMap=r?r.reduce((o,a)=>(o[a]=!0,o),{}):void 0),this.frames=[],this.create(),this.autoplay&&this.frames.length&&(this.timer=setTimeout(()=>{this.timer=0,this.play()},0))}emitType(e){this.emit(e,this),this.parent&&this.parent.onChildEvent(e,this)}play(){this.destroyed||(this.running=!0,this.started?this.timer||this.startRequestAnimate():(this.clearTimer(),this.start()),this.emitType(zt.PLAY))}pause(){this.destroyed||(this.running=!1,this.clearTimer(),this.emitType(zt.PAUSE))}stop(){this.destroyed||(this.complete(),this.emitType(zt.STOP))}seek(e,t){if(this.destroyed)return;const{delay:i}=this;let s;O(e)&&(e=Pi.number(e,this.duration+(t?i:0))),t&&(e-=i),e&&(e/=this.speed),e<0&&(s=-e,e=0),(!this.started||e<this.time||!e)&&this.start(!0),this.time=e,s||this.animate(0,!0),this.clearTimer(()=>{s?this.timer=setTimeout(()=>{this.timer=0,this.begin()},1e3*s):this.startRequestAnimate()}),this.emitType(zt.SEEK)}kill(e=!0,t){this.killStyle=t,this.destroy(e)}create(){const{target:e,frames:t,keyframes:i,config:s}=this,{length:n}=i,r=!(n>1)||this.join;let o,a,l,h,c,d=0,g=0;n>1&&(this.fromStyle={},this.toStyle={});for(let u=0;u<n;u++){if(a=i[u],h=a.style||a,o||(o=r?e:h),l={style:h,beforeStyle:{}},c=1,a.style){const{duration:p,autoDuration:_,delay:y,autoDelay:x,easing:m,swing:w,loop:v}=a;w&&(l.swing=it(w)?w:2,c=2*l.swing-1),v&&(l.loop=c=it(v)?v:2),p?(l.duration=p,d+=p*c,y&&(l.totalTime=p+y)):_&&(l.autoDuration=_,g+=_*c),y?(l.delay=y,d+=y*c):x&&(l.autoDelay=x,g+=x*c),m&&(l.easingFn=no.get(m))}if(!l.autoDuration&&M(l.duration)&&(n>1?u>0||r?g+=c:l.duration=0:l.duration=this.duration),n>1)this.setBefore(l,h,o);else{for(let p in h)l.beforeStyle[p]=e[p];this.fromStyle=l.beforeStyle,this.toStyle=l.style}o=h,t.push(l)}g?((this.duration<=d||!s||!s.duration)&&this.changeDuration(d+.2*g),this.allocateTime((this.duration-d)/g)):d&&this.changeDuration(d),this.emitType(zt.CREATED)}changeDuration(e){const{config:t}=this;this.config=t?Object.assign(Object.assign({},t),{duration:e}):{duration:e}}setBefore(e,t,i){const{fromStyle:s,toStyle:n,target:r}=this;for(let o in t)M(s[o])&&(s[o]=n[o]=t===i?i[o]:r[o]),e.beforeStyle[o]=M(i[o])?n[o]:i[o],n[o]=t[o]}allocateTime(e){let t,{frames:i}=this,{length:s}=i;for(let n=0;n<s;n++)t=i[n],M(t.duration)&&(t.duration=t.autoDuration?e*t.autoDuration:e),t.totalTime||(t.autoDelay&&(t.delay=t.autoDelay*e),t.delay&&(t.totalTime=t.duration+t.delay))}startRequestAnimate(){this.requestAnimateTime=Date.now(),this.requestAnimatePageTime=0,this.waitRequestRender||this.requestAnimate()}requestAnimate(){this.waitRequestRender=!0,L.requestRender(this.animate.bind(this))}animate(e,t){if(!t){if(this.waitRequestRender=!1,!this.running)return;let n;n=e&&this.requestAnimatePageTime?e-this.requestAnimatePageTime:Date.now()-this.requestAnimateTime,this.time+=n/1e3,this.requestAnimatePageTime=e,this.requestAnimateTime=Date.now()}const{duration:i}=this,s=this.time*this.speed;if(s<i){for(;s-this.playedTotalTime>this.frameTotalTime;)this.transition(1),this.mainReverse?this.reverseNextFrame():this.nextFrame();const n=this.nowReverse?0:this.frame.delay||0,r=s-this.playedTotalTime-n,o=this.frame.duration;if(r>o)this.transition(1);else if(r>=0){const a=o?r/o:1;this.transition(this.frame.easingFn?this.frame.easingFn(a):this.easingFn(a))}}else this.end();if(!t)if(s<i)this.requestAnimate();else{const{loop:n,loopDelay:r,swing:o}=this;if((n!==!1||o)&&(this.looped?this.looped++:this.looped=1,this.needLoop(this.looped,n,o)))return o&&(this.mainReverse=!this.mainReverse),void(r?this.timer=setTimeout(()=>{this.timer=0,this.begin()},r/this.speed*1e3):this.begin());this.complete()}}start(e){this.requestAnimateTime=1;const{reverse:t,jump:i}=this;if((t||this.mainReverse)&&(this.mainReverse=t),this.looped&&(this.looped=0),e)this.begin(!0);else{const{delay:s}=this;s?(i&&this.begin(!0),this.timer=setTimeout(()=>{this.timer=0,this.begin()},s/this.speed*1e3)):this.begin()}}begin(e){this.playedTotalTime=this.time=0,this.mainReverse?this.setTo():this.setFrom(),e||this.startRequestAnimate()}end(){this.mainReverse?this.setFrom():this.setTo()}complete(){this.requestAnimateTime=0,this.running=!1;const{endingStyle:e,killStyle:t}=this,i=t?{}:e;if(t)for(let s in e)s in t||(i[s]=e[s]);this.setStyle(i),this.clearTimer(),this.emitType(zt.COMPLETED)}setFrom(){this.nowIndex=0,this.setStyle(this.fromStyle)}
65setTo(){this.nowIndex=this.frames.length-1,this.setStyle(this.toStyle)}nextFrame(){if(this.needLoopFrame())return this.increaseTime();this.nowIndex+1>=this.frames.length||(this.increaseTime(),this.nowIndex++)}reverseNextFrame(){if(this.needLoopFrame())return this.increaseTime();this.nowIndex-1<0||(this.increaseTime(),this.nowIndex--)}transition(e){const{style:t,beforeStyle:i}=this.frame,s=this.nowReverse?t:i,n=this.nowReverse?i:t;if(e===0)this.setStyle(s);else if(e===1)this.setStyle(n);else{const{attrsMap:r,target:o}=this;let{betweenStyle:a}=this.frame;a||(a=this.frame.betweenStyle={}),Wt.setBetweenStyle(a,s,n,t,e,o,r),this.setStyle(a)}this.emitType(zt.UPDATE)}setStyle(e){const{target:t}=this;t&&e&&(this.style=e,t.__?t.set(e,!!this.isTemp&&"temp"):Object.assign(t,e))}increaseTime(){this.playedTotalTime+=this.frameTotalTime}needLoop(e,t,i){return!(this.needStopLoop(e,t)||this.needStopLoop(e,i,!0))}needStopLoop(e,t,i){return it(t)&&(!t||e>=(i?2*t-1:t))}needLoopFrame(){const{loop:e,swing:t}=this.frame;if(e||t){if(this.frameLooped?this.frameLooped++:this.frameLooped=1,t&&(this.frameReverse=!this.frameReverse),this.needLoop(this.frameLooped,e,t))return!0;this.frameLooped=this.frameReverse=void 0}return!1}clearTimer(e){this.timer&&(clearTimeout(this.timer),this.timer=0,e&&e())}destroy(e){this.destroyed||(super.destroy(),e&&!this.completed?this.stop():this.pause(),this.target=this.parent=this.config=this.frames=this.fromStyle=this.toStyle=this.style=this.killStyle=null,this.destroyed=!0)}};f([me("ease")],Ut.prototype,"easing",void 0),f([me(0)],Ut.prototype,"delay",void 0),f([me(.2)],Ut.prototype,"duration",void 0),f([me("auto")],Ut.prototype,"ending",void 0),f([me(!1)],Ut.prototype,"reverse",void 0),f([me(!1)],Ut.prototype,"swing",void 0),f([me(!1)],Ut.prototype,"loop",void 0),f([me(0)],Ut.prototype,"loopDelay",void 0),f([me(1)],Ut.prototype,"speed",void 0),f([me(!0)],Ut.prototype,"autoplay",void 0),f([me()],Ut.prototype,"join",void 0),f([me()],Ut.prototype,"jump",void 0),f([me()],Ut.prototype,"attrs",void 0),Ut=f([ue(J1)],Ut);let J0=class extends Ut{get completed(){return this.list.every(e=>e.completed)}get endingStyle(){return this._endingStyle}constructor(e,t,i){super(e,null),this.list=[],this.updateList(t,i)}updateList(e,t){this.fromStyle={},this.toStyle={},this._endingStyle={},e||(e=this.list.filter(i=>{const{completed:s}=i;return s&&i.destroy(),!s})),this.list=e.map(i=>{const s=i.target?i:new Ut(this.target,i,t);return s.parent=this,Object.assign(this.fromStyle,s.fromStyle),Object.assign(this.toStyle,s.toStyle),Object.assign(this._endingStyle,s.endingStyle),s})}play(){this.each(e=>e.play()),this.emitType(zt.PLAY)}pause(){this.each(e=>e.pause()),this.emitType(zt.PAUSE)}stop(){this.each(e=>e.stop()),this.emitType(zt.STOP)}seek(e,t){this.each(i=>i.seek(e,t)),this.emitType(zt.SEEK)}kill(e,t){this.each(i=>i.kill(e,t)),this.destroy()}onChildEvent(e,t){switch(e){case zt.COMPLETED:this.completed&&this.emitType(e);break;case zt.UPDATE:this.emitType(e)}}each(e){this.list.forEach(e)}destroy(e){const{list:t}=this;t.length&&(this.each(i=>i.destroy(e)),t.length=0)}};J0=f([ue(J1)],J0);const Bp={transparent:"FFF0",aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"0FF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"0",blanchedalmond:"FFEBCD",blue:"00F",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"0FF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9",darkgreen:"006400",darkgrey:"A9",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"69",dimgrey:"69",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"F0F",gainsboro:"DC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"80",green:"008000",greenyellow:"ADFF2F",grey:"80",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3",lightgreen:"90EE90",lightgrey:"D3",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"789",lightslategrey:"789",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370DB",mediumseagreen:"3CB371",mediumslateblue:"7B68
65EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",rebeccapurple:"639",red:"F00",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"F",whitesmoke:"F5",yellow:"FF0",yellowgreen:"9ACD32"},A3=/^rgb\((\d+),\s*(\d+),\s*(\d+)/i,L3=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)/i,R3=/^hsl\((\d+),\s*(\d+)%\s*,\s*(\d+)%/i,P3=/^hsla\((\d+),\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d*\.?\d+)/i,Ot=parseInt,vi=parseFloat,{round:$a}=Math;let Ja={},Qa=0;function F3(e){let t,i,s,n=1;switch(e.length){case 9:t=Ot(e.slice(1,3),16),i=Ot(e.slice(3,5),16),s=Ot(e.slice(5,7),16),n=Ot(e.slice(7,9),16)/255;break;case 7:t=Ot(e.slice(1,3),16),i=Ot(e.slice(3,5),16),s=Ot(e.slice(5,7),16);break;case 5:t=Ot(e[1]+e[1],16),i=Ot(e[2]+e[2],16),s=Ot(e[3]+e[3],16),n=Ot(e[4]+e[4],16)/255;break;case 4:t=Ot(e[1]+e[1],16),i=Ot(e[2]+e[2],16),s=Ot(e[3]+e[3],16);break;case 3:t=i=s=Ot(e[1]+e[2],16);break;case 2:t=i=s=Ot(e[1]+e[1],16)}return{r:t,g:i,b:s,a:n}}const Sp=1/6,Ep=.5,M3=2/3,D3=1/3;function t1(e,t,i){return i<0?i++:i>1&&i--,i<Sp?e+6*(t-e)*i:i<Ep?t:i<M3?e+(t-e)*(M3-i)*6:e}function O3(e,t,i,s=1){let n,r,o;if(e/=360,i/=100,(t/=100)===0)n=r=o=i;else{let a=i<.5?i*(1+t):i+t-i*t,l=2*i-a;n=t1(l,a,e+D3),r=t1(l,a,e),o=t1(l,a,e-D3)}return{r:$a(255*n),g:$a(255*r),b:$a(255*o),a:s}}nt.add("color"),Ct.object=function(e,t){let i,s=!M(t)&&t<1;if(V(e)){const n=Ja[e];if(n)i=Object.assign({},n);else{switch(e[0]){case"#":i=F3(e);break;case"R":case"r":e[4]==="("&&L3.test(e)?i=(function(r){const o=L3.exec(r);return{r:Ot(o[1]),g:Ot(o[2]),b:Ot(o[3]),a:vi(o[4])}})(e):e[3]==="("&&A3.test(e)&&(i=(function(r){const o=A3.exec(r);return{r:Ot(o[1]),g:Ot(o[2]),b:Ot(o[3]),a:1}})(e));break;case"H":case"h":e[4]==="("&&P3.test(e)?i=(function(r){const o=P3.exec(r);return O3(vi(o[1]),vi(o[2]),vi(o[3]),vi(o[4]))})(e):e[3]==="("&&R3.test(e)&&(i=(function(r){const o=R3.exec(r);return O3(vi(o[1]),vi(o[2]),vi(o[3]),1)})(e))}if(!i){const r=Bp[e.toLowerCase()];r&&(i=F3("#"+r))}i&&(Qa++,Qa>1e4&&(Ja={},Qa=0),Ja[e]=Object.assign({},i))}}else O(e)&&(M(e.a)&&(e.a=1),s&&(e=Object.assign({},e)),i=e);return i||(i={r:255,g:255,b:255,a:1}),s&&(i.a*=t),i};const{round:Tp}=Math,{fourNumber:I3}=ct,Ap={fill:z3,stroke:z3,cornerRadius:(e,t,i)=>it(e)&&it(t)?ge(e,t,i):(e=I3(e),t=I3(t),e.map((s,n)=>ge(s,t[n],i))),text(e,t,i){if(V(e)&&V(t)){const s=e.length,n=t.length,r=ge(s,n,i,1);return s<n?t.substring(0,r):e.substring(0,r)}return it(e)||it(t)?ct.float(ge(e,t,i),Math.max(W3(e),W3(t))):t},boxStyle(e,t,i,s){e||(e={}),t||(t={});const n=Object.assign(Object.assign({},e),t);return Wt.setBetweenStyle(n,e,t,n,i,s),n},shadow:H3,innerShadow:H3},Lp={value:function(e,t,i){const s=it(e),n=it(t);return s&&n?e+(t-e)*i:n||s?ge(e,t,i):e},number:ge,color:l2,setBetweenStyle:function(e,t,i,s,n,r,o){let a,l,h;const{list:c,value:d}=Wt;for(let g in s)o&&!o[g]||(a=t[g],l=i[g],h=c[g]||d,a!==l&&(e[g]=h(a,l,n,r)))}};function W3(e){const t=String(e).split(".")[1];return t?t.length:0}function ge(e,t,i,s){e||(e=0),t||(t=0);const n=e+(t-e)*i;return s?Tp(n):n}function l2(e,t,i){let s=Ct.object(e),n=Ct.object(t);e||(s=Object.assign(Object.assign({},n),{a:0})),t||(n=Object.assign(Object.assign({},s),{a:0}));const r=ge(s.r,n.r,i,1)+","+ge(s.g,n.g,i,1)+","+ge(s.b,n.b,i,1),o=ge(s.a,n.a,i);return o===1?"rgb("+r+")":"rgba("+r+","+o+")"}function z3(e,t,i){return!V(e)&&e||!V(t)&&t?t:l2(e,t,i)}function H3(e,t,i){return et(e)||et(t)?t:(t=t||{},{x:ge((e=e||{}).x,t.x,i),y:ge(e.y,t.y,i),blur:ge(e.blur,t.blur,i),spread:ge(e.spread,t.spread,i),color:l2(e.color||"#FFFFFF00",t.color||"#FFFFFF00",i),visible:t.visible,blendMode:t.blendMode,box:t.box||e.box})}nt.add("animate","color"),gt.canAnimate=!0,Object.assign(Wt.list,Ap),Object.assign(Wt,Lp);const Sr=C.prototype;C.addAttr("animation",void 0,function(e){return yt(e,t=>({set(i){this.__setAttr(t,i),this.leafer&&(this.killAnimate("animation"),i&&this.animate(i,void 0,"animation"))}}))}),C.addAttr("animationOut",void 0,mt),C.addAttr("transition",!0,mt),C.addAttr("transitionOut",void 0,mt),Sr.set=function(e,t){e&&(t?t==="temp"?(this.lockNormalStyle=!0,Object.assign(this,e),this.lockNormalStyle=!1):this.animate(e,t):Object.assign(this,e))},Sr.animate=function(e,t,i,s){if(M(e))return this.__animate;let n=et(e)&&!t&&i?new J0(this,e,s):new Ut(this,e,t,s);this.killAnimate(i,n.toStyle);const r=this.__animate;return r&&(n instanceof J0?n.list.unshift(r):n=new J0(this,[r,n])),this.__animate=n},Sr.killAnimate=function(e,t){const i=this.__animate;if(i){let s=!1;if(t&&!i.completed){i instanceof J0&&i.updateList();const{toStyle:n}=i;for(let r in t)if(r in n){s=!0;break}}else s=!0;s&&(i.kill(!0,t),this.__animate=null)}},Sr.__runAnimation=function(e,t){this.animate(e==="in"?this.animation:this.animationOut,void 0,"animation"),t&&this.__animate.on(zt.COMPLETED,t)};const e1=[.1488743389,.4333953941,.6794095682,.8650633666,.9739065285],Rp=[.2955242247,.2692667193,.2190863625,.1494513491,.0666713443],{sqrt:N3}=Math,{getDerivative:O0}=pe,j0={getDistance(e,t,i,s,n,r,o,a,l=1){let h,c,d,g,u,p,_=0,y=l/2;for(let x=0;x<e1.length;
65x++)h=y*(1+e1[x]),c=y*(1-e1[x]),d=O0(h,e,i,n,o),g=O0(h,t,s,r,a),u=O0(c,e,i,n,o),p=O0(c,t,s,r,a),_+=Rp[x]*(N3(d*d+g*g)+N3(u*u+p*p));return _*y},getRotation(e,t,i,s,n,r,o,a,l){const h=O0(e,t,s,r,a),c=O0(e,i,n,o,l);return Math.atan2(c,h)/lt},getT(e,t,i,s,n,r,o,a,l,h,c=1){let d=0,g=1,u=e/t,p=c/t/3;if(u>=1)return 1;if(u<=0)return 0;for(;g-d>p;)Pp(i,s,n,r,o,a,l,h,u)<e?d=u:g=u,u=(d+g)/2;return u},cut(e,t,i,s,n,r,o,a,l,h){const c=1-t,d=c*i+t*n,g=c*s+t*r,u=c*n+t*o,p=c*r+t*a,_=c*d+t*u,y=c*g+t*p,x=c*_+t*(c*u+t*(c*o+t*l)),m=c*y+t*(c*p+t*(c*a+t*h));e.push(Yt.C,d,g,_,y,x,m)}},{getDistance:Pp}=j0,{M:Er,L:I0,C:Tr,Z:Ar}=Yt,{float:i1}=ct,{set:Ci,getAngle:X3,getDistanceFrom:Y3,getDistancePoint:Lr}=A,Ks={},Ge={},ss={transform(e,t){let i,s=0;const n=e.length;for(;s<n;)switch(i=e[s],i){case Er:case I0:ss.transformPoints(e,t,s,1),s+=3;break;case Tr:ss.transformPoints(e,t,s,3),s+=7;break;case Ar:s+=1}},transformPoints(e,t,i,s){for(let n=i+1,r=n+2*s;n<r;n+=2)Ks.x=e[n],Ks.y=e[n+1],K.toOuterPoint(t,Ks),e[n]=Ks.x,e[n+1]=Ks.y},getMotionPathData(e){let t,i,s,n,r,o=0,a=[],l=0,h=0,c=0,d=0,g=0;const u=e.length;for(;l<u;){switch(n=e[l],n){case Er:d=e[l+1],g=e[l+2];case I0:i=e[l+1],s=e[l+2],t=n===I0&&l>0?Y3(h,c,i,s):0,h=i,c=s,l+=3;break;case Tr:i=e[l+5],s=e[l+6],t=j0.getDistance(h,c,e[l+1],e[l+2],e[l+3],e[l+4],i,s),h=i,c=s,l+=7;break;case Ar:r=!0,t=Y3(h,c,d,g),l+=1;break;default:t=0}a.push(t),o+=t}return{total:o,segments:a,data:e,closed:r}},getDistancePoint(e,t,i,s){const{segments:n,data:r,total:o}=e;t=Pi.number(t,o),s&&(t+=s),t>o&&(t%=o),t<0&&(t=o+t);let a,l,h,c,d,g,u,p,_,y=0,x={},m=0,w=0,v=0,b=0,B=0,S=0;const R=r.length;for(;m<R;){switch(c=r[m],c){case Er:B=r[m+1],S=r[m+2];case I0:if(l=r[m+1],h=r[m+2],a=n[w],y+a>=t||!e.total){if(Ci(x,l,h),m)return Ci(Ge,v,b),Lr(Ge,x,t-y,!0),x.rotation=X3(Ge,x),x;{const X=ss.getDistancePoint(e,i,i,s);return x.rotation=X.rotation,x}}v=l,b=h,m+=3;break;case Tr:if(l=r[m+5],h=r[m+6],a=n[w],y+a>=t)return d=r[m+1],g=r[m+2],u=r[m+3],p=r[m+4],_=j0.getT(t-y,a,v,b,d,g,u,p,l,h,i),pe.getPointAndSet(_,v,b,d,g,u,p,l,h,x),x.rotation=j0.getRotation(_,v,b,d,g,u,p,l,h),x;v=l,b=h,m+=7;break;case Ar:if(l=B,h=S,a=n[w],y+a>=t)return Ci(Ge,v,b),Ci(x,l,h),Lr(Ge,x,t-y,!0),x.rotation=X3(Ge,x),x;v=l,b=h,m+=1;break;default:a=0}w++,y+=a}return x},getDistancePath(e,t,i){const{segments:s,data:n}=e,r=[];t=Pi.number(t,e.total);let o,a,l,h,c,d,g,u,p,_,y=0,x={},m=0,w=0,v=0,b=0,B=0,S=0;const R=n.length;for(;m<R;){switch(c=n[m],c){case Er:B=n[m+1],S=n[m+2];case I0:if(l=n[m+1],h=n[m+2],o=s[w],y+o>t||!e.total)return m||(v=l,b=h),Ci(Ge,v,b),Ci(x,l,h),a=i1(t-y),a&&(Lr(Ge,x,a,!0),r.push(c,x.x,x.y)),r;v=l,b=h,m+=3,r.push(c,v,b);break;case Tr:if(d=n[m+1],g=n[m+2],u=n[m+3],p=n[m+4],l=n[m+5],h=n[m+6],o=s[w],y+o>t)return a=i1(t-y),a&&(_=j0.getT(a,o,v,b,d,g,u,p,l,h,i),j0.cut(r,_,v,b,d,g,u,p,l,h)),r;v=l,b=h,m+=7,r.push(c,d,g,u,p,l,h);break;case Ar:if(l=B,h=S,o=s[w],y+o>t)return Ci(Ge,v,b),Ci(x,l,h),a=i1(t-y),a&&(Lr(Ge,x,a,!0),r.push(I0,x.x,x.y)),r;v=l,b=h,m+=1,r.push(c);break;default:o=0}w++,y+=o}return r}};function a0(e){return yt(e,t=>({set(i){this.__setAttr(t,i),this.__hasMotionPath=this.motionPath||!Nt(this.motion),this.__layout.matrixChanged||this.__layout.matrixChange()}}))}nt.add("motion-path"),Wt.register("motion",function(e,t,i,s){return O(e)&&(e=Pi.number(e,s.getMotionTotal())),O(t)&&(t=Pi.number(t,s.getMotionTotal())),Wt.number(e||0,t||0,i)}),Wt.register("motionRotation",function(e,t,i){return Wt.number(e,t,i)});const Zs=C.prototype,{updateMatrix:Fp,updateAllMatrix:Mp}=$,{updateBounds:Dp}=Di,{toVertical:Op}=A,W0={};function j3(e){const{motion:t,leaferIsCreated:i}=e;if(!Nt(t)){if(i&&(e.leafer.created=!1),e.motionPath){const s=z1(e);s.total&&(e.__.__pathForRender=ss.getDistancePath(s,t,e.motionPrecision))}else{if(e.motionText)e.__updateMotionText();else{const s=e.getMotionPoint(t,e.motionAround);e.motionRotation===!1&&delete s.rotation,e.set(s)}e.__hasAutoLayout||(e.isBranch?(Mp(e),Dp(e,e)):Fp(e))}i&&(e.leafer.created=!0)}}function s1(e){const{parent:t}=e;if(!e.motionPath&&t){const{children:i}=t;for(let s=0;s<i.length;s++)if(i[s].motionPath)return i[s]}return e}function z1(e){const t=e.__;return t.__pathForMotion?t.__pathForMotion:t.__pathForMotion=ss.getMotionPathData(e.getPath(!0,!0))}function n1(e,t){return yt(e,i=>({set(s){this.__setAttr(i,s),this.leaferIsReady?t?gt.setStyleName(this,t,s):gt.set(this,s):this.__layout.stateStyleChanged=!0}}))}function $i(e){return yt(e,t=>({set(i){this.__setAttr(t,i),this.__layout.stateStyleChanged=!0}}))}function _o(e,t){if(t&&t!==!0)return t;if(!e.button){let{parent:i}=e;for(let s=0;s<2;s++)if(i){if(i.button)return i;i=i.parent}}return null}function Fc(e,t){O(t)||(t=void 0),h2(e,t,"in")}function Mc(e,t){const{normalStyle:i}=e;O(t)||(t=void 0),i&&(t||(t=i),h2(e,t,"out"))}C.addAttr("motionPath",void 0,a0),C.addAttr("motionPrecision",1,a0),C.addAttr("motion",void 0,a0),C.addAttr("motionAround",void 0,a0),C.addAttr("motionVertical","below",a0),C.addAttr("motionRotation",!0,a0),Zs.getMotionPath=function(){return s1(this)},Zs.getMotionPathData=function(){return z1(s1(this))},Zs.getMotionPoint=function(e,t,i=0,s=0,n){n||(n=s1(this));const r=z1(n);if(!r.total)return{};const o=ss.getDistancePoint(r,e,n.motionPrecision,i),{motionRotation:a}=this;return it(a)&&(o.rotation+=a),t&&t!=="top-left"&&(qt.toPoint(t,this.__layout.boxBounds,W0),A.set(W
650,o.x-W0.x*this.scaleX,o.y-W0.y*this.scaleY),o.rotation&&A.rotate(W0,o.rotation,o),A.copy(o,W0)),s&&Op(o,o.rotation,s),K.toOuterPoint(n.localTransform,o),o},Zs.getMotionTotal=function(){return this.getMotionPathData().total},Zs.__updateMotionPath=function(){const e=this.__;if(this.__layout.resized&&e.__pathForMotion&&(e.__pathForMotion=void 0),this.motionPath){let t;const{children:i}=this.parent;for(let s=0;s<i.length;s++)t=i[s],Nt(t.motion)||t.__layout.matrixChanged||(t!==this&&t.__extraUpdate(),j3(t))}else j3(this)};const U3={};function h2(e,t,i){const{normalStyle:s}=e;t||(t=U3),t.scale&&(ct.assignScale(t,t.scale),delete t.scale),t!==U3&>.canAnimate||(i=null);let n=!!i&&(function(a,l,h){let c=a==="in"?"transition":"transitionOut";return a==="out"&&Nt(h[c])&&Nt(l[c])&&(c="transition"),Nt(l[c])?h[c]:l[c]})(i,t,e);const r=n?(function(a,l){const h=V3(l,a),c=a.animate();return c&&V3(h,a,c.fromStyle),h})(e,t):void 0;gt.canAnimate&&H1(e)&&e.killAnimate("transition"),s&&e.set(s,"temp");const o=H1(e);if(o){const{animation:a}=o;if(a){const l=e.animate(a,void 0,"animation",!0);Object.assign(o,l.endingStyle),i!=="in"||t.animation!==a?l.kill():n=!1,delete o.animation}e.normalStyle=N1(o,e),e.set(o,"temp")}else e.normalStyle=void 0;if(n){const a=N1(r,e);e.set(r,"temp"),e.animate([r,a],n,"transition",!0)}e.__layout.stateStyleChanged=!1}function H1(e){let t;const i={},s=_o(e),n=s?e.state||s.state:e.state,r=n&&e.states[n];r&>.isState(n,e,s)&&(t=Ji(i,r));const o=i.selectedStyle||e.selectedStyle;o&>.isSelected(e,s)&&(t=Ji(i,o));const a=i.placeholderStyle||e.placeholderStyle;if(a&>.isPlacehold(e,s)&&(t=Ji(i,a)),gt.isDisabled(e,s)){const l=i.disabledStyle||e.disabledStyle;l&&(t=Ji(i,l))}else{const l=i.focusStyle||e.focusStyle;l&>.isFocus(e,s)&&(t=Ji(i,l));const h=i.hoverStyle||e.hoverStyle;h&>.isHover(e,s)&&(t=Ji(i,h));const c=i.pressStyle||e.pressStyle;c&>.isPress(e,s)&&(t=Ji(i,c))}return t?i:void 0}function N1(e,t,i,s){const n=i?e:{},r=i||e;for(let o in r)s&>.animateExcludes[o]||(n[o]=t[o]);return n}function V3(e,t,i){return N1(e,t,i,!0)}function Ji(e,t){return Object.assign(e,t),!0}function ro(e,t){const i=e[t];i&&Fc(e,i),e.button&&c2(e.children,t)}function X1(e,t,i){i||(i=e.states[t]),Fc(e,i),e.button&&c2(e.children,null,t)}function c2(e,t,i){if(!e)return;let s,n;for(let r=0,o=e.length;r<o;r++){if(s=e[r],t){switch(n=!0,t){case"hoverStyle":gt.isHover(s)&&(n=!1);break;case"pressStyle":gt.isPress(s)&&(n=!1);break;case"focusStyle":gt.isFocus(s)&&(n=!1)}n&&ro(s,t)}else M(i)||X1(s,i);s.isBranch&&c2(s.children,t,i)}}function oo(e,t){const i=e[t];i&&Mc(e,i),e.button&&d2(e.children,t)}function Y1(e,t,i){Mc(e,i),e.button&&d2(e.children,null,t)}function d2(e,t,i){if(!e)return;let s;for(let n=0,r=e.length;n<r;n++)s=e[n],t?oo(s,t):M(i)||Y1(s,i),s.isBranch&&d2(s.children,t,i)}function Rr(e,t,i){let s;const n=t.leafer?t.leafer.interaction:null;if(n&&(s=n[e](t),!s&&i)){const r=_o(t,i);r&&(s=n[e](r))}return s}function G3(e,t,i){let s=t[e];if(!s&&i){const n=_o(t,i);n&&(s=n[e])}return s}nt.add("state"),gt.animateExcludes={animation:1,animationOut:1,transition:1,transitionOut:1,states:1,state:1,placeholder:1,normalStyle:1,hoverStyle:1,pressStyle:1,focusStyle:1,selectedStyle:1,disabledStyle:1,placeholderStyle:1},gt.isState=function(e,t,i){return(function(s,n,r){let o=n.states[s];if(!o&&r){const a=_o(n,r);a&&(o=a.states[s])}return!!o})(e,t,i)},gt.isSelected=function(e,t){return G3("selected",e,t)},gt.isDisabled=function(e,t){return G3("disabled",e,t)},gt.isFocus=function(e,t){return Rr("isFocus",e,t)},gt.isHover=function(e,t){return Rr("isHover",e,t)},gt.isPress=function(e,t){return Rr("isPress",e,t)},gt.isPlacehold=function(e,t){return e.__.__isPlacehold},gt.isDrag=function(e,t){return Rr("isDrag",e,t)},gt.setStyleName=function(e,t,i){i?X1(e,t,e[t]):Y1(e,t,e[t])},gt.set=function(e,t){const i=e.states[t];i?X1(e,t,i):Y1(e,t,i)},gt.getStyle=H1,gt.updateStyle=h2,gt.updateEventStyle=function(e,t){switch(t){case W.ENTER:ro(e,"hoverStyle");break;case W.LEAVE:oo(e,"hoverStyle");break;case W.DOWN:ro(e,"pressStyle");break;case W.UP:oo(e,"pressStyle")}};const r1=C.prototype;C.addAttr("selected",!1,n1,"selectedStyle"),C.addAttr("disabled",!1,n1,"disabledStyle"),C.addAttr("states",{},$i),C.addAttr("state","",n1),C.addAttr("normalStyle",void 0,mt),C.addAttr("hoverStyle",void 0,$i),C.addAttr("pressStyle",void 0,$i),C.addAttr("focusStyle",void 0,$i),C.addAttr("selectedStyle",void 0,$i),C.addAttr("disabledStyle",void 0,$i),C.addAttr("placeholderStyle",void 0,$i),C.addAttr("button",!1,mt),r1.set=function(e,t){e&&(t?t==="temp"?(this.lockNormalStyle=!0,Object.assign(this,e),this.lockNormalStyle=!1):this.animate(e,t):Object.assign(this,e))},r1.focus=function(e=!0){this.waitLeafer(()=>{let{focusData:t}=this.app.interaction;e?(t&&t.focus(!1),t=this):t=null,this.app.interaction.focusData=t,e?ro(this,"focusStyle"):oo(this,"focusStyle")}
65)},r1.updateState=function(){gt.updateStyle(this,void 0,"in")};const q3=j.prototype,o1="text";fe(q3,o1,Object.assign(Object.assign({},Z1(q3,o1)),{set(e){const t=this,i=t.text;t.__setAttr(o1,e)&&(_e(t),t.placeholderStyle&&t.placeholder&&(i===""||e==="")&&(t.__layout.stateStyleChanged=!0))}}));class Ip extends Ye{get __isCanvas(){return!0}get __drawAfterFill(){return!0}get __boxStroke(){return!this.__pathInputed}setRobot(t){this._robot=t,this.__leaf.__updateRobot()}setAction(t){this._action=t,this.__leaf.__updateAction()}}let qe=class extends C{get __tag(){return"Robot"}get nowFrame(){return this.robotFrames&&this.robotFrames[this.now]}constructor(e){super(e)}togglePlay(){this.running?this.pause():this.play()}play(){this.running=!0}pause(){this.running=!1}stop(){this.pause()}__updateRobot(){const{robot:e}=this;if(this.robotFrames=[],!e)return;let t=0;et(e)?e.forEach(i=>this.__loadRobot(i,t,t+=i.total||1)):this.__loadRobot(e,0,e.total)}__updateAction(){const e=this.actions[this.action];if(this.stop(),this.__timer&&clearTimeout(this.__timer),!M(e)){if(it(e))this.now=e;else if(O(e)){const t=et(e),i=t?e:e.keyframes;this.__action=t?void 0:e;const{length:s}=i;if(s>1){const n=this.now=i[0],r=i[i.length-1];this.play(),this.__runAction(n,r)}else s&&(this.now=i[0])}}}__loadRobot(e,t,i){for(let n=t;n<i;n++)this.robotFrames.push(void 0);const s=Le.get(e);s.ready?this.__createFrames(s,e,t,i):s.load(()=>this.__createFrames(s,e,t,i))}__createFrames(e,t,i,s){const{offset:n,size:r,total:o}=t,{width:a,height:l}=r&&(it(r)?{width:r,height:r}:r)||(o>1?this:e);let h=n?n.x:0,c=n?n.y:0;for(let d=i;d<s;d++)this.robotFrames[d]={view:e.view,x:h,y:c,width:a,height:l},h+a>=e.width?(h=0,c+=l):h+=a;this.__updateRobotBounds(),this.forceRender(),this.emitEvent(new He(He.LOADED,{image:e}))}__runAction(e,t){let{FPS:i,loop:s,__action:n}=this;n&&(n.FPS&&(i=n.FPS),M(n.loop)||(s=n.loop)),this.__timer=setTimeout(()=>{if(this.running){if(this.now===t){if(!s)return this.stop();this.now=e}else this.now++;this.__updateRobotBounds()}this.__runAction(e,t)},1e3/i)}__updateRobotBounds(){const{nowFrame:e}=this;if(e){const t=this.__,i=e.width/t.pixelRatio,s=e.height/t.pixelRatio;t.width===i&&t.height===s||this.forceUpdate(),t.__naturalWidth=i,t.__naturalHeight=s}}__drawContent(e,t){const{nowFrame:i}=this,{width:s,height:n}=this.__;i&&e.drawImage(i.view,i.x,i.y,i.width,i.height,0,0,s,n)}destroy(){this.robotFrames&&(this.robotFrames=null),super.destroy()}};f([Et(Ip)],qe.prototype,"__",void 0),f([tt()],qe.prototype,"robot",void 0),f([mt()],qe.prototype,"actions",void 0),f([mt("")],qe.prototype,"action",void 0),f([We(0)],qe.prototype,"now",void 0),f([mt(12)],qe.prototype,"FPS",void 0),f([mt(!0)],qe.prototype,"loop",void 0),qe=f([Tt()],qe),nt.add("robot");const{Yes:Wp,NoAndSkip:zp,YesAndSkip:Hp}=u1,K3={},Z3={},$3={};class Np{constructor(t,i){this.methods={id:(n,r)=>n.id===r?(this.target&&(this.idMap[r]=n),1):0,innerId:(n,r)=>n.innerId===r?(this.target&&(this.innerIdMap[r]=n),1):0,className:(n,r)=>n.className===r?1:0,tag:(n,r)=>n.__tag===r?1:0,tags:(n,r)=>r[n.__tag]?1:0},this.idMap={},this.innerIdMap={};const s=t&&t.app;s&&(s.idMap?this.idMap=s.idMap:s.idMap=this.idMap,s.innerIdMap?this.innerIdMap=s.innerIdMap:s.innerIdMap=this.innerIdMap),(this.target=t)&&this.__listenEvents()}getBy(t,i,s,n){switch(typeof t){case"number":const r=this.getByInnerId(t,i);return s?r:r?[r]:[];case"string":switch(t[0]){case"#":K3.id=t.substring(1),t=K3;break;
65case".":Z3.className=t.substring(1),t=Z3;break;default:$3.tag=t,t=$3}case"object":if(M(t.id)){if(t.tag){const{tag:o}=t,a=et(o);return this.getByMethod(a?this.methods.tags:this.methods.tag,i,s,a?q.toMap(o):o)}return this.getByMethod(this.methods.className,i,s,t.className)}{const o=this.getById(t.id,i);return s?o:o?[o]:[]}case"function":return this.getByMethod(t,i,s,n)}}getByInnerId(t,i){return this.innerIdMap[t]||(this.eachFind(this.toChildren(i),this.methods.innerId,null,t),this.findLeaf)}getById(t,i){const s=this.idMap[t];return s&&$.hasParent(s,i||this.target)?s:(this.eachFind(this.toChildren(i),this.methods.id,null,t),this.findLeaf)}getByClassName(t,i){return this.getByMethod(this.methods.className,i,!1,t)}getByTag(t,i){return this.getByMethod(this.methods.tag,i,!1,t)}getByMethod(t,i,s,n){const r=s?null:[];return this.eachFind(this.toChildren(i),t,r,n),r||this.findLeaf}eachFind(t,i,s,n){let r,o;for(let a=0,l=t.length;a<l;a++){if(r=t[a],o=i(r,n),typeof o=="boolean"&&(o=o?1:0),o===Wp||o===Hp){if(!s)return void(this.findLeaf=r);s.push(r)}r.isBranch&&o<zp&&this.eachFind(r.children,i,s,n)}}toChildren(t){return this.findLeaf=null,[t||this.target]}__onRemoveChild(t){const{id:i,innerId:s}=t.child;this.idMap[i]&&delete this.idMap[i],this.innerIdMap[s]&&delete this.innerIdMap[s]}__checkIdChange(t){if(t.attrName==="id"){const i=t.oldValue;this.idMap[i]&&delete this.idMap[i]}}__listenEvents(){this.__eventIds=[this.target.on_(Mt.REMOVE,this.__onRemoveChild,this),this.target.on_(ze.CHANGE,this.__checkIdChange,this)]}__removeListenEvents(){this.target.off_(this.__eventIds),this.__eventIds.length=0}destroy(){const{__eventIds:t}=this;t&&t.length&&(this.__removeListenEvents(),this.innerIdMap={},this.idMap={}),this.findLeaf=null}}const J3=C.prototype;function Q3(e){return e.leafer?e.leafer.selector:L.selector||(L.selector=bt.selector())}J3.find=function(e,t){return Q3(this).getBy(e,this,!1,t)},J3.findOne=function(e,t){return Q3(this).getBy(e,this,!0,t)},nt.add("find"),bt.finder=function(e,t){return new Np(e,t)},$.cacheId=function(e){const{leafer:t,id:i}=e;i&&(t.app.idMap[i]=e),t.cacheInnerId&&(t.app.innerIdMap[e.innerId]=e)};const{setPoint:Xp,addPoint:Yp,toBounds:jp}=dn,Up={syncExport(e,t,i){let s;Ei.running=!0;try{const n=Te.fileType(t),r=t.includes(".");i=Te.getExportOptions(i);const{toURL:o}=L,{download:a}=L.origin;if(n==="json")r&&a(o(JSON.stringify(e.toJSON(i.json)),"text"),t),s={data:!!r||e.toJSON(i.json)};else if(n==="svg")r&&a(o(e.toSVG(),"svg"),t),s={data:!!r||e.toSVG()};else{let l,h,c=1,d=1;const{worldTransform:g,isLeafer:u,leafer:p,isFrame:_}=e,{slice:y,clip:x,trim:m,screenshot:w,padding:v,onCanvas:b}=i,B=M(i.smooth)?!p||p.config.smooth:i.smooth,S=i.contextSettings||(p?p.config.contextSettings:void 0),R=u&&w&&M(i.fill)?e.fill:i.fill,X=Te.isOpaqueImage(t)||R,z=new $t;if(w)l=w===!0?u?p.canvas.bounds:e.worldRenderBounds:w;else{let Re=i.relative||(u?"inner":"local");switch(c=g.scaleX,d=g.scaleY,Re){case"inner":z.set(g);break;case"local":z.set(g).divide(e.localTransform),c/=e.scaleX,d/=e.scaleY;break;case"world":c=1,d=1;break;case"page":Re=p||e;default:z.set(g).divide(e.getTransform(Re));const f0=Re.worldTransform;c/=c/f0.scaleX,d/=d/f0.scaleY}l=e.getBounds("render",Re)}const T={scaleX:1,scaleY:1};ct.getScaleData(i.scale,i.size,l,T);let H=i.pixelRatio||1,{x:E,y:D,width:N,height:U}=new rt(l).scale(T.scaleX,T.scaleY);x&&(E+=x.x,D+=x.y,N=x.width,U=x.height,x.rotation&&z.rotateOfInner({x:E,y:D},-x.rotation));const Z={exporting:!0,matrix:z.scale(1/T.scaleX,1/T.scaleY).invert().translate(-E,-D).withScale(1/c*T.scaleX,1/d*T.scaleY)};let at,Q=bt.canvas({width:Math.floor(N),height:Math.floor(U),pixelRatio:H,smooth:B,contextSettings:S});y&&(at=e,at.__worldOpacity=0,e=p||e,Z.bounds=Q.bounds),Q.save();const ye=_&&!M(R),Jt=e.get("fill");if(ye&&(e.fill=""),L.render(e,Q,Z),ye&&(e.fill=Jt),Q.restore(),at&&at.__updateWorldOpacity(),m){h=(function(pi){const{width:_0,height:mn}=pi.view,{data:g2}=pi.context.getImageData(0,0,_0,mn);let wn,xo,gs,mo=0;for(let vo=0;vo<g2.length;vo+=4)g2[vo+3]!==0&&(wn=mo%_0,xo=(mo-wn)/_0,gs?Yp(gs,wn,xo):Xp(gs={},wn,xo)),mo++;const wo=new rt;return gs&&(jp(gs,wo),wo.scale(1/pi.pixelRatio).ceil()),wo})(Q);const Re=Q,{width:f0,height:yo}=h,us={x:0,y:0,width:f0,height:yo,pixelRatio:H};
65Q=bt.canvas(us),Q.copyWorld(Re,h,us),Re.destroy()}if(v){const[Re,f0,yo,us]=ct.fourNumber(v),pi=Q,{width:_0,height:mn}=pi;Q=bt.canvas({width:_0+us+f0,height:mn+Re+yo,pixelRatio:H}),Q.copyWorld(pi,pi.bounds,{x:us,y:Re,width:_0,height:mn}),pi.destroy()}X&&Q.fillWorld(Q.bounds,R||"#FFFFFF","destination-over"),b&&b(Q),s={data:t==="canvas"?Q:Q.export(t,i),width:Q.pixelWidth,height:Q.pixelHeight,renderBounds:l,trimBounds:h};const ti=p&&p.app;ti&&ti.canvasManager&&ti.canvasManager.clearRecycled()}}catch(n){s={data:"",error:n}}return Ei.running=!1,s},export(e,t,i){return Ei.running=!0,(function(s){return a1||(a1=new _1),new Promise(n=>{a1.add(()=>u0(this,void 0,void 0,function*(){return yield s(n)}),{parallel:!1})})})(s=>new Promise(n=>{const r=()=>u0(this,void 0,void 0,function*(){if(!hi.isComplete)return L.requestRender(r);const a=Ei.syncExport(e,t,i);a.data instanceof Promise&&(a.data=yield a.data),s(a),n()});e.updateLayout(),Dc(e);const{leafer:o}=e;o?o.waitViewCompleted(r):r()}))}};let a1;function Dc(e){e.__.__needComputePaint&&e.__.__computePaint(),e.isBranch&&e.children.forEach(t=>Dc(t))}const Pr=q1.prototype,t5=ot.get("@leafer-in/export");Pr.export=function(e,t){const{quality:i,blob:s}=Te.getExportOptions(t);return e.includes(".")?this.saveAs(e,i):s?this.toBlob(e,i):this.toDataURL(e,i)},Pr.toBlob=function(e,t){return new Promise(i=>{L.origin.canvasToBolb(this.view,e,t).then(s=>{i(s)}).catch(s=>{t5.error(s),i(null)})})},Pr.toDataURL=function(e,t){return L.origin.canvasToDataURL(this.view,e,t)},Pr.saveAs=function(e,t){return new Promise(i=>{L.origin.canvasSaveAs(this.view,e,t).then(()=>{i(!0)}).catch(s=>{t5.error(s),i(!1)})})},nt.add("export"),Object.assign(Ei,Up),C.prototype.export=function(e,t){return Ei.export(this,e,t)},C.prototype.syncExport=function(e,t){return Ei.syncExport(this,e,t)},nt.add("filter"),Object.assign(U0,{list:{},register(e,t){U0.list[e]=t},apply(e,t,i,s,n,r){let o;e.forEach(a=>{o=U0.list[a.type],o&&o.apply(a,t,i,s,n,r)})},getSpread(e){let t,i=0;return e.forEach(s=>{t=U0.list[s.type],t&&(i+=t.getSpread(s))}),i}}),nt.add("bright"),C.addAttr("bright",!1,y1);const Vp={theme:"light",style:{dragBoundsType:"outer",strokeAlign:"center",strokeScaleFixed:"zoom-in",width:6,height:6,opacity:.5,cornerRadius:3,hoverStyle:{opacity:.6},pressStyle:{opacity:.66}},size:6,endsMargin:2,sideMargin:2,minSize:10,scaleFixed:"zoom-in",scrollType:"both",hideOnActionEnd:"hover"},Gp=new rt,{float:Fr}=ct,{clone:e5,assign:i5}=q;class rn extends ht{get canUse(){return this.target.hasScroller}constructor(t){super(),this.targetWorldBounds=new rt,this.viewportBounds=new rt,this.contentBounds=new rt,this.scrollXBounds=new rt,this.scrollYBounds=new rt,this.target=t,this.config=e5(Vp),this.updateConfig(),this.__listenEvents(),t.waitLeafer(()=>{this.parent=t,this.__bindLeafer(t.leafer)}),this.mergedConfig.hideOnActionEnd&&(this.opacity=0)}static registerTheme(t,i){$s.themeMap[t]=i}static getTheme(t){return t&&$s.themeMap[t]}static hasTheme(t){return t&&!!$s.themeMap[t]}updateConfig(){const{scrollConfig:t}=this.target,i=$s.getTheme(t&&$s.hasTheme(t.theme)&&t.theme||this.config.theme),s=this.mergedConfig=e5(this.config);i5(s,i),t&&i5(s,t),this.updateStyle(s.style)}updateStyle(t){this.scrollXBar||this.addMany(this.scrollXBar=new k,this.scrollYBar=new k);const{scrollXBar:i,scrollYBar:s}=this;i.set(t),s.set(t),i.draggable="x",s.draggable="y"}update(t=!0){if(this.dragScrolling)return;const{target:i,targetOverflow:s,targetWorldBounds:n,viewportBounds:r,contentBounds:o}=this,a=i.__layout,{overflow:l}=i.__,{childrenRenderBounds:h}=a,{boxBounds:c,worldBoxBounds:d}=a,g=t&&s===l&&n.isSame(d),u=!a.scrollConfigChanged||(this.updateConfig(),a.scrollConfigChanged=!1),p=Gp.set(r).add(h);if(g&&u&&o.isSame(p))return;this.targetOverflow=l,r.set(c),n.set(d),o.set(p);const{scrollXBar:_,scrollYBar:y}=this,{size:x,endsMargin:m,minSize:w}=this.mergedConfig,{width:v,height:b}=r;this.contentRealX=o.x-i.scrollX,this.contentRealY=o.y-i.scrollY,this.ratioX=r.width/o.width,this.ratioY=r.height/o.height;const B=x+2*m+w;_.visible=Fr(o.width)>Fr(v)&&l!=="y-scroll"&&v>B,y.visible=Fr(o.height)>Fr(b)&&l!=="x-scroll"&&b>B,this.updateScrollBar()}updateScrollBar(){const{target:t,viewportBounds:i,contentBounds:s,ratioX:n,ratioY:r,scrollXBar:o,scrollYBar:a,scrollXBounds:l,scrollYBounds:h}=this;let{size:c,cornerRadius:d,endsMargin:g,sideMargin:u,minSize:p,scaleFixed:_,scrollType:y}=this.mergedConfig;const x=_?t.getClampRenderScale():1;if(g/=x,u/=x,c/=x,M(d)&&(d=c/2),o.visible){l.set(i).shrink([g,a.visible?c+u:g,u,g]);const m=this.scrollRatioX=l.width/s.width;o.set({x:l.x-s.x*m,y:l.maxY-c,width:Math.max(l.width*n,p),height:c,cornerRadius:d,dragBounds:l,hittable:y!=="move"})}if(a.visible){h.set(i).shrink([g,u,o.visible?c+u:g,g]);const m=this.scrollRatioY=h.height/s.height;a.set({x:h.maxX-c,y:h.y-s.y*m,width:c,height:Math.max(h.height*r,p),cornerRadius:d,dragBounds:h,hittable:y!=="move"})}this.x=-this.target.scrollX,this.y=-this.target.scrollY,$.updateAllMatrix(this),Di.updateBounds(this),$.updateAllChange(this)}onDrag(t){if(this.mergedConfig.scrollType==="move")return;this.dragScrolling=!0;const{scrollXBar:i,scrollYBar:s,target:n,scrollXBounds:r,scrollYBounds:o}=this;t.current===i?n.scrollX=-((i.x-r.x)/this.scrollRatioX+this.contentRealX):n.scrollY=-((s.y-o.y)/this.scrollRatioY+this.contentRealY)}onDragEnd(){this.mergedConfig.scrollType!=="move"&&(this.dragScrolling=!1)}onMove(t){if(!this.canUse)return;this.onEnter();const{scrollType:i,stopDefault:s}=this.mergedConfig;if(i==="drag")return;const{viewportBounds:n,contentBounds:r,scrollXBar:o,scrollYBar:a}=this;if(o.visible||a.visible){const l=t.getInnerMove(this.target);let h;as.getValidMove(r,n,"inner",l,!0),l.x&&o.visible&&(this.target.scrollX+=l.x,h=!0),l.y&&a.visible&&(this.target.scrollY+=l.y,h=!0),(h||s)&&t.stop(),s&&t.stopDefault()}}onMoveEnd(t){this.canUse&&(this.target.hit(t)||this.onLeave())}onEnter(){this.canUse&&(clearTimeout(this.hideTimer),this.killAnimate(),this.opacity=1)}onLeave(){this.canUse&&(clearTimeout(this.hideTimer),this.mergedConfig.hideOnActionEnd&&(this.hideTimer=setTimeout(()=>{this.set({opacity:0}
65,nt.has("animate"))},600)))}onResize(){this.canUse&&this.update()}__listenEvents(){const{scrollXBar:t,scrollYBar:i,target:s}=this;this.__eventIds=[t.on_(G.DRAG,this.onDrag,this),t.on_(G.END,this.onDragEnd,this),i.on_(G.DRAG,this.onDrag,this),i.on_(G.END,this.onDragEnd,this),s.on_(W.ENTER,this.onEnter,this),s.on_(W.LEAVE,this.onLeave,this),s.on_(ft.BEFORE_MOVE,this.onMove,this),s.on_(ft.END,this.onMoveEnd,this),s.on_(Ae.WORLD,this.onResize,this),s.on_(Mt.DESTROY,this.destroy,this)]}__removeListenEvents(){this.off_(this.__eventIds)}destroy(){if(!this.destroyed){this.__removeListenEvents();const{target:t}=this;t.scroller=t.topChildren=t.hasScroller=void 0,this.target=this.config=null,super.destroy()}}}rn.themeMap={};const $s=rn;nt.add("scroller");const qp=k.prototype;k.addAttr("scrollConfig",void 0,function(e){return yt(e,t=>({set(i){this.__setAttr(t,i)&&(this.__layout.scrollConfigChanged=!0,_e(this))}}))}),qp.__checkScroll=function(e){e&&this.isOverflow?(this.scroller||(this.scroller=new rn(this),this.topChildren||(this.topChildren=[]),this.topChildren.push(this.scroller)),this.hasScroller=!0):this.hasScroller&&!this.scroller.dragScrolling&&(this.hasScroller=void 0,this.scroller.update())},rn.registerTheme("light",{style:{fill:"black"}}),rn.registerTheme("dark",{style:{fill:"white"}});const{stintSet:s5}=q,{scale:Kp}=K,{copyAndSpread:Zp}=P,{getScaleFixedData:$p}=ct;$.updateScaleFixedWorld=function(e){const{__world:t,__:i}=e,{scaleX:s,scaleY:n}=$p(t,i.scaleFixed);s!==1&&(Kp(t,s,n),t.scaleX*=s,t.scaleY*=n)},$.updateOuterBounds=function(e){const t=e.__layout,{localRenderBounds:i}=t,s=t.localOuterBounds||(t.localOuterBounds={}),{width:n,height:r}=i,o=t.outerScale-1;Zp(s,i,[r*o,n*o]),e.parent&&e.parent.__layout.renderChange()},nt.add("scale-fixed"),C.addAttr("scaleFixed",void 0,function(e){return yt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__layout;_e(this),it(i)||(i=i?1:0),s5(s,"scaleFixed",i),s5(s,"outerScale",i?1/i:0),!s.outerScale&&s.localOuterBounds&&(s.localOuterBounds=void 0)}}}))});class Jp extends gi{}const Qp=Bt.prototype;let Qi=class extends k{get __tag(){return"EllipseBox"}__updatePath(){}};f([Et(Jp)],Qi.prototype,"__",void 0),f([St(0)],Qi.prototype,"innerRadius",void 0),f([St(0)],Qi.prototype,"startAngle",void 0),f([St(0)],Qi.prototype,"endAngle",void 0),f([Me(Qp.__updatePath)],Qi.prototype,"__updatePath",null),Qi=f([p0(),Tt()],Qi);class tf extends gi{get __usePathBox(){return this.points||this.__pathInputed}}const ef=Ee.prototype;let t0=class extends k{get __tag(){return"PolygonBox"}__updatePath(){}};f([Et(tf)],t0.prototype,"__",void 0),f([St(3)],t0.prototype,"sides",void 0),f([St()],t0.prototype,"points",void 0),f([St(0)],t0.prototype,"curve",void 0),f([Me(ef.__updatePath)],t0.prototype,"__updatePath",null),t0=f([p0(),Tt()],t0);class sf extends gi{}const nf=Si.prototype;let z0=class extends k{get __tag(){return"StarBox"}__updatePath(){}};f([St(5)],z0.prototype,"corners",void 0),f([St(.382)],z0.prototype,"innerRadius",void 0),f([Et(sf)],z0.prototype,"__",void 0),f([Me(nf.__updatePath)],z0.prototype,"__updatePath",null),z0=f([p0(),Tt()],z0);class rf extends gi{}let Mr=class extends k{get __tag(){return"PathBox"}};f([Et(rf)],Mr.prototype,"__",void 0),f([pn("center")],Mr.prototype,"strokeAlign",void 0),Mr=f([Tt()],Mr);class of extends gi{get __urlType(){return"image"}setUrl(t){this.__setImageFill(t),this._url=t}__setImageFill(t){this.fill=t?{type:this.__urlType,mode:"stretch",url:t}:void 0}__getData(){const t=super.__getData();return t.url&&delete t.fill,t}__getInputData(t,i){const s=super.__getInputData(t,i);return s.url&&delete s.fill,s}}let Dr=class extends k{get __tag(){return"ImageBox"}get ready(){const{image:e}=this;return e&&e.ready}get image(){const{fill:e}=this.__;return et(e)&&e[0].image}get __useSelfBox(){return!0}};function Oc(e,t,i,s,n,r,o){const a=s-t,l=n-i,h=r-t,c=o-i,d=Math.sqrt(a*a+l*l),g=Math.sqrt(h*h+c*c);if(d<.001||g<.001)return 0;const u=(a*h+l*c)/(d*g),p=Math.max(-.99999,Math.min(.99999,u));let _=e*Math.sqrt((1-p)/(1+p));const y=Math.min(d/2,g/2);return Math.min(_,y)}function Ic(e,t,i,s,n,r,o,a,l){if(e<=0)return 0;const h=Math.sqrt(Math.pow(a-t,2)+Math.pow(l-i,2));if(e>=h)return .5;const c=3*(s-t),d=3*(n-i);let g=Math.sqrt(c*c+d*d);g<1e-6&&(g=h||1);let u=Math.min(.5,e/g);const p={x:0,y:0};for(let _=0;_<5;_++){pe.getPointAndSet(u,t,i,s,n,r,o,a,l,p);const y=p.x-t,x=p.y-i,m=Math.sqrt(y*y+x*x);if(m<1e-6){u*=1.5;continue}const w=(y*pe.getDerivative(u,t,s,r,a)+x*pe.getDerivative(u,i,n,o,l))/m;if(Math.abs(w)<1e-6)break;const v=u-(m-e)/w,b=Math.max(0,Math.min(.6,v));if(Math.abs(b-u)<1e-5){u=b;break}u=b}return Math.max(0,Math.min(.5,u))}f([Et(of)],Dr.prototype,"__",void 0),f([tt("")],Dr.prototype,"url",void 0),Dr=f([Tt()],Dr),nt.add("box");const{M:ki,L:Bi,C:Ze,Z:l0}=Yt,{abs:af}=Math,{getCenterX:lf,getCenterY:hf}=A,{arcTo:en}=Gt;function cf(e,t){let i,s,n,r;const o=e.length;for(;t<o;)switch(i=e[t],i){case ki:return;case Bi:n=e[t+1],r=e[t+2],t+=3;break;case Ze:n=e[t+5],r=e[t+6],t+=7;break;case l0:return{x:n,y:r};default:s=gn[i],t+=s}}function n5(e,t,i,s,n,r,o,a,l,h,c,d,g){let u=a,p=l;Ai(a,r)&&Ai(l,o)&&(u=h,p=c,Ai(h,r)&&Ai(c,o)&&(u=d,p=g));const _=Ic(Oc(i,r,o,s,n,u,p),r,o,a,l,h,c,d,g),y=pe.cut(_,r,o,a,l,h,c,d,g),{left:x,right:m}=y;return x&&m&&(e[t+1]=m[0],e[t+2]=m[1],e[t+3]=m[2],e[t+4]=m[3]),y}function r5(e,t,i,s,n,r,o,a,l,h,c,d,g){let u=o,p=a;Ai(u,l)&&Ai(p,h)&&(u=n,p=r,Ai(u,l)&&Ai(p,h)&&(u=i,p=s));const _=Ic(Oc(t,l,h,u,p,c,d),l,h,o,a,n,r,i,s),{left:y,right:x}=pe.cut(1-_,i,s,n,r,o,a,l,h);y&&x?(e.push(Ze,y[0],y[1],y[2],y[3],y[4],y[5]),en(e,l,h,c,d,t,y[4],y[5],g)):e.push(Ze,n,r,o,a,l,h)}function Ai(e,t){return af(e-t)<.01}q4.smooth=function(e,t,i){const s=e.radius;let n,r,o;e=(function(H){let E,D=0;const N=H.length;for(;D<N;)switch(E=H[D],E){case ki:case Bi:D+=3;break;case Ze:D+=7;break;case l0:D+=1;break;default:return!0}return!1})(e)?Mi.toCanvasData(e,!0):[...e];let a,l,h,c,d,g,u,p=0,_=0,y=0,x=0,m=0,w=0,v=0,b=0,B=0,S=0,R=0;et(t)&&(t=t[0]||0);const X=e.length,z=X===9,T=[];for(;p<X;){switch(n=e[p],a=s?M(s[_])?t:s[_]:t,n){case ki:m=S=e[p+1],w=R=e[p+2],v=a,p+=3;const H=cf(e,p);switch(e[p]){case Bi:b=e[p+1],B=e[p+2],z?T.push(ki,m,w):H?T.push(ki,lf(m,b),hf(w,B)):T.push(ki,m,w);break;case Ze:if(H){const{left:E,right:D}=n5(e,p,a,H.x,H.y,m,w,e[p+1],e[p+2],e[p+3],e[p+4],e[p+5],e[p+6]);if(E&&D){T.push(ki,b=E[4],B=E[5]);break}}default:T.push(ki,b=m,B=w)}break;case Bi:switch(y=e[p+1],x=e[p+2],p+=3,e[p]){case Bi:en(T,y,x,e[p+1],e[p+2],a,S,R,z);break;case Ze:const{left:E,right:D}=n5(e,p,a,S,R,y,x,e[p+1],e[p+2],e[p+3],e[p+4],e[p+5],e[p+6]);E&&D?en(T,y,x,E[4],E[5],a,S,R,z):T.push(Bi,y,x);break;case l0:en(T,y,x,m,w,a,S,R,z);break;default:T.push(Bi,y,x)}S=y,R=x;break;case Ze:switch(l=e[p+1],h=e[p+2],c=e[p+3],d=e[p+4],y=e[p+5],x=e[p+6],p+=7,e[p]
65){case Bi:g=e[p+1],u=e[p+2],r5(T,a,S,R,l,h,c,d,y,x,g,u,z);break;case Ze:T.push(Ze,l,h,c,d,y,x);break;case l0:g=m,u=w,r5(T,a,S,R,l,h,c,d,y,x,g,u,z);break;default:T.push(Ze,l,h,c,d,y,x)}S=y,R=x;break;case l0:r!==l0&&(en(T,m,w,b,B,v,S,R,z),T.push(l0)),p+=1;break;default:o=gn[n];for(let E=0;E<o;E++)T.push(e[p+E]);p+=o}r=n,_++}return T},nt.add("corner"),nt.add("bg-runner");const j1={disabled:!1,maxFPS:60};let xn=[],l1=!1,h1=!1,hs=!1,Li=null;function u2(e){const t=xn.splice(0);for(const i of t)i(e)}function Wc(){l1||(l1=!0,window.requestAnimationFrame(e=>{l1=!1,u2(e),xn.length&&Wc()})),Li&&hs&&(Li.postMessage({action:"stop"}),hs=!1)}function zc(){Li?hs||(Li.postMessage({action:"start",interval:1e3/j1.maxFPS}),hs=!0):h1||(h1=!0,setTimeout(()=>{h1=!1,u2(performance.now()),xn.length&&zc()},1e3/j1.maxFPS))}function o5(){j1.disabled||!document.hidden?Wc():(Li||typeof Worker>"u"||(Li=new Worker(URL.createObjectURL(new Blob([` 66 let timerId = null 67 self.onmessage = e => { 68 if (e.data.action === 'start') { 69 if (!timerId) { 70 timerId = setInterval(() => postMessage(performance.now()), e.data.interval || 16) 71 } 72 } else if (e.data.action === 'stop') { 73 if (timerId) { 74 clearInterval(timerId) 75 timerId = null 76 } 77 } 78 } 79 `],{type:"application/javascript"}))),Li.onmessage=e=>{u2(e.data),!xn.length&&hs&&(Li.postMessage({action:"stop"}),hs=!1)}),zc())}document.addEventListener("visibilitychange",o5),L.requestRender=function(e){xn.push(e),o5()};class df extends Q1{get __usePathBox(){return this.path||this.__pathInputed}}const{directionData:a5}=qt,Or=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left","center"],Ur={getCtrlPoint(e,t,i,s,n,r){let o;switch(t&&(i=t.getBoxPoint(i,e)),s){case"left":case"top-left":case"bottom-left":o={x:i.x-n.x,y:i.y};break;case"top":o={x:i.x,y:i.y-n.y};break;case"right":case"top-right":case"bottom-right":o={x:i.x+n.x,y:i.y};break;case"bottom":o={x:i.x,y:i.y+n.y};break;default:o={x:i.x,y:i.y}}return r&&(r=r/180*Math.PI,o={x:(o.x-i.x)*Math.cos(r)-(o.y-i.y)*Math.sin(r)+i.x,y:(o.x-i.x)*Math.sin(r)+(o.y-i.y)*Math.cos(r)+i.y}),t&&t.getWorldPointByBox(o,e,void 0,!0),o},isOppositeDirection(e,t){switch(e){case"left":return t=="right";case"top":return t=="bottom";case"right":return t=="left";case"bottom":return t=="top";case"center":return t=="center";default:return!1}},getDirectionForFromPoint(e,t){const i=e.x-t.x,s=e.y-t.y;let n,r=180*Math.atan2(s,i)/Math.PI;return r<0&&(r=360+r),n=r>315||r<45?"left":r>45&&r<135?"top":r>135&&r<225?"right":"bottom",n},getRotateDirection(e,t,i=8){let s=g0[e];return s=(s+Math.round(t/(360/i)))%i,s<0&&(s+=i),Or[s]},getDirection:function(e,t,i){const{width:s,height:n}=t,r=P.getPoint(t,"center",!0),o=e.x-r.x,a=e.y-r.y;if(!i&&Math.abs(o)<s/4&&Math.abs(a)<n/4)return"center";const l=Math.abs(o)*n,h=Math.abs(a)*s;return l>h?o>0?"right":"left":a>0?"bottom":"top"},getPointDirection:function(e,t,i){const{width:s,height:n}=t,r=s/4,o=n/4;for(let a=0;a<a5.length;a++){const l=a5[a],h=l.x*s,c=l.y*n,d=e.x-h,g=e.y-c;if(Math.abs(d)<=r&&Math.abs(g)<=o&&(!i||Or[a]!=="center"))return Or[a]}},autoRotatePoint(e,t,i){const{rotation:s,scaleX:n,scaleY:r}=i,o=n*r<0;(s||o)&&A.rotate(e,o?-s:s,t)}};function l5(e){return yt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__layout;s.linkerChanged||(_e(this),fn(this),s.linkerChanged=!0)}}}))}const{moveTo:uf,bezierCurveTo:gf,drawPoints:pf}=Gt,{isEmpty:h5,getPoint:c5}=P,{getDistance:ff}=A,{getCtrlPoint:Ir,getDirectionForFromPoint:d5,isOppositeDirection:_f}=Ur,{max:e0,min:yf,abs:H0}=Math;let N0=class extends ce{get __tag(){return"Linker"}constructor(e){super(e),this.onStartNodeChange=this.onStartNodeChange.bind(this),this.onEndNodeChange=this.onEndNodeChange.bind(this)}__updatePath(){const e=this.__layout,{startNode:t,endNode:i}=this;e.linkerChanged&&(this.updateLinkerNode("start"),this.updateLinkerNode("end"),this.updateLinkerPoint("start"),this.updateLinkerPoint("end"),t!==this.startNode&&this.listenLinkerNode(this.startNode,t,"start"),i!==this.endNode&&this.listenLinkerNode(this.endNode,i,"end"),e.linkerChanged=!1),this.updateLinkerPath()}listenLinkerNode(e,t,i){if(t){t.off(Ae.WORLD,i==="end"?this.onEndNodeChange:this.onStartNodeChange);const s=i==="end"?t.endLinker:t.startLinker;if(s){const n=s.indexOf(this);n>-1&&s.splice(n,1)}}e&&(e.on(Ae.WORLD,i==="end"?this.onEndNodeChange:this.onStartNodeChange),(i==="end"?e.endLinker||(e.endLinker=[]):e.startLinker||(e.startLinker=[])).push(this))}onStartNodeChange(){this.onLinkerNodeChange("start")}onEndNodeChange(){this.onLinkerNodeChange("end")}onLinkerNodeChange(e){if(this.leaferIsCreated){const{layouter:s,zoomL
79ayer:n}=this.leafer;if(s.__updatedList.has(n))return;s.addExtra(this,!0)}const{startData:t,endData:i}=this;e=="start"?(this.updateLinkerPoint("start"),i&&i.auto&&this.updateLinkerPoint("end")):(t&&t.auto&&this.updateLinkerPoint("start"),this.updateLinkerPoint("end")),this.__layout.boxChange(),$.updateBounds(this)}updateLinkerNode(e){const{startPoint:t,endPoint:i}=this,s=e==="end"?i:t;if(s){const{id:n}=s,r=n&&(V(n)?this.app.findId(n):n);e==="end"?this.endNode=r:this.startNode=r}}getLinkerNodeCenter(e){const{startPoint:t,endPoint:i,startNode:s,endNode:n,startData:r,endData:o}=this,a=e==="end"?n:s,l=e==="end"?o||i:r||t;if(a){const{worldRenderBounds:h}=a;return h5(h)&&$.updateBounds(a),c5(a.worldRenderBounds,"center")}return l&&O(l.point)&&this.getWorldPointByLocal(l.point)}updateLinkerPoint(e){const{startPoint:t,endPoint:i}=this,s=e==="end"?i:t;if(s){const n={},{id:r,offset:o}=s;let{direction:a,point:l}=s;if(a==="center"||!a&&r&&!l){const d=this.getLinkerNodeCenter("start"),g=this.getLinkerNodeCenter("end"),u=e==="end"?g:d,p=e==="end"?d:g;u&&p&&(a=d5(u,p)),n.auto=!0}!a&&V(l)&&(a=l),n.direction=a;const h=e==="end"?this.endNode:this.startNode;let c;if(h){if(l||(l=a),l){const{boxBounds:d}=h;h5(d)&&$.updateBounds(h),c=c5(d,l,!0),h.getWorldPointByBox(c,this,!1,!0)}}else O(l)&&(c=l);if(c&&o){const d=Object.assign({},o);o.x||(d.x=0),o.y||(d.y=0),h&&h.getWorldPoint(d,this,!0,!0),A.move(c,d)}n.point=c,e==="end"?this.endData=c&&n:this.startData=c&&n}}updateLinkerPath(){const e=this.__,t=e.path=[],i=e.points&&e.points.length,{startData:s,endData:n,startNode:r,endNode:o}=this;if(!s||!n)return;const a=s.point,l=n.point,h=s.direction,c=n.direction,d={x:H0((a.x-l.x)/2),y:H0((a.y-l.y)/2)},g=8*this.__.strokeWidth;let u;if(this.__.__useArrow){const p=yf(ff(a,l)/(25*g),1);u=e0(g*p*12,3*g)}else u=2*g;if(c&&_f(h,c)&&h===d5(a,l)&&(u=2*g),d.x=e0(u,d.x),d.y=e0(u,d.y),i){u*=.6;const p=A.toNumberPoints(e.points);if(pf(t,[a.x,a.y,...p,l.x,l.y],e.curve,!1,e),h){const y=t[4],x=t[5];d.x=e0(u,H0(y-a.x)),d.y=e0(u,H0(x-a.y));const m=Ir(this,r,a,h,d);t[4]=m.x,t[5]=m.y}const _=t.length;if(c){const y=t[_-4],x=t[_-3];d.x=e0(u,H0(y-l.x)),d.y=e0(u,H0(x-l.y));const m=Ir(this,o,l,c,d);t[_-4]=m.x,t[_-3]=m.y}else t[_-4]=l.x,t[_-3]=l.y}else{const p=h?Ir(this,r,a,h,d):a,_=c?Ir(this,o,l,c,d):l;uf(t,a.x,a.y),gf(t,p.x,p.y,_.x,_.y,l.x,l.y)}}createStartPoint(e,t,i){const s=this.createLinkerPoint(e,t,i);return this.startPoint=s,s}createEndPoint(e,t,i){const s=this.createLinkerPoint(e,t,i);return this.endPoint=s,s}createLinkerPoint(e,t,i){const s={};if(t&&t.id){const n=t.getBoxPoint(e),{boxBounds:r}=t,o=i&&i.mode,a=o==="edge"||!o,l=o==="four",h=o==="free";if(o!=="auto"){if(l)s.point=Ur.getDirection(n,r,l);else if(s.direction=Ur.getDirection(n,r,a),s.point=Ur.getPointDirection(n,r,a)||s.direction,s.point===s.direction&&delete s.direction,h||a){const c=P.getPoint(r,s.point),d=n.x-c.x,g=n.y-c.y,u=i&&i.snapRadius||10;if(Math.abs(d)>u||Math.abs(g)>u){const p=s.offset={x:Math.abs(d)>u?d:0,y:Math.abs(g)>u?g:0};if(a&&(p.x||p.y))switch(s.direction||s.point){case"top":case"bottom":p.y=0;break;case"right":case"left":p.x=0;break;default:p.x>p.y?p.y=0:p.x=0}}}}s.id=t.id}else s.point=this.getLocalPoint(e);return s}};f([Et(df)],N0.prototype,"__",void 0),f([l5()],N0.prototype,"startPoint",void 0),f([l5()],N0.prototype,"endPoint",void 0),f([St({type:"C",value:.5})],N0.prototype,"curve",void 0),N0=f([Tt()],N0);const{toNumberPoints:xf}=A,{M:mf,L:wf,C:vf,Z:u5}=Yt;nt.add("linker"),V4("C",function(e,t,i,s){const n=xf(t),r=n.length>>1;if(r<2)return;if(e.push(mf,n[0],n[1]),!i||r<3){for(let c=1;c<r;c++)e.push(wf,n[2*c],n[2*c+1]);return void(s&&e.push(u5))}let o=i===!0?.5:i;o<0?o=0:o>1&&(o=1);const a=s?r:r-1;let l=n[0],h=n[1];{const c=n[2]-n[0],d=n[3]-n[1],g=Math.sqrt(c*c+d*d);g&&(l=n[0]+c/g*g*o,h=n[1]+d/g*g*o)}for(let c=0;c<a;c++){const d=c+1===r?0:c+1,g=n[2*d],u=n[2*d+1],p=d===0?r-1:d-1,_=d+1===r?0:d+1;let y=n[2*p]-g,x=n[2*p+1]-u,m=n[2*_]-g,w=n[2*_+1]-u;const v=Math.sqrt(y*y+x*x),b=Math.sqrt(m*m+w*w);let B=g,S=u,R=g,X=u;if(v||b){let z=0,T=0;v&&(z+=y/v,T+=x/v),b&&(z+=m/b,T+=w/b);let H=Math.sqrt(z*z+T*T);H||(b?(z=m/b,T=w/b):(z=y/v,T=x/v),H=1),z/=H,T/=H;let E=-T,D=z;b&&E*m+D*w<0&&(E=-E,D=-D);let N=0;v&&b&&(N=(y*m+x*w)/(v*b),N>1?N=1:N<-1&&(N=-1));let U=Math.sqrt(Math.sqrt(Math.max(0,1-N*N)));U<.15&&(U=.15);let Z=v*o*U,at=b*o*U;const Q=.5*Math.min(v||b,b||v);Z>Q&&(Z=Q),at>Q&&(at=Q),B=g-E*Z,S=u-D*Z,R=g+E*at,X=u+D*at}e.push(vf,l,h,B,S,g,u),l=R,h=X}s&&e.push(u5)});const ao={paintTransition:(e,t,i,s)=>V(e)&&V(t)?Wt.color(e,t,i):O(e)&&O(t)?ao.gradient(e,t,i,s):t,gradient(e,t,i,s){const n=Object.assign({},t);return n.from=f5("from",e,t,i,s),n.to=f5("to",e,t,i,s),n.stops=ao.stops(e.stops,t.stops,i),(e.opacity||t.opacity)&&(n.op
79acity=Wt.number(e.opacity||1,t.opacity||1,i)),(e.rotation||t.rotation)&&(n.rotation=Wt.number(e.rotation||0,t.rotation||0,i)),(e.stretch||t.stretch)&&(n.stretch=Wt.number(e.stretch||1,t.stretch||1,i)),n},stops(e,t,i){const s=V(e[0]),n=V(t[0]);return e.length===t.length&&s&&n?e.map((r,o)=>Wt.color(r,t[o],i)):(s&&(e=p5(e)),n&&(t=p5(t)),e.length<t.length?e=g5(e,t.length):t.length<e.length&&(t=g5(t,e.length)),e.map((r,o)=>({offset:Wt.number(r.offset,t[o].offset,i),color:Wt.color(r.color,t[o].color,i)})))}};function g5(e,t){const i=t-e.length,s=[];for(let n=0;n<e.length;n++)s.push(e[n]),n<i&&s.push(e[n]);return s}function p5(e){const{length:t}=e;return e.map((i,s)=>({offset:s/(t-1),color:i}))}function f5(e,t,i,s,n){if(t[e]===i[e])return t[e];let r=_5(t.type,e,t[e]),o=_5(i.type,e,i[e]);if(r.type!==o.type){const{boxBounds:a}=n.__layout;r.type!=="px"&&(r=Object.assign(Object.assign({},r),{type:"px"}),qt.toPoint(r,a,r)),o.type!=="px"&&(o=Object.assign({},o),qt.toPoint(o,a,o))}return{type:r.type,x:Wt.number(r.x,o.x,s),y:Wt.number(r.y,o.y,s)}}function _5(e,t,i){return i||(i=e==="linear"?t==="from"?"top":"bottom":t==="from"?"center":"bottom"),O(i)?i:qt.get(i)}const Cf={fill:ao.paintTransition,stroke:ao.paintTransition};Object.assign(Wt.list,Cf),nt.add("motion-text");const c1={};function bf(e,t,i,s,n){if(i){const[r,o,a,l]=i,[h,c,d,g]=s;if(r+o+a+l>0){const u=[],p=n==="inside"?0:n==="center"?.5:1,_=1-p,y=-g*p,x=-h*p,m=e+(g+c)*p,w=t+(h+d)*p,v=[r+Math.max(h,g)*p,o+Math.max(h,c)*p,a+Math.max(d,c)*p,l+Math.max(d,g)*p],b=g*_,B=h*_,S=e-(g+c)*_,R=t-(h+d)*_;if(Gt.roundRect(u,y,x,m,w,v),S>0&&R>0){const X=[Math.max(0,r-Math.max(h,g)*_),Math.max(0,o-Math.max(h,c)*_),Math.max(0,a-Math.max(d,c)*_),Math.max(0,l-Math.max(d,g)*_)];Gt.roundRect(u,b,B,S,R,X)}return{data:u,windingRule:"evenodd"}}}return(function(r,o,a,l){const h=[],[c,d,g,u]=a,p=l==="inside"?0:l==="center"?.5:1,_=1-p,y=-u*p,x=r+d*p,m=-c*p,w=o+g*p,v=c*_,b=o-g*_,B=Math.max(0,b-v);return c>0&&Gt.rect(h,y,m,x-y,c),g>0&&Gt.rect(h,y,w-g,x-y,g),u>0&&B>0&&Gt.rect(h,y,v,u,B),d>0&&B>0&&Gt.rect(h,x-d,v,d,B),{data:h}})(e,t,s,n)}function y5(e){return yt(e,t=>({set(i){if(this.__setAttr(t,i)){fn(this);const s=this.__;let n;s.__useStroke=!0,q.stintSet(s,"__hasStrokeSides",n=et(i)&&Math.max(...i)),n?_e(this):s.__pathForStroke&&(s.__pathForStroke=void 0)}}}))}j.addAttr("motionText",void 0,a0),j.prototype.__updateMotionText=function(){const e=this;if(!e.__.__textDrawData)return;const t=e.__,{motion:i,motionAround:s}=t,{rows:n,bounds:r}=t.__textDrawData;let o,a;const l=this.getMotionPoint(i),h=[],c={},d=this.getMotionPath();let g=0,u=0;s&&s!=="top-left"&&(qt.toPoint(s,r,c1),g=-c1.x*e.scaleX,u=-c1.y*e.scaleY),e.set({x:l.x,y:l.y}),e.scale!=1&&(e.scale=1),e.rotation&&(e.rotation=0);for(let p=0,_=n.length;p<_;p++)o=n[p],o.data&&o.data.forEach((y,x)=>{a=y.motion=this.getMotionPoint(i,void 0,g+y.x,u+o.y,d),A.move(a,-l.x,-l.y),A.copy(c,a),A.toVertical(c,a.rotation,t.fontSize/2),x?(Gt.lineTo(h,a.x,a.y),x===o.data.length-1&&(a=this.getMotionPoint(i,void 0,g+y.x+y.width,u+o.y+t.fontSize/2,d),A.move(a,-l.x,-l.y),Gt.lineTo(h,a.x,a.y))):Gt.moveTo(h,a.x,a.y)});e.__.__pathForMotionText=h,K1.toBounds(h,e.__layout.boxBounds),P.spread(e.__layout.boxBounds,t.fontSize),e.__layout.contentBounds=e.__layout.boxBounds,e.__layout.resized="inner"},st.fillMotionText=function(e,t,i){const s=e.__,{rows:n}=s.__textDrawData;let r,o;s.__isPlacehold&&s.placeholderColor&&(t.fillStyle=s.placeholderColor);const a=s.motionRotation!==!1;for(let l=0,h=n.length;l<h;l++)r=n[l],r.data&&r.data.forEach(c=>{o=c.motion,a?(t.setTransform(t.worldTransform),t.translate(o.x,o.y),t.rotate(o.rotation*lt),t.fillText(c.char,0,0)):t.fillText(c.char,o.x,o.y)})},nt.add("stroke-sides"),J.addAttr("strokeWidth",1,y5),k.addAttr("strokeWidth",1,y5),st.fillStroke=function(e,t,i,s){i.beginPath();const{data:n,windingRule:r}=t.__.__pathForStroke;f1.drawPathByData(i,n),O(e)?(function(o,a,l,h){let c;for(let d=0,g=o.length;d<g;d++)if(c=o[d],(!c.image||!kt.checkImage(c,!1,a,l,h))&&c.style){const{windingRule:u}=a.__.__pathForStroke;c.originPaint.blendMode?(l.saveBlendMode(c.originPaint.blendMode),l.fillStyle=c.style,u?l.fill(u):l.fill(),l.restoreBlendMode()):(l.f
79illStyle=c.style,u?l.fill(u):l.fill())}})(e,t,i,s):(i.fillStyle=e,r?i.fill(r):i.fill()),t.__.__fillAfterStroke&&t.__drawRenderPath(i)};const{stintSet:kf}=q;J.prototype.__updatePath=k.prototype.__updatePath=function(){const e=this.__;if(e.__hasStrokeSides){const{width:t,height:i,cornerRadius:s,strokeWidth:n,strokeAlign:r}=e;e.__pathForStroke=e.__pathInputed?void 0:bf(t,i,s&&ct.fourNumber(s),ct.fourNumber(n),r)}},gi.prototype.__checkComplex=go.prototype.__checkComplex=function(){const e=this;kf(e,"__complex",e.__isFills||e.__isStrokes||e.cornerRadius||e.__hasStrokeSides||e.__useEffect)};const Bf={},Sf=Bf;class I{get tag(){return"Case"}constructor(t,i){if(this.colors=["#FF4B4B","#FF4A2C","#FEB027","#FFE04B","#79CB4D","#4DCB71","#279B80","#279CFE","#FF4B4B"],this.config={x:0,y:0,size:100,space:20,style:{draggable:!0}},this.view=t,i&&(q.assign(this.config,i),i.count)){let s=0;i.list&&i.list.length&&(s=i.list[0]),this.config.list=[];for(let n=s;n<s+i.count;n++)this.config.list.push(n)}this.run(),t.on(Mt.DESTROY,()=>{this.view=this.config=this.colors=null})}getUI(t,i){}getData(){return[]}run(){let t,{x:i,y:s}=this.config;const{size:n,space:r,style:o}=this.config,{colors:a}=this;this.getData().forEach((l,h)=>{this.allowIndex(h)&&(t=this.getUI({x:i,y:s,width:n,height:n},h),t.set(o),t.set(l),t.__.__getInput("fill")===void 0&&(t.fill=a[h%8]),this.view.add(t),i+=n+r)})}allowIndex(t){return!this.config.list||this.config.list.includes(t)}}Sf.f="sdfsfde453";const Ef=ot.get("CaseCreator"),cs={list:{},register(e){const{tag:t}=e.prototype;d1[t]?Ef.warn("register the repeat Case: ",t):d1[t]=e},get:(e,t,i)=>(t||(t=new te({view:window})),new d1[e](t,i))},{list:d1}=cs;function F(){return e=>{cs.register(e)}}let x5=class{get tag(){return"AppCase"}constructor(){const e=new $r({view:window,fill:"#333",hittable:!1}),t=new te;t.name="first",e.add(t),cs.get("PathCase",t);const i=new te({type:"draw"});e.add(i),cs.get("RectCase",i),setTimeout(()=>{i.fill="#00000050",e.hittable=!0,console.log(e)},2e3),ot.showRepaint=!0,ot.enable=!0}};x5=f([F()],x5);let m5=class{get tag(){return"AppRealCanvasCase"}constructor(){const e=new $r({view:window,fill:"#333",realCanvas:!0}),t=new te;t.name="first",e.add(t),cs.get("PathCase",t);const i=new te({type:"draw"});e.add(i),cs.get("RectCase",i),i.add(new J({width:0,height:0})),setTimeout(()=>{e.width=500,i.fill="#00000050"},2e3),ot.showRepaint=!0,ot.enable=!0,console.log(e)}};m5=f([F()],m5);let w5=class extends I{get tag(){return"RectCase"}getUI(e){return new J(e)}getData(){return[{},{cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{cornerRadius:[0,40,20,40]},{cornerRadius:[20,40,0,40]},{windingRule:"evenodd",path:"X0 0 100 100 30M75 50P50 50 25",fill:"#32cd79"},{fill:"#32cd79"},{fill:"",stroke:"#32cd79",strokeWidth:2,dashPattern:[6,6]}]}};w5=f([F()],w5);let v5=class extends I{get tag(){return"EllipseCase"}getUI(e){return new Bt(e)}getData(){return[{},{startAngle:0,endAngle:0,innerRadius:.5},{startAngle:-60,endAngle:180,innerRadius:.5},{startAngle:-60,endAngle:180},{startAngle:-60,endAngle:180,innerRadius:1,fill:null,stroke:"#32cd79",strokeWidth:10,strokeAlign:"center",strokeCap:"round"},{width:100,height:100,startAngle:-60,endAngle:180,innerRadius:.5,fill:"#32cd79",cornerRadius:10},{scaleX:.8}]}};v5=f([F()],v5);let C5=class extends I{get tag(){return"PolygonCase"}getUI(e){return new Ee(e)}getData(){return[{sides:3},{sides:5},{sides:6,cornerRadius:10},{points:[10,90,10,10,50,70,90,10,90,90]},{points:[10,90,10,10,50,70,90,10,90,90,90,90,10,90],curve:!0},{points:[0,90,20,60,40,80,60,40,75,50,90,10,100,90,100,90,0,90],curve:!0},{points:[10,90,10,10,50,70,90,10,90,90,90,90,10,90],curve:.2}]}};C5=f([F()],C5);let b5=class extends I{get tag(){return"StarCase"}getUI(e){return new Si(e)}getData(){return[{innerRadius:.15,corners:3},{innerRadius:.1,corners:4},{corners:5},{corners:6,cornerRadius:2},{innerRadius:.5,corners:7,cornerRadius:4},{innerRadius:.5,corners:8,cornerRadius:5}]}};b5=f([F()],b5);let k5=class extends I{get tag(){return"ArrowCase"}getUI(e,t){return e.stroke=this.colors[t%9],e.height=0,e.strokeWidth=5,e.fill="",e.y+=40,new ce(e)}getData(){return[{startArrow:"angle",endArrow:"angle"},{startArrow:"angle-side",endArrow:"angle-side"},{startArrow:"circle",endArrow:"arrow"},{startArrow:"square",endArrow:"triangle"},{startArrow:"square-line",endArrow:"diamond-line"},{startArrow:"mark",endArrow:"mark"},{endArrow:"angle"},{endArrow:"angle",strokeCap:"square"},{endArrow:"angle",strokeJoin:"round",strokeCap:"round"},{endArrow:"angle",strokeJoin:"round"},{endArrow:"angle",strokeCap:"round"},{endArrow:"angle-side"},{startArrow:"angle-side"},{endArrow:"arrow"},{endArrow:"triangle"},{endArrow:"triangle-flip"},{endArrow:"circle"},{endArrow:"circle-line"},{endArrow:"square"},{endArrow:"square-line"},{endArrow:"diamond"},{endArrow:"diamond-line"},{startArrow:"mark",endArrow:"mark"},{endArrow:"arrow",strokeJoin:"round",strokeCap:"round"},{endArrow:"angle",stroke:"#32cd79",strokeWidth:5,dashPattern:[10,10],dashOffset:0,animation:{style:{dashOffset:-20},easing:"linear",duration:.5,loop:!0}}]}};k5=f([F()],k5);let B5=class extends I{get tag(){return"LineCase"}getUI(e,t){return e.stroke=this.colors[t],e.height=0,e.strokeWidth=5,e.strokeCap="round",e.fill="",new ce(e)}getData(){return[{},{rotation:30},{rotation:45,dashPattern:[10,10]},{points:[10,90,10,10,50,70,90,10,90,90],cornerRadius:5},{points:[10,90,10,10,50,70,90,10,90,90],curve:!0}
79,{points:[0,90,20,60,40,80,60,40,75,50,90,10,100,90],curve:!0},{rotation:90},{points:[10,90,10,10,50,70,90,10,90,90],curve:.2},{points:[10,90,10,10,50,70,90,10,90,90]}]}};B5=f([F()],B5);let S5=class extends I{get tag(){return"PathCase"}getUI(e){return e.scaleX=e.scaleY=.1,new Vt(e)}getData(){return[{path:"M406.611741 961.164906c0 0-35.815717-99.391684-110.62861-140.005684-74.812893-40.608883-119.701243-87.636966-115.426893-167.790494 0 0 40.614 149.627832 195.58042 133.592624 0 0 127.176494-231.647871 131.455961-286.821471 4.275373-55.17667 16.030092-84.035952-27.789926-187.698916 0 0 76.948533 56.485479 82.295308 185.880501 0 0 222.292805-44.808532 278.936897-197.641359 0 0-7.482415 124.245745-167.790494 199.459774-160.310126 75.210959-183.820586 304.995389-173.138292 359.494631 10.691503 54.505381 19.241226 95.113241 74.814939 101.530394L406.611741 961.164906z M322.698586 653.367705c0 0 34.437323-7.198959 53.780881 13.083993 6.448876 6.760984 11.220552 16.57756 12.481266 30.736025 5.037736 56.613392-25.648147 64.12446-25.648147 64.12446s-72.216765-5.115508-74.814939-61.990866C285.898449 642.449028 322.698586 653.367705 322.698586 653.367705z M416.603303 346.891592c11.384281 4.427846 40.756239-26.971281 40.756239-26.971281s-92.983741-55.576783-175.275979 23.51046c0 0 27.789926 17.104563 42.75271 27.789926 14.959713 10.683317 95.113241 60.919465 132.523269-8.549723C457.359542 362.670973 409.446299 344.107175 416.603303 346.891592z M466.97862 266.482237c0 0-91.911316 43.820018-118.631888-45.956681-26.718525-89.772606-61.98268-137.863904-82.293261-146.416697 0 0 92.983741-38.473243 191.30607 26.720571 98.322329 65.193815 44.889373 152.830781 44.889373 152.830781s-27.789926-51.297316-63.060221-67.332525C439.188694 186.327686 477.665007 238.703567 466.97862 266.482237z M514.360767 282.419208c0 0 19.167548-73.122391 69.091588-69.590961 49.92404 3.52836 72.615854 5.804193 81.696674-0.124843 0 0-7.059789 161.496138-137.170103 98.461499 0 0 44.880163-29.753651 50.430576-46.899146C578.409502 264.264733 532.010753 292.00247 514.360767 282.419208z M600.095407 467.493344c0 0 68.583005 1.514493 73.623811-52.950979 5.043876-54.466496-39.84038-66.062602-64.043618-54.466496-24.206308 11.599176-59.384505 59.648518-11.596106 107.423615z M714.065112 243.080248c0 0 50.929949 92.287893 71.105455 90.27198 20.170388-2.015913 37.820374-29.756721 28.744671-48.414663C804.835442 266.281669 744.824673 243.584738 714.065112 243.080248z M827.796386 96.928586c0 0 93.098351 50.667983 95.983051 105.457844 2.885723 54.785767-35.011398 81.894172-55.613622 85.848227 0 0-0.821715-59.896158-15.650445-80.493266 0 0 7.828292 52.316529-16.068977 68.794829 0 0-47.788399-11.945053-37.896098-56.438407C808.433386 175.609577 833.56681 166.142971 827.796386 96.928586z M860.570837 325.765435c0 0 15.093766 64.22986 77.313853 37.993313 62.210877-26.233478 32.229029-15.848966 32.229029-15.848966s-33.730219-81.07041-103.443977-47.230698c0 0 21.739117 18.104333 30.737048 21.10262C897.40679 321.782727 867.957061 329.751213 860.570837 325.765435z M186.969299 437.482843c0 0-87.636966 55.574736-91.908246 130.386606-4.27742 74.806753 54.499242 75.879178 54.499242 75.879178s3.859911 0.74906 9.830903 1.069355c-1.088798-2.862187-7.499811-22.398126 2.149966-65.313541 0 0 6.558369 41.756009 24.793686 62.749136 18.400069-4.934382 37.543058-18.078751 41.249473-50.873668C235.063667 525.116739 176.281889 498.402307 186.969299 437.482843z M121.085776 670.826332c0 0 25.723871-2.331092 39.709397-12.537548-7.956206-4.466732-81.442894-42.983977-112.762203 37.829584 0 0 30.302143 48.738028 83.359546 26.718525 32.636305-13.545504 36.520775-34.676777 34.679847-48.943712C163.5581 674.608471 147.411351 678.568666 121.085776 670.826332z M200.988594 665.906276c6.572696-6.380314 22.562878-20.73116 38.275745-25.89681 0 0-26.14752 17.692964-35.289738 27.865651 10.083659 2.974751 43.220361 10.955516 67.0153-4.472871 29.847795-19.35686 28.199249-46.37419 32.473599-68.816319C303.4635 594.585927 207.939913 594.60537 200.988594 665.906276z"},{path:"M626.915 506.525z m28.242-295.422c-37.145-57.099-75.006-107.854-35.098-161.985-42.876-10.029-77.156 17.088-82.068 53.415-69.89 34.178-48.4 91.277-34.177 145.511 35.712 17.191 72.141 49.322 97.11 87.
79184 9.311 14.94 18.623 29.982 22.819 45.638 7.163 22.82 2.865 32.848 0.102 58.532 0 5.73 3.581 19.238 4.298 27.117 2.149 5.014 3.581 10.642 4.297 14.224 0.717 10.744-2.148 19.237-5.73 25.684 18.522-15.656 41.34-32.847 47.685-59.248 2.865-11.46 6.447-20.67 7.88-29.266 8.493-31.415 19.237-29.266 24.251-68.458 8.698-54.029-22-94.756-51.369-138.348zM482.53 236.686c0.717-12.178-37.963-97.826 31.313-138.45-67.844-49.323-168.535 11.255-160.553 89.025 27.014-24.15 83.5-4.81 129.24 49.425z m140.804 271.988z m0 0c2.15-5.014 3.582-10.642 2.865-19.954 0.717-5.014-2.148-12.074-4.297-18.521-2.15-6.447-3.582-14.94-3.582-23.536-1.432-7.163-0.716-13.61-0.716-20.67 0.716-12.177 0-22.82-4.298-35.713-17.191-54.234-80.02-114.3-125.761-125.659-73.677-83.602-119.315-72.244-145.716-54.439-23.536-12.177-79.305 0.614-102.738 38.476 84.933-0.716 123.613 190.638 186.545 236.276 54.336 38.578 71.425 24.354 112.05 37.964 35.61 8.596 62.01-2.047 85.648-14.224z m13.098 55.36c2.252-12.28 9.824-21.898 13.815-29.164 11.46-23.944 35.2-55.973 33.768-82.988-9.619 35.201-39.09 70.914-88.923 81.658-19.647 3.99-45.434 6.958-69.89-6.651 21.386 18.828 47.377 22.717 90.253 39.806l11.768-1.433c87.593 201.484-2.865 379.434-2.865 379.434 123.408-177.13 45.229-326.94 8.697-380.15l3.377-0.512z"},{path:"M 838.928 957.922 c -7.42926 -57.7429 -86.871 -41.3441 -86.871 -41.3441 c -106.894 -49.8304 -134.905 -111.877 -134.905 -111.877 c -14.8585 -28.0107 4.00153 -24.5679 4.00153 -24.5679 c 19.4339 11.4308 169.771 92.0202 169.771 92.0202 c 26.2893 20.5966 62.3031 43.4582 62.3031 43.4582 c 20.5664 6.29675 22.8616 -20.0077 22.8616 -20.0077 c 12.0801 23.4505 18.8601 10.2983 18.8601 10.2983 c 8.57687 -12.0046 4.00153 -32.0123 4.00153 -32.0123 c -18.2863 -34.2924 -56.0215 -28.0107 -56.0215 -28.0107 l -37.1463 -20.0077 c -104.04 -57.1691 -128.623 -100.038 -128.623 -100.038 l 1.14761 -43.4431 c 68.0261 -2.28012 60.5817 -48.5771 60.5817 -48.5771 c 13.726 -8.57687 -2.85392 -18.3014 -2.85392 -18.3014 c -13.1371 -12.0801 -17.1386 -24.583 -17.1386 -24.583 c -9.15068 -46.297 -41.1629 -53.1524 -41.1629 -53.1524 a 422.441 422.441 0 0 0 -11.4308 -47.4446 c -9.72448 -18.8601 -17.7275 35.44 -17.7275 35.44 c -29.7171 -75.5006 -54.3605 -72.6014 -54.3605 -72.6014 l -2.85392 63.4205 c -33.7337 -1.70631 -59.4492 25.6702 -59.4492 25.6702 c -29.0979 27.0141 -43.9565 27.5275 -43.9565 27.5275 c -16.6101 -21.7291 -66.8785 -53.1675 -66.8785 -53.1675 c -32.5861 -24.0092 -82.3108 -78.3093 -82.3108 -78.3093 c -72.6014 -93.1678 -173.787 -108.041 -173.787 -108.041 l -24.5679 -3.42773 c -30.608 -4.53004 -46.8104 -41.1478 -46.8104 -41.1478 c -49.166 -129.77 14.8585 -210.934 14.8585 -210.934 c 45.7232 -68.5999 126.328 16.6101 126.328 16.6101 c 23.4354 25.1417 43.4431 3.42773 43.4431 3.42773 c 12.5784 -49.7398 -57.1691 -81.7521 -57.1691 -81.7521 c -87.4599 -40.0002 -155.531 24.9605 -155.531 24.9605 c -78.8831 80.9669 -16.6101 255.192 -16.6101 255.192 c 21.1402 45.1494 -5.14914 79.4569 -5.14914 79.4569 c -29.1583 49.1509 -29.1583 109.174 -29.1583 109.174 c 3.44283 128.608 76.0291 189.205 76.0291 189.205 C 149.562 740.707 154.696 776.147 154.696 776.147 v 58.8905 c 3.42773 30.8647 10.2832 38.8677 10.2832 38.8677 l 42.2804 45.7232 c 16.6101 31.4385 28.0107 36.0138 28.0107 36.0138 c 33.2203 13.1522 48.5771 -13.1371 48.5771 -13.1371 c 16.0061 -38.309 -38.2939 -50.3136 -38.2939 -50.3136 l -22.2878 -28.5845 c -21.1402 -27.9956 -6.87056 -44.0018 -6.87056 -44.0018 l 37.1614 -57.7429 l 1.14761 46.8104 c 2.28012 21.1402 9.70938 32.0123 9.70938 32.0123 c 57.1691 78.8831 82.3259 84.5607 82.3259 84.5607 c 34.2924 3.42773 41.1478 -22.2878 41.1478 -22.2878 c 6.85546 -33.7337 -38.2939 -46.3121 -38.2939 -46.3121 l -25.6702 -22.8616 c -29.1734 -34.2018 -14.2998 -44.5001 -14.2998 -44.5001 c 12.0046 -6.85546 21.1402 -33.7186 21.1402 -33.7186 c 4.00153 -13.726 25.6702 -5.14914 25.6702 -5.14914 c 21.1402 12.0046 51.4461 19.7812 51.4461 19.7812 c 32.0123 1.51001 76.0291 30.5174 76.0291 30.5174 c 60.023 71.4538 142.908 115.471 142.908 115.471 c 82.8846 58.3016 117.781 55.4477 117.781 55.4477 c 17.7275 0.573805 45.1645 22.3482 45.1645 22.3482 c 18.8601 8.06347 25.1417 -9.76978 25.1417 -9.76978 a 21.1402 21.1402 0 0 0 5.14914 9.72448 c 20.0228 1.70631 18.8752 -36.0138 18.8752 -36.0138 Z M 1007.99 940.738 l -0.513404 -0.453004 c -0.619105 -0.332203 -1.37411 -0.468104 -2.02342 -0.800307 c -0.211402 -0.120801 -0.317103 -0.317103 -0.543604 -0.468104 l -0.906008 -0.634205 a 2.77842 2.77842 0 0 1 -0.332203 -0.256702 c -0.347303 -0.166101 -0.800307 -0.286902 -1.16271 -0.453004 s -1.07211 -0.604005 -1.63081 -0.830507 c -0.302003 -0.120801 -0.679506 -0.120801 -0.966408 -0.241602 c -0.588905 -0.241602 -1.14761 -0.679506 -1.72142 -0.921108 a 5.78335 5.78335 0 0 0 -1.41941 -0.286902 c -0.302003 0 -0.573805 -0.166101 -0.890907 -0.211402 s -1.07211 -0.135901 -1.58551 -0.256702 s -0.951308 -0.377503 -1.51001 -0.498304 a 16.1269 16.1269 0 0 1 -1.85732 -0.362403 c -0.619105 -0.211402 -1.17781 -0.679506 -1.81202 -0.845607 s -1.28351 0 -1.90262 -0.151002 s -1.34391 -0.332203 -2.02342 -0.453003 a 8.25977 8.25977 0 0 1 -1.51001 -0.256703 a 16.4893 16.4893 0 0 1 -2.62742 -1.85731 l -0.830507 -0.860707 c -0.241602 -0.166101 -0.498304 -0.362403 -0.739906 -0.513405 l -0.392603 -0.437903 a 4.53004 4.53004 0 0 0 -1.23821 -1.10231 a 9.15068 9.15068 0 0 0 -1.38921 -0.302002 c -0.755006 -0.196302 -1.51001 -0.709706 -2.18952 -0.906008 s -1.374
7911 -0.135901 -2.05362 -0.256702 c -0.151001 0 -0.286902 -0.105701 -0.453004 -0.135901 s -0.739906 -0.090601 -1.10231 -0.181202 s -0.437904 -0.226502 -0.664406 -0.226502 a 2.92943 2.92943 0 0 0 -0.302002 0 h -0.815407 a 8.53157 8.53157 0 0 1 -1.51001 0 c -0.407703 -0.075501 -0.755006 -0.286902 -1.14761 -0.377503 a 10.7513 10.7513 0 0 1 -3.02003 -0.815407 c -0.422804 -0.226502 -0.694606 -0.709706 -1.13251 -0.996608 a 4.53004 4.53004 0 0 0 -1.51001 -0.800307 c -0.196302 0 -0.407703 0.120801 -0.604005 0.151002 s -0.634205 0.090601 -0.951308 0.120801 h -2.05362 l -1.04191 -0.241602 h -0.649305 a 3.65423 3.65423 0 0 1 -1.35901 -0.573805 a 2.53682 2.53682 0 0 1 -0.543604 -0.619105 a 2.80862 2.80862 0 0 0 -1.28351 -1.13251 a 9.98118 9.98118 0 0 0 -1.51001 0.362403 a 5.23974 5.23974 0 0 1 -1.08721 0 a 7.89737 7.89737 0 0 1 -1.88752 -0.135901 c -0.709706 -0.181202 -1.38921 -0.951308 -2.08382 -1.26841 a 1.96302 1.96302 0 0 0 -0.558705 -0.241602 a 4.06193 4.06193 0 0 0 -0.739906 0 h -1.28351 a 18.2108 18.2108 0 0 1 -2.56702 0 a 11.7328 11.7328 0 0 1 -1.78182 0 a 8.12387 8.12387 0 0 1 -1.04191 -0.271802 c
79-0.151001 0 -0.241602 -0.166101 -0.392604 -0.196302 s -0.241602 0 -0.347303 0 a 2.59722 2.59722 0 0 0 -0.906007 -0.271802 c -0.302003 0 -0.709706 0.286902 -1.01171 0.332203 a 8.32017 8.32017 0 0 1 -1.05701 0 a 6.34205 6.34205 0 0 1 -1.51001 -0.090601 l -0.362403 -0.211402 a 3.89583 3.89583 0 0 1 -0.392604 -0.120801 a 6.82526 6.82526 0 0 1 -0.785206 -0.483204 l -0.604005 -0.513404 a 3.02003 3.02003 0 0 0 -0.860707 -0.437904 c -0.317103 -0.120801 -0.694606 -0.135901 -1.01171 -0.226502 c -0.604005 -0.151001 -1.16271 -0.347303 -1.75162 -0.468104 c -0.347303 0 -0.755006 0 -1.11741 -0.0906 l -0.951308 -0.226502 l -0.468104 -0.211402 c -0.649305 -0.151001 -1.29861 -0.241602 -1.94792 -0.362403 h -0.483204 a 10.857 10.857 0 0 1 -1.85732 -0.105701 a 5.90415 5.90415 0 0 1 -1.41941 -0.906008 a 6.11555 6.11555 0 0 0 -1.51001 -0.694605 c -1.97812 -0.468104 -3.97133 -0.453004 -5.93435 -0.785207 h -2.46132 c -0.453004 -0.075501 -0.860707 -0.271802 -1.31371 -0.392603 a 6.99136 6.99136 0 0 0 -0.785207 -0.105701 a 8.63727 8.63727 0 0 1 -0.890907 -0.256702 c 0 0.135901 0.770106 0.528504 0.936208 0.619105 s 0.588905 0.181202 0.845607 0.286902 a 13.5901 13.5901 0 0 0 2.02342 0.724806 h 0.271802 c 0.151001 0 0.271802 0.151001 0.422804 0.181202 s 0.755006 0 1.10231 0.135901 s 0.437904 0.196302 0.679506 0.241602 s 0.573805 0 0.845607 0 c 0.528504 0.105701 1.05701 0.317103 1.51001 0.453004 c 0.166101 0 0.241602 0.166101 0.407704 0.256702 s 0.332203 0.135901 0.483204 0.211402 s 0.422804 0.407703 0.679506 0.513404 c 0.483204 0.211402 1.07211 0.347303 1.51001 0.528505 a 5.52665 5.52665 0 0 0 0.936208 0.377503 h 0.347303 a 4.80184 4.80184 0 0 1 0.483204 0.241602 h 0.860707 a 3.63913 3.63913 0 0 1 1.11741 0.634205 c 0.226502 0.135901 0.241602 0.392603 0.407703 0.513404 a 4.15253 4.15253 0 0 0 0.679506 0.256703 c 0.120801 0 0.135901 0.241602 0.196301 0.256702 s 0.181202 -0.105701 0.302003 -0.120801 h 0.483204 c 0.090601 0 0.120801 -0.105701 0.211402 -0.120801 h 2.08382 c 0.377503 0 0.890907 -0.120801 1.25331 0.241602 a 0.407703 0.407703 0 0 0 0.105701 0.302002 a 4.66594 4.66594 0 0 1 0.800306 0 l 0.286903 0.181202 l 0.664405 0.226502 h 0.392604 a 3.02003 3.02003 0 0 1 1.23821 0.256702 c 0.211402 0.135901 0.090601 0.362403 0.286903 0.498304 h 0.166101 c 0.135901 0.075501 0.120801 0.226502 0.151001 0.302002 s 0.256702 0.120801 0.347303 0.241603 s 0.166101 0.332203 0.256702 0.483204 l 0.498304 0.498304 a 8.27487 8.27487 0 0 1 1.61571 0 c 0.135901 0.166101 0.151001 0.377503 0.317103 0.468104 s 0.226502 0 0.302002 0.196301 s 0 0.181202 0 0.241602 a 6.93096 6.93096 0 0 0 0.860707 0.921108 a 5.76825 5.76825 0 0 0 1.37411 0.498304 c 0.135901 0 0.241602 0.151001 0.392603 0.196302 s 0.271802 0 0.392604 0.075501 s 0.105701 0.090601 0.181201 0.1057 c 0.377503 0.090601 0.845607 -0.090601 1.22311 0.075501 s 0.362403 0.573805 0.664406 0.770107 a 2.56702 2.56702 0 0 0 0.800307 0.422803 a 2.29522 2.29522 0 0 0 0.709706 -0.090601 a 9.24128 9.24128 0 0 1 1.28351 0 h 0.604006 c 0.226502 0 0.181202 0.377503 0.437903 0.513405 a 1.16271 1.16271 0 0 0 0.226502 0 a 1.97812 1.97812 0 0 1 0.317103 0.151001 a 2.85392 2.85392 0 0 0 0.347303 0.075501 c 0.256702 0 0.437904 0.226502 0.679505 0.286902 h 0.906008 c 0.286902 0 0.513404 0.196302 0.785207 0.271802 a 3.02003 3.02003 0 0 1 0.619105 0.151002 c 0.196302 0 0.362403 0.181202 0.558704 0.241602 s 0.785207 0 1.08721 0.1057 a 4.04683 4.04683 0 0 1 0.453003 0.181202 l 0.830507 0.226502 c 0.151001 0 0.211402 0.151001 0.347303 0.211402 a 2.05362 2.05362 0 0 1 0.588905 0.181201 l 0.317103 0.332203 c 0.105701 0.075501 0.286902 0.120801 0.362403 0.271802 a 4.16763 4.16763 0 0 0 0.483204 0.921108 h 0.196302 a 1.51001 1.51001 0 0 0 0.453003 0 h 1.90262 c 0.332203 0 0.634205 0.256702 0.966409 0.347303 a 2.77842 2.77842 0 0 1 0.498304 0 c 0.302003 0.120801 0.528504 0.377503 0.845607 0.513404 s 0.981508 0.302003 1.51001 0.543605 s 0.453004 0.437904 0.724806 0.558704 s 0.770106 0.196302 1.10231 0.347303 s 0.437904 0.392603 0.724806 0.558705 s 0.649305 0.241602 0.906008 0.362403 s 0.271802 0.332203 0.468104 0.453004 a 4.30354 4.30354 0 0 0 0.634205 0.256702 c 0.090601 0 0.120801 0.105701 0.211402 0.120801 c 0.362403
790.105701 0.800307 0 1.17781 0 c 0.105701 0 0.151001 0.120801 0.256702 0.151001 a 4.31864 4.31864 0 0 0 1.22311 0.120801 l 0.196302 -0.135901 h 0.558704 a 8.06347 8.06347 0 0 1 1.20801 0 l 0.649306 0.271803 c 0.135901 0.075501 0.181202 0.181202 0.302002 0.226501 a 10.3738 10.3738 0 0 0 1.31371 0.317103 a 1.08721 1.08721 0 0 1 0.543605 0.302003 c 0.075501 0.105701 0.135901 0.317103 0.286902 0.407703 a 2.50662 2.50662 0 0 0 0.498305 0.181202 l 0.422803 0.332202 c 0.271802 0.120801 0.664406 0.181202 0.936208 0.286903 s 0.332203 0.286902 0.513404 0.332203 s 0.588905 -0.483204 0.785207 -0.649306 a 1.31371 1.31371 0 0 0 0.543605 0 l 0.151001 -0.105701 h 0.528504 a 1.51001 1.51001 0 0 0 0.558705 -0.407703 s 0 -0.135901 0.151001 -0.196302 a 1.67611 1.67611 0 0 1 0.936208 -0.226502 h 1.51001 c 0.211402 0 0.377503 0.196302 0.588905 0.241602 h 1.63081 c 0.135901 0 0.241602 0.120801 0.392604 0.151002 s 0.558705 0 0.815407 0 s 0.196302 0.105701 0.347302 0.151001 h 0.785207 l 0.226502 0.120801 h 0.815407 c 0.317103 0 0.664406 0.120801 0.981508 0.090601 a 7.12726 7.12726 0 0 1 1.38921 0 a 6.29675 6.29675 0 0 1 0.755006 0 c 0.196302 0 0.362403 0.211402 0.558705 0.256702 c 0.860707 0.211402 1.70631 0.649305 2.56702 0.860707 l 0.453004 0.226502 h 1.07211 a 2.76332 2.76332 0 0 0 0.588905 0.135901 a 2.67272 2.67272 0 0 1 1.02681 0.090601 c 0.196302 0.090601 0.226502 0.347303 0.437903 0.468104 s 0.286902 0.105701 0.407704 0.181201 s 0.090601 0.317103 0.271802 0.437904 s 0.241602 0 0.332203 0.211402 s 0 0.166101 0.0755 0.211401 s 0.468104 0.120801 0.634206 0.166102 l 0.453004 0.256702 c 0.105701 0 0.256702 0 0.362403 0.075501 a 4.75654 4.75654 0 0 0 0.966408 0.468104 c 0.256702 0 0.588905 0 0.845607 0.135901 s 0.453004 0.211402 0.709706 0.256702 h 0.906007 c 0.135901 0 0.256702 0.105701 0.407704 0.135901 h 0.830507 a 3.17103 3.17103 0 0 0 0.362403 0.090601 c 0.120801 0.120801 0.196302 0.377503 0.241602 0.377503 c 0.362403 0.090601 0.755006 0 1.10231 0 s 0.498304 0.317103 0.770107 0.377503 h 0.392603 a 3.42773 3.42773 0 0 1 0.377503 0.090601 c 0.135901 0 0.271802 0 0.407704 -0.090601 H 1006.1 c 0.619105 0.105701 1.20801 0.558705 1.82712 0.664406 c 0.196302 0 0.392603 -0.151001 0.588905 -0.181202 s 0.437904 0.090601 0.664405 0 c -0.271802 0.196302 -0.800307 -0.256702 -1.19291 -0.528504 Z M 921.934 905.419 c 0.196302 0 0.377503 0.151001 0.573805 0.181202 h 0.860707 l 0.226502 0.120801 h 0.739906 c 0.302003 0 0.604005 0 0.906007 0.120801 a 2.32542 2.32542 0 0 1 0.724807 0.256702 c 0.151001 0.090601 0.196302 0.211402 0.332202 0.271802 c 0.679506 0.302003 1.41941 0.422804 2.09892 0.664406 c 0.332203 0.120801 0.664406 0.513404 0.996608 0.634205 a 0.951308 0.951308 0 0 1 0.166102 -0.226502 c 0.226502 0 0.392603 -0.105701 0.634205 -0.151001 h 0.694606 a 8.47117 8.47117 0 0 1 1.23821 0 h 0.573805 c 0.135901 0 0.256702 0.135901 0.392603 0.166101 h 0.392604 c 0.271802 0 0.075501 0.709706 0.543604 0.936208 a 5.07364 5.07364 0 0 0 0.996609 0.317103 c 0.120801 0 0.211402 0.120801 0.332202 0.135901 s 0.604005 0 0.875808 0 a 3.02003 3.02003 0 0 1 0.377503 0.211402 l 0.302003 0.0755 c 0 -0.181202 0.317103 -0.619105 0.588904 -0.664405 a 3.02003 3.02003 0 0 1 1.02681 0 a 3.50323 3.50323 0 0 1 2.92943 1.11741 a 1.72141 1.72141 0 0 0 0 0.785207 a 2.14422 2.14422 0 0 1 0.468104 0.0906 c 0.105701 0.151001 0.226502 0.286902 0.347303 0.437904 s 0.679506 0.286902 0.951308 0.437904 l 0.437903 0.437903 l 0.664406 0.256703 c 0.362403 0.196302 0.573805 0.453004 0.921108 0.513404 h 0.558704 c 0.151001 0 0.211402 -0.196302 0.332203 -0.226502 h 0.528504 l 0.166102 -0.120801 h 0.573805 c 0.090601 0 0.120801 -0.105701 0.211401 -0.120801 H 949.295 l 0.256703 0.135901 h 0.226502 a 3.54853 3.54853 0 0 1 0.981508 0.075501 c 0.120801 0 0.181202 0.135901 0.286902 0.181201 a 1.34391 1.34391 0 0 0 0.332203 0 l 0.332203 0.181202 a 3.59383 3.59383 0 0 1 0.392603 0 l 0.120801 0.090601 h 1.11741 a 2.40092 2.40092 0 0 1 0.739907 0.362403 c 0.135901 0.090601 0.135901 0.241602 0.286902 0.302002 h 0.739906 a 4.40924 4.40924 0 0 1 0.634206 0.196302 c 0.286902 0.120801 0.377503 0.513404 0.498304 0.709706 l 0.543604 0.588905 a 2.15932 2.15932 0 0 0 1.04191 1.02681 a 3.02003 3.02003 0 0 0 1.26841 -0.135901 h 0.453004 c 0.135901 0 0.332203 -0.090601 0.498304 -0.090601 a 6.61386 6.61386 0 0 1 0.755006 0 h 1.02681 c 0.181202 0 0.347303 0.181202 0.528504 0.226502 h 0.785207 c 0.302003 0 0.558705 0.166101 0.875807 0.226502 h 0.815407 c 0.317103 0.075501 0.513404 0.347303 0.845607 0.513405 a 4.75654 4.75654 0 0 0 0.981508 0.437903 h 0.332203 c 0.151001 0 0.241602 0.166101 0.392603 0.241602 s 0.860707 0.256702 0.936208 0.256702 l 0.256702 -0.12
790801 a 2.49152 2.49152 0 0 0 0.649306 -0.135901 l 0.241602 -0.181201 c 0.135901 0 0.317103 0 0.453004 -0.090601 s 0.332203 -0.392603 0.528504 -0.453004 s 0.377503 0 0.543605 0 s 0.135901 -0.105701 0.211402 -0.120801 h 1.85731 c 0.151001 0 0.256702 0.151001 0.407704 0.181202 h 1.87241 c 0.528504 0.090601 1.01171 0.392603 1.51001 0.498304 s 0.739906 0 1.08721 0 s 0.302003 0.120801 0.468104 0.151001 s 0.151001 0 0.211402 0 a 1.61571 1.61571 0 0 1 0.241602 0.211402 a 1.64591 1.64591 0 0 0 0.770106 0.211402 c 0.196302 0.211402 0.166101 0.332203 0.286903 0.528504 a 4.53004 4.53004 0 0 1 0.664405 0 c 0.151001 0 0.241602 0.211402 0.392604 0.302003 a 1.51001 1.51001 0 0 1 0.332202 0.135901 a 1.13251 1.13251 0 0 1 0.845607 -0.105701 c 0.604005 0 1.28351 -0.135901 1.85732 0.437904 a 4.53004 4.53004 0 0 1 0 0.906007 a 4.06193 4.06193 0 0 0 1.90262 0.498304 a 6.34205 6.34205 0 0 1 2.12912 -0.135901 h 0.604005 l 0.317103 0.166102 h 0.558704 l 1.14761 0.226502 h 0.694606 c 0.166101 0 0.271802 0.181202 0.437903 0.241602 h 0.226502 c 0.151001 0 0.211402 0.135901 0.362403 0.211401 a 3.71463 3.71463 0 0 0 0.770107 0.166102 l 0.437904 0.196301 H 995.32 c 0.120801 0.135901 0.151001 0.302003 0.286902 0.392604 a 4.53004 4.53004 0 0 0 0.634206 0.241602 c 0.226502 0.135901 0.196302 0.392603 0.422803 0.498304 s 0.453004 0 0.634206 0.211402 s 0.075501 0.135901 0.0906 0.181201 a 9.93588 9.93588 0 0 0 0.785207 0.800307 h 0.211402 l 0.453004 0.211402 h 1.02681 a 4.60554 4.60554 0 0 1 0.483204 0.196301 H 1001.59 a 4.33374 4.33374 0 0 0 0.755006 0.105701 a 1.76672 1.76672 0 0 1 0.392603 0 a 2.24992 2.24992 0 0 0 0.604005 0.120801 a 6.17595 6.17595 0 0 1 0.906008 0 h 0.256702 a 1.32881 1.32881 0 0 1 0.422804 0 c 0.347303 0 0.664406 0.226502 0.996608 0.271803 s 0.256702 0 0.377503 0 l 0.966408 0.196301 h 0.256702 a 4.16763 4.16763 0 0 1 0.739907 0.105701 a 2.40092 2.40092 0 0 1 -0.453004 -0.271802 c
79-0.241602 -0.135901 -0.513404 -0.241602 -0.785207 -0.362403 s -0.256702 0 -0.377503 -0.090601 c -0.604005 -0.256702 -1.13251 -0.604005 -1.73651 -0.860707 s -1.11741 -0.362403 -1.64591 -0.604005 c -0.151001 -0.090601 -0.211402 -0.196302 -0.377503 -0.286903 a 7.06686 7.06686 0 0 0 -0.830507 -0.407703 c -0.256702 -0.105701 -0.604005 -0.151001 -0.860708 -0.226502 c -0.513404 -0.135901 -0.936208 -0.347303 -1.51001 -0.437904 h -0.317103 a 8.69767 8.69767 0 0 1 -2.23482 -0.332203 c -0.498304 -0.211402 -0.860707 -0.573805 -1.34391 -0.830506 s -1.01171 -0.513404 -1.51001 -0.800307 l -0.422803 -0.362403 a 9.61878 9.61878 0 0 0 -0.951308 -0.528505 a 10.2379 10.2379 0 0 0 -1.32881 -0.377503 c -0.166101 0 -0.302003 -0.120801 -0.468104 -0.151001 c -0.558705 -0.105701 -1.16271 -0.120801 -1.72142 -0.256702 c -0.800307 -0.211402 -1.51001 -0.951308 -2.35562 -1.13251 s -1.26841 0 -1.87241 -0.105701 c -0.362403 0 -0.649305 -0.286902 -1.01171 -0.392603 s -0.875807 -0.166101 -1.28351 -0.286902 s -1.23821 -0.981508 -1.87241 -1.16271 c -0.317103 -0.090601 -0.664406 -0.090601 -0.996609 -0.151001 s -1.11741 -0.286902 -1.66101 -0.422804 s -1.51001 -0.513404 -2.26502 -0.709706 c -0.151001 0 -0.271802 -0.151001 -0.422803 -0.196302 l -1.84222 -0.422803 c -0.815407 -0.181202 -1.51001 -1.10231 -2.34052 -1.60061 c -0.166101 -0.090601 -0.256702 -0.226502 -0.422804 -0.286902 c -0.513404 -0.181202 -1.08721 -0.392603 -1.61571 -0.619105 a 6.46285 6.46285 0 0 0 -1.08721 -0.513404 c -0.875807 -0.241602 -1.78182 -0.256702 -2.67272 -0.498305 c -0.588905 -0.151001 -1.11741 -0.543605 -1.72141 -0.709706 a 13.3938 13.3938 0 0 1 -1.97812 -0.573804 a 9.79998 9.79998 0 0 0 -1.26841 -0.619106 c -0.362403 -0.105701 -0.800307 0.151001 -1.17781 0.196302 H 957.419 c -0.513404 -0.105701 -0.981508 -0.453004 -1.51001 -0.604005 s -0.875807 -0.090601 -1.28351 -0.196302 c -0.679506 -0.166101 -1.31371 -0.468104 -1.99322 -0.604005 h -1.44961 l -1.51001 -0.302002 h -0.181202 a 4.53004 4.53004 0 0 0 -0.483204 0.0906 H 946.849 c -0.498304 -0.090601 -0.951308 -0.317103 -1.51001 -0.453003 a 12.4425 12.4425 0 0 0 -1.51001 -0.286903 h -0.271803 a 12.2311 12.2311 0 0 0 -1.51001 -0.090601 h -0.483204 a 3.62403 3.62403 0 0 0 -0.875808 -0.181201 c -0.649305 0.075501 -1.23821 0.317103 -1.88752 0.437904 a 9.54328 9.54328 0 0 1 -1.85731 0 h -0.951308 c -0.951308 -0.166101 -1.84221 -0.815407 -2.79352 -0.981509 c -0.302003 0 -0.694606 0.302003 -1.01171 0.422804 a 4.31864 4.31864 0 0 1 -1.35901 0.302002 h -0.936207 a 13.0012 13.0012 0 0 1 -1.87242 -0.120801 h -0.528505 l -2.15932 -0.0755 c -0.679506 -0.120801 -1.31371 -0.392603 -1.99322 -0.513405 a 2.26502 2.26502 0 0 0 -0.770106 0.105701 h -0.739906 a 8.89398 8.89398 0 0 1 -1.26841 0.211402 a 1.91772 1.91772 0 0 0 0.483204 0.196302 Z M 999.865 953.377 h -0.347303 l -0.453004 -0.151001 c -0.211402 -0.090601 -0.347303 -0.241602 -0.573804 -0.347303 s -0.241602 0 -0.332203 -0.090601 l -0.483204 -0.347303 c -0.181202 -0.105701 -0.422804 -0.196302 -0.619105 -0.317103 l -0.407704 -0.347303 l -0.875807 -0.543604 a 3.12573 3.12573 0 0 0 -0.377503 -0.286903 a 4.09213 4.09213 0 0 0 -0.951308 0 h -0.800307 a 5.60215 5.60215 0 0 1 -0.875807 0 a 12.0801 12.0801 0 0 1 -1.25331 -0.407703 a 12.0801 12.0801 0 0 1 -2.59722 -1.51001 a 3.36733 3.36733 0 0 1 -0.755006 -0.860707 a 4.93774 4.93774 0 0 0 -1.14761 -1.10231 a 3.75993 3.75993 0 0 0 -0.906007 -0.286903 c -0.498304 -0.135901 -0.936208 -0.347303 -1.51001 -0.437903 h -0.483204 a 3.62403 3.62403 0 0 1 -1.19291 -0.226502 a 2.70292 2.70292 0 0 1 -0.422804 -0.332203 c -0.302003 -0.181202 -0.664406 -0.483204 -0.981508 -0.694606 l -0.437904 -0.392603 a 10.5701 10.5701 0 0 0 -1.20801 -0.543605 a 3.41263 3.41263 0 0 0 -0.392603 -0.211401 a 2.76332 2.76332 0 0 0 -0.996608 0 h -3.02003 c -0.649305 -0.105701 -1.26841 -0.317103 -1.93282 -0.453004 c -0.317103 0 -0.664406 0 -0.981508 -0.120801 s -0.875807 -0.437904 -1.34391 -0.558705 a 24.7189 24.7189 0 0 1 -2.41602 -0.755006 a 20.0228 20.0228 0 0 0 -2.05362 -1.02681 a 18.2561 18.2561 0 0 0 -1.91772 -0.422803 h -0.649306 a 7.55006 7.55006 0 0 1 -1.72141 -0.437904 c -0.498304 -0.211402 -1.02681 -0.483204 -1.51001 -0.739906 l -0.362403 -0.256702 c -0.332203 -0.151001 -0.770106 -0.256702 -1.10231 -0.422804 s -0.724806 -0.468104 -1.16271 -0.649305 c -0.120801 0 -0.302003 0 -0.437903 -0.105701 l -0.241603 -0.135901 c -0.996608 -0.226502 -2.06872 0 -3.02003 -0.120802 c -0.392603 -0.075501 -0.724806 -0.256702 -1.11741 -0.362403 l -0.921108 -0.196301 c -0.785207 -0.151001 -1.60061 0 -2.37072 -0.166102 c -0.483204 -0.090601 -0.921108 -0.332203 -1.40431 -0.453003 s -0.875807 -0.105701 -1.29861 -0.211402 c -0.724806 -0.151001 -1.38921 -0.573805 -2.11402 -0.770107 s -1.35901 0 -2.02342 -0.226502 a 5.79845 5.79845 0 0 1 -0.588905 -0.332202 a 13.4693 13.4693 0 0 1 -1.374
7911 -0.739907 l -0.392603 -0.317102 a 9.57348 9.57348 0 0 0 -1.63081 -0.890908 c -1.25331 -0.437904 -2.52172 -0.362403 -3.75993 -0.679505 a 20.2644 20.2644 0 0 1 -2.50662 -1.23821 c -1.28351 -0.558705 -2.65762 -0.724806 -3.94113 -1.28351 c -0.996608 -0.437904 -1.91772 -1.66101 -2.92942 -2.09892 a 15.1001 15.1001 0 0 0 -1.76672 -0.392604 c -0.483204 -0.135901 -0.921108 -0.573805 -1.40431 -0.770106 h -0.135901 c -0.422804 -0.151001 -0.739906 -0.407703 -1.14761 -0.528504 s -0.755006 -0.135901 -1.10231 -0.256703 c 0 0.166101 -0.105701 0.317103 0 0.498305 a 1.37411 1.37411 0 0 1 0.724806 0.332202 c 0 0.090601 0 0.226502 0.090601 0.317103 s 0.241602 0.256702 0.286902 0.407703 s 0 0.317103 0.105701 0.468104 l 0.317103 0.392604 c 0.090601 0.166101 0 0.256702 0.151001 0.453004 a 6.32695 6.32695 0 0 1 1.19291 0 c 0.211402 0.226502 0.135901 0.377503 0.317103 0.588904 a 3.02003 3.02003 0 0 1 0.845607 0.302003 l 0.362403 0.347303 c 0.166101 0 0.377503 0 0.558705 0.196302 s 0.105701 0.362403 0.317102 0.468104 a 6.04005 6.04005 0 0 0 0.936208 0.362403 a 1.60061 1.60061 0 0 0 0.317103 0.166101 c 0.317103 0 0.770106 -0.120801 1.07211 0 s 0.166101 0.211402 0.196302 0.256702 s 0.619105 0.604005 0.664405 0.619105 s 0.468104 0.151001 0.664406 0.271803 l 0.347303 0.392603 l 0.664405 0.271802 c 0.256702 0.135901 0.437904 0.483204 0.694606 0.604005 s 0.362403 0 0.513404 0.151002 s 0.256702 0.468104 0.498305 0.588904 l 0.437903 0.120801 c 0.151001 0 0.256702 0.196302 0.407704 0.256703 a 6.26655 6.26655 0 0 0 0.724806 0.166101 c 0.362403 0.090601 0.739906 0.347303 1.08721 0.422804 s 0.513404 0 0.739906 0.0906 s 0.196302 0.090601 0.317103 0.105701 s 0.392603 0 0.588905 0 s 0.105701 0.090601 0.196301 0.135901 a 3.59383 3.59383 0 0 0 0.392604 0.075501 l 0.332202 0.166101 a 4.86224 4.86224 0 0 1 0.921108 0.241602 c 0.166101 0.090601 0.151001 0.241602 0.317103 0.347303 s 0.317103 0 0.407703 0.211402 a 1.96302 1.96302 0 0 0 0.573805 0.709706 a 7.06686 7.06686 0 0 0 0.679506 0.302003 a 3.60893 3.60893 0 0 0 0.800307 0.0906 c 0.286902 0 0.543605 0.226502 0.845607 0.302003 a 7.00646 7.00646 0 0 1 1.11741 0.241602 c 0.468104 0.196302 0.845607 0.785207 1.26841 1.19291 a 3.48813 3.48813 0 0 1 0.890907 0 a 6.04005 6.04005 0 0 0 0.588905 0.241602 h 0.679506 c 0.211402 0 0.407703 0.332203
790.604005 0.437904 s 0.498304 0.120801 0.709706 0.226502 s 0.196302 0.362403 0.347303 0.483204 a 2.86902 2.86902 0 0 0 0.543604 0.181201 l 0.468104 0.317103 a 3.02003 3.02003 0 0 0 0.649306 0.256702 h 0.483204 a 4.42434 4.42434 0 0 1 1.96302 0.302002 c 0.120801 0 0.151001 0.241602 0.196302 0.302003 l 0.694606 0.664406 c 0.588905 0.362403 1.26841 0.407703 1.84221 0.785206 l 0.317103 0.302003 a 2.71802 2.71802 0 0 0 0.317103 0.120801 a 0.981508 0.981508 0 0 1 0.226501 0.302002 a 3.97133 3.97133 0 0 0 0.528505 0.392604 h 0.181201 a 3.83543 3.83543 0 0 0 0.830507 0 h 1.90262 c 0.241602 0 0.377503 0.241602 0.634206 0.377503 a 1.97812 1.97812 0 0 0 0.407703 0.090601 c 0.151001 0 0.256702 0.135901 0.392603 0.151001 h 1.07211 a 5.39075 5.39075 0 0 1 1.26841 0.468104 a 2.92943 2.92943 0 0 1 0.739906 0.271802 h 0.090601 c 0.377503 0.090601 0.785207 0 1.14761 0 a 9.49798 9.49798 0 0 1 2.59722 0.649305 l 0.256703 0.241602 a 1.29861 1.29861 0 0 0 0.317102 0.105701 l 0.362403 0.317103 c 0.105701 0 0.271802 0 0.362403 0.090601 s 0.211402 0.286902 0.256703 0.362403 a 3.71463 3.71463 0 0 0 0.407703 0.256702 c 0.120801 0.090601 0.196302 0.332203 0.362403 0.437904 s 0.453004 0.075501 0.664406 0.226502 l 0.332202 0.453003 a 1.82712 1.82712 0 0 0 0.468104 0.135902 l 0.241602 0.135901 h 1.14761 l 0.256702 0.135901 c 0.317103 0.075501 0.770106 0 1.13251 0.0755 c 0.105701 0 0.151001 0.105701 0.256702 0.151002 a 3.86563 3.86563 0 0 0 0.407703 0.0755 c 0.211402 0 0.362403 0.181202 0.573805 0.226502 h 0.332203 c 0.362403 0 0.664406 0 1.02681 0.135901 h 0.528505 c 0.181202 0 0.332203 0.332203 0.528504 0.422804 a 6.47795 6.47795 0 0 0 1.41941 0.528504 l 0.226502 0.105701 l 0.709706 -0.211402 H 982.244 a 1.88752 1.88752 0 0 1 0.588905 0.226502 a 3.02003 3.02003 0 0 0 1.41941 0.241602 a 3.83543 3.83543 0 0 0 0.709706 -0.1057 a 4.15253 4.15253 0 0 1 0.619105 -0.256703 h 2.34052 a 7.55006 7.55006 0 0 1 1.02681 0.453004 a 6.93096 6.93096 0 0 1 0.724806 0.256702 l 0.332202 0.302003 a 4.12233 4.12233 0 0 0 1.04191 0.498304 h 3.65423 l 0.271802 0.151001 a 2.44622 2.44622 0 0 0 0.286903 0 l 0.437903 0.196302 h 1.05701 c 0.332203 0 0.483204 0.226502 0.755006 0.286902 h 0.830507 a 3.02003 3.02003 0 0 1 0.528505 0.135902 l 0.151001 0.1057 c 0.407703 0.135901 0.890907 -0.135901 1.31371 0.151002 l -0.135901 -0.151002 c -0.105701 0 -0.196302 -0.226502 -0.332203 -0.302002 Z M 1000.41 953.966 Z M 915.969 1013.37 c -0.437904 -0.226502 -1.02681 -0.226502 -1.51001 -0.437904 l -0.543605 -0.407703 l -0.528504 -0.362403 s -0.120801 -0.211402 -0.211402 -0.256703 a 1.51001 1.51001 0 0 1 -0.271802 -0.120801 l -0.256702 -0.196301 c -0.196302 -0.090601 -0.468104 0 -0.649306 -0.120801 s -0.453004 -0.377503 -0.724806 -0.498304 c 0 0 -0.196302 0.105701 -0.332203 0.135901 a 1.51001 1.51001 0 0 0 -0.271802 -0.120801 l -0.528504 -0.392604 l -0.317103 -0.105701 l -0.573805 -0.422803 c -0.181202 -0.090601 -0.377503 -0.090601 -0.573805 -0.166101 s -0.407703 -0.241602 -0.588905 -0.332203 a 6.73466 6.73466 0 0 0 -0.830507 -0.166102 a 1.34391 1.34391 0 0 1 -0.256702 -0.120801 h -0.407703 c -0.120801 0 -0.347303 -0.211402 -0.483204 -0.196301 s -0.105701 0 -0.151001 0.0906 a 0.407703 0.407703 0 0 1 -0.302003 0 c -0.166101 0 -0.226502 0.151001 -0.377503 0.135902 s -0.241602 0 -0.347303 0 s -0.317103 0.120801 -0.498304 0.0906 a 2.08382 2.08382 0 0 1 -0.694606 -0.437903 a 2.73312 2.73312 0 0 0 -0.422804 -0.181202 c -0.256702 -0.120801 -0.437904 -0.362403 -0.694606 -0.483204 h -0.392603 c -0.649305 -0.271802 -1.38921 -0.392603 -2.02342 -0.664405 c -0.151001 0 -0.332203 0 -0.468104 -0.120801 a 2.17442 2.17442 0 0 1 -0.483204 -0.347303 a 7.29336 7.29336 0 0 1 -0.875807 -0.649306 a 4.96794 4.96794 0 0 0 -0.664406 -0.422803 l -0.513404 -0.377504 h -0.196302 l -0.483204 -0.362403 h -0.286902 c -0.090601 0 -0.332203 -0.302003 -0.528505 -0.392603 s -0.211402 0 -0.317102 0 l -0.241602 -0.196302 l -0.619105 -0.422803 l -0.166102 -0.135901 c -0.151001 0 -0.332203 0 -0.498304 -0.135901 l -0.951308 -0.649306 c -0.196302 -0.181202 -0.377503 -0.271802 -0.483204 -0.588905 V 1002.65 a 1.67611 1.67611 0 0 0 -0.166101 -0.528505 l -0.347303 -0.226502 v -0.
79135901 a 1.14761 1.14761 0 0 0 -0.347303 -0.256702 a 2.71802 2.71802 0 0 0 -0.196302 -0.785207 h -0.468104 c -0.135901 0 -0.498304 -0.196302 -0.724806 -0.256702 h -0.422804 a 3.21633 3.21633 0 0 0 -0.407703 -0.120801 a 1.38921 1.38921 0 0 0 -0.377503 0.120801 a 0.860707 0.860707 0 0 1 -0.483204 0 a 6.93096 6.93096 0 0 0 -0.966408 -0.422803 h -0.302003 l -0.543604 -0.135901 a 7.09706 7.09706 0 0 1 -0.755007 -0.573805 l -0.377503 -0.241602 v -0.181202 a 3.36733 3.36733 0 0 0 -0.815407 -0.498304 h -0.241602 c -0.075501 0 -0.468104 -0.437904 -0.755006 -0.543605 h -0.181202 a 2.43112 2.43112 0 0 0 -0.528504 -0.151001 c -0.166101 0 -0.347303 0.105701 -0.498304 0 s -0.483204 -0.181202 -0.739907 -0.211402 s -0.498304 0 -0.724806 0 s -0.573805 -0.241602 -0.860707 -0.302002 s -0.483204 0 -0.724806 0 s -0.785207 -0.241602 -1.16271 -0.347303 s -0.528504 0 -0.770106 -0.075501 s -0.226502 -0.151001 -0.347303 -0.196301 s -0.528504 -0.135901 -0.770107 -0.256702 l -0.483204 -0.362404 l -0.724806 -0.498304 a 1.94792 1.94792 0 0 0 -0.271802 -0.241602 h -0.151001 c -0.347303 0 -0.483204 0.241602 -0.739906 0.347303 s -0.256702 0 -0.362403 0 h -0.362404 a 4.00153 4.00153 0 0 1 -0.453003 -0.166101 h -0.302003 l -0.634205 -0.241602 a 3.51833 3.51833 0 0 1 -0.377503 -0.105701 c -0.226502 -0.105701 -0.498304 -0.347303 -0.739907 -0.437904 a 2.20462 2.20462 0 0 0 -0.453003 -0.105701 a 4.40924 4.40924 0 0 1 -0.468104 -0.211401 c -0.211402 -0.090601 -0.407703 -0.105701 -0.619106 -0.196302 l -0.573804 -0.437904 c -0.181202 -0.075501 -0.377503 0 -0.558705 -0.135901 s -0.166101 -0.105701 -0.256702 -0.120801 h -0.271802 s -0.105701 -0.090601 -0.151002 -0.090601 s -0.347303 0.166101 -0.528504 0.105701 l -0.377503 -0.286902 a 6.71956 6.71956 0 0 1 -0.830507 -0.573805 c -0.135901 -0.120801 -0.241602 -0.317103 -0.392604 -0.392603 a 2.68782 2.68782 0 0 0 -0.709706 -0.105701 c -0.286902 0 -0.498304 0.226502 -0.785206 0.166101 s -0.528504 -0.407703 -0.800307 -0.528504 s -0.105701 0 -0.181201 0 s -0.181202 -0.105701 -0.271803 -0.135901 s -0.241602 0 -0.347303 0 a 3.79013 3.79013 0 0 0 -1.08721 -0.332203 a 4.53004 4.53004 0 0 0 -0.981508 0.166101 s -0.105701 0.105701 -0.151001 0.120801 s -0.211402 0 -0.271803 0 s -0.256702 0.120801 -0.422803 0.151001 a 6.53835 6.53835 0 0 1 -1.05701 -0.724806 h -0.543605 c -0.120801 0 -0.286902 0.151001 -0.392603 0.181202 s -0.211402 0 -0.332203 0 s -0.105701 0.135901 -0.241602 0.120801 h -0.120801 c -0.181202 0 -0.211402 0.181202 -0.422803 0.166101 a 2.43112 2.43112 0 0 1 -0.890908 -0.422803 l -0.241602 -0.196302 l -0.528504 -0.166101 h -0.256702 a 3.95623 3.95623 0 0 1 -0.513405 -0.362403 a 0.362403 0.362403 0 0 0 -0.211401 0.135901 c -0.392603 0 -0.664406 -0.271802 -0.9
7906008 -0.437904 l -0.966408 -0.694606 l -0.377503 -0.256702 s 0 -0.105701 -0.075501 -0.166101 l -0.317103 -0.211402 s -0.075501 -0.166101 -0.135901 -0.211402 s -0.151001 0.075501 -0.241602 0 s -0.347303 -0.166101 -0.543604 -0.166101 s -0.302003 0.151001 -0.498305 0.135901 a 3.02003 3.02003 0 0 1 -1.01171 -0.135901 l -0.543605 -0.407704 h -0.407703 c -0.135901 0 -0.151001 -0.151001 -0.226502 -0.181201 a 6.19105 6.19105 0 0 0 -0.755006 -0.211402 c -0.392603 -0.120801 -0.830507 -0.302003 -1.23821 -0.392603 a 5.10384 5.10384 0 0 0 -0.679505 0 a 3.02003 3.02003 0 0 0 -0.392604 -0.105701 h -0.377503 c -0.392603 -0.151001 -0.815407 -0.271802 -1.20801 -0.453004 s -0.347303 -0.286902 -0.543605 -0.392603 s -0.347303 -0.075501 -0.543604 -0.166102 s -0.513404 -0.317103 -0.755006 -0.437903 s -0.241602 0 -0.347303 -0.075501 l -0.181202 -0.120801 a 11.159 11.159 0 0 0 -1.61571 -0.498304 c -0.226502 0 -0.453004 -0.181202 -0.679506 -0.226502 a 3.02003 3.02003 0 0 0 -0.875808 0 a 6.23635 6.23635 0 0 1 0.679506 0.256702 c 0.181202 0.090601 0.362403 0.226502 0.543605 0.317103 a 9.98118 9.98118 0 0 1 1.01171 0.362403 l 1.51001 1.14761 c 1.38921 0.724806 2.62742 1.67611 4.09213 2.32542 a 5.23974 5.23974 0 0 0 1.29861 0.286902 a 4.53004 4.53004 0 0 1 1.31371 0.105701 a 7.55006 7.55006 0 0 1 1.22311 0.815407 a 2.35562 2.35562 0 0 1 0.302002 0.241602 c 0.468104 0.226502 0.921108 0.468104 1.38921 0.679506 l 0.407703 0.105701 l 0.709706 0.302002 c 0.256702 0.120801 0.483204 0.347303 0.739906 0.468104 s 0.875807 0.347303 1.31371 0.543605 s 0.498304 0.256702 0.739907 0.347303 a 3.02003 3.02003 0 0 0 0.755006 0.120801 h 0.634205 a 3.86563 3.86563 0 0 1 0.709706 0 c 0.090601 0 0.211402 0.090601 0.302003 0.105701 h 0.332203 a 5.45115 5.45115 0 0 1 0.996608 0.664405 a 4.15253 4.15253 0 0 1 0.664405 0.483204 c 0.181202 0.166101 0.302003 0.543605 0.483205 0.679506 a 1.75162 1.75162 0 0 0 0.694605 0.256702 l 0.256703 0.120801 a 2.79352 2.79352 0 0 0 0.347302 0 l 0.785207 0.317103 a 8.77317 8.77317 0 0 1 1.14761 0.815407 a 12.5331 12.5331 0 0 1 1.63081 1.19291 l 0.830507 0.573805 a 3.41263 3.41263 0 0 0 0.437904 0.377503 a 1.17781 1.17781 0 0 0 0.468104 0.105701 c 0.588905 0.151001 1.37411 0 1.91772 0.196301 a 6.16085 6.16085 0 0 1 1.25331 0.815407 a 4.21293 4.21293 0 0 1 0.694605 0.498304 c 0.271802 0.271802 0.422804 0.679506 0.724807 0.906008 a 2.35562 2.35562 0 0 0 1.34391 -0.105701 a 1.69121 1.69121 0 0 1 0.634205 -0.135901 a 3.02003 3.02003 0 0 1 1.13251 0.286902 c 0.151001 0 0.286902 0.211402 0.422803 0.286903 l 0.785207 0.377503 l 0.649305 0.498304 l 0.664406 0.453004 c 0.181202 0.166101 0.377503 0.347303 0.543604 0.528504 s 0.166101 0.302003 0.302003 0.377503 a 3.44283 3.44283 0 0 0 1.26841 0.181202 a 11.4308 11.4308 0 0 1 1.19291 -0.090601 a 8.28997 8.28997 0 0 1 2.28012 0.921108 c 0.286902 0.120801 0.604005 0.151001 0.890907 0.286902 a 7.80677 7.80677 0 0 1 0.996609 0.694606 l 0.528504 0.362403 s 0.090601 0.135901 0.151001 0.181202 a 3.11063 3.11063 0 0 0 0.528505 0.181201 c 0.271802 0.105701 0.528504 0.286902 0.785206 0.407704 s 0.226502 0 0.347303 0.135901 c 0.483204 0.241602 0.906008 0.588905 1.41941 0.800307 s 1.22311 0.241602 1.79692 0.468103 a 7.71617 7.71617 0 0 0 1.01171 0.468104 a 3.59383 3.59383 0 0 0 1.29861 -0.1057 h 1.16271 l 0.951308 -0.151002 a 13.7864 13.7864 0 0 1 2.52172 0.075501 a 7.21786 7.21786 0 0 1 1.11741 0.604005 c 0.483204 0.241602 0.996608 0.422804 1.51001 0.664406 s 0.800307 0.619105 1.26841 0.815406 s 1.05701 0.166101 1.51001 0.332203 a 13.7864 13.7864 0 0 1 1.34391 0.649306 c 0.362403 0.151001 0.770106 0.211402 1.14761 0.362403 s 0.755006 0.407703 1.11741 0.604005 l 0.664406 0.286902 a 4.53004 4.53004 0 0 0 1.02681 0.483204 c 0.468104 0.120801 1.02681 0.105701 1.51001 0.241602 c 0.226502 0 0.468104 0.241602 0.709706 0.302003 s 0.951308 0.135901 1.43451 0.256702 s 0.634205 0.211402 0.936208 0.256702 h 1.76672 c 0.558705 0.090601 1.10231 0.362403 1.64591 0.453004 h 0.528504 a 9.63388 9.63388 0 0 0 1.31371 0 c -0.090601 -0.151001 -0.286902 -0.181202 -0.407703 -0.302003 s -0.120801 -1.08721 -0.256702 -1.14761 Z M 908.374 1023.79 a 3.57873 3.57873 0 0 1 -0.528505 -0.286902 l -0.135901 -0.135901 a 5.85885 5.85885 0 0 0 -0.694606 -0.332203 c -0.090601 0 -0.135901 -0.166101 -0.226501 -0.211402 s -0.513404 -0.166101 -0.755007 -0.286902 s -0.166101 -0.151001 -0.256702 -0.226502 l -0.
79181202 -0.090601 a 3.75993 3.75993 0 0 1 -0.543604 -0.453004 c -0.105701 -0.105701 -0.302003 -0.135901 -0.437904 -0.211402 s -0.151001 -0.151001 -0.226502 -0.226501 a 2.23482 2.23482 0 0 0 -0.528504 -0.286903 l -0.302003 -0.302002 c -0.181202 -0.090601 -0.317103 -0.211402 -0.483204 -0.286903 s -0.256702 0 -0.392603 -0.090601 l -0.649305 -0.483204 h -0.392604 s 0 -0.090601 -0.135901 -0.0906 a 6.19105 6.19105 0 0 0 -0.860707 0.120801 h -0.151001 c -0.060401 0 -0.347303 -0.135901 -0.498305 -0.166102 s -0.286902 0.135901 -0.498304 0.105701 s -0.362403 -0.135901 -0.528504 -0.151001 s -0.211402 0.090601 -0.347303 0.120801 l -0.785207 -0.543605 l -0.317102 -0.256702 h -0.377504 a 3.74483 3.74483 0 0 0 -0.558704 -0.256702 h -0.332203 l -0.135901 -0.105701 h -0.392603 l -0.437904 -0.332203 l -0.815407 -0.407703 l -0.362403 -0.271802 h -0.256702 l -0.392603 -0.286903 a 5.16424 5.16424 0 0 1 -1.26841 -1.10231 a 3.23143 3.23143 0 0 0 -1.41941 -0.588905 a 2.68782 2.68782 0 0 1 -0.422804 0.573805 c -0.634205 0.105701 -0.981508 -0.317103 -1.37411 -0.588905 s -0.392603 -0.196302 -0.483204 -0.468104 l -0.271802 -0.075501 h -0.392604 a 2.41602 2.41602 0 0 1 -0.437903 -0.286902 c -0.166101 0 -0.196302 0.166101 -0.422804 0.196302 a 1.26841 1.26841 0 0 0 -0.588905 -0.226502 h -0.256702 s -0.090601 0 -0.135901 -0.090601 s -0.241602 0 -0.362403 -0.120801 s -0.453004 -0.377503 -0.709706 -0.498304 s -0.815407 -0.226502 -1.19291 -0.422804 l -1.19291 -0.860707 c -0.105701 0 -0.241602 0 -0.347303 -0.090601 l -0.724806 -0.543604 l -0.453004 -0.302003 s 0 -0.120801 -0.090601 -0.181201 s -0.271802 -0.120801 -0.347303 -0.241603 s 0 -0.377503 -0.120801 -0.528504 s -0.166101 -0.181202 -0.226502 -0.271802 v -0.226502 c -0.075501 -0.166101 -0.241602 -0.271802 -0.347303 -0.407704 l -0.105701 -0.196301 l -0.709705 -0.271802 h -0.362404 c -0.120801 0 -0.151001 -0.105701 -0.226501 -0.135902 a 3.68443 3.68443 0 0 0 -0.830507 -0.181201 c -0.286902 0 -0.543605 0 -0.770107 -0.090601 l -0.513404 -0.377503 c -0.226502 -0.105701 -0.453004 -0.166101 -0.664406 -0.271802 l -0.483204 -0.377504 c -0.135901 0 -0.302003 0 -0.437903 -0.1057 l -0.649306 -0.483204 c -0.151001 -0.105701 -0.377503 -0.211402 -0.513404 -0.317103 l -0.256702 -0.286903 c -0.090601 -0.090601 -0.226502 -0.135901 -0.302003 -0.226501 s -0.407703 -0.543605 -0.724806 -0.679506 a 1.67611 1.67611 0 0 0 -1.14761 0.151001 l -0.619105 0.120801 c -0.166101 0 -0.407703 0.271802 -0.649305 0.211402 a 3.30693 3.30693 0 0 1 -0.498305 -0.181202 l -0.468103 -0.347303 h -0.317103 a 2.26502 2.26502 0 0 1 -0.634205 -0.135901 l -0.694606 -0.528504 h -0.120801 c -0.105701 0 -0.196302 -0.105701 -0.286903 -0.135901 h -0.286902 s -0.151001 -0.105701 -0.241602 -0.120801 s -0.166101 0 -0.256702 0 a 3.02003 3.02003 0 0 1 -0.664406 -0.407704 l -0.135901 -0.120801 h -0.211402 l -0.739906 -0.528504 l -0.347303 -0.241602 s 0 -0.105701 -0.075501 -0.166102 l -0.377503 -0.256702 v -0.151001 l -0.347303 -0.226502 c 0 -0.075501 0 -0.211402 -0.105701 -0.302002 l -0.392603 -0.211402 a 2.64252 2.64252 0 0 0 -0.815407 -0.120801 l -0.543604 -0.135901 h -0.483204 c -0.241602 0 -0.558705 -0.135901 -0.800307 -0.181202 l -0.422804 0.105701 a 1.73652 1.73652 0 0 1 -0.347302 -0.151001 a 1.19291 1.19291 0 0 0 -0.347303 0.498304 a 2.82372 2.82372 0 0 1 -2.38582 -0.694606 c -0.166101 -0.120801 -0.543605 -0.302003 -0.649306 -0.483204 a 0.770106 0.770106 0 0 1 0 -0.679506 l -0.241602 -0.105701 h -0.332203 c -0.211402 -0.075501 -0.362403 -0.302003 -0.558704 -0.392603 a 1.82712 1.82712 0 0 0 -0.271803 -0.075501 a 4.37904 4.37904 0 0 0 -0.785206 -0.271802 c
79-0.392603 -0.075501 -0.573805 0.407703 -0.785207 0.332203 l -0.241602 -0.196302 c -0.105701 0 -0.226502 0 -0.317103 -0.0906 l -0.362403 -0.271803 a 5.81355 5.81355 0 0 1 -0.785206 -0.573805 l -0.453004 -0.302002 c -0.135901 -0.151001 -0.166101 -0.317103 -0.332203 -0.407703 a 0.437904 0.437904 0 0 1 0 -0.211402 c -0.271802 -0.075501 -0.664406 0 -0.936208 -0.075501 a 14.8887 14.8887 0 0 0 -1.63081 -0.573805 h -0.347303 a 1.51001 1.51001 0 0 1 -0.573805 -0.196301 l -0.619105 -0.347303 l -0.468104 -0.347303 h -0.196302 l -0.543604 -0.407704 c -0.135901 0 -0.302003 -0.090601 -0.453004 -0.166101 l -0.513405 -0.392603 a 2.52172 2.52172 0 0 0 -0.392603 -0.090601 a 6.47795 6.47795 0 0 1 0.694606 0.739906 c 0.135901 0.135901 0.317103 0.241602 0.437904 0.377503 s 0.271802 0.347303 0.437903 0.422804 c 0.483204 0.241602 1.01171 0.392603 1.51001 0.634205 l 1.38921 0.966408 l 0.332202 0.256702 a 13.2428 13.2428 0 0 1 1.22311 0.815407 l 0.619105 0.422804 a 3.44283 3.44283 0 0 1 0.709706 0.830507 c 0.151001 0.226502 0.226502 0.634205 0.437904 0.739906 c 0.679506 0.347303 1.51001 0.362403 2.21972 0.709706 l 0.604005 0.453004 a 7.20276 7.20276 0 0 1 1.14761 0.906007 c 0.347303 0.377503 0.604005 0.815407 0.981508 1.16271 c 0.151001 0.151001 0.437904 0.196302 0.634206 0.302003 l 0.302002 0.226502 a 8.48627 8.48627 0 0 0 0.981508 0.649305 l 0.166102 0.135901 a 12.0801 12.0801 0 0 0 1.08721 0.528505 c 0.377503 0.151001 0.770106 0.226502 1.11741 0.392603 l 0.709706 0.528504 l 0.755007 0.513405 a 2.32542 2.32542 0 0 0 0.256702 0.286902 a 0.573805 0.573805 0 0 0 0.151001 0 l 1.05701 0.513404 c 0.256702 0.135901 0.483204 0.362403 0.739906 0.498305 l 0.196302 0.151001 c 0.483204 0.241602 1.02681 0.362403 1.51001 0.573805 s 0.588905 0.362403 0.906008 0.483204 s 0.860707 0.151001 1.23821 0.332203 l 0.558705 0.422803 l 0.785207 0.543605 c 0.211402 0.211402 0.362403 0.558705 0.634205 0.679505 a 8.38057 8.38057 0 0 0 1.10231 0.211402 a 12.0801 12.0801 0 0 1 1.51001 0.573805 c 0.453004 0.181202 0.966408 0.181202 1.41941 0.362403 c 0.679506 0.271802 1.25331 0.694606 1.91772 0.966408 a 5.84375 5.84375 0 0 0 0.921108 0.196302 c 0.437904 0.105701 0.906008 0.226502 1.31371 0.362403 a 1.78182 1.78182 0 0 0 0.407703 0 a 8.28997 8.28997 0 0 1 2.23482 0.105701 l 1.34391 0.604005 c 0.120801 0 0.256702 0 0.362403 0.0755 c 0.573805 0.226502 1.20801 0.377503 1.76672 0.619106 s 0.845607 0.332203 1.23821 0.528504 s 0.453004 0.271802 0.709706 0.377503 s 1.23821 0 1.72142 0.151001 s 0.619105 0.317103 0.936208 0.437904 s 0.558705 0.105701 0.815407 0.226502 s 0.785207 0.619105 1.23821 0.815407 s 1.41941 0.166101 2.02342 0.422803 a 13.0918 13.0918 0 0 1 1.19291 0.649306 c 0.120801 0 0.241602 0 0.377503 0.120801 a 5.84375 5.84375 0 0 0 1.01171 0.392603 a 7.86717 7.86717 0 0 0 0.830507 0.120801 h 0.453003 c 0.422804 0 0.906008 0.135901 1.29861 0.196302 s 0.830507 0 1.23821 0.120801 a 7.12726 7.12726 0 0 1 1.51001 0.845607 l 0.196302 0.166101 c 0.347303 0.166101 0.724806 0.241602 1.10231 0.392604 a 4.90754 4.90754 0 0 0 0.649306 0.271802 l 0.709706 0.135901 h 0.377503 c 0.453004 0 0.890907 0.286902 1.31371 0.377503 s 0.996608 0.166101 1.51001 0.286903 a 2.32542 2.32542 0 0 0 0.286902 0.120801 a 5.69275 5.69275 0 0 0 0.649306 0.151001 a 1.11741 1.11741 0 0 1 0.407703 0 Z M 915.894 1001.67 h -0.151001 a 2.31032 2.31032 0 0 1 -0.407704 -0.166101 l -0.513404 -0.392603 c -0.196302 -0.090601 -0.422804 -0.075501 -0.619105 -0.166102 s -0.422804 -0.377503 -0.664406 -0.483204 h -0.377503 l -0.196302 -0.120801 h -0.241602 l -0.498304 -0.377503 l -1.34391 -1.01171 l -0.468104 -0.347303 a 3.44283 3.44283 0 0 0 -0.906008 -0.181202 h -0.347303 a 4.28844 4.28844 0 0 1 -0.573804 -0.196301 a 4.93774 4.93774 0 0 1 -0.845608 -0.196302 l -1.51001 -1.08721 a 3.26163 3.26163 0 0 1 -0.271802 -0.453004 a 3.36733 3.36733 0 0 0 -0.392604 -0.407703 a 2.21972 2.21972 0 0 0 -1.01171 -0.513405 a 3.45793 3.45793 0 0 1 -0.468104 -0.135901 l -0.543605 -0.407703 l -0.543604 -0.362403 c -0.105701 -0.166101 -0.226502 -0.317103 -0.332203 -0.468104 h -0.196302 a 5.63235 5.63235 0 0 0 -1.14761 -0.347303 c -0.166101 0 -0.392603 0.090601 -0.528505 0 l -0.332203 -0.256702 c -0.256702 -0.12
790801 -0.453004 -0.271802 -0.709706 -0.407704 l -0.196301 -0.181201 c -0.151001 -0.075501 -0.317103 0 -0.468104 -0.135901 s -0.181202 -0.105701 -0.286903 -0.135902 a 1.17781 1.17781 0 0 1 -0.241602 0 c -0.256702 -0.120801 -0.498304 -0.377503 -0.739906 -0.498304 h -0.211402 l -0.739906 -0.543604 h -0.211402 a 1.02681 1.02681 0 0 0 -0.362403 -0.120801 l -0.422803 0.120801 c -0.196302 0 -0.332203 -0.151001 -0.513405 -0.181202 s -0.317103 0.105701 -0.437903 0.105701 a 1.60061 1.60061 0 0 0 -0.377503 0 s -0.196302 0.135901 -0.332203 0.105701 s -0.181202 -0.105701 -0.286903 -0.120801 h -0.362403 a 1.26841 1.26841 0 0 0 -0.256702 -0.075501 h -0.271802 a 6.76486 6.76486 0 0 1 -1.85732 -0.875807 c -0.256702 -0.135901 -0.453004 -0.407703 -0.724806 -0.528505 v -0.1057 c -0.241602 0 -0.392603 -0.135901 -0.604005 -0.181202 a 4.36394 4.36394 0 0 1 -1.01171 -0.302003 l -0.679506 -0.498304 l -0.317103 -0.0906 c -0.105701 0 -0.196302 -0.120801 -0.302002 -0.135902 a 2.35562 2.35562 0 0 1 -0.588905 0 l -0.558705 -0.422803 l -0.649305 -0.453004 a 4.34884 4.34884 0 0 0 -0.513405 -0.407703 s 0 -0.090601 -0.0906 -0.105701 a 1.94792 1.94792 0 0 0 -0.513405 0 a 0.890907 0.890907 0 0 1 -0.302002 0.0755 l -0.241602 -0.0755 h -0.347303 c -0.543605 0 -0.981508 -0.332203 -1.51001 -0.377503 l -0.755006 0.0755 s -0.151001 0.120801 -0.271802 0.105701 a 3.47303 3.47303 0 0 1 -1.37411 -0.739906 l -0.302003 -0.241602 a 3.30693 3.30693 0 0 0 -0.513404 -0.151001 h -0.453004 c -0.135901 0 -0.256702 -0.135901 -0.422803 -0.135902 s -0.271802 0.151001 -0.453004 0.120801 s -0.347303 -0.151001 -0.543605 -0.181201 a 4.03173 4.03173 0 0 1 -0.604005 0 c -0.151001 0 -0.271802 -0.241602 -0.422803 -0.317103 a 4.80184 4.80184 0 0 0 -0.498304 -0.120801 a 2.89922 2.89922 0 0 1 -0.573805 -0.377503 a 4.96794 4.96794 0 0 1 -1.37411 0.151001 a 8.09367 8.09367 0 0 1 -0.815407 -0.392603 c -0.226502 -0.090601 -0.453004 -0.105701 -0.664405 -0.211402 a 3.35223 3.35223 0 0 0 -0.558705 -0.317102 a 3.75993 3.75993 0 0 0 -0.558705 -0.135902 a 1.51001 1.51001 0 0 0 -0.694605 0.166102 h -0.362403 c -0.105701 0 -0.226502 0.090601 -0.377504 0 a 3.82033 3.82033 0 0 1 -0.679505 -0.286903 h -0.286903 c -0.090601 0 -0.181202 -0.120801 -0.286902 -0.135901 h -0.196302 c -0.135901 0 -0.241602 -0.211402 -0.377503 -0.271802 a 1.51001 1.51001 0 0 0 -0.241602 0 c -0.166101 -0.075501 -0.332203 -0.226502 -0.498304 -0.302003 s -0.619105 -0.135901 -0.890908 -0.241602 a 3.50323 3.50323 0 0 0 -0.543604 -0.241602 h -0.377503 l -0.332203 -0.135901 c -0.196302 0 -0.332203 0.151001 -0.588905 0.135901 s -0.256702 -0.120801 -0.392603 -0.151001 s -0.498304 0.090601 -0.724806 0 l -0.543605 -0.151001 h -0.407703 c -0.181202 0 -0.362403 -0.120801 -0.543605 -0.135901 s -0.709706 0 -0.709706 0 a 0.573805 0.573805 0 0 1 -0.241602 0 c -0.271802 0 -0.468104 -0.362403 -0.709706 -0.468104 s -0.166101 0 -0.256702 0 s -0.528504 -0.181202 -0.770107 -0.211402 s -0.286902 0.135901 -0.422803 0.135901 s -0.302003 -0.105701 -0.453004 -0.135901 h -0.392603 a 2.44622 2.44622 0 0 1 -0.664406 -0.211402 c -0.211402 0 -0.241602 0.181202 -0.483204 0.226502 a 4.36394 4.36394 0 0 1 -0.770106 -0.528504 c -0.211402 0 -0.181202 0.151001 -0.317103 0.226502 l -0.377503 0.0906 c -0.120801 0 -0.196302 0.181202 -0.286903 0.241602 s -0.241602 0 -0.377503 0.105701 s -0.135901 0.135901 -0.211402 0.166102 a 0.996608 0.996608 0 0 1 -0.604005 -0.135901 c -0.166101 0 -0.166101 0.211402 -0.256702 0.317102 c 0.271802 0.090601 0.543605 0.256702 0.815407 0.362403 s 0.634205 0.105701 0.966408 0.196302 h 0.090601 a 10.857 10.857 0 0 1 1.25331 0.196302 a 9.73958 9.73958 0 0 0 1.29861 0.573804 c 0.830507 0.211402 1.99322 -0.120801 2.83882 0 s 2.00832 0.815407 3.02003 1.05701 a 18.2561 18.2561 0 0 1 2.15932 0.407704 c 0.936208 0.392603 1.69121 1.04191 2.68782 1.35901 a 9.06008 9.06008 0 0 0 1.51001 0.226502 h 0.392603 a 7.76147 7.76147 0 0 1 1.20801 0.196302 a 3.02003 3.02003 0 0 1 0.528505 0.0755 c 0.498304 0.196302 0.890907 0.604005 1.38921 0.800307 s 1.16271 0.286902 1.69121 0.528504 s 0.604005 0.347303 0.906007 0.483205 s 0.770106 0.211402 1.10231 0.377503 c 0.558705 0.271802 1.01171 0.755006 1.51001 1.02681 l 0.664406 0.302003 c 0.302003 0.120801 0.604005 0.166101 0.890907 0.302002 c 0.709706 0.362403 1.23821 1.05701 1.97812 1.37411 h 0.211402 c 0.105701 0 0.226502 0.105701 0.332202 0.120801 c 0.362403
790.105701 0.664406 0.090601 1.04191 0.166101 s 0.604005 0.181202 0.890908 0.241602 h 0.347303 c 0.422804 0 0.890907 0.135901 1.29861 0.241602 a 6.43265 6.43265 0 0 1 1.28351 0.543605 c 0.151001 0 0.286902 0.211402 0.437904 0.286902 q 0.679506 0.347303 1.40431 0.634206 a 13.0616 13.0616 0 0 0 1.76672 0.332202 a 18.6034 18.6034 0 0 1 1.88751 0.679506 c 0.362403 0.135901 0.755006 0.120801 1.11741 0.286903 s 0.437904 0.271802 0.679506 0.377503 s 0.966408 0.392603 1.41941 0.634205 l 0.951307 0.694606 l 0.936208 0.649305 a 1.87242 1.87242 0 0 0 0.619106 0.468104 a 2.37072 2.37072 0 0 0 0.347302 0 a 7.27826 7.27826 0 0 0 1.02681 0.226502 H 901.715 a 3.94113 3.94113 0 0 1 0.422803 0 a 2.61232 2.61232 0 0 1 0.845608 0.422804 l 0.302002 0.241602 c 0.347303 0.181202 0.739906 0.241602 1.11741 0.407703 a 2.76332 2.76332 0 0 0 0.724807 0.271802 a 3.60893 3.60893 0 0 0 1.23821 -0.151001 a 2.74822 2.74822 0 0 1 0.890907 -0.181201 a 10.1473 10.1473 0 0 1 2.31032 0.332202 a 7.55006 7.55006 0 0 1 0.981508 0.332203 a 4.80184 4.80184 0 0 1 0.558705 0.407704 c 0.181202 0.120801 0.362403 0.211402 0.528504 0.332202 s 0.422804 0.437904 0.588905 0.483205 a 3.14083 3.14083 0 0 0 0.377503 0 l 0.800307 0.0755 h 0.422804 c 0.181202 0 0.377503 0.075501 0.528504 0.090601 h 0.483204 s 0.166101 0.090601 0.241602 0.105701 s 0.362403 0 0.528505 0 a 1.76672 1.76672 0 0 1 0.362403 0.135901 s 0.120801 0.135901 0.211401 0.151001 s 0.286902 -0.090601 0.392604 0 h 0.151001 c -0.347303 0.060401 -0.528504 -0.332203 -0.830507 -0.453004 Z M 916.815 1002.26 s 0.0151 -0.0302 0 0 Z"},{path:"M493.3 591.9c-29.2 0-57.1-7.2-81.9-21.5-46.3-26.8-76.4-75-84.6-135.9-8.1-60 6.1-125.2 39.8-183.6l8.5 4.9-8.5-4.9c33.7-58.4 83.1-103.3 139.1-126.3 56.8-23.4 113.7-21.5 160 5.3s76.4 75 84.6 135.9c8.1 60-6.1 125.2-39.8 183.6s-83.1 103.3-139.1 126.3c-26.3 10.7-52.7 16.2-78.1 16.2z m90.5-464c-22.8 0-46.7 4.9-70.6 14.7-52 21.4-98 63.3-129.6 118s-44.9 115.5-37.4 171.2c7.4 54.8 34 97.9 75 121.6 41 23.7 91.7 25.1 142.8 4.1 52-21.4 98-63.3 129.6-118 31.6-54.7 44.9-115.5 37.4-171.2-7.4-54.8-34-97.9-75-121.6-21.8-12.5-46.3-18.8-72.2-18.8z M359.2 749.8l-78-46.1 4.1-8.2c24.5-48.4 34-101.4 26.7-149.2-1.8-11.9-4.7-23.5-8.5-34.3l-5-13.9h0.3c-1.2-3.5-2.4-7.1-3.2-9.9-11.3-38.3-14-81.5-7.8-125 6.5-45.4 22-89.6 46.1-131.4 40-69.2 98.6-122.2 165.1-149.2 67.4-27.4 134.8-24.9 189.9 6.9 55.1 31.8 90.9 89 100.9 161 9.9 71.1-6.7 148.4-46.7 217.6-26.9 46.6-63.1 86.7-104.7 116-40.4 28.4-84.8 46-128.5 50.7-55.9 11.8-109 50.9-145.6 107.2l-5.1 7.8z m-52.3-53.6l46.3 27.4c39.3-56.6 94.8-95.8 153.4-107.9l1-0.1c84.2-9 168-69.1 218.8-157.1 77.5-134.3 56.4-292.2-47.1-351.9-49.7-28.7-111.1-30.7-172.8-5.7C444 126.1 388.7 176.2 351 241.6c-22.8 39.6-37.5 81.4-43.7 124.4-5.8 40.8-3.3 81.1 7.2 116.7 1.3 4.4 3.7 11.3 5.4 16.4 0.6 1.9 1.2 3.5 1.6 4.7 0.2 0.6 0.4 1.3 0.6 2 4.2 11.9 7.3 24.5 9.3 37.6 7.5 49.1-1.2 103-24.5 152.8z M343.2 697.6c-1.7 0-3.3-0.4-4.9-1.3-4.5-2.6-6.2-8.3-3.8-12.9 20.7-40.7 24.9-80.3 13.2-124.7-1.2-4.5 0.9-9.1 5-11.2 4.1-2.1 9.1-1 12 2.5 10.9 13.4 23.8 24.4 38.5 32.9 15.2 8.8 31.8 14.5 49.6 17.2 4.6 0.7 8.1 4.5 8.3 9.1 0.3 4.6-2.8 8.8-7.3 10-44.7 11.8-77.3 35.3-102.4 74-1.9 2.8-5 4.4-8.2 4.4z m29.4-112.2c2.1 19 1.3 37.4-2.4 55.6 14-12.4 29.6-22.3 47.1-29.9-8.3-3.1-16.3-6.8-24-11.3-7.3-4.2-14.2-9-20.7-14.4zM228.4 960.3c-3.4 0-6.7-0.9-9.7-2.6l-46.4-26.8c-4.5-2.6-7.7-6.8-9.1-11.8-1.3-5-0.7-10.3 1.9-14.8l125.6-217.5 80.1 46.2-125.5 217.5c-2.6 4.5-6.8 7.7-11.8 9.1-1.7 0.4-3.4 0.7-5.1 0.7zM182.2 914l46.2 26.7 115.8-200.5-46.2-26.7L182.2 914z M272.1 741.12l4.9-8.487 61.054 35.25-4.9 8.486zM506.208 141.772l4.9-8.487 233.127 134.6-4.9 8.487zM448.237 178.29l4.9-8.487 285.26 164.7-4.9 8.487zM403.619 222.658l4.9-8.487 312.886 180.65-4.9 8.487zM373.244 275.148l4.9-8.487 312.886 180.65-4.9 8.487zM350.074 331.889l4.9-8.487 305.698 176.5-4.9 8.487zM329.416 390.013l4.9-8.487 279.199 161.2-4.9 8.487z M337.028 455.141l191.75-332.11 8.486 4.9-191.75 332.11zM368.464 519.27l228.45-395.675 8.486 4.9L376.95 524.17zM413.319 560.162l241.65-418.538 8.487 4.9-241.65 418.538zM471.101 578.562l229.35-397.235 8.487 4.9-229.35 397.235zM543.854 571.167l186.95-323.797 8.487 4.9-186.95 323.797z M786 872.5c-6.6 0-13.3-0.9-19.9-2.7-19.5-5.3-35.7-17.8-45.7-35.3-20.7-36.1-8.2-82.3 27.9-103 36.1-20.7 82.3-8.2 103 27.9 20.7 36.1 8.2 82.3-27.9 103-11.5 6.7-24.4 10.1-37.4 10.1z m-0.2-131.4c-9.4 0-19 2.4-27.7 7.4-26.7 15.3-36 49.6-20.7 76.3 7.4 13 19.5 22.2 33.9 26.2 14.4 3.9 29.5 2 42.4-5.5 13-7.4 22.2-19.5 26.2-33.9 3.9-14.4 2-29.5-5.5-42.4-10.3-18-29.2-28.1-48.6-28.1z M785 837.2c-14.5 0-28.6-7.5-36.3-21l8.5-4.9c8.8 15.3 28.4 20.6 43.7 11.8 15.3-8.8 20.6-28.4 11.8-43.7l8.5-4.9c11.5 20 4.5 45.5-15.5 57-6.5 3.9-13.6 5.7-20.7 5.7z M748.7 816.2c-6.1-10.6-17.9-16.8-30-16l-0.7-9.8c15.9-1.1 31.3 7.1 39.2 20.9l-8.5 4.9z M785 837.2c-14.5 0-28.6-7.5-36.3-21l8.5-4.9c8.8 15.3 28.4 20.6 43.7 11.8 7.4-4.2 12.7-11.1 15-19.4 2.2-8.2 1.1-16.9-3.1-24.3-5.5-9.6-15.4-15.6-26.5-16.1h-0.1c-13.8-0.9-26.3-8.9-33.5-21.4l8.5-4.9c5.4 9.4 15.2 15.8 25.6 16.5 14.4 0.6 27.4 8.4 34.5 21 5.5 9.7 7 20.9 4.1 31.7-2.9 10.8-9.9 19.8-19.5 25.3-6.7 3.9-13.8 5.7-20.9 5.7z M720.6 682c-3.4 0-6.7-1.8-8.5-4.9l-41.6-72.8c-2.7-4.7-1.1-10.7 3.6-13.3 4.7-2.7 10.7-1.1 13.3 3.6l41.6 72.8c2.7 4.7 1.1 10.7-3.6 13.3-1.5 0.8-3.2 1.3-4.8 1.3z M769.8 694c-3.4 0-6.7-1.8-8.5-4.9l-20.8-36.4c-2.7-4.7-1.1-10.7 3.6-13.3 4.7-2.7 10.7-1.1 13.3 3.6l20.8 36.4c2.7 4.7 1.1 10.7-3.6 13.3-1.4 0.9-3.1 1.3-4.8 1.3z"},{path:"M919.826 64.962l32.138 27.244-4.395 31.133-37.256 6.825-46.017 100.419-30.519-3.673-215.268 237.871c-14.847 39.758-5.926 61.609 9.759 75.011 40.698 34.799 86.902-7.806 87.799-0.022 10.452 89.78-75.177 80.816-111.928 97.558-109.296 49.791-37.169 122.438-10
795.349 237.134-149.11 273.074-602.617-153.189-346.957-327.549 110.569-74.657 202.877-12.507 239.699-120.574 20.471-59.997 61.949-187.191 119.416-185.579 24.578 0.687 13.763 26.131 6.216 38.585-17.174 38.818-23.766 90.482 33.035 118.355l228.93-222.38-12.332-28.958 124.244-75.769 28.785-5.631zM388.352 534.14l-18.361 20.855 101.808 89.54 18.36-20.862-101.807-89.533z m59.823-69.301l-18.36 20.855 101.807 89.541 18.36-20.862-101.807-89.534zM261.852 675.256l-41.333 41.137 105.031 98.844 39.309-39.114 95.49-28.113 3.947-1.164 2.081-3.563 5.421-9.253 9.165 4.887 24.535-46.01-36.679-19.553-24.533 46.002 9.165 4.879-2.919 4.959-100.058 29.471-88.622-83.409z"},{path:"M945.344 586.304c-13.056-93.44-132.48-98.048-132.48-98.048 0-29.888-39.808-47.424-39.808-47.424L201.664 440.832c-36.736 0-42.112 51.264-42.112 51.264 7.68 288 181.44 382.976 181.44 382.976l299.456 0c42.88-31.36 101.888-122.56 101.888-122.56 9.216 3.072 72.768-0.832 97.984-6.144C865.6 740.992 958.336 679.68 945.344 586.304zM365.568 825.28c-145.472-105.664-130.944-328.576-130.944-328.576l80.448 0c-44.416 126.4 43.648 285.696 55.872 307.904C383.232 826.816 365.568 825.28 365.568 825.28zM833.472 694.272c-37.568 22.272-65.152 7.68-65.152 7.68 39.04-54.4 42.112-159.296 42.112-159.296 6.848 2.304 12.288-26.048 61.312 23.744C920.768 616.128 871.04 672.064 833.472 694.272z M351.68 129.856c0 0-119.424 72.832-44.416 140.928 75.008 68.16 68.16 93.44 24.512 153.216 0 0 81.92-41.344 71.168-104.192s-89.6-94.208-72.768-137.792C347.136 138.304 351.68 129.856 351.68 129.856z M615.232 91.648c0 0-119.488 72.832-44.352 140.928 74.944 68.16 68.032 93.44 24.448 153.216 0 0 81.984-41.344 71.232-104.192-10.688-62.784-89.6-94.208-72.832-137.792C610.624 100.032 615.232 91.648 615.232 91.648z M491.136 64c0 0-74.304 6.144-88.128 78.144C389.248 214.144 435.968 240.96 471.936 276.992 507.904 312.96 492.608 380.352 452.032 427.904c0 0 72.768-25.344 89.6-94.976 16.832-69.76-17.344-94.272-52.8-134.784C453.312 157.504 456.64 83.968 491.136 64z"}]}};S5=f([F()],S5);let E5=class extends I{get tag(){return"PenCase"}getUI(e,t){const i=new Qs(e);i.cornerRadius=30;const s=this.colors;switch(t){case 0:i.setStyle({fill:s[0],windingRule:"evenodd"}),i.roundRect(0,0,100,100,30).arc(50,50,25),i.setStyle({fill:s[2]}),i.arc(50,50,20);break;case 1:i.setStyle({fill:{type:"linear",stops:[{offset:0,color:s[0]},{offset:1,color:s[2]}]},windingRule:"evenodd"}),i.roundRect(0,0,100,100,30).arc(50,50,20),i.setStyle({fill:"white"}),i.arc(75,75,5);break;case 2:i.setStyle({fill:{type:"radial",stops:[{offset:0,color:s[0]},{offset:1,color:s[2]}]}}),i.roundRect(0,0,100,100,30),i.setStyle({y:-5,fill:"white"}),i.moveTo(40,30).bezierCurveTo(70,30,90,60,63,80).quadraticCurveTo(50,88,40,80).bezierCurveTo(10,60,50,40,40,30);break;case 3:i.setStyle({fill:{type:"radial",stops:[{offset:0,color:s[5]},{offset:1,color:s[4]}]}}),i.roundRect(0,0,100,100,30),i.add(new Bt({x:20,y:20,width:60,height:60,innerRadius:.5,startAngle:-60,endAngle:180,cornerRadius:5,fill:"white"}));break;case 4:i.setStyle({fill:{type:"radial",stops:[{offset:0,color:s[5]},{offset:1,color:s[4]}]},windingRule:"evenodd"}),i.roundRect(0,0,100,100,30).arc(50,50,25),i.setStyle({fill:{type:"image",url:"/image/leafer.jpg"}}),i.arc(50,50,20);break;case 5:i.setStyle({stroke:s[5],strokeWidth:4,strokeAlign:"inside"}),i.roundRect(0,20,100,60,30),i.setStyle({fill:s[5]}),i.arc(30,50,23),i.add(new j({x:60,y:38,fill:s[5],fontSize:16,text:"ON"}))}return i}getData(){return[{},{},{},{},{},{}]}};E5=f([F()],E5);let T5=class extends I{get tag(){return"BoxCase"}getUI(e,t){const i=new k(e);i.fill=this.colors[t];const s=new Bt(e);switch(s.fill=this.colors[t+2],s.x=s.y=60,s.scaleX=s.scaleY=.5,s.draggable=!0,t){case 0:case 3:i.add(s);break;case 1:case 2:case 4:i.overflow="hide",i.add(s);break;case 5:i.fill=[{type:"solid",color:this.colors[t]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.3}],i.overflow="hide";const n=new Bt({x:50,y:50,width:40,height:40,fill:"black"});n.mask=!0,i.add(n),s.fill=this.colors[t-3],i.add(s);break;case 6:i.set({x:e.x+20,y:e.y+40,width:void 0,height:void 0,fill:"#FF4B4B",cornerRadius:20,children:[{tag:"Text",text:"Welcome to LeaferJS",fill:"black",padding:[10,20]}]})}return i}getData(){return[{stroke:"rgba(0,0,0,0.4)",strokeWidth:4},{stroke:"rgba(0,0,0,0.4)",strokeWidth:4,cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20}]}};T5=f([F()],T5);let A5=class extends I{get tag(){return"FrameCase"}getUI(e,t){const i=new n0(e);i.fill=this.colors[t];const s=new Bt(e);switch(s.fill=this.colors[t+2],s.x=s.y=60,s.scaleX=s.scaleY=.5,s.draggable=!0,t){case 0:case 3:i.add(s);break;case 1:i.fill={type:"linear",from:{type:"percent",x:0,y:0},to:{type:"percent",x:1,y:1},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},i.add(s);break;case 2:i.overflow="show",i.add(s);break;case 4:i.shadow={x:0,y:0,blur:20,color:this.colors[t]+"AA"},i.add(s);break;case 5:i.fill=[{type:"solid",color:this.colors[t]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.3}],i.innerShadow={x:0,y:0,blur:20,color:"#00000050"},i.overflow="show";const n=new Bt({x:50,y:50,width:40,height:40,fill:"black"});n.mask=!0,i.add(n),s.fill=this.colors[t-3],i.add(s)}return i}getData(){return[{stroke:"rgb(0,0,0)",strokeWidth:4,fill:"white"},{cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{strokeWidth:4,cornerRadius:20},{strokeWidth:4,cornerRadius:20}]}};A5=f([F()],A5);let L5=class extends I{get tag(){return"TextCase"}getUI(e,t){return t>=6?(e.x+=20,e.y+=40):(e.textAlign="center",e.verticalAlign="middle"),new j(e)}
79getData(){return[{fontSize:100,text:"A",fill:{type:"linear",from:{type:"percent",x:0,y:0},to:{type:"percent",x:1,y:1},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},italic:!0,fontWeight:"bold",stroke:"#00000060",strokeAlign:"inside",strokeWidth:1},{fontSize:100,text:"A",fontWeight:"bold",italic:!0},{fontSize:100,text:"A",fontWeight:"bold",italic:!0,fill:[{type:"solid",color:"#FEB027"},{type:"image",url:"/image/leafer.jpg",mode:"cover"}]},{fill:this.colors[2],text:`Action is the proper fruit of knowledge. 80Action is the proper fruit of knowledge.`,fontSize:14,textAlign:"left",verticalAlign:"top",textOverflow:"...",padding:[10,0,10,0]},{text:"Action is the proper fruit of knowledge.",fontSize:14,textAlign:"center",verticalAlign:"middle",textDecoration:"delete",textCase:"title"},{text:"Action is the proper fruit of knowledge.",fontSize:11,textAlign:"right",verticalAlign:"bottom",textDecoration:"under",textCase:"upper",shadow:{x:0,y:0,blur:4,color:this.colors[5]+"AA"},lineHeight:{type:"percent",value:2}},{width:void 0,height:void 0,fill:"#32cd79",text:"Welcome to LeaferJS"},{width:void 0,height:void 0,fill:"black",text:"Welcome to LeaferJS",padding:10,boxStyle:{fill:"#32cd79",stroke:"black",cornerRadius:6},hoverStyle:{boxStyle:{fill:"#FF4B4B",cornerRadius:20}}}]}};L5=f([F()],L5);let R5=class extends I{get tag(){return"TextWrapCase"}getUI(e){const t=new j(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=e.x+"px",s.top=e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(O(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}s.lineHeight=t.__.__lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.__letterSpacing+"px"),s.wordWrap="break-word"}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw50834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"},textAlign:"left",verticalAlign:"top"},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 81 82 Better handling of slope and stairs movement 83 Implementing camera collision to prevent clipping 84 Adding a dust effect triggered by character movement or jumps 85 Developing a character animation state machine for seamless animation transitions 86 Contributions 87 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share. 88 89 Thank you!`,lineHeight:{value:1.5,type:"percent"}},{lineHeight:{value:1.5,type:"percent"},text:`Found 3,665 matches in 32 milliseconds. 90 91 ææ¬ 92 /zh-CN/docs/Web/SVG/Tutorial/Texts 93 94 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠95 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠96 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 97 98 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 99 100 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 101 102 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 103 104 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 105 106 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 107 108 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 109 110 `},{lineHeight:{value:1.5,type:"percent"},text:` 111 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 112 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 113 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
113§â¨âââªâ©ââµâ´â¥ââ ââââ½â 114 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 115 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 116 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 117 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},text:` 1182. 119These include most control characters and single characters from Unicode surrogate pairs. 120è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 121www.ibm.com 1223. 123Most of the important regular expression language operators are unescaped single characters . 124大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`},{lineHeight:{value:1.5,type:"percent"},text:` 125â ä¸ãè±ææ ç¹ç¬¦å·åç§°å¤§å ¨ââçèçâ å¦äºè¿ä¹å¤å¹´è±è¯äºï¼ä¸ºä»ä¹ä»æ¥æ²¡æäººå¾ç³»ç»å°ææä»¬è±ææ ç¹ç¬¦å·æä¹å¿µï¼+pluså å·ï¼æ£å·-minusåå·ï¼è´å·Â±plusorminusæ£è´å·Ãismultipliedbyä¹å·Ã·isdividedbyé¤å·ï¼isequaltoçäºå·â isnotequaltoä¸çäºå·â¡isequivalenttoå ¨çäºå·âisequaltoor 126æ¥çæ´å¤åç«ç»æ> 127 128ç¾åº¦æåº 129常ç¨çæ ç¹ç¬¦å·çè±æè¯´æ³ 1302022å¹´7æ14æ¥ :åå· colon [ËkÉÊlÉn]n.åå·; ç»è ;åå· semicolon [ËsemiËkÉÊlÉn] !æå¹å· exclamation mark [ËeksklÉËmeɪÊn]n.æå«; æå¹(è¯) ?é®å· questi... 131å¾®ä¿¡å ¬ä¼å¹³å°î« 132åç§æ ç¹ç¬¦å·çè±ææ¯ä»ä¹?çè¿é! 1332018å¹´7æ1æ¥ + plusãå å·ï¼æ£å· - minusãåå·ï¼è´å· ±ãplus or minusãæ£è´å· Ããis multiplied byãä¹å· ÷ãis divided byãé¤å· ï¼ãis equal toãçäºå· â ãis not equal toãä¸çäºå·... 134æ²ç²è±è¯î« 135è±è¯çæ ç¹ç¬¦å·æåªäº - ç¾åº¦ç¥é 136 1373个åç - åçæ¶é´: 2021å¹´8æ24æ¥ 138 139æä½³çæ¡: è±è¯ä¸å ±æ14个æ ç¹ç¬¦å·ï¼å嫿¯ï¼the period ï¼å¥å· ï¼ï¼question mark ï¼é®å·ï¼ï¼exclamation pointï¼æå¹å·ï¼ï¼ ... 140æ´å¤å ³äºæ ç¹ç¬¦å· è±æçé®é¢>> 141ç¾åº¦ç¥éî« 142大家è¿å¨æ 143åç§æ ç¹ç¬¦å·ç¨è±ææä¹è¯´è±ææ ç¹ç¬¦å·æ ¼å¼å¾çáªá©á©ç¹æ®ç¬¦å·è±è¯æ ç¹ç¬¦å·ä½¿ç¨è§åè¯æå¸¸ç¨æ ç¹ç¬¦å·å¤§å ¨100个æ ç¹ç¬¦å·é¢åçæ¡ 144è±ææä¹è¯´ | æ ç¹ç¬¦å· 1452022å¹´8æ5æ¥ "æ ç¹ç¬¦å·"è±æå«punctuation, æè punctuation markã ä»å¤©è¯´è¯´æ¯ä¸ªæ ç¹ç¬¦å·ç¨è±ææä¹è¯´; â 01 â å¥å· âå䏿ä¸ä¸æ ·,è±æçå¥å·æ¯å®å¿çç¹; full stop æ¯... 146个人å¾ä¹¦é¦î« 147è±ææ ç¹ç¬¦å·,ä½ ççä¼ç¨å?3åéæä½ å½»åºææè±è¯æ ç¹ç¬¦å·! 1482019å¹´1æ2æ¥ Punctuation Marks List æ ç¹ç¬¦å·å表 The Full Stop (.) å¥å·ã The full stops, also called the periods are one of the most commonly used punctuation marks; analysis of tex... 149满满æºå·±çæºî« 150åç§æ ç¹ç¬¦å·ç¨è±æé½æä¹è¯´? 1512017å¹´11æ29æ¥ Punctuation Marks æ ç¹ç¬¦å· 1 , éå·comma 2 . å¥å·period(ç¾å½è±è¯)/full stop(è±å½è±è¯) 3 ? é®å·question mark 4 : åå·colon 5 ; åå·semicolon 6 ! æ... 152å¾®ä¿¡å ¬ä¼å¹³å°î« 153干货-å¸¸è§æ ç¹ç¬¦å·çè±æè¡¨è¾¾_in 1542021å¹´4æ30æ¥ è±ææ ç¹ å¥å·(.):full stop/full point/periodãæçæ¶å,ä½ æ³è¡¨è¾¾æè¯´å®è¿å¥è¯äº,ä¹å¯ä»¥ç¨periodè¿ä¸ªè¯å å¼ºè¯æ°ãæ¯å¦âI think Red Scarf is the best, period.â å¿å¿â¦â¦ éå·... 155æçç½î« 156î»åç§æ ç¹ç¬¦å·çè±æåè¯ - ç¾åº¦æåº 1573页 å叿¶é´: 2022å¹´11æ05æ¥ 158åç§æ ç¹ç¬¦å·çè±æåè¯ ï¼period å¥å· ï¼comma éå· ï¼colon åå· ï¼semicolon åå· ï¼exclamation æå¹å· ï¼question mark é®å· ï¿£hyphen è¿å符 ' apostrophe çç¥å·ï¼æ... 159ç¾åº¦æåºî« 160`}]}};R5=f([F()],R5);let P5=class extends I{get tag(){return"TextLetterSpaceCase"}getUI(e){const t=new j(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=e.x+"px",s.top=e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(O(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}s.lineHeight=t.__.__lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.__letterSpacing+"px"),s.wordWrap="break-word"}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;
160+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw0.5834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"}},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 161 162 Better handling of slope and stairs movement 163 Implementing camera collision to prevent clipping 164 Adding a dust effect triggered by character movement or jumps 165 Developing a character animation state machine for seamless animation transitions 166 Contributions 167 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share help. 168 169 Thank you!`,lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"}},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:`Found 3,665 matches in 32 milliseconds. 170 171 ææ¬ 172 /zh-CN/docs/Web/SVG/Tutorial/Texts 173 174 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠175 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠176 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 177 178 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 179 180 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 181 182 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 183 184 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 185 186 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 187 188 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 189 190 `},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:` 191 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 192 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 193 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
193§â¨âââªâ©ââµâ´â¥ââ ââââ½â 194 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 195 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 196 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 197 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:` 198 2. 199 These include most control characters and single characters from Unicode surrogate pairs. 200 è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 201 www.ibm.com 202 3. 203 Most of the important regular expression language operators are unescaped single characters . 204 大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:` 205 â ä¸ãè±ææ ç¹ç¬¦å·åç§°å¤§å ¨ââçèçâ å¦äºè¿ä¹å¤å¹´è±è¯äºï¼ä¸ºä»ä¹ä»æ¥æ²¡æäººå¾ç³»ç»å°ææä»¬è±ææ ç¹ç¬¦å·æä¹å¿µï¼+pluså å·ï¼æ£å·-minusåå·ï¼è´å·Â±plusorminusæ£è´å·Ãismultipliedbyä¹å·Ã·isdividedbyé¤å·ï¼isequaltoçäºå·â isnotequaltoä¸çäºå·â¡isequivalenttoå ¨çäºå·âisequaltoor 206 æ¥çæ´å¤åç«ç»æ> 207 208 ç¾åº¦æåº 209 常ç¨çæ ç¹ç¬¦å·çè±æè¯´æ³ 210 2022å¹´7æ14æ¥ :åå· colon [ËkÉÊlÉn]n.åå·; ç»è ;åå· semicolon [ËsemiËkÉÊlÉn] !æå¹å· exclamation mark [ËeksklÉËmeɪÊn]n.æå«; æå¹(è¯) ?é®å· questi... 211 å¾®ä¿¡å ¬ä¼å¹³å°î« 212 åç§æ ç¹ç¬¦å·çè±ææ¯ä»ä¹?çè¿é! 213 2018å¹´7æ1æ¥ + plusãå å·ï¼æ£å· - minusãåå·ï¼è´å· ±ãplus or minusãæ£è´å· Ããis multiplied byãä¹å· ÷ãis divided byãé¤å· ï¼ãis equal toãçäºå· â ãis not equal toãä¸çäºå·... 214 æ²ç²è±è¯î« 215 è±è¯çæ ç¹ç¬¦å·æåªäº - ç¾åº¦ç¥é 216 217 3个åç - åçæ¶é´: 2021å¹´8æ24æ¥ 218 219 æä½³çæ¡: è±è¯ä¸å ±æ14个æ ç¹ç¬¦å·ï¼å嫿¯ï¼the period ï¼å¥å· ï¼ï¼question mark ï¼é®å·ï¼ï¼exclamation pointï¼æå¹å·ï¼ï¼ ... 220 æ´å¤å ³äºæ ç¹ç¬¦å· è±æçé®é¢>> 221 ç¾åº¦ç¥éî« 222 大家è¿å¨æ 223 åç§æ ç¹ç¬¦å·ç¨è±ææä¹è¯´è±ææ ç¹ç¬¦å·æ ¼å¼å¾çáªá©á©ç¹æ®ç¬¦å·è±è¯æ ç¹ç¬¦å·ä½¿ç¨è§åè¯æå¸¸ç¨æ ç¹ç¬¦å·å¤§å ¨100个æ ç¹ç¬¦å·é¢åçæ¡ 224 è±ææä¹è¯´ | æ ç¹ç¬¦å· 225 2022å¹´8æ5æ¥ "æ ç¹ç¬¦å·"è±æå«punctuation, æè punctuation markã ä»å¤©è¯´è¯´æ¯ä¸ªæ ç¹ç¬¦å·ç¨è±ææä¹è¯´; â 01 â å¥å· âå䏿ä¸ä¸æ ·,è±æçå¥å·æ¯å®å¿çç¹; full stop æ¯... 226 个人å¾ä¹¦é¦î« 227 è±ææ ç¹ç¬¦å·,ä½ ççä¼ç¨å?3åéæä½ å½»åºææè±è¯æ ç¹ç¬¦å·! 228 2019å¹´1æ2æ¥ Punctuation Marks List æ ç¹ç¬¦å·å表 The Full Stop (.) å¥å·ã The full stops, also called the periods are one of the most commonly used punctuation marks; analysis of tex... 229 满满æºå·±çæºî« 230 åç§æ ç¹ç¬¦å·ç¨è±æé½æä¹è¯´? 231 2017å¹´11æ29æ¥ Punctuation Marks æ ç¹ç¬¦å· 1 , éå·comma 2 . å¥å·period(ç¾å½è±è¯)/full stop(è±å½è±è¯) 3 ? é®å·question mark 4 : åå·colon 5 ; åå·semicolon 6 ! æ... 232 å¾®ä¿¡å ¬ä¼å¹³å°î« 233 干货-å¸¸è§æ ç¹ç¬¦å·çè±æè¡¨è¾¾_in 234 2021å¹´4æ30æ¥ è±ææ ç¹ å¥å·(.):full stop/full point/periodãæçæ¶å,ä½ æ³è¡¨è¾¾æè¯´å®è¿å¥è¯äº,ä¹å¯ä»¥ç¨periodè¿ä¸ªè¯å å¼ºè¯æ°ãæ¯å¦âI think Red Scarf is the best, peri
234od.â å¿å¿â¦â¦ éå·... 235 æçç½î« 236 î»åç§æ ç¹ç¬¦å·çè±æåè¯ - ç¾åº¦æåº 237 3页 å叿¶é´: 2022å¹´11æ05æ¥ 238 åç§æ ç¹ç¬¦å·çè±æåè¯ ï¼period å¥å· ï¼comma éå· ï¼colon åå· ï¼semicolon åå· ï¼exclamation æå¹å· ï¼question mark é®å· ï¿£hyphen è¿å符 ' apostrophe çç¥å·ï¼æ... 239 ç¾åº¦æåºî« 240 `}]}};P5=f([F()],P5);let F5=class extends I{get tag(){return"TextSpaceCase"}getUI(e){const t=new j(e),i=document.createElement("div");return document.body.appendChild(i),setTimeout(()=>{const{style:s}=i,n=t.getBounds("box","local");if(s.position="absolute",s.left=n.x+"px",s.top=n.y+"px",s.width=n.width+"px",s.height=n.height+"px",s.boxSizing="border-box",s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let r;const o=t.textDecoration;switch(O(o)?(r=o.type,o.color&&(s.textDecorationColor=Ct.string(o.color))):r=o,r){case"under":r="underline";break;case"delete":r="line-through";break;case"under-delete":r="underline line-through"}s.textDecoration=r}if(s.lineHeight=t.__.__lineHeight+"px",s.wordWrap="break-word",t.letterSpacing&&(s.letterSpacing=t.__.__letterSpacing+"px"),t.paraIndent&&(s.textIndent=t.paraIndent+"px"),t.padding&&(et(t.padding)?s.padding=t.padding.map(r=>r+"px").join(" "):s.padding=t.padding+"px"),String(t.text).split(` 241`).map((r,o)=>{const a=document.createElement("p");a.innerText=r||"_",a.style.marginTop=(o>0&&t.paraSpacing||0)+"px",a.style.marginBottom="0px",i.appendChild(a)}),t.verticalAlign)switch(s.display="flex",s.flexDirection="column",t.verticalAlign){case"middle":s.justifyContent="center";break;case"bottom":s.justifyContent="flex-end"}}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw50834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"}},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 242 243 Better handling of slope and stairs movement 244 Implementing camera collision to prevent clipping 245 Adding a dust effect triggered by character movement or jumps 246 Developing a character animation state machine for seamless animation transitions 247 Contributions 248 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share help. 249 250 Thank you!`,lineHeight:{value:1.5,type:"percent"},textAlign:"justify",paraIndent:40,paraSpacing:20,fontWeight:300},{lineHeight:{value:1.5,type:"percent"},textAlign:"justify",paraIndent:40,padding:20,text:`Found 3,665 matches in 32 milliseconds. 251 252 ææ¬ 253 /zh-CN/docs/Web/SVG/Tutorial/Texts 254 255 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠256 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠257 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 258 259 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 260 261 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 262 263 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 264 265 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 266 267 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 268 269 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 270 271 `},{lineHeight:{value:1.5,type:"percent"},padding:[20,10,10,40],text:` 272 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 273 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 274 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
274§â¨âââªâ©ââµâ´â¥ââ ââââ½â 275 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 276 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 277 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 278 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:` 279 2. 280 These include most control characters and single characters from Unicode surrogate pairs. 281 è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 282 www.ibm.com 283 3. 284 Most of the important regular expression language operators are unescaped single characters . 285 大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:` 286 â ä¸ãè±ææ ç¹ç¬¦å·åç§°å¤§å ¨ââçèçâ å¦äºè¿ä¹å¤å¹´è±è¯äºï¼ä¸ºä»ä¹ä»æ¥æ²¡æäººå¾ç³»ç»å°ææä»¬è±ææ ç¹ç¬¦å·æä¹å¿µï¼+pluså å·ï¼æ£å·-minusåå·ï¼è´å·Â±plusorminusæ£è´å·Ãismultipliedbyä¹å·Ã·isdividedbyé¤å·ï¼isequaltoçäºå·â isnotequaltoä¸çäºå·â¡isequivalenttoå ¨çäºå·âisequaltoor 287 æ¥çæ´å¤åç«ç»æ> 288 289 ç¾åº¦æåº 290 常ç¨çæ ç¹ç¬¦å·çè±æè¯´æ³ 291 2022å¹´7æ14æ¥ :åå· colon [ËkÉÊlÉn]n.åå·; ç»è ;åå· semicolon [ËsemiËkÉÊlÉn] !æå¹å· exclamation mark [ËeksklÉËmeɪÊn]n.æå«; æå¹(è¯) ?é®å· questi... 292 å¾®ä¿¡å ¬ä¼å¹³å°î« 293 åç§æ ç¹ç¬¦å·çè±ææ¯ä»ä¹?çè¿é! 294 2018å¹´7æ1æ¥ + plusãå å·ï¼æ£å· - minusãåå·ï¼è´å· ±ãplus or minusãæ£è´å· Ããis multiplied byãä¹å· ÷ãis divided byãé¤å· ï¼ãis equal toãçäºå· â ãis not equal toãä¸çäºå·... 295 æ²ç²è±è¯î« 296 è±è¯çæ ç¹ç¬¦å·æåªäº - ç¾åº¦ç¥é 297 298 3个åç - åçæ¶é´: 2021å¹´8æ24æ¥ 299 300 æä½³çæ¡: è±è¯ä¸å ±æ14个æ ç¹ç¬¦å·ï¼å嫿¯ï¼the period ï¼å¥å· ï¼ï¼question mark ï¼é®å·ï¼ï¼exclamation pointï¼æå¹å·ï¼ï¼ ... 301 æ´å¤å ³äºæ ç¹ç¬¦å· è±æçé®é¢>> 302 ç¾åº¦ç¥éî« 303 大家è¿å¨æ 304 åç§æ ç¹ç¬¦å·ç¨è±ææä¹è¯´è±ææ ç¹ç¬¦å·æ ¼å¼å¾çáªá©á©ç¹æ®ç¬¦å·è±è¯æ ç¹ç¬¦å·ä½¿ç¨è§åè¯æå¸¸ç¨æ ç¹ç¬¦å·å¤§å ¨100个æ ç¹ç¬¦å·é¢åçæ¡ 305 è±ææä¹è¯´ | æ ç¹ç¬¦å· 306 2022å¹´8æ5æ¥ "æ ç¹ç¬¦å·"è±æå«punctuation, æè punctuation markã ä»å¤©è¯´è¯´æ¯ä¸ªæ ç¹ç¬¦å·ç¨è±ææä¹è¯´; â 01 â å¥å· âå䏿ä¸ä¸æ ·,è±æçå¥å·æ¯å®å¿çç¹; full stop æ¯... 307 个人å¾ä¹¦é¦î« 308 è±ææ ç¹ç¬¦å·,ä½ ççä¼ç¨å?3åéæä½ å½»åºææè±è¯æ ç¹ç¬¦å·! 309 2019å¹´1æ2æ¥ Punctuation Marks List æ ç¹ç¬¦å·å表 The Full Stop (.) å¥å·ã The full stops, also called the periods are one of the most commonly used punctuation marks; analysis of tex... 310 满满æºå·±çæºî« 311 åç§æ ç¹ç¬¦å·ç¨è±æé½æä¹è¯´? 312 2017å¹´11æ29æ¥ Punctuation Marks æ ç¹ç¬¦å· 1 , éå·comma 2 . å¥å·period(ç¾å½è±è¯)/full stop(è±å½è±è¯) 3 ? é®å·question mark 4 : åå·colon 5 ; åå·semicolon 6 ! æ... 313 å¾®ä¿¡å ¬ä¼å¹³å°î« 314 干货-å¸¸è§æ ç¹ç¬¦å·çè±æè¡¨è¾¾_in 315 2021å¹´4æ30æ¥ è±ææ ç¹ å¥å·(.):full stop/full point/periodãæçæ¶å,ä½ æ³è¡¨è¾¾æè¯´å®è¿å¥è¯äº,ä¹å¯ä»¥ç¨periodè¿ä¸ªè¯å å¼ºè¯æ°ãæ¯å¦âI think Red Scarf is the best, period.â å¿å¿â¦â¦ éå·... 316 æçç½î« 317 î»åç§æ ç¹ç¬¦å·çè±æåè¯ - ç¾åº¦æåº 318 3页 å叿¶é´: 2022å¹´11æ05æ¥ 319 åç§æ ç¹ç¬¦å·çè±æåè¯ ï¼period å¥å· ï¼comma éå· ï¼colon åå· ï¼semicolon åå· ï¼exclamation æå¹å· ï¼question mark é®å· ï¿£hyphen è¿å符 ' apostrophe çç¥å·ï¼æ... 320 ç¾åº¦æåºî« 321 `}]}};F5=f([F()],F5);let M5=class extends I{get tag(){return"TextCaseCase"}getUI(e){const t=new j(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=e.x+"px",s.top=e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(O(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}if(s.lineHeight=t.__.lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.letterSpacing+"px"),t.paraIndent&&(s.textIndent=t.paraIndent+"px"),t.textCase!=="none")switch(t.textCase){case"title":s.textTransform="capitalize";break;case"upper":s.textTransform="uppercase";break;case"lower":s.textTransform="lowercase"}String(t.text).split(` 322`).map((n,r)=>{const o=document.createElement("p");o.innerText=n||"_",o.style.marginTop=(r>0&&t.paraSpacing||0)+"px",o.style.marginBottom="0px",i.appendChild(o)})}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;
322+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw50834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"},textCase:"upper"},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 323 324 Better handling of slope and stairs movement 325 Implementing camera collision to prevent clipping 326 Adding a dust effect triggered by character movement or jumps 327 Developing a character animation state machine for seamless animation transitions 328 Contributions 329 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share help. 330 331 Thank you!`,lineHeight:{value:1.5,type:"percent"},textCase:"title"},{lineHeight:{value:1.5,type:"percent"},textCase:"lower",text:`Found 3,665 matches in 32 milliseconds. 332 333 ææ¬ 334 /zh-CN/docs/Web/SVG/Tutorial/Texts 335 336 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠337 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠338 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 339 340 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 341 342 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 343 344 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 345 346 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 347 348 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 349 350 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 351 352 `},{lineHeight:{value:1.5,type:"percent"},text:` 353 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 354 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 355 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
355§â¨âââªâ©ââµâ´â¥ââ ââââ½â 356 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 357 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 358 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 359 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},textCase:"upper",text:` 360 2. 361 These include most control characters and single characters from Unicode surrogate pairs. 362 è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 363 www.ibm.com 364 3. 365 Most of the important regular expression language operators are unescaped single characters . 366 大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`}]}};M5=f([F()],M5);let D5=class extends I{get tag(){return"TextBoldCase"}getUI(e){const t=new j(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=0+e.x+"px",s.top=0+e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(O(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}s.lineHeight=t.__.__lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.letterSpacing+"px"),s.wordWrap="break-word"}),t}getData(){return[{fontSize:100,fontWeight:"thin",text:"A"},{fontSize:100,text:"A",fontWeight:"extra-light"},{fontSize:100,text:"A",fontWeight:"light"},{fontSize:100,text:"A",fontWeight:"normal"},{fontSize:100,text:"A",fontWeight:"medium"},{fontSize:100,text:"A",fontWeight:"semi-bold"},{fontSize:100,text:"A",fontWeight:"bold"},{fontSize:100,text:"A",fontWeight:"extra-bold"},{fontSize:100,text:"A",fontWeight:"black"}]}};D5=f([F()],D5);let O5=class extends I{get tag(){return"TextAlignCase"}getUI(e){const t=new j(e),i=document.createElement("div"),{style:s}=i;return s.position="absolute",s.left=0+e.x+"px",s.top=0+e.y+"px",s.width=e.width+"px",s.height=e.height+"px",document.body.appendChild(i),setTimeout(()=>{if(i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(O(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}if(s.lineHeight=t.__.__lineHeight+"px",s.wordWrap="break-word",t.verticalAlign)switch(s.display="flex",s.flexDirection="column",t.verticalAlign){case"middle":s.justifyContent="center";break;case"bottom":s.justifyContent="flex-end"}}),t}getData(){return[{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"left",verticalAlign:"top",textDecoration:"delete"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"center",verticalAlign:"top"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"right",verticalAlign:"top",textDecoration:"under"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},fontWeight:900,textAlign:"left",verticalAlign:"middle",textDecoration:"under"}
366,{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},fontWeight:900,textAlign:"center",verticalAlign:"middle",textDecoration:"delete"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},fontWeight:900,textAlign:"right",verticalAlign:"middle",textDecoration:"under"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"left",verticalAlign:"bottom",textDecoration:"under"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"center",verticalAlign:"bottom",textDecoration:"delete"},{text:"Action is the proper fruit of knowledge.",lineHeight:{value:1.5,type:"percent"},textAlign:"right",verticalAlign:"bottom"}]}};O5=f([F()],O5);let I5=class extends I{get tag(){return"TextOverflowCase"}getUI(e){const t=new j(e);e.textAlign="center",e.verticalAlign="middle";const i=document.createElement("div");return setTimeout(()=>{const{style:s}=i;if(s.position="absolute",s.left=e.x+"px",s.top=e.y+"px",s.width=e.width+"px",s.height=e.height+"px",i.innerText=String(t.text),s.fontFamily=t.fontFamily,s.fontSize=t.fontSize+"px",s.color=t.fill,t.italic&&(s.fontStyle="italic"),s.fontWeight=t.fontWeight,s.textAlign=t.textAlign,t.textDecoration){let n;const r=t.textDecoration;switch(O(r)?(n=r.type,r.color&&(s.textDecorationColor=Ct.string(r.color))):n=r,n){case"under":n="underline";break;case"delete":n="line-through";break;case"under-delete":n="underline line-through"}s.textDecoration=n}s.lineHeight=t.__.lineHeight+"px",t.letterSpacing&&(s.letterSpacing=t.__.letterSpacing+"px"),t.textOverflow!=="show"&&(s.textOverflow=t.textOverflow==="hide"?"clip":t.textOverflow)}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;+wosdsdfsdf<sdf<<M!-@~#@#$ ($&Jier}{23}|":?_(=34(ZA) Q!~-a@#$%%^^&*({(<')_+wezxsdfewrw -sdw wezxsdfewrw sdw50834'sd]><>P#($*(&#)@$))!~!_#_$+_SFLKSDFSDFKF?V><CXSD"D:EWROP[[];'sd.sdf-=90892748f04mr830dkKä¸â¦â¦*ä¼ã,åé¿é夫水ã<çµè´¹ `,lineHeight:{value:1.5,type:"percent"},textAlign:"justify",verticalAlign:"top",textOverflow:"...",height:0},{text:`As I continue to improve and expand the Floating Capsule Character Controller, here are some next steps I am considering: 367 368 Better handling of slope and stairs movement 369 Implementing camera collision to prevent clipping 370 Adding a dust effect triggered by character movement or jumps 371 Developing a character animation state machine for seamless animation transitions 372 Contributions 373 I appreciate your interest in this project! If you have any feedback, suggestions, or resources related to the controller or the next steps, please feel free to share. 374 375 Thank you!`,height:400,lineHeight:{value:3,type:"percent"},textAlign:"justify",textOverflow:"............."},{lineHeight:{value:1.5,type:"percent"},textOverflow:"...",textAlign:"center",text:`Found 3,665 matches in 32 milliseconds. 376 377 ææ¬ 378 /zh-CN/docs/Web/SVG/Tutorial/Texts 379 380 â¦Â« ä¸ä¸é¡µ ä¸ä¸é¡µ » å¨ SVG ä¸æä¸¤ç§æªç¶ä¸åçææ¬æ¨¡å¼ãä¸ç§æ¯åå¨å¾åä¸çææ¬ï¼å¦ä¸ç§æ¯ SVG åä½ãå ³äºåè æä»¬å°å¨æç¨çåé¢è¿è¡è®²è§£ï¼ç°å¨æä»¬ä¸»è¦éä¸åè ï¼åå¨å¾åä¸çææ¬ã⦠381 â¦åå½¢ç¶å ç´ ç±»ä¼¼ï¼å±æ§fillå¯ä»¥ç»ææ¬å¡«å é¢è²ï¼å±æ§strokeå¯ä»¥ç»ææ¬æè¾¹ï¼å½¢ç¶å ç´ åææ¬å ç´ é½å¯ä»¥å¼ç¨æ¸åæå¾æ¡ï¼ç¸æ¯è¾ CSS2.1 åªè½ç»å¶ç®åçå½©è²æåï¼SVG æ¾å¾æ´å ·æä¼å¿ã ææ¬çä¸ä¸ªè³å ³éè¦çé¨åæ¯å®æ¾ç¤ºçåä½ã⦠382 â¦SVG æä¾äºä¸äºå±æ§ï¼ç±»ä¼¼äºå®ä»¬ç CSS åè¡ï¼ç¨æ¥æ¿æ´»ææ¬éåºãâ¦`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",verticalAlign:"middle",height:5,text:`åé³èè¯åºæ¬é½æ¯é读é³è.å«æä¸¤ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¶åå°é读é³èåéé读é³èçåºåã 383 384 â åé³èè¯å ä¹é½æé读é³èå¯¹å¾ . 385 386 â¡åé³èåè¯60%以䏿¯ç¬¬ä¸ä¸ªé³èé读ï¼åé³èå¨è¯æ90%以䏿¯ç¬¬äºä¸ªé³èéè¯»ï¼ 387 388 â¢ä¸ä¸ªæä¸ä¸ªä»¥ä¸é³èçåè¯ä¸ææ¯è¾å¤§çä¸é¨åæ¯åæ°ç¬¬ä¸ä¸ªé³èéè¯»ï¼ 389 390 â£è½è¾¨æ¸ è¯å¤´ãè¯å¹²åè¯å°¾ç,ä¸è¬é½æ¯è¯å¹²éè¯»ï¼ 391 392 â¤å«æâtionâsion,âssionç忝ç»åç,è¯å®æ¯è¯¥åæ¯ç»ååç´§æ¨çé£ä¸ªçé³èé读. 393 394 åèèµææ¥æºï¼ç¾åº¦ç¾ç§-é³è 395 396 `},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",textAlign:"right",text:` 397 Iãæ ç¹ç¬¦å· Ë˨ââã ï½ââ¶âââï½ãããããããããï¼ãããããï¼ï¼ããï½ï½ 398 Jãæ°ååºå· â ⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫â â¡â¢â£â¤â¥â¦â§â¨â©ä¸äºä¸åäºå ä¸å «ä¹å 399 Kãæ°å¦ç¬¦å· ââ¡â ï¼â¤â¥ï¼ï¼â®â¯â·Â±ï¼ï¼Ã÷ï¼â«â®âââ
399§â¨âââªâ©ââµâ´â¥ââ ââââ½â 400 Lãåä½ç¬¦å· °â²ãï¼ï¿¡ï¿¥â°ï¼ âÂ¤ï¿ 401 Mãå¶è¡¨ç¬¦ ââââââââââââââââ â¡â¢â£|âââ¬ââ®â¯â°â±â²â³â¼â½â¾â¿ââââ 402 Nãç¹æ®ç¬¦å· §âââ ââââââ¡â â³â²â»ââââãï¼ï¼ï¼ \^_ 403 Oãè¡¥å æ¶é ââââ ââÎâ¤ã£â â â â â â â â â â å â¡ ãâ¡ âââ â⬠â â â© â â¨â¯ â·â ââ ââ³â¥ããâââââ£â¢â¥â²â¼â³â½â¿`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",text:` 4042. 405These include most control characters and single characters from Unicode surrogate pairs. 406è¿äºåç¬¦å æ¬å¤§å¤æ°çæ§å¶å符å;Unicode代ç对*surrogatepairï¼ä¸çå个å符ã 407www.ibm.com 4083. 409Most of the important regular expression language operators are unescaped single characters . 410大夿°éè¦çæ£å表达å¼è¯è¨è¿ç®ç¬¦é½æ¯é转ä¹çå个å符ã`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"...",text:` 411â ä¸ãè±ææ ç¹ç¬¦å·åç§°å¤§å ¨ââçèçâ å¦äºè¿ä¹å¤å¹´è±è¯äºï¼ä¸ºä»ä¹ä»æ¥æ²¡æäººå¾ç³»ç»å°ææä»¬è±ææ ç¹ç¬¦å·æä¹å¿µï¼+pluså å·ï¼æ£å·-minusåå·ï¼è´å·Â±plusorminusæ£è´å·Ãismultipliedbyä¹å·Ã·isdividedbyé¤å·ï¼isequaltoçäºå·â isnotequaltoä¸çäºå·â¡isequivalenttoå ¨çäºå·âisequaltoor 412æ¥çæ´å¤åç«ç»æ> 413 414ç¾åº¦æåº 415常ç¨çæ ç¹ç¬¦å·çè±æè¯´æ³ 4162022å¹´7æ14æ¥ :åå· colon [ËkÉÊlÉn]n.åå·; ç»è ;åå· semicolon [ËsemiËkÉÊlÉn] !æå¹å· exclamation mark [ËeksklÉËmeɪÊn]n.æå«; æå¹(è¯) ?é®å· questi... 417å¾®ä¿¡å ¬ä¼å¹³å°î« 418åç§æ ç¹ç¬¦å·çè±ææ¯ä»ä¹?çè¿é! 4192018å¹´7æ1æ¥ + plusãå å·ï¼æ£å· - minusãåå·ï¼è´å· ±ãplus or minusãæ£è´å· Ããis multiplied byãä¹å· ÷ãis divided byãé¤å· ï¼ãis equal toãçäºå· â ãis not equal toãä¸çäºå·... 420æ²ç²è±è¯î« 421è±è¯çæ ç¹ç¬¦å·æåªäº - ç¾åº¦ç¥é 422 4233个åç - åçæ¶é´: 2021å¹´8æ24æ¥ 424 425æä½³çæ¡: è±è¯ä¸å ±æ14个æ ç¹ç¬¦å·ï¼å嫿¯ï¼the period ï¼å¥å· ï¼ï¼question mark ï¼é®å·ï¼ï¼exclamation pointï¼æå¹å·ï¼ï¼ ... 426æ´å¤å ³äºæ ç¹ç¬¦å· è±æçé®é¢>> 427ç¾åº¦ç¥éî« 428大家è¿å¨æ 429åç§æ ç¹ç¬¦å·ç¨è±ææä¹è¯´è±ææ ç¹ç¬¦å·æ ¼å¼å¾çáªá©á©ç¹æ®ç¬¦å·è±è¯æ ç¹ç¬¦å·ä½¿ç¨è§åè¯æå¸¸ç¨æ ç¹ç¬¦å·å¤§å ¨100个æ ç¹ç¬¦å·é¢åçæ¡ 430è±ææä¹è¯´ | æ ç¹ç¬¦å· 4312022å¹´8æ5æ¥ "æ ç¹ç¬¦å·"è±æå«punctuation, æè punctuation markã ä»å¤©è¯´è¯´æ¯ä¸ªæ ç¹ç¬¦å·ç¨è±ææä¹è¯´; â 01 â å¥å· âå䏿ä¸ä¸æ ·,è±æçå¥å·æ¯å®å¿çç¹; full stop æ¯... 432个人å¾ä¹¦é¦î« 433è±ææ ç¹ç¬¦å·,ä½ ççä¼ç¨å?3åéæä½ å½»åºææè±è¯æ ç¹ç¬¦å·! 4342019å¹´1æ2æ¥ Punctuation Marks List æ ç¹ç¬¦å·å表 The Full Stop (.) å¥å·ã The full stops, also called the periods are one of the most commonly used punctuation marks; analysis of tex... 435满满æºå·±çæºî« 436åç§æ ç¹ç¬¦å·ç¨è±æé½æä¹è¯´? 4372017å¹´11æ29æ¥ Punctuation Marks æ ç¹ç¬¦å· 1 , éå·comma 2 . å¥å·period(ç¾å½è±è¯)/full stop(è±å½è±è¯) 3 ? é®å·question mark 4 : åå·colon 5 ; åå·semicolon 6 ! æ... 438å¾®ä¿¡å ¬ä¼å¹³å°î« 439干货-å¸¸è§æ ç¹ç¬¦å·çè±æè¡¨è¾¾_in 4402021å¹´4æ30æ¥ è±ææ ç¹ å¥å·(.):full stop/full point/periodãæçæ¶å,ä½ æ³è¡¨è¾¾æè¯´å®è¿å¥è¯äº,ä¹å¯ä»¥ç¨periodè¿ä¸ªè¯å å¼ºè¯æ°ãæ¯å¦âI think Red Scarf is the best, period.â å¿å¿â¦â¦ éå·... 441æçç½î« 442î»åç§æ ç¹ç¬¦å·çè±æåè¯ - ç¾åº¦æåº 4433页 å叿¶é´: 2022å¹´11æ05æ¥ 444åç§æ ç¹ç¬¦å·çè±æåè¯ ï¼period å¥å· ï¼comma éå· ï¼colon åå· ï¼semicolon åå· ï¼exclamation æå¹å· ï¼question mark é®å· ï¿£hyphen è¿å符 ' apostrophe çç¥å·ï¼æ... 445ç¾åº¦æåºî« 446`}]}};I5=f([F()],I5);let W5=class extends I{get tag(){return"ShadowCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{opacity:.9,shadow:{x:10,y:-10,blur:20,color:"#FF000080",visible:!0,box:!0}},{opacity:.7,shadow:{x:10,y:-10,blur:20,color:"#FF000080"}},{opacity:.7,shadow:{x:0,y:0,blur:20,spread:-10,color:"#FF0000"}}
446,{opacity:.7,shadow:[{x:0,y:5,blur:15,color:"#FFFF00"},{x:10,y:-10,blur:20,color:"#FF00FF30"}]},{opacity:.5,shadow:[{x:0,y:5,blur:15,color:"#00FF00"},{x:10,y:-10,blur:20,color:"#279CFE80"}]},{opacity:.7,shadow:{x:0,y:0,blur:30,spread:-10,color:"#0080FF"}}]}};W5=f([F()],W5);let z5=class extends I{get tag(){return"InnerShadowCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{opacity:.9,innerShadow:{x:10,y:5,blur:20,color:"#FF0000AA",visible:!0,box:!0}},{opacity:.7,innerShadow:{x:10,y:10,blur:20,color:"#FF0000"}},{opacity:.7,innerShadow:{x:0,y:0,blur:20,color:"#FF0000"}},{opacity:.7,innerShadow:{x:0,y:0,blur:20,spread:10,color:"#FF4A2C"}},{opacity:.7,innerShadow:[{x:15,y:10,blur:20,color:"#279CFE"},{x:-5,y:-5,blur:15,color:"#FF00FF"}]},{opacity:.7,innerShadow:[{x:15,y:10,blur:15,color:"#00000060"},{x:-5,y:-5,blur:15,color:"#279CFE"}]}]}};z5=f([F()],z5);let H5=class extends I{get tag(){return"MaskCase"}getUI(e,t){const i=new ht(e);return i.hitChildren=!1,this.addChildren(i,t),i}addChildren(e,t){const{width:i,height:s}=e;switch(e.add(new Ti({width:i,height:s,url:"/image/leafer.jpg",draggable:!0})),t){case 0:e.addAt(new Bt({mask:!0,width:i,height:s,innerRadius:.5,fill:"black"}),0);break;case 1:e.addAt(new Bt({mask:!0,width:i,height:s,opacity:.5,innerRadius:.5,fill:"black"}),0);break;case 2:const n=new ht({mask:!0});n.add(new Bt({width:i/1.5,height:s/1.5,fill:"black"})),n.add(new Bt({x:i/2,y:s/2,width:i/2,height:s/2,fill:"black"})),e.addAt(n,0);break;case 3:e.addAt(new Bt({mask:!0,width:i,height:s,startAngle:0,endAngle:180,innerRadius:.5,fill:"black"}),0);break;case 4:e.addAt(new Bt({mask:!0,width:i,height:s,startAngle:180,endAngle:0,innerRadius:.5,fill:"black"}),0);break;default:e.addAt(new Vt({mask:!0,scaleX:.1,scaleY:.1,path:"M945.344 586.304c-13.056-93.44-132.48-98.048-132.48-98.048 0-29.888-39.808-47.424-39.808-47.424L201.664 440.832c-36.736 0-42.112 51.264-42.112 51.264 7.68 288 181.44 382.976 181.44 382.976l299.456 0c42.88-31.36 101.888-122.56 101.888-122.56 9.216 3.072 72.768-0.832 97.984-6.144C865.6 740.992 958.336 679.68 945.344 586.304zM365.568 825.28c-145.472-105.664-130.944-328.576-130.944-328.576l80.448 0c-44.416 126.4 43.648 285.696 55.872 307.904C383.232 826.816 365.568 825.28 365.568 825.28zM833.472 694.272c-37.568 22.272-65.152 7.68-65.152 7.68 39.04-54.4 42.112-159.296 42.112-159.296 6.848 2.304 12.288-26.048 61.312 23.744C920.768 616.128 871.04 672.064 833.472 694.272z M351.68 129.856c0 0-119.424 72.832-44.416 140.928 75.008 68.16 68.16 93.44 24.512 153.216 0 0 81.92-41.344 71.168-104.192s-89.6-94.208-72.768-137.792C347.136 138.304 351.68 129.856 351.68 129.856z M615.232 91.648c0 0-119.488 72.832-44.352 140.928 74.944 68.16 68.032 93.44 24.448 153.216 0 0 81.984-41.344 71.232-104.192-10.688-62.784-89.6-94.208-72.832-137.792C610.624 100.032 615.232 91.648 615.232 91.648z M491.136 64c0 0-74.304 6.144-88.128 78.144C389.248 214.144 435.968 240.96 471.936 276.992 507.904 312.96 492.608 380.352 452.032 427.904c0 0 72.768-25.344 89.6-94.976 16.832-69.76-17.344-94.272-52.8-134.784C453.312 157.504 456.64 83.968 491.136 64z",fill:"black",draggable:!0}),0)}}getData(){return[{},{},{},{},{},{}]}};H5=f([F()],H5);let N5=class extends I{get tag(){return"EraserCase"}getUI(e,t){const i=new ht(e);return i.hitChildren=!1,this.addChildren(i,t),i}addChildren(e,t){let{width:i,height:s}=e;e.add(new Ti({width:i,height:s,cornerRadius:30,url:"/image/leafer.jpg",draggable:!0}));const n=.15*i,r=.15*s;switch(i*=.7,s*=.7,t){case 0:e.add(new Bt({x:n,y:r,width:i,height:s,innerRadius:.5,fill:"black",eraser:!0,draggable:!0}));break;case 1:e.add(new Bt({x:n,y:r,width:i,height:s,opacity:.5,innerRadius:.5,fill:"black",eraser:!0}));break;case 2:const o=new ht({eraser:!0});o.add(new Bt({x:n,y:r,width:i/1.5,height:s/1.5,fill:"black"})),o.add(new Bt({x:n+i/2,y:r+s/2,width:i/2,height:s/2,fill:"black"})),e.add(o);break;case 3:e.add(new Bt({x:n,y:r,width:i,height:s,startAngle:0,endAngle:180,innerRadius:.5,fill:"black",eraser:!0}));break;case 4:e.add(new Bt({x:n,y:r,width:i,height:s,startAngle:180,endAngle:0,innerRadius:.5,fill:"black",eraser:!0}));break;default:e.add(new Vt({x:10,y:10,scaleX:.08,scaleY:.08,path:"M945.344 586.304c-13.056-93.44-132.48-98.048-132.48-98.048 0-29.888-39.808-47.424-39.808-47.424L201.664 440.832c-36.736 0-42.112 51.264-42.112 51.264 7.68 288 181.44 382.976 181.44 382.976l299.456 0c42.88-31.36 101.888-122.56 101.888-122.56 9.216 3.072 72.768-0.832 97.984-6.144C865.6 740.992 958.336 679.68 945.344 586.304zM365.568 825.28c-145.472-105.664-130.944-328.576-130.944-328.576l80.448 0c-44.416 126.4 43.648 285.696 55.872 307.904C383.232 826.816 365.568 825.28 365.568 825.28zM833.472 694.272c-37.568 22.272-65.152 7.68-65.152 7.68 39.04-54.4 42.112-159.296 42.112-159.296 6.848 2.304 12.288-26.048 61.312 23.744C920.768 616.128 871.04 672.064 833.472 694.272z M351.68 129.856c0 0-119.424 72.832-44.416 140.928 75.008 68.16 68.16 93.44 24.512 153.216 0 0 81.92-41.344 71.168-104.192s-89.6-94.208
446-72.768-137.792C347.136 138.304 351.68 129.856 351.68 129.856z M615.232 91.648c0 0-119.488 72.832-44.352 140.928 74.944 68.16 68.032 93.44 24.448 153.216 0 0 81.984-41.344 71.232-104.192-10.688-62.784-89.6-94.208-72.832-137.792C610.624 100.032 615.232 91.648 615.232 91.648z M491.136 64c0 0-74.304 6.144-88.128 78.144C389.248 214.144 435.968 240.96 471.936 276.992 507.904 312.96 492.608 380.352 452.032 427.904c0 0 72.768-25.344 89.6-94.976 16.832-69.76-17.344-94.272-52.8-134.784C453.312 157.504 456.64 83.968 491.136 64z",fill:"black",draggable:!0,eraser:!0}))}}getData(){return[{cornerRadius:30},{cornerRadius:30},{cornerRadius:30},{cornerRadius:30},{cornerRadius:30},{cornerRadius:30}]}};N5=f([F()],N5);const Tf=["pass-through","normal","multiply","darken","color-burn","lighten","color-dodge","screen","overlay","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","source-over","source-in","source-out","source-atop","destination-over","destination-in","destination-out","destination-atop","xor","copy"];let X5=class extends I{get tag(){return"BlendModeCase"}getUI(e,t){const i=new ht(e);return this.addChildren(i,t),i}addChildren(e,t){const{width:i,height:s}=e,n=new J({width:i/4*3,height:s/4*3,cornerRadius:[20,20,20,20],fill:"#FF4A2C"}),r=new Bt({x:i/4*1.2,y:s/4*1.2,width:i/4*2.8,height:s/4*2.8,draggable:!0,fill:"#4DCB71"});e.add(n),e.add(r),r.blendMode=Tf[t]}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};X5=f([F()],X5);let Y5=class extends I{get tag(){return"AroundCase"}getUI(e,t){const i=new ht(e);return this.addChildren(i,t),i}addChildren(e,t){let i,s=0,n=1,r=0;switch(t){case 0:i="center";break;case 1:i={type:"percent",x:.5,y:.5},n=1.5;break;case 2:i={type:"percent",x:.5,y:.5},s=45;break;case 3:i={type:"percent",x:.5,y:.5},r=45;break;case 4:i={type:"percent",x:1,y:1}}const{width:o,height:a}=e,l=new J({width:o,height:a,cornerRadius:0,fill:"rgba(150,150,150,0.1)"}),h=new J({around:i,x:o/2,y:a/2,rotation:s,scale:n,skewX:r,width:o/2,height:a/2,draggable:!0,fill:this.colors[t]}),c=new J({around:"center",x:o/2,y:a/2,width:10,height:10,cornerRadius:5,hittable:!1,fill:"#32CD79"});e.add(l),e.add(h),e.add(c)}getData(){return[{},{},{},{},{}]}};Y5=f([F()],Y5);let j5=class extends I{get tag(){return"FillCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{},{fill:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{fill:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{fill:[{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.3}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"cover"}]}]}};j5=f([F()],j5);let U5=class extends I{get tag(){return"FillsCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{fill:[{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.2}]},{fill:[{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",rotation:90,opacity:.2}]},{fill:[{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"fit",opacity:.2}]},{fill:[{type:"linear",from:{type:"percent",x:.2,y:.2},to:{type:"percent",x:.8,y:.8},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"clip",offset:{x:-50,y:-60},opacity:.2}]},{fill:[{type:"radial",to:{type:"percent",x:1,y:1},stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,opacity:.2}]},{fill:[{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,rotation:90,opacity:.2}]}]}};U5=f([F()],U5);let V5=class extends I{get tag(){return"SolidFillCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{},{},{},{},{},{}]}};V5=f([F()],V5);let G5=class extends I{get tag(){return"GradientFillCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{fill:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{fill:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"linear",from:{type:"percent",x:.2,y:.2},to:{type:"percent",x:.8,y:.8},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:[{type:"radial",to:{type:"percent",x:1,y:1},stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.2}]},{fill:{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}}]}};G5=f([F()],G5);let q5=class extends I{get tag(){return"ImageFillCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{fill:[{type:"image",url:"/image/leafer.jpg",mode:"cover"}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"cover",rotation:90}]},{fill:[{type:"solid",color:"#e2f2e2"},{type:"image",url:"/image/leafer.jpg",mode:"fit"}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"stretch"}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"clip",offset:{x:-40,y:-90},scale:{x:1.1,y:1.1},rotation:20}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2}]},{fill:[{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,rotation:90}]}]}};q5=f([F()],q5);let K5=class extends I{get tag(){return"StrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new J(e)}getData(){return[{stroke:"#FF4B4B"},{stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},strokeAlign:"center"},{stroke:{type:"radial",stops:[{offset:.8,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},strokeAlign:"outside"},{stroke:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},dashPattern:[6,6]},{stroke:[{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.4}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"cover"}]}]}};K5=f([F()],K5);let Z5=class extends I{get tag(){return"StrokesCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new J(e)}getData(){return[{stroke:[{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",opacity:.5}]},{stroke:[{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"cover",rotation:90,opacity:.5}]},{stroke:[{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"fit",opacity:.5}]},{stroke:[{type:"linear",from:{type:"percent",x:.2,y:.2},to:{type:"percent",x:.8,y:.8},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"clip",offset:{x:-50,y:-60},opacity:.5}]},{stroke:[{type:"radial",to:{type:"percent",x:1,y:1},stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,opacity:.5}]},{stroke:[{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,rotation:90,opacity:.5}]}]}};Z5=f([F()],Z5);let $5=class extends I{get tag(){return"SolidStrokeCase"}getUI(e,t){return e.cornerRadius=30,e.stroke=this.colors[t],e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new J(e)}getData(){return[{},{},{},{},{},{}]}};$5=f([F()],$5);let J5=class extends I{get tag(){return"GradientStrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new J(e)}getData(){return[{stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{stroke:{type:"linear",from:{type:"percent",x:.2,y:.2},to:{type:"percent",x:.8,y:.8},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"radial",to:{type:"percent",x:1,y:1},stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"angular",to:{type:"percent",x:1,y:1},stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{stroke:[{type:"solid",color:"#FF4B4B"},{type:"image",url:"sale.jpg",mode:"fit",scale:.03,opacity:.5,rotation:90}]}]}};J5=f([F()],J5);let Q5=class extends I{get tag(){return"ImageStrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new J(e)}getData(){return[{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"cover"}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"cover",rotation:90}]},{stroke:[{type:"solid",color:"#f2f2f2"},{type:"image",url:"/image/leafer.jpg",mode:"fit"}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"clip",offset:{x:-50,y:-60},scale:{x:1.1,y:1.1}}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2}]},{stroke:[{type:"image",url:"/image/leafer.jpg",mode:"repeat",scale:.2,rotation:90}]}]}};Q5=f([F()],Q5);let t4=class extends I{get tag(){return"LinearCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.strokeAlign="inside",e.fill=""),new J(e)}getData(){return[{fill:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"linear",from:{x:0,y:0,type:"percent"},to:{x:1,y:1,type:"percent"},stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#79CB4D"}]}},{fill:{type:"linear",from:"left",to:"right",stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#FF4B4B"}]}},{stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"linear",from:{x:0,y:0,type:"percent"},to:{x:1,y:1,type:"percent"},stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#79CB4D"}]}},{stroke:{type:"linear",from:{x:0,y:.5,type:"percent"},to:{x:1,y:.5,type:"percent"},stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"linear",opacity:.5,stops:[{offset:0,color:{r:255,g:75,b:75}},{offset:1,color:{r:254,g:176,b:39}}]}}]}};t4=f([F()],t4);let e4=class extends I{get tag(){return"AngularCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.strokeAlign="inside",e.fill=""),new J(e)}getData(){return[{fill:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"angular",stretch:.1,to:"bottom-right",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"angular",from:{x:.3,y:.3,type:"percent"},stops:["#FF4B4B","#FEB027","#FF4B4B"]}},{stroke:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{stroke:{type:"angular",stretch:.1,stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]}},{stroke:{type:"angular",from:{x:.3,y:.3,type:"percent"},stops:[{offset:0,color:"#FF4B4B"},{offset:.5,color:"#FEB027"},{offset:1,color:"#FF4B4B"}]}},{fill:{type:"angular",opacity:.5,stops:[{offset:0,color:{r:255,g:75,b:75}},{offset:.3,color:{r:254,g:176,b:39}},{offset:.7,color:{r:121,g:203,b:77}},{offset:1,color:{r:255,g:75,b:75}}]}}]}};e4=f([F()],e4);let i4=class extends I{get tag(){return"RadialCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.fill=""),new J(e)}getData(){return[{fill:{type:"radial",stops:[{offset:.2,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",from:{x:.2,y:.2,type:"percent"},to:{x:.8,y:.8,type:"percent"},stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",to:"bottom-right",stretch:.5,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"radial",stops:[{offset:.2,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]}},{stroke:{type:"radial",from:{x:.2,y:.2,type:"percent"},to:{x:.8,y:.8,type:"percent"},stops:[{offset:0,color:"#FEB027"},{offset:1,color:"#79CB4D"}]}},{stroke:{type:"radial",to:"bottom-right",stretch:.4,stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]}},{fill:{type:"radial",opacity:.5,stops:[{offset:0,color:{r:255,g:75,b:75}},{offset:1,color:{r:254,g:176,b:39}}]}}]}};i4=f([F()],i4);let s4=class extends I{get tag(){return"HittableCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{},{fill:"#FEB02730",stroke:{type:"radial",stops:[{offset:0,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},strokeWidth:10,hitFill:"none"},{fill:"",stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},strokeWidth:10,hitFill:"all"},{fill:"",stroke:{type:"angular",stops:[{offset:0,color:"#FF4B4B"},{offset:.3,color:"#FEB027"},{offset:.7,color:"#79CB4D"},{offset:1,color:"#FF4B4B"}]},strokeWidth:10},{fill:"",stroke:{type:"linear",stops:[{offset:0,color:"#FF4B4B"},{offset:1,color:"#FEB027"}]},strokeWidth:10,strokeAlign:"center"},{fill:"",stroke:{type:"radial",stops:[{offset:.8,color:"#FF4A2C"},{offset:1,color:"#FEB027"}]},strokeWidth:10,dashPattern:[20,40],strokeCap:"round",strokeAlign:"outside"}]}};s4=f([F()],s4);let n4=class extends I{get tag(){return"CursorCase"}getUI(e){return new Ee(e)}getData(){return[{sides:3,cursor:"move"},{sides:5,cursor:"progress"},{sides:6,cursor:"cell"},{points:[10,90,10,10,50,70,90,10,90,90],cursor:"copy"},{points:[10,90,10,10,50,70,90,10,90,90,90,90,10,90],curve:!0,cursor:"no-drop"}
446,{points:[0,90,20,60,40,80,60,40,75,50,90,10,100,90,100,90,0,90],curve:!0,cursor:{url:"https://leaferjs.com/image/cursor.svg",x:2,y:2}}]}};n4=f([F()],n4);let r4=class extends I{get tag(){return"HoverStyleCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{fill:"rgba(50,205,121, 0.7)",cornerRadius:30,hoverStyle:{fill:"rgba(50,205,121, 0.8)"}}]}};r4=f([F()],r4);let o4=class extends I{get tag(){return"PressStyleCase"}getUI(e){return e.cornerRadius=30,new J(e)}getData(){return[{fill:"rgba(50,205,121, 0.7)",cornerRadius:30,pressStyle:{fill:"rgba(50,205,121, 1)"}},{fill:"rgba(50,205,121, 0.7)",cornerRadius:30,hoverStyle:{fill:"rgba(50,205,121, 0.8)"},pressStyle:{fill:"rgba(50,205,121, 1)"},cursor:"pointer"}]}};o4=f([F()],o4);let a4=class extends I{get tag(){return"StateCase"}getUI(e){const t=new k({x:e.x+30,y:e.y,width:e.width,height:e.height,fill:"#32cd79",cornerRadius:30,origin:"center",states:{color:{fill:"#FF4B4B",hoverStyle:{scale:1.2},pressStyle:{scale:1}},rotate:{animation:{keyframes:[{rotation:45},{rotation:135,scale:1.2}],duration:1,swing:!0}}},state:"color"});return t.on("click",()=>{t.state=t.state==="color"?"rotate":"color"}),t}getData(){return[{}]}};a4=f([F()],a4);let l4=class extends I{get tag(){return"ButtonCase"}getUI(e){return new k({x:e.x+30,y:e.y+30,fill:"#FEB027",cornerRadius:5,button:!0,hoverStyle:{fill:"#32cd79"},pressStyle:{fill:"#FF4B4B"},children:[{tag:"Text",text:"Button",fontSize:16,padding:[10,20],fill:"black",hoverStyle:{fill:"white"},pressStyle:{fontWeight:"bold"}}]})}getData(){return[{}]}};l4=f([F()],l4);let h4=class extends I{get tag(){return"RectAnimateCase"}getUI(e){const t=new J(e);return t.waitLeafer(()=>{t.app.editor.hittable=!1;const i=t.leafer.on_(pt.NEXT,()=>{t.rotateOf({x:50,y:50},5),t.move(5,0),t.x>700&&(t.x=0)});t.on(W.DOWN,()=>{t.leafer.off_(i)})}),t}getData(){return[{}]}};h4=f([F()],h4);class Af{constructor(t,i,s){this.view=t;const n=we.start(`create ${i}ä¸`),r=i>25?10:5;let o;for(let a=0;a<i;a++)o=new ht,o.x=a%r*15e3,o.y=15e3*Math.floor(a/r),this.view.add(o),this.createBlock(o,0,0,`hsl(${3*a},50%, 50%)`),a===i-1&&(we.end(n),setTimeout(s,0))}createBlock(t,i,s,n){let r,o;for(let a=0;a<100;a++){a%10==0&&(i+=100),r=s;for(let l=0;l<100;l++)l%10==0&&(r+=100),o=new J,o.x=i,o.y=r,o.height=100,o.width=100,o.fill=n,o.draggable=!0,t.add(o),r+=120;i+=120}}}function Uf(e,t){new Af(e,100,t)}let c4=class extends I{get tag(){return"FlowCase"}getUI(e,t){const i=new ve(e);let s,n,r;i.fill="rgba(120,120,120,0.1)",t<2?(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30})):(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}));const o=new j({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,o),t){case 0:o.text="x";break;case 1:i.flow="x-reverse",o.text="x-reverse";break;case 2:i.flow="y",o.text="y";break;case 3:i.flow="y-reverse",o.text="y-reverse"}return i}getData(){return[{},{},{},{}]}};c4=f([F()],c4);let d4=class extends I{get tag(){return"FlowWrapCase"}getUI(e,t){const i=new ve(e);let s,n,r,o,a,l;i.fill="rgba(150,150,150,0.1)",i.flowWrap=!0,t<2?(i.gap={x:0,y:10},s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30})):(i.gap={x:10,y:0},s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}));const h=new j({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,o,a,l,h),t){case 0:h.text="true";break;case 1:i.flowWrap="reverse",h.text="reverse";break;case 2:i.flow="y",h.text="true";break;case 3:i.flow="y",i.flowWrap="reverse",h.text="reverse"}return i}getData(){return[{},{},{},{}]}};d4=f([F()],d4);let u4=class extends I{get tag(){return"FlowGapCase"}getUI(e,t){const i=new ve(e);let s,n,r,o,a,l;i.fill="rgba(150,150,150,0.1)",i.gap=5,t<5?(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30})):(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}));const h=new j({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,h),t){case 0:h.text="5";break;case 1:i.gap="auto",h.text="auto";break;case 2:i.addMany(o,a,l),i.gap="fit",h.text="fit";break;case 3:i.addMany(o,a,l),i.flowWrap=!0,i.gap={x:5,y:10},h.text="10";break;case 4:i.addMany(o,a,l),i.flowWrap=!0,i.gap={x:5,y:"auto"},h.text="auto";break;case 5:i.flow="y",h.text="x 5";break;case 6:i.flow="y",i.gap="auto",h.text="x auto";break;case 7:i.flow="y",i.addMany(o,a,l),i.flowWrap=!0,i.gap={y:5,x:10},h.text="y 10";break;case 8:i.flow="y",i.addMany(o,a,l),i.flowWrap=!0,i.gap={y:5,x:"auto"},h.text="y auto"}return i}getData(){return[{},{},{},{},{},{},{},{},{}]}};u4=f([F()],u4);let g4=class extends I{get tag(){return"FlowAlignCase"}getUI(e,t){const i=new ve(e);i.fill="rgba(150,150,150,0.1)";const s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),h=new j({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,h),t){case 0:h.text="top-left";break;case 1:i.flowAlign="top",h.text="top";break;case 2:i.flowAlign="top-right",h.text="top-right";break;case 3:i.flowAlign="left",h.text="left";break;case 4:i.flowAlign="center",h.text="center";break;case 5:i.flowAlign="right",h.text="right";break;case 6:i.flowAlign="bottom-left",h.text="bottom-left";break;case 7:i.flowAlign="bottom",h.text="bottom";break;case 8:i.flowAlign="bottom-right",h.text="bottom-right";break;case 9:i.flowAlign={content:"center",y:"from"},h.text="from";break;case 10:i.flowAlign={content:"center",y:"center"},h.text="center";break;case 11:i.flowAlign={content:"center",y:"to"},h.text="to";break;case 12:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"from"},h.text="from";break;case 13:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign="center",h.text="center";break;case 14:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"to",x:"to"},h.text="to"}return i}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};g4=f([F()],g4);let p4=class extends I{get tag(){return"FlowYAlignCase"}getUI(e,t){const i=new ve(e);i.flow="y",i.fill="rgba(150,150,150,0.1)";const s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}),h=new j({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,h),t){case 0:h.text="top-left";break;case 1:i.flowAlign="top",h.text="top";break;case 2:i.flowAlign="top-right",h.text="top-right";break;case 3:i.flowAlign="left",h.text="left";break;case 4:i.flowAlign="center",h.text="center";break;case 5:i.flowAlign="right",h.text="right";break;case 6:i.flowAlign="bottom-left",h.text="bottom-left";break;case 7:i.flowAlign="bottom",h.text="bottom";break;case 8:i.flowAlign="bottom-right",h.text="bottom-right";break;case 9:i.flowAlign={content:"center",x:"from"},h.text="from";break;case 10:i.flowAlign={content:"center",x:"center"},h.text="center";break;case 11:i.flowAlign={content:"center",x:"to"},h.text="to";break;case 12:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"from"},h.text="from";break;case 13:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign="center",h.text="center";break;case 14:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"to",x:"to"},h.text="to"}return i}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};p4=f([F()],p4);let f4=class extends I{get tag(){return"FlowPaddingCase"}getUI(e,t){const i=new ve(e);i.padding=5,i.fill="rgba(150,150,150,0.1)";const s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),o=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"4",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),a=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"5",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),l=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"6",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30}),h=new j({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,h),t){case 0:h.text="5";break;case 1:i.flowAlign="bottom-right",h.text="5";break;case 2:i.flowAlign="top-right",h.text="top-right";break;case 3:i.flowAlign="left",h.text="left";break;case 4:i.flowAlign="center",h.text="center";break;case 5:i.flowAlign="right",h.text="right";break;case 6:i.flowAlign="bottom-left",h.text="bottom-left";break;case 7:i.flowAlign="bottom",h.text="bottom";break;case 8:i.flowAlign="top",h.text="top";break;case 9:i.flowAlign={content:"center",y:"from"},h.text="from";break;case 10:i.flowAlign={content:"center",y:"center"},h.text="center";break;case 11:i.flowAlign={content:"center",y:"to"},h.text="to";break;case 12:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"from"},h.text="from";break;case 13:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign="center",h.text="center";break;case 14:i.addMany(o,a,l),i.flowWrap=!0,i.flowAlign={content:"center",y:"to",x:"to"},h.text="to"}return i}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};f4=f([F()],f4);let _4=class extends I{get tag(){return"FlowItemBoxCase"}getUI(e,t){const i=new ve(e);let s,n,r;i.fill="rgba(120,120,120,0.1)",i.itemBox="box",s=new k({fill:"#FF4B4B",stroke:"black",strokeWidth:4,strokeAlign:"center",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",stroke:"black",strokeWidth:4,strokeAlign:"center",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",stroke:"black",strokeWidth:4,strokeAlign:"center",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30});const o=new j({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,o),t){case 0:o.text="box";break;case 1:i.itemBox="stroke",o.text="stroke"}return i}getData(){return[{},{}]}};_4=f([F()],_4);let y4=class extends I{get tag(){return"FlowInCase"}getUI(e,t){const i=new ve(e);let s,n,r;i.fill="rgba(120,120,120,0.1)",s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1"
446,textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30});const o=new k({x:50,y:110,fill:"#FF4B4B",around:"top",children:[{tag:"Text",text:"false",fill:"white",textAlign:"center",verticalAlign:"middle",width:30,height:20}]});switch(i.addMany(s,n,r,o),t){case 0:o.inFlow=!0,o.children[0].text="true";break;case 1:o.inFlow=!1,o.children[0].text="false"}return i}getData(){return[{},{}]}};y4=f([F()],y4);let x4=class extends I{get tag(){return"FlowAutoSizeCase"}getUI(e,t){const i=new ve(e);let s,n,r;i.fill="rgba(120,120,120,0.1)",t<2?(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:25,height:20}],width:25,height:20}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:25,height:40}],width:25,height:40}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:25,height:30}],width:25,height:30})):(s=new k({fill:"#FF4B4B",children:[{tag:"Text",fill:"white",text:"1",textAlign:"center",verticalAlign:"middle",width:20,height:25}],width:20,height:25}),n=new k({fill:"#FEB027",children:[{tag:"Text",fill:"white",text:"2",textAlign:"center",verticalAlign:"middle",width:40,height:25}],width:40,height:25}),r=new k({fill:"#79CB4D",children:[{tag:"Text",fill:"white",text:"3",textAlign:"center",verticalAlign:"middle",width:30,height:25}],width:30,height:25}));const o=new j({around:"center",fill:"#666",fontSize:14,x:50,y:110,inFlow:!1});switch(i.addMany(s,n,r,o),t){case 0:o.text="width",r.autoWidth=1;break;case 1:r.autoWidth=1,r.autoHeight=1,o.text="w & h";break;case 2:r.autoHeight=1,i.flow="y",o.text="height";break;case 3:r.autoWidth=1,r.autoHeight=1,i.flow="y",o.text="h & w"}return i}getData(){return[{},{},{},{}]}};x4=f([F()],x4);let m4=class extends I{get tag(){return"EditorConfigCase"}getUI(e,t){const i=t===6?new j(e):new k(e);return(t===0||t===2||t===4||t>5)&&i.waitLeafer(()=>{setTimeout(()=>{const s=new d0({selector:!1}),{config:n}=s;switch(t){case 2:n.stroke="#0d99ff",n.pointRadius=0,n.pointSize=8;break;case 4:n.circle={},n.middlePoint={},n.buttonsDirection="top";break;case 7:n.around="center";break;case 8:n.lockRatio=!0;break;case 9:n.circle={},n.middlePoint={},n.point={cornerRadius:0},n.circle={stroke:"#5133FF",fill:"white",width:16,height:16,cornerRadius:8},n.rect={stroke:"#5133FF",dashPattern:[3,2]};break;case 10:n.buttonsFixed=!0,s.buttons.add(k.one({around:"center",fill:"#FEB027",cornerRadius:20,cursor:"pointer",children:[{tag:"Text",fill:"white",text:"ç§»é¤",padding:[7,10]}]}));break;case 11:n.circle={};break;case 12:n.rotateable=!1;break;case 13:n.resizeable=!1;break;case 14:n.middlePoint={width:12,height:4,cornerRadius:2},n.point={cornerRadius:[0,0,10,0]}}i.app.children[i.app.children.length-1].add(s),s.target=i})}),i}getData(){return[{},{cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{cornerRadius:[0,40,20,40]},{cornerRadius:[20,40,0,40]},{text:"Editor",fontSize:24,verticalAlign:"middle",textAlign:"center",fontWeight:"bold",resizeType:"scale"},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20},{cornerRadius:20}]}};m4=f([F()],m4);let w4=class extends I{get tag(){return"EditorCase"}getUI(e){return new J(e)}getData(){return[{},{cornerRadius:20},{cornerRadius:[20,0,0,20]},{cornerRadius:[0,20,20,0]},{cornerRadius:[0,40,20,40]},{cornerRadius:[20,40,0,40]}]}};w4=f([F()],w4);let v4=class extends I{get tag(){return"HTMLTextCase"}getUI(e){return e.width=e.height=void 0,new o0(e)}getData(){return[{fill:"",text:'<i style="color: red; font-weight: bold;">Welcome</i> to <b style="color: #32cd79; font-size: 30px">LeaferJS</b>'}]}};v4=f([F()],v4);let C4=class extends I{get tag(){return"TextEditorCase"}getUI(e){return e.textAlign="center",e.verticalAlign="middle",new j(e)}getData(){return[{fontSize:100,text:"A"},{fontSize:100,text:"A",italic:!0,fontWeight:"bold",stroke:"#00000060",strokeAlign:"inside",strokeWidth:1},{fontSize:100,text:"A",textCase:"lower",fontWeight:"bold"}
446,{fill:this.colors[2],text:"Action is the proper fruit of knowledge.",fontSize:16,textAlign:"left",verticalAlign:"top",textOverflow:"...",padding:[10,0,10,0]},{text:"Action is the proper fruit of knowledge.",fontSize:16,fontFamily:"Consolas,Monaco",textAlign:"left",verticalAlign:"top",textOverflow:"...",padding:[10,0,10,0]},{text:"Action is the proper fruit of knowledge.",fontSize:14,letterSpacing:{type:"percent",value:1},textAlign:"left",verticalAlign:"top",textOverflow:"...",padding:[10,0,10,0]},{text:"Action is the proper fruit of knowledge.",fontSize:14,lineHeight:{type:"percent",value:2},textAlign:"center",verticalAlign:"middle",textDecoration:"delete",textCase:"title"},{text:"Action is the proper fruit of knowledge.",fontSize:14,textAlign:"center",verticalAlign:"middle",textDecoration:"delete",textCase:"title"},{text:"Action is the proper fruit of knowledge.",fontSize:14,textAlign:"center",verticalAlign:"middle",textDecoration:"delete",textCase:"title",textWrap:"none",textOverflow:"..."},{text:"Action is the proper fruit of knowledge.",fontSize:11,textAlign:"right",verticalAlign:"bottom",textDecoration:"under",textCase:"upper",shadow:{x:0,y:0,blur:4,color:this.colors[5]+"AA"},lineHeight:{type:"percent",value:2}}]}};C4=f([F()],C4);let b4=class extends I{get tag(){return"AnimateCase"}getUI(e){return e.fill="#32cd79",e.animation={style:{x:500,cornerRadius:50},duration:1,swing:!0},new J(e)}getData(){return[{}]}};b4=f([F()],b4);let k4=class extends I{get tag(){return"AnimateColorCase"}getUI(e){return e.fill="#32cd79",e.animation={style:{x:500,cornerRadius:50,fill:"#ffcd00"},duration:1,swing:!0},new J(e)}getData(){return[{}]}};k4=f([F()],k4);let B4=class extends I{get tag(){return"AnimateFramesCase"}getUI(e){return e.fill="#32cd79",e.cornerRadius=50,e.around="center",e.x+=50,e.y+=50,e.animation={keyframes:[{style:{x:150,scaleX:2,fill:"#ffcd00"},duration:.5},{style:{x:50,scaleX:1,fill:"#ffcd00"},duration:.2},{style:{x:550,cornerRadius:0,fill:"#ffcd00"},delay:.1,easing:"bounce-out"},{x:50,rotation:-720,cornerRadius:50}],duration:3,loop:!0,join:!0},new J(e)}getData(){return[{}]}};B4=f([F()],B4);let S4=class extends I{get tag(){return"AnimatePageCase"}getUI(e){const t=new J({x:e.x+150,y:e.y,width:150,height:100,fill:"#FEB027",animation:{keyframes:[{opacity:0,offsetX:-150},{opacity:1,offsetX:0}],duration:.8},animationOut:{style:{opacity:0,offsetX:150},duration:.8}}),i=t.clone({fill:"#32cd79"}),s=new ht({children:[t]});return setInterval(()=>{t.parent?(s.add(i),t.remove()):(s.add(t),i.remove())},2e3),s}getData(){return[{}]}};S4=f([F()],S4);let E4=class extends I{get tag(){return"AnimatePathCase"}getUI(e){const t=new ht({x:e.x,y:e.y}),i=new Vt({scale:.2,motionPath:!0,stroke:"#32cd79",strokeWidth:20,motion:0,around:"top-left",animation:{style:{motion:5650},duration:10,loop:!0},path:"M945.344 586.304c-13.056-93.44-132.48-98.048-132.48-98.048 0-29.888-39.808-47.424-39.808-47.424L201.664 440.832c-36.736 0-42.112 51.264-42.112 51.264 7.68 288 181.44 382.976 181.44 382.976l299.456 0c42.88-31.36 101.888-122.56 101.888-122.56 9.216 3.072 72.768-0.832 97.984-6.144C865.6 740.992 958.336 679.68 945.344 586.304zM365.568 825.28c-145.472-105.664-130.944-328.576-130.944-328.576l80.448 0c-44.416 126.4 43.648 285.696 55.872 307.904C383.232 826.816 365.568 825.28 365.568 825.28zM833.472 694.272c-37.568 22.272-65.152 7.68-65.152 7.68 39.04-54.4 42.112-159.296 42.112-159.296 6.848 2.304 12.288-26.048 61.312 23.744C920.768 616.128 871.04 672.064 833.472 694.272z M351.68 129.856c0 0-119.424 72.832-44.416 140.928 75.008 68.16 68.16 93.44 24.512 153.216 0 0 81.92-41.344 71.168-104.192s-89.6-94.208-72.768-137.792C347.136 138.304 351.68 129.856 351.68 129.856z M615.232 91.648c0 0-119.488 72.832-44.352 140.928 74.944 68.16 68.032 93.44 24.448 153.216 0 0 81.984-41.344 71.232-104.192-10.688-62.784-89.6-94.208-72.832-137.792C610.624 100.032 615.232 91.648 615.232 91.648z M491.136 64c0 0-74.304 6.144-88.128 78.144C389.248 214.144 435.968 240.96 471.936 276.992 507.904 312.96 492.608 380.352 452.032 427.904c0 0 72.768-25.344 89.6-94.976 16.832-69.76-17.344-94.272-52.8-134.784C453.312 157.504 456.64 83.968 491.136 64z"}),s=new J({width:50,height:15,cornerRadius:10,around:"left",fill:"#FEB027",motion:0,motionRotation:45,animation:{style:{motion:5650},duration:10,loop:!0}});return t.add(i),t.add(s),t}getData(){return[{}]}};E4=f([F()],E4);let T4=class extends I{get tag(){return"AnimateCarCase"}getUI(e){const t=new ht({x:e.x,y:e.y}),i=new Ee({motionPath:!0,points:[0,90,100,60,200,80,300,40,375,50,450,10,550,90,550,90,0,90],curve:!0,fill:"#32cd79"}),s=new Vt({scale:.05,fill:"#FEB027",around:"bottom",path:"M949.586 629.224c-2.703-2.661-4.71-7.055-5.077-10.84-1.301-13.259-1.911-26.584-2.432-39.902-0.255-6.38-1.968-9.879-9.398-10.426-9.201-0.
446682-18.271-3.044-27.381-4.795-8.772-1.684-14.224-8.514-12.708-15.699 1.616-7.613 8.673-11.886 17.328-10.39 9.422 1.626 18.832 3.33 28.224 4.998 2.266-8.837-0.482-14.764-9.666-20.748-26.418-17.236-55.258-29.587-85.431-37.895-33.994-9.363-68.698-16.141-103.043-24.263-3.719-0.877-7.643-2.533-10.544-4.943-38.731-32.201-80.555-59.555-125.84-81.76-39.617-19.423-82.145-25.662-125.45-28.424-46.553-2.969-92.87-0.148-138.957 6.854-21.555 3.271-41.424 11.358-59.755 22.592-28.399 17.408-56.715 35.075-83.999 54.15-15.036 10.513-29.739 14.978-47.548 10.168-8.07-2.178-16.586-2.709-24.894-4.004-10.75-1.676-18.04 2.278-19.666 10.692-1.759 9.111 3.546 15.686 14.425 17.856 2.131 0.424 4.27 0.775 6.402 1.152 0.104 0.489 0.201 0.969 0.291 1.452-8.561 3.113-17.05 6.419-25.686 9.297-19.17 6.413-21.497 9.439-21.862 29.792-0.054 2.82-0.008 5.64-0.008 9.442 12.299 0 23.845-0.052 35.396 0.011 9.849 0.052 16.351 5.089 16.69 12.78 0.358 7.993-6.497 14.054-16.427 14.179-11.541 0.145-23.085 0.034-35.627 0.034 0 15.755-0.01 30.453 0 45.163 0.012 7.541-0.179 15.08 0.149 22.604 0.238 5.251-1.482 8.45-5.623 12.222-4.171 3.805-6.077 10.349-8.244 15.977-0.971 2.52 0.017 5.747-0.198 8.628-1.697 23.276 9.365 28.266 26.937 29.975 6.879 0.668 13.728 1.563 21.403 2.45-2.97-44.323 10.278-81.655 43.859-110.492 24.57-21.091 53.398-30.794 85.846-29.73 24.153 0.786 46.087 8.406 65.902 21.902 20.16 13.718 34.877 32.001 44.318 54.527 9.258 22.093 12.073 44.983 8.279 69.174H660.11c-5.864-48.677 9.189-89.301 47.71-119.794 26.652-21.102 57.782-28.826 91.558-25.087 60.437 6.677 122.165 65.992 107.31 150.752 12.938-2.104 25.373-3.916 37.706-6.305 2.579-0.503 5.102-2.809 7.047-4.865 9.141-9.619 7.555-39.181-1.855-48.461zM275.612 469.297c28.838-41.323 63.854-70.249 113.867-78.948 2.196 29.673 4.375 59.214 6.583 89.087-40.444-3.403-79.805-6.716-120.45-10.139z m179.897 71.126c-5.494 0.317-11.013 0.055-16.524 0.055v0.078c-5.506 0-11.013 0-16.527-0.003-0.575 0-1.154-0.039-1.73-0.13-7.911-1.247-13.83-7.818-13.216-14.659 0.61-6.893 6.516-12.017 14.546-12.153 11.013-0.181 22.046-0.3 33.051-0.011 8.454 0.211 14.175 5.82 14.375 13.248 0.195 7.312-5.532 13.081-13.975 13.575z m-30.098-58.221c-2.338-32.026-4.608-63.141-6.888-94.362 103.429-11.606 190.875 22.776 269.354 89.534-87.844 19.856-174.859 9.391-262.466 4.828zM236.91 570.114c-49.771-0.016-90.786 39.783-92.253 86.639-1.697 54.596 43.161 96.574 91.545 95.173 51.424-0.008 91.141-40.06 91.079-91.851-0.053-49.787-40.393-89.944-90.371-89.961z m-0.131 125.312c-17.785 0.532-34.806-15.951-35.104-33.997-0.307-18.086 15.924-34.542 34.257-34.748 18.157-0.192 34.65 16.176 34.635 34.365-0.024 17.843-15.75 33.839-33.788 34.38zM787.66 569.923c-53.395-1.601-95.199 41.641-94.92 90.003 0.29 51.36 39.759 91.973 90.084 91.992 52.573 0.038 92.121-39.199 92.188-91.492 0.07-48.553-40.287-89.095-87.352-90.503z m-3.893 125.425c-18.762-0.355-34.274-16.08-34.2-34.674 0.072-18.189 16.564-34.166 34.977-33.883 18.123 0.27 33.8 16.151 33.739 34.193-0.055 18.402-16.424 34.702-34.516 34.364z",animation:{style:{motion:{type:"percent",value:1}},duration:9,loop:!0}});return t.add(i),t.add(s),t}getData(){return[{}]}};T4=f([F()],T4);let A4=class extends I{get tag(){return"AnimateGradientCase"}getUI(e){return new J({x:e.x+30,y:e.y,width:100,height:100,cornerRadius:30,fill:{type:"linear",stops:["#FEB027","#79CB4D"]},hoverStyle:{fill:{type:"radial",from:"top",stops:["#FF4B4B","#FEB027"]}},transition:1})}getData(){return[{}]}};A4=f([F()],A4);const L4="M0 0L0 0M150 150L150 150M79.9034 61.2132C79.7797 61.0366 79.6731 60.3219 79.6617 59.5931C79.6627 58.882 79.4622 57.7332 79.2427 57.0449C78.6979 55.4793 78.6763 55.0734 79.0772 54.1086C79.4958 53.1314 80.8752 52.1392 81.8414 52.0941C82.2117 52.098 83.5343 52.2244 84.7864 52.4001C87.0031 52.7161 88.9565 52.506 89.9079 51.8398C90.7007 51.2847 92.4236 51.4203 94.3711 52.2142C95.4083 52.6456 96.9086 52.4633 97.8424 51.8095C99.0228 50.983 99.2698 51.0732 100.141 52.542L100.906 53.8219L102.514 53.9062C103.404 53.9405 105.938 54.0344 108.142 54.0698C110.902 54.1109 112.602 54.2888 113.552 54.5966C114.972 55.0496 116.362 54.9713 117.154 54.4162C117.401 54.2435 118.109 53.6424 118.765 53.0783C119.788 52.1775 120.059 52.0401 120.898 51.9261C121.702 51.8368 121.956 51.7118 122.233 51.2815C122.798 50.4385 122.855 49.8457 122.533 47.6239C122.249 45.718 122.147 45.4215 121.306 44.2209C120.799 43.4971 120.006 42.5524 119.567 42.1497C118.718 41.3497 117.494 40.8387 117.323 41.195C117.284 41.3273 117.684 42.0475 118.228 42.8244C119.217 44.2368 119.512 45.1087 119.385 46.2767C119.317 46.9295 119.04 47.0969 118.052 46.999C116.88 46.8992 116.212 47.4456 115.621 48.9644C115.363 49.6452 115.067 50.2731 114.997 50.3225C114.909 50.3842 114.017 50.2722
446112.997 50.0914C111.965 49.8929 109.55 49.7426 107.651 49.7304C105.722 49.7129 104.061 49.6656 103.946 49.6144C103.554 49.4676 103.553 48.153 103.938 47.5411C104.238 47.0684 104.771 46.6684 106.144 45.8914C108.636 44.4625 111.606 42.33 111.896 41.7321C112.021 41.4604 112.124 40.783 112.099 40.2218C112.074 39.6607 112.193 38.8932 112.381 38.5246C113.366 36.5192 113.23 34.8252 111.96 33.873C111.602 33.6239 110.963 33.387 110.515 33.3848C110.067 33.3827 109.152 33.0502 108.462 32.6649C106.398 31.4792 104.052 31.2796 101.951 32.0665C101.419 32.2813 100.577 32.5029 100.083 32.5855C99.1362 32.6958 98.5054 33.0323 98.7032 33.3148C98.765 33.4031 99.6925 33.4903 100.768 33.5265C102.799 33.5777 105.24 34.0261 105.488 34.3792C105.574 34.5028 105.529 35.1133 105.389 35.7378C105.196 36.6623 105.228 37.0081 105.574 37.5025C105.834 37.8732 105.984 38.4257 105.97 38.8562C105.945 39.532 105.851 39.6236 104.407 40.6352C103.05 41.5851 102.782 41.8778 102.152 43.003C101.317 44.5092 100.205 45.7346 99.4932 45.9175C98.6859 46.1144 98.2658 45.7771 97.7018 44.4091C96.6993 41.9274 96.6869 41.9097 95.8366 41.5578C94.6723 41.0575 93.9711 39.9435 93.7771 38.3165C93.6044 36.8324 92.7097 34.6172 92.1963 34.3715C91.9969 34.2743 91.452 34.2085 90.9566 34.2134C90.3659 34.2323 89.812 34.0413 89.3197 33.6756C88.3473 32.9619 86.8536 32.666 85.3903 32.9012C84.4983 33.0522 83.8427 33.3533 82.4314 34.2626C79.5964 36.0635 78.3291 38.0034 80.6043 37.0154C82.7914 36.0892 86.0584 35.8802 86.5777 36.6217C86.7631 36.8866 86.7142 37.3418 86.403 38.0597C86.1603 38.6506 86.0394 39.3404 86.1473 39.6069C86.3896 40.2529 87.2825 40.8907 88.6267 41.4229C89.5545 41.7731 89.8228 42.0062 90.5151 42.9949C90.9972 43.6835 91.7439 44.4499 92.3333 44.8792C93.8703 45.9868 94.7725 47.0128 94.5419 47.3584C94.1265 47.965 91.4529 47.5217 89.6693 46.5867C88.6654 46.053 86.4539 45.707 85.4262 45.9267C85.0102 46.0075 83.8804 46.4565 82.9059 46.9021C81.9437 47.3654 80.9425 47.698 80.6851 47.6678C80.4152 47.6199 79.7872 47.3229 79.3072 46.9749C78.7972 46.6216 78.0703 46.1834 77.654 46.0013L76.906 45.683L74.8094 47.1511C72.4309 48.8165 72.4362 48.7865 73.0132 50.698C73.592 52.687 73.5779 55.8543 73.0184 56.9302C72.8407 57.2388 73.6961 66.4409 76.906 66.4409C80.3685 66.4409 80.0393 61.4074 79.9034 61.2132Z",R4="M0 0L0 0M150 150L150 150M78.6177 89.5666C77.8128 92.3319 77.6467 93.834 78.1016 93.9996C78.2004 94.0355 78.6503 94.8913 79.1417 95.9407C80.0922 98.0055 80.4654 99.7486 80.7576 103.56C80.861 104.937 81.1011 106.431 81.2703 106.828C81.9724 108.467 83.2473 109.333 85.4473 109.687C87.3094 109.986 88.1633 110.408 90.1235 112.037C91.7329 113.337 92.069 113.459 94.4432 113.52C95.7533 113.55 95.8324 113.579 98.6173 114.972C100.194 115.747 101.67 116.552 101.924 116.778C102.535 117.313 102.73 118.991 102.258 119.735C102.077 120.048 101.667 120.435 101.35 120.632C99.9627 121.489 99.7456 121.901 98.8029 125.598C98.0019 128.722 97.8727 129.077 97.3322 129.639C96.6265 130.409 95.5321 130.524 94.0885 129.998C93.5618 129.784 92.6074 129.638 91.9479 129.666C89.9099 129.728 88.6571 129.54 86.7984 128.863C84.9791 128.201 84.402 127.879 84.5096 127.584C84.5455 127.485 84.9462 127.43 85.4117 127.443C85.8502 127.469 86.7164 127.427 87.3238 127.358C87.9312 127.289 88.6034 127.288 88.8011 127.36C89.3746 127.568 92.0395 127.199 92.1471 126.903C92.1974 126.765 92.0875 126.391 91.8895 126.073C91.4685 125.384 91.5653 124.995 92.2444 124.729C92.5875 124.586 92.9251 124.151 93.3414 123.253C93.6859 122.552 94.4254 121.259 95.0143 120.38C96.0735 118.823 96.0806 118.803 95.8125 118.371C95.4725 117.89 94.732 117.71 92.7101 117.666C91.0207 117.631 90.4347 117.396 89.0032 116.16C88.372 115.618 87.7193 115.135 87.5809 115.085C87.1261 114.919 86.999 115.699 87.2069 117.404C87.4782 119.735 87.3239 120.036 85.213 121.098L83.4398 121.971L82.2571 124.174C81.593 125.384 80.9055 126.473 80.7025 126.6C80.4115 126.784 80.0071 126.726 78.7811 126.28C77.884 125.976 76.6671 125.689 75.9159 125.661C74.2355 125.541 71.0572 124.428 70.167 123.613C69.3685 122.854 69.7134 122.645 70.9988 123.112C72.205 123.551 74.8722 123.853 75.7563 123.639C76.466 123.473 76.6204 123.172 76.4938 122.166C76.4053 121.486 76.4394 121.454 77.0466 121.139C77.4041 120.957 77.9611 120.78 78.3349 120.738C78.883 120.647 79.0123 120.538 79.2993 119.749C79.5863 118.961 79.791 118.767 80.8509 118.193C83.0983 117.002 83.8553 115.046 82.3936 114.201C82.0592 114.012 81.4101 113.642 80.9516 113.364C79.8045 112.701 79.1576 112.755 78.132 113.543C77.6434 113.901 76.7093 114.498 76.041 114.858C74.9613 115.425 74.7692 115.645 74.1051 116.854C73.2706 118.47 72.2504 119.304 71.0626 119.43C69.4883 119.571 69.0803 119.401 68.384 118.299C67.8334 117.473 67.5151 117.179 66.4041 116.663C64.6566 115.804 63.5076 114.961 62.378 113.635C61.7448 112.914 61.4587 112.408 61.5196 112.117C61.627 111.576 61.6073 111.569 62.9792 112.537C63.587 112.959 64.8616 113.579 65.8234 113.952C67.4251 114.535 67.6174 114.56 68.1043 114.268C68.4761 114.047 68.7598 113.636 69.018 112.927C69.4628 111.705 69.7664 111.547 72.1187 111.176C73.8025 110.918 74.805 110.502 75.6993 109.644C76.
4461968 109.2 76.3673 108.793 76.7706 107.377C77.4088 105.132 77.2231 104.35 75.5773 102.412C74.5124 101.153 73.2076 98.6472 72.8849 97.2574C72.7136 96.436 72.7402 95.9323 73.0056 95.203C73.472 93.9217 72.9736 93.7725 72.3728 92.4502C71.0626 89.5666 72.1187 83.1357 75 83.1357C78.1016 83.1357 79.1304 87.7889 78.6177 89.5666Z",Lf=[{x:240.68017578125,y:619.9313354492188},{x:237.16748046875,y:619.9313354492188},{x:229.5886993408203,y:619.9313354492188},{x:218.7652130126953,y:619.9313354492188},{x:208.68983459472656,y:619.9313354492188},{x:198.7582244873047,y:619.9313354492188},{x:188.19764709472656,y:619.9313354492188},{x:177.92666625976562,y:619.9313354492188},{x:169.24285888671875,y:619.9313354492188},{x:162.76707458496094,y:619.90576171875},{x:157.11436462402344,y:619.3753662109375},{x:151.916259765625,y:617.8464965820312},{x:146.44532775878906,y:614.79443359375},{x:141.35694885253906,y:610.5438232421875},{x:136.59365844726562,y:606.452880859375},{x:130.99305725097656,y:601.93896484375},{x:125.08781433105469,y:596.7733764648438},{x:120.15219116210938,y:592.136474609375},{x:116.80934143066406,y:588.458984375},{x:113.78790283203125,y:584.1371459960938},{x:111.16006469726562,y:578.9271240234375},{x:109.58747863769531,y:573.712646484375},{x:108.3077392578125,y:568.3594360351562},{x:107.76815795898438,y:562.3731689453125},{x:107.76815795898438,y:555.2154541015625},{x:107.98951721191406,y:548.1558227539062},{x:109.78890991210938,y:541.4668579101562},{x:114.05853271484375,y:534.4695434570312},{x:122.20445251464844,y:525.45166015625},{x:136.9500732421875,y:515.6165161132812},{x:157.74520874023438,y:506.60687255859375},{x:178.44725036621094,y:500.76837158203125},{x:196.227783203125,y:498.088134765625},{x:215.2079315185547,y:495.2755126953125},{x:233.23080444335938,y:492.6033935546875},{x:244.28720092773438,y:490.75262451171875},{x:251.85800170898438,y:489.48492431640625},{x:258.7664794921875,y:488.404052734375},{x:264.0390930175781,y:487.16204833984375},{x:269.918701171875,y:485.61126708984375},{x:277.47076416015625,y:484.013427734375},{x:287.82830810546875,y:480.82330322265625},{x:298.5936279296875,y:477.044677734375},{x:305.9586181640625,y:474.2325439453125},{x:312.45745849609375,y:470.76605224609375},{x:318.8465576171875,y:465.93499755859375},{x:321.8755798339844,y:461.009765625},{x:322.068115234375,y:456.14715576171875},{x:320.0497741699219,y:450.62628173828125},{x:314.4300842285156,y:444.45654296875},{x:303.6468200683594,y:436.4105224609375},{x:292.0837097167969,y:429.67938232421875},{x:281.54437255859375,y:425.91156005859375},{x:269.50732421875,y:422.2828369140625},{x:257.15142822265625,y:419.71038818359375},{x:243.4276580810547,y:417.99041748046875},{x:230.0701141357422,y:416.81005859375},{x:216.662109375,y:416.43853759765625},{x:202.357421875,y:415.23626708984375},{x:188.71206665039062,y:413.421875},{x:176.9940948486328,y:411.5537109375},{x:167.32138061523438,y:409.032958984375},{x:159.53192138671875,y:406.66485595703125},{x:153.8592529296875,y:404.00830078125},{x:149.92138671875,y:401.26055908203125},{x:144.5467529296875,y:396.1421203613281},{x:143.97755432128906,y:395.2511901855469},{x:142.59359741210938,y:392.8650207519531},{x:141.24720764160156,y:389.6397705078125},{x:140.59629821777344,y:386.4396057128906},{x:140.3038330078125,y:384.0779724121094},{x:140.13063049316406,y:381.7547912597656},{x:140.13063049316406,y:378.6162109375},{x:140.692138671875,y:374.965576171875},{x:143.1006317138672,y:370.5981140136719},{x:147.02401733398438,y:365.4375},{x:152.55978393554688,y:358.6809997558594},{x:159.8966827392578,y:350.9884948730469},{x:171.38970947265625,y:341.6991271972656},{x:187.34690856933594,y:331.4367980957031},{x:203.0254669189453,y:323.2778625488281},{x:218.34814453125,y:317.5356140136719},{x:233.5912628173828,y:314.1258544921875},{x:248.14048767089844,y:311.82769775390625},{x:262.38958740234375,y:310.59588623046875},{x:276.1289978027344,y:310.48162841796875},{x:288.9454345703125,y:310.48162841796875},{x:299.1197204589844,y:310.48162841796875},{x:306.1456604003906,y:310.48162841796875},{x:311.2547912597656,y:310.48162841796875},{x:314.99505615234375,y:310.48162841796875},{x:316.98236083984375,y:310.48162841796875},{x:317.59527587890625,y:310.48162841796875},{x:317.861083984375,y:310.48162841796875},{x:317.8200988769531,y:310.48162841796875},{x:315.5401916503906,y:310.32904052734375},{x:309.04949951171875,y:308.79571533203125},{x:298.0025329589844,y:305.4224853515625},{x:286.5418701171875,y:301.0468444824219},{x:272.80047607421875,y:296.5848083496094},{x:257.3282470703125,y:293.7320251464844},{x:243.0431365966797,y:290.60211181640625},{x:228.6371307373047,y:286.8008728027344},{x:217.15330505371094,y:283.93634033203125},{x:209.3570098876953,y:281.76666259765625},{x:203.46693420410156,y:279.4900817871094},{x:198.05087280273438,y:276.8197021484375},{x:193.6062469482422,y:275.11236572265625}
446,{x:189.9735565185547,y:273.37603759765625},{x:186.69815063476562,y:271.2194519042969},{x:183.22525024414062,y:268.7884826660156},{x:180.17440795898438,y:266.5411376953125},{x:177.65419006347656,y:264.24462890625},{x:174.80120849609375,y:261.5429382324219},{x:171.85023498535156,y:258.3822021484375},{x:168.899658203125,y:254.1480712890625},{x:166.12158203125,y:250.04666137695312},{x:164.15333557128906,y:246.96981811523438},{x:162.81851196289062,y:243.86300659179688},{x:161.93875122070312,y:239.70419311523438},{x:161.68470764160156,y:236.181884765625},{x:161.90135192871094,y:233.32974243164062},{x:163.8120880126953,y:230.02099609375},{x:168.0439453125,y:227.33233642578125},{x:175.92996215820312,y:224.67355346679688},{x:187.9339599609375,y:221.59375},{x:203.31834411621094,y:219.12448120117188},{x:222.53160095214844,y:217.0802001953125},{x:242.6642608642578,y:215.90658569335938},{x:256.9416809082031,y:215.74447631835938},{x:268.9786071777344,y:215.74447631835938},{x:284.5271911621094,y:215.74447631835938},{x:297.1941833496094,y:215.74447631835938},{x:305.4105529785156,y:215.74447631835938},{x:310.194091796875,y:215.78024291992188},{x:313.143798828125,y:216.15505981445312},{x:316.34844970703125,y:216.659423828125},{x:318.306640625,y:217.30810546875},{x:319.3393859863281,y:218.14117431640625},{x:319.89501953125,y:219.2611083984375},{x:319.5179443359375,y:220.2271728515625},{x:315.24530029296875,y:220.84469604492188},{x:306.94305419921875,y:221.38677978515625},{x:299.4778137207031,y:221.5072021484375},{x:289.6269226074219,y:221.08856201171875},{x:275.030029296875,y:219.47979736328125},{x:260.802001953125,y:216.12811279296875},{x:249.68431091308594,y:210.86492919921875},{x:242.1542510986328,y:204.3511962890625},{x:237.6493682861328,y:198.71051025390625},{x:235.77809143066406,y:193.0162353515625},{x:235.56259155273438,y:185.22360229492188},{x:238.0032958984375,y:175.38577270507812},{x:245.76126098632812,y:164.13626098632812},{x:259.57177734375,y:153.12179565429688},{x:278.564208984375,y:144.51473999023438},{x:302.4516296386719,y:138.3804168701172},{x:330.2884216308594,y:133.30059814453125},{x:361.16925048828125,y:129.9122314453125},{x:394.4840087890625,y:128.80062866210938},{x:424.6151428222656,y:128.80062866210938},{x:453.4946594238281,y:128.80062866210938},{x:484.2202453613281,y:128.80062866210938},{x:512.13330078125,y:128.80062866210938},{x:532.3580322265625,y:128.80062866210938},{x:549.3466796875,y:128.80062866210938},{x:566.7947387695312,y:128.80062866210938},{x:579.2771606445312,y:128.80062866210938},{x:588.5029296875,y:128.80062866210938},{x:597.775634765625,y:128.80062866210938},{x:605.691650390625,y:128.80062866210938},{x:613.2927856445312,y:128.81314086914062},{x:622.7910766601562,y:129.59234619140625},{x:632.660400390625,y:131.49383544921875},{x:639.6019287109375,y:133.365478515625},{x:645.1209716796875,y:136.09536743164062},{x:649.9264526367188,y:138.5926513671875},{x:652.12353515625,y:139.7490692138672},{x:653.4529418945312,y:141.6261749267578},{x:654.1038208007812,y:143.62002563476562},{x:654.23388671875,y:146.36395263671875},{x:654.23388671875,y:149.55697631835938},{x:654.23388671875,y:153.18130493164062},{x:654.23388671875,y:157.92684936523438},{x:654.706787109375,y:163.259033203125},{x:657.148681640625,y:169.21258544921875},{x:663.7310791015625,y:176.93746948242188},{x:675.393798828125,y:185.82260131835938},{x:697.8765869140625,y:197.08489990234375},{x:730.101318359375,y:209.26373291015625},{x:756.5614624023438,y:217.45968627929688},{x:772.0196533203125,y:222.32958984375},{x:783.5703125,y:226.8521728515625},{x:793.1532592773438,y:231.53128051757812},{x:798.4785766601562,y:234.990234375},{x:798.71630859375,y:237.58175659179688},{x:786.244140625,y:239.35009765625},{x:743.7654418945312,y:240.76577758789062},{x:676.855224609375,y:241.41348266601562},{x:623.1321411132812,y:241.41348266601562},{x:579.6886596679688,y:241.41348266601562},{x:543.5797729492188,y:241.41348266601562},{x:522.3009033203125,y:241.41348266601562},{x:503.5755310058594,y:241.5670166015625},{x:490.5221252441406,y:243.00296020507812},{x:483.81689453125,y:245.310546875},{x:481.04052734375,y:247.64443969726562},{x:479.6584777832031,y:250.12359619140625},{x:479.2035217285156,y:253.12911987304688},{x:479.2035217285156,y:257.1519470214844},{x:479.6007080078125,y:262.23834228515625},{x:482.7340087890625,y:268.78021240234375},{x:490.72222900390625,y:277.37506103515625},{x:510.3592529296875,y:292.5055847167969},{x:540.8040771484375,y:310.10015869140625},{x:563.6721801757812,y:320.01885986328125},{x:576.6270751953125,y:324.7447204589844},{x:586.8014526367188,y:328.3592224121094},{x:595.235595703125,y:331.36962890625},{x:602.155029296875,y:334.5262756347656},{x:606.0723266601562,y:337.7934265136719},{x:607.2012939453125,y:341.0264892578125},{x:603.1683349609375,y:344.99822998046875},{x:593.0477294921875,y:349.50506591796875},{x:580.65673828125,y:353.9184265136719},{x:568.4353637695312,y:358.82916259765625},{x:555.0886840820312,y:365.9188537597656},{x:543.2350463867188,y:373.9908752441406},{x:536.06591796875,y:380.5014953613281},{x:532.3113403320312,y:386.6781005859375},{x:531.355224609375,y:394.53863525390625},{x:536.2149047851562,y:404.17095947265625},{x:565.3321533203125,y:421.64447021484375},{x:621.1520385742188,y:446.31939697265625}
446,{x:673.0527954101562,y:465.65069580078125},{x:706.0294799804688,y:476.9395751953125},{x:735.7498168945312,y:488.38800048828125},{x:764.4776611328125,y:501.72955322265625},{x:781.2689819335938,y:512.3893432617188},{x:788.6593627929688,y:520.6854858398438},{x:790.4196166992188,y:527.2539672851562},{x:787.0365600585938,y:533.9720458984375},{x:774.5760498046875,y:541.3004150390625},{x:746.854736328125,y:548.428466796875},{x:708.3807373046875,y:552.2017822265625},{x:665.1015014648438,y:552.3807983398438},{x:615.05615234375,y:550.266845703125},{x:578.5239868164062,y:547.2900390625},{x:562.2446899414062,y:545.7000122070312},{x:544.4217529296875,y:543.8775024414062},{x:526.6846923828125,y:542.6094360351562},{x:515.3068237304688,y:542.4368286132812},{x:507.82373046875,y:542.8500366210938},{x:504.8055419921875,y:545.9140014648438},{x:504.30499267578125,y:551.2197265625},{x:504.30499267578125,y:556.6761474609375},{x:504.9576721191406,y:564.2420043945312},{x:514.617431640625,y:578.2378540039062},{x:544.9794311523438,y:601.0413208007812},{x:583.1019897460938,y:622.4859008789062},{x:618.81689453125,y:638.5440673828125},{x:642.4320068359375,y:648.4472045898438},{x:651.7089233398438,y:652.211181640625},{x:669.0797119140625,y:660.046630859375},{x:684.70703125,y:667.7074584960938},{x:688.8822021484375,y:671.3955688476562},{x:690.0725708007812,y:673.8245849609375},{x:686.0026245117188,y:675.6801147460938},{x:673.8009643554688,y:678.2551879882812},{x:650.9788818359375,y:679.96728515625},{x:620.3065185546875,y:680.3471069335938},{x:578.73681640625,y:679.3377075195312},{x:531.990234375,y:675.6918334960938},{x:494.20159912109375,y:671.4276733398438},{x:466.2966003417969,y:668.7980346679688}
446,{x:440.8201599121094,y:665.1271362304688},{x:418.58343505859375,y:660.7180786132812},{x:406.6043395996094,y:657.805908203125},{x:398.4539489746094,y:653.6334228515625},{x:392.99786376953125,y:647.87939453125},{x:391.8678283691406,y:641.4186401367188},{x:391.8678283691406,y:634.0491333007812},{x:392.7903747558594,y:627.6297607421875},{x:395.8005676269531,y:621.0133666992188},{x:398.95135498046875,y:615.7557983398438},{x:401.52130126953125,y:612.235107421875},{x:404.3561706542969,y:608.5206298828125},{x:406.3377685546875,y:606.1433715820312},{x:407.24114990234375,y:604.6851196289062},{x:407.7037048339844,y:603.7018432617188},{x:407.9521179199219,y:603.0899658203125},{x:407.67828369140625,y:603.0899658203125},{x:404.4674377441406,y:603.0899658203125},{x:395.6679992675781,y:603.364990234375},{x:382.4545593261719,y:604.6863403320312},{x:366.3904113769531,y:607.2435913085938},{x:349.9324951171875,y:611.2557983398438},{x:336.60040283203125,y:616.344970703125},{x:325.4888610839844,y:622.14794921875},{x:315.5075378417969,y:628.2860717773438},{x:307.19244384765625,y:634.8521118164062},{x:300.7373962402344,y:641.4320678710938},{x:296.1580810546875,y:647.2201538085938},{x:292.9333190917969,y:653.7471923828125},{x:291.2640686035156,y:661.154052734375},{x:290.5333251953125,y:669.614990234375},{x:290.2293701171875,y:680.0028076171875},{x:290.4056396484375,y:691.5325317382812},{x:291.726806640625,y:702.7445068359375},{x:295.44091796875,y:713.4786987304688},{x:302.1435852050781,y:725.7667236328125},{x:311.6299133300781,y:739.0214233398438},{x:323.9136962890625,y:751.3807983398438},{x:338.2168884277344,y:762.637451171875},{x:353.5345458984375,y:772.43603515625},{x:369.62249755859375,y:780.6912841796875},{x:388.5640869140625,y:788.6135864257812},{x:410.2676696777344,y:795.5213623046875},{x:432.339599609375,y:799.5706176757812},{x:452.6488342285156,y:801.21240234375},{x:472.8461608886719,y:801.8333129882812},{x:489.4183654785156,y:802.161376953125},{x:503.13568115234375,y:802.161376953125},{x:517.236328125,y:802.161376953125},{x:528.203857421875,y:801.45849609375},{x:537.59423828125,y:799.353271484375},{x:548.985107421875,y:795.3729858398438},{x:560.3685913085938,y:790.9413452148438},{x:570.54248046875,y:786.0970458984375},{x:581.646484375,y:780.0775756835938},{x:591.6048583984375,y:773.3500366210938},{x:600.2791137695312,y:765.9856567382812},{x:607.5302124023438,y:759.160888671875},{x:614.6248779296875,y:750.2822875976562},{x:617.0553588867188,y:745.6726684570312},{x:623.7686157226562,y:731.5681762695312},{x:625.7848510742188,y:726.5850830078125},{x:629.7725219726562,y:716.7808837890625},{x:633.0860595703125,y:706.7591552734375},{x:635.4005737304688,y:696.3844604492188},{x:636.4208374023438,y:683.893798828125},{x:636.4686279296875,y:669.082275390625},{x:635.4995727539062,y:653.8338623046875},{x:629.152587890625,y:637.3683471679688},{x:608.4226684570312,y:613.6268310546875},{x:576.136962890625,y:587.475830078125},{x:548.6612548828125,y:571.4052734375},{x:521.6805419921875,y:558.6323852539062},{x:492.6398010253906,y:544.9703369140625},{x:469.14532470703125,y:534.3778076171875},{x:448.36920166015625,y:525.2407836914062},{x:429.9062194824219,y:515.7879638671875},{x:413.9791564941406,y:506.17962646484375},{x:400.7943115234375,y:497.472900390625},{x:388.9090576171875,y:488.112548828125},{x:377.9210510253906,y:478.0718994140625},{x:368.9584655761719,y:468.98681640625},{x:361.71710205078125,y:460.171142578125},{x:355.8834228515625,y:450.62921142578125},{x:350.9006652832031,y:440.2552490234375},{x:347.6327819824219,y:430.16241455078125},{x:346.73272705078125,y:420.04010009765625},{x:346.7481384277344,y:405.7080078125},{x:350.09588623046875,y:391.0255126953125},{x:358.6235046386719,y:379.22845458984375},{x:370.6874084472656,y:367.3245849609375},{x:391.6672668457031,y:352.2784118652344},{x:422.4637756347656,y:336.4080810546875},{x:457.0167541503906,y:324.55938720703125},{x:488.33038330078125,y:316.6554870605469},{x:514.0612182617188,y:311.38885498046875},{x:536.445068359375,y:307.8260192871094},{x:552.0476684570312,y:306.7522277832031},{x:566.333740234375,y:306.7522277832031},{x:577.8405151367188,y:306.7522277832031},{x:582.6895751953125,y:308.73919677734375},{x:586.988525390625,y:315.0747985839844},{x:591.1666259765625,y:326.05120849609375},{x:595.2051391601562,y:340.44476318359375},{x:600.125244140625,y:357.70843505859375},{x:607.2614135742188,y:377.67156982421875},{x:620.7417602539062,y:408.38153076171875},{x:635.4329833984375,y:435.36761474609375},{x:651.9332885742188,y:453.89996337890625},{x:674.8692626953125,y:475.10736083984375},{x:700.0055541992188,y:490.81195068359375},{x:726.2293090820312,y:500.3675537109375},{x:754.4906005859375,y:505.08697509765625},{x:785.3385620117188,y:506.2701416015625},{x:831.2523193359375,y:502.46630859375},{x:845.0145874023438,y:497.31634521484375},{x:873.06005859375,y:484.5673828125},{x:899.38623046875,y:468.30157470703125},{x:921.6510620117188,y:450.6734619140625},{x:938.024169921875,y:434.03887939453125},{x:951.522216796875,y:415.07000732421875},{x:962.416748046875,y:393.0771484375},{x:966.2839965820312,y:371.341064453125},{x:966.6035766601562,y:349.3255310058594},{x:966.6035766601562,y:329.162353515625},{x:966.6035766601562,y:307.9606018066406},{x:964.268798828125,y:282.5665283203125},{x:952.5144653320312,y:249.345947265625},{x:931.0427856445312,y:214.33270263671875},{x:901,y:185.92697143554688},{x:860.8995361328125,y:159.675048828125},{x:814.1103515625,y:134.7515411376953},{x:760.7182006835938,y:111.79804992675781},{x:704.6653442382812,y:93.65969848632812},{x:657.6210327148438,y:81.775390625},{x:599.2645263671875,y:72.146240234375},{x:581.0028076171875,y:71.12002563476562},{x:541.9885864257812,y:68.24995422363281},{x:506.0842590332031,y:65.91317749023438},{x:479.1668701171875,y:65.42025756835938}
446,{x:457.49737548828125,y:65.42025756835938},{x:438.4147644042969,y:65.42025756835938},{x:418.7383728027344,y:65.42025756835938},{x:395.1996765136719,y:65.42025756835938},{x:372.6510314941406,y:65.42025756835938},{x:352.2135314941406,y:65.42025756835938},{x:329.3287353515625,y:65.42025756835938},{x:304.57049560546875,y:65.42025756835938},{x:276.0907287597656,y:65.59109497070312},{x:246.6725311279297,y:66.08988952636719},{x:222.34190368652344,y:68.39924621582031},{x:191.87466430664062,y:73.616455078125},{x:158.13011169433594,y:78.61314392089844},{x:129.47677612304688,y:84.56382751464844},{x:106.76303100585938,y:91.47647094726562},{x:89.997802734375,y:97.55107116699219},{x:74.09689331054688,y:103.03242492675781},{x:60.96476745605469,y:108.47276306152344},{x:50.32142639160156,y:114.75694274902344},{x:41.684967041015625,y:121.04855346679688},{x:34.23419189453125,y:128.00656127929688},{x:28.106246948242188,y:135.4747314453125},{x:22.427871704101562,y:144.18844604492188},{x:16.883819580078125,y:153.76730346679688},{x:11.298095703125,y:164.99050903320312},{x:4.9309234619140625,y:181.24609375},{x:-.7172393798828125,y:198.5885009765625},{x:-3.7152252197265625,y:209.95803833007812},{x:-5.8972015380859375,y:227.34268188476562},{x:-7.34222412109375,y:250.5960693359375},{x:-7.092071533203125,y:270.09100341796875},{x:-2.86279296875,y:290.55157470703125},{x:5.4393768310546875,y:307.7371520996094},{x:16.07293701171875,y:320.25506591796875},{x:31.327224731445312,y:332.78460693359375},{x:49.14207458496094,y:343.3414001464844},{x:65.80300903320312,y:349.2952575683594},{x:79.10273742675781,y:352.4767150878906},{x:91.363525390625,y:355.27301025390625},{x:102.94932556152344,y:358.5715637207031},{x:111.59992980957031,y:361.88641357421875},{x:118.16902160644531,y:365.5347595214844},{x:122.41239929199219,y:369.3211975097656},{x:124.37368774414062,y:372.84014892578125},{x:125.05294799804688,y:377.4460754394531},{x:125.26097106933594,y:384.6080322265625},{x:125.26097106933594,y:392.2833557128906},{x:124.56707763671875,y:399.7890625},{x:122.90251159667969,y:407.61810302734375},{x:120.08699035644531,y:416.51727294921875},{x:116.98551940917969,y:425.34039306640625},{x:114.64743041992188,y:431.181396484375},{x:111.29167175292969,y:438.29150390625},{x:107.22103881835938,y:445.77642822265625},{x:103.44757080078125,y:450.12005615234375},{x:98.8018798828125,y:453.73809814453125},{x:94.21209716796875,y:456.9820556640625},{x:89.39093017578125,y:459.7821044921875},{x:84.64309692382812,y:462.33441162109375},{x:80.09513854980469,y:465.67901611328125},{x:75.51506042480469,y:470.25592041015625},{x:71.58799743652344,y:476.2674560546875},{x:67.99029541015625,y:483.40118408203125},{x:64.99017333984375,y:491.70166015625},{x:61.953277587890625,y:504.3084716796875},{x:59.7108154296875,y:521.2378540039062},{x:58.95039367675781,y:538.983154296875},{x:58.84501647949219,y:557.3832397460938},{x:58.862945556640625,y:573.5288696289062},{x:59.79389953613281,y:588.6983642578125},{x:62.32029724121094,y:605.6407470703125},{x:65.40573120117188,y:619.1212158203125},{x:68.66693115234375,y:629.6984252929688},{x:71.980712890625,y:639.4208374023438},{x:74.51643371582031,y:646.5446166992188},{x:77.03927612304688,y:653.4844360351562},{x:80.38827514648438,y:662.3212890625},{x:83.64006042480469,y:671.7353515625},{x:85.53666687011719,y:682.173095703125},{x:86.34194946289062,y:692.8223266601562},{x:87.326904296875,y:703.166748046875},{x:87.99745178222656,y:714.1890258789062},{x:88.00625610351562,y:726.290283203125},{x:88.29582214355469,y:737.6028442382812},{x:89.57905578613281,y:748.0625610351562},{x:91.5301513671875,y:758.8668212890625},{x:93.104248046875,y:767.9542236328125},{x:95.08824157714844,y:775.0514526367188},{x:98.59120178222656,y:781.5836791992188},{x:103.49040222167969,y:787.306884765625},{x:110.89183044433594,y:792.4856567382812},{x:120.35664367675781,y:796.986083984375},{x:131.05345153808594,y:799.8377075195312},{x:146.4026336669922,y:802.8185424804688},{x:164.08346557617188,y:805.3758544921875},{x:181.4142303466797,y:806.1599731445312},{x:199.66864013671875,y:806.6900024414062},{x:221.5491180419922,y:807.4603271484375},{x:252.64785766601562,y:808.172607421875},{x:285.54962158203125,y:808.5690307617188},{x:310.8915710449219,y:808.7109375},{x:332.8196716308594,y:808.7109375},{x:358.0156555175781,y:808.7109375},{x:384.8296813964844,y:807.3670043945312}
446,{x:411.29339599609375,y:804.3628540039062},{x:442.8100891113281,y:801.0768432617188},{x:477.5752258300781,y:798.9480590820312},{x:508.950439453125,y:798.4451293945312},{x:538.9387817382812,y:798.4451293945312},{x:564.75341796875,y:798.4451293945312},{x:584.5881958007812,y:798.4451293945312},{x:601.953369140625,y:798.4451293945312},{x:620.5767211914062,y:798.4451293945312},{x:639.6571655273438,y:798.4451293945312},{x:657.04248046875,y:797.0267333984375},{x:672.5783081054688,y:794.7847900390625},{x:685.9794311523438,y:792.885009765625},{x:698.8792724609375,y:790.2440795898438},{x:710.2398681640625,y:786.8981323242188},{x:721.2791748046875,y:782.83984375},{x:734.6668701171875,y:777.8545532226562},{x:747.7073364257812,y:772.646240234375},{x:759.5094604492188,y:766.7468872070312},{x:771.5577392578125,y:759.733642578125},{x:781.0883178710938,y:753.1148071289062},{x:788.2109375,y:746.8663940429688},{x:793.1058349609375,y:739.6290893554688},{x:794.68798828125,y:727.5073852539062},{x:788.6190795898438,y:708.245361328125},{x:767.307861328125,y:680.4276123046875},{x:727.7404174804688,y:642.9824829101562},{x:711.5218505859375,y:630.4267578125},{x:676.407470703125,y:606.6707763671875},{x:640.7999267578125,y:588.7258911132812},{x:606.5274047851562,y:576.7683715820312},{x:575.0426635742188,y:568.8896484375},{x:552.6344604492188,y:566.223876953125},{x:535.591552734375,y:566.223876953125},{x:513.5349731445312,y:566.223876953125},{x:490.71417236328125,y:566.223876953125},{x:470.91619873046875,y:566.223876953125},{x:451.43157958984375,y:566.223876953125},{x:436.10540771484375,y:566.223876953125},{x:422.48358154296875,y:567.4522094726562},{x:411.7792663574219,y:569.078369140625},{x:404.93634033203125,y:570.3853759765625},{x:398.75958251953125,y:572.6610107421875},{x:394.3447570800781,y:575.3125},{x:391.2296447753906,y:577.7244873046875},{x:387.9983215332031,y:580.7376098632812},{x:384.3946533203125,y:584.2405395507812},{x:380.9334716796875,y:587.0499877929688},{x:377.1268615722656,y:589.531982421875},{x:372.4760437011719,y:591.93505859375},{x:367.4461669921875,y:594.3905029296875},{x:362.775146484375,y:596.5431518554688},{x:358.1034851074219,y:598.2348022460938},{x:352.92523193359375,y:600.1163940429688},{x:348.06719970703125,y:601.7010498046875},{x:343.9253845214844,y:603.0943603515625},{x:339.9208984375,y:604.3654174804688},{x:336.08123779296875,y:605.247802734375},{x:332.54583740234375,y:605.9963989257812},{x:329.61279296875,y:606.614990234375},{x:327.3065490722656,y:607.4689331054688},{x:325.0169372558594,y:608.605712890625},{x:322.6275634765625,y:609.6788940429688},{x:319.49169921875,y:610.72119140625},{x:316.1830139160156,y:611.6712036132812},{x:312.9261169433594,y:612.389404296875},{x:309.51275634765625,y:613.1681518554688},{x:306.0719299316406,y:613.6358032226562},{x:302.7427673339844,y:613.6827392578125},{x:298.90057373046875,y:614.3841552734375},{x:294.8807067871094,y:615.4657592773438},{x:292.061279296875,y:615.8929443359375},{x:289.5340881347656,y:615.8929443359375},{x:287.4205322265625,y:616.0133056640625},{x:285.8788757324219,y:616.1865234375},{x:284.5955810546875,y:616.2393188476562},{x:283.4767761230469,y:616.2393188476562},{x:282.4156494140625,y:616.2393188476562},{x:281.5059509277344,y:616.2393188476562},{x:280.6212158203125,y:616.2393188476562},{x:279.4852294921875,y:616.2393188476562},{x:277.8850402832031,y:616.2393188476562},{x:276.30169677734375,y:616.2393188476562},{x:274.8569641113281,y:616.2393188476562},{x:273.4521179199219,y:616.2393188476562},{x:272.005126953125,y:616.2393188476562},{x:270.5512390136719,y:616.2393188476562},{x:269.2940368652344,y:616.2393188476562},{x:267.755126953125,y:616.2393188476562},{x:266.20233154296875,y:616.2393188476562},{x:264.93341064453125,y:616.2393188476562},{x:263.4519348144531,y:616.2393188476562},{x:261.85809326171875,y:616.2393188476562},{x:260.3700256347656,y:616.2393188476562},{x:259.12042236328125,y:616.2393188476562},{x:257.83538818359375,y:616.2393188476562},{x:256.60528564453125,y:616.2393188476562},{x:255.72703552246094,y:616.2393188476562},{x:254.86056518554688,y:616.2393188476562},{x:254.23611450195312,y:616.2393188476562},{x:253.93235778808594,y:616.2393188476562},{x:253.43484497070312,y:616.2393188476562},{x:253.32794189453125,y:616.2393188476562}
446,{x:253.021728515625,y:616.2393188476562},{x:252.47528076171875,y:616.2393188476562},{x:251.92930603027344,y:616.2393188476562},{x:251.43878173828125,y:616.2393188476562},{x:250.68612670898438,y:616.2393188476562},{x:249.77894592285156,y:616.2393188476562},{x:249.04750061035156,y:616.2435302734375},{x:248.40042114257812,y:616.3965454101562},{x:247.67042541503906,y:616.54541015625},{x:247.07296752929688,y:616.54541015625},{x:246.76023864746094,y:616.54541015625},{x:246.41554260253906,y:616.54541015625},{x:245.97654724121094,y:616.54541015625},{x:245.54678344726562,y:616.54541015625},{x:244.8382110595703,y:616.68017578125},{x:244.02438354492188,y:616.8958129882812},{x:243.07595825195312,y:617.0872802734375},{x:242.03396606445312,y:617.3999633789062},{x:240.95437622070312,y:617.8462524414062},{x:239.62049865722656,y:618.1234741210938},{x:238.59959411621094,y:618.1564331054688},{x:237.91036987304688,y:618.1564331054688},{x:237.21510314941406,y:618.1564331054688},{x:236.6608123779297,y:618.1564331054688},{x:236.3086395263672,y:618.1564331054688},{x:235.99563598632812,y:618.1564331054688},{x:235.68954467773438,y:618.1564331054688}];let P4=class extends I{get tag(){return"DragonCase"}getUI(e){const t=new ht({x:e.x,y:e.y-220}),i=new ce({motionPath:!0,points:Lf});t.add(i);let s="black";const n=new Vt({path:"M0 0L0 0M200 200L200 200M74.1855 63.3709C75.1589 64.168 76.8372 65.6506 78.9408 67.6064C81.9675 70.43 83.0004 72.3608 87.2054 74.3892C90.3116 75.9016 91.3793 76.1933 91.1018 75.4308C90.9841 75.1073 90.0688 73.8442 87.4464 70.3239L85.9771 68.3727C84.6934 65.7777 83.7306 63.8315 83.0887 62.534C82.9165 62.1858 69.1398 55.7125 64.9891 53.3816C64.0715 52.8663 65.4785 52.4959 67.0752 53.3816C68.1396 53.9721 72.8883 55.832 81.3213 58.9615C80.6506 57.0428 79.5101 55.7717 75.8797 51.3107C74.2168 49.2673 66.0944 47.8197 64.9891 46.1868C64.1681 44.9739 74.6499 49.5643 74.5285 48.5311C74.2037 45.7686 72.2119 43.4112 69.1918 40.4042C66.1718 37.3973 60.1817 31.6662 63.7455 33.337C63.764 33.372 70.3842 39.9846 70.4096 40.0286C70.996 41.0414 74.3102 44.4099 76.9483 48.3723C77.1512 48.6771 76.8296 47.4044 76.9223 45.435C77.056 42.594 75.5547 37.9273 75.8797 37.8856C75.8997 37.8831 77.4989 42.7137 77.9191 46.1868C78.3229 49.5248 79.8318 52.6837 80.0867 53.0629C81.9378 55.8169 83.7416 58.4788 85.107 60.4675C86.2075 62.0704 83.9637 56.1478 84.2896 56.5721C84.7647 57.2004 88.3497 64.947 88.8982 65.6065C91.4487 68.6729 94.4951 71.764 95.2611 71.9805C95.9627 72.17 95.9309 71.318 95.2161 69.3539C94.6866 67.8993 93.0804 62.0049 90 56.5721C89.8003 56.22 86.6555 55.8776 83.5523 53.924C80.8306 52.2106 78.6291 49.6353 78.4437 49.327C78.3965 49.2483 78.2744 48.8025 78.9408 49.327C80.2001 50.3181 82.7616 52.0055 84.6496 52.9511C86.8905 54.0735 88.5724 53.5569 88.4641 53.3816C87.4428 51.7274 86.3881 50.1 85.3823 48.5517C85.2112 48.2884 78.0869 44.4894 77.9191 44.2309C77.7141 43.9151 84.8485 46.4945 84.6496 46.1869C83.7337 44.7695 82.9719 41.915 81.3213 40.0286C78.6771 37.0064 75.0912 34.9614 75.016 33.9452C74.973 33.3942 78.4941 34.8419 81.3213 37.8856C83.5598 40.2955 85.0212 44.2004 86.3371 45.435C86.97 46.0287 85.655 39.3967 86.3371 40.4042C87.3689 41.9282 86.6537 45.0776 87.7091 47.7944C88.109 48.8238 87.7515 48.1623 89.2115 50.9455C89.7777 52.0247 89.3365 50.057 89.2582 48.5517C89.1346 46.175 89.1108 43.3845 89.2582 43.6341C89.5698 44.1616 90.5474 53.2276 90.8634 53.7287C92.3671 56.113 93.4547 58.1169 93.8384 58.9615C96.5111 64.8447 100.453 70.1168 102.619 72.5211C104.25 74.361 106.202 74.5314 105.47 72.5211C104.024 68.5467 100.879 61.2742 101.275 60.5544C101.559 60.0845 101.615 60.1688 102.968 62.8428C105.903 68.6828 107.863 71.6331 111.581 75.8011C113.495 77.9307 114.043 78.2546 116.181 78.497C117.978 78.7065 119.063 79.2537 121.233 80.9759C122.027 81.6288 123.115 82.2535 123.755 82.413C126.31 83.1056 128.443 83.8209 129.055 84.2521C129.536 84.6004 129.833 85.0681 130.189 86.116L130.671 87.5106L131.647 87.5482C132.161 87.5704 133.916 89.2551 135.516 89.0649C139.162 88.6538 141.503 89.6542 143.142 88.2466C143.756 87.7091 144.289 87.2272 144.317 87.1647C144.345 87.1022 144.196 86.3453 143.968 85.5121C143.961 85.4843 144.92 85.0494 144.754 84.2521C144.541 83.2364 143.088 81.7447 141.84 80.9759C141.521 80.7791 141.144 79.993 140.687 79.8771C139.021 79.4548 136.688 80.0285 135.803 78.9734C135.164 78.2117 134.919 76.8557 134.645 75.8028C134.215 74.1519 133.882 72.7735 133.133 71.9805C131.906 70.6818 129.537 79.8407 126.437 78.9734C123.178 78.0617 121.569 76.246 120.889 74.9987C120.503 74.2914 118.66 73.7669 118.741 73.6939C118.838 73.6062 120.784 74.1488 121.493 74.9503C122.288 75.8493 123.736 77.0742 126.437 78.1011C128.962 79.0609 130.067 70.1165 133.133 70.9052C135.378 71.483 134.801 75.8946 136.884 78.497C137.625 79.4226 141.135 78.6261 141.84 79.4264C144.227 82.135 146.507 83.2855 146.644 83.2955C148.372 83.4347 148.277 84.0908 149.629 83.3209C149.705 83.2776 150.767 82.3703 151.471 82.0532C151.504 82.0384 151.118 79.6074 148.359 78.1011C147.509 77.6369 146.032 77.5246 144.754 77.1447C142.861 76.5824 141.135 75.7606 140.349 74.9987C139.033 73.7223 140.907 72.3896 139.78 71.5824C138.652 70.7753 134.628 70.7866 132.527 70.6081C130.513 70.4369 130.067 70.0426 129.055 69.3539C127.851 68.5344 127.213 67.5862 126.437 67.1613C125.772 66.7973 122.716 65.5732 122.246 65.4211C121.512 65.1834 126.413 66.0303 127.212 67.1613C127.598 67.7078 129.116 68.6613 130.189 69.3539C131.858 70.4307 138.16 69.6497 140.349 70.9052C141.891 71.7897 139.885 73.8771 141.196 74.88C143.05 76.2974 147.106 76.5358 148.975 77.6502C152.347 79.6602 153.138 82.0815 153.236 82.1072C153.865 82.2735 154.516 82.5768 154.966 83.0358C155.518 83.5983 155.346 84.7199 155.512 85.3029C155.81 86.3984 156.359 86.3812 156.321 87.3894C156.29 89.3895 156.321 89.8769 156.321 93.2573C156.321 96.6377 156.452 99.0113 155.961 99.1902C155.849 99.2309 155.932 97.6805 155.512 96.9436C154.602 95.4169 154.015 92.7734 153.168 92.5322C151.672 92.1082 152.511 92.5794 151.471 92.7775C150.608 92.9419 153.391 97.7048 153.365 99.2321C153.361 100.96 153.104 100.949 152.186 99.1902C151.648 98.1299 150.019 95.949 148.975 94.8895C148.699 94.6003 148.373 94.4462 148.03 94.4303C147.833 94.4212 148.233 97.9947 148.03 98.0778C147.805 98.1699 146.976 94.7823 146.76 94.9894C146.605 95.1386 146.868 98.6428 146.644 98.7789C146.454 98.895 145.785 95.6449 145.55 95.7498C145.31 95.8564 145.618 99.4246 145.336 99.518C145.072 99.6056 144.221 96.2191 143.923 96.2936C143.668 96.3576 143.815 99.4646 143.538 99.518C143.205 99.5781 142.501 96.6058 142.235 96.7083C142.031 96.7866 142.422 100.16 142.235 100.274C142.039 100.394 141.267 97.257 141.068 97.4274C140.828 97.6305 140.922 100.261 140.687 100.274C140.356 100.292 139.695 97.6203 139.34 97.4619C139.057 97.3358 138.929 100.737 138.607 100.632C138.324 100.54 137.852 96.9329 137.524 96.9436C137.326 96.9513 137.181 100.286 136.884 100.274C136.596 100.262 136.158 96.9038 135.803 96.8839C135.459 96.8646 135.03 100.291 134.645 100.274C134.286 100.258 133.974 96.7968 133.598 96.79C133.226 96.7832 132.899 99.5081 132.527 99.518C132.177 99.5274 131.781 96.8208 131.447 96.8514C131.115 96.8819 130.973 99.1807 130.671 99.2382C130.324 99.3047 129.823 97.1348 129.537 97.2461C129.004 97.4532 129.263 99.0912 129.055 99.2382C128.578 99.5952 127.536 98.5697 127.536 98.7789C127.52 99.3605 124.369 100.716 123.565 101.009C122.761 101.302 122.71 101.373 122.787 102.208C122.911 103.314 123.648 104.852 124.325 105.391C124.627 105.595 125.918 106.014 127.212 106.302C127.504 106.362 128.439 103.899 128.807 104.003C129.114 104.089 128.847 106.737 129.182 106.845C129.707 107.014 130.928 103.91 131.447 104.103C131.95 104.29 131.751 107.774 132.166 107.954C132.637 108.164 133.873 104.841 134.36 105.03C134.714 105.167 134.327 108.825 134.645 108.937C135.206 109.134 135.916 105.643 136.199 105.707C136.613 105.787 136.971 109.482 137.665 109.517C137.963 109.531 138.28 106.296 138.607 106.302C138.986 106.31 139.38 109.558 139.78 109.555C140.192 109.551 140.274 106.085 140.687 106.07C141.026 106.058 141.698 109.499 142.024 109.479C142.377 109.458 142.618 106.332
446142.941 106.302C143.253 106.273 143.647 109.34 143.917 109.302C144.341 109.238 144.649 105.761 145.031 105.707C145.537 105.636 146.076 108.995 146.23 108.984C146.433 108.964 147.226 106.443 147.685 106.568C147.89 106.624 147.737 109.285 147.935 109.358C148.325 109.507 149.3 105.998 149.629 106.07C149.959 106.142 149.642 109.793 150.051 109.797C150.335 109.8 150.66 107.238 151.041 107.212C151.331 107.191 151.652 109.711 152.024 109.675C152.523 109.627 152.635 106.316 153.168 106.302C153.628 106.29 154.506 109.57 154.966 109.581C155.334 109.59 155.157 106.822 155.512 106.845C155.828 106.866 156.677 109.677 156.974 109.708C157.529 109.767 158.045 109.843 158.495 109.937C160.116 110.289 162.688 111.237 162.568 111.463C162.54 111.526 162.055 111.86 161.477 112.149C160.279 112.82 160.304 112.889 162.014 115.015C163.161 116.429 164.402 118.725 164.066 118.847C163.977 118.88 163.395 118.463 162.763 117.908C161.787 117.034 159.995 116.142 159.548 116.305C159.257 116.41 159.289 117.472 159.632 119.179C160.366 122.654 160.579 125.952 160.327 129.916C160.149 132.624 159.66 132.881 159.565 130.325C159.521 128.535 156.199 120.036 155.08 118.768C154.638 118.249 154.213 117.985 154.051 118.096C153.889 118.207 153.488 119.191 153.168 120.328C152.648 122.166 151.488 124.472 151.019 124.643C150.907 124.683 150.911 123.583 151.041 122.201C151.173 120.478 151.121 119.293 150.866 118.523C150.454 117.181 150.747 117.153 147.416 118.915C143.972 120.718 139.285 121.743 140.144 120.489C140.281 120.308 140.755 119.874 141.196 119.556C143.042 118.23 145.152 116.52 145.336 116.191C145.635 115.69 145.307 114.998 144.754 114.938C144.51 114.896 143.267 115.165 142.005 115.52C140.265 116.022 139.063 116.198 136.884 116.259C134.243 116.304 133.377 116.148 134.36 115.79C134.986 115.563 135.599 114.397 135.199 114.203C134.676 113.948 129.884 113.782 127.898 113.956C126.889 114.035 125.419 114.099 124.656 114.088C123.894 114.078 123.237 114.082 123.215 114.09C123.17 114.106 123.08 113.929 122.996 113.698C122.904 113.444 123.082 112.961 123.459 112.536C123.799 112.15 124.03 111.673 123.955 111.465C123.879 111.257 122.887 110.964 121.604 110.777C120.388 110.565 118.689 110.137 117.817 109.827C116.944 109.516 115.748 109.219 115.128 109.183C113.719 109.067 113.4 108.817 113.849 108.104C114.07 107.736 114.103 107.41 113.929 107.212C113.764 107.036 111.587 106.756 108.938 106.568C104.897 106.312 103.575 106.087 99.6483 105.03C97.155 104.367 86.8109 102.133 80.6427 105.372C79.6018 105.919 81.3347 103.604 84.2896 102.208C86.0892 101.358 89.474 101.435 89.6817 101.009C89.7989 100.769 86.5892 99.5867 83.0887 99.2382C78.9629 98.8275 74.4366 99.2638 74.5285 99.2382C75.3904 98.9987 76.2412 97.4619 83.5523 97.4619C90.8634 97.4619 95.5484 101.205 95.694 101.009C95.854 100.794 93.7359 99.2893 90.8634 98.4281C88.0428 97.5825 82.4887 95.5886 77.381 94.8895C70.5056 93.9484 64.2176 94.3934 64.3985 94.0504C64.4442 93.9638 69.8731 92.8761 75.8797 93.2573C82.3984 93.6709 89.6041 95.5858 91.528 96.2936C95.0896 97.6039 98.9113 100.307 98.7491 100.07C98.6663 99.9489 97.1162 97.3278 93.8384 95.6321C90.0542 93.6743 84.2688 92.5755 80.6817 91.8965C70.4602 89.9618 57.967 88.7271 58.6637 88.2466C58.7787 88.1673 67.91 89.3697 76.9223 90C81.6317 90.3294 86.0861 89.7734 89.6817 90.36C92.5713 90.8314 94.454 92.4235 95.2611 92.87C98.9943 94.9349 97.2637 95.8399 98.2169 96.2936C100.514 97.3872 100.963 97.2021 101.639 96.7083C102.485 96.0896 102.442 93.096 103.483 90.36C104.282 88.2598 106.71 88.2663 106.653 88.2466C106.501 88.194 104.267 88.1599 102.968 89.3385C102.304 89.9406 102.111 91.9629 102.096 92.1794C101.979 93.7844 102.027 95.3008 100.677 95.6321C98.1394 96.2549 98.6469 93.3961 96.5987 91.8965C96.1277 91.5516 94.3207 90.5465 92.3007 90C90.3686 89.4773 88.2341 89.4066 87.2054 89.3385C82.984 89.059 76.64 90.2039 71.4725 88.2466C59.9556 83.8845 50.4385 75.6834 51.1386 75.4308C51.3743 75.3458 59.5807 82.5653 70.4096 85.955C77.4926 88.1722 87.1079 85.9019 93.3643 87.1647C95.4349 87.5827 96.4511 87.8788 97.5837 89.0649C98.9427 90.4882 99.2279 91.0465 99.6483 92.5322C100.069 94.0178 100.065 88.4447 97.5837 87.5106C92.0464 85.4263 80.5209 85.3202 75.8797 83.3209C66.5395 79.2974 60.9385 73.8766 60.8893 73.6939C60.6903 72.9548 67.9861 78.6294 76.5461 82.0532C82.9489 84.6143 91.1462 85.2435 91.528 84.6466C91.7519 84.2965 86.0591 81.3443 83.9075 80.9759C80.9117 80.4629 88.4067 81.4506 88.1041 80.9759C87.54
44612 80.0928 76.8584 74.1776 76.9223 74.1544C77.3915 73.9836 85.3906 77.6102 83.67 75.8028C82.7579 74.8264 81.3869 73.2843 80.6817 72.3896C79.9457 71.4799 78.0905 69.3028 76.5461 67.5622C73.8992 64.6003 72.9727 63.2367 73.4866 63.0496C73.5983 63.0089 73.9282 63.1506 74.1855 63.3709ZM122.686 89.7434C121.675 86.0936 117.978 85.7693 115.344 86.7587C114.187 87.3774 113.976 87.4657 113.504 88.0483C113.517 88.1814 116.474 90.8384 118.138 91.4722C120.022 92.2172 122.596 91.6066 122.79 91.4515C123.007 91.2854 122.976 90.7419 122.686 89.7434Z",fill:s,around:"center",cursor:"pointer",hoverStyle:{scale:1.2},pressStyle:{scale:3,transition:.5}});t.add(n);const r=[new Vt({path:L4,fill:s,around:"center"}),new Vt({path:R4,fill:s,around:"center"}),new Vt({path:L4,fill:s,around:"center"}),new Vt({path:R4,fill:s,around:"center"})];t.add(r);const o=[];for(let u=0;u<36;u++){let p=1;u<10?p-=(10-u)/30:u>16&&(p-=(u-16)/30),o.push(new Vt({path:"M0 35L0 35M5.22031 0.227803C5.22031 0.899546 11.8291 4.57547 15.1335 6.32947C17.0028 7.34056 16.6676 8.09423 16.2664 8.34468C15.8887 8.34468 13.5796 7.81818 8.70803 4.72816C2.61852 0.865639 5.22031 -0.611875 5.22031 0.227803ZM18.5538 1.52726C18.5538 2.199 25.1626 5.87492 28.467 7.62892C30.3363 8.64002 30.0011 9.39368 29.5999 9.64413C29.2223 9.64414 27.1259 9.47216 22.2543 6.38214C16.1648 2.51962 18.5538 0.687578 18.5538 1.52726ZM9.23438 8.51768C8.92671 8.36604 8.5303 8.40408 8.27534 8.6097L6.9218 9.70132C6.61695 9.94718 6.61695 10.3458 6.9218 10.5917L8.27534 11.6833C8.5303 11.8889 8.92671 11.9269 9.23438 11.7753L11.4493 10.6837C11.9473 10.4382 11.9473 9.85479 11.4493 9.6093L9.23438 8.51768ZM16.189 8.61139C16.4587 8.40636 16.8699 8.38247 17.1731 8.55421L19.0752 9.63129C19.5179 9.882 19.5179 10.4111 19.0752 10.6618L17.1731 11.7388C16.8699 11.9105 16.4587 11.8866 16.1891 11.6816L15.375 11.0626C14.7214 10.5656 14.7214 9.72739 15.375 9.23037L16.189 8.61139ZM25.43 8.70435C25.1252 8.45849 24.6309 8.45849 24.3261 8.70435L22.9908 9.78122C22.7275 9.99356 22.6868 10.3263 22.8936 10.576L25.0572 13.189C25.4405 13.652 26.3255 13.5154 26.4698 12.971L27.1295 10.4812C27.1848 10.2725 27.1052 10.0554 26.9181 9.90445L25.43 8.70435ZM16.6123 12.3073C16.9365 12.039 17.4776 12.057 17.7733 12.3458L19.7806 14.3064C20.0516 14.5711 20.0097 14.9621 19.6864 15.1854L17.1197 16.9583C16.8455 17.1477 16.4461 17.1608 16.1538 16.9899L13.8378 15.6361C13.4523 15.4108 13.4046 14.962 13.7369 14.687L16.6123 12.3073ZM24.6326 13.1979C24.3899 13.082 24.0887 13.0806 23.8445 13.1943L21.2614 14.3968C20.7492 14.6353 20.739 15.2285 21.2427 15.4784L24.473 17.0804C24.7217 17.2038 25.0351 17.2048 25.2852 17.0831L27.873 15.8236C28.3785 15.5776 28.3755 14.9855 27.8675 14.7429L24.6326 13.1979ZM15.7243 18.3082C16.0343 17.9428 16.7028 17.9428 17.0128 18.3082L18.7185 20.3188C18.8861 20.5164 18.9002 20.7737 18.7548 20.9826L17.2612 23.1273C16.9794 23.532 16.2698 23.5599 15.9404 23.1792L14.0534 20.9983C13.8676 20.7836 13.866 20.4986 14.0493 20.2825L15.7243 18.3082ZM26.2712 19.1317C25.6935 18.2107 24.0626 18.2107 23.4849 19.1317L22.7539 20.2971C22.6214 20.5084 22.6471 20.7619 22.8204 20.953L24.248 22.527C24.5598 22.8709 25.1962 22.8709 25.5081 22.527L26.9357 20.953C27.109 20.7619 27.1347 20.5084 27.0022 20.2971L26.2712 19.1317ZM8.42454 24.1448C8.60355 24.0004 8.85826 23.935 9.10782 23.9694L10.2448 24.1258C10.7954 24.2016 11.072 24.7056 10.7714 25.0852L9.23283 27.0287C8.96433 27.3679 8.37568 27.4196 8.02289 27.1351L6.92181 26.2471C6.61696 26.0012 6.61696 25.6026 6.92181 25.3567L8.42454 24.1448ZM17.2041 24.3599C16.8993 24.114 16.405 24.114 16.1002 24.3599L14.864 25.3568C14.5592 25.6027 14.5592 26.0013 14.864 26.2471L16.1002 27.2441C16.405 27.4899 16.8993 27.4899 17.2041 27.2441L18.4403 26.2471C18.7452 26.0013 18.7452 25.6027 18.4403 25.3568L17.2041 24.3599ZM24.3261 24.3599C24.6309 24.114 25.1252 24.114 25.43 24.3599L26.5589 25.2703C26.9026 25.5474 26.852 26.0078 26.4532 26.2319L25.7386 26.6336C25.5128 26.7605 25.2208 26.7822 24.9701 26.6906L23.5654 26.1774C23.0685 25.9958 22.9498 25.4698 23.3355 25.1587L24.3261 24.3599ZM9.83185 18.6545C9.52101 18.4322 9.04875 18.4452 8.75741 18.6841L6.91277 20.1964C6.61219 20.4429 6.61421 20.8387 6.91729 21.0831L8.27897 22.1813C8.53226 22.3855 8.92543 22.4246 9.23258 22.2759L11.6977 21.083C12.1499 20.8643 12.2086 20.3543 11.814 20.0722L9.83185 18.6545ZM28.2972 21.807C28.602 21.5611 29.0963 21.5611 29.4011 21.807L30.5136 22.7042C30.8627 22.9857 30.8041 23.4547 30.3924 23.6744L28.483 24.6933C28.1058 24.8946 27.5961 24.796 27.3731 24.4787L26.8019 23.6659C26.6289 23.4197 26.6809 23.1105 26.9291 22.9103L28.2972 21.807ZM21.1753 21.807C20.8704 21.5611 20.3761 21.5611 20.0713 21.807L18.7028 22.9107C18.4548 23.1107 18.4027 23.4195 18.5753 23.6657L20.2408 26.0407C20.5645 26.5023 21.4074 26.4541 21.6471 25.9603L22.7772 23.6326C22.8903 23.3997 22.8217 23.1348 22.6023 22.9579L21.1753 21.807ZM12.1291 21.807C12.4339 21.5611 12.9282 21.5611 13.233 21.807L14.6892 22.9814C14.8935 23.1461 14.9682 23.3884 14.8836 23.6111L14.0696 25.7523C13.8794 26.2527 13.0593 26.3583 12.6853 25.9306L10.7197 23.6823C10.5008 23.432 10.5371 23.0909 10.8056 22.8743L12.1291 21.807ZM9.3268 13.205C8.98152 13.0166 8.51368 13.0803 8.26416 13.3496L6.72522 15.0105C6.51521 15.2371 6.51848 15.5489 6.73321 15.7727L8.19483 17.2957C8.47284 17.5853 8.99762 17.6232 9.33493 17.3779L11.3892 15.8838C11.3531 15.925 11.3223 15.9708 11.2981 16.0209L10.4958 17.681C10.3993 17.8808 10.4354 18.1064 10.5917 18.2798L12.0496 19.8974C12.3614 20.2433 13.0008 20.2433 13.3125 19.8974L14.6503 18.4131C14.8666 18.173 14.8457 17.8437 14.6001 17.6227L12.6067 15.8293C12.3463 15.595 11.9418 15.5645 11.6398 15.7016L11.8697 15.5344C12.2462 15.2606 12.2042 14.7744 11.7842 14.5454L9.3268 13.205ZM28.2619 16.3875C28.5729 16.1012 29.1254 16.1012 29.4364 16.3875L30.7838 17.6283C31.02
44616 17.8472 31.0423 18.1691 30.8338 18.4067L29.4864 19.9426C29.1753 20.2971 28.523 20.2971 28.2119 19.9426L26.8645 18.4067C26.656 18.1691 26.6767 17.8472 26.9145 17.6282L28.2619 16.3875ZM20.5467 15.6603C20.2248 15.4827 19.7899 15.524 19.5278 15.7569L17.8377 17.2592C17.5989 17.4715 17.568 17.7871 17.7626 18.027L19.8824 20.6396C20.1758 21.0013 20.8237 21.0224 21.1523 20.6809L23.0816 18.6759C23.6328 18.1031 23.4717 17.2741 22.7297 16.8647L20.5467 15.6603ZM28.2979 11.3449C28.599 11.0837 29.1089 11.0762 29.4216 11.3284L30.7238 12.3786C30.9927 12.5955 31.0287 12.9371 30.809 13.1874L29.4198 14.7709C29.1286 15.1028 28.5295 15.1284 28.1965 14.8231L26.7627 13.5088C26.4979 13.266 26.5041 12.901 26.777 12.6642L28.2979 11.3449ZM21.5931 9.63376C21.2841 9.29955 20.6649 9.29546 20.3492 9.62554L18.2607 11.8089C18.028 12.0522 18.0471 12.3954 18.3058 12.621L20.1861 14.2602C20.4399 14.4815 20.8527 14.5266 21.1704 14.3677L23.0067 13.4496C23.7844 13.0608 23.9826 12.2184 23.4357 11.6268L21.5931 9.63376ZM12.9316 9.98368C13.2899 9.7446 13.8262 9.80949 14.0816 10.1228L15.7986 12.2289C16.0351 12.5191 15.9357 12.909 15.5763 13.1003L13.0912 14.423C12.8406 14.5564 12.5172 14.562 12.2596 14.4374L9.7267 13.2117C9.26494 12.9883 9.21577 12.4638 9.63063 12.1869L12.9316 9.98368ZM21.3544 6.97893C18.687 5.55195 13.3522 2.56136 13.3522 2.01486C13.3522 1.33173 11.2238 2.7104 16.1394 5.85279C20.0719 8.3667 21.9641 8.61843 22.2689 8.61842C22.5928 8.41467 22.8634 7.80151 21.3544 6.97893ZM10.9468 6.73668C7.14987 6.38214 1.33502 3.07657 1.33502 2.55284C1.33502 1.89817 -0.52645 2.87427 4.24244 5.88572C8.05755 8.29489 10.6511 8.65132 10.9468 8.65132C11.261 8.45606 12.4107 7.52499 10.9468 6.73668Z",fill:s,scale:p,around:"center"}))}t.add(o);const a=new Vt({path:"M0 0L0 0M180 180L180 180M90.8124 91.8759C87.2571 91.2536 78.8116 92.8819 75.5554 94.3787C72.9437 95.5783 72.5848 95.4033 73.4587 93.3839C74.0704 91.9591 74.0912 91.8025 73.6531 91.5054C72.6757 90.8342 64.9255 92.7793 60.8364 94.7314C59.3585 95.4279 56.9684 96.4578 55.467 97.0317C53.5765 97.7772 51.7555 98.7789 49.4593 100.299C47.5626 101.57 46.1415 102.377 46.0727 102.177C46.0268 102.043 46.3626 100.957 46.8318 99.8237C47.9128 97.2659 49.4453 95.262 51.6064 93.6202C53.4129 92.2501 53.4791 92.1713 52.8736 91.8759C51.9765 91.4384 50.8292 91.6848 46.6801 93.1907C40.4621 95.4663 37.7529 96.9797 32.5563 101.032C28.4125 104.291 27.3497 105.218 25.7269 107.122C23.9054 109.263 23.7076 108.416 25.2511 105.195C26.0286 103.601 26.7649 102.376 27.3833 101.677C27.9137 101.102 28.7741 100.021 29.2804 99.2673C30.2936 97.8161 32.183 95.7638 33.1915 95.0051C34.0562 94.3707 34.1208 94.1243 33.448 93.7962C32.6407 93.4024 25.9325 95.7724 21.8559 97.8695C16.28 100.764 13.2861 102.861 8.92598 106.849C8.00765 107.707 7.04394 108.488 6.77693 108.58C6.34303 108.729 6.37535 108.606 7.03551 107.594C10.4344 102.276 14.6261 98.1786 19.7868 95.0539C23.8269 92.6332 32.3086 88.9605 35.094 88.4292C36.6539 88.1339 36.4259 87.6336 34.3982 86.8391C32.2474 86.0125 31.633 85.963 25.6955 86.013C22.9721 86.0187 20.7165 85.9191 20.6706 85.7855C20.5443 85.4182 24.9855 84.1103 26.9595 83.9336C27.8627 83.8461 29.7136 83.6372 31.1295 83.4662C35.7116 82.8941 39.7988 83.1088 44.988 84.1946C46.9563 84.5988 47.906 84.7007 48.0155 84.4762C48.2564 83.9822 46.4508 83.0738 42.4527 81.6518C37.1554 79.763 36.975 79.5638 40.6919 79.5702C46.5741 79.5766 52.372 80.0976 57.8616 81.0798C59.628 81.3855 61.1817 81.6152 61.3485 81.5576C61.9827 81.3389 59.9048 79.9641 57.3383 78.8513C55.9375 78.2515 54.7937 77.6936 54.8156 77.6487C54.8923 77.4916 58.8444 77.5849 60.5764 77.7904C62.9342 78.0788 66.2105 78.7041 68.5271 79.3615C69.7246 79.6954 71.0222 79.9948 71.4018 80.0132C72.3625 80.0927 90.0154 82.9782 93.1439 84.4757C100.869 88.2164 93.5739 92.3613 90.8124 91.8759Z",fill:s,around:"center"});t.add(a);const l=i.getMotionTotal();let h=700;function c(u){return u<0?l+u:u}function d(u){let p=u;n.set(i.getMotionPoint(p)),p-=15,o.forEach(y=>{y.set(i.getMotionPoint(c(p))),p-=30*y.scaleX*.75}),a.set(i.getMotionPoint(c(p)));const _=(p-u)/4;p=u+_,r[0].set(i.getMotionPoint(c(p))),r[1].set(i.getMotionPoint(c(p+=20))),p=u+3*_,r[2].set(i.getMotionPoint(c(p))),r[3].set(i.getMotionPoint(c(p+=20)))}function g(){h+=8,h>l&&(h=0),d(h),L.requestRender(g)}return n.on("tap",()=>{n.path="M0 0L0 0M200 200L200 200M74.1855 63.3709C75.1589 64.168 76.8372 65.6506 78.9408 67.6064C81.9675 70.43 83.0004 72.3608 87.2054 74.3892C90.3116 75.9016 91.3793 76.1933 91.1018 75.4308C90.9841 75.1073 90.0688 73.8442 87.4464 70.3239L85.9771 68.3727C84.6934 65.7777 83.7306 63.8315 83.0887 62.534C82.9165 62.1858 69.1398 55.7125 64.9891 53.3816C64.0715 52.8663 65.4785 52.4959 67.0752 53.3816C68.1396 53.9721 72.8883 55.832 81.3213 58.9615C80.6506 57.0428 79.5101 55.7717 75.8797 51.3107C74.2168 49.2673 66.0944 47.8197 64.9891 46.1868C64.1681 44.9739 74.6499 49.5643 74.5285 48.5311C74.2037 45.7686 72.2119 43.4112 69.1918 40.4042C66.1718 37.3973 60.1817 31.6662 63.7455 33.337C63.764 33.372 70.3842 39.9846 70.4096 40.0286C70.996 41.0414 74.3102 44.4099 76.9483 48.3723C77.1512 48.6771 76.8296 47.4044 76.9223 45.435C77.056 42.594 75.5547 37.9273 75.8797 37.8856C75.8997 37.8831 77.4989 42.7137 77.9191 46.1868C78.3229 49.5248 79.8318 52.6837 80.0867 53.0629C81.9378 55.8169 83.7416 58.4788 85.107 60.4675C86.2075 62.0704 83.9637 56.1478 84.2896 56.5721C84.7647 57.2004 88.3497 64.947 88.8982 65.6065C91.4487 68.6729 94.4951 71.764 95.2611 71.9805C95.9627 72.17 95.9309 71.318 95.2161 69.3539C94.6866 67.8993 93.0804 62.0049 90 56.5721C89.8003 56.22 86.6555 55.8776 83.5523 53.924C80.8306 52.2106 78.6291 49.6353 78.4437 49.327C78.3965 49.2483 78.2744 48.8025 78.9408 49.327C80.2001 50.3181 82.7616 52.0055 84.6496 52.9511C86.8905 54.0735 88.5724 53.5569 88.4641 53.3816C87.4428 51.7274 86.3881 50.1 85.3823 48.5517C85.2112 48.2884 78.0869 44.4894 77.9191 44.2309C77.7141 43.9151 84.8485 46.4945 84.6496 46.1869C83.7337 44.7695 82.9719 41.915 81.3213 40.0286C78.6771 37.0064 75.0912 34.9614 75.016 33.9452C74.973 33.3942 78.4941 34.8419 81.3213 37.8856C83.5598 40.2955 85.0212 44.2004 86.3371 45.435C86.97 46.0287 85.655 39.3967 86.3371 40.4042C87.3689 41.9282 86.6537 45.0776 87.7091 47.7944C88.109 48.8238 87.7515 48.1623 89.2115 50.9455C89.7777 52.0247 89.3365 50.057 89.2582 48.5517C89.1346 46.175 89.1108 43.3845 89.2582 43.6341C89.5698 44.1616 90.5474 53.2276 90.8634 53.7287C92.3671 56.113 93.4547 58.1169 93.8384 58.9615C96.5111 64.8447 100.453 70.1168 102.619 72.5211C104.25 74.361 106.202 74.5314 105.47 72.5211C104.024 68.5467 100.879 61.2742 101.275 60.5544C101.559 60.0845 101.615 60.1688 102.968 62.8428C105.903 68.6828 107.863 71.
4466331 111.581 75.8011C113.495 77.9307 114.043 78.2546 116.181 78.497C117.978 78.7065 119.063 79.2537 121.233 80.9759C122.027 81.6288 123.115 82.2535 123.755 82.413C126.31 83.1056 128.443 83.8209 129.055 84.2521C129.536 84.6004 129.833 85.0681 130.189 86.116L130.671 87.5106L131.647 87.5482C132.161 87.5704 133.916 89.2551 135.516 89.0649C139.162 88.6538 141.503 89.6542 143.142 88.2466C143.756 87.7091 144.289 87.2272 144.317 87.1647C144.345 87.1022 144.196 86.3453 143.968 85.5121C143.961 85.4843 144.92 85.0494 144.754 84.2521C144.541 83.2364 143.088 81.7447 141.84 80.9759C141.521 80.7791 141.144 79.993 140.687 79.8771C139.021 79.4548 136.688 80.0285 135.803 78.9734C135.164 78.2117 134.919 76.8557 134.645 75.8028C134.215 74.1519 133.882 72.7735 133.133 71.9805C131.906 70.6818 129.537 79.8407 126.437 78.9734C123.178 78.0617 121.569 76.246 120.889 74.9987C120.503 74.2914 118.66 73.7669 118.741 73.6939C118.838 73.6062 120.784 74.1488 121.493 74.9503C122.288 75.8493 123.736 77.0742 126.437 78.1011C128.962 79.0609 130.067 70.1165 133.133 70.9052C135.378 71.483 134.801 75.8946 136.884 78.497C137.625 79.4226 141.135 78.6261 141.84 79.4264C144.227 82.135 146.507 83.2855 146.644 83.2955C148.372 83.4347 148.277 84.0908 149.629 83.3209C149.705 83.2776 150.767 82.3703 151.471 82.0532C151.504 82.0384 151.118 79.6074 148.359 78.1011C147.509 77.6369 146.032 77.5246 144.754 77.1447C142.861 76.5824 141.135 75.7606 140.349 74.9987C139.033 73.7223 140.907 72.3896 139.78 71.5824C138.652 70.7753 134.628 70.7866 132.527 70.6081C130.513 70.4369 130.067 70.0426 129.055 69.3539C127.851 68.5344 127.213 67.5862 126.437 67.1613C125.772 66.7973 122.716 65.5732 122.246 65.4211C121.512 65.1834 126.413 66.0303 127.212 67.1613C127.598 67.7078 129.116 68.6613 130.189 69.3539C131.858 70.4307 138.16 69.6497 140.349 70.9052C141.891 71.7897 139.885 73.8771 141.196 74.88C143.05 76.2974 147.106 76.5358 148.975 77.6502C152.347 79.6602 153.138 82.0815 153.236 82.1072C153.865 82.2735 154.516 82.5768 154.966 83.0358C155.518 83.5983 155.346 84.7199 155.512 85.3029C155.81 86.3984 156.359 86.3812 156.321 87.3894C156.29 89.3895 156.321 89.8769 156.321 93.2573C156.321 96.6377 156.452 99.0113 155.961 99.1902C155.849 99.2309 155.932 97.6805 155.512 96.9436C154.602 95.4169 154.015 92.7734 153.168 92.5322C151.672 92.1082 152.511 92.5794 151.471 92.7775C150.608 92.9419 153.391 97.7048 153.365 99.2321C153.361 100.96 153.104 100.949 152.186 99.1902C151.648 98.1299 150.019 95.949 148.975 94.8895C148.699 94.6003 148.373 94.4462 148.03 94.4303C147.833 94.4212 148.233 97.9947 148.03 98.0778C147.805 98.1699 146.976 94.7823 146.76 94.9894C146.605 95.1386 146.868 98.6428 146.644 98.7789C146.454 98.895 145.785 95.6449 145.55 95.7498C145.31 95.8564 145.618 99.4246 145.336 99.518C145.072 99.6056 144.221 96.2191 143.923 96.2936C143.668 96.3576 143.815 99.4646 143.538 99.518C143.205 99.5781 142.501 96.6058 142.235 96.7083C142.031 96.7866 142.422 100.16 142.235 100.274C142.039 100.394 141.267 97.257 141.068 97.4274C140.828 97.6305 140.922 100.261 140.687 100.274C140.356 100.292 139.695 97.6203 139.34 97.4619C139.057 97.3358 138.929 100.737 138.607 100.632C138.324 100.54 137.852 96.9329 137.524 96.9436C137.326 96.9513 137.181 100.286 136.884 100.274C136.596 100.262 136.158 96.9038 135.803 96.8839C135.459 96.8646 135.03 100.291 134.645 100.274C134.286 100.258 133.974 96.7968 133.598 96.79C133.226 96.7832 132.899 99.5081 132.527 99.518C132.177 99.5274 131.781 96.8208 131.447 96.8514C131.115 96.8819 130.973 99.1807 130.671 99.2382C130.324 99.3047 129.823 97.1348 129.537 97.2461C129.004 97.4532 129.263 99.0912 129.055 99.2382C128.578 99.5952 127.536 98.5697 127.536 98.7789C127.52 99.3605 124.369 100.716 123.565 101.009C122.761 101.302 122.71 101.373 122.787 102.208C122.911 103.314 123.648 104.852 124.325 105.391C124.627 105.595 125.918 106.014 127.212 106.302C127.504 106.362 128.439 103.899 128.807 104.003C129.114 104.089 128.847 106.737 129.182 106.845C129.707 107.014 130.928 103.91 131.447 104.103C131.95 104.29 131.751 107.774 132.166 107.954C132.637 108.164 133.873 104.841 134.36 105.03C134.714 105.167 134.327 108.825 134.645 108.937C135.206 109.134 135.916 105.643 136.199 105.707C136.613 105.787 136.971 109.482 137.665 109.517C137.963 109.531 138.28 106.296 138.607 106.302C138.986 106.31 139.38 109.558 139.78 109.555C140.192 109.551 140.274 106.085 140.687 106.07C141.026 106.058 141.698 109.499 142.024 109.479C142.377 109.458 142.618 106.332
446142.941 106.302C143.253 106.273 143.647 109.34 143.917 109.302C144.341 109.238 144.649 105.761 145.031 105.707C145.537 105.636 146.076 108.995 146.23 108.984C146.433 108.964 147.226 106.443 147.685 106.568C147.89 106.624 147.737 109.285 147.935 109.358C148.325 109.507 149.3 105.998 149.629 106.07C149.959 106.142 149.642 109.793 150.051 109.797C150.335 109.8 150.66 107.238 151.041 107.212C151.331 107.191 151.652 109.711 152.024 109.675C152.523 109.627 152.635 106.316 153.168 106.302C153.628 106.29 154.506 109.57 154.966 109.581C155.334 109.59 155.157 106.822 155.512 106.845C155.828 106.866 156.677 109.677 156.974 109.708C157.529 109.767 158.045 109.843 158.495 109.937C160.116 110.289 162.688 111.237 162.568 111.463C162.54 111.526 162.055 111.86 161.477 112.149C160.279 112.82 160.304 112.889 162.014 115.015C163.161 116.429 164.402 118.725 164.066 118.847C163.977 118.88 163.395 118.463 162.763 117.908C161.787 117.034 159.995 116.142 159.548 116.305C159.257 116.41 159.289 117.472 159.632 119.179C160.366 122.654 160.579 125.952 160.327 129.916C160.149 132.624 159.66 132.881 159.565 130.325C159.521 128.535 156.199 120.036 155.08 118.768C154.638 118.249 154.213 117.985 154.051 118.096C153.889 118.207 153.488 119.191 153.168 120.328C152.648 122.166 151.488 124.472 151.019 124.643C150.907 124.683 150.911 123.583 151.041 122.201C151.173 120.478 151.121 119.293 150.866 118.523C150.454 117.181 150.747 117.153 147.416 118.915C143.972 120.718 139.285 121.743 140.144 120.489C140.281 120.308 140.755 119.874 141.196 119.556C143.042 118.23 145.152 116.52 145.336 116.191C145.635 115.69 145.307 114.998 144.754 114.938C144.51 114.896 143.267 115.165 142.005 115.52C140.265 116.022 139.063 116.198 136.884 116.259C134.243 116.304 133.377 116.148 134.36 115.79C134.986 115.563 135.599 114.397 135.199 114.203C134.676 113.948 129.884 113.782 127.898 113.956C126.889 114.035 125.419 114.099 124.656 114.088C123.894 114.078 123.237 114.082 123.215 114.09C123.17 114.106 123.08 113.929 122.996 113.698C122.904 113.444 123.082 112.961 123.459 112.536C123.799 112.15 124.03 111.673 123.955 111.465C123.879 111.257 122.887 110.964 121.604 110.777C120.388 110.565 118.689 110.137 117.817 109.827C116.944 109.516 115.748 109.219 115.128 109.183C113.719 109.067 113.4 108.817 113.849 108.104C114.07 107.736 114.103 107.41 113.929 107.212C113.764 107.036 111.587 106.756 108.938 106.568C104.897 106.312 103.575 106.087 99.6483 105.03C97.155 104.367 86.8109 102.133 80.6427 105.372C79.6018 105.919 81.3347 103.604 84.2896 102.208C86.0892 101.358 89.474 101.435 89.6817 101.009C89.7989 100.769 86.5892 99.5867 83.0887 99.2382C78.9629 98.8275 74.4366 99.2638 74.5285 99.2382C75.3904 98.9987 76.2412 97.4619 83.5523 97.4619C90.8634 97.4619 95.5484 101.205 95.694 101.009C95.854 100.794 93.7359 99.2893 90.8634 98.4281C88.0428 97.5825 82.4887 95.5886 77.381 94.8895C70.5056 93.9484 64.2176 94.3934 64.3985 94.0504C64.4442 93.9638 69.8731 92.8761 75.8797 93.2573C82.3984 93.6709 89.6041 95.5858 91.528 96.2936C95.0896 97.6039 98.9113 100.307 98.7491 100.07C98.6663 99.9489 97.1162 97.3278 93.8384 95.6321C90.0542 93.6743 84.2688 92.5755 80.6817 91.8965C70.4602 89.9618 57.967 88.7271 58.6637 88.2466C58.7787 88.1673 67.91 89.3697 76.9223 90C81.6317 90.3294 86.0861 89.7734 89.6817 90.36C92.5713 90.8314 94.454 92.4235 95.2611 92.87C98.9943 94.9349 97.2637 95.8399 98.2169 96.2936C100.514 97.3872 100.963 97.2021 101.639 96.7083C102.485 96.0896 102.442 93.096 103.483 90.36C104.282 88.2598 106.71 88.2663 106.653 88.2466C106.501 88.194 104.267 88.1599 102.968 89.3385C102.304 89.9406 102.111 91.9629 102.096 92.1794C101.979 93.7844 102.027 95.3008 100.677 95.6321C98.1394 96.2549 98.6469 93.3961 96.5987 91.8965C96.1277 91.5516 94.3207 90.5465 92.3007 90C90.3686 89.4773 88.2341 89.4066 87.2054 89.3385C82.984 89.059 76.64 90.2039 71.4725 88.2466C59.9556 83.8845 50.4385 75.6834 51.1386 75.4308C51.3743 75.3458 59.5807 82.5653 70.4096 85.955C77.4926 88.1722 87.1079 85.9019 93.3643 87.1647C95.4349 87.5827 96.4511 87.8788 97.5837 89.0649C98.9427 90.4882 99.2279 91.0465 99.6483 92.5322C100.069 94.0178 100.065 88.4447 97.5837 87.5106C92.0464 85.4263 80.5209 85.3202 75.8797 83.3209C66.5395 79.2974 60.9385 73.8766 60.8893 73.6939C60.6903 72.9548 67.9861 78.6294 76.5461 82.0532C82.9489 84.6143 91.1462 85.2435 91.528 84.6466C91.7519 84.2965 86.0591 81.3443 83.9075 80.9759C80.9117 80.4629 88.4067 81.4506 88.1041 80.9759C87.54
44612 80.0928 76.8584 74.1776 76.9223 74.1544C77.3915 73.9836 85.3906 77.6102 83.67 75.8028C82.7579 74.8264 81.3869 73.2843 80.6817 72.3896C79.9457 71.4799 78.0905 69.3028 76.5461 67.5622C73.8992 64.6003 72.9727 63.2367 73.4866 63.0496C73.5983 63.0089 73.9282 63.1506 74.1855 63.3709ZM118.04 87.3619C117.106 87.7019 116.624 88.7348 116.964 89.6689C117.304 90.6031 118.337 91.0847 119.271 90.7447C120.205 90.4047 120.687 89.3718 120.347 88.4377C120.007 87.5035 118.974 87.0218 118.04 87.3619ZM122.686 89.7434C121.675 86.0936 117.978 85.7693 115.344 86.7587C114.187 87.3774 113.976 87.4657 113.504 88.0483C113.517 88.1814 116.474 90.8384 118.138 91.4722C120.022 92.2172 122.596 91.6066 122.79 91.4515C123.007 91.2854 122.976 90.7419 122.686 89.7434Z",setTimeout(()=>{g()},500)}),d(h),t}getData(){return[{}]}};P4=f([F()],P4);const i0={style:{x:500},easing:"ease",duration:2,loop:!0};let F4=class extends I{get tag(){return"AnimateEasingCase"}getUI(e){return e.fill="#32cd79",e.x=e.x===50?50:0,e.width=50,e.height=50,new J(e)}getData(){return[{animation:i0},{animation:Object.assign(Object.assign({},i0),{easing:"linear"})},{x:50,animation:Object.assign(Object.assign({},i0),{easing:"back-in"})},{animation:Object.assign(Object.assign({},i0),{easing:"elastic-out"})},{animation:Object.assign(Object.assign({},i0),{easing:"bounce-out"})},{animation:Object.assign(Object.assign({},i0),{easing:{name:"cubic-bezier",value:[.5,.1,.25,1]}})},{animation:Object.assign(Object.assign({},i0),{easing:{name:"steps",value:6}})}]}};F4=f([F()],F4);let M4=class extends I{get tag(){return"TransitionCase"}getUI(e){return new k({x:e.x+30,y:e.y+30,fill:"#32cd79",cornerRadius:5,origin:"center",button:!0,hoverStyle:{fill:"#FF4B4B",scale:1.5,cornerRadius:20},pressStyle:{fill:"#FEB027",scale:1.1,transitionOut:"bounce-out"},children:[{tag:"Text",text:"Button",fontSize:16,fontWeight:"bold",padding:[10,20],fill:"rgba(0,0,0,0.5)",hoverStyle:{fill:"black"}}]})}getData(){return[{}]}};M4=f([F()],M4);let D4=class extends I{get tag(){return"RobotCase"}getUI(e){const t=new qe({fill:"",robot:{url:"/image/arrows.png",size:{width:100,height:100},total:20},actions:{up:0,right:5,down:10,left:15,arrowUp:[0,1,2,3,4],arrowRight:[5,6,7,8,9],arrowDown:[10,11,12,13,14],arrowLeft:[15,16,17,18,19]},action:"arrowRight"});let i=5;return t.waitLeafer(()=>{t.leafer.on(Zt.DOWN,s=>{switch(i++,s.code){case"ArrowUp":t.action="arrowUp",t.y-=i;break;case"ArrowDown":t.action="arrowDown",t.y+=i;break;case"ArrowLeft":t.action="arrowLeft",t.x-=i;break;case"ArrowRight":t.action="arrowRight",t.x+=i}}),t.leafer.on(Zt.UP,s=>{switch(i=5,s.code){case"ArrowUp":t.action="up";break;case"ArrowDown":t.action="down";break;case"ArrowLeft":t.action="left";break;case"ArrowRight":t.action="right"}})}),t}getData(){return[{}]}};function Vf(){(function(){console.log("test leafer destroy"),new te({view:window,smooth:!1}).destroy(),window.dispatchEvent(new PointerEvent("pointermove"))})()}D4=f([F()],D4);export{G1 as AlignHelper,e4 as AngularCase,Ut as Animate,T4 as AnimateCarCase,b4 as AnimateCase,k4 as AnimateColorCase,no as AnimateEasing,F4 as AnimateEasingCase,zt as AnimateEvent,B4 as AnimateFramesCase,A4 as AnimateGradientCase,J0 as AnimateList,S4 as AnimatePageCase,E4 as AnimatePathCase,u1 as Answer,$r as App,x5 as AppCase,m5 as AppRealCanvasCase,Y5 as AroundCase,qt as AroundHelper,pr as Arrow,k5 as ArrowCase,jg as ArrowData,sd as AutoBounds,j1 as BackgroundRunner,pe as BezierHelper,X5 as BlendModeCase,rt as Bounds,Ae as BoundsEvent,P as BoundsHelper,k as Box,T5 as BoxCase,gi as BoxData,b1 as Branch,Di as BranchHelper,h7 as BranchRender,l4 as ButtonCase,ni as Canvas,c9 as CanvasData,W4 as CanvasManager,I as Case,cs as CaseCreator,Mt as ChildEvent,Ct as ColorConvert,bt as Creator,lc as Cursor,n4 as CursorCase,q as DataHelper,ot as Debug,p1 as Direction4,g0 as Direction9,as as DragBoundsHelper,G as DragEvent,rc as Dragger,P4 as DragonCase,sn as DropEvent,es as EditBox,c0 as EditDataHelper,Xs as EditPoint,ig as EditSelect,tg as EditSelectHelper,F1 as EditTool,Je as EditToolCreator,d0 as Editor,w4 as EditorCase,m4 as EditorConfigCase,It as EditorEvent,Kt as EditorGroupEvent,q0 as EditorHelper,K0 as EditorMoveEvent,Z0 as EditorRotateEvent,he as EditorScaleEvent,$0 as EditorSkewEvent,Fi as Effect,Bt as Ellipse,Qi as EllipseBox,Jp as EllipseBoxData,v5 as EllipseCase,s9 as EllipseData,md as EllipseHelper,N5 as EraserCase,Xe as Event,rs as EventCreator,ec as Eventer,Ei as Export,Te as FileHelper,j5 as FillCase,U5 as FillsCase,U0 as Filter,Np as Finder,ve as Flow,g4 as FlowAlignCase,x4 as FlowAutoSizeCase,c4 as FlowCase,u4 as FlowGapCase,y4 as FlowInCase,_4 as FlowItemBoxCase,f4 as FlowPaddingCase,d4 as FlowWrapCase,p4 as FlowYAlignCase,cn as FourNumberHelper,n0 as Frame,A5 as FrameCase,i9 as FrameData,G5 as GradientFillCase,J5 as GradientStrokeCase,ht as Group,uo as GroupData,o0 as HTMLText,v4 as HTMLTextCase,Yg as HTMLTextData,j0 as HighBezierHelper,ss as HighCurveHelper,Y9 as HitCanvasManager,s4 as HittableCase,r4 as HoverStyleCase,Ti as Image,Dr as ImageBox,of as ImageBoxData,nc as ImageData,He as ImageEvent,q5 as ImageFillCase,Le as ImageManager,Q5 as ImageStrokeCase,di as IncrementId,s2 as InnerEditor,ci as InnerEditorEvent,z5 as InnerShadowCase,K9 as Interaction,ac as InteractionBase,Ne as InteractionHelper,Zt as KeyEvent,ts as Keyboard,Lt as LayoutEvent,Kr as Layouter,Vn as LayouterHelper,os as Leaf,o7 as
446LeafBounds,ds as LeafBoundsHelper,O4 as LeafData,$8 as LeafDataProxy,J1 as LeafEventer,$ as LeafHelper,I8 as LeafLayout,O7 as LeafLevelList,wt as LeafList,i7 as LeafMatrix,a7 as LeafRender,te as Leafer,ic as LeaferCanvas,q1 as LeaferCanvasBase,e9 as LeaferData,ut as LeaferEvent,Df as LeaferFilm,lo as LeaferImage,_c as LeaferTypeCreator,Of as LeaferVideo,ce as Line,B5 as LineCase,Q1 as LineData,Zh as LineEditTool,t4 as LinearCase,N0 as Linker,df as LinkerData,H5 as MaskCase,ct as MathHelper,$t as Matrix,K as MatrixHelper,ft as MoveEvent,tn as MultiTouchHelper,Xf as MyDragEvent,Hf as MyImage,Nf as MyPointerEvent,Yf as MyTouchEvent,X4 as NeedConvertToCanvasCommandMap,lt as OneRadian,Se as PI2,X0 as PI_2,st as Paint,Hr as PaintGradient,kt as PaintImage,Vt as Path,Zr as PathArrow,cp as PathArrowModule,K1 as PathBounds,Mr as PathBox,rf as PathBoxData,S5 as PathCase,Gt as PathCommandDataHelper,Yt as PathCommandMap,wd as PathCommandNodeHelper,Mi as PathConvert,q4 as PathCorner,G4 as PathCreator,o9 as PathData,f1 as PathDrawer,$e as PathHelper,yc as PathMatrixHelper,p2 as PathNodeHandleType,gn as PathNumberCommandLengthMap,Y4 as PathNumberCommandMap,n2 as PathScaler,Qs as Pen,E5 as PenCase,a9 as PenData,K7 as Picker,L as Platform,nt as Plugin,Q0 as Point,A as PointHelper,De as PointerButton,W as PointerEvent,Ee as Polygon,t0 as PolygonBox,tf as PolygonBoxData,C5 as PolygonCase,n9 as PolygonData,o4 as PressStyleCase,ze as PropertyEvent,i4 as RadialCase,J as Rect,h4 as RectAnimateCase,w5 as RectCase,go as RectData,j4 as RectHelper,g9 as RectRender,pt as RenderEvent,co as Renderer,Qe as ResizeEvent,hi as Resource,qe as Robot,D4 as RobotCase,Ip as RobotData,de as RotateEvent,we as Run,jf as ScrollBar,rn as Scroller,Qu as SelectArea,Z7 as Selector,W5 as ShadowCase,V5 as SolidFillCase,$5 as SolidStrokeCase,Si as Star,z0 as StarBox,sf as StarBoxData,b5 as StarCase,r9 as StarData,gt as State,a4 as StateCase,nd as StringNumberMap,K5 as StrokeCase,Qr as Stroker,Z5 as StrokesCase,Oe as SwipeEvent,s8 as TaskItem,_1 as TaskProcessor,j as Text,O5 as TextAlignCase,D5 as TextBoldCase,L5 as TextCase,M5 as TextCaseCase,sc as TextConvert,h9 as TextData,i3 as TextEditor,C4 as TextEditorCase,P5 as TextLetterSpaceCase,I5 as TextOverflowCase,F5 as TextSpaceCase,R5 as TextWrapCase,B1 as TouchEvent,dg as TransformTool,Hg as Transformer,Wt as Transition,M4 as TransitionCase,dn as TwoPointBoundsHelper,C as UI,d9 as UIBounds,un as UICreator,Ye as UIData,t2 as UIEvent,u9 as UIRender,Pi as UnitConvert,ns as UnitConvertHelper,bs as WaitHelper,Ri as WatchEvent,z7 as Watcher,o3 as WheelEventHelper,Xt as ZoomEvent,ar as addViewport,Wg as addViewportConfig,$1 as affectRenderBoundsType,pn as affectStrokeBoundsType,M1 as arrowType,If as attr,qr as autoLayoutType,tt as boundsType,rl as canvasPatch,Ie as canvasSizeAttrs,zf as createAttr,Z4 as createDescriptor,x8 as cursorType,Et as dataProcessor,mt as dataType,yt as decorateLeafAttr,Q4 as defineDataProcessor,fe as defineKey,a8 as defineLeafAttr,y1 as dimType,_e as doBoundsType,fn as doStrokeType,$4 as doSurfaceType,Ku as editToolMergeConfigAttr,E0 as effectType,Hc as emptyData,y8 as eraserType,W8 as extraPropertyEventMap,J7 as frameType,Pf as getBoundsData,Z1 as getDescriptor,Zc as getMatrixData,Rf as getPointData,bi as hitType,Bf as inviteCode,et as isArray,Yc as isData,jc as isEmptyData,g1 as isFinite,Nt as isNull,it as isNumber,O as isObject,V as isString,ho as isTrackChanges,M as isUndefined,Wf as layoutProcessor,H8 as leaferTransformAttrMap,f8 as maskType,a0 as motionPathType,l8 as naturalBoundsType,c8 as opacityType,K4 as path,h8 as pathInputType,St as pathType,ws as pen,Xn as positionType,i2 as registerEditTool,lg as registerInnerEditor,V4 as registerPointsCurve,Tt as registerUI,ui as registerUIEvent,ks as resizeType,Me as rewrite,p0 as rewriteAble,Uo as rotationType,nr as scaleResize,Rg as scaleResizeFontSize,t3 as scaleResizeGroup,Yr as scaleResizePath,Qh as scaleResizePoints,al as scaleType,ol as scrollType,g8 as sortType,$i as stateStyleType,n1 as stateType,Ve as strokeType,We as surfaceType,h0 as tempBounds,Mf as tempMatrix,Ff as tempPoint,Vf as test,Uf as testPerformanceCase,Xc as tryToNumber,W7 as useCanvas,ue as useModule,I7 as version,d8 as visibleType,$7 as zoomLayerType};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.