ablok-components 0.1.201 → 0.1.203

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.
@@ -39538,7 +39538,7 @@ const bce = /* @__PURE__ */ Xe({
39538
39538
  const y = document.querySelector(`[popovertarget="${A.id}"]`);
39539
39539
  y && (y.removeEventListener("mouseenter", u), y.removeEventListener("mouseleave", d));
39540
39540
  }
39541
- }), (h, g) => (M(), Y("div", {
39541
+ }), (h, g) => (M(), Y("span", {
39542
39542
  class: "popover-dialog",
39543
39543
  id: t.id,
39544
39544
  popover: t.type,
@@ -45895,7 +45895,7 @@ const Wle = { class: "popover-tooltip" }, Gle = ["popovertarget", "disabled", "a
45895
45895
  },
45896
45896
  hover: {
45897
45897
  type: Boolean,
45898
- default: !1
45898
+ default: !0
45899
45899
  },
45900
45900
  hoverDelay: {
45901
45901
  type: Number,
@@ -45984,7 +45984,7 @@ const Wle = { class: "popover-tooltip" }, Gle = ["popovertarget", "disabled", "a
45984
45984
  ]));
45985
45985
  }
45986
45986
  });
45987
- const eue = { class: "popover-notification__header d-flex justify-content-between align-items-center mb-2" }, tue = { class: "popover-notification__title" }, Aue = ["onClick"], nue = ["innerHTML"], kce = /* @__PURE__ */ Xe({
45987
+ const eue = { class: "popover-notification__header d-flex justify-content-between mb-2" }, tue = { class: "popover-notification__title" }, Aue = ["onClick"], nue = ["innerHTML"], kce = /* @__PURE__ */ Xe({
45988
45988
  __name: "popover-notifications",
45989
45989
  props: {
45990
45990
  modelValue: {
@@ -187,7 +187,7 @@ function print() { __p += __j.call(arguments, '') }
187
187
  content: "" !important;
188
188
  display: none !important;
189
189
  }`,fJ=function(t){hJ(t,"."+NB+uJ+zS+`
190
- .`+HB+dJ+zS)},hJ=function(t,e){var n=t.ownerDocument;if(n){var A=n.createElement("style");A.textContent=e,t.appendChild(A)}},JS=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.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}(),pJ=function(){function t(e,n){this.context=e,this._options=n,this._cache={}}return t.prototype.addImage=function(e){var n=Promise.resolve();return this.has(e)||(PB(e)||yJ(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),n},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return yA(this,void 0,void 0,function(){var n,A,r,i,o=this;return iA(this,function(a){switch(a.label){case 0:return n=JS.isSameOrigin(e),A=!RB(e)&&this._options.useCORS===!0&&Jn.SUPPORT_CORS_IMAGES&&!n,r=!RB(e)&&!n&&!PB(e)&&typeof this._options.proxy=="string"&&Jn.SUPPORT_CORS_XHR&&!A,!n&&this._options.allowTaint===!1&&!RB(e)&&!PB(e)&&!r&&!A?[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(l,u){var f=new Image;f.onload=function(){return l(f)},f.onerror=u,(wJ(i)||A)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return l(f)},500),o._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._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 n=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,o){var a=Jn.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(a==="text")i(l.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(p){return o(p)},!1),h.readAsDataURL(l.response)}else o("Failed to proxy resource "+r+" with status code "+l.status)},l.onerror=o;var u=A.indexOf("?")>-1?"&":"?";if(l.open("GET",""+A+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=a),n._options.imageTimeout){var f=n._options.imageTimeout;l.timeout=f,l.ontimeout=function(){return o("Timed out ("+f+"ms) proxying "+r)}}l.send()})},t}(),mJ=/^data:image\/svg\+xml/i,gJ=/^data:image\/.*;base64,/i,BJ=/^data:image\/.*/i,yJ=function(t){return Jn.SUPPORT_SVG_DRAWING||!CJ(t)},RB=function(t){return BJ.test(t)},wJ=function(t){return gJ.test(t)},PB=function(t){return t.substr(0,4)==="blob"},CJ=function(t){return t.substr(-3).toLowerCase()==="svg"||mJ.test(t)},_e=function(){function t(e,n){this.type=0,this.x=e,this.y=n}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),Ga=function(t,e,n){return new _e(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Hf=function(){function t(e,n,A,r){this.type=1,this.start=e,this.startControl=n,this.endControl=A,this.end=r}return t.prototype.subdivide=function(e,n){var A=Ga(this.start,this.startControl,e),r=Ga(this.startControl,this.endControl,e),i=Ga(this.endControl,this.end,e),o=Ga(A,r,e),a=Ga(r,i,e),l=Ga(o,a,e);return n?new t(this.start,A,o,l):new t(l,a,i,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),gr=function(t){return t.type===1},bJ=function(){function t(e){var n=e.styles,A=e.bounds,r=_c(n.borderTopLeftRadius,A.width,A.height),i=r[0],o=r[1],a=_c(n.borderTopRightRadius,A.width,A.height),l=a[0],u=a[1],f=_c(n.borderBottomRightRadius,A.width,A.height),h=f[0],p=f[1],g=_c(n.borderBottomLeftRadius,A.width,A.height),B=g[0],y=g[1],C=[];C.push((i+l)/A.width),C.push((B+h)/A.width),C.push((o+y)/A.height),C.push((u+p)/A.height);var b=Math.max.apply(Math,C);b>1&&(i/=b,o/=b,l/=b,u/=b,h/=b,p/=b,B/=b,y/=b);var F=A.width-l,k=A.height-p,v=A.width-h,U=A.height-y,E=n.borderTopWidth,I=n.borderRightWidth,O=n.borderBottomWidth,x=n.borderLeftWidth,H=$t(n.paddingTop,e.bounds.width),ie=$t(n.paddingRight,e.bounds.width),re=$t(n.paddingBottom,e.bounds.width),ce=$t(n.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Zt(A.left+x/3,A.top+E/3,i-x/3,o-E/3,_t.TOP_LEFT):new _e(A.left+x/3,A.top+E/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Zt(A.left+F,A.top+E/3,l-I/3,u-E/3,_t.TOP_RIGHT):new _e(A.left+A.width-I/3,A.top+E/3),this.bottomRightBorderDoubleOuterBox=h>0||p>0?Zt(A.left+v,A.top+k,h-I/3,p-O/3,_t.BOTTOM_RIGHT):new _e(A.left+A.width-I/3,A.top+A.height-O/3),this.bottomLeftBorderDoubleOuterBox=B>0||y>0?Zt(A.left+x/3,A.top+U,B-x/3,y-O/3,_t.BOTTOM_LEFT):new _e(A.left+x/3,A.top+A.height-O/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Zt(A.left+x*2/3,A.top+E*2/3,i-x*2/3,o-E*2/3,_t.TOP_LEFT):new _e(A.left+x*2/3,A.top+E*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Zt(A.left+F,A.top+E*2/3,l-I*2/3,u-E*2/3,_t.TOP_RIGHT):new _e(A.left+A.width-I*2/3,A.top+E*2/3),this.bottomRightBorderDoubleInnerBox=h>0||p>0?Zt(A.left+v,A.top+k,h-I*2/3,p-O*2/3,_t.BOTTOM_RIGHT):new _e(A.left+A.width-I*2/3,A.top+A.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||y>0?Zt(A.left+x*2/3,A.top+U,B-x*2/3,y-O*2/3,_t.BOTTOM_LEFT):new _e(A.left+x*2/3,A.top+A.height-O*2/3),this.topLeftBorderStroke=i>0||o>0?Zt(A.left+x/2,A.top+E/2,i-x/2,o-E/2,_t.TOP_LEFT):new _e(A.left+x/2,A.top+E/2),this.topRightBorderStroke=i>0||o>0?Zt(A.left+F,A.top+E/2,l-I/2,u-E/2,_t.TOP_RIGHT):new _e(A.left+A.width-I/2,A.top+E/2),this.bottomRightBorderStroke=h>0||p>0?Zt(A.left+v,A.top+k,h-I/2,p-O/2,_t.BOTTOM_RIGHT):new _e(A.left+A.width-I/2,A.top+A.height-O/2),this.bottomLeftBorderStroke=B>0||y>0?Zt(A.left+x/2,A.top+U,B-x/2,y-O/2,_t.BOTTOM_LEFT):new _e(A.left+x/2,A.top+A.height-O/2),this.topLeftBorderBox=i>0||o>0?Zt(A.left,A.top,i,o,_t.TOP_LEFT):new _e(A.left,A.top),this.topRightBorderBox=l>0||u>0?Zt(A.left+F,A.top,l,u,_t.TOP_RIGHT):new _e(A.left+A.width,A.top),this.bottomRightBorderBox=h>0||p>0?Zt(A.left+v,A.top+k,h,p,_t.BOTTOM_RIGHT):new _e(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=B>0||y>0?Zt(A.left,A.top+U,B,y,_t.BOTTOM_LEFT):new _e(A.left,A.top+A.height),this.topLeftPaddingBox=i>0||o>0?Zt(A.left+x,A.top+E,Math.max(0,i-x),Math.max(0,o-E),_t.TOP_LEFT):new _e(A.left+x,A.top+E),this.topRightPaddingBox=l>0||u>0?Zt(A.left+Math.min(F,A.width-I),A.top+E,F>A.width+I?0:Math.max(0,l-I),Math.max(0,u-E),_t.TOP_RIGHT):new _e(A.left+A.width-I,A.top+E),this.bottomRightPaddingBox=h>0||p>0?Zt(A.left+Math.min(v,A.width-x),A.top+Math.min(k,A.height-O),Math.max(0,h-I),Math.max(0,p-O),_t.BOTTOM_RIGHT):new _e(A.left+A.width-I,A.top+A.height-O),this.bottomLeftPaddingBox=B>0||y>0?Zt(A.left+x,A.top+Math.min(U,A.height-O),Math.max(0,B-x),Math.max(0,y-O),_t.BOTTOM_LEFT):new _e(A.left+x,A.top+A.height-O),this.topLeftContentBox=i>0||o>0?Zt(A.left+x+ce,A.top+E+H,Math.max(0,i-(x+ce)),Math.max(0,o-(E+H)),_t.TOP_LEFT):new _e(A.left+x+ce,A.top+E+H),this.topRightContentBox=l>0||u>0?Zt(A.left+Math.min(F,A.width+x+ce),A.top+E+H,F>A.width+x+ce?0:l-x+ce,u-(E+H),_t.TOP_RIGHT):new _e(A.left+A.width-(I+ie),A.top+E+H),this.bottomRightContentBox=h>0||p>0?Zt(A.left+Math.min(v,A.width-(x+ce)),A.top+Math.min(k,A.height+E+H),Math.max(0,h-(I+ie)),p-(O+re),_t.BOTTOM_RIGHT):new _e(A.left+A.width-(I+ie),A.top+A.height-(O+re)),this.bottomLeftContentBox=B>0||y>0?Zt(A.left+x+ce,A.top+U,Math.max(0,B-(x+ce)),y-(O+re),_t.BOTTOM_LEFT):new _e(A.left+x+ce,A.top+A.height-(O+re))}return t}(),_t;(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"})(_t||(_t={}));var Zt=function(t,e,n,A,r){var i=4*((Math.sqrt(2)-1)/3),o=n*i,a=A*i,l=t+n,u=e+A;switch(r){case _t.TOP_LEFT:return new Hf(new _e(t,u),new _e(t,u-a),new _e(l-o,e),new _e(l,e));case _t.TOP_RIGHT:return new Hf(new _e(t,e),new _e(t+o,e),new _e(l,u-a),new _e(l,u));case _t.BOTTOM_RIGHT:return new Hf(new _e(l,e),new _e(l,e+a),new _e(t+o,u),new _e(t,u));case _t.BOTTOM_LEFT:default:return new Hf(new _e(l,u),new _e(l-o,u),new _e(t,e+a),new _e(t,e))}},Rf=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},vJ=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Pf=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},EJ=function(){function t(e,n,A){this.offsetX=e,this.offsetY=n,this.matrix=A,this.type=0,this.target=6}return t}(),Vf=function(){function t(e,n){this.path=e,this.target=n,this.type=1}return t}(),kJ=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),SJ=function(t){return t.type===0},jS=function(t){return t.type===1},FJ=function(t){return t.type===2},XS=function(t,e){return t.length===e.length?t.some(function(n,A){return n===e[A]}):!1},QJ=function(t,e,n,A,r){return t.map(function(i,o){switch(o){case 0:return i.add(e,n);case 1:return i.add(e+A,n);case 2:return i.add(e+A,n+r);case 3:return i.add(e,n+r)}return i})},qS=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),ZS=function(){function t(e,n){if(this.container=e,this.parent=n,this.effects=[],this.curves=new bJ(this.container),this.container.styles.opacity<1&&this.effects.push(new kJ(this.container.styles.opacity)),this.container.styles.transform!==null){var A=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 EJ(A,r,i))}if(this.container.styles.overflowX!==0){var o=Rf(this.curves),a=Pf(this.curves);XS(o,a)?this.effects.push(new Vf(o,6)):(this.effects.push(new Vf(o,2)),this.effects.push(new Vf(a,4)))}}return t.prototype.getEffects=function(e){for(var n=[2,3].indexOf(this.container.styles.position)===-1,A=this.parent,r=this.effects.slice(0);A;){var i=A.effects.filter(function(l){return!jS(l)});if(n||A.container.styles.position!==0||!A.parent){if(r.unshift.apply(r,i),n=[2,3].indexOf(A.container.styles.position)===-1,A.container.styles.overflowX!==0){var o=Rf(A.curves),a=Pf(A.curves);XS(o,a)||r.unshift(new Vf(a,6))}}else r.unshift.apply(r,i);A=A.parent}return r.filter(function(l){return Qn(l.target,e)})},t}(),VB=function(t,e,n,A){t.container.elements.forEach(function(r){var i=Qn(r.flags,4),o=Qn(r.flags,2),a=new ZS(r,t);Qn(r.styles.display,2048)&&A.push(a);var l=Qn(r.flags,8)?[]:A;if(i||o){var u=i||r.styles.isPositioned()?n:e,f=new qS(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var p=0;u.negativeZIndex.some(function(B,y){return h>B.element.container.styles.zIndex.order?(p=y,!1):p>0}),u.negativeZIndex.splice(p,0,f)}else if(h>0){var g=0;u.positiveZIndex.some(function(B,y){return h>=B.element.container.styles.zIndex.order?(g=y+1,!1):g>0}),u.positiveZIndex.splice(g,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);VB(a,f,i?f:n,l)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),VB(a,e,n,l);Qn(r.flags,8)&&eF(r,l)})},eF=function(t,e){for(var n=t instanceof IB?t.start:1,A=t instanceof IB?t.reversed:!1,r=0;r<e.length;r++){var i=e[r];i.container instanceof kS&&typeof i.container.value=="number"&&i.container.value!==0&&(n=i.container.value),i.listValue=Nc(n,i.container.styles.listStyleType,!0),n+=A?-1:1}},UJ=function(t){var e=new ZS(t,null),n=new qS(e),A=[];return VB(e,n,n,A),eF(e.container,A),n},tF=function(t,e){switch(e){case 0:return Br(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Br(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Br(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Br(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},TJ=function(t,e){switch(e){case 0:return Br(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Br(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Br(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Br(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},IJ=function(t,e){switch(e){case 0:return Br(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Br(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Br(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Br(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},_J=function(t,e){switch(e){case 0:return $f(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return $f(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return $f(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return $f(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},$f=function(t,e){var n=[];return gr(t)?n.push(t.subdivide(.5,!1)):n.push(t),gr(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},Br=function(t,e,n,A){var r=[];return gr(t)?r.push(t.subdivide(.5,!1)):r.push(t),gr(n)?r.push(n.subdivide(.5,!0)):r.push(n),gr(A)?r.push(A.subdivide(.5,!0).reverse()):r.push(A),gr(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},nF=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Kf=function(t){var e=t.styles,n=t.bounds,A=$t(e.paddingLeft,n.width),r=$t(e.paddingRight,n.width),i=$t(e.paddingTop,n.width),o=$t(e.paddingBottom,n.width);return n.add(A+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+A+r),-(e.borderTopWidth+e.borderBottomWidth+i+o))},xJ=function(t,e){return t===0?e.bounds:t===2?Kf(e):nF(e)},OJ=function(t,e){return t===0?e.bounds:t===2?Kf(e):nF(e)},$B=function(t,e,n){var A=xJ(za(t.styles.backgroundOrigin,e),t),r=OJ(za(t.styles.backgroundClip,e),t),i=DJ(za(t.styles.backgroundSize,e),n,A),o=i[0],a=i[1],l=_c(za(t.styles.backgroundPosition,e),A.width-o,A.height-a),u=LJ(za(t.styles.backgroundRepeat,e),l,i,A,r),f=Math.round(A.left+l[0]),h=Math.round(A.top+l[1]);return[u,f,h,o,a]},Ya=function(t){return Ht(t)&&t.value===Va.AUTO},Wf=function(t){return typeof t=="number"},DJ=function(t,e,n){var A=e[0],r=e[1],i=e[2],o=t[0],a=t[1];if(!o)return[0,0];if(En(o)&&a&&En(a))return[$t(o,n.width),$t(a,n.height)];var l=Wf(i);if(Ht(o)&&(o.value===Va.CONTAIN||o.value===Va.COVER)){if(Wf(i)){var u=n.width/n.height;return u<i!=(o.value===Va.COVER)?[n.width,n.width/i]:[n.height*i,n.height]}return[n.width,n.height]}var f=Wf(A),h=Wf(r),p=f||h;if(Ya(o)&&(!a||Ya(a))){if(f&&h)return[A,r];if(!l&&!p)return[n.width,n.height];if(p&&l){var g=f?A:r*i,B=h?r:A/i;return[g,B]}var y=f?A:n.width,C=h?r:n.height;return[y,C]}if(l){var b=0,F=0;return En(o)?b=$t(o,n.width):En(a)&&(F=$t(a,n.height)),Ya(o)?b=F*i:(!a||Ya(a))&&(F=b/i),[b,F]}var k=null,v=null;if(En(o)?k=$t(o,n.width):a&&En(a)&&(v=$t(a,n.height)),k!==null&&(!a||Ya(a))&&(v=f&&h?k/A*r:n.height),v!==null&&Ya(o)&&(k=f&&h?v/r*A:n.width),k!==null&&v!==null)return[k,v];throw new Error("Unable to calculate background-size for element")},za=function(t,e){var n=t[e];return typeof n>"u"?t[0]:n},LJ=function(t,e,n,A,r){var i=e[0],o=e[1],a=n[0],l=n[1];switch(t){case 2:return[new _e(Math.round(A.left),Math.round(A.top+o)),new _e(Math.round(A.left+A.width),Math.round(A.top+o)),new _e(Math.round(A.left+A.width),Math.round(l+A.top+o)),new _e(Math.round(A.left),Math.round(l+A.top+o))];case 3:return[new _e(Math.round(A.left+i),Math.round(A.top)),new _e(Math.round(A.left+i+a),Math.round(A.top)),new _e(Math.round(A.left+i+a),Math.round(A.height+A.top)),new _e(Math.round(A.left+i),Math.round(A.height+A.top))];case 1:return[new _e(Math.round(A.left+i),Math.round(A.top+o)),new _e(Math.round(A.left+i+a),Math.round(A.top+o)),new _e(Math.round(A.left+i+a),Math.round(A.top+o+l)),new _e(Math.round(A.left+i),Math.round(A.top+o+l))];default:return[new _e(Math.round(r.left),Math.round(r.top)),new _e(Math.round(r.left+r.width),Math.round(r.top)),new _e(Math.round(r.left+r.width),Math.round(r.height+r.top)),new _e(Math.round(r.left),Math.round(r.height+r.top))]}},MJ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",AF="Hidden Text",NJ=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,n){var A=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;A.style.visibility="hidden",A.style.fontFamily=e,A.style.fontSize=n,A.style.margin="0",A.style.padding="0",A.style.whiteSpace="nowrap",o.appendChild(A),r.src=MJ,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=n,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(AF)),A.appendChild(i),A.appendChild(r);var a=r.offsetTop-i.offsetTop+2;A.removeChild(i),A.appendChild(this._document.createTextNode(AF)),A.style.lineHeight="normal",r.style.verticalAlign="super";var l=r.offsetTop-A.offsetTop+2;return o.removeChild(A),{baseline:a,middle:l}},t.prototype.getMetrics=function(e,n){var A=e+" "+n;return typeof this._data[A]>"u"&&(this._data[A]=this.parseMetrics(e,n)),this._data[A]},t}(),rF=function(){function t(e,n){this.context=e,this.options=n}return t}(),HJ=1e4,RJ=function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r._activeEffects=[],r.canvas=A.canvas?A.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),A.canvas||(r.canvas.width=Math.floor(A.width*A.scale),r.canvas.height=Math.floor(A.height*A.scale),r.canvas.style.width=A.width+"px",r.canvas.style.height=A.height+"px"),r.fontMetrics=new NJ(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-A.x,-A.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+A.width+"x"+A.height+") with scale "+A.scale),r}return e.prototype.applyEffects=function(n){for(var A=this;this._activeEffects.length;)this.popEffect();n.forEach(function(r){return A.applyEffect(r)})},e.prototype.applyEffect=function(n){this.ctx.save(),FJ(n)&&(this.ctx.globalAlpha=n.opacity),SJ(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),jS(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(n){return yA(this,void 0,void 0,function(){var A;return iA(this,function(r){switch(r.label){case 0:return A=n.element.container.styles,A.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(n){return yA(this,void 0,void 0,function(){return iA(this,function(A){switch(A.label){case 0:if(Qn(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(n)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(n,A,r){var i=this;if(A===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+r);else{var o=TB(n.text);o.reduce(function(a,l){return i.ctx.fillText(l,a,n.bounds.top+r),a+i.ctx.measureText(l).width},n.bounds.left)}},e.prototype.createFontStyle=function(n){var A=n.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),r=WJ(n.fontFamily).join(", "),i=Ic(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,A,n.fontWeight,i,r].join(" "),r,i]},e.prototype.renderTextNode=function(n,A){return yA(this,void 0,void 0,function(){var r,i,o,a,l,u,f,h,p=this;return iA(this,function(g){return r=this.createFontStyle(A),i=r[0],o=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=A.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,a),u=l.baseline,f=l.middle,h=A.paintOrder,n.textBounds.forEach(function(B){h.forEach(function(y){switch(y){case 0:p.ctx.fillStyle=Pn(A.color),p.renderTextWithLetterSpacing(B,A.letterSpacing,u);var C=A.textShadow;C.length&&B.text.trim().length&&(C.slice(0).reverse().forEach(function(b){p.ctx.shadowColor=Pn(b.color),p.ctx.shadowOffsetX=b.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=b.offsetY.number*p.options.scale,p.ctx.shadowBlur=b.blur.number,p.renderTextWithLetterSpacing(B,A.letterSpacing,u)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),A.textDecorationLine.length&&(p.ctx.fillStyle=Pn(A.textDecorationColor||A.color),A.textDecorationLine.forEach(function(b){switch(b){case 1:p.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+u),B.bounds.width,1);break;case 2:p.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:p.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+f),B.bounds.width,1);break}}));break;case 1:A.webkitTextStrokeWidth&&B.text.trim().length&&(p.ctx.strokeStyle=Pn(A.webkitTextStrokeColor),p.ctx.lineWidth=A.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+u)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(n,A,r){if(r&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var i=Kf(n),o=Pf(A);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,n.intrinsicWidth,n.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(n){return yA(this,void 0,void 0,function(){var A,r,i,o,a,l,F,F,u,f,h,p,v,g,B,U,y,C,b,F,k,v,U;return iA(this,function(E){switch(E.label){case 0:this.applyEffects(n.getEffects(4)),A=n.container,r=n.curves,i=A.styles,o=0,a=A.textNodes,E.label=1;case 1:return o<a.length?(l=a[o],[4,this.renderTextNode(l,i)]):[3,4];case 2:E.sent(),E.label=3;case 3:return o++,[3,1];case 4:if(!(A instanceof bS))return[3,8];E.label=5;case 5:return E.trys.push([5,7,,8]),[4,this.context.cache.match(A.src)];case 6:return F=E.sent(),this.renderReplacedElement(A,r,F),[3,8];case 7:return E.sent(),this.context.logger.error("Error loading image "+A.src),[3,8];case 8:if(A instanceof vS&&this.renderReplacedElement(A,r,A.canvas),!(A instanceof ES))return[3,12];E.label=9;case 9:return E.trys.push([9,11,,12]),[4,this.context.cache.match(A.svg)];case 10:return F=E.sent(),this.renderReplacedElement(A,r,F),[3,12];case 11:return E.sent(),this.context.logger.error("Error loading svg "+A.svg.substring(0,255)),[3,12];case 12:return A instanceof US&&A.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:A.backgroundColor,x:0,y:0,width:A.width,height:A.height}),[4,u.render(A.tree)]):[3,14];case 13:f=E.sent(),A.width&&A.height&&this.ctx.drawImage(f,0,0,A.width,A.height,A.bounds.left,A.bounds.top,A.bounds.width,A.bounds.height),E.label=14;case 14:if(A instanceof _B&&(h=Math.min(A.bounds.width,A.bounds.height),A.type===xf?A.checked&&(this.ctx.save(),this.path([new _e(A.bounds.left+h*.39363,A.bounds.top+h*.79),new _e(A.bounds.left+h*.16,A.bounds.top+h*.5549),new _e(A.bounds.left+h*.27347,A.bounds.top+h*.44071),new _e(A.bounds.left+h*.39694,A.bounds.top+h*.5649),new _e(A.bounds.left+h*.72983,A.bounds.top+h*.23),new _e(A.bounds.left+h*.84,A.bounds.top+h*.34085),new _e(A.bounds.left+h*.39363,A.bounds.top+h*.79)]),this.ctx.fillStyle=Pn(SS),this.ctx.fill(),this.ctx.restore()):A.type===Of&&A.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(A.bounds.left+h/2,A.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=Pn(SS),this.ctx.fill(),this.ctx.restore())),PJ(A)&&A.value.length){switch(p=this.createFontStyle(i),v=p[0],g=p[1],B=this.fontMetrics.getMetrics(v,g).baseline,this.ctx.font=v,this.ctx.fillStyle=Pn(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$J(A.styles.textAlign),U=Kf(A),y=0,A.styles.textAlign){case 1:y+=U.width/2;break;case 2:y+=U.width;break}C=U.add(y,0,0,-U.height/2+1),this.ctx.save(),this.path([new _e(U.left,U.top),new _e(U.left+U.width,U.top),new _e(U.left+U.width,U.top+U.height),new _e(U.left,U.top+U.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Lc(A.value,C),i.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Qn(A.styles.display,2048))return[3,20];if(A.styles.listStyleImage===null)return[3,19];if(b=A.styles.listStyleImage,b.type!==0)return[3,18];F=void 0,k=b.url,E.label=15;case 15:return E.trys.push([15,17,,18]),[4,this.context.cache.match(k)];case 16:return F=E.sent(),this.ctx.drawImage(F,A.bounds.left-(F.width+10),A.bounds.top),[3,18];case 17:return E.sent(),this.context.logger.error("Error loading list-style-image "+k),[3,18];case 18:return[3,20];case 19:n.listValue&&A.styles.listStyleType!==-1&&(v=this.createFontStyle(i)[0],this.ctx.font=v,this.ctx.fillStyle=Pn(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",U=new Ri(A.bounds.left,A.bounds.top+$t(A.styles.paddingTop,A.bounds.width),A.bounds.width,AS(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Lc(n.listValue,U),i.letterSpacing,AS(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),E.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(n){return yA(this,void 0,void 0,function(){var A,r,b,i,o,b,a,l,b,u,f,b,h,p,b,g,B,b,y,C,b;return iA(this,function(F){switch(F.label){case 0:if(Qn(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:F.sent(),A=0,r=n.negativeZIndex,F.label=2;case 2:return A<r.length?(b=r[A],[4,this.renderStack(b)]):[3,5];case 3:F.sent(),F.label=4;case 4:return A++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:F.sent(),i=0,o=n.nonInlineLevel,F.label=7;case 7:return i<o.length?(b=o[i],[4,this.renderNode(b)]):[3,10];case 8:F.sent(),F.label=9;case 9:return i++,[3,7];case 10:a=0,l=n.nonPositionedFloats,F.label=11;case 11:return a<l.length?(b=l[a],[4,this.renderStack(b)]):[3,14];case 12:F.sent(),F.label=13;case 13:return a++,[3,11];case 14:u=0,f=n.nonPositionedInlineLevel,F.label=15;case 15:return u<f.length?(b=f[u],[4,this.renderStack(b)]):[3,18];case 16:F.sent(),F.label=17;case 17:return u++,[3,15];case 18:h=0,p=n.inlineLevel,F.label=19;case 19:return h<p.length?(b=p[h],[4,this.renderNode(b)]):[3,22];case 20:F.sent(),F.label=21;case 21:return h++,[3,19];case 22:g=0,B=n.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return g<B.length?(b=B[g],[4,this.renderStack(b)]):[3,26];case 24:F.sent(),F.label=25;case 25:return g++,[3,23];case 26:y=0,C=n.positiveZIndex,F.label=27;case 27:return y<C.length?(b=C[y],[4,this.renderStack(b)]):[3,30];case 28:F.sent(),F.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(n){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(n.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},e.prototype.formatPath=function(n){var A=this;n.forEach(function(r,i){var o=gr(r)?r.start:r;i===0?A.ctx.moveTo(o.x,o.y):A.ctx.lineTo(o.x,o.y),gr(r)&&A.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(n,A,r,i){this.path(n),this.ctx.fillStyle=A,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},e.prototype.resizeImage=function(n,A,r){var i;if(n.width===A&&n.height===r)return n;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=o.createElement("canvas");a.width=Math.max(1,A),a.height=Math.max(1,r);var l=a.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,A,r),a},e.prototype.renderBackgroundImage=function(n){return yA(this,void 0,void 0,function(){var A,r,i,o,a,l;return iA(this,function(u){switch(u.label){case 0:A=n.styles.backgroundImage.length-1,r=function(f){var h,p,g,H,$,te,ce,R,O,B,H,$,te,ce,R,y,C,b,F,k,v,U,E,I,O,x,H,ie,re,ce,R,W,$,te,ee,Y,he,Z,Ce,V,J,Ae;return iA(this,function(oe){switch(oe.label){case 0:if(f.type!==0)return[3,5];h=void 0,p=f.url,oe.label=1;case 1:return oe.trys.push([1,3,,4]),[4,i.context.cache.match(p)];case 2:return h=oe.sent(),[3,4];case 3:return oe.sent(),i.context.logger.error("Error loading background-image "+p),[3,4];case 4:return h&&(g=$B(n,A,[h.width,h.height,h.width/h.height]),H=g[0],$=g[1],te=g[2],ce=g[3],R=g[4],O=i.ctx.createPattern(i.resizeImage(h,ce,R),"repeat"),i.renderRepeat(H,O,$,te)),[3,6];case 5:S8(f)?(B=$B(n,A,[null,null,null]),H=B[0],$=B[1],te=B[2],ce=B[3],R=B[4],y=C8(f.angle,ce,R),C=y[0],b=y[1],F=y[2],k=y[3],v=y[4],U=document.createElement("canvas"),U.width=ce,U.height=R,E=U.getContext("2d"),I=E.createLinearGradient(b,k,F,v),Gk(f.stops,C).forEach(function(Q){return I.addColorStop(Q.stop,Pn(Q.color))}),E.fillStyle=I,E.fillRect(0,0,ce,R),ce>0&&R>0&&(O=i.ctx.createPattern(U,"repeat"),i.renderRepeat(H,O,$,te))):F8(f)&&(x=$B(n,A,[null,null,null]),H=x[0],ie=x[1],re=x[2],ce=x[3],R=x[4],W=f.position.length===0?[pB]:f.position,$=$t(W[0],ce),te=$t(W[W.length-1],R),ee=b8(f,$,te,ce,R),Y=ee[0],he=ee[1],Y>0&&he>0&&(Z=i.ctx.createRadialGradient(ie+$,re+te,0,ie+$,re+te,Y),Gk(f.stops,Y*2).forEach(function(Q){return Z.addColorStop(Q.stop,Pn(Q.color))}),i.path(H),i.ctx.fillStyle=Z,Y!==he?(Ce=n.bounds.left+.5*n.bounds.width,V=n.bounds.top+.5*n.bounds.height,J=he/Y,Ae=1/J,i.ctx.save(),i.ctx.translate(Ce,V),i.ctx.transform(1,0,0,J,0,0),i.ctx.translate(-Ce,-V),i.ctx.fillRect(ie,Ae*(re-V)+V,ce,R*Ae),i.ctx.restore()):i.ctx.fill())),oe.label=6;case 6:return A--,[2]}})},i=this,o=0,a=n.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return o<a.length?(l=a[o],[5,r(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(n,A,r){return yA(this,void 0,void 0,function(){return iA(this,function(i){return this.path(tF(r,A)),this.ctx.fillStyle=Pn(n),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(n,A,r,i){return yA(this,void 0,void 0,function(){var o,a;return iA(this,function(l){switch(l.label){case 0:return A<3?[4,this.renderSolidBorder(n,r,i)]:[3,2];case 1:return l.sent(),[2];case 2:return o=TJ(i,r),this.path(o),this.ctx.fillStyle=Pn(n),this.ctx.fill(),a=IJ(i,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(n){return yA(this,void 0,void 0,function(){var A,r,i,o,a,l,u,f,h=this;return iA(this,function(p){switch(p.label){case 0:return this.applyEffects(n.getEffects(2)),A=n.container.styles,r=!No(A.backgroundColor)||A.backgroundImage.length,i=[{style:A.borderTopStyle,color:A.borderTopColor,width:A.borderTopWidth},{style:A.borderRightStyle,color:A.borderRightColor,width:A.borderRightWidth},{style:A.borderBottomStyle,color:A.borderBottomColor,width:A.borderBottomWidth},{style:A.borderLeftStyle,color:A.borderLeftColor,width:A.borderLeftWidth}],o=VJ(za(A.backgroundClip,0),n.curves),r||A.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),No(A.backgroundColor)||(this.ctx.fillStyle=Pn(A.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),A.boxShadow.slice(0).reverse().forEach(function(g){h.ctx.save();var B=Rf(n.curves),y=g.inset?0:HJ,C=QJ(B,-y+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(h.path(B),h.ctx.clip(),h.mask(C)):(h.mask(B),h.ctx.clip(),h.path(C)),h.ctx.shadowOffsetX=g.offsetX.number+y,h.ctx.shadowOffsetY=g.offsetY.number,h.ctx.shadowColor=Pn(g.color),h.ctx.shadowBlur=g.blur.number,h.ctx.fillStyle=g.inset?Pn(g.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),p.label=2;case 2:a=0,l=0,u=i,p.label=3;case 3:return l<u.length?(f=u[l],f.style!==0&&!No(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,n.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,n.curves,3)];case 6:return p.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,n.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,n.curves)];case 10:p.sent(),p.label=11;case 11:a++,p.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(n,A,r,i,o){return yA(this,void 0,void 0,function(){var a,l,u,f,h,p,g,B,y,C,b,F,k,v,U,E,U,E;return iA(this,function(I){return this.ctx.save(),a=_J(i,r),l=tF(i,r),o===2&&(this.path(l),this.ctx.clip()),gr(l[0])?(u=l[0].start.x,f=l[0].start.y):(u=l[0].x,f=l[0].y),gr(l[1])?(h=l[1].end.x,p=l[1].end.y):(h=l[1].x,p=l[1].y),r===0||r===2?g=Math.abs(u-h):g=Math.abs(f-p),this.ctx.beginPath(),o===3?this.formatPath(a):this.formatPath(l.slice(0,2)),B=A<3?A*3:A*2,y=A<3?A*2:A,o===3&&(B=A,y=A),C=!0,g<=B*2?C=!1:g<=B*2+y?(b=g/(2*B+y),B*=b,y*=b):(F=Math.floor((g+y)/(B+y)),k=(g-F*B)/(F-1),v=(g-(F+1)*B)/F,y=v<=0||Math.abs(y-k)<Math.abs(y-v)?k:v),C&&(o===3?this.ctx.setLineDash([0,B+y]):this.ctx.setLineDash([B,y])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=A):this.ctx.lineWidth=A*2+1.1,this.ctx.strokeStyle=Pn(n),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(gr(l[0])&&(U=l[3],E=l[0],this.ctx.beginPath(),this.formatPath([new _e(U.end.x,U.end.y),new _e(E.start.x,E.start.y)]),this.ctx.stroke()),gr(l[1])&&(U=l[1],E=l[2],this.ctx.beginPath(),this.formatPath([new _e(U.end.x,U.end.y),new _e(E.start.x,E.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(n){return yA(this,void 0,void 0,function(){var A;return iA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Pn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),A=UJ(n),[4,this.renderStack(A)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(rF),PJ=function(t){return t instanceof QS||t instanceof FS?!0:t instanceof _B&&t.type!==Of&&t.type!==xf},VJ=function(t,e){switch(t){case 0:return Rf(e);case 2:return vJ(e);case 1:default:return Pf(e)}},$J=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},KJ=["-apple-system","system-ui"],WJ=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return KJ.indexOf(e)===-1}):t},GJ=function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.canvas=A.canvas?A.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=A,r.canvas.width=Math.floor(A.width*A.scale),r.canvas.height=Math.floor(A.height*A.scale),r.canvas.style.width=A.width+"px",r.canvas.style.height=A.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-A.x,-A.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale),r}return e.prototype.render=function(n){return yA(this,void 0,void 0,function(){var A,r;return iA(this,function(i){switch(i.label){case 0:return A=UB(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,YJ(A)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Pn(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}(rF),YJ=function(t){return new Promise(function(e,n){var A=new Image;A.onload=function(){e(A)},A.onerror=n,A.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},zJ=function(){function t(e){var n=e.id,A=e.enabled;this.id=n,this.enabled=A,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,qd([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=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,qd([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,qd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,qd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),JJ=function(){function t(e,n){var A;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new zJ({id:this.instanceName,enabled:e.logging}),this.cache=(A=e.cache)!==null&&A!==void 0?A:new pJ(this,e)}return t.instanceCount=1,t}(),jJ=function(t,e){return e===void 0&&(e={}),XJ(t,e)};typeof window<"u"&&JS.setContext(window);var XJ=function(t,e){return yA(void 0,void 0,void 0,function(){var n,A,r,i,o,a,l,u,f,h,p,g,B,y,C,b,F,k,v,U,I,E,I,O,x,H,ie,re,ce,R,W,$,te,ee,Y,he,Z,Ce,V,J;return iA(this,function(Ae){switch(Ae.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(A=n.defaultView,!A)throw new Error("Document is not attached to a Window");return r={allowTaint:(O=e.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(x=e.imageTimeout)!==null&&x!==void 0?x:15e3,proxy:e.proxy,useCORS:(H=e.useCORS)!==null&&H!==void 0?H:!1},i=zg({logging:(ie=e.logging)!==null&&ie!==void 0?ie:!0,cache:e.cache},r),o={windowWidth:(re=e.windowWidth)!==null&&re!==void 0?re:A.innerWidth,windowHeight:(ce=e.windowHeight)!==null&&ce!==void 0?ce:A.innerHeight,scrollX:(R=e.scrollX)!==null&&R!==void 0?R:A.pageXOffset,scrollY:(W=e.scrollY)!==null&&W!==void 0?W:A.pageYOffset},a=new Ri(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new JJ(i,a),u=($=e.foreignObjectRendering)!==null&&$!==void 0?$:!1,f={allowTaint:(te=e.allowTaint)!==null&&te!==void 0?te:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new YS(l,t,f),p=h.clonedReferenceElement,p?[4,h.toIFrame(n,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=Ae.sent(),B=OB(p)||q6(p)?Q5(p.ownerDocument):Zd(l,p),y=B.width,C=B.height,b=B.left,F=B.top,k=qJ(l,p,e.backgroundColor),v={canvas:e.canvas,backgroundColor:k,scale:(Y=(ee=e.scale)!==null&&ee!==void 0?ee:A.devicePixelRatio)!==null&&Y!==void 0?Y:1,x:((he=e.x)!==null&&he!==void 0?he:0)+b,y:((Z=e.y)!==null&&Z!==void 0?Z:0)+F,width:(Ce=e.width)!==null&&Ce!==void 0?Ce:Math.ceil(y),height:(V=e.height)!==null&&V!==void 0?V:Math.ceil(C)},u?(l.logger.debug("Document cloned, using foreign object rendering"),I=new GJ(l,v),[4,I.render(p)]):[3,3];case 2:return U=Ae.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+b+","+F+" with size "+y+"x"+C+" using computed rendering"),l.logger.debug("Starting DOM parsing"),E=IS(l,p),k===E.styles.backgroundColor&&(E.styles.backgroundColor=Vi.TRANSPARENT),l.logger.debug("Starting renderer for element at "+v.x+","+v.y+" with size "+v.width+"x"+v.height),I=new RJ(l,v),[4,I.render(E)];case 4:U=Ae.sent(),Ae.label=5;case 5:return(!((J=e.removeContainer)!==null&&J!==void 0)||J)&&(YS.destroy(g)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,U]}})})},qJ=function(t,e,n){var A=e.ownerDocument,r=A.documentElement?xc(t,getComputedStyle(A.documentElement).backgroundColor):Vi.TRANSPARENT,i=A.body?xc(t,getComputedStyle(A.body).backgroundColor):Vi.TRANSPARENT,o=typeof n=="string"?xc(t,n):n===null?Vi.TRANSPARENT:4294967295;return e===A.documentElement?No(r)?No(i)?o:i:r:o};const ZJ=s.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:()=>({})},pending:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue","update:pending"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),i=s.ref(""),o=s.ref();async function a(){if(r.value){A("update:pending",!0);const u=r.value,h=(await jJ(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...n.options})).toDataURL();if(A("update:modelValue",h),A("update:pending",!1),n.debug){const p=new Image;p.src=h,document.body.appendChild(p)}return h}return""}const l=YE.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return s.onMounted(()=>{const u=r.value;n.renderUpdates&&(o.value=new MutationObserver(async f=>{l()}),o.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{l()},500)}),(u,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:s.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[s.renderSlot(u.$slots,"default")],6))}}),ej=["id","popover"],KB=s.defineComponent({__name:"popover-dialog",props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"auto"},id:{type:String,default:()=>`popover-dialog-${Math.random().toString(36).substr(2,9)}`},title:{type:String,default:""},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},classes:{type:String,default:""},hover:{type:Boolean,default:!1},hoverDelay:{type:Number,default:400},closeTimeout:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),i=s.ref(),o=s.ref(!1),a=s.computed(()=>"ontouchstart"in window||navigator.maxTouchPoints>0);function l(){var p;clearTimeout(i.value),n.hover&&((p=r.value)==null||p.showPopover())}function u(){o.value=!0,clearTimeout(i.value),l()}function f(){o.value=!1,(n.hover||n.closeTimeout)&&(i.value=setTimeout(()=>{var p;(p=r.value)==null||p.hidePopover()},n.closeTimeout||n.hoverDelay))}s.watch(()=>n.modelValue,(p,g)=>{var B,y,C,b;p&&!g?(B=r.value)!=null&&B.matches(":popover-open")||(y=r.value)==null||y.showPopover():!p&&g&&(C=r.value)!=null&&C.matches(":popover-open")&&((b=r.value)==null||b.hidePopover())});function h(p){p.newState==="open"?(n.closeTimeout&&!o.value&&(clearTimeout(i.value),i.value=setTimeout(()=>{var g;o.value||(g=r.value)==null||g.hidePopover()},n.closeTimeout)),n.modelValue||A("update:modelValue",!0)):p.newState==="closed"&&(o.value=!1,n.modelValue&&A("update:modelValue",!1))}return s.onMounted(()=>{var p,g,B,y;if((p=r.value)==null||p.addEventListener("toggle",h),n.modelValue&&((g=r.value)==null||g.showPopover()),!a.value){(B=r.value)==null||B.addEventListener("mouseenter",u),(y=r.value)==null||y.addEventListener("mouseleave",f);const C=document.querySelector(`[popovertarget="${n.id}"]`);C&&(C.addEventListener("mouseenter",u),C.addEventListener("mouseleave",f))}}),s.onBeforeUnmount(()=>{var p,g,B;if(clearTimeout(i.value),(p=r.value)==null||p.removeEventListener("toggle",h),!a.value){(g=r.value)==null||g.removeEventListener("mouseenter",u),(B=r.value)==null||B.removeEventListener("mouseleave",f);const y=document.querySelector(`[popovertarget="${n.id}"]`);y&&(y.removeEventListener("mouseenter",u),y.removeEventListener("mouseleave",f))}}),(p,g)=>(s.openBlock(),s.createElementBlock("div",{class:"popover-dialog",id:t.id,popover:t.type,ref_key:"popover",ref:r},[s.renderSlot(p.$slots,"default",{},()=>[s.createTextVNode(" Popover content goes here. ")])],8,ej))}}),Yce="";var tj=Object.defineProperty,nj=Object.defineProperties,Aj=Object.getOwnPropertyDescriptors,iF=Object.getOwnPropertySymbols,rj=Object.prototype.hasOwnProperty,ij=Object.prototype.propertyIsEnumerable,oF=(t,e,n)=>e in t?tj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vn=(t,e)=>{for(var n in e||(e={}))rj.call(e,n)&&oF(t,n,e[n]);if(iF)for(var n of iF(e))ij.call(e,n)&&oF(t,n,e[n]);return t},OA=(t,e)=>nj(t,Aj(e)),Jt=(t,e,n)=>new Promise((A,r)=>{var i=l=>{try{a(n.next(l))}catch(u){r(u)}},o=l=>{try{a(n.throw(l))}catch(u){r(u)}},a=l=>l.done?A(l.value):Promise.resolve(l.value).then(i,o);a((n=n.apply(t,e)).next())});const WB=Math.min,Ja=Math.max,Gf=Math.round,Yf=Math.floor,ui=t=>({x:t,y:t});function oj(t,e){return typeof t=="function"?t(e):t}function sj(t){return Vn({top:0,right:0,bottom:0,left:0},t)}function aj(t){return typeof t!="number"?sj(t):{top:t,right:t,bottom:t,left:t}}function zf(t){const{x:e,y:n,width:A,height:r}=t;return{width:A,height:r,top:n,left:e,right:e+A,bottom:n+r,x:e,y:n}}function lj(t,e){return Jt(this,null,function*(){var n;e===void 0&&(e={});const{x:A,y:r,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=oj(e,t),B=aj(g),y=a[p?h==="floating"?"reference":"floating":h],C=zf(yield i.getClippingRect({element:(n=yield i.isElement==null?void 0:i.isElement(y))==null||n?y:y.contextElement||(yield i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),b=h==="floating"?{x:A,y:r,width:o.floating.width,height:o.floating.height}:o.reference,F=yield i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating),k=(yield i.isElement==null?void 0:i.isElement(F))?(yield i.getScale==null?void 0:i.getScale(F))||{x:1,y:1}:{x:1,y:1},v=zf(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:F,strategy:l}):b);return{top:(C.top-v.top+B.top)/k.y,bottom:(v.bottom-C.bottom+B.bottom)/k.y,left:(C.left-v.left+B.left)/k.x,right:(v.right-C.right+B.right)/k.x}})}function Jf(){return typeof window<"u"}function ja(t){return sF(t)?(t.nodeName||"").toLowerCase():"#document"}function zA(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function di(t){var e;return(e=(sF(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sF(t){return Jf()?t instanceof Node||t instanceof zA(t).Node:!1}function Rr(t){return Jf()?t instanceof Element||t instanceof zA(t).Element:!1}function fi(t){return Jf()?t instanceof HTMLElement||t instanceof zA(t).HTMLElement:!1}function aF(t){return!Jf()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof zA(t).ShadowRoot}function Rc(t){const{overflow:e,overflowX:n,overflowY:A,display:r}=Pr(t);return/auto|scroll|overlay|hidden|clip/.test(e+A+n)&&!["inline","contents"].includes(r)}function cj(t){return["table","td","th"].includes(ja(t))}function jf(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function GB(t){const e=YB(),n=Rr(t)?Pr(t):t;return["transform","translate","scale","rotate","perspective"].some(A=>n[A]?n[A]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(A=>(n.willChange||"").includes(A))||["paint","layout","strict","content"].some(A=>(n.contain||"").includes(A))}function uj(t){let e=Vo(t);for(;fi(e)&&!Xa(e);){if(GB(e))return e;if(jf(e))return null;e=Vo(e)}return null}function YB(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xa(t){return["html","body","#document"].includes(ja(t))}function Pr(t){return zA(t).getComputedStyle(t)}function Xf(t){return Rr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Vo(t){if(ja(t)==="html")return t;const e=t.assignedSlot||t.parentNode||aF(t)&&t.host||di(t);return aF(e)?e.host:e}function lF(t){const e=Vo(t);return Xa(e)?t.ownerDocument?t.ownerDocument.body:t.body:fi(e)&&Rc(e)?e:lF(e)}function Pc(t,e,n){var A;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=lF(t),i=r===((A=t.ownerDocument)==null?void 0:A.body),o=zA(r);if(i){const a=zB(o);return e.concat(o,o.visualViewport||[],Rc(r)?r:[],a&&n?Pc(a):[])}return e.concat(r,Pc(r,[],n))}function zB(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function cF(t){const e=Pr(t);let n=parseFloat(e.width)||0,A=parseFloat(e.height)||0;const r=fi(t),i=r?t.offsetWidth:n,o=r?t.offsetHeight:A,a=Gf(n)!==i||Gf(A)!==o;return a&&(n=i,A=o),{width:n,height:A,$:a}}function JB(t){return Rr(t)?t:t.contextElement}function qa(t){const e=JB(t);if(!fi(e))return ui(1);const n=e.getBoundingClientRect(),{width:A,height:r,$:i}=cF(e);let o=(i?Gf(n.width):n.width)/A,a=(i?Gf(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const dj=ui(0);function uF(t){const e=zA(t);return!YB()||!e.visualViewport?dj:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fj(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==zA(t)?!1:e}function Ms(t,e,n,A){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=JB(t);let o=ui(1);e&&(A?Rr(A)&&(o=qa(A)):o=qa(t));const a=fj(i,n,A)?uF(i):ui(0);let l=(r.left+a.x)/o.x,u=(r.top+a.y)/o.y,f=r.width/o.x,h=r.height/o.y;if(i){const p=zA(i),g=A&&Rr(A)?zA(A):A;let B=p,y=zB(B);for(;y&&A&&g!==B;){const C=qa(y),b=y.getBoundingClientRect(),F=Pr(y),k=b.left+(y.clientLeft+parseFloat(F.paddingLeft))*C.x,v=b.top+(y.clientTop+parseFloat(F.paddingTop))*C.y;l*=C.x,u*=C.y,f*=C.x,h*=C.y,l+=k,u+=v,B=zA(y),y=zB(B)}}return zf({width:f,height:h,x:l,y:u})}function jB(t,e){const n=Xf(t).scrollLeft;return e?e.left+n:Ms(di(t)).left+n}function dF(t,e,n){n===void 0&&(n=!1);const A=t.getBoundingClientRect(),r=A.left+e.scrollLeft-(n?0:jB(t,A)),i=A.top+e.scrollTop;return{x:r,y:i}}function hj(t){let{elements:e,rect:n,offsetParent:A,strategy:r}=t;const i=r==="fixed",o=di(A),a=e?jf(e.floating):!1;if(A===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=ui(1);const f=ui(0),h=fi(A);if((h||!h&&!i)&&((ja(A)!=="body"||Rc(o))&&(l=Xf(A)),fi(A))){const g=Ms(A);u=qa(A),f.x=g.x+A.clientLeft,f.y=g.y+A.clientTop}const p=o&&!h&&!i?dF(o,l,!0):ui(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function pj(t){return Array.from(t.getClientRects())}function mj(t){const e=di(t),n=Xf(t),A=t.ownerDocument.body,r=Ja(e.scrollWidth,e.clientWidth,A.scrollWidth,A.clientWidth),i=Ja(e.scrollHeight,e.clientHeight,A.scrollHeight,A.clientHeight);let o=-n.scrollLeft+jB(t);const a=-n.scrollTop;return Pr(A).direction==="rtl"&&(o+=Ja(e.clientWidth,A.clientWidth)-r),{width:r,height:i,x:o,y:a}}function gj(t,e){const n=zA(t),A=di(t),r=n.visualViewport;let i=A.clientWidth,o=A.clientHeight,a=0,l=0;if(r){i=r.width,o=r.height;const u=YB();(!u||u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:o,x:a,y:l}}function Bj(t,e){const n=Ms(t,!0,e==="fixed"),A=n.top+t.clientTop,r=n.left+t.clientLeft,i=fi(t)?qa(t):ui(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=r*i.x,u=A*i.y;return{width:o,height:a,x:l,y:u}}function fF(t,e,n){let A;if(e==="viewport")A=gj(t,n);else if(e==="document")A=mj(di(t));else if(Rr(e))A=Bj(e,n);else{const r=uF(t);A={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return zf(A)}function hF(t,e){const n=Vo(t);return n===e||!Rr(n)||Xa(n)?!1:Pr(n).position==="fixed"||hF(n,e)}function yj(t,e){const n=e.get(t);if(n)return n;let A=Pc(t,[],!1).filter(a=>Rr(a)&&ja(a)!=="body"),r=null;const i=Pr(t).position==="fixed";let o=i?Vo(t):t;for(;Rr(o)&&!Xa(o);){const a=Pr(o),l=GB(o);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&r&&["absolute","fixed"].includes(r.position)||Rc(o)&&!l&&hF(t,o))?A=A.filter(u=>u!==o):r=a,o=Vo(o)}return e.set(t,A),A}function wj(t){let{element:e,boundary:n,rootBoundary:A,strategy:r}=t;const i=[...n==="clippingAncestors"?jf(e)?[]:yj(e,this._c):[].concat(n),A],o=i[0],a=i.reduce((l,u)=>{const f=fF(e,u,r);return l.top=Ja(f.top,l.top),l.right=WB(f.right,l.right),l.bottom=WB(f.bottom,l.bottom),l.left=Ja(f.left,l.left),l},fF(e,o,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Cj(t){const{width:e,height:n}=cF(t);return{width:e,height:n}}function bj(t,e,n){const A=fi(e),r=di(e),i=n==="fixed",o=Ms(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=ui(0);function u(){l.x=jB(r)}if(A||!A&&!i)if((ja(e)!=="body"||Rc(r))&&(a=Xf(e)),A){const g=Ms(e,!0,i,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&u();i&&!A&&r&&u();const f=r&&!A&&!i?dF(r,a):ui(0),h=o.left+a.scrollLeft-l.x-f.x,p=o.top+a.scrollTop-l.y-f.y;return{x:h,y:p,width:o.width,height:o.height}}function XB(t){return Pr(t).position==="static"}function pF(t,e){if(!fi(t)||Pr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return di(t)===n&&(n=n.ownerDocument.body),n}function mF(t,e){const n=zA(t);if(jf(t))return n;if(!fi(t)){let r=Vo(t);for(;r&&!Xa(r);){if(Rr(r)&&!XB(r))return r;r=Vo(r)}return n}let A=pF(t,e);for(;A&&cj(A)&&XB(A);)A=pF(A,e);return A&&Xa(A)&&XB(A)&&!GB(A)?n:A||uj(t)||n}const vj=function(t){return Jt(this,null,function*(){const e=this.getOffsetParent||mF,n=this.getDimensions,A=yield n(t.floating);return{reference:bj(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:A.width,height:A.height}}})};function Ej(t){return Pr(t).direction==="rtl"}const JA={convertOffsetParentRelativeRectToViewportRelativeRect:hj,getDocumentElement:di,getClippingRect:wj,getOffsetParent:mF,getElementRects:vj,getClientRects:pj,getDimensions:Cj,getScale:qa,isElement:Rr,isRTL:Ej};function gF(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function kj(t,e){let n=null,A;const r=di(t);function i(){var a;clearTimeout(A),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:f,top:h,width:p,height:g}=u;if(a||e(),!p||!g)return;const B=Yf(h),y=Yf(r.clientWidth-(f+p)),C=Yf(r.clientHeight-(h+g)),b=Yf(f),F={rootMargin:-B+"px "+-y+"px "+-C+"px "+-b+"px",threshold:Ja(0,WB(1,l))||1};let k=!0;function v(U){const E=U[0].intersectionRatio;if(E!==l){if(!k)return o();E?o(!1,E):A=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!gF(u,t.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(v,OA(Vn({},F),{root:r.ownerDocument}))}catch{n=new IntersectionObserver(v,F)}n.observe(t)}return o(!0),i}function qB(t,e,n,A){A===void 0&&(A={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=A,u=JB(t),f=r||i?[...u?Pc(u):[],...Pc(e)]:[];f.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const h=u&&a?kj(u,n):null;let p=-1,g=null;o&&(g=new ResizeObserver(b=>{let[F]=b;F&&F.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var k;(k=g)==null||k.observe(e)})),n()}),u&&!l&&g.observe(u),g.observe(e));let B,y=l?Ms(t):null;l&&C();function C(){const b=Ms(t);y&&!gF(y,b)&&n(),y=b,B=requestAnimationFrame(C)}return n(),()=>{var b;f.forEach(F=>{r&&F.removeEventListener("scroll",n),i&&F.removeEventListener("resize",n)}),h==null||h(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(B)}}const Sj=lj,{hasOwnProperty:ZB}=Object.prototype,Vc=function(){};function BF(t){return typeof t=="function"?t:Vc}function yF(t,e){return function(n,A,r){n.type===e&&t.call(this,n,A,r)}}function Fj(t,e){const n=e.structure,A=[];for(const r in n){if(ZB.call(n,r)===!1)continue;let i=n[r];const o={name:r,type:!1,nullable:!1};Array.isArray(i)||(i=[i]);for(const a of i)a===null?o.nullable=!0:typeof a=="string"?o.type="node":Array.isArray(a)&&(o.type="list");o.type&&A.push(o)}return A.length?{context:e.walkContext,fields:A}:null}function Qj(t){const e={};for(const n in t.node)if(ZB.call(t.node,n)){const A=t.node[n];if(!A.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");e[n]=Fj(n,A)}return e}function wF(t,e){const n=t.fields.slice(),A=t.context,r=typeof A=="string";return e&&n.reverse(),function(i,o,a,l){let u;r&&(u=o[A],o[A]=i);for(const f of n){const h=i[f.name];if(!f.nullable||h){if(f.type==="list"){if(e?h.reduceRight(l,!1):h.reduce(l,!1))return!0}else if(a(h))return!0}}r&&(o[A]=u)}}function CF({StyleSheet:t,Atrule:e,Rule:n,Block:A,DeclarationList:r}){return{Atrule:{StyleSheet:t,Atrule:e,Rule:n,Block:A},Rule:{StyleSheet:t,Atrule:e,Rule:n,Block:A},Declaration:{StyleSheet:t,Atrule:e,Rule:n,Block:A,DeclarationList:r}}}function Uj(t){const e=Qj(t),n={},A={},r=Symbol("break-walk"),i=Symbol("skip-node");for(const u in e)ZB.call(e,u)&&e[u]!==null&&(n[u]=wF(e[u],!1),A[u]=wF(e[u],!0));const o=CF(n),a=CF(A),l=function(u,f){function h(b,F,k){const v=p.call(C,b,F,k);return v===r?!0:v===i?!1:!!(B.hasOwnProperty(b.type)&&B[b.type](b,C,h,y)||g.call(C,b,F,k)===r)}let p=Vc,g=Vc,B=n,y=(b,F,k,v)=>b||h(F,k,v);const C={break:r,skip:i,root:u,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof f=="function")p=f;else if(f&&(p=BF(f.enter),g=BF(f.leave),f.reverse&&(B=A),f.visit)){if(o.hasOwnProperty(f.visit))B=f.reverse?a[f.visit]:o[f.visit];else if(!e.hasOwnProperty(f.visit))throw new Error("Bad value `"+f.visit+"` for `visit` option (should be: "+Object.keys(e).sort().join(", ")+")");p=yF(p,f.visit),g=yF(g,f.visit)}if(p===Vc&&g===Vc)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(u)};return l.break=r,l.skip=i,l.find=function(u,f){let h=null;return l(u,function(p,g,B){if(f.call(this,p,g,B))return h=p,r}),h},l.findLast=function(u,f){let h=null;return l(u,{reverse:!0,enter(p,g,B){if(f.call(this,p,g,B))return h=p,r}}),h},l.findAll=function(u,f){const h=[];return l(u,function(p,g,B){f.call(this,p,g,B)&&h.push(p)}),h},l}const $o=0,xe=1,kt=2,Un=3,An=4,Ki=5,Tj=6,wA=7,Vr=8,Lt=9,pt=10,Bn=11,Tt=12,kn=13,qf=14,jA=15,CA=16,DA=17,$r=18,Za=19,$c=20,jt=21,lt=22,Kr=23,el=24,bA=25,Ij=0;function XA(t){return t>=48&&t<=57}function tl(t){return XA(t)||t>=65&&t<=70||t>=97&&t<=102}function ey(t){return t>=65&&t<=90}function _j(t){return t>=97&&t<=122}function xj(t){return ey(t)||_j(t)}function Oj(t){return t>=128}function Zf(t){return xj(t)||Oj(t)||t===95}function bF(t){return Zf(t)||XA(t)||t===45}function Dj(t){return t>=0&&t<=8||t===11||t>=14&&t<=31||t===127}function eh(t){return t===10||t===13||t===12}function Ns(t){return eh(t)||t===32||t===9}function hi(t,e){return!(t!==92||eh(e)||e===Ij)}function ty(t,e,n){return t===45?Zf(e)||e===45||hi(e,n):Zf(t)?!0:t===92?hi(t,e):!1}function ny(t,e,n){return t===43||t===45?XA(e)?2:e===46&&XA(n)?3:0:t===46?XA(e)?2:0:XA(t)?1:0}function vF(t){return t===65279||t===65534?1:0}const Ay=new Array(128),Lj=128,th=130,EF=131,ry=132,kF=133;for(let t=0;t<Ay.length;t++)Ay[t]=Ns(t)&&th||XA(t)&&EF||Zf(t)&&ry||Dj(t)&&kF||t||Lj;function iy(t){return t<128?Ay[t]:ry}function nl(t,e){return e<t.length?t.charCodeAt(e):0}function oy(t,e,n){return n===13&&nl(t,e+1)===10?2:1}function SF(t,e,n){let A=t.charCodeAt(e);return ey(A)&&(A=A|32),A===n}function nh(t,e,n,A){if(n-e!==A.length||e<0||n>t.length)return!1;for(let r=e;r<n;r++){const i=A.charCodeAt(r-e);let o=t.charCodeAt(r);if(ey(o)&&(o=o|32),o!==i)return!1}return!0}function Mj(t,e){for(;e>=0&&Ns(t.charCodeAt(e));e--);return e+1}function Ah(t,e){for(;e<t.length&&Ns(t.charCodeAt(e));e++);return e}function sy(t,e){for(;e<t.length&&XA(t.charCodeAt(e));e++);return e}function Al(t,e){if(e+=2,tl(nl(t,e-1))){for(const A=Math.min(t.length,e+5);e<A&&tl(nl(t,e));e++);const n=nl(t,e);Ns(n)&&(e+=oy(t,e,n))}return e}function rh(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(!bF(n)){if(hi(n,nl(t,e+1))){e=Al(t,e)-1;continue}break}}return e}function FF(t,e){let n=t.charCodeAt(e);if((n===43||n===45)&&(n=t.charCodeAt(e+=1)),XA(n)&&(e=sy(t,e+1),n=t.charCodeAt(e)),n===46&&XA(t.charCodeAt(e+1))&&(e+=2,e=sy(t,e)),SF(t,e,101)){let A=0;n=t.charCodeAt(e+1),(n===45||n===43)&&(A=1,n=t.charCodeAt(e+2)),XA(n)&&(e=sy(t,e+1+A+1))}return e}function ay(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(n===41){e++;break}hi(n,nl(t,e+1))&&(e=Al(t,e))}return e}function QF(t){if(t.length===1&&!tl(t.charCodeAt(0)))return t[0];let e=parseInt(t,16);return(e===0||e>=55296&&e<=57343||e>1114111)&&(e=65533),String.fromCodePoint(e)}const UF=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],Nj=16*1024;function ih(t=null,e){return t===null||t.length<e?new Uint32Array(Math.max(e+1024,Nj)):t}const TF=10,Hj=12,IF=13;function _F(t){const e=t.source,n=e.length,A=e.length>0?vF(e.charCodeAt(0)):0,r=ih(t.lines,n),i=ih(t.columns,n);let o=t.startLine,a=t.startColumn;for(let l=A;l<n;l++){const u=e.charCodeAt(l);r[l]=o,i[l]=a++,(u===TF||u===IF||u===Hj)&&(u===IF&&l+1<n&&e.charCodeAt(l+1)===TF&&(l++,r[l]=o,i[l]=a),o++,a=1)}r[n]=o,i[n]=a,t.lines=r,t.columns=i,t.computed=!0}class Rj{constructor(e,n,A,r){this.setSource(e,n,A,r),this.lines=null,this.columns=null}setSource(e="",n=0,A=1,r=1){this.source=e,this.startOffset=n,this.startLine=A,this.startColumn=r,this.computed=!1}getLocation(e,n){return this.computed||_F(this),{source:n,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,n,A){return this.computed||_F(this),{source:A,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const pi=16777215,mi=24,Hs=new Uint8Array(32);Hs[kt]=lt,Hs[jt]=lt,Hs[Za]=$c,Hs[Kr]=el;function xF(t){return Hs[t]!==0}class Pj{constructor(e,n){this.setSource(e,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",n=()=>{}){e=String(e||"");const A=e.length,r=ih(this.offsetAndType,e.length+1),i=ih(this.balance,e.length+1);let o=0,a=-1,l=0,u=e.length;this.offsetAndType=null,this.balance=null,i.fill(0),n(e,(f,h,p)=>{const g=o++;if(r[g]=f<<mi|p,a===-1&&(a=h),i[g]=u,f===l){const B=i[u];i[u]=g,u=B,l=Hs[r[B]>>mi]}else xF(f)&&(u=g,l=Hs[f])}),r[o]=$o<<mi|A,i[o]=o;for(let f=0;f<o;f++){const h=i[f];if(h<=f){const p=i[h];p!==f&&(i[f]=p)}else h>o&&(i[f]=o)}this.source=e,this.firstCharOffset=a===-1?0:a,this.tokenCount=o,this.offsetAndType=r,this.balance=i,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>mi:$o}lookupTypeNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const A=this.offsetAndType[n]>>mi;if(A!==kn&&A!==bA&&e--===0)return A}return $o}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&pi:this.source.length}lookupOffsetNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const A=this.offsetAndType[n]>>mi;if(A!==kn&&A!==bA&&e--===0)return n-this.tokenIndex}return $o}lookupValue(e,n){return e+=this.tokenIndex,e<this.tokenCount?nh(this.source,this.offsetAndType[e-1]&pi,this.offsetAndType[e]&pi,n):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&pi:this.offsetAndType[this.tokenCount]&pi:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,n){return n?this.lookupType(n)===Lt&&this.source.charCodeAt(this.lookupOffset(n))===e:this.tokenType===Lt&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let n=this.tokenIndex+e;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&pi,n=this.offsetAndType[n],this.tokenType=n>>mi,this.tokenEnd=n&pi):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>mi,this.tokenEnd=e&pi):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=$o,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===kn||this.tokenType===bA;)this.next()}skipUntilBalanced(e,n){let A=e,r=0,i=0;e:for(;A<this.tokenCount;A++){if(r=this.balance[A],r<e)break e;switch(i=A>0?this.offsetAndType[A-1]&pi:this.firstCharOffset,n(this.source.charCodeAt(i))){case 1:break e;case 2:A++;break e;default:xF(this.offsetAndType[A]>>mi)&&(A=r)}}this.skip(A-this.tokenIndex)}forEachToken(e){for(let n=0,A=this.firstCharOffset;n<this.tokenCount;n++){const r=A,i=this.offsetAndType[n],o=i&pi,a=i>>mi;A=o,e(a,r,o,n)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken((n,A,r,i)=>{e[i]={idx:i,type:UF[n],chunk:this.source.substring(A,r),balance:this.balance[i]}}),e}}function OF(t,e){function n(h){return h<a?t.charCodeAt(h):0}function A(){if(u=FF(t,u),ty(n(u),n(u+1),n(u+2))){f=Tt,u=rh(t,u);return}if(n(u)===37){f=Bn,u++;return}f=pt}function r(){const h=u;if(u=rh(t,u),nh(t,h,u,"url")&&n(u)===40){if(u=Ah(t,u+1),n(u)===34||n(u)===39){f=kt,u=h+4;return}o();return}if(n(u)===40){f=kt,u++;return}f=xe}function i(h){for(h||(h=n(u++)),f=Ki;u<t.length;u++){const p=t.charCodeAt(u);switch(iy(p)){case h:u++;return;case th:if(eh(p)){u+=oy(t,u,p),f=Tj;return}break;case 92:if(u===t.length-1)break;const g=n(u+1);eh(g)?u+=oy(t,u+1,g):hi(p,g)&&(u=Al(t,u)-1);break}}}function o(){for(f=wA,u=Ah(t,u);u<t.length;u++){const h=t.charCodeAt(u);switch(iy(h)){case 41:u++;return;case th:if(u=Ah(t,u),n(u)===41||u>=t.length){u<t.length&&u++;return}u=ay(t,u),f=Vr;return;case 34:case 39:case 40:case kF:u=ay(t,u),f=Vr;return;case 92:if(hi(h,n(u+1))){u=Al(t,u)-1;break}u=ay(t,u),f=Vr;return}}}t=String(t||"");const a=t.length;let l=vF(n(0)),u=l,f;for(;u<a;){const h=t.charCodeAt(u);switch(iy(h)){case th:f=kn,u=Ah(t,u+1);break;case 34:i();break;case 35:bF(n(u+1))||hi(n(u+1),n(u+2))?(f=An,u=rh(t,u+1)):(f=Lt,u++);break;case 39:i();break;case 40:f=jt,u++;break;case 41:f=lt,u++;break;case 43:ny(h,n(u+1),n(u+2))?A():(f=Lt,u++);break;case 44:f=$r,u++;break;case 45:ny(h,n(u+1),n(u+2))?A():n(u+1)===45&&n(u+2)===62?(f=jA,u=u+3):ty(h,n(u+1),n(u+2))?r():(f=Lt,u++);break;case 46:ny(h,n(u+1),n(u+2))?A():(f=Lt,u++);break;case 47:n(u+1)===42?(f=bA,u=t.indexOf("*/",u+2),u=u===-1?t.length:u+2):(f=Lt,u++);break;case 58:f=CA,u++;break;case 59:f=DA,u++;break;case 60:n(u+1)===33&&n(u+2)===45&&n(u+3)===45?(f=qf,u=u+4):(f=Lt,u++);break;case 64:ty(n(u+1),n(u+2),n(u+3))?(f=Un,u=rh(t,u+1)):(f=Lt,u++);break;case 91:f=Za,u++;break;case 92:hi(h,n(u+1))?r():(f=Lt,u++);break;case 93:f=$c,u++;break;case 123:f=Kr,u++;break;case 125:f=el,u++;break;case EF:A();break;case ry:r();break;default:f=Lt,u++}e(f,l,l=u)}}const gi=43,qA=45,oh=110,Rs=!0,Vj=!1;function sh(t,e){let n=this.tokenStart+t;const A=this.charCodeAt(n);for((A===gi||A===qA)&&(e&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)XA(this.charCodeAt(n))||this.error("Integer is expected",n)}function rl(t){return sh.call(this,0,t)}function Ko(t,e){if(!this.cmpChar(this.tokenStart+t,e)){let n="";switch(e){case oh:n="N is expected";break;case qA:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+t)}}function ly(){let t=0,e=0,n=this.tokenType;for(;n===kn||n===bA;)n=this.lookupType(++t);if(n!==pt)if(this.isDelim(gi,t)||this.isDelim(qA,t)){e=this.isDelim(gi,t)?gi:qA;do n=this.lookupType(++t);while(n===kn||n===bA);n!==pt&&(this.skip(t),rl.call(this,Rs))}else return null;return t>0&&this.skip(t),e===0&&(n=this.charCodeAt(this.tokenStart),n!==gi&&n!==qA&&this.error("Number sign is expected")),rl.call(this,e!==0),e===qA?"-"+this.consume(pt):this.consume(pt)}const $j="AnPlusB",Kj={a:[String,null],b:[String,null]};function DF(){const t=this.tokenStart;let e=null,n=null;if(this.tokenType===pt)rl.call(this,Vj),n=this.consume(pt);else if(this.tokenType===xe&&this.cmpChar(this.tokenStart,qA))switch(e="-1",Ko.call(this,1,oh),this.tokenEnd-this.tokenStart){case 2:this.next(),n=ly.call(this);break;case 3:Ko.call(this,2,qA),this.next(),this.skipSC(),rl.call(this,Rs),n="-"+this.consume(pt);break;default:Ko.call(this,2,qA),sh.call(this,3,Rs),this.next(),n=this.substrToCursor(t+2)}else if(this.tokenType===xe||this.isDelim(gi)&&this.lookupType(1)===xe){let A=0;switch(e="1",this.isDelim(gi)&&(A=1,this.next()),Ko.call(this,0,oh),this.tokenEnd-this.tokenStart){case 1:this.next(),n=ly.call(this);break;case 2:Ko.call(this,1,qA),this.next(),this.skipSC(),rl.call(this,Rs),n="-"+this.consume(pt);break;default:Ko.call(this,1,qA),sh.call(this,2,Rs),this.next(),n=this.substrToCursor(t+A+1)}}else if(this.tokenType===Tt){const A=this.charCodeAt(this.tokenStart),r=A===gi||A===qA;let i=this.tokenStart+r;for(;i<this.tokenEnd&&XA(this.charCodeAt(i));i++);i===this.tokenStart+r&&this.error("Integer is expected",this.tokenStart+r),Ko.call(this,i-this.tokenStart,oh),e=this.substring(t,i),i+1===this.tokenEnd?(this.next(),n=ly.call(this)):(Ko.call(this,i-this.tokenStart+1,qA),i+2===this.tokenEnd?(this.next(),this.skipSC(),rl.call(this,Rs),n="-"+this.consume(pt)):(sh.call(this,i-this.tokenStart+2,Rs),this.next(),n=this.substrToCursor(i+1)))}else this.error();return e!==null&&e.charCodeAt(0)===gi&&(e=e.substr(1)),n!==null&&n.charCodeAt(0)===gi&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.tokenStart),a:e,b:n}}function LF(t){if(t.a){const e=t.a==="+1"&&"n"||t.a==="1"&&"n"||t.a==="-1"&&"-n"||t.a+"n";if(t.b){const n=t.b[0]==="-"||t.b[0]==="+"?t.b:"+"+t.b;this.tokenize(e+n)}else this.tokenize(e)}else this.tokenize(t.b)}const Wj=Object.freeze(Object.defineProperty({__proto__:null,generate:LF,name:$j,parse:DF,structure:Kj},Symbol.toStringTag,{value:"Module"}));function MF(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Gj(){for(let t=1,e;e=this.lookupType(t);t++){if(e===el)return!0;if(e===Kr||e===Un)return!1}return!1}const Yj="Atrule",zj="atrule",Jj={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function NF(t=!1){const e=this.tokenStart;let n,A,r=null,i=null;switch(this.eat(Un),n=this.substrToCursor(e+1),A=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==Kr&&this.tokenType!==DA&&(this.parseAtrulePrelude?r=this.parseWithFallback(this.AtrulePrelude.bind(this,n,t),MF):r=MF.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case DA:this.next();break;case Kr:hasOwnProperty.call(this.atrule,A)&&typeof this.atrule[A].block=="function"?i=this.atrule[A].block.call(this,t):i=this.Block(Gj.call(this));break}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:n,prelude:r,block:i}}function HF(t){this.token(Un,"@"+t.name),t.prelude!==null&&this.node(t.prelude),t.block?this.node(t.block):this.token(DA,";")}const jj=Object.freeze(Object.defineProperty({__proto__:null,generate:HF,name:Yj,parse:NF,structure:Jj,walkContext:zj},Symbol.toStringTag,{value:"Module"})),Xj="AtrulePrelude",qj="atrulePrelude",Zj={children:[[]]};function RF(t){let e=null;return t!==null&&(t=t.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==Kr&&this.tokenType!==DA&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}}function PF(t){this.children(t)}const eX=Object.freeze(Object.defineProperty({__proto__:null,generate:PF,name:Xj,parse:RF,structure:Zj,walkContext:qj},Symbol.toStringTag,{value:"Module"})),tX=36,VF=42,ah=61,nX=94,cy=124,AX=126;function rX(){this.eof&&this.error("Unexpected end of input");const t=this.tokenStart;let e=!1;return this.isDelim(VF)?(e=!0,this.next()):this.isDelim(cy)||this.eat(xe),this.isDelim(cy)?this.charCodeAt(this.tokenStart+1)!==ah?(this.next(),this.eat(xe)):e&&this.error("Identifier is expected",this.tokenEnd):e&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function iX(){const t=this.tokenStart,e=this.charCodeAt(t);return e!==ah&&e!==AX&&e!==nX&&e!==tX&&e!==VF&&e!==cy&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),e!==ah&&(this.isDelim(ah)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(t)}const oX="AttributeSelector",sX={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function $F(){const t=this.tokenStart;let e,n=null,A=null,r=null;return this.eat(Za),this.skipSC(),e=rX.call(this),this.skipSC(),this.tokenType!==$c&&(this.tokenType!==xe&&(n=iX.call(this),this.skipSC(),A=this.tokenType===Ki?this.String():this.Identifier(),this.skipSC()),this.tokenType===xe&&(r=this.consume(xe),this.skipSC())),this.eat($c),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:A,flags:r}}function KF(t){this.token(Lt,"["),this.node(t.name),t.matcher!==null&&(this.tokenize(t.matcher),this.node(t.value)),t.flags!==null&&this.token(xe,t.flags),this.token(Lt,"]")}const aX=Object.freeze(Object.defineProperty({__proto__:null,generate:KF,name:oX,parse:$F,structure:sX},Symbol.toStringTag,{value:"Module"})),lX=38;function WF(){return this.Raw(null,!0)}function GF(){return this.parseWithFallback(this.Rule,WF)}function YF(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function cX(){if(this.tokenType===DA)return YF.call(this,this.tokenIndex);const t=this.parseWithFallback(this.Declaration,YF);return this.tokenType===DA&&this.next(),t}const uX="Block",dX="block",fX={children:[["Atrule","Rule","Declaration"]]};function zF(t){const e=t?cX:GF,n=this.tokenStart;let A=this.createList();this.eat(Kr);e:for(;!this.eof;)switch(this.tokenType){case el:break e;case kn:case bA:this.next();break;case Un:A.push(this.parseWithFallback(this.Atrule.bind(this,t),WF));break;default:t&&this.isDelim(lX)?A.push(GF.call(this)):A.push(e.call(this))}return this.eof||this.eat(el),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:A}}function JF(t){this.token(Kr,"{"),this.children(t,e=>{e.type==="Declaration"&&this.token(DA,";")}),this.token(el,"}")}const hX=Object.freeze(Object.defineProperty({__proto__:null,generate:JF,name:uX,parse:zF,structure:fX,walkContext:dX},Symbol.toStringTag,{value:"Module"})),pX="Brackets",mX={children:[[]]};function jF(t,e){const n=this.tokenStart;let A=null;return this.eat(Za),A=t.call(this,e),this.eof||this.eat($c),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:A}}function XF(t){this.token(Lt,"["),this.children(t),this.token(Lt,"]")}const gX=Object.freeze(Object.defineProperty({__proto__:null,generate:XF,name:pX,parse:jF,structure:mX},Symbol.toStringTag,{value:"Module"})),BX="CDC",yX=[];function qF(){const t=this.tokenStart;return this.eat(jA),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function ZF(){this.token(jA,"-->")}const wX=Object.freeze(Object.defineProperty({__proto__:null,generate:ZF,name:BX,parse:qF,structure:yX},Symbol.toStringTag,{value:"Module"})),CX="CDO",bX=[];function eQ(){const t=this.tokenStart;return this.eat(qf),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function tQ(){this.token(qf,"<!--")}const vX=Object.freeze(Object.defineProperty({__proto__:null,generate:tQ,name:CX,parse:eQ,structure:bX},Symbol.toStringTag,{value:"Module"})),EX=46,kX="ClassSelector",SX={name:String};function nQ(){return this.eatDelim(EX),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(xe)}}function AQ(t){this.token(Lt,"."),this.token(xe,t.name)}const FX=Object.freeze(Object.defineProperty({__proto__:null,generate:AQ,name:kX,parse:nQ,structure:SX},Symbol.toStringTag,{value:"Module"})),QX=43,rQ=47,UX=62,TX=126,IX="Combinator",_X={name:String};function iQ(){const t=this.tokenStart;let e;switch(this.tokenType){case kn:e=" ";break;case Lt:switch(this.charCodeAt(this.tokenStart)){case UX:case QX:case TX:this.next();break;case rQ:this.next(),this.eatIdent("deep"),this.eatDelim(rQ);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t);break}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function oQ(t){this.tokenize(t.name)}const xX=Object.freeze(Object.defineProperty({__proto__:null,generate:oQ,name:IX,parse:iQ,structure:_X},Symbol.toStringTag,{value:"Module"})),OX=42,DX=47,LX="Comment",MX={value:String};function sQ(){const t=this.tokenStart;let e=this.tokenEnd;return this.eat(bA),e-t+2>=2&&this.charCodeAt(e-2)===OX&&this.charCodeAt(e-1)===DX&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,e)}}function aQ(t){this.token(bA,"/*"+t.value+"*/")}const NX=Object.freeze(Object.defineProperty({__proto__:null,generate:aQ,name:LX,parse:sQ,structure:MX},Symbol.toStringTag,{value:"Module"})),HX=new Set([CA,lt,$o]),RX="Condition",PX={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function lQ(t){return this.lookupTypeNonSC(1)===xe&&HX.has(this.lookupTypeNonSC(2))?this.Feature(t):this.FeatureRange(t)}const VX={media:lQ,container:lQ,supports(){return this.SupportsDeclaration()}};function cQ(t="media"){const e=this.createList();e:for(;!this.eof;)switch(this.tokenType){case bA:case kn:this.next();continue;case xe:e.push(this.Identifier());break;case jt:{let n=this.parseWithFallback(()=>VX[t].call(this,t),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(jt);const A=this.Condition(t);return this.eat(lt),A},()=>this.GeneralEnclosed(t))),e.push(n);break}case kt:{let n=this.parseWithFallback(()=>this.FeatureFunction(t),()=>null);n||(n=this.GeneralEnclosed(t)),e.push(n);break}default:break e}return e.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(e),kind:t,children:e}}function uQ(t){t.children.forEach(e=>{e.type==="Condition"?(this.token(jt,"("),this.node(e),this.token(lt,")")):this.node(e)})}const $X=Object.freeze(Object.defineProperty({__proto__:null,generate:uQ,name:RX,parse:cQ,structure:PX},Symbol.toStringTag,{value:"Module"})),dQ=45;function KX(t,e){return e=e||0,t.length-e>=2&&t.charCodeAt(e)===dQ&&t.charCodeAt(e+1)===dQ}const fQ=33,WX=35,GX=36,YX=38,zX=42,JX=43,hQ=47;function jX(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function XX(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function qX(){const t=this.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==DA&&this.isDelim(fQ)===!1&&this.isBalanceEdge(t)===!1&&this.error(),e}const ZX="Declaration",e7="declaration",t7={important:[Boolean,String],property:String,value:["Value","Raw"]};function pQ(){const t=this.tokenStart,e=this.tokenIndex,n=n7.call(this),A=KX(n),r=A?this.parseCustomProperty:this.parseValue,i=A?XX:jX;let o=!1,a;this.skipSC(),this.eat(CA);const l=this.tokenIndex;if(A||this.skipSC(),r?a=this.parseWithFallback(qX,i):a=i.call(this,this.tokenIndex),A&&a.type==="Value"&&a.children.isEmpty){for(let u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===kn){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(fQ)&&(o=A7.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==DA&&this.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:o,property:n,value:a}}function mQ(t){this.token(xe,t.property),this.token(CA,":"),this.node(t.value),t.important&&(this.token(Lt,"!"),this.token(xe,t.important===!0?"important":t.important))}function n7(){const t=this.tokenStart;if(this.tokenType===Lt)switch(this.charCodeAt(this.tokenStart)){case zX:case GX:case JX:case WX:case YX:this.next();break;case hQ:this.next(),this.isDelim(hQ)&&this.next();break}return this.tokenType===An?this.eat(An):this.eat(xe),this.substrToCursor(t)}function A7(){this.eat(Lt),this.skipSC();const t=this.consume(xe);return t==="important"?!0:t}const r7=Object.freeze(Object.defineProperty({__proto__:null,generate:mQ,name:ZX,parse:pQ,structure:t7,walkContext:e7},Symbol.toStringTag,{value:"Module"})),i7=38;function uy(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const o7="DeclarationList",s7={children:[["Declaration","Atrule","Rule"]]};function gQ(){const t=this.createList();for(;!this.eof;)switch(this.tokenType){case kn:case bA:case DA:this.next();break;case Un:t.push(this.parseWithFallback(this.Atrule.bind(this,!0),uy));break;default:this.isDelim(i7)?t.push(this.parseWithFallback(this.Rule,uy)):t.push(this.parseWithFallback(this.Declaration,uy))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function BQ(t){this.children(t,e=>{e.type==="Declaration"&&this.token(DA,";")})}const a7=Object.freeze(Object.defineProperty({__proto__:null,generate:BQ,name:o7,parse:gQ,structure:s7},Symbol.toStringTag,{value:"Module"})),l7="Dimension",c7={value:String,unit:String};function yQ(){const t=this.tokenStart,e=this.consumeNumber(Tt);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:e,unit:this.substring(t+e.length,this.tokenStart)}}function wQ(t){this.token(Tt,t.value+t.unit)}const u7=Object.freeze(Object.defineProperty({__proto__:null,generate:wQ,name:l7,parse:yQ,structure:c7},Symbol.toStringTag,{value:"Module"})),d7=47,f7="Feature",h7={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function CQ(t){const e=this.tokenStart;let n,A=null;if(this.eat(jt),this.skipSC(),n=this.consume(xe),this.skipSC(),this.tokenType!==lt){switch(this.eat(CA),this.skipSC(),this.tokenType){case pt:this.lookupNonWSType(1)===Lt?A=this.Ratio():A=this.Number();break;case Tt:A=this.Dimension();break;case xe:A=this.Identifier();break;case kt:A=this.parseWithFallback(()=>{const r=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(d7)&&this.error(),r},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(lt),{type:"Feature",loc:this.getLocation(e,this.tokenStart),kind:t,name:n,value:A}}function bQ(t){this.token(jt,"("),this.token(xe,t.name),t.value!==null&&(this.token(CA,":"),this.node(t.value)),this.token(lt,")")}const p7=Object.freeze(Object.defineProperty({__proto__:null,generate:bQ,name:f7,parse:CQ,structure:h7},Symbol.toStringTag,{value:"Module"})),m7="FeatureFunction",g7={kind:String,feature:String,value:["Declaration","Selector"]};function B7(t,e){const n=(this.features[t]||{})[e];return typeof n!="function"&&this.error(`Unknown feature ${e}()`),n}function vQ(t="unknown"){const e=this.tokenStart,n=this.consumeFunctionName(),A=B7.call(this,t,n.toLowerCase());this.skipSC();const r=this.parseWithFallback(()=>{const i=this.tokenIndex,o=A.call(this);return this.eof===!1&&this.isBalanceEdge(i)===!1&&this.error(),o},()=>this.Raw(null,!1));return this.eof||this.eat(lt),{type:"FeatureFunction",loc:this.getLocation(e,this.tokenStart),kind:t,feature:n,value:r}}function EQ(t){this.token(kt,t.feature+"("),this.node(t.value),this.token(lt,")")}const y7=Object.freeze(Object.defineProperty({__proto__:null,generate:EQ,name:m7,parse:vQ,structure:g7},Symbol.toStringTag,{value:"Module"})),kQ=47,w7=60,SQ=61,C7=62,b7="FeatureRange",v7={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function dy(){switch(this.skipSC(),this.tokenType){case pt:return this.isDelim(kQ,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case Tt:return this.Dimension();case xe:return this.Identifier();case kt:return this.parseWithFallback(()=>{const t=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(kQ)&&this.error(),t},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function FQ(t){if(this.skipSC(),this.isDelim(w7)||this.isDelim(C7)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(SQ)?(this.next(),e+"="):e}if(this.isDelim(SQ))return"=";this.error(`Expected ${t?'":", ':""}"<", ">", "=" or ")"`)}function QQ(t="unknown"){const e=this.tokenStart;this.skipSC(),this.eat(jt);const n=dy.call(this),A=FQ.call(this,n.type==="Identifier"),r=dy.call(this);let i=null,o=null;return this.lookupNonWSType(0)!==lt&&(i=FQ.call(this),o=dy.call(this)),this.skipSC(),this.eat(lt),{type:"FeatureRange",loc:this.getLocation(e,this.tokenStart),kind:t,left:n,leftComparison:A,middle:r,rightComparison:i,right:o}}function UQ(t){this.token(jt,"("),this.node(t.left),this.tokenize(t.leftComparison),this.node(t.middle),t.right&&(this.tokenize(t.rightComparison),this.node(t.right)),this.token(lt,")")}const E7=Object.freeze(Object.defineProperty({__proto__:null,generate:UQ,name:b7,parse:QQ,structure:v7},Symbol.toStringTag,{value:"Module"})),k7="Function",S7="function",F7={name:String,children:[[]]};function TQ(t,e){const n=this.tokenStart,A=this.consumeFunctionName(),r=A.toLowerCase();let i;return i=e.hasOwnProperty(r)?e[r].call(this,e):t.call(this,e),this.eof||this.eat(lt),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:A,children:i}}function IQ(t){this.token(kt,t.name+"("),this.children(t),this.token(lt,")")}const Q7=Object.freeze(Object.defineProperty({__proto__:null,generate:IQ,name:k7,parse:TQ,structure:F7,walkContext:S7},Symbol.toStringTag,{value:"Module"})),U7="GeneralEnclosed",T7={kind:String,function:[String,null],children:[[]]};function _Q(t){const e=this.tokenStart;let n=null;this.tokenType===kt?n=this.consumeFunctionName():this.eat(jt);const A=this.parseWithFallback(()=>{const r=this.tokenIndex,i=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(r)===!1&&this.error(),i},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(lt),{type:"GeneralEnclosed",loc:this.getLocation(e,this.tokenStart),kind:t,function:n,children:A}}function xQ(t){t.function?this.token(kt,t.function+"("):this.token(jt,"("),this.children(t),this.token(lt,")")}const I7=Object.freeze(Object.defineProperty({__proto__:null,generate:xQ,name:U7,parse:_Q,structure:T7},Symbol.toStringTag,{value:"Module"})),_7="XXX",x7="Hash",O7={value:String};function OQ(){const t=this.tokenStart;return this.eat(An),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function DQ(t){this.token(An,"#"+t.value)}const D7=Object.freeze(Object.defineProperty({__proto__:null,generate:DQ,name:x7,parse:OQ,structure:O7,xxx:_7},Symbol.toStringTag,{value:"Module"})),L7="Identifier",M7={name:String};function LQ(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(xe)}}function MQ(t){this.token(xe,t.name)}const N7=Object.freeze(Object.defineProperty({__proto__:null,generate:MQ,name:L7,parse:LQ,structure:M7},Symbol.toStringTag,{value:"Module"})),H7="IdSelector",R7={name:String};function NQ(){const t=this.tokenStart;return this.eat(An),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function HQ(t){this.token(Lt,"#"+t.name)}const P7=Object.freeze(Object.defineProperty({__proto__:null,generate:HQ,name:H7,parse:NQ,structure:R7},Symbol.toStringTag,{value:"Module"})),V7=46,$7="Layer",K7={name:String};function RQ(){let t=this.tokenStart,e=this.consume(xe);for(;this.isDelim(V7);)this.eat(Lt),e+="."+this.consume(xe);return{type:"Layer",loc:this.getLocation(t,this.tokenStart),name:e}}function PQ(t){this.tokenize(t.name)}const W7=Object.freeze(Object.defineProperty({__proto__:null,generate:PQ,name:$7,parse:RQ,structure:K7},Symbol.toStringTag,{value:"Module"})),G7="LayerList",Y7={children:[["Layer"]]};function VQ(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.Layer()),this.lookupTypeNonSC(0)===$r);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(t),children:t}}function $Q(t){this.children(t,()=>this.token($r,","))}const z7=Object.freeze(Object.defineProperty({__proto__:null,generate:$Q,name:G7,parse:VQ,structure:Y7},Symbol.toStringTag,{value:"Module"})),J7="MediaQuery",j7={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function KQ(){const t=this.tokenStart;let e=null,n=null,A=null;if(this.skipSC(),this.tokenType===xe&&this.lookupTypeNonSC(1)!==jt){const r=this.consume(xe),i=r.toLowerCase();switch(i==="not"||i==="only"?(this.skipSC(),e=i,n=this.consume(xe)):n=r,this.lookupTypeNonSC(0)){case xe:{this.skipSC(),this.eatIdent("and"),A=this.Condition("media");break}case Kr:case DA:case $r:case $o:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case xe:case jt:case kt:{A=this.Condition("media");break}case Kr:case DA:case $o:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(t,this.tokenStart),modifier:e,mediaType:n,condition:A}}function WQ(t){t.mediaType?(t.modifier&&this.token(xe,t.modifier),this.token(xe,t.mediaType),t.condition&&(this.token(xe,"and"),this.node(t.condition))):t.condition&&this.node(t.condition)}const X7=Object.freeze(Object.defineProperty({__proto__:null,generate:WQ,name:J7,parse:KQ,structure:j7},Symbol.toStringTag,{value:"Module"})),q7="MediaQueryList",Z7={children:[["MediaQuery"]]};function GQ(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),this.tokenType===$r);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function YQ(t){this.children(t,()=>this.token($r,","))}const eq=Object.freeze(Object.defineProperty({__proto__:null,generate:YQ,name:q7,parse:GQ,structure:Z7},Symbol.toStringTag,{value:"Module"})),tq=38,nq="NestingSelector",Aq={};function zQ(){const t=this.tokenStart;return this.eatDelim(tq),{type:"NestingSelector",loc:this.getLocation(t,this.tokenStart)}}function JQ(){this.token(Lt,"&")}const rq=Object.freeze(Object.defineProperty({__proto__:null,generate:JQ,name:nq,parse:zQ,structure:Aq},Symbol.toStringTag,{value:"Module"})),iq="Nth",oq={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function jQ(){this.skipSC();const t=this.tokenStart;let e=t,n=null,A;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?A=this.Identifier():A=this.AnPlusB(),e=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),e=this.tokenStart),{type:"Nth",loc:this.getLocation(t,e),nth:A,selector:n}}function XQ(t){this.node(t.nth),t.selector!==null&&(this.token(xe,"of"),this.node(t.selector))}const sq=Object.freeze(Object.defineProperty({__proto__:null,generate:XQ,name:iq,parse:jQ,structure:oq},Symbol.toStringTag,{value:"Module"})),aq="Number",lq={value:String};function qQ(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(pt)}}function ZQ(t){this.token(pt,t.value)}const cq=Object.freeze(Object.defineProperty({__proto__:null,generate:ZQ,name:aq,parse:qQ,structure:lq},Symbol.toStringTag,{value:"Module"})),uq="Operator",dq={value:String};function eU(){const t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function tU(t){this.tokenize(t.value)}const fq=Object.freeze(Object.defineProperty({__proto__:null,generate:tU,name:uq,parse:eU,structure:dq},Symbol.toStringTag,{value:"Module"})),hq="Parentheses",pq={children:[[]]};function nU(t,e){const n=this.tokenStart;let A=null;return this.eat(jt),A=t.call(this,e),this.eof||this.eat(lt),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:A}}function AU(t){this.token(jt,"("),this.children(t),this.token(lt,")")}const mq=Object.freeze(Object.defineProperty({__proto__:null,generate:AU,name:hq,parse:nU,structure:pq},Symbol.toStringTag,{value:"Module"})),gq="Percentage",Bq={value:String};function rU(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Bn)}}function iU(t){this.token(Bn,t.value+"%")}const yq=Object.freeze(Object.defineProperty({__proto__:null,generate:iU,name:gq,parse:rU,structure:Bq},Symbol.toStringTag,{value:"Module"})),wq="PseudoClassSelector",Cq="function",bq={name:String,children:[["Raw"],null]};function oU(){const t=this.tokenStart;let e=null,n,A;return this.eat(CA),this.tokenType===kt?(n=this.consumeFunctionName(),A=n.toLowerCase(),this.lookupNonWSType(0)==lt?e=this.createList():hasOwnProperty.call(this.pseudo,A)?(this.skipSC(),e=this.pseudo[A].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(lt)):n=this.consume(xe),{type:"PseudoClassSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function sU(t){this.token(CA,":"),t.children===null?this.token(xe,t.name):(this.token(kt,t.name+"("),this.children(t),this.token(lt,")"))}const vq=Object.freeze(Object.defineProperty({__proto__:null,generate:sU,name:wq,parse:oU,structure:bq,walkContext:Cq},Symbol.toStringTag,{value:"Module"})),Eq="PseudoElementSelector",kq="function",Sq={name:String,children:[["Raw"],null]};function aU(){const t=this.tokenStart;let e=null,n,A;return this.eat(CA),this.eat(CA),this.tokenType===kt?(n=this.consumeFunctionName(),A=n.toLowerCase(),this.lookupNonWSType(0)==lt?e=this.createList():hasOwnProperty.call(this.pseudo,A)?(this.skipSC(),e=this.pseudo[A].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(lt)):n=this.consume(xe),{type:"PseudoElementSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function lU(t){this.token(CA,":"),this.token(CA,":"),t.children===null?this.token(xe,t.name):(this.token(kt,t.name+"("),this.children(t),this.token(lt,")"))}const Fq=Object.freeze(Object.defineProperty({__proto__:null,generate:lU,name:Eq,parse:aU,structure:Sq,walkContext:kq},Symbol.toStringTag,{value:"Module"})),cU=47;function uU(){switch(this.skipSC(),this.tokenType){case pt:return this.Number();case kt:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const Qq="Ratio",Uq={left:["Number","Function"],right:["Number","Function",null]};function dU(){const t=this.tokenStart,e=uU.call(this);let n=null;return this.skipSC(),this.isDelim(cU)&&(this.eatDelim(cU),n=uU.call(this)),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:e,right:n}}function fU(t){this.node(t.left),this.token(Lt,"/"),t.right?this.node(t.right):this.node(pt,1)}const Tq=Object.freeze(Object.defineProperty({__proto__:null,generate:fU,name:Qq,parse:dU,structure:Uq},Symbol.toStringTag,{value:"Module"}));function Iq(){return this.tokenIndex>0&&this.lookupType(-1)===kn?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const _q="Raw",xq={value:String};function hU(t,e){const n=this.getTokenStart(this.tokenIndex);let A;return this.skipUntilBalanced(this.tokenIndex,t||this.consumeUntilBalanceEnd),e&&this.tokenStart>n?A=Iq.call(this):A=this.tokenStart,{type:"Raw",loc:this.getLocation(n,A),value:this.substring(n,A)}}function pU(t){this.tokenize(t.value)}const Oq=Object.freeze(Object.defineProperty({__proto__:null,generate:pU,name:_q,parse:hU,structure:xq},Symbol.toStringTag,{value:"Module"}));function mU(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function Dq(){const t=this.SelectorList();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Kr&&this.error(),t}const Lq="Rule",Mq="rule",Nq={prelude:["SelectorList","Raw"],block:["Block"]};function gU(){const t=this.tokenIndex,e=this.tokenStart;let n,A;return this.parseRulePrelude?n=this.parseWithFallback(Dq,mU):n=mU.call(this,t),A=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.tokenStart),prelude:n,block:A}}function BU(t){this.node(t.prelude),this.node(t.block)}const Hq=Object.freeze(Object.defineProperty({__proto__:null,generate:BU,name:Lq,parse:gU,structure:Nq,walkContext:Mq},Symbol.toStringTag,{value:"Module"})),Rq="Scope",Pq={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function yU(){let t=null,e=null;this.skipSC();const n=this.tokenStart;return this.tokenType===jt&&(this.next(),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(lt)),this.lookupNonWSType(0)===xe&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(jt),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(lt)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:t,limit:e}}function wU(t){t.root&&(this.token(jt,"("),this.node(t.root),this.token(lt,")")),t.limit&&(this.token(xe,"to"),this.token(jt,"("),this.node(t.limit),this.token(lt,")"))}const Vq=Object.freeze(Object.defineProperty({__proto__:null,generate:wU,name:Rq,parse:yU,structure:Pq},Symbol.toStringTag,{value:"Module"})),$q="Selector",Kq={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function CU(){const t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function bU(t){this.children(t)}const Wq=Object.freeze(Object.defineProperty({__proto__:null,generate:bU,name:$q,parse:CU,structure:Kq},Symbol.toStringTag,{value:"Module"})),Gq="SelectorList",Yq="selector",zq={children:[["Selector","Raw"]]};function vU(){const t=this.createList();for(;!this.eof;){if(t.push(this.Selector()),this.tokenType===$r){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function EU(t){this.children(t,()=>this.token($r,","))}const Jq=Object.freeze(Object.defineProperty({__proto__:null,generate:EU,name:Gq,parse:vU,structure:zq,walkContext:Yq},Symbol.toStringTag,{value:"Module"})),fy=92,kU=34,jq=39;function SU(t){const e=t.length,n=t.charCodeAt(0),A=n===kU||n===jq?1:0,r=A===1&&e>1&&t.charCodeAt(e-1)===n?e-2:e-1;let i="";for(let o=A;o<=r;o++){let a=t.charCodeAt(o);if(a===fy){if(o===r){o!==e-1&&(i=t.substr(o+1));break}if(a=t.charCodeAt(++o),hi(fy,a)){const l=o-1,u=Al(t,l);o=u-1,i+=QF(t.substring(l+1,u))}else a===13&&t.charCodeAt(o+1)===10&&o++}else i+=t[o]}return i}function Xq(t,e){const n='"',A=kU;let r="",i=!1;for(let o=0;o<t.length;o++){const a=t.charCodeAt(o);if(a===0){r+="�";continue}if(a<=31||a===127){r+="\\"+a.toString(16),i=!0;continue}a===A||a===fy?(r+="\\"+t.charAt(o),i=!1):(i&&(tl(a)||Ns(a))&&(r+=" "),r+=t.charAt(o),i=!1)}return n+r+n}const qq="String",Zq={value:String};function FU(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:SU(this.consume(Ki))}}function QU(t){this.token(Ki,Xq(t.value))}const e9=Object.freeze(Object.defineProperty({__proto__:null,generate:QU,name:qq,parse:FU,structure:Zq},Symbol.toStringTag,{value:"Module"})),t9=33;function UU(){return this.Raw(null,!1)}const n9="StyleSheet",A9="stylesheet",r9={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function TU(){const t=this.tokenStart,e=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case kn:this.next();continue;case bA:if(this.charCodeAt(this.tokenStart+2)!==t9){this.next();continue}n=this.Comment();break;case qf:n=this.CDO();break;case jA:n=this.CDC();break;case Un:n=this.parseWithFallback(this.Atrule,UU);break;default:n=this.parseWithFallback(this.Rule,UU)}e.push(n)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:e}}function IU(t){this.children(t)}const i9=Object.freeze(Object.defineProperty({__proto__:null,generate:IU,name:n9,parse:TU,structure:r9,walkContext:A9},Symbol.toStringTag,{value:"Module"})),o9="SupportsDeclaration",s9={declaration:"Declaration"};function _U(){const t=this.tokenStart;this.eat(jt),this.skipSC();const e=this.Declaration();return this.eof||this.eat(lt),{type:"SupportsDeclaration",loc:this.getLocation(t,this.tokenStart),declaration:e}}function xU(t){this.token(jt,"("),this.node(t.declaration),this.token(lt,")")}const a9=Object.freeze(Object.defineProperty({__proto__:null,generate:xU,name:o9,parse:_U,structure:s9},Symbol.toStringTag,{value:"Module"})),l9=42,OU=124;function hy(){this.tokenType!==xe&&this.isDelim(l9)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const c9="TypeSelector",u9={name:String};function DU(){const t=this.tokenStart;return this.isDelim(OU)?(this.next(),hy.call(this)):(hy.call(this),this.isDelim(OU)&&(this.next(),hy.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function LU(t){this.tokenize(t.name)}const d9=Object.freeze(Object.defineProperty({__proto__:null,generate:LU,name:c9,parse:DU,structure:u9},Symbol.toStringTag,{value:"Module"})),MU=43,NU=45,py=63;function Kc(t,e){let n=0;for(let A=this.tokenStart+t;A<this.tokenEnd;A++){const r=this.charCodeAt(A);if(r===NU&&e&&n!==0)return Kc.call(this,t+n+1,!1),-1;tl(r)||this.error(e&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",A),++n>6&&this.error("Too many hex digits",A)}return this.next(),n}function lh(t){let e=0;for(;this.isDelim(py);)++e>t&&this.error("Too many question marks"),this.next()}function f9(t){this.charCodeAt(this.tokenStart)!==t&&this.error((t===MU?"Plus sign":"Hyphen minus")+" is expected")}function h9(){let t=0;switch(this.tokenType){case pt:if(t=Kc.call(this,1,!0),this.isDelim(py)){lh.call(this,6-t);break}if(this.tokenType===Tt||this.tokenType===pt){f9.call(this,NU),Kc.call(this,1,!1);break}break;case Tt:t=Kc.call(this,1,!0),t>0&&lh.call(this,6-t);break;default:if(this.eatDelim(MU),this.tokenType===xe){t=Kc.call(this,0,!0),t>0&&lh.call(this,6-t);break}if(this.isDelim(py)){this.next(),lh.call(this,5);break}this.error("Hex digit or question mark is expected")}}const p9="UnicodeRange",m9={value:String};function HU(){const t=this.tokenStart;return this.eatIdent("u"),h9.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function RU(t){this.tokenize(t.value)}const g9=Object.freeze(Object.defineProperty({__proto__:null,generate:RU,name:p9,parse:HU,structure:m9},Symbol.toStringTag,{value:"Module"})),B9=32,my=92,y9=34,w9=39,C9=40,PU=41;function b9(t){const e=t.length;let n=4,A=t.charCodeAt(e-1)===PU?e-2:e-1,r="";for(;n<A&&Ns(t.charCodeAt(n));)n++;for(;n<A&&Ns(t.charCodeAt(A));)A--;for(let i=n;i<=A;i++){let o=t.charCodeAt(i);if(o===my){if(i===A){i!==e-1&&(r=t.substr(i+1));break}if(o=t.charCodeAt(++i),hi(my,o)){const a=i-1,l=Al(t,a);i=l-1,r+=QF(t.substring(a+1,l))}else o===13&&t.charCodeAt(i+1)===10&&i++}else r+=t[i]}return r}function v9(t){let e="",n=!1;for(let A=0;A<t.length;A++){const r=t.charCodeAt(A);if(r===0){e+="�";continue}if(r<=31||r===127){e+="\\"+r.toString(16),n=!0;continue}r===B9||r===my||r===y9||r===w9||r===C9||r===PU?(e+="\\"+t.charAt(A),n=!1):(n&&tl(r)&&(e+=" "),e+=t.charAt(A),n=!1)}return"url("+e+")"}const E9="Url",k9={value:String};function VU(){const t=this.tokenStart;let e;switch(this.tokenType){case wA:e=b9(this.consume(wA));break;case kt:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(kt),this.skipSC(),e=SU(this.consume(Ki)),this.skipSC(),this.eof||this.eat(lt);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function $U(t){this.token(wA,v9(t.value))}const S9=Object.freeze(Object.defineProperty({__proto__:null,generate:$U,name:E9,parse:VU,structure:k9},Symbol.toStringTag,{value:"Module"})),F9="Value",Q9={children:[[]]};function KU(){const t=this.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:e}}function WU(t){this.children(t)}const U9=Object.freeze(Object.defineProperty({__proto__:null,generate:WU,name:F9,parse:KU,structure:Q9},Symbol.toStringTag,{value:"Module"})),T9=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),I9="WhiteSpace",_9={value:String};function GU(){return this.eat(kn),T9}function YU(t){this.token(kn,t.value)}const x9=Object.freeze(Object.defineProperty({__proto__:null,generate:YU,name:I9,parse:GU,structure:_9},Symbol.toStringTag,{value:"Module"})),O9=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Wj,Atrule:jj,AtrulePrelude:eX,AttributeSelector:aX,Block:hX,Brackets:gX,CDC:wX,CDO:vX,ClassSelector:FX,Combinator:xX,Comment:NX,Condition:$X,Declaration:r7,DeclarationList:a7,Dimension:u7,Feature:p7,FeatureFunction:y7,FeatureRange:E7,Function:Q7,GeneralEnclosed:I7,Hash:D7,IdSelector:P7,Identifier:N7,Layer:W7,LayerList:z7,MediaQuery:X7,MediaQueryList:eq,NestingSelector:rq,Nth:sq,Number:cq,Operator:fq,Parentheses:mq,Percentage:yq,PseudoClassSelector:vq,PseudoElementSelector:Fq,Ratio:Tq,Raw:Oq,Rule:Hq,Scope:Vq,Selector:Wq,SelectorList:Jq,String:e9,StyleSheet:i9,SupportsDeclaration:a9,TypeSelector:d9,UnicodeRange:g9,Url:S9,Value:U9,WhiteSpace:x9},Symbol.toStringTag,{value:"Module"})),D9={node:O9},Wo=Uj(D9),gy=["left","right","top","bottom","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","inset-block","inset-inline","inset"];function Wc(t){return gy.includes(t)}const By=["margin-block-start","margin-block-end","margin-block","margin-inline-start","margin-inline-end","margin-inline","margin-bottom","margin-left","margin-right","margin-top","margin"];function L9(t){return By.includes(t)}const yy=["width","height","min-width","min-height","max-width","max-height","block-size","inline-size","min-block-size","min-inline-size","max-block-size","max-inline-size"];function zU(t){return yy.includes(t)}const JU=["justify-self","align-self","place-self"];function M9(t){return JU.includes(t)}const jU=[...gy,...By,...yy,...JU,"position-anchor","position-area"],N9=[...yy,...gy,...By];function XU(t){return N9.includes(t)}const H9=["top","left","right","bottom","start","end","self-start","self-end","center","inside","outside"];function qU(t){return H9.includes(t)}const R9=["width","height","block","inline","self-block","self-inline"];function P9(t){return R9.includes(t)}const ZU=new Set(["Atrule","Selector","Declaration"]);function V9(t){const e=new SourceMapGenerator,n={line:1,column:0},A={line:0,column:0},r={line:1,column:0},i={generated:r};let o=1,a=0,l=!1;const u=t.node;t.node=function(p){if(p.loc&&p.loc.start&&ZU.has(p.type)){const g=p.loc.start.line,B=p.loc.start.column-1;(A.line!==g||A.column!==B)&&(A.line=g,A.column=B,n.line=o,n.column=a,l&&(l=!1,(n.line!==r.line||n.column!==r.column)&&e.addMapping(i)),l=!0,e.addMapping({source:p.loc.source,original:A,generated:n}))}u.call(this,p),l&&ZU.has(p.type)&&(r.line=o,r.column=a)};const f=t.emit;t.emit=function(p,g,B){for(let y=0;y<p.length;y++)p.charCodeAt(y)===10?(o++,a=0):a++;f(p,g,B)};const h=t.result;return t.result=function(){return l&&e.addMapping(i),{css:h(),map:e}},t}const $9=43,K9=45,wy=(t,e)=>{if(t===Lt&&(t=e),typeof t=="string"){const n=t.charCodeAt(0);return n>127?32768:n<<8}return t},eT=[[xe,xe],[xe,kt],[xe,wA],[xe,Vr],[xe,"-"],[xe,pt],[xe,Bn],[xe,Tt],[xe,jA],[xe,jt],[Un,xe],[Un,kt],[Un,wA],[Un,Vr],[Un,"-"],[Un,pt],[Un,Bn],[Un,Tt],[Un,jA],[An,xe],[An,kt],[An,wA],[An,Vr],[An,"-"],[An,pt],[An,Bn],[An,Tt],[An,jA],[Tt,xe],[Tt,kt],[Tt,wA],[Tt,Vr],[Tt,"-"],[Tt,pt],[Tt,Bn],[Tt,Tt],[Tt,jA],["#",xe],["#",kt],["#",wA],["#",Vr],["#","-"],["#",pt],["#",Bn],["#",Tt],["#",jA],["-",xe],["-",kt],["-",wA],["-",Vr],["-","-"],["-",pt],["-",Bn],["-",Tt],["-",jA],[pt,xe],[pt,kt],[pt,wA],[pt,Vr],[pt,pt],[pt,Bn],[pt,Tt],[pt,"%"],[pt,jA],["@",xe],["@",kt],["@",wA],["@",Vr],["@","-"],["@",jA],[".",pt],[".",Bn],[".",Tt],["+",pt],["+",Bn],["+",Tt],["/","*"]],W9=eT.concat([[xe,An],[Tt,An],[An,An],[Un,jt],[Un,Ki],[Un,CA],[Bn,Bn],[Bn,Tt],[Bn,kt],[Bn,"-"],[lt,xe],[lt,kt],[lt,Bn],[lt,Tt],[lt,An],[lt,"-"]]);function tT(t){const e=new Set(t.map(([n,A])=>wy(n)<<16|wy(A)));return function(n,A,r){const i=wy(A,r),o=r.charCodeAt(0);return(o===K9&&A!==xe&&A!==kt&&A!==jA||o===$9?e.has(n<<16|o<<8):e.has(n<<16|i))&&this.emit(" ",kn,!0),i}}const G9=tT(eT),nT=tT(W9),AT=Object.freeze(Object.defineProperty({__proto__:null,safe:nT,spec:G9},Symbol.toStringTag,{value:"Module"})),Y9=92;function z9(t,e){if(typeof e=="function"){let n=null;t.children.forEach(A=>{n!==null&&e.call(this,n),this.node(A),n=A});return}t.children.forEach(this.node,this)}function J9(t){OF(t,(e,n,A)=>{this.token(e,t.slice(n,A))})}function j9(t){const e=new Map;for(let[n,A]of Object.entries(t.node))typeof(A.generate||A)=="function"&&e.set(n,A.generate||A);return function(n,A){let r="",i=0,o={node(l){if(e.has(l.type))e.get(l.type).call(a,l);else throw new Error("Unknown node type: "+l.type)},tokenBefore:nT,token(l,u){i=this.tokenBefore(i,l,u),this.emit(u,l,!1),l===Lt&&u.charCodeAt(0)===Y9&&this.emit(`
190
+ .`+HB+dJ+zS)},hJ=function(t,e){var n=t.ownerDocument;if(n){var A=n.createElement("style");A.textContent=e,t.appendChild(A)}},JS=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.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}(),pJ=function(){function t(e,n){this.context=e,this._options=n,this._cache={}}return t.prototype.addImage=function(e){var n=Promise.resolve();return this.has(e)||(PB(e)||yJ(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),n},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return yA(this,void 0,void 0,function(){var n,A,r,i,o=this;return iA(this,function(a){switch(a.label){case 0:return n=JS.isSameOrigin(e),A=!RB(e)&&this._options.useCORS===!0&&Jn.SUPPORT_CORS_IMAGES&&!n,r=!RB(e)&&!n&&!PB(e)&&typeof this._options.proxy=="string"&&Jn.SUPPORT_CORS_XHR&&!A,!n&&this._options.allowTaint===!1&&!RB(e)&&!PB(e)&&!r&&!A?[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(l,u){var f=new Image;f.onload=function(){return l(f)},f.onerror=u,(wJ(i)||A)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return l(f)},500),o._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._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 n=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,o){var a=Jn.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(a==="text")i(l.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(p){return o(p)},!1),h.readAsDataURL(l.response)}else o("Failed to proxy resource "+r+" with status code "+l.status)},l.onerror=o;var u=A.indexOf("?")>-1?"&":"?";if(l.open("GET",""+A+u+"url="+encodeURIComponent(e)+"&responseType="+a),a!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=a),n._options.imageTimeout){var f=n._options.imageTimeout;l.timeout=f,l.ontimeout=function(){return o("Timed out ("+f+"ms) proxying "+r)}}l.send()})},t}(),mJ=/^data:image\/svg\+xml/i,gJ=/^data:image\/.*;base64,/i,BJ=/^data:image\/.*/i,yJ=function(t){return Jn.SUPPORT_SVG_DRAWING||!CJ(t)},RB=function(t){return BJ.test(t)},wJ=function(t){return gJ.test(t)},PB=function(t){return t.substr(0,4)==="blob"},CJ=function(t){return t.substr(-3).toLowerCase()==="svg"||mJ.test(t)},_e=function(){function t(e,n){this.type=0,this.x=e,this.y=n}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),Ga=function(t,e,n){return new _e(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Hf=function(){function t(e,n,A,r){this.type=1,this.start=e,this.startControl=n,this.endControl=A,this.end=r}return t.prototype.subdivide=function(e,n){var A=Ga(this.start,this.startControl,e),r=Ga(this.startControl,this.endControl,e),i=Ga(this.endControl,this.end,e),o=Ga(A,r,e),a=Ga(r,i,e),l=Ga(o,a,e);return n?new t(this.start,A,o,l):new t(l,a,i,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),gr=function(t){return t.type===1},bJ=function(){function t(e){var n=e.styles,A=e.bounds,r=_c(n.borderTopLeftRadius,A.width,A.height),i=r[0],o=r[1],a=_c(n.borderTopRightRadius,A.width,A.height),l=a[0],u=a[1],f=_c(n.borderBottomRightRadius,A.width,A.height),h=f[0],p=f[1],g=_c(n.borderBottomLeftRadius,A.width,A.height),B=g[0],y=g[1],C=[];C.push((i+l)/A.width),C.push((B+h)/A.width),C.push((o+y)/A.height),C.push((u+p)/A.height);var b=Math.max.apply(Math,C);b>1&&(i/=b,o/=b,l/=b,u/=b,h/=b,p/=b,B/=b,y/=b);var F=A.width-l,k=A.height-p,v=A.width-h,U=A.height-y,E=n.borderTopWidth,I=n.borderRightWidth,O=n.borderBottomWidth,x=n.borderLeftWidth,H=$t(n.paddingTop,e.bounds.width),ie=$t(n.paddingRight,e.bounds.width),re=$t(n.paddingBottom,e.bounds.width),ce=$t(n.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Zt(A.left+x/3,A.top+E/3,i-x/3,o-E/3,_t.TOP_LEFT):new _e(A.left+x/3,A.top+E/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Zt(A.left+F,A.top+E/3,l-I/3,u-E/3,_t.TOP_RIGHT):new _e(A.left+A.width-I/3,A.top+E/3),this.bottomRightBorderDoubleOuterBox=h>0||p>0?Zt(A.left+v,A.top+k,h-I/3,p-O/3,_t.BOTTOM_RIGHT):new _e(A.left+A.width-I/3,A.top+A.height-O/3),this.bottomLeftBorderDoubleOuterBox=B>0||y>0?Zt(A.left+x/3,A.top+U,B-x/3,y-O/3,_t.BOTTOM_LEFT):new _e(A.left+x/3,A.top+A.height-O/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Zt(A.left+x*2/3,A.top+E*2/3,i-x*2/3,o-E*2/3,_t.TOP_LEFT):new _e(A.left+x*2/3,A.top+E*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Zt(A.left+F,A.top+E*2/3,l-I*2/3,u-E*2/3,_t.TOP_RIGHT):new _e(A.left+A.width-I*2/3,A.top+E*2/3),this.bottomRightBorderDoubleInnerBox=h>0||p>0?Zt(A.left+v,A.top+k,h-I*2/3,p-O*2/3,_t.BOTTOM_RIGHT):new _e(A.left+A.width-I*2/3,A.top+A.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||y>0?Zt(A.left+x*2/3,A.top+U,B-x*2/3,y-O*2/3,_t.BOTTOM_LEFT):new _e(A.left+x*2/3,A.top+A.height-O*2/3),this.topLeftBorderStroke=i>0||o>0?Zt(A.left+x/2,A.top+E/2,i-x/2,o-E/2,_t.TOP_LEFT):new _e(A.left+x/2,A.top+E/2),this.topRightBorderStroke=i>0||o>0?Zt(A.left+F,A.top+E/2,l-I/2,u-E/2,_t.TOP_RIGHT):new _e(A.left+A.width-I/2,A.top+E/2),this.bottomRightBorderStroke=h>0||p>0?Zt(A.left+v,A.top+k,h-I/2,p-O/2,_t.BOTTOM_RIGHT):new _e(A.left+A.width-I/2,A.top+A.height-O/2),this.bottomLeftBorderStroke=B>0||y>0?Zt(A.left+x/2,A.top+U,B-x/2,y-O/2,_t.BOTTOM_LEFT):new _e(A.left+x/2,A.top+A.height-O/2),this.topLeftBorderBox=i>0||o>0?Zt(A.left,A.top,i,o,_t.TOP_LEFT):new _e(A.left,A.top),this.topRightBorderBox=l>0||u>0?Zt(A.left+F,A.top,l,u,_t.TOP_RIGHT):new _e(A.left+A.width,A.top),this.bottomRightBorderBox=h>0||p>0?Zt(A.left+v,A.top+k,h,p,_t.BOTTOM_RIGHT):new _e(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=B>0||y>0?Zt(A.left,A.top+U,B,y,_t.BOTTOM_LEFT):new _e(A.left,A.top+A.height),this.topLeftPaddingBox=i>0||o>0?Zt(A.left+x,A.top+E,Math.max(0,i-x),Math.max(0,o-E),_t.TOP_LEFT):new _e(A.left+x,A.top+E),this.topRightPaddingBox=l>0||u>0?Zt(A.left+Math.min(F,A.width-I),A.top+E,F>A.width+I?0:Math.max(0,l-I),Math.max(0,u-E),_t.TOP_RIGHT):new _e(A.left+A.width-I,A.top+E),this.bottomRightPaddingBox=h>0||p>0?Zt(A.left+Math.min(v,A.width-x),A.top+Math.min(k,A.height-O),Math.max(0,h-I),Math.max(0,p-O),_t.BOTTOM_RIGHT):new _e(A.left+A.width-I,A.top+A.height-O),this.bottomLeftPaddingBox=B>0||y>0?Zt(A.left+x,A.top+Math.min(U,A.height-O),Math.max(0,B-x),Math.max(0,y-O),_t.BOTTOM_LEFT):new _e(A.left+x,A.top+A.height-O),this.topLeftContentBox=i>0||o>0?Zt(A.left+x+ce,A.top+E+H,Math.max(0,i-(x+ce)),Math.max(0,o-(E+H)),_t.TOP_LEFT):new _e(A.left+x+ce,A.top+E+H),this.topRightContentBox=l>0||u>0?Zt(A.left+Math.min(F,A.width+x+ce),A.top+E+H,F>A.width+x+ce?0:l-x+ce,u-(E+H),_t.TOP_RIGHT):new _e(A.left+A.width-(I+ie),A.top+E+H),this.bottomRightContentBox=h>0||p>0?Zt(A.left+Math.min(v,A.width-(x+ce)),A.top+Math.min(k,A.height+E+H),Math.max(0,h-(I+ie)),p-(O+re),_t.BOTTOM_RIGHT):new _e(A.left+A.width-(I+ie),A.top+A.height-(O+re)),this.bottomLeftContentBox=B>0||y>0?Zt(A.left+x+ce,A.top+U,Math.max(0,B-(x+ce)),y-(O+re),_t.BOTTOM_LEFT):new _e(A.left+x+ce,A.top+A.height-(O+re))}return t}(),_t;(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"})(_t||(_t={}));var Zt=function(t,e,n,A,r){var i=4*((Math.sqrt(2)-1)/3),o=n*i,a=A*i,l=t+n,u=e+A;switch(r){case _t.TOP_LEFT:return new Hf(new _e(t,u),new _e(t,u-a),new _e(l-o,e),new _e(l,e));case _t.TOP_RIGHT:return new Hf(new _e(t,e),new _e(t+o,e),new _e(l,u-a),new _e(l,u));case _t.BOTTOM_RIGHT:return new Hf(new _e(l,e),new _e(l,e+a),new _e(t+o,u),new _e(t,u));case _t.BOTTOM_LEFT:default:return new Hf(new _e(l,u),new _e(l-o,u),new _e(t,e+a),new _e(t,e))}},Rf=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},vJ=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Pf=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},EJ=function(){function t(e,n,A){this.offsetX=e,this.offsetY=n,this.matrix=A,this.type=0,this.target=6}return t}(),Vf=function(){function t(e,n){this.path=e,this.target=n,this.type=1}return t}(),kJ=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),SJ=function(t){return t.type===0},jS=function(t){return t.type===1},FJ=function(t){return t.type===2},XS=function(t,e){return t.length===e.length?t.some(function(n,A){return n===e[A]}):!1},QJ=function(t,e,n,A,r){return t.map(function(i,o){switch(o){case 0:return i.add(e,n);case 1:return i.add(e+A,n);case 2:return i.add(e+A,n+r);case 3:return i.add(e,n+r)}return i})},qS=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),ZS=function(){function t(e,n){if(this.container=e,this.parent=n,this.effects=[],this.curves=new bJ(this.container),this.container.styles.opacity<1&&this.effects.push(new kJ(this.container.styles.opacity)),this.container.styles.transform!==null){var A=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 EJ(A,r,i))}if(this.container.styles.overflowX!==0){var o=Rf(this.curves),a=Pf(this.curves);XS(o,a)?this.effects.push(new Vf(o,6)):(this.effects.push(new Vf(o,2)),this.effects.push(new Vf(a,4)))}}return t.prototype.getEffects=function(e){for(var n=[2,3].indexOf(this.container.styles.position)===-1,A=this.parent,r=this.effects.slice(0);A;){var i=A.effects.filter(function(l){return!jS(l)});if(n||A.container.styles.position!==0||!A.parent){if(r.unshift.apply(r,i),n=[2,3].indexOf(A.container.styles.position)===-1,A.container.styles.overflowX!==0){var o=Rf(A.curves),a=Pf(A.curves);XS(o,a)||r.unshift(new Vf(a,6))}}else r.unshift.apply(r,i);A=A.parent}return r.filter(function(l){return Qn(l.target,e)})},t}(),VB=function(t,e,n,A){t.container.elements.forEach(function(r){var i=Qn(r.flags,4),o=Qn(r.flags,2),a=new ZS(r,t);Qn(r.styles.display,2048)&&A.push(a);var l=Qn(r.flags,8)?[]:A;if(i||o){var u=i||r.styles.isPositioned()?n:e,f=new qS(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var p=0;u.negativeZIndex.some(function(B,y){return h>B.element.container.styles.zIndex.order?(p=y,!1):p>0}),u.negativeZIndex.splice(p,0,f)}else if(h>0){var g=0;u.positiveZIndex.some(function(B,y){return h>=B.element.container.styles.zIndex.order?(g=y+1,!1):g>0}),u.positiveZIndex.splice(g,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);VB(a,f,i?f:n,l)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),VB(a,e,n,l);Qn(r.flags,8)&&eF(r,l)})},eF=function(t,e){for(var n=t instanceof IB?t.start:1,A=t instanceof IB?t.reversed:!1,r=0;r<e.length;r++){var i=e[r];i.container instanceof kS&&typeof i.container.value=="number"&&i.container.value!==0&&(n=i.container.value),i.listValue=Nc(n,i.container.styles.listStyleType,!0),n+=A?-1:1}},UJ=function(t){var e=new ZS(t,null),n=new qS(e),A=[];return VB(e,n,n,A),eF(e.container,A),n},tF=function(t,e){switch(e){case 0:return Br(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Br(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Br(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Br(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},TJ=function(t,e){switch(e){case 0:return Br(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Br(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Br(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Br(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},IJ=function(t,e){switch(e){case 0:return Br(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Br(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Br(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Br(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},_J=function(t,e){switch(e){case 0:return $f(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return $f(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return $f(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return $f(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},$f=function(t,e){var n=[];return gr(t)?n.push(t.subdivide(.5,!1)):n.push(t),gr(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},Br=function(t,e,n,A){var r=[];return gr(t)?r.push(t.subdivide(.5,!1)):r.push(t),gr(n)?r.push(n.subdivide(.5,!0)):r.push(n),gr(A)?r.push(A.subdivide(.5,!0).reverse()):r.push(A),gr(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},nF=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Kf=function(t){var e=t.styles,n=t.bounds,A=$t(e.paddingLeft,n.width),r=$t(e.paddingRight,n.width),i=$t(e.paddingTop,n.width),o=$t(e.paddingBottom,n.width);return n.add(A+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+A+r),-(e.borderTopWidth+e.borderBottomWidth+i+o))},xJ=function(t,e){return t===0?e.bounds:t===2?Kf(e):nF(e)},OJ=function(t,e){return t===0?e.bounds:t===2?Kf(e):nF(e)},$B=function(t,e,n){var A=xJ(za(t.styles.backgroundOrigin,e),t),r=OJ(za(t.styles.backgroundClip,e),t),i=DJ(za(t.styles.backgroundSize,e),n,A),o=i[0],a=i[1],l=_c(za(t.styles.backgroundPosition,e),A.width-o,A.height-a),u=LJ(za(t.styles.backgroundRepeat,e),l,i,A,r),f=Math.round(A.left+l[0]),h=Math.round(A.top+l[1]);return[u,f,h,o,a]},Ya=function(t){return Ht(t)&&t.value===Va.AUTO},Wf=function(t){return typeof t=="number"},DJ=function(t,e,n){var A=e[0],r=e[1],i=e[2],o=t[0],a=t[1];if(!o)return[0,0];if(En(o)&&a&&En(a))return[$t(o,n.width),$t(a,n.height)];var l=Wf(i);if(Ht(o)&&(o.value===Va.CONTAIN||o.value===Va.COVER)){if(Wf(i)){var u=n.width/n.height;return u<i!=(o.value===Va.COVER)?[n.width,n.width/i]:[n.height*i,n.height]}return[n.width,n.height]}var f=Wf(A),h=Wf(r),p=f||h;if(Ya(o)&&(!a||Ya(a))){if(f&&h)return[A,r];if(!l&&!p)return[n.width,n.height];if(p&&l){var g=f?A:r*i,B=h?r:A/i;return[g,B]}var y=f?A:n.width,C=h?r:n.height;return[y,C]}if(l){var b=0,F=0;return En(o)?b=$t(o,n.width):En(a)&&(F=$t(a,n.height)),Ya(o)?b=F*i:(!a||Ya(a))&&(F=b/i),[b,F]}var k=null,v=null;if(En(o)?k=$t(o,n.width):a&&En(a)&&(v=$t(a,n.height)),k!==null&&(!a||Ya(a))&&(v=f&&h?k/A*r:n.height),v!==null&&Ya(o)&&(k=f&&h?v/r*A:n.width),k!==null&&v!==null)return[k,v];throw new Error("Unable to calculate background-size for element")},za=function(t,e){var n=t[e];return typeof n>"u"?t[0]:n},LJ=function(t,e,n,A,r){var i=e[0],o=e[1],a=n[0],l=n[1];switch(t){case 2:return[new _e(Math.round(A.left),Math.round(A.top+o)),new _e(Math.round(A.left+A.width),Math.round(A.top+o)),new _e(Math.round(A.left+A.width),Math.round(l+A.top+o)),new _e(Math.round(A.left),Math.round(l+A.top+o))];case 3:return[new _e(Math.round(A.left+i),Math.round(A.top)),new _e(Math.round(A.left+i+a),Math.round(A.top)),new _e(Math.round(A.left+i+a),Math.round(A.height+A.top)),new _e(Math.round(A.left+i),Math.round(A.height+A.top))];case 1:return[new _e(Math.round(A.left+i),Math.round(A.top+o)),new _e(Math.round(A.left+i+a),Math.round(A.top+o)),new _e(Math.round(A.left+i+a),Math.round(A.top+o+l)),new _e(Math.round(A.left+i),Math.round(A.top+o+l))];default:return[new _e(Math.round(r.left),Math.round(r.top)),new _e(Math.round(r.left+r.width),Math.round(r.top)),new _e(Math.round(r.left+r.width),Math.round(r.height+r.top)),new _e(Math.round(r.left),Math.round(r.height+r.top))]}},MJ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",AF="Hidden Text",NJ=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,n){var A=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;A.style.visibility="hidden",A.style.fontFamily=e,A.style.fontSize=n,A.style.margin="0",A.style.padding="0",A.style.whiteSpace="nowrap",o.appendChild(A),r.src=MJ,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=n,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(AF)),A.appendChild(i),A.appendChild(r);var a=r.offsetTop-i.offsetTop+2;A.removeChild(i),A.appendChild(this._document.createTextNode(AF)),A.style.lineHeight="normal",r.style.verticalAlign="super";var l=r.offsetTop-A.offsetTop+2;return o.removeChild(A),{baseline:a,middle:l}},t.prototype.getMetrics=function(e,n){var A=e+" "+n;return typeof this._data[A]>"u"&&(this._data[A]=this.parseMetrics(e,n)),this._data[A]},t}(),rF=function(){function t(e,n){this.context=e,this.options=n}return t}(),HJ=1e4,RJ=function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r._activeEffects=[],r.canvas=A.canvas?A.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),A.canvas||(r.canvas.width=Math.floor(A.width*A.scale),r.canvas.height=Math.floor(A.height*A.scale),r.canvas.style.width=A.width+"px",r.canvas.style.height=A.height+"px"),r.fontMetrics=new NJ(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-A.x,-A.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+A.width+"x"+A.height+") with scale "+A.scale),r}return e.prototype.applyEffects=function(n){for(var A=this;this._activeEffects.length;)this.popEffect();n.forEach(function(r){return A.applyEffect(r)})},e.prototype.applyEffect=function(n){this.ctx.save(),FJ(n)&&(this.ctx.globalAlpha=n.opacity),SJ(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),jS(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(n){return yA(this,void 0,void 0,function(){var A;return iA(this,function(r){switch(r.label){case 0:return A=n.element.container.styles,A.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(n){return yA(this,void 0,void 0,function(){return iA(this,function(A){switch(A.label){case 0:if(Qn(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(n)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(n,A,r){var i=this;if(A===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+r);else{var o=TB(n.text);o.reduce(function(a,l){return i.ctx.fillText(l,a,n.bounds.top+r),a+i.ctx.measureText(l).width},n.bounds.left)}},e.prototype.createFontStyle=function(n){var A=n.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),r=WJ(n.fontFamily).join(", "),i=Ic(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,A,n.fontWeight,i,r].join(" "),r,i]},e.prototype.renderTextNode=function(n,A){return yA(this,void 0,void 0,function(){var r,i,o,a,l,u,f,h,p=this;return iA(this,function(g){return r=this.createFontStyle(A),i=r[0],o=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=A.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,a),u=l.baseline,f=l.middle,h=A.paintOrder,n.textBounds.forEach(function(B){h.forEach(function(y){switch(y){case 0:p.ctx.fillStyle=Pn(A.color),p.renderTextWithLetterSpacing(B,A.letterSpacing,u);var C=A.textShadow;C.length&&B.text.trim().length&&(C.slice(0).reverse().forEach(function(b){p.ctx.shadowColor=Pn(b.color),p.ctx.shadowOffsetX=b.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=b.offsetY.number*p.options.scale,p.ctx.shadowBlur=b.blur.number,p.renderTextWithLetterSpacing(B,A.letterSpacing,u)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),A.textDecorationLine.length&&(p.ctx.fillStyle=Pn(A.textDecorationColor||A.color),A.textDecorationLine.forEach(function(b){switch(b){case 1:p.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+u),B.bounds.width,1);break;case 2:p.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:p.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+f),B.bounds.width,1);break}}));break;case 1:A.webkitTextStrokeWidth&&B.text.trim().length&&(p.ctx.strokeStyle=Pn(A.webkitTextStrokeColor),p.ctx.lineWidth=A.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+u)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(n,A,r){if(r&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var i=Kf(n),o=Pf(A);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,n.intrinsicWidth,n.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(n){return yA(this,void 0,void 0,function(){var A,r,i,o,a,l,F,F,u,f,h,p,v,g,B,U,y,C,b,F,k,v,U;return iA(this,function(E){switch(E.label){case 0:this.applyEffects(n.getEffects(4)),A=n.container,r=n.curves,i=A.styles,o=0,a=A.textNodes,E.label=1;case 1:return o<a.length?(l=a[o],[4,this.renderTextNode(l,i)]):[3,4];case 2:E.sent(),E.label=3;case 3:return o++,[3,1];case 4:if(!(A instanceof bS))return[3,8];E.label=5;case 5:return E.trys.push([5,7,,8]),[4,this.context.cache.match(A.src)];case 6:return F=E.sent(),this.renderReplacedElement(A,r,F),[3,8];case 7:return E.sent(),this.context.logger.error("Error loading image "+A.src),[3,8];case 8:if(A instanceof vS&&this.renderReplacedElement(A,r,A.canvas),!(A instanceof ES))return[3,12];E.label=9;case 9:return E.trys.push([9,11,,12]),[4,this.context.cache.match(A.svg)];case 10:return F=E.sent(),this.renderReplacedElement(A,r,F),[3,12];case 11:return E.sent(),this.context.logger.error("Error loading svg "+A.svg.substring(0,255)),[3,12];case 12:return A instanceof US&&A.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:A.backgroundColor,x:0,y:0,width:A.width,height:A.height}),[4,u.render(A.tree)]):[3,14];case 13:f=E.sent(),A.width&&A.height&&this.ctx.drawImage(f,0,0,A.width,A.height,A.bounds.left,A.bounds.top,A.bounds.width,A.bounds.height),E.label=14;case 14:if(A instanceof _B&&(h=Math.min(A.bounds.width,A.bounds.height),A.type===xf?A.checked&&(this.ctx.save(),this.path([new _e(A.bounds.left+h*.39363,A.bounds.top+h*.79),new _e(A.bounds.left+h*.16,A.bounds.top+h*.5549),new _e(A.bounds.left+h*.27347,A.bounds.top+h*.44071),new _e(A.bounds.left+h*.39694,A.bounds.top+h*.5649),new _e(A.bounds.left+h*.72983,A.bounds.top+h*.23),new _e(A.bounds.left+h*.84,A.bounds.top+h*.34085),new _e(A.bounds.left+h*.39363,A.bounds.top+h*.79)]),this.ctx.fillStyle=Pn(SS),this.ctx.fill(),this.ctx.restore()):A.type===Of&&A.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(A.bounds.left+h/2,A.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=Pn(SS),this.ctx.fill(),this.ctx.restore())),PJ(A)&&A.value.length){switch(p=this.createFontStyle(i),v=p[0],g=p[1],B=this.fontMetrics.getMetrics(v,g).baseline,this.ctx.font=v,this.ctx.fillStyle=Pn(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$J(A.styles.textAlign),U=Kf(A),y=0,A.styles.textAlign){case 1:y+=U.width/2;break;case 2:y+=U.width;break}C=U.add(y,0,0,-U.height/2+1),this.ctx.save(),this.path([new _e(U.left,U.top),new _e(U.left+U.width,U.top),new _e(U.left+U.width,U.top+U.height),new _e(U.left,U.top+U.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Lc(A.value,C),i.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Qn(A.styles.display,2048))return[3,20];if(A.styles.listStyleImage===null)return[3,19];if(b=A.styles.listStyleImage,b.type!==0)return[3,18];F=void 0,k=b.url,E.label=15;case 15:return E.trys.push([15,17,,18]),[4,this.context.cache.match(k)];case 16:return F=E.sent(),this.ctx.drawImage(F,A.bounds.left-(F.width+10),A.bounds.top),[3,18];case 17:return E.sent(),this.context.logger.error("Error loading list-style-image "+k),[3,18];case 18:return[3,20];case 19:n.listValue&&A.styles.listStyleType!==-1&&(v=this.createFontStyle(i)[0],this.ctx.font=v,this.ctx.fillStyle=Pn(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",U=new Ri(A.bounds.left,A.bounds.top+$t(A.styles.paddingTop,A.bounds.width),A.bounds.width,AS(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Lc(n.listValue,U),i.letterSpacing,AS(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),E.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(n){return yA(this,void 0,void 0,function(){var A,r,b,i,o,b,a,l,b,u,f,b,h,p,b,g,B,b,y,C,b;return iA(this,function(F){switch(F.label){case 0:if(Qn(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:F.sent(),A=0,r=n.negativeZIndex,F.label=2;case 2:return A<r.length?(b=r[A],[4,this.renderStack(b)]):[3,5];case 3:F.sent(),F.label=4;case 4:return A++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:F.sent(),i=0,o=n.nonInlineLevel,F.label=7;case 7:return i<o.length?(b=o[i],[4,this.renderNode(b)]):[3,10];case 8:F.sent(),F.label=9;case 9:return i++,[3,7];case 10:a=0,l=n.nonPositionedFloats,F.label=11;case 11:return a<l.length?(b=l[a],[4,this.renderStack(b)]):[3,14];case 12:F.sent(),F.label=13;case 13:return a++,[3,11];case 14:u=0,f=n.nonPositionedInlineLevel,F.label=15;case 15:return u<f.length?(b=f[u],[4,this.renderStack(b)]):[3,18];case 16:F.sent(),F.label=17;case 17:return u++,[3,15];case 18:h=0,p=n.inlineLevel,F.label=19;case 19:return h<p.length?(b=p[h],[4,this.renderNode(b)]):[3,22];case 20:F.sent(),F.label=21;case 21:return h++,[3,19];case 22:g=0,B=n.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return g<B.length?(b=B[g],[4,this.renderStack(b)]):[3,26];case 24:F.sent(),F.label=25;case 25:return g++,[3,23];case 26:y=0,C=n.positiveZIndex,F.label=27;case 27:return y<C.length?(b=C[y],[4,this.renderStack(b)]):[3,30];case 28:F.sent(),F.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(n){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(n.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},e.prototype.formatPath=function(n){var A=this;n.forEach(function(r,i){var o=gr(r)?r.start:r;i===0?A.ctx.moveTo(o.x,o.y):A.ctx.lineTo(o.x,o.y),gr(r)&&A.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},e.prototype.renderRepeat=function(n,A,r,i){this.path(n),this.ctx.fillStyle=A,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},e.prototype.resizeImage=function(n,A,r){var i;if(n.width===A&&n.height===r)return n;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=o.createElement("canvas");a.width=Math.max(1,A),a.height=Math.max(1,r);var l=a.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,A,r),a},e.prototype.renderBackgroundImage=function(n){return yA(this,void 0,void 0,function(){var A,r,i,o,a,l;return iA(this,function(u){switch(u.label){case 0:A=n.styles.backgroundImage.length-1,r=function(f){var h,p,g,H,$,te,ce,R,O,B,H,$,te,ce,R,y,C,b,F,k,v,U,E,I,O,x,H,ie,re,ce,R,W,$,te,ee,Y,he,Z,Ce,V,J,Ae;return iA(this,function(oe){switch(oe.label){case 0:if(f.type!==0)return[3,5];h=void 0,p=f.url,oe.label=1;case 1:return oe.trys.push([1,3,,4]),[4,i.context.cache.match(p)];case 2:return h=oe.sent(),[3,4];case 3:return oe.sent(),i.context.logger.error("Error loading background-image "+p),[3,4];case 4:return h&&(g=$B(n,A,[h.width,h.height,h.width/h.height]),H=g[0],$=g[1],te=g[2],ce=g[3],R=g[4],O=i.ctx.createPattern(i.resizeImage(h,ce,R),"repeat"),i.renderRepeat(H,O,$,te)),[3,6];case 5:S8(f)?(B=$B(n,A,[null,null,null]),H=B[0],$=B[1],te=B[2],ce=B[3],R=B[4],y=C8(f.angle,ce,R),C=y[0],b=y[1],F=y[2],k=y[3],v=y[4],U=document.createElement("canvas"),U.width=ce,U.height=R,E=U.getContext("2d"),I=E.createLinearGradient(b,k,F,v),Gk(f.stops,C).forEach(function(Q){return I.addColorStop(Q.stop,Pn(Q.color))}),E.fillStyle=I,E.fillRect(0,0,ce,R),ce>0&&R>0&&(O=i.ctx.createPattern(U,"repeat"),i.renderRepeat(H,O,$,te))):F8(f)&&(x=$B(n,A,[null,null,null]),H=x[0],ie=x[1],re=x[2],ce=x[3],R=x[4],W=f.position.length===0?[pB]:f.position,$=$t(W[0],ce),te=$t(W[W.length-1],R),ee=b8(f,$,te,ce,R),Y=ee[0],he=ee[1],Y>0&&he>0&&(Z=i.ctx.createRadialGradient(ie+$,re+te,0,ie+$,re+te,Y),Gk(f.stops,Y*2).forEach(function(Q){return Z.addColorStop(Q.stop,Pn(Q.color))}),i.path(H),i.ctx.fillStyle=Z,Y!==he?(Ce=n.bounds.left+.5*n.bounds.width,V=n.bounds.top+.5*n.bounds.height,J=he/Y,Ae=1/J,i.ctx.save(),i.ctx.translate(Ce,V),i.ctx.transform(1,0,0,J,0,0),i.ctx.translate(-Ce,-V),i.ctx.fillRect(ie,Ae*(re-V)+V,ce,R*Ae),i.ctx.restore()):i.ctx.fill())),oe.label=6;case 6:return A--,[2]}})},i=this,o=0,a=n.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return o<a.length?(l=a[o],[5,r(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(n,A,r){return yA(this,void 0,void 0,function(){return iA(this,function(i){return this.path(tF(r,A)),this.ctx.fillStyle=Pn(n),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(n,A,r,i){return yA(this,void 0,void 0,function(){var o,a;return iA(this,function(l){switch(l.label){case 0:return A<3?[4,this.renderSolidBorder(n,r,i)]:[3,2];case 1:return l.sent(),[2];case 2:return o=TJ(i,r),this.path(o),this.ctx.fillStyle=Pn(n),this.ctx.fill(),a=IJ(i,r),this.path(a),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(n){return yA(this,void 0,void 0,function(){var A,r,i,o,a,l,u,f,h=this;return iA(this,function(p){switch(p.label){case 0:return this.applyEffects(n.getEffects(2)),A=n.container.styles,r=!No(A.backgroundColor)||A.backgroundImage.length,i=[{style:A.borderTopStyle,color:A.borderTopColor,width:A.borderTopWidth},{style:A.borderRightStyle,color:A.borderRightColor,width:A.borderRightWidth},{style:A.borderBottomStyle,color:A.borderBottomColor,width:A.borderBottomWidth},{style:A.borderLeftStyle,color:A.borderLeftColor,width:A.borderLeftWidth}],o=VJ(za(A.backgroundClip,0),n.curves),r||A.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),No(A.backgroundColor)||(this.ctx.fillStyle=Pn(A.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),A.boxShadow.slice(0).reverse().forEach(function(g){h.ctx.save();var B=Rf(n.curves),y=g.inset?0:HJ,C=QJ(B,-y+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(h.path(B),h.ctx.clip(),h.mask(C)):(h.mask(B),h.ctx.clip(),h.path(C)),h.ctx.shadowOffsetX=g.offsetX.number+y,h.ctx.shadowOffsetY=g.offsetY.number,h.ctx.shadowColor=Pn(g.color),h.ctx.shadowBlur=g.blur.number,h.ctx.fillStyle=g.inset?Pn(g.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),p.label=2;case 2:a=0,l=0,u=i,p.label=3;case 3:return l<u.length?(f=u[l],f.style!==0&&!No(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,n.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,n.curves,3)];case 6:return p.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,n.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,n.curves)];case 10:p.sent(),p.label=11;case 11:a++,p.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(n,A,r,i,o){return yA(this,void 0,void 0,function(){var a,l,u,f,h,p,g,B,y,C,b,F,k,v,U,E,U,E;return iA(this,function(I){return this.ctx.save(),a=_J(i,r),l=tF(i,r),o===2&&(this.path(l),this.ctx.clip()),gr(l[0])?(u=l[0].start.x,f=l[0].start.y):(u=l[0].x,f=l[0].y),gr(l[1])?(h=l[1].end.x,p=l[1].end.y):(h=l[1].x,p=l[1].y),r===0||r===2?g=Math.abs(u-h):g=Math.abs(f-p),this.ctx.beginPath(),o===3?this.formatPath(a):this.formatPath(l.slice(0,2)),B=A<3?A*3:A*2,y=A<3?A*2:A,o===3&&(B=A,y=A),C=!0,g<=B*2?C=!1:g<=B*2+y?(b=g/(2*B+y),B*=b,y*=b):(F=Math.floor((g+y)/(B+y)),k=(g-F*B)/(F-1),v=(g-(F+1)*B)/F,y=v<=0||Math.abs(y-k)<Math.abs(y-v)?k:v),C&&(o===3?this.ctx.setLineDash([0,B+y]):this.ctx.setLineDash([B,y])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=A):this.ctx.lineWidth=A*2+1.1,this.ctx.strokeStyle=Pn(n),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(gr(l[0])&&(U=l[3],E=l[0],this.ctx.beginPath(),this.formatPath([new _e(U.end.x,U.end.y),new _e(E.start.x,E.start.y)]),this.ctx.stroke()),gr(l[1])&&(U=l[1],E=l[2],this.ctx.beginPath(),this.formatPath([new _e(U.end.x,U.end.y),new _e(E.start.x,E.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(n){return yA(this,void 0,void 0,function(){var A;return iA(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Pn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),A=UJ(n),[4,this.renderStack(A)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(rF),PJ=function(t){return t instanceof QS||t instanceof FS?!0:t instanceof _B&&t.type!==Of&&t.type!==xf},VJ=function(t,e){switch(t){case 0:return Rf(e);case 2:return vJ(e);case 1:default:return Pf(e)}},$J=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},KJ=["-apple-system","system-ui"],WJ=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return KJ.indexOf(e)===-1}):t},GJ=function(t){Nr(e,t);function e(n,A){var r=t.call(this,n,A)||this;return r.canvas=A.canvas?A.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=A,r.canvas.width=Math.floor(A.width*A.scale),r.canvas.height=Math.floor(A.height*A.scale),r.canvas.style.width=A.width+"px",r.canvas.style.height=A.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-A.x,-A.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale),r}return e.prototype.render=function(n){return yA(this,void 0,void 0,function(){var A,r;return iA(this,function(i){switch(i.label){case 0:return A=UB(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,YJ(A)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Pn(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}(rF),YJ=function(t){return new Promise(function(e,n){var A=new Image;A.onload=function(){e(A)},A.onerror=n,A.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},zJ=function(){function t(e){var n=e.id,A=e.enabled;this.id=n,this.enabled=A,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,qd([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=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,qd([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,qd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,qd([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),JJ=function(){function t(e,n){var A;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new zJ({id:this.instanceName,enabled:e.logging}),this.cache=(A=e.cache)!==null&&A!==void 0?A:new pJ(this,e)}return t.instanceCount=1,t}(),jJ=function(t,e){return e===void 0&&(e={}),XJ(t,e)};typeof window<"u"&&JS.setContext(window);var XJ=function(t,e){return yA(void 0,void 0,void 0,function(){var n,A,r,i,o,a,l,u,f,h,p,g,B,y,C,b,F,k,v,U,I,E,I,O,x,H,ie,re,ce,R,W,$,te,ee,Y,he,Z,Ce,V,J;return iA(this,function(Ae){switch(Ae.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(A=n.defaultView,!A)throw new Error("Document is not attached to a Window");return r={allowTaint:(O=e.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(x=e.imageTimeout)!==null&&x!==void 0?x:15e3,proxy:e.proxy,useCORS:(H=e.useCORS)!==null&&H!==void 0?H:!1},i=zg({logging:(ie=e.logging)!==null&&ie!==void 0?ie:!0,cache:e.cache},r),o={windowWidth:(re=e.windowWidth)!==null&&re!==void 0?re:A.innerWidth,windowHeight:(ce=e.windowHeight)!==null&&ce!==void 0?ce:A.innerHeight,scrollX:(R=e.scrollX)!==null&&R!==void 0?R:A.pageXOffset,scrollY:(W=e.scrollY)!==null&&W!==void 0?W:A.pageYOffset},a=new Ri(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new JJ(i,a),u=($=e.foreignObjectRendering)!==null&&$!==void 0?$:!1,f={allowTaint:(te=e.allowTaint)!==null&&te!==void 0?te:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new YS(l,t,f),p=h.clonedReferenceElement,p?[4,h.toIFrame(n,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=Ae.sent(),B=OB(p)||q6(p)?Q5(p.ownerDocument):Zd(l,p),y=B.width,C=B.height,b=B.left,F=B.top,k=qJ(l,p,e.backgroundColor),v={canvas:e.canvas,backgroundColor:k,scale:(Y=(ee=e.scale)!==null&&ee!==void 0?ee:A.devicePixelRatio)!==null&&Y!==void 0?Y:1,x:((he=e.x)!==null&&he!==void 0?he:0)+b,y:((Z=e.y)!==null&&Z!==void 0?Z:0)+F,width:(Ce=e.width)!==null&&Ce!==void 0?Ce:Math.ceil(y),height:(V=e.height)!==null&&V!==void 0?V:Math.ceil(C)},u?(l.logger.debug("Document cloned, using foreign object rendering"),I=new GJ(l,v),[4,I.render(p)]):[3,3];case 2:return U=Ae.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+b+","+F+" with size "+y+"x"+C+" using computed rendering"),l.logger.debug("Starting DOM parsing"),E=IS(l,p),k===E.styles.backgroundColor&&(E.styles.backgroundColor=Vi.TRANSPARENT),l.logger.debug("Starting renderer for element at "+v.x+","+v.y+" with size "+v.width+"x"+v.height),I=new RJ(l,v),[4,I.render(E)];case 4:U=Ae.sent(),Ae.label=5;case 5:return(!((J=e.removeContainer)!==null&&J!==void 0)||J)&&(YS.destroy(g)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,U]}})})},qJ=function(t,e,n){var A=e.ownerDocument,r=A.documentElement?xc(t,getComputedStyle(A.documentElement).backgroundColor):Vi.TRANSPARENT,i=A.body?xc(t,getComputedStyle(A.body).backgroundColor):Vi.TRANSPARENT,o=typeof n=="string"?xc(t,n):n===null?Vi.TRANSPARENT:4294967295;return e===A.documentElement?No(r)?No(i)?o:i:r:o};const ZJ=s.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:()=>({})},pending:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue","update:pending"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),i=s.ref(""),o=s.ref();async function a(){if(r.value){A("update:pending",!0);const u=r.value,h=(await jJ(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...n.options})).toDataURL();if(A("update:modelValue",h),A("update:pending",!1),n.debug){const p=new Image;p.src=h,document.body.appendChild(p)}return h}return""}const l=YE.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return s.onMounted(()=>{const u=r.value;n.renderUpdates&&(o.value=new MutationObserver(async f=>{l()}),o.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{l()},500)}),(u,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:s.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[s.renderSlot(u.$slots,"default")],6))}}),ej=["id","popover"],KB=s.defineComponent({__name:"popover-dialog",props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"auto"},id:{type:String,default:()=>`popover-dialog-${Math.random().toString(36).substr(2,9)}`},title:{type:String,default:""},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},classes:{type:String,default:""},hover:{type:Boolean,default:!1},hoverDelay:{type:Number,default:400},closeTimeout:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,A=e,r=s.ref(),i=s.ref(),o=s.ref(!1),a=s.computed(()=>"ontouchstart"in window||navigator.maxTouchPoints>0);function l(){var p;clearTimeout(i.value),n.hover&&((p=r.value)==null||p.showPopover())}function u(){o.value=!0,clearTimeout(i.value),l()}function f(){o.value=!1,(n.hover||n.closeTimeout)&&(i.value=setTimeout(()=>{var p;(p=r.value)==null||p.hidePopover()},n.closeTimeout||n.hoverDelay))}s.watch(()=>n.modelValue,(p,g)=>{var B,y,C,b;p&&!g?(B=r.value)!=null&&B.matches(":popover-open")||(y=r.value)==null||y.showPopover():!p&&g&&(C=r.value)!=null&&C.matches(":popover-open")&&((b=r.value)==null||b.hidePopover())});function h(p){p.newState==="open"?(n.closeTimeout&&!o.value&&(clearTimeout(i.value),i.value=setTimeout(()=>{var g;o.value||(g=r.value)==null||g.hidePopover()},n.closeTimeout)),n.modelValue||A("update:modelValue",!0)):p.newState==="closed"&&(o.value=!1,n.modelValue&&A("update:modelValue",!1))}return s.onMounted(()=>{var p,g,B,y;if((p=r.value)==null||p.addEventListener("toggle",h),n.modelValue&&((g=r.value)==null||g.showPopover()),!a.value){(B=r.value)==null||B.addEventListener("mouseenter",u),(y=r.value)==null||y.addEventListener("mouseleave",f);const C=document.querySelector(`[popovertarget="${n.id}"]`);C&&(C.addEventListener("mouseenter",u),C.addEventListener("mouseleave",f))}}),s.onBeforeUnmount(()=>{var p,g,B;if(clearTimeout(i.value),(p=r.value)==null||p.removeEventListener("toggle",h),!a.value){(g=r.value)==null||g.removeEventListener("mouseenter",u),(B=r.value)==null||B.removeEventListener("mouseleave",f);const y=document.querySelector(`[popovertarget="${n.id}"]`);y&&(y.removeEventListener("mouseenter",u),y.removeEventListener("mouseleave",f))}}),(p,g)=>(s.openBlock(),s.createElementBlock("span",{class:"popover-dialog",id:t.id,popover:t.type,ref_key:"popover",ref:r},[s.renderSlot(p.$slots,"default",{},()=>[s.createTextVNode(" Popover content goes here. ")])],8,ej))}}),Yce="";var tj=Object.defineProperty,nj=Object.defineProperties,Aj=Object.getOwnPropertyDescriptors,iF=Object.getOwnPropertySymbols,rj=Object.prototype.hasOwnProperty,ij=Object.prototype.propertyIsEnumerable,oF=(t,e,n)=>e in t?tj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vn=(t,e)=>{for(var n in e||(e={}))rj.call(e,n)&&oF(t,n,e[n]);if(iF)for(var n of iF(e))ij.call(e,n)&&oF(t,n,e[n]);return t},OA=(t,e)=>nj(t,Aj(e)),Jt=(t,e,n)=>new Promise((A,r)=>{var i=l=>{try{a(n.next(l))}catch(u){r(u)}},o=l=>{try{a(n.throw(l))}catch(u){r(u)}},a=l=>l.done?A(l.value):Promise.resolve(l.value).then(i,o);a((n=n.apply(t,e)).next())});const WB=Math.min,Ja=Math.max,Gf=Math.round,Yf=Math.floor,ui=t=>({x:t,y:t});function oj(t,e){return typeof t=="function"?t(e):t}function sj(t){return Vn({top:0,right:0,bottom:0,left:0},t)}function aj(t){return typeof t!="number"?sj(t):{top:t,right:t,bottom:t,left:t}}function zf(t){const{x:e,y:n,width:A,height:r}=t;return{width:A,height:r,top:n,left:e,right:e+A,bottom:n+r,x:e,y:n}}function lj(t,e){return Jt(this,null,function*(){var n;e===void 0&&(e={});const{x:A,y:r,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=oj(e,t),B=aj(g),y=a[p?h==="floating"?"reference":"floating":h],C=zf(yield i.getClippingRect({element:(n=yield i.isElement==null?void 0:i.isElement(y))==null||n?y:y.contextElement||(yield i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),b=h==="floating"?{x:A,y:r,width:o.floating.width,height:o.floating.height}:o.reference,F=yield i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating),k=(yield i.isElement==null?void 0:i.isElement(F))?(yield i.getScale==null?void 0:i.getScale(F))||{x:1,y:1}:{x:1,y:1},v=zf(i.convertOffsetParentRelativeRectToViewportRelativeRect?yield i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:F,strategy:l}):b);return{top:(C.top-v.top+B.top)/k.y,bottom:(v.bottom-C.bottom+B.bottom)/k.y,left:(C.left-v.left+B.left)/k.x,right:(v.right-C.right+B.right)/k.x}})}function Jf(){return typeof window<"u"}function ja(t){return sF(t)?(t.nodeName||"").toLowerCase():"#document"}function zA(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function di(t){var e;return(e=(sF(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sF(t){return Jf()?t instanceof Node||t instanceof zA(t).Node:!1}function Rr(t){return Jf()?t instanceof Element||t instanceof zA(t).Element:!1}function fi(t){return Jf()?t instanceof HTMLElement||t instanceof zA(t).HTMLElement:!1}function aF(t){return!Jf()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof zA(t).ShadowRoot}function Rc(t){const{overflow:e,overflowX:n,overflowY:A,display:r}=Pr(t);return/auto|scroll|overlay|hidden|clip/.test(e+A+n)&&!["inline","contents"].includes(r)}function cj(t){return["table","td","th"].includes(ja(t))}function jf(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function GB(t){const e=YB(),n=Rr(t)?Pr(t):t;return["transform","translate","scale","rotate","perspective"].some(A=>n[A]?n[A]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(A=>(n.willChange||"").includes(A))||["paint","layout","strict","content"].some(A=>(n.contain||"").includes(A))}function uj(t){let e=Vo(t);for(;fi(e)&&!Xa(e);){if(GB(e))return e;if(jf(e))return null;e=Vo(e)}return null}function YB(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xa(t){return["html","body","#document"].includes(ja(t))}function Pr(t){return zA(t).getComputedStyle(t)}function Xf(t){return Rr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Vo(t){if(ja(t)==="html")return t;const e=t.assignedSlot||t.parentNode||aF(t)&&t.host||di(t);return aF(e)?e.host:e}function lF(t){const e=Vo(t);return Xa(e)?t.ownerDocument?t.ownerDocument.body:t.body:fi(e)&&Rc(e)?e:lF(e)}function Pc(t,e,n){var A;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=lF(t),i=r===((A=t.ownerDocument)==null?void 0:A.body),o=zA(r);if(i){const a=zB(o);return e.concat(o,o.visualViewport||[],Rc(r)?r:[],a&&n?Pc(a):[])}return e.concat(r,Pc(r,[],n))}function zB(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function cF(t){const e=Pr(t);let n=parseFloat(e.width)||0,A=parseFloat(e.height)||0;const r=fi(t),i=r?t.offsetWidth:n,o=r?t.offsetHeight:A,a=Gf(n)!==i||Gf(A)!==o;return a&&(n=i,A=o),{width:n,height:A,$:a}}function JB(t){return Rr(t)?t:t.contextElement}function qa(t){const e=JB(t);if(!fi(e))return ui(1);const n=e.getBoundingClientRect(),{width:A,height:r,$:i}=cF(e);let o=(i?Gf(n.width):n.width)/A,a=(i?Gf(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const dj=ui(0);function uF(t){const e=zA(t);return!YB()||!e.visualViewport?dj:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fj(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==zA(t)?!1:e}function Ms(t,e,n,A){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=JB(t);let o=ui(1);e&&(A?Rr(A)&&(o=qa(A)):o=qa(t));const a=fj(i,n,A)?uF(i):ui(0);let l=(r.left+a.x)/o.x,u=(r.top+a.y)/o.y,f=r.width/o.x,h=r.height/o.y;if(i){const p=zA(i),g=A&&Rr(A)?zA(A):A;let B=p,y=zB(B);for(;y&&A&&g!==B;){const C=qa(y),b=y.getBoundingClientRect(),F=Pr(y),k=b.left+(y.clientLeft+parseFloat(F.paddingLeft))*C.x,v=b.top+(y.clientTop+parseFloat(F.paddingTop))*C.y;l*=C.x,u*=C.y,f*=C.x,h*=C.y,l+=k,u+=v,B=zA(y),y=zB(B)}}return zf({width:f,height:h,x:l,y:u})}function jB(t,e){const n=Xf(t).scrollLeft;return e?e.left+n:Ms(di(t)).left+n}function dF(t,e,n){n===void 0&&(n=!1);const A=t.getBoundingClientRect(),r=A.left+e.scrollLeft-(n?0:jB(t,A)),i=A.top+e.scrollTop;return{x:r,y:i}}function hj(t){let{elements:e,rect:n,offsetParent:A,strategy:r}=t;const i=r==="fixed",o=di(A),a=e?jf(e.floating):!1;if(A===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=ui(1);const f=ui(0),h=fi(A);if((h||!h&&!i)&&((ja(A)!=="body"||Rc(o))&&(l=Xf(A)),fi(A))){const g=Ms(A);u=qa(A),f.x=g.x+A.clientLeft,f.y=g.y+A.clientTop}const p=o&&!h&&!i?dF(o,l,!0):ui(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function pj(t){return Array.from(t.getClientRects())}function mj(t){const e=di(t),n=Xf(t),A=t.ownerDocument.body,r=Ja(e.scrollWidth,e.clientWidth,A.scrollWidth,A.clientWidth),i=Ja(e.scrollHeight,e.clientHeight,A.scrollHeight,A.clientHeight);let o=-n.scrollLeft+jB(t);const a=-n.scrollTop;return Pr(A).direction==="rtl"&&(o+=Ja(e.clientWidth,A.clientWidth)-r),{width:r,height:i,x:o,y:a}}function gj(t,e){const n=zA(t),A=di(t),r=n.visualViewport;let i=A.clientWidth,o=A.clientHeight,a=0,l=0;if(r){i=r.width,o=r.height;const u=YB();(!u||u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:o,x:a,y:l}}function Bj(t,e){const n=Ms(t,!0,e==="fixed"),A=n.top+t.clientTop,r=n.left+t.clientLeft,i=fi(t)?qa(t):ui(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=r*i.x,u=A*i.y;return{width:o,height:a,x:l,y:u}}function fF(t,e,n){let A;if(e==="viewport")A=gj(t,n);else if(e==="document")A=mj(di(t));else if(Rr(e))A=Bj(e,n);else{const r=uF(t);A={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return zf(A)}function hF(t,e){const n=Vo(t);return n===e||!Rr(n)||Xa(n)?!1:Pr(n).position==="fixed"||hF(n,e)}function yj(t,e){const n=e.get(t);if(n)return n;let A=Pc(t,[],!1).filter(a=>Rr(a)&&ja(a)!=="body"),r=null;const i=Pr(t).position==="fixed";let o=i?Vo(t):t;for(;Rr(o)&&!Xa(o);){const a=Pr(o),l=GB(o);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&r&&["absolute","fixed"].includes(r.position)||Rc(o)&&!l&&hF(t,o))?A=A.filter(u=>u!==o):r=a,o=Vo(o)}return e.set(t,A),A}function wj(t){let{element:e,boundary:n,rootBoundary:A,strategy:r}=t;const i=[...n==="clippingAncestors"?jf(e)?[]:yj(e,this._c):[].concat(n),A],o=i[0],a=i.reduce((l,u)=>{const f=fF(e,u,r);return l.top=Ja(f.top,l.top),l.right=WB(f.right,l.right),l.bottom=WB(f.bottom,l.bottom),l.left=Ja(f.left,l.left),l},fF(e,o,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Cj(t){const{width:e,height:n}=cF(t);return{width:e,height:n}}function bj(t,e,n){const A=fi(e),r=di(e),i=n==="fixed",o=Ms(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=ui(0);function u(){l.x=jB(r)}if(A||!A&&!i)if((ja(e)!=="body"||Rc(r))&&(a=Xf(e)),A){const g=Ms(e,!0,i,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&u();i&&!A&&r&&u();const f=r&&!A&&!i?dF(r,a):ui(0),h=o.left+a.scrollLeft-l.x-f.x,p=o.top+a.scrollTop-l.y-f.y;return{x:h,y:p,width:o.width,height:o.height}}function XB(t){return Pr(t).position==="static"}function pF(t,e){if(!fi(t)||Pr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return di(t)===n&&(n=n.ownerDocument.body),n}function mF(t,e){const n=zA(t);if(jf(t))return n;if(!fi(t)){let r=Vo(t);for(;r&&!Xa(r);){if(Rr(r)&&!XB(r))return r;r=Vo(r)}return n}let A=pF(t,e);for(;A&&cj(A)&&XB(A);)A=pF(A,e);return A&&Xa(A)&&XB(A)&&!GB(A)?n:A||uj(t)||n}const vj=function(t){return Jt(this,null,function*(){const e=this.getOffsetParent||mF,n=this.getDimensions,A=yield n(t.floating);return{reference:bj(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:A.width,height:A.height}}})};function Ej(t){return Pr(t).direction==="rtl"}const JA={convertOffsetParentRelativeRectToViewportRelativeRect:hj,getDocumentElement:di,getClippingRect:wj,getOffsetParent:mF,getElementRects:vj,getClientRects:pj,getDimensions:Cj,getScale:qa,isElement:Rr,isRTL:Ej};function gF(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function kj(t,e){let n=null,A;const r=di(t);function i(){var a;clearTimeout(A),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:f,top:h,width:p,height:g}=u;if(a||e(),!p||!g)return;const B=Yf(h),y=Yf(r.clientWidth-(f+p)),C=Yf(r.clientHeight-(h+g)),b=Yf(f),F={rootMargin:-B+"px "+-y+"px "+-C+"px "+-b+"px",threshold:Ja(0,WB(1,l))||1};let k=!0;function v(U){const E=U[0].intersectionRatio;if(E!==l){if(!k)return o();E?o(!1,E):A=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!gF(u,t.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(v,OA(Vn({},F),{root:r.ownerDocument}))}catch{n=new IntersectionObserver(v,F)}n.observe(t)}return o(!0),i}function qB(t,e,n,A){A===void 0&&(A={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=A,u=JB(t),f=r||i?[...u?Pc(u):[],...Pc(e)]:[];f.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const h=u&&a?kj(u,n):null;let p=-1,g=null;o&&(g=new ResizeObserver(b=>{let[F]=b;F&&F.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var k;(k=g)==null||k.observe(e)})),n()}),u&&!l&&g.observe(u),g.observe(e));let B,y=l?Ms(t):null;l&&C();function C(){const b=Ms(t);y&&!gF(y,b)&&n(),y=b,B=requestAnimationFrame(C)}return n(),()=>{var b;f.forEach(F=>{r&&F.removeEventListener("scroll",n),i&&F.removeEventListener("resize",n)}),h==null||h(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(B)}}const Sj=lj,{hasOwnProperty:ZB}=Object.prototype,Vc=function(){};function BF(t){return typeof t=="function"?t:Vc}function yF(t,e){return function(n,A,r){n.type===e&&t.call(this,n,A,r)}}function Fj(t,e){const n=e.structure,A=[];for(const r in n){if(ZB.call(n,r)===!1)continue;let i=n[r];const o={name:r,type:!1,nullable:!1};Array.isArray(i)||(i=[i]);for(const a of i)a===null?o.nullable=!0:typeof a=="string"?o.type="node":Array.isArray(a)&&(o.type="list");o.type&&A.push(o)}return A.length?{context:e.walkContext,fields:A}:null}function Qj(t){const e={};for(const n in t.node)if(ZB.call(t.node,n)){const A=t.node[n];if(!A.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");e[n]=Fj(n,A)}return e}function wF(t,e){const n=t.fields.slice(),A=t.context,r=typeof A=="string";return e&&n.reverse(),function(i,o,a,l){let u;r&&(u=o[A],o[A]=i);for(const f of n){const h=i[f.name];if(!f.nullable||h){if(f.type==="list"){if(e?h.reduceRight(l,!1):h.reduce(l,!1))return!0}else if(a(h))return!0}}r&&(o[A]=u)}}function CF({StyleSheet:t,Atrule:e,Rule:n,Block:A,DeclarationList:r}){return{Atrule:{StyleSheet:t,Atrule:e,Rule:n,Block:A},Rule:{StyleSheet:t,Atrule:e,Rule:n,Block:A},Declaration:{StyleSheet:t,Atrule:e,Rule:n,Block:A,DeclarationList:r}}}function Uj(t){const e=Qj(t),n={},A={},r=Symbol("break-walk"),i=Symbol("skip-node");for(const u in e)ZB.call(e,u)&&e[u]!==null&&(n[u]=wF(e[u],!1),A[u]=wF(e[u],!0));const o=CF(n),a=CF(A),l=function(u,f){function h(b,F,k){const v=p.call(C,b,F,k);return v===r?!0:v===i?!1:!!(B.hasOwnProperty(b.type)&&B[b.type](b,C,h,y)||g.call(C,b,F,k)===r)}let p=Vc,g=Vc,B=n,y=(b,F,k,v)=>b||h(F,k,v);const C={break:r,skip:i,root:u,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof f=="function")p=f;else if(f&&(p=BF(f.enter),g=BF(f.leave),f.reverse&&(B=A),f.visit)){if(o.hasOwnProperty(f.visit))B=f.reverse?a[f.visit]:o[f.visit];else if(!e.hasOwnProperty(f.visit))throw new Error("Bad value `"+f.visit+"` for `visit` option (should be: "+Object.keys(e).sort().join(", ")+")");p=yF(p,f.visit),g=yF(g,f.visit)}if(p===Vc&&g===Vc)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(u)};return l.break=r,l.skip=i,l.find=function(u,f){let h=null;return l(u,function(p,g,B){if(f.call(this,p,g,B))return h=p,r}),h},l.findLast=function(u,f){let h=null;return l(u,{reverse:!0,enter(p,g,B){if(f.call(this,p,g,B))return h=p,r}}),h},l.findAll=function(u,f){const h=[];return l(u,function(p,g,B){f.call(this,p,g,B)&&h.push(p)}),h},l}const $o=0,xe=1,kt=2,Un=3,An=4,Ki=5,Tj=6,wA=7,Vr=8,Lt=9,pt=10,Bn=11,Tt=12,kn=13,qf=14,jA=15,CA=16,DA=17,$r=18,Za=19,$c=20,jt=21,lt=22,Kr=23,el=24,bA=25,Ij=0;function XA(t){return t>=48&&t<=57}function tl(t){return XA(t)||t>=65&&t<=70||t>=97&&t<=102}function ey(t){return t>=65&&t<=90}function _j(t){return t>=97&&t<=122}function xj(t){return ey(t)||_j(t)}function Oj(t){return t>=128}function Zf(t){return xj(t)||Oj(t)||t===95}function bF(t){return Zf(t)||XA(t)||t===45}function Dj(t){return t>=0&&t<=8||t===11||t>=14&&t<=31||t===127}function eh(t){return t===10||t===13||t===12}function Ns(t){return eh(t)||t===32||t===9}function hi(t,e){return!(t!==92||eh(e)||e===Ij)}function ty(t,e,n){return t===45?Zf(e)||e===45||hi(e,n):Zf(t)?!0:t===92?hi(t,e):!1}function ny(t,e,n){return t===43||t===45?XA(e)?2:e===46&&XA(n)?3:0:t===46?XA(e)?2:0:XA(t)?1:0}function vF(t){return t===65279||t===65534?1:0}const Ay=new Array(128),Lj=128,th=130,EF=131,ry=132,kF=133;for(let t=0;t<Ay.length;t++)Ay[t]=Ns(t)&&th||XA(t)&&EF||Zf(t)&&ry||Dj(t)&&kF||t||Lj;function iy(t){return t<128?Ay[t]:ry}function nl(t,e){return e<t.length?t.charCodeAt(e):0}function oy(t,e,n){return n===13&&nl(t,e+1)===10?2:1}function SF(t,e,n){let A=t.charCodeAt(e);return ey(A)&&(A=A|32),A===n}function nh(t,e,n,A){if(n-e!==A.length||e<0||n>t.length)return!1;for(let r=e;r<n;r++){const i=A.charCodeAt(r-e);let o=t.charCodeAt(r);if(ey(o)&&(o=o|32),o!==i)return!1}return!0}function Mj(t,e){for(;e>=0&&Ns(t.charCodeAt(e));e--);return e+1}function Ah(t,e){for(;e<t.length&&Ns(t.charCodeAt(e));e++);return e}function sy(t,e){for(;e<t.length&&XA(t.charCodeAt(e));e++);return e}function Al(t,e){if(e+=2,tl(nl(t,e-1))){for(const A=Math.min(t.length,e+5);e<A&&tl(nl(t,e));e++);const n=nl(t,e);Ns(n)&&(e+=oy(t,e,n))}return e}function rh(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(!bF(n)){if(hi(n,nl(t,e+1))){e=Al(t,e)-1;continue}break}}return e}function FF(t,e){let n=t.charCodeAt(e);if((n===43||n===45)&&(n=t.charCodeAt(e+=1)),XA(n)&&(e=sy(t,e+1),n=t.charCodeAt(e)),n===46&&XA(t.charCodeAt(e+1))&&(e+=2,e=sy(t,e)),SF(t,e,101)){let A=0;n=t.charCodeAt(e+1),(n===45||n===43)&&(A=1,n=t.charCodeAt(e+2)),XA(n)&&(e=sy(t,e+1+A+1))}return e}function ay(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(n===41){e++;break}hi(n,nl(t,e+1))&&(e=Al(t,e))}return e}function QF(t){if(t.length===1&&!tl(t.charCodeAt(0)))return t[0];let e=parseInt(t,16);return(e===0||e>=55296&&e<=57343||e>1114111)&&(e=65533),String.fromCodePoint(e)}const UF=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],Nj=16*1024;function ih(t=null,e){return t===null||t.length<e?new Uint32Array(Math.max(e+1024,Nj)):t}const TF=10,Hj=12,IF=13;function _F(t){const e=t.source,n=e.length,A=e.length>0?vF(e.charCodeAt(0)):0,r=ih(t.lines,n),i=ih(t.columns,n);let o=t.startLine,a=t.startColumn;for(let l=A;l<n;l++){const u=e.charCodeAt(l);r[l]=o,i[l]=a++,(u===TF||u===IF||u===Hj)&&(u===IF&&l+1<n&&e.charCodeAt(l+1)===TF&&(l++,r[l]=o,i[l]=a),o++,a=1)}r[n]=o,i[n]=a,t.lines=r,t.columns=i,t.computed=!0}class Rj{constructor(e,n,A,r){this.setSource(e,n,A,r),this.lines=null,this.columns=null}setSource(e="",n=0,A=1,r=1){this.source=e,this.startOffset=n,this.startLine=A,this.startColumn=r,this.computed=!1}getLocation(e,n){return this.computed||_F(this),{source:n,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,n,A){return this.computed||_F(this),{source:A,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const pi=16777215,mi=24,Hs=new Uint8Array(32);Hs[kt]=lt,Hs[jt]=lt,Hs[Za]=$c,Hs[Kr]=el;function xF(t){return Hs[t]!==0}class Pj{constructor(e,n){this.setSource(e,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",n=()=>{}){e=String(e||"");const A=e.length,r=ih(this.offsetAndType,e.length+1),i=ih(this.balance,e.length+1);let o=0,a=-1,l=0,u=e.length;this.offsetAndType=null,this.balance=null,i.fill(0),n(e,(f,h,p)=>{const g=o++;if(r[g]=f<<mi|p,a===-1&&(a=h),i[g]=u,f===l){const B=i[u];i[u]=g,u=B,l=Hs[r[B]>>mi]}else xF(f)&&(u=g,l=Hs[f])}),r[o]=$o<<mi|A,i[o]=o;for(let f=0;f<o;f++){const h=i[f];if(h<=f){const p=i[h];p!==f&&(i[f]=p)}else h>o&&(i[f]=o)}this.source=e,this.firstCharOffset=a===-1?0:a,this.tokenCount=o,this.offsetAndType=r,this.balance=i,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>mi:$o}lookupTypeNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const A=this.offsetAndType[n]>>mi;if(A!==kn&&A!==bA&&e--===0)return A}return $o}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&pi:this.source.length}lookupOffsetNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const A=this.offsetAndType[n]>>mi;if(A!==kn&&A!==bA&&e--===0)return n-this.tokenIndex}return $o}lookupValue(e,n){return e+=this.tokenIndex,e<this.tokenCount?nh(this.source,this.offsetAndType[e-1]&pi,this.offsetAndType[e]&pi,n):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&pi:this.offsetAndType[this.tokenCount]&pi:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,n){return n?this.lookupType(n)===Lt&&this.source.charCodeAt(this.lookupOffset(n))===e:this.tokenType===Lt&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let n=this.tokenIndex+e;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&pi,n=this.offsetAndType[n],this.tokenType=n>>mi,this.tokenEnd=n&pi):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>mi,this.tokenEnd=e&pi):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=$o,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===kn||this.tokenType===bA;)this.next()}skipUntilBalanced(e,n){let A=e,r=0,i=0;e:for(;A<this.tokenCount;A++){if(r=this.balance[A],r<e)break e;switch(i=A>0?this.offsetAndType[A-1]&pi:this.firstCharOffset,n(this.source.charCodeAt(i))){case 1:break e;case 2:A++;break e;default:xF(this.offsetAndType[A]>>mi)&&(A=r)}}this.skip(A-this.tokenIndex)}forEachToken(e){for(let n=0,A=this.firstCharOffset;n<this.tokenCount;n++){const r=A,i=this.offsetAndType[n],o=i&pi,a=i>>mi;A=o,e(a,r,o,n)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken((n,A,r,i)=>{e[i]={idx:i,type:UF[n],chunk:this.source.substring(A,r),balance:this.balance[i]}}),e}}function OF(t,e){function n(h){return h<a?t.charCodeAt(h):0}function A(){if(u=FF(t,u),ty(n(u),n(u+1),n(u+2))){f=Tt,u=rh(t,u);return}if(n(u)===37){f=Bn,u++;return}f=pt}function r(){const h=u;if(u=rh(t,u),nh(t,h,u,"url")&&n(u)===40){if(u=Ah(t,u+1),n(u)===34||n(u)===39){f=kt,u=h+4;return}o();return}if(n(u)===40){f=kt,u++;return}f=xe}function i(h){for(h||(h=n(u++)),f=Ki;u<t.length;u++){const p=t.charCodeAt(u);switch(iy(p)){case h:u++;return;case th:if(eh(p)){u+=oy(t,u,p),f=Tj;return}break;case 92:if(u===t.length-1)break;const g=n(u+1);eh(g)?u+=oy(t,u+1,g):hi(p,g)&&(u=Al(t,u)-1);break}}}function o(){for(f=wA,u=Ah(t,u);u<t.length;u++){const h=t.charCodeAt(u);switch(iy(h)){case 41:u++;return;case th:if(u=Ah(t,u),n(u)===41||u>=t.length){u<t.length&&u++;return}u=ay(t,u),f=Vr;return;case 34:case 39:case 40:case kF:u=ay(t,u),f=Vr;return;case 92:if(hi(h,n(u+1))){u=Al(t,u)-1;break}u=ay(t,u),f=Vr;return}}}t=String(t||"");const a=t.length;let l=vF(n(0)),u=l,f;for(;u<a;){const h=t.charCodeAt(u);switch(iy(h)){case th:f=kn,u=Ah(t,u+1);break;case 34:i();break;case 35:bF(n(u+1))||hi(n(u+1),n(u+2))?(f=An,u=rh(t,u+1)):(f=Lt,u++);break;case 39:i();break;case 40:f=jt,u++;break;case 41:f=lt,u++;break;case 43:ny(h,n(u+1),n(u+2))?A():(f=Lt,u++);break;case 44:f=$r,u++;break;case 45:ny(h,n(u+1),n(u+2))?A():n(u+1)===45&&n(u+2)===62?(f=jA,u=u+3):ty(h,n(u+1),n(u+2))?r():(f=Lt,u++);break;case 46:ny(h,n(u+1),n(u+2))?A():(f=Lt,u++);break;case 47:n(u+1)===42?(f=bA,u=t.indexOf("*/",u+2),u=u===-1?t.length:u+2):(f=Lt,u++);break;case 58:f=CA,u++;break;case 59:f=DA,u++;break;case 60:n(u+1)===33&&n(u+2)===45&&n(u+3)===45?(f=qf,u=u+4):(f=Lt,u++);break;case 64:ty(n(u+1),n(u+2),n(u+3))?(f=Un,u=rh(t,u+1)):(f=Lt,u++);break;case 91:f=Za,u++;break;case 92:hi(h,n(u+1))?r():(f=Lt,u++);break;case 93:f=$c,u++;break;case 123:f=Kr,u++;break;case 125:f=el,u++;break;case EF:A();break;case ry:r();break;default:f=Lt,u++}e(f,l,l=u)}}const gi=43,qA=45,oh=110,Rs=!0,Vj=!1;function sh(t,e){let n=this.tokenStart+t;const A=this.charCodeAt(n);for((A===gi||A===qA)&&(e&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)XA(this.charCodeAt(n))||this.error("Integer is expected",n)}function rl(t){return sh.call(this,0,t)}function Ko(t,e){if(!this.cmpChar(this.tokenStart+t,e)){let n="";switch(e){case oh:n="N is expected";break;case qA:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+t)}}function ly(){let t=0,e=0,n=this.tokenType;for(;n===kn||n===bA;)n=this.lookupType(++t);if(n!==pt)if(this.isDelim(gi,t)||this.isDelim(qA,t)){e=this.isDelim(gi,t)?gi:qA;do n=this.lookupType(++t);while(n===kn||n===bA);n!==pt&&(this.skip(t),rl.call(this,Rs))}else return null;return t>0&&this.skip(t),e===0&&(n=this.charCodeAt(this.tokenStart),n!==gi&&n!==qA&&this.error("Number sign is expected")),rl.call(this,e!==0),e===qA?"-"+this.consume(pt):this.consume(pt)}const $j="AnPlusB",Kj={a:[String,null],b:[String,null]};function DF(){const t=this.tokenStart;let e=null,n=null;if(this.tokenType===pt)rl.call(this,Vj),n=this.consume(pt);else if(this.tokenType===xe&&this.cmpChar(this.tokenStart,qA))switch(e="-1",Ko.call(this,1,oh),this.tokenEnd-this.tokenStart){case 2:this.next(),n=ly.call(this);break;case 3:Ko.call(this,2,qA),this.next(),this.skipSC(),rl.call(this,Rs),n="-"+this.consume(pt);break;default:Ko.call(this,2,qA),sh.call(this,3,Rs),this.next(),n=this.substrToCursor(t+2)}else if(this.tokenType===xe||this.isDelim(gi)&&this.lookupType(1)===xe){let A=0;switch(e="1",this.isDelim(gi)&&(A=1,this.next()),Ko.call(this,0,oh),this.tokenEnd-this.tokenStart){case 1:this.next(),n=ly.call(this);break;case 2:Ko.call(this,1,qA),this.next(),this.skipSC(),rl.call(this,Rs),n="-"+this.consume(pt);break;default:Ko.call(this,1,qA),sh.call(this,2,Rs),this.next(),n=this.substrToCursor(t+A+1)}}else if(this.tokenType===Tt){const A=this.charCodeAt(this.tokenStart),r=A===gi||A===qA;let i=this.tokenStart+r;for(;i<this.tokenEnd&&XA(this.charCodeAt(i));i++);i===this.tokenStart+r&&this.error("Integer is expected",this.tokenStart+r),Ko.call(this,i-this.tokenStart,oh),e=this.substring(t,i),i+1===this.tokenEnd?(this.next(),n=ly.call(this)):(Ko.call(this,i-this.tokenStart+1,qA),i+2===this.tokenEnd?(this.next(),this.skipSC(),rl.call(this,Rs),n="-"+this.consume(pt)):(sh.call(this,i-this.tokenStart+2,Rs),this.next(),n=this.substrToCursor(i+1)))}else this.error();return e!==null&&e.charCodeAt(0)===gi&&(e=e.substr(1)),n!==null&&n.charCodeAt(0)===gi&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.tokenStart),a:e,b:n}}function LF(t){if(t.a){const e=t.a==="+1"&&"n"||t.a==="1"&&"n"||t.a==="-1"&&"-n"||t.a+"n";if(t.b){const n=t.b[0]==="-"||t.b[0]==="+"?t.b:"+"+t.b;this.tokenize(e+n)}else this.tokenize(e)}else this.tokenize(t.b)}const Wj=Object.freeze(Object.defineProperty({__proto__:null,generate:LF,name:$j,parse:DF,structure:Kj},Symbol.toStringTag,{value:"Module"}));function MF(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Gj(){for(let t=1,e;e=this.lookupType(t);t++){if(e===el)return!0;if(e===Kr||e===Un)return!1}return!1}const Yj="Atrule",zj="atrule",Jj={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function NF(t=!1){const e=this.tokenStart;let n,A,r=null,i=null;switch(this.eat(Un),n=this.substrToCursor(e+1),A=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==Kr&&this.tokenType!==DA&&(this.parseAtrulePrelude?r=this.parseWithFallback(this.AtrulePrelude.bind(this,n,t),MF):r=MF.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case DA:this.next();break;case Kr:hasOwnProperty.call(this.atrule,A)&&typeof this.atrule[A].block=="function"?i=this.atrule[A].block.call(this,t):i=this.Block(Gj.call(this));break}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:n,prelude:r,block:i}}function HF(t){this.token(Un,"@"+t.name),t.prelude!==null&&this.node(t.prelude),t.block?this.node(t.block):this.token(DA,";")}const jj=Object.freeze(Object.defineProperty({__proto__:null,generate:HF,name:Yj,parse:NF,structure:Jj,walkContext:zj},Symbol.toStringTag,{value:"Module"})),Xj="AtrulePrelude",qj="atrulePrelude",Zj={children:[[]]};function RF(t){let e=null;return t!==null&&(t=t.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==Kr&&this.tokenType!==DA&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}}function PF(t){this.children(t)}const eX=Object.freeze(Object.defineProperty({__proto__:null,generate:PF,name:Xj,parse:RF,structure:Zj,walkContext:qj},Symbol.toStringTag,{value:"Module"})),tX=36,VF=42,ah=61,nX=94,cy=124,AX=126;function rX(){this.eof&&this.error("Unexpected end of input");const t=this.tokenStart;let e=!1;return this.isDelim(VF)?(e=!0,this.next()):this.isDelim(cy)||this.eat(xe),this.isDelim(cy)?this.charCodeAt(this.tokenStart+1)!==ah?(this.next(),this.eat(xe)):e&&this.error("Identifier is expected",this.tokenEnd):e&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function iX(){const t=this.tokenStart,e=this.charCodeAt(t);return e!==ah&&e!==AX&&e!==nX&&e!==tX&&e!==VF&&e!==cy&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),e!==ah&&(this.isDelim(ah)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(t)}const oX="AttributeSelector",sX={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function $F(){const t=this.tokenStart;let e,n=null,A=null,r=null;return this.eat(Za),this.skipSC(),e=rX.call(this),this.skipSC(),this.tokenType!==$c&&(this.tokenType!==xe&&(n=iX.call(this),this.skipSC(),A=this.tokenType===Ki?this.String():this.Identifier(),this.skipSC()),this.tokenType===xe&&(r=this.consume(xe),this.skipSC())),this.eat($c),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:A,flags:r}}function KF(t){this.token(Lt,"["),this.node(t.name),t.matcher!==null&&(this.tokenize(t.matcher),this.node(t.value)),t.flags!==null&&this.token(xe,t.flags),this.token(Lt,"]")}const aX=Object.freeze(Object.defineProperty({__proto__:null,generate:KF,name:oX,parse:$F,structure:sX},Symbol.toStringTag,{value:"Module"})),lX=38;function WF(){return this.Raw(null,!0)}function GF(){return this.parseWithFallback(this.Rule,WF)}function YF(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function cX(){if(this.tokenType===DA)return YF.call(this,this.tokenIndex);const t=this.parseWithFallback(this.Declaration,YF);return this.tokenType===DA&&this.next(),t}const uX="Block",dX="block",fX={children:[["Atrule","Rule","Declaration"]]};function zF(t){const e=t?cX:GF,n=this.tokenStart;let A=this.createList();this.eat(Kr);e:for(;!this.eof;)switch(this.tokenType){case el:break e;case kn:case bA:this.next();break;case Un:A.push(this.parseWithFallback(this.Atrule.bind(this,t),WF));break;default:t&&this.isDelim(lX)?A.push(GF.call(this)):A.push(e.call(this))}return this.eof||this.eat(el),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:A}}function JF(t){this.token(Kr,"{"),this.children(t,e=>{e.type==="Declaration"&&this.token(DA,";")}),this.token(el,"}")}const hX=Object.freeze(Object.defineProperty({__proto__:null,generate:JF,name:uX,parse:zF,structure:fX,walkContext:dX},Symbol.toStringTag,{value:"Module"})),pX="Brackets",mX={children:[[]]};function jF(t,e){const n=this.tokenStart;let A=null;return this.eat(Za),A=t.call(this,e),this.eof||this.eat($c),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:A}}function XF(t){this.token(Lt,"["),this.children(t),this.token(Lt,"]")}const gX=Object.freeze(Object.defineProperty({__proto__:null,generate:XF,name:pX,parse:jF,structure:mX},Symbol.toStringTag,{value:"Module"})),BX="CDC",yX=[];function qF(){const t=this.tokenStart;return this.eat(jA),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function ZF(){this.token(jA,"-->")}const wX=Object.freeze(Object.defineProperty({__proto__:null,generate:ZF,name:BX,parse:qF,structure:yX},Symbol.toStringTag,{value:"Module"})),CX="CDO",bX=[];function eQ(){const t=this.tokenStart;return this.eat(qf),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function tQ(){this.token(qf,"<!--")}const vX=Object.freeze(Object.defineProperty({__proto__:null,generate:tQ,name:CX,parse:eQ,structure:bX},Symbol.toStringTag,{value:"Module"})),EX=46,kX="ClassSelector",SX={name:String};function nQ(){return this.eatDelim(EX),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(xe)}}function AQ(t){this.token(Lt,"."),this.token(xe,t.name)}const FX=Object.freeze(Object.defineProperty({__proto__:null,generate:AQ,name:kX,parse:nQ,structure:SX},Symbol.toStringTag,{value:"Module"})),QX=43,rQ=47,UX=62,TX=126,IX="Combinator",_X={name:String};function iQ(){const t=this.tokenStart;let e;switch(this.tokenType){case kn:e=" ";break;case Lt:switch(this.charCodeAt(this.tokenStart)){case UX:case QX:case TX:this.next();break;case rQ:this.next(),this.eatIdent("deep"),this.eatDelim(rQ);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t);break}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function oQ(t){this.tokenize(t.name)}const xX=Object.freeze(Object.defineProperty({__proto__:null,generate:oQ,name:IX,parse:iQ,structure:_X},Symbol.toStringTag,{value:"Module"})),OX=42,DX=47,LX="Comment",MX={value:String};function sQ(){const t=this.tokenStart;let e=this.tokenEnd;return this.eat(bA),e-t+2>=2&&this.charCodeAt(e-2)===OX&&this.charCodeAt(e-1)===DX&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,e)}}function aQ(t){this.token(bA,"/*"+t.value+"*/")}const NX=Object.freeze(Object.defineProperty({__proto__:null,generate:aQ,name:LX,parse:sQ,structure:MX},Symbol.toStringTag,{value:"Module"})),HX=new Set([CA,lt,$o]),RX="Condition",PX={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function lQ(t){return this.lookupTypeNonSC(1)===xe&&HX.has(this.lookupTypeNonSC(2))?this.Feature(t):this.FeatureRange(t)}const VX={media:lQ,container:lQ,supports(){return this.SupportsDeclaration()}};function cQ(t="media"){const e=this.createList();e:for(;!this.eof;)switch(this.tokenType){case bA:case kn:this.next();continue;case xe:e.push(this.Identifier());break;case jt:{let n=this.parseWithFallback(()=>VX[t].call(this,t),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(jt);const A=this.Condition(t);return this.eat(lt),A},()=>this.GeneralEnclosed(t))),e.push(n);break}case kt:{let n=this.parseWithFallback(()=>this.FeatureFunction(t),()=>null);n||(n=this.GeneralEnclosed(t)),e.push(n);break}default:break e}return e.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(e),kind:t,children:e}}function uQ(t){t.children.forEach(e=>{e.type==="Condition"?(this.token(jt,"("),this.node(e),this.token(lt,")")):this.node(e)})}const $X=Object.freeze(Object.defineProperty({__proto__:null,generate:uQ,name:RX,parse:cQ,structure:PX},Symbol.toStringTag,{value:"Module"})),dQ=45;function KX(t,e){return e=e||0,t.length-e>=2&&t.charCodeAt(e)===dQ&&t.charCodeAt(e+1)===dQ}const fQ=33,WX=35,GX=36,YX=38,zX=42,JX=43,hQ=47;function jX(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function XX(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function qX(){const t=this.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==DA&&this.isDelim(fQ)===!1&&this.isBalanceEdge(t)===!1&&this.error(),e}const ZX="Declaration",e7="declaration",t7={important:[Boolean,String],property:String,value:["Value","Raw"]};function pQ(){const t=this.tokenStart,e=this.tokenIndex,n=n7.call(this),A=KX(n),r=A?this.parseCustomProperty:this.parseValue,i=A?XX:jX;let o=!1,a;this.skipSC(),this.eat(CA);const l=this.tokenIndex;if(A||this.skipSC(),r?a=this.parseWithFallback(qX,i):a=i.call(this,this.tokenIndex),A&&a.type==="Value"&&a.children.isEmpty){for(let u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===kn){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(fQ)&&(o=A7.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==DA&&this.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:o,property:n,value:a}}function mQ(t){this.token(xe,t.property),this.token(CA,":"),this.node(t.value),t.important&&(this.token(Lt,"!"),this.token(xe,t.important===!0?"important":t.important))}function n7(){const t=this.tokenStart;if(this.tokenType===Lt)switch(this.charCodeAt(this.tokenStart)){case zX:case GX:case JX:case WX:case YX:this.next();break;case hQ:this.next(),this.isDelim(hQ)&&this.next();break}return this.tokenType===An?this.eat(An):this.eat(xe),this.substrToCursor(t)}function A7(){this.eat(Lt),this.skipSC();const t=this.consume(xe);return t==="important"?!0:t}const r7=Object.freeze(Object.defineProperty({__proto__:null,generate:mQ,name:ZX,parse:pQ,structure:t7,walkContext:e7},Symbol.toStringTag,{value:"Module"})),i7=38;function uy(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const o7="DeclarationList",s7={children:[["Declaration","Atrule","Rule"]]};function gQ(){const t=this.createList();for(;!this.eof;)switch(this.tokenType){case kn:case bA:case DA:this.next();break;case Un:t.push(this.parseWithFallback(this.Atrule.bind(this,!0),uy));break;default:this.isDelim(i7)?t.push(this.parseWithFallback(this.Rule,uy)):t.push(this.parseWithFallback(this.Declaration,uy))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function BQ(t){this.children(t,e=>{e.type==="Declaration"&&this.token(DA,";")})}const a7=Object.freeze(Object.defineProperty({__proto__:null,generate:BQ,name:o7,parse:gQ,structure:s7},Symbol.toStringTag,{value:"Module"})),l7="Dimension",c7={value:String,unit:String};function yQ(){const t=this.tokenStart,e=this.consumeNumber(Tt);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:e,unit:this.substring(t+e.length,this.tokenStart)}}function wQ(t){this.token(Tt,t.value+t.unit)}const u7=Object.freeze(Object.defineProperty({__proto__:null,generate:wQ,name:l7,parse:yQ,structure:c7},Symbol.toStringTag,{value:"Module"})),d7=47,f7="Feature",h7={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function CQ(t){const e=this.tokenStart;let n,A=null;if(this.eat(jt),this.skipSC(),n=this.consume(xe),this.skipSC(),this.tokenType!==lt){switch(this.eat(CA),this.skipSC(),this.tokenType){case pt:this.lookupNonWSType(1)===Lt?A=this.Ratio():A=this.Number();break;case Tt:A=this.Dimension();break;case xe:A=this.Identifier();break;case kt:A=this.parseWithFallback(()=>{const r=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(d7)&&this.error(),r},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(lt),{type:"Feature",loc:this.getLocation(e,this.tokenStart),kind:t,name:n,value:A}}function bQ(t){this.token(jt,"("),this.token(xe,t.name),t.value!==null&&(this.token(CA,":"),this.node(t.value)),this.token(lt,")")}const p7=Object.freeze(Object.defineProperty({__proto__:null,generate:bQ,name:f7,parse:CQ,structure:h7},Symbol.toStringTag,{value:"Module"})),m7="FeatureFunction",g7={kind:String,feature:String,value:["Declaration","Selector"]};function B7(t,e){const n=(this.features[t]||{})[e];return typeof n!="function"&&this.error(`Unknown feature ${e}()`),n}function vQ(t="unknown"){const e=this.tokenStart,n=this.consumeFunctionName(),A=B7.call(this,t,n.toLowerCase());this.skipSC();const r=this.parseWithFallback(()=>{const i=this.tokenIndex,o=A.call(this);return this.eof===!1&&this.isBalanceEdge(i)===!1&&this.error(),o},()=>this.Raw(null,!1));return this.eof||this.eat(lt),{type:"FeatureFunction",loc:this.getLocation(e,this.tokenStart),kind:t,feature:n,value:r}}function EQ(t){this.token(kt,t.feature+"("),this.node(t.value),this.token(lt,")")}const y7=Object.freeze(Object.defineProperty({__proto__:null,generate:EQ,name:m7,parse:vQ,structure:g7},Symbol.toStringTag,{value:"Module"})),kQ=47,w7=60,SQ=61,C7=62,b7="FeatureRange",v7={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function dy(){switch(this.skipSC(),this.tokenType){case pt:return this.isDelim(kQ,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case Tt:return this.Dimension();case xe:return this.Identifier();case kt:return this.parseWithFallback(()=>{const t=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(kQ)&&this.error(),t},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function FQ(t){if(this.skipSC(),this.isDelim(w7)||this.isDelim(C7)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(SQ)?(this.next(),e+"="):e}if(this.isDelim(SQ))return"=";this.error(`Expected ${t?'":", ':""}"<", ">", "=" or ")"`)}function QQ(t="unknown"){const e=this.tokenStart;this.skipSC(),this.eat(jt);const n=dy.call(this),A=FQ.call(this,n.type==="Identifier"),r=dy.call(this);let i=null,o=null;return this.lookupNonWSType(0)!==lt&&(i=FQ.call(this),o=dy.call(this)),this.skipSC(),this.eat(lt),{type:"FeatureRange",loc:this.getLocation(e,this.tokenStart),kind:t,left:n,leftComparison:A,middle:r,rightComparison:i,right:o}}function UQ(t){this.token(jt,"("),this.node(t.left),this.tokenize(t.leftComparison),this.node(t.middle),t.right&&(this.tokenize(t.rightComparison),this.node(t.right)),this.token(lt,")")}const E7=Object.freeze(Object.defineProperty({__proto__:null,generate:UQ,name:b7,parse:QQ,structure:v7},Symbol.toStringTag,{value:"Module"})),k7="Function",S7="function",F7={name:String,children:[[]]};function TQ(t,e){const n=this.tokenStart,A=this.consumeFunctionName(),r=A.toLowerCase();let i;return i=e.hasOwnProperty(r)?e[r].call(this,e):t.call(this,e),this.eof||this.eat(lt),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:A,children:i}}function IQ(t){this.token(kt,t.name+"("),this.children(t),this.token(lt,")")}const Q7=Object.freeze(Object.defineProperty({__proto__:null,generate:IQ,name:k7,parse:TQ,structure:F7,walkContext:S7},Symbol.toStringTag,{value:"Module"})),U7="GeneralEnclosed",T7={kind:String,function:[String,null],children:[[]]};function _Q(t){const e=this.tokenStart;let n=null;this.tokenType===kt?n=this.consumeFunctionName():this.eat(jt);const A=this.parseWithFallback(()=>{const r=this.tokenIndex,i=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(r)===!1&&this.error(),i},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(lt),{type:"GeneralEnclosed",loc:this.getLocation(e,this.tokenStart),kind:t,function:n,children:A}}function xQ(t){t.function?this.token(kt,t.function+"("):this.token(jt,"("),this.children(t),this.token(lt,")")}const I7=Object.freeze(Object.defineProperty({__proto__:null,generate:xQ,name:U7,parse:_Q,structure:T7},Symbol.toStringTag,{value:"Module"})),_7="XXX",x7="Hash",O7={value:String};function OQ(){const t=this.tokenStart;return this.eat(An),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function DQ(t){this.token(An,"#"+t.value)}const D7=Object.freeze(Object.defineProperty({__proto__:null,generate:DQ,name:x7,parse:OQ,structure:O7,xxx:_7},Symbol.toStringTag,{value:"Module"})),L7="Identifier",M7={name:String};function LQ(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(xe)}}function MQ(t){this.token(xe,t.name)}const N7=Object.freeze(Object.defineProperty({__proto__:null,generate:MQ,name:L7,parse:LQ,structure:M7},Symbol.toStringTag,{value:"Module"})),H7="IdSelector",R7={name:String};function NQ(){const t=this.tokenStart;return this.eat(An),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function HQ(t){this.token(Lt,"#"+t.name)}const P7=Object.freeze(Object.defineProperty({__proto__:null,generate:HQ,name:H7,parse:NQ,structure:R7},Symbol.toStringTag,{value:"Module"})),V7=46,$7="Layer",K7={name:String};function RQ(){let t=this.tokenStart,e=this.consume(xe);for(;this.isDelim(V7);)this.eat(Lt),e+="."+this.consume(xe);return{type:"Layer",loc:this.getLocation(t,this.tokenStart),name:e}}function PQ(t){this.tokenize(t.name)}const W7=Object.freeze(Object.defineProperty({__proto__:null,generate:PQ,name:$7,parse:RQ,structure:K7},Symbol.toStringTag,{value:"Module"})),G7="LayerList",Y7={children:[["Layer"]]};function VQ(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.Layer()),this.lookupTypeNonSC(0)===$r);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(t),children:t}}function $Q(t){this.children(t,()=>this.token($r,","))}const z7=Object.freeze(Object.defineProperty({__proto__:null,generate:$Q,name:G7,parse:VQ,structure:Y7},Symbol.toStringTag,{value:"Module"})),J7="MediaQuery",j7={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function KQ(){const t=this.tokenStart;let e=null,n=null,A=null;if(this.skipSC(),this.tokenType===xe&&this.lookupTypeNonSC(1)!==jt){const r=this.consume(xe),i=r.toLowerCase();switch(i==="not"||i==="only"?(this.skipSC(),e=i,n=this.consume(xe)):n=r,this.lookupTypeNonSC(0)){case xe:{this.skipSC(),this.eatIdent("and"),A=this.Condition("media");break}case Kr:case DA:case $r:case $o:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case xe:case jt:case kt:{A=this.Condition("media");break}case Kr:case DA:case $o:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(t,this.tokenStart),modifier:e,mediaType:n,condition:A}}function WQ(t){t.mediaType?(t.modifier&&this.token(xe,t.modifier),this.token(xe,t.mediaType),t.condition&&(this.token(xe,"and"),this.node(t.condition))):t.condition&&this.node(t.condition)}const X7=Object.freeze(Object.defineProperty({__proto__:null,generate:WQ,name:J7,parse:KQ,structure:j7},Symbol.toStringTag,{value:"Module"})),q7="MediaQueryList",Z7={children:[["MediaQuery"]]};function GQ(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),this.tokenType===$r);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function YQ(t){this.children(t,()=>this.token($r,","))}const eq=Object.freeze(Object.defineProperty({__proto__:null,generate:YQ,name:q7,parse:GQ,structure:Z7},Symbol.toStringTag,{value:"Module"})),tq=38,nq="NestingSelector",Aq={};function zQ(){const t=this.tokenStart;return this.eatDelim(tq),{type:"NestingSelector",loc:this.getLocation(t,this.tokenStart)}}function JQ(){this.token(Lt,"&")}const rq=Object.freeze(Object.defineProperty({__proto__:null,generate:JQ,name:nq,parse:zQ,structure:Aq},Symbol.toStringTag,{value:"Module"})),iq="Nth",oq={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function jQ(){this.skipSC();const t=this.tokenStart;let e=t,n=null,A;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?A=this.Identifier():A=this.AnPlusB(),e=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),e=this.tokenStart),{type:"Nth",loc:this.getLocation(t,e),nth:A,selector:n}}function XQ(t){this.node(t.nth),t.selector!==null&&(this.token(xe,"of"),this.node(t.selector))}const sq=Object.freeze(Object.defineProperty({__proto__:null,generate:XQ,name:iq,parse:jQ,structure:oq},Symbol.toStringTag,{value:"Module"})),aq="Number",lq={value:String};function qQ(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(pt)}}function ZQ(t){this.token(pt,t.value)}const cq=Object.freeze(Object.defineProperty({__proto__:null,generate:ZQ,name:aq,parse:qQ,structure:lq},Symbol.toStringTag,{value:"Module"})),uq="Operator",dq={value:String};function eU(){const t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function tU(t){this.tokenize(t.value)}const fq=Object.freeze(Object.defineProperty({__proto__:null,generate:tU,name:uq,parse:eU,structure:dq},Symbol.toStringTag,{value:"Module"})),hq="Parentheses",pq={children:[[]]};function nU(t,e){const n=this.tokenStart;let A=null;return this.eat(jt),A=t.call(this,e),this.eof||this.eat(lt),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:A}}function AU(t){this.token(jt,"("),this.children(t),this.token(lt,")")}const mq=Object.freeze(Object.defineProperty({__proto__:null,generate:AU,name:hq,parse:nU,structure:pq},Symbol.toStringTag,{value:"Module"})),gq="Percentage",Bq={value:String};function rU(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Bn)}}function iU(t){this.token(Bn,t.value+"%")}const yq=Object.freeze(Object.defineProperty({__proto__:null,generate:iU,name:gq,parse:rU,structure:Bq},Symbol.toStringTag,{value:"Module"})),wq="PseudoClassSelector",Cq="function",bq={name:String,children:[["Raw"],null]};function oU(){const t=this.tokenStart;let e=null,n,A;return this.eat(CA),this.tokenType===kt?(n=this.consumeFunctionName(),A=n.toLowerCase(),this.lookupNonWSType(0)==lt?e=this.createList():hasOwnProperty.call(this.pseudo,A)?(this.skipSC(),e=this.pseudo[A].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(lt)):n=this.consume(xe),{type:"PseudoClassSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function sU(t){this.token(CA,":"),t.children===null?this.token(xe,t.name):(this.token(kt,t.name+"("),this.children(t),this.token(lt,")"))}const vq=Object.freeze(Object.defineProperty({__proto__:null,generate:sU,name:wq,parse:oU,structure:bq,walkContext:Cq},Symbol.toStringTag,{value:"Module"})),Eq="PseudoElementSelector",kq="function",Sq={name:String,children:[["Raw"],null]};function aU(){const t=this.tokenStart;let e=null,n,A;return this.eat(CA),this.eat(CA),this.tokenType===kt?(n=this.consumeFunctionName(),A=n.toLowerCase(),this.lookupNonWSType(0)==lt?e=this.createList():hasOwnProperty.call(this.pseudo,A)?(this.skipSC(),e=this.pseudo[A].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(lt)):n=this.consume(xe),{type:"PseudoElementSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function lU(t){this.token(CA,":"),this.token(CA,":"),t.children===null?this.token(xe,t.name):(this.token(kt,t.name+"("),this.children(t),this.token(lt,")"))}const Fq=Object.freeze(Object.defineProperty({__proto__:null,generate:lU,name:Eq,parse:aU,structure:Sq,walkContext:kq},Symbol.toStringTag,{value:"Module"})),cU=47;function uU(){switch(this.skipSC(),this.tokenType){case pt:return this.Number();case kt:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const Qq="Ratio",Uq={left:["Number","Function"],right:["Number","Function",null]};function dU(){const t=this.tokenStart,e=uU.call(this);let n=null;return this.skipSC(),this.isDelim(cU)&&(this.eatDelim(cU),n=uU.call(this)),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:e,right:n}}function fU(t){this.node(t.left),this.token(Lt,"/"),t.right?this.node(t.right):this.node(pt,1)}const Tq=Object.freeze(Object.defineProperty({__proto__:null,generate:fU,name:Qq,parse:dU,structure:Uq},Symbol.toStringTag,{value:"Module"}));function Iq(){return this.tokenIndex>0&&this.lookupType(-1)===kn?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const _q="Raw",xq={value:String};function hU(t,e){const n=this.getTokenStart(this.tokenIndex);let A;return this.skipUntilBalanced(this.tokenIndex,t||this.consumeUntilBalanceEnd),e&&this.tokenStart>n?A=Iq.call(this):A=this.tokenStart,{type:"Raw",loc:this.getLocation(n,A),value:this.substring(n,A)}}function pU(t){this.tokenize(t.value)}const Oq=Object.freeze(Object.defineProperty({__proto__:null,generate:pU,name:_q,parse:hU,structure:xq},Symbol.toStringTag,{value:"Module"}));function mU(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function Dq(){const t=this.SelectorList();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Kr&&this.error(),t}const Lq="Rule",Mq="rule",Nq={prelude:["SelectorList","Raw"],block:["Block"]};function gU(){const t=this.tokenIndex,e=this.tokenStart;let n,A;return this.parseRulePrelude?n=this.parseWithFallback(Dq,mU):n=mU.call(this,t),A=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.tokenStart),prelude:n,block:A}}function BU(t){this.node(t.prelude),this.node(t.block)}const Hq=Object.freeze(Object.defineProperty({__proto__:null,generate:BU,name:Lq,parse:gU,structure:Nq,walkContext:Mq},Symbol.toStringTag,{value:"Module"})),Rq="Scope",Pq={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function yU(){let t=null,e=null;this.skipSC();const n=this.tokenStart;return this.tokenType===jt&&(this.next(),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(lt)),this.lookupNonWSType(0)===xe&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(jt),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(lt)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:t,limit:e}}function wU(t){t.root&&(this.token(jt,"("),this.node(t.root),this.token(lt,")")),t.limit&&(this.token(xe,"to"),this.token(jt,"("),this.node(t.limit),this.token(lt,")"))}const Vq=Object.freeze(Object.defineProperty({__proto__:null,generate:wU,name:Rq,parse:yU,structure:Pq},Symbol.toStringTag,{value:"Module"})),$q="Selector",Kq={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function CU(){const t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function bU(t){this.children(t)}const Wq=Object.freeze(Object.defineProperty({__proto__:null,generate:bU,name:$q,parse:CU,structure:Kq},Symbol.toStringTag,{value:"Module"})),Gq="SelectorList",Yq="selector",zq={children:[["Selector","Raw"]]};function vU(){const t=this.createList();for(;!this.eof;){if(t.push(this.Selector()),this.tokenType===$r){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function EU(t){this.children(t,()=>this.token($r,","))}const Jq=Object.freeze(Object.defineProperty({__proto__:null,generate:EU,name:Gq,parse:vU,structure:zq,walkContext:Yq},Symbol.toStringTag,{value:"Module"})),fy=92,kU=34,jq=39;function SU(t){const e=t.length,n=t.charCodeAt(0),A=n===kU||n===jq?1:0,r=A===1&&e>1&&t.charCodeAt(e-1)===n?e-2:e-1;let i="";for(let o=A;o<=r;o++){let a=t.charCodeAt(o);if(a===fy){if(o===r){o!==e-1&&(i=t.substr(o+1));break}if(a=t.charCodeAt(++o),hi(fy,a)){const l=o-1,u=Al(t,l);o=u-1,i+=QF(t.substring(l+1,u))}else a===13&&t.charCodeAt(o+1)===10&&o++}else i+=t[o]}return i}function Xq(t,e){const n='"',A=kU;let r="",i=!1;for(let o=0;o<t.length;o++){const a=t.charCodeAt(o);if(a===0){r+="�";continue}if(a<=31||a===127){r+="\\"+a.toString(16),i=!0;continue}a===A||a===fy?(r+="\\"+t.charAt(o),i=!1):(i&&(tl(a)||Ns(a))&&(r+=" "),r+=t.charAt(o),i=!1)}return n+r+n}const qq="String",Zq={value:String};function FU(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:SU(this.consume(Ki))}}function QU(t){this.token(Ki,Xq(t.value))}const e9=Object.freeze(Object.defineProperty({__proto__:null,generate:QU,name:qq,parse:FU,structure:Zq},Symbol.toStringTag,{value:"Module"})),t9=33;function UU(){return this.Raw(null,!1)}const n9="StyleSheet",A9="stylesheet",r9={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function TU(){const t=this.tokenStart,e=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case kn:this.next();continue;case bA:if(this.charCodeAt(this.tokenStart+2)!==t9){this.next();continue}n=this.Comment();break;case qf:n=this.CDO();break;case jA:n=this.CDC();break;case Un:n=this.parseWithFallback(this.Atrule,UU);break;default:n=this.parseWithFallback(this.Rule,UU)}e.push(n)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:e}}function IU(t){this.children(t)}const i9=Object.freeze(Object.defineProperty({__proto__:null,generate:IU,name:n9,parse:TU,structure:r9,walkContext:A9},Symbol.toStringTag,{value:"Module"})),o9="SupportsDeclaration",s9={declaration:"Declaration"};function _U(){const t=this.tokenStart;this.eat(jt),this.skipSC();const e=this.Declaration();return this.eof||this.eat(lt),{type:"SupportsDeclaration",loc:this.getLocation(t,this.tokenStart),declaration:e}}function xU(t){this.token(jt,"("),this.node(t.declaration),this.token(lt,")")}const a9=Object.freeze(Object.defineProperty({__proto__:null,generate:xU,name:o9,parse:_U,structure:s9},Symbol.toStringTag,{value:"Module"})),l9=42,OU=124;function hy(){this.tokenType!==xe&&this.isDelim(l9)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const c9="TypeSelector",u9={name:String};function DU(){const t=this.tokenStart;return this.isDelim(OU)?(this.next(),hy.call(this)):(hy.call(this),this.isDelim(OU)&&(this.next(),hy.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function LU(t){this.tokenize(t.name)}const d9=Object.freeze(Object.defineProperty({__proto__:null,generate:LU,name:c9,parse:DU,structure:u9},Symbol.toStringTag,{value:"Module"})),MU=43,NU=45,py=63;function Kc(t,e){let n=0;for(let A=this.tokenStart+t;A<this.tokenEnd;A++){const r=this.charCodeAt(A);if(r===NU&&e&&n!==0)return Kc.call(this,t+n+1,!1),-1;tl(r)||this.error(e&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",A),++n>6&&this.error("Too many hex digits",A)}return this.next(),n}function lh(t){let e=0;for(;this.isDelim(py);)++e>t&&this.error("Too many question marks"),this.next()}function f9(t){this.charCodeAt(this.tokenStart)!==t&&this.error((t===MU?"Plus sign":"Hyphen minus")+" is expected")}function h9(){let t=0;switch(this.tokenType){case pt:if(t=Kc.call(this,1,!0),this.isDelim(py)){lh.call(this,6-t);break}if(this.tokenType===Tt||this.tokenType===pt){f9.call(this,NU),Kc.call(this,1,!1);break}break;case Tt:t=Kc.call(this,1,!0),t>0&&lh.call(this,6-t);break;default:if(this.eatDelim(MU),this.tokenType===xe){t=Kc.call(this,0,!0),t>0&&lh.call(this,6-t);break}if(this.isDelim(py)){this.next(),lh.call(this,5);break}this.error("Hex digit or question mark is expected")}}const p9="UnicodeRange",m9={value:String};function HU(){const t=this.tokenStart;return this.eatIdent("u"),h9.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function RU(t){this.tokenize(t.value)}const g9=Object.freeze(Object.defineProperty({__proto__:null,generate:RU,name:p9,parse:HU,structure:m9},Symbol.toStringTag,{value:"Module"})),B9=32,my=92,y9=34,w9=39,C9=40,PU=41;function b9(t){const e=t.length;let n=4,A=t.charCodeAt(e-1)===PU?e-2:e-1,r="";for(;n<A&&Ns(t.charCodeAt(n));)n++;for(;n<A&&Ns(t.charCodeAt(A));)A--;for(let i=n;i<=A;i++){let o=t.charCodeAt(i);if(o===my){if(i===A){i!==e-1&&(r=t.substr(i+1));break}if(o=t.charCodeAt(++i),hi(my,o)){const a=i-1,l=Al(t,a);i=l-1,r+=QF(t.substring(a+1,l))}else o===13&&t.charCodeAt(i+1)===10&&i++}else r+=t[i]}return r}function v9(t){let e="",n=!1;for(let A=0;A<t.length;A++){const r=t.charCodeAt(A);if(r===0){e+="�";continue}if(r<=31||r===127){e+="\\"+r.toString(16),n=!0;continue}r===B9||r===my||r===y9||r===w9||r===C9||r===PU?(e+="\\"+t.charAt(A),n=!1):(n&&tl(r)&&(e+=" "),e+=t.charAt(A),n=!1)}return"url("+e+")"}const E9="Url",k9={value:String};function VU(){const t=this.tokenStart;let e;switch(this.tokenType){case wA:e=b9(this.consume(wA));break;case kt:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(kt),this.skipSC(),e=SU(this.consume(Ki)),this.skipSC(),this.eof||this.eat(lt);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function $U(t){this.token(wA,v9(t.value))}const S9=Object.freeze(Object.defineProperty({__proto__:null,generate:$U,name:E9,parse:VU,structure:k9},Symbol.toStringTag,{value:"Module"})),F9="Value",Q9={children:[[]]};function KU(){const t=this.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:e}}function WU(t){this.children(t)}const U9=Object.freeze(Object.defineProperty({__proto__:null,generate:WU,name:F9,parse:KU,structure:Q9},Symbol.toStringTag,{value:"Module"})),T9=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),I9="WhiteSpace",_9={value:String};function GU(){return this.eat(kn),T9}function YU(t){this.token(kn,t.value)}const x9=Object.freeze(Object.defineProperty({__proto__:null,generate:YU,name:I9,parse:GU,structure:_9},Symbol.toStringTag,{value:"Module"})),O9=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Wj,Atrule:jj,AtrulePrelude:eX,AttributeSelector:aX,Block:hX,Brackets:gX,CDC:wX,CDO:vX,ClassSelector:FX,Combinator:xX,Comment:NX,Condition:$X,Declaration:r7,DeclarationList:a7,Dimension:u7,Feature:p7,FeatureFunction:y7,FeatureRange:E7,Function:Q7,GeneralEnclosed:I7,Hash:D7,IdSelector:P7,Identifier:N7,Layer:W7,LayerList:z7,MediaQuery:X7,MediaQueryList:eq,NestingSelector:rq,Nth:sq,Number:cq,Operator:fq,Parentheses:mq,Percentage:yq,PseudoClassSelector:vq,PseudoElementSelector:Fq,Ratio:Tq,Raw:Oq,Rule:Hq,Scope:Vq,Selector:Wq,SelectorList:Jq,String:e9,StyleSheet:i9,SupportsDeclaration:a9,TypeSelector:d9,UnicodeRange:g9,Url:S9,Value:U9,WhiteSpace:x9},Symbol.toStringTag,{value:"Module"})),D9={node:O9},Wo=Uj(D9),gy=["left","right","top","bottom","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","inset-block","inset-inline","inset"];function Wc(t){return gy.includes(t)}const By=["margin-block-start","margin-block-end","margin-block","margin-inline-start","margin-inline-end","margin-inline","margin-bottom","margin-left","margin-right","margin-top","margin"];function L9(t){return By.includes(t)}const yy=["width","height","min-width","min-height","max-width","max-height","block-size","inline-size","min-block-size","min-inline-size","max-block-size","max-inline-size"];function zU(t){return yy.includes(t)}const JU=["justify-self","align-self","place-self"];function M9(t){return JU.includes(t)}const jU=[...gy,...By,...yy,...JU,"position-anchor","position-area"],N9=[...yy,...gy,...By];function XU(t){return N9.includes(t)}const H9=["top","left","right","bottom","start","end","self-start","self-end","center","inside","outside"];function qU(t){return H9.includes(t)}const R9=["width","height","block","inline","self-block","self-inline"];function P9(t){return R9.includes(t)}const ZU=new Set(["Atrule","Selector","Declaration"]);function V9(t){const e=new SourceMapGenerator,n={line:1,column:0},A={line:0,column:0},r={line:1,column:0},i={generated:r};let o=1,a=0,l=!1;const u=t.node;t.node=function(p){if(p.loc&&p.loc.start&&ZU.has(p.type)){const g=p.loc.start.line,B=p.loc.start.column-1;(A.line!==g||A.column!==B)&&(A.line=g,A.column=B,n.line=o,n.column=a,l&&(l=!1,(n.line!==r.line||n.column!==r.column)&&e.addMapping(i)),l=!0,e.addMapping({source:p.loc.source,original:A,generated:n}))}u.call(this,p),l&&ZU.has(p.type)&&(r.line=o,r.column=a)};const f=t.emit;t.emit=function(p,g,B){for(let y=0;y<p.length;y++)p.charCodeAt(y)===10?(o++,a=0):a++;f(p,g,B)};const h=t.result;return t.result=function(){return l&&e.addMapping(i),{css:h(),map:e}},t}const $9=43,K9=45,wy=(t,e)=>{if(t===Lt&&(t=e),typeof t=="string"){const n=t.charCodeAt(0);return n>127?32768:n<<8}return t},eT=[[xe,xe],[xe,kt],[xe,wA],[xe,Vr],[xe,"-"],[xe,pt],[xe,Bn],[xe,Tt],[xe,jA],[xe,jt],[Un,xe],[Un,kt],[Un,wA],[Un,Vr],[Un,"-"],[Un,pt],[Un,Bn],[Un,Tt],[Un,jA],[An,xe],[An,kt],[An,wA],[An,Vr],[An,"-"],[An,pt],[An,Bn],[An,Tt],[An,jA],[Tt,xe],[Tt,kt],[Tt,wA],[Tt,Vr],[Tt,"-"],[Tt,pt],[Tt,Bn],[Tt,Tt],[Tt,jA],["#",xe],["#",kt],["#",wA],["#",Vr],["#","-"],["#",pt],["#",Bn],["#",Tt],["#",jA],["-",xe],["-",kt],["-",wA],["-",Vr],["-","-"],["-",pt],["-",Bn],["-",Tt],["-",jA],[pt,xe],[pt,kt],[pt,wA],[pt,Vr],[pt,pt],[pt,Bn],[pt,Tt],[pt,"%"],[pt,jA],["@",xe],["@",kt],["@",wA],["@",Vr],["@","-"],["@",jA],[".",pt],[".",Bn],[".",Tt],["+",pt],["+",Bn],["+",Tt],["/","*"]],W9=eT.concat([[xe,An],[Tt,An],[An,An],[Un,jt],[Un,Ki],[Un,CA],[Bn,Bn],[Bn,Tt],[Bn,kt],[Bn,"-"],[lt,xe],[lt,kt],[lt,Bn],[lt,Tt],[lt,An],[lt,"-"]]);function tT(t){const e=new Set(t.map(([n,A])=>wy(n)<<16|wy(A)));return function(n,A,r){const i=wy(A,r),o=r.charCodeAt(0);return(o===K9&&A!==xe&&A!==kt&&A!==jA||o===$9?e.has(n<<16|o<<8):e.has(n<<16|i))&&this.emit(" ",kn,!0),i}}const G9=tT(eT),nT=tT(W9),AT=Object.freeze(Object.defineProperty({__proto__:null,safe:nT,spec:G9},Symbol.toStringTag,{value:"Module"})),Y9=92;function z9(t,e){if(typeof e=="function"){let n=null;t.children.forEach(A=>{n!==null&&e.call(this,n),this.node(A),n=A});return}t.children.forEach(this.node,this)}function J9(t){OF(t,(e,n,A)=>{this.token(e,t.slice(n,A))})}function j9(t){const e=new Map;for(let[n,A]of Object.entries(t.node))typeof(A.generate||A)=="function"&&e.set(n,A.generate||A);return function(n,A){let r="",i=0,o={node(l){if(e.has(l.type))e.get(l.type).call(a,l);else throw new Error("Unknown node type: "+l.type)},tokenBefore:nT,token(l,u){i=this.tokenBefore(i,l,u),this.emit(u,l,!1),l===Lt&&u.charCodeAt(0)===Y9&&this.emit(`
191
191
  `,kn,!0)},emit(l){r+=l},result(){return r}};A&&(typeof A.decorator=="function"&&(o=A.decorator(o)),A.sourceMap&&(o=V9(o)),A.mode in AT&&(o.tokenBefore=AT[A.mode]));const a={node:l=>o.node(l),children:z9,token:(l,u)=>o.token(l,u),tokenize:J9};return o.node(n),o.result()}}const X9=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:LF,Atrule:HF,AtrulePrelude:PF,AttributeSelector:KF,Block:JF,Brackets:XF,CDC:ZF,CDO:tQ,ClassSelector:AQ,Combinator:oQ,Comment:aQ,Condition:uQ,Declaration:mQ,DeclarationList:BQ,Dimension:wQ,Feature:bQ,FeatureFunction:EQ,FeatureRange:UQ,Function:IQ,GeneralEnclosed:xQ,Hash:DQ,IdSelector:HQ,Identifier:MQ,Layer:PQ,LayerList:$Q,MediaQuery:WQ,MediaQueryList:YQ,NestingSelector:JQ,Nth:XQ,Number:ZQ,Operator:tU,Parentheses:AU,Percentage:iU,PseudoClassSelector:sU,PseudoElementSelector:lU,Ratio:fU,Raw:pU,Rule:BU,Scope:wU,Selector:bU,SelectorList:EU,String:QU,StyleSheet:IU,SupportsDeclaration:xU,TypeSelector:LU,UnicodeRange:RU,Url:$U,Value:WU,WhiteSpace:YU},Symbol.toStringTag,{value:"Module"})),q9={node:X9},Z9=j9(q9);let il=null;class vA{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return vA.createItem(e)}allocateCursor(e,n){let A;return il!==null?(A=il,il=il.cursor,A.prev=e,A.next=n,A.cursor=this.cursor):A={prev:e,next:n,cursor:this.cursor},this.cursor=A,A}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=il,il=e}updateCursors(e,n,A,r){let{cursor:i}=this;for(;i!==null;)i.prev===e&&(i.prev=n),i.next===A&&(i.next=r),i=i.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let n=this.head;n!==null;n=n.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let n=null;this.head=null;for(let A of e){const r=vA.createItem(A);n!==null?n.next=r:this.head=r,r.prev=n,n=r}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,n=this){const A=this.allocateCursor(null,this.head);for(;A.next!==null;){const r=A.next;A.next=r.next,e.call(n,r.data,r,this)}this.releaseCursor()}forEachRight(e,n=this){const A=this.allocateCursor(this.tail,null);for(;A.prev!==null;){const r=A.prev;A.prev=r.prev,e.call(n,r.data,r,this)}this.releaseCursor()}reduce(e,n,A=this){let r=this.allocateCursor(null,this.head),i=n,o;for(;r.next!==null;)o=r.next,r.next=o.next,i=e.call(A,i,o.data,o,this);return this.releaseCursor(),i}reduceRight(e,n,A=this){let r=this.allocateCursor(this.tail,null),i=n,o;for(;r.prev!==null;)o=r.prev,r.prev=o.prev,i=e.call(A,i,o.data,o,this);return this.releaseCursor(),i}some(e,n=this){for(let A=this.head;A!==null;A=A.next)if(e.call(n,A.data,A,this))return!0;return!1}map(e,n=this){const A=new vA;for(let r=this.head;r!==null;r=r.next)A.appendData(e.call(n,r.data,r,this));return A}filter(e,n=this){const A=new vA;for(let r=this.head;r!==null;r=r.next)e.call(n,r.data,r,this)&&A.appendData(r.data);return A}nextUntil(e,n,A=this){if(e===null)return;const r=this.allocateCursor(null,e);for(;r.next!==null;){const i=r.next;if(r.next=i.next,n.call(A,i.data,i,this))break}this.releaseCursor()}prevUntil(e,n,A=this){if(e===null)return;const r=this.allocateCursor(e,null);for(;r.prev!==null;){const i=r.prev;if(r.prev=i.prev,n.call(A,i.data,i,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new vA;for(let n of this)e.appendData(n);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(vA.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(vA.createItem(e))}insert(e,n=null){if(n!==null)if(this.updateCursors(n.prev,e,n,e),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=e,n.prev=e,e.next=n,this.updateCursors(null,e)}else n.prev.next=e,e.prev=n.prev,n.prev=e,e.next=n;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,n){return this.insert(vA.createItem(e),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(vA.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(vA.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,n){return e.head===null?this:(n!=null?(this.updateCursors(n.prev,e.tail,n,e.head),n.prev!==null?(n.prev.next=e.head,e.head.prev=n.prev):this.head=e.head,n.prev=e.tail,e.tail.next=n):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,n){"head"in n?this.insertList(n,e):this.insert(n,e),this.remove(e)}}function eZ(t,e){const n=Object.create(SyntaxError.prototype),A=new Error;return Object.assign(n,{name:t,message:e,get stack(){return(A.stack||"").replace(/^(.+\n){1,3}/,`${t}: ${e}
192
192
  `)}})}const Cy=100,rT=60,iT=" ";function oT({source:t,line:e,column:n,baseLine:A,baseColumn:r},i){function o(B,y){return u.slice(B,y).map((C,b)=>String(B+b+1).padStart(p)+" |"+C).join(`
193
193
  `)}const a=`
@@ -203,4 +203,4 @@ function print() { __p += __j.call(arguments, '') }
203
203
  --pa-value-align-self: var(${t}-align-self);
204
204
  }
205
205
  `.replaceAll(`
206
- `,"")}const Oee=["normal","most-width","most-height","most-block-size","most-inline-size"],Dee=["flip-block","flip-inline","flip-start"];function Lee(t){return t.type==="Declaration"}function Mee(t){return t.type==="Declaration"&&t.property==="position-try-fallbacks"}function Nee(t){return t.type==="Declaration"&&t.property==="position-try-order"}function Hee(t){return t.type==="Declaration"&&t.property==="position-try"}function Ree(t){return t.type==="Atrule"&&t.name==="position-try"}function Pee(t){return Dee.includes(t)}function Vee(t){return Oee.includes(t)}function $ee(t,e){const n=document.querySelector(t);if(n){let A=Wee(n);return e.forEach(r=>{A=xT(A,r)}),A}}function Kee(t,e){let n=t.declarations;return e.forEach(A=>{n=xT(n,A)}),n}function Wee(t){const e={};return jU.forEach(n=>{const A=yr(t,`--${n}-${mT}`);A&&(e[n]=A)}),e}const Gee={"flip-block":{top:"bottom",bottom:"top","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","margin-top":"margin-bottom","margin-bottom":"margin-top"},"flip-inline":{left:"right",right:"left","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","margin-left":"margin-right","margin-right":"margin-left"},"flip-start":{left:"top",right:"bottom",top:"left",bottom:"right","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","inset-block":"inset-inline","inset-inline":"inset-block"}},Yee={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-inline":{left:"right",right:"left",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-start":{top:"left",left:"top",right:"bottom",bottom:"right"}},zee={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start"},"flip-inline":{left:"right",right:"left",start:"end",end:"start"},"flip-start":{}};function Jee(t,e){return Gee[e][t]||t}function jee(t,e){return Yee[e][t]||t}function Xee(t,e){if(e==="flip-start")return t;{const n=zee[e];return t.split("-").map(A=>n[A]||A).join("-")}}function qee(t,e,n){if(t==="margin"){const[A,r,i,o]=e.children.toArray();n==="flip-block"?o?e.children.fromArray([i,r,A,o]):i&&e.children.fromArray([i,r,A]):n==="flip-inline"&&o&&e.children.fromArray([A,o,i,r])}else if(t==="margin-block"){const[A,r]=e.children.toArray();n==="flip-block"&&r&&e.children.fromArray([r,A])}else if(t==="margin-inline"){const[A,r]=e.children.toArray();n==="flip-inline"&&r&&e.children.fromArray([r,A])}}const Zee=(t,e)=>{var n;return((n=Go(`#id{${t}: ${e};}`).children.first)==null?void 0:n.block.children.first).value};function xT(t,e){const n={};return Object.entries(t).forEach(([A,r])=>{const i=A,o=Zee(i,r),a=Jee(i,e);a!==i&&(n[i]!=null||(n[i]="revert")),Wo(o,{visit:"Function",enter(l){dh(l)&&l.children.forEach(u=>{Yc(u)&&qU(u.name)&&(u.name=jee(u.name,e))})}}),i==="position-area"&&o.children.forEach(l=>{Yc(l)&&ST(l.name)&&(l.name=Xee(l.name,e))}),i.startsWith("margin")&&qee(i,o,e),n[a]=LA(o)}),n}function OT(t){const e=JZ(t),n=[];return e.forEach(A=>{const r={atRules:[],tactics:[],positionAreas:[]};A.forEach(i=>{Pee(i.name)?r.tactics.push(i.name):i.name.startsWith("--")?r.atRules.push(i.name):ST(i.name)&&r.positionAreas.push(i.name)}),r.positionAreas.length?n.push({positionArea:r.positionAreas[0],type:"position-area"}):r.atRules.length&&r.tactics.length?n.push({tactics:r.tactics,atRule:r.atRules[0],type:"at-rule-with-try-tactic"}):r.atRules.length?n.push({atRule:r.atRules[0],type:"at-rule"}):r.tactics.length&&n.push({tactics:r.tactics,type:"try-tactic"})}),n}function ete(t){return Mee(t)&&t.value.children.first?OT(t.value.children):[]}function tte(t){if(Hee(t)&&t.value.children.first){const e=uh(t);let n;const A=e.value.children.first.name;A&&Vee(A)&&(n=A,e.value.children.shift());const r=OT(e.value.children);return{order:n,options:r}}return{}}function nte(t){return Nee(t)&&t.value.children.first?{order:t.value.children.first.name}:{}}function Ate(t){const{order:e,options:n}=tte(t);if(e||n)return{order:e,options:n};const{order:A}=nte(t),r=ete(t);return A||r?{order:A,options:r}:{}}function rte(t){return Wc(t.property)||L9(t.property)||zU(t.property)||M9(t.property)||["position-anchor","position-area"].includes(t.property)}function ite(t){var e,n;if(Ree(t)&&(e=t.prelude)!=null&&e.value&&(n=t.block)!=null&&n.children){const A=t.prelude.value,r=t.block.children.filter(o=>Lee(o)&&rte(o)),i={uuid:`${A}-try-${Wr(12)}`,declarations:Object.fromEntries(r.map(o=>[o.property,LA(o.value)]))};return{name:A,tryBlock:i}}return{}}function ote(t){const e={},n={},A={};for(const r of t){const i=Go(r.css);Wo(i,{visit:"Atrule",enter(o){const{name:a,tryBlock:l}=ite(o);a&&l&&(e[a]=l)}})}for(const r of t){let i=!1;const o=new Set,a=Go(r.css);Wo(a,{visit:"Declaration",enter(l){var u;const f=(u=this.rule)==null?void 0:u.prelude,h=Sy(f);if(!h.length)return;const{order:p,options:g}=Ate(l),B={};p&&(B.order=p),h.forEach(({selector:y})=>{var C;g==null||g.forEach(b=>{var F;let k;if(b.type==="at-rule")k=b.atRule;else if(b.type==="try-tactic"){k=`${y}-${b.tactics.join("-")}`;const v=$ee(y,b.tactics);v&&(e[k]={uuid:`${y}-${b.tactics.join("-")}-try-${Wr(12)}`,declarations:v})}else if(b.type==="at-rule-with-try-tactic"){k=`${y}-${b.atRule}-${b.tactics.join("-")}`;const v=e[b.atRule],U=Kee(v,b.tactics);U&&(e[k]={uuid:`${y}-${b.atRule}-${b.tactics.join("-")}-try-${Wr(12)}`,declarations:U})}if(k&&e[k]){const v=`[data-anchor-polyfill="${e[k].uuid}"]`;n[v]!=null||(n[v]=[]),n[v].push(y),o.has(k)||(B.fallbacks!=null||(B.fallbacks=[]),B.fallbacks.push(e[k]),o.add(k),(F=this.stylesheet)==null||F.children.prependData({type:"Rule",prelude:{type:"Raw",value:v},block:{type:"Block",children:new vA().fromArray(Object.entries(e[k].declarations).map(([U,E])=>({type:"Declaration",important:!0,property:U,value:{type:"Raw",value:E}})))}}),i=!0)}}),Object.keys(B).length>0&&(A[y]?(B.order&&(A[y].order=B.order),B.fallbacks&&((C=A[y]).fallbacks!=null||(C.fallbacks=[]),A[y].fallbacks.push(...B.fallbacks))):A[y]=B)})}}),i&&(r.css=LA(a),r.changed=!0)}return{fallbackTargets:n,validPositions:A}}function ste(t,e){return!t||t===e?!1:DT(t)?t.document.contains(e):t.contains(e)}function DT(t){return!!(t&&t===t.window)}function ate(t){return ol(t,"position","fixed")}function Iy(t){return!!(t&&(ate(t)||ol(t,"position","absolute")))}function LT(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING}function lte(t){return Jt(this,null,function*(){return yield JA.getOffsetParent(t)})}function _y(t){return Jt(this,null,function*(){if(!["absolute","fixed"].includes(yr(t,"position")))return yield lte(t);let e=t.parentElement;for(;e;){if(!ol(e,"position","static")&&ol(e,"display","block"))return e;e=e.parentElement}return window})}function cte(t,e,n,A){return Jt(this,null,function*(){const r=yield _y(t),i=yield _y(n);if(!(ste(i,t)||DT(i))||r===i&&!(!Iy(t)||LT(t,n)))return!1;if(r!==i){let o;const a=[];for(o=r;o&&o!==i&&o!==window;)a.push(o),o=yield _y(o);const l=a[a.length-1];if(l instanceof HTMLElement&&!(!Iy(l)||LT(l,n)))return!1}{let o=t.parentElement;for(;o;){if(ol(o,"content-visibility","hidden"))return!1;o=o.parentElement}}return!(e&&A&&MT(t,e,A)!==MT(n,e,A))})}function MT(t,e,n){for(;!(t.matches(n)&&iee(t,e));){if(!t.parentElement)return null;t=t.parentElement}return t}function ute(t,e,n,A){return Jt(this,null,function*(){if(!(t instanceof HTMLElement&&n.length&&Iy(t)))return null;const r=n.flatMap(Aee).filter(o=>ree(o,e)),i=A.map(o=>o.selector).join(",")||null;for(let o=r.length-1;o>=0;o--){const a=r[o],l="fakePseudoElement"in a;if(yield cte(l?a.fakePseudoElement:a,e,t,i))return l&&a.removeFakePseudoElement(),a}return null})}function dte(t){return t.type==="Declaration"&&t.property==="anchor-name"}function fte(t){return t.type==="Declaration"&&t.property==="anchor-scope"}function xy(t){return!!(t&&t.type==="Function"&&t.name==="anchor-size")}function fh(t){return!!(t&&t.type==="Function"&&t.name==="var")}function Yc(t){return!!(t.type==="Identifier"&&t.name)}function hte(t){return!!(t.type==="Percentage"&&t.value)}function NT(t,e){let n,A,r,i="",o=!1,a;const l=[];t.children.toArray().forEach(p=>{if(o){i=`${i}${LA(p)}`;return}if(p.type==="Operator"&&p.value===","){o=!0;return}l.push(p)});let[u,f]=l;if(f||(f=u,u=void 0),u&&(Yc(u)&&u.name.startsWith("--")?n=u.name:fh(u)&&u.children.first&&(a=u.children.first.name)),f)if(dh(t)){if(Yc(f)&&qU(f.name))A=f.name;else if(hte(f)){const p=Number(f.value);A=Number.isNaN(p)?void 0:p}}else xy(t)&&Yc(f)&&P9(f.name)&&(r=f.name);const h=`--anchor-${Wr(12)}`;return Object.assign(t,{type:"Raw",value:`var(${h})`,children:null}),Reflect.deleteProperty(t,"name"),{anchorName:n,anchorSide:A,anchorSize:r,fallbackValue:i||"0px",customPropName:a,uuid:h}}function HT(t){return t.value.children.map(({name:e})=>e)}let zc={},Vs={},$s={},Jc={},Ks={};function pte(){zc={},Vs={},$s={},Jc={},Ks={}}function mte(t,e){var n;if((dh(t)||xy(t))&&e){if(e.property.startsWith("--")){const A=LA(e.value),r=NT(t);return Jc[r.uuid]=A,$s[e.property]=[...(n=$s[e.property])!=null?n:[],r],{changed:!0}}if(dh(t)&&Wc(e.property)||xy(t)&&XU(e.property)){const A=NT(t);return{prop:e.property,data:A,changed:!0}}}return{}}function RT(t,e){return Jt(this,null,function*(){let n=e==null?void 0:e.anchorName;const A=e==null?void 0:e.customPropName;if(t&&!n){const a=yr(t,"position-anchor");a?n=a:A&&(n=yr(t,A))}const r=n?zc[n]||[]:[],i=n?Vs[gT.All]||[]:[],o=n?Vs[n]||[]:[];return yield ute(t,n||null,r,[...i,...o])})}function gte(t){return Jt(this,null,function*(){var e,n,A,r,i,o,a,l,u,f,h;const p={},g={};pte();const{fallbackTargets:B,validPositions:y}=ote(t);for(const U of t){let E=!1;const I=Go(U.css);Wo(I,function(O){var x,H,ie,re;const ce=(x=this.rule)==null?void 0:x.prelude,R=Sy(ce);if(dte(O)&&R.length)for(const Y of HT(O))zc[Y]!=null||(zc[Y]=[]),zc[Y].push(...R);if(fte(O)&&R.length)for(const Y of HT(O))Vs[Y]!=null||(Vs[Y]=[]),Vs[Y].push(...R);const{prop:W,data:$,changed:te}=mte(O,this.declaration);if(W&&$&&R.length)for(const{selector:Y}of R)p[Y]=OA(Vn({},p[Y]),{[W]:[...(ie=(H=p[Y])==null?void 0:H[W])!=null?ie:[],$]});let ee;if(this.block&&(ee=Uee(O),ee)){Tee(ee,this.block);for(const{selector:Y}of R)g[Y]=[...(re=g[Y])!=null?re:[],ee]}(te||ee)&&(E=!0)}),E&&(U.css=LA(I),U.changed=!0)}const C=new Set(Object.keys($s)),b={},F=U=>{var E,I,O,x,H;const ie=[],re=new Set((I=(E=b[U])==null?void 0:E.names)!=null?I:[]);for(;re.size>0;)for(const ce of re)ie.push(...(O=$s[ce])!=null?O:[]),re.delete(ce),(H=(x=b[ce])==null?void 0:x.names)!=null&&H.length&&b[ce].names.forEach(R=>re.add(R));return ie};for(;C.size>0;){const U=[];for(const E of t){let I=!1;const O=Go(E.css);Wo(O,{visit:"Function",enter(x){var H,ie;const re=(H=this.rule)==null?void 0:H.prelude,ce=this.declaration,R=ce==null?void 0:ce.property;if((re==null?void 0:re.children.isEmpty)===!1&&fh(x)&&ce&&R&&x.children.first&&C.has(x.children.first.name)&&R.startsWith("--")){const W=x.children.first,$=(ie=$s[W.name])!=null?ie:[],te=F(W.name);if(!($.length||te.length))return;const ee=`${W.name}-anchor-${Wr(12)}`,Y=LA(ce.value);Jc[ee]=Y,b[R]||(b[R]={names:[],uuids:[]});const he=b[R];he.names.includes(W.name)||he.names.push(W.name),he.uuids.push(ee),U.push(R),W.name=ee,I=!0}}}),I&&(E.css=LA(O),E.changed=!0)}C.clear(),U.forEach(E=>C.add(E))}for(const U of t){let E=!1;const I=Go(U.css);Wo(I,{visit:"Function",enter(O){var x,H,ie,re,ce,R,W;const $=(x=this.rule)==null?void 0:x.prelude,te=this.declaration,ee=te==null?void 0:te.property;if(($==null?void 0:$.children.isEmpty)===!1&&fh(O)&&te&&ee&&O.children.first&&(Wc(ee)||zU(ee))){const Y=O.children.first,he=(H=$s[Y.name])!=null?H:[],Z=F(Y.name);if(!(he.length||Z.length))return;const Ce=`${ee}-${Wr(12)}`;if(Z.length){const J=new Set([Y.name]);for(;J.size>0;)for(const Ae of J){const oe=b[Ae];if((ie=oe==null?void 0:oe.names)!=null&&ie.length&&(re=oe==null?void 0:oe.uuids)!=null&&re.length)for(const Q of oe.names)for(const q of oe.uuids)Ks[q]=OA(Vn({},Ks[q]),{[Ce]:`${Q}-${Ce}`});J.delete(Ae),(ce=oe==null?void 0:oe.names)!=null&&ce.length&&oe.names.forEach(Q=>J.add(Q))}}const V=Sy($);for(const J of[...he,...Z]){const Ae=Vn({},J),oe=`--anchor-${Wr(12)}-${ee}`,Q=Ae.uuid;Ae.uuid=oe;for(const{selector:q}of V)p[q]=OA(Vn({},p[q]),{[ee]:[...(W=(R=p[q])==null?void 0:R[ee])!=null?W:[],Ae]});Ks[Q]=OA(Vn({},Ks[Q]),{[Ce]:oe})}Y.name=`${Y.name}-${Ce}`,E=!0}}}),E&&(U.css=LA(I),U.changed=!0)}if(Object.keys(Ks).length>0)for(const U of t){let E=!1;const I=Go(U.css);Wo(I,{visit:"Function",enter(O){var x,H,ie,re;if(fh(O)&&(H=(x=O.children.first)==null?void 0:x.name)!=null&&H.startsWith("--")&&(re=(ie=this.declaration)==null?void 0:ie.property)!=null&&re.startsWith("--")&&this.block){const ce=O.children.first,R=Ks[ce.name];if(R)for(const[W,$]of Object.entries(R))this.block.children.appendData({type:"Declaration",important:!1,property:`${this.declaration.property}-${W}`,value:{type:"Raw",value:LA(this.declaration.value).replace(`var(${ce.name})`,`var(${$})`)}}),E=!0;Jc[ce.name]&&(this.declaration.value={type:"Raw",value:Jc[ce.name]},E=!0)}}}),E&&(U.css=LA(I),U.changed=!0)}const k=new Map;for(const[U,E]of Object.entries(p)){let I;U.startsWith("[data-anchor-polyfill=")&&(e=B[U])!=null&&e.length?I=document.querySelectorAll(B[U].join(",")):I=document.querySelectorAll(U);for(const[O,x]of Object.entries(E))for(const H of x)for(const ie of I){const re=yield RT(ie,H),ce=`--anchor-${Wr(12)}`;k.set(ie,OA(Vn({},(n=k.get(ie))!=null?n:{}),{[H.uuid]:ce})),ie.setAttribute("style",`${H.uuid}: var(${ce}); ${(A=ie.getAttribute("style"))!=null?A:""}`),y[U]=OA(Vn({},y[U]),{declarations:OA(Vn({},(r=y[U])==null?void 0:r.declarations),{[O]:[...(a=(o=(i=y[U])==null?void 0:i.declarations)==null?void 0:o[O])!=null?a:[],OA(Vn({},H),{anchorEl:re,targetEl:ie,uuid:ce})]})})}}const v={el:document.createElement("link"),changed:!1,created:!0,css:""};t.push(v);for(const[U,E]of Object.entries(g)){const I=document.querySelectorAll(U);for(const O of I){const x=yield RT(O);for(const H of E){const ie=yield _ee(O,H,x);v.css+=xee(ie.targetUUID,H.selectorUUID),v.changed=!0,y[U]=OA(Vn({},y[U]),{declarations:OA(Vn({},(l=y[U])==null?void 0:l.declarations),{"position-area":[...(h=(f=(u=y[U])==null?void 0:u.declarations)==null?void 0:f["position-area"])!=null?h:[],ie]})})}}}return{rules:y,inlineStyles:k,anchorScopes:Vs}})}const Bte=["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","referrerpolicy","rel","type"];function PT(t,e,n=!1){const A=[];for(const{el:r,css:i,changed:o,created:a=!1}of t){const l={el:r,css:i,changed:!1};if(o){if(r.tagName.toLowerCase()==="style")r.innerHTML=i;else if(r instanceof HTMLLinkElement){const u=document.createElement("style");u.textContent=i;for(const f of r.getAttributeNames())if(!f.startsWith("on")&&!Bte.includes(f)){const h=r.getAttribute(f);h!==null&&u.setAttribute(f,h)}r.hasAttribute("href")&&u.setAttribute("data-original-href",r.getAttribute("href")),a?(u.setAttribute("data-generated-by-polyfill","true"),document.head.insertAdjacentElement("beforeend",u)):(r.insertAdjacentElement("beforebegin",u),r.remove()),l.el=u}else if(r.hasAttribute("data-has-inline-styles")){const u=r.getAttribute("data-has-inline-styles");if(u){const f=`[data-has-inline-styles="${u}"]{`;let h=i.slice(f.length,0-1);const p=e==null?void 0:e.get(r);if(p)for(const[g,B]of Object.entries(p))h=`${g}: var(${B}); ${h}`;r.setAttribute("style",h)}}}n&&r.hasAttribute("data-has-inline-styles")&&r.removeAttribute("data-has-inline-styles"),A.push(l)}return A}const yte=OA(Vn({},JA),{_c:new Map}),wte=(t,e)=>{let n;switch(t){case"start":case"self-start":n=0;break;case"end":case"self-end":n=100;break;default:typeof t=="number"&&!Number.isNaN(t)&&(n=t)}if(n!==void 0)return e?100-n:n},Cte=(t,e)=>{let n;switch(t){case"block":case"self-block":n=e?"width":"height";break;case"inline":case"self-inline":n=e?"height":"width";break}return n},VT=t=>{switch(t){case"top":case"bottom":return"y";case"left":case"right":return"x"}return null},bte=t=>{switch(t){case"x":return"width";case"y":return"height"}return null},$T=t=>yr(t,"display")==="inline",KT=(t,e)=>(e==="x"?["border-left-width","border-right-width"]:["border-top-width","border-bottom-width"]).reduce((n,A)=>n+parseInt(yr(t,A),10),0)||0,hh=(t,e)=>parseInt(yr(t,`margin-${e}`),10)||0,vte=t=>({top:hh(t,"top"),right:hh(t,"right"),bottom:hh(t,"bottom"),left:hh(t,"left")}),Oy=t=>Jt(null,[t],function*({targetEl:e,targetProperty:n,anchorRect:A,anchorSide:r,anchorSize:i,fallback:o=null}){var a;if(!((i||r!==void 0)&&e&&A))return o;if(i){if(!XU(n))return o;let l;switch(i){case"width":case"height":l=i;break;default:{let u=!1;const f=yr(e,"writing-mode");u=f.startsWith("vertical-")||f.startsWith("sideways-"),l=Cte(i,u)}}return l?`${A[l]}px`:o}if(r!==void 0){let l,u;const f=VT(n);if(!(Wc(n)&&f&&(!Wc(r)||f===VT(r))))return o;const h=["top","left"];switch(r){case"left":case"top":l=0;break;case"right":case"bottom":l=100;break;case"center":l=50;break;case"inside":l=h.includes(n)?0:100;break;case"outside":l=h.includes(n)?100:0;break;default:if(e){const B=(yield(a=JA.isRTL)==null?void 0:a.call(JA,e))||!1;l=wte(r,B)}}const p=typeof l=="number"&&!Number.isNaN(l),g=bte(f);if(p&&g){(n==="bottom"||n==="right")&&(u=yield Qy(e));let B=A[f]+A[g]*(l/100);switch(n){case"bottom":{if(!u)break;let y=u.clientHeight;if(y===0&&$T(u)){const C=KT(u,f);y=u.offsetHeight-C}B=y-B;break}case"right":{if(!u)break;let y=u.clientWidth;if(y===0&&$T(u)){const C=KT(u,f);y=u.offsetWidth-C}B=y-B;break}}return`${B}px`}}return o}),Ete=t=>"wrapperEl"in t,kte=t=>"uuid"in t;function Ste(t,e=!1){return Jt(this,null,function*(){const n=document.documentElement;for(const[A,r]of Object.entries(t))for(const i of r){const o=i.anchorEl,a=i.targetEl;if(o&&a)if(Ete(i)){const l=i.wrapperEl,u=(f,h,p)=>Jt(null,null,function*(){return f===0?"0px":yield Oy({targetEl:l,targetProperty:h,anchorRect:p,anchorSide:f})});qB(o,l,()=>Jt(null,null,function*(){const f=yr(a,bT);l.setAttribute(vT,f);const h=yield JA.getElementRects({reference:o,floating:l,strategy:"absolute"}),p=i.insets,g=yield u(p.block[0],"top",h.reference),B=yield u(p.block[1],"bottom",h.reference),y=yield u(p.inline[0],"left",h.reference),C=yield u(p.inline[1],"right",h.reference);n.style.setProperty(`${i.targetUUID}-top`,g||null),n.style.setProperty(`${i.targetUUID}-left`,y||null),n.style.setProperty(`${i.targetUUID}-right`,C||null),n.style.setProperty(`${i.targetUUID}-bottom`,B||null),n.style.setProperty(`${i.targetUUID}-justify-self`,i.alignments.inline),n.style.setProperty(`${i.targetUUID}-align-self`,i.alignments.block)}),{animationFrame:e})}else qB(o,a,()=>Jt(null,null,function*(){const l=yield JA.getElementRects({reference:o,floating:a,strategy:"absolute"}),u=yield Oy({targetEl:a,targetProperty:A,anchorRect:l.reference,anchorSide:i.anchorSide,anchorSize:i.anchorSize,fallback:i.fallbackValue});n.style.setProperty(i.uuid,u)}),{animationFrame:e});else if(kte(i)){const l=yield Oy({targetProperty:A,anchorSide:i.anchorSide,anchorSize:i.anchorSize,fallback:i.fallbackValue});n.style.setProperty(i.uuid,l)}}})}function WT(t,e){return Jt(this,null,function*(){const n=yield JA.getElementRects({reference:t,floating:t,strategy:"absolute"});return yield Sj({x:t.offsetLeft,y:t.offsetTop,platform:yte,rects:n,elements:{floating:t,reference:e},strategy:"absolute"},{padding:vte(t)})})}function Fte(t,e,n=!1){return Jt(this,null,function*(){if(!e.length)return;const A=document.querySelectorAll(t);for(const r of A){let i=!1;const o=yield Qy(r);qB({},r,()=>Jt(null,null,function*(){if(i)return;i=!0,r.removeAttribute("data-anchor-polyfill");const a=yield WT(r,o);if(Object.values(a).every(l=>l<=0)){r.removeAttribute("data-anchor-polyfill-last-successful"),i=!1;return}for(const[l,{uuid:u}]of e.entries()){r.setAttribute("data-anchor-polyfill",u);const f=yield WT(r,o);if(Object.values(f).every(h=>h<=0)){r.setAttribute("data-anchor-polyfill-last-successful",u),i=!1;break}if(l===e.length-1){const h=r.getAttribute("data-anchor-polyfill-last-successful");h?r.setAttribute("data-anchor-polyfill",h):r.removeAttribute("data-anchor-polyfill"),i=!1;break}}}),{animationFrame:n,layoutShift:!1})}})}function Qte(t,e=!1){return Jt(this,null,function*(){var n,A;for(const r of Object.values(t))yield Ste((n=r.declarations)!=null?n:{},e);for(const[r,i]of Object.entries(t))yield Fte(r,(A=i.fallbacks)!=null?A:[],e)})}function Ute(t={}){const e=typeof t=="boolean"?{useAnimationFrame:t}:t,n=e.useAnimationFrame===void 0?!!window.UPDATE_ANCHOR_ON_ANIMATION_FRAME:e.useAnimationFrame;return Array.isArray(e.elements)||(e.elements=void 0),Object.assign(e,{useAnimationFrame:n})}function Tte(t){return Jt(this,null,function*(){const e=Ute(t??window.ANCHOR_POSITIONING_POLYFILL_OPTIONS);let n=yield cee(e.elements,e.excludeInlineStyles),A={},r;XZ();try{ZZ(n)&&(n=PT(n));const i=yield gte(n);A=i.rules,r=i.inlineStyles}catch(i){throw jZ(),i}return Object.values(A).length&&(PT(n,r,!0),yield Qte(A,e.useAnimationFrame)),A})}const Ite={class:"popover-tooltip"},_te=["popovertarget","disabled","aria-describedby","aria-label"],xte=s.createElementVNode("span",{class:"popover-tooltip__trigger"}," i ",-1),Ote={class:"popover-tooltip__content d-flex flex-column"},Dte={key:0,class:"popover-tooltip__header d-flex p-3 border-bottom"},Lte=["innerHTML"],Mte={class:"popover-tooltip__body"},Nte=["innerHTML"],Hte={key:1,class:"popover-tooltip__footer d-flex p-3 border-top"},Rte=s.defineComponent({__name:"popover-tooltip",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-tooltip-${Math.random().toString(36).substr(2,9)}`},size:{type:String},exclusive:{type:Boolean,default:!0},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:String,default:""},hover:{type:Boolean,default:!1},hoverDelay:{type:Number,default:400},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(a){A("update:modelValue",a)}}),i=s.ref(),o=s.ref();return s.onMounted(()=>{"anchorName"in document.documentElement.style||Tte().then(a=>{console.log("Running polyfill",a)})}),(a,l)=>(s.openBlock(),s.createElementBlock("span",Ite,[s.createElementVNode("button",{type:"button",popovertarget:t.id,disabled:t.disabled,"aria-describedby":t.id,"aria-label":t.ariaLabel||a.$te("common.moreInfo")?a.$t("common.moreInfo"):void 0,ref_key:"trigger",ref:i},[s.renderSlot(a.$slots,"button",{},()=>[xte])],8,_te),s.createVNode(KB,{id:t.id,modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=u=>r.value=u),hover:t.hover,"hover-delay":t.hoverDelay,ref_key:"dialog",ref:o,role:"tooltip",class:s.normalizeClass(t.size?`popover-tooltip--${t.size}`:"")},{default:s.withCtx(()=>[s.createElementVNode("div",Ote,[t.header?(s.openBlock(),s.createElementBlock("div",Dte,[t.title?(s.openBlock(),s.createElementBlock("h5",{key:0,class:"popover-tooltip__title",innerHTML:t.title},null,8,Lte)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:l[0]||(l[0]=u=>r.value=!1)})])):s.createCommentVNode("",!0),s.createElementVNode("div",Mte,[s.renderSlot(a.$slots,"default",{},()=>[s.createElementVNode("span",{innerHTML:t.content},null,8,Nte)])]),t.footer?(s.openBlock(),s.createElementBlock("div",Hte,[s.renderSlot(a.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:l[1]||(l[1]=u=>r.value=!1)},s.toDisplayString(a.$t("common.close")),1)])):s.createCommentVNode("",!0)])]),_:3},8,["id","modelValue","hover","hover-delay","class"])]))}}),zce="",Pte={class:"popover-notification__header d-flex justify-content-between align-items-center mb-2"},Vte={class:"popover-notification__title"},$te=["onClick"],Kte=["innerHTML"],Wte=s.defineComponent({__name:"popover-notifications",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-notifications-${Math.random().toString(36).substr(2,9)}`},items:{type:Array,default:()=>[]},debounceItem:{type:Number,default:0},closeTimeout:{type:Number,default:8e3},collapsible:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=t,A=s.ref([]),r=s.ref([]),i=s.ref(!1),o=s.computed(()=>n.collapsible&&A.value.length>3);function a(h,p){A.value=A.value.filter(g=>g.id!==h.id)}s.watch(()=>n.items,(h,p)=>{const g=h.filter(B=>!p.some(y=>y.id===B.id));r.value=[...r.value,...g]});function l(){setTimeout(()=>{const h=r.value.shift();h&&A.value.push({...h,closeTimeout:n.closeTimeout,visible:!0}),r.value.length>0&&l()},A.value.length?n.debounceItem:0)}function u(h){o.value&&(h.preventDefault(),h.stopPropagation(),i.value=!i.value)}function f(h){r.value.push(h)}return s.onMounted(()=>{r.value=n.items,r.value.length>3&&(i.value=!0),l()}),e({addItem:f}),(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["popover-notifications",{"popover-notifications--collapsed":i.value}]),style:{anchorName:"--popover-notifications"}},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(A.value,(g,B)=>(s.openBlock(),s.createBlock(KB,{key:g.id,id:g.id,"close-timeout":g.closeTimeout,type:"manual",class:"popover-notification",modelValue:g.visible,"onUpdate:modelValue":[y=>g.visible=y,y=>a(g)],onClick:u},{default:s.withCtx(()=>[s.renderSlot(h.$slots,"item",{item:g},()=>[s.createElementVNode("div",Pte,[s.createElementVNode("span",Vte,s.toDisplayString(g.title),1),s.createElementVNode("button",{type:"button",class:"btn btn-close p-0",onClick:s.withModifiers(y=>g.visible=!1,["stop"]),"aria-label":"Close notification"},null,8,$te)]),s.createElementVNode("span",{innerHTML:g.content},null,8,Kte)])]),_:2},1032,["id","close-timeout","modelValue","onUpdate:modelValue"]))),128))],2))}}),Jce="",Gte={class:"link-sharing"},Yte={key:0,class:"link-sharing__links container"},zte={class:"row"},Jte={key:0,class:"col-12 col-md-6"},jte=["href"],Xte={class:"caption"},qte={key:1,class:"col-12 col-md-6"},Zte=["href"],ene={class:"caption"},tne={key:2,class:"col-12 col-md-6"},nne={class:"caption"},Ane={key:3,class:"col-12 col-md-6"},rne=["href"],ine={class:"caption"},one={key:4,class:"col-12 col-md-6"},sne=["href"],ane={class:"caption"},lne={key:5,class:"col-12 col-md-6"},cne={class:"caption"},une={key:6,class:"col-12 col-md-6"},dne=["href"],fne={class:"caption"},hne={key:1,class:"link-sharing__instructions pt-5"},pne={class:"row"},mne={class:"col-12 text-center py-0"},gne={class:"mb-5"},Bne=t=>t.replace(/<(?:.|\n)*?>/gm,""),yne=s.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,n=s.ref(!1),A=s.computed(()=>encodeURIComponent(e.url));s.computed(()=>encodeURIComponent(e.media));const r=s.computed(()=>Bne(e.text)),i=s.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function o(){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,l)=>{const u=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",Gte,[n.value?(s.openBlock(),s.createElementBlock("div",hne,[s.createElementVNode("div",pne,[s.createElementVNode("div",mne,[s.createElementVNode("div",gne,[s.createElementVNode("p",null,s.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),s.createElementVNode("p",null,[s.createElementVNode("strong",null,s.toDisplayString(t.hashtags),1)])])])])])):(s.openBlock(),s.createElementBlock("div",Yte,[s.createElementVNode("div",zte,[t.services.facebook?(s.openBlock(),s.createElementBlock("div",Jte,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${A.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"facebook"}),s.createElementVNode("span",Xte,s.toDisplayString(a.$t("sharing.facebook")),1)],8,jte)])):s.createCommentVNode("",!0),t.services.bluesky?(s.openBlock(),s.createElementBlock("div",qte,[s.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"},[s.createVNode(u,{symbol:"bluesky-logo"}),s.createElementVNode("span",ene,s.toDisplayString(a.$t("sharing.bluesky")),1)],8,Zte)])):s.createCommentVNode("",!0),t.services.instagram?(s.openBlock(),s.createElementBlock("div",tne,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:l[0]||(l[0]=s.withModifiers(f=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"instagram"}),s.createElementVNode("span",nne,s.toDisplayString(a.$t("sharing.instagram")),1)])])):s.createCommentVNode("",!0),t.services.linkedin?(s.openBlock(),s.createElementBlock("div",Ane,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${A.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"linkedin"}),s.createElementVNode("span",ine,s.toDisplayString(a.$t("sharing.linkedin")),1)],8,rne)])):s.createCommentVNode("",!0),t.services.whatsapp&&i.value?(s.openBlock(),s.createElementBlock("div",one,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${A.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"whatsapp"}),s.createElementVNode("span",ane,s.toDisplayString(a.$t("sharing.whatsapp")),1)],8,sne)])):s.createCommentVNode("",!0),t.services.clipboard?(s.openBlock(),s.createElementBlock("div",lne,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:s.withModifiers(o,["prevent","stop"])},[s.createVNode(u,{symbol:"copy"}),s.createElementVNode("span",cne,s.toDisplayString(a.$t("sharing.clipboard")),1)])])):s.createCommentVNode("",!0),t.services.mailto?(s.openBlock(),s.createElementBlock("div",une,[s.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"},[s.createVNode(u,{symbol:"mail"}),s.createElementVNode("span",fne,s.toDisplayString(a.$t("sharing.mailto")),1)],8,dne)])):s.createCommentVNode("",!0)])]))])}}}),jce="",wne={class:"base-form"},Cne=s.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function n(r){console.log("reset",r)}function A(r){console.log("submit",r)}return(r,i)=>(s.openBlock(),s.createElementBlock("div",wne,[s.createElementVNode("form",{ref:"form",onInput:e,onReset:n,onSubmit:s.withModifiers(A,["prevent"])},[s.renderSlot(r.$slots,"default")],544)]))}}),Xce="",bne={class:"modal-dialog__content d-flex flex-column"},vne={class:"modal-dialog__header d-flex p-3 border-bottom"},Ene={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},kne={class:"modal-dialog__body"},Sne={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},Fne=s.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:n}){const A=t,r=n,i=s.ref();function o(){var p,g;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),A.modal?(p=i.value)==null||p.showModal():(g=i.value)==null||g.show(),r("update:modelValue",!0)}function a(){const p=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),g=new Animation(p,document.timeline);g.play(),g.addEventListener("finish",()=>{var B;(B=i.value)==null||B.close(),l()}),r("update:modelValue",!1)}function l(){const p=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(p,10),behavior:"instant"}),r("update:modelValue",!1)}function u(p){o(),r("confirm",p)}function f(){a(),r("cancel")}function h(p){const g=p.target;g&&g.nodeName==="DIALOG"&&a()}return s.watch(()=>A.modelValue,(p,g)=>{p&&p!==g?o():g&&a()},{immediate:!0}),s.onMounted(()=>{var p;(p=i.value)==null||p.addEventListener("cancel",g=>{g.preventDefault(),a()}),A.dismiss&&document.addEventListener("click",h),A.modelValue&&o()}),s.onBeforeUnmount(()=>{A.dismiss&&document.removeEventListener("click",h)}),e({show:o,close:a,confirm:u,cancel:f}),(p,g)=>(s.openBlock(),s.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:s.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:l},[s.createElementVNode("div",bne,[s.createElementVNode("div",vne,[t.title?(s.openBlock(),s.createElementBlock("h5",Ene,s.toDisplayString(t.title),1)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),s.createElementVNode("div",kne,[s.renderSlot(p.$slots,"default")]),t.footer?(s.openBlock(),s.createElementBlock("div",Sne,[s.renderSlot(p.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},s.toDisplayString(p.$t("common.close")),1)])):s.createCommentVNode("",!0)])],34))}}),qce="",Qne=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],Une=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],Tne={key:0,class:"sortable-list__drag-handle"},Ine={type:"button",class:"btn"},_ne={key:0,class:"sortable-list__item"},xne=s.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 n=t,A=s.ref(!1),r=s.ref(null),i=s.ref(null),o=e,a=s.computed({get(){return n.modelValue},set(F){o("update:modelValue",F)}}),l=s.computed(()=>{var F;return(F=document.querySelector(".is-drag-item"))==null?void 0:F.outerHTML}),u=s.useSlots(),f=s.computed(()=>u["list-append"]);function h(F,k){F.dataTransfer&&(F.dataTransfer.dropEffect="move",F.dataTransfer.effectAllowed="move",F.dataTransfer.setData("index",k.toLocaleString()),A.value=!0,r.value=k)}function p(F,k){A.value=!1,r.value=null,i.value=null}function g(F,k){}function B(F,k){i.value=r.value!==k?k:null}function y(F,k){}function C(F,k){}function b(F,k){if(F.dataTransfer){F.preventDefault();const v=Number(F.dataTransfer.getData("index")),U=k,E=[...a.value];(U||U===0)&&(v||v===0)&&E.splice(U,0,E.splice(v,1)[0]),a.value=E}}return(F,k)=>{const v=s.resolveComponent("svg-icon");return s.openBlock(),s.createBlock(s.TransitionGroup,{name:"list",tag:"ul",class:s.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:k[0]||(k[0]=s.withModifiers(()=>{},["prevent"])),onDragenter:k[1]||(k[1]=s.withModifiers(()=>{},["prevent"]))},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(U,E)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:E},[t.showPreview&&A.value&&i.value===E?(s.openBlock(),s.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:I=>B(I,E),onDragover:I=>void 0,onDragleave:I=>void 0,onDragend:I=>p(),onDrop:I=>b(I,E),innerHTML:l.value},null,40,Qne)):s.createCommentVNode("",!0),s.createElementVNode("li",{class:s.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":A.value&&r.value===E,"is-drop-target":A.value&&i.value===E&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:I=>h(I,E),onDrag:I=>void 0,onDragenter:I=>B(I,E),onDragover:I=>void 0,onDragleave:I=>void 0,onDragend:I=>p(),onDrop:I=>b(I,E)},[t.showDragHandle?(s.openBlock(),s.createElementBlock("div",Tne,[s.createElementVNode("button",Ine,[s.createVNode(v,{symbol:"drag"})])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[s.renderSlot(F.$slots,"list-item",{item:U,index:E},()=>[s.createTextVNode(s.toDisplayString(U),1)])],2)],42,Une)],64))),128)),f.value?(s.openBlock(),s.createElementBlock("li",_ne,[s.renderSlot(F.$slots,"list-append")])):s.createCommentVNode("",!0)]),_:3},8,["class"])}}}),Zce="",One={class:"touch-wrapper__controls"},Dne={class:"btn-group",role:"group"},Lne=s.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.getCurrentInstance(),A=n&&n.appContext.config.globalProperties.$config,r=t,i=e,o=s.ref();function a(f){const h=r.modelValue+f;i("update:modelValue",f===0?1:h>=1?h:1)}function l(f){if(f.ctrlKey){f.preventDefault();const h=0-f.deltaY*.01;a(h)}}function u(f){f.preventDefault();const{scale:h}=f,p=h>1?h*.01:0-h;a(p)}return s.onMounted(()=>{o.value&&(o.value.addEventListener("wheel",l,!1),o.value.addEventListener("gesturestart",u,!1),o.value.addEventListener("gesturechange",u,!1),o.value.addEventListener("gestureend",u,!1))}),(f,h)=>{const p=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",{ref_key:"touchElement",ref:o,class:"touch-wrapper"},[s.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[s.createElementVNode("div",One,[s.createElementVNode("div",Dne,[s.createElementVNode("button",{type:"button",class:"btn",onClick:h[0]||(h[0]=g=>a(-1))},[s.createVNode(p,{symbol:"minus","base-path":s.unref(A).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[1]||(h[1]=g=>a(0))},[s.createVNode(p,{symbol:"maximize","base-path":s.unref(A).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[2]||(h[2]=g=>a(1))},[s.createVNode(p,{symbol:"plus","base-path":s.unref(A).iconSprite},null,8,["base-path"])])])])]),s.renderSlot(f.$slots,"default")],512)}}}),eue="";Ye.Accordion=$x,Ye.AccordionItem=Nx,Ye.AssetUploader=d5,Ye.AutoSuggest=OW,Ye.BaseButton=Wx,Ye.BaseCamera=eG,Ye.BaseCarousel=nk,Ye.BaseForm=Cne,Ye.BaseHeadline=Qx,Ye.BaseImage=Sx,Ye.BaseInput=Jx,Ye.BaseParagraph=Tx,Ye.CheckGroup=UR,Ye.ColorPalette=gW,Ye.DomRenderer=ZJ,Ye.FileUpload=n5,Ye.InputCheckbox=AO,Ye.InputColor=hW,Ye.InputDatepicker=vR,Ye.InputDatetime=sO,Ye.InputDropdown=UW,Ye.InputFile=KR,Ye.InputPassword=kR,Ye.InputTextarea=Zx,Ye.LinkSharing=yne,Ye.LoadingSpinner=Ex,Ye.MediaThumbnails=B5,Ye.ModalDialog=Fne,Ye.PopoverDialog=KB,Ye.PopoverNotifications=Wte,Ye.PopoverTooltip=Rte,Ye.ProgressSteps=F5,Ye.RadioButtons=LR,Ye.RadioGroup=Iu,Ye.RteEditor=cW,Ye.SelectMedia=YR,Ye.SortableList=xne,Ye.SvgIcon=Cx,Ye.TouchWrapper=Lne,Ye.UploadGroup=tk,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});
206
+ `,"")}const Oee=["normal","most-width","most-height","most-block-size","most-inline-size"],Dee=["flip-block","flip-inline","flip-start"];function Lee(t){return t.type==="Declaration"}function Mee(t){return t.type==="Declaration"&&t.property==="position-try-fallbacks"}function Nee(t){return t.type==="Declaration"&&t.property==="position-try-order"}function Hee(t){return t.type==="Declaration"&&t.property==="position-try"}function Ree(t){return t.type==="Atrule"&&t.name==="position-try"}function Pee(t){return Dee.includes(t)}function Vee(t){return Oee.includes(t)}function $ee(t,e){const n=document.querySelector(t);if(n){let A=Wee(n);return e.forEach(r=>{A=xT(A,r)}),A}}function Kee(t,e){let n=t.declarations;return e.forEach(A=>{n=xT(n,A)}),n}function Wee(t){const e={};return jU.forEach(n=>{const A=yr(t,`--${n}-${mT}`);A&&(e[n]=A)}),e}const Gee={"flip-block":{top:"bottom",bottom:"top","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","margin-top":"margin-bottom","margin-bottom":"margin-top"},"flip-inline":{left:"right",right:"left","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","margin-left":"margin-right","margin-right":"margin-left"},"flip-start":{left:"top",right:"bottom",top:"left",bottom:"right","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","inset-block":"inset-inline","inset-inline":"inset-block"}},Yee={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-inline":{left:"right",right:"left",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-start":{top:"left",left:"top",right:"bottom",bottom:"right"}},zee={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start"},"flip-inline":{left:"right",right:"left",start:"end",end:"start"},"flip-start":{}};function Jee(t,e){return Gee[e][t]||t}function jee(t,e){return Yee[e][t]||t}function Xee(t,e){if(e==="flip-start")return t;{const n=zee[e];return t.split("-").map(A=>n[A]||A).join("-")}}function qee(t,e,n){if(t==="margin"){const[A,r,i,o]=e.children.toArray();n==="flip-block"?o?e.children.fromArray([i,r,A,o]):i&&e.children.fromArray([i,r,A]):n==="flip-inline"&&o&&e.children.fromArray([A,o,i,r])}else if(t==="margin-block"){const[A,r]=e.children.toArray();n==="flip-block"&&r&&e.children.fromArray([r,A])}else if(t==="margin-inline"){const[A,r]=e.children.toArray();n==="flip-inline"&&r&&e.children.fromArray([r,A])}}const Zee=(t,e)=>{var n;return((n=Go(`#id{${t}: ${e};}`).children.first)==null?void 0:n.block.children.first).value};function xT(t,e){const n={};return Object.entries(t).forEach(([A,r])=>{const i=A,o=Zee(i,r),a=Jee(i,e);a!==i&&(n[i]!=null||(n[i]="revert")),Wo(o,{visit:"Function",enter(l){dh(l)&&l.children.forEach(u=>{Yc(u)&&qU(u.name)&&(u.name=jee(u.name,e))})}}),i==="position-area"&&o.children.forEach(l=>{Yc(l)&&ST(l.name)&&(l.name=Xee(l.name,e))}),i.startsWith("margin")&&qee(i,o,e),n[a]=LA(o)}),n}function OT(t){const e=JZ(t),n=[];return e.forEach(A=>{const r={atRules:[],tactics:[],positionAreas:[]};A.forEach(i=>{Pee(i.name)?r.tactics.push(i.name):i.name.startsWith("--")?r.atRules.push(i.name):ST(i.name)&&r.positionAreas.push(i.name)}),r.positionAreas.length?n.push({positionArea:r.positionAreas[0],type:"position-area"}):r.atRules.length&&r.tactics.length?n.push({tactics:r.tactics,atRule:r.atRules[0],type:"at-rule-with-try-tactic"}):r.atRules.length?n.push({atRule:r.atRules[0],type:"at-rule"}):r.tactics.length&&n.push({tactics:r.tactics,type:"try-tactic"})}),n}function ete(t){return Mee(t)&&t.value.children.first?OT(t.value.children):[]}function tte(t){if(Hee(t)&&t.value.children.first){const e=uh(t);let n;const A=e.value.children.first.name;A&&Vee(A)&&(n=A,e.value.children.shift());const r=OT(e.value.children);return{order:n,options:r}}return{}}function nte(t){return Nee(t)&&t.value.children.first?{order:t.value.children.first.name}:{}}function Ate(t){const{order:e,options:n}=tte(t);if(e||n)return{order:e,options:n};const{order:A}=nte(t),r=ete(t);return A||r?{order:A,options:r}:{}}function rte(t){return Wc(t.property)||L9(t.property)||zU(t.property)||M9(t.property)||["position-anchor","position-area"].includes(t.property)}function ite(t){var e,n;if(Ree(t)&&(e=t.prelude)!=null&&e.value&&(n=t.block)!=null&&n.children){const A=t.prelude.value,r=t.block.children.filter(o=>Lee(o)&&rte(o)),i={uuid:`${A}-try-${Wr(12)}`,declarations:Object.fromEntries(r.map(o=>[o.property,LA(o.value)]))};return{name:A,tryBlock:i}}return{}}function ote(t){const e={},n={},A={};for(const r of t){const i=Go(r.css);Wo(i,{visit:"Atrule",enter(o){const{name:a,tryBlock:l}=ite(o);a&&l&&(e[a]=l)}})}for(const r of t){let i=!1;const o=new Set,a=Go(r.css);Wo(a,{visit:"Declaration",enter(l){var u;const f=(u=this.rule)==null?void 0:u.prelude,h=Sy(f);if(!h.length)return;const{order:p,options:g}=Ate(l),B={};p&&(B.order=p),h.forEach(({selector:y})=>{var C;g==null||g.forEach(b=>{var F;let k;if(b.type==="at-rule")k=b.atRule;else if(b.type==="try-tactic"){k=`${y}-${b.tactics.join("-")}`;const v=$ee(y,b.tactics);v&&(e[k]={uuid:`${y}-${b.tactics.join("-")}-try-${Wr(12)}`,declarations:v})}else if(b.type==="at-rule-with-try-tactic"){k=`${y}-${b.atRule}-${b.tactics.join("-")}`;const v=e[b.atRule],U=Kee(v,b.tactics);U&&(e[k]={uuid:`${y}-${b.atRule}-${b.tactics.join("-")}-try-${Wr(12)}`,declarations:U})}if(k&&e[k]){const v=`[data-anchor-polyfill="${e[k].uuid}"]`;n[v]!=null||(n[v]=[]),n[v].push(y),o.has(k)||(B.fallbacks!=null||(B.fallbacks=[]),B.fallbacks.push(e[k]),o.add(k),(F=this.stylesheet)==null||F.children.prependData({type:"Rule",prelude:{type:"Raw",value:v},block:{type:"Block",children:new vA().fromArray(Object.entries(e[k].declarations).map(([U,E])=>({type:"Declaration",important:!0,property:U,value:{type:"Raw",value:E}})))}}),i=!0)}}),Object.keys(B).length>0&&(A[y]?(B.order&&(A[y].order=B.order),B.fallbacks&&((C=A[y]).fallbacks!=null||(C.fallbacks=[]),A[y].fallbacks.push(...B.fallbacks))):A[y]=B)})}}),i&&(r.css=LA(a),r.changed=!0)}return{fallbackTargets:n,validPositions:A}}function ste(t,e){return!t||t===e?!1:DT(t)?t.document.contains(e):t.contains(e)}function DT(t){return!!(t&&t===t.window)}function ate(t){return ol(t,"position","fixed")}function Iy(t){return!!(t&&(ate(t)||ol(t,"position","absolute")))}function LT(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING}function lte(t){return Jt(this,null,function*(){return yield JA.getOffsetParent(t)})}function _y(t){return Jt(this,null,function*(){if(!["absolute","fixed"].includes(yr(t,"position")))return yield lte(t);let e=t.parentElement;for(;e;){if(!ol(e,"position","static")&&ol(e,"display","block"))return e;e=e.parentElement}return window})}function cte(t,e,n,A){return Jt(this,null,function*(){const r=yield _y(t),i=yield _y(n);if(!(ste(i,t)||DT(i))||r===i&&!(!Iy(t)||LT(t,n)))return!1;if(r!==i){let o;const a=[];for(o=r;o&&o!==i&&o!==window;)a.push(o),o=yield _y(o);const l=a[a.length-1];if(l instanceof HTMLElement&&!(!Iy(l)||LT(l,n)))return!1}{let o=t.parentElement;for(;o;){if(ol(o,"content-visibility","hidden"))return!1;o=o.parentElement}}return!(e&&A&&MT(t,e,A)!==MT(n,e,A))})}function MT(t,e,n){for(;!(t.matches(n)&&iee(t,e));){if(!t.parentElement)return null;t=t.parentElement}return t}function ute(t,e,n,A){return Jt(this,null,function*(){if(!(t instanceof HTMLElement&&n.length&&Iy(t)))return null;const r=n.flatMap(Aee).filter(o=>ree(o,e)),i=A.map(o=>o.selector).join(",")||null;for(let o=r.length-1;o>=0;o--){const a=r[o],l="fakePseudoElement"in a;if(yield cte(l?a.fakePseudoElement:a,e,t,i))return l&&a.removeFakePseudoElement(),a}return null})}function dte(t){return t.type==="Declaration"&&t.property==="anchor-name"}function fte(t){return t.type==="Declaration"&&t.property==="anchor-scope"}function xy(t){return!!(t&&t.type==="Function"&&t.name==="anchor-size")}function fh(t){return!!(t&&t.type==="Function"&&t.name==="var")}function Yc(t){return!!(t.type==="Identifier"&&t.name)}function hte(t){return!!(t.type==="Percentage"&&t.value)}function NT(t,e){let n,A,r,i="",o=!1,a;const l=[];t.children.toArray().forEach(p=>{if(o){i=`${i}${LA(p)}`;return}if(p.type==="Operator"&&p.value===","){o=!0;return}l.push(p)});let[u,f]=l;if(f||(f=u,u=void 0),u&&(Yc(u)&&u.name.startsWith("--")?n=u.name:fh(u)&&u.children.first&&(a=u.children.first.name)),f)if(dh(t)){if(Yc(f)&&qU(f.name))A=f.name;else if(hte(f)){const p=Number(f.value);A=Number.isNaN(p)?void 0:p}}else xy(t)&&Yc(f)&&P9(f.name)&&(r=f.name);const h=`--anchor-${Wr(12)}`;return Object.assign(t,{type:"Raw",value:`var(${h})`,children:null}),Reflect.deleteProperty(t,"name"),{anchorName:n,anchorSide:A,anchorSize:r,fallbackValue:i||"0px",customPropName:a,uuid:h}}function HT(t){return t.value.children.map(({name:e})=>e)}let zc={},Vs={},$s={},Jc={},Ks={};function pte(){zc={},Vs={},$s={},Jc={},Ks={}}function mte(t,e){var n;if((dh(t)||xy(t))&&e){if(e.property.startsWith("--")){const A=LA(e.value),r=NT(t);return Jc[r.uuid]=A,$s[e.property]=[...(n=$s[e.property])!=null?n:[],r],{changed:!0}}if(dh(t)&&Wc(e.property)||xy(t)&&XU(e.property)){const A=NT(t);return{prop:e.property,data:A,changed:!0}}}return{}}function RT(t,e){return Jt(this,null,function*(){let n=e==null?void 0:e.anchorName;const A=e==null?void 0:e.customPropName;if(t&&!n){const a=yr(t,"position-anchor");a?n=a:A&&(n=yr(t,A))}const r=n?zc[n]||[]:[],i=n?Vs[gT.All]||[]:[],o=n?Vs[n]||[]:[];return yield ute(t,n||null,r,[...i,...o])})}function gte(t){return Jt(this,null,function*(){var e,n,A,r,i,o,a,l,u,f,h;const p={},g={};pte();const{fallbackTargets:B,validPositions:y}=ote(t);for(const U of t){let E=!1;const I=Go(U.css);Wo(I,function(O){var x,H,ie,re;const ce=(x=this.rule)==null?void 0:x.prelude,R=Sy(ce);if(dte(O)&&R.length)for(const Y of HT(O))zc[Y]!=null||(zc[Y]=[]),zc[Y].push(...R);if(fte(O)&&R.length)for(const Y of HT(O))Vs[Y]!=null||(Vs[Y]=[]),Vs[Y].push(...R);const{prop:W,data:$,changed:te}=mte(O,this.declaration);if(W&&$&&R.length)for(const{selector:Y}of R)p[Y]=OA(Vn({},p[Y]),{[W]:[...(ie=(H=p[Y])==null?void 0:H[W])!=null?ie:[],$]});let ee;if(this.block&&(ee=Uee(O),ee)){Tee(ee,this.block);for(const{selector:Y}of R)g[Y]=[...(re=g[Y])!=null?re:[],ee]}(te||ee)&&(E=!0)}),E&&(U.css=LA(I),U.changed=!0)}const C=new Set(Object.keys($s)),b={},F=U=>{var E,I,O,x,H;const ie=[],re=new Set((I=(E=b[U])==null?void 0:E.names)!=null?I:[]);for(;re.size>0;)for(const ce of re)ie.push(...(O=$s[ce])!=null?O:[]),re.delete(ce),(H=(x=b[ce])==null?void 0:x.names)!=null&&H.length&&b[ce].names.forEach(R=>re.add(R));return ie};for(;C.size>0;){const U=[];for(const E of t){let I=!1;const O=Go(E.css);Wo(O,{visit:"Function",enter(x){var H,ie;const re=(H=this.rule)==null?void 0:H.prelude,ce=this.declaration,R=ce==null?void 0:ce.property;if((re==null?void 0:re.children.isEmpty)===!1&&fh(x)&&ce&&R&&x.children.first&&C.has(x.children.first.name)&&R.startsWith("--")){const W=x.children.first,$=(ie=$s[W.name])!=null?ie:[],te=F(W.name);if(!($.length||te.length))return;const ee=`${W.name}-anchor-${Wr(12)}`,Y=LA(ce.value);Jc[ee]=Y,b[R]||(b[R]={names:[],uuids:[]});const he=b[R];he.names.includes(W.name)||he.names.push(W.name),he.uuids.push(ee),U.push(R),W.name=ee,I=!0}}}),I&&(E.css=LA(O),E.changed=!0)}C.clear(),U.forEach(E=>C.add(E))}for(const U of t){let E=!1;const I=Go(U.css);Wo(I,{visit:"Function",enter(O){var x,H,ie,re,ce,R,W;const $=(x=this.rule)==null?void 0:x.prelude,te=this.declaration,ee=te==null?void 0:te.property;if(($==null?void 0:$.children.isEmpty)===!1&&fh(O)&&te&&ee&&O.children.first&&(Wc(ee)||zU(ee))){const Y=O.children.first,he=(H=$s[Y.name])!=null?H:[],Z=F(Y.name);if(!(he.length||Z.length))return;const Ce=`${ee}-${Wr(12)}`;if(Z.length){const J=new Set([Y.name]);for(;J.size>0;)for(const Ae of J){const oe=b[Ae];if((ie=oe==null?void 0:oe.names)!=null&&ie.length&&(re=oe==null?void 0:oe.uuids)!=null&&re.length)for(const Q of oe.names)for(const q of oe.uuids)Ks[q]=OA(Vn({},Ks[q]),{[Ce]:`${Q}-${Ce}`});J.delete(Ae),(ce=oe==null?void 0:oe.names)!=null&&ce.length&&oe.names.forEach(Q=>J.add(Q))}}const V=Sy($);for(const J of[...he,...Z]){const Ae=Vn({},J),oe=`--anchor-${Wr(12)}-${ee}`,Q=Ae.uuid;Ae.uuid=oe;for(const{selector:q}of V)p[q]=OA(Vn({},p[q]),{[ee]:[...(W=(R=p[q])==null?void 0:R[ee])!=null?W:[],Ae]});Ks[Q]=OA(Vn({},Ks[Q]),{[Ce]:oe})}Y.name=`${Y.name}-${Ce}`,E=!0}}}),E&&(U.css=LA(I),U.changed=!0)}if(Object.keys(Ks).length>0)for(const U of t){let E=!1;const I=Go(U.css);Wo(I,{visit:"Function",enter(O){var x,H,ie,re;if(fh(O)&&(H=(x=O.children.first)==null?void 0:x.name)!=null&&H.startsWith("--")&&(re=(ie=this.declaration)==null?void 0:ie.property)!=null&&re.startsWith("--")&&this.block){const ce=O.children.first,R=Ks[ce.name];if(R)for(const[W,$]of Object.entries(R))this.block.children.appendData({type:"Declaration",important:!1,property:`${this.declaration.property}-${W}`,value:{type:"Raw",value:LA(this.declaration.value).replace(`var(${ce.name})`,`var(${$})`)}}),E=!0;Jc[ce.name]&&(this.declaration.value={type:"Raw",value:Jc[ce.name]},E=!0)}}}),E&&(U.css=LA(I),U.changed=!0)}const k=new Map;for(const[U,E]of Object.entries(p)){let I;U.startsWith("[data-anchor-polyfill=")&&(e=B[U])!=null&&e.length?I=document.querySelectorAll(B[U].join(",")):I=document.querySelectorAll(U);for(const[O,x]of Object.entries(E))for(const H of x)for(const ie of I){const re=yield RT(ie,H),ce=`--anchor-${Wr(12)}`;k.set(ie,OA(Vn({},(n=k.get(ie))!=null?n:{}),{[H.uuid]:ce})),ie.setAttribute("style",`${H.uuid}: var(${ce}); ${(A=ie.getAttribute("style"))!=null?A:""}`),y[U]=OA(Vn({},y[U]),{declarations:OA(Vn({},(r=y[U])==null?void 0:r.declarations),{[O]:[...(a=(o=(i=y[U])==null?void 0:i.declarations)==null?void 0:o[O])!=null?a:[],OA(Vn({},H),{anchorEl:re,targetEl:ie,uuid:ce})]})})}}const v={el:document.createElement("link"),changed:!1,created:!0,css:""};t.push(v);for(const[U,E]of Object.entries(g)){const I=document.querySelectorAll(U);for(const O of I){const x=yield RT(O);for(const H of E){const ie=yield _ee(O,H,x);v.css+=xee(ie.targetUUID,H.selectorUUID),v.changed=!0,y[U]=OA(Vn({},y[U]),{declarations:OA(Vn({},(l=y[U])==null?void 0:l.declarations),{"position-area":[...(h=(f=(u=y[U])==null?void 0:u.declarations)==null?void 0:f["position-area"])!=null?h:[],ie]})})}}}return{rules:y,inlineStyles:k,anchorScopes:Vs}})}const Bte=["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","referrerpolicy","rel","type"];function PT(t,e,n=!1){const A=[];for(const{el:r,css:i,changed:o,created:a=!1}of t){const l={el:r,css:i,changed:!1};if(o){if(r.tagName.toLowerCase()==="style")r.innerHTML=i;else if(r instanceof HTMLLinkElement){const u=document.createElement("style");u.textContent=i;for(const f of r.getAttributeNames())if(!f.startsWith("on")&&!Bte.includes(f)){const h=r.getAttribute(f);h!==null&&u.setAttribute(f,h)}r.hasAttribute("href")&&u.setAttribute("data-original-href",r.getAttribute("href")),a?(u.setAttribute("data-generated-by-polyfill","true"),document.head.insertAdjacentElement("beforeend",u)):(r.insertAdjacentElement("beforebegin",u),r.remove()),l.el=u}else if(r.hasAttribute("data-has-inline-styles")){const u=r.getAttribute("data-has-inline-styles");if(u){const f=`[data-has-inline-styles="${u}"]{`;let h=i.slice(f.length,0-1);const p=e==null?void 0:e.get(r);if(p)for(const[g,B]of Object.entries(p))h=`${g}: var(${B}); ${h}`;r.setAttribute("style",h)}}}n&&r.hasAttribute("data-has-inline-styles")&&r.removeAttribute("data-has-inline-styles"),A.push(l)}return A}const yte=OA(Vn({},JA),{_c:new Map}),wte=(t,e)=>{let n;switch(t){case"start":case"self-start":n=0;break;case"end":case"self-end":n=100;break;default:typeof t=="number"&&!Number.isNaN(t)&&(n=t)}if(n!==void 0)return e?100-n:n},Cte=(t,e)=>{let n;switch(t){case"block":case"self-block":n=e?"width":"height";break;case"inline":case"self-inline":n=e?"height":"width";break}return n},VT=t=>{switch(t){case"top":case"bottom":return"y";case"left":case"right":return"x"}return null},bte=t=>{switch(t){case"x":return"width";case"y":return"height"}return null},$T=t=>yr(t,"display")==="inline",KT=(t,e)=>(e==="x"?["border-left-width","border-right-width"]:["border-top-width","border-bottom-width"]).reduce((n,A)=>n+parseInt(yr(t,A),10),0)||0,hh=(t,e)=>parseInt(yr(t,`margin-${e}`),10)||0,vte=t=>({top:hh(t,"top"),right:hh(t,"right"),bottom:hh(t,"bottom"),left:hh(t,"left")}),Oy=t=>Jt(null,[t],function*({targetEl:e,targetProperty:n,anchorRect:A,anchorSide:r,anchorSize:i,fallback:o=null}){var a;if(!((i||r!==void 0)&&e&&A))return o;if(i){if(!XU(n))return o;let l;switch(i){case"width":case"height":l=i;break;default:{let u=!1;const f=yr(e,"writing-mode");u=f.startsWith("vertical-")||f.startsWith("sideways-"),l=Cte(i,u)}}return l?`${A[l]}px`:o}if(r!==void 0){let l,u;const f=VT(n);if(!(Wc(n)&&f&&(!Wc(r)||f===VT(r))))return o;const h=["top","left"];switch(r){case"left":case"top":l=0;break;case"right":case"bottom":l=100;break;case"center":l=50;break;case"inside":l=h.includes(n)?0:100;break;case"outside":l=h.includes(n)?100:0;break;default:if(e){const B=(yield(a=JA.isRTL)==null?void 0:a.call(JA,e))||!1;l=wte(r,B)}}const p=typeof l=="number"&&!Number.isNaN(l),g=bte(f);if(p&&g){(n==="bottom"||n==="right")&&(u=yield Qy(e));let B=A[f]+A[g]*(l/100);switch(n){case"bottom":{if(!u)break;let y=u.clientHeight;if(y===0&&$T(u)){const C=KT(u,f);y=u.offsetHeight-C}B=y-B;break}case"right":{if(!u)break;let y=u.clientWidth;if(y===0&&$T(u)){const C=KT(u,f);y=u.offsetWidth-C}B=y-B;break}}return`${B}px`}}return o}),Ete=t=>"wrapperEl"in t,kte=t=>"uuid"in t;function Ste(t,e=!1){return Jt(this,null,function*(){const n=document.documentElement;for(const[A,r]of Object.entries(t))for(const i of r){const o=i.anchorEl,a=i.targetEl;if(o&&a)if(Ete(i)){const l=i.wrapperEl,u=(f,h,p)=>Jt(null,null,function*(){return f===0?"0px":yield Oy({targetEl:l,targetProperty:h,anchorRect:p,anchorSide:f})});qB(o,l,()=>Jt(null,null,function*(){const f=yr(a,bT);l.setAttribute(vT,f);const h=yield JA.getElementRects({reference:o,floating:l,strategy:"absolute"}),p=i.insets,g=yield u(p.block[0],"top",h.reference),B=yield u(p.block[1],"bottom",h.reference),y=yield u(p.inline[0],"left",h.reference),C=yield u(p.inline[1],"right",h.reference);n.style.setProperty(`${i.targetUUID}-top`,g||null),n.style.setProperty(`${i.targetUUID}-left`,y||null),n.style.setProperty(`${i.targetUUID}-right`,C||null),n.style.setProperty(`${i.targetUUID}-bottom`,B||null),n.style.setProperty(`${i.targetUUID}-justify-self`,i.alignments.inline),n.style.setProperty(`${i.targetUUID}-align-self`,i.alignments.block)}),{animationFrame:e})}else qB(o,a,()=>Jt(null,null,function*(){const l=yield JA.getElementRects({reference:o,floating:a,strategy:"absolute"}),u=yield Oy({targetEl:a,targetProperty:A,anchorRect:l.reference,anchorSide:i.anchorSide,anchorSize:i.anchorSize,fallback:i.fallbackValue});n.style.setProperty(i.uuid,u)}),{animationFrame:e});else if(kte(i)){const l=yield Oy({targetProperty:A,anchorSide:i.anchorSide,anchorSize:i.anchorSize,fallback:i.fallbackValue});n.style.setProperty(i.uuid,l)}}})}function WT(t,e){return Jt(this,null,function*(){const n=yield JA.getElementRects({reference:t,floating:t,strategy:"absolute"});return yield Sj({x:t.offsetLeft,y:t.offsetTop,platform:yte,rects:n,elements:{floating:t,reference:e},strategy:"absolute"},{padding:vte(t)})})}function Fte(t,e,n=!1){return Jt(this,null,function*(){if(!e.length)return;const A=document.querySelectorAll(t);for(const r of A){let i=!1;const o=yield Qy(r);qB({},r,()=>Jt(null,null,function*(){if(i)return;i=!0,r.removeAttribute("data-anchor-polyfill");const a=yield WT(r,o);if(Object.values(a).every(l=>l<=0)){r.removeAttribute("data-anchor-polyfill-last-successful"),i=!1;return}for(const[l,{uuid:u}]of e.entries()){r.setAttribute("data-anchor-polyfill",u);const f=yield WT(r,o);if(Object.values(f).every(h=>h<=0)){r.setAttribute("data-anchor-polyfill-last-successful",u),i=!1;break}if(l===e.length-1){const h=r.getAttribute("data-anchor-polyfill-last-successful");h?r.setAttribute("data-anchor-polyfill",h):r.removeAttribute("data-anchor-polyfill"),i=!1;break}}}),{animationFrame:n,layoutShift:!1})}})}function Qte(t,e=!1){return Jt(this,null,function*(){var n,A;for(const r of Object.values(t))yield Ste((n=r.declarations)!=null?n:{},e);for(const[r,i]of Object.entries(t))yield Fte(r,(A=i.fallbacks)!=null?A:[],e)})}function Ute(t={}){const e=typeof t=="boolean"?{useAnimationFrame:t}:t,n=e.useAnimationFrame===void 0?!!window.UPDATE_ANCHOR_ON_ANIMATION_FRAME:e.useAnimationFrame;return Array.isArray(e.elements)||(e.elements=void 0),Object.assign(e,{useAnimationFrame:n})}function Tte(t){return Jt(this,null,function*(){const e=Ute(t??window.ANCHOR_POSITIONING_POLYFILL_OPTIONS);let n=yield cee(e.elements,e.excludeInlineStyles),A={},r;XZ();try{ZZ(n)&&(n=PT(n));const i=yield gte(n);A=i.rules,r=i.inlineStyles}catch(i){throw jZ(),i}return Object.values(A).length&&(PT(n,r,!0),yield Qte(A,e.useAnimationFrame)),A})}const Ite={class:"popover-tooltip"},_te=["popovertarget","disabled","aria-describedby","aria-label"],xte=s.createElementVNode("span",{class:"popover-tooltip__trigger"}," i ",-1),Ote={class:"popover-tooltip__content d-flex flex-column"},Dte={key:0,class:"popover-tooltip__header d-flex p-3 border-bottom"},Lte=["innerHTML"],Mte={class:"popover-tooltip__body"},Nte=["innerHTML"],Hte={key:1,class:"popover-tooltip__footer d-flex p-3 border-top"},Rte=s.defineComponent({__name:"popover-tooltip",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-tooltip-${Math.random().toString(36).substr(2,9)}`},size:{type:String},exclusive:{type:Boolean,default:!0},header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:String,default:""},hover:{type:Boolean,default:!0},hoverDelay:{type:Number,default:400},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{emit:e}){const n=t,A=e,r=s.computed({get(){return n.modelValue},set(a){A("update:modelValue",a)}}),i=s.ref(),o=s.ref();return s.onMounted(()=>{"anchorName"in document.documentElement.style||Tte().then(a=>{console.log("Running polyfill",a)})}),(a,l)=>(s.openBlock(),s.createElementBlock("span",Ite,[s.createElementVNode("button",{type:"button",popovertarget:t.id,disabled:t.disabled,"aria-describedby":t.id,"aria-label":t.ariaLabel||a.$te("common.moreInfo")?a.$t("common.moreInfo"):void 0,ref_key:"trigger",ref:i},[s.renderSlot(a.$slots,"button",{},()=>[xte])],8,_te),s.createVNode(KB,{id:t.id,modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=u=>r.value=u),hover:t.hover,"hover-delay":t.hoverDelay,ref_key:"dialog",ref:o,role:"tooltip",class:s.normalizeClass(t.size?`popover-tooltip--${t.size}`:"")},{default:s.withCtx(()=>[s.createElementVNode("div",Ote,[t.header?(s.openBlock(),s.createElementBlock("div",Dte,[t.title?(s.openBlock(),s.createElementBlock("h5",{key:0,class:"popover-tooltip__title",innerHTML:t.title},null,8,Lte)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:l[0]||(l[0]=u=>r.value=!1)})])):s.createCommentVNode("",!0),s.createElementVNode("div",Mte,[s.renderSlot(a.$slots,"default",{},()=>[s.createElementVNode("span",{innerHTML:t.content},null,8,Nte)])]),t.footer?(s.openBlock(),s.createElementBlock("div",Hte,[s.renderSlot(a.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:l[1]||(l[1]=u=>r.value=!1)},s.toDisplayString(a.$t("common.close")),1)])):s.createCommentVNode("",!0)])]),_:3},8,["id","modelValue","hover","hover-delay","class"])]))}}),zce="",Pte={class:"popover-notification__header d-flex justify-content-between mb-2"},Vte={class:"popover-notification__title"},$te=["onClick"],Kte=["innerHTML"],Wte=s.defineComponent({__name:"popover-notifications",props:{modelValue:{type:Boolean,default:!1},id:{type:String,default:()=>`popover-notifications-${Math.random().toString(36).substr(2,9)}`},items:{type:Array,default:()=>[]},debounceItem:{type:Number,default:0},closeTimeout:{type:Number,default:8e3},collapsible:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=t,A=s.ref([]),r=s.ref([]),i=s.ref(!1),o=s.computed(()=>n.collapsible&&A.value.length>3);function a(h,p){A.value=A.value.filter(g=>g.id!==h.id)}s.watch(()=>n.items,(h,p)=>{const g=h.filter(B=>!p.some(y=>y.id===B.id));r.value=[...r.value,...g]});function l(){setTimeout(()=>{const h=r.value.shift();h&&A.value.push({...h,closeTimeout:n.closeTimeout,visible:!0}),r.value.length>0&&l()},A.value.length?n.debounceItem:0)}function u(h){o.value&&(h.preventDefault(),h.stopPropagation(),i.value=!i.value)}function f(h){r.value.push(h)}return s.onMounted(()=>{r.value=n.items,r.value.length>3&&(i.value=!0),l()}),e({addItem:f}),(h,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["popover-notifications",{"popover-notifications--collapsed":i.value}]),style:{anchorName:"--popover-notifications"}},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(A.value,(g,B)=>(s.openBlock(),s.createBlock(KB,{key:g.id,id:g.id,"close-timeout":g.closeTimeout,type:"manual",class:"popover-notification",modelValue:g.visible,"onUpdate:modelValue":[y=>g.visible=y,y=>a(g)],onClick:u},{default:s.withCtx(()=>[s.renderSlot(h.$slots,"item",{item:g},()=>[s.createElementVNode("div",Pte,[s.createElementVNode("span",Vte,s.toDisplayString(g.title),1),s.createElementVNode("button",{type:"button",class:"btn btn-close p-0",onClick:s.withModifiers(y=>g.visible=!1,["stop"]),"aria-label":"Close notification"},null,8,$te)]),s.createElementVNode("span",{innerHTML:g.content},null,8,Kte)])]),_:2},1032,["id","close-timeout","modelValue","onUpdate:modelValue"]))),128))],2))}}),Jce="",Gte={class:"link-sharing"},Yte={key:0,class:"link-sharing__links container"},zte={class:"row"},Jte={key:0,class:"col-12 col-md-6"},jte=["href"],Xte={class:"caption"},qte={key:1,class:"col-12 col-md-6"},Zte=["href"],ene={class:"caption"},tne={key:2,class:"col-12 col-md-6"},nne={class:"caption"},Ane={key:3,class:"col-12 col-md-6"},rne=["href"],ine={class:"caption"},one={key:4,class:"col-12 col-md-6"},sne=["href"],ane={class:"caption"},lne={key:5,class:"col-12 col-md-6"},cne={class:"caption"},une={key:6,class:"col-12 col-md-6"},dne=["href"],fne={class:"caption"},hne={key:1,class:"link-sharing__instructions pt-5"},pne={class:"row"},mne={class:"col-12 text-center py-0"},gne={class:"mb-5"},Bne=t=>t.replace(/<(?:.|\n)*?>/gm,""),yne=s.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,n=s.ref(!1),A=s.computed(()=>encodeURIComponent(e.url));s.computed(()=>encodeURIComponent(e.media));const r=s.computed(()=>Bne(e.text)),i=s.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function o(){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,l)=>{const u=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",Gte,[n.value?(s.openBlock(),s.createElementBlock("div",hne,[s.createElementVNode("div",pne,[s.createElementVNode("div",mne,[s.createElementVNode("div",gne,[s.createElementVNode("p",null,s.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),s.createElementVNode("p",null,[s.createElementVNode("strong",null,s.toDisplayString(t.hashtags),1)])])])])])):(s.openBlock(),s.createElementBlock("div",Yte,[s.createElementVNode("div",zte,[t.services.facebook?(s.openBlock(),s.createElementBlock("div",Jte,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${A.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"facebook"}),s.createElementVNode("span",Xte,s.toDisplayString(a.$t("sharing.facebook")),1)],8,jte)])):s.createCommentVNode("",!0),t.services.bluesky?(s.openBlock(),s.createElementBlock("div",qte,[s.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"},[s.createVNode(u,{symbol:"bluesky-logo"}),s.createElementVNode("span",ene,s.toDisplayString(a.$t("sharing.bluesky")),1)],8,Zte)])):s.createCommentVNode("",!0),t.services.instagram?(s.openBlock(),s.createElementBlock("div",tne,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:l[0]||(l[0]=s.withModifiers(f=>n.value=!n.value,["prevent"]))},[s.createVNode(u,{symbol:"instagram"}),s.createElementVNode("span",nne,s.toDisplayString(a.$t("sharing.instagram")),1)])])):s.createCommentVNode("",!0),t.services.linkedin?(s.openBlock(),s.createElementBlock("div",Ane,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${A.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"linkedin"}),s.createElementVNode("span",ine,s.toDisplayString(a.$t("sharing.linkedin")),1)],8,rne)])):s.createCommentVNode("",!0),t.services.whatsapp&&i.value?(s.openBlock(),s.createElementBlock("div",one,[s.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${A.value}`,target:"_blank",rel:"noopener"},[s.createVNode(u,{symbol:"whatsapp"}),s.createElementVNode("span",ane,s.toDisplayString(a.$t("sharing.whatsapp")),1)],8,sne)])):s.createCommentVNode("",!0),t.services.clipboard?(s.openBlock(),s.createElementBlock("div",lne,[s.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:s.withModifiers(o,["prevent","stop"])},[s.createVNode(u,{symbol:"copy"}),s.createElementVNode("span",cne,s.toDisplayString(a.$t("sharing.clipboard")),1)])])):s.createCommentVNode("",!0),t.services.mailto?(s.openBlock(),s.createElementBlock("div",une,[s.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"},[s.createVNode(u,{symbol:"mail"}),s.createElementVNode("span",fne,s.toDisplayString(a.$t("sharing.mailto")),1)],8,dne)])):s.createCommentVNode("",!0)])]))])}}}),jce="",wne={class:"base-form"},Cne=s.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function e(r){console.log("input",r)}function n(r){console.log("reset",r)}function A(r){console.log("submit",r)}return(r,i)=>(s.openBlock(),s.createElementBlock("div",wne,[s.createElementVNode("form",{ref:"form",onInput:e,onReset:n,onSubmit:s.withModifiers(A,["prevent"])},[s.renderSlot(r.$slots,"default")],544)]))}}),Xce="",bne={class:"modal-dialog__content d-flex flex-column"},vne={class:"modal-dialog__header d-flex p-3 border-bottom"},Ene={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},kne={class:"modal-dialog__body"},Sne={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},Fne=s.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:n}){const A=t,r=n,i=s.ref();function o(){var p,g;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),A.modal?(p=i.value)==null||p.showModal():(g=i.value)==null||g.show(),r("update:modelValue",!0)}function a(){const p=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),g=new Animation(p,document.timeline);g.play(),g.addEventListener("finish",()=>{var B;(B=i.value)==null||B.close(),l()}),r("update:modelValue",!1)}function l(){const p=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(p,10),behavior:"instant"}),r("update:modelValue",!1)}function u(p){o(),r("confirm",p)}function f(){a(),r("cancel")}function h(p){const g=p.target;g&&g.nodeName==="DIALOG"&&a()}return s.watch(()=>A.modelValue,(p,g)=>{p&&p!==g?o():g&&a()},{immediate:!0}),s.onMounted(()=>{var p;(p=i.value)==null||p.addEventListener("cancel",g=>{g.preventDefault(),a()}),A.dismiss&&document.addEventListener("click",h),A.modelValue&&o()}),s.onBeforeUnmount(()=>{A.dismiss&&document.removeEventListener("click",h)}),e({show:o,close:a,confirm:u,cancel:f}),(p,g)=>(s.openBlock(),s.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:s.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:l},[s.createElementVNode("div",bne,[s.createElementVNode("div",vne,[t.title?(s.openBlock(),s.createElementBlock("h5",Ene,s.toDisplayString(t.title),1)):s.createCommentVNode("",!0),s.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),s.createElementVNode("div",kne,[s.renderSlot(p.$slots,"default")]),t.footer?(s.openBlock(),s.createElementBlock("div",Sne,[s.renderSlot(p.$slots,"footer"),s.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},s.toDisplayString(p.$t("common.close")),1)])):s.createCommentVNode("",!0)])],34))}}),qce="",Qne=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],Une=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],Tne={key:0,class:"sortable-list__drag-handle"},Ine={type:"button",class:"btn"},_ne={key:0,class:"sortable-list__item"},xne=s.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 n=t,A=s.ref(!1),r=s.ref(null),i=s.ref(null),o=e,a=s.computed({get(){return n.modelValue},set(F){o("update:modelValue",F)}}),l=s.computed(()=>{var F;return(F=document.querySelector(".is-drag-item"))==null?void 0:F.outerHTML}),u=s.useSlots(),f=s.computed(()=>u["list-append"]);function h(F,k){F.dataTransfer&&(F.dataTransfer.dropEffect="move",F.dataTransfer.effectAllowed="move",F.dataTransfer.setData("index",k.toLocaleString()),A.value=!0,r.value=k)}function p(F,k){A.value=!1,r.value=null,i.value=null}function g(F,k){}function B(F,k){i.value=r.value!==k?k:null}function y(F,k){}function C(F,k){}function b(F,k){if(F.dataTransfer){F.preventDefault();const v=Number(F.dataTransfer.getData("index")),U=k,E=[...a.value];(U||U===0)&&(v||v===0)&&E.splice(U,0,E.splice(v,1)[0]),a.value=E}}return(F,k)=>{const v=s.resolveComponent("svg-icon");return s.openBlock(),s.createBlock(s.TransitionGroup,{name:"list",tag:"ul",class:s.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:k[0]||(k[0]=s.withModifiers(()=>{},["prevent"])),onDragenter:k[1]||(k[1]=s.withModifiers(()=>{},["prevent"]))},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.value,(U,E)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:E},[t.showPreview&&A.value&&i.value===E?(s.openBlock(),s.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:I=>B(I,E),onDragover:I=>void 0,onDragleave:I=>void 0,onDragend:I=>p(),onDrop:I=>b(I,E),innerHTML:l.value},null,40,Qne)):s.createCommentVNode("",!0),s.createElementVNode("li",{class:s.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":A.value&&r.value===E,"is-drop-target":A.value&&i.value===E&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:I=>h(I,E),onDrag:I=>void 0,onDragenter:I=>B(I,E),onDragover:I=>void 0,onDragleave:I=>void 0,onDragend:I=>p(),onDrop:I=>b(I,E)},[t.showDragHandle?(s.openBlock(),s.createElementBlock("div",Tne,[s.createElementVNode("button",Ine,[s.createVNode(v,{symbol:"drag"})])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[s.renderSlot(F.$slots,"list-item",{item:U,index:E},()=>[s.createTextVNode(s.toDisplayString(U),1)])],2)],42,Une)],64))),128)),f.value?(s.openBlock(),s.createElementBlock("li",_ne,[s.renderSlot(F.$slots,"list-append")])):s.createCommentVNode("",!0)]),_:3},8,["class"])}}}),Zce="",One={class:"touch-wrapper__controls"},Dne={class:"btn-group",role:"group"},Lne=s.defineComponent({__name:"touch-wrapper",props:{modelValue:{type:Number,default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.getCurrentInstance(),A=n&&n.appContext.config.globalProperties.$config,r=t,i=e,o=s.ref();function a(f){const h=r.modelValue+f;i("update:modelValue",f===0?1:h>=1?h:1)}function l(f){if(f.ctrlKey){f.preventDefault();const h=0-f.deltaY*.01;a(h)}}function u(f){f.preventDefault();const{scale:h}=f,p=h>1?h*.01:0-h;a(p)}return s.onMounted(()=>{o.value&&(o.value.addEventListener("wheel",l,!1),o.value.addEventListener("gesturestart",u,!1),o.value.addEventListener("gesturechange",u,!1),o.value.addEventListener("gestureend",u,!1))}),(f,h)=>{const p=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",{ref_key:"touchElement",ref:o,class:"touch-wrapper"},[s.renderSlot(f.$slots,"controls",{on:{setScale:a}},()=>[s.createElementVNode("div",One,[s.createElementVNode("div",Dne,[s.createElementVNode("button",{type:"button",class:"btn",onClick:h[0]||(h[0]=g=>a(-1))},[s.createVNode(p,{symbol:"minus","base-path":s.unref(A).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[1]||(h[1]=g=>a(0))},[s.createVNode(p,{symbol:"maximize","base-path":s.unref(A).iconSprite},null,8,["base-path"])]),s.createElementVNode("button",{type:"button",class:"btn",onClick:h[2]||(h[2]=g=>a(1))},[s.createVNode(p,{symbol:"plus","base-path":s.unref(A).iconSprite},null,8,["base-path"])])])])]),s.renderSlot(f.$slots,"default")],512)}}}),eue="";Ye.Accordion=$x,Ye.AccordionItem=Nx,Ye.AssetUploader=d5,Ye.AutoSuggest=OW,Ye.BaseButton=Wx,Ye.BaseCamera=eG,Ye.BaseCarousel=nk,Ye.BaseForm=Cne,Ye.BaseHeadline=Qx,Ye.BaseImage=Sx,Ye.BaseInput=Jx,Ye.BaseParagraph=Tx,Ye.CheckGroup=UR,Ye.ColorPalette=gW,Ye.DomRenderer=ZJ,Ye.FileUpload=n5,Ye.InputCheckbox=AO,Ye.InputColor=hW,Ye.InputDatepicker=vR,Ye.InputDatetime=sO,Ye.InputDropdown=UW,Ye.InputFile=KR,Ye.InputPassword=kR,Ye.InputTextarea=Zx,Ye.LinkSharing=yne,Ye.LoadingSpinner=Ex,Ye.MediaThumbnails=B5,Ye.ModalDialog=Fne,Ye.PopoverDialog=KB,Ye.PopoverNotifications=Wte,Ye.PopoverTooltip=Rte,Ye.ProgressSteps=F5,Ye.RadioButtons=LR,Ye.RadioGroup=Iu,Ye.RteEditor=cW,Ye.SelectMedia=YR,Ye.SortableList=xne,Ye.SvgIcon=Cx,Ye.TouchWrapper=Lne,Ye.UploadGroup=tk,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .svg-icon{display:inline-flex;justify-content:center;align-items:center;line-height:1}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}.svg-icon--small svg{width:.875rem;height:.875rem}.loading-spinner{min-width:1.5rem}.loading-spinner svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:100%;height:100%}.loading-spinner svg path{fill:currentColor}.base-image{position:relative;overflow:hidden}.base-image img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .3s ease-in-out,transform 1.2s ease-in-out}.base-image--zoom:hover img{transform:scale(1.05)}.accordion-button__toggle{transition:transform .24s ease-in-out;transform:rotateX(180deg);transform-origin:center}.collapsed .accordion-button__toggle{transform:rotateX(0)}:root,*:before,*:after{--button-color: #fff}.btn{display:inline-flex;justify-content:center;align-items:center;gap:.5em;transition:all .2s ease;text-decoration:none}.btn:disabled{cursor:not-allowed}.btn .loading-spinner svg{max-width:1.5em;max-height:1.5em}.input{display:flex;flex-direction:column}.input>*{order:2}.input__label{order:0;text-align:start}.input__input-group,.input>input,.input>select,.input>textarea{flex-wrap:nowrap;order:1}.input__error{display:none}.input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.input input[type=checkbox],.input input[type=radio]{flex:none}.input input[type=color]{display:block;height:100%;padding:0;border-width:0}.input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.input input[type=color]::-webkit-color-swatch{border:none}.form-switch{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:0;gap:1rem}.form-switch .input-group{width:auto}.form-switch .form-check-input{width:2.5rem;height:1.3125rem;margin-left:0}.form-switch .form-check-label{margin:0}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}.dp__input_wrap{position:relative;width:100%;box-sizing:unset}.dp__input_wrap:focus{border-color:var(--dp-border-color-hover);outline:none}.dp__input_valid{box-shadow:0 0 var(--dp-border-radius) var(--dp-success-color);border-color:var(--dp-success-color)}.dp__input_valid:hover{border-color:var(--dp-success-color)}.dp__input_invalid{box-shadow:0 0 var(--dp-border-radius) var(--dp-danger-color);border-color:var(--dp-danger-color)}.dp__input_invalid:hover{border-color:var(--dp-danger-color)}.dp__input{background-color:var(--dp-background-color);border-radius:var(--dp-border-radius);font-family:var(--dp-font-family);border:1px solid var(--dp-border-color);outline:none;transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%;font-size:var(--dp-font-size);line-height:calc(var(--dp-font-size)*1.5);padding:var(--dp-input-padding);color:var(--dp-text-color);box-sizing:border-box}.dp__input::placeholder{opacity:.7}.dp__input:hover:not(.dp__input_focus){border-color:var(--dp-border-color-hover)}.dp__input_reg{caret-color:#0000}.dp__input_focus{border-color:var(--dp-border-color-focus)}.dp__disabled{background:var(--dp-disabled-color)}.dp__disabled::placeholder{color:var(--dp-disabled-color-text)}.dp__input_icons{display:inline-block;width:var(--dp-font-size);height:var(--dp-font-size);stroke-width:0;font-size:var(--dp-font-size);line-height:calc(var(--dp-font-size)*1.5);padding:6px 12px;color:var(--dp-icon-color);box-sizing:content-box}.dp__input_icon{cursor:pointer;position:absolute;top:50%;inset-inline-start:0;transform:translateY(-50%);color:var(--dp-icon-color)}.dp--clear-btn{position:absolute;top:50%;inset-inline-end:0;transform:translateY(-50%);cursor:pointer;color:var(--dp-icon-color);background:rgba(0,0,0,0);border:none;display:inline-flex;align-items:center;padding:0;margin:0}.dp__input_icon_pad{padding-inline-start:var(--dp-input-icon-padding)}.dp__menu{background:var(--dp-background-color);border-radius:var(--dp-border-radius);min-width:var(--dp-menu-min-width);font-family:var(--dp-font-family);font-size:var(--dp-font-size);-webkit-user-select:none;user-select:none;border:1px solid var(--dp-menu-border-color);box-sizing:border-box}.dp__menu:after{box-sizing:border-box}.dp__menu:before{box-sizing:border-box}.dp__menu:focus{border:1px solid var(--dp-menu-border-color);outline:none}.dp--menu-wrapper{position:absolute;z-index:99999}.dp__menu_inner{padding:var(--dp-menu-padding)}.dp--menu--inner-stretched{padding:6px 0}.dp__menu_index{z-index:99999}.dp-menu-loading,.dp__menu_readonly,.dp__menu_disabled{position:absolute;top:0;right:0;bottom:0;left:0;z-index:999999}.dp__menu_disabled{background:hsla(0,0%,100%,.5);cursor:not-allowed}.dp__menu_readonly{background:rgba(0,0,0,0);cursor:default}.dp-menu-loading{background:hsla(0,0%,100%,.5);cursor:default}.dp--menu-load-container{display:flex;height:100%;width:100%;justify-content:center;align-items:center}.dp--menu-loader{width:48px;height:48px;border:var(--dp-loader);border-bottom-color:#0000;border-radius:50%;display:inline-block;box-sizing:border-box;animation:dp-load-rotation 1s linear infinite;position:absolute}@keyframes dp-load-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dp__arrow_top{left:var(--dp-arrow-left);top:0;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-inline-end:1px solid var(--dp-menu-border-color);border-top:1px solid var(--dp-menu-border-color);transform:translate(-50%,-50%) rotate(-45deg)}.dp__arrow_bottom{left:var(--dp-arrow-left);bottom:0;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-inline-end:1px solid var(--dp-menu-border-color);border-bottom:1px solid var(--dp-menu-border-color);transform:translate(-50%,50%) rotate(45deg)}.dp__action_extra{text-align:center;padding:2px 0}.dp--preset-dates{padding:5px;border-inline-end:1px solid var(--dp-border-color)}.dp--preset-dates[data-dp-mobile],.dp--preset-dates-collapsed{display:flex;align-self:center;border:none;overflow-x:auto;max-width:calc(var(--dp-menu-width) - var(--dp-action-row-padding)*2)}.dp__sidebar_left{padding:5px;border-inline-end:1px solid var(--dp-border-color)}.dp__sidebar_right{padding:5px;margin-inline-end:1px solid var(--dp-border-color)}.dp--preset-range{display:block;width:100%;padding:5px;text-align:left;white-space:nowrap;color:var(--dp-text-color);border-radius:var(--dp-border-radius);transition:var(--dp-common-transition)}.dp--preset-range:hover{background-color:var(--dp-hover-color);color:var(--dp-hover-text-color);cursor:pointer}.dp--preset-range[data-dp-mobile]{border:1px solid var(--dp-border-color);margin:0 3px}.dp--preset-range[data-dp-mobile]:first-child{margin-left:0}.dp--preset-range[data-dp-mobile]:last-child{margin-right:0}.dp--preset-range-collapsed{border:1px solid var(--dp-border-color);margin:0 3px}.dp--preset-range-collapsed:first-child{margin-left:0}.dp--preset-range-collapsed:last-child{margin-right:0}.dp__menu_content_wrapper{display:flex}.dp__menu_content_wrapper[data-dp-mobile],.dp--menu-content-wrapper-collapsed{flex-direction:column-reverse}.dp__calendar_header{position:relative;display:flex;justify-content:center;align-items:center;color:var(--dp-text-color);white-space:nowrap;font-weight:700}.dp__calendar_header_item{text-align:center;flex-grow:1;height:var(--dp-cell-size);padding:var(--dp-cell-padding);width:var(--dp-cell-size);box-sizing:border-box}.dp__calendar_row{display:flex;justify-content:center;align-items:center;margin:var(--dp-row-margin)}.dp__calendar_item{text-align:center;flex-grow:1;box-sizing:border-box;color:var(--dp-text-color)}.dp__calendar{position:relative}.dp__calendar_header_cell{border-bottom:thin solid var(--dp-border-color);padding:var(--dp-calendar-header-cell-padding)}.dp__cell_inner{display:flex;align-items:center;text-align:center;justify-content:center;border-radius:var(--dp-cell-border-radius);height:var(--dp-cell-size);padding:var(--dp-cell-padding);width:var(--dp-cell-size);border:1px solid rgba(0,0,0,0);box-sizing:border-box;position:relative}.dp__cell_inner:hover{transition:all .2s}.dp__cell_auto_range_start,.dp__date_hover_start:hover,.dp__range_start{border-end-end-radius:0;border-start-end-radius:0}.dp__cell_auto_range_end,.dp__date_hover_end:hover,.dp__range_end{border-end-start-radius:0;border-start-start-radius:0}.dp__range_end,.dp__range_start,.dp__active_date{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__date_hover_end:hover,.dp__date_hover_start:hover,.dp__date_hover:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__cell_offset{color:var(--dp-secondary-color)}.dp__cell_disabled{color:var(--dp-secondary-color);cursor:not-allowed}.dp__range_between{background:var(--dp-range-between-dates-background-color);color:var(--dp-range-between-dates-text-color);border-radius:0;border:1px solid var(--dp-range-between-border-color)}.dp__range_between_week{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border-radius:0;border-top:1px solid var(--dp-primary-color);border-bottom:1px solid var(--dp-primary-color)}.dp__today{border:1px solid var(--dp-primary-color)}.dp__week_num{color:var(--dp-secondary-color);text-align:center}.dp__cell_auto_range{border-radius:0;border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_start{border-start-start-radius:var(--dp-cell-border-radius);border-end-start-radius:var(--dp-cell-border-radius);border-inline-start:1px dashed var(--dp-primary-color);border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_end{border-start-end-radius:var(--dp-cell-border-radius);border-end-end-radius:var(--dp-cell-border-radius);border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color);border-inline-end:1px dashed var(--dp-primary-color)}.dp__calendar_header_separator{width:100%;height:1px;background:var(--dp-border-color)}.dp__calendar_next{margin-inline-start:var(--dp-multi-calendars-spacing)}.dp__marker_line,.dp__marker_dot{height:5px;background-color:var(--dp-marker-color);position:absolute;bottom:0}.dp__marker_dot{width:5px;border-radius:50%;left:50%;transform:translate(-50%)}.dp__marker_line{width:100%;left:0}.dp__marker_tooltip{position:absolute;border-radius:var(--dp-border-radius);background-color:var(--dp-tooltip-color);padding:5px;border:1px solid var(--dp-border-color);z-index:99999;box-sizing:border-box;cursor:default}.dp__tooltip_content{white-space:nowrap}.dp__tooltip_text{display:flex;align-items:center;flex-flow:row nowrap;color:var(--dp-text-color)}.dp__tooltip_mark{height:5px;width:5px;border-radius:50%;background-color:var(--dp-text-color);color:var(--dp-text-color);margin-inline-end:5px}.dp__arrow_bottom_tp{bottom:0;height:8px;width:8px;background-color:var(--dp-tooltip-color);position:absolute;border-inline-end:1px solid var(--dp-border-color);border-bottom:1px solid var(--dp-border-color);transform:translate(-50%,50%) rotate(45deg)}.dp__instance_calendar{position:relative;width:100%}.dp__flex_display[data-dp-mobile],.dp--flex-display-collapsed{flex-direction:column}.dp__cell_highlight{background-color:var(--dp-highlight-color)}.dp__month_year_row{display:flex;align-items:center;height:var(--dp-month-year-row-height);color:var(--dp-text-color);box-sizing:border-box}.dp__inner_nav{display:flex;align-items:center;justify-content:center;cursor:pointer;height:var(--dp-month-year-row-button-size);width:var(--dp-month-year-row-button-size);color:var(--dp-icon-color);text-align:center;border-radius:50%}.dp__inner_nav svg{height:var(--dp-button-icon-height);width:var(--dp-button-icon-height)}.dp__inner_nav:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}[dir=rtl] .dp__inner_nav{transform:rotate(180deg)}.dp__inner_nav_disabled:hover,.dp__inner_nav_disabled{background:var(--dp-disabled-color);color:var(--dp-disabled-color-text);cursor:not-allowed}.dp--year-select,.dp__month_year_select{text-align:center;cursor:pointer;height:var(--dp-month-year-row-height);display:flex;align-items:center;justify-content:center;border-radius:var(--dp-border-radius);box-sizing:border-box;color:var(--dp-text-color)}.dp--year-select:hover,.dp__month_year_select:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp__month_year_select{width:50%}.dp--year-select{width:100%}.dp__month_year_wrap{display:flex;flex-direction:row;width:100%}.dp__year_disable_select{justify-content:space-around}.dp--header-wrap{display:flex;width:100%;flex-direction:column}.dp__overlay{width:100%;background:var(--dp-background-color);transition:opacity 1s ease-out;z-index:99999;font-family:var(--dp-font-family);color:var(--dp-text-color);box-sizing:border-box}.dp--overlay-absolute{position:absolute;height:100%;top:0;left:0}.dp--overlay-relative{position:relative}.dp__overlay_container::-webkit-scrollbar-track{box-shadow:var(--dp-scroll-bar-background);background-color:var(--dp-scroll-bar-background)}.dp__overlay_container::-webkit-scrollbar{width:5px;background-color:var(--dp-scroll-bar-background)}.dp__overlay_container::-webkit-scrollbar-thumb{background-color:var(--dp-scroll-bar-color);border-radius:10px}.dp__overlay:focus{border:none;outline:none}.dp__container_flex{display:flex}.dp__container_block{display:block}.dp__overlay_container{flex-direction:column;overflow-y:auto;height:var(--dp-overlay-height)}.dp__time_picker_overlay_container{height:100%}.dp__overlay_row{padding:0;box-sizing:border-box;display:flex;margin-inline:auto;flex-wrap:wrap;max-width:100%;width:100%;align-items:center}.dp__flex_row{flex:1}.dp__overlay_col{box-sizing:border-box;width:33%;padding:var(--dp-overlay-col-padding);white-space:nowrap}.dp__overlay_cell_pad{padding:var(--dp-common-padding) 0}.dp__overlay_cell_active{cursor:pointer;border-radius:var(--dp-border-radius);text-align:center;background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__overlay_cell{cursor:pointer;border-radius:var(--dp-border-radius);text-align:center}.dp__overlay_cell:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp__cell_in_between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__over_action_scroll{right:5px;box-sizing:border-box}.dp__overlay_cell_disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp__overlay_cell_disabled:hover{background:var(--dp-disabled-color)}.dp__overlay_cell_active_disabled{cursor:not-allowed;background:var(--dp-primary-disabled-color)}.dp__overlay_cell_active_disabled:hover{background:var(--dp-primary-disabled-color)}.dp__btn,.dp--qr-btn,.dp--time-overlay-btn,.dp--time-invalid{border:none;font:inherit;transition:var(--dp-common-transition);line-height:normal}.dp--year-mode-picker{display:flex;width:100%;align-items:center;justify-content:space-between;height:var(--dp-cell-size)}.dp--tp-wrap{max-width:var(--dp-menu-min-width)}.dp--tp-wrap[data-dp-mobile]{max-width:100%}.dp__time_input{width:100%;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;font-family:var(--dp-font-family);color:var(--dp-text-color)}.dp__time_col_reg_block{padding:0 20px}.dp__time_col_reg_inline{padding:0 10px}.dp__time_col_reg_with_button{padding:0 15px}.dp__time_col_reg_with_button[data-compact~=true]{padding:0 5px}.dp__time_col_sec{padding:0 10px}.dp__time_col_sec_with_button{padding:0 5px}.dp__time_col_sec_with_button[data-collapsed~=true]{padding:0}.dp__time_col{text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.dp__time_col_block{font-size:var(--dp-time-font-size)}.dp__time_display_block{padding:0 3px}.dp__time_display_inline{padding:5px}.dp__time_picker_inline_container{display:flex;width:100%;justify-content:center}.dp__inc_dec_button{padding:5px;margin:0;height:var(--dp-time-inc-dec-button-size);width:var(--dp-time-inc-dec-button-size);display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;color:var(--dp-icon-color);box-sizing:border-box}.dp__inc_dec_button svg{height:var(--dp-time-inc-dec-button-size);width:var(--dp-time-inc-dec-button-size)}.dp__inc_dec_button:hover{background:var(--dp-hover-color);color:var(--dp-primary-color)}.dp__time_display{cursor:pointer;color:var(--dp-text-color);border-radius:var(--dp-border-radius);display:flex;align-items:center;justify-content:center}.dp__time_display:hover:enabled{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__inc_dec_button_inline{width:100%;padding:0;height:8px;cursor:pointer;display:flex;align-items:center}.dp__inc_dec_button_disabled,.dp__inc_dec_button_disabled:hover{background:var(--dp-disabled-color);color:var(--dp-disabled-color-text);cursor:not-allowed}.dp__pm_am_button{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border:none;padding:var(--dp-common-padding);border-radius:var(--dp-border-radius);cursor:pointer}.dp__pm_am_button[data-compact~=true]{padding:7px}.dp__tp_inline_btn_bar{width:100%;height:4px;background-color:var(--dp-secondary-color);transition:var(--dp-common-transition);border-collapse:collapse}.dp__tp_inline_btn_top:hover .dp__tp_btn_in_r{background-color:var(--dp-primary-color);transform:rotate(12deg) scale(1.15) translateY(-2px)}.dp__tp_inline_btn_top:hover .dp__tp_btn_in_l,.dp__tp_inline_btn_bottom:hover .dp__tp_btn_in_r{background-color:var(--dp-primary-color);transform:rotate(-12deg) scale(1.15) translateY(-2px)}.dp__tp_inline_btn_bottom:hover .dp__tp_btn_in_l{background-color:var(--dp-primary-color);transform:rotate(12deg) scale(1.15) translateY(-2px)}.dp--time-overlay-btn{background:none}.dp--time-invalid{background-color:var(--dp-disabled-color)}.dp__action_row{display:flex;align-items:center;width:100%;padding:var(--dp-action-row-padding);box-sizing:border-box;color:var(--dp-text-color);flex-flow:row nowrap}.dp__action_row svg{height:var(--dp-button-icon-height);width:auto}.dp__selection_preview{display:block;color:var(--dp-text-color);font-size:var(--dp-preview-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dp__action_buttons{display:flex;flex:0;white-space:nowrap;align-items:center;justify-content:flex-end;margin-inline-start:auto}.dp__action_button{display:inline-flex;align-items:center;background:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);padding:var(--dp-action-buttons-padding);line-height:var(--dp-action-button-height);margin-inline-start:3px;height:var(--dp-action-button-height);cursor:pointer;border-radius:var(--dp-border-radius);font-size:var(--dp-preview-font-size);font-family:var(--dp-font-family)}.dp__action_cancel{color:var(--dp-text-color);border:1px solid var(--dp-border-color)}.dp__action_cancel:hover{border-color:var(--dp-primary-color);transition:var(--dp-action-row-transtion)}.dp__action_buttons .dp__action_select{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__action_buttons .dp__action_select:hover{background:var(--dp-primary-color);transition:var(--dp-action-row-transtion)}.dp__action_buttons .dp__action_select:disabled{background:var(--dp-primary-disabled-color);cursor:not-allowed}.dp-quarter-picker-wrap{display:flex;flex-direction:column;height:100%;min-width:var(--dp-menu-min-width)}.dp--qr-btn-disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp--qr-btn-disabled:hover{background:var(--dp-disabled-color)}.dp--qr-btn{width:100%;padding:var(--dp-common-padding)}.dp--qr-btn:not(.dp--highlighted,.dp--qr-btn-active,.dp--qr-btn-disabled,.dp--qr-btn-between){background:none}.dp--qr-btn:hover:not(.dp--qr-btn-active,.dp--qr-btn-disabled){background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp--quarter-items{display:flex;flex-direction:column;flex:1;width:100%;height:100%;justify-content:space-evenly}.dp--qr-btn-active{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp--qr-btn-between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}:root{--dp-common-transition: all .1s ease-in;--dp-menu-padding: 6px 8px;--dp-animation-duration: .1s;--dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1);--dp-transition-timing: ease-out;--dp-action-row-transtion: all .2s ease-in;--dp-font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif;--dp-border-radius: 4px;--dp-cell-border-radius: 4px;--dp-transition-length: 22px;--dp-transition-timing-general: .1s;--dp-button-height: 35px;--dp-month-year-row-height: 35px;--dp-month-year-row-button-size: 25px;--dp-button-icon-height: 20px;--dp-calendar-wrap-padding: 0 5px;--dp-cell-size: 35px;--dp-cell-padding: 5px;--dp-common-padding: 10px;--dp-input-icon-padding: 35px;--dp-input-padding: 6px 30px 6px 12px;--dp-menu-min-width: 260px;--dp-action-buttons-padding: 1px 6px;--dp-row-margin: 5px 0;--dp-calendar-header-cell-padding: .5rem;--dp-multi-calendars-spacing: 10px;--dp-overlay-col-padding: 3px;--dp-time-inc-dec-button-size: 32px;--dp-font-size: 1rem;--dp-preview-font-size: .8rem;--dp-time-font-size: 2rem;--dp-action-button-height: 22px;--dp-action-row-padding: 8px;--dp-direction: ltr}.dp__theme_dark{--dp-background-color: #212121;--dp-text-color: #fff;--dp-hover-color: #484848;--dp-hover-text-color: #fff;--dp-hover-icon-color: #959595;--dp-primary-color: #005cb2;--dp-primary-disabled-color: #61a8ea;--dp-primary-text-color: #fff;--dp-secondary-color: #a9a9a9;--dp-border-color: #2d2d2d;--dp-menu-border-color: #2d2d2d;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #737373;--dp-disabled-color-text: #d0d0d0;--dp-scroll-bar-background: #212121;--dp-scroll-bar-color: #484848;--dp-success-color: #00701a;--dp-success-color-disabled: #428f59;--dp-icon-color: #959595;--dp-danger-color: #e53935;--dp-marker-color: #e53935;--dp-tooltip-color: #3e3e3e;--dp-highlight-color: rgb(0 92 178 / 20%);--dp-range-between-dates-background-color: var(--dp-hover-color, #484848);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #fff);--dp-range-between-border-color: var(--dp-hover-color, #fff);--dp-loader: 5px solid #005cb2}.dp__theme_light{--dp-background-color: #fff;--dp-text-color: #212121;--dp-hover-color: #f3f3f3;--dp-hover-text-color: #212121;--dp-hover-icon-color: #959595;--dp-primary-color: #1976d2;--dp-primary-disabled-color: #6bacea;--dp-primary-text-color: #fff;--dp-secondary-color: #c0c4cc;--dp-border-color: #ddd;--dp-menu-border-color: #ddd;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #f6f6f6;--dp-scroll-bar-background: #f3f3f3;--dp-scroll-bar-color: #959595;--dp-success-color: #76d275;--dp-success-color-disabled: #a3d9b1;--dp-icon-color: #959595;--dp-danger-color: #ff6f60;--dp-marker-color: #ff6f60;--dp-tooltip-color: #fafafa;--dp-disabled-color-text: #8e8e8e;--dp-highlight-color: rgb(25 118 210 / 10%);--dp-range-between-dates-background-color: var(--dp-hover-color, #f3f3f3);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #212121);--dp-range-between-border-color: var(--dp-hover-color, #f3f3f3);--dp-loader: 5px solid #1976d2}.dp__flex{display:flex;align-items:center}.dp__btn{background:none}.dp__main{font-family:var(--dp-font-family);-webkit-user-select:none;user-select:none;box-sizing:border-box;position:relative;width:100%}.dp__main *{direction:var(--dp-direction, ltr)}.dp__pointer{cursor:pointer}.dp__icon{stroke:currentcolor;fill:currentcolor}.dp__button{width:100%;text-align:center;color:var(--dp-icon-color);cursor:pointer;display:flex;align-items:center;place-content:center center;padding:var(--dp-common-padding);box-sizing:border-box;height:var(--dp-button-height)}.dp__button.dp__overlay_action{position:absolute;bottom:0}.dp__button:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}.dp__button svg{height:var(--dp-button-icon-height);width:auto}.dp__button_bottom{border-bottom-left-radius:var(--dp-border-radius);border-bottom-right-radius:var(--dp-border-radius)}.dp__flex_display{display:flex}.dp__flex_display_with_input{flex-direction:column;align-items:flex-start}.dp__relative{position:relative}.calendar-next-enter-active,.calendar-next-leave-active,.calendar-prev-enter-active,.calendar-prev-leave-active{transition:all var(--dp-transition-timing-general) ease-out}.calendar-next-enter-from{opacity:0;transform:translate(var(--dp-transition-length))}.calendar-next-leave-to,.calendar-prev-enter-from{opacity:0;transform:translate(calc(var(--dp-transition-length) * -1))}.calendar-prev-leave-to{opacity:0;transform:translate(var(--dp-transition-length))}.dp-menu-appear-bottom-enter-active,.dp-menu-appear-bottom-leave-active,.dp-menu-appear-top-enter-active,.dp-menu-appear-top-leave-active,.dp-slide-up-enter-active,.dp-slide-up-leave-active,.dp-slide-down-enter-active,.dp-slide-down-leave-active{transition:all var(--dp-animation-duration) var(--dp-transition-timing)}.dp-menu-appear-top-enter-from,.dp-menu-appear-top-leave-to,.dp-slide-down-leave-to,.dp-slide-up-enter-from{opacity:0;transform:translateY(var(--dp-transition-length))}.dp-menu-appear-bottom-enter-from,.dp-menu-appear-bottom-leave-to,.dp-slide-down-enter-from,.dp-slide-up-leave-to{opacity:0;transform:translateY(calc(var(--dp-transition-length) * -1))}.dp--arrow-btn-nav{transition:var(--dp-common-transition)}.dp--highlighted{background-color:var(--dp-highlight-color)}.dp--hidden-el{visibility:hidden}.input--datepicker--lg{--dp-cell-size: 4rem}.input--datepicker>*{order:unset}.input--datepicker .input-group{align-items:unset;flex-wrap:unset;width:auto;flex-grow:1}.input--datepicker .dp__calendar_header_item{display:grid;place-content:center}:root{--dp-font-family: inherit;--dp-border-radius: 0;--dp-cell-border-radius: 50%;--dp-common-transition: all .1s ease-in;--dp-button-height: 2.25em;--dp-month-year-row-height: 2em;--dp-month-year-row-button-size: 2.25em;--dp-button-icon-height: 1.25em;--dp-cell-size: 2.5em;--dp-cell-padding: .25em;--dp-common-padding: 1em;--dp-input-icon-padding: 2.25em;--dp-input-padding: .75em 2em .75em 1em;--dp-menu-min-width: 100%;--dp-action-buttons-padding: .125em .25em;--dp-row-margin: .5em 0;--dp-calendar-header-cell-padding: .5em;--dp-two-calendars-spacing: .625em;--dp-overlay-col-padding: .25em;--dp-time-inc-dec-button-size: 2em;--dp-menu-padding: .375em .5em;--dp-font-size: 1em;--dp-preview-font-size: .8em;--dp-time-font-size: 1em;--dp-animation-duration: .1s;--dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1);--dp-transition-timing: ease-out}.dp__theme_dark{--dp-background-color: #212121;--dp-text-color: #fff;--dp-hover-color: #484848;--dp-hover-text-color: #fff;--dp-hover-icon-color: #959595;--dp-primary-color: #005cb2;--dp-primary-disabled-color: #61a8ea;--dp-primary-text-color: #fff;--dp-secondary-color: #a9a9a9;--dp-border-color: #2d2d2d;--dp-menu-border-color: #2d2d2d;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #737373;--dp-disabled-color-text: #d0d0d0;--dp-scroll-bar-background: #212121;--dp-scroll-bar-color: #484848;--dp-success-color: #00701a;--dp-success-color-disabled: #428f59;--dp-icon-color: #959595;--dp-danger-color: #e53935;--dp-marker-color: #e53935;--dp-tooltip-color: #3e3e3e;--dp-highlight-color: rgb(0 92 178 / 20%);--dp-range-between-dates-background-color: var(--dp-hover-color, #484848);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #fff);--dp-range-between-border-color: var(--dp-hover-color, #fff)}.dp__theme_light{--dp-background-color: #fff;--dp-text-color: #212121;--dp-hover-color: #f3f3f3;--dp-hover-text-color: #212121;--dp-hover-icon-color: #959595;--dp-primary-color: #1976d2;--dp-primary-disabled-color: #6bacea;--dp-primary-text-color: #f8f5f5;--dp-secondary-color: #c0c4cc;--dp-border-color: #ddd;--dp-menu-border-color: #ddd;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #f6f6f6;--dp-scroll-bar-background: #f3f3f3;--dp-scroll-bar-color: #959595;--dp-success-color: #76d275;--dp-success-color-disabled: #a3d9b1;--dp-icon-color: #959595;--dp-danger-color: #ff6f60;--dp-marker-color: #ff6f60;--dp-tooltip-color: #fafafa;--dp-disabled-color-text: #8e8e8e;--dp-highlight-color: rgb(25 118 210 / 10%);--dp-range-between-dates-background-color: var(--dp-hover-color, #f3f3f3);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #212121);--dp-range-between-border-color: var(--dp-hover-color, #f3f3f3)}.check-group>.form-check{order:1}.check-group label{order:0}.check-group--row{display:inline-flex;flex-flow:row wrap;gap:.5rem}.check-group--row label{flex:1 0 100%}.radio-group>.form-check{order:1}.radio-group label{order:0}.radio-group--row{display:inline-flex;flex-flow:row wrap;gap:.5rem}.radio-group--row label{flex:1 0 100%}.radio-buttons{--color-basic-option: #f44336;--color-key-option: #4caf50}.radio-buttons .form-check{padding:0}.radio-buttons input[type=radio]{display:none}.radio-buttons:has(:checked) .form-check-input+label{background-color:var(--color-basic-option);color:#fff;border-color:transparent}.radio-buttons:has(:checked) .form-check-input--key+label{background-color:var(--color-key-option)}.select-media .form-check{padding:0}.select-media input[type=radio]{display:none}.select-media .is-active{outline:.5rem solid var(--bs-primary);outline-offset:-.5rem}.select-media.responsive-container{container-name:responsive-container;container-type:inline-size}@container responsive-container (width > 640px){.select-media .form-check{width:50%!important}}.rte-editor{height:100%;display:flex;flex-direction:column}.rte-editor__content{flex:1 1 auto}.rte-editor .ProseMirror{height:100%}.ProseMirror>*+*{margin-top:.75em}.ProseMirror ul,.ProseMirror ol{padding:0 1rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{line-height:1.1}.ProseMirror code{background-color:#6161611a;color:#616161}.ProseMirror pre{background:#0D0D0D;color:#fff;font-family:JetBrainsMono,monospace;padding:.75rem 1rem;border-radius:.5rem}.ProseMirror pre code{color:inherit;padding:0;background:none;font-size:.8rem}.ProseMirror img{max-width:100%;height:auto}.ProseMirror blockquote{padding-left:1rem;border-left:2px solid rgba(13,13,13,.1)}.ProseMirror hr{border:none;border-top:2px solid rgba(13,13,13,.1);margin:2rem 0}.rte-editor__content{border:1px solid var(--bs-border-color);padding:.5rem}.ProseMirror-focused{outline:none}.rte-editor__controls{display:flex;flex-wrap:wrap;gap:.25rem}.rte-editor__controls .btn{padding:.5rem;font-size:.875rem;line-height:1.5;border-radius:0;font-size:.75rem;color:var(--bs-dark)}.rte-editor__controls .btn.is-active{background-color:var(--bs-primary);color:var(--bs-white)}.rte-editor__controls .dropdown-menu{min-width:0;border:none}.base-input{display:flex;flex-direction:column}.base-input>*{order:2}.base-input__label{order:0}.base-input__input-group,.base-input>input,.base-input>select,.base-input>textarea{flex-wrap:nowrap;order:1}.base-input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.base-input input[type=checkbox],.base-input input[type=radio]{flex:none}.base-input input[type=color]{display:block;height:100%;padding:0;border-width:0}.base-input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.base-input input[type=color]::-webkit-color-swatch{border:none}.color-palette .form-check{padding:0}.color-palette .form-check .rounded-circle{aspect-ratio:1/1;width:1.5rem;height:1.5rem;border:thin solid var(--border-color);outline:none}.color-palette .form-check input[type=radio]{display:none}.color-palette .form-check input[type=radio]:checked+label{cursor:pointer;box-shadow:0 0 0 .25rem var(--border-color)}.dropdown-item:has(input[type=radio]){padding:0}.dropdown-item:has(input[type=radio]) .form-check{padding:0}.dropdown-item:has(input[type=radio]) .form-check-label{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x)}.suggestions{list-style:none;padding:0}.camera__preview canvas{position:relative;left:0;top:0}.camera__preview img,.camera__preview video,.camera__preview canvas{display:block;width:100%;height:100%;object-fit:cover}.camera__controls{position:absolute;bottom:0;width:100%;z-index:1;text-align:center;margin:0 0 2rem}.camera.mirror-cam img,.camera.mirror-cam video{transform:scaleX(-1)}.camera__switch-cam{position:absolute;z-index:1;right:0;top:0;margin:1rem}.camera__switch-cam .btn{display:block;background-color:#ffffff3d;border-radius:.3125rem}.camera__switch-cam .svg-icon{display:block;font-size:1.6667rem}.camera .aspect-ratio--1x1{aspect-ratio:1/1}.camera .aspect-ratio--3x2{aspect-ratio:3/2}.camera .aspect-ratio--2x3{aspect-ratio:2/3}.camera .aspect-ratio--4x3{aspect-ratio:4/3}.camera .aspect-ratio--3x4{aspect-ratio:3/4}.camera .aspect-ratio--16x9{aspect-ratio:16/9}.camera .aspect-ratio--9x16{aspect-ratio:9/16}.camera__bg-notification{position:absolute;z-index:0;left:0;top:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.camera__bg-notification+video{position:relative;z-index:1}.camera .camera__guide{position:absolute;left:0;top:0;z-index:1;display:block;width:100%;height:100%;pointer-events:none;object-fit:contain}.camera__countdown-overlay{position:absolute;left:0;top:0;z-index:2;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow:hidden}.camera__countdown-overlay .countdown{position:relative;font-size:6rem;color:#fffc;font-weight:700}.camera__countdown-overlay .countdown:before,.camera__countdown-overlay .countdown:after{position:absolute;left:0;top:0;z-index:1;content:attr(data-countdown);transform-origin:center;animation-name:pulse;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:ease-out}.camera__countdown-overlay .countdown:after{animation-duration:.1 .25s;animation-delay:.25s}@keyframes blur{0%{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}to{-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}}@keyframes pulse{0%{transform:scale(1);opacity:.5}to{transform:scale(5);opacity:0}}.file-upload{display:inline-block}.file-upload__thumbnail{position:relative}.file-upload__thumbnail img{width:100%;background:var(--bs-light)}.file-upload__thumbnail .btn{position:absolute;right:0;top:0;margin:.5rem;padding:.125rem .3125rem;border-radius:.2rem}.file-upload__thumbnail .btn:hover{background:rgba(255,255,255,.62)}.file-upload__label{position:relative}.file-upload__loading-spinner{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#ffffffa3;display:grid;place-content:center}.file-upload .fade-enter-active,.file-upload .fade-leave-active{transition:opacity .5s}.file-upload .fade-enter,.file-upload .fade-leave-to{opacity:0}.upload-group .img-thumbnail{width:5rem;aspect-ratio:1/1}.upload-group .file-upload__thumbnail{display:none}.upload-group .img-container{position:relative}.upload-group .img-container .btn--close{position:absolute;right:0;top:0;margin:.25rem;padding:.125rem}:root,*:before,*:after{--carousel-gutter-width: .75rem}.carousel__viewport{position:relative;overflow-x:auto;scroll-behavior:smooth;margin-right:calc(0px - var(--carousel-gutter-width) / 2);margin-left:calc(0px - var(--carousel-gutter-width) / 2);scrollbar-width:none;-ms-overflow-style:none}.carousel__item{flex:0 0 auto;width:20%;padding:0 calc(var(--carousel-gutter-width) / 2)}.carousel>.btn{padding-left:0;padding-right:0}.carousel__viewport::-webkit-scrollbar{height:0}.media-thumbnails{--carousel-visible-items: 5;--carousel-gap-width: .5rem;--carousel-item-width: calc(20% - var(--carousel-gap-width) + var(--carousel-gap-width) / (var(--carousel-visible-items)));position:relative;padding:.5rem 0;border-radius:.3125rem;background-color:#aaaaaa80}.media-thumbnails .carousel{gap:calc(var(--carousel-gap-width) / 2)}.media-thumbnails .carousel__track{gap:var(--carousel-gap-width)}.media-thumbnails .carousel__item{width:var(--carousel-item-width);padding:0}.progress-steps ul{display:flex;justify-content:center;gap:4rem;margin:0;padding:0;list-style:none}.progress-steps__step{position:relative}.progress-steps__step:not(:first-of-type):before{content:"";display:block;height:.2em;width:4rem;background-color:var(--bs-gray-300);position:absolute;right:100%;top:50%;transform:translateY(-50%)}.progress-steps__step--active .progress-step .btn{box-shadow:0 0 0 .5em var(--bs-gray-300)}.progress-steps__step--disabled .progress-step .btn{background-color:var(--bs-gray-300);color:var(--bs-dark)}.progress-steps__step input[type=radio]{position:absolute;opacity:0;width:0;height:0}.progress-steps__step .btn{width:2em;height:2em;padding:0;background-color:var(--bs-black);color:var(--bs-white);font-weight:700}.progress-steps__step .form-check-label{position:absolute;left:50%;top:100%;min-width:12rem;transform:translate(-50%) translateY(50%);text-align:center}.progress-steps .progress-step{position:relative}[popover]{border:none;opacity:0;transform:translateY(3rem);transition:opacity .32s,transform .32s,display .32s allow-discrete}[popover]:popover-open{opacity:1;transform:none}@starting-style{[popover]:popover-open{opacity:0;transform:translateY(3rem)}}.popover-tooltip{--popover-max-width: 25vw;--popover-max-height: 29vh;--popover-padding: 1rem;--popover-gap: var(--popover-padding);--popover-bg-color: var(--bs-body-bg);anchor-scope:all}.popover-tooltip [popovertarget]{position:relative;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;margin:0;padding:0;flex:none;anchor-name:--popover-tooltip}.popover-tooltip [popovertarget]:disabled{pointer-events:none;opacity:.5}.popover-tooltip [popovertarget]:hover,.popover-tooltip [popovertarget]:focus,.popover-tooltip [popovertarget]:focus-visible{outline:none}.popover-tooltip [popovertarget]:hover .popover-tooltip__trigger,.popover-tooltip [popovertarget]:focus .popover-tooltip__trigger,.popover-tooltip [popovertarget]:focus-visible .popover-tooltip__trigger{outline:var(--bs-border-width) solid var(--bs-primary);outline-offset:var(--bs-border-width)}.popover-tooltip [popover]{margin:0;padding:var(--popover-padding);border:0;position:absolute;top:auto;bottom:0;background-color:var(--popover-bg-color);border:var(--bs-border-width) solid var(--bs-border-color)}@media screen and (min-width: 576px){.popover-tooltip [popover]{position-anchor:--popover-tooltip;max-inline-size:var(--popover-max-width);max-block-size:var(--popover-max-height);left:anchor(--popover-tooltip center);translate:-50% 0;bottom:calc(anchor(--popover-tooltip top) + var(--popover-gap));position-try-fallbacks:--bottom-center}}.popover-tooltip [popover] .popover-tooltip__content{max-height:calc(var(--popover-max-height) - var(--popover-padding) * 2);overflow-y:auto}.popover-tooltip .popover-tooltip__trigger{width:1.5em;height:1.5em;display:flex;align-items:center;justify-content:center;text-align:center;font-size:1rem;margin:0;padding:0;background-color:var(--bs-primary);color:var(--bs-white);border-radius:50%;transition:background-color .32s ease,color .32s ease,border .32s ease}.popover-tooltip:has(:popover-open) .popover-tooltip__trigger{background-color:var(--bs-primary-bg-subtle);color:var(--bs-primary);border:var(--bs-border-width) solid var(--bs-primary-bg-subtle)}.popover-tooltip--xs{--popover-max-width: 20rem;--popover-max-height: 25vh}.popover-tooltip--sm{--popover-max-width: 25rem;--popover-max-height: 29vh}.popover-tooltip--md{--popover-max-width: 30rem;--popover-max-height: 35vh}.popover-tooltip--lg{--popover-max-width: 35rem;--popover-max-height: 40vh}.popover-tooltip--xl{--popover-max-width: 40rem;--popover-max-height: 45vh}@position-try --top-right{left: auto; right: anchor(--popover-tooltip right);}@position-try --bottom-left{bottom: auto; top: calc(anchor(--popover-tooltip bottom) + var(--popover-gap));}@position-try --bottom-right{left: auto; right: anchor(--popover-tooltip right); bottom: auto; top: calc(anchor(--popover-tooltip bottom) + var(--popover-gap));}@position-try --bottom-center{bottom: auto; top: calc(anchor(--popover-tooltip bottom) + var(--popover-gap));}.popover-notifications{--popover-max-width: 25vw;--popover-max-height: 29vh;--popover-padding: .75rem;--popover-gap: var(--popover-padding);--popover-bg-color: var(--bs-body-bg);anchor-scope:all;anchor-name:--popover-notifications}.popover-notifications [popover]{margin:0;padding:var(--popover-padding);border:0;anchor-name:--anchor-item;position:absolute;top:auto;bottom:0;background-color:var(--popover-bg-color);border:var(--bs-border-width) solid var(--bs-border-color)}@media screen and (max-width: 575px){.popover-notifications [popover]{max-inline-size:none;inline-size:100%;top:calc(anchor(--anchor-item top) + var(--popover-gap));min-block-size:25vh}.popover-notifications [popover]+[popover]{anchor-name:--anchor-item}}@media screen and (min-width: 576px){.popover-notifications [popover]{position-anchor:--anchor-item;max-inline-size:var(--popover-max-width);max-block-size:var(--popover-max-height);left:anchor(--anchor-item left);top:calc(anchor(--anchor-item bottom) + var(--popover-gap))}.popover-notifications [popover]:first-child{position-anchor:--popover-notifications;--popover-gap: 0px;left:anchor(--popover-notifications left);top:calc(anchor(--popover-notifications bottom) + var(--popover-gap))}}.popover-notifications [popover] .btn-close{font-size:.75rem}.popover-notifications [popover] .popover-notification__content{height:calc(var(--popover-max-height) - var(--popover-padding) * 2);overflow-y:auto}.link-sharing .btn{width:100%;margin-bottom:.5rem}.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button:read-only{cursor:not-allowed}.base-button:disabled{cursor:not-allowed}dialog{opacity:0;transition:opacity .8s;position:absolute;animation:modal-in .32s forwards ease;padding:0;overflow:hidden}dialog[open]{width:100%;opacity:1;pointer-events:inherit}dialog::backdrop{-webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);background-color:#0009}@keyframes modal-in{0%{translate:0 -100%;opacity:0}}.modal-dialog{background-color:var(--page-background-color, #fff);color:var(--body-color);border:none;box-shadow:0 0 .25rem #fff6;min-width:300px;max-width:500px;margin-block:auto}.modal-dialog--sm{max-width:300px}.modal-dialog--md{max-width:600px}.modal-dialog--lg{max-width:800px}.modal-dialog--xl{max-width:1140px}.modal-dialog .btn-close{border-radius:0}.modal-dialog__content{max-height:90vh}.modal-dialog__body{padding:1rem;overflow-y:auto}:root{--scroll-position: 0}body:has(dialog[open]){overflow:hidden;position:fixed;width:100%;top:calc(-1 * var(--scroll-position))}.sortable-list{list-style:none;-webkit-user-select:none;user-select:none}.sortable-list__item.is-drag-item{opacity:.5}.sortable-list__drag-handle button{display:grid;place-content:center;border-radius:0;padding-inline:0;cursor:move!important}.is-drop-target{outline:thick dashed var(--bs-gray-200)}.list-enter-active,.list-leave-active{transition:all .16s ease-in-out}.list-enter-from,.list-leave-to{opacity:0}:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.touch-wrapper{position:relative;overflow:hidden;touch-action:none}.touch-wrapper__controls{position:absolute;top:0;right:0;z-index:1}
1
+ .svg-icon{display:inline-flex;justify-content:center;align-items:center;line-height:1}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}.svg-icon--small svg{width:.875rem;height:.875rem}.loading-spinner{min-width:1.5rem}.loading-spinner svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:100%;height:100%}.loading-spinner svg path{fill:currentColor}.base-image{position:relative;overflow:hidden}.base-image img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .3s ease-in-out,transform 1.2s ease-in-out}.base-image--zoom:hover img{transform:scale(1.05)}.accordion-button__toggle{transition:transform .24s ease-in-out;transform:rotateX(180deg);transform-origin:center}.collapsed .accordion-button__toggle{transform:rotateX(0)}:root,*:before,*:after{--button-color: #fff}.btn{display:inline-flex;justify-content:center;align-items:center;gap:.5em;transition:all .2s ease;text-decoration:none}.btn:disabled{cursor:not-allowed}.btn .loading-spinner svg{max-width:1.5em;max-height:1.5em}.input{display:flex;flex-direction:column}.input>*{order:2}.input__label{order:0;text-align:start}.input__input-group,.input>input,.input>select,.input>textarea{flex-wrap:nowrap;order:1}.input__error{display:none}.input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.input input[type=checkbox],.input input[type=radio]{flex:none}.input input[type=color]{display:block;height:100%;padding:0;border-width:0}.input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.input input[type=color]::-webkit-color-swatch{border:none}.form-switch{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:0;gap:1rem}.form-switch .input-group{width:auto}.form-switch .form-check-input{width:2.5rem;height:1.3125rem;margin-left:0}.form-switch .form-check-label{margin:0}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}.dp__input_wrap{position:relative;width:100%;box-sizing:unset}.dp__input_wrap:focus{border-color:var(--dp-border-color-hover);outline:none}.dp__input_valid{box-shadow:0 0 var(--dp-border-radius) var(--dp-success-color);border-color:var(--dp-success-color)}.dp__input_valid:hover{border-color:var(--dp-success-color)}.dp__input_invalid{box-shadow:0 0 var(--dp-border-radius) var(--dp-danger-color);border-color:var(--dp-danger-color)}.dp__input_invalid:hover{border-color:var(--dp-danger-color)}.dp__input{background-color:var(--dp-background-color);border-radius:var(--dp-border-radius);font-family:var(--dp-font-family);border:1px solid var(--dp-border-color);outline:none;transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%;font-size:var(--dp-font-size);line-height:calc(var(--dp-font-size)*1.5);padding:var(--dp-input-padding);color:var(--dp-text-color);box-sizing:border-box}.dp__input::placeholder{opacity:.7}.dp__input:hover:not(.dp__input_focus){border-color:var(--dp-border-color-hover)}.dp__input_reg{caret-color:#0000}.dp__input_focus{border-color:var(--dp-border-color-focus)}.dp__disabled{background:var(--dp-disabled-color)}.dp__disabled::placeholder{color:var(--dp-disabled-color-text)}.dp__input_icons{display:inline-block;width:var(--dp-font-size);height:var(--dp-font-size);stroke-width:0;font-size:var(--dp-font-size);line-height:calc(var(--dp-font-size)*1.5);padding:6px 12px;color:var(--dp-icon-color);box-sizing:content-box}.dp__input_icon{cursor:pointer;position:absolute;top:50%;inset-inline-start:0;transform:translateY(-50%);color:var(--dp-icon-color)}.dp--clear-btn{position:absolute;top:50%;inset-inline-end:0;transform:translateY(-50%);cursor:pointer;color:var(--dp-icon-color);background:rgba(0,0,0,0);border:none;display:inline-flex;align-items:center;padding:0;margin:0}.dp__input_icon_pad{padding-inline-start:var(--dp-input-icon-padding)}.dp__menu{background:var(--dp-background-color);border-radius:var(--dp-border-radius);min-width:var(--dp-menu-min-width);font-family:var(--dp-font-family);font-size:var(--dp-font-size);-webkit-user-select:none;user-select:none;border:1px solid var(--dp-menu-border-color);box-sizing:border-box}.dp__menu:after{box-sizing:border-box}.dp__menu:before{box-sizing:border-box}.dp__menu:focus{border:1px solid var(--dp-menu-border-color);outline:none}.dp--menu-wrapper{position:absolute;z-index:99999}.dp__menu_inner{padding:var(--dp-menu-padding)}.dp--menu--inner-stretched{padding:6px 0}.dp__menu_index{z-index:99999}.dp-menu-loading,.dp__menu_readonly,.dp__menu_disabled{position:absolute;top:0;right:0;bottom:0;left:0;z-index:999999}.dp__menu_disabled{background:hsla(0,0%,100%,.5);cursor:not-allowed}.dp__menu_readonly{background:rgba(0,0,0,0);cursor:default}.dp-menu-loading{background:hsla(0,0%,100%,.5);cursor:default}.dp--menu-load-container{display:flex;height:100%;width:100%;justify-content:center;align-items:center}.dp--menu-loader{width:48px;height:48px;border:var(--dp-loader);border-bottom-color:#0000;border-radius:50%;display:inline-block;box-sizing:border-box;animation:dp-load-rotation 1s linear infinite;position:absolute}@keyframes dp-load-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dp__arrow_top{left:var(--dp-arrow-left);top:0;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-inline-end:1px solid var(--dp-menu-border-color);border-top:1px solid var(--dp-menu-border-color);transform:translate(-50%,-50%) rotate(-45deg)}.dp__arrow_bottom{left:var(--dp-arrow-left);bottom:0;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-inline-end:1px solid var(--dp-menu-border-color);border-bottom:1px solid var(--dp-menu-border-color);transform:translate(-50%,50%) rotate(45deg)}.dp__action_extra{text-align:center;padding:2px 0}.dp--preset-dates{padding:5px;border-inline-end:1px solid var(--dp-border-color)}.dp--preset-dates[data-dp-mobile],.dp--preset-dates-collapsed{display:flex;align-self:center;border:none;overflow-x:auto;max-width:calc(var(--dp-menu-width) - var(--dp-action-row-padding)*2)}.dp__sidebar_left{padding:5px;border-inline-end:1px solid var(--dp-border-color)}.dp__sidebar_right{padding:5px;margin-inline-end:1px solid var(--dp-border-color)}.dp--preset-range{display:block;width:100%;padding:5px;text-align:left;white-space:nowrap;color:var(--dp-text-color);border-radius:var(--dp-border-radius);transition:var(--dp-common-transition)}.dp--preset-range:hover{background-color:var(--dp-hover-color);color:var(--dp-hover-text-color);cursor:pointer}.dp--preset-range[data-dp-mobile]{border:1px solid var(--dp-border-color);margin:0 3px}.dp--preset-range[data-dp-mobile]:first-child{margin-left:0}.dp--preset-range[data-dp-mobile]:last-child{margin-right:0}.dp--preset-range-collapsed{border:1px solid var(--dp-border-color);margin:0 3px}.dp--preset-range-collapsed:first-child{margin-left:0}.dp--preset-range-collapsed:last-child{margin-right:0}.dp__menu_content_wrapper{display:flex}.dp__menu_content_wrapper[data-dp-mobile],.dp--menu-content-wrapper-collapsed{flex-direction:column-reverse}.dp__calendar_header{position:relative;display:flex;justify-content:center;align-items:center;color:var(--dp-text-color);white-space:nowrap;font-weight:700}.dp__calendar_header_item{text-align:center;flex-grow:1;height:var(--dp-cell-size);padding:var(--dp-cell-padding);width:var(--dp-cell-size);box-sizing:border-box}.dp__calendar_row{display:flex;justify-content:center;align-items:center;margin:var(--dp-row-margin)}.dp__calendar_item{text-align:center;flex-grow:1;box-sizing:border-box;color:var(--dp-text-color)}.dp__calendar{position:relative}.dp__calendar_header_cell{border-bottom:thin solid var(--dp-border-color);padding:var(--dp-calendar-header-cell-padding)}.dp__cell_inner{display:flex;align-items:center;text-align:center;justify-content:center;border-radius:var(--dp-cell-border-radius);height:var(--dp-cell-size);padding:var(--dp-cell-padding);width:var(--dp-cell-size);border:1px solid rgba(0,0,0,0);box-sizing:border-box;position:relative}.dp__cell_inner:hover{transition:all .2s}.dp__cell_auto_range_start,.dp__date_hover_start:hover,.dp__range_start{border-end-end-radius:0;border-start-end-radius:0}.dp__cell_auto_range_end,.dp__date_hover_end:hover,.dp__range_end{border-end-start-radius:0;border-start-start-radius:0}.dp__range_end,.dp__range_start,.dp__active_date{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__date_hover_end:hover,.dp__date_hover_start:hover,.dp__date_hover:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__cell_offset{color:var(--dp-secondary-color)}.dp__cell_disabled{color:var(--dp-secondary-color);cursor:not-allowed}.dp__range_between{background:var(--dp-range-between-dates-background-color);color:var(--dp-range-between-dates-text-color);border-radius:0;border:1px solid var(--dp-range-between-border-color)}.dp__range_between_week{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border-radius:0;border-top:1px solid var(--dp-primary-color);border-bottom:1px solid var(--dp-primary-color)}.dp__today{border:1px solid var(--dp-primary-color)}.dp__week_num{color:var(--dp-secondary-color);text-align:center}.dp__cell_auto_range{border-radius:0;border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_start{border-start-start-radius:var(--dp-cell-border-radius);border-end-start-radius:var(--dp-cell-border-radius);border-inline-start:1px dashed var(--dp-primary-color);border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_end{border-start-end-radius:var(--dp-cell-border-radius);border-end-end-radius:var(--dp-cell-border-radius);border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color);border-inline-end:1px dashed var(--dp-primary-color)}.dp__calendar_header_separator{width:100%;height:1px;background:var(--dp-border-color)}.dp__calendar_next{margin-inline-start:var(--dp-multi-calendars-spacing)}.dp__marker_line,.dp__marker_dot{height:5px;background-color:var(--dp-marker-color);position:absolute;bottom:0}.dp__marker_dot{width:5px;border-radius:50%;left:50%;transform:translate(-50%)}.dp__marker_line{width:100%;left:0}.dp__marker_tooltip{position:absolute;border-radius:var(--dp-border-radius);background-color:var(--dp-tooltip-color);padding:5px;border:1px solid var(--dp-border-color);z-index:99999;box-sizing:border-box;cursor:default}.dp__tooltip_content{white-space:nowrap}.dp__tooltip_text{display:flex;align-items:center;flex-flow:row nowrap;color:var(--dp-text-color)}.dp__tooltip_mark{height:5px;width:5px;border-radius:50%;background-color:var(--dp-text-color);color:var(--dp-text-color);margin-inline-end:5px}.dp__arrow_bottom_tp{bottom:0;height:8px;width:8px;background-color:var(--dp-tooltip-color);position:absolute;border-inline-end:1px solid var(--dp-border-color);border-bottom:1px solid var(--dp-border-color);transform:translate(-50%,50%) rotate(45deg)}.dp__instance_calendar{position:relative;width:100%}.dp__flex_display[data-dp-mobile],.dp--flex-display-collapsed{flex-direction:column}.dp__cell_highlight{background-color:var(--dp-highlight-color)}.dp__month_year_row{display:flex;align-items:center;height:var(--dp-month-year-row-height);color:var(--dp-text-color);box-sizing:border-box}.dp__inner_nav{display:flex;align-items:center;justify-content:center;cursor:pointer;height:var(--dp-month-year-row-button-size);width:var(--dp-month-year-row-button-size);color:var(--dp-icon-color);text-align:center;border-radius:50%}.dp__inner_nav svg{height:var(--dp-button-icon-height);width:var(--dp-button-icon-height)}.dp__inner_nav:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}[dir=rtl] .dp__inner_nav{transform:rotate(180deg)}.dp__inner_nav_disabled:hover,.dp__inner_nav_disabled{background:var(--dp-disabled-color);color:var(--dp-disabled-color-text);cursor:not-allowed}.dp--year-select,.dp__month_year_select{text-align:center;cursor:pointer;height:var(--dp-month-year-row-height);display:flex;align-items:center;justify-content:center;border-radius:var(--dp-border-radius);box-sizing:border-box;color:var(--dp-text-color)}.dp--year-select:hover,.dp__month_year_select:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp__month_year_select{width:50%}.dp--year-select{width:100%}.dp__month_year_wrap{display:flex;flex-direction:row;width:100%}.dp__year_disable_select{justify-content:space-around}.dp--header-wrap{display:flex;width:100%;flex-direction:column}.dp__overlay{width:100%;background:var(--dp-background-color);transition:opacity 1s ease-out;z-index:99999;font-family:var(--dp-font-family);color:var(--dp-text-color);box-sizing:border-box}.dp--overlay-absolute{position:absolute;height:100%;top:0;left:0}.dp--overlay-relative{position:relative}.dp__overlay_container::-webkit-scrollbar-track{box-shadow:var(--dp-scroll-bar-background);background-color:var(--dp-scroll-bar-background)}.dp__overlay_container::-webkit-scrollbar{width:5px;background-color:var(--dp-scroll-bar-background)}.dp__overlay_container::-webkit-scrollbar-thumb{background-color:var(--dp-scroll-bar-color);border-radius:10px}.dp__overlay:focus{border:none;outline:none}.dp__container_flex{display:flex}.dp__container_block{display:block}.dp__overlay_container{flex-direction:column;overflow-y:auto;height:var(--dp-overlay-height)}.dp__time_picker_overlay_container{height:100%}.dp__overlay_row{padding:0;box-sizing:border-box;display:flex;margin-inline:auto;flex-wrap:wrap;max-width:100%;width:100%;align-items:center}.dp__flex_row{flex:1}.dp__overlay_col{box-sizing:border-box;width:33%;padding:var(--dp-overlay-col-padding);white-space:nowrap}.dp__overlay_cell_pad{padding:var(--dp-common-padding) 0}.dp__overlay_cell_active{cursor:pointer;border-radius:var(--dp-border-radius);text-align:center;background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__overlay_cell{cursor:pointer;border-radius:var(--dp-border-radius);text-align:center}.dp__overlay_cell:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp__cell_in_between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__over_action_scroll{right:5px;box-sizing:border-box}.dp__overlay_cell_disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp__overlay_cell_disabled:hover{background:var(--dp-disabled-color)}.dp__overlay_cell_active_disabled{cursor:not-allowed;background:var(--dp-primary-disabled-color)}.dp__overlay_cell_active_disabled:hover{background:var(--dp-primary-disabled-color)}.dp__btn,.dp--qr-btn,.dp--time-overlay-btn,.dp--time-invalid{border:none;font:inherit;transition:var(--dp-common-transition);line-height:normal}.dp--year-mode-picker{display:flex;width:100%;align-items:center;justify-content:space-between;height:var(--dp-cell-size)}.dp--tp-wrap{max-width:var(--dp-menu-min-width)}.dp--tp-wrap[data-dp-mobile]{max-width:100%}.dp__time_input{width:100%;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;font-family:var(--dp-font-family);color:var(--dp-text-color)}.dp__time_col_reg_block{padding:0 20px}.dp__time_col_reg_inline{padding:0 10px}.dp__time_col_reg_with_button{padding:0 15px}.dp__time_col_reg_with_button[data-compact~=true]{padding:0 5px}.dp__time_col_sec{padding:0 10px}.dp__time_col_sec_with_button{padding:0 5px}.dp__time_col_sec_with_button[data-collapsed~=true]{padding:0}.dp__time_col{text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.dp__time_col_block{font-size:var(--dp-time-font-size)}.dp__time_display_block{padding:0 3px}.dp__time_display_inline{padding:5px}.dp__time_picker_inline_container{display:flex;width:100%;justify-content:center}.dp__inc_dec_button{padding:5px;margin:0;height:var(--dp-time-inc-dec-button-size);width:var(--dp-time-inc-dec-button-size);display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;color:var(--dp-icon-color);box-sizing:border-box}.dp__inc_dec_button svg{height:var(--dp-time-inc-dec-button-size);width:var(--dp-time-inc-dec-button-size)}.dp__inc_dec_button:hover{background:var(--dp-hover-color);color:var(--dp-primary-color)}.dp__time_display{cursor:pointer;color:var(--dp-text-color);border-radius:var(--dp-border-radius);display:flex;align-items:center;justify-content:center}.dp__time_display:hover:enabled{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__inc_dec_button_inline{width:100%;padding:0;height:8px;cursor:pointer;display:flex;align-items:center}.dp__inc_dec_button_disabled,.dp__inc_dec_button_disabled:hover{background:var(--dp-disabled-color);color:var(--dp-disabled-color-text);cursor:not-allowed}.dp__pm_am_button{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border:none;padding:var(--dp-common-padding);border-radius:var(--dp-border-radius);cursor:pointer}.dp__pm_am_button[data-compact~=true]{padding:7px}.dp__tp_inline_btn_bar{width:100%;height:4px;background-color:var(--dp-secondary-color);transition:var(--dp-common-transition);border-collapse:collapse}.dp__tp_inline_btn_top:hover .dp__tp_btn_in_r{background-color:var(--dp-primary-color);transform:rotate(12deg) scale(1.15) translateY(-2px)}.dp__tp_inline_btn_top:hover .dp__tp_btn_in_l,.dp__tp_inline_btn_bottom:hover .dp__tp_btn_in_r{background-color:var(--dp-primary-color);transform:rotate(-12deg) scale(1.15) translateY(-2px)}.dp__tp_inline_btn_bottom:hover .dp__tp_btn_in_l{background-color:var(--dp-primary-color);transform:rotate(12deg) scale(1.15) translateY(-2px)}.dp--time-overlay-btn{background:none}.dp--time-invalid{background-color:var(--dp-disabled-color)}.dp__action_row{display:flex;align-items:center;width:100%;padding:var(--dp-action-row-padding);box-sizing:border-box;color:var(--dp-text-color);flex-flow:row nowrap}.dp__action_row svg{height:var(--dp-button-icon-height);width:auto}.dp__selection_preview{display:block;color:var(--dp-text-color);font-size:var(--dp-preview-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dp__action_buttons{display:flex;flex:0;white-space:nowrap;align-items:center;justify-content:flex-end;margin-inline-start:auto}.dp__action_button{display:inline-flex;align-items:center;background:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);padding:var(--dp-action-buttons-padding);line-height:var(--dp-action-button-height);margin-inline-start:3px;height:var(--dp-action-button-height);cursor:pointer;border-radius:var(--dp-border-radius);font-size:var(--dp-preview-font-size);font-family:var(--dp-font-family)}.dp__action_cancel{color:var(--dp-text-color);border:1px solid var(--dp-border-color)}.dp__action_cancel:hover{border-color:var(--dp-primary-color);transition:var(--dp-action-row-transtion)}.dp__action_buttons .dp__action_select{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__action_buttons .dp__action_select:hover{background:var(--dp-primary-color);transition:var(--dp-action-row-transtion)}.dp__action_buttons .dp__action_select:disabled{background:var(--dp-primary-disabled-color);cursor:not-allowed}.dp-quarter-picker-wrap{display:flex;flex-direction:column;height:100%;min-width:var(--dp-menu-min-width)}.dp--qr-btn-disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp--qr-btn-disabled:hover{background:var(--dp-disabled-color)}.dp--qr-btn{width:100%;padding:var(--dp-common-padding)}.dp--qr-btn:not(.dp--highlighted,.dp--qr-btn-active,.dp--qr-btn-disabled,.dp--qr-btn-between){background:none}.dp--qr-btn:hover:not(.dp--qr-btn-active,.dp--qr-btn-disabled){background:var(--dp-hover-color);color:var(--dp-hover-text-color);transition:var(--dp-common-transition)}.dp--quarter-items{display:flex;flex-direction:column;flex:1;width:100%;height:100%;justify-content:space-evenly}.dp--qr-btn-active{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp--qr-btn-between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}:root{--dp-common-transition: all .1s ease-in;--dp-menu-padding: 6px 8px;--dp-animation-duration: .1s;--dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1);--dp-transition-timing: ease-out;--dp-action-row-transtion: all .2s ease-in;--dp-font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif;--dp-border-radius: 4px;--dp-cell-border-radius: 4px;--dp-transition-length: 22px;--dp-transition-timing-general: .1s;--dp-button-height: 35px;--dp-month-year-row-height: 35px;--dp-month-year-row-button-size: 25px;--dp-button-icon-height: 20px;--dp-calendar-wrap-padding: 0 5px;--dp-cell-size: 35px;--dp-cell-padding: 5px;--dp-common-padding: 10px;--dp-input-icon-padding: 35px;--dp-input-padding: 6px 30px 6px 12px;--dp-menu-min-width: 260px;--dp-action-buttons-padding: 1px 6px;--dp-row-margin: 5px 0;--dp-calendar-header-cell-padding: .5rem;--dp-multi-calendars-spacing: 10px;--dp-overlay-col-padding: 3px;--dp-time-inc-dec-button-size: 32px;--dp-font-size: 1rem;--dp-preview-font-size: .8rem;--dp-time-font-size: 2rem;--dp-action-button-height: 22px;--dp-action-row-padding: 8px;--dp-direction: ltr}.dp__theme_dark{--dp-background-color: #212121;--dp-text-color: #fff;--dp-hover-color: #484848;--dp-hover-text-color: #fff;--dp-hover-icon-color: #959595;--dp-primary-color: #005cb2;--dp-primary-disabled-color: #61a8ea;--dp-primary-text-color: #fff;--dp-secondary-color: #a9a9a9;--dp-border-color: #2d2d2d;--dp-menu-border-color: #2d2d2d;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #737373;--dp-disabled-color-text: #d0d0d0;--dp-scroll-bar-background: #212121;--dp-scroll-bar-color: #484848;--dp-success-color: #00701a;--dp-success-color-disabled: #428f59;--dp-icon-color: #959595;--dp-danger-color: #e53935;--dp-marker-color: #e53935;--dp-tooltip-color: #3e3e3e;--dp-highlight-color: rgb(0 92 178 / 20%);--dp-range-between-dates-background-color: var(--dp-hover-color, #484848);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #fff);--dp-range-between-border-color: var(--dp-hover-color, #fff);--dp-loader: 5px solid #005cb2}.dp__theme_light{--dp-background-color: #fff;--dp-text-color: #212121;--dp-hover-color: #f3f3f3;--dp-hover-text-color: #212121;--dp-hover-icon-color: #959595;--dp-primary-color: #1976d2;--dp-primary-disabled-color: #6bacea;--dp-primary-text-color: #fff;--dp-secondary-color: #c0c4cc;--dp-border-color: #ddd;--dp-menu-border-color: #ddd;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #f6f6f6;--dp-scroll-bar-background: #f3f3f3;--dp-scroll-bar-color: #959595;--dp-success-color: #76d275;--dp-success-color-disabled: #a3d9b1;--dp-icon-color: #959595;--dp-danger-color: #ff6f60;--dp-marker-color: #ff6f60;--dp-tooltip-color: #fafafa;--dp-disabled-color-text: #8e8e8e;--dp-highlight-color: rgb(25 118 210 / 10%);--dp-range-between-dates-background-color: var(--dp-hover-color, #f3f3f3);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #212121);--dp-range-between-border-color: var(--dp-hover-color, #f3f3f3);--dp-loader: 5px solid #1976d2}.dp__flex{display:flex;align-items:center}.dp__btn{background:none}.dp__main{font-family:var(--dp-font-family);-webkit-user-select:none;user-select:none;box-sizing:border-box;position:relative;width:100%}.dp__main *{direction:var(--dp-direction, ltr)}.dp__pointer{cursor:pointer}.dp__icon{stroke:currentcolor;fill:currentcolor}.dp__button{width:100%;text-align:center;color:var(--dp-icon-color);cursor:pointer;display:flex;align-items:center;place-content:center center;padding:var(--dp-common-padding);box-sizing:border-box;height:var(--dp-button-height)}.dp__button.dp__overlay_action{position:absolute;bottom:0}.dp__button:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}.dp__button svg{height:var(--dp-button-icon-height);width:auto}.dp__button_bottom{border-bottom-left-radius:var(--dp-border-radius);border-bottom-right-radius:var(--dp-border-radius)}.dp__flex_display{display:flex}.dp__flex_display_with_input{flex-direction:column;align-items:flex-start}.dp__relative{position:relative}.calendar-next-enter-active,.calendar-next-leave-active,.calendar-prev-enter-active,.calendar-prev-leave-active{transition:all var(--dp-transition-timing-general) ease-out}.calendar-next-enter-from{opacity:0;transform:translate(var(--dp-transition-length))}.calendar-next-leave-to,.calendar-prev-enter-from{opacity:0;transform:translate(calc(var(--dp-transition-length) * -1))}.calendar-prev-leave-to{opacity:0;transform:translate(var(--dp-transition-length))}.dp-menu-appear-bottom-enter-active,.dp-menu-appear-bottom-leave-active,.dp-menu-appear-top-enter-active,.dp-menu-appear-top-leave-active,.dp-slide-up-enter-active,.dp-slide-up-leave-active,.dp-slide-down-enter-active,.dp-slide-down-leave-active{transition:all var(--dp-animation-duration) var(--dp-transition-timing)}.dp-menu-appear-top-enter-from,.dp-menu-appear-top-leave-to,.dp-slide-down-leave-to,.dp-slide-up-enter-from{opacity:0;transform:translateY(var(--dp-transition-length))}.dp-menu-appear-bottom-enter-from,.dp-menu-appear-bottom-leave-to,.dp-slide-down-enter-from,.dp-slide-up-leave-to{opacity:0;transform:translateY(calc(var(--dp-transition-length) * -1))}.dp--arrow-btn-nav{transition:var(--dp-common-transition)}.dp--highlighted{background-color:var(--dp-highlight-color)}.dp--hidden-el{visibility:hidden}.input--datepicker--lg{--dp-cell-size: 4rem}.input--datepicker>*{order:unset}.input--datepicker .input-group{align-items:unset;flex-wrap:unset;width:auto;flex-grow:1}.input--datepicker .dp__calendar_header_item{display:grid;place-content:center}:root{--dp-font-family: inherit;--dp-border-radius: 0;--dp-cell-border-radius: 50%;--dp-common-transition: all .1s ease-in;--dp-button-height: 2.25em;--dp-month-year-row-height: 2em;--dp-month-year-row-button-size: 2.25em;--dp-button-icon-height: 1.25em;--dp-cell-size: 2.5em;--dp-cell-padding: .25em;--dp-common-padding: 1em;--dp-input-icon-padding: 2.25em;--dp-input-padding: .75em 2em .75em 1em;--dp-menu-min-width: 100%;--dp-action-buttons-padding: .125em .25em;--dp-row-margin: .5em 0;--dp-calendar-header-cell-padding: .5em;--dp-two-calendars-spacing: .625em;--dp-overlay-col-padding: .25em;--dp-time-inc-dec-button-size: 2em;--dp-menu-padding: .375em .5em;--dp-font-size: 1em;--dp-preview-font-size: .8em;--dp-time-font-size: 1em;--dp-animation-duration: .1s;--dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1);--dp-transition-timing: ease-out}.dp__theme_dark{--dp-background-color: #212121;--dp-text-color: #fff;--dp-hover-color: #484848;--dp-hover-text-color: #fff;--dp-hover-icon-color: #959595;--dp-primary-color: #005cb2;--dp-primary-disabled-color: #61a8ea;--dp-primary-text-color: #fff;--dp-secondary-color: #a9a9a9;--dp-border-color: #2d2d2d;--dp-menu-border-color: #2d2d2d;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #737373;--dp-disabled-color-text: #d0d0d0;--dp-scroll-bar-background: #212121;--dp-scroll-bar-color: #484848;--dp-success-color: #00701a;--dp-success-color-disabled: #428f59;--dp-icon-color: #959595;--dp-danger-color: #e53935;--dp-marker-color: #e53935;--dp-tooltip-color: #3e3e3e;--dp-highlight-color: rgb(0 92 178 / 20%);--dp-range-between-dates-background-color: var(--dp-hover-color, #484848);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #fff);--dp-range-between-border-color: var(--dp-hover-color, #fff)}.dp__theme_light{--dp-background-color: #fff;--dp-text-color: #212121;--dp-hover-color: #f3f3f3;--dp-hover-text-color: #212121;--dp-hover-icon-color: #959595;--dp-primary-color: #1976d2;--dp-primary-disabled-color: #6bacea;--dp-primary-text-color: #f8f5f5;--dp-secondary-color: #c0c4cc;--dp-border-color: #ddd;--dp-menu-border-color: #ddd;--dp-border-color-hover: #aaaeb7;--dp-border-color-focus: #aaaeb7;--dp-disabled-color: #f6f6f6;--dp-scroll-bar-background: #f3f3f3;--dp-scroll-bar-color: #959595;--dp-success-color: #76d275;--dp-success-color-disabled: #a3d9b1;--dp-icon-color: #959595;--dp-danger-color: #ff6f60;--dp-marker-color: #ff6f60;--dp-tooltip-color: #fafafa;--dp-disabled-color-text: #8e8e8e;--dp-highlight-color: rgb(25 118 210 / 10%);--dp-range-between-dates-background-color: var(--dp-hover-color, #f3f3f3);--dp-range-between-dates-text-color: var(--dp-hover-text-color, #212121);--dp-range-between-border-color: var(--dp-hover-color, #f3f3f3)}.check-group>.form-check{order:1}.check-group label{order:0}.check-group--row{display:inline-flex;flex-flow:row wrap;gap:.5rem}.check-group--row label{flex:1 0 100%}.radio-group>.form-check{order:1}.radio-group label{order:0}.radio-group--row{display:inline-flex;flex-flow:row wrap;gap:.5rem}.radio-group--row label{flex:1 0 100%}.radio-buttons{--color-basic-option: #f44336;--color-key-option: #4caf50}.radio-buttons .form-check{padding:0}.radio-buttons input[type=radio]{display:none}.radio-buttons:has(:checked) .form-check-input+label{background-color:var(--color-basic-option);color:#fff;border-color:transparent}.radio-buttons:has(:checked) .form-check-input--key+label{background-color:var(--color-key-option)}.select-media .form-check{padding:0}.select-media input[type=radio]{display:none}.select-media .is-active{outline:.5rem solid var(--bs-primary);outline-offset:-.5rem}.select-media.responsive-container{container-name:responsive-container;container-type:inline-size}@container responsive-container (width > 640px){.select-media .form-check{width:50%!important}}.rte-editor{height:100%;display:flex;flex-direction:column}.rte-editor__content{flex:1 1 auto}.rte-editor .ProseMirror{height:100%}.ProseMirror>*+*{margin-top:.75em}.ProseMirror ul,.ProseMirror ol{padding:0 1rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{line-height:1.1}.ProseMirror code{background-color:#6161611a;color:#616161}.ProseMirror pre{background:#0D0D0D;color:#fff;font-family:JetBrainsMono,monospace;padding:.75rem 1rem;border-radius:.5rem}.ProseMirror pre code{color:inherit;padding:0;background:none;font-size:.8rem}.ProseMirror img{max-width:100%;height:auto}.ProseMirror blockquote{padding-left:1rem;border-left:2px solid rgba(13,13,13,.1)}.ProseMirror hr{border:none;border-top:2px solid rgba(13,13,13,.1);margin:2rem 0}.rte-editor__content{border:1px solid var(--bs-border-color);padding:.5rem}.ProseMirror-focused{outline:none}.rte-editor__controls{display:flex;flex-wrap:wrap;gap:.25rem}.rte-editor__controls .btn{padding:.5rem;font-size:.875rem;line-height:1.5;border-radius:0;font-size:.75rem;color:var(--bs-dark)}.rte-editor__controls .btn.is-active{background-color:var(--bs-primary);color:var(--bs-white)}.rte-editor__controls .dropdown-menu{min-width:0;border:none}.base-input{display:flex;flex-direction:column}.base-input>*{order:2}.base-input__label{order:0}.base-input__input-group,.base-input>input,.base-input>select,.base-input>textarea{flex-wrap:nowrap;order:1}.base-input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.base-input input[type=checkbox],.base-input input[type=radio]{flex:none}.base-input input[type=color]{display:block;height:100%;padding:0;border-width:0}.base-input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.base-input input[type=color]::-webkit-color-swatch{border:none}.color-palette .form-check{padding:0}.color-palette .form-check .rounded-circle{aspect-ratio:1/1;width:1.5rem;height:1.5rem;border:thin solid var(--border-color);outline:none}.color-palette .form-check input[type=radio]{display:none}.color-palette .form-check input[type=radio]:checked+label{cursor:pointer;box-shadow:0 0 0 .25rem var(--border-color)}.dropdown-item:has(input[type=radio]){padding:0}.dropdown-item:has(input[type=radio]) .form-check{padding:0}.dropdown-item:has(input[type=radio]) .form-check-label{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x)}.suggestions{list-style:none;padding:0}.camera__preview canvas{position:relative;left:0;top:0}.camera__preview img,.camera__preview video,.camera__preview canvas{display:block;width:100%;height:100%;object-fit:cover}.camera__controls{position:absolute;bottom:0;width:100%;z-index:1;text-align:center;margin:0 0 2rem}.camera.mirror-cam img,.camera.mirror-cam video{transform:scaleX(-1)}.camera__switch-cam{position:absolute;z-index:1;right:0;top:0;margin:1rem}.camera__switch-cam .btn{display:block;background-color:#ffffff3d;border-radius:.3125rem}.camera__switch-cam .svg-icon{display:block;font-size:1.6667rem}.camera .aspect-ratio--1x1{aspect-ratio:1/1}.camera .aspect-ratio--3x2{aspect-ratio:3/2}.camera .aspect-ratio--2x3{aspect-ratio:2/3}.camera .aspect-ratio--4x3{aspect-ratio:4/3}.camera .aspect-ratio--3x4{aspect-ratio:3/4}.camera .aspect-ratio--16x9{aspect-ratio:16/9}.camera .aspect-ratio--9x16{aspect-ratio:9/16}.camera__bg-notification{position:absolute;z-index:0;left:0;top:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.camera__bg-notification+video{position:relative;z-index:1}.camera .camera__guide{position:absolute;left:0;top:0;z-index:1;display:block;width:100%;height:100%;pointer-events:none;object-fit:contain}.camera__countdown-overlay{position:absolute;left:0;top:0;z-index:2;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow:hidden}.camera__countdown-overlay .countdown{position:relative;font-size:6rem;color:#fffc;font-weight:700}.camera__countdown-overlay .countdown:before,.camera__countdown-overlay .countdown:after{position:absolute;left:0;top:0;z-index:1;content:attr(data-countdown);transform-origin:center;animation-name:pulse;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:ease-out}.camera__countdown-overlay .countdown:after{animation-duration:.1 .25s;animation-delay:.25s}@keyframes blur{0%{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}to{-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}}@keyframes pulse{0%{transform:scale(1);opacity:.5}to{transform:scale(5);opacity:0}}.file-upload{display:inline-block}.file-upload__thumbnail{position:relative}.file-upload__thumbnail img{width:100%;background:var(--bs-light)}.file-upload__thumbnail .btn{position:absolute;right:0;top:0;margin:.5rem;padding:.125rem .3125rem;border-radius:.2rem}.file-upload__thumbnail .btn:hover{background:rgba(255,255,255,.62)}.file-upload__label{position:relative}.file-upload__loading-spinner{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#ffffffa3;display:grid;place-content:center}.file-upload .fade-enter-active,.file-upload .fade-leave-active{transition:opacity .5s}.file-upload .fade-enter,.file-upload .fade-leave-to{opacity:0}.upload-group .img-thumbnail{width:5rem;aspect-ratio:1/1}.upload-group .file-upload__thumbnail{display:none}.upload-group .img-container{position:relative}.upload-group .img-container .btn--close{position:absolute;right:0;top:0;margin:.25rem;padding:.125rem}:root,*:before,*:after{--carousel-gutter-width: .75rem}.carousel__viewport{position:relative;overflow-x:auto;scroll-behavior:smooth;margin-right:calc(0px - var(--carousel-gutter-width) / 2);margin-left:calc(0px - var(--carousel-gutter-width) / 2);scrollbar-width:none;-ms-overflow-style:none}.carousel__item{flex:0 0 auto;width:20%;padding:0 calc(var(--carousel-gutter-width) / 2)}.carousel>.btn{padding-left:0;padding-right:0}.carousel__viewport::-webkit-scrollbar{height:0}.media-thumbnails{--carousel-visible-items: 5;--carousel-gap-width: .5rem;--carousel-item-width: calc(20% - var(--carousel-gap-width) + var(--carousel-gap-width) / (var(--carousel-visible-items)));position:relative;padding:.5rem 0;border-radius:.3125rem;background-color:#aaaaaa80}.media-thumbnails .carousel{gap:calc(var(--carousel-gap-width) / 2)}.media-thumbnails .carousel__track{gap:var(--carousel-gap-width)}.media-thumbnails .carousel__item{width:var(--carousel-item-width);padding:0}.progress-steps ul{display:flex;justify-content:center;gap:4rem;margin:0;padding:0;list-style:none}.progress-steps__step{position:relative}.progress-steps__step:not(:first-of-type):before{content:"";display:block;height:.2em;width:4rem;background-color:var(--bs-gray-300);position:absolute;right:100%;top:50%;transform:translateY(-50%)}.progress-steps__step--active .progress-step .btn{box-shadow:0 0 0 .5em var(--bs-gray-300)}.progress-steps__step--disabled .progress-step .btn{background-color:var(--bs-gray-300);color:var(--bs-dark)}.progress-steps__step input[type=radio]{position:absolute;opacity:0;width:0;height:0}.progress-steps__step .btn{width:2em;height:2em;padding:0;background-color:var(--bs-black);color:var(--bs-white);font-weight:700}.progress-steps__step .form-check-label{position:absolute;left:50%;top:100%;min-width:12rem;transform:translate(-50%) translateY(50%);text-align:center}.progress-steps .progress-step{position:relative}[popover]{border:none;opacity:0;transform:translateY(3rem);transition:opacity .32s,transform .32s}[popover]:popover-open{opacity:1;transform:none}@starting-style{[popover]:popover-open{opacity:0;transform:translateY(3rem)}}.popover-tooltip{--popover-max-width: 25vw;--popover-max-height: 29vh;--popover-padding: 1rem;--popover-gap: var(--popover-padding);--popover-bg-color: var(--bs-body-bg);anchor-scope:all}.popover-tooltip [popovertarget]{position:relative;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;margin:0;padding:0;flex:none;anchor-name:--popover-tooltip}.popover-tooltip [popovertarget]:disabled{pointer-events:none;opacity:.5}.popover-tooltip [popovertarget]:hover,.popover-tooltip [popovertarget]:focus,.popover-tooltip [popovertarget]:focus-visible{outline:none}.popover-tooltip [popovertarget]:hover .popover-tooltip__trigger,.popover-tooltip [popovertarget]:focus .popover-tooltip__trigger,.popover-tooltip [popovertarget]:focus-visible .popover-tooltip__trigger{outline:var(--bs-border-width) solid var(--bs-primary);outline-offset:var(--bs-border-width)}.popover-tooltip [popover]{margin:0;padding:var(--popover-padding);border:0;position:absolute;top:auto;bottom:0;background-color:var(--popover-bg-color);border:var(--bs-border-width) solid var(--bs-border-color)}@media screen and (min-width: 576px){.popover-tooltip [popover]{position-anchor:--popover-tooltip;max-inline-size:var(--popover-max-width);max-block-size:var(--popover-max-height);left:anchor(--popover-tooltip center);translate:-50% 0;bottom:calc(anchor(--popover-tooltip top) + var(--popover-gap));position-try-fallbacks:--bottom-center}}.popover-tooltip [popover] .popover-tooltip__content{max-height:calc(var(--popover-max-height) - var(--popover-padding) * 2);overflow-y:auto}.popover-tooltip .popover-tooltip__trigger{width:1.5em;height:1.5em;display:flex;align-items:center;justify-content:center;text-align:center;font-size:1rem;margin:0;padding:0;background-color:var(--bs-primary);color:var(--bs-white);border-radius:50%;transition:background-color .32s ease,color .32s ease,border .32s ease}.popover-tooltip:has(:popover-open) .popover-tooltip__trigger{background-color:var(--bs-primary-bg-subtle);color:var(--bs-primary);border:var(--bs-border-width) solid var(--bs-primary-bg-subtle)}.popover-tooltip--xs{--popover-max-width: 20rem;--popover-max-height: 25vh}.popover-tooltip--sm{--popover-max-width: 25rem;--popover-max-height: 29vh}.popover-tooltip--md{--popover-max-width: 30rem;--popover-max-height: 35vh}.popover-tooltip--lg{--popover-max-width: 35rem;--popover-max-height: 40vh}.popover-tooltip--xl{--popover-max-width: 40rem;--popover-max-height: 45vh}@position-try --top-right{left: auto; right: anchor(--popover-tooltip right);}@position-try --bottom-left{bottom: auto; top: calc(anchor(--popover-tooltip bottom) + var(--popover-gap));}@position-try --bottom-right{left: auto; right: anchor(--popover-tooltip right); bottom: auto; top: calc(anchor(--popover-tooltip bottom) + var(--popover-gap));}@position-try --bottom-center{bottom: auto; top: calc(anchor(--popover-tooltip bottom) + var(--popover-gap));}.popover-notifications{--popover-max-width: 25vw;--popover-max-height: 29vh;--popover-padding: .75rem;--popover-gap: var(--popover-padding);--popover-bg-color: var(--bs-body-bg);anchor-scope:all;anchor-name:--popover-notifications}.popover-notifications [popover]{margin:0;padding:var(--popover-padding);border:0;anchor-name:--anchor-item;position:absolute;top:auto;bottom:0;background-color:var(--popover-bg-color);border:var(--bs-border-width) solid var(--bs-border-color)}@media screen and (max-width: 575px){.popover-notifications [popover]{max-inline-size:none;inline-size:100%;top:calc(anchor(--anchor-item top) + var(--popover-gap));min-block-size:25vh}.popover-notifications [popover]+[popover]{anchor-name:--anchor-item}}@media screen and (min-width: 576px){.popover-notifications [popover]{position-anchor:--anchor-item;max-inline-size:var(--popover-max-width);max-block-size:var(--popover-max-height);left:anchor(--anchor-item left);top:calc(anchor(--anchor-item bottom) + var(--popover-gap))}.popover-notifications [popover]:first-child{position-anchor:--popover-notifications;--popover-gap: 0px;right:anchor(--popover-notifications right);top:calc(anchor(--popover-notifications bottom) + var(--popover-gap))}}.popover-notifications [popover] .btn-close{font-size:.75rem}.popover-notifications [popover] .popover-notification__content{height:calc(var(--popover-max-height) - var(--popover-padding) * 2);overflow-y:auto}.link-sharing .btn{width:100%;margin-bottom:.5rem}.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button:read-only{cursor:not-allowed}.base-button:disabled{cursor:not-allowed}dialog{opacity:0;transition:opacity .8s;position:absolute;animation:modal-in .32s forwards ease;padding:0;overflow:hidden}dialog[open]{width:100%;opacity:1;pointer-events:inherit}dialog::backdrop{-webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);background-color:#0009}@keyframes modal-in{0%{translate:0 -100%;opacity:0}}.modal-dialog{background-color:var(--page-background-color, #fff);color:var(--body-color);border:none;box-shadow:0 0 .25rem #fff6;min-width:300px;max-width:500px;margin-block:auto}.modal-dialog--sm{max-width:300px}.modal-dialog--md{max-width:600px}.modal-dialog--lg{max-width:800px}.modal-dialog--xl{max-width:1140px}.modal-dialog .btn-close{border-radius:0}.modal-dialog__content{max-height:90vh}.modal-dialog__body{padding:1rem;overflow-y:auto}:root{--scroll-position: 0}body:has(dialog[open]){overflow:hidden;position:fixed;width:100%;top:calc(-1 * var(--scroll-position))}.sortable-list{list-style:none;-webkit-user-select:none;user-select:none}.sortable-list__item.is-drag-item{opacity:.5}.sortable-list__drag-handle button{display:grid;place-content:center;border-radius:0;padding-inline:0;cursor:move!important}.is-drop-target{outline:thick dashed var(--bs-gray-200)}.list-enter-active,.list-leave-active{transition:all .16s ease-in-out}.list-enter-from,.list-leave-to{opacity:0}:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.touch-wrapper{position:relative;overflow:hidden;touch-action:none}.touch-wrapper__controls{position:absolute;top:0;right:0;z-index:1}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ablok-components",
3
3
  "private": false,
4
- "version": "0.1.201",
4
+ "version": "0.1.203",
5
5
  "scripts": {
6
6
  "dev": "vite --host",
7
7
  "build": "vue-tsc --noEmit && vite build",