PageSourceSearch

https://www.leaferjs.com/_astro/hoisted.Cpsz8mCX.js

js leaferjs.com collected 2026-10-03 21:18:47 UTC 505,701 bytes, 428 lines download raw bytes

1import{a as vu,s as d1,b as wu}from"./_commonjsHelpers.oOGUnRDY.js";var u1={exports:{}};/*! Built @Thu, 14 Sep 2023 04:46:00 GMT */(function(e,t){(function(i,s){e.exports=s()})(window,function(){return function(i){var s={};function n(o){if(s[o])return s[o].exports;var r=s[o]={i:o,l:!1,exports:{}};return i[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=i,n.c=s,n.d=function(o,r,a){n.o(o,r)||Object.defineProperty(o,r,{enumerable:!0,get:a})},n.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,r){if(1&r&&(o=n(o)),8&r||4&r&&typeof o=="object"&&o&&o.__esModule)return o;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:o}),2&r&&typeof o!="string")for(var l in o)n.d(a,l,function(h){return o[h]}.bind(null,l));return a},n.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(r,"a",r),r},n.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)},n.p="",n(n.s=5)}([function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0}),s.createDom=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",u=document.createElement(h);return u.className=f,u.innerHTML=c,Object.keys(d).forEach(function(g){var p=g,m=d[g];h==="video"||h==="audio"?m&&u.setAttribute(p,m):u.setAttribute(p,m)}),u},s.hasClass=o,s.addClass=r,s.removeClass=a,s.toggleClass=function(h,c){c.split(/\s+/g).forEach(function(d){o(h,d)?a(h,d):r(h,d)})},s.findDom=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,c=arguments[1],d=void 0;try{d=h.querySelector(c)}catch{c.startsWith("#")&&(d=h.getElementById(c.slice(1)))}return d},s.deepCopy=function h(c,d){if(l(d)==="Object"&&l(c)==="Object")return Object.keys(d).forEach(function(f){l(d[f])!=="Object"||d[f]instanceof Node?l(d[f])==="Array"?c[f]=l(c[f])==="Array"?c[f].concat(d[f]):d[f]:c[f]=d[f]:c[f]?h(c[f],d[f]):c[f]=d[f]}),c},s.typeOf=l,s.copyDom=function(h){if(h&&h.nodeType===1){var c=document.createElement(h.tagName);return Array.prototype.forEach.call(h.attributes,function(d){c.setAttribute(d.name,d.value)}),h.innerHTML&&(c.innerHTML=h.innerHTML),c}return""},s.attachEventListener=function(h,c,d,f){f?(h.on(c,d),function(u,g,p,m){u.once(m,function y(){u.off(g,p),u.off(m,y)})}(h,c,d,f)):h.on(c,function u(g){d(g),h.off(c,u)})},s.styleUtil=function(h,c,d){var f=h.style;try{f[c]=d}catch{f.setProperty(c,d)}},s.styleCSSText=function(h,c){var d=h.style;try{d.cssText=c}catch{}},s.isNumber=function(h){return typeof h=="number"&&!Number.isNaN(h)},s.isFunction=function(h){return typeof h=="function"},s.throttle=function(h,c){var d=this,f=0;return function(){for(var u=arguments.length,g=Array(u),p=0;p<u;p++)g[p]=arguments[p];clearTimeout(f),f=setTimeout(function(){return h.apply(d,g)},c)}},s.hasOwnProperty=Object.prototype.hasOwnProperty;function o(h,c){return h.classList?Array.prototype.some.call(h.classList,function(d){return d===c}):!!h.className.match(new RegExp("(\\s|^)"+c+"(\\s|$)"))}function r(h,c){h.classList?c.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(d){d&&h.classList.add(d)}):o(h,c)||(h.className+=" "+c)}function a(h,c){h.classList?c.split(/\s+/g).forEach(function(d){h.classList.remove(d)}):o(h,c)&&c.split(/\s+/g).forEach(function(d){var f=new RegExp("(\\s|^)"+d+"(\\s|$)");h.className=h.className.replace(f," ")})}function l(h){return Object.prototype.toString.call(h).match(/([^\s.*]+)(?=]$)/g)[0]}},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0});var o,r=function(){function c(d,f){for(var u=0;u<f.length;u++){var g=f[u];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}return function(d,f,u){return f&&c(d.prototype,f),u&&c(d,u),d}}(),a=n(4),l=(o=a)&&o.__esModule?o:{default:o},h=function(){function c(){(function(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")})(this,c)}
1return r(c,[{key:"setLogger",value:function(d){this.logger=d instanceof l.default?d:new l.default((d||"")+".js")}}]),c}();s.default=h,i.exports=s.default},function(i,s,n){var o=n(19)();i.exports=function(r){return r!==o&&r!==null}},function(i,s,n){i.exports=function(o){return o!=null}},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0});var o=function(){function l(h,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,c,d){return c&&l(h.prototype,c),d&&l(h,d),h}}(),r=typeof window<"u"&&window.location.href.indexOf("danmu-debug")>-1,a=function(){function l(h){(function(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l),this.constructorName=h||""}return o(l,[{key:"info",value:function(h){for(var c,d=arguments.length,f=Array(d>1?d-1:0),u=1;u<d;u++)f[u-1]=arguments[u];r&&(c=console).log.apply(c,["[Danmu Log]["+this.constructorName+"]",h].concat(f))}}]),l}();s.default=a,i.exports=s.default},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0});var o,r=n(6),a=(o=r)&&o.__esModule?o:{default:o};n(34),s.default=a.default,i.exports=s.default},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0}),s.DanmuJs=void 0;var o=function(){function m(y,_){for(var v=0;v<_.length;v++){var x=_[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,_,v){return _&&m(y.prototype,_),v&&m(y,v),y}}(),r=u(n(7)),a=n(26),l=u(n(1)),h=u(n(27)),c=u(n(32)),d=n(33),f=n(0);function u(m){return m&&m.__esModule?m:{default:m}}function g(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?m:y}var p=s.DanmuJs=function(m){function y(_){(function(b,C){if(!(b instanceof C))throw new TypeError("Cannot call a class as a function")})(this,y);var v=g(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));v.setLogger("danmu"),v.logger&&v.logger.info("danmu.js version: "+a.version);var x=v.config={overlap:!1,area:{start:0,end:1,lines:void 0},hooks:void 0,live:!1,comments:[],direction:"r2l",needResizeObserver:!1,dropStaleComments:!1,channelSize:void 0,maxCommentsLength:void 0,bulletOffset:void 0,interval:2e3,highScorePriority:!0,chaseEffect:!0};if((0,f.deepCopy)(x,_),(0,r.default)(v),v.globalHooks={},x.hooks&&v.hooks(x.hooks),v.hideArr=[],v.recycler=new c.default,v.freezeId=null,x.
1comments.forEach(function(b){b.duration=b.duration?b.duration:5e3,b.mode||(b.mode="scroll")}),v.container=x.container&&x.container.nodeType===1?x.container:null,!v.container)return v.emit("error","container id can't be empty"),g(v,!1);if(x.containerStyle){var k=x.containerStyle;Object.keys(k).forEach(function(b){v.container.style[b]=k[b]})}return(0,f.addClass)(v.container,"danmu"),v.live=x.live,v.player=x.player,v.direction=x.direction,v.bulletBtn=new h.default(v),v.main=v.bulletBtn.main,v.isReady=!0,v.emit("ready"),v.logger&&v.logger.info("ready"),v.addResizeObserver(),v}return function(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}(y,m),o(y,[{key:"hooks",value:function(_){(0,f.deepCopy)(this.globalHooks,_)}},{key:"addResizeObserver",value:function(){var _=this;this.config.needResizeObserver&&this.container&&(0,d.addObserver)(this.container,function(){_.logger&&_.logger.info("needResizeObserver"),_.resize()})}},{key:"start",value:function(){this.logger&&this.logger.info("start"),this.main&&this.main.start()}},{key:"pause",value:function(){this.logger&&this.logger.info("pause"),this.main&&this.main.pause()}},{key:"play",value:function(){this.logger&&this.logger.info("play"),this.main&&this.main.play()}},{key:"stop",value:function(){this.logger&&this.logger.info("stop"),this.main&&this.main.stop()}},{key:"clear",value:function(){this.logger&&this.logger.info("clear"),this.main&&this.main.clear()}},{key:"destroy",value:function(){for(var _ in(0,d.unObserver)(this.container),this.logger&&this.logger.info("destroy"),this.stop(),this.bulletBtn&&this.bulletBtn.destroy(),this.recycler&&this.recycler.destroy(),this)delete this[_];this.emit("destroy")}},{key:"sendComment",value:function(_){var v=this.main,x=this.logger;x&&x.info("sendComment: "+(_.txt||"[DOM Element]")),v&&(_.duration||(_.duration=15e3),_&&_.id&&_.duration&&(_.el||_.elLazyInit||_.txt)&&(_.duration=_.duration?_.duration:5e3,_.style||(_.style={opacity:void 0,fontSize:void 0}),_.style&&(this.opacity&&this.opacity!==_.style.opacity&&(_.style.opacity=this.opacity),this.fontSize&&this.fontSize!==_.style.fontSize&&(_.style.fontSize=this.fontSize)),_.prior||_.realTime?(v.data.unshift(_),_.realTime&&(v.readData(),v.dataHandle())):v.data.push(_),v.sortData(),v.keepPoolWatermark()))}},{key:"setCommentID",value:function(_,v){var x=this;this.logger&&this.logger.info("setCommentID: oldID "+_+" newID "+v),_&&v&&(this.main.data.some(function(k){return k.id===_&&(k.id=v,!0)}),this.main.queue.some(function(k){return k.id===_&&(k.id=v,k.pauseMove(),x.main.status!=="paused"&&k.startMove(),!0)}))}},{key:"setCommentDuration",value:function(_,v){var x=this;this.logger&&this.logger.info("setCommentDuration: id "+_+" duration "+v),_&&v&&(v=v||5e3,this.main.data.some(function(k){return k.id===_&&(k.duration=v,!0)}),this.main.queue.some(function(k){return k.id===_&&(k.duration=v,k.pauseMove(),x.main.status!=="paused"&&k.startMove(),!0)}))}},{key:"setCommentLike",value:function(_,v){this.logger&&this.logger.info("setCommentLike: id "+_+" like "+v),_&&v&&(this.main.data.some(function(x){return x.id===_&&(x.like=v,!0)}),this.main.queue.some(function(x){return x.id===_&&(x.pauseMove(),x.setLikeDom(v.el,v.style),x.danmu.main.status!=="paused"&&x.startMove(),!0)}))}},{key:"restartComment",value:function(_){if(this.logger&&this.logger.info("restartComment: id "+_),_){var v=this.main;if(this._releaseCtrl(_),v.status==="closed")return;v.queue.some(function(x){return x.id===_&&(v.status!=="paused"?x.startMove(!0):x.status="paused",!0)})}}},{key:"_releaseCtrl",value:function(_){this.freezeId&&_===this.freezeId&&(this.mouseControl=!1,this.freezeId=null)}},{key:"_freezeCtrl",value:function(_){this.mouseControl=!0,this.freezeId=_}},{key:"freezeComment",value:function(_){this.logger&&this.logger.info("freezeComment: id "+_),_&&(this._freezeCtrl(_),this.main.queue.some(function(v){return v.id===_&&(v.status="forcedPause",v.pauseMove(),v.el&&v.el.style&&(0,f.styleUtil)(v.el,"zIndex",10),!0)}))}},{key:"removeComment",value:function(_){if(this.logger&&this.logger.info("removeComment: id "+_),_){var v=this.main;this._releaseCtrl(_),v.queue=v.queue.filter(function(x){return x.id!==_||(x.remove(),!1)}),v.data=v.data.filter(function(x){return x.id!==_})}}},{key:"updateComments",value:function(_){var v=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.logger&&this.logger.info("updateComments: "+_.length+", isClear "+v);var x=this.main;typeof v=="boolean"&&v&&(x.data=[]),x.data=x.data.concat(_),x.sortData(),x.keepPoolWatermark()}},{key:"setAllDuration",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll",v=this,x=arguments[1],k=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.logger&&this.logger.info("setAllDuration: mode "+_+" duration "+x+" force "+k),x&&(x=x||5e3,k&&(this.main.forceDuration=x),this.main.data.forEach(function(b){_===b.mode&&(b.duration=x)}),this.main.queue.forEach(function(b){_===b.mode&&(b.duration=x,b.pauseMove(),v.main.status!=="paused"&&b.startMove())}))}},{key:"setPlayRate",value:function(){var _=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll",x=arguments[1];this.logger&&this.logger.info("setPlayRate: "+x),(0,f.isNumber)(x)&&x>0&&(this.main.playRate=x,this.main.queue.forEach(function(k){v===k.mode&&(k.pauseMove(),_.main.status!=="paused"&&k.startMove())}))}},{key:"setOpacity",value:function(_){this.logger&&this.logger.info("setOpacity: opacity "+_),this.container&&(this.container.style.opacity=_)}},{key:"setFontSize",value:function(_,v){var x=this,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{reflow:!0};this.logger&&this.logger.info("setFontSize: size "+_+" channelSize "+v),this.fontSize=_+"px",_&&(this.main.data.forEach(function(b){b.style&&(b.
1style.fontSize=x.fontSize)}),this.main.queue.forEach(function(b){b.options.style||(b.options.style={}),b.options.style.fontSize=x.fontSize,b.setFontSize(x.fontSize),v&&(b.top=b.channel_id[0]*v,b.topInit())})),v&&(this.config.channelSize=v,k.reflow&&this.main.channel.resizeSync())}},{key:"setArea",value:function(_){this.logger&&this.logger.info("setArea: area "+_),this.config.area=_,_.reflow!==!1&&this.main.channel.resizeSync()}},{key:"hide",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll";this.logger&&this.logger.info("hide: mode "+_),this.hideArr.indexOf(_)<0&&this.hideArr.push(_);var v=this.main.queue.filter(function(x){return _===x.mode||_==="color"&&x.color});v.forEach(function(x){return x.remove()})}},{key:"show",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll";this.logger&&this.logger.info("show: mode "+_);var v=this.hideArr.indexOf(_);v>-1&&this.hideArr.splice(v,1)}},{key:"setDirection",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"r2l";this.logger&&this.logger.info("setDirection: direction "+_),this.direction=_,this.emit("changeDirection",_)}},{key:"resize",value:function(){this.logger&&this.logger.info("resize"),this.emit("channel_resize")}},{key:"status",get:function(){return this.main.status}},{key:"state",get:function(){var _=this.main;return{status:_.status,comments:_.data,bullets:_.queue,displayArea:_.channel.getRealOccupyArea()}}},{key:"containerPos",get:function(){return this.main.channel.containerPos}}]),y}(l.default);s.default=p},function(i,s,n){var o,r,a,l,h,c,d,f=n(8),u=n(25),g=Function.prototype.apply,p=Function.prototype.call,m=Object.create,y=Object.defineProperty,_=Object.defineProperties,v=Object.prototype.hasOwnProperty,x={configurable:!0,enumerable:!1,writable:!0};r=function(k,b){var C,O;return u(b),O=this,o.call(this,k,C=function(){a.call(O,k,C),g.call(b,this,arguments)}),C.__eeOnceListener__=b,this},h={on:o=function(k,b){var C;return u(b),v.call(this,"__ee__")?C=this.__ee__:(C=x.value=m(null),y(this,"__ee__",x),x.value=null),C[k]?typeof C[k]=="object"?C[k].push(b):C[k]=[C[k],b]:C[k]=b,this},once:r,off:a=function(k,b){var C,O,A,P;if(u(b),!v.call(this,"__ee__"))return this;if(!(C=this.__ee__)[k])return this;if(typeof(O=C[k])=="object")for(P=0;A=O[P];++P)A!==b&&A.__eeOnceListener__!==b||(O.length===2?C[k]=O[P?0:1]:O.splice(P,1));else O!==b&&O.__eeOnceListener__!==b||delete C[k];return this},emit:l=function(k){var b,C,O,A,P;if(v.call(this,"__ee__")&&(A=this.__ee__[k]))if(typeof A=="object"){for(C=arguments.length,P=new Array(C-1),b=1;b<C;++b)P[b-1]=arguments[b];for(A=A.slice(),b=0;O=A[b];++b)g.call(O,this,P)}else switch(arguments.length){case 1:p.call(A,this);break;case 2:p.call(A,this,arguments[1]);break;case 3:p.call(A,this,arguments[1],arguments[2]);break;default:for(C=arguments.length,P=new Array(C-1),b=1;b<C;++b)P[b-1]=arguments[b];g.call(A,this,P)}}},c={on:f(o),once:f(r),off:f(a),emit:f(l)},d=_({},c),i.exports=s=function(k){return k==null?m(d):_(Object(k),c)},s.methods=h},function(i,s,n){var o=n(3),r=n(9),a=n(13),l=n(21),h=n(22);(i.exports=function(c,d){var f,u,g,p,m;return arguments.length<2||typeof c!="string"?(p=d,d=c,c=null):p=arguments[2],o(c)?(f=h.call(c,"c"),u=h.call(c,"e"),g=h.call(c,"w")):(f=g=!0,u=!1),m={value:d,configurable:f,enumerable:u,writable:g},p?a(l(p),m):m}).gs=function(c,d,f){var u,g,p,m;return typeof c!="string"?(p=f,f=d,d=c,c=null):p=arguments[3],o(d)?r(d)?o(f)?r(f)||(p=f,f=void 0):f=void 0:(p=d,d=f=void 0):d=void 0,o(c)?(u=h.call(c,"c"),g=h.call(c,"e")):(u=!0,g=!1),m={get:d,set:f,configurable:u,enumerable:g},p?a(l(p),m):m}},function(i,s,n){var o=n(10),r=/^\s*class[\s{/}]/,a=Function.prototype.toString;i.exports=function(l){return!!o(l)&&!r.test(a.call(l))}},function(i,s,n){var o=n(11);i.exports=function(r){if(typeof r!="function"||!hasOwnProperty.call(r,"length"))return!1;try{if(typeof r.length!="number"||typeof r.call!="function"||typeof r.apply!="function")return!1}catch{return!1}return!o(r)}},function(i,s,n){var o=n(12);i.exports=function(r){if(!o(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}}},function(i,s,n){var o=n(3),r={object:!0,function:!0,undefined:!0};i.exports=function(a){return!!o(a)&&hasOwnProperty.call(r,typeof a)}},function(i,s,n){i.exports=n(14)()?Object.assign:n(15)},function(i,s,n){i.exports=function(){var o,r=Object.assign;return typeof r=="function"&&(r(o={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),o.foo+o.bar+o.trzy==="razdwatrzy")}},function(i,s,n){var o=n(16),r=n(20),a=Math.max;i.exports=function(l,h){var c,d,f,u=a(arguments.length,2);for(l=Object(r(l)),f=function(g){try{l[g]=h[g]}catch(p){c||(c=p)}},d=1;d<u;
1++d)o(h=arguments[d]).forEach(f);if(c!==void 0)throw c;return l}},function(i,s,n){i.exports=n(17)()?Object.keys:n(18)},function(i,s,n){i.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},function(i,s,n){var o=n(2),r=Object.keys;i.exports=function(a){return r(o(a)?Object(a):a)}},function(i,s,n){i.exports=function(){}},function(i,s,n){var o=n(2);i.exports=function(r){if(!o(r))throw new TypeError("Cannot use null or undefined");return r}},function(i,s,n){var o=n(2),r=Array.prototype.forEach,a=Object.create,l=function(h,c){var d;for(d in h)c[d]=h[d]};i.exports=function(h){var c=a(null);return r.call(arguments,function(d){o(d)&&l(Object(d),c)}),c}},function(i,s,n){i.exports=n(23)()?String.prototype.contains:n(24)},function(i,s,n){var o="razdwatrzy";i.exports=function(){return typeof o.contains=="function"&&o.contains("dwa")===!0&&o.contains("foo")===!1}},function(i,s,n){var o=String.prototype.indexOf;i.exports=function(r){return o.call(this,r,arguments[1])>-1}},function(i,s,n){i.exports=function(o){if(typeof o!="function")throw new TypeError(o+" is not a function");return o}},function(i){i.exports=JSON.parse('{"version":"1.1.13"}')},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0});var o=function(){function d(f,u){for(var g=0;g<u.length;g++){var p=u[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}return function(f,u,g){return u&&d(f.prototype,u),g&&d(f,g),f}}(),r=h(n(1)),a=h(n(28)),l=n(0);function h(d){return d&&d.__esModule?d:{default:d}}var c=function(d){function f(u){(function(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")})(this,f);var g=function(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||typeof m!="object"&&typeof m!="function"?p:m}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return g.setLogger("control"),g.danmu=u,g.main=new a.default(u),u.config.defaultOff||g.main.start(),g}return function(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(f,d),o(f,[{key:"createSwitch",value:function(){var u=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.logger&&this.logger.info("createSwitch"),this.switchBtn=(0,l.createDom)("dk-switch",'<span class="txt">å¼¹</span>',{},"danmu-switch "+(u?"danmu-switch-active":"")),this.switchBtn}},{key:"destroy",value:function(){for(var u in this.logger&&this.logger.info("destroy"),this.main.destroy(),this)l.hasOwnProperty.call(this,u)&&delete this[u]}}]),f}(r.default);s.default=c,i.exports=s.default},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0});var o=function(){function f(u,g){for(var p=0;p<g.length;p++){var m=g[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(u,m.key,m)}}return function(u,g,p){return g&&f(u.prototype,g),p&&f(u,p),u}}(),r=c(n(1)),a=c(n(29)),l=c(n(30)),h=n(0);function c(f){return f&&f.__esModule?f:{default:f}}var d=function(f){function u(g){(function(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,u);var p=function(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?m:y}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this));return p.setLogger("main"),p.danmu=g,p.container=g.container,p.channel=new l.default(g),p.data=[].concat(g.config.comments),p.playedData=[],p.queue=[],p.timer=null,p.playRate=1,p.retryStatus="normal",p.interval=g.config.interval,p._status="idle",p._events=[],p._bindEvents(),p}return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}(u,f),o(u,[{key:"destroy",value:function(){for(var g in this.logger&&this.logger.info("destroy"),this._unbindEvents(),this._cancelTick(),this.channel&&this.channel.destroy(),this.data=[],this)delete this[g]}},{key:"_bindEvents",value:function(){var g=this,p=this.danmu,m=this.container;this._unbindEvents(),this._events.push([p,"bullet_remove",function(y){var _=y.bullet,v=g.data,x=g.queue;x.some(function(k,b){return k.id===_.id&&(x.splice(b,1),!0)}),v.some(function(k){return k.id===_.id&&(k.attached_=!1,!0)})}]),this._events.push([m,"transitionend",function(y){var _=g._getBulletByEvt(y);_&&(_.status="end",_.remove(!1))}]),(p.config.mouseControl||p.config.mouseEnterControl)&&this._events.push([m,"mouseover",function(y){var _,v=g.danmu;!v||v.mouseControl&&v.config.mouseControlPause||(_=g._getBulletByEvt(y))&&_.status!=="waiting"&&_.status!=="end"&&v.emit("bullet_hover",{bullet:_,event:y})}
1]),this._events.forEach(function(y){y[0].addEventListener?y[0].addEventListener(y[1],y[2],!1):y[0].on&&y[0].on(y[1],y[2])})}},{key:"_unbindEvents",value:function(){this._events.length&&(this._events.forEach(function(g){g[0].removeEventListener?g[0].removeEventListener(g[1],g[2],!1):g[0].off&&g[0].off(g[1],g[2])}),this._events=[])}},{key:"_cancelTick",value:function(){this.handleTimer&&(clearTimeout(this.handleTimer),this.handleTimer=null)}},{key:"_startTick",value:function(){var g=this;g.retryStatus="normal",g._cancelTick(),g.sortData(),function p(){g._status!=="closed"||g.retryStatus!=="stop"?(g._status==="playing"&&(g.readData(),g.dataHandle()),g.retryStatus==="stop"&&g._status!=="paused"||(g.handleTimer=setTimeout(p,250))):g._cancelTick()}()}},{key:"start",value:function(){this.logger&&this.logger.info("start"),this._status!=="playing"&&(this._status="playing",this.queue=[],this.container.innerHTML="",this.channel.reset(),this._startTick())}},{key:"stop",value:function(){this.logger&&this.logger.info("stop"),this._status!=="closed"&&(this._status="closed",this.retryStatus="stop",this.queue=[],this.container&&(this.container.innerHTML=""),this.channel&&this.channel.reset(),this._cancelTick())}},{key:"clear",value:function(){this.logger&&this.logger.info("clear"),this.channel&&this.channel.reset(),this.data=[],this.queue=[],this.container&&(this.container.innerHTML="")}},{key:"play",value:function(){var g=this;if(this._status!=="closed"){this.logger&&this.logger.info("play"),this._status="playing";var p=this.channel.channels;p&&p.length>0&&["scroll","top","bottom"].forEach(function(m){g.queue.forEach(function(_){_.startMove(),_.resized=!0});for(var y=0;y<p.length;y++)p[y].queue[m].forEach(function(_){_.resized=!1})}),this._startTick()}else this.logger&&this.logger.info("play ignored")}},{key:"pause",value:function(){if(this._status!=="closed"){this.logger&&this.logger.info("pause"),this._status="paused",this._cancelTick();var g=this.channel.channels;g&&g.length>0&&this.queue.forEach(function(p){p.pauseMove()})}else this.logger&&this.logger.info("pause ignored")}},{key:"dataHandle",value:function(){this._status!=="paused"&&this._status!=="closed"&&this.queue.length&&this.queue.forEach(function(g){g.status==="waiting"&&g.startMove()})}},{key:"readData",value:function(){var g=this.danmu,p=this.interval,m=this.channel,y=g.player,_=void 0,v=void 0;if(g.isReady&&g.main){if(y){var x=y.currentTime?Math.floor(1e3*y.currentTime):0;v=this.data.filter(function(A){return!A.start&&g.hideArr.indexOf(A.mode)<0&&(!A.color||g.hideArr.indexOf("color")<0)&&(A.start=x),!A.attached_&&g.hideArr.indexOf(A.mode)<0&&(!A.color||g.hideArr.indexOf("color")<0)&&A.start-p<=x&&x<=A.start+p}),g.config.highScorePriority&&v.sort(function(A,P){return P.prior&&!A.prior||(P.score||-1)-(A.score||-1)}),g.live&&(this.data=[])}else(v=this.data.splice(0,1)).length===0&&(v=this.playedData.splice(0,1));if(v.length>0&&m.checkAvailableTrack(v[0].mode)){m.updatePos();var k=0;t:for(var b,C=0;C<v.length;C++)if(b=v[C],this.forceDuration&&this.forceDuration!==b.duration&&(b.duration=this.forceDuration),(_=new a.default(g,b)).bulletCreateFail){if(k===0)break t;k--}else if(_.attach(),b.attached_=!0,m.addBullet(_).result)this.queue.push(_),_.topInit(),k=0;else{for(var O in _.detach(),_)h.hasOwnProperty.call(_,O)&&delete _[O];if(_=null,b.attached_=!1,b.noDiscard&&(b.prior?this.data.unshift(b):this.data.push(b)),k===0)break t;k--}}}}},{key:"sortData",value:function(){this.data.sort(function(g,p){return(g.start||-1)-(p.start||-1)})}},{key:"keepPoolWatermark",value:function(){var g=this.danmu,p=g.config,m=g.player,y=this.data,_=[],v=0;if(typeof p.maxCommentsLength=="number"&&y.length>p.maxCommentsLength){v=y.length-p.maxCommentsLength;for(var x,k=0;k<v;k++)(x=y[k]).prior&&!x.attached_&&_.push(y[k])}else if(p.dropStaleComments&&m&&m.currentTime){var b=Math.floor(1e3*m.currentTime)-p.interval;if(b>0){for(var C,O=0;O<y.length;O++)if((C=y[O]).prior&&!C.attached_&&_.push(y[O]),C.start>b){v=O;break}}}v>0&&(y.splice(0,v),this.data=_.concat(y))}},{key:"_getBulletByEvt",value:function(g){for(var p,m=g.target||g.srcElement,y=this.queue,_=void 0,v=0;v<y.length;v++)if((p=y[v])&&p.el&&(p.el===m||p.el.contains(m))){_=p;break}return _}},{key:"status",get:function(){return this._status}}]),u}(r.default);s.default=d,i.exports=s.default},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0}),s.Bullet=void 0;var o=function(){function g(p,m){for(var y=0;y<m.length;y++){var _=m[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,_.key,_)}}return function(p,m,y){return m&&g(p.prototype,m),y&&g(p,y),p}}(),r=h(n(1)),a=h(n(4)),l=n(0);function h(g){return g&&g.__esModule?g:{default:g}}function c(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function d(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||typeof p!="object"&&typeof p!="function"?g:p}var f=new a.default("bullet"),u=s.Bullet=function(g){function p(m){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,p);
1var _=d(this,(p.__proto__||Object.getPrototypeOf(p)).call(this)),v=m.container,x=m.recycler,k=m.config;return _.setLogger(f),_.danmu=m,_.options=y,_.duration=y.duration,_.id=y.id,_.container=v,_.mode=y.mode==="top"||y.mode==="bottom"?y.mode:"scroll",_.start=y.start,_.prior=y.prior,_.realTime=y.realTime,_.color=y.color,_.bookChannelId=y.bookChannelId,_.reuseDOM=!0,_.noCopyEl=!(!k.disableCopyDOM&&!y.disableCopyDOM),_.recycler=x,_._fullySlideInScreenDuration=void 0,_._lastMoveTime=void 0,_.status="waiting",y.elLazyInit||(_.bulletCreateFail=!_._makeEl()),_}return function(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}(p,g),o(p,[{key:"_makeEl",value:function(){var m=this.danmu,y=this.options,_=m.config,v=m.globalHooks,x=void 0,k="",b=y.style||{};if(b.perspective="500em",y.el||y.elLazyInit){if(this.noCopyEl&&(this.reuseDOM=!1),y.elLazyInit){if((0,l.isFunction)(v.bulletCreateEl))try{var C=v.bulletCreateEl(y);x=C instanceof HTMLElement?C:C.el}catch{}}else if(y.el.nodeType===1&&!y.el.parentNode)if(this.reuseDOM){var O=(0,l.copyDom)(y.el);y.eventListeners&&y.eventListeners.length>0&&y.eventListeners.forEach(function(E){O.addEventListener(E.event,E.listener,E.useCapture||!1)}),(x=this.recycler.use()).childNodes.length>0&&(x.innerHTML=""),x.textContent&&(x.textContent=""),x.appendChild(O)}else x=y.el}else typeof y.txt=="string"&&((x=this.recycler.use()).textContent=y.txt);if(!x||!m.main)return!1;var A=void 0;if((0,l.isNumber)(_.bulletOffset)&&_.bulletOffset>=0)A=_.bulletOffset;else{var P=m.containerPos;A=P.width/10>100?100:P.width/10}var S=y.realTime?0:Math.floor(Math.random()*A),B=this.updateOffset(S,!0);return b.left=B,Object.keys(b).forEach(function(E){var L=E.replace(/[A-Z]/g,function(F){return"-"+F.toLowerCase()});k+=L+":"+b[E]+";"}),(0,l.styleCSSText)(x,k),this.el=x,y.like&&y.like.el&&this.setLikeDom(y.like.el,y.like.style),!0}},{key:"updateOffset",value:function(m){var y=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.random=m;var _=this.danmu.containerPos.width+m+"px";return y||(0,l.styleUtil)(this.el,"left",this.danmu.containerPos.width+m+"px"),_}},{key:"attach",value:function(){if(this.options.elLazyInit&&!this.el&&this._makeEl(),this.danmu&&this.danmu.main){var m=this.danmu,y=this.options,_=this.el,v=m.globalHooks;v.bulletAttaching&&v.bulletAttaching(y),this.container.contains(_)||this.container.appendChild(_),this.elPos=_.getBoundingClientRect(),this.direction==="b2t"?(this.width=this.elPos.height,this.height=this.elPos.width):(this.width=this.elPos.width,this.height=this.elPos.height),this.moveV&&(this.duration=(this.danmu.containerPos.width+this.random+this.width)/this.moveV*1e3),v.bulletAttached&&v.bulletAttached(y,_)}}},{key:"detach",value:function(){var m=this.el,y=this.danmu,_=this.options,v=y.globalHooks;m&&(v.bulletDetaching&&v.bulletDetaching(_),this.reuseDOM?this.recycler.unused(m):m.parentNode&&m.parentNode.removeChild(m),v.bulletDetached&&v.bulletDetached(_,m),this.el=null),this.elPos=void 0}},{key:"topInit",value:function(){this.logger&&this.logger.info("topInit #"+(this.options.txt||"[DOM Element]")+"#"),this.direction==="b2t"?((0,l.styleUtil)(this.el,"transformOrigin","left top"),(0,l.styleUtil)(this.el,"transform","translateX(-"+this.top+"px) translateY("+this.danmu.containerPos.height+"px) translateZ(0px) rotate(90deg)"),(0,l.styleUtil)(this.el,"transition","transform 0s linear 0s")):(0,l.styleUtil)(this.el,"top",this.top+"px")}},{key:"pauseMove",value:function(){var m=arguments.length>0&&arguments[0]!==void 0&&arguments[0],y=this;if(y.status!=="paused"&&(y.status!=="forcedPause"&&(this.status="paused"),y._moveV=void 0,this.el))if(this.mode==="scroll"){var _=y.danmu.containerPos;if(m){var v=(new Date().getTime()-y._lastMoveTime)/1e3,x=v*this.moveV,k=0;k=y.moveMoreS-x>=0?this.direction==="b2t"?(y.moveMoreS-x)/y.moveContainerHeight*_.height:(y.moveMoreS-x)/y.moveContainerWidth*_.width:y.moveMoreS-x,this.direction==="b2t"?(0,l.styleUtil)(this.el,"transform","translateX(-"+this.top+"px) translateY("+k+"px) translateZ(0px) rotate(90deg)"):(0,l.styleUtil)(this.el,"left",k+"px")}else this.direction==="b2t"?(0,l.styleUtil)(this.el,"transform","translateX(-"+this.top+"px) translateY("+(this.el.getBoundingClientRect().top-_.top)+"px) translateZ(0px) rotate(90deg)"):(0,l.styleUtil)(this.el,"left",this.el.getBoundingClientRect().left-_.left+"px");this.direction==="b2t"||(0,l.styleUtil)(this.el,"transform","translateX(0px) translateY(0px) translateZ(0px)"),(0,l.styleUtil)(this.el,"transition","transform 0s linear 0s")}else this.pastDuration&&this.startTime?this.pastDuration=this.pastDuration+new Date().getTime()-this.startTime:this.pastDuration=1}},{key:"startMove",value:function(m){if(this.hasMove||(this.danmu.emit("bullet_start",this),this.hasMove=!0),(this.status!=="forcedPause"||m)&&this.el&&this.status!=="start")if(this.status="start",this.mode==="scroll"){var y=this.danmu.containerPos;if(!this.el)return;var _=this.el.getBoundingClientRect(),v=void 0;if(this.direction==="b2t"){v=_.bottom-y.bottom;var x=(_.bottom-y.top)/this.moveV;(0,l.styleUtil)(this.el,"transition","transform "+x+"s linear 0s"),(0,l.styleUtil)(this.el,"transform","translateX(-"+this.top+"px) translateY(-"+this.height+"px) translateZ(0px) rotate(90deg)"),this._lastMoveTime=new Date().getTime(),this.moveMoreS=_.top-y.top,this.moveContainerHeight=y.height}else{v=_.right-y.right;var k=_.right-y.left,b=k/this.moveV;_.right>
1y.left?((0,l.styleUtil)(this.el,"transition","transform "+b+"s linear 0s"),(0,l.styleUtil)(this.el,"transform","translateX(-"+k+"px) translateY(0px) translateZ(0px)"),this._lastMoveTime=new Date().getTime(),this.moveMoreS=_.left-y.left,this.moveContainerWidth=y.width):(this.status="end",this.remove())}this._fullySlideInScreenDuration=v/this.moveV}else{var C=new Date().getTime(),O=(this.startTime&&C-this.startTime>this.duration?C-this.startTime:this.duration)/1e3;(0,l.styleUtil)(this.el,"left","50%"),(0,l.styleUtil)(this.el,"margin","0 0 0 -"+this.width/2+"px"),(0,l.styleUtil)(this.el,"visibility","hidden"),(0,l.styleUtil)(this.el,"transition","visibility "+O+"s 0s"),this.pastDuration||(this.pastDuration=1),this.startTime=C}}},{key:"remove",value:function(){var m=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.logger&&this.logger.info("remove #"+(this.options.txt||"[DOM Element]")+"#");var y=this;m&&y.pauseMove(),y.el&&y.el.parentNode&&(y.detach(),this.options.el&&this.options.el.nodeType===1&&this.noCopyEl&&(0,l.styleUtil)(this.options.el,"transform","none"),y.danmu.emit("bullet_remove",{bullet:y}))}},{key:"setFontSize",value:function(m){this.el&&(this.el.style.fontSize=m)}},{key:"setLikeDom",value:function(m,y){if(m&&(Object.keys(y).forEach(function(v){m.style[v]=y[v]}),m.className="danmu-like",this.el)){var _=this.el.querySelector(".danmu-like");_&&this.el.removeChild(_),this.el.innerHTML=""+this.el.innerHTML+m.outerHTML}return m}},{key:"moveV",get:function(){var m=this.danmu,y=this.options,_=this._moveV;if(!_){if(y.moveV)_=y.moveV;else if(this.elPos){var v=m.containerPos;_=(this.direction==="b2t"?v.height+(m.config.chaseEffect?this.height:0):v.width+(m.config.chaseEffect?this.width:0))/this.duration*1e3}_&&(_*=m.main.playRate,this._moveV=_)}return _}},{key:"direction",get:function(){return this.danmu.direction}},{key:"fullySlideIntoScreen",get:function(){var m=!0;return this.mode==="scroll"&&this._lastMoveTime&&this._fullySlideInScreenDuration>0&&(m=(new Date().getTime()-this._lastMoveTime)/1e3>=this._fullySlideInScreenDuration),m}}]),p}(r.default);s.default=u},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0});var o,r=function(){function f(u,g){for(var p=0;p<g.length;p++){var m=g[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(u,m.key,m)}}return function(u,g,p){return g&&f(u.prototype,g),p&&f(u,p),u}}(),a=n(1),l=(o=a)&&o.__esModule?o:{default:o},h=n(0),c=n(31),d=function(f){function u(g){(function(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")})(this,u);var p=function(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||typeof _!="object"&&typeof _!="function"?y:_}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this)),m=p;return m.setLogger("channel"),m.danmu=g,m.width=0,m.height=0,m.reset(!0),m.channels=[],m.updatePos(),(0,h.attachEventListener)(p.danmu,"bullet_remove",function(y){m.removeBullet(y.bullet)},"destroy"),(0,h.attachEventListener)(p.danmu,"channel_resize",function(){m.resize()},"destroy"),p}return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}(u,f),r(u,[{key:"checkAvailableTrack",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll",p=this.channels,m=!1;if(g==="scroll")for(var y,_=0;_<p.length;_++)if(m=!0,(y=p[_]).operating[g])m=!1;else{var v=y.queue[g][0];if(!v||v.fullySlideIntoScreen){if(m)break}else m=!1}else m=!0;return m}},{key:"destroy",value:function(){for(var g in this.logger&&this.logger.info("destroy"),this.channels.splice(0,this.channels.length),this._cancelResizeTimer(),this)h.hasOwnProperty.call(this,g)&&delete this[g]}},{key:"reset",value:function(){var g=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logger&&this.logger.info("reset");var p=this,m=p.danmu,y=m.container,_=m.bulletBtn;function v(){if(p.danmu&&p.danmu.container){var x=p.danmu.container.getBoundingClientRect();p.width=x.width,p.height=x.height,p.resetId&&(cancelAnimationFrame(p.resetId),p.resetId=null);var k=p._initChannels(),b=k.channelSize,C=k.channelCount,O=k.channels;p.channelCount=C,p.channels=O,p.direction==="b2t"?p.channelWidth=b:p.channelHeight=b}}p.container=y,_&&_.main&&_.main.queue.forEach(function(x){x.remove()}),p.channels&&p.channels.length>0&&["scroll","top","bottom"].forEach(function(x){for(var k=0;k<p.channels.length;
1k++)p.channels[k].queue[x].forEach(function(b){b.remove()})}),_&&_.main&&_.main.data&&_.main.data.forEach(function(x){x.attached_=!1}),g?this.resetId=requestAnimationFrame(v):v()}},{key:"getRealOccupyArea",value:function(){return{width:this.width,height:this.height}}},{key:"updatePos",value:function(){var g=this.container.getBoundingClientRect();this.containerPos=g,this.containerWidth=g.width,this.containerHeight=g.height,this.containerTop=g.top,this.containerBottom=g.bottom,this.containerLeft=g.left,this.containerRight=g.right}},{key:"addBullet",value:function(g){var p=this,m=this.danmu,y=this.channels,_=void 0,v=void 0,x=void 0;if(p.direction==="b2t"?(v=this.channelWidth,x=Math.ceil(g.width/v)):(_=this.channelHeight,x=Math.ceil(g.height/_)),x>y.length)return{result:!1,message:"exceed channels.length, occupy="+x+",channelsSize="+y.length};for(var k=!0,b=void 0,C=-1,O=0,A=y.length;O<A;O++)if(y[O].queue[g.mode].some(function(Wt){return Wt.id===g.id}))return{result:!1,message:"exited, channelOrder="+O+",danmu_id="+g.id};if(g.mode==="scroll")for(var P=0,S=y.length-x;P<=S;P+=x){k=!0;for(var B=P;B<P+x;B++){if((b=y[B]).operating.scroll||b.bookId.scroll&&b.bookId.scroll!==g.id){k=!1;break}b.operating.scroll=!0;var E=b.queue.scroll[0];if(E){var L=E.el.getBoundingClientRect();if(p.direction==="b2t"){if(L.bottom>=p.containerPos.bottom){k=!1,b.operating.scroll=!1;break}}else if(L.right>=p.containerPos.right){k=!1,b.operating.scroll=!1;break}var F=void 0,D=E.moveV,U=void 0,J=g.moveV,St=void 0;if(p.direction==="b2t"?(U=(F=L.bottom-p.containerTop)/D,St=p.containerHeight+g.random-F):(U=(F=L.right-p.containerLeft)/D,St=p.containerWidth+g.random-F),J>D){var ki=St/(J-D);if(m.config.bOffset||(m.config.bOffset=0),U+m.config.bOffset>=ki){var Si=U*J-p.containerPos.width;Si>0&&g.updateOffset(Si+(1+Math.ceil(5*Math.random())))}}}b.operating.scroll=!1}if(k){C=P;break}}else if(g.mode==="top")for(var Rs=0,gu=y.length-x;Rs<=gu;Rs++){k=!0;for(var Fn=Rs;Fn<Rs+x;Fn++){if(Fn>Math.floor(y.length/2)){k=!1;break}if((b=y[Fn]).operating[g.mode]){k=!1;break}if((b.bookId[g.mode]||g.prior)&&b.bookId[g.mode]!==g.id){k=!1;break}if(b.operating[g.mode]=!0,b.queue[g.mode].length>0){k=!1,b.operating[g.mode]=!1;break}b.operating[g.mode]=!1}if(k){C=Rs;break}}else if(g.mode==="bottom")for(var As=y.length-x;As>=0;As--){k=!0;for(var Dn=As;Dn<As+x;Dn++){if(Dn<=Math.floor(y.length/2)){k=!1;break}if((b=y[Dn]).operating[g.mode]){k=!1;break}if((b.bookId[g.mode]||g.prior)&&b.bookId[g.mode]!==g.id){k=!1;break}if(b.operating[g.mode]=!0,b.queue[g.mode].length>0){k=!1,b.operating[g.mode]=!1;break}b.operating[g.mode]=!1}if(k){C=As;break}}if(C!==-1){for(var Mn=C,fu=C+x;Mn<fu;Mn++)(b=y[Mn]).operating[g.mode]=!0,b.queue[g.mode].unshift(g),g.prior&&(delete b.bookId[g.mode],p.logger&&p.logger.info(Mn+"号轨道恢复正常使用")),b.operating[g.mode]=!1;return g.prior&&(p.logger&&p.logger.info(g.id+"号优先弹幕运行完毕"),delete g.bookChannelId,m.player&&m.bulletBtn.main.data.some(function(Wt){return Wt.id===g.id&&(delete Wt.bookChannelId,!0)})),g.channel_id=[C,x],g.el.setAttribute("data-line-index",C+1),p.direction==="b2t"?(g.top=C*v,p.danmu.config.area&&p.danmu.config.area.start&&(g.top+=p.containerWidth*p.danmu.config.area.start)):(g.top=C*_,p.danmu.config.area&&p.danmu.config.area.start&&(g.top+=p.containerHeight*p.danmu.config.area.start)),{result:g,message:"success"}}if(g.options.realTime){var $0=0,J0=-1,We=null;if(p.danmu.bulletBtn.main.queue.forEach(function(Wt,yu){!Wt.prior&&!Wt.options.realTime&&Wt.el&&Wt.el.getBoundingClientRect().left>p.containerPos.right&&Wt.start>=$0&&($0=Wt.start,J0=yu,We=Wt)}),We){We.remove(),p.removeBullet(We),p.danmu.bulletBtn.main.queue.splice(J0,1),g.channel_id=We.channel_id;for(var _r=We.channel_id[0],_u=We.channel_id[0]+We.channel_id[1];_r<_u;_r++)(b=y[_r]).operating[g.mode]=!0,b.queue[g.mode].unshift(g),g.prior&&delete b.bookId[g.mode],b.operating[g.mode]=!1;return g.top=We.top,p.danmu.config.area&&p.danmu.config.area.start&&(g.top+=p.containerHeight*p.danmu.config.area.start),{result:g,message:"success"}}}if(g.prior)if(g.bookChannelId||p.danmu.live)m.player&&m.bulletBtn.main.data.some(function(Wt){return Wt.id===g.id&&(p.logger&&p.logger.info(g.id+"号优先弹幕将于2秒后再次请求注册"),Wt.start+=2e3,!0)});else{C=-1;for(var Fs=0,mu=y.length-x;Fs<=mu;Fs++){k=!0;for(var mr=Fs;mr<Fs+x;mr++)if(y[mr].bookId[g.mode]){k=!1;break}if(k){C=Fs;break}}if(C!==-1){for(var In=C;In<C+x;In++)y[In].bookId[g.mode]=g.id,p.logger&&p.logger.info(In+"号轨道被"+g.id+"号优先弹幕预定");m.player&&m.bulletBtn.main.data.some(function(Wt){return Wt.id===g.id&&(p.logger&&p.logger.info(g.id+"号优先弹幕将于2秒后再次请求注册"),Wt.start+=2e3,Wt.bookChannelId=[C,x],p.logger&&p.logger.info(g.id+"号优先弹幕预定了"+C+"~"+(C+x-1)+"号轨道"),!0)})}}return{result:!1,message:"no surplus will right"}}},{key:"removeBullet",value:function(g){this.logger&&this.logger.info("removeBullet "+(g.options.txt||"[DOM Element]"));for(var p=this.channels,m=g.channel_id,y=void 0,_=m[0],v=m[0]+m[1];_<v;_++)if(y=p[_]){y.operating[g.mode]=!0;var x=-1;y.queue[g.mode].some(function(k,b){return k.id===g.id&&(x=b,!0)}),x>
1-1&&y.queue[g.mode].splice(x,1),y.operating[g.mode]=!1}g.options.loop&&this.danmu.bulletBtn.main.playedData.push(g.options)}},{key:"resizeSync",value:function(){this.resize(!0)}},{key:"_initChannels",value:function(){if(this.danmu&&this.danmu.config){var g=this.danmu.config,p=g.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12),m=void 0;if(g.area){var y=g.area,_=y.lines,v=y.start,x=y.end;if((0,c.validAreaLineRule)(_))m=_,this.direction==="b2t"?this.width=m*p:this.height=m*p;else if(v>=0&&x>=v){var k=x-v;this.direction==="b2t"?this.width=Math.floor(this.width*k):this.height=Math.floor(this.height*k)}}(0,h.isNumber)(m)||(m=this.direction==="b2t"?Math.floor(this.width/p):Math.floor(this.height/p));for(var b=[],C=0;C<m;C++)b[C]={id:C,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};return{channelSize:p,channelCount:m,channels:b}}}},{key:"resize",value:function(){var g=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logger&&this.logger.info("resize");var p=this;function m(x,k){x[k]={id:k,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}}}function y(x,k){function b(S){["scroll","top"].forEach(function(B){p.channels[S].queue[B].forEach(function(E){E.el&&x[S].queue[B].push(E)})})}function C(S){p.channels[S].queue.bottom.forEach(function(B){if(B.el&&(x[S+x.length-p.channels.length].queue.bottom.push(B),B.channel_id[0]+B.channel_id[1]-1===S)){var E=[].concat(B.channel_id);B.channel_id=[E[0]-p.channels.length+x.length,E[1]],B.top=B.channel_id[0]*k,p.danmu.config.area&&p.danmu.config.area.start&&(B.top+=p.containerHeight*p.danmu.config.area.start),B.topInit()}})}for(var O=0;O<p.channels.length;O++)m(x,O),b(O),C(O);for(var A=function(S){["scroll","top","bottom"].forEach(function(B){x[S].queue[B].forEach(function(E){E.resized=!1})})},P=0;P<x.length;P++)A(P);p.channels=x,p.direction==="b2t"?p.channelWidth=k:p.channelHeight=k}function _(x,k){for(var b=["scroll","top","bottom"],C=function(P){m(x,P),b.forEach(function(S){if(!(S==="top"&&P>Math.floor(x.length/2))){if(!(S==="bottom"&&P<=Math.floor(x.length/2))){var B=S==="bottom"?P-x.length+p.channels.length:P;p.channels[B].queue[S].forEach(function(E,L){if(E.el){if(x[P].queue[S].push(E),S==="bottom"&&E.channel_id[0]+E.channel_id[1]-1===B){var F=[].concat(E.channel_id);E.channel_id=[F[0]-p.channels.length+x.length,F[1]],E.top=E.channel_id[0]*k,p.danmu.config.area&&p.danmu.config.area.start&&(E.top+=p.containerHeight*p.danmu.config.area.start),E.topInit()}p.channels[B].queue[S].splice(L,1)}})}}})},O=0;O<x.length;O++)C(O);var A=function(P){b.forEach(function(S){x[P].queue[S].forEach(function(B){B.resized=!1})})};for(O=0;O<x.length;O++)A(O);p.channels=x,p.direction==="b2t"?p.channelWidth=k:p.channelHeight=k}function v(){var x=p.danmu,k=x.container,b=x.bulletBtn;p.container=k,p.updatePos(),p._cancelResizeTimer(),b.main.data&&b.main.data.forEach(function(P){P.bookChannelId&&(delete P.bookChannelId,p.logger&&p.logger.info("resize导致"+P.id+"号优先弹幕预定取消"))}),p.logger&&p.logger.info("resize导致所有轨道恢复正常使用"),p.width=p.containerWidth,p.height=p.containerHeight;var C=p._initChannels(),O=C.channelSize,A=C.channels;p.channels&&(p.channels.length<=A.length?y(A,O):_(A,O)),p.resizing=!1}p.resizing||(p.resizing=!0,g?v():(this._cancelResizeTimer(),this.resizeId=requestAnimationFrame(v)))}},{key:"_cancelResizeTimer",value:function(){this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=null)}},{key:"direction",get:function(){return this.danmu.direction}}]),u}(l.default);s.default=d,i.exports=s.default},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0}
1),s.validAreaLineRule=function(o){return typeof o=="number"&&o>=0&&Number.isInteger(o)}},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0});var o=function(){function l(h,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,c,d){return c&&l(h.prototype,c),d&&l(h,d),h}}(),r=n(0),a=function(){function l(h){(function(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l),h={initDOM:function(){return document.createElement("div")},initSize:10},this.init(h)}return o(l,[{key:"init",value:function(h){this.idleList=[],this.usingList=[],this._id=0,this.options=h,this._expand(h.initSize)}},{key:"use",value:function(){this.idleList.length||this._expand(1);var h=this.idleList.shift();return this.usingList.push(h),h}},{key:"unused",value:function(h){var c=this.usingList.indexOf(h);c<0||(this.usingList.splice(c,1),h.style.opacity=0,this.idleList.push(h))}},{key:"_expand",value:function(h){for(var c=0;c<h;c++)this.idleList.push(this.options.initDOM(this._id++))}},{key:"destroy",value:function(){for(var h=0;h<this.idleList.length;h++)this.idleList[h].innerHTML="",this.idleList[h].textcontent="",this.clearElementStyle(this.idleList[h]);for(var c=0;c<this.usingList.length;c++)this.usingList[c].innerHTML="",this.usingList[c].textcontent="",this.clearElementStyle(this.usingList[c]);for(var d in this)r.hasOwnProperty.call(this,d)&&delete this[d]}},{key:"clearElementStyle",value:function(h){var c=typeof window<"u"?window.navigator.userAgent:null;c&&(c.indexOf("MSIE ")>-1||c.indexOf("Trident/")>-1?(0,r.styleUtil)(h,"transform","none"):h.setAttribute("style",""))}}]),l}();s.default=a,i.exports=s.default},function(i,s,n){Object.defineProperty(s,"__esModule",{value:!0}),s.destroyObserver=s.unObserver=s.addObserver=void 0;var o=function(){function l(h,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,c,d){return c&&l(h.prototype,c),d&&l(h,d),h}}(),r=n(0),a=new(function(){function l(){var h=this;if(function(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}(this,l),this.__handlers=[],window.ResizeObserver)try{this.observer=new window.ResizeObserver((0,r.throttle)(function(c){h.__trigger(c)},100))}catch{}}return o(l,[{key:"addObserver",value:function(h,c){if(this.observer&&h){this.observer&&this.observer.observe(h);for(var d=this.__handlers,f=-1,u=0;u<d.length;u++)d[u]&&h===d[u].target&&(f=u);f>-1?this.__handlers[f].handler.push(c):this.__handlers.push({target:h,handler:[c]})}}},{key:"unObserver",value:function(h){if(h){var c=-1;this.__handlers.map(function(d,f){h===d.target&&(c=f)}),this.observer&&this.observer.unobserve(h),c>-1&&this.__handlers.splice(c,1)}}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(h){for(var c=this.__handlers,d=0;d<c.length;d++)if(c[d]&&h===c[d].target){c[d].handler&&c[d].handler.map(function(f){try{f()}catch(u){console.error(u)}});break}}},{key:"__trigger",value:function(h){var c=this;h.map(function(d){c.__runHandler(d.target)})}}]),l}());s.addObserver=function(l,h){a.addObserver(l,h)},s.unObserver=function(l,h){a.unObserver(l,h)},s.destroyObserver=function(l,h){a.destroyObserver(l,h)}},function(i,s,n){var o=n(35);typeof o=="string"&&(o=[[i.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(37)(o,r),o.locals&&(i.exports=o.locals)},function(i,s,n){(i.exports=n(36)(!1)).push([i.i,".danmu{overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.danmu>*{position:absolute;white-space:nowrap}.danmu-switch{width:32px;height:20px;border-radius:100px;background-color:#ccc;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;cursor:pointer;position:relative;text-align:center;margin:10px auto}.danmu-switch.danmu-switch-active{padding-left:12px;background-color:#f85959}.danmu-switch span.txt{width:20px;height:20px;line-height:20px;text-align:center;display:block;border-radius:100px;background-color:#fff;-webkit-box-shadow:-2px 0 0 0 rgba(0, 0, 0, .04);box-shadow:-2px 0 0 0 rgba(0, 0, 0, .04);font-family:PingFangSC;font-size:10px;font-weight:500;color:#f44336}",""])},function(i,s){i.exports=function(n){var o=[];return o.toString=function(){return this.map(function(r){var a=function(l,h){var c=l[1]||"",d=l[3];
vendor: 3,603 bytes, lines 1-8
1if(!d)return c;if(h&&typeof btoa=="function"){var f=(g=d,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(g))))+" */"),u=d.sources.map(function(p){return"/*# sourceURL="+d.sourceRoot+p+" */"});return[c].concat(u).concat([f]).join(`
2`)}var g;return[c].join(`
3`)}(r,n);return r[2]?"@media "+r[2]+"{"+a+"}":a}).join("")},o.i=function(r,a){typeof r=="string"&&(r=[[null,r,""]]);for(var l={},h=0;h<this.length;h++){var c=this[h][0];typeof c=="number"&&(l[c]=!0)}for(h=0;h<r.length;h++){var d=r[h];typeof d[0]=="number"&&l[d[0]]||(a&&!d[2]?d[2]=a:a&&(d[2]="("+d[2]+") and ("+a+")"),o.push(d))}},o}},function(i,s,n){var o,r,a={},l=(o=function(){return window&&document&&document.all&&!window.atob},function(){return r===void 0&&(r=o.apply(this,arguments)),r}),h=function(S){return document.querySelector(S)},c=function(S){var B={};return function(E){if(typeof E=="function")return E();if(B[E]===void 0){var L=h.call(this,E);if(window.HTMLIFrameElement&&L instanceof window.HTMLIFrameElement)try{L=L.contentDocument.head}catch{L=null}B[E]=L}return B[E]}}(),d=null,f=0,u=[],g=n(38);function p(S,B){for(var E=0;E<S.length;E++){var L=S[E],F=a[L.id];if(F){F.refs++;for(var D=0;D<F.parts.length;D++)F.parts[D](L.parts[D]);for(;D<L.parts.length;D++)F.parts.push(k(L.parts[D],B))}else{var U=[];for(D=0;D<L.parts.length;D++)U.push(k(L.parts[D],B));a[L.id]={id:L.id,refs:1,parts:U}}}}function m(S,B){for(var E=[],L={},F=0;F<S.length;F++){var D=S[F],U=B.base?D[0]+B.base:D[0],J={css:D[1],media:D[2],sourceMap:D[3]};L[U]?L[U].parts.push(J):E.push(L[U]={id:U,parts:[J]})}return E}function y(S,B){var E=c(S.insertInto);if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var L=u[u.length-1];if(S.insertAt==="top")L?L.nextSibling?E.insertBefore(B,L.nextSibling):E.appendChild(B):E.insertBefore(B,E.firstChild),u.push(B);else if(S.insertAt==="bottom")E.appendChild(B);else{if(typeof S.insertAt!="object"||!S.insertAt.before)throw new Error(`[Style Loader]
4
5 Invalid value for parameter 'insertAt' ('options.insertAt') found.
6 Must be 'top', 'bottom', or Object.
7 (https://github.com/webpack-contrib/style-loader#insertat)
8`);var F=c(S.insertInto+" "+S.insertAt.before);E.insertBefore(B,F)}}function _(S){if(S.parentNode===null)return!1;S.parentNode.removeChild(S);var B=u.indexOf(S);B>=0&&u.splice(B,1)}function v(S){var B=document.createElement("style");return S.attrs.type===void 0&&(S.attrs.type="text/css"),x(B,S.attrs),y(S,B),B}function x(S,B){Object.keys(B).forEach(function(E){S.setAttribute(E,B[E])})}function k(S,B){var E,L,F,D;if(B.transform&&S.css){if(!(D=B.transform(S.css)))return function(){};S.css=D}if(B.singleton){var U=f++;E=d||(d=v(B)),L=O.bind(null,E,U,!1),F=O.bind(null,E,U,!0)}else S.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(E=function(J){var St=document.createElement("link");return J.attrs.type===void 0&&(J.attrs.type="text/css"),J.attrs.rel="stylesheet",x(St,J.attrs),y(J,St),St}(B),L=P.bind(null,E,B),F=function(){_(E),E.href&&URL.revokeObjectURL(E.href)}):(E=v(B),L=A.bind(null,E),F=function(){_(E)});return L(S),function(J){if(J){if(J.css===S.css&&J.media===S.media&&J.sourceMap===S.sourceMap)return;L(S=J)}else F()}}i.exports=function(S,B){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(B=B||{}).attrs=typeof B.attrs=="object"?B.attrs:{}
8,B.singleton||typeof B.singleton=="boolean"||(B.singleton=l()),B.insertInto||(B.insertInto="head"),B.insertAt||(B.insertAt="bottom");var E=m(S,B);return p(E,B),function(L){for(var F=[],D=0;D<E.length;D++){var U=E[D];(J=a[U.id]).refs--,F.push(J)}for(L&&p(m(L,B),B),D=0;D<F.length;D++){var J;if((J=F[D]).refs===0){for(var St=0;St<J.parts.length;St++)J.parts[St]();delete a[J.id]}}}};var b,C=(b=[],function(S,B){return b[S]=B,b.filter(Boolean).join(`
9`)});function O(S,B,E,L){var F=E?"":L.css;if(S.styleSheet)S.styleSheet.cssText=C(B,F);else{var D=document.createTextNode(F),U=S.childNodes;U[B]&&S.removeChild(U[B]),U.length?S.insertBefore(D,U[B]):S.appendChild(D)}}function A(S,B){var E=B.css,L=B.media;if(L&&S.setAttribute("media",L),S.styleSheet)S.styleSheet.cssText=E;else{for(;S.firstChild;)S.removeChild(S.firstChild);S.appendChild(document.createTextNode(E))}}function P(S,B,E){var L=E.css,F=E.sourceMap,D=B.convertToAbsoluteUrls===void 0&&F;(B.convertToAbsoluteUrls||D)&&(L=g(L)),F&&(L+=`
10/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(F))))+" */");var U=new Blob([L],{type:"text/css"}),J=S.href;S.href=URL.createObjectURL(U),J&&URL.revokeObjectURL(J)}},function(i,s){i.exports=function(n){var o=typeof window<"u"&&window.location;if(!o)throw new Error("fixUrls requires window.location");if(!n||typeof n!="string")return n;var r=o.protocol+"//"+o.host,a=r+o.pathname.replace(/\/[^\/]*$/,"/");return n.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(l,h){var c,d=h.trim().replace(/^"(.*)"$/,function(f,u){return u}).replace(/^'(.*)'$/,function(f,u){return u});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(d)?l:(c=d.indexOf("//")===0?d:d.indexOf("/")===0?r+d:a+d.replace(/^\.\//,""),"url("+JSON.stringify(c)+")")})}}])})})(u1);var xu=u1.exports;const bu=vu(xu),ku=JSON.parse(document.getElementById("bullet").dataset.bullets);function Su(e){for(var t=0,i=0;e;)t+=e.offsetLeft-e.scrollLeft+e.clientLeft,i+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent;return{x:t,y:i}}let _i,Ds;function Eu(){if(_i)return;Ds||(Ds=ku.map((i,s)=>{const n=document.createElement("img");return n.src=i.avator,n.style.width="30px",n.style.height="30px",n.style.borderRadius="15px",{moveV:100,id:"bullet"+s,color:!0,txt:i.text,style:{cursor:"pointer"},like:{el:n,style:{marginRight:"10px",color:"#ff0000"}}}})),_i=new bu({container:document.getElementById("danmu"),containerStyle:{zIndex:100},live:!0,comments:[Ds[0]],area:{start:0,end:1},mouseControl:!0,mouseControlPause:!1});let e=1;const t=setInterval(()=>{if(!_i){clearInterval(t);return}e=e%Ds.length,_i.sendComment(Ds[e]),e++},2e3)}function p1(){var e=document.getElementById("danmu"),t=Su(e);window.scrollY>t.y-window.screen.height&&window.scrollY<t.y+window.screen.height+110?Eu():_i&&(_i.stop(),_i.destroy(),_i=null)}window.addEventListener("load",p1);window.addEventListener("scroll",p1);window.location.href.includes("#product")&&(document.getElementById("product").style.display="block");window.location.href.includes("#user-case")&&(document.getElementById("user-case").style.display="block");var Q0,tl;function w(e,t,i,s){var n,o=arguments.length,r=o<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,i):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}function Sn(e,t,i,s){return new(i||(i=Promise))(function(n,o){function r(h){try{l(s.next(h))}catch(c){o(c)}}function a(h){try{l(s.throw(h))}catch(c){o(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(r,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"})(Q0||(Q0={})),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"}(tl||(tl={}));const Cu={};function W(e){return e===void 0}function Gt(e){return e==null}function $(e){return typeof e=="string"}const{isFinite:Ga}=Number;function tt(e){return typeof e=="number"}const{isArray:Q}=Array;function N(e){return e&&typeof e=="object"}const K={default:(e,t)=>(zn(t,e),zn(e,t),e),assign(e,t,i){let s;Object.keys(t).forEach(n=>{var o,r;if(s=t[n],s?.constructor===Object&&((o=e[n])===null||o===void 0?void 0:o.constructor)===Object)return zn(e[n],t[n],i&&i[n]);i&&n in i?((r=i[n])===null||r===void 0?void 0:r.constructor)===Object&&zn(e[n]={},t[n],i[n]):e[n]=t[n]})},copyAttrs:(e,t,i)=>(i.forEach(s=>{W(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:zn}=K;class g1{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(!W(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]=W(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(!W(i))return i}if(t!=="path"||this.__pathInputed)return this["_"+t]}__removeInput(t){this.__input&&!W(this.__input[t])&&(this.__input[t]=void 0)}__getInputData(t,i){const s={};if(t)if(Q(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,o,{__input:r}=this;s.tag=this.__leaf.tag;for(let a in this)if(a[0]!=="_"&&(n=this["_"+a],!W(n))){if(a==="path"&&!this.__pathInputed)continue;o=r?r[a]:void 0,s[a]=W(o)?n:o}}if(i&&i.matrix){const{a:n,b:o,c:r,d:a,e:l,f:h}=this.__leaf.__localMatrix;s.matrix={a:n,b:o,c:r,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}
10__removeNaturalSize(){this.__naturalWidth=this.__naturalHeight=void 0}destroy(){this.__input=this.__middle=null,this.__complexData&&this.__complexData.destroy()}}const Qe={RUNTIME:"runtime",LEAF:"leaf",TASK:"task",CANVAS:"canvas",IMAGE:"image",types:{},create(e){const{types:t}=Bu;return t[e]?t[e]++:(t[e]=1,0)}},Bu=Qe;let ee,ie,yr;const{max:Ms}=Math,vr=[0,0,0,0],Tn={zero:[...vr],tempFour:vr,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)=>Wn(vr,e,t,i,s),toTempAB(e,t,i){yr=i?tt(e)?t:e:[],tt(e)?(ee=el(e),ie=t):tt(t)?(ee=e,ie=el(t)):(ee=e,ie=t),ee.length!==4&&(ee=wr(ee)),ie.length!==4&&(ie=wr(ie))},get(e,t){let i;if(!tt(e))switch(e.length){case 4:i=W(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]),!W(t))for(let s=0;s<4;s++)i[s]>t&&(i[s]=t);return i},max:(e,t,i)=>tt(e)&&tt(t)?Ms(e,t):(il(e,t,i),Wn(yr,Ms(ee[0],ie[0]),Ms(ee[1],ie[1]),Ms(ee[2],ie[2]),Ms(ee[3],ie[3]))),add:(e,t,i)=>tt(e)&&tt(t)?e+t:(il(e,t,i),Wn(yr,ee[0]+ie[0],ee[1]+ie[1],ee[2]+ie[2],ee[3]+ie[3])),swapAndScale(e,t,i,s){if(tt(e))return t===i?e*t:[e*i,e*t];const n=s?e:[],[o,r,a,l]=e.length===4?e:wr(e);return Wn(n,a*i,l*t,o*i,r*t)}},{set:Wn,get:wr,setTemp:el,toTempAB:il}=Tn,{round:Tu,pow:Ou,max:Lu,floor:Pu,PI:L0}=Math,xr={},kt={within:(e,t,i)=>(N(t)&&(i=t.max,t=t.min),!W(t)&&e<t&&(e=t),!W(i)&&e>i&&(e=i),e),fourNumber:Tn.get,formatRotation:(e,t)=>(e%=360,t?e<0&&(e+=360):(e>180&&(e-=360),e<-180&&(e+=360)),kt.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=W(t)?1e12:Ou(10,t);return(e=Tu(e*i)/i)===-0?0:e},sign:e=>e<0?-1:1,getScaleData(e,t,i,s){if(s||(s={}),t){const n=(tt(t)?t:t.width||0)/i.width,o=(tt(t)?t:t.height||0)/i.height;s.scaleX=n||o||1,s.scaleY=o||n||1}else e&&kt.assignScale(s,e);return s},getScaleFixedData(e,t,i,s,n){let{scaleX:o,scaleY:r}=e;if((s||t)&&(o<0&&(o=-o),r<0&&(r=-r)),t)if(t===!0)o=r=i?1:1/o;else{let a;tt(t)?a=t:t==="zoom-in"&&(a=1),a&&(o=r=o>a||r>a?i?1:1/o:i?1:1/a)}return xr.scaleX=o,xr.scaleY=r,xr},assignScale(e,t){tt(t)?e.scaleX=e.scaleY=t:(e.scaleX=t.x,e.scaleY=t.y)},getFloorScale:(e,t=1)=>Lu(Pu(e),t)/e,randInt:Hn,randColor:e=>`rgba(${Hn(255)},${Hn(255)},${Hn(255)},${e||1})`};function Hn(e){return Math.round(Math.random()*e)}const at=L0/180,fe=2*L0,ps=L0/2;function Ru(){return{a:1,b:0,c:0,d:1,e:0,f:0}}const{sin:br,cos:kr,acos:jn,sqrt:Sr}=Math,{float:Ki}=kt,Zi={};function sl(){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 X={defaultMatrix:{a:1,b:0,c:0,d:1,e:0,f:0},defaultWorld:sl(),tempMatrix:{},set(e,t=1,i=0,s=0,n=1,o=0,r=0){e.a=t,e.b=i,e.c=s,e.d=n,e.e=o,e.f=r},get:Ru,getWorld:sl,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){Et.toInnerPoint(e,t,Zi),Et.scaleOfInner(e,Zi,i,s)},scaleOfInner(e,t,i,s=i){Et.translateInner(e,t.x,t.y),Et.scale(e,i,s),Et.translateInner(e,-t.x,-t.y)},rotate(e,t){const{a:i,b:s,c:n,d:o}=e,r=kr(t*=at),a=br(t);e.a=i*r-s*a,e.b=i*a+s*r,e.c=n*r-o*a,e.d=n*a+o*r},rotateOfOuter(e,t,i){Et.toInnerPoint(e,t,Zi),Et.rotateOfInner(e,Zi,i)},rotateOfInner(e,t,i){Et.translateInner(e,t.x,t.y),Et.rotate(e,i),Et.translateInner(e,-t.x,-t.y)},skew(e,t,i){const{a:s,b:n,c:o,d:r}=e;i&&(i*=at,e.a=s+o*i,e.b=n+r*i),t&&(t*=at,e.c=o+s*t,e.d=r+n*t)},skewOfOuter(e,t,i,s){Et.toInnerPoint(e,t,Zi),Et.skewOfInner(e,Zi,i,s)},skewOfInner(e,t,i,s=0){Et.translateInner(e,t.x,t.y),Et.skew(e,i,s),Et.translateInner(e,-t.x,-t.y)},multiply(e,t){const{a:i,b:s,c:n,d:o,e:r,f:a}=e;e.a=t.a*i+t.b*n,e.b=t.a*s+t.b*o,e.c=t.c*i+t.d*n,e.d=t.c*s+t.d*o,e.e=t.e*i+t.f*n+r,e.f=t.e*s+t.f*o+a},multiplyParent(e,t,i,s,n){const{e:o,f:r}=e;if(i||(i=e),W(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.
10scaleY*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=o*t.a+r*t.c+t.e,i.f=o*t.b+r*t.d+t.f},divide(e,t){Et.multiply(e,Et.tempInvert(t))},divideParent(e,t){Et.multiplyParent(e,Et.tempInvert(t))},tempInvert(e){const{tempMatrix:t}=Et;return Et.copy(t,e),Et.invert(t),t},invert(e){const{a:t,b:i,c:s,d:n,e:o,f:r}=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=-(o*n-r*s)*a,e.f=-(r*t-o*i)*a}else if(t===1&&n===1)e.e=-o,e.f=-r;else{const a=1/(t*n);e.a=n*a,e.d=t*a,e.e=-o*n*a,e.f=-r*t*a}},toOuterPoint(e,t,i,s){const{x:n,y:o}=t;i||(i=t),i.x=n*e.a+o*e.c,i.y=n*e.b+o*e.d,s||(i.x+=e.e,i.y+=e.f)},toInnerPoint(e,t,i,s){const{a:n,b:o,c:r,d:a}=e,l=1/(n*a-o*r),{x:h,y:c}=t;if(i||(i=t),i.x=(h*a-c*r)*l,i.y=(c*n-h*o)*l,!s){const{e:d,f}=e;i.x-=(d*a-f*r)*l,i.y-=(f*n-d*o)*l}},setLayout(e,t,i,s,n){const{x:o,y:r,scaleX:a,scaleY:l}=t;if(W(n)&&(n=t.rotation||t.skewX||t.skewY),n){const{rotation:h,skewX:c,skewY:d}=t,f=h*at,u=kr(f),g=br(f);if(c||d){const p=c*at,m=d*at;e.a=(u+m*-g)*a,e.b=(g+m*u)*a,e.c=(p*u-g)*l,e.d=(u+p*g)*l}else e.a=u*a,e.b=g*a,e.c=-g*l,e.d=u*l}else e.a=a,e.b=0,e.c=0,e.d=l;e.e=o,e.f=r,(i=i||s)&&Et.translateInner(e,-i.x,-i.y,!s)},getLayout(e,t,i,s){const{a:n,b:o,c:r,d:a,e:l,f:h}=e;let c,d,f,u,g,p=l,m=h;if(o||r){const y=n*a-o*r;if(r&&!s){c=Sr(n*n+o*o),d=y/c;const x=n/c;f=o>0?jn(x):-jn(x)}else{d=Sr(r*r+a*a),c=y/d;const x=r/d;f=ps-(a>0?jn(-x):-jn(x))}const _=Ki(kr(f)),v=br(f);c=Ki(c),d=Ki(d),u=_?Ki((r/d+v)/_/at,9):0,g=_?Ki((o/c-v)/_/at,9):0,f=Ki(f/at)}else c=n,d=a,f=u=g=0;return(t=i||t)&&(p+=t.x*n+t.y*r,m+=t.x*o+t.y*a,i||(p-=t.x,m-=t.y)),{x:p,y:m,scaleX:c,scaleY:d,rotation:f,skewX:u,skewY:g}},withScale(e,t,i=t){const s=e;if(!t||!i){const{a:n,b:o,c:r,d:a}=e;o||r?i=(n*a-o*r)/(t=Sr(n*n+o*o)):(t=n,i=a)}return s.scaleX=t,s.scaleY=i,s},reset(e){Et.set(e)}},Et=X,{float:Nn}=kt,{toInnerPoint:Er,toOuterPoint:nl}=X,{sin:ol,cos:rl,abs:al,sqrt:Au,atan2:Fu,min:Du,round:Un}=Math,j={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=W(i)?t:i},copy(e,t){e.x=t.x,e.y=t.y},copyFrom(e,t,i){e.x=t,e.y=i},round(e,t){e.x=t?Un(e.x-.5)+.5:Un(e.x),e.y=t?Un(e.y-.5)+.5:Un(e.y)},move(e,t,i){N(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=ji.defaultPoint);const o=rl(t*=at),r=ol(t),a=(e.x-i.x)/s,l=(e.y-i.y)/n;e.x=i.x+(a*o-l*r)*s,e.y=i.y+(a*r+l*o)*n},tempToInnerOf(e,t){const{tempPoint:i}=ji;return Vn(i,e),Er(t,i,i),i},tempToOuterOf(e,t){const{tempPoint:i}=ji;return Vn(i,e),nl(t,i,i),i},tempToInnerRadiusPointOf(e,t){const{tempRadiusPoint:i}=ji;return Vn(i,e),ji.toInnerRadiusPointOf(e,t,i),i},copyRadiusPoint:(e,t,i,s)=>(Vn(e,t),Mu(e,i,s),e),toInnerRadiusPointOf(e,t,i){i||(i=e),Er(t,e,i),i.radiusX=Math.abs(e.radiusX/t.scaleX),i.radiusY=Math.abs(e.radiusY/t.scaleY)},toInnerOf(e,t,i){Er(t,e,i)},toOuterOf(e,t,i){nl(t,e,i)},toVertical(e,t,i,s){const n=t*at;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)=>Cr(e.x,e.y,t.x,t.y),getDistanceFrom(e,t,i,s){const n=al(i-e),o=al(s-t);return Au(n*n+o*o)},getMinDistanceFrom:(e,t,i,s,n,o)=>Du(Cr(e,t,i,s),Cr(i,s,n,o)),getAngle:(e,t,i,s)=>ll(e,t,i,s)/at,getRotation:(e,t,i,s)=>(s||(s=t),ji.getRadianFrom(e.x,e.y,t.x,t.y,i.x,i.y,s.x,s.y)/at),getRadianFrom(e,t,i,s,n,o,r,a){W(r)&&(r=i,a=s);const l=e-i,h=t-s,c=n-r,d=o-a;return Math.atan2(l*d-h*c,l*c+h*d)},getAtan2:(e,t,i=1,s=1)=>Fu((t.y-e.y)/s,(t.x-e.x)/i),getDistancePoint(e,t,i,s,n){const o=ll(e,t);return n&&(e=t),s||(t={}),t.x=e.x+rl(o)*i,t.y=e.y+ol(o)*i,t},toNumberPoints(e){let t=e;return N(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:Nn(e.x)===Nn(t.x)&&Nn(e.y)===Nn(t.y),reset(e){e.x=e.y=0}},ji=j,{getDistanceFrom:Cr,copy:Vn,setRadius:Mu,getAtan2:ll}=ji;class wn{constructor(t,i){this.set(t,i)}set(t,i){return N(t)?j.copy(this,t):j.set(this,t,i),this}get(){const{x:t,y:i}=this;return{x:t,y:i}}clone(){return new wn(this)}move(t,i){return j.move(this,t,i),this}scale(t,i){return j.scale(this,t,i),this}scaleOf(t,i,s){return j.scaleOf(this,t,i,s),this}rotate(t,i,s,n){return j.rotate(this,t,i,s,n),this}rotateOf(t,i,s,n){return j.rotate(this,i,t,s,n),this}getRotation(t,i,s){return j.getRotation(this,t,i,s)}toInnerOf(t,i){return j.toInnerOf(this,t,i),this}
10toOuterOf(t,i){return j.toOuterOf(this,t,i),this}getCenter(t){return new wn(j.getCenter(this,t))}getDistance(t){return j.getDistance(this,t)}getDistancePoint(t,i,s,n){return new wn(j.getDistancePoint(this,t,i,s,n))}getAngle(t,i,s){return j.getAngle(this,t,i,s)}getAtan2(t,i,s){return j.getAtan2(this,t,i,s)}isSame(t,i){return j.isSame(this,t,i)}reset(){return j.reset(this),this}}new wn;class Kt{constructor(t,i,s,n,o,r){this.set(t,i,s,n,o,r)}set(t,i,s,n,o,r){return N(t)?X.copy(this,t):X.set(this,t,i,s,n,o,r),this}setWith(t){return X.copy(this,t),this.scaleX=t.scaleX,this.scaleY=t.scaleY,this}get(){const{a:t,b:i,c:s,d:n,e:o,f:r}=this;return{a:t,b:i,c:s,d:n,e:o,f:r}}clone(){return new Kt(this)}translate(t,i){return X.translate(this,t,i),this}translateInner(t,i){return X.translateInner(this,t,i),this}scale(t,i){return X.scale(this,t,i),this}scaleWith(t,i){return X.scale(this,t,i),this.scaleX*=t,this.scaleY*=i||t,this}pixelScale(t){return X.pixelScale(this,t),this}scaleOfOuter(t,i,s){return X.scaleOfOuter(this,t,i,s),this}scaleOfInner(t,i,s){return X.scaleOfInner(this,t,i,s),this}rotate(t){return X.rotate(this,t),this}rotateOfOuter(t,i){return X.rotateOfOuter(this,t,i),this}rotateOfInner(t,i){return X.rotateOfInner(this,t,i),this}skew(t,i){return X.skew(this,t,i),this}skewOfOuter(t,i,s){return X.skewOfOuter(this,t,i,s),this}skewOfInner(t,i,s){return X.skewOfInner(this,t,i,s),this}multiply(t){return X.multiply(this,t),this}multiplyParent(t){return X.multiplyParent(this,t),this}divide(t){return X.divide(this,t),this}divideParent(t){return X.divideParent(this,t),this}invert(){return X.invert(this),this}invertWith(){return X.invert(this),this.scaleX=1/this.scaleX,this.scaleY=1/this.scaleY,this}toOuterPoint(t,i,s){X.toOuterPoint(this,t,i,s)}toInnerPoint(t,i,s){X.toInnerPoint(this,t,i,s)}setLayout(t,i,s){return X.setLayout(this,t,i,s),this}getLayout(t,i,s){return X.getLayout(this,t,i,s)}withScale(t,i){return X.withScale(this,t,i)}reset(){return X.reset(this),this}}new Kt;const ar={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){hl(e,t,i),hl(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:hl}=ar;var Ka,Es;(function(e){e[e.top=0]="top",e[e.right=1]="right",e[e.bottom=2]="bottom",e[e.left=3]="left"})(Ka||(Ka={})),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"}(Es||(Es={}));const P0=[{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}];P0.forEach(e=>e.type="percent");const ye={directionData:P0,tempPoint:{},get:cl,toPoint(e,t,i,s,n,o){const r=cl(e);i.x=r.x,i.y=r.y,r.type==="percent"&&(i.x*=t.width,i.y*=t.height,n&&(o||(i.x-=n.x,i.y-=n.y),r.x&&(i.x-=r.x===1?n.width:r.x===.5?r.x*n.width:0),r.y&&(i.y-=r.y===1?n.height:r.y===.5?r.y*n.height:0))),s||(i.x+=t.x,i.y+=t.y)},getPoint:(e,t,i,s=!0)=>(i||(i={}),ye.toPoint(e,t,i,s),i)};function cl(e){return $(e)?P0[Es[e]]:e}const{toPoint:Iu}=ye,f1={toPoint(e,t,i,s,n,o){Iu(e,i,s,n,t,o)}},{tempPointBounds:ni,setPoint:dl,addPoint:Yn,toBounds:ul}=ar,{toOuterPoint:Xn}=X,{float:qn,fourNumber:zu}=kt,{floor:pl,ceil:Gn}=Math;let Oe,Le,Ei,Ci;const He={},ue={},Bi={},I={tempBounds:Bi,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:o,y:r,width:a,height:l}=t;if(Q(i)){const h=zu(i);s?ct.set(e,o+h[3],r+h[0],a-h[1]-h[3],l-h[2]-h[0]):ct.set(e,o-h[3],r-h[0],a+h[1]+h[3],l+h[2]+h[0])}else s&&(i=-i),ct.set(e,o-i,r-i,a+2*i,l+2*i);n&&(n==="width"?(e.y=r,e.height=l):(e.x=o,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({}
10,e),ct.move(e,t,i),e),toOffsetOutBounds(e,t,i){t?fl(t,e):t=e,i||(i=e),t.offsetX=ct.maxX(i),t.offsetY=ct.maxY(i),ct.move(t,-t.offsetX,-t.offsetY)},scale(e,t,i=t,s){s||j.scale(e,t,i),e.width*=t,e.height*=i},scaleOf(e,t,i,s=i){j.scaleOf(e,t,i,s),e.width*=i,e.height*=s},tempToOuterOf:(e,t)=>(ct.copy(Bi,e),ct.toOuterOf(Bi,t),Bi),getOuterOf:(e,t)=>(e=Object.assign({},e),ct.toOuterOf(e,t),e),toOuterOf(e,t,i){if(i||(i=e),t.b===0&&t.c===0){const{a:s,d:n,e:o,f:r}=t;s>0?(i.width=e.width*s,i.x=o+e.x*s):(i.width=e.width*-s,i.x=o+e.x*s-i.width),n>0?(i.height=e.height*n,i.y=r+e.y*n):(i.height=e.height*-n,i.y=r+e.y*n-i.height)}else He.x=e.x,He.y=e.y,Xn(t,He,ue),dl(ni,ue.x,ue.y),He.x=e.x+e.width,Xn(t,He,ue),Yn(ni,ue.x,ue.y),He.y=e.y+e.height,Xn(t,He,ue),Yn(ni,ue.x,ue.y),He.x=e.x,Xn(t,He,ue),Yn(ni,ue.x,ue.y),ul(ni,i)},toInnerOf(e,t,i){i||(i=e),ct.move(i,-t.e,-t.f),ct.scale(i,1/t.a,1/t.d)},getFitMatrix(e,t,i=1){const s=Math.min(i,ct.getFitScale(e,t));return new Kt(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,o){o||(o=t),$(s)&&(s=ct.getFitScale(e,t,s==="cover")),Bi.width=n?t.width*=s:t.width*s,Bi.height=n?t.height*=s:t.height*s,f1.toPoint(i,Bi,e,o,!0,!0)},getSpread(e,t,i){const s={};return ct.copyAndSpread(s,e,t,!1,i),s},spread(e,t,i){ct.copyAndSpread(e,e,t,!1,i)},shrink(e,t,i){ct.copyAndSpread(e,e,t,!0,i)},ceil(e){const{x:t,y:i}=e;e.x=pl(e.x),e.y=pl(e.y),e.width=t>e.x?Gn(e.width+t-e.x):Gn(e.width),e.height=i>e.y?Gn(e.height+i-e.y):Gn(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=qn(e.x,t),e.y=qn(e.y,t),e.width=qn(e.width,t),e.height=qn(e.height,t)},add(e,t,i){Oe=e.x+e.width,Le=e.y+e.height,Ei=t.x,Ci=t.y,i||(Ei+=t.width,Ci+=t.height),Oe=Oe>Ei?Oe:Ei,Le=Le>Ci?Le:Ci,e.x=e.x<t.x?e.x:t.x,e.y=e.y<t.y?e.y:t.y,e.width=Oe-e.x,e.height=Le-e.y},addList(e,t){ct.setListWithFn(e,t,void 0,!0)},setList(e,t,i=!1){ct.setListWithFn(e,t,void 0,i)},addListWithFn(e,t,i){ct.setListWithFn(e,t,i,!0)},setListWithFn(e,t,i,s=!1){let n,o=!0;for(let r=0,a=t.length;r<a;r++)n=i?i(t[r],r):t[r],n&&(n.width||n.height)&&(o?(o=!1,s||fl(e,n)):gl(e,n));o&&ct.reset(e)},setPoints(e,t){t.forEach((i,s)=>s===0?dl(ni,i.x,i.y):Yn(ni,i.x,i.y)),ul(ni,e)},setPoint(e,t){ct.set(e,t.x,t.y)},addPoint(e,t){gl(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)=>ye.getPoint(t,e,s,i),hitRadiusPoint:(e,t,i)=>(i&&(t=j.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=j.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)=>(i&&(t=ct.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=ct.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=ct.tempToOuterOf(t,i)),!ct.hit(e,t))return{x:0,y:0,width:0,height:0};let{x:s,y:n,width:o,height:r}=t;return Oe=s+o,Le=n+r,Ei=e.x+e.width,Ci=e.y+e.height,s=s>e.x?s:e.x,n=n>e.y?n:e.y,Oe=Oe<Ei?Oe:Ei,Le=Le<Ci?Le:Ci,o=Oe-s,r=Le-n,{x:s,y:n,width:o,height:r}},intersect(e,t,i){ct.copy(e,ct.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){ct.set(e)}},ct=I,{add:gl,copy:fl}=ct;class yt{get minX(){return I.minX(this)}get minY(){return I.minY(this)}get maxX(){return I.maxX(this)}get maxY(){return I.maxY(this)}constructor(t,i,s,n){this.set(t,i,s,n)}set(t,i,s,n){return N(t)?I.copy(this,t):I.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 yt(this)}move(t,i){return I.move(this,t,i),this}scale(t,i,s){return I.scale(this,t,i,s),this}scaleOf(t,i,s){return I.scaleOf(this,t,i,s),this}toOuterOf(t,i){return I.toOuterOf(this,t,i),this}toInnerOf(t,i){return I.toInnerOf(this,t,i),this}getFitMatrix(t,i){return I.getFitMatrix(this,t,i)}put(t,i,s){I.put(this,t,i,s)}spread(t,i){return I.spread(this,t,i),this}shrink(t,i){return I.shrink(this,t,i),this}ceil(){return I.ceil(this),this}unsign(){return I.unsign(this),this}float(t){return I.float(this,t),this}add(t){return I.add(this,t),this}addList(t){return I.setList(this,t,!0),this}setList(t){return I.setList(this,t),this}addListWithFn(t,i){return I.setListWithFn(this,t,i,!0),this}setListWithFn(t,i){return I.setListWithFn(this,t,i),this}setPoint(t){return I.setPoint(this,t),this}setPoints(t){return I.setPoints(this,t),this}addPoint(t){return I.addPoint(this,t),this}getPoints(){return I.getPoints(this)}getPoint(t,i,s){return I.getPoint(this,t,i,s)}hitPoint(t,i){return I.hitPoint(this,t,i)}hitRadiusPoint(t,i){return I.hitRadiusPoint(this,t,i)}hit(t,i){return I.hit(this,t,i)}includes(t,i){return I.includes(this,t,i)}intersect(t,i){return I.intersect(this,t,i),this}getIntersect(t,i){return new yt(I.getIntersectData(this,t,i))}isSame(t){return I.isSame(this,t)}isEmpty(){return I.isEmpty(this)}reset(){I.reset(this)}}const Xi=new yt;class Wu{constructor(t,i,s,n,o,r){N(t)?this.copy(t):this.set(t,i,s,n,o,r)}set(t=0,i=0,s=0,n=0,o=0,r=0){this.top=t,this.right=i,this.bottom=s,this.left=n,this.width=o,this.height=r}copy(t){const{top:i,right:s,bottom:n,left:o,width:r,height:a}=t;this.set(i,s,n,o,r,a)}getBoundsFrom(t){const{top:i,right:s,bottom:n,left:o,width:r,height:a}=this;return new yt(o,i,r||t.width-o-s,a||t.height-i-n)}}const _1={number:(e,t)=>N(e)?e.type==="percent"?e.value*t:e.value:e},Hu={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:_l,max:ml}=Math,M={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||Is.maxCacheSize),isSuperLarge:(e,t,i)=>Is.isLarge(e,t,i,Is.maxPatternSize),getRealURL(e){const{prefix:t,suffix:i}=Is;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,o,r,a,l,h){const c=ml(_l(t+(s||0)),1),d=ml(_l(i+(n||0)),1);let f,u,g;h&&(g=_1.number(h.offset,h.type==="x"?t:i))&&(h.type==="x"?f=!0:u=!0);const p=M.origin.createCanvas(u?2*c:c,f?2*d:d),m=p.getContext("2d");
10if(a&&(m.globalAlpha=a),m.imageSmoothingEnabled=r!==!1,Is.canUse(e)){if(o){const y=t/o.width,_=i/o.height;m.setTransform(y,0,0,_,-o.x*y,-o.y*_),m.drawImage(e,0,0,e.width,e.height)}else m.drawImage(e,0,0,t,i);g&&(m.drawImage(p,0,0,c,d,f?g-c:c,f?d:g-d,c,d),m.drawImage(p,0,0,c,d,f?g:c,f?d:g,c,d))}return p},canUse:e=>e&&e.width&&!e.__closed,setPatternTransform(e,t,i){try{t&&e.setTransform&&(e.setTransform(t),t=void 0)}catch{}i&&K.stintSet(i,"transform",t)}}},{image:Is}=M,{randColor:yl}=kt;class it{constructor(t){this.repeatMap={},this.name=t}static get(t){return new it(t)}static set filter(t){this.filterList=vl(t)}static set exclude(t){this.excludeList=vl(t)}static drawRepaint(t,i){const s=yl();t.fillWorld(i,s.replace("1)",".1)")),t.strokeWorld(i,s)}static drawBounds(t,i,s){const n=it.showBounds==="hit",o=t.__nowWorld,r=yl();n&&(i.setWorld(o),t.__drawHitPath(i),i.fillStyle=r.replace("1)",".2)"),i.fill()),i.resetTransform(),i.setStroke(r,2),n?i.stroke():i.strokeWorld(o,r)}log(...t){if(Ti.enable){if(Ti.filterList.length&&Ti.filterList.every(i=>i!==this.name)||Ti.excludeList.length&&Ti.excludeList.some(i=>i===this.name))return;console.log("%c"+this.name,"color:#21ae62",...t)}}tip(...t){Ti.enable&&this.warn(...t)}warn(...t){Ti.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 vl(e){return e?$(e)&&(e=[e]):e=[],e}it.filterList=[],it.excludeList=[],it.showWarn=!0;const Ti=it,ju=it.get("RunTime"),Ee={currentId:0,currentName:"",idMap:{},nameMap:{},nameToIdMap:{},start(e,t){const i=Qe.create(Qe.RUNTIME);return pe.currentId=pe.idMap[i]=t?performance.now():Date.now(),pe.currentName=pe.nameMap[i]=e,pe.nameToIdMap[e]=i,i},end(e,t){const i=pe.idMap[e],s=pe.nameMap[e],n=t?(performance.now()-i)/1e3:Date.now()-i;pe.idMap[e]=pe.nameMap[e]=pe.nameToIdMap[s]=void 0,ju.log(s,n,"ms")},endOfName(e,t){const i=pe.nameToIdMap[e];W(i)||pe.end(i,t)}},pe=Ee,m1=[],Dt={list:{},add(e,...t){this.list[e]=!0,m1.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(()=>m1.forEach(e=>Dt.has(e,!0)));const Ot={editor:e=>Dt.need("editor")},wl=it.get("UICreator"),On={list:{},register(e){const{__tag:t}=e.prototype;Kn[t]&&wl.repeat(t),Kn[t]=e},get(e,t,i,s,n,o){if(!Kn[e])return void wl.warn("not register "+e);const r=new Kn[e](t);return W(i)||(r.x=i,s&&(r.y=s),n&&(r.width=n),o&&(r.height=o)),r}},{list:Kn}=On,Nu=it.get("EventCreator"),Cs={nameList:{},register(e){let t;Object.keys(e).forEach(i=>{t=e[i],$(t)&&(zs[t]&&Nu.repeat(t),zs[t]=e)})},changeName(e,t){const i=zs[e];if(i){const s=Object.keys(i).find(n=>i[n]===e);s&&(i[s]=t,zs[t]=i)}},has(e){return!!this.nameList[e]},get:(e,...t)=>new zs[e](...t)},{nameList:zs}=Cs;class y1{constructor(){this.list=[]}add(t){t.manager=this,this.list.push(t)}get(t){let i;const{list:s}=this;for(let o=0,r=s.length;o<r;o++)if(i=s[o],i.recycled&&i.isSameSize(t))return i.recycled=!1,i.manager||(i.manager=this),i;const n=Ot.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 vt(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 v1=[];function lt(){return(e,t)=>{v1.push(t)}}const Uu=[];let H=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||Uu)}get dashPattern(){return this.context.getLineDash()}__bindContext(){let e;v1.forEach(t=>{e=this.context[t],e&&(this[t]=e.bind(this.context))}),this.textBaseline="alphabetic"}setTransform(e,t,i,s,n,o){}resetTransform(){}getTransform(){}save(){}restore(){}transform(e,t,i,s,n,o){N(e)?this.context.transform(e.a,e.b,e.c,e.d,e.e,e.f):this.context.transform(e,t,i,s,n,o)}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,o,r,a,l){switch(arguments.length){case 9:if(t<0){const h=-t/s*a;s+=t,t=0,o+=h,a-=h}if(i<0){const h=-i/n*l;n+=i,i=0,r+=h,l-=h}this.context.drawImage(e,t,i,s,n,o,r,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,o){}quadraticCurveTo(e,t,i,s){}closePath(){}arc(e,t,i,s,n,o){}arcTo(e,t,i,s,n){}ellipse(e,t,i,s,n,o,r,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,o){}fillText(e,t,i,s){}measureText(e){}strokeText(e,t,i,s){}destroy(){this.context=null}};w([vt("imageSmoothingEnabled")],H.prototype,"smooth",void 0),w([vt("imageSmoothingQuality")],H.prototype,"smoothLevel",void 0),w([vt("globalAlpha")],H.prototype,"opacity",void 0),w([vt()],H.prototype,"fillStyle",void 0),w([vt()],H.prototype,"strokeStyle",void 0),w([vt("lineWidth")],H.prototype,"strokeWidth",void 0),w([vt("lineCap")],H.prototype,"strokeCap",void 0),w([vt("lineJoin")],H.prototype,"strokeJoin",void 0),w([vt("lineDashOffset")],H.prototype,"dashOffset",void 0),w([vt()],H.prototype,"miterLimit",void 0),w([vt()],H.prototype,"shadowBlur",void 0),w([vt()],H.prototype,"shadowColor",void 0),w([vt()],H.prototype,"shadowOffsetX",void 0),w([vt()],H.prototype,"shadowOffsetY",void 0),w([vt()],H.prototype,"filter",void 0),w([vt()],H.prototype,"font",void 0),w([vt()],H.prototype,"fontKerning",void 0),w([vt()],H.prototype,"fontStretch",void 0),w([vt()],H.prototype,"fontVariantCaps",void 0),w([vt()],H.prototype,"textAlign",void 0),w([vt()],H.prototype,"textBaseline",void 0),w([vt()],H.prototype,"textRendering",void 0),w([vt()],H.prototype,"wordSpacing",void 0),w([vt()],H.prototype,"letterSpacing",void 0),w([vt()],H.prototype,"direction",void 0),w([lt()],H.prototype,"setTransform",null),w([lt()],H.prototype,"resetTransform",null),w([lt()],H.prototype,"getTransform",null),w([lt()],H.prototype,"save",null),w([lt()],H.prototype,"restore",null),w([lt()],H.prototype,"translate",null),w([lt()],H.prototype,"scale",null),w([lt()],H.prototype,"rotate",null),w([lt()],H.prototype,"fill",null),w([lt()],H.prototype,"stroke",null),w([lt()],H.prototype,"clip",null),w([lt()],H.prototype,"fillRect",null),w([lt()],H.prototype,"strokeRect",null),w([lt()],H.prototype,"clearRect",null),w([lt()],H.prototype,"beginPath",null),w([lt()],H.prototype,"moveTo",null),w([lt()],H.prototype,"lineTo",null),w([lt()],H.prototype,"bezierCurveTo",null),w([lt()],H.prototype,"quadraticCurveTo",null),w([lt()],H.prototype,"closePath",null),w([lt()],H.prototype,"arc",null),w([lt()],H.prototype,"arcTo",null),w([lt()],H.prototype,"ellipse",null),w([lt()],H.prototype,"rect",null),w([lt()],H.prototype,"roundRect",null),w([lt()],H.prototype,"createConicGradient",null),w([lt()],H.prototype,"createLinearGradient",null),w([lt()],H.prototype,"createPattern",null),w([lt()],H.prototype,"createRadialGradient",null),w([lt()],H.prototype,"fillText",null),w([lt()],H.prototype,"measureText",null),w([lt()],H.prototype,"strokeText",null);const{copy:Vu,multiplyParent:Yu,pixelScale:Xu}=X,{round:Zn}=Math,ot=new yt,xl=new yt,qu={width:1,height:1,pixelRatio:1},Se=["width","height","pixelRatio"];class w1 extends H{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}
10get allowBackgroundColor(){return this.view&&this.parentView}constructor(t,i){super(),this.size={},this.worldTransform={},t||(t=qu),this.manager=i,this.innerId=Qe.create(Qe.CANVAS);const{width:s,height:n,pixelRatio:o}=t;this.autoLayout=!s||!n,this.size.pixelRatio=o||M.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;K.copyAttrs(n,t,Se),Se.forEach(o=>n[o]||(n[o]=1)),this.bounds=new yt(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,o=this.worldTransform;i&&Yu(t,i,o),Xu(t,s,o),n&&!t.ignorePixelSnap&&(t.half&&t.half*s%2?(o.e=Zn(o.e-.5)+.5,o.f=Zn(o.f-.5)+.5):(o.e=Zn(o.e),o.f=Zn(o.f))),this.setTransform(o.a,o.b,o.c,o.d,o.e,o.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:o,dashOffset:r,miterLimit:a}=t;i&&(i.strokeCap&&(s=i.strokeCap),i.strokeJoin&&(n=i.strokeJoin),W(i.dashPattern)||(o=i.dashPattern),W(i.dashOffset)||(r=i.dashOffset),i.miterLimit&&(a=i.miterLimit)),this.strokeCap=s,this.strokeJoin=n,this.dashPattern=o,this.dashOffset=r,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:o}=this;this.shadowOffsetX=t*o,this.shadowOffsetY=i*o,this.shadowBlur=s*o,this.shadowColor=n||"black"}setWorldBlur(t){const{pixelRatio:i}=this;this.filter=`blur(${t*i}px)`}copyWorld(t,i,s,n,o){n&&(this.blendMode=n),i?(this.setTempPixelBounds(i,o),s?(this.setTempPixelBounds2(s,o),s=xl):s=ot,this.drawImage(t.view,ot.x,ot.y,ot.width,ot.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,o){i.b||i.c?(this.save(),this.resetTransform(),this.copyWorld(t,i,I.tempToOuterOf(s,i),n,o),this.restore()):(n&&(this.blendMode=n),this.setTempPixelBounds(i,o),this.drawImage(t.view,ot.x,ot.y,ot.width,ot.height,s.x,s.y,s.width,s.height),n&&(this.blendMode="source-over"))}copyWorldByReset(t,i,s,n,o,r){this.resetTransform(),this.copyWorld(t,i,s,n,r),o||this.useWorldTransform()}useGrayscaleAlpha(t){if(this.setTempPixelBounds(t,!0,!0),!ot.width||!ot.height)return;let i,s;const{context:n}=this,o=n.getImageData(ot.x,ot.y,ot.width,ot.height),{data:r}=o;for(let a=0,l=r.length;a<l;a+=4)s=.299*r[a]+.587*r[a+1]+.114*r[a+2],(i=r[a+3])&&(r[a+3]=i===255?s:i*(s/255));n.putImageData(o,ot.x,ot.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(ot.x,ot.y,ot.width,ot.height),s&&(this.blendMode="source-over")}strokeWorld(t,i,s,n){s&&(this.blendMode=s),this.strokeStyle=i,this.setTempPixelBounds(t,n),this.strokeRect(ot.x,ot.y,ot.width,ot.height),s&&(this.blendMode="source-over")}clipWorld(t,i=!0){this.beginPath(),this.setTempPixelBounds(t,i),this.rect(ot.x,ot.y,ot.width,ot.height),this.clip()}clipUI(t){t.windingRule?this.clip(t.windingRule):this.clip()}clearWorld(t,i=!0){this.setTempPixelBounds(t,i),this.clearRect(ot.x,ot.y,ot.width,ot.height)}clear(){const{pixelRatio:t}=this;this.clearRect(0,0,this.width*t+2,this.height*t+2)}setTempPixelBounds(t,i,s){this.copyToPixelBounds(ot,t,i,s)}setTempPixelBounds2(t,i,s){this.copyToPixelBounds(xl,t,i,s)}
10copyToPixelBounds(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,o=this.manager?this.manager.get(s):Ot.canvas(Object.assign({},s));return o.save(),t&&(Vu(o.worldTransform,this.worldTransform),o.useWorldTransform()),i&&(o.smooth=this.smooth),o.pixelSnap!==n&&(o.pixelSnap=n),o}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 De={creator:{},parse(e,t){},convertToCanvasData(e,t){}},x1={N:21,D:22,X:23,G:24,F:25,O:26,P:27,U:28},Ut=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},x1),b1={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},k1={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},Gu=Object.assign(Object.assign({},k1),x1),Zo=Ut,S1={};for(let e in Zo)S1[Zo[e]]=e;const Ln={};for(let e in Zo)Ln[Zo[e]]=b1[e];const E1={drawRoundRect(e,t,i,s,n,o){const r=kt.fourNumber(o,Math.min(s/2,n/2)),a=t+s,l=i+n;r[0]?e.moveTo(t+r[0],i):e.moveTo(t,i),r[1]?e.arcTo(a,i,a,l,r[1]):e.lineTo(a,i),r[2]?e.arcTo(a,l,t,l,r[2]):e.lineTo(a,l),r[3]?e.arcTo(t,l,t,i,r[3]):e.lineTo(t,l),r[0]?e.arcTo(t,i,a,i,r[0]):e.lineTo(t,i)}},{sin:$i,cos:Ws,hypot:bl,atan2:kl,ceil:Ku,abs:Br,PI:Sl,sqrt:El,pow:$n}=Math,{setPoint:Tr,addPoint:Jn}=ar,{set:Qn,toNumberPoints:Zu}=j,{M:Cl,L:Or,C:Lr,Q:Bl,Z:$u}=Ut,Pr={},me={points(e,t,i,s){let n=Zu(t);if(e.push(Cl,n[0],n[1]),i&&n.length>5){let o,r,a,l,h,c,d,f,u,g,p,m,y,_,v,x=n.length;const k=i===!0?.5:i;s&&(n=[n[x-2],n[x-1],...n,n[0],n[1],n[2],n[3]],x=n.length);for(let b=2;b<x-2;b+=2)o=n[b-2],r=n[b-1],a=n[b],l=n[b+1],h=n[b+2],c=n[b+3],p=a-o,m=l-r,y=El($n(p,2)+$n(m,2)),_=El($n(h-a,2)+$n(c-l,2)),(y||_)&&(v=y+_,y=k*y/v,_=k*_/v,h-=o,c-=r,d=a-y*h,f=l-y*c,b===2?s||e.push(Bl,d,f,a,l):(p||m)&&e.push(Lr,u,g,d,f,a,l),u=a+_*h,g=l+_*c);s||e.push(Bl,u,g,n[x-2],n[x-1])}else for(let o=2,r=n.length;o<r;o+=2)e.push(Or,n[o],n[o+1]);s&&e.push($u)},rect(e,t,i,s,n){De.creator.path=e,De.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,o){De.creator.path=[],E1.drawRoundRect(De.creator,t,i,s,n,o),e.push(...De.convertToCanvasData(De.creator.path,!0))},arcTo(e,t,i,s,n,o,r,a,l,h,c){const d=s-t,f=n-i,u=o-s,g=r-n;let p=kl(f,d),m=kl(g,u);const y=bl(d,f),_=bl(u,g);let v=m-p;if(v<0&&(v+=fe),y<1e-12||_<1e-12||v<1e-12||Br(v-Sl)<1e-12)return e&&e.push(Or,s,n),l&&(Tr(l,t,i),Jn(l,s,n)),c&&Qn(c,t,i),void(h&&Qn(h,s,n));const x=d*g-u*f<0,k=x?-1:1,b=a/Ws(v/2),C=s+b*Ws(p+v/2+ps*k),O=n+b*$i(p+v/2+ps*k);return p-=ps*k,m-=ps*k,Ll(e,C,O,a,a,0,p/at,m/at,x,l,h,c)},arc:(e,t,i,s,n,o,r,a,l,h)=>Ll(e,t,i,s,s,0,n,o,r,a,l,h),ellipse(e,t,i,s,n,o,r,a,l,h,c,d){const f=o*at,u=$i(f),g=Ws(f);let p=r*at,m=a*at;p>Sl&&(p-=fe),m<0&&(m+=fe);let y=m-p;y<0?y+=fe:y>fe&&(y-=fe),l&&(Br(a-r)===360?y=-fe:y-=fe);const _=Ku(Br(y/ps)),v=y/_,x=$i(v/4),k=8/3*x*x/$i(v/2);m=p+v;let b,C,O,A,P,S,B,E,L=Ws(p),F=$i(p),D=O=g*s*L-u*n*F,U=A=u*s*L+g*n*F,J=t+O,St=i+A;e&&e.push(e.length?Or:Cl,J,St),h&&Tr(h,J,St),d&&Qn(d,J,St);for(let ki=0;ki<_;ki++)b=Ws(m),C=$i(m),O=g*s*b-u*n*C,A=u*s*b+g*n*C,P=t+D-k*(g*s*F+u*n*L),S=i+U-k*(u*s*F-g*n*L),B=t+O+k*(g*s*C+u*n*b),E=i+A+k*(u*s*C-g*n*b),e&&e.push(Lr,P,S,B,E,t+O,i+A),h&&Ol(t+D,i+U,P,S,B,E,t+O,i+A,h,!0),D=O,U=A,L=b,F=C,p=m,m+=v;c&&Qn(c,t+O,i+A)},quadraticCurveTo(e,t,i,s,n,o,r){e.push(Lr,(t+2*s)/3,(i+2*n)/3,(o+2*s)/3,(r+2*n)/3,o,r)},toTwoPointBoundsByQuadraticCurve(e,t,i,s,n,o,r,a){Ol(e,t,(e+2*i)/3,(t+2*s)/3,(n+2*i)/3,(o+2*s)/3,n,o,r,a)},toTwoPointBounds(e,t,i,s,n,o,r,a,l,h){const c=[];let d,f,u,g,p,m,y,_,v=e,x=i,k=n,b=r;for(let C=0;C<2;++C)if(C==1&&(v=t,x=s,k=o,b=a),d=-3*v+9*x-9*k+3*b,f=6*v-12*x+6*k,u=3*x-3*v,Math.abs(d)<1e-12){if(Math.abs(f)<1e-12)continue;g=-u/f,0<g&&g<1&&c.push(g)}
10else y=f*f-4*u*d,_=Math.sqrt(y),y<0||(p=(-f+_)/(2*d),0<p&&p<1&&c.push(p),m=(-f-_)/(2*d),0<m&&m<1&&c.push(m));h?Jn(l,e,t):Tr(l,e,t),Jn(l,r,a);for(let C=0,O=c.length;C<O;C++)Tl(c[C],e,t,i,s,n,o,r,a,Pr),Jn(l,Pr.x,Pr.y)},getPointAndSet(e,t,i,s,n,o,r,a,l,h){const c=1-e,d=c*c*c,f=3*c*c*e,u=3*c*e*e,g=e*e*e;h.x=d*t+f*s+u*o+g*a,h.y=d*i+f*n+u*r+g*l},getPoint(e,t,i,s,n,o,r,a,l){const h={};return Tl(e,t,i,s,n,o,r,a,l,h),h},getDerivative(e,t,i,s,n){const o=1-e;return 3*o*o*(i-t)+6*o*e*(s-i)+3*e*e*(n-s)},cut(e,t,i,s,n,o,r,a,l){if(e<=0)return{left:null,right:[s,n,o,r,a,l]};if(e>=1)return{left:[s,n,o,r,a,l],right:null};const h=1-e,c=t*h+s*e,d=i*h+n*e,f=s*h+o*e,u=n*h+r*e,g=o*h+a*e,p=r*h+l*e,m=c*h+f*e,y=d*h+u*e,_=f*h+g*e,v=u*h+p*e;return{left:[c,d,m,y,m*h+_*e,y*h+v*e],right:[_,v,g,p,a,l]}}},{getPointAndSet:Tl,toTwoPointBounds:Ol,ellipse:Ll}=me,{sin:Ju,cos:Qu,sqrt:Pl,atan2:Rl}=Math,{ellipse:t2}=me,e2={ellipticalArc(e,t,i,s,n,o,r,a,l,h,c){const d=(l-t)/2,f=(h-i)/2,u=o*at,g=Ju(u),p=Qu(u),m=-p*d-g*f,y=-p*f+g*d,_=s*s,v=n*n,x=y*y,k=m*m,b=_*v-_*x-v*k;let C=0;if(b<0){const D=Pl(1-b/(_*v));s*=D,n*=D}else C=(r===a?-1:1)*Pl(b/(_*x+v*k));const O=C*s*y/n,A=-C*n*m/s,P=Rl((y-A)/n,(m-O)/s),S=Rl((-y-A)/n,(-m-O)/s);let B=S-P;a===0&&B>0?B-=fe:a===1&&B<0&&(B+=fe);const E=t+d+p*O-g*A,L=i+f+g*O+p*A,F=B<0?1:0;c||M.ellipseToCurve?t2(e,E,L,s,n,o,P/at,S/at,F):s!==n||o?e.push(Ut.G,E,L,s,n,o,P/at,S/at,F):e.push(Ut.O,E,L,s,P/at,S/at,F)}},i2={toCommand:e=>[],toNode:(e,t)=>[]},{M:Rr,m:s2,L:Hs,l:n2,H:o2,h:r2,V:a2,v:l2,C:Ji,c:h2,S:Ar,s:c2,Q:Qi,q:d2,T:Fr,t:u2,A:p2,a:g2,Z:Dr,z:f2,N:_2,D:m2,X:y2,G:v2,F:w2,O:x2,P:b2,U:k2}=Ut,{rect:S2,roundRect:Al,arcTo:E2,arc:Fl,ellipse:Dl,quadraticCurveTo:Ml}=me,{ellipticalArc:C2}=e2,B2=it.get("PathConvert"),je={},xi={current:{dot:0},stringify(e,t){let i,s,n,o=0,r=e.length,a="";for(;o<r;){s=e[o],i=Ln[s],a+=s===n?" ":S1[s];for(let l=1;l<i;l++)a+=kt.float(e[o+l],t),l===i-1||(a+=" ");n=s,o+=i}return a},parse(e,t){let i,s,n,o="";const r=[],a=t?Gu:k1;for(let l=0,h=e.length;l<h;l++)s=e[l],Hu[s]?(s==="."&&(se.dot&&(Oi(r,o),o=""),se.dot++),o==="0"&&s!=="."&&(Oi(r,o),o=""),o+=s):Ut[s]?(o&&(Oi(r,o),o=""),se.name=Ut[s],se.length=b1[s],se.index=0,Oi(r,se.name),s==="m"?se.name=Ut.l:s==="M"&&(se.name=Ut.L),!i&&a[s]&&(i=!0)):s==="-"||s==="+"?n==="e"||n==="E"?o+=s:(o&&Oi(r,o),o=s):o&&(Oi(r,o),o=""),n=s;return o&&Oi(r,o),i?xi.toCanvasData(r,t):r},toCanvasData(e,t){let i,s,n,o,r,a=0,l=0,h=0,c=0,d=0,f=0,u=0,g=e.length;const p=[];for(;u<g;){switch(n=e[u],n){case s2:e[u+1]+=a,e[u+2]+=l;case Rr:a=d=e[u+1],l=f=e[u+2],p.push(Rr,a,l),u+=3;break;case r2:e[u+1]+=a;case o2:a=e[u+1],p.push(Hs,a,l),u+=2;break;case l2:e[u+1]+=l;case a2:l=e[u+1],p.push(Hs,a,l),u+=2;break;case n2:e[u+1]+=a,e[u+2]+=l;case Hs:a=e[u+1],l=e[u+2],p.push(Hs,a,l),u+=3;break;case c2:e[u+1]+=a,e[u+2]+=l,e[u+3]+=a,e[u+4]+=l,n=Ar;case Ar:r=o===Ji||o===Ar,h=r?2*a-i:a,c=r?2*l-s:l,i=e[u+1],s=e[u+2],a=e[u+3],l=e[u+4],p.push(Ji,h,c,i,s,a,l),u+=5;break;case h2: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=Ji;case Ji:i=e[u+3],s=e[u+4],a=e[u+5],l=e[u+6],p.push(Ji,e[u+1],e[u+2],i,s,a,l),u+=7;break;case u2:e[u+1]+=a,e[u+2]+=l,n=Fr;case Fr:r=o===Qi||o===Fr,i=r?2*a-i:a,s=r?2*l-s:l,t?Ml(p,a,l,i,s,e[u+1],e[u+2]):p.push(Qi,i,s,e[u+1],e[u+2]),a=e[u+1],l=e[u+2],u+=3;break;case d2:e[u+1]+=a,e[u+2]+=l,e[u+3]+=a,e[u+4]+=l,n=Qi;case Qi:i=e[u+1],s=e[u+2],t?Ml(p,a,l,i,s,e[u+3],e[u+4]):p.push(Qi,i,s,e[u+3],e[u+4]),a=e[u+3],l=e[u+4],u+=5;break;case g2:e[u+6]+=a,e[u+7]+=l;case p2:C2(p,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 f2:case Dr:p.push(Dr),a=d,l=f,u++;break;case _2:a=e[u+1],l=e[u+2],t?S2(p,a,l,e[u+3],e[u+4]):oi(p,e,u,5),u+=5;break;case m2:a=e[u+1],l=e[u+2],t?Al(p,a,l,e[u+3],e[u+4],[e[u+5],e[u+6],e[u+7],e[u+8]]):oi(p,e,u,9),u+=9;break;case y2:a=e[u+1],l=e[u+2],t?Al(p,a,l,e[u+3],e[u+4],e[u+5]):oi(p,e,u,6),u+=6;break;case v2:Dl(t?p:oi(p,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,je),a=je.x,l=je.y,u+=9;break;case w2:t?Dl(p,e[u+1],e[u+2],e[u+3],e[u+4],0,0,360,!1):oi(p,e,u,5),a=e[u+1]+e[u+3],l=e[u+2],u+=5;break;case x2:Fl(t?p:oi(p,e,u,7),e[u+1],e[u+2],e[u+3],e[u+4],e[u+5],e[u+6],null,je),a=je.x,l=je.y,u+=7;break;case b2:t?Fl(p,e[u+1],e[u+2],e[u+3],0,360,!1):oi(p,e,u,4),a=e[u+1]+e[u+3],l=e[u+2],u+=4;break;case k2:E2(t?p:oi(p,e,u,6),a,l,e[u+1],e[u+2],e[u+3],e[u+4],e[u+5],null,je),a=je.x,l=je.y,u+=6;break;default:return B2.error(`command: ${n} [index:${u}]`,e),p}o=n}return p},objectToCanvasData(e){if(e[0].name.length>1)return i2.toCommand(e);{const t=[];return e.forEach(i=>
10{switch(i.name){case"M":t.push(Rr,i.x,i.y);break;case"L":t.push(Hs,i.x,i.y);break;case"C":t.push(Ji,i.x1,i.y1,i.x2,i.y2,i.x,i.y);break;case"Q":t.push(Qi,i.x1,i.y1,i.x,i.y);break;case"Z":t.push(Dr)}}),t}},copyData(e,t,i,s){for(let n=i,o=i+s;n<o;n++)e.push(t[n])},pushData(e,t){se.index===se.length&&(se.index=1,e.push(se.name)),e.push(Number(t)),se.index++,se.dot=0}},{current:se,pushData:Oi,copyData:oi}=xi,{M:Mr,L:T2,C:O2,Q:L2,Z:P2,N:Il,D:R2,X:A2,G:F2,F:D2,O:M2,P:I2,U:z2}=Ut,{getMinDistanceFrom:W2,getRadianFrom:H2}=j,{tan:j2,min:zl,abs:N2}=Math,ts={},C1=it.get("PointsCurve"),bi={pointsCurveList:{},beginPath(e){e.length=0},moveTo(e,t,i){e.push(Mr,t,i)},lineTo(e,t,i){e.push(T2,t,i)},bezierCurveTo(e,t,i,s,n,o,r){e.push(O2,t,i,s,n,o,r)},quadraticCurveTo(e,t,i,s,n){e.push(L2,t,i,s,n)},closePath(e){e.push(P2)},rect(e,t,i,s,n){e.push(Il,t,i,s,n)},roundRect(e,t,i,s,n,o){if(tt(o))e.push(A2,t,i,s,n,o);else{const r=kt.fourNumber(o);r?e.push(R2,t,i,s,n,...r):e.push(Il,t,i,s,n)}},ellipse(e,t,i,s,n,o,r,a,l){if(s===n)return Wl(e,t,i,s,r,a,l);Gt(o)?e.push(D2,t,i,s,n):(Gt(r)&&(r=0),Gt(a)&&(a=360),e.push(F2,t,i,s,n,o,r,a,l?1:0))},arc(e,t,i,s,n,o,r){Gt(n)?e.push(I2,t,i,s):(Gt(n)&&(n=0),Gt(o)&&(o=360),e.push(M2,t,i,s,n,o,r?1:0))},arcTo(e,t,i,s,n,o,r,a,l){if(!W(r)){const h=W2(r,a,t,i,s,n)/(l?1:2);o=zl(o,zl(h,h*N2(j2(H2(r,a,t,i,s,n)/2))))}e.push(z2,t,i,s,n,o)},drawEllipse(e,t,i,s,n,o,r,a,l){me.ellipse(null,t,i,s,n,Gt(o)?0:o,Gt(r)?0:r,Gt(a)?360:a,l,null,null,ts),e.push(Mr,ts.x,ts.y),U2(e,t,i,s,n,o,r,a,l)},drawArc(e,t,i,s,n,o,r){me.arc(null,t,i,s,Gt(n)?0:n,Gt(o)?360:o,r,null,null,ts),e.push(Mr,ts.x,ts.y),Wl(e,t,i,s,n,o,r)},drawPoints(e,t,i,s,n){let o="Q";N(i)&&(o=i.type,i=i.value),$o[o]||(C1.warn("not found:",o),o="Q"),$o[o](e,t,i,s,n)}},{ellipse:U2,arc:Wl,pointsCurveList:$o}=bi;var to,Hl;to="Q",Hl=me.points,$o[to]&&C1.repeat(to),$o[to]=Hl;const{moveTo:V2,lineTo:Y2,quadraticCurveTo:X2,bezierCurveTo:q2,closePath:G2,beginPath:K2,rect:Z2,roundRect:$2,ellipse:J2,arc:Q2,arcTo:tp,drawEllipse:ep,drawArc:ip,drawPoints:sp}=bi;class B1{set path(t){this.__path=t}get path(){return this.__path}constructor(t){this.set(t)}set(t){return this.__path=t?$(t)?De.parse(t):t:[],this}beginPath(){return K2(this.__path),this.paint(),this}moveTo(t,i){return V2(this.__path,t,i),this.paint(),this}lineTo(t,i){return Y2(this.__path,t,i),this.paint(),this}bezierCurveTo(t,i,s,n,o,r){return q2(this.__path,t,i,s,n,o,r),this.paint(),this}quadraticCurveTo(t,i,s,n){return X2(this.__path,t,i,s,n),this.paint(),this}closePath(){return G2(this.__path),this.paint(),this}rect(t,i,s,n){return Z2(this.__path,t,i,s,n),this.paint(),this}roundRect(t,i,s,n,o){return $2(this.__path,t,i,s,n,o),this.paint(),this}ellipse(t,i,s,n,o,r,a,l){return J2(this.__path,t,i,s,n,o,r,a,l),this.paint(),this}arc(t,i,s,n,o,r){return Q2(this.__path,t,i,s,n,o,r),this.paint(),this}arcTo(t,i,s,n,o){return tp(this.__path,t,i,s,n,o),this.paint(),this}drawEllipse(t,i,s,n,o,r,a,l){return ep(this.__path,t,i,s,n,o,r,a,l),this.paint(),this}drawArc(t,i,s,n,o,r){return ip(this.__path,t,i,s,n,o,r),this.paint(),this}drawPoints(t,i,s){return sp(this.__path,t,i,s),this.paint(),this}clearPath(){return this.beginPath()}paint(){}}const{M:np,L:op,C:rp,Q:ap,Z:lp,N:hp,D:cp,X:dp,G:up,F:pp,O:gp,P:fp,U:_p}=Ut,mp=it.get("PathDrawer"),jl={drawPathByData(e,t){if(!t)return;let i,s=0,n=t.length;for(;s<n;)switch(i=t[s],i){case np:e.moveTo(t[s+1],t[s+2]),s+=3;break;case op:e.lineTo(t[s+1],t[s+2]),s+=3;break;case rp:e.bezierCurveTo(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5],t[s+6]),s+=7;break;case ap:e.quadraticCurveTo(t[s+1],t[s+2],t[s+3],t[s+4]),s+=5;break;case lp:e.closePath(),s+=1;break;case hp:e.rect(t[s+1],t[s+2],t[s+3],t[s+4]),s+=5;break;case cp: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 dp:e.roundRect(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]),s+=6;break;case up:e.ellipse(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]*at,t[s+6]*at,t[s+7]*at,t[s+8]),s+=9;break;case pp:e.ellipse(t[s+1],t[s+2],t[s+3],t[s+4],0,0,fe,!1),s+=5;break;case gp:e.arc(t[s+1],t[s+2],t[s+3],t[s+4]*at,t[s+5]*at,t[s+6]),s+=7;break;
10case fp:e.arc(t[s+1],t[s+2],t[s+3],0,fe,!1),s+=4;break;case _p:e.arcTo(t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]),s+=6;break;default:return void mp.error(`command: ${i} [index:${s}]`,t)}},drawPathByPoints(e,t,i){}},{M:yp,L:vp,C:Nl,Q:Ul,Z:Vl,N:wp,D:Yl,X:xp,G:bp,F:kp,O:Sp,P:Ep,U:Cp}=Ut,{toTwoPointBounds:Bp,toTwoPointBoundsByQuadraticCurve:Tp,arcTo:Op,arc:Lp,ellipse:Pp}=me,{addPointBounds:js,copy:Ir,addPoint:Rp,setPoint:zr,addBounds:eo,toBounds:Ap}=ar,Fp=it.get("PathBounds");let es,io,Wr;const he={},Xl={},Ne={},T1={toBounds(e,t){T1.toTwoPointBounds(e,Xl),Ap(Xl,t)},toTwoPointBounds(e,t){if(!e||!e.length)return zr(t,0,0);let i,s,n,o,r,a=0,l=0,h=0;const c=e.length;for(;a<c;)switch(r=e[a],a===0&&(r===Vl||r===Nl||r===Ul?zr(t,l,h):zr(t,e[a+1],e[a+2])),r){case yp:case vp:l=e[a+1],h=e[a+2],Rp(t,l,h),a+=3;break;case Nl:n=e[a+5],o=e[a+6],Bp(l,h,e[a+1],e[a+2],e[a+3],e[a+4],n,o,he),js(t,he),l=n,h=o,a+=7;break;case Ul:i=e[a+1],s=e[a+2],n=e[a+3],o=e[a+4],Tp(l,h,i,s,n,o,he),js(t,he),l=n,h=o,a+=5;break;case Vl:a+=1;break;case wp:l=e[a+1],h=e[a+2],eo(t,l,h,e[a+3],e[a+4]),a+=5;break;case Yl:case xp:l=e[a+1],h=e[a+2],eo(t,l,h,e[a+3],e[a+4]),a+=r===Yl?9:6;break;case bp:Pp(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],he,Ne),a===0?Ir(t,he):js(t,he),l=Ne.x,h=Ne.y,a+=9;break;case kp:l=e[a+1],h=e[a+2],io=e[a+3],Wr=e[a+4],eo(t,l-io,h-Wr,2*io,2*Wr),l+=io,a+=5;break;case Sp:Lp(null,e[a+1],e[a+2],e[a+3],e[a+4],e[a+5],e[a+6],he,Ne),a===0?Ir(t,he):js(t,he),l=Ne.x,h=Ne.y,a+=7;break;case Ep:l=e[a+1],h=e[a+2],es=e[a+3],eo(t,l-es,h-es,2*es,2*es),l+=es,a+=4;break;case Cp:Op(null,l,h,e[a+1],e[a+2],e[a+3],e[a+4],e[a+5],he,Ne),a===0?Ir(t,he):js(t,he),l=Ne.x,h=Ne.y,a+=6;break;default:return void Fp.error(`command: ${r} [index:${a}]`,e)}}},{M:so,L:no,Z:is}=Ut,{getCenterX:Dp,getCenterY:Mp}=j,{arcTo:Hr}=bi,{float:oo}=kt,O1={smooth(e,t,i){let s,n,o,r,a,l,h=0,c=0,d=0,f=0,u=0,g=0,p=0,m=0,y=0;Q(t)&&(t=t[0]||0);const _=e.length,v=_===9,x=[];for(;h<_;){switch(s=e[h],s){case so:l=x.length,l&&n!==is&&(x[r]=f,x[a]=u),f=m=e[h+1],u=y=e[h+2],h+=3,e[h]===no?(g=e[h+1],p=e[h+2],v?x.push(so,f,u):x.push(so,Dp(f,g),Mp(u,p))):x.push(so,f,u),r=l+1,a=l+2;break;case no:switch(c=e[h+1],d=e[h+2],h+=3,e[h]){case no:Hr(x,c,d,e[h+1],e[h+2],t,m,y,v);break;case is:oo(c)===oo(f)&&oo(d)===oo(u)?(c=m,d=y):Hr(x,c,d,f,u,t,m,y,v);break;default:x.push(no,c,d)}m=c,y=d;break;case is:n!==is&&(Hr(x,f,u,g,p,t,m,y,v),x.push(is)),h+=1;break;default:o=Ln[s];for(let k=0;k<o;k++)x.push(e[h+k]);h+=o}n=s}return s!==is&&(x[r]=f,x[a]=u),x}};function L1(e){return new B1(e)}const Ns=L1();De.creator=L1(),De.parse=xi.parse,De.convertToCanvasData=xi.toCanvasData;const{drawRoundRect:Ip}=E1;function ql(e){(function(t){t&&!t.roundRect&&(t.roundRect=function(i,s,n,o,r){Ip(this,i,s,n,o,r)})})(e)}const mi={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=mn.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{}}}},mn=mi;mn.mineType=mn.mimeType,mn.alphaPixelTypes.forEach(e=>mn.upperCaseTypeMap[e]=e.toUpperCase());const zp=it.get("TaskProcessor");class Wp{constructor(t){this.parallel=!0,this.time=1,this.id=Qe.create(Qe.TASK),this.task=t}run(){return Sn(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){zp.error(t)}})}complete(){this.isComplete=!0,this.parent=this.task=this.canUse=null}cancel(){this.isCancel=!0,this.complete()}}class Gl{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&&K.assign(this.config,t),this.empty()}add(t,i,s){let n,o,r,a;const l=new Wp(t);return l.parent=this,tt(i)?a=i:i&&(o=i.parallel,n=i.start,r=i.time,a=i.delay,s||(s=i.canUse)),r&&(l.time=r),o===!1&&(l.parallel=!1),s&&(l.canUse=s),W(a)?this.push(l,n
10):(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 o=n+i.parallel;if(o>s.length&&(o=s.length),i.parallel>1)for(let r=n;r<o&&(t=s[r],t.parallel);r++)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 Hp=it.get("Resource"),fi={tasker:new Gl,queue:new Gl({parallel:1}),map:{},get isComplete(){return ri.tasker.isComplete},set(e,t){ri.map[e]&&Hp.repeat(e),ri.map[e]=t},get:e=>ri.map[e],remove(e){const t=ri.map[e];t&&(t.destroy&&t.destroy(),delete ri.map[e])},loadImage(e,t){return new Promise((i,s)=>{const n=this.setImage(e,e,t);n.load(()=>i(n),o=>s(o))})},setImage(e,t,i){let s;return $(t)?s={url:t}:t.url||(s={url:e,view:t}),s&&(i&&(s.format=i),t=Ot.image(s)),ri.set(e,t),t},loadFilm(e,t){},loadVideo(e,t){},destroy(){ri.map={}}},ri=fi,Ce={maxRecycled:10,recycledList:[],patternTasker:fi.queue,get(e,t){let i=fi.get(e.url);return i||fi.set(e.url,i=Ot[t||"image"](e)),i.use++,i},recycle(e){e.parent&&(e=e.parent),e.use--,setTimeout(()=>{e.use||(M.image.isLarge(e)?e.url&&fi.remove(e.url):(e.clearLevels(),Us.recycledList.push(e)))})},recyclePaint(e){Us.recycle(e.image)},clearRecycled(e){const t=Us.recycledList;(t.length>Us.maxRecycled||e)&&(t.forEach(i=>(!i.use||e)&&i.url&&fi.remove(i.url)),t.length=0)},clearLevels(){},hasAlphaPixel:e=>mi.alphaPixelTypes.some(t=>Us.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:"+mi.mimeType(e)))return!0}else if(i.includes("."+e)||i.includes("."+mi.upperCaseTypeMap[e])||e==="png"&&!i.includes("."))return!0;return!1},destroy(){this.clearRecycled(!0)}},Us=Ce,{IMAGE:jp,create:Np}=Qe;class P1{get tag(){return"Image"}get url(){return this.config.url}get crossOrigin(){const{crossOrigin:t}=this.config;return W(t)?M.image.crossOrigin:t}get completed(){return this.ready||!!this.error}constructor(t){if(this.use=0,this.waitComplete=[],this.innerId=Np(jp),this.config=t||(t={url:""}),t.view){const{view:i}=t;this.setView(i.config?i.view:i)}Ce.isFormat("svg",t)&&(this.isSVG=!0),Ce.hasAlphaPixel(t)&&(this.hasAlphaPixel=!0)}load(t,i,s){return this.loading||(this.loading=!0,fi.tasker.add(()=>Sn(this,void 0,void 0,function*(){return yield M.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,o,r,a,l){if(t||(t=this.width),i||(i=this.height),this.cache){let{params:c,data:d}=this.cache;for(let f in c)if(c[f]!==arguments[f]){d=null;break}if(d)return d}const h=M.image.resize(this.view,t,i,o,r,void 0,a,s,n,l);return this.cache=this.use>1?{data:h,params:arguments}:null,h}getPattern(t,i,s,n){const o=M.canvas.createPattern(t,i);return M.image.setPatternTransform(o,s,n),o}render(t,i,s,n,o,r,a,l,h){t.drawImage(this.view,i,s,n,o)}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}}function ve(e,t,i,s){i.configurable=i.enumerable=!0,Object.defineProperty(e,t,i)}function R0(e,t){return Object.getOwnPropertyDescriptor(e,t)}function mt(e,t){return(i,s)=>function(n,o,r,a){ve(n,o,Object.assign({get(){return this.__getAttr(o)},set(h){this.__setAttr(o,h)}},a||{})),A1(n,o,r)}(i,s,e,t&&t(s))}function xt(e){return mt(e)}function ro(e,t){return mt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.matrixChanged||this.__layout.matrixChange())}}))}function Kl(e,t){return mt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.matrixChanged||this.__layout.matrixChange(),this.__scrollWorld||(this.__scrollWorld={}))}}))}function Zl(e){return mt(e,t=>
10({set(i){this.__setAttr(t,i)&&(this.__hasAutoLayout=!!(this.origin||this.around||this.flow),this.__local||this.__layout.createLocal(),ti(this))}}))}function $l(e,t){return mt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.scaleChanged||this.__layout.scaleChange())}}))}function jr(e,t){return mt(e,i=>({set(s){this.__setAttr(i,s,t)&&(this.__layout.rotationChanged||this.__layout.rotationChange())}}))}function et(e,t){return mt(e,i=>({set(s){this.__setAttr(i,s,t)&&ti(this)}}))}function ti(e){e.__layout.boxChanged||e.__layout.boxChange(),e.__hasAutoLayout&&(e.__layout.matrixChanged||e.__layout.matrixChange())}const Vt=et;function lr(e,t){return mt(e,i=>({set(s){this.__setAttr(i,s)&&(A0(this),t&&(this.__.__useStroke=!0))}}))}function A0(e){e.__layout.strokeChanged||e.__layout.strokeChange(),e.__.__useArrow&&ti(e)}const Pe=lr;function F0(e){return mt(e,t=>({set(i){this.__setAttr(t,i),this.__layout.renderChanged||this.__layout.renderChange()}}))}function Ke(e){return mt(e,t=>({set(i){this.__setAttr(t,i)&&R1(this)}}))}function R1(e){e.__layout.surfaceChanged||e.__layout.surfaceChange()}function Jl(e){return mt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__;K.stintSet(s,"__useDim",s.dim||s.bright||s.dimskip)}}}))}function Ql(e){const{parent:t}=e;if(t){const{__hasMask:i}=t;t.__updateMask(),i!==t.__hasMask&&t.forceUpdate()}}function th(e,t,i,s){e.__setAttr(t,i)&&(e.__layout.opacityChanged||e.__layout.opacityChange(),s!==0&&i!==0||ti(e))}function Up(e){e.__layout.childrenSortChange(),e.__.flow&&e.__layout.boxChange()}function Vp(e){e.__updateMask()}function Yp(e){e.__updateEraser()}function ui(e){return mt(e,t=>({set(i){this.__setAttr(t,i)&&(this.__layout.hitCanvasChanged=!0,this.leafer&&this.leafer.updateCursor())}}))}function Yt(e){return(t,i)=>{ve(t,"__DataProcessor",{get:()=>e})}}function A1(e,t,i){const s=e.__DataProcessor.prototype,n="_"+t,o=function(c){return"set"+c.charAt(0).toUpperCase()+c.slice(1)}(t),r=function(c,d){const f="_"+c;return{get(){const u=this[f];return u??d},set(u){this[f]=u}}}(t,i);if(W(i))r.get=function(){return this[n]};else if(typeof i=="function")r.get=function(){const c=this[n];return c??i(this.__leaf)};else if(N(i)){const c=function(d){return JSON.stringify(d)==="{}"}(i);r.get=function(){const d=this[n];return d??(this[n]=c?{}:K.clone(i))}}const a=e.isBranchLeaf;t==="width"?r.get=function(){const c=this[n];if(c==null){const d=this,f=d.__naturalWidth,u=d.__leaf;return!i||u.pathInputed?u.boxBounds.width:f?d._height&&d.__useNaturalRatio?d._height*f/d.__naturalHeight:f:a&&u.children.length?u.boxBounds.width:i}return c}:t==="height"&&(r.get=function(){const c=this[n];if(c==null){const d=this,f=d.__naturalHeight,u=d.__leaf;return!i||u.pathInputed?u.boxBounds.height:f?d._width&&d.__useNaturalRatio?d._width*f/d.__naturalWidth:f:a&&u.children.length?u.boxBounds.height:i}return c});let l,h=s;for(;!l&&h;)l=R0(h,t),h=h.__proto__;l&&l.set&&(r.set=l.set),s[o]&&(r.set=s[o],delete s[o]),ve(s,t,r)}const Xp=new it("rewrite"),Ho=[],qp=["destroy","constructor"];function ai(e){return(t,i)=>{Ho.push({name:t.constructor.name+"."+i,run:()=>{t[i]=e}})}}function hr(){return e=>{F1()}}function F1(e){Ho.length&&(Ho.forEach(t=>{e&&Xp.error(t.name,"需在Class上装饰@rewriteAble()"),t.run()}),Ho.length=0)}function ae(e,t){return i=>{var s;(e.prototype?(s=e.prototype,Object.getOwnPropertyNames(s)):Object.keys(e)).forEach(n=>{if(!(qp.includes(n)||t&&t.includes(n)))if(e.prototype){const o=R0(e.prototype,n);o&&Object.defineProperty(i.prototype,n,o)}else i.prototype[n]=e[n]})}}function Xt(){return e=>{On.register(e)}}function ii(){return e=>{Cs.register(e)}}setTimeout(()=>F1(!0));const{copy:ss,toInnerPoint:Gp,toOuterPoint:Kp,scaleOfOuter:eh,rotateOfOuter:Zp,skewOfOuter:$p,multiplyParent:ih,divideParent:sh,getLayout:Jp}=X,Ct={},{round:nh}=Math,ut={updateAllMatrix(e,t,i){if(t&&e.__hasAutoLayout&&e.__layout.matrixChanged&&(i=!0),tg(e,t,i),e.isBranch){const{children:s}=e;for(let n=0,o=s.length;n<o;n++)Qp(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++)oh(t[i])}},updateChange(e){const t=e.__layout;t.stateStyleChanged&&e.updateState(),t.opacityChanged&&oh(e),e.__updateChange(),t.surfaceChanged&&(e.__hasComplex,t.surfaceChanged=!1)},updateAllChange(e){if(ig(e),e.isBranch){const{children:t}=e;for(let i=0,s=t.length;i<s;i++)eg(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,o){s||(s=e.__nowWorld),e.__worldFlipped||M.fullImageShadow?t.copyWorldByReset(i,s,e.__nowWorld,n,o):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 o=N(t)?Object.assign({},t):{x:t,y:i};s?Kp(e.localTransform,o,o,!0):e.parent&&Gp(e.parent.scrollWorldTransform,o,o,!0),At.moveLocal(e,o.x,o.y,n)},moveLocal(e,t,i=0,s){N(t)&&(i=t.y,t=t.x),t+=e.x,i+=e.y,e.leafer&&e.leafer.config.pointSnap&&(t=nh(t),i=nh(i)),s?e.animate({x:t,y:i},s):(e.x=t,e.y=i)},zoomOfWorld(e,t,i,s,n,o,r){At.zoomOfLocal(e,Nr(e,t),i,s,n,o,r)},zoomOfLocal(e,t,i,s=i,n,o,r){const a=e.__localMatrix;if(tt(s)||(s&&(o=s),s=i),ss(Ct,a),eh(Ct,t,i,s),At.hasHighPosition(e))At.setTransform(e,Ct,n,o,r);else{const l=e.x+Ct.e-a.e,h=e.y+Ct.f-a.f;o&&!n?e.animate({x:l,y:h,scaleX:e.scaleX*i,scaleY:e.scaleY*s},o):(e.x=l,e.y=h,e.scaleResize(i,s,n!==!0,r))}},rotateOfWorld(e,t,i,s){At.rotateOfLocal(e,Nr(e,t),i,s)},rotateOfLocal(e,t,i,s){const n=e.__localMatrix;ss(Ct,n),Zp(Ct,t,i),At.hasHighPosition(e)?At.setTransform(e,Ct,!1,s):e.set({x:e.x+Ct.e-n.e,y:e.y+Ct.f-n.f,rotation:kt.formatRotation(e.rotation+i)},s)},skewOfWorld(e,t,i,s,n,o){At.skewOfLocal(e,Nr(e,t),i,s,n,o)},skewOfLocal(e,t,i,s=0,n,o){ss(Ct,e.__localMatrix),$p(Ct,t,i,s),At.setTransform(e,Ct,n,o)},transformWorld(e,t,i,s,n){ss(Ct,e.worldTransform),ih(Ct,t),e.parent&&sh(Ct,e.parent.scrollWorldTransform),At.setTransform(e,Ct,
10i,s,n)},transform(e,t,i,s,n){ss(Ct,e.localTransform),ih(Ct,t),At.setTransform(e,Ct,i,s,n)},setTransform(e,t,i,s,n){const o=e.__,r=o.origin&&At.getInnerOrigin(e,o.origin),a=Jp(t,r,o.around&&At.getInnerOrigin(e,o.around));if(At.hasOffset(e)&&(a.x-=o.offsetX,a.y-=o.offsetY),i){const l=a.scaleX/e.scaleX,h=a.scaleY/e.scaleY;if(delete a.scaleX,delete a.scaleY,r){I.scale(e.boxBounds,Math.abs(l),Math.abs(h));const c=At.getInnerOrigin(e,o.origin);j.move(a,r.x-c.x,r.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 eh(i,At.getLocalOrigin(e,"center"),-1*s,1*s),i},getLocalOrigin:(e,t)=>j.tempToOuterOf(At.getInnerOrigin(e,t),e.localTransform),getInnerOrigin(e,t){const i={};return ye.toPoint(t,e.boxBounds,i),i},getRelativeWorld:(e,t,i)=>(ss(Ct,e.worldTransform),sh(Ct,t.scrollWorldTransform),i?Ct:Object.assign({},Ct)),updateScaleFixedWorld(e){},updateOuterBounds(e){},cacheId(e){},drop(e,t,i,s){e.setTransform(At.getRelativeWorld(e,t,!0),s),t.add(e,i)},hasHighPosition:e=>e.origin||e.around||At.hasOffset(e),hasOffset:e=>e.offsetX||e.offsetY,hasParent(e,t,i){if(!t)return!1;for(;e;){if(t===e)return!0;if(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,o=t.y*i;t.x-=n,t.y-=o,e.move(n,o),M.requestRender(()=>At.animateMove(e,t,i,s))}s&&s()}}};function cr(e){return e&&e.config.trackChanges}const At=ut,{updateAllMatrix:Qp,updateMatrix:tg,updateAllWorldOpacity:oh,updateAllChange:eg,updateChange:ig}=At;function Nr(e,t){return e.updateLayout(),e.parent?j.tempToInnerOf(t,e.parent.scrollWorldTransform):t}const Pn={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)=>Ur(e,t)&&e.__localBoxBounds,maskLocalStrokeBounds:(e,t)=>Ur(e,t)&&e.__layout.localStrokeBounds,maskLocalRenderBounds(e,t){const{__layout:i}=e;return Ur(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 Vs;function Ur(e,t){return t||(Vs=0),e.__.mask&&(Vs=1),Vs<0?null:(Vs&&(Vs=-1),!0)}const{updateBounds:rh}=ut,Ps={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],o=s[i];n&&o?(t.zIndex<n.zIndex||t.zIndex>o.zIndex)&&(t.zIndex=(n.zIndex+o.zIndex)/2):n?t.zIndex<n.zIndex&&(t.zIndex=n.zIndex+1):o&&t.zIndex>o.zIndex&&(t.zIndex=o.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),sg(e,t))}},pushAllParent(e,t){const{keys:i}=t;if(i)for(;e.parent&&W(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,o=s.length;n<o;n++)s[n].isBranch&&t.push(s[n]);for(let n=i,o=t.length;n<o;n++)ah(t[n],t)},updateBounds(e,t){const i=[e];ah(e,i),ng(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 o=0,r=s.length;o<r;o++)rh(s[o]);t&&t===i||rh(i)}},move(e,t,i){let s;const{children:n}=e;for(let o=0,r=n.length;o<r;o++)s=(e=n[o]).__world,s.e+=t,s.f+=i,s.x+=t,s.y+=i,e.isBranch&&og(e,t,i)},scale(e,t,i,s,n,o,r){let a;const{children:l}=e,h=s-1,c=n-1;for(let d=0,f=l.length;d<f;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-o)*h+t,a.y=a.f+=(a.f-r)*c+i):(a.e+=(a.e-o)*h+t,a.f+=(a.f-r)*c+i,a.x+=(a.x-o)*h+t,a.y+=(a.y-r)*c+i),a.width*=s,a.height*=n,a.scaleX*=s,a.scaleY*=n,e.isBranch&&rg(e,t,i,s,n,o,r)}},{pushAllChildBranch:sg,pushAllBranchStack:ah,updateBoundsByBranchStack:ng,move:og,scale:rg}=Ps,Ys={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:lh,updateBounds:ag}=ut,{toOuterOf:ao,getPoints:lg,copy:hg}=I,Vr="_localContentBounds",Yr="_worldContentBounds",Xr="_worldBoxBounds",qr="_worldStrokeBounds";class cg{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 ao(this.contentBounds,this.leaf.__localMatrix,this[Vr]||(this[Vr]={})),this[Vr]}get localStrokeBounds(){return this._localStrokeBounds||this}get localRenderBounds(){return this._localRenderBounds||this}get worldContentBounds(){return ao(this.contentBounds,this.leaf.__world,this[Yr]||(this[Yr]={})),this[Yr]}get worldBoxBounds(){return ao(this.boxBounds,this.leaf.__world,this[Xr]||(this[Xr]={})),this[Xr]}get worldStrokeBounds(){return ao(this.strokeBounds,this.leaf.__world,this[qr]||(this[qr]={})),this[qr]}
10get 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 ag(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;if(n.__fullLayouting)return;n.__fullLayouting=!0,M.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 X.defaultMatrix;case"page":t=i.zoomLayer;default:return lh(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 yt(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 o,r,a,l=this.getInnerBounds(t);switch(i){case"world":o=n.getWorldPoint(l),r=n.__world;break;case"local":const{scaleX:h,scaleY:c,rotation:d,skewX:f,skewY:u}=n.__;a={scaleX:h,scaleY:c,rotation:d,skewX:f,skewY:u},o=n.getLocalPointByInner(l);break;case"inner":o=l,r=X.defaultMatrix;break;case"page":i=n.zoomLayer;default:o=n.getWorldPoint(l,i),r=lh(n,i,!0)}if(a||(a=X.getLayout(r)),hg(a,l),j.copy(a,o),s){const{scaleX:h,scaleY:c}=a,d=Math.abs(h),f=Math.abs(c);d===1&&f===1||(a.scaleX/=d,a.scaleY/=f,a.width*=d,a.height*=f)}return a}getLayoutPoints(t,i="world"){const{leaf:s}=this,n=lg(this.getInnerBounds(t));let o;switch(i){case"world":o=null;break;case"local":o=s.parent;break;case"inner":break;
10case"page":i=s.zoomLayer;default:o=i}return W(o)||n.forEach(r=>s.innerToWorld(r,null,!1,o)),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 Te{constructor(t,i){this.bubbles=!1,this.type=t,i&&(this.target=i)}stopDefault(){this.isStopDefault=!0,this.origin&&M.event.stopDefault(this.origin)}stopNow(){this.isStopNow=!0,this.isStop=!0,this.origin&&M.event.stopNow(this.origin)}stop(){this.isStop=!0,this.origin&&M.event.stop(this.origin)}}class Pt extends Te{constructor(t,i,s){super(t,i),this.parent=s,this.child=i}}Pt.ADD="child.add",Pt.REMOVE="child.remove",Pt.CREATED="created",Pt.MOUNTED="mounted",Pt.UNMOUNTED="unmounted",Pt.DESTROY="destroy";const Za="property.scroll";class Ie extends Te{constructor(t,i,s,n,o){super(t,i),this.attrName=s,this.oldValue=n,this.newValue=o}}Ie.CHANGE="property.change",Ie.LEAFER_CHANGE="property.leafer_change",Ie.SCROLL=Za;const dg={scrollX:Za,scrollY:Za};class Je extends Te{constructor(t,i){super(t),Object.assign(this,i)}}Je.LOAD="image.load",Je.LOADED="image.loaded",Je.ERROR="image.error";class Ze extends Te{static checkHas(t,i,s){s==="on"?i===jo?t.__hasWorldEvent=!0:t.__hasLocalEvent=!0:(t.__hasLocalEvent=t.hasEvent($a)||t.hasEvent(Ja)||t.hasEvent(Qa),t.__hasWorldEvent=t.hasEvent(jo))}static emitLocal(t){if(t.leaferIsReady){const{resized:i}=t.__layout;i!=="local"&&(t.emit($a,t),i==="inner"&&t.emit(Ja,t)),t.emit(Qa,t)}}static emitWorld(t){t.leaferIsReady&&t.emit(jo,t)}}Ze.RESIZE="bounds.resize",Ze.INNER="bounds.inner",Ze.LOCAL="bounds.local",Ze.WORLD="bounds.world";const{RESIZE:$a,INNER:Ja,LOCAL:Qa,WORLD:jo}=Ze,t0={};[$a,Ja,Qa,jo].forEach(e=>t0[e]=1);class ei extends Te{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){N(t)?(super(ei.RESIZE),Object.assign(this,t)):super(t),this.old=i}static isResizing(t){return this.resizingKeys&&!W(this.resizingKeys[t.innerId])}}ei.RESIZE="resize";class vi extends Te{constructor(t,i){super(t),this.data=i}}vi.REQUEST="watch.request",vi.DATA="watch.data";class wt extends Te{constructor(t,i,s){super(t),i&&(this.data=i,this.times=s)}}wt.REQUEST="layout.request",wt.START="layout.start",wt.BEFORE="layout.before",wt.LAYOUT="layout",wt.AFTER="layout.after",wt.AGAIN="layout.again",wt.END="layout.end";class ht extends Te{constructor(t,i,s,n){super(t),i&&(this.times=i),s&&(this.renderBounds=s,this.renderOptions=n)}}ht.REQUEST="render.request",ht.CHILD_START="render.child_start",ht.CHILD_END="render.child_end",ht.START="render.start",ht.BEFORE="render.before",ht.RENDER="render",ht.AFTER="render.after",ht.AGAIN="render.again",ht.END="render.end",ht.NEXT="render.next";class st extends Te{}st.START="leafer.start",st.BEFORE_READY="leafer.before_ready",st.READY="leafer.ready",st.AFTER_READY="leafer.after_ready",st.VIEW_READY="leafer.view_ready",st.VIEW_COMPLETED="leafer.view_completed",st.STOP="leafer.stop",st.RESTART="leafer.restart",st.END="leafer.end",st.UPDATE_MODE="leafer.update_mode",st.TRANSFORM="leafer.transform",st.MOVE="leafer.move",st.SCALE="leafer.scale",st.ROTATE="leafer.rotate",st.SKEW="leafer.skew";const{MOVE:hh,SCALE:ch,ROTATE:ug,SKEW:dh}=st,pg={x:hh,y:hh,scaleX:ch,scaleY:ch,rotation:ug,skewX:dh,skewY:dh},uh={};class D1{set event(t){this.on(t)}on(t,i,s){if(!i){let c;if(Q(t))t.forEach(d=>this.on(d[0],d[1],d[2]));
10else for(let d in t)Q(c=t[d])?this.on(d,c[0],c[1]):this.on(d,c);return}let n,o,r;s&&(s==="once"?o=!0:typeof s=="boolean"?n=s:(n=s.capture,o=s.once));const a=Gr(this,n,!0),l=$(t)?t.split(" "):t,h=o?{listener:i,once:o}:{listener:i};l.forEach(c=>{c&&(r=a[c],r?r.findIndex(d=>d.listener===i)===-1&&r.push(h):a[c]=[h],t0[c]&&Ze.checkHas(this,c,"on"))})}off(t,i,s){if(t){const n=$(t)?t.split(" "):t;if(i){let o,r,a;s&&(o=typeof s=="boolean"?s:s!=="once"&&s.capture);const l=Gr(this,o);n.forEach(h=>{h&&(r=l[h],r&&(a=r.findIndex(c=>c.listener===i),a>-1&&r.splice(a,1),r.length||delete l[h],t0[h]&&Ze.checkHas(this,h,"off")))})}else{const{__bubbleMap:o,__captureMap:r}=this;n.forEach(a=>{o&&delete o[a],r&&delete r[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):Q(t)&&t.forEach(o=>this.on(o[0],o[2]?o[1]=o[1].bind(o[2]):o[1],o[3])),{type:t,current:this,listener:i,options:n}}off_(t){if(!t)return;const i=Q(t)?t:[t];i.forEach(s=>{s&&(s.listener?s.current.off(s.type,s.listener,s.options):Q(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 Q(t)&&t.forEach(o=>this.once(o[0],o[1],o[2],o[3]));N(s)?i=i.bind(s):n=s,this.on(t,i,{once:!0,capture:n})}emit(t,i,s){!i&&Cs.has(t)&&(i=Cs.get(t,{type:t,target:this,current:this}));const n=Gr(this,s)[t];if(n){let o;for(let r=0,a=n.length;r<a&&!((o=n[r])&&(o.listener(i),o.once&&(this.off(t,o.listener,s),r--,a--),i&&i.isStopNow));r++);}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,o=s&&s[t],r=n&&n[t];return!!(W(i)?o||r:i?r:o)}destroy(){this.__captureMap=this.__bubbleMap=this.syncEventer=null}}function Gr(e,t,i){if(t){const{__captureMap:s}=e;return s||(i?e.__captureMap={}:uh)}{const{__bubbleMap:s}=e;return s||(i?e.__bubbleMap={}:uh)}}const{on:gg,on_:fg,off:_g,off_:mg,once:yg,emit:vg,emitEvent:wg,hasEvent:xg,destroy:bg}=D1.prototype,D0={on:gg,on_:fg,off:_g,off_:mg,once:yg,emit:vg,emitEvent:wg,hasEvent:xg,destroyEventer:bg},kg=it.get("setAttr"),Sg={__setAttr(e,t,i){if(this.leaferIsCreated){const s=this.__.__getInput(e);if(!i||Ga(t)||W(t)||(kg.warn(this.innerName,e,t),t=void 0),N(t)||s!==t){if(this.__realSetAttr(e,t),this.isLeafer){this.emitEvent(new Ie(Ie.LEAFER_CHANGE,this,e,s,t));const o=pg[e];o&&(this.emitEvent(new st(o,this)),this.emitEvent(new st(st.TRANSFORM,this)))}this.emitPropertyEvent(Ie.CHANGE,e,s,t);const n=dg[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(cr(n)||n.zoomLayer===this){const o=new Ie(e,this,t,i,s);this.isLeafer||this.hasEvent(e)&&this.emitEvent(o),n.emitEvent(o)}else n.watcher.add(this)},__realSetAttr(e,t){const i=this.__;i[e]=t,this.__proxyData&&this.setProxyAttr(e,t),i.normalStyle&&(this.lockNormalStyle||W(i.normalStyle[e])||(i.normalStyle[e]=t))},__getAttr(e){return this.__proxyData?this.getProxyAttr(e):this.__.__get(e)}},{setLayout:Eg,multiplyParent:Cg,translateInner:ph,defaultWorld:Bg}=X,{toPoint:Tg,tempPoint:Kr}=ye,Og={__updateWorldMatrix(){const{parent:e,__layout:t,__world:i,__scrollWorld:s,__:n}=this;Cg(this.__local||t,e?e.__scrollWorld||e.__world:Bg,i,!!t.affectScaleOrRotation,n),s&&ph(Object.assign(s,i),n.scrollX,n.scrollY),t.scaleFixed},__updateLocalMatrix(){if(this.__local){const e=this.__layout,t=this.__local,i=this.__;e.affectScaleOrRotation&&(e.scaleChanged&&(e.resized||(e.resized="scale"))||e.rotationChanged)&&(Eg(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)&&(Tg(i.around||i.origin,e.boxBounds,Kr),ph(t,-Kr.x,-Kr.y,!i.around))}this.__layout.matrixChanged=void 0}},{updateMatrix:Lg,updateAllMatrix:gh}=ut,{updateBounds:fh}=Ps,{toOuterOf:lo,copyAndSpread:_h,copy:Pg}=I,{toBounds:Rg}=T1,Ag={__updateWorldBounds(){const{__layout:e,__world:t}=this;lo(e.renderBounds,t,t),this.__hasComplex,e.resized&&(e.resized==="inner"&&this.__onUpdateSize(),this.__hasLocalEvent&&Ze.emitLocal(this),e.resized=void 0),this.__hasWorldEvent&&Ze.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
10Spread&&!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,e.resized||(e.resized="local"),e.boundsChanged=void 0},__updateLocalBoxBounds(){this.__hasMotionPath&&this.__updateMotionPath(),this.__hasAutoLayout&&this.__updateAutoLayout(),lo(this.__layout.boxBounds,this.__local,this.__local)},__updateLocalStrokeBounds(){lo(this.__layout.strokeBounds,this.__localMatrix,this.__layout.localStrokeBounds)},__updateLocalRenderBounds(){lo(this.__layout.renderBounds,this.__localMatrix,this.__layout.localRenderBounds)},__updateBoxBounds(e,t){const i=this.__layout.boxBounds,s=this.__;s.__usePathBox?Rg(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(),gh(this),fh(this,this),this.__.__autoSide&&this.__updateBoxBounds(!0)):(gh(this),fh(this,this))):Lg(this)},__updateNaturalSize(){const{__:e,__layout:t}=this;e.__naturalWidth=t.boxBounds.width,e.__naturalHeight=t.boxBounds.height},__updateStrokeBounds(e){const t=this.__layout;_h(t.strokeBounds,t.boxBounds,t.strokeBoxSpread)},__updateRenderBounds(e){const t=this.__layout,{renderSpread:i}=t;tt(i)&&i<=0?Pg(t.renderBounds,t.strokeBounds):_h(t.renderBounds,t.boxBounds,i)}},Fg={__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);
10if(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),ut.copyCanvasByWorld(this,e,s,this.__nowWorld,i.__blendMode,!0),s.recycle(this.__nowWorld)}else this.__draw(e,t);it.showBounds&&it.drawBounds(this,e,t)}},__renderShape(e,t){this.__worldOpacity&&(e.setWorld(this.__nowWorld=this.__getNowWorld(t)),this.__drawShape(e,t))},__clip(e,t){ut.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:mh}=Pn,{hasSize:Dg}=I,Mg={__updateChange(){this.__layout.childrenSortChanged&&this.__updateSortChildren(),this.__.__checkSingle()},__render(e,t){const i=this.__nowWorld=this.__getNowWorld(t);if(this.__worldOpacity&&Dg(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,o=s.length;n<o;n++)i=s[n],mh(i,t)||(i.__hasComplex?ut.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++)mh(i[s],t)||i[s].__clip(e,t)}}},{LEAF:Ig,create:zg}=Qe,{stintSet:yh}=K,{toInnerPoint:Wg,toOuterPoint:Hg,multiplyParent:jg}=X,{toOuterOf:vh}=I,{copy:wh,move:xh}=j,{getScaleFixedData:Ng}=kt,{moveLocal:Ug,zoomOfLocal:Vg,rotateOfLocal:Yg,skewOfLocal:Xg,moveWorld:bh,zoomOfWorld:qg,rotateOfWorld:Gg,skewOfWorld:Kg,transform:kh,transformWorld:Zg,setTransform:$g,getFlipTransform:Jg,getLocalOrigin:Zr,getRelativeWorld:Qg,drop:tf}=ut;let Bs=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 g1}get __LayoutProcessor(){return cg}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=zg(Ig),this.reset(e),this.__bubbleMap&&this.__emitLifeEvent(Pt.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(Pt.ADD,e,"once")}waitLeafer(e,t){t&&(e=e.bind(t)),this.leafer?e():this.on(Pt.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(Pt.MOUNTED),e.cacheId):this.__emitLifeEvent(Pt.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]}
10toJSON(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"?(R1(this),t=!0):e==="stroke"&&(A0(this),t=!0):(ti(this),t=!0),t){const{leafer:s}=this;return s&&s.watcher&&s.watcher.__onAttrChange({target:this})}const i=this.__.__getInput(e);this.__[e]=W(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 jg(i,e.matrix,t,void 0,i),vh(this.__layout.renderBounds,t,t),yh(t,"half",i.half),yh(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 Ng(Ce.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?Qg(this,t):this.worldTransform,n=i?e:{};return vh(e,s,n),n}worldToLocal(e,t,i,s){this.parent?this.parent.worldToInner(e,t,i,s):t&&wh(t,e)}localToWorld(e,t,i,s){this.parent?this.parent.innerToWorld(e,t,i,s):t&&wh(t,e)}worldToInner(e,t,i,s){s&&(s.innerToWorld(e,t,i),e=t||e),Wg(this.worldTransform,e,t,i)}innerToWorld(e,t,i,s){Hg(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:o,y:r}=this.boxBounds;return xh(n,-o,-r),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:o,y:r}=this.boxBounds;return xh(n,o,r),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){$g(this,e,t,i,s)}transform(e,t,i,s){kh(this,e,t,i,s)}move(e,t,i){Ug(this,e,t,i)}moveInner(e,t,i){bh(this,e,t,!0,i)}scaleOf(e,t,i,s,n,o){Vg(this,Zr(this,e),t,i,s,n,o)}rotateOf(e,t,i){Yg(this,Zr(this,e),t,i)}skewOf(e,t,i,s,n){Xg(this,Zr(this,e),t,i,s,n)}transformWorld(e,t,i,s){Zg(this,e,t,i,s)}moveWorld(e,t,i){bh(this,e,t,!1,i)}scaleOfWorld(e,t,i,s,n,o){qg(this,e,t,i,s,n,o)}rotateOfWorld(e,t){Gg(this,e,t)}skewOfWorld(e,t,i,s,n){Kg(this,e,t,i,s,n)}flip(e,t){kh(this,Jg(this,e),!1,t)}remove(e,t){this.parent&&this.parent.remove(this,t)}dropTo(e,t,i){tf(this,e,t,i)}static changeAttr(e,t,i){i?this.addAttr(e,t,i):A1(this.prototype,e,t)}static addAttr(e,t,i,s){i||(i=et),i(t,s)(this.prototype,e)}__emitLifeEvent(e){this.hasEvent(e)&&this.emitEvent(new Pt(e,this,this.parent))}destroy(){this.destroyed||(this.parent&&this.remove(),this.children&&this.clear(),this.__emitLifeEvent(Pt.DESTROY),this.__.destroy(),this.__layout.destroy(),this.destroyEventer(),this.destroyed=!0)}};Bs=w([ae(Sg),ae(Og),ae(Ag),ae(D0),ae(Fg)],Bs);const{setListWithFn:$r}=I,{sort:ef}=Ps,{localBoxBounds:sf,localStrokeBounds:nf,localRenderBounds:of,maskLocalBoxBounds:rf,maskLocalStrokeBounds:af,maskLocalRenderBounds:lf}=Pn,hf=new it("Branch");let e0=class extends Bs{__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;
10i++)if(e=t[i].__layout,e.renderSpread||e.localOuterBounds)return 1;return 0}__updateBoxBounds(e,t){$r(t||this.__layout.boxBounds,this.children,this.__hasMask?rf:sf)}__updateStrokeBounds(e){$r(e||this.__layout.strokeBounds,this.children,this.__hasMask?af:nf)}__updateRenderBounds(e){$r(e||this.__layout.renderBounds,this.children,this.__hasMask?lf:of)}__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(ef),this.__layout.affectChildrenSort=e}this.__layout.childrenSortChanged=!1}add(e,t){if(e===this||e.destroyed)return hf.warn("add self or destroyed");const i=W(t);if(!e.__){if(Q(e))return e.forEach(n=>{this.add(n,t),i||t++});if(!(e=On.get(e.tag,e)))return}e.parent&&e.parent.remove(e),e.parent=this,i?this.children.push(e):(Ps.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(Pt.ADD),this.frame&&e.__bindFrame(this.frame),this.leafer&&(e.__bindLeafer(this.leafer),this.leafer.created&&this.__emitChildEvent(Pt.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)):W(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(Pt.REMOVE),e.parent=null,this.leafer&&(e.__bindLeafer(null),this.leafer.created&&(this.__emitChildEvent(Pt.REMOVE,e),this.leafer.hitCanvasManager&&this.leafer.hitCanvasManager.clear())),e.frame&&!e.isFrame&&e.__bindFrame(null)}__emitChildEvent(e,t){const{leafer:i}=this;if(cr(i)||i.zoomLayer===this){const s=new Pt(e,t,this);this.hasEvent(e)&&!this.isLeafer&&this.emitEvent(s),i.emitEvent(s)}else i.watcher.addChild(t,this,e)}};e0=w([ae(Mg)],e0);class dt{get length(){return this.list.length}constructor(t){this.reset(),t&&(Q(t)?this.addList(t):this.add(t))}has(t){return t&&!W(this.keys[t.innerId])}indexAt(t){return this.list[t]}indexOf(t){const i=this.keys[t.innerId];return W(i)?-1:i}add(t){const{list:i,keys:s}=this;W(s[t.innerId])&&(i.push(t),s[t.innerId]=i.length-1)}addAt(t,i=0){const{keys:s}=this;if(W(s[t.innerId])){const{list:n}=this;for(let o=i,r=n.length;o<r;o++)s[n[o].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,o=i.length;n<o;n++)W(s)?i[n].innerId===t.innerId&&(s=n,delete this.keys[t.innerId]):this.keys[i[n].innerId]=n-1;W(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 dt;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 cf{get length(){return this._length}constructor(t){this._length=0,this.reset(),t&&(Q(t)?this.addList(t):this.add(t))}has(t){return!W(this.keys[t.innerId])}without(t){return W(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;
10this.levels.forEach(s=>{i=this.levelMap[s];for(let n=0,o=i.length;n<o;n++)t(i[n])})}reset(){this.levelMap={},this.keys={},this.levels=[],this._length=0}destroy(){this.levelMap=null}}const Sh=it.get("LeaferCanvas");class M1 extends w1{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")}M.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=$(t)?document.getElementById(t):t;if(i)if(i instanceof HTMLCanvasElement)this.view=i;else{let s=i;if(i===window||i===document){const o=document.createElement("div"),{style:r}=o;r.position="absolute",r.top=r.bottom=r.left=r.right="0px",document.body.appendChild(o),s=o}this.__createView();const n=this.view;s.hasChildNodes()&&(this.setAbsolute(n),s.style.position||(s.style.position="relative")),s.appendChild(n)}else Sh.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 o of n)this.checkAutoBounds(o.contentRect)});const s=this.parentView;s?(this.resizeObserver.observe(s),this.checkAutoBounds(s.getBoundingClientRect())):(this.checkAutoBounds(this.view),Sh.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()),M.requestRender(this.imitateResizeObserver.bind(this)))}listenPixelRatio(){this.windowListener||window.addEventListener("resize",this.windowListener=()=>{const t=M.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:o,height:r}=this.autoBounds.getBoundsFrom(t),a={width:o,height:r,pixelRatio:this.config.pixelRatio?this.pixelRatio:M.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={};K.copyAttrs(i,this,Se),this.resize(t),this.resizeListener&&!W(this.width)&&this.resizeListener(new ei(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())}}ql(CanvasRenderingContext2D.prototype),ql(Path2D.prototype),Object.assign(Ot,{canvas:(e,t)=>new M1(e,t),image:e=>new P1(e)}),M.name="web",M.isMobile="ontouchstart"in window,M.requestRender=function(e){window.requestAnimationFrame(e)},ve(M,"devicePixelRatio",{get:()=>devicePixelRatio});const{userAgent:ho}=navigator;ho.indexOf("Firefox")>-1?(M.intWheelDeltaY=!0,M.syncDomFont=!0):(/iPhone|iPad|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent))&&(M.fullImageShadow=!0),ho.indexOf("Windows")>-1?(M.os="Windows",M.intWheelDeltaY=!0):ho.indexOf("Mac")>-1?M.os="Mac":ho.indexOf("Linux")>-1&&(M.os="Linux");class df{get childrenChanged(){return this.hasAdd||this.hasRemove||this.hasVisible}get updatedList(){if(this.hasRemove&&this.config.usePartLayout){const t=new dt;return this.__updatedList.list.forEach(i=>
10{i.leafer&&t.add(i)}),t}return this.__updatedList}constructor(t,i){this.totalTimes=0,this.changed=0,this.config={},this.__updatedList=new dt,this.target=t,i&&(this.config=K.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(ht.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===Pt.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 vi(vi.DATA,{updatedList:this.updatedList})),this.__updatedList=new dt,this.totalTimes++,this.hasVisible=this.hasRemove=this.hasAdd=!1,this.changed=0}__listenEvents(){this.__eventIds=[this.target.on_([[Ie.CHANGE,this.__onAttrChange,this],[[Pt.ADD,Pt.REMOVE],this.__onChildEvent,this],[vi.REQUEST,this.__onRquestData,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.target=this.__updatedList=null)}}const{updateAllMatrix:uf,updateBounds:Eh,updateChange:pf}=ut,{pushAllChildBranch:gf,pushAllParent:ff}=Ps,co={updateMatrix(e,t){let i,s,n=0;const{list:o}=e;for(;n<o.length;)i=o[n],s=i.__layout,t.without(i)&&!s.proxyZoom&&(s.matrixChanged?(uf(i,!0),i.isBranch&&gf(i,t),Jr(i,t)):s.boundsChanged&&(i.isBranch&&(i.__tempNumber=0),Jr(i,t))),n++},updateBounds(e){let t,i,s,n,o=0;const{levels:r,levelMap:a}=e;for(e.sort(!0);o<r.length;){t=r[o],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||Eh(n[c])}Eh(s)}o++}},updateChange(e){e.list.forEach(pf)},push:Jr};function Jr(e,t){t.add(e),ff(e,t)}const{worldBounds:Ch}=Pn;class Bh{constructor(t){this.updatedBounds=new yt,this.beforeBounds=new yt,this.afterBounds=new yt,Q(t)&&(t=new dt(t)),this.updatedList=t}setBefore(){this.beforeBounds.setListWithFn(this.updatedList.list,Ch)}setAfter(){this.afterBounds.setListWithFn(this.updatedList.list,Ch),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:_f,updateAllChange:mf}=ut,Qr=it.get("Layouter");class Jo{constructor(t,i){this.totalTimes=0,this.config={usePartLayout:!0},this.__levelList=new cf,this.target=t,i&&(this.config=K.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(wt.START),this.layoutOnce(),t.emitEvent(new wt(wt.END,this.layoutedBlocks,this.times))}catch(i){Qr.error(i)}this.layoutedBlocks=null}layoutAgain(){this.layouting?this.waitAgain=!0:this.layoutOnce()}layoutOnce(){return this.layouting?Qr.warn("layouting"):this.times>3?Qr.warn("layout max times"):(this.times++,this.totalTimes++,this.layouting=!0,this.target.emit(vi.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=Ee.start("PartLayout"),{target:s,__updatedList:n}=this,{BEFORE:o,LAYOUT:r,AFTER:a}=wt,l=this.getBlocks(n);l.forEach(h=>h.setBefore()),s.emitEvent(new wt(o,l,this.times)),this.extraBlock=null,n.sort(),co.updateMatrix(n,this.__levelList),
10co.updateBounds(this.__levelList),co.updateChange(n),this.extraBlock&&l.push(this.extraBlock),l.forEach(h=>h.setAfter()),s.emitEvent(new wt(r,l,this.times)),s.emitEvent(new wt(a,l,this.times)),this.addBlocks(l),this.__levelList.reset(),this.__updatedList=null,Ee.end(i)}fullLayout(){const t=Ee.start("FullLayout"),{target:i}=this,{BEFORE:s,LAYOUT:n,AFTER:o}=wt,r=this.getBlocks(new dt(i));i.emitEvent(new wt(s,r,this.times)),Jo.fullLayout(i),r.forEach(a=>{a.setAfter()}),i.emitEvent(new wt(n,r,this.times)),i.emitEvent(new wt(o,r,this.times)),this.addBlocks(r),Ee.end(t)}static fullLayout(t){_f(t,!0),t.isBranch?Ps.updateBounds(t):ut.updateBounds(t),mf(t)}addExtra(t,i){if(!this.__updatedList.has(t)){const{updatedList:s,beforeBounds:n}=this.extraBlock||(this.extraBlock=new Bh([]));if(s.length?n.add(t.__world):n.set(t.__world),s.add(t),i){const o=this.__levelList;co.push(t,o),o.sort(!0)}}}createBlock(t){return new Bh(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_([[wt.REQUEST,this.layout,this],[wt.AGAIN,this.layoutAgain,this],[vi.DATA,this.__onReceiveWatchData,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.target=this.config=null)}}const ns=it.get("Renderer");class dr{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=K.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(wt.REQUEST)}checkRender(){if(this.running){const{target:t}=this;t.isApp&&(t.emit(ht.CHILD_START,t),t.children.forEach(i=>{i.renderer.FPS=this.FPS,i.renderer.checkRender()}),t.emit(ht.CHILD_END,t)),this.changed&&this.canvas.view&&this.render(),this.target.emit(ht.NEXT)}}render(t){if(!this.running||!this.canvas.view)return this.update();const{target:i}=this;this.times=0,this.totalBounds=new yt,ns.log(i.innerName,"--->");try{this.emitRender(ht.START),this.renderOnce(t),this.emitRender(ht.END,this.totalBounds),Ce.clearRecycled()}catch(s){this.rendering=!1,ns.error(s)}ns.log("-------------|")}renderAgain(){this.rendering?this.waitAgain=!0:this.renderOnce()}renderOnce(t){if(this.rendering)return ns.warn("rendering");if(this.times>3)return ns.warn("render max times");if(this.times++,this.totalTimes++,this.rendering=!0,this.changed=!1,this.renderBounds=new yt,this.renderOptions={},t)this.emitRender(ht.BEFORE),t();else{if(this.requestLayout(),this.ignore)return void(this.ignore=this.rendering=!1);this.emitRender(ht.BEFORE),this.config.usePartRender&&this.totalTimes>1?this.partRender():this.fullRender()}this.emitRender(ht.RENDER,this.renderBounds,this.renderOptions),this.emitRender(ht.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=Ee.start("PartRender"),{canvas:s}=this,n=t.getIntersect(s.bounds),o=new yt(n);s.save(),n.spread(dr.clipSpread).ceil();const{ceilPartPixel:r}=this.config;s.clipWorld(n,r),s.clearWorld(n,r),this.__render(n,o),s.restore(),Ee.end(i)}fullRender(){const t=Ee.start("FullRender"),{canvas:i}=this;i.save(),i.clear(),this.__render(i.bounds),i.restore(),Ee.end(t)}__render(t,i){const{canvas:s,target:n}=this,o=t.includes(n.__world),r=o?{includes:o}:{bounds:t,includes:o};this.needFill&&s.fillWorld(t,this.config.fill),it.showRepaint&&it.drawRepaint(s,t),this.config.useCellRender&&(r.cellList=this.getCellList()),M.render(n,s,r),this.renderBounds=i=i||t,this.renderOptions=r,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 yt;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=()=>
10{const s=1e3/((this.frameTime=Date.now())-this.requestTime),{maxFPS:n}=this.config;if(n&&s>n)return M.requestRender(i);const{frames:o}=this;o.length>30&&o.shift(),o.push(s),this.FPS=Math.round(o.reduce((r,a)=>r+a,0)/o.length),this.requestTime=0,this.checkRender()};M.requestRender(i)}__onResize(t){if(!this.canvas.unreal){if(t.bigger||!t.samePixelRatio){const{width:i,height:s}=t.old;if(!new yt(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 yt(0,0,1,1)),this.update()}}__onLayoutEnd(t){t.data&&t.data.map(i=>{let s;const{updatedList:n}=i;n&&n.list.some(o=>(s=!o.__world.width||!o.__world.height,s&&(o.isLeafer||ns.tip(o.innerName,": empty"),s=!o.isBranch||o.isBranchLeaf),s)),this.addBlock(s?this.canvas.bounds:i.updatedBounds,n)})}emitRender(t,i,s){this.target.emitEvent(new ht(t,this.times,i,s))}__listenEvents(){this.__eventIds=[this.target.on_([[ht.REQUEST,this.update,this],[wt.END,this.__onLayoutEnd,this],[ht.AGAIN,this.renderAgain,this],[ei.RESIZE,this.__onResize,this]])]}__removeListenEvents(){this.target.off_(this.__eventIds)}destroy(){this.target&&(this.stop(),this.__removeListenEvents(),this.config={},this.target=this.canvas=null)}}dr.clipSpread=10;const yf={},{copyRadiusPoint:vf}=j,{hitRadiusPoint:wf}=I;class xf{constructor(t,i){this.target=t,this.selector=i}getByPoint(t,i,s){i||(i=0),s||(s={});const n=s.through||!1,o=s.ignoreHittable||!1,r=s.target||this.target;this.exclude=s.exclude||null,this.point={x:t.x,y:t.y,radiusX:i,radiusY:i},this.findList=new dt(s.findList),s.findList||this.hitBranch(r.isBranchLeaf?{children:[r]}:r);const{list:a}=this.findList,l=this.getBestMatchLeaf(a,s.bottomList,o,!!s.findList),h=o?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 o=this.findList=new dt;if(t.length){let r;const{x:a,y:l}=this.point,h={x:a,y:l,radiusX:0,radiusY:0};for(let c=0,d=t.length;c<d;c++)if(r=t[c],(s||ut.worldHittable(r))&&(this.hitChild(r,r.hitThrough?this.point:h,r.mask&&r.parent&&r.parent.__onlyHitMask),o.length)){if(r.isBranchLeaf&&t.some(f=>f!==r&&ut.hasParent(f,r))){o.reset();break}return o.list[0]}}if(i){for(let r=0,a=i.length;r<a;r++)if(this.hitChild(i[r].target,this.point,void 0,i[r].proxy),o.length)return o.list[0]}return n?null:s?t[0]:t.find(r=>ut.worldHittable(r))}getPath(t){const i=new dt,s=[],{target:n}=this;for(;t&&(t.syncEventer&&s.push(t.syncEventer),i.add(t),(t=t.parent)!==n););return s.length&&s.forEach(o=>{for(;o&&(o.__.hittable&&i.add(o),(o=o.parent)!==n););}),n&&i.add(n),i}getHitablePath(t){const i=this.getPath(t&&t.hittable?t:null);let s,n=new dt;for(let o=i.list.length-1;o>-1&&(s=i.list[o],s.__.hittable)&&(n.addAt(s,0),s.__.hitChildren&&(!s.isLeafer||s.mode!=="draw"));o--);return n}getThroughPath(t){const i=new dt,s=[];for(let a=t.length-1;a>-1;a--)s.push(this.getPath(t[a]));let n,o,r;for(let a=0,l=s.length;a<l;a++){n=s[a],o=s[a+1];for(let h=0,c=n.length;h<c&&(r=n.list[h],!o||!o.has(r));h++)i.add(r)}return i}hitBranch(t){this.eachFind(t.children,t.__onlyHitMask)}eachFind(t,i){let s,n,o;const{point:r}=this;for(let a=t.length-1;a>-1;a--)if(s=t[a],o=s.__,o.visible&&(!i||o.mask))if(n=wf(s.__world,o.hitRadius?vf(yf,r,o.hitRadius):r),s.isBranch){if(n||s.__ignoreHitWorld){if(s.isBranchLeaf&&o.__clipAfterFill&&!s.__hitWorld(r,!0))continue;s.topChildren&&this.eachFind(s.topChildren,!1),this.eachFind(s.children,s.__onlyHitMask),s.isBranchLeaf&&this.hitChild(s,r,i)}}else n&&this.hitChild(s,r,i)}hitChild(t,i,s,n){if((!this.exclude||!this.exclude.has(t))&&t.__hitWorld(i,!(!s||t.mask!=="path")||void 0)){const{parent:o,mask:r}=t;if(o&&o.__hasMask&&r&&r!=="clipping"&&r!=="clipping-path"&&!o.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"?ut.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 o=s.length-n;for(let r=0;r<o;r++)s.remove(s.indexAt(s.length-1));return!!o}return t.__hitWorld(i)}clear(){this.point=null,this.findList=null,this.exclude=null}destroy(){this.clear()}}class bf{constructor(t,i){this.config={},i&&(this.config=K.default(i,this.config)),this.picker=new xf(this.target=t,this),this.finder=Ot.finder&&Ot.finder(t,this.config)}getByPoint(t,i,s){const{target:n,picker:o}=this;return M.backgrounder&&n&&n.updateLayout(),o.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):Dt.need("find")}destroy(){this.picker.destroy(),this.finder&&this.finder.destroy()}}function os(e){return mt(e,t=>({set(i){this.__setAttr(t,i),i&&(this.__.__useEffect=!0);const s=this.__layout;s.renderChanged||s.renderChange(),s.surfaceChange()}}))}function Xs(e){return mt(e,t=>
10({set(i){this.__setAttr(t,i),this.__layout.boxChanged||this.__layout.boxChange(),this.__updateSize()}}))}Object.assign(Ot,{watcher:(e,t)=>new df(e,t),layouter:(e,t)=>new Jo(e,t),renderer:(e,t,i)=>new dr(e,t,i),selector:(e,t)=>new bf(e,t)}),M.layout=Jo.fullLayout,M.render=function(e,t,i){const s=Object.assign(Object.assign({},i),{topRendering:!0});i.topList=new dt,e.__render(t,i),i.topList.length&&i.topList.forEach(n=>{const{parent:o}=n;o&&o.isBranchLeaf&&o.overflow!=="show"?(t.save(),ut.clip(o,t,s),n.__render(t,s),t.restore()):n.__render(t,s)})};const I1={},gt={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}},No=_1,Qo={},Z={},_t={},Uo={},wi={},z1={apply(){Dt.need("filter")}},kf={},rt={setStyleName:()=>Dt.need("state"),set:()=>Dt.need("state")},Gi={list:{},register(e,t){Gi.list[e]=t},get:e=>Gi.list[e]},{parse:Sf,objectToCanvasData:Ef}=xi,{stintSet:rs}=K,{hasTransparent:Th}=gt,Oh={originPaint:{}},Lh=it.get("UIData");class si extends g1{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,Lh.warn("width < 0, instead -scaleX ",this)):this._width=t}setHeight(t){t<0?(this._height=-t,this.__leaf.scaleY*=-1,Lh.warn("height < 0, instead -scaleY",this)):this._height=t}setFill(t){this.__naturalWidth&&this.__removeNaturalSize(),$(t)||!t?(rs(this,"__isTransparentFill",Th(t)),this.__isFills&&this.__removePaint("fill",!0),this._fill=t):N(t)&&this.__setPaint("fill",t)}setStroke(t){$(t)||!t?(rs(this,"__isTransparentStroke",Th(t)),this.__isStrokes&&this.__removePaint("stroke",!0),this._stroke=t):N(t)&&this.__setPaint("stroke",t)}setPath(t){const i=$(t);i||t&&N(t[0])?(this.__setInput("path",t),this._path=i?Sf(t,this.__useArrow):Ef(t)):(this.__input&&this.__removeInput("path"),this._path=t)}setShadow(t){ta(this,"shadow",t)}setInnerShadow(t){ta(this,"innerShadow",t)}setFilter(t){ta(this,"filter",t)}__computePaint(){const{fill:t,stroke:i}=this.__input;t&&Z.compute("fill",this.__leaf),i&&Z.compute("stroke",this.__leaf),this.__needComputePaint=void 0}__getRealStrokeWidth(t){let{strokeWidth:i,strokeScaleFixed:s}=this;if(t&&(t.strokeWidth&&(i=t.strokeWidth),W(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;rs(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(),Q(i)&&!i.length?this.__removePaint(t):t==="fill"?(this.__isFills=!0,this._fill||(this._fill=Oh)):(this.__isStrokes=!0,this._stroke||(this._stroke=Oh))}__removePaint(t,i){i&&this.__removeInput(t),_t.recycleImage(t,this),t==="fill"?(rs(this,"__isAlphaPixelFill",void 0),this._fill=this.__isFills=void 0):(rs(this,"__isAlphaPixelStroke",void 0),rs(this,"__hasMultiStrokeStyle",void 0),this._stroke=this.__isStrokes=void 0)}}function ta(e,t,i){e.__setInput(t,i),Q(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 ur extends si{}class W1 extends ur{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 H1 extends si{get __usePathBox(){return this.points||this.__pathInputed}}class M0 extends si{get __boxStroke(){return!this.__pathInputed}}const Cf={thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900},{max:qs,add:ea}=Tn,Bf={__updateStrokeSpread(){let e=0,t=0;const i=this.__,{strokeAlign:s,__maxStrokeWidth:n}=i,o=this.__box;if((i.stroke||i.hitStroke==="all")&&n&&s!=="inside"&&(t=e=s==="center"?n/2:n,!i.__boxStroke||i.__useArrow)){const r=i.__isLinePath?0:(i.strokeJoin==="miter"?10:1)*e,a=i.strokeCap==="none"?0:n;e+=Math.max(r,a)}return i.__useArrow&&(e+=5*n),o&&(e=qs(e,o.__layout.strokeSpread=o.__updateStrokeSpread()),t=Math.max(t,o.__layout.strokeBoxSpread)),this.__layout.strokeBoxSpread=t,e},__updateRenderSpread(){let e=0;const{shadow:t,innerShadow:i,blur:s,backgroundBlur:n,filter:o,renderSpread:r}=this.__,{strokeSpread:a}=this.__layout,l=this.__box;t&&(e=wi.getShadowRenderSpread(this,t)),s&&(e=qs(e,s)),o&&(e=ea(e,z1.getSpread(o))),r&&(e=ea(e,r)),a&&(e=ea(e,a));let h=e;return i&&(h=qs(h,wi.getInnerShadowSpread(this,i))),n&&(h=qs(h,n)),this.__layout.renderShapeSpread=h,l?qs(l.__updateRenderSpread(),e):e}},{stintSet:ia}=K,Tf={__updateChange(){const e=this.__;if(e.__useStroke){const t=e.__useStroke=!(!e.stroke||!e.strokeWidth);ia(this.__world,"half",t&&e.strokeAlign==="center"&&e.strokeWidth%2),ia(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;ia(e,"__isFastShadow",t&&!n&&t.length<2&&!t[0].spread&&!wi.isTransformShadow(t[0])&&!(t[0].blendMode&&t[0].blendMode!=="pass-through")&&i&&!e.__isTransparentFill&&!(Q(i)&&i.length>1)&&(this.useFastShadow||!s||s&&e.strokeAlign==="inside")),e.__useEffect=!(!t&&!n)}e.__checkSingle(),e.__checkComplex()},__drawFast(e,t){Ph(this,e,t)},__draw(e,t,i){const s=this.__;if(s.__complex){s.__needComputePaint&&s.__computePaint();const{fill:n,stroke:o,__drawAfterFill:r,__fillAfterStroke:a,__isFastShadow:l}=s;if(this.__drawRenderPath(e),s.__useEffect&&!l){const h=Z.shape(this,e,t);this.__nowWorld=this.__getNowWorld(t);const{shadow:c,innerShadow:d,filter:f}=s;c&&wi.shadow(this,e,h),a&&(s.__isStrokes?Z.strokes(o,this,e,t):Z.stroke(o,this,e,t)),n&&(s.__isFills?Z.fills(n,this,e,t):Z.fill(n,this,e,t)),r&&this.__drawAfterFill(e,t),d&&wi.innerShadow(this,e,h),o&&!a&&(s.__isStrokes?Z.strokes(o,this,e,t):Z.stroke(o,this,e,t)),f&&z1.apply(f,this,this.__nowWorld,e,i,h),h.worldCanvas&&h.worldCanvas.recycle(),h.canvas.recycle()}else{if(a&&(s.__isStrokes?Z.strokes(o,this,e,t):Z.stroke(o,this,e,t)),l){const h=s.shadow[0],{scaleX:c,scaleY:d}=this.getRenderScaleData(!0,h.scaleFixed);
10e.save(),e.setWorldShadow(h.x*c,h.y*d,h.blur*c,gt.string(h.color))}n&&(s.__isFills?Z.fills(n,this,e,t):Z.fill(n,this,e,t)),l&&e.restore(),r&&this.__drawAfterFill(e,t),o&&!a&&(s.__isStrokes?Z.strokes(o,this,e,t):Z.stroke(o,this,e,t))}}else s.__pathForRender?Ph(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?Z.fills(s,this,e,t):Z.fill("#000000",this,e,t)),i.__isCanvas&&this.__drawAfterFill(e,t),n&&!t.ignoreStroke&&(i.__isAlphaPixelStroke?Z.strokes(n,this,e,t):Z.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 Ph(e,t,i){const{fill:s,stroke:n,__drawAfterFill:o,__fillAfterStroke:r}=e.__;e.__drawRenderPath(t),r&&Z.stroke(n,e,t,i),s&&Z.fill(s,e,t,i),o&&e.__drawAfterFill(t,i),n&&!r&&Z.stroke(n,e,t,i)}const Of={__drawFast(e,t){let{x:i,y:s,width:n,height:o}=this.__layout.boxBounds;const{fill:r,stroke:a,__drawAfterFill:l}=this.__;if(r&&(e.fillStyle=r,e.fillRect(i,s,n,o)),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,o);break;case"inside":n-=c,o-=c,n<0||o<0?(e.save(),this.__clip(e,t),e.strokeRect(i+d,s+d,n,o),e.restore()):e.strokeRect(i+d,s+d,n,o);break;case"outside":e.strokeRect(i-d,s-d,n+c,o+c)}}}};var i0;let T=i0=class extends Bs{get app(){return this.leafer&&this.leafer.app}set strokeWidthFixed(e){this.strokeScaleFixed=e}get strokeWidthFixed(){return this.strokeScaleFixed}set scale(e){kt.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 Ns.set(this.path=e||[]),e||this.__drawPathByBox(Ns),Ns}set(e,t){e&&Object.assign(this,e)}get(e){return $(e)?this.__.__getInput(e):this.__.__getInputData(e)}find(e,t){return Dt.need("find")}findTag(e){return this.find({tag:e})}findOne(e,t){return Dt.need("find")}findId(e){return this.findOne({id:e})}getPath(e,t){this.__layout.update();let i=t?this.__.__pathForRender:this.__.path;return i||(Ns.set(i=[]),this.__drawPathByBox(Ns,"box",!t)),e?xi.toCanvasData(i,!0):i}getPathString(e,t,i){return xi.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||kf.running?e.__computePaint():e.__needComputePaint=!0}}__updatePath(){}__updateRenderPath(e){const t=this.__;t.path?(t.__pathForRender=t.cornerRadius||t.path.radius?O1.smooth(t.path,t.cornerRadius,t.cornerSmoothing):t.path,t.__useArrow&&Qo.addArrows(this,e)):t.__pathForRender&&(t.__pathForRender=void 0)}__drawRenderPath(e){const t=this.__;e.beginPath(),t.__useArrow&&Qo.updateArrow(this),this.__drawPathByData(e,t.__pathForRender)}__drawPath(e){const t=this.__;e.beginPath(),t.__usePointsMode?jl.drawPathByPoints(e,t.points,t.closed):this.__drawPathByData(e,t.path,!0)}__drawPathByData(e,t,i){t?jl.drawPathByData(e,t):this.__drawPathByBox(e,"box",i)}__drawPathByBox(e,t="box",i){const{x:s,y:n,width:o,height:r}=this.__layout[t+"Bounds"];if(this.__.cornerRadius&&!i){const{cornerRadius:a}=this.__;e.roundRect(s,n,o,r,tt(a)?[a]:a)}else e.rect(s,n,o,r);e.closePath()}drawImagePlaceholder(e,t,i){Z.fill(this.__.placeholderColor,this,t,i)}animate(e,t,i,s){return this.set(e),Dt.need("animate")}killAnimate(e,t){}export(e,t){return Dt.need("export")}syncExport(e,t){return Dt.need("export")}clone(e){const t=K.clone(this.toJSON());return e&&Object.assign(t,e),i0.one(t)}static one(e,t,i,s,n){return On.get(e.tag||this.prototype.__tag,e,t,i,s,n)}static registerUI(){Xt()(this)}static registerData(e){Yt(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()}};var Rh;w([Yt(si)],T.prototype,"__",void 0),w([(e,t)=>{const i="_"+t;ve(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}})}],T.prototype,"zoomLayer",void 0),w([xt("")],T.prototype,"id",void 0),w([xt("")],T.prototype,"name",void 0),w([xt("")],T.prototype,"className",void 0),w([Ke("pass-through")],T.prototype,"blendMode",void 0),w([(Rh=1,mt(Rh,e=>({set(t){this.__setAttr(e,t)&&(this.__layout.opacityChanged||this.__layout.opacityChange()),this.mask&&Ql(this)}})))],T.prototype,"opacity",void 0),w([function(e){return mt(e,t=>({set(i){const s=this.visible;if(s===!0&&i===0){if(this.animationOut)return this.__runAnimation("out",()=>th(this,t,i,s))}else s===0&&i===!0&&this.animation&&this.__runAnimation("in");th(this,t,i,s),this.mask&&Ql(this)}}))}(!0)],T.prototype,"visible",void 0),w([Ke(!1)],T.prototype,"locked",void 0),w([Jl(!1)],T.prototype,"dim",void 0),w([Jl(!1)],T.prototype,"dimskip",void 0),w([function(e){return mt(e,t=>({set(i){this.__setAttr(t,i)&&this.waitParentChange(Up)}}))}(0)],T.prototype,"zIndex",void 0),w([function(e){return mt(e,t=>
10({set(i){this.__setAttr(t,i)&&(this.__layout.boxChanged||this.__layout.boxChange(),this.waitParentChange(Vp))}}))}(!1)],T.prototype,"mask",void 0),w([function(e){return mt(e,t=>({set(i){this.__setAttr(t,i)&&this.waitParentChange(Yp)}}))}(!1)],T.prototype,"eraser",void 0),w([ro(0,!0)],T.prototype,"x",void 0),w([ro(0,!0)],T.prototype,"y",void 0),w([et(100,!0)],T.prototype,"width",void 0),w([et(100,!0)],T.prototype,"height",void 0),w([$l(1,!0)],T.prototype,"scaleX",void 0),w([$l(1,!0)],T.prototype,"scaleY",void 0),w([jr(0,!0)],T.prototype,"rotation",void 0),w([jr(0,!0)],T.prototype,"skewX",void 0),w([jr(0,!0)],T.prototype,"skewY",void 0),w([ro(0,!0)],T.prototype,"offsetX",void 0),w([ro(0,!0)],T.prototype,"offsetY",void 0),w([Kl(0,!0)],T.prototype,"scrollX",void 0),w([Kl(0,!0)],T.prototype,"scrollY",void 0),w([Zl()],T.prototype,"origin",void 0),w([Zl()],T.prototype,"around",void 0),w([xt(!1)],T.prototype,"lazy",void 0),w([function(e){return mt(e,t=>({set(i){this.__setAttr(t,i)&&(ti(this),this.__.__removeNaturalSize())}}))}(1)],T.prototype,"pixelRatio",void 0),w([F0(0)],T.prototype,"renderSpread",void 0),w([function(e){return mt(e,t=>({set(i){const s=this.__;s.__pathInputed!==2&&(s.__pathInputed=i?1:0),i||(s.__pathForRender=void 0),this.__setAttr(t,i),ti(this)}}))}()],T.prototype,"path",void 0),w([Vt()],T.prototype,"windingRule",void 0),w([Vt(!0)],T.prototype,"closed",void 0),w([et(0)],T.prototype,"padding",void 0),w([et(!1)],T.prototype,"lockRatio",void 0),w([et()],T.prototype,"widthRange",void 0),w([et()],T.prototype,"heightRange",void 0),w([xt(!1)],T.prototype,"draggable",void 0),w([xt()],T.prototype,"dragBounds",void 0),w([xt("auto")],T.prototype,"dragBoundsType",void 0),w([xt(!1)],T.prototype,"editable",void 0),w([ui(!0)],T.prototype,"hittable",void 0),w([ui()],T.prototype,"hitThrough",void 0),w([ui("path")],T.prototype,"hitFill",void 0),w([Pe("path")],T.prototype,"hitStroke",void 0),w([ui(!1)],T.prototype,"hitBox",void 0),w([ui(!0)],T.prototype,"hitChildren",void 0),w([ui(!0)],T.prototype,"hitSelf",void 0),w([ui()],T.prototype,"hitRadius",void 0),w([function(e){return mt(e,t=>({set(i){this.__setAttr(t,i),this.leafer&&this.leafer.updateCursor()}}))}("")],T.prototype,"cursor",void 0),w([Ke()],T.prototype,"fill",void 0),w([Pe(void 0,!0)],T.prototype,"stroke",void 0),w([Pe("inside")],T.prototype,"strokeAlign",void 0),w([Pe(1,!0)],T.prototype,"strokeWidth",void 0),w([Pe(!1)],T.prototype,"strokeScaleFixed",void 0),w([Pe("none")],T.prototype,"strokeCap",void 0),w([Pe("miter")],T.prototype,"strokeJoin",void 0),w([Pe()],T.prototype,"dashPattern",void 0),w([Pe(0)],T.prototype,"dashOffset",void 0),w([Pe(10)],T.prototype,"miterLimit",void 0),w([Vt(0)],T.prototype,"cornerRadius",void 0),w([Vt()],T.prototype,"cornerSmoothing",void 0),w([os()],T.prototype,"shadow",void 0),w([os()],T.prototype,"innerShadow",void 0),w([os()],T.prototype,"blur",void 0),w([os()],T.prototype,"backgroundBlur",void 0),w([os()],T.prototype,"grayscale",void 0),w([os()],T.prototype,"filter",void 0),w([Ke()],T.prototype,"placeholderColor",void 0),w([xt(100)],T.prototype,"placeholderDelay",void 0),w([xt({})],T.prototype,"data",void 0),T=i0=w([ae(Bf),ae(Tf),hr()],T);let ft=class extends T{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.forEach(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 Vo;w([Yt(ur)],ft.prototype,"__",void 0),w([et(0)],ft.prototype,"width",void 0),w([et(0)],ft.prototype,"height",void 0),ft=w([ae(e0),Xt()],ft);const Lf=it.get("Leafer");let de=Vo=class extends ft{get __tag(){return"Leafer"}get isApp(){return!1}get app(){return this.parent||this}get isLeafer(){return!0}get imageReady(){return this.viewReady&&fi.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),Vo.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,K.assign(s,e));const n=this.canvas=Ot.canvas(s);this.__controllers.push(this.renderer=Ot.renderer(this,n,s),this.watcher=Ot.watcher(this,s),this.layouter=Ot.layouter(this,s)),this.isApp&&this.__setApp(),this.__checkAutoLayout(),t||(this.selector=Ot.selector(this),this.interaction=Ot.interaction(this,n,this.selector,s),this.interaction&&(this.__controllers.unshift(this.interaction),this.hitCanvasManager=Ot.hitCanvasManager()),this.canvasManager=new y1,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))),Ys.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(st.RESTART):this.emitLeafer(st.START),this.__controllers.forEac
10h(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(st.STOP))}unlockLayout(e=!0){this.layouter.start(),e&&this.updateLayout()}lockLayout(e=!0){e&&this.updateLayout(),this.layouter.stop()}resize(e){const t=K.copyAttrs({},e,Se);Object.keys(t).forEach(i=>this[i]=t[i])}forceRender(e,t){const{renderer:i}=this;i&&(i.addBlock(e?new yt(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=K.copyAttrs({},this.canvas,Se);t.resize(e),this.updateLazyBounds(),this.__onResize(new ei(e,i))}__onResize(e){this.emitEvent(e),K.copyAttrs(this.__,e,Se),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 Wu(e)),this.canvas.startAutoLayout(this.autoLayout,this.__onResize.bind(this)))}__setAttr(e,t){return this.canvas&&(Se.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(st.UPDATE_MODE,{mode:t})),super.__setAttr(e,t)}__getAttr(e){return this.canvas&&Se.includes(e)?this.canvas[e]:super.__getAttr(e)}__changeCanvasSize(e,t){const{config:i,canvas:s}=this,n=K.copyAttrs({},s,Se);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(st.BEFORE_READY),this.emitLeafer(st.READY),this.emitLeafer(st.AFTER_READY),Ys.run(this.__readyWait)}__onViewReady(){this.viewReady||(this.viewReady=!0,this.emitLeafer(st.VIEW_READY),Ys.run(this.__viewReadyWait))}__onLayoutEnd(){const{grow:e,width:t,height:i}=this.config;if(e){let{width:s,height:n,pixelRatio:o}=this;const r=e==="box"?this.worldBoxBounds:this.__world;t||(s=Math.max(1,r.x+r.width)),i||(n=Math.max(1,r.y+r.height)),this.__doResize({width:s,height:n,pixelRatio:o})}this.ready||this.__onReady()}
10__onNextRender(){if(this.viewReady){Ys.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(st.VIEW_COMPLETED),Ys.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 Dt.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 st(e,this))}__listenEvents(){const e=Ee.start("FirstCreate "+this.innerName);this.once([[st.START,()=>Ee.end(e)],[wt.START,this.updateLazyBounds,this],[ht.START,this.__onCreated,this],[ht.END,this.__onViewReady,this]]),this.__eventIds.push(this.on_([[vi.DATA,this.__onWatchData,this],[wt.END,this.__onLayoutEnd,this],[ht.NEXT,this.__onNextRender,this]]))}__removeListenEvents(){this.off_(this.__eventIds)}destroy(e){const t=()=>{if(!this.destroyed){Vo.list.remove(this);try{this.stop(),this.emitLeafer(st.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(()=>{Ce.clearRecycled()},100)}catch(i){Lf.error(i)}}};e?t():setTimeout(t)}};de.list=new dt,w([Yt(class extends ur{__getInputData(e,t){const i=super.__getInputData(e,t);return Se.forEach(s=>delete i[s]),i}})],de.prototype,"__",void 0),w([et()],de.prototype,"pixelRatio",void 0),w([xt("normal")],de.prototype,"mode",void 0),de=Vo=w([Xt()],de);let nt=class extends T{get __tag(){return"Rect"}};w([Yt(M0)],nt.prototype,"__",void 0),nt=w([ae(Of),hr(),Xt()],nt);const{add:Ah,includes:Pf,scroll:Rf}=I,Li=nt.prototype,Af=ft.prototype;let Bt=class extends ft{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:o}=s,{overflow:r}=i,a=s.childrenRenderBounds||(s.childrenRenderBounds={x:0,y:0,width:0,height:0});super.__updateRenderBounds(a),(t=r&&r.includes("scroll"))&&(Ah(a,o),Rf(a,i)),this.__updateRectRenderBounds(),e=!Pf(o,a),e&&r==="show"&&Ah(n,a)}else this.__updateRectRenderBounds();K.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))}};w([Yt(W1)],Bt.prototype,"__",void 0),w([et(100)],Bt.prototype,"width",void 0),w([et(100)],Bt.prototype,"height",void 0),w([xt(!1)],Bt.prototype,"resizeChildren",void 0),w([F0("show")],Bt.prototype,"overflow",void 0),w([ai(Li.__updateStrokeSpread)],Bt.prototype,"__updateStrokeSpread",null),w([ai(Li.__updateRenderSpread)],Bt.prototype,"__updateRectRenderSpread",null),w([ai(Li.__updateBoxBounds)],Bt.prototype,"__updateRectBoxBounds",null),w([ai(Li.__updateStrokeBounds)],Bt.prototype,"__updateStrokeBounds",null),w([ai(Li.__updateRenderBounds)],Bt.prototype,"__updateRectRenderBounds",null),w([ai(Li.__updateChange)],Bt.prototype,"__updateRectChange",null),w([ai(Li.__render)],Bt.prototype,"__renderRect",null),w([ai(Af.__render)],Bt.prototype,"__renderGroup",null),Bt=w([hr(),Xt()],Bt);let Ni=class extends Bt{get __tag(){return"Frame"}get isFrame(){return!0}};w([(e,t)=>{ve(e,t,{set(i){},get(){return this}})}],Ni.prototype,"frame",void 0),w([Yt(class extends W1{})],Ni.prototype,"__",void 0),w([Ke("#FFFFFF")],Ni.prototype,"fill",void 0),w([F0("hide")],Ni.prototype,"overflow",void 0),Ni=w([Xt()],Ni);const{moveTo:sa,closePath:na,ellipse:as}=bi,{tempPoint:uo,set:Fh,rotate:Ff}=j,{abs:Df}=Math,Dh={};let bt=class extends T{get __tag(){return"Ellipse"}__updatePath(){const e=this.__,{width:t,height:i,innerRadius:s,startAngle:n,endAngle:o,closed:r}=e,a=t/2,l=i/2,h=e.path=[];let c,d,f;if((n||o)&&(d=!0),d&&(f=Df(o-n)===360),s){const u=s<1||r,g=a*s,p=l*s;d?(as(h,a,l,a,l,0,n,o),u?(f&&(na(h),Fh(uo,a+g,l),Fh(Dh,a,l),Ff(uo,o,Dh,a,l),sa(h,uo.x,uo.y)),as(h,a,l,g,p,0,o,n,!0)):f||(c=!0)):(as(h,a,l,a,l),u&&(na(h),sa(h,a+g,l),as(h,a,l,g,p,0,360,0,!0)))}else d?(f||(r||(c=!0),c||sa(h,a,l)),as(h,a,l,a,l,0,n,o)):as(h,a,l,a,l);c||na(h),(M.ellipseToCurve||e.__useArrow||e.cornerRadius)&&(e.path=this.getPath(!0))}};w([Yt(class extends si{get __boxStroke(){return!this.__pathInputed}})],bt.prototype,"__",void 0),w([Vt(0)],bt.prototype,"innerRadius",void 0),w([Vt(0)],bt.prototype,"startAngle",void 0),w([Vt(0)],bt.prototype,"endAngle",void 0),bt=w([Xt()],bt);const{sin:Mh,cos:Ih,PI:Mf}=Math,{moveTo:zh,lineTo:If,closePath:zf,drawPoints:Wf}=bi;let Re=class extends T{get __tag(){return"Polygon"}get isPointsMode(){return this.points&&!this.pathInputed}__updatePath(){const e=this.__,t=e.path=[];if(e.points)Wf(t,e.points,e.curve,e.closed,e);else{const{width:i,height:s,sides:n,startAngle:o}=e,r=i/2,a=s/2;let l,h=0;o?(h=o*at,zh(t,r+r*Mh(h),a-a*Ih(h))):zh(t,r,0);for(let c=1;c<n;c++)l=2*c*Mf/n+h,If(t,r+r*Mh(l),a-a*Ih(l));zf(t)}}};w([Yt(class extends si{get __usePathBox(){return this.points||this.__pathInputed}})],Re.prototype,"__",void 0),w([Vt(3)],Re.prototype,"sides",void 0),w([Vt(0)],Re.prototype,"startAngle",void 0),w([Vt()],Re.prototype,"points",void 0),w([Vt(0)],Re.prototype,"curve",void 0),Re=w([hr(),Xt()],Re);const{sin:Wh,cos:Hh,PI:Hf}=Math,{moveTo:jh,lineTo:jf,closePath:Nf}=bi;let Ui=class extends T{get __tag(){return"Star"}__updatePath(){const{width:e,height:t,corners:i,innerRadius:s,startAngle:n}=this.__,o=e/2,r=t/2,a=this.__.path=[];let l,h=0;n?(h=n*at,jh(a,o+o*Wh(h),r-r*Hh(h))):jh(a,o,0);for(let c=1;c<2*i;c++)l=c*Hf/i+h,jf(a,o+(c%2==0?o:o*s)*Wh(l),r-(c%2==0?r:r*s)*Hh(l));Nf(a)}};w([Yt(class extends si{})],Ui.prototype,"__",void 0),w([Vt(5)],Ui.prototype,"corners",void 0),w([Vt(.382)
10],Ui.prototype,"innerRadius",void 0),w([Vt(0)],Ui.prototype,"startAngle",void 0),Ui=w([Xt()],Ui);const{moveTo:Uf,lineTo:Vf,drawPoints:Yf}=bi,{rotate:Xf,getAngle:qf,getDistance:Gf,defaultPoint:Nh}=j;let _e=class extends T{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&&Xf(i,t),i}set toPoint(e){this.width=Gf(Nh,e),this.rotation=qf(Nh,e),this.height&&(this.height=0)}__updatePath(){const e=this.__,t=e.path=[];e.points?Yf(t,e.points,e.curve,e.closed,e):(Uf(t,0,0),Vf(t,this.width,0))}};w([Yt(H1)],_e.prototype,"__",void 0),w([lr("center")],_e.prototype,"strokeAlign",void 0),w([et(0)],_e.prototype,"height",void 0),w([Vt()],_e.prototype,"points",void 0),w([Vt(0)],_e.prototype,"curve",void 0),w([Vt(!1)],_e.prototype,"closed",void 0),_e=w([Xt()],_e);let _s=class extends nt{get __tag(){return"Image"}get ready(){const{image:e}=this;return e&&e.ready}get image(){const{fill:e}=this.__;return Q(e)&&e[0].image}};w([Yt(class extends M0{get __urlType(){return"image"}setUrl(e){this.__setImageFill(e),this._url=e}__setImageFill(e){this.fill=e?{type:this.__urlType,mode:"stretch",url:e}:void 0}__getData(){const e=super.__getData();return e.url&&delete e.fill,e}__getInputData(e,t){const i=super.__getInputData(e,t);return i.url&&delete i.fill,i}})],_s.prototype,"__",void 0),w([et("")],_s.prototype,"url",void 0),_s=w([Xt()],_s);let Ue=class extends nt{get __tag(){return"Canvas"}get context(){return this.canvas.context}get ready(){return!this.url}constructor(e){super(e),this.canvas=Ot.canvas(this.__),e&&e.url&&this.drawImage(e.url)}drawImage(e){new P1({url:e}).load(t=>{this.context.drawImage(t.view,0,0),this.url=void 0,this.paint(),this.emitEvent(new Je(Je.LOADED,{image:t}))})}draw(e,t,i,s){const n=new Kt(e.worldTransform).invert(),o=new Kt;t&&o.translate(t.x,t.y),i&&(tt(i)?o.scale(i):o.scale(i.x,i.y)),s&&o.rotate(s),n.multiplyParent(o),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()}};w([Yt(class extends M0{get __isCanvas(){return!0}get __drawAfterFill(){return!0}__getInputData(e,t){const i=super.__getInputData(e,t);return i.url=this.__leaf.canvas.toDataURL("image/png"),i}})],Ue.prototype,"__",void 0),w([Xs(100)],Ue.prototype,"width",void 0),w([Xs(100)],Ue.prototype,"height",void 0),w([Xs(1)],Ue.prototype,"pixelRatio",void 0),w([Xs(!0)],Ue.prototype,"smooth",void 0),w([xt(!1)],Ue.prototype,"safeResize",void 0),w([Xs()],Ue.prototype,"contextSettings",void 0),Ue=w([Xt()],Ue);const{copyAndSpread:Kf,includes:Zf,setList:$f}=I,{stintSet:oa}=K;let V=class extends T{get __tag(){return"Text"}get textDrawData(){return this.updateLayout(),this.__.__textDrawData}__updateTextDrawData(){const e=this.__,{lineHeight:t,letterSpacing:i,wordSpacing:s,fontFamily:n,fontSize:o,fontWeight:r,italic:a,textCase:l,textOverflow:h,padding:c,width:d,height:f}=e;e.__lineHeight=No.number(t,o),e.__letterSpacing=No.number(i,o),e.__wordSpacing=No.number(s,o),e.__baseLine=e.__lineHeight-(e.__lineHeight-.7*o)/2,e.__font=`${a?"italic ":""}${l==="small-caps"?"small-caps ":""}${r!=="normal"?r+" ":""}${o||12}px ${n||"caption"}`,oa(e,"__padding",c&&kt.fourNumber(c)),oa(e,"__clipText",h!=="show"&&!e.__autoSize),oa(e,"__isCharMode",d||f||e.__letterSpacing||e.__wordSpacing||e.motionText||l!=="none"),e.__textDrawData=I1.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:o,__autoHeight:r}=e;this.__updateTextDrawData();const{bounds:a}=e.__textDrawData,l=t.boxBounds;if(t.contentBounds=a,e.__lineHeight<i&&(t.renderChanged=!0),o||r){if(l.x=o?a.x:0,l.y=r?a.y:0,l.width=o?a.width:e.width,l.height=r?a.height:e.height,n){const[h,c,d,f]=e.__padding;o&&(l.x-=f,l.width+=c+f),r&&(l.y-=h,l.height+=d+h)}this.__updateNaturalSize()}else super.__updateBoxBounds();s&&(l.width+=.16*i),K.stintSet(this,"isOverflow",!Zf(l,a)&&!e.motionText),this.isOverflow?($f(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=Tn.max(e,(i-t)/2)),e}__updateRenderBounds(){const{renderBounds:e,renderSpread:t}=this.__layout;Kf(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()}};w([Yt(class extends si{get __useNaturalRatio(){return!1}setFontWeight(e){$(e)?(this.__setInput("fontWeight",e),e=Cf[e]||400):this.__input&&this.__removeInput("fontWeight"),this._fontWeight=e}
10setBoxStyle(e){let t=this.__leaf,i=t.__box;if(e){const{boxStyle:s}=this;if(i)for(let r in s)i[r]=void 0;else i=t.__box=On.get("Rect",0);const n=t.__layout,o=i.__layout;s||(i.parent=t,i.__world=t.__world,o.boxBounds=n.boxBounds),i.set(e),o.strokeChanged&&n.strokeChange()}else i&&(t.__box=i.parent=null,i.destroy());this._boxStyle=e}__getInputData(e,t){const i=super.__getInputData(e,t);return i.textEditing&&delete i.textEditing,i}})],V.prototype,"__",void 0),w([et(0)],V.prototype,"width",void 0),w([et(0)],V.prototype,"height",void 0),w([Ke()],V.prototype,"boxStyle",void 0),w([xt(!1)],V.prototype,"resizeFontSize",void 0),w([Ke("#000000")],V.prototype,"fill",void 0),w([lr("outside")],V.prototype,"strokeAlign",void 0),w([ui("all")],V.prototype,"hitFill",void 0),w([et("")],V.prototype,"text",void 0),w([et("")],V.prototype,"placeholder",void 0),w([et("caption")],V.prototype,"fontFamily",void 0),w([et(12)],V.prototype,"fontSize",void 0),w([et("normal")],V.prototype,"fontWeight",void 0),w([et(!1)],V.prototype,"italic",void 0),w([et("none")],V.prototype,"textCase",void 0),w([et("none")],V.prototype,"textDecoration",void 0),w([et(0)],V.prototype,"letterSpacing",void 0),w([et(0)],V.prototype,"wordSpacing",void 0),w([et({type:"percent",value:1.5})],V.prototype,"lineHeight",void 0),w([et(0)],V.prototype,"paraIndent",void 0),w([et(0)],V.prototype,"paraSpacing",void 0),w([et("x")],V.prototype,"writingMode",void 0),w([et("left")],V.prototype,"textAlign",void 0),w([et("top")],V.prototype,"verticalAlign",void 0),w([et(!0)],V.prototype,"autoSizeAlign",void 0),w([et("normal")],V.prototype,"textWrap",void 0),w([et("show")],V.prototype,"textOverflow",void 0),w([Ke(!1)],V.prototype,"textEditing",void 0),V=w([Xt()],V);let $e=class extends T{get __tag(){return"Path"}};w([Yt(class extends si{get __pathInputed(){return 2}})],$e.prototype,"__",void 0),w([lr("center")],$e.prototype,"strokeAlign",void 0),$e=w([Xt()],$e);let yn=class extends ft{get __tag(){return"Pen"}setStyle(e){const t=this.pathElement=new $e(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")}};w([Yt(class extends ur{})],yn.prototype,"__",void 0),w([(e,t)=>{ve(e,t,{get(){return this.__path}})}],yn.prototype,"path",void 0),yn=w([ae(B1,["set","path","paint"]),Xt()],yn);let Ts=class extends de{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:o}=e;i&&(this.ground=this.addLeafer(i)),(s||o)&&(this.tree=this.addLeafer(s||{type:e.type||"design"})),(n||o)&&(this.sky=this.addLeafer(n)),o&&Ot.editor(o,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()}__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 de(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),W(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(
10)}__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&&K.assign(t,e),this.autoLayout&&K.copyAttrs(t,this,Se),t.view=this.realCanvas?void 0:this.view,t.fill=void 0,t}__listenChildEvents(e){e.once([[wt.END,this.__onReady,this],[ht.START,this.__onCreated,this],[ht.END,this.__onViewReady,this]]),this.realCanvas&&this.__eventIds.push(e.on_(ht.END,this.__onChildRenderEnd,this))}};Ts=w([Xt()],Ts);const po={},ks={isHoldSpaceKey:()=>ks.isHold("Space"),isHold:e=>po[e],isHoldKeys:(e,t)=>t?e(t):void 0,setDownCode(e){po[e]||(po[e]=!0)},setUpCode(e){po[e]=!1}},be={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 I0 extends Te{get spaceKey(){return ks.isHoldSpaceKey()}get left(){return be.left(this)}get right(){return be.right(this)}get middle(){return be.middle(this)}constructor(t){super(t.type),this.bubbles=!0,Object.assign(this,t)}isHoldKeys(t){return ks.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){Cs.changeName(t,i)}}const{min:Uh,max:ra,abs:Vh}=Math,{float:It,sign:Yh}=kt,{minX:Xh,maxX:qh,minY:Gh,maxY:Kh}=I,pt=new yt,Ve=new yt,tr={limitMove(e,t){const{dragBounds:i,dragBoundsType:s}=e;i&&Ye.getValidMove(e.__localBoxBounds,Ye.getDragBounds(e),s,t,!0),Ye.axisMove(e,t)},limitScaleOf(e,t,i,s){const{dragBounds:n,dragBoundsType:o}=e;n&&Ye.getValidScaleOf(e.__localBoxBounds,Ye.getDragBounds(e),o,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"&&It(e[s])>It(t[s]),getValidMove(e,t,i,s,n){const o=e.x+s.x,r=e.y+s.y,a=o+e.width,l=r+e.height,h=t.x+t.width,c=t.y+t.height;return n||(s=Object.assign({},s)),Ye.isInnerMode(e,t,i,"width")?o>t.x?s.x+=t.x-o:a<h&&(s.x+=h-a):o<t.x?s.x+=t.x-o:a>h&&(s.x+=h-a),Ye.isInnerMode(e,t,i,"height")?r>t.y?s.y+=t.y-r:l<c&&(s.y+=c-l):r<t.y?s.y+=t.y-r:l>c&&(s.y+=c-l),s.x=It(s.x),s.y=It(s.y),s},getValidScaleOf(e,t,i,s,n,o,r){r||(n=Object.assign({},n)),Ve.set(t),pt.set(e).scaleOf(s,n.x,n.y);const a=It((s.x-e.x)/e.width),l=It(1-a),h=It((s.y-e.y)/e.height),c=It(1-h);let d,f,u,g,p=1,m=1;return Ye.isInnerMode(e,t,i,"width")?(n.x<0&&pt.scaleOf(s,p=1/n.x,1),u=It(pt.minX-Ve.minX),g=It(Ve.maxX-pt.maxX),d=a&&u>0?1+u/(a*pt.width):1,f=l&&g>0?1+g/(l*pt.width):1,p*=ra(d,f)):(n.x<0&&((It(Xh(e)-Xh(t),2)<=0||It(qh(t)-qh(e),2)<=0)&&(pt.scaleOf(s,p=1/n.x,1),pt.width>1&&(p*=1/pt.width,pt.width=1)),pt.unsign()),u=It(Ve.minX-pt.minX),g=It(pt.maxX-Ve.maxX),d=a&&u>0?1-u/(a*pt.width):1,f=l&&g>0?1-g/(l*pt.width):1,p*=Uh(d,f)),Ye.isInnerMode(e,t,i,"height")?(n.y<0&&pt.scaleOf(s,1,m=1/n.y),u=It(pt.minY-Ve.minY),g=It(Ve.maxY-pt.maxY),d=h&&u>0?1+u/(h*pt.height):1,f=c&&g>0?1+g/(c*pt.height):1,m*=ra(d,f),o&&(d=ra(Vh(p),Vh(m)),p=Yh(p)*d,m=Yh(m)*d)):(n.y<0&&((It(Gh(e)-Gh(t),2)<=0||It(Kh(t)-Kh(e),2)<=0)&&(pt.scaleOf(s,1,m=1/n.y),pt.height>1&&(m*=1/pt.height,pt.height=1)),pt.unsign()),u=It(Ve.minY-pt.minY),g=It(pt.maxY-Ve.maxY),d=h&&u>0?1-u/(h*pt.height):1,f=c&&g>0?1-g/(c*pt.height):1,m*=Uh(d,f)),n.x*=Ga(p)?p:1,n.y*=Ga(m)?m:1,n}},Ye=tr;let z=class extends I0{};z.POINTER="pointer",z.BEFORE_DOWN="pointer.before_down",z.BEFORE_MOVE="pointer.before_move",z.BEFORE_UP="pointer.before_up",z.DOWN="pointer.down",z.MOVE="pointer.move",z.UP="pointer.up",z.OVER="pointer.over",z.OUT="pointer.out",z.ENTER="pointer.enter",z.LEAVE="pointer.leave",z.TAP="tap",z.DOUBLE_TAP="double_tap",z.CLICK="click",z.DOUBLE_CLICK="double_click",z.LONG_PRESS="long_press",z.LONG_TAP="long_tap",z.MENU="pointer.menu",z.MENU_TAP="pointer.menu_tap",z=w([ii()],z);const Gs={};let G=class extends z{static setList(e){this.list=e instanceof dt?e:new dt(e)}static setData(e){this.data=e}static getValidMove(e,t,i,s=!0){const n=e.getLocalPoint(i,null,!0);return j.move(n,t.x-e.x,t.y-e.y),s&&this.limitMove(e,n),tr.axisMove(e,n),n}static limitMove(e,t){tr.limitMove(e,t)}getPageMove(e){return this.assignMove(e),this.current.getPagePoint(Gs,null,!0)}getInnerMove(e,t){return e||(e=this.current),this.assignMove(t),e.getInnerPoint(Gs,null,!0)}getLocalMove(e,t){return e||(e=this.current),this.assignMove(t),e.getLocalPoint(Gs,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 I.set(i,t.x-e.x,t.y-e.y,e.x,e.y),I.unsign(i),i}assignMove(e){Gs.x=e?this.totalX:this.moveX,Gs.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=w([ii()],G);let xn=class extends z{static setList(e){G.setList(e)}static setData(e){G.setData(e)}};xn.DROP="drop",xn=w([ii()],xn);let Tt=class extends G{};Tt.BEFORE_MOVE="move.before_move",Tt.START="move.start",Tt.MOVE="move",Tt.DRAG_ANIMATE="move.drag_animate",Tt.END="move.end",Tt.PULL_DOWN="move.pull_down",Tt.REACH_BOTTOM="move.reach_bottom",Tt=w([ii()],Tt);let Zh=class extends I0{};Zh=w([ii()],Zh);let Me=class extends z{};Me.BEFORE_ROTATE="rotate.before_rotate",Me.START="rotate.start",Me.ROTATE="rotate",Me.END="rotate.end",Me=w([ii()],Me);let ke=class extends G{};ke.SWIPE="swipe",ke.LEFT="swipe.left",ke.RIGHT="swipe.right",ke.UP="swipe.up",ke.DOWN="swipe.down",ke=w([ii()],ke);let Qt=class extends z{};Qt.BEFORE_ZOOM="zoom.before_zoom",Qt.START="zoom.start",Qt.ZOOM="zoom",Qt.END="zoom.end",Qt=w([ii()],Qt);let te=class extends I0{};te.BEFORE_DOWN="key.before_down",te.BEFORE_UP="key.before_up",te.DOWN="key.down",te.HOLD="key.hold",te.UP="key.up",te=w([ii()],te);const Be={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?ke.UP:e>45&&e<135?ke.DOWN:e<=45&&e>=-45?ke.RIGHT:ke.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:Jf.getSwipeDirection(j.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:W(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 dt,{list:s}=e;for(let n=0,o=s.length;n<o;n++)s[n].hasEvent(t)&&i.add(s[n]);return i},pathCanDrag:e=>e&&e.list.some(t=>ut.draggable(t)||!t.isLeafer&&t.hasEvent(G.DRAG)),pathHasOutside:e=>e&&e.list.some(t=>t.isOutside)},Jf=Be,$h=new dt,{getDragEventData:aa,getDropEventData:Qf,getSwipeEventData:t3}=Be;class e3{constructor(t){this.dragDataList=[],this.interaction=t}setDragData(t){this.animateWait&&this.dragEndReal(),this.downData=this.interaction.downData,this.dragData=aa(t,t,t),this.canAnimate=this.canDragOut=!0}getList(t,i){const{proxy:s}=this.interaction.selector,n=s&&s.list.length,o=G.list||this.draggableList||$h;return this.dragging&&(n?t?$h:new dt(i?[...s.list,...s.dragHoverExclude]:s.list):o)}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(Tt.START,this.dragData)),this.moving||this.dragStart(t,i),this.drag(t)}dragStart(t,i){this.dragging||(this.dragging=i&&be.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=>
10this.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],ut.draggable(i)){this.draggableList=new dt(i);break}}drag(t){const{interaction:i,dragData:s,downData:n}=this,{path:o,throughPath:r}=n;this.dragData=aa(n,s,t),r&&(this.dragData.throughPath=r),this.dragData.path=o,this.dragDataList.push(this.dragData),this.moving?(t.moving=!0,this.dragData.moveType="drag",i.emit(Tt.BEFORE_MOVE,this.dragData),i.emit(Tt.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:o,totalY:r}=this.dragData,{dragLimitAnimate:a}=i.p,l=!a||!!t;n.forEach(h=>{if(h.draggable){const c=$(h.draggable),d=G.getValidMove(h,this.dragStartPoints[h.innerId],{x:o,y:r},l||c);a&&!c&&t?ut.animateMove(h,d,tt(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:o,throughPath:r}=s,a=aa(s,t,t);if(r&&(a.throughPath=r),a.path=o,this.moving&&(this.moving=!1,a.moveType="drag",i.emit(Tt.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:o}=this;if(j.getDistance(i,t)>o.config.pointer.swipeDistance){const r=t3(i,s,n);this.interaction.emit(r.type,r)}}drop(t,i,s){const n=Qf(t,i,G.data);n.path=s,this.interaction.emit(xn.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 i3=it.get("emit"),s3=["move","zoom","rotate","key"];function Jh(e,t,i,s,n){if(s3.some(o=>t.startsWith(o))&&e.__.hitChildren&&!j1(e,n)){let o;for(let r=0,a=e.children.length;r<a;r++)o=e.children[r],!i.path.has(o)&&o.__.hittable&&s0(o,t,i,s,n)}}function s0(e,t,i,s,n){if(e.destroyed)return!1;if(e.__.hitSelf&&!j1(e,n)&&(rt.updateEventStyle&&!s&&rt.updateEventStyle(e,t),e.hasEvent(t,s))){i.phase=s?1:e===i.target?2:3;const o=Cs.get(t,i);if(e.emitEvent(o,s),o.isStop)return!0}return!1}function j1(e,t){return t&&t.has(e)}const n3={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:la,pathCanDrag:o3,pathHasOutside:Qh}=Be;class r3{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&&be.middle(this.downData)}get isHoldRightKey(){return this.m.holdRightKey&&this.downData&&be.right(this.downData)}get isHoldSpaceKey(){return this.m.holdSpaceKey&&ks.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=K.clone(n3),this.tapCount=0,this.downKeyMap={},this.target=t,this.canvas=i,this.selector=s,this.defaultPath=new dt(t),this.createTransformer(),this.dragger=new e3(this),n&&(this.config=K.default(n,this.config)),this.__listenEvents()}start(){this.running=!0}stop(){this.running=!1}receive(t){}pointerDown(t,i){t||(t=this.hoverData),t&&(be.defaultLeft(t),this.updateDownData(t),this.checkPath(t,i),this.downTime=Date.now(),this.emit
10(z.BEFORE_DOWN,t),t.path.needUpdate&&this.updateDownData(t),this.emit(z.DOWN,t),be.left(t)&&(this.tapWait(),this.longPressWait(t)),this.waitRightTap=be.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&&be.defaultLeft(t),(this.canvas.bounds.hitPoint(t)||i)&&(this.pointerMoveReal(t),i&&this.dragger.checkDragOut(t))}pointerMoveReal(t){if(this.emit(z.BEFORE_MOVE,t,this.defaultPath),this.downData){const i=j.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(z.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;be.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(z.BEFORE_UP,t),this.emit(z.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(z.MENU,t),this.waitMenuTap=!0,!this.downData&&this.waitRightTap&&this.menuTap(t)}menuTap(t){this.waitRightTap&&this.waitMenuTap&&(this.emit(z.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(te.BEFORE_DOWN,t,this.defaultPath);const{code:i}=t;this.downKeyMap[i]||(this.downKeyMap[i]=!0,ks.setDownCode(i),this.emit(te.HOLD,t,this.defaultPath),this.moveMode&&(this.cancelHover(),this.updateCursor())),this.emit(te.DOWN,t,this.defaultPath)}keyUp(t){if(!this.config.keyEvent)return;this.emit(te.BEFORE_UP,t,this.defaultPath);const{code:i}=t;this.downKeyMap[i]=!1,ks.setUpCode(i),this.emit(te.UP,t,this.defaultPath),this.cursor==="grab"&&this.updateCursor()}pointerHover(t){!this.canHover||this.dragging&&!this.p.dragHover||(t.path||(t.path=new dt),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(z.OUT,t,s),this.emit(z.OVER,t,i)):this.emit(z.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(z.LEAVE,t,s,i),this.emit(z.ENTER,t,i,s)}touchLeave(t){t.pointerType==="touch"&&this.enterPath&&(this.emit(z.LEAVE,t),this.dragger.dragging&&this.emit(xn.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,o=[z.DOUBLE_TAP,z.DOUBLE_CLICK].some(r=>la(t.path,r));n<i.tapTime+50&&o?(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:o,target:r}=this;M.backgrounder||t.origin||r&&r.updateLayout();const a=this.selector.getByPoint(t,s,Object.assign({bottomList:o,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&&!Qh(t.path))&&(t.path=this.defaultPath)}canMove(t){return t&&(this.moveMode||this.m.drag==="auto"&&!o3(t.path))&&!Qh(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:z.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;
10for(let o=0,r=n.length;o<r&&(i=n.list[o],s=i.syncEventer&&i.syncEventer.cursor||i.cursor,!s);o++);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:o}=this.canvas;return n.x*=o.width/s.width,n.y*=o.height/s.height,this.p.snap&&j.round(n),n}emitTap(t){this.emit(z.TAP,t),this.emit(z.CLICK,t)}emitDoubleTap(t){this.emit(z.DOUBLE_TAP,t),this.emit(z.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(z.LONG_PRESS,t)},this.p.longPressTime)}longTap(t){let i;return this.longPressed&&(this.emit(z.LONG_TAP,t),(la(t.path,z.LONG_TAP)||la(t.path,z.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 yt(this.canvas.bounds),this.shrinkCanvasBounds.spread(-(tt(t)?t:2))}__listenEvents(){const{target:t}=this;this.__eventIds=[t.on_(ei.RESIZE,this.__onResize,this)],t.once(st.READY,()=>this.__onResize())}__removeListenEvents(){this.target.off_(this.__eventIds),this.__eventIds.length=0}emit(t,i,s,n){this.running&&function(o,r,a,l){if(!a&&!r.path)return;let h;r.type=o,a?r=Object.assign(Object.assign({},r),{path:a}):a=r.path,r.target=a.indexAt(0);try{for(let c=a.length-1;c>-1;c--){if(h=a.list[c],s0(h,o,r,!0,l))return;h.isApp&&Jh(h,o,r,!0,l)}for(let c=0,d=a.length;c<d;c++)if(h=a.list[c],h.isApp&&Jh(h,o,r,!1,l),s0(h,o,r,!1,l))return}catch(c){i3.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 N1{static set(t,i){this.custom[t]=i}static get(t){return this.custom[t]}}N1.custom={};class a3 extends y1{constructor(){super(...arguments),this.maxTotal=1e3,this.pathList=new dt,this.pixelList=new dt}getPixelType(t,i){return this.__autoClear(),this.pixelList.add(t),Ot.hitCanvas(i)}getPathType(t){return this.__autoClear(),this.pathList.add(t),Ot.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()}}M.getSelector=function(e){return e.leafer?e.leafer.selector:M.selector||(M.selector=Ot.selector())};const{toInnerRadiusPointOf:l3,copyRadiusPoint:tc}=j,{hitRadiusPoint:h3,hitPoint:c3}=I,Ks={},Zs={},ls=Bs.prototype;ls.hit=function(e,t=0){this.updateLayout(),tc(Zs,e,t);const i=this.__world;return!!(t?h3(i,Zs):c3(i,Zs))&&(this.isBranch?M.getSelector(this).hitPoint(Object.assign({},Zs),t,{target:this}):this.__hitWorld(Zs))},ls.__hitWorld=function(e,t){const i=this.__;if(!i.hitSelf)return!1;const s=this.__world,n=this.__layout,o=s.width<10&&s.height<10;if(i.hitRadius&&(tc(Ks,e,i.hitRadius),e=Ks),l3(e,s,Ks),i.hitBox||o){if(I.hitRadiusPoint(n.boxBounds,Ks))return!0;if(o)return!1}return!n.hitCanvasChanged&&this.__hitCanvas||(this.__updateHitCanvas(),n.boundsChanged||(n.hitCanvasChanged=!1)),this.__hit(Ks,t)},ls.__hitFill=function(e){const t=this.__hitCanvas;return t&&t.hitFill(e,this.__.windingRule)},ls.__hitStroke=function(e,t){const i=this.__hitCanvas;return i&&i.hitStroke(e,t)},ls.__hitPixel=function(e){const t=this.__hitCanvas;return t&&t.hitPixel(e,this.__layout.renderBounds,t.hitScale)},ls.__drawHitPath=function(e){e&&this.__drawRenderPath(e)};const d3=new Kt,ec=T.prototype;ec.__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 o=this.__hitCanvas;if(n){const{renderBounds:r}=this.__layout,a=M.image.hitCanvasSize,l=o.hitScale=Xi.set(0,0,a,a).getFitMatrix(r).a,{x:h,y:c,width:d,height:f}=Xi.set(r).scale(l);o.resize({width:d,height:f,pixelRatio:1}
10),o.clear(),Ce.patternLocked=!0,this.__renderShape(o,{matrix:d3.setWith(this.__world).scaleWith(1/l).invertWith().translate(-h,-c),snapshot:!0,ignoreFill:!i,ignoreStroke:!s}),Ce.patternLocked=!1,o.resetTransform(),t.__isHitPixel=!0}else t.__isHitPixel&&(t.__isHitPixel=!1);this.__drawHitPath(o),o.setStrokeOptions(t)},ec.__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:o,strokeScaleFixed:r}=i,a=i.__maxStrokeWidth*(r?this.getRenderScaleData(!0,r,!1).scaleX:1),l=i.stroke&&(o==="path"||o==="pixel"&&!i.__isAlphaPixelStroke)||o==="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 ic=T.prototype,sc=nt.prototype,nc=Bt.prototype;sc.__updateHitCanvas=nc.__updateHitCanvas=function(){this.stroke||this.cornerRadius||(this.fill||this.__.__isCanvas)&&this.hitFill==="pixel"||this.hitStroke==="all"?ic.__updateHitCanvas.call(this):this.__hitCanvas&&(this.__hitCanvas=null)},sc.__hitFill=nc.__hitFill=function(e){return this.__hitCanvas?ic.__hitFill.call(this,e):I.hitRadiusPoint(this.__layout.boxBounds,e)},V.prototype.__drawHitPath=function(e){const t=this.__,{__lineHeight:i,fontSize:s,__baseLine:n,__letterSpacing:o,__textDrawData:r}=t;e.beginPath(),t.motionText?this.__drawPathByData(e,t.__pathForMotionText):o<0?this.__drawPathByBox(e):r.rows.forEach(a=>e.rect(a.x,a.y-n,a.width,i<s?s:i))},ft.prototype.pick=function(e,t){return t||(t=Cu),this.updateLayout(),M.getSelector(this).getByPoint(e,t.hitRadius||0,Object.assign(Object.assign({},t),{target:this}))};const ha=w1.prototype;ha.hitFill=function(e,t){return t?this.context.isPointInPath(e.x,e.y,t):this.context.isPointInPath(e.x,e.y)},ha.hitStroke=function(e,t){return this.strokeWidth=t,this.context.isPointInStroke(e.x,e.y)},ha.hitPixel=function(e,t,i=1){let{x:s,y:n,radiusX:o,radiusY:r}=e;t&&(s-=t.x,n-=t.y),Xi.set(s-o,n-r,2*o,2*r).scale(i).ceil();const{data:a}=this.context.getImageData(Xi.x,Xi.y,Xi.width||1,Xi.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 oe={convert(e,t){const i=Be.getBase(e),{x:s,y:n}=t,o=Object.assign(Object.assign({},i),{x:s,y:n,width:e.width,height:e.height,pointerType:e.pointerType,pressure:e.pressure});return o.pointerType==="pen"&&(o.tangentialPressure=e.tangentialPressure,o.tiltX=e.tiltX,o.tiltY=e.tiltY,o.twist=e.twist),o},convertMouse(e,t){const i=Be.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=oe.getTouch(e),s=Be.getBase(e),{x:n,y:o}=t;return Object.assign(Object.assign({},s),{x:n,y:o,width:1,height:1,pointerType:"touch",multiTouch:e.touches.length>1,pressure:i.force})},getTouch:e=>e.targetTouches[0]||e.changedTouches[0]},oc={convert(e){const t=Be.getBase(e);return Object.assign(Object.assign({},t),{code:e.code,key:e.key})}},{pathCanDrag:u3}=Be;class p3 extends r3{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={}}
10getTouches(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(oc.convert(t))}onKeyUp(t){this.keyUp(oc.convert(t))}onContextMenu(t){this.config.pointer.preventDefaultMenu&&t.preventDefault(),this.menu(oe.convert(t,this.getLocal(t)))}onScroll(){this.canvas.updateClientBounds()}onPointerDown(t){this.preventDefaultPointer(t),this.notPointer||(this.usePointer||(this.usePointer=!0),this.pointerDown(oe.convert(t,this.getLocal(t))))}onPointerMove(t,i){if(this.notPointer||this.preventWindowPointer(t))return;this.usePointer||(this.usePointer=!0);const s=oe.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(oe.convert(t,this.getLocal(t)))}onPointerCancel(){this.useMultiTouch||this.pointerCancel()}onMouseDown(t){this.preventDefaultPointer(t),this.notMouse||this.pointerDown(oe.convertMouse(t,this.getLocal(t)))}onMouseMove(t){this.notMouse||this.preventWindowPointer(t)||this.pointerMove(oe.convertMouse(t,this.getLocal(t,!0)))}onMouseUp(t){this.downData&&this.preventDefaultPointer(t),this.notMouse||this.preventWindowPointer(t)||this.pointerUp(oe.convertMouse(t,this.getLocal(t)))}onMouseCancel(){this.notMouse||this.pointerCancel()}onTouchStart(t){const i=oe.getTouch(t),s=this.getLocal(i,!0),{preventDefault:n}=this.config.touch;(n===!0||n==="auto"&&u3(this.findPath(s)))&&t.preventDefault(),this.multiTouchStart(t),this.notTouch||(this.touchTimer&&(window.clearTimeout(this.touchTimer),this.touchTimer=0),this.useTouch=!0,this.pointerDown(oe.convertTouch(t,s)))}onTouchMove(t){if(this.multiTouchMove(t),this.notTouch||this.preventWindowPointer(t))return;const i=oe.getTouch(t);this.pointerMove(oe.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=oe.getTouch(t);this.pointerUp(oe.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(Be.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(o=>{s=i.find(r=>r.identifier===o.identifier),s&&n.push({from:this.getLocal(o),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({},Be.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=Be.getBase(t);Object.assign(i,this.getLocal(t));const s=t.scale/this.lastGestureScale,n=(t.rotation-this.lastGestureRotation)/Math.PI*180*(kt.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),N(i[i.length-1])&&i.push("default"),this.canvas.view.style.cursor=i.map(s=>N(s)?`url(${s.url}) ${s.x||0} ${s.y||0}`:s).join(",")}eachCursor(t,i,s=0){if(s++,Q(t))t.forEach(n=>this.eachCursor(n,i,s));else{const n=$(t)&&N1.get(t);n&&s<2?this.eachCursor(n,i,s):i.push(t)}}destroy(){this.view&&(super.destroy(),this.view=this.touches=null)}}function $s(e,t,i,s){e.__.__font?Z.fillText(e,t,i,s):e.__.windingRule?t.fill(e.__.windingRule):t.fill()}function go(e,t,i,s,n){const o=i.__;N(e)?Z.drawStrokesStyle(e,t,!1,i,s,n):(s.setStroke(e,o.__strokeWidth*t,o),s.stroke()),o.__useArrow&&Z.strokeArrow(e,i,s,n)}function n0(e,t,i,s,n){const o=i.__;N(e)?Z.drawStrokesStyle(e,t,!0,i,s,n):(s.setStroke(e,o.__strokeWidth*t,o),Z.drawTextStroke(i,s,n))}
10function rc(e,t,i,s,n){const o=s.getSameCanvas(!0,!0);o.font=i.__.__font,n0(e,2,i,o,n),o.blendMode=t==="outside"?"destination-out":"destination-in",Z.fillText(i,o,n),o.blendMode="normal",ut.copyCanvasByWorld(i,s,o),o.recycle(i.__nowWorld)}const{getSpread:g3,copyAndSpread:f3,toOuterOf:_3,getOuterOf:ac,getByMove:m3,move:y3,getIntersectData:v3}=I,lc={};let o0;const{stintSet:Js}=K,{hasTransparent:w3}=gt;function x3(e,t,i){if(!N(t)||t.visible===!1||t.opacity===0)return;let s;const{boxBounds:n}=i.__layout,{type:o}=t;switch(o){case"image":case"film":case"video":if(!t.url)return;s=_t.image(i,e,t,n,!o0||!o0[t.url]),o!=="image"&&_t[o](s);break;case"linear":s=Uo.linearGradient(t,n);break;case"radial":s=Uo.radialGradient(t,n);break;case"angular":s=Uo.conicGradient(t,n);break;case"solid":const{color:r,opacity:a}=t;s={type:o,style:gt.string(r,a)};break;default:W(t.r)||(s={type:"solid",style:gt.string(t)})}if(s&&(s.originPaint=t,$(s.style)&&w3(s.style)&&(s.isTransparent=!0),t.style)){if(t.style.strokeWidth===0)return;s.strokeStyle=t.style}return s}const b3={compute:function(e,t){const i=t.__,s=[];let n,o,r,a=i.__input[e];Q(a)||(a=[a]),o0=_t.recycleImage(e,i);for(let l,h=0,c=a.length;h<c;h++)(l=x3(e,a[h],t))&&(s.push(l),l.strokeStyle&&(r||(r=1),l.strokeStyle.strokeWidth&&(r=Math.max(r,l.strokeStyle.strokeWidth))));s.length?(i["_"+e]=s,s.every(l=>l.isTransparent)&&(s.some(l=>l.image)&&(n=!0),o=!0),e==="fill"?(Js(i,"__isAlphaPixelFill",n),Js(i,"__isTransparentFill",o)):(Js(i,"__isAlphaPixelStroke",n),Js(i,"__isTransparentStroke",o),Js(i,"__hasMultiStrokeStyle",r))):(i.__removePaint(e,!1),i["_"+e]="")},fill:function(e,t,i,s){i.fillStyle=e,$s(t,i,s)},fills:function(e,t,i,s){let n,o,r;for(let a=0,l=e.length;a<l;a++){if(n=e[a],o=n.originPaint,n.image){if(r?r++:r=1,_t.checkImage(n,!t.__.__font,t,i,s))continue;if(!n.style){r===1&&n.image.isPlacehold&&t.drawImagePlaceholder(n,i,s);continue}}if(i.fillStyle=n.style,n.transform||o.scaleFixed){if(i.save(),n.transform&&i.transform(n.transform),o.scaleFixed){const{scaleX:h,scaleY:c}=t.getRenderScaleData(!0,o.scaleFixed,!1);h!==1&&i.scale(h,c)}o.blendMode&&(i.blendMode=o.blendMode),$s(t,i,s,!0),i.restore()}else o.blendMode?(i.saveBlendMode(o.blendMode),$s(t,i,s),i.restoreBlendMode()):$s(t,i,s)}},fillPathOrText:$s,fillText:function(e,t,i,s){const n=e.__;let o;if(n.__isPlacehold&&n.placeholderColor&&(t.fillStyle=n.placeholderColor),s&&(o=t,(t=t.getSameCanvas(!0,!0)).font=e.__.__font,t.fillStyle="#000"),e.motionText)Z.fillMotionText(e,t,i);else{let r;const{rows:a,decorationY:l}=n.__textDrawData;for(let h=0,c=a.length;h<c;h++)r=a[h],r.text?t.fillText(r.text,r.x,r.y):r.data&&r.data.forEach(d=>{t.fillText(d.char,d.x,r.y)});if(l){const{decorationColor:h,decorationHeight:c}=n.__textDrawData;h&&(t.fillStyle=h),a.forEach(d=>l.forEach(f=>t.fillRect(d.x,d.y+f,d.width,c)))}}s&&(t.beginPath(),e.__drawPathByBox(t,"render"),t.fillStyle=o.fillStyle,t.setTransform(o.getTransform()),t.blendMode="source-in",t.fill(),o.copyWorldByReset(t,e.__nowWorld),t.recycle(e.__nowWorld))},stroke:function(e,t,i,s){const n=t.__;if(n.__strokeWidth)if(n.__font)Z.strokeText(e,t,i,s);else if(n.__pathForStroke)Z.fillStroke(e,t,i,s);else switch(n.strokeAlign){case"center":go(e,1,t,i,s);break;case"inside":(function(o,r,a,l){a.save(),a.clipUI(r),go(o,2,r,a,l),a.restore()})(e,t,i,s);break;case"outside":(function(o,r,a,l){const h=r.__;if(h.__fillAfterStroke)go(o,2,r,a,l);else{const{renderBounds:c}=r.__layout,d=a.getSameCanvas(!0,!0);r.__drawRenderPath(d),go(o,2,r,d,l),d.clipUI(h),d.clearWorld(c),ut.copyCanvasByWorld(r,a,d),d.recycle(r.__nowWorld)}})(e,t,i,s)}},strokes:function(e,t,i,s){Z.stroke(e,t,i,s)},strokeText:function(e,t,i,s){switch(t.__.strokeAlign){case"center":n0(e,1,t,i,s);break;case"inside":rc(e,"inside",t,i,s);break;case"outside":t.__.__fillAfterStroke?n0(e,2,t,i,s):rc(e,"outside",t,i,s)}},drawTextStroke:function(e,t,i){let s,n=e.__.__textDrawData;const{rows:o,decorationY:r}=n;for(let a=0,l=o.length;a<l;a++)s=o[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(r){const{decorationHeight:a}=n;o.forEach(l=>r.forEach(h=>t.strokeRect(l.x,l.y+h,l.width,a)))}},drawStrokesStyle:function(e,t,i,s,n,o){let r;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(r=e[h],(!r.image||!_t.checkImage(r,!1,s,n,o))&&r.style){if(l){const{strokeStyle:d}=r;d?n.setStroke(r.style,a.__getRealStrokeWidth(d)*t,a,d):n.setStroke(r.style,a.__strokeWidth*t,a)}else n.strokeStyle=r.style;r.originPaint.blendMode?(n.saveBlendMode(r.originPaint.blendMode),i?Z.drawTextStroke(s,n,o):n.stroke(),n.restoreBlendMode()):i?Z.drawTextStroke(s,n,o):n.stroke()}},shape:function(e,t,i){const s=t.getSameCanvas(),n=t.bounds,o=e.__nowWorld,r=e.__layout,a=e.__nowWorldShapeBounds||(e.__nowWorldShapeBounds={});let l,h,c,d,f,u;_3(r.strokeSpread?(f3(lc,r.boxBounds,r.strokeSpread),lc):r.boxBounds,o,a);let{scaleX:g,scaleY:p}=e.getRenderScaleData(!0);if(n.includes(a))u=s,l=f=a,h=o;else{let m;if(M.fullImageShadow)m=a;
10else{const x=r.renderShapeSpread?g3(n,Tn.swapAndScale(r.renderShapeSpread,g,p)):n;m=v3(x,a)}d=n.getFitMatrix(m);let{a:y,d:_}=d;d.a<1&&(u=t.getSameCanvas(),e.__renderShape(u,i),g*=y,p*=_),f=ac(a,d),l=m3(f,-d.e,-d.f),h=ac(o,d),y3(h,-d.e,-d.f);const v=i.matrix;v?(c=new Kt(d),c.multiply(v),y*=v.scaleX,_*=v.scaleY):c=d,c.withScale(y,_),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:f,scaleX:g,scaleY:p}}};let Qs,k3=new yt;const{isSame:S3}=I;function hc(e,t,i,s,n,o){let r=!0;const a=e.__;if(t!=="fill"||a.__naturalWidth||(a.__naturalWidth=s.width/a.pixelRatio,a.__naturalHeight=s.height/a.pixelRatio,a.__autoSide&&(e.forceUpdate(),ut.updateBounds(e,!0),e.__layout.boundsChanged=!0,e.__proxyData&&(e.setProxyAttr("width",a.width),e.setProxyAttr("height",a.height)),r=!1)),i.mode==="brush"&&_t.brush(e,t,n),!n.data){_t.createData(n,s,i,o);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&&_t.applyFilter(n,s,i.filter,e),r}function cc(e,t){z0(e,Je.LOAD,t)}function dc(e,t){z0(e,Je.LOADED,t)}function uc(e,t,i){t.error=i,e.forceUpdate("surface"),z0(e,Je.ERROR,t)}function z0(e,t,i){e.hasEvent(t)&&e.emitEvent(new Je(t,i))}function ca(e,t){const{leafer:i}=e;i&&i.viewReady&&(i.renderer.ignore=t)}const{get:E3,translate:C3}=X,B3=new yt,da={},Ht={};function pc(e,t,i,s){const n=$(e)||s?(s?i-s*t:i%t)/((s||Math.floor(i/t))-1):e;return e==="auto"&&n<0?0:n}let tn={},ua={a:1,b:0,c:0,d:1,e:0,f:0};const{get:fo,set:T3,rotateOfOuter:gc,translate:Vi,scaleOfOuter:pa,multiplyParent:O3,scale:r0,rotate:U1,skew:L3}=X;function fc(e,t,i,s,n,o,r,a){r&&U1(e,r),a&&L3(e,a.x,a.y),n&&r0(e,n,o),Vi(e,t.x+i,t.y+s)}const{get:P3,scale:R3,copy:A3}=X,{getFloorScale:_c}=kt,{abs:mc}=Math,F3={image:function(e,t,i,s,n){let o,r;const a=Ce.get(i,i.type);return Qs&&i===Qs.paint&&S3(s,Qs.boxBounds)?o=Qs.leafPaint:(o={type:i.type,image:a},a.hasAlphaPixel&&(o.isTransparent=!0),Qs=a.use>1?{leafPaint:o,paint:i,boxBounds:k3.set(s)}:null),(n||a.loading)&&(r={image:a,attrName:t,attrValue:i}),a.ready?(hc(e,t,i,a,o,s),n&&(cc(e,r),dc(e,r))):a.error?n&&uc(e,r,a.error):(n&&(ca(e,!0),cc(e,r)),o.loadId=a.load(()=>{ca(e,!1),e.destroyed||(hc(e,t,i,a,o,s)&&(a.hasAlphaPixel&&(e.__layout.hitCanvasChanged=!0),e.forceUpdate("surface")),dc(e,r)),o.loadId=void 0},l=>{ca(e,!1),uc(e,r,l),o.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)),o},checkImage:function(e,t,i,s,n){const{scaleX:o,scaleY:r}=_t.getImageRenderScaleData(e,i,s,n),a=e.film?e.nowIndex:o+"-"+r,{image:l,brush:h,data:c,originPaint:d}=e,{exporting:f,snapshot:u}=n;if(!c||e.patternId===a&&!f||u){if(!h||!e.style)return!1}else if(t&&(c.repeat?t=!1:d.changeful||e.film||M.name==="miniapp"||f||(t=M.image.isLarge(l,o,r)||l.width*o>8096||l.height*r>8096)),t)i.__.__isFastShadow&&(s.fillStyle=e.style||"#000",s.fill());else if(!e.style||d.sync||f?_t.createPattern(e,i,s,n):_t.createPatternTask(e,i,s,n),!h||!e.style)return!1;return _t.drawImage(e,o,r,i,s,n),!0},drawImage:function(e,t,i,s,n,o){const{data:r,image:a,brush:l,complex:h}=e;let{width:c,height:d}=a,f=l||a;if(h){const{blendMode:u,opacity:g}=e.originPaint,{transform:p}=r;n.save(),h===2&&n.clipUI(s),u&&(n.blendMode=u),g&&(n.opacity*=g),p&&n.transform(p),f.render(n,0,0,c,d,s,e,t,i),n.restore()}else r.scaleX&&(c*=r.scaleX,d*=r.scaleY),f.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:o}=e;if(e.brush&&_t.addBrushScale(n,e,t),i){const{pixelRatio:r}=i;n.scaleX*=r,n.scaleY*=r}return o&&o.scaleX&&(n.scaleX*=Math.abs(o.scaleX),n.scaleY*=Math.abs(o.scaleY)),n},recycleImage:function(e,t){const i=t["_"+e];if(Q(i)){let s,n,o,r,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&&(o||(o={}),o[a]=!0,Ce.recyclePaint(s),s.brush&&_t.recycleBrush(s,l),t.__willDestroy&&n.parent&&_t.recycleFilter(n,l),n.loading&&(r||(r=t.__input&&t.__input[e]||[],Q(r)||(r=[r])),n.unload(i[h].loadId,!r.some(d=>
10d.url===a))));return o}return null},createPatternTask:function(e,t,i,s){e.patternTask||(e.patternTask=Ce.patternTasker.add(()=>Sn(this,void 0,void 0,function*(){_t.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:o}=_t.getImageRenderScaleData(e,t,i,s),r=e.film?e.nowIndex:n+"-"+o;if(e.patternId!==r&&!t.destroyed&&(!M.image.isLarge(e.image,n,o)||e.data.repeat)){const{image:a,brush:l,data:h}=e,{transform:c,gap:d}=h,f=_t.getPatternFixScale(e,n,o);let u,g,p,{width:m,height:y}=a,{opacity:_}=e.originPaint;(l||_===1)&&(_=void 0),f&&(n*=f,o*=f),m*=n,y*=o,d&&!l&&(g=d.x*n/mc(h.scaleX||1),p=d.y*o/mc(h.scaleY||1)),(c||n!==1||o!==1)&&(n*=_c(m+(g||0)),o*=_c(y+(p||0)),u=P3(),c&&A3(u,c),R3(u,1/n,1/o));const v=a.getCanvas(m,y,_,void 0,g,p,t.leafer&&t.leafer.config.smooth,h.interlace);l?(e.style=v,_t.cacheBrush(e,t,i,s)):e.style=a.getPattern(v,h.repeat||M.origin.noRepeat||"no-repeat",u,e),e.patternId=r}},getPatternFixScale:function(e,t,i){const{image:s}=e;let n,o=M.image.maxPatternSize,r=s.width*s.height;return s.isSVG?t>1&&(n=Math.ceil(t)/t):o>r&&(o=r),(r*=t*i)>o&&(n=Math.sqrt(o/r)),n},createData:function(e,t,i,s){e.data=_t.getPatternData(i,s,t)},getPatternData:function(e,t,i){e.padding&&(t=B3.set(t).shrink(e.padding)),e.mode==="strench"&&(e.mode="stretch");const{width:s,height:n}=i,{mode:o,align:r,offset:a,scale:l,size:h,rotation:c,skew:d,clipSize:f,repeat:u,gap:g,interlace:p}=e,m=t.width===s&&t.height===n,y={mode:o},_=r!=="center"&&(c||0)%180==90;let v,x;switch(I.set(Ht,0,0,_?n:s,_?s:n),o&&o!=="cover"&&o!=="fit"?((l||h)&&(kt.getScaleData(l,h,i,da),v=da.scaleX,x=da.scaleY),(r||g||u)&&(v&&I.scale(Ht,v,x,!0),r&&f1.toPoint(r,Ht,t,Ht,!0,!0))):m&&!c||(v=x=I.getFitScale(t,Ht,o!=="fit"),I.put(t,i,r,v,!1,Ht),I.scale(Ht,v,x,!0)),a&&j.move(Ht,a),o){case"stretch":m?v&&(v=x=void 0):(v=t.width/s,x=t.height/n,_t.stretchMode(y,t,v,x));break;case"normal":case"clip":if(Ht.x||Ht.y||v||f||c||d){let b,C;f&&(b=t.width/f.width,C=t.height/f.height),_t.clipMode(y,t,Ht.x,Ht.y,v,x,c,d,b,C),b&&(v=v?v*b:b,x=x?x*C:C)}break;case"repeat":(!m||v||c||d)&&_t.repeatMode(y,t,s,n,Ht.x,Ht.y,v,x,c,d,r,e.freeTransform);case"brush":u||(y.repeat="repeat");const k=N(u);(g||k)&&(y.gap=function(b,C,O,A,P){let S,B;return N(b)?(S=b.x,B=b.y):S=B=b,{x:pc(S,O,P.width,C&&C.x),y:pc(B,A,P.height,C&&C.y)}}(g,k&&u,Ht.width,Ht.height,t));break;default:v&&_t.fillOrFitMode(y,t,Ht.x,Ht.y,v,x,c)}return y.transform||o==="brush"||(t.x||t.y)&&C3(y.transform=E3(),t.x,t.y),v&&(y.scaleX=v,y.scaleY=x),u&&(y.repeat=$(u)?u==="x"?"repeat-x":"repeat-y":"repeat"),p&&(y.interlace=tt(p)||p.type==="percent"?{type:"x",offset:p}:p),y}
10,stretchMode:function(e,t,i,s){const n=fo(),{x:o,y:r}=t;o||r?Vi(n,o,r):i>0&&s>0&&(n.onlyScale=!0),r0(n,i,s),e.transform=n},fillOrFitMode:function(e,t,i,s,n,o,r){const a=fo();Vi(a,t.x+i,t.y+s),r0(a,n,o),r&&gc(a,{x:t.x+t.width/2,y:t.y+t.height/2},r),e.transform=a},clipMode:function(e,t,i,s,n,o,r,a,l,h){const c=fo();fc(c,t,i,s,n,o,r,a),l&&(r||a?(T3(ua),pa(ua,t,l,h),O3(c,ua)):pa(c,t,l,h)),e.transform=c},repeatMode:function(e,t,i,s,n,o,r,a,l,h,c,d){const f=fo();if(d)fc(f,t,n,o,r,a,l,h);else{if(l)if(c==="center")gc(f,{x:i/2,y:s/2},l);else switch(U1(f,l),l){case 90:Vi(f,s,0);break;case 180:Vi(f,i,s);break;case 270:Vi(f,0,i)}tn.x=t.x+n,tn.y=t.y+o,Vi(f,tn.x,tn.y),r&&pa(f,tn,r,a)}e.transform=f}},{toPoint:yc}=ye,{hasTransparent:D3}=gt,ga={},fa={};function _a(e,t,i,s){if(i){let n,o,r,a;for(let l=0,h=i.length;l<h;l++)n=i[l],$(n)?(r=l/(h-1),o=gt.string(n,s)):(r=n.offset,o=gt.string(n.color,s)),t.addColorStop(r,o),!a&&D3(o)&&(a=!0);a&&(e.isTransparent=!0)}}const{getAngle:M3,getDistance:I3}=j,{get:z3,rotateOfOuter:vc,scaleOfOuter:wc}=X,{toPoint:xc}=ye,Pi={},ma={};function ya(e,t,i,s,n){let o;const{width:r,height:a}=e;if(r!==a||s){const l=M3(t,i);o=z3(),n?(wc(o,t,r/a*(s||1),1),vc(o,t,l+90)):(wc(o,t,1,r/a*(s||1)),vc(o,t,l))}return o}const{getDistance:W3}=j,{toPoint:bc}=ye,Xe={},va={},H3={linearGradient:function(e,t){let{from:i,to:s,type:n,opacity:o}=e;yc(i||"top",t,ga),yc(s||"bottom",t,fa);const r=M.canvas.createLinearGradient(ga.x,ga.y,fa.x,fa.y),a={type:n,style:r};return _a(a,r,e.stops,o),a},radialGradient:function(e,t){let{from:i,to:s,type:n,opacity:o,stretch:r}=e;xc(i||"center",t,Pi),xc(s||"bottom",t,ma);const a=M.canvas.createRadialGradient(Pi.x,Pi.y,0,Pi.x,Pi.y,I3(Pi,ma)),l={type:n,style:a};_a(l,a,e.stops,o);const h=ya(t,Pi,ma,r,!0);return h&&(l.transform=h),l},conicGradient:function(e,t){let{from:i,to:s,type:n,opacity:o,rotation:r,stretch:a}=e;bc(i||"center",t,Xe),bc(s||"bottom",t,va);const l=M.conicGradientSupport?M.canvas.createConicGradient(r?r*at:0,Xe.x,Xe.y):M.canvas.createRadialGradient(Xe.x,Xe.y,0,Xe.x,Xe.y,W3(Xe,va)),h={type:n,style:l};_a(h,l,e.stops,o);const c=ya(t,Xe,va,a||1,M.conicGradientRotate90);return c&&(h.transform=c),h},getTransform:ya},{copy:j3,move:N3,toOffsetOutBounds:U3}=I,{max:_o,abs:V3}=Math,wa={},kc=new Kt,en={};function V1(e,t){let i,s,n,o,r=0,a=0,l=0,h=0;return t.forEach(c=>{i=c.x||0,s=c.y||0,o=1.5*(c.blur||0),n=V3(c.spread||0),r=_o(r,n+o-s),a=_o(a,n+o+i),l=_o(l,n+o+s),h=_o(h,n+o-i)}),r===a&&a===l&&l===h?r:[r,a,l,h]}function Sc(e,t,i){const{shapeBounds:s}=i;let n,o;M.fullImageShadow?(j3(wa,e.bounds),N3(wa,t.x-s.x,t.y-s.y),n=e.bounds,o=wa):(n=s,o=t),e.copyWorld(i.canvas,n,o)}const{toOffsetOutBounds:Y3}=I,sn={},X3=V1,q3={shadow:function(e,t,i){let s,n;const{__nowWorld:o}=e,{shadow:r}=e.__,{worldCanvas:a,bounds:l,renderBounds:h,shapeBounds:c,scaleX:d,scaleY:f}=i,u=t.getSameCanvas(),g=r.length-1;U3(l,en,h),r.forEach((p,m)=>{let y=1;if(p.scaleFixed){const _=Math.abs(o.scaleX);_>1&&(y=1/_)}u.setWorldShadow(en.offsetX+(p.x||0)*d*y,en.offsetY+(p.y||0)*f*y,(p.blur||0)*d*y,gt.string(p.color)),n=wi.getShadowTransform(e,u,i,p,en,y),n&&u.setTransform(n),Sc(u,en,i),n&&u.resetTransform(),s=h,p.box&&(u.restore(),u.save(),a&&(u.copyWorld(u,h,o,"copy"),s=o),a?u.copyWorld(a,o,o,"destination-out"):u.copyWorld(i.canvas,c,l,"destination-out")),ut.copyCanvasByWorld(e,t,u,s,p.blendMode),g&&m<g&&u.clearWorld(s)}),u.recycle(s)},innerShadow:function(e,t,i){let s,n;const{__nowWorld:o}=e,{innerShadow:r}=e.__,{worldCanvas:a,bounds:l,renderBounds:h,shapeBounds:c,scaleX:d,scaleY:f}=i,u=t.getSameCanvas(),g=r.length-1;Y3(l,sn,h),r.forEach((p,m)=>{let y=1;if(p.scaleFixed){const _=Math.abs(o.scaleX);_>1&&(y=1/_)}u.save(),u.setWorldShadow(sn.offsetX+(p.x||0)*d*y,sn.offsetY+(p.y||0)*f*y,(p.blur||0)*d*y),n=wi.getShadowTransform(e,u,i,p,sn,y,!0),n&&u.setTransform(n),Sc(u,sn,i),u.restore(),a?(u.copyWorld(u,h,o,"copy"),u.copyWorld(a,o,o,"source-out"),s=o):(u.copyWorld(i.canvas,c,l,"source-out"),s=h),u.fillWorld(s,gt.string(p.color),"source-in"),ut.copyCanvasByWorld(e,t,u,s,p.blendMode),g&&m<g&&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:V1,getShadowTransform:function(e,t,i,s,n,o,r){if(s.spread){const a=2*s.spread*o*(r?-1:1),{width:l,height:h}=e.__layout.strokeBounds;return kc.set().scaleOfOuter({x:(n.x+n.width/2)*t.pixelRatio,y:(n.y+n.height/2)*t.pixelRatio},1+a/l,1+a/h),kc}},isTransformShadow(e){},getInnerShadowSpread:X3},{excludeRenderBounds:Ec}=Pn;let a0;function mo(e,t,i,s,n,o,r,a){switch(t){case"grayscale":a0||(a0=!0,n.useGrayscaleAlpha(e.__nowWorld));case"alpha":(function(l,h,c,d,f,u){const g=l.__nowWorld;c.resetTransform(),c.opacity=1,c.useMask(d,g),u&&d.recycle(g),Cc(l,h,c,1,f,u)})(e,i,s,n,r,a);break;case"opacity-path":Cc(e,i,s,o,r,a);break;
10case"path":a&&i.restore()}}function xa(e){return e.getSameCanvas(!1,!0)}function Cc(e,t,i,s,n,o){const r=e.__nowWorld;t.resetTransform(),t.opacity=s,t.copyWorld(i,r,void 0,n),o?i.recycle(r):i.clearWorld(r)}ft.prototype.__renderMask=function(e,t){let i,s,n,o,r,a;const{children:l}=this;for(let h=0,c=l.length;h<c;h++){if(i=l[h],a=i.__.mask,a){r&&(mo(this,r,e,n,s,o,void 0,!0),s=n=null),a!=="clipping"&&a!=="clipping-path"||Ec(i,t)||i.__render(e,t),o=i.__.opacity,a0=!1,a==="path"||a==="clipping-path"?(o<1?(r="opacity-path",n||(n=xa(e))):(r="path",e.save()),i.__clip(n||e,t)):(r=a==="grayscale"?"grayscale":"alpha",s||(s=xa(e)),n||(n=xa(e)),i.__render(s,t));continue}const d=o===1&&i.__.__blendMode;d&&mo(this,r,e,n,s,o,void 0,!1),Ec(i,t)||i.__render(n||e,t),d&&mo(this,r,e,n,s,o,d,!1)}mo(this,r,e,n,s,o,void 0,!0)};const Y1=`>)]}%!?,.:;'"》)」〉』〗】〕}┐>’”!?,、。:;‰`,G3=Y1+"_#~&*+\\=|≮≯≈≠=…",K3=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 Rn(e){const t={};return e.split("").forEach(i=>t[i]=!0),t}const Z3=Rn("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"),$3=Rn(`{[(<'"《(「〈『〖【〔{┌<‘“=¥¥$€££¢¢`),J3=Rn(Y1),Q3=Rn(G3),t4=Rn("- —/~|┆·");var er;(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"})(er||(er={}));const{Letter:Bc,Single:e4,Before:i4,After:s4,Symbol:n4,Break:o4}=er;function r4(e){return Z3[e]?Bc:t4[e]?o4:$3[e]?i4:J3[e]?s4:Q3[e]?n4:K3.test(e)?e4:Bc}const a4={trimRight(e){const{words:t}=e;let i,s=0,n=t.length;for(let o=n-1;o>-1&&(i=t[o].data[0],i.char===" ");o--)s++,e.width-=i.width;s&&t.splice(n-s,s)}};function l4(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:h4}=a4,{Letter:ba,Single:nn,Before:Tc,After:ka,Symbol:c4,Break:Oc}=er;let ms,Ae,$t,Jt,Sa,we,qe,En,Os,ge,li,Ea,on,ys,Cn,Yo,l0,gs=[];function Ca(e,t){Os&&!En&&(En=Os),ms.data.push({char:e,width:t}),$t+=t}function Ri(e){e&&(Jt+=e,ms.addWidth=e),Jt+=$t,ms.width=$t,Ae.words.push(ms),ms={data:[]},$t=0}function rn(){ys&&(Cn.paraNumber++,Ae.paraStart=!0,ys=!1),Os&&(Ae.startCharSize=En,Ae.endCharSize=Os,En=0),Ae.width=Jt,Yo.width?h4(Ae):l0&&X1(),gs.push(Ae),Ae={words:[]},Jt=0}function X1(){Jt>(Cn.maxWidth||0)&&(Cn.maxWidth=Jt)}const{top:yo,right:Lc,bottom:Pc,left:vo}=Ka;function wo(e,t,i){const{bounds:s,rows:n}=e;s[t]+=i;for(let o=0;o<n.length;o++)n[o][t]+=i}const d4={getDrawData:function(e,t){$(e)||(e=String(e));let i=0,s=0,n=t.__getInput("width")||0,o=t.__getInput("height")||0;const{__padding:r}=t;t.motionText&&(n=o=0),r&&(n?(i=r[vo],n-=r[Lc]+r[vo],!n&&(n=.01)):t.autoSizeAlign||(i=r[vo]),o?(s=r[yo],o-=r[yo]+r[Pc],!o&&(o=.01)):t.autoSizeAlign||(s=r[yo]));const a={bounds:{x:i,y:s,width:n,height:o},rows:[],paraNumber:0,font:M.canvas.font=t.__font};return function(l,h,c){Cn=l,gs=l.rows,Yo=l.bounds,l0=!Yo.width&&!c.autoSizeAlign;const{paraIndent:d,textCase:f}=c,{canvas:u}=M,{width:g}=Yo;if(c.__isCharMode){const p=c.textWrap!=="none",m=c.textWrap==="break",y=c.__letterSpacing,_=c.__wordSpacing;ys=!0,li=null,En=qe=Os=$t=Jt=0,ms={data:[]},Ae={words:[]};for(let v=0,x=(h=[...h]).length;v<x;v++)we=h[v],we===`
11`?($t&&Ri(),Ae.paraEnd=!0,rn(),ys=!0):(ge=r4(we),ge===ba&&f!=="none"&&(we=l4(we,f,!$t)),qe=u.measureText(we).width,y&&(y<0&&(Os=qe),qe+=y),Ea=ge===nn&&(li===nn||li===ba)||li===nn&&ge!==ka,on=!(ge!==Tc&&ge!==nn||li!==c4&&li!==ka),Sa=ys&&d?g-d:g,p&&g&&Jt+$t+qe>Sa&&(m?($t&&Ri(),Jt&&rn()):(on||(on=ge===ba&&li==ka),(Ea||on||ge===Oc||ge===Tc||ge===nn||$t+qe>Sa)&&$t&&Ri(),Jt&&rn())),we===" "&&ys!==!0&&Jt+$t===0||(ge===Oc?(we===" "&&$t&&Ri(_),Ca(we,qe),Ri()):((Ea||on)&&$t&&Ri(_),Ca(we,qe))),li=ge);$t&&Ri(),Jt&&rn(),gs.length>0&&(gs[gs.length-1].paraEnd=!0)}else h.split(`
12`).forEach(p=>{Cn.paraNumber++,Jt=u.measureText(p).width,gs.push({x:d||0,text:p,width:Jt,paraStart:!0}),l0&&X1()})}(a,e,t),r&&function(l,h,c,d,f){if(!d&&c.autoSizeAlign)switch(c.textAlign){case"left":wo(h,"x",l[vo]);break;case"right":wo(h,"x",-l[Lc])}if(!f&&c.autoSizeAlign)switch(c.verticalAlign){case"top":wo(h,"y",l[yo]);break;case"bottom":wo(h,"y",-l[Pc])}}(r,a,t,n,o),function(l,h){const{rows:c,bounds:d}=l,f=c.length,{__lineHeight:u,__baseLine:g,__letterSpacing:p,__clipText:m,textAlign:y,verticalAlign:_,paraSpacing:v,autoSizeAlign:x}=h;let{x:k,y:b,width:C,height:O}=d,A=u*f+(v?v*(l.paraNumber-1):0),P=g;if(m&&A>O)A=Math.max(h.__autoHeight?A:O,u),f>1&&(l.overflow=f);else if(O||x)switch(_){case"middle":b+=(O-A)/2;break;case"bottom":b+=O-A}P+=b;let S,B,E,L=C||x?C:l.maxWidth;for(let F=0,D=f;F<D;F++){if(S=c[F],S.x=k,S.width<C||S.width>C&&!m)switch(y){case"center":S.x+=(L-S.width)/2;break;case"right":S.x+=L-S.width}S.paraStart&&v&&F>0&&(P+=v),S.y=P,P+=u,l.overflow>F&&P>A&&(S.isOverflow=!0,l.overflow=F+1),B=S.x,E=S.width,p<0&&(S.width<0?(E=-S.width+h.fontSize+p,B-=E,E+=h.fontSize):E-=p),B<d.x&&(d.x=B),E>d.width&&(d.width=E),m&&C&&C<E&&(S.isOverflow=!0,l.overflow||(l.overflow=c.length))}d.y=b,d.height=A}(a,t),t.__isCharMode&&function(l,h,c){const{rows:d}=l,{textAlign:f,paraIndent:u}=h,g=h.__letterSpacing||h.motionText,p=h.__wordSpacing,m=c&&f.includes("both"),y=m||c&&f.includes("justify"),_=y&&f.includes("letter");let v,x,k,b,C,O,A,P,S,B;d.forEach(E=>{E.words&&(C=u&&E.paraStart?u:0,P=E.words.length,y&&(B=!E.paraEnd||m,x=c-E.width-C,_?b=x/(E.words.reduce((L,F)=>L+F.data.length,0)-1):k=P>1?x/(P-1):0),O=g||E.isOverflow||_?0:k||p?1:2,E.isOverflow&&!g&&(E.textMode=!0),O===2?(E.x+=C,function(L){L.text="",L.words.forEach(F=>{F.data.forEach(D=>{L.text+=D.char})})}(E)):(E.x+=C,v=E.x,E.data=[],E.words.forEach((L,F)=>{O===1?(A={char:"",x:v},v=function(D,U,J){return D.forEach(St=>{J.char+=St.char,U+=St.width}),U}(L.data,v,A),(E.isOverflow||A.char!==" ")&&E.data.push(A)):v=function(D,U,J,St,ki){return D.forEach(Si=>{(St||Si.char!==" ")&&(Si.x=U,J.push(Si)),U+=Si.width,ki&&(U+=ki)}),U}(L.data,v,E.data,E.isOverflow,B&&b),L.addWidth&&(v+=L.addWidth),B&&(S=F===P-1,k?S||(v+=k,E.width+=k):b&&(E.width+=b*(L.data.length-(S?1:0))))})),E.words=null)})}(a,t,n),a.overflow&&function(l,h,c,d){const{rows:f,overflow:u}=l;let{textOverflow:g}=h;if(u&&f.splice(u),d&&g&&g!=="show"){let p,m;g==="hide"?g="":g==="ellipsis"&&(g="...");const y=g?M.canvas.measureText(g).width:0,_=c+d-y;
12(h.textWrap==="none"?f:[f[u-1]]).forEach(v=>{if(v.isOverflow&&v.data){let x=v.data.length-1;for(let k=x;k>-1&&(p=v.data[k],m=p.x+p.width,!(k===x&&m<_));k--){if(m<_&&p.char!==" "||!k){v.data.splice(k+1),v.width-=p.width;break}v.width-=p.width}v.width+=y,v.data.push({char:g,x:m}),v.textMode&&function(k){k.text="",k.data.forEach(b=>{k.text+=b.char}),k.data=null}(v)}})}}(a,t,i,n),t.textDecoration!=="none"&&function(l,h){let c,d=0;const{fontSize:f,textDecoration:u}=h;switch(l.decorationHeight=f/11,N(u)?(c=u.type,u.color&&(l.decorationColor=gt.string(u.color)),u.offset&&(d=Math.min(.3*f,Math.max(u.offset,.15*-f)))):c=u,c){case"under":l.decorationY=[.15*f+d];break;case"delete":l.decorationY=[.35*-f];break;case"under-delete":l.decorationY=[.15*f+d,.35*-f]}}(a,t),a}},u4={string:function(e,t){if(!e)return"#000";const i=tt(t)&&t<1;if($(e)){if(!i||!gt.object)return e;e=gt.object(e)}let s=W(e.a)?1:e.a;i&&(s*=t);const n=e.r+","+e.g+","+e.b;return s===1?"rgb("+n+")":"rgba("+n+","+s+")"}};Object.assign(I1,d4),Object.assign(gt,u4),Object.assign(Z,b3),Object.assign(_t,F3),Object.assign(Uo,H3),Object.assign(wi,q3),Object.assign(Ot,{interaction:(e,t,i,s)=>new p3(e,t,i,s),hitCanvas:(e,t)=>new M1(e,t),hitCanvasManager:()=>new a3}),M.origin={createCanvas(e,t){const i=document.createElement("canvas");return i.width=e,i.height=t,i},canvasToDataURL:(e,t,i)=>{const s=mi.mimeType(t),n=e.toDataURL(s,i);return s==="image/bmp"?n.replace("image/png;","image/bmp;"):n},canvasToBolb:(e,t,i)=>new Promise(s=>e.toBlob(s,mi.mimeType(t),i)),canvasSaveAs:(e,t,i)=>{const s=e.toDataURL(mi.mimeType(mi.fileType(t)),i);return M.origin.download(s,t)},download(e,t){return Sn(this,void 0,void 0,function*(){let i=document.createElement("a");i.href=e,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)})},loadImage:(e,t,i)=>new Promise((s,n)=>{const o=new M.origin.Image;t&&(o.setAttribute("crossOrigin",t),o.crossOrigin=t),o.onload=()=>{s(o)},o.onerror=r=>{n(r)},o.src=M.image.getRealURL(e)}),loadContent(e){return Sn(this,arguments,void 0,function*(t,i="text"){const s=yield fetch(t);if(!s.ok)throw new Error(`${s.status}`);return yield s[i]()})},Image,PointerEvent,DragEvent},M.event={stopDefault(e){e.preventDefault()},stopNow(e){e.stopImmediatePropagation()},stop(e){e.stopPropagation()}},M.canvas=Ot.canvas(),M.conicGradientSupport=!!M.canvas.context.createConicGradient;class q{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&&(K.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(Pt.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:o,style:r}=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(r),t.set(l),t.__.__getInput("fill")===void 0&&(t.fill=a[h%8]),this.view.add(t),i+=n+o)})}allowIndex(t){return!this.config.list||this.config.list.includes(t)}}const p4=it.get("CaseCreator"),Ls={list:{},register(e){const{tag:t}=e.prototype;Ba[t]?p4.warn("register the repeat Case: ",t):Ba[t]=e},get:(e,t,i)=>(t||(t=new de({view:window})),new Ba[e](t,i))},{list:Ba}=Ls;function Y(){return e=>{Ls.register(e)}}let Rc=class{get tag(){return"AppCase"}constructor(){const e=new Ts({view:window,fill:"#333",hittable:!1}),t=new de;t.name="first",e.add(t),Ls.get("PathCase",t);const i=new de({type:"draw"});e.add(i),Ls.get("RectCase",i),setTimeout(()=>{i.fill="#00000050",e.hittable=!0,console.log(e)},2e3),it.showRepaint=!0,it.enable=!0}};Rc=w([Y()],Rc);let Ac=class{get tag(){return"AppRealCanvasCase"}constructor(){const e=new Ts({view:window,fill:"#333",realCanvas:!0}),t=new de;t.name="first",e.add(t),Ls.get("PathCase",t);const i=new de({type:"draw"});e.add(i),Ls.get("RectCase",i),i.add(new nt({width:0,height:0})),setTimeout(()=>{e.width=500,i.fill="#00000050"},2e3),it.showRepaint=!0,it.enable=!0,console.log(e)}};Ac=w([Y()],Ac);let Fc=class extends q{get tag(){return"RectCase"}getUI(e){return new nt(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]}]}};Fc=w([Y()],Fc);let Dc=class extends q{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}]}};Dc=w([Y()],Dc);let Mc=class extends q{get tag(){return"PolygonCase"}getUI(e){return new Re(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}
12,{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}]}};Mc=w([Y()],Mc);let Ic=class extends q{get tag(){return"StarCase"}getUI(e){return new Ui(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}]}};Ic=w([Y()],Ic);let h0=class extends q{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 _e(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}}]}};h0=w([Y()],h0);let zc=class extends q{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 _e(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},{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]}]}};zc=w([Y()],zc);let c0=class extends q{get tag(){return"PathCase"}getUI(e){return e.scaleX=e.scaleY=.1,new $e(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.
12184 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
1211 -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 
12-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 
120.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
120801 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 
12-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
1211 -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 
120.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.
12135901 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
1206008 -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.
12181202 -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 
12-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
120801 -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 
120.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
125.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"}]}};c0=w([Y()],c0);let d0=class extends q{get tag(){return"PenCase"}getUI(e,t){const i=new yn(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 V({x:60,y:38,fill:s[5],fontSize:16,text:"ON"}))}return i}getData(){return[{},{},{},{},{},{}]}};d0=w([Y()],d0);let Wc=class extends q{get tag(){return"BoxCase"}getUI(e,t){const i=new Bt(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}]}};Wc=w([Y()],Wc);let u0=class extends q{get tag(){return"FrameCase"}getUI(e,t){const i=new Ni(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}]}};u0=w([Y()],u0);let p0=class extends q{get tag(){return"TextCase"}getUI(e,t){return t>=6?(e.x+=20,e.y+=40):(e.textAlign="center",e.verticalAlign="middle"),new V(e)}
12getData(){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.
13Action 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}}}]}};p0=w([Y()],p0);let Hc=class extends q{get tag(){return"TextWrapCase"}getUI(e){const t=new V(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 o=t.textDecoration;switch(N(o)?(n=o.type,o.color&&(s.textDecorationColor=gt.string(o.color))):n=o,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:
14
15            Better handling of slope and stairs movement
16            Implementing camera collision to prevent clipping
17            Adding a dust effect triggered by character movement or jumps
18            Developing a character animation state machine for seamless animation transitions
19            Contributions
20            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.
21
22            Thank you!`,lineHeight:{value:1.5,type:"percent"}},{lineHeight:{value:1.5,type:"percent"},text:`Found 3,665 matches in 32 milliseconds.
23
24                        文本
25                        /zh-CN/docs/Web/SVG/Tutorial/Texts
26
27                        …« 上一页 下一页 » 在 SVG 中有两种截然不同的文本模式。一种是写在图像中的文本,另一种是 SVG 字体。关于后者我们将在教程的后面进行讲解,现在我们主要集中前者:写在图像中的文本。…
28                        …和形状元素类似,属性fill可以给文本填充颜色,属性stroke可以给文本描边,形状元素和文本元素都可以引用渐变或图案,相比较 CSS2.1 只能绘制简单的彩色文字,SVG 显得更具有优势。 文本的一个至关重要的部分是它显示的字体。…
29                        …SVG 提供了一些属性,类似于它们的 CSS 同行,用来激活文本选区。…`},{lineHeight:{value:1.5,type:"percent"},text:`单音节词基本都是重读音节.含有两个以上音节的单词中才涉及到重读音节和非重读音节的区分。
30
31                        ①单音节词几乎都按重读音节对待.
32
33                        ②双音节名词60%以上是第一个音节重读;双音节动词有90%以上是第二个音节重读;
34
35                        ③三个或三个以上音节的单词中有比较大的一部分是倒数第三个音节重读;
36
37                        ④能辨清词头、词干和词尾的,一般都是词干重读;
38
39                        ⑤含有—tion—sion,—ssion等字母组合的,肯定是该字母组合前紧挨着那个的音节重读.
40
41                        参考资料来源:百度百科-音节
42
43                        `},{lineHeight:{value:1.5,type:"percent"},text:`
44            I、标点符号 ˉˇ¨‘’々~‖∶”’‘|〃〔〕《》「」『』.〖〗【【】()〔〕{}
45            J、数字序号 ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ①②③④⑤⑥⑦⑧⑨⑩一二三四五六七八九十
46            K、数学符号 ≈≡≠=≤≥<>≮≯∷±+-×÷/∫∮∝∞â
46ˆ§âˆ¨âˆ‘∏∪∩∈∵∴⊥‖∠⌒⊙≌∽√
47            L、单位符号 °′〃$£¥‰%℃¤¢
48            M、制表符 ┌┍┎┏┐┑┒┓—┄┈├┝┞┟┠┡┢┣|┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╂╁╃
49            N、特殊符号 §№☆★○●◎◇◆□■△▲※→←↑↓〓#&@\^_
50            O、补充收集 ⊙●○①⊕◎Θ⊙¤㊣▂ ▃ ▄ ▅ ▆ ▇ █ █ ■ ▓ 回 □ 〓≡ ╝╚╔ ╗╬ ═ ╓ ╩ ┠ ┨┯ ┷┏ ┓┗ ┛┳⊥『』┌♀◆◇◣◢◥▲▼△▽⊿`},{lineHeight:{value:1.5,type:"percent"},text:`
512.
52These include most control characters and single characters from Unicode surrogate pairs.
53这些字符包括大多数的控制字符和;Unicode代理对*surrogatepair)中的单个字符。
54www.ibm.com
553.
56Most of the important regular expression language operators are unescaped single characters .
57大多数重要的正则表达式语言运算符都是非转义的单个字符。`},{lineHeight:{value:1.5,type:"percent"},text:`
58★中、英文标点符号名称大全——珍藏版★学了这么多年英语了,为什么从来没有人很系统地教我们英文标点符号怎么念?+plus加号;正号-minus减号;负号±plusorminus正负号×ismultipliedby乘号÷isdividedby除号=isequalto等于号≠isnotequalto不等于号≡isequivalentto全等于号≌isequaltoor
59查看更多同站结果>
60
61百度文库
62常用的标点符号的英文说法
632022年7月14日 :冒号 colon [ˈkəʊlən]n.冒号; 结肠 ;分号 semicolon [ˌsemiˈkəʊlən] !惊叹号 exclamation mark [ˌekskləˈmeɪʃn]n.惊叫; 感叹(词) ?问号 questi...
64微信公众平台
65各种标点符号的英文是什么?看这里!
662018年7月1日 + plus 加号;正号 - minus 减号;负号 ± plus or minus 正负号 × is multiplied by 乘号 ÷ is divided by 除号 = is equal to 等于号 ≠ is not equal to 不等于号...
67沙粒英语
68英语的标点符号有哪些 - 百度知道
69
703个回答 - 回答时间: 2021年8月24日
71
72最佳答案: 英语中共有14个标点符号,分别是:the period (句号 ),question mark (问号),exclamation point(感叹号), ...
73更多关于标点符号 英文的问题>>
74百度知道
75大家还在搜
76各种标点符号用英文怎么说英文标点符号格式图片᪄ᩏᩘ特殊符号英语标点符号使用规则语文常用标点符号大全100个标点符号题及答案
77英文怎么说 | 标点符号
782022年8月5日 "标点符号"英文叫punctuation, 或者punctuation mark。 今天说说每个标点符号用英文怎么说; ​ 01 ​ 句号 ​和中文不一样,英文的句号是实心的点; full stop 是...
79个人图书馆
80英文标点符号,你真的会用吗?3分钟教你彻底搞懂英语标点符号!
812019年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...
82满满智己益智
83各种标点符号用英文都怎么说?
842017年11月29日 Punctuation Marks 标点符号 1 , 逗号comma 2 . 句号period(美国英语)/full stop(英国英语) 3 ? 问号question mark 4 : 冒号colon 5 ; 分号semicolon 6 ! 感...
85微信公众平台
86干货-常见标点符号的英文表达_in
872021年4月30日 英文标点 句号(.):full stop/full point/period。有的时候,你想表达我说完这句话了,也可以用period这个词加强语气。比如“I think Red Scarf is the best, period.” 嘿嘿…… 逗号...
88搜狐网
89各种标点符号的英文单词 - 百度文库
903页 发布时间: 2022年11月05日
91各种标点符号的英文单词 .period 句号 ,comma 逗号 :colon 冒号 ;semicolon 分号 !exclamation 惊叹号 ?question mark 问号  ̄hyphen 连字符 ' apostrophe 省略号;所...
92百度文库
93`}]}};Hc=w([Y()],Hc);let jc=class extends q{get tag(){return"TextLetterSpaceCase"}getUI(e){const t=new V(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 o=t.textDecoration;switch(N(o)?(n=o.type,o.color&&(s.textDecorationColor=gt.string(o.color))):n=o,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;
93+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:
94
95                        Better handling of slope and stairs movement
96                        Implementing camera collision to prevent clipping
97                        Adding a dust effect triggered by character movement or jumps
98                        Developing a character animation state machine for seamless animation transitions
99                        Contributions
100                        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.
101
102                        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.
103
104                                    文本
105                                    /zh-CN/docs/Web/SVG/Tutorial/Texts
106
107                                    …« 上一页 下一页 » 在 SVG 中有两种截然不同的文本模式。一种是写在图像中的文本,另一种是 SVG 字体。关于后者我们将在教程的后面进行讲解,现在我们主要集中前者:写在图像中的文本。…
108                                    …和形状元素类似,属性fill可以给文本填充颜色,属性stroke可以给文本描边,形状元素和文本元素都可以引用渐变或图案,相比较 CSS2.1 只能绘制简单的彩色文字,SVG 显得更具有优势。 文本的一个至关重要的部分是它显示的字体。…
109                                    …SVG 提供了一些属性,类似于它们的 CSS 同行,用来激活文本选区。…`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:`单音节词基本都是重读音节.含有两个以上音节的单词中才涉及到重读音节和非重读音节的区分。
110
111                                    ①单音节词几乎都按重读音节对待.
112
113                                    ②双音节名词60%以上是第一个音节重读;双音节动词有90%以上是第二个音节重读;
114
115                                    ③三个或三个以上音节的单词中有比较大的一部分是倒数第三个音节重读;
116
117                                    ④能辨清词头、词干和词尾的,一般都是词干重读;
118
119                                    ⑤含有—tion—sion,—ssion等字母组合的,肯定是该字母组合前紧挨着那个的音节重读.
120
121                                    参考资料来源:百度百科-音节
122
123                                    `},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:`
124                        I、标点符号 ˉˇ¨‘’々~‖∶”’‘|〃〔〕《》「」『』.〖〗【【】()〔〕{}
125                        J、数字序号 ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ①②③④⑤⑥⑦⑧⑨⑩一二三四五六七八九十
126                        K、数学符号 ≈≡≠=≤≥<>≮≯∷±+-×÷/∫∮∝∞â
126ˆ§âˆ¨âˆ‘∏∪∩∈∵∴⊥‖∠⌒⊙≌∽√
127                        L、单位符号 °′〃$£¥‰%℃¤¢
128                        M、制表符 ┌┍┎┏┐┑┒┓—┄┈├┝┞┟┠┡┢┣|┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╂╁╃
129                        N、特殊符号 §№☆★○●◎◇◆□■△▲※→←↑↓〓#&@\^_
130                        O、补充收集 ⊙●○①⊕◎Θ⊙¤㊣▂ ▃ ▄ ▅ ▆ ▇ █ █ ■ ▓ 回 □ 〓≡ ╝╚╔ ╗╬ ═ ╓ ╩ ┠ ┨┯ ┷┏ ┓┗ ┛┳⊥『』┌♀◆◇◣◢◥▲▼△▽⊿`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:`
131            2.
132            These include most control characters and single characters from Unicode surrogate pairs.
133            这些字符包括大多数的控制字符和;Unicode代理对*surrogatepair)中的单个字符。
134            www.ibm.com
135            3.
136            Most of the important regular expression language operators are unescaped single characters .
137            大多数重要的正则表达式语言运算符都是非转义的单个字符。`},{lineHeight:{value:1.5,type:"percent"},letterSpacing:{value:.5,type:"percent"},text:`
138            ★中、英文标点符号名称大全——珍藏版★学了这么多年英语了,为什么从来没有人很系统地教我们英文标点符号怎么念?+plus加号;正号-minus减号;负号±plusorminus正负号×ismultipliedby乘号÷isdividedby除号=isequalto等于号≠isnotequalto不等于号≡isequivalentto全等于号≌isequaltoor
139            查看更多同站结果>
140
141            百度文库
142            常用的标点符号的英文说法
143            2022年7月14日 :冒号 colon [ˈkəʊlən]n.冒号; 结肠 ;分号 semicolon [ˌsemiˈkəʊlən] !惊叹号 exclamation mark [ˌekskləˈmeɪʃn]n.惊叫; 感叹(词) ?问号 questi...
144            微信公众平台
145            各种标点符号的英文是什么?看这里!
146            2018年7月1日 + plus 加号;正号 - minus 减号;负号 ± plus or minus 正负号 × is multiplied by 乘号 ÷ is divided by 除号 = is equal to 等于号 ≠ is not equal to 不等于号...
147            沙粒英语
148            英语的标点符号有哪些 - 百度知道
149
150            3个回答 - 回答时间: 2021年8月24日
151
152            最佳答案: 英语中共有14个标点符号,分别是:the period (句号 ),question mark (问号),exclamation point(感叹号), ...
153            更多关于标点符号 英文的问题>>
154            百度知道
155            大家还在搜
156            各种标点符号用英文怎么说英文标点符号格式图片᪄ᩏᩘ特殊符号英语标点符号使用规则语文常用标点符号大全100个标点符号题及答案
157            英文怎么说 | 标点符号
158            2022年8月5日 "标点符号"英文叫punctuation, 或者punctuation mark。 今天说说每个标点符号用英文怎么说; ​ 01 ​ 句号 ​和中文不一样,英文的句号是实心的点; full stop 是...
159            个人图书馆
160            英文标点符号,你真的会用吗?3分钟教你彻底搞懂英语标点符号!
161            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...
162            满满智己益智
163            各种标点符号用英文都怎么说?
164            2017年11月29日 Punctuation Marks 标点符号 1 , 逗号comma 2 . 句号period(美国英语)/full stop(英国英语) 3 ? 问号question mark 4 : 冒号colon 5 ; 分号semicolon 6 ! 感...
165            微信公众平台
166            干货-常见标点符号的英文表达_in
167            2021年4月30日 英文标点 句号(.):full stop/full point/period。有的时候,你想表达我说完这句话了,也可以用period这个词加强语气。比如“I think Red Scarf is the best, peri
167od.” 嘿嘿…… 逗号...
168            搜狐网
169            各种标点符号的英文单词 - 百度文库
170            3页 发布时间: 2022年11月05日
171            各种标点符号的英文单词 .period 句号 ,comma 逗号 :colon 冒号 ;semicolon 分号 !exclamation 惊叹号 ?question mark 问号  ̄hyphen 连字符 ' apostrophe 省略号;所...
172            百度文库
173            `}]}};jc=w([Y()],jc);let Nc=class extends q{get tag(){return"TextSpaceCase"}getUI(e){const t=new V(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 o;const r=t.textDecoration;switch(N(r)?(o=r.type,r.color&&(s.textDecorationColor=gt.string(r.color))):o=r,o){case"under":o="underline";break;case"delete":o="line-through";break;case"under-delete":o="underline line-through"}s.textDecoration=o}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&&(Q(t.padding)?s.padding=t.padding.map(o=>o+"px").join(" "):s.padding=t.padding+"px"),String(t.text).split(`
174`).map((o,r)=>
174{const a=document.createElement("p");a.innerText=o||"_",a.style.marginTop=(r>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:
175
176                        Better handling of slope and stairs movement
177                        Implementing camera collision to prevent clipping
178                        Adding a dust effect triggered by character movement or jumps
179                        Developing a character animation state machine for seamless animation transitions
180                        Contributions
181                        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.
182
183                        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.
184
185                                    文本
186                                    /zh-CN/docs/Web/SVG/Tutorial/Texts
187
188                                    …« 上一页 下一页 » 在 SVG 中有两种截然不同的文本模式。一种是写在图像中的文本,另一种是 SVG 字体。关于后者我们将在教程的后面进行讲解,现在我们主要集中前者:写在图像中的文本。…
189                                    …和形状元素类似,属性fill可以给文本填充颜色,属性stroke可以给文本描边,形状元素和文本元素都可以引用渐变或图案,相比较 CSS2.1 只能绘制简单的彩色文字,SVG 显得更具有优势。 文本的一个至关重要的部分是它显示的字体。…
190                                    …SVG 提供了一些属性,类似于它们的 CSS 同行,用来激活文本选区。…`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:`单音节词基本都是重读音节.含有两个以上音节的单词中才涉及到重读音节和非重读音节的区分。
191
192                                    ①单音节词几乎都按重读音节对待.
193
194                                    ②双音节名词60%以上是第一个音节重读;双音节动词有90%以上是第二个音节重读;
195
196                                    ③三个或三个以上音节的单词中有比较大的一部分是倒数第三个音节重读;
197
198                                    ④能辨清词头、词干和词尾的,一般都是词干重读;
199
200                                    ⑤含有—tion—sion,—ssion等字母组合的,肯定是该字母组合前紧挨着那个的音节重读.
201
202                                    参考资料来源:百度百科-音节
203
204                                    `},{lineHeight:{value:1.5,type:"percent"},padding:[20,10,10,40],text:`
205                        I、标点符号 ˉˇ¨‘’々~‖∶”’‘|〃〔〕《》「」『』.〖〗【【】()〔〕{}
206                        J、数字序号 ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ①②③④⑤⑥⑦⑧⑨⑩一二三四五六七八九十
207                        K、数学符号 ≈≡≠=≤≥<>≮≯∷±+-×÷/∫∮∝∞â
207ˆ§âˆ¨âˆ‘∏∪∩∈∵∴⊥‖∠⌒⊙≌∽√
208                        L、单位符号 °′〃$£¥‰%℃¤¢
209                        M、制表符 ┌┍┎┏┐┑┒┓—┄┈├┝┞┟┠┡┢┣|┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╂╁╃
210                        N、特殊符号 §№☆★○●◎◇◆□■△▲※→←↑↓〓#&@\^_
211                        O、补充收集 ⊙●○①⊕◎Θ⊙¤㊣▂ ▃ ▄ ▅ ▆ ▇ █ █ ■ ▓ 回 □ 〓≡ ╝╚╔ ╗╬ ═ ╓ ╩ ┠ ┨┯ ┷┏ ┓┗ ┛┳⊥『』┌♀◆◇◣◢◥▲▼△▽⊿`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:`
212            2.
213            These include most control characters and single characters from Unicode surrogate pairs.
214            这些字符包括大多数的控制字符和;Unicode代理对*surrogatepair)中的单个字符。
215            www.ibm.com
216            3.
217            Most of the important regular expression language operators are unescaped single characters .
218            大多数重要的正则表达式语言运算符都是非转义的单个字符。`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:`
219            ★中、英文标点符号名称大全——珍藏版★学了这么多年英语了,为什么从来没有人很系统地教我们英文标点符号怎么念?+plus加号;正号-minus减号;负号±plusorminus正负号×ismultipliedby乘号÷isdividedby除号=isequalto等于号≠isnotequalto不等于号≡isequivalentto全等于号≌isequaltoor
220            查看更多同站结果>
221
222            百度文库
223            常用的标点符号的英文说法
224            2022年7月14日 :冒号 colon [ˈkəʊlən]n.冒号; 结肠 ;分号 semicolon [ˌsemiˈkəʊlən] !惊叹号 exclamation mark [ˌekskləˈmeɪʃn]n.惊叫; 感叹(词) ?问号 questi...
225            微信公众平台
226            各种标点符号的英文是什么?看这里!
227            2018年7月1日 + plus 加号;正号 - minus 减号;负号 ± plus or minus 正负号 × is multiplied by 乘号 ÷ is divided by 除号 = is equal to 等于号 ≠ is not equal to 不等于号...
228            沙粒英语
229            英语的标点符号有哪些 - 百度知道
230
231            3个回答 - 回答时间: 2021年8月24日
232
233            最佳答案: 英语中共有14个标点符号,分别是:the period (句号 ),question mark (问号),exclamation point(感叹号), ...
234            更多关于标点符号 英文的问题>>
235            百度知道
236            大家还在搜
237            各种标点符号用英文怎么说英文标点符号格式图片᪄ᩏᩘ特殊符号英语标点符号使用规则语文常用标点符号大全100个标点符号题及答案
238            英文怎么说 | 标点符号
239            2022年8月5日 "标点符号"英文叫punctuation, 或者punctuation mark。 今天说说每个标点符号用英文怎么说; ​ 01 ​ 句号 ​和中文不一样,英文的句号是实心的点; full stop 是...
240            个人图书馆
241            英文标点符号,你真的会用吗?3分钟教你彻底搞懂英语标点符号!
242            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...
243            满满智己益智
244            各种标点符号用英文都怎么说?
245            2017年11月29日 Punctuation Marks 标点符号 1 , 逗号comma 2 . 句号period(美国英语)/full stop(英国英语) 3 ? 问号question mark 4 : 冒号colon 5 ; 分号semicolon 6 ! 感...
246            微信公众平台
247            干货-常见标点符号的英文表达_in
248            2021年4月30日 英文标点 句号(.):full stop/full point/period。有的时候,你想表达我说完这句话了,也可以用period这个词加强语气。比如“I think Red Scarf is the best, period.” 嘿嘿…… 逗号...
249            搜狐网
250            各种标点符号的英文单词 - 百度文库
251            3页 发布时间: 2022年11月05日
252            各种标点符号的英文单词 .period 句号 ,comma 逗号 :colon 冒号 ;semicolon 分号 !exclamation 惊叹号 ?question mark 问号  ̄hyphen 连字符 ' apostrophe 省略号;所...
253            百度文库
254            `}]}};Nc=w([Y()],Nc);let Uc=class extends q{get tag(){return"TextCaseCase"}getUI(e){const t=new V(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 o=t.textDecoration;switch(N(o)?(n=o.type,o.color&&(s.textDecorationColor=gt.string(o.color))):n=o,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(`
255`).map((n,o)=>{const r=document.createElement("p");r.innerText=n||"_",r.style.marginTop=(o>0&&t.paraSpacing||0)+"px",r.style.marginBottom="0px",i.appendChild(r)})}),t}getData(){return[{text:`sdfaewrasdfwersafwer!&sf ++-dsfdfeer;
255+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:
256
257                        Better handling of slope and stairs movement
258                        Implementing camera collision to prevent clipping
259                        Adding a dust effect triggered by character movement or jumps
260                        Developing a character animation state machine for seamless animation transitions
261                        Contributions
262                        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.
263
264                        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.
265
266                                    文本
267                                    /zh-CN/docs/Web/SVG/Tutorial/Texts
268
269                                    …« 上一页 下一页 » 在 SVG 中有两种截然不同的文本模式。一种是写在图像中的文本,另一种是 SVG 字体。关于后者我们将在教程的后面进行讲解,现在我们主要集中前者:写在图像中的文本。…
270                                    …和形状元素类似,属性fill可以给文本填充颜色,属性stroke可以给文本描边,形状元素和文本元素都可以引用渐变或图案,相比较 CSS2.1 只能绘制简单的彩色文字,SVG 显得更具有优势。 文本的一个至关重要的部分是它显示的字体。…
271                                    …SVG 提供了一些属性,类似于它们的 CSS 同行,用来激活文本选区。…`},{lineHeight:{value:1.5,type:"percent"},paraIndent:40,textAlign:"justify",text:`单音节词基本都是重读音节.含有两个以上音节的单词中才涉及到重读音节和非重读音节的区分。
272
273                                    ①单音节词几乎都按重读音节对待.
274
275                                    ②双音节名词60%以上是第一个音节重读;双音节动词有90%以上是第二个音节重读;
276
277                                    ③三个或三个以上音节的单词中有比较大的一部分是倒数第三个音节重读;
278
279                                    ④能辨清词头、词干和词尾的,一般都是词干重读;
280
281                                    ⑤含有—tion—sion,—ssion等字母组合的,肯定是该字母组合前紧挨着那个的音节重读.
282
283                                    参考资料来源:百度百科-音节
284
285                                    `},{lineHeight:{value:1.5,type:"percent"},text:`
286                        I、标点符号 ˉˇ¨‘’々~‖∶”’‘|〃〔〕《》「」『』.〖〗【【】()〔〕{}
287                        J、数字序号 ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ①②③④⑤⑥⑦⑧⑨⑩一二三四五六七八九十
288                        K、数学符号 ≈≡≠=≤≥<>≮≯∷±+-×÷/∫∮∝∞â
288ˆ§âˆ¨âˆ‘∏∪∩∈∵∴⊥‖∠⌒⊙≌∽√
289                        L、单位符号 °′〃$£¥‰%℃¤¢
290                        M、制表符 ┌┍┎┏┐┑┒┓—┄┈├┝┞┟┠┡┢┣|┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╂╁╃
291                        N、特殊符号 §№☆★○●◎◇◆□■△▲※→←↑↓〓#&@\^_
292                        O、补充收集 ⊙●○①⊕◎Θ⊙¤㊣▂ ▃ ▄ ▅ ▆ ▇ █ █ ■ ▓ 回 □ 〓≡ ╝╚╔ ╗╬ ═ ╓ ╩ ┠ ┨┯ ┷┏ ┓┗ ┛┳⊥『』┌♀◆◇◣◢◥▲▼△▽⊿`},{lineHeight:{value:1.5,type:"percent"},textCase:"upper",text:`
293            2.
294            These include most control characters and single characters from Unicode surrogate pairs.
295            这些字符包括大多数的控制字符和;Unicode代理对*surrogatepair)中的单个字符。
296            www.ibm.com
297            3.
298            Most of the important regular expression language operators are unescaped single characters .
299            大多数重要的正则表达式语言运算符都是非转义的单个字符。`}]}};Uc=w([Y()],Uc);let Vc=class extends q{get tag(){return"TextBoldCase"}getUI(e){const t=new V(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 o=t.textDecoration;switch(N(o)?(n=o.type,o.color&&(s.textDecorationColor=gt.string(o.color))):n=o,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"}]}};Vc=w([Y()],Vc);let Yc=class extends q{get tag(){return"TextAlignCase"}getUI(e){const t=new V(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 o=t.textDecoration;switch(N(o)?(n=o.type,o.color&&(s.textDecorationColor=gt.string(o.color))):n=o,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"}
299,{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"}]}};Yc=w([Y()],Yc);let Xc=class extends q{get tag(){return"TextOverflowCase"}getUI(e){const t=new V(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 o=t.textDecoration;switch(N(o)?(n=o.type,o.color&&(s.textDecorationColor=gt.string(o.color))):n=o,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:
300
301            Better handling of slope and stairs movement
302            Implementing camera collision to prevent clipping
303            Adding a dust effect triggered by character movement or jumps
304            Developing a character animation state machine for seamless animation transitions
305            Contributions
306            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.
307
308            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.
309
310                        文本
311                        /zh-CN/docs/Web/SVG/Tutorial/Texts
312
313                        …« 上一页 下一页 » 在 SVG 中有两种截然不同的文本模式。一种是写在图像中的文本,另一种是 SVG 字体。关于后者我们将在教程的后面进行讲解,现在我们主要集中前者:写在图像中的文本。…
314                        …和形状元素类似,属性fill可以给文本填充颜色,属性stroke可以给文本描边,形状元素和文本元素都可以引用渐变或图案,相比较 CSS2.1 只能绘制简单的彩色文字,SVG 显得更具有优势。 文本的一个至关重要的部分是它显示的字体。…
315                        …SVG 提供了一些属性,类似于它们的 CSS 同行,用来激活文本选区。…`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",verticalAlign:"middle",height:5,text:`单音节词基本都是重读音节.含有两个以上音节的单词中才涉及到重读音节和非重读音节的区分。
316
317                        ①单音节词几乎都按重读音节对待.
318
319                        ②双音节名词60%以上是第一个音节重读;双音节动词有90%以上是第二个音节重读;
320
321                        ③三个或三个以上音节的单词中有比较大的一部分是倒数第三个音节重读;
322
323                        ④能辨清词头、词干和词尾的,一般都是词干重读;
324
325                        ⑤含有—tion—sion,—ssion等字母组合的,肯定是该字母组合前紧挨着那个的音节重读.
326
327                        参考资料来源:百度百科-音节
328
329                        `},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",textAlign:"right",text:`
330            I、标点符号 ˉˇ¨‘’々~‖∶”’‘|〃〔〕《》「」『』.〖〗【【】()〔〕{}
331            J、数字序号 ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ①②③④⑤⑥⑦⑧⑨⑩一二三四五六七八九十
332            K、数学符号 ≈≡≠=≤≥<>≮≯∷±+-×÷/∫∮∝∞â
332ˆ§âˆ¨âˆ‘∏∪∩∈∵∴⊥‖∠⌒⊙≌∽√
333            L、单位符号 °′〃$£¥‰%℃¤¢
334            M、制表符 ┌┍┎┏┐┑┒┓—┄┈├┝┞┟┠┡┢┣|┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╂╁╃
335            N、特殊符号 §№☆★○●◎◇◆□■△▲※→←↑↓〓#&@\^_
336            O、补充收集 ⊙●○①⊕◎Θ⊙¤㊣▂ ▃ ▄ ▅ ▆ ▇ █ █ ■ ▓ 回 □ 〓≡ ╝╚╔ ╗╬ ═ ╓ ╩ ┠ ┨┯ ┷┏ ┓┗ ┛┳⊥『』┌♀◆◇◣◢◥▲▼△▽⊿`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"---",text:`
3372.
338These include most control characters and single characters from Unicode surrogate pairs.
339这些字符包括大多数的控制字符和;Unicode代理对*surrogatepair)中的单个字符。
340www.ibm.com
3413.
342Most of the important regular expression language operators are unescaped single characters .
343大多数重要的正则表达式语言运算符都是非转义的单个字符。`},{lineHeight:{value:1.5,type:"percent"},textOverflow:"...",text:`
344★中、英文标点符号名称大全——珍藏版★学了这么多年英语了,为什么从来没有人很系统地教我们英文标点符号怎么念?+plus加号;正号-minus减号;负号±plusorminus正负号×ismultipliedby乘号÷isdividedby除号=isequalto等于号≠isnotequalto不等于号≡isequivalentto全等于号≌isequaltoor
345查看更多同站结果>
346
347百度文库
348常用的标点符号的英文说法
3492022年7月14日 :冒号 colon [ˈkəʊlən]n.冒号; 结肠 ;分号 semicolon [ˌsemiˈkəʊlən] !惊叹号 exclamation mark [ˌekskləˈmeɪʃn]n.惊叫; 感叹(词) ?问号 questi...
350微信公众平台
351各种标点符号的英文是什么?看这里!
3522018年7月1日 + plus 加号;正号 - minus 减号;负号 ± plus or minus 正负号 × is multiplied by 乘号 ÷ is divided by 除号 = is equal to 等于号 ≠ is not equal to 不等于号...
353沙粒英语
354英语的标点符号有哪些 - 百度知道
355
3563个回答 - 回答时间: 2021年8月24日
357
358最佳答案: 英语中共有14个标点符号,分别是:the period (句号 ),question mark (问号),exclamation point(感叹号), ...
359更多关于标点符号 英文的问题>>
360百度知道
361大家还在搜
362各种标点符号用英文怎么说英文标点符号格式图片᪄ᩏᩘ特殊符号英语标点符号使用规则语文常用标点符号大全100个标点符号题及答案
363英文怎么说 | 标点符号
3642022年8月5日 "标点符号"英文叫punctuation, 或者punctuation mark。 今天说说每个标点符号用英文怎么说; ​ 01 ​ 句号 ​和中文不一样,英文的句号是实心的点; full stop 是...
365个人图书馆
366英文标点符号,你真的会用吗?3分钟教你彻底搞懂英语标点符号!
3672019年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...
368满满智己益智
369各种标点符号用英文都怎么说?
3702017年11月29日 Punctuation Marks 标点符号 1 , 逗号comma 2 . 句号period(美国英语)/full stop(英国英语) 3 ? 问号question mark 4 : 冒号colon 5 ; 分号semicolon 6 ! 感...
371微信公众平台
372干货-常见标点符号的英文表达_in
3732021年4月30日 英文标点 句号(.):full stop/full point/period。有的时候,你想表达我说完这句话了,也可以用period这个词加强语气。比如“I think Red Scarf is the best, period.” 嘿嘿…… 逗号...
374搜狐网
375各种标点符号的英文单词 - 百度文库
3763页 发布时间: 2022年11月05日
377各种标点符号的英文单词 .period 句号 ,comma 逗号 :colon 冒号 ;semicolon 分号 !exclamation 惊叹号 ?question mark 问号  ̄hyphen 连字符 ' apostrophe 省略号;所...
378百度文库
379`}]}};Xc=w([Y()],Xc);let g0=class extends q{get tag(){return"ShadowCase"}getUI(e){return e.cornerRadius=30,new nt(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"}}
379,{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"}}]}};g0=w([Y()],g0);let f0=class extends q{get tag(){return"InnerShadowCase"}getUI(e){return e.cornerRadius=30,new nt(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"}]}]}};f0=w([Y()],f0);let _0=class extends q{get tag(){return"MaskCase"}getUI(e,t){const i=new ft(e);return i.hitChildren=!1,this.addChildren(i,t),i}addChildren(e,t){const{width:i,height:s}=e;switch(e.add(new _s({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 ft({mask:!0}
379);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 $e({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[{},{},{},{},{},{}]}};_0=w([Y()],_0);let qc=class extends q{get tag(){return"EraserCase"}getUI(e,t){const i=new ft(e);return i.hitChildren=!1,this.addChildren(i,t),i}addChildren(e,t){let{width:i,height:s}=e;e.add(new _s({width:i,height:s,cornerRadius:30,url:"/image/leafer.jpg",draggable:!0}));const n=.15*i,o=.15*s;switch(i*=.7,s*=.7,t){case 0:e.add(new bt({x:n,y:o,width:i,height:s,innerRadius:.5,fill:"black",eraser:!0,draggable:!0}));break;case 1:e.add(new bt({x:n,y:o,width:i,height:s,opacity:.5,innerRadius:.5,fill:"black",eraser:!0}));break;case 2:const r=new ft({eraser:!0});r.add(new bt({x:n,y:o,width:i/1.5,height:s/1.5,fill:"black"})),r.add(new bt({x:n+i/2,y:o+s/2,width:i/2,height:s/2,fill:"black"})),e.add(r);break;case 3:e.add(new bt({x:n,y:o,width:i,height:s,startAngle:0,endAngle:180,innerRadius:.5,fill:"black",eraser:!0}));break;case 4:e.add(new bt({x:n,y:o,width:i,height:s,startAngle:180,endAngle:0,innerRadius:.5,fill:"black",eraser:!0}));break;default:e.add(new $e({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-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}]}};qc=w([Y()],qc);const g4=["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 Gc=class extends q{get tag(){return"BlendModeCase"}getUI(e,t){const i=new ft(e);return this.addChildren(i,t),i}addChildren(e,t){const{width:i,height:s}=e,n=new nt({width:i/4*3,height:s/4*3,cornerRadius:[20,20,20,20],fill:"#FF4A2C"}),o=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(o),o.blendMode=g4[t]}getData(){return[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}};Gc=w([Y()],Gc);let Kc=class extends q{get tag(){return"AroundCase"}getUI(e,t){const i=new ft(e);return this.addChildren(i,t),i}addChildren(e,t){let i,s=0,n=1,o=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},o=45;break;case 4:i={type:"percent",x:1,y:1}}const{width:r,height:a}=e,l=new nt({width:r,height:a,cornerRadius:0,fill:"rgba(150,150,150,0.1)"}),h=new nt({around:i,x:r/2,y:a/2,rotation:s,scale:n,skewX:o,width:r/2,height:a/2,draggable:!0,fill:this.colors[t]}),c=new nt({around:"center",x:r/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[{},{},{},{},{}]}};Kc=w([Y()],Kc);let Zc=class extends q{get tag(){return"FillCase"}getUI(e){return e.cornerRadius=30,new nt(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"}]}]}};Zc=w([Y()],Zc);let $c=class extends q{get tag(){return"FillsCase"}getUI(e){return e.cornerRadius=30,new nt(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}]}]}};$c=w([Y()],$c);let Jc=class extends q{get tag(){return"SolidFillCase"}getUI(e){return e.cornerRadius=30,new nt(e)}getData(){return[{},{},{},{},{},{}]}};Jc=w([Y()],Jc);let Qc=class extends q{get tag(){return"GradientFillCase"}getUI(e){return e.cornerRadius=30,new nt(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"}]}}]}};Qc=w([Y()],Qc);let td=class extends q{get tag(){return"ImageFillCase"}getUI(e){return e.cornerRadius=30,new nt(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}]}]}};td=w([Y()],td);let m0=class extends q{get tag(){return"StrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new nt(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"}]}]}};m0=w([Y()],m0);let ed=class extends q{get tag(){return"StrokesCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new nt(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}]}]}};ed=w([Y()],ed);let id=class extends q{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 nt(e)}getData(){return[{},{},{},{},{},{}]}};id=w([Y()],id);let sd=class extends q{get tag(){return"GradientStrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new nt(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}]}]}};sd=w([Y()],sd);let nd=class extends q{get tag(){return"ImageStrokeCase"}getUI(e){return e.cornerRadius=30,e.strokeWidth=6,e.strokeAlign="inside",e.fill="",new nt(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}]}]}};nd=w([Y()],nd);let od=class extends q{get tag(){return"LinearCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.strokeAlign="inside",e.fill=""),new nt(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}}]}}]}};od=w([Y()],od);let rd=class extends q{get tag(){return"AngularCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.strokeAlign="inside",e.fill=""),new nt(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}}]}}]}};rd=w([Y()],rd);let ad=class extends q{get tag(){return"RadialCase"}getUI(e,t){return e.cornerRadius=30,t>2&&(e.strokeWidth=6,e.fill=""),new nt(e)}get
379Data(){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}}]}}]}};ad=w([Y()],ad);let ld=class extends q{get tag(){return"HittableCase"}getUI(e){return e.cornerRadius=30,new nt(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"}]}};ld=w([Y()],ld);let hd=class extends q{get tag(){return"CursorCase"}getUI(e){return new Re(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"},{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}}]}};function Ta(e,t){return mt(e,i=>({set(s){this.__setAttr(i,s),this.leaferIsReady?t?rt.setStyleName(this,t,s):rt.set(this,s):this.__layout.stateStyleChanged=!0}}))}function Ai(e){return mt(e,t=>({set(i){this.__setAttr(t,i),this.__layout.stateStyleChanged=!0}}))}function pr(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 q1(e,t){N(t)||(t=void 0),W0(e,t,"in")}function G1(e,t){const{normalStyle:i}=e;N(t)||(t=void 0),i&&(t||(t=i),W0(e,t,"out"))}hd=w([Y()],hd);const cd={};function W0(e,t,i){const{normalStyle:s}=e;t||(t=cd),t.scale&&(kt.assignScale(t,t.scale),delete t.scale),t!==cd&&rt.canAnimate||(i=null);let n=!!i&&function(a,l,h){let c=a==="in"?"transition":"transitionOut";return a==="out"&&Gt(h[c])&&Gt(l[c])&&(c="transition"),Gt(l[c])?h[c]:l[c]}(i,t,e);const o=n?function(a,l){const h=dd(l,a),c=a.animate();return c&&dd(h,a,c.fromStyle),h}(e,t):void 0;rt.canAnimate&&y0(e)&&e.killAnimate("transition"),s&&e.set(s,"temp");const r=y0(e);if(r){const{animation:a}=r;if(a){const l=e.animate(a,void 0,"animation",!0);Object.assign(r,l.endingStyle),i!=="in"||t.animation!==a?l.kill():n=!1,delete r.animation}e.normalStyle=v0(r,e),e.set(r,"temp")}else e.normalStyle=void 0;if(n){const a=v0(o,e);e.set(o,"temp"),e.animate([o,a],n,"transition",!0)}e.__layout.stateStyleChanged=!1}function y0(e){let t;const i={},s=pr(e),n=s?e.state||s.state:e.state,o=n&&e.states[n];o&&rt.isState(n,e,s)&&(t=Fi(i,o));const r=i.selectedStyle||e.selectedStyle;r&&rt.isSelected(e,s)&&(t=Fi(i,r));const a=i.placeholderStyle||e.placeholderStyle;if(a&&rt.isPlacehold(e,s)&&(t=Fi(i,a)),rt.isDisabled(e,s)){const l=i.disabledStyle||e.disabledStyle;l&&(t=Fi(i,l))}else{const l=i.focusStyle||e.focusStyle;l&&rt.isFocus(e,s)&&(t=Fi(i,l));const h=i.hoverStyle||e.hoverStyle;h&&rt.isHover(e,s)&&(t=Fi(i,h));const c=i.pressStyle||e.pressStyle;c&&rt.isPress(e,s)&&(t=Fi(i,c))}return t?i:void 0}function v0(e,t,i,s){const n=i?e:{},o=i||e;for(let r in o)s&&rt.animateExcludes[r]||(n[r]=t[r]);return n}function dd(e,t,i){return v0(e,t,i,!0)}function Fi(e,t){return Object.assign(e,t),!0}function ir(e,t){const i=e[t];i&&q1(e,i),e.button&&H0(e.children,t)}function w0(e,t,i){i||(i=e.states[t]),q1(e,i),e.button&&H0(e.children,null,t)}function H0(e,t,i){if(!e)return;let s,n;for(let o=0,r=e.length;o<r;o++){if(s=e[o],t){switch(n=!0,t){case"hoverStyle":rt.isHover(s)&&(n=!1);break;case"pressStyle":rt.isPress(s)&&(n=!1);break;case"focusStyle":rt.isFocus(s)&&(n=!1)}n&&ir(s,t)}else W(i)||w0(s,i);s.isBranch&&H0(s.children,t,i)}}function sr(e,t){const i=e[t];i&&G1(e,i),e.button&&j0(e.children,t)}function x0(e,t,i){G1(e,i),e.button&&j0(e.children,null,t)}function j0(e,t,i){if(!e)return;let s;for(let n=0,o=e.length;n<o;n++)s=e[n],t?sr(s,t):W(i)||x0(s,i),s.isBranch&&j0(s.children,t,i)}function xo(e,t,i){let s;const n=t.leafer?t.leafer.interaction:null;if(n&&(s=n[e](t),!s&&i)){const o=pr(t,i);o&&(s=n[e](o))}return s}function ud(e,t,i){let s=t[e];if(!s&&i){const n=pr(t,i);n&&(s=n[e])}return s}Dt.add("state"),rt.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},rt.isState=function(e,t,i){return function(s,n,o){let r=n.states[s];if(!r&&o){const a=pr(n,o);a&&(r=a.states[s])}return!!r}(e,t,i)},rt.isSelected=function(e,t){return ud("selected",e,t)},rt.isDisabled=function(e,t){return ud("disabled",e,t)},rt.isFocus=function(e,t){return xo("isFocus",e,t)},rt.isHover=function(e,t){return xo("isHover",e,t)},rt.isPress=function(e,t){return xo("isPress",e,t)},rt.isPlacehold=function(e,t){return e.__.__isPlacehold},rt.isDrag=function(e,t){return xo("isDrag",e,t)},rt.setStyleName=function(e,t,i){i?w0(e,t,e[t]):x0(e,t,e[t])},rt.set=function(e,t){const i=e.states[t];i?w0(e,t,i):x0(e,t,i)},rt.getStyle=y0,rt.updateStyle=W0,rt.updateEventStyle=function(e,t){switch(t){case z.ENTER:ir(e,"hoverStyle");break;case z.LEAVE:sr(e,"hoverStyle");break;case z.DOWN:ir(e,"pressStyle");break;case z.UP:sr(e,"pressStyle")}};const Oa=T.prototype;T.addAttr("selected",!1,Ta,"selectedStyle"),T.addAttr("disabled",!1,Ta,"disabledStyle"),T.addAttr("states",{},Ai),T.addAttr("state","",Ta),T.addAttr("normalStyle",void 0,xt),T.addAttr("hoverStyle",void 0,Ai),T.addAttr("pressStyle",void 0,Ai),T.addAttr("focusStyle",void 0,Ai),T.addAttr("selectedStyle",void 0,Ai),T.addAttr("disabledStyle",void 0,Ai),T.addAttr("placeholderStyle",void 0,Ai),T.addAttr("button",!1,xt),Oa.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))},Oa.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?ir(this,"focusStyle"):sr(this,"focusStyle")}
379)},Oa.updateState=function(){rt.updateStyle(this,void 0,"in")};const pd=V.prototype,La="text";ve(pd,La,Object.assign(Object.assign({},R0(pd,La)),{set(e){const t=this,i=t.text;t.__setAttr(La,e)&&(ti(t),t.placeholderStyle&&t.placeholder&&(i===""||e==="")&&(t.__layout.stateStyleChanged=!0))}}));let gd=class extends q{get tag(){return"HoverStyleCase"}getUI(e){return e.cornerRadius=30,new nt(e)}getData(){return[{fill:"rgba(50,205,121, 0.7)",cornerRadius:30,hoverStyle:{fill:"rgba(50,205,121, 0.8)"}}]}};gd=w([Y()],gd);let fd=class extends q{get tag(){return"PressStyleCase"}getUI(e){return e.cornerRadius=30,new nt(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"}]}};fd=w([Y()],fd);const{cos:_d,sin:an,pow:qt,sqrt:bo,abs:f4,ceil:_4,floor:m4,round:y4,PI:Xo}=Math,ko=5*Xo,So=1.70158,Eo=2.5949095,Co=7.5625,hs=2.75;function Bo(e){return t=>qt(t,e)}function To(e){return t=>1-qt(1-t,e)}function Oo(e){return t=>t<.5?.5*qt(2*t,e):1-.5*qt(2-2*t,e)}function Lo(e){return e<1/hs?Co*e*e:e<2/hs?Co*(e-=1.5/hs)*e+.75:e<2.5/hs?Co*(e-=2.25/hs)*e+.9375:Co*(e-=2.625/hs)*e+.984375}function ln(e,t,i,s){const n={};return o=>{const r=~~(1e4*o),a=n[r];if(a)return a;let l,h,c,d=o;for(let f=0;f<8&&(l=1-d,c=md(d,e,i)-o,h=3*l*l*e+6*l*d*(i-e)+3*d*d*(1-i),!(f4(h)<1e-6));f++)d-=c/h;return n[r]=md(d,t,s)}}function md(e,t,i){const s=1-e;return 3*s*s*e*t+3*s*e*e*i+e*e*e}const nr={get(e){const{list:t}=nr;return $(e)?t[e||"ease"]:N(e)?t[e.name].apply(t,Q(e.value)?e.value:[e.value]):t.ease},register(e,t){nr.list[e]=t},list:{linear:e=>e,ease:ln(.25,.1,.25,1),"ease-in":ln(.42,0,1,1),"ease-out":ln(0,0,.58,1),"ease-in-out":ln(.42,0,.58,1),"sine-in":e=>1-_d(e*Xo*.5),"sine-out":e=>an(e*Xo*.5),"sine-in-out":e=>.5*(1-_d(e*Xo)),"quad-in":Bo(2),"quad-out":To(2),"quad-in-out":Oo(2),"cubic-in":Bo(3),"cubic-out":To(3),"cubic-in-out":Oo(3),"quart-in":Bo(4),"quart-out":To(4),"quart-in-out":Oo(4),"quint-in":Bo(5),"quint-out":To(5),"quint-in-out":Oo(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-bo(1-qt(e,2)),"circ-out":e=>bo(1-qt(e-1,2)),"circ-in-out":e=>e<.5?.5*(1-bo(1-qt(2*e,2))):.5*(bo(1-qt(2-2*e,2))+1),"back-in":e=>((So+1)*e-So)*e*e,"back-out":e=>(e-=1)*e*((So+1)*e+So)+1,"back-in-out":e=>e<.5?(e*=2)*e*((Eo+1)*e-Eo)*.5:.5*((e=2*e-2)*e*((Eo+1)*e+Eo)+2),"elastic-in":e=>e===0||e===1?e:-qt(2,10*(e-1))*an((e-1.1)*ko),"elastic-out":e=>e===0||e===1?e:qt(2,-10*e)*an((e-.1)*ko)+1,"elastic-in-out":e=>e===0||e===1?e:e<.5?-qt(2,10*((e*=2)-1))*an((e-1.1)*ko)*.5:qt(2,10*(1-(e*=2)))*an((e-1.1)*ko)*.5+1,"bounce-in":e=>1-Lo(1-e),"bounce-out":Lo,"bounce-in-out":e=>e<.5?.5*(1-Lo(1-2*e)):.5*(1+Lo(2*e-1)),"cubic-bezier":ln,steps:function(e,t="floor"){return i=>(t==="floor"?m4(i*e):t==="ceil"?_4(i*e):y4(i*e))/e}}};function ce(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 Ft{}Ft.CREATED="created",Ft.PLAY="play",Ft.PAUSE="pause",Ft.STOP="stop",Ft.SEEK="seek",Ft.UPDATE="update",Ft.COMPLETED="completed";let jt=class extends D1{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&&tt(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=Q(t)?t:t?[t]:[];const{easing:n,attrs:o}=this;this.easingFn=nr.get(n),(o||this.attrsMap)&&(this.attrsMap=o?o.reduce((r,a)=>(r[a]=!0,r),{}):void 0),this.frames=[],this.create(),this.autoplay&&this.frames.length&&(this.timer=setTimeout(()=>{this.timer=0,this.play()},0))}
379emitType(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(Ft.PLAY))}pause(){this.destroyed||(this.running=!1,this.clearTimer(),this.emitType(Ft.PAUSE))}stop(){this.destroyed||(this.complete(),this.emitType(Ft.STOP))}seek(e,t){if(this.destroyed)return;const{delay:i}=this;let s;N(e)&&(e=No.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(Ft.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,o=!(n>1)||this.join;let r,a,l,h,c,d=0,f=0;n>1&&(this.fromStyle={},this.toStyle={});for(let u=0;u<n;u++){if(a=i[u],h=a.style||a,r||(r=o?e:h),l={style:h,beforeStyle:{}},c=1,a.style){const{duration:g,autoDuration:p,delay:m,autoDelay:y,easing:_,swing:v,loop:x}=a;v&&(l.swing=tt(v)?v:2,c=2*l.swing-1),x&&(l.loop=c=tt(x)?x:2),g?(l.duration=g,d+=g*c,m&&(l.totalTime=g+m)):p&&(l.autoDuration=p,f+=p*c),m?(l.delay=m,d+=m*c):y&&(l.autoDelay=y,f+=y*c),_&&(l.easingFn=nr.get(_))}if(!l.autoDuration&&W(l.duration)&&(n>1?u>0||o?f+=c:l.duration=0:l.duration=this.duration),n>1)this.setBefore(l,h,r);else{for(let g in h)l.beforeStyle[g]=e[g];this.fromStyle=l.beforeStyle,this.toStyle=l.style}r=h,t.push(l)}f?((this.duration<=d||!s||!s.duration)&&this.changeDuration(d+.2*f),this.allocateTime((this.duration-d)/f)):d&&this.changeDuration(d),this.emitType(Ft.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:o}=this;for(let r in t)W(s[r])&&(s[r]=n[r]=t===i?i[r]:o[r]),e.beforeStyle[r]=W(i[r])?n[r]:i[r],n[r]=t[r]}allocateTime(e){let t,{frames:i}=this,{length:s}=i;for(let n=0;n<s;n++)t=i[n],W(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,M.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,o=s-this.playedTotalTime-n,r=this.frame.duration;if(o>r)this.transition(1);else if(o>=0){const a=r?o/r: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:o,swing:r}=this;if((n!==!1||r)&&(this.looped?this.looped++:this.looped=1,this.needLoop(this.looped,n,r)))return r&&(this.mainReverse=!this.mainReverse),void(o?this.timer=setTimeout(()=>{this.timer=0,this.begin()},o/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(Ft.COMPLETED)}setFrom(){this.nowIndex=0,this.setStyle(this.fromStyle)}
379setTo(){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:o,target:r}=this;let{betweenStyle:a}=this.frame;a||(a=this.frame.betweenStyle={}),Gi.setBetweenStyle(a,s,n,t,e,r,o),this.setStyle(a)}this.emitType(Ft.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 tt(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)}};w([ce("ease")],jt.prototype,"easing",void 0),w([ce(0)],jt.prototype,"delay",void 0),w([ce(.2)],jt.prototype,"duration",void 0),w([ce("auto")],jt.prototype,"ending",void 0),w([ce(!1)],jt.prototype,"reverse",void 0),w([ce(!1)],jt.prototype,"swing",void 0),w([ce(!1)],jt.prototype,"loop",void 0),w([ce(0)],jt.prototype,"loopDelay",void 0),w([ce(1)],jt.prototype,"speed",void 0),w([ce(!0)],jt.prototype,"autoplay",void 0),w([ce()],jt.prototype,"join",void 0),w([ce()],jt.prototype,"jump",void 0),w([ce()],jt.prototype,"attrs",void 0),jt=w([ae(D0)],jt);let vs=class extends jt{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 jt(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(Ft.PLAY)}pause(){this.each(e=>e.pause()),this.emitType(Ft.PAUSE)}stop(){this.each(e=>e.stop()),this.emitType(Ft.STOP)}seek(e,t){this.each(i=>i.seek(e,t)),this.emitType(Ft.SEEK)}kill(e,t){this.each(i=>i.kill(e,t)),this.destroy()}onChildEvent(e,t){switch(e){case Ft.COMPLETED:this.completed&&this.emitType(e);break;case Ft.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)}};vs=w([ae(D0)],vs);const v4={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
379EE",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"},yd=/^rgb\((\d+),\s*(\d+),\s*(\d+)/i,vd=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d*\.?\d+)/i,wd=/^hsl\((\d+),\s*(\d+)%\s*,\s*(\d+)%/i,xd=/^hsla\((\d+),\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d*\.?\d+)/i,Lt=parseInt,hi=parseFloat,{round:Pa}=Math;let Ra={},Aa=0;function bd(e){let t,i,s,n=1;switch(e.length){case 9:t=Lt(e.slice(1,3),16),i=Lt(e.slice(3,5),16),s=Lt(e.slice(5,7),16),n=Lt(e.slice(7,9),16)/255;break;case 7:t=Lt(e.slice(1,3),16),i=Lt(e.slice(3,5),16),s=Lt(e.slice(5,7),16);break;case 5:t=Lt(e[1]+e[1],16),i=Lt(e[2]+e[2],16),s=Lt(e[3]+e[3],16),n=Lt(e[4]+e[4],16)/255;break;case 4:t=Lt(e[1]+e[1],16),i=Lt(e[2]+e[2],16),s=Lt(e[3]+e[3],16);break;case 3:t=i=s=Lt(e[1]+e[2],16);break;case 2:t=i=s=Lt(e[1]+e[1],16)}return{r:t,g:i,b:s,a:n}}const w4=1/6,x4=.5,kd=2/3,Sd=1/3;function Fa(e,t,i){return i<0?i++:i>1&&i--,i<w4?e+6*(t-e)*i:i<x4?t:i<kd?e+(t-e)*(kd-i)*6:e}function Ed(e,t,i,s=1){let n,o,r;if(e/=360,i/=100,(t/=100)===0)n=o=r=i;else{let a=i<.5?i*(1+t):i+t-i*t,l=2*i-a;n=Fa(l,a,e+Sd),o=Fa(l,a,e),r=Fa(l,a,e-Sd)}return{r:Pa(255*n),g:Pa(255*o),b:Pa(255*r),a:s}}Dt.add("color"),gt.object=function(e,t){let i,s=!W(t)&&t<1;if($(e)){const n=Ra[e];if(n)i=Object.assign({},n);else{switch(e[0]){case"#":i=bd(e);break;case"R":case"r":e[4]==="("&&vd.test(e)?i=function(o){const r=vd.exec(o);return{r:Lt(r[1]),g:Lt(r[2]),b:Lt(r[3]),a:hi(r[4])}}(e):e[3]==="("&&yd.test(e)&&(i=function(o){const r=yd.exec(o);return{r:Lt(r[1]),g:Lt(r[2]),b:Lt(r[3]),a:1}}(e));break;case"H":case"h":e[4]==="("&&xd.test(e)?i=function(o){const r=xd.exec(o);return Ed(hi(r[1]),hi(r[2]),hi(r[3]),hi(r[4]))}(e):e[3]==="("&&wd.test(e)&&(i=function(o){const r=wd.exec(o);return Ed(hi(r[1]),hi(r[2]),hi(r[3]),1)}(e))}if(!i){const o=v4[e.toLowerCase()];o&&(i=bd("#"+o))}i&&(Aa++,Aa>1e4&&(Ra={},Aa=0),Ra[e]=Object.assign({},i))}}else N(e)&&(W(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:b4}=Math,{fourNumber:Cd}=kt,k4={fill:Td,stroke:Td,cornerRadius:(e,t,i)=>tt(e)&&tt(t)?le(e,t,i):(e=Cd(e),t=Cd(t),e.map((s,n)=>le(s,t[n],i))),text(e,t,i){if($(e)&&$(t)){const s=e.length,n=t.length,o=le(s,n,i,1);return s<n?t.substring(0,o):e.substring(0,o)}return tt(e)||tt(t)?kt.float(le(e,t,i),Math.max(Bd(e),Bd(t))):t},boxStyle(e,t,i,s){e||(e={}),t||(t={});const n=Object.assign(Object.assign({},e),t);return Gi.setBetweenStyle(n,e,t,n,i,s),n},shadow:Od,innerShadow:Od},S4={value:function(e,t,i){const s=tt(e),n=tt(t);return s&&n?e+(t-e)*i:n||s?le(e,t,i):e},number:le,color:N0,setBetweenStyle:function(e,t,i,s,n,o,r){let a,l,h;const{list:c,value:d}=Gi;for(let f in s)r&&!r[f]||(a=t[f],l=i[f],h=c[f]||d,a!==l&&(e[f]=h(a,l,n,o)))}};function Bd(e){const t=String(e).split(".")[1];return t?t.length:0}function le(e,t,i,s){e||(e=0),t||(t=0);const n=e+(t-e)*i;return s?b4(n):n}function N0(e,t,i){let s=gt.object(e),n=gt.object(t);e||(s=Object.assign(Object.assign({},n),{a:0})),t||(n=Object.assign(Object.assign({},s),{a:0}));const o=le(s.r,n.r,i,1)+","+le(s.g,n.g,i,1)+","+le(s.b,n.b,i,1),r=le(s.a,n.a,i);return r===1?"rgb("+o+")":"rgba("+o+","+r+")"}function Td(e,t,i){return!$(e)&&e||!$(t)&&t?t:N0(e,t,i)}function Od(e,t,i){return Q(e)||Q(t)?t:(t=t||{},{x:le((e=e||{}).x,t.x,i),y:le(e.y,t.y,i),blur:le(e.blur,t.blur,i),spread:le(e.spread,t.spread,i),color:N0(e.color||"#FFFFFF00",t.color||"#FFFFFF00",i),visible:t.visible,blendMode:t.blendMode,box:t.box||e.box})}Dt.add("animate","color"),rt.canAnimate=!0,Object.assign(Gi.list,k4),Object.assign(Gi,S4);const Po=T.prototype;T.addAttr("animation",void 0,function(e){return mt(e,t=>({set(i){this.__setAttr(t,i),this.leafer&&(this.killAnimate("animation"),i&&this.animate(i,void 0,"animation"))}}))}),T.addAttr("animationOut",void 0,xt),T.addAttr("transition",!0,xt),T.addAttr("transitionOut",void 0,xt),Po.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))},Po.animate=function(e,t,i,s){if(W(e))return this.__animate;let n=Q(e)&&!t&&i?new vs(this,e,s):new jt(this,e,t,s);this.killAnimate(i,n.toStyle);const o=this.__animate;return o&&(n instanceof vs?n.list.unshift(o):n=new vs(this,[o,n])),this.__animate=n},Po.killAnimate=function(e,t){const i=this.__animate;if(i){let s=!1;if(t&&!i.completed){i instanceof vs&&i.updateList();const{toStyle:n}=i;for(let o in t)if(o in n){s=!0;break}}else s=!0;s&&(i.kill(!0,t),this.__animate=null)}},Po.__runAnimation=function(e,t){this.animate(e==="in"?this.animation:this.animationOut,void 0,"animation"),t&&this.__animate.on(Ft.COMPLETED,t)};let Ld=class extends q{get tag(){return"StateCase"}getUI(e){const t=new Bt({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[{}]}};Ld=w([Y()],Ld);let Pd=class extends q{get tag(){return"ButtonCase"}getUI(e){return new Bt({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[{}]}};Pd=w([Y()],Pd);let Rd=class extends q{get tag(){return"RectAnimateCase"}getUI(e){const t=new nt(e);return t.waitLeafer(()=>{t.app.editor.hittable=!1;const i=t.leafer.on_(ht.NEXT,()=>{t.rotateOf({x:50,y:50},5),t.move(5,0),t.x>700&&(t.x=0)});
379t.on(z.DOWN,()=>{t.leafer.off_(i)})}),t}getData(){return[{}]}};function Ad(e){return e?Q(e)?e:[e]:[]}Rd=w([Y()],Rd);class Rt extends Te{get list(){return Ad(this.value)}get oldList(){return Ad(this.oldValue)}constructor(t,i){super(t),i&&Object.assign(this,i)}}Rt.BEFORE_SELECT="editor.before_select",Rt.SELECT="editor.select",Rt.AFTER_SELECT="editor.after_select",Rt.BEFORE_HOVER="editor.before_hover",Rt.HOVER="editor.hover";const Fd=(e,t)=>e.parent.children.indexOf(e)-t.parent.children.indexOf(t),Dd=(e,t)=>t.parent.children.indexOf(t)-e.parent.children.indexOf(e),Ro={group(e,t,i){e.sort(Dd);const{app:s,parent:n}=e[0];let o;o=i&&i.add?i:new ft(i),n.addAt(o,n.children.indexOf(e[0])),e.sort(Fd);const r=new Kt(t.worldTransform);return r.divideParent(n.scrollWorldTransform),o.setTransform(r),o.editable=!0,o.hitChildren=!1,s.lockLayout(),e.forEach(a=>a.dropTo(o)),s.unlockLayout(),o},ungroup(e){const{app:t}=e[0],i=[];return t.lockLayout(),e.forEach(s=>{if(s.isBranch){const{parent:n,children:o}=s;for(;o.length;)i.push(o[0]),o[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(Fd),e.forEach(t=>{t.parent&&t.parent.add(t)})},toBottom(e){e.sort(Dd),e.forEach(t=>{t.parent&&t.parent.addAt(t,0)})},mergeMaskConfig(e,t){},getSiblingMaskElements(e){}};function b0(e){return(t,i)=>{const s="_"+i;ve(t,i,{get(){return this[s]},set(n){const o=this[s];if(o!==n){const r=this;if(r.config){const a=i==="target";if(a){const{beforeSelect:h,skipNested:c}=r.config;if(Q(n)){if(c){const d=n[0];if(n.some(f=>f.__level!==d.__level)){n.sort((g,p)=>g.__level-p.__level);const f=n[0].__level,u=[];n.forEach(g=>{u.length&&u.some(p=>ut.hasParent(g,p,f))||u.push(g)}),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(N(d))n=d;else if(d===!1)return}r.hasDimOthers&&r.cancelDimOthers(),r.single&&(delete r.element.syncEventer,delete r.element.__world.ignorePixelSnap)}const l=a?Rt.BEFORE_SELECT:Rt.BEFORE_HOVER;this.hasEvent(l)&&this.emitEvent(new Rt(l,{editor:r,value:n,oldValue:o}))}this[s]=n,e(this,o)}}})}}const{abs:Md}=Math,{copy:E4}=X,{setListWithFn:C4}=I,{worldBounds:B4}=Pn,Da={a:1,b:0,c:0,d:1,e:0,f:0},Id={x:0,y:0,width:0,height:0};class or extends T{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?(C4(Id,i,B4),t&&this.set(t),this.set(Id),this.visible=!0,this.forceUpdate("surface")):this.visible=0}__draw(t,i){const{list:s}=this;if(s.length){let n;const o=this.__,{stroke:r,strokeWidth:a,fill:l}=o,{bounds:h}=i;for(let c=0;c<s.length;c++){n=s[c];const{worldTransform:d,worldRenderBounds:f}=n;if(f.width&&f.height&&(!h||h.hit(f,i.matrix))){const u=Md(d.scaleX),g=Md(d.scaleY);switch(E4(Da,d),Da.half=a%2,t.setWorld(Da,i.matrix),t.beginPath(),this.strokePathType){case"box":const{boxBounds:p}=n.__layout;t.rect(p.x,p.y,p.width,p.height);break;case"stroke":const{strokeBounds:m}=n.__layout;t.rect(m.x,m.y,m.width,m.height);break;case"path":n.__drawPath(t);break;default:n.__.__useArrow?n.__drawPath(t):n.__.__pathForRender?n.__drawRenderPath(t):n.__drawPathByBox(t)}if(o.strokeWidth=a/Math.max(u,g),o.shadow){const p=o.shadow[0],{scaleX:m,scaleY:y}=this.getRenderScaleData(!0,p.scaleFixed);t.save(),t.setWorldShadow(p.x*m,p.y*y,p.blur*m,gt.string(p.color))}r&&($(r)?Z.stroke(r,this,t,i):Z.strokes(r,this,t,i)),l&&($(l)?Z.fill(l,this,t,i):Z.fills(l,this,t,i)),o.shadow&&t.restore()}}o.strokeWidth=a}}destroy(){this.target=null,super.destroy()}}w([b0(function(e){const t=e.target;e.list=t?Q(t)?t:[t]:[]})],or.prototype,"target",void 0),w([Ke("render-path")],or.prototype,"strokePathType",void 0);class T4 extends ft{constructor(t){super(t),this.strokeArea=new nt({strokeAlign:"center"}),this.fillArea=new nt,this.visible=0,this.hittable=!1,this.addMany(this.fillArea,this.strokeArea)}setStyle(t,i){const{visible:s,stroke:n,strokeWidth:o}=t;this.visible=s,this.strokeArea.reset(Object.assign({stroke:n,strokeWidth:o},i||{})),this.fillArea.reset({visible:!i,fill:n,opacity:.2})}setBounds(t){this.strokeArea.set(t),this.fillArea.set(t)}}const O4={findOne:e=>e.list.find(t=>t.editable),findByBounds(e,t,i="hit"){const s=[];return K1([e],s,t,i),s}};function K1(e,t,i,s){let n,o,r;for(let a=0,l=e.length;a<l;a++)if(n=e[a],o=n.__,o.hittable&&o.visible&&!o.locked&&i.hit(n.__world)){if(o.editable&&o.editable!=="single")if(n.isFrame){if(i.includes(n.__layout.boxBounds,n.__world)){t.push(n);continue}}else if(r=i[s](n.__layout.boxBounds,n.__world)&&o.hitSelf,n.isBranch){if(!o.hitChildren||r&&n.children.every(h=>!h.editable)){r&&t.push(n);continue}}else r&&t.push(n);n.isBranch&&K1(n.children,t,i,s)}}const{findOne:Ma,findByBounds:L4}=O4;class P4 extends ft{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 or,this.targetStroker=new or,this.bounds=new yt,this.selectArea=new T4,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:o,strokeWidth:r,hover:a,hoverStyle:l,hoverPathType:h}=n;this.hoverStroker.setTarget(a?i:null,Object.assign({stroke:o,strokeWidth:r,strokePathType:h},l||{}))}}onSelect(){if(this.running){const{editor:t}=this;let{list:i}=t;this.targetStroker.setTarget(i),this.hoverStroker.target=null}}
379update(){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))}checkAndSelect(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:o,y:r}=t.getInnerPoint(this);this.bounds.set(o,r),this.selectArea.setStyle({visible:!0,stroke:s,x:o,y:r},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(),o=new dt(L4(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()),o.length){const r=[];this.originList.forEach(a=>{o.has(a)||r.push(a)}),o.forEach(a=>{this.originList.has(a)||r.push(a)}),(r.length!==i.list.length||i.list.some((a,l)=>a!==r[l]))&&(i.target=r)}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)&&!Ma(t.path))}allowSelect(t){return this.running&&!this.isMoveMode&&!t.middle}findDeepOne(t){const i={exclude:new dt(this.editor.editBox.rect)};return Ma(t.target.leafer.interaction.findPath(t,i))}findUI(t){return this.isMultipleSelect(t)?this.findDeepOne(t):Ma(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_([[Rt.HOVER,this.onHover,this],[Rt.SELECT,this.onSelect,this]]),i.on_([[z.MOVE,this.onPointerMove,this],[z.BEFORE_DOWN,this.onBeforeDown,this],[z.TAP,this.onTap,this],[G.START,this.onDragStart,this,!0],[G.DRAG,this.onDrag,this],[G.END,this.onDragEnd,this],[Tt.MOVE,this.onAutoMove,this],[[Qt.ZOOM,Tt.MOVE],()=>{this.editor.hoverTarget=null}]])]})}__removeListenEvents(){this.off_(this.__eventIds)}destroy(){this.editor=this.originList=this.needRemoveItem=null,this.__removeListenEvents(),super.destroy()}}const{topLeft:Di,top:hn,topRight:Mi,right:cn,bottomRight:Ii,bottom:dn,bottomLeft:zi,left:un}=Es,{toPoint:Ia}=ye,{within:zd,sign:ci}=kt,{abs:Wi}=Math,qi={getScaleData(e,t,i,s,n,o,r,a){let l,h,c={},d=1,f=1;const{widthRange:u,heightRange:g,dragBounds:p,worldTransform:m,boxBounds:y}=e,{width:_,height:v}=t,x=Wi(m.scaleX),k=Wi(m.scaleY),b=e.scaleX/t.scaleX,C=e.scaleY/t.scaleY,O=ci(b),A=ci(C),P=a?b:O*y.width/_,S=a?C:A*y.height/v;if(tt(s))d=f=Math.sqrt(s);else{o&&(s.x*=2,s.y*=2),s.x*=a?b:O,s.y*=a?C:A;const D=(-s.y+v)/v,U=(s.x+_)/_,J=(s.y+v)/v,St=(-s.x+_)/_;switch(i){case hn:f=D,l="bottom";break;case cn:d=U,l="left";break;case dn:f=J,l="top";break;case un:d=St,l="right";break;case Di:f=D,d=St,l="bottom-right";break;case Mi:f=D,d=U,l="bottom-left";break;case Ii:f=J,d=U,l="top-left";break;case zi:f=J,d=St,l="top-right"}if(n)if(n==="corner"&&i%2)n=!1;else switch(i){case hn:case dn:d=f;break;case un:case cn:f=d;break;default:h=Math.sqrt(Wi(d*f)),d=ci(d)*h,f=ci(f)*h}}const B=d!==1,E=f!==1;if(B&&(d/=P),E&&(f/=S),r||(d<0&&(d=1/y.width/x),f<0&&(f=1/y.height/k)),Ia(o||l,y,c,!0),p){const D={x:d,y:f};tr.limitScaleOf(e,c,D,n),d=D.x,f=D.y}if(B&&u){const D=y.width*e.scaleX;d=zd(D*d,u)/D}if(E&&g){const D=y.height*e.scaleY;f=zd(D*f,g)/D}const L=x*y.width,F=k*y.height;return B&&Wi(d*L)<1&&(d=1*ci(d)/L),E&&Wi(f*F)<1&&(f=1*ci(f)/F),n&&d!==f&&(h=Math.min(Wi(d),Wi(f)),d=ci(d)*h,f=ci(f)*h),isFinite(d)||(d=1),isFinite(f)||(f=1),{origin:c,scaleX:d,scaleY:f,direction:i,lockRatio:n,around:o}},getRotateData(e,t,i,s,n){let o,r={};switch(t){case Di:o="bottom-right";break;case Mi:o="bottom-left";break;case Ii:o="top-left";break;case zi:o="top-right";break;default:o="center"}return Ia(n||o,e.boxBounds,r,!0),{origin:r,rotation:j.getRotation(s,e.getWorldPointByBox(r),i)}},getSkewData(e,t,i,s){let n,o,r={},a=0,l=0;switch(t){case hn:case Di:o={x:.5,y:0},n="bottom",a=1;break;case dn:case Ii:o={x:.5,y:1},n="top",a=1;break;case un:case zi:o={x:0,y:.5},n="right",l=1;break;case cn:case Mi:o={x:1,y:.5},n="left",l=1}const{boxBounds:h}=e,{width:c,height:d}=h;o.x=o.x*c,o.y=o.y*d,Ia(s||n,h,r,!0);const f=j.getRotation(o,r,{x:o.x+(a?i.x:0),y:o.y+(l?i.y:0)});return a?a=-f:l=f,{origin:r,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 un:e=cn;break;case Di:e=Mi;break;case zi:e=Ii;break;case cn:e=un;break;case Mi:e=Di;break;case Ii:e=zi}if(i)switch(e){case hn:e=dn;break;case Di:e=zi;break;case Mi:e=Ii;break;case dn:e=hn;break;case zi:e=Di;break;case Ii:e=Mi}return e}},za={};function Wd(e){const{moveCursor:t,moveable:i}=e.mergeConfig;e.canUse&&(e.rect.cursor=i?t:void 0)}function R4(e,t){return'"data:image/svg+xml,'+encodeURIComponent(e.replace("{{rotation}}",t.toString()))+'"'}class pn extends Bt{constructor(t){super(t),this.useFastShadow=!0}
379}const Hd=["top","right","bottom","left"],jd=void 0,A4=it.get("EditBox");class Ss extends ft{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 $(t)||$(i)||$(s)}get canDragLimitAnimate(){return this.moving&&this.mergeConfig.dragLimitAnimate&&this.target.dragBounds}constructor(t){super(),this.view=new ft,this.rect=new pn({name:"rect",hitFill:"all",hitStroke:"none",strokeAlign:"center",hitRadius:5}),this.circle=new pn({name:"circle",strokeAlign:"center",around:"center",cursor:"crosshair",hitRadius:5}),this.buttons=new ft({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:o,rotatePoints:r,resizeLines:a,rect:l,circle:h,buttons:c}=this,d=["bottom-right","bottom","bottom-left","left","top-left","top","top-right","right"];for(let f=0;f<8;f++)t=new pn({name:"rotate-point",around:d[f],width:15,height:15,hitFill:"all"}),r.push(t),this.listenPointEvents(t,"rotate",f),f%2&&(i=new pn({name:"resize-line",around:"center",width:10,height:10,hitFill:"all"}),a.push(i),this.listenPointEvents(i,"resize",f)),s=new pn({name:"resize-point",hitRadius:5}),o.push(s),this.listenPointEvents(s,"resize",f);this.listenPointEvents(h,"rotate",2),this.listenPointEvents(l,"move",8),n.add([...r,l,h,c,...a,...o]),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:o,resizePoints:r,resizeLines:a}=this,{stroke:l,strokeWidth:h,ignorePixelSnap:c}=i,d=this.getPointsStyle(),f=this.getMiddlePointsStyle(),u=this.getResizeLinesStyle();let g;this.visible=!t.locked;for(let m=0;m<8;m++)g=r[m],g.children.length&&g.clear(),g.set(this.getPointStyle(m%2?f[(m-1)/2%f.length]:d[m/2%d.length])),g.rotation=(m-(m%2?1:0))/2*90,m%2&&a[(m-1)/2].set(Object.assign({pointType:"resize",rotation:(m-1)/2*90},u[(m-1)/2%u.length]||{}));o.set(this.getPointStyle(i.circle||i.rotatePoint||d[0])),n.set(Object.assign({stroke:l,strokeWidth:h,opacity:1,editConfig:jd},i.rect||{}));const p=Gt(i.rectThrough)?s:i.rectThrough;n.hittable=!p,p&&this.addBottomList(),s&&K.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:o,scaleY:r,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:o,scaleY:r,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:o,rect:r,circle:a,buttons:l,resizePoints:h,rotatePoints:c,resizeLines:d}=this,{editMask:f}=i,{middlePoint:u,resizeable:g,rotateable:p,hideOnSmall:m,editBox:y,editBoxType:_,mask:v,dimOthers:x,bright:k,spread:b,hideRotatePoints:C,hideResizeLines:O}=n;if(_==="stroke"){const{scaleX:A,scaleY:P}=s.worldTransform,{strokeBoxSpread:S}=s.__layout;S&&I.spread(t,[S*Math.abs(P),S*Math.abs(A)])}if(b&&I.spread(t,b),this.rectBounds=t,f.visible=!!v||0,W(x)&&W(k)?i.hasDimOthers&&i.cancelDimOthers():(i.setDimOthers(x),i.setBright(!!x||k),i.hasDimOthers=!0),this.view.worldOpacity){const{width:A,height:P}=t,S=tt(m)?m:10,B=this.showPoints=y&&!(m&&A<S&&P<S);let E,L,F,D={};for(let U=0;U<8;U++)ye.toPoint(ye.directionData[U],t,D),L=h[U],E=c[U],L.set(D),E.set(D),L.visible=B&&!(!g&&!p),E.visible=B&&p&&g&&!C,U%2&&(F=d[(U-1)/2],F.set(D),F.visible=L.visible&&!O,L.visible&&(L.visible=!!u),E.visible&&(E.visible=!!u),(U+1)/2%2?(F.width=A+F.height,m&&2*L.width>A&&(L.visible=!1)):(F.width=P+F.height,m&&2*L.width>P&&(L.visible=!1)));a.visible=B&&p&&!(!n.circle&&!n.rotatePoint),a.visible&&this.layoutCircle(),r.path&&(r.path=null),r.set(Object.assign(Object.assign({},t),{visible:!o||y})),l.visible=B&&l.children.length>0||0,l.visible&&this.layoutButtons()}else r.set(t)}layoutCircle(){const{circleDirection:t,circleMargin:i,buttonsMargin:s,buttonsDirection:n,middlePoint:o}=this.mergedConfig,r=Hd.indexOf(t||(this.buttons.children.length&&n==="bottom"?"top":"bottom"));this.setButtonPosition(this.circle,r,i||s,!!o)}layoutButtons(){const{buttons:t}=this,{buttonsDirection:i,buttonsFixed:s,buttonsMargin:n,middlePoint:o}=this.mergedConfig,{flippedX:r,flippedY:a}=this;let l=Hd.indexOf(i);(l%2&&r||(l+1)%2&&a)&&s&&(l=(l+2)%4);const h=s?qi.getRotateDirection(l,this.flippedOne?this.rotation:-this.rotation,4):l;this.setButtonPosition(t,h,n,!!o),s&&(t.rotation=90*(h-l)),t.scaleX=r?-1:1,t.scaleY=a?-1:1}setButtonPosition(t,i,s,n){const o=this.resizePoints[2*i+1],r=i%2,a=i&&i!==3?1:-1,l=(s+(i%2?(n?o.width:0)+t.boxBounds.width:(n?o.height:0)+t.boxBounds.height)/2)*a;r?(t.x=o.x+l,t.y=o.y):(t.x=o.x,t.y=o.y+l)}getPointStyle(t){const{stroke:i,strokeWidth:s,pointFill:n,pointSize:o,pointRadius:r}=this.mergedConfig,a={fill:n,stroke:i,strokeWidth:s,around:"center",strokeAlign:"center",opacity:1,width:o,height:o,c
379ornerRadius:r,offsetX:0,offsetY:0,editConfig:jd};return t?Object.assign(a,t):a}getPointsStyle(){const{point:t}=this.mergedConfig;return Q(t)?t:[t]}getMiddlePointsStyle(){const{middlePoint:t}=this.mergedConfig;return Q(t)?t:t?[t]:this.getPointsStyle()}getResizeLinesStyle(){const{resizeLine:t}=this.mergedConfig;return Q(t)?t:[t]}updateMoveCursor(){Wd(this)}updatePointCursor(t){(function(i,s){const{enterPoint:n,dragging:o,skewing:r,resizing:a,flippedX:l,flippedY:h}=i;if(!n||!i.editor.editing||!i.canUse)return;if(n.name==="rect")return Wd(i);if(n.name==="circle")return;let{rotation:c}=i;const{pointType:d}=n,{moveCursor:f,resizeCursor:u,rotateCursor:g,skewCursor:p,moveable:m,resizeable:y,rotateable:_,skewable:v}=i.mergeConfig;if(d==="move")return n.cursor=f,void(m||(n.visible=!1));if(d==="button")return void(n.cursor||(n.cursor="pointer"));let x=d.includes("resize");x&&_&&(i.isHoldRotateKey(s)||!y)&&(x=!1);const k=v&&!x&&(n.name==="resize-line"||d==="skew"),b=o?r?p:a?u:g:k?p:x?u:g;c+=45*(qi.getFlipDirection(n.direction,l,h)+1),c=2*Math.round(kt.formatRotation(c,!0)/2);const{url:C,x:O,y:A}=b,P=C+c;za[P]?n.cursor=za[P]:za[P]=n.cursor={url:R4(C,c),x:O,y:A}})(this,t)}onDragStart(t){this.dragging=!0;const i=this.dragPoint=t.current,{pointType:s}=i,{moveable:n,resizeable:o,rotateable:r,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)||!o?(r&&(this.rotating=!0),s==="resize-rotate"?o&&(this.resizing=!0):i.name==="resize-line"&&(a&&(this.skewing=!0),this.rotating=!1)):s==="resize"&&o&&(this.resizing=!0),s==="skew"&&a&&(this.skewing=!0)),this.onTransformStart(t)}onDrag(t){const{transformTool:i,moving:s,resizing:n,rotating:o,skewing:r}=this;if(s)i.onMove(t),this.widgetsMove(t);else if(n||o||r){const a=t.current;a.pointType&&(this.enterPoint=a),o&&i.onRotate(t),n&&i.onScale(t),r&&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&&(ei.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 Tt)&&this.transformTool.onMove(t),this.resizing&&(ei.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(),$(this.mergedConfig.moveable)))switch(this.gesturing=this.moving=!0,t.type){case Tt.START:this.onTransformStart(t),this.widgetsMoveStart(t);break;case Tt.END:this.onTransformEnd(t),this.widgetsMoveEnd(t);break;default:this.transformTool.onMove(t),this.widgetsMove(t)}}onScale(t){if(this.canGesture&&(t.stop(),$(this.mergedConfig.resizeable)))switch(this.gesturing=this.resizing=!0,t.type){case Qt.START:this.onTransformStart(t);break;case Qt.END:this.onTransformEnd(t);break;default:this.transformTool.onScale(t)}}onRotate(t){if(this.canGesture&&(t.stop(),$(this.mergedConfig.rotateable)))switch(this.gesturing=this.rotating=!0,t.type){case Qt.START:this.onTransformStart(t);break;case Qt.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:o,arrowFastStep:r}=this.mergeConfig;if(n){const a=t.shiftKey?r:o;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,o=n.find(r=>r.editable&&r instanceof V)||n.find(r=>r instanceof V);if(o)return i.openInnerEditor(o)}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],[z.ENTER,n=>{this.enterPoint=t,this.updatePointCursor(n)}],[z.LEAVE,()=>{this.enterPoint=null}]]))}__listenEvents(){const{rect:t,editor:i,__eventIds:s}=this;s.push(t.on_([[z.DOUBLE_TAP,this.onDoubleTap,this],[z.LONG_PRESS,this.onLongPress,this]])),this.waitLeafer(()=>{s.push(i.app.on_([[[te.HOLD,te.UP],this.onKey,this],[te.DOWN,this.onArrow,this],[[Tt.START,Tt.BEFORE_MOVE,Tt.END],this.onMove,this,!0],[[Qt.START,Qt.BEFORE_ZOOM,Qt.END],this.onScale,this,!0],[[Me.START,Me.BEFORE_ROTATE,Me.END],this.onRotate,this,
379!0]]))})}__removeListenEvents(){this.off_(this.__eventIds)}static registerWidget(t){const{tag:i}=t.prototype;Ss.WidgetList[i]&&A4.repeat(i),Ss.WidgetList[i]=t}createWidgets(){Object.values(Ss.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()}}Ss.WidgetList={};const Nd={x:0,y:0,width:1e5,height:1e5};class F4 extends T{constructor(t){super(),this.editor=t,this.hittable=!1,this.visible=0}__updateWorldBounds(){Object.assign(this.__local,Nd),Object.assign(this.__world,Nd)}__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(o=>{o.__render(t,i);const{parent:r}=o;r&&r.textBox&&r.__renderShape(t,i)}),t.restoreBlendMode()}}destroy(){this.editor=null,super.destroy()}}const Wa=`
380<feOffset dy="1"/>
381<feGaussianBlur stdDeviation="1.5"/>
382<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"/>
383<feBlend mode="normal" in="SourceGraphic" result="shape"/>`,D4={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:`
384<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
385<g filter="url(#f)">
386<g transform="rotate({{rotation}},12,12)">
387<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"/>
388<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"/>
389</g>
390</g>
391<defs>
392<filter id="f" x="-1.6" y="3.9" width="27.2" height="16.9" filterUnits="userSpaceOnUse">
393${Wa}
394</filter>
395</defs>
396</svg>
397`,x:12,y:12},rotateCursor:{url:`
398<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
399<g filter="url(#f)">
400<g transform="rotate(135,12,12),rotate({{rotation}},12,12)">
401<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"/>
402<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"/>
403</g>
404</g>
405<defs>
406<filter id="f" x="-1.6" y="-0.6" width="27.1" height="27.1" filterUnits="userSpaceOnUse">
407${Wa}
408</filter>
409</defs>
410</svg>
411`,x:12,y:12},skewCursor:{url:`
412<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
413<g filter="url(#f)">
414<g transform="rotate(90,12,12),rotate({{rotation}},12,12)">
415<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"/>
416<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"/>
417</g>
418</g>
419<defs>
420<filter x="-2.8" y="1.9" width="29.6" height="23.1" filterUnits="userSpaceOnUse" >
421${Wa}
422</filter>
423</defs>
424</svg>
425`,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},cs=new yt;function Z1(e){const{simulateTarget:t,list:i}=e,{zoomLayer:s}=i[0].leafer;t.safeChange(()=>{cs.setListWithFn(i,n=>n.getBounds("box","page")),cs.width===0&&(cs.width=.1),cs.height===0&&(cs.height=.1),t.reset(cs.get())}),s.add(t)}const M4=it.get("EditToolCreator");function U0(){return e=>{ze.register(e)}}
425const I4=U0,ze={EditTool:"EditTool",LineEditTool:"LineEditTool",PointsEditTool:"PointsEditTool",list:{},register(e,t){const{tag:i}=e.prototype;t||(t=i),Ha[t]&&M4.repeat(t),Ha[t]=e},get:(e,t)=>new Ha[e](t)},{list:Ha}=ze;class Ge extends Rt{constructor(t,i){super(t,i)}}Ge.BEFORE_OPEN="innerEditor.before_open",Ge.OPEN="innerEditor.open",Ge.BEFORE_CLOSE="innerEditor.before_close",Ge.CLOSE="innerEditor.close";class Nt extends Rt{constructor(t,i){super(t,i)}}Nt.BEFORE_GROUP="editor.before_group",Nt.GROUP="editor.group",Nt.BEFORE_UNGROUP="editor.before_ungroup",Nt.UNGROUP="editor.ungroup",Nt.BEFORE_OPEN="editor.before_open_group",Nt.OPEN="editor.open_group",Nt.BEFORE_CLOSE="editor.before_close_group",Nt.CLOSE="editor.close_group";const{updateMatrix:ja}=ut,z4={x:1,y:1,scaleX:1,scaleY:1,rotation:1,skewX:1,skewY:1},gn="top-left";class W4 extends nt{get __tag(){return"SimulateElement"}constructor(t){super(),this.checkChange=!0,this.canChange=!0,this.visible=this.hittable=!1,this.skipJSON=!0,this.on(Ie.CHANGE,i=>{if(this.checkChange&&z4[i.attrName]){const{attrName:s,newValue:n,oldValue:o}=i,r=s[0]==="s"?(n||1)/(o||1):(n||0)-(o||0);this.canChange=!1;const a=this.__;a[s]=o,ja(this.parent),ja(this);const l=new Kt(this.__world);switch(a[s]=n,this.__layout.rotationChange(),ja(this),this.changedTransform=new Kt(this.__world).divide(l),s){case"x":t.move(r,0);break;case"y":t.move(0,r);break;case"rotation":t.rotateOf(gn,r);break;case"scaleX":t.scaleOf(gn,r,1);break;case"scaleY":t.scaleOf(gn,1,r);break;case"skewX":t.skewOf(gn,r,0);break;case"skewY":t.skewOf(gn,0,r)}this.canChange=!0}})}safeChange(t){this.canChange&&(this.checkChange=!1,t(),this.checkChange=!0)}}class ws extends Rt{constructor(t,i){super(t,i)}}ws.BEFORE_MOVE="editor.before_move",ws.MOVE="editor.move";class re extends Rt{constructor(t,i){super(t,i)}}re.BEFORE_SCALE="editor.before_scale",re.SCALE="editor.scale";class xs extends Rt{constructor(t,i){super(t,i)}}xs.BEFORE_ROTATE="editor.before_rotate",xs.ROTATE="editor.rotate";class bs extends Rt{constructor(t,i){super(t,i)}}bs.BEFORE_SKEW="editor.before_skew",bs.SKEW="editor.skew";let fs=class extends ft{get list(){return this.leafList.list}get dragHoverExclude(){return[this.editBox.rect]}get 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}
425get 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 dt,this.openedGroupList=new dt,this.simulateTarget=new W4(this),this.editBox=new Ss(this),this.editToolList={},this.selector=new P4(this),this.editMask=new F4(this),this.targetEventIds=[];let i=K.clone(D4);e&&(i=K.default(e,i)),this.mergedConfig=this.config=i,this.addMany(this.editMask,this.selector,this.editBox),Dt.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?Q(s)?s:[s]:[n]}i[0]&&i[0][t]!==(e||!1)&&i.forEach(s=>K.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&&Z1(this),this.update()}getEditTool(e){return this.editToolList[e]=this.editToolList[e]||ze.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($(s))t=s;else if(s===!1)return}if(ze.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(Nt.BEFORE_GROUP),this.target=Ro.group(this.list,this.element,e),this.emitGroupEvent(Nt.GROUP,this.target)),this.target}ungroup(){const{list:e}=this;return e.length&&(e.forEach(t=>t.isBranch&&this.emitGroupEvent(Nt.BEFORE_UNGROUP,t)),this.target=Ro.ungroup(e),e.forEach(t=>t.isBranch&&this.emitGroupEvent(Nt.UNGROUP,t))),this.list}openGroup(e){this.emitGroupEvent(Nt.BEFORE_OPEN,e),this.openedGroupList.add(e),e.hitChildren=!0,this.emitGroupEvent(Nt.OPEN,e)}closeGroup(e){this.emitGroupEvent(Nt.BEFORE_CLOSE,e),this.openedGroupList.remove(e),e.hitChildren=!1,this.emitGroupEvent(Nt.CLOSE,e)}checkOpenedGroups(){const e=this.openedGroupList;if(e.length){let{list:t}=e;this.editing?(t=[],e.forEach(i=>this.list.every(s=>!ut.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 Nt(e,{editTarget:t});this.emitEvent(i),t&&t.emitEvent(i)}getInnerEditor(e){return this.editToolList[e]=this.editToolList[e]||ze.get(e,this)}openInnerEditor(e,t,i){let s;if($(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 o=n({target:e,name:s});if($(o))s=o;else if(o===!1)return}ze.list[s]&&(this.unloadEditTool(!0),this.innerEditing=!0,this.innerEditor=this.getInnerEditor(s),this.innerEditor.editTarget=e,this.emitInnerEvent(Ge.BEFORE_OPEN),this.innerEditor.load(),this.emitInnerEvent(Ge.OPEN))}}closeInnerEditor(e){this.innerEditing&&(this.innerEditing=!1,this.emitInnerEvent(Ge.BEFORE_CLOSE),this.innerEditor.unload(),this.emitInnerEvent(Ge.CLOSE),e||this.updateEditTool(),this.innerEditor=this.innerEditor.editTarget=null)}emitInnerEvent(e){const{innerEditor:t}=this,{editTarget:i}=t,s=new Ge(e,{editTarget:i,innerEditor:t});this.emitEvent(s),i.emitEvent(s)}
425lock(){this.list.forEach(e=>e.locked=!0),this.update()}unlock(){this.list.forEach(e=>e.locked=!1),this.update()}toTop(){this.list.length&&(Ro.toTop(this.list),this.leafList.update())}toBottom(){this.list.length&&(Ro.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_(ht.START,this.onRenderStart,this),i&&i.on_(Ie.SCROLL,this.onChildScroll,this),e.on_(ht.CHILD_START,this.onAppRenderStart,this),e.on_(st.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())}};w([(e,t)=>{ve(e,t,{get(){const{config:i,element:s,dragPoint:n,editBox:o,editTool:r,innerEditor:a,app:l}=this,h=Object.assign({},i);if(a?a.editConfig&&Object.assign(h,a.editConfig):r&&r.editConfig&&Object.assign(h,r.editConfig),s&&s.mask,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 o.config&&Object.assign(h,o.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"),Gt(h.lockRatio)&&(h.lockRatio=!0))),W(h.dragLimitAnimate)&&(h.dragLimitAnimate=l&&l.config.pointer.dragLimitAnimate),this.mergedConfig=h}})}],fs.prototype,"mergeConfig",void 0),w([b0(function(e,t){const{target:i}=e;i?(e.leafList=i instanceof dt?i:new dt(i),e.multiple&&Z1(e)):(e.simulateTarget.remove(),e.leafList.reset()),e.closeInnerEditor(!0),e.unloadEditTool();const s={editor:e,value:i,oldValue:t};e.emitEvent(new Rt(Rt.SELECT,s)),e.checkOpenedGroups(),e.editing?e.waitLeafer(()=>{e.updateEditTool(),e.listenTargetEvents()}):(e.updateEditTool(),e.removeTargetEvents()),e.emitEvent(new Rt(Rt.AFTER_SELECT,s))})],fs.prototype,"target",void 0),w([b0(function(e,t){e.emitEvent(new Rt(Rt.HOVER,{editor:e,value:e.hoverTarget,oldValue:t}))})],fs.prototype,"hoverTarget",void 0),fs=w([ae(class{onMove(e){const{target:t,mergeConfig:i,dragStartData:s}=this.editBox;let n,{dragLimitAnimate:o}=i;const r=e.type===Tt.END||e.type===G.END,a=$(t.draggable),l=!o||r||a,h={x:e.totalX,y:e.totalY};e instanceof Tt&&j.move(h,t.getWorldPointByLocal(s.totalOffset,null,!0)),e.shiftKey&&(Math.abs(h.x)>Math.abs(h.y)?h.y=0:h.x=0),n=G.getValidMove(t,s.point,h,l),(n.x||n.y)&&(o&&!a&&r?ut.animateMove(this,n,tt(o)?o:.3):this.move(n))}onScale(e){const{target:t,mergeConfig:i,single:s,dragStartData:n}=this.editBox;let o,{around:r,lockRatio:a,flipable:l,editSize:h}=i;e instanceof Qt?(r||(r=t.getBoxPoint(e)),o=e.totalScale):o=e.getInnerTotal(t);const{direction:c}=e.current;(e.shiftKey||t.lockRatio)&&(a=!0);const d=qi.getScaleData(t,n.bounds,c,o,a,qi.getAround(r,e.altKey),l,!s||h==="scale"),f=t.x,u=t.y;e instanceof G&&this.editTool&&this.editTool.onScaleWithDrag?(d.drag=e,this.scaleWithDrag(d)):this.scaleOf(d.origin,d.scaleX,d.scaleY),j.move(n.totalOffset,t.x-f,t.y-u)}onRotate(e){const{target:t,mergeConfig:i,dragStartData:s}=this.editBox,{around:n,rotateAround:o,rotateGap:r,diagonalRotateKey:a}=i,{direction:l}=e.current;let h,c;if(e instanceof Me)c=e.rotation,h=o?ye.getPoint(o,t.boxBounds):t.getBoxPoint(e);else{const u=a?e.isHoldKeys(a):e.shiftKey,g=qi.getRotateData(t,l,e,s,u?null:o||t.around||t.origin||n||"center");c=s.rotation+g.rotation-t.rotation,h=g.origin}if(c=kt.float(kt.getGapRotation(c,r,t.rotation),2),!c)return;const d=t.x,f=t.y;this.rotateOf(h,c),j.move(s.totalOffset,t.x-d,t.y-f)}onSkew(e){const{target:t,mergeConfig:i}=this.editBox,{around:s}=i,{origin:n,skewX:o,skewY:r}=qi.getSkewData(t,e.current.direction,e.getInnerMove(t),qi.getAround(s,e.altKey));(o||r)&&this.skewOf(n,o,r)}
425move(e,t=0){if(!this.checkTransform("moveable"))return;N(e)&&(t=e.y,e=e.x);const{target:i,mergeConfig:s,single:n,editor:o}=this.editBox,{beforeMove:r}=s;if(r){const c=r({target:i,x:e,y:t});if(N(c))e=c.x,t=c.y;else if(c===!1)return}const a=i.getWorldPointByLocal({x:e,y:t},null,!0);n||i.safeChange(()=>i.move(e,t));const l={target:i,editor:o,moveX:a.x,moveY:a.y};this.emitEvent(new ws(ws.BEFORE_MOVE,l));const h=new ws(ws.MOVE,l);this.doMove(h),this.emitEvent(h)}scaleWithDrag(e){if(!this.checkTransform("resizeable"))return;const{target:t,mergeConfig:i,editor:s}=this.editBox,{beforeScale:n}=i;if(n){const{origin:r,scaleX:a,scaleY:l,drag:h}=e;if(n({target:t,drag:h,origin:r,scaleX:a,scaleY:l})===!1)return}e=Object.assign(Object.assign({},e),{target:t,editor:s,worldOrigin:t.getWorldPoint(e.origin)}),this.emitEvent(new re(re.BEFORE_SCALE,e));const o=new re(re.SCALE,e);this.editTool.onScaleWithDrag(o),this.emitEvent(o)}scaleOf(e,t,i=t,s){if(!this.checkTransform("resizeable"))return;const{target:n,mergeConfig:o,single:r,editor:a}=this.editBox,{beforeScale:l}=o;if(l){const u=l({target:n,origin:e,scaleX:t,scaleY:i});if(N(u))t=u.scaleX,i=u.scaleY;else if(u===!1)return}const h=this.getWorldOrigin(e),c=!r&&this.getChangedTransform(()=>n.safeChange(()=>n.scaleOf(e,t,i))),d={target:n,editor:a,worldOrigin:h,scaleX:t,scaleY:i,transform:c};this.emitEvent(new re(re.BEFORE_SCALE,d));const f=new re(re.SCALE,d);this.doScale(f),this.emitEvent(f)}flip(e){if(!this.checkTransform("resizeable"))return;const{target:t,single:i,editor:s}=this.editBox,n=this.getWorldOrigin("center"),o=i?new Kt(ut.getFlipTransform(t,e)):this.getChangedTransform(()=>t.safeChange(()=>t.flip(e))),r={target:t,editor:s,worldOrigin:n,scaleX:e==="x"?-1:1,scaleY:e==="y"?-1:1,transform:o};this.emitEvent(new re(re.BEFORE_SCALE,r));const a=new re(re.SCALE,r);this.doScale(a),this.emitEvent(a)}rotateOf(e,t){if(!this.checkTransform("rotateable"))return;const{target:i,mergeConfig:s,single:n,editor:o}=this.editBox,{beforeRotate:r}=s;if(r){const d=r({target:i,origin:e,rotation:t});if(tt(d))t=d;else if(d===!1)return}const a=this.getWorldOrigin(e),l=!n&&this.getChangedTransform(()=>i.safeChange(()=>i.rotateOf(e,t))),h={target:i,editor:o,worldOrigin:a,rotation:t,transform:l};this.emitEvent(new xs(xs.BEFORE_ROTATE,h));const c=new xs(xs.ROTATE,h);this.doRotate(c),this.emitEvent(c)}skewOf(e,t,i=0,s){if(!this.checkTransform("skewable"))return;const{target:n,mergeConfig:o,single:r,editor:a}=this.editBox,{beforeSkew:l}=o;if(l){const u=l({target:n,origin:e,skewX:t,skewY:i});if(N(u))t=u.skewX,i=u.skewY;else if(u===!1)return}const h=this.getWorldOrigin(e),c=!r&&this.getChangedTransform(()=>n.safeChange(()=>n.skewOf(e,t,i))),d={target:n,editor:a,worldOrigin:h,skewX:t,skewY:i,transform:c};this.emitEvent(new bs(bs.BEFORE_SKEW,d));const f=new bs(bs.SKEW,d);this.doSkew(f),this.emitEvent(f)}doMove(e){this.editTool.onMove(e)}doScale(e){this.editTool.onScale(e)}doRotate(e){this.editTool.onRotate(e)}doSkew(e){this.editTool.onSkew(e)}checkTransform(e){const{target:t,mergeConfig:i}=this.editBox;return t&&!t.locked&&i[e]}getWorldOrigin(e){const{target:t}=this.editBox;return t.getWorldPoint(ut.getInnerOrigin(t,e))}getChangedTransform(e){const{target:t,single:i}=this.editBox;if(!i&&!t.canChange)return t.changedTransform;const s=new Kt(t.worldTransform);return e(),new Kt(t.worldTransform).divide(s)}emitEvent(e,t){this.editBox.editor.emitEvent(e,t)}},["editBox","editTool","emitEvent"])],fs);const{abs:Na}=Math,{scale:Ud}=j;class V0{static registerInnerEditor(){ze.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:o}=this.editTarget.worldTransform;return Ud(s,Na(n),Na(o)),s}getEditTargetPoint(t,i){const s=i?t:{x:t.x,y:t.y},{scaleX:n,scaleY:o}=this.editTarget.worldTransform;return Ud(s,Math.abs(1/n),Na(1/o)),s}onCreate(){}create(){this.view=new ft,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)}}w([(e,t)=>{ve(e,t,{get(){const i=this,{config:s,userConfig:n,configKeepKeys:o}=i,r=s?K.clone(s):{};if(o)for(let a in n)o.includes(a)||(r[a]=n[a]);return i.preMergedConfig&&i.preMergedConfig(r),o&&o.forEach(a=>{n[a]&&Object.assign(r[a],n[a])}),i.mergedConfig=r}})}],V0.prototype,"mergeConfig",void 0);
425let k0=class extends V0{static registerEditTool(e,t){ze.register(this,e),t&&ve(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:o}=s;n.lockLayout(),o.forEach(r=>{r.moveWorld(t,i)}),n.unlockLayout()}onScale(e){if(this.isFlowElement&&this.onScaleFlow(e))return;const{scaleX:t,scaleY:i,transform:s,worldOrigin:n,editor:o}=e,{app:r,list:a}=o;r.lockLayout(),a.forEach(l=>{const h=o.getEditSize(l)!=="scale";s?l.transformWorld(s,h,!1):l.scaleOfWorld(n,t,i,h,!1)}),r.unlockLayout()}onRotate(e){if(this.isFlowElement&&this.onRotateFlow(e))return;const{rotation:t,transform:i,worldOrigin:s,editor:n}=e,{app:o,list:r}=n;o.lockLayout(),r.forEach(a=>{const l=n.getEditSize(a)!=="scale";i?a.transformWorld(i,l,!1):a.rotateOfWorld(s,t)}),o.unlockLayout()}onSkew(e){if(this.isFlowElement&&this.onSkewFlow(e))return;const{skewX:t,skewY:i,transform:s,worldOrigin:n,editor:o}=e,{app:r,list:a}=o;r.lockLayout(),a.forEach(l=>{const h=o.getEditSize(l)!=="scale";s?l.transformWorld(s,h,!1):l.skewOfWorld(n,t,i,h)}),r.unlockLayout()}load(){this.editor&&(this.editBox.view.visible=!0,this.onLoad())}unload(){this.editor&&(this.editBox.view.visible=!1,this.unloadEditBoxConfig(),this.onUnload())}};k0=w([U0()],k0);const{left:Vd,right:H4}=Es,{move:Ao,copy:Fo,toNumberPoints:j4}=j;let Yd=class extends k0{constructor(){super(...arguments),this.scaleOfEvent=!0}get tag(){return"LineEditTool"}onScaleWithDrag(e){const{drag:t,direction:i,lockRatio:s,around:n}=e,o=e.target,r=i===Vd;if(o.pathInputed){const{path:a}=o.__,{from:l,to:h}=this.getFromToByPath(a);this.dragPoint(l,h,r,n,this.getInnerMove(o,t,s)),a[1]=l.x,a[2]=l.y,a[4]=h.x,a[5]=h.y,o.path=a}else if(o.points){const{points:a}=o,{from:l,to:h}=this.getFromToByPoints(a);this.dragPoint(l,h,r,n,this.getInnerMove(o,t,s)),a[0]=l.x,a[1]=l.y,a[2]=h.x,a[3]=h.y,o.points=a}else{const a={x:0,y:0},{toPoint:l}=o;o.rotation=0,this.dragPoint(a,l,r,n,this.getInnerMove(o,t,s)),o.getLocalPointByInner(a,null,null,!0),o.getLocalPointByInner(l,null,null,!0),o.x=a.x,o.y=a.y,o.getInnerPointByLocal(l,null,null,!0),o.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=j4(e);return{from:{x:t[0],y:t[1]},to:{x:t[2],y:t[3]}}}dragPoint(e,t,i,s,n){const{x:o,y:r}=n;i?(Ao(e,o,r),s&&Ao(t,-o,-r)):(s&&Ao(e,-o,-r),Ao(t,o,r))}onSkew(e){}onUpdate(){const{editBox:e}=this,{rotatePoints:t,resizeLines:i,resizePoints:s,rect:n}=e,o=e.target;let r,a;
425if(o.pathInputed?r=this.getFromToByPath(o.__.path):o.points&&(r=this.getFromToByPoints(o.__.points)),r){const{from:l,to:h}=r;o.innerToWorld(l,l,!1,e),o.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),Fo(s[7],l),Fo(t[7],l),Fo(s[3],h),Fo(t[3],h)}for(let l=0;l<8;l++)l<4&&(i[l].visible=!1),a=l===Vd||l===H4,s[l].visible=a,t[l].visible=!r&&a}};Yd=w([U0()],Yd);const{M:N4,L:U4,C:V4,Q:Y4,Z:X4,N:q4,D:G4,X:K4,G:Xd,F:qd,O:Z4,P:$4,U:J4}=Ut,Y0={scale(e,t,i){if(!e)return;let s,n=0,o=e.length;for(;n<o;)switch(s=e[n],s){case N4:case U4:xe(e,t,i,n,1),n+=3;break;case V4:xe(e,t,i,n,3),n+=7;break;case Y4:xe(e,t,i,n,2),n+=5;break;case X4:n+=1;break;case q4:xe(e,t,i,n,2),n+=5;break;case G4:xe(e,t,i,n,2),n+=9;break;case K4:xe(e,t,i,n,2),n+=6;break;case Xd:xe(e,t,i,n,2),n+=9;break;case qd:xe(e,t,i,n,2),n+=5;break;case Z4:e[n]=Xd,e.splice(n+4,0,e[n+3],0),xe(e,t,i,n,2),n+=9,o+=2;break;case $4:e[n]=qd,e.splice(n+4,0,e[n+3]),xe(e,t,i,n,2),n+=5,o+=1;break;case J4:xe(e,t,i,n,2),n+=6}},scalePoints(e,t,i,s,n){for(let o=n?s+1:0,r=n?o+2*n:e.length;o<r;o+=2)e[o]*=t,e[o+1]*=i}},{scalePoints:xe}=Y0,Ua=X.get(),{topLeft:Q4,top:t_,topRight:e_,right:i_,bottom:s_,left:n_}=Es;function Do(e,t,i){e.pathInputed?qo(e,t,i):(t!==1&&(e.width*=t),i!==1&&(e.height*=i))}function qo(e,t,i){let{path:s}=e.__;cr(e.leafer)||(s=[...s]),Y0.scale(s,t,i),e.path=s}function Gd(e,t,i){let{points:s}=e;const n=N(s[0]);cr(e.leafer)||(s=n?K.clone(s):[...s]),n?s.forEach(o=>{o.x*=t,o.y*=i}):Y0.scalePoints(s,t,i),e.points=s}function Kd(e,t,i){const{children:s}=e;for(let n=0;n<s.length;n++)Ua.a=t,Ua.d=i,s[n].transform(Ua,!0)}const Mo=Bs.prototype,ds={},Io={},{copy:o_,scale:Zd,toOuterPoint:r_}=X;Mo.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"){o_(Io,this.__localMatrix),e<0&&Zd(Io,-1,1),t<0&&Zd(Io,1,-1);const{boxBounds:o,strokeBounds:r}=this.__layout,{x:a,y:l,width:h,height:c}=r;ds.x=(a-o.x)*(e-1),ds.y=(l-o.y)*(t-1),r_(Io,ds,ds,!0),this.x+=ds.x,this.y+=ds.y,e=(h*e-(h-o.width))/o.width,t=(c*t-(c-o.height))/o.height}this.__scaleResize(e,t)}},Mo.__scaleResize=function(e,t){Do(this,e,t)},Mo.resizeWidth=function(e,t="inner"){const i=e/this.getBounds("box",t).width||1;this.scaleOf("top-left",i,this.__.lockRatio?i:1,!0)},Mo.resizeHeight=function(e,t="inner"){const i=e/this.getBounds("box",t).height||1;this.scaleOf("top-left",this.__.lockRatio?i:1,i,!0)},V.prototype.__scaleResize=function(e,t){const{app:i,editConfig:s}=this,n=i&&i.editor,o=n&&n.dragPoint;if(this.__.resizeFontSize||s&&s.editSize==="font-size"||o&&n.mergedConfig.editSize==="font-size")(function(r,a,l,h){let c=a;if(!W(h)){const p=r.__layout;let{width:m,height:y}=p.boxBounds;switch(m*=l-a,y*=a-l,h){case t_:case s_:c=l,p.affectScaleOrRotation?r.moveInner(-m/2,0):r.x-=m/2;break;case n_:case i_:p.affectScaleOrRotation?r.moveInner(0,-y/2):r.y-=y/2;break;case Q4:case e_:p.affectScaleOrRotation?r.moveInner(0,-y):r.y-=y}}r.fontSize*=c;const d=r.__,{padding:f,lineHeight:u,letterSpacing:g}=d;f&&(r.padding=Q(f)?f.map(p=>p*c):f*c),d.__autoWidth||(r.width*=c),d.__autoHeight||(r.height*=c),N(u)?u.type==="px"&&(d.lineHeight={type:"px",value:u.value*c}):u&&(d.lineHeight=u*c),N(g)?g.type==="px"&&(d.letterSpacing={type:"px",value:g.value*c}):g&&(d.letterSpacing=g*c)})(this,e,t,o&&o.direction);else{const{__autoWidth:r,__autoHeight:a,textAlign:l,verticalAlign:h}=this.__,{boxBounds:c}=this.__layout;r&&l!=="left"&&e!==1&&(this.x+=c.x),a&&h!=="top"&&t!==1&&(this.y+=c.y),Do(this,e,t)}},$e.prototype.__scaleResize=function(e,t){qo(this,e,t)},_e.prototype.__scaleResize=function(e,t){this.pathInputed?qo(this,e,t):this.points?Gd(this,e,t):this.width*=e},Re.prototype.__scaleResize=function(e,t){this.pathInputed?qo(this,e,t):this.points?Gd(this,e,t):Do(this,e,t)},ft.prototype.__scaleResize=function(e,t){Kd(this,e,t)},Bt.prototype.__scaleResize=function(e,t){const{resizeChildren:i,__autoSize:s}=this.__;s&&i||Do(this,e,t),i&&Kd(this,e,t)},Dt.add("resize"),Dt.add("editor","resize"),Ot.editor=function(e,t){const i=new fs(e);return t&&t.sky.add(t.editor=i),i},Bt.addAttr("textBox",!1,xt),T.addAttr("editConfig",void 0,xt),T.addAttr("editOuter",e=>{e.updateLayout();const{EditTool:t,LineEditTool:i,PointsEditTool:s}=ze,n=e.pathInputed||e.isPointsMode?s:e.tag+"EditTool",o=ze.list[n];return!e.__.__isLinePath||n==s&&o?o?n:t:i},xt),T.addAttr("editInner","PathEditor",xt),ft.addAttr("editInner","",xt),V.addAttr("editInner","TextEditor",xt),T.setEditConfig=function(e){this.changeAttr("editConfig",e)},T.setEditOuter=function(e){this.changeAttr("editOuter",e)},T.setEditInner=function(e){this.changeAttr("editInner",e)};function S0(e){return mt(e,t=>({set(i){if(this.__setAttr(t,i)){const s=this.__,n=s.startArrow!=="none"||s.endArrow!=="none";s.__useArrow!==n&&ti(this),s.__useArrow=n,A0(this)}}}))}let zo=class extends _e{get __tag(){return"Arrow"}constructor(e){super(e),this.__.__useArrow=!0}static registerArrow(e,t){Qo.register(e,t)}};w([Yt(class extends H1{})],zo.prototype,"__",void 0),w([S0("angle")],zo.prototype,"endArrow",void 0),zo=w([Xt()],zo);const{M:a_,L:l_,C:h_,Q:c_,O:d_}=Ut,{rotate:u_,copyFrom:p_,scale:g_}=j,fn={},$1={layout(e,t,i,s,n,o,r){let a,l,h=0,c=e.length;for(;h<c;)switch(a=e[h],a){case a_:case l_:Va(e,h+1,t,i,s,n,o,r),h+=3;break;case h_:for(l=1;l<6;l+=2)Va(e,h+l,t,i,s,n,o,r);h+=7;break;case c_:for(l=1;l<4;l+=2)Va(e,h+l,t,i,s,n,o,r);h+=5;break;case d_:e[h+1]+=t,e[h+2]+=i,s&&(e[h+3]*=s),o&&(e[h+4]+=o,e[h+5]+=o),h+=7}},rotate(e,t,i){$1.layout(e,0,0,1,1,t,i)}};function Va(e,t,i,s,n,o,r,a){p_(fn,e[t],e[t+1]),r&&u_(fn,r,a),n&&g_(fn,n,o),e[t]=i+fn.x,e[t+1]=s+fn.y}const{layout:Ya,rotate:bn}=$1,{getAngle:f_}=j,An={x:0},gr={x:-.5}
425,__={connect:An,offset:{x:-.71,bevelJoin:.36,roundJoin:.22},path:[1,-3,-3,2,0,0,2,-3,3]},m_={connect:gr,offset:{x:-1.207,bevelJoin:.854,roundJoin:.707},path:[1,-3,-3,2,0,0,2,-1,0]},J1=[1,-3,0,2,-3,-2,2,0,0,2,-3,2,2,-3,0],X0={connect:An,offset:{x:-.9,bevelJoin:.624,roundJoin:.4},path:[...J1]},rr=K.clone(X0);rr.path=[...J1,1,-2.05,1.1,2,-2.05,-1.1],rr.dashPath=[1,-2,0,2,-.5,0];const Q1={connect:An,offset:gr,path:[...X0.path]},tu={connect:An,offset:gr,path:[...rr.path],dashPath:[1,-2.5,0,2,-1,0]};bn(Q1.path,180,{x:-1.5,y:0}),bn(tu.path,180,{x:-1.5,y:0});const eu=[1,-3,0,2,-3.5,-1.8,2,0,0,2,-3.5,1.8,2,-3,0],iu={connect:An,offset:{x:-1.1,bevelJoin:.872,roundJoin:.6},path:[...eu]},E0=K.clone(iu);E0.path=[...eu,1,-2.25,.95,2,-2.25,-.95],E0.dashPath=[1,-3,0,2,-.5,0];const q0={connect:{x:-1.8},path:[1,1.8,-.1,2,1.8,0,26,0,0,1.8,0,359,0]},su={connect:{x:.5},path:[...q0.path]},C0=K.clone(su);C0.path=[...q0.path,1,0,0,26,0,0,1,0,360,0],C0.dashPath=[1,-.5,0,2,.5,0];const fr={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]},nu={path:[...fr.path]},ou={path:[...fr.path,2,-1.4,-.49,2,1,-.49,1,-1.4,.49,2,1,.49]},G0=K.clone(fr);G0.connect.x=-1.9;const ru=K.clone(nu),au=K.clone(ou);bn(G0.path,45),bn(ru.path,45),bn(au.path,45);const B0={angle:__,"angle-side":m_,arrow:E0,triangle:rr,"triangle-flip":tu,circle:C0,"circle-line":q0,square:ou,"square-line":fr,diamond:au,"diamond-line":G0,mark:{offset:gr,path:[1,0,-2,2,0,2]}},lu={triangle:X0,"triangle-flip":Q1,arrow:iu,circle:su,square:nu,diamond:ru};function $d(e,t,i,s,n,o,r){let a,l,h=1,c=0;const{strokeCap:d,strokeJoin:f}=e.__;if(N(t))if(t.type){if(h=t.scale||1,c=t.rotation||0,a=B0[t.type],h>1){const k=lu[t.type];k&&(a=k,l=!0)}}else a=t;else a=B0[t];l||(l=a.fill);const{offset:u,connect:g,path:p,dashPath:m}=a;let y=g?g.x*h:0,_=u?u.x:0;const v=[...p];r&&m&&v.push(...m),d!=="none"&&(y-=.5),u&&(f==="round"&&u.roundJoin?_+=u.roundJoin:f==="bevel"&&u.bevelJoin&&(_+=u.bevelJoin)),h!==1&&Ya(v,0,0,h,h),_&&Ya(v,_,0),Ya(v,s.x,s.y,n,n,f_(i,s)+c),o.x=(y+_)*n;const x={data:v};return l&&(x.fill=l),x}const{M:Jd,L:Xa,C:Qd,Q:t1,Z:y_,N:v_,D:w_,X:x_,G:b_,F:k_,O:S_,P:E_,U:e1}=Ut,{copy:Hi,copyFrom:T0,getDistancePoint:i1,isSame:s1}=j,{stintSet:n1}=K,us={},Wo={},_n={},di={},ne={},Zt={},C_={list:B0,fillList:lu,addArrows(e,t){const i=e.__,{startArrow:s,endArrow:n,__strokeWidth:o,dashPattern:r,__pathForRender:a,cornerRadius:l}=i,h=!l;let c,d,f,u;t||(i.__strokeWidthCache=o);let g,p=0,m=a.length,y=0,_=s&&s!=="none";for(;p<m;){switch(g=a[p],g){case Jd:case Xa:(y<2||p+6>=m)&&(Hi(di,Zt),T0(Zt,a[p+1],a[p+2]),!y&&_&&Hi(Wo,Zt)),p+=3;break;case Qd:(y===1||p+7>=m-3)&&(qa(a,ne,Zt,p+3),di.x=a[p+1],di.y=a[p+2]),p+=7;break;case t1:(y===1||p+5>=m-3)&&(qa(a,ne,Zt,p+1),Hi(di,ne)),p+=5;break;case y_:return;case v_:p+=5;break;case w_:p+=9;break;case x_:p+=6;break;case b_:p+=9;break;case k_:p+=5;break;case S_:p+=7;break;case E_:p+=4;break;case e1:(y===1||p+6>=m-3)&&(qa(a,ne,Zt,p+1),Hi(di,ne),p+6!==m&&(Zt.x-=(Zt.x-ne.x)/10,Zt.y-=(Zt.y-ne.y)/10)),p+=6}if(y++,y===1&&g!==Jd)return;if(y===2&&_&&Hi(_n,g===Xa?Zt:s1(di,Wo)?ne:di),p===m){const v=i.__pathForRender=h?[...a]:a;if(_&&(c=$d(e,s,_n,Wo,o,us,!!r),d=c.fill||r,d||v.push(...c.data),us.x&&(i1(Wo,_n,-us.x,!0),v[1]=_n.x,v[2]=_n.y)),n&&n!=="none"&&(s1(ne,Zt)&&Hi(ne,di),f=$d(e,n,ne,Zt,o,us,!!r),u=f.fill||r,u||v.push(...f.data),us.x)){let x;switch(i1(Zt,ne,-us.x,!0),g){case Xa:x=p-3+1;break;case Qd:x=p-7+5;break;case t1:x=p-5+3;break;case e1:x=p-6+3}x&&B_(v,ne,x)}}else Hi(ne,Zt);n1(i,"__startArrowPath",d&&c),n1(i,"__endArrowPath",u&&f)}},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){T0(t,e[s],e[s+1]),T0(i,e[s+2],e[s+3])}function B_(e,t,i){e[i]=t.x,e[i+1]=t.y}function hu(e,t,i,s,n,o,r){const a=s-t,l=n-i,h=o-t,c=r-i,d=Math.sqrt(a*a+l*l),f=Math.sqrt(h*h+c*c);if(d<.001||f<.001)return 0;const u=(a*h+l*c)/(d*f),g=Math.max(-.99999,Math.min(.99999,u));let p=e*Math.sqrt((1-g)/(1+g));const m=Math.min(d/2,f/2);return Math.min(p,m)}function cu(e,t,i,s,n,o,r,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 f=Math.sqrt(c*c+d*d);f<1e-6&&(f=h||1);let u=Math.min(.5,e/f);const g={x:0,y:0};for(let p=0;p<5;p++){me.getPointAndSet(u,t,i,s,n,o,r,a,l,g);const m=g.x-t,y=g.y-i,_=Math.sqrt(m*m+y*y);if(_<1e-6){u*=1.5;continue}const v=(m*me.getDerivative(u,t,s,o,a)+y*me.getDerivative(u,i,n,r,l))/_;if(Math.abs(v)<1e-6)break;const x=u-(_-e)/v,k=Math.max(0,Math.min(.6,x));if(Math.abs(k-u)<1e-5){u=k;break}u=k}return Math.max(0,Math.min(.5,u))}
425Dt.add("arrow"),T.addAttr("startArrow","none",S0),T.addAttr("endArrow","none",S0),Object.assign(Qo,C_),Object.assign(Z,{strokeArrow(e,t,i,s){const{__startArrowPath:n,__endArrowPath:o,dashPattern:r}=t.__;r&&(i.dashPattern=null),n&&(i.beginPath(),t.__drawPathByData(i,n.data),i.stroke(),n.fill&&(i.fillStyle=e,i.fill())),o&&(i.beginPath(),t.__drawPathByData(i,o.data),i.stroke(),o.fill&&(i.fillStyle=e,i.fill()))}});const{M:pi,L:gi,C:Fe,Z:Yi}=Ut,{abs:T_}=Math,{getCenterX:O_,getCenterY:L_}=j,{arcTo:vn}=bi;function P_(e,t){let i,s,n,o;const r=e.length;for(;t<r;)switch(i=e[t],i){case pi:return;case gi:n=e[t+1],o=e[t+2],t+=3;break;case Fe:n=e[t+5],o=e[t+6],t+=7;break;case Yi:return{x:n,y:o};default:s=Ln[i],t+=s}}function o1(e,t,i,s,n,o,r,a,l,h,c,d,f){let u=a,g=l;yi(a,o)&&yi(l,r)&&(u=h,g=c,yi(h,o)&&yi(c,r)&&(u=d,g=f));const p=cu(hu(i,o,r,s,n,u,g),o,r,a,l,h,c,d,f),m=me.cut(p,o,r,a,l,h,c,d,f),{left:y,right:_}=m;return y&&_&&(e[t+1]=_[0],e[t+2]=_[1],e[t+3]=_[2],e[t+4]=_[3]),m}function r1(e,t,i,s,n,o,r,a,l,h,c,d,f){let u=r,g=a;yi(u,l)&&yi(g,h)&&(u=n,g=o,yi(u,l)&&yi(g,h)&&(u=i,g=s));const p=cu(hu(t,l,h,u,g,c,d),l,h,r,a,n,o,i,s),{left:m,right:y}=me.cut(1-p,i,s,n,o,r,a,l,h);m&&y?(e.push(Fe,m[0],m[1],m[2],m[3],m[4],m[5]),vn(e,l,h,c,d,t,m[4],m[5],f)):e.push(Fe,n,o,r,a,l,h)}function yi(e,t){return T_(e-t)<.01}O1.smooth=function(e,t,i){const s=e.radius;let n,o,r;e=function(B){let E,L=0;const F=B.length;for(;L<F;)switch(E=B[L],E){case pi:case gi:L+=3;break;case Fe:L+=7;break;case Yi:L+=1;break;default:return!0}return!1}(e)?xi.toCanvasData(e,!0):[...e];let a,l,h,c,d,f,u,g=0,p=0,m=0,y=0,_=0,v=0,x=0,k=0,b=0,C=0,O=0;Q(t)&&(t=t[0]||0);const A=e.length,P=A===9,S=[];for(;g<A;){switch(n=e[g],a=s?W(s[p])?t:s[p]:t,n){case pi:_=C=e[g+1],v=O=e[g+2],x=a,g+=3;const B=P_(e,g);switch(e[g]){case gi:k=e[g+1],b=e[g+2],P?S.push(pi,_,v):B?S.push(pi,O_(_,k),L_(v,b)):S.push(pi,_,v);break;case Fe:if(B){const{left:E,right:L}=o1(e,g,a,B.x,B.y,_,v,e[g+1],e[g+2],e[g+3],e[g+4],e[g+5],e[g+6]);if(E&&L){S.push(pi,k=E[4],b=E[5]);break}}default:S.push(pi,k=_,b=v)}break;case gi:switch(m=e[g+1],y=e[g+2],g+=3,e[g]){case gi:vn(S,m,y,e[g+1],e[g+2],a,C,O,P);break;case Fe:const{left:E,right:L}=o1(e,g,a,C,O,m,y,e[g+1],e[g+2],e[g+3],e[g+4],e[g+5],e[g+6]);E&&L?vn(S,m,y,E[4],E[5],a,C,O,P):S.push(gi,m,y);break;case Yi:vn(S,m,y,_,v,a,C,O,P);break;default:S.push(gi,m,y)}C=m,O=y;break;case Fe:switch(l=e[g+1],h=e[g+2],c=e[g+3],d=e[g+4],m=e[g+5],y=e[g+6],g+=7,e[g]){case gi:f=e[g+1],u=e[g+2],r1(S,a,C,O,l,h,c,d,m,y,f,u,P);break;case Fe:S.push(Fe,l,h,c,d,m,y);break;case Yi:f=_,u=v,r1(S,a,C,O,l,h,c,d,m,y,f,u,P);break;default:S.push(Fe,l,h,c,d,m,y)}C=m,O=y;break;case Yi:o!==Yi&&(vn(S,_,v,k,b,x,C,O,P),S.push(Yi)),g+=1;break;default:r=Ln[n];for(let E=0;E<r;E++)S.push(e[g+E]);g+=r}o=n,p++}return S},Dt.add("corner");const R_={none:"none",title:"capitalize",upper:"uppercase",lower:"lowercase","small-caps":"small-caps"},A_={top:"flex-start",middle:"center",bottom:"flex-end"},F_={none:"none",under:"underline",delete:"line-through","under-delete":"underline line-through"};function D_(e,t,i){const{style:s}=e,{fill:n,padding:o,textWrap:r,textOverflow:a,textDecoration:l}=t;let h;s.fontFamily=t.fontFamily,s.fontSize=t.fontSize*i+"px",function(c,d){let f="black";if(Q(d)&&(d=d[0]),N(d))switch(d.type){case"solid":f=gt.string(d.color);break;case"image":case"film":case"video":break;case"linear":case"radial":case"angular":const u=d.stops[0];f=gt.string($(u)?u:u.color);break;default:W(d.r)||(f=gt.string(d))}else f=d;c.color=f}(s,n),s.fontStyle=t.italic?"italic":"normal",s.fontWeight=t.fontWeight,N(l)?(h=l.type,l.color&&(s.textDecorationColor=gt.string(l.color))):h=l,s.textDecoration=F_[h],s.textTransform=R_[t.textCase],s.textAlign=t.textAlign==="both"?"justify":t.textAlign,s.display="flex",s.flexDirection="column",s.justifyContent=A_[t.verticalAlign],s.lineHeight=(t.__.__lineHeight||0)*i+"px",s.letterSpacing=(t.__.__letterSpacing||0)*i+"px",s.whiteSpace=r==="none"||t.__.__autoWidth?"nowrap":"normal",s.wordBreak=r==="break"?"break-all":"normal",s.textIndent=(t.paraIndent||0)*i+"px",s.padding=Q(o)?o.map(c=>c*i+"px").join(" "):(o||0)*i+"px",s.textOverflow=a==="show"?"":a==="hide"?"clip":a}let a1=class extends V0{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 V),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:o}=e.app;(this.inBody=o instanceof HTMLCanvasElement)?document.body.appendChild(s):o.appendChild(s),this.eventIds=[e.app.on_(z.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 r=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)}r.removeAllRanges(),r.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,`
426`);const s=window.getSelection();if(!s||!s.rangeCount)return;const n=s.getRangeAt(0);n.deleteContents();const o=i.split(`
427`),r=document.createDocumentFragment();o.forEach((a,l)=>{l>0&&r.appendChild(document.createElement("br")),r.appendChild(document.createTextNode(a))}
427),n.insertNode(r),n.collapse(!1),s.removeAllRanges(),s.addRange(n),this.onInput()}onUpdate(){const{editTarget:e}=this;let t=1;if(!this.isHTMLText){const{scaleX:m,scaleY:y}=e.worldTransform;t=Math.max(Math.abs(m),Math.abs(y)),e.fontSize*t<12&&(t*=12/e.fontSize)}this.textScale=t;let{width:i,height:s}=e,n=0,o=0;i*=t,s*=t;const r=e.__;if(r.__autoWidth)switch(i+=20,r.textAlign){case"center":n=r.autoSizeAlign?-i/2:-10;break;case"right":n=r.autoSizeAlign?-i:-20}if(r.__autoHeight)switch(s+=20,r.verticalAlign){case"middle":o=r.autoSizeAlign?-s/2:-10;break;case"bottom":o=r.autoSizeAlign?-s:-20}const{x:a,y:l}=this.inBody?e.app.clientBounds:e.app.tree.clientBounds,{a:h,b:c,c:d,d:f,e:u,f:g}=new Kt(e.worldTransform).scale(1/t).translateInner(n,o),{style:p}=this.editDom;p.transform=`matrix(${h},${c},${d},${f},${u},${g})`,p.left=a+"px",p.top=l+"px",p.width=i+"px",p.height=s+"px",this.isHTMLText||D_(this.editDom,e,t)}onUnload(){const{editTarget:e,editor:t,editDom:i}=this;e&&(this.onInput(),e.text===`
428`&&(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 M_(e,t=1,i){const s=new Ts({view:e,wheel:{preventDefault:!1},type:"draw",editor:{select:i?"tap":"press"},pointer:{dragHover:!1,hover:!i}}),n=s.tree;let o=0;return new d0(n,{space:60}),new c0(n,{y:o+=150,space:60}),new p0(n,{y:o+=150,space:60}),new _0(n,{y:o+=150,space:60}),new h0(n,{y:o+=180,space:60}),n.on(st.READY,()=>{n.scaleX=n.scaleY=t}),n.children.forEach(r=>{r.editable=!0}),s.editor.target=n.children[2],s}function I_(e,t=1,i){const s=new Ts({view:e,wheel:{preventDefault:!1},type:"draw",editor:{select:i?"tap":"press"},pointer:{dragHover:!1,hover:!i}}),n=s.tree;let o=0;return new u0(n,{y:o,space:60}),new m0(n,{y:o+=150,space:60}),new g0(n,{y:o+=150,space:60}),new f0(n,{y:o+=150,space:60}),n.on(st.READY,()=>{n.scaleX=n.scaleY=t}),n.children.forEach(r=>{r.editable=!0}),s.editor.target=n.children[2],s}a1=w([I4()],a1),Dt.add("text-editor","editor"),V.setEditConfig({point:{editConfig:{editSize:"font-size"}}});var z_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W_=window.device,R={},O0=[];window.device=R;var Bn=window.document.documentElement,H_=window.navigator.userAgent.toLowerCase(),l1=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];R.macos=function(){return Mt("mac")};R.ios=function(){return R.iphone()||R.ipod()||R.ipad()};R.iphone=function(){return!R.windows()&&Mt("iphone")};R.ipod=function(){return Mt("ipod")};R.ipad=function(){var e=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1;return Mt("ipad")||e};R.android=function(){return!R.windows()&&Mt("android")};R.androidPhone=function(){return R.android()&&Mt("mobile")};R.androidTablet=function(){return R.android()&&!Mt("mobile")};R.blackberry=function(){return Mt("blackberry")||Mt("bb10")};R.blackberryPhone=function(){return R.blackberry()&&!Mt("tablet")};R.blackberryTablet=function(){return R.blackberry()&&Mt("tablet")};R.windows=function(){return Mt("windows")};R.windowsPhone=function(){return R.windows()&&Mt("phone")};R.windowsTablet=function(){return R.windows()&&Mt("touch")&&!R.windowsPhone()};R.fxos=function(){return(Mt("(mobile")||Mt("(tablet"))&&Mt(" rv:")};R.fxosPhone=function(){return R.fxos()&&Mt("mobile")};R.fxosTablet=function(){return R.fxos()&&Mt("tablet")};R.meego=function(){return Mt("meego")};R.cordova=function(){return window.cordova&&location.protocol==="file:"};R.nodeWebkit=function(){return z_(window.process)==="object"};R.mobile=function(){return R.androidPhone()||R.iphone()||R.ipod()||R.windowsPhone()||R.blackberryPhone()||R.fxosPhone()||R.meego()};R.tablet=function(){return R.ipad()||R.androidTablet()||R.blackberryTablet()||R.windowsTablet()||R.fxosTablet()};R.desktop=function(){return!R.tablet()&&!R.mobile()};R.television=function(){for(var e=0;e<l1.length;){if(Mt(l1[e]))return!0;e++}return!1};R.portrait=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?K0(screen.orientation.type,"portrait"):R.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?Math.abs(window.orientation)!==90:window.innerHeight/window.innerWidth>1};R.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?K0(screen.orientation.type,"landscape"):R.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?Math.abs(window.orientation)===90:window.innerHeight/window.innerWidth<1}
428;R.noConflict=function(){return window.device=W_,this};function K0(e,t){return e.indexOf(t)!==-1}function Mt(e){return K0(H_,e)}function du(e){return Bn.className.match(new RegExp(e,"i"))}function zt(e){var t=null;du(e)||(t=Bn.className.replace(/^\s+|\s+$/g,""),Bn.className=t+" "+e)}function h1(e){du(e)&&(Bn.className=Bn.className.replace(" "+e,""))}R.ios()?R.ipad()?zt("ios ipad tablet"):R.iphone()?zt("ios iphone mobile"):R.ipod()&&zt("ios ipod mobile"):R.macos()?zt("macos desktop"):R.android()?R.androidTablet()?zt("android tablet"):zt("android mobile"):R.blackberry()?R.blackberryTablet()?zt("blackberry tablet"):zt("blackberry mobile"):R.windows()?R.windowsTablet()?zt("windows tablet"):R.windowsPhone()?zt("windows mobile"):zt("windows desktop"):R.fxos()?R.fxosTablet()?zt("fxos tablet"):zt("fxos mobile"):R.meego()?zt("meego mobile"):R.nodeWebkit()?zt("node-webkit"):R.television()?zt("television"):R.desktop()&&zt("desktop");R.cordova()&&zt("cordova");function Go(){R.landscape()?(h1("portrait"),zt("landscape"),c1("landscape")):(h1("landscape"),zt("portrait"),c1("portrait")),uu()}function c1(e){for(var t=0;t<O0.length;t++)O0[t](e)}R.onChangeOrientation=function(e){typeof e=="function"&&O0.push(e)};var Ko="resize";Object.prototype.hasOwnProperty.call(window,"onorientationchange")&&(Ko="orientationchange");window.addEventListener?window.addEventListener(Ko,Go,!1):window.attachEvent?window.attachEvent(Ko,Go):window[Ko]=Go;Go();function Z0(e){for(var t=0;t<e.length;t++)if(R[e[t]]())return e[t];return"unknown"}R.type=Z0(["mobile","tablet","desktop"]);R.os=Z0(["ios","iphone","ipad","ipod","android","blackberry","macos","windows","fxos","meego","television"]);function uu(){R.orientation=Z0(["portrait","landscape"])}uu();window.addEventListener("DOMContentLoaded",()=>{let e=1;const t=document.getElementById("leafer-ui-display"),i=window.innerWidth;i<800&&(e=i/500,t.style.height=780*e+"px");const s=M_(t,e,R.mobile());s.children[0].x=50,s.children[0].y=30,i<800&&(s.children[0].x=-200)});window.addEventListener("DOMContentLoaded",()=>{let e=1;const t=document.getElementById("leafer-ui-display2"),i=window.innerWidth;i<800&&(e=i/500,t.style.height=600*e+"px");const s=I_(t,e,R.mobile());s.children[0].x=50,s.children[0].y=30,i<800&&(s.children[0].x=-200)});const kn=document.getElementById("menu-panel");document.getElementById("list-btn").addEventListener("click",()=>{kn.style.display!=="block"?kn.style.display="block":kn.style.display="none"});R.mobile()&&kn.addEventListener("click",()=>{kn.style.display="none"});document.getElementById("different-show-all").addEventListener("click",()=>{document.getElementById("different-show-all").style.display="none",document.getElementById("different-footer-intro").style.display="block",document.getElementById("compare-box").style.height="auto",document.getElementById("compare-box").style.overflow="normal"});function pu(e){const t=new URL(window.location.href),s=t.pathname.replace(/^\/en(?=\/|$)/,"")||"/";return e==="en"?t.pathname=s==="/"?"/en/":`/en${s}`:t.pathname=s,t.toString()}window.location.href.includes("/en/")?document.getElementById("en-btn").classList.add("selected-lang"):document.getElementById("zh-btn").classList.add("selected-lang");document.getElementById("zh-btn").addEventListener("click",()=>{d1("zh"),setTimeout(()=>{location.href=pu("zh")})});document.getElementById("en-btn").addEventListener("click",()=>{d1("en"),setTimeout(()=>{location.href=pu("en")})});wu();

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.