UNPKG

site

Version:

Site Engine is the world's first all-in-one engine to build a modern web site, game, or blog. No HTML or CSS knowledge required.

1 lines 52.9 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=require("./shared.manifest"),i=l(require("./client.ui")),s=l(require("./client.dom")),r=l(require("./client.browser")),n=l(require("./client.ui.measure")),o=require("./shared.color"),h=(t=o)&&t.__esModule?t:{default:t},a=l(require("./client.animation"));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}var u,d,c,p,g,y,m,v,w,E,T,S,L,f,P,A,R,_,F,D,I,b,x,M,O,U,W,H,k,C,N,B,V,z,Y,X,q,K,G,Z,j,$,J,Q,tt,et,it,st,rt,nt,ot,ht,at,lt,ut,dt,ct,pt,gt,yt,mt,vt,wt,Et,Tt,St,Lt,ft,Pt,At,Rt,_t,Ft,Dt,It,bt,xt,Mt,Ot,Ut,Wt,Ht,kt,Ct,Nt,Bt,Vt=function(t,e){return(t%e+e)%e},zt=function(t){return null!=t},Yt=function(t,e,i,s){return t(e)[i](e,...s)};u=0,d=Object.create(null),c=0,p=Yt(e.dotDot_573300145710716007,Array.from(document.styleSheets),"single",[function(t){return(()=>"animation-705357537593286848"===t.title)()}]),function t(){return(()=>(c>1e5&&((0,e.loop)({"":p.cssRules.length-1,to:0,by:-1,for:function(t){return e=p.cssRules[t],d[e.name]?(p.deleteRule(t),void delete d[e.name]):void 0;var e}}),c=0),Yt(e.dotDot_573300145710716007,Promise,"delay",[1e3]).then(t)))()}(),exports.default=(g=Symbol(),y=Symbol(),m=Symbol(),v=Symbol(),w=Symbol(),E=Symbol(),T=Symbol(),S=Symbol(),L=Symbol(),f=Symbol(),P=Symbol(),A=Symbol(),R=Symbol(),_=Symbol(),F=Symbol(),D=Symbol(),I=Symbol(),b=Symbol(),x=Symbol(),M=Symbol(),O=Symbol(),U=Symbol(),W=Symbol(),H=Symbol(),k=Symbol(),C=Symbol(),N=Symbol(),B=Symbol(),V=Symbol(),z=Symbol(),Y=Symbol(),X=Symbol(),q=Symbol(),K=Symbol(),G=Symbol(),Z=Symbol(),j=Symbol(),$=Symbol(),J=Symbol(),Q=Symbol(),tt=Symbol(),et=Symbol(),it=Symbol(),st=Symbol(),rt=Symbol(),nt=Symbol(),ot=Symbol(),ht=Symbol(),at=Symbol(),lt=Symbol(),ut=Symbol(),dt=Symbol(),ct=Symbol(),pt=Symbol(),gt=Symbol(),yt=Symbol(),mt=Symbol(),vt=Symbol(),wt=Symbol(),Et=Symbol(),Tt=Symbol(),St=Symbol(),Lt=Symbol(),ft=Symbol(),Pt=Symbol(),At=Symbol(),Rt=Symbol(),_t=Symbol(),Ft=Symbol(),Dt=Symbol(),It=Symbol(),bt=Symbol(),xt=Symbol(),Mt=Symbol(),Ot=Symbol(),Ut=Symbol(),Wt=Symbol(),Ht=Symbol(),kt=Symbol(),Ct=Symbol(),Nt=Symbol(),(Bt=class{constructor(){(()=>{var t=arguments;(()=>{var n,o,h,a,l;this[g]=!1,this[y]=null,this[m]=null,this[v]=null,this[w]={},this[E]=new e.Point(0,0),this[T]={},this[S]=!1,this[L]=!1,this[f]=0,this[P]=0,this[A]=(0,e.eventField)(),this.onMouseDown=(0,e.eventField)(),this.onMouseUp=(0,e.eventField)(),this.onMouseMove=(0,e.eventField)(),this.onMouseOver=(0,e.eventField)(),this.onMouseOut=(0,e.eventField)(),this.onMouseEnter=(0,e.eventField)(),this.onMouseLeave=(0,e.eventField)(),this.onDomClick=(0,e.eventField)(),this.onTransitionEnd=(0,e.eventField)(),this.onScroll=(0,e.eventField)(),this.onPointerDown=(0,e.eventField)(),this.onPointerUp=(0,e.eventField)(),this.onPointerDownMove=(0,e.eventField)(),this.onPointerDownLeave=(0,e.eventField)(),this.onClick=(0,e.eventField)(),this.onHold=(0,e.eventField)(),this.onWheel=(0,e.eventField)(),this.onWheelStart=(0,e.eventField)(),this.onScrollStart=(0,e.eventField)(),this.onScrollEnd=(0,e.eventField)(),this.onKeyDown=(0,e.eventField)(),this.onKeyUp=(0,e.eventField)(),this.onKeyPress=(0,e.eventField)(),this.onTextInput=(0,e.eventField)(),this.onCommitTextInput=(0,e.eventField)(),(n=this.constructor.analyseArguments(t)).main[0]instanceof e.global.Element?(()=>!0===n.main[1]?void(o=n.main[0]):(()=>(o=s.parseElement('<div xmlns="http://www.w3.org/1999/xhtml" />')).appendChild(n.main[0]))())():(()=>(h="string"==typeof n.main[0]?(()=>n.main[0])():"",!0===n.main[1]?void(o=s.parseElement(h)):void(o=s.parseElement('<div xmlns="http://www.w3.org/1999/xhtml">'+h+"</div>"))))(),o.element_705357537593286848=this,this.raw=o,this.initEvent(n.options.preInit,this[A]),this[A].fire({sender:this}),this.raw.addEventListener("mousedown",t=>(()=>this.onMouseDown.fire(t))()),this.raw.addEventListener("mouseup",t=>(()=>this.onMouseUp.fire(t))()),this.raw.addEventListener("mousemove",t=>(()=>this.onMouseMove.fire(t))()),this.raw.addEventListener("mouseover",t=>(()=>this.onMouseOver.fire(t))()),this.raw.addEventListener("mouseout",t=>(()=>this.onMouseOut.fire(t))()),this.raw.addEventListener("mouseenter",t=>(()=>this.onMouseEnter.fire(t))()),this.raw.addEventListener("mouseleave",t=>(()=>this.onMouseLeave.fire(t))()),this.raw.addEventListener("click",t=>(()=>this.onDomClick.fire(t))()),this.raw.addEventListener("transitionend",t=>(()=>t.target===this.raw?(()=>this.onTransitionEnd.fire(t))():void 0)()),this.raw.addEventListener("scroll",t=>(()=>{var e,s,r,n;return e=window.performance.now(),s=this.raw.scrollLeft,r=this.raw.scrollTop,n=i.getRemInPixels(),zt(this[R])&&(()=>(this[f]=(s-this[_])/Math.abs(e-this[R])/n,this[f]<-1e3?(()=>{this[f]=-1e3})():(()=>this[f]>1e3?(()=>{this[f]=1e3})():void 0)(),this[P]=(r-this[F])/Math.abs(e-this[R])/n,this[P]<-1e3?(()=>{this[P]=-1e3})():(()=>this[P]>1e3?(()=>{this[P]=1e3})():void 0)()))(),this[R]=e,this[_]=s,this[F]=r,this.canDescendantsClickHold&&Math.sqrt(Math.pow(s-this[D],2)+Math.pow(r-this[I],2))/n>=this[b]&&(()=>{this.canDescendantsClickHold=!1})(),this.onScroll.fire(t)})()),this.raw.addEventListener("keydown",t=>(()=>this.onKeyDown.fire(t))()),this.raw.addEventListener("keyup",t=>(()=>this.onKeyUp.fire(t))()),this.raw.addEventListener("keypress",t=>(()=>this.onKeyPress.fire(t))()),this.raw.addEventListener("input",t=>(()=>this.onTextInput.fire(t))()),this.raw.addEventListener("change",t=>(()=>this.onCommitTextInput.fire(t))()),s.initElementEvents(this.raw),this.raw.addEventListener("pointer-down-705357537593286848",t=>(()=>{var e,i;return this[D]=this.raw.scrollLeft,this[I]=this.raw.scrollTop,e=this.getScrollVelocityX(),i=this.getScrollVelocityY(),this.canDescendantsClickHold=Math.sqrt(e*e+i*i)<this[x],this.onPointerDown.fire(t)})()),this.raw.addEventListener("pointer-up-705357537593286848",t=>(()=>this.onPointerUp.fire(t))()),this.raw.addEventListener("pointer-down-move-705357537593286848",t=>(()=>this.onPointerDownMove.fire(t))()),this.raw.addEventListener("pointer-down-leave-705357537593286848",t=>(()=>this.onPointerDownLeave.fire(t))()),this.raw.addEventListener("click-705357537593286848",t=>(()=>this.getAncestors().every(t=>(()=>t.canDescendantsClickHold)())?(()=>this.onClick.fire(t))():void 0)()),this.raw.addEventListener("hold-705357537593286848",t=>(()=>this.getAncestors().every(t=>(()=>t.canDescendantsClickHold)())?(()=>this.onHold.fire(t))():void 0)()),this.raw.addEventListener("wheel-705357537593286848",t=>(()=>this.onWheel.fire(t))()),this.raw.addEventListener("wheel-start-705357537593286848",t=>(()=>this.onWheelStart.fire(t))()),this.raw.addEventListener("scroll-start-705357537593286848",t=>(()=>this.onScrollStart.fire(t))()),this.raw.addEventListener("scroll-end-705357537593286848",t=>(()=>(this[f]=0,this[P]=0,this.onScrollEnd.fire(t)))()),a=(t=>(()=>this[M]?void(t.defaultEnabled_705357537593286848=!0):void 0)()),this.raw.addEventListener("mousedown",a),this.raw.addEventListener("mouseup",a),this.raw.addEventListener("mousemove",a),r.isTouch&&(()=>(this.raw.addEventListener("touchstart",a),this.raw.addEventListener("touchend",a),this.raw.addEventListener("touchmove",a)))(),r.isTouch&&(()=>(l=(()=>{return(()=>this[S]||this[L]?(()=>(this[S]=!1,this[L]=!1,this[O]()))():void 0)()}),this.raw.addEventListener("touchend",()=>{return(()=>l())()}),this.raw.addEventListener("touchcancel",()=>{return(()=>l())()})))(),this.initEvent(n.options.mouseDown,this.onMouseDown),this.initEvent(n.options.mouseUp,this.onMouseUp),this.initEvent(n.options.mouseMove,this.onMouseMove),this.initEvent(n.options.mouseOver,this.onMouseOver),this.initEvent(n.options.mouseOut,this.onMouseOut),this.initEvent(n.options.mouseEnter,this.onMouseEnter),this.initEvent(n.options.mouseLeave,this.onMouseLeave),this.initEvent(n.options.domClick,this.onDomClick),this.initEvent(n.options.transitionEnd,this.onTransitionEnd),this.initEvent(n.options.scroll,this.onScroll),this.initEvent(n.options.pointerDown,this.onPointerDown),this.initEvent(n.options.pointerUp,this.onPointerUp),this.initEvent(n.options.pointerDownMove,this.onPointerDownMove),this.initEvent(n.options.pointerDownLeave,this.onPointerDownLeave),this.initEvent(n.options.click,this.onClick),this.initEvent(n.options.hold,this.onHold),this.initEvent(n.options.wheel,this.onWheel),this.initEvent(n.options.wheelStart,this.onWheelStart),this.initEvent(n.options.scrollStart,this.onScrollStart),this.initEvent(n.options.scrollEnd,this.onScrollEnd),this.initEvent(n.options.keyDown,this.onKeyDown),this.initEvent(n.options.keyUp,this.onKeyUp),this.initEvent(n.options.keyPress,this.onKeyPress),this.initEvent(n.options.textInput,this.onTextInput),this.initEvent(n.options.commitTextInput,this.onCommitTextInput),this[U]=new e.Observer(()=>{return(()=>getComputedStyle(this.raw).width)()}).onUpdate(t=>(()=>{var e;return zt(this[W])&&!(this[W].x instanceof i.AutoLength)&&this[W].y instanceof i.AutoLength&&zt(this[H])&&t.value.endsWith("px")?(()=>{e=parseFloat(t.value)/this[H],i.antiFractionEnabled&&(e=Math.round(e)),this.raw.style.height=e+"px"})():void 0})()).stop(),this[k]=new e.Observer(()=>{return(()=>getComputedStyle(this.raw).height)()}).onUpdate(t=>(()=>{var e;return zt(this[W])&&this[W].x instanceof i.AutoLength&&!(this[W].y instanceof i.AutoLength)&&zt(this[H])&&t.value.endsWith("px")?(()=>{e=parseFloat(t.value)*this[H],i.antiFractionEnabled&&(e=Math.round(e)),this.raw.style.width=e+"px"})():void 0})()).stop(),this[C]=new e.Observer(()=>{return(()=>{var t;return(t=getComputedStyle(this.raw)).width+","+t.height})()}).onUpdate(t=>(()=>{var e,r,n,o,h,a;return e=zt(this[N])&&this[N].perspective instanceof i.RatioLength,r=zt(this[B])&&this[B]instanceof i.RatioLength,e||r?(()=>(n=t.value.split(","),o=n[0],h=n[1],o=o.endsWith("px")?(()=>parseFloat(o))():0,h=h.endsWith("px")?(()=>parseFloat(h))():0,a=Math.sqrt(o*h),e&&(()=>s.setTransformItemValue(this.raw,"perspective",a*this[N].perspective.value+"px"))(),r?(()=>{this.raw.style.fontSize=a*this[B].value+"px"})():void 0))():void 0})()).stop(),this.setParent(null),this.setAntiFractionOffset(new e.Point(0,0)),this.initProperty(n.options.anchor,this.setAnchor,this.constructor.DEFAULT_ANCHOR),this.initProperty(n.options.zIndex,this.setZIndex,this.constructor.DEFAULT_Z_INDEX),this.initProperty(n.options.position,this.setPosition,this.constructor.DEFAULT_POSITION),this.initProperty(n.options.size,this.setSize,this.constructor.DEFAULT_SIZE),this.initProperty(n.options.minSize,this.setMinSize,this.constructor.DEFAULT_MIN_SIZE),this.initProperty(n.options.maxSize,this.setMaxSize,this.constructor.DEFAULT_MAX_SIZE),this.initProperty(n.options.aspectRatio,this.setAspectRatio,this.constructor.DEFAULT_ASPECT_RATIO),this.initProperty(n.options.grow,this.setGrow,this.constructor.DEFAULT_GROW),this.initProperty(n.options.shrink,this.setShrink,this.constructor.DEFAULT_SHRINK),this.initProperty(n.options.visibility,this.setVisibility,this.constructor.DEFAULT_VISIBILITY),this.initProperty(n.options.opacity,this.setOpacity,this.constructor.DEFAULT_OPACITY),this.initProperty(n.options.overflow,this.setOverflow,this.constructor.DEFAULT_OVERFLOW),this.initProperty(n.options.strokePaint,this.setStrokePaint,this.constructor.DEFAULT_STROKE_PAINT),this.initProperty(n.options.paint,this.setPaint,this.constructor.DEFAULT_PAINT),this.initProperty(n.options.backgroundPaint,this.setBackgroundPaint,this.constructor.DEFAULT_BACKGROUND_PAINT),this.initProperty(n.options.border,this.setBorder,this.constructor.DEFAULT_BORDER),this.initProperty(n.options.borderRadius,this.setBorderRadius,this.constructor.DEFAULT_BORDER_RADIUS),this.initProperty(n.options.fontFamily,this.setFontFamily,this.constructor.DEFAULT_FONT_FAMILY),this.initProperty(n.options.fontSize,this.setFontSize,this.constructor.DEFAULT_FONT_SIZE),this.initProperty(n.options.fontWeight,this.setFontWeight,this.constructor.DEFAULT_FONT_WEIGHT),this.initProperty(n.options.fontStyle,this.setFontStyle,this.constructor.DEFAULT_FONT_STYLE),this.initProperty(n.options.lineHeight,this.setLineHeight,this.constructor.DEFAULT_LINE_HEIGHT),this.initProperty(n.options.selectable,this.setSelectable,this.constructor.DEFAULT_SELECTABLE),this.initProperty(n.options.pointer,this.setPointer,this.constructor.DEFAULT_POINTER),this.initProperty(n.options.pointerArea,this.setPointerArea,this.constructor.DEFAULT_POINTER_AREA),this.initProperty(n.options.padding,this.setPadding,this.constructor.DEFAULT_PADDING),this.initProperty(n.options.strokeWidth,this.setStrokeWidth,this.constructor.DEFAULT_STROKE_WIDTH),this.initProperty(n.options.wrapping,this.setWrapping,this.constructor.DEFAULT_WRAPPING),this.initProperty(n.options.textAlignment,this.setTextAlignment,this.constructor.DEFAULT_TEXT_ALIGNMENT),this.initProperty(n.options.textOverflow,this.setTextOverflow,this.constructor.DEFAULT_TEXT_OVERFLOW),this.initProperty(n.options.overflowWrapping,this.setOverflowWrapping,this.constructor.DEFAULT_OVERFLOW_WRAPPING),this.initProperty(n.options.wordBreak,this.setWordBreak,this.constructor.DEFAULT_WORD_BREAK),this.initProperty(n.options.wheelTarget,this.setWheelTarget,this.constructor.DEFAULT_WHEEL_TARGET),this.initProperty(n.options.transition,this.setTransition,this.constructor.DEFAULT_TRANSITION),this.initProperty(n.options.hoverStyles,this.setHoverStyles,this.constructor.DEFAULT_HOVER_STYLES),this.initProperty(n.options.activeStyles,this.setActiveStyles,this.constructor.DEFAULT_ACTIVE_STYLES),this.initProperty(n.options.backFaceVisible,this.setBackFaceVisible,this.constructor.DEFAULT_BACK_FACE_VISIBLE),this.initProperty(n.options.translate,this.setTranslate,this.constructor.DEFAULT_TRANSLATE),this.initProperty(n.options.rotate,this.setRotate,this.constructor.DEFAULT_ROTATE),this.initProperty(n.options.scale,this.setScale,this.constructor.DEFAULT_SCALE),this.initProperty(n.options.rotate3d,this.setRotate3d,this.constructor.DEFAULT_ROTATE_3D),this.initProperty(n.options.clickThreshold,this.setClickThreshold,this.constructor.DEFAULT_CLICK_THRESHOLD),this.initProperty(n.options.holdThreshold,this.setHoldThreshold,this.constructor.DEFAULT_HOLD_THRESHOLD),this.initProperty(n.options.pointerDefaultEnabled,this.setPointerDefaultEnabled,this.constructor.DEFAULT_POINTER_DEFAULT_ENABLED),this.initProperty(n.options.wheelTouchThreshold,this.setWheelTouchThreshold,this.constructor.DEFAULT_WHEEL_TOUCH_THRESHOLD),this.initProperty(n.options.minScrollVelocityToEat,this.setMinScrollVelocityToEat,this.constructor.DEFAULT_MIN_SCROLL_VELOCITY_TO_EAT),this.initProperty(n.options.minScrollDistanceToEat,this.setMinScrollDistanceToEat,this.constructor.DEFAULT_MIN_SCROLL_DISTANCE_TO_EAT),this.initProperty(n.options.x,this.setX),this.initProperty(n.options.y,this.setY),this.initProperty(n.options.width,this.setWidth),this.initProperty(n.options.height,this.setHeight),this.initProperty(n.options.widthInRem,this.setWidthInRem),this.initProperty(n.options.widthInEm,this.setWidthInEm),this.initProperty(n.options.widthInRatio,this.setWidthInRatio),this.initProperty(n.options.heightInRem,this.setHeightInRem),this.initProperty(n.options.heightInEm,this.setHeightInEm),this.initProperty(n.options.heightInRatio,this.setHeightInRatio),this.initProperty(n.options.minWidth,this.setMinWidth),this.initProperty(n.options.minHeight,this.setMinHeight),this.initProperty(n.options.minWidthInRem,this.setMinWidthInRem),this.initProperty(n.options.minWidthInEm,this.setMinWidthInEm),this.initProperty(n.options.minWidthInRatio,this.setMinWidthInRatio),this.initProperty(n.options.minHeightInRem,this.setMinHeightInRem),this.initProperty(n.options.minHeightInEm,this.setMinHeightInEm),this.initProperty(n.options.minHeightInRatio,this.setMinHeightInRatio),this.initProperty(n.options.maxWidth,this.setMaxWidth),this.initProperty(n.options.maxHeight,this.setMaxHeight),this.initProperty(n.options.maxWidthInRem,this.setMaxWidthInRem),this.initProperty(n.options.maxWidthInEm,this.setMaxWidthInEm),this.initProperty(n.options.maxWidthInRatio,this.setMaxWidthInRatio),this.initProperty(n.options.maxHeightInRem,this.setMaxHeightInRem),this.initProperty(n.options.maxHeightInEm,this.setMaxHeightInEm),this.initProperty(n.options.maxHeightInRatio,this.setMaxHeightInRatio)})()})()}static analyseArguments(t){return(t=>(()=>{var i,s,r;return t=Array.from(t),i=Yt(e.dotDot_573300145710716007,t,"singleOrNull",[t=>(()=>t instanceof Object&&!(t instanceof Array)&&t.constructor===Object)()]),1===(s=null===i?(()=>t)():(()=>Yt(e.dotDot_573300145710716007,t,"except",[[i]]))()).length&&s[0]instanceof Array&&(s=s[0]),{options:void 0===(r=i)||null===r?{}:r,main:s}})())(t)}static optionsWithEventListenerAdded(t,i,s){return((t,i,s)=>(()=>{var r,n,o;return r=Yt(e.dotDot_573300145710716007,Object,"clone",[t]),(n=r[i])instanceof Array?((o=n.clone()).push(s),r[i]=o):(()=>void 0===n?void(r[i]=s):void(r[i]=[n,s]))(),r})())(t,i,s)}static[V](t){return(t=>(()=>("none"===t&&(t="matrix(1, 0, 0, 1, 0, 0)"),t.match(new RegExp("^(?:matrix|matrix3d)\\((.*)\\)$"))[1].split(",").map(t=>(()=>parseFloat(t))())))())(t)}static[z](t){return(t=>(()=>"string"==typeof t?(()=>Yt(e.dotDot_573300145710716007,Math,"degreesToRadians",[parseFloat(t)]))():(()=>t)())())(t)}static[Y](t){return(t=>(()=>zt(t)?(()=>({perspective:i.Length.from(t.perspective),axisAngle:this[z](t.axisAngle),angle:this[z](t.angle)}))():null)())(t)}static[X](t,e){return((t,e)=>(()=>t.perspective.equals(e.perspective)&&t.axisAngle===e.axisAngle&&t.angle===e.angle)())(t,e)}static[q](t){return(t=>(()=>"number"==typeof t?(()=>new e.Point(t,t))():(()=>e.Point.from(t))())())(t)}[K](){return(()=>{return(()=>zt(this[H])?(()=>(this[U].run(),this[k].run(),this[U].check(!0),this[k].check(!0)))():void 0)()})()}[G](){return(()=>{return(()=>zt(this[H])?void 0:(()=>(this[U].stop(),this[k].stop()))())()})()}[Z](){return(()=>{return(()=>zt(this[N])&&this[N].perspective instanceof i.RatioLength||zt(this[B])&&this[B]instanceof i.RatioLength?(()=>(this[C].run(),this[C].check(!0)))():void 0)()})()}[j](){return(()=>{return(()=>zt(this[N])&&this[N].perspective instanceof i.RatioLength||zt(this[B])&&this[B]instanceof i.RatioLength?void 0:(()=>this[C].stop())())()})()}[$](t){return(t=>(()=>(void 0!==t.translate?(()=>this.setTranslate(t.translate,!1))():(()=>void 0!==this[T].translate?(()=>this.setTranslate(this.getTranslate(),!1))():void 0)(),void 0!==t.rotate?(()=>this.setRotate(t.rotate,!1))():(()=>void 0!==this[T].rotate?(()=>this.setRotate(this.getRotate(),!1))():void 0)(),void 0!==t.scale?(()=>this.setScale(t.scale,!1))():(()=>void 0!==this[T].scale?(()=>this.setScale(this.getScale(),!1))():void 0)(),void 0!==t.rotate3d?(()=>this.setRotate3d(t.rotate3d,!1))():(()=>void 0!==this[T].rotate3d?(()=>this.setRotate3d(this.getRotate3d(),!1))():void 0)(),void 0!==t.opacity?(()=>this.setOpacity(t.opacity,!1))():(()=>void 0!==this[T].opacity?(()=>this.setOpacity(this.getOpacity(),!1))():void 0)(),void 0!==t.paint?(()=>this.setPaint(t.paint,!1))():(()=>void 0!==this[T].paint?(()=>this.setPaint(this.getPaint(),!1))():void 0)(),void 0!==t.backgroundPaint?(()=>this.setBackgroundPaint(t.backgroundPaint,!1))():(()=>void 0!==this[T].backgroundPaint?(()=>this.setBackgroundPaint(this.getBackgroundPaint(),!1))():void 0)(),void 0!==t.zIndex?(()=>this.setZIndex(t.zIndex,!1))():(()=>void 0!==this[T].zIndex?(()=>this.setZIndex(this.getZIndex(),!1))():void 0)(),this[T]=t,this))())(t)}[O](){return(()=>{return(()=>zt(this[J])&&this[L]?(()=>this[$](this[J]))():(()=>zt(this[Q])&&this[S]?(()=>this[$](this[Q]))():(()=>this[$]({}))())())()})()}initProperty(t,e,i){return((t,e,i)=>(()=>((void 0!==t||void 0!==i)&&(()=>void 0!==t?(()=>e.call(this,t))():(()=>e.call(this,i))())(),this))())(t,e,i)}initEvent(t,e){return((t,e)=>(()=>(void 0!==t&&(()=>t instanceof Array?(()=>t.forEach(t=>(()=>e.call(this,t))()))():(()=>e.call(this,t))())(),this))())(t,e)}setParent(t){return(t=>(()=>(this[tt]=t,this))())(t)}getParent(){return(()=>{return(()=>this[tt])()})()}getNext(){return(()=>{return(()=>this[tt].getChild(this[tt].indexOf(this)+1))()})()}getPrevious(){return(()=>{return(()=>this[tt].getChild(this[tt].indexOf(this)-1))()})()}getAncestors(){return(()=>{return(()=>{var t,i;return t=this,i=[],(0,e.loop)(()=>{return(()=>(t=t.getParent(),zt(t)?(()=>i.push(t))():(()=>e.break)()))()}),i})()})()}checkObservers(){return(()=>{return(()=>(this[U].getRunning()&&(()=>this[U].check())(),this[k].getRunning()&&(()=>this[k].check())(),this[C].getRunning()&&(()=>this[C].check())(),this))()})()}empty(){return(()=>{return(()=>(this.raw.textContent="",this))()})()}show(){return(()=>{return(()=>this.setVisibility("visible"))()})()}hide(){return(()=>{return(()=>this.setVisibility("hidden"))()})()}collapse(){return(()=>{return(()=>this.setVisibility("collapsed"))()})()}setVisibility(t){return(t=>(()=>{var s;return this[et]=t,s=this.getParent(),"visible"===t?(()=>(this.raw.style.display="",this.raw.style.visibility="",this.refreshRawMargin(),s instanceof i.Stack?(()=>s.refreshOldEdgeChildRawMargin())():void 0))():(()=>"hidden"===t?(()=>(this.raw.style.display="",this.raw.style.visibility="hidden",this.refreshRawMargin(),s instanceof i.Stack?(()=>s.refreshOldEdgeChildRawMargin())():void 0))():(()=>"collapsed"===t?(()=>(this.raw.style.display="none",this.raw.style.visibility="",s instanceof i.Stack?(()=>s.refreshEdgeChildRawMargin())():void 0))():(()=>(0,e.fail)())())())(),this})())(t)}getVisibility(){return(()=>{return(()=>this[et])()})()}close(){return(()=>{return(()=>this.getParent().closeModal())()})()}setAntiFractionOffset(){return(()=>{var t=arguments;return(()=>{var i,r,n,o,h,a;return i=2===t.length?(()=>new e.Point(t[0],t[1]))():(()=>t[0])(),this[E]=i,r=i.x+"px,"+i.y+"px",n=void 0===(a=this.raw.style.transform)||null===a?this.raw.style.webkitTransform:a,o=s.parseTransform(n),h=(()=>{try{return(()=>(o[0].value=r,s.stringifyTransform(o)))()}catch(t){return t,(()=>(n+" translate("+r+")").trim())()}})(),zt(this.raw.style.transform)?(()=>{this.raw.style.transform=h})():(()=>{this.raw.style.webkitTransform=h})(),this})()})()}getAntiFractionOffset(){return(()=>{return(()=>this[E])()})()}setAnchor(){return(()=>{var t=arguments;return(()=>{var i,r,n,o,h,a;return i=2===t.length?(()=>new e.Point(t[0],t[1]))():(()=>t[0])(),this[it]=i,r=100*-i.x+"%,"+100*-i.y+"%",n=void 0===(a=this.raw.style.transform)||null===a?this.raw.style.webkitTransform:a,o=s.parseTransform(n),h=(()=>{try{return(()=>(o[1].value=r,s.stringifyTransform(o)))()}catch(t){return t,(()=>(n+" translate("+r+")").trim())()}})(),zt(this.raw.style.transform)?(()=>{this.raw.style.transform=h})():(()=>{this.raw.style.webkitTransform=h})(),this})()})()}getAnchor(){return(()=>{return(()=>this[it])()})()}setTranslate(...t){return((...t)=>(()=>{var r,n,o,h;return n="boolean"!=typeof(r=Yt(e.dotDot_573300145710716007,t,"last",[]))||(()=>r)(),o="boolean"==typeof r?(()=>Yt(e.dotDot_573300145710716007,t,"portion",[0,t.length-1]))():(()=>t)(),h=2===o.length?(()=>new i.LayoutXY(o[0],o[1]))():(()=>i.LayoutXY.from(o[0]))(),n&&(()=>{this[st]=h})(),s.setTransformItemValue(this.raw,"translate",h),this})())(...t)}getTranslate(){return(()=>{return(()=>this[st])()})()}computeTranslate(){return(()=>{return(()=>{var t,s,r,n,o;return t=getComputedStyle(this.raw),s=this.constructor[V](t.transform),[r,n]=6===s.length?(()=>[s[4],s[5]])():(()=>16===s.length&&Yt(e.dotDot_573300145710716007,s[2],"approxEquals",[0])&&Yt(e.dotDot_573300145710716007,s[3],"approxEquals",[0])&&Yt(e.dotDot_573300145710716007,s[6],"approxEquals",[0])&&Yt(e.dotDot_573300145710716007,s[7],"approxEquals",[0])&&Yt(e.dotDot_573300145710716007,s[14],"approxEquals",[0])&&Yt(e.dotDot_573300145710716007,s[15],"approxEquals",[1])?(()=>[s[12],s[13]])():(()=>(0,e.fail)())())(),o=new e.Point(r,n).add(new e.Point(this.getAnchor().x*parseFloat(t.width),this.getAnchor().y*parseFloat(t.height))).subtract(this.getAntiFractionOffset()).divide(i.getRemInPixels()),new i.LayoutXY(o.x+"rem",o.y+"rem")})()})()}computeTranslateFraction(){return(()=>{return(()=>{var t,i,s;return t=getComputedStyle(this.raw),6===(i=this.constructor[V](t.transform)).length?(()=>(s=new e.Point(i[4],i[5]).subtract(this.getAntiFractionOffset()),new e.Point(s.x-Math.floor(s.x),s.y-Math.floor(s.y))))():null})()})()}setScale(...t){return((...t)=>(()=>{var i,r,n,o;return r="boolean"!=typeof(i=Yt(e.dotDot_573300145710716007,t,"last",[]))||(()=>i)(),n="boolean"==typeof i?(()=>Yt(e.dotDot_573300145710716007,t,"portion",[0,t.length-1]))():(()=>t)(),o=2===n.length?(()=>new e.Point(n[0],n[1]))():(()=>this.constructor[q](n[0]))(),r&&(()=>{this[rt]=o})(),s.setTransformItemValue(this.raw,"scale",o),this})())(...t)}getScale(){return(()=>{return(()=>this[rt])()})()}setRotate(t,e){return((t,e)=>(void 0===e&&(e=!0),(()=>(t=this.constructor[z](t),e&&(()=>{this[nt]=t})(),s.setTransformItemValue(this.raw,"rotate",t),this))()))(t,e)}getRotate(){return(()=>{return(()=>this[nt])()})()}setRotate3d(...t){return((...t)=>(()=>{var r,n,o,h;return n="boolean"!=typeof(r=Yt(e.dotDot_573300145710716007,t,"last",[]))||(()=>r)(),o="boolean"==typeof r?(()=>Yt(e.dotDot_573300145710716007,t,"portion",[0,t.length-1]))():(()=>t)(),h=this.constructor[Y](3===o.length?(()=>({perspective:o[0],axisAngle:o[1],angle:o[2]}))():(()=>o[0])()),n&&(()=>{this[N]=h})(),zt(h)?(()=>(h.perspective instanceof i.RatioLength?(()=>this[Z]())():(()=>(this[j](),s.setTransformItemValue(this.raw,"perspective",h.perspective)))(),s.setTransformItemValue(this.raw,"rotate3d",{axisAngle:h.axisAngle,angle:h.angle})))():(()=>(this[j](),s.removePerspectiveTransform(this.raw)))(),this})())(...t)}getRotate3d(){return(()=>{return(()=>this[N])()})()}setBackFaceVisible(t){return(t=>(()=>(this[ot]=t,s.setStyle(this.raw,"backfaceVisibility",t?"visible":"hidden"),this))())(t)}getBackFaceVisible(){return(()=>{return(()=>this[ot])()})()}setPosition(){return(()=>{var t=arguments;return(()=>{var e;return e=2===t.length?(()=>new i.LayoutXY(t[0],t[1]))():(()=>t[0])(),this[ht]=e,this.raw.style.left=e.x.toString(),this.raw.style.top=e.y.toString(),this})()})()}getPosition(){return(()=>{return(()=>this[ht])()})()}computePosition(){return(()=>{return(()=>{var t,s,r;return(0,e.assert)(zt(this.getParent())),t=this.raw.getBoundingClientRect(),s=i.getRemInPixels(),r=this.getParent().raw.getBoundingClientRect(),{x1:(t.left-r.left)/s,y1:(t.top-r.top)/s,x2:(t.right-r.left)/s,y2:(t.bottom-r.top)/s}})()})()}setX(t){return(t=>(()=>this.setPosition(new i.LayoutXY(t,this.getY())))())(t)}getX(){return(()=>{return(()=>this.getPosition().x)()})()}setY(t){return(t=>(()=>this.setPosition(new i.LayoutXY(this.getX(),t)))())(t)}getY(){return(()=>{return(()=>this.getPosition().y)()})()}setScrollX(t){return(t=>(()=>(this.raw.scrollLeft=t*i.getRemInPixels(),this))())(t)}computeScrollX(){return(()=>{return(()=>this.raw.scrollLeft/i.getRemInPixels())()})()}setScrollY(t){return(t=>(()=>(this.raw.scrollTop=t*i.getRemInPixels(),this))())(t)}computeScrollY(){return(()=>{return(()=>this.raw.scrollTop/i.getRemInPixels())()})()}getScrollVelocityX(){return(()=>{return(()=>this[f])()})()}getScrollVelocityY(){return(()=>{return(()=>this[P])()})()}setZIndex(t,e){return((t,e)=>(void 0===e&&(e=!0),(()=>(e&&(()=>{this[at]=t})(),this.raw.style.zIndex=t,this))()))(t,e)}getZIndex(){return(()=>{return(()=>this[at])()})()}setBorder(){return(()=>{var t=arguments;return(()=>{var e;return e=1!==t.length||t[0]instanceof i.Border?(()=>2===t.length?(()=>new i.Border(t[0],t[1]))():(()=>4===t.length?(()=>new i.Border(t[0],t[1],t[2],t[3]))():(()=>t[0])())())():(()=>new i.Border(t[0]))(),this[lt]=e,this.raw.style.borderLeft=e.x1.width+" "+e.x1.style+" "+e.x1.paint,this.raw.style.borderTop=e.y1.width+" "+e.y1.style+" "+e.y1.paint,this.raw.style.borderRight=e.x2.width+" "+e.x2.style+" "+e.x2.paint,this.raw.style.borderBottom=e.y2.width+" "+e.y2.style+" "+e.y2.paint,this})()})()}getBorder(){return(()=>{return(()=>this[lt])()})()}setBorderRadius(){return(()=>{var t=arguments;return(()=>{var e;return e=1!==t.length||t[0]instanceof i.RoundedCorners?(()=>2===t.length?(()=>new i.RoundedCorners(t[0],t[1]))():(()=>4===t.length?(()=>new i.RoundedCorners(t[0],t[1],t[2],t[3]))():(()=>t[0])())())():(()=>new i.RoundedCorners(t[0]))(),this[ut]=e,this.raw.style.borderTopLeftRadius=e.topLeft.x+" "+e.topLeft.y,this.raw.style.borderTopRightRadius=e.topRight.x+" "+e.topRight.y,this.raw.style.borderBottomRightRadius=e.bottomRight.x+" "+e.bottomRight.y,this.raw.style.borderBottomLeftRadius=e.bottomLeft.x+" "+e.bottomLeft.y,this})()})()}getBorderRadius(){return(()=>{return(()=>this[ut])()})()}setOpacity(t,e){return((t,e)=>(void 0===e&&(e=!0),(()=>(e&&(()=>{this[dt]=t})(),this.raw.style.opacity=t,this))()))(t,e)}getOpacity(){return(()=>{return(()=>this[dt])()})()}refreshRawMargin(){return(()=>{return(()=>(this[g]||(()=>(this[g]=!0,(0,e.setImmediate)(()=>{return(()=>{var t,e,s,r,n,o,h;return this[g]=!1,(t=this.getParent())instanceof i.Stack?(()=>(e=this.getSize(),s=t.getNonCollapsedChildren(),r=s.indexOf(this),n="calc("+t.getChildSpacing().toString()+" / 2)",o=0===r?"0":(()=>n)(),h=r===s.length-1?"0":(()=>n)(),t.getHorizontal()?(()=>("stretch"!==t.getChildAlignment()||e.y instanceof i.AutoLength&&!(e.y instanceof i.AutoLength&&zt(this.getAspectRatio()))?(()=>{this.raw.style.marginTop=this.raw.style.marginBottom=""})():(()=>{this.raw.style.marginTop=this.raw.style.marginBottom="auto"})(),t.getReverse()?(()=>{this.raw.style.marginLeft=h,this.raw.style.marginRight=o})():(()=>{this.raw.style.marginLeft=o,this.raw.style.marginRight=h})()))():(()=>("stretch"!==t.getChildAlignment()||e.x instanceof i.AutoLength&&!(e.x instanceof i.AutoLength&&zt(this.getAspectRatio()))?(()=>{this.raw.style.marginLeft=this.raw.style.marginRight=""})():(()=>{this.raw.style.marginLeft=this.raw.style.marginRight="auto"})(),t.getReverse()?(()=>{this.raw.style.marginTop=h,this.raw.style.marginBottom=o})():(()=>{this.raw.style.marginTop=o,this.raw.style.marginBottom=h})()))()))():(()=>{this.raw.style.marginLeft=this.raw.style.marginRight="",this.raw.style.marginTop=this.raw.style.marginBottom=""})()})()})))(),this))()})()}setSize(){return(()=>{var t=arguments;return(()=>{var e;return e=2===t.length?(()=>new i.LayoutXY(t[0],t[1]))():(()=>t[0])(),this[W]=e,e.x instanceof i.AutoLength&&zt(this[H])||(()=>{this.raw.style.width=e.x.toString()})(),e.y instanceof i.AutoLength&&zt(this[H])||(()=>{this.raw.style.height=e.y.toString()})(),this.refreshRawMargin()})()})()}getSize(){return(()=>{return(()=>this[W])()})()}computeSize(){return(()=>{return(()=>{var t,s,r,n;return t=getComputedStyle(this.raw),s=i.getRemInPixels(),r=t.width,n=t.height,r=r.endsWith("px")?(()=>parseFloat(r))():0,n=n.endsWith("px")?(()=>parseFloat(n))():0,new e.Point(r/s,n/s)})()})()}setWidth(t){return(t=>(()=>this.setSize(new i.LayoutXY(t,this.getHeight())))())(t)}getWidth(){return(()=>{return(()=>this.getSize().x)()})()}computeWidth(){return(()=>{return(()=>{var t;return(t=(t=getComputedStyle(this.raw).width).endsWith("px")?(()=>parseFloat(t))():0)/i.getRemInPixels()})()})()}setHeight(t){return(t=>(()=>this.setSize(new i.LayoutXY(this.getWidth(),t)))())(t)}getHeight(){return(()=>{return(()=>this.getSize().y)()})()}computeHeight(){return(()=>{return(()=>{var t;return(t=(t=getComputedStyle(this.raw).height).endsWith("px")?(()=>parseFloat(t))():0)/i.getRemInPixels()})()})()}setWidthInRem(t){return(t=>(()=>this.setWidth(new i.RemLength(t)))())(t)}setWidthInEm(t){return(t=>(()=>this.setWidth(new i.EmLength(t)))())(t)}setWidthInRatio(t){return(t=>(()=>this.setWidth(new i.RatioLength(t)))())(t)}setHeightInRem(t){return(t=>(()=>this.setHeight(new i.RemLength(t)))())(t)}setHeightInEm(t){return(t=>(()=>this.setHeight(new i.EmLength(t)))())(t)}setHeightInRatio(t){return(t=>(()=>this.setHeight(new i.RatioLength(t)))())(t)}setMinSize(){return(()=>{var t=arguments;return(()=>{var e;return e=2===t.length?(()=>new i.LayoutXY(t[0],t[1]))():(()=>t[0])(),this[ct]=e,this.raw.style.minWidth=e.x.toString(),this.raw.style.minHeight=e.y.toString(),this.refreshRawMargin()})()})()}getMinSize(){return(()=>{return(()=>this[ct])()})()}setMinWidth(t){return(t=>(()=>this.setMinSize(new i.LayoutXY(t,this.getMinHeight())))())(t)}getMinWidth(){return(()=>{return(()=>this.getMinSize().x)()})()}setMinHeight(t){return(t=>(()=>this.setMinSize(new i.LayoutXY(this.getMinWidth(),t)))())(t)}getMinHeight(){return(()=>{return(()=>this.getMinSize().y)()})()}setMinWidthInRem(t){return(t=>(()=>this.setMinWidth(new i.RemLength(t)))())(t)}setMinWidthInEm(t){return(t=>(()=>this.setMinWidth(new i.EmLength(t)))())(t)}setMinWidthInRatio(t){return(t=>(()=>this.setMinWidth(new i.RatioLength(t)))())(t)}setMinHeightInRem(t){return(t=>(()=>this.setMinHeight(new i.RemLength(t)))())(t)}setMinHeightInEm(t){return(t=>(()=>this.setMinHeight(new i.EmLength(t)))())(t)}setMinHeightInRatio(t){return(t=>(()=>this.setMinHeight(new i.RatioLength(t)))())(t)}setMaxSize(){return(()=>{var t=arguments;return(()=>{var e;return e=2===t.length?(()=>new i.LayoutXY(t[0],t[1]))():(()=>t[0])(),this[pt]=e,this.raw.style.maxWidth=e.x.toString(),this.raw.style.maxHeight=e.y.toString(),this.refreshRawMargin()})()})()}getMaxSize(){return(()=>{return(()=>this[pt])()})()}setMaxWidth(t){return(t=>(()=>this.setMaxSize(new i.LayoutXY(t,this.getMaxHeight())))())(t)}getMaxWidth(){return(()=>{return(()=>this.getMaxSize().x)()})()}setMaxHeight(t){return(t=>(()=>this.setMaxSize(new i.LayoutXY(this.getMaxWidth(),t)))())(t)}getMaxHeight(){return(()=>{return(()=>this.getMaxSize().y)()})()}setMaxWidthInRem(t){return(t=>(()=>this.setMaxWidth(new i.RemLength(t)))())(t)}setMaxWidthInEm(t){return(t=>(()=>this.setMaxWidth(new i.EmLength(t)))())(t)}setMaxWidthInRatio(t){return(t=>(()=>this.setMaxWidth(new i.RatioLength(t)))())(t)}setMaxHeightInRem(t){return(t=>(()=>this.setMaxHeight(new i.RemLength(t)))())(t)}setMaxHeightInEm(t){return(t=>(()=>this.setMaxHeight(new i.EmLength(t)))())(t)}setMaxHeightInRatio(t){return(t=>(()=>this.setMaxHeight(new i.RatioLength(t)))())(t)}setGrow(t){return(t=>(()=>(this[gt]=t,this.raw.style.flexGrow=t,this))())(t)}getGrow(){return(()=>{return(()=>this[gt])()})()}setShrink(t){return(t=>(()=>(this[yt]=t,this.raw.style.flexShrink=t,this))())(t)}getShrink(){return(()=>{return(()=>this[yt])()})()}setFontFamily(t){return(t=>(()=>{var e;return this[mt]=t,this.raw.style.fontFamily=void 0===(e=t)||null===e?"":e,this})())(t)}getFontFamily(){return(()=>{return(()=>this[mt])()})()}setFontSize(t){return(t=>(()=>{var e;return e=zt(t)?(()=>i.Length.from(t,!0))():null,this[B]=e,zt(e)&&e instanceof i.RatioLength?(()=>this[Z]())():(()=>{this[j](),this.raw.style.fontSize=zt(e)?(()=>e.toString())():""})(),this})())(t)}getFontSize(){return(()=>{return(()=>this[B])()})()}computeFontSize(){return(()=>{return(()=>{var t;return(t=(t=getComputedStyle(this.raw).fontSize).endsWith("px")?(()=>parseFloat(t))():0)/i.getRemInPixels()})()})()}setFontWeight(t){return(t=>(()=>{var e;return this[vt]=t,this.raw.style.fontWeight=void 0===(e=t)||null===e?"":e,this})())(t)}getFontWeight(){return(()=>{return(()=>this[vt])()})()}setFontStyle(t){return(t=>(()=>{var e;return this[wt]=t,this.raw.style.fontStyle=void 0===(e=t)||null===e?"":e,this})())(t)}getFontStyle(){return(()=>{return(()=>this[wt])()})()}setLineHeight(t){return(t=>(()=>(this[Et]=t,this.raw.style.lineHeight=zt(t)?(()=>t.toString())():"",this))())(t)}getLineHeight(){return(()=>{return(()=>this[Et])()})()}setPaint(t,e){return((t,e)=>(void 0===e&&(e=!0),(()=>("string"==typeof t&&(t=h.default.fromString(t)),e&&(()=>{this[Tt]=t})(),this.raw.style.color=zt(t)?(()=>t.toString())():"",this.raw.style.fill=zt(t)?(()=>t.toString())():"",this))()))(t,e)}getPaint(){return(()=>{return(()=>this[Tt])()})()}computePaint(){return(()=>{return(()=>h.default.fromString(getComputedStyle(this.raw).color))()})()}setStrokePaint(t){return(t=>(()=>("string"==typeof t&&(t=h.default.fromString(t)),this[St]=t,this.raw.style.stroke=zt(t)?(()=>t.toString())():"",this))())(t)}getStrokePaint(){return(()=>{return(()=>this[St])()})()}setBackgroundPaint(t,e){return((t,e)=>(void 0===e&&(e=!0),(()=>("string"==typeof t&&(t=h.default.fromString(t)),e&&(()=>{this[Lt]=t})(),this.raw.style.backgroundColor=t.toString(),this))()))(t,e)}getBackgroundPaint(){return(()=>{return(()=>this[Lt])()})()}setOverflow(t){return(t=>(()=>(this[ft]=t,this.raw.style.overflow=t,this))())(t)}getOverflow(){return(()=>{return(()=>this[ft])()})()}setAspectRatio(t){return(t=>(()=>(this[H]=t,this.setSize(this[W]),zt(t)?(()=>this[K]())():(()=>this[G]())(),this))())(t)}getAspectRatio(){return(()=>{return(()=>this[H])()})()}setSelectable(t){return(t=>(()=>(this[Pt]=t,s.setStyle(this.raw,"userSelect",zt(t)?(()=>t?"text":"none")():""),this))())(t)}getSelectable(){return(()=>{return(()=>this[Pt])()})()}setPointer(t){return(t=>(()=>(this[At]=t,this.raw.style.cursor=zt(t)?(()=>"auto"===t?"auto":"normal"===t?"default":"link"===t?"pointer":"text"===t?"text":"crosshair"===t?"crosshair":(()=>(0,e.fail)())())():"",this))())(t)}getPointer(){return(()=>{return(()=>this[At])()})()}setPointerArea(t){return(t=>(()=>(this[Rt]=t,this.raw.style.pointerEvents=zt(t)?(()=>"auto"===t?"auto":"none"===t?"none":(()=>(0,e.fail)())())():"",this))())(t)}getPointerArea(){return(()=>{return(()=>this[Rt])()})()}refreshPointerArea(t){return(t=>(()=>{var e,s;return e=this.getPointerArea(),["auto","none"].indexOf(e)>=0&&(()=>(s=(t=>(()=>zt(t.getChildren)&&null===t.getPointerArea()?(()=>t.getChildren().forEach(t=>(()=>s(t))()))():(()=>t instanceof i.Svg?(()=>"auto"===e?(()=>(t.raw.classList.remove("svg-pe-inherited-none-705357537593286848"),t.raw.classList.add("svg-pe-inherited-auto-705357537593286848")))():(()=>(t.raw.classList.remove("svg-pe-inherited-auto-705357537593286848"),t.raw.classList.add("svg-pe-inherited-none-705357537593286848")))())():void 0)())()))(t))(),this})())(t)}setPadding(){return(()=>{var t=arguments;return(()=>{var e;return e=1!==t.length||t[0]instanceof i.Padding?(()=>2===t.length?(()=>new i.Padding(t[0],t[1]))():(()=>4===t.length?(()=>new i.Padding(t[0],t[1],t[2],t[3]))():(()=>t[0])())())():(()=>new i.Padding(t[0]))(),this[_t]=e,this.raw.style.paddingLeft=e.x1.toString(),this.raw.style.paddingTop=e.y1.toString(),this.raw.style.paddingRight=e.x2.toString(),this.raw.style.paddingBottom=e.y2.toString(),this})()})()}getPadding(){return(()=>{return(()=>this[_t])()})()}setStrokeWidth(t){return(t=>(()=>{var e;return e=zt(t)?(()=>i.Length.from(t,!0))():null,this[Ft]=e,this.raw.style.strokeWidth=zt(e)?(()=>e.toString())():"",this})())(t)}getStrokeWidth(){return(()=>{return(()=>this[Ft])()})()}setWrapping(t){return(t=>(()=>(this[Dt]=t,this.raw.style.whiteSpace=zt(t)?(()=>"none"===t?"pre":"wrap"===t?"pre-wrap":(()=>(0,e.fail)())())():"",this))())(t)}getWrapping(){return(()=>{return(()=>this[Dt])()})()}setTextAlignment(t){return(t=>(()=>(this[It]=t,this.raw.style.textAlign=zt(t)?(()=>"left"===t?"left":"right"===t?"right":"center"===t?"center":"justify"===t?"justify":(()=>(0,e.fail)())())():"",this))())(t)}getTextAlignment(){return(()=>{return(()=>this[It])()})()}setTextOverflow(t){return(t=>(()=>(this[bt]=t,this.raw.style.textOverflow=t,this))())(t)}getTextOverflow(){return(()=>{return(()=>this[bt])()})()}setOverflowWrapping(t){return(t=>(()=>(this[xt]=t,this.raw.style.wordWrap=zt(t)?(()=>t)():"",this))())(t)}getOverflowWrapping(){return(()=>{return(()=>this[xt])()})()}setWordBreak(t){return(t=>(()=>(this[Mt]=t,this.raw.style.wordBreak=zt(t)?(()=>t)():"",this))())(t)}getWordBreak(){return(()=>{return(()=>this[Mt])()})()}setWheelTarget(t){return(t=>(void 0===t&&(t=this),(()=>{var e,s;return!0===t&&(()=>{t=this})(),this[Ot]=t,zt(t)?(()=>(e=!0,s=0,this[Ut]=(r=>(()=>e?(()=>(e=!1,window.requestAnimationFrame(()=>{return(()=>{var n=t.raw;n.scrollTop=n.scrollTop+(s+r.delta)*i.getRemInPixels(),e=!0,s=0})()})))():void(s+=r.delta))()),this.raw.addEventListener("wheel-705357537593286848",this[Ut])))():(()=>zt(this[Ut])?(()=>this.raw.removeEventListener("wheel-705357537593286848",this[Ut]))():void 0)(),this})()))(t)}getWheelTarget(){return(()=>{return(()=>this[Ot])()})()}setTransition(){return(()=>{var t=arguments;return(()=>{var i,s;return void 0===(s=i=1===t.length&&"number"!=typeof t[0]?(()=>Yt(e.dotDot_573300145710716007,Object,"clone",[t[0]]))():(()=>"number"==typeof t[0]?(()=>({duration:t[0],timingFunction:t[1],delay:t[2]}))():(()=>({styleNames:t[0],duration:t[1],timingFunction:t[2],delay:t[3]}))())()).styleNames&&(s.styleNames=null),void 0===(s=i).timingFunction&&(s.timingFunction="linear"),void 0===(s=i).delay&&(s.delay=0),zt(i.styleNames)&&(()=>(0,e.assert)(!Yt(e.dotDot_573300145710716007,i.styleNames,"isEmpty",[])))(),this[Wt]=i,this.raw.style.transitionProperty=zt(i.styleNames)?(()=>i.styleNames.map(t=>(()=>"transform"===t?"transform":"opacity"===t?"opacity":"paint"===t?"color,fill":"backgroundPaint"===t?"background-color":"zIndex"===t?"z-index":(()=>(0,e.fail)())())()).join(","))():"all",this.raw.style.transitionDuration=i.duration+"ms",this.raw.style.transitionTimingFunction=i.timingFunction,this.raw.style.transitionDelay=i.delay+"ms",this})()})()}getTransition(){return(()=>{return(()=>this[Wt])()})()}animate(t){return(t=>(()=>this[m]=new Promise((r,n)=>(()=>{var n,o,a,l,g,w,E,T,S,L,f,P,A,R,_,F,D,I,b,x,M,O,U,W,H,k,C,N,B,K,G;zt(this[y])&&(()=>this[y](!0))(),n=void 0===(H=t.keyframes)?{0:t.from,1:t.to}:H,o=void 0===(k=t.delay)?0:k,a=t.duration,l=void 0===(C=t.timingFunction)?"linear":C,g=void 0===(N=t.iterationCount)?1:N,w=void 0===(B=t.direction)?"normal":B,E=void 0===(K=t.fillMode)?"both":K,T=void 0===(G=t.running)||G,S=this.getTranslate(),L=this.getRotate(),f=this.getScale(),P=this.getRotate3d(),A=this.getOpacity(),R=this.getPaint(),_=this.getBackgroundPaint(),F=this.getZIndex(),this[v]=T,D=Yt(e.dotDot_573300145710716007,Object,"keyValues",[n]).filter(t=>(()=>zt(t[1]))()).map(t=>(()=>(()=>{var e=t[0];return"from"===e?(()=>["0",t[1]])():"to"===e?(()=>["1",t[1]])():(()=>t)()})())()),this[y]=(t=>(void 0===t&&(t=!1),(()=>{var s,r,n,o,a,l,u,p,T,b,x,O,U,W,H,k;this.raw.removeEventListener("animationend",I),["forwards","both"].indexOf(E)>=0&&(()=>(s=Number.isInteger(g)&&!t,r=(t=>(()=>{var s,r,n;return s="normal"===w||(()=>"reverse"!==w&&(()=>"alternate"===w?(()=>1===Vt(g,2))():(()=>"alternate-reverse"===w?(()=>0===Vt(g,2))():(()=>(0,e.fail)())())())())(),r=Yt(e.dotDot_573300145710716007,D,"firstOrVoid",[t=>(()=>Yt(e.dotDot_573300145710716007,Number,"parseFloat",[t[0]])===(s?1:0))()]),zt(r)&&void 0!==r[1][t]?(()=>(n=r[1][t],(()=>{var s=t;return"translate"===s?(()=>i.LayoutXY.from(n))():"rotate"===s?(()=>this.constructor[z](n))():"scale"===s?(()=>this.constructor[q](n))():"rotate3d"===s?(()=>this.constructor[Y](n))():"opacity"===s?(()=>n)():"paint"===s?(()=>h.default.from(n))():"backgroundPaint"===s?(()=>h.default.from(n))():"zIndex"===s?(()=>n)():(()=>(0,e.fail)())()})()))():(()=>(()=>{var i=t;return"translate"===i?(()=>S)():"rotate"===i?(()=>L)():"scale"===i?(()=>f)():"rotate3d"===i?(()=>P)():"opacity"===i?(()=>A)():"paint"===i?(()=>R)():"backgroundPaint"===i?(()=>_)():"zIndex"===i?(()=>F)():(()=>(0,e.fail)())()})())()})()),s?(()=>(n=r("translate"),o=r("rotate"),a=r("scale"),l=r("rotate3d"),u=r("opacity"),p=r("paint"),T=r("backgroundPaint"),b=r("zIndex"),this.getTranslate().equals(n)||(()=>this.setTranslate(n))(),this.getRotate()!==o&&(()=>this.setRotate(o))(),this.getScale().equals(a)||(()=>this.setScale(a))(),this.getRotate3d()===l||zt(this.getRotate3d())&&zt(l)&&this.constructor[X](this.getRotate3d(),l)||(()=>this.setRotate3d(l))(),this.getOpacity()!==u&&(()=>this.setOpacity(u))(),this.getPaint()===p||zt(this.getPaint())&&zt(p)&&this.getPaint().equals(p)||(()=>this.setPaint(p))(),this.getBackgroundPaint().equals(T)||(()=>this.setBackgroundPaint(T))(),this.getZIndex()!==b?(()=>this.setZIndex(b))():void 0))():(()=>(x=getComputedStyle(this.raw),6===(O=this.constructor[V](x.transform)).length?(()=>(D.some(t=>(()=>void 0!==t[1].translate||void 0!==t[1].rotate||void 0!==t[1].scale||void 0!==t[1].rotate3d)())&&(()=>(U=this.computeTranslate(),W=Math.atan2(O[1],O[0]),H=O[0]*O[3]-O[1]*O[2],k=new e.Point(Math.sqrt(O[0]*O[0]+O[1]*O[1])*(H<0&&O[0]<O[2]?-1:1),Math.sqrt(O[2]*O[2]+O[3]*O[3])*(H<0&&O[0]>=O[2]?-1:1)),D.some(t=>(()=>void 0!==t[1].translate)())&&(()=>this.setTranslate(U))(),D.some(t=>(()=>void 0!==t[1].rotate)())&&(()=>this.setRotate(W))(),D.some(t=>(()=>void 0!==t[1].scale)())&&(()=>this.setScale(k))(),D.some(t=>(()=>void 0!==t[1].rotate3d)())?(()=>this.setRotate3d(null))():void 0))(),D.some(t=>(()=>void 0!==t[1].opacity)())&&(()=>this.setOpacity(parseFloat(x.opacity)))(),D.some(t=>(()=>void 0!==t[1].paint)())&&(()=>this.setPaint(x.color))(),D.some(t=>(()=>void 0!==t[1].backgroundPaint)())&&(()=>this.setBackgroundPaint(x.backgroundColor))(),D.some(t=>(()=>void 0!==t[1].zIndex)())?(()=>this.setZIndex(parseInt(x.zIndex)))():void 0))():(()=>this.setTranslate(S).setRotate(L).setScale(f).setRotate3d(P).setOpacity(A).setPaint(R).setBackgroundPaint(_).setZIndex(F))()))()))(),this.raw.style.animationName="",this.raw.style.animationDuration="",this.raw.style.animationTimingFunction="",this.raw.style.animationDelay="",this.raw.style.animationIterationCount="",this.raw.style.animationDirection="",this.raw.style.animationFillMode="",this.raw.style.animationPlayState="",d[M]=!0,c+=1,this[m]=null,this[v]=null,this[y]=null})())),I=(t=>(()=>t.target===this.raw?(()=>(this[y](),r(t)))():void 0)()),this.raw.addEventListener("animationend",I),b=!1,x=D.map(([t,r])=>(()=>{var n,o;return n=[],o=this.raw.style.transform,Yt(e.dotDot_573300145710716007,Object,"keyValues",[r]).filter(t=>(()=>void 0!==t[1])()).forEach(([t,r])=>(()=>{var h,a,l,u;return"translate"===t?void(o=s.updateTransformItemValue(o,t,i.LayoutXY.from(r))):(()=>"rotate"===t?(()=>{o=s.updateTransformItemValue(o,t,this.constructor[z](r))})():(()=>"scale"===t?(()=>{o=s.updateTransformItemValue(o,t,this.constructor[q](r))})():(()=>"rotate3d"===t?(()=>zt(r)?(()=>{(h=this.constructor[Y](r)).perspective instanceof i.RatioLength?(()=>(zt(this.getRotate3d())&&this.getRotate3d().perspective.equals(h.perspective)||(b=!0),b?(()=>{a=getComputedStyle(this.raw),l=a.width,u=a.height,l=l.endsWith("px")?(()=>parseFloat(l))():0,u=u.endsWith("px")?(()=>parseFloat(u))():0,o=s.updateTransformItemValue(o,"perspective",Math.sqrt(l*u)*h.perspective.value+"px")})():void 0))():(b=!0,o=s.updateTransformItemValue(o,"perspective",h.perspective)),o=s.updateTransformItemValue(o,t,h)})():void(o=s.transformStringWithoutPerspective(o)))():(()=>"opacity"===t?(()=>n.push("opacity:"+r+";"))():(()=>"paint"===t?(()=>(n.push("color:"+r.toString()+";"),n.push("fill:"+r.toString()+";")))():(()=>"backgroundPaint"===t?(()=>n.push("background-color:"+r.toString()+";"))():(()=>"zIndex"===t?(()=>n.push("z-index:"+r+";"))():(()=>"timingFunction"===t?(()=>n.push("animation-timing-function:"+r+";"))():(()=>(0,e.fail)())())())())())())())())())()})()),""!==o&&(()=>n.push("transform:"+o+";"))(),(100*Yt(e.dotDot_573300145710716007,Number,"parseFloat",[t])).toString()+"% {"+n.join("")+"}"})()).join(" "),O="@keyframes "+(M="animation-"+u+"-705357537593286848")+" {\n "+x+"\n}",U=g===1/0?"infinite":(()=>g.toString())(),W=T?"running":"paused",p.insertRule(O,p.cssRules.length),this.raw.style.animationName=M,this.raw.style.animationDuration=a+"ms",this.raw.style.animationTimingFunction=l,this.raw.style.animationDelay=o+"ms",this.raw.style.animationIterationCount=U,this.raw.style.animationDirection=w,this.raw.style.animationFillMode=E,this.raw.style.animationPlayState=W,u+=1})()))())(t)}getAnimation(){return(()=>{return(()=>this[m])()})()}hasAnimation(){return(()=>{return(()=>zt(this[m]))()})()}animationRunning(){return(()=>{return(()=>this[v])()})()}pauseAnimation(){return(()=>{return(()=>((0,e.assert)(zt(this[m])),this[v]=!1,this.raw.style.animationPlayState="paused",this))()})()}resumeAnimation(){return(()=>{return(()=>((0,e.assert)(zt(this[m])),this[v]=!0,this.raw.style.animationPlayState="running",this))()})()}stopAnimation(){return(()=>{return(()=>(zt(this[m])&&(()=>this[y](!0))(),this))()})()}customAnimate(t){return(t=>(()=>{var i,s,r,n,o,h,l,u,d;return i=t.type,s=t.startValue,r=t.endValue,n=t.startTime,o=t.duration,h=t.syncTime,l=t.timingFunction,u=t.endCallback,d=void 0,a.timespanAnimate(n,o,h,t=>(()=>(void 0===d&&(()=>{d={},this[w][i]=d,null==s&&(s=(()=>{var t=i;return"translate"===t?(()=>this.getTranslate())():"scale"===t?(()=>this.getScale())():"rotate"===t?(()=>this.getRotate())():"rotatePerspective"===t?(()=>this.getRotatePerspective())():"opacity"===t?(()=>this.getOpacity())():"paint"===t?(()=>this.getPaint())():"backgroundPaint"===t?(()=>this.getBackgroundPaint())():(()=>(0,e.fail)())()})())})(),this[w][i]===d&&(()=>(()=>{var n=i;return"translate"===n?(()=>this.setTranslate(a.animatedPoint(s,r,o,t,l)))():"scale"===n?(()=>this.setScale(a.animatedValue(s,r,o,t,l)))():"rotate"===n?(()=>this.setRotate(a.animatedValue(s,r,o,t,l)))():"rotatePerspective"===n?(()=>this.setRotatePerspective(a.animatedValue(s,r,o,t,l)))():"opacity"===n?(()=>this.setOpacity(a.animatedValue(s,r,o,t,l)))():"paint"===n?(()=>this.setPaint(a.animatedColor(s,r,o,t,l)))():"backgroundPaint"===n?(()=>this.setBackgroundPaint(a.animatedColor(s,r,o,t,l)))():(()=>(0,e.fail)())()})())()))(),u),this})())(t)}setHoverStyles(t){return(t=>(()=>{var e,i;return this[Q]=t,e=(()=>{return(()=>(this[S]=!0,zt(t)?(()=>this[$](t))():void 0))()}),i=(()=>{return(()=>this[S]?(()=>(this[S]=!1,zt(t)?(()=>this[O]())():void 0))():void 0)()}),zt(this[Ht])&&(()=>this.onMouseEnter.unbind(this[Ht]))(),this.onMouseEnter(e),zt(this[kt])&&(()=>this.onMouseLeave.unbind(this[kt]))(),this.onMouseLeave(i),this[Ht]=e,this[kt]=i,zt(t)||(()=>this[O]())(),this})())(t)}getHoverStyles(){return(()=>{return(()=>this[Q])()})()}setActiveStyles(t){return(t=>(()=>{var e,i;return this[J]=t,e=(()=>{return(()=>(this[L]=!0,zt(t)?(()=>this[$](t))():void 0))()}),i=(()=>{return(()=>this[L]?(()=>(this[L]=!1,zt(t)?(()=>this[O]())():void 0))():void 0)()}),zt(this[Ct])&&(()=>this.onPointerDown.unbind(this[Ct]))(),this.