@pksep/yui 0.1.304 → 0.1.306

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sep-yui.mjs CHANGED
@@ -52127,7 +52127,7 @@ const _Eg = ["data-testid"], qEg = ["data-testid"], $Eg = /* @__PURE__ */ Gg({
52127
52127
  oI(I.$slots, "default", {}, void 0, !0)
52128
52128
  ], 8, lPg));
52129
52129
  }
52130
- }), Xv = /* @__PURE__ */ iI(aPg, [["__scopeId", "data-v-9750ef40"]]), dPg = ["data-testid"], cPg = ["data-testid"], mPg = ["data-testid"], rPg = ["data-testid"], ZPg = ["onClick", "data-testid"], uPg = ["data-testid"], bPg = /* @__PURE__ */ Gg({
52130
+ }), Xv = /* @__PURE__ */ iI(aPg, [["__scopeId", "data-v-9e2488a5"]]), dPg = ["data-testid"], cPg = ["data-testid"], mPg = ["data-testid"], rPg = ["data-testid"], ZPg = ["onClick", "data-testid"], uPg = ["data-testid"], bPg = /* @__PURE__ */ Gg({
52131
52131
  __name: "History",
52132
52132
  props: {
52133
52133
  modelValue: {},
@@ -1523,7 +1523,7 @@
1523
1523
  @change-date=${this.handleDateSelected}
1524
1524
  ></col-cal-dates>
1525
1525
  </div>
1526
- `}};bl([Lg({type:Object})],Mn.prototype,"date",2),bl([Lg({type:Object})],Mn.prototype,"minDate",2),bl([Lg({type:Object})],Mn.prototype,"maxDate",2),bl([Lg({type:String})],Mn.prototype,"locale",2),bl([Lg({type:String})],Mn.prototype,"dataTestid",2),bl([Lg({type:Number})],Mn.prototype,"firstDayOfWeek",2),bl([Lg({type:Array})],Mn.prototype,"disabledDates",2),bl([Lg({type:Array})],Mn.prototype,"events",2),bl([gW()],Mn.prototype,"_date",2),Mn=bl([Ed("col-cal")],Mn);const kTg=["data-testid"],FTg=["data-testid"],KTg=["data-testid"],zTg=["required","data-testid"],JTg=["data-testid"],xTg=["data-testid","disabled"],TTg=["data-testid","disabled"],LTg=l.defineComponent({__name:"InputNumber",props:{inputMessage:{},modelValue:{default:0},required:{type:Boolean},isInteger:{type:Boolean,default:!1},min:{default:0},max:{default:1/0},size:{default:YI.medium},zeroPad:{type:Boolean,default:!1},modelModifiers:{default:()=>({})},dataTestid:{default:"InputNumber"}},emits:["update:modelValue","focused"],setup(C,{emit:g}){const I=g,e=C,t=l.reactive({isPressed:!1,inputElement:e.modelValue||(e.min>0?e.min:0),prevValue:""}),i=/^-?\d{0,10}(\.\d{0,7})?$/,A=l.ref(null);function n(B,p=2){return e.zeroPad&&!isNaN(+B)?String(B).padStart(p,"0"):String(B)}l.watch(()=>e.isInteger,()=>{e.isInteger&&(t.inputElement=o(t.inputElement.toString()),a(t.inputElement))}),l.watch([()=>e.min,()=>e.max],()=>{m(),d()}),l.watch(()=>e.modelValue,(B,p)=>{t.inputElement=e.zeroPad&&(!t.isPressed||Number(p)===0)?n(B):B});const s=B=>{let p=B.target.value;e.zeroPad&&p==="00"||(p=o(p)),a(p),!isNaN(+t.inputElement)&&Number(t.inputElement)<=e.max&&Number(t.inputElement)>=e.min&&I("update:modelValue",t.inputElement)},o=B=>{let p=B.replace(",",".");return e.isInteger&&p.includes(".")&&(p=p.replace(".","")),p==="."?p="0"+p:p==="-."&&(p="-0."+p.slice(2)),/[^\d.]/.test(p)&&(p=p.replace(e.min>=0?/[^0-9.]/g:/[^0-9.-]/g,"")),p.includes("-")&&(p=(p.startsWith("-")?"-":"")+p.replace(/-/g,"")),p.startsWith("0")&&p.length>1&&!p.startsWith("0.")&&(p=p.replace(/^0+/,"")),p.startsWith("-0")&&p.length>2&&!p.startsWith("-0.")&&(p="-"+p.slice(2).replace(/^0+/,"")),(p.match(/\./g)||[]).length>1&&(p=p.slice(0,p.lastIndexOf("."))+p.slice(p.lastIndexOf(".")+1)),p},a=B=>{Number(B)>e.max?t.inputElement=e.max:t.inputElement=B,t.inputElement!==""&&!i.test(`${t.inputElement}`)&&(t.inputElement=t.prevValue)},d=()=>{Number(t.inputElement)<e.min&&(t.inputElement=e.min,I("update:modelValue",+t.inputElement))},m=()=>{Number(t.inputElement)>e.max&&(t.inputElement=e.max,I("update:modelValue",+t.inputElement))},Z=B=>{t.prevValue=t.inputElement,B.key==="ArrowUp"&&G(),B.key==="ArrowDown"&&w()},b=B=>{t.isPressed=!0,I("focused",B)},h=()=>{(t.inputElement===""||t.inputElement===null||isNaN(+t.inputElement))&&(t.inputElement=e.min>0?e.min:0),isNaN(+t.inputElement)&&(t.inputElement=Math.max(e.min,0)),Number(t.inputElement)>e.max?t.inputElement=e.max:Number(t.inputElement)<e.min&&(t.inputElement=e.min),t.inputElement=`${t.inputElement}`.replace(/(\.\d*?[1-9])0+$/,"$1").replace(/\.0+$/,""),t.inputElement=n(t.inputElement),I("update:modelValue",t.inputElement),t.isPressed=!1},G=()=>{var B;+t.inputElement+1<e.max?t.inputElement=+t.inputElement+1:e.max!==1/0?t.inputElement=e.max:t.inputElement=0,i.test(`${t.inputElement}`)?(t.inputElement=n(t.inputElement),I("update:modelValue",t.inputElement)):t.inputElement=t.prevValue,(B=A.value)==null||B.focus()},w=()=>{var B;+t.inputElement-1>e.min?t.inputElement=+t.inputElement-1:e.min!==-1/0?t.inputElement=e.min:t.inputElement=0,t.inputElement=n(t.inputElement),I("update:modelValue",+t.inputElement),(B=A.value)==null||B.focus()};return l.onMounted(()=>{m(),d()}),(B,p)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit input-yui-kit_number initial",{pressed:t.isPressed,[e.size]:!0}]),"data-testid":e.dataTestid,onFocusout:h},[e.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${e.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(e.inputMessage),1),e.required?(l.openBlock(),l.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${e.dataTestid}-Star`},"*",8,KTg)):l.createCommentVNode("",!0)],8,FTg)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputNumberRef",ref:A,"onUpdate:modelValue":p[0]||(p[0]=Y=>t.inputElement=Y),onFocus:b,onInput:s,onKeydown:Z,class:"input-yui-kit__input",required:e.required,"data-testid":`${e.dataTestid}-Input`,type:"text"},null,40,zTg),[[l.vModelText,t.inputElement]]),l.createElementVNode("div",{class:"input-yui-kit__buttons","data-testid":`${e.dataTestid}-Buttons`},[l.createElementVNode("button",{class:"input-yui-kit__button-up","data-testid":`${e.dataTestid}-UpButton`,onMousedown:l.withModifiers(G,["prevent"]),disabled:+t.inputElement>=e.max},[l.createVNode(Yg,{name:l.unref(mg).chevronUp,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,xTg),l.createElementVNode("button",{class:"input-yui-kit__button-down","data-testid":`${e.dataTestid}-DownButton`,onMousedown:l.withModifiers(w,["prevent"]),disabled:+t.inputElement<=e.min},[l.createVNode(Yg,{name:l.unref(mg).chevronDown,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,TTg)],8,JTg)],42,kTg))}}),ou=vg(LTg,[["__scopeId","data-v-d8c024ef"]]),vTg=["data-testid"],jTg=["data-testid"],hW=vg(l.defineComponent({__name:"Dialog",props:{open:{type:Boolean},width:{},height:{},noClose:{type:Boolean},dataTestid:{default:"Dialog"}},emits:["close"],setup(C,{emit:g}){const I=C,e=l.ref(null),t=l.useAttrs(),i=l.ref(!1),A=l.computed(()=>({width:I.width,height:I.height})),n=g,s=()=>{var a;(a=e.value)==null||a.close(),n("close")},o=()=>{var a;return I.open?(a=e.value)==null?void 0:a.showModal():s()};return ug(e,"mousedown",a=>{!I.noClose&&a.target===e.value&&s()}),ug(e,"keydown",a=>{(a.key==="Escape"||a.key==="Esc")&&(I.noClose||s())}),l.onMounted(()=>{l.watchEffect(()=>{I.open!==i.value&&(o(),i.value=I.open)})}),(a,d)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:e},l.unref(t),{class:"dialog-yui-kit","data-testid":I.dataTestid}),[l.createElementVNode("div",{"data-testid":`${I.dataTestid}-Content`,class:"dialog-yui-kit__dialog-content",style:l.normalizeStyle(A.value)},[l.renderSlot(a.$slots,"default",{},void 0,!0)],12,jTg)],16,vTg))}}),[["__scopeId","data-v-2ac66c7e"]]),QTg={class:"time-picker-dialog-content"},OTg={class:"time-picker-header"},UTg={key:0,class:"clock-face"},ETg={key:1,class:"clock-face"},PTg={key:0,class:"clock-number__dot"},_Tg={class:"time-picker-actions"},GW=vg(l.defineComponent({__name:"TimePicker",props:{modelValue:{},disabled:{type:Boolean},hideClearButton:{type:Boolean}},emits:["update:modelValue"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({openModal:!1,hours:void 0,minutes:void 0,editingValue:"hour",openClock:!1,localHours:void 0,localMinutes:void 0}),i=l.ref(null);l.watch(()=>I.modelValue,Y=>{if(Y){const y=new Date(Y);t.localHours=y.getHours(),t.localMinutes=y.getMinutes()}else t.localHours=void 0,t.localMinutes=void 0},{immediate:!0}),l.watch(()=>t.openModal,Y=>{Y&&(t.hours=Number(t.localHours)||0,t.minutes=Number(t.localMinutes)||0)});const A=l.computed(()=>t.localHours!==void 0&&t.localMinutes!==void 0?`${String(t.localHours).padStart(2,"0")}:${String(t.localMinutes).padStart(2,"0")}`:"-- --"),n=l.computed(()=>({transform:`rotate(${(t.hours??0)%12*30}deg)`})),s=l.computed(()=>({transform:`rotate(${(t.minutes??0)*6}deg)`}));function o(Y,y=100){const R=Y%12/12*360,X=y*Math.sin(R*Math.PI/180),K=-y*Math.cos(R*Math.PI/180);return{left:`calc(50% + ${X}px - 24.5px)`,top:`calc(50% + ${K}px - 23.5px)`}}function a(Y){var D;const y=(D=i.value)==null?void 0:D.getBoundingClientRect();if(!y)return 0;const R=Y.clientX-(y.left+y.width/2),X=Y.clientY-(y.top+y.height/2);return(Math.atan2(X,R)*(180/Math.PI)+90+360)%360}function d(Y){const y=a(Y);if(t.editingValue==="hour"){const X=Math.hypot(Y.clientX-(i.value.getBoundingClientRect().left+128),Y.clientY-(i.value.getBoundingClientRect().top+128))<90,K=Math.round(y/30)%12||12;t.hours=(X?K+12:K)%24}else t.minutes=Math.round(y/6)%60}function m(Y){d(Y)}function Z(Y){d(Y),document.addEventListener("mousemove",b),document.addEventListener("mouseup",h)}function b(Y){d(Y)}function h(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",h)}l.onBeforeUnmount(()=>h());function G(){t.openModal=!1}function w(){t.editingValue="hour",t.openModal=!0}function B(){if(t.hours===void 0||t.minutes===void 0)return;const Y=I.modelValue?new Date(I.modelValue):new Date,y=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate(),+t.hours,+t.minutes,0,0),R=new Date(y.getTime()).toISOString();e("update:modelValue",R),t.localHours=t.hours,t.localMinutes=t.minutes,G()}function p(){t.hours=void 0,t.minutes=void 0,t.localHours=void 0,t.localMinutes=void 0,e("update:modelValue",null)}return(Y,y)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass({"time-picker-select":!0,disabled:I.disabled})},[l.createElementVNode("div",{class:"time-picker-select-content",onClick:w},[l.createVNode(Yg,{name:l.unref(mg).time},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(A.value),1),!I.hideClearButton&&(t.localHours!==void 0||t.localMinutes!==void 0)?(l.openBlock(),l.createElementBlock("div",{key:0,class:"time-picker-select-clear",onClick:l.withModifiers(p,["stop"])},[l.createVNode(Yg,{name:l.unref(mg).closeTag,width:16,height:16},null,8,["name"])])):l.createCommentVNode("",!0)]),l.createVNode(hW,{open:t.openModal,onClose:G,class:"time-picker-dialog",width:"328px"},{default:l.withCtx(()=>[l.createElementVNode("div",QTg,[y[11]||(y[11]=l.createElementVNode("h3",null,"Установка времени",-1)),l.createElementVNode("div",OTg,[l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.hours,"onUpdate:modelValue":y[0]||(y[0]=R=>t.hours=+R),min:0,max:23,class:l.normalizeClass(["time-picker__input_hour",{"time-picker-input":!0,pressed:t.editingValue==="hour"}]),"input-message":"","is-integer":"","zero-pad":"",onClick:y[1]||(y[1]=R=>t.editingValue="hour")},null,8,["model-value","class"]),y[5]||(y[5]=l.createElementVNode("span",null,"Часы",-1))]),y[7]||(y[7]=l.createElementVNode("span",{class:"time-picker-separator"},":",-1)),l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.minutes,"onUpdate:modelValue":y[2]||(y[2]=R=>t.minutes=+R),min:0,max:59,class:l.normalizeClass(["time-picker__input_minute",{"time-picker-input":!0,pressed:t.editingValue==="minute"}]),"input-message":"","is-integer":"","zero-pad":"",onClick:y[3]||(y[3]=R=>t.editingValue="minute")},null,8,["model-value","class"]),y[6]||(y[6]=l.createElementVNode("span",null,"Минуты",-1))])]),t.openClock?(l.openBlock(),l.createElementBlock("div",{key:0,class:"time-picker-clock",ref_key:"clockRef",ref:i,onMousedown:Z,onClick:m},[t.editingValue==="hour"?(l.openBlock(),l.createElementBlock("div",UTg,[l.createElementVNode("div",{class:"clock-hand",style:l.normalizeStyle(n.value)},null,4),(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(12,R=>l.createElementVNode("div",{key:"outer-"+R,class:l.normalizeClass({"clock-number":!0,active:R===Number(t.hours)}),style:l.normalizeStyle(o(R,100))},l.toDisplayString(R),7)),64)),(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(12,R=>l.createElementVNode("div",{key:"inner-"+R,class:l.normalizeClass({"clock-number":!0,active:R+12===(Number(t.hours)||24)}),style:l.normalizeStyle(o(R+12,70))},l.toDisplayString(R+12),7)),64))])):(l.openBlock(),l.createElementBlock("div",ETg,[l.createElementVNode("div",{class:"clock-hand",style:l.normalizeStyle(s.value)},null,4),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Array.from({length:60},(R,X)=>X),R=>(l.openBlock(),l.createElementBlock("div",{key:R,class:l.normalizeClass({"clock-number":!0,active:R===Number(t.minutes||0)}),style:l.normalizeStyle(o(R/5,100))},[R===Number(t.minutes)&&R%5?(l.openBlock(),l.createElementBlock("div",PTg)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(R%5?"":R%60),1)],6))),128))])),y[8]||(y[8]=l.createElementVNode("div",{class:"clock-hand-center"},null,-1))],544)):l.createCommentVNode("",!0),l.createElementVNode("div",_Tg,[l.createElementVNode("div",{class:"time-picker-actions__switch",onClick:y[4]||(y[4]=R=>t.openClock=!t.openClock)},[l.createVNode(Yg,{name:t.openClock?l.unref(mg).keyboard:l.unref(mg).time},null,8,["name"])]),l.createVNode(nI,{size:l.unref(YI).little,type:l.unref(II).ghost,onClick:G},{default:l.withCtx(()=>[...y[9]||(y[9]=[l.createTextVNode("Отменить ",-1)])]),_:1},8,["size","type"]),l.createVNode(nI,{size:l.unref(YI).little,type:l.unref(II).primary,onClick:B},{default:l.withCtx(()=>[...y[10]||(y[10]=[l.createTextVNode("Сохранить ",-1)])]),_:1},8,["size","type"])])])]),_:1},8,["open"])],2))}}),[["__scopeId","data-v-4edbd9e5"]]),qTg=["data-testid"],$Tg=["data-testid"],gLg=["data-testid"],ILg=vg(l.defineComponent({__name:"DataPickerChoose",props:l.mergeModels({value:{},isActive:{type:Boolean},isTimeSelect:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerChoose"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","click","change"],["update:modelValue"]),setup(C,{emit:g}){const I=C,e=l.reactive({defaultValue:"-- -- ----",value:"",isActive:!1}),t=g,i=l.useModel(C,"modelValue");l.watchEffect(()=>e.isActive=I.isActive),l.watchEffect(()=>e.value=I.value);const A=a=>{t("change",a)},n=()=>{t("clear")},s=()=>{t("click")},o=a=>{if(!a)return null;const d=a.indexOf(" "),m=d===-1?3:Math.min(d,3);return`${a.charAt(0).toUpperCase()}${a.slice(1,m)}${a.slice(d)}`};return(a,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["data-picker-choose",{"data-picker-choose_time":I.isTimeSelect}])},[l.createElementVNode("button",{onClick:s,class:l.normalizeClass(["date-picker-yui-kit__header-btn",{"date-picker-yui-kit__header-btn_table-view":I.isSmall},{"date-picker-yui-kit__header-btn_range-view":I.isRange},{"date-disable-yui-kit":I.disabled},{"date-active-yui-kit":e.isActive}]),"data-testid":`${I.dataTestid}-HeaderBtn-Trigger`},[l.createVNode(Yg,{name:l.unref(mg).calendar,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"]),e.value?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${I.dataTestid}-Value-Display`},l.toDisplayString(o(e.value)),9,$Tg)):(l.openBlock(),l.createElementBlock("span",{key:1,class:"date-picker-yui-kit__header-btn__dash","data-testid":`${I.dataTestid}-HeaderBtnDash-Placeholder`},l.toDisplayString(e.defaultValue),9,gLg)),e.value&&!I.isTimeSelect?(l.openBlock(),l.createBlock(nI,{key:2,size:l.unref(YI).small,type:l.unref(II).ghost,disabled:I.disabled,onClick:l.withModifiers(n,["stop"]),class:"date-picker-close-yui-kit","data-testid":`${I.dataTestid}-Button-Clear`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).crossSmall,"data-testid":`${I.dataTestid}-ButtonClose-Icon`},null,8,["name","data-testid"])]),_:1},8,["size","type","disabled","data-testid"])):l.createCommentVNode("",!0)],10,qTg),I.isTimeSelect?(l.openBlock(),l.createBlock(GW,{key:0,disabled:I.disabled,class:"data-picker-choose__time-picker",modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>i.value=m),A]},null,8,["disabled","modelValue"])):l.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-a0c69a64"]]),KD=["top","right","bottom","left"],zD=["start","end"],JD=KD.reduce((C,g)=>C.concat(g,g+"-"+zD[0],g+"-"+zD[1]),[]),Hn=Math.min,Dt=Math.max,wW=Math.round,WW=Math.floor,ul=C=>({x:C,y:C}),CLg={left:"right",right:"left",bottom:"top",top:"bottom"};function iV(C,g,I){return Dt(C,Hn(g,I))}function fn(C,g){return typeof C=="function"?C(g):C}function eA(C){return C.split("-")[0]}function Sn(C){return C.split("-")[1]}function AV(C){return C==="x"?"y":"x"}function nV(C){return C==="y"?"height":"width"}function Dn(C){const g=C[0];return g==="t"||g==="b"?"y":"x"}function lV(C){return AV(Dn(C))}function xD(C,g,I){I===void 0&&(I=!1);const e=Sn(C),t=lV(C),i=nV(t);let A=t==="x"?e===(I?"end":"start")?"right":"left":e==="start"?"bottom":"top";return g.reference[i]>g.floating[i]&&(A=pW(A)),[A,pW(A)]}function eLg(C){const g=pW(C);return[BW(C),g,BW(g)]}function BW(C){return C.includes("start")?C.replace("start","end"):C.replace("end","start")}const TD=["left","right"],LD=["right","left"],tLg=["top","bottom"],iLg=["bottom","top"];function ALg(C,g,I){switch(C){case"top":case"bottom":return I?g?LD:TD:g?TD:LD;case"left":case"right":return g?tLg:iLg;default:return[]}}function nLg(C,g,I,e){const t=Sn(C);let i=ALg(eA(C),I==="start",e);return t&&(i=i.map(A=>A+"-"+t),g&&(i=i.concat(i.map(BW)))),i}function pW(C){const g=eA(C);return CLg[g]+C.slice(g.length)}function lLg(C){return{top:0,right:0,bottom:0,left:0,...C}}function sV(C){return typeof C!="number"?lLg(C):{top:C,right:C,bottom:C,left:C}}function Tr(C){const{x:g,y:I,width:e,height:t}=C;return{width:e,height:t,top:I,left:g,right:g+e,bottom:I+t,x:g,y:I}}function vD(C,g,I){let{reference:e,floating:t}=C;const i=Dn(g),A=lV(g),n=nV(A),s=eA(g),o=i==="y",a=e.x+e.width/2-t.width/2,d=e.y+e.height/2-t.height/2,m=e[n]/2-t[n]/2;let Z;switch(s){case"top":Z={x:a,y:e.y-t.height};break;case"bottom":Z={x:a,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:d};break;case"left":Z={x:e.x-t.width,y:d};break;default:Z={x:e.x,y:e.y}}switch(Sn(g)){case"start":Z[A]-=m*(I&&o?-1:1);break;case"end":Z[A]+=m*(I&&o?-1:1);break}return Z}async function jD(C,g){var I;g===void 0&&(g={});const{x:e,y:t,platform:i,rects:A,elements:n,strategy:s}=C,{boundary:o="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:m=!1,padding:Z=0}=fn(g,C),b=sV(Z),G=n[m?d==="floating"?"reference":"floating":d],w=Tr(await i.getClippingRect({element:(I=await(i.isElement==null?void 0:i.isElement(G)))==null||I?G:G.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(n.floating)),boundary:o,rootBoundary:a,strategy:s})),B=d==="floating"?{x:e,y:t,width:A.floating.width,height:A.floating.height}:A.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(n.floating)),Y=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},y=Tr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:B,offsetParent:p,strategy:s}):B);return{top:(w.top-y.top+b.top)/Y.y,bottom:(y.bottom-w.bottom+b.bottom)/Y.y,left:(w.left-y.left+b.left)/Y.x,right:(y.right-w.right+b.right)/Y.x}}const sLg=50,oLg=async(C,g,I)=>{const{placement:e="bottom",strategy:t="absolute",middleware:i=[],platform:A}=I,n=A.detectOverflow?A:{...A,detectOverflow:jD},s=await(A.isRTL==null?void 0:A.isRTL(g));let o=await A.getElementRects({reference:C,floating:g,strategy:t}),{x:a,y:d}=vD(o,e,s),m=e,Z=0;const b={};for(let h=0;h<i.length;h++){const G=i[h];if(!G)continue;const{name:w,fn:B}=G,{x:p,y:Y,data:y,reset:R}=await B({x:a,y:d,initialPlacement:e,placement:m,strategy:t,middlewareData:b,rects:o,platform:n,elements:{reference:C,floating:g}});a=p??a,d=Y??d,b[w]={...b[w],...y},R&&Z<sLg&&(Z++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(o=R.rects===!0?await A.getElementRects({reference:C,floating:g,strategy:t}):R.rects),{x:a,y:d}=vD(o,m,s)),h=-1)}return{x:a,y:d,placement:m,strategy:t,middlewareData:b}},aLg=C=>({name:"arrow",options:C,async fn(g){const{x:I,y:e,placement:t,rects:i,platform:A,elements:n,middlewareData:s}=g,{element:o,padding:a=0}=fn(C,g)||{};if(o==null)return{};const d=sV(a),m={x:I,y:e},Z=lV(t),b=nV(Z),h=await A.getDimensions(o),G=Z==="y",w=G?"top":"left",B=G?"bottom":"right",p=G?"clientHeight":"clientWidth",Y=i.reference[b]+i.reference[Z]-m[Z]-i.floating[b],y=m[Z]-i.reference[Z],R=await(A.getOffsetParent==null?void 0:A.getOffsetParent(o));let X=R?R[p]:0;(!X||!await(A.isElement==null?void 0:A.isElement(R)))&&(X=n.floating[p]||i.floating[b]);const K=Y/2-y/2,D=X/2-h[b]/2-1,F=Hn(d[w],D),z=Hn(d[B],D),v=F,O=X-h[b]-z,eg=X/2-h[b]/2+K,E=iV(v,eg,O),T=!s.arrow&&Sn(t)!=null&&eg!==E&&i.reference[b]/2-(eg<v?F:z)-h[b]/2<0,q=T?eg<v?eg-v:eg-O:0;return{[Z]:m[Z]+q,data:{[Z]:E,centerOffset:eg-E-q,...T&&{alignmentOffset:q}},reset:T}}});function dLg(C,g,I){return(C?[...I.filter(t=>Sn(t)===C),...I.filter(t=>Sn(t)!==C)]:I.filter(t=>eA(t)===t)).filter(t=>C?Sn(t)===C||(g?BW(t)!==t:!1):!0)}const cLg=function(C){return C===void 0&&(C={}),{name:"autoPlacement",options:C,async fn(g){var I,e,t;const{rects:i,middlewareData:A,placement:n,platform:s,elements:o}=g,{crossAxis:a=!1,alignment:d,allowedPlacements:m=JD,autoAlignment:Z=!0,...b}=fn(C,g),h=d!==void 0||m===JD?dLg(d||null,Z,m):m,G=await s.detectOverflow(g,b),w=((I=A.autoPlacement)==null?void 0:I.index)||0,B=h[w];if(B==null)return{};const p=xD(B,i,await(s.isRTL==null?void 0:s.isRTL(o.floating)));if(n!==B)return{reset:{placement:h[0]}};const Y=[G[eA(B)],G[p[0]],G[p[1]]],y=[...((e=A.autoPlacement)==null?void 0:e.overflows)||[],{placement:B,overflows:Y}],R=h[w+1];if(R)return{data:{index:w+1,overflows:y},reset:{placement:R}};const X=y.map(F=>{const z=Sn(F.placement);return[F.placement,z&&a?F.overflows.slice(0,2).reduce((v,O)=>v+O,0):F.overflows[0],F.overflows]}).sort((F,z)=>F[1]-z[1]),D=((t=X.filter(F=>F[2].slice(0,Sn(F[0])?2:3).every(z=>z<=0))[0])==null?void 0:t[0])||X[0][0];return D!==n?{data:{index:w+1,overflows:y},reset:{placement:D}}:{}}}},mLg=function(C){return C===void 0&&(C={}),{name:"flip",options:C,async fn(g){var I,e;const{placement:t,middlewareData:i,rects:A,initialPlacement:n,platform:s,elements:o}=g,{mainAxis:a=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...G}=fn(C,g);if((I=i.arrow)!=null&&I.alignmentOffset)return{};const w=eA(t),B=Dn(n),p=eA(n)===n,Y=await(s.isRTL==null?void 0:s.isRTL(o.floating)),y=m||(p||!h?[pW(n)]:eLg(n)),R=b!=="none";!m&&R&&y.push(...nLg(n,h,b,Y));const X=[n,...y],K=await s.detectOverflow(g,G),D=[];let F=((e=i.flip)==null?void 0:e.overflows)||[];if(a&&D.push(K[w]),d){const eg=xD(t,A,Y);D.push(K[eg[0]],K[eg[1]])}if(F=[...F,{placement:t,overflows:D}],!D.every(eg=>eg<=0)){var z,v;const eg=(((z=i.flip)==null?void 0:z.index)||0)+1,E=X[eg];if(E&&(!(d==="alignment"?B!==Dn(E):!1)||F.every(cg=>Dn(cg.placement)===B?cg.overflows[0]>0:!0)))return{data:{index:eg,overflows:F},reset:{placement:E}};let T=(v=F.filter(q=>q.overflows[0]<=0).sort((q,cg)=>q.overflows[1]-cg.overflows[1])[0])==null?void 0:v.placement;if(!T)switch(Z){case"bestFit":{var O;const q=(O=F.filter(cg=>{if(R){const og=Dn(cg.placement);return og===B||og==="y"}return!0}).map(cg=>[cg.placement,cg.overflows.filter(og=>og>0).reduce((og,Wg)=>og+Wg,0)]).sort((cg,og)=>cg[1]-og[1])[0])==null?void 0:O[0];q&&(T=q);break}case"initialPlacement":T=n;break}if(t!==T)return{reset:{placement:T}}}return{}}}};function QD(C,g){return{top:C.top-g.height,right:C.right-g.width,bottom:C.bottom-g.height,left:C.left-g.width}}function OD(C){return KD.some(g=>C[g]>=0)}const rLg=function(C){return C===void 0&&(C={}),{name:"hide",options:C,async fn(g){const{rects:I,platform:e}=g,{strategy:t="referenceHidden",...i}=fn(C,g);switch(t){case"referenceHidden":{const A=await e.detectOverflow(g,{...i,elementContext:"reference"}),n=QD(A,I.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:OD(n)}}}case"escaped":{const A=await e.detectOverflow(g,{...i,altBoundary:!0}),n=QD(A,I.floating);return{data:{escapedOffsets:n,escaped:OD(n)}}}default:return{}}}}};function UD(C){const g=Hn(...C.map(i=>i.left)),I=Hn(...C.map(i=>i.top)),e=Dt(...C.map(i=>i.right)),t=Dt(...C.map(i=>i.bottom));return{x:g,y:I,width:e-g,height:t-I}}function ZLg(C){const g=C.slice().sort((t,i)=>t.y-i.y),I=[];let e=null;for(let t=0;t<g.length;t++){const i=g[t];!e||i.y-e.y>e.height/2?I.push([i]):I[I.length-1].push(i),e=i}return I.map(t=>Tr(UD(t)))}const bLg=function(C){return C===void 0&&(C={}),{name:"inline",options:C,async fn(g){const{placement:I,elements:e,rects:t,platform:i,strategy:A}=g,{padding:n=2,x:s,y:o}=fn(C,g),a=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(e.reference))||[]),d=ZLg(a),m=Tr(UD(a)),Z=sV(n);function b(){if(d.length===2&&d[0].left>d[1].right&&s!=null&&o!=null)return d.find(G=>s>G.left-Z.left&&s<G.right+Z.right&&o>G.top-Z.top&&o<G.bottom+Z.bottom)||m;if(d.length>=2){if(Dn(I)==="y"){const F=d[0],z=d[d.length-1],v=eA(I)==="top",O=F.top,eg=z.bottom,E=v?F.left:z.left,T=v?F.right:z.right,q=T-E,cg=eg-O;return{top:O,bottom:eg,left:E,right:T,width:q,height:cg,x:E,y:O}}const G=eA(I)==="left",w=Dt(...d.map(F=>F.right)),B=Hn(...d.map(F=>F.left)),p=d.filter(F=>G?F.left===B:F.right===w),Y=p[0].top,y=p[p.length-1].bottom,R=B,X=w,K=X-R,D=y-Y;return{top:Y,bottom:y,left:R,right:X,width:K,height:D,x:R,y:Y}}return m}const h=await i.getElementRects({reference:{getBoundingClientRect:b},floating:e.floating,strategy:A});return t.reference.x!==h.reference.x||t.reference.y!==h.reference.y||t.reference.width!==h.reference.width||t.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},ED=new Set(["left","top"]);async function uLg(C,g){const{placement:I,platform:e,elements:t}=C,i=await(e.isRTL==null?void 0:e.isRTL(t.floating)),A=eA(I),n=Sn(I),s=Dn(I)==="y",o=ED.has(A)?-1:1,a=i&&s?-1:1,d=fn(g,C);let{mainAxis:m,crossAxis:Z,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return n&&typeof b=="number"&&(Z=n==="end"?b*-1:b),s?{x:Z*a,y:m*o}:{x:m*o,y:Z*a}}const hLg=function(C){return C===void 0&&(C=0),{name:"offset",options:C,async fn(g){var I,e;const{x:t,y:i,placement:A,middlewareData:n}=g,s=await uLg(g,C);return A===((I=n.offset)==null?void 0:I.placement)&&(e=n.arrow)!=null&&e.alignmentOffset?{}:{x:t+s.x,y:i+s.y,data:{...s,placement:A}}}}},GLg=function(C){return C===void 0&&(C={}),{name:"shift",options:C,async fn(g){const{x:I,y:e,placement:t,platform:i}=g,{mainAxis:A=!0,crossAxis:n=!1,limiter:s={fn:w=>{let{x:B,y:p}=w;return{x:B,y:p}}},...o}=fn(C,g),a={x:I,y:e},d=await i.detectOverflow(g,o),m=Dn(eA(t)),Z=AV(m);let b=a[Z],h=a[m];if(A){const w=Z==="y"?"top":"left",B=Z==="y"?"bottom":"right",p=b+d[w],Y=b-d[B];b=iV(p,b,Y)}if(n){const w=m==="y"?"top":"left",B=m==="y"?"bottom":"right",p=h+d[w],Y=h-d[B];h=iV(p,h,Y)}const G=s.fn({...g,[Z]:b,[m]:h});return{...G,data:{x:G.x-I,y:G.y-e,enabled:{[Z]:A,[m]:n}}}}}},wLg=function(C){return C===void 0&&(C={}),{options:C,fn(g){const{x:I,y:e,placement:t,rects:i,middlewareData:A}=g,{offset:n=0,mainAxis:s=!0,crossAxis:o=!0}=fn(C,g),a={x:I,y:e},d=Dn(t),m=AV(d);let Z=a[m],b=a[d];const h=fn(n,g),G=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const p=m==="y"?"height":"width",Y=i.reference[m]-i.floating[p]+G.mainAxis,y=i.reference[m]+i.reference[p]-G.mainAxis;Z<Y?Z=Y:Z>y&&(Z=y)}if(o){var w,B;const p=m==="y"?"width":"height",Y=ED.has(eA(t)),y=i.reference[d]-i.floating[p]+(Y&&((w=A.offset)==null?void 0:w[d])||0)+(Y?0:G.crossAxis),R=i.reference[d]+i.reference[p]+(Y?0:((B=A.offset)==null?void 0:B[d])||0)-(Y?G.crossAxis:0);b<y?b=y:b>R&&(b=R)}return{[m]:Z,[d]:b}}}},WLg=function(C){return C===void 0&&(C={}),{name:"size",options:C,async fn(g){var I,e;const{placement:t,rects:i,platform:A,elements:n}=g,{apply:s=()=>{},...o}=fn(C,g),a=await A.detectOverflow(g,o),d=eA(t),m=Sn(t),Z=Dn(t)==="y",{width:b,height:h}=i.floating;let G,w;d==="top"||d==="bottom"?(G=d,w=m===(await(A.isRTL==null?void 0:A.isRTL(n.floating))?"start":"end")?"left":"right"):(w=d,G=m==="end"?"top":"bottom");const B=h-a.top-a.bottom,p=b-a.left-a.right,Y=Hn(h-a[G],B),y=Hn(b-a[w],p),R=!g.middlewareData.shift;let X=Y,K=y;if((I=g.middlewareData.shift)!=null&&I.enabled.x&&(K=p),(e=g.middlewareData.shift)!=null&&e.enabled.y&&(X=B),R&&!m){const F=Dt(a.left,0),z=Dt(a.right,0),v=Dt(a.top,0),O=Dt(a.bottom,0);Z?K=b-2*(F!==0||z!==0?F+z:Dt(a.left,a.right)):X=h-2*(v!==0||O!==0?v+O:Dt(a.top,a.bottom))}await s({...g,availableWidth:K,availableHeight:X});const D=await A.getDimensions(n.floating);return b!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function YW(){return typeof window<"u"}function tc(C){return oV(C)?(C.nodeName||"").toLowerCase():"#document"}function tA(C){var g;return(C==null||(g=C.ownerDocument)==null?void 0:g.defaultView)||window}function hl(C){var g;return(g=(oV(C)?C.ownerDocument:C.document)||window.document)==null?void 0:g.documentElement}function oV(C){return YW()?C instanceof Node||C instanceof tA(C).Node:!1}function kn(C){return YW()?C instanceof Element||C instanceof tA(C).Element:!1}function rs(C){return YW()?C instanceof HTMLElement||C instanceof tA(C).HTMLElement:!1}function PD(C){return!YW()||typeof ShadowRoot>"u"?!1:C instanceof ShadowRoot||C instanceof tA(C).ShadowRoot}function au(C){const{overflow:g,overflowX:I,overflowY:e,display:t}=Fn(C);return/auto|scroll|overlay|hidden|clip/.test(g+e+I)&&t!=="inline"&&t!=="contents"}function BLg(C){return/^(table|td|th)$/.test(tc(C))}function yW(C){try{if(C.matches(":popover-open"))return!0}catch{}try{return C.matches(":modal")}catch{return!1}}const pLg=/transform|translate|scale|rotate|perspective|filter/,YLg=/paint|layout|strict|content/,ic=C=>!!C&&C!=="none";let aV;function dV(C){const g=kn(C)?Fn(C):C;return ic(g.transform)||ic(g.translate)||ic(g.scale)||ic(g.rotate)||ic(g.perspective)||!cV()&&(ic(g.backdropFilter)||ic(g.filter))||pLg.test(g.willChange||"")||YLg.test(g.contain||"")}function yLg(C){let g=Ca(C);for(;rs(g)&&!Lr(g);){if(dV(g))return g;if(yW(g))return null;g=Ca(g)}return null}function cV(){return aV==null&&(aV=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),aV}function Lr(C){return/^(html|body|#document)$/.test(tc(C))}function Fn(C){return tA(C).getComputedStyle(C)}function NW(C){return kn(C)?{scrollLeft:C.scrollLeft,scrollTop:C.scrollTop}:{scrollLeft:C.scrollX,scrollTop:C.scrollY}}function Ca(C){if(tc(C)==="html")return C;const g=C.assignedSlot||C.parentNode||PD(C)&&C.host||hl(C);return PD(g)?g.host:g}function _D(C){const g=Ca(C);return Lr(g)?C.ownerDocument?C.ownerDocument.body:C.body:rs(g)&&au(g)?g:_D(g)}function vr(C,g,I){var e;g===void 0&&(g=[]),I===void 0&&(I=!0);const t=_D(C),i=t===((e=C.ownerDocument)==null?void 0:e.body),A=tA(t);if(i){const n=mV(A);return g.concat(A,A.visualViewport||[],au(t)?t:[],n&&I?vr(n):[])}else return g.concat(t,vr(t,[],I))}function mV(C){return C.parent&&Object.getPrototypeOf(C.parent)?C.frameElement:null}function qD(C){const g=Fn(C);let I=parseFloat(g.width)||0,e=parseFloat(g.height)||0;const t=rs(C),i=t?C.offsetWidth:I,A=t?C.offsetHeight:e,n=wW(I)!==i||wW(e)!==A;return n&&(I=i,e=A),{width:I,height:e,$:n}}function rV(C){return kn(C)?C:C.contextElement}function jr(C){const g=rV(C);if(!rs(g))return ul(1);const I=g.getBoundingClientRect(),{width:e,height:t,$:i}=qD(g);let A=(i?wW(I.width):I.width)/e,n=(i?wW(I.height):I.height)/t;return(!A||!Number.isFinite(A))&&(A=1),(!n||!Number.isFinite(n))&&(n=1),{x:A,y:n}}const NLg=ul(0);function $D(C){const g=tA(C);return!cV()||!g.visualViewport?NLg:{x:g.visualViewport.offsetLeft,y:g.visualViewport.offsetTop}}function VLg(C,g,I){return g===void 0&&(g=!1),!I||g&&I!==tA(C)?!1:g}function Ac(C,g,I,e){g===void 0&&(g=!1),I===void 0&&(I=!1);const t=C.getBoundingClientRect(),i=rV(C);let A=ul(1);g&&(e?kn(e)&&(A=jr(e)):A=jr(C));const n=VLg(i,I,e)?$D(i):ul(0);let s=(t.left+n.x)/A.x,o=(t.top+n.y)/A.y,a=t.width/A.x,d=t.height/A.y;if(i){const m=tA(i),Z=e&&kn(e)?tA(e):e;let b=m,h=mV(b);for(;h&&e&&Z!==b;){const G=jr(h),w=h.getBoundingClientRect(),B=Fn(h),p=w.left+(h.clientLeft+parseFloat(B.paddingLeft))*G.x,Y=w.top+(h.clientTop+parseFloat(B.paddingTop))*G.y;s*=G.x,o*=G.y,a*=G.x,d*=G.y,s+=p,o+=Y,b=tA(h),h=mV(b)}}return Tr({width:a,height:d,x:s,y:o})}function VW(C,g){const I=NW(C).scrollLeft;return g?g.left+I:Ac(hl(C)).left+I}function gk(C,g){const I=C.getBoundingClientRect(),e=I.left+g.scrollLeft-VW(C,I),t=I.top+g.scrollTop;return{x:e,y:t}}function XLg(C){let{elements:g,rect:I,offsetParent:e,strategy:t}=C;const i=t==="fixed",A=hl(e),n=g?yW(g.floating):!1;if(e===A||n&&i)return I;let s={scrollLeft:0,scrollTop:0},o=ul(1);const a=ul(0),d=rs(e);if((d||!d&&!i)&&((tc(e)!=="body"||au(A))&&(s=NW(e)),d)){const Z=Ac(e);o=jr(e),a.x=Z.x+e.clientLeft,a.y=Z.y+e.clientTop}const m=A&&!d&&!i?gk(A,s):ul(0);return{width:I.width*o.x,height:I.height*o.y,x:I.x*o.x-s.scrollLeft*o.x+a.x+m.x,y:I.y*o.y-s.scrollTop*o.y+a.y+m.y}}function RLg(C){return Array.from(C.getClientRects())}function MLg(C){const g=hl(C),I=NW(C),e=C.ownerDocument.body,t=Dt(g.scrollWidth,g.clientWidth,e.scrollWidth,e.clientWidth),i=Dt(g.scrollHeight,g.clientHeight,e.scrollHeight,e.clientHeight);let A=-I.scrollLeft+VW(C);const n=-I.scrollTop;return Fn(e).direction==="rtl"&&(A+=Dt(g.clientWidth,e.clientWidth)-t),{width:t,height:i,x:A,y:n}}const Ik=25;function HLg(C,g){const I=tA(C),e=hl(C),t=I.visualViewport;let i=e.clientWidth,A=e.clientHeight,n=0,s=0;if(t){i=t.width,A=t.height;const a=cV();(!a||a&&g==="fixed")&&(n=t.offsetLeft,s=t.offsetTop)}const o=VW(e);if(o<=0){const a=e.ownerDocument,d=a.body,m=getComputedStyle(d),Z=a.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(e.clientWidth-d.clientWidth-Z);b<=Ik&&(i-=b)}else o<=Ik&&(i+=o);return{width:i,height:A,x:n,y:s}}function fLg(C,g){const I=Ac(C,!0,g==="fixed"),e=I.top+C.clientTop,t=I.left+C.clientLeft,i=rs(C)?jr(C):ul(1),A=C.clientWidth*i.x,n=C.clientHeight*i.y,s=t*i.x,o=e*i.y;return{width:A,height:n,x:s,y:o}}function Ck(C,g,I){let e;if(g==="viewport")e=HLg(C,I);else if(g==="document")e=MLg(hl(C));else if(kn(g))e=fLg(g,I);else{const t=$D(C);e={x:g.x-t.x,y:g.y-t.y,width:g.width,height:g.height}}return Tr(e)}function ek(C,g){const I=Ca(C);return I===g||!kn(I)||Lr(I)?!1:Fn(I).position==="fixed"||ek(I,g)}function SLg(C,g){const I=g.get(C);if(I)return I;let e=vr(C,[],!1).filter(n=>kn(n)&&tc(n)!=="body"),t=null;const i=Fn(C).position==="fixed";let A=i?Ca(C):C;for(;kn(A)&&!Lr(A);){const n=Fn(A),s=dV(A);!s&&n.position==="fixed"&&(t=null),(i?!s&&!t:!s&&n.position==="static"&&!!t&&(t.position==="absolute"||t.position==="fixed")||au(A)&&!s&&ek(C,A))?e=e.filter(a=>a!==A):t=n,A=Ca(A)}return g.set(C,e),e}function DLg(C){let{element:g,boundary:I,rootBoundary:e,strategy:t}=C;const A=[...I==="clippingAncestors"?yW(g)?[]:SLg(g,this._c):[].concat(I),e],n=Ck(g,A[0],t);let s=n.top,o=n.right,a=n.bottom,d=n.left;for(let m=1;m<A.length;m++){const Z=Ck(g,A[m],t);s=Dt(Z.top,s),o=Hn(Z.right,o),a=Hn(Z.bottom,a),d=Dt(Z.left,d)}return{width:o-d,height:a-s,x:d,y:s}}function kLg(C){const{width:g,height:I}=qD(C);return{width:g,height:I}}function FLg(C,g,I){const e=rs(g),t=hl(g),i=I==="fixed",A=Ac(C,!0,i,g);let n={scrollLeft:0,scrollTop:0};const s=ul(0);function o(){s.x=VW(t)}if(e||!e&&!i)if((tc(g)!=="body"||au(t))&&(n=NW(g)),e){const Z=Ac(g,!0,i,g);s.x=Z.x+g.clientLeft,s.y=Z.y+g.clientTop}else t&&o();i&&!e&&t&&o();const a=t&&!e&&!i?gk(t,n):ul(0),d=A.left+n.scrollLeft-s.x-a.x,m=A.top+n.scrollTop-s.y-a.y;return{x:d,y:m,width:A.width,height:A.height}}function ZV(C){return Fn(C).position==="static"}function tk(C,g){if(!rs(C)||Fn(C).position==="fixed")return null;if(g)return g(C);let I=C.offsetParent;return hl(C)===I&&(I=I.ownerDocument.body),I}function ik(C,g){const I=tA(C);if(yW(C))return I;if(!rs(C)){let t=Ca(C);for(;t&&!Lr(t);){if(kn(t)&&!ZV(t))return t;t=Ca(t)}return I}let e=tk(C,g);for(;e&&BLg(e)&&ZV(e);)e=tk(e,g);return e&&Lr(e)&&ZV(e)&&!dV(e)?I:e||yLg(C)||I}const KLg=async function(C){const g=this.getOffsetParent||ik,I=this.getDimensions,e=await I(C.floating);return{reference:FLg(C.reference,await g(C.floating),C.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function zLg(C){return Fn(C).direction==="rtl"}const Ak={convertOffsetParentRelativeRectToViewportRelativeRect:XLg,getDocumentElement:hl,getClippingRect:DLg,getOffsetParent:ik,getElementRects:KLg,getClientRects:RLg,getDimensions:kLg,getScale:jr,isElement:kn,isRTL:zLg};function nk(C,g){return C.x===g.x&&C.y===g.y&&C.width===g.width&&C.height===g.height}function JLg(C,g){let I=null,e;const t=hl(C);function i(){var n;clearTimeout(e),(n=I)==null||n.disconnect(),I=null}function A(n,s){n===void 0&&(n=!1),s===void 0&&(s=1),i();const o=C.getBoundingClientRect(),{left:a,top:d,width:m,height:Z}=o;if(n||g(),!m||!Z)return;const b=WW(d),h=WW(t.clientWidth-(a+m)),G=WW(t.clientHeight-(d+Z)),w=WW(a),p={rootMargin:-b+"px "+-h+"px "+-G+"px "+-w+"px",threshold:Dt(0,Hn(1,s))||1};let Y=!0;function y(R){const X=R[0].intersectionRatio;if(X!==s){if(!Y)return A();X?A(!1,X):e=setTimeout(()=>{A(!1,1e-7)},1e3)}X===1&&!nk(o,C.getBoundingClientRect())&&A(),Y=!1}try{I=new IntersectionObserver(y,{...p,root:t.ownerDocument})}catch{I=new IntersectionObserver(y,p)}I.observe(C)}return A(!0),i}function lk(C,g,I,e){e===void 0&&(e={});const{ancestorScroll:t=!0,ancestorResize:i=!0,elementResize:A=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:s=!1}=e,o=rV(C),a=t||i?[...o?vr(o):[],...g?vr(g):[]]:[];a.forEach(w=>{t&&w.addEventListener("scroll",I,{passive:!0}),i&&w.addEventListener("resize",I)});const d=o&&n?JLg(o,I):null;let m=-1,Z=null;A&&(Z=new ResizeObserver(w=>{let[B]=w;B&&B.target===o&&Z&&g&&(Z.unobserve(g),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var p;(p=Z)==null||p.observe(g)})),I()}),o&&!s&&Z.observe(o),g&&Z.observe(g));let b,h=s?Ac(C):null;s&&G();function G(){const w=Ac(C);h&&!nk(h,w)&&I(),h=w,b=requestAnimationFrame(G)}return I(),()=>{var w;a.forEach(B=>{t&&B.removeEventListener("scroll",I),i&&B.removeEventListener("resize",I)}),d==null||d(),(w=Z)==null||w.disconnect(),Z=null,s&&cancelAnimationFrame(b)}}const xLg=jD,sk=hLg,ok=cLg,TLg=GLg,LLg=mLg,vLg=WLg,jLg=rLg,QLg=aLg,OLg=bLg,ULg=wLg,ak=(C,g,I)=>{const e=new Map,t={platform:Ak,...I},i={...t.platform,_c:e};return oLg(C,g,{...t,platform:i})};function ELg(C){return C!=null&&typeof C=="object"&&"$el"in C}function bV(C){if(ELg(C)){const g=C.$el;return oV(g)&&tc(g)==="#comment"?null:g}return C}function Qr(C){return typeof C=="function"?C():l.unref(C)}function PLg(C){return{name:"arrow",options:C,fn(g){const I=bV(Qr(C.element));return I==null?{}:QLg({element:I,padding:C.padding}).fn(g)}}}function dk(C){return typeof window>"u"?1:(C.ownerDocument.defaultView||window).devicePixelRatio||1}function ck(C,g){const I=dk(C);return Math.round(g*I)/I}function mk(C,g,I){I===void 0&&(I={});const e=I.whileElementsMounted,t=l.computed(()=>{var X;return(X=Qr(I.open))!=null?X:!0}),i=l.computed(()=>Qr(I.middleware)),A=l.computed(()=>{var X;return(X=Qr(I.placement))!=null?X:"bottom"}),n=l.computed(()=>{var X;return(X=Qr(I.strategy))!=null?X:"absolute"}),s=l.computed(()=>{var X;return(X=Qr(I.transform))!=null?X:!0}),o=l.computed(()=>bV(C.value)),a=l.computed(()=>bV(g.value)),d=l.ref(0),m=l.ref(0),Z=l.ref(n.value),b=l.ref(A.value),h=l.shallowRef({}),G=l.ref(!1),w=l.computed(()=>{const X={position:Z.value,left:"0",top:"0"};if(!a.value)return X;const K=ck(a.value,d.value),D=ck(a.value,m.value);return s.value?{...X,transform:"translate("+K+"px, "+D+"px)",...dk(a.value)>=1.5&&{willChange:"transform"}}:{position:Z.value,left:K+"px",top:D+"px"}});let B;function p(){if(o.value==null||a.value==null)return;const X=t.value;ak(o.value,a.value,{middleware:i.value,placement:A.value,strategy:n.value}).then(K=>{d.value=K.x,m.value=K.y,Z.value=K.strategy,b.value=K.placement,h.value=K.middlewareData,G.value=X!==!1})}function Y(){typeof B=="function"&&(B(),B=void 0)}function y(){if(Y(),e===void 0){p();return}if(o.value!=null&&a.value!=null){B=e(o.value,a.value,p);return}}function R(){t.value||(G.value=!1)}return l.watch([i,A,n,t],p,{flush:"sync"}),l.watch([o,a],y,{flush:"sync"}),l.watch(t,R,{flush:"sync"}),l.getCurrentScope()&&l.onScopeDispose(Y),{x:l.shallowReadonly(d),y:l.shallowReadonly(m),strategy:l.shallowReadonly(Z),placement:l.shallowReadonly(b),middlewareData:l.shallowReadonly(h),isPositioned:l.shallowReadonly(G),floatingStyles:w,update:p}}const _Lg=vg(l.defineComponent({__name:"PopoverWrapper",props:{placement:{default:"bottom-start"},open:{type:Boolean,default:!1}},emits:["unmount-close"],setup(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.ref(null),{floatingStyles:s}=mk(i,A,{middleware:[sk(10),ok({crossAxis:!0,allowedPlacements:["top-start","bottom-start"]})],strategy:n.value?"fixed":"absolute",placement:I.placement,whileElementsMounted:lk}),o=()=>{e("unmount-close")},a=d=>{t.value&&!t.value.contains(d.target)&&A.value&&!A.value.contains(d.target)&&o()};return l.onBeforeUnmount(()=>{document.removeEventListener("click",a)}),l.onMounted(()=>{if(document.addEventListener("click",a),t.value){const d=t.value.closest("dialog");d?n.value=d:n.value=document.body}}),(d,m)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-wrapper",ref_key:"popoverWrapper",ref:t},[l.createElementVNode("div",{class:"popover-trigger",ref_key:"popoverTrigger",ref:i},[l.renderSlot(d.$slots,"trigger",{},void 0,!0)],512),(l.openBlock(),l.createBlock(l.Teleport,{to:n.value,disabled:!n.value},[I.open?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"popoverContent",ref:A,class:l.normalizeClass(["popover-content",[`popover-${C.placement}`,{"popover-show":I.open}]]),style:l.normalizeStyle(l.unref(s))},[l.renderSlot(d.$slots,"default",{},void 0,!0)],6)):l.createCommentVNode("",!0)],8,["to","disabled"]))],512))}}),[["__scopeId","data-v-c81c9c79"]]),rk=C=>C instanceof Date&&!isNaN(C.getTime()),XW=C=>{const g=rk(C)&&C!==null?C:new Date;return new Date(Date.UTC(g.getFullYear(),g.getMonth(),g.getDate(),23,59,59,999))},Zk=C=>{const g=rk(C)&&C!==null?C:new Date,I={year:g.getFullYear(),month:g.getMonth(),day:g.getDate()};return new Date(Date.UTC(I.year,I.month,I.day))},qLg=(C,g)=>{if(!C)return"";g!=="ru-RU"&&(g="en-US");const I=new Date(C),e=rW(g),t=I.getDate().toString().padStart(2,"0"),i=I.getFullYear().toString();return`${e[I.getMonth()]} ${t}, ${i}`},$Lg=["data-testid"],gvg=[".date",".minDate",".maxDate","locale","data-testid"],uV=l.defineComponent({__name:"DatePicker",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePicker"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","change"],["update:modelValue"]),setup(C,{expose:g,emit:I}){const e=C,t=l.reactive({isActive:!1,isOpen:{months:!1,years:!1},isNotClear:!0,startDate:null,endDate:null}),i=I,A=l.useModel(C,"modelValue"),n=l.computed(()=>{if(!A.value)return null;const F=new Date(A.value);return isNaN(F.getTime())?null:F}),s=()=>{t.isNotClear=!1,A.value=null,i("clear"),setTimeout(()=>t.isNotClear=!0,1),a({detail:{date:null}})},o=F=>{i("change",F?new Date(F):null)},a=({detail:F})=>{if(!F)return;let z=F.date;n.value&&z&&(z=new Date(z.getFullYear(),z.getMonth(),z.getDate(),n.value.getHours(),n.value.getMinutes())),A.value=z,t.isActive=!1,i("change",z)},d=()=>{t.isOpen.months=!0,t.isOpen.years=!1},m=()=>{t.isOpen.years=!0,t.isOpen.months=!1},Z=()=>{t.isOpen.months=!1},b=()=>{t.isOpen.years=!1},h=()=>{t.isActive=!1,Z(),b()};l.watchEffect(()=>t.startDate=e.startDate??null),l.watchEffect(()=>t.endDate=e.endDate??null);const G=F=>new Date(F.getFullYear(),F.getMonth(),1),w=F=>new Date(F.getFullYear(),F.getMonth()+1,0,23,59,59,999),B=F=>new Date(F.getFullYear(),0,1),p=F=>new Date(F.getFullYear(),11,31,23,59,59,999),Y=()=>t.isOpen.months&&!t.isOpen.years?"months":t.isOpen.years&&!t.isOpen.months?"years":null,y=F=>{switch(Y()){case"months":return G(F);case"years":return B(F);default:return F}},R=F=>{switch(Y()){case"months":return w(F);case"years":return p(F);default:return F}},X=()=>{const F=t.startDate??new Date;if(e.startDate){const z=n.value??new Date;if(F.valueOf()<=z.valueOf())return y(F);if(F!=null)return y(F)}return null},K=()=>{const F=t.endDate??new Date;if(e.endDate){const z=n.value??new Date;if(F.valueOf()>=z.valueOf())return R(F);if(F!=null)return R(F)}return null},D=()=>{t.isActive=!0};return l.watch(()=>A.value,()=>{A.value||(t.isNotClear=!1,A.value=null,setTimeout(()=>t.isNotClear=!0,1))}),g({clearChoose:s}),(F,z)=>(l.openBlock(),l.createElementBlock("div",{class:"date-picker-yui-kit__wrapper","data-testid":`${e.dataTestid}-Wrapper`},[l.createVNode(_Lg,{open:!e.disabled&&t.isActive,onUnmountClose:h},{trigger:l.withCtx(()=>[l.createVNode(ILg,{onClick:D,onClear:s,modelValue:A.value,"onUpdate:modelValue":z[0]||(z[0]=v=>A.value=v),"is-time-select":e.isSelectTime,"is-active":t.isActive,"is-small":e.isSmall,"is-range":e.isRange,disabled:e.disabled,"data-testid":`${e.dataTestid}-Choose`,value:l.unref(qLg)(A.value||null,e.locale),onChange:o},null,8,["modelValue","is-time-select","is-active","is-small","is-range","disabled","data-testid","value"])]),default:l.withCtx(()=>[l.createElementVNode("col-cal",{".date":n.value,".minDate":X(),".maxDate":K(),locale:e.locale??"ru-RU","data-testid":`${e.dataTestid}-Component`,onShowMonths:d,onShowYears:m,onHideMonths:Z,onHideYears:b,onChangeDate:a,class:"date-picker-yui-kit",onClick:z[1]||(z[1]=l.withModifiers(()=>{},["stop"]))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Object.keys(t.isOpen),v=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:v},[t.isOpen[v]?(l.openBlock(),l.createBlock(Yg,{key:0,class:"open-popup",name:l.unref(mg).chevronUp,width:16,height:16,slot:`${v}-popup-icon`},null,8,["name","slot"])):(l.openBlock(),l.createBlock(Yg,{key:1,class:"date-picker__icon date-picker__icon_area",name:l.unref(mg).chevronDown,width:16,height:16,slot:`${v}-popup-icon`},null,8,["name","slot"]))],64))),128)),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-left-button",name:l.unref(mg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-right-button",name:l.unref(mg).chevronRight,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-left",name:l.unref(mg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-right",name:l.unref(mg).chevronRight,width:16,height:16},null,8,["name"])],40,gvg)]),_:1},8,["open"])],8,$Lg))}});var nc=(C=>(C.start="start",C.end="end",C))(nc||{});const Ivg=["data-testid"],Cvg=["data-testid"],evg=vg(l.defineComponent({__name:"DatePickerRange",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerRange"}},{startDate:{},startDateModifiers:{},endDate:{},endDateModifiers:{}}),emits:l.mergeModels(["change"],["update:startDate","update:endDate"]),setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.reactive({date:{start:null,end:null},isActive:!1}),A=l.useModel(C,"startDate"),n=l.useModel(C,"endDate"),s=(m,Z)=>{Z===nc.start&&(i.date[Z]=m),Z===nc.end&&(i.date[Z]=e.toLastTime&&m!==null?XW(m):m),t("change",i.date)},o=m=>{i.date[m]=null},a=()=>{Object.keys(i.date).forEach(m=>{i.date[m]=null})},d=()=>{(A.value||n.value)&&(i.date={start:A.value,end:e.toLastTime?XW(n.value):n.value})};return l.watch([()=>A.value,()=>n.value],()=>{d()}),l.onMounted(()=>{d()}),g({clear:a}),(m,Z)=>{var b,h;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["date-picker-yui-kit__header",{"date-disable-yui-kit":e.disabled},{"date-active-yui-kit":i.isActive}]),"data-testid":`${e.dataTestid}-Header`},[l.createVNode(uV,{modelValue:i.date.start,"onUpdate:modelValue":Z[0]||(Z[0]=G=>i.date.start=G),locale:e.locale,"is-range":"",disabled:e.disabled,"end-date":(b=i.date)==null?void 0:b.end,onChange:Z[1]||(Z[1]=G=>s(G,l.unref(nc).start)),onClear:Z[2]||(Z[2]=G=>o(l.unref(nc).start)),"data-testid":`${e.dataTestid}-Component-Start`},null,8,["modelValue","locale","disabled","end-date","data-testid"]),l.createElementVNode("div",{class:"date-picker-yui-kit__header__dash","data-testid":`${e.dataTestid}-Header-Dash`},null,8,Cvg),l.createVNode(uV,{modelValue:i.date.end,"onUpdate:modelValue":Z[3]||(Z[3]=G=>i.date.end=G),locale:e.locale,"is-range":"",disabled:e.disabled,"start-date":(h=i.date)==null?void 0:h.start,onChange:Z[4]||(Z[4]=G=>s(G,l.unref(nc).end)),onClear:Z[5]||(Z[5]=G=>o(l.unref(nc).end)),"data-testid":`${e.dataTestid}-Component-End`},null,8,["modelValue","locale","disabled","start-date","data-testid"])],10,Ivg)}}}),[["__scopeId","data-v-cd5db169"]]),hV=l.defineComponent({__name:"Calendar",props:{range:{},locale:{},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"Calendar"}},emits:["change","click"],setup(C,{emit:g}){const I=C,e=l.reactive({date:null,dateObject:{start:null,end:null}}),t=g,i=l.ref(),A=s=>{t("change",s)};l.watchEffect(()=>e.date=I.setDate||null);const n=()=>{var s,o;return{start:I.fromTodayTime?new Date(Date.now()):((s=I.range)==null?void 0:s.start)??null,end:((o=I.range)==null?void 0:o.end)??null}};return l.watch([()=>{var s;return(s=I.range)==null?void 0:s.start},()=>{var s;return(s=I.range)==null?void 0:s.end}],()=>{var s,o,a;e.dateObject=n(),((s=I.range)==null?void 0:s.start)===null&&((o=I.range)==null?void 0:o.end)===null&&((a=i.value)==null||a.clear())}),l.onMounted(()=>{if(I.isRange){e.dateObject=n();return}I.setDate&&(e.date=I.setDate??null)}),(s,o)=>I.isRange?(l.openBlock(),l.createBlock(evg,{key:0,ref_key:"datePickerRangeRef",ref:i,"to-last-time":I.toLastTime,"start-date":e.dateObject.start,"onUpdate:startDate":o[0]||(o[0]=a=>e.dateObject.start=a),"end-date":e.dateObject.end,"onUpdate:endDate":o[1]||(o[1]=a=>e.dateObject.end=a),disabled:I.disabled,locale:I.locale,onClick:o[2]||(o[2]=a=>t("click")),onChange:A,"data-testid":`${I.dataTestid}-DataPickerRange`},null,8,["to-last-time","start-date","end-date","disabled","locale","data-testid"])):(l.openBlock(),l.createBlock(uV,{key:1,modelValue:e.date,"onUpdate:modelValue":o[3]||(o[3]=a=>e.date=a),disabled:I.disabled,locale:I.locale,"is-small":I.isSmall,"is-select-time":I.isSelectTime,"data-testid":`${I.dataTestid}-DataPicker`,onClick:o[4]||(o[4]=a=>t("click")),onChange:A},null,8,["modelValue","disabled","locale","is-small","is-select-time","data-testid"]))}}),tvg=["data-testid"],ivg=["data-testid"],GV=vg(l.defineComponent({__name:"Accordion",props:{dataTestid:{default:"Accordion"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("details",{class:"accordion-yui-kit","data-testid":g.dataTestid},[l.createElementVNode("summary",{class:"accordion-yui-kit__summary","data-testid":`${g.dataTestid}-Summary`},[l.renderSlot(I.$slots,"summary",{},void 0,!0),l.createVNode(Yg,{name:l.unref(mg).chevronUp,class:"chevron-up","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronUp`},null,8,["name","data-testid"]),l.createVNode(Yg,{name:l.unref(mg).chevronDown,class:"chevron-down","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronDown`},null,8,["name","data-testid"])],8,ivg),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,tvg))}}),[["__scopeId","data-v-b9b27643"]]),Avg=["data-testid"],nvg=["data-testid"],lvg=["data-testid"],svg=["data-testid","multiple"],wV=vg(l.defineComponent({__name:"DragAndDrop",props:{singleFileMode:{type:Boolean,default:!1},title:{default:"Кликните или перенесите файлы"},type:{},dataTestid:{default:"DragAndDrop"}},emits:["fileDropped"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isPressed:!1}),i=l.computed(()=>[{"dnd-yui-kit_secondary":I.type==="secondary","dnd-yui-kit_primary":I.type==="primary"}]),A=l.ref(null),n=b=>{const h=b.target;Z(h.files)},s=()=>{A.value&&(A.value.value="")},o=b=>{var G;b.preventDefault();const h=(G=b.currentTarget)==null?void 0:G.children[0];h.classList.contains("active")||h.classList.add("active")},a=b=>{b.currentTarget.children[0].classList.remove("active")},d=b=>{var G;b.preventDefault(),Z(((G=b.dataTransfer)==null?void 0:G.files)||null),b.currentTarget.children[0].classList.remove("active")},m=()=>{t.isPressed=!t.isPressed},Z=b=>{t.isPressed=!1,e("fileDropped",b)};return l.onMounted(()=>{var b;(b=A.value)==null||b.addEventListener("cancel",()=>{t.isPressed=!1})}),(b,h)=>(l.openBlock(),l.createElementBlock("div",{onDragover:o,onDragleave:a,onDrop:d,class:l.normalizeClass(["dnd-yui-kit",i.value]),"data-testid":I.dataTestid},[l.createElementVNode("label",{for:"docsFileSelected",class:l.normalizeClass(["dnd-yui-kit__label",{"is-pressed":t.isPressed}]),onClick:m,"data-testid":`${I.dataTestid}-Label`},[l.createVNode(Yg,{name:l.unref(mg).paperClip,"stroke-width":"2","data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"]),l.createElementVNode("span",{class:"dnd-yui-kit__span","data-testid":`${I.dataTestid}-Title`},l.toDisplayString(I.title),9,lvg)],10,nvg),l.createElementVNode("input",{id:"docsFileSelected",onChange:n,onClick:s,type:"file",style:{display:"none"},"data-testid":`${I.dataTestid}-Input`,required:"",multiple:!I.singleFileMode,ref_key:"fileInputRef",ref:A},null,40,svg)],42,Avg))}}),[["__scopeId","data-v-5f9a1913"]]),ovg=["data-testid"],avg=["data-testid"],WV=vg(l.defineComponent({__name:"Card",props:{dataTestid:{default:"Card"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("div",{class:"card-yui-kit","data-testid":g.dataTestid},[I.$slots.left?(l.openBlock(),l.createElementBlock("div",{key:0,class:"card-yui-kit__left","data-testid":`${g.dataTestid}-Left`},[l.renderSlot(I.$slots,"left",{},void 0,!0)],8,avg)):l.createCommentVNode("",!0),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,ovg))}}),[["__scopeId","data-v-9750ef40"]]),dvg=["data-testid"],cvg=["data-testid"],mvg=["data-testid"],rvg=["data-testid"],Zvg=["onClick","data-testid"],bvg=["data-testid"],uvg=vg(l.defineComponent({__name:"History",props:{modelValue:{},defaultValue:{},placeholder:{},showHistory:{type:Boolean},global:{type:Boolean},options:{},globalResultsFunction:{},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{},width:{},height:{},dataTestid:{default:"History"}},emits:["choosePost","unmount-remove"],setup(C,{emit:g}){const I=C,e=l.reactive({isShowList:I.isShowList,isShowButtonHistory:I.isShowButtonHistory}),t=g,i=l.computed(()=>({"history-yui-kit__list":!0,"history-yui-kit__list--opened":e.isShowList,"history-yui-kit__list--scroll":I.modelValue&&I.modelValue.length>=5&&e.isShowList})),A=()=>{e.isShowList=!0,e.isShowButtonHistory=!1},n=o=>{t("unmount-remove",o)},s=o=>{t("choosePost",o)};return(o,a)=>{var d;return I.showHistory?(l.openBlock(),l.createElementBlock("div",{key:0,class:"search-yui-kit__history history-yui-kit","data-testid":I.dataTestid},[e.isShowButtonHistory?(l.openBlock(),l.createBlock(nI,{key:0,type:l.unref(II).outline,onClick:A,class:l.normalizeClass("history-yui-kit__button-text show-result"),"data-testid":`${I.dataTestid}-ShowResult`},{default:l.withCtx(()=>[l.createElementVNode("span",{class:"search-yui-kit__button-label","data-testid":`${I.dataTestid}-ShowResult-Title`}," Просмотреть историю запросов ",8,cvg)]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0),(d=I.modelValue)!=null&&d.length?(l.openBlock(),l.createElementBlock("ul",{key:1,class:l.normalizeClass(i.value),"data-testid":`${I.dataTestid}-ShowResult-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.modelValue,(m,Z)=>(l.openBlock(),l.createElementBlock("li",{class:"history-yui-kit__item",key:m,"data-testid":`${I.dataTestid}-ShowResult-Title${Z}`},[l.createElementVNode("span",{onClick:b=>s(m),class:"history-yui-kit__hint","data-testid":`${I.dataTestid}-HandleChoosePost-Title${Z}`},l.toDisplayString(m),9,Zvg),l.createVNode(nI,{type:l.unref(II).ghost,onClick:b=>n(m),"data-testid":`${I.dataTestid}-ButtonItem-Remove${Z}`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).exitSmall,width:16,"data-testid":`${I.dataTestid}-ButtonItem-RemoveIcon${Z}`},null,8,["name","data-testid"])]),_:2},1032,["type","onClick","data-testid"])],8,rvg))),128))],10,mvg)):e.isShowButtonHistory?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(nI,{key:2,type:l.unref(II).outline,class:l.normalizeClass("history-yui-kit__button-text"),"data-testid":`${I.dataTestid}-ButtonTypeEnum-RemoveButton`},{default:l.withCtx(()=>[l.createElementVNode("span",{"data-testid":`${I.dataTestid}-ButtonTypeEnum-EmptyContent`,class:"empty-content"},"По вашему запросу ничего не найдено",8,bvg)]),_:1},8,["type","data-testid"]))],8,dvg)):l.createCommentVNode("",!0)}}}),[["__scopeId","data-v-55d948ee"]]),hvg=["data-testid"],Gvg=["data-testid"],wvg=["data-testid","onClick"],Wvg=["data-testid"],Bvg=["data-testid"],pvg=["data-testid"],Yvg=["data-testid"],yvg=["data-testid"],Nvg=["data-testid"],Vvg=vg(l.defineComponent({__name:"SearchResult",props:{defaultValue:{},placeholder:{},showHistory:{type:Boolean},global:{type:Boolean},options:{},globalResultsFunction:{default:()=>[]},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{default:""},width:{},height:{},modelValue:{},dataTestid:{default:"SearchResult"}},emits:["choose-result","scroll-paginate"],setup(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=n=>{e("choose-result",n)},A=n=>{const s=n.target,{scrollTop:o,scrollHeight:a,clientHeight:d}=s;a-o-d<5&&e("scroll-paginate")};return l.watch(()=>I.searchValue,()=>{t.value&&(t.value.scrollTop=0)}),(n,s)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit__result result-yui-kit","data-testid":I.dataTestid},[I.globalResultsFunction.length>0?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"result-yui-kit__list","data-testid":`${I.dataTestid}-List`,onScroll:A,ref_key:"resultContentRef",ref:t},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.globalResultsFunction,(o,a)=>(l.openBlock(),l.createElementBlock("li",{class:"result-yui-kit__list__item",key:a,"data-testid":`${I.dataTestid}-List-Items${a}`,onClick:d=>i(o)},[l.createVNode(Yg,{name:o.icon||l.unref(mg).document,"data-testid":`${I.dataTestid}-Items-Icon${a}`,width:16,height:16,class:"result-yui-kit__list__item__icon"},null,8,["name","data-testid"]),l.createElementVNode("span",{"data-testid":`${I.dataTestid}-Result-NameArea${a}`},l.toDisplayString(o.nameArea),9,Wvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-Slash${a}`},"/",8,Bvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-SearchResult${a}`},l.toDisplayString(o.searchResult),9,pvg)],8,wvg))),128))],40,Gvg)):I.searchValue?(l.openBlock(),l.createElementBlock("ul",{key:1,class:"result-yui-kit__list result-yui-kit__empty","data-testid":`${I.dataTestid}-Nothing-List`},[l.createElementVNode("li",{class:"result-yui-kit__empty__item","data-testid":`${I.dataTestid}-Nothing-Items`},[l.createElementVNode("p",{"data-testid":`${I.dataTestid}-Nothing-Text`}," По вашему запросу ничего не найдено ",8,Nvg)],8,yvg)],8,Yvg)):l.createCommentVNode("",!0)],8,hvg))}}),[["__scopeId","data-v-70a3720c"]]),bk=()=>{const C=l.ref(localStorage.getItem("historySearch")?JSON.parse(localStorage.getItem("historySearch")):[]);return{getHistorySearch:C,addHistorySearch:e=>{e&&(C.value=C.value.filter(t=>t!==e),C.value.unshift(e),C.value.length>10&&C.value.pop(),localStorage.setItem("historySearch",JSON.stringify(C.value)))},removeHistorySearch:e=>{C.value=C.value.filter(t=>t!==e),localStorage.setItem("historySearch",JSON.stringify(C.value))}}},Xvg=["data-testid"],Rvg=["data-testid"],Mvg=["data-testid"],Hvg=["placeholder","data-testid"],du=vg(l.defineComponent({__name:"Search",props:{defaultValue:{},placeholder:{default:"Поиск"},showHistory:{type:Boolean},global:{type:Boolean,default:!1},options:{},globalResultsFunction:{default:()=>[]},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{},width:{},height:{default:"42px"},modelValue:{default:""},dataTestid:{default:"Search"}},emits:["enter","input","update:modelValue","choose-result","scroll-paginate","choosed"],setup(C,{emit:g}){const I=C,e=g,{getHistorySearch:t,removeHistorySearch:i,addHistorySearch:A}=bk(),n=l.reactive({isShowList:!1,isShowButtonHistory:I.showHistory??!1,searchValue:I.modelValue,placeholder:I.placeholder??"",focused:!1}),s={position:"relative",width:"100%",height:I.height},o=Y=>{n.searchValue=Y.trim(),n.isShowList=!1,e("input",Y),e("update:modelValue",n.searchValue),e("choosed",n.searchValue),e("enter",n.searchValue)},a=Y=>{n.isShowList=!1,e("choose-result",Y)},d=()=>{e("scroll-paginate")},m=l.computed(()=>({"search-yui-kit__icon-wrapper":!0})),Z=()=>{n.focused=!0},b=()=>{setTimeout(()=>{n.focused=!1},500)},h=()=>{n.isShowList=!1,n.isShowButtonHistory=!1},G=()=>{n.isShowButtonHistory=!0,n.isShowButtonHistory||(n.isShowList=!0)},w=()=>{e("enter",n.searchValue.trim()),I.showHistory&&n.searchValue&&A(n.searchValue.trim())},B=()=>{const Y=n.searchValue.trim();e("input",Y),e("update:modelValue",Y)},p=()=>{n.searchValue&&(n.searchValue="",B(),w())};return l.onMounted(()=>{I.defaultValue&&(n.searchValue=I.defaultValue)}),l.watch(()=>I.modelValue,Y=>{n.searchValue=Y}),(Y,y)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit",style:s,onMousemove:G,onMouseleave:h,"data-testid":I.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(m.value),"data-testid":`${I.dataTestid}-Dropdown-Wrapper`},[l.createElementVNode("div",{class:"search-yui-kit__dropdown","data-testid":`${I.dataTestid}-Dropdown`},[l.withDirectives(l.createElementVNode("input",{type:"text",class:"search-yui-kit__input","onUpdate:modelValue":y[0]||(y[0]=R=>n.searchValue=R),placeholder:I.placeholder,onKeydown:l.withKeys(w,["enter"]),onInput:B,onFocus:Z,onBlur:b,"data-testid":`${I.dataTestid}-Dropdown-Input`},null,40,Hvg),[[l.vModelText,n.searchValue]]),l.createVNode(Yg,{class:"search-icon",name:l.unref(mg).searchNormal},null,8,["name"]),n.searchValue?(l.openBlock(),l.createBlock(nI,{key:0,class:"clear-button",type:l.unref(II).ghost,onClick:p,"data-testid":`${I.dataTestid}-Clear-Button`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).exitSmall,color:"var(--text-light-color)","data-testid":`${I.dataTestid}-Clear-Button-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0)],8,Mvg)],10,Rvg),!I.global&&I.showHistory?(l.openBlock(),l.createBlock(uvg,{key:0,"show-history":I.showHistory,"is-show-button-history":n.isShowButtonHistory,"is-show-list":n.isShowList,"model-value":l.unref(t),onUnmountRemove:l.unref(i),onChoosePost:o,"data-testid":`${I.dataTestid}-Dropdown-History`},null,8,["show-history","is-show-button-history","is-show-list","model-value","onUnmountRemove","data-testid"])):l.createCommentVNode("",!0),I.global&&n.focused?(l.openBlock(),l.createBlock(Vvg,{key:1,"global-results-function":I.globalResultsFunction,"search-value":n.searchValue,"data-testid":`${I.dataTestid}-Dropdown-SearchResult`,onChooseResult:a,onScrollPaginate:d},null,8,["global-results-function","search-value","data-testid"])):l.createCommentVNode("",!0)],40,Xvg))}}),[["__scopeId","data-v-7f0a8bc7"]]);var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fvg(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}var RW={exports:{}};/**
1526
+ `}};bl([Lg({type:Object})],Mn.prototype,"date",2),bl([Lg({type:Object})],Mn.prototype,"minDate",2),bl([Lg({type:Object})],Mn.prototype,"maxDate",2),bl([Lg({type:String})],Mn.prototype,"locale",2),bl([Lg({type:String})],Mn.prototype,"dataTestid",2),bl([Lg({type:Number})],Mn.prototype,"firstDayOfWeek",2),bl([Lg({type:Array})],Mn.prototype,"disabledDates",2),bl([Lg({type:Array})],Mn.prototype,"events",2),bl([gW()],Mn.prototype,"_date",2),Mn=bl([Ed("col-cal")],Mn);const kTg=["data-testid"],FTg=["data-testid"],KTg=["data-testid"],zTg=["required","data-testid"],JTg=["data-testid"],xTg=["data-testid","disabled"],TTg=["data-testid","disabled"],LTg=l.defineComponent({__name:"InputNumber",props:{inputMessage:{},modelValue:{default:0},required:{type:Boolean},isInteger:{type:Boolean,default:!1},min:{default:0},max:{default:1/0},size:{default:YI.medium},zeroPad:{type:Boolean,default:!1},modelModifiers:{default:()=>({})},dataTestid:{default:"InputNumber"}},emits:["update:modelValue","focused"],setup(C,{emit:g}){const I=g,e=C,t=l.reactive({isPressed:!1,inputElement:e.modelValue||(e.min>0?e.min:0),prevValue:""}),i=/^-?\d{0,10}(\.\d{0,7})?$/,A=l.ref(null);function n(B,p=2){return e.zeroPad&&!isNaN(+B)?String(B).padStart(p,"0"):String(B)}l.watch(()=>e.isInteger,()=>{e.isInteger&&(t.inputElement=o(t.inputElement.toString()),a(t.inputElement))}),l.watch([()=>e.min,()=>e.max],()=>{m(),d()}),l.watch(()=>e.modelValue,(B,p)=>{t.inputElement=e.zeroPad&&(!t.isPressed||Number(p)===0)?n(B):B});const s=B=>{let p=B.target.value;e.zeroPad&&p==="00"||(p=o(p)),a(p),!isNaN(+t.inputElement)&&Number(t.inputElement)<=e.max&&Number(t.inputElement)>=e.min&&I("update:modelValue",t.inputElement)},o=B=>{let p=B.replace(",",".");return e.isInteger&&p.includes(".")&&(p=p.replace(".","")),p==="."?p="0"+p:p==="-."&&(p="-0."+p.slice(2)),/[^\d.]/.test(p)&&(p=p.replace(e.min>=0?/[^0-9.]/g:/[^0-9.-]/g,"")),p.includes("-")&&(p=(p.startsWith("-")?"-":"")+p.replace(/-/g,"")),p.startsWith("0")&&p.length>1&&!p.startsWith("0.")&&(p=p.replace(/^0+/,"")),p.startsWith("-0")&&p.length>2&&!p.startsWith("-0.")&&(p="-"+p.slice(2).replace(/^0+/,"")),(p.match(/\./g)||[]).length>1&&(p=p.slice(0,p.lastIndexOf("."))+p.slice(p.lastIndexOf(".")+1)),p},a=B=>{Number(B)>e.max?t.inputElement=e.max:t.inputElement=B,t.inputElement!==""&&!i.test(`${t.inputElement}`)&&(t.inputElement=t.prevValue)},d=()=>{Number(t.inputElement)<e.min&&(t.inputElement=e.min,I("update:modelValue",+t.inputElement))},m=()=>{Number(t.inputElement)>e.max&&(t.inputElement=e.max,I("update:modelValue",+t.inputElement))},Z=B=>{t.prevValue=t.inputElement,B.key==="ArrowUp"&&G(),B.key==="ArrowDown"&&w()},b=B=>{t.isPressed=!0,I("focused",B)},h=()=>{(t.inputElement===""||t.inputElement===null||isNaN(+t.inputElement))&&(t.inputElement=e.min>0?e.min:0),isNaN(+t.inputElement)&&(t.inputElement=Math.max(e.min,0)),Number(t.inputElement)>e.max?t.inputElement=e.max:Number(t.inputElement)<e.min&&(t.inputElement=e.min),t.inputElement=`${t.inputElement}`.replace(/(\.\d*?[1-9])0+$/,"$1").replace(/\.0+$/,""),t.inputElement=n(t.inputElement),I("update:modelValue",t.inputElement),t.isPressed=!1},G=()=>{var B;+t.inputElement+1<e.max?t.inputElement=+t.inputElement+1:e.max!==1/0?t.inputElement=e.max:t.inputElement=0,i.test(`${t.inputElement}`)?(t.inputElement=n(t.inputElement),I("update:modelValue",t.inputElement)):t.inputElement=t.prevValue,(B=A.value)==null||B.focus()},w=()=>{var B;+t.inputElement-1>e.min?t.inputElement=+t.inputElement-1:e.min!==-1/0?t.inputElement=e.min:t.inputElement=0,t.inputElement=n(t.inputElement),I("update:modelValue",+t.inputElement),(B=A.value)==null||B.focus()};return l.onMounted(()=>{m(),d()}),(B,p)=>(l.openBlock(),l.createElementBlock("fieldset",{class:l.normalizeClass(["input-yui-kit input-yui-kit_number initial",{pressed:t.isPressed,[e.size]:!0}]),"data-testid":e.dataTestid,onFocusout:h},[e.inputMessage?(l.openBlock(),l.createElementBlock("legend",{key:0,class:"input-yui-kit__legend","data-testid":`${e.dataTestid}-Legend`},[l.createTextVNode(l.toDisplayString(e.inputMessage),1),e.required?(l.openBlock(),l.createElementBlock("sup",{key:0,class:"input-yui-kit__star","data-testid":`${e.dataTestid}-Star`},"*",8,KTg)):l.createCommentVNode("",!0)],8,FTg)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("input",{ref_key:"inputNumberRef",ref:A,"onUpdate:modelValue":p[0]||(p[0]=Y=>t.inputElement=Y),onFocus:b,onInput:s,onKeydown:Z,class:"input-yui-kit__input",required:e.required,"data-testid":`${e.dataTestid}-Input`,type:"text"},null,40,zTg),[[l.vModelText,t.inputElement]]),l.createElementVNode("div",{class:"input-yui-kit__buttons","data-testid":`${e.dataTestid}-Buttons`},[l.createElementVNode("button",{class:"input-yui-kit__button-up","data-testid":`${e.dataTestid}-UpButton`,onMousedown:l.withModifiers(G,["prevent"]),disabled:+t.inputElement>=e.max},[l.createVNode(Yg,{name:l.unref(mg).chevronUp,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,xTg),l.createElementVNode("button",{class:"input-yui-kit__button-down","data-testid":`${e.dataTestid}-DownButton`,onMousedown:l.withModifiers(w,["prevent"]),disabled:+t.inputElement<=e.min},[l.createVNode(Yg,{name:l.unref(mg).chevronDown,"data-testid":`${e.dataTestid}-Icon`},null,8,["name","data-testid"])],40,TTg)],8,JTg)],42,kTg))}}),ou=vg(LTg,[["__scopeId","data-v-d8c024ef"]]),vTg=["data-testid"],jTg=["data-testid"],hW=vg(l.defineComponent({__name:"Dialog",props:{open:{type:Boolean},width:{},height:{},noClose:{type:Boolean},dataTestid:{default:"Dialog"}},emits:["close"],setup(C,{emit:g}){const I=C,e=l.ref(null),t=l.useAttrs(),i=l.ref(!1),A=l.computed(()=>({width:I.width,height:I.height})),n=g,s=()=>{var a;(a=e.value)==null||a.close(),n("close")},o=()=>{var a;return I.open?(a=e.value)==null?void 0:a.showModal():s()};return ug(e,"mousedown",a=>{!I.noClose&&a.target===e.value&&s()}),ug(e,"keydown",a=>{(a.key==="Escape"||a.key==="Esc")&&(I.noClose||s())}),l.onMounted(()=>{l.watchEffect(()=>{I.open!==i.value&&(o(),i.value=I.open)})}),(a,d)=>(l.openBlock(),l.createElementBlock("dialog",l.mergeProps({ref_key:"dialog",ref:e},l.unref(t),{class:"dialog-yui-kit","data-testid":I.dataTestid}),[l.createElementVNode("div",{"data-testid":`${I.dataTestid}-Content`,class:"dialog-yui-kit__dialog-content",style:l.normalizeStyle(A.value)},[l.renderSlot(a.$slots,"default",{},void 0,!0)],12,jTg)],16,vTg))}}),[["__scopeId","data-v-2ac66c7e"]]),QTg={class:"time-picker-dialog-content"},OTg={class:"time-picker-header"},UTg={key:0,class:"clock-face"},ETg={key:1,class:"clock-face"},PTg={key:0,class:"clock-number__dot"},_Tg={class:"time-picker-actions"},GW=vg(l.defineComponent({__name:"TimePicker",props:{modelValue:{},disabled:{type:Boolean},hideClearButton:{type:Boolean}},emits:["update:modelValue"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({openModal:!1,hours:void 0,minutes:void 0,editingValue:"hour",openClock:!1,localHours:void 0,localMinutes:void 0}),i=l.ref(null);l.watch(()=>I.modelValue,Y=>{if(Y){const y=new Date(Y);t.localHours=y.getHours(),t.localMinutes=y.getMinutes()}else t.localHours=void 0,t.localMinutes=void 0},{immediate:!0}),l.watch(()=>t.openModal,Y=>{Y&&(t.hours=Number(t.localHours)||0,t.minutes=Number(t.localMinutes)||0)});const A=l.computed(()=>t.localHours!==void 0&&t.localMinutes!==void 0?`${String(t.localHours).padStart(2,"0")}:${String(t.localMinutes).padStart(2,"0")}`:"-- --"),n=l.computed(()=>({transform:`rotate(${(t.hours??0)%12*30}deg)`})),s=l.computed(()=>({transform:`rotate(${(t.minutes??0)*6}deg)`}));function o(Y,y=100){const R=Y%12/12*360,X=y*Math.sin(R*Math.PI/180),K=-y*Math.cos(R*Math.PI/180);return{left:`calc(50% + ${X}px - 24.5px)`,top:`calc(50% + ${K}px - 23.5px)`}}function a(Y){var D;const y=(D=i.value)==null?void 0:D.getBoundingClientRect();if(!y)return 0;const R=Y.clientX-(y.left+y.width/2),X=Y.clientY-(y.top+y.height/2);return(Math.atan2(X,R)*(180/Math.PI)+90+360)%360}function d(Y){const y=a(Y);if(t.editingValue==="hour"){const X=Math.hypot(Y.clientX-(i.value.getBoundingClientRect().left+128),Y.clientY-(i.value.getBoundingClientRect().top+128))<90,K=Math.round(y/30)%12||12;t.hours=(X?K+12:K)%24}else t.minutes=Math.round(y/6)%60}function m(Y){d(Y)}function Z(Y){d(Y),document.addEventListener("mousemove",b),document.addEventListener("mouseup",h)}function b(Y){d(Y)}function h(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",h)}l.onBeforeUnmount(()=>h());function G(){t.openModal=!1}function w(){t.editingValue="hour",t.openModal=!0}function B(){if(t.hours===void 0||t.minutes===void 0)return;const Y=I.modelValue?new Date(I.modelValue):new Date,y=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate(),+t.hours,+t.minutes,0,0),R=new Date(y.getTime()).toISOString();e("update:modelValue",R),t.localHours=t.hours,t.localMinutes=t.minutes,G()}function p(){t.hours=void 0,t.minutes=void 0,t.localHours=void 0,t.localMinutes=void 0,e("update:modelValue",null)}return(Y,y)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass({"time-picker-select":!0,disabled:I.disabled})},[l.createElementVNode("div",{class:"time-picker-select-content",onClick:w},[l.createVNode(Yg,{name:l.unref(mg).time},null,8,["name"]),l.createElementVNode("span",null,l.toDisplayString(A.value),1),!I.hideClearButton&&(t.localHours!==void 0||t.localMinutes!==void 0)?(l.openBlock(),l.createElementBlock("div",{key:0,class:"time-picker-select-clear",onClick:l.withModifiers(p,["stop"])},[l.createVNode(Yg,{name:l.unref(mg).closeTag,width:16,height:16},null,8,["name"])])):l.createCommentVNode("",!0)]),l.createVNode(hW,{open:t.openModal,onClose:G,class:"time-picker-dialog",width:"328px"},{default:l.withCtx(()=>[l.createElementVNode("div",QTg,[y[11]||(y[11]=l.createElementVNode("h3",null,"Установка времени",-1)),l.createElementVNode("div",OTg,[l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.hours,"onUpdate:modelValue":y[0]||(y[0]=R=>t.hours=+R),min:0,max:23,class:l.normalizeClass(["time-picker__input_hour",{"time-picker-input":!0,pressed:t.editingValue==="hour"}]),"input-message":"","is-integer":"","zero-pad":"",onClick:y[1]||(y[1]=R=>t.editingValue="hour")},null,8,["model-value","class"]),y[5]||(y[5]=l.createElementVNode("span",null,"Часы",-1))]),y[7]||(y[7]=l.createElementVNode("span",{class:"time-picker-separator"},":",-1)),l.createElementVNode("div",null,[l.createVNode(ou,{"model-value":t.minutes,"onUpdate:modelValue":y[2]||(y[2]=R=>t.minutes=+R),min:0,max:59,class:l.normalizeClass(["time-picker__input_minute",{"time-picker-input":!0,pressed:t.editingValue==="minute"}]),"input-message":"","is-integer":"","zero-pad":"",onClick:y[3]||(y[3]=R=>t.editingValue="minute")},null,8,["model-value","class"]),y[6]||(y[6]=l.createElementVNode("span",null,"Минуты",-1))])]),t.openClock?(l.openBlock(),l.createElementBlock("div",{key:0,class:"time-picker-clock",ref_key:"clockRef",ref:i,onMousedown:Z,onClick:m},[t.editingValue==="hour"?(l.openBlock(),l.createElementBlock("div",UTg,[l.createElementVNode("div",{class:"clock-hand",style:l.normalizeStyle(n.value)},null,4),(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(12,R=>l.createElementVNode("div",{key:"outer-"+R,class:l.normalizeClass({"clock-number":!0,active:R===Number(t.hours)}),style:l.normalizeStyle(o(R,100))},l.toDisplayString(R),7)),64)),(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(12,R=>l.createElementVNode("div",{key:"inner-"+R,class:l.normalizeClass({"clock-number":!0,active:R+12===(Number(t.hours)||24)}),style:l.normalizeStyle(o(R+12,70))},l.toDisplayString(R+12),7)),64))])):(l.openBlock(),l.createElementBlock("div",ETg,[l.createElementVNode("div",{class:"clock-hand",style:l.normalizeStyle(s.value)},null,4),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Array.from({length:60},(R,X)=>X),R=>(l.openBlock(),l.createElementBlock("div",{key:R,class:l.normalizeClass({"clock-number":!0,active:R===Number(t.minutes||0)}),style:l.normalizeStyle(o(R/5,100))},[R===Number(t.minutes)&&R%5?(l.openBlock(),l.createElementBlock("div",PTg)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(R%5?"":R%60),1)],6))),128))])),y[8]||(y[8]=l.createElementVNode("div",{class:"clock-hand-center"},null,-1))],544)):l.createCommentVNode("",!0),l.createElementVNode("div",_Tg,[l.createElementVNode("div",{class:"time-picker-actions__switch",onClick:y[4]||(y[4]=R=>t.openClock=!t.openClock)},[l.createVNode(Yg,{name:t.openClock?l.unref(mg).keyboard:l.unref(mg).time},null,8,["name"])]),l.createVNode(nI,{size:l.unref(YI).little,type:l.unref(II).ghost,onClick:G},{default:l.withCtx(()=>[...y[9]||(y[9]=[l.createTextVNode("Отменить ",-1)])]),_:1},8,["size","type"]),l.createVNode(nI,{size:l.unref(YI).little,type:l.unref(II).primary,onClick:B},{default:l.withCtx(()=>[...y[10]||(y[10]=[l.createTextVNode("Сохранить ",-1)])]),_:1},8,["size","type"])])])]),_:1},8,["open"])],2))}}),[["__scopeId","data-v-4edbd9e5"]]),qTg=["data-testid"],$Tg=["data-testid"],gLg=["data-testid"],ILg=vg(l.defineComponent({__name:"DataPickerChoose",props:l.mergeModels({value:{},isActive:{type:Boolean},isTimeSelect:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerChoose"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","click","change"],["update:modelValue"]),setup(C,{emit:g}){const I=C,e=l.reactive({defaultValue:"-- -- ----",value:"",isActive:!1}),t=g,i=l.useModel(C,"modelValue");l.watchEffect(()=>e.isActive=I.isActive),l.watchEffect(()=>e.value=I.value);const A=a=>{t("change",a)},n=()=>{t("clear")},s=()=>{t("click")},o=a=>{if(!a)return null;const d=a.indexOf(" "),m=d===-1?3:Math.min(d,3);return`${a.charAt(0).toUpperCase()}${a.slice(1,m)}${a.slice(d)}`};return(a,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["data-picker-choose",{"data-picker-choose_time":I.isTimeSelect}])},[l.createElementVNode("button",{onClick:s,class:l.normalizeClass(["date-picker-yui-kit__header-btn",{"date-picker-yui-kit__header-btn_table-view":I.isSmall},{"date-picker-yui-kit__header-btn_range-view":I.isRange},{"date-disable-yui-kit":I.disabled},{"date-active-yui-kit":e.isActive}]),"data-testid":`${I.dataTestid}-HeaderBtn-Trigger`},[l.createVNode(Yg,{name:l.unref(mg).calendar,"data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"]),e.value?(l.openBlock(),l.createElementBlock("span",{key:0,"data-testid":`${I.dataTestid}-Value-Display`},l.toDisplayString(o(e.value)),9,$Tg)):(l.openBlock(),l.createElementBlock("span",{key:1,class:"date-picker-yui-kit__header-btn__dash","data-testid":`${I.dataTestid}-HeaderBtnDash-Placeholder`},l.toDisplayString(e.defaultValue),9,gLg)),e.value&&!I.isTimeSelect?(l.openBlock(),l.createBlock(nI,{key:2,size:l.unref(YI).small,type:l.unref(II).ghost,disabled:I.disabled,onClick:l.withModifiers(n,["stop"]),class:"date-picker-close-yui-kit","data-testid":`${I.dataTestid}-Button-Clear`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).crossSmall,"data-testid":`${I.dataTestid}-ButtonClose-Icon`},null,8,["name","data-testid"])]),_:1},8,["size","type","disabled","data-testid"])):l.createCommentVNode("",!0)],10,qTg),I.isTimeSelect?(l.openBlock(),l.createBlock(GW,{key:0,disabled:I.disabled,class:"data-picker-choose__time-picker",modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=m=>i.value=m),A]},null,8,["disabled","modelValue"])):l.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-a0c69a64"]]),KD=["top","right","bottom","left"],zD=["start","end"],JD=KD.reduce((C,g)=>C.concat(g,g+"-"+zD[0],g+"-"+zD[1]),[]),Hn=Math.min,Dt=Math.max,wW=Math.round,WW=Math.floor,ul=C=>({x:C,y:C}),CLg={left:"right",right:"left",bottom:"top",top:"bottom"};function iV(C,g,I){return Dt(C,Hn(g,I))}function fn(C,g){return typeof C=="function"?C(g):C}function eA(C){return C.split("-")[0]}function Sn(C){return C.split("-")[1]}function AV(C){return C==="x"?"y":"x"}function nV(C){return C==="y"?"height":"width"}function Dn(C){const g=C[0];return g==="t"||g==="b"?"y":"x"}function lV(C){return AV(Dn(C))}function xD(C,g,I){I===void 0&&(I=!1);const e=Sn(C),t=lV(C),i=nV(t);let A=t==="x"?e===(I?"end":"start")?"right":"left":e==="start"?"bottom":"top";return g.reference[i]>g.floating[i]&&(A=pW(A)),[A,pW(A)]}function eLg(C){const g=pW(C);return[BW(C),g,BW(g)]}function BW(C){return C.includes("start")?C.replace("start","end"):C.replace("end","start")}const TD=["left","right"],LD=["right","left"],tLg=["top","bottom"],iLg=["bottom","top"];function ALg(C,g,I){switch(C){case"top":case"bottom":return I?g?LD:TD:g?TD:LD;case"left":case"right":return g?tLg:iLg;default:return[]}}function nLg(C,g,I,e){const t=Sn(C);let i=ALg(eA(C),I==="start",e);return t&&(i=i.map(A=>A+"-"+t),g&&(i=i.concat(i.map(BW)))),i}function pW(C){const g=eA(C);return CLg[g]+C.slice(g.length)}function lLg(C){return{top:0,right:0,bottom:0,left:0,...C}}function sV(C){return typeof C!="number"?lLg(C):{top:C,right:C,bottom:C,left:C}}function Tr(C){const{x:g,y:I,width:e,height:t}=C;return{width:e,height:t,top:I,left:g,right:g+e,bottom:I+t,x:g,y:I}}function vD(C,g,I){let{reference:e,floating:t}=C;const i=Dn(g),A=lV(g),n=nV(A),s=eA(g),o=i==="y",a=e.x+e.width/2-t.width/2,d=e.y+e.height/2-t.height/2,m=e[n]/2-t[n]/2;let Z;switch(s){case"top":Z={x:a,y:e.y-t.height};break;case"bottom":Z={x:a,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:d};break;case"left":Z={x:e.x-t.width,y:d};break;default:Z={x:e.x,y:e.y}}switch(Sn(g)){case"start":Z[A]-=m*(I&&o?-1:1);break;case"end":Z[A]+=m*(I&&o?-1:1);break}return Z}async function jD(C,g){var I;g===void 0&&(g={});const{x:e,y:t,platform:i,rects:A,elements:n,strategy:s}=C,{boundary:o="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:m=!1,padding:Z=0}=fn(g,C),b=sV(Z),G=n[m?d==="floating"?"reference":"floating":d],w=Tr(await i.getClippingRect({element:(I=await(i.isElement==null?void 0:i.isElement(G)))==null||I?G:G.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(n.floating)),boundary:o,rootBoundary:a,strategy:s})),B=d==="floating"?{x:e,y:t,width:A.floating.width,height:A.floating.height}:A.reference,p=await(i.getOffsetParent==null?void 0:i.getOffsetParent(n.floating)),Y=await(i.isElement==null?void 0:i.isElement(p))?await(i.getScale==null?void 0:i.getScale(p))||{x:1,y:1}:{x:1,y:1},y=Tr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:B,offsetParent:p,strategy:s}):B);return{top:(w.top-y.top+b.top)/Y.y,bottom:(y.bottom-w.bottom+b.bottom)/Y.y,left:(w.left-y.left+b.left)/Y.x,right:(y.right-w.right+b.right)/Y.x}}const sLg=50,oLg=async(C,g,I)=>{const{placement:e="bottom",strategy:t="absolute",middleware:i=[],platform:A}=I,n=A.detectOverflow?A:{...A,detectOverflow:jD},s=await(A.isRTL==null?void 0:A.isRTL(g));let o=await A.getElementRects({reference:C,floating:g,strategy:t}),{x:a,y:d}=vD(o,e,s),m=e,Z=0;const b={};for(let h=0;h<i.length;h++){const G=i[h];if(!G)continue;const{name:w,fn:B}=G,{x:p,y:Y,data:y,reset:R}=await B({x:a,y:d,initialPlacement:e,placement:m,strategy:t,middlewareData:b,rects:o,platform:n,elements:{reference:C,floating:g}});a=p??a,d=Y??d,b[w]={...b[w],...y},R&&Z<sLg&&(Z++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(o=R.rects===!0?await A.getElementRects({reference:C,floating:g,strategy:t}):R.rects),{x:a,y:d}=vD(o,m,s)),h=-1)}return{x:a,y:d,placement:m,strategy:t,middlewareData:b}},aLg=C=>({name:"arrow",options:C,async fn(g){const{x:I,y:e,placement:t,rects:i,platform:A,elements:n,middlewareData:s}=g,{element:o,padding:a=0}=fn(C,g)||{};if(o==null)return{};const d=sV(a),m={x:I,y:e},Z=lV(t),b=nV(Z),h=await A.getDimensions(o),G=Z==="y",w=G?"top":"left",B=G?"bottom":"right",p=G?"clientHeight":"clientWidth",Y=i.reference[b]+i.reference[Z]-m[Z]-i.floating[b],y=m[Z]-i.reference[Z],R=await(A.getOffsetParent==null?void 0:A.getOffsetParent(o));let X=R?R[p]:0;(!X||!await(A.isElement==null?void 0:A.isElement(R)))&&(X=n.floating[p]||i.floating[b]);const K=Y/2-y/2,D=X/2-h[b]/2-1,F=Hn(d[w],D),z=Hn(d[B],D),v=F,O=X-h[b]-z,eg=X/2-h[b]/2+K,E=iV(v,eg,O),T=!s.arrow&&Sn(t)!=null&&eg!==E&&i.reference[b]/2-(eg<v?F:z)-h[b]/2<0,q=T?eg<v?eg-v:eg-O:0;return{[Z]:m[Z]+q,data:{[Z]:E,centerOffset:eg-E-q,...T&&{alignmentOffset:q}},reset:T}}});function dLg(C,g,I){return(C?[...I.filter(t=>Sn(t)===C),...I.filter(t=>Sn(t)!==C)]:I.filter(t=>eA(t)===t)).filter(t=>C?Sn(t)===C||(g?BW(t)!==t:!1):!0)}const cLg=function(C){return C===void 0&&(C={}),{name:"autoPlacement",options:C,async fn(g){var I,e,t;const{rects:i,middlewareData:A,placement:n,platform:s,elements:o}=g,{crossAxis:a=!1,alignment:d,allowedPlacements:m=JD,autoAlignment:Z=!0,...b}=fn(C,g),h=d!==void 0||m===JD?dLg(d||null,Z,m):m,G=await s.detectOverflow(g,b),w=((I=A.autoPlacement)==null?void 0:I.index)||0,B=h[w];if(B==null)return{};const p=xD(B,i,await(s.isRTL==null?void 0:s.isRTL(o.floating)));if(n!==B)return{reset:{placement:h[0]}};const Y=[G[eA(B)],G[p[0]],G[p[1]]],y=[...((e=A.autoPlacement)==null?void 0:e.overflows)||[],{placement:B,overflows:Y}],R=h[w+1];if(R)return{data:{index:w+1,overflows:y},reset:{placement:R}};const X=y.map(F=>{const z=Sn(F.placement);return[F.placement,z&&a?F.overflows.slice(0,2).reduce((v,O)=>v+O,0):F.overflows[0],F.overflows]}).sort((F,z)=>F[1]-z[1]),D=((t=X.filter(F=>F[2].slice(0,Sn(F[0])?2:3).every(z=>z<=0))[0])==null?void 0:t[0])||X[0][0];return D!==n?{data:{index:w+1,overflows:y},reset:{placement:D}}:{}}}},mLg=function(C){return C===void 0&&(C={}),{name:"flip",options:C,async fn(g){var I,e;const{placement:t,middlewareData:i,rects:A,initialPlacement:n,platform:s,elements:o}=g,{mainAxis:a=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...G}=fn(C,g);if((I=i.arrow)!=null&&I.alignmentOffset)return{};const w=eA(t),B=Dn(n),p=eA(n)===n,Y=await(s.isRTL==null?void 0:s.isRTL(o.floating)),y=m||(p||!h?[pW(n)]:eLg(n)),R=b!=="none";!m&&R&&y.push(...nLg(n,h,b,Y));const X=[n,...y],K=await s.detectOverflow(g,G),D=[];let F=((e=i.flip)==null?void 0:e.overflows)||[];if(a&&D.push(K[w]),d){const eg=xD(t,A,Y);D.push(K[eg[0]],K[eg[1]])}if(F=[...F,{placement:t,overflows:D}],!D.every(eg=>eg<=0)){var z,v;const eg=(((z=i.flip)==null?void 0:z.index)||0)+1,E=X[eg];if(E&&(!(d==="alignment"?B!==Dn(E):!1)||F.every(cg=>Dn(cg.placement)===B?cg.overflows[0]>0:!0)))return{data:{index:eg,overflows:F},reset:{placement:E}};let T=(v=F.filter(q=>q.overflows[0]<=0).sort((q,cg)=>q.overflows[1]-cg.overflows[1])[0])==null?void 0:v.placement;if(!T)switch(Z){case"bestFit":{var O;const q=(O=F.filter(cg=>{if(R){const og=Dn(cg.placement);return og===B||og==="y"}return!0}).map(cg=>[cg.placement,cg.overflows.filter(og=>og>0).reduce((og,Wg)=>og+Wg,0)]).sort((cg,og)=>cg[1]-og[1])[0])==null?void 0:O[0];q&&(T=q);break}case"initialPlacement":T=n;break}if(t!==T)return{reset:{placement:T}}}return{}}}};function QD(C,g){return{top:C.top-g.height,right:C.right-g.width,bottom:C.bottom-g.height,left:C.left-g.width}}function OD(C){return KD.some(g=>C[g]>=0)}const rLg=function(C){return C===void 0&&(C={}),{name:"hide",options:C,async fn(g){const{rects:I,platform:e}=g,{strategy:t="referenceHidden",...i}=fn(C,g);switch(t){case"referenceHidden":{const A=await e.detectOverflow(g,{...i,elementContext:"reference"}),n=QD(A,I.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:OD(n)}}}case"escaped":{const A=await e.detectOverflow(g,{...i,altBoundary:!0}),n=QD(A,I.floating);return{data:{escapedOffsets:n,escaped:OD(n)}}}default:return{}}}}};function UD(C){const g=Hn(...C.map(i=>i.left)),I=Hn(...C.map(i=>i.top)),e=Dt(...C.map(i=>i.right)),t=Dt(...C.map(i=>i.bottom));return{x:g,y:I,width:e-g,height:t-I}}function ZLg(C){const g=C.slice().sort((t,i)=>t.y-i.y),I=[];let e=null;for(let t=0;t<g.length;t++){const i=g[t];!e||i.y-e.y>e.height/2?I.push([i]):I[I.length-1].push(i),e=i}return I.map(t=>Tr(UD(t)))}const bLg=function(C){return C===void 0&&(C={}),{name:"inline",options:C,async fn(g){const{placement:I,elements:e,rects:t,platform:i,strategy:A}=g,{padding:n=2,x:s,y:o}=fn(C,g),a=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(e.reference))||[]),d=ZLg(a),m=Tr(UD(a)),Z=sV(n);function b(){if(d.length===2&&d[0].left>d[1].right&&s!=null&&o!=null)return d.find(G=>s>G.left-Z.left&&s<G.right+Z.right&&o>G.top-Z.top&&o<G.bottom+Z.bottom)||m;if(d.length>=2){if(Dn(I)==="y"){const F=d[0],z=d[d.length-1],v=eA(I)==="top",O=F.top,eg=z.bottom,E=v?F.left:z.left,T=v?F.right:z.right,q=T-E,cg=eg-O;return{top:O,bottom:eg,left:E,right:T,width:q,height:cg,x:E,y:O}}const G=eA(I)==="left",w=Dt(...d.map(F=>F.right)),B=Hn(...d.map(F=>F.left)),p=d.filter(F=>G?F.left===B:F.right===w),Y=p[0].top,y=p[p.length-1].bottom,R=B,X=w,K=X-R,D=y-Y;return{top:Y,bottom:y,left:R,right:X,width:K,height:D,x:R,y:Y}}return m}const h=await i.getElementRects({reference:{getBoundingClientRect:b},floating:e.floating,strategy:A});return t.reference.x!==h.reference.x||t.reference.y!==h.reference.y||t.reference.width!==h.reference.width||t.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},ED=new Set(["left","top"]);async function uLg(C,g){const{placement:I,platform:e,elements:t}=C,i=await(e.isRTL==null?void 0:e.isRTL(t.floating)),A=eA(I),n=Sn(I),s=Dn(I)==="y",o=ED.has(A)?-1:1,a=i&&s?-1:1,d=fn(g,C);let{mainAxis:m,crossAxis:Z,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return n&&typeof b=="number"&&(Z=n==="end"?b*-1:b),s?{x:Z*a,y:m*o}:{x:m*o,y:Z*a}}const hLg=function(C){return C===void 0&&(C=0),{name:"offset",options:C,async fn(g){var I,e;const{x:t,y:i,placement:A,middlewareData:n}=g,s=await uLg(g,C);return A===((I=n.offset)==null?void 0:I.placement)&&(e=n.arrow)!=null&&e.alignmentOffset?{}:{x:t+s.x,y:i+s.y,data:{...s,placement:A}}}}},GLg=function(C){return C===void 0&&(C={}),{name:"shift",options:C,async fn(g){const{x:I,y:e,placement:t,platform:i}=g,{mainAxis:A=!0,crossAxis:n=!1,limiter:s={fn:w=>{let{x:B,y:p}=w;return{x:B,y:p}}},...o}=fn(C,g),a={x:I,y:e},d=await i.detectOverflow(g,o),m=Dn(eA(t)),Z=AV(m);let b=a[Z],h=a[m];if(A){const w=Z==="y"?"top":"left",B=Z==="y"?"bottom":"right",p=b+d[w],Y=b-d[B];b=iV(p,b,Y)}if(n){const w=m==="y"?"top":"left",B=m==="y"?"bottom":"right",p=h+d[w],Y=h-d[B];h=iV(p,h,Y)}const G=s.fn({...g,[Z]:b,[m]:h});return{...G,data:{x:G.x-I,y:G.y-e,enabled:{[Z]:A,[m]:n}}}}}},wLg=function(C){return C===void 0&&(C={}),{options:C,fn(g){const{x:I,y:e,placement:t,rects:i,middlewareData:A}=g,{offset:n=0,mainAxis:s=!0,crossAxis:o=!0}=fn(C,g),a={x:I,y:e},d=Dn(t),m=AV(d);let Z=a[m],b=a[d];const h=fn(n,g),G=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const p=m==="y"?"height":"width",Y=i.reference[m]-i.floating[p]+G.mainAxis,y=i.reference[m]+i.reference[p]-G.mainAxis;Z<Y?Z=Y:Z>y&&(Z=y)}if(o){var w,B;const p=m==="y"?"width":"height",Y=ED.has(eA(t)),y=i.reference[d]-i.floating[p]+(Y&&((w=A.offset)==null?void 0:w[d])||0)+(Y?0:G.crossAxis),R=i.reference[d]+i.reference[p]+(Y?0:((B=A.offset)==null?void 0:B[d])||0)-(Y?G.crossAxis:0);b<y?b=y:b>R&&(b=R)}return{[m]:Z,[d]:b}}}},WLg=function(C){return C===void 0&&(C={}),{name:"size",options:C,async fn(g){var I,e;const{placement:t,rects:i,platform:A,elements:n}=g,{apply:s=()=>{},...o}=fn(C,g),a=await A.detectOverflow(g,o),d=eA(t),m=Sn(t),Z=Dn(t)==="y",{width:b,height:h}=i.floating;let G,w;d==="top"||d==="bottom"?(G=d,w=m===(await(A.isRTL==null?void 0:A.isRTL(n.floating))?"start":"end")?"left":"right"):(w=d,G=m==="end"?"top":"bottom");const B=h-a.top-a.bottom,p=b-a.left-a.right,Y=Hn(h-a[G],B),y=Hn(b-a[w],p),R=!g.middlewareData.shift;let X=Y,K=y;if((I=g.middlewareData.shift)!=null&&I.enabled.x&&(K=p),(e=g.middlewareData.shift)!=null&&e.enabled.y&&(X=B),R&&!m){const F=Dt(a.left,0),z=Dt(a.right,0),v=Dt(a.top,0),O=Dt(a.bottom,0);Z?K=b-2*(F!==0||z!==0?F+z:Dt(a.left,a.right)):X=h-2*(v!==0||O!==0?v+O:Dt(a.top,a.bottom))}await s({...g,availableWidth:K,availableHeight:X});const D=await A.getDimensions(n.floating);return b!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function YW(){return typeof window<"u"}function tc(C){return oV(C)?(C.nodeName||"").toLowerCase():"#document"}function tA(C){var g;return(C==null||(g=C.ownerDocument)==null?void 0:g.defaultView)||window}function hl(C){var g;return(g=(oV(C)?C.ownerDocument:C.document)||window.document)==null?void 0:g.documentElement}function oV(C){return YW()?C instanceof Node||C instanceof tA(C).Node:!1}function kn(C){return YW()?C instanceof Element||C instanceof tA(C).Element:!1}function rs(C){return YW()?C instanceof HTMLElement||C instanceof tA(C).HTMLElement:!1}function PD(C){return!YW()||typeof ShadowRoot>"u"?!1:C instanceof ShadowRoot||C instanceof tA(C).ShadowRoot}function au(C){const{overflow:g,overflowX:I,overflowY:e,display:t}=Fn(C);return/auto|scroll|overlay|hidden|clip/.test(g+e+I)&&t!=="inline"&&t!=="contents"}function BLg(C){return/^(table|td|th)$/.test(tc(C))}function yW(C){try{if(C.matches(":popover-open"))return!0}catch{}try{return C.matches(":modal")}catch{return!1}}const pLg=/transform|translate|scale|rotate|perspective|filter/,YLg=/paint|layout|strict|content/,ic=C=>!!C&&C!=="none";let aV;function dV(C){const g=kn(C)?Fn(C):C;return ic(g.transform)||ic(g.translate)||ic(g.scale)||ic(g.rotate)||ic(g.perspective)||!cV()&&(ic(g.backdropFilter)||ic(g.filter))||pLg.test(g.willChange||"")||YLg.test(g.contain||"")}function yLg(C){let g=Ca(C);for(;rs(g)&&!Lr(g);){if(dV(g))return g;if(yW(g))return null;g=Ca(g)}return null}function cV(){return aV==null&&(aV=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),aV}function Lr(C){return/^(html|body|#document)$/.test(tc(C))}function Fn(C){return tA(C).getComputedStyle(C)}function NW(C){return kn(C)?{scrollLeft:C.scrollLeft,scrollTop:C.scrollTop}:{scrollLeft:C.scrollX,scrollTop:C.scrollY}}function Ca(C){if(tc(C)==="html")return C;const g=C.assignedSlot||C.parentNode||PD(C)&&C.host||hl(C);return PD(g)?g.host:g}function _D(C){const g=Ca(C);return Lr(g)?C.ownerDocument?C.ownerDocument.body:C.body:rs(g)&&au(g)?g:_D(g)}function vr(C,g,I){var e;g===void 0&&(g=[]),I===void 0&&(I=!0);const t=_D(C),i=t===((e=C.ownerDocument)==null?void 0:e.body),A=tA(t);if(i){const n=mV(A);return g.concat(A,A.visualViewport||[],au(t)?t:[],n&&I?vr(n):[])}else return g.concat(t,vr(t,[],I))}function mV(C){return C.parent&&Object.getPrototypeOf(C.parent)?C.frameElement:null}function qD(C){const g=Fn(C);let I=parseFloat(g.width)||0,e=parseFloat(g.height)||0;const t=rs(C),i=t?C.offsetWidth:I,A=t?C.offsetHeight:e,n=wW(I)!==i||wW(e)!==A;return n&&(I=i,e=A),{width:I,height:e,$:n}}function rV(C){return kn(C)?C:C.contextElement}function jr(C){const g=rV(C);if(!rs(g))return ul(1);const I=g.getBoundingClientRect(),{width:e,height:t,$:i}=qD(g);let A=(i?wW(I.width):I.width)/e,n=(i?wW(I.height):I.height)/t;return(!A||!Number.isFinite(A))&&(A=1),(!n||!Number.isFinite(n))&&(n=1),{x:A,y:n}}const NLg=ul(0);function $D(C){const g=tA(C);return!cV()||!g.visualViewport?NLg:{x:g.visualViewport.offsetLeft,y:g.visualViewport.offsetTop}}function VLg(C,g,I){return g===void 0&&(g=!1),!I||g&&I!==tA(C)?!1:g}function Ac(C,g,I,e){g===void 0&&(g=!1),I===void 0&&(I=!1);const t=C.getBoundingClientRect(),i=rV(C);let A=ul(1);g&&(e?kn(e)&&(A=jr(e)):A=jr(C));const n=VLg(i,I,e)?$D(i):ul(0);let s=(t.left+n.x)/A.x,o=(t.top+n.y)/A.y,a=t.width/A.x,d=t.height/A.y;if(i){const m=tA(i),Z=e&&kn(e)?tA(e):e;let b=m,h=mV(b);for(;h&&e&&Z!==b;){const G=jr(h),w=h.getBoundingClientRect(),B=Fn(h),p=w.left+(h.clientLeft+parseFloat(B.paddingLeft))*G.x,Y=w.top+(h.clientTop+parseFloat(B.paddingTop))*G.y;s*=G.x,o*=G.y,a*=G.x,d*=G.y,s+=p,o+=Y,b=tA(h),h=mV(b)}}return Tr({width:a,height:d,x:s,y:o})}function VW(C,g){const I=NW(C).scrollLeft;return g?g.left+I:Ac(hl(C)).left+I}function gk(C,g){const I=C.getBoundingClientRect(),e=I.left+g.scrollLeft-VW(C,I),t=I.top+g.scrollTop;return{x:e,y:t}}function XLg(C){let{elements:g,rect:I,offsetParent:e,strategy:t}=C;const i=t==="fixed",A=hl(e),n=g?yW(g.floating):!1;if(e===A||n&&i)return I;let s={scrollLeft:0,scrollTop:0},o=ul(1);const a=ul(0),d=rs(e);if((d||!d&&!i)&&((tc(e)!=="body"||au(A))&&(s=NW(e)),d)){const Z=Ac(e);o=jr(e),a.x=Z.x+e.clientLeft,a.y=Z.y+e.clientTop}const m=A&&!d&&!i?gk(A,s):ul(0);return{width:I.width*o.x,height:I.height*o.y,x:I.x*o.x-s.scrollLeft*o.x+a.x+m.x,y:I.y*o.y-s.scrollTop*o.y+a.y+m.y}}function RLg(C){return Array.from(C.getClientRects())}function MLg(C){const g=hl(C),I=NW(C),e=C.ownerDocument.body,t=Dt(g.scrollWidth,g.clientWidth,e.scrollWidth,e.clientWidth),i=Dt(g.scrollHeight,g.clientHeight,e.scrollHeight,e.clientHeight);let A=-I.scrollLeft+VW(C);const n=-I.scrollTop;return Fn(e).direction==="rtl"&&(A+=Dt(g.clientWidth,e.clientWidth)-t),{width:t,height:i,x:A,y:n}}const Ik=25;function HLg(C,g){const I=tA(C),e=hl(C),t=I.visualViewport;let i=e.clientWidth,A=e.clientHeight,n=0,s=0;if(t){i=t.width,A=t.height;const a=cV();(!a||a&&g==="fixed")&&(n=t.offsetLeft,s=t.offsetTop)}const o=VW(e);if(o<=0){const a=e.ownerDocument,d=a.body,m=getComputedStyle(d),Z=a.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(e.clientWidth-d.clientWidth-Z);b<=Ik&&(i-=b)}else o<=Ik&&(i+=o);return{width:i,height:A,x:n,y:s}}function fLg(C,g){const I=Ac(C,!0,g==="fixed"),e=I.top+C.clientTop,t=I.left+C.clientLeft,i=rs(C)?jr(C):ul(1),A=C.clientWidth*i.x,n=C.clientHeight*i.y,s=t*i.x,o=e*i.y;return{width:A,height:n,x:s,y:o}}function Ck(C,g,I){let e;if(g==="viewport")e=HLg(C,I);else if(g==="document")e=MLg(hl(C));else if(kn(g))e=fLg(g,I);else{const t=$D(C);e={x:g.x-t.x,y:g.y-t.y,width:g.width,height:g.height}}return Tr(e)}function ek(C,g){const I=Ca(C);return I===g||!kn(I)||Lr(I)?!1:Fn(I).position==="fixed"||ek(I,g)}function SLg(C,g){const I=g.get(C);if(I)return I;let e=vr(C,[],!1).filter(n=>kn(n)&&tc(n)!=="body"),t=null;const i=Fn(C).position==="fixed";let A=i?Ca(C):C;for(;kn(A)&&!Lr(A);){const n=Fn(A),s=dV(A);!s&&n.position==="fixed"&&(t=null),(i?!s&&!t:!s&&n.position==="static"&&!!t&&(t.position==="absolute"||t.position==="fixed")||au(A)&&!s&&ek(C,A))?e=e.filter(a=>a!==A):t=n,A=Ca(A)}return g.set(C,e),e}function DLg(C){let{element:g,boundary:I,rootBoundary:e,strategy:t}=C;const A=[...I==="clippingAncestors"?yW(g)?[]:SLg(g,this._c):[].concat(I),e],n=Ck(g,A[0],t);let s=n.top,o=n.right,a=n.bottom,d=n.left;for(let m=1;m<A.length;m++){const Z=Ck(g,A[m],t);s=Dt(Z.top,s),o=Hn(Z.right,o),a=Hn(Z.bottom,a),d=Dt(Z.left,d)}return{width:o-d,height:a-s,x:d,y:s}}function kLg(C){const{width:g,height:I}=qD(C);return{width:g,height:I}}function FLg(C,g,I){const e=rs(g),t=hl(g),i=I==="fixed",A=Ac(C,!0,i,g);let n={scrollLeft:0,scrollTop:0};const s=ul(0);function o(){s.x=VW(t)}if(e||!e&&!i)if((tc(g)!=="body"||au(t))&&(n=NW(g)),e){const Z=Ac(g,!0,i,g);s.x=Z.x+g.clientLeft,s.y=Z.y+g.clientTop}else t&&o();i&&!e&&t&&o();const a=t&&!e&&!i?gk(t,n):ul(0),d=A.left+n.scrollLeft-s.x-a.x,m=A.top+n.scrollTop-s.y-a.y;return{x:d,y:m,width:A.width,height:A.height}}function ZV(C){return Fn(C).position==="static"}function tk(C,g){if(!rs(C)||Fn(C).position==="fixed")return null;if(g)return g(C);let I=C.offsetParent;return hl(C)===I&&(I=I.ownerDocument.body),I}function ik(C,g){const I=tA(C);if(yW(C))return I;if(!rs(C)){let t=Ca(C);for(;t&&!Lr(t);){if(kn(t)&&!ZV(t))return t;t=Ca(t)}return I}let e=tk(C,g);for(;e&&BLg(e)&&ZV(e);)e=tk(e,g);return e&&Lr(e)&&ZV(e)&&!dV(e)?I:e||yLg(C)||I}const KLg=async function(C){const g=this.getOffsetParent||ik,I=this.getDimensions,e=await I(C.floating);return{reference:FLg(C.reference,await g(C.floating),C.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function zLg(C){return Fn(C).direction==="rtl"}const Ak={convertOffsetParentRelativeRectToViewportRelativeRect:XLg,getDocumentElement:hl,getClippingRect:DLg,getOffsetParent:ik,getElementRects:KLg,getClientRects:RLg,getDimensions:kLg,getScale:jr,isElement:kn,isRTL:zLg};function nk(C,g){return C.x===g.x&&C.y===g.y&&C.width===g.width&&C.height===g.height}function JLg(C,g){let I=null,e;const t=hl(C);function i(){var n;clearTimeout(e),(n=I)==null||n.disconnect(),I=null}function A(n,s){n===void 0&&(n=!1),s===void 0&&(s=1),i();const o=C.getBoundingClientRect(),{left:a,top:d,width:m,height:Z}=o;if(n||g(),!m||!Z)return;const b=WW(d),h=WW(t.clientWidth-(a+m)),G=WW(t.clientHeight-(d+Z)),w=WW(a),p={rootMargin:-b+"px "+-h+"px "+-G+"px "+-w+"px",threshold:Dt(0,Hn(1,s))||1};let Y=!0;function y(R){const X=R[0].intersectionRatio;if(X!==s){if(!Y)return A();X?A(!1,X):e=setTimeout(()=>{A(!1,1e-7)},1e3)}X===1&&!nk(o,C.getBoundingClientRect())&&A(),Y=!1}try{I=new IntersectionObserver(y,{...p,root:t.ownerDocument})}catch{I=new IntersectionObserver(y,p)}I.observe(C)}return A(!0),i}function lk(C,g,I,e){e===void 0&&(e={});const{ancestorScroll:t=!0,ancestorResize:i=!0,elementResize:A=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:s=!1}=e,o=rV(C),a=t||i?[...o?vr(o):[],...g?vr(g):[]]:[];a.forEach(w=>{t&&w.addEventListener("scroll",I,{passive:!0}),i&&w.addEventListener("resize",I)});const d=o&&n?JLg(o,I):null;let m=-1,Z=null;A&&(Z=new ResizeObserver(w=>{let[B]=w;B&&B.target===o&&Z&&g&&(Z.unobserve(g),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var p;(p=Z)==null||p.observe(g)})),I()}),o&&!s&&Z.observe(o),g&&Z.observe(g));let b,h=s?Ac(C):null;s&&G();function G(){const w=Ac(C);h&&!nk(h,w)&&I(),h=w,b=requestAnimationFrame(G)}return I(),()=>{var w;a.forEach(B=>{t&&B.removeEventListener("scroll",I),i&&B.removeEventListener("resize",I)}),d==null||d(),(w=Z)==null||w.disconnect(),Z=null,s&&cancelAnimationFrame(b)}}const xLg=jD,sk=hLg,ok=cLg,TLg=GLg,LLg=mLg,vLg=WLg,jLg=rLg,QLg=aLg,OLg=bLg,ULg=wLg,ak=(C,g,I)=>{const e=new Map,t={platform:Ak,...I},i={...t.platform,_c:e};return oLg(C,g,{...t,platform:i})};function ELg(C){return C!=null&&typeof C=="object"&&"$el"in C}function bV(C){if(ELg(C)){const g=C.$el;return oV(g)&&tc(g)==="#comment"?null:g}return C}function Qr(C){return typeof C=="function"?C():l.unref(C)}function PLg(C){return{name:"arrow",options:C,fn(g){const I=bV(Qr(C.element));return I==null?{}:QLg({element:I,padding:C.padding}).fn(g)}}}function dk(C){return typeof window>"u"?1:(C.ownerDocument.defaultView||window).devicePixelRatio||1}function ck(C,g){const I=dk(C);return Math.round(g*I)/I}function mk(C,g,I){I===void 0&&(I={});const e=I.whileElementsMounted,t=l.computed(()=>{var X;return(X=Qr(I.open))!=null?X:!0}),i=l.computed(()=>Qr(I.middleware)),A=l.computed(()=>{var X;return(X=Qr(I.placement))!=null?X:"bottom"}),n=l.computed(()=>{var X;return(X=Qr(I.strategy))!=null?X:"absolute"}),s=l.computed(()=>{var X;return(X=Qr(I.transform))!=null?X:!0}),o=l.computed(()=>bV(C.value)),a=l.computed(()=>bV(g.value)),d=l.ref(0),m=l.ref(0),Z=l.ref(n.value),b=l.ref(A.value),h=l.shallowRef({}),G=l.ref(!1),w=l.computed(()=>{const X={position:Z.value,left:"0",top:"0"};if(!a.value)return X;const K=ck(a.value,d.value),D=ck(a.value,m.value);return s.value?{...X,transform:"translate("+K+"px, "+D+"px)",...dk(a.value)>=1.5&&{willChange:"transform"}}:{position:Z.value,left:K+"px",top:D+"px"}});let B;function p(){if(o.value==null||a.value==null)return;const X=t.value;ak(o.value,a.value,{middleware:i.value,placement:A.value,strategy:n.value}).then(K=>{d.value=K.x,m.value=K.y,Z.value=K.strategy,b.value=K.placement,h.value=K.middlewareData,G.value=X!==!1})}function Y(){typeof B=="function"&&(B(),B=void 0)}function y(){if(Y(),e===void 0){p();return}if(o.value!=null&&a.value!=null){B=e(o.value,a.value,p);return}}function R(){t.value||(G.value=!1)}return l.watch([i,A,n,t],p,{flush:"sync"}),l.watch([o,a],y,{flush:"sync"}),l.watch(t,R,{flush:"sync"}),l.getCurrentScope()&&l.onScopeDispose(Y),{x:l.shallowReadonly(d),y:l.shallowReadonly(m),strategy:l.shallowReadonly(Z),placement:l.shallowReadonly(b),middlewareData:l.shallowReadonly(h),isPositioned:l.shallowReadonly(G),floatingStyles:w,update:p}}const _Lg=vg(l.defineComponent({__name:"PopoverWrapper",props:{placement:{default:"bottom-start"},open:{type:Boolean,default:!1}},emits:["unmount-close"],setup(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=l.ref(null),A=l.ref(null),n=l.ref(null),{floatingStyles:s}=mk(i,A,{middleware:[sk(10),ok({crossAxis:!0,allowedPlacements:["top-start","bottom-start"]})],strategy:n.value?"fixed":"absolute",placement:I.placement,whileElementsMounted:lk}),o=()=>{e("unmount-close")},a=d=>{t.value&&!t.value.contains(d.target)&&A.value&&!A.value.contains(d.target)&&o()};return l.onBeforeUnmount(()=>{document.removeEventListener("click",a)}),l.onMounted(()=>{if(document.addEventListener("click",a),t.value){const d=t.value.closest("dialog");d?n.value=d:n.value=document.body}}),(d,m)=>(l.openBlock(),l.createElementBlock("div",{class:"popover-wrapper",ref_key:"popoverWrapper",ref:t},[l.createElementVNode("div",{class:"popover-trigger",ref_key:"popoverTrigger",ref:i},[l.renderSlot(d.$slots,"trigger",{},void 0,!0)],512),(l.openBlock(),l.createBlock(l.Teleport,{to:n.value,disabled:!n.value},[I.open?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"popoverContent",ref:A,class:l.normalizeClass(["popover-content",[`popover-${C.placement}`,{"popover-show":I.open}]]),style:l.normalizeStyle(l.unref(s))},[l.renderSlot(d.$slots,"default",{},void 0,!0)],6)):l.createCommentVNode("",!0)],8,["to","disabled"]))],512))}}),[["__scopeId","data-v-c81c9c79"]]),rk=C=>C instanceof Date&&!isNaN(C.getTime()),XW=C=>{const g=rk(C)&&C!==null?C:new Date;return new Date(Date.UTC(g.getFullYear(),g.getMonth(),g.getDate(),23,59,59,999))},Zk=C=>{const g=rk(C)&&C!==null?C:new Date,I={year:g.getFullYear(),month:g.getMonth(),day:g.getDate()};return new Date(Date.UTC(I.year,I.month,I.day))},qLg=(C,g)=>{if(!C)return"";g!=="ru-RU"&&(g="en-US");const I=new Date(C),e=rW(g),t=I.getDate().toString().padStart(2,"0"),i=I.getFullYear().toString();return`${e[I.getMonth()]} ${t}, ${i}`},$Lg=["data-testid"],gvg=[".date",".minDate",".maxDate","locale","data-testid"],uV=l.defineComponent({__name:"DatePicker",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePicker"}},{modelValue:{},modelModifiers:{}}),emits:l.mergeModels(["clear","change"],["update:modelValue"]),setup(C,{expose:g,emit:I}){const e=C,t=l.reactive({isActive:!1,isOpen:{months:!1,years:!1},isNotClear:!0,startDate:null,endDate:null}),i=I,A=l.useModel(C,"modelValue"),n=l.computed(()=>{if(!A.value)return null;const F=new Date(A.value);return isNaN(F.getTime())?null:F}),s=()=>{t.isNotClear=!1,A.value=null,i("clear"),setTimeout(()=>t.isNotClear=!0,1),a({detail:{date:null}})},o=F=>{i("change",F?new Date(F):null)},a=({detail:F})=>{if(!F)return;let z=F.date;n.value&&z&&(z=new Date(z.getFullYear(),z.getMonth(),z.getDate(),n.value.getHours(),n.value.getMinutes())),A.value=z,t.isActive=!1,i("change",z)},d=()=>{t.isOpen.months=!0,t.isOpen.years=!1},m=()=>{t.isOpen.years=!0,t.isOpen.months=!1},Z=()=>{t.isOpen.months=!1},b=()=>{t.isOpen.years=!1},h=()=>{t.isActive=!1,Z(),b()};l.watchEffect(()=>t.startDate=e.startDate??null),l.watchEffect(()=>t.endDate=e.endDate??null);const G=F=>new Date(F.getFullYear(),F.getMonth(),1),w=F=>new Date(F.getFullYear(),F.getMonth()+1,0,23,59,59,999),B=F=>new Date(F.getFullYear(),0,1),p=F=>new Date(F.getFullYear(),11,31,23,59,59,999),Y=()=>t.isOpen.months&&!t.isOpen.years?"months":t.isOpen.years&&!t.isOpen.months?"years":null,y=F=>{switch(Y()){case"months":return G(F);case"years":return B(F);default:return F}},R=F=>{switch(Y()){case"months":return w(F);case"years":return p(F);default:return F}},X=()=>{const F=t.startDate??new Date;if(e.startDate){const z=n.value??new Date;if(F.valueOf()<=z.valueOf())return y(F);if(F!=null)return y(F)}return null},K=()=>{const F=t.endDate??new Date;if(e.endDate){const z=n.value??new Date;if(F.valueOf()>=z.valueOf())return R(F);if(F!=null)return R(F)}return null},D=()=>{t.isActive=!0};return l.watch(()=>A.value,()=>{A.value||(t.isNotClear=!1,A.value=null,setTimeout(()=>t.isNotClear=!0,1))}),g({clearChoose:s}),(F,z)=>(l.openBlock(),l.createElementBlock("div",{class:"date-picker-yui-kit__wrapper","data-testid":`${e.dataTestid}-Wrapper`},[l.createVNode(_Lg,{open:!e.disabled&&t.isActive,onUnmountClose:h},{trigger:l.withCtx(()=>[l.createVNode(ILg,{onClick:D,onClear:s,modelValue:A.value,"onUpdate:modelValue":z[0]||(z[0]=v=>A.value=v),"is-time-select":e.isSelectTime,"is-active":t.isActive,"is-small":e.isSmall,"is-range":e.isRange,disabled:e.disabled,"data-testid":`${e.dataTestid}-Choose`,value:l.unref(qLg)(A.value||null,e.locale),onChange:o},null,8,["modelValue","is-time-select","is-active","is-small","is-range","disabled","data-testid","value"])]),default:l.withCtx(()=>[l.createElementVNode("col-cal",{".date":n.value,".minDate":X(),".maxDate":K(),locale:e.locale??"ru-RU","data-testid":`${e.dataTestid}-Component`,onShowMonths:d,onShowYears:m,onHideMonths:Z,onHideYears:b,onChangeDate:a,class:"date-picker-yui-kit",onClick:z[1]||(z[1]=l.withModifiers(()=>{},["stop"]))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Object.keys(t.isOpen),v=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:v},[t.isOpen[v]?(l.openBlock(),l.createBlock(Yg,{key:0,class:"open-popup",name:l.unref(mg).chevronUp,width:16,height:16,slot:`${v}-popup-icon`},null,8,["name","slot"])):(l.openBlock(),l.createBlock(Yg,{key:1,class:"date-picker__icon date-picker__icon_area",name:l.unref(mg).chevronDown,width:16,height:16,slot:`${v}-popup-icon`},null,8,["name","slot"]))],64))),128)),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-left-button",name:l.unref(mg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"icon-right-button",name:l.unref(mg).chevronRight,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-left",name:l.unref(mg).chevronLeft,width:16,height:16},null,8,["name"]),l.createVNode(Yg,{class:"date-picker__icon",slot:"years-icon-right",name:l.unref(mg).chevronRight,width:16,height:16},null,8,["name"])],40,gvg)]),_:1},8,["open"])],8,$Lg))}});var nc=(C=>(C.start="start",C.end="end",C))(nc||{});const Ivg=["data-testid"],Cvg=["data-testid"],evg=vg(l.defineComponent({__name:"DatePickerRange",props:l.mergeModels({range:{},locale:{default:"ru-RU"},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"DatePickerRange"}},{startDate:{},startDateModifiers:{},endDate:{},endDateModifiers:{}}),emits:l.mergeModels(["change"],["update:startDate","update:endDate"]),setup(C,{expose:g,emit:I}){const e=C,t=I,i=l.reactive({date:{start:null,end:null},isActive:!1}),A=l.useModel(C,"startDate"),n=l.useModel(C,"endDate"),s=(m,Z)=>{Z===nc.start&&(i.date[Z]=m),Z===nc.end&&(i.date[Z]=e.toLastTime&&m!==null?XW(m):m),t("change",i.date)},o=m=>{i.date[m]=null},a=()=>{Object.keys(i.date).forEach(m=>{i.date[m]=null})},d=()=>{(A.value||n.value)&&(i.date={start:A.value,end:e.toLastTime?XW(n.value):n.value})};return l.watch([()=>A.value,()=>n.value],()=>{d()}),l.onMounted(()=>{d()}),g({clear:a}),(m,Z)=>{var b,h;return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["date-picker-yui-kit__header",{"date-disable-yui-kit":e.disabled},{"date-active-yui-kit":i.isActive}]),"data-testid":`${e.dataTestid}-Header`},[l.createVNode(uV,{modelValue:i.date.start,"onUpdate:modelValue":Z[0]||(Z[0]=G=>i.date.start=G),locale:e.locale,"is-range":"",disabled:e.disabled,"end-date":(b=i.date)==null?void 0:b.end,onChange:Z[1]||(Z[1]=G=>s(G,l.unref(nc).start)),onClear:Z[2]||(Z[2]=G=>o(l.unref(nc).start)),"data-testid":`${e.dataTestid}-Component-Start`},null,8,["modelValue","locale","disabled","end-date","data-testid"]),l.createElementVNode("div",{class:"date-picker-yui-kit__header__dash","data-testid":`${e.dataTestid}-Header-Dash`},null,8,Cvg),l.createVNode(uV,{modelValue:i.date.end,"onUpdate:modelValue":Z[3]||(Z[3]=G=>i.date.end=G),locale:e.locale,"is-range":"",disabled:e.disabled,"start-date":(h=i.date)==null?void 0:h.start,onChange:Z[4]||(Z[4]=G=>s(G,l.unref(nc).end)),onClear:Z[5]||(Z[5]=G=>o(l.unref(nc).end)),"data-testid":`${e.dataTestid}-Component-End`},null,8,["modelValue","locale","disabled","start-date","data-testid"])],10,Ivg)}}}),[["__scopeId","data-v-cd5db169"]]),hV=l.defineComponent({__name:"Calendar",props:{range:{},locale:{},fromTodayTime:{type:Boolean},toLastTime:{type:Boolean},setDate:{},startDate:{},endDate:{},isSelectTime:{type:Boolean},isRange:{type:Boolean},isSmall:{type:Boolean},disabled:{type:Boolean},dataTestid:{default:"Calendar"}},emits:["change","click"],setup(C,{emit:g}){const I=C,e=l.reactive({date:null,dateObject:{start:null,end:null}}),t=g,i=l.ref(),A=s=>{t("change",s)};l.watchEffect(()=>e.date=I.setDate||null);const n=()=>{var s,o;return{start:I.fromTodayTime?new Date(Date.now()):((s=I.range)==null?void 0:s.start)??null,end:((o=I.range)==null?void 0:o.end)??null}};return l.watch([()=>{var s;return(s=I.range)==null?void 0:s.start},()=>{var s;return(s=I.range)==null?void 0:s.end}],()=>{var s,o,a;e.dateObject=n(),((s=I.range)==null?void 0:s.start)===null&&((o=I.range)==null?void 0:o.end)===null&&((a=i.value)==null||a.clear())}),l.onMounted(()=>{if(I.isRange){e.dateObject=n();return}I.setDate&&(e.date=I.setDate??null)}),(s,o)=>I.isRange?(l.openBlock(),l.createBlock(evg,{key:0,ref_key:"datePickerRangeRef",ref:i,"to-last-time":I.toLastTime,"start-date":e.dateObject.start,"onUpdate:startDate":o[0]||(o[0]=a=>e.dateObject.start=a),"end-date":e.dateObject.end,"onUpdate:endDate":o[1]||(o[1]=a=>e.dateObject.end=a),disabled:I.disabled,locale:I.locale,onClick:o[2]||(o[2]=a=>t("click")),onChange:A,"data-testid":`${I.dataTestid}-DataPickerRange`},null,8,["to-last-time","start-date","end-date","disabled","locale","data-testid"])):(l.openBlock(),l.createBlock(uV,{key:1,modelValue:e.date,"onUpdate:modelValue":o[3]||(o[3]=a=>e.date=a),disabled:I.disabled,locale:I.locale,"is-small":I.isSmall,"is-select-time":I.isSelectTime,"data-testid":`${I.dataTestid}-DataPicker`,onClick:o[4]||(o[4]=a=>t("click")),onChange:A},null,8,["modelValue","disabled","locale","is-small","is-select-time","data-testid"]))}}),tvg=["data-testid"],ivg=["data-testid"],GV=vg(l.defineComponent({__name:"Accordion",props:{dataTestid:{default:"Accordion"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("details",{class:"accordion-yui-kit","data-testid":g.dataTestid},[l.createElementVNode("summary",{class:"accordion-yui-kit__summary","data-testid":`${g.dataTestid}-Summary`},[l.renderSlot(I.$slots,"summary",{},void 0,!0),l.createVNode(Yg,{name:l.unref(mg).chevronUp,class:"chevron-up","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronUp`},null,8,["name","data-testid"]),l.createVNode(Yg,{name:l.unref(mg).chevronDown,class:"chevron-down","stroke-width":"2","data-testid":`${g.dataTestid}-ChevronDown`},null,8,["name","data-testid"])],8,ivg),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,tvg))}}),[["__scopeId","data-v-b9b27643"]]),Avg=["data-testid"],nvg=["data-testid"],lvg=["data-testid"],svg=["data-testid","multiple"],wV=vg(l.defineComponent({__name:"DragAndDrop",props:{singleFileMode:{type:Boolean,default:!1},title:{default:"Кликните или перенесите файлы"},type:{},dataTestid:{default:"DragAndDrop"}},emits:["fileDropped"],setup(C,{emit:g}){const I=C,e=g,t=l.reactive({isPressed:!1}),i=l.computed(()=>[{"dnd-yui-kit_secondary":I.type==="secondary","dnd-yui-kit_primary":I.type==="primary"}]),A=l.ref(null),n=b=>{const h=b.target;Z(h.files)},s=()=>{A.value&&(A.value.value="")},o=b=>{var G;b.preventDefault();const h=(G=b.currentTarget)==null?void 0:G.children[0];h.classList.contains("active")||h.classList.add("active")},a=b=>{b.currentTarget.children[0].classList.remove("active")},d=b=>{var G;b.preventDefault(),Z(((G=b.dataTransfer)==null?void 0:G.files)||null),b.currentTarget.children[0].classList.remove("active")},m=()=>{t.isPressed=!t.isPressed},Z=b=>{t.isPressed=!1,e("fileDropped",b)};return l.onMounted(()=>{var b;(b=A.value)==null||b.addEventListener("cancel",()=>{t.isPressed=!1})}),(b,h)=>(l.openBlock(),l.createElementBlock("div",{onDragover:o,onDragleave:a,onDrop:d,class:l.normalizeClass(["dnd-yui-kit",i.value]),"data-testid":I.dataTestid},[l.createElementVNode("label",{for:"docsFileSelected",class:l.normalizeClass(["dnd-yui-kit__label",{"is-pressed":t.isPressed}]),onClick:m,"data-testid":`${I.dataTestid}-Label`},[l.createVNode(Yg,{name:l.unref(mg).paperClip,"stroke-width":"2","data-testid":`${I.dataTestid}-Icon`},null,8,["name","data-testid"]),l.createElementVNode("span",{class:"dnd-yui-kit__span","data-testid":`${I.dataTestid}-Title`},l.toDisplayString(I.title),9,lvg)],10,nvg),l.createElementVNode("input",{id:"docsFileSelected",onChange:n,onClick:s,type:"file",style:{display:"none"},"data-testid":`${I.dataTestid}-Input`,required:"",multiple:!I.singleFileMode,ref_key:"fileInputRef",ref:A},null,40,svg)],42,Avg))}}),[["__scopeId","data-v-5f9a1913"]]),ovg=["data-testid"],avg=["data-testid"],WV=vg(l.defineComponent({__name:"Card",props:{dataTestid:{default:"Card"}},setup(C){const g=C;return(I,e)=>(l.openBlock(),l.createElementBlock("div",{class:"card-yui-kit","data-testid":g.dataTestid},[I.$slots.left?(l.openBlock(),l.createElementBlock("div",{key:0,class:"card-yui-kit__left","data-testid":`${g.dataTestid}-Left`},[l.renderSlot(I.$slots,"left",{},void 0,!0)],8,avg)):l.createCommentVNode("",!0),l.renderSlot(I.$slots,"default",{},void 0,!0)],8,ovg))}}),[["__scopeId","data-v-9e2488a5"]]),dvg=["data-testid"],cvg=["data-testid"],mvg=["data-testid"],rvg=["data-testid"],Zvg=["onClick","data-testid"],bvg=["data-testid"],uvg=vg(l.defineComponent({__name:"History",props:{modelValue:{},defaultValue:{},placeholder:{},showHistory:{type:Boolean},global:{type:Boolean},options:{},globalResultsFunction:{},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{},width:{},height:{},dataTestid:{default:"History"}},emits:["choosePost","unmount-remove"],setup(C,{emit:g}){const I=C,e=l.reactive({isShowList:I.isShowList,isShowButtonHistory:I.isShowButtonHistory}),t=g,i=l.computed(()=>({"history-yui-kit__list":!0,"history-yui-kit__list--opened":e.isShowList,"history-yui-kit__list--scroll":I.modelValue&&I.modelValue.length>=5&&e.isShowList})),A=()=>{e.isShowList=!0,e.isShowButtonHistory=!1},n=o=>{t("unmount-remove",o)},s=o=>{t("choosePost",o)};return(o,a)=>{var d;return I.showHistory?(l.openBlock(),l.createElementBlock("div",{key:0,class:"search-yui-kit__history history-yui-kit","data-testid":I.dataTestid},[e.isShowButtonHistory?(l.openBlock(),l.createBlock(nI,{key:0,type:l.unref(II).outline,onClick:A,class:l.normalizeClass("history-yui-kit__button-text show-result"),"data-testid":`${I.dataTestid}-ShowResult`},{default:l.withCtx(()=>[l.createElementVNode("span",{class:"search-yui-kit__button-label","data-testid":`${I.dataTestid}-ShowResult-Title`}," Просмотреть историю запросов ",8,cvg)]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0),(d=I.modelValue)!=null&&d.length?(l.openBlock(),l.createElementBlock("ul",{key:1,class:l.normalizeClass(i.value),"data-testid":`${I.dataTestid}-ShowResult-List`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.modelValue,(m,Z)=>(l.openBlock(),l.createElementBlock("li",{class:"history-yui-kit__item",key:m,"data-testid":`${I.dataTestid}-ShowResult-Title${Z}`},[l.createElementVNode("span",{onClick:b=>s(m),class:"history-yui-kit__hint","data-testid":`${I.dataTestid}-HandleChoosePost-Title${Z}`},l.toDisplayString(m),9,Zvg),l.createVNode(nI,{type:l.unref(II).ghost,onClick:b=>n(m),"data-testid":`${I.dataTestid}-ButtonItem-Remove${Z}`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).exitSmall,width:16,"data-testid":`${I.dataTestid}-ButtonItem-RemoveIcon${Z}`},null,8,["name","data-testid"])]),_:2},1032,["type","onClick","data-testid"])],8,rvg))),128))],10,mvg)):e.isShowButtonHistory?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(nI,{key:2,type:l.unref(II).outline,class:l.normalizeClass("history-yui-kit__button-text"),"data-testid":`${I.dataTestid}-ButtonTypeEnum-RemoveButton`},{default:l.withCtx(()=>[l.createElementVNode("span",{"data-testid":`${I.dataTestid}-ButtonTypeEnum-EmptyContent`,class:"empty-content"},"По вашему запросу ничего не найдено",8,bvg)]),_:1},8,["type","data-testid"]))],8,dvg)):l.createCommentVNode("",!0)}}}),[["__scopeId","data-v-55d948ee"]]),hvg=["data-testid"],Gvg=["data-testid"],wvg=["data-testid","onClick"],Wvg=["data-testid"],Bvg=["data-testid"],pvg=["data-testid"],Yvg=["data-testid"],yvg=["data-testid"],Nvg=["data-testid"],Vvg=vg(l.defineComponent({__name:"SearchResult",props:{defaultValue:{},placeholder:{},showHistory:{type:Boolean},global:{type:Boolean},options:{},globalResultsFunction:{default:()=>[]},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{default:""},width:{},height:{},modelValue:{},dataTestid:{default:"SearchResult"}},emits:["choose-result","scroll-paginate"],setup(C,{emit:g}){const I=C,e=g,t=l.ref(null),i=n=>{e("choose-result",n)},A=n=>{const s=n.target,{scrollTop:o,scrollHeight:a,clientHeight:d}=s;a-o-d<5&&e("scroll-paginate")};return l.watch(()=>I.searchValue,()=>{t.value&&(t.value.scrollTop=0)}),(n,s)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit__result result-yui-kit","data-testid":I.dataTestid},[I.globalResultsFunction.length>0?(l.openBlock(),l.createElementBlock("ul",{key:0,class:"result-yui-kit__list","data-testid":`${I.dataTestid}-List`,onScroll:A,ref_key:"resultContentRef",ref:t},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(I.globalResultsFunction,(o,a)=>(l.openBlock(),l.createElementBlock("li",{class:"result-yui-kit__list__item",key:a,"data-testid":`${I.dataTestid}-List-Items${a}`,onClick:d=>i(o)},[l.createVNode(Yg,{name:o.icon||l.unref(mg).document,"data-testid":`${I.dataTestid}-Items-Icon${a}`,width:16,height:16,class:"result-yui-kit__list__item__icon"},null,8,["name","data-testid"]),l.createElementVNode("span",{"data-testid":`${I.dataTestid}-Result-NameArea${a}`},l.toDisplayString(o.nameArea),9,Wvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-Slash${a}`},"/",8,Bvg),l.createElementVNode("span",{class:"blue-yui-kit","data-testid":`${I.dataTestid}-Result-SearchResult${a}`},l.toDisplayString(o.searchResult),9,pvg)],8,wvg))),128))],40,Gvg)):I.searchValue?(l.openBlock(),l.createElementBlock("ul",{key:1,class:"result-yui-kit__list result-yui-kit__empty","data-testid":`${I.dataTestid}-Nothing-List`},[l.createElementVNode("li",{class:"result-yui-kit__empty__item","data-testid":`${I.dataTestid}-Nothing-Items`},[l.createElementVNode("p",{"data-testid":`${I.dataTestid}-Nothing-Text`}," По вашему запросу ничего не найдено ",8,Nvg)],8,yvg)],8,Yvg)):l.createCommentVNode("",!0)],8,hvg))}}),[["__scopeId","data-v-70a3720c"]]),bk=()=>{const C=l.ref(localStorage.getItem("historySearch")?JSON.parse(localStorage.getItem("historySearch")):[]);return{getHistorySearch:C,addHistorySearch:e=>{e&&(C.value=C.value.filter(t=>t!==e),C.value.unshift(e),C.value.length>10&&C.value.pop(),localStorage.setItem("historySearch",JSON.stringify(C.value)))},removeHistorySearch:e=>{C.value=C.value.filter(t=>t!==e),localStorage.setItem("historySearch",JSON.stringify(C.value))}}},Xvg=["data-testid"],Rvg=["data-testid"],Mvg=["data-testid"],Hvg=["placeholder","data-testid"],du=vg(l.defineComponent({__name:"Search",props:{defaultValue:{},placeholder:{default:"Поиск"},showHistory:{type:Boolean},global:{type:Boolean,default:!1},options:{},globalResultsFunction:{default:()=>[]},isShowList:{type:Boolean},isShowButtonHistory:{type:Boolean},searchValue:{},width:{},height:{default:"42px"},modelValue:{default:""},dataTestid:{default:"Search"}},emits:["enter","input","update:modelValue","choose-result","scroll-paginate","choosed"],setup(C,{emit:g}){const I=C,e=g,{getHistorySearch:t,removeHistorySearch:i,addHistorySearch:A}=bk(),n=l.reactive({isShowList:!1,isShowButtonHistory:I.showHistory??!1,searchValue:I.modelValue,placeholder:I.placeholder??"",focused:!1}),s={position:"relative",width:"100%",height:I.height},o=Y=>{n.searchValue=Y.trim(),n.isShowList=!1,e("input",Y),e("update:modelValue",n.searchValue),e("choosed",n.searchValue),e("enter",n.searchValue)},a=Y=>{n.isShowList=!1,e("choose-result",Y)},d=()=>{e("scroll-paginate")},m=l.computed(()=>({"search-yui-kit__icon-wrapper":!0})),Z=()=>{n.focused=!0},b=()=>{setTimeout(()=>{n.focused=!1},500)},h=()=>{n.isShowList=!1,n.isShowButtonHistory=!1},G=()=>{n.isShowButtonHistory=!0,n.isShowButtonHistory||(n.isShowList=!0)},w=()=>{e("enter",n.searchValue.trim()),I.showHistory&&n.searchValue&&A(n.searchValue.trim())},B=()=>{const Y=n.searchValue.trim();e("input",Y),e("update:modelValue",Y)},p=()=>{n.searchValue&&(n.searchValue="",B(),w())};return l.onMounted(()=>{I.defaultValue&&(n.searchValue=I.defaultValue)}),l.watch(()=>I.modelValue,Y=>{n.searchValue=Y}),(Y,y)=>(l.openBlock(),l.createElementBlock("div",{class:"search-yui-kit",style:s,onMousemove:G,onMouseleave:h,"data-testid":I.dataTestid},[l.createElementVNode("div",{class:l.normalizeClass(m.value),"data-testid":`${I.dataTestid}-Dropdown-Wrapper`},[l.createElementVNode("div",{class:"search-yui-kit__dropdown","data-testid":`${I.dataTestid}-Dropdown`},[l.withDirectives(l.createElementVNode("input",{type:"text",class:"search-yui-kit__input","onUpdate:modelValue":y[0]||(y[0]=R=>n.searchValue=R),placeholder:I.placeholder,onKeydown:l.withKeys(w,["enter"]),onInput:B,onFocus:Z,onBlur:b,"data-testid":`${I.dataTestid}-Dropdown-Input`},null,40,Hvg),[[l.vModelText,n.searchValue]]),l.createVNode(Yg,{class:"search-icon",name:l.unref(mg).searchNormal},null,8,["name"]),n.searchValue?(l.openBlock(),l.createBlock(nI,{key:0,class:"clear-button",type:l.unref(II).ghost,onClick:p,"data-testid":`${I.dataTestid}-Clear-Button`},{default:l.withCtx(()=>[l.createVNode(Yg,{name:l.unref(mg).exitSmall,color:"var(--text-light-color)","data-testid":`${I.dataTestid}-Clear-Button-Icon`},null,8,["name","data-testid"])]),_:1},8,["type","data-testid"])):l.createCommentVNode("",!0)],8,Mvg)],10,Rvg),!I.global&&I.showHistory?(l.openBlock(),l.createBlock(uvg,{key:0,"show-history":I.showHistory,"is-show-button-history":n.isShowButtonHistory,"is-show-list":n.isShowList,"model-value":l.unref(t),onUnmountRemove:l.unref(i),onChoosePost:o,"data-testid":`${I.dataTestid}-Dropdown-History`},null,8,["show-history","is-show-button-history","is-show-list","model-value","onUnmountRemove","data-testid"])):l.createCommentVNode("",!0),I.global&&n.focused?(l.openBlock(),l.createBlock(Vvg,{key:1,"global-results-function":I.globalResultsFunction,"search-value":n.searchValue,"data-testid":`${I.dataTestid}-Dropdown-SearchResult`,onChooseResult:a,onScrollPaginate:d},null,8,["global-results-function","search-value","data-testid"])):l.createCommentVNode("",!0)],40,Xvg))}}),[["__scopeId","data-v-7f0a8bc7"]]);var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fvg(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}var RW={exports:{}};/**
1527
1527
  * @license
1528
1528
  * Lodash <https://lodash.com/>
1529
1529
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>