@a2simcode/dui 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components-dui/formDesign/src/formDesignItem.vue.d.ts +1 -7
- package/dist/dui.es.js +154 -140
- package/dist/dui.umd.js +5 -5
- package/package.json +12 -12
- package/LICENSE +0 -53
package/dist/dui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(te,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],r):(te=typeof globalThis<"u"?globalThis:te||self,r(te.DuiUI={},te.Vue,te.SimCodeUI))})(this,function(te,r,me){Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Cu=Object.create,nr=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,vu=Object.getOwnPropertyNames,Qu=Object.getPrototypeOf,Eu=Object.prototype.hasOwnProperty,Fu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Uu=(e,A)=>{let t={};for(var n in e)nr(t,n,{get:e[n],enumerable:!0});return A||nr(t,Symbol.toStringTag,{value:"Module"}),t},Io=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var o=vu(A),a=0,u=o.length,d;a<u;a++)d=o[a],!Eu.call(e,d)&&d!==t&&nr(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=yu(A,d))||n.enumerable});return e},bu=(e,A,t)=>(Io(e,A,"default"),t&&Io(t,A,"default")),is=(e,A,t)=>(t=e!=null?Cu(Qu(e)):{},Io(A||!e||!e.__esModule?nr(t,"default",{value:e,enumerable:!0}):t,e));r=is(r,1);var dt=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),ft=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},mn=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(mn);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=mn(e[t]));return A},Hu=e=>{if(Array.isArray(e))e.length=0;else if(e&&typeof e=="object")for(const A in e)Object.prototype.hasOwnProperty.call(e,A)&&delete e[A]},_o={},Iu=(e,A,t)=>{t[e]=t[e]||{};const n=ft();return t[e][n]=A,n},_u=(e,A,t)=>{const n=[],o=t[e]||{};return Object.keys(o).forEach(a=>{const u=o[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},Su=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ss=(e,A)=>Iu(e,A,_o),ne=(e,A)=>_u(e,A,_o),xu=(e,A)=>{Su(e,A,_o)},as=(e,A,t,n,o,a)=>{const u=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:y,getParentComponents:Q,removeComponentFromContainer:U,addComponentToContainer:T,copyComponent:M,activedComponent:R,top:H}=(0,r.inject)("d-drag-design-provide",{}),P=[],iA=(0,r.ref)(!1),Z=(0,r.ref)(!1),aA=(0,r.ref)(!1),lA=(0,r.ref)(!1),rA=(0,r.ref)(!1),nA={id:"",type:""},j=(0,r.ref)(!1),S=(0,r.ref)(!1);let eA="",I=null;const X=$=>{if(eA===$)return I;eA=$;const{top:oA,left:BA,width:wA,height:bA}=e.value.getBoundingClientRect();return I=[{x:BA,y:oA},{x:BA+wA,y:oA},{x:BA+wA,y:oA+bA},{x:BA,y:oA+bA}],I},F=($,oA,BA)=>{let wA=oA-BA[0].y;wA<0&&(wA=-wA);let bA=oA-BA[3].y;bA<0&&(bA=-bA);let uA=$-BA[0].x;uA<0&&(uA=-uA);let hA=$-BA[1].x;return hA<0&&(hA=-hA),{ly:wA>bA?bA:wA,typey:wA>bA?"bottom":"top",lx:uA>hA?hA:uA,lallx:uA+hA}},x=($,oA,BA)=>$>=BA[0].x&&$<=BA[1].x&&oA>=BA[0].y&&oA<=BA[3].y,N=()=>{if(o){ne("dragClick",{id:u});return}if(!Z.value){if(g(u),d!==0){const $=e.value.getBoundingClientRect(),oA=h();$.top-oA.top<22?lA.value=!0:lA.value=!1}Z.value=!0,ne("dragClick",{id:u})}},L=$=>{const oA=y($);oA&&(0,r.nextTick)(()=>{ne("dragClick",{id:oA})})},O=()=>{nA.id="",nA.type="",d===0&&(rA.value=!1)},J=()=>{ne("mouseEnterOrLeave",{id:u,type:"enter"})},tA=()=>{ne("mouseEnterOrLeave",{id:u,type:"leave"})},dA=$=>{ne("dragClick",{id:$})},UA={mouseEnterOrLeave:({id:$,type:oA})=>{oA==="enter"?P.push($):P.length>0&&P.splice(P.length-1,1);const BA=P.length;BA>0&&u===P[BA-1]?iA.value=!0:iA.value=!1},dragAciveChild:({type:$,id:oA})=>{oA===u?$==="top"?(j.value=!0,S.value=!1):(S.value=!0,j.value=!1):(S.value=!1,j.value=!1)},dragClick({id:$,isAgain:oA}){console.log("dragClick",$,u),$!==u?Z.value=!1:(oA&&(Z.value=!1),N())}};UA[`dragGetChildDistance_${u}`]=({dragX:$,dragY:oA,moveId:BA})=>F($,oA,X(BA));const G={isInContainer({x:$,y:oA,id:BA,moveId:wA}){if(u===BA||w(BA,u))return aA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const bA=X(wA);if(x($,oA,bA))return d===0&&(rA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:uA,lx:hA}=F($,oA,bA);if(uA<20&&hA<20)return rA.value=!0,{isIn:!0,level:d,id:u,groupId:a};rA.value=!1}return aA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:$,containerGroupId:oA,dragX:BA,dragY:wA,moveId:bA})=>{if($===u&&oA===a)if(aA.value=!0,n&&n.value.length>0){let uA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(hA=>{if(a&&hA.groupId!==a)return;const _=ne(`dragGetChildDistance_${hA.id}`,{dragX:BA,dragY:wA,moveId:bA})[0];_&&(uA.ly>_.ly||uA.ly===_.ly&&(uA.lx>_.lx||uA.lx===_.lx&&uA.lallx>_.lallx))&&(uA=_,uA.id=hA.id)}),nA.id=uA.id,nA.type=uA.typey,ne("dragAciveChild",{id:uA.id,type:uA.typey})}else ne("dragAciveChild",{id:""});else aA.value=!1},dragAdd:$=>{if(aA.value){let oA=n?.value.length||0;nA.id!==""&&nA.id!==void 0&&(oA=n?.value.findIndex(BA=>BA.id===nA.id)||0,nA.type==="bottom"&&(oA+=1)),m($,u,oA,a),aA.value=!1}O()},dragAddByClick:$=>{if(!R.value&&u===H.id||R.value?.id===u||R.value?.containerId===u&&R.value?.dragType!=="container"){const oA=m($,u,n?.value.length||0,a,!0);oA&&$.config&&Object.keys($.config).forEach(BA=>{oA.config[BA]=$.config[BA]})}},dragUpdate($){if(aA.value){const oA=B($);if(oA.level=d+1,nA.id!==oA.id){U(oA.containerId,$);let BA=n?.value.findIndex(wA=>wA.id===nA.id)||0;nA.type==="bottom"&&(BA+=1),T(oA,u,BA,a)}aA.value=!1,(0,r.nextTick)(()=>{ne("dragClick",{id:oA.id,isAgain:!0})})}O()}},Y={};return(0,r.onMounted)(()=>{(!o||t!=="container")&&Object.keys(UA).forEach($=>{Y[$]=ss($,UA[$])}),t==="container"&&Object.keys(G).forEach($=>{Y[$]=ss($,G[$])}),A.isNewAdd&&(0,r.nextTick)(()=>{N(),delete A.isNewAdd})}),(0,r.onUnmounted)(()=>{Object.keys(Y).forEach($=>{xu($,Y[$])})}),{onMouseenter:J,onMouseleave:tA,activeComponent:N,handleComponentClick:dA,deleteComponentByClick:L,copyComponent:M,getParentComponents:Q,isBottomToolBar:lA,isHover:iA,isSelect:Z,isToContainer:aA,isMoveingInTopLevel:rA,isTopActive:j,isBottomActive:S}},ls=(e,A)=>{const t={x:0,y:0,clientX:0,clientY:0,dragElement:null,dragElementId:"jcode-darg-move-id",toContainerLevel:-1,toContainerId:"",groupId:"",id:""};let n=!1;const o=(y,Q)=>{n!==!0&&(n=!0,setTimeout(()=>{y(),n=!1},Q))},a=(0,r.ref)(!1),u=(y,Q,U)=>{const T=document.createElement("div");return T.id=t.dragElementId,T.innerText=y,T.className="d-drag-move",T.style.top=`${Q}px`,T.style.left=`${U}px`,document.body.appendChild(T),T},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,ne("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?ne("dragAdd",e):ne("dragUpdate",e.id))},g=y=>{const{clientY:Q,clientX:U}=y;if(!t.dragElement){const T=Math.abs(t.x-U),M=Math.abs(t.y-Q);if(T<=1&&M<=1)return;a.value=!0,t.dragElement=u(e.name,Q-11,U-32)}t.dragElement.style.top=`${Q-11}px`,t.dragElement.style.left=`${U-32}px`,t.clientX=U,t.clientY=Q,o(()=>{if(!a.value)return;const T=ne("isInContainer",{x:U,y:Q,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",T.forEach(({level:M,id:R,isIn:H,groupId:P})=>{H&&t.toContainerLevel<M&&(t.toContainerLevel=M,t.toContainerId=R,t.groupId=P)}),t.toContainerId!==""?ne("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:U,dragY:Q,moveId:t.id}):ne("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:y=>{t.x=y.clientX,t.y=y.clientY,t.id=ft(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{ne("dragAddByClick",e)},moveActive:a}},Du={class:"d-drag-btns-pname"},Nu={key:0,class:"d-drag-mask"},Lu=(0,r.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,r.ref)(),{onMouseenter:n,onMouseleave:o,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:h,getParentComponents:g,isHover:B,isSelect:w,isTopActive:m,isBottomActive:y,isBottomToolBar:Q}=as(t,A.componentData,"component"),{onContextmenu:U,onMousedown:T,moveActive:M}=ls(A.componentData,!1);return(R,H)=>{const P=(0,r.resolveComponent)("j-button"),iA=(0,r.resolveComponent)("el-space");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-drag-component",{selected:(0,r.unref)(w),hovered:(0,r.unref)(B),isBottomToolBar:(0,r.unref)(Q),active:(0,r.unref)(M),isTopActive:(0,r.unref)(m),isBottomActive:(0,r.unref)(y)}])},[H[11]||(H[11]=(0,r.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,r.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:H[4]||(H[4]=(...Z)=>(0,r.unref)(n)&&(0,r.unref)(n)(...Z)),onMouseleave:H[5]||(H[5]=(...Z)=>(0,r.unref)(o)&&(0,r.unref)(o)(...Z))},[(0,r.createVNode)(iA,{size:4},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,r.createElementVNode)("div",Du,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(g)(e.componentData.containerId),Z=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Z.id},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",label:Z.name,onClick:aA=>(0,r.unref)(u)(Z.id)},null,8,["label","onClick"])]))),128))])]),(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:H[0]||(H[0]=(0,r.withModifiers)(Z=>(0,r.unref)(h)(e.componentData.id),["stop"]))}),(0,r.createElementVNode)("div",{onContextmenu:H[1]||(H[1]=(0,r.withModifiers)((...Z)=>(0,r.unref)(U)&&(0,r.unref)(U)(...Z),["stop"])),onMousedown:H[2]||(H[2]=(0,r.withModifiers)((...Z)=>(0,r.unref)(T)&&(0,r.unref)(T)(...Z),["stop"])),style:{display:"flex"}},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,r.createVNode)(P,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:H[3]||(H[3]=(0,r.withModifiers)(Z=>(0,r.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,r.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:H[6]||(H[6]=(0,r.withModifiers)((...Z)=>(0,r.unref)(a)&&(0,r.unref)(a)(...Z),["stop"])),onContextmenu:H[7]||(H[7]=(0,r.withModifiers)((...Z)=>(0,r.unref)(U)&&(0,r.unref)(U)(...Z),["stop"])),onMousedown:H[8]||(H[8]=(0,r.withModifiers)((...Z)=>(0,r.unref)(T)&&(0,r.unref)(T)(...Z),["stop"])),onMouseenter:H[9]||(H[9]=(...Z)=>(0,r.unref)(n)&&(0,r.unref)(n)(...Z)),onMouseleave:H[10]||(H[10]=(...Z)=>(0,r.unref)(o)&&(0,r.unref)(o)(...Z))},[(0,r.renderSlot)(R.$slots,"default"),e.isContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Nu))],544)],2)}}}),So=Lu,ku=(0,r.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ls(e.config??{name:"",id:""},!0);return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,r.withModifiers)((...u)=>(0,r.unref)(n)&&(0,r.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,r.withModifiers)((...u)=>(0,r.unref)(A)&&(0,r.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,r.withModifiers)((...u)=>(0,r.unref)(t)&&(0,r.unref)(t)(...u),["stop"]))},[(0,r.renderSlot)(o.$slots,"default")],32))}}),xo=ku,Tu={key:0,class:"d-drag-line"},Mu={key:1,class:"d-drag-btns"},Ou=(0,r.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,r.ref)(),n=(0,r.computed)(()=>A.componentData?.children||[]),{onMouseenter:o,onMouseleave:a,activeComponent:u,isHover:d,isSelect:h,isToContainer:g,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=as(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),y=(0,r.computed)(()=>!!(n.value.findIndex(Q=>Q.groupId===A.groupId)===-1&&g.value));return(Q,U)=>{const T=(0,r.resolveComponent)("j-button");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,r.normalizeClass)(["d-drag-container",{selected:(0,r.unref)(h)&&!e.isComponentContainer,hovered:(0,r.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:y.value,isMoveingInTopLevel:(0,r.unref)(B),isTopActive:(0,r.unref)(w),isBottomActive:(0,r.unref)(m)}])},[e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Tu)),e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Mu,[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(T,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,r.createElementVNode)("div",{class:"d-drag-body",onClick:U[0]||(U[0]=(0,r.withModifiers)((...M)=>(0,r.unref)(u)&&(0,r.unref)(u)(...M),["stop"])),onMouseenter:U[1]||(U[1]=(...M)=>(0,r.unref)(o)&&(0,r.unref)(o)(...M)),onMouseleave:U[2]||(U[2]=(...M)=>(0,r.unref)(a)&&(0,r.unref)(a)(...M))},[(0,r.renderSlot)(Q.$slots,"default")],32)],2)}}}),Do=Ou,Ku=(0,r.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{});return(t,n)=>{const o=(0,r.resolveComponent)("el-col");return(0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:a.id},[a.type!="pkey"?((0,r.openBlock)(),(0,r.createBlock)(o,{key:0,span:a.config.span||24},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(So,{"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["is-container","component-data"])]),_:2},1032,["span"])):(0,r.createCommentVNode)("",!0)],64))),128)}}}),No=Ku,Ru=(0,r.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,o)=>((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createBlock)(So,{key:a.id,style:(0,r.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Lo=Ru,cs=dt(So,[xo,Do,No,Lo]);function wn(e){return(0,r.getCurrentScope)()?((0,r.onScopeDispose)(e),!0):!1}function Je(e){return typeof e=="function"?e():(0,r.unref)(e)}var Vu=typeof window<"u"&&typeof document<"u",Pu=e=>typeof e<"u",Gu=Object.prototype.toString,zu=e=>Gu.call(e)==="[object Object]",Xu=()=>{};function $u(e,A){function t(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(o).catch(a)})}return t}var us=e=>e();function Wu(e=us){const A=(0,r.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const o=(...a)=>{A.value&&e(...a)};return{isActive:(0,r.readonly)(A),pause:t,resume:n,eventFilter:o}}function ds(e,A=!1,t="Timeout"){return new Promise((n,o)=>{setTimeout(A?()=>o(t):n,e)})}function Yu(e,A,t={}){const{eventFilter:n=us,...o}=t;return(0,r.watch)(e,$u(n,A),o)}function zt(e,A,t={}){const{eventFilter:n,...o}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=Wu(n);return{stop:Yu(e,A,{...o,eventFilter:a}),pause:u,resume:d,isActive:h}}function Ju(e,A={}){if(!(0,r.isRef)(e))return(0,r.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,r.customRef)(()=>({get(){return e.value[n]},set(o){var a;if((a=Je(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=o,e.value=u}else{const u={...e.value,[n]:o};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=o}}));return t}function ko(e,A=!1){function t(w,{flush:m="sync",deep:y=!1,timeout:Q,throwOnTimeout:U}={}){let T=null;const M=[new Promise(R=>{T=(0,r.watch)(e,H=>{w(H)!==A&&(T?.(),R(H))},{flush:m,deep:y,immediate:!0})})];return Q!=null&&M.push(ds(Q,U).then(()=>Je(e)).finally(()=>T?.())),Promise.race(M)}function n(w,m){if(!(0,r.isRef)(w))return t(H=>H===w,m);const{flush:y="sync",deep:Q=!1,timeout:U,throwOnTimeout:T}=m??{};let M=null;const R=[new Promise(H=>{M=(0,r.watch)([e,w],([P,iA])=>{A!==(P===iA)&&(M?.(),H(P))},{flush:y,deep:Q,immediate:!0})})];return U!=null&&R.push(ds(U,T).then(()=>Je(e)).finally(()=>(M?.(),Je(e)))),Promise.race(R)}function o(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function u(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function h(w,m){return t(y=>{const Q=Array.from(y);return Q.includes(w)||Q.includes(Je(w))},m)}function g(w){return B(1,w)}function B(w=1,m){let y=-1;return t(()=>(y+=1,y>=w),m)}return Array.isArray(Je(e))?{toMatch:t,toContains:h,changed:g,changedTimes:B,get not(){return ko(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:o,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return ko(e,!A)}}}function To(e){return ko(e)}function Zu(e){var A;const t=Je(e);return(A=t?.$el)!=null?A:t}var fs=Vu?window:void 0;function gs(...e){let A,t,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,o]=e,A=fs):[A,t,n,o]=e,!A)return Xu;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(B=>B()),a.length=0},d=(B,w,m,y)=>(B.addEventListener(w,m,y),()=>B.removeEventListener(w,m,y)),h=(0,r.watch)(()=>[Zu(A),Je(o)],([B,w])=>{if(u(),!B)return;const m=zu(w)?{...w}:w;a.push(...t.flatMap(y=>n.map(Q=>d(B,y,Q,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return wn(g),g}function ju(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function hs(...e){let A,t,n={};e.length===3?(A=e[0],t=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(A=!0,t=e[0],n=e[1]):(A=e[0],t=e[1]):(A=!0,t=e[0]);const{target:o=fs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=ju(A);return gs(o,a,B=>{B.repeat&&Je(d)||h(B)&&t(B)},u)}function qu(e){return JSON.parse(JSON.stringify(e))}function Mo(e,A,t,n={}){var o,a,u;const{clone:d=!1,passive:h=!1,eventName:g,deep:B=!1,defaultValue:w,shouldEmit:m}=n,y=(0,r.getCurrentInstance)(),Q=t||y?.emit||((o=y?.$emit)==null?void 0:o.bind(y))||((u=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(y?.proxy));let U=g;A||(A="modelValue"),U=U||`update:${A.toString()}`;const T=H=>d?typeof d=="function"?d(H):qu(H):H,M=()=>Pu(e[A])?T(e[A]):w,R=H=>{m?m(H)&&Q(U,H):Q(U,H)};if(h){const H=(0,r.ref)(M());let P=!1;return(0,r.watch)(()=>e[A],iA=>{P||(P=!0,H.value=T(iA),(0,r.nextTick)(()=>P=!1))}),(0,r.watch)(H,iA=>{!P&&(iA!==e[A]||B)&&R(iA)},{deep:B}),H}else return(0,r.computed)({get(){return M()},set(H){R(H)}})}var Ad={value:()=>{}};function rr(){for(var e=0,A=arguments.length,t={},n;e<A;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new or(t)}function or(e){this._=e}function ed(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}or.prototype=rr.prototype={constructor:or,on:function(e,A){var t=this._,n=ed(e+"",t),o,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((o=(e=n[a]).type)&&(o=td(t[o],e.name)))return o;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(o=(e=n[a]).type)t[o]=Bs(t[o],e.name,A);else if(A==null)for(o in t)t[o]=Bs(t[o],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new or(e)},call:function(e,A){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,a;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,o=a.length;n<o;++n)a[n].value.apply(A,t)},apply:function(e,A,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,a=n.length;o<a;++o)n[o].value.apply(A,t)}};function td(e,A){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===A)return o.value}function Bs(e,A,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===A){e[n]=Ad,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var Oo="http://www.w3.org/1999/xhtml",ps={svg:"http://www.w3.org/2000/svg",xhtml:Oo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ir(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),ps.hasOwnProperty(A)?{space:ps[A],local:e}:e}function nd(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===Oo&&A.documentElement.namespaceURI===Oo?A.createElement(e):A.createElementNS(t,e)}}function rd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ms(e){var A=ir(e);return(A.local?rd:nd)(A)}function od(){}function Ko(e){return e==null?od:function(){return this.querySelector(e)}}function id(e){typeof e!="function"&&(e=Ko(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=new Array(u),h,g,B=0;B<u;++B)(h=a[B])&&(g=e.call(h,h.__data__,B,a))&&("__data__"in h&&(g.__data__=h.__data__),d[B]=g);return new Ue(n,this._parents)}function sd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ad(){return[]}function ws(e){return e==null?ad:function(){return this.querySelectorAll(e)}}function ld(e){return function(){return sd(e.apply(this,arguments))}}function cd(e){typeof e=="function"?e=ld(e):e=ws(e);for(var A=this._groups,t=A.length,n=[],o=[],a=0;a<t;++a)for(var u=A[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&(n.push(e.call(h,h.__data__,g,u)),o.push(h));return new Ue(n,o)}function Cs(e){return function(){return this.matches(e)}}function ys(e){return function(A){return A.matches(e)}}var ud=Array.prototype.find;function dd(e){return function(){return ud.call(this.children,e)}}function fd(){return this.firstElementChild}function gd(e){return this.select(e==null?fd:dd(typeof e=="function"?e:ys(e)))}var hd=Array.prototype.filter;function Bd(){return Array.from(this.children)}function pd(e){return function(){return hd.call(this.children,e)}}function md(e){return this.selectAll(e==null?Bd:pd(typeof e=="function"?e:ys(e)))}function wd(e){typeof e!="function"&&(e=Cs(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Ue(n,this._parents)}function vs(e){return new Array(e.length)}function Cd(){return new Ue(this._enter||this._groups.map(vs),this._parents)}function sr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}sr.prototype={constructor:sr,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,A){return this._parent.insertBefore(e,A)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function yd(e){return function(){return e}}function vd(e,A,t,n,o,a){for(var u=0,d,h=A.length,g=a.length;u<g;++u)(d=A[u])?(d.__data__=a[u],n[u]=d):t[u]=new sr(e,a[u]);for(;u<h;++u)(d=A[u])&&(o[u]=d)}function Qd(e,A,t,n,o,a,u){var d,h,g=new Map,B=A.length,w=a.length,m=new Array(B),y;for(d=0;d<B;++d)(h=A[d])&&(m[d]=y=u.call(h,h.__data__,d,A)+"",g.has(y)?o[d]=h:g.set(y,h));for(d=0;d<w;++d)y=u.call(e,a[d],d,a)+"",(h=g.get(y))?(n[d]=h,h.__data__=a[d],g.delete(y)):t[d]=new sr(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(o[d]=h)}function Ed(e){return e.__data__}function Fd(e,A){if(!arguments.length)return Array.from(this,Ed);var t=A?Qd:vd,n=this._parents,o=this._groups;typeof e!="function"&&(e=yd(e));for(var a=o.length,u=new Array(a),d=new Array(a),h=new Array(a),g=0;g<a;++g){var B=n[g],w=o[g],m=w.length,y=Ud(e.call(B,B&&B.__data__,g,n)),Q=y.length,U=d[g]=new Array(Q),T=u[g]=new Array(Q);t(B,w,U,T,h[g]=new Array(m),y,A);for(var M=0,R=0,H,P;M<Q;++M)if(H=U[M]){for(M>=R&&(R=M+1);!(P=T[R])&&++R<Q;);H._next=P||null}}return u=new Ue(u,n),u._enter=d,u._exit=h,u}function Ud(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bd(){return new Ue(this._exit||this._groups.map(vs),this._parents)}function Hd(e,A,t){var n=this.enter(),o=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(o=A(o),o&&(o=o.selection())),t==null?a.remove():t(a),n&&o?n.merge(o).order():o}function Id(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,o=t.length,a=n.length,u=Math.min(o,a),d=new Array(o),h=0;h<u;++h)for(var g=t[h],B=n[h],w=g.length,m=d[h]=new Array(w),y,Q=0;Q<w;++Q)(y=g[Q]||B[Q])&&(m[Q]=y);for(;h<o;++h)d[h]=t[h];return new Ue(d,this._parents)}function _d(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],o=n.length-1,a=n[o],u;--o>=0;)(u=n[o])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function Sd(e){e||(e=xd);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,h=o[a]=new Array(d),g,B=0;B<d;++B)(g=u[B])&&(h[B]=g);h.sort(A)}return new Ue(o,this._parents).order()}function xd(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Dd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Nd(){return Array.from(this)}function Ld(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length;o<a;++o){var u=n[o];if(u)return u}return null}function kd(){let e=0;for(const A of this)++e;return e}function Td(){return!this.node()}function Md(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var o=A[t],a=0,u=o.length,d;a<u;++a)(d=o[a])&&e.call(d,d.__data__,a,o);return this}function Od(e){return function(){this.removeAttribute(e)}}function Kd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rd(e,A){return function(){this.setAttribute(e,A)}}function Vd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Pd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Gd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function zd(e,A){var t=ir(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((A==null?t.local?Kd:Od:typeof A=="function"?t.local?Gd:Pd:t.local?Vd:Rd)(t,A))}function Qs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Xd(e){return function(){this.style.removeProperty(e)}}function $d(e,A,t){return function(){this.style.setProperty(e,A,t)}}function Wd(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function Yd(e,A,t){return arguments.length>1?this.each((A==null?Xd:typeof A=="function"?Wd:$d)(e,A,t??"")):Xt(this.node(),e)}function Xt(e,A){return e.style.getPropertyValue(A)||Qs(e).getComputedStyle(e,null).getPropertyValue(A)}function Jd(e){return function(){delete this[e]}}function Zd(e,A){return function(){this[e]=A}}function jd(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function qd(e,A){return arguments.length>1?this.each((A==null?Jd:typeof A=="function"?jd:Zd)(e,A)):this.node()[e]}function Es(e){return e.trim().split(/^|\s+/)}function Ro(e){return e.classList||new Fs(e)}function Fs(e){this._node=e,this._names=Es(e.getAttribute("class")||"")}Fs.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var A=this._names.indexOf(e);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Us(e,A){for(var t=Ro(e),n=-1,o=A.length;++n<o;)t.add(A[n])}function bs(e,A){for(var t=Ro(e),n=-1,o=A.length;++n<o;)t.remove(A[n])}function Af(e){return function(){Us(this,e)}}function ef(e){return function(){bs(this,e)}}function tf(e,A){return function(){(A.apply(this,arguments)?Us:bs)(this,e)}}function nf(e,A){var t=Es(e+"");if(arguments.length<2){for(var n=Ro(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof A=="function"?tf:A?Af:ef)(t,A))}function rf(){this.textContent=""}function of(e){return function(){this.textContent=e}}function sf(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function af(e){return arguments.length?this.each(e==null?rf:(typeof e=="function"?sf:of)(e)):this.node().textContent}function lf(){this.innerHTML=""}function cf(e){return function(){this.innerHTML=e}}function uf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function df(e){return arguments.length?this.each(e==null?lf:(typeof e=="function"?uf:cf)(e)):this.node().innerHTML}function ff(){this.nextSibling&&this.parentNode.appendChild(this)}function gf(){return this.each(ff)}function hf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bf(){return this.each(hf)}function pf(e){var A=typeof e=="function"?e:ms(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function mf(){return null}function wf(e,A){var t=typeof e=="function"?e:ms(e),n=A==null?mf:typeof A=="function"?A:Ko(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Cf(){var e=this.parentNode;e&&e.removeChild(this)}function yf(){return this.each(Cf)}function vf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Qf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Ef(e){return this.select(e?Qf:vf)}function Ff(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Uf(e){return function(A){e.call(this,A,this.__data__)}}function bf(e){return e.trim().split(/^|\s+/).map(function(A){var t="",n=A.indexOf(".");return n>=0&&(t=A.slice(n+1),A=A.slice(0,n)),{type:A,name:t}})}function Hf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,o=A.length,a;t<o;++t)a=A[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):A[++n]=a;++n?A.length=n:delete this.__on}}}function If(e,A,t){return function(){var n=this.__on,o,a=Uf(A);if(n){for(var u=0,d=n.length;u<d;++u)if((o=n[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=t),o.value=A;return}}this.addEventListener(e.type,a,t),o={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(o):this.__on=[o]}}function _f(e,A,t){var n=bf(e+""),o,a=n.length,u;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,g=d.length,B;h<g;++h)for(o=0,B=d[h];o<a;++o)if((u=n[o]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?If:Hf,o=0;o<a;++o)this.each(d(n[o],A,t));return this}function Hs(e,A,t){var n=Qs(e),o=n.CustomEvent;typeof o=="function"?o=new o(A,t):(o=n.document.createEvent("Event"),t?(o.initEvent(A,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(A,!1,!1)),e.dispatchEvent(o)}function Sf(e,A){return function(){return Hs(this,e,A)}}function xf(e,A){return function(){return Hs(this,e,A.apply(this,arguments))}}function Df(e,A){return this.each((typeof A=="function"?xf:Sf)(e,A))}function*Nf(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length,u;o<a;++o)(u=n[o])&&(yield u)}var Is=[null];function Ue(e,A){this._groups=e,this._parents=A}function Cn(){return new Ue([[document.documentElement]],Is)}function Lf(){return this}Ue.prototype=Cn.prototype={constructor:Ue,select:id,selectAll:cd,selectChild:gd,selectChildren:md,filter:wd,data:Fd,enter:Cd,exit:bd,join:Hd,merge:Id,selection:Lf,order:_d,sort:Sd,call:Dd,nodes:Nd,node:Ld,size:kd,empty:Td,each:Md,attr:zd,style:Yd,property:qd,classed:nf,text:af,html:df,raise:gf,lower:Bf,append:pf,insert:wf,remove:yf,clone:Ef,datum:Ff,on:_f,dispatch:Df,[Symbol.iterator]:Nf};function Le(e){return typeof e=="string"?new Ue([[document.querySelector(e)]],[document.documentElement]):new Ue([[e]],Is)}function kf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Ke(e,A){if(e=kf(e),A===void 0&&(A=e.currentTarget),A){var t=A.ownerSVGElement||A;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(A.getScreenCTM().inverse()),[n.x,n.y]}if(A.getBoundingClientRect){var o=A.getBoundingClientRect();return[e.clientX-o.left-A.clientLeft,e.clientY-o.top-A.clientTop]}}return[e.pageX,e.pageY]}var Tf={passive:!1},yn={capture:!0,passive:!1};function Vo(e){e.stopImmediatePropagation()}function $t(e){e.preventDefault(),e.stopImmediatePropagation()}function _s(e){var A=e.document.documentElement,t=Le(e).on("dragstart.drag",$t,yn);"onselectstart"in A?t.on("selectstart.drag",$t,yn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Ss(e,A){var t=e.document.documentElement,n=Le(e).on("dragstart.drag",null);A&&(n.on("click.drag",$t,yn),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in t?n.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}var ar=e=>()=>e;function Po(e,{sourceEvent:A,subject:t,target:n,identifier:o,active:a,x:u,y:d,dx:h,dy:g,dispatch:B}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:B}})}Po.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Mf(e){return!e.ctrlKey&&!e.button}function Of(){return this.parentNode}function Kf(e,A){return A??{x:e.x,y:e.y}}function Rf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vf(){var e=Mf,A=Of,t=Kf,n=Rf,o={},a=rr("start","drag","end"),u=0,d,h,g,B,w=0;function m(P){P.on("mousedown.drag",y).filter(n).on("touchstart.drag",T).on("touchmove.drag",M,Tf).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(P,iA){if(!(B||!e.call(this,P,iA))){var Z=H(this,A.call(this,P,iA),P,iA,"mouse");Z&&(Le(P.view).on("mousemove.drag",Q,yn).on("mouseup.drag",U,yn),_s(P.view),Vo(P),g=!1,d=P.clientX,h=P.clientY,Z("start",P))}}function Q(P){if($t(P),!g){var iA=P.clientX-d,Z=P.clientY-h;g=iA*iA+Z*Z>w}o.mouse("drag",P)}function U(P){Le(P.view).on("mousemove.drag mouseup.drag",null),Ss(P.view,g),$t(P),o.mouse("end",P)}function T(P,iA){if(e.call(this,P,iA)){var Z=P.changedTouches,aA=A.call(this,P,iA),lA=Z.length,rA,nA;for(rA=0;rA<lA;++rA)(nA=H(this,aA,P,iA,Z[rA].identifier,Z[rA]))&&(Vo(P),nA("start",P,Z[rA]))}}function M(P){var iA=P.changedTouches,Z=iA.length,aA,lA;for(aA=0;aA<Z;++aA)(lA=o[iA[aA].identifier])&&($t(P),lA("drag",P,iA[aA]))}function R(P){var iA=P.changedTouches,Z=iA.length,aA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),aA=0;aA<Z;++aA)(lA=o[iA[aA].identifier])&&(Vo(P),lA("end",P,iA[aA]))}function H(P,iA,Z,aA,lA,rA){var nA=a.copy(),j=Ke(rA||Z,iA),S,eA,I;if((I=t.call(P,new Po("beforestart",{sourceEvent:Z,target:m,identifier:lA,active:u,x:j[0],y:j[1],dx:0,dy:0,dispatch:nA}),aA))!=null)return S=I.x-j[0]||0,eA=I.y-j[1]||0,function X(F,x,N){var L=j,O;switch(F){case"start":o[lA]=X,O=u++;break;case"end":delete o[lA],--u;case"drag":j=Ke(N||x,iA),O=u;break}nA.call(F,P,new Po(F,{sourceEvent:x,subject:I,target:m,identifier:lA,active:O,x:j[0]+S,y:j[1]+eA,dx:j[0]-L[0],dy:j[1]-L[1],dispatch:nA}),aA)}}return m.filter=function(P){return arguments.length?(e=typeof P=="function"?P:ar(!!P),m):e},m.container=function(P){return arguments.length?(A=typeof P=="function"?P:ar(P),m):A},m.subject=function(P){return arguments.length?(t=typeof P=="function"?P:ar(P),m):t},m.touchable=function(P){return arguments.length?(n=typeof P=="function"?P:ar(!!P),m):n},m.on=function(){var P=a.on.apply(a,arguments);return P===a?m:P},m.clickDistance=function(P){return arguments.length?(w=(P=+P)*P,m):Math.sqrt(w)},m}function Go(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function xs(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function vn(){}var Qn=.7,lr=1/Qn,Wt="\\s*([+-]?\\d+)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pf=/^#([0-9a-f]{3,8})$/,Gf=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),zf=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Xf=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${En}\\)$`),$f=new RegExp(`^rgba\\(${Re},${Re},${Re},${En}\\)$`),Wf=new RegExp(`^hsl\\(${En},${Re},${Re}\\)$`),Yf=new RegExp(`^hsla\\(${En},${Re},${Re},${En}\\)$`),Ds={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Go(vn,_t,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ns,formatHex:Ns,formatHex8:Jf,formatHsl:Zf,formatRgb:Ls,toString:Ls});function Ns(){return this.rgb().formatHex()}function Jf(){return this.rgb().formatHex8()}function Zf(){return Ks(this).formatHsl()}function Ls(){return this.rgb().formatRgb()}function _t(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Pf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?ks(A):t===3?new Ce(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?cr(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?cr(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|A&240,((A&15)<<4|A&15)/255):null):(A=Gf.exec(e))?new Ce(A[1],A[2],A[3],1):(A=zf.exec(e))?new Ce(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=Xf.exec(e))?cr(A[1],A[2],A[3],A[4]):(A=$f.exec(e))?cr(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=Wf.exec(e))?Os(A[1],A[2]/100,A[3]/100,1):(A=Yf.exec(e))?Os(A[1],A[2]/100,A[3]/100,A[4]):Ds.hasOwnProperty(e)?ks(Ds[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function ks(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function cr(e,A,t,n){return n<=0&&(e=A=t=NaN),new Ce(e,A,t,n)}function jf(e){return e instanceof vn||(e=_t(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function zo(e,A,t,n){return arguments.length===1?jf(e):new Ce(e,A,t,n??1)}function Ce(e,A,t,n){this.r=+e,this.g=+A,this.b=+t,this.opacity=+n}Go(Ce,zo,xs(vn,{brighter(e){return e=e==null?lr:Math.pow(lr,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qn:Math.pow(Qn,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(St(this.r),St(this.g),St(this.b),ur(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ts,formatHex:Ts,formatHex8:qf,formatRgb:Ms,toString:Ms}));function Ts(){return`#${xt(this.r)}${xt(this.g)}${xt(this.b)}`}function qf(){return`#${xt(this.r)}${xt(this.g)}${xt(this.b)}${xt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ms(){const e=ur(this.opacity);return`${e===1?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${e===1?")":`, ${e})`}`}function ur(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xt(e){return e=St(e),(e<16?"0":"")+e.toString(16)}function Os(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new ke(e,A,t,n)}function Ks(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof vn||(e=_t(e)),!e)return new ke;if(e instanceof ke)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,o=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-o,h=(a+o)/2;return d?(A===a?u=(t-n)/d+(t<n)*6:t===a?u=(n-A)/d+2:u=(A-t)/d+4,d/=h<.5?a+o:2-a-o,u*=60):d=h>0&&h<1?0:u,new ke(u,d,h,e.opacity)}function Ag(e,A,t,n){return arguments.length===1?Ks(e):new ke(e,A,t,n??1)}function ke(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}Go(ke,Ag,xs(vn,{brighter(e){return e=e==null?lr:Math.pow(lr,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qn:Math.pow(Qn,e),new ke(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,A=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*A,o=2*t-n;return new Ce(Xo(e>=240?e-240:e+120,o,n),Xo(e,o,n),Xo(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ke(Rs(this.h),dr(this.s),dr(this.l),ur(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ur(this.opacity);return`${e===1?"hsl(":"hsla("}${Rs(this.h)}, ${dr(this.s)*100}%, ${dr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Rs(e){return e=(e||0)%360,e<0?e+360:e}function dr(e){return Math.max(0,Math.min(1,e||0))}function Xo(e,A,t){return(e<60?A+(t-A)*e/60:e<180?t:e<240?A+(t-A)*(240-e)/60:A)*255}var $o=e=>()=>e;function eg(e,A){return function(t){return e+t*A}}function tg(e,A,t){return e=Math.pow(e,t),A=Math.pow(A,t)-e,t=1/t,function(n){return Math.pow(e+n*A,t)}}function ng(e){return(e=+e)==1?Vs:function(A,t){return t-A?tg(A,t,e):$o(isNaN(A)?t:A)}}function Vs(e,A){var t=A-e;return t?eg(e,t):$o(isNaN(e)?A:e)}var fr=(function e(A){var t=ng(A);function n(o,a){var u=t((o=zo(o)).r,(a=zo(a)).r),d=t(o.g,a.g),h=t(o.b,a.b),g=Vs(o.opacity,a.opacity);return function(B){return o.r=u(B),o.g=d(B),o.b=h(B),o.opacity=g(B),o+""}}return n.gamma=e,n})(1);function rg(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),o;return function(a){for(o=0;o<t;++o)n[o]=e[o]*(1-a)+A[o]*a;return n}}function og(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ig(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,o=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)o[u]=Fn(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=o[u](d);return a}}function sg(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function Ve(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function ag(e,A){var t={},n={},o;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(o in A)o in e?t[o]=Fn(e[o],A[o]):n[o]=A[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var Wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yo=new RegExp(Wo.source,"g");function lg(e){return function(){return e}}function cg(e){return function(A){return e(A)+""}}function Ps(e,A){var t=Wo.lastIndex=Yo.lastIndex=0,n,o,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=Wo.exec(e))&&(o=Yo.exec(A));)(a=o.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(o=o[0])?d[u]?d[u]+=o:d[++u]=o:(d[++u]=null,h.push({i:u,x:Ve(n,o)})),t=Yo.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?cg(h[0].x):lg(A):(A=h.length,function(g){for(var B=0,w;B<A;++B)d[(w=h[B]).i]=w.x(g);return d.join("")})}function Fn(e,A){var t=typeof A,n;return A==null||t==="boolean"?$o(A):(t==="number"?Ve:t==="string"?(n=_t(A))?(A=n,fr):Ps:A instanceof _t?fr:A instanceof Date?sg:og(A)?rg:Array.isArray(A)?ig:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?ag:Ve)(e,A)}var Gs=180/Math.PI,Jo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zs(e,A,t,n,o,a){var u,d,h;return(u=Math.sqrt(e*e+A*A))&&(e/=u,A/=u),(h=e*t+A*n)&&(t-=e*h,n-=A*h),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,h/=d),e*n<A*t&&(e=-e,A=-A,h=-h,u=-u),{translateX:o,translateY:a,rotate:Math.atan2(A,e)*Gs,skewX:Math.atan(h)*Gs,scaleX:u,scaleY:d}}var gr;function ug(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?Jo:zs(A.a,A.b,A.c,A.d,A.e,A.f)}function dg(e){return e==null||(gr||(gr=document.createElementNS("http://www.w3.org/2000/svg","g")),gr.setAttribute("transform",e),!(e=gr.transform.baseVal.consolidate()))?Jo:(e=e.matrix,zs(e.a,e.b,e.c,e.d,e.e,e.f))}function Xs(e,A,t,n){function o(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,y,Q){if(g!==w||B!==m){var U=y.push("translate(",null,A,null,t);Q.push({i:U-4,x:Ve(g,w)},{i:U-2,x:Ve(B,m)})}else(w||m)&&y.push("translate("+w+A+m+t)}function u(g,B,w,m){g!==B?(g-B>180?B+=360:B-g>180&&(g+=360),m.push({i:w.push(o(w)+"rotate(",null,n)-2,x:Ve(g,B)})):B&&w.push(o(w)+"rotate("+B+n)}function d(g,B,w,m){g!==B?m.push({i:w.push(o(w)+"skewX(",null,n)-2,x:Ve(g,B)}):B&&w.push(o(w)+"skewX("+B+n)}function h(g,B,w,m,y,Q){if(g!==w||B!==m){var U=y.push(o(y)+"scale(",null,",",null,")");Q.push({i:U-4,x:Ve(g,w)},{i:U-2,x:Ve(B,m)})}else(w!==1||m!==1)&&y.push(o(y)+"scale("+w+","+m+")")}return function(g,B){var w=[],m=[];return g=e(g),B=e(B),a(g.translateX,g.translateY,B.translateX,B.translateY,w,m),u(g.rotate,B.rotate,w,m),d(g.skewX,B.skewX,w,m),h(g.scaleX,g.scaleY,B.scaleX,B.scaleY,w,m),g=B=null,function(y){for(var Q=-1,U=m.length,T;++Q<U;)w[(T=m[Q]).i]=T.x(y);return w.join("")}}}var fg=Xs(ug,"px, ","px)","deg)"),gg=Xs(dg,", ",")",")"),hg=1e-12;function $s(e){return((e=Math.exp(e))+1/e)/2}function Bg(e){return((e=Math.exp(e))-1/e)/2}function pg(e){return((e=Math.exp(2*e))-1)/(e+1)}var hr=(function e(A,t,n){function o(a,u){var d=a[0],h=a[1],g=a[2],B=u[0],w=u[1],m=u[2],y=B-d,Q=w-h,U=y*y+Q*Q,T,M;if(U<hg)M=Math.log(m/g)/A,T=function(Z){return[d+Z*y,h+Z*Q,g*Math.exp(A*Z*M)]};else{var R=Math.sqrt(U),H=(m*m-g*g+n*U)/(2*g*t*R),P=(m*m-g*g-n*U)/(2*m*t*R),iA=Math.log(Math.sqrt(H*H+1)-H);M=(Math.log(Math.sqrt(P*P+1)-P)-iA)/A,T=function(Z){var aA=Z*M,lA=$s(iA),rA=g/(t*R)*(lA*pg(A*aA+iA)-Bg(iA));return[d+rA*y,h+rA*Q,g*lA/$s(A*aA+iA)]}}return T.duration=M*1e3*A/Math.SQRT2,T}return o.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},o})(Math.SQRT2,2,4),Yt=0,Un=0,bn=0,Ws=1e3,Br,Hn,pr=0,Dt=0,mr=0,In=typeof performance=="object"&&performance.now?performance:Date,Ys=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Zo(){return Dt||(Ys(mg),Dt=In.now()+mr)}function mg(){Dt=0}function wr(){this._call=this._time=this._next=null}wr.prototype=Js.prototype={constructor:wr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Zo():+t)+(A==null?0:+A),!this._next&&Hn!==this&&(Hn?Hn._next=this:Br=this,Hn=this),this._call=e,this._time=t,jo()},stop:function(){this._call&&(this._call=null,this._time=1/0,jo())}};function Js(e,A,t){var n=new wr;return n.restart(e,A,t),n}function wg(){Zo(),++Yt;for(var e=Br,A;e;)(A=Dt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--Yt}function Zs(){Dt=(pr=In.now())+mr,Yt=Un=0;try{wg()}finally{Yt=0,yg(),Dt=0}}function Cg(){var e=In.now(),A=e-pr;A>Ws&&(mr-=A,pr=e)}function yg(){for(var e,A=Br,t,n=1/0;A;)A._call?(n>A._time&&(n=A._time),e=A,A=A._next):(t=A._next,A._next=null,A=e?e._next=t:Br=t);Hn=e,jo(n)}function jo(e){Yt||(Un&&(Un=clearTimeout(Un)),e-Dt>24?(e<1/0&&(Un=setTimeout(Zs,e-In.now()-mr)),bn&&(bn=clearInterval(bn))):(bn||(pr=In.now(),bn=setInterval(Cg,Ws)),Yt=1,Ys(Zs)))}function js(e,A,t){var n=new wr;return A=A==null?0:+A,n.restart(o=>{n.stop(),e(o+A)},A,t),n}var vg=rr("start","end","cancel","interrupt"),Qg=[],qs=0,Aa=1,qo=2,Cr=3,ea=4,Ai=5,yr=6;function vr(e,A,t,n,o,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Eg(e,t,{name:A,index:n,group:o,on:vg,tween:Qg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:qs})}function ei(e,A){var t=Te(e,A);if(t.state>qs)throw new Error("too late; already scheduled");return t}function Pe(e,A){var t=Te(e,A);if(t.state>Cr)throw new Error("too late; already running");return t}function Te(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Eg(e,A,t){var n=e.__transition,o;n[A]=t,t.timer=Js(a,0,t.time);function a(g){t.state=Aa,t.timer.restart(u,t.delay,t.time),t.delay<=g&&u(g-t.delay)}function u(g){var B,w,m,y;if(t.state!==Aa)return h();for(B in n)if(y=n[B],y.name===t.name){if(y.state===Cr)return js(u);y.state===ea?(y.state=yr,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete n[B]):+B<A&&(y.state=yr,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete n[B])}if(js(function(){t.state===Cr&&(t.state=ea,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=qo,t.on.call("start",e,e.__data__,t.index,t.group),t.state===qo){for(t.state=Cr,o=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(y=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(o[++w]=y);o.length=w+1}}function d(g){for(var B=g<t.duration?t.ease.call(null,g/t.duration):(t.timer.restart(h),t.state=Ai,1),w=-1,m=o.length;++w<m;)o[w].call(e,B);t.state===Ai&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=yr,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function Qr(e,A){var t=e.__transition,n,o,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}o=n.state>qo&&n.state<Ai,n.state=yr,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function Fg(e){return this.each(function(){Qr(this,e)})}function Ug(e,A){var t,n;return function(){var o=Pe(this,e),a=o.tween;if(a!==t){n=t=a;for(var u=0,d=n.length;u<d;++u)if(n[u].name===A){n=n.slice(),n.splice(u,1);break}}o.tween=n}}function bg(e,A,t){var n,o;if(typeof t!="function")throw new Error;return function(){var a=Pe(this,e),u=a.tween;if(u!==n){o=(n=u).slice();for(var d={name:A,value:t},h=0,g=o.length;h<g;++h)if(o[h].name===A){o[h]=d;break}h===g&&o.push(d)}a.tween=o}}function Hg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Te(this.node(),t).tween,o=0,a=n.length,u;o<a;++o)if((u=n[o]).name===e)return u.value;return null}return this.each((A==null?Ug:bg)(t,e,A))}function ti(e,A,t){var n=e._id;return e.each(function(){var o=Pe(this,n);(o.value||(o.value={}))[A]=t.apply(this,arguments)}),function(o){return Te(o,n).value[A]}}function ta(e,A){var t;return(typeof A=="number"?Ve:A instanceof _t?fr:(t=_t(A))?(A=t,fr):Ps)(e,A)}function Ig(e){return function(){this.removeAttribute(e)}}function _g(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sg(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttribute(e);return u===o?null:u===n?a:a=A(n=u,t)}}function xg(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===n?a:a=A(n=u,t)}}function Dg(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Ng(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Lg(e,A){var t=ir(e),n=t==="transform"?gg:ta;return this.attrTween(e,typeof A=="function"?(t.local?Ng:Dg)(t,n,ti(this,"attr."+e,A)):A==null?(t.local?_g:Ig)(t):(t.local?xg:Sg)(t,n,A))}function kg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Tg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function Mg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Tg(e,a)),t}return o._value=A,o}function Og(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&kg(e,a)),t}return o._value=A,o}function Kg(e,A){var t="attr."+e;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(A==null)return this.tween(t,null);if(typeof A!="function")throw new Error;var n=ir(e);return this.tween(t,(n.local?Mg:Og)(n,A))}function Rg(e,A){return function(){ei(this,e).delay=+A.apply(this,arguments)}}function Vg(e,A){return A=+A,function(){ei(this,e).delay=A}}function Pg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Rg:Vg)(A,e)):Te(this.node(),A).delay}function Gg(e,A){return function(){Pe(this,e).duration=+A.apply(this,arguments)}}function zg(e,A){return A=+A,function(){Pe(this,e).duration=A}}function Xg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Gg:zg)(A,e)):Te(this.node(),A).duration}function $g(e,A){if(typeof A!="function")throw new Error;return function(){Pe(this,e).ease=A}}function Wg(e){var A=this._id;return arguments.length?this.each($g(A,e)):Te(this.node(),A).ease}function Yg(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Pe(this,e).ease=t}}function Jg(e){if(typeof e!="function")throw new Error;return this.each(Yg(this._id,e))}function Zg(e){typeof e!="function"&&(e=Cs(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Ze(n,this._parents,this._name,this._id)}function jg(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,o=t.length,a=Math.min(n,o),u=new Array(n),d=0;d<a;++d)for(var h=A[d],g=t[d],B=h.length,w=u[d]=new Array(B),m,y=0;y<B;++y)(m=h[y]||g[y])&&(w[y]=m);for(;d<n;++d)u[d]=A[d];return new Ze(u,this._parents,this._name,this._id)}function qg(e){return(e+"").trim().split(/^|\s+/).every(function(A){var t=A.indexOf(".");return t>=0&&(A=A.slice(0,t)),!A||A==="start"})}function Ah(e,A,t){var n,o,a=qg(A)?ei:Pe;return function(){var u=a(this,e),d=u.on;d!==n&&(o=(n=d).copy()).on(A,t),u.on=o}}function eh(e,A){var t=this._id;return arguments.length<2?Te(this.node(),t).on.on(e):this.each(Ah(t,e,A))}function th(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function nh(){return this.on("end.remove",th(this._id))}function rh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Ko(e));for(var n=this._groups,o=n.length,a=new Array(o),u=0;u<o;++u)for(var d=n[u],h=d.length,g=a[u]=new Array(h),B,w,m=0;m<h;++m)(B=d[m])&&(w=e.call(B,B.__data__,m,d))&&("__data__"in B&&(w.__data__=B.__data__),g[m]=w,vr(g[m],A,t,m,g,Te(B,t)));return new Ze(a,this._parents,A,t)}function oh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=ws(e));for(var n=this._groups,o=n.length,a=[],u=[],d=0;d<o;++d)for(var h=n[d],g=h.length,B,w=0;w<g;++w)if(B=h[w]){for(var m=e.call(B,B.__data__,w,h),y,Q=Te(B,t),U=0,T=m.length;U<T;++U)(y=m[U])&&vr(y,A,t,U,m,Q);a.push(m),u.push(B)}return new Ze(a,u,A,t)}var ih=Cn.prototype.constructor;function sh(){return new ih(this._groups,this._parents)}function ah(e,A){var t,n,o;return function(){var a=Xt(this,e),u=(this.style.removeProperty(e),Xt(this,e));return a===u?null:a===t&&u===n?o:o=A(t=a,n=u)}}function na(e){return function(){this.style.removeProperty(e)}}function lh(e,A,t){var n,o=t+"",a;return function(){var u=Xt(this,e);return u===o?null:u===n?a:a=A(n=u,t)}}function ch(e,A,t){var n,o,a;return function(){var u=Xt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Xt(this,e))),u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d))}}function uh(e,A){var t,n,o,a="style."+A,u="end."+a,d;return function(){var h=Pe(this,e),g=h.on,B=h.value[a]==null?d||(d=na(A)):void 0;(g!==t||o!==B)&&(n=(t=g).copy()).on(u,o=B),h.on=n}}function dh(e,A,t){var n=(e+="")=="transform"?fg:ta;return A==null?this.styleTween(e,ah(e,n)).on("end.style."+e,na(e)):typeof A=="function"?this.styleTween(e,ch(e,n,ti(this,"style."+e,A))).each(uh(this._id,e)):this.styleTween(e,lh(e,n,A),t).on("end.style."+e,null)}function fh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function gh(e,A,t){var n,o;function a(){var u=A.apply(this,arguments);return u!==o&&(n=(o=u)&&fh(e,u,t)),n}return a._value=A,a}function hh(e,A,t){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(A==null)return this.tween(n,null);if(typeof A!="function")throw new Error;return this.tween(n,gh(e,A,t??""))}function Bh(e){return function(){this.textContent=e}}function ph(e){return function(){var A=e(this);this.textContent=A??""}}function mh(e){return this.tween("text",typeof e=="function"?ph(ti(this,"text",e)):Bh(e==null?"":e+""))}function wh(e){return function(A){this.textContent=e.call(this,A)}}function Ch(e){var A,t;function n(){var o=e.apply(this,arguments);return o!==t&&(A=(t=o)&&wh(o)),A}return n._value=e,n}function yh(e){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(e==null)return this.tween(A,null);if(typeof e!="function")throw new Error;return this.tween(A,Ch(e))}function vh(){for(var e=this._name,A=this._id,t=ra(),n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)if(h=u[g]){var B=Te(h,A);vr(h,e,t,g,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Ze(n,this._parents,e,t)}function Qh(){var e,A,t=this,n=t._id,o=t.size();return new Promise(function(a,u){var d={value:u},h={value:function(){--o===0&&a()}};t.each(function(){var g=Pe(this,n),B=g.on;B!==e&&(A=(e=B).copy(),A._.cancel.push(d),A._.interrupt.push(d),A._.end.push(h)),g.on=A}),o===0&&a()})}var Eh=0;function Ze(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ra(){return++Eh}var je=Cn.prototype;Ze.prototype={constructor:Ze,select:rh,selectAll:oh,selectChild:je.selectChild,selectChildren:je.selectChildren,filter:Zg,merge:jg,selection:sh,transition:vh,call:je.call,nodes:je.nodes,node:je.node,size:je.size,empty:je.empty,each:je.each,on:eh,attr:Lg,attrTween:Kg,style:dh,styleTween:hh,text:mh,textTween:yh,remove:nh,tween:Hg,delay:Pg,duration:Xg,ease:Wg,easeVarying:Jg,end:Qh,[Symbol.iterator]:je[Symbol.iterator]};function Fh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Uh={time:null,delay:0,duration:250,ease:Fh};function bh(e,A){for(var t;!(t=e.__transition)||!(t=t[A]);)if(!(e=e.parentNode))throw new Error(`transition ${A} not found`);return t}function Hh(e){var A,t;e instanceof Ze?(A=e._id,e=e._name):(A=ra(),(t=Uh).time=Zo(),e=e==null?null:e+"");for(var n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&vr(h,e,A,g,u,t||bh(h,A));return new Ze(n,this._parents,e,A)}Cn.prototype.interrupt=Fg,Cn.prototype.transition=Hh;var Er=e=>()=>e;function Ih(e,{sourceEvent:A,target:t,transform:n,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:o}})}function qe(e,A,t){this.k=e,this.x=A,this.y=t}qe.prototype={constructor:qe,scale:function(e){return e===1?this:new qe(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new qe(this.k,this.x+this.k*e,this.y+this.k*A)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Jt=new qe(1,0,0);qe.prototype;function ni(e){e.stopImmediatePropagation()}function _n(e){e.preventDefault(),e.stopImmediatePropagation()}function _h(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Sh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function oa(){return this.__zoom||Jt}function xh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Dh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],o=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],u=e.invertY(A[1][1])-t[1][1];return e.translate(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Lh(){var e=_h,A=Sh,t=Nh,n=xh,o=Dh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=hr,g=rr("start","zoom","end"),B,w,m,y=500,Q=150,U=0,T=10;function M(I){I.property("__zoom",oa).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",rA).on("dblclick.zoom",nA).filter(o).on("touchstart.zoom",j).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(I,X,F,x){var N=I.selection?I.selection():I;N.property("__zoom",oa),I!==N?iA(I,X,F,x):N.interrupt().each(function(){Z(this,arguments).event(x).start().zoom(null,typeof X=="function"?X.apply(this,arguments):X).end()})},M.scaleBy=function(I,X,F,x){M.scaleTo(I,function(){return this.__zoom.k*(typeof X=="function"?X.apply(this,arguments):X)},F,x)},M.scaleTo=function(I,X,F,x){M.transform(I,function(){var N=A.apply(this,arguments),L=this.__zoom,O=F==null?P(N):typeof F=="function"?F.apply(this,arguments):F,J=L.invert(O),tA=typeof X=="function"?X.apply(this,arguments):X;return t(H(R(L,tA),O,J),N,u)},F,x)},M.translateBy=function(I,X,F,x){M.transform(I,function(){return t(this.__zoom.translate(typeof X=="function"?X.apply(this,arguments):X,typeof F=="function"?F.apply(this,arguments):F),A.apply(this,arguments),u)},null,x)},M.translateTo=function(I,X,F,x,N){M.transform(I,function(){var L=A.apply(this,arguments),O=this.__zoom,J=x==null?P(L):typeof x=="function"?x.apply(this,arguments):x;return t(Jt.translate(J[0],J[1]).scale(O.k).translate(typeof X=="function"?-X.apply(this,arguments):-X,typeof F=="function"?-F.apply(this,arguments):-F),L,u)},x,N)};function R(I,X){return X=Math.max(a[0],Math.min(a[1],X)),X===I.k?I:new qe(X,I.x,I.y)}function H(I,X,F){var x=X[0]-F[0]*I.k,N=X[1]-F[1]*I.k;return x===I.x&&N===I.y?I:new qe(I.k,x,N)}function P(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function iA(I,X,F,x){I.on("start.zoom",function(){Z(this,arguments).event(x).start()}).on("interrupt.zoom end.zoom",function(){Z(this,arguments).event(x).end()}).tween("zoom",function(){var N=this,L=arguments,O=Z(N,L).event(x),J=A.apply(N,L),tA=F==null?P(J):typeof F=="function"?F.apply(N,L):F,dA=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),UA=N.__zoom,G=typeof X=="function"?X.apply(N,L):X,Y=h(UA.invert(tA).concat(dA/UA.k),G.invert(tA).concat(dA/G.k));return function($){if($===1)$=G;else{var oA=Y($),BA=dA/oA[2];$=new qe(BA,tA[0]-oA[0]*BA,tA[1]-oA[1]*BA)}O.zoom(null,$)}})}function Z(I,X,F){return!F&&I.__zooming||new aA(I,X)}function aA(I,X){this.that=I,this.args=X,this.active=0,this.sourceEvent=null,this.extent=A.apply(I,X),this.taps=0}aA.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,X){return this.mouse&&I!=="mouse"&&(this.mouse[1]=X.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=X.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=X.invert(this.touch1[0])),this.that.__zoom=X,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var X=Le(this.that).datum();g.call(I,this.that,new Ih(I,{sourceEvent:this.sourceEvent,target:M,type:I,transform:this.that.__zoom,dispatch:g}),X)}};function lA(I,...X){if(!e.apply(this,arguments))return;var F=Z(this,X).event(I),x=this.__zoom,N=Math.max(a[0],Math.min(a[1],x.k*Math.pow(2,n.apply(this,arguments)))),L=Ke(I);if(F.wheel)(F.mouse[0][0]!==L[0]||F.mouse[0][1]!==L[1])&&(F.mouse[1]=x.invert(F.mouse[0]=L)),clearTimeout(F.wheel);else{if(x.k===N)return;F.mouse=[L,x.invert(L)],Qr(this),F.start()}_n(I),F.wheel=setTimeout(O,Q),F.zoom("mouse",t(H(R(x,N),F.mouse[0],F.mouse[1]),F.extent,u));function O(){F.wheel=null,F.end()}}function rA(I,...X){if(m||!e.apply(this,arguments))return;var F=I.currentTarget,x=Z(this,X,!0).event(I),N=Le(I.view).on("mousemove.zoom",tA,!0).on("mouseup.zoom",dA,!0),L=Ke(I,F),O=I.clientX,J=I.clientY;_s(I.view),ni(I),x.mouse=[L,this.__zoom.invert(L)],Qr(this),x.start();function tA(UA){if(_n(UA),!x.moved){var G=UA.clientX-O,Y=UA.clientY-J;x.moved=G*G+Y*Y>U}x.event(UA).zoom("mouse",t(H(x.that.__zoom,x.mouse[0]=Ke(UA,F),x.mouse[1]),x.extent,u))}function dA(UA){N.on("mousemove.zoom mouseup.zoom",null),Ss(UA.view,x.moved),_n(UA),x.event(UA).end()}}function nA(I,...X){if(e.apply(this,arguments)){var F=this.__zoom,x=Ke(I.changedTouches?I.changedTouches[0]:I,this),N=F.invert(x),L=F.k*(I.shiftKey?.5:2),O=t(H(R(F,L),x,N),A.apply(this,X),u);_n(I),d>0?Le(this).transition().duration(d).call(iA,O,x,I):Le(this).call(M.transform,O,x,I)}}function j(I,...X){if(e.apply(this,arguments)){var F=I.touches,x=F.length,N=Z(this,X,I.changedTouches.length===x).event(I),L,O,J,tA;for(ni(I),O=0;O<x;++O)J=F[O],tA=Ke(J,this),tA=[tA,this.__zoom.invert(tA),J.identifier],N.touch0?!N.touch1&&N.touch0[2]!==tA[2]&&(N.touch1=tA,N.taps=0):(N.touch0=tA,L=!0,N.taps=1+!!B);B&&(B=clearTimeout(B)),L&&(N.taps<2&&(w=tA[0],B=setTimeout(function(){B=null},y)),Qr(this),N.start())}}function S(I,...X){if(this.__zooming){var F=Z(this,X).event(I),x=I.changedTouches,N=x.length,L,O,J,tA;for(_n(I),L=0;L<N;++L)O=x[L],J=Ke(O,this),F.touch0&&F.touch0[2]===O.identifier?F.touch0[0]=J:F.touch1&&F.touch1[2]===O.identifier&&(F.touch1[0]=J);if(O=F.that.__zoom,F.touch1){var dA=F.touch0[0],UA=F.touch0[1],G=F.touch1[0],Y=F.touch1[1],$=($=G[0]-dA[0])*$+($=G[1]-dA[1])*$,oA=(oA=Y[0]-UA[0])*oA+(oA=Y[1]-UA[1])*oA;O=R(O,Math.sqrt($/oA)),J=[(dA[0]+G[0])/2,(dA[1]+G[1])/2],tA=[(UA[0]+Y[0])/2,(UA[1]+Y[1])/2]}else if(F.touch0)J=F.touch0[0],tA=F.touch0[1];else return;F.zoom("touch",t(H(O,J,tA),F.extent,u))}}function eA(I,...X){if(this.__zooming){var F=Z(this,X).event(I),x=I.changedTouches,N=x.length,L,O;for(ni(I),m&&clearTimeout(m),m=setTimeout(function(){m=null},y),L=0;L<N;++L)O=x[L],F.touch0&&F.touch0[2]===O.identifier?delete F.touch0:F.touch1&&F.touch1[2]===O.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(O=Ke(O,this),Math.hypot(w[0]-O[0],w[1]-O[1])<T)){var J=Le(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return M.wheelDelta=function(I){return arguments.length?(n=typeof I=="function"?I:Er(+I),M):n},M.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Er(!!I),M):e},M.touchable=function(I){return arguments.length?(o=typeof I=="function"?I:Er(!!I),M):o},M.extent=function(I){return arguments.length?(A=typeof I=="function"?I:Er([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),M):A},M.scaleExtent=function(I){return arguments.length?(a[0]=+I[0],a[1]=+I[1],M):[a[0],a[1]]},M.translateExtent=function(I){return arguments.length?(u[0][0]=+I[0][0],u[1][0]=+I[1][0],u[0][1]=+I[0][1],u[1][1]=+I[1][1],M):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},M.constrain=function(I){return arguments.length?(t=I,M):t},M.duration=function(I){return arguments.length?(d=+I,M):d},M.interpolate=function(I){return arguments.length?(h=I,M):h},M.on=function(){var I=g.on.apply(g,arguments);return I===g?M:I},M.clickDistance=function(I){return arguments.length?(U=(I=+I)*I,M):Math.sqrt(U)},M.tapDistance=function(I){return arguments.length?(T=+I,M):T},M}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),ri=(e=>(e.Partial="partial",e.Full="full",e))(ri||{}),Nt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Nt||{}),At=(e=>(e.Strict="strict",e.Loose="loose",e))(At||{}),et=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(et||{}),Sn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(Sn||{}),ia=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(ia||{}),kh=["INPUT","SELECT","TEXTAREA"],Th=typeof document<"u"?document:null;function oi(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,o=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return kh.includes(n?.nodeName)||o||!!a}function Mh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function sa(e,A,t,n){const o=A.replace("+",`
|
|
1
|
+
(function(te,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],r):(te=typeof globalThis<"u"?globalThis:te||self,r(te.DuiUI={},te.Vue,te.SimCodeUI))})(this,function(te,r,me){Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Cu=Object.create,nr=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,vu=Object.getOwnPropertyNames,Qu=Object.getPrototypeOf,Eu=Object.prototype.hasOwnProperty,Fu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Uu=(e,A)=>{let t={};for(var n in e)nr(t,n,{get:e[n],enumerable:!0});return A||nr(t,Symbol.toStringTag,{value:"Module"}),t},Io=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var o=vu(A),a=0,u=o.length,d;a<u;a++)d=o[a],!Eu.call(e,d)&&d!==t&&nr(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=yu(A,d))||n.enumerable});return e},bu=(e,A,t)=>(Io(e,A,"default"),t&&Io(t,A,"default")),is=(e,A,t)=>(t=e!=null?Cu(Qu(e)):{},Io(A||!e||!e.__esModule?nr(t,"default",{value:e,enumerable:!0}):t,e));r=is(r,1);var dt=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),ft=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},mn=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(mn);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=mn(e[t]));return A},Hu=e=>{if(Array.isArray(e))e.length=0;else if(e&&typeof e=="object")for(const A in e)Object.prototype.hasOwnProperty.call(e,A)&&delete e[A]},_o={},Iu=(e,A,t)=>{t[e]=t[e]||{};const n=ft();return t[e][n]=A,n},_u=(e,A,t)=>{const n=[],o=t[e]||{};return Object.keys(o).forEach(a=>{const u=o[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},Su=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ss=(e,A)=>Iu(e,A,_o),ne=(e,A)=>_u(e,A,_o),xu=(e,A)=>{Su(e,A,_o)},as=(e,A,t,n,o,a)=>{const u=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:y,getParentComponents:Q,removeComponentFromContainer:U,addComponentToContainer:T,copyComponent:M,activedComponent:R,top:H}=(0,r.inject)("d-drag-design-provide",{}),P=[],iA=(0,r.ref)(!1),Z=(0,r.ref)(!1),aA=(0,r.ref)(!1),lA=(0,r.ref)(!1),rA=(0,r.ref)(!1),nA={id:"",type:""},j=(0,r.ref)(!1),S=(0,r.ref)(!1);let eA="",I=null;const X=$=>{if(eA===$)return I;eA=$;const{top:oA,left:BA,width:wA,height:bA}=e.value.getBoundingClientRect();return I=[{x:BA,y:oA},{x:BA+wA,y:oA},{x:BA+wA,y:oA+bA},{x:BA,y:oA+bA}],I},F=($,oA,BA)=>{let wA=oA-BA[0].y;wA<0&&(wA=-wA);let bA=oA-BA[3].y;bA<0&&(bA=-bA);let uA=$-BA[0].x;uA<0&&(uA=-uA);let hA=$-BA[1].x;return hA<0&&(hA=-hA),{ly:wA>bA?bA:wA,typey:wA>bA?"bottom":"top",lx:uA>hA?hA:uA,lallx:uA+hA}},x=($,oA,BA)=>$>=BA[0].x&&$<=BA[1].x&&oA>=BA[0].y&&oA<=BA[3].y,N=()=>{if(o){ne("dragClick",{id:u});return}if(!Z.value){if(g(u),d!==0){const $=e.value.getBoundingClientRect(),oA=h();$.top-oA.top<22?lA.value=!0:lA.value=!1}Z.value=!0,ne("dragClick",{id:u})}},L=$=>{const oA=y($);oA&&(0,r.nextTick)(()=>{ne("dragClick",{id:oA})})},O=()=>{nA.id="",nA.type="",d===0&&(rA.value=!1)},J=()=>{ne("mouseEnterOrLeave",{id:u,type:"enter"})},tA=()=>{ne("mouseEnterOrLeave",{id:u,type:"leave"})},dA=$=>{ne("dragClick",{id:$})},UA={mouseEnterOrLeave:({id:$,type:oA})=>{oA==="enter"?P.push($):P.length>0&&P.splice(P.length-1,1);const BA=P.length;BA>0&&u===P[BA-1]?iA.value=!0:iA.value=!1},dragAciveChild:({type:$,id:oA})=>{oA===u?$==="top"?(j.value=!0,S.value=!1):(S.value=!0,j.value=!1):(S.value=!1,j.value=!1)},dragClick({id:$,isAgain:oA}){$!==u?Z.value=!1:(oA&&(Z.value=!1),N())}};UA[`dragGetChildDistance_${u}`]=({dragX:$,dragY:oA,moveId:BA})=>F($,oA,X(BA));const G={isInContainer({x:$,y:oA,id:BA,moveId:wA}){if(u===BA||w(BA,u))return aA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const bA=X(wA);if(x($,oA,bA))return d===0&&(rA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:uA,lx:hA}=F($,oA,bA);if(uA<20&&hA<20)return rA.value=!0,{isIn:!0,level:d,id:u,groupId:a};rA.value=!1}return aA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:$,containerGroupId:oA,dragX:BA,dragY:wA,moveId:bA})=>{if($===u&&oA===a)if(aA.value=!0,n&&n.value.length>0){let uA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(hA=>{if(a&&hA.groupId!==a)return;const _=ne(`dragGetChildDistance_${hA.id}`,{dragX:BA,dragY:wA,moveId:bA})[0];_&&(uA.ly>_.ly||uA.ly===_.ly&&(uA.lx>_.lx||uA.lx===_.lx&&uA.lallx>_.lallx))&&(uA=_,uA.id=hA.id)}),nA.id=uA.id,nA.type=uA.typey,ne("dragAciveChild",{id:uA.id,type:uA.typey})}else ne("dragAciveChild",{id:""});else aA.value=!1},dragAdd:$=>{if(aA.value){let oA=n?.value.length||0;nA.id!==""&&nA.id!==void 0&&(oA=n?.value.findIndex(BA=>BA.id===nA.id)||0,nA.type==="bottom"&&(oA+=1)),m($,u,oA,a),aA.value=!1}O()},dragAddByClick:$=>{if(!R.value&&u===H.id||R.value?.id===u||R.value?.containerId===u&&R.value?.dragType!=="container"){const oA=m($,u,n?.value.length||0,a,!0);oA&&$.config&&Object.keys($.config).forEach(BA=>{oA.config[BA]=$.config[BA]})}},dragUpdate($){if(aA.value){const oA=B($);if(oA.level=d+1,nA.id!==oA.id){U(oA.containerId,$);let BA=n?.value.findIndex(wA=>wA.id===nA.id)||0;nA.type==="bottom"&&(BA+=1),T(oA,u,BA,a)}aA.value=!1,(0,r.nextTick)(()=>{ne("dragClick",{id:oA.id,isAgain:!0})})}O()}},Y={};return(0,r.onMounted)(()=>{(!o||t!=="container")&&Object.keys(UA).forEach($=>{Y[$]=ss($,UA[$])}),t==="container"&&Object.keys(G).forEach($=>{Y[$]=ss($,G[$])}),A.isNewAdd&&(0,r.nextTick)(()=>{N(),delete A.isNewAdd})}),(0,r.onUnmounted)(()=>{Object.keys(Y).forEach($=>{xu($,Y[$])})}),{onMouseenter:J,onMouseleave:tA,activeComponent:N,handleComponentClick:dA,deleteComponentByClick:L,copyComponent:M,getParentComponents:Q,isBottomToolBar:lA,isHover:iA,isSelect:Z,isToContainer:aA,isMoveingInTopLevel:rA,isTopActive:j,isBottomActive:S}},ls=(e,A)=>{const t={x:0,y:0,clientX:0,clientY:0,dragElement:null,dragElementId:"jcode-darg-move-id",toContainerLevel:-1,toContainerId:"",groupId:"",id:""};let n=!1;const o=(y,Q)=>{n!==!0&&(n=!0,setTimeout(()=>{y(),n=!1},Q))},a=(0,r.ref)(!1),u=(y,Q,U)=>{const T=document.createElement("div");return T.id=t.dragElementId,T.innerText=y,T.className="d-drag-move",T.style.top=`${Q}px`,T.style.left=`${U}px`,document.body.appendChild(T),T},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,ne("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?ne("dragAdd",e):ne("dragUpdate",e.id))},g=y=>{const{clientY:Q,clientX:U}=y;if(!t.dragElement){const T=Math.abs(t.x-U),M=Math.abs(t.y-Q);if(T<=1&&M<=1)return;a.value=!0,t.dragElement=u(e.name,Q-11,U-32)}t.dragElement.style.top=`${Q-11}px`,t.dragElement.style.left=`${U-32}px`,t.clientX=U,t.clientY=Q,o(()=>{if(!a.value)return;const T=ne("isInContainer",{x:U,y:Q,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",T.forEach(({level:M,id:R,isIn:H,groupId:P})=>{H&&t.toContainerLevel<M&&(t.toContainerLevel=M,t.toContainerId=R,t.groupId=P)}),t.toContainerId!==""?ne("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:U,dragY:Q,moveId:t.id}):ne("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:y=>{t.x=y.clientX,t.y=y.clientY,t.id=ft(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{ne("dragAddByClick",e)},moveActive:a}},Du={class:"d-drag-btns-pname"},Nu={key:0,class:"d-drag-mask"},Lu=(0,r.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,r.ref)(),{onMouseenter:n,onMouseleave:o,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:h,getParentComponents:g,isHover:B,isSelect:w,isTopActive:m,isBottomActive:y,isBottomToolBar:Q}=as(t,A.componentData,"component"),{onContextmenu:U,onMousedown:T,moveActive:M}=ls(A.componentData,!1);return(R,H)=>{const P=(0,r.resolveComponent)("j-button"),iA=(0,r.resolveComponent)("el-space");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-drag-component",{selected:(0,r.unref)(w),hovered:(0,r.unref)(B),isBottomToolBar:(0,r.unref)(Q),active:(0,r.unref)(M),isTopActive:(0,r.unref)(m),isBottomActive:(0,r.unref)(y)}])},[H[11]||(H[11]=(0,r.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,r.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:H[4]||(H[4]=(...Z)=>(0,r.unref)(n)&&(0,r.unref)(n)(...Z)),onMouseleave:H[5]||(H[5]=(...Z)=>(0,r.unref)(o)&&(0,r.unref)(o)(...Z))},[(0,r.createVNode)(iA,{size:4},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,r.createElementVNode)("div",Du,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(g)(e.componentData.containerId),Z=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Z.id},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",label:Z.name,onClick:aA=>(0,r.unref)(u)(Z.id)},null,8,["label","onClick"])]))),128))])]),(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:H[0]||(H[0]=(0,r.withModifiers)(Z=>(0,r.unref)(h)(e.componentData.id),["stop"]))}),(0,r.createElementVNode)("div",{onContextmenu:H[1]||(H[1]=(0,r.withModifiers)((...Z)=>(0,r.unref)(U)&&(0,r.unref)(U)(...Z),["stop"])),onMousedown:H[2]||(H[2]=(0,r.withModifiers)((...Z)=>(0,r.unref)(T)&&(0,r.unref)(T)(...Z),["stop"])),style:{display:"flex"}},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,r.createVNode)(P,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:H[3]||(H[3]=(0,r.withModifiers)(Z=>(0,r.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,r.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:H[6]||(H[6]=(0,r.withModifiers)((...Z)=>(0,r.unref)(a)&&(0,r.unref)(a)(...Z),["stop"])),onContextmenu:H[7]||(H[7]=(0,r.withModifiers)((...Z)=>(0,r.unref)(U)&&(0,r.unref)(U)(...Z),["stop"])),onMousedown:H[8]||(H[8]=(0,r.withModifiers)((...Z)=>(0,r.unref)(T)&&(0,r.unref)(T)(...Z),["stop"])),onMouseenter:H[9]||(H[9]=(...Z)=>(0,r.unref)(n)&&(0,r.unref)(n)(...Z)),onMouseleave:H[10]||(H[10]=(...Z)=>(0,r.unref)(o)&&(0,r.unref)(o)(...Z))},[(0,r.renderSlot)(R.$slots,"default"),e.isContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Nu))],544)],2)}}}),So=Lu,ku=(0,r.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ls(e.config??{name:"",id:""},!0);return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,r.withModifiers)((...u)=>(0,r.unref)(n)&&(0,r.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,r.withModifiers)((...u)=>(0,r.unref)(A)&&(0,r.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,r.withModifiers)((...u)=>(0,r.unref)(t)&&(0,r.unref)(t)(...u),["stop"]))},[(0,r.renderSlot)(o.$slots,"default")],32))}}),xo=ku,Tu={key:0,class:"d-drag-line"},Mu={key:1,class:"d-drag-btns"},Ou=(0,r.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,r.ref)(),n=(0,r.computed)(()=>A.componentData?.children||[]),{onMouseenter:o,onMouseleave:a,activeComponent:u,isHover:d,isSelect:h,isToContainer:g,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=as(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),y=(0,r.computed)(()=>!!(n.value.findIndex(Q=>Q.groupId===A.groupId)===-1&&g.value));return(Q,U)=>{const T=(0,r.resolveComponent)("j-button");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,r.normalizeClass)(["d-drag-container",{selected:(0,r.unref)(h)&&!e.isComponentContainer,hovered:(0,r.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:y.value,isMoveingInTopLevel:(0,r.unref)(B),isTopActive:(0,r.unref)(w),isBottomActive:(0,r.unref)(m)}])},[e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Tu)),e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Mu,[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(T,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,r.createElementVNode)("div",{class:"d-drag-body",onClick:U[0]||(U[0]=(0,r.withModifiers)((...M)=>(0,r.unref)(u)&&(0,r.unref)(u)(...M),["stop"])),onMouseenter:U[1]||(U[1]=(...M)=>(0,r.unref)(o)&&(0,r.unref)(o)(...M)),onMouseleave:U[2]||(U[2]=(...M)=>(0,r.unref)(a)&&(0,r.unref)(a)(...M))},[(0,r.renderSlot)(Q.$slots,"default")],32)],2)}}}),Do=Ou,Ku=(0,r.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{});return(t,n)=>{const o=(0,r.resolveComponent)("el-col");return(0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:a.id},[a.type!="pkey"?((0,r.openBlock)(),(0,r.createBlock)(o,{key:0,span:a.config.span||24},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(So,{"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["is-container","component-data"])]),_:2},1032,["span"])):(0,r.createCommentVNode)("",!0)],64))),128)}}}),No=Ku,Ru=(0,r.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,o)=>((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createBlock)(So,{key:a.id,style:(0,r.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Lo=Ru,cs=dt(So,[xo,Do,No,Lo]);function wn(e){return(0,r.getCurrentScope)()?((0,r.onScopeDispose)(e),!0):!1}function Je(e){return typeof e=="function"?e():(0,r.unref)(e)}var Vu=typeof window<"u"&&typeof document<"u",Pu=e=>typeof e<"u",Gu=Object.prototype.toString,zu=e=>Gu.call(e)==="[object Object]",Xu=()=>{};function $u(e,A){function t(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(o).catch(a)})}return t}var us=e=>e();function Wu(e=us){const A=(0,r.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const o=(...a)=>{A.value&&e(...a)};return{isActive:(0,r.readonly)(A),pause:t,resume:n,eventFilter:o}}function ds(e,A=!1,t="Timeout"){return new Promise((n,o)=>{setTimeout(A?()=>o(t):n,e)})}function Yu(e,A,t={}){const{eventFilter:n=us,...o}=t;return(0,r.watch)(e,$u(n,A),o)}function zt(e,A,t={}){const{eventFilter:n,...o}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=Wu(n);return{stop:Yu(e,A,{...o,eventFilter:a}),pause:u,resume:d,isActive:h}}function Ju(e,A={}){if(!(0,r.isRef)(e))return(0,r.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,r.customRef)(()=>({get(){return e.value[n]},set(o){var a;if((a=Je(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=o,e.value=u}else{const u={...e.value,[n]:o};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=o}}));return t}function ko(e,A=!1){function t(w,{flush:m="sync",deep:y=!1,timeout:Q,throwOnTimeout:U}={}){let T=null;const M=[new Promise(R=>{T=(0,r.watch)(e,H=>{w(H)!==A&&(T?.(),R(H))},{flush:m,deep:y,immediate:!0})})];return Q!=null&&M.push(ds(Q,U).then(()=>Je(e)).finally(()=>T?.())),Promise.race(M)}function n(w,m){if(!(0,r.isRef)(w))return t(H=>H===w,m);const{flush:y="sync",deep:Q=!1,timeout:U,throwOnTimeout:T}=m??{};let M=null;const R=[new Promise(H=>{M=(0,r.watch)([e,w],([P,iA])=>{A!==(P===iA)&&(M?.(),H(P))},{flush:y,deep:Q,immediate:!0})})];return U!=null&&R.push(ds(U,T).then(()=>Je(e)).finally(()=>(M?.(),Je(e)))),Promise.race(R)}function o(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function u(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function h(w,m){return t(y=>{const Q=Array.from(y);return Q.includes(w)||Q.includes(Je(w))},m)}function g(w){return B(1,w)}function B(w=1,m){let y=-1;return t(()=>(y+=1,y>=w),m)}return Array.isArray(Je(e))?{toMatch:t,toContains:h,changed:g,changedTimes:B,get not(){return ko(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:o,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return ko(e,!A)}}}function To(e){return ko(e)}function Zu(e){var A;const t=Je(e);return(A=t?.$el)!=null?A:t}var fs=Vu?window:void 0;function gs(...e){let A,t,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,o]=e,A=fs):[A,t,n,o]=e,!A)return Xu;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(B=>B()),a.length=0},d=(B,w,m,y)=>(B.addEventListener(w,m,y),()=>B.removeEventListener(w,m,y)),h=(0,r.watch)(()=>[Zu(A),Je(o)],([B,w])=>{if(u(),!B)return;const m=zu(w)?{...w}:w;a.push(...t.flatMap(y=>n.map(Q=>d(B,y,Q,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return wn(g),g}function ju(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function hs(...e){let A,t,n={};e.length===3?(A=e[0],t=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(A=!0,t=e[0],n=e[1]):(A=e[0],t=e[1]):(A=!0,t=e[0]);const{target:o=fs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=ju(A);return gs(o,a,B=>{B.repeat&&Je(d)||h(B)&&t(B)},u)}function qu(e){return JSON.parse(JSON.stringify(e))}function Mo(e,A,t,n={}){var o,a,u;const{clone:d=!1,passive:h=!1,eventName:g,deep:B=!1,defaultValue:w,shouldEmit:m}=n,y=(0,r.getCurrentInstance)(),Q=t||y?.emit||((o=y?.$emit)==null?void 0:o.bind(y))||((u=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(y?.proxy));let U=g;A||(A="modelValue"),U=U||`update:${A.toString()}`;const T=H=>d?typeof d=="function"?d(H):qu(H):H,M=()=>Pu(e[A])?T(e[A]):w,R=H=>{m?m(H)&&Q(U,H):Q(U,H)};if(h){const H=(0,r.ref)(M());let P=!1;return(0,r.watch)(()=>e[A],iA=>{P||(P=!0,H.value=T(iA),(0,r.nextTick)(()=>P=!1))}),(0,r.watch)(H,iA=>{!P&&(iA!==e[A]||B)&&R(iA)},{deep:B}),H}else return(0,r.computed)({get(){return M()},set(H){R(H)}})}var Ad={value:()=>{}};function rr(){for(var e=0,A=arguments.length,t={},n;e<A;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new or(t)}function or(e){this._=e}function ed(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}or.prototype=rr.prototype={constructor:or,on:function(e,A){var t=this._,n=ed(e+"",t),o,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((o=(e=n[a]).type)&&(o=td(t[o],e.name)))return o;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(o=(e=n[a]).type)t[o]=Bs(t[o],e.name,A);else if(A==null)for(o in t)t[o]=Bs(t[o],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new or(e)},call:function(e,A){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,a;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,o=a.length;n<o;++n)a[n].value.apply(A,t)},apply:function(e,A,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,a=n.length;o<a;++o)n[o].value.apply(A,t)}};function td(e,A){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===A)return o.value}function Bs(e,A,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===A){e[n]=Ad,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var Oo="http://www.w3.org/1999/xhtml",ps={svg:"http://www.w3.org/2000/svg",xhtml:Oo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ir(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),ps.hasOwnProperty(A)?{space:ps[A],local:e}:e}function nd(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===Oo&&A.documentElement.namespaceURI===Oo?A.createElement(e):A.createElementNS(t,e)}}function rd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ms(e){var A=ir(e);return(A.local?rd:nd)(A)}function od(){}function Ko(e){return e==null?od:function(){return this.querySelector(e)}}function id(e){typeof e!="function"&&(e=Ko(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=new Array(u),h,g,B=0;B<u;++B)(h=a[B])&&(g=e.call(h,h.__data__,B,a))&&("__data__"in h&&(g.__data__=h.__data__),d[B]=g);return new Ue(n,this._parents)}function sd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ad(){return[]}function ws(e){return e==null?ad:function(){return this.querySelectorAll(e)}}function ld(e){return function(){return sd(e.apply(this,arguments))}}function cd(e){typeof e=="function"?e=ld(e):e=ws(e);for(var A=this._groups,t=A.length,n=[],o=[],a=0;a<t;++a)for(var u=A[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&(n.push(e.call(h,h.__data__,g,u)),o.push(h));return new Ue(n,o)}function Cs(e){return function(){return this.matches(e)}}function ys(e){return function(A){return A.matches(e)}}var ud=Array.prototype.find;function dd(e){return function(){return ud.call(this.children,e)}}function fd(){return this.firstElementChild}function gd(e){return this.select(e==null?fd:dd(typeof e=="function"?e:ys(e)))}var hd=Array.prototype.filter;function Bd(){return Array.from(this.children)}function pd(e){return function(){return hd.call(this.children,e)}}function md(e){return this.selectAll(e==null?Bd:pd(typeof e=="function"?e:ys(e)))}function wd(e){typeof e!="function"&&(e=Cs(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Ue(n,this._parents)}function vs(e){return new Array(e.length)}function Cd(){return new Ue(this._enter||this._groups.map(vs),this._parents)}function sr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}sr.prototype={constructor:sr,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,A){return this._parent.insertBefore(e,A)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function yd(e){return function(){return e}}function vd(e,A,t,n,o,a){for(var u=0,d,h=A.length,g=a.length;u<g;++u)(d=A[u])?(d.__data__=a[u],n[u]=d):t[u]=new sr(e,a[u]);for(;u<h;++u)(d=A[u])&&(o[u]=d)}function Qd(e,A,t,n,o,a,u){var d,h,g=new Map,B=A.length,w=a.length,m=new Array(B),y;for(d=0;d<B;++d)(h=A[d])&&(m[d]=y=u.call(h,h.__data__,d,A)+"",g.has(y)?o[d]=h:g.set(y,h));for(d=0;d<w;++d)y=u.call(e,a[d],d,a)+"",(h=g.get(y))?(n[d]=h,h.__data__=a[d],g.delete(y)):t[d]=new sr(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(o[d]=h)}function Ed(e){return e.__data__}function Fd(e,A){if(!arguments.length)return Array.from(this,Ed);var t=A?Qd:vd,n=this._parents,o=this._groups;typeof e!="function"&&(e=yd(e));for(var a=o.length,u=new Array(a),d=new Array(a),h=new Array(a),g=0;g<a;++g){var B=n[g],w=o[g],m=w.length,y=Ud(e.call(B,B&&B.__data__,g,n)),Q=y.length,U=d[g]=new Array(Q),T=u[g]=new Array(Q);t(B,w,U,T,h[g]=new Array(m),y,A);for(var M=0,R=0,H,P;M<Q;++M)if(H=U[M]){for(M>=R&&(R=M+1);!(P=T[R])&&++R<Q;);H._next=P||null}}return u=new Ue(u,n),u._enter=d,u._exit=h,u}function Ud(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bd(){return new Ue(this._exit||this._groups.map(vs),this._parents)}function Hd(e,A,t){var n=this.enter(),o=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(o=A(o),o&&(o=o.selection())),t==null?a.remove():t(a),n&&o?n.merge(o).order():o}function Id(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,o=t.length,a=n.length,u=Math.min(o,a),d=new Array(o),h=0;h<u;++h)for(var g=t[h],B=n[h],w=g.length,m=d[h]=new Array(w),y,Q=0;Q<w;++Q)(y=g[Q]||B[Q])&&(m[Q]=y);for(;h<o;++h)d[h]=t[h];return new Ue(d,this._parents)}function _d(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],o=n.length-1,a=n[o],u;--o>=0;)(u=n[o])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function Sd(e){e||(e=xd);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,h=o[a]=new Array(d),g,B=0;B<d;++B)(g=u[B])&&(h[B]=g);h.sort(A)}return new Ue(o,this._parents).order()}function xd(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Dd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Nd(){return Array.from(this)}function Ld(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length;o<a;++o){var u=n[o];if(u)return u}return null}function kd(){let e=0;for(const A of this)++e;return e}function Td(){return!this.node()}function Md(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var o=A[t],a=0,u=o.length,d;a<u;++a)(d=o[a])&&e.call(d,d.__data__,a,o);return this}function Od(e){return function(){this.removeAttribute(e)}}function Kd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rd(e,A){return function(){this.setAttribute(e,A)}}function Vd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Pd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Gd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function zd(e,A){var t=ir(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((A==null?t.local?Kd:Od:typeof A=="function"?t.local?Gd:Pd:t.local?Vd:Rd)(t,A))}function Qs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Xd(e){return function(){this.style.removeProperty(e)}}function $d(e,A,t){return function(){this.style.setProperty(e,A,t)}}function Wd(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function Yd(e,A,t){return arguments.length>1?this.each((A==null?Xd:typeof A=="function"?Wd:$d)(e,A,t??"")):Xt(this.node(),e)}function Xt(e,A){return e.style.getPropertyValue(A)||Qs(e).getComputedStyle(e,null).getPropertyValue(A)}function Jd(e){return function(){delete this[e]}}function Zd(e,A){return function(){this[e]=A}}function jd(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function qd(e,A){return arguments.length>1?this.each((A==null?Jd:typeof A=="function"?jd:Zd)(e,A)):this.node()[e]}function Es(e){return e.trim().split(/^|\s+/)}function Ro(e){return e.classList||new Fs(e)}function Fs(e){this._node=e,this._names=Es(e.getAttribute("class")||"")}Fs.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var A=this._names.indexOf(e);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Us(e,A){for(var t=Ro(e),n=-1,o=A.length;++n<o;)t.add(A[n])}function bs(e,A){for(var t=Ro(e),n=-1,o=A.length;++n<o;)t.remove(A[n])}function Af(e){return function(){Us(this,e)}}function ef(e){return function(){bs(this,e)}}function tf(e,A){return function(){(A.apply(this,arguments)?Us:bs)(this,e)}}function nf(e,A){var t=Es(e+"");if(arguments.length<2){for(var n=Ro(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof A=="function"?tf:A?Af:ef)(t,A))}function rf(){this.textContent=""}function of(e){return function(){this.textContent=e}}function sf(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function af(e){return arguments.length?this.each(e==null?rf:(typeof e=="function"?sf:of)(e)):this.node().textContent}function lf(){this.innerHTML=""}function cf(e){return function(){this.innerHTML=e}}function uf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function df(e){return arguments.length?this.each(e==null?lf:(typeof e=="function"?uf:cf)(e)):this.node().innerHTML}function ff(){this.nextSibling&&this.parentNode.appendChild(this)}function gf(){return this.each(ff)}function hf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bf(){return this.each(hf)}function pf(e){var A=typeof e=="function"?e:ms(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function mf(){return null}function wf(e,A){var t=typeof e=="function"?e:ms(e),n=A==null?mf:typeof A=="function"?A:Ko(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Cf(){var e=this.parentNode;e&&e.removeChild(this)}function yf(){return this.each(Cf)}function vf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Qf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Ef(e){return this.select(e?Qf:vf)}function Ff(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Uf(e){return function(A){e.call(this,A,this.__data__)}}function bf(e){return e.trim().split(/^|\s+/).map(function(A){var t="",n=A.indexOf(".");return n>=0&&(t=A.slice(n+1),A=A.slice(0,n)),{type:A,name:t}})}function Hf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,o=A.length,a;t<o;++t)a=A[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):A[++n]=a;++n?A.length=n:delete this.__on}}}function If(e,A,t){return function(){var n=this.__on,o,a=Uf(A);if(n){for(var u=0,d=n.length;u<d;++u)if((o=n[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=t),o.value=A;return}}this.addEventListener(e.type,a,t),o={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(o):this.__on=[o]}}function _f(e,A,t){var n=bf(e+""),o,a=n.length,u;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,g=d.length,B;h<g;++h)for(o=0,B=d[h];o<a;++o)if((u=n[o]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?If:Hf,o=0;o<a;++o)this.each(d(n[o],A,t));return this}function Hs(e,A,t){var n=Qs(e),o=n.CustomEvent;typeof o=="function"?o=new o(A,t):(o=n.document.createEvent("Event"),t?(o.initEvent(A,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(A,!1,!1)),e.dispatchEvent(o)}function Sf(e,A){return function(){return Hs(this,e,A)}}function xf(e,A){return function(){return Hs(this,e,A.apply(this,arguments))}}function Df(e,A){return this.each((typeof A=="function"?xf:Sf)(e,A))}function*Nf(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length,u;o<a;++o)(u=n[o])&&(yield u)}var Is=[null];function Ue(e,A){this._groups=e,this._parents=A}function Cn(){return new Ue([[document.documentElement]],Is)}function Lf(){return this}Ue.prototype=Cn.prototype={constructor:Ue,select:id,selectAll:cd,selectChild:gd,selectChildren:md,filter:wd,data:Fd,enter:Cd,exit:bd,join:Hd,merge:Id,selection:Lf,order:_d,sort:Sd,call:Dd,nodes:Nd,node:Ld,size:kd,empty:Td,each:Md,attr:zd,style:Yd,property:qd,classed:nf,text:af,html:df,raise:gf,lower:Bf,append:pf,insert:wf,remove:yf,clone:Ef,datum:Ff,on:_f,dispatch:Df,[Symbol.iterator]:Nf};function Le(e){return typeof e=="string"?new Ue([[document.querySelector(e)]],[document.documentElement]):new Ue([[e]],Is)}function kf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Ke(e,A){if(e=kf(e),A===void 0&&(A=e.currentTarget),A){var t=A.ownerSVGElement||A;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(A.getScreenCTM().inverse()),[n.x,n.y]}if(A.getBoundingClientRect){var o=A.getBoundingClientRect();return[e.clientX-o.left-A.clientLeft,e.clientY-o.top-A.clientTop]}}return[e.pageX,e.pageY]}var Tf={passive:!1},yn={capture:!0,passive:!1};function Vo(e){e.stopImmediatePropagation()}function $t(e){e.preventDefault(),e.stopImmediatePropagation()}function _s(e){var A=e.document.documentElement,t=Le(e).on("dragstart.drag",$t,yn);"onselectstart"in A?t.on("selectstart.drag",$t,yn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Ss(e,A){var t=e.document.documentElement,n=Le(e).on("dragstart.drag",null);A&&(n.on("click.drag",$t,yn),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in t?n.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}var ar=e=>()=>e;function Po(e,{sourceEvent:A,subject:t,target:n,identifier:o,active:a,x:u,y:d,dx:h,dy:g,dispatch:B}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:B}})}Po.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Mf(e){return!e.ctrlKey&&!e.button}function Of(){return this.parentNode}function Kf(e,A){return A??{x:e.x,y:e.y}}function Rf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vf(){var e=Mf,A=Of,t=Kf,n=Rf,o={},a=rr("start","drag","end"),u=0,d,h,g,B,w=0;function m(P){P.on("mousedown.drag",y).filter(n).on("touchstart.drag",T).on("touchmove.drag",M,Tf).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(P,iA){if(!(B||!e.call(this,P,iA))){var Z=H(this,A.call(this,P,iA),P,iA,"mouse");Z&&(Le(P.view).on("mousemove.drag",Q,yn).on("mouseup.drag",U,yn),_s(P.view),Vo(P),g=!1,d=P.clientX,h=P.clientY,Z("start",P))}}function Q(P){if($t(P),!g){var iA=P.clientX-d,Z=P.clientY-h;g=iA*iA+Z*Z>w}o.mouse("drag",P)}function U(P){Le(P.view).on("mousemove.drag mouseup.drag",null),Ss(P.view,g),$t(P),o.mouse("end",P)}function T(P,iA){if(e.call(this,P,iA)){var Z=P.changedTouches,aA=A.call(this,P,iA),lA=Z.length,rA,nA;for(rA=0;rA<lA;++rA)(nA=H(this,aA,P,iA,Z[rA].identifier,Z[rA]))&&(Vo(P),nA("start",P,Z[rA]))}}function M(P){var iA=P.changedTouches,Z=iA.length,aA,lA;for(aA=0;aA<Z;++aA)(lA=o[iA[aA].identifier])&&($t(P),lA("drag",P,iA[aA]))}function R(P){var iA=P.changedTouches,Z=iA.length,aA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),aA=0;aA<Z;++aA)(lA=o[iA[aA].identifier])&&(Vo(P),lA("end",P,iA[aA]))}function H(P,iA,Z,aA,lA,rA){var nA=a.copy(),j=Ke(rA||Z,iA),S,eA,I;if((I=t.call(P,new Po("beforestart",{sourceEvent:Z,target:m,identifier:lA,active:u,x:j[0],y:j[1],dx:0,dy:0,dispatch:nA}),aA))!=null)return S=I.x-j[0]||0,eA=I.y-j[1]||0,function X(F,x,N){var L=j,O;switch(F){case"start":o[lA]=X,O=u++;break;case"end":delete o[lA],--u;case"drag":j=Ke(N||x,iA),O=u;break}nA.call(F,P,new Po(F,{sourceEvent:x,subject:I,target:m,identifier:lA,active:O,x:j[0]+S,y:j[1]+eA,dx:j[0]-L[0],dy:j[1]-L[1],dispatch:nA}),aA)}}return m.filter=function(P){return arguments.length?(e=typeof P=="function"?P:ar(!!P),m):e},m.container=function(P){return arguments.length?(A=typeof P=="function"?P:ar(P),m):A},m.subject=function(P){return arguments.length?(t=typeof P=="function"?P:ar(P),m):t},m.touchable=function(P){return arguments.length?(n=typeof P=="function"?P:ar(!!P),m):n},m.on=function(){var P=a.on.apply(a,arguments);return P===a?m:P},m.clickDistance=function(P){return arguments.length?(w=(P=+P)*P,m):Math.sqrt(w)},m}function Go(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function xs(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function vn(){}var Qn=.7,lr=1/Qn,Wt="\\s*([+-]?\\d+)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pf=/^#([0-9a-f]{3,8})$/,Gf=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),zf=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Xf=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${En}\\)$`),$f=new RegExp(`^rgba\\(${Re},${Re},${Re},${En}\\)$`),Wf=new RegExp(`^hsl\\(${En},${Re},${Re}\\)$`),Yf=new RegExp(`^hsla\\(${En},${Re},${Re},${En}\\)$`),Ds={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Go(vn,_t,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ns,formatHex:Ns,formatHex8:Jf,formatHsl:Zf,formatRgb:Ls,toString:Ls});function Ns(){return this.rgb().formatHex()}function Jf(){return this.rgb().formatHex8()}function Zf(){return Ks(this).formatHsl()}function Ls(){return this.rgb().formatRgb()}function _t(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Pf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?ks(A):t===3?new Ce(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?cr(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?cr(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|A&240,((A&15)<<4|A&15)/255):null):(A=Gf.exec(e))?new Ce(A[1],A[2],A[3],1):(A=zf.exec(e))?new Ce(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=Xf.exec(e))?cr(A[1],A[2],A[3],A[4]):(A=$f.exec(e))?cr(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=Wf.exec(e))?Os(A[1],A[2]/100,A[3]/100,1):(A=Yf.exec(e))?Os(A[1],A[2]/100,A[3]/100,A[4]):Ds.hasOwnProperty(e)?ks(Ds[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function ks(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function cr(e,A,t,n){return n<=0&&(e=A=t=NaN),new Ce(e,A,t,n)}function jf(e){return e instanceof vn||(e=_t(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function zo(e,A,t,n){return arguments.length===1?jf(e):new Ce(e,A,t,n??1)}function Ce(e,A,t,n){this.r=+e,this.g=+A,this.b=+t,this.opacity=+n}Go(Ce,zo,xs(vn,{brighter(e){return e=e==null?lr:Math.pow(lr,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qn:Math.pow(Qn,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(St(this.r),St(this.g),St(this.b),ur(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ts,formatHex:Ts,formatHex8:qf,formatRgb:Ms,toString:Ms}));function Ts(){return`#${xt(this.r)}${xt(this.g)}${xt(this.b)}`}function qf(){return`#${xt(this.r)}${xt(this.g)}${xt(this.b)}${xt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ms(){const e=ur(this.opacity);return`${e===1?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${e===1?")":`, ${e})`}`}function ur(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xt(e){return e=St(e),(e<16?"0":"")+e.toString(16)}function Os(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new ke(e,A,t,n)}function Ks(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof vn||(e=_t(e)),!e)return new ke;if(e instanceof ke)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,o=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-o,h=(a+o)/2;return d?(A===a?u=(t-n)/d+(t<n)*6:t===a?u=(n-A)/d+2:u=(A-t)/d+4,d/=h<.5?a+o:2-a-o,u*=60):d=h>0&&h<1?0:u,new ke(u,d,h,e.opacity)}function Ag(e,A,t,n){return arguments.length===1?Ks(e):new ke(e,A,t,n??1)}function ke(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}Go(ke,Ag,xs(vn,{brighter(e){return e=e==null?lr:Math.pow(lr,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qn:Math.pow(Qn,e),new ke(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,A=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*A,o=2*t-n;return new Ce(Xo(e>=240?e-240:e+120,o,n),Xo(e,o,n),Xo(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ke(Rs(this.h),dr(this.s),dr(this.l),ur(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ur(this.opacity);return`${e===1?"hsl(":"hsla("}${Rs(this.h)}, ${dr(this.s)*100}%, ${dr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Rs(e){return e=(e||0)%360,e<0?e+360:e}function dr(e){return Math.max(0,Math.min(1,e||0))}function Xo(e,A,t){return(e<60?A+(t-A)*e/60:e<180?t:e<240?A+(t-A)*(240-e)/60:A)*255}var $o=e=>()=>e;function eg(e,A){return function(t){return e+t*A}}function tg(e,A,t){return e=Math.pow(e,t),A=Math.pow(A,t)-e,t=1/t,function(n){return Math.pow(e+n*A,t)}}function ng(e){return(e=+e)==1?Vs:function(A,t){return t-A?tg(A,t,e):$o(isNaN(A)?t:A)}}function Vs(e,A){var t=A-e;return t?eg(e,t):$o(isNaN(e)?A:e)}var fr=(function e(A){var t=ng(A);function n(o,a){var u=t((o=zo(o)).r,(a=zo(a)).r),d=t(o.g,a.g),h=t(o.b,a.b),g=Vs(o.opacity,a.opacity);return function(B){return o.r=u(B),o.g=d(B),o.b=h(B),o.opacity=g(B),o+""}}return n.gamma=e,n})(1);function rg(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),o;return function(a){for(o=0;o<t;++o)n[o]=e[o]*(1-a)+A[o]*a;return n}}function og(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ig(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,o=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)o[u]=Fn(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=o[u](d);return a}}function sg(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function Ve(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function ag(e,A){var t={},n={},o;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(o in A)o in e?t[o]=Fn(e[o],A[o]):n[o]=A[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var Wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yo=new RegExp(Wo.source,"g");function lg(e){return function(){return e}}function cg(e){return function(A){return e(A)+""}}function Ps(e,A){var t=Wo.lastIndex=Yo.lastIndex=0,n,o,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=Wo.exec(e))&&(o=Yo.exec(A));)(a=o.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(o=o[0])?d[u]?d[u]+=o:d[++u]=o:(d[++u]=null,h.push({i:u,x:Ve(n,o)})),t=Yo.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?cg(h[0].x):lg(A):(A=h.length,function(g){for(var B=0,w;B<A;++B)d[(w=h[B]).i]=w.x(g);return d.join("")})}function Fn(e,A){var t=typeof A,n;return A==null||t==="boolean"?$o(A):(t==="number"?Ve:t==="string"?(n=_t(A))?(A=n,fr):Ps:A instanceof _t?fr:A instanceof Date?sg:og(A)?rg:Array.isArray(A)?ig:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?ag:Ve)(e,A)}var Gs=180/Math.PI,Jo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zs(e,A,t,n,o,a){var u,d,h;return(u=Math.sqrt(e*e+A*A))&&(e/=u,A/=u),(h=e*t+A*n)&&(t-=e*h,n-=A*h),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,h/=d),e*n<A*t&&(e=-e,A=-A,h=-h,u=-u),{translateX:o,translateY:a,rotate:Math.atan2(A,e)*Gs,skewX:Math.atan(h)*Gs,scaleX:u,scaleY:d}}var gr;function ug(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?Jo:zs(A.a,A.b,A.c,A.d,A.e,A.f)}function dg(e){return e==null||(gr||(gr=document.createElementNS("http://www.w3.org/2000/svg","g")),gr.setAttribute("transform",e),!(e=gr.transform.baseVal.consolidate()))?Jo:(e=e.matrix,zs(e.a,e.b,e.c,e.d,e.e,e.f))}function Xs(e,A,t,n){function o(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,y,Q){if(g!==w||B!==m){var U=y.push("translate(",null,A,null,t);Q.push({i:U-4,x:Ve(g,w)},{i:U-2,x:Ve(B,m)})}else(w||m)&&y.push("translate("+w+A+m+t)}function u(g,B,w,m){g!==B?(g-B>180?B+=360:B-g>180&&(g+=360),m.push({i:w.push(o(w)+"rotate(",null,n)-2,x:Ve(g,B)})):B&&w.push(o(w)+"rotate("+B+n)}function d(g,B,w,m){g!==B?m.push({i:w.push(o(w)+"skewX(",null,n)-2,x:Ve(g,B)}):B&&w.push(o(w)+"skewX("+B+n)}function h(g,B,w,m,y,Q){if(g!==w||B!==m){var U=y.push(o(y)+"scale(",null,",",null,")");Q.push({i:U-4,x:Ve(g,w)},{i:U-2,x:Ve(B,m)})}else(w!==1||m!==1)&&y.push(o(y)+"scale("+w+","+m+")")}return function(g,B){var w=[],m=[];return g=e(g),B=e(B),a(g.translateX,g.translateY,B.translateX,B.translateY,w,m),u(g.rotate,B.rotate,w,m),d(g.skewX,B.skewX,w,m),h(g.scaleX,g.scaleY,B.scaleX,B.scaleY,w,m),g=B=null,function(y){for(var Q=-1,U=m.length,T;++Q<U;)w[(T=m[Q]).i]=T.x(y);return w.join("")}}}var fg=Xs(ug,"px, ","px)","deg)"),gg=Xs(dg,", ",")",")"),hg=1e-12;function $s(e){return((e=Math.exp(e))+1/e)/2}function Bg(e){return((e=Math.exp(e))-1/e)/2}function pg(e){return((e=Math.exp(2*e))-1)/(e+1)}var hr=(function e(A,t,n){function o(a,u){var d=a[0],h=a[1],g=a[2],B=u[0],w=u[1],m=u[2],y=B-d,Q=w-h,U=y*y+Q*Q,T,M;if(U<hg)M=Math.log(m/g)/A,T=function(Z){return[d+Z*y,h+Z*Q,g*Math.exp(A*Z*M)]};else{var R=Math.sqrt(U),H=(m*m-g*g+n*U)/(2*g*t*R),P=(m*m-g*g-n*U)/(2*m*t*R),iA=Math.log(Math.sqrt(H*H+1)-H);M=(Math.log(Math.sqrt(P*P+1)-P)-iA)/A,T=function(Z){var aA=Z*M,lA=$s(iA),rA=g/(t*R)*(lA*pg(A*aA+iA)-Bg(iA));return[d+rA*y,h+rA*Q,g*lA/$s(A*aA+iA)]}}return T.duration=M*1e3*A/Math.SQRT2,T}return o.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},o})(Math.SQRT2,2,4),Yt=0,Un=0,bn=0,Ws=1e3,Br,Hn,pr=0,Dt=0,mr=0,In=typeof performance=="object"&&performance.now?performance:Date,Ys=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Zo(){return Dt||(Ys(mg),Dt=In.now()+mr)}function mg(){Dt=0}function wr(){this._call=this._time=this._next=null}wr.prototype=Js.prototype={constructor:wr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Zo():+t)+(A==null?0:+A),!this._next&&Hn!==this&&(Hn?Hn._next=this:Br=this,Hn=this),this._call=e,this._time=t,jo()},stop:function(){this._call&&(this._call=null,this._time=1/0,jo())}};function Js(e,A,t){var n=new wr;return n.restart(e,A,t),n}function wg(){Zo(),++Yt;for(var e=Br,A;e;)(A=Dt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--Yt}function Zs(){Dt=(pr=In.now())+mr,Yt=Un=0;try{wg()}finally{Yt=0,yg(),Dt=0}}function Cg(){var e=In.now(),A=e-pr;A>Ws&&(mr-=A,pr=e)}function yg(){for(var e,A=Br,t,n=1/0;A;)A._call?(n>A._time&&(n=A._time),e=A,A=A._next):(t=A._next,A._next=null,A=e?e._next=t:Br=t);Hn=e,jo(n)}function jo(e){Yt||(Un&&(Un=clearTimeout(Un)),e-Dt>24?(e<1/0&&(Un=setTimeout(Zs,e-In.now()-mr)),bn&&(bn=clearInterval(bn))):(bn||(pr=In.now(),bn=setInterval(Cg,Ws)),Yt=1,Ys(Zs)))}function js(e,A,t){var n=new wr;return A=A==null?0:+A,n.restart(o=>{n.stop(),e(o+A)},A,t),n}var vg=rr("start","end","cancel","interrupt"),Qg=[],qs=0,Aa=1,qo=2,Cr=3,ea=4,Ai=5,yr=6;function vr(e,A,t,n,o,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Eg(e,t,{name:A,index:n,group:o,on:vg,tween:Qg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:qs})}function ei(e,A){var t=Te(e,A);if(t.state>qs)throw new Error("too late; already scheduled");return t}function Pe(e,A){var t=Te(e,A);if(t.state>Cr)throw new Error("too late; already running");return t}function Te(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Eg(e,A,t){var n=e.__transition,o;n[A]=t,t.timer=Js(a,0,t.time);function a(g){t.state=Aa,t.timer.restart(u,t.delay,t.time),t.delay<=g&&u(g-t.delay)}function u(g){var B,w,m,y;if(t.state!==Aa)return h();for(B in n)if(y=n[B],y.name===t.name){if(y.state===Cr)return js(u);y.state===ea?(y.state=yr,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete n[B]):+B<A&&(y.state=yr,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete n[B])}if(js(function(){t.state===Cr&&(t.state=ea,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=qo,t.on.call("start",e,e.__data__,t.index,t.group),t.state===qo){for(t.state=Cr,o=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(y=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(o[++w]=y);o.length=w+1}}function d(g){for(var B=g<t.duration?t.ease.call(null,g/t.duration):(t.timer.restart(h),t.state=Ai,1),w=-1,m=o.length;++w<m;)o[w].call(e,B);t.state===Ai&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=yr,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function Qr(e,A){var t=e.__transition,n,o,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}o=n.state>qo&&n.state<Ai,n.state=yr,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function Fg(e){return this.each(function(){Qr(this,e)})}function Ug(e,A){var t,n;return function(){var o=Pe(this,e),a=o.tween;if(a!==t){n=t=a;for(var u=0,d=n.length;u<d;++u)if(n[u].name===A){n=n.slice(),n.splice(u,1);break}}o.tween=n}}function bg(e,A,t){var n,o;if(typeof t!="function")throw new Error;return function(){var a=Pe(this,e),u=a.tween;if(u!==n){o=(n=u).slice();for(var d={name:A,value:t},h=0,g=o.length;h<g;++h)if(o[h].name===A){o[h]=d;break}h===g&&o.push(d)}a.tween=o}}function Hg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Te(this.node(),t).tween,o=0,a=n.length,u;o<a;++o)if((u=n[o]).name===e)return u.value;return null}return this.each((A==null?Ug:bg)(t,e,A))}function ti(e,A,t){var n=e._id;return e.each(function(){var o=Pe(this,n);(o.value||(o.value={}))[A]=t.apply(this,arguments)}),function(o){return Te(o,n).value[A]}}function ta(e,A){var t;return(typeof A=="number"?Ve:A instanceof _t?fr:(t=_t(A))?(A=t,fr):Ps)(e,A)}function Ig(e){return function(){this.removeAttribute(e)}}function _g(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sg(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttribute(e);return u===o?null:u===n?a:a=A(n=u,t)}}function xg(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===n?a:a=A(n=u,t)}}function Dg(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Ng(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Lg(e,A){var t=ir(e),n=t==="transform"?gg:ta;return this.attrTween(e,typeof A=="function"?(t.local?Ng:Dg)(t,n,ti(this,"attr."+e,A)):A==null?(t.local?_g:Ig)(t):(t.local?xg:Sg)(t,n,A))}function kg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Tg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function Mg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Tg(e,a)),t}return o._value=A,o}function Og(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&kg(e,a)),t}return o._value=A,o}function Kg(e,A){var t="attr."+e;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(A==null)return this.tween(t,null);if(typeof A!="function")throw new Error;var n=ir(e);return this.tween(t,(n.local?Mg:Og)(n,A))}function Rg(e,A){return function(){ei(this,e).delay=+A.apply(this,arguments)}}function Vg(e,A){return A=+A,function(){ei(this,e).delay=A}}function Pg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Rg:Vg)(A,e)):Te(this.node(),A).delay}function Gg(e,A){return function(){Pe(this,e).duration=+A.apply(this,arguments)}}function zg(e,A){return A=+A,function(){Pe(this,e).duration=A}}function Xg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Gg:zg)(A,e)):Te(this.node(),A).duration}function $g(e,A){if(typeof A!="function")throw new Error;return function(){Pe(this,e).ease=A}}function Wg(e){var A=this._id;return arguments.length?this.each($g(A,e)):Te(this.node(),A).ease}function Yg(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Pe(this,e).ease=t}}function Jg(e){if(typeof e!="function")throw new Error;return this.each(Yg(this._id,e))}function Zg(e){typeof e!="function"&&(e=Cs(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Ze(n,this._parents,this._name,this._id)}function jg(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,o=t.length,a=Math.min(n,o),u=new Array(n),d=0;d<a;++d)for(var h=A[d],g=t[d],B=h.length,w=u[d]=new Array(B),m,y=0;y<B;++y)(m=h[y]||g[y])&&(w[y]=m);for(;d<n;++d)u[d]=A[d];return new Ze(u,this._parents,this._name,this._id)}function qg(e){return(e+"").trim().split(/^|\s+/).every(function(A){var t=A.indexOf(".");return t>=0&&(A=A.slice(0,t)),!A||A==="start"})}function Ah(e,A,t){var n,o,a=qg(A)?ei:Pe;return function(){var u=a(this,e),d=u.on;d!==n&&(o=(n=d).copy()).on(A,t),u.on=o}}function eh(e,A){var t=this._id;return arguments.length<2?Te(this.node(),t).on.on(e):this.each(Ah(t,e,A))}function th(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function nh(){return this.on("end.remove",th(this._id))}function rh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Ko(e));for(var n=this._groups,o=n.length,a=new Array(o),u=0;u<o;++u)for(var d=n[u],h=d.length,g=a[u]=new Array(h),B,w,m=0;m<h;++m)(B=d[m])&&(w=e.call(B,B.__data__,m,d))&&("__data__"in B&&(w.__data__=B.__data__),g[m]=w,vr(g[m],A,t,m,g,Te(B,t)));return new Ze(a,this._parents,A,t)}function oh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=ws(e));for(var n=this._groups,o=n.length,a=[],u=[],d=0;d<o;++d)for(var h=n[d],g=h.length,B,w=0;w<g;++w)if(B=h[w]){for(var m=e.call(B,B.__data__,w,h),y,Q=Te(B,t),U=0,T=m.length;U<T;++U)(y=m[U])&&vr(y,A,t,U,m,Q);a.push(m),u.push(B)}return new Ze(a,u,A,t)}var ih=Cn.prototype.constructor;function sh(){return new ih(this._groups,this._parents)}function ah(e,A){var t,n,o;return function(){var a=Xt(this,e),u=(this.style.removeProperty(e),Xt(this,e));return a===u?null:a===t&&u===n?o:o=A(t=a,n=u)}}function na(e){return function(){this.style.removeProperty(e)}}function lh(e,A,t){var n,o=t+"",a;return function(){var u=Xt(this,e);return u===o?null:u===n?a:a=A(n=u,t)}}function ch(e,A,t){var n,o,a;return function(){var u=Xt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Xt(this,e))),u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d))}}function uh(e,A){var t,n,o,a="style."+A,u="end."+a,d;return function(){var h=Pe(this,e),g=h.on,B=h.value[a]==null?d||(d=na(A)):void 0;(g!==t||o!==B)&&(n=(t=g).copy()).on(u,o=B),h.on=n}}function dh(e,A,t){var n=(e+="")=="transform"?fg:ta;return A==null?this.styleTween(e,ah(e,n)).on("end.style."+e,na(e)):typeof A=="function"?this.styleTween(e,ch(e,n,ti(this,"style."+e,A))).each(uh(this._id,e)):this.styleTween(e,lh(e,n,A),t).on("end.style."+e,null)}function fh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function gh(e,A,t){var n,o;function a(){var u=A.apply(this,arguments);return u!==o&&(n=(o=u)&&fh(e,u,t)),n}return a._value=A,a}function hh(e,A,t){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(A==null)return this.tween(n,null);if(typeof A!="function")throw new Error;return this.tween(n,gh(e,A,t??""))}function Bh(e){return function(){this.textContent=e}}function ph(e){return function(){var A=e(this);this.textContent=A??""}}function mh(e){return this.tween("text",typeof e=="function"?ph(ti(this,"text",e)):Bh(e==null?"":e+""))}function wh(e){return function(A){this.textContent=e.call(this,A)}}function Ch(e){var A,t;function n(){var o=e.apply(this,arguments);return o!==t&&(A=(t=o)&&wh(o)),A}return n._value=e,n}function yh(e){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(e==null)return this.tween(A,null);if(typeof e!="function")throw new Error;return this.tween(A,Ch(e))}function vh(){for(var e=this._name,A=this._id,t=ra(),n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)if(h=u[g]){var B=Te(h,A);vr(h,e,t,g,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Ze(n,this._parents,e,t)}function Qh(){var e,A,t=this,n=t._id,o=t.size();return new Promise(function(a,u){var d={value:u},h={value:function(){--o===0&&a()}};t.each(function(){var g=Pe(this,n),B=g.on;B!==e&&(A=(e=B).copy(),A._.cancel.push(d),A._.interrupt.push(d),A._.end.push(h)),g.on=A}),o===0&&a()})}var Eh=0;function Ze(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ra(){return++Eh}var je=Cn.prototype;Ze.prototype={constructor:Ze,select:rh,selectAll:oh,selectChild:je.selectChild,selectChildren:je.selectChildren,filter:Zg,merge:jg,selection:sh,transition:vh,call:je.call,nodes:je.nodes,node:je.node,size:je.size,empty:je.empty,each:je.each,on:eh,attr:Lg,attrTween:Kg,style:dh,styleTween:hh,text:mh,textTween:yh,remove:nh,tween:Hg,delay:Pg,duration:Xg,ease:Wg,easeVarying:Jg,end:Qh,[Symbol.iterator]:je[Symbol.iterator]};function Fh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Uh={time:null,delay:0,duration:250,ease:Fh};function bh(e,A){for(var t;!(t=e.__transition)||!(t=t[A]);)if(!(e=e.parentNode))throw new Error(`transition ${A} not found`);return t}function Hh(e){var A,t;e instanceof Ze?(A=e._id,e=e._name):(A=ra(),(t=Uh).time=Zo(),e=e==null?null:e+"");for(var n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&vr(h,e,A,g,u,t||bh(h,A));return new Ze(n,this._parents,e,A)}Cn.prototype.interrupt=Fg,Cn.prototype.transition=Hh;var Er=e=>()=>e;function Ih(e,{sourceEvent:A,target:t,transform:n,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:o}})}function qe(e,A,t){this.k=e,this.x=A,this.y=t}qe.prototype={constructor:qe,scale:function(e){return e===1?this:new qe(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new qe(this.k,this.x+this.k*e,this.y+this.k*A)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Jt=new qe(1,0,0);qe.prototype;function ni(e){e.stopImmediatePropagation()}function _n(e){e.preventDefault(),e.stopImmediatePropagation()}function _h(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Sh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function oa(){return this.__zoom||Jt}function xh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Dh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],o=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],u=e.invertY(A[1][1])-t[1][1];return e.translate(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Lh(){var e=_h,A=Sh,t=Nh,n=xh,o=Dh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=hr,g=rr("start","zoom","end"),B,w,m,y=500,Q=150,U=0,T=10;function M(I){I.property("__zoom",oa).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",rA).on("dblclick.zoom",nA).filter(o).on("touchstart.zoom",j).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(I,X,F,x){var N=I.selection?I.selection():I;N.property("__zoom",oa),I!==N?iA(I,X,F,x):N.interrupt().each(function(){Z(this,arguments).event(x).start().zoom(null,typeof X=="function"?X.apply(this,arguments):X).end()})},M.scaleBy=function(I,X,F,x){M.scaleTo(I,function(){return this.__zoom.k*(typeof X=="function"?X.apply(this,arguments):X)},F,x)},M.scaleTo=function(I,X,F,x){M.transform(I,function(){var N=A.apply(this,arguments),L=this.__zoom,O=F==null?P(N):typeof F=="function"?F.apply(this,arguments):F,J=L.invert(O),tA=typeof X=="function"?X.apply(this,arguments):X;return t(H(R(L,tA),O,J),N,u)},F,x)},M.translateBy=function(I,X,F,x){M.transform(I,function(){return t(this.__zoom.translate(typeof X=="function"?X.apply(this,arguments):X,typeof F=="function"?F.apply(this,arguments):F),A.apply(this,arguments),u)},null,x)},M.translateTo=function(I,X,F,x,N){M.transform(I,function(){var L=A.apply(this,arguments),O=this.__zoom,J=x==null?P(L):typeof x=="function"?x.apply(this,arguments):x;return t(Jt.translate(J[0],J[1]).scale(O.k).translate(typeof X=="function"?-X.apply(this,arguments):-X,typeof F=="function"?-F.apply(this,arguments):-F),L,u)},x,N)};function R(I,X){return X=Math.max(a[0],Math.min(a[1],X)),X===I.k?I:new qe(X,I.x,I.y)}function H(I,X,F){var x=X[0]-F[0]*I.k,N=X[1]-F[1]*I.k;return x===I.x&&N===I.y?I:new qe(I.k,x,N)}function P(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function iA(I,X,F,x){I.on("start.zoom",function(){Z(this,arguments).event(x).start()}).on("interrupt.zoom end.zoom",function(){Z(this,arguments).event(x).end()}).tween("zoom",function(){var N=this,L=arguments,O=Z(N,L).event(x),J=A.apply(N,L),tA=F==null?P(J):typeof F=="function"?F.apply(N,L):F,dA=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),UA=N.__zoom,G=typeof X=="function"?X.apply(N,L):X,Y=h(UA.invert(tA).concat(dA/UA.k),G.invert(tA).concat(dA/G.k));return function($){if($===1)$=G;else{var oA=Y($),BA=dA/oA[2];$=new qe(BA,tA[0]-oA[0]*BA,tA[1]-oA[1]*BA)}O.zoom(null,$)}})}function Z(I,X,F){return!F&&I.__zooming||new aA(I,X)}function aA(I,X){this.that=I,this.args=X,this.active=0,this.sourceEvent=null,this.extent=A.apply(I,X),this.taps=0}aA.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,X){return this.mouse&&I!=="mouse"&&(this.mouse[1]=X.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=X.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=X.invert(this.touch1[0])),this.that.__zoom=X,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var X=Le(this.that).datum();g.call(I,this.that,new Ih(I,{sourceEvent:this.sourceEvent,target:M,type:I,transform:this.that.__zoom,dispatch:g}),X)}};function lA(I,...X){if(!e.apply(this,arguments))return;var F=Z(this,X).event(I),x=this.__zoom,N=Math.max(a[0],Math.min(a[1],x.k*Math.pow(2,n.apply(this,arguments)))),L=Ke(I);if(F.wheel)(F.mouse[0][0]!==L[0]||F.mouse[0][1]!==L[1])&&(F.mouse[1]=x.invert(F.mouse[0]=L)),clearTimeout(F.wheel);else{if(x.k===N)return;F.mouse=[L,x.invert(L)],Qr(this),F.start()}_n(I),F.wheel=setTimeout(O,Q),F.zoom("mouse",t(H(R(x,N),F.mouse[0],F.mouse[1]),F.extent,u));function O(){F.wheel=null,F.end()}}function rA(I,...X){if(m||!e.apply(this,arguments))return;var F=I.currentTarget,x=Z(this,X,!0).event(I),N=Le(I.view).on("mousemove.zoom",tA,!0).on("mouseup.zoom",dA,!0),L=Ke(I,F),O=I.clientX,J=I.clientY;_s(I.view),ni(I),x.mouse=[L,this.__zoom.invert(L)],Qr(this),x.start();function tA(UA){if(_n(UA),!x.moved){var G=UA.clientX-O,Y=UA.clientY-J;x.moved=G*G+Y*Y>U}x.event(UA).zoom("mouse",t(H(x.that.__zoom,x.mouse[0]=Ke(UA,F),x.mouse[1]),x.extent,u))}function dA(UA){N.on("mousemove.zoom mouseup.zoom",null),Ss(UA.view,x.moved),_n(UA),x.event(UA).end()}}function nA(I,...X){if(e.apply(this,arguments)){var F=this.__zoom,x=Ke(I.changedTouches?I.changedTouches[0]:I,this),N=F.invert(x),L=F.k*(I.shiftKey?.5:2),O=t(H(R(F,L),x,N),A.apply(this,X),u);_n(I),d>0?Le(this).transition().duration(d).call(iA,O,x,I):Le(this).call(M.transform,O,x,I)}}function j(I,...X){if(e.apply(this,arguments)){var F=I.touches,x=F.length,N=Z(this,X,I.changedTouches.length===x).event(I),L,O,J,tA;for(ni(I),O=0;O<x;++O)J=F[O],tA=Ke(J,this),tA=[tA,this.__zoom.invert(tA),J.identifier],N.touch0?!N.touch1&&N.touch0[2]!==tA[2]&&(N.touch1=tA,N.taps=0):(N.touch0=tA,L=!0,N.taps=1+!!B);B&&(B=clearTimeout(B)),L&&(N.taps<2&&(w=tA[0],B=setTimeout(function(){B=null},y)),Qr(this),N.start())}}function S(I,...X){if(this.__zooming){var F=Z(this,X).event(I),x=I.changedTouches,N=x.length,L,O,J,tA;for(_n(I),L=0;L<N;++L)O=x[L],J=Ke(O,this),F.touch0&&F.touch0[2]===O.identifier?F.touch0[0]=J:F.touch1&&F.touch1[2]===O.identifier&&(F.touch1[0]=J);if(O=F.that.__zoom,F.touch1){var dA=F.touch0[0],UA=F.touch0[1],G=F.touch1[0],Y=F.touch1[1],$=($=G[0]-dA[0])*$+($=G[1]-dA[1])*$,oA=(oA=Y[0]-UA[0])*oA+(oA=Y[1]-UA[1])*oA;O=R(O,Math.sqrt($/oA)),J=[(dA[0]+G[0])/2,(dA[1]+G[1])/2],tA=[(UA[0]+Y[0])/2,(UA[1]+Y[1])/2]}else if(F.touch0)J=F.touch0[0],tA=F.touch0[1];else return;F.zoom("touch",t(H(O,J,tA),F.extent,u))}}function eA(I,...X){if(this.__zooming){var F=Z(this,X).event(I),x=I.changedTouches,N=x.length,L,O;for(ni(I),m&&clearTimeout(m),m=setTimeout(function(){m=null},y),L=0;L<N;++L)O=x[L],F.touch0&&F.touch0[2]===O.identifier?delete F.touch0:F.touch1&&F.touch1[2]===O.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(O=Ke(O,this),Math.hypot(w[0]-O[0],w[1]-O[1])<T)){var J=Le(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return M.wheelDelta=function(I){return arguments.length?(n=typeof I=="function"?I:Er(+I),M):n},M.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Er(!!I),M):e},M.touchable=function(I){return arguments.length?(o=typeof I=="function"?I:Er(!!I),M):o},M.extent=function(I){return arguments.length?(A=typeof I=="function"?I:Er([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),M):A},M.scaleExtent=function(I){return arguments.length?(a[0]=+I[0],a[1]=+I[1],M):[a[0],a[1]]},M.translateExtent=function(I){return arguments.length?(u[0][0]=+I[0][0],u[1][0]=+I[1][0],u[0][1]=+I[0][1],u[1][1]=+I[1][1],M):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},M.constrain=function(I){return arguments.length?(t=I,M):t},M.duration=function(I){return arguments.length?(d=+I,M):d},M.interpolate=function(I){return arguments.length?(h=I,M):h},M.on=function(){var I=g.on.apply(g,arguments);return I===g?M:I},M.clickDistance=function(I){return arguments.length?(U=(I=+I)*I,M):Math.sqrt(U)},M.tapDistance=function(I){return arguments.length?(T=+I,M):T},M}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),ri=(e=>(e.Partial="partial",e.Full="full",e))(ri||{}),Nt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Nt||{}),At=(e=>(e.Strict="strict",e.Loose="loose",e))(At||{}),et=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(et||{}),Sn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(Sn||{}),ia=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(ia||{}),kh=["INPUT","SELECT","TEXTAREA"],Th=typeof document<"u"?document:null;function oi(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,o=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return kh.includes(n?.nodeName)||o||!!a}function Mh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function sa(e,A,t,n){const o=A.replace("+",`
|
|
2
2
|
`).replace(`
|
|
3
3
|
|
|
4
4
|
`,`
|
|
@@ -25,11 +25,11 @@ Target: ${t}`,EDGE_ORPHANED:e=>`Edge was orphaned (suddenly missing source or ta
|
|
|
25
25
|
Edge: ${e}`,EDGE_NOT_FOUND:e=>`Edge not found
|
|
26
26
|
Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"},ue=class extends Error{constructor(e,...A){var t;super((t=Da[e])==null?void 0:t.call(Da,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function li(e){return"clientX"in e}function rB(e){return"sourceEvent"in e}function Ge(e,A){const t=li(e);let n,o;return t?(n=e.clientX,o=e.clientY):"touches"in e&&e.touches.length>0?(n=e.touches[0].clientX,o=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(n=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY):(n=0,o=0),{x:n-(A?.left??0),y:o-(A?.top??0)}}var Ir=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function oB(e){var A,t;return{width:((A=e.dimensions)==null?void 0:A.width)??e.width??0,height:((t=e.dimensions)==null?void 0:t.height)??e.height??0}}function _r(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var iB=()=>!0;function ci(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function sB(e,A,t){const n=[],o={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const a of A.values())Ur(o,Fr(a))>0&&n.push(a);return n}var aB=250;function lB(e,A,t,n){var o,a;let u=[],d=Number.POSITIVE_INFINITY;const h=sB(e,t,A+aB);for(const g of h){const B=[...((o=g.handleBounds)==null?void 0:o.source)??[],...((a=g.handleBounds)==null?void 0:a.target)??[]];for(const w of B){if(n.nodeId===w.nodeId&&n.type===w.type&&n.id===w.id)continue;const{x:m,y}=qt(g,w,w.position,!0),Q=Math.sqrt((m-e.x)**2+(y-e.y)**2);Q>A||(Q<d?(u=[{...w,x:m,y}],d=Q):Q===d&&u.push({...w,x:m,y}))}}if(!u.length)return null;if(u.length>1){const g=n.type==="source"?"target":"source";return u.find(B=>B.type===g)??u[0]}return u[0]}function Na(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:o,fromType:a,doc:u,lib:d,flowId:h,isValidConnection:g=iB},B,w,m,y){const Q=a==="target",U=A?u.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:T,y:M}=Ge(e),R=u.elementFromPoint(T,M),H=R?.classList.contains(`${d}-flow__handle`)?R:U,P={handleDomNode:H,isValid:!1,connection:null,toHandle:null};if(H){const iA=La(void 0,H),Z=H.getAttribute("data-nodeid"),aA=H.getAttribute("data-handleid"),lA=H.classList.contains("connectable"),rA=H.classList.contains("connectableend");if(!Z||!iA)return P;const nA={source:Q?Z:n,sourceHandle:Q?aA:o,target:Q?n:Z,targetHandle:Q?o:aA};P.connection=nA,P.isValid=lA&&rA&&(t===At.Strict?Q&&iA==="source"||!Q&&iA==="target":Z!==n||aA!==o)&&g(nA,{nodes:w,edges:B,sourceNode:m(nA.source),targetNode:m(nA.target)}),P.toHandle=ka(Z,iA,aA,y,t,!0)}return P}function La(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function cB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function uB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function ka(e,A,t,n,o,a=!1){var u,d,h;const g=n.get(e);if(!g)return null;const B=o===At.Strict?(u=g.handleBounds)==null?void 0:u[A]:[...((d=g.handleBounds)==null?void 0:d.source)??[],...((h=g.handleBounds)==null?void 0:h.target)??[]],w=(t?B?.find(m=>m.id===t):B?.[0])??null;return w&&a?{...w,...qt(g,w,w.position,!0)}:w}var ui={[IA.Left]:IA.Right,[IA.Right]:IA.Left,[IA.Top]:IA.Bottom,[IA.Bottom]:IA.Top},dB=["production","prod"];function Tn(e,...A){Ta()&&console.warn(`[Vue Flow]: ${e}`,...A)}function Ta(){return!dB.includes(process.env.NODE_ENV||"")}function Ma(e,A,t,n,o){const a=A.querySelectorAll(`.vue-flow__handle.${e}`);return a?.length?Array.from(a).map(u=>{const d=u.getBoundingClientRect();return{id:u.getAttribute("data-handleid"),type:e,nodeId:o,position:u.getAttribute("data-handlepos"),x:(d.left-t.left)/n,y:(d.top-t.top)/n,...br(u)}}):null}function di(e,A,t,n,o,a=!1,u){o.value=!1,e.selected?(a||e.selected&&A)&&(n([e]),(0,r.nextTick)(()=>{u.blur()})):t([e])}function se(e){return typeof(0,r.unref)(e)<"u"}function fB(e,A,t,n){if(!e||!e.source||!e.target)return t(new ue(ie.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let o;return gt(e)?o=e:o={...e,id:ha(e)},o=fa(o,void 0,n),Xh(o,A)?!1:o}function gB(e,A,t,n,o){if(!A.source||!A.target)return o(new ue(ie.EDGE_INVALID,e.id)),!1;if(!t)return o(new ue(ie.EDGE_NOT_FOUND,e.id)),!1;const{id:a,...u}=e;return{...u,id:n?ha(A):a,source:A.source,target:A.target,sourceHandle:A.sourceHandle,targetHandle:A.targetHandle}}function Oa(e,A,t){const n={},o=[];for(let a=0;a<e.length;++a){const u=e[a];if(!kt(u)){t(new ue(ie.NODE_INVALID,u?.id));continue}const d=Ph(u,A(u.id),u.parentNode);u.parentNode&&(n[u.parentNode]=!0),o[a]=d}for(const a of o){const u=A(a.parentNode)||o.find(d=>d.id===a.parentNode);a.parentNode&&!u&&t(new ue(ie.NODE_MISSING_PARENT,a.id,a.parentNode)),(a.parentNode||n[a.id])&&(n[a.id]&&(a.isParent=!0),u&&(u.isParent=!0))}return o}function Ka(e,A,t,n,o,a){let u=o;const d=n.get(u)||new Map;n.set(u,d.set(t,A)),u=`${o}-${e}`;const h=n.get(u)||new Map;if(n.set(u,h.set(t,A)),a){u=`${o}-${e}-${a}`;const g=n.get(u)||new Map;n.set(u,g.set(t,A))}}function fi(e,A,t){e.clear();for(const n of t){const{source:o,target:a,sourceHandle:u=null,targetHandle:d=null}=n,h={edgeId:n.id,source:o,target:a,sourceHandle:u,targetHandle:d},g=`${o}-${u}--${a}-${d}`;Ka("source",h,`${a}-${d}--${o}-${u}`,e,o,u),Ka("target",h,g,e,a,d)}}function Ra(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function gi(e,A,t,n,o,a,u,d){const h=[];for(const g of e){const B=gt(g)?g:fB(g,d,o,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){o(new ue(ie.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){o(new ue(ie.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){o(new ue(ie.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:u,sourceNode:w,targetNode:m})){o(new ue(ie.EDGE_INVALID,B.id));continue}const y=n(B.id);h.push({...fa(B,y,a),sourceNode:w,targetNode:m})}return h}var Va=Symbol("vueFlow"),Pa=Symbol("nodeId"),Ga=Symbol("nodeRef"),hB=Symbol("edgeId"),BB=Symbol("edgeRef"),Sr=Symbol("slots");function za(e){const{vueFlowRef:A,snapToGrid:t,snapGrid:n,noDragClassName:o,nodeLookup:a,nodeExtent:u,nodeDragThreshold:d,viewport:h,autoPanOnNodeDrag:g,autoPanSpeed:B,nodesDraggable:w,panBy:m,findNode:y,multiSelectionActive:Q,nodesSelectionActive:U,selectNodesOnDrag:T,removeSelectedElements:M,addSelectedNodes:R,updateNodePositions:H,emits:P}=YA(),{onStart:iA,onDrag:Z,onStop:aA,onClick:lA,el:rA,disabled:nA,id:j,selectable:S,dragHandle:eA}=e,I=(0,r.shallowRef)(!1);let X=[],F,x=null,N={x:void 0,y:void 0},L={x:0,y:0},O=null,J=!1,tA=!1,dA=0,UA=!1;const G=wB(),Y=({x:uA,y:hA})=>{N={x:uA,y:hA};let _=!1;if(X=X.map(b=>{const D={x:uA-b.distance.x,y:hA-b.distance.y},{computedPosition:W}=ai(b,t.value?_r(D,n.value):D,P.error,u.value,b.parentNode?y(b.parentNode):void 0);return _=_||b.position.x!==W.x||b.position.y!==W.y,b.position=W,b}),tA=tA||_,!!_&&(H(X,!0,!0),I.value=!0,O)){const[b,D]=si({id:j,dragItems:X,findNode:y});Z({event:O,node:b,nodes:D})}},$=()=>{if(!x)return;const[uA,hA]=Ea(L,x,B.value);if(uA!==0||hA!==0){const _={x:(N.x??0)-uA/h.value.zoom,y:(N.y??0)-hA/h.value.zoom};m({x:uA,y:hA})&&Y(_)}dA=requestAnimationFrame($)},oA=(uA,hA)=>{J=!0;const _=y(j);!T.value&&!Q.value&&_&&(_.selected||M()),_&&(0,r.toValue)(S)&&T.value&&di(_,Q.value,R,M,U,!1,hA);const b=G(uA.sourceEvent);if(N=b,X=jh(a.value,w.value,b,j),X.length){const[D,W]=si({id:j,dragItems:X,findNode:y});iA({event:uA.sourceEvent,node:D,nodes:W})}},BA=(uA,hA)=>{var _;uA.sourceEvent.type==="touchmove"&&uA.sourceEvent.touches.length>1||(tA=!1,d.value===0&&oA(uA,hA),N=G(uA.sourceEvent),x=((_=A.value)==null?void 0:_.getBoundingClientRect())||null,L=Ge(uA.sourceEvent,x))},wA=(uA,hA)=>{const _=G(uA.sourceEvent);if(!UA&&J&&g.value&&(UA=!0,$()),!J){const b=_.xSnapped-(N.x??0),D=_.ySnapped-(N.y??0);Math.sqrt(b*b+D*D)>d.value&&oA(uA,hA)}(N.x!==_.xSnapped||N.y!==_.ySnapped)&&X.length&&J&&(O=uA.sourceEvent,L=Ge(uA.sourceEvent,x),Y(_))},bA=uA=>{let hA=!1;if(!J&&!I.value&&!Q.value){const _=uA.sourceEvent,b=G(_),D=b.xSnapped-(N.x??0),W=b.ySnapped-(N.y??0),V=Math.sqrt(D*D+W*W);V!==0&&V<=d.value&&(lA?.(_),hA=!0)}if(X.length&&!hA){tA&&(H(X,!1,!1),tA=!1);const[_,b]=si({id:j,dragItems:X,findNode:y});aA({event:uA.sourceEvent,node:_,nodes:b})}X=[],I.value=!1,UA=!1,J=!1,N={x:void 0,y:void 0},cancelAnimationFrame(dA)};return(0,r.watch)([()=>(0,r.toValue)(nA),rA],([uA,hA],_,b)=>{if(hA){const D=Le(hA);uA||(F=Vf().on("start",W=>BA(W,hA)).on("drag",W=>wA(W,hA)).on("end",W=>bA(W)).filter(W=>{const V=W.target,pA=(0,r.toValue)(eA);return!W.button&&(!o.value||!_a(V,`.${o.value}`,hA)&&(!pA||_a(V,pA,hA)))}),D.call(F)),b(()=>{D.on(".drag",null),F&&(F.on("start",null),F.on("drag",null),F.on("end",null))})}}),I}function pB(){return{doubleClick:vA(),click:vA(),mouseEnter:vA(),mouseMove:vA(),mouseLeave:vA(),contextMenu:vA(),updateStart:vA(),update:vA(),updateEnd:vA()}}function mB(e,A){const t=pB();return t.doubleClick.on(n=>{var o,a;A.edgeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.edgeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.edgeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.edgeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.edgeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.edgeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.updateStart.on(n=>{var o,a;A.edgeUpdateStart(n),(a=(o=e.events)==null?void 0:o.updateStart)==null||a.call(o,n)}),t.update.on(n=>{var o,a;A.edgeUpdate(n),(a=(o=e.events)==null?void 0:o.update)==null||a.call(o,n)}),t.updateEnd.on(n=>{var o,a;A.edgeUpdateEnd(n),(a=(o=e.events)==null?void 0:o.updateEnd)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function wB(){const{viewport:e,snapGrid:A,snapToGrid:t,vueFlowRef:n}=YA();return o=>{var a;const u=((a=n.value)==null?void 0:a.getBoundingClientRect())??{left:0,top:0},{x:d,y:h}=Ge(rB(o)?o.sourceEvent:o,u),g=Ln({x:d,y:h},e.value),{x:B,y:w}=t.value?_r(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function xr(){return!0}function Xa({handleId:e,nodeId:A,type:t,isValidConnection:n,edgeUpdaterType:o,onEdgeUpdate:a,onEdgeUpdateEnd:u}){const{id:d,vueFlowRef:h,connectionMode:g,connectionRadius:B,connectOnClick:w,connectionClickStartHandle:m,nodesConnectable:y,autoPanOnConnect:Q,autoPanSpeed:U,findNode:T,panBy:M,startConnection:R,updateConnection:H,endConnection:P,emits:iA,viewport:Z,edges:aA,nodes:lA,isValidConnection:rA,nodeLookup:nA}=YA();let j=null,S=!1,eA=null;function I(F){var x;const N=(0,r.toValue)(t)==="target",L=li(F),O=da(F.target),J=F.currentTarget;if(J&&(L&&F.button===0||!L)){let tA=function(HA){_=Ge(HA,bA),Y=lB(Ln(_,Z.value,!1,[1,1]),B.value,nA.value,W),b||(D(),b=!0);const FA=Na(HA,{handle:Y,connectionMode:g.value,fromNodeId:(0,r.toValue)(A),fromHandleId:(0,r.toValue)(e),fromType:N?"target":"source",isValidConnection:G,doc:O,lib:"vue",flowId:d,nodeLookup:nA.value},aA.value,lA.value,T,nA.value);eA=FA.handleDomNode,j=FA.connection,S=uB(!!Y,FA.isValid);const SA={...gA,isValid:S,to:FA.toHandle&&S?Nn({x:FA.toHandle.x,y:FA.toHandle.y},Z.value):_,toHandle:FA.toHandle,toPosition:S&&FA.toHandle?FA.toHandle.position:ui[W.position],toNode:FA.toHandle?nA.value.get(FA.toHandle.nodeId):null};if(S&&Y&&gA?.toHandle&&SA.toHandle&&gA.toHandle.type===SA.toHandle.type&&gA.toHandle.nodeId===SA.toHandle.nodeId&&gA.toHandle.id===SA.toHandle.id&&gA.to.x===SA.to.x&&gA.to.y===SA.to.y)return;const OA=Y??FA.toHandle;if(H(OA&&S?Nn({x:OA.x,y:OA.y},Z.value):_,OA,cB(!!OA,S)),gA=SA,!Y&&!S&&!eA)return ci(hA);j&&j.source!==j.target&&eA&&(ci(hA),hA=eA,eA.classList.add("connecting","vue-flow__handle-connecting"),eA.classList.toggle("valid",!!S),eA.classList.toggle("vue-flow__handle-valid",!!S))},dA=function(HA){"touches"in HA&&HA.touches.length>0||((Y||eA)&&j&&S&&(a?a(HA,j):iA.connect(j)),iA.connectEnd(HA),o&&u?.(HA),ci(hA),cancelAnimationFrame($),P(HA),b=!1,S=!1,j=null,eA=null,O.removeEventListener("mousemove",tA),O.removeEventListener("mouseup",dA),O.removeEventListener("touchmove",tA),O.removeEventListener("touchend",dA))};const UA=T((0,r.toValue)(A));let G=(0,r.toValue)(n)||rA.value||xr;!G&&UA&&(G=(N?UA.isValidSourcePos:UA.isValidTargetPos)||xr);let Y,$=0;const{x:oA,y:BA}=Ge(F),wA=La((0,r.toValue)(o),J),bA=(x=h.value)==null?void 0:x.getBoundingClientRect();if(!bA||!wA)return;const uA=ka((0,r.toValue)(A),wA,(0,r.toValue)(e),nA.value,g.value);if(!uA)return;let hA,_=Ge(F,bA),b=!1;const D=()=>{if(!Q.value)return;const[HA,FA]=Ea(_,bA,U.value);M({x:HA,y:FA}),$=requestAnimationFrame(D)},W={...uA,nodeId:(0,r.toValue)(A),type:wA,position:uA.position},V=nA.value.get((0,r.toValue)(A)),pA={inProgress:!0,isValid:null,from:qt(V,W,IA.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:V,to:_,toHandle:null,toPosition:ui[W.position],toNode:null};R({nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:wA,position:J?.getAttribute("data-handlepos")||IA.Top,..._},{x:oA-bA.left,y:BA-bA.top}),iA.connectStart({event:F,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e),handleType:wA});let gA=pA;O.addEventListener("mousemove",tA),O.addEventListener("mouseup",dA),O.addEventListener("touchmove",tA),O.addEventListener("touchend",dA)}}function X(F){var x,N;if(!w.value)return;const L=(0,r.toValue)(t)==="target";if(!m.value){iA.clickConnectStart({event:F,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e)}),R({nodeId:(0,r.toValue)(A),type:(0,r.toValue)(t),id:(0,r.toValue)(e),position:IA.Top,...Ge(F)},void 0,!0);return}let O=(0,r.toValue)(n)||rA.value||xr;const J=T((0,r.toValue)(A));if(!O&&J&&(O=(L?J.isValidSourcePos:J.isValidTargetPos)||xr),J&&(typeof J.connectable>"u"?y.value:J.connectable)===!1)return;const tA=da(F.target),dA=Na(F,{handle:{nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:(0,r.toValue)(t),position:IA.Top,...Ge(F)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:O,doc:tA,lib:"vue",flowId:d,nodeLookup:nA.value},aA.value,lA.value,T,nA.value),UA=((x=dA.connection)==null?void 0:x.source)===((N=dA.connection)==null?void 0:N.target);dA.isValid&&dA.connection&&!UA&&iA.connect(dA.connection),iA.clickConnectEnd(F),P(F,!0)}return{handlePointerDown:I,handleClick:X}}function CB(){return(0,r.inject)(Pa,"")}function $a(e){const A=e??CB()??"",t=(0,r.inject)(Ga,(0,r.ref)(null)),{findNode:n,edges:o,emits:a}=YA(),u=n(A);return u||a.error(new ue(ie.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:u,parentNode:(0,r.computed)(()=>n(u.parentNode)),connectedEdges:(0,r.computed)(()=>wa([u],o.value))}}function yB(){return{doubleClick:vA(),click:vA(),mouseEnter:vA(),mouseMove:vA(),mouseLeave:vA(),contextMenu:vA(),dragStart:vA(),drag:vA(),dragStop:vA()}}function vB(e,A){const t=yB();return t.doubleClick.on(n=>{var o,a;A.nodeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.nodeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.nodeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.nodeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.nodeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.nodeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.dragStart.on(n=>{var o,a;A.nodeDragStart(n),(a=(o=e.events)==null?void 0:o.dragStart)==null||a.call(o,n)}),t.drag.on(n=>{var o,a;A.nodeDrag(n),(a=(o=e.events)==null?void 0:o.drag)==null||a.call(o,n)}),t.dragStop.on(n=>{var o,a;A.nodeDragStop(n),(a=(o=e.events)==null?void 0:o.dragStop)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function Wa(){const{getSelectedNodes:e,nodeExtent:A,updateNodePositions:t,findNode:n,snapGrid:o,snapToGrid:a,nodesDraggable:u,emits:d}=YA();return(h,g=!1)=>{const B=a.value?o.value[0]:5,w=a.value?o.value[1]:5,m=g?4:1,y=h.x*B*m,Q=h.y*w*m,U=[];for(const T of e.value)if(T.draggable||u&&typeof T.draggable>"u"){const{position:M}=ai(T,{x:T.computedPosition.x+y,y:T.computedPosition.y+Q},d.error,A.value,T.parentNode?n(T.parentNode):void 0);U.push({id:T.id,position:M,from:T.position,distance:{x:h.x,y:h.y},dimensions:T.dimensions})}t(U,!0,!1)}}var Dr=.1,QB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function pt(){return Tn("Viewport not initialized yet."),Promise.resolve(!1)}var EB={zoomIn:pt,zoomOut:pt,zoomTo:pt,fitView:pt,setCenter:pt,fitBounds:pt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:pt,setTransform:pt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function FB(e){function A(n,o){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?Fn:hr).scaleBy(hi(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)})}function t(n,o,a,u){return new Promise(d=>{var h;const{x:g,y:B}=ua({x:-n,y:-o},e.translateExtent),w=Jt.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(u?.interpolate==="linear"?Fn:hr).transform(hi(e.d3Selection,u?.duration,u?.ease,()=>{d(!0)}),w):d(!1)})}return(0,r.computed)(()=>e.d3Zoom&&e.d3Selection&&e.dimensions.width&&e.dimensions.height?{viewportInitialized:!0,zoomIn:n=>A(1.2,n),zoomOut:n=>A(1/1.2,n),zoomTo:(n,o)=>new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?Fn:hr).scaleTo(hi(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)}),setViewport:(n,o)=>t(n.x,n.y,n.zoom,o),setTransform:(n,o)=>t(n.x,n.y,n.zoom,o),getViewport:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),getTransform:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),fitView:(n={padding:Dr,includeHiddenNodes:!1,duration:0})=>{var o,a;const u=[];for(const B of e.nodes)B.dimensions.width&&B.dimensions.height&&(n?.includeHiddenNodes||!B.hidden)&&(!((o=n.nodes)!=null&&o.length)||(a=n.nodes)!=null&&a.length&&n.nodes.includes(B.id))&&u.push(B);if(!u.length)return Promise.resolve(!1);const{x:d,y:h,zoom:g}=Ca(pa(u),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Dr);return t(d,h,g,n)},setCenter:(n,o,a)=>{const u=typeof a?.zoom<"u"?a.zoom:e.maxZoom;return t(e.dimensions.width/2-n*u,e.dimensions.height/2-o*u,u,a)},fitBounds:(n,o={padding:Dr})=>{const{x:a,y:u,zoom:d}=Ca(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,o.padding??Dr);return t(a,u,d,o)},project:n=>Ln(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Ln({x:n.x-o,y:n.y-a},e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Nn({x:n.x+o,y:n.y+a},e.viewport)}return{x:0,y:0}}}:EB)}function hi(e,A=0,t=QB,n=()=>{}){const o=typeof A=="number"&&A>0;return o||n(),o?e.transition().duration(A).ease(t).on("end",n):e}function UB(e,A,t){const n=(0,r.effectScope)(!0);return n.run(()=>{const o=()=>{n.run(()=>{let U,T,M=!!(t.nodes.value.length||t.edges.value.length);U=zt([e.modelValue,()=>{var R,H;return(H=(R=e.modelValue)==null?void 0:R.value)==null?void 0:H.length}],([R])=>{R&&Array.isArray(R)&&(T?.pause(),t.setElements(R),!T&&!M&&R.length?M=!0:T?.resume())}),T=zt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([R,H])=>{var P;(P=e.modelValue)!=null&&P.value&&Array.isArray(e.modelValue.value)&&(U?.pause(),e.modelValue.value=[...R,...H],(0,r.nextTick)(()=>{U?.resume()}))},{immediate:M}),(0,r.onScopeDispose)(()=>{U?.stop(),T?.stop()})})},a=()=>{n.run(()=>{let U,T,M=!!t.nodes.value.length;U=zt([e.nodes,()=>{var R,H;return(H=(R=e.nodes)==null?void 0:R.value)==null?void 0:H.length}],([R])=>{R&&Array.isArray(R)&&(T?.pause(),t.setNodes(R),!T&&!M&&R.length?M=!0:T?.resume())}),T=zt([t.nodes,()=>t.nodes.value.length],([R])=>{var H;(H=e.nodes)!=null&&H.value&&Array.isArray(e.nodes.value)&&(U?.pause(),e.nodes.value=[...R],(0,r.nextTick)(()=>{U?.resume()}))},{immediate:M}),(0,r.onScopeDispose)(()=>{U?.stop(),T?.stop()})})},u=()=>{n.run(()=>{let U,T,M=!!t.edges.value.length;U=zt([e.edges,()=>{var R,H;return(H=(R=e.edges)==null?void 0:R.value)==null?void 0:H.length}],([R])=>{R&&Array.isArray(R)&&(T?.pause(),t.setEdges(R),!T&&!M&&R.length?M=!0:T?.resume())}),T=zt([t.edges,()=>t.edges.value.length],([R])=>{var H;(H=e.edges)!=null&&H.value&&Array.isArray(e.edges.value)&&(U?.pause(),e.edges.value=[...R],(0,r.nextTick)(()=>{U?.resume()}))},{immediate:M}),(0,r.onScopeDispose)(()=>{U?.stop(),T?.stop()})})},d=()=>{n.run(()=>{(0,r.watch)(()=>A.maxZoom,()=>{A.maxZoom&&se(A.maxZoom)&&t.setMaxZoom(A.maxZoom)},{immediate:!0})})},h=()=>{n.run(()=>{(0,r.watch)(()=>A.minZoom,()=>{A.minZoom&&se(A.minZoom)&&t.setMinZoom(A.minZoom)},{immediate:!0})})},g=()=>{n.run(()=>{(0,r.watch)(()=>A.translateExtent,()=>{A.translateExtent&&se(A.translateExtent)&&t.setTranslateExtent(A.translateExtent)},{immediate:!0})})},B=()=>{n.run(()=>{(0,r.watch)(()=>A.nodeExtent,()=>{A.nodeExtent&&se(A.nodeExtent)&&t.setNodeExtent(A.nodeExtent)},{immediate:!0})})},w=()=>{n.run(()=>{(0,r.watch)(()=>A.applyDefault,()=>{se(A.applyDefault)&&(t.applyDefault.value=A.applyDefault)},{immediate:!0})})},m=()=>{n.run(()=>{const U=async T=>{let M=T;typeof A.autoConnect=="function"&&(M=await A.autoConnect(T)),M!==!1&&t.addEdges([M])};(0,r.watch)(()=>A.autoConnect,()=>{se(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,r.watch)(t.autoConnect,(T,M,R)=>{T?t.onConnect(U):t.hooks.value.connect.off(U),R(()=>{t.hooks.value.connect.off(U)})},{immediate:!0})})},y=()=>{const U=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const T of Object.keys(A)){const M=T;if(!U.includes(M)){const R=(0,r.toRef)(()=>A[M]),H=t[M];(0,r.isRef)(H)&&n.run(()=>{(0,r.watch)(R,P=>{se(P)&&(H.value=P)},{immediate:!0})})}}};o(),a(),u(),h(),d(),g(),B(),w(),m(),y()}),()=>n.stop()}function bB(){return{edgesChange:vA(),nodesChange:vA(),nodeDoubleClick:vA(),nodeClick:vA(),nodeMouseEnter:vA(),nodeMouseMove:vA(),nodeMouseLeave:vA(),nodeContextMenu:vA(),nodeDragStart:vA(),nodeDrag:vA(),nodeDragStop:vA(),nodesInitialized:vA(),miniMapNodeClick:vA(),miniMapNodeDoubleClick:vA(),miniMapNodeMouseEnter:vA(),miniMapNodeMouseMove:vA(),miniMapNodeMouseLeave:vA(),connect:vA(),connectStart:vA(),connectEnd:vA(),clickConnectStart:vA(),clickConnectEnd:vA(),paneReady:vA(),init:vA(),move:vA(),moveStart:vA(),moveEnd:vA(),selectionDragStart:vA(),selectionDrag:vA(),selectionDragStop:vA(),selectionContextMenu:vA(),selectionStart:vA(),selectionEnd:vA(),viewportChangeStart:vA(),viewportChange:vA(),viewportChangeEnd:vA(),paneScroll:vA(),paneClick:vA(),paneContextMenu:vA(),paneMouseEnter:vA(),paneMouseMove:vA(),paneMouseLeave:vA(),edgeContextMenu:vA(),edgeMouseEnter:vA(),edgeMouseMove:vA(),edgeMouseLeave:vA(),edgeDoubleClick:vA(),edgeClick:vA(),edgeUpdateStart:vA(),edgeUpdate:vA(),edgeUpdateEnd:vA(),updateNodeInternals:vA(),error:vA(e=>Tn(e.message))}}function HB(e,A){const t=(0,r.getCurrentInstance)();(0,r.onBeforeMount)(()=>{for(const[o,a]of Object.entries(A.value)){const u=d=>{e(o,d)};a.setEmitter(u),wn(a.removeEmitter),a.setHasEmitListeners(()=>n(o)),wn(a.removeHasEmitListeners)}});function n(o){var a;const u=IB(o);return!!((a=t?.vnode.props)!=null&&a[u])}}function IB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,o)=>o.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function Ya(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:ri.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Sn.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:Nt.Bezier,style:{}},connectionMode:At.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:NaN,y:NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Ir()?"Meta":"Control",zoomActivationKeyCode:Ir()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:bB(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}var _B=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function SB(e,A,t){const n=FB(e),o=_=>{const b=_??[];e.hooks.updateNodeInternals.trigger(b)},a=_=>zh(_,e.nodes,e.edges),u=_=>Gh(_,e.nodes,e.edges),d=_=>wa(_,e.edges),h=({id:_,type:b,nodeId:D})=>{var W;const V=_?`-${b}-${_}`:`-${b}`;return Array.from(((W=e.connectionLookup.get(`${D}${V}`))==null?void 0:W.values())??[])},g=_=>{if(_)return A.value.get(_)},B=_=>{if(_)return t.value.get(_)},w=(_,b,D)=>{var W,V;const pA=[];for(const gA of _){const HA={id:gA.id,type:"position",dragging:D,from:gA.from};if(b&&(HA.position=gA.position,gA.parentNode)){const FA=g(gA.parentNode);HA.position={x:HA.position.x-(((W=FA?.computedPosition)==null?void 0:W.x)??0),y:HA.position.y-(((V=FA?.computedPosition)==null?void 0:V.y)??0)}}pA.push(HA)}pA?.length&&e.hooks.nodesChange.trigger(pA)},m=_=>{if(!e.vueFlowRef)return;const b=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!b)return;const D=window.getComputedStyle(b),{m22:W}=new window.DOMMatrixReadOnly(D.transform),V=[];for(const pA of _){const gA=pA,HA=g(gA.id);if(HA){const FA=br(gA.nodeElement);if(FA.width&&FA.height&&(HA.dimensions.width!==FA.width||HA.dimensions.height!==FA.height||gA.forceUpdate)){const SA=gA.nodeElement.getBoundingClientRect();HA.dimensions=FA,HA.handleBounds.source=Ma("source",gA.nodeElement,SA,W,HA.id),HA.handleBounds.target=Ma("target",gA.nodeElement,SA,W,HA.id),V.push({id:HA.id,type:"dimensions",dimensions:FA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),V.length&&e.hooks.nodesChange.trigger(V)},y=(_,b)=>{const D=new Set,W=new Set;for(const gA of _)kt(gA)?D.add(gA.id):gt(gA)&&W.add(gA.id);const V=Bt(A.value,D,!0),pA=Bt(t.value,W);if(e.multiSelectionActive){for(const gA of D)V.push(ht(gA,b));for(const gA of W)pA.push(ht(gA,b))}V.length&&e.hooks.nodesChange.trigger(V),pA.length&&e.hooks.edgesChange.trigger(pA)},Q=_=>{if(e.multiSelectionActive){const b=_.map(D=>ht(D.id,!0));e.hooks.nodesChange.trigger(b);return}e.hooks.nodesChange.trigger(Bt(A.value,new Set(_.map(b=>b.id)),!0)),e.hooks.edgesChange.trigger(Bt(t.value))},U=_=>{if(e.multiSelectionActive){const b=_.map(D=>ht(D.id,!0));e.hooks.edgesChange.trigger(b);return}e.hooks.edgesChange.trigger(Bt(t.value,new Set(_.map(b=>b.id)))),e.hooks.nodesChange.trigger(Bt(A.value,new Set,!0))},T=_=>{y(_,!0)},M=_=>{const b=(_||e.nodes).map(D=>(D.selected=!1,ht(D.id,!1)));e.hooks.nodesChange.trigger(b)},R=_=>{const b=(_||e.edges).map(D=>(D.selected=!1,ht(D.id,!1)));e.hooks.edgesChange.trigger(b)},H=_=>{if(!_||!_.length)return y([],!1);const b=_.reduce((D,W)=>{const V=ht(W.id,!1);return kt(W)?D.nodes.push(V):D.edges.push(V),D},{nodes:[],edges:[]});b.nodes.length&&e.hooks.nodesChange.trigger(b.nodes),b.edges.length&&e.hooks.edgesChange.trigger(b.edges)},P=_=>{var b;(b=e.d3Zoom)==null||b.scaleExtent([_,e.maxZoom]),e.minZoom=_},iA=_=>{var b;(b=e.d3Zoom)==null||b.scaleExtent([e.minZoom,_]),e.maxZoom=_},Z=_=>{var b;(b=e.d3Zoom)==null||b.translateExtent(_),e.translateExtent=_},aA=_=>{e.nodeExtent=_,o()},lA=_=>{var b;(b=e.d3Zoom)==null||b.clickDistance(_)},rA=_=>{e.nodesDraggable=_,e.nodesConnectable=_,e.elementsSelectable=_},nA=_=>{const b=_ instanceof Function?_(e.nodes):_;!e.initialized&&!b.length||(e.nodes=Oa(b,g,e.hooks.error.trigger))},j=_=>{const b=_ instanceof Function?_(e.edges):_;if(!e.initialized&&!b.length)return;const D=gi(b,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);fi(e.connectionLookup,t.value,D),e.edges=D},S=_=>{const b=_ instanceof Function?_([...e.nodes,...e.edges]):_;!e.initialized&&!b.length||(nA(b.filter(kt)),j(b.filter(gt)))},eA=_=>{let b=_ instanceof Function?_(e.nodes):_;b=Array.isArray(b)?b:[b];const D=Oa(b,g,e.hooks.error.trigger),W=[];for(const V of D)W.push(Ua(V));W.length&&e.hooks.nodesChange.trigger(W)},I=_=>{let b=_ instanceof Function?_(e.edges):_;b=Array.isArray(b)?b:[b];const D=gi(b,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),W=[];for(const V of D)W.push(Ua(V));W.length&&e.hooks.edgesChange.trigger(W)},X=(_,b=!0,D=!1)=>{const W=_ instanceof Function?_(e.nodes):_,V=Array.isArray(W)?W:[W],pA=[],gA=[];function HA(SA){const OA=d(SA);for(const XA of OA)(!se(XA.deletable)||XA.deletable)&&gA.push(Ha(XA.id,XA.source,XA.target,XA.sourceHandle,XA.targetHandle))}function FA(SA){const OA=[];for(const XA of e.nodes)XA.parentNode===SA&&OA.push(XA);if(OA.length){for(const XA of OA)pA.push(ba(XA.id));b&&HA(OA);for(const XA of OA)FA(XA.id)}}for(const SA of V){const OA=typeof SA=="string"?g(SA):SA;OA&&(se(OA.deletable)&&!OA.deletable||(pA.push(ba(OA.id)),b&&HA([OA]),D&&FA(OA.id)))}gA.length&&e.hooks.edgesChange.trigger(gA),pA.length&&e.hooks.nodesChange.trigger(pA)},F=_=>{const b=_ instanceof Function?_(e.edges):_,D=Array.isArray(b)?b:[b],W=[];for(const V of D){const pA=typeof V=="string"?B(V):V;pA&&(se(pA.deletable)&&!pA.deletable||W.push(Ha(typeof V=="string"?V:V.id,pA.source,pA.target,pA.sourceHandle,pA.targetHandle)))}e.hooks.edgesChange.trigger(W)},x=(_,b,D=!0)=>{const W=B(_.id);if(!W)return!1;const V=e.edges.indexOf(W),pA=gB(_,b,W,D,e.hooks.error.trigger);if(pA){const[gA]=gi([pA],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((HA,FA)=>FA===V?gA:HA),fi(e.connectionLookup,t.value,[gA]),gA}return!1},N=(_,b,D={replace:!1})=>{const W=B(_);if(!W)return;const V=typeof b=="function"?b(W):b;W.data=D.replace?V:{...W.data,...V}},L=_=>Fa(_,e.nodes),O=_=>{const b=Fa(_,e.edges);return fi(e.connectionLookup,t.value,b),b},J=(_,b,D={replace:!1})=>{const W=g(_);if(!W)return;const V=typeof b=="function"?b(W):b;D.replace?e.nodes.splice(e.nodes.indexOf(W),1,V):Object.assign(W,V)},tA=(_,b,D={replace:!1})=>{const W=g(_);if(!W)return;const V=typeof b=="function"?b(W):b;W.data=D.replace?V:{...W.data,...V}},dA=(_,b,D=!1)=>{D?e.connectionClickStartHandle=_:e.connectionStartHandle=_,e.connectionEndHandle=null,e.connectionStatus=null,b&&(e.connectionPosition=b)},UA=(_,b=null,D=null)=>{e.connectionStartHandle&&(e.connectionPosition=_,e.connectionEndHandle=b,e.connectionStatus=D)},G=(_,b)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,b?e.connectionClickStartHandle=null:e.connectionStartHandle=null},Y=_=>{const b=Vh(_),D=b?null:Dn(_)?_:g(_.id);return!b&&!D?[null,null,b]:[b?_:Fr(D),D,b]},$=(_,b=!0,D=e.nodes)=>{const[W,V,pA]=Y(_);if(!W)return[];const gA=[];for(const HA of D||e.nodes){if(!pA&&(HA.id===V.id||!HA.computedPosition))continue;const FA=Fr(HA),SA=Ur(FA,W);(b&&SA>0||SA>=FA.width*FA.height||SA>=Number(W.width)*Number(W.height))&&gA.push(HA)}return gA},oA=(_,b,D=!0)=>{const[W]=Y(_);if(!W)return!1;const V=Ur(W,b);return D&&V>0||V>=Number(W.width)*Number(W.height)},BA=_=>{const{viewport:b,dimensions:D,d3Zoom:W,d3Selection:V,translateExtent:pA}=e;if(!W||!V||!_.x&&!_.y)return!1;const gA=Jt.translate(b.x+_.x,b.y+_.y).scale(b.zoom),HA=[[0,0],[D.width,D.height]],FA=W.constrain()(gA,HA,pA),SA=e.viewport.x!==FA.x||e.viewport.y!==FA.y||e.viewport.zoom!==FA.k;return W.transform(V,FA),SA},wA=_=>{const b=_ instanceof Function?_(e):_,D=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];se(b.defaultEdgeOptions)&&(e.defaultEdgeOptions=b.defaultEdgeOptions);const W=b.modelValue||b.nodes||b.edges?[]:void 0;W&&(b.modelValue&&W.push(...b.modelValue),b.nodes&&W.push(...b.nodes),b.edges&&W.push(...b.edges),S(W));const V=()=>{se(b.maxZoom)&&iA(b.maxZoom),se(b.minZoom)&&P(b.minZoom),se(b.translateExtent)&&Z(b.translateExtent)};for(const pA of Object.keys(b)){const gA=pA,HA=b[gA];![..._B,...D].includes(gA)&&se(HA)&&(e[gA]=HA)}To(()=>e.d3Zoom).not.toBeNull().then(V),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:S,setNodes:nA,setEdges:j,addNodes:eA,addEdges:I,removeNodes:X,removeEdges:F,findNode:g,findEdge:B,updateEdge:x,updateEdgeData:N,updateNode:J,updateNodeData:tA,applyEdgeChanges:O,applyNodeChanges:L,addSelectedElements:T,addSelectedNodes:Q,addSelectedEdges:U,setMinZoom:P,setMaxZoom:iA,setTranslateExtent:Z,setNodeExtent:aA,setPaneClickDistance:lA,removeSelectedElements:H,removeSelectedNodes:M,removeSelectedEdges:R,startConnection:dA,updateConnection:UA,endConnection:G,setInteractive:rA,setState:wA,getIntersectingNodes:$,getIncomers:a,getOutgoers:u,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:oA,panBy:BA,fitView:_=>n.value.fitView(_),zoomIn:_=>n.value.zoomIn(_),zoomOut:_=>n.value.zoomOut(_),zoomTo:(_,b)=>n.value.zoomTo(_,b),setViewport:(_,b)=>n.value.setViewport(_,b),setTransform:(_,b)=>n.value.setTransform(_,b),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(_,b,D)=>n.value.setCenter(_,b,D),fitBounds:(_,b)=>n.value.fitBounds(_,b),project:_=>n.value.project(_),screenToFlowCoordinate:_=>n.value.screenToFlowCoordinate(_),flowToScreenCoordinate:_=>n.value.flowToScreenCoordinate(_),toObject:()=>{const _=[],b=[];for(const D of e.nodes){const{computedPosition:W,handleBounds:V,selected:pA,dimensions:gA,isParent:HA,resizing:FA,dragging:SA,events:OA,...XA}=D;_.push(XA)}for(const D of e.edges){const{selected:W,sourceNode:V,targetNode:pA,events:gA,...HA}=D;b.push(HA)}return JSON.parse(JSON.stringify({nodes:_,edges:b,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:_=>new Promise(b=>{const{nodes:D,edges:W,position:V,zoom:pA,viewport:gA}=_;D&&nA(D),W&&j(W);const[HA,FA]=gA?.x&&gA?.y?[gA.x,gA.y]:V??[null,null];if(HA&&FA){const SA=gA?.zoom||pA||e.viewport.zoom;return To(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:HA,y:FA,zoom:SA}).then(()=>{b(!0)})})}else b(!0)}),updateNodeInternals:o,viewportHelper:n,$reset:()=>{const _=Ya();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const b=Jt.translate(_.defaultViewport.x??0,_.defaultViewport.y??0).scale(Lt(_.defaultViewport.zoom??1,_.minZoom,_.maxZoom)),D=e.viewportRef.getBoundingClientRect(),W=[[0,0],[D.width,D.height]],V=e.d3Zoom.constrain()(b,W,_.translateExtent);e.d3Zoom.transform(e.d3Selection,V)}wA(_)},$destroy:()=>{}}}var xB=["data-id","data-handleid","data-nodeid","data-handlepos"],An=(0,r.defineComponent)({name:"Handle",compatConfig:{MODE:3},props:{id:{default:null},type:{},position:{default:()=>IA.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(e,{expose:A}){const t=(0,r.createPropsRestProxy)(e,["position","connectable","connectableStart","connectableEnd","id"]),n=(0,r.toRef)(()=>t.type??"source"),o=(0,r.toRef)(()=>t.isValidConnection??null),{id:a,connectionStartHandle:u,connectionClickStartHandle:d,connectionEndHandle:h,vueFlowRef:g,nodesConnectable:B,noDragClassName:w,noPanClassName:m}=YA(),{id:y,node:Q,nodeEl:U,connectedEdges:T}=$a(),M=(0,r.ref)(),R=(0,r.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),H=(0,r.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),P=(0,r.toRef)(()=>{var j,S,eA,I,X,F;return((j=u.value)==null?void 0:j.nodeId)===y&&((S=u.value)==null?void 0:S.id)===e.id&&((eA=u.value)==null?void 0:eA.type)===n.value||((I=h.value)==null?void 0:I.nodeId)===y&&((X=h.value)==null?void 0:X.id)===e.id&&((F=h.value)==null?void 0:F.type)===n.value}),iA=(0,r.toRef)(()=>{var j,S,eA;return((j=d.value)==null?void 0:j.nodeId)===y&&((S=d.value)==null?void 0:S.id)===e.id&&((eA=d.value)==null?void 0:eA.type)===n.value}),{handlePointerDown:Z,handleClick:aA}=Xa({nodeId:y,handleId:e.id,isValidConnection:o,type:n}),lA=(0,r.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!T.value.some(j=>{const S=j[`${n.value}Handle`];return j[n.value]!==y?!1:S?S===e.id:!0}):typeof e.connectable=="number"?T.value.filter(j=>{const S=j[`${n.value}Handle`];return j[n.value]!==y?!1:S?S===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(Q,T.value):se(e.connectable)?e.connectable:B.value);(0,r.onMounted)(()=>{var j;if(!Q.dimensions.width||!Q.dimensions.height)return;const S=(j=Q.handleBounds[n.value])==null?void 0:j.find(L=>L.id===e.id);if(!g.value||S)return;const eA=g.value.querySelector(".vue-flow__transformationpane");if(!U.value||!M.value||!eA||!e.id)return;const I=U.value.getBoundingClientRect(),X=M.value.getBoundingClientRect(),F=window.getComputedStyle(eA),{m22:x}=new window.DOMMatrixReadOnly(F.transform),N={id:e.id,position:e.position,x:(X.left-I.left)/x,y:(X.top-I.top)/x,type:n.value,nodeId:y,...br(M.value)};Q.handleBounds[n.value]=[...Q.handleBounds[n.value]??[],N]});function rA(j){const S=li(j);lA.value&&R.value&&(S&&j.button===0||!S)&&Z(j)}function nA(j){!y||!d.value&&!R.value||lA.value&&aA(j)}return A({handleClick:aA,handlePointerDown:Z,onClick:nA,onPointerDown:rA}),(j,S)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"handle",ref:M,"data-id":`${(0,r.unref)(a)}-${(0,r.unref)(y)}-${e.id}-${n.value}`,"data-handleid":e.id,"data-nodeid":(0,r.unref)(y),"data-handlepos":j.position,class:(0,r.normalizeClass)(["vue-flow__handle",[`vue-flow__handle-${j.position}`,`vue-flow__handle-${e.id}`,(0,r.unref)(w),(0,r.unref)(m),n.value,{connectable:lA.value,connecting:iA.value,connectablestart:R.value,connectableend:H.value,connectionindicator:lA.value&&(R.value&&!P.value||H.value&&P.value)}]]),onMousedown:rA,onTouchstartPassive:rA,onClick:nA},[(0,r.renderSlot)(j.$slots,"default",{id:j.id})],42,xB))}}),Nr=function({sourcePosition:e=IA.Bottom,targetPosition:A=IA.Top,label:t,connectable:n=!0,isValidTargetPos:o,isValidSourcePos:a,data:u}){const d=u.label??t;return[(0,r.h)(An,{type:"target",position:A,connectable:n,isValidConnection:o}),typeof d!="string"&&d?(0,r.h)(d):(0,r.h)(r.Fragment,[d]),(0,r.h)(An,{type:"source",position:e,connectable:n,isValidConnection:a})]};Nr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],Nr.inheritAttrs=!1,Nr.compatConfig={MODE:3};var DB=Nr,Lr=function({targetPosition:e=IA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:o}){const a=o.label??A;return[(0,r.h)(An,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a])]};Lr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Lr.inheritAttrs=!1,Lr.compatConfig={MODE:3};var NB=Lr,kr=function({sourcePosition:e=IA.Bottom,label:A,connectable:t=!0,isValidSourcePos:n,data:o}){const a=o.label??A;return[typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a]),(0,r.h)(An,{type:"source",position:e,connectable:t,isValidConnection:n})]};kr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],kr.inheritAttrs=!1,kr.compatConfig={MODE:3};var LB=kr,kB=["transform"],TB=["width","height","x","y","rx","ry"],MB=["y"],OB=(0,r.defineComponent)({name:"EdgeText",compatConfig:{MODE:3},props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(e){const A=(0,r.ref)({x:0,y:0,width:0,height:0}),t=(0,r.ref)(null),n=(0,r.computed)(()=>`translate(${e.x-A.value.width/2} ${e.y-A.value.height/2})`);(0,r.onMounted)(o),(0,r.watch)([()=>e.x,()=>e.y,t,()=>e.label],o);function o(){if(!t.value)return;const a=t.value.getBBox();(a.width!==A.value.width||a.height!==A.value.height)&&(A.value=a)}return(a,u)=>((0,r.openBlock)(),(0,r.createElementBlock)("g",{transform:n.value,class:"vue-flow__edge-textwrapper"},[a.labelShowBg?((0,r.openBlock)(),(0,r.createElementBlock)("rect",{key:0,class:"vue-flow__edge-textbg",width:`${A.value.width+2*a.labelBgPadding[0]}px`,height:`${A.value.height+2*a.labelBgPadding[1]}px`,x:-a.labelBgPadding[0],y:-a.labelBgPadding[1],style:(0,r.normalizeStyle)(a.labelBgStyle),rx:a.labelBgBorderRadius,ry:a.labelBgBorderRadius},null,12,TB)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("text",(0,r.mergeProps)(a.$attrs,{ref_key:"el",ref:t,class:"vue-flow__edge-text",y:A.value.height/2,dy:"0.3em",style:a.labelStyle}),[(0,r.renderSlot)(a.$slots,"default",{},()=>[typeof a.label!="string"?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(a.label),{key:0})):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(a.label),1)],64))])],16,MB)],8,kB))}}),KB=["id","d","marker-end","marker-start"],RB=["d","stroke-width"],Mn=(0,r.defineComponent)({name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3},props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(e,{expose:A}){const t=(0,r.ref)(null),n=(0,r.ref)(null),o=(0,r.ref)(null),a=(0,r.useAttrs)();return A({pathEl:t,interactionEl:n,labelEl:o}),(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("path",(0,r.mergeProps)((0,r.unref)(a),{id:u.id,ref_key:"pathEl",ref:t,d:u.path,class:"vue-flow__edge-path","marker-end":u.markerEnd,"marker-start":u.markerStart}),null,16,KB),u.interactionWidth?((0,r.openBlock)(),(0,r.createElementBlock)("path",{key:0,ref_key:"interactionEl",ref:n,fill:"none",d:u.path,"stroke-width":u.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,RB)):(0,r.createCommentVNode)("",!0),u.label&&u.labelX&&u.labelY?((0,r.openBlock)(),(0,r.createBlock)(OB,{key:1,ref_key:"labelEl",ref:o,x:u.labelX,y:u.labelY,label:u.label,"label-show-bg":u.labelShowBg,"label-bg-style":u.labelBgStyle,"label-bg-padding":u.labelBgPadding,"label-bg-border-radius":u.labelBgBorderRadius,"label-style":u.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):(0,r.createCommentVNode)("",!0)],64))}});function Ja({sourceX:e,sourceY:A,targetX:t,targetY:n}){const o=Math.abs(t-e)/2,a=t<e?t+o:t-o,u=Math.abs(n-A)/2;return[a,n<A?n+u:n-u,o,u]}function Za({sourceX:e,sourceY:A,targetX:t,targetY:n,sourceControlX:o,sourceControlY:a,targetControlX:u,targetControlY:d}){const h=e*.125+o*.375+u*.375+t*.125,g=A*.125+a*.375+d*.375+n*.125;return[h,g,Math.abs(h-e),Math.abs(g-A)]}function Tr(e,A){return e>=0?.5*e:A*25*Math.sqrt(-e)}function ja({pos:e,x1:A,y1:t,x2:n,y2:o,c:a}){let u,d;switch(e){case IA.Left:u=A-Tr(A-n,a),d=t;break;case IA.Right:u=A+Tr(n-A,a),d=t;break;case IA.Top:u=A,d=t-Tr(t-o,a);break;case IA.Bottom:u=A,d=t+Tr(o-t,a);break}return[u,d]}function Bi(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top,curvature:d=.25}=e,[h,g]=ja({pos:n,x1:A,y1:t,x2:o,y2:a,c:d}),[B,w]=ja({pos:u,x1:o,y1:a,x2:A,y2:t,c:d}),[m,y,Q,U]=Za({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:h,sourceControlY:g,targetControlX:B,targetControlY:w});return[`M${A},${t} C${h},${g} ${B},${w} ${o},${a}`,m,y,Q,U]}function qa({pos:e,x1:A,y1:t,x2:n,y2:o}){let a,u;switch(e){case IA.Left:case IA.Right:a=.5*(A+n),u=t;break;case IA.Top:case IA.Bottom:a=A,u=.5*(t+o);break}return[a,u]}function Al(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top}=e,[d,h]=qa({pos:n,x1:A,y1:t,x2:o,y2:a}),[g,B]=qa({pos:u,x1:o,y1:a,x2:A,y2:t}),[w,m,y,Q]=Za({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:d,sourceControlY:h,targetControlX:g,targetControlY:B});return[`M${A},${t} C${d},${h} ${g},${B} ${o},${a}`,w,m,y,Q]}var el={[IA.Left]:{x:-1,y:0},[IA.Right]:{x:1,y:0},[IA.Top]:{x:0,y:-1},[IA.Bottom]:{x:0,y:1}};function VB({source:e,sourcePosition:A=IA.Bottom,target:t}){return A===IA.Left||A===IA.Right?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1}}function tl(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function PB({source:e,sourcePosition:A=IA.Bottom,target:t,targetPosition:n=IA.Top,center:o,offset:a}){const u=el[A],d=el[n],h={x:e.x+u.x*a,y:e.y+u.y*a},g={x:t.x+d.x*a,y:t.y+d.y*a},B=VB({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let y,Q,U;const T={x:0,y:0},M={x:0,y:0},[R,H,P,iA]=Ja({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[w]*d[w]===-1){Q=o.x??R,U=o.y??H;const Z=[{x:Q,y:h.y},{x:Q,y:g.y}],aA=[{x:h.x,y:U},{x:g.x,y:U}];u[w]===m?y=w==="x"?Z:aA:y=w==="x"?aA:Z}else{const Z=[{x:h.x,y:g.y}],aA=[{x:g.x,y:h.y}];if(w==="x"?y=u.x===m?aA:Z:y=u.y===m?Z:aA,A===n){const nA=Math.abs(e[w]-t[w]);if(nA<=a){const j=Math.min(a-1,a-nA);u[w]===m?T[w]=(h[w]>e[w]?-1:1)*j:M[w]=(g[w]>t[w]?-1:1)*j}}if(A!==n){const nA=w==="x"?"y":"x",j=u[w]===d[nA],S=h[nA]>g[nA],eA=h[nA]<g[nA];(u[w]===1&&(!j&&S||j&&eA)||u[w]!==1&&(!j&&eA||j&&S))&&(y=w==="x"?Z:aA)}const lA={x:h.x+T.x,y:h.y+T.y},rA={x:g.x+M.x,y:g.y+M.y};Math.max(Math.abs(lA.x-y[0].x),Math.abs(rA.x-y[0].x))>=Math.max(Math.abs(lA.y-y[0].y),Math.abs(rA.y-y[0].y))?(Q=(lA.x+rA.x)/2,U=y[0].y):(Q=y[0].x,U=(lA.y+rA.y)/2)}return[[e,{x:h.x+T.x,y:h.y+T.y},...y,{x:g.x+M.x,y:g.y+M.y},t],Q,U,P,iA]}function GB(e,A,t,n){const o=Math.min(tl(e,A)/2,tl(A,t)/2,n),{x:a,y:u}=A;if(e.x===a&&a===t.x||e.y===u&&u===t.y)return`L${a} ${u}`;if(e.y===u){const h=e.x<t.x?-1:1,g=e.y<t.y?1:-1;return`L ${a+o*h},${u}Q ${a},${u} ${a},${u+o*g}`}const d=e.x<t.x?1:-1;return`L ${a},${u+o*(e.y<t.y?-1:1)}Q ${a},${u} ${a+o*d},${u}`}function pi(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top,borderRadius:d=5,centerX:h,centerY:g,offset:B=20}=e,[w,m,y,Q,U]=PB({source:{x:A,y:t},sourcePosition:n,target:{x:o,y:a},targetPosition:u,center:{x:h,y:g},offset:B});return[w.reduce((T,M,R)=>{let H;return R>0&&R<w.length-1?H=GB(w[R-1],M,w[R+1],d):H=`${R===0?"M":"L"}${M.x} ${M.y}`,T+=H,T},""),m,y,Q,U]}function zB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:o}=e,[a,u,d,h]=Ja({sourceX:A,sourceY:t,targetX:n,targetY:o});return[`M ${A},${t}L ${n},${o}`,a,u,d,h]}var XB=(0,r.defineComponent)({name:"StraightEdge",props:["label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=zB(e);return(0,r.h)(Mn,{path:t,labelX:n,labelY:o,...A,...e})}}}),nl=(0,r.defineComponent)({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=pi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Mn,{path:t,labelX:n,labelY:o,...A,...e})}}}),$B=(0,r.defineComponent)({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(e,{attrs:A}){return()=>(0,r.h)(nl,{...e,...A,borderRadius:0})}}),WB=(0,r.defineComponent)({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=Bi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Mn,{path:t,labelX:n,labelY:o,...A,...e})}}}),YB=(0,r.defineComponent)({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=Al({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Mn,{path:t,labelX:n,labelY:o,...A,...e})}}}),JB={input:LB,default:DB,output:NB},ZB={default:WB,straight:XB,step:$B,smoothstep:nl,simplebezier:YB};function jB(e,A,t){const n=(0,r.computed)(()=>Q=>A.value.get(Q)),o=(0,r.computed)(()=>Q=>t.value.get(Q)),a=(0,r.computed)(()=>{const Q={...ZB,...e.edgeTypes},U=Object.keys(Q);for(const T of e.edges)T.type&&!U.includes(T.type)&&(Q[T.type]=T.type);return Q}),u=(0,r.computed)(()=>{const Q={...JB,...e.nodeTypes},U=Object.keys(Q);for(const T of e.nodes)T.type&&!U.includes(T.type)&&(Q[T.type]=T.type);return Q}),d=(0,r.computed)(()=>e.onlyRenderVisibleElements?ma(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),h=(0,r.computed)(()=>{if(e.onlyRenderVisibleElements){const Q=[];for(const U of e.edges){const T=A.value.get(U.source),M=A.value.get(U.target);tB({sourcePos:T.computedPosition||{x:0,y:0},targetPos:M.computedPosition||{x:0,y:0},sourceWidth:T.dimensions.width,sourceHeight:T.dimensions.height,targetWidth:M.dimensions.width,targetHeight:M.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&Q.push(U)}return Q}return e.edges}),g=(0,r.computed)(()=>[...d.value,...h.value]),B=(0,r.computed)(()=>{const Q=[];for(const U of e.nodes)U.selected&&Q.push(U);return Q}),w=(0,r.computed)(()=>{const Q=[];for(const U of e.edges)U.selected&&Q.push(U);return Q}),m=(0,r.computed)(()=>[...B.value,...w.value]),y=(0,r.computed)(()=>{const Q=[];for(const U of e.nodes)U.dimensions.width&&U.dimensions.height&&U.handleBounds!==void 0&&Q.push(U);return Q});return{getNode:n,getEdge:o,getElements:g,getEdgeTypes:a,getNodeTypes:u,getEdges:h,getNodes:d,getSelectedElements:m,getSelectedNodes:B,getSelectedEdges:w,getNodesInitialized:y,areNodesInitialized:(0,r.computed)(()=>d.value.length>0&&y.value.length===d.value.length)}}var qB=class Bn{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var A;const t=(A=(0,r.getCurrentInstance)())==null?void 0:A.appContext.app;return Bn.instance=t?.config.globalProperties.$vueFlowStorage??Bn.instance??new Bn,t&&(t.config.globalProperties.$vueFlowStorage=Bn.instance),Bn.instance}set(A,t){return this.flows.set(A,t)}get(A){return this.flows.get(A)}remove(A){return this.flows.delete(A)}create(A,t){const n=(0,r.reactive)(Ya()),o={};for(const[w,m]of Object.entries(n.hooks)){const y=`on${w.charAt(0).toUpperCase()+w.slice(1)}`;o[y]=m.on}const a={};for(const[w,m]of Object.entries(n.hooks))a[w]=m.trigger;const u=(0,r.computed)(()=>{const w=new Map;for(const m of n.nodes)w.set(m.id,m);return w}),d=(0,r.computed)(()=>{const w=new Map;for(const m of n.edges)w.set(m.id,m);return w}),h=jB(n,u,d),g=SB(n,u,d);g.setState({...n,...t});const B={...o,...h,...g,...Ju(n),nodeLookup:u,edgeLookup:d,emits:a,id:A,vueFlowVersion:"1.48.2",$destroy:()=>{this.remove(A)}};return this.set(A,B),B}getId(){return`vue-flow-${this.currentId++}`}};function YA(e){const A=qB.getInstance(),t=(0,r.getCurrentScope)(),n=typeof e=="object",o=n?e:{id:e},a=o.id,u=a??t?.vueFlowId;let d;if(t){const h=(0,r.inject)(Va,null);typeof h<"u"&&h!==null&&(!u||h.id===u)&&(d=h)}if(d||u&&(d=A.get(u)),!d||u&&d.id!==u){const h=a??A.getId(),g=A.create(h,o);d=g,(t??(0,r.effectScope)(!0)).run(()=>{(0,r.watch)(g.applyDefault,(B,w,m)=>{const y=U=>{g.applyNodeChanges(U)},Q=U=>{g.applyEdgeChanges(U)};B?(g.onNodesChange(y),g.onEdgesChange(Q)):(g.hooks.value.nodesChange.off(y),g.hooks.value.edgesChange.off(Q)),m(()=>{g.hooks.value.nodesChange.off(y),g.hooks.value.edgesChange.off(Q)})},{immediate:!0}),wn(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Tn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(o);if(t&&((0,r.provide)(Va,d),t.vueFlowId=d.id),n){const h=(0,r.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new ue(ie.USEVUEFLOW_OPTIONS))}return d}function Ap(e){const{emits:A,dimensions:t}=YA();let n;(0,r.onMounted)(()=>{const o=()=>{var a,u;if(!e.value||!(((u=(a=e.value).checkVisibility)==null?void 0:u.call(a))??!0))return;const d=br(e.value);(d.width===0||d.height===0)&&A.error(new ue(ie.MISSING_VIEWPORT_DIMENSIONS)),t.value={width:d.width||500,height:d.height||500}};o(),window.addEventListener("resize",o),e.value&&(n=new ResizeObserver(()=>o()),n.observe(e.value)),(0,r.onBeforeUnmount)(()=>{window.removeEventListener("resize",o),n&&e.value&&n.unobserve(e.value)})})}var ep=(0,r.defineComponent)({name:"UserSelection",compatConfig:{MODE:3},props:{userSelectionRect:{}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__selection vue-flow__container",style:(0,r.normalizeStyle)({width:`${A.userSelectionRect.width}px`,height:`${A.userSelectionRect.height}px`,transform:`translate(${A.userSelectionRect.x}px, ${A.userSelectionRect.y}px)`})},null,4))}}),tp=["tabIndex"],np=(0,r.defineComponent)({name:"NodesSelection",compatConfig:{MODE:3},setup(e){const{emits:A,viewport:t,getSelectedNodes:n,noPanClassName:o,disableKeyboardA11y:a,userSelectionActive:u}=YA(),d=Wa(),h=(0,r.ref)(null),g=za({el:h,onStart(Q){A.selectionDragStart(Q),A.nodeDragStart(Q)},onDrag(Q){A.selectionDrag(Q),A.nodeDrag(Q)},onStop(Q){A.selectionDragStop(Q),A.nodeDragStop(Q)}});(0,r.onMounted)(()=>{var Q;a.value||(Q=h.value)==null||Q.focus({preventScroll:!0})});const B=(0,r.computed)(()=>pa(n.value)),w=(0,r.computed)(()=>({width:`${B.value.width}px`,height:`${B.value.height}px`,top:`${B.value.y}px`,left:`${B.value.x}px`}));function m(Q){A.selectionContextMenu({event:Q,nodes:n.value})}function y(Q){a.value||Zt[Q.key]&&(Q.preventDefault(),d({x:Zt[Q.key].x,y:Zt[Q.key].y},Q.shiftKey))}return(Q,U)=>!(0,r.unref)(u)&&B.value.width&&B.value.height?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["vue-flow__nodesselection vue-flow__container",(0,r.unref)(o)]),style:(0,r.normalizeStyle)({transform:`translate(${(0,r.unref)(t).x}px,${(0,r.unref)(t).y}px) scale(${(0,r.unref)(t).zoom})`})},[(0,r.createElementVNode)("div",{ref_key:"el",ref:h,class:(0,r.normalizeClass)([{dragging:(0,r.unref)(g)},"vue-flow__nodesselection-rect"]),style:(0,r.normalizeStyle)(w.value),tabIndex:(0,r.unref)(a)?void 0:-1,onContextmenu:m,onKeydown:y},null,46,tp)],6)):(0,r.createCommentVNode)("",!0)}});function rp(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var op=(0,r.defineComponent)({name:"Pane",compatConfig:{MODE:3},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:A,nodes:t,viewport:n,emits:o,userSelectionActive:a,removeSelectedElements:u,userSelectionRect:d,elementsSelectable:h,nodesSelectionActive:g,getSelectedEdges:B,getSelectedNodes:w,removeNodes:m,removeEdges:y,selectionMode:Q,deleteKeyCode:U,multiSelectionKeyCode:T,multiSelectionActive:M,edgeLookup:R,nodeLookup:H,connectionLookup:P,defaultEdgeOptions:iA,connectionStartHandle:Z,panOnDrag:aA}=YA(),lA=(0,r.shallowRef)(null),rA=(0,r.shallowRef)(new Set),nA=(0,r.shallowRef)(new Set),j=(0,r.shallowRef)(null),S=(0,r.toRef)(()=>h.value&&(e.isSelecting||a.value)),eA=(0,r.toRef)(()=>Z.value!==null);let I=!1,X=!1;const F=xn(U,{actInsideInputWithModifier:!1}),x=xn(T);(0,r.watch)(F,G=>{G&&(m(w.value),y(B.value),g.value=!1)}),(0,r.watch)(x,G=>{M.value=G});function N(G,Y){return $=>{$.target===Y&&G?.($)}}function L(G){if(I||eA.value){I=!1;return}o.paneClick(G),u(),g.value=!1}function O(G){var Y;if(Array.isArray(aA.value)&&((Y=aA.value)!=null&&Y.includes(2))){G.preventDefault();return}o.paneContextMenu(G)}function J(G){o.paneScroll(G)}function tA(G){var Y,$,oA;if(j.value=((Y=A.value)==null?void 0:Y.getBoundingClientRect())??null,!h.value||!e.isSelecting||G.button!==0||G.target!==lA.value||!j.value)return;(oA=($=G.target)==null?void 0:$.setPointerCapture)==null||oA.call($,G.pointerId);const{x:BA,y:wA}=rp(G,j.value);X=!0,I=!1,u(),d.value={width:0,height:0,startX:BA,startY:wA,x:BA,y:wA},o.selectionStart(G)}function dA(G){var Y;if(!j.value||!d.value)return;I=!0;const{x:$,y:oA}=Ge(G,j.value),{startX:BA=0,startY:wA=0}=d.value,bA={startX:BA,startY:wA,x:$<BA?$:BA,y:oA<wA?oA:wA,width:Math.abs($-BA),height:Math.abs(oA-wA)},uA=rA.value,hA=nA.value;rA.value=new Set(ma(t.value,bA,n.value,Q.value===ri.Partial,!0).map(b=>b.id)),nA.value=new Set;const _=((Y=iA.value)==null?void 0:Y.selectable)??!0;for(const b of rA.value){const D=P.value.get(b);if(D)for(const{edgeId:W}of D.values()){const V=R.value.get(W);V&&(V.selectable??_)&&nA.value.add(W)}}if(!Ra(uA,rA.value)){const b=Bt(H.value,rA.value,!0);o.nodesChange(b)}if(!Ra(hA,nA.value)){const b=Bt(R.value,nA.value);o.edgesChange(b)}d.value=bA,a.value=!0,g.value=!1}function UA(G){var Y;G.button!==0||!X||((Y=G.target)==null||Y.releasePointerCapture(G.pointerId),!a.value&&d.value&&G.target===lA.value&&L(G),a.value=!1,d.value=null,g.value=rA.value.size>0,o.selectionEnd(G),e.selectionKeyPressed&&(I=!1),X=!1)}return(G,Y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"container",ref:lA,class:(0,r.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:G.isSelecting}]),onClick:Y[0]||(Y[0]=$=>S.value?void 0:N(L,lA.value)($)),onContextmenu:Y[1]||(Y[1]=$=>N(O,lA.value)($)),onWheelPassive:Y[2]||(Y[2]=$=>N(J,lA.value)($)),onPointerenter:Y[3]||(Y[3]=$=>S.value?void 0:(0,r.unref)(o).paneMouseEnter($)),onPointerdown:Y[4]||(Y[4]=$=>S.value?tA($):(0,r.unref)(o).paneMouseMove($)),onPointermove:Y[5]||(Y[5]=$=>S.value?dA($):(0,r.unref)(o).paneMouseMove($)),onPointerup:Y[6]||(Y[6]=$=>S.value?UA($):void 0),onPointerleave:Y[7]||(Y[7]=$=>(0,r.unref)(o).paneMouseLeave($))},[(0,r.renderSlot)(G.$slots,"default"),(0,r.unref)(a)&&(0,r.unref)(d)?((0,r.openBlock)(),(0,r.createBlock)(ep,{key:0,"user-selection-rect":(0,r.unref)(d)},null,8,["user-selection-rect"])):(0,r.createCommentVNode)("",!0),(0,r.unref)(g)&&(0,r.unref)(w).length?((0,r.openBlock)(),(0,r.createBlock)(np,{key:1})):(0,r.createCommentVNode)("",!0)],34))}}),ip=(0,r.defineComponent)({name:"Transform",compatConfig:{MODE:3},setup(e){const{viewport:A,fitViewOnInit:t,fitViewOnInitDone:n}=YA(),o=(0,r.computed)(()=>t.value?!n.value:!1),a=(0,r.computed)(()=>`translate(${A.value.x}px,${A.value.y}px) scale(${A.value.zoom})`);return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__transformationpane vue-flow__container",style:(0,r.normalizeStyle)({transform:a.value,opacity:o.value?0:void 0})},[(0,r.renderSlot)(u.$slots,"default")],4))}}),sp=(0,r.defineComponent)({name:"Viewport",compatConfig:{MODE:3},setup(e){const{minZoom:A,maxZoom:t,defaultViewport:n,translateExtent:o,zoomActivationKeyCode:a,selectionKeyCode:u,panActivationKeyCode:d,panOnScroll:h,panOnScrollMode:g,panOnScrollSpeed:B,panOnDrag:w,zoomOnDoubleClick:m,zoomOnPinch:y,zoomOnScroll:Q,preventScrolling:U,noWheelClassName:T,noPanClassName:M,emits:R,connectionStartHandle:H,userSelectionActive:P,paneDragging:iA,d3Zoom:Z,d3Selection:aA,d3ZoomHandler:lA,viewport:rA,viewportRef:nA,paneClickDistance:j}=YA();Ap(nA);const S=(0,r.shallowRef)(!1),eA=(0,r.shallowRef)(!1);let I=null,X=!1,F=0,x={x:0,y:0,zoom:0};const N=xn(d),L=xn(u),O=xn(a),J=(0,r.toRef)(()=>(!L.value||L.value&&u.value===!0)&&(N.value||w.value)),tA=(0,r.toRef)(()=>N.value||h.value),dA=(0,r.toRef)(()=>u.value===!0&&J.value!==!0),UA=(0,r.toRef)(()=>L.value&&u.value!==!0||P.value||dA.value),G=(0,r.toRef)(()=>H.value!==null);(0,r.onMounted)(()=>{if(!nA.value){Tn("Viewport element is missing");return}const wA=nA.value,bA=wA.getBoundingClientRect(),uA=Lh().clickDistance(j.value).scaleExtent([A.value,t.value]).translateExtent(o.value),hA=Le(wA).call(uA),_=hA.on("wheel.zoom"),b=Jt.translate(n.value.x??0,n.value.y??0).scale(Lt(n.value.zoom??1,A.value,t.value)),D=[[0,0],[bA.width,bA.height]],W=uA.constrain()(b,D,o.value);uA.transform(hA,W),uA.wheelDelta(va),Z.value=uA,aA.value=hA,lA.value=_,rA.value={x:W.x,y:W.y,zoom:W.k},uA.on("start",V=>{var pA;if(!V.sourceEvent)return null;F=V.sourceEvent.button,S.value=!0;const gA=oA(V.transform);((pA=V.sourceEvent)==null?void 0:pA.type)==="mousedown"&&(iA.value=!0),x=gA,R.viewportChangeStart(gA),R.moveStart({event:V,flowTransform:gA})}),uA.on("end",V=>{if(!V.sourceEvent)return null;if(S.value=!1,iA.value=!1,Y(J.value,F??0)&&!X&&R.paneContextMenu(V.sourceEvent),X=!1,$(x,V.transform)){const pA=oA(V.transform);x=pA,R.viewportChangeEnd(pA),R.moveEnd({event:V,flowTransform:pA})}}),uA.filter(V=>{var pA;const gA=O.value||Q.value,HA=y.value&&V.ctrlKey,FA=V.button,SA=V.type==="wheel";if(FA===1&&V.type==="mousedown"&&(BA(V,"vue-flow__node")||BA(V,"vue-flow__edge")))return!0;if(!J.value&&!gA&&!tA.value&&!m.value&&!y.value||P.value||G.value&&!SA||!m.value&&V.type==="dblclick"||BA(V,T.value)&&SA||BA(V,M.value)&&(!SA||tA.value&&SA&&!O.value)||!y.value&&V.ctrlKey&&SA||!gA&&!tA.value&&!HA&&SA)return!1;if(!y&&V.type==="touchstart"&&((pA=V.touches)==null?void 0:pA.length)>1)return V.preventDefault(),!1;if(!J.value&&(V.type==="mousedown"||V.type==="touchstart")||dA.value&&Array.isArray(w.value)&&w.value.includes(0)&&FA===0||Array.isArray(w.value)&&!w.value.includes(FA)&&(V.type==="mousedown"||V.type==="touchstart"))return!1;const OA=Array.isArray(w.value)&&w.value.includes(FA)||u.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!FA||FA<=1;return(!V.ctrlKey||N.value||SA)&&OA}),(0,r.watch)([P,J],()=>{P.value&&!S.value?uA.on("zoom",null):P.value||uA.on("zoom",V=>{rA.value={x:V.transform.x,y:V.transform.y,zoom:V.transform.k};const pA=oA(V.transform);X=Y(J.value,F??0),R.viewportChange(pA),R.move({event:V,flowTransform:pA})})},{immediate:!0}),(0,r.watch)([P,tA,g,O,y,U,T],()=>{tA.value&&!O.value&&!P.value?hA.on("wheel.zoom",V=>{if(BA(V,T.value))return!1;const pA=O.value||Q.value,gA=y.value&&V.ctrlKey;if(!(!U.value||tA.value||pA||gA))return!1;V.preventDefault(),V.stopImmediatePropagation();const HA=hA.property("__zoom").k||1,FA=Ir();if(!N.value&&V.ctrlKey&&y.value&&FA){const re=Ke(V),nt=HA*2**va(V);uA.scaleTo(hA,nt,re,V);return}const SA=V.deltaMode===1?20:1;let OA=g.value===Sn.Vertical?0:V.deltaX*SA,XA=g.value===Sn.Horizontal?0:V.deltaY*SA;!FA&&V.shiftKey&&g.value!==Sn.Vertical&&!OA&&XA&&(OA=XA,XA=0),uA.translateBy(hA,-(OA/HA)*B.value,-(XA/HA)*B.value);const ae=oA(hA.property("__zoom"));I&&clearTimeout(I),eA.value?(R.move({event:V,flowTransform:ae}),R.viewportChange(ae),I=setTimeout(()=>{R.moveEnd({event:V,flowTransform:ae}),R.viewportChangeEnd(ae),eA.value=!1},150)):(eA.value=!0,R.moveStart({event:V,flowTransform:ae}),R.viewportChangeStart(ae))},{passive:!1}):typeof _<"u"&&hA.on("wheel.zoom",function(V,pA){const gA=!U.value&&V.type==="wheel"&&!V.ctrlKey,HA=O.value||Q.value,FA=y.value&&V.ctrlKey;if(!HA&&!h.value&&!FA&&V.type==="wheel"||gA||BA(V,T.value))return null;V.preventDefault(),_.call(this,V,pA)},{passive:!1})},{immediate:!0})});function Y(wA,bA){return bA===2&&Array.isArray(wA)&&wA.includes(2)}function $(wA,bA){return wA.x!==bA.x&&!Number.isNaN(bA.x)||wA.y!==bA.y&&!Number.isNaN(bA.y)||wA.zoom!==bA.k&&!Number.isNaN(bA.k)}function oA(wA){return{x:wA.x,y:wA.y,zoom:wA.k}}function BA(wA,bA){return wA.target.closest(`.${bA}`)}return(wA,bA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"viewportRef",ref:nA,class:"vue-flow__viewport vue-flow__container"},[(0,r.createVNode)(op,{"is-selecting":UA.value,"selection-key-pressed":(0,r.unref)(L),class:(0,r.normalizeClass)({connecting:G.value,dragging:(0,r.unref)(iA),draggable:(0,r.unref)(w)===!0||Array.isArray((0,r.unref)(w))&&(0,r.unref)(w).includes(0)})},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(ip,null,{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(wA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),ap=["id"],lp=["id"],cp=["id"],up=(0,r.defineComponent)({name:"A11yDescriptions",compatConfig:{MODE:3},setup(e){const{id:A,disableKeyboardA11y:t,ariaLiveMessage:n}=YA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",{id:`${(0,r.unref)(aa)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select a node. "+(0,r.toDisplayString)((0,r.unref)(t)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,ap),(0,r.createElementVNode)("div",{id:`${(0,r.unref)(la)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,lp),(0,r.unref)(t)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:`${(0,r.unref)(Rh)}-${(0,r.unref)(A)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},(0,r.toDisplayString)((0,r.unref)(n)),9,cp))],64))}});function dp(){const e=YA();(0,r.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function fp(e,A,t){return t===IA.Left?e-A:t===IA.Right?e+A:e}function gp(e,A,t){return t===IA.Top?e-A:t===IA.Bottom?e+A:e}var mi=function({radius:e=10,centerX:A=0,centerY:t=0,position:n=IA.Top,type:o}){return(0,r.h)("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${o}`,cx:fp(A,e,n),cy:gp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};mi.props=["radius","centerX","centerY","position","type"],mi.compatConfig={MODE:3};var rl=mi,hp=(0,r.defineComponent)({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:A,addSelectedEdges:t,connectionMode:n,edgeUpdaterRadius:o,emits:a,nodesSelectionActive:u,noPanClassName:d,getEdgeTypes:h,removeSelectedEdges:g,findEdge:B,findNode:w,isValidConnection:m,multiSelectionActive:y,disableKeyboardA11y:Q,elementsSelectable:U,edgesUpdatable:T,edgesFocusable:M,hooks:R}=YA(),H=(0,r.computed)(()=>B(e.id)),{emit:P,on:iA}=mB(H.value,a),Z=(0,r.inject)(Sr),aA=(0,r.getCurrentInstance)(),lA=(0,r.ref)(!1),rA=(0,r.ref)(!1),nA=(0,r.ref)(""),j=(0,r.ref)(null),S=(0,r.ref)("source"),eA=(0,r.ref)(null),I=(0,r.toRef)(()=>typeof H.value.selectable>"u"?U.value:H.value.selectable),X=(0,r.toRef)(()=>typeof H.value.updatable>"u"?T.value:H.value.updatable),F=(0,r.toRef)(()=>typeof H.value.focusable>"u"?M.value:H.value.focusable);(0,r.provide)(hB,e.id),(0,r.provide)(BB,eA);const x=(0,r.computed)(()=>H.value.class instanceof Function?H.value.class(H.value):H.value.class),N=(0,r.computed)(()=>H.value.style instanceof Function?H.value.style(H.value):H.value.style),L=(0,r.computed)(()=>{const b=H.value.type||"default",D=Z?.[`edge-${b}`];if(D)return D;let W=H.value.template??h.value[b];if(typeof W=="string"&&aA){const V=Object.keys(aA.appContext.components);V&&V.includes(b)&&(W=(0,r.resolveComponent)(b,!1))}return W&&typeof W!="string"?W:(a.error(new ue(ie.EDGE_TYPE_MISSING,W)),!1)}),{handlePointerDown:O}=Xa({nodeId:nA,handleId:j,type:S,isValidConnection:m,edgeUpdaterType:S,onEdgeUpdate:dA,onEdgeUpdateEnd:UA});return()=>{const b=w(H.value.source),D=w(H.value.target),W="pathOptions"in H.value?H.value.pathOptions:{};if(!b&&!D)return a.error(new ue(ie.EDGE_SOURCE_TARGET_MISSING,H.value.id,H.value.source,H.value.target)),null;if(!b)return a.error(new ue(ie.EDGE_SOURCE_MISSING,H.value.id,H.value.source)),null;if(!D)return a.error(new ue(ie.EDGE_TARGET_MISSING,H.value.id,H.value.target)),null;if(!H.value||H.value.hidden||b.hidden||D.hidden)return null;let V;n.value===At.Strict?V=b.handleBounds.source:V=[...b.handleBounds.source||[],...b.handleBounds.target||[]];const pA=xa(V,H.value.sourceHandle);let gA;n.value===At.Strict?gA=D.handleBounds.target:gA=[...D.handleBounds.target||[],...D.handleBounds.source||[]];const HA=xa(gA,H.value.targetHandle),FA=pA?.position||IA.Bottom,SA=HA?.position||IA.Top,{x:OA,y:XA}=qt(b,pA,FA),{x:ae,y:re}=qt(D,HA,SA);return H.value.sourceX=OA,H.value.sourceY=XA,H.value.targetX=ae,H.value.targetY=re,(0,r.h)("g",{ref:eA,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${L.value===!1?"default":H.value.type||"default"}`,d.value,x.value,{updating:lA.value,selected:H.value.selected,animated:H.value.animated,inactive:!I.value&&!R.value.edgeClick.hasListeners()}],tabIndex:F.value?0:void 0,"aria-label":H.value.ariaLabel===null?void 0:H.value.ariaLabel??`Edge from ${H.value.source} to ${H.value.target}`,"aria-describedby":F.value?`${la}-${A}`:void 0,"aria-roledescription":"edge",role:F.value?"group":"img",...H.value.domAttributes,onClick:Y,onContextmenu:$,onDblclick:oA,onMouseenter:BA,onMousemove:wA,onMouseleave:bA,onKeyDown:F.value?_:void 0},[rA.value?null:(0,r.h)(L.value===!1?h.value.default:L.value,{id:e.id,sourceNode:b,targetNode:D,source:H.value.source,target:H.value.target,type:H.value.type,updatable:X.value,selected:H.value.selected,animated:H.value.animated,label:H.value.label,labelStyle:H.value.labelStyle,labelShowBg:H.value.labelShowBg,labelBgStyle:H.value.labelBgStyle,labelBgPadding:H.value.labelBgPadding,labelBgBorderRadius:H.value.labelBgBorderRadius,data:H.value.data,events:{...H.value.events,...iA},style:N.value,markerStart:`url('#${kn(H.value.markerStart,A)}')`,markerEnd:`url('#${kn(H.value.markerEnd,A)}')`,sourcePosition:FA,targetPosition:SA,sourceX:OA,sourceY:XA,targetX:ae,targetY:re,sourceHandleId:H.value.sourceHandle,targetHandleId:H.value.targetHandle,interactionWidth:H.value.interactionWidth,...W}),[X.value==="source"||X.value===!0?[(0,r.h)("g",{onMousedown:uA,onMouseenter:J,onMouseout:tA},(0,r.h)(rl,{position:FA,centerX:OA,centerY:XA,radius:o.value,type:"source","data-type":"source"}))]:null,X.value==="target"||X.value===!0?[(0,r.h)("g",{onMousedown:hA,onMouseenter:J,onMouseout:tA},(0,r.h)(rl,{position:SA,centerX:ae,centerY:re,radius:o.value,type:"target","data-type":"target"}))]:null]])};function J(){lA.value=!0}function tA(){lA.value=!1}function dA(b,D){P.update({event:b,edge:H.value,connection:D})}function UA(b){P.updateEnd({event:b,edge:H.value}),rA.value=!1}function G(b,D){b.button===0&&(rA.value=!0,nA.value=D?H.value.target:H.value.source,j.value=(D?H.value.targetHandle:H.value.sourceHandle)??null,S.value=D?"target":"source",P.updateStart({event:b,edge:H.value}),O(b))}function Y(b){var D;const W={event:b,edge:H.value};I.value&&(u.value=!1,H.value.selected&&y.value?(g([H.value]),(D=eA.value)==null||D.blur()):t([H.value])),P.click(W)}function $(b){P.contextMenu({event:b,edge:H.value})}function oA(b){P.doubleClick({event:b,edge:H.value})}function BA(b){P.mouseEnter({event:b,edge:H.value})}function wA(b){P.mouseMove({event:b,edge:H.value})}function bA(b){P.mouseLeave({event:b,edge:H.value})}function uA(b){G(b,!0)}function hA(b){G(b,!1)}function _(b){var D;!Q.value&&ca.includes(b.key)&&I.value&&(b.key==="Escape"?((D=eA.value)==null||D.blur(),g([B(e.id)])):t([B(e.id)]))}}}),Bp=(0,r.defineComponent)({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:A,connectionMode:t,connectionStartHandle:n,connectionEndHandle:o,connectionPosition:a,connectionLineType:u,connectionLineStyle:d,connectionLineOptions:h,connectionStatus:g,viewport:B,findNode:w}=YA(),m=(e=(0,r.inject)(Sr))==null?void 0:e["connection-line"],y=(0,r.computed)(()=>{var R;return w((R=n.value)==null?void 0:R.nodeId)}),Q=(0,r.computed)(()=>{var R;return w((R=o.value)==null?void 0:R.nodeId)??null}),U=(0,r.computed)(()=>({x:(a.value.x-B.value.x)/B.value.zoom,y:(a.value.y-B.value.y)/B.value.zoom})),T=(0,r.computed)(()=>h.value.markerStart?`url(#${kn(h.value.markerStart,A)})`:""),M=(0,r.computed)(()=>h.value.markerEnd?`url(#${kn(h.value.markerEnd,A)})`:"");return()=>{var R,H,P;if(!y.value||!n.value)return null;const iA=n.value.id,Z=n.value.type,aA=y.value.handleBounds;let lA=aA?.[Z]??[];if(t.value===At.Loose){const N=aA?.[Z==="source"?"target":"source"]??[];lA=[...lA,...N]}if(!lA)return null;const rA=(iA?lA.find(N=>N.id===iA):lA[0])??null,nA=rA?.position??IA.Top,{x:j,y:S}=qt(y.value,rA,nA);let eA=null;Q.value&&(t.value===At.Strict?eA=((R=Q.value.handleBounds[Z==="source"?"target":"source"])==null?void 0:R.find(N=>{var L;return N.id===((L=o.value)==null?void 0:L.id)}))||null:eA=((H=[...Q.value.handleBounds.source??[],...Q.value.handleBounds.target??[]])==null?void 0:H.find(N=>{var L;return N.id===((L=o.value)==null?void 0:L.id)}))||null);const I=((P=o.value)==null?void 0:P.position)??(nA?ui[nA]:null);if(!nA||!I)return null;const X=u.value??h.value.type??Nt.Bezier;let F="";const x={sourceX:j,sourceY:S,sourcePosition:nA,targetX:U.value.x,targetY:U.value.y,targetPosition:I};return X===Nt.Bezier?[F]=Bi(x):X===Nt.Step?[F]=pi({...x,borderRadius:0}):X===Nt.SmoothStep?[F]=pi(x):X===Nt.SimpleBezier?[F]=Al(x):F=`M${j},${S} ${U.value.x},${U.value.y}`,(0,r.h)("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},(0,r.h)("g",{class:"vue-flow__connection"},m?(0,r.h)(m,{sourceX:j,sourceY:S,sourcePosition:nA,targetX:U.value.x,targetY:U.value.y,targetPosition:I,sourceNode:y.value,sourceHandle:rA,targetNode:Q.value,targetHandle:eA,markerEnd:M.value,markerStart:T.value,connectionStatus:g.value}):(0,r.h)("path",{d:F,class:[h.value.class,g.value,"vue-flow__connection-path"],style:{...d.value,...h.value.style},"marker-end":M.value,"marker-start":T.value})))}}}),pp=["id","markerWidth","markerHeight","markerUnits","orient"],mp=(0,r.defineComponent)({name:"MarkerType",compatConfig:{MODE:3},props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("marker",{id:A.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${A.width}`,markerHeight:`${A.height}`,markerUnits:A.markerUnits,orient:A.orient},[A.type===(0,r.unref)(et).ArrowClosed?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:0,style:(0,r.normalizeStyle)({stroke:A.color,fill:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):(0,r.createCommentVNode)("",!0),A.type===(0,r.unref)(et).Arrow?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:1,style:(0,r.normalizeStyle)({stroke:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):(0,r.createCommentVNode)("",!0)],8,pp))}}),wp={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},Cp=(0,r.defineComponent)({name:"MarkerDefinitions",compatConfig:{MODE:3},setup(e){const{id:A,edges:t,connectionLineOptions:n,defaultMarkerColor:o}=YA(),a=(0,r.computed)(()=>{const u=new Set,d=[],h=g=>{if(g){const B=kn(g,A);u.has(B)||(typeof g=="object"?d.push({...g,id:B,color:g.color||o.value}):d.push({id:B,color:o.value,type:g}),u.add(B))}};for(const g of[n.value.markerEnd,n.value.markerStart])h(g);for(const g of t.value)for(const B of[g.markerStart,g.markerEnd])h(B);return d.sort((g,B)=>g.id.localeCompare(B.id))});return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",wp,[(0,r.createElementVNode)("defs",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.value,h=>((0,r.openBlock)(),(0,r.createBlock)(mp,{id:h.id,key:h.id,type:h.type,color:h.color,width:h.width,height:h.height,markerUnits:h.markerUnits,"stroke-width":h.strokeWidth,orient:h.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),yp=(0,r.defineComponent)({name:"Edges",compatConfig:{MODE:3},setup(e){const{findNode:A,getEdges:t,elevateEdgesOnSelect:n}=YA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(Cp),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(t),u=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{key:u.id,class:"vue-flow__edges vue-flow__container",style:(0,r.normalizeStyle)({zIndex:(0,r.unref)(nB)(u,(0,r.unref)(A),(0,r.unref)(n))})},[(0,r.createVNode)((0,r.unref)(hp),{id:u.id},null,8,["id"])],4))),128)),(0,r.createVNode)((0,r.unref)(Bp))],64))}}),vp=(0,r.defineComponent)({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:A,noPanClassName:t,selectNodesOnDrag:n,nodesSelectionActive:o,multiSelectionActive:a,emits:u,removeSelectedNodes:d,addSelectedNodes:h,updateNodeDimensions:g,onUpdateNodeInternals:B,getNodeTypes:w,nodeExtent:m,elevateNodesOnSelect:y,disableKeyboardA11y:Q,ariaLiveMessage:U,snapToGrid:T,snapGrid:M,nodeDragThreshold:R,nodesDraggable:H,elementsSelectable:P,nodesConnectable:iA,nodesFocusable:Z,hooks:aA}=YA(),lA=(0,r.ref)(null);(0,r.provide)(Ga,lA),(0,r.provide)(Pa,e.id);const rA=(0,r.inject)(Sr),nA=(0,r.getCurrentInstance)(),j=Wa(),{node:S,parentNode:eA}=$a(e.id),{emit:I,on:X}=vB(S,u),F=(0,r.toRef)(()=>typeof S.draggable>"u"?H.value:S.draggable),x=(0,r.toRef)(()=>typeof S.selectable>"u"?P.value:S.selectable),N=(0,r.toRef)(()=>typeof S.connectable>"u"?iA.value:S.connectable),L=(0,r.toRef)(()=>typeof S.focusable>"u"?Z.value:S.focusable),O=(0,r.computed)(()=>x.value||F.value||aA.value.nodeClick.hasListeners()||aA.value.nodeDoubleClick.hasListeners()||aA.value.nodeMouseEnter.hasListeners()||aA.value.nodeMouseMove.hasListeners()||aA.value.nodeMouseLeave.hasListeners()),J=(0,r.toRef)(()=>!!S.dimensions.width&&!!S.dimensions.height),tA=(0,r.computed)(()=>{const D=S.type||"default",W=rA?.[`node-${D}`];if(W)return W;let V=S.template||w.value[D];if(typeof V=="string"&&nA){const pA=Object.keys(nA.appContext.components);pA&&pA.includes(D)&&(V=(0,r.resolveComponent)(D,!1))}return V&&typeof V!="string"?V:(u.error(new ue(ie.NODE_TYPE_MISSING,V)),!1)}),dA=za({id:e.id,el:lA,disabled:()=>!F.value,selectable:x,dragHandle:()=>S.dragHandle,onStart(D){I.dragStart(D)},onDrag(D){I.drag(D)},onStop(D){I.dragStop(D)},onClick(D){_(D)}}),UA=(0,r.computed)(()=>S.class instanceof Function?S.class(S):S.class),G=(0,r.computed)(()=>{const D=(S.style instanceof Function?S.style(S):S.style)||{},W=S.width instanceof Function?S.width(S):S.width,V=S.height instanceof Function?S.height(S):S.height;return!D.width&&W&&(D.width=typeof W=="string"?W:`${W}px`),!D.height&&V&&(D.height=typeof V=="string"?V:`${V}px`),D}),Y=(0,r.toRef)(()=>Number(S.zIndex??G.value.zIndex??0));return B(D=>{(D.includes(e.id)||!D.length)&&oA()}),(0,r.onMounted)(()=>{(0,r.watch)(()=>S.hidden,(D=!1,W,V)=>{!D&&lA.value&&(e.resizeObserver.observe(lA.value),V(()=>{lA.value&&e.resizeObserver.unobserve(lA.value)}))},{immediate:!0,flush:"post"})}),(0,r.watch)([()=>S.type,()=>S.sourcePosition,()=>S.targetPosition],()=>{(0,r.nextTick)(()=>{g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])})}),(0,r.watch)([()=>S.position.x,()=>S.position.y,()=>{var D;return(D=eA.value)==null?void 0:D.computedPosition.x},()=>{var D;return(D=eA.value)==null?void 0:D.computedPosition.y},()=>{var D;return(D=eA.value)==null?void 0:D.computedPosition.z},Y,()=>S.selected,()=>S.dimensions.height,()=>S.dimensions.width,()=>{var D;return(D=eA.value)==null?void 0:D.dimensions.height},()=>{var D;return(D=eA.value)==null?void 0:D.dimensions.width}],([D,W,V,pA,gA,HA])=>{const FA={x:D,y:W,z:HA+(y.value&&S.selected?1e3:0)};typeof V<"u"&&typeof pA<"u"?S.computedPosition=Zh({x:V,y:pA,z:gA},FA):S.computedPosition=FA},{flush:"post",immediate:!0}),(0,r.watch)([()=>S.extent,m],([D,W],[V,pA])=>{(D!==V||W!==pA)&&$()}),S.extent==="parent"||typeof S.extent=="object"&&"range"in S.extent&&S.extent.range==="parent"?To(()=>J).toBe(!0).then($):$(),()=>S.hidden?null:(0,r.h)("div",{ref:lA,"data-id":S.id,class:["vue-flow__node",`vue-flow__node-${tA.value===!1?"default":S.type||"default"}`,{[t.value]:F.value,dragging:dA?.value,draggable:F.value,selected:S.selected,selectable:x.value,parent:S.isParent},UA.value],style:{visibility:J.value?"visible":"hidden",zIndex:S.computedPosition.z??Y.value,transform:`translate(${S.computedPosition.x}px,${S.computedPosition.y}px)`,pointerEvents:O.value?"all":"none",...G.value},tabIndex:L.value?0:void 0,role:L.value?"group":void 0,"aria-describedby":Q.value?void 0:`${aa}-${A}`,"aria-label":S.ariaLabel,"aria-roledescription":"node",...S.domAttributes,onMouseenter:BA,onMousemove:wA,onMouseleave:bA,onContextmenu:uA,onClick:_,onDblclick:hA,onKeydown:b},[(0,r.h)(tA.value===!1?w.value.default:tA.value,{id:S.id,type:S.type,data:S.data,events:{...S.events,...X},selected:S.selected,resizing:S.resizing,dragging:dA.value,connectable:N.value,position:S.computedPosition,dimensions:S.dimensions,isValidTargetPos:S.isValidTargetPos,isValidSourcePos:S.isValidSourcePos,parent:S.parentNode,parentNodeId:S.parentNode,zIndex:S.computedPosition.z??Y.value,targetPosition:S.targetPosition,sourcePosition:S.sourcePosition,label:S.label,dragHandle:S.dragHandle,onUpdateNodeInternals:oA})]);function $(){const D=S.computedPosition,{computedPosition:W,position:V}=ai(S,T.value?_r(D,M.value):D,u.error,m.value,eA.value);(S.computedPosition.x!==W.x||S.computedPosition.y!==W.y)&&(S.computedPosition={...S.computedPosition,...W}),(S.position.x!==V.x||S.position.y!==V.y)&&(S.position=V)}function oA(){lA.value&&g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])}function BA(D){dA?.value||I.mouseEnter({event:D,node:S})}function wA(D){dA?.value||I.mouseMove({event:D,node:S})}function bA(D){dA?.value||I.mouseLeave({event:D,node:S})}function uA(D){return I.contextMenu({event:D,node:S})}function hA(D){return I.doubleClick({event:D,node:S})}function _(D){x.value&&(!n.value||!F.value||R.value>0)&&di(S,a.value,h,d,o,!1,lA.value),I.click({event:D,node:S})}function b(D){if(!(oi(D)||Q.value))if(ca.includes(D.key)&&x.value){const W=D.key==="Escape";di(S,a.value,h,d,o,W,lA.value)}else F.value&&S.selected&&Zt[D.key]&&(D.preventDefault(),U.value=`Moved selected node ${D.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~S.position.x}, y: ${~~S.position.y}`,j({x:Zt[D.key].x,y:Zt[D.key].y},D.shiftKey))}}}),Qp={height:"0",width:"0"},Ep=(0,r.defineComponent)({name:"EdgeLabelRenderer",compatConfig:{MODE:3},setup(e){const{viewportRef:A}=YA(),t=(0,r.toRef)(()=>{var n;return(n=A.value)==null?void 0:n.getElementsByClassName("vue-flow__edge-labels")[0]});return(n,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",null,[((0,r.openBlock)(),(0,r.createElementBlock)("foreignObject",Qp,[((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:t.value,disabled:!t.value},[(0,r.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function Fp(e={includeHiddenNodes:!1}){const{nodes:A}=YA();return(0,r.computed)(()=>{if(A.value.length===0)return!1;for(const t of A.value)if((e.includeHiddenNodes||!t.hidden)&&(t?.handleBounds===void 0||t.dimensions.width===0||t.dimensions.height===0))return!1;return!0})}var Up={class:"vue-flow__nodes vue-flow__container"},bp=(0,r.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=YA(),o=Fp(),a=(0,r.ref)();return(0,r.watch)(o,u=>{u&&(0,r.nextTick)(()=>{n.nodesInitialized(A.value)})},{immediate:!0}),(0,r.onMounted)(()=>{a.value=new ResizeObserver(u=>{const d=u.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));(0,r.nextTick)(()=>t(d))})}),(0,r.onBeforeUnmount)(()=>{var u;return(u=a.value)==null?void 0:u.disconnect()}),(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Up,[a.value?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)((0,r.unref)(A),(h,g,B,w)=>{const m=[h.id];if(w&&w.key===h.id&&(0,r.isMemoSame)(w,m))return w;const y=((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(vp),{id:h.id,key:h.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return y.memo=m,y},d,0),128)):(0,r.createCommentVNode)("",!0)]))}});function Hp(){const{emits:e}=YA();(0,r.onMounted)(()=>{if(Ta()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new ue(ie.MISSING_STYLES))}})}var Ip=(0,r.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),_p=(0,r.defineComponent)({name:"VueFlow",compatConfig:{MODE:3},props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(e,{expose:A,emit:t}){const n=e,o=(0,r.useSlots)(),a=Mo(n,"modelValue",t),u=Mo(n,"nodes",t),d=Mo(n,"edges",t),h=YA(n),g=UB({modelValue:a,nodes:u,edges:d},n,h);return HB(t,h.hooks),dp(),Hp(),(0,r.provide)(Sr,o),(0,r.onUnmounted)(g),A(h),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:(0,r.unref)(h).vueFlowRef,class:"vue-flow"},[(0,r.createVNode)(sp,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(yp),Ip,(0,r.createVNode)(bp),(0,r.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,r.renderSlot)(B.$slots,"default"),(0,r.createVNode)(up)],512))}}),Sp=(0,r.defineComponent)({name:"Panel",compatConfig:{MODE:3},props:{position:{}},setup(e){const A=e,{userSelectionActive:t}=YA(),n=(0,r.computed)(()=>`${A.position}`.split("-"));return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vue-flow__panel",n.value]),style:(0,r.normalizeStyle)({pointerEvents:(0,r.unref)(t)?"none":"all"})},[(0,r.renderSlot)(o.$slots,"default")],6))}}),tt=(e=>(e.Lines="lines",e.Dots="dots",e))(tt||{}),xp=function({dimensions:e,size:A,color:t}){return(0,r.h)("path",{stroke:t,"stroke-width":A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Dp=function({radius:e,color:A}){return(0,r.h)("circle",{cx:e,cy:e,r:e,fill:A})};tt.Lines,tt.Dots;var Np={[tt.Dots]:"#81818a",[tt.Lines]:"#eee"},Lp=["id","x","y","width","height","patternTransform"],kp={key:2,height:"100",width:"100"},Tp=["fill"],Mp=["x","y","fill"],Op=(0,r.defineComponent)({name:"Background",compatConfig:{MODE:3},props:{id:{},variant:{default:()=>tt.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:A,viewport:t}=YA(),n=(0,r.computed)(()=>{const u=t.value.zoom,[d,h]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],g=[d*u||1,h*u||1],B=e.size*u,[w,m]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset];return{scaledGap:g,offset:[w*u||1+g[0]/2,m*u||1+g[1]/2],size:B}}),o=(0,r.toRef)(()=>`pattern-${A}${e.id?`-${e.id}`:""}`),a=(0,r.toRef)(()=>e.color||e.patternColor||Np[e.variant||tt.Dots]);return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:"vue-flow__background vue-flow__container",style:(0,r.normalizeStyle)({height:`${u.height>100?100:u.height}%`,width:`${u.width>100?100:u.width}%`})},[(0,r.renderSlot)(u.$slots,"pattern-container",{id:o.value},()=>[(0,r.createElementVNode)("pattern",{id:o.value,x:(0,r.unref)(t).x%n.value.scaledGap[0],y:(0,r.unref)(t).y%n.value.scaledGap[1],width:n.value.scaledGap[0],height:n.value.scaledGap[1],patternTransform:`translate(-${n.value.offset[0]},-${n.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[(0,r.renderSlot)(u.$slots,"pattern",{},()=>[u.variant===(0,r.unref)(tt).Lines?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(xp),{key:0,size:u.lineWidth,color:a.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):u.variant===(0,r.unref)(tt).Dots?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Dp),{key:1,color:a.value,radius:n.value.size/2},null,8,["color","radius"])):(0,r.createCommentVNode)("",!0),u.bgColor?((0,r.openBlock)(),(0,r.createElementBlock)("svg",kp,[(0,r.createElementVNode)("rect",{width:"100%",height:"100%",fill:u.bgColor},null,8,Tp)])):(0,r.createCommentVNode)("",!0)])],8,Lp)]),(0,r.createElementVNode)("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,Mp),(0,r.renderSlot)(u.$slots,"default",{id:o.value})],4))}}),Kp={name:"ControlButton",compatConfig:{MODE:3}},Rp=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Vp={type:"button",class:"vue-flow__controls-button"};function Pp(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("button",Vp,[(0,r.renderSlot)(e.$slots,"default")])}var Mr=Rp(Kp,[["render",Pp]]),Gp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},zp=[(0,r.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function Xp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Gp,zp)}var $p={render:Xp},Wp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},Yp=[(0,r.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},null,-1)];function Jp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Wp,Yp)}var Zp={render:Jp},jp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},qp=[(0,r.createElementVNode)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1)];function Am(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",jp,qp)}var em={render:Am},tm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},nm=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1)];function rm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",tm,nm)}var om={render:rm},im={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},sm=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1)];function am(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",im,sm)}var lm={render:am},cm=(0,r.defineComponent)({name:"Controls",compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>ia.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:A}){const{nodesDraggable:t,nodesConnectable:n,elementsSelectable:o,setInteractive:a,zoomIn:u,zoomOut:d,fitView:h,viewport:g,minZoom:B,maxZoom:w}=YA(),m=(0,r.toRef)(()=>t.value||n.value||o.value),y=(0,r.toRef)(()=>g.value.zoom<=B.value),Q=(0,r.toRef)(()=>g.value.zoom>=w.value);function U(){u(),A("zoomIn")}function T(){d(),A("zoomOut")}function M(){h(e.fitViewParams),A("fitView")}function R(){a(!m.value),A("interactionChange",!m.value)}return(H,P)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Sp),{class:"vue-flow__controls",position:H.position},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"top"),H.showZoom?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(H.$slots,"control-zoom-in",{},()=>[(0,r.createVNode)(Mr,{class:"vue-flow__controls-zoomin",disabled:Q.value,onClick:U},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-zoom-in",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)($p))))])]),_:3},8,["disabled"])]),(0,r.renderSlot)(H.$slots,"control-zoom-out",{},()=>[(0,r.createVNode)(Mr,{class:"vue-flow__controls-zoomout",disabled:y.value,onClick:T},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-zoom-out",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Zp))))])]),_:3},8,["disabled"])])],64)):(0,r.createCommentVNode)("",!0),H.showFitView?(0,r.renderSlot)(H.$slots,"control-fit-view",{key:1},()=>[(0,r.createVNode)(Mr,{class:"vue-flow__controls-fitview",onClick:M},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-fit-view",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(em))))])]),_:3})]):(0,r.createCommentVNode)("",!0),H.showInteractive?(0,r.renderSlot)(H.$slots,"control-interactive",{key:2},()=>[H.showInteractive?((0,r.openBlock)(),(0,r.createBlock)(Mr,{key:0,class:"vue-flow__controls-interactive",onClick:R},{default:(0,r.withCtx)(()=>[m.value?(0,r.renderSlot)(H.$slots,"icon-unlock",{key:0},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(lm))))]):(0,r.createCommentVNode)("",!0),m.value?(0,r.createCommentVNode)("",!0):(0,r.renderSlot)(H.$slots,"icon-lock",{key:1},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(om))))])]),_:3})):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(H.$slots,"default")]),_:3},8,["position"]))}}),um=["onClick"],dm={class:"d-flow-node-menus-item-name"},fm=(0,r.defineComponent)({name:"DNodeMenus",__name:"nodeMenus",props:{fromNodeId:{},handleId:{}},emits:["addNode"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.inject)("d_flow_design_provide",{}),a=o.getFlowComponents?.()||[],u=d=>{n("addNode",d.type),(0,r.nextTick)(()=>{t.handleId==="line"?o.addNodeByLine?.(d.type,t.fromNodeId||""):o.addNode?.(d.type,t.fromNodeId||"",t.handleId||"")})};return(d,h)=>{const g=(0,r.resolveComponent)("j-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-node-menus",onClick:(0,r.withModifiers)(()=>{},["stop"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(a),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:w,class:"d-flow-node-menus-item",onClick:m=>u(B)},[(0,r.createElementVNode)("div",{class:"d-flow-node-menus-item-icon",style:(0,r.normalizeStyle)({backgroundColor:B.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(g,{icon:B.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",dm,(0,r.toDisplayString)(B.name),1)],8,um))),128))])}}}),wi=fm,gm={class:"d-flow-step-name"},hm={key:0,style:{color:"var(--j-color-text-2)"}},Bm={style:{color:"var(--j-color-text)"}},pm=(0,r.defineComponent)({name:"DStepNode",__name:"stepNode",props:{id:{},data:{}},setup(e){const A=e,{onNodeClick:t,onEdgeClick:n,onMoveStart:o,onConnectStart:a,onNodeDragStart:u,removeNodes:d,getEdges:h,getNodes:g,onNodesChange:B}=YA(),w=(0,r.inject)("d_flow_design_provide",{}),m=(0,r.computed)(()=>w.getFlowComponentMap?.value?.[A.data.type]||{}),y=()=>{d(A.id),w.onRemoveNode?.(A.id)},Q=(0,r.ref)({});B(eA=>{if(A.data.isInit&&eA.findIndex(I=>I.type==="select"&&I.id===A.id&&I.id==="start"&&I.selected)!==-1){const I=g.value.find(X=>X.id==="start");I&&(I.data.isInit=!1),Q.value.s1=!0}});const U=(0,r.ref)(!1),T=eA=>{eA.indexOf("t")!==-1&&!M.value||(U.value=!0,Q.value[eA]=!0)},M=(0,r.computed)(()=>h.value.findIndex(eA=>eA.target===A.id)===-1),R=(0,r.ref)(!1),H=()=>{R.value=!0},P=(eA,I)=>{if(h.value.find(F=>F.source===I&&F.target===eA))return!0;const X=h.value.filter(F=>F.target===eA);for(let F=0;F<X.length;F++)if(P(X[F].source,I))return!0;return!1},iA=eA=>R.value?(R.value=!1,!1):P(eA.source,eA.target)?!1:eA.source!==eA.target&&eA.sourceHandle!==eA.targetHandle&&eA.sourceHandle.indexOf("s")!==-1&&eA.targetHandle.indexOf("t")!==-1,Z=()=>{j(),Object.keys(Q.value).forEach(eA=>{Q.value[eA]=!1})},aA=()=>{Z()};t(()=>{console.log("onNodeClick"),U.value?U.value=!1:Z()}),n(()=>{Z()}),o(()=>{Z()}),a(()=>{Z()}),u(()=>{Z()});const lA=(0,r.ref)(),rA=(0,r.ref)({top:0,left:0,bottom:0,right:0}),nA=(0,r.ref)({getBoundingClientRect:()=>rA.value}),j=()=>{lA.value?.handleClose()},S=eA=>{const{clientX:I,clientY:X}=eA;rA.value=DOMRect.fromRect({x:I,y:X}),eA.preventDefault(),lA.value?.handleOpen()};return(eA,I)=>{const X=(0,r.resolveComponent)("j-icon"),F=(0,r.resolveComponent)("el-popover"),x=(0,r.resolveComponent)("el-tooltip"),N=(0,r.resolveComponent)("el-dropdown-item"),L=(0,r.resolveComponent)("el-dropdown-menu"),O=(0,r.resolveComponent)("el-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-step",onContextmenu:(0,r.withModifiers)(S,["stop"])},[(0,r.createElementVNode)("div",{class:"d-flow-step-icon",style:(0,r.normalizeStyle)({backgroundColor:m.value.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(X,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",gm,(0,r.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,r.openBlock)(),(0,r.createBlock)(x,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[M.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",hm,[...I[4]||(I[4]=[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,r.createTextVNode)("添加节点 ",-1)])])):(0,r.createCommentVNode)("",!0),I[5]||(I[5]=(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1))]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(An),{onClick:I[1]||(I[1]=J=>T("t1")),onMousedown:H,id:"t1",class:(0,r.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!M.value}]),type:"target",position:(0,r.unref)(IA).Left,"is-valid-connection":iA},{default:(0,r.withCtx)(()=>[M.value?((0,r.openBlock)(),(0,r.createBlock)(F,{key:0,visible:Q.value.t1,"onUpdate:visible":I[0]||(I[0]=J=>Q.value.t1=J),placement:"left","popper-class":"d-flow-step-popper",trigger:"click","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(X,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(wi,{"handle-id":"t1","from-node-id":e.id,onAddNode:aA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(x,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[...I[6]||(I[6]=[(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击"),(0,r.createTextVNode)("添加节点 ")],-1),(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1)])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(An),{onClick:I[3]||(I[3]=J=>T("s1")),onMousedown:H,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,r.unref)(IA).Right,"is-valid-connection":iA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(F,{visible:Q.value.s1,"onUpdate:visible":I[2]||(I[2]=J=>Q.value.s1=J),placement:"right",trigger:"click","popper-class":"d-flow-step-popper","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(X,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(wi,{"handle-id":"s1","from-node-id":e.id,onAddNode:aA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,r.createVNode)(O,{ref_key:"dropdownRef",ref:lA,"popper-class":"d-flow-step-dropdown","virtual-ref":nA.value,"show-arrow":!1,"popper-options":{modifiers:[{name:"offset",options:{offset:[0,0]}}]},"virtual-triggering":"",trigger:"contextmenu",placement:"bottom-start"},{dropdown:(0,r.withCtx)(()=>[(0,r.createVNode)(L,null,{default:(0,r.withCtx)(()=>[e.data.type!="start"?((0,r.openBlock)(),(0,r.createBlock)(N,{key:0,onClick:y},{default:(0,r.withCtx)(()=>[...I[7]||(I[7]=[(0,r.createTextVNode)("删除",-1)])]),_:1})):(0,r.createCommentVNode)("",!0),m.value.des?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,style:(0,r.normalizeStyle)({width:"160px",padding:"4px 16px 0 16px","font-size":"12px","border-top":e.data.type!="start"?"1px solid var(--j-color-border)":void 0,"margin-top":e.data.type!="start"?"4px":void 0})},[I[8]||(I[8]=(0,r.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,r.createElementVNode)("div",Bm,(0,r.toDisplayString)(m.value.des),1)],4)):(0,r.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),mm=pm,wm=(0,r.defineComponent)({name:"DEdgeWithButton",__name:"edgeWithButton",props:{id:{},sourceX:{},sourceY:{},targetX:{},targetY:{},sourcePosition:{},targetPosition:{},markerEnd:{},style:{}},setup(e){const A=e,{onEdgeMouseEnter:t,onEdgeMouseLeave:n,onNodeClick:o,onEdgeClick:a,onMoveStart:u,onConnectStart:d,onNodeDragStart:h}=YA(),g=(0,r.computed)(()=>Bi(A)),B=(0,r.ref)(!1),w=(0,r.ref)(!1);t(({edge:T})=>{T.id===A.id&&(B.value=!0)}),n(()=>{B.value=!1});const m=(0,r.ref)(!1),y=()=>{m.value=!1,(0,r.nextTick)(()=>{w.value=!1})},Q=()=>{w.value=!0,m.value=!0},U=()=>{y()};return o(()=>{y()}),a(()=>{y()}),u(()=>{y()}),d(()=>{y()}),h(()=>{y()}),(T,M)=>{const R=(0,r.resolveComponent)("j-icon"),H=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(Mn),{id:e.id,style:(0,r.normalizeStyle)(e.style),path:g.value[0],"marker-end":e.markerEnd},null,8,["id","style","path","marker-end"]),(0,r.createVNode)((0,r.unref)(Ep),null,{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${g.value[1]}px,${g.value[2]}px)`}),class:"nodrag nopan"},[(0,r.createVNode)(H,{visible:m.value,"show-arrow":!1,placement:"right","popper-class":"d-flow-step-popper"},{reference:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:(0,r.withModifiers)(Q,["stop"]),class:"d-flow-edge-button"},[(0,r.createVNode)(R,{icon:"mdi:plus-circle"})],512),[[r.vShow,B.value||w.value]])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(wi,{"handle-id":"line","from-node-id":e.id,onAddNode:U},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),Cm=wm,ym=(0,r.defineComponent)({name:"DFlow",__name:"flow",props:{nodes:{default:()=>[]},edges:{default:()=>[]}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(_p),{"min-zoom":.2,"max-zoom":4,"default-viewport":{zoom:1},"connection-mode":(0,r.unref)(At).Strict,nodes:e.nodes,edges:e.edges},{"edge-button":(0,r.withCtx)(n=>[(0,r.createVNode)(Cm,{id:n.id,"source-x":n.sourceX,"source-y":n.sourceY,"target-x":n.targetX,"target-y":n.targetY,"source-position":n.sourcePosition,"target-position":n.targetPosition,"marker-end":n.markerEnd,style:(0,r.normalizeStyle)(n.style)},null,8,["id","source-x","source-y","target-x","target-y","source-position","target-position","marker-end","style"])]),"node-step":(0,r.withCtx)(n=>[(0,r.createVNode)(mm,(0,r.normalizeProps)((0,r.guardReactiveProps)(n)),null,16)]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(cm),{position:"bottom-left"}),(0,r.createVNode)((0,r.unref)(Op))]),_:1},8,["connection-mode","nodes","edges"]))}}),vm=ym,Qm={class:"d-flow-design"},Em={class:"d-flow-design-canvas"},Fm={class:"d-flow-design-right"},Um={class:"d-flow-design-title"},bm={class:"d-flow-design-title-name"},Hm={class:"d-flow-design-panel"},Im=(0,r.defineComponent)({name:"DFlowDesign",__name:"flowDesign",props:{components:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["nodeClick","edgeClick","paneClick","connect"],setup(e,{expose:A,emit:t}){const n=e,o=t,{addNodes:a,addEdges:u,removeEdges:d,addSelectedNodes:h,removeSelectedNodes:g,onConnect:B,onNodeClick:w,onPaneClick:m,onEdgeClick:y,getNodes:Q,getEdges:U}=YA(),T=(0,r.computed)(()=>{const L={};return n.components.forEach(O=>{L[O.type]=O}),L.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},L}),M={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},R=(0,r.ref)([M]),H=(0,r.ref)([]),P=(L,O)=>{if(O.indexOf("t")===-1){const J=U.value.filter(tA=>tA.source===L.id);if(J.length>0){let tA=-1e6,dA=0;return J.forEach(UA=>{tA=Math.max(tA,UA.targetNode.position.y+UA.targetNode.dimensions.height+32),dA=UA.targetNode.position.x||0}),{x:dA,y:tA}}return{x:L.position.x+L.dimensions.width+100,y:L.position.y}}return{x:L.position.x-100-L.dimensions.width,y:L.position.y}},iA=(L,O,J)=>{const tA=Q.value.find(UA=>UA.id===O);if(!tA)return;const dA={id:ft(),type:"step",data:{type:L},position:P(tA,J)};if(n.flowInit){const UA=n.flowInit(dA.data.type);UA&&Object.keys(UA).forEach(G=>{dA.data[G]=UA[G]})}a(dA),J.indexOf("t")===-1?u({id:`${O}-${dA.id}`,source:O,target:dA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}):u({id:`${O}-${dA.id}`,source:dA.id,target:O,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),S(dA.id)},Z=L=>{const O=Q.value.find(J=>J.id===L);O&&(O.position.x+=100+O.dimensions.width,U.value.filter(J=>J.source===L).forEach(J=>{Z(J.target)}))},aA=(L,O)=>{const J=U.value.find(dA=>dA.id===O);if(!J)return;const tA={id:ft(),type:"step",data:{type:L},position:{x:J.targetNode.position.x,y:J.targetNode.position.y}};if(n.flowInit){const dA=n.flowInit(tA.data.type);dA&&Object.keys(dA).forEach(UA=>{tA.data[UA]=dA[UA]})}a(tA),u({id:`${J.sourceNode.id}-${tA.id}`,source:J.sourceNode.id,target:tA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),u({id:`${tA.id}-${J.targetNode.id}`,source:tA.id,target:J.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),d(O),Z(J.target),S(tA.id)};B(L=>{console.log("onConnect",L),L.type="button",L.markerEnd=et.Arrow,u(L),o("connect",L)});const lA=()=>n.components||[],rA=(0,r.ref)(),nA=(0,r.computed)(()=>rA.value?T.value[rA.value.data.type]:void 0);w(L=>{rA.value?.id!==L.node.id&&(rA.value=L.node,X()),o("nodeClick",L.node)}),m(()=>{rA.value=void 0,o("paneClick")}),y(L=>{rA.value=void 0,o("edgeClick",L.edge)});const j=L=>{rA.value?.id===L&&(rA.value=void 0)},S=L=>{rA.value&&g([rA.value]),rA.value=Q.value.find(O=>O.id===L),rA.value&&(X(),setTimeout(()=>{rA.value&&h([rA.value])},100))},eA=(0,r.ref)(),I={};Object.keys(n.flowComponentConfigs).forEach(L=>{const O={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[L].forEach((J,tA)=>{const dA=`_collapse${tA}`;O.config?.defaultValue.push(dA),O.children?.push(J)}),I[L]=[O]});const X=()=>{const L=I[rA.value?.data.type||""];L&&eA.value?(eA.value.init&&eA.value.init(L,rA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:eA,inputParams:n.inputParams,components:Q.value,configData:rA.value?.data})):eA.value&&eA.value.init&&eA.value.init([])},F=(L,O)=>{rA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(rA.value.data.type,{configRef:eA,component:L,configData:rA.value.data,...O,isFlowNode:!0})};return(0,r.provide)("d_flow_design_provide",{getFlowComponents:lA,addNode:iA,addNodeByLine:aA,onRemoveNode:j,getFlowComponentMap:T}),A({getData:()=>{const L=[];return Q.value.forEach(O=>{L.push({config:O.data,id:O.id,position:O.position,type:O.type})}),U.value.forEach(O=>{L.push({id:O.id,source:O.source,target:O.target,sourceHandle:O.sourceHandle,targetHandle:O.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),L},setData:L=>{if(!L||L.length===0)M.data.isInit=!0,R.value=[M],S(M.id);else{M.data.isInit=!1;const O=[],J=[];L.forEach(tA=>{if(tA.type==="line")tA.type="button",tA.markerEnd=et.Arrow,J.push(tA);else{const dA={id:tA.id,type:tA.type,data:tA.config,position:tA.position};O.push(dA)}}),R.value=O,H.value=J}}}),(L,O)=>{const J=(0,r.resolveComponent)("j-icon"),tA=(0,r.resolveComponent)("j-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Qm,[(0,r.createElementVNode)("div",Em,[(0,r.createVNode)(vm,{nodes:R.value,edges:H.value},null,8,["nodes","edges"])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Fm,[(0,r.createElementVNode)("div",Um,[(0,r.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,r.normalizeStyle)({backgroundColor:nA.value?.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(J,{icon:nA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",bm,(0,r.toDisplayString)(nA.value?.name||""),1)]),(0,r.createElementVNode)("div",Hm,[(0,r.createVNode)(tA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:eA,onChange:F},null,512)])],512),[[r.vShow,rA.value&&I[rA.value.data.type]]])])}}}),_m=Im,ol=dt(_m),Sm={class:"d-input-flow j-block"},xm=(0,r.defineComponent)({name:"DInputFlow",__name:"inputFlow",props:{modelValue:{},type:{},btnText:{default:"事件"},title:{},size:{default:"default"},width:{default:1200},height:{default:800},beforeClose:{},flowComponents:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["update:modelValue","change"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.ref)(),a=(0,r.computed)({get(){return t.modelValue},set(w){n("update:modelValue",w)}}),u=(0,r.computed)(()=>(t.modelValue?.trim(),t.btnText)),d=w=>{const m=typeof w=="string"?w:void 0;try{o.value?.setData(JSON.parse(m||"[]"))}catch{o.value?.setData([])}},h=async()=>{const w=o.value?.getData();return w?JSON.stringify(w):void 0},g=w=>{if(t.beforeClose){const m=typeof w=="string"?w:void 0;return t.beforeClose(m)}return!0},B=w=>{const m=w.value;n("change",{value:typeof m=="string"?m:void 0})};return(w,m)=>{const y=(0,r.resolveComponent)("d-flow-design"),Q=(0,r.resolveComponent)("j-input-button");return(0,r.openBlock)(),(0,r.createBlock)(Q,(0,r.mergeProps)(w.$attrs,{type:e.type,"btn-text":u.value,title:e.title,size:e.size,width:e.width,height:e.height,"before-close":g,ok:h,open:d,"destroy-on-close":"",modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=U=>a.value=U),onChange:B}),{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",Sm,[(0,r.createVNode)(y,{ref_key:"flowRef",ref:o,components:e.flowComponents,"flow-init":e.flowInit,"flow-component-config-init":e.flowComponentConfigInit,"flow-component-configs":e.flowComponentConfigs,"flow-component-config-change":e.flowComponentConfigChange,"input-params":e.inputParams},null,8,["components","flow-init","flow-component-config-init","flow-component-configs","flow-component-config-change","input-params"])])]),_:1},16,["type","btn-text","title","size","width","height","modelValue"])}}}),Dm=xm,il=dt(Dm),AA=class Ne{static getElements(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(n&&!isNaN(+A[0])){const a=n.getElementById(A);return a?[a]:[]}let o=t.querySelectorAll(A);if(!o.length&&A[0]!=="."&&A[0]!=="#"&&(o=t.querySelectorAll("."+A),o.length||(o=t.querySelectorAll("#"+A)),!o.length)){const a=t.querySelector(`[gs-id="${A}"]`);return a?[a]:[]}return Array.from(o)}return[A]}static getElement(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(!A.length)return null;if(n&&A[0]==="#")return n.getElementById(A.substring(1));if(A[0]==="#"||A[0]==="."||A[0]==="[")return t.querySelector(A);if(n&&!isNaN(+A[0]))return n.getElementById(A);let o=t.querySelector(A);return n&&!o&&(o=n.getElementById(A)),o||(o=t.querySelector("."+A)),o}return A}static lazyLoad(A){return A.lazyLoad||A.grid?.opts?.lazyLoad&&A.lazyLoad!==!1}static createDiv(A,t){const n=document.createElement("div");return A.forEach(o=>{o&&n.classList.add(o)}),t?.appendChild(n),n}static shouldSizeToContent(A,t=!1){return A?.grid&&(t?A.sizeToContent===!0||A.grid.opts.sizeToContent===!0&&A.sizeToContent===void 0:!!A.sizeToContent||A.grid.opts.sizeToContent&&A.sizeToContent!==!1)}static isIntercepted(A,t){return!(A.y>=t.y+t.h||A.y+A.h<=t.y||A.x+A.w<=t.x||A.x>=t.x+t.w)}static isTouching(A,t){return Ne.isIntercepted(A,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static areaIntercept(A,t){const n=A.x>t.x?A.x:t.x,o=A.x+A.w<t.x+t.w?A.x+A.w:t.x+t.w;if(o<=n)return 0;const a=A.y>t.y?A.y:t.y,u=A.y+A.h<t.y+t.h?A.y+A.h:t.y+t.h;return u<=a?0:(o-n)*(u-a)}static area(A){return A.w*A.h}static sort(A,t=1){return A.sort((o,a)=>{const u=t*((o.y??1e4)-(a.y??1e4));return u===0?t*((o.x??1e4)-(a.x??1e4)):u})}static find(A,t){return t?A.find(n=>n.id===t):void 0}static toBool(A){return typeof A=="boolean"?A:typeof A=="string"?(A=A.toLowerCase(),!(A===""||A==="no"||A==="false"||A==="0")):!!A}static toNumber(A){return A===null||A.length===0?void 0:Number(A)}static parseHeight(A){let t,n="px";if(typeof A=="string")if(A==="auto"||A==="")t=0;else{const o=A.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!o)throw new Error(`Invalid height val = ${A}`);n=o[2]||"px",t=parseFloat(o[1])}else t=A;return{h:t,unit:n}}static defaults(A,...t){return t.forEach(n=>{for(const o in n){if(!n.hasOwnProperty(o))return;A[o]===null||A[o]===void 0?A[o]=n[o]:typeof n[o]=="object"&&typeof A[o]=="object"&&Ne.defaults(A[o],n[o])}}),A}static same(A,t){if(typeof A!="object")return A==t;if(typeof A!=typeof t||Object.keys(A).length!==Object.keys(t).length)return!1;for(const n in A)if(A[n]!==t[n])return!1;return!0}static copyPos(A,t,n=!1){return t.x!==void 0&&(A.x=t.x),t.y!==void 0&&(A.y=t.y),t.w!==void 0&&(A.w=t.w),t.h!==void 0&&(A.h=t.h),n&&(t.minW&&(A.minW=t.minW),t.minH&&(A.minH=t.minH),t.maxW&&(A.maxW=t.maxW),t.maxH&&(A.maxH=t.maxH)),A}static samePos(A,t){return A&&t&&A.x===t.x&&A.y===t.y&&(A.w||1)===(t.w||1)&&(A.h||1)===(t.h||1)}static sanitizeMinMax(A){A.minW||delete A.minW,A.minH||delete A.minH,A.maxW||delete A.maxW,A.maxH||delete A.maxH}static removeInternalAndSame(A,t){if(!(typeof A!="object"||typeof t!="object")&&!(Array.isArray(A)||Array.isArray(t)))for(let n in A){const o=A[n],a=t[n];n[0]==="_"||o===a?delete A[n]:o&&typeof o=="object"&&a!==void 0&&(Ne.removeInternalAndSame(o,a),Object.keys(o).length||delete A[n])}}static removeInternalForSave(A,t=!0){for(let n in A)(n[0]==="_"||A[n]===null||A[n]===void 0)&&delete A[n];delete A.grid,t&&delete A.el,A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,A.locked||delete A.locked,(A.w===1||A.w===A.minW)&&delete A.w,(A.h===1||A.h===A.minH)&&delete A.h}static throttle(A,t){let n=!1;return(...o)=>{n||(n=!0,setTimeout(()=>{A(...o),n=!1},t))}}static removePositioningStyles(A){const t=A.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(A){if(!A)return document.scrollingElement||document.documentElement;const t=getComputedStyle(A);return/(auto|scroll)/.test(t.overflow+t.overflowY)?A:Ne.getScrollElement(A.parentElement)}static updateScrollPosition(A,t,n){const o=Ne.getScrollElement(A);if(!o)return;const a=A.getBoundingClientRect(),u=o.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight,h=a.bottom-Math.min(u.bottom,d),g=a.top-Math.max(u.top,0),B=o.scrollTop;g<0&&n<0?A.offsetHeight>u.height?o.scrollTop+=n:o.scrollTop+=Math.abs(g)>Math.abs(n)?n:g:h>0&&n>0&&(A.offsetHeight>u.height?o.scrollTop+=n:o.scrollTop+=h>n?n:h),t.top+=o.scrollTop-B}static updateScrollResize(A,t,n){const o=Ne.getScrollElement(t),a=o.clientHeight,u=o===Ne.getScrollElement()?0:o.getBoundingClientRect().top,d=A.clientY-u,h=d<n,g=d>a-n;h?o.scrollBy({behavior:"smooth",top:d-n}):g&&o.scrollBy({behavior:"smooth",top:n-(a-d)})}static clone(A){return A==null||typeof A!="object"?A:A instanceof Array?[...A]:{...A}}static cloneDeep(A){const t=["parentGrid","el","grid","subGrid","engine"],n=Ne.clone(A);for(const o in n)n.hasOwnProperty(o)&&typeof n[o]=="object"&&o.substring(0,2)!=="__"&&!t.find(a=>a===o)&&(n[o]=Ne.cloneDeep(A[o]));return n}static cloneNode(A){const t=A.cloneNode(!0);return t.removeAttribute("id"),t}static appendTo(A,t){let n;typeof t=="string"?n=Ne.getElement(t):n=t,n&&n.appendChild(A)}static addElStyles(A,t){if(t instanceof Object)for(const n in t)t.hasOwnProperty(n)&&(Array.isArray(t[n])?t[n].forEach(o=>{A.style[n]=o}):A.style[n]=t[n])}static initEvent(A,t){const n={type:t.type},o={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:t.target?t.target:A.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(a=>n[a]=A[a]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(a=>n[a]=A[a]),{...n,...o}}static simulateMouseEvent(A,t,n){const o=A,a=new MouseEvent(t,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:A.screenX,screenY:A.screenY,clientX:A.clientX,clientY:A.clientY,ctrlKey:o.ctrlKey??!1,altKey:o.altKey??!1,shiftKey:o.shiftKey??!1,metaKey:o.metaKey??!1,button:0,relatedTarget:A.target});(n||A.target).dispatchEvent(a)}static getValuesFromTransformedElement(A){const t=document.createElement("div");Ne.addElStyles(t,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),A.appendChild(t);const n=t.getBoundingClientRect();return A.removeChild(t),t.remove(),{xScale:1/n.width,yScale:1/n.height,xOffset:n.left,yOffset:n.top}}static swap(A,t,n){if(!A)return;const o=A[t];A[t]=A[n],A[n]=o}static canBeRotated(A){return!(!A||A.w===A.h||A.locked||A.noResize||A.grid?.opts.disableResize||A.minW&&A.minW===A.maxW||A.minH&&A.minH===A.maxH)}},Ci=class pn{constructor(A={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=A.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=A.maxRow,this._float=A.float,this.nodes=A.nodes||[],this.onChange=A.onChange}batchUpdate(A=!0,t=!0){return!!this.batchMode===A?this:(this.batchMode=A,A?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,t&&this._packNodes(),this._notify()),this)}_useEntireRowArea(A,t){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!A._moving||A._skipDown||t.y<=A.y)}_fixCollisions(A,t=A,n,o={}){if(this.sortNodes(-1),n=n||this.collide(A,t),!n)return!1;if(A._moving&&!o.nested&&!this.float&&this.swap(A,n))return!0;let a=t;!this._loading&&this._useEntireRowArea(A,t)&&(a={x:0,w:this.column,y:t.y,h:t.h},n=this.collide(A,a,o.skip));let u=!1;const d={nested:!0,pack:!1};let h=0;for(;n=n||this.collide(A,a,o.skip);){if(h++>this.nodes.length*2)throw new Error("Infinite collide check");let g;if(n.locked||this._loading||A._moving&&!A._skipDown&&t.y>A.y&&!this.float&&(!this.collide(n,{...n,y:A.y},A)||!this.collide(n,{...n,y:t.y-n.h},A))){A._skipDown=A._skipDown||t.y>A.y;const B={...t,y:n.y+n.h,...d};g=this._loading&&AA.samePos(A,B)?!0:this.moveNode(A,B),(n.locked||this._loading)&&g?AA.copyPos(t,A):!n.locked&&g&&o.pack&&(this._packNodes(),t.y=n.y+n.h,AA.copyPos(A,t)),u=u||g}else g=this.moveNode(n,{...n,y:t.y+t.h,skip:A,...d});if(!g)return u;n=void 0}return u}collide(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.find(u=>u._id!==o&&u._id!==a&&AA.isIntercepted(u,t))}collideAll(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.filter(u=>u._id!==o&&u._id!==a&&AA.isIntercepted(u,t))}directionCollideCoverage(A,t,n){if(!t.rect||!A._rect)return;const o=A._rect,a={...t.rect};a.y>o.y?(a.h+=a.y-o.y,a.y=o.y):a.h+=o.y-a.y,a.x>o.x?(a.w+=a.x-o.x,a.x=o.x):a.w+=o.x-a.x;let u,d=.5;for(let h of n){if(h.locked||!h._rect)break;const g=h._rect;let B=Number.MAX_VALUE,w=Number.MAX_VALUE;o.y<g.y?B=(a.y+a.h-g.y)/g.h:o.y+o.h>g.y+g.h&&(B=(g.y+g.h-a.y)/g.h),o.x<g.x?w=(a.x+a.w-g.x)/g.w:o.x+o.w>g.x+g.w&&(w=(g.x+g.w-a.x)/g.w);const m=Math.min(w,B);m>d&&(d=m,u=h)}return t.collide=u,u}cacheRects(A,t,n,o,a,u){return this.nodes.forEach(d=>d._rect={y:d.y*t+n,x:d.x*A+u,w:d.w*A-u-o,h:d.h*t-n-a}),this}swap(A,t){if(!t||t.locked||!A||A.locked)return!1;function n(){const a=t.x,u=t.y;return t.x=A.x,t.y=A.y,A.h!=t.h?(A.x=a,A.y=t.y+t.h):A.w!=t.w?(A.x=t.x+t.w,A.y=u):(A.x=a,A.y=u),A._dirty=t._dirty=!0,!0}let o;if(A.w===t.w&&A.h===t.h&&(A.x===t.x||A.y===t.y)&&(o=AA.isTouching(A,t)))return n();if(o!==!1){if(A.w===t.w&&A.x===t.x&&(o||(o=AA.isTouching(A,t)))){if(t.y<A.y){const a=A;A=t,t=a}return n()}if(o!==!1){if(A.h===t.h&&A.y===t.y&&(o||(o=AA.isTouching(A,t)))){if(t.x<A.x){const a=A;A=t,t=a}return n()}return!1}}}isAreaEmpty(A,t,n,o){const a={x:A||0,y:t||0,w:n||1,h:o||1};return!this.collide(a)}compact(A="compact",t=!0){if(this.nodes.length===0)return this;t&&this.sortNodes();const n=this.batchMode;n||this.batchUpdate();const o=this._inColumnResize;o||(this._inColumnResize=!0);const a=this.nodes;return this.nodes=[],a.forEach((u,d,h)=>{let g;u.locked||(u.autoPosition=!0,A==="list"&&d&&(g=h[d-1])),this.addNode(u,!1,g)}),o||delete this._inColumnResize,n||this.batchUpdate(!1),this}set float(A){this._float!==A&&(this._float=A||!1,A||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(A=1){return this.nodes=AA.sort(this.nodes,A),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(A=>{if(A._updating||A._orig===void 0||A.y===A._orig.y)return;let t=A.y;for(;t>A._orig.y;)--t,this.collide(A,{x:A.x,y:t,w:A.w,h:A.h})||(A._dirty=!0,A.y=t)}):this.nodes.forEach((A,t)=>{if(!A.locked)for(;A.y>0;){const n=t===0?0:A.y-1;if(!(t===0||!this.collide(A,{x:A.x,y:n,w:A.w,h:A.h})))break;A._dirty=A.y!==n,A.y=n}}),this)}prepareNode(A,t){A._id=A._id??pn._idSeq++;const n=A.id;if(n){let a=1;for(;this.nodes.find(u=>u.id===A.id&&u!==A);)A.id=n+"_"+a++}(A.x===void 0||A.y===void 0||A.x===null||A.y===null)&&(A.autoPosition=!0);const o={x:0,y:0,w:1,h:1};return AA.defaults(A,o),A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,AA.sanitizeMinMax(A),typeof A.x=="string"&&(A.x=Number(A.x)),typeof A.y=="string"&&(A.y=Number(A.y)),typeof A.w=="string"&&(A.w=Number(A.w)),typeof A.h=="string"&&(A.h=Number(A.h)),isNaN(A.x)&&(A.x=o.x,A.autoPosition=!0),isNaN(A.y)&&(A.y=o.y,A.autoPosition=!0),isNaN(A.w)&&(A.w=o.w),isNaN(A.h)&&(A.h=o.h),this.nodeBoundFix(A,t),A}nodeBoundFix(A,t){const n=A._orig||AA.copyPos({},A);if(A.maxW&&(A.w=Math.min(A.w||1,A.maxW)),A.maxH&&(A.h=Math.min(A.h||1,A.maxH)),A.minW&&(A.w=Math.max(A.w||1,A.minW)),A.minH&&(A.h=Math.max(A.h||1,A.minH)),(A.x||0)+(A.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&A._id!=null&&this.findCacheLayout(A,this.defaultColumn)===-1){const o={...A};o.autoPosition||o.x===void 0?(delete o.x,delete o.y):o.x=Math.min(this.defaultColumn-1,o.x),o.w=Math.min(this.defaultColumn,o.w||1),this.cacheOneLayout(o,this.defaultColumn)}return A.w>this.column?A.w=this.column:A.w<1&&(A.w=1),this.maxRow&&A.h>this.maxRow?A.h=this.maxRow:A.h<1&&(A.h=1),A.x<0&&(A.x=0),A.y<0&&(A.y=0),A.x+A.w>this.column&&(t?A.w=this.column-A.x:A.x=this.column-A.w),this.maxRow&&A.y+A.h>this.maxRow&&(t?A.h=this.maxRow-A.y:A.y=this.maxRow-A.h),AA.samePos(A,n)||(A._dirty=!0),this}getDirtyNodes(A){return A?this.nodes.filter(t=>t._dirty&&!AA.samePos(t,t._orig)):this.nodes.filter(t=>t._dirty)}_notify(A){if(this.batchMode||!this.onChange)return this;const t=(A||[]).concat(this.getDirtyNodes());return this.onChange(t),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(A=>{delete A._dirty,delete A._lastTried}),this)}saveInitial(){return this.nodes.forEach(A=>{A._orig=AA.copyPos({},A),delete A._dirty}),this._hasLocked=this.nodes.some(A=>A.locked),this}restoreInitial(){return this.nodes.forEach(A=>{!A._orig||AA.samePos(A,A._orig)||(AA.copyPos(A,A._orig),A._dirty=!0)}),this._notify(),this}findEmptyPosition(A,t=this.nodes,n=this.column,o){const a=o?o.y*n+(o.x+o.w):0;let u=!1;for(let d=a;!u;++d){const h=d%n,g=Math.floor(d/n);if(h+A.w>n)continue;const B={x:h,y:g,w:A.w,h:A.h};t.find(w=>AA.isIntercepted(B,w))||((A.x!==h||A.y!==g)&&(A._dirty=!0),A.x=h,A.y=g,delete A.autoPosition,u=!0)}return u}addNode(A,t=!1,n){const o=this.nodes.find(u=>u._id===A._id);if(o)return o;this._inColumnResize?this.nodeBoundFix(A):this.prepareNode(A),delete A._temporaryRemoved,delete A._removeDOM;let a;return A.autoPosition&&this.findEmptyPosition(A,this.nodes,this.column,n)&&(delete A.autoPosition,a=!0),this.nodes.push(A),t&&this.addedNodes.push(A),a||this._fixCollisions(A),this.batchMode||this._packNodes()._notify(),A}removeNode(A,t=!0,n=!1){return this.nodes.find(o=>o._id===A._id)?(n&&this.removedNodes.push(A),t&&(A._removeDOM=!0),this.nodes=this.nodes.filter(o=>o._id!==A._id),A._isAboutToRemove||this._packNodes(),this._notify([A]),this):this}removeAll(A=!0,t=!0){if(delete this._layouts,!this.nodes.length)return this;A&&this.nodes.forEach(o=>o._removeDOM=!0);const n=this.nodes;return this.removedNodes=t?n:[],this.nodes=[],this._notify(n)}moveNodeCheck(A,t){if(!this.changedPosConstrain(A,t))return!1;if(t.pack=!0,!this.maxRow)return this.moveNode(A,t);let n;const o=new pn({column:this.column,float:this.float,nodes:this.nodes.map(u=>u._id===A._id?(n={...u},n):{...u})});if(!n)return!1;const a=o.moveNode(n,t)&&o.getRow()<=Math.max(this.getRow(),this.maxRow);if(!a&&!t.resizing&&t.collide){const u=t.collide.el.gridstackNode;if(this.swap(A,u))return this._notify(),!0}return a?(o.nodes.filter(u=>u._dirty).forEach(u=>{const d=this.nodes.find(h=>h._id===u._id);d&&(AA.copyPos(d,u),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new pn({column:this.column,float:this.float,nodes:this.nodes.map(o=>({...o}))}),n={...A};return this.cleanupNode(n),delete n.el,delete n._id,delete n.content,delete n.grid,t.addNode(n),t.getRow()<=this.maxRow?(A._willFitPos=AA.copyPos({},n),!0):!1}changedPosConstrain(A,t){return t.w=t.w||A.w,t.h=t.h||A.h,A.x!==t.x||A.y!==t.y?!0:(A.maxW&&(t.w=Math.min(t.w,A.maxW)),A.maxH&&(t.h=Math.min(t.h,A.maxH)),A.minW&&(t.w=Math.max(t.w,A.minW)),A.minH&&(t.h=Math.max(t.h,A.minH)),A.w!==t.w||A.h!==t.h)}moveNode(A,t){if(!A||!t)return!1;let n;t.pack===void 0&&!this.batchMode&&(n=t.pack=!0),typeof t.x!="number"&&(t.x=A.x),typeof t.y!="number"&&(t.y=A.y),typeof t.w!="number"&&(t.w=A.w),typeof t.h!="number"&&(t.h=A.h);const o=A.w!==t.w||A.h!==t.h,a=AA.copyPos({},A,!0);if(AA.copyPos(a,t),this.nodeBoundFix(a,o),AA.copyPos(t,a),!t.forceCollide&&AA.samePos(A,t))return!1;const u=AA.copyPos({},A),d=this.collideAll(A,a,t.skip);let h=!0;if(d.length){const g=A._moving&&!t.nested;let B=g?this.directionCollideCoverage(A,t,d):d[0];if(g&&B&&A.grid?.opts?.subGridDynamic&&!A.grid._isTemp){const w=AA.areaIntercept(t.rect,B._rect),m=AA.area(t.rect),y=AA.area(B._rect);w/(m<y?m:y)>.8&&(B.grid.makeSubGrid(B.el,void 0,A),B=void 0)}B?h=!this._fixCollisions(A,a,B,t):(h=!1,n&&delete t.pack)}return h&&!AA.samePos(A,a)&&(A._dirty=!0,AA.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!AA.samePos(A,u)}getRow(){return this.nodes.reduce((A,t)=>Math.max(A,t.y+t.h),0)}beginUpdate(A){return A._updating||(A._updating=!0,delete A._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const A=this.nodes.find(t=>t._updating);return A&&(delete A._updating,delete A._skipDown),this}save(A=!0,t,n){const o=this._layouts?.length||0;let a;o&&(n?n!==this.column&&(a=this._layouts[n]):this.column!==o-1&&(a=this._layouts[o-1]));const u=[];return this.sortNodes(),this.nodes.forEach(d=>{const h=a?.find(B=>B._id===d._id),g={...d,...h||{}};AA.removeInternalForSave(g,!A),t&&t(d,g),u.push(g)}),u}layoutsNodesChange(A){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((t,n)=>{if(!t||n===this.column)return this;if(n<this.column)this._layouts[n]=void 0;else{const o=n/this.column;A.forEach(a=>{if(!a._orig)return;const u=t.find(d=>d._id===a._id);u&&(u.y>=0&&a.y!==a._orig.y&&(u.y+=a.y-a._orig.y,u.y<0&&(u.y=0)),a.x!==a._orig.x&&(u.x=Math.round(a.x*o),u.x<0&&(u.x=0)),a.w!==a._orig.w&&(u.w=Math.round(a.w*o),u.w<1&&(u.w=1)))})}}),this)}columnChanged(A,t,n="moveScale"){if(!this.nodes.length||!t||A===t)return this;const o=n==="compact"||n==="list";o&&this.sortNodes(1),t<A&&this.cacheLayout(this.nodes,A),this.batchUpdate();let a=[],u=o?this.nodes:AA.sort(this.nodes,-1);if(t>A&&this._layouts){const d=this._layouts[t]||[],h=this._layouts.length-1;!d.length&&A!==h&&this._layouts[h]?.length&&(A=h,this._layouts[h].forEach(g=>{const B=u.find(w=>w._id===g._id);B&&(!o&&!g.autoPosition&&(B.x=g.x??B.x,B.y=g.y??B.y),B.w=g.w??B.w,(g.x==null||g.y===void 0)&&(B.autoPosition=!0))})),d.forEach(g=>{const B=u.findIndex(w=>w._id===g._id);if(B!==-1){const w=u[B];if(o){w.w=g.w;return}(g.autoPosition||isNaN(g.x)||isNaN(g.y))&&this.findEmptyPosition(g,a),g.autoPosition||(w.x=g.x??w.x,w.y=g.y??w.y,w.w=g.w??w.w,a.push(w)),u.splice(B,1)}})}if(o)this.compact(n,!1);else{if(u.length)if(typeof n=="function")n(t,A,a,u);else{const d=o||n==="none"?1:t/A,h=n==="move"||n==="moveScale",g=n==="scale"||n==="moveScale";u.forEach(B=>{B.x=t===1?0:h?Math.round(B.x*d):Math.min(B.x,t-1),B.w=t===1||A===1?1:g?Math.round(B.w*d)||1:Math.min(B.w,t),a.push(B)}),u=[]}a=AA.sort(a,-1),this._inColumnResize=!0,this.nodes=[],a.forEach(d=>{this.addNode(d,!1),delete d._orig})}return this.nodes.forEach(d=>delete d._orig),this.batchUpdate(!1,!o),delete this._inColumnResize,this}cacheLayout(A,t,n=!1){const o=[];return A.forEach((a,u)=>{a._id===void 0&&(a._id=(a.id?this.nodes.find(d=>d.id===a.id):void 0)?._id??pn._idSeq++),o[u]={x:a.x,y:a.y,w:a.w,_id:a._id}}),this._layouts=n?[]:this._layouts||[],this._layouts[t]=o,this}cacheOneLayout(A,t){A._id=A._id??pn._idSeq++;const n={x:A.x,y:A.y,w:A.w,_id:A._id};(A.autoPosition||A.x===void 0)&&(delete n.x,delete n.y,A.autoPosition&&(n.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[t]=this._layouts[t]||[];const o=this.findCacheLayout(A,t);return o===-1?this._layouts[t].push(n):this._layouts[t][o]=n,this}findCacheLayout(A,t){return this._layouts?.[t]?.findIndex(n=>n._id===A._id)??-1}removeNodeFromLayoutCache(A){if(this._layouts)for(let t=0;t<this._layouts.length;t++){const n=this.findCacheLayout(A,t);n!==-1&&this._layouts[t].splice(n,1)}}cleanupNode(A){for(const t in A)t[0]==="_"&&t!=="_id"&&delete A[t];return this}};Ci._idSeq=0;var be={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"},LA=class{},Me=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),He=class{};function Or(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),AA.simulateMouseEvent(e.changedTouches[0],A))}function sl(e,A){e.cancelable&&e.preventDefault(),AA.simulateMouseEvent(e,A)}function Kr(e){He.touchHandled||(He.touchHandled=!0,Or(e,"mousedown"))}function Rr(e){He.touchHandled&&Or(e,"mousemove")}function Vr(e){if(!He.touchHandled)return;He.pointerLeaveTimeout&&(window.clearTimeout(He.pointerLeaveTimeout),delete He.pointerLeaveTimeout);const A=!!LA.dragElement;Or(e,"mouseup"),A||Or(e,"click"),He.touchHandled=!1}function Pr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function al(e){LA.dragElement&&e.pointerType!=="mouse"&&sl(e,"mouseenter")}function ll(e){LA.dragElement&&e.pointerType!=="mouse"&&(He.pointerLeaveTimeout=window.setTimeout(()=>{delete He.pointerLeaveTimeout,sl(e,"mouseleave")},10))}var cl=class mu{constructor(A,t,n){this.host=A,this.dir=t,this.option=n,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){if(this.option.element)try{this.el=this.option.element instanceof HTMLElement?this.option.element:this.host.querySelector(this.option.element)}catch(A){this.option.element=void 0,console.error("Query for resizeable handle failed, falling back",A)}return this.el||(this.el=document.createElement("div"),this.host.appendChild(this.el)),this.el.classList.add("ui-resizable-handle"),this.el.classList.add(`${mu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),Me&&(this.el.addEventListener("touchstart",Kr),this.el.addEventListener("pointerdown",Pr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Me&&(this.el.removeEventListener("touchstart",Kr),this.el.removeEventListener("pointerdown",Pr)),this.option.element||this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(A){this.mouseDownEvent=A,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Me&&(this.el.addEventListener("touchmove",Rr),this.el.addEventListener("touchend",Vr)),A.stopPropagation(),A.preventDefault()}_mouseMove(A){const t=this.mouseDownEvent;this.moving?this._triggerEvent("move",A):Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",A),document.addEventListener("keydown",this._keyEvent)),A.stopPropagation()}_mouseUp(A){this.moving&&(this._triggerEvent("stop",A),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Me&&(this.el.removeEventListener("touchmove",Rr),this.el.removeEventListener("touchend",Vr)),delete this.moving,delete this.mouseDownEvent,A.stopPropagation(),A.preventDefault()}_keyEvent(A){A.key==="Escape"&&(this.host.gridstackNode?.grid?.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(A,t){return this.option[A]&&this.option[A](t),this}};cl.prefix="ui-resizable-";var yi=class{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,A){this._eventRegister[e]=A}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,A){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](A)}},ul=class rs extends yi{constructor(A,t={}){super(),this.el=A,this.option=t,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||o;return{position:{left:(a.left-n.left)*this.rectScale.x,top:(a.top-n.top)*this.rectScale.y},size:{width:a.width*this.rectScale.x,height:a.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(A){const t=A.handles&&A.handles!==this.option.handles,n=A.autoHide&&A.autoHide!==this.option.autoHide;return Object.keys(A).forEach(o=>this.option[o]=A[o]),t&&(this._removeHandlers(),this._setupHandlers()),n&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(A){return A?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),LA.overResizeElement===this&&delete LA.overResizeElement),this}_mouseOver(A){LA.overResizeElement||LA.dragElement||(LA.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(A){LA.overResizeElement===this&&(delete LA.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(A=>A.trim()).map(A=>new cl(this.el,A,{element:this.option.element,start:t=>this._resizeStart(t),stop:t=>this._resizeStop(t),move:t=>this._resizing(t,A)})),this}_resizeStart(A){this.sizeToContent=AA.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=AA.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=A,this._setupHelper(),this._applyChange();const t=AA.initEvent(A,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(t,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",t),this}_resizing(A,t){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(A,t),this._applyChange();const n=AA.initEvent(A,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(n,this._ui()),this.triggerEvent("resize",n),this}_resizeStop(A){const t=AA.initEvent(A,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(t),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",t),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=rs._originStyleProp.map(n=>this.el.style[n]),this.parentOriginStylePosition=this.el.parentElement.style.position;const A=this.el.parentElement,t=AA.getValuesFromTransformedElement(A);return this.rectScale={x:t.xScale,y:t.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return rs._originStyleProp.forEach((A,t)=>{this.el.style[A]=this.elOriginStyleVal[t]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(A,t){const n=this.startEvent,o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=A.clientX-n.clientX,u=this.sizeToContent?0:A.clientY-n.clientY;let d,h;t.indexOf("e")>-1?o.width+=a:t.indexOf("w")>-1&&(o.width-=a,o.left+=a,d=!0),t.indexOf("s")>-1?o.height+=u:t.indexOf("n")>-1&&(o.height-=u,o.top+=u,h=!0);const g=this._constrainSize(o.width,o.height,d,h);return Math.round(o.width)!==Math.round(g.width)&&(t.indexOf("w")>-1&&(o.left+=o.width-g.width),o.width=g.width),Math.round(o.height)!==Math.round(g.height)&&(t.indexOf("n")>-1&&(o.top+=o.height-g.height),o.height=g.height),o}_constrainSize(A,t,n,o){const a=this.option,u=(n?a.maxWidthMoveLeft:a.maxWidth)||Number.MAX_SAFE_INTEGER,d=a.minWidth/this.rectScale.x||A,h=(o?a.maxHeightMoveUp:a.maxHeight)||Number.MAX_SAFE_INTEGER,g=a.minHeight/this.rectScale.y||t;return{width:Math.min(u,Math.max(d,A)),height:Math.min(h,Math.max(g,t))}}_applyChange(){let A={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const{left:t,top:n}=this.el.parentElement.getBoundingClientRect();A={left:t,top:n,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(t=>{const n=this.temporalRect[t],o=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(n-A[t])*o+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(A=>A.destroy()),delete this.handlers,this}};ul._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var Nm='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',dl=class os extends yi{constructor(A,t={}){super(),this.el=A,this.option=t,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0};const n=t?.handle?.substring(1),o=A.gridstackNode;this.dragEls=!n||A.classList.contains(n)?[A]:o?.subGrid?[A.querySelector(t.handle)||A]:Array.from(A.querySelectorAll(t.handle)),this.dragEls.length===0&&(this.dragEls=[A]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(A=>{A.addEventListener("mousedown",this._mouseDown),Me&&(A.addEventListener("touchstart",Kr),A.addEventListener("pointerdown",Pr))}),this.el.classList.remove("ui-draggable-disabled"))}disable(A=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(t=>{t.removeEventListener("mousedown",this._mouseDown),Me&&(t.removeEventListener("touchstart",Kr),t.removeEventListener("pointerdown",Pr))}),A||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(A){return Object.keys(A).forEach(t=>this.option[t]=A[t]),this}_mouseDown(A){if(He.touchHandled&&A.isTrusted&&(He.touchHandled=!1),!LA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(Nm)||this.option.cancel&&A.target.closest(this.option.cancel)||(this.mouseDownEvent=A,delete this.dragging,delete LA.dragElement,delete LA.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Me&&(A.currentTarget.addEventListener("touchmove",Rr),A.currentTarget.addEventListener("touchend",Vr)),A.preventDefault(),document.activeElement&&document.activeElement.blur(),LA.mouseHandled=!0),!0}_callDrag(A){if(!this.dragging)return;const t=AA.initEvent(A,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(t,this.ui()),this.triggerEvent("drag",t)}_mouseMove(A){const t=this.mouseDownEvent;if(this.lastDrag=A,this.dragging)if(this._dragFollow(A),LA.pauseDrag){const n=Number.isInteger(LA.pauseDrag)?LA.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(A),n)}else this._callDrag(A);else if(Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>3){this.dragging=!0,LA.dragElement=this;const n=this.el.gridstackNode?.grid;n?LA.dropElement=n.el.ddElement.ddDroppable:delete LA.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=AA.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(A,this.el,this.helperContainment),this._setupHelperStyle(A);const o=AA.initEvent(A,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(o,this.ui()),this.triggerEvent("dragstart",o),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(A){if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Me&&A.currentTarget&&(A.currentTarget.removeEventListener("touchmove",Rr,!0),A.currentTarget.removeEventListener("touchend",Vr,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),LA.dropElement?.el===this.el.parentElement&&delete LA.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const t=AA.initEvent(A,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(t),this.triggerEvent("dragstop",t),LA.dropElement&&LA.dropElement.drop(A)}delete this.helper,delete this.mouseDownEvent,delete LA.dragElement,delete LA.dropElement,delete LA.mouseHandled,A.preventDefault()}_keyEvent(A){const t=this.el.gridstackNode,n=t?.grid||LA.dropElement?.el?.gridstack;if(A.key==="Escape")t&&t._origRotate&&(t._orig=t._origRotate,delete t._origRotate),n?.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(t&&n&&(A.key==="r"||A.key==="R")){if(!AA.canBeRotated(t))return;t._origRotate=t._origRotate||{...t._orig},delete t._moving,n.setAnimation(!1).rotate(t.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetLeft}).setAnimation(),t._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,t.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",AA.swap(t._orig,"w","h"),delete t._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let A=this.el;return typeof this.option.helper=="function"?A=this.option.helper(this.el):this.option.helper==="clone"&&(A=AA.cloneNode(this.el)),A.parentElement||AA.appendTo(A,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=os.originStyleProp.map(t=>this.el.style[t]),A}_setupHelperStyle(A){this.helper.classList.add("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");const t=this.helper.style;return t.pointerEvents="none",t.width=this.dragOffset.width+"px",t.height=this.dragOffset.height+"px",t.willChange="left, top",t.position="fixed",this._dragFollow(A),t.transition="none",setTimeout(()=>{this.helper&&(t.transition=null)},0),this}_removeHelperStyle(){if(this.helper.classList.remove("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"),!this.helper?.gridstackNode?._isAboutToRemove&&this.dragElementOriginStyle){const A=this.helper,t=this.dragElementOriginStyle.transition||null;A.style.transition=this.dragElementOriginStyle.transition="none",os.originStyleProp.forEach(n=>A.style[n]=this.dragElementOriginStyle[n]||null),setTimeout(()=>A.style.transition=t,50)}return delete this.dragElementOriginStyle,this}_dragFollow(A){const t={left:0,top:0},n=this.helper.style,o=this.dragOffset;n.left=(A.clientX+o.offsetLeft-t.left)*this.dragTransform.xScale+"px",n.top=(A.clientY+o.offsetTop-t.top)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(A,t,n){let o=0,a=0;n&&(o=this.dragTransform.xOffset,a=this.dragTransform.yOffset);const u=t.getBoundingClientRect();return{left:u.left,top:u.top,offsetLeft:-A.clientX+u.left-o,offsetTop:-A.clientY+u.top-a,width:u.width*this.dragTransform.xScale,height:u.height*this.dragTransform.yScale}}ui(){const A=this.el.parentElement.getBoundingClientRect(),t=this.helper.getBoundingClientRect();return{position:{top:(t.top-A.top)*this.dragTransform.yScale,left:(t.left-A.left)*this.dragTransform.xScale}}}};dl.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Lm=class extends yi{constructor(e,A={}){super(),this.el=e,this.option=A,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,A){super.on(e,A)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),Me&&(this.el.addEventListener("pointerenter",al),this.el.addEventListener("pointerleave",ll)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),Me&&(this.el.removeEventListener("pointerenter",al),this.el.removeEventListener("pointerleave",ll)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(A=>this.option[A]=e[A]),this._setupAccept(),this}_mouseEnter(e){if(!LA.dragElement||He.touchHandled&&e.isTrusted||!this._canDrop(LA.dragElement.el))return;e.preventDefault(),e.stopPropagation(),LA.dropElement&&LA.dropElement!==this&&LA.dropElement._mouseLeave(e,!0),LA.dropElement=this;const A=AA.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(A,this._ui(LA.dragElement)),this.triggerEvent("dropover",A),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,A=!1){if(!LA.dragElement||LA.dropElement!==this)return;e.preventDefault(),e.stopPropagation();const t=AA.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(t,this._ui(LA.dragElement)),this.triggerEvent("dropout",t),LA.dropElement===this&&(delete LA.dropElement,!A)){let n,o=this.el.parentElement;for(;!n&&o;)n=o.ddElement?.ddDroppable,o=o.parentElement;n&&n._mouseEnter(e)}}drop(e){e.preventDefault();const A=AA.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(A,this._ui(LA.dragElement)),this.triggerEvent("drop",A)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}},km=class wu{static init(A){return A.ddElement||(A.ddElement=new wu(A)),A.ddElement}constructor(A){this.el=A}on(A,t){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.on(A,t):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.on(A,t):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.on(A,t),this}off(A){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.off(A):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.off(A):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.off(A),this}setupDraggable(A){return this.ddDraggable?this.ddDraggable.updateOption(A):this.ddDraggable=new dl(this.el,A),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(A){return this.ddResizable?this.ddResizable.updateOption(A):this.ddResizable=new ul(this.el,A),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(A){return this.ddDroppable?this.ddDroppable.updateOption(A):this.ddDroppable=new Lm(this.el,A),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},Tm=class{resizable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddResizable&&o.ddResizable[A]();else if(A==="destroy")o.ddResizable&&o.cleanResizable();else if(A==="option")o.setupResizable({[t]:n});else{const a=o.el.gridstackNode.grid;let u=o.el.getAttribute("gs-resize-handles")||a.opts.resizable.handles||"e,s,se";u==="all"&&(u="n,e,s,w,se,sw,ne,nw");const d=!a.opts.alwaysShowResizeHandle;o.setupResizable({...a.opts.resizable,handles:u,autoHide:d,start:A.start,stop:A.stop,resize:A.resize})}}),this}draggable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddDraggable&&o.ddDraggable[A]();else if(A==="destroy")o.ddDraggable&&o.cleanDraggable();else if(A==="option")o.setupDraggable({[t]:n});else{const a=o.el.gridstackNode.grid;o.setupDraggable({...a.opts.draggable,start:A.start,stop:A.stop,drag:A.drag})}}),this}dragIn(e,A){return this._getDDElements(e).forEach(t=>t.setupDraggable(A)),this}droppable(e,A,t,n){return typeof A.accept=="function"&&!A._accept&&(A._accept=A.accept,A.accept=o=>A._accept(o)),this._getDDElements(e,A).forEach(o=>{A==="disable"||A==="enable"?o.ddDroppable&&o.ddDroppable[A]():A==="destroy"?o.ddDroppable&&o.cleanDroppable():A==="option"?o.setupDroppable({[t]:n}):o.setupDroppable(A)}),this}isDroppable(e){return!!(e?.ddElement?.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e?.ddElement?.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e?.ddElement?.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,A,t){return this._getDDElements(e).forEach(n=>n.on(A,o=>{t(o,LA.dragElement?LA.dragElement.el:o.target,LA.dragElement?LA.dragElement.helper:null)})),this}off(e,A){return this._getDDElements(e).forEach(t=>t.off(A)),this}_getDDElements(e,A){const t=e.gridstack||A!=="destroy"&&A!=="disable",n=AA.getElements(e);return n.length?n.map(o=>o.ddElement||(t?km.init(o):null)).filter(o=>o):[]}},we=new Tm,en=class NA{static init(A={},t=".grid-stack"){if(typeof document>"u")return null;const n=NA.getGridElement(t);return n?(n.gridstack||(n.gridstack=new NA(n,AA.cloneDeep(A))),n.gridstack):(console.error(typeof t=="string"?'GridStack.initAll() no grid was found with selector "'+t+`" - element missing or wrong selector ?
|
|
27
27
|
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(A={},t=".grid-stack"){const n=[];return typeof document>"u"||(NA.getGridElements(t).forEach(o=>{o.gridstack||(o.gridstack=new NA(o,AA.cloneDeep(A))),n.push(o.gridstack)}),n.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+t+`" - element missing or wrong selector ?
|
|
28
|
-
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),n}static addGrid(A,t={}){if(!A)return null;let n=A;if(n.gridstack){const o=n.gridstack;return t&&(o.opts={...o.opts,...t}),t.children!==void 0&&o.load(t.children),o}return(!A.classList.contains("grid-stack")||NA.addRemoveCB)&&(NA.addRemoveCB?n=NA.addRemoveCB(A,t,!0,!0):n=AA.createDiv(["grid-stack",t.class],A)),NA.init(t,n)}static registerEngine(A){NA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=AA.createDiv([this.opts.placeholderClass,be.itemClass,this.opts.itemClass]);const A=AA.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(A.textContent=this.opts.placeholderText)}return this._placeholder}constructor(A,t={}){this.el=A,this.opts=t,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},A.gridstack=this,this.opts=t=t||{},A.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),t.row&&(t.minRow=t.maxRow=t.row,delete t.row);const n=AA.toNumber(A.getAttribute("gs-row"));t.column==="auto"&&delete t.column,t.alwaysShowResizeHandle!==void 0&&(t._alwaysShowResizeHandle=t.alwaysShowResizeHandle);const o=t.columnOpts;if(o){const h=o.breakpoints;!o.columnWidth&&!h?.length?delete t.columnOpts:(o.columnMax=o.columnMax||12,h?.length>1&&h.sort((g,B)=>(B.w||0)-(g.w||0)))}const a={...AA.cloneDeep(be),column:AA.toNumber(A.getAttribute("gs-column"))||be.column,minRow:n||AA.toNumber(A.getAttribute("gs-min-row"))||be.minRow,maxRow:n||AA.toNumber(A.getAttribute("gs-max-row"))||be.maxRow,staticGrid:AA.toBool(A.getAttribute("gs-static"))||be.staticGrid,sizeToContent:AA.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||be.draggable.handle},removableOptions:{accept:t.itemClass||be.removableOptions.accept,decline:be.removableOptions.decline}};A.getAttribute("gs-animate")&&(a.animate=AA.toBool(A.getAttribute("gs-animate"))),t=AA.defaults(t,a),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(t),t.rtl==="auto"&&(t.rtl=A.style.direction==="rtl"),t.rtl&&this.el.classList.add("grid-stack-rtl");const u=this.el.closest("."+be.itemClass)?.gridstackNode;if(u&&(u.subGrid=this,this.parentGridNode=u,this.el.classList.add("grid-stack-nested"),u.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=t.cellHeight==="auto",this._isAutoCellHeight||t.cellHeight==="initial")this.cellHeight(void 0);else{typeof t.cellHeight=="number"&&t.cellHeightUnit&&t.cellHeightUnit!==be.cellHeightUnit&&(t.cellHeight=t.cellHeight+t.cellHeightUnit,delete t.cellHeightUnit);const h=t.cellHeight;delete t.cellHeight,this.cellHeight(h)}t.alwaysShowResizeHandle==="mobile"&&(t.alwaysShowResizeHandle=Me),this._setStaticClass();const d=t.engineClass||NA.engineClass||Ci;if(this.engine=new d({column:this.getColumn(),float:t.float,maxRow:t.maxRow,onChange:h=>{h.forEach(g=>{const B=g.el;B&&(g._removeDOM?(B&&B.remove(),delete g._removeDOM):this._writePosAttr(B,g))}),this._updateContainerHeight()}}),t.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(h=>this._prepareElement(h)),delete this.engine._loading,this.batchUpdate(!1)),t.children){const h=t.children;delete t.children,h.length&&this.load(h)}this.setAnimation(),t.subGridDynamic&&!LA.pauseDrag&&(LA.pauseDrag=!0),t.draggable?.pause!==void 0&&(LA.pauseDrag=t.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(A=this.opts){this.el.classList.add("gs-"+A.column),typeof A.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/A.column}%`)}addWidget(A){if(!A)return;if(typeof A=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(A.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(A);let t,n=A;if(n.grid=this,n.el?t=n.el:NA.addRemoveCB?t=NA.addRemoveCB(this.el,A,!0,!1):t=this.createWidgetDivs(n),!t)return;if(n=t.gridstackNode,n&&t.parentElement===this.el&&this.engine.nodes.find(a=>a._id===n._id))return t;const o=this._readAttr(t);return AA.defaults(A,o),this.engine.prepareNode(A),this.el.appendChild(t),this.makeWidget(t,A),t}createWidgetDivs(A){const t=AA.createDiv(["grid-stack-item",this.opts.itemClass]),n=AA.createDiv(["grid-stack-item-content"],t);return AA.lazyLoad(A)?A.visibleObservable||(A.visibleObservable=new IntersectionObserver(([o])=>{o.isIntersecting&&(A.visibleObservable?.disconnect(),delete A.visibleObservable,NA.renderCB(n,A),A.grid?.prepareDragDrop(A.el))}),window.setTimeout(()=>A.visibleObservable?.observe(t))):NA.renderCB(n,A),t}makeSubGrid(A,t,n,o=!0){let a=A.gridstackNode;if(a||(a=this.makeWidget(A).gridstackNode),a.subGrid?.el)return a.subGrid;let u,d=this;for(;d&&!u;)u=d.opts?.subGridOpts,d=d.parentGridNode?.grid;t=AA.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...u||{},...t||a.subGridOpts||{}}),a.subGridOpts=t;let h;t.column==="auto"&&(h=!0,t.column=Math.max(a.w||1,n?.w||1),delete t.columnOpts);let g=a.el.querySelector(".grid-stack-item-content"),B,w;if(o&&(this._removeDD(a.el),w={...a,x:0,y:0},AA.removeInternalForSave(w),delete w.subGridOpts,a.content&&(w.content=a.content,delete a.content),NA.addRemoveCB?B=NA.addRemoveCB(this.el,w,!0,!1):(B=AA.createDiv(["grid-stack-item"]),B.appendChild(g),g=AA.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),n){const y=h?t.column:a.w,Q=a.h+n.h,U=a.el.style;U.transition="none",this.update(a.el,{w:y,h:Q}),setTimeout(()=>U.transition=null)}const m=a.subGrid=NA.addGrid(g,t);return n?._moving&&(m._isTemp=!0),h&&(m._autoColumn=!0),o&&m.makeWidget(B,w),n&&(n._moving?window.setTimeout(()=>AA.simulateMouseEvent(n._event,"mouseenter",m.el),0):m.makeWidget(a.el,a)),this.resizeToContentCheck(!1,a),m}removeAsSubGrid(A){const t=this.parentGridNode?.grid;t&&(t.batchUpdate(),t.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(n=>{n.x+=this.parentGridNode.x,n.y+=this.parentGridNode.y,t.makeWidget(n.el,n)}),t.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,A&&window.setTimeout(()=>AA.simulateMouseEvent(A._event,"mouseenter",t.el),0))}save(A=!0,t=!1,n=NA.saveCB,o){const a=this.engine.save(A,n,o);if(a.forEach(u=>{if(A&&u.el&&!u.subGrid&&!n)u.content=u.el.querySelector(".grid-stack-item-content")?.innerHTML,u.content||delete u.content;else if(!A&&!n&&delete u.content,u.subGrid?.el){const d=u.w||u.subGrid.getColumn(),h=u.subGrid.save(A,t,n,d);u.subGridOpts=t?h:{children:h},delete u.subGrid}delete u.el}),t){const u=AA.cloneDeep(this.opts);u.marginBottom===u.marginTop&&u.marginRight===u.marginLeft&&u.marginTop===u.marginRight&&(u.margin=u.marginTop,delete u.marginTop,delete u.marginRight,delete u.marginBottom,delete u.marginLeft),u.rtl===(this.el.style.direction==="rtl")&&(u.rtl="auto"),this._isAutoCellHeight&&(u.cellHeight="auto"),this._autoColumn&&(u.column="auto");const d=u._alwaysShowResizeHandle;return delete u._alwaysShowResizeHandle,d!==void 0?u.alwaysShowResizeHandle=d:delete u.alwaysShowResizeHandle,AA.removeInternalAndSame(u,be),u.children=a,u}return a}load(A,t=NA.addRemoveCB||!0){A=AA.cloneDeep(A);const n=this.getColumn();A.forEach(B=>{B.w=B.w||B.minW||1,B.h=B.h||B.minH||1}),A=AA.sort(A),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let o=0;A.forEach(B=>{o=Math.max(o,(B.x||0)+B.w)}),o>this.engine.defaultColumn&&(this.engine.defaultColumn=o),o>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=A,this.engine.columnChanged(o,n,this.responseLayout),A=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(A,o,!0));const a=NA.addRemoveCB;typeof t=="function"&&(NA.addRemoveCB=t);const u=[];this.batchUpdate();const d=!this.engine.nodes.length,h=d&&this.opts.animate;h&&this.setAnimation(!1),!d&&t&&[...this.engine.nodes].forEach(B=>{B.id&&(AA.find(A,B.id)||(NA.addRemoveCB&&NA.addRemoveCB(this.el,B,!1,!1),u.push(B),this.removeWidget(B.el,!0,!1)))}),this.engine._loading=!0;const g=[];return this.engine.nodes=this.engine.nodes.filter(B=>AA.find(A,B.id)?(g.push(B),!1):!0),A.forEach(B=>{const w=AA.find(g,B.id);if(w){if(AA.shouldSizeToContent(w)&&(B.h=w.h),this.engine.nodeBoundFix(B),(B.autoPosition||B.x===void 0||B.y===void 0)&&(B.w=B.w||w.w,B.h=B.h||w.h,this.engine.findEmptyPosition(B)),this.engine.nodes.push(w),AA.samePos(w,B)&&this.engine.nodes.length>1&&(this.moveNode(w,{...B,forceCollide:!0}),AA.copyPos(B,w)),this.update(w.el,B),B.subGridOpts?.children){const m=w.el.querySelector(".grid-stack");m&&m.gridstack&&m.gridstack.load(B.subGridOpts.children)}}else t&&this.addWidget(B)}),delete this.engine._loading,this.engine.removedNodes=u,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,a?NA.addRemoveCB=a:delete NA.addRemoveCB,h&&this.setAnimation(!0,!0),this}batchUpdate(A=!0){return this.engine.batchUpdate(A),A||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(A=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!A||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const t=this.el.querySelector("."+this.opts.itemClass);if(t){const o=AA.toNumber(t.getAttribute("gs-h"))||1;return Math.round(t.offsetHeight/o)}const n=parseInt(this.el.getAttribute("gs-current-row"));return n?Math.round(this.el.getBoundingClientRect().height/n):this.opts.cellHeight}cellHeight(A){if(A!==void 0&&this._isAutoCellHeight!==(A==="auto")&&(this._isAutoCellHeight=A==="auto",this._updateResizeEvent()),(A==="initial"||A==="auto")&&(A=void 0),A===void 0){const n=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;A=this.cellWidth()+n}const t=AA.parseHeight(A);return this.opts.cellHeightUnit===t.unit&&this.opts.cellHeight===t.h?this:(this.opts.cellHeightUnit=t.unit,this.opts.cellHeight=t.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(A=!1){return A&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){const A=this.opts.columnOpts;if(!A||!A.columnWidth&&!A.breakpoints?.length)return!1;const t=this.getColumn();let n=t;const o=this._widthOrContainer(!0);if(A.columnWidth)n=Math.min(Math.round(o/A.columnWidth)||1,A.columnMax);else{n=A.columnMax;let a=0;for(;a<A.breakpoints.length&&o<=A.breakpoints[a].w;)n=A.breakpoints[a++].c||t}if(n!==t){const a=A.breakpoints?.find(u=>u.c===n);return this.column(n,a?.layout||A.layout),!0}return!1}compact(A="compact",t=!0){return this.engine.compact(A,t),this._triggerChangeEvent(),this}column(A,t="moveScale"){if(!A||A<1||this.opts.column===A)return this;const n=this.getColumn();return this.opts.column=A,this.engine?(this.engine.column=A,this.el.classList.remove("gs-"+n),this._updateColumnVar(),this.engine.columnChanged(n,A,t),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=t,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(A=>A.matches("."+this.opts.itemClass)&&!A.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(A=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),A?this.el.parentNode.removeChild(this.el):(this.removeAll(A),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(A){return this.opts.float!==A&&(this.opts.float=this.engine.float=A,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(A,t=!1){const n=this.el.getBoundingClientRect();let o;t?o={top:n.top+document.documentElement.scrollTop,left:n.left}:o={top:this.el.offsetTop,left:this.el.offsetLeft};const a=A.left-o.left,u=A.top-o.top,d=n.width/this.getColumn(),h=n.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(a/d),y:Math.floor(u/h)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(A,t,n,o){return this.engine.isAreaEmpty(A,t,n,o)}makeWidget(A,t){const n=NA.getElement(A);if(!n||n.gridstackNode)return n;n.parentElement||this.el.appendChild(n),this._prepareElement(n,!0,t);const o=n.gridstackNode;this._updateContainerHeight(),o.subGridOpts&&this.makeSubGrid(n,o.subGridOpts,void 0,!1);let a;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(a=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),a&&delete this._ignoreLayoutsNodeChange,n}on(A,t){return A.indexOf(" ")!==-1?(A.split(" ").forEach(n=>this.on(n,t)),this):(A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable"?(A==="enable"||A==="disable"?this._gsEventHandler[A]=n=>t(n):this._gsEventHandler[A]=n=>{n.detail&&t(n,n.detail)},this.el.addEventListener(A,this._gsEventHandler[A])):A==="drag"||A==="dragstart"||A==="dragstop"||A==="resizestart"||A==="resize"||A==="resizestop"||A==="dropped"||A==="resizecontent"?this._gsEventHandler[A]=t:console.error("GridStack.on("+A+") event not supported"),this)}off(A){return A.indexOf(" ")!==-1?(A.split(" ").forEach(t=>this.off(t)),this):((A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable")&&this._gsEventHandler[A]&&this.el.removeEventListener(A,this._gsEventHandler[A]),delete this._gsEventHandler[A],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(A=>this.off(A)),this}removeWidget(A,t=!0,n=!0){return A?(NA.getElements(A).forEach(o=>{if(o.parentElement&&o.parentElement!==this.el)return;let a=o.gridstackNode;a||(a=this.engine.nodes.find(u=>o===u.el)),a&&(t&&NA.addRemoveCB&&NA.addRemoveCB(this.el,a,!1,!1),delete o.gridstackNode,this._removeDD(o),this.engine.removeNode(a,t,n),t&&o.parentElement&&o.remove())}),n&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(A=!0,t=!0){return this.engine.nodes.forEach(n=>{A&&NA.addRemoveCB&&NA.addRemoveCB(this.el,n,!1,!1),delete n.el.gridstackNode,this.opts.staticGrid||this._removeDD(n.el)}),this.engine.removeAll(A,t),t&&this._triggerRemoveEvent(),this}setAnimation(A=this.opts.animate,t){return t?setTimeout(()=>{this.opts&&this.setAnimation(A)}):A?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=A,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(A,t=!0,n=!0){return!!this.opts.staticGrid===A?this:(A?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(o=>{this.prepareDragDrop(o.el),o.subGrid&&n&&o.subGrid.setStatic(A,t,n)}),t&&this._setStaticClass(),this)}updateOptions(A){const t=this.opts;return A===t?this:(A.acceptWidgets!==void 0&&(t.acceptWidgets=A.acceptWidgets,this._setupAcceptWidget()),A.animate!==void 0&&this.setAnimation(A.animate),A.cellHeight&&this.cellHeight(A.cellHeight),A.class!==void 0&&A.class!==t.class&&(t.class&&this.el.classList.remove(t.class),A.class&&this.el.classList.add(A.class)),A.columnOpts?(this.opts.columnOpts=A.columnOpts,this.checkDynamicColumn()):A.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof A.column=="number"&&this.column(A.column),A.margin!==void 0&&this.margin(A.margin),A.staticGrid!==void 0&&this.setStatic(A.staticGrid),A.disableDrag!==void 0&&!A.staticGrid&&this.enableMove(!A.disableDrag),A.disableResize!==void 0&&!A.staticGrid&&this.enableResize(!A.disableResize),A.float!==void 0&&this.float(A.float),A.row!==void 0?(t.minRow=t.maxRow=t.row=A.row,this._updateContainerHeight()):(A.minRow!==void 0&&(t.minRow=A.minRow,this._updateContainerHeight()),A.maxRow!==void 0&&(t.maxRow=A.maxRow)),A.lazyLoad!==void 0&&(t.lazyLoad=A.lazyLoad),A.children?.length&&this.load(A.children),this)}update(A,t){return NA.getElements(A).forEach(n=>{const o=n?.gridstackNode;if(!o)return;const a={...AA.copyPos({},o),...AA.cloneDeep(t)};this.engine.nodeBoundFix(a),delete a.autoPosition;const u=["x","y","w","h"];let d;if(u.some(B=>a[B]!==void 0&&a[B]!==o[B])&&(d={},u.forEach(B=>{d[B]=a[B]!==void 0?a[B]:o[B],delete a[B]})),!d&&(a.minW||a.minH||a.maxW||a.maxH)&&(d={}),a.content!==void 0){const B=n.querySelector(".grid-stack-item-content");B&&B.textContent!==a.content&&(o.content=a.content,NA.renderCB(B,a),o.subGrid?.el&&(B.appendChild(o.subGrid.el),o.subGrid._updateContainerHeight())),delete a.content}let h=!1,g=!1;for(const B in a)B[0]!=="_"&&o[B]!==a[B]&&(o[B]=a[B],h=!0,g=g||!this.opts.staticGrid&&(B==="noResize"||B==="noMove"||B==="locked"));if(AA.sanitizeMinMax(o),d){const B=d.w!==void 0&&d.w!==o.w;this.moveNode(o,d),B&&o.subGrid?o.subGrid.onResize(this.hasAnimationCSS()?o.w:void 0):this.resizeToContentCheck(B,o),delete o._orig}(d||h)&&this._writeAttr(n,o),g&&this.prepareDragDrop(o.el),NA.updateCB&&NA.updateCB(o)}),this}moveNode(A,t){const n=A._updating;n||this.engine.cleanNodes().beginUpdate(A),this.engine.moveNode(A,t),this._updateContainerHeight(),n||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(A){if(!A||(A.classList.remove("size-to-content-max"),!A.clientHeight))return;const t=A.gridstackNode;if(!t)return;const n=t.grid;if(!n||A.parentElement!==n.el)return;const o=n.getCellHeight(!0);if(!o)return;let a=t.h?t.h*o:A.clientHeight,u;if(t.resizeToContentParent&&(u=A.querySelector(t.resizeToContentParent)),u||(u=A.querySelector(NA.resizeToContentParent)),!u)return;const d=A.clientHeight-u.clientHeight,h=t.h?t.h*o-d:u.clientHeight;let g;if(t.subGrid){g=t.subGrid.getRow()*t.subGrid.getCellHeight(!0);const m=t.subGrid.el.getBoundingClientRect(),y=A.getBoundingClientRect();g+=m.top-y.top}else{if(t.subGridOpts?.children?.length)return;{const m=u.firstElementChild;if(!m){console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${NA.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}g=m.getBoundingClientRect().height||h}}if(h===g)return;a+=g-h;let B=Math.ceil(a/o);const w=Number.isInteger(t.sizeToContent)?t.sizeToContent:0;w&&B>w&&(B=w,A.classList.add("size-to-content-max")),t.minH&&B<t.minH?B=t.minH:t.maxH&&B>t.maxH&&(B=t.maxH),B!==t.h&&(n._ignoreLayoutsNodeChange=!0,n.moveNode(t,{h:B}),delete n._ignoreLayoutsNodeChange)}resizeToContentCBCheck(A){NA.resizeToContentCB?NA.resizeToContentCB(A):this.resizeToContent(A)}rotate(A,t){return NA.getElements(A).forEach(n=>{const o=n.gridstackNode;if(!AA.canBeRotated(o))return;const a={w:o.h,h:o.w,minH:o.minW,minW:o.minH,maxH:o.maxW,maxW:o.maxH};if(t){const d=t.left>0?Math.floor(t.left/this.cellWidth()):0,h=t.top>0?Math.floor(t.top/this.opts.cellHeight):0;a.x=o.x+d-(o.h-(h+1)),a.y=o.y+h-d}Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]});const u=o._orig;this.update(n,a),o._orig=u}),this}margin(A){if(!(typeof A=="string"&&A.split(" ").length>1)){const t=AA.parseHeight(A);if(this.opts.marginUnit===t.unit&&this.opts.margin===t.h)return}return this.opts.margin=A,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(A){return this.engine.willItFit(A)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const A=this.engine.getDirtyNodes(!0);return A&&A.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(A),this._triggerEvent("change",A)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(t=>{delete t._dirty});const A=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",A)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){const A=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",A)}return this}_triggerEvent(A,t){const n=t?new CustomEvent(A,{bubbles:!1,detail:t}):new Event(A);let o=this;for(;o.parentGridNode;)o=o.parentGridNode.grid;return o.el.dispatchEvent(n),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const A=this.parentGridNode;let t=this.getRow()+this._extraDragRow;const n=this.opts.cellHeight,o=this.opts.cellHeightUnit;if(!n)return this;if(!A&&!this.opts.minRow){const a=AA.parseHeight(getComputedStyle(this.el).minHeight);if(a.h>0&&a.unit===o){const u=Math.floor(a.h/n);t<u&&(t=u)}}return this.el.setAttribute("gs-current-row",String(t)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),t&&(this.el.style[A?"minHeight":"height"]=t*n+o),A&&AA.shouldSizeToContent(A)&&A.grid.resizeToContentCBCheck(A.el),this}_prepareElement(A,t=!1,n){n=n||this._readAttr(A),A.gridstackNode=n,n.el=A,n.grid=this,n=this.engine.addNode(n,t),this._writeAttr(A,n),A.classList.add(be.itemClass,this.opts.itemClass);const o=AA.shouldSizeToContent(n);return o?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,n),AA.lazyLoad(n)||this.prepareDragDrop(n.el),this}_writePosAttr(A,t){return(!t._moving&&!t._resizing||this._placeholder===A)&&(A.style.top=t.y?t.y===1?"var(--gs-cell-height)":`calc(${t.y} * var(--gs-cell-height))`:null,A.style.left=t.x?t.x===1?"var(--gs-column-width)":`calc(${t.x} * var(--gs-column-width))`:null,A.style.width=t.w>1?`calc(${t.w} * var(--gs-column-width))`:null,A.style.height=t.h>1?`calc(${t.h} * var(--gs-cell-height))`:null),A.setAttribute("gs-x",String(t.x)),A.setAttribute("gs-y",String(t.y)),t.w>1?A.setAttribute("gs-w",String(t.w)):A.removeAttribute("gs-w"),t.h>1?A.setAttribute("gs-h",String(t.h)):A.removeAttribute("gs-h"),this}_writeAttr(A,t){if(!t)return this;this._writePosAttr(A,t);const n={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const o in n)t[o]?A.setAttribute(n[o],String(t[o])):A.removeAttribute(n[o]);return this}_readAttr(A,t=!0){const n={};n.x=AA.toNumber(A.getAttribute("gs-x")),n.y=AA.toNumber(A.getAttribute("gs-y")),n.w=AA.toNumber(A.getAttribute("gs-w")),n.h=AA.toNumber(A.getAttribute("gs-h")),n.autoPosition=AA.toBool(A.getAttribute("gs-auto-position")),n.noResize=AA.toBool(A.getAttribute("gs-no-resize")),n.noMove=AA.toBool(A.getAttribute("gs-no-move")),n.locked=AA.toBool(A.getAttribute("gs-locked"));const o=A.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?n.sizeToContent=AA.toBool(o):n.sizeToContent=parseInt(o,10)),n.id=A.getAttribute("gs-id"),n.maxW=AA.toNumber(A.getAttribute("gs-max-w")),n.minW=AA.toNumber(A.getAttribute("gs-min-w")),n.maxH=AA.toNumber(A.getAttribute("gs-max-h")),n.minH=AA.toNumber(A.getAttribute("gs-min-h")),t&&(n.w===1&&A.removeAttribute("gs-w"),n.h===1&&A.removeAttribute("gs-h"),n.maxW&&A.removeAttribute("gs-max-w"),n.minW&&A.removeAttribute("gs-min-w"),n.maxH&&A.removeAttribute("gs-max-h"),n.minH&&A.removeAttribute("gs-min-h"));for(const a in n){if(!n.hasOwnProperty(a))return;!n[a]&&n[a]!==0&&a!=="sizeToContent"&&delete n[a]}return n}_setStaticClass(){const A=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...A),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...A),this.el.removeAttribute("gs-static")),this}onResize(A=this.el?.clientWidth){if(!A||this.prevWidth===A)return;this.prevWidth=A,this.batchUpdate();let t=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),t=!0):t=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(n=>{n.subGrid&&n.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(t),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(A=!1,t=void 0){if(this.engine){if(A&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,t),this.animationDelay);if(t)AA.shouldSizeToContent(t)&&this.resizeToContentCBCheck(t.el);else if(this.engine.nodes.some(n=>AA.shouldSizeToContent(n))){const n=[...this.engine.nodes];this.batchUpdate(),n.forEach(o=>{AA.shouldSizeToContent(o)&&this.resizeToContentCBCheck(o.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,t?[t]:this.engine.nodes)}}_updateResizeEvent(A=!1){const t=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(n=>n.sizeToContent));return!A&&t&&!this.resizeObserver?(this._sizeThrottle=AA.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(A||!t)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(A=".grid-stack-item"){return AA.getElement(A)}static getElements(A=".grid-stack-item"){return AA.getElements(A)}static getGridElement(A){return NA.getElement(A)}static getGridElements(A){return AA.getElements(A)}_initMargin(){let A,t=0,n=[];typeof this.opts.margin=="string"&&(n=this.opts.margin.split(" ")),n.length===2?(this.opts.marginTop=this.opts.marginBottom=n[0],this.opts.marginLeft=this.opts.marginRight=n[1]):n.length===4?(this.opts.marginTop=n[0],this.opts.marginRight=n[1],this.opts.marginBottom=n[2],this.opts.marginLeft=n[3]):(A=AA.parseHeight(this.opts.margin),this.opts.marginUnit=A.unit,t=this.opts.margin=A.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(a=>{this.opts[a]===void 0?this.opts[a]=t:(A=AA.parseHeight(this.opts[a]),this.opts[a]=A.h,delete this.opts.margin)}),this.opts.marginUnit=A.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const o=this.el.style;return o.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return we}static setupDragIn(A,t,n,o=document){t?.pause!==void 0&&(LA.pauseDrag=t.pause),t={appendTo:"body",helper:"clone",...t||{}},(typeof A=="string"?AA.getElements(A,o):A).forEach((a,u)=>{we.isDraggable(a)||we.dragIn(a,t),n?.[u]&&(a.gridstackNode=n[u])})}movable(A,t){return this.opts.staticGrid?this:(NA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noMove:o.noMove=!0,this.prepareDragDrop(o.el))}),this)}resizable(A,t){return this.opts.staticGrid?this:(NA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noResize:o.noResize=!0,this.prepareDragDrop(o.el))}),this)}disable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!1,A),this.enableResize(!1,A),this._triggerEvent("disable"),this}enable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!0,A),this.enableResize(!0,A),this._triggerEvent("enable"),this}enableMove(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableMove(A,t)}),this)}enableResize(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableResize(A,t)}),this)}cancelDrag(){const A=this._placeholder?.gridstackNode;A&&(A._isExternal?(A._isAboutToRemove=!0,this.engine.removeNode(A)):A._isAboutToRemove&&NA._itemRemoving(A.el,!1),this.engine.restoreInitial())}_removeDD(A){return we.draggable(A,"destroy").resizable(A,"destroy"),A.gridstackNode&&delete A.gridstackNode._initDD,delete A.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return we.droppable(this.el,"destroy"),this;let A,t;const n=(o,a,u)=>{u=u||a;const d=u.gridstackNode;if(!d)return;if(!d.grid?.el){u.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const m=u.getBoundingClientRect();u.style.left=m.x+(this.dragTransform.xScale-1)*(o.clientX-m.x)/this.dragTransform.xScale+"px",u.style.top=m.y+(this.dragTransform.yScale-1)*(o.clientY-m.y)/this.dragTransform.yScale+"px",u.style.transformOrigin="0px 0px"}let{top:h,left:g}=u.getBoundingClientRect();const B=this.el.getBoundingClientRect();g-=B.left,h-=B.top;const w={position:{top:h*this.dragTransform.xScale,left:g*this.dragTransform.yScale}};if(d._temporaryRemoved){if(d.x=Math.max(0,Math.round(g/t)),d.y=Math.max(0,Math.round(h/A)),delete d.autoPosition,this.engine.nodeBoundFix(d),!this.engine.willItFit(d)){if(d.autoPosition=!0,!this.engine.willItFit(d)){we.off(a,"drag");return}d._willFitPos&&(AA.copyPos(d,d._willFitPos),delete d._willFitPos)}this._onStartMoving(u,o,w,d,t,A)}else this._dragOrResize(u,o,w,d,t,A)};return we.droppable(this.el,{accept:o=>{const a=o.gridstackNode||this._readAttr(o,!1);if(a?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let u=!0;if(typeof this.opts.acceptWidgets=="function")u=this.opts.acceptWidgets(o);else{const d=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;u=o.matches(d)}if(u&&a&&this.opts.maxRow){const d={w:a.w,h:a.h,minW:a.minW,minH:a.minH};u=this.engine.willItFit(d)}return u}}).on(this.el,"dropover",(o,a,u)=>{let d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._temporaryRemoved)return!1;if(d?._sidebarOrig&&(d.w=d._sidebarOrig.w,d.h=d._sidebarOrig.h),d?.grid&&d.grid!==this&&!d._temporaryRemoved&&d.grid._leave(a,u),u=u||a,t=this.cellWidth(),A=this.getCellHeight(!0),!d){const B=u.getAttribute("data-gs-widget")||u.getAttribute("gridstacknode");if(B){try{d=JSON.parse(B)}catch{console.error("Gridstack dropover: Bad JSON format: ",B)}u.removeAttribute("data-gs-widget"),u.removeAttribute("gridstacknode")}d||(d=this._readAttr(u)),d._sidebarOrig={w:d.w,h:d.h}}d.grid||(d.el||(d={...d}),d._isExternal=!0,u.gridstackNode=d);const h=d.w||Math.round(u.offsetWidth/t)||1,g=d.h||Math.round(u.offsetHeight/A)||1;return d.grid&&d.grid!==this?(a._gridstackNodeOrig||(a._gridstackNodeOrig=d),a.gridstackNode=d={...d,w:h,h:g,grid:this},delete d.x,delete d.y,this.engine.cleanupNode(d).nodeBoundFix(d),d._initDD=d._isExternal=d._temporaryRemoved=!0):(d.w=h,d.h=g,d._temporaryRemoved=!0),NA._itemRemoving(d.el,!1),we.on(a,"drag",n),n(o,a,u),!1}).on(this.el,"dropout",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;return d&&(!d.grid||d.grid===this)&&(this._leave(a,u),this._isTemp&&this.removeAsSubGrid(d)),!1}).on(this.el,"drop",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._isExternal)return!1;const h=!!this.placeholder.parentElement,g=a!==u;this.placeholder.remove(),delete this.placeholder.gridstackNode,h&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const B=a._gridstackNodeOrig;if(delete a._gridstackNodeOrig,h&&B?.grid&&B.grid!==this){const m=B.grid;m.engine.removeNodeFromLayoutCache(B),m.engine.removedNodes.push(B),m._triggerRemoveEvent()._triggerChangeEvent(),m.parentGridNode&&!m.engine.nodes.length&&m.opts.subGridDynamic&&m.removeAsSubGrid()}if(!d||(h&&(this.engine.cleanupNode(d),d.grid=this),delete d.grid?._isTemp,we.off(a,"drag"),u!==a?(u.remove(),a=u):a.remove(),this._removeDD(a),!h))return!1;const w=d.subGrid?.el?.gridstack;return AA.copyPos(d,this._readAttr(this.placeholder)),AA.removePositioningStyles(a),g&&(d.content||d.subGridOpts||NA.addRemoveCB)?(delete d.el,a=this.addWidget(d)):(this._prepareElement(a,!0,d),this.el.appendChild(a),this.resizeToContentCheck(!1,d),w&&(w.parentGridNode=d),this._updateContainerHeight()),this.engine.addedNodes.push(d),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...o,type:"dropped"},B&&B.grid?B:void 0,d),!1}),this}static _itemRemoving(A,t){if(!A)return;const n=A?A.gridstackNode:void 0;!n?.grid||A.classList.contains(n.grid.opts.removableOptions.decline)||(t?n._isAboutToRemove=!0:delete n._isAboutToRemove,t?A.classList.add("grid-stack-item-removing"):A.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const A=document.querySelector(this.opts.removable);return A?(!this.opts.staticGrid&&!we.isDroppable(A)&&we.droppable(A,this.opts.removableOptions).on(A,"dropover",(t,n)=>NA._itemRemoving(n,!0)).on(A,"dropout",(t,n)=>NA._itemRemoving(n,!1)),this):this}prepareDragDrop(A,t=!1){const n=A?.gridstackNode;if(!n)return;const o=n.noMove||this.opts.disableDrag,a=n.noResize||this.opts.disableResize,u=this.opts.staticGrid||o&&a;if((t||u)&&(n._initDD&&(this._removeDD(A),delete n._initDD),u&&A.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!t))return this;if(!n._initDD){let d,h;const g=(m,y)=>{this.triggerEvent(m,m.target),d=this.cellWidth(),h=this.getCellHeight(!0),this._onStartMoving(A,m,y,n,d,h)},B=(m,y)=>{this._dragOrResize(A,m,y,n,d,h)},w=m=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete n._moving,delete n._resizing,delete n._event,delete n._lastTried;const y=n.w!==n._orig.w,Q=m.target;if(!(!Q.gridstackNode||Q.gridstackNode.grid!==this)){if(n.el=Q,n._isAboutToRemove){const U=A.gridstackNode.grid;U._gsEventHandler[m.type]&&U._gsEventHandler[m.type](m,Q),U.engine.nodes.push(n),U.removeWidget(A,!0,!0)}else AA.removePositioningStyles(Q),n._temporaryRemoved?(this._writePosAttr(Q,n),this.engine.addNode(n)):this._writePosAttr(Q,n),this.triggerEvent(m,Q);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(n.sizeToContent)&&(n.sizeToContent=n.h),this.resizeToContentCheck(y,n))}};we.draggable(A,{start:g,stop:w,drag:B}).resizable(A,{start:g,stop:w,resize:B}),n._initDD=!0}return we.draggable(A,o?"disable":"enable").resizable(A,a?"disable":"enable"),this}_onStartMoving(A,t,n,o,a,u){if(this.engine.cleanNodes().beginUpdate(o),this._writePosAttr(this.placeholder,o),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=o,o.grid?.el)this.dragTransform=AA.getValuesFromTransformedElement(A);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=AA.getValuesFromTransformedElement(d)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(o.el=this.placeholder,o._lastUiPosition=n.position,o._prevYPix=n.position.top,o._moving=t.type==="dragstart",o._resizing=t.type==="resizestart",delete o._lastTried,t.type==="dropover"&&o._temporaryRemoved&&(this.engine.addNode(o),o._moving=!0),this.engine.cacheRects(a,u,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),t.type==="resizestart"){const d=this.getColumn()-o.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-o.y;we.resizable(A,"option","minWidth",a*Math.min(o.minW||1,d)).resizable(A,"option","minHeight",u*Math.min(o.minH||1,h)).resizable(A,"option","maxWidth",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(A,"option","maxWidthMoveLeft",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,o.x+o.w)).resizable(A,"option","maxHeight",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(A,"option","maxHeightMoveUp",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,o.y+o.h))}}_dragOrResize(A,t,n,o,a,u){const d={...o._orig};let h,g=this.opts.marginLeft,B=this.opts.marginRight,w=this.opts.marginTop,m=this.opts.marginBottom;const y=Math.round(u*.1),Q=Math.round(a*.1);if(g=Math.min(g,Q),B=Math.min(B,Q),w=Math.min(w,y),m=Math.min(m,y),t.type==="drag"){if(o._temporaryRemoved)return;const T=n.position.top-o._prevYPix;o._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&AA.updateScrollPosition(A,n.position,T);const M=n.position.left+(n.position.left>o._lastUiPosition.left?-B:g),R=n.position.top+(n.position.top>o._lastUiPosition.top?-m:w);d.x=Math.round(M/a),d.y=Math.round(R/u);const H=this._extraDragRow;if(this.engine.collide(o,d)){const P=this.getRow();let iA=Math.max(0,d.y+o.h-P);this.opts.maxRow&&P+iA>this.opts.maxRow&&(iA=Math.max(0,this.opts.maxRow-P)),this._extraDragRow=iA}else this._extraDragRow=0;if(this._extraDragRow!==H&&this._updateContainerHeight(),o.x===d.x&&o.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(AA.updateScrollResize(t,A,u),d.w=Math.round((n.size.width-g)/a),d.h=Math.round((n.size.height-w)/u),o.w===d.w&&o.h===d.h)||o._lastTried&&o._lastTried.w===d.w&&o._lastTried.h===d.h)return;const T=n.position.left+g,M=n.position.top+w;d.x=Math.round(T/a),d.y=Math.round(M/u),h=!0}o._event=t,o._lastTried=d;const U={x:n.position.left+g,y:n.position.top+w,w:(n.size?n.size.width:o.w*a)-g-B,h:(n.size?n.size.height:o.h*u)-w-m};if(this.engine.moveNodeCheck(o,{...d,cellWidth:a,cellHeight:u,rect:U,resizing:h})){o._lastUiPosition=n.position,this.engine.cacheRects(a,u,w,B,m,g),delete o._skipDown,h&&o.subGrid&&o.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const T=t.target;o._sidebarOrig||this._writePosAttr(T,o),this.triggerEvent(t,T)}}triggerEvent(A,t){let n=this;for(;n.parentGridNode;)n=n.parentGridNode.grid;n._gsEventHandler[A.type]&&n._gsEventHandler[A.type](A,t)}_leave(A,t){t=t||A;const n=t.gridstackNode;if(!n||(t.style.transform=t.style.transformOrigin=null,we.off(A,"drag"),n._temporaryRemoved))return;n._temporaryRemoved=!0,this.engine.removeNode(n),n.el=n._isExternal&&t?t:A;const o=n._sidebarOrig;n._isExternal&&this.engine.cleanupNode(n),n._sidebarOrig=o,this.opts.removable===!0&&NA._itemRemoving(A,!0),A._gridstackNodeOrig?(A.gridstackNode=A._gridstackNodeOrig,delete A._gridstackNodeOrig):n._isExternal&&this.engine.restoreInitial()}};en.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},en.resizeToContentParent=".grid-stack-item-content",en.Utils=AA,en.Engine=Ci,en.GDRev="12.4.2";var Mm={class:"d-layout"},Om=["gs-id","gs-x","gs-y","gs-w","gs-h","gs-locked","gs-no-resize","gs-no-move","gs-min-w","gs-min-h","gs-max-w","gs-max-h"],Km=(0,r.defineComponent)({name:"DLayout",__name:"layout",props:{modelValue:{default:()=>[]},column:{default:24},cellHeight:{default:60},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},float:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removableOptions:{}},emits:["update:modelValue","added","removed","changed","dragStart","dragStop","resizeStart","resizeStop"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)();let u=null;const d=async()=>{a.value&&(await(0,r.nextTick)(),u&&u.destroy(!1),u=en.init({column:n.column,cellHeight:n.cellHeight,disableDrag:!(n.draggable&&!n.disable),disableResize:!(n.resizable&&!n.disable),animate:n.animate,float:n.float,removable:n.removable,removableOptions:n.removableOptions},a.value),u.on("added",(m,y)=>{const Q=y[0];Q&&(o("added",h(Q)),B())}),u.on("removed",(m,y)=>{const Q=y[0];Q&&(o("removed",h(Q)),B())}),u.on("change",()=>{B(),o("changed",(u?.save()||[]).map(m=>h(m)))}),u.on("dragstart",(m,y)=>{y&&o("dragStart",m,h(y.gridstackNode||y))}),u.on("dragstop",(m,y)=>{y&&o("dragStop",m,h(y.gridstackNode||y))}),u.on("resizestart",(m,y)=>{y&&o("resizeStart",m,h(y.gridstackNode||y))}),u.on("resizestop",(m,y)=>{y&&o("resizeStop",m,h(y.gridstackNode||y))}))},h=m=>({id:m.id||m.el?.getAttribute("gs-id")||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1,locked:m.locked||!1,noResize:m.noResize||!1,noMove:m.noMove||!1,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}),g=async()=>{if(!u||!a.value)return;await(0,r.nextTick)();const m=u.engine.nodes;new Set(m.map(Q=>Q.id));const y=new Set(n.modelValue.map(Q=>Q.id));m.forEach(Q=>{if(!y.has(Q.id||"")){const U=Q.el;U&&u&&u.removeWidget(U,!1)}}),n.modelValue.forEach(Q=>{const U=m.find(T=>T.id===Q.id);if(U)U.el&&u&&u.update(U.el,{x:Q.x,y:Q.y,w:Q.w,h:Q.h,locked:Q.locked,noResize:Q.noResize,noMove:Q.noMove,minW:Q.minW,minH:Q.minH,maxW:Q.maxW,maxH:Q.maxH});else{if(!a.value||!u)return;const T=a.value.querySelector(`[gs-id="${Q.id}"]`);T&&u.makeWidget(T)}})},B=()=>{u&&o("update:modelValue",u.save().map(m=>{const y={id:m.id||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1},Q=n.modelValue.find(U=>U.id===y.id);return Q&&Object.keys(Q).forEach(U=>{["id","x","y","w","h"].includes(U)||(y[U]=Q[U])}),y}))},w=(0,r.computed)(()=>n.modelValue);return(0,r.watch)(()=>n.modelValue,async()=>{u&&(await(0,r.nextTick)(),g())},{deep:!0}),(0,r.watch)(()=>[n.column,n.cellHeight,n.draggable,n.resizable,n.disable,n.animate,n.float,n.removable],()=>{d()}),(0,r.onMounted)(()=>{d()}),(0,r.onBeforeUnmount)(()=>{u&&(u.destroy(!1),u=null)}),A({addItem:async m=>{if(u&&a.value){await(0,r.nextTick)();const y=a.value.querySelector(`[gs-id="${m.id}"]`);y&&(u.makeWidget(y),u.update(y,{x:m.x,y:m.y,w:m.w,h:m.h,locked:m.locked,noResize:m.noResize,noMove:m.noMove,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}))}},removeItem:m=>{if(u&&a.value){const y=a.value.querySelector(`[gs-id="${m}"]`);y&&u.removeWidget(y,!1)}},clear:()=>{u&&u.removeAll(!1)},getGrid:()=>u}),(m,y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Mm,[(0,r.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.value,Q=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Q.id,"gs-id":Q.id,"gs-x":Q.x,"gs-y":Q.y,"gs-w":Q.w,"gs-h":Q.h,"gs-locked":Q.locked,"gs-no-resize":Q.noResize,"gs-no-move":Q.noMove,"gs-min-w":Q.minW,"gs-min-h":Q.minH,"gs-max-w":Q.maxW,"gs-max-h":Q.maxH,class:"d-layout-item"},[(0,r.renderSlot)(m.$slots,"item",{item:Q})],8,Om))),128))],512)]))}}),Rm=Km,fl=dt(Rm),$A=(e,A="",t=!1)=>t?`${e}pt`:A?`${e}${A}`:`${e}px`,ye=(e,A=0)=>e==null||isNaN(e)?0:Number(Number(e).toFixed(A)),Vm=e=>e*3/4,Pm=e=>e*4/3,Gm=["onMousedown"],zm={key:2,class:"d-draggable__mask"},Xm=(0,r.defineComponent)({name:"DDraggable",__name:"draggable",props:{index:{},mask:{type:Boolean,default:!0},scale:{default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},step:{default:1},zIndex:{default:1},isActiveBgTransparent:{type:Boolean,default:!1},left:{default:0},top:{default:0},width:{},height:{},activeFlag:{type:Boolean,default:!1},isPt:{type:Boolean,default:!1}},emits:["focus","blur","over","out"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)(),u=(0,r.ref)(),d=(0,r.ref)(0),h=(0,r.ref)(0),g=(0,r.ref)(0),B=(0,r.ref)(0),w=(0,r.ref)(null),m=(0,r.ref)(!1),y=(0,r.ref)(!1),Q=(0,r.ref)(!1),U=(0,r.ref)(!1),T=(0,r.ref)([{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]),M=(0,r.computed)(()=>n.scale),R=(0,r.computed)(()=>({left:$A(M.value,"",n.isPt)})),H=(0,r.computed)(()=>({left:$A(-M.value,"",n.isPt)})),P=(0,r.computed)(()=>({left:"auto",right:$A(-M.value,"",n.isPt)})),iA=(0,r.computed)(()=>({top:$A(-M.value,"",n.isPt)})),Z=(0,r.computed)(()=>({top:"auto",bottom:$A(-M.value,"",n.isPt)})),aA=(0,r.computed)(()=>{const G=8*M.value;return{width:$A(G,"",n.isPt),height:$A(G,"",n.isPt)}}),lA=(0,r.computed)(()=>({fontSize:$A(16*M.value,"",n.isPt)})),rA=(0,r.computed)(()=>Object.assign((()=>{if(U.value){const G={zIndex:9999,...R.value};return n.isActiveBgTransparent&&(U.value||y.value)&&!n.readonly&&!n.disabled&&(G.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),G}return{zIndex:n.zIndex}})(),{top:$A(B.value,"",n.isPt),width:$A(d.value,"",n.isPt),height:$A(h.value,"",n.isPt),padding:$A(8*M.value,"",n.isPt),...R.value,left:$A(g.value,"",n.isPt)}));(0,r.watch)(()=>n.width,G=>{d.value=ye(j(G))||(w.value?.offsetWidth??0)}),(0,r.watch)(()=>n.height,G=>{h.value=ye(j(G))||(w.value?.offsetHeight??0)},{deep:!0}),(0,r.watch)(()=>n.left,G=>{g.value=ye(j(G))}),(0,r.watch)(()=>n.top,G=>{B.value=ye(j(G))}),(0,r.watch)(d,G=>{a.value&&(a.value.style.width=$A(G,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.width=$A(G,"",n.isPt)))}),(0,r.watch)(h,G=>{a.value&&(a.value.style.height=$A(G,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.height=$A(G,"",n.isPt)))}),(0,r.watch)(()=>n.activeFlag,G=>{nA(G)});const nA=G=>{U.value=G},j=G=>G===void 0?0:n.isPt?Pm(G):G,S=()=>{u.value&&u.value.firstChild&&(w.value=u.value.firstChild,d.value=ye(j(n.width))||(w.value?.offsetWidth??0),h.value=ye(j(n.height))||(w.value?.offsetHeight??0),g.value=ye(j(n.left)),B.value=ye(j(n.top)),nA(n.activeFlag))},eA=G=>{g.value=G},I=G=>{B.value=G},X=G=>{const Y=8*M.value/2,$={};return G.split("-").forEach(oA=>{$[oA]=$A(-Y,"",n.isPt)}),$},F=G=>{y.value=G},x=G=>n.isPt?Vm(G):G,N=()=>{m.value=!0,o("focus",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},L=()=>{m.value=!1,Q.value=!1,o("blur",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},O=()=>{document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,L()}},J=(G,Y)=>{if(n.disabled||n.readonly)return;let $,oA,BA,wA,bA,uA;Q.value=!0,N();let hA=G.clientX,_=G.clientY;document.onmousemove=b=>{m.value=!0,Y==="right"?($=!0,oA=!1):Y==="left"?($=!0,BA=!0,bA=!0,oA=!1):Y==="top"?($=!1,oA=!0,wA=!0,uA=!0):Y==="bottom"?($=!1,oA=!0):Y==="bottom-right"?($=!0,oA=!0):Y==="bottom-left"?($=!0,oA=!0,BA=!0,bA=!0):Y==="top-right"?($=!0,oA=!0,wA=!0,uA=!0):Y==="top-left"&&($=!0,oA=!0,BA=!0,bA=!0,wA=!0,uA=!0);const D=b.clientX-hA,W=b.clientY-_;if(hA=b.clientX,_=b.clientY,$){let V=D*n.step;bA&&(V=-V),BA&&(g.value=ye(g.value-V)),d.value=ye(d.value+V)}if(oA){let V=W*n.step;uA&&(V=-V),wA&&(B.value=ye(B.value-V)),h.value=ye(h.value+V)}},O()},tA=()=>{y.value=!1,o("out",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},dA=()=>{n.disabled||n.readonly||(y.value=!0,o("over",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)}))},UA=G=>{if(n.disabled||n.readonly)return;U.value=!0,N();let Y=G.clientX,$=G.clientY;document.onmousemove=oA=>{const BA=oA.clientX-Y,wA=oA.clientY-$;Y=oA.clientX,$=oA.clientY,g.value=ye(g.value+BA*n.step),B.value=ye(B.value+wA*n.step)},O()};return(0,r.onMounted)(()=>{S()}),A({setActive:nA,setLeft:eA,setTop:I,setOverActive:F}),(G,Y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-draggable",{"d-draggable--active":(U.value||y.value)&&!e.readonly&&!e.disabled},{"d-draggable--pt":e.isPt&&!e.readonly&&!e.disabled},{"d-draggable--move":m.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,r.withModifiers)(UA,["stop"]),onMouseover:(0,r.withModifiers)(dA,["stop"]),onMouseout:(0,r.withModifiers)(tA,["stop"]),style:(0,r.normalizeStyle)(rA.value)},[(0,r.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:a},[(U.value||y.value||m.value)&&!e.readonly&&!e.disabled?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...iA.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...H.value}),class:"d-draggable__line d-draggable__line--top"},null,4),e.isPt?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...iA.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...H.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...Z.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...P.value}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...Z.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...P.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4)],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,r.normalizeStyle)(lA.value)},(0,r.toDisplayString)(g.value)+","+(0,r.toDisplayString)(B.value),5))],64)):(0,r.createCommentVNode)("",!0),!e.readonly&&!e.disabled?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(T.value,($,oA)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:oA},[U.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["d-draggable__range",`d-draggable__range--${$.classname}`]),style:(0,r.normalizeStyle)([aA.value,X($.classname)]),onMousedown:(0,r.withModifiers)(BA=>J(BA,$.classname),["stop"])},null,46,Gm)):(0,r.createCommentVNode)("",!0)],64))),128)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:u},[(0,r.renderSlot)(G.$slots,"default")],512),!e.disabled&&e.mask?((0,r.openBlock)(),(0,r.createElementBlock)("div",zm)):(0,r.createCommentVNode)("",!0)],512)],38))}}),$m=Xm,gl=dt($m),hl=e=>{const A=Wm(e.components);return{formConfig:e.form,componentList:A}},Bl=(e,A)=>{let t={},n=[];const o={},a=e;t=a.form;const u={};return a.components.forEach(d=>{const h=A[d.type];u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h?.dragType||"component",componentName:h?.componentName||"",runtimeType:h?.runtimeType,groupId:d.groupId,config:d.config,isInput:h?.isInput!==!1,containerId:d.containerId,level:d.level};h?.dragType==="container"&&(g.children=[]),o[g.id]=g,u[d.containerId].push(g)}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.form||[],{formConfig:t,componentList:n,componentDic:o}},Gr=(e,A)=>{const t={ver:"j1",form:{...e},components:[],db:{}};return pl(A||[],t.components),t},pl=(e,A)=>{e.forEach(t=>{if(t.type==="pkey")return;const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&pl(t.children||[],A),A.push(n)})},Wm=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{rule:[]}};n.config&&Object.keys(n.config).forEach(a=>{if(a==="required"){n.config.required&&o.config?.rule?.push({required:!0,message:n.config.requiredMsg||"请输入"});return}if(a==="patterns"){n.config.patterns.forEach(u=>{u.reg&&u.msg&&o.config?.rule?.push({pattern:new RegExp(u.reg),message:`请输入${u.msg||""}`})});return}o.config[a]=n.config[a]}),n.type==="pkey"&&(o.config.isPkey=!0),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const u={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();u[h]||(u[h]=[]),delete d.slot,u[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=u[d._i]||[],g={label:d.label};d.active&&o.type==="j-collapse"&&(g.active=d.active);let B;if(o.type==="j-tabs"&&o.config?.tabKey&&o.config?.options.length>0){const m=o.config.options.find(y=>y.label===d._i);m&&(B=({formData:y})=>({display:m.value.includes(y[o.config?.tabKey||""])?m.display:!m.display}))}const w={config:g,children:h};return B&&(w.getCompConfig=B),w}),delete o.config.groups}else o.children=a}}),A.form},ml=(e,A,t,n,o,a,u,d)=>{const h=(0,r.ref)(),g=(0,r.reactive)({}),B=(0,r.computed)(()=>{const F=[];return Object.keys(g).forEach(x=>{const N=g[x];N.dragType==="component"&&N.type!=="pkey"&&F.push(N)}),F}),w=(F=[],x)=>{const N=A?.value?.init;typeof N=="function"&&N(F,x)},m=F=>o?o(F,{componentDic:g,components:B.value,configData:h.value.config}):{},y=(F,x)=>{if(h.value?.id===F)return;const N=g[F]||x;if(N?h.value=N:F===t.id?h.value=t:h.value=null,h.value){const L=a[h.value.type];L?(w(L,h.value.config),m(h.value.type)):w([])}else w([]);x&&ne("dragClick",{id:x.id})},Q=()=>e.value.$el.getBoundingClientRect(),U=F=>F===t.id?t:g[F]||{},T=F=>{const x=[];if(F===t.id)x.push({id:F,name:t.name});else{const N=g[F];if(N){x.push({id:F,name:N.name});const L=T(N.containerId);x.push(...L)}}return x},M=(F,x)=>{const N=g[x];if(N===void 0)return!1;const L=N.containerId;return F===L?!0:L===t.id?!1:M(F,L)},R=F=>n?n(F)||{}:{},H=(F,x,N,L)=>{if(d){const O=U(F);return d(N.componentType,{container:O,groupId:x,configData:N},L)}return!1},P=({name:F,type:x,dragType:N,isInput:L,componentName:O,runtimeType:J},tA,dA,UA,G=!1)=>{const Y=R(x);if(Y.id=ft(),Y.span=24,Y.componentType=x,iA(tA,Y.componentType))return;H(tA,UA,Y,!0);const $={id:Y.id,name:F,type:x,runtimeType:J,componentName:O||"",dragType:N||"component",containerId:tA,isInput:!!L,level:g[tA]?g[tA].level+1:1,config:Y,isNewAdd:!G,groupId:UA};return $.dragType==="container"&&($.children=[]),g[$.id]=$,U(tA).children?.splice(dA,0,$),$},iA=(F,x)=>!!(U(F).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(x)),Z=(F,x,N=!1)=>{let L=null;const O=U(F).children,J=O?.findIndex(tA=>tA.id===x)||0;if(N&&O&&O.length>1){let tA=J+1;J>0&&(tA=J-1),L=O[tA]}return O?.splice(J,1),L?.id},aA=(F,x,N,L)=>{const O=U(x).children,J=F.containerId!==x;F.containerId=x,F.groupId=L,O?.splice(N,0,F),H(x,L,F.config,J)&&(eA(),y(F.id))},lA=F=>{let x="";const N=U(F);return N&&(N.children&&N.children.length>0&&N.children.forEach(L=>{lA(L.id)}),x=Z(N.containerId,F,!0)||"",delete g[F]),h.value&&h.value.id===F&&(h.value=null,A.value.init([])),x},rA=(F,x=[])=>{const N=U(F);if(N&&N.children&&N.children.length>0){const L=[];N.children.forEach(O=>{O.groupId&&x.includes(O.groupId)&&L.push(O.id)}),L.forEach(O=>{lA(O),delete g[O]})}},nA=(F,x)=>{const N=U(F);N&&(N.children&&N.children.length>0&&N.children.forEach(L=>{L.groupId===x&&lA(L.id)}),delete g[F])},j=F=>{const x=mn(U(F));x.id=ft(),x.config.id=x.id,g[x.id]=x;const N=U(x.containerId).children,L=N?.findIndex(O=>O.id===F)||0;N?.splice(L+1,0,x)},S=()=>{t.children=[],Hu(g),h.value&&(ne("dragClick",{id:""}),h.value=null,A.value.init([]))},eA=()=>{h.value&&(ne("dragClick",{id:""}),h.value=null,A.value.init([]))},I=F=>{const x=h.value,N=U(x.containerId).children,L=N?.findIndex(O=>O.id===x.id)||0;lA(x.id),(0,r.nextTick)(()=>{const O=u[F],J=R(F);J.id=x.id,J.span=x.config.span,J.componentType=F,J.table=x.config.table,J.field=x.config.field,x.config.isSubTable&&(J.isSubTable=x.config.isSubTable);const tA={id:J.id,name:O.name,type:F,runtimeType:O.runtimeType,componentName:O.componentName||"",dragType:x.dragType,groupId:x.groupId,containerId:x.containerId,isInput:x.isInput,level:x.level,config:J,isNewAdd:!0};g[tA.id]=tA,N?.splice(L,0,tA)})},X=F=>{ne("dragAddByClick",F)};return(0,r.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:Q,getComponent:U,getParentComponents:T,isMyChildComponent:M,selectComponent:y,addComponent:P,deleteComponent:lA,copyComponent:j,removeComponentFromContainer:Z,addComponentToContainer:aA,top:t,deleteChildren:nA,deleteChildrens:rA}),{activedComponent:h,clearComponents:S,changeComponent:I,schemaComponentDic:g,clearSelect:eA,addComponent:P,addComponentByTable:X,designComponentList:B}},Ym=(0,r.defineComponent)({props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){const{t:A}=(0,me.useAppInject)();return{labelWidth:(0,r.computed)(()=>e.componentData.config?.notShowLabel?"0px":e.componentData.config?.labelWidth===void 0&&e.globalConfig.labelWidth!==void 0?`${e.globalConfig.labelWidth}px`:e.componentData.config?.labelWidth?`${e.componentData.config?.labelWidth}px`:void 0),inputConfig:(0,r.computed)(()=>{const t={...e.componentData?.config};return e.globalConfig.size===void 0&&(t.size=e.globalConfig.size),t.display=!0,t}),t:A}}}),Jm=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t};function Zm(e,A,t,n,o,a){const u=(0,r.resolveComponent)("j-comp"),d=(0,r.resolveComponent)("el-form-item");return e.componentData.isInput?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,"label-width":e.labelWidth,label:e.t(e.componentData.config?.notShowLabel?"":e.componentData.config?.label||""),rules:e.componentData.config?.required?[{required:!0,message:""}]:[]},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(u,{type:e.componentData?.componentName||e.componentData?.type,config:e.inputConfig,modelValue:e.componentData?.config.defaultValue},null,8,["type","config","modelValue"])]),_:1},8,["label-width","label","rules"])):e.componentData?.children?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)({key:1},e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.normalizeProps)((0,r.mergeProps)({key:2},e.componentData?.config)),null,16))}var wl=Jm(Ym,[["render",Zm]]),jm={class:"d-form-design j-block"},qm={class:"d-form-design-left"},Aw={class:"d-form-design-component-list"},ew={class:"j-component-tool"},tw={class:"j-component-tool-name"},nw={class:"d-form-design-center"},rw={class:"d-form-design-container"},ow={key:0,class:"d-form-design-empty"},iw={class:"d-form-design-right"},sw={class:"d-form-design-panel-title"},aw={style:{margin:"0","font-size":"14px"}},lw={class:"d-form-design-panel"},cw=(0,r.defineComponent)({name:"DFormDesign",__name:"formDesign",props:{components:{default:()=>[]},componentConfigs:{default:()=>({})},componentInit:{type:Function,default:void 0},containerAddComponent:{type:Function,default:void 0},componentConfigInit:{type:Function,default:void 0},componentConfigChange:{type:Function,default:void 0},componentConfigValidate:{type:Function,default:void 0},flowComponents:{default:()=>[]},flowInit:{type:Function,default:void 0},flowComponentConfigInit:{type:Function,default:void 0},flowComponentConfigChange:{type:Function,default:void 0},flowComponentConfigs:{default:()=>({})},actions:{}},setup(e,{expose:A}){const t=e,{t:n,error:o}=(0,me.useAppInject)(),a=(0,r.reactive)({name:"表单",id:"form",type:"form",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}}),u=(0,r.ref)([]),d=t.components.length;for(let G=0;G<d;G++)u.value.push(G);t.componentInit&&(a.config=t.componentInit("form")||{});const h={},g=[];t.components.forEach(({children:G})=>{G.forEach(Y=>{h[Y.type]=Y,Y.dragType=Y.dragType||"component",Y.isInput!==!1&&(Y.isInput=!0,g.push({label:Y.name,value:Y.type}))})});const B=G=>{G.forEach(Y=>{Y.type==="d-input-flow"&&(Y.config=Y.config||{},Y.config.flowComponents=t.flowComponents,Y.config.flowInit=t.flowInit,Y.config.flowComponentConfigInit=$=>{t.flowComponentConfigInit&&($.designComponents=iA.value,$.component=M.value,t.flowComponentConfigInit($))},Y.config.flowComponentConfigs=t.flowComponentConfigs,Y.config.flowComponentConfigChange=t.flowComponentConfigChange),Y.children&&B(Y.children)})},w={};Object.keys(t.componentConfigs||{}).forEach(G=>{const{hasBase:Y,isInput:$,hasTwoPlaceholder:oA,hasPlaceholder:BA,hasSpan:wA,hasLabel:bA,bindTable:uA,labelTitle:hA}=h[G]||{hasBase:!1},_=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:$,options:g}},{id:"label",type:"j-input",config:{label:hA||"标题"},getCompConfig:({formData:D})=>({display:bA!==!1&&!D.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(hA||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:D})=>({display:bA!==!1&&!D.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:D})=>({display:$&&!D.notShowLabel&&!D.isSubTable})},{id:"placeholder",type:"j-input",config:{display:$&&!oA&&BA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!oA,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!oA,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:D})=>({display:wA!==!1&&!D.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:D})=>({display:!!D.isSubTable})}],b={type:"j-collapse",config:{defaultValue:[]},children:[]};Y!==!1&&b.children?.push({config:{label:"基础信息"},children:[..._]}),b.children?.push(...t.componentConfigs[G]),b.children?.forEach((D,W)=>{b.config?.defaultValue.push(`_collapse${W}`)}),B(b.children||[]),w[G]=[b]});const m=G=>{const{value:Y}=G||{};G.id==="componentType"&&H(Y),M.value&&t.componentConfigChange&&t.componentConfigChange(M.value.type,{configRef:T,configData:M.value.config,...G})},y=(G,Y)=>{t.componentConfigInit&&t.componentConfigInit(G,{configRef:T,...Y})},Q=(G,Y,$)=>{let oA=!1;return Y.container.type==="gridtable"?(!Y.configData.isSubTable||$)&&(Y.configData.isSubTable=!0,oA=!0):Y.configData.isSubTable&&(oA=!0,Y.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(G,Y),oA},U=(0,r.ref)(),T=(0,r.ref)(),{activedComponent:M,clearComponents:R,changeComponent:H,schemaComponentDic:P,designComponentList:iA}=ml(U,T,a,t.componentInit,y,w,h,Q),Z=(0,r.computed)(()=>M.value?.id!="form"?M.value?`${M.value.name}-${M.value.id}`:"":M.value?`${M.value.name}`:"");(0,r.provide)("dui-design-provide",{designItemName:wl});const aA=()=>{R()},lA=()=>{t.componentInit&&(a.config=t.componentInit("form")||{}),R()},rA=()=>Gr(a.config,a.children||[]),nA=G=>{const Y=Bl(G,h);a.config=Y.formConfig,a.children?.push(...Y.componentList),Object.keys(Y.componentDic).forEach($=>{P[$]=Y.componentDic[$]})},j=()=>S(Gr(a.config,a.children||[]).components),S=G=>{for(const Y of G)if(t.componentConfigValidate&&!t.componentConfigValidate(Y.type,{configData:Y.config,errorTip:o}))return!1;return!0},eA=(0,r.ref)(),I=(0,r.ref)(),X=(0,r.reactive)({width:0,height:0,formConfig:{}});let F=0;const x=G=>{if(I.value)F=0,I.value.init(G||[]);else{if(F>600){console.warn("表单组件加载超时");return}F++,setTimeout(()=>{x(G)},100)}},N=()=>{},L=()=>{};return A({getSchema:()=>rA(),setSchema:G=>nA(G),reset:()=>lA(),validate:()=>j(),preview:()=>{const G=Gr(a.config,a.children||[]);X.width=G.form.width||800,X.height=G.form.height||600,eA.value.open("表单预览",G.form.layerType),(0,r.nextTick)(()=>{const{formConfig:Y,componentList:$}=hl(G);X.formConfig=Y,x($)})},clear:aA}),(G,Y)=>{const $=(0,r.resolveComponent)("j-icon"),oA=(0,r.resolveComponent)("d-drag-tool"),BA=(0,r.resolveComponent)("el-collapse-item"),wA=(0,r.resolveComponent)("el-collapse"),bA=(0,r.resolveComponent)("d-drag-form-list"),uA=(0,r.resolveComponent)("el-row"),hA=(0,r.resolveComponent)("d-drag-container"),_=(0,r.resolveComponent)("j-form"),b=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",jm,[(0,r.createElementVNode)("div",qm,[(0,r.createElementVNode)("div",Aw,[(0,r.createVNode)(wA,{modelValue:u.value,"onUpdate:modelValue":Y[0]||(Y[0]=D=>u.value=D)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(D,W)=>((0,r.openBlock)(),(0,r.createBlock)(BA,{key:W,title:D.name,name:W},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(D.children,(V,pA)=>((0,r.openBlock)(),(0,r.createBlock)(oA,{key:pA,config:V},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",ew,[(0,r.createVNode)($,{class:"j-component-tool-icon",icon:V.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",tw,(0,r.toDisplayString)((0,r.unref)(n)(V.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",nw,[(0,r.createElementVNode)("div",rw,[(0,r.createVNode)(hA,{ref_key:"dragContainer",ref:U,class:"d-form-design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",ow,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)((0,r.unref)(n)("请从左侧拖拽组件到此处")),1)])):((0,r.openBlock)(),(0,r.createBlock)(uA,{key:1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(bA,{"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"])]),_:1}))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",iw,[(0,r.createElementVNode)("div",sw,[(0,r.createElementVNode)("span",aw,(0,r.toDisplayString)(`${Z.value}`),1)]),(0,r.createElementVNode)("div",lw,[(0,r.createVNode)(_,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:T,onChange:m},null,512)])],512),[[r.vShow,(0,r.unref)(M)]]),(0,r.createVNode)(b,{ref_key:"previewFormLayerRef",ref:eA,width:X.width,height:X.height,onOk:N,onClosed:L},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(_,{config:X.formConfig,"is-preview":!0,ref_key:"previewFormRef",ref:I,actions:e.actions},null,8,["config","actions"])]),_:1},8,["width","height"])])}}}),uw=cw,Cl=dt(uw,[wl]),yl=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return vl(A||[],t.components),t},vl=(e,A)=>{e.forEach(t=>{const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&vl(t.children||[],A),A.push(n)})},dw=e=>{const A=fw(e.components);return{pageConfig:e.indexPage,componentList:A}},fw=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{}};n.config&&Object.keys(n.config).forEach(a=>{o.config[a]=n.config[a]}),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const u={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();u[h]||(u[h]=[]),delete d.slot,u[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=u[d._i]||[];return{config:{label:d.label},children:h}}),delete o.config.groups}else o.children=a}}),A.indexPage||[]},gw=(e,A)=>{let t={},n=[];const o={};if(e.ver==="V3"){const a=e;t=a.indexPage;const u={};a.components.forEach(d=>{const h=A[d.type];if(!h)return;u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h.dragType||"component",componentName:h.componentName||"",runtimeType:h.runtimeType,groupId:d.groupId,config:d.config,isInput:!1,containerId:d.containerId,level:d.level};o[g.id]=g,u[d.containerId].push(g),g.dragType==="container"&&(g.children=[])}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.indexPage||[]}return{pageConfig:t,componentList:n,componentDic:o}},hw=(0,r.defineComponent)({name:"DIndexDesignItem",__name:"indexDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)(e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"]))}}),Ql=hw,Bw={class:"d-index-design j-block"},pw={class:"d-index-design-left"},mw={class:"j-component-list"},ww={class:"j-component-tool"},Cw={class:"j-component-tool-name"},yw={class:"d-index-design-center"},vw={class:"design-toolbar"},Qw={class:"design-container"},Ew={key:0,class:"j-block design-empty"},Fw={class:"d-index-design-right"},Uw={class:"d-index-design-panel-title"},bw={style:{margin:"0","font-size":"14px"}},Hw={class:"d-index-design-panel"},Iw=(0,r.defineComponent)({name:"DIndexDesign",__name:"indexDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,containerAddComponent:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e,{expose:A}){const{t}=(0,me.useAppInject)(),n=e,o=F=>{F.forEach(x=>{x.type==="d-input-flow"&&(x.config=x.config||{},x.config.flowComponents=n.flowComponents,x.config.flowInit=n.flowInit,x.config.flowComponentConfigInit=N=>{n.flowComponentConfigInit&&(N.designComponents=T.value,N.component=y.value,n.flowComponentConfigInit(N))},x.config.flowComponentConfigs=n.flowComponentConfigs,x.config.flowComponentConfigChange=n.flowComponentConfigChange),x.children&&o(x.children)})},a=(0,r.reactive)({name:"页面",id:"indexPage",type:"indexPage",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}});n.componentInit&&(a.config=n.componentInit("indexPage")||{});const u={},d=[];n.components.forEach(({children:F})=>{F.forEach(x=>{u[x.type]=x,x.dragType=x.dragType||"component",d.push({label:x.name,value:x.type})})});const h={};Object.keys(n.componentConfigs).forEach(F=>{const{hasBase:x}=u[F]||{hasBase:!1},N=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],L={type:"j-collapse",config:{defaultValue:[]},children:[]};x!==!1&&(L.children?.push({config:{label:"基础信息"},children:[...N]}),L.config?.defaultValue.push("_collapse0")),L.children?.push(...n.componentConfigs[F]),o(L.children||[]),h[F]=[L]});const g=F=>{y.value&&n.componentConfigChange&&n.componentConfigChange(y.value.type,{configRef:m,configData:y.value.config,...F})},B=(F,x)=>{n.componentConfigInit&&n.componentConfigInit(F,{configRef:m,...x})},w=(0,r.ref)(),m=(0,r.ref)(),{activedComponent:y,clearComponents:Q,schemaComponentDic:U,designComponentList:T}=ml(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),M=(0,r.computed)(()=>y.value?`【${y.value.name}】`:""),R=(0,r.ref)([]),H=n.components.length;for(let F=0;F<H;F++)R.value.push(F);(0,r.provide)("dui-design-provide",{designItemName:Ql});const P=()=>{Q()},iA=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),Q()},Z=()=>(console.log("pValidate"),!0),aA=()=>yl(a.config,a.children||[]),lA=F=>{const x=gw(F,u);a.config=x.pageConfig,a.children?.push(...x.componentList),Object.keys(x.componentDic).forEach(N=>{U[N]=x.componentDic[N]})},rA=(0,r.ref)(),nA=(0,r.ref)();(0,r.ref)(""),(0,r.reactive)({formConfig:{}});let j=0;const S=F=>{if(nA.value)j=0,nA.value.init(F);else{if(j>600){console.warn("组件加载超时");return}j++,setTimeout(()=>{S(F)},100)}},eA=()=>{},I=()=>{},X=()=>{const{componentList:F}=dw(yl(a.config,a.children||[]));rA.value.open("页面预览","full"),(0,r.nextTick)(()=>{S(F)})};return A({reset:iA,validate:Z,getSchema:aA,setSchema:lA}),(F,x)=>{const N=(0,r.resolveComponent)("j-icon"),L=(0,r.resolveComponent)("d-drag-tool"),O=(0,r.resolveComponent)("el-collapse-item"),J=(0,r.resolveComponent)("el-collapse"),tA=(0,r.resolveComponent)("j-button"),dA=(0,r.resolveComponent)("el-tooltip"),UA=(0,r.resolveComponent)("el-divider"),G=(0,r.resolveComponent)("el-empty"),Y=(0,r.resolveComponent)("d-drag-index-list"),$=(0,r.resolveComponent)("d-drag-container"),oA=(0,r.resolveComponent)("j-form"),BA=(0,r.resolveComponent)("j-page"),wA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Bw,[(0,r.createElementVNode)("div",pw,[x[1]||(x[1]=(0,r.createElementVNode)("div",{class:"d-index-design-panel-title"},"组件库",-1)),(0,r.createElementVNode)("div",mw,[(0,r.createVNode)(J,{modelValue:R.value,"onUpdate:modelValue":x[0]||(x[0]=bA=>R.value=bA)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(bA,uA)=>((0,r.openBlock)(),(0,r.createBlock)(O,{key:uA,title:bA.name,name:uA},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(bA.children,(hA,_)=>((0,r.openBlock)(),(0,r.createBlock)(L,{key:_,config:hA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",ww,[(0,r.createVNode)(N,{class:"j-component-tool-icon",icon:hA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",Cw,(0,r.toDisplayString)((0,r.unref)(t)(hA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",yw,[(0,r.createElementVNode)("div",vw,[x[2]||(x[2]=(0,r.createElementVNode)("div",null,null,-1)),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(dA,{content:(0,r.unref)(t)("清空")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(tA,{danger:"",type:"text",onClick:P,icon:"mdi:delete-outline"})]),_:1},8,["content"]),(0,r.createVNode)(UA,{direction:"vertical"}),(0,r.createVNode)(dA,{content:(0,r.unref)(t)("预览")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(tA,{type:"text",onClick:X,icon:"mdi:play-circle-outline"})]),_:1},8,["content"])])]),(0,r.createElementVNode)("div",Qw,[(0,r.createVNode)($,{ref_key:"dragContainer",ref:w,class:"design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ew,[(0,r.createVNode)(G,{description:(0,r.unref)(t)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(Y,{key:1,"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"]))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Fw,[(0,r.createElementVNode)("div",Uw,[(0,r.createElementVNode)("span",bw,(0,r.toDisplayString)(`${(0,r.unref)(t)("属性配置")}${M.value}`),1)]),(0,r.createElementVNode)("div",Hw,[(0,r.createVNode)(oA,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:m,onChange:g},null,512)])],512),[[r.vShow,(0,r.unref)(y)&&h[(0,r.unref)(y).type]]]),(0,r.createVNode)(wA,{ref_key:"previewLayerRef",ref:rA,"has-btns":!1,onOk:eA,onClosed:I},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(BA,{ref_key:"previewRef",ref:nA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),_w=Iw,El=dt(_w,[Ql]),qA=Uu({Vue:()=>r,Vue2:()=>{},del:()=>Dw,install:()=>Sw,isVue2:()=>!1,isVue3:()=>!0,set:()=>xw});bu(qA,require("vue"));var CE=!1,yE=!0,vE=void 0;function Sw(){}function xw(e,A,t){return Array.isArray(e)?(e.length=Math.max(e.length,A),e.splice(A,1,t),t):(e[A]=t,t)}function Dw(e,A){if(Array.isArray(e)){e.splice(A,1);return}delete e[A]}var zr=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Nw=(0,qA.defineComponent)({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(e,{emit:A}){const t=(0,qA.ref)(0),n=(0,qA.ref)(!0);(0,qA.onMounted)(()=>{t.value=e.value});const o=B=>{n.value=B>=0},a=(0,qA.computed)(()=>{const B=(t.value-e.start)*e.scale;o(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),u=(0,qA.computed)(()=>{var B;const w=`1px solid ${(B=e.palette)==null?void 0:B.lineColor}`,m=e.vertical?{borderTop:w}:{borderLeft:w};return{cursor:e.isShowReferLine?e.vertical?"ns-resize":"ew-resize":"none",...m}}),d=(0,qA.computed)(()=>e.vertical?{left:e.thick+"px"}:{top:e.thick+"px"});return{startValue:t,showLine:n,offset:a,borderCursor:u,actionStyle:d,handleDown:B=>{const w=e.vertical?B.clientY:B.clientX,m=t.value;A("onMouseDown");const y=U=>{const T=e.vertical?U.clientY:U.clientX;t.value=Math.round(m+(T-w)/e.scale)},Q=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",Q)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",Q)},handleRemove:()=>{A("onRemove",e.index)}}}}),Lw={class:"value"};function kw(e,A,t,n,o,a){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"line",style:(0,r.normalizeStyle)([e.offset,e.borderCursor]),onMousedown:A[1]||(A[1]=(...u)=>e.handleDown&&e.handleDown(...u))},[(0,r.createElementVNode)("div",{class:"action",style:(0,r.normalizeStyle)(e.actionStyle)},[(0,r.createElementVNode)("span",{class:"del",onClick:A[0]||(A[0]=(...u)=>e.handleRemove&&e.handleRemove(...u))},"×"),(0,r.createElementVNode)("span",Lw,(0,r.toDisplayString)(e.startValue),1)],4)],36)),[[r.vShow,e.showLine]])}var Tw=zr(Nw,[["render",kw],["__scopeId","data-v-074b3d94"]]),Mw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,Fl=.83,Ow=(e,A,t,n,o,a)=>{const{scale:u,width:d,height:h,ratio:g,palette:B}=o,{bgColor:w,fontColor:m,shadowColor:y,longfgColor:Q,shortfgColor:U}=B;if(e.scale(g,g),e.clearRect(0,0,d,h),e.fillStyle=w,e.fillRect(0,0,d,h),n){const rA=(t-A)*u,nA=n*u;e.fillStyle=y,a?e.fillRect(rA,0,nA,h*3/8):e.fillRect(0,rA,d*3/8,nA)}const T=Mw(u),M=T*u,R=T*10,H=R*u,P=Math.floor(A/T)*T,iA=Math.floor(A/R)*R,Z=(P-A)/T*M,aA=(iA-A)/R*H,lA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=Q;for(let rA=iA,nA=0;rA<lA;rA+=R,nA++){const j=aA+nA*H+.5;a?e.moveTo(j,0):e.moveTo(0,j),e.save(),a?e.translate(j,h*.4):e.translate(d*.4,j),a||e.rotate(-Math.PI/2),e.scale(Fl/g,Fl/g),e.fillText(rA.toString(),4*g,7*g),e.restore(),a?e.lineTo(j,h*9/16):e.lineTo(d*9/16,j)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=U;for(let rA=P,nA=0;rA<lA;rA+=T,nA++){const j=Z+nA*M+.5;a?e.moveTo(j,0):e.moveTo(0,j),rA%R!==0&&(a?e.lineTo(j,h*1/4):e.lineTo(d*1/4,j))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},Kw=(0,qA.defineComponent)({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(e,{emit:A}){const t=(0,qA.reactive)({canvasContext:null});let n=1;const o=(0,qA.ref)(null);(0,qA.onMounted)(()=>{n=e.ratio||window.devicePixelRatio||1,a(),u(n),d(n)});const a=()=>{t.canvasContext=o.value&&o.value.getContext("2d")},u=g=>{if(o.value){o.value.width=e.width*g,o.value.height=e.height*g;const B=t.canvasContext;B&&(B.font=`${12*g}px -apple-system,
|
|
28
|
+
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),n}static addGrid(A,t={}){if(!A)return null;let n=A;if(n.gridstack){const o=n.gridstack;return t&&(o.opts={...o.opts,...t}),t.children!==void 0&&o.load(t.children),o}return(!A.classList.contains("grid-stack")||NA.addRemoveCB)&&(NA.addRemoveCB?n=NA.addRemoveCB(A,t,!0,!0):n=AA.createDiv(["grid-stack",t.class],A)),NA.init(t,n)}static registerEngine(A){NA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=AA.createDiv([this.opts.placeholderClass,be.itemClass,this.opts.itemClass]);const A=AA.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(A.textContent=this.opts.placeholderText)}return this._placeholder}constructor(A,t={}){this.el=A,this.opts=t,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},A.gridstack=this,this.opts=t=t||{},A.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),t.row&&(t.minRow=t.maxRow=t.row,delete t.row);const n=AA.toNumber(A.getAttribute("gs-row"));t.column==="auto"&&delete t.column,t.alwaysShowResizeHandle!==void 0&&(t._alwaysShowResizeHandle=t.alwaysShowResizeHandle);const o=t.columnOpts;if(o){const h=o.breakpoints;!o.columnWidth&&!h?.length?delete t.columnOpts:(o.columnMax=o.columnMax||12,h?.length>1&&h.sort((g,B)=>(B.w||0)-(g.w||0)))}const a={...AA.cloneDeep(be),column:AA.toNumber(A.getAttribute("gs-column"))||be.column,minRow:n||AA.toNumber(A.getAttribute("gs-min-row"))||be.minRow,maxRow:n||AA.toNumber(A.getAttribute("gs-max-row"))||be.maxRow,staticGrid:AA.toBool(A.getAttribute("gs-static"))||be.staticGrid,sizeToContent:AA.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||be.draggable.handle},removableOptions:{accept:t.itemClass||be.removableOptions.accept,decline:be.removableOptions.decline}};A.getAttribute("gs-animate")&&(a.animate=AA.toBool(A.getAttribute("gs-animate"))),t=AA.defaults(t,a),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(t),t.rtl==="auto"&&(t.rtl=A.style.direction==="rtl"),t.rtl&&this.el.classList.add("grid-stack-rtl");const u=this.el.closest("."+be.itemClass)?.gridstackNode;if(u&&(u.subGrid=this,this.parentGridNode=u,this.el.classList.add("grid-stack-nested"),u.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=t.cellHeight==="auto",this._isAutoCellHeight||t.cellHeight==="initial")this.cellHeight(void 0);else{typeof t.cellHeight=="number"&&t.cellHeightUnit&&t.cellHeightUnit!==be.cellHeightUnit&&(t.cellHeight=t.cellHeight+t.cellHeightUnit,delete t.cellHeightUnit);const h=t.cellHeight;delete t.cellHeight,this.cellHeight(h)}t.alwaysShowResizeHandle==="mobile"&&(t.alwaysShowResizeHandle=Me),this._setStaticClass();const d=t.engineClass||NA.engineClass||Ci;if(this.engine=new d({column:this.getColumn(),float:t.float,maxRow:t.maxRow,onChange:h=>{h.forEach(g=>{const B=g.el;B&&(g._removeDOM?(B&&B.remove(),delete g._removeDOM):this._writePosAttr(B,g))}),this._updateContainerHeight()}}),t.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(h=>this._prepareElement(h)),delete this.engine._loading,this.batchUpdate(!1)),t.children){const h=t.children;delete t.children,h.length&&this.load(h)}this.setAnimation(),t.subGridDynamic&&!LA.pauseDrag&&(LA.pauseDrag=!0),t.draggable?.pause!==void 0&&(LA.pauseDrag=t.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(A=this.opts){this.el.classList.add("gs-"+A.column),typeof A.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/A.column}%`)}addWidget(A){if(!A)return;if(typeof A=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(A.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(A);let t,n=A;if(n.grid=this,n.el?t=n.el:NA.addRemoveCB?t=NA.addRemoveCB(this.el,A,!0,!1):t=this.createWidgetDivs(n),!t)return;if(n=t.gridstackNode,n&&t.parentElement===this.el&&this.engine.nodes.find(a=>a._id===n._id))return t;const o=this._readAttr(t);return AA.defaults(A,o),this.engine.prepareNode(A),this.el.appendChild(t),this.makeWidget(t,A),t}createWidgetDivs(A){const t=AA.createDiv(["grid-stack-item",this.opts.itemClass]),n=AA.createDiv(["grid-stack-item-content"],t);return AA.lazyLoad(A)?A.visibleObservable||(A.visibleObservable=new IntersectionObserver(([o])=>{o.isIntersecting&&(A.visibleObservable?.disconnect(),delete A.visibleObservable,NA.renderCB(n,A),A.grid?.prepareDragDrop(A.el))}),window.setTimeout(()=>A.visibleObservable?.observe(t))):NA.renderCB(n,A),t}makeSubGrid(A,t,n,o=!0){let a=A.gridstackNode;if(a||(a=this.makeWidget(A).gridstackNode),a.subGrid?.el)return a.subGrid;let u,d=this;for(;d&&!u;)u=d.opts?.subGridOpts,d=d.parentGridNode?.grid;t=AA.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...u||{},...t||a.subGridOpts||{}}),a.subGridOpts=t;let h;t.column==="auto"&&(h=!0,t.column=Math.max(a.w||1,n?.w||1),delete t.columnOpts);let g=a.el.querySelector(".grid-stack-item-content"),B,w;if(o&&(this._removeDD(a.el),w={...a,x:0,y:0},AA.removeInternalForSave(w),delete w.subGridOpts,a.content&&(w.content=a.content,delete a.content),NA.addRemoveCB?B=NA.addRemoveCB(this.el,w,!0,!1):(B=AA.createDiv(["grid-stack-item"]),B.appendChild(g),g=AA.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),n){const y=h?t.column:a.w,Q=a.h+n.h,U=a.el.style;U.transition="none",this.update(a.el,{w:y,h:Q}),setTimeout(()=>U.transition=null)}const m=a.subGrid=NA.addGrid(g,t);return n?._moving&&(m._isTemp=!0),h&&(m._autoColumn=!0),o&&m.makeWidget(B,w),n&&(n._moving?window.setTimeout(()=>AA.simulateMouseEvent(n._event,"mouseenter",m.el),0):m.makeWidget(a.el,a)),this.resizeToContentCheck(!1,a),m}removeAsSubGrid(A){const t=this.parentGridNode?.grid;t&&(t.batchUpdate(),t.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(n=>{n.x+=this.parentGridNode.x,n.y+=this.parentGridNode.y,t.makeWidget(n.el,n)}),t.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,A&&window.setTimeout(()=>AA.simulateMouseEvent(A._event,"mouseenter",t.el),0))}save(A=!0,t=!1,n=NA.saveCB,o){const a=this.engine.save(A,n,o);if(a.forEach(u=>{if(A&&u.el&&!u.subGrid&&!n)u.content=u.el.querySelector(".grid-stack-item-content")?.innerHTML,u.content||delete u.content;else if(!A&&!n&&delete u.content,u.subGrid?.el){const d=u.w||u.subGrid.getColumn(),h=u.subGrid.save(A,t,n,d);u.subGridOpts=t?h:{children:h},delete u.subGrid}delete u.el}),t){const u=AA.cloneDeep(this.opts);u.marginBottom===u.marginTop&&u.marginRight===u.marginLeft&&u.marginTop===u.marginRight&&(u.margin=u.marginTop,delete u.marginTop,delete u.marginRight,delete u.marginBottom,delete u.marginLeft),u.rtl===(this.el.style.direction==="rtl")&&(u.rtl="auto"),this._isAutoCellHeight&&(u.cellHeight="auto"),this._autoColumn&&(u.column="auto");const d=u._alwaysShowResizeHandle;return delete u._alwaysShowResizeHandle,d!==void 0?u.alwaysShowResizeHandle=d:delete u.alwaysShowResizeHandle,AA.removeInternalAndSame(u,be),u.children=a,u}return a}load(A,t=NA.addRemoveCB||!0){A=AA.cloneDeep(A);const n=this.getColumn();A.forEach(B=>{B.w=B.w||B.minW||1,B.h=B.h||B.minH||1}),A=AA.sort(A),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let o=0;A.forEach(B=>{o=Math.max(o,(B.x||0)+B.w)}),o>this.engine.defaultColumn&&(this.engine.defaultColumn=o),o>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=A,this.engine.columnChanged(o,n,this.responseLayout),A=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(A,o,!0));const a=NA.addRemoveCB;typeof t=="function"&&(NA.addRemoveCB=t);const u=[];this.batchUpdate();const d=!this.engine.nodes.length,h=d&&this.opts.animate;h&&this.setAnimation(!1),!d&&t&&[...this.engine.nodes].forEach(B=>{B.id&&(AA.find(A,B.id)||(NA.addRemoveCB&&NA.addRemoveCB(this.el,B,!1,!1),u.push(B),this.removeWidget(B.el,!0,!1)))}),this.engine._loading=!0;const g=[];return this.engine.nodes=this.engine.nodes.filter(B=>AA.find(A,B.id)?(g.push(B),!1):!0),A.forEach(B=>{const w=AA.find(g,B.id);if(w){if(AA.shouldSizeToContent(w)&&(B.h=w.h),this.engine.nodeBoundFix(B),(B.autoPosition||B.x===void 0||B.y===void 0)&&(B.w=B.w||w.w,B.h=B.h||w.h,this.engine.findEmptyPosition(B)),this.engine.nodes.push(w),AA.samePos(w,B)&&this.engine.nodes.length>1&&(this.moveNode(w,{...B,forceCollide:!0}),AA.copyPos(B,w)),this.update(w.el,B),B.subGridOpts?.children){const m=w.el.querySelector(".grid-stack");m&&m.gridstack&&m.gridstack.load(B.subGridOpts.children)}}else t&&this.addWidget(B)}),delete this.engine._loading,this.engine.removedNodes=u,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,a?NA.addRemoveCB=a:delete NA.addRemoveCB,h&&this.setAnimation(!0,!0),this}batchUpdate(A=!0){return this.engine.batchUpdate(A),A||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(A=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!A||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const t=this.el.querySelector("."+this.opts.itemClass);if(t){const o=AA.toNumber(t.getAttribute("gs-h"))||1;return Math.round(t.offsetHeight/o)}const n=parseInt(this.el.getAttribute("gs-current-row"));return n?Math.round(this.el.getBoundingClientRect().height/n):this.opts.cellHeight}cellHeight(A){if(A!==void 0&&this._isAutoCellHeight!==(A==="auto")&&(this._isAutoCellHeight=A==="auto",this._updateResizeEvent()),(A==="initial"||A==="auto")&&(A=void 0),A===void 0){const n=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;A=this.cellWidth()+n}const t=AA.parseHeight(A);return this.opts.cellHeightUnit===t.unit&&this.opts.cellHeight===t.h?this:(this.opts.cellHeightUnit=t.unit,this.opts.cellHeight=t.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(A=!1){return A&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){const A=this.opts.columnOpts;if(!A||!A.columnWidth&&!A.breakpoints?.length)return!1;const t=this.getColumn();let n=t;const o=this._widthOrContainer(!0);if(A.columnWidth)n=Math.min(Math.round(o/A.columnWidth)||1,A.columnMax);else{n=A.columnMax;let a=0;for(;a<A.breakpoints.length&&o<=A.breakpoints[a].w;)n=A.breakpoints[a++].c||t}if(n!==t){const a=A.breakpoints?.find(u=>u.c===n);return this.column(n,a?.layout||A.layout),!0}return!1}compact(A="compact",t=!0){return this.engine.compact(A,t),this._triggerChangeEvent(),this}column(A,t="moveScale"){if(!A||A<1||this.opts.column===A)return this;const n=this.getColumn();return this.opts.column=A,this.engine?(this.engine.column=A,this.el.classList.remove("gs-"+n),this._updateColumnVar(),this.engine.columnChanged(n,A,t),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=t,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(A=>A.matches("."+this.opts.itemClass)&&!A.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(A=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),A?this.el.parentNode.removeChild(this.el):(this.removeAll(A),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(A){return this.opts.float!==A&&(this.opts.float=this.engine.float=A,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(A,t=!1){const n=this.el.getBoundingClientRect();let o;t?o={top:n.top+document.documentElement.scrollTop,left:n.left}:o={top:this.el.offsetTop,left:this.el.offsetLeft};const a=A.left-o.left,u=A.top-o.top,d=n.width/this.getColumn(),h=n.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(a/d),y:Math.floor(u/h)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(A,t,n,o){return this.engine.isAreaEmpty(A,t,n,o)}makeWidget(A,t){const n=NA.getElement(A);if(!n||n.gridstackNode)return n;n.parentElement||this.el.appendChild(n),this._prepareElement(n,!0,t);const o=n.gridstackNode;this._updateContainerHeight(),o.subGridOpts&&this.makeSubGrid(n,o.subGridOpts,void 0,!1);let a;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(a=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),a&&delete this._ignoreLayoutsNodeChange,n}on(A,t){return A.indexOf(" ")!==-1?(A.split(" ").forEach(n=>this.on(n,t)),this):(A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable"?(A==="enable"||A==="disable"?this._gsEventHandler[A]=n=>t(n):this._gsEventHandler[A]=n=>{n.detail&&t(n,n.detail)},this.el.addEventListener(A,this._gsEventHandler[A])):A==="drag"||A==="dragstart"||A==="dragstop"||A==="resizestart"||A==="resize"||A==="resizestop"||A==="dropped"||A==="resizecontent"?this._gsEventHandler[A]=t:console.error("GridStack.on("+A+") event not supported"),this)}off(A){return A.indexOf(" ")!==-1?(A.split(" ").forEach(t=>this.off(t)),this):((A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable")&&this._gsEventHandler[A]&&this.el.removeEventListener(A,this._gsEventHandler[A]),delete this._gsEventHandler[A],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(A=>this.off(A)),this}removeWidget(A,t=!0,n=!0){return A?(NA.getElements(A).forEach(o=>{if(o.parentElement&&o.parentElement!==this.el)return;let a=o.gridstackNode;a||(a=this.engine.nodes.find(u=>o===u.el)),a&&(t&&NA.addRemoveCB&&NA.addRemoveCB(this.el,a,!1,!1),delete o.gridstackNode,this._removeDD(o),this.engine.removeNode(a,t,n),t&&o.parentElement&&o.remove())}),n&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(A=!0,t=!0){return this.engine.nodes.forEach(n=>{A&&NA.addRemoveCB&&NA.addRemoveCB(this.el,n,!1,!1),delete n.el.gridstackNode,this.opts.staticGrid||this._removeDD(n.el)}),this.engine.removeAll(A,t),t&&this._triggerRemoveEvent(),this}setAnimation(A=this.opts.animate,t){return t?setTimeout(()=>{this.opts&&this.setAnimation(A)}):A?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=A,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(A,t=!0,n=!0){return!!this.opts.staticGrid===A?this:(A?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(o=>{this.prepareDragDrop(o.el),o.subGrid&&n&&o.subGrid.setStatic(A,t,n)}),t&&this._setStaticClass(),this)}updateOptions(A){const t=this.opts;return A===t?this:(A.acceptWidgets!==void 0&&(t.acceptWidgets=A.acceptWidgets,this._setupAcceptWidget()),A.animate!==void 0&&this.setAnimation(A.animate),A.cellHeight&&this.cellHeight(A.cellHeight),A.class!==void 0&&A.class!==t.class&&(t.class&&this.el.classList.remove(t.class),A.class&&this.el.classList.add(A.class)),A.columnOpts?(this.opts.columnOpts=A.columnOpts,this.checkDynamicColumn()):A.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof A.column=="number"&&this.column(A.column),A.margin!==void 0&&this.margin(A.margin),A.staticGrid!==void 0&&this.setStatic(A.staticGrid),A.disableDrag!==void 0&&!A.staticGrid&&this.enableMove(!A.disableDrag),A.disableResize!==void 0&&!A.staticGrid&&this.enableResize(!A.disableResize),A.float!==void 0&&this.float(A.float),A.row!==void 0?(t.minRow=t.maxRow=t.row=A.row,this._updateContainerHeight()):(A.minRow!==void 0&&(t.minRow=A.minRow,this._updateContainerHeight()),A.maxRow!==void 0&&(t.maxRow=A.maxRow)),A.lazyLoad!==void 0&&(t.lazyLoad=A.lazyLoad),A.children?.length&&this.load(A.children),this)}update(A,t){return NA.getElements(A).forEach(n=>{const o=n?.gridstackNode;if(!o)return;const a={...AA.copyPos({},o),...AA.cloneDeep(t)};this.engine.nodeBoundFix(a),delete a.autoPosition;const u=["x","y","w","h"];let d;if(u.some(B=>a[B]!==void 0&&a[B]!==o[B])&&(d={},u.forEach(B=>{d[B]=a[B]!==void 0?a[B]:o[B],delete a[B]})),!d&&(a.minW||a.minH||a.maxW||a.maxH)&&(d={}),a.content!==void 0){const B=n.querySelector(".grid-stack-item-content");B&&B.textContent!==a.content&&(o.content=a.content,NA.renderCB(B,a),o.subGrid?.el&&(B.appendChild(o.subGrid.el),o.subGrid._updateContainerHeight())),delete a.content}let h=!1,g=!1;for(const B in a)B[0]!=="_"&&o[B]!==a[B]&&(o[B]=a[B],h=!0,g=g||!this.opts.staticGrid&&(B==="noResize"||B==="noMove"||B==="locked"));if(AA.sanitizeMinMax(o),d){const B=d.w!==void 0&&d.w!==o.w;this.moveNode(o,d),B&&o.subGrid?o.subGrid.onResize(this.hasAnimationCSS()?o.w:void 0):this.resizeToContentCheck(B,o),delete o._orig}(d||h)&&this._writeAttr(n,o),g&&this.prepareDragDrop(o.el),NA.updateCB&&NA.updateCB(o)}),this}moveNode(A,t){const n=A._updating;n||this.engine.cleanNodes().beginUpdate(A),this.engine.moveNode(A,t),this._updateContainerHeight(),n||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(A){if(!A||(A.classList.remove("size-to-content-max"),!A.clientHeight))return;const t=A.gridstackNode;if(!t)return;const n=t.grid;if(!n||A.parentElement!==n.el)return;const o=n.getCellHeight(!0);if(!o)return;let a=t.h?t.h*o:A.clientHeight,u;if(t.resizeToContentParent&&(u=A.querySelector(t.resizeToContentParent)),u||(u=A.querySelector(NA.resizeToContentParent)),!u)return;const d=A.clientHeight-u.clientHeight,h=t.h?t.h*o-d:u.clientHeight;let g;if(t.subGrid){g=t.subGrid.getRow()*t.subGrid.getCellHeight(!0);const m=t.subGrid.el.getBoundingClientRect(),y=A.getBoundingClientRect();g+=m.top-y.top}else{if(t.subGridOpts?.children?.length)return;{const m=u.firstElementChild;if(!m){console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${NA.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}g=m.getBoundingClientRect().height||h}}if(h===g)return;a+=g-h;let B=Math.ceil(a/o);const w=Number.isInteger(t.sizeToContent)?t.sizeToContent:0;w&&B>w&&(B=w,A.classList.add("size-to-content-max")),t.minH&&B<t.minH?B=t.minH:t.maxH&&B>t.maxH&&(B=t.maxH),B!==t.h&&(n._ignoreLayoutsNodeChange=!0,n.moveNode(t,{h:B}),delete n._ignoreLayoutsNodeChange)}resizeToContentCBCheck(A){NA.resizeToContentCB?NA.resizeToContentCB(A):this.resizeToContent(A)}rotate(A,t){return NA.getElements(A).forEach(n=>{const o=n.gridstackNode;if(!AA.canBeRotated(o))return;const a={w:o.h,h:o.w,minH:o.minW,minW:o.minH,maxH:o.maxW,maxW:o.maxH};if(t){const d=t.left>0?Math.floor(t.left/this.cellWidth()):0,h=t.top>0?Math.floor(t.top/this.opts.cellHeight):0;a.x=o.x+d-(o.h-(h+1)),a.y=o.y+h-d}Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]});const u=o._orig;this.update(n,a),o._orig=u}),this}margin(A){if(!(typeof A=="string"&&A.split(" ").length>1)){const t=AA.parseHeight(A);if(this.opts.marginUnit===t.unit&&this.opts.margin===t.h)return}return this.opts.margin=A,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(A){return this.engine.willItFit(A)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const A=this.engine.getDirtyNodes(!0);return A&&A.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(A),this._triggerEvent("change",A)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(t=>{delete t._dirty});const A=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",A)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){const A=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",A)}return this}_triggerEvent(A,t){const n=t?new CustomEvent(A,{bubbles:!1,detail:t}):new Event(A);let o=this;for(;o.parentGridNode;)o=o.parentGridNode.grid;return o.el.dispatchEvent(n),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const A=this.parentGridNode;let t=this.getRow()+this._extraDragRow;const n=this.opts.cellHeight,o=this.opts.cellHeightUnit;if(!n)return this;if(!A&&!this.opts.minRow){const a=AA.parseHeight(getComputedStyle(this.el).minHeight);if(a.h>0&&a.unit===o){const u=Math.floor(a.h/n);t<u&&(t=u)}}return this.el.setAttribute("gs-current-row",String(t)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),t&&(this.el.style[A?"minHeight":"height"]=t*n+o),A&&AA.shouldSizeToContent(A)&&A.grid.resizeToContentCBCheck(A.el),this}_prepareElement(A,t=!1,n){n=n||this._readAttr(A),A.gridstackNode=n,n.el=A,n.grid=this,n=this.engine.addNode(n,t),this._writeAttr(A,n),A.classList.add(be.itemClass,this.opts.itemClass);const o=AA.shouldSizeToContent(n);return o?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,n),AA.lazyLoad(n)||this.prepareDragDrop(n.el),this}_writePosAttr(A,t){return(!t._moving&&!t._resizing||this._placeholder===A)&&(A.style.top=t.y?t.y===1?"var(--gs-cell-height)":`calc(${t.y} * var(--gs-cell-height))`:null,A.style.left=t.x?t.x===1?"var(--gs-column-width)":`calc(${t.x} * var(--gs-column-width))`:null,A.style.width=t.w>1?`calc(${t.w} * var(--gs-column-width))`:null,A.style.height=t.h>1?`calc(${t.h} * var(--gs-cell-height))`:null),A.setAttribute("gs-x",String(t.x)),A.setAttribute("gs-y",String(t.y)),t.w>1?A.setAttribute("gs-w",String(t.w)):A.removeAttribute("gs-w"),t.h>1?A.setAttribute("gs-h",String(t.h)):A.removeAttribute("gs-h"),this}_writeAttr(A,t){if(!t)return this;this._writePosAttr(A,t);const n={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const o in n)t[o]?A.setAttribute(n[o],String(t[o])):A.removeAttribute(n[o]);return this}_readAttr(A,t=!0){const n={};n.x=AA.toNumber(A.getAttribute("gs-x")),n.y=AA.toNumber(A.getAttribute("gs-y")),n.w=AA.toNumber(A.getAttribute("gs-w")),n.h=AA.toNumber(A.getAttribute("gs-h")),n.autoPosition=AA.toBool(A.getAttribute("gs-auto-position")),n.noResize=AA.toBool(A.getAttribute("gs-no-resize")),n.noMove=AA.toBool(A.getAttribute("gs-no-move")),n.locked=AA.toBool(A.getAttribute("gs-locked"));const o=A.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?n.sizeToContent=AA.toBool(o):n.sizeToContent=parseInt(o,10)),n.id=A.getAttribute("gs-id"),n.maxW=AA.toNumber(A.getAttribute("gs-max-w")),n.minW=AA.toNumber(A.getAttribute("gs-min-w")),n.maxH=AA.toNumber(A.getAttribute("gs-max-h")),n.minH=AA.toNumber(A.getAttribute("gs-min-h")),t&&(n.w===1&&A.removeAttribute("gs-w"),n.h===1&&A.removeAttribute("gs-h"),n.maxW&&A.removeAttribute("gs-max-w"),n.minW&&A.removeAttribute("gs-min-w"),n.maxH&&A.removeAttribute("gs-max-h"),n.minH&&A.removeAttribute("gs-min-h"));for(const a in n){if(!n.hasOwnProperty(a))return;!n[a]&&n[a]!==0&&a!=="sizeToContent"&&delete n[a]}return n}_setStaticClass(){const A=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...A),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...A),this.el.removeAttribute("gs-static")),this}onResize(A=this.el?.clientWidth){if(!A||this.prevWidth===A)return;this.prevWidth=A,this.batchUpdate();let t=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),t=!0):t=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(n=>{n.subGrid&&n.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(t),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(A=!1,t=void 0){if(this.engine){if(A&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,t),this.animationDelay);if(t)AA.shouldSizeToContent(t)&&this.resizeToContentCBCheck(t.el);else if(this.engine.nodes.some(n=>AA.shouldSizeToContent(n))){const n=[...this.engine.nodes];this.batchUpdate(),n.forEach(o=>{AA.shouldSizeToContent(o)&&this.resizeToContentCBCheck(o.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,t?[t]:this.engine.nodes)}}_updateResizeEvent(A=!1){const t=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(n=>n.sizeToContent));return!A&&t&&!this.resizeObserver?(this._sizeThrottle=AA.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(A||!t)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(A=".grid-stack-item"){return AA.getElement(A)}static getElements(A=".grid-stack-item"){return AA.getElements(A)}static getGridElement(A){return NA.getElement(A)}static getGridElements(A){return AA.getElements(A)}_initMargin(){let A,t=0,n=[];typeof this.opts.margin=="string"&&(n=this.opts.margin.split(" ")),n.length===2?(this.opts.marginTop=this.opts.marginBottom=n[0],this.opts.marginLeft=this.opts.marginRight=n[1]):n.length===4?(this.opts.marginTop=n[0],this.opts.marginRight=n[1],this.opts.marginBottom=n[2],this.opts.marginLeft=n[3]):(A=AA.parseHeight(this.opts.margin),this.opts.marginUnit=A.unit,t=this.opts.margin=A.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(a=>{this.opts[a]===void 0?this.opts[a]=t:(A=AA.parseHeight(this.opts[a]),this.opts[a]=A.h,delete this.opts.margin)}),this.opts.marginUnit=A.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const o=this.el.style;return o.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return we}static setupDragIn(A,t,n,o=document){t?.pause!==void 0&&(LA.pauseDrag=t.pause),t={appendTo:"body",helper:"clone",...t||{}},(typeof A=="string"?AA.getElements(A,o):A).forEach((a,u)=>{we.isDraggable(a)||we.dragIn(a,t),n?.[u]&&(a.gridstackNode=n[u])})}movable(A,t){return this.opts.staticGrid?this:(NA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noMove:o.noMove=!0,this.prepareDragDrop(o.el))}),this)}resizable(A,t){return this.opts.staticGrid?this:(NA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noResize:o.noResize=!0,this.prepareDragDrop(o.el))}),this)}disable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!1,A),this.enableResize(!1,A),this._triggerEvent("disable"),this}enable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!0,A),this.enableResize(!0,A),this._triggerEvent("enable"),this}enableMove(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableMove(A,t)}),this)}enableResize(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableResize(A,t)}),this)}cancelDrag(){const A=this._placeholder?.gridstackNode;A&&(A._isExternal?(A._isAboutToRemove=!0,this.engine.removeNode(A)):A._isAboutToRemove&&NA._itemRemoving(A.el,!1),this.engine.restoreInitial())}_removeDD(A){return we.draggable(A,"destroy").resizable(A,"destroy"),A.gridstackNode&&delete A.gridstackNode._initDD,delete A.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return we.droppable(this.el,"destroy"),this;let A,t;const n=(o,a,u)=>{u=u||a;const d=u.gridstackNode;if(!d)return;if(!d.grid?.el){u.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const m=u.getBoundingClientRect();u.style.left=m.x+(this.dragTransform.xScale-1)*(o.clientX-m.x)/this.dragTransform.xScale+"px",u.style.top=m.y+(this.dragTransform.yScale-1)*(o.clientY-m.y)/this.dragTransform.yScale+"px",u.style.transformOrigin="0px 0px"}let{top:h,left:g}=u.getBoundingClientRect();const B=this.el.getBoundingClientRect();g-=B.left,h-=B.top;const w={position:{top:h*this.dragTransform.xScale,left:g*this.dragTransform.yScale}};if(d._temporaryRemoved){if(d.x=Math.max(0,Math.round(g/t)),d.y=Math.max(0,Math.round(h/A)),delete d.autoPosition,this.engine.nodeBoundFix(d),!this.engine.willItFit(d)){if(d.autoPosition=!0,!this.engine.willItFit(d)){we.off(a,"drag");return}d._willFitPos&&(AA.copyPos(d,d._willFitPos),delete d._willFitPos)}this._onStartMoving(u,o,w,d,t,A)}else this._dragOrResize(u,o,w,d,t,A)};return we.droppable(this.el,{accept:o=>{const a=o.gridstackNode||this._readAttr(o,!1);if(a?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let u=!0;if(typeof this.opts.acceptWidgets=="function")u=this.opts.acceptWidgets(o);else{const d=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;u=o.matches(d)}if(u&&a&&this.opts.maxRow){const d={w:a.w,h:a.h,minW:a.minW,minH:a.minH};u=this.engine.willItFit(d)}return u}}).on(this.el,"dropover",(o,a,u)=>{let d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._temporaryRemoved)return!1;if(d?._sidebarOrig&&(d.w=d._sidebarOrig.w,d.h=d._sidebarOrig.h),d?.grid&&d.grid!==this&&!d._temporaryRemoved&&d.grid._leave(a,u),u=u||a,t=this.cellWidth(),A=this.getCellHeight(!0),!d){const B=u.getAttribute("data-gs-widget")||u.getAttribute("gridstacknode");if(B){try{d=JSON.parse(B)}catch{console.error("Gridstack dropover: Bad JSON format: ",B)}u.removeAttribute("data-gs-widget"),u.removeAttribute("gridstacknode")}d||(d=this._readAttr(u)),d._sidebarOrig={w:d.w,h:d.h}}d.grid||(d.el||(d={...d}),d._isExternal=!0,u.gridstackNode=d);const h=d.w||Math.round(u.offsetWidth/t)||1,g=d.h||Math.round(u.offsetHeight/A)||1;return d.grid&&d.grid!==this?(a._gridstackNodeOrig||(a._gridstackNodeOrig=d),a.gridstackNode=d={...d,w:h,h:g,grid:this},delete d.x,delete d.y,this.engine.cleanupNode(d).nodeBoundFix(d),d._initDD=d._isExternal=d._temporaryRemoved=!0):(d.w=h,d.h=g,d._temporaryRemoved=!0),NA._itemRemoving(d.el,!1),we.on(a,"drag",n),n(o,a,u),!1}).on(this.el,"dropout",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;return d&&(!d.grid||d.grid===this)&&(this._leave(a,u),this._isTemp&&this.removeAsSubGrid(d)),!1}).on(this.el,"drop",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._isExternal)return!1;const h=!!this.placeholder.parentElement,g=a!==u;this.placeholder.remove(),delete this.placeholder.gridstackNode,h&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const B=a._gridstackNodeOrig;if(delete a._gridstackNodeOrig,h&&B?.grid&&B.grid!==this){const m=B.grid;m.engine.removeNodeFromLayoutCache(B),m.engine.removedNodes.push(B),m._triggerRemoveEvent()._triggerChangeEvent(),m.parentGridNode&&!m.engine.nodes.length&&m.opts.subGridDynamic&&m.removeAsSubGrid()}if(!d||(h&&(this.engine.cleanupNode(d),d.grid=this),delete d.grid?._isTemp,we.off(a,"drag"),u!==a?(u.remove(),a=u):a.remove(),this._removeDD(a),!h))return!1;const w=d.subGrid?.el?.gridstack;return AA.copyPos(d,this._readAttr(this.placeholder)),AA.removePositioningStyles(a),g&&(d.content||d.subGridOpts||NA.addRemoveCB)?(delete d.el,a=this.addWidget(d)):(this._prepareElement(a,!0,d),this.el.appendChild(a),this.resizeToContentCheck(!1,d),w&&(w.parentGridNode=d),this._updateContainerHeight()),this.engine.addedNodes.push(d),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...o,type:"dropped"},B&&B.grid?B:void 0,d),!1}),this}static _itemRemoving(A,t){if(!A)return;const n=A?A.gridstackNode:void 0;!n?.grid||A.classList.contains(n.grid.opts.removableOptions.decline)||(t?n._isAboutToRemove=!0:delete n._isAboutToRemove,t?A.classList.add("grid-stack-item-removing"):A.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const A=document.querySelector(this.opts.removable);return A?(!this.opts.staticGrid&&!we.isDroppable(A)&&we.droppable(A,this.opts.removableOptions).on(A,"dropover",(t,n)=>NA._itemRemoving(n,!0)).on(A,"dropout",(t,n)=>NA._itemRemoving(n,!1)),this):this}prepareDragDrop(A,t=!1){const n=A?.gridstackNode;if(!n)return;const o=n.noMove||this.opts.disableDrag,a=n.noResize||this.opts.disableResize,u=this.opts.staticGrid||o&&a;if((t||u)&&(n._initDD&&(this._removeDD(A),delete n._initDD),u&&A.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!t))return this;if(!n._initDD){let d,h;const g=(m,y)=>{this.triggerEvent(m,m.target),d=this.cellWidth(),h=this.getCellHeight(!0),this._onStartMoving(A,m,y,n,d,h)},B=(m,y)=>{this._dragOrResize(A,m,y,n,d,h)},w=m=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete n._moving,delete n._resizing,delete n._event,delete n._lastTried;const y=n.w!==n._orig.w,Q=m.target;if(!(!Q.gridstackNode||Q.gridstackNode.grid!==this)){if(n.el=Q,n._isAboutToRemove){const U=A.gridstackNode.grid;U._gsEventHandler[m.type]&&U._gsEventHandler[m.type](m,Q),U.engine.nodes.push(n),U.removeWidget(A,!0,!0)}else AA.removePositioningStyles(Q),n._temporaryRemoved?(this._writePosAttr(Q,n),this.engine.addNode(n)):this._writePosAttr(Q,n),this.triggerEvent(m,Q);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(n.sizeToContent)&&(n.sizeToContent=n.h),this.resizeToContentCheck(y,n))}};we.draggable(A,{start:g,stop:w,drag:B}).resizable(A,{start:g,stop:w,resize:B}),n._initDD=!0}return we.draggable(A,o?"disable":"enable").resizable(A,a?"disable":"enable"),this}_onStartMoving(A,t,n,o,a,u){if(this.engine.cleanNodes().beginUpdate(o),this._writePosAttr(this.placeholder,o),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=o,o.grid?.el)this.dragTransform=AA.getValuesFromTransformedElement(A);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=AA.getValuesFromTransformedElement(d)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(o.el=this.placeholder,o._lastUiPosition=n.position,o._prevYPix=n.position.top,o._moving=t.type==="dragstart",o._resizing=t.type==="resizestart",delete o._lastTried,t.type==="dropover"&&o._temporaryRemoved&&(this.engine.addNode(o),o._moving=!0),this.engine.cacheRects(a,u,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),t.type==="resizestart"){const d=this.getColumn()-o.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-o.y;we.resizable(A,"option","minWidth",a*Math.min(o.minW||1,d)).resizable(A,"option","minHeight",u*Math.min(o.minH||1,h)).resizable(A,"option","maxWidth",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(A,"option","maxWidthMoveLeft",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,o.x+o.w)).resizable(A,"option","maxHeight",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(A,"option","maxHeightMoveUp",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,o.y+o.h))}}_dragOrResize(A,t,n,o,a,u){const d={...o._orig};let h,g=this.opts.marginLeft,B=this.opts.marginRight,w=this.opts.marginTop,m=this.opts.marginBottom;const y=Math.round(u*.1),Q=Math.round(a*.1);if(g=Math.min(g,Q),B=Math.min(B,Q),w=Math.min(w,y),m=Math.min(m,y),t.type==="drag"){if(o._temporaryRemoved)return;const T=n.position.top-o._prevYPix;o._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&AA.updateScrollPosition(A,n.position,T);const M=n.position.left+(n.position.left>o._lastUiPosition.left?-B:g),R=n.position.top+(n.position.top>o._lastUiPosition.top?-m:w);d.x=Math.round(M/a),d.y=Math.round(R/u);const H=this._extraDragRow;if(this.engine.collide(o,d)){const P=this.getRow();let iA=Math.max(0,d.y+o.h-P);this.opts.maxRow&&P+iA>this.opts.maxRow&&(iA=Math.max(0,this.opts.maxRow-P)),this._extraDragRow=iA}else this._extraDragRow=0;if(this._extraDragRow!==H&&this._updateContainerHeight(),o.x===d.x&&o.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(AA.updateScrollResize(t,A,u),d.w=Math.round((n.size.width-g)/a),d.h=Math.round((n.size.height-w)/u),o.w===d.w&&o.h===d.h)||o._lastTried&&o._lastTried.w===d.w&&o._lastTried.h===d.h)return;const T=n.position.left+g,M=n.position.top+w;d.x=Math.round(T/a),d.y=Math.round(M/u),h=!0}o._event=t,o._lastTried=d;const U={x:n.position.left+g,y:n.position.top+w,w:(n.size?n.size.width:o.w*a)-g-B,h:(n.size?n.size.height:o.h*u)-w-m};if(this.engine.moveNodeCheck(o,{...d,cellWidth:a,cellHeight:u,rect:U,resizing:h})){o._lastUiPosition=n.position,this.engine.cacheRects(a,u,w,B,m,g),delete o._skipDown,h&&o.subGrid&&o.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const T=t.target;o._sidebarOrig||this._writePosAttr(T,o),this.triggerEvent(t,T)}}triggerEvent(A,t){let n=this;for(;n.parentGridNode;)n=n.parentGridNode.grid;n._gsEventHandler[A.type]&&n._gsEventHandler[A.type](A,t)}_leave(A,t){t=t||A;const n=t.gridstackNode;if(!n||(t.style.transform=t.style.transformOrigin=null,we.off(A,"drag"),n._temporaryRemoved))return;n._temporaryRemoved=!0,this.engine.removeNode(n),n.el=n._isExternal&&t?t:A;const o=n._sidebarOrig;n._isExternal&&this.engine.cleanupNode(n),n._sidebarOrig=o,this.opts.removable===!0&&NA._itemRemoving(A,!0),A._gridstackNodeOrig?(A.gridstackNode=A._gridstackNodeOrig,delete A._gridstackNodeOrig):n._isExternal&&this.engine.restoreInitial()}};en.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},en.resizeToContentParent=".grid-stack-item-content",en.Utils=AA,en.Engine=Ci,en.GDRev="12.4.2";var Mm={class:"d-layout"},Om=["gs-id","gs-x","gs-y","gs-w","gs-h","gs-locked","gs-no-resize","gs-no-move","gs-min-w","gs-min-h","gs-max-w","gs-max-h"],Km=(0,r.defineComponent)({name:"DLayout",__name:"layout",props:{modelValue:{default:()=>[]},column:{default:24},cellHeight:{default:60},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},float:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removableOptions:{}},emits:["update:modelValue","added","removed","changed","dragStart","dragStop","resizeStart","resizeStop"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)();let u=null;const d=async()=>{a.value&&(await(0,r.nextTick)(),u&&u.destroy(!1),u=en.init({column:n.column,cellHeight:n.cellHeight,disableDrag:!(n.draggable&&!n.disable),disableResize:!(n.resizable&&!n.disable),animate:n.animate,float:n.float,removable:n.removable,removableOptions:n.removableOptions},a.value),u.on("added",(m,y)=>{const Q=y[0];Q&&(o("added",h(Q)),B())}),u.on("removed",(m,y)=>{const Q=y[0];Q&&(o("removed",h(Q)),B())}),u.on("change",()=>{B(),o("changed",(u?.save()||[]).map(m=>h(m)))}),u.on("dragstart",(m,y)=>{y&&o("dragStart",m,h(y.gridstackNode||y))}),u.on("dragstop",(m,y)=>{y&&o("dragStop",m,h(y.gridstackNode||y))}),u.on("resizestart",(m,y)=>{y&&o("resizeStart",m,h(y.gridstackNode||y))}),u.on("resizestop",(m,y)=>{y&&o("resizeStop",m,h(y.gridstackNode||y))}))},h=m=>({id:m.id||m.el?.getAttribute("gs-id")||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1,locked:m.locked||!1,noResize:m.noResize||!1,noMove:m.noMove||!1,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}),g=async()=>{if(!u||!a.value)return;await(0,r.nextTick)();const m=u.engine.nodes;new Set(m.map(Q=>Q.id));const y=new Set(n.modelValue.map(Q=>Q.id));m.forEach(Q=>{if(!y.has(Q.id||"")){const U=Q.el;U&&u&&u.removeWidget(U,!1)}}),n.modelValue.forEach(Q=>{const U=m.find(T=>T.id===Q.id);if(U)U.el&&u&&u.update(U.el,{x:Q.x,y:Q.y,w:Q.w,h:Q.h,locked:Q.locked,noResize:Q.noResize,noMove:Q.noMove,minW:Q.minW,minH:Q.minH,maxW:Q.maxW,maxH:Q.maxH});else{if(!a.value||!u)return;const T=a.value.querySelector(`[gs-id="${Q.id}"]`);T&&u.makeWidget(T)}})},B=()=>{u&&o("update:modelValue",u.save().map(m=>{const y={id:m.id||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1},Q=n.modelValue.find(U=>U.id===y.id);return Q&&Object.keys(Q).forEach(U=>{["id","x","y","w","h"].includes(U)||(y[U]=Q[U])}),y}))},w=(0,r.computed)(()=>n.modelValue);return(0,r.watch)(()=>n.modelValue,async()=>{u&&(await(0,r.nextTick)(),g())},{deep:!0}),(0,r.watch)(()=>[n.column,n.cellHeight,n.draggable,n.resizable,n.disable,n.animate,n.float,n.removable],()=>{d()}),(0,r.onMounted)(()=>{d()}),(0,r.onBeforeUnmount)(()=>{u&&(u.destroy(!1),u=null)}),A({addItem:async m=>{if(u&&a.value){await(0,r.nextTick)();const y=a.value.querySelector(`[gs-id="${m.id}"]`);y&&(u.makeWidget(y),u.update(y,{x:m.x,y:m.y,w:m.w,h:m.h,locked:m.locked,noResize:m.noResize,noMove:m.noMove,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}))}},removeItem:m=>{if(u&&a.value){const y=a.value.querySelector(`[gs-id="${m}"]`);y&&u.removeWidget(y,!1)}},clear:()=>{u&&u.removeAll(!1)},getGrid:()=>u}),(m,y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Mm,[(0,r.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.value,Q=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Q.id,"gs-id":Q.id,"gs-x":Q.x,"gs-y":Q.y,"gs-w":Q.w,"gs-h":Q.h,"gs-locked":Q.locked,"gs-no-resize":Q.noResize,"gs-no-move":Q.noMove,"gs-min-w":Q.minW,"gs-min-h":Q.minH,"gs-max-w":Q.maxW,"gs-max-h":Q.maxH,class:"d-layout-item"},[(0,r.renderSlot)(m.$slots,"item",{item:Q})],8,Om))),128))],512)]))}}),Rm=Km,fl=dt(Rm),$A=(e,A="",t=!1)=>t?`${e}pt`:A?`${e}${A}`:`${e}px`,ye=(e,A=0)=>e==null||isNaN(e)?0:Number(Number(e).toFixed(A)),Vm=e=>e*3/4,Pm=e=>e*4/3,Gm=["onMousedown"],zm={key:2,class:"d-draggable__mask"},Xm=(0,r.defineComponent)({name:"DDraggable",__name:"draggable",props:{index:{},mask:{type:Boolean,default:!0},scale:{default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},step:{default:1},zIndex:{default:1},isActiveBgTransparent:{type:Boolean,default:!1},left:{default:0},top:{default:0},width:{},height:{},activeFlag:{type:Boolean,default:!1},isPt:{type:Boolean,default:!1}},emits:["focus","blur","over","out"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)(),u=(0,r.ref)(),d=(0,r.ref)(0),h=(0,r.ref)(0),g=(0,r.ref)(0),B=(0,r.ref)(0),w=(0,r.ref)(null),m=(0,r.ref)(!1),y=(0,r.ref)(!1),Q=(0,r.ref)(!1),U=(0,r.ref)(!1),T=(0,r.ref)([{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]),M=(0,r.computed)(()=>n.scale),R=(0,r.computed)(()=>({left:$A(M.value,"",n.isPt)})),H=(0,r.computed)(()=>({left:$A(-M.value,"",n.isPt)})),P=(0,r.computed)(()=>({left:"auto",right:$A(-M.value,"",n.isPt)})),iA=(0,r.computed)(()=>({top:$A(-M.value,"",n.isPt)})),Z=(0,r.computed)(()=>({top:"auto",bottom:$A(-M.value,"",n.isPt)})),aA=(0,r.computed)(()=>{const G=8*M.value;return{width:$A(G,"",n.isPt),height:$A(G,"",n.isPt)}}),lA=(0,r.computed)(()=>({fontSize:$A(16*M.value,"",n.isPt)})),rA=(0,r.computed)(()=>Object.assign((()=>{if(U.value){const G={zIndex:9999,...R.value};return n.isActiveBgTransparent&&(U.value||y.value)&&!n.readonly&&!n.disabled&&(G.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),G}return{zIndex:n.zIndex}})(),{top:$A(B.value,"",n.isPt),width:$A(d.value,"",n.isPt),height:$A(h.value,"",n.isPt),padding:$A(8*M.value,"",n.isPt),...R.value,left:$A(g.value,"",n.isPt)}));(0,r.watch)(()=>n.width,G=>{d.value=ye(j(G))||(w.value?.offsetWidth??0)}),(0,r.watch)(()=>n.height,G=>{h.value=ye(j(G))||(w.value?.offsetHeight??0)},{deep:!0}),(0,r.watch)(()=>n.left,G=>{g.value=ye(j(G))}),(0,r.watch)(()=>n.top,G=>{B.value=ye(j(G))}),(0,r.watch)(d,G=>{a.value&&(a.value.style.width=$A(G,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.width=$A(G,"",n.isPt)))}),(0,r.watch)(h,G=>{a.value&&(a.value.style.height=$A(G,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.height=$A(G,"",n.isPt)))}),(0,r.watch)(()=>n.activeFlag,G=>{nA(G)});const nA=G=>{U.value=G},j=G=>G===void 0?0:n.isPt?Pm(G):G,S=()=>{u.value&&u.value.firstChild&&(w.value=u.value.firstChild,d.value=ye(j(n.width))||(w.value?.offsetWidth??0),h.value=ye(j(n.height))||(w.value?.offsetHeight??0),g.value=ye(j(n.left)),B.value=ye(j(n.top)),nA(n.activeFlag))},eA=G=>{g.value=G},I=G=>{B.value=G},X=G=>{const Y=8*M.value/2,$={};return G.split("-").forEach(oA=>{$[oA]=$A(-Y,"",n.isPt)}),$},F=G=>{y.value=G},x=G=>n.isPt?Vm(G):G,N=()=>{m.value=!0,o("focus",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},L=()=>{m.value=!1,Q.value=!1,o("blur",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},O=()=>{document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,L()}},J=(G,Y)=>{if(n.disabled||n.readonly)return;let $,oA,BA,wA,bA,uA;Q.value=!0,N();let hA=G.clientX,_=G.clientY;document.onmousemove=b=>{m.value=!0,Y==="right"?($=!0,oA=!1):Y==="left"?($=!0,BA=!0,bA=!0,oA=!1):Y==="top"?($=!1,oA=!0,wA=!0,uA=!0):Y==="bottom"?($=!1,oA=!0):Y==="bottom-right"?($=!0,oA=!0):Y==="bottom-left"?($=!0,oA=!0,BA=!0,bA=!0):Y==="top-right"?($=!0,oA=!0,wA=!0,uA=!0):Y==="top-left"&&($=!0,oA=!0,BA=!0,bA=!0,wA=!0,uA=!0);const D=b.clientX-hA,W=b.clientY-_;if(hA=b.clientX,_=b.clientY,$){let V=D*n.step;bA&&(V=-V),BA&&(g.value=ye(g.value-V)),d.value=ye(d.value+V)}if(oA){let V=W*n.step;uA&&(V=-V),wA&&(B.value=ye(B.value-V)),h.value=ye(h.value+V)}},O()},tA=()=>{y.value=!1,o("out",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},dA=()=>{n.disabled||n.readonly||(y.value=!0,o("over",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)}))},UA=G=>{if(n.disabled||n.readonly)return;U.value=!0,N();let Y=G.clientX,$=G.clientY;document.onmousemove=oA=>{const BA=oA.clientX-Y,wA=oA.clientY-$;Y=oA.clientX,$=oA.clientY,g.value=ye(g.value+BA*n.step),B.value=ye(B.value+wA*n.step)},O()};return(0,r.onMounted)(()=>{S()}),A({setActive:nA,setLeft:eA,setTop:I,setOverActive:F}),(G,Y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-draggable",{"d-draggable--active":(U.value||y.value)&&!e.readonly&&!e.disabled},{"d-draggable--pt":e.isPt&&!e.readonly&&!e.disabled},{"d-draggable--move":m.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,r.withModifiers)(UA,["stop"]),onMouseover:(0,r.withModifiers)(dA,["stop"]),onMouseout:(0,r.withModifiers)(tA,["stop"]),style:(0,r.normalizeStyle)(rA.value)},[(0,r.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:a},[(U.value||y.value||m.value)&&!e.readonly&&!e.disabled?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...iA.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...H.value}),class:"d-draggable__line d-draggable__line--top"},null,4),e.isPt?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...iA.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...H.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...Z.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...P.value}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...Z.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...P.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4)],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,r.normalizeStyle)(lA.value)},(0,r.toDisplayString)(g.value)+","+(0,r.toDisplayString)(B.value),5))],64)):(0,r.createCommentVNode)("",!0),!e.readonly&&!e.disabled?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(T.value,($,oA)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:oA},[U.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["d-draggable__range",`d-draggable__range--${$.classname}`]),style:(0,r.normalizeStyle)([aA.value,X($.classname)]),onMousedown:(0,r.withModifiers)(BA=>J(BA,$.classname),["stop"])},null,46,Gm)):(0,r.createCommentVNode)("",!0)],64))),128)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:u},[(0,r.renderSlot)(G.$slots,"default")],512),!e.disabled&&e.mask?((0,r.openBlock)(),(0,r.createElementBlock)("div",zm)):(0,r.createCommentVNode)("",!0)],512)],38))}}),$m=Xm,gl=dt($m),hl=e=>{const A=Wm(e.components);return{formConfig:e.form,componentList:A}},Bl=(e,A)=>{let t={},n=[];const o={},a=e;t=a.form;const u={};return a.components.forEach(d=>{const h=A[d.type];u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h?.dragType||"component",componentName:h?.componentName||"",runtimeType:h?.runtimeType,groupId:d.groupId,config:d.config,isInput:h?.isInput!==!1,containerId:d.containerId,level:d.level};h?.dragType==="container"&&(g.children=[]),o[g.id]=g,u[d.containerId].push(g)}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.form||[],{formConfig:t,componentList:n,componentDic:o}},Gr=(e,A)=>{const t={ver:"j1",form:{...e},components:[],db:{}};return pl(A||[],t.components),t},pl=(e,A)=>{e.forEach(t=>{if(t.type==="pkey")return;const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&pl(t.children||[],A),A.push(n)})},Wm=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{rule:[]}};n.config&&Object.keys(n.config).forEach(a=>{if(a==="required"){n.config.required&&o.config?.rule?.push({required:!0,message:n.config.requiredMsg||"请输入"});return}if(a==="patterns"){n.config.patterns.forEach(u=>{u.reg&&u.msg&&o.config?.rule?.push({pattern:new RegExp(u.reg),message:`请输入${u.msg||""}`})});return}o.config[a]=n.config[a]}),n.type==="pkey"&&(o.config.isPkey=!0),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const u={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();u[h]||(u[h]=[]),delete d.slot,u[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=u[d._i]||[],g={label:d.label};d.active&&o.type==="j-collapse"&&(g.active=d.active);let B;if(o.type==="j-tabs"&&o.config?.tabKey&&o.config?.options.length>0){const m=o.config.options.find(y=>y.label===d._i);m&&(B=({formData:y})=>({display:m.value.includes(y[o.config?.tabKey||""])?m.display:!m.display}))}const w={config:g,children:h};return B&&(w.getCompConfig=B),w}),delete o.config.groups}else o.children=a}}),A.form},ml=(e,A,t,n,o,a,u,d)=>{const h=(0,r.ref)(),g=(0,r.reactive)({}),B=(0,r.computed)(()=>{const F=[];return Object.keys(g).forEach(x=>{const N=g[x];N.dragType==="component"&&N.type!=="pkey"&&F.push(N)}),F}),w=(F=[],x)=>{const N=A?.value?.init;typeof N=="function"&&N(F,x)},m=F=>o?o(F,{componentDic:g,components:B.value,configData:h.value.config}):{},y=(F,x)=>{if(h.value?.id===F)return;const N=g[F]||x;if(N?h.value=N:F===t.id?h.value=t:h.value=null,h.value){const L=a[h.value.type];L?(w(L,h.value.config),m(h.value.type)):w([])}else w([]);x&&ne("dragClick",{id:x.id})},Q=()=>e.value.$el.getBoundingClientRect(),U=F=>F===t.id?t:g[F]||{},T=F=>{const x=[];if(F===t.id)x.push({id:F,name:t.name});else{const N=g[F];if(N){x.push({id:F,name:N.name});const L=T(N.containerId);x.push(...L)}}return x},M=(F,x)=>{const N=g[x];if(N===void 0)return!1;const L=N.containerId;return F===L?!0:L===t.id?!1:M(F,L)},R=F=>n?n(F)||{}:{},H=(F,x,N,L)=>{if(d){const O=U(F);return d(N.componentType,{container:O,groupId:x,configData:N},L)}return!1},P=({name:F,type:x,dragType:N,isInput:L,componentName:O,runtimeType:J},tA,dA,UA,G=!1)=>{const Y=R(x);if(Y.id=ft(),Y.span=24,Y.componentType=x,iA(tA,Y.componentType))return;H(tA,UA,Y,!0);const $={id:Y.id,name:F,type:x,runtimeType:J,componentName:O||"",dragType:N||"component",containerId:tA,isInput:!!L,level:g[tA]?g[tA].level+1:1,config:Y,isNewAdd:!G,groupId:UA};return $.dragType==="container"&&($.children=[]),g[$.id]=$,U(tA).children?.splice(dA,0,$),$},iA=(F,x)=>!!(U(F).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(x)),Z=(F,x,N=!1)=>{let L=null;const O=U(F).children,J=O?.findIndex(tA=>tA.id===x)||0;if(N&&O&&O.length>1){let tA=J+1;J>0&&(tA=J-1),L=O[tA]}return O?.splice(J,1),L?.id},aA=(F,x,N,L)=>{const O=U(x).children,J=F.containerId!==x;F.containerId=x,F.groupId=L,O?.splice(N,0,F),H(x,L,F.config,J)&&(eA(),y(F.id))},lA=F=>{let x="";const N=U(F);return N&&(N.children&&N.children.length>0&&N.children.forEach(L=>{lA(L.id)}),x=Z(N.containerId,F,!0)||"",delete g[F]),h.value&&h.value.id===F&&(h.value=null,A.value.init([])),x},rA=(F,x=[])=>{const N=U(F);if(N&&N.children&&N.children.length>0){const L=[];N.children.forEach(O=>{O.groupId&&x.includes(O.groupId)&&L.push(O.id)}),L.forEach(O=>{lA(O),delete g[O]})}},nA=(F,x)=>{const N=U(F);N&&(N.children&&N.children.length>0&&N.children.forEach(L=>{L.groupId===x&&lA(L.id)}),delete g[F])},j=F=>{const x=mn(U(F));x.id=ft(),x.config.id=x.id,g[x.id]=x;const N=U(x.containerId).children,L=N?.findIndex(O=>O.id===F)||0;N?.splice(L+1,0,x)},S=()=>{t.children=[],Hu(g),h.value&&(ne("dragClick",{id:""}),h.value=null,A.value.init([]))},eA=()=>{h.value&&(ne("dragClick",{id:""}),h.value=null,A.value.init([]))},I=F=>{const x=h.value,N=U(x.containerId).children,L=N?.findIndex(O=>O.id===x.id)||0;lA(x.id),(0,r.nextTick)(()=>{const O=u[F],J=R(F);J.id=x.id,J.span=x.config.span,J.componentType=F,J.table=x.config.table,J.field=x.config.field,x.config.isSubTable&&(J.isSubTable=x.config.isSubTable);const tA={id:J.id,name:O.name,type:F,runtimeType:O.runtimeType,componentName:O.componentName||"",dragType:x.dragType,groupId:x.groupId,containerId:x.containerId,isInput:x.isInput,level:x.level,config:J,isNewAdd:!0};g[tA.id]=tA,N?.splice(L,0,tA)})},X=F=>{ne("dragAddByClick",F)};return(0,r.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:Q,getComponent:U,getParentComponents:T,isMyChildComponent:M,selectComponent:y,addComponent:P,deleteComponent:lA,copyComponent:j,removeComponentFromContainer:Z,addComponentToContainer:aA,top:t,deleteChildren:nA,deleteChildrens:rA}),{activedComponent:h,clearComponents:S,changeComponent:I,schemaComponentDic:g,clearSelect:eA,addComponent:P,addComponentByTable:X,designComponentList:B}},Ym=(0,r.defineComponent)({__name:"formDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){const A=e,{t}=(0,me.useAppInject)(),n=(0,r.computed)(()=>A.componentData.config?.notShowLabel?"":A.componentData.config?.label||""),o=(0,r.computed)(()=>n.value===""?0:A.componentData.config?.labelWidth===void 0&&A.globalConfig.labelWidth!==void 0?`${A.globalConfig.labelWidth}px`:A.componentData.config?.labelWidth?`${A.componentData.config?.labelWidth}px`:void 0),a=(0,r.computed)(()=>{const u={...A.componentData?.config};return u.size===void 0&&(u.size=A.globalConfig.size),u.display=!0,u});return(u,d)=>{const h=(0,r.resolveComponent)("j-comp"),g=(0,r.resolveComponent)("el-form-item");return e.componentData.isInput?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,"label-width":o.value,label:(0,r.unref)(t)(n.value),"label-position":A.componentData.config?.labelPosition||e.globalConfig?.labelPosition,rules:e.componentData.config?.required?[{required:!0,message:""}]:[]},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(h,{type:e.componentData?.componentName||e.componentData?.type,config:a.value,modelValue:e.componentData?.config.defaultValue},null,8,["type","config","modelValue"])]),_:1},8,["label-width","label","label-position","rules"])):e.componentData?.children?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)({key:1},e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.normalizeProps)((0,r.mergeProps)({key:2},e.componentData?.config)),null,16))}}}),wl=Ym,Jm={class:"d-form-design j-block"},Zm={class:"d-form-design-left"},jm={class:"d-form-design-component-list"},qm={class:"j-component-tool"},Aw={class:"j-component-tool-name"},ew={class:"d-form-design-center"},tw={class:"d-form-design-container"},nw={key:0,class:"d-form-design-empty"},rw={class:"d-form-design-right"},ow={class:"d-form-design-panel-title"},iw={style:{margin:"0","font-size":"14px"}},sw={class:"d-form-design-panel"},aw=(0,r.defineComponent)({name:"DFormDesign",__name:"formDesign",props:{components:{default:()=>[]},componentConfigs:{default:()=>({})},componentInit:{type:Function,default:void 0},containerAddComponent:{type:Function,default:void 0},componentConfigInit:{type:Function,default:void 0},componentConfigChange:{type:Function,default:void 0},componentConfigValidate:{type:Function,default:void 0},flowComponents:{default:()=>[]},flowInit:{type:Function,default:void 0},flowComponentConfigInit:{type:Function,default:void 0},flowComponentConfigChange:{type:Function,default:void 0},flowComponentConfigs:{default:()=>({})},actions:{}},setup(e,{expose:A}){const t=e,{t:n,error:o}=(0,me.useAppInject)(),a=(0,r.reactive)({name:"表单",id:"form",type:"form",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}}),u=(0,r.ref)([]),d=t.components.length;for(let G=0;G<d;G++)u.value.push(G);t.componentInit&&(a.config=t.componentInit("form")||{});const h={},g=[];t.components.forEach(({children:G})=>{G.forEach(Y=>{h[Y.type]=Y,Y.dragType=Y.dragType||"component",Y.isInput!==!1&&(Y.isInput=!0,g.push({label:Y.name,value:Y.type}))})});const B=G=>{G.forEach(Y=>{Y.type==="d-input-flow"&&(Y.config=Y.config||{},Y.config.flowComponents=t.flowComponents,Y.config.flowInit=t.flowInit,Y.config.flowComponentConfigInit=$=>{t.flowComponentConfigInit&&($.designComponents=iA.value,$.component=M.value,t.flowComponentConfigInit($))},Y.config.flowComponentConfigs=t.flowComponentConfigs,Y.config.flowComponentConfigChange=t.flowComponentConfigChange),Y.children&&B(Y.children)})},w={};Object.keys(t.componentConfigs||{}).forEach(G=>{const{hasBase:Y,isInput:$,hasTwoPlaceholder:oA,hasPlaceholder:BA,hasSpan:wA,hasLabel:bA,bindTable:uA,labelTitle:hA}=h[G]||{hasBase:!1},_=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:$,options:g}},{id:"label",type:"j-input",config:{label:hA||"标题"},getCompConfig:({formData:D})=>({display:bA!==!1&&!D.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(hA||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:D})=>({display:bA!==!1&&!D.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:D})=>({display:$&&!D.notShowLabel&&!D.isSubTable})},{id:"labelPosition",type:"j-radio",config:{label:"标题对齐",options:[{value:"right",label:"右"},{value:"left",label:"左"},{value:"top",label:"顶部"}]}},{id:"placeholder",type:"j-input",config:{display:$&&!oA&&BA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!oA,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!oA,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:D})=>({display:wA!==!1&&!D.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:D})=>({display:!!D.isSubTable})}],b={type:"j-collapse",config:{defaultValue:[]},children:[]};Y!==!1&&b.children?.push({config:{label:"基础信息"},children:[..._]}),b.children?.push(...t.componentConfigs[G]),b.children?.forEach((D,W)=>{b.config?.defaultValue.push(`_collapse${W}`)}),B(b.children||[]),w[G]=[b]});const m=G=>{const{value:Y}=G||{};G.id==="componentType"&&H(Y),M.value&&t.componentConfigChange&&t.componentConfigChange(M.value.type,{configRef:T,configData:M.value.config,...G})},y=(G,Y)=>{t.componentConfigInit&&t.componentConfigInit(G,{configRef:T,...Y})},Q=(G,Y,$)=>{let oA=!1;return Y.container.type==="gridtable"?(!Y.configData.isSubTable||$)&&(Y.configData.isSubTable=!0,oA=!0):Y.configData.isSubTable&&(oA=!0,Y.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(G,Y),oA},U=(0,r.ref)(),T=(0,r.ref)(),{activedComponent:M,clearComponents:R,changeComponent:H,schemaComponentDic:P,designComponentList:iA}=ml(U,T,a,t.componentInit,y,w,h,Q),Z=(0,r.computed)(()=>M.value?.id!="form"?M.value?`${M.value.name}-${M.value.id}`:"":M.value?`${M.value.name}`:"");(0,r.provide)("dui-design-provide",{designItemName:wl});const aA=()=>{R()},lA=()=>{t.componentInit&&(a.config=t.componentInit("form")||{}),R()},rA=()=>Gr(a.config,a.children||[]),nA=G=>{const Y=Bl(G,h);a.config=Y.formConfig,a.children?.push(...Y.componentList),Object.keys(Y.componentDic).forEach($=>{P[$]=Y.componentDic[$]})},j=()=>S(Gr(a.config,a.children||[]).components),S=G=>{for(const Y of G)if(t.componentConfigValidate&&!t.componentConfigValidate(Y.type,{configData:Y.config,errorTip:o}))return!1;return!0},eA=(0,r.ref)(),I=(0,r.ref)(),X=(0,r.reactive)({width:0,height:0,formConfig:{}});let F=0;const x=G=>{if(I.value)F=0,I.value.init(G||[]);else{if(F>600){console.warn("表单组件加载超时");return}F++,setTimeout(()=>{x(G)},100)}},N=()=>{},L=()=>{};return A({getSchema:()=>rA(),setSchema:G=>nA(G),reset:()=>lA(),validate:()=>j(),preview:()=>{const G=Gr(a.config,a.children||[]);X.width=G.form.width||800,X.height=G.form.height||600,eA.value.open("表单预览",G.form.layerType),(0,r.nextTick)(()=>{const{formConfig:Y,componentList:$}=hl(G);X.formConfig=Y,x($)})},clear:aA}),(G,Y)=>{const $=(0,r.resolveComponent)("j-icon"),oA=(0,r.resolveComponent)("d-drag-tool"),BA=(0,r.resolveComponent)("el-collapse-item"),wA=(0,r.resolveComponent)("el-collapse"),bA=(0,r.resolveComponent)("d-drag-form-list"),uA=(0,r.resolveComponent)("el-row"),hA=(0,r.resolveComponent)("d-drag-container"),_=(0,r.resolveComponent)("j-form"),b=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Jm,[(0,r.createElementVNode)("div",Zm,[(0,r.createElementVNode)("div",jm,[(0,r.createVNode)(wA,{modelValue:u.value,"onUpdate:modelValue":Y[0]||(Y[0]=D=>u.value=D)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(D,W)=>((0,r.openBlock)(),(0,r.createBlock)(BA,{key:W,title:D.name,name:W},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(D.children,(V,pA)=>((0,r.openBlock)(),(0,r.createBlock)(oA,{key:pA,config:V},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",qm,[(0,r.createVNode)($,{class:"j-component-tool-icon",icon:V.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",Aw,(0,r.toDisplayString)((0,r.unref)(n)(V.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",ew,[(0,r.createElementVNode)("div",tw,[(0,r.createVNode)(hA,{ref_key:"dragContainer",ref:U,class:"d-form-design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",nw,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)((0,r.unref)(n)("请从左侧拖拽组件到此处")),1)])):((0,r.openBlock)(),(0,r.createBlock)(uA,{key:1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(bA,{"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"])]),_:1}))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",rw,[(0,r.createElementVNode)("div",ow,[(0,r.createElementVNode)("span",iw,(0,r.toDisplayString)(`${Z.value}`),1)]),(0,r.createElementVNode)("div",sw,[(0,r.createVNode)(_,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:T,onChange:m},null,512)])],512),[[r.vShow,(0,r.unref)(M)]]),(0,r.createVNode)(b,{ref_key:"previewFormLayerRef",ref:eA,width:X.width,height:X.height,onOk:N,onClosed:L},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(_,{config:X.formConfig,"is-preview":!0,ref_key:"previewFormRef",ref:I,actions:e.actions},null,8,["config","actions"])]),_:1},8,["width","height"])])}}}),lw=aw,Cl=dt(lw,[wl]),yl=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return vl(A||[],t.components),t},vl=(e,A)=>{e.forEach(t=>{const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&vl(t.children||[],A),A.push(n)})},cw=e=>{const A=uw(e.components);return{pageConfig:e.indexPage,componentList:A}},uw=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{}};n.config&&Object.keys(n.config).forEach(a=>{o.config[a]=n.config[a]}),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const u={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();u[h]||(u[h]=[]),delete d.slot,u[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=u[d._i]||[];return{config:{label:d.label},children:h}}),delete o.config.groups}else o.children=a}}),A.indexPage||[]},dw=(e,A)=>{let t={},n=[];const o={};if(e.ver==="V3"){const a=e;t=a.indexPage;const u={};a.components.forEach(d=>{const h=A[d.type];if(!h)return;u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h.dragType||"component",componentName:h.componentName||"",runtimeType:h.runtimeType,groupId:d.groupId,config:d.config,isInput:!1,containerId:d.containerId,level:d.level};o[g.id]=g,u[d.containerId].push(g),g.dragType==="container"&&(g.children=[])}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.indexPage||[]}return{pageConfig:t,componentList:n,componentDic:o}},fw=(0,r.defineComponent)({name:"DIndexDesignItem",__name:"indexDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)(e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"]))}}),Ql=fw,gw={class:"d-index-design j-block"},hw={class:"d-index-design-left"},Bw={class:"j-component-list"},pw={class:"j-component-tool"},mw={class:"j-component-tool-name"},ww={class:"d-index-design-center"},Cw={class:"design-toolbar"},yw={class:"design-container"},vw={key:0,class:"j-block design-empty"},Qw={class:"d-index-design-right"},Ew={class:"d-index-design-panel-title"},Fw={style:{margin:"0","font-size":"14px"}},Uw={class:"d-index-design-panel"},bw=(0,r.defineComponent)({name:"DIndexDesign",__name:"indexDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,containerAddComponent:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e,{expose:A}){const{t}=(0,me.useAppInject)(),n=e,o=F=>{F.forEach(x=>{x.type==="d-input-flow"&&(x.config=x.config||{},x.config.flowComponents=n.flowComponents,x.config.flowInit=n.flowInit,x.config.flowComponentConfigInit=N=>{n.flowComponentConfigInit&&(N.designComponents=T.value,N.component=y.value,n.flowComponentConfigInit(N))},x.config.flowComponentConfigs=n.flowComponentConfigs,x.config.flowComponentConfigChange=n.flowComponentConfigChange),x.children&&o(x.children)})},a=(0,r.reactive)({name:"页面",id:"indexPage",type:"indexPage",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}});n.componentInit&&(a.config=n.componentInit("indexPage")||{});const u={},d=[];n.components.forEach(({children:F})=>{F.forEach(x=>{u[x.type]=x,x.dragType=x.dragType||"component",d.push({label:x.name,value:x.type})})});const h={};Object.keys(n.componentConfigs).forEach(F=>{const{hasBase:x}=u[F]||{hasBase:!1},N=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],L={type:"j-collapse",config:{defaultValue:[]},children:[]};x!==!1&&(L.children?.push({config:{label:"基础信息"},children:[...N]}),L.config?.defaultValue.push("_collapse0")),L.children?.push(...n.componentConfigs[F]),o(L.children||[]),h[F]=[L]});const g=F=>{y.value&&n.componentConfigChange&&n.componentConfigChange(y.value.type,{configRef:m,configData:y.value.config,...F})},B=(F,x)=>{n.componentConfigInit&&n.componentConfigInit(F,{configRef:m,...x})},w=(0,r.ref)(),m=(0,r.ref)(),{activedComponent:y,clearComponents:Q,schemaComponentDic:U,designComponentList:T}=ml(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),M=(0,r.computed)(()=>y.value?`【${y.value.name}】`:""),R=(0,r.ref)([]),H=n.components.length;for(let F=0;F<H;F++)R.value.push(F);(0,r.provide)("dui-design-provide",{designItemName:Ql});const P=()=>{Q()},iA=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),Q()},Z=()=>(console.log("pValidate"),!0),aA=()=>yl(a.config,a.children||[]),lA=F=>{const x=dw(F,u);a.config=x.pageConfig,a.children?.push(...x.componentList),Object.keys(x.componentDic).forEach(N=>{U[N]=x.componentDic[N]})},rA=(0,r.ref)(),nA=(0,r.ref)();(0,r.ref)(""),(0,r.reactive)({formConfig:{}});let j=0;const S=F=>{if(nA.value)j=0,nA.value.init(F);else{if(j>600){console.warn("组件加载超时");return}j++,setTimeout(()=>{S(F)},100)}},eA=()=>{},I=()=>{},X=()=>{const{componentList:F}=cw(yl(a.config,a.children||[]));rA.value.open("页面预览","full"),(0,r.nextTick)(()=>{S(F)})};return A({reset:iA,validate:Z,getSchema:aA,setSchema:lA}),(F,x)=>{const N=(0,r.resolveComponent)("j-icon"),L=(0,r.resolveComponent)("d-drag-tool"),O=(0,r.resolveComponent)("el-collapse-item"),J=(0,r.resolveComponent)("el-collapse"),tA=(0,r.resolveComponent)("j-button"),dA=(0,r.resolveComponent)("el-tooltip"),UA=(0,r.resolveComponent)("el-divider"),G=(0,r.resolveComponent)("el-empty"),Y=(0,r.resolveComponent)("d-drag-index-list"),$=(0,r.resolveComponent)("d-drag-container"),oA=(0,r.resolveComponent)("j-form"),BA=(0,r.resolveComponent)("j-page"),wA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",gw,[(0,r.createElementVNode)("div",hw,[x[1]||(x[1]=(0,r.createElementVNode)("div",{class:"d-index-design-panel-title"},"组件库",-1)),(0,r.createElementVNode)("div",Bw,[(0,r.createVNode)(J,{modelValue:R.value,"onUpdate:modelValue":x[0]||(x[0]=bA=>R.value=bA)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(bA,uA)=>((0,r.openBlock)(),(0,r.createBlock)(O,{key:uA,title:bA.name,name:uA},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(bA.children,(hA,_)=>((0,r.openBlock)(),(0,r.createBlock)(L,{key:_,config:hA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",pw,[(0,r.createVNode)(N,{class:"j-component-tool-icon",icon:hA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",mw,(0,r.toDisplayString)((0,r.unref)(t)(hA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",ww,[(0,r.createElementVNode)("div",Cw,[x[2]||(x[2]=(0,r.createElementVNode)("div",null,null,-1)),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(dA,{content:(0,r.unref)(t)("清空")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(tA,{danger:"",type:"text",onClick:P,icon:"mdi:delete-outline"})]),_:1},8,["content"]),(0,r.createVNode)(UA,{direction:"vertical"}),(0,r.createVNode)(dA,{content:(0,r.unref)(t)("预览")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(tA,{type:"text",onClick:X,icon:"mdi:play-circle-outline"})]),_:1},8,["content"])])]),(0,r.createElementVNode)("div",yw,[(0,r.createVNode)($,{ref_key:"dragContainer",ref:w,class:"design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",vw,[(0,r.createVNode)(G,{description:(0,r.unref)(t)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(Y,{key:1,"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"]))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Qw,[(0,r.createElementVNode)("div",Ew,[(0,r.createElementVNode)("span",Fw,(0,r.toDisplayString)(`${(0,r.unref)(t)("属性配置")}${M.value}`),1)]),(0,r.createElementVNode)("div",Uw,[(0,r.createVNode)(oA,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:m,onChange:g},null,512)])],512),[[r.vShow,(0,r.unref)(y)&&h[(0,r.unref)(y).type]]]),(0,r.createVNode)(wA,{ref_key:"previewLayerRef",ref:rA,"has-btns":!1,onOk:eA,onClosed:I},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(BA,{ref_key:"previewRef",ref:nA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),Hw=bw,El=dt(Hw,[Ql]),qA=Uu({Vue:()=>r,Vue2:()=>{},del:()=>Sw,install:()=>Iw,isVue2:()=>!1,isVue3:()=>!0,set:()=>_w});bu(qA,require("vue"));var mE=!1,wE=!0,CE=void 0;function Iw(){}function _w(e,A,t){return Array.isArray(e)?(e.length=Math.max(e.length,A),e.splice(A,1,t),t):(e[A]=t,t)}function Sw(e,A){if(Array.isArray(e)){e.splice(A,1);return}delete e[A]}var zr=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},xw=(0,qA.defineComponent)({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(e,{emit:A}){const t=(0,qA.ref)(0),n=(0,qA.ref)(!0);(0,qA.onMounted)(()=>{t.value=e.value});const o=B=>{n.value=B>=0},a=(0,qA.computed)(()=>{const B=(t.value-e.start)*e.scale;o(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),u=(0,qA.computed)(()=>{var B;const w=`1px solid ${(B=e.palette)==null?void 0:B.lineColor}`,m=e.vertical?{borderTop:w}:{borderLeft:w};return{cursor:e.isShowReferLine?e.vertical?"ns-resize":"ew-resize":"none",...m}}),d=(0,qA.computed)(()=>e.vertical?{left:e.thick+"px"}:{top:e.thick+"px"});return{startValue:t,showLine:n,offset:a,borderCursor:u,actionStyle:d,handleDown:B=>{const w=e.vertical?B.clientY:B.clientX,m=t.value;A("onMouseDown");const y=U=>{const T=e.vertical?U.clientY:U.clientX;t.value=Math.round(m+(T-w)/e.scale)},Q=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",Q)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",Q)},handleRemove:()=>{A("onRemove",e.index)}}}}),Dw={class:"value"};function Nw(e,A,t,n,o,a){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"line",style:(0,r.normalizeStyle)([e.offset,e.borderCursor]),onMousedown:A[1]||(A[1]=(...u)=>e.handleDown&&e.handleDown(...u))},[(0,r.createElementVNode)("div",{class:"action",style:(0,r.normalizeStyle)(e.actionStyle)},[(0,r.createElementVNode)("span",{class:"del",onClick:A[0]||(A[0]=(...u)=>e.handleRemove&&e.handleRemove(...u))},"×"),(0,r.createElementVNode)("span",Dw,(0,r.toDisplayString)(e.startValue),1)],4)],36)),[[r.vShow,e.showLine]])}var Lw=zr(xw,[["render",Nw],["__scopeId","data-v-074b3d94"]]),kw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,Fl=.83,Tw=(e,A,t,n,o,a)=>{const{scale:u,width:d,height:h,ratio:g,palette:B}=o,{bgColor:w,fontColor:m,shadowColor:y,longfgColor:Q,shortfgColor:U}=B;if(e.scale(g,g),e.clearRect(0,0,d,h),e.fillStyle=w,e.fillRect(0,0,d,h),n){const rA=(t-A)*u,nA=n*u;e.fillStyle=y,a?e.fillRect(rA,0,nA,h*3/8):e.fillRect(0,rA,d*3/8,nA)}const T=kw(u),M=T*u,R=T*10,H=R*u,P=Math.floor(A/T)*T,iA=Math.floor(A/R)*R,Z=(P-A)/T*M,aA=(iA-A)/R*H,lA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=Q;for(let rA=iA,nA=0;rA<lA;rA+=R,nA++){const j=aA+nA*H+.5;a?e.moveTo(j,0):e.moveTo(0,j),e.save(),a?e.translate(j,h*.4):e.translate(d*.4,j),a||e.rotate(-Math.PI/2),e.scale(Fl/g,Fl/g),e.fillText(rA.toString(),4*g,7*g),e.restore(),a?e.lineTo(j,h*9/16):e.lineTo(d*9/16,j)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=U;for(let rA=P,nA=0;rA<lA;rA+=T,nA++){const j=Z+nA*M+.5;a?e.moveTo(j,0):e.moveTo(0,j),rA%R!==0&&(a?e.lineTo(j,h*1/4):e.lineTo(d*1/4,j))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},Mw=(0,qA.defineComponent)({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(e,{emit:A}){const t=(0,qA.reactive)({canvasContext:null});let n=1;const o=(0,qA.ref)(null);(0,qA.onMounted)(()=>{n=e.ratio||window.devicePixelRatio||1,a(),u(n),d(n)});const a=()=>{t.canvasContext=o.value&&o.value.getContext("2d")},u=g=>{if(o.value){o.value.width=e.width*g,o.value.height=e.height*g;const B=t.canvasContext;B&&(B.font=`${12*g}px -apple-system,
|
|
29
29
|
"Helvetica Neue", ".SFNSText-Regular",
|
|
30
30
|
"SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB",
|
|
31
|
-
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,B.lineWidth=1,B.textBaseline="middle")}},d=g=>{const B={scale:e.scale,width:e.width,height:e.height,palette:e.palette,ratio:g};t.canvasContext&&Ow(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,qA.watch)(()=>e.start,()=>d(n)),(0,qA.watch)([()=>e.width,()=>e.height],()=>{u(n),d(n)}),{handle:(g,B)=>{const m=((y,Q,U)=>Math.round(Q+y/U))(e.vertical?g.offsetY:g.offsetX,e.start,e.scale);switch(B){case"click":A("onAddLine",m);break;case"enter":A("update:valueNum",m),A("update:showIndicator",!0);break;default:A("update:valueNum",m);break}},canvas:o}}});function Rw(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("canvas",{ref:"canvas",class:"ruler",onClick:A[0]||(A[0]=u=>e.handle(u,"click")),onMouseenter:A[1]||(A[1]=u=>e.handle(u,"enter")),onMousemove:A[2]||(A[2]=u=>e.handle(u,"move")),onMouseleave:A[3]||(A[3]=u=>e.$emit("update:showIndicator",!1))},null,544)}var Vw=(0,qA.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:zr(Kw,[["render",Rw]]),RulerLine:Tw},props:{scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},setup(e){const A=(0,qA.ref)(!1),t=(0,qA.ref)(0),n=(0,qA.computed)(()=>e.vertical?"v-container":"h-container"),o=(0,qA.computed)(()=>{const g={width:`calc(100% - ${e.thick}px)`,height:`${e.thick+1}px`,left:`${e.thick}px`},B={width:`${e.thick&&e.thick+1}px`,height:`calc(100% - ${e.thick}px)`,top:`${e.thick}px`};return e.vertical?B:g}),a=(0,qA.computed)(()=>{var g;const B=(t.value-e.start)*e.scale;let w="top",m="borderLeft";return w=e.vertical?"top":"left",m=e.vertical?"borderBottom":"borderLeft",{[w]:B+"px",[m]:`1px solid ${(g=e.palette)==null?void 0:g.lineColor}`}}),u=g=>{e.lines.push(g)},d=(g,B)=>{const w=g-e.start,m=(e.vertical?e.height:e.width)/e.scale;w<0||w>m?h(B):e.lines[B]=g},h=g=>{e.lines.splice(g,1)};return{showIndicator:A,valueNum:t,rwClassName:n,rwStyle:o,indicatorStyle:a,handleNewLine:u,handleLineRelease:d,handleLineRemove:h}}}),Pw={class:"lines"},Gw={class:"value"};function zw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("CanvasRuler"),d=(0,r.resolveComponent)("RulerLine");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.rwClassName),style:(0,r.normalizeStyle)(e.rwStyle)},[(0,r.createVNode)(u,{vertical:e.vertical,scale:e.scale,width:e.width,height:e.height,start:e.start,ratio:e.ratio,"select-start":e.selectStart,"select-length":e.selectLength,palette:e.palette,valueNum:e.valueNum,"onUpdate:valueNum":A[0]||(A[0]=h=>e.valueNum=h),showIndicator:e.showIndicator,"onUpdate:showIndicator":A[1]||(A[1]=h=>e.showIndicator=h),onOnAddLine:e.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),(0,r.withDirectives)((0,r.createElementVNode)("div",Pw,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.lines,(h,g)=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:h+g,index:g,value:h>>0,scale:e.scale,start:e.start,thick:e.thick,palette:e.palette,vertical:e.vertical,"is-show-refer-line":e.isShowReferLine,onOnRemove:e.handleLineRemove,onOnRelease:e.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[r.vShow,e.isShowReferLine]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"indicator",style:(0,r.normalizeStyle)(e.indicatorStyle)},[(0,r.createElementVNode)("div",Gw,(0,r.toDisplayString)(e.valueNum),1)],4),[[r.vShow,e.showIndicator]])],6)}var Xw=zr(Vw,[["render",zw],["__scopeId","data-v-5cc064d4"]]),$w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKP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ss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",Yw=(0,qA.defineComponent)({name:"SketchRule",components:{RulerWrapper:Xw},props:{eyeIcon:{type:String},closeEyeIcon:{type:String},scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},isShowReferLine:{type:Boolean,default:!0}},emits:["onCornerClick","handleLine"],setup(e,{emit:A}){let t=(0,qA.ref)(!0);t.value=e.isShowReferLine;const n=(0,qA.computed)(()=>{function u(d,h){return Object.keys(d).forEach(g=>{g&&d.hasOwnProperty(g)&&(typeof h.key=="object"?d[g]=u(d[g],h[g]):h.hasOwnProperty(g)&&(d[g]=h[g]))}),d}return u({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},e.palette||{})}),o=(0,qA.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||$w})`:`url(${e.closeEyeIcon||Ww})`,width:e.thick+"px",height:e.thick+"px",borderRight:`1px solid ${n.value.borderColor}`,borderBottom:`1px solid ${n.value.borderColor}`})),a=u=>{t.value=!t.value,A("handleCornerClick",t.value)};return(0,qA.watch)([()=>e.isShowReferLine],()=>{t.value=e.isShowReferLine}),{showReferLine:t,paletteCpu:n,cornerStyle:o,onCornerClick:a}}}),Jw={id:"mb-ruler",class:"style-ruler mb-ruler"};function Zw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("RulerWrapper");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Jw,[(0,r.createVNode)(u,{vertical:!1,width:e.width,height:e.thick,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startX,lines:e.lines.h,"select-start":e.shadow.x,"select-length":e.shadow.width,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createVNode)(u,{vertical:!0,width:e.thick,height:e.height,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startY,lines:e.lines.v,"select-start":e.shadow.y,"select-length":e.shadow.height,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createElementVNode)("a",{class:"corner",style:(0,r.normalizeStyle)(e.cornerStyle),onClick:A[0]||(A[0]=(...d)=>e.onCornerClick&&e.onCornerClick(...d))},null,4)])}var jw=zr(Yw,[["render",Zw]]),qw=Fu(((e,A)=>{(function(t,n){typeof e=="object"&&typeof A<"u"?A.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.html2canvas=n())})(e,(function(){"use strict";var t=function(s,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c[f]=l[f])},t(s,i)};function n(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(s,i);function c(){this.constructor=s}s.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}var o=function(){return o=Object.assign||function(i){for(var c,l=1,f=arguments.length;l<f;l++){c=arguments[l];for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(i[p]=c[p])}return i},o.apply(this,arguments)};function a(s,i,c,l){function f(p){return p instanceof c?p:new c(function(C){C(p)})}return new(c||(c=Promise))(function(p,C){function v(K){try{k(l.next(K))}catch(z){C(z)}}function E(K){try{k(l.throw(K))}catch(z){C(z)}}function k(K){K.done?p(K.value):f(K.value).then(v,E)}k((l=l.apply(s,i||[])).next())})}function u(s,i){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,f,p,C;return C={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function v(k){return function(K){return E([k,K])}}function E(k){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=k[0]&2?f.return:k[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,k[1])).done)return p;switch(f=0,p&&(k=[k[0]&2,p.value]),k[0]){case 0:case 1:p=k;break;case 4:return c.label++,{value:k[1],done:!1};case 5:c.label++,f=k[1],k=[0];continue;case 7:k=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(k[0]===6||k[0]===2)){c=0;continue}if(k[0]===3&&(!p||k[1]>p[0]&&k[1]<p[3])){c.label=k[1];break}if(k[0]===6&&c.label<p[1]){c.label=p[1],p=k;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(k);break}p[2]&&c.ops.pop(),c.trys.pop();continue}k=i.call(s,c)}catch(K){k=[6,K],f=0}finally{l=p=0}if(k[0]&5)throw k[1];return{value:k[0]?k[1]:void 0,done:!0}}}function d(s,i,c){if(c||arguments.length===2)for(var l=0,f=i.length,p;l<f;l++)(p||!(l in i))&&(p||(p=Array.prototype.slice.call(i,0,l)),p[l]=i[l]);return s.concat(p||i)}for(var h=(function(){function s(i,c,l,f){this.left=i,this.top=c,this.width=l,this.height=f}return s.prototype.add=function(i,c,l,f){return new s(this.left+i,this.top+c,this.width+l,this.height+f)},s.fromClientRect=function(i,c){return new s(c.left+i.windowBounds.left,c.top+i.windowBounds.top,c.width,c.height)},s.fromDOMRectList=function(i,c){var l=Array.from(c).find(function(f){return f.width!==0});return l?new s(l.left+i.windowBounds.left,l.top+i.windowBounds.top,l.width,l.height):s.EMPTY},s.EMPTY=new s(0,0,0,0),s})(),g=function(s,i){return h.fromClientRect(s,i.getBoundingClientRect())},B=function(s){var i=s.body,c=s.documentElement;if(!i||!c)throw new Error("Unable to get document size");return new h(0,0,Math.max(Math.max(i.scrollWidth,c.scrollWidth),Math.max(i.offsetWidth,c.offsetWidth),Math.max(i.clientWidth,c.clientWidth)),Math.max(Math.max(i.scrollHeight,c.scrollHeight),Math.max(i.offsetHeight,c.offsetHeight),Math.max(i.clientHeight,c.clientHeight)))},w=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},m=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array>"u"?[]:new Uint8Array(256),U=0;U<y.length;U++)Q[y.charCodeAt(U)]=U;for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=typeof Uint8Array>"u"?[]:new Uint8Array(256),R=0;R<T.length;R++)M[T.charCodeAt(R)]=R;for(var H=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,v,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var k=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),K=Array.isArray(k)?k:new Uint8Array(k);for(l=0;l<c;l+=4)p=M[s.charCodeAt(l)],C=M[s.charCodeAt(l+1)],v=M[s.charCodeAt(l+2)],E=M[s.charCodeAt(l+3)],K[f++]=p<<2|C>>4,K[f++]=(C&15)<<4|v>>2,K[f++]=(v&3)<<6|E&63;return k},P=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},iA=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},Z=5,aA=11,lA=2,rA=aA-Z,nA=65536>>Z,j=(1<<Z)-1,S=nA+(1024>>Z)+32,eA=65536>>aA,I=(1<<rA)-1,X=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},F=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},x=function(s,i){var c=H(s),l=Array.isArray(c)?iA(c):new Uint32Array(c),f=Array.isArray(c)?P(c):new Uint16Array(c),p=24,C=X(f,p/2,l[4]/2),v=l[5]===2?X(f,(p+l[4])/2):F(l,Math.ceil((p+l[4])/4));return new N(l[0],l[1],l[2],l[3],C,v)},N=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>Z],c=(c<<lA)+(i&j),this.data[c];if(i<=65535)return c=this.index[nA+(i-55296>>Z)],c=(c<<lA)+(i&j),this.data[c];if(i<this.highStart)return c=S-eA+(i>>aA),c=this.index[c],c+=i>>Z&I,c=this.index[c],c=(c<<lA)+(i&j),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array>"u"?[]:new Uint8Array(256),J=0;J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tIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcs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CGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB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B1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMA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AAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgA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WABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwB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gAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHg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QABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJ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eAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",dA=50,UA=1,G=2,Y=3,$=4,oA=5,BA=7,wA=8,bA=9,uA=10,hA=11,_=12,b=13,D=14,W=15,V=16,pA=17,gA=18,HA=19,FA=20,SA=21,OA=22,XA=23,ae=24,re=25,nt=26,Tt=27,rt=28,On=29,mt=30,sA=31,cA=32,xA=33,TA=34,ot=35,Kn=36,it=37,Rn=38,tn=39,nn=40,GA=41,ze=42,wt=43,I0=[9001,65288],_l="!",RA="×",Xr="÷",vi=x(tA),st=[mt,Kn],Qi=[UA,G,Y,oA],Sl=[uA,wA],xl=[Tt,nt],_0=Qi.concat(Sl),Dl=[Rn,tn,nn,TA,ot],S0=[W,b],x0=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var v=vi.get(p);if(v>dA?(f.push(!0),v-=dA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(V);if(v===$||v===hA){if(C===0)return l.push(C),c.push(mt);var E=c[C-1];return _0.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(mt))}if(l.push(C),v===sA)return c.push(i==="strict"?SA:it);if(v===ze||v===On)return c.push(mt);if(v===wt)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(it):c.push(mt);c.push(v)}),[l,c,f]},Ei=function(s,i,c,l){var f=l[c];if(Array.isArray(s)?s.indexOf(f)!==-1:s===f)for(var p=c;p<=l.length;){p++;var C=l[p];if(C===i)return!0;if(C!==uA)break}if(f===uA)for(var p=c;p>0;){p--;var v=l[p];if(Array.isArray(s)?s.indexOf(v)!==-1:s===v)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==uA)break}if(v!==uA)break}return!1},Nl=function(s,i){for(var c=s;c>=0;){var l=i[c];if(l===uA)c--;else return l}return 0},D0=function(s,i,c,l,f){if(c[l]===0)return RA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return RA;var C=p-1,v=p+1,E=i[p],k=C>=0?i[C]:0,K=i[v];if(E===G&&K===Y)return RA;if(Qi.indexOf(E)!==-1)return _l;if(Qi.indexOf(K)!==-1||Sl.indexOf(K)!==-1)return RA;if(Nl(p,i)===wA)return Xr;if(vi.get(s[p])===hA||(E===cA||E===xA)&&vi.get(s[v])===hA||E===BA||K===BA||E===bA||[uA,b,W].indexOf(E)===-1&&K===bA||[pA,gA,HA,ae,rt].indexOf(K)!==-1||Nl(p,i)===OA||Ei(XA,OA,p,i)||Ei([pA,gA],SA,p,i)||Ei(_,_,p,i))return RA;if(E===uA)return Xr;if(E===XA||K===XA)return RA;if(K===V||E===V)return Xr;if([b,W,SA].indexOf(K)!==-1||E===D||k===Kn&&S0.indexOf(E)!==-1||E===rt&&K===Kn||K===FA||st.indexOf(K)!==-1&&E===re||st.indexOf(E)!==-1&&K===re||E===Tt&&[it,cA,xA].indexOf(K)!==-1||[it,cA,xA].indexOf(E)!==-1&&K===nt||st.indexOf(E)!==-1&&xl.indexOf(K)!==-1||xl.indexOf(E)!==-1&&st.indexOf(K)!==-1||[Tt,nt].indexOf(E)!==-1&&(K===re||[OA,W].indexOf(K)!==-1&&i[v+1]===re)||[OA,W].indexOf(E)!==-1&&K===re||E===re&&[re,rt,ae].indexOf(K)!==-1)return RA;if([re,rt,ae,pA,gA].indexOf(K)!==-1)for(var z=p;z>=0;){var q=i[z];if(q===re)return RA;if([rt,ae].indexOf(q)!==-1)z--;else break}if([Tt,nt].indexOf(K)!==-1)for(var z=[pA,gA].indexOf(E)!==-1?C:p;z>=0;){var q=i[z];if(q===re)return RA;if([rt,ae].indexOf(q)!==-1)z--;else break}if(Rn===E&&[Rn,tn,TA,ot].indexOf(K)!==-1||[tn,TA].indexOf(E)!==-1&&[tn,nn].indexOf(K)!==-1||[nn,ot].indexOf(E)!==-1&&K===nn||Dl.indexOf(E)!==-1&&[FA,nt].indexOf(K)!==-1||Dl.indexOf(K)!==-1&&E===Tt||st.indexOf(E)!==-1&&st.indexOf(K)!==-1||E===ae&&st.indexOf(K)!==-1||st.concat(re).indexOf(E)!==-1&&K===OA&&I0.indexOf(s[v])===-1||st.concat(re).indexOf(K)!==-1&&E===gA)return RA;if(E===GA&&K===GA){for(var CA=c[p],fA=1;CA>0&&(CA--,i[CA]===GA);)fA++;if(fA%2!==0)return RA}return E===cA&&K===xA?RA:Xr},N0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=x0(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(v){return[re,mt,ze].indexOf(v)!==-1?it:v}));var C=i.wordBreak==="keep-all"?p.map(function(v,E){return v&&s[E]>=19968&&s[E]<=40959}):void 0;return[l,f,C]},L0=(function(){function s(i,c,l,f){this.codePoints=i,this.required=c===_l,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),k0=function(s,i){var c=w(s),l=N0(c,i),f=l[0],p=l[1],C=l[2],v=c.length,E=0,k=0;return{next:function(){if(k>=v)return{done:!0,value:null};for(var K=RA;k<v&&(K=D0(c,p,f,++k,C))===RA;);if(K!==RA||k===v){var z=new L0(c,K,E,k);return E=k,{value:z,done:!1}}return{done:!0,value:null}}}},T0=1,M0=2,Vn=4,Ll=8,$r=10,kl=47,Pn=92,O0=9,K0=32,Wr=34,Gn=61,R0=35,V0=36,P0=37,Yr=39,Jr=40,zn=41,G0=95,ve=45,z0=33,X0=60,$0=62,W0=64,Y0=91,J0=93,Z0=61,j0=123,Zr=63,q0=125,Tl=124,AC=126,eC=128,Ml=65533,Fi=42,Mt=43,tC=44,nC=58,rC=59,Xn=46,oC=0,iC=8,sC=11,aC=14,lC=31,cC=127,Xe=-1,Ol=48,Kl=97,Rl=101,uC=102,dC=117,fC=122,Vl=65,Pl=69,Gl=70,gC=85,hC=90,pe=function(s){return s>=Ol&&s<=57},BC=function(s){return s>=55296&&s<=57343},rn=function(s){return pe(s)||s>=Vl&&s<=Gl||s>=Kl&&s<=uC},pC=function(s){return s>=Kl&&s<=fC},mC=function(s){return s>=Vl&&s<=hC},wC=function(s){return pC(s)||mC(s)},CC=function(s){return s>=eC},jr=function(s){return s===$r||s===O0||s===K0},qr=function(s){return wC(s)||CC(s)||s===G0},zl=function(s){return qr(s)||pe(s)||s===ve},yC=function(s){return s>=oC&&s<=iC||s===sC||s>=aC&&s<=lC||s===cC},Ct=function(s,i){return s!==Pn?!1:i!==$r},Ao=function(s,i,c){return s===ve?qr(i)||Ct(i,c):qr(s)?!0:!!(s===Pn&&Ct(s,i))},Ui=function(s,i,c){return s===Mt||s===ve?pe(i)?!0:i===Xn&&pe(c):pe(s===Xn?i:s)},vC=function(s){var i=0,c=1;(s[i]===Mt||s[i]===ve)&&(s[i]===ve&&(c=-1),i++);for(var l=[];pe(s[i]);)l.push(s[i++]);var f=l.length?parseInt(m.apply(void 0,l),10):0;s[i]===Xn&&i++;for(var p=[];pe(s[i]);)p.push(s[i++]);var C=p.length,v=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Pl||s[i]===Rl)&&i++;var E=1;(s[i]===Mt||s[i]===ve)&&(s[i]===ve&&(E=-1),i++);for(var k=[];pe(s[i]);)k.push(s[i++]);var K=k.length?parseInt(m.apply(void 0,k),10):0;return c*(f+v*Math.pow(10,-C))*Math.pow(10,E*K)},QC={type:2},EC={type:3},FC={type:4},UC={type:13},bC={type:8},HC={type:21},IC={type:9},_C={type:10},SC={type:11},xC={type:12},DC={type:14},eo={type:23},NC={type:1},LC={type:25},kC={type:24},TC={type:26},MC={type:27},OC={type:28},KC={type:29},RC={type:31},bi={type:32},Xl=(function(){function s(){this._value=[]}return s.prototype.write=function(i){this._value=this._value.concat(w(i))},s.prototype.read=function(){for(var i=[],c=this.consumeToken();c!==bi;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case Wr:return this.consumeStringToken(Wr);case R0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(zl(c)||Ct(l,f)){var p=Ao(c,l,f)?M0:T0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case V0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),UC;break;case Yr:return this.consumeStringToken(Yr);case Jr:return QC;case zn:return EC;case Fi:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),DC;break;case Mt:if(Ui(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case tC:return FC;case ve:var v=i,E=this.peekCodePoint(0),k=this.peekCodePoint(1);if(Ui(v,E,k))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(Ao(v,E,k))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===ve&&k===$0)return this.consumeCodePoint(),this.consumeCodePoint(),kC;break;case Xn:if(Ui(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case kl:if(this.peekCodePoint(0)===Fi)for(this.consumeCodePoint();;){var K=this.consumeCodePoint();if(K===Fi&&(K=this.consumeCodePoint(),K===kl))return this.consumeToken();if(K===Xe)return this.consumeToken()}break;case nC:return TC;case rC:return MC;case X0:if(this.peekCodePoint(0)===z0&&this.peekCodePoint(1)===ve&&this.peekCodePoint(2)===ve)return this.consumeCodePoint(),this.consumeCodePoint(),LC;break;case W0:if(Ao(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case Y0:return OC;case Pn:if(Ct(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case J0:return KC;case Z0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),bC;break;case j0:return SC;case q0:return xC;case dC:case gC:var z=this.peekCodePoint(0),q=this.peekCodePoint(1);return z===Mt&&(rn(q)||q===Zr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Tl:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),IC;if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),HC;break;case AC:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),_C;break;case Xe:return bi}return jr(i)?(this.consumeWhiteSpace(),RC):pe(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):qr(i)?(this.reconsumeCodePoint(i),this.consumeIdentLikeToken()):{type:6,value:m(i)}},s.prototype.consumeCodePoint=function(){var i=this._value.shift();return typeof i>"u"?-1:i},s.prototype.reconsumeCodePoint=function(i){this._value.unshift(i)},s.prototype.peekCodePoint=function(i){return i>=this._value.length?-1:this._value[i]},s.prototype.consumeUnicodeRangeToken=function(){for(var i=[],c=this.consumeCodePoint();rn(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===Zr&&i.length<6;)i.push(c),c=this.consumeCodePoint(),l=!0;if(l){var f=parseInt(m.apply(void 0,i.map(function(E){return E===Zr?Ol:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===Zr?Gl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===ve&&rn(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var v=[];rn(c)&&v.length<6;)v.push(c),c=this.consumeCodePoint();var p=parseInt(m.apply(void 0,v),16);return{type:30,start:C,end:p}}else return{type:30,start:C,end:C}},s.prototype.consumeIdentLikeToken=function(){var i=this.consumeName();return i.toLowerCase()==="url"&&this.peekCodePoint(0)===Jr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Jr?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe)return{type:22,value:""};var c=this.peekCodePoint(0);if(c===Yr||c===Wr){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe||this.peekCodePoint(0)===zn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),eo)}for(;;){var f=this.consumeCodePoint();if(f===Xe||f===zn)return{type:22,value:m.apply(void 0,i)};if(jr(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe||this.peekCodePoint(0)===zn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),eo);if(f===Wr||f===Yr||f===Jr||yC(f))return this.consumeBadUrlRemnants(),eo;if(f===Pn)if(Ct(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),eo;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;jr(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===zn||i===Xe)return;Ct(i,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},s.prototype.consumeStringSlice=function(i){for(var c=5e4,l="";i>0;){var f=Math.min(c,i);l+=m.apply(void 0,this._value.splice(0,f)),i-=f}return this._value.shift(),l},s.prototype.consumeStringToken=function(i){var c="",l=0;do{var f=this._value[l];if(f===Xe||f===void 0||f===i)return c+=this.consumeStringSlice(l),{type:0,value:c};if(f===$r)return this._value.splice(0,l),NC;if(f===Pn){var p=this._value[l+1];p!==Xe&&p!==void 0&&(p===$r?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):Ct(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=Vn,l=this.peekCodePoint(0);for((l===Mt||l===ve)&&i.push(this.consumeCodePoint());pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===Xn&&pe(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ll;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Pl||l===Rl)&&((f===Mt||f===ve)&&pe(p)||pe(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ll;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[vC(i),c]},s.prototype.consumeNumericToken=function(){var i=this.consumeNumber(),c=i[0],l=i[1],f=this.peekCodePoint(0);return Ao(f,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:c,flags:l,unit:this.consumeName()}:f===P0?(this.consumeCodePoint(),{type:16,number:c,flags:l}):{type:17,number:c,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(rn(i)){for(var c=m(i);rn(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());jr(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||BC(l)||l>1114111?Ml:l}return i===Xe?Ml:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(zl(c))i+=m(c);else if(Ct(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),$l=(function(){function s(i){this._tokens=i}return s.create=function(i){var c=new Xl;return c.write(i),new s(c.read())},s.parseValue=function(i){return s.create(i).parseComponentValue()},s.parseValues=function(i){return s.create(i).parseComponentValues()},s.prototype.parseComponentValue=function(){for(var i=this.consumeToken();i.type===31;)i=this.consumeToken();if(i.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(i);var c=this.consumeComponentValue();do i=this.consumeToken();while(i.type===31);if(i.type===32)return c;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},s.prototype.parseComponentValues=function(){for(var i=[];;){var c=this.consumeComponentValue();if(c.type===32)return i;i.push(c),i.push()}},s.prototype.consumeComponentValue=function(){var i=this.consumeToken();switch(i.type){case 11:case 28:case 2:return this.consumeSimpleBlock(i.type);case 19:return this.consumeFunction(i)}return i},s.prototype.consumeSimpleBlock=function(i){for(var c={type:i,values:[]},l=this.consumeToken();;){if(l.type===32||PC(l,i))return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue()),l=this.consumeToken()}},s.prototype.consumeFunction=function(i){for(var c={name:i.value,values:[],type:18};;){var l=this.consumeToken();if(l.type===32||l.type===3)return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue())}},s.prototype.consumeToken=function(){var i=this._tokens.shift();return typeof i>"u"?bi:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),$n=function(s){return s.type===15},on=function(s){return s.type===17},JA=function(s){return s.type===20},VC=function(s){return s.type===0},Hi=function(s,i){return JA(s)&&s.value===i},Wl=function(s){return s.type!==31},sn=function(s){return s.type!==31&&s.type!==4},$e=function(s){var i=[],c=[];return s.forEach(function(l){if(l.type===4){if(c.length===0)throw new Error("Error parsing function args, zero tokens for arg");i.push(c),c=[];return}l.type!==31&&c.push(l)}),c.length&&i.push(c),i},PC=function(s,i){return i===11&&s.type===12||i===28&&s.type===29?!0:i===2&&s.type===3},yt=function(s){return s.type===17||s.type===15},le=function(s){return s.type===16||yt(s)},Yl=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},ge={type:17,number:0,flags:Vn},Ii={type:16,number:50,flags:Vn},vt={type:16,number:100,flags:Vn},Wn=function(s,i,c){var l=s[0],f=s[1];return[jA(l,i),jA(typeof f<"u"?f:l,c)]},jA=function(s,i){if(s.type===16)return s.number/100*i;if($n(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},Jl="deg",Zl="grad",jl="rad",ql="turn",to={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case Jl:return Math.PI*i.number/180;case Zl:return Math.PI/200*i.number;case jl:return i.number;case ql:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},Ac=function(s){return s.type===15&&(s.unit===Jl||s.unit===Zl||s.unit===jl||s.unit===ql)},ec=function(s){switch(s.filter(JA).map(function(i){return i.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ge,ge];case"to top":case"bottom":return _e(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ge,vt];case"to right":case"left":return _e(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[vt,vt];case"to bottom":case"top":return _e(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[vt,ge];case"to left":case"right":return _e(270)}return 0},_e=function(s){return Math.PI*s/180},Qt={name:"color",parse:function(s,i){if(i.type===18){var c=GC[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported color function "'+i.name+'"');return c(s,i.values)}if(i.type===5){if(i.value.length===3){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3);return Ft(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),1)}if(i.value.length===4){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3),C=i.value.substring(3,4);return Ft(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),parseInt(C+C,16)/255)}if(i.value.length===6){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6);return Ft(parseInt(l,16),parseInt(f,16),parseInt(p,16),1)}if(i.value.length===8){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6),C=i.value.substring(6,8);return Ft(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var v=at[i.value.toUpperCase()];if(typeof v<"u")return v}return at.TRANSPARENT}},Et=function(s){return(255&s)===0},fe=function(s){var i=255&s,c=255&s>>8,l=255&s>>16,f=255&s>>24;return i<255?"rgba("+f+","+l+","+c+","+i/255+")":"rgb("+f+","+l+","+c+")"},Ft=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},tc=function(s,i){if(s.type===17)return s.number;if(s.type===16){var c=i===3?1:255;return i===3?s.number/100*c:Math.round(s.number/100*c)}return 0},nc=function(s,i){var c=i.filter(sn);if(c.length===3){var l=c.map(tc),f=l[0],p=l[1],C=l[2];return Ft(f,p,C,1)}if(c.length===4){var v=c.map(tc),f=v[0],p=v[1],C=v[2],E=v[3];return Ft(f,p,C,E)}return 0};function _i(s,i,c){return c<0&&(c+=1),c>=1&&(c-=1),c<1/6?(i-s)*c*6+s:c<1/2?i:c<2/3?(i-s)*6*(2/3-c)+s:s}var rc=function(s,i){var c=i.filter(sn),l=c[0],f=c[1],p=c[2],C=c[3],v=(l.type===17?_e(l.number):to.parse(s,l))/(Math.PI*2),E=le(f)?f.number/100:0,k=le(p)?p.number/100:0,K=typeof C<"u"&&le(C)?jA(C,1):1;if(E===0)return Ft(k*255,k*255,k*255,1);var z=k<=.5?k*(E+1):k+E-k*E,q=k*2-z,CA=_i(q,z,v+1/3),fA=_i(q,z,v),mA=_i(q,z,v-1/3);return Ft(CA*255,fA*255,mA*255,K)},GC={hsl:rc,hsla:rc,rgb:nc,rgba:nc},Yn=function(s,i){return Qt.parse(s,$l.create(i).parseComponentValue())},at={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},zC={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(JA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},XC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},no=function(s,i){var c=Qt.parse(s,i[0]),l=i[1];return l&&le(l)?{color:c,stop:l}:{color:c,stop:null}},oc=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=ge),l.stop===null&&(l.stop=vt);for(var f=[],p=0,C=0;C<s.length;C++){var v=s[C].stop;if(v!==null){var E=jA(v,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var k=null,C=0;C<f.length;C++){var K=f[C];if(K===null)k===null&&(k=C);else if(k!==null){for(var z=C-k,q=(K-f[k-1])/(z+1),CA=1;CA<=z;CA++)f[k+CA-1]=q*CA;k=null}}return s.map(function(fA,mA){return{color:fA.color,stop:Math.max(Math.min(1,f[mA]/i),0)}})},$C=function(s,i,c){var l=i/2,f=c/2,p=jA(s[0],i)-l,C=f-jA(s[1],c);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},WC=function(s,i,c){var l=typeof s=="number"?s:$C(s,i,c),f=Math.abs(i*Math.sin(l))+Math.abs(c*Math.cos(l)),p=i/2,C=c/2,v=f/2,E=Math.sin(l-Math.PI/2)*v,k=Math.cos(l-Math.PI/2)*v;return[f,p-k,p+k,C-E,C+E]},Oe=function(s,i){return Math.sqrt(s*s+i*i)},ic=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var v=C[0],E=C[1],k=Oe(c-v,l-E);return(f?k<p.optimumDistance:k>p.optimumDistance)?{optimumCorner:C,optimumDistance:k}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},YC=function(s,i,c,l,f){var p=0,C=0;switch(s.size){case 0:s.shape===0?p=C=Math.min(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.min(Math.abs(i),Math.abs(i-l)),C=Math.min(Math.abs(c),Math.abs(c-f)));break;case 2:if(s.shape===0)p=C=Math.min(Oe(i,c),Oe(i,c-f),Oe(i-l,c),Oe(i-l,c-f));else if(s.shape===1){var v=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=ic(l,f,i,c,!0),k=E[0],K=E[1];p=Oe(k-i,(K-c)/v),C=v*p}break;case 1:s.shape===0?p=C=Math.max(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.max(Math.abs(i),Math.abs(i-l)),C=Math.max(Math.abs(c),Math.abs(c-f)));break;case 3:if(s.shape===0)p=C=Math.max(Oe(i,c),Oe(i,c-f),Oe(i-l,c),Oe(i-l,c-f));else if(s.shape===1){var v=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),z=ic(l,f,i,c,!1),k=z[0],K=z[1];p=Oe(k-i,(K-c)/v),C=v*p}break}return Array.isArray(s.size)&&(p=jA(s.size[0],l),C=s.size.length===2?jA(s.size[1],f):p),[p,C]},JC=function(s,i){var c=_e(180),l=[];return $e(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=ec(f);return}else if(Ac(C)){c=to.parse(s,C);return}}var v=no(s,f);l.push(v)}),{angle:c,stops:l,type:1}},ro=function(s,i){var c=_e(180),l=[];return $e(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&["top","left","right","bottom"].indexOf(C.value)!==-1){c=ec(f);return}else if(Ac(C)){c=(to.parse(s,C)+_e(270))%_e(360);return}}var v=no(s,f);l.push(v)}),{angle:c,stops:l,type:1}},ZC=function(s,i){var c=_e(180),l=[],f=1,p=0,C=3,v=[];return $e(i).forEach(function(E,k){var K=E[0];if(k===0){if(JA(K)&&K.value==="linear"){f=1;return}else if(JA(K)&&K.value==="radial"){f=2;return}}if(K.type===18){if(K.name==="from"){var z=Qt.parse(s,K.values[0]);l.push({stop:ge,color:z})}else if(K.name==="to"){var z=Qt.parse(s,K.values[0]);l.push({stop:vt,color:z})}else if(K.name==="color-stop"){var q=K.values.filter(sn);if(q.length===2){var z=Qt.parse(s,q[1]),CA=q[0];on(CA)&&l.push({stop:{type:16,number:CA.number*100,flags:CA.flags},color:z})}}}}),f===1?{angle:(c+_e(180))%_e(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:v,type:f}},sc="closest-side",ac="farthest-side",lc="closest-corner",cc="farthest-corner",uc="circle",dc="ellipse",fc="cover",gc="contain",jC=function(s,i){var c=0,l=3,f=[],p=[];return $e(i).forEach(function(C,v){var E=!0;if(v===0){var k=!1;E=C.reduce(function(z,q){if(k)if(JA(q))switch(q.value){case"center":return p.push(Ii),z;case"top":case"left":return p.push(ge),z;case"right":case"bottom":return p.push(vt),z}else(le(q)||yt(q))&&p.push(q);else if(JA(q))switch(q.value){case uc:return c=0,!1;case dc:return c=1,!1;case"at":return k=!0,!1;case sc:return l=0,!1;case fc:case ac:return l=1,!1;case gc:case lc:return l=2,!1;case cc:return l=3,!1}else if(yt(q)||le(q))return Array.isArray(l)||(l=[]),l.push(q),!1;return z},E)}if(E){var K=no(s,C);f.push(K)}}),{size:l,shape:c,stops:f,position:p,type:2}},oo=function(s,i){var c=0,l=3,f=[],p=[];return $e(i).forEach(function(C,v){var E=!0;if(v===0?E=C.reduce(function(K,z){if(JA(z))switch(z.value){case"center":return p.push(Ii),!1;case"top":case"left":return p.push(ge),!1;case"right":case"bottom":return p.push(vt),!1}else if(le(z)||yt(z))return p.push(z),!1;return K},E):v===1&&(E=C.reduce(function(K,z){if(JA(z))switch(z.value){case uc:return c=0,!1;case dc:return c=1,!1;case gc:case sc:return l=0,!1;case ac:return l=1,!1;case lc:return l=2,!1;case fc:case cc:return l=3,!1}else if(yt(z)||le(z))return Array.isArray(l)||(l=[]),l.push(z),!1;return K},E)),E){var k=no(s,C);f.push(k)}}),{size:l,shape:c,stops:f,position:p,type:2}},qC=function(s){return s.type===1},Ay=function(s){return s.type===2},Si={name:"image",parse:function(s,i){if(i.type===22){var c={url:i.value,type:0};return s.cache.addImage(i.value),c}if(i.type===18){var l=hc[i.name];if(typeof l>"u")throw new Error('Attempting to parse an unsupported image function "'+i.name+'"');return l(s,i.values)}throw new Error("Unsupported image type "+i.type)}};function ey(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!hc[s.name])}var hc={"linear-gradient":JC,"-moz-linear-gradient":ro,"-ms-linear-gradient":ro,"-o-linear-gradient":ro,"-webkit-linear-gradient":ro,"radial-gradient":jC,"-moz-radial-gradient":oo,"-ms-radial-gradient":oo,"-o-radial-gradient":oo,"-webkit-radial-gradient":oo,"-webkit-gradient":ZC},ty={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i.filter(function(l){return sn(l)&&ey(l)}).map(function(l){return Si.parse(s,l)})}},ny={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(JA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ry={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return $e(i).map(function(c){return c.filter(le)}).map(Yl)}},oy={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return $e(i).map(function(c){return c.filter(JA).map(function(l){return l.value}).join(" ")}).map(iy)}},iy=function(s){switch(s){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},an;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(an||(an={}));var sy={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return $e(i).map(function(c){return c.filter(ay)})}},ay=function(s){return JA(s)||le(s)},io=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ly=io("top"),cy=io("right"),uy=io("bottom"),dy=io("left"),so=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return Yl(c.filter(le))}}},fy=so("top-left"),gy=so("top-right"),hy=so("bottom-right"),By=so("bottom-left"),ao=function(s){return{name:"border-"+s+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(i,c){switch(c){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},py=ao("top"),my=ao("right"),wy=ao("bottom"),Cy=ao("left"),lo=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return $n(c)?c.number:0}}},yy=lo("top"),vy=lo("right"),Qy=lo("bottom"),Ey=lo("left"),Fy={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Uy={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},by={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).reduce(function(c,l){return c|Hy(l.value)},0)}},Hy=function(s){switch(s){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Iy={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},_y={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(s,i){return i.type===20&&i.value==="normal"?0:i.type===17||i.type===15?i.number:0}},co;(function(s){s.NORMAL="normal",s.STRICT="strict"})(co||(co={}));var Sy={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?co.STRICT:co.NORMAL}},xy={name:"line-height",initialValue:"normal",prefix:!1,type:4},Bc=function(s,i){return JA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:le(s)?jA(s,i):i},Dy={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:Si.parse(s,i)}},Ny={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},xi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},uo=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Ly=uo("top"),ky=uo("right"),Ty=uo("bottom"),My=uo("left"),Oy={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).map(function(c){switch(c.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Ky={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},fo=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ry=fo("top"),Vy=fo("right"),Py=fo("bottom"),Gy=fo("left"),zy={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(s,i){switch(i){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Xy={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(s,i){switch(i){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$y={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Hi(i[0],"none")?[]:$e(i).map(function(c){for(var l={color:at.TRANSPARENT,offsetX:ge,offsetY:ge,blur:ge},f=0,p=0;p<c.length;p++){var C=c[p];yt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=Qt.parse(s,C)}return l})}},Wy={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Yy={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(s,i){if(i.type===20&&i.value==="none")return null;if(i.type===18){var c=jy[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported transform function "'+i.name+'"');return c(i.values)}return null}},Jy=function(s){var i=s.filter(function(c){return c.type===17}).map(function(c){return c.number});return i.length===6?i:null},Zy=function(s){var i=s.filter(function(E){return E.type===17}).map(function(E){return E.number}),c=i[0],l=i[1];i[2],i[3];var f=i[4],p=i[5];i[6],i[7],i[8],i[9],i[10],i[11];var C=i[12],v=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,v]:null},jy={matrix:Jy,matrix3d:Zy},pc={type:16,number:50,flags:Vn},qy=[pc,pc],Av={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(le);return c.length!==2?qy:[c[0],c[1]]}},ev={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Jn;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(Jn||(Jn={}));for(var tv={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return Jn.BREAK_ALL;case"keep-all":return Jn.KEEP_ALL;default:return Jn.NORMAL}}},nv={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(on(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},mc={name:"time",parse:function(s,i){if(i.type===15)switch(i.unit.toLowerCase()){case"s":return 1e3*i.number;case"ms":return i.number}throw new Error("Unsupported time type")}},rv={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return on(i)?i.number:1}},ov={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iv={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).map(function(c){switch(c.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(c){return c!==0})}},sv={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(s,i){var c=[],l=[];return i.forEach(function(f){switch(f.type){case 20:case 0:c.push(f.value);break;case 17:c.push(f.number.toString());break;case 4:l.push(c.join(" ")),c.length=0;break}}),c.length&&l.push(c.join(" ")),l.map(function(f){return f.indexOf(" ")===-1?f:"'"+f+"'"})}},av={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},lv={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return on(i)?i.number:JA(i)&&i.value==="bold"?700:400}},cv={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(JA).map(function(c){return c.value})}},uv={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},de=function(s,i){return(s&i)!==0},dv={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i}},fv={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;for(var l=[],f=i.filter(Wl),p=0;p<f.length;p++){var C=f[p],v=f[p+1];if(C.type===20){var E=v&&on(v)?v.number:1;l.push({counter:C.value,increment:E})}}return l}},gv={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var c=[],l=i.filter(Wl),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(JA(p)&&p.value!=="none"){var v=C&&on(C)?C.number:0;c.push({counter:p.value,reset:v})}}return c}},hv={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter($n).map(function(c){return mc.parse(s,c)})}},Bv={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;var l=[],f=i.filter(VC);if(f.length%2!==0)return null;for(var p=0;p<f.length;p+=2){var C=f[p].value,v=f[p+1].value;l.push({open:C,close:v})}return l}},wc=function(s,i,c){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?c?l.open:l.close:""},pv={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Hi(i[0],"none")?[]:$e(i).map(function(c){for(var l={color:255,offsetX:ge,offsetY:ge,blur:ge,spread:ge,inset:!1},f=0,p=0;p<c.length;p++){var C=c[p];Hi(C,"inset")?l.inset=!0:yt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=Qt.parse(s,C)}return l})}},mv={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,i){var c=[0,1,2],l=[];return i.filter(JA).forEach(function(f){switch(f.value){case"stroke":l.push(1);break;case"fill":l.push(0);break;case"markers":l.push(2);break}}),c.forEach(function(f){l.indexOf(f)===-1&&l.push(f)}),l}},wv={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Cv={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return $n(i)?i.number:0}},yv=(function(){function s(i,c){var l,f;this.animationDuration=EA(i,hv,c.animationDuration),this.backgroundClip=EA(i,zC,c.backgroundClip),this.backgroundColor=EA(i,XC,c.backgroundColor),this.backgroundImage=EA(i,ty,c.backgroundImage),this.backgroundOrigin=EA(i,ny,c.backgroundOrigin),this.backgroundPosition=EA(i,ry,c.backgroundPosition),this.backgroundRepeat=EA(i,oy,c.backgroundRepeat),this.backgroundSize=EA(i,sy,c.backgroundSize),this.borderTopColor=EA(i,ly,c.borderTopColor),this.borderRightColor=EA(i,cy,c.borderRightColor),this.borderBottomColor=EA(i,uy,c.borderBottomColor),this.borderLeftColor=EA(i,dy,c.borderLeftColor),this.borderTopLeftRadius=EA(i,fy,c.borderTopLeftRadius),this.borderTopRightRadius=EA(i,gy,c.borderTopRightRadius),this.borderBottomRightRadius=EA(i,hy,c.borderBottomRightRadius),this.borderBottomLeftRadius=EA(i,By,c.borderBottomLeftRadius),this.borderTopStyle=EA(i,py,c.borderTopStyle),this.borderRightStyle=EA(i,my,c.borderRightStyle),this.borderBottomStyle=EA(i,wy,c.borderBottomStyle),this.borderLeftStyle=EA(i,Cy,c.borderLeftStyle),this.borderTopWidth=EA(i,yy,c.borderTopWidth),this.borderRightWidth=EA(i,vy,c.borderRightWidth),this.borderBottomWidth=EA(i,Qy,c.borderBottomWidth),this.borderLeftWidth=EA(i,Ey,c.borderLeftWidth),this.boxShadow=EA(i,pv,c.boxShadow),this.color=EA(i,Fy,c.color),this.direction=EA(i,Uy,c.direction),this.display=EA(i,by,c.display),this.float=EA(i,Iy,c.cssFloat),this.fontFamily=EA(i,sv,c.fontFamily),this.fontSize=EA(i,av,c.fontSize),this.fontStyle=EA(i,uv,c.fontStyle),this.fontVariant=EA(i,cv,c.fontVariant),this.fontWeight=EA(i,lv,c.fontWeight),this.letterSpacing=EA(i,_y,c.letterSpacing),this.lineBreak=EA(i,Sy,c.lineBreak),this.lineHeight=EA(i,xy,c.lineHeight),this.listStyleImage=EA(i,Dy,c.listStyleImage),this.listStylePosition=EA(i,Ny,c.listStylePosition),this.listStyleType=EA(i,xi,c.listStyleType),this.marginTop=EA(i,Ly,c.marginTop),this.marginRight=EA(i,ky,c.marginRight),this.marginBottom=EA(i,Ty,c.marginBottom),this.marginLeft=EA(i,My,c.marginLeft),this.opacity=EA(i,rv,c.opacity);var p=EA(i,Oy,c.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=EA(i,Ky,c.overflowWrap),this.paddingTop=EA(i,Ry,c.paddingTop),this.paddingRight=EA(i,Vy,c.paddingRight),this.paddingBottom=EA(i,Py,c.paddingBottom),this.paddingLeft=EA(i,Gy,c.paddingLeft),this.paintOrder=EA(i,mv,c.paintOrder),this.position=EA(i,Xy,c.position),this.textAlign=EA(i,zy,c.textAlign),this.textDecorationColor=EA(i,ov,(l=c.textDecorationColor)!==null&&l!==void 0?l:c.color),this.textDecorationLine=EA(i,iv,(f=c.textDecorationLine)!==null&&f!==void 0?f:c.textDecoration),this.textShadow=EA(i,$y,c.textShadow),this.textTransform=EA(i,Wy,c.textTransform),this.transform=EA(i,Yy,c.transform),this.transformOrigin=EA(i,Av,c.transformOrigin),this.visibility=EA(i,ev,c.visibility),this.webkitTextStrokeColor=EA(i,wv,c.webkitTextStrokeColor),this.webkitTextStrokeWidth=EA(i,Cv,c.webkitTextStrokeWidth),this.wordBreak=EA(i,tv,c.wordBreak),this.zIndex=EA(i,nv,c.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return Et(this.backgroundColor)},s.prototype.isTransformed=function(){return this.transform!==null},s.prototype.isPositioned=function(){return this.position!==0},s.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},s.prototype.isFloating=function(){return this.float!==0},s.prototype.isInlineLevel=function(){return de(this.display,4)||de(this.display,33554432)||de(this.display,268435456)||de(this.display,536870912)||de(this.display,67108864)||de(this.display,134217728)},s})(),vv=(function(){function s(i,c){this.content=EA(i,dv,c.content),this.quotes=EA(i,Bv,c.quotes)}return s})(),Cc=(function(){function s(i,c){this.counterIncrement=EA(i,fv,c.counterIncrement),this.counterReset=EA(i,gv,c.counterReset)}return s})(),EA=function(s,i,c){var l=new Xl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new $l(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,JA(C)?C.value:i.initialValue);case 0:return i.parse(s,p.parseComponentValue());case 1:return i.parse(s,p.parseComponentValues());case 4:return p.parseComponentValue();case 3:switch(i.format){case"angle":return to.parse(s,p.parseComponentValue());case"color":return Qt.parse(s,p.parseComponentValue());case"image":return Si.parse(s,p.parseComponentValue());case"length":var v=p.parseComponentValue();return yt(v)?v:ge;case"length-percentage":var E=p.parseComponentValue();return le(E)?E:ge;case"time":return mc.parse(s,p.parseComponentValue())}break}},Qv="data-html2canvas-debug",Ev=function(s){switch(s.getAttribute(Qv)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Di=function(s,i){var c=Ev(s);return c===1||i===c},We=(function(){function s(i,c){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,Di(c,3))debugger;this.styles=new yv(i,window.getComputedStyle(c,null)),$i(c)&&(this.styles.animationDuration.some(function(l){return l>0})&&(c.style.animationDuration="0s"),this.styles.transform!==null&&(c.style.transform="none")),this.bounds=g(this.context,c),Di(c,4)&&(this.flags|=16)}return s})(),Fv="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BT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IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQ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CoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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i--);var k=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),K=Array.isArray(k)?k:new Uint8Array(k);for(l=0;l<c;l+=4)p=Zn[s.charCodeAt(l)],C=Zn[s.charCodeAt(l+1)],v=Zn[s.charCodeAt(l+2)],E=Zn[s.charCodeAt(l+3)],K[f++]=p<<2|C>>4,K[f++]=(C&15)<<4|v>>2,K[f++]=(v&3)<<6|E&63;return k},bv=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},Hv=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},Ot=5,Ni=11,Li=2,Iv=Ni-Ot,vc=65536>>Ot,ki=(1<<Ot)-1,_v=vc+(1024>>Ot)+32,Sv=65536>>Ni,xv=(1<<Iv)-1,Qc=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},Dv=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},Nv=function(s,i){var c=Uv(s),l=Array.isArray(c)?Hv(c):new Uint32Array(c),f=Array.isArray(c)?bv(c):new Uint16Array(c),p=24,C=Qc(f,p/2,l[4]/2),v=l[5]===2?Qc(f,(p+l[4])/2):Dv(l,Math.ceil((p+l[4])/4));return new Lv(l[0],l[1],l[2],l[3],C,v)},Lv=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>Ot],c=(c<<Li)+(i&ki),this.data[c];if(i<=65535)return c=this.index[vc+(i-55296>>Ot)],c=(c<<Li)+(i&ki),this.data[c];if(i<this.highStart)return c=_v-Sv+(i>>Ni),c=this.index[c],c+=i>>Ot&xv,c=this.index[c],c=(c<<Li)+(i&ki),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kv=typeof Uint8Array>"u"?[]:new Uint8Array(256),ho=0;ho<Ec.length;ho++)kv[Ec.charCodeAt(ho)]=ho;var Tv=1,Ti=2,Mi=3,Fc=4,Uc=5,Mv=7,bc=8,Oi=9,Ki=10,Hc=11,Ic=12,_c=13,Sc=14,Ri=15,Ov=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},Kv=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},Rv=Nv(Fv),Se="×",Vi="÷",Vv=function(s){return Rv.get(s)},Pv=function(s,i,c){var l=c-2,f=i[l],p=i[c-1],C=i[c];if(p===Ti&&C===Mi)return Se;if(p===Ti||p===Mi||p===Fc||C===Ti||C===Mi||C===Fc)return Vi;if(p===bc&&[bc,Oi,Hc,Ic].indexOf(C)!==-1||(p===Hc||p===Oi)&&(C===Oi||C===Ki)||(p===Ic||p===Ki)&&C===Ki||C===_c||C===Uc||C===Mv||p===Tv)return Se;if(p===_c&&C===Sc){for(;f===Uc;)f=i[--l];if(f===Sc)return Se}if(p===Ri&&C===Ri){for(var v=0;f===Ri;)v++,f=i[--l];if(v%2===0)return Se}return Vi},Gv=function(s){var i=Ov(s),c=i.length,l=0,f=0,p=i.map(Vv);return{next:function(){if(l>=c)return{done:!0,value:null};for(var C=Se;l<c&&(C=Pv(i,p,++l))===Se;);if(C!==Se||l===c){var v=Kv.apply(null,i.slice(f,l));return f=l,{value:v,done:!1}}return{done:!0,value:null}}}},zv=function(s){for(var i=Gv(s),c=[],l;!(l=i.next()).done;)l.value&&c.push(l.value.slice());return c},Xv=function(s){var i=123;if(s.createRange){var c=s.createRange();if(c.getBoundingClientRect){var l=s.createElement("boundtest");l.style.height=i+"px",l.style.display="block",s.body.appendChild(l),c.selectNode(l);var f=c.getBoundingClientRect(),p=Math.round(f.height);if(s.body.removeChild(l),p===i)return!0}}return!1},$v=function(s){var i=s.createElement("boundtest");i.style.width="50px",i.style.display="block",i.style.fontSize="12px",i.style.letterSpacing="0px",i.style.wordSpacing="0px",s.body.appendChild(i);var c=s.createRange();i.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var l=i.firstChild,f=w(l.data).map(function(E){return m(E)}),p=0,C={},v=f.every(function(E,k){c.setStart(l,p),c.setEnd(l,p+E.length);var K=c.getBoundingClientRect();p+=E.length;var z=K.x>C.x||K.y>C.y;return C=K,k===0?!0:z});return s.body.removeChild(i),v},Wv=function(){return typeof new Image().crossOrigin<"u"},Yv=function(){return typeof new XMLHttpRequest().responseType=="string"},Jv=function(s){var i=new Image,c=s.createElement("canvas"),l=c.getContext("2d");if(!l)return!1;i.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{l.drawImage(i,0,0),c.toDataURL()}catch{return!1}return!0},xc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},Zv=function(s){var i=s.createElement("canvas"),c=100;i.width=c,i.height=c;var l=i.getContext("2d");if(!l)return Promise.reject(!1);l.fillStyle="rgb(0, 255, 0)",l.fillRect(0,0,c,c);var f=new Image,p=i.toDataURL();f.src=p;var C=Pi(c,c,0,0,f);return l.fillStyle="red",l.fillRect(0,0,c,c),Dc(C).then(function(v){l.drawImage(v,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var k=s.createElement("div");return k.style.backgroundImage="url("+p+")",k.style.height=c+"px",xc(E)?Dc(Pi(c,c,0,0,k)):Promise.reject(!1)}).then(function(v){return l.drawImage(v,0,0),xc(l.getImageData(0,0,c,c).data)}).catch(function(){return!1})},Pi=function(s,i,c,l,f){var p="http://www.w3.org/2000/svg",C=document.createElementNS(p,"svg"),v=document.createElementNS(p,"foreignObject");return C.setAttributeNS(null,"width",s.toString()),C.setAttributeNS(null,"height",i.toString()),v.setAttributeNS(null,"width","100%"),v.setAttributeNS(null,"height","100%"),v.setAttributeNS(null,"x",c.toString()),v.setAttributeNS(null,"y",l.toString()),v.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(v),v.appendChild(f),C},Dc=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){return i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},he={get SUPPORT_RANGE_BOUNDS(){var s=Xv(document);return Object.defineProperty(he,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=he.SUPPORT_RANGE_BOUNDS&&$v(document);return Object.defineProperty(he,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Jv(document);return Object.defineProperty(he,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?Zv(document):Promise.resolve(!1);return Object.defineProperty(he,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Wv();return Object.defineProperty(he,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Yv();return Object.defineProperty(he,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(he,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(he,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},jn=(function(){function s(i,c){this.text=i,this.bounds=c}return s})(),jv=function(s,i,c,l){var f=eQ(i,c),p=[],C=0;return f.forEach(function(v){if(c.textDecorationLine.length||v.trim().length>0)if(he.SUPPORT_RANGE_BOUNDS){var E=Nc(l,C,v.length).getClientRects();if(E.length>1){var k=Gi(v),K=0;k.forEach(function(q){p.push(new jn(q,h.fromDOMRectList(s,Nc(l,K+C,q.length).getClientRects()))),K+=q.length})}else p.push(new jn(v,h.fromDOMRectList(s,E)))}else{var z=l.splitText(v.length);p.push(new jn(v,qv(s,l))),l=z}else he.SUPPORT_RANGE_BOUNDS||(l=l.splitText(v.length));C+=v.length}),p},qv=function(s,i){var c=i.ownerDocument;if(c){var l=c.createElement("html2canvaswrapper");l.appendChild(i.cloneNode(!0));var f=i.parentNode;if(f){f.replaceChild(l,i);var p=g(s,l);return l.firstChild&&f.replaceChild(l.firstChild,l),p}}return h.EMPTY},Nc=function(s,i,c){var l=s.ownerDocument;if(!l)throw new Error("Node has no owner document");var f=l.createRange();return f.setStart(s,i),f.setEnd(s,i+c),f},Gi=function(s){if(he.SUPPORT_NATIVE_TEXT_SEGMENTATION){var i=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(i.segment(s)).map(function(c){return c.segment})}return zv(s)},AQ=function(s,i){if(he.SUPPORT_NATIVE_TEXT_SEGMENTATION){var c=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(c.segment(s)).map(function(l){return l.segment})}return nQ(s,i)},eQ=function(s,i){return i.letterSpacing!==0?Gi(s):AQ(s,i)},tQ=[32,160,4961,65792,65793,4153,4241],nQ=function(s,i){for(var c=k0(s,{lineBreak:i.lineBreak,wordBreak:i.overflowWrap==="break-word"?"break-word":i.wordBreak}),l=[],f,p=function(){if(f.value){var C=w(f.value.slice()),v="";C.forEach(function(E){tQ.indexOf(E)===-1?v+=m(E):(v.length&&l.push(v),l.push(m(E)),v="")}),v.length&&l.push(v)}};!(f=c.next()).done;)p();return l},rQ=(function(){function s(i,c,l){this.text=oQ(c.data,l.textTransform),this.textBounds=jv(i,this.text,l,c)}return s})(),oQ=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(iQ,sQ);case 2:return s.toUpperCase();default:return s}},iQ=/(^|\s|:|-|\(|\))([a-z])/g,sQ=function(s,i,c){return s.length>0?i+c.toUpperCase():s},Lc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.src=l.currentSrc||l.src,f.intrinsicWidth=l.naturalWidth,f.intrinsicHeight=l.naturalHeight,f.context.cache.addImage(f.src),f}return i})(We),kc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l,f.intrinsicWidth=l.width,f.intrinsicHeight=l.height,f}return i})(We),Tc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=new XMLSerializer,C=g(c,l);return l.setAttribute("width",C.width+"px"),l.setAttribute("height",C.height+"px"),f.svg="data:image/svg+xml,"+encodeURIComponent(p.serializeToString(l)),f.intrinsicWidth=l.width.baseVal.value,f.intrinsicHeight=l.height.baseVal.value,f.context.cache.addImage(f.svg),f}return i})(We),Mc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(We),zi=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.start=l.start,f.reversed=typeof l.reversed=="boolean"&&l.reversed===!0,f}return i})(We),aQ=[{type:15,flags:0,unit:"px",number:3}],lQ=[{type:16,flags:0,number:50}],cQ=function(s){return s.width>s.height?new h(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width<s.height?new h(s.left,s.top+(s.height-s.width)/2,s.width,s.width):s},uQ=function(s){var i=s.type===dQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},Bo="checkbox",po="radio",dQ="password",Oc=707406591,Xi=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;switch(f.type=l.type.toLowerCase(),f.checked=l.checked,f.value=uQ(l),(f.type===Bo||f.type===po)&&(f.styles.backgroundColor=3739148031,f.styles.borderTopColor=f.styles.borderRightColor=f.styles.borderBottomColor=f.styles.borderLeftColor=2779096575,f.styles.borderTopWidth=f.styles.borderRightWidth=f.styles.borderBottomWidth=f.styles.borderLeftWidth=1,f.styles.borderTopStyle=f.styles.borderRightStyle=f.styles.borderBottomStyle=f.styles.borderLeftStyle=1,f.styles.backgroundClip=[0],f.styles.backgroundOrigin=[0],f.bounds=cQ(f.bounds)),f.type){case Bo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=aQ;break;case po:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=lQ;break}return f}return i})(We),Kc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=l.options[l.selectedIndex||0];return f.value=p&&p.text||"",f}return i})(We),Rc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(We),Vc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;f.src=l.src,f.width=parseInt(l.width,10)||0,f.height=parseInt(l.height,10)||0,f.backgroundColor=f.styles.backgroundColor;try{if(l.contentWindow&&l.contentWindow.document&&l.contentWindow.document.documentElement){f.tree=Gc(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?Yn(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):at.TRANSPARENT,C=l.contentWindow.document.body?Yn(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):at.TRANSPARENT;f.backgroundColor=Et(p)?Et(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(We),fQ=["OL","UL","MENU"],mo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,zc(f)&&f.data.trim().length>0)c.textNodes.push(new rQ(s,f,c.styles));else if(ln(f))if(Zc(f)&&f.assignedNodes)f.assignedNodes().forEach(function(v){return mo(s,v,c,l)});else{var C=Pc(s,f);C.styles.isVisible()&&(gQ(f,C,l)?C.flags|=4:hQ(C.styles)&&(C.flags|=2),fQ.indexOf(f.tagName)!==-1&&(C.flags|=8),c.elements.push(C),f.slot,f.shadowRoot?mo(s,f.shadowRoot,C,l):!Co(f)&&!Xc(f)&&!yo(f)&&mo(s,f,C,l))}},Pc=function(s,i){return Yi(i)?new Lc(s,i):$c(i)?new kc(s,i):Xc(i)?new Tc(s,i):BQ(i)?new Mc(s,i):pQ(i)?new zi(s,i):mQ(i)?new Xi(s,i):yo(i)?new Kc(s,i):Co(i)?new Rc(s,i):Yc(i)?new Vc(s,i):new We(s,i)},Gc=function(s,i){var c=Pc(s,i);return c.flags|=4,mo(s,i,c,c),c},gQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||Wi(s)&&c.styles.isTransparent()},hQ=function(s){return s.isPositioned()||s.isFloating()},zc=function(s){return s.nodeType===Node.TEXT_NODE},ln=function(s){return s.nodeType===Node.ELEMENT_NODE},$i=function(s){return ln(s)&&typeof s.style<"u"&&!wo(s)},wo=function(s){return typeof s.className=="object"},BQ=function(s){return s.tagName==="LI"},pQ=function(s){return s.tagName==="OL"},mQ=function(s){return s.tagName==="INPUT"},wQ=function(s){return s.tagName==="HTML"},Xc=function(s){return s.tagName==="svg"},Wi=function(s){return s.tagName==="BODY"},$c=function(s){return s.tagName==="CANVAS"},Wc=function(s){return s.tagName==="VIDEO"},Yi=function(s){return s.tagName==="IMG"},Yc=function(s){return s.tagName==="IFRAME"},Jc=function(s){return s.tagName==="STYLE"},CQ=function(s){return s.tagName==="SCRIPT"},Co=function(s){return s.tagName==="TEXTAREA"},yo=function(s){return s.tagName==="SELECT"},Zc=function(s){return s.tagName==="SLOT"},jc=function(s){return s.tagName.indexOf("-")>0},yQ=(function(){function s(){this.counters={}}return s.prototype.getCounterValue=function(i){var c=this.counters[i];return c&&c.length?c[c.length-1]:1},s.prototype.getCounterValues=function(i){var c=this.counters[i];return c||[]},s.prototype.pop=function(i){var c=this;i.forEach(function(l){return c.counters[l].pop()})},s.prototype.parse=function(i){var c=this,l=i.counterIncrement,f=i.counterReset,p=!0;l!==null&&l.forEach(function(v){var E=c.counters[v.counter];E&&v.increment!==0&&(p=!1,E.length||E.push(1),E[Math.max(0,E.length-1)]+=v.increment)});var C=[];return p&&f.forEach(function(v){var E=c.counters[v.counter];C.push(v.counter),E||(E=c.counters[v.counter]=[]),E.push(v.reset)}),C},s})(),qc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Au={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},vQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},QQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},cn=function(s,i,c,l,f,p){return s<i||s>c?Ar(s,f,p.length>0):l.integers.reduce(function(C,v,E){for(;s>=v;)s-=v,C+=l.values[E];return C},"")+p},eu=function(s,i,c,l){var f="";do c||s--,f=l(s)+f,s/=i;while(s*i>=i);return f},oe=function(s,i,c,l,f){var p=c-i+1;return(s<0?"-":"")+(eu(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Kt=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return eu(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},un=1,Ut=2,bt=4,qn=8,lt=function(s,i,c,l,f,p){if(s<-9999||s>9999)return Ar(s,4,f.length>0);var C=Math.abs(s),v=f;if(C===0)return i[0]+v;for(var E=0;C>0&&E<=4;E++){var k=C%10;k===0&&de(p,un)&&v!==""?v=i[k]+v:k>1||k===1&&E===0||k===1&&E===1&&de(p,Ut)||k===1&&E===1&&de(p,bt)&&s>100||k===1&&E>1&&de(p,qn)?v=i[k]+(E>0?c[E-1]:"")+v:k===1&&E>0&&(v=c[E-1]+v),C=Math.floor(C/10)}return(s<0?l:"")+v},tu="十百千萬",nu="拾佰仟萬",ru="マイナス",Ji="마이너스",Ar=function(s,i,c){var l=c?". ":"",f=c?"、":"",p=c?", ":"",C=c?" ":"";switch(i){case 0:return"•"+C;case 1:return"◦"+C;case 2:return"◾"+C;case 5:var v=oe(s,48,57,!0,l);return v.length<4?"0"+v:v;case 4:return Kt(s,"〇一二三四五六七八九",f);case 6:return cn(s,1,3999,qc,3,l).toLowerCase();case 7:return cn(s,1,3999,qc,3,l);case 8:return oe(s,945,969,!1,l);case 9:return oe(s,97,122,!1,l);case 10:return oe(s,65,90,!1,l);case 11:return oe(s,1632,1641,!0,l);case 12:case 49:return cn(s,1,9999,Au,3,l);case 35:return cn(s,1,9999,Au,3,l).toLowerCase();case 13:return oe(s,2534,2543,!0,l);case 14:case 30:return oe(s,6112,6121,!0,l);case 15:return Kt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Kt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return lt(s,"零一二三四五六七八九",tu,"負",f,Ut|bt|qn);case 47:return lt(s,"零壹貳參肆伍陸柒捌玖",nu,"負",f,un|Ut|bt|qn);case 42:return lt(s,"零一二三四五六七八九",tu,"负",f,Ut|bt|qn);case 41:return lt(s,"零壹贰叁肆伍陆柒捌玖",nu,"负",f,un|Ut|bt|qn);case 26:return lt(s,"〇一二三四五六七八九","十百千万",ru,f,0);case 25:return lt(s,"零壱弐参四伍六七八九","拾百千万",ru,f,un|Ut|bt);case 31:return lt(s,"영일이삼사오육칠팔구","십백천만",Ji,p,un|Ut|bt);case 33:return lt(s,"零一二三四五六七八九","十百千萬",Ji,p,0);case 32:return lt(s,"零壹貳參四五六七八九","拾百千",Ji,p,un|Ut|bt);case 18:return oe(s,2406,2415,!0,l);case 20:return cn(s,1,19999,QQ,3,l);case 21:return oe(s,2790,2799,!0,l);case 22:return oe(s,2662,2671,!0,l);case 22:return cn(s,1,10999,vQ,3,l);case 23:return Kt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Kt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return oe(s,3302,3311,!0,l);case 28:return Kt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Kt(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",f);case 34:return oe(s,3792,3801,!0,l);case 37:return oe(s,6160,6169,!0,l);case 38:return oe(s,4160,4169,!0,l);case 39:return oe(s,2918,2927,!0,l);case 40:return oe(s,1776,1785,!0,l);case 43:return oe(s,3046,3055,!0,l);case 44:return oe(s,3174,3183,!0,l);case 45:return oe(s,3664,3673,!0,l);case 46:return oe(s,3872,3881,!0,l);default:return oe(s,48,57,!0,l)}},ou="data-html2canvas-ignore",iu=(function(){function s(i,c,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=c,this.counters=new yQ,this.quoteDepth=0,!c.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(c.ownerDocument.documentElement,!1)}return s.prototype.toIFrame=function(i,c){var l=this,f=EQ(i,c);if(!f.contentWindow)return Promise.reject("Unable to find iframe window");var p=i.defaultView.pageXOffset,C=i.defaultView.pageYOffset,v=f.contentWindow,E=v.document,k=bQ(f).then(function(){return a(l,void 0,void 0,function(){var K,z;return u(this,function(q){switch(q.label){case 0:return this.scrolledElements.forEach(SQ),v&&(v.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(v.scrollY!==c.top||v.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(v.scrollX-c.left,v.scrollY-c.top,0,0))),K=this.options.onclone,z=this.clonedReferenceElement,typeof z>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:E.fonts&&E.fonts.ready?[4,E.fonts.ready]:[3,2];case 1:q.sent(),q.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,UQ(E)]:[3,4];case 3:q.sent(),q.label=4;case 4:return typeof K=="function"?[2,Promise.resolve().then(function(){return K(E,z)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(IQ(document.doctype)+"<html></html>"),_Q(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),k},s.prototype.createElementClone=function(i){if(Di(i,2))debugger;if($c(i))return this.createCanvasClone(i);if(Wc(i))return this.createVideoClone(i);if(Jc(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return Yi(c)&&(Yi(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),jc(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return Zi(i.style,c),c},s.prototype.createStyleClone=function(i){try{var c=i.sheet;if(c&&c.cssRules){var l=[].slice.call(c.cssRules,0).reduce(function(p,C){return C&&typeof C.cssText=="string"?p+C.cssText:p},""),f=i.cloneNode(!1);return f.textContent=l,f}}catch(p){if(this.context.logger.error("Unable to access cssRules property",p),p.name!=="SecurityError")throw p}return i.cloneNode(!1)},s.prototype.createCanvasClone=function(i){var c;if(this.options.inlineImages&&i.ownerDocument){var l=i.ownerDocument.createElement("img");try{return l.src=i.toDataURL(),l}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",i)}}var f=i.cloneNode(!1);try{f.width=i.width,f.height=i.height;var p=i.getContext("2d"),C=f.getContext("2d");if(C)if(!this.options.allowTaint&&p)C.putImageData(p.getImageData(0,0,i.width,i.height),0,0);else{var v=(c=i.getContext("webgl2"))!==null&&c!==void 0?c:i.getContext("webgl");if(v){var E=v.getContextAttributes();E?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",i)}C.drawImage(i,0,0)}return f}catch{this.context.logger.info("Unable to clone canvas as it is tainted",i)}return f},s.prototype.createVideoClone=function(i){var c=i.ownerDocument.createElement("canvas");c.width=i.offsetWidth,c.height=i.offsetHeight;var l=c.getContext("2d");try{return l&&(l.drawImage(i,0,0,c.width,c.height),this.options.allowTaint||l.getImageData(0,0,c.width,c.height)),c}catch{this.context.logger.info("Unable to clone video as it is tainted",i)}var f=i.ownerDocument.createElement("canvas");return f.width=i.offsetWidth,f.height=i.offsetHeight,f},s.prototype.appendChildNode=function(i,c,l){(!ln(c)||!CQ(c)&&!c.hasAttribute(ou)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!ln(c)||!Jc(c))&&i.appendChild(this.cloneNode(c,l))},s.prototype.cloneChildNodes=function(i,c,l){for(var f=this,p=i.shadowRoot?i.shadowRoot.firstChild:i.firstChild;p;p=p.nextSibling)if(ln(p)&&Zc(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(v){return f.appendChildNode(c,v,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(zc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&ln(i)&&($i(i)||wo(i))){var f=this.createElementClone(i);f.style.transitionProperty="none";var p=l.getComputedStyle(i),C=l.getComputedStyle(i,":before"),v=l.getComputedStyle(i,":after");this.referenceElement===i&&$i(f)&&(this.clonedReferenceElement=f),Wi(f)&&NQ(f);var E=this.counters.parse(new Cc(this.context,p)),k=this.resolvePseudoContent(i,f,C,er.BEFORE);jc(i)&&(c=!0),Wc(i)||this.cloneChildNodes(i,f,c),k&&f.insertBefore(k,f.firstChild);var K=this.resolvePseudoContent(i,f,v,er.AFTER);return K&&f.appendChild(K),this.counters.pop(E),(p&&(this.options.copyStyles||wo(i))&&!Yc(i)||c)&&Zi(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(Co(i)||yo(i))&&(Co(f)||yo(f))&&(f.value=i.value),f}return i.cloneNode(!1)},s.prototype.resolvePseudoContent=function(i,c,l,f){var p=this;if(l){var C=l.content,v=c.ownerDocument;if(!(!v||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new Cc(this.context,l));var E=new vv(this.context,l),k=v.createElement("html2canvaspseudoelement");Zi(l,k),E.content.forEach(function(z){if(z.type===0)k.appendChild(v.createTextNode(z.value));else if(z.type===22){var q=v.createElement("img");q.src=z.value,q.style.opacity="1",k.appendChild(q)}else if(z.type===18){if(z.name==="attr"){var CA=z.values.filter(JA);CA.length&&k.appendChild(v.createTextNode(i.getAttribute(CA[0].value)||""))}else if(z.name==="counter"){var fA=z.values.filter(sn),mA=fA[0],KA=fA[1];if(mA&&JA(mA)){var DA=p.counters.getCounterValue(mA.value),_A=KA&&JA(KA)?xi.parse(p.context,KA.value):3;k.appendChild(v.createTextNode(Ar(DA,_A,!1)))}}else if(z.name==="counters"){var Ae=z.values.filter(sn),mA=Ae[0],zA=Ae[1],KA=Ae[2];if(mA&&JA(mA)){var kA=p.counters.getCounterValues(mA.value),QA=KA&&JA(KA)?xi.parse(p.context,KA.value):3,VA=zA&&zA.type===0?zA.value:"",PA=kA.map(function(Qe){return Ar(Qe,QA,!1)}).join(VA);k.appendChild(v.createTextNode(PA))}}}else if(z.type===20)switch(z.value){case"open-quote":k.appendChild(v.createTextNode(wc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":k.appendChild(v.createTextNode(wc(E.quotes,--p.quoteDepth,!1)));break;default:k.appendChild(v.createTextNode(z.value))}}),k.className=ji+" "+qi;var K=f===er.BEFORE?" "+ji:" "+qi;return wo(c)?c.className.baseValue+=K:c.className+=K,k}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),er;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(er||(er={}));var EQ=function(s,i){var c=s.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=i.width.toString(),c.height=i.height.toString(),c.scrolling="no",c.setAttribute(ou,"true"),s.body.appendChild(c),c},FQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},UQ=function(s){return Promise.all([].slice.call(s.images,0).map(FQ))},bQ=function(s){return new Promise(function(i,c){var l=s.contentWindow;if(!l)return c("No window assigned for iframe");var f=l.document;l.onload=s.onload=function(){l.onload=s.onload=null;var p=setInterval(function(){f.body.childNodes.length>0&&f.readyState==="complete"&&(clearInterval(p),i(s))},50)}})},HQ=["all","d","content"],Zi=function(s,i){for(var c=s.length-1;c>=0;c--){var l=s.item(c);HQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},IQ=function(s){var i="";return s&&(i+="<!DOCTYPE ",s.name&&(i+=s.name),s.internalSubset&&(i+=s.internalSubset),s.publicId&&(i+='"'+s.publicId+'"'),s.systemId&&(i+='"'+s.systemId+'"'),i+=">"),i},_Q=function(s,i,c){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||c!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,c)},SQ=function(s){var i=s[0],c=s[1],l=s[2];i.scrollLeft=c,i.scrollTop=l},xQ=":before",DQ=":after",ji="___html2canvas___pseudoelement_before",qi="___html2canvas___pseudoelement_after",su=`{
|
|
31
|
+
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,B.lineWidth=1,B.textBaseline="middle")}},d=g=>{const B={scale:e.scale,width:e.width,height:e.height,palette:e.palette,ratio:g};t.canvasContext&&Tw(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,qA.watch)(()=>e.start,()=>d(n)),(0,qA.watch)([()=>e.width,()=>e.height],()=>{u(n),d(n)}),{handle:(g,B)=>{const m=((y,Q,U)=>Math.round(Q+y/U))(e.vertical?g.offsetY:g.offsetX,e.start,e.scale);switch(B){case"click":A("onAddLine",m);break;case"enter":A("update:valueNum",m),A("update:showIndicator",!0);break;default:A("update:valueNum",m);break}},canvas:o}}});function Ow(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("canvas",{ref:"canvas",class:"ruler",onClick:A[0]||(A[0]=u=>e.handle(u,"click")),onMouseenter:A[1]||(A[1]=u=>e.handle(u,"enter")),onMousemove:A[2]||(A[2]=u=>e.handle(u,"move")),onMouseleave:A[3]||(A[3]=u=>e.$emit("update:showIndicator",!1))},null,544)}var Kw=(0,qA.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:zr(Mw,[["render",Ow]]),RulerLine:Lw},props:{scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},setup(e){const A=(0,qA.ref)(!1),t=(0,qA.ref)(0),n=(0,qA.computed)(()=>e.vertical?"v-container":"h-container"),o=(0,qA.computed)(()=>{const g={width:`calc(100% - ${e.thick}px)`,height:`${e.thick+1}px`,left:`${e.thick}px`},B={width:`${e.thick&&e.thick+1}px`,height:`calc(100% - ${e.thick}px)`,top:`${e.thick}px`};return e.vertical?B:g}),a=(0,qA.computed)(()=>{var g;const B=(t.value-e.start)*e.scale;let w="top",m="borderLeft";return w=e.vertical?"top":"left",m=e.vertical?"borderBottom":"borderLeft",{[w]:B+"px",[m]:`1px solid ${(g=e.palette)==null?void 0:g.lineColor}`}}),u=g=>{e.lines.push(g)},d=(g,B)=>{const w=g-e.start,m=(e.vertical?e.height:e.width)/e.scale;w<0||w>m?h(B):e.lines[B]=g},h=g=>{e.lines.splice(g,1)};return{showIndicator:A,valueNum:t,rwClassName:n,rwStyle:o,indicatorStyle:a,handleNewLine:u,handleLineRelease:d,handleLineRemove:h}}}),Rw={class:"lines"},Vw={class:"value"};function Pw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("CanvasRuler"),d=(0,r.resolveComponent)("RulerLine");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.rwClassName),style:(0,r.normalizeStyle)(e.rwStyle)},[(0,r.createVNode)(u,{vertical:e.vertical,scale:e.scale,width:e.width,height:e.height,start:e.start,ratio:e.ratio,"select-start":e.selectStart,"select-length":e.selectLength,palette:e.palette,valueNum:e.valueNum,"onUpdate:valueNum":A[0]||(A[0]=h=>e.valueNum=h),showIndicator:e.showIndicator,"onUpdate:showIndicator":A[1]||(A[1]=h=>e.showIndicator=h),onOnAddLine:e.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),(0,r.withDirectives)((0,r.createElementVNode)("div",Rw,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.lines,(h,g)=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:h+g,index:g,value:h>>0,scale:e.scale,start:e.start,thick:e.thick,palette:e.palette,vertical:e.vertical,"is-show-refer-line":e.isShowReferLine,onOnRemove:e.handleLineRemove,onOnRelease:e.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[r.vShow,e.isShowReferLine]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"indicator",style:(0,r.normalizeStyle)(e.indicatorStyle)},[(0,r.createElementVNode)("div",Vw,(0,r.toDisplayString)(e.valueNum),1)],4),[[r.vShow,e.showIndicator]])],6)}var Gw=zr(Kw,[["render",Pw],["__scopeId","data-v-5cc064d4"]]),zw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QB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ycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",$w=(0,qA.defineComponent)({name:"SketchRule",components:{RulerWrapper:Gw},props:{eyeIcon:{type:String},closeEyeIcon:{type:String},scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},isShowReferLine:{type:Boolean,default:!0}},emits:["onCornerClick","handleLine"],setup(e,{emit:A}){let t=(0,qA.ref)(!0);t.value=e.isShowReferLine;const n=(0,qA.computed)(()=>{function u(d,h){return Object.keys(d).forEach(g=>{g&&d.hasOwnProperty(g)&&(typeof h.key=="object"?d[g]=u(d[g],h[g]):h.hasOwnProperty(g)&&(d[g]=h[g]))}),d}return u({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},e.palette||{})}),o=(0,qA.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||zw})`:`url(${e.closeEyeIcon||Xw})`,width:e.thick+"px",height:e.thick+"px",borderRight:`1px solid ${n.value.borderColor}`,borderBottom:`1px solid ${n.value.borderColor}`})),a=u=>{t.value=!t.value,A("handleCornerClick",t.value)};return(0,qA.watch)([()=>e.isShowReferLine],()=>{t.value=e.isShowReferLine}),{showReferLine:t,paletteCpu:n,cornerStyle:o,onCornerClick:a}}}),Ww={id:"mb-ruler",class:"style-ruler mb-ruler"};function Yw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("RulerWrapper");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Ww,[(0,r.createVNode)(u,{vertical:!1,width:e.width,height:e.thick,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startX,lines:e.lines.h,"select-start":e.shadow.x,"select-length":e.shadow.width,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createVNode)(u,{vertical:!0,width:e.thick,height:e.height,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startY,lines:e.lines.v,"select-start":e.shadow.y,"select-length":e.shadow.height,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createElementVNode)("a",{class:"corner",style:(0,r.normalizeStyle)(e.cornerStyle),onClick:A[0]||(A[0]=(...d)=>e.onCornerClick&&e.onCornerClick(...d))},null,4)])}var Jw=zr($w,[["render",Yw]]),Zw=Fu(((e,A)=>{(function(t,n){typeof e=="object"&&typeof A<"u"?A.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.html2canvas=n())})(e,(function(){"use strict";var t=function(s,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c[f]=l[f])},t(s,i)};function n(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(s,i);function c(){this.constructor=s}s.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}var o=function(){return o=Object.assign||function(i){for(var c,l=1,f=arguments.length;l<f;l++){c=arguments[l];for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(i[p]=c[p])}return i},o.apply(this,arguments)};function a(s,i,c,l){function f(p){return p instanceof c?p:new c(function(C){C(p)})}return new(c||(c=Promise))(function(p,C){function v(K){try{k(l.next(K))}catch(z){C(z)}}function E(K){try{k(l.throw(K))}catch(z){C(z)}}function k(K){K.done?p(K.value):f(K.value).then(v,E)}k((l=l.apply(s,i||[])).next())})}function u(s,i){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,f,p,C;return C={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function v(k){return function(K){return E([k,K])}}function E(k){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=k[0]&2?f.return:k[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,k[1])).done)return p;switch(f=0,p&&(k=[k[0]&2,p.value]),k[0]){case 0:case 1:p=k;break;case 4:return c.label++,{value:k[1],done:!1};case 5:c.label++,f=k[1],k=[0];continue;case 7:k=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(k[0]===6||k[0]===2)){c=0;continue}if(k[0]===3&&(!p||k[1]>p[0]&&k[1]<p[3])){c.label=k[1];break}if(k[0]===6&&c.label<p[1]){c.label=p[1],p=k;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(k);break}p[2]&&c.ops.pop(),c.trys.pop();continue}k=i.call(s,c)}catch(K){k=[6,K],f=0}finally{l=p=0}if(k[0]&5)throw k[1];return{value:k[0]?k[1]:void 0,done:!0}}}function d(s,i,c){if(c||arguments.length===2)for(var l=0,f=i.length,p;l<f;l++)(p||!(l in i))&&(p||(p=Array.prototype.slice.call(i,0,l)),p[l]=i[l]);return s.concat(p||i)}for(var h=(function(){function s(i,c,l,f){this.left=i,this.top=c,this.width=l,this.height=f}return s.prototype.add=function(i,c,l,f){return new s(this.left+i,this.top+c,this.width+l,this.height+f)},s.fromClientRect=function(i,c){return new s(c.left+i.windowBounds.left,c.top+i.windowBounds.top,c.width,c.height)},s.fromDOMRectList=function(i,c){var l=Array.from(c).find(function(f){return f.width!==0});return l?new s(l.left+i.windowBounds.left,l.top+i.windowBounds.top,l.width,l.height):s.EMPTY},s.EMPTY=new s(0,0,0,0),s})(),g=function(s,i){return h.fromClientRect(s,i.getBoundingClientRect())},B=function(s){var i=s.body,c=s.documentElement;if(!i||!c)throw new Error("Unable to get document size");return new h(0,0,Math.max(Math.max(i.scrollWidth,c.scrollWidth),Math.max(i.offsetWidth,c.offsetWidth),Math.max(i.clientWidth,c.clientWidth)),Math.max(Math.max(i.scrollHeight,c.scrollHeight),Math.max(i.offsetHeight,c.offsetHeight),Math.max(i.clientHeight,c.clientHeight)))},w=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},m=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array>"u"?[]:new Uint8Array(256),U=0;U<y.length;U++)Q[y.charCodeAt(U)]=U;for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=typeof Uint8Array>"u"?[]:new Uint8Array(256),R=0;R<T.length;R++)M[T.charCodeAt(R)]=R;for(var H=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,v,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var k=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),K=Array.isArray(k)?k:new Uint8Array(k);for(l=0;l<c;l+=4)p=M[s.charCodeAt(l)],C=M[s.charCodeAt(l+1)],v=M[s.charCodeAt(l+2)],E=M[s.charCodeAt(l+3)],K[f++]=p<<2|C>>4,K[f++]=(C&15)<<4|v>>2,K[f++]=(v&3)<<6|E&63;return k},P=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},iA=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},Z=5,aA=11,lA=2,rA=aA-Z,nA=65536>>Z,j=(1<<Z)-1,S=nA+(1024>>Z)+32,eA=65536>>aA,I=(1<<rA)-1,X=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},F=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},x=function(s,i){var c=H(s),l=Array.isArray(c)?iA(c):new Uint32Array(c),f=Array.isArray(c)?P(c):new Uint16Array(c),p=24,C=X(f,p/2,l[4]/2),v=l[5]===2?X(f,(p+l[4])/2):F(l,Math.ceil((p+l[4])/4));return new N(l[0],l[1],l[2],l[3],C,v)},N=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>Z],c=(c<<lA)+(i&j),this.data[c];if(i<=65535)return c=this.index[nA+(i-55296>>Z)],c=(c<<lA)+(i&j),this.data[c];if(i<this.highStart)return c=S-eA+(i>>aA),c=this.index[c],c+=i>>Z&I,c=this.index[c],c=(c<<lA)+(i&j),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array>"u"?[]:new Uint8Array(256),J=0;J<L.length;J++)O[L.charCodeAt(J)]=J;var tA="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcs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ADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB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ACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4A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AAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgA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KwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFc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wArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQA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AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUAB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AEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgA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lACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",dA=50,UA=1,G=2,Y=3,$=4,oA=5,BA=7,wA=8,bA=9,uA=10,hA=11,_=12,b=13,D=14,W=15,V=16,pA=17,gA=18,HA=19,FA=20,SA=21,OA=22,XA=23,ae=24,re=25,nt=26,Tt=27,rt=28,On=29,mt=30,sA=31,cA=32,xA=33,TA=34,ot=35,Kn=36,it=37,Rn=38,tn=39,nn=40,GA=41,ze=42,wt=43,b0=[9001,65288],_l="!",RA="×",Xr="÷",vi=x(tA),st=[mt,Kn],Qi=[UA,G,Y,oA],Sl=[uA,wA],xl=[Tt,nt],H0=Qi.concat(Sl),Dl=[Rn,tn,nn,TA,ot],I0=[W,b],_0=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var v=vi.get(p);if(v>dA?(f.push(!0),v-=dA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(V);if(v===$||v===hA){if(C===0)return l.push(C),c.push(mt);var E=c[C-1];return H0.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(mt))}if(l.push(C),v===sA)return c.push(i==="strict"?SA:it);if(v===ze||v===On)return c.push(mt);if(v===wt)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(it):c.push(mt);c.push(v)}),[l,c,f]},Ei=function(s,i,c,l){var f=l[c];if(Array.isArray(s)?s.indexOf(f)!==-1:s===f)for(var p=c;p<=l.length;){p++;var C=l[p];if(C===i)return!0;if(C!==uA)break}if(f===uA)for(var p=c;p>0;){p--;var v=l[p];if(Array.isArray(s)?s.indexOf(v)!==-1:s===v)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==uA)break}if(v!==uA)break}return!1},Nl=function(s,i){for(var c=s;c>=0;){var l=i[c];if(l===uA)c--;else return l}return 0},S0=function(s,i,c,l,f){if(c[l]===0)return RA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return RA;var C=p-1,v=p+1,E=i[p],k=C>=0?i[C]:0,K=i[v];if(E===G&&K===Y)return RA;if(Qi.indexOf(E)!==-1)return _l;if(Qi.indexOf(K)!==-1||Sl.indexOf(K)!==-1)return RA;if(Nl(p,i)===wA)return Xr;if(vi.get(s[p])===hA||(E===cA||E===xA)&&vi.get(s[v])===hA||E===BA||K===BA||E===bA||[uA,b,W].indexOf(E)===-1&&K===bA||[pA,gA,HA,ae,rt].indexOf(K)!==-1||Nl(p,i)===OA||Ei(XA,OA,p,i)||Ei([pA,gA],SA,p,i)||Ei(_,_,p,i))return RA;if(E===uA)return Xr;if(E===XA||K===XA)return RA;if(K===V||E===V)return Xr;if([b,W,SA].indexOf(K)!==-1||E===D||k===Kn&&I0.indexOf(E)!==-1||E===rt&&K===Kn||K===FA||st.indexOf(K)!==-1&&E===re||st.indexOf(E)!==-1&&K===re||E===Tt&&[it,cA,xA].indexOf(K)!==-1||[it,cA,xA].indexOf(E)!==-1&&K===nt||st.indexOf(E)!==-1&&xl.indexOf(K)!==-1||xl.indexOf(E)!==-1&&st.indexOf(K)!==-1||[Tt,nt].indexOf(E)!==-1&&(K===re||[OA,W].indexOf(K)!==-1&&i[v+1]===re)||[OA,W].indexOf(E)!==-1&&K===re||E===re&&[re,rt,ae].indexOf(K)!==-1)return RA;if([re,rt,ae,pA,gA].indexOf(K)!==-1)for(var z=p;z>=0;){var q=i[z];if(q===re)return RA;if([rt,ae].indexOf(q)!==-1)z--;else break}if([Tt,nt].indexOf(K)!==-1)for(var z=[pA,gA].indexOf(E)!==-1?C:p;z>=0;){var q=i[z];if(q===re)return RA;if([rt,ae].indexOf(q)!==-1)z--;else break}if(Rn===E&&[Rn,tn,TA,ot].indexOf(K)!==-1||[tn,TA].indexOf(E)!==-1&&[tn,nn].indexOf(K)!==-1||[nn,ot].indexOf(E)!==-1&&K===nn||Dl.indexOf(E)!==-1&&[FA,nt].indexOf(K)!==-1||Dl.indexOf(K)!==-1&&E===Tt||st.indexOf(E)!==-1&&st.indexOf(K)!==-1||E===ae&&st.indexOf(K)!==-1||st.concat(re).indexOf(E)!==-1&&K===OA&&b0.indexOf(s[v])===-1||st.concat(re).indexOf(K)!==-1&&E===gA)return RA;if(E===GA&&K===GA){for(var CA=c[p],fA=1;CA>0&&(CA--,i[CA]===GA);)fA++;if(fA%2!==0)return RA}return E===cA&&K===xA?RA:Xr},x0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=_0(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(v){return[re,mt,ze].indexOf(v)!==-1?it:v}));var C=i.wordBreak==="keep-all"?p.map(function(v,E){return v&&s[E]>=19968&&s[E]<=40959}):void 0;return[l,f,C]},D0=(function(){function s(i,c,l,f){this.codePoints=i,this.required=c===_l,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),N0=function(s,i){var c=w(s),l=x0(c,i),f=l[0],p=l[1],C=l[2],v=c.length,E=0,k=0;return{next:function(){if(k>=v)return{done:!0,value:null};for(var K=RA;k<v&&(K=S0(c,p,f,++k,C))===RA;);if(K!==RA||k===v){var z=new D0(c,K,E,k);return E=k,{value:z,done:!1}}return{done:!0,value:null}}}},L0=1,k0=2,Vn=4,Ll=8,$r=10,kl=47,Pn=92,T0=9,M0=32,Wr=34,Gn=61,O0=35,K0=36,R0=37,Yr=39,Jr=40,zn=41,V0=95,ve=45,P0=33,G0=60,z0=62,X0=64,$0=91,W0=93,Y0=61,J0=123,Zr=63,Z0=125,Tl=124,j0=126,q0=128,Ml=65533,Fi=42,Mt=43,AC=44,eC=58,tC=59,Xn=46,nC=0,rC=8,oC=11,iC=14,sC=31,aC=127,Xe=-1,Ol=48,Kl=97,Rl=101,lC=102,cC=117,uC=122,Vl=65,Pl=69,Gl=70,dC=85,fC=90,pe=function(s){return s>=Ol&&s<=57},gC=function(s){return s>=55296&&s<=57343},rn=function(s){return pe(s)||s>=Vl&&s<=Gl||s>=Kl&&s<=lC},hC=function(s){return s>=Kl&&s<=uC},BC=function(s){return s>=Vl&&s<=fC},pC=function(s){return hC(s)||BC(s)},mC=function(s){return s>=q0},jr=function(s){return s===$r||s===T0||s===M0},qr=function(s){return pC(s)||mC(s)||s===V0},zl=function(s){return qr(s)||pe(s)||s===ve},wC=function(s){return s>=nC&&s<=rC||s===oC||s>=iC&&s<=sC||s===aC},Ct=function(s,i){return s!==Pn?!1:i!==$r},Ao=function(s,i,c){return s===ve?qr(i)||Ct(i,c):qr(s)?!0:!!(s===Pn&&Ct(s,i))},Ui=function(s,i,c){return s===Mt||s===ve?pe(i)?!0:i===Xn&&pe(c):pe(s===Xn?i:s)},CC=function(s){var i=0,c=1;(s[i]===Mt||s[i]===ve)&&(s[i]===ve&&(c=-1),i++);for(var l=[];pe(s[i]);)l.push(s[i++]);var f=l.length?parseInt(m.apply(void 0,l),10):0;s[i]===Xn&&i++;for(var p=[];pe(s[i]);)p.push(s[i++]);var C=p.length,v=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Pl||s[i]===Rl)&&i++;var E=1;(s[i]===Mt||s[i]===ve)&&(s[i]===ve&&(E=-1),i++);for(var k=[];pe(s[i]);)k.push(s[i++]);var K=k.length?parseInt(m.apply(void 0,k),10):0;return c*(f+v*Math.pow(10,-C))*Math.pow(10,E*K)},yC={type:2},vC={type:3},QC={type:4},EC={type:13},FC={type:8},UC={type:21},bC={type:9},HC={type:10},IC={type:11},_C={type:12},SC={type:14},eo={type:23},xC={type:1},DC={type:25},NC={type:24},LC={type:26},kC={type:27},TC={type:28},MC={type:29},OC={type:31},bi={type:32},Xl=(function(){function s(){this._value=[]}return s.prototype.write=function(i){this._value=this._value.concat(w(i))},s.prototype.read=function(){for(var i=[],c=this.consumeToken();c!==bi;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case Wr:return this.consumeStringToken(Wr);case O0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(zl(c)||Ct(l,f)){var p=Ao(c,l,f)?k0:L0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case K0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),EC;break;case Yr:return this.consumeStringToken(Yr);case Jr:return yC;case zn:return vC;case Fi:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),SC;break;case Mt:if(Ui(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case AC:return QC;case ve:var v=i,E=this.peekCodePoint(0),k=this.peekCodePoint(1);if(Ui(v,E,k))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(Ao(v,E,k))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===ve&&k===z0)return this.consumeCodePoint(),this.consumeCodePoint(),NC;break;case Xn:if(Ui(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case kl:if(this.peekCodePoint(0)===Fi)for(this.consumeCodePoint();;){var K=this.consumeCodePoint();if(K===Fi&&(K=this.consumeCodePoint(),K===kl))return this.consumeToken();if(K===Xe)return this.consumeToken()}break;case eC:return LC;case tC:return kC;case G0:if(this.peekCodePoint(0)===P0&&this.peekCodePoint(1)===ve&&this.peekCodePoint(2)===ve)return this.consumeCodePoint(),this.consumeCodePoint(),DC;break;case X0:if(Ao(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case $0:return TC;case Pn:if(Ct(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case W0:return MC;case Y0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),FC;break;case J0:return IC;case Z0:return _C;case cC:case dC:var z=this.peekCodePoint(0),q=this.peekCodePoint(1);return z===Mt&&(rn(q)||q===Zr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Tl:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),bC;if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),UC;break;case j0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),HC;break;case Xe:return bi}return jr(i)?(this.consumeWhiteSpace(),OC):pe(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):qr(i)?(this.reconsumeCodePoint(i),this.consumeIdentLikeToken()):{type:6,value:m(i)}},s.prototype.consumeCodePoint=function(){var i=this._value.shift();return typeof i>"u"?-1:i},s.prototype.reconsumeCodePoint=function(i){this._value.unshift(i)},s.prototype.peekCodePoint=function(i){return i>=this._value.length?-1:this._value[i]},s.prototype.consumeUnicodeRangeToken=function(){for(var i=[],c=this.consumeCodePoint();rn(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===Zr&&i.length<6;)i.push(c),c=this.consumeCodePoint(),l=!0;if(l){var f=parseInt(m.apply(void 0,i.map(function(E){return E===Zr?Ol:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===Zr?Gl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===ve&&rn(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var v=[];rn(c)&&v.length<6;)v.push(c),c=this.consumeCodePoint();var p=parseInt(m.apply(void 0,v),16);return{type:30,start:C,end:p}}else return{type:30,start:C,end:C}},s.prototype.consumeIdentLikeToken=function(){var i=this.consumeName();return i.toLowerCase()==="url"&&this.peekCodePoint(0)===Jr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Jr?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe)return{type:22,value:""};var c=this.peekCodePoint(0);if(c===Yr||c===Wr){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe||this.peekCodePoint(0)===zn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),eo)}for(;;){var f=this.consumeCodePoint();if(f===Xe||f===zn)return{type:22,value:m.apply(void 0,i)};if(jr(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe||this.peekCodePoint(0)===zn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),eo);if(f===Wr||f===Yr||f===Jr||wC(f))return this.consumeBadUrlRemnants(),eo;if(f===Pn)if(Ct(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),eo;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;jr(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===zn||i===Xe)return;Ct(i,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},s.prototype.consumeStringSlice=function(i){for(var c=5e4,l="";i>0;){var f=Math.min(c,i);l+=m.apply(void 0,this._value.splice(0,f)),i-=f}return this._value.shift(),l},s.prototype.consumeStringToken=function(i){var c="",l=0;do{var f=this._value[l];if(f===Xe||f===void 0||f===i)return c+=this.consumeStringSlice(l),{type:0,value:c};if(f===$r)return this._value.splice(0,l),xC;if(f===Pn){var p=this._value[l+1];p!==Xe&&p!==void 0&&(p===$r?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):Ct(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=Vn,l=this.peekCodePoint(0);for((l===Mt||l===ve)&&i.push(this.consumeCodePoint());pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===Xn&&pe(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ll;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Pl||l===Rl)&&((f===Mt||f===ve)&&pe(p)||pe(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ll;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[CC(i),c]},s.prototype.consumeNumericToken=function(){var i=this.consumeNumber(),c=i[0],l=i[1],f=this.peekCodePoint(0);return Ao(f,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:c,flags:l,unit:this.consumeName()}:f===R0?(this.consumeCodePoint(),{type:16,number:c,flags:l}):{type:17,number:c,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(rn(i)){for(var c=m(i);rn(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());jr(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||gC(l)||l>1114111?Ml:l}return i===Xe?Ml:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(zl(c))i+=m(c);else if(Ct(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),$l=(function(){function s(i){this._tokens=i}return s.create=function(i){var c=new Xl;return c.write(i),new s(c.read())},s.parseValue=function(i){return s.create(i).parseComponentValue()},s.parseValues=function(i){return s.create(i).parseComponentValues()},s.prototype.parseComponentValue=function(){for(var i=this.consumeToken();i.type===31;)i=this.consumeToken();if(i.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(i);var c=this.consumeComponentValue();do i=this.consumeToken();while(i.type===31);if(i.type===32)return c;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},s.prototype.parseComponentValues=function(){for(var i=[];;){var c=this.consumeComponentValue();if(c.type===32)return i;i.push(c),i.push()}},s.prototype.consumeComponentValue=function(){var i=this.consumeToken();switch(i.type){case 11:case 28:case 2:return this.consumeSimpleBlock(i.type);case 19:return this.consumeFunction(i)}return i},s.prototype.consumeSimpleBlock=function(i){for(var c={type:i,values:[]},l=this.consumeToken();;){if(l.type===32||RC(l,i))return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue()),l=this.consumeToken()}},s.prototype.consumeFunction=function(i){for(var c={name:i.value,values:[],type:18};;){var l=this.consumeToken();if(l.type===32||l.type===3)return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue())}},s.prototype.consumeToken=function(){var i=this._tokens.shift();return typeof i>"u"?bi:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),$n=function(s){return s.type===15},on=function(s){return s.type===17},JA=function(s){return s.type===20},KC=function(s){return s.type===0},Hi=function(s,i){return JA(s)&&s.value===i},Wl=function(s){return s.type!==31},sn=function(s){return s.type!==31&&s.type!==4},$e=function(s){var i=[],c=[];return s.forEach(function(l){if(l.type===4){if(c.length===0)throw new Error("Error parsing function args, zero tokens for arg");i.push(c),c=[];return}l.type!==31&&c.push(l)}),c.length&&i.push(c),i},RC=function(s,i){return i===11&&s.type===12||i===28&&s.type===29?!0:i===2&&s.type===3},yt=function(s){return s.type===17||s.type===15},le=function(s){return s.type===16||yt(s)},Yl=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},ge={type:17,number:0,flags:Vn},Ii={type:16,number:50,flags:Vn},vt={type:16,number:100,flags:Vn},Wn=function(s,i,c){var l=s[0],f=s[1];return[jA(l,i),jA(typeof f<"u"?f:l,c)]},jA=function(s,i){if(s.type===16)return s.number/100*i;if($n(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},Jl="deg",Zl="grad",jl="rad",ql="turn",to={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case Jl:return Math.PI*i.number/180;case Zl:return Math.PI/200*i.number;case jl:return i.number;case ql:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},Ac=function(s){return s.type===15&&(s.unit===Jl||s.unit===Zl||s.unit===jl||s.unit===ql)},ec=function(s){switch(s.filter(JA).map(function(i){return i.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ge,ge];case"to top":case"bottom":return _e(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ge,vt];case"to right":case"left":return _e(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[vt,vt];case"to bottom":case"top":return _e(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[vt,ge];case"to left":case"right":return _e(270)}return 0},_e=function(s){return Math.PI*s/180},Qt={name:"color",parse:function(s,i){if(i.type===18){var c=VC[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported color function "'+i.name+'"');return c(s,i.values)}if(i.type===5){if(i.value.length===3){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3);return Ft(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),1)}if(i.value.length===4){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3),C=i.value.substring(3,4);return Ft(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),parseInt(C+C,16)/255)}if(i.value.length===6){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6);return Ft(parseInt(l,16),parseInt(f,16),parseInt(p,16),1)}if(i.value.length===8){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6),C=i.value.substring(6,8);return Ft(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var v=at[i.value.toUpperCase()];if(typeof v<"u")return v}return at.TRANSPARENT}},Et=function(s){return(255&s)===0},fe=function(s){var i=255&s,c=255&s>>8,l=255&s>>16,f=255&s>>24;return i<255?"rgba("+f+","+l+","+c+","+i/255+")":"rgb("+f+","+l+","+c+")"},Ft=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},tc=function(s,i){if(s.type===17)return s.number;if(s.type===16){var c=i===3?1:255;return i===3?s.number/100*c:Math.round(s.number/100*c)}return 0},nc=function(s,i){var c=i.filter(sn);if(c.length===3){var l=c.map(tc),f=l[0],p=l[1],C=l[2];return Ft(f,p,C,1)}if(c.length===4){var v=c.map(tc),f=v[0],p=v[1],C=v[2],E=v[3];return Ft(f,p,C,E)}return 0};function _i(s,i,c){return c<0&&(c+=1),c>=1&&(c-=1),c<1/6?(i-s)*c*6+s:c<1/2?i:c<2/3?(i-s)*6*(2/3-c)+s:s}var rc=function(s,i){var c=i.filter(sn),l=c[0],f=c[1],p=c[2],C=c[3],v=(l.type===17?_e(l.number):to.parse(s,l))/(Math.PI*2),E=le(f)?f.number/100:0,k=le(p)?p.number/100:0,K=typeof C<"u"&&le(C)?jA(C,1):1;if(E===0)return Ft(k*255,k*255,k*255,1);var z=k<=.5?k*(E+1):k+E-k*E,q=k*2-z,CA=_i(q,z,v+1/3),fA=_i(q,z,v),mA=_i(q,z,v-1/3);return Ft(CA*255,fA*255,mA*255,K)},VC={hsl:rc,hsla:rc,rgb:nc,rgba:nc},Yn=function(s,i){return Qt.parse(s,$l.create(i).parseComponentValue())},at={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},PC={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(JA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},GC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},no=function(s,i){var c=Qt.parse(s,i[0]),l=i[1];return l&&le(l)?{color:c,stop:l}:{color:c,stop:null}},oc=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=ge),l.stop===null&&(l.stop=vt);for(var f=[],p=0,C=0;C<s.length;C++){var v=s[C].stop;if(v!==null){var E=jA(v,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var k=null,C=0;C<f.length;C++){var K=f[C];if(K===null)k===null&&(k=C);else if(k!==null){for(var z=C-k,q=(K-f[k-1])/(z+1),CA=1;CA<=z;CA++)f[k+CA-1]=q*CA;k=null}}return s.map(function(fA,mA){return{color:fA.color,stop:Math.max(Math.min(1,f[mA]/i),0)}})},zC=function(s,i,c){var l=i/2,f=c/2,p=jA(s[0],i)-l,C=f-jA(s[1],c);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},XC=function(s,i,c){var l=typeof s=="number"?s:zC(s,i,c),f=Math.abs(i*Math.sin(l))+Math.abs(c*Math.cos(l)),p=i/2,C=c/2,v=f/2,E=Math.sin(l-Math.PI/2)*v,k=Math.cos(l-Math.PI/2)*v;return[f,p-k,p+k,C-E,C+E]},Oe=function(s,i){return Math.sqrt(s*s+i*i)},ic=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var v=C[0],E=C[1],k=Oe(c-v,l-E);return(f?k<p.optimumDistance:k>p.optimumDistance)?{optimumCorner:C,optimumDistance:k}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},$C=function(s,i,c,l,f){var p=0,C=0;switch(s.size){case 0:s.shape===0?p=C=Math.min(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.min(Math.abs(i),Math.abs(i-l)),C=Math.min(Math.abs(c),Math.abs(c-f)));break;case 2:if(s.shape===0)p=C=Math.min(Oe(i,c),Oe(i,c-f),Oe(i-l,c),Oe(i-l,c-f));else if(s.shape===1){var v=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=ic(l,f,i,c,!0),k=E[0],K=E[1];p=Oe(k-i,(K-c)/v),C=v*p}break;case 1:s.shape===0?p=C=Math.max(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.max(Math.abs(i),Math.abs(i-l)),C=Math.max(Math.abs(c),Math.abs(c-f)));break;case 3:if(s.shape===0)p=C=Math.max(Oe(i,c),Oe(i,c-f),Oe(i-l,c),Oe(i-l,c-f));else if(s.shape===1){var v=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),z=ic(l,f,i,c,!1),k=z[0],K=z[1];p=Oe(k-i,(K-c)/v),C=v*p}break}return Array.isArray(s.size)&&(p=jA(s.size[0],l),C=s.size.length===2?jA(s.size[1],f):p),[p,C]},WC=function(s,i){var c=_e(180),l=[];return $e(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=ec(f);return}else if(Ac(C)){c=to.parse(s,C);return}}var v=no(s,f);l.push(v)}),{angle:c,stops:l,type:1}},ro=function(s,i){var c=_e(180),l=[];return $e(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&["top","left","right","bottom"].indexOf(C.value)!==-1){c=ec(f);return}else if(Ac(C)){c=(to.parse(s,C)+_e(270))%_e(360);return}}var v=no(s,f);l.push(v)}),{angle:c,stops:l,type:1}},YC=function(s,i){var c=_e(180),l=[],f=1,p=0,C=3,v=[];return $e(i).forEach(function(E,k){var K=E[0];if(k===0){if(JA(K)&&K.value==="linear"){f=1;return}else if(JA(K)&&K.value==="radial"){f=2;return}}if(K.type===18){if(K.name==="from"){var z=Qt.parse(s,K.values[0]);l.push({stop:ge,color:z})}else if(K.name==="to"){var z=Qt.parse(s,K.values[0]);l.push({stop:vt,color:z})}else if(K.name==="color-stop"){var q=K.values.filter(sn);if(q.length===2){var z=Qt.parse(s,q[1]),CA=q[0];on(CA)&&l.push({stop:{type:16,number:CA.number*100,flags:CA.flags},color:z})}}}}),f===1?{angle:(c+_e(180))%_e(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:v,type:f}},sc="closest-side",ac="farthest-side",lc="closest-corner",cc="farthest-corner",uc="circle",dc="ellipse",fc="cover",gc="contain",JC=function(s,i){var c=0,l=3,f=[],p=[];return $e(i).forEach(function(C,v){var E=!0;if(v===0){var k=!1;E=C.reduce(function(z,q){if(k)if(JA(q))switch(q.value){case"center":return p.push(Ii),z;case"top":case"left":return p.push(ge),z;case"right":case"bottom":return p.push(vt),z}else(le(q)||yt(q))&&p.push(q);else if(JA(q))switch(q.value){case uc:return c=0,!1;case dc:return c=1,!1;case"at":return k=!0,!1;case sc:return l=0,!1;case fc:case ac:return l=1,!1;case gc:case lc:return l=2,!1;case cc:return l=3,!1}else if(yt(q)||le(q))return Array.isArray(l)||(l=[]),l.push(q),!1;return z},E)}if(E){var K=no(s,C);f.push(K)}}),{size:l,shape:c,stops:f,position:p,type:2}},oo=function(s,i){var c=0,l=3,f=[],p=[];return $e(i).forEach(function(C,v){var E=!0;if(v===0?E=C.reduce(function(K,z){if(JA(z))switch(z.value){case"center":return p.push(Ii),!1;case"top":case"left":return p.push(ge),!1;case"right":case"bottom":return p.push(vt),!1}else if(le(z)||yt(z))return p.push(z),!1;return K},E):v===1&&(E=C.reduce(function(K,z){if(JA(z))switch(z.value){case uc:return c=0,!1;case dc:return c=1,!1;case gc:case sc:return l=0,!1;case ac:return l=1,!1;case lc:return l=2,!1;case fc:case cc:return l=3,!1}else if(yt(z)||le(z))return Array.isArray(l)||(l=[]),l.push(z),!1;return K},E)),E){var k=no(s,C);f.push(k)}}),{size:l,shape:c,stops:f,position:p,type:2}},ZC=function(s){return s.type===1},jC=function(s){return s.type===2},Si={name:"image",parse:function(s,i){if(i.type===22){var c={url:i.value,type:0};return s.cache.addImage(i.value),c}if(i.type===18){var l=hc[i.name];if(typeof l>"u")throw new Error('Attempting to parse an unsupported image function "'+i.name+'"');return l(s,i.values)}throw new Error("Unsupported image type "+i.type)}};function qC(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!hc[s.name])}var hc={"linear-gradient":WC,"-moz-linear-gradient":ro,"-ms-linear-gradient":ro,"-o-linear-gradient":ro,"-webkit-linear-gradient":ro,"radial-gradient":JC,"-moz-radial-gradient":oo,"-ms-radial-gradient":oo,"-o-radial-gradient":oo,"-webkit-radial-gradient":oo,"-webkit-gradient":YC},Ay={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i.filter(function(l){return sn(l)&&qC(l)}).map(function(l){return Si.parse(s,l)})}},ey={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(JA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ty={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return $e(i).map(function(c){return c.filter(le)}).map(Yl)}},ny={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return $e(i).map(function(c){return c.filter(JA).map(function(l){return l.value}).join(" ")}).map(ry)}},ry=function(s){switch(s){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},an;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(an||(an={}));var oy={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return $e(i).map(function(c){return c.filter(iy)})}},iy=function(s){return JA(s)||le(s)},io=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},sy=io("top"),ay=io("right"),ly=io("bottom"),cy=io("left"),so=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return Yl(c.filter(le))}}},uy=so("top-left"),dy=so("top-right"),fy=so("bottom-right"),gy=so("bottom-left"),ao=function(s){return{name:"border-"+s+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(i,c){switch(c){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},hy=ao("top"),By=ao("right"),py=ao("bottom"),my=ao("left"),lo=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return $n(c)?c.number:0}}},wy=lo("top"),Cy=lo("right"),yy=lo("bottom"),vy=lo("left"),Qy={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ey={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},Fy={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).reduce(function(c,l){return c|Uy(l.value)},0)}},Uy=function(s){switch(s){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},by={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Hy={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(s,i){return i.type===20&&i.value==="normal"?0:i.type===17||i.type===15?i.number:0}},co;(function(s){s.NORMAL="normal",s.STRICT="strict"})(co||(co={}));var Iy={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?co.STRICT:co.NORMAL}},_y={name:"line-height",initialValue:"normal",prefix:!1,type:4},Bc=function(s,i){return JA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:le(s)?jA(s,i):i},Sy={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:Si.parse(s,i)}},xy={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},xi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},uo=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Dy=uo("top"),Ny=uo("right"),Ly=uo("bottom"),ky=uo("left"),Ty={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).map(function(c){switch(c.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},My={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},fo=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Oy=fo("top"),Ky=fo("right"),Ry=fo("bottom"),Vy=fo("left"),Py={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(s,i){switch(i){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Gy={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(s,i){switch(i){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},zy={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Hi(i[0],"none")?[]:$e(i).map(function(c){for(var l={color:at.TRANSPARENT,offsetX:ge,offsetY:ge,blur:ge},f=0,p=0;p<c.length;p++){var C=c[p];yt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=Qt.parse(s,C)}return l})}},Xy={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},$y={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(s,i){if(i.type===20&&i.value==="none")return null;if(i.type===18){var c=Jy[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported transform function "'+i.name+'"');return c(i.values)}return null}},Wy=function(s){var i=s.filter(function(c){return c.type===17}).map(function(c){return c.number});return i.length===6?i:null},Yy=function(s){var i=s.filter(function(E){return E.type===17}).map(function(E){return E.number}),c=i[0],l=i[1];i[2],i[3];var f=i[4],p=i[5];i[6],i[7],i[8],i[9],i[10],i[11];var C=i[12],v=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,v]:null},Jy={matrix:Wy,matrix3d:Yy},pc={type:16,number:50,flags:Vn},Zy=[pc,pc],jy={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(le);return c.length!==2?Zy:[c[0],c[1]]}},qy={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Jn;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(Jn||(Jn={}));for(var Av={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return Jn.BREAK_ALL;case"keep-all":return Jn.KEEP_ALL;default:return Jn.NORMAL}}},ev={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(on(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},mc={name:"time",parse:function(s,i){if(i.type===15)switch(i.unit.toLowerCase()){case"s":return 1e3*i.number;case"ms":return i.number}throw new Error("Unsupported time type")}},tv={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return on(i)?i.number:1}},nv={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rv={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).map(function(c){switch(c.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(c){return c!==0})}},ov={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(s,i){var c=[],l=[];return i.forEach(function(f){switch(f.type){case 20:case 0:c.push(f.value);break;case 17:c.push(f.number.toString());break;case 4:l.push(c.join(" ")),c.length=0;break}}),c.length&&l.push(c.join(" ")),l.map(function(f){return f.indexOf(" ")===-1?f:"'"+f+"'"})}},iv={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},sv={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return on(i)?i.number:JA(i)&&i.value==="bold"?700:400}},av={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(JA).map(function(c){return c.value})}},lv={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},de=function(s,i){return(s&i)!==0},cv={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i}},uv={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;for(var l=[],f=i.filter(Wl),p=0;p<f.length;p++){var C=f[p],v=f[p+1];if(C.type===20){var E=v&&on(v)?v.number:1;l.push({counter:C.value,increment:E})}}return l}},dv={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var c=[],l=i.filter(Wl),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(JA(p)&&p.value!=="none"){var v=C&&on(C)?C.number:0;c.push({counter:p.value,reset:v})}}return c}},fv={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter($n).map(function(c){return mc.parse(s,c)})}},gv={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;var l=[],f=i.filter(KC);if(f.length%2!==0)return null;for(var p=0;p<f.length;p+=2){var C=f[p].value,v=f[p+1].value;l.push({open:C,close:v})}return l}},wc=function(s,i,c){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?c?l.open:l.close:""},hv={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Hi(i[0],"none")?[]:$e(i).map(function(c){for(var l={color:255,offsetX:ge,offsetY:ge,blur:ge,spread:ge,inset:!1},f=0,p=0;p<c.length;p++){var C=c[p];Hi(C,"inset")?l.inset=!0:yt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=Qt.parse(s,C)}return l})}},Bv={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,i){var c=[0,1,2],l=[];return i.filter(JA).forEach(function(f){switch(f.value){case"stroke":l.push(1);break;case"fill":l.push(0);break;case"markers":l.push(2);break}}),c.forEach(function(f){l.indexOf(f)===-1&&l.push(f)}),l}},pv={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},mv={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return $n(i)?i.number:0}},wv=(function(){function s(i,c){var l,f;this.animationDuration=EA(i,fv,c.animationDuration),this.backgroundClip=EA(i,PC,c.backgroundClip),this.backgroundColor=EA(i,GC,c.backgroundColor),this.backgroundImage=EA(i,Ay,c.backgroundImage),this.backgroundOrigin=EA(i,ey,c.backgroundOrigin),this.backgroundPosition=EA(i,ty,c.backgroundPosition),this.backgroundRepeat=EA(i,ny,c.backgroundRepeat),this.backgroundSize=EA(i,oy,c.backgroundSize),this.borderTopColor=EA(i,sy,c.borderTopColor),this.borderRightColor=EA(i,ay,c.borderRightColor),this.borderBottomColor=EA(i,ly,c.borderBottomColor),this.borderLeftColor=EA(i,cy,c.borderLeftColor),this.borderTopLeftRadius=EA(i,uy,c.borderTopLeftRadius),this.borderTopRightRadius=EA(i,dy,c.borderTopRightRadius),this.borderBottomRightRadius=EA(i,fy,c.borderBottomRightRadius),this.borderBottomLeftRadius=EA(i,gy,c.borderBottomLeftRadius),this.borderTopStyle=EA(i,hy,c.borderTopStyle),this.borderRightStyle=EA(i,By,c.borderRightStyle),this.borderBottomStyle=EA(i,py,c.borderBottomStyle),this.borderLeftStyle=EA(i,my,c.borderLeftStyle),this.borderTopWidth=EA(i,wy,c.borderTopWidth),this.borderRightWidth=EA(i,Cy,c.borderRightWidth),this.borderBottomWidth=EA(i,yy,c.borderBottomWidth),this.borderLeftWidth=EA(i,vy,c.borderLeftWidth),this.boxShadow=EA(i,hv,c.boxShadow),this.color=EA(i,Qy,c.color),this.direction=EA(i,Ey,c.direction),this.display=EA(i,Fy,c.display),this.float=EA(i,by,c.cssFloat),this.fontFamily=EA(i,ov,c.fontFamily),this.fontSize=EA(i,iv,c.fontSize),this.fontStyle=EA(i,lv,c.fontStyle),this.fontVariant=EA(i,av,c.fontVariant),this.fontWeight=EA(i,sv,c.fontWeight),this.letterSpacing=EA(i,Hy,c.letterSpacing),this.lineBreak=EA(i,Iy,c.lineBreak),this.lineHeight=EA(i,_y,c.lineHeight),this.listStyleImage=EA(i,Sy,c.listStyleImage),this.listStylePosition=EA(i,xy,c.listStylePosition),this.listStyleType=EA(i,xi,c.listStyleType),this.marginTop=EA(i,Dy,c.marginTop),this.marginRight=EA(i,Ny,c.marginRight),this.marginBottom=EA(i,Ly,c.marginBottom),this.marginLeft=EA(i,ky,c.marginLeft),this.opacity=EA(i,tv,c.opacity);var p=EA(i,Ty,c.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=EA(i,My,c.overflowWrap),this.paddingTop=EA(i,Oy,c.paddingTop),this.paddingRight=EA(i,Ky,c.paddingRight),this.paddingBottom=EA(i,Ry,c.paddingBottom),this.paddingLeft=EA(i,Vy,c.paddingLeft),this.paintOrder=EA(i,Bv,c.paintOrder),this.position=EA(i,Gy,c.position),this.textAlign=EA(i,Py,c.textAlign),this.textDecorationColor=EA(i,nv,(l=c.textDecorationColor)!==null&&l!==void 0?l:c.color),this.textDecorationLine=EA(i,rv,(f=c.textDecorationLine)!==null&&f!==void 0?f:c.textDecoration),this.textShadow=EA(i,zy,c.textShadow),this.textTransform=EA(i,Xy,c.textTransform),this.transform=EA(i,$y,c.transform),this.transformOrigin=EA(i,jy,c.transformOrigin),this.visibility=EA(i,qy,c.visibility),this.webkitTextStrokeColor=EA(i,pv,c.webkitTextStrokeColor),this.webkitTextStrokeWidth=EA(i,mv,c.webkitTextStrokeWidth),this.wordBreak=EA(i,Av,c.wordBreak),this.zIndex=EA(i,ev,c.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return Et(this.backgroundColor)},s.prototype.isTransformed=function(){return this.transform!==null},s.prototype.isPositioned=function(){return this.position!==0},s.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},s.prototype.isFloating=function(){return this.float!==0},s.prototype.isInlineLevel=function(){return de(this.display,4)||de(this.display,33554432)||de(this.display,268435456)||de(this.display,536870912)||de(this.display,67108864)||de(this.display,134217728)},s})(),Cv=(function(){function s(i,c){this.content=EA(i,cv,c.content),this.quotes=EA(i,gv,c.quotes)}return s})(),Cc=(function(){function s(i,c){this.counterIncrement=EA(i,uv,c.counterIncrement),this.counterReset=EA(i,dv,c.counterReset)}return s})(),EA=function(s,i,c){var l=new Xl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new $l(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,JA(C)?C.value:i.initialValue);case 0:return i.parse(s,p.parseComponentValue());case 1:return i.parse(s,p.parseComponentValues());case 4:return p.parseComponentValue();case 3:switch(i.format){case"angle":return to.parse(s,p.parseComponentValue());case"color":return Qt.parse(s,p.parseComponentValue());case"image":return Si.parse(s,p.parseComponentValue());case"length":var v=p.parseComponentValue();return yt(v)?v:ge;case"length-percentage":var E=p.parseComponentValue();return le(E)?E:ge;case"time":return mc.parse(s,p.parseComponentValue())}break}},yv="data-html2canvas-debug",vv=function(s){switch(s.getAttribute(yv)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Di=function(s,i){var c=vv(s);return c===1||i===c},We=(function(){function s(i,c){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,Di(c,3))debugger;this.styles=new wv(i,window.getComputedStyle(c,null)),$i(c)&&(this.styles.animationDuration.some(function(l){return l>0})&&(c.style.animationDuration="0s"),this.styles.transform!==null&&(c.style.transform="none")),this.bounds=g(this.context,c),Di(c,4)&&(this.flags|=16)}return s})(),Qv="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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gFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGV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AZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAA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4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",yc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zn=typeof Uint8Array>"u"?[]:new Uint8Array(256),go=0;go<yc.length;go++)Zn[yc.charCodeAt(go)]=go;for(var Ev=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,v,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var k=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),K=Array.isArray(k)?k:new Uint8Array(k);for(l=0;l<c;l+=4)p=Zn[s.charCodeAt(l)],C=Zn[s.charCodeAt(l+1)],v=Zn[s.charCodeAt(l+2)],E=Zn[s.charCodeAt(l+3)],K[f++]=p<<2|C>>4,K[f++]=(C&15)<<4|v>>2,K[f++]=(v&3)<<6|E&63;return k},Fv=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},Uv=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},Ot=5,Ni=11,Li=2,bv=Ni-Ot,vc=65536>>Ot,ki=(1<<Ot)-1,Hv=vc+(1024>>Ot)+32,Iv=65536>>Ni,_v=(1<<bv)-1,Qc=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},Sv=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},xv=function(s,i){var c=Ev(s),l=Array.isArray(c)?Uv(c):new Uint32Array(c),f=Array.isArray(c)?Fv(c):new Uint16Array(c),p=24,C=Qc(f,p/2,l[4]/2),v=l[5]===2?Qc(f,(p+l[4])/2):Sv(l,Math.ceil((p+l[4])/4));return new Dv(l[0],l[1],l[2],l[3],C,v)},Dv=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>Ot],c=(c<<Li)+(i&ki),this.data[c];if(i<=65535)return c=this.index[vc+(i-55296>>Ot)],c=(c<<Li)+(i&ki),this.data[c];if(i<this.highStart)return c=Hv-Iv+(i>>Ni),c=this.index[c],c+=i>>Ot&_v,c=this.index[c],c=(c<<Li)+(i&ki),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nv=typeof Uint8Array>"u"?[]:new Uint8Array(256),ho=0;ho<Ec.length;ho++)Nv[Ec.charCodeAt(ho)]=ho;var Lv=1,Ti=2,Mi=3,Fc=4,Uc=5,kv=7,bc=8,Oi=9,Ki=10,Hc=11,Ic=12,_c=13,Sc=14,Ri=15,Tv=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},Mv=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},Ov=xv(Qv),Se="×",Vi="÷",Kv=function(s){return Ov.get(s)},Rv=function(s,i,c){var l=c-2,f=i[l],p=i[c-1],C=i[c];if(p===Ti&&C===Mi)return Se;if(p===Ti||p===Mi||p===Fc||C===Ti||C===Mi||C===Fc)return Vi;if(p===bc&&[bc,Oi,Hc,Ic].indexOf(C)!==-1||(p===Hc||p===Oi)&&(C===Oi||C===Ki)||(p===Ic||p===Ki)&&C===Ki||C===_c||C===Uc||C===kv||p===Lv)return Se;if(p===_c&&C===Sc){for(;f===Uc;)f=i[--l];if(f===Sc)return Se}if(p===Ri&&C===Ri){for(var v=0;f===Ri;)v++,f=i[--l];if(v%2===0)return Se}return Vi},Vv=function(s){var i=Tv(s),c=i.length,l=0,f=0,p=i.map(Kv);return{next:function(){if(l>=c)return{done:!0,value:null};for(var C=Se;l<c&&(C=Rv(i,p,++l))===Se;);if(C!==Se||l===c){var v=Mv.apply(null,i.slice(f,l));return f=l,{value:v,done:!1}}return{done:!0,value:null}}}},Pv=function(s){for(var i=Vv(s),c=[],l;!(l=i.next()).done;)l.value&&c.push(l.value.slice());return c},Gv=function(s){var i=123;if(s.createRange){var c=s.createRange();if(c.getBoundingClientRect){var l=s.createElement("boundtest");l.style.height=i+"px",l.style.display="block",s.body.appendChild(l),c.selectNode(l);var f=c.getBoundingClientRect(),p=Math.round(f.height);if(s.body.removeChild(l),p===i)return!0}}return!1},zv=function(s){var i=s.createElement("boundtest");i.style.width="50px",i.style.display="block",i.style.fontSize="12px",i.style.letterSpacing="0px",i.style.wordSpacing="0px",s.body.appendChild(i);var c=s.createRange();i.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var l=i.firstChild,f=w(l.data).map(function(E){return m(E)}),p=0,C={},v=f.every(function(E,k){c.setStart(l,p),c.setEnd(l,p+E.length);var K=c.getBoundingClientRect();p+=E.length;var z=K.x>C.x||K.y>C.y;return C=K,k===0?!0:z});return s.body.removeChild(i),v},Xv=function(){return typeof new Image().crossOrigin<"u"},$v=function(){return typeof new XMLHttpRequest().responseType=="string"},Wv=function(s){var i=new Image,c=s.createElement("canvas"),l=c.getContext("2d");if(!l)return!1;i.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{l.drawImage(i,0,0),c.toDataURL()}catch{return!1}return!0},xc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},Yv=function(s){var i=s.createElement("canvas"),c=100;i.width=c,i.height=c;var l=i.getContext("2d");if(!l)return Promise.reject(!1);l.fillStyle="rgb(0, 255, 0)",l.fillRect(0,0,c,c);var f=new Image,p=i.toDataURL();f.src=p;var C=Pi(c,c,0,0,f);return l.fillStyle="red",l.fillRect(0,0,c,c),Dc(C).then(function(v){l.drawImage(v,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var k=s.createElement("div");return k.style.backgroundImage="url("+p+")",k.style.height=c+"px",xc(E)?Dc(Pi(c,c,0,0,k)):Promise.reject(!1)}).then(function(v){return l.drawImage(v,0,0),xc(l.getImageData(0,0,c,c).data)}).catch(function(){return!1})},Pi=function(s,i,c,l,f){var p="http://www.w3.org/2000/svg",C=document.createElementNS(p,"svg"),v=document.createElementNS(p,"foreignObject");return C.setAttributeNS(null,"width",s.toString()),C.setAttributeNS(null,"height",i.toString()),v.setAttributeNS(null,"width","100%"),v.setAttributeNS(null,"height","100%"),v.setAttributeNS(null,"x",c.toString()),v.setAttributeNS(null,"y",l.toString()),v.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(v),v.appendChild(f),C},Dc=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){return i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},he={get SUPPORT_RANGE_BOUNDS(){var s=Gv(document);return Object.defineProperty(he,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=he.SUPPORT_RANGE_BOUNDS&&zv(document);return Object.defineProperty(he,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Wv(document);return Object.defineProperty(he,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?Yv(document):Promise.resolve(!1);return Object.defineProperty(he,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Xv();return Object.defineProperty(he,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=$v();return Object.defineProperty(he,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(he,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(he,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},jn=(function(){function s(i,c){this.text=i,this.bounds=c}return s})(),Jv=function(s,i,c,l){var f=qv(i,c),p=[],C=0;return f.forEach(function(v){if(c.textDecorationLine.length||v.trim().length>0)if(he.SUPPORT_RANGE_BOUNDS){var E=Nc(l,C,v.length).getClientRects();if(E.length>1){var k=Gi(v),K=0;k.forEach(function(q){p.push(new jn(q,h.fromDOMRectList(s,Nc(l,K+C,q.length).getClientRects()))),K+=q.length})}else p.push(new jn(v,h.fromDOMRectList(s,E)))}else{var z=l.splitText(v.length);p.push(new jn(v,Zv(s,l))),l=z}else he.SUPPORT_RANGE_BOUNDS||(l=l.splitText(v.length));C+=v.length}),p},Zv=function(s,i){var c=i.ownerDocument;if(c){var l=c.createElement("html2canvaswrapper");l.appendChild(i.cloneNode(!0));var f=i.parentNode;if(f){f.replaceChild(l,i);var p=g(s,l);return l.firstChild&&f.replaceChild(l.firstChild,l),p}}return h.EMPTY},Nc=function(s,i,c){var l=s.ownerDocument;if(!l)throw new Error("Node has no owner document");var f=l.createRange();return f.setStart(s,i),f.setEnd(s,i+c),f},Gi=function(s){if(he.SUPPORT_NATIVE_TEXT_SEGMENTATION){var i=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(i.segment(s)).map(function(c){return c.segment})}return Pv(s)},jv=function(s,i){if(he.SUPPORT_NATIVE_TEXT_SEGMENTATION){var c=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(c.segment(s)).map(function(l){return l.segment})}return eQ(s,i)},qv=function(s,i){return i.letterSpacing!==0?Gi(s):jv(s,i)},AQ=[32,160,4961,65792,65793,4153,4241],eQ=function(s,i){for(var c=N0(s,{lineBreak:i.lineBreak,wordBreak:i.overflowWrap==="break-word"?"break-word":i.wordBreak}),l=[],f,p=function(){if(f.value){var C=w(f.value.slice()),v="";C.forEach(function(E){AQ.indexOf(E)===-1?v+=m(E):(v.length&&l.push(v),l.push(m(E)),v="")}),v.length&&l.push(v)}};!(f=c.next()).done;)p();return l},tQ=(function(){function s(i,c,l){this.text=nQ(c.data,l.textTransform),this.textBounds=Jv(i,this.text,l,c)}return s})(),nQ=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(rQ,oQ);case 2:return s.toUpperCase();default:return s}},rQ=/(^|\s|:|-|\(|\))([a-z])/g,oQ=function(s,i,c){return s.length>0?i+c.toUpperCase():s},Lc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.src=l.currentSrc||l.src,f.intrinsicWidth=l.naturalWidth,f.intrinsicHeight=l.naturalHeight,f.context.cache.addImage(f.src),f}return i})(We),kc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l,f.intrinsicWidth=l.width,f.intrinsicHeight=l.height,f}return i})(We),Tc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=new XMLSerializer,C=g(c,l);return l.setAttribute("width",C.width+"px"),l.setAttribute("height",C.height+"px"),f.svg="data:image/svg+xml,"+encodeURIComponent(p.serializeToString(l)),f.intrinsicWidth=l.width.baseVal.value,f.intrinsicHeight=l.height.baseVal.value,f.context.cache.addImage(f.svg),f}return i})(We),Mc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(We),zi=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.start=l.start,f.reversed=typeof l.reversed=="boolean"&&l.reversed===!0,f}return i})(We),iQ=[{type:15,flags:0,unit:"px",number:3}],sQ=[{type:16,flags:0,number:50}],aQ=function(s){return s.width>s.height?new h(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width<s.height?new h(s.left,s.top+(s.height-s.width)/2,s.width,s.width):s},lQ=function(s){var i=s.type===cQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},Bo="checkbox",po="radio",cQ="password",Oc=707406591,Xi=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;switch(f.type=l.type.toLowerCase(),f.checked=l.checked,f.value=lQ(l),(f.type===Bo||f.type===po)&&(f.styles.backgroundColor=3739148031,f.styles.borderTopColor=f.styles.borderRightColor=f.styles.borderBottomColor=f.styles.borderLeftColor=2779096575,f.styles.borderTopWidth=f.styles.borderRightWidth=f.styles.borderBottomWidth=f.styles.borderLeftWidth=1,f.styles.borderTopStyle=f.styles.borderRightStyle=f.styles.borderBottomStyle=f.styles.borderLeftStyle=1,f.styles.backgroundClip=[0],f.styles.backgroundOrigin=[0],f.bounds=aQ(f.bounds)),f.type){case Bo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=iQ;break;case po:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=sQ;break}return f}return i})(We),Kc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=l.options[l.selectedIndex||0];return f.value=p&&p.text||"",f}return i})(We),Rc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(We),Vc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;f.src=l.src,f.width=parseInt(l.width,10)||0,f.height=parseInt(l.height,10)||0,f.backgroundColor=f.styles.backgroundColor;try{if(l.contentWindow&&l.contentWindow.document&&l.contentWindow.document.documentElement){f.tree=Gc(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?Yn(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):at.TRANSPARENT,C=l.contentWindow.document.body?Yn(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):at.TRANSPARENT;f.backgroundColor=Et(p)?Et(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(We),uQ=["OL","UL","MENU"],mo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,zc(f)&&f.data.trim().length>0)c.textNodes.push(new tQ(s,f,c.styles));else if(ln(f))if(Zc(f)&&f.assignedNodes)f.assignedNodes().forEach(function(v){return mo(s,v,c,l)});else{var C=Pc(s,f);C.styles.isVisible()&&(dQ(f,C,l)?C.flags|=4:fQ(C.styles)&&(C.flags|=2),uQ.indexOf(f.tagName)!==-1&&(C.flags|=8),c.elements.push(C),f.slot,f.shadowRoot?mo(s,f.shadowRoot,C,l):!Co(f)&&!Xc(f)&&!yo(f)&&mo(s,f,C,l))}},Pc=function(s,i){return Yi(i)?new Lc(s,i):$c(i)?new kc(s,i):Xc(i)?new Tc(s,i):gQ(i)?new Mc(s,i):hQ(i)?new zi(s,i):BQ(i)?new Xi(s,i):yo(i)?new Kc(s,i):Co(i)?new Rc(s,i):Yc(i)?new Vc(s,i):new We(s,i)},Gc=function(s,i){var c=Pc(s,i);return c.flags|=4,mo(s,i,c,c),c},dQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||Wi(s)&&c.styles.isTransparent()},fQ=function(s){return s.isPositioned()||s.isFloating()},zc=function(s){return s.nodeType===Node.TEXT_NODE},ln=function(s){return s.nodeType===Node.ELEMENT_NODE},$i=function(s){return ln(s)&&typeof s.style<"u"&&!wo(s)},wo=function(s){return typeof s.className=="object"},gQ=function(s){return s.tagName==="LI"},hQ=function(s){return s.tagName==="OL"},BQ=function(s){return s.tagName==="INPUT"},pQ=function(s){return s.tagName==="HTML"},Xc=function(s){return s.tagName==="svg"},Wi=function(s){return s.tagName==="BODY"},$c=function(s){return s.tagName==="CANVAS"},Wc=function(s){return s.tagName==="VIDEO"},Yi=function(s){return s.tagName==="IMG"},Yc=function(s){return s.tagName==="IFRAME"},Jc=function(s){return s.tagName==="STYLE"},mQ=function(s){return s.tagName==="SCRIPT"},Co=function(s){return s.tagName==="TEXTAREA"},yo=function(s){return s.tagName==="SELECT"},Zc=function(s){return s.tagName==="SLOT"},jc=function(s){return s.tagName.indexOf("-")>0},wQ=(function(){function s(){this.counters={}}return s.prototype.getCounterValue=function(i){var c=this.counters[i];return c&&c.length?c[c.length-1]:1},s.prototype.getCounterValues=function(i){var c=this.counters[i];return c||[]},s.prototype.pop=function(i){var c=this;i.forEach(function(l){return c.counters[l].pop()})},s.prototype.parse=function(i){var c=this,l=i.counterIncrement,f=i.counterReset,p=!0;l!==null&&l.forEach(function(v){var E=c.counters[v.counter];E&&v.increment!==0&&(p=!1,E.length||E.push(1),E[Math.max(0,E.length-1)]+=v.increment)});var C=[];return p&&f.forEach(function(v){var E=c.counters[v.counter];C.push(v.counter),E||(E=c.counters[v.counter]=[]),E.push(v.reset)}),C},s})(),qc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Au={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},CQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},yQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},cn=function(s,i,c,l,f,p){return s<i||s>c?Ar(s,f,p.length>0):l.integers.reduce(function(C,v,E){for(;s>=v;)s-=v,C+=l.values[E];return C},"")+p},eu=function(s,i,c,l){var f="";do c||s--,f=l(s)+f,s/=i;while(s*i>=i);return f},oe=function(s,i,c,l,f){var p=c-i+1;return(s<0?"-":"")+(eu(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Kt=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return eu(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},un=1,Ut=2,bt=4,qn=8,lt=function(s,i,c,l,f,p){if(s<-9999||s>9999)return Ar(s,4,f.length>0);var C=Math.abs(s),v=f;if(C===0)return i[0]+v;for(var E=0;C>0&&E<=4;E++){var k=C%10;k===0&&de(p,un)&&v!==""?v=i[k]+v:k>1||k===1&&E===0||k===1&&E===1&&de(p,Ut)||k===1&&E===1&&de(p,bt)&&s>100||k===1&&E>1&&de(p,qn)?v=i[k]+(E>0?c[E-1]:"")+v:k===1&&E>0&&(v=c[E-1]+v),C=Math.floor(C/10)}return(s<0?l:"")+v},tu="十百千萬",nu="拾佰仟萬",ru="マイナス",Ji="마이너스",Ar=function(s,i,c){var l=c?". ":"",f=c?"、":"",p=c?", ":"",C=c?" ":"";switch(i){case 0:return"•"+C;case 1:return"◦"+C;case 2:return"◾"+C;case 5:var v=oe(s,48,57,!0,l);return v.length<4?"0"+v:v;case 4:return Kt(s,"〇一二三四五六七八九",f);case 6:return cn(s,1,3999,qc,3,l).toLowerCase();case 7:return cn(s,1,3999,qc,3,l);case 8:return oe(s,945,969,!1,l);case 9:return oe(s,97,122,!1,l);case 10:return oe(s,65,90,!1,l);case 11:return oe(s,1632,1641,!0,l);case 12:case 49:return cn(s,1,9999,Au,3,l);case 35:return cn(s,1,9999,Au,3,l).toLowerCase();case 13:return oe(s,2534,2543,!0,l);case 14:case 30:return oe(s,6112,6121,!0,l);case 15:return Kt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Kt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return lt(s,"零一二三四五六七八九",tu,"負",f,Ut|bt|qn);case 47:return lt(s,"零壹貳參肆伍陸柒捌玖",nu,"負",f,un|Ut|bt|qn);case 42:return lt(s,"零一二三四五六七八九",tu,"负",f,Ut|bt|qn);case 41:return lt(s,"零壹贰叁肆伍陆柒捌玖",nu,"负",f,un|Ut|bt|qn);case 26:return lt(s,"〇一二三四五六七八九","十百千万",ru,f,0);case 25:return lt(s,"零壱弐参四伍六七八九","拾百千万",ru,f,un|Ut|bt);case 31:return lt(s,"영일이삼사오육칠팔구","십백천만",Ji,p,un|Ut|bt);case 33:return lt(s,"零一二三四五六七八九","十百千萬",Ji,p,0);case 32:return lt(s,"零壹貳參四五六七八九","拾百千",Ji,p,un|Ut|bt);case 18:return oe(s,2406,2415,!0,l);case 20:return cn(s,1,19999,yQ,3,l);case 21:return oe(s,2790,2799,!0,l);case 22:return oe(s,2662,2671,!0,l);case 22:return cn(s,1,10999,CQ,3,l);case 23:return Kt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Kt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return oe(s,3302,3311,!0,l);case 28:return Kt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Kt(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",f);case 34:return oe(s,3792,3801,!0,l);case 37:return oe(s,6160,6169,!0,l);case 38:return oe(s,4160,4169,!0,l);case 39:return oe(s,2918,2927,!0,l);case 40:return oe(s,1776,1785,!0,l);case 43:return oe(s,3046,3055,!0,l);case 44:return oe(s,3174,3183,!0,l);case 45:return oe(s,3664,3673,!0,l);case 46:return oe(s,3872,3881,!0,l);default:return oe(s,48,57,!0,l)}},ou="data-html2canvas-ignore",iu=(function(){function s(i,c,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=c,this.counters=new wQ,this.quoteDepth=0,!c.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(c.ownerDocument.documentElement,!1)}return s.prototype.toIFrame=function(i,c){var l=this,f=vQ(i,c);if(!f.contentWindow)return Promise.reject("Unable to find iframe window");var p=i.defaultView.pageXOffset,C=i.defaultView.pageYOffset,v=f.contentWindow,E=v.document,k=FQ(f).then(function(){return a(l,void 0,void 0,function(){var K,z;return u(this,function(q){switch(q.label){case 0:return this.scrolledElements.forEach(IQ),v&&(v.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(v.scrollY!==c.top||v.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(v.scrollX-c.left,v.scrollY-c.top,0,0))),K=this.options.onclone,z=this.clonedReferenceElement,typeof z>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:E.fonts&&E.fonts.ready?[4,E.fonts.ready]:[3,2];case 1:q.sent(),q.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,EQ(E)]:[3,4];case 3:q.sent(),q.label=4;case 4:return typeof K=="function"?[2,Promise.resolve().then(function(){return K(E,z)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(bQ(document.doctype)+"<html></html>"),HQ(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),k},s.prototype.createElementClone=function(i){if(Di(i,2))debugger;if($c(i))return this.createCanvasClone(i);if(Wc(i))return this.createVideoClone(i);if(Jc(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return Yi(c)&&(Yi(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),jc(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return Zi(i.style,c),c},s.prototype.createStyleClone=function(i){try{var c=i.sheet;if(c&&c.cssRules){var l=[].slice.call(c.cssRules,0).reduce(function(p,C){return C&&typeof C.cssText=="string"?p+C.cssText:p},""),f=i.cloneNode(!1);return f.textContent=l,f}}catch(p){if(this.context.logger.error("Unable to access cssRules property",p),p.name!=="SecurityError")throw p}return i.cloneNode(!1)},s.prototype.createCanvasClone=function(i){var c;if(this.options.inlineImages&&i.ownerDocument){var l=i.ownerDocument.createElement("img");try{return l.src=i.toDataURL(),l}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",i)}}var f=i.cloneNode(!1);try{f.width=i.width,f.height=i.height;var p=i.getContext("2d"),C=f.getContext("2d");if(C)if(!this.options.allowTaint&&p)C.putImageData(p.getImageData(0,0,i.width,i.height),0,0);else{var v=(c=i.getContext("webgl2"))!==null&&c!==void 0?c:i.getContext("webgl");if(v){var E=v.getContextAttributes();E?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",i)}C.drawImage(i,0,0)}return f}catch{this.context.logger.info("Unable to clone canvas as it is tainted",i)}return f},s.prototype.createVideoClone=function(i){var c=i.ownerDocument.createElement("canvas");c.width=i.offsetWidth,c.height=i.offsetHeight;var l=c.getContext("2d");try{return l&&(l.drawImage(i,0,0,c.width,c.height),this.options.allowTaint||l.getImageData(0,0,c.width,c.height)),c}catch{this.context.logger.info("Unable to clone video as it is tainted",i)}var f=i.ownerDocument.createElement("canvas");return f.width=i.offsetWidth,f.height=i.offsetHeight,f},s.prototype.appendChildNode=function(i,c,l){(!ln(c)||!mQ(c)&&!c.hasAttribute(ou)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!ln(c)||!Jc(c))&&i.appendChild(this.cloneNode(c,l))},s.prototype.cloneChildNodes=function(i,c,l){for(var f=this,p=i.shadowRoot?i.shadowRoot.firstChild:i.firstChild;p;p=p.nextSibling)if(ln(p)&&Zc(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(v){return f.appendChildNode(c,v,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(zc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&ln(i)&&($i(i)||wo(i))){var f=this.createElementClone(i);f.style.transitionProperty="none";var p=l.getComputedStyle(i),C=l.getComputedStyle(i,":before"),v=l.getComputedStyle(i,":after");this.referenceElement===i&&$i(f)&&(this.clonedReferenceElement=f),Wi(f)&&xQ(f);var E=this.counters.parse(new Cc(this.context,p)),k=this.resolvePseudoContent(i,f,C,er.BEFORE);jc(i)&&(c=!0),Wc(i)||this.cloneChildNodes(i,f,c),k&&f.insertBefore(k,f.firstChild);var K=this.resolvePseudoContent(i,f,v,er.AFTER);return K&&f.appendChild(K),this.counters.pop(E),(p&&(this.options.copyStyles||wo(i))&&!Yc(i)||c)&&Zi(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(Co(i)||yo(i))&&(Co(f)||yo(f))&&(f.value=i.value),f}return i.cloneNode(!1)},s.prototype.resolvePseudoContent=function(i,c,l,f){var p=this;if(l){var C=l.content,v=c.ownerDocument;if(!(!v||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new Cc(this.context,l));var E=new Cv(this.context,l),k=v.createElement("html2canvaspseudoelement");Zi(l,k),E.content.forEach(function(z){if(z.type===0)k.appendChild(v.createTextNode(z.value));else if(z.type===22){var q=v.createElement("img");q.src=z.value,q.style.opacity="1",k.appendChild(q)}else if(z.type===18){if(z.name==="attr"){var CA=z.values.filter(JA);CA.length&&k.appendChild(v.createTextNode(i.getAttribute(CA[0].value)||""))}else if(z.name==="counter"){var fA=z.values.filter(sn),mA=fA[0],KA=fA[1];if(mA&&JA(mA)){var DA=p.counters.getCounterValue(mA.value),_A=KA&&JA(KA)?xi.parse(p.context,KA.value):3;k.appendChild(v.createTextNode(Ar(DA,_A,!1)))}}else if(z.name==="counters"){var Ae=z.values.filter(sn),mA=Ae[0],zA=Ae[1],KA=Ae[2];if(mA&&JA(mA)){var kA=p.counters.getCounterValues(mA.value),QA=KA&&JA(KA)?xi.parse(p.context,KA.value):3,VA=zA&&zA.type===0?zA.value:"",PA=kA.map(function(Qe){return Ar(Qe,QA,!1)}).join(VA);k.appendChild(v.createTextNode(PA))}}}else if(z.type===20)switch(z.value){case"open-quote":k.appendChild(v.createTextNode(wc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":k.appendChild(v.createTextNode(wc(E.quotes,--p.quoteDepth,!1)));break;default:k.appendChild(v.createTextNode(z.value))}}),k.className=ji+" "+qi;var K=f===er.BEFORE?" "+ji:" "+qi;return wo(c)?c.className.baseValue+=K:c.className+=K,k}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),er;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(er||(er={}));var vQ=function(s,i){var c=s.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=i.width.toString(),c.height=i.height.toString(),c.scrolling="no",c.setAttribute(ou,"true"),s.body.appendChild(c),c},QQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},EQ=function(s){return Promise.all([].slice.call(s.images,0).map(QQ))},FQ=function(s){return new Promise(function(i,c){var l=s.contentWindow;if(!l)return c("No window assigned for iframe");var f=l.document;l.onload=s.onload=function(){l.onload=s.onload=null;var p=setInterval(function(){f.body.childNodes.length>0&&f.readyState==="complete"&&(clearInterval(p),i(s))},50)}})},UQ=["all","d","content"],Zi=function(s,i){for(var c=s.length-1;c>=0;c--){var l=s.item(c);UQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},bQ=function(s){var i="";return s&&(i+="<!DOCTYPE ",s.name&&(i+=s.name),s.internalSubset&&(i+=s.internalSubset),s.publicId&&(i+='"'+s.publicId+'"'),s.systemId&&(i+='"'+s.systemId+'"'),i+=">"),i},HQ=function(s,i,c){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||c!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,c)},IQ=function(s){var i=s[0],c=s[1],l=s[2];i.scrollLeft=c,i.scrollTop=l},_Q=":before",SQ=":after",ji="___html2canvas___pseudoelement_before",qi="___html2canvas___pseudoelement_after",su=`{
|
|
32
32
|
content: "" !important;
|
|
33
33
|
display: none !important;
|
|
34
|
-
}`,
|
|
35
|
-
.`+qi+DQ+su)},LQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},au=(function(){function s(){}return s.getOrigin=function(i){var c=s._link;return c?(c.href=i,c.href=c.href,c.protocol+c.hostname+c.port):"about:blank"},s.isSameOrigin=function(i){return s.getOrigin(i)===s._origin},s.setContext=function(i){s._link=i.document.createElement("a"),s._origin=s.getOrigin(i.location.href)},s._origin="about:blank",s})(),kQ=(function(){function s(i,c){this.context=i,this._options=c,this._cache={}}return s.prototype.addImage=function(i){var c=Promise.resolve();return this.has(i)||(es(i)||KQ(i))&&(this._cache[i]=this.loadImage(i)).catch(function(){}),c},s.prototype.match=function(i){return this._cache[i]},s.prototype.loadImage=function(i){return a(this,void 0,void 0,function(){var c,l,f,p,C=this;return u(this,function(v){switch(v.label){case 0:return c=au.isSameOrigin(i),l=!As(i)&&this._options.useCORS===!0&&he.SUPPORT_CORS_IMAGES&&!c,f=!As(i)&&!c&&!es(i)&&typeof this._options.proxy=="string"&&he.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!As(i)&&!es(i)&&!f&&!l?[2]:(p=i,f?[4,this.proxy(p)]:[3,2]);case 1:p=v.sent(),v.label=2;case 2:return this.context.logger.debug("Added image "+i.substring(0,256)),[4,new Promise(function(E,k){var K=new Image;K.onload=function(){return E(K)},K.onerror=k,(RQ(p)||l)&&(K.crossOrigin="anonymous"),K.src=p,K.complete===!0&&setTimeout(function(){return E(K)},500),C._options.imageTimeout>0&&setTimeout(function(){return k("Timed out ("+C._options.imageTimeout+"ms) loading image")},C._options.imageTimeout)})];case 3:return[2,v.sent()]}})})},s.prototype.has=function(i){return typeof this._cache[i]<"u"},s.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},s.prototype.proxy=function(i){var c=this,l=this._options.proxy;if(!l)throw new Error("No proxy defined");var f=i.substring(0,256);return new Promise(function(p,C){var v=he.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(v==="text")p(E.response);else{var z=new FileReader;z.addEventListener("load",function(){return p(z.result)},!1),z.addEventListener("error",function(q){return C(q)},!1),z.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var k=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+k+"url="+encodeURIComponent(i)+"&responseType="+v),v!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=v),c._options.imageTimeout){var K=c._options.imageTimeout;E.timeout=K,E.ontimeout=function(){return C("Timed out ("+K+"ms) proxying "+f)}}E.send()})},s})(),TQ=/^data:image\/svg\+xml/i,MQ=/^data:image\/.*;base64,/i,OQ=/^data:image\/.*/i,KQ=function(s){return he.SUPPORT_SVG_DRAWING||!VQ(s)},As=function(s){return OQ.test(s)},RQ=function(s){return MQ.test(s)},es=function(s){return s.substr(0,4)==="blob"},VQ=function(s){return s.substr(-3).toLowerCase()==="svg"||TQ.test(s)},yA=(function(){function s(i,c){this.type=0,this.x=i,this.y=c}return s.prototype.add=function(i,c){return new s(this.x+i,this.y+c)},s})(),dn=function(s,i,c){return new yA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},vo=(function(){function s(i,c,l,f){this.type=1,this.start=i,this.startControl=c,this.endControl=l,this.end=f}return s.prototype.subdivide=function(i,c){var l=dn(this.start,this.startControl,i),f=dn(this.startControl,this.endControl,i),p=dn(this.endControl,this.end,i),C=dn(l,f,i),v=dn(f,p,i),E=dn(C,v,i);return c?new s(this.start,l,C,E):new s(E,v,p,this.end)},s.prototype.add=function(i,c){return new s(this.start.add(i,c),this.startControl.add(i,c),this.endControl.add(i,c),this.end.add(i,c))},s.prototype.reverse=function(){return new s(this.end,this.endControl,this.startControl,this.start)},s})(),xe=function(s){return s.type===1},PQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=Wn(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],v=Wn(c.borderTopRightRadius,l.width,l.height),E=v[0],k=v[1],K=Wn(c.borderBottomRightRadius,l.width,l.height),z=K[0],q=K[1],CA=Wn(c.borderBottomLeftRadius,l.width,l.height),fA=CA[0],mA=CA[1],KA=[];KA.push((p+E)/l.width),KA.push((fA+z)/l.width),KA.push((C+mA)/l.height),KA.push((k+q)/l.height);var DA=Math.max.apply(Math,KA);DA>1&&(p/=DA,C/=DA,E/=DA,k/=DA,z/=DA,q/=DA,fA/=DA,mA/=DA);var _A=l.width-E,Ae=l.height-q,zA=l.width-z,kA=l.height-mA,QA=c.borderTopWidth,VA=c.borderRightWidth,PA=c.borderBottomWidth,MA=c.borderLeftWidth,ce=jA(c.paddingTop,i.bounds.width),Qe=jA(c.paddingRight,i.bounds.width),Ie=jA(c.paddingBottom,i.bounds.width),ZA=jA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?ee(l.left+MA/3,l.top+QA/3,p-MA/3,C-QA/3,WA.TOP_LEFT):new yA(l.left+MA/3,l.top+QA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?ee(l.left+_A,l.top+QA/3,E-VA/3,k-QA/3,WA.TOP_RIGHT):new yA(l.left+l.width-VA/3,l.top+QA/3),this.bottomRightBorderDoubleOuterBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA/3,q-PA/3,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA/3,l.top+l.height-PA/3),this.bottomLeftBorderDoubleOuterBox=fA>0||mA>0?ee(l.left+MA/3,l.top+kA,fA-MA/3,mA-PA/3,WA.BOTTOM_LEFT):new yA(l.left+MA/3,l.top+l.height-PA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?ee(l.left+MA*2/3,l.top+QA*2/3,p-MA*2/3,C-QA*2/3,WA.TOP_LEFT):new yA(l.left+MA*2/3,l.top+QA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?ee(l.left+_A,l.top+QA*2/3,E-VA*2/3,k-QA*2/3,WA.TOP_RIGHT):new yA(l.left+l.width-VA*2/3,l.top+QA*2/3),this.bottomRightBorderDoubleInnerBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA*2/3,q-PA*2/3,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA*2/3,l.top+l.height-PA*2/3),this.bottomLeftBorderDoubleInnerBox=fA>0||mA>0?ee(l.left+MA*2/3,l.top+kA,fA-MA*2/3,mA-PA*2/3,WA.BOTTOM_LEFT):new yA(l.left+MA*2/3,l.top+l.height-PA*2/3),this.topLeftBorderStroke=p>0||C>0?ee(l.left+MA/2,l.top+QA/2,p-MA/2,C-QA/2,WA.TOP_LEFT):new yA(l.left+MA/2,l.top+QA/2),this.topRightBorderStroke=p>0||C>0?ee(l.left+_A,l.top+QA/2,E-VA/2,k-QA/2,WA.TOP_RIGHT):new yA(l.left+l.width-VA/2,l.top+QA/2),this.bottomRightBorderStroke=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA/2,q-PA/2,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA/2,l.top+l.height-PA/2),this.bottomLeftBorderStroke=fA>0||mA>0?ee(l.left+MA/2,l.top+kA,fA-MA/2,mA-PA/2,WA.BOTTOM_LEFT):new yA(l.left+MA/2,l.top+l.height-PA/2),this.topLeftBorderBox=p>0||C>0?ee(l.left,l.top,p,C,WA.TOP_LEFT):new yA(l.left,l.top),this.topRightBorderBox=E>0||k>0?ee(l.left+_A,l.top,E,k,WA.TOP_RIGHT):new yA(l.left+l.width,l.top),this.bottomRightBorderBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z,q,WA.BOTTOM_RIGHT):new yA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=fA>0||mA>0?ee(l.left,l.top+kA,fA,mA,WA.BOTTOM_LEFT):new yA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?ee(l.left+MA,l.top+QA,Math.max(0,p-MA),Math.max(0,C-QA),WA.TOP_LEFT):new yA(l.left+MA,l.top+QA),this.topRightPaddingBox=E>0||k>0?ee(l.left+Math.min(_A,l.width-VA),l.top+QA,_A>l.width+VA?0:Math.max(0,E-VA),Math.max(0,k-QA),WA.TOP_RIGHT):new yA(l.left+l.width-VA,l.top+QA),this.bottomRightPaddingBox=z>0||q>0?ee(l.left+Math.min(zA,l.width-MA),l.top+Math.min(Ae,l.height-PA),Math.max(0,z-VA),Math.max(0,q-PA),WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA,l.top+l.height-PA),this.bottomLeftPaddingBox=fA>0||mA>0?ee(l.left+MA,l.top+Math.min(kA,l.height-PA),Math.max(0,fA-MA),Math.max(0,mA-PA),WA.BOTTOM_LEFT):new yA(l.left+MA,l.top+l.height-PA),this.topLeftContentBox=p>0||C>0?ee(l.left+MA+ZA,l.top+QA+ce,Math.max(0,p-(MA+ZA)),Math.max(0,C-(QA+ce)),WA.TOP_LEFT):new yA(l.left+MA+ZA,l.top+QA+ce),this.topRightContentBox=E>0||k>0?ee(l.left+Math.min(_A,l.width+MA+ZA),l.top+QA+ce,_A>l.width+MA+ZA?0:E-MA+ZA,k-(QA+ce),WA.TOP_RIGHT):new yA(l.left+l.width-(VA+Qe),l.top+QA+ce),this.bottomRightContentBox=z>0||q>0?ee(l.left+Math.min(zA,l.width-(MA+ZA)),l.top+Math.min(Ae,l.height+QA+ce),Math.max(0,z-(VA+Qe)),q-(PA+Ie),WA.BOTTOM_RIGHT):new yA(l.left+l.width-(VA+Qe),l.top+l.height-(PA+Ie)),this.bottomLeftContentBox=fA>0||mA>0?ee(l.left+MA+ZA,l.top+kA,Math.max(0,fA-(MA+ZA)),mA-(PA+Ie),WA.BOTTOM_LEFT):new yA(l.left+MA+ZA,l.top+l.height-(PA+Ie))}return s})(),WA;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=1]="TOP_RIGHT",s[s.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",s[s.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(WA||(WA={}));var ee=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,v=l*p,E=s+c,k=i+l;switch(f){case WA.TOP_LEFT:return new vo(new yA(s,k),new yA(s,k-v),new yA(E-C,i),new yA(E,i));case WA.TOP_RIGHT:return new vo(new yA(s,i),new yA(s+C,i),new yA(E,k-v),new yA(E,k));case WA.BOTTOM_RIGHT:return new vo(new yA(E,i),new yA(E,i+v),new yA(s+C,k),new yA(s,k));case WA.BOTTOM_LEFT:default:return new vo(new yA(E,k),new yA(E-C,k),new yA(s,i+v),new yA(s,i))}},Qo=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},GQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},Eo=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},zQ=(function(){function s(i,c,l){this.offsetX=i,this.offsetY=c,this.matrix=l,this.type=0,this.target=6}return s})(),Fo=(function(){function s(i,c){this.path=i,this.target=c,this.type=1}return s})(),XQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),$Q=function(s){return s.type===0},lu=function(s){return s.type===1},WQ=function(s){return s.type===2},cu=function(s,i){return s.length===i.length?s.some(function(c,l){return c===i[l]}):!1},YQ=function(s,i,c,l,f){return s.map(function(p,C){switch(C){case 0:return p.add(i,c);case 1:return p.add(i+l,c);case 2:return p.add(i+l,c+f);case 3:return p.add(i,c+f)}return p})},uu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),du=(function(){function s(i,c){if(this.container=i,this.parent=c,this.effects=[],this.curves=new PQ(this.container),this.container.styles.opacity<1&&this.effects.push(new XQ(this.container.styles.opacity)),this.container.styles.transform!==null){var l=this.container.bounds.left+this.container.styles.transformOrigin[0].number,f=this.container.bounds.top+this.container.styles.transformOrigin[1].number,p=this.container.styles.transform;this.effects.push(new zQ(l,f,p))}if(this.container.styles.overflowX!==0){var C=Qo(this.curves),v=Eo(this.curves);cu(C,v)?this.effects.push(new Fo(C,6)):(this.effects.push(new Fo(C,2)),this.effects.push(new Fo(v,4)))}}return s.prototype.getEffects=function(i){for(var c=[2,3].indexOf(this.container.styles.position)===-1,l=this.parent,f=this.effects.slice(0);l;){var p=l.effects.filter(function(E){return!lu(E)});if(c||l.container.styles.position!==0||!l.parent){if(f.unshift.apply(f,p),c=[2,3].indexOf(l.container.styles.position)===-1,l.container.styles.overflowX!==0){var C=Qo(l.curves),v=Eo(l.curves);cu(C,v)||f.unshift(new Fo(v,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return de(E.target,i)})},s})(),ts=function(s,i,c,l){s.container.elements.forEach(function(f){var p=de(f.flags,4),C=de(f.flags,2),v=new du(f,s);de(f.styles.display,2048)&&l.push(v);var E=de(f.flags,8)?[]:l;if(p||C){var k=p||f.styles.isPositioned()?c:i,K=new uu(v);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var z=f.styles.zIndex.order;if(z<0){var q=0;k.negativeZIndex.some(function(fA,mA){return z>fA.element.container.styles.zIndex.order?(q=mA,!1):q>0}),k.negativeZIndex.splice(q,0,K)}else if(z>0){var CA=0;k.positiveZIndex.some(function(fA,mA){return z>=fA.element.container.styles.zIndex.order?(CA=mA+1,!1):CA>0}),k.positiveZIndex.splice(CA,0,K)}else k.zeroOrAutoZIndexOrTransformedOrOpacity.push(K)}else f.styles.isFloating()?k.nonPositionedFloats.push(K):k.nonPositionedInlineLevel.push(K);ts(v,K,p?K:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(v):i.nonInlineLevel.push(v),ts(v,i,c,E);de(f.flags,8)&&fu(f,E)})},fu=function(s,i){for(var c=s instanceof zi?s.start:1,l=s instanceof zi?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof Mc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=Ar(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},JQ=function(s){var i=new du(s,null),c=new uu(i),l=[];return ts(i,c,c,l),fu(i.container,l),c},gu=function(s,i){switch(i){case 0:return De(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return De(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return De(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return De(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},ZQ=function(s,i){switch(i){case 0:return De(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return De(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return De(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return De(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},jQ=function(s,i){switch(i){case 0:return De(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return De(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return De(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return De(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},qQ=function(s,i){switch(i){case 0:return Uo(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Uo(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Uo(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Uo(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Uo=function(s,i){var c=[];return xe(s)?c.push(s.subdivide(.5,!1)):c.push(s),xe(i)?c.push(i.subdivide(.5,!0)):c.push(i),c},De=function(s,i,c,l){var f=[];return xe(s)?f.push(s.subdivide(.5,!1)):f.push(s),xe(c)?f.push(c.subdivide(.5,!0)):f.push(c),xe(l)?f.push(l.subdivide(.5,!0).reverse()):f.push(l),xe(i)?f.push(i.subdivide(.5,!1).reverse()):f.push(i),f},hu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},bo=function(s){var i=s.styles,c=s.bounds,l=jA(i.paddingLeft,c.width),f=jA(i.paddingRight,c.width),p=jA(i.paddingTop,c.width),C=jA(i.paddingBottom,c.width);return c.add(l+i.borderLeftWidth,p+i.borderTopWidth,-(i.borderRightWidth+i.borderLeftWidth+l+f),-(i.borderTopWidth+i.borderBottomWidth+p+C))},AE=function(s,i){return s===0?i.bounds:s===2?bo(i):hu(i)},eE=function(s,i){return s===0?i.bounds:s===2?bo(i):hu(i)},ns=function(s,i,c){var l=AE(gn(s.styles.backgroundOrigin,i),s),f=eE(gn(s.styles.backgroundClip,i),s),p=tE(gn(s.styles.backgroundSize,i),c,l),C=p[0],v=p[1],E=Wn(gn(s.styles.backgroundPosition,i),l.width-C,l.height-v);return[nE(gn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,v]},fn=function(s){return JA(s)&&s.value===an.AUTO},Ho=function(s){return typeof s=="number"},tE=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],v=s[1];if(!C)return[0,0];if(le(C)&&v&&le(v))return[jA(C,c.width),jA(v,c.height)];var E=Ho(p);if(JA(C)&&(C.value===an.CONTAIN||C.value===an.COVER))return Ho(p)?c.width/c.height<p!=(C.value===an.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var k=Ho(l),K=Ho(f),z=k||K;if(fn(C)&&(!v||fn(v)))return k&&K?[l,f]:!E&&!z?[c.width,c.height]:z&&E?[k?l:f*p,K?f:l/p]:[k?l:c.width,K?f:c.height];if(E){var q=0,CA=0;return le(C)?q=jA(C,c.width):le(v)&&(CA=jA(v,c.height)),fn(C)?q=CA*p:(!v||fn(v))&&(CA=q/p),[q,CA]}var fA=null,mA=null;if(le(C)?fA=jA(C,c.width):v&&le(v)&&(mA=jA(v,c.height)),fA!==null&&(!v||fn(v))&&(mA=k&&K?fA/l*f:c.height),mA!==null&&fn(C)&&(fA=k&&K?mA/f*l:c.width),fA!==null&&mA!==null)return[fA,mA];throw new Error("Unable to calculate background-size for element")},gn=function(s,i){var c=s[i];return typeof c>"u"?s[0]:c},nE=function(s,i,c,l,f){var p=i[0],C=i[1],v=c[0],E=c[1];switch(s){case 2:return[new yA(Math.round(l.left),Math.round(l.top+C)),new yA(Math.round(l.left+l.width),Math.round(l.top+C)),new yA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new yA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new yA(Math.round(l.left+p),Math.round(l.top)),new yA(Math.round(l.left+p+v),Math.round(l.top)),new yA(Math.round(l.left+p+v),Math.round(l.height+l.top)),new yA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new yA(Math.round(l.left+p),Math.round(l.top+C)),new yA(Math.round(l.left+p+v),Math.round(l.top+C)),new yA(Math.round(l.left+p+v),Math.round(l.top+C+E)),new yA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new yA(Math.round(f.left),Math.round(f.top)),new yA(Math.round(f.left+f.width),Math.round(f.top)),new yA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new yA(Math.round(f.left),Math.round(f.height+f.top))]}},rE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Bu="Hidden Text",oE=(function(){function s(i){this._data={},this._document=i}return s.prototype.parseMetrics=function(i,c){var l=this._document.createElement("div"),f=this._document.createElement("img"),p=this._document.createElement("span"),C=this._document.body;l.style.visibility="hidden",l.style.fontFamily=i,l.style.fontSize=c,l.style.margin="0",l.style.padding="0",l.style.whiteSpace="nowrap",C.appendChild(l),f.src=rE,f.width=1,f.height=1,f.style.margin="0",f.style.padding="0",f.style.verticalAlign="baseline",p.style.fontFamily=i,p.style.fontSize=c,p.style.margin="0",p.style.padding="0",p.appendChild(this._document.createTextNode(Bu)),l.appendChild(p),l.appendChild(f);var v=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(Bu)),l.style.lineHeight="normal",f.style.verticalAlign="super";var E=f.offsetTop-l.offsetTop+2;return C.removeChild(l),{baseline:v,middle:E}},s.prototype.getMetrics=function(i,c){var l=i+" "+c;return typeof this._data[l]>"u"&&(this._data[l]=this.parseMetrics(i,c)),this._data[l]},s})(),pu=(function(){function s(i,c){this.context=i,this.options=c}return s})(),iE=1e4,sE=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f._activeEffects=[],f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),l.canvas||(f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px"),f.fontMetrics=new oE(document),f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.ctx.textBaseline="bottom",f._activeEffects=[],f.context.logger.debug("Canvas renderer initialized ("+l.width+"x"+l.height+") with scale "+l.scale),f}return i.prototype.applyEffects=function(c){for(var l=this;this._activeEffects.length;)this.popEffect();c.forEach(function(f){return l.applyEffect(f)})},i.prototype.applyEffect=function(c){this.ctx.save(),WQ(c)&&(this.ctx.globalAlpha=c.opacity),$Q(c)&&(this.ctx.translate(c.offsetX,c.offsetY),this.ctx.transform(c.matrix[0],c.matrix[1],c.matrix[2],c.matrix[3],c.matrix[4],c.matrix[5]),this.ctx.translate(-c.offsetX,-c.offsetY)),lu(c)&&(this.path(c.path),this.ctx.clip()),this._activeEffects.push(c)},i.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},i.prototype.renderStack=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return l=c.element.container.styles,l.isVisible()?[4,this.renderStackContent(c)]:[3,2];case 1:f.sent(),f.label=2;case 2:return[2]}})})},i.prototype.renderNode=function(c){return a(this,void 0,void 0,function(){return u(this,function(l){switch(l.label){case 0:if(de(c.container.flags,16))debugger;return c.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(c)]:[3,3];case 1:return l.sent(),[4,this.renderNodeContent(c)];case 2:l.sent(),l.label=3;case 3:return[2]}})})},i.prototype.renderTextWithLetterSpacing=function(c,l,f){var p=this;l===0?this.ctx.fillText(c.text,c.bounds.left,c.bounds.top+f):Gi(c.text).reduce(function(C,v){return p.ctx.fillText(v,C,c.bounds.top+f),C+p.ctx.measureText(v).width},c.bounds.left)},i.prototype.createFontStyle=function(c){var l=c.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=dE(c.fontFamily).join(", "),p=$n(c.fontSize)?""+c.fontSize.number+c.fontSize.unit:c.fontSize.number+"px";return[[c.fontStyle,l,c.fontWeight,p,f].join(" "),f,p]},i.prototype.renderTextNode=function(c,l){return a(this,void 0,void 0,function(){var f,p,C,v,E,k,K,z,q=this;return u(this,function(CA){return f=this.createFontStyle(l),p=f[0],C=f[1],v=f[2],this.ctx.font=p,this.ctx.direction=l.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",E=this.fontMetrics.getMetrics(C,v),k=E.baseline,K=E.middle,z=l.paintOrder,c.textBounds.forEach(function(fA){z.forEach(function(mA){switch(mA){case 0:q.ctx.fillStyle=fe(l.color),q.renderTextWithLetterSpacing(fA,l.letterSpacing,k);var KA=l.textShadow;KA.length&&fA.text.trim().length&&(KA.slice(0).reverse().forEach(function(DA){q.ctx.shadowColor=fe(DA.color),q.ctx.shadowOffsetX=DA.offsetX.number*q.options.scale,q.ctx.shadowOffsetY=DA.offsetY.number*q.options.scale,q.ctx.shadowBlur=DA.blur.number,q.renderTextWithLetterSpacing(fA,l.letterSpacing,k)}),q.ctx.shadowColor="",q.ctx.shadowOffsetX=0,q.ctx.shadowOffsetY=0,q.ctx.shadowBlur=0),l.textDecorationLine.length&&(q.ctx.fillStyle=fe(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(DA){switch(DA){case 1:q.ctx.fillRect(fA.bounds.left,Math.round(fA.bounds.top+k),fA.bounds.width,1);break;case 2:q.ctx.fillRect(fA.bounds.left,Math.round(fA.bounds.top),fA.bounds.width,1);break;case 3:q.ctx.fillRect(fA.bounds.left,Math.ceil(fA.bounds.top+K),fA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&fA.text.trim().length&&(q.ctx.strokeStyle=fe(l.webkitTextStrokeColor),q.ctx.lineWidth=l.webkitTextStrokeWidth,q.ctx.lineJoin=window.chrome?"miter":"round",q.ctx.strokeText(fA.text,fA.bounds.left,fA.bounds.top+k)),q.ctx.strokeStyle="",q.ctx.lineWidth=0,q.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=bo(c),C=Eo(l);this.path(C),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(f,0,0,c.intrinsicWidth,c.intrinsicHeight,p.left,p.top,p.width,p.height),this.ctx.restore()}},i.prototype.renderNodeContent=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,v,E,_A,_A,k,K,z,q,zA,CA,fA,kA,mA,KA,DA,_A,Ae,zA,kA;return u(this,function(QA){switch(QA.label){case 0:this.applyEffects(c.getEffects(4)),l=c.container,f=c.curves,p=l.styles,C=0,v=l.textNodes,QA.label=1;case 1:return C<v.length?(E=v[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:QA.sent(),QA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Lc))return[3,8];QA.label=5;case 5:return QA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return _A=QA.sent(),this.renderReplacedElement(l,f,_A),[3,8];case 7:return QA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof kc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof Tc))return[3,12];QA.label=9;case 9:return QA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return _A=QA.sent(),this.renderReplacedElement(l,f,_A),[3,12];case 11:return QA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof Vc&&l.tree?(k=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,k.render(l.tree)]):[3,14];case 13:K=QA.sent(),l.width&&l.height&&this.ctx.drawImage(K,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),QA.label=14;case 14:if(l instanceof Xi&&(z=Math.min(l.bounds.width,l.bounds.height),l.type===Bo?l.checked&&(this.ctx.save(),this.path([new yA(l.bounds.left+z*.39363,l.bounds.top+z*.79),new yA(l.bounds.left+z*.16,l.bounds.top+z*.5549),new yA(l.bounds.left+z*.27347,l.bounds.top+z*.44071),new yA(l.bounds.left+z*.39694,l.bounds.top+z*.5649),new yA(l.bounds.left+z*.72983,l.bounds.top+z*.23),new yA(l.bounds.left+z*.84,l.bounds.top+z*.34085),new yA(l.bounds.left+z*.39363,l.bounds.top+z*.79)]),this.ctx.fillStyle=fe(Oc),this.ctx.fill(),this.ctx.restore()):l.type===po&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+z/2,l.bounds.top+z/2,z/4,0,Math.PI*2,!0),this.ctx.fillStyle=fe(Oc),this.ctx.fill(),this.ctx.restore())),aE(l)&&l.value.length){switch(q=this.createFontStyle(p),zA=q[0],CA=q[1],fA=this.fontMetrics.getMetrics(zA,CA).baseline,this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=cE(l.styles.textAlign),kA=bo(l),mA=0,l.styles.textAlign){case 1:mA+=kA.width/2;break;case 2:mA+=kA.width;break}KA=kA.add(mA,0,0,-kA.height/2+1),this.ctx.save(),this.path([new yA(kA.left,kA.top),new yA(kA.left+kA.width,kA.top),new yA(kA.left+kA.width,kA.top+kA.height),new yA(kA.left,kA.top+kA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jn(l.value,KA),p.letterSpacing,fA),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!de(l.styles.display,2048))return[3,20];if(l.styles.listStyleImage===null)return[3,19];if(DA=l.styles.listStyleImage,DA.type!==0)return[3,18];_A=void 0,Ae=DA.url,QA.label=15;case 15:return QA.trys.push([15,17,,18]),[4,this.context.cache.match(Ae)];case 16:return _A=QA.sent(),this.ctx.drawImage(_A,l.bounds.left-(_A.width+10),l.bounds.top),[3,18];case 17:return QA.sent(),this.context.logger.error("Error loading list-style-image "+Ae),[3,18];case 18:return[3,20];case 19:c.listValue&&l.styles.listStyleType!==-1&&(zA=this.createFontStyle(p)[0],this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",kA=new h(l.bounds.left,l.bounds.top+jA(l.styles.paddingTop,l.bounds.width),l.bounds.width,Bc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jn(c.listValue,kA),p.letterSpacing,Bc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),QA.label=20;case 20:return[2]}})})},i.prototype.renderStackContent=function(c){return a(this,void 0,void 0,function(){var l,f,DA,p,C,DA,v,E,DA,k,K,DA,z,q,DA,CA,fA,DA,mA,KA,DA;return u(this,function(_A){switch(_A.label){case 0:if(de(c.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(c.element)];case 1:_A.sent(),l=0,f=c.negativeZIndex,_A.label=2;case 2:return l<f.length?(DA=f[l],[4,this.renderStack(DA)]):[3,5];case 3:_A.sent(),_A.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(c.element)];case 6:_A.sent(),p=0,C=c.nonInlineLevel,_A.label=7;case 7:return p<C.length?(DA=C[p],[4,this.renderNode(DA)]):[3,10];case 8:_A.sent(),_A.label=9;case 9:return p++,[3,7];case 10:v=0,E=c.nonPositionedFloats,_A.label=11;case 11:return v<E.length?(DA=E[v],[4,this.renderStack(DA)]):[3,14];case 12:_A.sent(),_A.label=13;case 13:return v++,[3,11];case 14:k=0,K=c.nonPositionedInlineLevel,_A.label=15;case 15:return k<K.length?(DA=K[k],[4,this.renderStack(DA)]):[3,18];case 16:_A.sent(),_A.label=17;case 17:return k++,[3,15];case 18:z=0,q=c.inlineLevel,_A.label=19;case 19:return z<q.length?(DA=q[z],[4,this.renderNode(DA)]):[3,22];case 20:_A.sent(),_A.label=21;case 21:return z++,[3,19];case 22:CA=0,fA=c.zeroOrAutoZIndexOrTransformedOrOpacity,_A.label=23;case 23:return CA<fA.length?(DA=fA[CA],[4,this.renderStack(DA)]):[3,26];case 24:_A.sent(),_A.label=25;case 25:return CA++,[3,23];case 26:mA=0,KA=c.positiveZIndex,_A.label=27;case 27:return mA<KA.length?(DA=KA[mA],[4,this.renderStack(DA)]):[3,30];case 28:_A.sent(),_A.label=29;case 29:return mA++,[3,27];case 30:return[2]}})})},i.prototype.mask=function(c){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(c.slice(0).reverse()),this.ctx.closePath()},i.prototype.path=function(c){this.ctx.beginPath(),this.formatPath(c),this.ctx.closePath()},i.prototype.formatPath=function(c){var l=this;c.forEach(function(f,p){var C=xe(f)?f.start:f;p===0?l.ctx.moveTo(C.x,C.y):l.ctx.lineTo(C.x,C.y),xe(f)&&l.ctx.bezierCurveTo(f.startControl.x,f.startControl.y,f.endControl.x,f.endControl.y,f.end.x,f.end.y)})},i.prototype.renderRepeat=function(c,l,f,p){this.path(c),this.ctx.fillStyle=l,this.ctx.translate(f,p),this.ctx.fill(),this.ctx.translate(-f,-p)},i.prototype.resizeImage=function(c,l,f){var p;if(c.width===l&&c.height===f)return c;var C=((p=this.canvas.ownerDocument)!==null&&p!==void 0?p:document).createElement("canvas");return C.width=Math.max(1,l),C.height=Math.max(1,f),C.getContext("2d").drawImage(c,0,0,c.width,c.height,0,0,l,f),C},i.prototype.renderBackgroundImage=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,v,E;return u(this,function(k){switch(k.label){case 0:l=c.styles.backgroundImage.length-1,f=function(K){var z,q,CA,ce,Ee,Fe,ZA,Be,PA,fA,ce,Ee,Fe,ZA,Be,mA,KA,DA,_A,Ae,zA,kA,QA,VA,PA,MA,ce,Qe,Ie,ZA,Be,Ht,Ee,Fe,Rt,Ye,It,Vt,Pt,ct,Gt,ut;return u(this,function(hn){switch(hn.label){case 0:if(K.type!==0)return[3,5];z=void 0,q=K.url,hn.label=1;case 1:return hn.trys.push([1,3,,4]),[4,p.context.cache.match(q)];case 2:return z=hn.sent(),[3,4];case 3:return hn.sent(),p.context.logger.error("Error loading background-image "+q),[3,4];case 4:return z&&(CA=ns(c,l,[z.width,z.height,z.width/z.height]),ce=CA[0],Ee=CA[1],Fe=CA[2],ZA=CA[3],Be=CA[4],PA=p.ctx.createPattern(p.resizeImage(z,ZA,Be),"repeat"),p.renderRepeat(ce,PA,Ee,Fe)),[3,6];case 5:qC(K)?(fA=ns(c,l,[null,null,null]),ce=fA[0],Ee=fA[1],Fe=fA[2],ZA=fA[3],Be=fA[4],mA=WC(K.angle,ZA,Be),KA=mA[0],DA=mA[1],_A=mA[2],Ae=mA[3],zA=mA[4],kA=document.createElement("canvas"),kA.width=ZA,kA.height=Be,QA=kA.getContext("2d"),VA=QA.createLinearGradient(DA,Ae,_A,zA),oc(K.stops,KA).forEach(function(tr){return VA.addColorStop(tr.stop,fe(tr.color))}),QA.fillStyle=VA,QA.fillRect(0,0,ZA,Be),ZA>0&&Be>0&&(PA=p.ctx.createPattern(kA,"repeat"),p.renderRepeat(ce,PA,Ee,Fe))):Ay(K)&&(MA=ns(c,l,[null,null,null]),ce=MA[0],Qe=MA[1],Ie=MA[2],ZA=MA[3],Be=MA[4],Ht=K.position.length===0?[Ii]:K.position,Ee=jA(Ht[0],ZA),Fe=jA(Ht[Ht.length-1],Be),Rt=YC(K,Ee,Fe,ZA,Be),Ye=Rt[0],It=Rt[1],Ye>0&&It>0&&(Vt=p.ctx.createRadialGradient(Qe+Ee,Ie+Fe,0,Qe+Ee,Ie+Fe,Ye),oc(K.stops,Ye*2).forEach(function(tr){return Vt.addColorStop(tr.stop,fe(tr.color))}),p.path(ce),p.ctx.fillStyle=Vt,Ye!==It?(Pt=c.bounds.left+.5*c.bounds.width,ct=c.bounds.top+.5*c.bounds.height,Gt=It/Ye,ut=1/Gt,p.ctx.save(),p.ctx.translate(Pt,ct),p.ctx.transform(1,0,0,Gt,0,0),p.ctx.translate(-Pt,-ct),p.ctx.fillRect(Qe,ut*(Ie-ct)+ct,ZA,Be*ut),p.ctx.restore()):p.ctx.fill())),hn.label=6;case 6:return l--,[2]}})},p=this,C=0,v=c.styles.backgroundImage.slice(0).reverse(),k.label=1;case 1:return C<v.length?(E=v[C],[5,f(E)]):[3,4];case 2:k.sent(),k.label=3;case 3:return C++,[3,1];case 4:return[2]}})})},i.prototype.renderSolidBorder=function(c,l,f){return a(this,void 0,void 0,function(){return u(this,function(p){return this.path(gu(f,l)),this.ctx.fillStyle=fe(c),this.ctx.fill(),[2]})})},i.prototype.renderDoubleBorder=function(c,l,f,p){return a(this,void 0,void 0,function(){var C,v;return u(this,function(E){switch(E.label){case 0:return l<3?[4,this.renderSolidBorder(c,f,p)]:[3,2];case 1:return E.sent(),[2];case 2:return C=ZQ(p,f),this.path(C),this.ctx.fillStyle=fe(c),this.ctx.fill(),v=jQ(p,f),this.path(v),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,v,E,k,K,z=this;return u(this,function(q){switch(q.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!Et(l.backgroundColor)||l.backgroundImage.length,p=[{style:l.borderTopStyle,color:l.borderTopColor,width:l.borderTopWidth},{style:l.borderRightStyle,color:l.borderRightColor,width:l.borderRightWidth},{style:l.borderBottomStyle,color:l.borderBottomColor,width:l.borderBottomWidth},{style:l.borderLeftStyle,color:l.borderLeftColor,width:l.borderLeftWidth}],C=lE(gn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),Et(l.backgroundColor)||(this.ctx.fillStyle=fe(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:q.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(CA){z.ctx.save();var fA=Qo(c.curves),mA=CA.inset?0:iE,KA=YQ(fA,-mA+(CA.inset?1:-1)*CA.spread.number,(CA.inset?1:-1)*CA.spread.number,CA.spread.number*(CA.inset?-2:2),CA.spread.number*(CA.inset?-2:2));CA.inset?(z.path(fA),z.ctx.clip(),z.mask(KA)):(z.mask(fA),z.ctx.clip(),z.path(KA)),z.ctx.shadowOffsetX=CA.offsetX.number+mA,z.ctx.shadowOffsetY=CA.offsetY.number,z.ctx.shadowColor=fe(CA.color),z.ctx.shadowBlur=CA.blur.number,z.ctx.fillStyle=CA.inset?fe(CA.color):"rgba(0,0,0,1)",z.ctx.fill(),z.ctx.restore()}),q.label=2;case 2:v=0,E=0,k=p,q.label=3;case 3:return E<k.length?(K=k[E],K.style!==0&&!Et(K.color)&&K.width>0?K.style!==2?[3,5]:[4,this.renderDashedDottedBorder(K.color,K.width,v,c.curves,2)]:[3,11]):[3,13];case 4:return q.sent(),[3,11];case 5:return K.style!==3?[3,7]:[4,this.renderDashedDottedBorder(K.color,K.width,v,c.curves,3)];case 6:return q.sent(),[3,11];case 7:return K.style!==4?[3,9]:[4,this.renderDoubleBorder(K.color,K.width,v,c.curves)];case 8:return q.sent(),[3,11];case 9:return[4,this.renderSolidBorder(K.color,v,c.curves)];case 10:q.sent(),q.label=11;case 11:v++,q.label=12;case 12:return E++,[3,3];case 13:return[2]}})})},i.prototype.renderDashedDottedBorder=function(c,l,f,p,C){return a(this,void 0,void 0,function(){var v,E,k,K,z,q,CA,fA,mA,KA,DA,_A,Ae,zA,kA,QA,kA,QA;return u(this,function(VA){return this.ctx.save(),v=qQ(p,f),E=gu(p,f),C===2&&(this.path(E),this.ctx.clip()),xe(E[0])?(k=E[0].start.x,K=E[0].start.y):(k=E[0].x,K=E[0].y),xe(E[1])?(z=E[1].end.x,q=E[1].end.y):(z=E[1].x,q=E[1].y),f===0||f===2?CA=Math.abs(k-z):CA=Math.abs(K-q),this.ctx.beginPath(),C===3?this.formatPath(v):this.formatPath(E.slice(0,2)),fA=l<3?l*3:l*2,mA=l<3?l*2:l,C===3&&(fA=l,mA=l),KA=!0,CA<=fA*2?KA=!1:CA<=fA*2+mA?(DA=CA/(2*fA+mA),fA*=DA,mA*=DA):(_A=Math.floor((CA+mA)/(fA+mA)),Ae=(CA-_A*fA)/(_A-1),zA=(CA-(_A+1)*fA)/_A,mA=zA<=0||Math.abs(mA-Ae)<Math.abs(mA-zA)?Ae:zA),KA&&(C===3?this.ctx.setLineDash([0,fA+mA]):this.ctx.setLineDash([fA,mA])),C===3?(this.ctx.lineCap="round",this.ctx.lineWidth=l):this.ctx.lineWidth=l*2+1.1,this.ctx.strokeStyle=fe(c),this.ctx.stroke(),this.ctx.setLineDash([]),C===2&&(xe(E[0])&&(kA=E[3],QA=E[0],this.ctx.beginPath(),this.formatPath([new yA(kA.end.x,kA.end.y),new yA(QA.start.x,QA.start.y)]),this.ctx.stroke()),xe(E[1])&&(kA=E[1],QA=E[2],this.ctx.beginPath(),this.formatPath([new yA(kA.end.x,kA.end.y),new yA(QA.start.x,QA.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),l=JQ(c),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(pu),aE=function(s){return s instanceof Rc||s instanceof Kc?!0:s instanceof Xi&&s.type!==po&&s.type!==Bo},lE=function(s,i){switch(s){case 0:return Qo(i);case 2:return GQ(i);default:return Eo(i)}},cE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},uE=["-apple-system","system-ui"],dE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return uE.indexOf(i)===-1}):s},fE=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),f.options=l,f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px",f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+l.width+"x"+l.height+" at "+l.x+","+l.y+") with scale "+l.scale),f}return i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l,f;return u(this,function(p){switch(p.label){case 0:return l=Pi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,c),[4,gE(l)];case 1:return f=p.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(f,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},i})(pu),gE=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},hE=(function(){function s(i){var c=i.id,l=i.enabled;this.id=c,this.enabled=l,this.start=Date.now()}return s.prototype.debug=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.getTime=function(){return Date.now()-this.start},s.prototype.info=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,d([this.id,this.getTime()+"ms"],i))},s.prototype.warn=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.error=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.instances={},s})(),BE=(function(){function s(i,c){var l;this.windowBounds=c,this.instanceName="#"+s.instanceCount++,this.logger=new hE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new kQ(this,i)}return s.instanceCount=1,s})(),pE=function(s,i){return i===void 0&&(i={}),mE(s,i)};typeof window<"u"&&au.setContext(window);var mE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,v,E,k,K,z,q,CA,fA,mA,KA,DA,_A,Ae,zA,kA,VA,QA,VA,PA,MA,ce,Qe,Ie,ZA,Be,Ht,Ee,Fe,Rt,Ye,It,Vt,Pt,ct,Gt;return u(this,function(ut){switch(ut.label){case 0:if(!s||typeof s!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(c=s.ownerDocument,!c)throw new Error("Element is not attached to a Document");if(l=c.defaultView,!l)throw new Error("Document is not attached to a Window");return f={allowTaint:(PA=i.allowTaint)!==null&&PA!==void 0?PA:!1,imageTimeout:(MA=i.imageTimeout)!==null&&MA!==void 0?MA:15e3,proxy:i.proxy,useCORS:(ce=i.useCORS)!==null&&ce!==void 0?ce:!1},p=o({logging:(Qe=i.logging)!==null&&Qe!==void 0?Qe:!0,cache:i.cache},f),C={windowWidth:(Ie=i.windowWidth)!==null&&Ie!==void 0?Ie:l.innerWidth,windowHeight:(ZA=i.windowHeight)!==null&&ZA!==void 0?ZA:l.innerHeight,scrollX:(Be=i.scrollX)!==null&&Be!==void 0?Be:l.pageXOffset,scrollY:(Ht=i.scrollY)!==null&&Ht!==void 0?Ht:l.pageYOffset},v=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new BE(p,v),k=(Ee=i.foreignObjectRendering)!==null&&Ee!==void 0?Ee:!1,K={allowTaint:(Fe=i.allowTaint)!==null&&Fe!==void 0?Fe:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:k,copyStyles:k},E.logger.debug("Starting document clone with size "+v.width+"x"+v.height+" scrolled to "+-v.left+","+-v.top),z=new iu(E,s,K),q=z.clonedReferenceElement,q?[4,z.toIFrame(c,v)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return CA=ut.sent(),fA=Wi(q)||wQ(q)?B(q.ownerDocument):g(E,q),mA=fA.width,KA=fA.height,DA=fA.left,_A=fA.top,Ae=wE(E,q,i.backgroundColor),zA={canvas:i.canvas,backgroundColor:Ae,scale:(Ye=(Rt=i.scale)!==null&&Rt!==void 0?Rt:l.devicePixelRatio)!==null&&Ye!==void 0?Ye:1,x:((It=i.x)!==null&&It!==void 0?It:0)+DA,y:((Vt=i.y)!==null&&Vt!==void 0?Vt:0)+_A,width:(Pt=i.width)!==null&&Pt!==void 0?Pt:Math.ceil(mA),height:(ct=i.height)!==null&&ct!==void 0?ct:Math.ceil(KA)},k?(E.logger.debug("Document cloned, using foreign object rendering"),VA=new fE(E,zA),[4,VA.render(q)]):[3,3];case 2:return kA=ut.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+DA+","+_A+" with size "+mA+"x"+KA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),QA=Gc(E,q),Ae===QA.styles.backgroundColor&&(QA.styles.backgroundColor=at.TRANSPARENT),E.logger.debug("Starting renderer for element at "+zA.x+","+zA.y+" with size "+zA.width+"x"+zA.height),VA=new sE(E,zA),[4,VA.render(QA)];case 4:kA=ut.sent(),ut.label=5;case 5:return(!((Gt=i.removeContainer)!==null&&Gt!==void 0)||Gt)&&(iu.destroy(CA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,kA]}})})},wE=function(s,i,c){var l=i.ownerDocument,f=l.documentElement?Yn(s,getComputedStyle(l.documentElement).backgroundColor):at.TRANSPARENT,p=l.body?Yn(s,getComputedStyle(l.body).backgroundColor):at.TRANSPARENT,C=typeof c=="string"?Yn(s,c):c===null?at.TRANSPARENT:4294967295;return i===l.documentElement?Et(f)?Et(p)?C:p:f:C};return pE}))})),A0=is(qw(),1),e0=(0,r.defineComponent)({name:"DBiDesignContainer",__name:"biDesignContainer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},activedComponent:{type:Object,default:()=>({})},scale:{type:Number,default:1}},emits:["select","move"],setup(e,{emit:A}){const t=e,n=A,{apiUrl:o,token:a,httpGet:u,httpPost:d,httpPut:h,httpDelete:g,success:B,warning:w,error:m,info:y,useData:Q}=(0,me.useAppInject)(),{loadData:U,getData:T}=Q(),M=(0,r.computed)(()=>{const S={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:$A(t.indexPage.config.w||1920),height:$A(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(S.background=`url(${o}/system/annexesfile/${t.indexPage.config.backgroundImage}?token=${a?.value}) 0% 0% / 100% 100% ${t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"}`),S}),R=S=>{n("select",S)},H=S=>{n("move",S)},P=S=>{S?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)},iA={},Z=(S,eA)=>{S&&(iA[eA]=S)},aA=(0,r.computed)(()=>t.layout.map(S=>({...S,$refs:iA[S.id]}))),lA=async(S,eA)=>{if(S&&S.trim()){S=`async (jcode) => {${S}}`;const{res:I,msg:X,fn:F}=(0,me.getFunction)(S);if(I)return F(j(eA));m&&m(X)}},rA=S=>iA[S]?.getValue?.()||[],nA=S=>aA.value.find(({id:eA})=>eA===S)?.config||{},j=S=>(S.get=rA,S.getProps=nA,S.getSourceData=async(eA,I)=>(await U("dbsource",eA,JSON.stringify(I),!1),T("dbsource",eA,{params:I})),S.getDateNow=eA=>(0,me.formatToDateTime)(new Date,eA||"YYYY-MM-DD HH:mm:ss"),S.httpGet=u,S.httpPost=d,S.httpPut=h,S.httpDelete=g,S.loading=()=>{(0,me.fullScreenLoading)(!0)},S.hideLoading=()=>{(0,me.fullScreenLoading)(!1)},S.message=(eA,I)=>{switch(I){case"success":B&&B(eA);break;case"warning":w&&w(eA);break;case"error":m&&m(eA);break;case"info":y&&y(eA);break;default:y&&y(eA);break}},S);return(0,r.provide)("dui_bi_container",{executeEvent:lA}),(S,eA)=>{const I=(0,r.resolveComponent)("d-draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{onClick:(0,r.withModifiers)(P,["stop"]),id:"j-bi-design-container",style:(0,r.normalizeStyle)(M.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.layout,(X,F)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:X.id},[X.display?((0,r.openBlock)(),(0,r.createBlock)(I,{key:0,id:X.id,left:X.config.x,top:X.config.y,width:X.config.w,height:X.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":X.id==e.activedComponent.id,readonly:X.lock,"data-id":X.id,onFocus:x=>R(X),onBlur:H,"z-index":e.layout.length-F,"is-active-bg-transparent":!0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(X.componentName),(0,r.mergeProps)({style:{width:(0,r.unref)($A)(X.config.w),height:(0,r.unref)($A)(X.config.h)}},{ref_for:!0},X.config,{"is-design":!0,ref_for:!0,ref:x=>Z(x,X.id)}),null,16,["style"]))]),_:2},1032,["id","left","top","width","height","scale","step","active-flag","readonly","data-id","onFocus","z-index"])):(0,r.createCommentVNode)("",!0)],64))),128))],4)}}}),Ul=e0,t0=({data:e,actions:A,utils:t,inputParams:n,notRunActions:o})=>{const a=d=>e.filter(h=>h.source===d).map(h=>h.target),u=async d=>{d=d||"start";const h=e.find(g=>g.id===d);if(h.config.type==="start"){const g=a(d);for(let B=0;B<g.length;B++)await u(g[B])}else{const g=A[h.config.type];g&&await g(h.config,t,async B=>{if(B=B||{},B.nodeId=d,B.next!==!1){const w=a(B.nodeId);for(let m=0;m<w.length;m++)await u(w[m])}},n,B=>{o[B]={data:e,inputParams:n}})}};return{run:u}},n0=(0,r.defineComponent)({name:"DBiViewer",__name:"biViewer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e){const A=e,{apiUrl:t,token:n,httpGet:o,httpPost:a,httpPut:u,httpDelete:d,success:h,warning:g,error:B,info:w,useData:m}=(0,me.useAppInject)(),{loadData:y,getData:Q}=m(),U=(0,r.computed)(()=>A.layout),T=(0,r.ref)(),M=(0,r.ref)(1),R=(0,r.ref)(1),H=()=>{T.value&&P(T.value.offsetWidth,T.value.offsetHeight)},P=(N,L)=>{const O=A.indexPage.config?.w||1920,J=A.indexPage.config?.h||1080,tA=A.indexPage.config?.screenFit||"1";tA==="1"?(R.value=N/O,M.value=R.value):tA==="2"?(M.value=L/J,R.value=M.value):tA==="3"&&(R.value=N/O,M.value=L/J)},iA=(0,r.computed)(()=>{const N={transform:`scale(${R.value}, ${M.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:$A(A.indexPage.config?.w||1920),height:$A(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(N.background=`url(${t}/system/annexesfile/${A.indexPage.config?.backgroundImage}?token=${n?.value}) 0% 0% / 100% 100% ${A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"}`),N}),Z=(0,r.computed)(()=>({width:$A((A.indexPage.config?.w||1920)*R.value),height:$A((A.indexPage.config?.h||1080)*M.value)})),aA={},lA=(N,L)=>{N&&(aA[L]=N)},rA=new ResizeObserver(H);(0,r.onMounted)(()=>{U.value.forEach(N=>{N.$refs=aA[N.id]}),rA.observe(T.value)});const nA=async(N,L)=>{L.config.clickevent&&await S(JSON.parse(L.config?.clickevent),{param:{params:N}})},j=async(N,L)=>{if(N&&N.trim()){N=`async (jcode) => {${N}}`;const{res:O,msg:J,fn:tA}=(0,me.getFunction)(N);if(O)return tA(x(L));B&&B(J)}},S=async(N,L)=>{const{run:O}=t0({data:N,actions:A.actions,utils:{showLoading:me.fullScreenLoading,executeEvent:j},inputParams:L});await O()},eA=N=>aA[N]?.getValue()||[],I=(N,L=!0)=>{const O=U.value.find(({id:J})=>J===N);O&&(O.display=!L)},X=N=>U.value.find(({id:L})=>L===N)?.config||{},F=N=>{const L=U.value.find(({id:O})=>O===N);L?.$refs?.updateData&&L.$refs.updateData()},x=N=>(N.get=eA,N.setHide=I,N.getProps=X,N.refresh=F,N.getSourceData=async(L,O)=>(await y("dbsource",L,JSON.stringify(O),!1),Q("dbsource",L,{params:O})),N.getDateNow=L=>(0,me.formatToDateTime)(new Date,L||"YYYY-MM-DD HH:mm:ss"),N.httpGet=o,N.httpPost=a,N.httpPut=u,N.httpDelete=d,N.loading=()=>{(0,me.fullScreenLoading)(!0)},N.hideLoading=()=>{(0,me.fullScreenLoading)(!1)},N.message=(L,O)=>{switch(O){case"success":h&&h(L);break;case"warning":g&&g(L);break;case"error":B&&B(L);break;case"info":w&&w(L);break;default:w&&w(L);break}},N);return(0,r.provide)("dui_bi_viewer",{executeEvent:j}),(N,L)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"j-block",style:(0,r.normalizeStyle)({"overflow-y":!e.indexPage.config?.screenFit||e.indexPage.config?.screenFit=="1"?"auto":"hidden","overflow-x":e.indexPage.config?.screenFit=="2"?"auto":"hidden"}),ref_key:"biViewer",ref:T},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(Z.value)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(iA.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(U.value,(O,J)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(O.componentName),(0,r.mergeProps)({key:O.id,ref_for:!0,ref:tA=>lA(tA,O.id),style:{position:"absolute",width:(0,r.unref)($A)(O.config.w),height:(0,r.unref)($A)(O.config.h),top:(0,r.unref)($A)(O.config.y),left:(0,r.unref)($A)(O.config.x),zIndex:e.layout.length-J}},{ref_for:!0},O.config,{"run-flow":S,onClick:tA=>nA(tA,O)}),null,16,["style","onClick"])),[[r.vShow,O.display!==!1]])),128))],4)],4)],4))}}),bl=n0,r0={class:"j-bi-design"},o0={class:"j-bi-design-left"},i0={style:{padding:"0 4px"}},s0=["onClick"],a0={class:"j-bi-design-left2"},l0={key:0,class:"j-block",style:{"padding-top":"28px"}},c0={class:"search-input-wraper"},u0=["onClick","data-id"],d0={class:"j-bi-design-layer-item-img"},f0=["src"],g0={class:"j-bi-design-layer-item-btns"},h0=["onClick"],B0=["onClick"],p0=["onClick"],m0=["onDragend"],w0={class:"component-item2-text"},C0=["src"],y0={class:"j-bi-design-right"},v0={class:"j-bi-design-title"},Q0={class:"j-bi-design-panel"},E0=(0,r.defineComponent)({name:"DBiDesign",__name:"biDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})},imgUrlPrefix:{type:String,default:"/"},scale:{type:Number,default:-1}},emits:["update:scale"],setup(e,{expose:A,emit:t}){const{t:n}=(0,me.useAppInject)(),o=e,a=t,u=(0,r.ref)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});o.componentInit&&(u.value.config=o.componentInit("indexPage")||{},u.value.config.id="indexPage");const d=(0,r.computed)(()=>{const sA={};return o.components.forEach(cA=>{cA.children.forEach(xA=>{sA[xA.type]=xA})}),sA}),h=(0,r.ref)(0),g=(0,r.ref)(),B=(0,r.ref)([]),w=(0,r.ref)(!1),m=(0,r.ref)(0),y=(0,r.ref)(0),Q=(0,r.ref)(""),U=(0,r.computed)(()=>Q.value===""?{}:B.value.find(sA=>sA.id===Q.value)),T=()=>{w.value=!1,Q.value=""},M=sA=>{sA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&T(),window.removeEventListener("mousedown",M)},R=sA=>{let{target:cA}=sA,xA=!1;cA.className.indexOf&&cA.className.indexOf("d-draggable__mask")>-1?(cA=cA.parentNode.parentNode,xA=!0):cA.className.indexOf&&cA.className.indexOf("j-bi-design-layer-item")>-1?xA=!0:cA.parentNode.className.indexOf&&cA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(cA=cA.parentNode,xA=!0):cA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(cA=cA.parentNode.parentNode,xA=!0),xA&&(sA.preventDefault(),sA.stopPropagation(),m.value=sA.clientX,y.value=sA.clientY-8,y.value+260>document.body.clientHeight&&(y.value=document.body.clientHeight-260),Q.value=cA.getAttribute("data-id"),w.value=!0,window.addEventListener("mousedown",M))},H=(0,r.ref)(""),P=(0,r.computed)(()=>H.value?B.value.filter(sA=>sA.config.label.indexOf(H.value)>-1):B.value),iA=sA=>{sA.display=!sA.display,T()},Z=sA=>{sA.lock=!sA.lock,T(),sA.lock&&sA.id===g.value?.id&&SA(u.value)},aA=(sA,cA)=>{if(!cA||B.value.length<1){T();return}const xA=B.value.findIndex(TA=>TA.id===cA.id);switch(sA){case"up":if(xA===-1||xA===0)break;B.value=lA(B.value,xA,xA-1);break;case"down":if(xA===-1||xA===B.value.length-1)break;B.value=lA(B.value,xA,xA+1);break;case"top":if(xA!==-1){const[TA]=B.value.splice(xA,1);B.value.unshift(TA)}break;case"bottom":if(xA!==-1){const[TA]=B.value.splice(xA,1);B.value.push(TA)}break}T()},lA=(sA,cA,xA)=>{const TA=sA[cA];return sA[cA]=sA[xA],sA[xA]=TA,sA},rA=(0,r.ref)(),nA=(0,r.ref)(20),j=(0,r.ref)(document.body.clientWidth),S=(0,r.ref)(document.body.clientHeight),eA=(0,r.ref)(0),I=(0,r.ref)(0),X=(0,r.ref)({bgColor:"rgba(225,225,225, 0)",longfgColor:"rgba(0, 0, 0, 0.45)",shortfgColor:"rgba(0, 0, 0, 0.45)",fontColor:"rgba(0, 0, 0, 0.65)",shadowColor:"rgba(225,225,225, 0)",lineColor:"var(--j-color-primary)",borderColor:"#d9d9d9",cornerActiveColor:"var(--j-color-primary)"}),F=(0,r.computed)(()=>({x:0,y:0,width:j.value,height:S.value})),x=(0,r.ref)({h:[],v:[]}),N=(0,r.ref)(),L=(0,r.ref)(),O=(0,r.ref)(!1),J=(0,r.ref)({}),tA=(0,r.ref)(100),dA=(0,r.computed)({set(sA){tA.value=sA,a("update:scale",sA)},get(){let{scale:sA}=o;return sA===-1&&(sA=tA.value),sA/100}}),UA=(0,r.computed)(()=>(u.value.config.h||1080)*2),G=(0,r.computed)(()=>(u.value.config.w||1920)*2),Y=()=>{rA.value&&(j.value=rA.value.offsetWidth-nA.value,S.value=rA.value.offsetHeight-nA.value,N.value.scrollLeft=G.value/2-nA.value,N.value.scrollTop=UA.value/2-nA.value,$())},$=()=>{const sA=u.value.config.w||1920;j.value<sA&&(dA.value=j.value*100/sA)},oA=()=>{document.onkeydown=sA=>{if(sA.target?.nodeName==="TEXTAREA"||sA.target?.nodeName==="INPUT")return;const cA=sA.keyCode||sA.which;cA===32&&(sA.preventDefault(),J.value.space=!0),cA===17&&(sA.preventDefault(),J.value.ctrl=!0)},document.onkeyup=()=>{J.value={}}},BA=sA=>{J.value.space&&(O.value=!0,window.stardragEvent=sA,window.startSlideX=N.value.scrollLeft,window.startSlideY=N.value.scrollTop,document.onmousemove=cA=>{if(O.value){const xA=cA.clientX-window.stardragEvent.clientX,TA=cA.clientY-window.stardragEvent.clientY;N.value.scrollLeft=window.startSlideX-xA,N.value.scrollTop=window.startSlideY-TA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,O.value=!1})},wA=()=>{const sA=N.value.getBoundingClientRect(),cA=L.value.getBoundingClientRect(),xA=dA.value,TA=(sA.left+nA.value-cA.left)/xA,ot=(sA.top+nA.value-cA.top)/xA;eA.value=TA>>0,I.value=ot>>0},bA=sA=>{if(sA.preventDefault(),sA.ctrlKey||sA.metaKey){const cA=dA.value;dA.value=parseFloat(Math.max(.2,cA-sA.deltaY/500).toFixed(2))*100,cA!==dA.value&&(0,r.nextTick)(()=>{wA()})}},uA=sA=>{sA.forEach(cA=>{cA.type==="d-input-flow"&&(cA.config=cA.config||{},cA.config.flowComponents=o.flowComponents,cA.config.flowInit=o.flowInit,cA.config.flowComponentConfigInit=xA=>{o.flowComponentConfigInit&&(xA.designComponents=B.value,xA.component=g.value,o.flowComponentConfigInit(xA))},cA.config.flowComponentConfigs=o.flowComponentConfigs,cA.config.flowComponentConfigChange=o.flowComponentConfigChange),cA.children&&uA(cA.children)})},hA=(0,r.ref)(),_=(0,r.computed)(()=>g.value?`【${g.value.name}】`:""),b={};Object.keys(o.componentConfigs).forEach(sA=>{const cA=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],xA=[{id:"w",type:"j-number",config:{label:"宽度",min:0}},{id:"h",type:"j-number",config:{label:"高度",min:0}},{id:"x",type:"j-number",config:{label:"x轴",min:0}},{id:"y",type:"j-number",config:{label:"y轴",min:0}}],TA={type:"j-collapse",config:{defaultValue:[]},children:[]};sA!=="indexPage"&&TA.children?.push({config:{label:"基础信息"},children:[...cA]}),TA.children?.push(...o.componentConfigs[sA]),sA!=="indexPage"?(TA.children?.push({config:{label:"大小定位"},children:[...xA]}),TA.config?.defaultValue.push("_collapse0","_collapse1")):TA.children&&TA.children.length>0&&TA.config?.defaultValue.push("_collapse0"),uA(TA.children||[]),b[sA]=[TA]});const D=()=>{if(g.value){const sA=b[g.value.type];sA?hA.value.init(sA,g.value.config):hA.value.init([]),o.componentConfigInit&&o.componentConfigInit(g.value.type,{configRef:hA,components:B.value,configData:g.value.config})}else hA.value.init([])},W=sA=>{g.value&&o.componentConfigChange&&(g.value.id==="indexPage"&&(sA.id==="w"||sA.id==="h")&&(0,r.nextTick)(()=>{Y()}),o.componentConfigChange(g.value.type,{configRef:hA,configData:g.value.config,...sA}))},V=sA=>o.componentInit?o.componentInit(sA)||{}:{},pA=(sA,cA,xA)=>{const TA={name:sA.name,id:ft(),type:sA.type,layerId:"0",config:V(sA.type),display:!0,lock:!1,componentName:sA.componentName};TA.config.id=TA.id,TA.config.label=sA.name,TA.config.h=sA.h||100,TA.config.w=sA.w||100,TA.config.x=cA,TA.config.y=xA,B.value.unshift(TA),g.value=TA,D()},gA=(sA,cA)=>{const xA=document.getElementById("j-bi-design-container").getBoundingClientRect(),TA=sA.clientX-xA.left,ot=sA.clientY-xA.top;pA(cA,TA/dA.value-cA.w/2,ot/dA.value-cA.h/2)},HA=sA=>{B.value=B.value.filter(cA=>cA.id!==sA),g.value.id===sA&&(g.value=u.value,D()),T()},FA=sA=>{const cA=mn(sA),xA=ft();cA.id=xA,cA.config.id=xA,B.value.push(cA),g.value=cA,D(),T()},SA=sA=>{g.value?.id!==sA.id&&(g.value=sA,D())},OA=({left:sA,top:cA,width:xA,height:TA})=>{g.value&&(g.value.config.x=sA,g.value.config.y=cA,g.value.config.w=xA,g.value.config.h=TA,hA.value.setFormData({main:{x:sA,y:cA,w:xA,h:TA}}))},XA=new ResizeObserver(Y);(0,r.onMounted)(()=>{XA.observe(rA.value),oA(),SA(u.value)});const ae=()=>({ver:"1.0.0",components:mn(B.value),page:u.value}),re=sA=>{sA.components?.forEach(cA=>{cA.componentName=d.value[cA.type].componentName}),B.value=sA.components||[],u.value=sA.page||u.value,SA(u.value)},nt=()=>{B.value=[],SA(u.value)},Tt=()=>new Promise(sA=>{(0,A0.default)(L.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(cA=>{if(cA.width!==0&&cA.height!==0){sA(cA.toDataURL("image/png"));return}sA("")})}),rt=(0,r.ref)(),On=(0,r.ref)({});return A({clear:nt,setData:re,getData:ae,getImg:Tt,preview:()=>{On.value=ae(),rt.value.open("大屏预览","full")}}),(sA,cA)=>{const xA=(0,r.resolveComponent)("el-divider"),TA=(0,r.resolveComponent)("j-icon"),ot=(0,r.resolveComponent)("el-button"),Kn=(0,r.resolveComponent)("el-input"),it=(0,r.resolveComponent)("el-text"),Rn=(0,r.resolveComponent)("el-space"),tn=(0,r.resolveComponent)("j-form"),nn=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",r0,[w.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,r.normalizeStyle)({left:m.value+"px",top:y.value+"px"})},[(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[0]||(cA[0]=GA=>FA(U.value))},(0,r.toDisplayString)((0,r.unref)(n)("复制")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[1]||(cA[1]=GA=>iA(U.value))},(0,r.toDisplayString)(U.value&&U.value.display?"隐藏":"显示"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[2]||(cA[2]=GA=>Z(U.value))},(0,r.toDisplayString)(U.value&&U.value.lock?"解锁":"锁定"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[3]||(cA[3]=GA=>aA("top",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("置顶图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[4]||(cA[4]=GA=>aA("bottom",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("置底图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[5]||(cA[5]=GA=>aA("up",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("上移一层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[6]||(cA[6]=GA=>aA("down",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("下移一层")),1),(0,r.createVNode)(xA,{style:{margin:"4px 0"}}),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:cA[7]||(cA[7]=GA=>HA(U.value?.id))},(0,r.toDisplayString)((0,r.unref)(n)("删除")),1)],4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",o0,[(0,r.createElementVNode)("div",{onClick:cA[8]||(cA[8]=(0,r.withModifiers)(GA=>h.value=-1,["stop"])),class:(0,r.normalizeClass)(["component-item",{active:h.value==-1}])},[(0,r.createVNode)(TA,{size:24,icon:"mdi:bookmark-box-multiple-outline"}),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)("图层")),1)],2),(0,r.createElementVNode)("div",i0,[(0,r.createVNode)(xA)]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze,onClick:(0,r.withModifiers)(wt=>h.value=ze,["stop"]),class:(0,r.normalizeClass)(["component-item",{active:h.value==ze}])},[(0,r.createVNode)(TA,{size:24,icon:GA.icon},null,8,["icon"]),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)(GA.name)),1)],10,s0))),128))]),(0,r.createElementVNode)("div",a0,[h.value==-1?((0,r.openBlock)(),(0,r.createElementBlock)("div",l0,[(0,r.createElementVNode)("div",c0,[(0,r.createVNode)(Kn,{modelValue:H.value,"onUpdate:modelValue":cA[9]||(cA[9]=GA=>H.value=GA),class:"search-input",placeholder:"搜索图层"},{append:(0,r.withCtx)(()=>[(0,r.createVNode)(ot,null,{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(TA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"])]),(0,r.createElementVNode)("div",{class:"j-block",style:{"padding-top":"8px",overflow:"auto"},onContextmenu:(0,r.withModifiers)(R,["prevent"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(P.value,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item",{active:g.value.id==GA.id}]),onClick:(0,r.withModifiers)(wt=>SA(GA),["stop"]),"data-id":GA.id},[(0,r.createElementVNode)("div",d0,[(0,r.createElementVNode)("img",{style:{height:"100%"},src:`${e.imgUrlPrefix}${d.value[GA.type].img}`},null,8,f0)]),(0,r.createVNode)(it,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(GA.config.label)),1)]),_:2},1024),(0,r.createElementVNode)("div",g0,[(0,r.createVNode)(Rn,{size:2},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:!GA.display}]),onClick:(0,r.withModifiers)(wt=>iA(GA),["stop"])},[(0,r.createVNode)(TA,{icon:"mdi:eye-off-outline"})],10,h0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:GA.lock}]),onClick:(0,r.withModifiers)(wt=>Z(GA),["stop"])},[(0,r.createVNode)(TA,{icon:"mdi:lock-outline"})],10,B0)]),_:2},1024)])],10,u0)]))),128))],32)])):e.components[h.value]?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(e.components[h.value].children,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze,onClick:wt=>pA(GA,0,0)},[(0,r.createElementVNode)("div",{class:"component-item2",onDragend:wt=>gA(wt,GA),draggable:"true"},[(0,r.createElementVNode)("div",w0,[(0,r.createVNode)(it,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(GA.name)),1)]),_:2},1024)]),(0,r.createElementVNode)("img",{class:"component-item2-img",src:`${e.imgUrlPrefix}${GA.img}`},null,8,C0)],40,m0)],8,p0))),128)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:rA},[((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(jw),{key:dA.value,thick:nA.value,scale:dA.value,width:j.value,height:S.value,"start-x":eA.value,"start-y":I.value,palette:X.value,shadow:F.value,"hor-line-arr":x.value.h,"ver-line-arr":x.value.v},null,8,["thick","scale","width","height","start-x","start-y","palette","shadow","hor-line-arr","ver-line-arr"])),(0,r.createElementVNode)("div",{ref_key:"screensRef",ref:N,class:"j-bi-design-main",style:(0,r.normalizeStyle)({cursor:O.value?"pointer":""}),onMousedown:(0,r.withModifiers)(BA,["stop"]),onWheel:bA,onScroll:wA},[(0,r.createElementVNode)("div",{class:"screen-container",style:(0,r.normalizeStyle)({height:UA.value+"px",width:G.value+"px"}),onClick:cA[10]||(cA[10]=(0,r.withModifiers)(GA=>SA(u.value),["stop"]))},[(0,r.createElementVNode)("div",{ref_key:"canvasRef",ref:L,class:"canvas",onContextmenu:(0,r.withModifiers)(R,["prevent"])},[(0,r.createVNode)(Ul,{layout:B.value,"index-page":u.value,"actived-component":g.value,scale:dA.value,onSelect:SA,onMove:OA},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,r.createElementVNode)("div",y0,[(0,r.createElementVNode)("div",v0,[(0,r.createVNode)(it,{truncated:"",style:{margin:"0","font-size":"14px"}},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(`${(0,r.unref)(n)("属性配置")}${_.value} `),1)]),_:1})]),(0,r.createElementVNode)("div",Q0,[(0,r.createVNode)(tn,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:hA,onChange:W},null,512)])]),(0,r.createVNode)(nn,{ref_key:"previewFormLayerRef",ref:rt,destroyOnClose:!0,hasHeader:!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(bl,{indexPage:On.value.page,layout:On.value.components,actions:e.actions},null,8,["indexPage","layout","actions"])]),_:1},512)])}}}),F0=E0,Hl=dt(F0,[Ul,bl]),U0=[cs,xo,Do,No,Lo,ol,il,fl,gl,Cl,El,Hl],Il=new WeakSet,b0=e=>{Il.has(e)||(Il.add(e),U0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},H0={install:b0};te.DBiDesign=Hl,te.DDrag=cs,te.DDraggable=gl,te.DFlowDesign=ol,te.DFormDesign=Cl,te.DIndexDesign=El,te.DInputFlow=il,te.DLayout=fl,te.default=H0,te.dragContainer=Do,te.dragFormList=No,te.dragIndexList=Lo,te.dragTool=xo,te.toFormDesignSchema=Bl,te.toFormSaveSchema=Gr,te.toFormSchema=hl});
|
|
34
|
+
}`,xQ=function(s){DQ(s,"."+ji+_Q+su+`
|
|
35
|
+
.`+qi+SQ+su)},DQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},au=(function(){function s(){}return s.getOrigin=function(i){var c=s._link;return c?(c.href=i,c.href=c.href,c.protocol+c.hostname+c.port):"about:blank"},s.isSameOrigin=function(i){return s.getOrigin(i)===s._origin},s.setContext=function(i){s._link=i.document.createElement("a"),s._origin=s.getOrigin(i.location.href)},s._origin="about:blank",s})(),NQ=(function(){function s(i,c){this.context=i,this._options=c,this._cache={}}return s.prototype.addImage=function(i){var c=Promise.resolve();return this.has(i)||(es(i)||MQ(i))&&(this._cache[i]=this.loadImage(i)).catch(function(){}),c},s.prototype.match=function(i){return this._cache[i]},s.prototype.loadImage=function(i){return a(this,void 0,void 0,function(){var c,l,f,p,C=this;return u(this,function(v){switch(v.label){case 0:return c=au.isSameOrigin(i),l=!As(i)&&this._options.useCORS===!0&&he.SUPPORT_CORS_IMAGES&&!c,f=!As(i)&&!c&&!es(i)&&typeof this._options.proxy=="string"&&he.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!As(i)&&!es(i)&&!f&&!l?[2]:(p=i,f?[4,this.proxy(p)]:[3,2]);case 1:p=v.sent(),v.label=2;case 2:return this.context.logger.debug("Added image "+i.substring(0,256)),[4,new Promise(function(E,k){var K=new Image;K.onload=function(){return E(K)},K.onerror=k,(OQ(p)||l)&&(K.crossOrigin="anonymous"),K.src=p,K.complete===!0&&setTimeout(function(){return E(K)},500),C._options.imageTimeout>0&&setTimeout(function(){return k("Timed out ("+C._options.imageTimeout+"ms) loading image")},C._options.imageTimeout)})];case 3:return[2,v.sent()]}})})},s.prototype.has=function(i){return typeof this._cache[i]<"u"},s.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},s.prototype.proxy=function(i){var c=this,l=this._options.proxy;if(!l)throw new Error("No proxy defined");var f=i.substring(0,256);return new Promise(function(p,C){var v=he.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(v==="text")p(E.response);else{var z=new FileReader;z.addEventListener("load",function(){return p(z.result)},!1),z.addEventListener("error",function(q){return C(q)},!1),z.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var k=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+k+"url="+encodeURIComponent(i)+"&responseType="+v),v!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=v),c._options.imageTimeout){var K=c._options.imageTimeout;E.timeout=K,E.ontimeout=function(){return C("Timed out ("+K+"ms) proxying "+f)}}E.send()})},s})(),LQ=/^data:image\/svg\+xml/i,kQ=/^data:image\/.*;base64,/i,TQ=/^data:image\/.*/i,MQ=function(s){return he.SUPPORT_SVG_DRAWING||!KQ(s)},As=function(s){return TQ.test(s)},OQ=function(s){return kQ.test(s)},es=function(s){return s.substr(0,4)==="blob"},KQ=function(s){return s.substr(-3).toLowerCase()==="svg"||LQ.test(s)},yA=(function(){function s(i,c){this.type=0,this.x=i,this.y=c}return s.prototype.add=function(i,c){return new s(this.x+i,this.y+c)},s})(),dn=function(s,i,c){return new yA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},vo=(function(){function s(i,c,l,f){this.type=1,this.start=i,this.startControl=c,this.endControl=l,this.end=f}return s.prototype.subdivide=function(i,c){var l=dn(this.start,this.startControl,i),f=dn(this.startControl,this.endControl,i),p=dn(this.endControl,this.end,i),C=dn(l,f,i),v=dn(f,p,i),E=dn(C,v,i);return c?new s(this.start,l,C,E):new s(E,v,p,this.end)},s.prototype.add=function(i,c){return new s(this.start.add(i,c),this.startControl.add(i,c),this.endControl.add(i,c),this.end.add(i,c))},s.prototype.reverse=function(){return new s(this.end,this.endControl,this.startControl,this.start)},s})(),xe=function(s){return s.type===1},RQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=Wn(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],v=Wn(c.borderTopRightRadius,l.width,l.height),E=v[0],k=v[1],K=Wn(c.borderBottomRightRadius,l.width,l.height),z=K[0],q=K[1],CA=Wn(c.borderBottomLeftRadius,l.width,l.height),fA=CA[0],mA=CA[1],KA=[];KA.push((p+E)/l.width),KA.push((fA+z)/l.width),KA.push((C+mA)/l.height),KA.push((k+q)/l.height);var DA=Math.max.apply(Math,KA);DA>1&&(p/=DA,C/=DA,E/=DA,k/=DA,z/=DA,q/=DA,fA/=DA,mA/=DA);var _A=l.width-E,Ae=l.height-q,zA=l.width-z,kA=l.height-mA,QA=c.borderTopWidth,VA=c.borderRightWidth,PA=c.borderBottomWidth,MA=c.borderLeftWidth,ce=jA(c.paddingTop,i.bounds.width),Qe=jA(c.paddingRight,i.bounds.width),Ie=jA(c.paddingBottom,i.bounds.width),ZA=jA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?ee(l.left+MA/3,l.top+QA/3,p-MA/3,C-QA/3,WA.TOP_LEFT):new yA(l.left+MA/3,l.top+QA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?ee(l.left+_A,l.top+QA/3,E-VA/3,k-QA/3,WA.TOP_RIGHT):new yA(l.left+l.width-VA/3,l.top+QA/3),this.bottomRightBorderDoubleOuterBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA/3,q-PA/3,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA/3,l.top+l.height-PA/3),this.bottomLeftBorderDoubleOuterBox=fA>0||mA>0?ee(l.left+MA/3,l.top+kA,fA-MA/3,mA-PA/3,WA.BOTTOM_LEFT):new yA(l.left+MA/3,l.top+l.height-PA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?ee(l.left+MA*2/3,l.top+QA*2/3,p-MA*2/3,C-QA*2/3,WA.TOP_LEFT):new yA(l.left+MA*2/3,l.top+QA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?ee(l.left+_A,l.top+QA*2/3,E-VA*2/3,k-QA*2/3,WA.TOP_RIGHT):new yA(l.left+l.width-VA*2/3,l.top+QA*2/3),this.bottomRightBorderDoubleInnerBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA*2/3,q-PA*2/3,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA*2/3,l.top+l.height-PA*2/3),this.bottomLeftBorderDoubleInnerBox=fA>0||mA>0?ee(l.left+MA*2/3,l.top+kA,fA-MA*2/3,mA-PA*2/3,WA.BOTTOM_LEFT):new yA(l.left+MA*2/3,l.top+l.height-PA*2/3),this.topLeftBorderStroke=p>0||C>0?ee(l.left+MA/2,l.top+QA/2,p-MA/2,C-QA/2,WA.TOP_LEFT):new yA(l.left+MA/2,l.top+QA/2),this.topRightBorderStroke=p>0||C>0?ee(l.left+_A,l.top+QA/2,E-VA/2,k-QA/2,WA.TOP_RIGHT):new yA(l.left+l.width-VA/2,l.top+QA/2),this.bottomRightBorderStroke=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA/2,q-PA/2,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA/2,l.top+l.height-PA/2),this.bottomLeftBorderStroke=fA>0||mA>0?ee(l.left+MA/2,l.top+kA,fA-MA/2,mA-PA/2,WA.BOTTOM_LEFT):new yA(l.left+MA/2,l.top+l.height-PA/2),this.topLeftBorderBox=p>0||C>0?ee(l.left,l.top,p,C,WA.TOP_LEFT):new yA(l.left,l.top),this.topRightBorderBox=E>0||k>0?ee(l.left+_A,l.top,E,k,WA.TOP_RIGHT):new yA(l.left+l.width,l.top),this.bottomRightBorderBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z,q,WA.BOTTOM_RIGHT):new yA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=fA>0||mA>0?ee(l.left,l.top+kA,fA,mA,WA.BOTTOM_LEFT):new yA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?ee(l.left+MA,l.top+QA,Math.max(0,p-MA),Math.max(0,C-QA),WA.TOP_LEFT):new yA(l.left+MA,l.top+QA),this.topRightPaddingBox=E>0||k>0?ee(l.left+Math.min(_A,l.width-VA),l.top+QA,_A>l.width+VA?0:Math.max(0,E-VA),Math.max(0,k-QA),WA.TOP_RIGHT):new yA(l.left+l.width-VA,l.top+QA),this.bottomRightPaddingBox=z>0||q>0?ee(l.left+Math.min(zA,l.width-MA),l.top+Math.min(Ae,l.height-PA),Math.max(0,z-VA),Math.max(0,q-PA),WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA,l.top+l.height-PA),this.bottomLeftPaddingBox=fA>0||mA>0?ee(l.left+MA,l.top+Math.min(kA,l.height-PA),Math.max(0,fA-MA),Math.max(0,mA-PA),WA.BOTTOM_LEFT):new yA(l.left+MA,l.top+l.height-PA),this.topLeftContentBox=p>0||C>0?ee(l.left+MA+ZA,l.top+QA+ce,Math.max(0,p-(MA+ZA)),Math.max(0,C-(QA+ce)),WA.TOP_LEFT):new yA(l.left+MA+ZA,l.top+QA+ce),this.topRightContentBox=E>0||k>0?ee(l.left+Math.min(_A,l.width+MA+ZA),l.top+QA+ce,_A>l.width+MA+ZA?0:E-MA+ZA,k-(QA+ce),WA.TOP_RIGHT):new yA(l.left+l.width-(VA+Qe),l.top+QA+ce),this.bottomRightContentBox=z>0||q>0?ee(l.left+Math.min(zA,l.width-(MA+ZA)),l.top+Math.min(Ae,l.height+QA+ce),Math.max(0,z-(VA+Qe)),q-(PA+Ie),WA.BOTTOM_RIGHT):new yA(l.left+l.width-(VA+Qe),l.top+l.height-(PA+Ie)),this.bottomLeftContentBox=fA>0||mA>0?ee(l.left+MA+ZA,l.top+kA,Math.max(0,fA-(MA+ZA)),mA-(PA+Ie),WA.BOTTOM_LEFT):new yA(l.left+MA+ZA,l.top+l.height-(PA+Ie))}return s})(),WA;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=1]="TOP_RIGHT",s[s.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",s[s.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(WA||(WA={}));var ee=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,v=l*p,E=s+c,k=i+l;switch(f){case WA.TOP_LEFT:return new vo(new yA(s,k),new yA(s,k-v),new yA(E-C,i),new yA(E,i));case WA.TOP_RIGHT:return new vo(new yA(s,i),new yA(s+C,i),new yA(E,k-v),new yA(E,k));case WA.BOTTOM_RIGHT:return new vo(new yA(E,i),new yA(E,i+v),new yA(s+C,k),new yA(s,k));case WA.BOTTOM_LEFT:default:return new vo(new yA(E,k),new yA(E-C,k),new yA(s,i+v),new yA(s,i))}},Qo=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},VQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},Eo=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},PQ=(function(){function s(i,c,l){this.offsetX=i,this.offsetY=c,this.matrix=l,this.type=0,this.target=6}return s})(),Fo=(function(){function s(i,c){this.path=i,this.target=c,this.type=1}return s})(),GQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),zQ=function(s){return s.type===0},lu=function(s){return s.type===1},XQ=function(s){return s.type===2},cu=function(s,i){return s.length===i.length?s.some(function(c,l){return c===i[l]}):!1},$Q=function(s,i,c,l,f){return s.map(function(p,C){switch(C){case 0:return p.add(i,c);case 1:return p.add(i+l,c);case 2:return p.add(i+l,c+f);case 3:return p.add(i,c+f)}return p})},uu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),du=(function(){function s(i,c){if(this.container=i,this.parent=c,this.effects=[],this.curves=new RQ(this.container),this.container.styles.opacity<1&&this.effects.push(new GQ(this.container.styles.opacity)),this.container.styles.transform!==null){var l=this.container.bounds.left+this.container.styles.transformOrigin[0].number,f=this.container.bounds.top+this.container.styles.transformOrigin[1].number,p=this.container.styles.transform;this.effects.push(new PQ(l,f,p))}if(this.container.styles.overflowX!==0){var C=Qo(this.curves),v=Eo(this.curves);cu(C,v)?this.effects.push(new Fo(C,6)):(this.effects.push(new Fo(C,2)),this.effects.push(new Fo(v,4)))}}return s.prototype.getEffects=function(i){for(var c=[2,3].indexOf(this.container.styles.position)===-1,l=this.parent,f=this.effects.slice(0);l;){var p=l.effects.filter(function(E){return!lu(E)});if(c||l.container.styles.position!==0||!l.parent){if(f.unshift.apply(f,p),c=[2,3].indexOf(l.container.styles.position)===-1,l.container.styles.overflowX!==0){var C=Qo(l.curves),v=Eo(l.curves);cu(C,v)||f.unshift(new Fo(v,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return de(E.target,i)})},s})(),ts=function(s,i,c,l){s.container.elements.forEach(function(f){var p=de(f.flags,4),C=de(f.flags,2),v=new du(f,s);de(f.styles.display,2048)&&l.push(v);var E=de(f.flags,8)?[]:l;if(p||C){var k=p||f.styles.isPositioned()?c:i,K=new uu(v);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var z=f.styles.zIndex.order;if(z<0){var q=0;k.negativeZIndex.some(function(fA,mA){return z>fA.element.container.styles.zIndex.order?(q=mA,!1):q>0}),k.negativeZIndex.splice(q,0,K)}else if(z>0){var CA=0;k.positiveZIndex.some(function(fA,mA){return z>=fA.element.container.styles.zIndex.order?(CA=mA+1,!1):CA>0}),k.positiveZIndex.splice(CA,0,K)}else k.zeroOrAutoZIndexOrTransformedOrOpacity.push(K)}else f.styles.isFloating()?k.nonPositionedFloats.push(K):k.nonPositionedInlineLevel.push(K);ts(v,K,p?K:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(v):i.nonInlineLevel.push(v),ts(v,i,c,E);de(f.flags,8)&&fu(f,E)})},fu=function(s,i){for(var c=s instanceof zi?s.start:1,l=s instanceof zi?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof Mc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=Ar(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},WQ=function(s){var i=new du(s,null),c=new uu(i),l=[];return ts(i,c,c,l),fu(i.container,l),c},gu=function(s,i){switch(i){case 0:return De(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return De(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return De(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return De(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},YQ=function(s,i){switch(i){case 0:return De(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return De(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return De(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return De(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},JQ=function(s,i){switch(i){case 0:return De(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return De(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return De(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return De(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},ZQ=function(s,i){switch(i){case 0:return Uo(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Uo(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Uo(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Uo(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Uo=function(s,i){var c=[];return xe(s)?c.push(s.subdivide(.5,!1)):c.push(s),xe(i)?c.push(i.subdivide(.5,!0)):c.push(i),c},De=function(s,i,c,l){var f=[];return xe(s)?f.push(s.subdivide(.5,!1)):f.push(s),xe(c)?f.push(c.subdivide(.5,!0)):f.push(c),xe(l)?f.push(l.subdivide(.5,!0).reverse()):f.push(l),xe(i)?f.push(i.subdivide(.5,!1).reverse()):f.push(i),f},hu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},bo=function(s){var i=s.styles,c=s.bounds,l=jA(i.paddingLeft,c.width),f=jA(i.paddingRight,c.width),p=jA(i.paddingTop,c.width),C=jA(i.paddingBottom,c.width);return c.add(l+i.borderLeftWidth,p+i.borderTopWidth,-(i.borderRightWidth+i.borderLeftWidth+l+f),-(i.borderTopWidth+i.borderBottomWidth+p+C))},jQ=function(s,i){return s===0?i.bounds:s===2?bo(i):hu(i)},qQ=function(s,i){return s===0?i.bounds:s===2?bo(i):hu(i)},ns=function(s,i,c){var l=jQ(gn(s.styles.backgroundOrigin,i),s),f=qQ(gn(s.styles.backgroundClip,i),s),p=AE(gn(s.styles.backgroundSize,i),c,l),C=p[0],v=p[1],E=Wn(gn(s.styles.backgroundPosition,i),l.width-C,l.height-v);return[eE(gn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,v]},fn=function(s){return JA(s)&&s.value===an.AUTO},Ho=function(s){return typeof s=="number"},AE=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],v=s[1];if(!C)return[0,0];if(le(C)&&v&&le(v))return[jA(C,c.width),jA(v,c.height)];var E=Ho(p);if(JA(C)&&(C.value===an.CONTAIN||C.value===an.COVER))return Ho(p)?c.width/c.height<p!=(C.value===an.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var k=Ho(l),K=Ho(f),z=k||K;if(fn(C)&&(!v||fn(v)))return k&&K?[l,f]:!E&&!z?[c.width,c.height]:z&&E?[k?l:f*p,K?f:l/p]:[k?l:c.width,K?f:c.height];if(E){var q=0,CA=0;return le(C)?q=jA(C,c.width):le(v)&&(CA=jA(v,c.height)),fn(C)?q=CA*p:(!v||fn(v))&&(CA=q/p),[q,CA]}var fA=null,mA=null;if(le(C)?fA=jA(C,c.width):v&&le(v)&&(mA=jA(v,c.height)),fA!==null&&(!v||fn(v))&&(mA=k&&K?fA/l*f:c.height),mA!==null&&fn(C)&&(fA=k&&K?mA/f*l:c.width),fA!==null&&mA!==null)return[fA,mA];throw new Error("Unable to calculate background-size for element")},gn=function(s,i){var c=s[i];return typeof c>"u"?s[0]:c},eE=function(s,i,c,l,f){var p=i[0],C=i[1],v=c[0],E=c[1];switch(s){case 2:return[new yA(Math.round(l.left),Math.round(l.top+C)),new yA(Math.round(l.left+l.width),Math.round(l.top+C)),new yA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new yA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new yA(Math.round(l.left+p),Math.round(l.top)),new yA(Math.round(l.left+p+v),Math.round(l.top)),new yA(Math.round(l.left+p+v),Math.round(l.height+l.top)),new yA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new yA(Math.round(l.left+p),Math.round(l.top+C)),new yA(Math.round(l.left+p+v),Math.round(l.top+C)),new yA(Math.round(l.left+p+v),Math.round(l.top+C+E)),new yA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new yA(Math.round(f.left),Math.round(f.top)),new yA(Math.round(f.left+f.width),Math.round(f.top)),new yA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new yA(Math.round(f.left),Math.round(f.height+f.top))]}},tE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Bu="Hidden Text",nE=(function(){function s(i){this._data={},this._document=i}return s.prototype.parseMetrics=function(i,c){var l=this._document.createElement("div"),f=this._document.createElement("img"),p=this._document.createElement("span"),C=this._document.body;l.style.visibility="hidden",l.style.fontFamily=i,l.style.fontSize=c,l.style.margin="0",l.style.padding="0",l.style.whiteSpace="nowrap",C.appendChild(l),f.src=tE,f.width=1,f.height=1,f.style.margin="0",f.style.padding="0",f.style.verticalAlign="baseline",p.style.fontFamily=i,p.style.fontSize=c,p.style.margin="0",p.style.padding="0",p.appendChild(this._document.createTextNode(Bu)),l.appendChild(p),l.appendChild(f);var v=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(Bu)),l.style.lineHeight="normal",f.style.verticalAlign="super";var E=f.offsetTop-l.offsetTop+2;return C.removeChild(l),{baseline:v,middle:E}},s.prototype.getMetrics=function(i,c){var l=i+" "+c;return typeof this._data[l]>"u"&&(this._data[l]=this.parseMetrics(i,c)),this._data[l]},s})(),pu=(function(){function s(i,c){this.context=i,this.options=c}return s})(),rE=1e4,oE=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f._activeEffects=[],f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),l.canvas||(f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px"),f.fontMetrics=new nE(document),f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.ctx.textBaseline="bottom",f._activeEffects=[],f.context.logger.debug("Canvas renderer initialized ("+l.width+"x"+l.height+") with scale "+l.scale),f}return i.prototype.applyEffects=function(c){for(var l=this;this._activeEffects.length;)this.popEffect();c.forEach(function(f){return l.applyEffect(f)})},i.prototype.applyEffect=function(c){this.ctx.save(),XQ(c)&&(this.ctx.globalAlpha=c.opacity),zQ(c)&&(this.ctx.translate(c.offsetX,c.offsetY),this.ctx.transform(c.matrix[0],c.matrix[1],c.matrix[2],c.matrix[3],c.matrix[4],c.matrix[5]),this.ctx.translate(-c.offsetX,-c.offsetY)),lu(c)&&(this.path(c.path),this.ctx.clip()),this._activeEffects.push(c)},i.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},i.prototype.renderStack=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return l=c.element.container.styles,l.isVisible()?[4,this.renderStackContent(c)]:[3,2];case 1:f.sent(),f.label=2;case 2:return[2]}})})},i.prototype.renderNode=function(c){return a(this,void 0,void 0,function(){return u(this,function(l){switch(l.label){case 0:if(de(c.container.flags,16))debugger;return c.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(c)]:[3,3];case 1:return l.sent(),[4,this.renderNodeContent(c)];case 2:l.sent(),l.label=3;case 3:return[2]}})})},i.prototype.renderTextWithLetterSpacing=function(c,l,f){var p=this;l===0?this.ctx.fillText(c.text,c.bounds.left,c.bounds.top+f):Gi(c.text).reduce(function(C,v){return p.ctx.fillText(v,C,c.bounds.top+f),C+p.ctx.measureText(v).width},c.bounds.left)},i.prototype.createFontStyle=function(c){var l=c.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=cE(c.fontFamily).join(", "),p=$n(c.fontSize)?""+c.fontSize.number+c.fontSize.unit:c.fontSize.number+"px";return[[c.fontStyle,l,c.fontWeight,p,f].join(" "),f,p]},i.prototype.renderTextNode=function(c,l){return a(this,void 0,void 0,function(){var f,p,C,v,E,k,K,z,q=this;return u(this,function(CA){return f=this.createFontStyle(l),p=f[0],C=f[1],v=f[2],this.ctx.font=p,this.ctx.direction=l.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",E=this.fontMetrics.getMetrics(C,v),k=E.baseline,K=E.middle,z=l.paintOrder,c.textBounds.forEach(function(fA){z.forEach(function(mA){switch(mA){case 0:q.ctx.fillStyle=fe(l.color),q.renderTextWithLetterSpacing(fA,l.letterSpacing,k);var KA=l.textShadow;KA.length&&fA.text.trim().length&&(KA.slice(0).reverse().forEach(function(DA){q.ctx.shadowColor=fe(DA.color),q.ctx.shadowOffsetX=DA.offsetX.number*q.options.scale,q.ctx.shadowOffsetY=DA.offsetY.number*q.options.scale,q.ctx.shadowBlur=DA.blur.number,q.renderTextWithLetterSpacing(fA,l.letterSpacing,k)}),q.ctx.shadowColor="",q.ctx.shadowOffsetX=0,q.ctx.shadowOffsetY=0,q.ctx.shadowBlur=0),l.textDecorationLine.length&&(q.ctx.fillStyle=fe(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(DA){switch(DA){case 1:q.ctx.fillRect(fA.bounds.left,Math.round(fA.bounds.top+k),fA.bounds.width,1);break;case 2:q.ctx.fillRect(fA.bounds.left,Math.round(fA.bounds.top),fA.bounds.width,1);break;case 3:q.ctx.fillRect(fA.bounds.left,Math.ceil(fA.bounds.top+K),fA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&fA.text.trim().length&&(q.ctx.strokeStyle=fe(l.webkitTextStrokeColor),q.ctx.lineWidth=l.webkitTextStrokeWidth,q.ctx.lineJoin=window.chrome?"miter":"round",q.ctx.strokeText(fA.text,fA.bounds.left,fA.bounds.top+k)),q.ctx.strokeStyle="",q.ctx.lineWidth=0,q.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=bo(c),C=Eo(l);this.path(C),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(f,0,0,c.intrinsicWidth,c.intrinsicHeight,p.left,p.top,p.width,p.height),this.ctx.restore()}},i.prototype.renderNodeContent=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,v,E,_A,_A,k,K,z,q,zA,CA,fA,kA,mA,KA,DA,_A,Ae,zA,kA;return u(this,function(QA){switch(QA.label){case 0:this.applyEffects(c.getEffects(4)),l=c.container,f=c.curves,p=l.styles,C=0,v=l.textNodes,QA.label=1;case 1:return C<v.length?(E=v[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:QA.sent(),QA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Lc))return[3,8];QA.label=5;case 5:return QA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return _A=QA.sent(),this.renderReplacedElement(l,f,_A),[3,8];case 7:return QA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof kc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof Tc))return[3,12];QA.label=9;case 9:return QA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return _A=QA.sent(),this.renderReplacedElement(l,f,_A),[3,12];case 11:return QA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof Vc&&l.tree?(k=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,k.render(l.tree)]):[3,14];case 13:K=QA.sent(),l.width&&l.height&&this.ctx.drawImage(K,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),QA.label=14;case 14:if(l instanceof Xi&&(z=Math.min(l.bounds.width,l.bounds.height),l.type===Bo?l.checked&&(this.ctx.save(),this.path([new yA(l.bounds.left+z*.39363,l.bounds.top+z*.79),new yA(l.bounds.left+z*.16,l.bounds.top+z*.5549),new yA(l.bounds.left+z*.27347,l.bounds.top+z*.44071),new yA(l.bounds.left+z*.39694,l.bounds.top+z*.5649),new yA(l.bounds.left+z*.72983,l.bounds.top+z*.23),new yA(l.bounds.left+z*.84,l.bounds.top+z*.34085),new yA(l.bounds.left+z*.39363,l.bounds.top+z*.79)]),this.ctx.fillStyle=fe(Oc),this.ctx.fill(),this.ctx.restore()):l.type===po&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+z/2,l.bounds.top+z/2,z/4,0,Math.PI*2,!0),this.ctx.fillStyle=fe(Oc),this.ctx.fill(),this.ctx.restore())),iE(l)&&l.value.length){switch(q=this.createFontStyle(p),zA=q[0],CA=q[1],fA=this.fontMetrics.getMetrics(zA,CA).baseline,this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=aE(l.styles.textAlign),kA=bo(l),mA=0,l.styles.textAlign){case 1:mA+=kA.width/2;break;case 2:mA+=kA.width;break}KA=kA.add(mA,0,0,-kA.height/2+1),this.ctx.save(),this.path([new yA(kA.left,kA.top),new yA(kA.left+kA.width,kA.top),new yA(kA.left+kA.width,kA.top+kA.height),new yA(kA.left,kA.top+kA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jn(l.value,KA),p.letterSpacing,fA),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!de(l.styles.display,2048))return[3,20];if(l.styles.listStyleImage===null)return[3,19];if(DA=l.styles.listStyleImage,DA.type!==0)return[3,18];_A=void 0,Ae=DA.url,QA.label=15;case 15:return QA.trys.push([15,17,,18]),[4,this.context.cache.match(Ae)];case 16:return _A=QA.sent(),this.ctx.drawImage(_A,l.bounds.left-(_A.width+10),l.bounds.top),[3,18];case 17:return QA.sent(),this.context.logger.error("Error loading list-style-image "+Ae),[3,18];case 18:return[3,20];case 19:c.listValue&&l.styles.listStyleType!==-1&&(zA=this.createFontStyle(p)[0],this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",kA=new h(l.bounds.left,l.bounds.top+jA(l.styles.paddingTop,l.bounds.width),l.bounds.width,Bc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jn(c.listValue,kA),p.letterSpacing,Bc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),QA.label=20;case 20:return[2]}})})},i.prototype.renderStackContent=function(c){return a(this,void 0,void 0,function(){var l,f,DA,p,C,DA,v,E,DA,k,K,DA,z,q,DA,CA,fA,DA,mA,KA,DA;return u(this,function(_A){switch(_A.label){case 0:if(de(c.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(c.element)];case 1:_A.sent(),l=0,f=c.negativeZIndex,_A.label=2;case 2:return l<f.length?(DA=f[l],[4,this.renderStack(DA)]):[3,5];case 3:_A.sent(),_A.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(c.element)];case 6:_A.sent(),p=0,C=c.nonInlineLevel,_A.label=7;case 7:return p<C.length?(DA=C[p],[4,this.renderNode(DA)]):[3,10];case 8:_A.sent(),_A.label=9;case 9:return p++,[3,7];case 10:v=0,E=c.nonPositionedFloats,_A.label=11;case 11:return v<E.length?(DA=E[v],[4,this.renderStack(DA)]):[3,14];case 12:_A.sent(),_A.label=13;case 13:return v++,[3,11];case 14:k=0,K=c.nonPositionedInlineLevel,_A.label=15;case 15:return k<K.length?(DA=K[k],[4,this.renderStack(DA)]):[3,18];case 16:_A.sent(),_A.label=17;case 17:return k++,[3,15];case 18:z=0,q=c.inlineLevel,_A.label=19;case 19:return z<q.length?(DA=q[z],[4,this.renderNode(DA)]):[3,22];case 20:_A.sent(),_A.label=21;case 21:return z++,[3,19];case 22:CA=0,fA=c.zeroOrAutoZIndexOrTransformedOrOpacity,_A.label=23;case 23:return CA<fA.length?(DA=fA[CA],[4,this.renderStack(DA)]):[3,26];case 24:_A.sent(),_A.label=25;case 25:return CA++,[3,23];case 26:mA=0,KA=c.positiveZIndex,_A.label=27;case 27:return mA<KA.length?(DA=KA[mA],[4,this.renderStack(DA)]):[3,30];case 28:_A.sent(),_A.label=29;case 29:return mA++,[3,27];case 30:return[2]}})})},i.prototype.mask=function(c){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(c.slice(0).reverse()),this.ctx.closePath()},i.prototype.path=function(c){this.ctx.beginPath(),this.formatPath(c),this.ctx.closePath()},i.prototype.formatPath=function(c){var l=this;c.forEach(function(f,p){var C=xe(f)?f.start:f;p===0?l.ctx.moveTo(C.x,C.y):l.ctx.lineTo(C.x,C.y),xe(f)&&l.ctx.bezierCurveTo(f.startControl.x,f.startControl.y,f.endControl.x,f.endControl.y,f.end.x,f.end.y)})},i.prototype.renderRepeat=function(c,l,f,p){this.path(c),this.ctx.fillStyle=l,this.ctx.translate(f,p),this.ctx.fill(),this.ctx.translate(-f,-p)},i.prototype.resizeImage=function(c,l,f){var p;if(c.width===l&&c.height===f)return c;var C=((p=this.canvas.ownerDocument)!==null&&p!==void 0?p:document).createElement("canvas");return C.width=Math.max(1,l),C.height=Math.max(1,f),C.getContext("2d").drawImage(c,0,0,c.width,c.height,0,0,l,f),C},i.prototype.renderBackgroundImage=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,v,E;return u(this,function(k){switch(k.label){case 0:l=c.styles.backgroundImage.length-1,f=function(K){var z,q,CA,ce,Ee,Fe,ZA,Be,PA,fA,ce,Ee,Fe,ZA,Be,mA,KA,DA,_A,Ae,zA,kA,QA,VA,PA,MA,ce,Qe,Ie,ZA,Be,Ht,Ee,Fe,Rt,Ye,It,Vt,Pt,ct,Gt,ut;return u(this,function(hn){switch(hn.label){case 0:if(K.type!==0)return[3,5];z=void 0,q=K.url,hn.label=1;case 1:return hn.trys.push([1,3,,4]),[4,p.context.cache.match(q)];case 2:return z=hn.sent(),[3,4];case 3:return hn.sent(),p.context.logger.error("Error loading background-image "+q),[3,4];case 4:return z&&(CA=ns(c,l,[z.width,z.height,z.width/z.height]),ce=CA[0],Ee=CA[1],Fe=CA[2],ZA=CA[3],Be=CA[4],PA=p.ctx.createPattern(p.resizeImage(z,ZA,Be),"repeat"),p.renderRepeat(ce,PA,Ee,Fe)),[3,6];case 5:ZC(K)?(fA=ns(c,l,[null,null,null]),ce=fA[0],Ee=fA[1],Fe=fA[2],ZA=fA[3],Be=fA[4],mA=XC(K.angle,ZA,Be),KA=mA[0],DA=mA[1],_A=mA[2],Ae=mA[3],zA=mA[4],kA=document.createElement("canvas"),kA.width=ZA,kA.height=Be,QA=kA.getContext("2d"),VA=QA.createLinearGradient(DA,Ae,_A,zA),oc(K.stops,KA).forEach(function(tr){return VA.addColorStop(tr.stop,fe(tr.color))}),QA.fillStyle=VA,QA.fillRect(0,0,ZA,Be),ZA>0&&Be>0&&(PA=p.ctx.createPattern(kA,"repeat"),p.renderRepeat(ce,PA,Ee,Fe))):jC(K)&&(MA=ns(c,l,[null,null,null]),ce=MA[0],Qe=MA[1],Ie=MA[2],ZA=MA[3],Be=MA[4],Ht=K.position.length===0?[Ii]:K.position,Ee=jA(Ht[0],ZA),Fe=jA(Ht[Ht.length-1],Be),Rt=$C(K,Ee,Fe,ZA,Be),Ye=Rt[0],It=Rt[1],Ye>0&&It>0&&(Vt=p.ctx.createRadialGradient(Qe+Ee,Ie+Fe,0,Qe+Ee,Ie+Fe,Ye),oc(K.stops,Ye*2).forEach(function(tr){return Vt.addColorStop(tr.stop,fe(tr.color))}),p.path(ce),p.ctx.fillStyle=Vt,Ye!==It?(Pt=c.bounds.left+.5*c.bounds.width,ct=c.bounds.top+.5*c.bounds.height,Gt=It/Ye,ut=1/Gt,p.ctx.save(),p.ctx.translate(Pt,ct),p.ctx.transform(1,0,0,Gt,0,0),p.ctx.translate(-Pt,-ct),p.ctx.fillRect(Qe,ut*(Ie-ct)+ct,ZA,Be*ut),p.ctx.restore()):p.ctx.fill())),hn.label=6;case 6:return l--,[2]}})},p=this,C=0,v=c.styles.backgroundImage.slice(0).reverse(),k.label=1;case 1:return C<v.length?(E=v[C],[5,f(E)]):[3,4];case 2:k.sent(),k.label=3;case 3:return C++,[3,1];case 4:return[2]}})})},i.prototype.renderSolidBorder=function(c,l,f){return a(this,void 0,void 0,function(){return u(this,function(p){return this.path(gu(f,l)),this.ctx.fillStyle=fe(c),this.ctx.fill(),[2]})})},i.prototype.renderDoubleBorder=function(c,l,f,p){return a(this,void 0,void 0,function(){var C,v;return u(this,function(E){switch(E.label){case 0:return l<3?[4,this.renderSolidBorder(c,f,p)]:[3,2];case 1:return E.sent(),[2];case 2:return C=YQ(p,f),this.path(C),this.ctx.fillStyle=fe(c),this.ctx.fill(),v=JQ(p,f),this.path(v),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,v,E,k,K,z=this;return u(this,function(q){switch(q.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!Et(l.backgroundColor)||l.backgroundImage.length,p=[{style:l.borderTopStyle,color:l.borderTopColor,width:l.borderTopWidth},{style:l.borderRightStyle,color:l.borderRightColor,width:l.borderRightWidth},{style:l.borderBottomStyle,color:l.borderBottomColor,width:l.borderBottomWidth},{style:l.borderLeftStyle,color:l.borderLeftColor,width:l.borderLeftWidth}],C=sE(gn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),Et(l.backgroundColor)||(this.ctx.fillStyle=fe(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:q.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(CA){z.ctx.save();var fA=Qo(c.curves),mA=CA.inset?0:rE,KA=$Q(fA,-mA+(CA.inset?1:-1)*CA.spread.number,(CA.inset?1:-1)*CA.spread.number,CA.spread.number*(CA.inset?-2:2),CA.spread.number*(CA.inset?-2:2));CA.inset?(z.path(fA),z.ctx.clip(),z.mask(KA)):(z.mask(fA),z.ctx.clip(),z.path(KA)),z.ctx.shadowOffsetX=CA.offsetX.number+mA,z.ctx.shadowOffsetY=CA.offsetY.number,z.ctx.shadowColor=fe(CA.color),z.ctx.shadowBlur=CA.blur.number,z.ctx.fillStyle=CA.inset?fe(CA.color):"rgba(0,0,0,1)",z.ctx.fill(),z.ctx.restore()}),q.label=2;case 2:v=0,E=0,k=p,q.label=3;case 3:return E<k.length?(K=k[E],K.style!==0&&!Et(K.color)&&K.width>0?K.style!==2?[3,5]:[4,this.renderDashedDottedBorder(K.color,K.width,v,c.curves,2)]:[3,11]):[3,13];case 4:return q.sent(),[3,11];case 5:return K.style!==3?[3,7]:[4,this.renderDashedDottedBorder(K.color,K.width,v,c.curves,3)];case 6:return q.sent(),[3,11];case 7:return K.style!==4?[3,9]:[4,this.renderDoubleBorder(K.color,K.width,v,c.curves)];case 8:return q.sent(),[3,11];case 9:return[4,this.renderSolidBorder(K.color,v,c.curves)];case 10:q.sent(),q.label=11;case 11:v++,q.label=12;case 12:return E++,[3,3];case 13:return[2]}})})},i.prototype.renderDashedDottedBorder=function(c,l,f,p,C){return a(this,void 0,void 0,function(){var v,E,k,K,z,q,CA,fA,mA,KA,DA,_A,Ae,zA,kA,QA,kA,QA;return u(this,function(VA){return this.ctx.save(),v=ZQ(p,f),E=gu(p,f),C===2&&(this.path(E),this.ctx.clip()),xe(E[0])?(k=E[0].start.x,K=E[0].start.y):(k=E[0].x,K=E[0].y),xe(E[1])?(z=E[1].end.x,q=E[1].end.y):(z=E[1].x,q=E[1].y),f===0||f===2?CA=Math.abs(k-z):CA=Math.abs(K-q),this.ctx.beginPath(),C===3?this.formatPath(v):this.formatPath(E.slice(0,2)),fA=l<3?l*3:l*2,mA=l<3?l*2:l,C===3&&(fA=l,mA=l),KA=!0,CA<=fA*2?KA=!1:CA<=fA*2+mA?(DA=CA/(2*fA+mA),fA*=DA,mA*=DA):(_A=Math.floor((CA+mA)/(fA+mA)),Ae=(CA-_A*fA)/(_A-1),zA=(CA-(_A+1)*fA)/_A,mA=zA<=0||Math.abs(mA-Ae)<Math.abs(mA-zA)?Ae:zA),KA&&(C===3?this.ctx.setLineDash([0,fA+mA]):this.ctx.setLineDash([fA,mA])),C===3?(this.ctx.lineCap="round",this.ctx.lineWidth=l):this.ctx.lineWidth=l*2+1.1,this.ctx.strokeStyle=fe(c),this.ctx.stroke(),this.ctx.setLineDash([]),C===2&&(xe(E[0])&&(kA=E[3],QA=E[0],this.ctx.beginPath(),this.formatPath([new yA(kA.end.x,kA.end.y),new yA(QA.start.x,QA.start.y)]),this.ctx.stroke()),xe(E[1])&&(kA=E[1],QA=E[2],this.ctx.beginPath(),this.formatPath([new yA(kA.end.x,kA.end.y),new yA(QA.start.x,QA.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),l=WQ(c),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(pu),iE=function(s){return s instanceof Rc||s instanceof Kc?!0:s instanceof Xi&&s.type!==po&&s.type!==Bo},sE=function(s,i){switch(s){case 0:return Qo(i);case 2:return VQ(i);default:return Eo(i)}},aE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},lE=["-apple-system","system-ui"],cE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return lE.indexOf(i)===-1}):s},uE=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),f.options=l,f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px",f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+l.width+"x"+l.height+" at "+l.x+","+l.y+") with scale "+l.scale),f}return i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l,f;return u(this,function(p){switch(p.label){case 0:return l=Pi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,c),[4,dE(l)];case 1:return f=p.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(f,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},i})(pu),dE=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},fE=(function(){function s(i){var c=i.id,l=i.enabled;this.id=c,this.enabled=l,this.start=Date.now()}return s.prototype.debug=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.getTime=function(){return Date.now()-this.start},s.prototype.info=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,d([this.id,this.getTime()+"ms"],i))},s.prototype.warn=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.error=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.instances={},s})(),gE=(function(){function s(i,c){var l;this.windowBounds=c,this.instanceName="#"+s.instanceCount++,this.logger=new fE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new NQ(this,i)}return s.instanceCount=1,s})(),hE=function(s,i){return i===void 0&&(i={}),BE(s,i)};typeof window<"u"&&au.setContext(window);var BE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,v,E,k,K,z,q,CA,fA,mA,KA,DA,_A,Ae,zA,kA,VA,QA,VA,PA,MA,ce,Qe,Ie,ZA,Be,Ht,Ee,Fe,Rt,Ye,It,Vt,Pt,ct,Gt;return u(this,function(ut){switch(ut.label){case 0:if(!s||typeof s!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(c=s.ownerDocument,!c)throw new Error("Element is not attached to a Document");if(l=c.defaultView,!l)throw new Error("Document is not attached to a Window");return f={allowTaint:(PA=i.allowTaint)!==null&&PA!==void 0?PA:!1,imageTimeout:(MA=i.imageTimeout)!==null&&MA!==void 0?MA:15e3,proxy:i.proxy,useCORS:(ce=i.useCORS)!==null&&ce!==void 0?ce:!1},p=o({logging:(Qe=i.logging)!==null&&Qe!==void 0?Qe:!0,cache:i.cache},f),C={windowWidth:(Ie=i.windowWidth)!==null&&Ie!==void 0?Ie:l.innerWidth,windowHeight:(ZA=i.windowHeight)!==null&&ZA!==void 0?ZA:l.innerHeight,scrollX:(Be=i.scrollX)!==null&&Be!==void 0?Be:l.pageXOffset,scrollY:(Ht=i.scrollY)!==null&&Ht!==void 0?Ht:l.pageYOffset},v=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new gE(p,v),k=(Ee=i.foreignObjectRendering)!==null&&Ee!==void 0?Ee:!1,K={allowTaint:(Fe=i.allowTaint)!==null&&Fe!==void 0?Fe:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:k,copyStyles:k},E.logger.debug("Starting document clone with size "+v.width+"x"+v.height+" scrolled to "+-v.left+","+-v.top),z=new iu(E,s,K),q=z.clonedReferenceElement,q?[4,z.toIFrame(c,v)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return CA=ut.sent(),fA=Wi(q)||pQ(q)?B(q.ownerDocument):g(E,q),mA=fA.width,KA=fA.height,DA=fA.left,_A=fA.top,Ae=pE(E,q,i.backgroundColor),zA={canvas:i.canvas,backgroundColor:Ae,scale:(Ye=(Rt=i.scale)!==null&&Rt!==void 0?Rt:l.devicePixelRatio)!==null&&Ye!==void 0?Ye:1,x:((It=i.x)!==null&&It!==void 0?It:0)+DA,y:((Vt=i.y)!==null&&Vt!==void 0?Vt:0)+_A,width:(Pt=i.width)!==null&&Pt!==void 0?Pt:Math.ceil(mA),height:(ct=i.height)!==null&&ct!==void 0?ct:Math.ceil(KA)},k?(E.logger.debug("Document cloned, using foreign object rendering"),VA=new uE(E,zA),[4,VA.render(q)]):[3,3];case 2:return kA=ut.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+DA+","+_A+" with size "+mA+"x"+KA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),QA=Gc(E,q),Ae===QA.styles.backgroundColor&&(QA.styles.backgroundColor=at.TRANSPARENT),E.logger.debug("Starting renderer for element at "+zA.x+","+zA.y+" with size "+zA.width+"x"+zA.height),VA=new oE(E,zA),[4,VA.render(QA)];case 4:kA=ut.sent(),ut.label=5;case 5:return(!((Gt=i.removeContainer)!==null&&Gt!==void 0)||Gt)&&(iu.destroy(CA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,kA]}})})},pE=function(s,i,c){var l=i.ownerDocument,f=l.documentElement?Yn(s,getComputedStyle(l.documentElement).backgroundColor):at.TRANSPARENT,p=l.body?Yn(s,getComputedStyle(l.body).backgroundColor):at.TRANSPARENT,C=typeof c=="string"?Yn(s,c):c===null?at.TRANSPARENT:4294967295;return i===l.documentElement?Et(f)?Et(p)?C:p:f:C};return hE}))})),jw=is(Zw(),1),qw=(0,r.defineComponent)({name:"DBiDesignContainer",__name:"biDesignContainer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},activedComponent:{type:Object,default:()=>({})},scale:{type:Number,default:1}},emits:["select","move"],setup(e,{emit:A}){const t=e,n=A,{apiUrl:o,token:a,httpGet:u,httpPost:d,httpPut:h,httpDelete:g,success:B,warning:w,error:m,info:y,useData:Q}=(0,me.useAppInject)(),{loadData:U,getData:T}=Q(),M=(0,r.computed)(()=>{const S={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:$A(t.indexPage.config.w||1920),height:$A(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(S.background=`url(${o}/system/annexesfile/${t.indexPage.config.backgroundImage}?token=${a?.value}) 0% 0% / 100% 100% ${t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"}`),S}),R=S=>{n("select",S)},H=S=>{n("move",S)},P=S=>{S?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)},iA={},Z=(S,eA)=>{S&&(iA[eA]=S)},aA=(0,r.computed)(()=>t.layout.map(S=>({...S,$refs:iA[S.id]}))),lA=async(S,eA)=>{if(S&&S.trim()){S=`async (jcode) => {${S}}`;const{res:I,msg:X,fn:F}=(0,me.getFunction)(S);if(I)return F(j(eA));m&&m(X)}},rA=S=>iA[S]?.getValue?.()||[],nA=S=>aA.value.find(({id:eA})=>eA===S)?.config||{},j=S=>(S.get=rA,S.getProps=nA,S.getSourceData=async(eA,I)=>(await U("dbsource",eA,JSON.stringify(I),!1),T("dbsource",eA,{params:I})),S.getDateNow=eA=>(0,me.formatToDateTime)(new Date,eA||"YYYY-MM-DD HH:mm:ss"),S.httpGet=u,S.httpPost=d,S.httpPut=h,S.httpDelete=g,S.loading=()=>{(0,me.fullScreenLoading)(!0)},S.hideLoading=()=>{(0,me.fullScreenLoading)(!1)},S.message=(eA,I)=>{switch(I){case"success":B&&B(eA);break;case"warning":w&&w(eA);break;case"error":m&&m(eA);break;case"info":y&&y(eA);break;default:y&&y(eA);break}},S);return(0,r.provide)("dui_bi_container",{executeEvent:lA}),(S,eA)=>{const I=(0,r.resolveComponent)("d-draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{onClick:(0,r.withModifiers)(P,["stop"]),id:"j-bi-design-container",style:(0,r.normalizeStyle)(M.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.layout,(X,F)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:X.id},[X.display?((0,r.openBlock)(),(0,r.createBlock)(I,{key:0,id:X.id,left:X.config.x,top:X.config.y,width:X.config.w,height:X.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":X.id==e.activedComponent.id,readonly:X.lock,"data-id":X.id,onFocus:x=>R(X),onBlur:H,"z-index":e.layout.length-F,"is-active-bg-transparent":!0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(X.componentName),(0,r.mergeProps)({style:{width:(0,r.unref)($A)(X.config.w),height:(0,r.unref)($A)(X.config.h)}},{ref_for:!0},X.config,{"is-design":!0,ref_for:!0,ref:x=>Z(x,X.id)}),null,16,["style"]))]),_:2},1032,["id","left","top","width","height","scale","step","active-flag","readonly","data-id","onFocus","z-index"])):(0,r.createCommentVNode)("",!0)],64))),128))],4)}}}),Ul=qw,A0=({data:e,actions:A,utils:t,inputParams:n,notRunActions:o})=>{const a=d=>e.filter(h=>h.source===d).map(h=>h.target),u=async d=>{d=d||"start";const h=e.find(g=>g.id===d);if(h.config.type==="start"){const g=a(d);for(let B=0;B<g.length;B++)await u(g[B])}else{const g=A[h.config.type];g&&await g(h.config,t,async B=>{if(B=B||{},B.nodeId=d,B.next!==!1){const w=a(B.nodeId);for(let m=0;m<w.length;m++)await u(w[m])}},n,B=>{o[B]={data:e,inputParams:n}})}};return{run:u}},e0=(0,r.defineComponent)({name:"DBiViewer",__name:"biViewer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e){const A=e,{apiUrl:t,token:n,httpGet:o,httpPost:a,httpPut:u,httpDelete:d,success:h,warning:g,error:B,info:w,useData:m}=(0,me.useAppInject)(),{loadData:y,getData:Q}=m(),U=(0,r.computed)(()=>A.layout),T=(0,r.ref)(),M=(0,r.ref)(1),R=(0,r.ref)(1),H=()=>{T.value&&P(T.value.offsetWidth,T.value.offsetHeight)},P=(N,L)=>{const O=A.indexPage.config?.w||1920,J=A.indexPage.config?.h||1080,tA=A.indexPage.config?.screenFit||"1";tA==="1"?(R.value=N/O,M.value=R.value):tA==="2"?(M.value=L/J,R.value=M.value):tA==="3"&&(R.value=N/O,M.value=L/J)},iA=(0,r.computed)(()=>{const N={transform:`scale(${R.value}, ${M.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:$A(A.indexPage.config?.w||1920),height:$A(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(N.background=`url(${t}/system/annexesfile/${A.indexPage.config?.backgroundImage}?token=${n?.value}) 0% 0% / 100% 100% ${A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"}`),N}),Z=(0,r.computed)(()=>({width:$A((A.indexPage.config?.w||1920)*R.value),height:$A((A.indexPage.config?.h||1080)*M.value)})),aA={},lA=(N,L)=>{N&&(aA[L]=N)},rA=new ResizeObserver(H);(0,r.onMounted)(()=>{U.value.forEach(N=>{N.$refs=aA[N.id]}),rA.observe(T.value)});const nA=async(N,L)=>{L.config.clickevent&&await S(JSON.parse(L.config?.clickevent),{param:{params:N}})},j=async(N,L)=>{if(N&&N.trim()){N=`async (jcode) => {${N}}`;const{res:O,msg:J,fn:tA}=(0,me.getFunction)(N);if(O)return tA(x(L));B&&B(J)}},S=async(N,L)=>{const{run:O}=A0({data:N,actions:A.actions,utils:{showLoading:me.fullScreenLoading,executeEvent:j},inputParams:L});await O()},eA=N=>aA[N]?.getValue()||[],I=(N,L=!0)=>{const O=U.value.find(({id:J})=>J===N);O&&(O.display=!L)},X=N=>U.value.find(({id:L})=>L===N)?.config||{},F=N=>{const L=U.value.find(({id:O})=>O===N);L?.$refs?.updateData&&L.$refs.updateData()},x=N=>(N.get=eA,N.setHide=I,N.getProps=X,N.refresh=F,N.getSourceData=async(L,O)=>(await y("dbsource",L,JSON.stringify(O),!1),Q("dbsource",L,{params:O})),N.getDateNow=L=>(0,me.formatToDateTime)(new Date,L||"YYYY-MM-DD HH:mm:ss"),N.httpGet=o,N.httpPost=a,N.httpPut=u,N.httpDelete=d,N.loading=()=>{(0,me.fullScreenLoading)(!0)},N.hideLoading=()=>{(0,me.fullScreenLoading)(!1)},N.message=(L,O)=>{switch(O){case"success":h&&h(L);break;case"warning":g&&g(L);break;case"error":B&&B(L);break;case"info":w&&w(L);break;default:w&&w(L);break}},N);return(0,r.provide)("dui_bi_viewer",{executeEvent:j}),(N,L)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"j-block",style:(0,r.normalizeStyle)({"overflow-y":!e.indexPage.config?.screenFit||e.indexPage.config?.screenFit=="1"?"auto":"hidden","overflow-x":e.indexPage.config?.screenFit=="2"?"auto":"hidden"}),ref_key:"biViewer",ref:T},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(Z.value)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(iA.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(U.value,(O,J)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(O.componentName),(0,r.mergeProps)({key:O.id,ref_for:!0,ref:tA=>lA(tA,O.id),style:{position:"absolute",width:(0,r.unref)($A)(O.config.w),height:(0,r.unref)($A)(O.config.h),top:(0,r.unref)($A)(O.config.y),left:(0,r.unref)($A)(O.config.x),zIndex:e.layout.length-J}},{ref_for:!0},O.config,{"run-flow":S,onClick:tA=>nA(tA,O)}),null,16,["style","onClick"])),[[r.vShow,O.display!==!1]])),128))],4)],4)],4))}}),bl=e0,t0={class:"j-bi-design"},n0={class:"j-bi-design-left"},r0={style:{padding:"0 4px"}},o0=["onClick"],i0={class:"j-bi-design-left2"},s0={key:0,class:"j-block",style:{"padding-top":"28px"}},a0={class:"search-input-wraper"},l0=["onClick","data-id"],c0={class:"j-bi-design-layer-item-img"},u0=["src"],d0={class:"j-bi-design-layer-item-btns"},f0=["onClick"],g0=["onClick"],h0=["onClick"],B0=["onDragend"],p0={class:"component-item2-text"},m0=["src"],w0={class:"j-bi-design-right"},C0={class:"j-bi-design-title"},y0={class:"j-bi-design-panel"},v0=(0,r.defineComponent)({name:"DBiDesign",__name:"biDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})},imgUrlPrefix:{type:String,default:"/"},scale:{type:Number,default:-1}},emits:["update:scale"],setup(e,{expose:A,emit:t}){const{t:n}=(0,me.useAppInject)(),o=e,a=t,u=(0,r.ref)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});o.componentInit&&(u.value.config=o.componentInit("indexPage")||{},u.value.config.id="indexPage");const d=(0,r.computed)(()=>{const sA={};return o.components.forEach(cA=>{cA.children.forEach(xA=>{sA[xA.type]=xA})}),sA}),h=(0,r.ref)(0),g=(0,r.ref)(),B=(0,r.ref)([]),w=(0,r.ref)(!1),m=(0,r.ref)(0),y=(0,r.ref)(0),Q=(0,r.ref)(""),U=(0,r.computed)(()=>Q.value===""?{}:B.value.find(sA=>sA.id===Q.value)),T=()=>{w.value=!1,Q.value=""},M=sA=>{sA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&T(),window.removeEventListener("mousedown",M)},R=sA=>{let{target:cA}=sA,xA=!1;cA.className.indexOf&&cA.className.indexOf("d-draggable__mask")>-1?(cA=cA.parentNode.parentNode,xA=!0):cA.className.indexOf&&cA.className.indexOf("j-bi-design-layer-item")>-1?xA=!0:cA.parentNode.className.indexOf&&cA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(cA=cA.parentNode,xA=!0):cA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(cA=cA.parentNode.parentNode,xA=!0),xA&&(sA.preventDefault(),sA.stopPropagation(),m.value=sA.clientX,y.value=sA.clientY-8,y.value+260>document.body.clientHeight&&(y.value=document.body.clientHeight-260),Q.value=cA.getAttribute("data-id"),w.value=!0,window.addEventListener("mousedown",M))},H=(0,r.ref)(""),P=(0,r.computed)(()=>H.value?B.value.filter(sA=>sA.config.label.indexOf(H.value)>-1):B.value),iA=sA=>{sA.display=!sA.display,T()},Z=sA=>{sA.lock=!sA.lock,T(),sA.lock&&sA.id===g.value?.id&&SA(u.value)},aA=(sA,cA)=>{if(!cA||B.value.length<1){T();return}const xA=B.value.findIndex(TA=>TA.id===cA.id);switch(sA){case"up":if(xA===-1||xA===0)break;B.value=lA(B.value,xA,xA-1);break;case"down":if(xA===-1||xA===B.value.length-1)break;B.value=lA(B.value,xA,xA+1);break;case"top":if(xA!==-1){const[TA]=B.value.splice(xA,1);B.value.unshift(TA)}break;case"bottom":if(xA!==-1){const[TA]=B.value.splice(xA,1);B.value.push(TA)}break}T()},lA=(sA,cA,xA)=>{const TA=sA[cA];return sA[cA]=sA[xA],sA[xA]=TA,sA},rA=(0,r.ref)(),nA=(0,r.ref)(20),j=(0,r.ref)(document.body.clientWidth),S=(0,r.ref)(document.body.clientHeight),eA=(0,r.ref)(0),I=(0,r.ref)(0),X=(0,r.ref)({bgColor:"rgba(225,225,225, 0)",longfgColor:"rgba(0, 0, 0, 0.45)",shortfgColor:"rgba(0, 0, 0, 0.45)",fontColor:"rgba(0, 0, 0, 0.65)",shadowColor:"rgba(225,225,225, 0)",lineColor:"var(--j-color-primary)",borderColor:"#d9d9d9",cornerActiveColor:"var(--j-color-primary)"}),F=(0,r.computed)(()=>({x:0,y:0,width:j.value,height:S.value})),x=(0,r.ref)({h:[],v:[]}),N=(0,r.ref)(),L=(0,r.ref)(),O=(0,r.ref)(!1),J=(0,r.ref)({}),tA=(0,r.ref)(100),dA=(0,r.computed)({set(sA){tA.value=sA,a("update:scale",sA)},get(){let{scale:sA}=o;return sA===-1&&(sA=tA.value),sA/100}}),UA=(0,r.computed)(()=>(u.value.config.h||1080)*2),G=(0,r.computed)(()=>(u.value.config.w||1920)*2),Y=()=>{rA.value&&(j.value=rA.value.offsetWidth-nA.value,S.value=rA.value.offsetHeight-nA.value,N.value.scrollLeft=G.value/2-nA.value,N.value.scrollTop=UA.value/2-nA.value,$())},$=()=>{const sA=u.value.config.w||1920;j.value<sA&&(dA.value=j.value*100/sA)},oA=()=>{document.onkeydown=sA=>{if(sA.target?.nodeName==="TEXTAREA"||sA.target?.nodeName==="INPUT")return;const cA=sA.keyCode||sA.which;cA===32&&(sA.preventDefault(),J.value.space=!0),cA===17&&(sA.preventDefault(),J.value.ctrl=!0)},document.onkeyup=()=>{J.value={}}},BA=sA=>{J.value.space&&(O.value=!0,window.stardragEvent=sA,window.startSlideX=N.value.scrollLeft,window.startSlideY=N.value.scrollTop,document.onmousemove=cA=>{if(O.value){const xA=cA.clientX-window.stardragEvent.clientX,TA=cA.clientY-window.stardragEvent.clientY;N.value.scrollLeft=window.startSlideX-xA,N.value.scrollTop=window.startSlideY-TA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,O.value=!1})},wA=()=>{const sA=N.value.getBoundingClientRect(),cA=L.value.getBoundingClientRect(),xA=dA.value,TA=(sA.left+nA.value-cA.left)/xA,ot=(sA.top+nA.value-cA.top)/xA;eA.value=TA>>0,I.value=ot>>0},bA=sA=>{if(sA.preventDefault(),sA.ctrlKey||sA.metaKey){const cA=dA.value;dA.value=parseFloat(Math.max(.2,cA-sA.deltaY/500).toFixed(2))*100,cA!==dA.value&&(0,r.nextTick)(()=>{wA()})}},uA=sA=>{sA.forEach(cA=>{cA.type==="d-input-flow"&&(cA.config=cA.config||{},cA.config.flowComponents=o.flowComponents,cA.config.flowInit=o.flowInit,cA.config.flowComponentConfigInit=xA=>{o.flowComponentConfigInit&&(xA.designComponents=B.value,xA.component=g.value,o.flowComponentConfigInit(xA))},cA.config.flowComponentConfigs=o.flowComponentConfigs,cA.config.flowComponentConfigChange=o.flowComponentConfigChange),cA.children&&uA(cA.children)})},hA=(0,r.ref)(),_=(0,r.computed)(()=>g.value?`【${g.value.name}】`:""),b={};Object.keys(o.componentConfigs).forEach(sA=>{const cA=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],xA=[{id:"w",type:"j-number",config:{label:"宽度",min:0}},{id:"h",type:"j-number",config:{label:"高度",min:0}},{id:"x",type:"j-number",config:{label:"x轴",min:0}},{id:"y",type:"j-number",config:{label:"y轴",min:0}}],TA={type:"j-collapse",config:{defaultValue:[]},children:[]};sA!=="indexPage"&&TA.children?.push({config:{label:"基础信息"},children:[...cA]}),TA.children?.push(...o.componentConfigs[sA]),sA!=="indexPage"?(TA.children?.push({config:{label:"大小定位"},children:[...xA]}),TA.config?.defaultValue.push("_collapse0","_collapse1")):TA.children&&TA.children.length>0&&TA.config?.defaultValue.push("_collapse0"),uA(TA.children||[]),b[sA]=[TA]});const D=()=>{if(g.value){const sA=b[g.value.type];sA?hA.value.init(sA,g.value.config):hA.value.init([]),o.componentConfigInit&&o.componentConfigInit(g.value.type,{configRef:hA,components:B.value,configData:g.value.config})}else hA.value.init([])},W=sA=>{g.value&&o.componentConfigChange&&(g.value.id==="indexPage"&&(sA.id==="w"||sA.id==="h")&&(0,r.nextTick)(()=>{Y()}),o.componentConfigChange(g.value.type,{configRef:hA,configData:g.value.config,...sA}))},V=sA=>o.componentInit?o.componentInit(sA)||{}:{},pA=(sA,cA,xA)=>{const TA={name:sA.name,id:ft(),type:sA.type,layerId:"0",config:V(sA.type),display:!0,lock:!1,componentName:sA.componentName};TA.config.id=TA.id,TA.config.label=sA.name,TA.config.h=sA.h||100,TA.config.w=sA.w||100,TA.config.x=cA,TA.config.y=xA,B.value.unshift(TA),g.value=TA,D()},gA=(sA,cA)=>{const xA=document.getElementById("j-bi-design-container").getBoundingClientRect(),TA=sA.clientX-xA.left,ot=sA.clientY-xA.top;pA(cA,TA/dA.value-cA.w/2,ot/dA.value-cA.h/2)},HA=sA=>{B.value=B.value.filter(cA=>cA.id!==sA),g.value.id===sA&&(g.value=u.value,D()),T()},FA=sA=>{const cA=mn(sA),xA=ft();cA.id=xA,cA.config.id=xA,B.value.push(cA),g.value=cA,D(),T()},SA=sA=>{g.value?.id!==sA.id&&(g.value=sA,D())},OA=({left:sA,top:cA,width:xA,height:TA})=>{g.value&&(g.value.config.x=sA,g.value.config.y=cA,g.value.config.w=xA,g.value.config.h=TA,hA.value.setFormData({main:{x:sA,y:cA,w:xA,h:TA}}))},XA=new ResizeObserver(Y);(0,r.onMounted)(()=>{XA.observe(rA.value),oA(),SA(u.value)});const ae=()=>({ver:"1.0.0",components:mn(B.value),page:u.value}),re=sA=>{sA.components?.forEach(cA=>{cA.componentName=d.value[cA.type].componentName}),B.value=sA.components||[],u.value=sA.page||u.value,SA(u.value)},nt=()=>{B.value=[],SA(u.value)},Tt=()=>new Promise(sA=>{(0,jw.default)(L.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(cA=>{if(cA.width!==0&&cA.height!==0){sA(cA.toDataURL("image/png"));return}sA("")})}),rt=(0,r.ref)(),On=(0,r.ref)({});return A({clear:nt,setData:re,getData:ae,getImg:Tt,preview:()=>{On.value=ae(),rt.value.open("大屏预览","full")}}),(sA,cA)=>{const xA=(0,r.resolveComponent)("el-divider"),TA=(0,r.resolveComponent)("j-icon"),ot=(0,r.resolveComponent)("el-button"),Kn=(0,r.resolveComponent)("el-input"),it=(0,r.resolveComponent)("el-text"),Rn=(0,r.resolveComponent)("el-space"),tn=(0,r.resolveComponent)("j-form"),nn=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",t0,[w.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,r.normalizeStyle)({left:m.value+"px",top:y.value+"px"})},[(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[0]||(cA[0]=GA=>FA(U.value))},(0,r.toDisplayString)((0,r.unref)(n)("复制")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[1]||(cA[1]=GA=>iA(U.value))},(0,r.toDisplayString)(U.value&&U.value.display?"隐藏":"显示"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[2]||(cA[2]=GA=>Z(U.value))},(0,r.toDisplayString)(U.value&&U.value.lock?"解锁":"锁定"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[3]||(cA[3]=GA=>aA("top",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("置顶图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[4]||(cA[4]=GA=>aA("bottom",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("置底图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[5]||(cA[5]=GA=>aA("up",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("上移一层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[6]||(cA[6]=GA=>aA("down",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("下移一层")),1),(0,r.createVNode)(xA,{style:{margin:"4px 0"}}),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:cA[7]||(cA[7]=GA=>HA(U.value?.id))},(0,r.toDisplayString)((0,r.unref)(n)("删除")),1)],4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",n0,[(0,r.createElementVNode)("div",{onClick:cA[8]||(cA[8]=(0,r.withModifiers)(GA=>h.value=-1,["stop"])),class:(0,r.normalizeClass)(["component-item",{active:h.value==-1}])},[(0,r.createVNode)(TA,{size:24,icon:"mdi:bookmark-box-multiple-outline"}),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)("图层")),1)],2),(0,r.createElementVNode)("div",r0,[(0,r.createVNode)(xA)]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze,onClick:(0,r.withModifiers)(wt=>h.value=ze,["stop"]),class:(0,r.normalizeClass)(["component-item",{active:h.value==ze}])},[(0,r.createVNode)(TA,{size:24,icon:GA.icon},null,8,["icon"]),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)(GA.name)),1)],10,o0))),128))]),(0,r.createElementVNode)("div",i0,[h.value==-1?((0,r.openBlock)(),(0,r.createElementBlock)("div",s0,[(0,r.createElementVNode)("div",a0,[(0,r.createVNode)(Kn,{modelValue:H.value,"onUpdate:modelValue":cA[9]||(cA[9]=GA=>H.value=GA),class:"search-input",placeholder:"搜索图层"},{append:(0,r.withCtx)(()=>[(0,r.createVNode)(ot,null,{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(TA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"])]),(0,r.createElementVNode)("div",{class:"j-block",style:{"padding-top":"8px",overflow:"auto"},onContextmenu:(0,r.withModifiers)(R,["prevent"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(P.value,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item",{active:g.value.id==GA.id}]),onClick:(0,r.withModifiers)(wt=>SA(GA),["stop"]),"data-id":GA.id},[(0,r.createElementVNode)("div",c0,[(0,r.createElementVNode)("img",{style:{height:"100%"},src:`${e.imgUrlPrefix}${d.value[GA.type].img}`},null,8,u0)]),(0,r.createVNode)(it,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(GA.config.label)),1)]),_:2},1024),(0,r.createElementVNode)("div",d0,[(0,r.createVNode)(Rn,{size:2},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:!GA.display}]),onClick:(0,r.withModifiers)(wt=>iA(GA),["stop"])},[(0,r.createVNode)(TA,{icon:"mdi:eye-off-outline"})],10,f0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:GA.lock}]),onClick:(0,r.withModifiers)(wt=>Z(GA),["stop"])},[(0,r.createVNode)(TA,{icon:"mdi:lock-outline"})],10,g0)]),_:2},1024)])],10,l0)]))),128))],32)])):e.components[h.value]?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(e.components[h.value].children,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze,onClick:wt=>pA(GA,0,0)},[(0,r.createElementVNode)("div",{class:"component-item2",onDragend:wt=>gA(wt,GA),draggable:"true"},[(0,r.createElementVNode)("div",p0,[(0,r.createVNode)(it,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(GA.name)),1)]),_:2},1024)]),(0,r.createElementVNode)("img",{class:"component-item2-img",src:`${e.imgUrlPrefix}${GA.img}`},null,8,m0)],40,B0)],8,h0))),128)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:rA},[((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Jw),{key:dA.value,thick:nA.value,scale:dA.value,width:j.value,height:S.value,"start-x":eA.value,"start-y":I.value,palette:X.value,shadow:F.value,"hor-line-arr":x.value.h,"ver-line-arr":x.value.v},null,8,["thick","scale","width","height","start-x","start-y","palette","shadow","hor-line-arr","ver-line-arr"])),(0,r.createElementVNode)("div",{ref_key:"screensRef",ref:N,class:"j-bi-design-main",style:(0,r.normalizeStyle)({cursor:O.value?"pointer":""}),onMousedown:(0,r.withModifiers)(BA,["stop"]),onWheel:bA,onScroll:wA},[(0,r.createElementVNode)("div",{class:"screen-container",style:(0,r.normalizeStyle)({height:UA.value+"px",width:G.value+"px"}),onClick:cA[10]||(cA[10]=(0,r.withModifiers)(GA=>SA(u.value),["stop"]))},[(0,r.createElementVNode)("div",{ref_key:"canvasRef",ref:L,class:"canvas",onContextmenu:(0,r.withModifiers)(R,["prevent"])},[(0,r.createVNode)(Ul,{layout:B.value,"index-page":u.value,"actived-component":g.value,scale:dA.value,onSelect:SA,onMove:OA},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,r.createElementVNode)("div",w0,[(0,r.createElementVNode)("div",C0,[(0,r.createVNode)(it,{truncated:"",style:{margin:"0","font-size":"14px"}},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(`${(0,r.unref)(n)("属性配置")}${_.value} `),1)]),_:1})]),(0,r.createElementVNode)("div",y0,[(0,r.createVNode)(tn,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:hA,onChange:W},null,512)])]),(0,r.createVNode)(nn,{ref_key:"previewFormLayerRef",ref:rt,destroyOnClose:!0,hasHeader:!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(bl,{indexPage:On.value.page,layout:On.value.components,actions:e.actions},null,8,["indexPage","layout","actions"])]),_:1},512)])}}}),Q0=v0,Hl=dt(Q0,[Ul,bl]),E0=[cs,xo,Do,No,Lo,ol,il,fl,gl,Cl,El,Hl],Il=new WeakSet,F0=e=>{Il.has(e)||(Il.add(e),E0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},U0={install:F0};te.DBiDesign=Hl,te.DDrag=cs,te.DDraggable=gl,te.DFlowDesign=ol,te.DFormDesign=Cl,te.DIndexDesign=El,te.DInputFlow=il,te.DLayout=fl,te.default=U0,te.dragContainer=Do,te.dragFormList=No,te.dragIndexList=Lo,te.dragTool=xo,te.toFormDesignSchema=Bl,te.toFormSaveSchema=Gr,te.toFormSchema=hl});
|