ablok-components 0.1.150 → 0.1.151

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.
@@ -29606,7 +29606,7 @@ const E3 = { class: "touch-wrapper__controls" }, F3 = {
29606
29606
  const e = Zo(), n = e && e.appContext.config.globalProperties.$config, r = t, i = A, s = UA();
29607
29607
  function a(f) {
29608
29608
  const h = r.modelValue + f;
29609
- i("update:modelValue", h >= 1 ? h : 1);
29609
+ i("update:modelValue", f === 0 ? 1 : h >= 1 ? h : 1);
29610
29610
  }
29611
29611
  function u(f) {
29612
29612
  if (f.ctrlKey) {
@@ -180,4 +180,4 @@ function print() { __p += __j.call(arguments, '') }
180
180
  content: "" !important;
181
181
  display: none !important;
182
182
  }`,qN=function(t){ZN(t,"."+Gf+YN+SC+`
183
- .`+Wf+zN+SC)},ZN=function(t,e){var A=t.ownerDocument;if(A){var n=A.createElement("style");n.textContent=e,t.appendChild(n)}},TC=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),jN=function(){function t(e,A){this.context=e,this._options=A,this._cache={}}return t.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(Jf(e)||nD(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return lt(this,void 0,void 0,function(){var A,n,r,i,s=this;return ZA(this,function(a){switch(a.label){case 0:return A=TC.isSameOrigin(e),n=!$f(e)&&this._options.useCORS===!0&&PA.SUPPORT_CORS_IMAGES&&!A,r=!$f(e)&&!A&&!Jf(e)&&typeof this._options.proxy=="string"&&PA.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!$f(e)&&!Jf(e)&&!r&&!n?[2]:(i=e,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(rD(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,s){var a=PA.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(g){return s(g)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),A._options.imageTimeout){var f=A._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),eD=/^data:image\/svg\+xml/i,AD=/^data:image\/.*;base64,/i,tD=/^data:image\/.*/i,nD=function(t){return PA.SUPPORT_SVG_DRAWING||!iD(t)},$f=function(t){return tD.test(t)},rD=function(t){return AD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},iD=function(t){return t.substr(-3).toLowerCase()==="svg"||eD.test(t)},Z=function(){function t(e,A){this.type=0,this.x=e,this.y=A}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),ns=function(t,e,A){return new Z(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},Cl=function(){function t(e,A,n,r){this.type=1,this.start=e,this.startControl=A,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,A){var n=ns(this.start,this.startControl,e),r=ns(this.startControl,this.endControl,e),i=ns(this.endControl,this.end,e),s=ns(n,r,e),a=ns(r,i,e),c=ns(s,a,e);return A?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},sD=function(){function t(e){var A=e.styles,n=e.bounds,r=lo(A.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(A.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(A.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],B=lo(A.borderBottomLeftRadius,n.width,n.height),w=B[0],Q=B[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+Q)/n.height),b.push((u+g)/n.height);var v=Math.max.apply(Math,b);v>1&&(i/=v,s/=v,c/=v,u/=v,p/=v,g/=v,w/=v,Q/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-Q,U=A.borderTopWidth,N=A.borderRightWidth,V=A.borderBottomWidth,D=A.borderLeftWidth,se=sA(A.paddingTop,e.bounds.width),Be=sA(A.paddingRight,e.bounds.width),ne=sA(A.paddingBottom,e.bounds.width),ce=sA(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?uA(n.left+D/3,n.top+U/3,i-D/3,s-U/3,Je.TOP_LEFT):new Z(n.left+D/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?uA(n.left+_,n.top+U/3,c-N/3,u-U/3,Je.TOP_RIGHT):new Z(n.left+n.width-N/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?uA(n.left+E,n.top+S,p-N/3,g-V/3,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N/3,n.top+n.height-V/3),this.bottomLeftBorderDoubleOuterBox=w>0||Q>0?uA(n.left+D/3,n.top+L,w-D/3,Q-V/3,Je.BOTTOM_LEFT):new Z(n.left+D/3,n.top+n.height-V/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?uA(n.left+D*2/3,n.top+U*2/3,i-D*2/3,s-U*2/3,Je.TOP_LEFT):new Z(n.left+D*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?uA(n.left+_,n.top+U*2/3,c-N*2/3,u-U*2/3,Je.TOP_RIGHT):new Z(n.left+n.width-N*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?uA(n.left+E,n.top+S,p-N*2/3,g-V*2/3,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N*2/3,n.top+n.height-V*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||Q>0?uA(n.left+D*2/3,n.top+L,w-D*2/3,Q-V*2/3,Je.BOTTOM_LEFT):new Z(n.left+D*2/3,n.top+n.height-V*2/3),this.topLeftBorderStroke=i>0||s>0?uA(n.left+D/2,n.top+U/2,i-D/2,s-U/2,Je.TOP_LEFT):new Z(n.left+D/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?uA(n.left+_,n.top+U/2,c-N/2,u-U/2,Je.TOP_RIGHT):new Z(n.left+n.width-N/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?uA(n.left+E,n.top+S,p-N/2,g-V/2,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N/2,n.top+n.height-V/2),this.bottomLeftBorderStroke=w>0||Q>0?uA(n.left+D/2,n.top+L,w-D/2,Q-V/2,Je.BOTTOM_LEFT):new Z(n.left+D/2,n.top+n.height-V/2),this.topLeftBorderBox=i>0||s>0?uA(n.left,n.top,i,s,Je.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?uA(n.left+_,n.top,c,u,Je.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?uA(n.left+E,n.top+S,p,g,Je.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||Q>0?uA(n.left,n.top+L,w,Q,Je.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?uA(n.left+D,n.top+U,Math.max(0,i-D),Math.max(0,s-U),Je.TOP_LEFT):new Z(n.left+D,n.top+U),this.topRightPaddingBox=c>0||u>0?uA(n.left+Math.min(_,n.width-N),n.top+U,_>n.width+N?0:Math.max(0,c-N),Math.max(0,u-U),Je.TOP_RIGHT):new Z(n.left+n.width-N,n.top+U),this.bottomRightPaddingBox=p>0||g>0?uA(n.left+Math.min(E,n.width-D),n.top+Math.min(S,n.height-V),Math.max(0,p-N),Math.max(0,g-V),Je.BOTTOM_RIGHT):new Z(n.left+n.width-N,n.top+n.height-V),this.bottomLeftPaddingBox=w>0||Q>0?uA(n.left+D,n.top+Math.min(L,n.height-V),Math.max(0,w-D),Math.max(0,Q-V),Je.BOTTOM_LEFT):new Z(n.left+D,n.top+n.height-V),this.topLeftContentBox=i>0||s>0?uA(n.left+D+ce,n.top+U+se,Math.max(0,i-(D+ce)),Math.max(0,s-(U+se)),Je.TOP_LEFT):new Z(n.left+D+ce,n.top+U+se),this.topRightContentBox=c>0||u>0?uA(n.left+Math.min(_,n.width+D+ce),n.top+U+se,_>n.width+D+ce?0:c-D+ce,u-(U+se),Je.TOP_RIGHT):new Z(n.left+n.width-(N+Be),n.top+U+se),this.bottomRightContentBox=p>0||g>0?uA(n.left+Math.min(E,n.width-(D+ce)),n.top+Math.min(S,n.height+U+se),Math.max(0,p-(N+Be)),g-(V+ne),Je.BOTTOM_RIGHT):new Z(n.left+n.width-(N+Be),n.top+n.height-(V+ne)),this.bottomLeftContentBox=w>0||Q>0?uA(n.left+D+ce,n.top+L,Math.max(0,w-(D+ce)),Q-(V+ne),Je.BOTTOM_LEFT):new Z(n.left+D+ce,n.top+n.height-(V+ne))}return t}(),Je;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Je||(Je={}));var uA=function(t,e,A,n,r){var i=4*((Math.sqrt(2)-1)/3),s=A*i,a=n*i,c=t+A,u=e+n;switch(r){case Je.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,e),new Z(c,e));case Je.TOP_RIGHT:return new Cl(new Z(t,e),new Z(t+s,e),new Z(c,u-a),new Z(c,u));case Je.BOTTOM_RIGHT:return new Cl(new Z(c,e),new Z(c,e+a),new Z(t+s,u),new Z(t,u));case Je.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,e+a),new Z(t,e))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},oD=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},aD=function(){function t(e,A,n){this.offsetX=e,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(e,A){this.path=e,this.target=A,this.type=1}return t}(),lD=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),cD=function(t){return t.type===0},_C=function(t){return t.type===1},uD=function(t){return t.type===2},xC=function(t,e){return t.length===e.length?t.some(function(A,n){return A===e[n]}):!1},fD=function(t,e,A,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(e,A);case 1:return i.add(e+n,A);case 2:return i.add(e+n,A+r);case 3:return i.add(e,A+r)}return i})},OC=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),LC=function(){function t(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new sD(this.container),this.container.styles.opacity<1&&this.effects.push(new lD(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new aD(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);xC(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(e){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!_C(c)});if(A||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);xC(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return SA(c.target,e)})},t}(),Xf=function(t,e,A,n){t.container.elements.forEach(function(r){var i=SA(r.flags,4),s=SA(r.flags,2),a=new LC(r,t);SA(r.styles.display,2048)&&n.push(a);var c=SA(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?A:e,f=new OC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var g=0;u.negativeZIndex.some(function(w,Q){return p>w.element.container.styles.zIndex.order?(g=Q,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var B=0;u.positiveZIndex.some(function(w,Q){return p>=w.element.container.styles.zIndex.order?(B=Q+1,!1):B>0}),u.positiveZIndex.splice(B,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:A,c)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Xf(a,e,A,c);SA(r.flags,8)&&HC(r,c)})},HC=function(t,e){for(var A=t instanceof Nf?t.start:1,n=t instanceof Nf?t.reversed:!1,r=0;r<e.length;r++){var i=e[r];i.container instanceof sC&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=go(A,i.container.styles.listStyleType,!0),A+=n?-1:1}},dD=function(t){var e=new LC(t,null),A=new OC(e),n=[];return Xf(e,A,A,n),HC(e.container,n),A},kC=function(t,e){switch(e){case 0:return $t(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},hD=function(t,e){switch(e){case 0:return $t(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return $t(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},pD=function(t,e){switch(e){case 0:return $t(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},gD=function(t,e){switch(e){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,e){var A=[];return Wt(t)?A.push(t.subdivide(.5,!1)):A.push(t),Wt(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},$t=function(t,e,A,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(A)?r.push(A.subdivide(.5,!0)):r.push(A),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},NC=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},bl=function(t){var e=t.styles,A=t.bounds,n=sA(e.paddingLeft,A.width),r=sA(e.paddingRight,A.width),i=sA(e.paddingTop,A.width),s=sA(e.paddingBottom,A.width);return A.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+s))},mD=function(t,e){return t===0?e.bounds:t===2?bl(e):NC(e)},BD=function(t,e){return t===0?e.bounds:t===2?bl(e):NC(e)},Yf=function(t,e,A){var n=mD(is(t.styles.backgroundOrigin,e),t),r=BD(is(t.styles.backgroundClip,e),t),i=wD(is(t.styles.backgroundSize,e),A,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,e),n.width-s,n.height-a),u=CD(is(t.styles.backgroundRepeat,e),c,i,n,r),f=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,f,p,s,a]},rs=function(t){return je(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},wD=function(t,e,A){var n=e[0],r=e[1],i=e[2],s=t[0],a=t[1];if(!s)return[0,0];if(UA(s)&&a&&UA(a))return[sA(s,A.width),sA(a,A.height)];var c=Ul(i);if(je(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=A.width/A.height;return u<i!=(s.value===ji.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var f=Ul(n),p=Ul(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[A.width,A.height];if(g&&c){var B=f?n:r*i,w=p?r:n/i;return[B,w]}var Q=f?n:A.width,b=p?r:A.height;return[Q,b]}if(c){var v=0,_=0;return UA(s)?v=sA(s,A.width):UA(a)&&(_=sA(a,A.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(UA(s)?S=sA(s,A.width):a&&UA(a)&&(E=sA(a,A.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:A.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:A.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,e){var A=t[e];return typeof A>"u"?t[0]:A},CD=function(t,e,A,n,r){var i=e[0],s=e[1],a=A[0],c=A[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},yD="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",ED=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,A){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=yD,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(DC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(DC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(e,A){var n=e+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,A)),this._data[n]},t}(),MC=function(){function t(e,A){this.context=e,this.options=A}return t}(),QD=1e4,FD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new ED(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(r){return n.applyEffect(r)})},e.prototype.applyEffect=function(A){this.ctx.save(),uD(A)&&(this.ctx.globalAlpha=A.opacity),cD(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),_C(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(A){return lt(this,void 0,void 0,function(){return ZA(this,function(n){switch(n.label){case 0:if(SA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(A,n,r){var i=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r);else{var s=kf(A.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,A.bounds.top+r),a+i.ctx.measureText(c).width},A.bounds.left)}},e.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=SD(A.fontFamily).join(", "),i=ao(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,i,r].join(" "),r,i]},e.prototype.renderTextNode=function(A,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return ZA(this,function(B){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,p=n.paintOrder,A.textBounds.forEach(function(w){p.forEach(function(Q){switch(Q){case 0:g.ctx.fillStyle=NA(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(v){g.ctx.shadowColor=NA(v.color),g.ctx.shadowOffsetX=v.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=v.offsetY.number*g.options.scale,g.ctx.shadowBlur=v.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=NA(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(v){switch(v){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=NA(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(A,n,r){if(r&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=bl(A),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,B,w,L,Q,b,v,_,S,E,L;return ZA(this,function(U){switch(U.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,r=A.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof nC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof rC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof iC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof cC&&n.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Df&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===hl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore())),bD(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],B=g[1],w=this.fontMetrics.getMetrics(E,B).baseline,this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=vD(n.styles.textAlign),L=bl(n),Q=0,n.styles.textAlign){case 1:Q+=L.width/2;break;case 2:Q+=L.width;break}b=L.add(Q,0,0,-L.height/2+1),this.ctx.save(),this.path([new Z(L.left,L.top),new Z(L.left+L.width,L.top),new Z(L.left+L.width,L.top+L.height),new Z(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!SA(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(v=n.styles.listStyleImage,v.type!==0)return[3,18];_=void 0,S=v.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return _=U.sent(),this.ctx.drawImage(_,n.bounds.left-(_.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:A.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+sA(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(A.listValue,L),i.letterSpacing,Dw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(A){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,B,w,v,Q,b,v;return ZA(this,function(_){switch(_.label){case 0:if(SA(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:_.sent(),n=0,r=A.negativeZIndex,_.label=2;case 2:return n<r.length?(v=r[n],[4,this.renderStack(v)]):[3,5];case 3:_.sent(),_.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:_.sent(),i=0,s=A.nonInlineLevel,_.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:a=0,c=A.nonPositionedFloats,_.label=11;case 11:return a<c.length?(v=c[a],[4,this.renderStack(v)]):[3,14];case 12:_.sent(),_.label=13;case 13:return a++,[3,11];case 14:u=0,f=A.nonPositionedInlineLevel,_.label=15;case 15:return u<f.length?(v=f[u],[4,this.renderStack(v)]):[3,18];case 16:_.sent(),_.label=17;case 17:return u++,[3,15];case 18:p=0,g=A.inlineLevel,_.label=19;case 19:return p<g.length?(v=g[p],[4,this.renderNode(v)]):[3,22];case 20:_.sent(),_.label=21;case 21:return p++,[3,19];case 22:B=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return B<w.length?(v=w[B],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return B++,[3,23];case 26:Q=0,b=A.positiveZIndex,_.label=27;case 27:return Q<b.length?(v=b[Q],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return Q++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(A){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(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var n=this;A.forEach(function(r,i){var s=Wt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Wt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(A,n,r,i){this.path(A),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},e.prototype.resizeImage=function(A,n,r){var i;if(A.width===n&&A.height===r)return A;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(A,0,0,A.width,A.height,0,0,n,r),a},e.prototype.renderBackgroundImage=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return ZA(this,function(u){switch(u.label){case 0:n=A.styles.backgroundImage.length-1,r=function(f){var p,g,B,se,Re,He,ce,Le,V,w,se,Re,He,ce,Le,Q,b,v,_,S,E,L,U,N,V,D,se,Be,ne,ce,Le,oA,Re,He,re,me,Xe,ke,Ge,Ke,eA,AA;return ZA(this,function(ze){switch(ze.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,ze.label=1;case 1:return ze.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=ze.sent(),[3,4];case 3:return ze.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(B=Yf(A,n,[p.width,p.height,p.width/p.height]),se=B[0],Re=B[1],He=B[2],ce=B[3],Le=B[4],V=i.ctx.createPattern(i.resizeImage(p,ce,Le),"repeat"),i.renderRepeat(se,V,Re,He)),[3,6];case 5:cH(f)?(w=Yf(A,n,[null,null,null]),se=w[0],Re=w[1],He=w[2],ce=w[3],Le=w[4],Q=iH(f.angle,ce,Le),b=Q[0],v=Q[1],_=Q[2],S=Q[3],E=Q[4],L=document.createElement("canvas"),L.width=ce,L.height=Le,U=L.getContext("2d"),N=U.createLinearGradient(v,S,_,E),vw(f.stops,b).forEach(function(pA){return N.addColorStop(pA.stop,NA(pA.color))}),U.fillStyle=N,U.fillRect(0,0,ce,Le),ce>0&&Le>0&&(V=i.ctx.createPattern(L,"repeat"),i.renderRepeat(se,V,Re,He))):uH(f)&&(D=Yf(A,n,[null,null,null]),se=D[0],Be=D[1],ne=D[2],ce=D[3],Le=D[4],oA=f.position.length===0?[yf]:f.position,Re=sA(oA[0],ce),He=sA(oA[oA.length-1],Le),re=sH(f,Re,He,ce,Le),me=re[0],Xe=re[1],me>0&&Xe>0&&(ke=i.ctx.createRadialGradient(Be+Re,ne+He,0,Be+Re,ne+He,me),vw(f.stops,me*2).forEach(function(pA){return ke.addColorStop(pA.stop,NA(pA.color))}),i.path(se),i.ctx.fillStyle=ke,me!==Xe?(Ge=A.bounds.left+.5*A.bounds.width,Ke=A.bounds.top+.5*A.bounds.height,eA=Xe/me,AA=1/eA,i.ctx.save(),i.ctx.translate(Ge,Ke),i.ctx.transform(1,0,0,eA,0,0),i.ctx.translate(-Ge,-Ke),i.ctx.fillRect(Be,AA*(ne-Ke)+Ke,ce,Le*AA),i.ctx.restore()):i.ctx.fill())),ze.label=6;case 6:return n--,[2]}})},i=this,s=0,a=A.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(A,n,r){return lt(this,void 0,void 0,function(){return ZA(this,function(i){return this.path(kC(r,n)),this.ctx.fillStyle=NA(A),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(A,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return ZA(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(A,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=hD(i,r),this.path(s),this.ctx.fillStyle=NA(A),this.ctx.fill(),a=pD(i,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return ZA(this,function(g){switch(g.label){case 0:return this.applyEffects(A.getEffects(2)),n=A.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=UD(is(n.backgroundClip,0),A.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=NA(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(B){p.ctx.save();var w=yl(A.curves),Q=B.inset?0:QD,b=fD(w,-Q+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=B.offsetX.number+Q,p.ctx.shadowOffsetY=B.offsetY.number,p.ctx.shadowColor=NA(B.color),p.ctx.shadowBlur=B.blur.number,p.ctx.fillStyle=B.inset?NA(B.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,A.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,A.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(A,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,U,L,U;return ZA(this,function(N){return this.ctx.save(),a=gD(i,r),c=kC(i,r),s===2&&(this.path(c),this.ctx.clip()),Wt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Wt(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?B=Math.abs(u-p):B=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,Q=n<3?n*2:n,s===3&&(w=n,Q=n),b=!0,B<=w*2?b=!1:B<=w*2+Q?(v=B/(2*w+Q),w*=v,Q*=v):(_=Math.floor((B+Q)/(w+Q)),S=(B-_*w)/(_-1),E=(B-(_+1)*w)/_,Q=E<=0||Math.abs(Q-S)<Math.abs(Q-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+Q]):this.ctx.setLineDash([w,Q])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=NA(A),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(c[0])&&(L=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),Wt(c[1])&&(L=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=dD(A),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(MC),bD=function(t){return t instanceof lC||t instanceof aC?!0:t instanceof Df&&t.type!==pl&&t.type!==hl},UD=function(t,e){switch(t){case 0:return yl(e);case 2:return oD(e);case 1:default:return El(e)}},vD=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ID=["-apple-system","system-ui"],SD=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return ID.indexOf(e)===-1}):t},TD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n,r;return ZA(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,_D(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(MC),_D=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},xD=function(){function t(e){var A=e.id,n=e.enabled;this.id=A,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),OD=function(){function t(e,A){var n;this.windowBounds=A,this.instanceName="#"+t.instanceCount++,this.logger=new xD({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new jN(this,e)}return t.instanceCount=1,t}(),LD=function(t,e){return e===void 0&&(e={}),HD(t,e)};typeof window<"u"&&TC.setContext(window);var HD=function(t,e){return lt(void 0,void 0,void 0,function(){var A,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,N,U,N,V,D,se,Be,ne,ce,Le,oA,Re,He,re,me,Xe,ke,Ge,Ke,eA;return ZA(this,function(AA){switch(AA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=t.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(n=A.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(V=e.allowTaint)!==null&&V!==void 0?V:!1,imageTimeout:(D=e.imageTimeout)!==null&&D!==void 0?D:15e3,proxy:e.proxy,useCORS:(se=e.useCORS)!==null&&se!==void 0?se:!1},i=ju({logging:(Be=e.logging)!==null&&Be!==void 0?Be:!0,cache:e.cache},r),s={windowWidth:(ne=e.windowWidth)!==null&&ne!==void 0?ne:n.innerWidth,windowHeight:(ce=e.windowHeight)!==null&&ce!==void 0?ce:n.innerHeight,scrollX:(Le=e.scrollX)!==null&&Le!==void 0?Le:n.pageXOffset,scrollY:(oA=e.scrollY)!==null&&oA!==void 0?oA:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new OD(i,a),u=(Re=e.foreignObjectRendering)!==null&&Re!==void 0?Re:!1,f={allowTaint:(He=e.allowTaint)!==null&&He!==void 0?He:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new IC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(A,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=AA.sent(),w=Rf(g)||kN(g)?fO(g.ownerDocument):Ha(c,g),Q=w.width,b=w.height,v=w.left,_=w.top,S=kD(c,g,e.backgroundColor),E={canvas:e.canvas,backgroundColor:S,scale:(me=(re=e.scale)!==null&&re!==void 0?re:n.devicePixelRatio)!==null&&me!==void 0?me:1,x:((Xe=e.x)!==null&&Xe!==void 0?Xe:0)+v,y:((ke=e.y)!==null&&ke!==void 0?ke:0)+_,width:(Ge=e.width)!==null&&Ge!==void 0?Ge:Math.ceil(Q),height:(Ke=e.height)!==null&&Ke!==void 0?Ke:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),N=new TD(c,E),[4,N.render(g)]):[3,3];case 2:return L=AA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+Q+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=fC(c,g),S===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),N=new FD(c,E),[4,N.render(U)];case 4:L=AA.sent(),AA.label=5;case 5:return(!((eA=e.removeContainer)!==null&&eA!==void 0)||eA)&&(IC.destroy(B)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},kD=function(t,e,A){var n=e.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof A=="string"?co(t,A):A===null?Jn.TRANSPARENT:4294967295;return e===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const ND=h.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await LD(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...A.options})).toDataURL();if(n("update:modelValue",p),A.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=IB.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;A.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(u.$slots,"default")],6))}}),DD={class:"link-sharing"},MD={key:0,class:"link-sharing__links container"},RD={class:"row"},KD={key:0,class:"col-12 col-md-6"},VD=["href"],PD={class:"caption"},GD={key:1,class:"col-12 col-md-6"},WD=["href"],$D={class:"caption"},JD={key:2,class:"col-12 col-md-6"},XD={class:"caption"},YD={key:3,class:"col-12 col-md-6"},zD=["href"],qD={class:"caption"},ZD={key:4,class:"col-12 col-md-6"},jD=["href"],eM={class:"caption"},AM={key:5,class:"col-12 col-md-6"},tM={class:"caption"},nM={key:6,class:"col-12 col-md-6"},rM=["href"],iM={class:"caption"},sM={key:1,class:"link-sharing__instructions pt-5"},oM={class:"row"},aM={class:"col-12 text-center py-0"},lM={class:"mb-5"},cM=t=>t.replace(/<(?:.|\n)*?>/gm,""),uM=h.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const e=t,A=h.ref(!1),n=h.computed(()=>encodeURIComponent(e.url));h.computed(()=>encodeURIComponent(e.media));const r=h.computed(()=>cM(e.text)),i=h.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=e.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,c)=>{const u=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",DD,[A.value?(h.openBlock(),h.createElementBlock("div",sM,[h.createElementVNode("div",oM,[h.createElementVNode("div",aM,[h.createElementVNode("div",lM,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",MD,[h.createElementVNode("div",RD,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",KD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",PD,h.toDisplayString(a.$t("sharing.facebook")),1)],8,VD)])):h.createCommentVNode("",!0),t.services.bluesky?(h.openBlock(),h.createElementBlock("div",GD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${r.value}${r.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"bluesky-logo"}),h.createElementVNode("span",$D,h.toDisplayString(a.$t("sharing.bluesky")),1)],8,WD)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",JD,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>A.value=!A.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",XD,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",YD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",qD,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,zD)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",ZD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",eM,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,jD)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",AM,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",tM,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",nM,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",iM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,rM)])):h.createCommentVNode("",!0)])]))])}}}),_3="",fM={class:"base-form"},dM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function A(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",fM,[h.createElementVNode("form",{ref:"form",onInput:e,onReset:A,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),x3="",hM={class:"modal-dialog__content d-flex flex-column"},pM={class:"modal-dialog__header d-flex p-3 border-bottom"},gM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},mM={class:"modal-dialog__body"},BM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},wM=h.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:e,emit:A}){const n=t,r=A,i=h.ref();function s(){var g,B;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(B=i.value)==null||B.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),B=new Animation(g,document.timeline);B.play(),B.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function p(g){const B=g.target;B&&B.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,B)=>{g&&g!==B?s():B&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",B=>{B.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),e({show:s,close:a,confirm:u,cancel:f}),(g,B)=>(h.openBlock(),h.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:h.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[h.createElementVNode("div",hM,[h.createElementVNode("div",pM,[t.title?(h.openBlock(),h.createElementBlock("h5",gM,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),h.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),h.createElementVNode("div",mM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",BM,[h.renderSlot(g.$slots,"footer"),h.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},h.toDisplayString(g.$t("common.close")),1)])):h.createCommentVNode("",!0)])],34))}}),O3="",CM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],yM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],EM={key:0,class:"sortable-list__drag-handle"},QM={type:"button",class:"btn"},FM={key:0,class:"sortable-list__item"},bM=h.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=e,a=h.computed({get(){return A.modelValue},set(_){s("update:modelValue",_)}}),c=h.computed(()=>{var _;return(_=document.querySelector(".is-drag-item"))==null?void 0:_.outerHTML}),u=h.useSlots(),f=h.computed(()=>u["list-append"]);function p(_,S){_.dataTransfer&&(_.dataTransfer.dropEffect="move",_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("index",S.toLocaleString()),n.value=!0,r.value=S)}function g(_,S){n.value=!1,r.value=null,i.value=null}function B(_,S){}function w(_,S){i.value=r.value!==S?S:null}function Q(_,S){}function b(_,S){}function v(_,S){if(_.dataTransfer){_.preventDefault();const E=Number(_.dataTransfer.getData("index")),L=S,U=[...a.value];(L||L===0)&&(E||E===0)&&U.splice(L,0,U.splice(E,1)[0]),a.value=U}}return(_,S)=>{const E=h.resolveComponent("svg-icon");return h.openBlock(),h.createBlock(h.TransitionGroup,{name:"list",tag:"ul",class:h.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=h.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=h.withModifiers(()=>{},["prevent"]))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(L,U)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:U},[t.showPreview&&n.value&&i.value===U?(h.openBlock(),h.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U),innerHTML:c.value},null,40,CM)):h.createCommentVNode("",!0),h.createElementVNode("li",{class:h.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":n.value&&r.value===U,"is-drop-target":n.value&&i.value===U&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:N=>p(N,U),onDrag:N=>void 0,onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",EM,[h.createElementVNode("button",QM,[h.createVNode(E,{symbol:"drag"})])])):h.createCommentVNode("",!0),h.createElementVNode("div",{class:h.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[h.renderSlot(_.$slots,"list-item",{item:L,index:U},()=>[h.createTextVNode(h.toDisplayString(L),1)])],2)],42,yM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",FM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),L3="",UM={class:"touch-wrapper__controls"},vM={class:"btn-group",role:"group"},IM=h.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=h.getCurrentInstance(),n=A&&A.appContext.config.globalProperties.$config,r=t,i=e,s=h.ref();function a(f){const p=r.modelValue+f;i("update:modelValue",p>=1?p:1)}function c(f){if(f.ctrlKey){f.preventDefault();const p=0-f.deltaY*.01;a(p)}}function u(f){f.preventDefault();const{scale:p}=f,g=p>1?p*.01:0-p;a(g)}return h.onMounted(()=>{s.value&&(s.value.addEventListener("wheel",c,!1),s.value.addEventListener("gesturestart",u,!1),s.value.addEventListener("gesturechange",u,!1),s.value.addEventListener("gestureend",u,!1))}),(f,p)=>{const g=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{ref_key:"touchElement",ref:s,class:"touch-wrapper"},[h.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[h.createElementVNode("div",UM,[h.createElementVNode("div",vM,[h.createElementVNode("button",{type:"button",class:"btn",onClick:p[0]||(p[0]=B=>a(-1))},[h.createVNode(g,{symbol:"minus","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[1]||(p[1]=B=>a(0))},[h.createVNode(g,{symbol:"maximize","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[2]||(p[2]=B=>a(1))},[h.createVNode(g,{symbol:"plus","base-path":h.unref(n).iconSprite},null,8,["base-path"])])])])]),h.renderSlot(f.$slots,"default")],512)}}}),H3="";Qe.Accordion=kE,Qe.AccordionItem=_E,Qe.AssetUploader=zx,Qe.AutoSuggest=m_,Qe.BaseButton=DE,Qe.BaseCamera=N_,Qe.BaseCarousel=NB,Qe.BaseForm=dM,Qe.BaseHeadline=yE,Qe.BaseImage=CE,Qe.BaseInput=VE,Qe.BaseParagraph=QE,Qe.CheckGroup=rQ,Qe.ColorPalette=nS,Qe.DomRenderer=ND,Qe.FileUpload=Rx,Qe.InputCheckbox=zE,Qe.InputColor=eS,Qe.InputDatetime=eQ,Qe.InputDropdown=f_,Qe.InputFile=gQ,Qe.InputTextarea=$E,Qe.LinkSharing=uM,Qe.LoadingSpinner=BE,Qe.MediaThumbnails=tO,Qe.ModalDialog=wM,Qe.ProgressSteps=uO,Qe.RadioGroup=fh,Qe.RteEditor=z1,Qe.SortableList=bM,Qe.SvgIcon=pE,Qe.TouchWrapper=IM,Qe.UploadGroup=kB,Object.defineProperty(Qe,Symbol.toStringTag,{value:"Module"})});
183
+ .`+Wf+zN+SC)},ZN=function(t,e){var A=t.ownerDocument;if(A){var n=A.createElement("style");n.textContent=e,t.appendChild(n)}},TC=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),jN=function(){function t(e,A){this.context=e,this._options=A,this._cache={}}return t.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(Jf(e)||nD(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return lt(this,void 0,void 0,function(){var A,n,r,i,s=this;return ZA(this,function(a){switch(a.label){case 0:return A=TC.isSameOrigin(e),n=!$f(e)&&this._options.useCORS===!0&&PA.SUPPORT_CORS_IMAGES&&!A,r=!$f(e)&&!A&&!Jf(e)&&typeof this._options.proxy=="string"&&PA.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!$f(e)&&!Jf(e)&&!r&&!n?[2]:(i=e,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(rD(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,s){var a=PA.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(g){return s(g)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),A._options.imageTimeout){var f=A._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),eD=/^data:image\/svg\+xml/i,AD=/^data:image\/.*;base64,/i,tD=/^data:image\/.*/i,nD=function(t){return PA.SUPPORT_SVG_DRAWING||!iD(t)},$f=function(t){return tD.test(t)},rD=function(t){return AD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},iD=function(t){return t.substr(-3).toLowerCase()==="svg"||eD.test(t)},Z=function(){function t(e,A){this.type=0,this.x=e,this.y=A}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),ns=function(t,e,A){return new Z(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},Cl=function(){function t(e,A,n,r){this.type=1,this.start=e,this.startControl=A,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,A){var n=ns(this.start,this.startControl,e),r=ns(this.startControl,this.endControl,e),i=ns(this.endControl,this.end,e),s=ns(n,r,e),a=ns(r,i,e),c=ns(s,a,e);return A?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},sD=function(){function t(e){var A=e.styles,n=e.bounds,r=lo(A.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(A.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(A.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],B=lo(A.borderBottomLeftRadius,n.width,n.height),w=B[0],Q=B[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+Q)/n.height),b.push((u+g)/n.height);var v=Math.max.apply(Math,b);v>1&&(i/=v,s/=v,c/=v,u/=v,p/=v,g/=v,w/=v,Q/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-Q,U=A.borderTopWidth,N=A.borderRightWidth,V=A.borderBottomWidth,D=A.borderLeftWidth,se=sA(A.paddingTop,e.bounds.width),Be=sA(A.paddingRight,e.bounds.width),ne=sA(A.paddingBottom,e.bounds.width),ce=sA(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?uA(n.left+D/3,n.top+U/3,i-D/3,s-U/3,Je.TOP_LEFT):new Z(n.left+D/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?uA(n.left+_,n.top+U/3,c-N/3,u-U/3,Je.TOP_RIGHT):new Z(n.left+n.width-N/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?uA(n.left+E,n.top+S,p-N/3,g-V/3,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N/3,n.top+n.height-V/3),this.bottomLeftBorderDoubleOuterBox=w>0||Q>0?uA(n.left+D/3,n.top+L,w-D/3,Q-V/3,Je.BOTTOM_LEFT):new Z(n.left+D/3,n.top+n.height-V/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?uA(n.left+D*2/3,n.top+U*2/3,i-D*2/3,s-U*2/3,Je.TOP_LEFT):new Z(n.left+D*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?uA(n.left+_,n.top+U*2/3,c-N*2/3,u-U*2/3,Je.TOP_RIGHT):new Z(n.left+n.width-N*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?uA(n.left+E,n.top+S,p-N*2/3,g-V*2/3,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N*2/3,n.top+n.height-V*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||Q>0?uA(n.left+D*2/3,n.top+L,w-D*2/3,Q-V*2/3,Je.BOTTOM_LEFT):new Z(n.left+D*2/3,n.top+n.height-V*2/3),this.topLeftBorderStroke=i>0||s>0?uA(n.left+D/2,n.top+U/2,i-D/2,s-U/2,Je.TOP_LEFT):new Z(n.left+D/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?uA(n.left+_,n.top+U/2,c-N/2,u-U/2,Je.TOP_RIGHT):new Z(n.left+n.width-N/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?uA(n.left+E,n.top+S,p-N/2,g-V/2,Je.BOTTOM_RIGHT):new Z(n.left+n.width-N/2,n.top+n.height-V/2),this.bottomLeftBorderStroke=w>0||Q>0?uA(n.left+D/2,n.top+L,w-D/2,Q-V/2,Je.BOTTOM_LEFT):new Z(n.left+D/2,n.top+n.height-V/2),this.topLeftBorderBox=i>0||s>0?uA(n.left,n.top,i,s,Je.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?uA(n.left+_,n.top,c,u,Je.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?uA(n.left+E,n.top+S,p,g,Je.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||Q>0?uA(n.left,n.top+L,w,Q,Je.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?uA(n.left+D,n.top+U,Math.max(0,i-D),Math.max(0,s-U),Je.TOP_LEFT):new Z(n.left+D,n.top+U),this.topRightPaddingBox=c>0||u>0?uA(n.left+Math.min(_,n.width-N),n.top+U,_>n.width+N?0:Math.max(0,c-N),Math.max(0,u-U),Je.TOP_RIGHT):new Z(n.left+n.width-N,n.top+U),this.bottomRightPaddingBox=p>0||g>0?uA(n.left+Math.min(E,n.width-D),n.top+Math.min(S,n.height-V),Math.max(0,p-N),Math.max(0,g-V),Je.BOTTOM_RIGHT):new Z(n.left+n.width-N,n.top+n.height-V),this.bottomLeftPaddingBox=w>0||Q>0?uA(n.left+D,n.top+Math.min(L,n.height-V),Math.max(0,w-D),Math.max(0,Q-V),Je.BOTTOM_LEFT):new Z(n.left+D,n.top+n.height-V),this.topLeftContentBox=i>0||s>0?uA(n.left+D+ce,n.top+U+se,Math.max(0,i-(D+ce)),Math.max(0,s-(U+se)),Je.TOP_LEFT):new Z(n.left+D+ce,n.top+U+se),this.topRightContentBox=c>0||u>0?uA(n.left+Math.min(_,n.width+D+ce),n.top+U+se,_>n.width+D+ce?0:c-D+ce,u-(U+se),Je.TOP_RIGHT):new Z(n.left+n.width-(N+Be),n.top+U+se),this.bottomRightContentBox=p>0||g>0?uA(n.left+Math.min(E,n.width-(D+ce)),n.top+Math.min(S,n.height+U+se),Math.max(0,p-(N+Be)),g-(V+ne),Je.BOTTOM_RIGHT):new Z(n.left+n.width-(N+Be),n.top+n.height-(V+ne)),this.bottomLeftContentBox=w>0||Q>0?uA(n.left+D+ce,n.top+L,Math.max(0,w-(D+ce)),Q-(V+ne),Je.BOTTOM_LEFT):new Z(n.left+D+ce,n.top+n.height-(V+ne))}return t}(),Je;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Je||(Je={}));var uA=function(t,e,A,n,r){var i=4*((Math.sqrt(2)-1)/3),s=A*i,a=n*i,c=t+A,u=e+n;switch(r){case Je.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,e),new Z(c,e));case Je.TOP_RIGHT:return new Cl(new Z(t,e),new Z(t+s,e),new Z(c,u-a),new Z(c,u));case Je.BOTTOM_RIGHT:return new Cl(new Z(c,e),new Z(c,e+a),new Z(t+s,u),new Z(t,u));case Je.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,e+a),new Z(t,e))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},oD=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},aD=function(){function t(e,A,n){this.offsetX=e,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(e,A){this.path=e,this.target=A,this.type=1}return t}(),lD=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),cD=function(t){return t.type===0},_C=function(t){return t.type===1},uD=function(t){return t.type===2},xC=function(t,e){return t.length===e.length?t.some(function(A,n){return A===e[n]}):!1},fD=function(t,e,A,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(e,A);case 1:return i.add(e+n,A);case 2:return i.add(e+n,A+r);case 3:return i.add(e,A+r)}return i})},OC=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),LC=function(){function t(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new sD(this.container),this.container.styles.opacity<1&&this.effects.push(new lD(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new aD(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);xC(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(e){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!_C(c)});if(A||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);xC(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return SA(c.target,e)})},t}(),Xf=function(t,e,A,n){t.container.elements.forEach(function(r){var i=SA(r.flags,4),s=SA(r.flags,2),a=new LC(r,t);SA(r.styles.display,2048)&&n.push(a);var c=SA(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?A:e,f=new OC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var g=0;u.negativeZIndex.some(function(w,Q){return p>w.element.container.styles.zIndex.order?(g=Q,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var B=0;u.positiveZIndex.some(function(w,Q){return p>=w.element.container.styles.zIndex.order?(B=Q+1,!1):B>0}),u.positiveZIndex.splice(B,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:A,c)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Xf(a,e,A,c);SA(r.flags,8)&&HC(r,c)})},HC=function(t,e){for(var A=t instanceof Nf?t.start:1,n=t instanceof Nf?t.reversed:!1,r=0;r<e.length;r++){var i=e[r];i.container instanceof sC&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=go(A,i.container.styles.listStyleType,!0),A+=n?-1:1}},dD=function(t){var e=new LC(t,null),A=new OC(e),n=[];return Xf(e,A,A,n),HC(e.container,n),A},kC=function(t,e){switch(e){case 0:return $t(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},hD=function(t,e){switch(e){case 0:return $t(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return $t(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},pD=function(t,e){switch(e){case 0:return $t(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},gD=function(t,e){switch(e){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,e){var A=[];return Wt(t)?A.push(t.subdivide(.5,!1)):A.push(t),Wt(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},$t=function(t,e,A,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(A)?r.push(A.subdivide(.5,!0)):r.push(A),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},NC=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},bl=function(t){var e=t.styles,A=t.bounds,n=sA(e.paddingLeft,A.width),r=sA(e.paddingRight,A.width),i=sA(e.paddingTop,A.width),s=sA(e.paddingBottom,A.width);return A.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+s))},mD=function(t,e){return t===0?e.bounds:t===2?bl(e):NC(e)},BD=function(t,e){return t===0?e.bounds:t===2?bl(e):NC(e)},Yf=function(t,e,A){var n=mD(is(t.styles.backgroundOrigin,e),t),r=BD(is(t.styles.backgroundClip,e),t),i=wD(is(t.styles.backgroundSize,e),A,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,e),n.width-s,n.height-a),u=CD(is(t.styles.backgroundRepeat,e),c,i,n,r),f=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,f,p,s,a]},rs=function(t){return je(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},wD=function(t,e,A){var n=e[0],r=e[1],i=e[2],s=t[0],a=t[1];if(!s)return[0,0];if(UA(s)&&a&&UA(a))return[sA(s,A.width),sA(a,A.height)];var c=Ul(i);if(je(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=A.width/A.height;return u<i!=(s.value===ji.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var f=Ul(n),p=Ul(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[A.width,A.height];if(g&&c){var B=f?n:r*i,w=p?r:n/i;return[B,w]}var Q=f?n:A.width,b=p?r:A.height;return[Q,b]}if(c){var v=0,_=0;return UA(s)?v=sA(s,A.width):UA(a)&&(_=sA(a,A.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(UA(s)?S=sA(s,A.width):a&&UA(a)&&(E=sA(a,A.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:A.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:A.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,e){var A=t[e];return typeof A>"u"?t[0]:A},CD=function(t,e,A,n,r){var i=e[0],s=e[1],a=A[0],c=A[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},yD="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",ED=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,A){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=yD,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(DC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(DC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(e,A){var n=e+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,A)),this._data[n]},t}(),MC=function(){function t(e,A){this.context=e,this.options=A}return t}(),QD=1e4,FD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new ED(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(r){return n.applyEffect(r)})},e.prototype.applyEffect=function(A){this.ctx.save(),uD(A)&&(this.ctx.globalAlpha=A.opacity),cD(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),_C(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(A){return lt(this,void 0,void 0,function(){return ZA(this,function(n){switch(n.label){case 0:if(SA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(A,n,r){var i=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r);else{var s=kf(A.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,A.bounds.top+r),a+i.ctx.measureText(c).width},A.bounds.left)}},e.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=SD(A.fontFamily).join(", "),i=ao(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,i,r].join(" "),r,i]},e.prototype.renderTextNode=function(A,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return ZA(this,function(B){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,p=n.paintOrder,A.textBounds.forEach(function(w){p.forEach(function(Q){switch(Q){case 0:g.ctx.fillStyle=NA(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(v){g.ctx.shadowColor=NA(v.color),g.ctx.shadowOffsetX=v.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=v.offsetY.number*g.options.scale,g.ctx.shadowBlur=v.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=NA(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(v){switch(v){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=NA(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(A,n,r){if(r&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=bl(A),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,B,w,L,Q,b,v,_,S,E,L;return ZA(this,function(U){switch(U.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,r=A.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof nC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof rC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof iC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof cC&&n.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Df&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===hl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=NA(oC),this.ctx.fill(),this.ctx.restore())),bD(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],B=g[1],w=this.fontMetrics.getMetrics(E,B).baseline,this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=vD(n.styles.textAlign),L=bl(n),Q=0,n.styles.textAlign){case 1:Q+=L.width/2;break;case 2:Q+=L.width;break}b=L.add(Q,0,0,-L.height/2+1),this.ctx.save(),this.path([new Z(L.left,L.top),new Z(L.left+L.width,L.top),new Z(L.left+L.width,L.top+L.height),new Z(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!SA(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(v=n.styles.listStyleImage,v.type!==0)return[3,18];_=void 0,S=v.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return _=U.sent(),this.ctx.drawImage(_,n.bounds.left-(_.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:A.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=NA(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+sA(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(A.listValue,L),i.letterSpacing,Dw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(A){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,B,w,v,Q,b,v;return ZA(this,function(_){switch(_.label){case 0:if(SA(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:_.sent(),n=0,r=A.negativeZIndex,_.label=2;case 2:return n<r.length?(v=r[n],[4,this.renderStack(v)]):[3,5];case 3:_.sent(),_.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:_.sent(),i=0,s=A.nonInlineLevel,_.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:a=0,c=A.nonPositionedFloats,_.label=11;case 11:return a<c.length?(v=c[a],[4,this.renderStack(v)]):[3,14];case 12:_.sent(),_.label=13;case 13:return a++,[3,11];case 14:u=0,f=A.nonPositionedInlineLevel,_.label=15;case 15:return u<f.length?(v=f[u],[4,this.renderStack(v)]):[3,18];case 16:_.sent(),_.label=17;case 17:return u++,[3,15];case 18:p=0,g=A.inlineLevel,_.label=19;case 19:return p<g.length?(v=g[p],[4,this.renderNode(v)]):[3,22];case 20:_.sent(),_.label=21;case 21:return p++,[3,19];case 22:B=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return B<w.length?(v=w[B],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return B++,[3,23];case 26:Q=0,b=A.positiveZIndex,_.label=27;case 27:return Q<b.length?(v=b[Q],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return Q++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(A){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(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var n=this;A.forEach(function(r,i){var s=Wt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Wt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(A,n,r,i){this.path(A),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},e.prototype.resizeImage=function(A,n,r){var i;if(A.width===n&&A.height===r)return A;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(A,0,0,A.width,A.height,0,0,n,r),a},e.prototype.renderBackgroundImage=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return ZA(this,function(u){switch(u.label){case 0:n=A.styles.backgroundImage.length-1,r=function(f){var p,g,B,se,Re,He,ce,Le,V,w,se,Re,He,ce,Le,Q,b,v,_,S,E,L,U,N,V,D,se,Be,ne,ce,Le,oA,Re,He,re,me,Xe,ke,Ge,Ke,eA,AA;return ZA(this,function(ze){switch(ze.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,ze.label=1;case 1:return ze.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=ze.sent(),[3,4];case 3:return ze.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(B=Yf(A,n,[p.width,p.height,p.width/p.height]),se=B[0],Re=B[1],He=B[2],ce=B[3],Le=B[4],V=i.ctx.createPattern(i.resizeImage(p,ce,Le),"repeat"),i.renderRepeat(se,V,Re,He)),[3,6];case 5:cH(f)?(w=Yf(A,n,[null,null,null]),se=w[0],Re=w[1],He=w[2],ce=w[3],Le=w[4],Q=iH(f.angle,ce,Le),b=Q[0],v=Q[1],_=Q[2],S=Q[3],E=Q[4],L=document.createElement("canvas"),L.width=ce,L.height=Le,U=L.getContext("2d"),N=U.createLinearGradient(v,S,_,E),vw(f.stops,b).forEach(function(pA){return N.addColorStop(pA.stop,NA(pA.color))}),U.fillStyle=N,U.fillRect(0,0,ce,Le),ce>0&&Le>0&&(V=i.ctx.createPattern(L,"repeat"),i.renderRepeat(se,V,Re,He))):uH(f)&&(D=Yf(A,n,[null,null,null]),se=D[0],Be=D[1],ne=D[2],ce=D[3],Le=D[4],oA=f.position.length===0?[yf]:f.position,Re=sA(oA[0],ce),He=sA(oA[oA.length-1],Le),re=sH(f,Re,He,ce,Le),me=re[0],Xe=re[1],me>0&&Xe>0&&(ke=i.ctx.createRadialGradient(Be+Re,ne+He,0,Be+Re,ne+He,me),vw(f.stops,me*2).forEach(function(pA){return ke.addColorStop(pA.stop,NA(pA.color))}),i.path(se),i.ctx.fillStyle=ke,me!==Xe?(Ge=A.bounds.left+.5*A.bounds.width,Ke=A.bounds.top+.5*A.bounds.height,eA=Xe/me,AA=1/eA,i.ctx.save(),i.ctx.translate(Ge,Ke),i.ctx.transform(1,0,0,eA,0,0),i.ctx.translate(-Ge,-Ke),i.ctx.fillRect(Be,AA*(ne-Ke)+Ke,ce,Le*AA),i.ctx.restore()):i.ctx.fill())),ze.label=6;case 6:return n--,[2]}})},i=this,s=0,a=A.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(A,n,r){return lt(this,void 0,void 0,function(){return ZA(this,function(i){return this.path(kC(r,n)),this.ctx.fillStyle=NA(A),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(A,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return ZA(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(A,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=hD(i,r),this.path(s),this.ctx.fillStyle=NA(A),this.ctx.fill(),a=pD(i,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(A){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return ZA(this,function(g){switch(g.label){case 0:return this.applyEffects(A.getEffects(2)),n=A.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=UD(is(n.backgroundClip,0),A.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=NA(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(B){p.ctx.save();var w=yl(A.curves),Q=B.inset?0:QD,b=fD(w,-Q+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=B.offsetX.number+Q,p.ctx.shadowOffsetY=B.offsetY.number,p.ctx.shadowColor=NA(B.color),p.ctx.shadowBlur=B.blur.number,p.ctx.fillStyle=B.inset?NA(B.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,A.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,A.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,A.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(A,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,U,L,U;return ZA(this,function(N){return this.ctx.save(),a=gD(i,r),c=kC(i,r),s===2&&(this.path(c),this.ctx.clip()),Wt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Wt(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?B=Math.abs(u-p):B=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,Q=n<3?n*2:n,s===3&&(w=n,Q=n),b=!0,B<=w*2?b=!1:B<=w*2+Q?(v=B/(2*w+Q),w*=v,Q*=v):(_=Math.floor((B+Q)/(w+Q)),S=(B-_*w)/(_-1),E=(B-(_+1)*w)/_,Q=E<=0||Math.abs(Q-S)<Math.abs(Q-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+Q]):this.ctx.setLineDash([w,Q])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=NA(A),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(c[0])&&(L=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),Wt(c[1])&&(L=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n;return ZA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=dD(A),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(MC),bD=function(t){return t instanceof lC||t instanceof aC?!0:t instanceof Df&&t.type!==pl&&t.type!==hl},UD=function(t,e){switch(t){case 0:return yl(e);case 2:return oD(e);case 1:default:return El(e)}},vD=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ID=["-apple-system","system-ui"],SD=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return ID.indexOf(e)===-1}):t},TD=function(t){ln(e,t);function e(A,n){var r=t.call(this,A,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e.prototype.render=function(A){return lt(this,void 0,void 0,function(){var n,r;return ZA(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,_D(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=NA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(MC),_D=function(t){return new Promise(function(e,A){var n=new Image;n.onload=function(){e(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},xD=function(){function t(e){var A=e.id,n=e.enabled;this.id=A,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),OD=function(){function t(e,A){var n;this.windowBounds=A,this.instanceName="#"+t.instanceCount++,this.logger=new xD({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new jN(this,e)}return t.instanceCount=1,t}(),LD=function(t,e){return e===void 0&&(e={}),HD(t,e)};typeof window<"u"&&TC.setContext(window);var HD=function(t,e){return lt(void 0,void 0,void 0,function(){var A,n,r,i,s,a,c,u,f,p,g,B,w,Q,b,v,_,S,E,L,N,U,N,V,D,se,Be,ne,ce,Le,oA,Re,He,re,me,Xe,ke,Ge,Ke,eA;return ZA(this,function(AA){switch(AA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=t.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(n=A.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(V=e.allowTaint)!==null&&V!==void 0?V:!1,imageTimeout:(D=e.imageTimeout)!==null&&D!==void 0?D:15e3,proxy:e.proxy,useCORS:(se=e.useCORS)!==null&&se!==void 0?se:!1},i=ju({logging:(Be=e.logging)!==null&&Be!==void 0?Be:!0,cache:e.cache},r),s={windowWidth:(ne=e.windowWidth)!==null&&ne!==void 0?ne:n.innerWidth,windowHeight:(ce=e.windowHeight)!==null&&ce!==void 0?ce:n.innerHeight,scrollX:(Le=e.scrollX)!==null&&Le!==void 0?Le:n.pageXOffset,scrollY:(oA=e.scrollY)!==null&&oA!==void 0?oA:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new OD(i,a),u=(Re=e.foreignObjectRendering)!==null&&Re!==void 0?Re:!1,f={allowTaint:(He=e.allowTaint)!==null&&He!==void 0?He:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new IC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(A,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=AA.sent(),w=Rf(g)||kN(g)?fO(g.ownerDocument):Ha(c,g),Q=w.width,b=w.height,v=w.left,_=w.top,S=kD(c,g,e.backgroundColor),E={canvas:e.canvas,backgroundColor:S,scale:(me=(re=e.scale)!==null&&re!==void 0?re:n.devicePixelRatio)!==null&&me!==void 0?me:1,x:((Xe=e.x)!==null&&Xe!==void 0?Xe:0)+v,y:((ke=e.y)!==null&&ke!==void 0?ke:0)+_,width:(Ge=e.width)!==null&&Ge!==void 0?Ge:Math.ceil(Q),height:(Ke=e.height)!==null&&Ke!==void 0?Ke:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),N=new TD(c,E),[4,N.render(g)]):[3,3];case 2:return L=AA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+Q+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=fC(c,g),S===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),N=new FD(c,E),[4,N.render(U)];case 4:L=AA.sent(),AA.label=5;case 5:return(!((eA=e.removeContainer)!==null&&eA!==void 0)||eA)&&(IC.destroy(B)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},kD=function(t,e,A){var n=e.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof A=="string"?co(t,A):A===null?Jn.TRANSPARENT:4294967295;return e===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const ND=h.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=e,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await LD(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...A.options})).toDataURL();if(n("update:modelValue",p),A.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=IB.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;A.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(u.$slots,"default")],6))}}),DD={class:"link-sharing"},MD={key:0,class:"link-sharing__links container"},RD={class:"row"},KD={key:0,class:"col-12 col-md-6"},VD=["href"],PD={class:"caption"},GD={key:1,class:"col-12 col-md-6"},WD=["href"],$D={class:"caption"},JD={key:2,class:"col-12 col-md-6"},XD={class:"caption"},YD={key:3,class:"col-12 col-md-6"},zD=["href"],qD={class:"caption"},ZD={key:4,class:"col-12 col-md-6"},jD=["href"],eM={class:"caption"},AM={key:5,class:"col-12 col-md-6"},tM={class:"caption"},nM={key:6,class:"col-12 col-md-6"},rM=["href"],iM={class:"caption"},sM={key:1,class:"link-sharing__instructions pt-5"},oM={class:"row"},aM={class:"col-12 text-center py-0"},lM={class:"mb-5"},cM=t=>t.replace(/<(?:.|\n)*?>/gm,""),uM=h.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const e=t,A=h.ref(!1),n=h.computed(()=>encodeURIComponent(e.url));h.computed(()=>encodeURIComponent(e.media));const r=h.computed(()=>cM(e.text)),i=h.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=e.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,c)=>{const u=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",DD,[A.value?(h.openBlock(),h.createElementBlock("div",sM,[h.createElementVNode("div",oM,[h.createElementVNode("div",aM,[h.createElementVNode("div",lM,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",MD,[h.createElementVNode("div",RD,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",KD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",PD,h.toDisplayString(a.$t("sharing.facebook")),1)],8,VD)])):h.createCommentVNode("",!0),t.services.bluesky?(h.openBlock(),h.createElementBlock("div",GD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${r.value}${r.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"bluesky-logo"}),h.createElementVNode("span",$D,h.toDisplayString(a.$t("sharing.bluesky")),1)],8,WD)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",JD,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>A.value=!A.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",XD,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",YD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",qD,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,zD)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",ZD,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",eM,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,jD)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",AM,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",tM,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",nM,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",iM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,rM)])):h.createCommentVNode("",!0)])]))])}}}),_3="",fM={class:"base-form"},dM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function A(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",fM,[h.createElementVNode("form",{ref:"form",onInput:e,onReset:A,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),x3="",hM={class:"modal-dialog__content d-flex flex-column"},pM={class:"modal-dialog__header d-flex p-3 border-bottom"},gM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},mM={class:"modal-dialog__body"},BM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},wM=h.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:e,emit:A}){const n=t,r=A,i=h.ref();function s(){var g,B;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(B=i.value)==null||B.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),B=new Animation(g,document.timeline);B.play(),B.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function p(g){const B=g.target;B&&B.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,B)=>{g&&g!==B?s():B&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",B=>{B.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),e({show:s,close:a,confirm:u,cancel:f}),(g,B)=>(h.openBlock(),h.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:h.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[h.createElementVNode("div",hM,[h.createElementVNode("div",pM,[t.title?(h.openBlock(),h.createElementBlock("h5",gM,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),h.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),h.createElementVNode("div",mM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",BM,[h.renderSlot(g.$slots,"footer"),h.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},h.toDisplayString(g.$t("common.close")),1)])):h.createCommentVNode("",!0)])],34))}}),O3="",CM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],yM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],EM={key:0,class:"sortable-list__drag-handle"},QM={type:"button",class:"btn"},FM={key:0,class:"sortable-list__item"},bM=h.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=e,a=h.computed({get(){return A.modelValue},set(_){s("update:modelValue",_)}}),c=h.computed(()=>{var _;return(_=document.querySelector(".is-drag-item"))==null?void 0:_.outerHTML}),u=h.useSlots(),f=h.computed(()=>u["list-append"]);function p(_,S){_.dataTransfer&&(_.dataTransfer.dropEffect="move",_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("index",S.toLocaleString()),n.value=!0,r.value=S)}function g(_,S){n.value=!1,r.value=null,i.value=null}function B(_,S){}function w(_,S){i.value=r.value!==S?S:null}function Q(_,S){}function b(_,S){}function v(_,S){if(_.dataTransfer){_.preventDefault();const E=Number(_.dataTransfer.getData("index")),L=S,U=[...a.value];(L||L===0)&&(E||E===0)&&U.splice(L,0,U.splice(E,1)[0]),a.value=U}}return(_,S)=>{const E=h.resolveComponent("svg-icon");return h.openBlock(),h.createBlock(h.TransitionGroup,{name:"list",tag:"ul",class:h.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=h.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=h.withModifiers(()=>{},["prevent"]))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(L,U)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:U},[t.showPreview&&n.value&&i.value===U?(h.openBlock(),h.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U),innerHTML:c.value},null,40,CM)):h.createCommentVNode("",!0),h.createElementVNode("li",{class:h.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":n.value&&r.value===U,"is-drop-target":n.value&&i.value===U&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:N=>p(N,U),onDrag:N=>void 0,onDragenter:N=>w(N,U),onDragover:N=>void 0,onDragleave:N=>void 0,onDragend:N=>g(),onDrop:N=>v(N,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",EM,[h.createElementVNode("button",QM,[h.createVNode(E,{symbol:"drag"})])])):h.createCommentVNode("",!0),h.createElementVNode("div",{class:h.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[h.renderSlot(_.$slots,"list-item",{item:L,index:U},()=>[h.createTextVNode(h.toDisplayString(L),1)])],2)],42,yM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",FM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),L3="",UM={class:"touch-wrapper__controls"},vM={class:"btn-group",role:"group"},IM=h.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const A=h.getCurrentInstance(),n=A&&A.appContext.config.globalProperties.$config,r=t,i=e,s=h.ref();function a(f){const p=r.modelValue+f;i("update:modelValue",f===0?1:p>=1?p:1)}function c(f){if(f.ctrlKey){f.preventDefault();const p=0-f.deltaY*.01;a(p)}}function u(f){f.preventDefault();const{scale:p}=f,g=p>1?p*.01:0-p;a(g)}return h.onMounted(()=>{s.value&&(s.value.addEventListener("wheel",c,!1),s.value.addEventListener("gesturestart",u,!1),s.value.addEventListener("gesturechange",u,!1),s.value.addEventListener("gestureend",u,!1))}),(f,p)=>{const g=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",{ref_key:"touchElement",ref:s,class:"touch-wrapper"},[h.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[h.createElementVNode("div",UM,[h.createElementVNode("div",vM,[h.createElementVNode("button",{type:"button",class:"btn",onClick:p[0]||(p[0]=B=>a(-1))},[h.createVNode(g,{symbol:"minus","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[1]||(p[1]=B=>a(0))},[h.createVNode(g,{symbol:"maximize","base-path":h.unref(n).iconSprite},null,8,["base-path"])]),h.createElementVNode("button",{type:"button",class:"btn",onClick:p[2]||(p[2]=B=>a(1))},[h.createVNode(g,{symbol:"plus","base-path":h.unref(n).iconSprite},null,8,["base-path"])])])])]),h.renderSlot(f.$slots,"default")],512)}}}),H3="";Qe.Accordion=kE,Qe.AccordionItem=_E,Qe.AssetUploader=zx,Qe.AutoSuggest=m_,Qe.BaseButton=DE,Qe.BaseCamera=N_,Qe.BaseCarousel=NB,Qe.BaseForm=dM,Qe.BaseHeadline=yE,Qe.BaseImage=CE,Qe.BaseInput=VE,Qe.BaseParagraph=QE,Qe.CheckGroup=rQ,Qe.ColorPalette=nS,Qe.DomRenderer=ND,Qe.FileUpload=Rx,Qe.InputCheckbox=zE,Qe.InputColor=eS,Qe.InputDatetime=eQ,Qe.InputDropdown=f_,Qe.InputFile=gQ,Qe.InputTextarea=$E,Qe.LinkSharing=uM,Qe.LoadingSpinner=BE,Qe.MediaThumbnails=tO,Qe.ModalDialog=wM,Qe.ProgressSteps=uO,Qe.RadioGroup=fh,Qe.RteEditor=z1,Qe.SortableList=bM,Qe.SvgIcon=pE,Qe.TouchWrapper=IM,Qe.UploadGroup=kB,Object.defineProperty(Qe,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ablok-components",
3
3
  "private": false,
4
- "version": "0.1.150",
4
+ "version": "0.1.151",
5
5
  "scripts": {
6
6
  "dev": "vite --host",
7
7
  "build": "vue-tsc --noEmit && vite build",