sep-yui 0.1.109 → 0.1.112

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.
@@ -48279,7 +48279,7 @@ const oMe = () => {
48279
48279
  ref_key: "dialog",
48280
48280
  ref: s
48281
48281
  }, H(d), {
48282
- class: ["modal-yui-kit", o.position],
48282
+ class: ["modal-yui-kit", `modal-yui-kit_${o.position}`],
48283
48283
  "data-testid": o.dataTestid,
48284
48284
  onClick: wt(j, ["self", "left"])
48285
48285
  }), [
@@ -48292,7 +48292,7 @@ const oMe = () => {
48292
48292
  ], 12, lMe)
48293
48293
  ], 16, sMe));
48294
48294
  }
48295
- }), uMe = /* @__PURE__ */ pe(dMe, [["__scopeId", "data-v-a0b58b2e"]]);
48295
+ }), uMe = /* @__PURE__ */ pe(dMe, [["__scopeId", "data-v-14e41eb3"]]);
48296
48296
  var mu = /* @__PURE__ */ ((t) => (t.right = "right", t.fade = "fade", t))(mu || {});
48297
48297
  const fMe = /* @__PURE__ */ re({
48298
48298
  __name: "ModalAnimated",
@@ -48319,16 +48319,24 @@ const fMe = /* @__PURE__ */ re({
48319
48319
  function: () => {
48320
48320
  }
48321
48321
  }), s = () => {
48322
- var c;
48323
- r.value && (o.function = (c = r.value) == null ? void 0 : c.closeDialog), i("close");
48322
+ m();
48324
48323
  }, d = () => {
48325
48324
  i("unmounted");
48326
48325
  }, f = () => {
48326
+ m();
48327
+ }, c = () => {
48327
48328
  o.function(), i("end-animation");
48329
+ }, m = () => {
48330
+ var p;
48331
+ r.value && (o.function = (p = r.value) == null ? void 0 : p.closeDialog);
48332
+ }, g = () => {
48333
+ m(), i("close");
48328
48334
  };
48329
- return (c, m) => (E(), De(q3, {
48335
+ return (p, v) => (E(), De(q3, {
48330
48336
  name: a.value,
48331
- onAfterLeave: f
48337
+ onAfterLeave: c,
48338
+ onBeforeLeave: f,
48339
+ onAfterEnter: s
48332
48340
  }, {
48333
48341
  default: We(() => [
48334
48342
  n.open ? (E(), De(uMe, {
@@ -48340,11 +48348,11 @@ const fMe = /* @__PURE__ */ re({
48340
48348
  width: n.width,
48341
48349
  height: n.height,
48342
48350
  "data-testid": n.dataTestid,
48343
- onClose: s,
48351
+ onClose: g,
48344
48352
  onUnmounted: d
48345
48353
  }, {
48346
48354
  default: We(() => [
48347
- Me(c.$slots, "default", {}, void 0, !0)
48355
+ Me(p.$slots, "default", {}, void 0, !0)
48348
48356
  ]),
48349
48357
  _: 3
48350
48358
  }, 8, ["open", "position", "width", "height", "data-testid"])) : ie("", !0)
@@ -48352,7 +48360,7 @@ const fMe = /* @__PURE__ */ re({
48352
48360
  _: 3
48353
48361
  }, 8, ["name"]));
48354
48362
  }
48355
- }), fp = /* @__PURE__ */ pe(fMe, [["__scopeId", "data-v-ffbeadfa"]]);
48363
+ }), fp = /* @__PURE__ */ pe(fMe, [["__scopeId", "data-v-b1e40efb"]]);
48356
48364
  var Eb = /* @__PURE__ */ ((t) => (t.small = "small", t.medium = "medium", t.big = "big", t))(Eb || {}), Nb = /* @__PURE__ */ ((t) => (t.circled = "circled", t.rounded = "rounded", t))(Nb || {});
48357
48365
  const cMe = ["data-testid", "checked", "disabled"], hMe = /* @__PURE__ */ re({
48358
48366
  __name: "Checkbox",
@@ -1292,7 +1292,7 @@ function print() { __p += __j.call(arguments, '') }
1292
1292
  * perfect-scrollbar v1.5.3
1293
1293
  * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
1294
1294
  * Licensed under MIT
1295
- */function si(t){return getComputedStyle(t)}function Ut(t,e){for(var n in e){var i=e[n];typeof i=="number"&&(i=i+"px"),t.style[n]=i}return t}function dd(t){var e=document.createElement("div");return e.className=t,e}var R2=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ra(t,e){if(!R2)throw new Error("No element matching method supported");return R2.call(t,e)}function Jr(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function V2(t,e){return Array.prototype.filter.call(t.children,function(n){return ra(n,e)})}var at={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},Y2={x:null,y:null};function F2(t,e){var n=t.element.classList,i=at.state.scrolling(e);n.contains(i)?clearTimeout(Y2[e]):n.add(i)}function X2(t,e){Y2[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(at.state.scrolling(e))},t.settings.scrollingThreshold)}function G2e(t,e){F2(t,e),X2(t,e)}var ys=function(e){this.element=e,this.handlers={}},U2={isEmpty:{configurable:!0}};ys.prototype.bind=function(e,n){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(n),this.element.addEventListener(e,n,!1)},ys.prototype.unbind=function(e,n){var i=this;this.handlers[e]=this.handlers[e].filter(function(a){return n&&a!==n?!0:(i.element.removeEventListener(e,a,!1),!1)})},ys.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},U2.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return t.handlers[e].length===0})},Object.defineProperties(ys.prototype,U2);var Zr=function(){this.eventElements=[]};Zr.prototype.eventElement=function(e){var n=this.eventElements.filter(function(i){return i.element===e})[0];return n||(n=new ys(e),this.eventElements.push(n)),n},Zr.prototype.bind=function(e,n,i){this.eventElement(e).bind(n,i)},Zr.prototype.unbind=function(e,n,i){var a=this.eventElement(e);a.unbind(n,i),a.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(a),1)},Zr.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},Zr.prototype.once=function(e,n,i){var a=this.eventElement(e),r=function(o){a.unbind(n,r),i(o)};a.bind(n,r)};function ud(t){if(typeof window.CustomEvent=="function")return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function cd(t,e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=!1);var r;if(e==="top")r=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(e==="left")r=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");K2e(t,n,r,i,a)}function K2e(t,e,n,i,a){var r=n[0],o=n[1],s=n[2],u=n[3],f=n[4],h=n[5];i===void 0&&(i=!0),a===void 0&&(a=!1);var p=t.element;t.reach[u]=null,p[s]<1&&(t.reach[u]="start"),p[s]>t[r]-t[o]-1&&(t.reach[u]="end"),e&&(p.dispatchEvent(ud("ps-scroll-"+u)),e<0?p.dispatchEvent(ud("ps-scroll-"+f)):e>0&&p.dispatchEvent(ud("ps-scroll-"+h)),i&&G2e(t,u)),t.reach[u]&&(e||a)&&p.dispatchEvent(ud("ps-"+u+"-reach-"+t.reach[u]))}function Ye(t){return parseInt(t,10)||0}function Q2e(t){return ra(t,"input,[contenteditable]")||ra(t,"select,[contenteditable]")||ra(t,"textarea,[contenteditable]")||ra(t,"button,[contenteditable]")}function J2e(t){var e=si(t);return Ye(e.width)+Ye(e.paddingLeft)+Ye(e.paddingRight)+Ye(e.borderLeftWidth)+Ye(e.borderRightWidth)}var eo={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function xi(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.round(i.width),t.containerHeight=Math.round(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(V2(e,at.element.rail("x")).forEach(function(a){return Jr(a)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(V2(e,at.element.rail("y")).forEach(function(a){return Jr(a)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=q2(t,Ye(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=Ye((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=q2(t,Ye(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=Ye(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),Z2e(e,t),t.scrollbarXActive?e.classList.add(at.state.active("x")):(e.classList.remove(at.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=t.isRtl===!0?t.contentWidth:0),t.scrollbarYActive?e.classList.add(at.state.active("y")):(e.classList.remove(at.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function q2(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Z2e(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);e.isRtl?n.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:n.left=t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i,Ut(e.scrollbarXRail,n);var a={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?a.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:a.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?a.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth*2-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:a.left=e.scrollbarYLeft+t.scrollLeft,Ut(e.scrollbarYRail,a),Ut(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),Ut(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function eye(t){t.element,t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,i=n>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,xi(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,i=n>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,xi(t),e.stopPropagation()})}function tye(t){G2(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),G2(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function G2(t,e){var n=e[0],i=e[1],a=e[2],r=e[3],o=e[4],s=e[5],u=e[6],f=e[7],h=e[8],p=t.element,y=null,g=null,b=null;function v(_){_.touches&&_.touches[0]&&(_[a]=_.touches[0].pageY),p[u]=y+b*(_[a]-g),F2(t,f),xi(t),_.stopPropagation(),_.type.startsWith("touch")&&_.changedTouches.length>1&&_.preventDefault()}function k(){X2(t,f),t[h].classList.remove(at.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",v)}function M(_,N){y=p[u],N&&_.touches&&(_[a]=_.touches[0].pageY),g=_[a],b=(t[i]-t[n])/(t[r]-t[s]),N?t.event.bind(t.ownerDocument,"touchmove",v):(t.event.bind(t.ownerDocument,"mousemove",v),t.event.once(t.ownerDocument,"mouseup",k),_.preventDefault()),t[h].classList.add(at.state.clicking),_.stopPropagation()}t.event.bind(t[o],"mousedown",function(_){M(_)}),t.event.bind(t[o],"touchstart",function(_){M(_,!0)})}function nye(t){var e=t.element,n=function(){return ra(e,":hover")},i=function(){return ra(t.scrollbarX,":focus")||ra(t.scrollbarY,":focus")};function a(r,o){var s=Math.floor(e.scrollTop);if(r===0){if(!t.scrollbarYActive)return!1;if(s===0&&o>0||s>=t.contentHeight-t.containerHeight&&o<0)return!t.settings.wheelPropagation}var u=e.scrollLeft;if(o===0){if(!t.scrollbarXActive)return!1;if(u===0&&r<0||u>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&!(!n()&&!i())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if(o.tagName==="IFRAME")o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(Q2e(o))return}var s=0,u=0;switch(r.which){case 37:r.metaKey?s=-t.contentWidth:r.altKey?s=-t.containerWidth:s=-30;break;case 38:r.metaKey?u=t.contentHeight:r.altKey?u=t.containerHeight:u=30;break;case 39:r.metaKey?s=t.contentWidth:r.altKey?s=t.containerWidth:s=30;break;case 40:r.metaKey?u=-t.contentHeight:r.altKey?u=-t.containerHeight:u=-30;break;case 32:r.shiftKey?u=t.containerHeight:u=-t.containerHeight;break;case 33:u=t.containerHeight;break;case 34:u=-t.containerHeight;break;case 36:u=t.contentHeight;break;case 35:u=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&s!==0||t.settings.suppressScrollY&&u!==0||(e.scrollTop-=u,e.scrollLeft+=s,xi(t),a(s,u)&&r.preventDefault())}})}function iye(t){var e=t.element;function n(o,s){var u=Math.floor(e.scrollTop),f=e.scrollTop===0,h=u+e.offsetHeight===e.scrollHeight,p=e.scrollLeft===0,y=e.scrollLeft+e.offsetWidth===e.scrollWidth,g;return Math.abs(s)>Math.abs(o)?g=f||h:g=p||y,g?!t.settings.wheelPropagation:!0}function i(o){var s=o.deltaX,u=-1*o.deltaY;return(typeof s>"u"||typeof u>"u")&&(s=-1*o.wheelDeltaX/6,u=o.wheelDeltaY/6),o.deltaMode&&o.deltaMode===1&&(s*=10,u*=10),s!==s&&u!==u&&(s=0,u=o.wheelDelta),o.shiftKey?[-u,-s]:[s,u]}function a(o,s,u){if(!eo.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(o))return!1;for(var f=o;f&&f!==e;){if(f.classList.contains(at.element.consuming))return!0;var h=si(f);if(u&&h.overflowY.match(/(scroll|auto)/)){var p=f.scrollHeight-f.clientHeight;if(p>0&&(f.scrollTop>0&&u<0||f.scrollTop<p&&u>0))return!0}if(s&&h.overflowX.match(/(scroll|auto)/)){var y=f.scrollWidth-f.clientWidth;if(y>0&&(f.scrollLeft>0&&s<0||f.scrollLeft<y&&s>0))return!0}f=f.parentNode}return!1}function r(o){var s=i(o),u=s[0],f=s[1];if(!a(o.target,u,f)){var h=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(f?e.scrollTop-=f*t.settings.wheelSpeed:e.scrollTop+=u*t.settings.wheelSpeed,h=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(u?e.scrollLeft+=u*t.settings.wheelSpeed:e.scrollLeft-=f*t.settings.wheelSpeed,h=!0):(e.scrollTop-=f*t.settings.wheelSpeed,e.scrollLeft+=u*t.settings.wheelSpeed),xi(t),h=h||n(u,f),h&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?t.event.bind(e,"wheel",r):typeof window.onmousewheel<"u"&&t.event.bind(e,"mousewheel",r)}function aye(t){if(!eo.supportsTouch&&!eo.supportsIePointer)return;var e=t.element;function n(b,v){var k=Math.floor(e.scrollTop),M=e.scrollLeft,_=Math.abs(b),N=Math.abs(v);if(N>_){if(v<0&&k===t.contentHeight-t.containerHeight||v>0&&k===0)return window.scrollY===0&&v>0&&eo.isChrome}else if(_>N&&(b<0&&M===t.contentWidth-t.containerWidth||b>0&&M===0))return!0;return!0}function i(b,v){e.scrollTop-=v,e.scrollLeft-=b,xi(t)}var a={},r=0,o={},s=null;function u(b){return b.targetTouches?b.targetTouches[0]:b}function f(b){return b.pointerType&&b.pointerType==="pen"&&b.buttons===0?!1:!!(b.targetTouches&&b.targetTouches.length===1||b.pointerType&&b.pointerType!=="mouse"&&b.pointerType!==b.MSPOINTER_TYPE_MOUSE)}function h(b){if(f(b)){var v=u(b);a.pageX=v.pageX,a.pageY=v.pageY,r=new Date().getTime(),s!==null&&clearInterval(s)}}function p(b,v,k){if(!e.contains(b))return!1;for(var M=b;M&&M!==e;){if(M.classList.contains(at.element.consuming))return!0;var _=si(M);if(k&&_.overflowY.match(/(scroll|auto)/)){var N=M.scrollHeight-M.clientHeight;if(N>0&&(M.scrollTop>0&&k<0||M.scrollTop<N&&k>0))return!0}if(v&&_.overflowX.match(/(scroll|auto)/)){var j=M.scrollWidth-M.clientWidth;if(j>0&&(M.scrollLeft>0&&v<0||M.scrollLeft<j&&v>0))return!0}M=M.parentNode}return!1}function y(b){if(f(b)){var v=u(b),k={pageX:v.pageX,pageY:v.pageY},M=k.pageX-a.pageX,_=k.pageY-a.pageY;if(p(b.target,M,_))return;i(M,_),a=k;var N=new Date().getTime(),j=N-r;j>0&&(o.x=M/j,o.y=_/j,r=N),n(M,_)&&b.preventDefault()}}function g(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(t.isInitialized){clearInterval(s);return}if(!o.x&&!o.y){clearInterval(s);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(s);return}if(!t.element){clearInterval(s);return}i(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}eo.supportsTouch?(t.event.bind(e,"touchstart",h),t.event.bind(e,"touchmove",y),t.event.bind(e,"touchend",g)):eo.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",h),t.event.bind(e,"pointermove",y),t.event.bind(e,"pointerup",g)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",h),t.event.bind(e,"MSPointerMove",y),t.event.bind(e,"MSPointerUp",g)))}var rye=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},oye={"click-rail":eye,"drag-thumb":tye,keyboard:nye,wheel:iye,touch:aye},bs=function(e,n){var i=this;if(n===void 0&&(n={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(at.main),this.settings=rye();for(var a in n)this.settings[a]=n[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r=function(){return e.classList.add(at.state.focus)},o=function(){return e.classList.remove(at.state.focus)};this.isRtl=si(e).direction==="rtl",this.isRtl===!0&&e.classList.add(at.rtl),this.isNegativeScroll=function(){var f=e.scrollLeft,h=null;return e.scrollLeft=-1,h=e.scrollLeft<0,e.scrollLeft=f,h}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new Zr,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=dd(at.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=dd(at.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=si(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Ye(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Ye(s.borderLeftWidth)+Ye(s.borderRightWidth),Ut(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Ye(s.marginLeft)+Ye(s.marginRight),Ut(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=dd(at.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=dd(at.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=si(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Ye(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?J2e(this.scrollbarY):null,this.railBorderYWidth=Ye(u.borderTopWidth)+Ye(u.borderBottomWidth),Ut(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Ye(u.marginTop)+Ye(u.marginBottom),Ut(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(f){return oye[f](i)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(f){return i.onScroll(f)}),xi(this)};bs.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Ut(this.scrollbarXRail,{display:"block"}),Ut(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Ye(si(this.scrollbarXRail).marginLeft)+Ye(si(this.scrollbarXRail).marginRight),this.railYMarginHeight=Ye(si(this.scrollbarYRail).marginTop)+Ye(si(this.scrollbarYRail).marginBottom),Ut(this.scrollbarXRail,{display:"none"}),Ut(this.scrollbarYRail,{display:"none"}),xi(this),cd(this,"top",0,!1,!0),cd(this,"left",0,!1,!0),Ut(this.scrollbarXRail,{display:""}),Ut(this.scrollbarYRail,{display:""}))},bs.prototype.onScroll=function(e){this.isAlive&&(xi(this),cd(this,"top",this.element.scrollTop-this.lastScrollTop),cd(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},bs.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Jr(this.scrollbarX),Jr(this.scrollbarY),Jr(this.scrollbarXRail),Jr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},bs.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const sye=d.defineComponent({__name:"PerfectScrollbar",props:{tag:{default:"div"},options:{default:()=>({})}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(t,{expose:e,emit:n}){const i=t,a=n,r=d.ref(null),o=d.ref(null);d.watch(()=>i.options,()=>{u(),s()},{deep:!0}),d.onMounted(()=>{r.value&&s()}),d.onBeforeUnmount(()=>{u()});function s(){r.value&&(o.value=new bs(r.value,i.options),p())}function u(){o.value&&(p(!1),o.value.destroy(),o.value=null)}const f={scroll:h("scroll"),"ps-scroll-y":h("ps-scroll-y"),"ps-scroll-x":h("ps-scroll-x"),"ps-scroll-up":h("ps-scroll-up"),"ps-scroll-down":h("ps-scroll-down"),"ps-scroll-left":h("ps-scroll-left"),"ps-scroll-right":h("ps-scroll-right"),"ps-y-reach-start":h("ps-y-reach-start"),"ps-y-reach-end":h("ps-y-reach-end"),"ps-x-reach-start":h("ps-x-reach-start"),"ps-x-reach-end":h("ps-x-reach-end")};function h(y){return function(g){a(y,g)}}function p(y=!0){var g;(g=o.value)!=null&&g.element&&Object.entries(f).forEach(([b,v])=>{var k,M;y?(k=o.value)==null||k.element.addEventListener(b,v):(M=o.value)==null||M.element.removeEventListener(b,v)})}return e({ps:o}),(y,g)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(y.tag),{ref_key:"scrollbar",ref:r,class:"ps"},{default:d.withCtx(()=>[d.renderSlot(y.$slots,"default")]),_:3},512))}}),lye=["data-testid"],yh=d.defineComponent({__name:"Scrollbar",props:{options:{},tag:{},class:{},style:{},thrumbStyle:{},railStyle:{},dataTestid:{default:"ScrollBar"}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(t,{expose:e,emit:n}){const i=t,a=d.ref(null),r=n,o=p=>{r("scroll",p)},s={attributes:!0,attributeFilter:["style"]},u=(p,y)=>g=>{for(const b of g)b.type==="attributes"&&b.attributeName==="style"&&p.style.right!==y&&(p.style.right=y)},f=()=>{var M,_,N,j,I,O,A,H,G,Y,U,ee,ye,be,fe,se,ne,_e,Xe,Jt,wt,gi,Ai,Fn;if(!a.value)return;const p=a.value.querySelector(".ps__thumb-y"),y=a.value.querySelector(".ps__thumb-x"),g=a.value.querySelector(".ps__rail-y"),b=a.value.querySelector(".ps__rail-x");p.style.background=((_=(M=i.thrumbStyle)==null?void 0:M.y)==null?void 0:_.background)||"#77a6ff",p.style.width=((j=(N=i.thrumbStyle)==null?void 0:N.y)==null?void 0:j.width)||"6px",p.style.right="0px",y.style.background=((O=(I=i.thrumbStyle)==null?void 0:I.x)==null?void 0:O.background)||"#77a6ff",y.style.width=((H=(A=i.thrumbStyle)==null?void 0:A.x)==null?void 0:H.width)||"6px",y.style.right="0px",g.style.background=((Y=(G=i.railStyle)==null?void 0:G.y)==null?void 0:Y.background)||"#F5F5F5",g.style.width=((ee=(U=i.thrumbStyle)==null?void 0:U.y)==null?void 0:ee.width)||"6px",g.style.right=((be=(ye=i.railStyle)==null?void 0:ye.y)==null?void 0:be.right)||"0px",b.style.background=((se=(fe=i.railStyle)==null?void 0:fe.x)==null?void 0:se.background)||"#F5F5F5",b.style.width=((_e=(ne=i.thrumbStyle)==null?void 0:ne.x)==null?void 0:_e.width)||"6px",b.style.right=((Jt=(Xe=i.railStyle)==null?void 0:Xe.x)==null?void 0:Jt.right)||"0px";const v=new MutationObserver(u(g,((gi=(wt=i.railStyle)==null?void 0:wt.y)==null?void 0:gi.right)||"0px")),k=new MutationObserver(u(b,((Fn=(Ai=i.railStyle)==null?void 0:Ai.x)==null?void 0:Fn.right)||"0px"));v.observe(g,s),k.observe(b,s)};return d.watch(()=>i,()=>{f()},{immediate:!0}),e({scrollToTop:()=>{a.value&&(a.value.children[0].scrollTop=0)}}),d.onMounted(()=>{f()}),(p,y)=>(d.openBlock(),d.createElementBlock("div",{ref_key:"scrollbar",ref:a,"data-testid":i.dataTestid},[d.createVNode(d.unref(sye),{onScroll:o,options:i.options,tag:i.tag,class:d.normalizeClass(i.class),style:d.normalizeStyle(i.style),"data-testid":`${i.dataTestid}-Scroll`,ref_key:"scrollbar",ref:a},{default:d.withCtx(()=>[d.renderSlot(p.$slots,"default")]),_:3},8,["options","tag","class","style","data-testid"])],8,lye))}});function zt(t,e=document.documentElement){for(const[n,i]of Object.entries(t))e.style.setProperty(n,String(i))}const dye=()=>{const t=d.ref(0),e=d.ref([]),n=d.ref(null),i=u=>{e.value.push(u),r(u),o()},a=()=>{e.value.pop(),s(),e.value.length?r(e.value[e.value.length-1]):n.value=null},r=u=>{n.value=u},o=()=>{t.value+=1},s=()=>{t.value>0&&(t.value-=1)};return{countOpenedModal:t,openedModals:e,lastOpenedModal:n,addOpenedModal:i,reduceOpenedModal:a,setLastOpenedModal:r,incrementCountModal:o,decrementCountModal:s}},uye=["data-testid"],cye=["data-testid"],fye=oe(d.defineComponent({__name:"Modal",props:{open:{type:Boolean},position:{default:"right"},width:{},height:{},dataTestid:{default:"Modal"}},emits:["close","unmounted"],setup(t,{expose:e,emit:n}){const{lastOpenedModal:i,addOpenedModal:a,reduceOpenedModal:r}=dye(),o=t,s=d.ref(null),u=d.useAttrs(),f=d.ref(!1),h=d.computed(()=>({width:o.width,height:o.height})),p=n;let y=0;const g=()=>{y=Date.now(),s.value&&(o.open?(s.value.showModal(),a(s.value)):b())},b=()=>{Date.now()-y<300||(r(),p("close"))},v=()=>{var j;(j=s.value)==null||j.close(),document.documentElement.focus(),_()},k=j=>{j.key==="Escape"&&i.value===s.value&&b()},M=()=>{if(document.querySelectorAll(".modal-yui-kit").length===1)return window.innerWidth-document.documentElement.clientWidth;{const I=document.body.style.paddingRight;return Number(I.replace(/\D/g,""))||0}},_=()=>{document.querySelectorAll(".modal-yui-kit").length===0&&zt({overflow:"","padding-right":""},document.body)},N=j=>{j.target===s.value&&b()};return e({closeDialog:v}),d.onMounted(()=>{d.watchEffect(()=>{o.open!==f.value&&(g(),f.value=o.open)}),s.value&&s.value.addEventListener("cancel",I=>{I.preventDefault()});const j=M();zt({overflow:"hidden","padding-right":`${j}px`},document.body),document.addEventListener("keydown",k)}),d.onUnmounted(()=>{_(),document.removeEventListener("keydown",k),p("unmounted")}),(j,I)=>(d.openBlock(),d.createElementBlock("dialog",d.mergeProps({ref_key:"dialog",ref:s},d.unref(u),{class:["modal-yui-kit",o.position],"data-testid":o.dataTestid,onClick:d.withModifiers(N,["self","left"])}),[d.createElementVNode("div",{class:"modal-yui-kit__modal-content",style:d.normalizeStyle(h.value),"data-testid":`${o.dataTestid}-ModalContent`},[d.renderSlot(j.$slots,"default",{},void 0,!0)],12,cye)],16,uye))}}),[["__scopeId","data-v-a0b58b2e"]]);var fd=(t=>(t.right="right",t.fade="fade",t))(fd||{});const hye=d.defineComponent({__name:"ModalAnimated",props:{animateType:{default:fd.right},open:{type:Boolean},position:{default:"right"},width:{},height:{},dataTestid:{default:"Modal"}},emits:["close","unmounted","end-animation"],setup(t,{emit:e}){const n=t,i=e,a=d.computed(()=>{switch(n.animateType){case fd.fade:return"fade";case fd.right:return"modal";default:return"modal"}}),r=d.ref(null),o=d.reactive({function:()=>{}}),s=()=>{var h;r.value&&(o.function=(h=r.value)==null?void 0:h.closeDialog),i("close")},u=()=>{i("unmounted")},f=()=>{o.function(),i("end-animation")};return(h,p)=>(d.openBlock(),d.createBlock(d.Transition,{name:a.value,onAfterLeave:f},{default:d.withCtx(()=>[n.open?(d.openBlock(),d.createBlock(fye,{key:0,ref_key:"modalRef",ref:r,open:n.open,position:n.position,width:n.width,height:n.height,"data-testid":n.dataTestid,onClose:s,onUnmounted:u},{default:d.withCtx(()=>[d.renderSlot(h.$slots,"default",{},void 0,!0)]),_:3},8,["open","position","width","height","data-testid"])):d.createCommentVNode("",!0)]),_:3},8,["name"]))}}),hd=oe(hye,[["__scopeId","data-v-ffbeadfa"]]);var K2=(t=>(t.small="small",t.medium="medium",t.big="big",t))(K2||{}),Q2=(t=>(t.circled="circled",t.rounded="rounded",t))(Q2||{});const mye=["data-testid","checked","disabled"],pye=d.defineComponent({__name:"Checkbox",props:{size:{default:K2.medium},circular:{default:Q2.rounded},checked:{type:Boolean},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Checkbox"}},emits:["change","update:modelValue"],setup(t,{emit:e}){const n=t,i=e,a=d.reactive({isChecked:n.modelValue});d.watchEffect(()=>{a.isChecked=n.modelValue});const r=()=>{a.isChecked=!a.isChecked,i("change",a.isChecked),i("update:modelValue",a.isChecked)};return(o,s)=>(d.openBlock(),d.createElementBlock("input",{type:"checkbox",class:d.normalizeClass(`checkbox-yui-kit checkbox-yui-kit_${n.size} checkbox-yui-kit_${n.circular}`),"data-testid":`${n.dataTestid}`,tabindex:"0",onChange:r,checked:a.isChecked,disabled:n.disabled,onKeyup:d.withKeys(r,["enter"])},null,42,mye))}}),bh=oe(pye,[["__scopeId","data-v-5b8c9f76"]]);var ir=(t=>(t.profile="profile",t.theme="theme",t.options="options",t.exit="exit",t.help="help",t))(ir||{});const gye=["data-testid"],yye=["src","alt"],bye=["src"],wye={key:2,class:"avatar-yui-kit__text"},md=oe(d.defineComponent({__name:"Avatar",props:{initials:{},url:{},isIcon:{type:Boolean},alt:{},defaultImage:{},dataTestid:{}},setup(t){const e=t,n=d.ref(!1);d.watch(()=>e.url,()=>{n.value=!1});const i=()=>e.initials?e.initials.charAt(0):"";return(a,r)=>(d.openBlock(),d.createElementBlock("div",{"data-testid":e.dataTestid,class:"avatar-yui-kit"},[e.url&&!n.value?(d.openBlock(),d.createElementBlock("img",{key:0,src:e.url,alt:e.alt,class:"avatar-yui-kit__image",onError:r[0]||(r[0]=o=>n.value=!0)},null,40,yye)):e.defaultImage?(d.openBlock(),d.createElementBlock("img",{key:1,src:e.defaultImage,class:"avatar-yui-kit__image"},null,8,bye)):(d.openBlock(),d.createElementBlock("div",wye,d.toDisplayString(i()),1))],8,gye))}}),[["__scopeId","data-v-09e82bca"]]),vye=["data-testid"],kye={class:"menu-yui-kit__wrapper"},Mye={class:"menu-yui-kit__names"},Cye={class:"menu-yui-kit__name"},xye={class:"menu-yui-kit__role"},Sye={key:0,class:"menu-yui-kit__list"},_ye={class:"list-yui-kit"},Tye=["data-testid"],Pye=["data-testid"],Eye=["data-testid"],Nye=["data-testid"],Dye=["data-testid"],jye=["data-type"],wh=oe(d.defineComponent({__name:"UserMenu",props:{closeAfterClick:{type:Boolean},user:{},languages:{},isBlackTheme:{type:Boolean},dataTestid:{default:"UserMenu"}},emits:["click","themeChange","languageSwitch"],setup(t,{emit:e}){const n=t,i=d.reactive({isShow:!1,option:"",isBlackTheme:n.isBlackTheme??!1}),a=e,r=d.computed(()=>({"menu-yui-kit__heading":!0,"active-yui-kit":i.isShow})),o=d.computed(()=>i.isBlackTheme?ie.dark:ie.light),s=d.ref(null),u=b=>{s.value&&!s.value.contains(b.target)&&(i.isShow=!1)};d.onMounted(()=>{document.addEventListener("click",u)}),d.onBeforeUnmount(()=>{document.removeEventListener("click",u)});const f=b=>{b!==void 0?(i.option=b,a("click",b),n.closeAfterClick&&(i.isShow=!1)):console.error("Option type is undefined")},h=d.computed(()=>i.isShow?ie.chevronUp:ie.chevronDown),p=()=>{i.isShow=!i.isShow},y=b=>{n.closeAfterClick&&(i.isShow=!1),a("themeChange",b),i.isBlackTheme=b},g=b=>{n.closeAfterClick&&(i.isShow=!1),a("languageSwitch",b)};return(b,v)=>{var k,M,_;return d.openBlock(),d.createElementBlock("div",{class:"menu-yui-kit",ref_key:"menuRef",ref:s,"data-testid":n.dataTestid},[d.createElementVNode("div",kye,[d.createVNode(md,{class:"menu-yui-kit__avatar",url:n.user.avatar,alt:"user-avatar","data-testid":`${n.dataTestid}-Avatar`},null,8,["url","data-testid"]),d.createElementVNode("div",{class:d.normalizeClass(r.value),onClick:p},[d.createElementVNode("div",Mye,[d.createElementVNode("p",Cye,d.toDisplayString(n.user.name),1),d.createElementVNode("p",xye,d.toDisplayString(n.user.role),1)]),d.createVNode(pt,{type:d.unref(qe).ghost,class:"menu-yui-kit__button","data-testid":`${n.dataTestid}-Toggle`},{default:d.withCtx(()=>[d.createVNode(ce,{class:"menu-yui-kit__button-icon",name:h.value},null,8,["name"])]),_:1},8,["type","data-testid"])],2)]),i.isShow?(d.openBlock(),d.createElementBlock("div",Sye,[d.createElementVNode("ul",_ye,[d.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[0]||(v[0]=N=>f(d.unref(ir).profile)),"data-testid":`${n.dataTestid}-Profile-Item`},[d.createVNode(ce,{name:d.unref(ie).profile},null,8,["name"]),v[5]||(v[5]=d.createElementVNode("span",{class:"list-yui-kit__item-text"},"Профиль",-1))],8,Tye),d.createElementVNode("li",{class:"list-yui-kit__item","data-testid":`${n.dataTestid}-Theme-Item`},[d.createVNode(ce,{name:o.value},null,8,["name"]),d.createElementVNode("span",{class:"list-yui-kit__item-text",onClick:v[1]||(v[1]=N=>f(d.unref(ir).theme))},"Темная тема"),d.createVNode(ld,{type:d.unref(Qr).small,onChange:y,checked:i.isBlackTheme,"data-testid":`${n.dataTestid}-Theme-Toggle`},null,8,["type","checked","data-testid"])],8,Pye),d.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[2]||(v[2]=N=>f(d.unref(ir).options)),"data-testid":`${n.dataTestid}-Settings-Item`},[d.createVNode(ce,{name:d.unref(ie).settings},null,8,["name"]),v[6]||(v[6]=d.createElementVNode("span",{class:"list-yui-kit__item-text"},"Настройки",-1))],8,Eye),d.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[3]||(v[3]=N=>f(d.unref(ir).exit)),"data-testid":`${n.dataTestid}-Exit-Item`},[d.createVNode(ce,{name:d.unref(ie).exit},null,8,["name"]),v[7]||(v[7]=d.createElementVNode("span",{class:"list-yui-kit__item-text"},"Выход",-1))],8,Nye),d.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[4]||(v[4]=N=>f(d.unref(ir).help)),"data-testid":`${n.dataTestid}-Help-Item`},[d.createVNode(ce,{name:d.unref(ie).help},null,8,["name"]),d.createElementVNode("span",{class:"list-yui-kit__item-text","data-type":d.unref(ir).help},"Помощь",8,jye)],8,Dye)]),(k=n.languages)!=null&&k.items?(d.openBlock(),d.createBlock(Sl,{key:0,items:(M=n.languages)==null?void 0:M.items,defaultValue:(_=n.languages)==null?void 0:_.defaultValue,onChange:g,"data-testid":`${n.dataTestid}-Language-Switch`},null,8,["items","defaultValue","data-testid"])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)],8,vye)}}}),[["__scopeId","data-v-92ca4d70"]]);var pd=(t=>(t.default="default",t.minor="minor",t))(pd||{});const Aye=["data-testid"],Wye=["data-testid"],Iye=["data-testid"],zye=["data-testid","placeholder","required","maxlength","readonly"],Oye=d.defineComponent({__name:"Textarea",props:{placeholder:{},inputMessage:{},required:{type:Boolean,default:!1},maxlength:{},modelValue:{default:""},readonly:{type:Boolean,default:!1},type:{default:pd.default},modelModifiers:{default:()=>({})},dataTestid:{default:"Textarea"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,i=e,a=d.reactive({isPressed:!1,inputElement:n.modelValue}),r=d.computed(()=>[{pressed:a.isPressed,readonly:n.readonly,[n.type]:!0}]),o=()=>{i("update:modelValue",a.inputElement)},s=()=>{n.readonly||(a.isPressed=!0)},u=()=>{a.isPressed=!1};return d.watch(()=>n.modelValue,f=>{a.inputElement=f}),(f,h)=>(d.openBlock(),d.createElementBlock("fieldset",{class:d.normalizeClass(["input-yui-kit",r.value]),onFocusout:u,"data-testid":n.dataTestid},[n.inputMessage?(d.openBlock(),d.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${n.dataTestid}-Legend`},[d.createTextVNode(d.toDisplayString(n.inputMessage)+" ",1),n.required?(d.openBlock(),d.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${n.dataTestid}-Legend-Star`},"*",8,Iye)):d.createCommentVNode("",!0)],8,Wye)):d.createCommentVNode("",!0),d.withDirectives(d.createElementVNode("textarea",{"onUpdate:modelValue":h[0]||(h[0]=p=>a.inputElement=p),onFocus:s,onInput:o,"data-testid":`${n.dataTestid}-Textarea`,class:"input-yui-kit__input",placeholder:n.placeholder,required:n.required,maxlength:n.maxlength,readonly:n.readonly},null,40,zye),[[d.vModelText,a.inputElement]])],42,Aye))}}),vh=oe(Oye,[["__scopeId","data-v-ac7acfbd"]]);var J2=(t=>(t.img="img",t.pdf="pdf",t.docx="docx",t))(J2||{});const Lye=["data-testid"],$ye=["data-testid"],Hye=["src","alt","data-testid"],Bye=["data-testid"],Rye=["data-testid"],Vye=["data-testid"],kh=oe(d.defineComponent({__name:"Picture",props:{type:{},alt:{},url:{},caption:{},dataTestid:{default:"Picture"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createElementBlock("figure",{class:"picture-yui-kit","data-testid":e.dataTestid},[e.type==d.unref(J2).img?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createElementVNode("picture",{class:"picture-yui-kit__picture","data-testid":`${e.dataTestid}-Picture`},[d.createElementVNode("img",{class:"picture-yui-kit__picture__image",src:e.url,alt:e.alt,"data-testid":`${e.dataTestid}-Picture-Img`},null,8,Hye)],8,$ye),d.createElementVNode("figcaption",{class:"picture-yui-kit__picture__caption","data-testid":`${e.dataTestid}-Caption`},d.toDisplayString(e.caption),9,Bye)],64)):(d.openBlock(),d.createElementBlock("div",{key:1,class:"picture-yui-kit__caption","data-testid":`${e.dataTestid}-Caption-Box`},[d.createElementVNode("h4",{class:"picture-yui-kit__caption__title","data-testid":`${e.dataTestid}-Caption-Title`},d.toDisplayString(e.caption),9,Vye)],8,Rye))],8,Lye))}}),[["__scopeId","data-v-6a079c40"]]);var Z2=(t=>(t.success="success",t.warning="warning",t.error="error",t.info="info",t))(Z2||{}),ey=(t=>(t.success="Успешно",t.warning="Предупреждение",t.error="Ошибка",t.info="Уведомление",t))(ey||{}),ty=(t=>(t[t.success=ie.checkbox]="success",t[t.warning=ie.alertTriangle]="warning",t[t.error=ie.exitCircle]="error",t[t.info=ie.info]="info",t))(ty||{});const Yye=["id","data-testid"],Fye=["data-testid"],Xye=["data-testid"],Uye=["data-testid"],qye=["data-testid"],Gye=d.defineComponent({__name:"Notification",props:{type:{default:Z2.info},title:{},pushKey:{},description:{default:""},timeout:{default:3},showPopover:{type:Boolean,default:!0},dataTestid:{default:"Notification"}},emits:["close"],setup(t,{expose:e,emit:n}){const i=t,a=n,r=d.ref(null);oh(r,"toggle",()=>{i.timeout>0&&setTimeout(()=>{var f;return(f=r.value)==null?void 0:f.hidePopover()},i.timeout*1e3)});const o=()=>(a("close"),"hide"),s=()=>{var f;(f=r.value)==null||f.showPopover()},u=d.reactive({message:{icon:ty[i.type],title:i.title||ey[i.type],description:i.description}});return d.onMounted(()=>{var f;i.showPopover&&((f=r.value)==null||f.showPopover())}),e({showPopover:s}),(f,h)=>(d.openBlock(),d.createElementBlock("div",{popover:"manual",id:i.pushKey.toString(),class:d.normalizeClass(`push-notification-yui-kit push-notification-yui-kit_${i.type}`),"data-testid":i.dataTestid,ref_key:"popover",ref:r},[d.createElementVNode("div",{class:"notification-yui-kit","data-testid":`${i.dataTestid}-Notification`},[d.createElementVNode("div",{class:"notification-yui-kit__block","data-testid":`${i.dataTestid}-Notification-Block`},[d.createVNode(ce,{name:u.message.icon,class:"notification-yui-kit__block-icon","data-testid":`${i.dataTestid}-Notification-Icon`},null,8,["name","data-testid"]),d.createElementVNode("h4",{class:"notification-yui-kit__block-title","data-testid":`${i.dataTestid}-Notification-Title`},d.toDisplayString(u.message.title),9,Uye),d.createElementVNode("span",{class:"notification-yui-kit__block-text","data-testid":`${i.dataTestid}-Notification-Description`},d.toDisplayString(u.message.description),9,qye)],8,Xye),d.createVNode(pt,{class:"notification-yui-kit__exit",type:d.unref(qe).ghost,popovertarget:i.pushKey.toString(),popovertargetaction:o,"data-testid":`${i.dataTestid}-Notification-Button`},{default:d.withCtx(()=>[d.createVNode(ce,{name:d.unref(ie).crossSmall,"data-testid":`${i.dataTestid}-Notification-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","popovertarget","data-testid"])],8,Fye)],10,Yye))}}),Mh=oe(Gye,[["__scopeId","data-v-42a4a42d"]]),Ch=d.defineComponent({__name:"CopyIcon",props:{content:{default:""},dataTestid:{default:"CopyIcon"}},setup(t){const e=t,n=()=>{const i=e.content,a=document.createElement("textarea");a.value=i;const r=document.querySelectorAll("dialog[open]"),o=r.length?r[r.length-1]:null;o?o.append(a):document.body.append(a),a.select(),a.setSelectionRange(0,99999),document.execCommand("copy"),a.remove()};return(i,a)=>(d.openBlock(),d.createBlock(ce,{class:"copy-icon-yui-kit",name:d.unref(ie).copy,"data-testid":e.dataTestid,onClick:n},null,8,["name","data-testid"]))}}),Kye=["data-testid"],Qye=["data-testid"],Jye=["data-testid"],Zye=["data-testid"],e4e=["data-testid"],xh=oe(d.defineComponent({__name:"Loader",props:{title:{default:"Загрузка..."},dataTestid:{default:"Loader"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createElementBlock("div",{class:"loader","data-testid":e.dataTestid},[d.createElementVNode("div",{class:"loader__area","data-testid":`${e.dataTestid}-Area`},[d.createElementVNode("div",{class:"loader__circle loader__circle--light-blue","data-testid":`${e.dataTestid}-Loader-LightBlue1`},null,8,Jye),d.createElementVNode("div",{class:"loader__circle loader__circle--blue","data-testid":`${e.dataTestid}-Loader-LightBlue2`},null,8,Zye)],8,Qye),e.title?(d.openBlock(),d.createElementBlock("span",{key:0,class:"loader__span","data-testid":`${e.dataTestid}-Loader-Title`},d.toDisplayString(e.title),9,e4e)):d.createCommentVNode("",!0)],8,Kye))}}),[["__scopeId","data-v-f57f6084"]]),t4e=["data-testid"],n4e=["data-testid"],i4e=["data-testid"],a4e=["data-testid"],r4e=["data-testid"],o4e=["data-testid"],s4e=["data-testid"],l4e=["data-testid"],d4e=["data-testid"],u4e=["data-testid"],c4e=["data-testid"],f4e=["data-testid"],h4e=["data-testid"],m4e=["data-testid"],p4e=d.defineComponent({__name:"FilterTag",props:{title:{},iconName:{default:ie.filter},options:{default:()=>[]},selectedValues:{default:()=>[]},multiply:{type:Boolean,default:!0},maxShowCount:{default:5},showClearButton:{type:Boolean,default:!1},disallowNull:{type:Boolean,default:!1},dataTestid:{default:"FilterTag"}},emits:["change"],setup(t,{emit:e}){const n=t,i=d.reactive({isShow:!1,options:[]}),a=e,r=d.computed(()=>({"filter-yui-kit__wrapper":!0,"active-yui-kit":i.isShow})),o=()=>i.isShow=!i.isShow,s=()=>{i.isShow=!1},u=d.computed(()=>i.options.filter(g=>g.chose)),f=d.computed(()=>i.options.filter(g=>!g.chose)),h=g=>{n.disallowNull&&g.chose||(g.chose=!g.chose,n.multiply||(i.options=i.options.map(b=>({...b,chose:g.value===b.value&&g.chose}))),i.options.every(b=>b.chose)&&(i.options=i.options.map(b=>({...b,chose:!1}))),a("change",u.value.map(b=>b.value)),i.isShow=!1)},p=()=>{i.options=i.options.map(g=>({...g,chose:!1})),i.isShow=!1,a("change",[])},y=()=>{i.options=n.options.map(g=>({...g,chose:n.selectedValues.includes(g.value)})),i.options.every(g=>g.chose)&&(i.options=i.options.map(g=>({...g,chose:!1})))};return d.watch(()=>[n.options,n.selectedValues],y),d.watch(()=>n.selectedValues,y),d.onMounted(y),(g,b)=>d.withDirectives((d.openBlock(),d.createElementBlock("div",{class:"filter-yui-kit","data-testid":n.dataTestid},[d.createElementVNode("div",{class:d.normalizeClass(r.value),onClick:o,"data-testid":`${n.dataTestid}-Wrapper`},[n.iconName?(d.openBlock(),d.createBlock(ce,{key:0,name:n.iconName,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"])):d.createCommentVNode("",!0),n.title?(d.openBlock(),d.createElementBlock("span",{key:1,"data-testid":`${n.dataTestid}-Title`},d.toDisplayString(n.title),9,i4e)):d.createCommentVNode("",!0),!u.value.length&&!n.disallowNull?(d.openBlock(),d.createBlock(Mt,{key:2,disabled:"",text:"Все","data-testid":`${n.dataTestid}-Badges-All`},null,8,["data-testid"])):(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:3},d.renderList(u.value.filter((v,k)=>k<n.maxShowCount),(v,k)=>(d.openBlock(),d.createBlock(Mt,{key:v.value,type:v.type,disabled:"","data-testid":`${n.dataTestid}-Badges${k}`,text:v.label},null,8,["type","data-testid","text"]))),128)),n.maxShowCount<u.value.length?(d.openBlock(),d.createElementBlock("div",{key:4,class:"filter-yui-kit__counter","data-testid":`${n.dataTestid}-MaxShowCount-Counter`},[d.createTextVNode(" +"+d.toDisplayString(u.value.length-n.maxShowCount)+" ",1),d.createElementVNode("div",{class:"filter-yui-kit__counter-content","data-testid":`${n.dataTestid}-MaxShowCount-Content`},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.value.filter((v,k)=>k>=n.maxShowCount),(v,k)=>(d.openBlock(),d.createBlock(Mt,{key:v.value,type:v.type,disabled:"",text:v.label,"data-testid":`${n.dataTestid}-MaxShow-Badges${k}`},null,8,["type","text","data-testid"]))),128))],8,r4e)],8,a4e)):d.createCommentVNode("",!0),n.showClearButton&&u.value.length>0?(d.openBlock(),d.createElementBlock("button",{key:5,type:"button",class:"filter-yui-kit__close",onClick:d.withModifiers(p,["stop"]),"data-testid":`${n.dataTestid}-Filter-CloseButton`},[d.createVNode(ce,{name:d.unref(ie).crossSmall,"data-testid":`${n.dataTestid}-CloseButton-Icon`},null,8,["name","data-testid"])],8,o4e)):d.createCommentVNode("",!0)],10,n4e),i.isShow?(d.openBlock(),d.createElementBlock("div",{key:0,class:"filter-yui-kit__select-wrapper","data-testid":`${n.dataTestid}-Select-Wrapper`},[d.createElementVNode("ul",{class:"filter-yui-kit__select-list selected-yui-kit","data-testid":`${n.dataTestid}-Select-List`},[u.value.length?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${n.dataTestid}-Select-Item`},[d.createVNode(Mt,{disabled:"",text:"Все","data-testid":`${n.dataTestid}-Select-Badges`},null,8,["data-testid"])],8,d4e)),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.value,(v,k)=>(d.openBlock(),d.createElementBlock("li",{class:"filter-yui-kit__select-item",key:v.value,"data-testid":`${n.dataTestid}-Select-Item${k}`},[d.createVNode(Mt,{disabled:!0,choosed:!n.disallowNull&&v.chose,type:v.type,onClick:M=>h(v),text:v.label,"data-testid":`${n.dataTestid}-Select-Badges${k}`},null,8,["choosed","type","onClick","text","data-testid"])],8,u4e))),128))],8,l4e),d.createElementVNode("div",{class:"filter-yui-kit__select__divider","data-testid":`${n.dataTestid}-Select-Divider`},null,8,c4e),i.isShow?(d.openBlock(),d.createElementBlock("ul",{key:0,class:"filter-yui-kit__select-list","data-testid":`${n.dataTestid}-Select-List`},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(f.value,(v,k)=>(d.openBlock(),d.createElementBlock("li",{class:"filter-yui-kit__select-item",key:v.value,"data-testid":`${n.dataTestid}-Select-List${k}`},[d.createVNode(Mt,{disabled:!0,choosed:!1,type:v.type,text:v.label,"data-testid":`${n.dataTestid}-Select-Badges${k}`,onClick:M=>h(v)},null,8,["type","text","data-testid","onClick"])],8,h4e))),128)),t.disallowNull?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${n.dataTestid}-Select-Item`},[u.value.length?(d.openBlock(),d.createBlock(Mt,{key:0,disabled:"","data-testid":`${n.dataTestid}-Select-Badges`,text:"Все",onClick:p},null,8,["data-testid"])):d.createCommentVNode("",!0)],8,m4e))],8,f4e)):d.createCommentVNode("",!0)],8,s4e)):d.createCommentVNode("",!0)],8,t4e)),[[d.unref(Vc),s,void 0,{bubble:!0}]])}}),Sh=oe(p4e,[["__scopeId","data-v-9a93bcc4"]]),g4e=["data-testid"],y4e=["data-testid"],b4e=["data-testid"],w4e=["data-testid"],_h=oe(d.defineComponent({__name:"CircularProgress",props:{percent:{},dataTestid:{default:"CircularProgress"}},setup(t){const e=t,n=()=>{const i=Math.min(Math.max(e.percent,0),100),a=i/100*360;if(i<=25)return`polygon(50% 50%, 50% 0%, calc(50% + 50% * cos(${a-90}deg)) 0,calc(50% + 50% * cos(${a-90}deg)) calc(50% + 50% * sin(${a-90}deg)), 50% 50%)`;if(i<=50)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% calc(50% + 50% * sin(${a-90}deg)), calc(50% + 50% * cos(${a-90}deg)) calc(50% + 50% * sin(${a-90}deg)), 50% 50%)`;if(i<=75)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,
1295
+ */function si(t){return getComputedStyle(t)}function Ut(t,e){for(var n in e){var i=e[n];typeof i=="number"&&(i=i+"px"),t.style[n]=i}return t}function dd(t){var e=document.createElement("div");return e.className=t,e}var R2=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ra(t,e){if(!R2)throw new Error("No element matching method supported");return R2.call(t,e)}function Jr(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function V2(t,e){return Array.prototype.filter.call(t.children,function(n){return ra(n,e)})}var at={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},Y2={x:null,y:null};function F2(t,e){var n=t.element.classList,i=at.state.scrolling(e);n.contains(i)?clearTimeout(Y2[e]):n.add(i)}function X2(t,e){Y2[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(at.state.scrolling(e))},t.settings.scrollingThreshold)}function G2e(t,e){F2(t,e),X2(t,e)}var ys=function(e){this.element=e,this.handlers={}},U2={isEmpty:{configurable:!0}};ys.prototype.bind=function(e,n){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(n),this.element.addEventListener(e,n,!1)},ys.prototype.unbind=function(e,n){var i=this;this.handlers[e]=this.handlers[e].filter(function(a){return n&&a!==n?!0:(i.element.removeEventListener(e,a,!1),!1)})},ys.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},U2.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return t.handlers[e].length===0})},Object.defineProperties(ys.prototype,U2);var Zr=function(){this.eventElements=[]};Zr.prototype.eventElement=function(e){var n=this.eventElements.filter(function(i){return i.element===e})[0];return n||(n=new ys(e),this.eventElements.push(n)),n},Zr.prototype.bind=function(e,n,i){this.eventElement(e).bind(n,i)},Zr.prototype.unbind=function(e,n,i){var a=this.eventElement(e);a.unbind(n,i),a.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(a),1)},Zr.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},Zr.prototype.once=function(e,n,i){var a=this.eventElement(e),r=function(o){a.unbind(n,r),i(o)};a.bind(n,r)};function ud(t){if(typeof window.CustomEvent=="function")return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function cd(t,e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=!1);var r;if(e==="top")r=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(e==="left")r=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");K2e(t,n,r,i,a)}function K2e(t,e,n,i,a){var r=n[0],o=n[1],s=n[2],u=n[3],f=n[4],h=n[5];i===void 0&&(i=!0),a===void 0&&(a=!1);var p=t.element;t.reach[u]=null,p[s]<1&&(t.reach[u]="start"),p[s]>t[r]-t[o]-1&&(t.reach[u]="end"),e&&(p.dispatchEvent(ud("ps-scroll-"+u)),e<0?p.dispatchEvent(ud("ps-scroll-"+f)):e>0&&p.dispatchEvent(ud("ps-scroll-"+h)),i&&G2e(t,u)),t.reach[u]&&(e||a)&&p.dispatchEvent(ud("ps-"+u+"-reach-"+t.reach[u]))}function Ye(t){return parseInt(t,10)||0}function Q2e(t){return ra(t,"input,[contenteditable]")||ra(t,"select,[contenteditable]")||ra(t,"textarea,[contenteditable]")||ra(t,"button,[contenteditable]")}function J2e(t){var e=si(t);return Ye(e.width)+Ye(e.paddingLeft)+Ye(e.paddingRight)+Ye(e.borderLeftWidth)+Ye(e.borderRightWidth)}var eo={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function xi(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.round(i.width),t.containerHeight=Math.round(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(V2(e,at.element.rail("x")).forEach(function(a){return Jr(a)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(V2(e,at.element.rail("y")).forEach(function(a){return Jr(a)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=q2(t,Ye(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=Ye((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=q2(t,Ye(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=Ye(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),Z2e(e,t),t.scrollbarXActive?e.classList.add(at.state.active("x")):(e.classList.remove(at.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=t.isRtl===!0?t.contentWidth:0),t.scrollbarYActive?e.classList.add(at.state.active("y")):(e.classList.remove(at.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function q2(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Z2e(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);e.isRtl?n.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:n.left=t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i,Ut(e.scrollbarXRail,n);var a={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?a.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:a.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?a.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth*2-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:a.left=e.scrollbarYLeft+t.scrollLeft,Ut(e.scrollbarYRail,a),Ut(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),Ut(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function eye(t){t.element,t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,i=n>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,xi(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,i=n>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,xi(t),e.stopPropagation()})}function tye(t){G2(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),G2(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function G2(t,e){var n=e[0],i=e[1],a=e[2],r=e[3],o=e[4],s=e[5],u=e[6],f=e[7],h=e[8],p=t.element,y=null,g=null,b=null;function v(_){_.touches&&_.touches[0]&&(_[a]=_.touches[0].pageY),p[u]=y+b*(_[a]-g),F2(t,f),xi(t),_.stopPropagation(),_.type.startsWith("touch")&&_.changedTouches.length>1&&_.preventDefault()}function k(){X2(t,f),t[h].classList.remove(at.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",v)}function M(_,N){y=p[u],N&&_.touches&&(_[a]=_.touches[0].pageY),g=_[a],b=(t[i]-t[n])/(t[r]-t[s]),N?t.event.bind(t.ownerDocument,"touchmove",v):(t.event.bind(t.ownerDocument,"mousemove",v),t.event.once(t.ownerDocument,"mouseup",k),_.preventDefault()),t[h].classList.add(at.state.clicking),_.stopPropagation()}t.event.bind(t[o],"mousedown",function(_){M(_)}),t.event.bind(t[o],"touchstart",function(_){M(_,!0)})}function nye(t){var e=t.element,n=function(){return ra(e,":hover")},i=function(){return ra(t.scrollbarX,":focus")||ra(t.scrollbarY,":focus")};function a(r,o){var s=Math.floor(e.scrollTop);if(r===0){if(!t.scrollbarYActive)return!1;if(s===0&&o>0||s>=t.contentHeight-t.containerHeight&&o<0)return!t.settings.wheelPropagation}var u=e.scrollLeft;if(o===0){if(!t.scrollbarXActive)return!1;if(u===0&&r<0||u>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&!(!n()&&!i())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if(o.tagName==="IFRAME")o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(Q2e(o))return}var s=0,u=0;switch(r.which){case 37:r.metaKey?s=-t.contentWidth:r.altKey?s=-t.containerWidth:s=-30;break;case 38:r.metaKey?u=t.contentHeight:r.altKey?u=t.containerHeight:u=30;break;case 39:r.metaKey?s=t.contentWidth:r.altKey?s=t.containerWidth:s=30;break;case 40:r.metaKey?u=-t.contentHeight:r.altKey?u=-t.containerHeight:u=-30;break;case 32:r.shiftKey?u=t.containerHeight:u=-t.containerHeight;break;case 33:u=t.containerHeight;break;case 34:u=-t.containerHeight;break;case 36:u=t.contentHeight;break;case 35:u=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&s!==0||t.settings.suppressScrollY&&u!==0||(e.scrollTop-=u,e.scrollLeft+=s,xi(t),a(s,u)&&r.preventDefault())}})}function iye(t){var e=t.element;function n(o,s){var u=Math.floor(e.scrollTop),f=e.scrollTop===0,h=u+e.offsetHeight===e.scrollHeight,p=e.scrollLeft===0,y=e.scrollLeft+e.offsetWidth===e.scrollWidth,g;return Math.abs(s)>Math.abs(o)?g=f||h:g=p||y,g?!t.settings.wheelPropagation:!0}function i(o){var s=o.deltaX,u=-1*o.deltaY;return(typeof s>"u"||typeof u>"u")&&(s=-1*o.wheelDeltaX/6,u=o.wheelDeltaY/6),o.deltaMode&&o.deltaMode===1&&(s*=10,u*=10),s!==s&&u!==u&&(s=0,u=o.wheelDelta),o.shiftKey?[-u,-s]:[s,u]}function a(o,s,u){if(!eo.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(o))return!1;for(var f=o;f&&f!==e;){if(f.classList.contains(at.element.consuming))return!0;var h=si(f);if(u&&h.overflowY.match(/(scroll|auto)/)){var p=f.scrollHeight-f.clientHeight;if(p>0&&(f.scrollTop>0&&u<0||f.scrollTop<p&&u>0))return!0}if(s&&h.overflowX.match(/(scroll|auto)/)){var y=f.scrollWidth-f.clientWidth;if(y>0&&(f.scrollLeft>0&&s<0||f.scrollLeft<y&&s>0))return!0}f=f.parentNode}return!1}function r(o){var s=i(o),u=s[0],f=s[1];if(!a(o.target,u,f)){var h=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(f?e.scrollTop-=f*t.settings.wheelSpeed:e.scrollTop+=u*t.settings.wheelSpeed,h=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(u?e.scrollLeft+=u*t.settings.wheelSpeed:e.scrollLeft-=f*t.settings.wheelSpeed,h=!0):(e.scrollTop-=f*t.settings.wheelSpeed,e.scrollLeft+=u*t.settings.wheelSpeed),xi(t),h=h||n(u,f),h&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?t.event.bind(e,"wheel",r):typeof window.onmousewheel<"u"&&t.event.bind(e,"mousewheel",r)}function aye(t){if(!eo.supportsTouch&&!eo.supportsIePointer)return;var e=t.element;function n(b,v){var k=Math.floor(e.scrollTop),M=e.scrollLeft,_=Math.abs(b),N=Math.abs(v);if(N>_){if(v<0&&k===t.contentHeight-t.containerHeight||v>0&&k===0)return window.scrollY===0&&v>0&&eo.isChrome}else if(_>N&&(b<0&&M===t.contentWidth-t.containerWidth||b>0&&M===0))return!0;return!0}function i(b,v){e.scrollTop-=v,e.scrollLeft-=b,xi(t)}var a={},r=0,o={},s=null;function u(b){return b.targetTouches?b.targetTouches[0]:b}function f(b){return b.pointerType&&b.pointerType==="pen"&&b.buttons===0?!1:!!(b.targetTouches&&b.targetTouches.length===1||b.pointerType&&b.pointerType!=="mouse"&&b.pointerType!==b.MSPOINTER_TYPE_MOUSE)}function h(b){if(f(b)){var v=u(b);a.pageX=v.pageX,a.pageY=v.pageY,r=new Date().getTime(),s!==null&&clearInterval(s)}}function p(b,v,k){if(!e.contains(b))return!1;for(var M=b;M&&M!==e;){if(M.classList.contains(at.element.consuming))return!0;var _=si(M);if(k&&_.overflowY.match(/(scroll|auto)/)){var N=M.scrollHeight-M.clientHeight;if(N>0&&(M.scrollTop>0&&k<0||M.scrollTop<N&&k>0))return!0}if(v&&_.overflowX.match(/(scroll|auto)/)){var j=M.scrollWidth-M.clientWidth;if(j>0&&(M.scrollLeft>0&&v<0||M.scrollLeft<j&&v>0))return!0}M=M.parentNode}return!1}function y(b){if(f(b)){var v=u(b),k={pageX:v.pageX,pageY:v.pageY},M=k.pageX-a.pageX,_=k.pageY-a.pageY;if(p(b.target,M,_))return;i(M,_),a=k;var N=new Date().getTime(),j=N-r;j>0&&(o.x=M/j,o.y=_/j,r=N),n(M,_)&&b.preventDefault()}}function g(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(t.isInitialized){clearInterval(s);return}if(!o.x&&!o.y){clearInterval(s);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(s);return}if(!t.element){clearInterval(s);return}i(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}eo.supportsTouch?(t.event.bind(e,"touchstart",h),t.event.bind(e,"touchmove",y),t.event.bind(e,"touchend",g)):eo.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",h),t.event.bind(e,"pointermove",y),t.event.bind(e,"pointerup",g)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",h),t.event.bind(e,"MSPointerMove",y),t.event.bind(e,"MSPointerUp",g)))}var rye=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},oye={"click-rail":eye,"drag-thumb":tye,keyboard:nye,wheel:iye,touch:aye},bs=function(e,n){var i=this;if(n===void 0&&(n={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(at.main),this.settings=rye();for(var a in n)this.settings[a]=n[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r=function(){return e.classList.add(at.state.focus)},o=function(){return e.classList.remove(at.state.focus)};this.isRtl=si(e).direction==="rtl",this.isRtl===!0&&e.classList.add(at.rtl),this.isNegativeScroll=function(){var f=e.scrollLeft,h=null;return e.scrollLeft=-1,h=e.scrollLeft<0,e.scrollLeft=f,h}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new Zr,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=dd(at.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=dd(at.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=si(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Ye(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Ye(s.borderLeftWidth)+Ye(s.borderRightWidth),Ut(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Ye(s.marginLeft)+Ye(s.marginRight),Ut(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=dd(at.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=dd(at.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=si(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Ye(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?J2e(this.scrollbarY):null,this.railBorderYWidth=Ye(u.borderTopWidth)+Ye(u.borderBottomWidth),Ut(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Ye(u.marginTop)+Ye(u.marginBottom),Ut(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(f){return oye[f](i)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(f){return i.onScroll(f)}),xi(this)};bs.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Ut(this.scrollbarXRail,{display:"block"}),Ut(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Ye(si(this.scrollbarXRail).marginLeft)+Ye(si(this.scrollbarXRail).marginRight),this.railYMarginHeight=Ye(si(this.scrollbarYRail).marginTop)+Ye(si(this.scrollbarYRail).marginBottom),Ut(this.scrollbarXRail,{display:"none"}),Ut(this.scrollbarYRail,{display:"none"}),xi(this),cd(this,"top",0,!1,!0),cd(this,"left",0,!1,!0),Ut(this.scrollbarXRail,{display:""}),Ut(this.scrollbarYRail,{display:""}))},bs.prototype.onScroll=function(e){this.isAlive&&(xi(this),cd(this,"top",this.element.scrollTop-this.lastScrollTop),cd(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},bs.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Jr(this.scrollbarX),Jr(this.scrollbarY),Jr(this.scrollbarXRail),Jr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},bs.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const sye=d.defineComponent({__name:"PerfectScrollbar",props:{tag:{default:"div"},options:{default:()=>({})}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(t,{expose:e,emit:n}){const i=t,a=n,r=d.ref(null),o=d.ref(null);d.watch(()=>i.options,()=>{u(),s()},{deep:!0}),d.onMounted(()=>{r.value&&s()}),d.onBeforeUnmount(()=>{u()});function s(){r.value&&(o.value=new bs(r.value,i.options),p())}function u(){o.value&&(p(!1),o.value.destroy(),o.value=null)}const f={scroll:h("scroll"),"ps-scroll-y":h("ps-scroll-y"),"ps-scroll-x":h("ps-scroll-x"),"ps-scroll-up":h("ps-scroll-up"),"ps-scroll-down":h("ps-scroll-down"),"ps-scroll-left":h("ps-scroll-left"),"ps-scroll-right":h("ps-scroll-right"),"ps-y-reach-start":h("ps-y-reach-start"),"ps-y-reach-end":h("ps-y-reach-end"),"ps-x-reach-start":h("ps-x-reach-start"),"ps-x-reach-end":h("ps-x-reach-end")};function h(y){return function(g){a(y,g)}}function p(y=!0){var g;(g=o.value)!=null&&g.element&&Object.entries(f).forEach(([b,v])=>{var k,M;y?(k=o.value)==null||k.element.addEventListener(b,v):(M=o.value)==null||M.element.removeEventListener(b,v)})}return e({ps:o}),(y,g)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(y.tag),{ref_key:"scrollbar",ref:r,class:"ps"},{default:d.withCtx(()=>[d.renderSlot(y.$slots,"default")]),_:3},512))}}),lye=["data-testid"],yh=d.defineComponent({__name:"Scrollbar",props:{options:{},tag:{},class:{},style:{},thrumbStyle:{},railStyle:{},dataTestid:{default:"ScrollBar"}},emits:["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"],setup(t,{expose:e,emit:n}){const i=t,a=d.ref(null),r=n,o=p=>{r("scroll",p)},s={attributes:!0,attributeFilter:["style"]},u=(p,y)=>g=>{for(const b of g)b.type==="attributes"&&b.attributeName==="style"&&p.style.right!==y&&(p.style.right=y)},f=()=>{var M,_,N,j,I,O,A,H,G,Y,U,ee,ye,be,fe,se,ne,_e,Xe,Jt,wt,gi,Ai,Fn;if(!a.value)return;const p=a.value.querySelector(".ps__thumb-y"),y=a.value.querySelector(".ps__thumb-x"),g=a.value.querySelector(".ps__rail-y"),b=a.value.querySelector(".ps__rail-x");p.style.background=((_=(M=i.thrumbStyle)==null?void 0:M.y)==null?void 0:_.background)||"#77a6ff",p.style.width=((j=(N=i.thrumbStyle)==null?void 0:N.y)==null?void 0:j.width)||"6px",p.style.right="0px",y.style.background=((O=(I=i.thrumbStyle)==null?void 0:I.x)==null?void 0:O.background)||"#77a6ff",y.style.width=((H=(A=i.thrumbStyle)==null?void 0:A.x)==null?void 0:H.width)||"6px",y.style.right="0px",g.style.background=((Y=(G=i.railStyle)==null?void 0:G.y)==null?void 0:Y.background)||"#F5F5F5",g.style.width=((ee=(U=i.thrumbStyle)==null?void 0:U.y)==null?void 0:ee.width)||"6px",g.style.right=((be=(ye=i.railStyle)==null?void 0:ye.y)==null?void 0:be.right)||"0px",b.style.background=((se=(fe=i.railStyle)==null?void 0:fe.x)==null?void 0:se.background)||"#F5F5F5",b.style.width=((_e=(ne=i.thrumbStyle)==null?void 0:ne.x)==null?void 0:_e.width)||"6px",b.style.right=((Jt=(Xe=i.railStyle)==null?void 0:Xe.x)==null?void 0:Jt.right)||"0px";const v=new MutationObserver(u(g,((gi=(wt=i.railStyle)==null?void 0:wt.y)==null?void 0:gi.right)||"0px")),k=new MutationObserver(u(b,((Fn=(Ai=i.railStyle)==null?void 0:Ai.x)==null?void 0:Fn.right)||"0px"));v.observe(g,s),k.observe(b,s)};return d.watch(()=>i,()=>{f()},{immediate:!0}),e({scrollToTop:()=>{a.value&&(a.value.children[0].scrollTop=0)}}),d.onMounted(()=>{f()}),(p,y)=>(d.openBlock(),d.createElementBlock("div",{ref_key:"scrollbar",ref:a,"data-testid":i.dataTestid},[d.createVNode(d.unref(sye),{onScroll:o,options:i.options,tag:i.tag,class:d.normalizeClass(i.class),style:d.normalizeStyle(i.style),"data-testid":`${i.dataTestid}-Scroll`,ref_key:"scrollbar",ref:a},{default:d.withCtx(()=>[d.renderSlot(p.$slots,"default")]),_:3},8,["options","tag","class","style","data-testid"])],8,lye))}});function zt(t,e=document.documentElement){for(const[n,i]of Object.entries(t))e.style.setProperty(n,String(i))}const dye=()=>{const t=d.ref(0),e=d.ref([]),n=d.ref(null),i=u=>{e.value.push(u),r(u),o()},a=()=>{e.value.pop(),s(),e.value.length?r(e.value[e.value.length-1]):n.value=null},r=u=>{n.value=u},o=()=>{t.value+=1},s=()=>{t.value>0&&(t.value-=1)};return{countOpenedModal:t,openedModals:e,lastOpenedModal:n,addOpenedModal:i,reduceOpenedModal:a,setLastOpenedModal:r,incrementCountModal:o,decrementCountModal:s}},uye=["data-testid"],cye=["data-testid"],fye=oe(d.defineComponent({__name:"Modal",props:{open:{type:Boolean},position:{default:"right"},width:{},height:{},dataTestid:{default:"Modal"}},emits:["close","unmounted"],setup(t,{expose:e,emit:n}){const{lastOpenedModal:i,addOpenedModal:a,reduceOpenedModal:r}=dye(),o=t,s=d.ref(null),u=d.useAttrs(),f=d.ref(!1),h=d.computed(()=>({width:o.width,height:o.height})),p=n;let y=0;const g=()=>{y=Date.now(),s.value&&(o.open?(s.value.showModal(),a(s.value)):b())},b=()=>{Date.now()-y<300||(r(),p("close"))},v=()=>{var j;(j=s.value)==null||j.close(),document.documentElement.focus(),_()},k=j=>{j.key==="Escape"&&i.value===s.value&&b()},M=()=>{if(document.querySelectorAll(".modal-yui-kit").length===1)return window.innerWidth-document.documentElement.clientWidth;{const I=document.body.style.paddingRight;return Number(I.replace(/\D/g,""))||0}},_=()=>{document.querySelectorAll(".modal-yui-kit").length===0&&zt({overflow:"","padding-right":""},document.body)},N=j=>{j.target===s.value&&b()};return e({closeDialog:v}),d.onMounted(()=>{d.watchEffect(()=>{o.open!==f.value&&(g(),f.value=o.open)}),s.value&&s.value.addEventListener("cancel",I=>{I.preventDefault()});const j=M();zt({overflow:"hidden","padding-right":`${j}px`},document.body),document.addEventListener("keydown",k)}),d.onUnmounted(()=>{_(),document.removeEventListener("keydown",k),p("unmounted")}),(j,I)=>(d.openBlock(),d.createElementBlock("dialog",d.mergeProps({ref_key:"dialog",ref:s},d.unref(u),{class:["modal-yui-kit",`modal-yui-kit_${o.position}`],"data-testid":o.dataTestid,onClick:d.withModifiers(N,["self","left"])}),[d.createElementVNode("div",{class:"modal-yui-kit__modal-content",style:d.normalizeStyle(h.value),"data-testid":`${o.dataTestid}-ModalContent`},[d.renderSlot(j.$slots,"default",{},void 0,!0)],12,cye)],16,uye))}}),[["__scopeId","data-v-14e41eb3"]]);var fd=(t=>(t.right="right",t.fade="fade",t))(fd||{});const hye=d.defineComponent({__name:"ModalAnimated",props:{animateType:{default:fd.right},open:{type:Boolean},position:{default:"right"},width:{},height:{},dataTestid:{default:"Modal"}},emits:["close","unmounted","end-animation"],setup(t,{emit:e}){const n=t,i=e,a=d.computed(()=>{switch(n.animateType){case fd.fade:return"fade";case fd.right:return"modal";default:return"modal"}}),r=d.ref(null),o=d.reactive({function:()=>{}}),s=()=>{p()},u=()=>{i("unmounted")},f=()=>{p()},h=()=>{o.function(),i("end-animation")},p=()=>{var g;r.value&&(o.function=(g=r.value)==null?void 0:g.closeDialog)},y=()=>{p(),i("close")};return(g,b)=>(d.openBlock(),d.createBlock(d.Transition,{name:a.value,onAfterLeave:h,onBeforeLeave:f,onAfterEnter:s},{default:d.withCtx(()=>[n.open?(d.openBlock(),d.createBlock(fye,{key:0,ref_key:"modalRef",ref:r,open:n.open,position:n.position,width:n.width,height:n.height,"data-testid":n.dataTestid,onClose:y,onUnmounted:u},{default:d.withCtx(()=>[d.renderSlot(g.$slots,"default",{},void 0,!0)]),_:3},8,["open","position","width","height","data-testid"])):d.createCommentVNode("",!0)]),_:3},8,["name"]))}}),hd=oe(hye,[["__scopeId","data-v-b1e40efb"]]);var K2=(t=>(t.small="small",t.medium="medium",t.big="big",t))(K2||{}),Q2=(t=>(t.circled="circled",t.rounded="rounded",t))(Q2||{});const mye=["data-testid","checked","disabled"],pye=d.defineComponent({__name:"Checkbox",props:{size:{default:K2.medium},circular:{default:Q2.rounded},checked:{type:Boolean},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Checkbox"}},emits:["change","update:modelValue"],setup(t,{emit:e}){const n=t,i=e,a=d.reactive({isChecked:n.modelValue});d.watchEffect(()=>{a.isChecked=n.modelValue});const r=()=>{a.isChecked=!a.isChecked,i("change",a.isChecked),i("update:modelValue",a.isChecked)};return(o,s)=>(d.openBlock(),d.createElementBlock("input",{type:"checkbox",class:d.normalizeClass(`checkbox-yui-kit checkbox-yui-kit_${n.size} checkbox-yui-kit_${n.circular}`),"data-testid":`${n.dataTestid}`,tabindex:"0",onChange:r,checked:a.isChecked,disabled:n.disabled,onKeyup:d.withKeys(r,["enter"])},null,42,mye))}}),bh=oe(pye,[["__scopeId","data-v-5b8c9f76"]]);var ir=(t=>(t.profile="profile",t.theme="theme",t.options="options",t.exit="exit",t.help="help",t))(ir||{});const gye=["data-testid"],yye=["src","alt"],bye=["src"],wye={key:2,class:"avatar-yui-kit__text"},md=oe(d.defineComponent({__name:"Avatar",props:{initials:{},url:{},isIcon:{type:Boolean},alt:{},defaultImage:{},dataTestid:{}},setup(t){const e=t,n=d.ref(!1);d.watch(()=>e.url,()=>{n.value=!1});const i=()=>e.initials?e.initials.charAt(0):"";return(a,r)=>(d.openBlock(),d.createElementBlock("div",{"data-testid":e.dataTestid,class:"avatar-yui-kit"},[e.url&&!n.value?(d.openBlock(),d.createElementBlock("img",{key:0,src:e.url,alt:e.alt,class:"avatar-yui-kit__image",onError:r[0]||(r[0]=o=>n.value=!0)},null,40,yye)):e.defaultImage?(d.openBlock(),d.createElementBlock("img",{key:1,src:e.defaultImage,class:"avatar-yui-kit__image"},null,8,bye)):(d.openBlock(),d.createElementBlock("div",wye,d.toDisplayString(i()),1))],8,gye))}}),[["__scopeId","data-v-09e82bca"]]),vye=["data-testid"],kye={class:"menu-yui-kit__wrapper"},Mye={class:"menu-yui-kit__names"},Cye={class:"menu-yui-kit__name"},xye={class:"menu-yui-kit__role"},Sye={key:0,class:"menu-yui-kit__list"},_ye={class:"list-yui-kit"},Tye=["data-testid"],Pye=["data-testid"],Eye=["data-testid"],Nye=["data-testid"],Dye=["data-testid"],jye=["data-type"],wh=oe(d.defineComponent({__name:"UserMenu",props:{closeAfterClick:{type:Boolean},user:{},languages:{},isBlackTheme:{type:Boolean},dataTestid:{default:"UserMenu"}},emits:["click","themeChange","languageSwitch"],setup(t,{emit:e}){const n=t,i=d.reactive({isShow:!1,option:"",isBlackTheme:n.isBlackTheme??!1}),a=e,r=d.computed(()=>({"menu-yui-kit__heading":!0,"active-yui-kit":i.isShow})),o=d.computed(()=>i.isBlackTheme?ie.dark:ie.light),s=d.ref(null),u=b=>{s.value&&!s.value.contains(b.target)&&(i.isShow=!1)};d.onMounted(()=>{document.addEventListener("click",u)}),d.onBeforeUnmount(()=>{document.removeEventListener("click",u)});const f=b=>{b!==void 0?(i.option=b,a("click",b),n.closeAfterClick&&(i.isShow=!1)):console.error("Option type is undefined")},h=d.computed(()=>i.isShow?ie.chevronUp:ie.chevronDown),p=()=>{i.isShow=!i.isShow},y=b=>{n.closeAfterClick&&(i.isShow=!1),a("themeChange",b),i.isBlackTheme=b},g=b=>{n.closeAfterClick&&(i.isShow=!1),a("languageSwitch",b)};return(b,v)=>{var k,M,_;return d.openBlock(),d.createElementBlock("div",{class:"menu-yui-kit",ref_key:"menuRef",ref:s,"data-testid":n.dataTestid},[d.createElementVNode("div",kye,[d.createVNode(md,{class:"menu-yui-kit__avatar",url:n.user.avatar,alt:"user-avatar","data-testid":`${n.dataTestid}-Avatar`},null,8,["url","data-testid"]),d.createElementVNode("div",{class:d.normalizeClass(r.value),onClick:p},[d.createElementVNode("div",Mye,[d.createElementVNode("p",Cye,d.toDisplayString(n.user.name),1),d.createElementVNode("p",xye,d.toDisplayString(n.user.role),1)]),d.createVNode(pt,{type:d.unref(qe).ghost,class:"menu-yui-kit__button","data-testid":`${n.dataTestid}-Toggle`},{default:d.withCtx(()=>[d.createVNode(ce,{class:"menu-yui-kit__button-icon",name:h.value},null,8,["name"])]),_:1},8,["type","data-testid"])],2)]),i.isShow?(d.openBlock(),d.createElementBlock("div",Sye,[d.createElementVNode("ul",_ye,[d.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[0]||(v[0]=N=>f(d.unref(ir).profile)),"data-testid":`${n.dataTestid}-Profile-Item`},[d.createVNode(ce,{name:d.unref(ie).profile},null,8,["name"]),v[5]||(v[5]=d.createElementVNode("span",{class:"list-yui-kit__item-text"},"Профиль",-1))],8,Tye),d.createElementVNode("li",{class:"list-yui-kit__item","data-testid":`${n.dataTestid}-Theme-Item`},[d.createVNode(ce,{name:o.value},null,8,["name"]),d.createElementVNode("span",{class:"list-yui-kit__item-text",onClick:v[1]||(v[1]=N=>f(d.unref(ir).theme))},"Темная тема"),d.createVNode(ld,{type:d.unref(Qr).small,onChange:y,checked:i.isBlackTheme,"data-testid":`${n.dataTestid}-Theme-Toggle`},null,8,["type","checked","data-testid"])],8,Pye),d.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[2]||(v[2]=N=>f(d.unref(ir).options)),"data-testid":`${n.dataTestid}-Settings-Item`},[d.createVNode(ce,{name:d.unref(ie).settings},null,8,["name"]),v[6]||(v[6]=d.createElementVNode("span",{class:"list-yui-kit__item-text"},"Настройки",-1))],8,Eye),d.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[3]||(v[3]=N=>f(d.unref(ir).exit)),"data-testid":`${n.dataTestid}-Exit-Item`},[d.createVNode(ce,{name:d.unref(ie).exit},null,8,["name"]),v[7]||(v[7]=d.createElementVNode("span",{class:"list-yui-kit__item-text"},"Выход",-1))],8,Nye),d.createElementVNode("li",{class:"list-yui-kit__item",onClick:v[4]||(v[4]=N=>f(d.unref(ir).help)),"data-testid":`${n.dataTestid}-Help-Item`},[d.createVNode(ce,{name:d.unref(ie).help},null,8,["name"]),d.createElementVNode("span",{class:"list-yui-kit__item-text","data-type":d.unref(ir).help},"Помощь",8,jye)],8,Dye)]),(k=n.languages)!=null&&k.items?(d.openBlock(),d.createBlock(Sl,{key:0,items:(M=n.languages)==null?void 0:M.items,defaultValue:(_=n.languages)==null?void 0:_.defaultValue,onChange:g,"data-testid":`${n.dataTestid}-Language-Switch`},null,8,["items","defaultValue","data-testid"])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0)],8,vye)}}}),[["__scopeId","data-v-92ca4d70"]]);var pd=(t=>(t.default="default",t.minor="minor",t))(pd||{});const Aye=["data-testid"],Wye=["data-testid"],Iye=["data-testid"],zye=["data-testid","placeholder","required","maxlength","readonly"],Oye=d.defineComponent({__name:"Textarea",props:{placeholder:{},inputMessage:{},required:{type:Boolean,default:!1},maxlength:{},modelValue:{default:""},readonly:{type:Boolean,default:!1},type:{default:pd.default},modelModifiers:{default:()=>({})},dataTestid:{default:"Textarea"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,i=e,a=d.reactive({isPressed:!1,inputElement:n.modelValue}),r=d.computed(()=>[{pressed:a.isPressed,readonly:n.readonly,[n.type]:!0}]),o=()=>{i("update:modelValue",a.inputElement)},s=()=>{n.readonly||(a.isPressed=!0)},u=()=>{a.isPressed=!1};return d.watch(()=>n.modelValue,f=>{a.inputElement=f}),(f,h)=>(d.openBlock(),d.createElementBlock("fieldset",{class:d.normalizeClass(["input-yui-kit",r.value]),onFocusout:u,"data-testid":n.dataTestid},[n.inputMessage?(d.openBlock(),d.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${n.dataTestid}-Legend`},[d.createTextVNode(d.toDisplayString(n.inputMessage)+" ",1),n.required?(d.openBlock(),d.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${n.dataTestid}-Legend-Star`},"*",8,Iye)):d.createCommentVNode("",!0)],8,Wye)):d.createCommentVNode("",!0),d.withDirectives(d.createElementVNode("textarea",{"onUpdate:modelValue":h[0]||(h[0]=p=>a.inputElement=p),onFocus:s,onInput:o,"data-testid":`${n.dataTestid}-Textarea`,class:"input-yui-kit__input",placeholder:n.placeholder,required:n.required,maxlength:n.maxlength,readonly:n.readonly},null,40,zye),[[d.vModelText,a.inputElement]])],42,Aye))}}),vh=oe(Oye,[["__scopeId","data-v-ac7acfbd"]]);var J2=(t=>(t.img="img",t.pdf="pdf",t.docx="docx",t))(J2||{});const Lye=["data-testid"],$ye=["data-testid"],Hye=["src","alt","data-testid"],Bye=["data-testid"],Rye=["data-testid"],Vye=["data-testid"],kh=oe(d.defineComponent({__name:"Picture",props:{type:{},alt:{},url:{},caption:{},dataTestid:{default:"Picture"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createElementBlock("figure",{class:"picture-yui-kit","data-testid":e.dataTestid},[e.type==d.unref(J2).img?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createElementVNode("picture",{class:"picture-yui-kit__picture","data-testid":`${e.dataTestid}-Picture`},[d.createElementVNode("img",{class:"picture-yui-kit__picture__image",src:e.url,alt:e.alt,"data-testid":`${e.dataTestid}-Picture-Img`},null,8,Hye)],8,$ye),d.createElementVNode("figcaption",{class:"picture-yui-kit__picture__caption","data-testid":`${e.dataTestid}-Caption`},d.toDisplayString(e.caption),9,Bye)],64)):(d.openBlock(),d.createElementBlock("div",{key:1,class:"picture-yui-kit__caption","data-testid":`${e.dataTestid}-Caption-Box`},[d.createElementVNode("h4",{class:"picture-yui-kit__caption__title","data-testid":`${e.dataTestid}-Caption-Title`},d.toDisplayString(e.caption),9,Vye)],8,Rye))],8,Lye))}}),[["__scopeId","data-v-6a079c40"]]);var Z2=(t=>(t.success="success",t.warning="warning",t.error="error",t.info="info",t))(Z2||{}),ey=(t=>(t.success="Успешно",t.warning="Предупреждение",t.error="Ошибка",t.info="Уведомление",t))(ey||{}),ty=(t=>(t[t.success=ie.checkbox]="success",t[t.warning=ie.alertTriangle]="warning",t[t.error=ie.exitCircle]="error",t[t.info=ie.info]="info",t))(ty||{});const Yye=["id","data-testid"],Fye=["data-testid"],Xye=["data-testid"],Uye=["data-testid"],qye=["data-testid"],Gye=d.defineComponent({__name:"Notification",props:{type:{default:Z2.info},title:{},pushKey:{},description:{default:""},timeout:{default:3},showPopover:{type:Boolean,default:!0},dataTestid:{default:"Notification"}},emits:["close"],setup(t,{expose:e,emit:n}){const i=t,a=n,r=d.ref(null);oh(r,"toggle",()=>{i.timeout>0&&setTimeout(()=>{var f;return(f=r.value)==null?void 0:f.hidePopover()},i.timeout*1e3)});const o=()=>(a("close"),"hide"),s=()=>{var f;(f=r.value)==null||f.showPopover()},u=d.reactive({message:{icon:ty[i.type],title:i.title||ey[i.type],description:i.description}});return d.onMounted(()=>{var f;i.showPopover&&((f=r.value)==null||f.showPopover())}),e({showPopover:s}),(f,h)=>(d.openBlock(),d.createElementBlock("div",{popover:"manual",id:i.pushKey.toString(),class:d.normalizeClass(`push-notification-yui-kit push-notification-yui-kit_${i.type}`),"data-testid":i.dataTestid,ref_key:"popover",ref:r},[d.createElementVNode("div",{class:"notification-yui-kit","data-testid":`${i.dataTestid}-Notification`},[d.createElementVNode("div",{class:"notification-yui-kit__block","data-testid":`${i.dataTestid}-Notification-Block`},[d.createVNode(ce,{name:u.message.icon,class:"notification-yui-kit__block-icon","data-testid":`${i.dataTestid}-Notification-Icon`},null,8,["name","data-testid"]),d.createElementVNode("h4",{class:"notification-yui-kit__block-title","data-testid":`${i.dataTestid}-Notification-Title`},d.toDisplayString(u.message.title),9,Uye),d.createElementVNode("span",{class:"notification-yui-kit__block-text","data-testid":`${i.dataTestid}-Notification-Description`},d.toDisplayString(u.message.description),9,qye)],8,Xye),d.createVNode(pt,{class:"notification-yui-kit__exit",type:d.unref(qe).ghost,popovertarget:i.pushKey.toString(),popovertargetaction:o,"data-testid":`${i.dataTestid}-Notification-Button`},{default:d.withCtx(()=>[d.createVNode(ce,{name:d.unref(ie).crossSmall,"data-testid":`${i.dataTestid}-Notification-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","popovertarget","data-testid"])],8,Fye)],10,Yye))}}),Mh=oe(Gye,[["__scopeId","data-v-42a4a42d"]]),Ch=d.defineComponent({__name:"CopyIcon",props:{content:{default:""},dataTestid:{default:"CopyIcon"}},setup(t){const e=t,n=()=>{const i=e.content,a=document.createElement("textarea");a.value=i;const r=document.querySelectorAll("dialog[open]"),o=r.length?r[r.length-1]:null;o?o.append(a):document.body.append(a),a.select(),a.setSelectionRange(0,99999),document.execCommand("copy"),a.remove()};return(i,a)=>(d.openBlock(),d.createBlock(ce,{class:"copy-icon-yui-kit",name:d.unref(ie).copy,"data-testid":e.dataTestid,onClick:n},null,8,["name","data-testid"]))}}),Kye=["data-testid"],Qye=["data-testid"],Jye=["data-testid"],Zye=["data-testid"],e4e=["data-testid"],xh=oe(d.defineComponent({__name:"Loader",props:{title:{default:"Загрузка..."},dataTestid:{default:"Loader"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createElementBlock("div",{class:"loader","data-testid":e.dataTestid},[d.createElementVNode("div",{class:"loader__area","data-testid":`${e.dataTestid}-Area`},[d.createElementVNode("div",{class:"loader__circle loader__circle--light-blue","data-testid":`${e.dataTestid}-Loader-LightBlue1`},null,8,Jye),d.createElementVNode("div",{class:"loader__circle loader__circle--blue","data-testid":`${e.dataTestid}-Loader-LightBlue2`},null,8,Zye)],8,Qye),e.title?(d.openBlock(),d.createElementBlock("span",{key:0,class:"loader__span","data-testid":`${e.dataTestid}-Loader-Title`},d.toDisplayString(e.title),9,e4e)):d.createCommentVNode("",!0)],8,Kye))}}),[["__scopeId","data-v-f57f6084"]]),t4e=["data-testid"],n4e=["data-testid"],i4e=["data-testid"],a4e=["data-testid"],r4e=["data-testid"],o4e=["data-testid"],s4e=["data-testid"],l4e=["data-testid"],d4e=["data-testid"],u4e=["data-testid"],c4e=["data-testid"],f4e=["data-testid"],h4e=["data-testid"],m4e=["data-testid"],p4e=d.defineComponent({__name:"FilterTag",props:{title:{},iconName:{default:ie.filter},options:{default:()=>[]},selectedValues:{default:()=>[]},multiply:{type:Boolean,default:!0},maxShowCount:{default:5},showClearButton:{type:Boolean,default:!1},disallowNull:{type:Boolean,default:!1},dataTestid:{default:"FilterTag"}},emits:["change"],setup(t,{emit:e}){const n=t,i=d.reactive({isShow:!1,options:[]}),a=e,r=d.computed(()=>({"filter-yui-kit__wrapper":!0,"active-yui-kit":i.isShow})),o=()=>i.isShow=!i.isShow,s=()=>{i.isShow=!1},u=d.computed(()=>i.options.filter(g=>g.chose)),f=d.computed(()=>i.options.filter(g=>!g.chose)),h=g=>{n.disallowNull&&g.chose||(g.chose=!g.chose,n.multiply||(i.options=i.options.map(b=>({...b,chose:g.value===b.value&&g.chose}))),i.options.every(b=>b.chose)&&(i.options=i.options.map(b=>({...b,chose:!1}))),a("change",u.value.map(b=>b.value)),i.isShow=!1)},p=()=>{i.options=i.options.map(g=>({...g,chose:!1})),i.isShow=!1,a("change",[])},y=()=>{i.options=n.options.map(g=>({...g,chose:n.selectedValues.includes(g.value)})),i.options.every(g=>g.chose)&&(i.options=i.options.map(g=>({...g,chose:!1})))};return d.watch(()=>[n.options,n.selectedValues],y),d.watch(()=>n.selectedValues,y),d.onMounted(y),(g,b)=>d.withDirectives((d.openBlock(),d.createElementBlock("div",{class:"filter-yui-kit","data-testid":n.dataTestid},[d.createElementVNode("div",{class:d.normalizeClass(r.value),onClick:o,"data-testid":`${n.dataTestid}-Wrapper`},[n.iconName?(d.openBlock(),d.createBlock(ce,{key:0,name:n.iconName,"data-testid":`${n.dataTestid}-Icon`},null,8,["name","data-testid"])):d.createCommentVNode("",!0),n.title?(d.openBlock(),d.createElementBlock("span",{key:1,"data-testid":`${n.dataTestid}-Title`},d.toDisplayString(n.title),9,i4e)):d.createCommentVNode("",!0),!u.value.length&&!n.disallowNull?(d.openBlock(),d.createBlock(Mt,{key:2,disabled:"",text:"Все","data-testid":`${n.dataTestid}-Badges-All`},null,8,["data-testid"])):(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:3},d.renderList(u.value.filter((v,k)=>k<n.maxShowCount),(v,k)=>(d.openBlock(),d.createBlock(Mt,{key:v.value,type:v.type,disabled:"","data-testid":`${n.dataTestid}-Badges${k}`,text:v.label},null,8,["type","data-testid","text"]))),128)),n.maxShowCount<u.value.length?(d.openBlock(),d.createElementBlock("div",{key:4,class:"filter-yui-kit__counter","data-testid":`${n.dataTestid}-MaxShowCount-Counter`},[d.createTextVNode(" +"+d.toDisplayString(u.value.length-n.maxShowCount)+" ",1),d.createElementVNode("div",{class:"filter-yui-kit__counter-content","data-testid":`${n.dataTestid}-MaxShowCount-Content`},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.value.filter((v,k)=>k>=n.maxShowCount),(v,k)=>(d.openBlock(),d.createBlock(Mt,{key:v.value,type:v.type,disabled:"",text:v.label,"data-testid":`${n.dataTestid}-MaxShow-Badges${k}`},null,8,["type","text","data-testid"]))),128))],8,r4e)],8,a4e)):d.createCommentVNode("",!0),n.showClearButton&&u.value.length>0?(d.openBlock(),d.createElementBlock("button",{key:5,type:"button",class:"filter-yui-kit__close",onClick:d.withModifiers(p,["stop"]),"data-testid":`${n.dataTestid}-Filter-CloseButton`},[d.createVNode(ce,{name:d.unref(ie).crossSmall,"data-testid":`${n.dataTestid}-CloseButton-Icon`},null,8,["name","data-testid"])],8,o4e)):d.createCommentVNode("",!0)],10,n4e),i.isShow?(d.openBlock(),d.createElementBlock("div",{key:0,class:"filter-yui-kit__select-wrapper","data-testid":`${n.dataTestid}-Select-Wrapper`},[d.createElementVNode("ul",{class:"filter-yui-kit__select-list selected-yui-kit","data-testid":`${n.dataTestid}-Select-List`},[u.value.length?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${n.dataTestid}-Select-Item`},[d.createVNode(Mt,{disabled:"",text:"Все","data-testid":`${n.dataTestid}-Select-Badges`},null,8,["data-testid"])],8,d4e)),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.value,(v,k)=>(d.openBlock(),d.createElementBlock("li",{class:"filter-yui-kit__select-item",key:v.value,"data-testid":`${n.dataTestid}-Select-Item${k}`},[d.createVNode(Mt,{disabled:!0,choosed:!n.disallowNull&&v.chose,type:v.type,onClick:M=>h(v),text:v.label,"data-testid":`${n.dataTestid}-Select-Badges${k}`},null,8,["choosed","type","onClick","text","data-testid"])],8,u4e))),128))],8,l4e),d.createElementVNode("div",{class:"filter-yui-kit__select__divider","data-testid":`${n.dataTestid}-Select-Divider`},null,8,c4e),i.isShow?(d.openBlock(),d.createElementBlock("ul",{key:0,class:"filter-yui-kit__select-list","data-testid":`${n.dataTestid}-Select-List`},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(f.value,(v,k)=>(d.openBlock(),d.createElementBlock("li",{class:"filter-yui-kit__select-item",key:v.value,"data-testid":`${n.dataTestid}-Select-List${k}`},[d.createVNode(Mt,{disabled:!0,choosed:!1,type:v.type,text:v.label,"data-testid":`${n.dataTestid}-Select-Badges${k}`,onClick:M=>h(v)},null,8,["type","text","data-testid","onClick"])],8,h4e))),128)),t.disallowNull?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("li",{key:0,class:"filter-yui-kit__select-item","data-testid":`${n.dataTestid}-Select-Item`},[u.value.length?(d.openBlock(),d.createBlock(Mt,{key:0,disabled:"","data-testid":`${n.dataTestid}-Select-Badges`,text:"Все",onClick:p},null,8,["data-testid"])):d.createCommentVNode("",!0)],8,m4e))],8,f4e)):d.createCommentVNode("",!0)],8,s4e)):d.createCommentVNode("",!0)],8,t4e)),[[d.unref(Vc),s,void 0,{bubble:!0}]])}}),Sh=oe(p4e,[["__scopeId","data-v-9a93bcc4"]]),g4e=["data-testid"],y4e=["data-testid"],b4e=["data-testid"],w4e=["data-testid"],_h=oe(d.defineComponent({__name:"CircularProgress",props:{percent:{},dataTestid:{default:"CircularProgress"}},setup(t){const e=t,n=()=>{const i=Math.min(Math.max(e.percent,0),100),a=i/100*360;if(i<=25)return`polygon(50% 50%, 50% 0%, calc(50% + 50% * cos(${a-90}deg)) 0,calc(50% + 50% * cos(${a-90}deg)) calc(50% + 50% * sin(${a-90}deg)), 50% 50%)`;if(i<=50)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% calc(50% + 50% * sin(${a-90}deg)), calc(50% + 50% * cos(${a-90}deg)) calc(50% + 50% * sin(${a-90}deg)), 50% 50%)`;if(i<=75)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,
1296
1296
  calc(50% + 50% * cos(${a-90}deg)) 100%, calc(50% + 50% * cos(${a-90}deg)) calc(50% + 50% * sin(${a-90}deg)), 50% 50%)`;if(i<=100)return`polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%,0% 100%, 0% calc(50% + 50% * sin(${a-90}deg)), 50% 50%)`};return(i,a)=>e.percent<100?(d.openBlock(),d.createElementBlock("div",{key:0,class:"pie-chart","data-testid":`${e.dataTestid}-PieChart`},[d.createElementVNode("div",{class:"pie-chart-border",style:d.normalizeStyle({"border-color":e.percent<50?"#ef9b8f":"#ffcc00"}),"data-testid":`${e.dataTestid}-PieChart-Border`},[d.createElementVNode("div",{class:"sector",style:d.normalizeStyle({clipPath:n(),"background-color":e.percent<50?"#ef9b8f":"#ffcc00"}),"data-testid":`${e.dataTestid}-PieChart-Sector`},null,12,b4e)],12,y4e)],8,g4e)):(d.openBlock(),d.createElementBlock("svg",{key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","data-testid":`${e.dataTestid}-Icon`,xmlns:"http://www.w3.org/2000/svg"},[...a[0]||(a[0]=[d.createElementVNode("path",{d:"M8 1C4.136 1 1 4.136 1 8C1 11.864 4.136 15 8 15C11.864 15 15 11.864 15 8C15 4.136 11.864 1 8 1ZM8 13.6C4.906 13.6 2.4 11.094 2.4 8C2.4 4.906 4.906 2.4 8 2.4C11.094 2.4 13.6 4.906 13.6 8C13.6 11.094 11.094 13.6 8 13.6Z",fill:"#3BC648"},null,-1),d.createElementVNode("circle",{cx:"8",cy:"8",r:"4",transform:"rotate(-180 8 8)",fill:"#3BC648"},null,-1),d.createElementVNode("path",{d:"M10 6L7.5 9.83935L6 8.5",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],8,w4e))}}),[["__scopeId","data-v-e50e4774"]]),v4e=["data-testid","aria-label"],k4e=["data-testid"],ws=oe(d.defineComponent({name:"Tooltip",__name:"Tooltip",props:{hint:{},isShow:{type:Boolean,default:!1},isCanShow:{type:Boolean,default:!0},position:{default:"bottom-center"},size:{default:"small"},type:{default:"black"},hintGap:{},hintClass:{default:""},dataTestid:{default:"Tooltip"}},setup(t){const e=t,n=d.ref(null),i=d.ref(null),a=d.computed(()=>[{"tooltip-yui-kit__hint_show":e.isShow||o.isShow,"tooltip-yui-kit__hint_bottom-center":e.position==="bottom-center","tooltip-yui-kit__hint_bottom-left":e.position==="bottom-left","tooltip-yui-kit__hint_bottom-right":e.position==="bottom-right","tooltip-yui-kit__hint_top-center":e.position==="top-center","tooltip-yui-kit__hint_top-left":e.position==="top-left","tooltip-yui-kit__hint_top-right":e.position==="top-right","tooltip-yui-kit__hint_left-top":e.position==="left-top","tooltip-yui-kit__hint_left-center":e.position==="left-center","tooltip-yui-kit__hint_left-bottom":e.position==="left-bottom","tooltip-yui-kit__hint_right-top":e.position==="right-top","tooltip-yui-kit__hint_right-center":e.position==="right-center","tooltip-yui-kit__hint_right-bottom":e.position==="right-bottom","tooltip-yui-kit__hint_small":e.size==="small","tooltip-yui-kit__hint_medium":e.size==="medium","tooltip-yui-kit__hint_large":e.size==="large","tooltip-yui-kit__hint_black":e.type==="black","tooltip-yui-kit__hint_blue":e.type==="blue","tooltip-yui-kit__hint_white":e.type==="white",[e.hintClass]:!0}]),r=d.computed(()=>{var _;const M=(_=n.value)==null?void 0:_.closest("dialog");return M||"body"}),o=d.reactive({isShow:!1}),s=()=>{y()},u=()=>{g()},f=()=>{h()},h=()=>{requestAnimationFrame(()=>{if(!n.value||!i.value||!o.isShow&&!e.isShow)return;const M={"--hint-top":"0","--hint-left":"0","--hint-width":"0","--hint-height":"0","--tooltip-width":"0","--tooltip-height":"0","--hint-visibility":"visible"},_=n.value.getBoundingClientRect(),N=i.value.getBoundingClientRect(),j=window.pageYOffset||document.documentElement.scrollTop,I=window.pageXOffset||document.documentElement.scrollLeft;let O=_.top+j,A=_.left+I;const H=n.value.closest("dialog");if(H){const ye=H.getBoundingClientRect();O=_.top-ye.top,A=_.left-ye.left;const be=H.scrollTop,fe=H.scrollLeft;O+=be,A+=fe}const G=_.width,Y=_.height,U=N.width,ee=N.height;M["--hint-top"]=`${O}px`,M["--hint-left"]=`${A}px`,M["--tooltip-width"]=`${G}px`,M["--tooltip-height"]=`${Y}px`,M["--hint-width"]=`${U}px`,M["--hint-height"]=`${ee}px`,i.value&&zt(M,i.value)})},p=()=>{requestAnimationFrame(()=>{!i.value||e.hintGap===void 0||zt({"--tooltip-hint-gap":e.hintGap},i.value)})};d.watch(()=>e.hintGap,p,{immediate:!0});const y=()=>{o.isShow=!0},g=()=>{o.isShow=!1},b=new MutationObserver(()=>{h()}),v=new ResizeObserver(()=>{var M;(o.isShow||e.isShow)&&!((M=n.value)!=null&&M.matches(":hover"))?g():h()}),k=M=>{b.observe(M,{childList:!0,attributes:!0,characterData:!0}),v.observe(M)};return d.onMounted(()=>{h(),i.value&&k(i.value),n.value&&k(n.value),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h)}),d.onUnmounted(()=>{v.disconnect(),b.disconnect(),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}),(M,_)=>(d.openBlock(),d.createElementBlock("div",{ref_key:"tooltipRef",ref:n,class:"tooltip-yui-kit","data-testid":e.dataTestid,"aria-label":t.hint,onMouseenter:s,onMouseleave:u},[d.renderSlot(M.$slots,"default",{},void 0,!0),t.isCanShow?(d.openBlock(),d.createBlock(d.Teleport,{key:0,to:r.value},[d.createVNode(d.Transition,{name:"hint-animate",onEnter:f},{default:d.withCtx(()=>[t.isShow||o.isShow?(d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"hintRef",ref:i,"data-testid":e.dataTestid,class:d.normalizeClass(["tooltip-yui-kit__hint",a.value])},d.toDisplayString(t.hint),11,k4e)):d.createCommentVNode("",!0)]),_:1})],8,["to"])):d.createCommentVNode("",!0)],40,v4e))}}),[["__scopeId","data-v-2f1a6d22"]]),M4e=["data-testid"],C4e=["data-testid"],x4e=["data-testid"],S4e=["onClick","data-testid"],_4e=d.defineComponent({__name:"Popover",props:{isShow:{type:Boolean},iconName:{default:ie.moreVertical},options:{default:()=>[]},tooltip:{default:""},tooltipPosition:{default:"top-left"},dataTestid:{default:"Popover"}},emits:["close"],setup(t,{emit:e}){const n=t,i=e,a=d.reactive({isShow:!1}),r=d.ref(null),o=d.ref(null),s=d.computed(()=>({"popover-yui-kit__wrapper":!0,"active-yui-kit":a.isShow,"empty-yui-kit":n.options.length===0})),u=()=>a.isShow=!a.isShow,f=()=>{a.isShow=!1,i("close")},h=y=>{y.function(),f()},p=()=>{if(o.value&&r.value&&a.isShow){const y=o.value.getBoundingClientRect();r.value.style.top=`${y.top+y.height+10}px`,r.value.style.left=`${y.left}px`}};return d.watch(()=>a.isShow,p),d.watch(()=>n.isShow,()=>a.isShow=n.isShow),d.onMounted(()=>{p(),window.addEventListener("scroll",f,!0)}),d.onUnmounted(()=>{window.removeEventListener("scroll",f,!0)}),(y,g)=>(d.openBlock(),d.createBlock(ws,{hint:n.tooltip,size:"small",type:"black",position:n.tooltipPosition,"data-testid":n.dataTestid,"is-can-show":!!n.tooltip&&!a.isShow&&n.options.length>0},{default:d.withCtx(()=>{var b;return[d.withDirectives((d.openBlock(),d.createElementBlock("div",{class:"popover-yui-kit","data-testid":`${n.dataTestid}-Popover`},[d.createElementVNode("div",{class:d.normalizeClass(s.value),onClick:u,ref_key:"currentRef",ref:o,"data-testid":`${n.dataTestid}-PopoverShow`},[d.createVNode(ce,{class:"popover-yui-kit__icon",name:n.iconName,width:16,height:16,"data-testid":`${n.dataTestid}-PopoverShow-Icon`},null,8,["name","data-testid"])],10,C4e),(b=n.options)!=null&&b.length?d.withDirectives((d.openBlock(),d.createElementBlock("div",{key:0,class:"popover-yui-kit__options",ref_key:"dropdownRef",ref:r,"data-testid":`${n.dataTestid}-PopoverShow-Options`},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.options,(v,k)=>(d.openBlock(),d.createElementBlock("div",{class:"popover-yui-kit__options__item",style:d.normalizeStyle(v.style),key:k,onClick:d.withModifiers(M=>h(v),["stop"]),"data-testid":`${n.dataTestid}-Item${k}`},d.toDisplayString(v.value),13,S4e))),128))],8,x4e)),[[d.vShow,a.isShow]]):d.createCommentVNode("",!0)],8,M4e)),[[d.unref(Vc),f,void 0,{bubble:!0}]])]}),_:1},8,["hint","position","data-testid","is-can-show"]))}}),Th=oe(_4e,[["__scopeId","data-v-c10542fa"]]),T4e=["colspan","rowspan","data-testid"],to=oe(d.defineComponent({name:"TableTh",__name:"TableTh",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataHeader"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createElementBlock("th",{colspan:t.colspan,rowspan:t.rowspan,"data-testid":e.dataTestid,class:"table-th"},[d.renderSlot(n.$slots,"default",{},void 0,!0)],8,T4e))}}),[["__scopeId","data-v-39ad1e7b"]]),P4e=["data-testid"],vs=oe(d.defineComponent({name:"HeadTableRow",__name:"HeadTableRow",props:{dataTestid:{default:"TableRow"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createElementBlock("tr",{class:"head-table-row","data-testid":e.dataTestid},[d.renderSlot(n.$slots,"default",{},void 0,!0)],8,P4e))}}),[["__scopeId","data-v-b2f1516a"]]),ny=(t,e,n,i)=>{const a=d.ref(!1),r=d.ref(100);let o=0,s=0;const u=d.computed(()=>[{"scroll-wrapper__track_hide":r.value===100,"scroll-wrapper__track_drag":a.value}]),f=d.computed(()=>r.value<100),h=()=>{if(t.value){const M=t.value.clientWidth,_=t.value.scrollWidth;return M>=_?100:M/_*100}return 100},p=()=>{if(!t.value||!e.value||!n.value||!i.value)return;const{scrollLeft:M,scrollWidth:_,clientWidth:N}=t.value,j=_-N;if(j<=0)return;const I=M/j,O=i.value.clientWidth,A=n.value.clientWidth,H=O-A,G=I*H;requestAnimationFrame(()=>{e.value&&zt({"--scroll-bar-left-position":`${G}px`},e.value)})},y=M=>{!t.value||!e.value||(a.value=!0,o=M.clientX,s=t.value.scrollLeft,document.addEventListener("pointermove",g),document.addEventListener("pointerup",b,!0))},g=M=>{if(a.value&&t.value&&n.value){const _=M.clientX-o,N=(t.value.scrollWidth-t.value.clientWidth)/(t.value.clientWidth-n.value.clientWidth);t.value.scrollLeft=s+_*N,p()}},b=()=>{a.value=!1,document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",b,!0)};return{onDrag:g,onTrackClick:M=>{if(t.value&&n.value){const _=M.currentTarget.getBoundingClientRect(),N=M.clientX-_.left,j=n.value.clientWidth,I=_.width;let O=(N-j/2)*((t.value.scrollWidth-t.value.clientWidth)/(I-j));O=Math.max(0,Math.min(O,t.value.scrollWidth-t.value.clientWidth)),t.value.scrollLeft=O,p()}},startDrag:y,getPercentHorizontalView:h,changeBarPosition:p,isDragging:a,scrollHorizontalWidthPercent:r,setHorizontalBarWidth:()=>{if(!t.value||!e.value)return;const M=h();r.value=M,zt({"--scroll-horizontal-bar-width":`${M}%`},e.value)},horizontalTrackClass:u,isExistHorizontalTrack:f}},iy=(t,e,n,i)=>{const a=d.ref(!1),r=d.ref(100);let o=0,s=0;const u=d.computed(()=>[{"scroll-wrapper__track_hide":r.value===100,"scroll-wrapper__track_drag":a.value}]),f=d.computed(()=>r.value<100),h=()=>{if(t.value){const M=t.value.clientHeight,_=t.value.scrollHeight;if(M>=_)return 100;if(M<_)return M/_*100}return 100},p=()=>{if(!t.value||!e.value||!n.value||!i.value)return;const{scrollTop:M,scrollHeight:_,clientHeight:N}=t.value,j=_-N;if(j<=0)return;const I=M/j,O=i.value.clientHeight,A=n.value.clientHeight,H=O-A,G=I*H;requestAnimationFrame(()=>{e.value&&zt({"--scroll-bar-top-postion":`${G}px`},e.value)})},y=M=>{!t.value||!e.value||(a.value=!0,o=M.clientY,s=t.value.scrollTop,document.addEventListener("pointermove",g),document.addEventListener("pointerup",b))},g=M=>{if(a.value&&t.value&&n.value){const _=M.clientY-o,N=(t.value.scrollHeight-t.value.clientHeight)/(t.value.clientHeight-n.value.clientHeight);t.value.scrollTop=s+_*N,p()}},b=()=>{a.value=!1,document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",b)};return{onDrag:g,onTrackClick:M=>{if(t.value&&n.value){const _=M.currentTarget.getBoundingClientRect(),N=M.clientY-_.top,j=n.value.clientHeight,I=_.height;let O=(N-j/2)*((t.value.scrollHeight-t.value.clientHeight)/(I-j));O=Math.max(0,Math.min(O,t.value.scrollHeight-t.value.clientHeight)),t.value.scrollTop=O,p()}},startDrag:y,getProcentVerticalView:h,changeBarPosition:p,isDragging:a,scrollVerticalHeightProcent:r,setVerticalBarHeight:()=>{if(!t.value||!e.value)return;const M=h();r.value=M,zt({"--scroll-vertical-bar-height":`${M}%`},e.value)},verticalTrackClass:u,isExistVerticalTrack:f}},E4e={class:"scroll-wrapper__vertical-wrapper"},N4e={class:"scroll-wrapper__horizont-wrapper"},ks=oe(d.defineComponent({name:"ScrollWrapper",__name:"ScrollWrapper",props:{isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate","on-mounted"],setup(t,{expose:e,emit:n}){const i=n,a=d.ref(null),r=d.ref(null),o=d.ref(null),s=d.ref(null),u=d.ref(null),f=d.ref(null),{onTrackClick:h,startDrag:p,changeBarPosition:y,setVerticalBarHeight:g,verticalTrackClass:b,isExistVerticalTrack:v}=iy(a,r,s,o),{changeBarPosition:k,startDrag:M,onTrackClick:_,setHorizontalBarWidth:N,horizontalTrackClass:j,isExistHorizontalTrack:I}=ny(a,r,f,u),O=se=>{y(),k(),i("unmount-scroll",se)},A=()=>{requestAnimationFrame(()=>{H(),G()})},H=()=>{if(!a.value||!r.value)return;const se=getComputedStyle(r.value),ne=r.value.style.minHeight||se.minHeight,_e=r.value.style.maxHeight||se.maxHeight,Xe=r.value.style.height;zt({"--scroll-wrapper-height":`${Xe}`,"--scroll-wrapper-max-height":`${_e}`,"--scroll-wrapper-min-height":`${ne}`},r.value)},G=()=>{g(),N(),y(),k()},Y=()=>{a.value&&a.value.addEventListener("scroll",O)},U=()=>{a.value&&(a.value.scrollTop=0)},ee=()=>{a.value&&(a.value.scrollHeight<=a.value.clientHeight?i("unmount-paginate",!0):i("unmount-paginate",!1))},ye=new MutationObserver(()=>{A(),ee()}),be=new ResizeObserver(()=>{A(),ee()}),fe=se=>{ye.observe(se,{childList:!0,subtree:!0,attributes:!0}),be.observe(se)};return e({scrollToTop:U,setHeightSlot:H}),d.onMounted(()=>{A(),Y(),r.value&&fe(r.value),o.value&&fe(o.value),window.addEventListener("resize",A),i("on-mounted")}),d.onUnmounted(()=>{window.removeEventListener("resize",A)}),(se,ne)=>(d.openBlock(),d.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:r,class:"scroll-wrapper"},[d.createElementVNode("div",E4e,[d.createElementVNode("div",N4e,[d.createElementVNode("div",{ref_key:"slotRef",ref:a,class:"scroll-wrapper__slot"},[d.renderSlot(se.$slots,"default",{},void 0,!0)],512),d.unref(I)||t.isShowHorizontalScroll?(d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:u,class:d.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",d.unref(j)]),onClick:ne[1]||(ne[1]=d.withModifiers((..._e)=>d.unref(_)&&d.unref(_)(..._e),["self","prevent","left"]))},[d.createElementVNode("div",{ref_key:"horizontBarRef",ref:f,class:"scroll-wrapper__bar",onPointerdown:ne[0]||(ne[0]=d.withModifiers((..._e)=>d.unref(M)&&d.unref(M)(..._e),["prevent","left"]))},null,544)],2)):d.createCommentVNode("",!0)]),d.unref(v)||t.isShowVerticalScroll?(d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:o,class:d.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",d.unref(b)]),onClick:ne[3]||(ne[3]=d.withModifiers((..._e)=>d.unref(h)&&d.unref(h)(..._e),["self","prevent","left"]))},[d.createElementVNode("div",{ref_key:"verticalBarRef",ref:s,class:"scroll-wrapper__bar",onPointerdown:ne[2]||(ne[2]=d.withModifiers((..._e)=>d.unref(p)&&d.unref(p)(..._e),["prevent","left"]))},null,544)],2)):d.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-b5d4825a"]]),D4e=["id","data-testid"],j4e=["id","data-testid"],A4e=["id","data-testid"],Ph=oe(d.defineComponent({name:"TableNew",__name:"Table",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(t,{expose:e,emit:n}){var N;const i=t,a=n,r=d.reactive({headHeight:0,maxColumnCount:0}),o=d.ref(null),s=d.ref(null),u=d.ref(null),f=d.ref(null),h=d.ref(null),p=j=>{a("unmount-scroll",j)},y=j=>a("unmount-paginate",j),g=()=>{if(!o.value||!h.value)return;const j=o.value.querySelector("thead");if(!j)return;const I=j.getBoundingClientRect().height;r.headHeight=I,zt({"--scroll-track-margin-top":`${I}px`},h.value.$el)},b=()=>{h.value&&h.value.scrollToTop()},v=()=>{if(h.value&&f.value){const j=getComputedStyle(h.value.$el),I=Number(j.minHeight.replace(/\D/g,""));if(I&&I>0)return;zt({"min-height":`${r.headHeight+108}px`},h.value.$el)}},k=()=>{let j=1;if(s.value){for(let I=0;I<s.value.children.length;I++)j=Math.max(s.value.children[I].children.length,j);r.maxColumnCount=j}},M=new MutationObserver(()=>{k()}),_=new ResizeObserver(()=>{g()});return e({scrollToTop:b,setHeightSlot:(N=h.value)==null?void 0:N.setHeightSlot,tbodyRef:u,tableRef:o,theadRef:s}),d.onMounted(()=>{g(),k(),window.addEventListener("resize",g),o.value&&_.observe(o.value),s.value&&M.observe(s.value,{childList:!0,subtree:!0}),v()}),(j,I)=>(d.openBlock(),d.createBlock(ks,{ref_key:"scrollWrapperRef",ref:h,class:"table",onUnmountScroll:p,onUnmountPaginate:y,"is-show-vertical-scroll":i.isShowVerticalScroll,"is-show-horizontal-scroll":i.isShowHorizontalScroll,"data-testid":`${i.dataTestid}-ScrollWrapper`},{default:d.withCtx(()=>[d.createElementVNode("table",{ref_key:"tableRef",ref:o,id:i.tableId,class:"table__table","data-testid":`${i.dataTestid}`},[d.renderSlot(j.$slots,"default",{},()=>{var O;return[d.createElementVNode("colgroup",null,[d.renderSlot(j.$slots,"colspan",{},void 0,!0)]),j.$slots.head?(d.openBlock(),d.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:s,id:i.theadId,class:"table__head","data-testid":`${i.dataTestid}-Thead`},[d.renderSlot(j.$slots,"head",{},void 0,!0),j.$slots.search?(d.openBlock(),d.createBlock(vs,{key:0,class:"table__search-tr",id:(O=i.search)==null?void 0:O.rowId,ref_key:"searchRowRef",ref:f,"data-testid":`${i.dataTestid}-Search-Row`},{default:d.withCtx(()=>{var A;return[d.createVNode(to,{colspan:i.columnCount||r.maxColumnCount,class:"table__search-th",id:(A=i.search)==null?void 0:A.headId,"data-testid":`${i.dataTestid}-SearchRow-Search`},{default:d.withCtx(()=>[d.renderSlot(j.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","id","data-testid"])]}),_:3},8,["id","data-testid"])):d.createCommentVNode("",!0)],8,j4e)):d.createCommentVNode("",!0),d.renderSlot(j.$slots,"body-group",{},()=>[j.$slots.body?(d.openBlock(),d.createElementBlock("tbody",{key:0,id:i.tbodyId,ref_key:"tbodyRef",ref:u,class:"table__body","data-testid":`${i.dataTestid}-Tbody`},[d.renderSlot(j.$slots,"body",{},void 0,!0)],8,A4e)):d.createCommentVNode("",!0)],!0)]},!0)],8,D4e)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-d2ee85b8"]]),W4e=["data-testid"],gd=oe(d.defineComponent({name:"TableRow",__name:"TableRow",props:{type:{default:"default"},dataTestid:{}},setup(t){const e=t,n=d.computed(()=>[{"table-row_active":e.type==="selected"}]);return(i,a)=>(d.openBlock(),d.createElementBlock("tr",{class:d.normalizeClass(["table-row",n.value]),"data-testid":e.dataTestid},[d.renderSlot(i.$slots,"default",{},void 0,!0)],10,W4e))}}),[["__scopeId","data-v-2bcd1a53"]]),I4e=["rowspan","colspan","data-testid"],yd=d.defineComponent({name:"TableTd",__name:"TableTd",props:{colspan:{default:1},rowspan:{default:1},dataTestid:{default:"DataCell"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createElementBlock("td",{rowspan:t.rowspan,colspan:t.colspan,class:"table-td","data-testid":e.dataTestid},[d.renderSlot(n.$slots,"default")],8,I4e))}}),Eh=oe(d.defineComponent({name:"SectionTableRow",__name:"SectionTableRow",props:{colspan:{},dataTestid:{default:"SectionTableRow"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createBlock(gd,{class:"section-table-row","data-testid":e.dataTestid},{default:d.withCtx(()=>[d.createVNode(yd,{colspan:t.colspan,class:"section-table-row__td","data-testid":`${e.dataTestid}-DataCell`},{default:d.withCtx(()=>[d.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"]))}}),[["__scopeId","data-v-43e9ed3e"]]);var Nh=(t=>(t.top="top",t.bottom="bottom",t))(Nh||{});const z4e=["data-testid"],O4e=d.defineComponent({__name:"PopoverHover",props:{position:{default:Nh.bottom},dataTestid:{default:"PopoverHover"}},setup(t){const e=t,n=d.computed(()=>({"popover-hover-yui-kit":!0,"popover_hover-yui-kit_top":e.position==Nh.top}));return(i,a)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(n.value),"data-testid":e.dataTestid},[d.renderSlot(i.$slots,"default",{},void 0,!0)],10,z4e))}}),Dh=oe(O4e,[["__scopeId","data-v-e6548269"]]),L4e=["disabled","name","value","data-testid"],jh=oe(d.defineComponent({name:"Radio",__name:"Radio",props:d.mergeModels({name:{},value:{},disabled:{type:Boolean,default:!1},dataTestid:{default:"Radio"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=d.useModel(t,"modelValue");return(i,a)=>d.withDirectives((d.openBlock(),d.createElementBlock("input",{"onUpdate:modelValue":a[0]||(a[0]=r=>n.value=r),type:"radio",disabled:t.disabled,name:t.name,value:t.value,class:"radio","data-testid":e.dataTestid},null,8,L4e)),[[d.vModelRadio,n.value]])}}),[["__scopeId","data-v-d73c922e"]]),$4e=["data-testid"],H4e=["data-testid"],ay=oe(d.defineComponent({name:"ChoosenMiniOptions",__name:"ChoosenMiniOptions",props:{options:{},dataTestid:{default:"ChoosenMiniOptions"}},emits:["remove"],setup(t,{emit:e}){const n=t,i=e,a=r=>{i("remove",r)};return(r,o)=>(d.openBlock(),d.createElementBlock("div",{class:"choosen-mini-options","data-testid":n.dataTestid},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.options,(s,u)=>(d.openBlock(),d.createElementBlock("div",{key:s.key,class:"choosen-mini-options__option","data-testid":`${n.dataTestid}-Option-Item${u}`},[d.createVNode(Mt,{"data-testid":`${n.dataTestid}-Badge${u}`,type:d.unref(Re).blue,text:d.unref(Xc)(s)?s.hint:s.value,class:"choosen-mini-options__badges",disabled:""},null,8,["data-testid","type","text"]),d.createVNode(ce,{"data-testid":`${n.dataTestid}-Icon${u}`,name:d.unref(ie).crossLarge,width:10,height:10,class:"choosen-mini-options__cross",onClick:f=>a(s.key)},null,8,["data-testid","name","onClick"])],8,H4e))),128))],8,$4e))}}),[["__scopeId","data-v-65ba1506"]]),B4e=["data-testid"],R4e=["data-testid"],V4e=["data-testid"],Y4e=["data-testid"],F4e=["data-testid"],X4e=["data-testid"],Ah=oe(d.defineComponent({name:"BaseFilter",__name:"BaseFilter",props:d.mergeModels({options:{},title:{},isSearch:{type:Boolean,default:!1},isPosibleToClear:{type:Boolean,default:!1},isShowMiniOptions:{type:Boolean,default:!1},isOpened:{type:Boolean,default:!1},tooltipPosition:{default:"top-center"},onUnmountPagination:{},defaultOption:{default:"Выберите значение"},class:{},disabled:{type:Boolean},dataTestid:{default:"BaseFilter"}},{modelValue:{default:[]},modelModifiers:{}}),emits:d.mergeModels(["change","unmount-open","unmount-search","unmount-search-enter","unmount-pagination"],["update:modelValue"]),setup(t,{emit:e}){const n=t,i=d.reactive({isHovered:!1}),a=e,r=d.ref(null),o=d.ref(null),s=d.useModel(t,"modelValue"),u=d.ref(n.isOpened);d.watch(u,()=>a("unmount-open",u.value)),d.watch(()=>n.isOpened,()=>{u.value=n.isOpened}),d.watch(()=>n.onUnmountPagination,()=>{G()});const f=d.ref(""),h=d.computed(()=>{let Y=[];return f.value?(Fo(n.options)?Y=n.options.filter(U=>{var ee;return U.value.toLowerCase().includes(f.value.toLowerCase())||((ee=U==null?void 0:U.hint)==null?void 0:ee.toLowerCase().includes(f.value.toLowerCase()))}):Y=n.options.filter(U=>U.value.toLowerCase().includes(f.value.toLowerCase())),Y):(Fo(n.options),Y=n.options,Y)}),p=d.computed(()=>{var U;return((U=n.options.find(ee=>oi.isArray(s.value)?s.value.includes(ee.key):ee.key===String(s.value)))==null?void 0:U.value)||n.defaultOption}),y=d.computed(()=>n.options.filter(Y=>oi.isArray(s.value)?s.value.includes(Y.key)&&Y.value!==p.value:Y.key===String(s.value))),g=d.computed(()=>n.options.filter(Y=>oi.isArray(s.value)?s.value.includes(Y.key)&&Y.value===p.value:Y.key===String(s.value))),b=d.computed(()=>{var ee,ye,be;const Y=n.options;let U;return oi.isArray(s.value)?Fo(Y)?U=(ee=Y.find(fe=>fe.value===p.value))==null?void 0:ee.hint:U=(ye=Y.find(fe=>fe.value===p.value))==null?void 0:ye.value:U=(be=Y.find(fe=>fe.key===String(s.value)))==null?void 0:be.value,U||""}),v=()=>{i.isHovered=!0},k=()=>{i.isHovered=!1},M=d.computed(()=>{var Y;return Fo(n.options)?i.isHovered&&!!b.value:((Y=r.value)==null?void 0:Y.isSpanOverflow)||!1}),_=d.computed(()=>oi.isArray(s.value)?n.isPosibleToClear&&s.value.length>0:n.isPosibleToClear&&s.value),N=d.computed(()=>oi.isArray(s.value)&&s.value.length>1),j=d.computed(()=>oi.isArray(s.value)?s.value.length:null),I=async Y=>{if(oi.isArray(s.value))s.value.includes(Y)?s.value=s.value.filter(U=>U!==Y):s.value=[...s.value,Y];else{let U=n.options.find(ee=>ee.key===Y);!U&&Fo(n.options)&&(U=n.options.find(ee=>ee.hint===Y)),s.value=(U==null?void 0:U.key)||"",u.value=!1}await d.nextTick(),a("change",String(s.value))},O=Y=>{u.value=Y},A=async()=>{oi.isArray(s.value)?s.value=[]:s.value="",await d.nextTick(),a("change",s.value)},H=new IntersectionObserver(Y=>{Y.forEach(U=>{U.isIntersecting&&a("unmount-pagination")})}),G=()=>{o.value&&n.onUnmountPagination&&(H.unobserve(o.value),H.observe(o.value))};return d.onMounted(()=>{G()}),d.onUnmounted(()=>{H.disconnect()}),(Y,U)=>(d.openBlock(),d.createBlock(Ir,{onChange:O,"is-opened":u.value,class:d.normalizeClass(n.class),"header-classes":"filter__header","options-classes":"filter__options","data-testid":n.dataTestid},{header:d.withCtx(()=>[d.createElementVNode("span",{class:d.normalizeClass(["filter__header-title",{"filter__header-title__active":u.value}]),"data-testid":`${n.dataTestid}-Title`},d.toDisplayString(t.title),11,B4e),d.createVNode(ws,{position:t.tooltipPosition,type:"blue","is-can-show":M.value&&!(N.value&&t.isShowMiniOptions),hint:b.value,"hint-gap":28,class:"filter__header-tooltip","data-testid":`${n.dataTestid}-Tooltip`},{default:d.withCtx(()=>[d.createVNode(Mt,{ref_key:"badgesRef",ref:r,type:p.value===n.defaultOption?d.unref(Re).default:d.unref(Re).blue,class:"filter__options-badge","data-testid":`${n.dataTestid}-Badge`,text:p.value,onMouseenter:v,onMouseleave:k,disabled:""},null,8,["type","data-testid","text"]),N.value&&t.isShowMiniOptions?(d.openBlock(),d.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${n.dataTestid}-Filter-Value`},[d.createVNode(ay,{"data-testid":`${n.dataTestid}-Filter-Value-MiniOptions`,onClick:U[0]||(U[0]=d.withModifiers(()=>{},["stop"])),options:g.value,onRemove:I},null,8,["data-testid","options"])],8,R4e)):d.createCommentVNode("",!0)]),_:1},8,["position","is-can-show","hint","data-testid"]),j.value&&j.value>1?(d.openBlock(),d.createElementBlock("span",{key:0,class:"filter__count","data-testid":`${n.dataTestid}-Filter-Count`},[d.createTextVNode(" +"+d.toDisplayString(j.value-1)+" ",1),N.value?(d.openBlock(),d.createElementBlock("div",{key:0,class:"filter__values","data-testid":`${n.dataTestid}-Filter-Values`},[d.createVNode(ay,{onClick:U[1]||(U[1]=d.withModifiers(()=>{},["stop"])),options:y.value,onRemove:I,"data-testid":`${n.dataTestid}-MiniOptions`},null,8,["options","data-testid"])],8,Y4e)):d.createCommentVNode("",!0)],8,V4e)):d.createCommentVNode("",!0),_.value?(d.openBlock(),d.createElementBlock("span",{key:1,class:"filter__cross",onClick:d.withModifiers(A,["stop"]),"data-testid":`${n.dataTestid}-Filter-Cross`},[d.createVNode(ce,{name:d.unref(ie).crossLarge,width:16,height:16},null,8,["name"])],8,F4e)):d.createCommentVNode("",!0)]),options:d.withCtx(()=>[t.isSearch?(d.openBlock(),d.createBlock(ps,{key:0,modelValue:f.value,"onUpdate:modelValue":U[2]||(U[2]=ee=>f.value=ee),"show-history":!1,"data-testid":`${n.dataTestid}-Search`,onInput:U[3]||(U[3]=ee=>Y.$emit("unmount-search",ee)),onEnter:U[4]||(U[4]=ee=>Y.$emit("unmount-search-enter",ee))},null,8,["modelValue","data-testid"])):d.createCommentVNode("",!0),d.createVNode(Uc,{"data-testid":`${n.dataTestid}-Options`,class:"filter__options-option",options:h.value,"default-option":p.value,onChange:I},{default:d.withCtx(()=>[d.createElementVNode("li",{class:"filter__options-underline","data-testid":`${n.dataTestid}-Underline`},[...U[5]||(U[5]=[d.createElementVNode("hr",{class:"filter__options-underline-hr"},null,-1)])],8,X4e)]),_:1},8,["data-testid","options","default-option"]),d.withDirectives(d.createElementVNode("div",{ref_key:"lastOptionRef",ref:o,class:"filter__last-option"},null,512),[[d.vShow,t.onUnmountPagination]])]),_:1},8,["is-opened","class","data-testid"]))}}),[["__scopeId","data-v-a3d3018c"]]),U4e=["data-testid"],bd=oe(d.defineComponent({name:"Range",__name:"Range",props:d.mergeModels({min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},dataTestid:{default:"Range"}},{modelValue:{default:0},modelModifiers:{}}),emits:d.mergeModels(["unmount-change","unmount-input"],["update:modelValue"]),setup(t,{emit:e}){const n=t,i=e,a=d.useModel(t,"modelValue"),r=d.ref(null);d.watch(a,()=>{s()});const o=()=>(a.value-n.min)/(n.max-n.min)*100,s=()=>{requestAnimationFrame(()=>{r.value&&zt({"--progress":o()+"%"},r.value)})},u=h=>{const p=h.target;p&&i("unmount-change",Number(p.value))},f=h=>{const p=h.target;p&&i("unmount-change",Number(p.value))};return d.onMounted(()=>{s()}),(h,p)=>d.withDirectives((d.openBlock(),d.createElementBlock("input",d.mergeProps({ref_key:"input",ref:r,type:"range"},n,{class:"range","onUpdate:modelValue":p[0]||(p[0]=y=>a.value=y),onChange:u,onInput:f,"data-testid":n.dataTestid}),null,16,U4e)),[[d.vModelText,a.value]])}}),[["__scopeId","data-v-765973ae"]]),q4e=["id","data-testid"],G4e=["data-testid"],K4e=["data-testid"],Wh=oe(d.defineComponent({name:"TableNew",__name:"TableNew",props:{tableId:{},search:{},tbodyId:{},theadId:{},columnCount:{},dataTestid:{default:"Table"},isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate"],setup(t,{expose:e,emit:n}){var _;const i=t,a=n,r=d.reactive({headHeight:0,maxColumnCount:0}),o=d.ref(null),s=d.ref(null),u=d.ref(null),f=d.ref(null),h=d.ref(null),p=N=>{a("unmount-scroll",N)},y=()=>{if(!o.value||!h.value)return;const N=o.value.querySelector("thead");if(!N)return;const j=N.getBoundingClientRect().height;r.headHeight=j,zt({"--scroll-track-margin-top":`${j}px`},h.value.$el)},g=()=>{h.value&&h.value.scrollToTop()},b=()=>{if(h.value&&f.value){const N=getComputedStyle(h.value.$el),j=Number(N.minHeight.replace(/\D/g,""));if(j&&j>0)return;zt({"min-height":`${r.headHeight+108}px`},h.value.$el)}},v=()=>{let N=1;if(s.value){for(let j=0;j<s.value.children.length;j++)N=Math.max(s.value.children[j].children.length,N);r.maxColumnCount=N}},k=new MutationObserver(()=>{v()}),M=new ResizeObserver(()=>{y()});return e({scrollToTop:g,setHeightSlot:(_=h.value)==null?void 0:_.setHeightSlot,tbodyRef:u,tableRef:o,theadRef:s}),d.onMounted(()=>{y(),v(),window.addEventListener("resize",y),o.value&&M.observe(o.value),s.value&&k.observe(s.value,{childList:!0,subtree:!0}),b()}),(N,j)=>(d.openBlock(),d.createBlock(ks,{ref_key:"scrollWrapperRef",ref:h,class:"table",onUnmountScroll:p,"is-show-vertical-scroll":i.isShowVerticalScroll,"is-show-horizontal-scroll":i.isShowHorizontalScroll,"data-testid":`${i.dataTestid}-ScrollWrapper`},{default:d.withCtx(()=>[d.createElementVNode("table",{ref_key:"tableRef",ref:o,id:i.tableId,class:"table__table","data-testid":`${i.dataTestid}`},[d.renderSlot(N.$slots,"default",{},()=>[d.createElementVNode("colgroup",null,[d.renderSlot(N.$slots,"colspan",{},void 0,!0)]),N.$slots.head?(d.openBlock(),d.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:s,class:"table__head","data-testid":`${i.dataTestid}-Thead`},[d.renderSlot(N.$slots,"head",{},void 0,!0),N.$slots.search?(d.openBlock(),d.createBlock(vs,{key:0,class:"table__search-tr",ref_key:"searchRowRef",ref:f,"data-testid":`${i.dataTestid}-Search-Row`},{default:d.withCtx(()=>[d.createVNode(to,{colspan:r.maxColumnCount,class:"table__search-th","data-testid":`${i.dataTestid}-SearchRow-Search`},{default:d.withCtx(()=>[d.renderSlot(N.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):d.createCommentVNode("",!0)],8,G4e)):d.createCommentVNode("",!0),d.renderSlot(N.$slots,"body-group",{},()=>[N.$slots.body?(d.openBlock(),d.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:u,class:"table__body","data-testid":`${i.dataTestid}-Tbody`},[d.renderSlot(N.$slots,"body",{},void 0,!0)],8,K4e)):d.createCommentVNode("",!0)],!0)],!0)],8,q4e)]),_:3},8,["is-show-vertical-scroll","is-show-horizontal-scroll","data-testid"]))}}),[["__scopeId","data-v-4951b36e"]]),Q4e=["data-testid"],Ih=oe(d.defineComponent({name:"TableRow",__name:"TableRowNew",props:{type:{default:"default"},dataTestid:{}},setup(t){const e=t,n=d.computed(()=>[{"table-row_active":e.type==="selected"}]);return(i,a)=>(d.openBlock(),d.createElementBlock("tr",{class:d.normalizeClass(["table-row",n.value]),"data-testid":e.dataTestid},[d.renderSlot(i.$slots,"default",{},void 0,!0)],10,Q4e))}}),[["__scopeId","data-v-b142a9a4"]]),J4e=["data-testid"],wd=oe(d.defineComponent({name:"HeadTableRow",__name:"HeadTableRowNew",props:{dataTestid:{default:"TableRow"}},setup(t){const e=t;return(n,i)=>(d.openBlock(),d.createElementBlock("tr",{class:"head-table-row","data-testid":e.dataTestid},[d.renderSlot(n.$slots,"default",{},void 0,!0)],8,J4e))}}),[["__scopeId","data-v-1cac20aa"]]),Z4e={class:"scroll-wrapper__vertical-wrapper"},e3e={class:"scroll-wrapper__horizont-wrapper"},t3e=oe(d.defineComponent({name:"ScrollWrapper",__name:"ScrollWrapperNew",props:{isShowVerticalScroll:{type:Boolean,default:!1},isShowHorizontalScroll:{type:Boolean,default:!1}},emits:["unmount-scroll","unmount-paginate","on-mounted"],setup(t,{expose:e,emit:n}){const i=n,a=d.ref(null),r=d.ref(null),o=d.ref(null),s=d.ref(null),u=d.ref(null),f=d.ref(null),{onTrackClick:h,startDrag:p,changeBarPosition:y,setVerticalBarHeight:g,verticalTrackClass:b,isExistVerticalTrack:v}=iy(a,r,s,o),{changeBarPosition:k,startDrag:M,onTrackClick:_,setHorizontalBarWidth:N,horizontalTrackClass:j,isExistHorizontalTrack:I}=ny(a,r,f,u),O=fe=>{y(),k(),i("unmount-scroll",fe)},A=()=>{requestAnimationFrame(()=>{H(),G()})},H=()=>{if(!a.value||!r.value)return;const fe=getComputedStyle(r.value),se=r.value.style.minHeight||fe.minHeight,ne=r.value.style.maxHeight||fe.maxHeight,_e=r.value.style.height;zt({"--scroll-wrapper-height":`${_e}`,"--scroll-wrapper-max-height":`${ne}`,"--scroll-wrapper-min-height":`${se}`},r.value)},G=()=>{g(),N(),y(),k()},Y=()=>{a.value&&a.value.addEventListener("scroll",O)},U=()=>{a.value&&(a.value.scrollTop=0)},ee=new MutationObserver(()=>{A()}),ye=new ResizeObserver(()=>{A()}),be=fe=>{ee.observe(fe,{childList:!0,subtree:!0,attributes:!0}),ye.observe(fe)};return e({scrollToTop:U,setHeightSlot:H}),d.onMounted(()=>{A(),Y(),r.value&&be(r.value),o.value&&be(o.value),window.addEventListener("resize",A),i("on-mounted")}),d.onUnmounted(()=>{window.removeEventListener("resize",A)}),(fe,se)=>(d.openBlock(),d.createElementBlock("div",{ref_key:"scrollWrapperRef",ref:r,class:"scroll-wrapper"},[d.createElementVNode("div",Z4e,[d.createElementVNode("div",e3e,[d.createElementVNode("div",{ref_key:"slotRef",ref:a,class:"scroll-wrapper__slot"},[d.renderSlot(fe.$slots,"default",{},void 0,!0)],512),d.unref(I)||t.isShowHorizontalScroll?(d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"horizontTrackRef",ref:u,class:d.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_horizont",d.unref(j)]),onClick:se[1]||(se[1]=d.withModifiers((...ne)=>d.unref(_)&&d.unref(_)(...ne),["prevent","left"]))},[d.createElementVNode("div",{ref_key:"horizontBarRef",ref:f,class:"scroll-wrapper__bar",onMousedown:se[0]||(se[0]=d.withModifiers((...ne)=>d.unref(M)&&d.unref(M)(...ne),["prevent","left"]))},null,544)],2)):d.createCommentVNode("",!0)]),d.unref(v)||t.isShowVerticalScroll?(d.openBlock(),d.createElementBlock("div",{key:0,ref_key:"verticalTrackRef",ref:o,class:d.normalizeClass(["scroll-wrapper__track scroll-wrapper__track_vertical",d.unref(b)]),onClick:se[3]||(se[3]=d.withModifiers((...ne)=>d.unref(h)&&d.unref(h)(...ne),["prevent","left"]))},[d.createElementVNode("div",{ref_key:"verticalBarRef",ref:s,class:"scroll-wrapper__bar",onMousedown:se[2]||(se[2]=d.withModifiers((...ne)=>d.unref(p)&&d.unref(p)(...ne),["prevent","left"]))},null,544)],2)):d.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-b541879b"]]),n3e=["data-testid"],i3e=["data-testid"],a3e=["data-testid"],zh=oe(d.defineComponent({name:"TableSimple",__name:"TableSimple",props:{dataTestid:{default:"TableSimple"}},setup(t,{expose:e}){const n=t,i=d.ref(null),a=d.ref(null),r=d.ref(null),o=d.ref(null),s=d.computed(()=>{let u=1;if(a.value)for(let f=0;f<a.value.children.length;f++)u=Math.max(a.value.children[f].children.length,u);return u});return e({tbodyRef:r,tableRef:i,theadRef:a}),(u,f)=>(d.openBlock(),d.createElementBlock("table",{ref_key:"tableRef",ref:i,class:"simple-table-yui-kit","data-testid":`${n.dataTestid}`},[d.renderSlot(u.$slots,"default",{},()=>[d.renderSlot(u.$slots,"colspan",{},void 0,!0),u.$slots.head?(d.openBlock(),d.createElementBlock("thead",{key:0,ref_key:"theadRef",ref:a,class:"simple-table-yui-kit__head","data-testid":`${n.dataTestid}-Thead`},[d.renderSlot(u.$slots,"head",{},void 0,!0),u.$slots.search?(d.openBlock(),d.createBlock(wd,{key:0,class:"table-new-yui-kit__search",ref_key:"searchRowRef",ref:o,"data-testid":`${n.dataTestid}-Search-Row`},{default:d.withCtx(()=>[d.createVNode(to,{colspan:s.value,class:"table-new-yui-kit__th","data-testid":`${n.dataTestid}-SearchRow-Search`},{default:d.withCtx(()=>[d.renderSlot(u.$slots,"search",{},void 0,!0)]),_:3},8,["colspan","data-testid"])]),_:3},8,["data-testid"])):d.createCommentVNode("",!0)],8,i3e)):d.createCommentVNode("",!0),d.renderSlot(u.$slots,"body-group",{},()=>[u.$slots.body?(d.openBlock(),d.createElementBlock("tbody",{key:0,ref_key:"tbodyRef",ref:r,class:"simple-table-yui-kit__body","data-testid":`${n.dataTestid}-Tbody`},[d.renderSlot(u.$slots,"body",{},void 0,!0)],8,a3e)):d.createCommentVNode("",!0)],!0)],!0)],8,n3e))}}),[["__scopeId","data-v-834ebe10"]]),r3e=["data-testid"],o3e=["data-testid"],s3e=["onClick","data-testid"],l3e=["data-testid"],Oh=oe(d.defineComponent({name:"Tabs",__name:"Tabs",props:{tabCount:{},dataTestid:{default:"Tabs"}},emits:["unmount-tab"],setup(t,{emit:e}){const n=t,i=e,a=d.reactive({activeTab:1}),r=s=>Array.from({length:s},(u,f)=>f+1),o=s=>{a.activeTab=s,i("unmount-tab",s)};return(s,u)=>(d.openBlock(),d.createElementBlock("div",{"data-testid":n.dataTestid,class:"tabs"},[d.createElementVNode("nav",{class:"tabs__navigation","data-testid":`${n.dataTestid}-Navigation`},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r(n.tabCount),f=>(d.openBlock(),d.createElementBlock("button",{key:f,onClick:h=>o(f),class:d.normalizeClass(["tabs__navigation-button",{active:a.activeTab===f}]),"data-testid":`${n.dataTestid}-Navigation-Button`},[d.renderSlot(s.$slots,`header${f}`,{},void 0,!0)],10,s3e))),128))],8,o3e),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r(n.tabCount),f=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:f},[a.activeTab===f?(d.openBlock(),d.createElementBlock("article",{key:0,"data-testid":`${n.dataTestid}-Content`,class:"tabs__navigation-content"},[d.renderSlot(s.$slots,`tab${f}`,{},void 0,!0)],8,l3e)):d.createCommentVNode("",!0)],64))),128))],8,r3e))}}),[["__scopeId","data-v-eb8ab4da"]]);function gt(t){this.content=t}gt.prototype={constructor:gt,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var i=n&&n!=t?this.remove(n):this,a=i.find(t),r=i.content.slice();return a==-1?r.push(n||t,e):(r[a+1]=e,n&&(r[a]=n)),new gt(r)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new gt(n)},addToStart:function(t,e){return new gt([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new gt(n)},addBefore:function(t,e,n){var i=this.remove(e),a=i.content.slice(),r=i.find(t);return a.splice(r==-1?a.length:r,0,e,n),new gt(a)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=gt.from(t),t.size?new gt(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=gt.from(t),t.size?new gt(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=gt.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},gt.from=function(t){if(t instanceof gt)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new gt(e)};function ry(t,e,n){for(let i=0;;i++){if(i==t.childCount||i==e.childCount)return t.childCount==e.childCount?null:n;let a=t.child(i),r=e.child(i);if(a==r){n+=a.nodeSize;continue}if(!a.sameMarkup(r))return n;if(a.isText&&a.text!=r.text){for(let o=0;a.text[o]==r.text[o];o++)n++;return n}if(a.content.size||r.content.size){let o=ry(a.content,r.content,n+1);if(o!=null)return o}n+=a.nodeSize}}function oy(t,e,n,i){for(let a=t.childCount,r=e.childCount;;){if(a==0||r==0)return a==r?null:{a:n,b:i};let o=t.child(--a),s=e.child(--r),u=o.nodeSize;if(o==s){n-=u,i-=u;continue}if(!o.sameMarkup(s))return{a:n,b:i};if(o.isText&&o.text!=s.text){let f=0,h=Math.min(o.text.length,s.text.length);for(;f<h&&o.text[o.text.length-f-1]==s.text[s.text.length-f-1];)f++,n--,i--;return{a:n,b:i}}if(o.content.size||s.content.size){let f=oy(o.content,s.content,n-1,i-1);if(f)return f}n-=u,i-=u}}class X{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let i=0;i<e.length;i++)this.size+=e[i].nodeSize}nodesBetween(e,n,i,a=0,r){for(let o=0,s=0;s<n;o++){let u=this.content[o],f=s+u.nodeSize;if(f>e&&i(u,a+s,r||null,o)!==!1&&u.content.size){let h=s+1;u.nodesBetween(Math.max(0,e-h),Math.min(u.content.size,n-h),i,a+h)}s=f}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,i,a){let r="",o=!0;return this.nodesBetween(e,n,(s,u)=>{let f=s.isText?s.text.slice(Math.max(e,u)-u,n-u):s.isLeaf?a?typeof a=="function"?a(s):a:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&f||s.isTextblock)&&i&&(o?o=!1:r+=i),r+=f},0),r}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,i=e.firstChild,a=this.content.slice(),r=0;for(n.isText&&n.sameMarkup(i)&&(a[a.length-1]=n.withText(n.text+i.text),r=1);r<e.content.length;r++)a.push(e.content[r]);return new X(a,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let i=[],a=0;if(n>e)for(let r=0,o=0;o<n;r++){let s=this.content[r],u=o+s.nodeSize;u>e&&((o<e||u>n)&&(s.isText?s=s.cut(Math.max(0,e-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,e-o-1),Math.min(s.content.size,n-o-1))),i.push(s),a+=s.nodeSize),o=u}return new X(i,a)}cutByIndex(e,n){return e==n?X.empty:e==0&&n==this.content.length?this:new X(this.content.slice(e,n))}replaceChild(e,n){let i=this.content[e];if(i==n)return this;let a=this.content.slice(),r=this.size+n.nodeSize-i.nodeSize;return a[e]=n,new X(a,r)}addToStart(e){return new X([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new X(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,i=0;n<this.content.length;n++){let a=this.content[n];e(a,i,n),i+=a.nodeSize}}findDiffStart(e,n=0){return ry(this,e,n)}findDiffEnd(e,n=this.size,i=e.size){return oy(this,e,n,i)}findIndex(e){if(e==0)return vd(0,e);if(e==this.size)return vd(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,i=0;;n++){let a=this.child(n),r=i+a.nodeSize;if(r>=e)return r==e?vd(n+1,r):vd(n,i);i=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return X.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new X(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return X.empty;let n,i=0;for(let a=0;a<e.length;a++){let r=e[a];i+=r.nodeSize,a&&r.isText&&e[a-1].sameMarkup(r)?(n||(n=e.slice(0,a)),n[n.length-1]=r.withText(n[n.length-1].text+r.text)):n&&n.push(r)}return new X(n||e,i)}static from(e){if(!e)return X.empty;if(e instanceof X)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new X([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}X.empty=new X([],0);const Lh={index:0,offset:0};function vd(t,e){return Lh.index=t,Lh.offset=e,Lh}function kd(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!kd(t[i],e[i]))return!1}else{for(let i in t)if(!(i in e)||!kd(t[i],e[i]))return!1;for(let i in e)if(!(i in t))return!1}return!0}let Oe=class rg{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,i=!1;for(let a=0;a<e.length;a++){let r=e[a];if(this.eq(r))return e;if(this.type.excludes(r.type))n||(n=e.slice(0,a));else{if(r.type.excludes(this.type))return e;!i&&r.type.rank>this.type.rank&&(n||(n=e.slice(0,a)),n.push(this),i=!0),n&&n.push(r)}}return n||(n=e.slice()),i||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&kd(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let i=e.marks[n.type];if(!i)throw new RangeError(`There is no mark type ${n.type} in this schema`);let a=i.create(n.attrs);return i.checkAttrs(a.attrs),a}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].eq(n[i]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return rg.none;if(e instanceof rg)return[e];let n=e.slice();return n.sort((i,a)=>i.type.rank-a.type.rank),n}};Oe.none=[];class Md extends Error{}class Z{constructor(e,n,i){this.content=e,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let i=ly(this.content,e+this.openStart,n);return i&&new Z(i,this.openStart,this.openEnd)}removeBetween(e,n){return new Z(sy(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Z.empty;let i=n.openStart||0,a=n.openEnd||0;if(typeof i!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Z(X.fromJSON(e,n.content),i,a)}static maxOpen(e,n=!0){let i=0,a=0;for(let r=e.firstChild;r&&!r.isLeaf&&(n||!r.type.spec.isolating);r=r.firstChild)i++;for(let r=e.lastChild;r&&!r.isLeaf&&(n||!r.type.spec.isolating);r=r.lastChild)a++;return new Z(e,i,a)}}Z.empty=new Z(X.empty,0,0);function sy(t,e,n){let{index:i,offset:a}=t.findIndex(e),r=t.maybeChild(i),{index:o,offset:s}=t.findIndex(n);if(a==e||r.isText){if(s!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(i!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(i,r.copy(sy(r.content,e-a-1,n-a-1)))}function ly(t,e,n,i){let{index:a,offset:r}=t.findIndex(e),o=t.maybeChild(a);if(r==e||o.isText)return i&&!i.canReplace(a,a,n)?null:t.cut(0,e).append(n).append(t.cut(e));let s=ly(o.content,e-r-1,n,o);return s&&t.replaceChild(a,o.copy(s))}function d3e(t,e,n){if(n.openStart>t.depth)throw new Md("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Md("Inconsistent open depths");return dy(t,e,n,0)}function dy(t,e,n,i){let a=t.index(i),r=t.node(i);if(a==e.index(i)&&i<t.depth-n.openStart){let o=dy(t,e,n,i+1);return r.copy(r.content.replaceChild(a,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==i&&e.depth==i){let o=t.parent,s=o.content;return rr(o,s.cut(0,t.parentOffset).append(n.content).append(s.cut(e.parentOffset)))}else{let{start:o,end:s}=u3e(n,t);return rr(r,cy(t,o,s,e,i))}else return rr(r,Cd(t,e,i))}function uy(t,e){if(!e.type.compatibleContent(t.type))throw new Md("Cannot join "+e.type.name+" onto "+t.type.name)}function $h(t,e,n){let i=t.node(n);return uy(i,e.node(n)),i}function ar(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ms(t,e,n,i){let a=(e||t).node(n),r=0,o=e?e.index(n):a.childCount;t&&(r=t.index(n),t.depth>n?r++:t.textOffset&&(ar(t.nodeAfter,i),r++));for(let s=r;s<o;s++)ar(a.child(s),i);e&&e.depth==n&&e.textOffset&&ar(e.nodeBefore,i)}function rr(t,e){return t.type.checkContent(e),t.copy(e)}function cy(t,e,n,i,a){let r=t.depth>a&&$h(t,e,a+1),o=i.depth>a&&$h(n,i,a+1),s=[];return Ms(null,t,a,s),r&&o&&e.index(a)==n.index(a)?(uy(r,o),ar(rr(r,cy(t,e,n,i,a+1)),s)):(r&&ar(rr(r,Cd(t,e,a+1)),s),Ms(e,n,a,s),o&&ar(rr(o,Cd(n,i,a+1)),s)),Ms(i,null,a,s),new X(s)}function Cd(t,e,n){let i=[];if(Ms(null,t,n,i),t.depth>n){let a=$h(t,e,n+1);ar(rr(a,Cd(t,e,n+1)),i)}return Ms(e,null,n,i),new X(i)}function u3e(t,e){let n=e.depth-t.openStart,a=e.node(n).copy(t.content);for(let r=n-1;r>=0;r--)a=e.node(r).copy(X.from(a));return{start:a.resolveNoCache(t.openStart+n),end:a.resolveNoCache(a.content.size-t.openEnd-n)}}class Cs{constructor(e,n,i){this.pos=e,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let i=this.pos-this.path[this.path.length-1],a=e.child(n);return i?e.child(n).cut(i):a}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let i=this.path[n*3],a=n==0?0:this.path[n*3-1]+1;for(let r=0;r<e;r++)a+=i.child(r).nodeSize;return a}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Oe.none;if(this.textOffset)return e.child(n).marks;let i=e.maybeChild(n-1),a=e.maybeChild(n);if(!i){let s=i;i=a,a=s}let r=i.marks;for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!a||!r[o].isInSet(a.marks))&&(r=r[o--].removeFromSet(r));return r}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let i=n.marks,a=e.parent.maybeChild(e.index());for(var r=0;r<i.length;r++)i[r].type.spec.inclusive===!1&&(!a||!i[r].isInSet(a.marks))&&(i=i[r--].removeFromSet(i));return i}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let i=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);i>=0;i--)if(e.pos<=this.end(i)&&(!n||n(this.node(i))))return new xd(this,e,i);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let i=[],a=0,r=n;for(let o=e;;){let{index:s,offset:u}=o.content.findIndex(r),f=r-u;if(i.push(o,s,a+u),!f||(o=o.child(s),o.isText))break;r=f-1,a+=u+1}return new Cs(n,i,r)}static resolveCached(e,n){let i=fy.get(e);if(i)for(let r=0;r<i.elts.length;r++){let o=i.elts[r];if(o.pos==n)return o}else fy.set(e,i=new c3e);let a=i.elts[i.i]=Cs.resolve(e,n);return i.i=(i.i+1)%f3e,a}}class c3e{constructor(){this.elts=[],this.i=0}}const f3e=12,fy=new WeakMap;class xd{constructor(e,n,i){this.$from=e,this.$to=n,this.depth=i}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const h3e=Object.create(null);let oa=class og{constructor(e,n,i,a=Oe.none){this.type=e,this.attrs=n,this.marks=a,this.content=i||X.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,i,a=0){this.content.nodesBetween(e,n,i,a,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,i,a){return this.content.textBetween(e,n,i,a)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,i){return this.type==e&&kd(this.attrs,n||e.defaultAttrs||h3e)&&Oe.sameSet(this.marks,i||Oe.none)}copy(e=null){return e==this.content?this:new og(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new og(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,i=!1){if(e==n)return Z.empty;let a=this.resolve(e),r=this.resolve(n),o=i?0:a.sharedDepth(n),s=a.start(o),f=a.node(o).content.cut(a.pos-s,r.pos-s);return new Z(f,a.depth-o,r.depth-o)}replace(e,n,i){return d3e(this.resolve(e),this.resolve(n),i)}nodeAt(e){for(let n=this;;){let{index:i,offset:a}=n.content.findIndex(e);if(n=n.maybeChild(i),!n)return null;if(a==e||n.isText)return n;e-=a+1}}childAfter(e){let{index:n,offset:i}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:i}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:i}=this.content.findIndex(e);if(i<e)return{node:this.content.child(n),index:n,offset:i};let a=this.content.child(n-1);return{node:a,index:n-1,offset:i-a.nodeSize}}resolve(e){return Cs.resolveCached(this,e)}resolveNoCache(e){return Cs.resolve(this,e)}rangeHasMark(e,n,i){let a=!1;return n>e&&this.nodesBetween(e,n,r=>(i.isInSet(r.marks)&&(a=!0),!a)),a}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),hy(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,i=X.empty,a=0,r=i.childCount){let o=this.contentMatchAt(e).matchFragment(i,a,r),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let u=a;u<r;u++)if(!this.type.allowsMarks(i.child(u).marks))return!1;return!0}canReplaceWith(e,n,i,a){if(a&&!this.type.allowsMarks(a))return!1;let r=this.contentMatchAt(e).matchType(i),o=r&&r.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Oe.none;for(let n=0;n<this.marks.length;n++){let i=this.marks[n];i.type.checkAttrs(i.attrs),e=i.addToSet(e)}if(!Oe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,i)}let a=X.fromJSON(e,n.content),r=e.nodeType(n.type).create(n.attrs,a,i);return r.type.checkAttrs(r.attrs),r}};oa.prototype.text=void 0;class Sd extends oa{constructor(e,n,i,a){if(super(e,n,null,a),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):hy(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Sd(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Sd(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function hy(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class or{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let i=new m3e(e,n);if(i.next==null)return or.empty;let a=my(i);i.next&&i.err("Unexpected trailing text");let r=k3e(v3e(a));return M3e(r,i),r}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,i=e.childCount){let a=this;for(let r=n;a&&r<i;r++)a=a.matchType(e.child(r).type);return a}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let i=0;i<e.next.length;i++)if(this.next[n].type==e.next[i].type)return!0;return!1}fillBefore(e,n=!1,i=0){let a=[this];function r(o,s){let u=o.matchFragment(e,i);if(u&&(!n||u.validEnd))return X.from(s.map(f=>f.createAndFill()));for(let f=0;f<o.next.length;f++){let{type:h,next:p}=o.next[f];if(!(h.isText||h.hasRequiredAttrs())&&a.indexOf(p)==-1){a.push(p);let y=r(p,s.concat(h));if(y)return y}}return null}return r(this,[])}findWrapping(e){for(let i=0;i<this.wrapCache.length;i+=2)if(this.wrapCache[i]==e)return this.wrapCache[i+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),i=[{match:this,type:null,via:null}];for(;i.length;){let a=i.shift(),r=a.match;if(r.matchType(e)){let o=[];for(let s=a;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<r.next.length;o++){let{type:s,next:u}=r.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!a.type||u.validEnd)&&(i.push({match:s.contentMatch,type:s,via:a}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(i){e.push(i);for(let a=0;a<i.next.length;a++)e.indexOf(i.next[a].next)==-1&&n(i.next[a].next)}return n(this),e.map((i,a)=>{let r=a+(i.validEnd?"*":" ")+" ";for(let o=0;o<i.next.length;o++)r+=(o?", ":"")+i.next[o].type.name+"->"+e.indexOf(i.next[o].next);return r}).join(`
1297
1297
  `)}}or.empty=new or(!0);class m3e{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function my(t){let e=[];do e.push(p3e(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function p3e(t){let e=[];do e.push(g3e(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function g3e(t){let e=w3e(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=y3e(t,e);else break;return e}function py(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function y3e(t,e){let n=py(t),i=n;return t.eat(",")&&(t.next!="}"?i=py(t):i=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:e}}function b3e(t,e){let n=t.nodeTypes,i=n[e];if(i)return[i];let a=[];for(let r in n){let o=n[r];o.isInGroup(e)&&a.push(o)}return a.length==0&&t.err("No node type or group '"+e+"' found"),a}function w3e(t){if(t.eat("(")){let e=my(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=b3e(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function v3e(t){let e=[[]];return a(r(t,0),n()),e;function n(){return e.push([])-1}function i(o,s,u){let f={term:u,to:s};return e[o].push(f),f}function a(o,s){o.forEach(u=>u.to=s)}function r(o,s){if(o.type=="choice")return o.exprs.reduce((u,f)=>u.concat(r(f,s)),[]);if(o.type=="seq")for(let u=0;;u++){let f=r(o.exprs[u],s);if(u==o.exprs.length-1)return f;a(f,s=n())}else if(o.type=="star"){let u=n();return i(s,u),a(r(o.expr,u),u),[i(u)]}else if(o.type=="plus"){let u=n();return a(r(o.expr,s),u),a(r(o.expr,u),u),[i(u)]}else{if(o.type=="opt")return[i(s)].concat(r(o.expr,s));if(o.type=="range"){let u=s;for(let f=0;f<o.min;f++){let h=n();a(r(o.expr,u),h),u=h}if(o.max==-1)a(r(o.expr,u),u);else for(let f=o.min;f<o.max;f++){let h=n();i(u,h),a(r(o.expr,u),h),u=h}return[i(u)]}else{if(o.type=="name")return[i(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function gy(t,e){return e-t}function yy(t,e){let n=[];return i(e),n.sort(gy);function i(a){let r=t[a];if(r.length==1&&!r[0].term)return i(r[0].to);n.push(a);for(let o=0;o<r.length;o++){let{term:s,to:u}=r[o];!s&&n.indexOf(u)==-1&&i(u)}}}function k3e(t){let e=Object.create(null);return n(yy(t,0));function n(i){let a=[];i.forEach(o=>{t[o].forEach(({term:s,to:u})=>{if(!s)return;let f;for(let h=0;h<a.length;h++)a[h][0]==s&&(f=a[h][1]);yy(t,u).forEach(h=>{f||a.push([s,f=[]]),f.indexOf(h)==-1&&f.push(h)})})});let r=e[i.join(",")]=new or(i.indexOf(t.length-1)>-1);for(let o=0;o<a.length;o++){let s=a[o][1].sort(gy);r.next.push({type:a[o][0],next:e[s.join(",")]||n(s)})}return r}}function M3e(t,e){for(let n=0,i=[t];n<i.length;n++){let a=i[n],r=!a.validEnd,o=[];for(let s=0;s<a.next.length;s++){let{type:u,next:f}=a.next[s];o.push(u.name),r&&!(u.isText||u.hasRequiredAttrs())&&(r=!1),i.indexOf(f)==-1&&i.push(f)}r&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function by(t){let e=Object.create(null);for(let n in t){let i=t[n];if(!i.hasDefault)return null;e[n]=i.default}return e}function wy(t,e){let n=Object.create(null);for(let i in t){let a=e&&e[i];if(a===void 0){let r=t[i];if(r.hasDefault)a=r.default;else throw new RangeError("No value supplied for attribute "+i)}n[i]=a}return n}function vy(t,e,n,i){for(let a in e)if(!(a in t))throw new RangeError(`Unsupported attribute ${a} for ${n} of type ${a}`);for(let a in t){let r=t[a];r.validate&&r.validate(e[a])}}function ky(t,e){let n=Object.create(null);if(e)for(let i in e)n[i]=new x3e(t,i,e[i]);return n}let My=class ek{constructor(e,n,i){this.name=e,this.schema=n,this.spec=i,this.markSet=null,this.groups=i.group?i.group.split(" "):[],this.attrs=ky(e,i.attrs),this.defaultAttrs=by(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(i.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==or.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:wy(this.attrs,e)}create(e=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new oa(this,this.computeAttrs(e),X.from(n),Oe.setFrom(i))}createChecked(e=null,n,i){return n=X.from(n),this.checkContent(n),new oa(this,this.computeAttrs(e),n,Oe.setFrom(i))}createAndFill(e=null,n,i){if(e=this.computeAttrs(e),n=X.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let a=this.contentMatch.matchFragment(n),r=a&&a.fillBefore(X.empty,!0);return r?new oa(this,e,n.append(r),Oe.setFrom(i)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let i=0;i<e.childCount;i++)if(!this.allowsMarks(e.child(i).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){vy(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let i=0;i<e.length;i++)this.allowsMarkType(e[i].type)?n&&n.push(e[i]):n||(n=e.slice(0,i));return n?n.length?n:Oe.none:e}static compile(e,n){let i=Object.create(null);e.forEach((r,o)=>i[r]=new ek(r,n,o));let a=n.spec.topNode||"doc";if(!i[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let r in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function C3e(t,e,n){let i=n.split("|");return a=>{let r=a===null?"null":typeof a;if(i.indexOf(r)<0)throw new RangeError(`Expected value of type ${i} for attribute ${e} on type ${t}, got ${r}`)}}class x3e{constructor(e,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?C3e(e,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class _d{constructor(e,n,i,a){this.name=e,this.rank=n,this.schema=i,this.spec=a,this.attrs=ky(e,a.attrs),this.excluded=null;let r=by(this.attrs);this.instance=r?new Oe(this,r):null}create(e=null){return!e&&this.instance?this.instance:new Oe(this,wy(this.attrs,e))}static compile(e,n){let i=Object.create(null),a=0;return e.forEach((r,o)=>i[r]=new _d(r,a++,n,o)),i}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){vy(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Cy{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let a in e)n[a]=e[a];n.nodes=gt.from(e.nodes),n.marks=gt.from(e.marks||{}),this.nodes=My.compile(this.spec.nodes,this),this.marks=_d.compile(this.spec.marks,this);let i=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");let r=this.nodes[a],o=r.spec.content||"",s=r.spec.marks;if(r.contentMatch=i[o]||(i[o]=or.parse(o,this.nodes)),r.inlineContent=r.contentMatch.inlineContent,r.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!r.isInline||!r.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=r}r.markSet=s=="_"?null:s?xy(this,s.split(" ")):s==""||!r.inlineContent?[]:null}for(let a in this.marks){let r=this.marks[a],o=r.spec.excludes;r.excluded=o==null?[r]:o==""?[]:xy(this,o.split(" "))}this.nodeFromJSON=a=>oa.fromJSON(this,a),this.markFromJSON=a=>Oe.fromJSON(this,a),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,i,a){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof My){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,i,a)}text(e,n){let i=this.nodes.text;return new Sd(i,i.defaultAttrs,e,Oe.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function xy(t,e){let n=[];for(let i=0;i<e.length;i++){let a=e[i],r=t.marks[a],o=r;if(r)n.push(r);else for(let s in t.marks){let u=t.marks[s];(a=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(a)>-1)&&n.push(o=u)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[i]+"'")}return n}function S3e(t){return t.tag!=null}function _3e(t){return t.style!=null}class sa{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(a=>{if(S3e(a))this.tags.push(a);else if(_3e(a)){let r=/[^=]*/.exec(a.style)[0];i.indexOf(r)<0&&i.push(r),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let r=e.nodes[a.node];return r.contentMatch.matchType(r)})}parse(e,n={}){let i=new Py(this,n,!1);return i.addAll(e,Oe.none,n.from,n.to),i.finish()}parseSlice(e,n={}){let i=new Py(this,n,!0);return i.addAll(e,Oe.none,n.from,n.to),Z.maxOpen(i.finish())}matchTag(e,n,i){for(let a=i?this.tags.indexOf(i)+1:0;a<this.tags.length;a++){let r=this.tags[a];if(E3e(e,r.tag)&&(r.namespace===void 0||e.namespaceURI==r.namespace)&&(!r.context||n.matchesContext(r.context))){if(r.getAttrs){let o=r.getAttrs(e);if(o===!1)continue;r.attrs=o||void 0}return r}}}matchStyle(e,n,i,a){for(let r=a?this.styles.indexOf(a)+1:0;r<this.styles.length;r++){let o=this.styles[r],s=o.style;if(!(s.indexOf(e)!=0||o.context&&!i.matchesContext(o.context)||s.length>e.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(o.getAttrs){let u=o.getAttrs(n);if(u===!1)continue;o.attrs=u||void 0}return o}}}static schemaRules(e){let n=[];function i(a){let r=a.priority==null?50:a.priority,o=0;for(;o<n.length;o++){let s=n[o];if((s.priority==null?50:s.priority)<r)break}n.splice(o,0,a)}for(let a in e.marks){let r=e.marks[a].spec.parseDOM;r&&r.forEach(o=>{i(o=Ey(o)),o.mark||o.ignore||o.clearMark||(o.mark=a)})}for(let a in e.nodes){let r=e.nodes[a].spec.parseDOM;r&&r.forEach(o=>{i(o=Ey(o)),o.node||o.ignore||o.mark||(o.node=a)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new sa(e,sa.schemaRules(e)))}}const Sy={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},T3e={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},_y={ol:!0,ul:!0},xs=1,Hh=2,Ss=4;function Ty(t,e,n){return e!=null?(e?xs:0)|(e==="full"?Hh:0):t&&t.whitespace=="pre"?xs|Hh:n&~Ss}class Td{constructor(e,n,i,a,r,o){this.type=e,this.attrs=n,this.marks=i,this.solid=a,this.options=o,this.content=[],this.activeMarks=Oe.none,this.match=r||(o&Ss?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(X.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,a;return(a=i.findWrapping(e.type))?(this.match=i,a):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&xs)){let i=this.content[this.content.length-1],a;if(i&&i.isText&&(a=/[ \t\r\n\u000c]+$/.exec(i.text))){let r=i;i.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-a[0].length))}}let n=X.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(X.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Sy.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Py{constructor(e,n,i){this.parser=e,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let a=n.topNode,r,o=Ty(null,n.preserveWhitespace,0)|(i?Ss:0);a?r=new Td(a.type,a.attrs,Oe.none,!0,n.topMatch||a.type.contentMatch,o):i?r=new Td(null,null,Oe.none,!0,null,o):r=new Td(e.schema.topNodeType,null,Oe.none,!0,null,o),this.nodes=[r],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let i=e.nodeValue,a=this.top,r=a.options&Hh?"full":this.localPreserveWS||(a.options&xs)>0;if(r==="full"||a.inlineContext(e)||/[^ \t\r\n\u000c]/.test(i)){if(r)r!=="full"?i=i.replace(/\r?\n|\r/g," "):i=i.replace(/\r\n?/g,`
1298
1298
  `);else if(i=i.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(i)&&this.open==this.nodes.length-1){let o=a.content[a.content.length-1],s=e.previousSibling;(!o||s&&s.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(i=i.slice(1))}i&&this.insertNode(this.parser.schema.text(i),n,!/\S/.test(i)),this.findInText(e)}else this.findInside(e)}addElement(e,n,i){let a=this.localPreserveWS,r=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;_y.hasOwnProperty(o)&&this.parser.normalizeLists&&P3e(e);let u=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,i));e:if(u?u.ignore:T3e.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,n);else if(!u||u.skip||u.closeParent){u&&u.closeParent?this.open=Math.max(0,this.open-1):u&&u.skip.nodeType&&(e=u.skip);let f,h=this.needsBlock;if(Sy.hasOwnProperty(o))r.content.length&&r.content[0].isInline&&this.open&&(this.open--,r=this.top),f=!0,r.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let p=u&&u.skip?n:this.readStyles(e,n);p&&this.addAll(e,p),f&&this.sync(r),this.needsBlock=h}else{let f=this.readStyles(e,n);f&&this.addElementByRule(e,u,f,u.consuming===!1?s:void 0)}this.localPreserveWS=a}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`